From 69d8a38156d50d95fed10af1b31471dc10eff29f Mon Sep 17 00:00:00 2001 From: antmicrobot Date: Fri, 6 Dec 2024 13:52:43 +0000 Subject: [PATCH] deploy: 6d52772ee192ec9620c78f8f75bbe0a919982c09 --- MystEditor.js | 30225 +++++++++++++++++++------------------- docs/collaboration.html | 2 +- docs/comments.html | 2 +- docs/genindex.html | 2 +- docs/index.html | 2 +- docs/introduction.html | 2 +- docs/mermaid.html | 2 +- docs/rich-links.html | 2 +- docs/topbar.html | 2 +- 9 files changed, 15182 insertions(+), 15059 deletions(-) diff --git a/MystEditor.js b/MystEditor.js index cd737ab..361f96d 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -1,6 +1,6 @@ -var j2e = Object.defineProperty; -var K2e = (t, e, r) => e in t ? j2e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; -var br = (t, e, r) => (K2e(t, typeof e != "symbol" ? e + "" : e, r), r), J2e = (t, e, r) => { +var K2e = Object.defineProperty; +var J2e = (t, e, r) => e in t ? K2e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; +var br = (t, e, r) => (J2e(t, typeof e != "symbol" ? e + "" : e, r), r), ebe = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }; @@ -9,8 +9,8 @@ var Jw = (t, e, r) => { throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); }; -var dv = (t, e, r) => (J2e(t, e, "access private method"), r); -var Px, Ut, Mj, Dj, Wd, NB, Pj, C7, Nj, l2 = {}, Ij = [], ebe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, TT = Array.isArray; +var pv = (t, e, r) => (ebe(t, e, "access private method"), r); +var Px, Ut, Mj, Dj, Wd, NB, Pj, C7, Nj, l2 = {}, Ij = [], tbe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, TT = Array.isArray; function qu(t, e) { for (var r in e) t[r] = e[r]; @@ -33,7 +33,7 @@ function Ly(t, e, r, n, i) { var s = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++Mj : i, __i: -1, __u: 0 }; return i == null && Ut.vnode != null && Ut.vnode(s), s; } -function tbe() { +function rbe() { return { current: null }; } function su(t) { @@ -42,13 +42,13 @@ function su(t) { function Ul(t, e) { this.props = t, this.context = e; } -function nm(t, e) { +function im(t, e) { if (e == null) - return t.__ ? nm(t.__, t.__i + 1) : null; + return t.__ ? im(t.__, t.__i + 1) : null; for (var r; e < t.__k.length; e++) if ((r = t.__k[e]) != null && r.__e != null) return r.__e; - return typeof t.type == "function" ? nm(t) : null; + return typeof t.type == "function" ? im(t) : null; } function Bj(t) { var e, r; @@ -67,22 +67,22 @@ function E7(t) { function ck() { var t, e, r, n, i, s, a, o, l; for (Wd.sort(C7); t = Wd.shift(); ) - t.__d && (e = Wd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = qu({}, i)).__v = i.__v + 1, Ut.vnode && Ut.vnode(n), PM(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? nm(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, Qj(o, n, l), n.__e != s && Bj(n)), Wd.length > e && Wd.sort(C7)); + t.__d && (e = Wd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = qu({}, i)).__v = i.__v + 1, Ut.vnode && Ut.vnode(n), PM(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? im(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, Qj(o, n, l), n.__e != s && Bj(n)), Wd.length > e && Wd.sort(C7)); ck.__r = 0; } function Fj(t, e, r, n, i, s, a, o, l, u, h) { var f, d, p, g, m, v = n && n.__k || Ij, y = e.length; - for (r.__d = l, rbe(r, e, v), l = r.__d, f = 0; f < y; f++) + for (r.__d = l, nbe(r, e, v), l = r.__d, f = 0; f < y; f++) (p = r.__k[f]) != null && typeof p != "boolean" && typeof p != "function" && (d = p.__i === -1 ? l2 : v[p.__i] || l2, p.__i = f, PM(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && NM(d.ref, null, p), h.push(p.ref, p.__c || g, p)), m == null && g != null && (m = g), 65536 & p.__u || d.__k === p.__k ? l = zj(p, l, t) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : g && (l = g.nextSibling), p.__d = void 0, p.__u &= -196609); r.__d = l, r.__e = m; } -function rbe(t, e, r) { +function nbe(t, e, r) { var n, i, s, a, o, l = e.length, u = r.length, h = u, f = 0; for (t.__k = [], n = 0; n < l; n++) - (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Ly(null, i, null, null, i) : TT(i) ? Ly(su, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ly(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = nbe(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = nm(s)), _7(s, s, !1), r[n] = null, h--); + (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Ly(null, i, null, null, i) : TT(i) ? Ly(su, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ly(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = ibe(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = im(s)), _7(s, s, !1), r[n] = null, h--); if (h) for (n = 0; n < u; n++) - (s = r[n]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = nm(s)), _7(s, s)); + (s = r[n]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = im(s)), _7(s, s)); } function zj(t, e, r) { var n, i; @@ -98,7 +98,7 @@ function Zu(t, e) { Zu(r, e); }) : e.push(t)), e; } -function nbe(t, e, r, n) { +function ibe(t, e, r, n) { var i = t.key, s = t.type, a = r - 1, o = r + 1, l = e[r]; if (l === null || l && i == l.key && s === l.type) return r; @@ -118,7 +118,7 @@ function nbe(t, e, r, n) { return -1; } function IB(t, e, r) { - e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || ebe.test(e) ? r : r + "px"; + e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || tbe.test(e) ? r : r + "px"; } function eO(t, e, r, n, i) { var s; @@ -168,7 +168,7 @@ function PM(t, e, r, n, i, s, a, o, l, u) { e: if (typeof E == "function") try { - if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ul(y, w), f.constructor = E, f.render = sbe), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = qu({}, f.__s)), qu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) + if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ul(y, w), f.constructor = E, f.render = abe), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = qu({}, f.__s)), qu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) E.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), f.componentDidMount != null && f.__h.push(f.componentDidMount); else { if (E.getDerivedStateFromProps == null && y !== p && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, w), !f.__e && (f.shouldComponentUpdate != null && f.shouldComponentUpdate(y, f.__s, w) === !1 || e.__v === r.__v)) { @@ -196,7 +196,7 @@ function PM(t, e, r, n, i, s, a, o, l, u) { e.__v = null, l || s != null ? (e.__e = o, e.__u |= l ? 160 : 32, s[s.indexOf(o)] = null) : (e.__e = r.__e, e.__k = r.__k), Ut.__e(R, e, r); } else - s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = ibe(r.__e, e, r, n, i, s, a, l, u); + s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = sbe(r.__e, e, r, n, i, s, a, l, u); (h = Ut.diffed) && h(e); } function Qj(t, e, r) { @@ -213,7 +213,7 @@ function Qj(t, e, r) { } }); } -function ibe(t, e, r, n, i, s, a, o, l) { +function sbe(t, e, r, n, i, s, a, o, l) { var u, h, f, d, p, g, m, v = r.props, y = e.props, b = e.type; if (b === "svg" && (i = !0), s != null) { for (u = 0; u < s.length; u++) @@ -239,7 +239,7 @@ function ibe(t, e, r, n, i, s, a, o, l) { p = y[u], u == "children" ? d = p : u == "dangerouslySetInnerHTML" ? h = p : u == "value" ? g = p : u == "checked" ? m = p : u === "key" || o && typeof p != "function" || v[u] === p || eO(t, u, p, v[u], i); if (h) o || f && (h.__html === f.__html || h.__html === t.innerHTML) || (t.innerHTML = h.__html), e.__k = []; - else if (f && (t.innerHTML = ""), Fj(t, TT(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && nm(r, 0), o, l), s != null) + else if (f && (t.innerHTML = ""), Fj(t, TT(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && im(r, 0), o, l), s != null) for (u = s.length; u--; ) s[u] != null && $j(s[u]); o || (u = "value", g !== void 0 && (g !== t[u] || b === "progress" && !g || b === "option" && g !== v[u]) && eO(t, u, g, v[u], !1), u = "checked", m !== void 0 && m !== t[u] && eO(t, u, m, v[u], !1)); @@ -269,7 +269,7 @@ function _7(t, e, r) { n[i] && _7(n[i], e, r || typeof t.type != "function"); r || t.__e == null || $j(t.__e), t.__ = t.__e = t.__d = void 0; } -function sbe(t, e, r) { +function abe(t, e, r) { return this.constructor(t, r); } function jc(t, e, r) { @@ -279,7 +279,7 @@ function jc(t, e, r) { function Uj(t, e) { jc(t, e, Uj); } -function abe(t, e, r) { +function obe(t, e, r) { var n, i, s, a, o = qu({}, t.props); for (s in t.type && t.type.defaultProps && (a = t.type.defaultProps), e) s == "key" ? n = e[s] : s == "ref" ? i = e[s] : o[s] = e[s] === void 0 && a !== void 0 ? a[s] : e[s]; @@ -326,17 +326,17 @@ Px = Ij.slice, Ut = { __e: function(t, e, r, n) { }, Ul.prototype.render = su, Wd = [], Pj = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, C7 = function(t, e) { return t.__v.__b - e.__v.__b; }, ck.__r = 0, Nj = 0; -var Df, Mn, h_, FB, im = 0, qj = [], Y4 = [], zB = Ut.__b, QB = Ut.__r, UB = Ut.diffed, VB = Ut.__c, qB = Ut.unmount; -function m1(t, e) { - Ut.__h && Ut.__h(Mn, t, im || e), im = 0; +var Df, Mn, h_, FB, sm = 0, qj = [], Y4 = [], zB = Ut.__b, QB = Ut.__r, UB = Ut.diffed, VB = Ut.__c, qB = Ut.unmount; +function v1(t, e) { + Ut.__h && Ut.__h(Mn, t, sm || e), sm = 0; var r = Mn.__H || (Mn.__H = { __: [], __h: [] }); return t >= r.__.length && r.__.push({ __V: Y4 }), r.__[t]; } function fi(t) { - return im = 1, CT(Yj, t); + return sm = 1, CT(Yj, t); } function CT(t, e, r) { - var n = m1(Df++, 2); + var n = v1(Df++, 2); if (n.t = t, !n.__c && (n.__ = [r ? r(e) : Yj(void 0, e), function(o) { var l = n.__N ? n.__N[0] : n.__[0], u = n.t(l, o); l !== u && (n.__N = [u, n.__[1]], n.__c.setState({})); @@ -372,20 +372,20 @@ function CT(t, e, r) { return n.__N || n.__; } function ri(t, e) { - var r = m1(Df++, 3); + var r = v1(Df++, 3); !Ut.__s && IM(r.__H, e) && (r.__ = t, r.i = e, Mn.__H.__h.push(r)); } function ET(t, e) { - var r = m1(Df++, 4); + var r = v1(Df++, 4); !Ut.__s && IM(r.__H, e) && (r.__ = t, r.i = e, Mn.__h.push(r)); } -function Ss(t) { - return im = 5, vi(function() { +function Ts(t) { + return sm = 5, vi(function() { return { current: t }; }, []); } -function obe(t, e, r) { - im = 6, ET(function() { +function lbe(t, e, r) { + sm = 6, ET(function() { return typeof t == "function" ? (t(e()), function() { return t(null); }) : t ? (t.current = e(), function() { @@ -394,23 +394,23 @@ function obe(t, e, r) { }, r == null ? r : r.concat(t)); } function vi(t, e) { - var r = m1(Df++, 7); + var r = v1(Df++, 7); return IM(r.__H, e) ? (r.__V = t(), r.i = e, r.__h = t, r.__V) : r.__; } function uk(t, e) { - return im = 8, vi(function() { + return sm = 8, vi(function() { return t; }, e); } function cc(t) { - var e = Mn.context[t.__c], r = m1(Df++, 9); + var e = Mn.context[t.__c], r = v1(Df++, 9); return r.c = t, e ? (r.__ == null && (r.__ = !0, e.sub(Mn)), e.props.value) : t.__; } function A7(t, e) { Ut.useDebugValue && Ut.useDebugValue(e ? e(t) : t); } -function lbe() { - var t = m1(Df++, 11); +function cbe() { + var t = v1(Df++, 11); if (!t.__) { for (var e = Mn.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__; @@ -419,7 +419,7 @@ function lbe() { } return t.__; } -function cbe() { +function ube() { for (var t; t = qj.shift(); ) if (t.__P && t.__H) try { @@ -439,7 +439,7 @@ Ut.__b = function(t) { }, Ut.diffed = function(t) { UB && UB(t); var e = t.__c; - e && e.__H && (e.__H.__h.length && (qj.push(e) !== 1 && FB === Ut.requestAnimationFrame || ((FB = Ut.requestAnimationFrame) || ube)(cbe)), e.__H.__.forEach(function(r) { + e && e.__H && (e.__H.__h.length && (qj.push(e) !== 1 && FB === Ut.requestAnimationFrame || ((FB = Ut.requestAnimationFrame) || hbe)(ube)), e.__H.__.forEach(function(r) { r.i && (r.__H = r.i), r.__V !== Y4 && (r.__ = r.__V), r.i = void 0, r.__V = Y4; })), h_ = Mn = null; }, Ut.__c = function(t, e) { @@ -466,7 +466,7 @@ Ut.__b = function(t) { }), r.__H = void 0, e && Ut.__e(e, r.__v)); }; var YB = typeof requestAnimationFrame == "function"; -function ube(t) { +function hbe(t) { var e, r = function() { clearTimeout(n), YB && cancelAnimationFrame(e), setTimeout(t); }, n = setTimeout(r, 100); @@ -498,21 +498,21 @@ var eo = function() { return e; }, eo.apply(this, arguments); }; -function sm(t, e, r) { +function am(t, e, r) { if (r || arguments.length === 2) for (var n = 0, i = e.length, s; n < i; n++) (s || !(n in e)) && (s || (s = Array.prototype.slice.call(e, 0, n)), s[n] = e[n]); return t.concat(s || Array.prototype.slice.call(e)); } -function hbe(t) { +function fbe(t) { var e = /* @__PURE__ */ Object.create(null); return function(r) { return e[r] === void 0 && (e[r] = t(r)), e[r]; }; } -var fbe = /^((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)-.*))$/, dbe = /* @__PURE__ */ hbe( +var dbe = /^((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)-.*))$/, pbe = /* @__PURE__ */ fbe( function(t) { - return fbe.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; + return dbe.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; } ); function Wj(t, e) { @@ -532,7 +532,7 @@ function R7(t, e) { function M7(t) { this.props = t; } -function pbe(t, e) { +function gbe(t, e) { function r(i) { var s = this.props.ref, a = s == i.ref; return !a && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !a : R7(this.props, i); @@ -549,31 +549,31 @@ var WB = Ut.__b; Ut.__b = function(t) { t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), WB && WB(t); }; -var gbe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; -function mbe(t) { +var mbe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; +function vbe(t) { function e(r) { var n = Wj({}, r); return delete n.ref, t(n, r.ref || null); } - return e.$$typeof = gbe, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; + return e.$$typeof = mbe, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; } var GB = function(t, e) { return t == null ? null : Zu(Zu(t).map(e)); -}, vbe = { map: GB, forEach: GB, count: function(t) { +}, ybe = { map: GB, forEach: GB, count: function(t) { return t ? Zu(t).length : 0; }, only: function(t) { var e = Zu(t); if (e.length !== 1) throw "Children.only"; return e[0]; -}, toArray: Zu }, ybe = Ut.__e; +}, toArray: Zu }, bbe = Ut.__e; Ut.__e = function(t, e, r, n) { if (t.then) { for (var i, s = e; s = s.__; ) if ((i = s.__c) && i.__c) return e.__e == null && (e.__e = r.__e, e.__k = r.__k), i.__c(t, e); } - ybe(t, e, r, n); + bbe(t, e, r, n); }; var XB = Ut.unmount; function Gj(t, e, r) { @@ -595,7 +595,7 @@ function Hj(t) { var e = t.__.__c; return e && e.__a && e.__a(t); } -function bbe(t) { +function xbe(t) { var e, r, n; function i(s) { if (e || (e = t()).then(function(a) { @@ -610,7 +610,7 @@ function bbe(t) { } return i.displayName = "Lazy", i.__f = !0, i; } -function Kv() { +function Jv() { this.u = null, this.o = null; } Ut.unmount = function(t) { @@ -658,12 +658,12 @@ var HB = function(t, e, r) { t.u = r = r[2]; } }; -function xbe(t) { +function wbe(t) { return this.getChildContext = function() { return t.context; }, t.children; } -function wbe(t) { +function Obe(t) { var e = this, r = t.i; e.componentWillUnmount = function() { jc(null, e.l), e.l = null, e.i = null; @@ -673,13 +673,13 @@ function wbe(t) { this.childNodes.push(n), e.i.appendChild(n); }, removeChild: function(n) { this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n); - } }), jc(iu(xbe, { context: e.context }, t.__v), e.l); + } }), jc(iu(wbe, { context: e.context }, t.__v), e.l); } -function Obe(t, e) { - var r = iu(wbe, { __v: t, i: e }); +function kbe(t, e) { + var r = iu(Obe, { __v: t, i: e }); return r.containerInfo = e, r; } -(Kv.prototype = new Ul()).__a = function(t) { +(Jv.prototype = new Ul()).__a = function(t) { var e = this, r = Hj(e.__v), n = e.o.get(t); return n[0]++, function(i) { var s = function() { @@ -687,26 +687,26 @@ function Obe(t, e) { }; r ? r(s) : s(); }; -}, Kv.prototype.render = function(t) { +}, Jv.prototype.render = function(t) { this.u = null, this.o = /* @__PURE__ */ new Map(); var e = Zu(t.children); t.revealOrder && t.revealOrder[0] === "b" && e.reverse(); for (var r = e.length; r--; ) this.o.set(e[r], this.u = [1, 0, this.u]); return t.children; -}, Kv.prototype.componentDidUpdate = Kv.prototype.componentDidMount = function() { +}, Jv.prototype.componentDidUpdate = Jv.prototype.componentDidMount = function() { var t = this; this.o.forEach(function(e, r) { HB(t, r, e); }); }; -var Zj = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, kbe = /^(?: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]/, Sbe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Tbe = /[A-Z0-9]/g, Cbe = typeof document < "u", Ebe = function(t) { +var Zj = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Sbe = /^(?: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]/, Tbe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Cbe = /[A-Z0-9]/g, Ebe = typeof document < "u", _be = function(t) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t); }; -function _be(t, e, r) { +function Abe(t, e, r) { return e.__k == null && (e.textContent = ""), jc(t, e), typeof r == "function" && r(), t ? t.__c : null; } -function Abe(t, e, r) { +function Lbe(t, e, r) { return Uj(t, e), typeof r == "function" && r(), t ? t.__c : null; } Ul.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) { @@ -717,18 +717,18 @@ Ul.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive } }); }); var ZB = Ut.event; -function Lbe() { -} function Rbe() { - return this.cancelBubble; } function Mbe() { + return this.cancelBubble; +} +function Dbe() { return this.defaultPrevented; } Ut.event = function(t) { - return ZB && (t = ZB(t)), t.persist = Lbe, t.isPropagationStopped = Rbe, t.isDefaultPrevented = Mbe, t.nativeEvent = t; + return ZB && (t = ZB(t)), t.persist = Rbe, t.isPropagationStopped = Mbe, t.isDefaultPrevented = Dbe, t.nativeEvent = t; }; -var $M, Dbe = { enumerable: !1, configurable: !0, get: function() { +var $M, Pbe = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, jB = Ut.vnode; Ut.vnode = function(t) { @@ -736,16 +736,16 @@ Ut.vnode = function(t) { var r = e.props, n = e.type, i = {}; for (var s in r) { var a = r[s]; - if (!(s === "value" && "defaultValue" in r && a == null || Cbe && s === "children" && n === "noscript" || s === "class" || s === "className")) { + if (!(s === "value" && "defaultValue" in r && a == null || Ebe && s === "children" && n === "noscript" || s === "class" || s === "className")) { var o = s.toLowerCase(); - s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || Ebe(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Sbe.test(s) ? s = o : n.indexOf("-") === -1 && kbe.test(s) ? s = s.replace(Tbe, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; + s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || _be(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Tbe.test(s) ? s = o : n.indexOf("-") === -1 && Sbe.test(s) ? s = s.replace(Cbe, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; } } n == "select" && i.multiple && Array.isArray(i.value) && (i.value = Zu(r.children).forEach(function(l) { l.props.selected = i.value.indexOf(l.props.value) != -1; })), n == "select" && i.defaultValue != null && (i.value = Zu(r.children).forEach(function(l) { l.props.selected = i.multiple ? i.defaultValue.indexOf(l.props.value) != -1 : i.defaultValue == l.props.value; - })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Dbe)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; + })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Pbe)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; }(t), t.$$typeof = Zj, jB && jB(t); }; var KB = Ut.__r; @@ -758,43 +758,43 @@ Ut.diffed = function(t) { var e = t.props, r = t.__e; r != null && t.type === "textarea" && "value" in e && e.value !== r.value && (r.value = e.value == null ? "" : e.value), $M = null; }; -var Pbe = { ReactCurrentDispatcher: { current: { readContext: function(t) { +var Nbe = { ReactCurrentDispatcher: { current: { readContext: function(t) { return $M.__n[t.__c].props.value; } } } }; -function Nbe(t) { +function Ibe(t) { return iu.bind(null, t); } function _T(t) { return !!t && t.$$typeof === Zj; } -function Ibe(t) { - return _T(t) && t.type === su; -} function $be(t) { - return _T(t) ? abe.apply(null, arguments) : t; + return _T(t) && t.type === su; } function Bbe(t) { - return !!t.__k && (jc(null, t), !0); + return _T(t) ? obe.apply(null, arguments) : t; } function Fbe(t) { + return !!t.__k && (jc(null, t), !0); +} +function zbe(t) { return t && (t.base || t.nodeType === 1 && t) || null; } -var zbe = function(t, e) { +var Qbe = function(t, e) { return t(e); -}, Qbe = function(t, e) { +}, Ube = function(t, e) { return t(e); -}, Ube = su; +}, Vbe = su; function jj(t) { t(); } -function Vbe(t) { +function qbe(t) { return t; } -function qbe() { +function Ybe() { return [!1, jj]; } -var Ybe = ET, Wbe = _T; -function Gbe(t, e) { +var Wbe = ET, Gbe = _T; +function Xbe(t, e) { var r = e(), n = fi({ h: { __: r, v: e } }), i = n[0].h, s = n[1]; return ET(function() { i.__ = r, i.v = e, f_(i) && s({ h: i }); @@ -813,7 +813,7 @@ function f_(t) { return !0; } } -var A0 = { useState: fi, useId: lbe, useReducer: CT, useEffect: ri, useLayoutEffect: ET, useInsertionEffect: Ybe, useTransition: qbe, useDeferredValue: Vbe, useSyncExternalStore: Gbe, startTransition: jj, useRef: Ss, useImperativeHandle: obe, useMemo: vi, useCallback: uk, useContext: cc, useDebugValue: A7, version: "17.0.2", Children: vbe, render: _be, hydrate: Abe, unmountComponentAtNode: Bbe, createPortal: Obe, createElement: iu, createContext: Vj, createFactory: Nbe, cloneElement: $be, createRef: tbe, Fragment: su, isValidElement: _T, isElement: Wbe, isFragment: Ibe, findDOMNode: Fbe, Component: Ul, PureComponent: M7, memo: pbe, forwardRef: mbe, flushSync: Qbe, unstable_batchedUpdates: zbe, StrictMode: Ube, Suspense: G4, SuspenseList: Kv, lazy: bbe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Pbe }, wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +var L0 = { useState: fi, useId: cbe, useReducer: CT, useEffect: ri, useLayoutEffect: ET, useInsertionEffect: Wbe, useTransition: Ybe, useDeferredValue: qbe, useSyncExternalStore: Xbe, startTransition: jj, useRef: Ts, useImperativeHandle: lbe, useMemo: vi, useCallback: uk, useContext: cc, useDebugValue: A7, version: "17.0.2", Children: ybe, render: Abe, hydrate: Lbe, unmountComponentAtNode: Fbe, createPortal: kbe, createElement: iu, createContext: Vj, createFactory: Ibe, cloneElement: Bbe, createRef: rbe, Fragment: su, isValidElement: _T, isElement: Gbe, isFragment: $be, findDOMNode: zbe, Component: Ul, PureComponent: M7, memo: gbe, forwardRef: vbe, flushSync: Ube, unstable_batchedUpdates: Qbe, StrictMode: Vbe, Suspense: G4, SuspenseList: Jv, lazy: xbe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Nbe }, wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Kj(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } @@ -838,7 +838,7 @@ function Jj(t) { }); }), r; } -var Xbe = function(e, r, n, i) { +var Hbe = function(e, r, n, i) { var s = n ? n.call(i, e, r) : void 0; if (s !== void 0) return !!s; @@ -858,9 +858,9 @@ var Xbe = function(e, r, n, i) { return !1; } return !0; -}, An = "-ms-", Ry = "-moz-", jr = "-webkit-", eK = "comm", AT = "rule", BM = "decl", Hbe = "@import", tK = "@keyframes", Zbe = "@layer", jbe = Math.abs, FM = String.fromCharCode, D7 = Object.assign; -function Kbe(t, e) { - return rs(t, 0) ^ 45 ? (((e << 2 ^ rs(t, 0)) << 2 ^ rs(t, 1)) << 2 ^ rs(t, 2)) << 2 ^ rs(t, 3) : 0; +}, An = "-ms-", Ry = "-moz-", jr = "-webkit-", eK = "comm", AT = "rule", BM = "decl", Zbe = "@import", tK = "@keyframes", jbe = "@layer", Kbe = Math.abs, FM = String.fromCharCode, D7 = Object.assign; +function Jbe(t, e) { + return ns(t, 0) ^ 45 ? (((e << 2 ^ ns(t, 0)) << 2 ^ ns(t, 1)) << 2 ^ ns(t, 2)) << 2 ^ ns(t, 3) : 0; } function rK(t) { return t.trim(); @@ -874,10 +874,10 @@ function Rr(t, e, r) { function X4(t, e) { return t.indexOf(e); } -function rs(t, e) { +function ns(t, e) { return t.charCodeAt(e) | 0; } -function am(t, e, r) { +function om(t, e, r) { return t.slice(e, r); } function Mc(t) { @@ -886,10 +886,10 @@ function Mc(t) { function nK(t) { return t.length; } -function Jv(t, e) { +function ey(t, e) { return e.push(t), t; } -function Jbe(t, e) { +function exe(t, e) { return t.map(e).join(""); } function eF(t, e) { @@ -897,35 +897,35 @@ function eF(t, e) { return !$u(r, e); }); } -var LT = 1, om = 1, iK = 0, cl = 0, ki = 0, v1 = ""; +var LT = 1, lm = 1, iK = 0, cl = 0, ki = 0, y1 = ""; function RT(t, e, r, n, i, s, a, o) { - return { value: t, root: e, parent: r, type: n, props: i, children: s, line: LT, column: om, length: a, return: "", siblings: o }; + return { value: t, root: e, parent: r, type: n, props: i, children: s, line: LT, column: lm, length: a, return: "", siblings: o }; } function Xh(t, e) { return D7(RT("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); } -function qp(t) { +function Yp(t) { for (; t.root; ) t = Xh(t.root, { children: [t] }); - Jv(t, t.siblings); + ey(t, t.siblings); } -function exe() { +function txe() { return ki; } -function txe() { - return ki = cl > 0 ? rs(v1, --cl) : 0, om--, ki === 10 && (om = 1, LT--), ki; +function rxe() { + return ki = cl > 0 ? ns(y1, --cl) : 0, lm--, ki === 10 && (lm = 1, LT--), ki; } function Vl() { - return ki = cl < iK ? rs(v1, cl++) : 0, om++, ki === 10 && (om = 1, LT++), ki; + return ki = cl < iK ? ns(y1, cl++) : 0, lm++, ki === 10 && (lm = 1, LT++), ki; } function w0() { - return rs(v1, cl); + return ns(y1, cl); } function H4() { return cl; } function MT(t, e) { - return am(v1, t, e); + return om(y1, t, e); } function P7(t) { switch (t) { @@ -959,21 +959,21 @@ function P7(t) { } return 0; } -function rxe(t) { - return LT = om = 1, iK = Mc(v1 = t), cl = 0, []; -} function nxe(t) { - return v1 = "", t; + return LT = lm = 1, iK = Mc(y1 = t), cl = 0, []; +} +function ixe(t) { + return y1 = "", t; } function d_(t) { return rK(MT(cl - 1, N7(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function ixe(t) { +function sxe(t) { for (; (ki = w0()) && ki < 33; ) Vl(); return P7(t) > 2 || P7(ki) > 3 ? "" : " "; } -function sxe(t, e) { +function axe(t, e) { for (; --e && Vl() && !(ki < 48 || ki > 102 || ki > 57 && ki < 65 || ki > 70 && ki < 97); ) ; return MT(t, H4() + (e < 6 && w0() == 32 && Vl() == 32)); @@ -996,25 +996,25 @@ function N7(t) { } return cl; } -function axe(t, e) { +function oxe(t, e) { for (; Vl() && t + ki !== 47 + 10; ) if (t + ki === 42 + 42 && w0() === 47) break; return "/*" + MT(e, cl - 1) + "*" + FM(t === 47 ? t : Vl()); } -function oxe(t) { +function lxe(t) { for (; !P7(w0()); ) Vl(); return MT(t, cl); } -function lxe(t) { - return nxe(Z4("", null, null, null, [""], t = rxe(t), 0, [0], t)); +function cxe(t) { + return ixe(Z4("", null, null, null, [""], t = nxe(t), 0, [0], t)); } function Z4(t, e, r, n, i, s, a, o, l) { for (var u = 0, h = 0, f = a, d = 0, p = 0, g = 0, m = 1, v = 1, y = 1, b = 0, w = "", O = i, S = s, C = n, T = w; v; ) switch (g = b, b = Vl()) { case 40: - if (g != 108 && rs(T, f - 1) == 58) { + if (g != 108 && ns(T, f - 1) == 58) { X4(T += Rr(d_(b), "&", "&\f"), "&\f") != -1 && (y = -1); break; } @@ -1027,16 +1027,16 @@ function Z4(t, e, r, n, i, s, a, o, l) { case 10: case 13: case 32: - T += ixe(g); + T += sxe(g); break; case 92: - T += sxe(H4() - 1, 7); + T += axe(H4() - 1, 7); continue; case 47: switch (w0()) { case 42: case 47: - Jv(cxe(axe(Vl(), H4()), e, r, l), l); + ey(uxe(oxe(Vl(), H4()), e, r, l), l); break; default: T += "/"; @@ -1052,21 +1052,21 @@ function Z4(t, e, r, n, i, s, a, o, l) { case 125: v = 0; case 59 + h: - y == -1 && (T = Rr(T, /\f/g, "")), p > 0 && Mc(T) - f && Jv(p > 32 ? rF(T + ";", n, r, f - 1, l) : rF(Rr(T, " ", "") + ";", n, r, f - 2, l), l); + y == -1 && (T = Rr(T, /\f/g, "")), p > 0 && Mc(T) - f && ey(p > 32 ? rF(T + ";", n, r, f - 1, l) : rF(Rr(T, " ", "") + ";", n, r, f - 2, l), l); break; case 59: T += ";"; default: - if (Jv(C = tF(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) + if (ey(C = tF(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) if (h === 0) Z4(T, e, C, C, O, s, f, o, S); else - switch (d === 99 && rs(T, 3) === 110 ? 100 : d) { + switch (d === 99 && ns(T, 3) === 110 ? 100 : d) { case 100: case 108: case 109: case 115: - Z4(t, C, C, n && Jv(tF(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); + Z4(t, C, C, n && ey(tF(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); break; default: Z4(T, C, C, C, [""], S, 0, o, S); @@ -1080,7 +1080,7 @@ function Z4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && txe() == 125) + else if (b == 125 && m++ == 0 && rxe() == 125) continue; } switch (T += FM(b), b * m) { @@ -1091,7 +1091,7 @@ function Z4(t, e, r, n, i, s, a, o, l) { o[u++] = (Mc(T) - 1) * y, y = 1; break; case 64: - w0() === 45 && (T += d_(Vl())), d = w0(), h = f = Mc(w = T += oxe(H4())), b++; + w0() === 45 && (T += d_(Vl())), d = w0(), h = f = Mc(w = T += lxe(H4())), b++; break; case 45: g === 45 && Mc(T) == 2 && (m = 0); @@ -1101,18 +1101,18 @@ function Z4(t, e, r, n, i, s, a, o, l) { } function tF(t, e, r, n, i, s, a, o, l, u, h, f) { for (var d = i - 1, p = i === 0 ? s : [""], g = nK(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = am(t, d + 1, d = jbe(v = a[m])), O = t; b < g; ++b) + for (var b = 0, w = om(t, d + 1, d = Kbe(v = a[m])), O = t; b < g; ++b) (O = rK(v > 0 ? p[b] + " " + w : Rr(w, /&\f/g, p[b]))) && (l[y++] = O); return RT(t, e, r, i === 0 ? AT : o, l, u, h, f); } -function cxe(t, e, r, n) { - return RT(t, e, r, eK, FM(exe()), am(t, 2, -2), 0, n); +function uxe(t, e, r, n) { + return RT(t, e, r, eK, FM(txe()), om(t, 2, -2), 0, n); } function rF(t, e, r, n, i) { - return RT(t, e, r, BM, am(t, 0, n), am(t, n + 1, -1), n, i); + return RT(t, e, r, BM, om(t, 0, n), om(t, n + 1, -1), n, i); } function sK(t, e, r) { - switch (Kbe(t, e)) { + switch (Jbe(t, e)) { case 5103: return jr + "print-" + t + t; case 5737: @@ -1150,7 +1150,7 @@ function sK(t, e, r) { case 2756: return jr + t + Ry + t + An + t + t; case 5936: - switch (rs(t, e + 11)) { + switch (ns(t, e + 11)) { case 114: return jr + t + An + Rr(t, /[svh]\w+-[tblr]{2}/, "tb") + t; case 108: @@ -1187,7 +1187,7 @@ function sK(t, e, r) { return Rr(Rr(t, /(.+:)(flex-)?(.*)/, jr + "box-pack:$3" + An + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + jr + t + t; case 4200: if (!$u(t, /flex-|baseline/)) - return An + "grid-column-align" + am(t, e) + t; + return An + "grid-column-align" + om(t, e) + t; break; case 2592: case 3360: @@ -1220,12 +1220,12 @@ function sK(t, e, r) { case 5021: case 4765: if (Mc(t) - 1 - e > 6) - switch (rs(t, e + 1)) { + switch (ns(t, e + 1)) { case 109: - if (rs(t, e + 4) !== 45) + if (ns(t, e + 4) !== 45) break; case 102: - return Rr(t, /(.+:)(.+)-([^]+)/, "$1" + jr + "$2-$3$1" + Ry + (rs(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; + return Rr(t, /(.+:)(.+)-([^]+)/, "$1" + jr + "$2-$3$1" + Ry + (ns(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; case 115: return ~X4(t, "stretch") ? sK(Rr(t, "stretch", "fill-available"), e, r) + t : t; } @@ -1236,13 +1236,13 @@ function sK(t, e, r) { return An + i + ":" + s + u + (a ? An + i + "-span:" + (o ? l : +l - +s) + u : "") + t; }); case 4949: - if (rs(t, e + 6) === 121) + if (ns(t, e + 6) === 121) return Rr(t, ":", ":" + jr) + t; break; case 6444: - switch (rs(t, rs(t, 14) === 45 ? 18 : 11)) { + switch (ns(t, ns(t, 14) === 45 ? 18 : 11)) { case 120: - return Rr(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + jr + (rs(t, 14) === 45 ? "inline-" : "") + "box$3$1" + jr + "$2$3$1" + An + "$2box$3") + t; + return Rr(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + jr + (ns(t, 14) === 45 ? "inline-" : "") + "box$3$1" + jr + "$2$3$1" + An + "$2box$3") + t; case 100: return Rr(t, ":", ":" + An) + t; } @@ -1261,12 +1261,12 @@ function hk(t, e) { r += e(t[n], n, t, e) || ""; return r; } -function uxe(t, e, r, n) { +function hxe(t, e, r, n) { switch (t.type) { - case Zbe: + case jbe: if (t.children.length) break; - case Hbe: + case Zbe: case BM: return t.return = t.return || t.value; case eK: @@ -1279,7 +1279,7 @@ function uxe(t, e, r, n) { } return Mc(r = hk(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -function hxe(t) { +function fxe(t) { var e = nK(t); return function(r, n, i, s) { for (var a = "", o = 0; o < e; o++) @@ -1287,12 +1287,12 @@ function hxe(t) { return a; }; } -function fxe(t) { +function dxe(t) { return function(e) { e.root || (e = e.return) && t(e); }; } -function dxe(t, e, r, n) { +function pxe(t, e, r, n) { if (t.length > -1 && !t.return) switch (t.type) { case BM: @@ -1302,21 +1302,21 @@ function dxe(t, e, r, n) { return hk([Xh(t, { value: Rr(t.value, "@", "@" + jr) })], n); case AT: if (t.length) - return Jbe(r = t.props, function(i) { + return exe(r = t.props, function(i) { switch ($u(i, n = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": - qp(Xh(t, { props: [Rr(i, /:(read-\w+)/, ":" + Ry + "$1")] })), qp(Xh(t, { props: [i] })), D7(t, { props: eF(r, n) }); + Yp(Xh(t, { props: [Rr(i, /:(read-\w+)/, ":" + Ry + "$1")] })), Yp(Xh(t, { props: [i] })), D7(t, { props: eF(r, n) }); break; case "::placeholder": - qp(Xh(t, { props: [Rr(i, /:(plac\w+)/, ":" + jr + "input-$1")] })), qp(Xh(t, { props: [Rr(i, /:(plac\w+)/, ":" + Ry + "$1")] })), qp(Xh(t, { props: [Rr(i, /:(plac\w+)/, An + "input-$1")] })), qp(Xh(t, { props: [i] })), D7(t, { props: eF(r, n) }); + Yp(Xh(t, { props: [Rr(i, /:(plac\w+)/, ":" + jr + "input-$1")] })), Yp(Xh(t, { props: [Rr(i, /:(plac\w+)/, ":" + Ry + "$1")] })), Yp(Xh(t, { props: [Rr(i, /:(plac\w+)/, An + "input-$1")] })), Yp(Xh(t, { props: [i] })), D7(t, { props: eF(r, n) }); break; } return ""; }); } } -var pxe = { +var gxe = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -1363,8 +1363,8 @@ var pxe = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, L0 = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", aK = "active", oK = "data-styled-version", DT = "6.1.2", zM = `/*!sc*/ -`, QM = typeof window < "u" && "HTMLElement" in window, gxe = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), nF = /invalid hook call/i, tO = /* @__PURE__ */ new Set(), mxe = function(t, e) { +}, R0 = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", aK = "active", oK = "data-styled-version", DT = "6.1.2", zM = `/*!sc*/ +`, QM = typeof window < "u" && "HTMLElement" in window, mxe = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), nF = /invalid hook call/i, tO = /* @__PURE__ */ new Set(), vxe = function(t, e) { if ({}.NODE_ENV !== "production") { var r = e ? ' with the id of "'.concat(e, '"') : "", n = "The component ".concat(t).concat(r, ` has been created dynamically. `) + `You may see this warning because you've called styled inside another component. @@ -1374,30 +1374,30 @@ To resolve this only create new StyledComponents outside of any render method an console.error = function(a) { for (var o = [], l = 1; l < arguments.length; l++) o[l - 1] = arguments[l]; - nF.test(a) ? (s = !1, tO.delete(n)) : i.apply(void 0, sm([a], o, !1)); - }, Ss(), s && !tO.has(n) && (console.warn(n), tO.add(n)); + nF.test(a) ? (s = !1, tO.delete(n)) : i.apply(void 0, am([a], o, !1)); + }, Ts(), s && !tO.has(n) && (console.warn(n), tO.add(n)); } catch (a) { nF.test(a.message) && tO.delete(n); } finally { console.error = i; } } -}, PT = Object.freeze([]), lm = Object.freeze({}); -function vxe(t, e, r) { - return r === void 0 && (r = lm), t.theme !== r.theme && t.theme || e || r.theme; +}, PT = Object.freeze([]), cm = Object.freeze({}); +function yxe(t, e, r) { + return r === void 0 && (r = cm), t.theme !== r.theme && t.theme || e || r.theme; } -var I7 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), yxe = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, bxe = /(^-|-$)/g; +var I7 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), bxe = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, xxe = /(^-|-$)/g; function iF(t) { - return t.replace(yxe, "-").replace(bxe, ""); + return t.replace(bxe, "-").replace(xxe, ""); } -var xxe = /(a)(d)/gi, rO = 52, sF = function(t) { +var wxe = /(a)(d)/gi, rO = 52, sF = function(t) { return String.fromCharCode(t + (t > 25 ? 39 : 97)); }; function $7(t) { var e, r = ""; for (e = Math.abs(t); e > rO; e = e / rO | 0) r = sF(e % rO) + r; - return (sF(e % rO) + r).replace(xxe, "$1-$2"); + return (sF(e % rO) + r).replace(wxe, "$1-$2"); } var p_, lK = 5381, Gd = function(t, e) { for (var r = e.length; r; ) @@ -1406,7 +1406,7 @@ var p_, lK = 5381, Gd = function(t, e) { }, cK = function(t) { return Gd(lK, t); }; -function wxe(t) { +function Oxe(t) { return $7(cK(t) >>> 0); } function uK(t) { @@ -1415,26 +1415,26 @@ function uK(t) { function g_(t) { return typeof t == "string" && ({}.NODE_ENV === "production" || t.charAt(0) === t.charAt(0).toLowerCase()); } -var hK = typeof Symbol == "function" && Symbol.for, fK = hK ? Symbol.for("react.memo") : 60115, Oxe = hK ? Symbol.for("react.forward_ref") : 60112, kxe = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Sxe = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, dK = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Txe = ((p_ = {})[Oxe] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, p_[fK] = dK, p_); +var hK = typeof Symbol == "function" && Symbol.for, fK = hK ? Symbol.for("react.memo") : 60115, kxe = hK ? Symbol.for("react.forward_ref") : 60112, Sxe = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Txe = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, dK = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Cxe = ((p_ = {})[kxe] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, p_[fK] = dK, p_); function aF(t) { - return ("type" in (e = t) && e.type.$$typeof) === fK ? dK : "$$typeof" in t ? Txe[t.$$typeof] : kxe; + return ("type" in (e = t) && e.type.$$typeof) === fK ? dK : "$$typeof" in t ? Cxe[t.$$typeof] : Sxe; var e; } -var Cxe = Object.defineProperty, Exe = Object.getOwnPropertyNames, oF = Object.getOwnPropertySymbols, _xe = Object.getOwnPropertyDescriptor, Axe = Object.getPrototypeOf, lF = Object.prototype; +var Exe = Object.defineProperty, _xe = Object.getOwnPropertyNames, oF = Object.getOwnPropertySymbols, Axe = Object.getOwnPropertyDescriptor, Lxe = Object.getPrototypeOf, lF = Object.prototype; function pK(t, e, r) { if (typeof e != "string") { if (lF) { - var n = Axe(e); + var n = Lxe(e); n && n !== lF && pK(t, n, r); } - var i = Exe(e); + var i = _xe(e); oF && (i = i.concat(oF(e))); for (var s = aF(t), a = aF(e), o = 0; o < i.length; ++o) { var l = i[o]; - if (!(l in Sxe || r && r[l] || a && l in a || s && l in s)) { - var u = _xe(e, l); + if (!(l in Txe || r && r[l] || a && l in a || s && l in s)) { + var u = Axe(e, l); try { - Cxe(t, l, u); + Exe(t, l, u); } catch { } } @@ -1442,7 +1442,7 @@ function pK(t, e, r) { } return t; } -function cm(t) { +function um(t) { return typeof t == "function"; } function UM(t) { @@ -1458,16 +1458,16 @@ function cF(t, e) { r += e ? e + t[n] : t[n]; return r; } -function um(t) { +function hm(t) { return t !== null && typeof t == "object" && t.constructor.name === Object.name && !("props" in t && t.$$typeof); } function B7(t, e, r) { - if (r === void 0 && (r = !1), !r && !um(t) && !Array.isArray(t)) + if (r === void 0 && (r = !1), !r && !hm(t) && !Array.isArray(t)) return e; if (Array.isArray(e)) for (var n = 0; n < e.length; n++) t[n] = B7(t[n], e[n]); - else if (um(e)) + else if (hm(e)) for (var n in e) t[n] = B7(t[n], e[n]); return t; @@ -1475,7 +1475,7 @@ function B7(t, e, r) { function VM(t, e) { Object.defineProperty(t, "toString", { value: e }); } -var Lxe = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. +var Rxe = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle. @@ -1517,7 +1517,7 @@ as for instance in your render method then you may be running into this limitati `, 17: `CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `, 18: "ThemeProvider: Please make sure your useTheme hook is within a ``" } : {}; -function Rxe() { +function Mxe() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; for (var r = t[0], n = [], i = 1, s = t.length; i < s; i += 1) @@ -1526,12 +1526,12 @@ function Rxe() { r = r.replace(/%[a-z]/, a); }), r; } -function y1(t) { +function b1(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; - return {}.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Rxe.apply(void 0, sm([Lxe[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(Mxe.apply(void 0, am([Rxe[t]], e, !1)).trim()); } -var Mxe = function() { +var Dxe = function() { function t(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e; } @@ -1543,7 +1543,7 @@ var Mxe = function() { if (e >= this.groupSizes.length) { for (var n = this.groupSizes, i = n.length, s = i; e >= s; ) if ((s <<= 1) < 0) - throw y1(16, "".concat(e)); + throw b1(16, "".concat(e)); this.groupSizes = new Uint32Array(s), this.groupSizes.set(n), this.length = s; for (var a = i; a < s; a++) this.groupSizes[a] = 0; @@ -1572,38 +1572,38 @@ var Mxe = function() { K4++; var e = K4++; if ({}.NODE_ENV !== "production" && ((0 | e) < 0 || e > 1073741824)) - throw y1(16, "".concat(e)); + throw b1(16, "".concat(e)); return j4.set(t, e), fk.set(e, t), e; -}, Dxe = function(t, e) { +}, Pxe = function(t, e) { K4 = e + 1, j4.set(t, e), fk.set(e, t); -}, Pxe = "style[".concat(L0, "][").concat(oK, '="').concat(DT, '"]'), Nxe = new RegExp("^".concat(L0, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Ixe = function(t, e, r) { +}, Nxe = "style[".concat(R0, "][").concat(oK, '="').concat(DT, '"]'), Ixe = new RegExp("^".concat(R0, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), $xe = function(t, e, r) { for (var n, i = r.split(","), s = 0, a = i.length; s < a; s++) (n = i[s]) && t.registerName(e, n); -}, $xe = function(t, e) { +}, Bxe = function(t, e) { for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(zM), i = [], s = 0, a = n.length; s < a; s++) { var o = n[s].trim(); if (o) { - var l = o.match(Nxe); + var l = o.match(Ixe); if (l) { var u = 0 | parseInt(l[1], 10), h = l[2]; - u !== 0 && (Dxe(h, u), Ixe(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; + u !== 0 && (Pxe(h, u), $xe(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; } else i.push(o); } } }; -function Bxe() { +function Fxe() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } var gK = function(t) { var e = document.head, r = t || e, n = document.createElement("style"), i = function(o) { - var l = Array.from(o.querySelectorAll("style[".concat(L0, "]"))); + var l = Array.from(o.querySelectorAll("style[".concat(R0, "]"))); return l[l.length - 1]; }(r), s = i !== void 0 ? i.nextSibling : null; - n.setAttribute(L0, aK), n.setAttribute(oK, DT); - var a = Bxe(); + n.setAttribute(R0, aK), n.setAttribute(oK, DT); + var a = Fxe(); return a && n.setAttribute("nonce", a), r.insertBefore(n, s), n; -}, Fxe = function() { +}, zxe = function() { function t(e) { this.element = gK(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { if (r.sheet) @@ -1613,7 +1613,7 @@ var gK = function(t) { if (a.ownerNode === r) return a; } - throw y1(17); + throw b1(17); }(this.element), this.length = 0; } return t.prototype.insertRule = function(e, r) { @@ -1628,7 +1628,7 @@ var gK = function(t) { var r = this.sheet.cssRules[e]; return r && r.cssText ? r.cssText : ""; }, t; -}(), zxe = function() { +}(), Qxe = function() { function t(e) { this.element = gK(e), this.nodes = this.element.childNodes, this.length = 0; } @@ -1643,7 +1643,7 @@ var gK = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, t; -}(), Qxe = function() { +}(), Uxe = function() { function t(e) { this.rules = [], this.length = 0; } @@ -1654,14 +1654,14 @@ var gK = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, t; -}(), uF = QM, Uxe = { isServer: !QM, useCSSOMInjection: !gxe }, mK = function() { +}(), uF = QM, Vxe = { isServer: !QM, useCSSOMInjection: !mxe }, mK = function() { function t(e, r, n) { - e === void 0 && (e = lm), r === void 0 && (r = {}); + e === void 0 && (e = cm), r === void 0 && (r = {}); var i = this; - this.options = eo(eo({}, Uxe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && QM && uF && (uF = !1, function(s) { - for (var a = document.querySelectorAll(Pxe), o = 0, l = a.length; o < l; o++) { + this.options = eo(eo({}, Vxe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && QM && uF && (uF = !1, function(s) { + for (var a = document.querySelectorAll(Nxe), o = 0, l = a.length; o < l; o++) { var u = a[o]; - u && u.getAttribute(L0) !== aK && ($xe(s, u), u.parentNode && u.parentNode.removeChild(u)); + u && u.getAttribute(R0) !== aK && (Bxe(s, u), u.parentNode && u.parentNode.removeChild(u)); } }(this)), VM(this, function() { return function(s) { @@ -1674,7 +1674,7 @@ var gK = function(t) { var p = s.names.get(d), g = a.getGroup(f); if (p === void 0 || g.length === 0) return "continue"; - var m = "".concat(L0, ".g").concat(f, '[id="').concat(d, '"]'), v = ""; + var m = "".concat(R0, ".g").concat(f, '[id="').concat(d, '"]'), v = ""; p !== void 0 && p.forEach(function(y) { y.length > 0 && (v += "".concat(y, ",")); }), l += "".concat(g).concat(m, '{content:"').concat(v, '"}').concat(zM); @@ -1693,8 +1693,8 @@ var gK = function(t) { }, t.prototype.getTag = function() { return this.tag || (this.tag = (e = function(r) { var n = r.useCSSOMInjection, i = r.target; - return r.isServer ? new Qxe(i) : n ? new Fxe(i) : new zxe(i); - }(this.options), new Mxe(e))); + return r.isServer ? new Uxe(i) : n ? new zxe(i) : new Qxe(i); + }(this.options), new Dxe(e))); var e; }, t.prototype.hasNameForId = function(e, r) { return this.names.has(e) && this.names.get(e).has(r); @@ -1714,7 +1714,7 @@ var gK = function(t) { }, t.prototype.clearTag = function() { this.tag = void 0; }, t; -}(), Vxe = /&/g, qxe = /^\s*\/\/.*$/gm; +}(), qxe = /&/g, Yxe = /^\s*\/\/.*$/gm; function vK(t, e) { return t.map(function(r) { return r.type === "rule" && (r.value = "".concat(e, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(e, " ")), r.props = r.props.map(function(n) { @@ -1723,28 +1723,28 @@ function vK(t, e) { }); } function yK(t) { - var e, r, n, i = t === void 0 ? lm : t, s = i.options, a = s === void 0 ? lm : s, o = i.plugins, l = o === void 0 ? PT : o, u = function(d, p, g) { + var e, r, n, i = t === void 0 ? cm : t, s = i.options, a = s === void 0 ? cm : s, o = i.plugins, l = o === void 0 ? PT : o, u = function(d, p, g) { return g === r || g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(e) : d; }, h = l.slice(); h.push(function(d) { - d.type === AT && d.value.includes("&") && (d.props[0] = d.props[0].replace(Vxe, r).replace(n, u)); - }), a.prefix && h.push(dxe), h.push(uxe); + d.type === AT && d.value.includes("&") && (d.props[0] = d.props[0].replace(qxe, r).replace(n, u)); + }), a.prefix && h.push(pxe), h.push(hxe); var f = function(d, p, g, m) { p === void 0 && (p = ""), g === void 0 && (g = ""), m === void 0 && (m = "&"), e = m, r = p, n = new RegExp("\\".concat(r, "\\b"), "g"); - var v = d.replace(qxe, ""), y = lxe(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); + var v = d.replace(Yxe, ""), y = cxe(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); a.namespace && (y = vK(y, a.namespace)); var b = []; - return hk(y, hxe(h.concat(fxe(function(w) { + return hk(y, fxe(h.concat(dxe(function(w) { return b.push(w); })))), b; }; return f.hash = l.length ? l.reduce(function(d, p) { - return p.name || y1(15), Gd(d, p.name); + return p.name || b1(15), Gd(d, p.name); }, lK).toString() : "", f; } -var Yxe = new mK(), F7 = yK(), qM = A0.createContext({ shouldForwardProp: void 0, styleSheet: Yxe, stylis: F7 }); +var Wxe = new mK(), F7 = yK(), qM = L0.createContext({ shouldForwardProp: void 0, styleSheet: Wxe, stylis: F7 }); qM.Consumer; -var Wxe = A0.createContext(void 0); +var Gxe = L0.createContext(void 0); function z7() { return cc(qM); } @@ -1756,12 +1756,12 @@ function bK(t) { return yK({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); }, [t.enableVendorPrefixes, t.namespace, r]); ri(function() { - Xbe(r, t.stylisPlugins) || n(t.stylisPlugins); + Hbe(r, t.stylisPlugins) || n(t.stylisPlugins); }, [t.stylisPlugins]); var o = vi(function() { return { shouldForwardProp: t.shouldForwardProp, styleSheet: s, stylis: a }; }, [t.shouldForwardProp, s, a]); - return A0.createElement(qM.Provider, { value: o }, A0.createElement(Wxe.Provider, { value: a }, t.children)); + return L0.createElement(qM.Provider, { value: o }, L0.createElement(Gxe.Provider, { value: a }, t.children)); } var hF = function() { function t(e, r) { @@ -1771,13 +1771,13 @@ var hF = function() { var a = n.name + s.hash; i.hasNameForId(n.id, a) || i.insertRules(n.id, a, s(n.rules, a, "@keyframes")); }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = r, VM(this, function() { - throw y1(12, String(n.name)); + throw b1(12, String(n.name)); }); } return t.prototype.getName = function(e) { return e === void 0 && (e = F7), this.name + e.hash; }, t; -}(), Gxe = function(t) { +}(), Xxe = function(t) { return t >= "A" && t <= "Z"; }; function fF(t) { @@ -1785,7 +1785,7 @@ function fF(t) { var n = t[r]; if (r === 1 && n === "-" && t[0] === "-") return t; - Gxe(n) ? e += "-" + n.toLowerCase() : e += n; + Xxe(n) ? e += "-" + n.toLowerCase() : e += n; } return e.startsWith("ms-") ? "-" + e : e; } @@ -1795,7 +1795,7 @@ var xK = function(t) { var e, r, n = []; for (var i in t) { var s = t[i]; - t.hasOwnProperty(i) && !xK(s) && (Array.isArray(s) && s.isCss || cm(s) ? n.push("".concat(fF(i), ":"), s, ";") : um(s) ? n.push.apply(n, sm(sm(["".concat(i, " {")], wK(s), !1), ["}"], !1)) : n.push("".concat(fF(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in pxe || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); + t.hasOwnProperty(i) && !xK(s) && (Array.isArray(s) && s.isCss || um(s) ? n.push("".concat(fF(i), ":"), s, ";") : hm(s) ? n.push.apply(n, am(am(["".concat(i, " {")], wK(s), !1), ["}"], !1)) : n.push("".concat(fF(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in gxe || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); } return n; }; @@ -1804,28 +1804,28 @@ function O0(t, e, r, n) { return []; if (UM(t)) return [".".concat(t.styledComponentId)]; - if (cm(t)) { - if (!cm(s = t) || s.prototype && s.prototype.isReactComponent || !e) + if (um(t)) { + if (!um(s = t) || s.prototype && s.prototype.isReactComponent || !e) return [t]; var i = t(e); - return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof hF || um(i) || i === null || console.error("".concat(uK(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), O0(i, e, r, n); + return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof hF || hm(i) || i === null || console.error("".concat(uK(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), O0(i, e, r, n); } var s; - return t instanceof hF ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : um(t) ? wK(t) : Array.isArray(t) ? Array.prototype.concat.apply(PT, t.map(function(a) { + return t instanceof hF ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : hm(t) ? wK(t) : Array.isArray(t) ? Array.prototype.concat.apply(PT, t.map(function(a) { return O0(a, e, r, n); })) : [t.toString()]; } -function Xxe(t) { +function Hxe(t) { for (var e = 0; e < t.length; e += 1) { var r = t[e]; - if (cm(r) && !UM(r)) + if (um(r) && !UM(r)) return !1; } return !0; } -var Hxe = cK(DT), Zxe = function() { +var Zxe = cK(DT), jxe = function() { function t(e, r, n) { - this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Xxe(e), this.componentId = r, this.baseHash = Gd(Hxe, r), this.baseStyle = n, mK.registerId(r); + this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Hxe(e), this.componentId = r, this.baseHash = Gd(Zxe, r), this.baseStyle = n, mK.registerId(r); } return t.prototype.generateAndInjectStyles = function(e, r, n) { var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, r, n) : ""; @@ -1857,14 +1857,14 @@ var Hxe = cK(DT), Zxe = function() { } return i; }, t; -}(), OK = A0.createContext(void 0); +}(), OK = L0.createContext(void 0); OK.Consumer; var m_ = {}, dF = /* @__PURE__ */ new Set(); -function jxe(t, e, r) { +function Kxe(t, e, r) { var n = UM(t), i = t, s = !g_(t), a = e.attrs, o = a === void 0 ? PT : a, l = e.componentId, u = l === void 0 ? function(O, S) { var C = typeof O != "string" ? "sc" : iF(O); m_[C] = (m_[C] || 0) + 1; - var T = "".concat(C, "-").concat(wxe(DT + C + m_[C])); + var T = "".concat(C, "-").concat(Oxe(DT + C + m_[C])); return S ? "".concat(S, "-").concat(T) : T; }(e.displayName, e.parentComponentId) : l, h = e.displayName, f = h === void 0 ? function(O) { return g_(O) ? "styled.".concat(O) : "Styled(".concat(uK(O), ")"); @@ -1879,32 +1879,32 @@ function jxe(t, e, r) { } else g = m; } - var y = new Zxe(r, d, n ? i.componentStyle : void 0); + var y = new jxe(r, d, n ? i.componentStyle : void 0); function b(O, S) { return function(C, T, A) { - var E = C.attrs, R = C.componentStyle, _ = C.defaultProps, L = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, P = A0.useContext(OK), M = z7(), N = C.shouldForwardProp || M.shouldForwardProp; + var E = C.attrs, R = C.componentStyle, _ = C.defaultProps, L = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, P = L0.useContext(OK), M = z7(), N = C.shouldForwardProp || M.shouldForwardProp; ({}).NODE_ENV !== "production" && A7($); - var D = function(W, J, Y) { - for (var re, se = eo(eo({}, J), { className: void 0, theme: Y }), U = 0; U < W.length; U += 1) { - var Z = cm(re = W[U]) ? re(se) : re; + var D = function(W, K, Y) { + for (var te, se = eo(eo({}, K), { className: void 0, theme: Y }), V = 0; V < W.length; V += 1) { + var Z = um(te = W[V]) ? te(se) : te; for (var G in Z) se[G] = G === "className" ? s0(se[G], Z[G]) : G === "style" ? eo(eo({}, se[G]), Z[G]) : Z[G]; } - return J.className && (se.className = s0(se.className, J.className)), se; - }(E, T, vxe(T, P, _) || lm), I = D.as || k, B = {}; - for (var F in D) - D[F] === void 0 || F[0] === "$" || F === "as" || F === "theme" || (F === "forwardedAs" ? B.as = D.forwardedAs : N && !N(F, I) || (B[F] = D[F], N || {}.NODE_ENV !== "development" || dbe(F) || dF.has(F) || !I7.has(I) || (dF.add(F), console.warn('styled-components: it looks like an unknown prop "'.concat(F, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); - var Q = function(W, J) { - var Y = z7(), re = W.generateAndInjectStyles(J, Y.styleSheet, Y.stylis); - return {}.NODE_ENV !== "production" && A7(re), re; + return K.className && (se.className = s0(se.className, K.className)), se; + }(E, T, yxe(T, P, _) || cm), I = D.as || k, F = {}; + for (var B in D) + D[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" || (B === "forwardedAs" ? F.as = D.forwardedAs : N && !N(B, I) || (F[B] = D[B], N || {}.NODE_ENV !== "development" || pbe(B) || dF.has(B) || !I7.has(I) || (dF.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); + var U = function(W, K) { + var Y = z7(), te = W.generateAndInjectStyles(K, Y.styleSheet, Y.stylis); + return {}.NODE_ENV !== "production" && A7(te), te; }(R, D); - ({}).NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(Q); - var q = s0(L, $); - return Q && (q += " " + Q), D.className && (q += " " + D.className), B[g_(I) && !I7.has(I) ? "class" : "className"] = q, B.ref = A, iu(I, B); + ({}).NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(U); + var Q = s0(L, $); + return U && (Q += " " + U), D.className && (Q += " " + D.className), F[g_(I) && !I7.has(I) ? "class" : "className"] = Q, F.ref = A, iu(I, F); }(w, O, S); } b.displayName = f; - var w = A0.forwardRef(b); + var w = L0.forwardRef(b); return w.attrs = p, w.componentStyle = y, w.displayName = f, w.shouldForwardProp = g, w.foldedComponentIds = n ? s0(i.foldedComponentIds, i.styledComponentId) : "", w.styledComponentId = d, w.target = n ? i.target : t, Object.defineProperty(w, "defaultProps", { get: function() { return this._foldedDefaultProps; }, set: function(O) { @@ -1915,7 +1915,7 @@ function jxe(t, e, r) { B7(S, E[A], !0); return S; }({}, i.defaultProps, O) : O; - } }), {}.NODE_ENV !== "production" && (mxe(f, d), w.warnTooManyClasses = function(O, S) { + } }), {}.NODE_ENV !== "production" && (vxe(f, d), w.warnTooManyClasses = function(O, S) { var C = {}, T = !1; return function(A) { if (!T && (C[A] = !0, Object.keys(C).length >= 200)) { @@ -1947,18 +1947,18 @@ var gF = function(t) { function My(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; - if (cm(t) || um(t)) - return gF(O0(pF(PT, sm([t], e, !0)))); + if (um(t) || hm(t)) + return gF(O0(pF(PT, am([t], e, !0)))); var n = t; return e.length === 0 && n.length === 1 && typeof n[0] == "string" ? O0(n) : gF(O0(pF(n, e))); } function Q7(t, e, r) { - if (r === void 0 && (r = lm), !e) - throw y1(1, e); + if (r === void 0 && (r = cm), !e) + throw b1(1, e); var n = function(i) { for (var s = [], a = 1; a < arguments.length; a++) s[a - 1] = arguments[a]; - return t(e, r, My.apply(void 0, sm([i], s, !1))); + return t(e, r, My.apply(void 0, am([i], s, !1))); }; return n.attrs = function(i) { return Q7(t, e, eo(eo({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) })); @@ -1967,15 +1967,15 @@ function Q7(t, e, r) { }, n; } var kK = function(t) { - return Q7(jxe, t); -}, jt = kK; + return Q7(Kxe, t); +}, Ht = kK; I7.forEach(function(t) { - jt[t] = kK(t); + Ht[t] = kK(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'? Read more about this at https://www.styled-components.com/docs/basics#react-native`); -var iO = "__sc-".concat(L0, "__"); +var iO = "__sc-".concat(R0, "__"); ({}).NODE_ENV !== "production" && {}.NODE_ENV !== "test" && typeof window < "u" && (window[iO] || (window[iO] = 0), window[iO] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason. See https://s-c.sh/2BAXzed for more info.`), window[iO] += 1); @@ -1991,7 +1991,7 @@ class qr { return this.lineInner(e, !0, 1, 0); } replace(e, r, n) { - [e, r] = hm(this, e, r); + [e, r] = fm(this, e, r); let i = []; return this.decompose(0, e, i, 2), n.length && n.decompose(0, n.length, i, 3), this.decompose(r, this.length, i, 1), Nc.from(i, this.length - (r - e) + n.length); } @@ -1999,7 +1999,7 @@ class qr { return this.replace(this.length, this.length, e); } slice(e, r = this.length) { - [e, r] = hm(this, e, r); + [e, r] = fm(this, e, r); let n = []; return this.decompose(e, r, n, 0), Nc.from(n, r - e); } @@ -2049,7 +2049,7 @@ class qr { } } class ui extends qr { - constructor(e, r = Kxe(e)) { + constructor(e, r = Jxe(e)) { super(), this.text = e, this.length = r; } get lines() { @@ -2062,7 +2062,7 @@ class ui extends qr { for (let s = 0; ; s++) { let a = this.text[s], o = i + a.length; if ((r ? n : o) >= e) - return new Jxe(i, o, n, a); + return new ewe(i, o, n, a); i = o + 1, n++; } } @@ -2082,13 +2082,13 @@ class ui extends qr { replace(e, r, n) { if (!(n instanceof ui)) return super.replace(e, r, n); - [e, r] = hm(this, e, r); + [e, r] = fm(this, e, r); let i = J4(this.text, J4(n.text, mF(this.text, 0, e)), r), s = this.length + n.length - (r - e); return i.length <= 32 ? new ui(i, s) : Nc.from(ui.split(i, []), s); } sliceString(e, r = this.length, n = ` `) { - [e, r] = hm(this, e, r); + [e, r] = fm(this, e, r); let i = ""; for (let s = 0, a = 0; s <= r && a < this.text.length; a++) { let o = this.text[a], l = s + o.length; @@ -2135,7 +2135,7 @@ class Nc extends qr { } } replace(e, r, n) { - if ([e, r] = hm(this, e, r), n.lines < this.lines) + if ([e, r] = fm(this, e, r), n.lines < this.lines) for (let i = 0, s = 0; i < this.children.length; i++) { let a = this.children[i], o = s + a.length; if (e >= s && r <= o) { @@ -2152,7 +2152,7 @@ class Nc extends qr { } sliceString(e, r = this.length, n = ` `) { - [e, r] = hm(this, e, r); + [e, r] = fm(this, e, r); let i = ""; for (let s = 0, a = 0; s < this.children.length && a <= r; s++) { let o = this.children[s], l = a + o.length; @@ -2205,7 +2205,7 @@ class Nc extends qr { } } qr.empty = /* @__PURE__ */ new ui([""], 0); -function Kxe(t) { +function Jxe(t) { let e = -1; for (let r of t) e += r.length + 1; @@ -2289,7 +2289,7 @@ typeof Symbol < "u" && (qr.prototype[Symbol.iterator] = function() { }, Dy.prototype[Symbol.iterator] = SK.prototype[Symbol.iterator] = TK.prototype[Symbol.iterator] = function() { return this; }); -class Jxe { +class ewe { constructor(e, r, n, i) { this.from = e, this.to = r, this.number = n, this.text = i; } @@ -2297,37 +2297,37 @@ class Jxe { return this.to - this.from; } } -function hm(t, e, r) { +function fm(t, e, r) { return e = Math.max(0, Math.min(t.length, e)), [e, Math.max(e, Math.min(t.length, r))]; } -let Ag = /* @__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 < Ag.length; t++) - Ag[t] += Ag[t - 1]; -function ewe(t) { - for (let e = 1; e < Ag.length; e += 2) - if (Ag[e] > t) - return Ag[e - 1] <= t; +let Rg = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); +for (let t = 1; t < Rg.length; t++) + Rg[t] += Rg[t - 1]; +function twe(t) { + for (let e = 1; e < Rg.length; e += 2) + if (Rg[e] > t) + return Rg[e - 1] <= t; return !1; } function vF(t) { return t >= 127462 && t <= 127487; } const yF = 8205; -function Os(t, e, r = !0, n = !0) { - return (r ? CK : twe)(t, e, n); +function ks(t, e, r = !0, n = !0) { + return (r ? CK : rwe)(t, e, n); } function CK(t, e, r) { if (e == t.length) return e; e && EK(t.charCodeAt(e)) && _K(t.charCodeAt(e - 1)) && e--; - let n = bs(t, e); + let n = xs(t, e); for (e += Ho(n); e < t.length; ) { - let i = bs(t, e); - if (n == yF || i == yF || r && ewe(i)) + let i = xs(t, e); + if (n == yF || i == yF || r && twe(i)) e += Ho(i), n = i; else if (vF(i)) { let s = 0, a = e - 2; - for (; a >= 0 && vF(bs(t, a)); ) + for (; a >= 0 && vF(xs(t, a)); ) s++, a -= 2; if (s % 2 == 0) break; @@ -2337,7 +2337,7 @@ function CK(t, e, r) { } return e; } -function twe(t, e, r) { +function rwe(t, e, r) { for (; e > 0; ) { let n = CK(t, e - 2, r); if (n < e) @@ -2352,7 +2352,7 @@ function EK(t) { function _K(t) { return t >= 55296 && t < 56320; } -function bs(t, e) { +function xs(t, e) { let r = t.charCodeAt(e); if (!_K(r) || e + 1 == t.length) return r; @@ -2366,9 +2366,9 @@ function Ho(t) { return t < 65536 ? 1 : 2; } const U7 = /\r\n?|\n/; -var Fi = /* @__PURE__ */ function(t) { +var zi = /* @__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; -}(Fi || (Fi = {})); +}(zi || (zi = {})); class Kc { constructor(e) { this.sections = e; @@ -2413,7 +2413,7 @@ class Kc { mapDesc(e, r = !1) { return e.empty ? this : q7(this, e, r); } - mapPos(e, r = -1, n = Fi.Simple) { + mapPos(e, r = -1, n = zi.Simple) { let i = 0, s = 0; for (let a = 0; a < this.sections.length; ) { let o = this.sections[a++], l = this.sections[a++], u = i + o; @@ -2422,7 +2422,7 @@ class Kc { return s + (e - i); s += o; } else { - if (n != Fi.Simple && u >= e && (n == Fi.TrackDel && i < e && u > e || n == Fi.TrackBefore && i < e || n == Fi.TrackAfter && u > e)) + if (n != zi.Simple && u >= e && (n == zi.TrackDel && i < e && u > e || n == zi.TrackBefore && i < e || n == zi.TrackAfter && u > e)) return null; if (u > e || u == e && r < 0 && !o) return e == i || r < 0 ? s : s + l; @@ -2912,7 +2912,7 @@ function Y7(t, e) { Py(t, n) & 1 && (r = !0); return r; } -function rwe(t, e, r) { +function nwe(t, e, r) { let n = r.map((l) => t[l.id]), i = r.map((l) => l.type), s = n.filter((l) => !(l & 1)), a = t[e.id] >> 1; function o(l) { let u = []; @@ -2979,27 +2979,27 @@ class Xn { } } const Xd = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; -function pv(t) { +function gv(t) { return (e) => new RK(e, t); } const uc = { - highest: /* @__PURE__ */ pv(Xd.highest), - high: /* @__PURE__ */ pv(Xd.high), - default: /* @__PURE__ */ pv(Xd.default), - low: /* @__PURE__ */ pv(Xd.low), - lowest: /* @__PURE__ */ pv(Xd.lowest) + highest: /* @__PURE__ */ gv(Xd.highest), + high: /* @__PURE__ */ gv(Xd.high), + default: /* @__PURE__ */ gv(Xd.default), + low: /* @__PURE__ */ gv(Xd.low), + lowest: /* @__PURE__ */ gv(Xd.lowest) }; class RK { constructor(e, r) { this.inner = e, this.prec = r; } } -class gp { +class mp { of(e) { return new W7(this, e); } reconfigure(e) { - return gp.reconfigure.of({ compartment: this, extension: e }); + return mp.reconfigure.of({ compartment: this, extension: e }); } get(e) { return e.config.compartments.get(this); @@ -3021,7 +3021,7 @@ class dk { } static resolve(e, r, n) { let i = [], s = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ new Map(); - for (let d of nwe(e, r, a)) + for (let d of iwe(e, r, a)) d instanceof Xn ? i.push(d) : (s[d.facet.id] || (s[d.facet.id] = [])).push(d); let o = /* @__PURE__ */ Object.create(null), l = [], u = []; for (let d of i) @@ -3039,14 +3039,14 @@ class dk { else { for (let v of p) v.type == 0 ? (o[v.id] = l.length << 1 | 1, l.push(v.value)) : (o[v.id] = u.length << 1, u.push((y) => v.dynamicSlot(y))); - o[g.id] = u.length << 1, u.push((v) => rwe(v, g, p)); + o[g.id] = u.length << 1, u.push((v) => nwe(v, g, p)); } } let f = u.map((d) => d(o)); return new dk(e, a, f, o, l, s); } } -function nwe(t, e, r) { +function iwe(t, e, r) { let n = [[], [], [], [], []], i = /* @__PURE__ */ new Map(); function s(a, o) { let l = i.get(a); @@ -3108,15 +3108,15 @@ class co { this.type = e, this.value = r; } static define() { - return new iwe(); + return new swe(); } } -class iwe { +class swe { of(e) { return new co(this, e); } } -class swe { +class awe { constructor(e) { this.map = e; } @@ -3136,7 +3136,7 @@ class or { return this.type == e; } static define(e = {}) { - return new swe(e.map || ((r) => r)); + return new awe(e.map || ((r) => r)); } static mapEffects(e, r) { if (!e.length) @@ -3187,7 +3187,7 @@ Ei.time = /* @__PURE__ */ co.define(); Ei.userEvent = /* @__PURE__ */ co.define(); Ei.addToHistory = /* @__PURE__ */ co.define(); Ei.remote = /* @__PURE__ */ co.define(); -function awe(t, e) { +function owe(t, e) { let r = []; for (let n = 0, i = 0; ; ) { let s, a; @@ -3212,11 +3212,11 @@ function BK(t, e, r) { }; } function X7(t, e, r) { - let n = e.selection, i = Lg(e.annotations); + let n = e.selection, i = Mg(e.annotations); return e.userEvent && (i = i.concat(Ei.userEvent.of(e.userEvent))), { changes: e.changes instanceof wi ? e.changes : wi.of(e.changes || [], r, t.facet(DK)), selection: n && (n instanceof je ? n : je.single(n.anchor, n.head)), - effects: Lg(e.effects), + effects: Mg(e.effects), annotations: i, scrollIntoView: !!e.scrollIntoView }; @@ -3230,9 +3230,9 @@ function FK(t, e, r) { n = BK(n, X7(t, e[s], a ? n.changes.newLength : t.doc.length), a); } let i = Ei.create(t, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView); - return lwe(r ? owe(i) : i); + return cwe(r ? lwe(i) : i); } -function owe(t) { +function lwe(t) { let e = t.startState, r = !0; for (let i of e.facet(PK)) { let s = i(t); @@ -3240,7 +3240,7 @@ function owe(t) { r = !1; break; } - Array.isArray(s) && (r = r === !0 ? s : awe(r, s)); + Array.isArray(s) && (r = r === !0 ? s : owe(r, s)); } if (r !== !0) { let i, s; @@ -3255,11 +3255,11 @@ function owe(t) { let n = e.facet(NK); for (let i = n.length - 1; i >= 0; i--) { let s = n[i](t); - s instanceof Ei ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof Ei ? t = s[0] : t = FK(e, Lg(s), !1); + s instanceof Ei ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof Ei ? t = s[0] : t = FK(e, Mg(s), !1); } return t; } -function lwe(t) { +function cwe(t) { let e = t.startState, r = e.facet(IK), n = t; for (let i = r.length - 1; i >= 0; i--) { let s = r[i](t); @@ -3267,34 +3267,34 @@ function lwe(t) { } return n == t ? t : Ei.create(e, t.changes, t.selection, n.effects, n.annotations, n.scrollIntoView); } -const cwe = []; -function Lg(t) { - return t == null ? cwe : Array.isArray(t) ? t : [t]; +const uwe = []; +function Mg(t) { + return t == null ? uwe : Array.isArray(t) ? t : [t]; } var Fn = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; }(Fn || (Fn = {})); -const uwe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +const hwe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; let H7; try { H7 = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function hwe(t) { +function fwe(t) { if (H7) return H7.test(t); for (let e = 0; e < t.length; e++) { let r = t[e]; - if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || uwe.test(r))) + if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || hwe.test(r))) return !0; } return !1; } -function fwe(t) { +function dwe(t) { return (e) => { if (!/\S/.test(e)) return Fn.Space; - if (hwe(e)) + if (fwe(e)) return Fn.Word; for (let r = 0; r < t.length; r++) if (e.indexOf(t[r]) > -1) @@ -3324,7 +3324,7 @@ class Tr { applyTransaction(e) { let r = this.config, { base: n, compartments: i } = r; for (let o of e.effects) - o.is(gp.reconfigure) ? (r && (i = /* @__PURE__ */ new Map(), r.compartments.forEach((l, u) => i.set(u, l)), r = null), i.set(o.value.compartment, o.value.extension)) : o.is(or.reconfigure) ? (r = null, n = o.value) : o.is(or.appendConfig) && (r = null, n = Lg(n).concat(o.value)); + o.is(mp.reconfigure) ? (r && (i = /* @__PURE__ */ new Map(), r.compartments.forEach((l, u) => i.set(u, l)), r = null), i.set(o.value.compartment, o.value.extension)) : o.is(or.reconfigure) ? (r = null, n = o.value) : o.is(or.appendConfig) && (r = null, n = Mg(n).concat(o.value)); let s; r ? s = e.startState.values.slice() : (r = dk.resolve(n, i, this), s = new Tr(r, this.doc, this.selection, r.dynamicSlots.map(() => null), (l, u) => u.reconfigure(l, this), null).values); let a = e.startState.facet(G7) ? e.newSelection : e.newSelection.asSingle(); @@ -3337,13 +3337,13 @@ class Tr { })); } changeByRange(e) { - let r = this.selection, n = e(r.ranges[0]), i = this.changes(n.changes), s = [n.range], a = Lg(n.effects); + let r = this.selection, n = e(r.ranges[0]), i = this.changes(n.changes), s = [n.range], a = Mg(n.effects); for (let o = 1; o < r.ranges.length; o++) { let l = e(r.ranges[o]), u = this.changes(l.changes), h = u.map(i); for (let d = 0; d < o; d++) s[d] = s[d].map(h); let f = i.mapDesc(u, !0); - s.push(l.range.map(f)), i = i.compose(h), a = or.mapEffects(a, h).concat(or.mapEffects(Lg(l.effects), f)); + s.push(l.range.map(f)), i = i.compose(h), a = or.mapEffects(a, h).concat(or.mapEffects(Mg(l.effects), f)); } return { changes: i, @@ -3428,18 +3428,18 @@ class Tr { return i; } charCategorizer(e) { - return fwe(this.languageDataAt("wordChars", e).join("")); + return dwe(this.languageDataAt("wordChars", e).join("")); } wordAt(e) { let { text: r, from: n, length: i } = this.doc.lineAt(e), s = this.charCategorizer(e), a = e - n, o = e - n; for (; a > 0; ) { - let l = Os(r, a, !1); + let l = ks(r, a, !1); if (s(r.slice(l, a)) != Fn.Word) break; a = l; } for (; o < i; ) { - let l = Os(r, o); + let l = ks(r, o); if (s(r.slice(o, l)) != Fn.Word) break; o = l; @@ -3463,7 +3463,7 @@ Tr.languageData = MK; Tr.changeFilter = PK; Tr.transactionFilter = NK; Tr.transactionExtender = IK; -gp.reconfigure = /* @__PURE__ */ or.define(); +mp.reconfigure = /* @__PURE__ */ or.define(); function gu(t, e, r = {}) { let n = {}; for (let i of t) @@ -3481,7 +3481,7 @@ function gu(t, e, r = {}) { n[i] === void 0 && (n[i] = e[i]); return n; } -class R0 { +class M0 { eq(e) { return this == e; } @@ -3489,9 +3489,9 @@ class R0 { return u2.create(e, r, this); } } -R0.prototype.startSide = R0.prototype.endSide = 0; -R0.prototype.point = !1; -R0.prototype.mapMode = Fi.TrackDel; +M0.prototype.startSide = M0.prototype.endSide = 0; +M0.prototype.point = !1; +M0.prototype.mapMode = zi.TrackDel; class u2 { constructor(e, r, n) { this.from = e, this.to = r, this.value = n; @@ -3569,7 +3569,7 @@ class $r { return this; if (n && (r = r.slice().sort(Z7)), this.isEmpty) return r.length ? $r.of(r) : this; - let o = new zK(this, null, -1).goto(0), l = 0, u = [], h = new os(); + let o = new zK(this, null, -1).goto(0), l = 0, u = [], h = new ls(); for (; o.value || l < r.length; ) if (l < r.length && (o.from - r[l].from || o.startSide - r[l].value.startSide) >= 0) { let f = r[l++]; @@ -3614,7 +3614,7 @@ class $r { return h2.from(e).goto(r); } static compare(e, r, n, i, s = -1) { - let a = e.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), o = r.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), l = wF(a, o, n), u = new gv(a, l, s), h = new gv(o, l, s); + let a = e.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), o = r.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), l = wF(a, o, n), u = new mv(a, l, s), h = new mv(o, l, s); n.iterGaps((f, d, p) => OF(u, f, h, d, p, i)), n.empty && n.length == 0 && OF(u, 0, h, 0, 0, i); } static eq(e, r, n = 0, i) { @@ -3624,7 +3624,7 @@ class $r { return !1; if (!s.length) return !0; - let o = wF(s, a), l = new gv(s, o, 0).goto(n), u = new gv(a, o, 0).goto(n); + let o = wF(s, a), l = new mv(s, o, 0).goto(n), u = new mv(a, o, 0).goto(n); for (; ; ) { if (l.to != u.to || !j7(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point))) return !1; @@ -3634,7 +3634,7 @@ class $r { } } static spans(e, r, n, i, s = -1) { - let a = new gv(e, null, s).goto(r), o = r, l = a.openStart; + let a = new mv(e, null, s).goto(r), o = r, l = a.openStart; for (; ; ) { let u = Math.min(a.to, n); if (a.point) { @@ -3648,14 +3648,14 @@ class $r { } } static of(e, r = !1) { - let n = new os(); - for (let i of e instanceof u2 ? [e] : r ? dwe(e) : e) + let n = new ls(); + for (let i of e instanceof u2 ? [e] : r ? pwe(e) : e) n.add(i.from, i.to, i.value); return n.finish(); } } $r.empty = /* @__PURE__ */ new $r([], [], null, -1); -function dwe(t) { +function pwe(t) { if (t.length > 1) for (let e = t[0], r = 1; r < t.length; r++) { let n = t[r]; @@ -3666,7 +3666,7 @@ function dwe(t) { return t; } $r.empty.nextLayer = $r.empty; -class os { +class ls { finishChunk(e) { this.chunks.push(new XM(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 = []); } @@ -3674,7 +3674,7 @@ class os { 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; } add(e, r, n) { - this.addInner(e, r, n) || (this.nextLayer || (this.nextLayer = new os())).add(e, r, n); + this.addInner(e, r, n) || (this.nextLayer || (this.nextLayer = new ls())).add(e, r, n); } addInner(e, r, n) { let i = e - this.lastTo || n.startSide - this.last.endSide; @@ -3816,7 +3816,7 @@ function v_(t, e) { t[n] = r, t[e] = i, e = n; } } -class gv { +class mv { constructor(e, r, n) { this.minPoint = n, 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 = h2.from(e, r, n); } @@ -3927,7 +3927,7 @@ function kF(t, e) { function tc(t, e, r = t.length) { let n = 0; for (let i = 0; i < r; ) - t.charCodeAt(i) == 9 ? (n += e - n % e, i++) : (n++, i = Os(t, i)); + t.charCodeAt(i) == 9 ? (n += e - n % e, i++) : (n++, i = ks(t, i)); return n; } function K7(t, e, r, n) { @@ -3936,7 +3936,7 @@ function K7(t, e, r, n) { return i; if (i == t.length) break; - s += t.charCodeAt(i) == 9 ? r - s % r : 1, i = Os(t, i); + s += t.charCodeAt(i) == 9 ? r - s % r : 1, i = ks(t, i); } return n === !0 ? -1 : t.length; } @@ -3982,11 +3982,11 @@ class oh { } static mount(e, r, n) { let i = e[e8], s = n && n.nonce; - i ? s && i.setNonce(s) : i = new pwe(e, s), i.mount(Array.isArray(r) ? r : [r]); + i ? s && i.setNonce(s) : i = new gwe(e, s), i.mount(Array.isArray(r) ? r : [r]); } } let CF = /* @__PURE__ */ new Map(); -class pwe { +class gwe { constructor(e, r) { let n = e.ownerDocument || e, i = n.defaultView; if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) { @@ -4105,17 +4105,17 @@ var Pf = { 220: "|", 221: "}", 222: '"' -}, gwe = typeof navigator < "u" && /Mac/.test(navigator.platform), mwe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); -for (var xs = 0; xs < 10; xs++) - Pf[48 + xs] = Pf[96 + xs] = String(xs); -for (var xs = 1; xs <= 24; xs++) - Pf[xs + 111] = "F" + xs; -for (var xs = 65; xs <= 90; xs++) - Pf[xs] = String.fromCharCode(xs + 32), f2[xs] = String.fromCharCode(xs); +}, mwe = typeof navigator < "u" && /Mac/.test(navigator.platform), vwe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); +for (var ws = 0; ws < 10; ws++) + Pf[48 + ws] = Pf[96 + ws] = String(ws); +for (var ws = 1; ws <= 24; ws++) + Pf[ws + 111] = "F" + ws; +for (var ws = 65; ws <= 90; ws++) + Pf[ws] = String.fromCharCode(ws + 32), f2[ws] = String.fromCharCode(ws); for (var y_ in Pf) f2.hasOwnProperty(y_) || (f2[y_] = Pf[y_]); -function vwe(t) { - var e = gwe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || mwe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? f2 : Pf)[t.keyCode] || t.key || "Unidentified"; +function ywe(t) { + var e = mwe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || vwe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? f2 : Pf)[t.keyCode] || t.key || "Unidentified"; return r == "Esc" && (r = "Escape"), r == "Del" && (r = "Delete"), r == "Left" && (r = "ArrowLeft"), r == "Up" && (r = "ArrowUp"), r == "Right" && (r = "ArrowRight"), r == "Down" && (r = "ArrowDown"), r; } function gk(t) { @@ -4125,7 +4125,7 @@ function gk(t) { function t8(t, e) { return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1; } -function ywe(t) { +function bwe(t) { let e = t.activeElement; for (; e && e.shadowRoot; ) e = e.shadowRoot.activeElement; @@ -4141,7 +4141,7 @@ function t5(t, e) { } } function d2(t) { - return t.nodeType == 3 ? M0(t, 0, t.nodeValue.length).getClientRects() : t.nodeType == 1 ? t.getClientRects() : []; + return t.nodeType == 3 ? D0(t, 0, t.nodeValue.length).getClientRects() : t.nodeType == 1 ? t.getClientRects() : []; } function mk(t, e, r, n) { return r ? EF(t, e, r, n, -1) || EF(t, e, r, n, 1) : !1; @@ -4177,7 +4177,7 @@ function HM(t, e) { let r = e ? t.left : t.right; return { left: r, right: r, top: t.top, bottom: t.bottom }; } -function bwe(t) { +function xwe(t) { return { left: 0, right: t.innerWidth, @@ -4189,13 +4189,13 @@ function QK(t, e) { let r = e.width / t.offsetWidth, n = e.height / t.offsetHeight; return (r > 0.995 && r < 1.005 || !isFinite(r) || Math.abs(e.width - t.offsetWidth) < 1) && (r = 1), (n > 0.995 && n < 1.005 || !isFinite(n) || Math.abs(e.height - t.offsetHeight) < 1) && (n = 1), { scaleX: r, scaleY: n }; } -function xwe(t, e, r, n, i, s, a, o) { +function wwe(t, e, r, n, i, s, a, o) { let l = t.ownerDocument, u = l.defaultView || window; for (let h = t, f = !1; h && !f; ) if (h.nodeType == 1) { let d, p = h == l.body, g = 1, m = 1; if (p) - d = bwe(u); + d = xwe(u); else { if (/^(fixed|sticky)$/.test(getComputedStyle(h).position) && (f = !0), h.scrollHeight <= h.clientHeight && h.scrollWidth <= h.clientWidth) { h = h.assignedSlot || h.parentNode; @@ -4244,7 +4244,7 @@ function xwe(t, e, r, n, i, s, a, o) { else break; } -function wwe(t) { +function Owe(t) { let e = t.ownerDocument; for (let r = t.parentNode; r && r != e.body; ) if (r.nodeType == 1) { @@ -4257,7 +4257,7 @@ function wwe(t) { break; return null; } -class Owe { +class kwe { constructor() { this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0; } @@ -4272,21 +4272,21 @@ class Owe { this.anchorNode = e, this.anchorOffset = r, this.focusNode = n, this.focusOffset = i; } } -let Yp = null; +let Wp = null; function UK(t) { if (t.setActive) return t.setActive(); - if (Yp) - return t.focus(Yp); + if (Wp) + return t.focus(Wp); let e = []; for (let r = t; r && (e.push(r, r.scrollTop, r.scrollLeft), r != r.ownerDocument); r = r.parentNode) ; - if (t.focus(Yp == null ? { + if (t.focus(Wp == null ? { get preventScroll() { - return Yp = { preventScroll: !0 }, !0; + return Wp = { preventScroll: !0 }, !0; } - } : void 0), !Yp) { - Yp = !1; + } : void 0), !Wp) { + Wp = !1; for (let r = 0; r < e.length; ) { let n = e[r++], i = e[r++], s = e[r++]; n.scrollTop != i && (n.scrollTop = i), n.scrollLeft != s && (n.scrollLeft = s); @@ -4294,17 +4294,17 @@ function UK(t) { } } let _F; -function M0(t, e, r = e) { +function D0(t, e, r = e) { let n = _F || (_F = document.createRange()); return n.setEnd(t, r), n.setStart(t, e), n; } -function Rg(t, e, r) { +function Dg(t, e, r) { let n = { key: e, code: e, keyCode: r, which: r, cancelable: !0 }, i = new KeyboardEvent("keydown", n); i.synthetic = !0, t.dispatchEvent(i); let s = new KeyboardEvent("keyup", n); return s.synthetic = !0, t.dispatchEvent(s), i.defaultPrevented || s.defaultPrevented; } -function kwe(t) { +function Swe(t) { for (; t; ) { if (t && (t.nodeType == 9 || t.nodeType == 11 && t.host)) return t; @@ -4316,7 +4316,7 @@ function VK(t) { for (; t.attributes.length; ) t.removeAttributeNode(t.attributes[0]); } -function Swe(t, e) { +function Twe(t, e) { let r = e.focusNode, n = e.focusOffset; if (!r || e.anchorNode != r || e.anchorOffset != n) return !1; @@ -4584,7 +4584,7 @@ var Vt = { webkit_version: RF ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, tabSize: r8.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" }; -const Twe = 256; +const Cwe = 256; class ch extends Dn { constructor(e) { super(), this.text = e; @@ -4602,7 +4602,7 @@ class ch extends Dn { e.nodeType == 3 && this.createDOM(e); } merge(e, r, n) { - return this.flags & 8 || n && (!(n instanceof ch) || this.length - (r - e) + n.length > Twe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); + return this.flags & 8 || n && (!(n instanceof ch) || this.length - (r - e) + n.length > Cwe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); } split(e) { let r = new ch(this.text.slice(e)); @@ -4618,7 +4618,7 @@ class ch extends Dn { return { from: n, to: n + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling }; } coordsAt(e, r) { - return Cwe(this.dom, e, r); + return Ewe(this.dom, e, r); } } class uh extends Dn { @@ -4661,12 +4661,12 @@ class uh extends Dn { return KK(this, e, r); } } -function Cwe(t, e, r) { +function Ewe(t, e, r) { let n = t.nodeValue.length; e > n && (e = n); let i = e, s = e, a = 0; e == 0 && r < 0 || e == n && r >= 0 ? Vt.chrome || Vt.gecko || (e ? (i--, a = 1) : s < n && (s++, a = -1)) : r < 0 ? i-- : s < n && s++; - let o = M0(t, i, s).getClientRects(); + let o = D0(t, i, s).getClientRects(); if (!o.length) return null; let l = o[(a ? a < 0 : r >= 0) ? 0 : o.length - 1]; @@ -4741,7 +4741,7 @@ class cf extends Dn { super.destroy(), this.dom && this.widget.destroy(this.dom); } } -class fm extends Dn { +class dm extends Dn { constructor(e) { super(), this.side = e; } @@ -4752,10 +4752,10 @@ class fm extends Dn { return !1; } become(e) { - return e instanceof fm && e.side == this.side; + return e instanceof dm && e.side == this.side; } split() { - return new fm(this.side); + return new dm(this.side); } sync() { if (!this.dom) { @@ -4785,7 +4785,7 @@ class fm extends Dn { return !0; } } -ch.prototype.children = cf.prototype.children = fm.prototype.children = ZM; +ch.prototype.children = cf.prototype.children = dm.prototype.children = ZM; function ZK(t, e) { let r = t.dom, { children: n } = t, i = 0; for (let s = 0; i < n.length; i++) { @@ -4824,9 +4824,9 @@ function KK(t, e, r) { } o(t, e); let l = (r < 0 ? n : s) || n || s; - return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : Ewe(t); + return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : _we(t); } -function Ewe(t) { +function _we(t) { let e = t.dom.lastChild; if (!e) return t.dom.getBoundingClientRect(); @@ -4861,7 +4861,7 @@ function a8(t, e, r) { e && e[i] == r[i] || (n = !0, i == "style" ? t.style.cssText = r[i] : t.setAttribute(i, r[i])); return n; } -function _we(t) { +function Awe(t) { let e = /* @__PURE__ */ Object.create(null); for (let r = 0; r < t.attributes.length; r++) { let n = t.attributes[r]; @@ -5057,7 +5057,7 @@ class uo { var Ca = /* @__PURE__ */ function(t) { return t[t.Text = 0] = "Text", t[t.WidgetBefore = 1] = "WidgetBefore", t[t.WidgetAfter = 2] = "WidgetAfter", t[t.WidgetRange = 3] = "WidgetRange", t; }(Ca || (Ca = {})); -class It extends R0 { +class It extends M0 { constructor(e, r, n, i) { super(), this.startSide = e, this.endSide = r, this.widget = n, this.spec = i; } @@ -5121,11 +5121,11 @@ class Ix extends It { return super.range(e, r); } } -Ix.prototype.mapMode = Fi.TrackBefore; +Ix.prototype.mapMode = zi.TrackBefore; Ix.prototype.point = !0; class Nf extends It { constructor(e, r, n, i, s, a) { - super(r, n, s, e), this.block = i, this.isReplace = a, this.mapMode = i ? r <= 0 ? Fi.TrackBefore : Fi.TrackAfter : Fi.TrackDel; + super(r, n, s, e), this.block = i, this.isReplace = a, this.mapMode = i ? r <= 0 ? zi.TrackBefore : zi.TrackAfter : zi.TrackDel; } get type() { return this.startSide != this.endSide ? Ca.WidgetRange : this.startSide <= 0 ? Ca.WidgetBefore : Ca.WidgetAfter; @@ -5134,7 +5134,7 @@ class Nf extends It { return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0); } eq(e) { - return e instanceof Nf && Awe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; + return e instanceof Nf && Lwe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; } range(e, r = e) { if (this.isReplace && (e > r || e == r && this.startSide > 0 && this.endSide <= 0)) @@ -5149,7 +5149,7 @@ function JK(t, e = !1) { let { inclusiveStart: r, inclusiveEnd: n } = t; return r == null && (r = t.inclusive), n == null && (n = t.inclusive), { start: r != null ? r : e, end: n != null ? n : e }; } -function Awe(t, e) { +function Lwe(t, e) { return t == e || !!(t && e && t.compare(e)); } function o8(t, e, r, n = 0) { @@ -5170,7 +5170,7 @@ class Ny { return this.curLine || (this.content.push(this.curLine = new Pi()), this.atCursorPos = !0), this.curLine; } flushBuffer(e = this.bufferMarks) { - this.pendingBuffer && (this.curLine.append(oO(new fm(-1), e), e.length), this.pendingBuffer = 0); + this.pendingBuffer && (this.curLine.append(oO(new dm(-1), e), e.length), this.pendingBuffer = 0); } addBlockWidget(e) { this.flushBuffer(), this.curLine = null, this.content.push(e); @@ -5210,7 +5210,7 @@ class Ny { n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new xf(n.widget || new PF("div"), o, n)); else { let l = cf.create(n.widget || new PF("span"), o, o ? 0 : n.startSide), u = this.atCursorPos && !l.isEditable && s <= i.length && (e < r || n.startSide > 0), h = !l.isEditable && (e < r || s > i.length || n.startSide <= 0), f = this.getLine(); - this.pendingBuffer == 2 && !u && !l.isEditable && (this.pendingBuffer = 0), this.flushBuffer(i), u && (f.append(oO(new fm(1), i), s), s = i.length + Math.max(0, s - i.length)), f.append(oO(l, i), s), this.atCursorPos = h, this.pendingBuffer = h ? e < r || s > i.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = i.slice()); + this.pendingBuffer == 2 && !u && !l.isEditable && (this.pendingBuffer = 0), this.flushBuffer(i), u && (f.append(oO(new dm(1), i), s), s = i.length + Math.max(0, s - i.length)), f.append(oO(l, i), s), this.atCursorPos = h, this.pendingBuffer = h ? e < r || s > i.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = i.slice()); } else this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(n); @@ -5248,15 +5248,15 @@ const eJ = /* @__PURE__ */ $t.define(), tJ = /* @__PURE__ */ $t.define(), rJ = / }), oJ = /* @__PURE__ */ $t.define({ combine: (t) => t.some((e) => e) }); -class Mg { +class Pg { constructor(e, r = "nearest", n = "nearest", i = 5, s = 5, a = !1) { this.range = e, this.y = r, this.x = n, this.yMargin = i, this.xMargin = s, this.isSnapshot = a; } map(e) { - return e.empty ? this : new Mg(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot); + return e.empty ? this : new Pg(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot); } clip(e) { - return this.range.to <= e.doc.length ? this : new Mg(je.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot); + return this.range.to <= e.doc.length ? this : new Pg(je.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot); } } const lO = /* @__PURE__ */ or.define({ map: (t, e) => t.map(e) }); @@ -5265,16 +5265,16 @@ function al(t, e, r) { n.length ? n[0](e) : window.onerror ? window.onerror(String(e), r, void 0, void 0, e) : r ? console.error(r + ":", e) : console.error(e); } const IT = /* @__PURE__ */ $t.define({ combine: (t) => t.length ? t[0] : !0 }); -let Lwe = 0; -const ey = /* @__PURE__ */ $t.define(); +let Rwe = 0; +const ty = /* @__PURE__ */ $t.define(); class hn { constructor(e, r, n, i, s) { this.id = e, this.create = r, this.domEventHandlers = n, this.domEventObservers = i, this.extension = s(this); } static define(e, r) { const { eventHandlers: n, eventObservers: i, provide: s, decorations: a } = r || {}; - return new hn(Lwe++, e, n, i, (o) => { - let l = [ey.of(o)]; + return new hn(Rwe++, e, n, i, (o) => { + let l = [ty.of(o)]; return a && l.push(g2.of((u) => { let h = u.plugin(o); return h ? a(h) : It.none; @@ -5359,7 +5359,7 @@ function hJ(t) { } return { left: e, right: r, top: n, bottom: i }; } -const ty = /* @__PURE__ */ $t.define(); +const ry = /* @__PURE__ */ $t.define(); class ol { constructor(e, r, n, i) { this.fromA = e, this.toA = r, this.fromB = n, this.toB = i; @@ -5440,15 +5440,15 @@ function dJ(t) { e.push(1 << +t[r]); return e; } -const Rwe = /* @__PURE__ */ dJ("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Mwe = /* @__PURE__ */ dJ("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), c8 = /* @__PURE__ */ Object.create(null), wc = []; +const Mwe = /* @__PURE__ */ dJ("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Dwe = /* @__PURE__ */ dJ("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), c8 = /* @__PURE__ */ Object.create(null), wc = []; for (let t of ["()", "[]", "{}"]) { let e = /* @__PURE__ */ t.charCodeAt(0), r = /* @__PURE__ */ t.charCodeAt(1); c8[e] = r, c8[r] = -e; } -function Dwe(t) { - return t <= 247 ? Rwe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Mwe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; +function Pwe(t) { + return t <= 247 ? Mwe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Dwe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; } -const Pwe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; +const Nwe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; class uf { get dir() { return this.level % 2 ? fJ : m2; @@ -5485,11 +5485,11 @@ function pJ(t, e) { return !0; } const pn = []; -function Nwe(t, e, r, n, i) { +function Iwe(t, e, r, n, i) { for (let s = 0; s <= n.length; s++) { let a = s ? n[s - 1].to : e, o = s < n.length ? n[s].from : r, l = s ? 256 : i; for (let u = a, h = l, f = l; u < o; u++) { - let d = Dwe(t.charCodeAt(u)); + let d = Pwe(t.charCodeAt(u)); d == 512 ? d = h : d == 8 && f == 4 && (d = 16), pn[u] = d == 4 ? 2 : d, d & 7 && (f = d), h = d; } for (let u = a, h = l, f = l; u < o; u++) { @@ -5510,7 +5510,7 @@ function Nwe(t, e, r, n, i) { } } } -function Iwe(t, e, r, n, i) { +function $we(t, e, r, n, i) { let s = i == 1 ? 2 : 1; for (let a = 0, o = 0, l = 0; a <= n.length; a++) { let u = a ? n[a - 1].to : e, h = a < n.length ? n[a].from : r; @@ -5546,7 +5546,7 @@ function Iwe(t, e, r, n, i) { } } } -function $we(t, e, r, n) { +function Bwe(t, e, r, n) { for (let i = 0, s = n; i <= r.length; i++) { let a = i ? r[i - 1].to : t, o = i < r.length ? r[i].from : e; for (let l = a; l < o; ) { @@ -5658,12 +5658,12 @@ function u8(t, e, r, n, i, s, a) { } function h8(t, e, r, n, i, s, a) { let o = e % 2 ? 2 : 1; - Nwe(t, i, s, n, o), Iwe(t, i, s, n, o), $we(i, s, n, o), u8(t, i, s, e, r, n, a); + Iwe(t, i, s, n, o), $we(t, i, s, n, o), Bwe(i, s, n, o), u8(t, i, s, e, r, n, a); } -function Bwe(t, e, r) { +function Fwe(t, e, r) { if (!t) return [new uf(0, 0, e == fJ ? 1 : 0)]; - if (e == m2 && !r.length && !Pwe.test(t)) + if (e == m2 && !r.length && !Nwe.test(t)) return gJ(t.length); if (r.length) for (; t.length > pn.length; ) @@ -5675,7 +5675,7 @@ function gJ(t) { return [new uf(0, t, 0)]; } let mJ = ""; -function Fwe(t, e, r, n, i) { +function zwe(t, e, r, n, i) { var s; let a = n.head - t.from, o = -1; if (a == 0) { @@ -5691,7 +5691,7 @@ function Fwe(t, e, r, n, i) { o < 0 && (o = uf.find(e, a, (s = n.bidiLevel) !== null && s !== void 0 ? s : -1, n.assoc)); let l = e[o]; a == l.side(i, r) && (l = e[o += i ? 1 : -1], a = l.side(!i, r)); - let u = i == (l.dir == r), h = Os(t.text, a, u); + let u = i == (l.dir == r), h = ks(t.text, a, u); if (mJ = t.text.slice(Math.min(a, h), Math.max(a, h)), h > l.from && h < l.to) return je.cursor(h + t.from, u ? -1 : 1, l.level); let f = o == (i ? e.length - 1 : 0) ? null : e[o + (i ? 1 : -1)]; @@ -5709,15 +5709,15 @@ class IF extends Dn { let n = e.changedRanges; this.minWidth > 0 && n.length && (n.every(({ fromA: u, toA: h }) => h < this.minWidthFrom || u > this.minWidthTo) ? (this.minWidthFrom = e.changes.mapPos(this.minWidthFrom, 1), this.minWidthTo = e.changes.mapPos(this.minWidthTo, 1)) : this.minWidth = this.minWidthFrom = this.minWidthTo = 0); let i = -1; - this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !Wwe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); - let s = i > -1 ? Qwe(this.view, e.changes, i) : null; + this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !Gwe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); + let s = i > -1 ? Uwe(this.view, e.changes, i) : null; if (this.domChanged = null, this.hasComposition) { this.markedForComposition.clear(); let { from: u, to: h } = this.hasComposition; n = new ol(u, h, e.changes.mapPos(u, -1), e.changes.mapPos(h, 1)).addToSet(n.slice()); } this.hasComposition = s ? { from: s.range.fromB, to: s.range.toB } : null, (Vt.ie || Vt.chrome) && !s && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0); - let a = this.decorations, o = this.updateDeco(), l = qwe(a, o, e.changes); + let a = this.decorations, o = this.updateDeco(), l = Ywe(a, o, e.changes); return n = ol.extendWithRanges(n, l), !(this.flags & 7) && n.length == 0 ? !1 : (this.updateInner(n, e.startState.doc.length, s), e.transactions.length && (this.lastUpdate = Date.now()), !0); } updateInner(e, r, n) { @@ -5779,18 +5779,18 @@ class IF extends Dn { let a = this.forceSelection; this.forceSelection = !1; let o = this.view.state.selection.main, l = this.moveToLine(this.domAtPos(o.anchor)), u = o.empty ? l : this.moveToLine(this.domAtPos(o.head)); - if (Vt.gecko && o.empty && !this.hasComposition && zwe(l)) { + if (Vt.gecko && o.empty && !this.hasComposition && Qwe(l)) { let f = document.createTextNode(""); this.view.observer.ignore(() => l.node.insertBefore(f, l.node.childNodes[l.offset] || null)), l = u = new Zs(f, 0), a = !0; } let h = this.view.observer.selectionRange; (a || !h.focusNode || !mk(l.node, l.offset, h.anchorNode, h.anchorOffset) || !mk(u.node, u.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { - Vt.android && Vt.chrome && this.dom.contains(h.focusNode) && Ywe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); + Vt.android && Vt.chrome && this.dom.contains(h.focusNode) && Wwe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); let f = gk(this.view.root); if (f) if (o.empty) { if (Vt.gecko) { - let d = Uwe(l.node, l.offset); + let d = Vwe(l.node, l.offset); if (d && d != 3) { let p = yJ(l.node, l.offset, d == 1 ? 1 : -1); p && (l = new Zs(p.node, p.offset)); @@ -5895,10 +5895,10 @@ class IF extends Dn { } if (!(i instanceof ch)) return null; - let s = Os(i.text, n); + let s = ks(i.text, n); if (s == n) return null; - let a = M0(i.dom, n, s).getClientRects(); + let a = D0(i.dom, n, s).getClientRects(); for (let o = 0; o < a.length; o++) { let l = a[o]; if (o == a.length - 1 || l.top < l.bottom && l.left < l.right) @@ -5998,10 +5998,10 @@ class IF extends Dn { right: n.right + s.right, bottom: n.bottom + s.bottom }, { offsetWidth: o, offsetHeight: l } = this.view.scrollDOM; - xwe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == Wn.LTR); + wwe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == Wn.LTR); } } -function zwe(t) { +function Qwe(t) { return t.node.nodeType == 1 && t.node.firstChild && (t.offset == 0 || t.node.childNodes[t.offset - 1].contentEditable == "false") && (t.offset == t.node.childNodes.length || t.node.childNodes[t.offset].contentEditable == "false"); } class $F extends uo { @@ -6029,7 +6029,7 @@ function vJ(t, e) { let i = e - n.offset; return { from: i, to: i + n.node.nodeValue.length, node: n.node }; } -function Qwe(t, e, r) { +function Uwe(t, e, r) { let n = vJ(t, r); if (!n) return null; @@ -6047,7 +6047,7 @@ function Qwe(t, e, r) { if (f != t.contentDOM) h.push({ node: f, deco: new Nx({ inclusive: !0, - attributes: _we(f), + attributes: Awe(f), tagName: f.tagName.toLowerCase() }) }); else @@ -6076,10 +6076,10 @@ function yJ(t, e, r) { } return null; } -function Uwe(t, e) { +function Vwe(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 Vwe = class { +let qwe = class { constructor() { this.changes = []; } @@ -6090,48 +6090,48 @@ let Vwe = class { o8(e, r, this.changes); } }; -function qwe(t, e, r) { - let n = new Vwe(); +function Ywe(t, e, r) { + let n = new qwe(); return $r.compare(t, e, r, n), n.changes; } -function Ywe(t, e) { +function Wwe(t, e) { for (let r = t; r && r != e; r = r.assignedSlot || r.parentNode) if (r.nodeType == 1 && r.contentEditable == "false") return !0; return !1; } -function Wwe(t, e) { +function Gwe(t, e) { let r = !1; return e && t.iterChangedRanges((n, i) => { n < e.to && i > e.from && (r = !0); }), r; } -function Gwe(t, e, r = 1) { +function Xwe(t, e, r = 1) { let n = t.charCategorizer(e), i = t.doc.lineAt(e), s = e - i.from; if (i.length == 0) return je.cursor(e); s == 0 ? r = 1 : s == i.length && (r = -1); let a = s, o = s; - r < 0 ? a = Os(i.text, s, !1) : o = Os(i.text, s); + r < 0 ? a = ks(i.text, s, !1) : o = ks(i.text, s); let l = n(i.text.slice(a, o)); for (; a > 0; ) { - let u = Os(i.text, a, !1); + let u = ks(i.text, a, !1); if (n(i.text.slice(u, a)) != l) break; a = u; } for (; o < i.length; ) { - let u = Os(i.text, o); + let u = ks(i.text, o); if (n(i.text.slice(o, u)) != l) break; o = u; } return je.range(a + i.from, o + i.from); } -function Xwe(t, e) { +function Hwe(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); } -function Hwe(t, e) { +function Zwe(t, e) { return e.top > t ? e.top - t : Math.max(0, t - e.bottom); } function w_(t, e) { @@ -6150,7 +6150,7 @@ function f8(t, e, r) { for (let v = 0; v < m.length; v++) { let y = m[v]; i && w_(i, y) && (y = BF(FF(y, i.bottom), i.top)); - let b = Xwe(e, y), w = Hwe(r, y); + let b = Hwe(e, y), w = Zwe(r, y); if (b == 0 && w == 0) return g.nodeType == 3 ? zF(g, e, r) : f8(g, e, r); if (!n || a > w || a == w && s > b) { @@ -6174,7 +6174,7 @@ function f8(t, e, r) { function zF(t, e, r) { let n = t.nodeValue.length, i = -1, s = 1e9, a = 0; for (let o = 0; o < n; o++) { - let l = M0(t, o, o + 1).getClientRects(); + let l = D0(t, o, o + 1).getClientRects(); for (let u = 0; u < l.length; u++) { let h = l[u]; if (h.top == h.bottom) @@ -6183,7 +6183,7 @@ function zF(t, e, r) { let f = (h.top > r ? h.top - r : r - h.bottom) - 1; if (h.left - 1 <= e && h.right + 1 >= e && f < s) { let d = e >= (h.left + h.right) / 2, p = d; - if ((Vt.chrome || Vt.gecko) && M0(t, o).getBoundingClientRect().left == h.right && (p = !d), f <= 0) + if ((Vt.chrome || Vt.gecko) && D0(t, o).getBoundingClientRect().left == h.right && (p = !d), f <= 0) return { node: t, offset: o + (p ? 1 : 0) }; i = o + (p ? 1 : 0), s = f; } @@ -6219,7 +6219,7 @@ function bJ(t, e, r, n = -1) { O && ({ offsetNode: y, offset: b } = O); } else if (g.caretRangeFromPoint) { let O = g.caretRangeFromPoint(h, f); - O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Vt.safari && Zwe(y, b, h) || Vt.chrome && jwe(y, b, h)) && (y = void 0)); + O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Vt.safari && jwe(y, b, h) || Vt.chrome && Kwe(y, b, h)) && (y = void 0)); } } if (!y || !t.docView.dom.contains(y)) { @@ -6246,16 +6246,16 @@ function QF(t, e, r, n, i) { let a = t.state.sliceDoc(r.from, r.to); return r.from + K7(a, s, t.state.tabSize); } -function Zwe(t, e, r) { +function jwe(t, e, r) { let n; if (t.nodeType != 3 || e != (n = t.nodeValue.length)) return !1; for (let i = t.nextSibling; i; i = i.nextSibling) if (i.nodeType != 1 || i.nodeName != "BR") return !1; - return M0(t, n - 1, n).getBoundingClientRect().left > r; + return D0(t, n - 1, n).getBoundingClientRect().left > r; } -function jwe(t, e, r) { +function Kwe(t, e, r) { if (e != 0) return !1; for (let i = t; ; ) { @@ -6266,7 +6266,7 @@ function jwe(t, e, r) { break; i = s; } - let n = t.nodeType == 1 ? t.getBoundingClientRect() : M0(t, 0, Math.max(t.nodeValue.length, 1)).getBoundingClientRect(); + let n = t.nodeType == 1 ? t.getBoundingClientRect() : D0(t, 0, Math.max(t.nodeValue.length, 1)).getBoundingClientRect(); return r - n.left > 5; } function d8(t, e) { @@ -6278,7 +6278,7 @@ function d8(t, e) { } return r; } -function Kwe(t, e, r, n) { +function Jwe(t, e, r, n) { let i = d8(t, e.head), s = !n || i.type != Ca.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); if (s) { let a = t.dom.getBoundingClientRect(), o = t.textDirectionAt(i.from), l = t.posAtCoords({ @@ -6293,7 +6293,7 @@ function Kwe(t, e, r, n) { function UF(t, e, r, n) { let i = t.state.doc.lineAt(e.head), s = t.bidiSpans(i), a = t.textDirectionAt(i.from); for (let o = e, l = null; ; ) { - let u = Fwe(i, s, a, o, r), h = mJ; + let u = zwe(i, s, a, o, r), h = mJ; if (!u) { if (i.number == (r ? t.state.doc.lines : 1)) return o; @@ -6311,14 +6311,14 @@ function UF(t, e, r, n) { o = u; } } -function Jwe(t, e, r) { +function eOe(t, e, r) { let n = t.state.charCategorizer(e), i = n(r); return (s) => { let a = n(s); return i == Fn.Space && (i = a), i == a; }; } -function eOe(t, e, r, n) { +function tOe(t, e, r, n) { let i = e.head, s = r ? 1 : -1; if (i == (r ? t.state.doc.length : 0)) return je.cursor(i, e.assoc); @@ -6356,15 +6356,15 @@ function O_(t, e, r) { let n = r5(t.state.facet(JM).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1); return n == r.from ? r : je.cursor(n, n < r.from ? 1 : -1); } -class tOe { +class rOe { setSelectionOrigin(e) { this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now(); } constructor(e) { - this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Vt.safari && e.contentDOM.addEventListener("input", () => null), Vt.gecko && vOe(e.contentDOM.ownerDocument); + this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Vt.safari && e.contentDOM.addEventListener("input", () => null), Vt.gecko && yOe(e.contentDOM.ownerDocument); } handleEvent(e) { - !cOe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); + !uOe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); } runHandlers(e, r) { let n = this.handlers[e]; @@ -6382,7 +6382,7 @@ class tOe { } } ensureHandlers(e) { - let r = rOe(e), n = this.handlers, i = this.view.contentDOM; + let r = nOe(e), n = this.handlers, i = this.view.contentDOM; for (let s in r) if (s != "scroll") { let a = !r[s].handlers.length, o = n[s]; @@ -6398,11 +6398,11 @@ class tOe { if (e.keyCode != 27 && wJ.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Vt.android && Vt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0; let r; - return Vt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = xJ.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || nOe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); + return Vt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = xJ.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || iOe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); } flushIOSKey() { let e = this.pendingIOSKey; - return e ? (this.pendingIOSKey = void 0, Rg(this.view.contentDOM, e.key, e.keyCode)) : !1; + return e ? (this.pendingIOSKey = void 0, Dg(this.view.contentDOM, e.key, e.keyCode)) : !1; } ignoreDuringComposition(e) { return /^key/.test(e.type) ? this.composing > 0 ? !0 : Vt.safari && !Vt.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1; @@ -6426,7 +6426,7 @@ function VF(t, e) { } }; } -function rOe(t) { +function nOe(t) { let e = /* @__PURE__ */ Object.create(null); function r(n) { return e[n] || (e[n] = { observers: [], handlers: [] }); @@ -6455,18 +6455,18 @@ const xJ = [ { key: "Enter", keyCode: 13, inputType: "insertParagraph" }, { key: "Enter", keyCode: 13, inputType: "insertLineBreak" }, { key: "Delete", keyCode: 46, inputType: "deleteContentForward" } -], nOe = "dthko", wJ = [16, 17, 18, 20, 91, 92, 224, 225], cO = 6; +], iOe = "dthko", wJ = [16, 17, 18, 20, 91, 92, 224, 225], cO = 6; function uO(t) { return Math.max(0, t) * 0.7 + 8; } -function iOe(t, e) { +function sOe(t, e) { return Math.max(Math.abs(t.clientX - e.clientX), Math.abs(t.clientY - e.clientY)); } -class sOe { +class aOe { constructor(e, r, n, i) { - this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = wwe(e.contentDOM), this.atoms = e.state.facet(JM).map((a) => a(e)); + this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Owe(e.contentDOM), this.atoms = e.state.facet(JM).map((a) => a(e)); let s = e.contentDOM.ownerDocument; - s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(Tr.allowMultipleSelections) && aOe(e, r), this.dragging = lOe(e, r) && TJ(r) == 1 ? null : !1; + s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(Tr.allowMultipleSelections) && oOe(e, r), this.dragging = cOe(e, r) && TJ(r) == 1 ? null : !1; } start(e) { this.dragging === !1 && this.select(e); @@ -6475,7 +6475,7 @@ class sOe { var r; if (e.buttons == 0) return this.destroy(); - if (this.dragging || this.dragging == null && iOe(this.startEvent, e) < 10) + if (this.dragging || this.dragging == null && sOe(this.startEvent, e) < 10) return; this.select(this.lastEvent = e); let n = 0, i = 0, s = ((r = this.scrollParent) === null || r === void 0 ? void 0 : r.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, a = hJ(this.view); @@ -6521,15 +6521,15 @@ class sOe { this.style.update(e) && setTimeout(() => this.select(this.lastEvent), 20); } } -function aOe(t, e) { +function oOe(t, e) { let r = t.state.facet(eJ); return r.length ? r[0](e) : Vt.mac ? e.metaKey : e.ctrlKey; } -function oOe(t, e) { +function lOe(t, e) { let r = t.state.facet(tJ); return r.length ? r[0](e) : Vt.mac ? !e.altKey : !e.ctrlKey; } -function lOe(t, e) { +function cOe(t, e) { let { main: r } = t.state.selection; if (r.empty) return !1; @@ -6544,7 +6544,7 @@ function lOe(t, e) { } return !1; } -function cOe(t, e) { +function uOe(t, e) { if (!e.bubbles) return !0; if (e.defaultPrevented) @@ -6555,7 +6555,7 @@ function cOe(t, e) { return !0; } const rc = /* @__PURE__ */ Object.create(null), nc = /* @__PURE__ */ Object.create(null), OJ = Vt.ie && Vt.ie_version < 15 || Vt.ios && Vt.webkit_version < 604; -function uOe(t) { +function hOe(t) { let e = t.dom.parentNode; if (!e) return; @@ -6609,9 +6609,9 @@ rc.mousedown = (t, e) => { for (let n of t.state.facet(rJ)) if (r = n(t, e), r) break; - if (!r && e.button == 0 && (r = dOe(t, e)), r) { + if (!r && e.button == 0 && (r = pOe(t, e)), r) { let n = !t.hasFocus; - t.inputState.startMouseSelection(new sOe(t, e, r, n)), n && t.observer.ignore(() => UK(t.contentDOM)); + t.inputState.startMouseSelection(new aOe(t, e, r, n)), n && t.observer.ignore(() => UK(t.contentDOM)); let i = t.inputState.mouseSelection; if (i) return i.start(e), i.dragging === !1; @@ -6622,14 +6622,14 @@ function qF(t, e, r, n) { if (n == 1) return je.cursor(e, r); if (n == 2) - return Gwe(t.state, e, r); + return Xwe(t.state, e, r); { let i = Pi.find(t.docView, e), s = t.state.doc.lineAt(i ? i.posAtEnd : e), a = i ? i.posAtStart : s.from, o = i ? i.posAtEnd : s.to; return o < t.state.doc.length && o == s.to && o++, je.range(a, o); } } let SJ = (t, e) => t >= e.top && t <= e.bottom, YF = (t, e, r) => SJ(e, r) && t >= r.left && t <= r.right; -function hOe(t, e, r, n) { +function fOe(t, e, r, n) { let i = Pi.find(t.docView, e); if (!i) return 1; @@ -6646,17 +6646,17 @@ function hOe(t, e, r, n) { } function WF(t, e) { let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1); - return { pos: r, bias: hOe(t, r, e.clientX, e.clientY) }; + return { pos: r, bias: fOe(t, r, e.clientX, e.clientY) }; } -const fOe = Vt.ie && Vt.ie_version <= 11; +const dOe = Vt.ie && Vt.ie_version <= 11; let GF = null, XF = 0, HF = 0; function TJ(t) { - if (!fOe) + if (!dOe) return t.detail; let e = GF, r = HF; return GF = t, HF = Date.now(), XF = !e || r > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (XF + 1) % 3 : 1; } -function dOe(t, e) { +function pOe(t, e) { let r = WF(t, e), n = TJ(e), i = t.state.selection; return { update(s) { @@ -6668,11 +6668,11 @@ function dOe(t, e) { let f = qF(t, r.pos, r.bias, n), d = Math.min(f.from, h.from), p = Math.max(f.to, h.to); h = d < h.from ? je.range(d, p) : je.range(p, d); } - return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = pOe(i, l.pos)) ? u : o ? i.addRange(h) : je.create([h]); + return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = gOe(i, l.pos)) ? u : o ? i.addRange(h) : je.create([h]); } }; } -function pOe(t, e) { +function gOe(t, e) { for (let r = 0; r < t.ranges.length; r++) { let { from: n, to: i } = t.ranges[r]; if (n <= e && i >= e) @@ -6696,7 +6696,7 @@ rc.dragend = (t) => (t.inputState.draggedContent = null, !1); function ZF(t, e, r, n) { if (!r) return; - let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && oOe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); + let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && lOe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); t.focus(), t.dispatch({ changes: l, selection: { anchor: l.mapPos(i, -1), head: l.mapPos(i, 1) }, @@ -6732,9 +6732,9 @@ rc.paste = (t, e) => { return !0; t.observer.flush(); let r = OJ ? null : e.clipboardData; - return r ? (kJ(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (uOe(t), !1); + return r ? (kJ(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (hOe(t), !1); }; -function gOe(t, e) { +function mOe(t, e) { let r = t.dom.parentNode; if (!r) return; @@ -6743,7 +6743,7 @@ function gOe(t, e) { n.remove(), t.focus(); }, 50); } -function mOe(t) { +function vOe(t) { let e = [], r = [], n = !1; for (let i of t.selection.ranges) i.empty || (e.push(t.sliceDoc(i.from, i.to)), r.push(i)); @@ -6759,7 +6759,7 @@ function mOe(t) { } let p8 = null; rc.copy = rc.cut = (t, e) => { - let { text: r, ranges: n, linewise: i } = mOe(t.state); + let { text: r, ranges: n, linewise: i } = vOe(t.state); if (!r && !i) return !1; p8 = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ @@ -6768,7 +6768,7 @@ rc.copy = rc.cut = (t, e) => { userEvent: "delete.cut" }); let s = OJ ? null : e.clipboardData; - return s ? (s.clearData(), s.setData("text/plain", r), !0) : (gOe(t, r), !1); + return s ? (s.clearData(), s.setData("text/plain", r), !0) : (mOe(t, r), !1); }; const CJ = /* @__PURE__ */ co.define(); function EJ(t, e) { @@ -6818,13 +6818,13 @@ rc.beforeinput = (t, e) => { return !1; }; const jF = /* @__PURE__ */ new Set(); -function vOe(t) { +function yOe(t) { jF.has(t) || (jF.add(t), t.addEventListener("copy", () => { }), t.addEventListener("cut", () => { })); } const KF = ["pre-wrap", "normal", "pre-line", "break-spaces"]; -class yOe { +class bOe { constructor(e) { this.lineWrapping = e, this.doc = qr.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30, this.heightChanged = !1; } @@ -6861,7 +6861,7 @@ class yOe { return l; } } -class bOe { +class xOe { constructor(e, r) { this.from = e, this.heights = r, this.index = 0; } @@ -6956,7 +6956,7 @@ class Ea { o && (s += o.size); } let a = 0; - return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new xOe(Ea.of(e.slice(0, r)), a, Ea.of(e.slice(n))); + return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new wOe(Ea.of(e.slice(0, r)), a, Ea.of(e.slice(n))); } } Ea.prototype.size = 1; @@ -6989,7 +6989,7 @@ class wo extends AJ { } replace(e, r, n) { let i = n[0]; - return n.length == 1 && (i instanceof wo || i instanceof ys && i.flags & 4) && Math.abs(this.length - i.length) < 10 ? (i instanceof ys ? i = new wo(i.length, this.height) : i.height = this.height, this.outdated || (i.outdated = !1), i) : Ea.of(n); + return n.length == 1 && (i instanceof wo || i instanceof bs && i.flags & 4) && Math.abs(this.length - i.length) < 10 ? (i instanceof bs ? i = new wo(i.length, this.height) : i.height = this.height, this.outdated || (i.outdated = !1), i) : Ea.of(n); } updateHeight(e, r = 0, n = !1, i) { return i && i.from <= r && i.more ? this.setHeight(e, i.heights[i.index++]) : (n || this.outdated) && this.setHeight(e, Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight), this.outdated = !1, this; @@ -6998,7 +6998,7 @@ class wo extends AJ { return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`; } } -class ys extends Ea { +class bs extends Ea { constructor(e) { super(e, 0); } @@ -7048,25 +7048,25 @@ class ys extends Ea { let i = this.length - r; if (i > 0) { let s = n[n.length - 1]; - s instanceof ys ? n[n.length - 1] = new ys(s.length + i) : n.push(null, new ys(i - 1)); + s instanceof bs ? n[n.length - 1] = new bs(s.length + i) : n.push(null, new bs(i - 1)); } if (e > 0) { let s = n[0]; - s instanceof ys ? n[0] = new ys(e + s.length) : n.unshift(new ys(e - 1), null); + s instanceof bs ? n[0] = new bs(e + s.length) : n.unshift(new bs(e - 1), null); } return Ea.of(n); } decomposeLeft(e, r) { - r.push(new ys(e - 1), null); + r.push(new bs(e - 1), null); } decomposeRight(e, r) { - r.push(null, new ys(this.length - e - 1)); + r.push(null, new bs(this.length - e - 1)); } updateHeight(e, r = 0, n = !1, i) { let s = r + this.length; if (i && i.from <= r + this.length && i.more) { let a = [], o = Math.max(r, i.from), l = -1; - for (i.from > r && a.push(new ys(i.from - r - 1).updateHeight(e, r)); o <= s && i.more; ) { + for (i.from > r && a.push(new bs(i.from - r - 1).updateHeight(e, r)); o <= s && i.more; ) { let h = e.doc.lineAt(o).length; a.length && a.push(null); let f = i.heights[i.index++]; @@ -7074,7 +7074,7 @@ class ys extends Ea { let d = new wo(h, f); d.outdated = !1, a.push(d), o += h + 1; } - o <= s && a.push(null, new ys(s - o).updateHeight(e, o)); + o <= s && a.push(null, new bs(s - o).updateHeight(e, o)); let u = Ea.of(a); return (l < 0 || Math.abs(u.height - this.height) >= n5 || Math.abs(l - this.heightMetrics(e, r).perLine) >= n5) && (e.heightChanged = !0), u; } else @@ -7085,7 +7085,7 @@ class ys extends Ea { return `gap(${this.length})`; } } -class xOe extends Ea { +class wOe extends Ea { constructor(e, r, n) { super(e.length + r + n.length, e.height + n.height, r | (e.outdated || n.outdated ? 2 : 0)), this.left = e, this.right = n, this.size = e.size + n.size; } @@ -7154,9 +7154,9 @@ class xOe extends Ea { } function JF(t, e) { let r, n; - t[e] == null && (r = t[e - 1]) instanceof ys && (n = t[e + 1]) instanceof ys && t.splice(e - 1, 3, new ys(r.length + 1 + n.length)); + t[e] == null && (r = t[e - 1]) instanceof bs && (n = t[e + 1]) instanceof bs && t.splice(e - 1, 3, new bs(r.length + 1 + n.length)); } -const wOe = 5; +const OOe = 5; class eD { constructor(e, r) { this.pos = e, this.oracle = r, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e; @@ -7176,7 +7176,7 @@ class eD { let i = n.widget ? n.widget.estimatedHeight : 0, s = n.widget ? n.widget.lineBreaks : 0; i < 0 && (i = this.oracle.lineHeight); let a = r - e; - n.block ? this.addBlock(new AJ(a, i, n)) : (a || s || i >= wOe) && this.addLineDeco(i, s, a); + n.block ? this.addBlock(new AJ(a, i, n)) : (a || s || i >= OOe) && this.addLineDeco(i, s, a); } else r > e && this.span(e, r); this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to); @@ -7188,7 +7188,7 @@ class eD { this.lineStart = e, this.lineEnd = r, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new wo(this.pos - e, -1)), this.writtenTo = this.pos; } blankContent(e, r) { - let n = new ys(r - e); + let n = new bs(r - e); return this.oracle.doc.lineAt(e).to == r && (n.flags |= 4), n; } ensureLine() { @@ -7221,11 +7221,11 @@ class eD { return $r.spans(r, n, i, s, 0), s.finish(n); } } -function OOe(t, e, r) { - let n = new kOe(); +function kOe(t, e, r) { + let n = new SOe(); return $r.compare(t, e, r, n, 0), n.changes; } -class kOe { +class SOe { constructor() { this.changes = []; } @@ -7235,7 +7235,7 @@ class kOe { (e < r || n && n.heightRelevant || i && i.heightRelevant) && o8(e, r, this.changes, 5); } } -function SOe(t, e) { +function TOe(t, e) { let r = t.getBoundingClientRect(), n = t.ownerDocument, i = n.defaultView || window, s = Math.max(0, r.left), a = Math.min(i.innerWidth, r.right), o = Math.max(0, r.top), l = Math.min(i.innerHeight, r.bottom); for (let u = t.parentNode; u && u != n.body; ) if (u.nodeType == 1) { @@ -7256,7 +7256,7 @@ function SOe(t, e) { bottom: Math.max(o, l) - (r.top + e) }; } -function TOe(t, e) { +function COe(t, e) { let r = t.getBoundingClientRect(); return { left: 0, @@ -7281,11 +7281,11 @@ class k_ { } draw(e, r) { return It.replace({ - widget: new COe(this.size * (r ? e.scaleY : e.scaleX), r) + widget: new EOe(this.size * (r ? e.scaleY : e.scaleX), r) }).range(this.from, this.to); } } -class COe extends uo { +class EOe extends uo { constructor(e, r) { super(), this.size = e, this.vertical = r; } @@ -7304,7 +7304,7 @@ class ez { constructor(e) { this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !0, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = tz, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = Wn.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; let r = e.facet(KM).some((n) => typeof n != "function" && n.class == "cm-lineWrapping"); - this.heightOracle = new yOe(r), this.stateDeco = e.facet(g2).filter((n) => typeof n != "function"), this.heightMap = Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle.setDoc(e.doc), [new ol(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = It.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); + this.heightOracle = new bOe(r), this.stateDeco = e.facet(g2).filter((n) => typeof n != "function"), this.heightMap = Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle.setDoc(e.doc), [new ol(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = It.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); } updateForViewport() { let e = [this.viewport], { main: r } = this.state.selection; @@ -7315,18 +7315,18 @@ class ez { e.push(new hO(s, a)); } } - this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? tz : new AOe(this.heightOracle, this.heightMap, this.viewports); + this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? tz : new LOe(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) => { - this.viewportLines.push(this.scaler.scale == 1 ? e : ry(e, this.scaler)); + this.viewportLines.push(this.scaler.scale == 1 ? e : ny(e, this.scaler)); }); } update(e, r = null) { this.state = e.state; let n = this.stateDeco; this.stateDeco = this.state.facet(g2).filter((h) => typeof h != "function"); - let i = e.changedRanges, s = ol.extendWithRanges(i, OOe(n, this.stateDeco, e ? e.changes : wi.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); + let i = e.changedRanges, s = ol.extendWithRanges(i, kOe(n, this.stateDeco, e ? e.changes : wi.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), s), this.heightMap.height != a && (e.flags |= 2), o ? (this.scrollAnchorPos = e.changes.mapPos(o.from, -1), this.scrollAnchorHeight = o.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height); let l = s.length ? this.mapViewport(this.viewport, e.changes) : this.viewport; (r && (r.range.head < l.from || r.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, r)); @@ -7347,7 +7347,7 @@ class ez { (this.paddingTop != f || this.paddingBottom != d) && (this.paddingTop = f, this.paddingBottom = d, u |= 10), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (l = !0), this.editorWidth = e.scrollDOM.clientWidth, u |= 8); let p = e.scrollDOM.scrollTop * this.scaleY; this.scrollTop != p && (this.scrollAnchorHeight = -1, this.scrollTop = p), this.scrolledToBottom = qK(e.scrollDOM); - let g = (this.printing ? TOe : SOe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; + let g = (this.printing ? COe : TOe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; this.pixelViewport = g; let y = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left; if (y != this.inView && (this.inView = y, y && (l = !0)), !this.inView && !this.scrollTarget) @@ -7362,7 +7362,7 @@ class ez { m > 0 && v > 0 ? h = Math.max(m, v) : m < 0 && v < 0 && (h = Math.min(m, v)), i.heightChanged = !1; for (let S of this.viewports) { let C = S.from == this.viewport.from ? O : e.docView.measureVisibleLineHeights(S); - this.heightMap = (a ? Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle, [new ol(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new bOe(S.from, C)); + this.heightMap = (a ? Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle, [new ol(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new xOe(S.from, C)); } i.heightChanged && (u |= 2); } @@ -7418,7 +7418,7 @@ class ez { l(u, v - 10, f, d), l(v + 10, h, f, d); return; } - let m = _Oe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); + let m = AOe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); if (!m) { if (h < f.to && r && n && r.visibleRanges.some((v) => v.from <= h && v.to >= h)) { let v = r.moveToLineBoundary(je.cursor(h), !1, !0).head; @@ -7431,7 +7431,7 @@ class ez { for (let u of this.viewportLines) { if (u.length < a) continue; - let h = EOe(u.from, u.to, this.stateDeco); + let h = _Oe(u.from, u.to, this.stateDeco); if (h.total < a) continue; let f = this.scrollTarget ? this.scrollTarget.range.head : null, d, p; @@ -7478,17 +7478,17 @@ class ez { return this.visibleRanges = r, n ? 4 : 0; } lineBlockAt(e) { - return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((r) => r.from <= e && r.to >= e) || ry(this.heightMap.lineAt(e, Rn.ByPos, this.heightOracle, 0, 0), this.scaler); + return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((r) => r.from <= e && r.to >= e) || ny(this.heightMap.lineAt(e, Rn.ByPos, this.heightOracle, 0, 0), this.scaler); } lineBlockAtHeight(e) { - return ry(this.heightMap.lineAt(this.scaler.fromDOM(e), Rn.ByHeight, this.heightOracle, 0, 0), this.scaler); + return ny(this.heightMap.lineAt(this.scaler.fromDOM(e), Rn.ByHeight, this.heightOracle, 0, 0), this.scaler); } scrollAnchorAt(e) { let r = this.lineBlockAtHeight(e + 8); return r.from >= this.viewport.from || this.viewportLines[0].top - e > 200 ? r : this.viewportLines[0]; } elementAtHeight(e) { - return ry(this.heightMap.blockAt(this.scaler.fromDOM(e), this.heightOracle, 0, 0), this.scaler); + return ny(this.heightMap.blockAt(this.scaler.fromDOM(e), this.heightOracle, 0, 0), this.scaler); } get docHeight() { return this.scaler.toDOM(this.heightMap.height); @@ -7502,7 +7502,7 @@ class hO { this.from = e, this.to = r; } } -function EOe(t, e, r) { +function _Oe(t, e, r) { let n = [], i = t, s = 0; return $r.spans(r, t, e, { span() { @@ -7536,7 +7536,7 @@ function dO(t, e) { } return r / t.total; } -function _Oe(t, e) { +function AOe(t, e) { for (let r of t) if (e(r)) return r; @@ -7550,7 +7550,7 @@ const tz = { }, scale: 1 }; -class AOe { +class LOe { constructor(e, r, n) { let i = 0, s = 0, a = 0; this.viewports = n.map(({ from: o, to: l }) => { @@ -7581,11 +7581,11 @@ class AOe { } } } -function ry(t, e) { +function ny(t, e) { if (e.scale == 1) return t; let r = e.toDOM(t.top), n = e.toDOM(t.bottom); - return new Ic(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => ry(i, e)) : t._content); + return new Ic(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => ny(i, e)) : t._content); } const pO = /* @__PURE__ */ $t.define({ combine: (t) => t.join(" ") }), g8 = /* @__PURE__ */ $t.define({ combine: (t) => t.indexOf(!0) > -1 }), m8 = /* @__PURE__ */ oh.newName(), LJ = /* @__PURE__ */ oh.newName(), RJ = /* @__PURE__ */ oh.newName(), MJ = { "&light": "." + LJ, "&dark": "." + RJ }; function v8(t, e, r) { @@ -7601,7 +7601,7 @@ function v8(t, e, r) { } }); } -const LOe = /* @__PURE__ */ v8("." + m8, { +const ROe = /* @__PURE__ */ v8("." + m8, { "&": { position: "relative !important", boxSizing: "border-box", @@ -7832,8 +7832,8 @@ const LOe = /* @__PURE__ */ v8("." + m8, { border: "1px solid #555", backgroundColor: "inherit" } -}, MJ), ny = "\uFFFF"; -class ROe { +}, MJ), iy = "\uFFFF"; +class MOe { constructor(e, r) { this.points = e, this.text = "", this.lineSeparator = r.facet(Tr.lineSeparator); } @@ -7841,7 +7841,7 @@ class ROe { this.text += e; } lineBreak() { - this.text += ny; + this.text += iy; } readRange(e, r) { if (!e) @@ -7890,10 +7890,10 @@ class ROe { } findPointInside(e, r) { for (let n of this.points) - (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (MOe(e, n.node, n.offset) ? r : 0)); + (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (DOe(e, n.node, n.offset) ? r : 0)); } } -function MOe(t, e, r) { +function DOe(t, e, r) { for (; ; ) { if (!e || r < lh(e)) return !1; @@ -7910,15 +7910,15 @@ class nz { this.node = e, this.offset = r, this.pos = -1; } } -class DOe { +class POe { constructor(e, r, n, i) { this.typeOver = i, this.bounds = null, this.text = ""; let { impreciseHead: s, impreciseAnchor: a } = e.docView; if (e.state.readOnly && r > -1) this.newSel = null; else if (r > -1 && (this.bounds = e.docView.domBoundsAround(r, n, 0))) { - let o = s || a ? [] : IOe(e), l = new ROe(o, e.state); - l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = $Oe(o, this.bounds.from); + let o = s || a ? [] : $Oe(e), l = new MOe(o, e.state); + l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = BOe(o, this.bounds.from); } else { let o = e.observer.selectionRange, l = s && s.node == o.focusNode && s.offset == o.focusOffset || !t8(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), u = a && a.node == o.anchorNode && a.offset == o.anchorOffset || !t8(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset); this.newSel = je.single(u, l); @@ -7930,11 +7930,11 @@ function DJ(t, e) { if (e.bounds) { let { from: a, to: o } = e.bounds, l = i.from, u = null; (s === 8 || Vt.android && e.text.length < o - a) && (l = i.to, u = "end"); - let h = NOe(t.state.doc.sliceString(a, o, ny), e.text, l - a, u); - h && (Vt.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == ny + ny && h.toB--, r = { + let h = IOe(t.state.doc.sliceString(a, o, iy), e.text, l - a, u); + h && (Vt.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == iy + iy && h.toB--, r = { from: a + h.from, to: a + h.toA, - insert: qr.of(e.text.slice(h.from, h.toB).split(ny)) + insert: qr.of(e.text.slice(h.from, h.toB).split(iy)) }); } else n && (!t.hasFocus && t.state.facet(IT) || n.main.eq(i)) && (n = null); @@ -7946,11 +7946,11 @@ function DJ(t, e) { insert: t.state.doc.slice(i.from, r.from).append(r.insert).append(t.state.doc.slice(r.to, i.to)) } : (Vt.mac || Vt.android) && r && r.from == r.to && r.from == i.head - 1 && /^\. ?$/.test(r.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (n && r.insert.length == 2 && (n = je.single(n.main.anchor - 1, n.main.head - 1)), r = { from: i.from, to: i.to, insert: qr.of([" "]) }) : Vt.chrome && r && r.from == r.to && r.from == i.head && r.insert.toString() == ` ` && t.lineWrapping && (n && (n = je.single(n.main.anchor - 1, n.main.head - 1)), r = { from: i.from, to: i.to, insert: qr.of([" "]) }), r) { - if (Vt.ios && t.inputState.flushIOSKey() || Vt.android && (r.from == i.from && r.to == i.to && r.insert.length == 1 && r.insert.lines == 2 && Rg(t.contentDOM, "Enter", 13) || (r.from == i.from - 1 && r.to == i.to && r.insert.length == 0 || s == 8 && r.insert.length < r.to - r.from && r.to > i.head) && Rg(t.contentDOM, "Backspace", 8) || r.from == i.from && r.to == i.to + 1 && r.insert.length == 0 && Rg(t.contentDOM, "Delete", 46))) + if (Vt.ios && t.inputState.flushIOSKey() || Vt.android && (r.from == i.from && r.to == i.to && r.insert.length == 1 && r.insert.lines == 2 && Dg(t.contentDOM, "Enter", 13) || (r.from == i.from - 1 && r.to == i.to && r.insert.length == 0 || s == 8 && r.insert.length < r.to - r.from && r.to > i.head) && Dg(t.contentDOM, "Backspace", 8) || r.from == i.from && r.to == i.to + 1 && r.insert.length == 0 && Dg(t.contentDOM, "Delete", 46))) return !0; let a = r.insert.toString(); t.inputState.composing >= 0 && t.inputState.composing++; - let o, l = () => o || (o = POe(t, r, n)); + let o, l = () => o || (o = NOe(t, r, n)); return t.state.facet(iJ).some((u) => u(t, r.from, r.to, a, l)) || t.dispatch(l()), !0; } else if (n && !n.main.eq(i)) { let a = !1, o = "select"; @@ -7958,7 +7958,7 @@ function DJ(t, e) { } else return !1; } -function POe(t, e, r) { +function NOe(t, e, r) { let n, i = t.state, s = i.selection.main; if (e.from >= s.from && e.to <= s.to && e.to - e.from >= (s.to - s.from) / 3 && (!r || r.main.empty && r.main.from == e.from + e.insert.length) && t.inputState.composing < 0) { let o = s.from < e.from ? i.sliceDoc(s.from, e.from) : "", l = s.to > e.to ? i.sliceDoc(e.to, s.to) : ""; @@ -7994,7 +7994,7 @@ function POe(t, e, r) { let a = "input.type"; return (t.composing || t.inputState.compositionPendingChange && t.inputState.compositionEndedAt > Date.now() - 50) && (t.inputState.compositionPendingChange = !1, a += ".compose", t.inputState.compositionFirstChange && (a += ".start", t.inputState.compositionFirstChange = !1)), i.update(n, { userEvent: a, scrollIntoView: !0 }); } -function NOe(t, e, r, n) { +function IOe(t, e, r, n) { let i = Math.min(t.length, e.length), s = 0; for (; s < i && t.charCodeAt(s) == e.charCodeAt(s); ) s++; @@ -8016,29 +8016,29 @@ function NOe(t, e, r, n) { } return { from: s, toA: a, toB: o }; } -function IOe(t) { +function $Oe(t) { let e = []; if (t.root.activeElement != t.contentDOM) return e; let { anchorNode: r, anchorOffset: n, focusNode: i, focusOffset: s } = t.observer.selectionRange; return r && (e.push(new nz(r, n)), (i != r || s != n) && e.push(new nz(i, s))), e; } -function $Oe(t, e) { +function BOe(t, e) { if (t.length == 0) return null; let r = t[0].pos, n = t.length == 2 ? t[1].pos : r; return r > -1 && n > -1 ? je.single(r + e, n + e) : null; } -const BOe = { +const FOe = { childList: !0, characterData: !0, subtree: !0, attributes: !0, characterDataOldValue: !0 }, S_ = Vt.ie && Vt.ie_version <= 11; -class FOe { +class zOe { constructor(e) { - this.view = e, this.active = !1, this.selectionRange = new Owe(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { + this.view = e, this.active = !1, this.selectionRange = new kwe(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { for (let n of r) this.queue.push(n); (Vt.ie && Vt.ie_version <= 11 || Vt.ios && e.composing) && r.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush(); @@ -8096,11 +8096,11 @@ class FOe { (Vt.ie && Vt.ie_version <= 11 || Vt.android && Vt.chrome) && !n.state.selection.main.empty && i.focusNode && mk(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); } readSelectionRange() { - let { view: e } = this, r = Vt.safari && e.root.nodeType == 11 && ywe(this.dom.ownerDocument) == this.dom && zOe(this.view) || gk(e.root); + let { view: e } = this, r = Vt.safari && e.root.nodeType == 11 && bwe(this.dom.ownerDocument) == this.dom && QOe(this.view) || gk(e.root); if (!r || this.selectionRange.eq(r)) return !1; let n = t5(this.dom, r); - return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Swe(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); + return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Twe(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); } setSelectionRange(e, r) { this.selectionRange.set(e.node, e.offset, r.node, r.offset), this.selectionChanged = !1; @@ -8135,7 +8135,7 @@ class FOe { } } start() { - this.active || (this.observer.observe(this.dom, BOe), S_ && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); + this.active || (this.observer.observe(this.dom, FOe), S_ && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); } stop() { !this.active || (this.active = !1, this.observer.disconnect(), S_ && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); @@ -8148,7 +8148,7 @@ class FOe { if (!this.delayedAndroidKey) { let i = () => { let s = this.delayedAndroidKey; - s && (this.clearDelayedAndroidKey(), this.view.inputState.lastKeyCode = s.keyCode, this.view.inputState.lastKeyTime = Date.now(), !this.flush() && s.force && Rg(this.dom, s.key, s.keyCode)); + s && (this.clearDelayedAndroidKey(), this.view.inputState.lastKeyCode = s.keyCode, this.view.inputState.lastKeyTime = Date.now(), !this.flush() && s.force && Dg(this.dom, s.key, s.keyCode)); }; this.flushingAndroidKey = this.view.win.requestAnimationFrame(i); } @@ -8189,7 +8189,7 @@ class FOe { if (e < 0 && !i) return null; e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1; - let s = new DOe(this.view, e, r, n); + let s = new POe(this.view, e, r, n); return this.view.docView.domChanged = { newSel: s.newSel ? s.newSel.main : null }, s; } flush(e = !0) { @@ -8243,7 +8243,7 @@ function iz(t, e, r) { } return null; } -function zOe(t) { +function QOe(t) { let e = null; function r(l) { l.preventDefault(), l.stopImmediatePropagation(), e = l.getTargetRanges()[0]; @@ -8281,10 +8281,10 @@ class kt { constructor(e = {}) { this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom); let { dispatch: r } = e; - this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || kwe(e.parent) || document, this.viewState = new ez(e.state || Tr.create(e)), e.scrollTo && e.scrollTo.is(lO) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(ey).map((n) => new x_(n)); + this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Swe(e.parent) || document, this.viewState = new ez(e.state || Tr.create(e)), e.scrollTo && e.scrollTo.is(lO) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(ty).map((n) => new x_(n)); for (let n of this.plugins) n.update(this); - this.observer = new FOe(this), this.inputState = new tOe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new IF(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); + this.observer = new zOe(this), this.inputState = new rOe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new IF(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); } dispatch(...e) { let r = e.length == 1 && e[0] instanceof Ei ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)]; @@ -8315,12 +8315,12 @@ class kt { for (let d of e) { if (f && (f = f.map(d.changes)), d.scrollIntoView) { let { main: p } = d.state.selection; - f = new Mg(p.empty ? p : je.cursor(p.head, p.head > p.anchor ? -1 : 1)); + f = new Pg(p.empty ? p : je.cursor(p.head, p.head > p.anchor ? -1 : 1)); } for (let p of d.effects) p.is(lO) && (f = p.value.clip(this.state)); } - this.viewState.update(i, f), this.bidiCache = yk.update(this.bidiCache, i.changes), i.empty || (this.updatePlugins(i), this.inputState.update(i)), r = this.docView.update(i), this.state.facet(ty) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(r, e.some((d) => d.isUserEvent("select.pointer"))); + this.viewState.update(i, f), this.bidiCache = yk.update(this.bidiCache, i.changes), i.empty || (this.updatePlugins(i), this.inputState.update(i)), r = this.docView.update(i), this.state.facet(ry) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(r, e.some((d) => d.isUserEvent("select.pointer"))); } finally { this.updateState = 0; } @@ -8332,7 +8332,7 @@ class kt { al(this.state, p, "update listener"); } (l || h) && Promise.resolve().then(() => { - l && this.state == l.startState && this.dispatch(l), h && !DJ(this, h) && u.force && Rg(this.contentDOM, u.key, u.keyCode); + l && this.state == l.startState && this.dispatch(l), h && !DJ(this, h) && u.force && Dg(this.contentDOM, u.key, u.keyCode); }); } setState(e) { @@ -8347,7 +8347,7 @@ class kt { try { for (let n of this.plugins) n.destroy(this); - this.viewState = new ez(e), this.plugins = e.facet(ey).map((n) => new x_(n)), this.pluginMap.clear(); + this.viewState = new ez(e), this.plugins = e.facet(ty).map((n) => new x_(n)), this.pluginMap.clear(); for (let n of this.plugins) n.update(this); this.docView.destroy(), this.docView = new IF(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = []; @@ -8357,7 +8357,7 @@ class kt { r && this.focus(), this.requestMeasure(); } updatePlugins(e) { - let r = e.startState.facet(ey), n = e.state.facet(ey); + let r = e.startState.facet(ty), n = e.state.facet(ty); if (r != n) { let i = []; for (let s of n) { @@ -8481,9 +8481,9 @@ class kt { } } mountStyles() { - this.styleModules = this.state.facet(ty); + this.styleModules = this.state.facet(ry); let e = this.state.facet(kt.cspNonce); - oh.mount(this.root, this.styleModules.concat(LOe).reverse(), e ? { nonce: e } : void 0); + oh.mount(this.root, this.styleModules.concat(ROe).reverse(), e ? { nonce: e } : void 0); } readMeasured() { if (this.updateState == 2) @@ -8539,13 +8539,13 @@ class kt { return O_(this, e, UF(this, e, r, n)); } moveByGroup(e, r) { - return O_(this, e, UF(this, e, r, (n) => Jwe(this, e.head, n))); + return O_(this, e, UF(this, e, r, (n) => eOe(this, e.head, n))); } moveToLineBoundary(e, r, n = !0) { - return Kwe(this, e, r, n); + return Jwe(this, e, r, n); } moveVertically(e, r, n) { - return O_(this, e, eOe(this, e, r, n)); + return O_(this, e, tOe(this, e, r, n)); } domAtPos(e) { return this.docView.domAtPos(e); @@ -8583,14 +8583,14 @@ class kt { return this.viewState.heightOracle.lineWrapping; } bidiSpans(e) { - if (e.length > QOe) + if (e.length > UOe) return gJ(e.length); let r = this.textDirectionAt(e.from), n; for (let s of this.bidiCache) if (s.from == e.from && s.dir == r && (s.fresh || pJ(s.isolates, n = NF(this, e.from, e.to)))) return s.order; n || (n = NF(this, e.from, e.to)); - let i = Bwe(e.text, r, n); + let i = Fwe(e.text, r, n); return this.bidiCache.push(new yk(e.from, e.to, r, n, !0, i)), i; } get hasFocus() { @@ -8611,11 +8611,11 @@ class kt { this.plugins = [], this.inputState.destroy(), this.docView.destroy(), this.dom.remove(), this.observer.destroy(), this.measureScheduled > -1 && this.win.cancelAnimationFrame(this.measureScheduled), this.destroyed = !0; } static scrollIntoView(e, r = {}) { - return lO.of(new Mg(typeof e == "number" ? je.cursor(e) : e, r.y, r.x, r.yMargin, r.xMargin)); + return lO.of(new Pg(typeof e == "number" ? je.cursor(e) : e, r.y, r.x, r.yMargin, r.xMargin)); } scrollSnapshot() { let { scrollTop: e, scrollLeft: r } = this.scrollDOM, n = this.viewState.scrollAnchorAt(e); - return lO.of(new Mg(je.cursor(n.from), "start", "start", n.top - e, r, !0)); + return lO.of(new Pg(je.cursor(n.from), "start", "start", n.top - e, r, !0)); } static domEventHandlers(e) { return hn.define(() => ({}), { eventHandlers: e }); @@ -8624,11 +8624,11 @@ class kt { return hn.define(() => ({}), { eventObservers: e }); } static theme(e, r) { - let n = oh.newName(), i = [pO.of(n), ty.of(v8(`.${n}`, e))]; + let n = oh.newName(), i = [pO.of(n), ry.of(v8(`.${n}`, e))]; return r && r.dark && i.push(g8.of(!0)), i; } static baseTheme(e) { - return uc.lowest(ty.of(v8("." + m8, e, MJ))); + return uc.lowest(ry.of(v8("." + m8, e, MJ))); } static findFromDOM(e) { var r; @@ -8636,7 +8636,7 @@ class kt { return ((r = i == null ? void 0 : i.rootView) === null || r === void 0 ? void 0 : r.view) || null; } } -kt.styleModule = ty; +kt.styleModule = ry; kt.inputHandler = iJ; kt.focusChangeEffect = sJ; kt.perLineTextDirection = aJ; @@ -8656,7 +8656,7 @@ kt.contentAttributes = KM; kt.editorAttributes = lJ; kt.lineWrapping = /* @__PURE__ */ kt.contentAttributes.of({ class: "cm-lineWrapping" }); kt.announce = /* @__PURE__ */ or.define(); -const QOe = 4096, sz = {}; +const UOe = 4096, sz = {}; class yk { constructor(e, r, n, i, s, a) { this.from = e, this.to = r, this.dir = n, this.isolates = i, this.fresh = s, this.order = a; @@ -8679,8 +8679,8 @@ function az(t, e, r) { } return r; } -const UOe = Vt.mac ? "mac" : Vt.windows ? "win" : Vt.linux ? "linux" : "key"; -function VOe(t, e) { +const VOe = Vt.mac ? "mac" : Vt.windows ? "win" : Vt.linux ? "linux" : "key"; +function qOe(t, e) { const r = t.split(/-(?!$)/); let n = r[r.length - 1]; n == "Space" && (n = " "); @@ -8705,21 +8705,21 @@ function VOe(t, e) { function gO(t, e, r) { return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), r !== !1 && e.shiftKey && (t = "Shift-" + t), t; } -const qOe = /* @__PURE__ */ uc.default(/* @__PURE__ */ kt.domEventHandlers({ +const YOe = /* @__PURE__ */ uc.default(/* @__PURE__ */ kt.domEventHandlers({ keydown(t, e) { return NJ(PJ(e.state), t, e, "editor"); } -})), ju = /* @__PURE__ */ $t.define({ enables: qOe }), oz = /* @__PURE__ */ new WeakMap(); +})), ju = /* @__PURE__ */ $t.define({ enables: YOe }), oz = /* @__PURE__ */ new WeakMap(); function PJ(t) { let e = t.facet(ju), r = oz.get(e); - return r || oz.set(e, r = GOe(e.reduce((n, i) => n.concat(i), []))), r; + return r || oz.set(e, r = XOe(e.reduce((n, i) => n.concat(i), []))), r; } -function YOe(t, e, r) { +function WOe(t, e, r) { return NJ(PJ(t.state), e, t, r); } let ef = null; -const WOe = 4e3; -function GOe(t, e = UOe) { +const GOe = 4e3; +function XOe(t, e = VOe) { let r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = (a, o) => { let l = n[a]; if (l == null) @@ -8728,7 +8728,7 @@ function GOe(t, e = UOe) { throw new Error("Key binding " + a + " is used both as a regular binding and as a multi-stroke prefix"); }, s = (a, o, l, u, h) => { var f, d; - let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => VOe(y, e)); + let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => qOe(y, e)); for (let y = 1; y < g.length; y++) { let b = g.slice(0, y).join(" "); i(b, !0), p[b] || (p[b] = { @@ -8738,7 +8738,7 @@ function GOe(t, e = UOe) { let O = ef = { view: w, prefix: b, scope: a }; return setTimeout(() => { ef == O && (ef = null); - }, WOe), !0; + }, GOe), !0; }] }); } @@ -8768,7 +8768,7 @@ function GOe(t, e = UOe) { return r; } function NJ(t, e, r, n) { - let i = vwe(e), s = bs(i, 0), a = Ho(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; + let i = ywe(e), s = xs(i, 0), a = Ho(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; ef && ef.view == r && ef.scope == n && (o = ef.prefix + " ", wJ.indexOf(e.keyCode) < 0 && (u = !0, ef = null)); let f = /* @__PURE__ */ new Set(), d = (v) => { if (v) { @@ -8806,7 +8806,7 @@ class $x { let s = IJ(e); return [new $x(r, i.left - s.left, i.top - s.top, null, i.bottom - i.top)]; } else - return XOe(e, r, n); + return HOe(e, r, n); } } function IJ(t) { @@ -8821,7 +8821,7 @@ function lz(t, e, r) { type: Ca.Text }; } -function XOe(t, e, r) { +function HOe(t, e, r) { if (r.to <= t.viewport.from || r.from >= t.viewport.to) return []; let n = Math.max(r.from, t.viewport.from), i = Math.min(r.to, t.viewport.to), s = t.textDirection == Wn.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = IJ(t), u = a.querySelector(".cm-line"), h = u && window.getComputedStyle(u), f = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), d = o.right - (h ? parseInt(h.paddingRight) : 0), p = d8(t, n), g = d8(t, i), m = p.type == Ca.Text ? p : null, v = g.type == Ca.Text ? g : null; @@ -8843,8 +8843,8 @@ function XOe(t, e, r) { function w(S, C, T) { let A = 1e9, E = -1e9, R = []; function _(k, P, M, N, D) { - let I = t.coordsAtPos(k, k == T.to ? -2 : 2), B = t.coordsAtPos(M, M == T.from ? 2 : -2); - !I || !B || (A = Math.min(I.top, B.top, A), E = Math.max(I.bottom, B.bottom, E), D == Wn.LTR ? R.push(s && P ? f : I.left, s && N ? d : B.right) : R.push(!s && N ? f : B.left, !s && P ? d : I.right)); + let I = t.coordsAtPos(k, k == T.to ? -2 : 2), F = t.coordsAtPos(M, M == T.from ? 2 : -2); + !I || !F || (A = Math.min(I.top, F.top, A), E = Math.max(I.bottom, F.bottom, E), D == Wn.LTR ? R.push(s && P ? f : I.left, s && N ? d : F.right) : R.push(!s && N ? f : F.left, !s && P ? d : I.right)); } let L = S != null ? S : T.from, $ = C != null ? C : T.to; for (let k of t.visibleRanges) @@ -8852,10 +8852,10 @@ function XOe(t, e, r) { for (let P = Math.max(k.from, L), M = Math.min(k.to, $); ; ) { let N = t.state.doc.lineAt(P); for (let D of t.bidiSpans(N)) { - let I = D.from + N.from, B = D.to + N.from; + let I = D.from + N.from, F = D.to + N.from; if (I >= M) break; - B > P && _(Math.max(I, P), S == null && I <= L, Math.min(B, M), C == null && B >= $, D.dir); + F > P && _(Math.max(I, P), S == null && I <= L, Math.min(F, M), C == null && F >= $, D.dir); } if (P = N.to + 1, P >= M) break; @@ -8867,10 +8867,10 @@ function XOe(t, e, r) { return { top: T, bottom: T, horizontal: [] }; } } -function HOe(t, e) { +function ZOe(t, e) { return t.constructor == e.constructor && t.eq(e); } -class ZOe { +class jOe { constructor(e, r) { this.view = e, this.layer = r, this.drawn = [], this.scaleX = 1, this.scaleY = 1, this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) }, this.dom = e.scrollDOM.appendChild(document.createElement("div")), this.dom.classList.add("cm-layer"), r.above && this.dom.classList.add("cm-layer-above"), r.class && this.dom.classList.add(r.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), r.mount && r.mount(this.dom, e); } @@ -8891,7 +8891,7 @@ class ZOe { (e != this.scaleX || r != this.scaleY) && (this.scaleX = e, this.scaleY = r, this.dom.style.transform = `scale(${1 / e}, ${1 / r})`); } draw(e) { - if (e.length != this.drawn.length || e.some((r, n) => !HOe(r, this.drawn[n]))) { + if (e.length != this.drawn.length || e.some((r, n) => !ZOe(r, this.drawn[n]))) { let r = this.dom.firstChild, n = 0; for (let i of e) i.update && r && i.constructor && this.drawn[n].constructor && i.update(r, this.drawn[n]) ? (r = r.nextSibling, n++) : this.dom.insertBefore(i.draw(), r); @@ -8909,7 +8909,7 @@ class ZOe { const i5 = /* @__PURE__ */ $t.define(); function $J(t) { return [ - hn.define((e) => new ZOe(e, t)), + hn.define((e) => new jOe(e, t)), i5.of(t) ]; } @@ -8927,16 +8927,16 @@ const BJ = !Vt.ios, v2 = /* @__PURE__ */ $t.define({ function FJ(t = {}) { return [ v2.of(t), - jOe, KOe, JOe, + e4e, oJ.of(!0) ]; } function zJ(t) { return t.startState.facet(v2) != t.state.facet(v2); } -const jOe = /* @__PURE__ */ $J({ +const KOe = /* @__PURE__ */ $J({ above: !0, markers(t) { let { state: e } = t, r = e.facet(v2), n = []; @@ -8963,7 +8963,7 @@ const jOe = /* @__PURE__ */ $J({ function cz(t, e) { e.style.animationDuration = t.facet(v2).cursorBlinkRate + "ms"; } -const KOe = /* @__PURE__ */ $J({ +const JOe = /* @__PURE__ */ $J({ above: !1, markers(t) { return t.state.selection.ranges.map((e) => e.empty ? [] : $x.forRange(t, "cm-selectionBackground", e)).reduce((e, r) => e.concat(r)); @@ -8979,28 +8979,28 @@ const KOe = /* @__PURE__ */ $J({ } }; BJ && (y8[".cm-line"].caretColor = "transparent !important", y8[".cm-content"] = { caretColor: "transparent !important" }); -const JOe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @__PURE__ */ or.define({ +const e4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @__PURE__ */ or.define({ map(t, e) { return t == null ? null : e.mapPos(t); } -}), iy = /* @__PURE__ */ Xn.define({ +}), sy = /* @__PURE__ */ Xn.define({ create() { return null; }, update(t, e) { return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(QJ) ? n.value : r, t); } -}), e4e = /* @__PURE__ */ hn.fromClass(class { +}), t4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) }; } update(t) { var e; - let r = t.state.field(iy); - r == null ? this.cursor != null && ((e = this.cursor) === null || e === void 0 || e.remove(), this.cursor = null) : (this.cursor || (this.cursor = this.view.scrollDOM.appendChild(document.createElement("div")), this.cursor.className = "cm-dropCursor"), (t.startState.field(iy) != r || t.docChanged || t.geometryChanged) && this.view.requestMeasure(this.measureReq)); + let r = t.state.field(sy); + r == null ? this.cursor != null && ((e = this.cursor) === null || e === void 0 || e.remove(), this.cursor = null) : (this.cursor || (this.cursor = this.view.scrollDOM.appendChild(document.createElement("div")), this.cursor.className = "cm-dropCursor"), (t.startState.field(sy) != r || t.docChanged || t.geometryChanged) && this.view.requestMeasure(this.measureReq)); } readPos() { - let { view: t } = this, e = t.state.field(iy), r = e != null && t.coordsAtPos(e); + let { view: t } = this, e = t.state.field(sy), r = e != null && t.coordsAtPos(e); if (!r) return null; let n = t.scrollDOM.getBoundingClientRect(); @@ -9020,7 +9020,7 @@ const JOe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @_ this.cursor && this.cursor.remove(); } setDropPos(t) { - this.view.state.field(iy) != t && this.view.dispatch({ effects: QJ.of(t) }); + this.view.state.field(sy) != t && this.view.dispatch({ effects: QJ.of(t) }); } }, { eventObservers: { @@ -9038,8 +9038,8 @@ const JOe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @_ } } }); -function t4e() { - return [iy, e4e]; +function r4e() { + return [sy, t4e]; } function uz(t, e, r, n, i) { e.lastIndex = 0; @@ -9048,7 +9048,7 @@ function uz(t, e, r, n, i) { for (; o = e.exec(s.value); ) i(a + o.index, o); } -function r4e(t, e) { +function n4e(t, e) { let r = t.visibleRanges; if (r.length == 1 && r[0].from == t.viewport.from && r[0].to == t.viewport.to) return r; @@ -9057,7 +9057,7 @@ function r4e(t, e) { i = Math.max(t.state.doc.lineAt(i).from, i - e), s = Math.min(t.state.doc.lineAt(s).to, s + e), n.length && n[n.length - 1].to >= i ? n[n.length - 1].to = s : n.push({ from: i, to: s }); return n; } -class n4e { +class i4e { constructor(e) { const { regexp: r, decoration: n, decorate: i, boundary: s, maxLength: a = 1e3 } = e; if (!r.global) @@ -9076,8 +9076,8 @@ class n4e { this.boundary = s, this.maxLength = a; } createDeco(e) { - let r = new os(), n = r.add.bind(r); - for (let { from: i, to: s } of r4e(e, this.maxLength)) + let r = new ls(), n = r.add.bind(r); + for (let { from: i, to: s } of n4e(e, this.maxLength)) uz(e.state.doc, this.regexp, i, s, (a, o) => this.addMatch(o, e, a, n)); return r.finish(); } @@ -9116,8 +9116,8 @@ class n4e { return r; } } -const b8 = /x/.unicode != null ? "gu" : "g", i4e = /* @__PURE__ */ new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, b8), s4e = { +const b8 = /x/.unicode != null ? "gu" : "g", s4e = /* @__PURE__ */ new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, b8), a4e = { 0: "null", 7: "bell", 8: "backspace", @@ -9141,7 +9141,7 @@ const b8 = /x/.unicode != null ? "gu" : "g", i4e = /* @__PURE__ */ new RegExp(`[ 65532: "object replacement" }; let T_ = null; -function a4e() { +function o4e() { var t; if (T_ == null && typeof document < "u" && document.body) { let e = document.body.style; @@ -9153,33 +9153,33 @@ const s5 = /* @__PURE__ */ $t.define({ combine(t) { let e = gu(t, { render: null, - specialChars: i4e, + specialChars: s4e, addSpecialChars: null }); - return (e.replaceTabs = !a4e()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, b8)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, b8)), e; + return (e.replaceTabs = !o4e()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, b8)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, b8)), e; } }); function UJ(t = {}) { - return [s5.of(t), o4e()]; + return [s5.of(t), l4e()]; } let hz = null; -function o4e() { +function l4e() { return hz || (hz = hn.fromClass(class { constructor(t) { this.view = t, this.decorations = It.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(s5)), this.decorations = this.decorator.createDeco(t); } makeDecorator(t) { - return new n4e({ + return new i4e({ regexp: t.specialChars, decoration: (e, r, n) => { - let { doc: i } = r.state, s = bs(e[0], 0); + let { doc: i } = r.state, s = xs(e[0], 0); if (s == 9) { let a = i.lineAt(n), o = r.state.tabSize, l = tc(a.text, o, n - a.from); return It.replace({ - widget: new h4e((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) + widget: new f4e((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) }); } - return this.decorationCache[s] || (this.decorationCache[s] = It.replace({ widget: new u4e(t, s) })); + return this.decorationCache[s] || (this.decorationCache[s] = It.replace({ widget: new h4e(t, s) })); }, boundary: t.replaceTabs ? void 0 : /[^]/ }); @@ -9192,11 +9192,11 @@ function o4e() { decorations: (t) => t.decorations })); } -const l4e = "\u2022"; -function c4e(t) { - return t >= 32 ? l4e : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); +const c4e = "\u2022"; +function u4e(t) { + return t >= 32 ? c4e : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); } -class u4e extends uo { +class h4e extends uo { constructor(e, r) { super(), this.options = e, this.code = r; } @@ -9204,7 +9204,7 @@ class u4e extends uo { return e.code == this.code; } toDOM(e) { - let r = c4e(this.code), n = e.state.phrase("Control character") + " " + (s4e[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); + let r = u4e(this.code), n = e.state.phrase("Control character") + " " + (a4e[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); if (i) return i; let s = document.createElement("span"); @@ -9214,7 +9214,7 @@ class u4e extends uo { return !1; } } -class h4e extends uo { +class f4e extends uo { constructor(e) { super(), this.width = e; } @@ -9230,9 +9230,9 @@ class h4e extends uo { } } function VJ() { - return d4e; + return p4e; } -const f4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), d4e = /* @__PURE__ */ hn.fromClass(class { +const d4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), p4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -9243,14 +9243,14 @@ const f4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), d4e = /* @__PUR let e = -1, r = []; for (let n of t.state.selection.ranges) { let i = t.lineBlockAt(n.head); - i.from > e && (r.push(f4e.range(i.from)), e = i.from); + i.from > e && (r.push(d4e.range(i.from)), e = i.from); } return It.set(r); } }, { decorations: (t) => t.decorations }), x8 = 2e3; -function p4e(t, e, r) { +function g4e(t, e, r) { let n = Math.min(e.line, r.line), i = Math.max(e.line, r.line), s = []; if (e.off > x8 || r.off > x8 || e.col < 0 || r.col < 0) { let a = Math.min(e.off, r.off), o = Math.max(e.off, r.off); @@ -9272,15 +9272,15 @@ function p4e(t, e, r) { } return s; } -function g4e(t, e) { +function m4e(t, e) { let r = t.coordsAtPos(t.viewport.from); return r ? Math.round(Math.abs((r.left - e) / t.defaultCharacterWidth)) : -1; } function fz(t, e) { - let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > x8 ? -1 : i == n.length ? g4e(t, e.clientX) : tc(n.text, t.state.tabSize, r - n.from); + let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > x8 ? -1 : i == n.length ? m4e(t, e.clientX) : tc(n.text, t.state.tabSize, r - n.from); return { line: n.number, col: s, off: i }; } -function m4e(t, e) { +function v4e(t, e) { let r = fz(t, e), n = t.state.selection; return r ? { update(i) { @@ -9293,23 +9293,23 @@ function m4e(t, e) { let o = fz(t, i); if (!o) return n; - let l = p4e(t.state, r, o); + let l = g4e(t.state, r, o); return l.length ? a ? je.create(l.concat(n.ranges)) : je.create(l) : n; } } : null; } -function v4e(t) { +function y4e(t) { let e = (t == null ? void 0 : t.eventFilter) || ((r) => r.altKey && r.button == 0); - return kt.mouseSelectionStyle.of((r, n) => e(n) ? m4e(r, n) : null); + return kt.mouseSelectionStyle.of((r, n) => e(n) ? v4e(r, n) : null); } -const y4e = { +const b4e = { Alt: [18, (t) => !!t.altKey], Control: [17, (t) => !!t.ctrlKey], Shift: [16, (t) => !!t.shiftKey], Meta: [91, (t) => !!t.metaKey] -}, b4e = { style: "cursor: crosshair" }; -function x4e(t = {}) { - let [e, r] = y4e[t.key || "Alt"], n = hn.fromClass(class { +}, x4e = { style: "cursor: crosshair" }; +function w4e(t = {}) { + let [e, r] = b4e[t.key || "Alt"], n = hn.fromClass(class { constructor(i) { this.view = i, this.isDown = !1; } @@ -9333,11 +9333,11 @@ function x4e(t = {}) { n, kt.contentAttributes.of((i) => { var s; - return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? b4e : null; + return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? x4e : null; }) ]; } -const mv = "-10000px"; +const vv = "-10000px"; class qJ { constructor(e, r, n) { this.facet = r, this.createTooltipView = n, this.input = e.state.facet(r), this.tooltips = this.input.filter((i) => i), this.tooltipViews = this.tooltips.map(n); @@ -9371,7 +9371,7 @@ class qJ { return r && (o.forEach((l, u) => r[u] = l), r.length = o.length), this.input = i, this.tooltips = s, this.tooltipViews = a, !0; } } -function w4e(t) { +function O4e(t) { let { win: e } = t; return { top: 0, left: 0, bottom: e.innerHeight, right: e.innerWidth }; } @@ -9381,7 +9381,7 @@ const C_ = /* @__PURE__ */ $t.define({ return { position: Vt.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed", parent: ((r = t.find((i) => i.parent)) === null || r === void 0 ? void 0 : r.parent) || null, - tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || w4e + tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || O4e }; } }), dz = /* @__PURE__ */ new WeakMap(), tD = /* @__PURE__ */ hn.fromClass(class { @@ -9433,7 +9433,7 @@ const C_ = /* @__PURE__ */ $t.define({ let r = document.createElement("div"); r.className = "cm-tooltip-arrow", e.dom.appendChild(r); } - return e.dom.style.position = this.position, e.dom.style.top = mv, e.dom.style.left = "0px", this.container.appendChild(e.dom), e.mount && e.mount(this.view), e; + return e.dom.style.position = this.position, e.dom.style.top = vv, e.dom.style.left = "0px", this.container.appendChild(e.dom), e.mount && e.mount(this.view), e; } destroy() { var t, e; @@ -9448,7 +9448,7 @@ const C_ = /* @__PURE__ */ $t.define({ let { dom: i } = this.manager.tooltipViews[0]; if (Vt.gecko) n = i.offsetParent != this.container.ownerDocument.body; - else if (i.style.top == mv && i.style.left == "0px") { + else if (i.style.top == vv && i.style.left == "0px") { let s = i.getBoundingClientRect(); n = Math.abs(s.top + 1e4) > 1 || Math.abs(s.left) > 1; } @@ -9484,15 +9484,15 @@ const C_ = /* @__PURE__ */ $t.define({ for (let o = 0; o < this.manager.tooltips.length; o++) { let l = this.manager.tooltips[o], u = this.manager.tooltipViews[o], { dom: h } = u, f = t.pos[o], d = t.size[o]; if (!f || f.bottom <= Math.max(r.top, n.top) || f.top >= Math.min(r.bottom, n.bottom) || f.right < Math.max(r.left, n.left) - 0.1 || f.left > Math.min(r.right, n.right) + 0.1) { - h.style.top = mv; + h.style.top = vv; continue; } - let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = dz.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || k4e, b = this.view.textDirection == Wn.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; + let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = dz.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || S4e, b = this.view.textDirection == Wn.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; !l.strictSide && (O ? f.top - (d.bottom - d.top) - y.y < n.top : f.bottom + (d.bottom - d.top) + y.y > n.bottom) && O == n.bottom - f.bottom > f.top - n.top && (O = this.above[o] = !O); let S = (O ? f.top - n.top : n.bottom - f.bottom) - g; if (S < v && u.resize !== !1) { if (S < this.view.defaultLineHeight) { - h.style.top = mv; + h.style.top = vv; continue; } dz.set(u, v), h.style.height = (v = S) / s + "px"; @@ -9512,7 +9512,7 @@ const C_ = /* @__PURE__ */ $t.define({ maybeMeasure() { if (this.manager.tooltips.length && (this.view.inView && this.view.requestMeasure(this.measureReq), this.inView != this.view.inView && (this.inView = this.view.inView, !this.inView))) for (let t of this.manager.tooltipViews) - t.dom.style.top = mv; + t.dom.style.top = vv; } }, { eventObservers: { @@ -9520,7 +9520,7 @@ const C_ = /* @__PURE__ */ $t.define({ this.maybeMeasure(); } } -}), O4e = /* @__PURE__ */ kt.baseTheme({ +}), k4e = /* @__PURE__ */ kt.baseTheme({ ".cm-tooltip": { zIndex: 100, boxSizing: "border-box" @@ -9581,8 +9581,8 @@ const C_ = /* @__PURE__ */ $t.define({ borderBottomColor: "transparent" } } -}), k4e = { x: 0, y: 0 }, rD = /* @__PURE__ */ $t.define({ - enables: [tD, O4e] +}), S4e = { x: 0, y: 0 }, rD = /* @__PURE__ */ $t.define({ + enables: [tD, k4e] }), bk = /* @__PURE__ */ $t.define(); class $T { static create(e) { @@ -9638,7 +9638,7 @@ class $T { return this.passProp("resize"); } } -const S4e = /* @__PURE__ */ rD.compute([bk], (t) => { +const T4e = /* @__PURE__ */ rD.compute([bk], (t) => { let e = t.facet(bk).filter((r) => r); return e.length === 0 ? null : { pos: Math.min(...e.map((r) => r.pos)), @@ -9651,7 +9651,7 @@ const S4e = /* @__PURE__ */ rD.compute([bk], (t) => { arrow: e.some((r) => r.arrow) }; }); -class T4e { +class C4e { constructor(e, r, n, i, s) { this.view = e, this.source = r, this.field = n, this.setHover = i, this.hoverTime = s, this.hoverTimeout = -1, this.restartTimeout = -1, this.pending = null, this.lastMove = { x: 0, y: 0, target: e.dom, time: 0 }, this.checkHover = this.checkHover.bind(this), e.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this)), e.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this)); } @@ -9701,9 +9701,9 @@ class T4e { var r; this.lastMove = { x: e.clientX, y: e.clientY, target: e.target, time: Date.now() }, this.hoverTimeout < 0 && (this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime)); let { active: n, tooltip: i } = this; - if (n && i && !C4e(i.dom, e) || this.pending) { + if (n && i && !E4e(i.dom, e) || this.pending) { let { pos: s } = n || this.pending, a = (r = n == null ? void 0 : n.end) !== null && r !== void 0 ? r : s; - (s == a ? this.view.posAtCoords(this.lastMove) != s : !E4e(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); + (s == a ? this.view.posAtCoords(this.lastMove) != s : !_4e(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); } } mouseleave(e) { @@ -9725,18 +9725,18 @@ class T4e { } } const mO = 4; -function C4e(t, e) { +function E4e(t, e) { let r = t.getBoundingClientRect(); return e.clientX >= r.left - mO && e.clientX <= r.right + mO && e.clientY >= r.top - mO && e.clientY <= r.bottom + mO; } -function E4e(t, e, r, n, i, s) { +function _4e(t, e, r, n, i, s) { let a = t.scrollDOM.getBoundingClientRect(), o = t.documentTop + t.documentPadding.top + t.contentHeight; if (a.left > n || a.right < n || a.top > i || Math.min(a.bottom, o) < i) return !1; let l = t.posAtCoords({ x: n, y: i }, !1); return l >= e && l <= r; } -function _4e(t, e = {}) { +function A4e(t, e = {}) { let r = or.define(), n = Xn.define({ create() { return null; @@ -9745,22 +9745,22 @@ function _4e(t, e = {}) { if (i && (e.hideOnChange && (s.docChanged || s.selection) || e.hideOn && e.hideOn(s, i))) return null; if (i && s.docChanged) { - let a = s.changes.mapPos(i.pos, -1, Fi.TrackDel); + let a = s.changes.mapPos(i.pos, -1, zi.TrackDel); if (a == null) return null; let o = Object.assign(/* @__PURE__ */ Object.create(null), i); o.pos = a, i.end != null && (o.end = s.changes.mapPos(i.end)), i = o; } for (let a of s.effects) - a.is(r) && (i = a.value), a.is(A4e) && (i = null); + a.is(r) && (i = a.value), a.is(L4e) && (i = null); return i; }, provide: (i) => bk.from(i) }); return [ n, - hn.define((i) => new T4e(i, t, n, r, e.hoverTime || 300)), - S4e + hn.define((i) => new C4e(i, t, n, r, e.hoverTime || 300)), + T4e ]; } function YJ(t, e) { @@ -9770,7 +9770,7 @@ function YJ(t, e) { let n = r.manager.tooltips.indexOf(e); return n < 0 ? null : r.manager.tooltipViews[n]; } -const A4e = /* @__PURE__ */ or.define(), pz = /* @__PURE__ */ $t.define({ +const L4e = /* @__PURE__ */ or.define(), pz = /* @__PURE__ */ $t.define({ combine(t) { let e, r; for (let n of t) @@ -9865,7 +9865,7 @@ function gz(t) { const b2 = /* @__PURE__ */ $t.define({ enables: WJ }); -class ul extends R0 { +class ul extends M0 { compare(e) { return this == e || this.constructor == e.constructor && this.eq(e); } @@ -9877,10 +9877,10 @@ class ul extends R0 { } ul.prototype.elementClass = ""; ul.prototype.toDOM = void 0; -ul.prototype.mapMode = Fi.TrackBefore; +ul.prototype.mapMode = zi.TrackBefore; ul.prototype.startSide = ul.prototype.endSide = -1; ul.prototype.point = !0; -const a5 = /* @__PURE__ */ $t.define(), L4e = { +const a5 = /* @__PURE__ */ $t.define(), R4e = { class: "", renderEmptyElements: !1, elementStyle: "", @@ -9893,18 +9893,18 @@ const a5 = /* @__PURE__ */ $t.define(), L4e = { domEventHandlers: {} }, Iy = /* @__PURE__ */ $t.define(); function BT(t) { - return [GJ(), Iy.of(Object.assign(Object.assign({}, L4e), t))]; + return [GJ(), Iy.of(Object.assign(Object.assign({}, R4e), t))]; } const w8 = /* @__PURE__ */ $t.define({ combine: (t) => t.some((e) => e) }); function GJ(t) { let e = [ - R4e + M4e ]; return t && t.fixed === !1 && e.push(w8.of(!0)), e; } -const R4e = /* @__PURE__ */ hn.fromClass(class { +const M4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(Iy).map((e) => new vz(t, e)); for (let e of this.gutters) @@ -9921,7 +9921,7 @@ const R4e = /* @__PURE__ */ hn.fromClass(class { syncGutters(t) { let e = this.dom.nextSibling; t && this.dom.remove(); - let r = $r.iter(this.view.state.facet(a5), this.view.viewport.from), n = [], i = this.gutters.map((s) => new M4e(s, this.view.viewport, -this.view.documentPadding.top)); + let r = $r.iter(this.view.state.facet(a5), this.view.viewport.from), n = [], i = this.gutters.map((s) => new D4e(s, this.view.viewport, -this.view.documentPadding.top)); for (let s of this.view.viewportLineBlocks) if (n.length && (n = []), Array.isArray(s.type)) { let a = !0; @@ -9983,7 +9983,7 @@ function O8(t, e, r) { for (; t.value && t.from <= r; ) t.from == r && e.push(t.value), t.next(); } -class M4e { +class D4e { constructor(e, r, n) { this.gutter = e, this.height = n, this.i = 0, this.cursor = $r.iter(e.markers, r.from); } @@ -10053,7 +10053,7 @@ class XJ { this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, r, n, i); } update(e, r, n, i) { - this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), D4e(this.markers, i) || this.setMarkers(e, i); + this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), P4e(this.markers, i) || this.setMarkers(e, i); } setMarkers(e, r) { let n = "cm-gutterElement", i = this.dom.firstChild; @@ -10087,7 +10087,7 @@ class XJ { this.setMarkers(null, []); } } -function D4e(t, e) { +function P4e(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -10095,7 +10095,7 @@ function D4e(t, e) { return !1; return !0; } -const P4e = /* @__PURE__ */ $t.define(), pg = /* @__PURE__ */ $t.define({ +const N4e = /* @__PURE__ */ $t.define(), mg = /* @__PURE__ */ $t.define({ combine(t) { return gu(t, { formatNumber: String, domEventHandlers: {} }, { domEventHandlers(e, r) { @@ -10121,19 +10121,19 @@ class E_ extends ul { } } function __(t, e) { - return t.state.facet(pg).formatNumber(e, t.state); + return t.state.facet(mg).formatNumber(e, t.state); } -const N4e = /* @__PURE__ */ Iy.compute([pg], (t) => ({ +const I4e = /* @__PURE__ */ Iy.compute([mg], (t) => ({ class: "cm-lineNumbers", renderEmptyElements: !1, markers(e) { - return e.state.facet(P4e); + return e.state.facet(N4e); }, lineMarker(e, r, n) { return n.some((i) => i.toDOM) ? null : new E_(__(e, e.state.doc.lineAt(r.from).number)); }, widgetMarker: () => null, - lineMarkerChange: (e) => e.startState.facet(pg) != e.state.facet(pg), + lineMarkerChange: (e) => e.startState.facet(mg) != e.state.facet(mg), initialSpacer(e) { return new E_(__(e, yz(e.state.doc.lines))); }, @@ -10141,13 +10141,13 @@ const N4e = /* @__PURE__ */ Iy.compute([pg], (t) => ({ let n = __(r.view, yz(r.view.state.doc.lines)); return n == e.number ? e : new E_(n); }, - domEventHandlers: t.facet(pg).domEventHandlers + domEventHandlers: t.facet(mg).domEventHandlers })); -function I4e(t = {}) { +function $4e(t = {}) { return [ - pg.of(t), + mg.of(t), GJ(), - N4e + I4e ]; } function yz(t) { @@ -10156,23 +10156,23 @@ function yz(t) { e = e * 10 + 9; return e; } -const $4e = /* @__PURE__ */ new class extends ul { +const B4e = /* @__PURE__ */ new class extends ul { constructor() { super(...arguments), this.elementClass = "cm-activeLineGutter"; } -}(), B4e = /* @__PURE__ */ a5.compute(["selection"], (t) => { +}(), F4e = /* @__PURE__ */ a5.compute(["selection"], (t) => { let e = [], r = -1; for (let n of t.selection.ranges) { let i = t.doc.lineAt(n.head).from; - i > r && (r = i, e.push($4e.range(i))); + i > r && (r = i, e.push(B4e.range(i))); } return $r.of(e); }); -function F4e() { - return B4e; +function z4e() { + return F4e; } const HJ = 1024; -let z4e = 0; +let Q4e = 0; class Jo { constructor(e, r) { this.from = e, this.to = r; @@ -10180,14 +10180,14 @@ class Jo { } class yr { constructor(e = {}) { - this.id = z4e++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { + this.id = Q4e++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { throw new Error("This node type doesn't define a deserialize function"); }); } add(e) { if (this.perNode) throw new RangeError("Can't add per-node props to node types"); - return typeof e != "function" && (e = Yi.match(e)), (r) => { + return typeof e != "function" && (e = Wi.match(e)), (r) => { let n = e(r); return n === void 0 ? null : [this, n]; }; @@ -10212,13 +10212,13 @@ class x2 { return e && e.props && e.props[yr.mounted.id]; } } -const Q4e = /* @__PURE__ */ Object.create(null); -class Yi { +const U4e = /* @__PURE__ */ Object.create(null); +class Wi { constructor(e, r, n, i = 0) { this.name = e, this.props = r, this.id = n, this.flags = i; } static define(e) { - let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : Q4e, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Yi(e.name || "", r, e.id, n); + let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : U4e, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Wi(e.name || "", r, e.id, n); if (e.props) { for (let s of e.props) if (Array.isArray(s) || (s = s(i)), s) { @@ -10267,7 +10267,7 @@ class Yi { }; } } -Yi.none = new Yi("", /* @__PURE__ */ Object.create(null), 0, 8); +Wi.none = new Wi("", /* @__PURE__ */ Object.create(null), 0, 8); class Bx { constructor(e) { this.types = e; @@ -10283,7 +10283,7 @@ class Bx { let a = s(n); a && (i || (i = Object.assign({}, n.props)), i[a[0].id] = a[1]); } - r.push(i ? new Yi(n.name, i, n.id, n.flags) : n); + r.push(i ? new Wi(n.name, i, n.id, n.flags) : n); } return new Bx(r); } @@ -10331,7 +10331,7 @@ class nn { return bz.set(this, n), n; } resolveStack(e, r = 0) { - return q4e(this, e, r); + return Y4e(this, e, r); } iterate(e) { let { enter: r, leave: n, from: i = 0, to: s = this.length } = e, a = e.mode || 0, o = (a & Sn.IncludeAnonymous) > 0; @@ -10360,13 +10360,13 @@ class nn { return e; } balance(e = {}) { - return this.children.length <= 8 ? this : sD(Yi.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new nn(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new nn(Yi.none, r, n, i))); + return this.children.length <= 8 ? this : sD(Wi.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new nn(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new nn(Wi.none, r, n, i))); } static build(e) { - return Y4e(e); + return W4e(e); } } -nn.empty = new nn(Yi.none, [], [], 0); +nn.empty = new nn(Wi.none, [], [], 0); class nD { constructor(e, r) { this.buffer = e, this.index = r; @@ -10398,7 +10398,7 @@ class If { this.buffer = e, this.length = r, this.set = n; } get type() { - return Yi.none; + return Wi.none; } toString() { let e = []; @@ -10525,7 +10525,7 @@ class ta extends jJ { continue; let d = h.findChild(0, h.buffer.length, r, n - f, i); if (d > -1) - return new Fc(new U4e(a, h, e, f), null, d); + return new Fc(new V4e(a, h, e, f), null, d); } else if (s & Sn.IncludeAnonymous || !h.type.isAnonymous || iD(h)) { let d; if (!(s & Sn.IgnoreMounts) && (d = x2.get(h)) && !d.overlay) @@ -10614,7 +10614,7 @@ function k8(t, e, r = e.length - 1) { } return !0; } -class U4e { +class V4e { constructor(e, r, n, i) { this.parent = e, this.buffer = r, this.index = n, this.start = i; } @@ -10692,9 +10692,9 @@ function KJ(t) { (a.from > r.from || a.to < r.to) && (r = a, e = s); } let n = r instanceof ta && r.index < 0 ? null : r.parent, i = t.slice(); - return n ? i[e] = n : i.splice(e, 1), new V4e(i, r); + return n ? i[e] = n : i.splice(e, 1), new q4e(i, r); } -class V4e { +class q4e { constructor(e, r) { this.heads = e, this.node = r; } @@ -10702,7 +10702,7 @@ class V4e { return KJ(this.heads); } } -function q4e(t, e, r) { +function Y4e(t, e, r) { let n = t.resolveInner(e, r), i = null; for (let s = n instanceof ta ? n : n.context.parent; s; s = s.parent) if (s.index < 0) { @@ -10903,15 +10903,15 @@ class xk { function iD(t) { return t.children.some((e) => e instanceof If || !e.type.isAnonymous || iD(e)); } -function Y4e(t) { +function W4e(t) { var e; let { buffer: r, nodeSet: n, maxBufferLength: i = HJ, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new nD(r, r.length) : r, l = n.types, u = 0, h = 0; function f(S, C, T, A, E, R) { let { id: _, start: L, end: $, size: k } = o, P = h, M = u; for (; k < 0; ) if (o.next(), k == -1) { - let F = s[_]; - T.push(F), A.push(L - S); + let B = s[_]; + T.push(B), A.push(L - S); return; } else if (k == -3) { u = _; @@ -10921,25 +10921,25 @@ function Y4e(t) { return; } else throw new RangeError(`Unrecognized record size: ${k}`); - let N = l[_], D, I, B = L - S; + let N = l[_], D, I, F = L - S; if ($ - L <= i && (I = v(o.pos - C, E))) { - let F = new Uint16Array(I.size - I.skip), Q = o.pos - I.size, q = F.length; - for (; o.pos > Q; ) - q = y(I.start, F, q); - D = new If(F, $ - I.start, n), B = I.start - S; + let B = new Uint16Array(I.size - I.skip), U = o.pos - I.size, Q = B.length; + for (; o.pos > U; ) + Q = y(I.start, B, Q); + D = new If(B, $ - I.start, n), F = I.start - S; } else { - let F = o.pos - k; + let B = o.pos - k; o.next(); - let Q = [], q = [], W = _ >= a ? _ : -1, J = 0, Y = $; - for (; o.pos > F; ) - W >= 0 && o.id == W && o.size >= 0 ? (o.end <= Y - i && (g(Q, q, L, J, o.end, Y, W, P, M), J = Q.length, Y = o.end), o.next()) : R > 2500 ? d(L, F, Q, q) : f(L, F, Q, q, W, R + 1); - if (W >= 0 && J > 0 && J < Q.length && g(Q, q, L, J, L, Y, W, P, M), Q.reverse(), q.reverse(), W > -1 && J > 0) { - let re = p(N, M); - D = sD(N, Q, q, 0, Q.length, 0, $ - L, re, re); + let U = [], Q = [], W = _ >= a ? _ : -1, K = 0, Y = $; + for (; o.pos > B; ) + W >= 0 && o.id == W && o.size >= 0 ? (o.end <= Y - i && (g(U, Q, L, K, o.end, Y, W, P, M), K = U.length, Y = o.end), o.next()) : R > 2500 ? d(L, B, U, Q) : f(L, B, U, Q, W, R + 1); + if (W >= 0 && K > 0 && K < U.length && g(U, Q, L, K, L, Y, W, P, M), U.reverse(), Q.reverse(), W > -1 && K > 0) { + let te = p(N, M); + D = sD(N, U, Q, 0, U.length, 0, $ - L, te, te); } else - D = m(N, Q, q, $ - L, P - $, M); + D = m(N, U, Q, $ - L, P - $, M); } - T.push(D), A.push(B); + T.push(D), A.push(F); } function d(S, C, T, A) { let E = [], R = 0, _ = -1; @@ -11150,7 +11150,7 @@ class Ku { } class aD { startParse(e, r, n) { - return typeof e == "string" && (e = new W4e(e)), n = n ? n.length ? n.map((i) => new Jo(i.from, i.to)) : [new Jo(0, 0)] : [new Jo(0, e.length)], this.createParse(e, r || [], n); + return typeof e == "string" && (e = new G4e(e)), n = n ? n.length ? n.map((i) => new Jo(i.from, i.to)) : [new Jo(0, 0)] : [new Jo(0, e.length)], this.createParse(e, r || [], n); } parse(e, r, n) { let i = this.startParse(e, r, n); @@ -11161,7 +11161,7 @@ class aD { } } } -class W4e { +class G4e { constructor(e) { this.string = e; } @@ -11179,7 +11179,7 @@ class W4e { } } function eee(t) { - return (e, r, n, i) => new X4e(e, t, r, n, i); + return (e, r, n, i) => new H4e(e, t, r, n, i); } class Oz { constructor(e, r, n, i, s) { @@ -11190,13 +11190,13 @@ function kz(t) { if (!t.length || t.some((e) => e.from >= e.to)) throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(t)); } -class G4e { +class X4e { constructor(e, r, n, i, s, a, o) { this.parser = e, this.predicate = r, this.mounts = n, this.index = i, this.start = s, this.target = a, this.prev = o, this.depth = 0, this.ranges = []; } } const S8 = new yr({ perNode: !0 }); -class X4e { +class H4e { constructor(e, r, n, i, s) { this.nest = r, this.input = n, this.fragments = i, this.ranges = s, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e; } @@ -11237,7 +11237,7 @@ class X4e { this.inner[r].parse.stopAt(e); } startInner() { - let e = new j4e(this.fragments), r = null, n = null, i = new xk(new ta(this.baseTree, this.ranges[0].from, 0, null), Sn.IncludeAnonymous | Sn.IgnoreMounts); + let e = new K4e(this.fragments), r = null, n = null, i = new xk(new ta(this.baseTree, this.ranges[0].from, 0, null), Sn.IncludeAnonymous | Sn.IgnoreMounts); e: for (let s, a; ; ) { let o = !0, l; @@ -11253,13 +11253,13 @@ class X4e { } } o = !1; - } else if (n && (a = H4e(n.ranges, i.from, i.to))) + } else if (n && (a = Z4e(n.ranges, i.from, i.to))) o = a != 2; else if (!i.type.isAnonymous && (s = this.nest(i, this.input)) && (i.from < i.to || !s.overlay)) { - i.tree || Z4e(i); + i.tree || j4e(i); let u = e.findMounts(i.from, s.parser); if (typeof s.overlay == "function") - r = new G4e(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); + r = new X4e(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); else { let h = Cz(this.ranges, s.overlay || (i.from < i.to ? [new Jo(i.from, i.to)] : [])); h.length && kz(h), (h.length || !s.overlay) && this.inner.push(new Oz(s.parser, h.length ? s.parser.startParse(this.input, Ez(u, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((f) => new Jo(f.from - i.from, f.to - i.from)) : null, i.tree, h.length ? h[0].from : i.from)), s.overlay ? h.length && (n = { ranges: h, depth: 0, prev: n }) : o = !1; @@ -11283,7 +11283,7 @@ class X4e { } } } -function H4e(t, e, r) { +function Z4e(t, e, r) { for (let n of t) { if (n.from >= r) break; @@ -11298,7 +11298,7 @@ function Sz(t, e, r, n, i, s) { n.push(t.slice(e, r, a)), i.push(a - s); } } -function Z4e(t) { +function j4e(t) { let { node: e } = t, r = [], n = e.context.buffer; do r.push(t.index), t.parent(); @@ -11312,7 +11312,7 @@ function Z4e(t) { let S = m ? u(v + 4, o[v + 3], a.set.types[o[v]], w, O - w, m - 1) : e.toTree(); return y.push(S), b.push(w - p), Sz(a, o[v + 3], f, y, b, p), new nn(d, y, b, g); } - i.children[s] = u(0, o.length, Yi.none, 0, a.length, r.length - 1); + i.children[s] = u(0, o.length, Wi.none, 0, a.length, r.length - 1); for (let h of l) { let f = t.tree.children[h], d = t.tree.positions[h]; t.yield(new ta(f, d + t.from, h, t._tree)); @@ -11340,7 +11340,7 @@ class Tz { return !1; } } -class j4e { +class K4e { constructor(e) { var r; if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) { @@ -11399,7 +11399,7 @@ function Cz(t, e) { } return n; } -function K4e(t, e, r, n) { +function J4e(t, e, r, n) { let i = 0, s = 0, a = !1, o = !1, l = -1e9, u = []; for (; ; ) { let h = i == t.length ? 1e9 : a ? t[i].to : t[i].from, f = s == e.length ? 1e9 : o ? e[s].to : e[s].from; @@ -11418,7 +11418,7 @@ function Ez(t, e) { for (let { pos: n, mount: i, frag: s } of t) { let a = n + (i.overlay ? i.overlay[0].from : 0), o = a + i.tree.length, l = Math.max(s.from, a), u = Math.min(s.to, o); if (i.overlay) { - let h = i.overlay.map((d) => new Jo(d.from + n, d.to + n)), f = K4e(e, h, l, u); + let h = i.overlay.map((d) => new Jo(d.from + n, d.to + n)), f = J4e(e, h, l, u); for (let d = 0, p = l; ; d++) { let g = d == f.length, m = g ? u : f[d].from; if (m > p && r.push(new Ku(p, m, i.tree, -a, s.from >= p || s.openStart, s.to <= m || s.openEnd)), g) @@ -11430,10 +11430,10 @@ function Ez(t, e) { } return r; } -let J4e = 0; +let e5e = 0; class Il { constructor(e, r, n) { - this.set = e, this.base = r, this.modified = n, this.id = J4e++; + this.set = e, this.base = r, this.modified = n, this.id = e5e++; } static define(e) { if (e != null && e.base) @@ -11449,21 +11449,21 @@ class Il { return (r) => r.modified.indexOf(e) > -1 ? r : wk.get(r.base || r, r.modified.concat(e).sort((n, i) => n.id - i.id)); } } -let e5e = 0; +let t5e = 0; class wk { constructor() { - this.instances = [], this.id = e5e++; + this.instances = [], this.id = t5e++; } static get(e, r) { if (!r.length) return e; - let n = r[0].instances.find((o) => o.base == e && t5e(r, o.modified)); + let n = r[0].instances.find((o) => o.base == e && r5e(r, o.modified)); if (n) return n; let i = [], s = new Il(i, e, r); for (let o of r) o.instances.push(s); - let a = r5e(r); + let a = n5e(r); for (let o of e.set) if (!o.modified.length) for (let l of a) @@ -11471,10 +11471,10 @@ class wk { return s; } } -function t5e(t, e) { +function r5e(t, e) { return t.length == e.length && t.every((r, n) => r == e[n]); } -function r5e(t) { +function n5e(t) { let e = [[]]; for (let r = 0; r < t.length; r++) for (let n = 0, i = e.length; n < i; n++) @@ -11561,7 +11561,7 @@ function ree(t, e) { scope: n }; } -function n5e(t, e) { +function i5e(t, e) { let r = null; for (let n of t) { let i = n.style(e); @@ -11569,11 +11569,11 @@ function n5e(t, e) { } return r; } -function i5e(t, e, r, n = 0, i = t.length) { - let s = new s5e(n, Array.isArray(e) ? e : [e], r); +function s5e(t, e, r, n = 0, i = t.length) { + let s = new a5e(n, Array.isArray(e) ? e : [e], r); s.highlightRange(t.cursor(), n, i, "", s.highlighters), s.flush(i); } -class s5e { +class a5e { constructor(e, r, n) { this.at = e, this.highlighters = r, this.span = n, this.class = ""; } @@ -11588,7 +11588,7 @@ class s5e { if (o >= n || l <= r) return; a.isTop && (s = this.highlighters.filter((p) => !p.scope || p.scope(a))); - let u = i, h = a5e(e) || Ok.empty, f = n5e(s, h.tags); + let u = i, h = o5e(e) || Ok.empty, f = i5e(s, h.tags); if (f && (u && (u += " "), u += f, h.mode == 1 && (i += (i ? " " : "") + f)), this.startSpan(Math.max(r, o), u), h.opaque) return; let d = e.tree && e.tree.prop(yr.mounted); @@ -11617,13 +11617,13 @@ class s5e { } } } -function a5e(t) { +function o5e(t) { let e = t.type.prop(tee); for (; e && e.context && !t.matchContext(e.context); ) e = e.next; return e || null; } -const Rt = Il.define, bO = Rt(), Zh = Rt(), _z = Rt(Zh), Az = Rt(Zh), jh = Rt(), xO = Rt(jh), A_ = Rt(jh), Ec = Rt(), _d = Rt(Ec), Oc = Rt(), kc = Rt(), T8 = Rt(), vv = Rt(T8), wO = Rt(), Se = { +const Rt = Il.define, bO = Rt(), Zh = Rt(), _z = Rt(Zh), Az = Rt(Zh), jh = Rt(), xO = Rt(jh), A_ = Rt(jh), Ec = Rt(), _d = Rt(Ec), Oc = Rt(), kc = Rt(), T8 = Rt(), yv = Rt(T8), wO = Rt(), Se = { comment: bO, lineComment: Rt(bO), blockComment: Rt(bO), @@ -11673,11 +11673,11 @@ const Rt = Il.define, bO = Rt(), Zh = Rt(), _z = Rt(Zh), Az = Rt(Zh), jh = Rt(), controlOperator: Rt(kc), punctuation: T8, separator: Rt(T8), - bracket: vv, - angleBracket: Rt(vv), - squareBracket: Rt(vv), - paren: Rt(vv), - brace: Rt(vv), + bracket: yv, + angleBracket: Rt(yv), + squareBracket: Rt(yv), + paren: Rt(yv), + brace: Rt(yv), content: Ec, heading: _d, heading1: Rt(_d), @@ -11841,7 +11841,7 @@ function Cn(t) { let e = t.field(el.state, !1); return e ? e.tree : nn.empty; } -class o5e { +class l5e { constructor(e) { this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter(); } @@ -11862,7 +11862,7 @@ class o5e { return e < n || r >= this.cursorPos ? this.doc.sliceString(e, r) : this.string.slice(e - n, r - n); } } -let yv = null; +let bv = null; class O2 { constructor(e, r, n = [], i, s, a, o, l) { this.parser = e, this.state = r, this.fragments = n, this.tree = i, this.treeLen = s, this.viewport = a, this.skipped = o, this.scheduleOn = l, this.parse = null, this.tempSkipped = []; @@ -11871,7 +11871,7 @@ class O2 { return new O2(e, r, [], nn.empty, 0, n, [], null); } startParse() { - return this.parser.startParse(new o5e(this.state.doc), this.fragments); + return this.parser.startParse(new l5e(this.state.doc), this.fragments); } work(e, r) { return r != null && r >= this.state.doc.length && (r = void 0), this.tree != nn.empty && this.isDone(r != null ? r : this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => { @@ -11900,12 +11900,12 @@ class O2 { }), this.treeLen = e, this.tree = r, this.fragments = this.withoutTempSkipped(Ku.addTree(this.tree, this.fragments, !0)), this.parse = null); } withContext(e) { - let r = yv; - yv = this; + let r = bv; + bv = this; try { return e(); } finally { - yv = r; + bv = r; } } withoutTempSkipped(e) { @@ -11951,13 +11951,13 @@ class O2 { return { parsedPos: s, advance() { - let l = yv; + let l = bv; if (l) { for (let u of i) l.tempSkipped.push(u); e && (l.scheduleOn = l.scheduleOn ? Promise.all([l.scheduleOn, e]) : e); } - return this.parsedPos = a, new nn(Yi.none, [], [], a - s); + return this.parsedPos = a, new nn(Wi.none, [], [], a - s); }, stoppedAt: null, stopAt() { @@ -11972,13 +11972,13 @@ class O2 { return this.treeLen >= e && r.length && r[0].from == 0 && r[0].to >= e; } static get() { - return yv; + return bv; } } function Rz(t, e, r) { return Ku.applyChanges(t, [{ fromA: e, toA: r, fromB: e, toB: r }]); } -class dm { +class pm { constructor(e) { this.context = e, this.tree = e.tree; } @@ -11986,20 +11986,20 @@ class dm { if (!e.docChanged && this.tree == this.context.tree) return this; let r = this.context.changes(e.changes, e.state), n = this.context.treeLen == e.startState.doc.length ? void 0 : Math.max(e.changes.mapPos(this.context.treeLen), r.viewport.to); - return r.work(20, n) || r.takeTree(), new dm(r); + return r.work(20, n) || r.takeTree(), new pm(r); } static init(e) { let r = Math.min(3e3, e.doc.length), n = O2.create(e.facet(Bf).parser, e, { from: 0, to: r }); - return n.work(20, r) || n.takeTree(), new dm(n); + return n.work(20, r) || n.takeTree(), new pm(n); } } el.state = /* @__PURE__ */ Xn.define({ - create: dm.init, + create: pm.init, update(t, e) { for (let r of e.effects) if (r.is(el.setState)) return r.value; - return e.startState.facet(Bf) != e.state.facet(Bf) ? dm.init(e.state) : t.apply(e); + return e.startState.facet(Bf) != e.state.facet(Bf) ? pm.init(e.state) : t.apply(e); } }); let nee = (t) => { @@ -12012,7 +12012,7 @@ typeof requestIdleCallback < "u" && (nee = (t) => { }, 100); return () => e < 0 ? clearTimeout(r) : cancelIdleCallback(e); }); -const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ === void 0 ? void 0 : L_.isInputPending) ? () => navigator.scheduling.isInputPending() : null, l5e = /* @__PURE__ */ hn.fromClass(class { +const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ === void 0 ? void 0 : L_.isInputPending) ? () => navigator.scheduling.isInputPending() : null, c5e = /* @__PURE__ */ hn.fromClass(class { constructor(e) { this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork(); } @@ -12035,7 +12035,7 @@ const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ if (s.tree == s.context.tree && s.context.isDone(i + 1e5)) return; let a = Date.now() + Math.min(this.chunkBudget, 100, e && !R_ ? Math.max(25, e.timeRemaining() - 5) : 1e9), o = s.context.treeLen < i && n.doc.length > i + 1e3, l = s.context.work(() => R_ && R_() || Date.now() > a, i + (o ? 0 : 1e5)); - this.chunkBudget -= Date.now() - r, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects: el.setState.of(new dm(s.context)) })), this.chunkBudget > 0 && !(l && !o) && this.scheduleWork(), this.checkAsyncSchedule(s.context); + this.chunkBudget -= Date.now() - r, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects: el.setState.of(new pm(s.context)) })), this.chunkBudget > 0 && !(l && !o) && this.scheduleWork(), this.checkAsyncSchedule(s.context); } checkAsyncSchedule(e) { e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((r) => al(this.view.state, r)).then(() => this.workScheduled--), e.scheduleOn = null); @@ -12056,14 +12056,14 @@ const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ }, enables: (t) => [ el.state, - l5e, + c5e, kt.contentAttributes.compute([t], (e) => { let r = e.facet(t); return r && r.name ? { "data-language": r.name } : {}; }) ] }); -class pm { +class gm { constructor(e, r = []) { this.language = e, this.support = r, this.extension = [e, r]; } @@ -12113,7 +12113,7 @@ class kk { return null; } } -const c5e = /* @__PURE__ */ $t.define(), Fx = /* @__PURE__ */ $t.define({ +const u5e = /* @__PURE__ */ $t.define(), Fx = /* @__PURE__ */ $t.define({ combine: (t) => { if (!t.length) return " "; @@ -12140,13 +12140,13 @@ function k2(t, e) { } function cD(t, e) { t instanceof Tr && (t = new FT(t)); - for (let n of t.state.facet(c5e)) { + for (let n of t.state.facet(u5e)) { let i = n(t, e); if (i !== void 0) return i; } let r = Cn(t.state); - return r.length >= e ? u5e(t, r, e) : null; + return r.length >= e ? h5e(t, r, e) : null; } class FT { constructor(e, r = {}) { @@ -12182,8 +12182,8 @@ class FT { return this.options.simulateBreak || null; } } -const b1 = /* @__PURE__ */ new yr(); -function u5e(t, e, r) { +const x1 = /* @__PURE__ */ new yr(); +function h5e(t, e, r) { let n = e.resolveStack(r), i = n.node.enterUnfinishedNodesBefore(r); if (i != n.node) { let s = []; @@ -12196,27 +12196,27 @@ function u5e(t, e, r) { } function iee(t, e, r) { for (let n = t; n; n = n.next) { - let i = f5e(n.node); + let i = d5e(n.node); if (i) return i(uD.create(e, r, n)); } return 0; } -function h5e(t) { +function f5e(t) { return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak; } -function f5e(t) { - let e = t.type.prop(b1); +function d5e(t) { + let e = t.type.prop(x1); if (e) return e; let r = t.firstChild, n; if (r && (n = r.type.prop(yr.closedBy))) { let i = t.lastChild, s = i && n.indexOf(i.name) > -1; - return (a) => see(a, !0, 1, void 0, s && !h5e(a) ? i.from : void 0); + return (a) => see(a, !0, 1, void 0, s && !f5e(a) ? i.from : void 0); } - return t.parent == null ? d5e : null; + return t.parent == null ? p5e : null; } -function d5e() { +function p5e() { return 0; } class uD extends FT { @@ -12241,7 +12241,7 @@ class uD extends FT { let n = e.resolve(r.from); for (; n.parent && n.parent.from == n.from; ) n = n.parent; - if (p5e(n, e)) + if (g5e(n, e)) break; r = this.state.doc.lineAt(n.from); } @@ -12251,13 +12251,13 @@ class uD extends FT { return iee(this.context.next, this.base, this.pos); } } -function p5e(t, e) { +function g5e(t, e) { for (let r = e; r; r = r.parent) if (t == r) return !0; return !1; } -function g5e(t) { +function m5e(t) { let e = t.node, r = e.childAfter(e.from), n = e.lastChild; if (!r) return null; @@ -12275,18 +12275,18 @@ function C8({ closing: t, align: e = !0, units: r = 1 }) { return (n) => see(n, e, r, t); } function see(t, e, r, n, i) { - let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? g5e(t) : null; + let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? m5e(t) : null; return l ? o ? t.column(l.from) : t.column(l.to) : t.baseIndent + (o ? 0 : t.unit * r); } -const m5e = (t) => t.baseIndent; +const v5e = (t) => t.baseIndent; function l5({ except: t, units: e = 1 } = {}) { return (r) => { let n = t && t.test(r.textAfter); return r.baseIndent + (n ? 0 : e * r.unit); }; } -const v5e = 200; -function y5e() { +const y5e = 200; +function b5e() { return Tr.transactionFilter.of((t) => { if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete")) return t; @@ -12294,7 +12294,7 @@ function y5e() { if (!e.length) return t; let r = t.newDoc, { head: n } = t.newSelection.main, i = r.lineAt(n); - if (n > i.from + v5e) + if (n > i.from + y5e) return t; let s = r.sliceString(i.from, n); if (!e.some((u) => u.test(s))) @@ -12314,12 +12314,12 @@ function y5e() { return l.length ? [t, { changes: l, sequential: !0 }] : t; }); } -const aee = /* @__PURE__ */ $t.define(), mp = /* @__PURE__ */ new yr(); +const aee = /* @__PURE__ */ $t.define(), vp = /* @__PURE__ */ new yr(); function hD(t) { let e = t.firstChild, r = t.lastChild; return e && e.to < r.from ? { from: e.to, to: r.type.isError ? t.to : r.from } : null; } -function b5e(t, e, r) { +function x5e(t, e, r) { let n = Cn(t); if (n.length < r) return null; @@ -12330,15 +12330,15 @@ function b5e(t, e, r) { continue; if (s && o.from < e) break; - let l = o.type.prop(mp); - if (l && (o.to < n.length - 50 || n.length == t.doc.length || !x5e(o))) { + let l = o.type.prop(vp); + if (l && (o.to < n.length - 50 || n.length == t.doc.length || !w5e(o))) { let u = l(o, t); u && u.from <= r && u.from >= e && u.to > r && (s = u); } } return s; } -function x5e(t) { +function w5e(t) { let e = t.lastChild; return e && e.to == t.to && e.type.isError; } @@ -12348,13 +12348,13 @@ function S2(t, e, r) { if (i) return i; } - return b5e(t, e, r); + return x5e(t, e, r); } function oee(t, e) { let r = e.mapPos(t.from, 1), n = e.mapPos(t.to, -1); return r >= n ? void 0 : { from: r, to: n }; } -const hh = /* @__PURE__ */ or.define({ map: oee }), vp = /* @__PURE__ */ or.define({ map: oee }); +const hh = /* @__PURE__ */ or.define({ map: oee }), yp = /* @__PURE__ */ or.define({ map: oee }); function lee(t) { let e = []; for (let { head: r } of t.state.selection.ranges) @@ -12368,11 +12368,11 @@ const Ff = /* @__PURE__ */ Xn.define({ update(t, e) { t = t.map(e.changes); for (let r of e.effects) - if (r.is(hh) && !O5e(t, r.value.from, r.value.to)) { - let { preparePlaceholder: n } = e.state.facet(fD), i = n ? It.replace({ widget: new A5e(n(e.state, r.value)) }) : Mz; + if (r.is(hh) && !k5e(t, r.value.from, r.value.to)) { + let { preparePlaceholder: n } = e.state.facet(fD), i = n ? It.replace({ widget: new L5e(n(e.state, r.value)) }) : Mz; t = t.update({ add: [i.range(r.value.from, r.value.to)] }); } else - r.is(vp) && (t = t.update({ + r.is(yp) && (t = t.update({ filter: (n, i) => r.value.from != n || r.value.to != i, filterFrom: r.value.from, filterTo: r.value.to @@ -12409,7 +12409,7 @@ const Ff = /* @__PURE__ */ Xn.define({ return It.set(e, !0); } }); -function w5e(t) { +function O5e(t) { return t.field(Ff, !1) || $r.empty; } function Tk(t, e, r) { @@ -12419,7 +12419,7 @@ function Tk(t, e, r) { (!i || i.from > s) && (i = { from: s, to: a }); }), i; } -function O5e(t, e, r) { +function k5e(t, e, r) { let n = !1; return t.between(e, e, (i, s) => { i == e && s == r && (n = !0); @@ -12428,20 +12428,20 @@ function O5e(t, e, r) { function cee(t, e) { return t.field(Ff, !1) ? e : e.concat(or.appendConfig.of(hee())); } -const k5e = (t) => { +const S5e = (t) => { for (let e of lee(t)) { let r = S2(t.state, e.from, e.to); if (r) return t.dispatch({ effects: cee(t.state, [hh.of(r), uee(t, r)]) }), !0; } return !1; -}, S5e = (t) => { +}, T5e = (t) => { if (!t.state.field(Ff, !1)) return !1; let e = []; for (let r of lee(t)) { let n = Tk(t.state, r.from, r.to); - n && e.push(vp.of(n), uee(t, n, !1)); + n && e.push(yp.of(n), uee(t, n, !1)); } return e.length && t.dispatch({ effects: e }), e.length > 0; }; @@ -12449,43 +12449,43 @@ function uee(t, e, r = !0) { let n = t.state.doc.lineAt(e.from).number, i = t.state.doc.lineAt(e.to).number; return kt.announce.of(`${t.state.phrase(r ? "Folded lines" : "Unfolded lines")} ${n} ${t.state.phrase("to")} ${i}.`); } -const T5e = (t) => { +const C5e = (t) => { let { state: e } = t, r = []; for (let n = 0; n < e.doc.length; ) { let i = t.lineBlockAt(n), s = S2(e, i.from, i.to); s && r.push(hh.of(s)), n = (s ? t.lineBlockAt(s.to) : i).to + 1; } return r.length && t.dispatch({ effects: cee(t.state, r) }), !!r.length; -}, C5e = (t) => { +}, E5e = (t) => { let e = t.state.field(Ff, !1); if (!e || !e.size) return !1; let r = []; return e.between(0, t.state.doc.length, (n, i) => { - r.push(vp.of({ from: n, to: i })); + r.push(yp.of({ from: n, to: i })); }), t.dispatch({ effects: r }), !0; -}, E5e = [ - { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: k5e }, - { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: S5e }, - { key: "Ctrl-Alt-[", run: T5e }, - { key: "Ctrl-Alt-]", run: C5e } -], _5e = { +}, _5e = [ + { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: S5e }, + { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: T5e }, + { key: "Ctrl-Alt-[", run: C5e }, + { key: "Ctrl-Alt-]", run: E5e } +], A5e = { placeholderDOM: null, preparePlaceholder: null, placeholderText: "\u2026" }, fD = /* @__PURE__ */ $t.define({ combine(t) { - return gu(t, _5e); + return gu(t, A5e); } }); function hee(t) { - let e = [Ff, M5e]; + let e = [Ff, D5e]; return t && e.push(fD.of(t)), e; } function fee(t, e) { let { state: r } = t, n = r.facet(fD), i = (a) => { let o = t.lineBlockAt(t.posAtDOM(a.target)), l = Tk(t.state, o.from, o.to); - l && t.dispatch({ effects: vp.of(l) }), a.preventDefault(); + l && t.dispatch({ effects: yp.of(l) }), a.preventDefault(); }; if (n.placeholderDOM) return n.placeholderDOM(t, i, e); @@ -12497,7 +12497,7 @@ const Mz = /* @__PURE__ */ It.replace({ widget: /* @__PURE__ */ new class extend return fee(t, null); } }() }); -class A5e extends uo { +class L5e extends uo { constructor(e) { super(), this.value = e; } @@ -12508,7 +12508,7 @@ class A5e extends uo { return fee(e, this.value); } } -const L5e = { +const R5e = { openText: "\u2304", closedText: "\u203A", markerDOM: null, @@ -12529,8 +12529,8 @@ class M_ extends ul { return r.textContent = this.open ? this.config.openText : this.config.closedText, r.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), r; } } -function R5e(t = {}) { - let e = Object.assign(Object.assign({}, L5e), t), r = new M_(e, !0), n = new M_(e, !1), i = hn.fromClass(class { +function M5e(t = {}) { + let e = Object.assign(Object.assign({}, R5e), t), r = new M_(e, !0), n = new M_(e, !1), i = hn.fromClass(class { constructor(a) { this.from = a.viewport.from, this.markers = this.buildMarkers(a); } @@ -12538,7 +12538,7 @@ function R5e(t = {}) { (a.docChanged || a.viewportChanged || a.startState.facet(Bf) != a.state.facet(Bf) || a.startState.field(Ff, !1) != a.state.field(Ff, !1) || Cn(a.startState) != Cn(a.state) || e.foldingChanged(a)) && (this.markers = this.buildMarkers(a.view)); } buildMarkers(a) { - let o = new os(); + let o = new ls(); for (let l of a.viewportLineBlocks) { let u = Tk(a.state, l.from, l.to) ? n : S2(a.state, l.from, l.to) ? r : null; u && o.add(l.from, l.from, u); @@ -12562,7 +12562,7 @@ function R5e(t = {}) { return !0; let u = Tk(a.state, o.from, o.to); if (u) - return a.dispatch({ effects: vp.of(u) }), !0; + return a.dispatch({ effects: yp.of(u) }), !0; let h = S2(a.state, o.from, o.to); return h ? (a.dispatch({ effects: hh.of(h) }), !0) : !1; } }) @@ -12570,7 +12570,7 @@ function R5e(t = {}) { hee() ]; } -const M5e = /* @__PURE__ */ kt.baseTheme({ +const D5e = /* @__PURE__ */ kt.baseTheme({ ".cm-foldPlaceholder": { backgroundColor: "#eee", border: "1px solid #ddd", @@ -12615,10 +12615,10 @@ function D_(t) { return e.length ? e : t.facet(dee); } function pee(t, e) { - let r = [P5e], n; + let r = [N5e], n; return t instanceof zT && (t.module && r.push(kt.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(dee.of(t)) : n ? r.push(E8.computeN([kt.darkTheme], (i) => i.facet(kt.darkTheme) == (n == "dark") ? [t] : [])) : r.push(E8.of(t)), r; } -class D5e { +class P5e { constructor(e) { this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Cn(e.state), this.decorations = this.buildDeco(e, D_(e.state)); } @@ -12629,15 +12629,15 @@ class D5e { buildDeco(e, r) { if (!r || !this.tree.length) return It.none; - let n = new os(); + let n = new ls(); for (let { from: i, to: s } of e.visibleRanges) - i5e(this.tree, r, (a, o, l) => { + s5e(this.tree, r, (a, o, l) => { n.add(a, o, this.markCache[l] || (this.markCache[l] = It.mark({ class: l }))); }, i, s); return n.finish(); } } -const P5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(D5e, { +const N5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(P5e, { decorations: (t) => t.decorations })), gee = /* @__PURE__ */ zT.define([ { @@ -12717,7 +12717,7 @@ const P5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(D5e, { tag: Se.invalid, color: "#f00" } -]), N5e = /* @__PURE__ */ kt.baseTheme({ +]), I5e = /* @__PURE__ */ kt.baseTheme({ "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" }, "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" } }), mee = 1e4, vee = "()[]{}", yee = /* @__PURE__ */ $t.define({ @@ -12726,15 +12726,15 @@ const P5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(D5e, { afterCursor: !0, brackets: vee, maxScanDistance: mee, - renderMatch: B5e + renderMatch: F5e }); } -}), I5e = /* @__PURE__ */ It.mark({ class: "cm-matchingBracket" }), $5e = /* @__PURE__ */ It.mark({ class: "cm-nonmatchingBracket" }); -function B5e(t) { - let e = [], r = t.matched ? I5e : $5e; +}), $5e = /* @__PURE__ */ It.mark({ class: "cm-matchingBracket" }), B5e = /* @__PURE__ */ It.mark({ class: "cm-nonmatchingBracket" }); +function F5e(t) { + let e = [], r = t.matched ? $5e : B5e; return e.push(r.range(t.start.from, t.start.to)), t.end && e.push(r.range(t.end.from, t.end.to)), e; } -const F5e = /* @__PURE__ */ Xn.define({ +const z5e = /* @__PURE__ */ Xn.define({ create() { return It.none; }, @@ -12751,12 +12751,12 @@ const F5e = /* @__PURE__ */ Xn.define({ return It.set(r, !0); }, provide: (t) => kt.decorations.from(t) -}), z5e = [ - F5e, - N5e +}), Q5e = [ + z5e, + I5e ]; -function Q5e(t = {}) { - return [yee.of(t), z5e]; +function U5e(t = {}) { + return [yee.of(t), Q5e]; } const bee = /* @__PURE__ */ new yr(); function _8(t, e, r) { @@ -12781,12 +12781,12 @@ function zc(t, e, r, n = {}) { if (u && l.from < l.to) { let h = A8(l); if (h && (r > 0 ? e >= h.from && e < h.to : e > h.from && e <= h.to)) - return U5e(t, e, r, l, h, u, s); + return V5e(t, e, r, l, h, u, s); } } - return V5e(t, e, r, a, o.type, i, s); + return q5e(t, e, r, a, o.type, i, s); } -function U5e(t, e, r, n, i, s, a) { +function V5e(t, e, r, n, i, s, a) { let o = n.parent, l = { from: i.from, to: i.to }, u = 0, h = o == null ? void 0 : o.cursor(); if (h && (r < 0 ? h.childBefore(n.from) : h.childAfter(n.to))) do @@ -12811,7 +12811,7 @@ function U5e(t, e, r, n, i, s, a) { while (r < 0 ? h.prevSibling() : h.nextSibling()); return { start: l, matched: !1 }; } -function V5e(t, e, r, n, i, s, a) { +function q5e(t, e, r, n, i, s, a) { let o = r < 0 ? t.sliceDoc(e - 1, e) : t.sliceDoc(e, e + 1), l = a.indexOf(o); if (l < 0 || l % 2 == 0 != r > 0) return null; @@ -12835,7 +12835,7 @@ function V5e(t, e, r, n, i, s, a) { } return h.done ? { start: u, matched: !1 } : null; } -const q5e = /* @__PURE__ */ Object.create(null), Dz = [Yi.none], Pz = [], Nz = /* @__PURE__ */ Object.create(null), Y5e = /* @__PURE__ */ Object.create(null); +const Y5e = /* @__PURE__ */ Object.create(null), Dz = [Wi.none], Pz = [], Nz = /* @__PURE__ */ Object.create(null), W5e = /* @__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"] ]) - Y5e[t] = /* @__PURE__ */ W5e(q5e, e); + W5e[t] = /* @__PURE__ */ G5e(Y5e, e); function P_(t, e) { Pz.indexOf(t) > -1 || (Pz.push(t), console.warn(e)); } -function W5e(t, e) { +function G5e(t, e) { let r = []; for (let o of e.split(" ")) { let l = []; @@ -12870,16 +12870,16 @@ function W5e(t, e) { let n = e.replace(/ /g, "_"), i = n + " " + r.map((o) => o.id), s = Nz[i]; if (s) return s.id; - let a = Nz[i] = Yi.define({ + let a = Nz[i] = Wi.define({ id: Dz.length, name: n, props: [fd({ [n]: r })] }); return Dz.push(a), a.id; } -const G5e = (t) => { +const X5e = (t) => { let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = pD(t.state, r.from); - return n.line ? X5e(t) : n.block ? Z5e(t) : !1; + return n.line ? H5e(t) : n.block ? j5e(t) : !1; }; function dD(t, e) { return ({ state: r, dispatch: n }) => { @@ -12889,21 +12889,21 @@ function dD(t, e) { return i ? (n(r.update(i)), !0) : !1; }; } -const X5e = /* @__PURE__ */ dD(J5e, 0), H5e = /* @__PURE__ */ dD(xee, 0), Z5e = /* @__PURE__ */ dD((t, e) => xee(t, e, K5e(e)), 0); +const H5e = /* @__PURE__ */ dD(eke, 0), Z5e = /* @__PURE__ */ dD(xee, 0), j5e = /* @__PURE__ */ dD((t, e) => xee(t, e, J5e(e)), 0); function pD(t, e) { let r = t.languageDataAt("commentTokens", e); return r.length ? r[0] : {}; } -const bv = 50; -function j5e(t, { open: e, close: r }, n, i) { - let s = t.sliceDoc(n - bv, n), a = t.sliceDoc(i, i + bv), o = /\s*$/.exec(s)[0].length, l = /^\s*/.exec(a)[0].length, u = s.length - o; +const xv = 50; +function K5e(t, { open: e, close: r }, n, i) { + let s = t.sliceDoc(n - xv, n), a = t.sliceDoc(i, i + xv), o = /\s*$/.exec(s)[0].length, l = /^\s*/.exec(a)[0].length, u = s.length - o; if (s.slice(u - e.length, u) == e && a.slice(l, l + r.length) == r) return { open: { pos: n - o, margin: o && 1 }, close: { pos: i + l, margin: l && 1 } }; let h, f; - i - n <= 2 * bv ? h = f = t.sliceDoc(n, i) : (h = t.sliceDoc(n, n + bv), f = t.sliceDoc(i - bv, i)); + i - n <= 2 * xv ? h = f = t.sliceDoc(n, i) : (h = t.sliceDoc(n, n + xv), f = t.sliceDoc(i - xv, i)); let d = /^\s*/.exec(h)[0].length, p = /\s*$/.exec(f)[0].length, g = f.length - p - r.length; return h.slice(d, d + e.length) == e && f.slice(g, g + r.length) == r ? { open: { @@ -12916,7 +12916,7 @@ function j5e(t, { open: e, close: r }, n, i) { } } : null; } -function K5e(t) { +function J5e(t) { let e = []; for (let r of t.selection.ranges) { let n = t.doc.lineAt(r.from), i = r.to <= n.to ? n : t.doc.lineAt(r.to), s = e.length - 1; @@ -12928,7 +12928,7 @@ function xee(t, e, r = e.selection.ranges) { let n = r.map((s) => pD(e, s.from).block); if (!n.every((s) => s)) return null; - let i = r.map((s, a) => j5e(e, n[a], s.from, s.to)); + let i = r.map((s, a) => K5e(e, n[a], s.from, s.to)); if (t != 2 && !i.every((s) => s)) return { changes: e.changes(r.map((s, a) => i[a] ? [] : [{ from: s.from, insert: n[a].open + " " }, { from: s.to, insert: " " + n[a].close }])) }; if (t != 1 && i.some((s) => s)) { @@ -12942,7 +12942,7 @@ function xee(t, e, r = e.selection.ranges) { } return null; } -function J5e(t, e, r = e.selection.ranges) { +function eke(t, e, r = e.selection.ranges) { let n = [], i = -1; for (let { from: s, to: a } of r) { let o = n.length, l = 1e9, u = pD(e, s).line; @@ -12979,7 +12979,7 @@ function J5e(t, e, r = e.selection.ranges) { } return null; } -const L8 = /* @__PURE__ */ co.define(), eke = /* @__PURE__ */ co.define(), tke = /* @__PURE__ */ $t.define(), wee = /* @__PURE__ */ $t.define({ +const L8 = /* @__PURE__ */ co.define(), tke = /* @__PURE__ */ co.define(), rke = /* @__PURE__ */ $t.define(), wee = /* @__PURE__ */ $t.define({ combine(t) { return gu(t, { minDepth: 100, @@ -13001,7 +13001,7 @@ const L8 = /* @__PURE__ */ co.define(), eke = /* @__PURE__ */ co.define(), tke = let l = to.fromTransaction(e, n.selection), u = n.side, h = u == 0 ? t.undone : t.done; return l ? h = Ek(h, h.length, r.minDepth, l) : h = Tee(h, e.startState.selection), new Qc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); } - let i = e.annotation(eke); + let i = e.annotation(tke); if ((i == "full" || i == "before") && (t = t.isolate()), e.annotation(Ei.addToHistory) === !1) return e.changes.empty ? t : t.addMapping(e.changes.desc); let s = to.fromTransaction(e), a = e.annotation(Ei.time), o = e.annotation(Ei.userEvent); @@ -13037,7 +13037,7 @@ function QT(t, e) { return s ? (n(s), !0) : !1; }; } -const kee = /* @__PURE__ */ QT(0, !1), Ck = /* @__PURE__ */ QT(1, !1), rke = /* @__PURE__ */ QT(0, !0), nke = /* @__PURE__ */ QT(1, !0); +const kee = /* @__PURE__ */ QT(0, !1), Ck = /* @__PURE__ */ QT(1, !1), nke = /* @__PURE__ */ QT(0, !0), ike = /* @__PURE__ */ QT(1, !0); class to { constructor(e, r, n, i, s) { this.changes = e, this.effects = r, this.mapped = n, this.startSelection = i, this.selectionsAfter = s; @@ -13059,7 +13059,7 @@ class to { } static fromTransaction(e, r) { let n = tl; - for (let i of e.startState.facet(tke)) { + for (let i of e.startState.facet(rke)) { let s = i(e); s.length && (n = n.concat(s)); } @@ -13073,7 +13073,7 @@ function Ek(t, e, r, n) { let i = e + 1 > r + 20 ? e - r - 1 : 0, s = t.slice(i, e); return s.push(n), s; } -function ike(t, e) { +function ske(t, e) { let r = [], n = !1; return t.iterChangedRanges((i, s) => r.push(i, s)), e.iterChangedRanges((i, s, a, o) => { for (let l = 0; l < r.length; ) { @@ -13082,21 +13082,21 @@ function ike(t, e) { } }), n; } -function ske(t, e) { +function ake(t, e) { return t.ranges.length == e.ranges.length && t.ranges.filter((r, n) => r.empty != e.ranges[n].empty).length === 0; } function See(t, e) { return t.length ? e.length ? t.concat(e) : t : e; } -const tl = [], ake = 200; +const tl = [], oke = 200; function Tee(t, e) { if (t.length) { - let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - ake)); + let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - oke)); return n.length && n[n.length - 1].eq(e) ? t : (n.push(e), Ek(t, t.length - 1, 1e9, r.setSelAfter(n))); } else return [to.selection([e])]; } -function oke(t) { +function lke(t) { let e = t[t.length - 1], r = t.slice(); return r[t.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), r; } @@ -13105,7 +13105,7 @@ function N_(t, e) { return t; let r = t.length, n = tl; for (; r; ) { - let i = lke(t[r - 1], e, n); + let i = cke(t[r - 1], e, n); if (i.changes && !i.changes.empty || i.effects.length) { let s = t.slice(0, r); return s[r - 1] = i, s; @@ -13114,14 +13114,14 @@ function N_(t, e) { } return n.length ? [to.selection(n)] : tl; } -function lke(t, e, r) { +function cke(t, e, r) { let n = See(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : tl, r); if (!t.changes) return to.selection(n); let i = t.changes.map(e), s = e.mapDesc(t.changes, !0), a = t.mapped ? t.mapped.composeDesc(s) : s; return new to(i, or.mapEffects(t.effects, e), a, t.startSelection.map(s), n); } -const cke = /^(input\.type|delete)($|\.)/; +const uke = /^(input\.type|delete)($|\.)/; class Qc { constructor(e, r, n = 0, i = void 0) { this.done = e, this.undone = r, this.prevTime = n, this.prevUserEvent = i; @@ -13131,11 +13131,11 @@ class Qc { } addChanges(e, r, n, i, s) { let a = this.done, o = a[a.length - 1]; - return o && o.changes && !o.changes.empty && e.changes && (!n || cke.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, ike(o.changes, e.changes)) || n == "input.type.compose") ? a = Ek(a, a.length - 1, i.minDepth, new to(e.changes.compose(o.changes), See(e.effects, o.effects), o.mapped, o.startSelection, tl)) : a = Ek(a, a.length, i.minDepth, e), new Qc(a, tl, r, n); + return o && o.changes && !o.changes.empty && e.changes && (!n || uke.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, ske(o.changes, e.changes)) || n == "input.type.compose") ? a = Ek(a, a.length - 1, i.minDepth, new to(e.changes.compose(o.changes), See(e.effects, o.effects), o.mapped, o.startSelection, tl)) : a = Ek(a, a.length, i.minDepth, e), new Qc(a, tl, r, n); } addSelection(e, r, n, i) { let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : tl; - return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && ske(s[s.length - 1], e) ? this : new Qc(Tee(this.done, e), this.undone, r, n); + return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && ake(s[s.length - 1], e) ? this : new Qc(Tee(this.done, e), this.undone, r, n); } addMapping(e) { return new Qc(N_(this.done, e), N_(this.undone, e), this.prevTime, this.prevUserEvent); @@ -13148,7 +13148,7 @@ class Qc { if (n && s.selectionsAfter.length) return r.update({ selection: s.selectionsAfter[s.selectionsAfter.length - 1], - annotations: L8.of({ side: e, rest: oke(i), selection: a }), + annotations: L8.of({ side: e, rest: lke(i), selection: a }), userEvent: e == 0 ? "select.undo" : "select.redo", scrollIntoView: !0 }); @@ -13172,17 +13172,17 @@ const Cee = [ { key: "Mod-z", run: kee, preventDefault: !0 }, { key: "Mod-y", mac: "Mod-Shift-z", run: Ck, preventDefault: !0 }, { linux: "Ctrl-Shift-z", run: Ck, preventDefault: !0 }, - { key: "Mod-u", run: rke, preventDefault: !0 }, - { key: "Alt-u", mac: "Mod-Shift-u", run: nke, preventDefault: !0 } + { key: "Mod-u", run: nke, preventDefault: !0 }, + { key: "Alt-u", mac: "Mod-Shift-u", run: ike, preventDefault: !0 } ]; -function x1(t, e) { +function w1(t, e) { return je.create(t.ranges.map(e), t.mainIndex); } function mu(t, e) { return t.update({ selection: e, scrollIntoView: !0, userEvent: "select" }); } function hc({ state: t, dispatch: e }, r) { - let n = x1(t.selection, r); + let n = w1(t.selection, r); return n.eq(t.selection) ? !1 : (e(mu(t, n)), !0); } function UT(t, e) { @@ -13198,8 +13198,8 @@ const _ee = (t) => Eee(t, !aa(t)), Aee = (t) => Eee(t, aa(t)); function Lee(t, e) { return hc(t, (r) => r.empty ? t.moveByGroup(r, e) : UT(r, e)); } -const uke = (t) => Lee(t, !aa(t)), hke = (t) => Lee(t, aa(t)); -function fke(t, e, r) { +const hke = (t) => Lee(t, !aa(t)), fke = (t) => Lee(t, aa(t)); +function dke(t, e, r) { if (e.type.prop(r)) return !0; let n = e.to - e.from; @@ -13211,12 +13211,12 @@ function VT(t, e, r) { let u = r ? n.childAfter(l) : n.childBefore(l); if (!u) break; - fke(t, u, i) ? n = u : l = r ? u.to : u.from; + dke(t, u, i) ? n = u : l = r ? u.to : u.from; } let s = n.type.prop(i), a, o; return s && (a = r ? zc(t, n.from, 1) : zc(t, n.to, -1)) && a.matched ? o = r ? a.end.to : a.end.from : o = r ? n.to : n.from, je.cursor(o, r ? -1 : 1); } -const dke = (t) => hc(t, (e) => VT(t.state, e, !aa(t))), pke = (t) => hc(t, (e) => VT(t.state, e, aa(t))); +const pke = (t) => hc(t, (e) => VT(t.state, e, !aa(t))), gke = (t) => hc(t, (e) => VT(t.state, e, aa(t))); function Ree(t, e) { return hc(t, (r) => { if (!r.empty) @@ -13244,7 +13244,7 @@ function Pee(t) { }; } function Nee(t, e) { - let r = Pee(t), { state: n } = t, i = x1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : UT(a, e)); + let r = Pee(t), { state: n } = t, i = w1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : UT(a, e)); if (i.eq(n.selection)) return !1; let s; @@ -13263,9 +13263,9 @@ function dd(t, e, r) { } return i; } -const gke = (t) => hc(t, (e) => dd(t, e, !0)), mke = (t) => hc(t, (e) => dd(t, e, !1)), vke = (t) => hc(t, (e) => dd(t, e, !aa(t))), yke = (t) => hc(t, (e) => dd(t, e, aa(t))), bke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).from, 1)), xke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).to, -1)); -function wke(t, e, r) { - let n = !1, i = x1(t.selection, (s) => { +const mke = (t) => hc(t, (e) => dd(t, e, !0)), vke = (t) => hc(t, (e) => dd(t, e, !1)), yke = (t) => hc(t, (e) => dd(t, e, !aa(t))), bke = (t) => hc(t, (e) => dd(t, e, aa(t))), xke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).from, 1)), wke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).to, -1)); +function Oke(t, e, r) { + let n = !1, i = w1(t.selection, (s) => { let a = zc(t, s.head, -1) || zc(t, s.head, 1) || s.head > 0 && zc(t, s.head - 1, 1) || s.head < t.doc.length && zc(t, s.head + 1, -1); if (!a || !a.end) return s; @@ -13275,9 +13275,9 @@ function wke(t, e, r) { }); return n ? (e(mu(t, i)), !0) : !1; } -const Oke = ({ state: t, dispatch: e }) => wke(t, e, !1); +const kke = ({ state: t, dispatch: e }) => Oke(t, e, !1); function kl(t, e) { - let r = x1(t.state.selection, (n) => { + let r = w1(t.state.selection, (n) => { let i = e(n); return je.range(n.anchor, i.head, i.goalColumn, i.bidiLevel || void 0); }); @@ -13290,7 +13290,7 @@ const $ee = (t) => Iee(t, !aa(t)), Bee = (t) => Iee(t, aa(t)); function Fee(t, e) { return kl(t, (r) => t.moveByGroup(r, e)); } -const kke = (t) => Fee(t, !aa(t)), Ske = (t) => Fee(t, aa(t)), Tke = (t) => kl(t, (e) => VT(t.state, e, !aa(t))), Cke = (t) => kl(t, (e) => VT(t.state, e, aa(t))); +const Ske = (t) => Fee(t, !aa(t)), Tke = (t) => Fee(t, aa(t)), Cke = (t) => kl(t, (e) => VT(t.state, e, !aa(t))), Eke = (t) => kl(t, (e) => VT(t.state, e, aa(t))); function zee(t, e) { return kl(t, (r) => t.moveVertically(r, e)); } @@ -13298,11 +13298,11 @@ const Qee = (t) => zee(t, !1), Uee = (t) => zee(t, !0); function Vee(t, e) { return kl(t, (r) => t.moveVertically(r, e, Pee(t).height)); } -const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), Eke = (t) => kl(t, (e) => dd(t, e, !0)), _ke = (t) => kl(t, (e) => dd(t, e, !1)), Ake = (t) => kl(t, (e) => dd(t, e, !aa(t))), Lke = (t) => kl(t, (e) => dd(t, e, aa(t))), Rke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).from)), Mke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).to)), Fz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: 0 })), !0), zz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.doc.length })), !0), Qz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: 0 })), !0), Uz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), Dke = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), Pke = ({ state: t, dispatch: e }) => { +const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), _ke = (t) => kl(t, (e) => dd(t, e, !0)), Ake = (t) => kl(t, (e) => dd(t, e, !1)), Lke = (t) => kl(t, (e) => dd(t, e, !aa(t))), Rke = (t) => kl(t, (e) => dd(t, e, aa(t))), Mke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).from)), Dke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).to)), Fz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: 0 })), !0), zz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.doc.length })), !0), Qz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: 0 })), !0), Uz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), Pke = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), Nke = ({ state: t, dispatch: e }) => { let r = qT(t).map(({ from: n, to: i }) => je.range(n, Math.min(i + 1, t.doc.length))); return e(t.update({ selection: je.create(r), userEvent: "select" })), !0; -}, Nke = ({ state: t, dispatch: e }) => { - let r = x1(t.selection, (n) => { +}, Ike = ({ state: t, dispatch: e }) => { + let r = w1(t.selection, (n) => { var i; let s = Cn(t).resolveStack(n.from, 1); for (let a = s; a; a = a.next) { @@ -13313,7 +13313,7 @@ const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), Eke = (t) => kl(t, (e) => return n; }); return e(mu(t, r)), !0; -}, Ike = ({ state: t, dispatch: e }) => { +}, $ke = ({ state: t, dispatch: e }) => { let r = t.selection, n = null; return r.ranges.length > 1 ? n = je.create([r.main]) : r.main.empty || (n = je.create([je.cursor(r.main.head)])), n ? (e(mu(t, n)), !0) : !1; }; @@ -13353,7 +13353,7 @@ const qee = (t, e) => zx(t, (r) => { n--; o = n; } else - o = Os(s.text, n - s.from, e, e) + s.from, o == n && s.number != (e ? i.doc.lines : 1) ? o += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(o - s.from, n - s.from)) && (o = Os(s.text, o - s.from, !1, !1) + s.from); + o = ks(s.text, n - s.from, e, e) + s.from, o == n && s.number != (e ? i.doc.lines : 1) ? o += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(o - s.from, n - s.from)) && (o = ks(s.text, o - s.from, !1, !1) + s.from); return o; }), M8 = (t) => qee(t, !1), Yee = (t) => qee(t, !0), Wee = (t, e) => zx(t, (r) => { let n = r.head, { state: i } = t, s = i.doc.lineAt(n), a = i.charCategorizer(n); @@ -13362,22 +13362,22 @@ const qee = (t, e) => zx(t, (r) => { n == r.head && s.number != (e ? i.doc.lines : 1) && (n += e ? 1 : -1); break; } - let l = Os(s.text, n - s.from, e) + s.from, u = s.text.slice(Math.min(n, l) - s.from, Math.max(n, l) - s.from), h = a(u); + let l = ks(s.text, n - s.from, e) + s.from, u = s.text.slice(Math.min(n, l) - s.from, Math.max(n, l) - s.from), h = a(u); if (o != null && h != o) break; (u != " " || n != r.head) && (o = h), n = l; } return n; -}), Gee = (t) => Wee(t, !1), $ke = (t) => Wee(t, !0), Bke = (t) => zx(t, (e) => { +}), Gee = (t) => Wee(t, !1), Bke = (t) => Wee(t, !0), Fke = (t) => zx(t, (e) => { let r = t.lineBlockAt(e.head).to; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), Fke = (t) => zx(t, (e) => { +}), zke = (t) => zx(t, (e) => { let r = t.moveToLineBoundary(e, !1).head; return e.head > r ? r : Math.max(0, e.head - 1); -}), zke = (t) => zx(t, (e) => { +}), Qke = (t) => zx(t, (e) => { let r = t.moveToLineBoundary(e, !0).head; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), Qke = ({ state: t, dispatch: e }) => { +}), Uke = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => ({ @@ -13385,13 +13385,13 @@ const qee = (t, e) => zx(t, (r) => { range: je.cursor(n.from) })); return e(t.update(r, { scrollIntoView: !0, userEvent: "input" })), !0; -}, Uke = ({ state: t, dispatch: e }) => { +}, Vke = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => { if (!n.empty || n.from == 0 || n.from == t.doc.length) return { range: n }; - let i = n.from, s = t.doc.lineAt(i), a = i == s.from ? i - 1 : Os(s.text, i - s.from, !1) + s.from, o = i == s.to ? i + 1 : Os(s.text, i - s.from, !0) + s.from; + let i = n.from, s = t.doc.lineAt(i), a = i == s.from ? i - 1 : ks(s.text, i - s.from, !1) + s.from, o = i == s.to ? i + 1 : ks(s.text, i - s.from, !0) + s.from; return { changes: { from: a, to: o, insert: t.doc.slice(i, o).append(t.doc.slice(a, i)) }, range: je.cursor(o) @@ -13437,7 +13437,7 @@ function Xee(t, e, r) { userEvent: "move.line" })), !0) : !1; } -const Vke = ({ state: t, dispatch: e }) => Xee(t, e, !1), qke = ({ state: t, dispatch: e }) => Xee(t, e, !0); +const qke = ({ state: t, dispatch: e }) => Xee(t, e, !1), Yke = ({ state: t, dispatch: e }) => Xee(t, e, !0); function Hee(t, e, r) { if (t.readOnly) return !1; @@ -13446,25 +13446,25 @@ function Hee(t, e, r) { r ? n.push({ from: i.from, insert: t.doc.slice(i.from, i.to) + t.lineBreak }) : n.push({ from: i.to, insert: t.lineBreak + t.doc.slice(i.from, i.to) }); return e(t.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0; } -const Yke = ({ state: t, dispatch: e }) => Hee(t, e, !1), Wke = ({ state: t, dispatch: e }) => Hee(t, e, !0), Gke = (t) => { +const Wke = ({ state: t, dispatch: e }) => Hee(t, e, !1), Gke = ({ state: t, dispatch: e }) => Hee(t, e, !0), Xke = (t) => { if (t.state.readOnly) return !1; - let { state: e } = t, r = e.changes(qT(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = x1(e.selection, (i) => t.moveVertically(i, !0)).map(r); + let { state: e } = t, r = e.changes(qT(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = w1(e.selection, (i) => t.moveVertically(i, !0)).map(r); return t.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0; }; -function Xke(t, e) { +function Hke(t, e) { if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(e - 1, e + 1))) return { from: e, to: e }; let r = Cn(t).resolveInner(e), n = r.childBefore(e), i = r.childAfter(e), s; return n && i && n.to <= e && i.from >= e && (s = n.type.prop(yr.closedBy)) && s.indexOf(i.name) > -1 && t.doc.lineAt(n.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(n.to, i.from)) ? { from: n.to, to: i.from } : null; } -const Hke = /* @__PURE__ */ Zee(!1), Zke = /* @__PURE__ */ Zee(!0); +const Zke = /* @__PURE__ */ Zee(!1), jke = /* @__PURE__ */ Zee(!0); function Zee(t) { return ({ state: e, dispatch: r }) => { if (e.readOnly) return !1; let n = e.changeByRange((i) => { - let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && Xke(e, s); + let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && Hke(e, s); t && (s = a = (a <= o.to ? o : e.doc.lineAt(a)).to); let u = new FT(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = cD(u, s); for (h == null && (h = tc(/^\s*/.exec(e.doc.lineAt(s).text)[0], e.tabSize)); a < o.to && /\s/.test(o.text[a - o.from]); ) @@ -13494,7 +13494,7 @@ function mD(t, e) { }; }); } -const jke = ({ state: t, dispatch: e }) => { +const Kke = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = /* @__PURE__ */ Object.create(null), n = new FT(t, { overrideIndentation: (s) => { @@ -13519,27 +13519,27 @@ const jke = ({ state: t, dispatch: e }) => { for (; a < i.length && a < o.length && i.charCodeAt(a) == o.charCodeAt(a); ) a++; n.push({ from: r.from + a, to: r.from + i.length, insert: o.slice(a) }); -}), { userEvent: "delete.dedent" })), !0), Kke = [ +}), { userEvent: "delete.dedent" })), !0), Jke = [ { key: "Ctrl-b", run: _ee, shift: $ee, preventDefault: !0 }, { key: "Ctrl-f", run: Aee, shift: Bee }, { key: "Ctrl-p", run: Mee, shift: Qee }, { key: "Ctrl-n", run: Dee, shift: Uee }, - { key: "Ctrl-a", run: bke, shift: Rke }, - { key: "Ctrl-e", run: xke, shift: Mke }, + { key: "Ctrl-a", run: xke, shift: Mke }, + { key: "Ctrl-e", run: wke, shift: Dke }, { key: "Ctrl-d", run: Yee }, { key: "Ctrl-h", run: M8 }, - { key: "Ctrl-k", run: Bke }, + { key: "Ctrl-k", run: Fke }, { key: "Ctrl-Alt-h", run: Gee }, - { key: "Ctrl-o", run: Qke }, - { key: "Ctrl-t", run: Uke }, + { key: "Ctrl-o", run: Uke }, + { key: "Ctrl-t", run: Vke }, { key: "Ctrl-v", run: R8 } -], Jke = /* @__PURE__ */ [ +], e3e = /* @__PURE__ */ [ { key: "ArrowLeft", run: _ee, shift: $ee, preventDefault: !0 }, - { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: uke, shift: kke, preventDefault: !0 }, - { mac: "Cmd-ArrowLeft", run: vke, shift: Ake, preventDefault: !0 }, + { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: hke, shift: Ske, preventDefault: !0 }, + { mac: "Cmd-ArrowLeft", run: yke, shift: Lke, preventDefault: !0 }, { key: "ArrowRight", run: Aee, shift: Bee, preventDefault: !0 }, - { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: hke, shift: Ske, preventDefault: !0 }, - { mac: "Cmd-ArrowRight", run: yke, shift: Lke, preventDefault: !0 }, + { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: fke, shift: Tke, preventDefault: !0 }, + { mac: "Cmd-ArrowRight", run: bke, shift: Rke, preventDefault: !0 }, { key: "ArrowUp", run: Mee, shift: Qee, preventDefault: !0 }, { mac: "Cmd-ArrowUp", run: Fz, shift: Qz }, { mac: "Ctrl-ArrowUp", run: Iz, shift: $z }, @@ -13548,37 +13548,37 @@ const jke = ({ state: t, dispatch: e }) => { { mac: "Ctrl-ArrowDown", run: R8, shift: Bz }, { key: "PageUp", run: Iz, shift: $z }, { key: "PageDown", run: R8, shift: Bz }, - { key: "Home", run: mke, shift: _ke, preventDefault: !0 }, + { key: "Home", run: vke, shift: Ake, preventDefault: !0 }, { key: "Mod-Home", run: Fz, shift: Qz }, - { key: "End", run: gke, shift: Eke, preventDefault: !0 }, + { key: "End", run: mke, shift: _ke, preventDefault: !0 }, { key: "Mod-End", run: zz, shift: Uz }, - { key: "Enter", run: Hke }, - { key: "Mod-a", run: Dke }, + { key: "Enter", run: Zke }, + { key: "Mod-a", run: Pke }, { key: "Backspace", run: M8, shift: M8 }, { key: "Delete", run: Yee }, { key: "Mod-Backspace", mac: "Alt-Backspace", run: Gee }, - { key: "Mod-Delete", mac: "Alt-Delete", run: $ke }, - { mac: "Mod-Backspace", run: Fke }, - { mac: "Mod-Delete", run: zke } -].concat(/* @__PURE__ */ Kke.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), Jee = /* @__PURE__ */ [ - { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: dke, shift: Tke }, - { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: pke, shift: Cke }, - { key: "Alt-ArrowUp", run: Vke }, - { key: "Shift-Alt-ArrowUp", run: Yke }, - { key: "Alt-ArrowDown", run: qke }, - { key: "Shift-Alt-ArrowDown", run: Wke }, - { key: "Escape", run: Ike }, - { key: "Mod-Enter", run: Zke }, - { key: "Alt-l", mac: "Ctrl-l", run: Pke }, - { key: "Mod-i", run: Nke, preventDefault: !0 }, + { key: "Mod-Delete", mac: "Alt-Delete", run: Bke }, + { mac: "Mod-Backspace", run: zke }, + { mac: "Mod-Delete", run: Qke } +].concat(/* @__PURE__ */ Jke.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), Jee = /* @__PURE__ */ [ + { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: pke, shift: Cke }, + { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: gke, shift: Eke }, + { key: "Alt-ArrowUp", run: qke }, + { key: "Shift-Alt-ArrowUp", run: Wke }, + { key: "Alt-ArrowDown", run: Yke }, + { key: "Shift-Alt-ArrowDown", run: Gke }, + { key: "Escape", run: $ke }, + { key: "Mod-Enter", run: jke }, + { key: "Alt-l", mac: "Ctrl-l", run: Nke }, + { key: "Mod-i", run: Ike, preventDefault: !0 }, { key: "Mod-[", run: Kee }, { key: "Mod-]", run: jee }, - { key: "Mod-Alt-\\", run: jke }, - { key: "Shift-Mod-k", run: Gke }, - { key: "Shift-Mod-\\", run: Oke }, - { key: "Mod-/", run: G5e }, - { key: "Alt-A", run: H5e } -].concat(Jke), e3e = { key: "Tab", run: jee, shift: Kee }; + { key: "Mod-Alt-\\", run: Kke }, + { key: "Shift-Mod-k", run: Xke }, + { key: "Shift-Mod-\\", run: kke }, + { key: "Mod-/", run: X5e }, + { key: "Alt-A", run: Z5e } +].concat(e3e), t3e = { key: "Tab", run: jee, shift: Kee }; function kn() { var t = arguments[0]; typeof t == "string" && (t = document.createElement(t)); @@ -13608,7 +13608,7 @@ function ete(t, e) { throw new RangeError("Unsupported child node: " + e); } const Vz = typeof String.prototype.normalize == "function" ? (t) => t.normalize("NFKD") : (t) => t; -class gm { +class mm { constructor(e, r, n = 0, i = e.length, s, a) { this.test = a, this.value = { from: 0, to: 0 }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, i), this.bufferStart = n, this.normalize = s ? (o) => s(Vz(o)) : Vz, this.query = this.normalize(r); } @@ -13618,7 +13618,7 @@ class gm { return -1; this.bufferPos = 0, this.buffer = this.iter.value; } - return bs(this.buffer, this.bufferPos); + return xs(this.buffer, this.bufferPos); } next() { for (; this.matches.length; ) @@ -13653,7 +13653,7 @@ class gm { return this.query.charCodeAt(0) == e && (this.query.length == 1 ? n = { from: r, to: r + 1 } : this.matches.push(1, r)), n && this.test && !this.test(n.from, n.to, this.buffer, this.bufferStart) && (n = null), n; } } -typeof Symbol < "u" && (gm.prototype[Symbol.iterator] = function() { +typeof Symbol < "u" && (mm.prototype[Symbol.iterator] = function() { return this; }); const tte = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, vD = "gm" + (/x/.unicode == null ? "" : "u"); @@ -13688,7 +13688,7 @@ class rte { } } const I_ = /* @__PURE__ */ new WeakMap(); -class Dg { +class Ng { constructor(e, r) { this.from = e, this.text = r; } @@ -13698,18 +13698,18 @@ class Dg { static get(e, r, n) { let i = I_.get(e); if (!i || i.from >= n || i.to <= r) { - let o = new Dg(r, e.sliceString(r, n)); + let o = new Ng(r, e.sliceString(r, n)); return I_.set(e, o), o; } if (i.from == r && i.to == n) return i; let { text: s, from: a } = i; - return a > r && (s = e.sliceString(r, a) + s, a = r), i.to < n && (s += e.sliceString(i.to, n)), I_.set(e, new Dg(a, s)), new Dg(r, s.slice(r - a, n - a)); + return a > r && (s = e.sliceString(r, a) + s, a = r), i.to < n && (s += e.sliceString(i.to, n)), I_.set(e, new Ng(a, s)), new Ng(r, s.slice(r - a, n - a)); } } class nte { constructor(e, r, n, i, s) { - this.text = e, this.to = s, this.done = !1, this.value = tte, this.matchPos = _k(e, i), this.re = new RegExp(r, vD + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Dg.get(e, i, this.chunkEnd(i + 5e3)); + this.text = e, this.to = s, this.done = !1, this.value = tte, this.matchPos = _k(e, i), this.re = new RegExp(r, vD + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Ng.get(e, i, this.chunkEnd(i + 5e3)); } chunkEnd(e) { return e >= this.to ? this.to : this.text.lineAt(e).to; @@ -13724,14 +13724,14 @@ class nte { } if (this.flat.to == this.to) return this.done = !0, this; - this.flat = Dg.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2)); + this.flat = Ng.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2)); } } } typeof Symbol < "u" && (rte.prototype[Symbol.iterator] = nte.prototype[Symbol.iterator] = function() { return this; }); -function t3e(t) { +function r3e(t) { try { return new RegExp(t, vD), !0; } catch { @@ -13784,44 +13784,44 @@ const Ak = /* @__PURE__ */ or.define(), qz = /* @__PURE__ */ Xn.define({ return t; }, provide: (t) => b2.from(t, (e) => e ? D8 : null) -}), r3e = (t) => { +}), n3e = (t) => { let e = y2(t, D8); if (!e) { let r = [Ak.of(!0)]; - t.state.field(qz, !1) == null && r.push(or.appendConfig.of([qz, n3e])), t.dispatch({ effects: r }), e = y2(t, D8); + t.state.field(qz, !1) == null && r.push(or.appendConfig.of([qz, i3e])), t.dispatch({ effects: r }), e = y2(t, D8); } return e && e.dom.querySelector("input").select(), !0; -}, n3e = /* @__PURE__ */ kt.baseTheme({ +}, i3e = /* @__PURE__ */ kt.baseTheme({ ".cm-panel.cm-gotoLine": { padding: "2px 6px 4px", "& label": { fontSize: "80%" } } -}), i3e = { +}), s3e = { highlightWordAroundCursor: !1, minSelectionLength: 1, maxMatches: 100, wholeWords: !1 }, ite = /* @__PURE__ */ $t.define({ combine(t) { - return gu(t, i3e, { + return gu(t, s3e, { highlightWordAroundCursor: (e, r) => e || r, minSelectionLength: Math.min, maxMatches: Math.min }); } }); -function s3e(t) { - let e = [u3e, c3e]; +function a3e(t) { + let e = [h3e, u3e]; return t && e.push(ite.of(t)), e; } -const a3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch" }), o3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); +const o3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch" }), l3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); function Yz(t, e, r, n) { return (r == 0 || t(e.sliceDoc(r - 1, r)) != Fn.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != Fn.Word); } -function l3e(t, e, r, n) { +function c3e(t, e, r, n) { return t(e.sliceDoc(r, r + 1)) == Fn.Word && t(e.sliceDoc(n - 1, n)) == Fn.Word; } -const c3e = /* @__PURE__ */ hn.fromClass(class { +const u3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -13845,17 +13845,17 @@ const c3e = /* @__PURE__ */ hn.fromClass(class { if (l < e.minSelectionLength || l > 200) return It.none; if (e.wholeWords) { - if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(Yz(a, r, i.from, i.to) && l3e(a, r, i.from, i.to))) + if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(Yz(a, r, i.from, i.to) && c3e(a, r, i.from, i.to))) return It.none; } else if (s = r.sliceDoc(i.from, i.to).trim(), !s) return It.none; } let o = []; for (let l of t.visibleRanges) { - let u = new gm(r.doc, s, l.from, l.to); + let u = new mm(r.doc, s, l.from, l.to); for (; !u.next().done; ) { let { from: h, to: f } = u.value; - if ((!a || Yz(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(o3e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(a3e.range(h, f)), o.length > e.maxMatches)) + if ((!a || Yz(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(l3e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(o3e.range(h, f)), o.length > e.maxMatches)) return It.none; } } @@ -13863,20 +13863,20 @@ const c3e = /* @__PURE__ */ hn.fromClass(class { } }, { decorations: (t) => t.decorations -}), u3e = /* @__PURE__ */ kt.baseTheme({ +}), h3e = /* @__PURE__ */ kt.baseTheme({ ".cm-selectionMatch": { backgroundColor: "#99ff7780" }, ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" } -}), h3e = ({ state: t, dispatch: e }) => { +}), f3e = ({ state: t, dispatch: e }) => { let { selection: r } = t, n = je.create(r.ranges.map((i) => t.wordAt(i.head) || je.cursor(i.head)), r.mainIndex); return n.eq(r) ? !1 : (e(t.update({ selection: n })), !0); }; -function f3e(t, e) { +function d3e(t, e) { let { main: r, ranges: n } = t.selection, i = t.wordAt(r.head), s = i && i.from == r.from && i.to == r.to; - for (let a = !1, o = new gm(t.doc, e, n[n.length - 1].to); ; ) + for (let a = !1, o = new mm(t.doc, e, n[n.length - 1].to); ; ) if (o.next(), o.done) { if (a) return null; - o = new gm(t.doc, e, 0, Math.max(0, n[n.length - 1].from - 1)), a = !0; + o = new mm(t.doc, e, 0, Math.max(0, n[n.length - 1].from - 1)), a = !0; } else { if (a && n.some((l) => l.from == o.value.from)) continue; @@ -13888,19 +13888,19 @@ function f3e(t, e) { return o.value; } } -const d3e = ({ state: t, dispatch: e }) => { +const p3e = ({ state: t, dispatch: e }) => { let { ranges: r } = t.selection; if (r.some((s) => s.from === s.to)) - return h3e({ state: t, dispatch: e }); + return f3e({ state: t, dispatch: e }); let n = t.sliceDoc(r[0].from, r[0].to); if (t.selection.ranges.some((s) => t.sliceDoc(s.from, s.to) != n)) return !1; - let i = f3e(t, n); + let i = d3e(t, n); return i ? (e(t.update({ selection: t.selection.addRange(je.range(i.from, i.to), !1), effects: kt.scrollIntoView(i.to) })), !0) : !1; -}, w1 = /* @__PURE__ */ $t.define({ +}, O1 = /* @__PURE__ */ $t.define({ combine(t) { return gu(t, { top: !1, @@ -13908,14 +13908,14 @@ const d3e = ({ state: t, dispatch: e }) => { literal: !1, regexp: !1, wholeWord: !1, - createPanel: (e) => new T3e(e), + createPanel: (e) => new C3e(e), scrollToMatch: (e) => kt.scrollIntoView(e) }); } }); class ste { 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 || t3e(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 || r3e(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; } unquote(e) { return this.literal ? e : e.replace(/\\([nrt\\])/g, (r, n) => n == "n" ? ` @@ -13925,11 +13925,11 @@ class ste { return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord; } create() { - return this.regexp ? new v3e(this) : new g3e(this); + return this.regexp ? new y3e(this) : new m3e(this); } getCursor(e, r = 0, n) { let i = e.doc ? e : Tr.create({ doc: e }); - return n == null && (n = i.doc.length), this.regexp ? ag(this, i, r, n) : sg(this, i, r, n); + return n == null && (n = i.doc.length), this.regexp ? og(this, i, r, n) : ag(this, i, r, n); } } class ate { @@ -13937,23 +13937,23 @@ class ate { this.spec = e; } } -function sg(t, e, r, n) { - return new gm(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? p3e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); +function ag(t, e, r, n) { + return new mm(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? g3e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); } -function p3e(t, e) { +function g3e(t, e) { return (r, n, i, s) => ((s > r || s + i.length < n) && (s = Math.max(0, r - 2), i = t.sliceString(s, Math.min(t.length, n + 2))), (e(Lk(i, r - s)) != Fn.Word || e(Rk(i, r - s)) != Fn.Word) && (e(Rk(i, n - s)) != Fn.Word || e(Lk(i, n - s)) != Fn.Word)); } -class g3e extends ate { +class m3e extends ate { constructor(e) { super(e); } nextMatch(e, r, n) { - let i = sg(this.spec, e, n, e.doc.length).nextOverlapping(); - return i.done && (i = sg(this.spec, e, 0, r).nextOverlapping()), i.done ? null : i.value; + let i = ag(this.spec, e, n, e.doc.length).nextOverlapping(); + return i.done && (i = ag(this.spec, e, 0, r).nextOverlapping()), i.done ? null : i.value; } prevMatchInRange(e, r, n) { for (let i = n; ; ) { - let s = Math.max(r, i - 1e4 - this.spec.unquoted.length), a = sg(this.spec, e, s, i), o = null; + let s = Math.max(r, i - 1e4 - this.spec.unquoted.length), a = ag(this.spec, e, s, i), o = null; for (; !a.nextOverlapping().done; ) o = a.value; if (o) @@ -13970,7 +13970,7 @@ class g3e extends ate { return this.spec.unquote(this.spec.replace); } matchAll(e, r) { - let n = sg(this.spec, e, 0, e.doc.length), i = []; + let n = ag(this.spec, e, 0, e.doc.length), i = []; for (; !n.next().done; ) { if (i.length >= r) return null; @@ -13979,34 +13979,34 @@ class g3e extends ate { return i; } highlight(e, r, n, i) { - let s = sg(this.spec, e, Math.max(0, r - this.spec.unquoted.length), Math.min(n + this.spec.unquoted.length, e.doc.length)); + let s = ag(this.spec, e, Math.max(0, r - this.spec.unquoted.length), Math.min(n + this.spec.unquoted.length, e.doc.length)); for (; !s.next().done; ) i(s.value.from, s.value.to); } } -function ag(t, e, r, n) { +function og(t, e, r, n) { return new rte(e.doc, t.search, { ignoreCase: !t.caseSensitive, - test: t.wholeWord ? m3e(e.charCategorizer(e.selection.main.head)) : void 0 + test: t.wholeWord ? v3e(e.charCategorizer(e.selection.main.head)) : void 0 }, r, n); } function Lk(t, e) { - return t.slice(Os(t, e, !1), e); + return t.slice(ks(t, e, !1), e); } function Rk(t, e) { - return t.slice(e, Os(t, e)); + return t.slice(e, ks(t, e)); } -function m3e(t) { +function v3e(t) { return (e, r, n) => !n[0].length || (t(Lk(n.input, n.index)) != Fn.Word || t(Rk(n.input, n.index)) != Fn.Word) && (t(Rk(n.input, n.index + n[0].length)) != Fn.Word || t(Lk(n.input, n.index + n[0].length)) != Fn.Word); } -class v3e extends ate { +class y3e extends ate { nextMatch(e, r, n) { - let i = ag(this.spec, e, n, e.doc.length).next(); - return i.done && (i = ag(this.spec, e, 0, r).next()), i.done ? null : i.value; + let i = og(this.spec, e, n, e.doc.length).next(); + return i.done && (i = og(this.spec, e, 0, r).next()), i.done ? null : i.value; } prevMatchInRange(e, r, n) { for (let i = 1; ; i++) { - let s = Math.max(r, n - i * 1e4), a = ag(this.spec, e, s, n), o = null; + let s = Math.max(r, n - i * 1e4), a = og(this.spec, e, s, n), o = null; for (; !a.next().done; ) o = a.value; if (o && (s == r || o.from > s + 10)) @@ -14022,7 +14022,7 @@ class v3e extends ate { return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g, (r, n) => n == "$" ? "$" : n == "&" ? e.match[0] : n != "0" && +n < e.match.length ? e.match[n] : r); } matchAll(e, r) { - let n = ag(this.spec, e, 0, e.doc.length), i = []; + let n = og(this.spec, e, 0, e.doc.length), i = []; for (; !n.next().done; ) { if (i.length >= r) return null; @@ -14031,7 +14031,7 @@ class v3e extends ate { return i; } highlight(e, r, n, i) { - let s = ag(this.spec, e, Math.max(0, r - 250), Math.min(n + 250, e.doc.length)); + let s = og(this.spec, e, Math.max(0, r - 250), Math.min(n + 250, e.doc.length)); for (; !s.next().done; ) i(s.value.from, s.value.to); } @@ -14052,7 +14052,7 @@ class $_ { this.query = e, this.panel = r; } } -const y3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), b3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), x3e = /* @__PURE__ */ hn.fromClass(class { +const b3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), x3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), w3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.decorations = this.highlight(t.state.field(wf)); } @@ -14063,14 +14063,14 @@ const y3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), b3e = /* @__PU highlight({ query: t, panel: e }) { if (!e || !t.spec.valid) return It.none; - let { view: r } = this, n = new os(); + let { view: r } = this, n = new ls(); for (let i = 0, s = r.visibleRanges, a = s.length; i < a; i++) { let { from: o, to: l } = s[i]; for (; i < a - 1 && l > s[i + 1].from - 2 * 250; ) l = s[++i].to; t.highlight(r.state, o, l, (u, h) => { let f = r.state.selection.ranges.some((d) => d.from == u && d.to == h); - n.add(u, h, f ? b3e : y3e); + n.add(u, h, f ? x3e : b3e); }); } return n.finish(); @@ -14088,7 +14088,7 @@ const Mk = /* @__PURE__ */ Qx((t, { query: e }) => { let { to: r } = t.state.selection.main, n = e.nextMatch(t.state, r, r); if (!n) return !1; - let i = je.single(n.from, n.to), s = t.state.facet(w1); + let i = je.single(n.from, n.to), s = t.state.facet(O1); return t.dispatch({ selection: i, effects: [xD(t, n), s.scrollToMatch(i.main, t)], @@ -14098,24 +14098,24 @@ const Mk = /* @__PURE__ */ Qx((t, { query: e }) => { let { state: r } = t, { from: n } = r.selection.main, i = e.prevMatch(r, n, n); if (!i) return !1; - let s = je.single(i.from, i.to), a = t.state.facet(w1); + let s = je.single(i.from, i.to), a = t.state.facet(O1); return t.dispatch({ selection: s, effects: [xD(t, i), a.scrollToMatch(s.main, t)], userEvent: "select.search" }), lte(t), !0; -}), w3e = /* @__PURE__ */ Qx((t, { query: e }) => { +}), O3e = /* @__PURE__ */ Qx((t, { query: e }) => { let r = e.matchAll(t.state, 1e3); return !r || !r.length ? !1 : (t.dispatch({ selection: je.create(r.map((n) => je.range(n.from, n.to))), userEvent: "select.search.matches" }), !0); -}), O3e = ({ state: t, dispatch: e }) => { +}), k3e = ({ state: t, dispatch: e }) => { let r = t.selection; if (r.ranges.length > 1 || r.main.empty) return !1; let { from: n, to: i } = r.main, s = [], a = 0; - for (let o = new gm(t.doc, t.sliceDoc(n, i)); !o.next().done; ) { + for (let o = new mm(t.doc, t.sliceDoc(n, i)); !o.next().done; ) { if (s.length > 1e3) return !1; o.value.from == n && (a = s.length), s.push(je.range(o.value.from, o.value.to)); @@ -14134,7 +14134,7 @@ const Mk = /* @__PURE__ */ Qx((t, { query: e }) => { let a = [], o, l, u = []; if (s.from == n && s.to == i && (l = r.toText(e.getReplacement(s)), a.push({ from: s.from, to: s.to, insert: l }), s = e.nextMatch(r, s.from, s.to), u.push(kt.announce.of(r.phrase("replaced match on line $", r.doc.lineAt(n).number) + "."))), s) { let h = a.length == 0 || a[0].from >= s.to ? 0 : s.to - s.from - l.length; - o = je.single(s.from - h, s.to - h), u.push(xD(t, s)), u.push(r.facet(w1).scrollToMatch(o.main, t)); + o = je.single(s.from - h, s.to - h), u.push(xD(t, s)), u.push(r.facet(O1).scrollToMatch(o.main, t)); } return t.dispatch({ changes: a, @@ -14142,7 +14142,7 @@ const Mk = /* @__PURE__ */ Qx((t, { query: e }) => { effects: u, userEvent: "input.replace" }), !0; -}), k3e = /* @__PURE__ */ Qx((t, { query: e }) => { +}), S3e = /* @__PURE__ */ Qx((t, { query: e }) => { if (t.state.readOnly) return !1; let r = e.matchAll(t.state, 1e9).map((i) => { @@ -14159,14 +14159,14 @@ const Mk = /* @__PURE__ */ Qx((t, { query: e }) => { }), !0; }); function bD(t) { - return t.state.facet(w1).createPanel(t); + return t.state.facet(O1).createPanel(t); } function P8(t, e) { var r, n, i, s, a; let o = t.selection.main, l = o.empty || o.to > o.from + 100 ? "" : t.sliceDoc(o.from, o.to); if (e && !l) return e; - let u = t.facet(w1); + let u = t.facet(O1); return new ste({ search: ((r = e == null ? void 0 : e.literal) !== null && r !== void 0 ? r : u.literal) ? l : l.replace(/\n/g, "\\n"), caseSensitive: (n = e == null ? void 0 : e.caseSensitive) !== null && n !== void 0 ? n : u.caseSensitive, @@ -14194,7 +14194,7 @@ const cte = (t) => { } else t.dispatch({ effects: [ yD.of(!0), - e ? T2.of(P8(t.state, e.query.spec)) : or.appendConfig.of(E3e) + e ? T2.of(P8(t.state, e.query.spec)) : or.appendConfig.of(_3e) ] }); return !0; }, ute = (t) => { @@ -14203,16 +14203,16 @@ const cte = (t) => { return !1; let r = y2(t, bD); return r && r.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: yD.of(!1) }), !0; -}, S3e = [ +}, T3e = [ { key: "Mod-f", run: cte, scope: "editor search-panel" }, { key: "F3", run: Mk, shift: Dk, scope: "editor search-panel", preventDefault: !0 }, { key: "Mod-g", run: Mk, shift: Dk, scope: "editor search-panel", preventDefault: !0 }, { key: "Escape", run: ute, scope: "editor search-panel" }, - { key: "Mod-Shift-l", run: O3e }, - { key: "Mod-Alt-g", run: r3e }, - { key: "Mod-d", run: d3e, preventDefault: !0 } + { key: "Mod-Shift-l", run: k3e }, + { key: "Mod-Alt-g", run: n3e }, + { key: "Mod-d", run: p3e, preventDefault: !0 } ]; -class T3e { +class C3e { constructor(e) { this.view = e; let r = this.query = e.state.field(wf).query.spec; @@ -14261,7 +14261,7 @@ class T3e { this.searchField, n("next", () => Mk(e), [mo(e, "next")]), n("prev", () => Dk(e), [mo(e, "previous")]), - n("select", () => w3e(e), [mo(e, "all")]), + n("select", () => O3e(e), [mo(e, "all")]), kn("label", null, [this.caseField, mo(e, "match case")]), kn("label", null, [this.reField, mo(e, "regexp")]), kn("label", null, [this.wordField, mo(e, "by word")]), @@ -14269,7 +14269,7 @@ class T3e { kn("br"), this.replaceField, n("replace", () => Wz(e), [mo(e, "replace")]), - n("replaceAll", () => k3e(e), [mo(e, "replace all")]) + n("replaceAll", () => S3e(e), [mo(e, "replace all")]) ], kn("button", { name: "close", @@ -14290,7 +14290,7 @@ class T3e { e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: T2.of(e) })); } keydown(e) { - YOe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Dk : Mk)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Wz(this.view)); + WOe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Dk : Mk)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Wz(this.view)); } update(e) { for (let r of e.transactions) @@ -14307,7 +14307,7 @@ class T3e { return 80; } get top() { - return this.view.state.facet(w1).top; + return this.view.state.facet(O1).top; } } function mo(t, e) { @@ -14332,7 +14332,7 @@ function xD(t, { from: e, to: r }) { } return kt.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${n.number}.`); } -const C3e = /* @__PURE__ */ kt.baseTheme({ +const E3e = /* @__PURE__ */ kt.baseTheme({ ".cm-panel.cm-search": { padding: "2px 6px 4px", position: "relative", @@ -14361,10 +14361,10 @@ const C3e = /* @__PURE__ */ kt.baseTheme({ "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" }, "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" }, "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" } -}), E3e = [ +}), _3e = [ wf, - /* @__PURE__ */ uc.low(x3e), - C3e + /* @__PURE__ */ uc.low(w3e), + E3e ]; class wD { constructor(e, r, n) { @@ -14396,7 +14396,7 @@ function Gz(t) { let e = Object.keys(t).join(""), r = /\w/.test(e); return r && (e = e.replace(/\w/g, "")), `[${r ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`; } -function _3e(t) { +function A3e(t) { let e = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null); for (let { label: i } of t) { e[i[0]] = !0; @@ -14407,13 +14407,13 @@ function _3e(t) { return [new RegExp("^" + n), new RegExp(n)]; } function hte(t) { - let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : _3e(e); + let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : A3e(e); return (i) => { let s = i.matchBefore(n); return s || i.explicit ? { from: s ? s.from : i.pos, options: e, validFor: r } : null; }; } -function A3e(t, e) { +function L3e(t, e) { return (r) => { for (let n = Cn(r.state).resolveInner(r.pos, -1); n; n = n.parent) { if (t.indexOf(n.name) > -1) @@ -14438,7 +14438,7 @@ function fte(t, e) { return !i && !s ? t : new RegExp(`${i ? "^" : ""}(?:${n})${s ? "$" : ""}`, (r = t.flags) !== null && r !== void 0 ? r : t.ignoreCase ? "i" : ""); } const dte = /* @__PURE__ */ co.define(); -function L3e(t, e, r, n) { +function R3e(t, e, r, n) { let { main: i } = t.selection, s = r - i.from, a = n - i.from; return Object.assign(Object.assign({}, t.changeByRange((o) => o != i && r != n && t.sliceDoc(o.from + s, o.from + a) != t.sliceDoc(r, n) ? { range: o } : { changes: { from: o.from + s, to: n == i.from ? o.to : o.from + a, insert: e }, @@ -14446,21 +14446,21 @@ function L3e(t, e, r, n) { })), { scrollIntoView: !0, userEvent: "input.complete" }); } const Hz = /* @__PURE__ */ new WeakMap(); -function R3e(t) { +function M3e(t) { if (!Array.isArray(t)) return t; let e = Hz.get(t); return e || Hz.set(t, e = hte(t)), e; } const OD = /* @__PURE__ */ or.define(), C2 = /* @__PURE__ */ or.define(); -class M3e { +class D3e { constructor(e) { this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = []; for (let r = 0; r < e.length; ) { - let n = bs(e, r), i = Ho(n); + let n = xs(e, r), i = Ho(n); this.chars.push(n); let s = e.slice(r, r + i), a = s.toUpperCase(); - this.folded.push(bs(a == s ? s.toLowerCase() : a, 0)), r += i; + this.folded.push(xs(a == s ? s.toLowerCase() : a, 0)), r += i; } this.astral = e.length != this.chars.length; } @@ -14474,7 +14474,7 @@ class M3e { return !1; let { chars: r, folded: n, any: i, precise: s, byWord: a } = this; if (r.length == 1) { - let b = bs(e, 0), w = Ho(b), O = w == e.length ? 0 : -100; + let b = xs(e, 0), w = Ho(b), O = w == e.length ? 0 : -100; if (b != r[0]) if (b == n[0]) O += -200; @@ -14488,7 +14488,7 @@ class M3e { let l = r.length, u = 0; if (o < 0) { for (let b = 0, w = Math.min(e.length, 200); b < w && u < l; ) { - let O = bs(e, b); + let O = xs(e, b); (O == r[u] || O == n[u]) && (i[u++] = b), b += Ho(O); } if (u < l) @@ -14496,7 +14496,7 @@ class M3e { } let h = 0, f = 0, d = !1, p = 0, g = -1, m = -1, v = /[a-z]/.test(e), y = !0; for (let b = 0, w = Math.min(e.length, 200), O = 0; b < w && f < l; ) { - let S = bs(e, b); + let S = xs(e, b); o < 0 && (h < l && S == r[h] && (s[h++] = b), p < l && (S == r[p] || S == n[p] ? (p == 0 && (g = b), m = b + 1, p++) : p = 0)); let C, T = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (C = YM(S)) != C.toLowerCase() ? 1 : C != C.toUpperCase() ? 2 : 0; (!b || T == 1 && v || O == 0 && T != 0) && (r[f] == S || n[f] == S && (d = !0) ? a[f++] = b : a.length && (y = !1)), O = T, b += Ho(S); @@ -14506,7 +14506,7 @@ class M3e { result(e, r, n) { let i = [], s = 0; for (let a of r) { - let o = a + (this.astral ? Ho(bs(n, a)) : 1); + let o = a + (this.astral ? Ho(xs(n, a)) : 1); s && i[s - 1] == a ? i[s - 1] = o : (i[s++] = a, i[s++] = o); } return this.ret(e - n.length, i); @@ -14526,7 +14526,7 @@ const js = /* @__PURE__ */ $t.define({ aboveCursor: !1, icons: !0, addToOptions: [], - positionInfo: D3e, + positionInfo: P3e, compareCompletions: (e, r) => e.label.localeCompare(r.label), interactionDelay: 75, updateSyncTime: 100 @@ -14543,7 +14543,7 @@ const js = /* @__PURE__ */ $t.define({ function Zz(t, e) { return t ? e ? t + " " + e : t : e; } -function D3e(t, e, r, n, i, s) { +function P3e(t, e, r, n, i, s) { let a = t.textDirection == Wn.RTL, o = a, l = !1, u = "top", h, f, d = e.left - i.left, p = i.right - e.right, g = n.right - n.left, m = n.bottom - n.top; if (o && d < Math.min(g, p) ? o = !1 : !o && p < Math.min(g, d) && (o = !0), g <= (o ? d : p)) h = Math.max(i.top, Math.min(r.top, i.bottom - m)) - e.top, f = Math.min(400, o ? d : p); @@ -14558,7 +14558,7 @@ function D3e(t, e, r, n, i, s) { class: "cm-completionInfo-" + (l ? a ? "left-narrow" : "right-narrow" : o ? "left" : "right") }; } -function P3e(t) { +function N3e(t) { let e = t.addToOptions.slice(); return t.icons && e.push({ render(r) { @@ -14600,7 +14600,7 @@ function B_(t, e, r) { let n = Math.floor((t - e) / r); return { from: t - (n + 1) * r, to: t - n * r }; } -class N3e { +class I3e { constructor(e, r, n) { this.view = e, this.stateField = r, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = { read: () => this.measureInfo(), @@ -14608,7 +14608,7 @@ class N3e { key: this }, this.space = null, this.currentClass = ""; let i = e.state.field(r), { options: s, selected: a } = i.open, o = e.state.facet(js); - this.optionContent = P3e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = B_(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { + this.optionContent = N3e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = B_(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { let { options: u } = e.state.field(r).open; for (let h = l.target, f; h && h != this.dom; h = h.parentNode) if (h.nodeName == "LI" && (f = /-(\d+)$/.exec(h.id)) && +f[1] < u.length) { @@ -14679,7 +14679,7 @@ class N3e { let r = null; for (let n = this.list.firstChild, i = this.range.from; n; n = n.nextSibling, i++) n.nodeName != "LI" || !n.id ? i-- : i == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), r = n) : n.hasAttribute("aria-selected") && n.removeAttribute("aria-selected"); - return r && $3e(this.list, r), r; + return r && B3e(this.list, r), r; } measureInfo() { let e = this.dom.querySelector("[aria-selected]"); @@ -14729,17 +14729,17 @@ class N3e { this.destroyInfo(); } } -function I3e(t, e) { - return (r) => new N3e(r, t, e); -} function $3e(t, e) { + return (r) => new I3e(r, t, e); +} +function B3e(t, e) { let r = t.getBoundingClientRect(), n = e.getBoundingClientRect(), i = r.height / t.offsetHeight; n.top < r.top ? t.scrollTop -= (r.top - n.top) / i : n.bottom > r.bottom && (t.scrollTop += (n.bottom - r.bottom) / i); } function jz(t) { return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0); } -function B3e(t, e) { +function F3e(t, e) { let r = [], n = null, i = (l) => { r.push(l); let { section: u } = l.completion; @@ -14756,7 +14756,7 @@ function B3e(t, e) { for (let h of l.result.options) i(new Xz(h, l.source, u ? u(h) : [], 1e9 - r.length)); else { - let h = new M3e(e.sliceDoc(l.from, l.to)); + let h = new D3e(e.sliceDoc(l.from, l.to)); for (let f of l.result.options) if (h.match(f.label)) { let d = f.displayLabel ? u ? u(f, h.matched) : [] : h.matched; @@ -14783,17 +14783,17 @@ function B3e(t, e) { } return s; } -class gg { +class vg { constructor(e, r, n, i, s, a) { this.options = e, this.attrs = r, this.tooltip = n, this.timestamp = i, this.selected = s, this.disabled = a; } setSelected(e, r) { - return e == this.selected || e >= this.options.length ? this : new gg(this.options, Kz(r, e), this.tooltip, this.timestamp, e, this.disabled); + return e == this.selected || e >= this.options.length ? this : new vg(this.options, Kz(r, e), this.tooltip, this.timestamp, e, this.disabled); } static build(e, r, n, i, s) { - let a = B3e(e, r); + let a = F3e(e, r); if (!a.length) - return i && e.some((l) => l.state == 1) ? new gg(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null; + return i && e.some((l) => l.state == 1) ? new vg(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null; let o = r.facet(js).selectOnOpen ? 0 : -1; if (i && i.selected != o && i.selected != -1) { let l = i.options[i.selected].completion; @@ -14803,14 +14803,14 @@ class gg { break; } } - return new gg(a, Kz(n, o), { + return new vg(a, Kz(n, o), { pos: e.reduce((l, u) => u.hasResult() ? Math.min(l, u.from) : l, 1e8), - create: V3e, + create: q3e, above: s.aboveCursor }, i ? i.timestamp : Date.now(), o, !1); } map(e) { - return new gg(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled); + return new vg(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled); } } class Pk { @@ -14818,13 +14818,13 @@ class Pk { this.active = e, this.id = r, this.open = n; } static start() { - return new Pk(Q3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); + return new Pk(U3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); } update(e) { - let { state: r } = e, n = r.facet(js), s = (n.override || r.languageDataAt("autocomplete", Of(r)).map(R3e)).map((o) => (this.active.find((u) => u.source == o) || new Wa(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); + let { state: r } = e, n = r.facet(js), s = (n.override || r.languageDataAt("autocomplete", Of(r)).map(M3e)).map((o) => (this.active.find((u) => u.source == o) || new Wa(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); s.length == this.active.length && s.every((o, l) => o == this.active[l]) && (s = this.active); let a = this.open; - a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !F3e(s, this.active) ? a = gg.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new Wa(o.source, 0) : o)); + a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !z3e(s, this.active) ? a = vg.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new Wa(o.source, 0) : o)); for (let o of e.effects) o.is(gte) && (a = a && a.setSelected(o.value, this.id)); return s == this.active && a == this.open ? this : new Pk(s, this.id, a); @@ -14833,10 +14833,10 @@ class Pk { return this.open ? this.open.tooltip : null; } get attrs() { - return this.open ? this.open.attrs : z3e; + return this.open ? this.open.attrs : Q3e; } } -function F3e(t, e) { +function z3e(t, e) { if (t == e) return !0; for (let r = 0, n = 0; ; ) { @@ -14851,7 +14851,7 @@ function F3e(t, e) { return !1; } } -const z3e = { +const Q3e = { "aria-autocomplete": "list" }; function Kz(t, e) { @@ -14862,7 +14862,7 @@ function Kz(t, e) { }; return e > -1 && (r["aria-activedescendant"] = t + "-" + e), r; } -const Q3e = []; +const U3e = []; function N8(t) { return t.isUserEvent("input.type") ? "input" : t.isUserEvent("delete.backward") ? "delete" : null; } @@ -14896,7 +14896,7 @@ class Wa { return e.empty || this.explicitPos < 0 ? this : new Wa(this.source, this.state, e.mapPos(this.explicitPos)); } } -class Pg extends Wa { +class Ig extends Wa { constructor(e, r, n, i, s) { super(e, 2, r), this.result = n, this.from = i, this.to = s; } @@ -14909,16 +14909,16 @@ class Pg extends Wa { if ((this.explicitPos < 0 ? o <= s : o < this.from) || o > a || r == "delete" && Of(e.startState) == this.from) return new Wa(this.source, r == "input" && n.activateOnTyping ? 1 : 0); let l = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos), u; - return U3e(this.result.validFor, e.state, s, a) ? new Pg(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new wD(e.state, o, l >= 0))) ? new Pg(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : Of(e.state)) : new Wa(this.source, 1, l); + return V3e(this.result.validFor, e.state, s, a) ? new Ig(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new wD(e.state, o, l >= 0))) ? new Ig(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : Of(e.state)) : new Wa(this.source, 1, l); } handleChange(e) { return e.changes.touchesRange(this.from, this.to) ? new Wa(this.source, 0) : this.map(e.changes); } map(e) { - return e.empty ? this : new Pg(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)); + return e.empty ? this : new Ig(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)); } } -function U3e(t, e, r, n) { +function V3e(t, e, r, n) { if (!t) return !1; let i = e.sliceDoc(r, n); @@ -14943,9 +14943,9 @@ const pte = /* @__PURE__ */ or.define({ function mte(t, e) { const r = e.completion.apply || e.completion.label; let n = t.state.field(To).active.find((i) => i.source == e.source); - return n instanceof Pg ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, L3e(t.state, r, n.from, n.to)), { annotations: dte.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; + return n instanceof Ig ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, R3e(t.state, r, n.from, n.to)), { annotations: dte.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; } -const V3e = /* @__PURE__ */ I3e(To, mte); +const q3e = /* @__PURE__ */ $3e(To, mte); function TO(t, e = "option") { return (r) => { let n = r.state.field(To, !1); @@ -14957,19 +14957,19 @@ function TO(t, e = "option") { return o < 0 ? o = e == "page" ? 0 : a - 1 : o >= a && (o = e == "page" ? a - 1 : 0), r.dispatch({ effects: gte.of(o) }), !0; }; } -const q3e = (t) => { +const Y3e = (t) => { let e = t.state.field(To, !1); return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(js).interactionDelay ? !1 : mte(t, e.open.options[e.open.selected]); -}, Y3e = (t) => t.state.field(To, !1) ? (t.dispatch({ effects: OD.of(!0) }), !0) : !1, W3e = (t) => { +}, W3e = (t) => t.state.field(To, !1) ? (t.dispatch({ effects: OD.of(!0) }), !0) : !1, G3e = (t) => { let e = t.state.field(To, !1); return !e || !e.active.some((r) => r.state != 0) ? !1 : (t.dispatch({ effects: C2.of(null) }), !0); }; -class G3e { +class X3e { constructor(e, r) { this.active = e, this.context = r, this.time = Date.now(), this.updates = [], this.done = void 0; } } -const X3e = 50, H3e = 1e3, Z3e = /* @__PURE__ */ hn.fromClass(class { +const H3e = 50, Z3e = 1e3, j3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.composing = 0; for (let e of t.state.field(To).active) @@ -14982,7 +14982,7 @@ const X3e = 50, H3e = 1e3, Z3e = /* @__PURE__ */ hn.fromClass(class { let r = t.transactions.some((n) => (n.selection || n.docChanged) && !N8(n)); for (let n = 0; n < this.running.length; n++) { let i = this.running[n]; - if (r || i.updates.length + t.transactions.length > X3e && Date.now() - i.time > H3e) { + if (r || i.updates.length + t.transactions.length > H3e && Date.now() - i.time > Z3e) { for (let s of i.context.abortListeners) try { s(); @@ -15004,7 +15004,7 @@ const X3e = 50, H3e = 1e3, Z3e = /* @__PURE__ */ hn.fromClass(class { r.state == 1 && !this.running.some((n) => n.active.source == r.source) && this.startQuery(r); } startQuery(t) { - let { state: e } = this.view, r = Of(e), n = new wD(e, r, t.explicitPos == r), i = new G3e(t, n); + let { state: e } = this.view, r = Of(e), n = new wD(e, r, t.explicitPos == r), i = new X3e(t, n); this.running.push(i), Promise.resolve(t.source(n)).then((s) => { i.context.aborted || (i.done = s || null, this.scheduleAccept()); }, (s) => { @@ -15023,7 +15023,7 @@ const X3e = 50, H3e = 1e3, Z3e = /* @__PURE__ */ hn.fromClass(class { if (i.done === void 0) continue; if (this.running.splice(n--, 1), i.done) { - let a = new Pg(i.active.source, i.active.explicitPos, i.done, i.done.from, (t = i.done.to) !== null && t !== void 0 ? t : Of(i.updates.length ? i.updates[0].startState : this.view.state)); + let a = new Ig(i.active.source, i.active.explicitPos, i.done, i.done.from, (t = i.done.to) !== null && t !== void 0 ? t : Of(i.updates.length ? i.updates[0].startState : this.view.state)); for (let o of i.updates) a = a.update(o, r); if (a.hasResult()) { @@ -15181,7 +15181,7 @@ const X3e = 50, H3e = 1e3, Z3e = /* @__PURE__ */ hn.fromClass(class { "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" } } }); -class j3e { +class K3e { constructor(e, r, n, i) { this.field = e, this.line = r, this.from = n, this.to = i; } @@ -15191,7 +15191,7 @@ class kD { this.field = e, this.from = r, this.to = n; } map(e) { - let r = e.mapPos(this.from, -1, Fi.TrackDel), n = e.mapPos(this.to, 1, Fi.TrackDel); + let r = e.mapPos(this.from, -1, zi.TrackDel), n = e.mapPos(this.to, 1, zi.TrackDel); return r == null || n == null ? null : new kD(this.field, r, n); } } @@ -15228,7 +15228,7 @@ class SD { for (let f of i) f.field >= u && f.field++; } - i.push(new j3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); + i.push(new K3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); } for (let o; o = /\\([{}])/.exec(a); ) { a = a.slice(0, o.index) + o[1] + a.slice(o.index + o[0].length); @@ -15240,7 +15240,7 @@ class SD { return new SD(n, i); } } -let K3e = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends uo { +let J3e = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends uo { toDOM() { let t = document.createElement("span"); return t.className = "cm-snippetFieldPosition", t; @@ -15248,10 +15248,10 @@ let K3e = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends ignoreEvent() { return !1; } -}() }), J3e = /* @__PURE__ */ It.mark({ class: "cm-snippetField" }); -class O1 { +}() }), eSe = /* @__PURE__ */ It.mark({ class: "cm-snippetField" }); +class k1 { constructor(e, r) { - this.ranges = e, this.active = r, this.deco = It.set(e.map((n) => (n.from == n.to ? K3e : J3e).range(n.from, n.to))); + this.ranges = e, this.active = r, this.deco = It.set(e.map((n) => (n.from == n.to ? J3e : eSe).range(n.from, n.to))); } map(e) { let r = []; @@ -15261,7 +15261,7 @@ class O1 { return null; r.push(i); } - return new O1(r, this.active); + return new k1(r, this.active); } selectionInsideField(e) { return e.ranges.every((r) => this.ranges.some((n) => n.field == this.active && n.from <= r.from && n.to >= r.to)); @@ -15271,7 +15271,7 @@ const Ux = /* @__PURE__ */ or.define({ map(t, e) { return t && t.map(e); } -}), eSe = /* @__PURE__ */ or.define(), E2 = /* @__PURE__ */ Xn.define({ +}), tSe = /* @__PURE__ */ or.define(), E2 = /* @__PURE__ */ Xn.define({ create() { return null; }, @@ -15279,8 +15279,8 @@ const Ux = /* @__PURE__ */ or.define({ for (let r of e.effects) { if (r.is(Ux)) return r.value; - if (r.is(eSe) && t) - return new O1(t.ranges, r.value); + if (r.is(tSe) && t) + return new k1(t.ranges, r.value); } return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t; }, @@ -15289,7 +15289,7 @@ const Ux = /* @__PURE__ */ or.define({ function TD(t, e) { return je.create(t.filter((r) => r.field == e).map((r) => je.range(r.from, r.to))); } -function tSe(t) { +function rSe(t) { let e = SD.parse(t); return (r, n, i, s) => { let { text: a, ranges: o } = e.instantiate(r.state, i), l = { @@ -15298,8 +15298,8 @@ function tSe(t) { annotations: n ? dte.of(n) : void 0 }; if (o.length && (l.selection = TD(o, 0)), o.length > 1) { - let u = new O1(o, 0), h = l.effects = [Ux.of(u)]; - r.state.field(E2, !1) === void 0 && h.push(or.appendConfig.of([E2, aSe, oSe, vte])); + let u = new k1(o, 0), h = l.effects = [Ux.of(u)]; + r.state.field(E2, !1) === void 0 && h.push(or.appendConfig.of([E2, oSe, lSe, vte])); } r.dispatch(r.state.update(l)); }; @@ -15312,23 +15312,23 @@ function yte(t) { let i = n.active + t, s = t > 0 && !n.ranges.some((a) => a.field == i + t); return r(e.update({ selection: TD(n.ranges, i), - effects: Ux.of(s ? null : new O1(n.ranges, i)), + effects: Ux.of(s ? null : new k1(n.ranges, i)), scrollIntoView: !0 })), !0; }; } -const rSe = ({ state: t, dispatch: e }) => t.field(E2, !1) ? (e(t.update({ effects: Ux.of(null) })), !0) : !1, nSe = /* @__PURE__ */ yte(1), iSe = /* @__PURE__ */ yte(-1), sSe = [ - { key: "Tab", run: nSe, shift: iSe }, - { key: "Escape", run: rSe } +const nSe = ({ state: t, dispatch: e }) => t.field(E2, !1) ? (e(t.update({ effects: Ux.of(null) })), !0) : !1, iSe = /* @__PURE__ */ yte(1), sSe = /* @__PURE__ */ yte(-1), aSe = [ + { key: "Tab", run: iSe, shift: sSe }, + { key: "Escape", run: nSe } ], Jz = /* @__PURE__ */ $t.define({ combine(t) { - return t.length ? t[0] : sSe; + return t.length ? t[0] : aSe; } -}), aSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.compute([Jz], (t) => t.facet(Jz))); +}), oSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.compute([Jz], (t) => t.facet(Jz))); function Qa(t, e) { - return Object.assign(Object.assign({}, e), { apply: tSe(t) }); + return Object.assign(Object.assign({}, e), { apply: rSe(t) }); } -const oSe = /* @__PURE__ */ kt.domEventHandlers({ +const lSe = /* @__PURE__ */ kt.domEventHandlers({ mousedown(t, e) { let r = e.state.field(E2, !1), n; if (!r || (n = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null) @@ -15336,7 +15336,7 @@ const oSe = /* @__PURE__ */ kt.domEventHandlers({ let i = r.ranges.find((s) => s.from <= n && s.to >= n); return !i || i.field == r.active ? !1 : (e.dispatch({ selection: TD(r.ranges, i.field), - effects: Ux.of(r.ranges.some((s) => s.field > i.field) ? new O1(r.ranges, i.field) : null), + effects: Ux.of(r.ranges.some((s) => s.field > i.field) ? new k1(r.ranges, i.field) : null), scrollIntoView: !0 }), !0); } @@ -15346,10 +15346,10 @@ const oSe = /* @__PURE__ */ kt.domEventHandlers({ stringPrefixes: [] }, l0 = /* @__PURE__ */ or.define({ map(t, e) { - let r = e.mapPos(t, -1, Fi.TrackAfter); + let r = e.mapPos(t, -1, zi.TrackAfter); return r == null ? void 0 : r; } -}), CD = /* @__PURE__ */ new class extends R0 { +}), CD = /* @__PURE__ */ new class extends M0 { }(); CD.startSide = 1; CD.endSide = -1; @@ -15367,8 +15367,8 @@ const bte = /* @__PURE__ */ Xn.define({ return t; } }); -function lSe() { - return [uSe, bte]; +function cSe() { + return [hSe, bte]; } const F_ = "()[]{}<>"; function xte(t) { @@ -15380,22 +15380,22 @@ function xte(t) { function wte(t, e) { return t.languageDataAt("closeBrackets", e)[0] || _2; } -const cSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), uSe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n) => { - if ((cSe ? t.composing : t.compositionStarted) || t.state.readOnly) +const uSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), hSe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n) => { + if ((uSe ? t.composing : t.compositionStarted) || t.state.readOnly) return !1; let i = t.state.selection.main; - if (n.length > 2 || n.length == 2 && Ho(bs(n, 0)) == 1 || e != i.from || r != i.to) + if (n.length > 2 || n.length == 2 && Ho(xs(n, 0)) == 1 || e != i.from || r != i.to) return !1; - let s = dSe(t.state, n); + let s = pSe(t.state, n); return s ? (t.dispatch(s), !0) : !1; -}), hSe = ({ state: t, dispatch: e }) => { +}), fSe = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let n = wte(t, t.selection.main.head).brackets || _2.brackets, i = null, s = t.changeByRange((a) => { if (a.empty) { - let o = pSe(t.doc, a.head); + let o = gSe(t.doc, a.head); for (let l of n) - if (l == o && YT(t.doc, a.head) == xte(bs(l, 0))) + if (l == o && YT(t.doc, a.head) == xte(xs(l, 0))) return { changes: { from: a.head - l.length, to: a.head + l.length }, range: je.cursor(a.head - l.length) @@ -15404,17 +15404,17 @@ const cSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav return { range: i = a }; }); return i || e(t.update(s, { scrollIntoView: !0, userEvent: "delete.backward" })), !i; -}, fSe = [ - { key: "Backspace", run: hSe } +}, dSe = [ + { key: "Backspace", run: fSe } ]; -function dSe(t, e) { +function pSe(t, e) { let r = wte(t, t.selection.main.head), n = r.brackets || _2.brackets; for (let i of n) { - let s = xte(bs(i, 0)); + let s = xte(xs(i, 0)); if (e == i) - return s == i ? vSe(t, i, n.indexOf(i + i + i) > -1, r) : gSe(t, i, s, r.before || _2.before); + return s == i ? ySe(t, i, n.indexOf(i + i + i) > -1, r) : mSe(t, i, s, r.before || _2.before); if (e == s && Ote(t, t.selection.main.from)) - return mSe(t, i, s); + return vSe(t, i, s); } return null; } @@ -15426,13 +15426,13 @@ function Ote(t, e) { } function YT(t, e) { let r = t.sliceString(e, e + 2); - return r.slice(0, Ho(bs(r, 0))); + return r.slice(0, Ho(xs(r, 0))); } -function pSe(t, e) { +function gSe(t, e) { let r = t.sliceString(e - 2, e); - return Ho(bs(r, 0)) == r.length ? r : r.slice(1); + return Ho(xs(r, 0)) == r.length ? r : r.slice(1); } -function gSe(t, e, r, n) { +function mSe(t, e, r, n) { let i = null, s = t.changeByRange((a) => { if (!a.empty) return { @@ -15452,7 +15452,7 @@ function gSe(t, e, r, n) { userEvent: "input.type" }); } -function mSe(t, e, r) { +function vSe(t, e, r) { let n = null, i = t.changeByRange((s) => s.empty && YT(t.doc, s.head) == r ? { changes: { from: s.head, to: s.head + r.length, insert: r }, range: je.cursor(s.head + r.length) @@ -15462,7 +15462,7 @@ function mSe(t, e, r) { userEvent: "input.type" }); } -function vSe(t, e, r, n) { +function ySe(t, e, r, n) { let i = n.stringPrefixes || _2.stringPrefixes, s = null, a = t.changeByRange((o) => { if (!o.empty) return { @@ -15492,7 +15492,7 @@ function vSe(t, e, r, n) { effects: l0.of(l + e.length), range: je.cursor(l + e.length) }; - if (t.charCategorizer(l)(u) != Fn.Word && tQ(t, l, i) > -1 && !ySe(t, l, e, i)) + if (t.charCategorizer(l)(u) != Fn.Word && tQ(t, l, i) > -1 && !bSe(t, l, e, i)) return { changes: { insert: e + e, from: l }, effects: l0.of(l + e.length), @@ -15510,7 +15510,7 @@ function eQ(t, e) { let r = Cn(t).resolveInner(e + 1); return r.parent && r.from == e; } -function ySe(t, e, r, n) { +function bSe(t, e, r, n) { let i = Cn(t).resolveInner(e, -1), s = n.reduce((a, o) => Math.max(a, o.length), 0); for (let a = 0; a < 5; a++) { let o = t.sliceDoc(i.from, Math.min(i.to, i.from + r.length + s)), l = o.indexOf(r); @@ -15541,25 +15541,25 @@ function tQ(t, e, r) { } return -1; } -function bSe(t = {}) { +function xSe(t = {}) { return [ To, js.of(t), - Z3e, - xSe, + j3e, + wSe, vte ]; } const kte = [ - { key: "Ctrl-Space", run: Y3e }, - { key: "Escape", run: W3e }, + { key: "Ctrl-Space", run: W3e }, + { key: "Escape", run: G3e }, { key: "ArrowDown", run: /* @__PURE__ */ TO(!0) }, { key: "ArrowUp", run: /* @__PURE__ */ TO(!1) }, { key: "PageDown", run: /* @__PURE__ */ TO(!0, "page") }, { key: "PageUp", run: /* @__PURE__ */ TO(!1, "page") }, - { key: "Enter", run: q3e } -], xSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.computeN([js], (t) => t.facet(js).defaultKeymap ? [kte] : [])); -class wSe { + { key: "Enter", run: Y3e } +], wSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.computeN([js], (t) => t.facet(js).defaultKeymap ? [kte] : [])); +class OSe { constructor(e, r, n) { this.from = e, this.to = r, this.diagnostic = n; } @@ -15572,28 +15572,28 @@ class Hd { let i = e, s = n.facet(Cte).markerFilter; s && (i = s(i)); let a = It.set(i.map((o) => o.from == o.to || o.from == o.to - 1 && n.doc.lineAt(o.from).to == o.from ? It.widget({ - widget: new LSe(o), + widget: new RSe(o), diagnostic: o }).range(o.from) : It.mark({ attributes: { class: "cm-lintRange cm-lintRange-" + o.severity + (o.markClass ? " " + o.markClass : "") }, diagnostic: o }).range(o.from, o.to)), !0); - return new Hd(a, r, mm(a)); + return new Hd(a, r, vm(a)); } } -function mm(t, e = null, r = 0) { +function vm(t, e = null, r = 0) { let n = null; return t.between(r, 1e9, (i, s, { spec: a }) => { if (!(e && a.diagnostic != e)) - return n = new wSe(i, s, a.diagnostic), !1; + return n = new OSe(i, s, a.diagnostic), !1; }), n; } -function OSe(t, e) { +function kSe(t, e) { let r = t.startState.doc.lineAt(e.pos); return !!(t.effects.some((n) => n.is(Ste)) || t.changes.touchesRange(r.from, r.to)); } -function kSe(t, e) { - return t.field(Eo, !1) ? e : e.concat(or.appendConfig.of(DSe)); +function SSe(t, e) { + return t.field(Eo, !1) ? e : e.concat(or.appendConfig.of(PSe)); } const Ste = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Tte = /* @__PURE__ */ or.define(), Eo = /* @__PURE__ */ Xn.define({ create() { @@ -15604,7 +15604,7 @@ const Ste = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Tte = let r = t.diagnostics.map(e.changes), n = null; if (t.selected) { let i = e.changes.mapPos(t.selected.from, 1); - n = mm(r, t.selected.diagnostic, i) || mm(r, null, i); + n = vm(r, t.selected.diagnostic, i) || vm(r, null, i); } t = new Hd(r, t.panel, n); } @@ -15616,8 +15616,8 @@ const Ste = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Tte = b2.from(t, (e) => e.panel), kt.decorations.from(t, (e) => e.diagnostics) ] -}), SSe = /* @__PURE__ */ It.mark({ class: "cm-lintRange cm-lintRange-active" }); -function TSe(t, e, r) { +}), TSe = /* @__PURE__ */ It.mark({ class: "cm-lintRange cm-lintRange-active" }); +function CSe(t, e, r) { let { diagnostics: n } = t.state.field(Eo), i = [], s = 2e8, a = 0; n.between(e - (r < 0 ? 1 : 0), e + (r > 0 ? 1 : 0), (l, u, { spec: h }) => { e >= l && e <= u && (l == u || (e > l || r > 0) && (e < u || r < 0)) && (i.push(h.diagnostic), s = Math.min(l, s), a = Math.max(u, a)); @@ -15628,30 +15628,30 @@ function TSe(t, e, r) { end: a, above: t.state.doc.lineAt(s).to < a, create() { - return { dom: CSe(t, i) }; + return { dom: ESe(t, i) }; } } : null; } -function CSe(t, e) { +function ESe(t, e) { return kn("ul", { class: "cm-tooltip-lint" }, e.map((r) => _te(t, r, !1))); } -const ESe = (t) => { +const _Se = (t) => { let e = t.state.field(Eo, !1); - (!e || !e.panel) && t.dispatch({ effects: kSe(t.state, [ED.of(!0)]) }); + (!e || !e.panel) && t.dispatch({ effects: SSe(t.state, [ED.of(!0)]) }); let r = y2(t, WT.open); return r && r.dom.querySelector(".cm-panel-lint ul").focus(), !0; }, rQ = (t) => { let e = t.state.field(Eo, !1); return !e || !e.panel ? !1 : (t.dispatch({ effects: ED.of(!1) }), !0); -}, _Se = (t) => { +}, ASe = (t) => { let e = t.state.field(Eo, !1); if (!e) return !1; let r = t.state.selection.main, n = e.diagnostics.iter(r.to + 1); return !n.value && (n = e.diagnostics.iter(0), !n.value || n.from == r.from && n.to == r.to) ? !1 : (t.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0 }), !0); -}, ASe = [ - { key: "Mod-Shift-m", run: ESe, preventDefault: !0 }, - { key: "F8", run: _Se } +}, LSe = [ + { key: "Mod-Shift-m", run: _Se, preventDefault: !0 }, + { key: "F8", run: ASe } ], Cte = /* @__PURE__ */ $t.define({ combine(t) { return Object.assign({ sources: t.map((e) => e.source) }, gu(t.map((e) => e.config), { @@ -15688,7 +15688,7 @@ function _te(t, e, r) { if (d.preventDefault(), o) return; o = !0; - let p = mm(t.state.field(Eo).diagnostics, e); + let p = vm(t.state.field(Eo).diagnostics, e); p && s.apply(t, p.from, p.to); }, { name: u } = s, h = i[a] ? u.indexOf(i[a]) : -1, f = h < 0 ? u : [ u.slice(0, h), @@ -15704,7 +15704,7 @@ function _te(t, e, r) { }, f); }), e.source && kn("div", { class: "cm-diagnosticSource" }, e.source)); } -class LSe extends uo { +class RSe extends uo { constructor(e) { super(), this.diagnostic = e; } @@ -15740,7 +15740,7 @@ class WT { let { diagnostic: s } = this.items[this.selectedIndex], a = Ete(s.actions); for (let o = 0; o < a.length; o++) if (a[o].toUpperCase().charCodeAt(0) == i.keyCode) { - let l = mm(this.view.state.field(Eo).diagnostics, s); + let l = vm(this.view.state.field(Eo).diagnostics, s); l && s.actions[o].apply(e, l.from, l.to); } } else @@ -15817,7 +15817,7 @@ class WT { moveSelection(e) { if (this.selectedIndex < 0) return; - let r = this.view.state.field(Eo), n = mm(r.diagnostics, this.items[e].diagnostic); + let r = this.view.state.field(Eo), n = vm(r.diagnostics, this.items[e].diagnostic); !n || this.view.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0, @@ -15828,13 +15828,13 @@ class WT { return new WT(e); } } -function RSe(t, e = 'viewBox="0 0 40 40"') { +function MSe(t, e = 'viewBox="0 0 40 40"') { return `url('data:image/svg+xml,${encodeURIComponent(t)}')`; } function CO(t) { - return RSe(``, 'width="6" height="3"'); + return MSe(``, 'width="6" height="3"'); } -const MSe = /* @__PURE__ */ kt.baseTheme({ +const DSe = /* @__PURE__ */ kt.baseTheme({ ".cm-diagnostic": { padding: "3px 6px 3px 8px", marginLeft: "-1px", @@ -15924,44 +15924,44 @@ const MSe = /* @__PURE__ */ kt.baseTheme({ margin: 0 } } -}), DSe = [ +}), PSe = [ Eo, /* @__PURE__ */ kt.decorations.compute([Eo], (t) => { let { selected: e, panel: r } = t.field(Eo); return !e || !r || e.from == e.to ? It.none : It.set([ - SSe.range(e.from, e.to) + TSe.range(e.from, e.to) ]); }), - /* @__PURE__ */ _4e(TSe, { hideOn: OSe }), - MSe -], PSe = /* @__PURE__ */ (() => [ - I4e(), - F4e(), + /* @__PURE__ */ A4e(CSe, { hideOn: kSe }), + DSe +], NSe = /* @__PURE__ */ (() => [ + $4e(), + z4e(), UJ(), gD(), - R5e(), + M5e(), FJ(), - t4e(), + r4e(), Tr.allowMultipleSelections.of(!0), - y5e(), + b5e(), pee(gee, { fallback: !0 }), - Q5e(), - lSe(), - bSe(), - v4e(), - x4e(), + U5e(), + cSe(), + xSe(), + y4e(), + w4e(), VJ(), - s3e(), + a3e(), ju.of([ - ...fSe, + ...dSe, ...Jee, - ...S3e, + ...T3e, ...Cee, - ...E5e, + ..._5e, ...kte, - ...ASe + ...LSe ]) -])(), NSe = /* @__PURE__ */ (() => [ +])(), ISe = /* @__PURE__ */ (() => [ UJ(), gD(), FJ(), @@ -15978,20 +15978,20 @@ const MSe = /* @__PURE__ */ kt.baseTheme({ }, Lh = (t, e, r) => { let n = t.get(e); return n === void 0 && t.set(e, n = r()), n; -}, ISe = (t, e) => { +}, $Se = (t, e) => { const r = []; for (const [n, i] of t) r.push(e(i, n)); return r; -}, $Se = (t, e) => { +}, BSe = (t, e) => { for (const [r, n] of t) if (e(n, r)) return !0; return !1; -}, D0 = () => /* @__PURE__ */ new Set(), z_ = (t) => t[t.length - 1], BSe = (t, e) => { +}, P0 = () => /* @__PURE__ */ new Set(), z_ = (t) => t[t.length - 1], FSe = (t, e) => { for (let r = 0; r < e.length; r++) t.push(e[r]); -}, zf = Array.from, FSe = (t, e) => { +}, zf = Array.from, zSe = (t, e) => { for (let r = 0; r < t.length; r++) if (e(t[r], r, t)) return !0; @@ -16002,7 +16002,7 @@ class GT { this._observers = ql(); } on(e, r) { - Lh(this._observers, e, D0).add(r); + Lh(this._observers, e, P0).add(r); } once(e, r) { const n = (...i) => { @@ -16021,12 +16021,12 @@ class GT { this._observers = ql(); } } -const fh = Math.floor, c5 = Math.abs, XT = (t, e) => t < e ? t : e, pd = (t, e) => t > e ? t : e, zSe = Math.pow, Ate = (t) => t !== 0 ? t < 0 : 1 / t < 0, iQ = 1, sQ = 2, Q_ = 4, U_ = 8, A2 = 32, Ju = 64, _o = 128, HT = 31, B8 = 63, k0 = 127, QSe = 2147483647, Lte = Number.MAX_SAFE_INTEGER, USe = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && fh(t) === t), VSe = String.fromCharCode, qSe = (t) => t.toLowerCase(), YSe = /^\s*/g, WSe = (t) => t.replace(YSe, ""), GSe = /([A-Z])/g, aQ = (t, e) => WSe(t.replace(GSe, (r) => `${e}${qSe(r)}`)), XSe = (t) => { +const fh = Math.floor, c5 = Math.abs, XT = (t, e) => t < e ? t : e, pd = (t, e) => t > e ? t : e, QSe = Math.pow, Ate = (t) => t !== 0 ? t < 0 : 1 / t < 0, iQ = 1, sQ = 2, Q_ = 4, U_ = 8, A2 = 32, Ju = 64, _o = 128, HT = 31, B8 = 63, k0 = 127, USe = 2147483647, Lte = Number.MAX_SAFE_INTEGER, VSe = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && fh(t) === t), qSe = String.fromCharCode, YSe = (t) => t.toLowerCase(), WSe = /^\s*/g, GSe = (t) => t.replace(WSe, ""), XSe = /([A-Z])/g, aQ = (t, e) => GSe(t.replace(XSe, (r) => `${e}${YSe(r)}`)), HSe = (t) => { const e = unescape(encodeURIComponent(t)), r = e.length, n = new Uint8Array(r); for (let i = 0; i < r; i++) n[i] = e.codePointAt(i); return n; -}, L2 = typeof TextEncoder < "u" ? new TextEncoder() : null, HSe = (t) => L2.encode(t), ZSe = L2 ? HSe : XSe; +}, L2 = typeof TextEncoder < "u" ? new TextEncoder() : null, ZSe = (t) => L2.encode(t), jSe = L2 ? ZSe : HSe; let $y = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 }); $y && $y.decode(new Uint8Array()).length === 1 && ($y = null); class Vx { @@ -16047,64 +16047,64 @@ const Ws = () => new Vx(), _D = (t) => { e.set(i, r), r += i.length; } return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), r), e; -}, jSe = (t, e) => { +}, KSe = (t, e) => { const r = t.cbuf.length; r - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(pd(r, e) * 2), t.cpos = 0); -}, ts = (t, e) => { +}, rs = (t, e) => { const r = t.cbuf.length; t.cpos === r && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(r * 2), t.cpos = 0), t.cbuf[t.cpos++] = e; -}, F8 = ts, rr = (t, e) => { +}, F8 = rs, rr = (t, e) => { for (; e > k0; ) - ts(t, _o | k0 & e), e = fh(e / 128); - ts(t, k0 & e); + rs(t, _o | k0 & e), e = fh(e / 128); + rs(t, k0 & e); }, AD = (t, e) => { const r = Ate(e); - for (r && (e = -e), ts(t, (e > B8 ? _o : 0) | (r ? Ju : 0) | B8 & e), e = fh(e / 64); e > 0; ) - ts(t, (e > k0 ? _o : 0) | k0 & e), e = fh(e / 128); -}, z8 = new Uint8Array(3e4), KSe = z8.length / 3, JSe = (t, e) => { - if (e.length < KSe) { + for (r && (e = -e), rs(t, (e > B8 ? _o : 0) | (r ? Ju : 0) | B8 & e), e = fh(e / 64); e > 0; ) + rs(t, (e > k0 ? _o : 0) | k0 & e), e = fh(e / 128); +}, z8 = new Uint8Array(3e4), JSe = z8.length / 3, eTe = (t, e) => { + if (e.length < JSe) { const r = L2.encodeInto(e, z8).written || 0; rr(t, r); for (let n = 0; n < r; n++) - ts(t, z8[n]); + rs(t, z8[n]); } else - ci(t, ZSe(e)); -}, eTe = (t, e) => { + ci(t, jSe(e)); +}, tTe = (t, e) => { const r = unescape(encodeURIComponent(e)), n = r.length; rr(t, n); for (let i = 0; i < n; i++) - ts(t, r.codePointAt(i)); -}, S0 = L2 && L2.encodeInto ? JSe : eTe, ZT = (t, e) => { + rs(t, r.codePointAt(i)); +}, S0 = L2 && L2.encodeInto ? eTe : tTe, ZT = (t, e) => { const r = t.cbuf.length, n = t.cpos, i = XT(r - n, e.length), s = e.length - i; t.cbuf.set(e.subarray(0, i), n), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(pd(r * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s); }, ci = (t, e) => { rr(t, e.byteLength), ZT(t, e); }, LD = (t, e) => { - jSe(t, e); + KSe(t, e); const r = new DataView(t.cbuf.buffer, t.cpos, e); return t.cpos += e, r; -}, tTe = (t, e) => LD(t, 4).setFloat32(0, e, !1), rTe = (t, e) => LD(t, 8).setFloat64(0, e, !1), nTe = (t, e) => LD(t, 8).setBigInt64(0, e, !1), oQ = new DataView(new ArrayBuffer(4)), iTe = (t) => (oQ.setFloat32(0, t), oQ.getFloat32(0) === t), R2 = (t, e) => { +}, rTe = (t, e) => LD(t, 4).setFloat32(0, e, !1), nTe = (t, e) => LD(t, 8).setFloat64(0, e, !1), iTe = (t, e) => LD(t, 8).setBigInt64(0, e, !1), oQ = new DataView(new ArrayBuffer(4)), sTe = (t) => (oQ.setFloat32(0, t), oQ.getFloat32(0) === t), R2 = (t, e) => { switch (typeof e) { case "string": - ts(t, 119), S0(t, e); + rs(t, 119), S0(t, e); break; case "number": - USe(e) && c5(e) <= QSe ? (ts(t, 125), AD(t, e)) : iTe(e) ? (ts(t, 124), tTe(t, e)) : (ts(t, 123), rTe(t, e)); + VSe(e) && c5(e) <= USe ? (rs(t, 125), AD(t, e)) : sTe(e) ? (rs(t, 124), rTe(t, e)) : (rs(t, 123), nTe(t, e)); break; case "bigint": - ts(t, 122), nTe(t, e); + rs(t, 122), iTe(t, e); break; case "object": if (e === null) - ts(t, 126); + rs(t, 126); else if ($8(e)) { - ts(t, 117), rr(t, e.length); + rs(t, 117), rr(t, e.length); for (let r = 0; r < e.length; r++) R2(t, e[r]); } else if (e instanceof Uint8Array) - ts(t, 116), ci(t, e); + rs(t, 116), ci(t, e); else { - ts(t, 118); + rs(t, 118); const r = Object.keys(e); rr(t, r.length); for (let n = 0; n < r.length; n++) { @@ -16114,10 +16114,10 @@ const Ws = () => new Vx(), _D = (t) => { } break; case "boolean": - ts(t, e ? 120 : 121); + rs(t, e ? 120 : 121); break; default: - ts(t, 127); + rs(t, 127); } }; class lQ extends Vx { @@ -16159,7 +16159,7 @@ class V_ { return uQ(this), Vn(this.encoder); } } -class sTe { +class aTe { constructor() { this.sarr = [], this.s = "", this.lensE = new u5(); } @@ -16181,10 +16181,10 @@ class jT { this.arr = e, this.pos = 0; } } -const gd = (t) => new jT(t), aTe = (t) => t.pos !== t.arr.length, oTe = (t, e) => { +const gd = (t) => new jT(t), oTe = (t) => t.pos !== t.arr.length, lTe = (t, e) => { const r = new Uint8Array(t.arr.buffer, t.pos + t.arr.byteOffset, e); return t.pos += e, r; -}, qs = (t) => oTe(t, wr(t)), vm = (t) => t.arr[t.pos++], wr = (t) => { +}, Ys = (t) => lTe(t, wr(t)), ym = (t) => t.arr[t.pos++], wr = (t) => { let e = 0, r = 1; const n = t.arr.length; for (; t.pos < n; ) { @@ -16208,15 +16208,15 @@ const gd = (t) => new jT(t), aTe = (t) => t.pos !== t.arr.length, oTe = (t, e) = throw Mte; } throw Rte; -}, lTe = (t) => { +}, cTe = (t) => { let e = wr(t); if (e === 0) return ""; { - let r = String.fromCodePoint(vm(t)); + let r = String.fromCodePoint(ym(t)); if (--e < 100) for (; e--; ) - r += String.fromCodePoint(vm(t)); + r += String.fromCodePoint(ym(t)); else for (; e > 0; ) { const n = e < 1e4 ? e : 1e4, i = t.arr.subarray(t.pos, t.pos + n); @@ -16224,17 +16224,17 @@ const gd = (t) => new jT(t), aTe = (t) => t.pos !== t.arr.length, oTe = (t, e) = } return decodeURIComponent(escape(r)); } -}, cTe = (t) => $y.decode(qs(t)), kf = $y ? cTe : lTe, MD = (t, e) => { +}, uTe = (t) => $y.decode(Ys(t)), kf = $y ? uTe : cTe, MD = (t, e) => { const r = new DataView(t.arr.buffer, t.arr.byteOffset + t.pos, e); return t.pos += e, r; -}, uTe = (t) => MD(t, 4).getFloat32(0, !1), hTe = (t) => MD(t, 8).getFloat64(0, !1), fTe = (t) => MD(t, 8).getBigInt64(0, !1), dTe = [ +}, hTe = (t) => MD(t, 4).getFloat32(0, !1), fTe = (t) => MD(t, 8).getFloat64(0, !1), dTe = (t) => MD(t, 8).getBigInt64(0, !1), pTe = [ (t) => { }, (t) => null, RD, - uTe, hTe, fTe, + dTe, (t) => !1, (t) => !0, kf, @@ -16252,14 +16252,14 @@ const gd = (t) => new jT(t), aTe = (t) => t.pos !== t.arr.length, oTe = (t, e) = r.push(M2(t)); return r; }, - qs -], M2 = (t) => dTe[127 - vm(t)](t); + Ys +], M2 = (t) => pTe[127 - ym(t)](t); class hQ extends jT { constructor(e, r) { super(e), this.reader = r, this.s = null, this.count = 0; } read() { - return this.count === 0 && (this.s = this.reader(this), aTe(this) ? this.count = wr(this) + 1 : this.count = -1), this.count--, this.s; + return this.count === 0 && (this.s = this.reader(this), oTe(this) ? this.count = wr(this) + 1 : this.count = -1), this.count--, this.s; } } class h5 extends jT { @@ -16287,7 +16287,7 @@ class q_ extends jT { return this.s += this.diff, this.count--, this.s; } } -class pTe { +class gTe { constructor(e) { this.decoder = new h5(e), this.str = kf(this.decoder), this.spos = 0; } @@ -16296,13 +16296,13 @@ class pTe { return this.spos = e, r; } } -const gTe = crypto.getRandomValues.bind(crypto), Dte = () => gTe(new Uint32Array(1))[0], mTe = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, vTe = () => mTe.replace( +const mTe = crypto.getRandomValues.bind(crypto), Dte = () => mTe(new Uint32Array(1))[0], vTe = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, yTe = () => vTe.replace( /[018]/g, (t) => (t ^ Dte() & 15 >> t / 4).toString(16) ), Uf = Date.now, fQ = (t) => new Promise(t); Promise.all.bind(Promise); const dQ = (t) => t === void 0 ? null : t; -class yTe { +class bTe { constructor() { this.map = /* @__PURE__ */ new Map(); } @@ -16313,38 +16313,38 @@ class yTe { return this.map.get(e); } } -let Pte = new yTe(), DD = !0; +let Pte = new bTe(), DD = !0; try { typeof localStorage < "u" && localStorage && (Pte = localStorage, DD = !1); } catch { } -const Nte = Pte, bTe = (t) => DD || addEventListener("storage", t), xTe = (t) => DD || removeEventListener("storage", t), wTe = Object.assign, OTe = Object.keys, kTe = (t, e) => { +const Nte = Pte, xTe = (t) => DD || addEventListener("storage", t), wTe = (t) => DD || removeEventListener("storage", t), OTe = Object.assign, kTe = Object.keys, STe = (t, e) => { for (const r in t) e(t[r], r); -}, STe = (t, e) => { +}, TTe = (t, e) => { const r = []; for (const n in t) r.push(e(t[n], n)); return r; -}, Nk = (t) => OTe(t).length, TTe = (t) => { +}, Nk = (t) => kTe(t).length, CTe = (t) => { for (const e in t) return !1; return !0; -}, CTe = (t, e) => { +}, ETe = (t, e) => { for (const r in t) if (!e(t[r], r)) return !1; return !0; -}, Ite = (t, e) => Object.prototype.hasOwnProperty.call(t, e), ETe = (t, e) => t === e || Nk(t) === Nk(e) && CTe(t, (r, n) => (r !== void 0 || Ite(e, n)) && e[n] === r), PD = (t, e, r = 0) => { +}, Ite = (t, e) => Object.prototype.hasOwnProperty.call(t, e), _Te = (t, e) => t === e || Nk(t) === Nk(e) && ETe(t, (r, n) => (r !== void 0 || Ite(e, n)) && e[n] === r), PD = (t, e, r = 0) => { try { for (; r < t.length; r++) t[r](...e); } finally { r < t.length && PD(t, e, r + 1); } -}, _Te = (t) => t, ATe = (t, e) => t === e, By = (t, e) => { +}, ATe = (t) => t, LTe = (t, e) => t === e, By = (t, e) => { if (t == null || e == null) - return ATe(t, e); + return LTe(t, e); if (t.constructor !== e.constructor) return !1; if (t === e) @@ -16394,12 +16394,12 @@ const Nte = Pte, bTe = (t) => DD || addEventListener("storage", t), xTe = (t) => return !1; } return !0; -}, LTe = (t, e) => e.includes(t), ym = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", $te = typeof window < "u" && typeof document < "u" && !ym; +}, RTe = (t, e) => e.includes(t), bm = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", $te = typeof window < "u" && typeof document < "u" && !bm; typeof navigator < "u" && /Mac/.test(navigator.platform); let Sc; -const RTe = () => { +const MTe = () => { if (Sc === void 0) - if (ym) { + if (bm) { Sc = ql(); const t = process.argv; let e = null; @@ -16416,40 +16416,40 @@ const RTe = () => { } })) : Sc = ql(); return Sc; -}, Q8 = (t) => RTe().has(t), U8 = (t) => dQ(ym ? {}[t.toUpperCase()] : Nte.getItem(t)), MTe = (t) => Q8("--" + t) || U8(t) !== null; -MTe("production"); -const pQ = ym && LTe({}.FORCE_COLOR, ["true", "1", "2"]), DTe = !Q8("no-colors") && (!ym || process.stdout.isTTY || pQ) && (!ym || Q8("color") || pQ || U8("COLORTERM") !== null || (U8("TERM") || "").includes("color")), Bte = (t) => new Uint8Array(t), PTe = (t, e, r) => new Uint8Array(t, e, r), NTe = (t) => new Uint8Array(t), ITe = (t) => { +}, Q8 = (t) => MTe().has(t), U8 = (t) => dQ(bm ? {}[t.toUpperCase()] : Nte.getItem(t)), DTe = (t) => Q8("--" + t) || U8(t) !== null; +DTe("production"); +const pQ = bm && RTe({}.FORCE_COLOR, ["true", "1", "2"]), PTe = !Q8("no-colors") && (!bm || process.stdout.isTTY || pQ) && (!bm || Q8("color") || pQ || U8("COLORTERM") !== null || (U8("TERM") || "").includes("color")), Bte = (t) => new Uint8Array(t), NTe = (t, e, r) => new Uint8Array(t, e, r), ITe = (t) => new Uint8Array(t), $Te = (t) => { let e = ""; for (let r = 0; r < t.byteLength; r++) - e += VSe(t[r]); + e += qSe(t[r]); return btoa(e); -}, $Te = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), BTe = (t) => { +}, BTe = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), FTe = (t) => { const e = atob(t), r = Bte(e.length); for (let n = 0; n < e.length; n++) r[n] = e.charCodeAt(n); return r; -}, FTe = (t) => { +}, zTe = (t) => { const e = Buffer.from(t, "base64"); - return PTe(e.buffer, e.byteOffset, e.byteLength); -}, zTe = $te ? ITe : $Te, QTe = $te ? BTe : FTe, UTe = (t) => { + return NTe(e.buffer, e.byteOffset, e.byteLength); +}, QTe = $te ? $Te : BTe, UTe = $te ? FTe : zTe, VTe = (t) => { const e = Bte(t.byteLength); return e.set(t), e; }; -class VTe { +class qTe { constructor(e, r) { this.left = e, this.right = r; } } -const xo = (t, e) => new VTe(t, e), qTe = (t, e) => t.forEach((r) => e(r.left, r.right)), vu = typeof document < "u" ? document : {}, YTe = (t) => vu.createElement(t), WTe = () => vu.createDocumentFragment(), GTe = (t) => vu.createTextNode(t); +const xo = (t, e) => new qTe(t, e), YTe = (t, e) => t.forEach((r) => e(r.left, r.right)), vu = typeof document < "u" ? document : {}, WTe = (t) => vu.createElement(t), GTe = () => vu.createDocumentFragment(), XTe = (t) => vu.createTextNode(t); typeof DOMParser < "u" && new DOMParser(); -const XTe = (t, e) => (qTe(e, (r, n) => { +const HTe = (t, e) => (YTe(e, (r, n) => { n === !1 ? t.removeAttribute(r) : n === !0 ? t.setAttribute(r, "") : t.setAttribute(r, n); -}), t), HTe = (t) => { - const e = WTe(); +}), t), ZTe = (t) => { + const e = GTe(); for (let r = 0; r < t.length; r++) Fte(e, t[r]); return e; -}, ZTe = (t, e) => (Fte(t, HTe(e)), t), Y_ = (t, e = [], r = []) => ZTe(XTe(YTe(t), e), r), EO = GTe, jTe = (t) => ISe(t, (e, r) => `${r}:${e};`).join(""), Fte = (t, e) => t.appendChild(e); +}, jTe = (t, e) => (Fte(t, ZTe(e)), t), Y_ = (t, e = [], r = []) => jTe(HTe(WTe(t), e), r), EO = XTe, KTe = (t) => $Se(t, (e, r) => `${r}:${e};`).join(""), Fte = (t, e) => t.appendChild(e); vu.ELEMENT_NODE; vu.TEXT_NODE; vu.CDATA_SECTION_NODE; @@ -16457,7 +16457,7 @@ vu.COMMENT_NODE; vu.DOCUMENT_NODE; vu.DOCUMENT_TYPE_NODE; vu.DOCUMENT_FRAGMENT_NODE; -const Rh = Symbol, zte = Rh(), Qte = Rh(), KTe = Rh(), JTe = Rh(), eCe = Rh(), Ute = Rh(), tCe = Rh(), ND = Rh(), rCe = Rh(), nCe = (t) => { +const Rh = Symbol, zte = Rh(), Qte = Rh(), JTe = Rh(), eCe = Rh(), tCe = Rh(), Ute = Rh(), rCe = Rh(), ND = Rh(), nCe = Rh(), iCe = (t) => { const e = []; let r = 0; for (; r < t.length; r++) { @@ -16465,25 +16465,25 @@ const Rh = Symbol, zte = Rh(), Qte = Rh(), KTe = Rh(), JTe = Rh(), eCe = Rh(), U n.constructor === String || n.constructor === Number || n.constructor === Object && e.push(JSON.stringify(n)); } return e; -}, iCe = { +}, sCe = { [zte]: xo("font-weight", "bold"), [Qte]: xo("font-weight", "normal"), - [KTe]: xo("color", "blue"), - [eCe]: xo("color", "green"), - [JTe]: xo("color", "grey"), + [JTe]: xo("color", "blue"), + [tCe]: xo("color", "green"), + [eCe]: xo("color", "grey"), [Ute]: xo("color", "red"), - [tCe]: xo("color", "purple"), + [rCe]: xo("color", "purple"), [ND]: xo("color", "orange"), - [rCe]: xo("color", "black") -}, sCe = (t) => { + [nCe]: xo("color", "black") +}, aCe = (t) => { const e = [], r = [], n = ql(); let i = [], s = 0; for (; s < t.length; s++) { - const a = t[s], o = iCe[a]; + const a = t[s], o = sCe[a]; if (o !== void 0) n.set(o.left, o.right); else if (a.constructor === String || a.constructor === Number) { - const l = jTe(n); + const l = KTe(n); s > 0 || l.length > 0 ? (e.push("%c" + a), r.push(l)) : e.push(a); } else break; @@ -16493,16 +16493,16 @@ const Rh = Symbol, zte = Rh(), Qte = Rh(), KTe = Rh(), JTe = Rh(), eCe = Rh(), U a instanceof Symbol || i.push(a); } return i; -}, Vte = DTe ? sCe : nCe, aCe = (...t) => { +}, Vte = PTe ? aCe : iCe, oCe = (...t) => { console.log(...Vte(t)), qte.forEach((e) => e.print(t)); -}, oCe = (...t) => { +}, lCe = (...t) => { console.warn(...Vte(t)), t.unshift(ND), qte.forEach((e) => e.print(t)); -}, qte = D0(), Yte = (t) => ({ +}, qte = P0(), Yte = (t) => ({ [Symbol.iterator]() { return this; }, next: t -}), lCe = (t, e) => Yte(() => { +}), cCe = (t, e) => Yte(() => { let r; do r = t.next(); @@ -16517,18 +16517,18 @@ class ID { this.clock = e, this.len = r; } } -class k1 { +class S1 { constructor() { this.clients = /* @__PURE__ */ new Map(); } } -const bm = (t, e, r) => e.clients.forEach((n, i) => { +const xm = (t, e, r) => e.clients.forEach((n, i) => { const s = t.doc.store.clients.get(i); for (let a = 0; a < n.length; a++) { const o = n[a]; are(t, s, o.clock, o.len, r); } -}), cCe = (t, e) => { +}), uCe = (t, e) => { let r = 0, n = t.length - 1; for (; r <= n; ) { const i = fh((r + n) / 2), s = t[i], a = s.clock; @@ -16542,7 +16542,7 @@ const bm = (t, e, r) => e.clients.forEach((n, i) => { return null; }, qx = (t, e) => { const r = t.clients.get(e.client); - return r !== void 0 && cCe(r, e.clock) !== null; + return r !== void 0 && uCe(r, e.clock) !== null; }, $D = (t) => { t.clients.forEach((e) => { e.sort((i, s) => i.clock - s.clock); @@ -16554,20 +16554,20 @@ const bm = (t, e, r) => e.clients.forEach((n, i) => { e.length = n; }); }, V8 = (t) => { - const e = new k1(); + const e = new S1(); for (let r = 0; r < t.length; r++) t[r].clients.forEach((n, i) => { if (!e.clients.has(i)) { const s = n.slice(); for (let a = r + 1; a < t.length; a++) - BSe(s, t[a].clients.get(i) || []); + FSe(s, t[a].clients.get(i) || []); e.clients.set(i, s); } }); return $D(e), e; }, D2 = (t, e, r, n) => { Lh(t.clients, e, () => []).push(new ID(r, n)); -}, Wte = () => new k1(), uCe = (t) => { +}, Wte = () => new S1(), hCe = (t) => { const e = Wte(); return t.clients.forEach((r, n) => { const i = []; @@ -16584,7 +16584,7 @@ const bm = (t, e, r) => e.clients.forEach((n, i) => { } i.length > 0 && e.clients.set(n, i); }), e; -}, S1 = (t, e) => { +}, T1 = (t, e) => { rr(t.restEncoder, e.clients.size), zf(e.clients.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { t.resetDsCurVal(), rr(t.restEncoder, r); const i = n.length; @@ -16595,7 +16595,7 @@ const bm = (t, e, r) => e.clients.forEach((n, i) => { } }); }, BD = (t) => { - const e = new k1(), r = wr(t.restDecoder); + const e = new S1(), r = wr(t.restDecoder); for (let n = 0; n < r; n++) { t.resetDsCurVal(); const i = wr(t.restDecoder), s = wr(t.restDecoder); @@ -16607,7 +16607,7 @@ const bm = (t, e, r) => e.clients.forEach((n, i) => { } return e; }, gQ = (t, e, r) => { - const n = new k1(), i = wr(t.restDecoder); + const n = new S1(), i = wr(t.restDecoder); for (let s = 0; s < i; s++) { t.resetDsCurVal(); const a = wr(t.restDecoder), o = wr(t.restDecoder), l = r.clients.get(a) || [], u = gi(r, a); @@ -16623,13 +16623,13 @@ const bm = (t, e, r) => e.clients.forEach((n, i) => { } } if (n.clients.size > 0) { - const s = new P0(); - return rr(s.restEncoder, 0), S1(s, n), s.toUint8Array(); + const s = new N0(); + return rr(s.restEncoder, 0), T1(s, n), s.toUint8Array(); } return null; }, Gte = Dte; -class T1 extends GT { - constructor({ guid: e = vTe(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { +class C1 extends GT { + constructor({ guid: e = yTe(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { super(), this.gc = n, this.gcFilter = i, this.clientID = Gte(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new ire(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = o, this.autoLoad = a, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = fQ((u) => { this.on("load", () => { this.isLoaded = !0, u(this); @@ -16660,13 +16660,13 @@ class T1 extends GT { transact(e, r = null) { return gn(this, e, r); } - get(e, r = Ts) { + get(e, r = Cs) { const n = Lh(this.share, e, () => { const s = new r(); return s._integrate(this, null), s; }), i = n.constructor; - if (r !== Ts && i !== r) - if (i === Ts) { + if (r !== Cs && i !== r) + if (i === Cs) { const s = new r(); s._map = n._map, n._map.forEach((a) => { for (; a !== null; a = a.left) @@ -16680,16 +16680,16 @@ class T1 extends GT { return n; } getArray(e = "") { - return this.get(e, Ig); + return this.get(e, Bg); } getText(e = "") { - return this.get(e, wm); + return this.get(e, Om); } getMap(e = "") { return this.get(e, eh); } getXmlFragment(e = "") { - return this.get(e, N0); + return this.get(e, I0); } toJSON() { const e = {}; @@ -16703,7 +16703,7 @@ class T1 extends GT { if (e !== null) { this._item = null; const r = e.content; - r.doc = new T1({ guid: this.guid, ...r.opts, shouldLoad: !1 }), r.doc._item = e, gn(e.parent.doc, (n) => { + r.doc = new C1({ guid: this.guid, ...r.opts, shouldLoad: !1 }), r.doc._item = e, gn(e.parent.doc, (n) => { const i = r.doc; e.deleted || n.subdocsAdded.add(i), n.subdocsRemoved.add(this); }, null, !0); @@ -16741,7 +16741,7 @@ class Hte extends Xte { return wr(this.restDecoder); } readInfo() { - return vm(this.restDecoder); + return ym(this.restDecoder); } readString() { return kf(this.restDecoder); @@ -16759,7 +16759,7 @@ class Hte extends Xte { return M2(this.restDecoder); } readBuf() { - return UTe(qs(this.restDecoder)); + return VTe(Ys(this.restDecoder)); } readJSON() { return JSON.parse(kf(this.restDecoder)); @@ -16768,7 +16768,7 @@ class Hte extends Xte { return kf(this.restDecoder); } } -class hCe { +class fCe { constructor(e) { this.dsCurrVal = 0, this.restDecoder = e; } @@ -16783,15 +16783,15 @@ class hCe { return this.dsCurrVal += e, e; } } -class xm extends hCe { +class wm extends fCe { constructor(e) { - super(e), this.keys = [], wr(e), this.keyClockDecoder = new q_(qs(e)), this.clientDecoder = new h5(qs(e)), this.leftClockDecoder = new q_(qs(e)), this.rightClockDecoder = new q_(qs(e)), this.infoDecoder = new hQ(qs(e), vm), this.stringDecoder = new pTe(qs(e)), this.parentInfoDecoder = new hQ(qs(e), vm), this.typeRefDecoder = new h5(qs(e)), this.lenDecoder = new h5(qs(e)); + super(e), this.keys = [], wr(e), this.keyClockDecoder = new q_(Ys(e)), this.clientDecoder = new h5(Ys(e)), this.leftClockDecoder = new q_(Ys(e)), this.rightClockDecoder = new q_(Ys(e)), this.infoDecoder = new hQ(Ys(e), ym), this.stringDecoder = new gTe(Ys(e)), this.parentInfoDecoder = new hQ(Ys(e), ym), this.typeRefDecoder = new h5(Ys(e)), this.lenDecoder = new h5(Ys(e)); } readLeftID() { - return new Ng(this.clientDecoder.read(), this.leftClockDecoder.read()); + return new $g(this.clientDecoder.read(), this.leftClockDecoder.read()); } readRightID() { - return new Ng(this.clientDecoder.read(), this.rightClockDecoder.read()); + return new $g(this.clientDecoder.read(), this.rightClockDecoder.read()); } readClient() { return this.clientDecoder.read(); @@ -16815,7 +16815,7 @@ class xm extends hCe { return M2(this.restDecoder); } readBuf() { - return qs(this.restDecoder); + return Ys(this.restDecoder); } readJSON() { return M2(this.restDecoder); @@ -16902,9 +16902,9 @@ class jte { e === 0 && ic(), rr(this.restEncoder, e - 1), this.dsCurrVal += e; } } -class P0 extends jte { +class N0 extends jte { constructor() { - super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new V_(), this.clientEncoder = new u5(), this.leftClockEncoder = new V_(), this.rightClockEncoder = new V_(), this.infoEncoder = new lQ(F8), this.stringEncoder = new sTe(), this.parentInfoEncoder = new lQ(F8), this.typeRefEncoder = new u5(), this.lenEncoder = new u5(); + super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new V_(), this.clientEncoder = new u5(), this.leftClockEncoder = new V_(), this.rightClockEncoder = new V_(), this.infoEncoder = new lQ(F8), this.stringEncoder = new aTe(), this.parentInfoEncoder = new lQ(F8), this.typeRefEncoder = new u5(), this.lenEncoder = new u5(); } toUint8Array() { const e = Ws(); @@ -16948,7 +16948,7 @@ class P0 extends jte { r === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(e)) : this.keyClockEncoder.write(r); } } -const fCe = (t, e, r, n) => { +const dCe = (t, e, r, n) => { n = pd(n, e[0].id.clock); const i = au(e, n); rr(t.restEncoder, e.length - i), t.writeClient(r), rr(t.restEncoder, n); @@ -16963,9 +16963,9 @@ const fCe = (t, e, r, n) => { }), KT(e).forEach((i, s) => { r.has(s) || n.set(s, 0); }), rr(t.restEncoder, n.size), zf(n.entries()).sort((i, s) => s[0] - i[0]).forEach(([i, s]) => { - fCe(t, e.clients.get(i), i, s); + dCe(t, e.clients.get(i), i, s); }); -}, dCe = (t, e) => { +}, pCe = (t, e) => { const r = ql(), n = wr(t.restDecoder); for (let i = 0; i < n; i++) { const s = wr(t.restDecoder), a = new Array(s), o = t.readClient(); @@ -17001,7 +17001,7 @@ const fCe = (t, e, r, n) => { } } return r; -}, pCe = (t, e, r) => { +}, gCe = (t, e, r) => { const n = []; let i = zf(r.keys()).sort((p, g) => p - g); if (i.length === 0) @@ -17063,14 +17063,14 @@ const fCe = (t, e, r, n) => { } } if (o.clients.size > 0) { - const p = new P0(); + const p = new N0(); return FD(p, o, /* @__PURE__ */ new Map()), rr(p.restEncoder, 0), { missing: l, update: p.toUint8Array() }; } return null; -}, gCe = (t, e) => FD(t, e.doc.store, e.beforeState), mCe = (t, e, r, n = new xm(t)) => gn(e, (i) => { +}, mCe = (t, e) => FD(t, e.doc.store, e.beforeState), vCe = (t, e, r, n = new wm(t)) => gn(e, (i) => { i.local = !1; let s = !1; - const a = i.doc, o = a.store, l = dCe(n, a), u = pCe(i, o, l), h = o.pendingStructs; + const a = i.doc, o = a.store, l = pCe(n, a), u = gCe(i, o, l), h = o.pendingStructs; if (h) { for (const [d, p] of h.missing) if (p < gi(o, d)) { @@ -17088,7 +17088,7 @@ const fCe = (t, e, r, n) => { o.pendingStructs = u; const f = gQ(n, i, o); if (o.pendingDs) { - const d = new xm(gd(o.pendingDs)); + const d = new wm(gd(o.pendingDs)); wr(d.restDecoder); const p = gQ(d, i, o); f && p ? o.pendingDs = $k([f, p]) : o.pendingDs = f || p; @@ -17098,47 +17098,47 @@ const fCe = (t, e, r, n) => { const d = o.pendingStructs.update; o.pendingStructs = null, Kte(i.doc, d); } -}, r, !1), Kte = (t, e, r, n = xm) => { +}, r, !1), Kte = (t, e, r, n = wm) => { const i = gd(e); - mCe(i, t, r, new n(i)); -}, vCe = (t, e, r) => Kte(t, e, r, Hte), yCe = (t, e, r = /* @__PURE__ */ new Map()) => { - FD(t, e.store, r), S1(t, uCe(e.store)); -}, bCe = (t, e = new Uint8Array([0]), r = new P0()) => { + vCe(i, t, r, new n(i)); +}, yCe = (t, e, r) => Kte(t, e, r, Hte), bCe = (t, e, r = /* @__PURE__ */ new Map()) => { + FD(t, e.store, r), T1(t, hCe(e.store)); +}, xCe = (t, e = new Uint8Array([0]), r = new N0()) => { const n = Jte(e); - yCe(r, t, n); + bCe(r, t, n); const i = [r.toUint8Array()]; - if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(FCe(t.store.pendingStructs.update, e)), i.length > 1) { + if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(zCe(t.store.pendingStructs.update, e)), i.length > 1) { if (r.constructor === Yx) - return $Ce(i.map((s, a) => a === 0 ? s : QCe(s))); - if (r.constructor === P0) + return BCe(i.map((s, a) => a === 0 ? s : UCe(s))); + if (r.constructor === N0) return $k(i); } return i[0]; -}, xCe = (t, e) => bCe(t, e, new Yx()), wCe = (t) => { +}, wCe = (t, e) => xCe(t, e, new Yx()), OCe = (t) => { const e = /* @__PURE__ */ new Map(), r = wr(t.restDecoder); for (let n = 0; n < r; n++) { const i = wr(t.restDecoder), s = wr(t.restDecoder); e.set(i, s); } return e; -}, Jte = (t) => wCe(new Xte(gd(t))), ere = (t, e) => (rr(t.restEncoder, e.size), zf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { +}, Jte = (t) => OCe(new Xte(gd(t))), ere = (t, e) => (rr(t.restEncoder, e.size), zf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { rr(t.restEncoder, r), rr(t.restEncoder, n); -}), t), OCe = (t, e) => ere(t, KT(e.store)), kCe = (t, e = new jte()) => (t instanceof Map ? ere(e, t) : OCe(e, t), e.toUint8Array()), SCe = (t) => kCe(t, new Zte()); -class TCe { +}), t), kCe = (t, e) => ere(t, KT(e.store)), SCe = (t, e = new jte()) => (t instanceof Map ? ere(e, t) : kCe(e, t), e.toUint8Array()), TCe = (t) => SCe(t, new Zte()); +class CCe { constructor() { this.l = []; } } -const mQ = () => new TCe(), vQ = (t, e) => t.l.push(e), yQ = (t, e) => { +const mQ = () => new CCe(), vQ = (t, e) => t.l.push(e), yQ = (t, e) => { const r = t.l, n = r.length; t.l = r.filter((i) => e !== i), n === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist."); }, tre = (t, e, r) => PD(t.l, [e, r]); -class Ng { +class $g { constructor(e, r) { this.client = e, this.clock = r; } } -const mg = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, Cr = (t, e) => new Ng(t, e), rre = (t) => { +const yg = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, Cr = (t, e) => new $g(t, e), rre = (t) => { for (const [e, r] of t.doc.share.entries()) if (r === t) return e; @@ -17160,12 +17160,12 @@ const bQ = (t) => { const e = {}; return t.type && (e.type = t.type), t.tname && (e.tname = t.tname), t.item && (e.item = t.item), t.assoc != null && (e.assoc = t.assoc), e; }, P2 = (t) => new nre(t.type == null ? null : Cr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : Cr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); -class CCe { +class ECe { constructor(e, r, n = 0) { this.type = e, this.index = r, this.assoc = n; } } -const ECe = (t, e, r = 0) => new CCe(t, e, r), _O = (t, e, r) => { +const _Ce = (t, e, r = 0) => new ECe(t, e, r), _O = (t, e, r) => { let n = null, i = null; return t._item === null ? i = rre(t) : n = Cr(t._item.id.client, t._item.id.clock), new nre(n, i, e, r); }, q8 = (t, e, r = 0) => { @@ -17216,20 +17216,20 @@ const ECe = (t, e, r = 0) => new CCe(t, e, r), _O = (t, e, r) => { throw ic(); a >= 0 ? l = o._length : l = 0; } - return ECe(o, l, t.assoc); -}, xQ = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && mg(t.item, e.item) && mg(t.type, e.type) && t.assoc === e.assoc; -class _Ce { + return _Ce(o, l, t.assoc); +}, xQ = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && yg(t.item, e.item) && yg(t.type, e.type) && t.assoc === e.assoc; +class ACe { constructor(e, r) { this.ds = e, this.sv = r; } } -const ACe = (t, e) => new _Ce(t, e); -ACe(Wte(), /* @__PURE__ */ new Map()); -const og = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !qx(e.ds, t.id), W8 = (t, e) => { - const r = Lh(t.meta, W8, D0), n = t.doc.store; +const LCe = (t, e) => new ACe(t, e); +LCe(Wte(), /* @__PURE__ */ new Map()); +const lg = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !qx(e.ds, t.id), W8 = (t, e) => { + const r = Lh(t.meta, W8, P0), n = t.doc.store; r.has(e) || (e.sv.forEach((i, s) => { i < gi(n, s) && Ha(t, Cr(s, i)); - }), bm(t, e.ds, (i) => { + }), xm(t, e.ds, (i) => { }), r.add(e)); }; class ire { @@ -17274,10 +17274,10 @@ const KT = (t) => { a = fh((r + n) / 2); } throw ic(); -}, LCe = (t, e) => { +}, RCe = (t, e) => { const r = t.clients.get(e.client); return r[au(r, e.clock)]; -}, f5 = LCe, G8 = (t, e, r) => { +}, f5 = RCe, G8 = (t, e, r) => { const n = au(e, r), i = e[n]; return i.id.clock < r && i instanceof mn ? (e.splice(n + 1, 0, Vk(t, i, r - i.id.clock)), n + 1) : n; }, Ha = (t, e) => { @@ -17286,7 +17286,7 @@ const KT = (t) => { }, wQ = (t, e, r) => { const n = e.clients.get(r.client), i = au(n, r.clock), s = n[i]; return r.clock !== s.id.clock + s.length - 1 && s.constructor !== Zo && n.splice(i + 1, 0, Vk(t, s, r.clock - s.id.clock + 1)), s; -}, RCe = (t, e, r) => { +}, MCe = (t, e, r) => { const n = t.clients.get(e.id.client); n[au(n, e.id.clock)] = r; }, are = (t, e, r, n, i) => { @@ -17298,14 +17298,14 @@ const KT = (t) => { o = e[a++], s < o.id.clock + o.length && G8(t, e, s), i(o); while (a < e.length && e[a].id.clock < s); }; -class MCe { +class DCe { constructor(e, r, n) { - this.doc = e, this.deleteSet = new k1(), this.beforeState = KT(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = r, this.meta = /* @__PURE__ */ new Map(), this.local = n, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; + this.doc = e, this.deleteSet = new S1(), this.beforeState = KT(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = r, this.meta = /* @__PURE__ */ new Map(), this.local = n, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; } } -const OQ = (t, e) => e.deleteSet.clients.size === 0 && !$Se(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : ($D(e.deleteSet), gCe(t, e), S1(t, e.deleteSet), !0), kQ = (t, e, r) => { +const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : ($D(e.deleteSet), mCe(t, e), T1(t, e.deleteSet), !0), kQ = (t, e, r) => { const n = e._item; - (n === null || n.id.clock < (t.beforeState.get(n.id.client) || 0) && !n.deleted) && Lh(t.changed, e, D0).add(r); + (n === null || n.id.clock < (t.beforeState.get(n.id.client) || 0) && !n.deleted) && Lh(t.changed, e, P0).add(r); }, d5 = (t, e) => { let r = t[e], n = t[e - 1], i = e; for (; i > 0; r = n, n = t[--i - 1]) { @@ -17317,7 +17317,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !$Se(e.afterState, (r, n) } const s = e - i; return s && t.splice(e + 1 - s, s), s; -}, DCe = (t, e, r) => { +}, PCe = (t, e, r) => { for (const [n, i] of t.clients.entries()) { const s = e.clients.get(n); for (let a = i.length - 1; a >= 0; a--) { @@ -17330,7 +17330,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !$Se(e.afterState, (r, n) } } } -}, PCe = (t, e) => { +}, NCe = (t, e) => { t.clients.forEach((r, n) => { const i = e.clients.get(n); for (let s = r.length - 1; s >= 0; s--) { @@ -17357,9 +17357,9 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !$Se(e.afterState, (r, n) h.currentTarget = u, h._path = null; }), l.sort((h, f) => h.path.length - f.path.length), tre(u._dEH, l, r)); }); - }), o.push(() => n.emit("afterTransaction", [r, n])), PD(o, []), r._needFormattingCleanup && tEe(r); + }), o.push(() => n.emit("afterTransaction", [r, n])), PD(o, []), r._needFormattingCleanup && rEe(r); } finally { - n.gc && DCe(s, i, n.gcFilter), PCe(s, i), r.afterState.forEach((h, f) => { + n.gc && PCe(s, i, n.gcFilter), NCe(s, i), r.afterState.forEach((h, f) => { const d = r.beforeState.get(f) || 0; if (d !== h) { const p = i.clients.get(f), g = pd(au(p, d), 1); @@ -17371,12 +17371,12 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !$Se(e.afterState, (r, n) const { client: f, clock: d } = a[h].id, p = i.clients.get(f), g = au(p, d); g + 1 < p.length && d5(p, g + 1) > 1 || g > 0 && d5(p, g); } - if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (aCe(ND, zte, "[yjs] ", Qte, Ute, "Changed the client-id because another client seems to be using it."), n.clientID = Gte()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { + if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (oCe(ND, zte, "[yjs] ", Qte, Ute, "Changed the client-id because another client seems to be using it."), n.clientID = Gte()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { const h = new Yx(); OQ(h, r) && n.emit("update", [h.toUint8Array(), r.origin, n, r]); } if (n._observers.has("updateV2")) { - const h = new P0(); + const h = new N0(); OQ(h, r) && n.emit("updateV2", [h.toUint8Array(), r.origin, n, r]); } const { subdocsAdded: o, subdocsLoaded: l, subdocsRemoved: u } = r; @@ -17388,7 +17388,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !$Se(e.afterState, (r, n) }, gn = (t, e, r = null, n = !0) => { const i = t._transactionCleanups; let s = !1, a = null; - t._transaction === null && (s = !0, t._transaction = new MCe(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); + t._transaction === null && (s = !0, t._transaction = new DCe(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); try { a = e(t._transaction); } finally { @@ -17399,13 +17399,13 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !$Se(e.afterState, (r, n) } return a; }; -class NCe { +class ICe { constructor(e, r) { this.insertions = r, this.deletions = e, this.meta = /* @__PURE__ */ new Map(); } } const SQ = (t, e, r) => { - bm(t, r.deletions, (n) => { + xm(t, r.deletions, (n) => { n instanceof mn && e.scope.some((i) => Ik(i, n)) && XD(n, !1); }); }, TQ = (t, e, r) => { @@ -17415,7 +17415,7 @@ const SQ = (t, e, r) => { for (; e.length > 0 && n === null; ) { const l = s.store, u = e.pop(), h = /* @__PURE__ */ new Set(), f = []; let d = !1; - bm(o, u.insertions, (p) => { + xm(o, u.insertions, (p) => { if (p instanceof mn) { if (p.redone !== null) { let { item: g, diff: m } = H8(l, p.id); @@ -17423,7 +17423,7 @@ const SQ = (t, e, r) => { } !p.deleted && a.some((g) => Ik(g, p)) && f.push(p); } - }), bm(o, u.deletions, (p) => { + }), xm(o, u.deletions, (p) => { p instanceof mn && a.some((g) => Ik(g, p)) && !qx(u.insertions, p.id) && h.add(p); }), h.forEach((p) => { d = Tre(o, p, h, u.insertions, t.ignoreRemoteMapChanges, t) !== null || d; @@ -17457,7 +17457,7 @@ class zD extends GT { return; const u = this.undoing, h = this.redoing, f = u ? this.redoStack : this.undoStack; u ? this.stopCapturing() : h || this.clear(!1, !0); - const d = new k1(); + const d = new S1(); l.afterState.forEach((v, y) => { const b = l.beforeState.get(y) || 0, w = v - b; w > 0 && D2(d, y, b, w); @@ -17468,8 +17468,8 @@ class zD extends GT { const v = f[f.length - 1]; v.deletions = V8([v.deletions, l.deleteSet]), v.insertions = V8([v.insertions, d]); } else - f.push(new NCe(l.deleteSet, d)), g = !0; - !u && !h && (this.lastChange = p), bm(l, l.deleteSet, (v) => { + f.push(new ICe(l.deleteSet, d)), g = !0; + !u && !h && (this.lastChange = p), xm(l, l.deleteSet, (v) => { v instanceof mn && this.scope.some((y) => Ik(y, v)) && XD(v, !0); }); const m = [{ stackItem: f[f.length - 1], origin: l.origin, type: u ? "redo" : "undo", changedParentTypes: l.changedParentTypes }, this]; @@ -17480,7 +17480,7 @@ class zD extends GT { } addToScope(e) { e = $8(e) ? e : [e], e.forEach((r) => { - this.scope.every((n) => n !== r) && (r.doc !== this.doc && oCe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); + this.scope.every((n) => n !== r) && (r.doc !== this.doc && lCe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); }); } addTrackedOrigin(e) { @@ -17527,7 +17527,7 @@ class zD extends GT { this.trackedOrigins.delete(this), this.doc.off("afterTransaction", this.afterTransactionHandler), super.destroy(); } } -function* ICe(t) { +function* $Ce(t) { const e = wr(t.restDecoder); for (let r = 0; r < e; r++) { const n = wr(t.restDecoder), i = t.readClient(); @@ -17558,7 +17558,7 @@ function* ICe(t) { } class QD { constructor(e, r) { - this.gen = ICe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); + this.gen = $Ce(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); } next() { do @@ -17572,7 +17572,7 @@ class UD { this.currClient = 0, this.startClock = 0, this.written = 0, this.encoder = e, this.clientStructs = []; } } -const $Ce = (t) => $k(t, Hte, Yx), BCe = (t, e) => { +const BCe = (t) => $k(t, Hte, Yx), FCe = (t, e) => { if (t.constructor === Zo) { const { client: r, clock: n } = t.id; return new Zo(Cr(r, n + e), t.length - e); @@ -17592,7 +17592,7 @@ const $Ce = (t) => $k(t, Hte, Yx), BCe = (t, e) => { r.content.splice(e) ); } -}, $k = (t, e = xm, r = P0) => { +}, $k = (t, e = wm, r = N0) => { if (t.length === 1) return t[0]; const n = t.map((h) => new e(gd(h))); @@ -17626,7 +17626,7 @@ const $Ce = (t) => $k(t, Hte, Yx), BCe = (t, e) => { } else { const g = s.struct.id.clock + s.struct.length - d.id.clock; - g > 0 && (s.struct.constructor === jo ? s.struct.length -= g : d = BCe(d, g)), s.struct.mergeWith(d) || (tf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); + g > 0 && (s.struct.constructor === jo ? s.struct.length -= g : d = FCe(d, g)), s.struct.mergeWith(d) || (tf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); } } else s = { struct: h.curr, offset: 0 }, h.next(); @@ -17635,8 +17635,8 @@ const $Ce = (t) => $k(t, Hte, Yx), BCe = (t, e) => { } s !== null && (tf(o, s.struct, s.offset), s = null), VD(o); const l = n.map((h) => BD(h)), u = V8(l); - return S1(a, u), a.toUint8Array(); -}, FCe = (t, e, r = xm, n = P0) => { + return T1(a, u), a.toUint8Array(); +}, zCe = (t, e, r = wm, n = N0) => { const i = Jte(e), s = new n(), a = new UD(s), o = new r(gd(t)), l = new QD(o, !1); for (; l.curr; ) { const h = l.curr, f = h.id.client, d = i.get(f) || 0; @@ -17653,7 +17653,7 @@ const $Ce = (t) => $k(t, Hte, Yx), BCe = (t, e) => { } VD(a); const u = BD(o); - return S1(s, u), s.toUint8Array(); + return T1(s, u), s.toUint8Array(); }, lre = (t) => { t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Vn(t.encoder.restEncoder) }), t.encoder.restEncoder = Ws(), t.written = 0); }, tf = (t, e, r) => { @@ -17666,20 +17666,20 @@ const $Ce = (t) => $k(t, Hte, Yx), BCe = (t, e) => { const n = t.clientStructs[r]; rr(e, n.written), ZT(e, n.restEncoder); } -}, zCe = (t, e, r, n) => { +}, QCe = (t, e, r, n) => { const i = new r(gd(t)), s = new QD(i, !1), a = new n(), o = new UD(a); for (let u = s.curr; u !== null; u = s.next()) tf(o, e(u), 0); VD(o); const l = BD(i); - return S1(a, l), a.toUint8Array(); -}, QCe = (t) => zCe(t, _Te, xm, Yx), CQ = "You must not compute changes after the event-handler fired."; + return T1(a, l), a.toUint8Array(); +}, UCe = (t) => QCe(t, ATe, wm, Yx), CQ = "You must not compute changes after the event-handler fired."; class JT { constructor(e, r) { this.target = e, this.currentTarget = e, this.transaction = r, this._changes = null, this._keys = null, this._delta = null, this._path = null; } get path() { - return this._path || (this._path = UCe(this.currentTarget, this.target)); + return this._path || (this._path = VCe(this.currentTarget, this.target)); } deletes(e) { return qx(this.transaction.deleteSet, e.id); @@ -17725,7 +17725,7 @@ class JT { if (e === null) { if (this.transaction.doc._transactionCleanups.length === 0) throw Qf(CQ); - const r = this.target, n = D0(), i = D0(), s = []; + const r = this.target, n = P0(), i = P0(), s = []; if (e = { added: n, deleted: i, @@ -17745,7 +17745,7 @@ class JT { return e; } } -const UCe = (t, e) => { +const VCe = (t, e) => { const r = []; for (; e._item !== null && e !== t; ) { if (e._item.parentSub !== null) @@ -17761,21 +17761,21 @@ const UCe = (t, e) => { return r; }, cre = 80; let qD = 0; -class VCe { +class qCe { constructor(e, r) { e.marker = !0, this.p = e, this.index = r, this.timestamp = qD++; } } -const qCe = (t) => { +const YCe = (t) => { t.timestamp = qD++; }, ure = (t, e, r) => { t.p.marker = !1, t.p = e, e.marker = !0, t.index = r, t.timestamp = qD++; -}, YCe = (t, e, r) => { +}, WCe = (t, e, r) => { if (t.length >= cre) { const n = t.reduce((i, s) => i.timestamp < s.timestamp ? i : s); return ure(n, e, r), n; } else { - const n = new VCe(e, r); + const n = new qCe(e, r); return t.push(n), n; } }, eC = (t, e) => { @@ -17783,7 +17783,7 @@ const qCe = (t) => { return null; const r = t._searchMarker.length === 0 ? null : t._searchMarker.reduce((s, a) => c5(e - s.index) < c5(e - a.index) ? s : a); let n = t._start, i = 0; - for (r !== null && (n = r.p, i = r.index, qCe(r)); n.right !== null && i < e; ) { + for (r !== null && (n = r.p, i = r.index, YCe(r)); n.right !== null && i < e; ) { if (!n.deleted && n.countable) { if (e < i + n.length) break; @@ -17795,7 +17795,7 @@ const qCe = (t) => { n = n.left, !n.deleted && n.countable && (i -= n.length); for (; n.left !== null && n.left.id.client === n.id.client && n.left.id.clock + n.left.length === n.id.clock; ) n = n.left, !n.deleted && n.countable && (i -= n.length); - return r !== null && c5(r.index - i) < n.parent.length / cre ? (ure(r, n, i), r) : YCe(t._searchMarker, n, i); + return r !== null && c5(r.index - i) < n.parent.length / cre ? (ure(r, n, i), r) : WCe(t._searchMarker, n, i); }, N2 = (t, e, r) => { for (let n = t.length - 1; n >= 0; n--) { const i = t[n]; @@ -17817,7 +17817,7 @@ const qCe = (t) => { t = t._item.parent; tre(n._eH, r, e); }; -class Ts { +class Cs { constructor() { this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = mQ(), this._dEH = mQ(), this._searchMarker = null; } @@ -17905,7 +17905,7 @@ const hre = (t, e, r) => { return I2(t, (n, i) => { r.push(e(n, i, t)); }), r; -}, WCe = (t) => { +}, GCe = (t) => { let e = t._start, r = null, n = 0; return { [Symbol.iterator]() { @@ -17943,7 +17943,7 @@ const hre = (t, e, r) => { const s = t.doc, a = s.clientID, o = s.store, l = r === null ? e._start : r.right; let u = []; const h = () => { - u.length > 0 && (i = new mn(Cr(a, gi(o, a)), i, i && i.lastId, l, l && l.id, e, null, new I0(u)), i.integrate(t, 0), u = []); + u.length > 0 && (i = new mn(Cr(a, gi(o, a)), i, i && i.lastId, l, l && l.id, e, null, new $0(u)), i.integrate(t, 0), u = []); }; n.forEach((f) => { if (f === null) @@ -17963,11 +17963,11 @@ const hre = (t, e, r) => { case ArrayBuffer: i = new mn(Cr(a, gi(o, a)), i, i && i.lastId, l, l && l.id, e, null, new Wx(new Uint8Array(f))), i.integrate(t, 0); break; - case T1: + case C1: i = new mn(Cr(a, gi(o, a)), i, i && i.lastId, l, l && l.id, e, null, new Gx(f)), i.integrate(t, 0); break; default: - if (f instanceof Ts) + if (f instanceof Cs) i = new mn(Cr(a, gi(o, a)), i, i && i.lastId, l, l && l.id, e, null, new yu(f)), i.integrate(t, 0); else throw new Error("Unexpected content type in insert operation"); @@ -17990,7 +17990,7 @@ const hre = (t, e, r) => { r -= a.length; } return e._searchMarker && N2(e._searchMarker, i, n.length), Bk(t, e, a, n); -}, GCe = (t, e, r) => { +}, XCe = (t, e, r) => { let i = (e._searchMarker || []).reduce((s, a) => a.index > s.index ? a : s, { index: 0, p: e._start }).p; if (i) for (; i.right; ) @@ -18015,7 +18015,7 @@ const hre = (t, e, r) => { const i = e._map.get(r) || null, s = t.doc, a = s.clientID; let o; if (n == null) - o = new I0([n]); + o = new $0([n]); else switch (n.constructor) { case Number: @@ -18023,16 +18023,16 @@ const hre = (t, e, r) => { case Boolean: case Array: case String: - o = new I0([n]); + o = new $0([n]); break; case Uint8Array: o = new Wx(n); break; - case T1: + case C1: o = new Gx(n); break; default: - if (n instanceof Ts) + if (n instanceof Cs) o = new yu(n); else throw new Error("Unexpected content type"); @@ -18049,45 +18049,45 @@ const hre = (t, e, r) => { }, bre = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted; -}, XCe = (t, e) => { +}, HCe = (t, e) => { const r = {}; return t._map.forEach((n, i) => { let s = n; for (; s !== null && (!e.sv.has(s.id.client) || s.id.clock >= (e.sv.get(s.id.client) || 0)); ) s = s.left; - s !== null && og(s, e) && (r[i] = s.content.getContent()[s.length - 1]); + s !== null && lg(s, e) && (r[i] = s.content.getContent()[s.length - 1]); }), r; -}, AO = (t) => lCe(t.entries(), (e) => !e[1].deleted); -class HCe extends JT { +}, AO = (t) => cCe(t.entries(), (e) => !e[1].deleted); +class ZCe extends JT { constructor(e, r) { super(e, r), this._transaction = r; } } -class Ig extends Ts { +class Bg extends Cs { constructor() { super(), this._prelimContent = [], this._searchMarker = []; } static from(e) { - const r = new Ig(); + const r = new Bg(); return r.push(e), r; } _integrate(e, r) { super._integrate(e, r), this.insert(0, this._prelimContent), this._prelimContent = null; } _copy() { - return new Ig(); + return new Bg(); } clone() { - const e = new Ig(); + const e = new Bg(); return e.insert(0, this.toArray().map( - (r) => r instanceof Ts ? r.clone() : r + (r) => r instanceof Cs ? r.clone() : r )), e; } get length() { return this._prelimContent === null ? this._length : this._prelimContent.length; } _callObserver(e, r) { - super._callObserver(e, r), tC(this, e, new HCe(this, e)); + super._callObserver(e, r), tC(this, e, new ZCe(this, e)); } insert(e, r) { this.doc !== null ? gn(this.doc, (n) => { @@ -18096,7 +18096,7 @@ class Ig extends Ts { } push(e) { this.doc !== null ? gn(this.doc, (r) => { - GCe(r, this, e); + XCe(r, this, e); }) : this._prelimContent.push(...e); } unshift(e) { @@ -18117,7 +18117,7 @@ class Ig extends Ts { return hre(this, e, r); } toJSON() { - return this.map((e) => e instanceof Ts ? e.toJSON() : e); + return this.map((e) => e instanceof Cs ? e.toJSON() : e); } map(e) { return dre(this, e); @@ -18126,19 +18126,19 @@ class Ig extends Ts { I2(this, e); } [Symbol.iterator]() { - return WCe(this); + return GCe(this); } _write(e) { - e.writeTypeRef(bEe); + e.writeTypeRef(xEe); } } -const ZCe = (t) => new Ig(); -class jCe extends JT { +const jCe = (t) => new Bg(); +class KCe extends JT { constructor(e, r, n) { super(e, r), this.keysChanged = n; } } -class eh extends Ts { +class eh extends Cs { constructor(e) { super(), this._prelimContent = null, e === void 0 ? this._prelimContent = /* @__PURE__ */ new Map() : this._prelimContent = new Map(e); } @@ -18153,18 +18153,18 @@ class eh extends Ts { clone() { const e = new eh(); return this.forEach((r, n) => { - e.set(n, r instanceof Ts ? r.clone() : r); + e.set(n, r instanceof Cs ? r.clone() : r); }), e; } _callObserver(e, r) { - tC(this, e, new jCe(this, e, r)); + tC(this, e, new KCe(this, e, r)); } toJSON() { const e = {}; return this._map.forEach((r, n) => { if (!r.deleted) { const i = r.content.getContent()[r.length - 1]; - e[n] = i instanceof Ts ? i.toJSON() : i; + e[n] = i instanceof Cs ? i.toJSON() : i; } }), e; } @@ -18212,18 +18212,18 @@ class eh extends Ts { }) : this._prelimContent.clear(); } _write(e) { - e.writeTypeRef(xEe); + e.writeTypeRef(wEe); } } -const KCe = (t) => new eh(), hf = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && ETe(t, e); +const JCe = (t) => new eh(), hf = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && _Te(t, e); class X8 { constructor(e, r, n, i) { this.left = e, this.right = r, this.index = n, this.currentAttributes = i; } forward() { switch (this.right === null && ic(), this.right.content.constructor) { - case Wi: - this.right.deleted || C1(this.currentAttributes, this.right.content); + case Gi: + this.right.deleted || E1(this.currentAttributes, this.right.content); break; default: this.right.deleted || (this.index += this.right.length); @@ -18235,8 +18235,8 @@ class X8 { const EQ = (t, e, r) => { for (; e.right !== null && r > 0; ) { switch (e.right.content.constructor) { - case Wi: - e.right.deleted || C1(e.currentAttributes, e.right.content); + case Gi: + e.right.deleted || E1(e.currentAttributes, e.right.content); break; default: e.right.deleted || (r < e.right.length && Ha(t, Cr(e.right.id.client, e.right.id.clock + r)), e.index += e.right.length, r -= e.right.length); @@ -18255,19 +18255,19 @@ const EQ = (t, e, r) => { return EQ(t, s, r); } }, xre = (t, e, r, n) => { - for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Wi && hf(n.get(r.right.content.key), r.right.content.value)); ) + for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Gi && hf(n.get(r.right.content.key), r.right.content.value)); ) r.right.deleted || n.delete(r.right.content.key), r.forward(); const i = t.doc, s = i.clientID; n.forEach((a, o) => { - const l = r.left, u = r.right, h = new mn(Cr(s, gi(i.store, s)), l, l && l.lastId, u, u && u.id, e, null, new Wi(o, a)); + const l = r.left, u = r.right, h = new mn(Cr(s, gi(i.store, s)), l, l && l.lastId, u, u && u.id, e, null, new Gi(o, a)); h.integrate(t, 0), r.right = h, r.forward(); }); -}, C1 = (t, e) => { +}, E1 = (t, e) => { const { key: r, value: n } = e; n === null ? t.delete(r) : t.set(r, n); }, wre = (t, e) => { for (; t.right !== null; ) { - if (!(t.right.deleted || t.right.content.constructor === Wi && hf(e[t.right.content.key] || null, t.right.content.value))) + if (!(t.right.deleted || t.right.content.constructor === Gi && hf(e[t.right.content.key] || null, t.right.content.value))) break; t.forward(); } @@ -18278,7 +18278,7 @@ const EQ = (t, e, r) => { if (!hf(u, l)) { a.set(o, u); const { left: h, right: f } = r; - r.right = new mn(Cr(s, gi(i.store, s)), h, h && h.lastId, f, f && f.id, e, null, new Wi(o, l)), r.right.integrate(t, 0), r.forward(); + r.right = new mn(Cr(s, gi(i.store, s)), h, h && h.lastId, f, f && f.id, e, null, new Gi(o, l)), r.right.integrate(t, 0), r.forward(); } } return a; @@ -18288,7 +18288,7 @@ const EQ = (t, e, r) => { }); const s = t.doc, a = s.clientID; wre(r, i); - const o = Ore(t, e, r, i), l = n.constructor === String ? new ou(n) : n instanceof Ts ? new yu(n) : new yp(n); + const o = Ore(t, e, r, i), l = n.constructor === String ? new ou(n) : n instanceof Cs ? new yu(n) : new bp(n); let { left: u, right: h, index: f } = r; e._searchMarker && N2(e._searchMarker, r.index, l.getLength()), h = new mn(Cr(a, gi(s.store, a)), u, u && u.lastId, h, h && h.id, e, null, l), h.integrate(t, 0), r.right = h, r.index = f, r.forward(), xre(t, e, r, o); }, _Q = (t, e, r, n, i) => { @@ -18296,10 +18296,10 @@ const EQ = (t, e, r) => { wre(r, i); const o = Ore(t, e, r, i); e: - for (; r.right !== null && (n > 0 || o.size > 0 && (r.right.deleted || r.right.content.constructor === Wi)); ) { + for (; r.right !== null && (n > 0 || o.size > 0 && (r.right.deleted || r.right.content.constructor === Gi)); ) { if (!r.right.deleted) switch (r.right.content.constructor) { - case Wi: { + case Gi: { const { key: l, value: u } = r.right.content, h = i[l]; if (h !== void 0) { if (hf(h, u)) @@ -18332,7 +18332,7 @@ const EQ = (t, e, r) => { let s = e; const a = ql(); for (; s && (!s.countable || s.deleted); ) { - if (!s.deleted && s.content.constructor === Wi) { + if (!s.deleted && s.content.constructor === Gi) { const u = s.content; a.set(u.key, u); } @@ -18343,9 +18343,9 @@ const EQ = (t, e, r) => { if (r === e && (l = !0), !e.deleted) { const u = e.content; switch (u.constructor) { - case Wi: { + case Gi: { const { key: h, value: f } = u, d = n.get(h) || null; - (a.get(h) !== u || d === f) && (e.delete(t), o++, !l && (i.get(h) || null) === f && d !== f && (d === null ? i.delete(h) : i.set(h, d))), !l && !e.deleted && C1(i, u); + (a.get(h) !== u || d === f) && (e.delete(t), o++, !l && (i.get(h) || null) === f && d !== f && (d === null ? i.delete(h) : i.set(h, d))), !l && !e.deleted && E1(i, u); break; } } @@ -18353,18 +18353,18 @@ const EQ = (t, e, r) => { e = e.right; } return o; -}, JCe = (t, e) => { +}, eEe = (t, e) => { for (; e && e.right && (e.right.deleted || !e.right.countable); ) e = e.right; const r = /* @__PURE__ */ new Set(); for (; e && (e.deleted || !e.countable); ) { - if (!e.deleted && e.content.constructor === Wi) { + if (!e.deleted && e.content.constructor === Gi) { const n = e.content.key; r.has(n) ? e.delete(t) : r.add(n); } e = e.left; } -}, eEe = (t) => { +}, tEe = (t) => { let e = 0; return gn(t.doc, (r) => { let n = t._start, i = t._start, s = ql(); @@ -18372,8 +18372,8 @@ const EQ = (t, e, r) => { for (; i; ) { if (i.deleted === !1) switch (i.content.constructor) { - case Wi: - C1(a, i.content); + case Gi: + E1(a, i.content); break; default: e += kre(r, n, i, s, a), s = I8(a), n = i; @@ -18382,23 +18382,23 @@ const EQ = (t, e, r) => { i = i.right; } }), e; -}, tEe = (t) => { +}, rEe = (t) => { const e = /* @__PURE__ */ new Set(), r = t.doc; for (const [n, i] of t.afterState.entries()) { const s = t.beforeState.get(n) || 0; i !== s && are(t, r.store.clients.get(n), s, i, (a) => { - !a.deleted && a.content.constructor === Wi && a.constructor !== Zo && e.add(a.parent); + !a.deleted && a.content.constructor === Gi && a.constructor !== Zo && e.add(a.parent); }); } gn(r, (n) => { - bm(t, t.deleteSet, (i) => { + xm(t, t.deleteSet, (i) => { if (i instanceof Zo || !i.parent._hasFormatting || e.has(i.parent)) return; const s = i.parent; - i.content.constructor === Wi ? e.add(s) : JCe(n, i); + i.content.constructor === Gi ? e.add(s) : eEe(n, i); }); for (const i of e) - eEe(i); + tEe(i); }); }, AQ = (t, e, r) => { const n = r, i = I8(e.currentAttributes), s = e.right; @@ -18406,7 +18406,7 @@ const EQ = (t, e, r) => { if (e.right.deleted === !1) switch (e.right.content.constructor) { case yu: - case yp: + case bp: case ou: r < e.right.length && Ha(t, Cr(e.right.id.client, e.right.id.clock + r)), r -= e.right.length, e.right.delete(t); break; @@ -18417,7 +18417,7 @@ const EQ = (t, e, r) => { const a = (e.left || e.right).parent; return a._searchMarker && N2(a._searchMarker, e.index, -n + r), e; }; -class rEe extends JT { +class nEe extends JT { constructor(e, r, n) { super(e, r), this.childListChanged = !1, this.keysChanged = /* @__PURE__ */ new Set(), n.forEach((i) => { i === null ? this.childListChanged = !0 : this.keysChanged.add(i); @@ -18456,7 +18456,7 @@ class rEe extends JT { }))), u = ""; break; case "retain": - h > 0 && (p = { retain: h }, TTe(l) || (p.attributes = wTe({}, l))), h = 0; + h > 0 && (p = { retain: h }, CTe(l) || (p.attributes = OTe({}, l))), h = 0; break; } p && r.push(p), o = null; @@ -18465,13 +18465,13 @@ class rEe extends JT { for (; a !== null; ) { switch (a.content.constructor) { case yu: - case yp: + case bp: this.adds(a) ? this.deletes(a) || (d(), o = "insert", u = a.content.getContent()[0], d()) : this.deletes(a) ? (o !== "delete" && (d(), o = "delete"), f += 1) : a.deleted || (o !== "retain" && (d(), o = "retain"), h += 1); break; case ou: this.adds(a) ? this.deletes(a) || (o !== "insert" && (d(), o = "insert"), u += a.content.str) : this.deletes(a) ? (o !== "delete" && (d(), o = "delete"), f += a.length) : a.deleted || (o !== "retain" && (d(), o = "retain"), h += a.length); break; - case Wi: { + case Gi: { const { key: p, value: g } = a.content; if (this.adds(a)) { if (!this.deletes(a)) { @@ -18487,7 +18487,7 @@ class rEe extends JT { const m = l[p]; m !== void 0 && (hf(m, g) ? m !== null && a.delete(n) : (o === "retain" && d(), g === null ? delete l[p] : l[p] = g)); } - a.deleted || (o === "insert" && d(), C1(i, a.content)); + a.deleted || (o === "insert" && d(), E1(i, a.content)); break; } } @@ -18505,7 +18505,7 @@ class rEe extends JT { return this._delta; } } -class wm extends Ts { +class Om extends Cs { constructor(e) { super(), this._pending = e !== void 0 ? [() => this.insert(0, e)] : [], this._searchMarker = [], this._hasFormatting = !1; } @@ -18522,15 +18522,15 @@ class wm extends Ts { this._pending = null; } _copy() { - return new wm(); + return new Om(); } clone() { - const e = new wm(); + const e = new Om(); return e.applyDelta(this.toDelta()), e; } _callObserver(e, r) { super._callObserver(e, r); - const n = new rEe(this, e, r); + const n = new nEe(this, e, r); tC(this, e, n), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); } toString() { @@ -18572,15 +18572,15 @@ class wm extends Ts { } const h = () => { for (; l !== null; ) { - if (og(l, e) || r !== void 0 && og(l, r)) + if (lg(l, e) || r !== void 0 && lg(l, r)) switch (l.content.constructor) { case ou: { const f = s.get("ychange"); - e !== void 0 && !og(l, e) ? (f === void 0 || f.user !== l.id.client || f.type !== "removed") && (u(), s.set("ychange", n ? n("removed", l.id) : { type: "removed" })) : r !== void 0 && !og(l, r) ? (f === void 0 || f.user !== l.id.client || f.type !== "added") && (u(), s.set("ychange", n ? n("added", l.id) : { type: "added" })) : f !== void 0 && (u(), s.delete("ychange")), o += l.content.str; + e !== void 0 && !lg(l, e) ? (f === void 0 || f.user !== l.id.client || f.type !== "removed") && (u(), s.set("ychange", n ? n("removed", l.id) : { type: "removed" })) : r !== void 0 && !lg(l, r) ? (f === void 0 || f.user !== l.id.client || f.type !== "added") && (u(), s.set("ychange", n ? n("added", l.id) : { type: "added" })) : f !== void 0 && (u(), s.delete("ychange")), o += l.content.str; break; } case yu: - case yp: { + case bp: { u(); const f = { insert: l.content.getContent()[0] @@ -18594,8 +18594,8 @@ class wm extends Ts { i.push(f); break; } - case Wi: - og(l, e) && (u(), C1(s, l.content)); + case Gi: + lg(l, e) && (u(), E1(s, l.content)); break; } l = l.right; @@ -18658,10 +18658,10 @@ class wm extends Ts { return yre(this); } _write(e) { - e.writeTypeRef(wEe); + e.writeTypeRef(OEe); } } -const nEe = (t) => new wm(); +const iEe = (t) => new Om(); class X_ { constructor(e, r = () => !0) { this._filter = r, this._root = e, this._currentNode = e._start, this._firstCall = !0; @@ -18673,7 +18673,7 @@ class X_ { let e = this._currentNode, r = e && e.content && e.content.type; if (e !== null && (!this._firstCall || e.deleted || !this._filter(r))) do - if (r = e.content.type, !e.deleted && (r.constructor === $2 || r.constructor === N0) && r._start !== null) + if (r = e.content.type, !e.deleted && (r.constructor === $2 || r.constructor === I0) && r._start !== null) e = r._start; else for (; e !== null; ) @@ -18686,7 +18686,7 @@ class X_ { return this._firstCall = !1, e === null ? { value: void 0, done: !0 } : (this._currentNode = e, { value: e.content.type, done: !1 }); } } -class N0 extends Ts { +class I0 extends Cs { constructor() { super(), this._prelimContent = []; } @@ -18698,11 +18698,11 @@ class N0 extends Ts { super._integrate(e, r), this.insert(0, this._prelimContent), this._prelimContent = null; } _copy() { - return new N0(); + return new I0(); } clone() { - const e = new N0(); - return e.insert(0, this.toArray().map((r) => r instanceof Ts ? r.clone() : r)), e; + const e = new I0(); + return e.insert(0, this.toArray().map((r) => r instanceof Cs ? r.clone() : r)), e; } get length() { return this._prelimContent === null ? this._length : this._prelimContent.length; @@ -18719,7 +18719,7 @@ class N0 extends Ts { return e = e.toUpperCase(), zf(new X_(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); } _callObserver(e, r) { - tC(this, e, new aEe(this, r, e)); + tC(this, e, new oEe(this, r, e)); } toString() { return dre(this, (e) => e.toString()).join(""); @@ -18741,7 +18741,7 @@ class N0 extends Ts { insertAfter(e, r) { if (this.doc !== null) gn(this.doc, (n) => { - const i = e && e instanceof Ts ? e._item : e; + const i = e && e instanceof Cs ? e._item : e; Bk(n, this, i, r); }); else { @@ -18775,11 +18775,11 @@ class N0 extends Ts { I2(this, e); } _write(e) { - e.writeTypeRef(kEe); + e.writeTypeRef(SEe); } } -const iEe = (t) => new N0(); -class $2 extends N0 { +const sEe = (t) => new I0(); +class $2 extends I0 { constructor(e = "UNDEFINED") { super(), this.nodeName = e, this._prelimAttrs = /* @__PURE__ */ new Map(); } @@ -18801,9 +18801,9 @@ class $2 extends N0 { } clone() { const e = new $2(this.nodeName), r = this.getAttributes(); - return kTe(r, (n, i) => { + return STe(r, (n, i) => { typeof n == "string" && e.setAttribute(i, n); - }), e.insert(0, this.toArray().map((n) => n instanceof Ts ? n.clone() : n)), e; + }), e.insert(0, this.toArray().map((n) => n instanceof Cs ? n.clone() : n)), e; } toString() { const e = this.getAttributes(), r = [], n = []; @@ -18835,7 +18835,7 @@ class $2 extends N0 { return bre(this, e); } getAttributes(e) { - return e ? XCe(this, e) : yre(this); + return e ? HCe(this, e) : yre(this); } toDOM(e = document, r = {}, n) { const i = e.createElement(this.nodeName), s = this.getAttributes(); @@ -18848,11 +18848,11 @@ class $2 extends N0 { }), n !== void 0 && n._createAssociation(i, this), i; } _write(e) { - e.writeTypeRef(OEe), e.writeKey(this.nodeName); + e.writeTypeRef(kEe), e.writeKey(this.nodeName); } } -const sEe = (t) => new $2(t.readKey()); -class aEe extends JT { +const aEe = (t) => new $2(t.readKey()); +class oEe extends JT { constructor(e, r, n) { super(e, n), this.childListChanged = !1, this.attributesChanged = /* @__PURE__ */ new Set(), r.forEach((i) => { i === null ? this.childListChanged = !0 : this.attributesChanged.add(i); @@ -18878,11 +18878,11 @@ class zk extends eh { return i !== void 0 ? s = i.createDom(this) : s = document.createElement(this.hookName), s.setAttribute("data-yjs-hook", this.hookName), n !== void 0 && n._createAssociation(s, this), s; } _write(e) { - e.writeTypeRef(SEe), e.writeKey(this.hookName); + e.writeTypeRef(TEe), e.writeKey(this.hookName); } } -const oEe = (t) => new zk(t.readKey()); -class Qk extends wm { +const lEe = (t) => new zk(t.readKey()); +class Qk extends Om { get nextSibling() { const e = this._item ? this._item.next : null; return e ? e.content.type : null; @@ -18932,10 +18932,10 @@ class Qk extends wm { return this.toString(); } _write(e) { - e.writeTypeRef(TEe); + e.writeTypeRef(CEe); } } -const lEe = (t) => new Qk(); +const cEe = (t) => new Qk(); class GD { constructor(e, r) { this.id = e, this.length = r; @@ -18953,7 +18953,7 @@ class GD { throw Jc(); } } -const cEe = 0; +const uEe = 0; class Zo extends GD { get deleted() { return !0; @@ -18967,7 +18967,7 @@ class Zo extends GD { r > 0 && (this.id.clock += r, this.length -= r), sre(e.doc.store, this); } write(e, r) { - e.writeInfo(cEe), e.writeLen(this.length - r); + e.writeInfo(uEe), e.writeLen(this.length - r); } getMissing(e, r) { return null; @@ -19008,7 +19008,7 @@ class Wx { return 3; } } -const uEe = (t) => new Wx(t.readBuf()); +const hEe = (t) => new Wx(t.readBuf()); class B2 { constructor(e) { this.len = e; @@ -19046,7 +19046,7 @@ class B2 { return 1; } } -const hEe = (t) => new B2(t.readLen()), Sre = (t, e) => new T1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); +const fEe = (t) => new B2(t.readLen()), Sre = (t, e) => new C1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); class Gx { constructor(e) { e._item && console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."), this.doc = e; @@ -19086,8 +19086,8 @@ class Gx { return 9; } } -const fEe = (t) => new Gx(Sre(t.readString(), t.readAny())); -class yp { +const dEe = (t) => new Gx(Sre(t.readString(), t.readAny())); +class bp { constructor(e) { this.embed = e; } @@ -19101,7 +19101,7 @@ class yp { return !0; } copy() { - return new yp(this.embed); + return new bp(this.embed); } splice(e) { throw Jc(); @@ -19122,8 +19122,8 @@ class yp { return 5; } } -const dEe = (t) => new yp(t.readJSON()); -class Wi { +const pEe = (t) => new bp(t.readJSON()); +class Gi { constructor(e, r) { this.key = e, this.value = r; } @@ -19137,7 +19137,7 @@ class Wi { return !1; } copy() { - return new Wi(this.key, this.value); + return new Gi(this.key, this.value); } splice(e) { throw Jc(); @@ -19160,7 +19160,7 @@ class Wi { return 6; } } -const pEe = (t) => new Wi(t.readKey(), t.readJSON()); +const gEe = (t) => new Gi(t.readKey(), t.readJSON()); class Uk { constructor(e) { this.arr = e; @@ -19202,7 +19202,7 @@ class Uk { return 2; } } -const gEe = (t) => { +const mEe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) { const i = t.readString(); @@ -19210,7 +19210,7 @@ const gEe = (t) => { } return new Uk(r); }; -class I0 { +class $0 { constructor(e) { this.arr = e; } @@ -19224,10 +19224,10 @@ class I0 { return !0; } copy() { - return new I0(this.arr); + return new $0(this.arr); } splice(e) { - const r = new I0(this.arr.slice(e)); + const r = new $0(this.arr.slice(e)); return this.arr = this.arr.slice(0, e), r; } mergeWith(e) { @@ -19251,11 +19251,11 @@ class I0 { return 8; } } -const mEe = (t) => { +const vEe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) r.push(t.readAny()); - return new I0(r); + return new $0(r); }; class ou { constructor(e) { @@ -19295,15 +19295,15 @@ class ou { return 4; } } -const vEe = (t) => new ou(t.readString()), yEe = [ - ZCe, - KCe, - nEe, - sEe, +const yEe = (t) => new ou(t.readString()), bEe = [ + jCe, + JCe, iEe, - oEe, - lEe -], bEe = 0, xEe = 1, wEe = 2, OEe = 3, kEe = 4, SEe = 5, TEe = 6; + aEe, + sEe, + lEe, + cEe +], xEe = 0, wEe = 1, OEe = 2, kEe = 3, SEe = 4, TEe = 5, CEe = 6; class yu { constructor(e) { this.type = e; @@ -19353,7 +19353,7 @@ class yu { return 7; } } -const CEe = (t) => new yu(yEe[t.readTypeRef()](t)), H8 = (t, e) => { +const EEe = (t) => new yu(bEe[t.readTypeRef()](t)), H8 = (t, e) => { let r = e, n = 0, i; do n > 0 && (r = Cr(r.client, r.clock + n)), i = f5(t, r), n = r.clock - i.id.clock, r = i.redone; @@ -19377,7 +19377,7 @@ const CEe = (t) => new yu(yEe[t.readTypeRef()](t)), H8 = (t, e) => { e.content.splice(r) ); return e.deleted && s.markDeleted(), e.keep && (s.keep = !0), e.redone !== null && (s.redone = Cr(e.redone.client, e.redone.clock + r)), e.right = s, s.right !== null && (s.right.left = s), t._mergeStructs.push(s), s.parentSub !== null && s.right === null && s.parent._map.set(s.parentSub, s), e.length = r, s; -}, LQ = (t, e) => FSe(t, (r) => qx(r.deletions, e)), Tre = (t, e, r, n, i, s) => { +}, LQ = (t, e) => zSe(t, (r) => qx(r.deletions, e)), Tre = (t, e, r, n, i, s) => { const a = t.doc, o = a.store, l = a.clientID, u = e.redone; if (u !== null) return Ha(t, u); @@ -19463,13 +19463,13 @@ class mn extends GD { return this.origin.client; if (this.rightOrigin && this.rightOrigin.client !== this.id.client && this.rightOrigin.clock >= gi(r, this.rightOrigin.client)) return this.rightOrigin.client; - if (this.parent && this.parent.constructor === Ng && this.id.client !== this.parent.client && this.parent.clock >= gi(r, this.parent.client)) + if (this.parent && this.parent.constructor === $g && this.id.client !== this.parent.client && this.parent.clock >= gi(r, this.parent.client)) return this.parent.client; if (this.origin && (this.left = wQ(e, r, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Ha(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Zo || this.right && this.right.constructor === Zo) this.parent = null; else if (!this.parent) this.left && this.left.constructor === mn && (this.parent = this.left.parent, this.parentSub = this.left.parentSub), this.right && this.right.constructor === mn && (this.parent = this.right.parent, this.parentSub = this.right.parentSub); - else if (this.parent.constructor === Ng) { + else if (this.parent.constructor === $g) { const n = f5(r, this.parent); n.constructor === Zo ? this.parent = null : this.parent = n.content.type; } @@ -19488,10 +19488,10 @@ class mn extends GD { i = this.parent._start; const s = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(); for (; i !== null && i !== this.right; ) { - if (a.add(i), s.add(i), mg(this.origin, i.origin)) { + if (a.add(i), s.add(i), yg(this.origin, i.origin)) { if (i.id.client < this.id.client) n = i, s.clear(); - else if (mg(this.rightOrigin, i.rightOrigin)) + else if (yg(this.rightOrigin, i.rightOrigin)) break; } else if (i.origin !== null && a.has(f5(e.doc.store, i.origin))) s.has(f5(e.doc.store, i.origin)) || (n = i, s.clear()); @@ -19533,7 +19533,7 @@ class mn extends GD { return this.length === 1 ? this.id : Cr(this.id.client, this.id.clock + this.length - 1); } mergeWith(e) { - if (this.constructor === e.constructor && mg(e.origin, this.lastId) && this.right === e && mg(this.rightOrigin, e.rightOrigin) && this.id.client === e.id.client && this.id.clock + this.length === e.id.clock && this.deleted === e.deleted && this.redone === null && e.redone === null && this.content.constructor === e.content.constructor && this.content.mergeWith(e.content)) { + if (this.constructor === e.constructor && yg(e.origin, this.lastId) && this.right === e && yg(this.rightOrigin, e.rightOrigin) && this.id.client === e.id.client && this.id.clock + this.length === e.id.clock && this.deleted === e.deleted && this.redone === null && e.redone === null && this.content.constructor === e.content.constructor && this.content.mergeWith(e.content)) { const r = this.parent._searchMarker; return r && r.forEach((n) => { n.p === e && (n.p = this, !this.deleted && this.countable && (n.index -= this.length)); @@ -19550,7 +19550,7 @@ class mn extends GD { gc(e, r) { if (!this.deleted) throw ic(); - this.content.gc(e), r ? RCe(e, this, new Zo(this.id, this.length)) : this.content = new B2(this.length); + this.content.gc(e), r ? MCe(e, this, new Zo(this.id, this.length)) : this.content = new B2(this.length); } write(e, r) { const n = r > 0 ? Cr(this.id.client, this.id.clock + r - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, a = this.content.getRef() & HT | (n === null ? 0 : _o) | (i === null ? 0 : Ju) | (s === null ? 0 : A2); @@ -19564,29 +19564,29 @@ class mn extends GD { } else e.writeParentInfo(!1), e.writeLeftID(l.id); } else - o.constructor === String ? (e.writeParentInfo(!0), e.writeString(o)) : o.constructor === Ng ? (e.writeParentInfo(!1), e.writeLeftID(o)) : ic(); + o.constructor === String ? (e.writeParentInfo(!0), e.writeString(o)) : o.constructor === $g ? (e.writeParentInfo(!1), e.writeLeftID(o)) : ic(); s !== null && e.writeString(s); } this.content.write(e, r); } } -const Cre = (t, e) => EEe[e & HT](t), EEe = [ +const Cre = (t, e) => _Ee[e & HT](t), _Ee = [ () => { ic(); }, + fEe, + mEe, hEe, + yEe, + pEe, gEe, - uEe, + EEe, vEe, dEe, - pEe, - CEe, - mEe, - fEe, () => { ic(); } -], _Ee = 10; +], AEe = 10; class jo extends GD { get deleted() { return !0; @@ -19600,7 +19600,7 @@ class jo extends GD { ic(); } write(e, r) { - e.writeInfo(_Ee), rr(e.restEncoder, this.length - r); + e.writeInfo(AEe), rr(e.restEncoder, this.length - r); } getMissing(e, r) { return null; @@ -19623,7 +19623,7 @@ class HD { return new HD(P2(e.yanchor), P2(e.yhead)); } } -class AEe { +class LEe { constructor(e, r) { this.ytext = e, this.awareness = r, this.undoManager = new zD(e); } @@ -19653,7 +19653,7 @@ const Xx = $t.define({ return t[t.length - 1]; } }), Z8 = co.define(); -class LEe { +class REe { constructor(e) { this.view = e, this.conf = e.state.facet(Xx), this._observer = (r, n) => { if (n.origin !== this.conf) { @@ -19684,7 +19684,7 @@ class LEe { this._ytext.unobserve(this._observer); } } -const REe = hn.fromClass(LEe), MEe = kt.baseTheme({ +const MEe = hn.fromClass(REe), DEe = kt.baseTheme({ ".cm-ySelection": {}, ".cm-yLineSelection": { padding: 0, @@ -19738,8 +19738,8 @@ const REe = hn.fromClass(LEe), MEe = kt.baseTheme({ opacity: 1, transitionDelay: "0s" } -}), DEe = co.define(); -class PEe extends uo { +}), PEe = co.define(); +class NEe extends uo { constructor(e, r) { super(), this.color = e, this.name = r; } @@ -19774,10 +19774,10 @@ class PEe extends uo { return !0; } } -class NEe { +class IEe { constructor(e) { this.conf = e.state.facet(Xx), this._listener = ({ added: r, updated: n, removed: i }, s, a) => { - r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [DEe.of([])] }); + r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [PEe.of([])] }); }, this._awareness = this.conf.awareness, this._awareness.on("change", this._listener), this.decorations = $r.of([]); } destroy() { @@ -19848,15 +19848,15 @@ class NEe { value: It.widget({ side: f.index - h.index > 0 ? -1 : 1, block: !1, - widget: new PEe(d, p) + widget: new NEe(d, p) }) }); }), this.decorations = It.set(s, !0); } } -const IEe = hn.fromClass(NEe, { +const $Ee = hn.fromClass(IEe, { decorations: (t) => t.decorations -}), $Ee = () => { +}), BEe = () => { let t = !0; return (e, r) => { if (t) { @@ -19870,7 +19870,7 @@ const IEe = hn.fromClass(NEe, { r !== void 0 && r(); }; }; -class BEe { +class FEe { constructor(e) { this.undoManager = e; } @@ -19892,9 +19892,9 @@ const rC = $t.define({ return t[t.length - 1]; } }); -class FEe { +class zEe { constructor(e) { - this.view = e, this.conf = e.state.facet(rC), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(Xx), this._beforeChangeSelection = null, this._mux = $Ee(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { + this.view = e, this.conf = e.state.facet(rC), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(Xx), this._beforeChangeSelection = null, this._mux = BEe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { n.has(this.syncConf.ytext) && this._beforeChangeSelection && !r.meta.has(this) && r.meta.set(this, this._beforeChangeSelection); }, this._onStackItemPopped = ({ stackItem: r }) => { const n = r.meta.get(this); @@ -19913,20 +19913,20 @@ class FEe { this._undoManager.off("stack-item-added", this._onStackItemAdded), this._undoManager.off("stack-item-popped", this._onStackItemPopped), this._undoManager.removeTrackedOrigin(this.syncConf); } } -const zEe = hn.fromClass(FEe), QEe = ({ state: t, dispatch: e }) => t.facet(rC).undo() || !0, UEe = ({ state: t, dispatch: e }) => t.facet(rC).redo() || !0, VEe = (t, e, { undoManager: r = new zD(t) } = {}) => { - const n = new AEe(t, e), i = [ +const QEe = hn.fromClass(zEe), UEe = ({ state: t, dispatch: e }) => t.facet(rC).undo() || !0, VEe = ({ state: t, dispatch: e }) => t.facet(rC).redo() || !0, qEe = (t, e, { undoManager: r = new zD(t) } = {}) => { + const n = new LEe(t, e), i = [ Xx.of(n), - REe + MEe ]; return e && i.push( - MEe, - IEe + DEe, + $Ee ), r !== !1 && i.push( - rC.of(new BEe(r)), - zEe, + rC.of(new FEe(r)), + QEe, kt.domEventHandlers({ beforeinput(s, a) { - return s.inputType === "historyUndo" ? QEe(a) : s.inputType === "historyRedo" ? UEe(a) : !1; + return s.inputType === "historyUndo" ? UEe(a) : s.inputType === "historyRedo" ? VEe(a) : !1; } }) ), i; @@ -19945,7 +19945,7 @@ class qk { toTree(e, r = this.end) { let n = this.children.length - 1; return n >= 0 && (r = Math.max(r, this.positions[n] + this.children[n].length + this.from)), new nn(e.types[this.type], this.children, this.positions, r - this.from).balance({ - makeTree: (i, s, a) => new nn(Yi.none, i, s, a, this.hashProp) + makeTree: (i, s, a) => new nn(Wi.none, i, s, a, this.hashProp) }); } } @@ -19953,12 +19953,12 @@ var Tt; (function(t) { t[t.Document = 1] = "Document", t[t.CodeBlock = 2] = "CodeBlock", t[t.FencedCode = 3] = "FencedCode", t[t.Blockquote = 4] = "Blockquote", t[t.HorizontalRule = 5] = "HorizontalRule", t[t.BulletList = 6] = "BulletList", t[t.OrderedList = 7] = "OrderedList", t[t.ListItem = 8] = "ListItem", t[t.ATXHeading1 = 9] = "ATXHeading1", t[t.ATXHeading2 = 10] = "ATXHeading2", t[t.ATXHeading3 = 11] = "ATXHeading3", t[t.ATXHeading4 = 12] = "ATXHeading4", t[t.ATXHeading5 = 13] = "ATXHeading5", t[t.ATXHeading6 = 14] = "ATXHeading6", t[t.SetextHeading1 = 15] = "SetextHeading1", t[t.SetextHeading2 = 16] = "SetextHeading2", t[t.HTMLBlock = 17] = "HTMLBlock", t[t.LinkReference = 18] = "LinkReference", t[t.Paragraph = 19] = "Paragraph", t[t.CommentBlock = 20] = "CommentBlock", t[t.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", t[t.Escape = 22] = "Escape", t[t.Entity = 23] = "Entity", t[t.HardBreak = 24] = "HardBreak", t[t.Emphasis = 25] = "Emphasis", t[t.StrongEmphasis = 26] = "StrongEmphasis", t[t.Link = 27] = "Link", t[t.Image = 28] = "Image", t[t.InlineCode = 29] = "InlineCode", t[t.HTMLTag = 30] = "HTMLTag", t[t.Comment = 31] = "Comment", t[t.ProcessingInstruction = 32] = "ProcessingInstruction", t[t.URL = 33] = "URL", t[t.HeaderMark = 34] = "HeaderMark", t[t.QuoteMark = 35] = "QuoteMark", t[t.ListMark = 36] = "ListMark", t[t.LinkMark = 37] = "LinkMark", t[t.EmphasisMark = 38] = "EmphasisMark", t[t.CodeMark = 39] = "CodeMark", t[t.CodeText = 40] = "CodeText", t[t.CodeInfo = 41] = "CodeInfo", t[t.LinkTitle = 42] = "LinkTitle", t[t.LinkLabel = 43] = "LinkLabel"; })(Tt || (Tt = {})); -class qEe { +class YEe { constructor(e, r) { this.start = e, this.content = r, this.marks = [], this.parsers = []; } } -class YEe { +class WEe { constructor() { this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1; } @@ -20252,7 +20252,7 @@ const RO = { }, SetextHeading: void 0 }; -class WEe { +class GEe { constructor(e) { this.stage = 0, this.elts = [], this.pos = 0, this.start = e.start, this.advance(e.content); } @@ -20310,7 +20310,7 @@ function H_(t, e) { } return e; } -class GEe { +class XEe { nextLine(e, r, n) { let i = r.depth < e.stack.length ? -1 : Pre(r), s = r.next; if (i < 0) @@ -20325,14 +20325,14 @@ class GEe { return !1; } } -const XEe = { +const HEe = { LinkReference(t, e) { - return e.content.charCodeAt(0) == 91 ? new WEe(e) : null; + return e.content.charCodeAt(0) == 91 ? new GEe(e) : null; }, SetextHeading() { - return new GEe(); + return new XEe(); } -}, HEe = [ +}, ZEe = [ (t, e) => Dre(e) >= 0, (t, e) => Lre(e) >= 0, (t, e) => Rre(e) >= 0, @@ -20340,10 +20340,10 @@ const XEe = { (t, e) => KD(e, t, !0) >= 0, (t, e) => ZD(e, t, !0) >= 0, (t, e) => $re(e, t, !0) >= 0 -], ZEe = { text: "", end: 0 }; -class jEe { +], jEe = { text: "", end: 0 }; +class KEe { constructor(e, r, n, i) { - this.parser = e, this.input = r, this.ranges = i, this.line = new YEe(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = i[i.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = i[0].from, this.block = qk.create(Tt.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new t_e(n, r) : null, this.readLine(); + this.parser = e, this.input = r, this.ranges = i, this.line = new WEe(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = i[i.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = i[0].from, this.block = qk.create(Tt.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new r_e(n, r) : null, this.readLine(); } get parsedPos() { return this.absoluteLineStart; @@ -20384,7 +20384,7 @@ class jEe { } break; } - let r = new qEe(this.lineStart + e.pos, e.text.slice(e.pos)); + let r = new YEe(this.lineStart + e.pos, e.text.slice(e.pos)); for (let n of this.parser.leafBlockParsers) if (n) { let i = n(this, r); @@ -20432,7 +20432,7 @@ class jEe { this.rangeI++, this.absoluteLineStart = Math.max(this.absoluteLineStart, this.ranges[this.rangeI].from); } scanLine(e) { - let r = ZEe; + let r = jEe; if (r.end = e, e >= this.to) r.text = ""; else if (r.text = this.lineChunkAt(e), r.end += r.text.length, this.ranges.length > 1) { @@ -20478,7 +20478,7 @@ class jEe { this.startContext(this.parser.getNodeType(e), r, n); } addNode(e, r, n) { - typeof e == "number" && (e = new nn(this.parser.nodeSet.types[e], Om, Om, (n != null ? n : this.prevLineEnd()) - r)), this.block.addChild(e, r - this.block.from); + typeof e == "number" && (e = new nn(this.parser.nodeSet.types[e], km, km, (n != null ? n : this.prevLineEnd()) - r)), this.block.addChild(e, r - this.block.from); } addElement(e) { this.block.addChild(e.toTree(this.parser.nodeSet), e.from - this.block.from); @@ -20534,7 +20534,7 @@ class nC extends aD { this.nodeTypes[h.name] = h.id; } createParse(e, r, n) { - let i = new jEe(this, e, r, n); + let i = new KEe(this, e, r, n); for (let s of this.wrappers) i = s(i, e, r, n); return i; @@ -20544,7 +20544,7 @@ class nC extends aD { if (!r) return this; let { nodeSet: n, skipContextMarkup: i } = this, s = this.blockParsers.slice(), a = this.leafBlockParsers.slice(), o = this.blockNames.slice(), l = this.inlineParsers.slice(), u = this.inlineNames.slice(), h = this.endLeafBlock.slice(), f = this.wrappers; - if (xv(r.defineNodes)) { + if (wv(r.defineNodes)) { i = Object.assign({}, i); let d = n.types.slice(), p; for (let g of r.defineNodes) { @@ -20553,7 +20553,7 @@ class nC extends aD { continue; y && (i[d.length] = (S, C, T) => y(C, T, S.value)); let w = d.length, O = y ? ["Block", "BlockContext"] : v ? w >= Tt.ATXHeading1 && w <= Tt.SetextHeading2 ? ["Block", "LeafBlock", "Heading"] : ["Block", "LeafBlock"] : void 0; - d.push(Yi.define({ + d.push(Wi.define({ id: w, name: m, props: O && [[yr.group, O]] @@ -20561,12 +20561,12 @@ class nC extends aD { } n = new Bx(d), p && (n = n.extend(fd(p))); } - if (xv(r.props) && (n = n.extend(...r.props)), xv(r.remove)) + if (wv(r.props) && (n = n.extend(...r.props)), wv(r.remove)) for (let d of r.remove) { let p = this.blockNames.indexOf(d), g = this.inlineNames.indexOf(d); p > -1 && (s[p] = a[p] = void 0), g > -1 && (l[g] = void 0); } - if (xv(r.parseBlock)) + if (wv(r.parseBlock)) for (let d of r.parseBlock) { let p = o.indexOf(d.name); if (p > -1) @@ -20577,7 +20577,7 @@ class nC extends aD { } d.endLeaf && h.push(d.endLeaf); } - if (xv(r.parseInline)) + if (wv(r.parseInline)) for (let d of r.parseInline) { let p = u.indexOf(d.name); if (p > -1) @@ -20596,7 +20596,7 @@ class nC extends aD { return r; } parseInline(e, r) { - let n = new JEe(this, e, r); + let n = new e_e(this, e, r); e: for (let i = r; i < n.end; ) { let s = n.char(i); @@ -20613,7 +20613,7 @@ class nC extends aD { return n.resolveMarkers(0); } } -function xv(t) { +function wv(t) { return t != null && t.length > 0; } function J8(t) { @@ -20627,7 +20627,7 @@ function J8(t) { let r = J8(t.slice(1)); if (!r || !e) return e || r; - let n = (a, o) => (a || Om).concat(o || Om), i = e.wrap, s = r.wrap; + let n = (a, o) => (a || km).concat(o || km), i = e.wrap, s = r.wrap; return { props: n(e.props, r.props), defineNodes: n(e.defineNodes, r.defineNodes), @@ -20643,15 +20643,15 @@ function MO(t, e) { throw new RangeError(`Position specified relative to unknown parser ${e}`); return r; } -let Fre = [Yi.none]; +let Fre = [Wi.none]; for (let t = 1, e; e = Tt[t]; t++) - Fre[t] = Yi.define({ + Fre[t] = Wi.define({ id: t, name: e, props: t >= Tt.Escape ? [] : [[yr.group, t in Are ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]], top: e == "Document" }); -const Om = []; +const km = []; class zre { constructor(e) { this.nodeSet = e, this.content = [], this.nodes = []; @@ -20675,7 +20675,7 @@ class zre { } } class F2 { - constructor(e, r, n, i = Om) { + constructor(e, r, n, i = km) { this.type = e, this.from = r, this.to = n, this.children = i; } writeTo(e, r) { @@ -20697,7 +20697,7 @@ class Qre { return this.tree.type.id; } get children() { - return Om; + return km; } writeTo(e, r) { e.nodes.push(this.tree), e.content.push(e.nodes.length - 1, this.from + r, this.to + r, -1); @@ -20709,7 +20709,7 @@ class Qre { function Xr(t, e, r, n) { return new F2(t, e, r, n); } -const Ure = { resolve: "Emphasis", mark: "EmphasisMark" }, Vre = { resolve: "Emphasis", mark: "EmphasisMark" }, wv = {}, PQ = {}; +const Ure = { resolve: "Emphasis", mark: "EmphasisMark" }, Vre = { resolve: "Emphasis", mark: "EmphasisMark" }, Ov = {}, PQ = {}; class $l { constructor(e, r, n, i) { this.type = e, this.from = r, this.to = n, this.side = i; @@ -20792,7 +20792,7 @@ const Z_ = { return -1; }, Link(t, e, r) { - return e == 91 ? t.append(new $l(wv, r, r + 1, 1)) : -1; + return e == 91 ? t.append(new $l(Ov, r, r + 1, 1)) : -1; }, Image(t, e, r) { return e == 33 && t.char(r + 1) == 91 ? t.append(new $l(PQ, r, r + 2, 1)) : -1; @@ -20802,14 +20802,14 @@ const Z_ = { return -1; for (let n = t.parts.length - 1; n >= 0; n--) { let i = t.parts[n]; - if (i instanceof $l && (i.type == wv || i.type == PQ)) { + if (i instanceof $l && (i.type == Ov || i.type == PQ)) { if (!i.side || t.skipSpace(i.to) == r && !/[(\[]/.test(t.slice(r + 1, r + 2))) return t.parts[n] = null, -1; - let s = t.takeContent(n), a = t.parts[n] = KEe(t, s, i.type == wv ? Tt.Link : Tt.Image, i.from, r + 1); - if (i.type == wv) + let s = t.takeContent(n), a = t.parts[n] = JEe(t, s, i.type == Ov ? Tt.Link : Tt.Image, i.from, r + 1); + if (i.type == Ov) for (let o = 0; o < n; o++) { let l = t.parts[o]; - l instanceof $l && l.type == wv && (l.side = 0); + l instanceof $l && l.type == Ov && (l.side = 0); } return a.to; } @@ -20817,7 +20817,7 @@ const Z_ = { return -1; } }; -function KEe(t, e, r, n, i) { +function JEe(t, e, r, n, i) { let { text: s } = t, a = t.char(i), o = i; if (e.unshift(Xr(Tt.LinkMark, n, n + (r == Tt.Image ? 2 : 1))), e.push(Xr(Tt.LinkMark, i - 1, i)), a == 40) { let l = t.skipSpace(i + 1), u = qre(s, l - t.offset, t.offset), h; @@ -20890,7 +20890,7 @@ function Wre(t, e, r, n) { } return null; } -class JEe { +class e_e { constructor(e, r, n) { this.parser = e, this.text = r, this.offset = n, this.parts = []; } @@ -20982,8 +20982,8 @@ function e9(t, e) { } return r; } -const e_e = [Tt.CodeBlock, Tt.ListItem, Tt.OrderedList, Tt.BulletList]; -class t_e { +const t_e = [Tt.CodeBlock, Tt.ListItem, Tt.OrderedList, Tt.BulletList]; +class r_e { constructor(e, r) { this.fragments = e, this.input = r, this.i = 0, this.fragment = null, this.fragmentEnd = -1, this.cursor = null, e.length && (this.fragment = e[this.i++]); } @@ -21034,7 +21034,7 @@ class t_e { let f = new nn(e.parser.nodeSet.types[Tt.Paragraph], [], [], 0, e.block.hashProp); e.reusePlaceholders.set(f, r.tree), e.addNode(f, h); } - if (r.type.is("Block") && (e_e.indexOf(r.type.id) < 0 ? (a = r.to - n, o = e.block.children.length) : (a = l, o = u, l = r.to - n, u = e.block.children.length)), !r.nextSibling()) + if (r.type.is("Block") && (t_e.indexOf(r.type.id) < 0 ? (a = r.to - n, o = e.block.children.length) : (a = l, o = u, l = r.to - n, u = e.block.children.length)), !r.nextSibling()) break; } for (; e.block.children.length > o; ) @@ -21050,7 +21050,7 @@ function Gre(t, e) { } return r; } -const r_e = fd({ +const n_e = fd({ "Blockquote/...": Se.quote, HorizontalRule: Se.contentSeparator, "ATXHeading1/... SetextHeading1/...": Se.heading1, @@ -21073,8 +21073,8 @@ const r_e = fd({ "CodeInfo LinkLabel": Se.labelName, LinkTitle: Se.string, Paragraph: Se.content -}), n_e = new nC(new Bx(Fre).extend(r_e), Object.keys(RO).map((t) => RO[t]), Object.keys(RO).map((t) => XEe[t]), Object.keys(RO), HEe, Are, Object.keys(Z_).map((t) => Z_[t]), Object.keys(Z_), []); -function i_e(t, e, r) { +}), i_e = new nC(new Bx(Fre).extend(n_e), Object.keys(RO).map((t) => RO[t]), Object.keys(RO).map((t) => HEe[t]), Object.keys(RO), ZEe, Are, Object.keys(Z_).map((t) => Z_[t]), Object.keys(Z_), []); +function s_e(t, e, r) { let n = []; for (let i = t.firstChild, s = e; ; i = i.nextSibling) { let a = i ? i.from : r; @@ -21084,7 +21084,7 @@ function i_e(t, e, r) { } return n; } -function s_e(t) { +function a_e(t) { let { codeParser: e, htmlParser: r } = t; return { wrap: eee((i, s) => { let a = i.type.id; @@ -21098,11 +21098,11 @@ function s_e(t) { if (l) return { parser: l, overlay: (u) => u.type.id == Tt.CodeText }; } else if (r && (a == Tt.HTMLBlock || a == Tt.HTMLTag)) - return { parser: r, overlay: i_e(i.node, i.from, i.to) }; + return { parser: r, overlay: s_e(i.node, i.from, i.to) }; return null; }) }; } -const a_e = { resolve: "Strikethrough", mark: "StrikethroughMark" }, o_e = { +const o_e = { resolve: "Strikethrough", mark: "StrikethroughMark" }, l_e = { defineNodes: [{ name: "Strikethrough", style: { "Strikethrough/...": Se.strikethrough } @@ -21116,7 +21116,7 @@ const a_e = { resolve: "Strikethrough", mark: "StrikethroughMark" }, o_e = { if (e != 126 || t.char(r + 1) != 126 || t.char(r + 2) == 126) return -1; let n = t.slice(r - 1, r), i = t.slice(r + 2, r + 3), s = /\s|^$/.test(n), a = /\s|^$/.test(i), o = z2.test(n), l = z2.test(i); - return t.addDelimiter(a_e, r, r + 2, !a && (!l || s || o), !s && (!o || a || l)); + return t.addDelimiter(o_e, r, r + 2, !a && (!l || s || o), !s && (!o || a || l)); }, after: "Emphasis" }] @@ -21166,7 +21166,7 @@ class $Q { return this.rows ? (e.addLeafElement(r, e.elt("Table", r.start, r.start + r.content.length, this.rows)), !0) : !1; } } -const l_e = { +const c_e = { defineNodes: [ { name: "Table", block: !0 }, { name: "TableHeader", style: { "TableHeader/...": Se.heading } }, @@ -21188,7 +21188,7 @@ const l_e = { before: "SetextHeading" }] }; -class c_e { +class u_e { nextLine() { return !1; } @@ -21199,7 +21199,7 @@ class c_e { ])), !0; } } -const u_e = { +const h_e = { defineNodes: [ { name: "Task", block: !0, style: Se.list }, { name: "TaskMarker", style: Se.atom } @@ -21207,21 +21207,21 @@ const u_e = { parseBlock: [{ name: "TaskList", leaf(t, e) { - return /^\[[ xX]\][ \t]/.test(e.content) && t.parentType().name == "ListItem" ? new c_e() : null; + return /^\[[ xX]\][ \t]/.test(e.content) && t.parentType().name == "ListItem" ? new u_e() : null; }, after: "SetextHeading" }] -}, BQ = /(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy, FQ = /[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy, h_e = /[\w-]+\.[\w-]+($|\/)/, zQ = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, QQ = /\/[a-zA-Z\d@.]+/gy; +}, BQ = /(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy, FQ = /[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy, f_e = /[\w-]+\.[\w-]+($|\/)/, zQ = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, QQ = /\/[a-zA-Z\d@.]+/gy; function UQ(t, e, r, n) { let i = 0; for (let s = e; s < r; s++) t[s] == n && i++; return i; } -function f_e(t, e) { +function d_e(t, e) { FQ.lastIndex = e; let r = FQ.exec(t); - if (!r || h_e.exec(r[0])[0].indexOf("_") > -1) + if (!r || f_e.exec(r[0])[0].indexOf("_") > -1) return -1; let n = e + r[0].length; for (; ; ) { @@ -21243,17 +21243,17 @@ function VQ(t, e) { let n = r[0][r[0].length - 1]; return n == "_" || n == "-" ? -1 : e + r[0].length - (n == "." ? 1 : 0); } -const d_e = { +const p_e = { parseInline: [{ name: "Autolink", parse(t, e, r) { let n = r - t.offset; BQ.lastIndex = n; let i = BQ.exec(t.text), s = -1; - return !i || (i[1] || i[2] ? s = f_e(t.text, n + i[0].length) : i[3] ? s = VQ(t.text, n) : (s = VQ(t.text, n + i[0].length), s > -1 && i[0] == "xmpp:" && (QQ.lastIndex = s, i = QQ.exec(t.text), i && (s = i.index + i[0].length))), s < 0) ? -1 : (t.addElement(t.elt("URL", r, s + t.offset)), s + t.offset); + return !i || (i[1] || i[2] ? s = d_e(t.text, n + i[0].length) : i[3] ? s = VQ(t.text, n) : (s = VQ(t.text, n + i[0].length), s > -1 && i[0] == "xmpp:" && (QQ.lastIndex = s, i = QQ.exec(t.text), i && (s = i.index + i[0].length))), s < 0) ? -1 : (t.addElement(t.elt("URL", r, s + t.offset)), s + t.offset); } }] -}, p_e = [l_e, u_e, o_e, d_e]; +}, g_e = [c_e, h_e, l_e, p_e]; function Hre(t, e, r) { return (n, i, s) => { if (i != t || n.char(s + 1) == t) @@ -21269,7 +21269,7 @@ function Hre(t, e, r) { return -1; }; } -const g_e = { +const m_e = { defineNodes: [ { name: "Superscript", style: Se.special(Se.content) }, { name: "SuperscriptMark", style: Se.processingInstruction } @@ -21278,7 +21278,7 @@ const g_e = { name: "Superscript", parse: Hre(94, "Superscript", "SuperscriptMark") }] -}, m_e = { +}, v_e = { defineNodes: [ { name: "Subscript", style: Se.special(Se.content) }, { name: "SubscriptMark", style: Se.processingInstruction } @@ -21287,7 +21287,7 @@ const g_e = { name: "Subscript", parse: Hre(126, "Subscript", "SubscriptMark") }] -}, v_e = { +}, y_e = { defineNodes: [{ name: "Emoji", style: Se.character }], parseInline: [{ name: "Emoji", @@ -21402,7 +21402,7 @@ class Yk { n && this.storeNode(e, this.pos, r, 4), this.storeNode(0, this.pos, r, n ? 8 : 4), this.pos = this.reducePos = r, this.score -= 190; } canShift(e) { - for (let r = new y_e(this); ; ) { + for (let r = new b_e(this); ; ) { let n = this.p.parser.stateSlot(r.state, 4) || this.p.parser.hasAction(r.state, e); if (n == 0) return !1; @@ -21536,7 +21536,7 @@ class qQ { this.tracker = e, this.context = r, this.hash = e.strict ? e.hash(r) : 0; } } -class y_e { +class b_e { constructor(e) { this.start = e, this.state = e.state, this.stack = e.stack, this.base = this.stack.length; } @@ -21577,7 +21577,7 @@ class Wk { return new Wk(this.stack, this.pos, this.index); } } -function sy(t, e = Uint16Array) { +function ay(t, e = Uint16Array) { if (typeof t != "string") return t; let r = null; @@ -21605,7 +21605,7 @@ class p5 { } } const YQ = new p5(); -class b_e { +class x_e { constructor(e, r) { this.input = e, this.ranges = r, this.chunk = "", this.chunkOff = 0, this.chunk2 = "", this.chunk2Pos = 0, this.next = -1, this.token = YQ, this.rangeIndex = 0, this.pos = this.chunkPos = r[0].from, this.range = r[0], this.end = r[r.length - 1].to, this.readNext(); } @@ -21713,7 +21713,7 @@ class b_e { return n; } } -class $g { +class Fg { constructor(e, r) { this.data = e, this.id = r; } @@ -21722,10 +21722,10 @@ class $g { Zre(this.data, e, r, this.id, n.data, n.tokenPrecTable); } } -$g.prototype.contextual = $g.prototype.fallback = $g.prototype.extend = !1; +Fg.prototype.contextual = Fg.prototype.fallback = Fg.prototype.extend = !1; class Gk { constructor(e, r, n) { - this.precTable = r, this.elseToken = n, this.data = typeof e == "string" ? sy(e) : e; + this.precTable = r, this.elseToken = n, this.data = typeof e == "string" ? ay(e) : e; } token(e, r) { let n = e.pos, i = 0; @@ -21742,7 +21742,7 @@ class Gk { i && (e.reset(n, e.token), e.acceptToken(this.elseToken, i)); } } -Gk.prototype.contextual = $g.prototype.fallback = $g.prototype.extend = !1; +Gk.prototype.contextual = Fg.prototype.fallback = Fg.prototype.extend = !1; class Pa { constructor(e, r = {}) { this.token = e, this.contextual = !!r.contextual, this.fallback = !!r.fallback, this.extend = !!r.extend; @@ -21756,7 +21756,7 @@ function Zre(t, e, r, n, i, s) { for (let p = a + 3; p < u; p += 2) if ((t[p + 1] & o) > 0) { let g = t[p]; - if (l.allows(g) && (e.token.value == -1 || e.token.value == g || x_e(g, e.token.value, i, s))) { + if (l.allows(g) && (e.token.value == -1 || e.token.value == g || w_e(g, e.token.value, i, s))) { e.acceptToken(g); break; } @@ -21786,7 +21786,7 @@ function WQ(t, e, r) { return n - e; return -1; } -function x_e(t, e, r, n) { +function w_e(t, e, r, n) { let i = WQ(r, n, e); return i < 0 || WQ(r, n, t) < i; } @@ -21805,7 +21805,7 @@ function GQ(t, e, r) { return r < 0 ? 0 : t.length; } } -class w_e { +class O_e { constructor(e, r) { this.fragments = e, this.nodeSet = r, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment(); } @@ -21854,7 +21854,7 @@ class w_e { } } } -class O_e { +class k_e { constructor(e, r) { this.stream = r, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((n) => new p5()); } @@ -21917,11 +21917,11 @@ class O_e { return i; } } -class k_e { +class S_e { constructor(e, r, n, i) { - this.parser = e, this.input = r, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new b_e(r, i), this.tokens = new O_e(e, this.stream), this.topTerm = e.top[1]; + this.parser = e, this.input = r, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new x_e(r, i), this.tokens = new k_e(e, this.stream), this.topTerm = e.top[1]; let { from: s } = i[0]; - this.stacks = [Yk.start(this, e.top[0], s)], this.fragments = n.length && this.stream.end - s > e.bufferLength * 4 ? new w_e(n, e.nodeSet) : null; + this.stacks = [Yk.start(this, e.top[0], s)], this.fragments = n.length && this.stream.end - s > e.bufferLength * 4 ? new O_e(n, e.nodeSet) : null; } get parsedPos() { return this.minStackPos; @@ -21952,7 +21952,7 @@ class k_e { } } if (!n.length) { - let a = i && T_e(i); + let a = i && C_e(i); if (a) return vo && console.log("Finish with " + this.stackID(a)), this.stackToTree(a); if (this.parser.strict) @@ -22082,7 +22082,7 @@ function XQ(t, e) { } e.push(t); } -class S_e { +class T_e { constructor(e, r, n) { this.source = e, this.flags = r, this.disabled = n; } @@ -22126,7 +22126,7 @@ class Vf extends aD { } } } - this.nodeSet = new Bx(r.map((o, l) => Yi.define({ + this.nodeSet = new Bx(r.map((o, l) => Wi.define({ name: l >= this.minRepeatTerm ? void 0 : o, id: l, props: i[l], @@ -22134,14 +22134,14 @@ class Vf extends aD { error: l == 0, skipped: e.skippedNodes && e.skippedNodes.indexOf(l) > -1 }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = HJ; - let a = sy(e.tokenData); + let a = ay(e.tokenData); this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length); for (let o = 0; o < this.specializerSpecs.length; o++) this.specialized[o] = this.specializerSpecs[o].term; - this.specializers = this.specializerSpecs.map(HQ), this.states = sy(e.states, Uint32Array), this.data = sy(e.stateData), this.goto = sy(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((o) => typeof o == "number" ? new $g(a, o) : o), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]]; + this.specializers = this.specializerSpecs.map(HQ), this.states = ay(e.states, Uint32Array), this.data = ay(e.stateData), this.goto = ay(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((o) => typeof o == "number" ? new Fg(a, o) : o), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]]; } createParse(e, r, n) { - let i = new k_e(this, e, r, n); + let i = new S_e(this, e, r, n); for (let s of this.wrappers) i = s(i, e, r, n); return i; @@ -22261,7 +22261,7 @@ class Vf extends aD { if (!n[s]) for (let a = this.dialects[r[s]], o; (o = this.data[a++]) != 65535; ) (i || (i = new Uint8Array(this.maxTerm + 1)))[o] = 1; - return new S_e(e, n, i); + return new T_e(e, n, i); } static deserialize(e) { return new Vf(e); @@ -22270,7 +22270,7 @@ class Vf extends aD { function Fu(t, e) { return t[e] | t[e + 1] << 16; } -function T_e(t) { +function C_e(t) { let e = null; for (let r of t) { let n = r.p.stoppedAt; @@ -22285,7 +22285,7 @@ function HQ(t) { } return t.get; } -const C_e = 54, E_e = 1, __e = 55, A_e = 2, L_e = 56, R_e = 3, ZQ = 4, M_e = 5, Xk = 6, jre = 7, Kre = 8, Jre = 9, ene = 10, D_e = 11, P_e = 12, N_e = 13, J_ = 57, I_e = 14, jQ = 58, tne = 20, $_e = 22, rne = 23, B_e = 24, t9 = 26, nne = 27, F_e = 28, z_e = 31, Q_e = 34, U_e = 36, V_e = 37, q_e = 0, Y_e = 1, W_e = { +const E_e = 54, __e = 1, A_e = 55, L_e = 2, R_e = 56, M_e = 3, ZQ = 4, D_e = 5, Xk = 6, jre = 7, Kre = 8, Jre = 9, ene = 10, P_e = 11, N_e = 12, I_e = 13, J_ = 57, $_e = 14, jQ = 58, tne = 20, B_e = 22, rne = 23, F_e = 24, t9 = 26, nne = 27, z_e = 28, Q_e = 31, U_e = 34, V_e = 36, q_e = 37, Y_e = 0, W_e = 1, G_e = { area: !0, base: !0, br: !0, @@ -22304,7 +22304,7 @@ const C_e = 54, E_e = 1, __e = 55, A_e = 2, L_e = 56, R_e = 3, ZQ = 4, M_e = 5, track: !0, wbr: !0, menuitem: !0 -}, G_e = { +}, X_e = { dd: !0, li: !0, optgroup: !0, @@ -22361,7 +22361,7 @@ const C_e = 54, E_e = 1, __e = 55, A_e = 2, L_e = 56, R_e = 3, ZQ = 4, M_e = 5, thead: { tbody: !0, tfoot: !0 }, tr: { tr: !0 } }; -function X_e(t) { +function H_e(t) { return t == 45 || t == 46 || t == 58 || t >= 65 && t <= 90 || t == 95 || t >= 97 && t <= 122 || t >= 161; } function ine(t) { @@ -22376,33 +22376,33 @@ function r9(t, e) { for (; ine(n); ) n = t.peek(++e); let i = ""; - for (; X_e(n); ) + for (; H_e(n); ) i += String.fromCharCode(n), n = t.peek(++e); - return eU = t, tU = r, JQ = i ? i.toLowerCase() : n == H_e || n == Z_e ? void 0 : null; + return eU = t, tU = r, JQ = i ? i.toLowerCase() : n == Z_e || n == j_e ? void 0 : null; } -const sne = 60, Hk = 62, eP = 47, H_e = 63, Z_e = 33, j_e = 45; +const sne = 60, Hk = 62, eP = 47, Z_e = 63, j_e = 33, K_e = 45; function rU(t, e) { this.name = t, this.parent = e, this.hash = e ? e.hash : 0; for (let r = 0; r < t.length; r++) this.hash += (this.hash << 4) + t.charCodeAt(r) + (t.charCodeAt(r) << 8); } -const K_e = [Xk, ene, jre, Kre, Jre], J_e = new JD({ +const J_e = [Xk, ene, jre, Kre, Jre], e6e = new JD({ start: null, shift(t, e, r, n) { - return K_e.indexOf(e) > -1 ? new rU(r9(n, 1) || "", t) : t; + return J_e.indexOf(e) > -1 ? new rU(r9(n, 1) || "", t) : t; }, reduce(t, e) { return e == tne && t ? t.parent : t; }, reuse(t, e, r, n) { let i = e.type.id; - return i == Xk || i == U_e ? new rU(r9(n, 1) || "", t) : t; + return i == Xk || i == V_e ? new rU(r9(n, 1) || "", t) : t; }, hash(t) { return t ? t.hash : 0; }, strict: !1 -}), e6e = new Pa((t, e) => { +}), t6e = new Pa((t, e) => { if (t.next != sne) { t.next < 0 && e.context && t.acceptToken(J_); return; @@ -22414,19 +22414,19 @@ const K_e = [Xk, ene, jre, Kre, Jre], J_e = new JD({ if (n === void 0) return; if (!n) - return t.acceptToken(r ? I_e : Xk); + return t.acceptToken(r ? $_e : Xk); let i = e.context ? e.context.name : null; if (r) { if (n == i) - return t.acceptToken(D_e); - if (i && G_e[i]) - return t.acceptToken(J_, -2); - if (e.dialectEnabled(q_e)) return t.acceptToken(P_e); + if (i && X_e[i]) + return t.acceptToken(J_, -2); + if (e.dialectEnabled(Y_e)) + return t.acceptToken(N_e); for (let s = e.context; s; s = s.parent) if (s.name == n) return; - t.acceptToken(N_e); + t.acceptToken(I_e); } else { if (n == "script") return t.acceptToken(jre); @@ -22434,17 +22434,17 @@ const K_e = [Xk, ene, jre, Kre, Jre], J_e = new JD({ return t.acceptToken(Kre); if (n == "textarea") return t.acceptToken(Jre); - if (W_e.hasOwnProperty(n)) + if (G_e.hasOwnProperty(n)) return t.acceptToken(ene); i && KQ[i] && KQ[i][n] ? t.acceptToken(J_, -1) : t.acceptToken(Xk); } -}, { contextual: !0 }), t6e = new Pa((t) => { +}, { contextual: !0 }), r6e = new Pa((t) => { for (let e = 0, r = 0; ; r++) { if (t.next < 0) { r && t.acceptToken(jQ); break; } - if (t.next == j_e) + if (t.next == K_e) e++; else if (t.next == Hk && e >= 2) { r >= 3 && t.acceptToken(jQ, -2); @@ -22454,16 +22454,16 @@ const K_e = [Xk, ene, jre, Kre, Jre], J_e = new JD({ t.advance(); } }); -function r6e(t) { +function n6e(t) { for (; t; t = t.parent) if (t.name == "svg" || t.name == "math") return !0; return !1; } -const n6e = new Pa((t, e) => { +const i6e = new Pa((t, e) => { if (t.next == eP && t.peek(1) == Hk) { - let r = e.dialectEnabled(Y_e) || r6e(e.context); - t.acceptToken(r ? M_e : ZQ, 2); + let r = e.dialectEnabled(W_e) || n6e(e.context); + t.acceptToken(r ? D_e : ZQ, 2); } else t.next == Hk && t.acceptToken(ZQ, 1); }); @@ -22491,7 +22491,7 @@ function tP(t, e, r) { } }); } -const i6e = tP("script", C_e, E_e), s6e = tP("style", __e, A_e), a6e = tP("textarea", L_e, R_e), o6e = fd({ +const s6e = tP("script", E_e, __e), a6e = tP("style", A_e, L_e), o6e = tP("textarea", R_e, M_e), l6e = fd({ "Text RawText": Se.content, "StartTag StartCloseTag SelfClosingEndTag EndTag": Se.angleBracket, TagName: Se.tagName, @@ -22503,24 +22503,24 @@ const i6e = tP("script", C_e, E_e), s6e = tP("style", __e, A_e), a6e = tP("texta Comment: Se.blockComment, ProcessingInst: Se.processingInstruction, DoctypeDecl: Se.documentMeta -}), l6e = Vf.deserialize({ +}), c6e = Vf.deserialize({ version: 14, states: ",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z", stateData: "+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~", goto: "%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp", nodeNames: "\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl", maxTerm: 67, - context: J_e, + context: e6e, nodeProps: [ ["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4, 21, 30, 33, 36, "CloseTag"], ["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4, 29, 32, 35, 37, "OpenTag"], ["group", -9, 14, 17, 18, 19, 20, 39, 40, 41, 42, "Entity", 16, "Entity TextContent", -3, 28, 31, 34, "TextContent Entity"] ], - propSources: [o6e], + propSources: [l6e], skippedNodes: [0], repeatNodeCount: 9, tokenData: "!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V! { let u = o.type.id; - if (u == F_e) - return e6(o, l, r); if (u == z_e) - return e6(o, l, n); + return e6(o, l, r); if (u == Q_e) + return e6(o, l, n); + if (u == U_e) return e6(o, l, i); if (u == tne && s.length) { let h = o.node, f = h.firstChild, d = f && nU(f, l), p; if (d) { for (let g of s) if (g.tag == d && (!g.attrs || g.attrs(p || (p = ane(h, l))))) { - let m = h.lastChild, v = m.type.id == V_e ? m.from : h.to; + let m = h.lastChild, v = m.type.id == q_e ? m.from : h.to; if (v > f.to) return { parser: g.parser, overlay: [{ from: f.to, to: v }] }; } @@ -22591,7 +22591,7 @@ function one(t = [], e = []) { return null; }); } -const c6e = 96, iU = 1, u6e = 97, h6e = 98, sU = 2, lne = [ +const u6e = 96, iU = 1, h6e = 97, f6e = 98, sU = 2, lne = [ 9, 10, 11, @@ -22617,41 +22617,41 @@ const c6e = 96, iU = 1, u6e = 97, h6e = 98, sU = 2, lne = [ 8239, 8287, 12288 -], f6e = 58, d6e = 40, cne = 95, p6e = 91, g5 = 45, g6e = 46, m6e = 35, v6e = 37, y6e = 38, b6e = 92, x6e = 10; +], d6e = 58, p6e = 40, cne = 95, g6e = 91, g5 = 45, m6e = 46, v6e = 35, y6e = 37, b6e = 38, x6e = 92, w6e = 10; function Zk(t) { return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 161; } -function w6e(t) { +function O6e(t) { return t >= 48 && t <= 57; } -const O6e = new Pa((t, e) => { +const k6e = new Pa((t, e) => { for (let r = !1, n = 0, i = 0; ; i++) { let { next: s } = t; - if (Zk(s) || s == g5 || s == cne || r && w6e(s)) + if (Zk(s) || s == g5 || s == cne || r && O6e(s)) !r && (s != g5 || i > 0) && (r = !0), n === i && s == g5 && n++, t.advance(); - else if (s == b6e && t.peek(1) != x6e) + else if (s == x6e && t.peek(1) != w6e) t.advance(), t.next > -1 && t.advance(), r = !0; else { - r && t.acceptToken(s == d6e ? u6e : n == 2 && e.canShift(sU) ? sU : h6e); + r && t.acceptToken(s == p6e ? h6e : n == 2 && e.canShift(sU) ? sU : f6e); break; } } -}), k6e = new Pa((t) => { +}), S6e = new Pa((t) => { if (lne.includes(t.peek(-1))) { let { next: e } = t; - (Zk(e) || e == cne || e == m6e || e == g6e || e == p6e || e == f6e || e == g5 || e == y6e) && t.acceptToken(c6e); + (Zk(e) || e == cne || e == v6e || e == m6e || e == g6e || e == d6e || e == g5 || e == b6e) && t.acceptToken(u6e); } -}), S6e = new Pa((t) => { +}), T6e = new Pa((t) => { if (!lne.includes(t.peek(-1))) { let { next: e } = t; - if (e == v6e && (t.advance(), t.acceptToken(iU)), Zk(e)) { + if (e == y6e && (t.advance(), t.acceptToken(iU)), Zk(e)) { do t.advance(); while (Zk(t.next)); t.acceptToken(iU); } } -}), T6e = fd({ +}), C6e = fd({ "AtKeyword import charset namespace keyframes media supports": Se.definitionKeyword, "from to selector": Se.keyword, NamespaceName: Se.namespace, @@ -22684,7 +22684,7 @@ const O6e = new Pa((t, e) => { "( )": Se.paren, "[ ]": Se.squareBracket, "{ }": Se.brace -}), C6e = { __proto__: null, lang: 32, "nth-child": 32, "nth-last-child": 32, "nth-of-type": 32, "nth-last-of-type": 32, dir: 32, "host-context": 32, url: 60, "url-prefix": 60, domain: 60, regexp: 60, selector: 134 }, E6e = { __proto__: null, "@import": 114, "@media": 138, "@charset": 142, "@namespace": 146, "@keyframes": 152, "@supports": 164 }, _6e = { __proto__: null, not: 128, only: 128 }, A6e = Vf.deserialize({ +}), E6e = { __proto__: null, lang: 32, "nth-child": 32, "nth-last-child": 32, "nth-of-type": 32, "nth-last-of-type": 32, dir: 32, "host-context": 32, url: 60, "url-prefix": 60, domain: 60, regexp: 60, selector: 134 }, _6e = { __proto__: null, "@import": 114, "@media": 138, "@charset": 142, "@namespace": 146, "@keyframes": 152, "@supports": 164 }, A6e = { __proto__: null, not: 128, only: 128 }, L6e = Vf.deserialize({ version: 14, states: "9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO< { ["openedBy", 17, "(", 48, "{"], ["closedBy", 18, ")", 49, "}"] ], - propSources: [T6e], + propSources: [C6e], skippedNodes: [0, 3, 85], repeatNodeCount: 10, tokenData: "J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#W~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#W~o`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUo`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Uo`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUo`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Uo`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUo`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Uo`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUo`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Uo`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!V[o`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYtQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYo`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYo`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYf[o`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYf[o`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYo`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYf[o`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYo`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSf[o`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QSzSo`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSb^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOa~n9{UUQjWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWjW!PQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}", - tokenizers: [k6e, S6e, O6e, 1, 2, 3, 4, new Gk("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~", 28, 102)], + tokenizers: [S6e, T6e, k6e, 1, 2, 3, 4, new Gk("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~", 28, 102)], topRules: { StyleSheet: [0, 4], Styles: [1, 84] }, - specialized: [{ term: 97, get: (t) => C6e[t] || -1 }, { term: 56, get: (t) => E6e[t] || -1 }, { term: 98, get: (t) => _6e[t] || -1 }], + specialized: [{ term: 97, get: (t) => E6e[t] || -1 }, { term: 56, get: (t) => _6e[t] || -1 }, { term: 98, get: (t) => A6e[t] || -1 }], tokenPrec: 1169 }); let t6 = null; @@ -23341,7 +23341,7 @@ const aU = /* @__PURE__ */ [ "whitesmoke", "yellow", "yellowgreen" -].map((t) => ({ type: "constant", label: t }))), L6e = /* @__PURE__ */ [ +].map((t) => ({ type: "constant", label: t }))), R6e = /* @__PURE__ */ [ "a", "abbr", "address", @@ -23420,16 +23420,16 @@ const aU = /* @__PURE__ */ [ "tr", "u", "ul" -].map((t) => ({ type: "type", label: t })), Qh = /^(\w[\w-]*|-\w[\w-]*|)$/, R6e = /^-(-[\w-]*)?$/; -function M6e(t, e) { +].map((t) => ({ type: "type", label: t })), Qh = /^(\w[\w-]*|-\w[\w-]*|)$/, M6e = /^-(-[\w-]*)?$/; +function D6e(t, e) { var r; if ((t.name == "(" || t.type.isError) && (t = t.parent || t), t.name != "ArgList") return !1; let n = (r = t.parent) === null || r === void 0 ? void 0 : r.firstChild; return (n == null ? void 0 : n.name) != "Callee" ? !1 : e.sliceString(n.from, n.to) == "var"; } -const lU = /* @__PURE__ */ new JJ(), D6e = ["Declaration"]; -function P6e(t) { +const lU = /* @__PURE__ */ new JJ(), P6e = ["Declaration"]; +function N6e(t) { for (let e = t; ; ) { if (e.type.isTop) return e; @@ -23453,14 +23453,14 @@ function une(t, e, r) { let n = [], i = /* @__PURE__ */ new Set(); return e.cursor().iterate((s) => { var a; - if (r(s) && s.matchContext(D6e) && ((a = s.node.nextSibling) === null || a === void 0 ? void 0 : a.name) == ":") { + if (r(s) && s.matchContext(P6e) && ((a = s.node.nextSibling) === null || a === void 0 ? void 0 : a.name) == ":") { let o = t.sliceString(s.from, s.to); i.has(o) || (i.add(o), n.push({ label: o, type: "variable" })); } }), n; } } -const N6e = (t) => (e) => { +const I6e = (t) => (e) => { let { state: r, pos: n } = e, i = Cn(r).resolveInner(n, -1), s = i.type.isError && i.from == i.to - 1 && r.doc.sliceString(i.from, i.to) == "-"; if (i.name == "PropertyName" || (s || i.name == "TagName") && /^(Block|Styles)$/.test(i.resolve(i.to).name)) return { from: i.from, options: r6(), validFor: Qh }; @@ -23468,30 +23468,30 @@ const N6e = (t) => (e) => { return { from: i.from, options: oU, validFor: Qh }; if (i.name == "PseudoClassName") return { from: i.from, options: aU, validFor: Qh }; - if (t(i) || (e.explicit || s) && M6e(i, r.doc)) + if (t(i) || (e.explicit || s) && D6e(i, r.doc)) return { from: t(i) || s ? i.from : n, - options: une(r.doc, P6e(i), t), - validFor: R6e + options: une(r.doc, N6e(i), t), + validFor: M6e }; if (i.name == "TagName") { for (let { parent: l } = i; l; l = l.parent) if (l.name == "Block") return { from: i.from, options: r6(), validFor: Qh }; - return { from: i.from, options: L6e, validFor: Qh }; + return { from: i.from, options: R6e, validFor: Qh }; } if (!e.explicit) return null; let a = i.resolve(n), o = a.childBefore(n); return o && o.name == ":" && a.name == "PseudoClassSelector" ? { from: n, options: aU, validFor: Qh } : o && o.name == ":" && a.name == "Declaration" || a.name == "ArgList" ? { from: n, options: oU, validFor: Qh } : a.name == "Block" || a.name == "Styles" ? { from: n, options: r6(), validFor: Qh } : null; -}, I6e = /* @__PURE__ */ N6e((t) => t.name == "VariableName"), jk = /* @__PURE__ */ $f.define({ +}, $6e = /* @__PURE__ */ I6e((t) => t.name == "VariableName"), jk = /* @__PURE__ */ $f.define({ name: "css", - parser: /* @__PURE__ */ A6e.configure({ + parser: /* @__PURE__ */ L6e.configure({ props: [ - /* @__PURE__ */ b1.add({ + /* @__PURE__ */ x1.add({ Declaration: /* @__PURE__ */ l5() }), - /* @__PURE__ */ mp.add({ + /* @__PURE__ */ vp.add({ "Block KeyframeList": hD }) ] @@ -23502,10 +23502,10 @@ const N6e = (t) => (e) => { wordChars: "-" } }); -function $6e() { - return new pm(jk, jk.data.of({ autocomplete: I6e })); +function B6e() { + return new gm(jk, jk.data.of({ autocomplete: $6e })); } -const B6e = 309, cU = 1, F6e = 2, z6e = 3, Q6e = 310, U6e = 312, V6e = 313, q6e = 4, Y6e = 5, W6e = 0, n9 = [ +const F6e = 309, cU = 1, z6e = 2, Q6e = 3, U6e = 310, V6e = 312, q6e = 313, Y6e = 4, W6e = 5, G6e = 0, n9 = [ 9, 10, 11, @@ -23531,31 +23531,31 @@ const B6e = 309, cU = 1, F6e = 2, z6e = 3, Q6e = 310, U6e = 312, V6e = 313, q6e 8239, 8287, 12288 -], hne = 125, G6e = 59, i9 = 47, X6e = 42, H6e = 43, Z6e = 45, j6e = 60, K6e = 44, J6e = new JD({ +], hne = 125, X6e = 59, i9 = 47, H6e = 42, Z6e = 43, j6e = 45, K6e = 60, J6e = 44, eAe = new JD({ start: !1, shift(t, e) { - return e == q6e || e == Y6e || e == U6e ? t : e == V6e; + return e == Y6e || e == W6e || e == V6e ? t : e == q6e; }, strict: !1 -}), eAe = new Pa((t, e) => { +}), tAe = new Pa((t, e) => { let { next: r } = t; - (r == hne || r == -1 || e.context) && t.acceptToken(Q6e); -}, { contextual: !0, fallback: !0 }), tAe = new Pa((t, e) => { + (r == hne || r == -1 || e.context) && t.acceptToken(U6e); +}, { contextual: !0, fallback: !0 }), rAe = new Pa((t, e) => { let { next: r } = t, n; - n9.indexOf(r) > -1 || r == i9 && ((n = t.peek(1)) == i9 || n == X6e) || r != hne && r != G6e && r != -1 && !e.context && t.acceptToken(B6e); -}, { contextual: !0 }), rAe = new Pa((t, e) => { + n9.indexOf(r) > -1 || r == i9 && ((n = t.peek(1)) == i9 || n == H6e) || r != hne && r != X6e && r != -1 && !e.context && t.acceptToken(F6e); +}, { contextual: !0 }), nAe = new Pa((t, e) => { let { next: r } = t; - if ((r == H6e || r == Z6e) && (t.advance(), r == t.next)) { + if ((r == Z6e || r == j6e) && (t.advance(), r == t.next)) { t.advance(); let n = !e.context && e.canShift(cU); - t.acceptToken(n ? cU : F6e); + t.acceptToken(n ? cU : z6e); } }, { contextual: !0 }); function n6(t, e) { return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t == 95 || t >= 192 || !e && t >= 48 && t <= 57; } -const nAe = new Pa((t, e) => { - if (t.next != j6e || !e.dialectEnabled(W6e) || (t.advance(), t.next == i9)) +const iAe = new Pa((t, e) => { + if (t.next != K6e || !e.dialectEnabled(G6e) || (t.advance(), t.next == i9)) return; let r = 0; for (; n9.indexOf(t.next) > -1; ) @@ -23565,7 +23565,7 @@ const nAe = new Pa((t, e) => { t.advance(), r++; for (; n9.indexOf(t.next) > -1; ) t.advance(), r++; - if (t.next == K6e) + if (t.next == J6e) return; for (let n = 0; ; n++) { if (n == 7) { @@ -23578,8 +23578,8 @@ const nAe = new Pa((t, e) => { t.advance(), r++; } } - t.acceptToken(z6e, -r); -}), iAe = fd({ + t.acceptToken(Q6e, -r); +}), sAe = fd({ "get set async static": Se.modifier, "for while do if else switch try catch finally return throw break continue default case": Se.controlKeyword, "in of await yield void typeof delete instanceof": Se.operatorKeyword, @@ -23635,28 +23635,28 @@ const nAe = new Pa((t, e) => { "JSXIdentifier JSXNameSpacedName": Se.tagName, "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": Se.attributeName, "JSXBuiltin/JSXIdentifier": Se.standard(Se.tagName) -}), sAe = { __proto__: null, export: 18, as: 23, from: 31, default: 34, async: 39, function: 40, extends: 52, this: 56, true: 64, false: 64, null: 76, void: 80, typeof: 84, super: 102, new: 136, delete: 152, yield: 161, await: 165, class: 170, public: 227, private: 227, protected: 227, readonly: 229, instanceof: 248, satisfies: 251, in: 252, const: 254, import: 286, keyof: 339, unique: 343, infer: 349, is: 385, abstract: 405, implements: 407, type: 409, let: 412, var: 414, using: 417, interface: 423, enum: 427, namespace: 433, module: 435, declare: 439, global: 443, for: 462, of: 471, while: 474, with: 478, do: 482, if: 486, else: 488, switch: 492, case: 498, try: 504, catch: 508, finally: 512, return: 516, throw: 520, break: 524, continue: 528, debugger: 532 }, aAe = { __proto__: null, async: 123, get: 125, set: 127, declare: 187, public: 189, private: 189, protected: 189, static: 191, abstract: 193, override: 195, readonly: 201, accessor: 203, new: 389 }, oAe = { __proto__: null, "<": 143 }, lAe = Vf.deserialize({ +}), aAe = { __proto__: null, export: 18, as: 23, from: 31, default: 34, async: 39, function: 40, extends: 52, this: 56, true: 64, false: 64, null: 76, void: 80, typeof: 84, super: 102, new: 136, delete: 152, yield: 161, await: 165, class: 170, public: 227, private: 227, protected: 227, readonly: 229, instanceof: 248, satisfies: 251, in: 252, const: 254, import: 286, keyof: 339, unique: 343, infer: 349, is: 385, abstract: 405, implements: 407, type: 409, let: 412, var: 414, using: 417, interface: 423, enum: 427, namespace: 433, module: 435, declare: 439, global: 443, for: 462, of: 471, while: 474, with: 478, do: 482, if: 486, else: 488, switch: 492, case: 498, try: 504, catch: 508, finally: 512, return: 516, throw: 520, break: 524, continue: 528, debugger: 532 }, oAe = { __proto__: null, async: 123, get: 125, set: 127, declare: 187, public: 189, private: 189, protected: 189, static: 191, abstract: 193, override: 195, readonly: 201, accessor: 203, new: 389 }, lAe = { __proto__: null, "<": 143 }, cAe = Vf.deserialize({ version: 14, states: "$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EpQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-EkQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&gQWO<}AN>}O%[Q^OAN?ZOOQO<eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem", maxTerm: 371, - context: J6e, + context: eAe, nodeProps: [ ["group", -26, 8, 16, 18, 65, 201, 205, 209, 210, 212, 215, 218, 228, 230, 236, 238, 240, 242, 245, 251, 257, 259, 261, 263, 265, 267, 268, "Statement", -32, 12, 13, 28, 31, 32, 38, 48, 51, 52, 54, 59, 67, 75, 79, 81, 83, 84, 106, 107, 116, 117, 134, 137, 139, 140, 141, 142, 144, 145, 164, 165, 167, "Expression", -23, 27, 29, 33, 37, 39, 41, 168, 170, 172, 173, 175, 176, 177, 179, 180, 181, 183, 184, 185, 195, 197, 199, 200, "Type", -3, 87, 99, 105, "ClassItem"], ["openedBy", 22, "<", 34, "InterpolationStart", 53, "[", 57, "{", 72, "(", 157, "JSXStartCloseTag"], ["closedBy", 23, ">", 36, "InterpolationEnd", 47, "]", 58, "}", 73, ")", 162, "JSXEndTag"] ], - propSources: [iAe], + propSources: [sAe], skippedNodes: [0, 4, 5, 271], repeatNodeCount: 37, tokenData: "$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c# sAe[t] || -1 }, { term: 334, get: (t) => aAe[t] || -1 }, { term: 70, get: (t) => oAe[t] || -1 }], + specialized: [{ term: 319, get: (t) => aAe[t] || -1 }, { term: 334, get: (t) => oAe[t] || -1 }, { term: 70, get: (t) => lAe[t] || -1 }], tokenPrec: 14626 }), fne = [ /* @__PURE__ */ Qa("function ${name}(${params}) {\n ${}\n}", { @@ -23726,7 +23726,7 @@ const nAe = new Pa((t, e) => { detail: "default", type: "keyword" }) -], cAe = /* @__PURE__ */ fne.concat([ +], uAe = /* @__PURE__ */ fne.concat([ /* @__PURE__ */ Qa("interface ${name} {\n ${}\n}", { label: "interface", detail: "definition", @@ -23751,21 +23751,21 @@ const nAe = new Pa((t, e) => { "MethodDeclaration", "ForStatement" ]); -function Ov(t) { +function kv(t) { return (e, r) => { let n = e.node.getChild("VariableDefinition"); return n && r(n, t), !0; }; } -const uAe = ["FunctionDeclaration"], hAe = { - FunctionDeclaration: /* @__PURE__ */ Ov("function"), - ClassDeclaration: /* @__PURE__ */ Ov("class"), +const hAe = ["FunctionDeclaration"], fAe = { + FunctionDeclaration: /* @__PURE__ */ kv("function"), + ClassDeclaration: /* @__PURE__ */ kv("class"), ClassExpression: () => !0, - EnumDeclaration: /* @__PURE__ */ Ov("constant"), - TypeAliasDeclaration: /* @__PURE__ */ Ov("type"), - NamespaceDeclaration: /* @__PURE__ */ Ov("namespace"), + EnumDeclaration: /* @__PURE__ */ kv("constant"), + TypeAliasDeclaration: /* @__PURE__ */ kv("type"), + NamespaceDeclaration: /* @__PURE__ */ kv("namespace"), VariableDefinition(t, e) { - t.matchContext(uAe) || e(t, "variable"); + t.matchContext(hAe) || e(t, "variable"); }, TypeDefinition(t, e) { e(t, "type"); @@ -23785,7 +23785,7 @@ function pne(t, e) { if (i) i = !1; else if (a.name) { - let o = hAe[a.name]; + let o = fAe[a.name]; if (o && o(a, s) || dne.has(a.name)) return !1; } else if (a.to - a.from > 8192) { @@ -23811,7 +23811,7 @@ const hU = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, gne = [ ".", "?." ]; -function fAe(t) { +function dAe(t) { let e = Cn(t.state).resolveInner(t.pos, -1); if (gne.indexOf(e.name) > -1) return null; @@ -23829,12 +23829,12 @@ function fAe(t) { } const eu = /* @__PURE__ */ $f.define({ name: "javascript", - parser: /* @__PURE__ */ lAe.configure({ + parser: /* @__PURE__ */ cAe.configure({ props: [ - /* @__PURE__ */ b1.add({ + /* @__PURE__ */ x1.add({ IfStatement: /* @__PURE__ */ l5({ except: /^\s*({|else\b)/ }), TryStatement: /* @__PURE__ */ l5({ except: /^\s*({|catch\b|finally\b)/ }), - LabeledStatement: m5e, + LabeledStatement: v5e, SwitchBody: (t) => { let e = t.textAfter, r = /^\s*\}/.test(e), n = /^\s*(case|default)\b/.test(e); return t.baseIndent + (r ? 0 : n ? 1 : 2) * t.unit; @@ -23855,7 +23855,7 @@ const eu = /* @__PURE__ */ $f.define({ return t.column(t.node.from) + t.unit; } }), - /* @__PURE__ */ mp.add({ + /* @__PURE__ */ vp.add({ "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": hD, BlockComment(t) { return { from: t.from + 2, to: t.to - 2 }; @@ -23880,20 +23880,20 @@ const eu = /* @__PURE__ */ $f.define({ props: [/* @__PURE__ */ lD.add((t) => t.isTop ? [mne] : void 0)] }, "typescript"); let xne = (t) => ({ label: t, type: "keyword" }); -const wne = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(xne), dAe = /* @__PURE__ */ wne.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(xne)); -function pAe(t = {}) { - let e = t.jsx ? t.typescript ? bne : yne : t.typescript ? vne : eu, r = t.typescript ? cAe.concat(dAe) : fne.concat(wne); - return new pm(e, [ +const wne = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(xne), pAe = /* @__PURE__ */ wne.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(xne)); +function gAe(t = {}) { + let e = t.jsx ? t.typescript ? bne : yne : t.typescript ? vne : eu, r = t.typescript ? uAe.concat(pAe) : fne.concat(wne); + return new gm(e, [ eu.data.of({ - autocomplete: A3e(gne, hte(r)) + autocomplete: L3e(gne, hte(r)) }), eu.data.of({ - autocomplete: fAe + autocomplete: dAe }), - t.jsx ? vAe : [] + t.jsx ? yAe : [] ]); } -function gAe(t) { +function mAe(t) { for (; ; ) { if (t.name == "JSXOpenTag" || t.name == "JSXSelfClosingTag" || t.name == "JSXFragmentTag") return t; @@ -23908,8 +23908,8 @@ function fU(t, e, r = t.length) { return t.sliceString(n.from, Math.min(n.to, r)); return ""; } -const mAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), vAe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { - if ((mAe ? t.composing : t.compositionStarted) || t.state.readOnly || e != r || n != ">" && n != "/" || !eu.isActiveAt(t.state, e, -1)) +const vAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), yAe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { + if ((vAe ? t.composing : t.compositionStarted) || t.state.readOnly || e != r || n != ">" && n != "/" || !eu.isActiveAt(t.state, e, -1)) return !1; let s = i(), { state: a } = s, o = a.changeByRange((l) => { var u; @@ -23924,7 +23924,7 @@ const mAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav return { range: je.cursor(h + m.length, -1), changes: { from: h, insert: m } }; } } else if (n == ">") { - let p = gAe(f); + let p = mAe(f); if (p && !/^\/?>|^<\//.test(a.doc.sliceString(h, h + 2)) && (d = fU(a.doc, p, h))) return { range: l, changes: { from: h, insert: `` } }; } @@ -23935,14 +23935,14 @@ const mAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav s, a.update(o, { userEvent: "input.complete", scrollIntoView: !0 }) ]), !0); -}), kv = ["_blank", "_self", "_top", "_parent"], i6 = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], s6 = ["get", "post", "put", "delete"], a6 = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], yo = ["true", "false"], Xt = {}, yAe = { +}), Sv = ["_blank", "_self", "_top", "_parent"], i6 = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], s6 = ["get", "post", "put", "delete"], a6 = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], yo = ["true", "false"], Xt = {}, bAe = { a: { attrs: { href: null, ping: null, type: null, media: null, - target: kv, + target: Sv, hreflang: null } }, @@ -23975,7 +23975,7 @@ const mAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav } }, b: Xt, - base: { attrs: { href: null, target: kv } }, + base: { attrs: { href: null, target: Sv } }, bdi: Xt, bdo: Xt, blockquote: { attrs: { cite: null } }, @@ -23992,7 +23992,7 @@ const mAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav formenctype: a6, formmethod: s6, formnovalidate: ["novalidate"], - formtarget: kv, + formtarget: Sv, type: ["submit", "reset", "button"] } }, @@ -24041,7 +24041,7 @@ const mAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav enctype: a6, method: s6, novalidate: ["novalidate"], - target: kv + target: Sv } }, h1: Xt, @@ -24109,7 +24109,7 @@ const mAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav formenctype: a6, formmethod: s6, formnovalidate: ["novalidate"], - formtarget: kv, + formtarget: Sv, multiple: ["multiple"], readonly: ["readonly"], required: ["required"], @@ -24358,17 +24358,17 @@ for (let t of kne) One[t] = null; class Q2 { constructor(e, r) { - this.tags = Object.assign(Object.assign({}, yAe), e), this.globalAttrs = Object.assign(Object.assign({}, One), r), this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs); + this.tags = Object.assign(Object.assign({}, bAe), e), this.globalAttrs = Object.assign(Object.assign({}, One), r), this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs); } } Q2.default = /* @__PURE__ */ new Q2(); -function km(t, e, r = t.length) { +function Sm(t, e, r = t.length) { if (!e) return ""; let n = e.firstChild, i = n && n.getChild("TagName"); return i ? t.sliceString(i.from, Math.min(i.to, r)) : ""; } -function Sm(t, e = !1) { +function Tm(t, e = !1) { for (; t; t = t.parent) if (t.name == "Element") if (e) @@ -24378,13 +24378,13 @@ function Sm(t, e = !1) { return null; } function Sne(t, e, r) { - let n = r.tags[km(t, Sm(e))]; + let n = r.tags[Sm(t, Tm(e))]; return (n == null ? void 0 : n.children) || r.allTags; } function rP(t, e) { let r = []; - for (let n = Sm(e); n && !n.type.isTop; n = Sm(n.parent)) { - let i = km(t, n); + for (let n = Tm(e); n && !n.type.isTop; n = Tm(n.parent)) { + let i = Sm(t, n); if (i && n.lastChild.name == "CloseTag") break; i && r.indexOf(i) < 0 && (e.name == "EndTag" || e.from >= n.firstChild.to) && r.push(i); @@ -24393,7 +24393,7 @@ function rP(t, e) { } const Tne = /^[:\-\.\w\u00b7-\uffff]*$/; function dU(t, e, r, n, i) { - let s = /\s*>/.test(t.sliceDoc(i, i + 5)) ? "" : ">", a = Sm(r, !0); + let s = /\s*>/.test(t.sliceDoc(i, i + 5)) ? "" : ">", a = Tm(r, !0); return { from: n, to: i, @@ -24415,7 +24415,7 @@ function pU(t, e, r, n) { validFor: Tne }; } -function bAe(t, e, r, n) { +function xAe(t, e, r, n) { let i = [], s = 0; for (let a of Sne(t.doc, r, e)) i.push({ label: "<" + a, type: "type" }); @@ -24423,8 +24423,8 @@ function bAe(t, e, r, n) { i.push({ label: "", type: "type", boost: 99 - s++ }); return { from: n, to: n, options: i, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ }; } -function xAe(t, e, r, n, i) { - let s = Sm(r), a = s ? e.tags[km(t.doc, s)] : null, o = a && a.attrs ? Object.keys(a.attrs) : [], l = a && a.globalAttrs === !1 ? o : o.length ? o.concat(e.globalAttrNames) : e.globalAttrNames; +function wAe(t, e, r, n, i) { + let s = Tm(r), a = s ? e.tags[Sm(t.doc, s)] : null, o = a && a.attrs ? Object.keys(a.attrs) : [], l = a && a.globalAttrs === !1 ? o : o.length ? o.concat(e.globalAttrNames) : e.globalAttrNames; return { from: n, to: i, @@ -24432,13 +24432,13 @@ function xAe(t, e, r, n, i) { validFor: Tne }; } -function wAe(t, e, r, n, i) { +function OAe(t, e, r, n, i) { var s; let a = (s = r.parent) === null || s === void 0 ? void 0 : s.getChild("AttributeName"), o = [], l; if (a) { let u = t.sliceDoc(a.from, a.to), h = e.globalAttrs[u]; if (!h) { - let f = Sm(r), d = f ? e.tags[km(t.doc, f)] : null; + let f = Tm(r), d = f ? e.tags[Sm(t.doc, f)] : null; h = (d == null ? void 0 : d.attrs) && d.attrs[u]; } if (h) { @@ -24458,16 +24458,16 @@ function Cne(t, e) { break; s = i = o, a = l.from; } - return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? pU(r, i, i.from, n) : dU(r, t, i, i.from, n) : i.name == "StartTag" ? dU(r, t, i, n, n) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? pU(r, i, n, n) : e.explicit && (i.name == "OpenTag" || i.name == "SelfClosingTag") || i.name == "AttributeName" ? xAe(r, t, i, i.name == "AttributeName" ? i.from : n, n) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? wAe(r, t, i, i.name == "Is" ? n : i.from, n) : e.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? bAe(r, t, i, n) : null; + return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? pU(r, i, i.from, n) : dU(r, t, i, i.from, n) : i.name == "StartTag" ? dU(r, t, i, n, n) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? pU(r, i, n, n) : e.explicit && (i.name == "OpenTag" || i.name == "SelfClosingTag") || i.name == "AttributeName" ? wAe(r, t, i, i.name == "AttributeName" ? i.from : n, n) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? OAe(r, t, i, i.name == "Is" ? n : i.from, n) : e.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? xAe(r, t, i, n) : null; } -function OAe(t) { +function kAe(t) { return Cne(Q2.default, t); } -function kAe(t) { +function SAe(t) { let { extraTags: e, extraGlobalAttributes: r } = t, n = r || e ? new Q2(e, r) : Q2.default; return (i) => Cne(n, i); } -const SAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), Ene = [ +const TAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), Ene = [ { tag: "script", attrs: (t) => t.type == "text/typescript" || t.lang == "ts", @@ -24488,7 +24488,7 @@ const SAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), En attrs(t) { return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type); }, - parser: SAe + parser: TAe }, { tag: "script", @@ -24511,9 +24511,9 @@ const SAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), En } ].concat(/* @__PURE__ */ kne.map((t) => ({ name: t, parser: eu.parser }))), Ane = /* @__PURE__ */ $f.define({ name: "html", - parser: /* @__PURE__ */ l6e.configure({ + parser: /* @__PURE__ */ c6e.configure({ props: [ - /* @__PURE__ */ b1.add({ + /* @__PURE__ */ x1.add({ Element(t) { let e = /^(\s*)(<\/)?/.exec(t.textAfter); return t.node.to <= t.pos + e[0].length ? t.continue() : t.lineIndent(t.node.from) + (e[2] ? 0 : t.unit); @@ -24534,7 +24534,7 @@ const SAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), En return e && !((r = e.lastChild) && (r.name == "CloseTag" || r.name == "SelfClosingTag")) ? t.lineIndent(e.from) + t.unit : null; } }), - /* @__PURE__ */ mp.add({ + /* @__PURE__ */ vp.add({ Element(t) { let e = t.firstChild, r = t.lastChild; return !e || e.name != "OpenTag" ? null : { from: e.to, to: r.name == "CloseTag" ? r.from : t.to }; @@ -24553,31 +24553,31 @@ const SAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), En }), m5 = /* @__PURE__ */ Ane.configure({ wrap: /* @__PURE__ */ one(Ene, _ne) }); -function TAe(t = {}) { +function CAe(t = {}) { let e = "", r; t.matchClosingTags === !1 && (e = "noMatch"), t.selfClosingTags === !0 && (e = (e ? e + " " : "") + "selfClosing"), (t.nestedLanguages && t.nestedLanguages.length || t.nestedAttributes && t.nestedAttributes.length) && (r = one((t.nestedLanguages || []).concat(Ene), (t.nestedAttributes || []).concat(_ne))); let n = r ? Ane.configure({ wrap: r, dialect: e }) : e ? m5.configure({ dialect: e }) : m5; - return new pm(n, [ - m5.data.of({ autocomplete: kAe(t) }), - t.autoCloseTags !== !1 ? CAe : [], - pAe().support, - $6e().support + return new gm(n, [ + m5.data.of({ autocomplete: SAe(t) }), + t.autoCloseTags !== !1 ? EAe : [], + gAe().support, + B6e().support ]); } -const gU = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), CAe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { +const gU = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), EAe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { if (t.composing || t.state.readOnly || e != r || n != ">" && n != "/" || !m5.isActiveAt(t.state, e, -1)) return !1; let s = i(), { state: a } = s, o = a.changeByRange((l) => { var u, h, f; let d = a.doc.sliceString(l.from - 1, l.to) == n, { head: p } = l, g = Cn(a).resolveInner(p - 1, -1), m; if ((g.name == "TagName" || g.name == "StartTag") && (g = g.parent), d && n == ">" && g.name == "OpenTag") { - if (((h = (u = g.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (m = km(a.doc, g.parent, p)) && !gU.has(m)) { + if (((h = (u = g.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (m = Sm(a.doc, g.parent, p)) && !gU.has(m)) { let v = p + (a.doc.sliceString(p, p + 1) === ">" ? 1 : 0), y = ``; return { range: l, changes: { from: p, to: v, insert: y } }; } } else if (d && n == "/" && g.name == "IncompleteCloseTag") { let v = g.parent; - if (g.from == p - 2 && ((f = v.lastChild) === null || f === void 0 ? void 0 : f.name) != "CloseTag" && (m = km(a.doc, v, p)) && !gU.has(m)) { + if (g.from == p - 2 && ((f = v.lastChild) === null || f === void 0 ? void 0 : f.name) != "CloseTag" && (m = Sm(a.doc, v, p)) && !gU.has(m)) { let y = p + (a.doc.sliceString(p, p + 1) === ">" ? 1 : 0), b = `${m}>`; return { range: je.cursor(p + b.length, -1), @@ -24594,11 +24594,11 @@ const gU = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb scrollIntoView: !0 }) ]), !0); -}), Lne = /* @__PURE__ */ oD({ commentTokens: { block: { open: "" } } }), Rne = /* @__PURE__ */ new yr(), Mne = /* @__PURE__ */ n_e.configure({ +}), Lne = /* @__PURE__ */ oD({ commentTokens: { block: { open: "" } } }), Rne = /* @__PURE__ */ new yr(), Mne = /* @__PURE__ */ i_e.configure({ props: [ - /* @__PURE__ */ mp.add((t) => !t.is("Block") || t.is("Document") || s9(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), + /* @__PURE__ */ vp.add((t) => !t.is("Block") || t.is("Document") || s9(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), /* @__PURE__ */ Rne.add(s9), - /* @__PURE__ */ b1.add({ + /* @__PURE__ */ x1.add({ Document: () => null }), /* @__PURE__ */ o0.add({ @@ -24610,7 +24610,7 @@ function s9(t) { let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name); return e ? +e[1] : void 0; } -function EAe(t, e) { +function _Ae(t, e) { let r = t; for (; ; ) { let n = r.nextSibling, i; @@ -24620,28 +24620,28 @@ function EAe(t, e) { } return r.to; } -const _Ae = /* @__PURE__ */ aee.of((t, e, r) => { +const AAe = /* @__PURE__ */ aee.of((t, e, r) => { for (let n = Cn(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { let i = n.type.prop(Rne); if (i == null) continue; - let s = EAe(n, i); + let s = _Ae(n, i); if (s > r) return { from: r, to: s }; } return null; }); function nP(t) { - return new el(Lne, t, [_Ae], "markdown"); + return new el(Lne, t, [AAe], "markdown"); } -const AAe = /* @__PURE__ */ nP(Mne), LAe = /* @__PURE__ */ Mne.configure([p_e, m_e, g_e, v_e, { +const LAe = /* @__PURE__ */ nP(Mne), RAe = /* @__PURE__ */ Mne.configure([g_e, v_e, m_e, y_e, { props: [ - /* @__PURE__ */ mp.add({ + /* @__PURE__ */ vp.add({ Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to }) }) ] -}]), Dne = /* @__PURE__ */ nP(LAe); -function RAe(t, e) { +}]), Dne = /* @__PURE__ */ nP(RAe); +function MAe(t, e) { return (r) => { if (r && t) { let n = null; @@ -24726,7 +24726,7 @@ function a9(t, e) { s >= 4 ? (i += " ", s -= 4) : (i += " ", s--); return i + t.slice(r); } -const MAe = ({ state: t, dispatch: e }) => { +const DAe = ({ state: t, dispatch: e }) => { let r = Cn(t), { doc: n } = t, i = null, s = t.changeByRange((a) => { if (!a.empty || !Dne.isActiveAt(t, a.from)) return i = { range: a }; @@ -24780,7 +24780,7 @@ const MAe = ({ state: t, dispatch: e }) => { function mU(t) { return t.name == "QuoteMark" || t.name == "ListMark"; } -function DAe(t, e) { +function PAe(t, e) { let r = t.resolveInner(e, -1), n = e; mU(r) && (n = r.from, r = r.parent); for (let i; i = r.childBefore(n); ) @@ -24792,11 +24792,11 @@ function DAe(t, e) { break; return r; } -const PAe = ({ state: t, dispatch: e }) => { +const NAe = ({ state: t, dispatch: e }) => { let r = Cn(t), n = null, i = t.changeByRange((s) => { let a = s.from, { doc: o } = t; if (s.empty && Dne.isActiveAt(t, s.from)) { - let l = o.lineAt(a), u = Pne(DAe(r, a), o); + let l = o.lineAt(a), u = Pne(PAe(r, a), o); if (u.length) { let h = u[u.length - 1], f = h.to - h.spaceAfter.length + (h.spaceAfter ? 1 : 0); if (a - l.from > f && !/\S/.test(l.text.slice(f, a - l.from))) @@ -24821,22 +24821,22 @@ const PAe = ({ state: t, dispatch: e }) => { return n = { range: s }; }); return n ? !1 : (e(t.update(i, { scrollIntoView: !0, userEvent: "delete" })), !0); -}, NAe = [ - { key: "Enter", run: MAe }, - { key: "Backspace", run: PAe } -], o9 = /* @__PURE__ */ TAe({ matchClosingTags: !1 }); -function IAe(t = {}) { - let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = AAe, completeHTMLTags: s = !0 } = t; +}, IAe = [ + { key: "Enter", run: DAe }, + { key: "Backspace", run: NAe } +], o9 = /* @__PURE__ */ CAe({ matchClosingTags: !1 }); +function $Ae(t = {}) { + let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = LAe, completeHTMLTags: s = !0 } = t; if (!(i instanceof nC)) throw new RangeError("Base parser provided to `markdown` should be a Markdown parser"); let a = t.extensions ? [t.extensions] : [], o = [o9.support], l; - r instanceof pm ? (o.push(r.support), l = r.language) : r && (l = r); - let u = e || l ? RAe(e, l) : void 0; - a.push(s_e({ codeParser: u, htmlParser: o9.language.parser })), n && o.push(uc.high(ju.of(NAe))); + r instanceof gm ? (o.push(r.support), l = r.language) : r && (l = r); + let u = e || l ? MAe(e, l) : void 0; + a.push(a_e({ codeParser: u, htmlParser: o9.language.parser })), n && o.push(uc.high(ju.of(IAe))); let h = nP(i.configure(a)); - return s && o.push(h.data.of({ autocomplete: $Ae })), new pm(h, o); + return s && o.push(h.data.of({ autocomplete: BAe })), new gm(h, o); } -function $Ae(t) { +function BAe(t) { let { state: e, pos: r } = t, n = /<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(r - 25, r)); if (!n) return null; @@ -24849,25 +24849,25 @@ function $Ae(t) { return { from: r - n[0].length, to: r, - options: BAe(), + options: FAe(), validFor: /^<[:\-\.\w\u00b7-\uffff]*$/ }; } let l6 = null; -function BAe() { +function FAe() { if (l6) return l6; - let t = OAe(new wD(Tr.create({ extensions: o9 }), 0, !0)); + let t = kAe(new wD(Tr.create({ extensions: o9 }), 0, !0)); return l6 = t ? t.options : []; } -function FAe(t) { +function zAe(t) { throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } var Ine = { exports: {} }; -const zAe = {}, QAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const QAe = {}, UAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: zAe -}, Symbol.toStringTag, { value: "Module" })), UAe = /* @__PURE__ */ Jj(QAe); + default: QAe +}, Symbol.toStringTag, { value: "Module" })), VAe = /* @__PURE__ */ Jj(UAe); (function(t) { var e; (function() { @@ -24923,8 +24923,8 @@ const zAe = {}, QAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin u(a.statusText); }; })), a.overrideMimeType && a.overrideMimeType("text/plain; charset=" + n), a.send(null), i ? s : a.responseText; - } else if (typeof FAe < "u") { - var o = UAe; + } else if (typeof zAe < "u") { + var o = VAe; try { if (o.existsSync(r)) return o.readFileSync(r, n); @@ -25159,18 +25159,18 @@ const zAe = {}, QAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin }; })(), t.exports = e; })(Ine); -const VAe = Ine.exports, $ne = $t.define({ +const qAe = Ine.exports, $ne = $t.define({ combine: (t) => t[t.length - 1] -}), qAe = It.mark({ +}), YAe = It.mark({ class: "cm-error" -}), YAe = (t) => Object.keys(t.rules).length > 0; +}), WAe = (t) => Object.keys(t.rules).length > 0; function vU(t) { var s, a; let e = ((s = t.visibleRanges[0]) == null ? void 0 : s.from) || 0, r = ((a = t.visibleRanges[0]) == null ? void 0 : a.to) || void 0; - const n = new os(), i = t.state.facet($ne); - return YAe(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, qAe)), n.finish(); + const n = new ls(), i = t.state.facet($ne); + return WAe(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, YAe)), n.finish(); } -const WAe = hn.fromClass(class { +const GAe = hn.fromClass(class { constructor(t) { this.decorations = vU(t); } @@ -25180,25 +25180,25 @@ const WAe = hn.fromClass(class { }, { decorations: (t) => t.decorations }); -function GAe(t) { +function XAe(t) { if (!t) return []; let { dict: e = "en_US", dictionaryPath: r = "/dictionaries" } = t; - return [$ne.of(new VAe(e, null, null, { + return [$ne.of(new qAe(e, null, null, { dictionaryPath: r - })), WAe]; + })), GAe]; } -const XAe = "cm-link", HAe = [{ +const HAe = "cm-link", ZAe = [{ target: /`[^`\n]+`/g, cssClass: "cm-mono" }]; function yU(t, e, r, n) { var l, u; let i = ((l = t.visibleRanges[0]) == null ? void 0 : l.from) || 0, s = ((u = t.visibleRanges[0]) == null ? void 0 : u.to) || void 0; - const a = new os(), o = t.state.doc.sliceString(i, s); + const a = new ls(), o = t.state.doc.sliceString(i, s); return e.flatMap((h) => { const f = h.id ? t.state.doc.line(parseInt(n.get(h.id))).text : o, d = h.id ? t.state.doc.line(parseInt(n.get(h.id))).from : i; return [...f.matchAll(h.target)].map((p) => ({ @@ -25213,7 +25213,7 @@ function yU(t, e, r, n) { match: f }) => { let d = { - class: XAe + class: HAe }; h.cssClass && (d.class = h.cssClass); let p; @@ -25229,7 +25229,7 @@ function yU(t, e, r, n) { } const iP = (t, e, r) => { t || (t = []); - const n = t.concat(HAe); + const n = t.concat(ZAe); return hn.fromClass(class { constructor(i) { this.decorations = yU(i, n, e, r); @@ -25241,62 +25241,62 @@ const iP = (t, e, r) => { decorations: (i) => i.decorations }); }, Bne = /* @__PURE__ */ new Map(); -class ZAe { +class jAe { constructor(e) { - this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: QTe(r.newValue || "") }), bTe(this._onChange); + this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: UTe(r.newValue || "") }), xTe(this._onChange); } postMessage(e) { - Nte.setItem(this.room, zTe(NTe(e))); + Nte.setItem(this.room, QTe(ITe(e))); } close() { - xTe(this._onChange); + wTe(this._onChange); } } -const jAe = typeof BroadcastChannel > "u" ? ZAe : BroadcastChannel, sP = (t) => Lh(Bne, t, () => { - const e = D0(), r = new jAe(t); +const KAe = typeof BroadcastChannel > "u" ? jAe : BroadcastChannel, sP = (t) => Lh(Bne, t, () => { + const e = P0(), r = new KAe(t); return r.onmessage = (n) => e.forEach((i) => i(n.data, "broadcastchannel")), { bc: r, subs: e }; -}), KAe = (t, e) => (sP(t).subs.add(e), e), JAe = (t, e) => { +}), JAe = (t, e) => (sP(t).subs.add(e), e), e7e = (t, e) => { const r = sP(t), n = r.subs.delete(e); return n && r.subs.size === 0 && (r.bc.close(), Bne.delete(t)), n; -}, lg = (t, e, r = null) => { +}, cg = (t, e, r = null) => { const n = sP(t); n.bc.postMessage(e), n.subs.forEach((i) => i(e, r)); }, Fne = 0, aP = 1, zne = 2, l9 = (t, e) => { rr(t, Fne); - const r = SCe(e); + const r = TCe(e); ci(t, r); }, Qne = (t, e, r) => { - rr(t, aP), ci(t, xCe(e, r)); -}, e7e = (t, e, r) => Qne(e, r, qs(t)), Une = (t, e, r) => { + rr(t, aP), ci(t, wCe(e, r)); +}, t7e = (t, e, r) => Qne(e, r, Ys(t)), Une = (t, e, r) => { try { - vCe(e, qs(t), r); + yCe(e, Ys(t), r); } catch (n) { console.error("Caught error while handling a Yjs update", n); } -}, t7e = (t, e) => { +}, r7e = (t, e) => { rr(t, zne), ci(t, e); -}, r7e = Une, n7e = (t, e, r, n) => { +}, n7e = Une, i7e = (t, e, r, n) => { const i = wr(t); switch (i) { case Fne: - e7e(t, e, r); + t7e(t, e, r); break; case aP: Une(t, r, n); break; case zne: - r7e(t, r, n); + n7e(t, r, n); break; default: throw new Error("Unknown message type"); } return i; -}, i7e = 0, s7e = (t, e, r) => { +}, s7e = 0, a7e = (t, e, r) => { switch (wr(t)) { - case i7e: + case s7e: r(e, kf(t)); } }, c6 = 3e4; @@ -25363,7 +25363,7 @@ const oP = (t, e, r) => { rr(i, a), rr(i, l), S0(i, JSON.stringify(o)); } return Vn(i); -}, a7e = (t, e, r) => { +}, o7e = (t, e, r) => { const n = gd(e), i = Uf(), s = [], a = [], o = [], l = [], u = wr(n); for (let h = 0; h < u; h++) { const f = wr(n); @@ -25383,10 +25383,10 @@ const oP = (t, e, r) => { updated: a, removed: l }, r]); -}, o7e = (t) => STe(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), c0 = 0, qne = 3, Bg = 1, l7e = 2, Hx = []; +}, l7e = (t) => TTe(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), c0 = 0, qne = 3, zg = 1, c7e = 2, Hx = []; Hx[c0] = (t, e, r, n, i) => { rr(t, c0); - const s = n7e( + const s = i7e( e, t, r.doc, @@ -25395,7 +25395,7 @@ Hx[c0] = (t, e, r, n, i) => { n && s === aP && !r.synced && (r.synced = !0); }; Hx[qne] = (t, e, r, n, i) => { - rr(t, Bg), ci( + rr(t, zg), ci( t, Qy( r.awareness, @@ -25403,21 +25403,21 @@ Hx[qne] = (t, e, r, n, i) => { ) ); }; -Hx[Bg] = (t, e, r, n, i) => { - a7e( +Hx[zg] = (t, e, r, n, i) => { + o7e( r.awareness, - qs(e), + Ys(e), r ); }; -Hx[l7e] = (t, e, r, n, i) => { - s7e( +Hx[c7e] = (t, e, r, n, i) => { + a7e( e, r.doc, - (s, a) => c7e(r, a) + (s, a) => u7e(r, a) ); }; -const bU = 3e4, c7e = (t, e) => console.warn(`Permission denied to access ${t.url}. +const bU = 3e4, u7e = (t, e) => console.warn(`Permission denied to access ${t.url}. ${e}`), Yne = (t, e, r) => { const n = gd(e), i = Ws(), s = wr(n), a = t.messageHandlers[s]; return a ? a(i, n, t, r, s) : console.error("Unable to compute message"), i; @@ -25442,7 +25442,7 @@ ${e}`), Yne = (t, e, r) => { }])) : t.wsUnsuccessfulReconnects++, setTimeout( Wne, XT( - zSe(2, t.wsUnsuccessfulReconnects) * 100, + QSe(2, t.wsUnsuccessfulReconnects) * 100, t.maxBackoffTime ), t @@ -25454,7 +25454,7 @@ ${e}`), Yne = (t, e, r) => { const r = Ws(); if (rr(r, c0), l9(r, t.doc), e.send(Vn(r)), t.awareness.getLocalState() !== null) { const n = Ws(); - rr(n, Bg), ci( + rr(n, zg), ci( n, Qy(t.awareness, [ t.doc.clientID @@ -25467,7 +25467,7 @@ ${e}`), Yne = (t, e, r) => { } }, u6 = (t, e) => { const r = t.ws; - t.wsconnected && r && r.readyState === r.OPEN && r.send(e), t.bcconnected && lg(t.bcChannel, e, t); + t.wsconnected && r && r.readyState === r.OPEN && r.send(e), t.bcconnected && cg(t.bcChannel, e, t); }; class Gne extends GT { constructor(e, r, n, { @@ -25481,7 +25481,7 @@ class Gne extends GT { } = {}) { for (super(); e[e.length - 1] === "/"; ) e = e.slice(0, e.length - 1); - const f = o7e(a); + const f = l7e(a); this.maxBackoffTime = u, this.bcChannel = e + "/" + r, this.url = e + "/" + r + (f.length === 0 ? "" : "?" + f), this.roomname = r, this.doc = n, this._WS = o, this.awareness = s, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = h, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = Hx.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = i, this._resyncInterval = 0, l > 0 && (this._resyncInterval = setInterval(() => { if (this.ws && this.ws.readyState === WebSocket.OPEN) { const d = Ws(); @@ -25490,16 +25490,16 @@ class Gne extends GT { }, l)), this._bcSubscriber = (d, p) => { if (p !== this) { const g = Yne(this, new Uint8Array(d), !1); - _D(g) > 1 && lg(this.bcChannel, Vn(g), this); + _D(g) > 1 && cg(this.bcChannel, Vn(g), this); } }, this._updateHandler = (d, p) => { if (p !== this) { const g = Ws(); - rr(g, c0), t7e(g, d), u6(this, Vn(g)); + rr(g, c0), r7e(g, d), u6(this, Vn(g)); } }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: d, updated: p, removed: g }, m) => { const v = d.concat(p).concat(g), y = Ws(); - rr(y, Bg), ci( + rr(y, zg), ci( y, Qy(s, v) ), u6(this, Vn(y)); @@ -25525,24 +25525,24 @@ class Gne extends GT { connectBc() { if (this.disableBc) return; - this.bcconnected || (KAe(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); + this.bcconnected || (JAe(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); const e = Ws(); - rr(e, c0), l9(e, this.doc), lg(this.bcChannel, Vn(e), this); + rr(e, c0), l9(e, this.doc), cg(this.bcChannel, Vn(e), this); const r = Ws(); - rr(r, c0), Qne(r, this.doc), lg(this.bcChannel, Vn(r), this); + rr(r, c0), Qne(r, this.doc), cg(this.bcChannel, Vn(r), this); const n = Ws(); - rr(n, qne), lg( + rr(n, qne), cg( this.bcChannel, Vn(n), this ); const i = Ws(); - rr(i, Bg), ci( + rr(i, zg), ci( i, Qy(this.awareness, [ this.doc.clientID ]) - ), lg( + ), cg( this.bcChannel, Vn(i), this @@ -25550,12 +25550,12 @@ class Gne extends GT { } disconnectBc() { const e = Ws(); - rr(e, Bg), ci( + rr(e, zg), ci( e, Qy(this.awareness, [ this.doc.clientID ], /* @__PURE__ */ new Map()) - ), u6(this, Vn(e)), this.bcconnected && (JAe(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); + ), u6(this, Vn(e)), this.bcconnected && (e7e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); } disconnect() { this.shouldConnect = !1, this.disconnectBc(), this.ws !== null && this.ws.close(); @@ -25564,10 +25564,10 @@ class Gne extends GT { this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Wne(this), this.connectBc()); } } -const u7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), U2 = $t.define({ +const h7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), U2 = $t.define({ combine: (t) => t[t.length - 1], static: !0 -}), Xne = or.define(), h7e = hn.fromClass(class { +}), Xne = or.define(), f7e = hn.fromClass(class { constructor(t) { this.decorations = this.colorEditorLines(t); } @@ -25585,7 +25585,7 @@ const u7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent }); } colorEditorLines(t) { - const e = t.state.facet(U2), r = new os(); + const e = t.state.facet(U2), r = new ls(); for (let n = 1; n <= t.state.doc.lines; n++) { const i = t.state.doc.line(n), s = e.get(n); s && r.add(i.from, i.from, this.markAuthor(s, n)); @@ -25604,7 +25604,7 @@ const u7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent }); } update(t) { - (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(Xne)))) && (t.transactions.filter(u7e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ + (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(Xne)))) && (t.transactions.filter(h7e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ effects: c9.of(null) }), t.view.dom.querySelectorAll(".cm-line").forEach((e) => { e.onmouseenter = (r) => t.view.dispatch({ @@ -25639,11 +25639,11 @@ class xU extends ul { return this.selectedLine && this.selectedLine == this.lineNumber ? this.authorAvatar() : document.createElement("div"); } } -const f7e = BT({ +const d7e = BT({ lineMarker: (t, e) => new xU(e, t), lineMarkerChange: (t) => t.startState.field(Kk) != t.state.field(Kk), initialSpacer: () => new xU(null, null) -}), d7e = (t) => [U2.of(t), Kk.init(null), f7e, h7e], bp = jt.button` +}), p7e = (t) => [U2.of(t), Kk.init(null), d7e, f7e], xp = Ht.button` &:focus { outline: 0 !important; } @@ -25672,11 +25672,11 @@ const f7e = BT({ } `; or.define(); -const Hne = new gp(); -function p7e(t) { +const Hne = new mp(); +function g7e(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function g7e({ +function m7e({ commentId: t, text: e, color: r @@ -25689,7 +25689,7 @@ function g7e({ break; let s = e.slice(0, i), a = ""; s.includes("->") && (a = s.slice(s.indexOf("->") + 2).trimStart(), s = s.slice(0, s.indexOf("->")).trimEnd()), s.length !== 0 && n.push({ - targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${p7e(s)}(?=$|[\\s\\.]|\\W)`, + targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${g7e(s)}(?=$|[\\s\\.]|\\W)`, targetRegexFlags: "gm", id: t, cssClass: "cm-suggestion", @@ -25699,7 +25699,7 @@ function g7e({ } return n; } -function m7e({ +function v7e({ builder: t, from: e, match: r, @@ -25712,7 +25712,7 @@ function m7e({ }), n.replacement) return i.class += " replaced", () => { t.add(e + r.index + r[0].length, e + r.index + r[0].length, It.widget({ - widget: new v7e({ + widget: new y7e({ text: n.replacement, color: n.color, from: e + r.index, @@ -25722,7 +25722,7 @@ function m7e({ })); }; } -class v7e extends uo { +class y7e extends uo { constructor({ text: e, color: r, @@ -25745,7 +25745,7 @@ class v7e extends uo { }), e; } } -function y7e(t, e, r) { +function b7e(t, e, r) { const n = r.current.querySelector(".myst-add-suggestion"), i = t.state.selection.main, s = i.head === i.anchor, a = t.state.doc.lineAt(i.head).number !== t.state.doc.lineAt(i.anchor).number; if (!t.selectionSet || s || a) { n.style.display = "none"; @@ -25783,7 +25783,7 @@ function y7e(t, e, r) { }); }; } -const b7e = jt(bp)` +const x7e = Ht(xp)` position: absolute; z-index: 10; display: none; @@ -25812,7 +25812,7 @@ const b7e = jt(bp)` border-top: 10px solid var(--icon-border); } `; -var x7e = Symbol.for("preact-signals"); +var w7e = Symbol.for("preact-signals"); function iC() { if (Sf > 1) Sf--; @@ -25834,7 +25834,7 @@ function iC() { throw t; } } -function Sv(t) { +function Tv(t) { if (Sf > 0) return t(); Sf++; @@ -25854,23 +25854,23 @@ function Zne(t) { return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = dn.s, e.n = void 0, dn.s.n = e, dn.s = e), e; } } -function Rs(t) { +function Ms(t) { this.v = t, this.i = 0, this.n = void 0, this.t = void 0; } -Rs.prototype.brand = x7e; -Rs.prototype.h = function() { +Ms.prototype.brand = w7e; +Ms.prototype.h = function() { return !0; }; -Rs.prototype.S = function(t) { +Ms.prototype.S = function(t) { this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t); }; -Rs.prototype.U = function(t) { +Ms.prototype.U = function(t) { if (this.t !== void 0) { var e = t.e, r = t.x; e !== void 0 && (e.x = r, t.e = void 0), r !== void 0 && (r.e = e, t.x = void 0), t === this.t && (this.t = r); } }; -Rs.prototype.subscribe = function(t) { +Ms.prototype.subscribe = function(t) { var e = this; return sC(function() { var r = e.value, n = dn; @@ -25882,16 +25882,16 @@ Rs.prototype.subscribe = function(t) { } }); }; -Rs.prototype.valueOf = function() { +Ms.prototype.valueOf = function() { return this.value; }; -Rs.prototype.toString = function() { +Ms.prototype.toString = function() { return this.value + ""; }; -Rs.prototype.toJSON = function() { +Ms.prototype.toJSON = function() { return this.value; }; -Rs.prototype.peek = function() { +Ms.prototype.peek = function() { var t = dn; dn = void 0; try { @@ -25900,7 +25900,7 @@ Rs.prototype.peek = function() { dn = t; } }; -Object.defineProperty(Rs.prototype, "value", { get: function() { +Object.defineProperty(Ms.prototype, "value", { get: function() { var t = Zne(this); return t !== void 0 && (t.i = this.i), this.v; }, set: function(t) { @@ -25917,7 +25917,7 @@ Object.defineProperty(Rs.prototype, "value", { get: function() { } } }); function th(t) { - return new Rs(t); + return new Ms(t); } function jne(t) { for (var e = t.s; e !== void 0; e = e.n) @@ -25941,10 +25941,10 @@ function Jne(t) { } t.s = r; } -function E1(t) { - Rs.call(this, void 0), this.x = t, this.s = void 0, this.g = Jk - 1, this.f = 4; +function _1(t) { + Ms.call(this, void 0), this.x = t, this.s = void 0, this.g = Jk - 1, this.f = 4; } -(E1.prototype = new Rs()).h = function() { +(_1.prototype = new Ms()).h = function() { if (this.f &= -3, 1 & this.f) return !1; if ((36 & this.f) == 32 || (this.f &= -5, this.g === Jk)) @@ -25961,29 +25961,29 @@ function E1(t) { } return dn = t, Jne(this), this.f &= -2, !0; }; -E1.prototype.S = function(t) { +_1.prototype.S = function(t) { if (this.t === void 0) { this.f |= 36; for (var e = this.s; e !== void 0; e = e.n) e.S.S(e); } - Rs.prototype.S.call(this, t); + Ms.prototype.S.call(this, t); }; -E1.prototype.U = function(t) { - if (this.t !== void 0 && (Rs.prototype.U.call(this, t), this.t === void 0)) { +_1.prototype.U = function(t) { + if (this.t !== void 0 && (Ms.prototype.U.call(this, t), this.t === void 0)) { this.f &= -33; for (var e = this.s; e !== void 0; e = e.n) e.S.U(e); } }; -E1.prototype.N = function() { +_1.prototype.N = function() { if (!(2 & this.f)) { this.f |= 6; for (var t = this.t; t !== void 0; t = t.x) t.t.N(); } }; -Object.defineProperty(E1.prototype, "value", { get: function() { +Object.defineProperty(_1.prototype, "value", { get: function() { if (1 & this.f) throw new Error("Cycle detected"); var t = Zne(this); @@ -25992,7 +25992,7 @@ Object.defineProperty(E1.prototype, "value", { get: function() { return this.v; } }); function lP(t) { - return new E1(t); + return new _1(t); } function eie(t) { var e = t.u; @@ -26014,7 +26014,7 @@ function cP(t) { e.S.U(e); t.x = void 0, t.s = void 0, eie(t); } -function w7e(t) { +function O7e(t) { if (dn !== this) throw new Error("Out-of-order effect"); Jne(this), dn = t, this.f &= -2, 8 & this.f && cP(this), iC(); @@ -26038,7 +26038,7 @@ Zx.prototype.S = function() { throw new Error("Cycle detected"); this.f |= 1, this.f &= -9, eie(this), Kne(this), Sf++; var t = dn; - return dn = this, w7e.bind(this, t); + return dn = this, O7e.bind(this, t); }; Zx.prototype.N = function() { 2 & this.f || (this.f |= 2, this.o = Uy, Uy = this); @@ -26056,7 +26056,7 @@ function sC(t) { return e.d.bind(e); } var aC, h6; -function _1(t, e) { +function A1(t, e) { Ut[t] = e.bind(null, Ut[t] || function() { }); } @@ -26064,7 +26064,7 @@ function e3(t) { h6 && h6(), h6 = t && t.S(); } function tie(t) { - var e = this, r = t.data, n = Ys(r); + var e = this, r = t.data, n = Ni(r); n.value = r; var i = vi(function() { for (var s = e.__v; s = s.__; ) @@ -26083,21 +26083,21 @@ function tie(t) { return i.value; } tie.displayName = "_st"; -Object.defineProperties(Rs.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: tie }, props: { configurable: !0, get: function() { +Object.defineProperties(Ms.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: tie }, props: { configurable: !0, get: function() { return { data: this }; } }, __b: { configurable: !0, value: 1 } }); -_1("__b", function(t, e) { +A1("__b", function(t, e) { if (typeof e.type == "string") { var r, n = e.props; for (var i in n) if (i !== "children") { var s = n[i]; - s instanceof Rs && (r || (e.__np = r = {}), r[i] = s, n[i] = s.peek()); + s instanceof Ms && (r || (e.__np = r = {}), r[i] = s, n[i] = s.peek()); } } t(e); }); -_1("__r", function(t, e) { +A1("__r", function(t, e) { e3(); var r, n = e.__c; n && (n.__$f &= -2, (r = n.__$u) === void 0 && (n.__$u = r = function(i) { @@ -26109,10 +26109,10 @@ _1("__r", function(t, e) { }, s; }())), aC = n, e3(r), t(e); }); -_1("__e", function(t, e, r, n) { +A1("__e", function(t, e, r, n) { e3(), aC = void 0, t(e, r, n); }); -_1("diffed", function(t, e) { +A1("diffed", function(t, e) { e3(), aC = void 0; var r; if (typeof e.type == "string" && (r = e.__e)) { @@ -26128,13 +26128,13 @@ _1("diffed", function(t, e) { r.U = s = {}; for (var l in n) { var u = s[l], h = n[l]; - u === void 0 ? (u = O7e(r, l, h, i), s[l] = u) : u.o(h, i); + u === void 0 ? (u = k7e(r, l, h, i), s[l] = u) : u.o(h, i); } } } t(e); }); -function O7e(t, e, r, n) { +function k7e(t, e, r, n) { var i = e in t && t.ownerSVGElement === void 0, s = th(r); return { o: function(a, o) { s.value = a, n = o; @@ -26143,7 +26143,7 @@ function O7e(t, e, r, n) { n[e] !== a && (n[e] = a, i ? t[e] = a : a ? t.setAttribute(e, a) : t.removeAttribute(e)); }) }; } -_1("unmount", function(t, e) { +A1("unmount", function(t, e) { if (typeof e.type == "string") { var r = e.__e; if (r) { @@ -26165,7 +26165,7 @@ _1("unmount", function(t, e) { } t(e); }); -_1("__h", function(t, e, r, n) { +A1("__h", function(t, e, r, n) { (n < 3 || n === 9) && (e.__$f |= 2), t(e, r, n); }); Ul.prototype.shouldComponentUpdate = function(t, e) { @@ -26182,13 +26182,13 @@ Ul.prototype.shouldComponentUpdate = function(t, e) { return !0; return !1; }; -function Ys(t) { +function Ni(t) { return vi(function() { return th(t); }, []); } -function Fg(t) { - var e = Ss(t); +function T0(t) { + var e = Ts(t); return e.current = t, aC.__$f |= 4, vi(function() { return lP(function() { return e.current(); @@ -26196,7 +26196,7 @@ function Fg(t) { }, []); } function u0(t) { - var e = Ss(t); + var e = Ts(t); e.current = t, ri(function() { return sC(function() { return e.current(); @@ -26204,7 +26204,7 @@ function u0(t) { }, []); } const wU = co.define(), rie = co.define(), nie = co.define(); -class k7e { +class S7e { constructor(e) { this.view = e, this.conf = e.state.facet(Xx), this._observer = (r, n) => { if (n.origin !== this.conf) { @@ -26248,8 +26248,8 @@ class k7e { this._ytext.unobserve(this._observer); } } -const S7e = hn.fromClass(k7e), T7e = () => "comment-" + Math.random().toString().replace(".", ""); -class C7e { +const T7e = hn.fromClass(S7e), C7e = () => "comment-" + Math.random().toString().replace(".", ""); +class E7e { constructor(e, r, n, i, s) { this.user = r.awareness.getLocalState().user, this.lineAuthors = e.getArray(s + "/commentLineAuthors"), this.ydoc = e, this.getAvatar = n, this.getUserUrl = i, this.commentId = s; } @@ -26292,7 +26292,7 @@ class C7e { ); } } -class E7e { +class _7e { constructor(e, r) { this.syncedPositions = e.getMap(Vy.dataPath), this.positions = th([]), this.syncedPositions.observe(() => { this.positions.value = [...this.syncedPositions.entries()].map(([n, i]) => ({ @@ -26319,7 +26319,7 @@ class E7e { this.ydoc.transact(() => this.syncedPositions.delete(e), "comments"); } } -class _7e { +class A7e { constructor() { this.comments = th({}); } @@ -26359,7 +26359,7 @@ class _7e { }; } } -class A7e { +class L7e { constructor(e, r) { this.user = e.awareness.getLocalState().user, this.resolvedComments = r.getMap("resolved-comments"), this.ydoc = r; } @@ -26393,7 +26393,7 @@ class A7e { } const CB = class { constructor(e, r, n, i) { - this.ydoc = e, this.provider = r, this.getAvatar = n, this.getUserUrl = i, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new E7e(e, this), this.displayManager = new _7e(r), this.commentResolver = new A7e(r, e), this.draggedComment = th(null), this.commentWithPopup = th(null), this.comments = lP(() => this.positions().positions.value.map(({ + this.ydoc = e, this.provider = r, this.getAvatar = n, this.getUserUrl = i, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new _7e(e, this), this.displayManager = new A7e(r), this.commentResolver = new L7e(r, e), this.draggedComment = th(null), this.commentWithPopup = th(null), this.comments = lP(() => this.positions().positions.value.map(({ commentId: s, lineNumber: a }) => ({ @@ -26408,13 +26408,13 @@ const CB = class { target: new RegExp(a.targetRegexSrc, a.targetRegexFlags) })); this.mainCodeMirror.dispatch({ - effects: Hne.reconfigure(iP(s, m7e, this.positions())), + effects: Hne.reconfigure(iP(s, v7e, this.positions())), annotations: Ei.userEvent.of("suggestion") }); }), this.positionManager.syncedPositions.observeDeep(() => this.updateMainCodeMirror()); } lineAuthors(e) { - return new C7e(this.ydoc, this.provider, this.getAvatar, this.getUserUrl, e); + return new E7e(this.ydoc, this.provider, this.getAvatar, this.getUserUrl, e); } positions() { return this.positionManager; @@ -26439,7 +26439,7 @@ const CB = class { r != null && r.parent && r.delete(); } newComment(e) { - const r = T7e(); + const r = C7e(); return this.positions().set(r, e.toString()), this.display().new(r), this.lineAuthors(r).mark(1), this.newLocalComment = !0, r; } deleteComment(e) { @@ -26495,7 +26495,7 @@ const CB = class { const r = e.transactions[0].effects[0].is(hh), { from: n, to: i - } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = w5e(e.state).iter(0), l = []; + } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = O5e(e.state).iter(0), l = []; for (let u = o; u.value != null; o.next()) (u.from != n || u.to != i) && l.push({ fromLine: e.state.doc.lineAt(u.from).number, @@ -26526,7 +26526,7 @@ const CB = class { color: (h = (u = s.get(l + 1)) == null ? void 0 : u.color) != null ? h : "#111" }; }); - r[n] = a.flatMap(g7e); + r[n] = a.flatMap(m7e); } this.suggestions.doc.transact(() => { for (const [n, i] of Object.entries(r)) @@ -26611,7 +26611,7 @@ const CB = class { }); } mapThroughChanges(e, r, n = !1) { - const i = r.startState.doc.line(e.lineNumber).from, s = r.changes.mapPos(i, 1), a = r.changes.mapPos(i, 1, Fi.TrackDel) == null, o = r.changes.mapPos(i, 1, Fi.TrackBefore) == null && (!n || r.startState.doc.line(e.lineNumber).text == ""); + const i = r.startState.doc.line(e.lineNumber).from, s = r.changes.mapPos(i, 1), a = r.changes.mapPos(i, 1, zi.TrackDel) == null, o = r.changes.mapPos(i, 1, zi.TrackBefore) == null && (!n || r.startState.doc.line(e.lineNumber).text == ""); let l = !1; return r.changes.iterChangedRanges((u) => { u == i && (l = !0); @@ -26629,7 +26629,7 @@ const oC = $t.define({ combine: (t) => t[t.length - 1], static: !0 }), V2 = or.define(); -class L7e extends uo { +class R7e extends uo { constructor(e, r, n) { super(), this.height = e, this.commentId = r, this.isShown = n; } @@ -26641,12 +26641,12 @@ class L7e extends uo { return e.id = this.commentId, e.classList = "comment-box", this.isShown || (e.classList += " comment-box-hidden"), e.style.height = this.height + "px", e; } } -const R7e = (t, e, r) => It.widget({ - widget: new L7e(t, e, r), +const M7e = (t, e, r) => It.widget({ + widget: new R7e(t, e, r), side: 1e4, inlineOrder: !1, block: r -}), M7e = (t, e) => t.lineNumber - e.lineNumber, D7e = (t) => t.docChanged || t.effects.some((e) => e.is(V2)), P7e = (t) => [(e, { +}), D7e = (t, e) => t.lineNumber - e.lineNumber, P7e = (t) => t.docChanged || t.effects.some((e) => e.is(V2)), N7e = (t) => [(e, { commentId: r, lineNumber: n, height: i, @@ -26654,12 +26654,12 @@ const R7e = (t, e, r) => It.widget({ }) => { try { const a = t.newDoc.line(n).to; - e.add(a, a, R7e(i, r, s)); + e.add(a, a, M7e(i, r, s)); } catch (a) { console.warn(a), console.warn(`An error occured when rendering comment ${r}. Comment will not be shown.`); } return e; -}, new os()], N7e = (t, e) => { +}, new ls()], I7e = (t, e) => { if ((t.isUserEvent("input") || t.isUserEvent("delete") || t.annotation(nie)) && t.startState.doc.lines != t.state.doc.lines) { const r = []; e.positions().positions.value.forEach((n) => { @@ -26672,14 +26672,14 @@ const R7e = (t, e, r) => It.widget({ i ? e.deleteComment(n.commentId) : s != a && (r.push(n.commentId), e.positions().move(n.commentId, o, !1)); }), e.syncSuggestions(...r); } -}, I7e = Xn.define({ +}, $7e = Xn.define({ create() { - return new os().finish(); + return new ls().finish(); }, update(t, e) { - if (D7e(e)) { + if (P7e(e)) { const r = e.state.facet(oC); - return N7e(e, r), r.comments.value.sort(M7e).reduce(...P7e(e)).finish(); + return I7e(e, r), r.comments.value.sort(D7e).reduce(...N7e(e)).finish(); } return t; }, @@ -26711,11 +26711,11 @@ const R7e = (t, e, r) => It.widget({ }; let Zd = i0; br(Zd, "MAIN_CLASS", "comment-gutter"), br(Zd, "ICON_CLASS", "comment-gutter-icon"), br(Zd, "COMMENT_IMAGE_CLASS", "comment-image"); -const $7e = (t, e, r) => { +const B7e = (t, e, r) => { var s; const n = t.state.doc.lineAt(e.to).number, i = (s = r.findCommentOn(n)) == null ? void 0 : s.commentId; return i || r.newComment(n); -}, B7e = BT({ +}, F7e = BT({ lineMarker(t, e) { return new Zd(e, t); }, @@ -26723,13 +26723,13 @@ const $7e = (t, e, r) => { initialSpacer: () => new Zd(null, null), domEventHandlers: { click(t, e) { - let r = t.state.facet(oC.reader), n = $7e(t, e, r); + let r = t.state.facet(oC.reader), n = B7e(t, e, r); r.display().switchVisibility(n), t.dispatch({ effects: V2.of(null) }); } } -}), F7e = (t) => [oC.of(t), I7e, B7e, kt.updateListener.of((e) => t.syncComments(e))]; +}), z7e = (t) => [oC.of(t), $7e, F7e, kt.updateListener.of((e) => t.syncComments(e))]; class Mh { constructor(e) { this.state = e; @@ -26738,22 +26738,22 @@ class Mh { return []; } } -class z7e extends Mh { +class Q7e extends Mh { run(e) { const r = new this.state.Token("code_inline", "code", 0); return r.content = e.content, [r]; } } -const Q7e = { - raw: z7e +const U7e = { + raw: Q7e }, h9 = "math_inline"; -class U7e extends Mh { +class V7e extends Mh { run(e) { const r = new this.state.Token(h9, "span", 0); return r.attrSet("class", "math inline"), r.markup = "$", r.content = e.content, [r]; } } -function V7e(t, e) { +function q7e(t, e) { var r; !(!((r = e == null ? void 0 : e.roles) === null || r === void 0) && r.math) || t.renderer.rules[h9] || (t.renderer.rules[h9] = (n, i) => { var s, a, o; @@ -26761,19 +26761,19 @@ function V7e(t, e) { return `${f}`; }); } -const q7e = { - math: U7e +const Y7e = { + math: V7e }; function iie(t, e) { - e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", Y7e), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", G7e(e.roles || {})), t.renderer.rules.role = (r, n) => { + e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", W7e), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", X7e(e.roles || {})), t.renderer.rules.role = (r, n) => { const i = r[n]; return `${i.meta.name}${i.content}`; - }, V7e(t, e); + }, q7e(t, e); } -function Y7e(t, e) { +function W7e(t, e) { if (t.src.charCodeAt(t.pos - 1) === 92) return !1; - const r = W7e.exec(t.src.slice(t.pos)); + const r = G7e.exec(t.src.slice(t.pos)); if (r == null) return !1; const [n, i, , s] = r; @@ -26789,8 +26789,8 @@ try { } catch { f9 = /^\{([a-zA-Z_\-+:]{1,36})\}(`+)(?!`)(.+?)\2(?!`)/; } -const W7e = f9; -function G7e(t) { +const G7e = f9; +function X7e(t) { function e(r) { var n; for (const i of r.tokens) @@ -26840,11 +26840,11 @@ class kU extends Mh { return i.markup = "~", [r, n, i]; } } -const X7e = /^(.+?)\(([^()]+)\)$/; +const H7e = /^(.+?)\(([^()]+)\)$/; class SU extends Mh { run(e) { var r, n, i, s; - const a = X7e.exec(e.content), o = (n = (r = a == null ? void 0 : a[1]) === null || r === void 0 ? void 0 : r.trim()) !== null && n !== void 0 ? n : e.content.trim(), l = (s = (i = a == null ? void 0 : a[2]) === null || i === void 0 ? void 0 : i.trim()) !== null && s !== void 0 ? s : null, u = new this.state.Token("abbr_open", "abbr", 1); + const a = H7e.exec(e.content), o = (n = (r = a == null ? void 0 : a[1]) === null || r === void 0 ? void 0 : r.trim()) !== null && n !== void 0 ? n : e.content.trim(), l = (s = (i = a == null ? void 0 : a[2]) === null || i === void 0 ? void 0 : i.trim()) !== null && s !== void 0 ? s : null, u = new this.state.Token("abbr_open", "abbr", 1); l && u.attrSet("title", l); const h = new this.state.Token("text", "", 0); h.content = o; @@ -26852,7 +26852,7 @@ class SU extends Mh { return [u, h, f]; } } -const H7e = { +const Z7e = { subscript: OU, sub: OU, superscript: kU, @@ -26869,24 +26869,24 @@ function lC(t) { const n = (r = (e = t.env) === null || e === void 0 ? void 0 : e.docutils) !== null && r !== void 0 ? r : {}; return n.targets || (n.targets = {}), n.references || (n.references = []), n.numbering || (n.numbering = {}), t.env.docutils || (t.env.docutils = n), n; } -function Z7e(t) { +function j7e(t) { var e, r; const n = (r = (e = t.meta) === null || e === void 0 ? void 0 : e.docutils) !== null && r !== void 0 ? r : {}; return t.meta || (t.meta = {}), t.meta.docutils || (t.meta.docutils = n), n; } -function j7e(t, e) { +function K7e(t, e) { const r = lC(t); return r.numbering[e] == null ? r.numbering[e] = 1 : r.numbering[e] += 1, r.numbering[e]; } function sie(t, e, r, n, i, s = !1) { - const a = lC(t), o = j7e(t, r), l = { + const a = lC(t), o = K7e(t, r), l = { label: n, kind: r, number: o, title: i }; if (!s) { - const u = Z7e(e); + const u = j7e(e); u.target = l, e.attrSet("id", n), a.targets[n] = l; } return l; @@ -26896,7 +26896,7 @@ function uP(t, e, r, n) { e.open.meta = (i = e.open.meta) !== null && i !== void 0 ? i : {}, e.open.meta.kind = r.kind, e.open.meta.label = r.label, e.open.meta.value = r.value, lC(t).references.push(Object.assign({ label: r.label, tokens: e }, n)); } const aie = /^(.+?)<([^<>]+)>$/; -class K7e extends Mh { +class J7e extends Mh { run(e) { const r = new this.state.Token("ref_open", "a", 1), n = new this.state.Token("text", "", 0), i = new this.state.Token("ref_close", "a", -1); return uP(this.state, { open: r, content: n, close: i }, { kind: "eq", label: e.content }, { @@ -26905,7 +26905,7 @@ class K7e extends Mh { }), [r, n, i]; } } -class J7e extends Mh { +class e8e extends Mh { run(e) { const r = aie.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); return uP(this.state, { open: a, content: o, close: l }, { kind: "numref", label: i || e.content, value: s }, { @@ -26913,7 +26913,7 @@ class J7e extends Mh { }), [a, o, l]; } } -class e8e extends Mh { +class t8e extends Mh { run(e) { const r = aie.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); return uP(this.state, { open: a, content: o, close: l }, { kind: "ref", label: i || e.content, value: s }, { @@ -26921,44 +26921,44 @@ class e8e extends Mh { }), [a, o, l]; } } -const t8e = { - eq: K7e, - ref: e8e, - numref: J7e -}, r8e = Object.assign(Object.assign(Object.assign(Object.assign({}, Q7e), H7e), q7e), t8e); +const r8e = { + eq: J7e, + ref: t8e, + numref: e8e +}, n8e = Object.assign(Object.assign(Object.assign(Object.assign({}, U7e), Z7e), Y7e), r8e); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function oie(t) { return typeof t > "u" || t === null; } -function n8e(t) { +function i8e(t) { return typeof t == "object" && t !== null; } -function i8e(t) { +function s8e(t) { return Array.isArray(t) ? t : oie(t) ? [] : [t]; } -function s8e(t, e) { +function a8e(t, e) { var r, n, i, s; if (e) for (s = Object.keys(e), r = 0, n = s.length; r < n; r += 1) i = s[r], t[i] = e[i]; return t; } -function a8e(t, e) { +function o8e(t, e) { var r = "", n; for (n = 0; n < e; n += 1) r += t; return r; } -function o8e(t) { +function l8e(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -var l8e = oie, c8e = n8e, u8e = i8e, h8e = a8e, f8e = o8e, d8e = s8e, zi = { - isNothing: l8e, - isObject: c8e, - toArray: u8e, - repeat: h8e, - isNegativeZero: f8e, - extend: d8e +var c8e = oie, u8e = i8e, h8e = s8e, f8e = o8e, d8e = l8e, p8e = a8e, Qi = { + isNothing: c8e, + isObject: u8e, + toArray: h8e, + repeat: f8e, + isNegativeZero: d8e, + extend: p8e }; function lie(t, e) { var r = "", n = t.reason || "(unknown reason)"; @@ -26983,9 +26983,9 @@ function f6(t, e, r, n, i) { }; } function d6(t, e) { - return zi.repeat(" ", e - t.length) + t; + return Qi.repeat(" ", e - t.length) + t; } -function p8e(t, e) { +function g8e(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); @@ -27000,10 +27000,10 @@ function p8e(t, e) { i[a - l], t.position - (n[a] - n[a - l]), f - ), o = zi.repeat(" ", e.indent) + d6((t.line - l + 1).toString(), h) + " | " + u.str + ` + ), o = Qi.repeat(" ", e.indent) + d6((t.line - l + 1).toString(), h) + " | " + u.str + ` ` + o; - for (u = f6(t.buffer, n[a], i[a], t.position, f), o += zi.repeat(" ", e.indent) + d6((t.line + 1).toString(), h) + " | " + u.str + ` -`, o += zi.repeat("-", e.indent + h + 3 + u.pos) + `^ + for (u = f6(t.buffer, n[a], i[a], t.position, f), o += Qi.repeat(" ", e.indent) + d6((t.line + 1).toString(), h) + " | " + u.str + ` +`, o += Qi.repeat("-", e.indent + h + 3 + u.pos) + `^ `, l = 1; l <= e.linesAfter && !(a + l >= i.length); l++) u = f6( t.buffer, @@ -27011,11 +27011,11 @@ function p8e(t, e) { i[a + l], t.position - (n[a] - n[a + l]), f - ), o += zi.repeat(" ", e.indent) + d6((t.line + l + 1).toString(), h) + " | " + u.str + ` + ), o += Qi.repeat(" ", e.indent) + d6((t.line + l + 1).toString(), h) + " | " + u.str + ` `; return o.replace(/\n$/, ""); } -var g8e = p8e, m8e = [ +var m8e = g8e, v8e = [ "kind", "multi", "resolve", @@ -27026,12 +27026,12 @@ var g8e = p8e, m8e = [ "representName", "defaultStyle", "styleAliases" -], v8e = [ +], y8e = [ "scalar", "sequence", "mapping" ]; -function y8e(t) { +function b8e(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(r) { t[r].forEach(function(n) { @@ -27039,18 +27039,18 @@ function y8e(t) { }); }), e; } -function b8e(t, e) { +function x8e(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if (m8e.indexOf(r) === -1) + if (v8e.indexOf(r) === -1) throw new Oa('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(r) { return r; - }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = y8e(e.styleAliases || null), v8e.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 = b8e(e.styleAliases || null), y8e.indexOf(this.kind) === -1) throw new Oa('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -var Cs = b8e; +var Es = x8e; function TU(t, e) { var r = []; return t[e].forEach(function(n) { @@ -27060,7 +27060,7 @@ function TU(t, e) { }), r[i] = n; }), r; } -function x8e() { +function w8e() { var t = { scalar: {}, sequence: {}, @@ -27085,7 +27085,7 @@ function d9(t) { } d9.prototype.extend = function(e) { var r = [], n = []; - if (e instanceof Cs) + if (e instanceof Es) n.push(e); else if (Array.isArray(e)) n = n.concat(e); @@ -27094,30 +27094,30 @@ d9.prototype.extend = function(e) { else throw new Oa("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })"); r.forEach(function(s) { - if (!(s instanceof Cs)) + if (!(s instanceof Es)) throw new Oa("Specified list of YAML types (or a single Type object) contains a non-Type object."); if (s.loadKind && s.loadKind !== "scalar") throw new Oa("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported."); if (s.multi) throw new Oa("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit."); }), n.forEach(function(s) { - if (!(s instanceof Cs)) + if (!(s instanceof Es)) throw new Oa("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); var i = Object.create(d9.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = TU(i, "implicit"), i.compiledExplicit = TU(i, "explicit"), i.compiledTypeMap = x8e(i.compiledImplicit, i.compiledExplicit), i; + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = TU(i, "implicit"), i.compiledExplicit = TU(i, "explicit"), i.compiledTypeMap = w8e(i.compiledImplicit, i.compiledExplicit), i; }; -var cie = d9, uie = new Cs("tag:yaml.org,2002:str", { +var cie = d9, uie = new Es("tag:yaml.org,2002:str", { kind: "scalar", construct: function(t) { return t !== null ? t : ""; } -}), hie = new Cs("tag:yaml.org,2002:seq", { +}), hie = new Es("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(t) { return t !== null ? t : []; } -}), fie = new Cs("tag:yaml.org,2002:map", { +}), fie = new Es("tag:yaml.org,2002:map", { kind: "mapping", construct: function(t) { return t !== null ? t : {}; @@ -27129,23 +27129,23 @@ var cie = d9, uie = new Cs("tag:yaml.org,2002:str", { fie ] }); -function w8e(t) { +function O8e(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -function O8e() { +function k8e() { return null; } -function k8e(t) { +function S8e(t) { return t === null; } -var pie = new Cs("tag:yaml.org,2002:null", { +var pie = new Es("tag:yaml.org,2002:null", { kind: "scalar", - resolve: w8e, - construct: O8e, - predicate: k8e, + resolve: O8e, + construct: k8e, + predicate: S8e, represent: { canonical: function() { return "~"; @@ -27165,23 +27165,23 @@ var pie = new Cs("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function S8e(t) { +function T8e(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 T8e(t) { +function C8e(t) { return t === "true" || t === "True" || t === "TRUE"; } -function C8e(t) { +function E8e(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -var gie = new Cs("tag:yaml.org,2002:bool", { +var gie = new Es("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: S8e, - construct: T8e, - predicate: C8e, + resolve: T8e, + construct: C8e, + predicate: E8e, represent: { lowercase: function(t) { return t ? "true" : "false"; @@ -27195,16 +27195,16 @@ var gie = new Cs("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function E8e(t) { +function _8e(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -function _8e(t) { +function A8e(t) { return 48 <= t && t <= 55; } -function A8e(t) { +function L8e(t) { return 48 <= t && t <= 57; } -function L8e(t) { +function R8e(t) { if (t === null) return !1; var e = t.length, r = 0, n = !1, i; @@ -27225,7 +27225,7 @@ function L8e(t) { if (i === "x") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!E8e(t.charCodeAt(r))) + if (!_8e(t.charCodeAt(r))) return !1; n = !0; } @@ -27234,7 +27234,7 @@ function L8e(t) { if (i === "o") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!_8e(t.charCodeAt(r))) + if (!A8e(t.charCodeAt(r))) return !1; n = !0; } @@ -27245,13 +27245,13 @@ function L8e(t) { return !1; for (; r < e; r++) if (i = t[r], i !== "_") { - if (!A8e(t.charCodeAt(r))) + if (!L8e(t.charCodeAt(r))) return !1; n = !0; } return !(!n || i === "_"); } -function R8e(t) { +function M8e(t) { var e = t, r = 1, n; if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), n = e[0], (n === "-" || n === "+") && (n === "-" && (r = -1), e = e.slice(1), n = e[0]), e === "0") return 0; @@ -27265,14 +27265,14 @@ function R8e(t) { } return r * parseInt(e, 10); } -function M8e(t) { - return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !zi.isNegativeZero(t); +function D8e(t) { + return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Qi.isNegativeZero(t); } -var mie = new Cs("tag:yaml.org,2002:int", { +var mie = new Es("tag:yaml.org,2002:int", { kind: "scalar", - resolve: L8e, - construct: R8e, - predicate: M8e, + resolve: R8e, + construct: M8e, + predicate: D8e, represent: { binary: function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -27294,18 +27294,18 @@ var mie = new Cs("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), D8e = new RegExp( +}), P8e = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function P8e(t) { - return !(t === null || !D8e.test(t) || t[t.length - 1] === "_"); -} function N8e(t) { + return !(t === null || !P8e.test(t) || t[t.length - 1] === "_"); +} +function I8e(t) { var e, r; return e = t.replace(/_/g, "").toLowerCase(), r = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : r * parseFloat(e, 10); } -var I8e = /^[-+]?[0-9]+e/; -function $8e(t, e) { +var $8e = /^[-+]?[0-9]+e/; +function B8e(t, e) { var r; if (isNaN(t)) switch (e) { @@ -27334,19 +27334,19 @@ function $8e(t, e) { case "camelcase": return "-.Inf"; } - else if (zi.isNegativeZero(t)) + else if (Qi.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), I8e.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), $8e.test(r) ? r.replace("e", ".e") : r; } -function B8e(t) { - return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || zi.isNegativeZero(t)); +function F8e(t) { + return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Qi.isNegativeZero(t)); } -var vie = new Cs("tag:yaml.org,2002:float", { +var vie = new Es("tag:yaml.org,2002:float", { kind: "scalar", - resolve: P8e, - construct: N8e, - predicate: B8e, - represent: $8e, + resolve: N8e, + construct: I8e, + predicate: F8e, + represent: B8e, defaultStyle: "lowercase" }), yie = die.extend({ implicit: [ @@ -27360,10 +27360,10 @@ var vie = new Cs("tag:yaml.org,2002:float", { ), wie = 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 F8e(t) { +function z8e(t) { return t === null ? !1 : xie.exec(t) !== null || wie.exec(t) !== null; } -function z8e(t) { +function Q8e(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; if (e = xie.exec(t), e === null && (e = wie.exec(t)), e === null) throw new Error("Date resolve error"); @@ -27376,25 +27376,25 @@ function z8e(t) { } return e[9] && (h = +e[10], f = +(e[11] || 0), u = (h * 60 + f) * 6e4, e[9] === "-" && (u = -u)), d = new Date(Date.UTC(r, n, i, s, a, o, l)), u && d.setTime(d.getTime() - u), d; } -function Q8e(t) { +function U8e(t) { return t.toISOString(); } -var Oie = new Cs("tag:yaml.org,2002:timestamp", { +var Oie = new Es("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: F8e, - construct: z8e, + resolve: z8e, + construct: Q8e, instanceOf: Date, - represent: Q8e + represent: U8e }); -function U8e(t) { +function V8e(t) { return t === "<<" || t === null; } -var kie = new Cs("tag:yaml.org,2002:merge", { +var kie = new Es("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: U8e + resolve: V8e }), hP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function V8e(t) { +function q8e(t) { if (t === null) return !1; var e, r, n = 0, i = t.length, s = hP; @@ -27406,37 +27406,37 @@ function V8e(t) { } return n % 8 === 0; } -function q8e(t) { +function Y8e(t) { var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = hP, a = 0, o = []; for (e = 0; e < i; e++) e % 4 === 0 && e && (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)), a = a << 6 | s.indexOf(n.charAt(e)); return r = i % 4 * 6, r === 0 ? (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)) : r === 18 ? (o.push(a >> 10 & 255), o.push(a >> 2 & 255)) : r === 12 && o.push(a >> 4 & 255), new Uint8Array(o); } -function Y8e(t) { +function W8e(t) { var e = "", r = 0, n, i, s = t.length, a = hP; for (n = 0; n < s; n++) n % 3 === 0 && n && (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]), r = (r << 8) + t[n]; return i = s % 3, i === 0 ? (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]) : i === 2 ? (e += a[r >> 10 & 63], e += a[r >> 4 & 63], e += a[r << 2 & 63], e += a[64]) : i === 1 && (e += a[r >> 2 & 63], e += a[r << 4 & 63], e += a[64], e += a[64]), e; } -function W8e(t) { +function G8e(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -var Sie = new Cs("tag:yaml.org,2002:binary", { +var Sie = new Es("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: V8e, - construct: q8e, - predicate: W8e, - represent: Y8e -}), G8e = Object.prototype.hasOwnProperty, X8e = Object.prototype.toString; -function H8e(t) { + resolve: q8e, + construct: Y8e, + predicate: G8e, + represent: W8e +}), X8e = Object.prototype.hasOwnProperty, H8e = Object.prototype.toString; +function Z8e(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; for (r = 0, n = o.length; r < n; r += 1) { - if (i = o[r], a = !1, X8e.call(i) !== "[object Object]") + if (i = o[r], a = !1, H8e.call(i) !== "[object Object]") return !1; for (s in i) - if (G8e.call(i, s)) + if (X8e.call(i, s)) if (!a) a = !0; else @@ -27450,26 +27450,26 @@ function H8e(t) { } return !0; } -function Z8e(t) { +function j8e(t) { return t !== null ? t : []; } -var Tie = new Cs("tag:yaml.org,2002:omap", { +var Tie = new Es("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: H8e, - construct: Z8e -}), j8e = Object.prototype.toString; -function K8e(t) { + resolve: Z8e, + construct: j8e +}), K8e = Object.prototype.toString; +function J8e(t) { if (t === null) return !0; var e, r, n, i, s, a = t; for (s = new Array(a.length), e = 0, r = a.length; e < r; e += 1) { - if (n = a[e], j8e.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], K8e.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } return !0; } -function J8e(t) { +function e9e(t) { if (t === null) return []; var e, r, n, i, s, a = t; @@ -27477,27 +27477,27 @@ function J8e(t) { n = a[e], i = Object.keys(n), s[e] = [i[0], n[i[0]]]; return s; } -var Cie = new Cs("tag:yaml.org,2002:pairs", { +var Cie = new Es("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: K8e, - construct: J8e -}), e9e = Object.prototype.hasOwnProperty; -function t9e(t) { + resolve: J8e, + construct: e9e +}), t9e = Object.prototype.hasOwnProperty; +function r9e(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (e9e.call(r, e) && r[e] !== null) + if (t9e.call(r, e) && r[e] !== null) return !1; return !0; } -function r9e(t) { +function n9e(t) { return t !== null ? t : {}; } -var Eie = new Cs("tag:yaml.org,2002:set", { +var Eie = new Es("tag:yaml.org,2002:set", { kind: "mapping", - resolve: t9e, - construct: r9e + resolve: r9e, + construct: n9e }), fP = bie.extend({ implicit: [ Oie, @@ -27509,46 +27509,46 @@ var Eie = new Cs("tag:yaml.org,2002:set", { Cie, Eie ] -}), qf = Object.prototype.hasOwnProperty, t3 = 1, _ie = 2, Aie = 3, r3 = 4, p6 = 1, n9e = 2, CU = 3, i9e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, s9e = /[\x85\u2028\u2029]/, a9e = /[,\[\]\{\}]/, Lie = /^(?:!|!!|![a-z\-]+!)$/i, Rie = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +}), qf = Object.prototype.hasOwnProperty, t3 = 1, _ie = 2, Aie = 3, r3 = 4, p6 = 1, i9e = 2, CU = 3, s9e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, a9e = /[\x85\u2028\u2029]/, o9e = /[,\[\]\{\}]/, Lie = /^(?:!|!!|![a-z\-]+!)$/i, Rie = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function EU(t) { return Object.prototype.toString.call(t); } function tu(t) { return t === 10 || t === 13; } -function T0(t) { +function C0(t) { return t === 9 || t === 32; } function ro(t) { return t === 9 || t === 32 || t === 10 || t === 13; } -function vg(t) { +function bg(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } -function o9e(t) { +function l9e(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -function l9e(t) { +function c9e(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -function c9e(t) { +function u9e(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } function _U(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 u9e(t) { +function h9e(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 ); } var Mie = new Array(256), Die = new Array(256); -for (var Wp = 0; Wp < 256; Wp++) - Mie[Wp] = _U(Wp) ? 1 : 0, Die[Wp] = _U(Wp); -function h9e(t, e) { +for (var Gp = 0; Gp < 256; Gp++) + Mie[Gp] = _U(Gp) ? 1 : 0, Die[Gp] = _U(Gp); +function f9e(t, e) { this.input = t, this.filename = e.filename || null, this.schema = e.schema || fP, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = []; } function Pie(t, e) { @@ -27559,7 +27559,7 @@ function Pie(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = g8e(r), new Oa(e, r); + return r.snippet = m8e(r), new Oa(e, r); } function Kt(t, e) { throw Pie(t, e); @@ -27590,16 +27590,16 @@ function Tf(t, e, r, n) { for (i = 0, s = o.length; i < s; i += 1) a = o.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || Kt(t, "expected valid JSON character"); else - i9e.test(o) && Kt(t, "the stream contains non-printable characters"); + s9e.test(o) && Kt(t, "the stream contains non-printable characters"); t.result += o; } } function LU(t, e, r, n) { var i, s, a, o; - for (zi.isObject(r) || Kt(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1) + for (Qi.isObject(r) || Kt(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1) s = i[a], qf.call(e, s) || (e[s] = r[s], n[s] = !0); } -function yg(t, e, r, n, i, s, a, o, l) { +function xg(t, e, r, n, i, s, a, o, l) { var u, h; if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), u = 0, h = i.length; u < h; u += 1) @@ -27625,7 +27625,7 @@ function dP(t) { } function Ci(t, e, r) { for (var n = 0, i = t.input.charCodeAt(t.position); i !== 0; ) { - for (; T0(i); ) + for (; C0(i); ) i === 9 && t.firstTabInLine === -1 && (t.firstTabInLine = t.position), i = t.input.charCodeAt(++t.position); if (e && i === 35) do @@ -27644,22 +27644,22 @@ function cC(t) { return r = t.input.charCodeAt(e), !!((r === 45 || r === 46) && r === t.input.charCodeAt(e + 1) && r === t.input.charCodeAt(e + 2) && (e += 3, r = t.input.charCodeAt(e), r === 0 || ro(r))); } function pP(t, e) { - e === 1 ? t.result += " " : e > 1 && (t.result += zi.repeat(` + e === 1 ? t.result += " " : e > 1 && (t.result += Qi.repeat(` `, e - 1)); } -function f9e(t, e, r) { +function d9e(t, e, r) { var n, i, s, a, o, l, u, h, f = t.kind, d = t.result, p; - if (p = t.input.charCodeAt(t.position), ro(p) || vg(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = t.input.charCodeAt(t.position + 1), ro(i) || r && vg(i))) + if (p = t.input.charCodeAt(t.position), ro(p) || bg(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = t.input.charCodeAt(t.position + 1), ro(i) || r && bg(i))) return !1; for (t.kind = "scalar", t.result = "", s = a = t.position, o = !1; p !== 0; ) { if (p === 58) { - if (i = t.input.charCodeAt(t.position + 1), ro(i) || r && vg(i)) + if (i = t.input.charCodeAt(t.position + 1), ro(i) || r && bg(i)) break; } else if (p === 35) { if (n = t.input.charCodeAt(t.position - 1), ro(n)) break; } else { - if (t.position === t.lineStart && cC(t) || r && vg(p)) + if (t.position === t.lineStart && cC(t) || r && bg(p)) break; if (tu(p)) if (l = t.line, u = t.lineStart, h = t.lineIndent, Ci(t, !1, -1), t.lineIndent >= e) { @@ -27670,11 +27670,11 @@ function f9e(t, e, r) { break; } } - o && (Tf(t, s, a, !1), pP(t, t.line - l), s = a = t.position, o = !1), T0(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); + o && (Tf(t, s, a, !1), pP(t, t.line - l), s = a = t.position, o = !1), C0(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); } return Tf(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } -function d9e(t, e) { +function p9e(t, e) { var r, n, i; if (r = t.input.charCodeAt(t.position), r !== 39) return !1; @@ -27688,7 +27688,7 @@ function d9e(t, e) { tu(r) ? (Tf(t, n, i, !0), pP(t, Ci(t, !1, e)), n = i = t.position) : t.position === t.lineStart && cC(t) ? Kt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); Kt(t, "unexpected end of the stream within a single quoted scalar"); } -function p9e(t, e) { +function g9e(t, e) { var r, n, i, s, a, o; if (o = t.input.charCodeAt(t.position), o !== 34) return !1; @@ -27700,10 +27700,10 @@ function p9e(t, e) { Ci(t, !1, e); else if (o < 256 && Mie[o]) t.result += Die[o], t.position++; - else if ((a = l9e(o)) > 0) { + else if ((a = c9e(o)) > 0) { for (i = a, s = 0; i > 0; i--) - o = t.input.charCodeAt(++t.position), (a = o9e(o)) >= 0 ? s = (s << 4) + a : Kt(t, "expected hexadecimal character"); - t.result += u9e(s), t.position++; + o = t.input.charCodeAt(++t.position), (a = l9e(o)) >= 0 ? s = (s << 4) + a : Kt(t, "expected hexadecimal character"); + t.result += h9e(s), t.position++; } else Kt(t, "unknown escape sequence"); r = n = t.position; @@ -27712,7 +27712,7 @@ function p9e(t, e) { } Kt(t, "unexpected end of the stream within a double quoted scalar"); } -function g9e(t, e) { +function m9e(t, e) { var r = !0, n, i, s, a = t.tag, o, l = t.anchor, u, h, f, d, p, g = /* @__PURE__ */ Object.create(null), m, v, y, b; if (b = t.input.charCodeAt(t.position), b === 91) h = 93, p = !1, o = []; @@ -27723,11 +27723,11 @@ function g9e(t, e) { for (t.anchor !== null && (t.anchorMap[t.anchor] = o), b = t.input.charCodeAt(++t.position); b !== 0; ) { if (Ci(t, !0, e), b = t.input.charCodeAt(t.position), b === h) return t.position++, t.tag = a, t.anchor = l, t.kind = p ? "mapping" : "sequence", t.result = o, !0; - r ? b === 44 && Kt(t, "expected the node content, but found ','") : Kt(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), ro(u) && (f = d = !0, t.position++, Ci(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, Tm(t, e, t3, !1, !0), v = t.tag, m = t.result, Ci(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), Ci(t, !0, e), Tm(t, e, t3, !1, !0), y = t.result), p ? yg(t, o, g, v, m, y, n, i, s) : f ? o.push(yg(t, null, g, v, m, y, n, i, s)) : o.push(m), Ci(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; + r ? b === 44 && Kt(t, "expected the node content, but found ','") : Kt(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), ro(u) && (f = d = !0, t.position++, Ci(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, Cm(t, e, t3, !1, !0), v = t.tag, m = t.result, Ci(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), Ci(t, !0, e), Cm(t, e, t3, !1, !0), y = t.result), p ? xg(t, o, g, v, m, y, n, i, s) : f ? o.push(xg(t, null, g, v, m, y, n, i, s)) : o.push(m), Ci(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; } Kt(t, "unexpected end of the stream within a flow collection"); } -function m9e(t, e) { +function v9e(t, e) { var r, n, i = p6, s = !1, a = !1, o = e, l = 0, u = !1, h, f; if (f = t.input.charCodeAt(t.position), f === 124) n = !1; @@ -27737,15 +27737,15 @@ function m9e(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - p6 === i ? i = f === 43 ? CU : n9e : Kt(t, "repeat of a chomping mode identifier"); - else if ((h = c9e(f)) >= 0) + p6 === i ? i = f === 43 ? CU : i9e : Kt(t, "repeat of a chomping mode identifier"); + else if ((h = u9e(f)) >= 0) h === 0 ? Kt(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Kt(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; - if (T0(f)) { + if (C0(f)) { do f = t.input.charCodeAt(++t.position); - while (T0(f)); + while (C0(f)); if (f === 35) do f = t.input.charCodeAt(++t.position); @@ -27759,15 +27759,15 @@ function m9e(t, e) { continue; } if (t.lineIndent < o) { - i === CU ? t.result += zi.repeat(` + i === CU ? t.result += Qi.repeat(` `, s ? 1 + l : l) : i === p6 && s && (t.result += ` `); break; } - for (n ? T0(f) ? (u = !0, t.result += zi.repeat(` -`, s ? 1 + l : l)) : u ? (u = !1, t.result += zi.repeat(` -`, l + 1)) : l === 0 ? s && (t.result += " ") : t.result += zi.repeat(` -`, l) : t.result += zi.repeat(` + for (n ? C0(f) ? (u = !0, t.result += Qi.repeat(` +`, s ? 1 + l : l)) : u ? (u = !1, t.result += Qi.repeat(` +`, l + 1)) : l === 0 ? s && (t.result += " ") : t.result += Qi.repeat(` +`, l) : t.result += Qi.repeat(` `, s ? 1 + l : l), s = !0, a = !0, l = 0, r = t.position; !tu(f) && f !== 0; ) f = t.input.charCodeAt(++t.position); Tf(t, r, t.position, !1); @@ -27783,28 +27783,28 @@ function RU(t, e) { s.push(null), l = t.input.charCodeAt(t.position); continue; } - if (r = t.line, Tm(t, e, Aie, !1, !0), s.push(t.result), Ci(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) + if (r = t.line, Cm(t, e, Aie, !1, !0), s.push(t.result), Ci(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) Kt(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; } return o ? (t.tag = n, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } -function v9e(t, e, r) { +function y9e(t, e, r) { var n, i, s, a, o, l, u = t.tag, h = t.anchor, f = {}, d = /* @__PURE__ */ Object.create(null), p = null, g = null, m = null, v = !1, y = !1, b; if (t.firstTabInLine !== -1) return !1; for (t.anchor !== null && (t.anchorMap[t.anchor] = f), b = t.input.charCodeAt(t.position); b !== 0; ) { if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Kt(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && ro(n)) - b === 63 ? (v && (yg(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : Kt(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = n; + b === 63 ? (v && (xg(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : Kt(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = n; else { - if (a = t.line, o = t.lineStart, l = t.position, !Tm(t, r, _ie, !1, !0)) + if (a = t.line, o = t.lineStart, l = t.position, !Cm(t, r, _ie, !1, !0)) break; if (t.line === s) { - for (b = t.input.charCodeAt(t.position); T0(b); ) + for (b = t.input.charCodeAt(t.position); C0(b); ) b = t.input.charCodeAt(++t.position); if (b === 58) - b = t.input.charCodeAt(++t.position), ro(b) || Kt(t, "a whitespace character is expected after the key-value separator within a block mapping"), v && (yg(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !1, i = !1, p = t.tag, g = t.result; + b = t.input.charCodeAt(++t.position), ro(b) || Kt(t, "a whitespace character is expected after the key-value separator within a block mapping"), v && (xg(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !1, i = !1, p = t.tag, g = t.result; else if (y) Kt(t, "can not read an implicit mapping pair; a colon is missed"); else @@ -27814,14 +27814,14 @@ function v9e(t, e, r) { else return t.tag = u, t.anchor = h, !0; } - if ((t.line === s || t.lineIndent > e) && (v && (a = t.line, o = t.lineStart, l = t.position), Tm(t, e, r3, !0, i) && (v ? g = t.result : m = t.result), v || (yg(t, f, d, p, g, m, a, o, l), p = g = m = null), Ci(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) + if ((t.line === s || t.lineIndent > e) && (v && (a = t.line, o = t.lineStart, l = t.position), Cm(t, e, r3, !0, i) && (v ? g = t.result : m = t.result), v || (xg(t, f, d, p, g, m, a, o, l), p = g = m = null), Ci(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) Kt(t, "bad indentation of a mapping entry"); else if (t.lineIndent < e) break; } - return v && yg(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; + return v && xg(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; } -function y9e(t) { +function b9e(t) { var e, r = !1, n = !1, i, s, a; if (a = t.input.charCodeAt(t.position), a !== 33) return !1; @@ -27833,7 +27833,7 @@ function y9e(t) { } else { for (; a !== 0 && !ro(a); ) a === 33 && (n ? Kt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Lie.test(i) || Kt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), a9e.test(s) && Kt(t, "tag suffix cannot contain flow indicator characters"); + s = t.input.slice(e, t.position), o9e.test(s) && Kt(t, "tag suffix cannot contain flow indicator characters"); } s && !Rie.test(s) && Kt(t, "tag name cannot contain such characters: " + s); try { @@ -27843,28 +27843,28 @@ function y9e(t) { } return r ? t.tag = s : qf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : Kt(t, 'undeclared tag handle "' + i + '"'), !0; } -function b9e(t) { +function x9e(t) { var e, r; if (r = t.input.charCodeAt(t.position), r !== 38) return !1; - for (t.anchor !== null && Kt(t, "duplication of an anchor property"), r = t.input.charCodeAt(++t.position), e = t.position; r !== 0 && !ro(r) && !vg(r); ) + for (t.anchor !== null && Kt(t, "duplication of an anchor property"), r = t.input.charCodeAt(++t.position), e = t.position; r !== 0 && !ro(r) && !bg(r); ) r = t.input.charCodeAt(++t.position); return t.position === e && Kt(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -function x9e(t) { +function w9e(t) { var e, r, n; if (n = t.input.charCodeAt(t.position), n !== 42) return !1; - for (n = t.input.charCodeAt(++t.position), e = t.position; n !== 0 && !ro(n) && !vg(n); ) + for (n = t.input.charCodeAt(++t.position), e = t.position; n !== 0 && !ro(n) && !bg(n); ) n = t.input.charCodeAt(++t.position); return t.position === e && Kt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), qf.call(t.anchorMap, r) || Kt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], Ci(t, !0, -1), !0; } -function Tm(t, e, r, n, i) { +function Cm(t, e, r, n, i) { var s, a, o, l = 1, u = !1, h = !1, f, d, p, g, m, v; if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = r3 === r || Aie === r, n && Ci(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) - for (; y9e(t) || b9e(t); ) + for (; b9e(t) || x9e(t); ) Ci(t, !0, -1) ? (u = !0, o = s, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : o = !1; - if (o && (o = u || i), (l === 1 || r3 === r) && (t3 === r || _ie === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (RU(t, v) || v9e(t, v, m)) || g9e(t, m) ? h = !0 : (a && m9e(t, m) || d9e(t, m) || p9e(t, m) ? h = !0 : x9e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Kt(t, "alias node should not have any properties")) : f9e(t, m, t3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && RU(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || r3 === r) && (t3 === r || _ie === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (RU(t, v) || y9e(t, v, m)) || m9e(t, m) ? h = !0 : (a && v9e(t, m) || p9e(t, m) || g9e(t, m) ? h = !0 : w9e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Kt(t, "alias node should not have any properties")) : d9e(t, m, t3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && RU(t, v))), t.tag === null) t.anchor !== null && (t.anchorMap[t.anchor] = t.result); else if (t.tag === "?") { for (t.result !== null && t.kind !== "scalar" && Kt(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -27885,13 +27885,13 @@ function Tm(t, e, r, n, i) { } return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } -function w9e(t) { +function O9e(t) { var e = t.position, r, n, i, s = !1, a; for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (a = t.input.charCodeAt(t.position)) !== 0 && (Ci(t, !0, -1), a = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || a !== 37)); ) { for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !ro(a); ) a = t.input.charCodeAt(++t.position); for (n = t.input.slice(r, t.position), i = [], n.length < 1 && Kt(t, "directive name must not be less than one character in length"); a !== 0; ) { - for (; T0(a); ) + for (; C0(a); ) a = t.input.charCodeAt(++t.position); if (a === 35) { do @@ -27907,7 +27907,7 @@ function w9e(t) { } a !== 0 && dP(t), qf.call(AU, n) ? AU[n](t, n, i) : n3(t, 'unknown document directive "' + n + '"'); } - if (Ci(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, Ci(t, !0, -1)) : s && Kt(t, "directives end mark is expected"), Tm(t, t.lineIndent - 1, r3, !1, !0), Ci(t, !0, -1), t.checkLineBreaks && s9e.test(t.input.slice(e, t.position)) && n3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && cC(t)) { + if (Ci(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, Ci(t, !0, -1)) : s && Kt(t, "directives end mark is expected"), Cm(t, t.lineIndent - 1, r3, !1, !0), Ci(t, !0, -1), t.checkLineBreaks && a9e.test(t.input.slice(e, t.position)) && n3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && cC(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, Ci(t, !0, -1)); return; } @@ -27919,14 +27919,14 @@ function w9e(t) { function Nie(t, e) { t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += ` `), t.charCodeAt(0) === 65279 && (t = t.slice(1))); - var r = new h9e(t, e), n = t.indexOf("\0"); + var r = new f9e(t, e), n = t.indexOf("\0"); for (n !== -1 && (r.position = n, Kt(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) r.lineIndent += 1, r.position += 1; for (; r.position < r.length - 1; ) - w9e(r); + O9e(r); return r.documents; } -function O9e(t, e, r) { +function k9e(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); var n = Nie(t, r); if (typeof e != "function") @@ -27934,7 +27934,7 @@ function O9e(t, e, r) { for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } -function k9e(t, e) { +function S9e(t, e) { var r = Nie(t, e); if (r.length !== 0) { if (r.length === 1) @@ -27942,10 +27942,10 @@ function k9e(t, e) { throw new Oa("expected a single document in the stream, but found more"); } } -var S9e = O9e, T9e = k9e, Iie = { - loadAll: S9e, - load: T9e -}, $ie = Object.prototype.toString, Bie = Object.prototype.hasOwnProperty, gP = 65279, C9e = 9, W2 = 10, E9e = 13, _9e = 32, A9e = 33, L9e = 34, p9 = 35, R9e = 37, M9e = 38, D9e = 39, P9e = 42, Fie = 44, N9e = 45, i3 = 58, I9e = 61, $9e = 62, B9e = 63, F9e = 64, zie = 91, Qie = 93, z9e = 96, Uie = 123, Q9e = 124, Vie = 125, oa = {}; +var T9e = k9e, C9e = S9e, Iie = { + loadAll: T9e, + load: C9e +}, $ie = Object.prototype.toString, Bie = Object.prototype.hasOwnProperty, gP = 65279, E9e = 9, W2 = 10, _9e = 13, A9e = 32, L9e = 33, R9e = 34, p9 = 35, M9e = 37, D9e = 38, P9e = 39, N9e = 42, Fie = 44, I9e = 45, i3 = 58, $9e = 61, B9e = 62, F9e = 63, z9e = 64, zie = 91, Qie = 93, Q9e = 96, Uie = 123, U9e = 124, Vie = 125, oa = {}; oa[0] = "\\0"; oa[7] = "\\a"; oa[8] = "\\b"; @@ -27961,7 +27961,7 @@ oa[133] = "\\N"; oa[160] = "\\_"; oa[8232] = "\\L"; oa[8233] = "\\P"; -var U9e = [ +var V9e = [ "y", "Y", "yes", @@ -27978,8 +27978,8 @@ var U9e = [ "off", "Off", "OFF" -], V9e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function q9e(t, e) { +], q9e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +function Y9e(t, e) { var r, n, i, s, a, o, l; if (e === null) return {}; @@ -27987,7 +27987,7 @@ function q9e(t, e) { a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && Bie.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } -function Y9e(t) { +function W9e(t) { var e, r, n; if (e = t.toString(16).toUpperCase(), t <= 255) r = "x", n = 2; @@ -27997,14 +27997,14 @@ function Y9e(t) { r = "U", n = 8; else throw new Oa("code point within a string may not be greater than 0xFFFFFFFF"); - return "\\" + r + zi.repeat("0", n - e.length) + e; + return "\\" + r + Qi.repeat("0", n - e.length) + e; } -var W9e = 1, G2 = 2; -function G9e(t) { - this.schema = t.schema || fP, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = zi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = q9e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? G2 : W9e, 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 G9e = 1, G2 = 2; +function X9e(t) { + this.schema = t.schema || fP, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Qi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Y9e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? G2 : G9e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } function MU(t, e) { - for (var r = zi.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) + for (var r = Qi.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) i = t.indexOf(` `, n), i === -1 ? (a = t.slice(n), n = o) : (a = t.slice(n, i + 1), n = i + 1), a.length && a !== ` ` && (s += r), s += a; @@ -28012,9 +28012,9 @@ function MU(t, e) { } function g9(t, e) { return ` -` + zi.repeat(" ", t.indent * e); +` + Qi.repeat(" ", t.indent * e); } -function X9e(t, e) { +function H9e(t, e) { var r, n, i; for (r = 0, n = t.implicitTypes.length; r < n; r += 1) if (i = t.implicitTypes[r], i.resolve(e)) @@ -28022,25 +28022,25 @@ function X9e(t, e) { return !1; } function s3(t) { - return t === _9e || t === C9e; + return t === A9e || t === E9e; } function X2(t) { return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== gP || 65536 <= t && t <= 1114111; } function DU(t) { - return X2(t) && t !== gP && t !== E9e && t !== W2; + return X2(t) && t !== gP && t !== _9e && t !== W2; } function PU(t, e, r) { var n = DU(t), i = n && !s3(t); return (r ? n : n && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie) && t !== p9 && !(e === i3 && !i) || DU(e) && !s3(e) && t === p9 || e === i3 && i; } -function H9e(t) { - return X2(t) && t !== gP && !s3(t) && t !== N9e && t !== B9e && t !== i3 && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie && t !== p9 && t !== M9e && t !== P9e && t !== A9e && t !== Q9e && t !== I9e && t !== $9e && t !== D9e && t !== L9e && t !== R9e && t !== F9e && t !== z9e; -} function Z9e(t) { + return X2(t) && t !== gP && !s3(t) && t !== I9e && t !== F9e && t !== i3 && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie && t !== p9 && t !== D9e && t !== N9e && t !== L9e && t !== U9e && t !== $9e && t !== B9e && t !== P9e && t !== R9e && t !== M9e && t !== z9e && t !== Q9e; +} +function j9e(t) { return !s3(t) && t !== i3; } -function ay(t, e) { +function oy(t, e) { var r = t.charCodeAt(e), n; return r >= 55296 && r <= 56319 && e + 1 < t.length && (n = t.charCodeAt(e + 1), n >= 56320 && n <= 57343) ? (r - 55296) * 1024 + n - 56320 + 65536 : r; } @@ -28048,38 +28048,38 @@ function qie(t) { var e = /^\n* /; return e.test(t); } -var Yie = 1, m9 = 2, Wie = 3, Gie = 4, cg = 5; -function j9e(t, e, r, n, i, s, a, o) { - var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = H9e(ay(t, 0)) && Z9e(ay(t, t.length - 1)); +var Yie = 1, m9 = 2, Wie = 3, Gie = 4, ug = 5; +function K9e(t, e, r, n, i, s, a, o) { + var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = Z9e(oy(t, 0)) && j9e(oy(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { - if (u = ay(t, l), !X2(u)) - return cg; + if (u = oy(t, l), !X2(u)) + return ug; m = m && PU(u, h, o), h = u; } else { for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { - if (u = ay(t, l), u === W2) + if (u = oy(t, l), u === W2) f = !0, p && (d = d || l - g - 1 > n && t[g + 1] !== " ", g = l); else if (!X2(u)) - return cg; + return ug; m = m && PU(u, h, o), h = u; } d = d || p && l - g - 1 > n && t[g + 1] !== " "; } - return !f && !d ? m && !a && !i(t) ? Yie : s === G2 ? cg : m9 : r > 9 && qie(t) ? cg : a ? s === G2 ? cg : m9 : d ? Gie : Wie; + return !f && !d ? m && !a && !i(t) ? Yie : s === G2 ? ug : m9 : r > 9 && qie(t) ? ug : a ? s === G2 ? ug : m9 : d ? Gie : Wie; } -function K9e(t, e, r, n, i) { +function J9e(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === G2 ? '""' : "''"; - if (!t.noCompatMode && (U9e.indexOf(e) !== -1 || V9e.test(e))) + if (!t.noCompatMode && (V9e.indexOf(e) !== -1 || q9e.test(e))) return t.quotingType === G2 ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, r), a = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), o = n || t.flowLevel > -1 && r >= t.flowLevel; function l(u) { - return X9e(t, u); + return H9e(t, u); } - switch (j9e( + switch (K9e( e, o, t.indent, @@ -28096,9 +28096,9 @@ function K9e(t, e, r, n, i) { case Wie: return "|" + NU(e, t.indent) + IU(MU(e, s)); case Gie: - return ">" + NU(e, t.indent) + IU(MU(J9e(e, a), s)); - case cg: - return '"' + eLe(e) + '"'; + return ">" + NU(e, t.indent) + IU(MU(eLe(e, a), s)); + case ug: + return '"' + tLe(e) + '"'; default: throw new Oa("impossible error: invalid scalar style"); } @@ -28116,7 +28116,7 @@ function IU(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } -function J9e(t, e) { +function eLe(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); @@ -28139,12 +28139,12 @@ function $U(t, e) { `, t.length - i > e && a > i ? l += t.slice(i, a) + ` ` + t.slice(a + 1) : l += t.slice(i), l.slice(1); } -function eLe(t) { +function tLe(t) { for (var e = "", r = 0, n, i = 0; i < t.length; r >= 65536 ? i += 2 : i++) - r = ay(t, i), n = oa[r], !n && X2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || Y9e(r); + r = oy(t, i), n = oa[r], !n && X2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || W9e(r); return e; } -function tLe(t, e, r) { +function rLe(t, e, r) { var n = "", i = t.tag, s, a, o; for (s = 0, a = r.length; s < a; s += 1) o = r[s], t.replacer && (o = t.replacer.call(r, String(s), o)), (dh(t, e, o, !1, !1) || typeof o > "u" && dh(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); @@ -28156,13 +28156,13 @@ function BU(t, e, r, n) { l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), (dh(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && dh(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += g9(t, e)), t.dump && W2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); t.tag = s, t.dump = i || "[]"; } -function rLe(t, e, r) { +function nLe(t, e, r) { var n = "", i = t.tag, s = Object.keys(r), a, o, l, u, h; for (a = 0, o = s.length; a < o; a += 1) h = "", n !== "" && (h += ", "), t.condenseFlow && (h += '"'), l = s[a], u = r[l], t.replacer && (u = t.replacer.call(r, l, u)), dh(t, e, l, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), dh(t, e, u, !1, !1) && (h += t.dump, n += h)); t.tag = i, t.dump = "{" + n + "}"; } -function nLe(t, e, r, n) { +function iLe(t, e, r, n) { var i = "", s = t.tag, a = Object.keys(r), o, l, u, h, f, d; if (t.sortKeys === !0) a.sort(); @@ -28200,11 +28200,11 @@ function dh(t, e, r, n, i, s, a) { t.dump = "*ref_" + f; else { if (h && d && !t.usedDuplicates[f] && (t.usedDuplicates[f] = !0), o === "[object Object]") - n && Object.keys(t.dump).length !== 0 ? (nLe(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (rLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && Object.keys(t.dump).length !== 0 ? (iLe(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (nLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object Array]") - n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? BU(t, e - 1, t.dump, i) : BU(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (tLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? BU(t, e - 1, t.dump, i) : BU(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (rLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") - t.tag !== "?" && K9e(t, t.dump, e, s, l); + t.tag !== "?" && J9e(t, t.dump, e, s, l); else { if (o === "[object Undefined]") return !1; @@ -28218,7 +28218,7 @@ function dh(t, e, r, n, i, s, a) { } return !0; } -function iLe(t, e) { +function sLe(t, e) { var r = [], n = [], i, s; for (v9(t, r, n), i = 0, s = n.length; i < s; i += 1) e.duplicates.push(r[n[i]]); @@ -28236,23 +28236,23 @@ function v9(t, e, r) { for (n = Object.keys(t), i = 0, s = n.length; i < s; i += 1) v9(t[n[i]], e, r); } -function sLe(t, e) { +function aLe(t, e) { e = e || {}; - var r = new G9e(e); - r.noRefs || iLe(t, r); + var r = new X9e(e); + r.noRefs || sLe(t, r); var n = t; return r.replacer && (n = r.replacer.call({ "": n }, "", n)), dh(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -var aLe = sLe, oLe = { - dump: aLe +var oLe = aLe, lLe = { + dump: oLe }; function mP(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 lLe = Cs, cLe = cie, uLe = die, hLe = yie, fLe = bie, dLe = fP, pLe = Iie.load, gLe = Iie.loadAll, mLe = oLe.dump, vLe = Oa, yLe = { +var cLe = Es, uLe = cie, hLe = die, fLe = yie, dLe = bie, pLe = fP, gLe = Iie.load, mLe = Iie.loadAll, vLe = lLe.dump, yLe = Oa, bLe = { binary: Sie, float: vie, map: fie, @@ -28266,23 +28266,23 @@ var lLe = Cs, cLe = cie, uLe = die, hLe = yie, fLe = bie, dLe = fP, pLe = Iie.lo omap: Tie, seq: hie, str: uie -}, bLe = mP("safeLoad", "load"), xLe = mP("safeLoadAll", "loadAll"), wLe = mP("safeDump", "dump"), OLe = { - Type: lLe, - Schema: cLe, - FAILSAFE_SCHEMA: uLe, - JSON_SCHEMA: hLe, - CORE_SCHEMA: fLe, - DEFAULT_SCHEMA: dLe, - load: pLe, - loadAll: gLe, - dump: mLe, - YAMLException: vLe, - types: yLe, - safeLoad: bLe, - safeLoadAll: xLe, - safeDump: wLe -}; -function kLe(t, e, r, n, i, s = !0) { +}, xLe = mP("safeLoad", "load"), wLe = mP("safeLoadAll", "loadAll"), OLe = mP("safeDump", "dump"), kLe = { + Type: cLe, + Schema: uLe, + FAILSAFE_SCHEMA: hLe, + JSON_SCHEMA: fLe, + CORE_SCHEMA: dLe, + DEFAULT_SCHEMA: pLe, + load: gLe, + loadAll: mLe, + dump: vLe, + YAMLException: yLe, + types: bLe, + safeLoad: xLe, + safeLoadAll: wLe, + safeDump: OLe +}; +function SLe(t, e, r, n, i, s = !0) { const a = []; for (const l of [...t.core.ruler.__rules__].reverse()) { if (l.name === e) { @@ -28322,7 +28322,7 @@ class md { return (i == null ? void 0 : i.content) !== void 0 && (s.content = i.content), (i == null ? void 0 : i.level) !== void 0 && (s.level = i.level), (i == null ? void 0 : i.map) !== void 0 && (s.map = i.map), (i == null ? void 0 : i.block) !== void 0 && (s.block = i.block), (i == null ? void 0 : i.info) !== void 0 && (s.info = i.info), (i == null ? void 0 : i.meta) !== void 0 && (s.meta = i.meta), (i == null ? void 0 : i.children) !== void 0 && (s.children = i.children), s; } nestedParse(e, r) { - return kLe(this.state.md, "run_directives", e, this.state.env, r, !0); + return SLe(this.state.md, "run_directives", e, this.state.env, r, !0); } } class ff extends Error { @@ -28330,12 +28330,12 @@ class ff extends Error { super(...arguments), this.name = "DirectiveParsingError"; } } -function SLe(t, e) { +function TLe(t, e) { const r = t.meta.arg || "", n = t.content; let i = n.trim() ? n.split(/\r?\n/) : [], s = 0, a = {}; (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, a, s] = Xie(i, e)); let o = []; - if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = TLe(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) + if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = CLe(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) throw new ff("Has content but content not allowed"); return { map: t.map ? t.map : [0, 0], @@ -28379,7 +28379,7 @@ function Xie(t, e) { } if (i !== null) try { - const s = OLe.load(i.join(` + const s = kLe.load(i.join(` `)); if (s !== null && typeof s == "object") n = s; @@ -28406,7 +28406,7 @@ ${u}`); } return [t, n, r]; } -function TLe(t, e) { +function CLe(t, e) { var r; let n = t.trim() ? (r = t.trim()) === null || r === void 0 ? void 0 : r.split(/\s+/) : []; const i = (e.required_arguments || 0) + (e.optional_arguments || 0); @@ -28423,7 +28423,7 @@ function TLe(t, e) { function Hie(t, e) { var r; let n = e.directivesAfter || "block"; - (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", CLe), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", ELe(e.directives || {})), t.renderer.rules.directive = (i, s) => { + (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", ELe), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", _Le(e.directives || {})), t.renderer.rules.directive = (i, s) => { const a = i[s]; return ` `; }; } -function CLe(t) { +function ELe(t) { for (const e of t.tokens) if (e.type === "fence" || e.type === "colon_fence") { const r = e.info.match(/^\{([^\s}]+)\}\s*(.*)$/); @@ -28450,13 +28450,13 @@ function CLe(t) { } return !0; } -function ELe(t) { +function _Le(t) { function e(r) { const n = []; for (const i of r.tokens) if (i.type === "directive" && i.info in t) try { - const s = new t[i.info](r), a = SLe(i, s), [o, l] = Xie(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); + const s = new t[i.info](r), a = TLe(i, s), [o, l] = Xie(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); u.info = i.info, u.hidden = !0, u.content = o.join(` `).trim(), u.meta = { arg: i.meta.arg, @@ -28476,42 +28476,42 @@ function ELe(t) { } return e; } -function _Le(t) { +function ALe(t) { return t.toLowerCase().split(/\s+/).join("-").replace(/[^a-z0-9]+/, "-").replace(/^[-0-9]+|-+$/, ""); } -class $0 extends Error { +class B0 extends Error { constructor() { super(...arguments), this.name = "OptionSpecError"; } } const lu = (t) => t, a3 = (t) => { if (!t) - throw new $0("Argument required but none supplied"); + throw new B0("Argument required but none supplied"); return t; }, y9 = (t) => { if (t.trim()) - throw new $0(`No argument is allowed: "${t}" supplied`); + throw new B0(`No argument is allowed: "${t}" supplied`); return null; -}, vd = (t) => `${t || ""}`.split(/\s+/).map((e) => _Le(e)); +}, vd = (t) => `${t || ""}`.split(/\s+/).map((e) => ALe(e)); function Zie(t) { if (!t) - throw new $0("Value is not set"); + throw new B0("Value is not set"); const e = Number.parseFloat(t); if (Number.isNaN(e) || !Number.isInteger(e)) - throw new $0(`Value "${t}" is not an integer`); + throw new B0(`Value "${t}" is not an integer`); return e; } function o3(t) { const e = Zie(t); if (e < 0) - throw new $0(`Value "${t}" must be positive or zero`); + throw new B0(`Value "${t}" must be positive or zero`); return e; } const jie = (t) => t ? o3(t) : null, Kie = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), o3(t)); function Jie(t, e) { const n = new RegExp(`^(?[0-9.]+)\\s*(?${e.join("|")})$`).exec(t); if (!n || !n.groups) - throw new $0(`not a positive measure of one of the following units: ${e.join("|")}`); + throw new B0(`not a positive measure of one of the following units: ${e.join("|")}`); return n.groups.number + n.groups.units; } const ese = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], vP = (t) => Jie(t, [...ese, ""]), uC = (t, e = "") => { @@ -28525,10 +28525,10 @@ function hC(t) { return (e) => { if (e = e.toLowerCase().trim(), t.includes(e)) return e; - throw new $0(`must be in: ${t.join("|")}`); + throw new B0(`must be in: ${t.join("|")}`); }; } -const ALe = (t) => t; +const LLe = (t) => t; class fc extends md { constructor() { super(...arguments), this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { @@ -28556,75 +28556,75 @@ class fc extends md { return n.push(...o), n.push(this.createToken("admonition_close", "aside", -1, { block: !0 })), n; } } -class LLe extends fc { +class RLe extends fc { constructor() { super(...arguments), this.required_arguments = 1; } } -class RLe extends fc { +class MLe extends fc { constructor() { super(...arguments), this.title = "Attention", this.kind = "attention"; } } -class MLe extends fc { +class DLe extends fc { constructor() { super(...arguments), this.title = "Caution", this.kind = "caution"; } } -class DLe extends fc { +class PLe extends fc { constructor() { super(...arguments), this.title = "Danger", this.kind = "danger"; } } -class PLe extends fc { +class NLe extends fc { constructor() { super(...arguments), this.title = "Error", this.kind = "error"; } } -class NLe extends fc { +class ILe extends fc { constructor() { super(...arguments), this.title = "Important", this.kind = "important"; } } -class ILe extends fc { +class $Le extends fc { constructor() { super(...arguments), this.title = "Hint", this.kind = "hint"; } } -class $Le extends fc { +class BLe extends fc { constructor() { super(...arguments), this.title = "Note", this.kind = "note"; } } -class BLe extends fc { +class FLe extends fc { constructor() { super(...arguments), this.title = "See Also", this.kind = "seealso"; } } -class FLe extends fc { +class zLe extends fc { constructor() { super(...arguments), this.title = "Tip", this.kind = "tip"; } } -class zLe extends fc { +class QLe extends fc { constructor() { super(...arguments), this.title = "Warning", this.kind = "warning"; } } -const QLe = { - admonition: LLe, - attention: RLe, - caution: MLe, - danger: DLe, - error: PLe, - important: NLe, - hint: ILe, - note: $Le, - seealso: BLe, - tip: FLe, - warning: zLe -}; -class ULe extends md { +const ULe = { + admonition: RLe, + attention: MLe, + caution: DLe, + danger: PLe, + error: NLe, + important: ILe, + hint: $Le, + note: BLe, + seealso: FLe, + tip: zLe, + warning: QLe +}; +class VLe extends md { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { "number-lines": jie, @@ -28641,7 +28641,7 @@ class ULe extends md { })]; } } -class VLe extends md { +class qLe extends md { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { linenos: y9, @@ -28662,7 +28662,7 @@ class VLe extends md { })]; } } -class qLe extends md { +class YLe extends md { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.rawOptions = !0; } @@ -28674,10 +28674,10 @@ class qLe extends md { })]; } } -const YLe = { - code: ULe, - "code-block": VLe, - "code-cell": qLe +const WLe = { + code: VLe, + "code-block": qLe, + "code-cell": YLe }, rse = { alt: lu, height: vP, @@ -28692,7 +28692,7 @@ class nse extends md { super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, rse), { align: hC(["left", "center", "right", "top", "middle", "bottom"]) }); } create_image(e) { - const r = ALe(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); + const r = LLe(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); n.attrSet("src", r), n.attrSet("alt", e.options.alt || ""); const i = []; return e.options.alt && this.state.md.inline.parse(e.options.alt, this.state.md, this.state.env, i), n.children = i, e.options.height && n.attrSet("height", e.options.height), e.options.width && n.attrSet("width", e.options.width), e.options.align && n.attrJoin("class", `align-${e.options.align}`), e.options.class && n.attrJoin("class", e.options.class.join(" ")), n; @@ -28701,7 +28701,7 @@ class nse extends md { return [this.create_image(e)]; } } -class WLe extends nse { +class GLe extends nse { constructor() { super(...arguments), this.option_spec = Object.assign(Object.assign({}, rse), { align: hC(["left", "center", "right"]), figwidth: tse, figclass: vd }), this.has_content = !0; } @@ -28748,9 +28748,9 @@ class WLe extends nse { return [r, i, ...s, ...a, o]; } } -const GLe = { +const XLe = { image: nse, - figure: WLe + figure: GLe }; class yP { constructor(e, r = !0) { @@ -28874,7 +28874,7 @@ class yP { return this.attribute_token().attrs; } } -class XLe extends md { +class HLe extends md { 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": o3, @@ -28913,10 +28913,10 @@ class XLe extends md { return a === "td" ? i.push(this.createToken("tbody_close", "tbody", -1, { level: 1 })) : i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("table_close", "table", -1)), i; } } -const HLe = { - "list-table": XLe +const ZLe = { + "list-table": HLe }; -class ZLe extends md { +class jLe extends md { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 0, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { label: lu @@ -28937,10 +28937,10 @@ class ZLe extends md { return [r]; } } -const jLe = { - math: ZLe -}, bP = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, QLe), GLe), YLe), HLe), jLe); -function KLe(t) { +const KLe = { + math: jLe +}, bP = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ULe), XLe), WLe), ZLe), KLe); +function JLe(t) { return (e) => { const r = lC(e); return r.references.forEach((n) => { @@ -28958,20 +28958,20 @@ function KLe(t) { }), !0; }; } -function JLe(t, e) { - t.core.ruler.push("docutils_number", KLe()); +function eRe(t, e) { + t.core.ruler.push("docutils_number", JLe()); } -const eRe = { +const tRe = { parseRoles: !0, replaceFences: !0, rolesAfter: "inline", directivesAfter: "block", directives: bP, - roles: r8e + roles: n8e }; -function tRe(t, e) { - const r = Object.assign(Object.assign({}, eRe), e); - t.use(iie, r), t.use(Hie, r), t.use(JLe, r); +function rRe(t, e) { + const r = Object.assign(Object.assign({}, tRe), e); + t.use(iie, r), t.use(Hie, r), t.use(eRe, r); } /*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */ function rf(t) { @@ -28986,7 +28986,7 @@ function b9(t, e) { return n.__proto__ = i, n; }, b9(t, e); } -function rRe() { +function nRe() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -28999,7 +28999,7 @@ function rRe() { } } function v5(t, e, r) { - return rRe() ? v5 = Reflect.construct : v5 = function(i, s, a) { + return nRe() ? v5 = Reflect.construct : v5 = function(i, s, a) { var o = [null]; o.push.apply(o, s); var l = Function.bind.apply(i, o), u = new l(); @@ -29007,17 +29007,17 @@ function v5(t, e, r) { }, v5.apply(null, arguments); } function _l(t) { - return nRe(t) || iRe(t) || sRe(t) || aRe(); + return iRe(t) || sRe(t) || aRe(t) || oRe(); } -function nRe(t) { +function iRe(t) { if (Array.isArray(t)) return x9(t); } -function iRe(t) { +function sRe(t) { if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t); } -function sRe(t, e) { +function aRe(t, e) { if (!!t) { if (typeof t == "string") return x9(t, e); @@ -29034,11 +29034,11 @@ function x9(t, e) { n[r] = t[r]; return n; } -function aRe() { +function oRe() { 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 oRe = Object.hasOwnProperty, zU = Object.setPrototypeOf, lRe = Object.isFrozen, cRe = Object.getPrototypeOf, uRe = Object.getOwnPropertyDescriptor, Aa = Object.freeze, sc = Object.seal, hRe = Object.create, ise = typeof Reflect < "u" && Reflect, l3 = ise.apply, w9 = ise.construct; +var lRe = Object.hasOwnProperty, zU = Object.setPrototypeOf, cRe = Object.isFrozen, uRe = Object.getPrototypeOf, hRe = Object.getOwnPropertyDescriptor, Aa = Object.freeze, sc = Object.seal, fRe = Object.create, ise = typeof Reflect < "u" && Reflect, l3 = ise.apply, w9 = ise.construct; l3 || (l3 = function(e, r, n) { return e.apply(r, n); }); @@ -29051,7 +29051,7 @@ sc || (sc = function(e) { w9 || (w9 = function(e, r) { return v5(e, _l(r)); }); -var fRe = hl(Array.prototype.forEach), QU = hl(Array.prototype.pop), Tv = hl(Array.prototype.push), y5 = hl(String.prototype.toLowerCase), g6 = hl(String.prototype.toString), dRe = hl(String.prototype.match), El = hl(String.prototype.replace), pRe = hl(String.prototype.indexOf), gRe = hl(String.prototype.trim), ma = hl(RegExp.prototype.test), m6 = mRe(TypeError); +var dRe = hl(Array.prototype.forEach), QU = hl(Array.prototype.pop), Cv = hl(Array.prototype.push), y5 = hl(String.prototype.toLowerCase), g6 = hl(String.prototype.toString), pRe = hl(String.prototype.match), El = hl(String.prototype.replace), gRe = hl(String.prototype.indexOf), mRe = hl(String.prototype.trim), ma = hl(RegExp.prototype.test), m6 = vRe(TypeError); function hl(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) @@ -29059,7 +29059,7 @@ function hl(t) { return l3(t, e, n); }; } -function mRe(t) { +function vRe(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; @@ -29073,41 +29073,41 @@ function Lr(t, e, r) { var s = e[i]; if (typeof s == "string") { var a = r(s); - a !== s && (lRe(e) || (e[i] = a), s = a); + a !== s && (cRe(e) || (e[i] = a), s = a); } t[s] = !0; } return t; } function Ld(t) { - var e = hRe(null), r; + var e = fRe(null), r; for (r in t) - l3(oRe, t, [r]) === !0 && (e[r] = t[r]); + l3(lRe, t, [r]) === !0 && (e[r] = t[r]); return e; } function PO(t, e) { for (; t !== null; ) { - var r = uRe(t, e); + var r = hRe(t, e); if (r) { if (r.get) return hl(r.get); if (typeof r.value == "function") return hl(r.value); } - t = cRe(t); + t = uRe(t); } function n(i) { return console.warn("fallback value for", i), null; } return n; } -var UU = Aa(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), v6 = Aa(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), y6 = Aa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), vRe = Aa(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), b6 = Aa(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]), yRe = Aa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), VU = Aa(["#text"]), qU = Aa(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), x6 = Aa(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), YU = Aa(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), NO = Aa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bRe = sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xRe = sc(/<%[\w\W]*|[\w\W]*%>/gm), wRe = sc(/\${[\w\W]*}/gm), ORe = sc(/^data-[\-\w.\u00B7-\uFFFF]/), kRe = sc(/^aria-[\-\w]+$/), SRe = sc( +var UU = Aa(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), v6 = Aa(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), y6 = Aa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), yRe = Aa(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), b6 = Aa(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]), bRe = Aa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), VU = Aa(["#text"]), qU = Aa(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), x6 = Aa(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), YU = Aa(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), NO = Aa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xRe = sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm), wRe = sc(/<%[\w\W]*|[\w\W]*%>/gm), ORe = sc(/\${[\w\W]*}/gm), kRe = sc(/^data-[\-\w.\u00B7-\uFFFF]/), SRe = sc(/^aria-[\-\w]+$/), TRe = sc( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), TRe = sc(/^(?:\w+script|data):/i), CRe = sc( +), CRe = sc(/^(?:\w+script|data):/i), ERe = sc( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), ERe = sc(/^html$/i), _Re = function() { +), _Re = sc(/^html$/i), ARe = function() { return typeof window > "u" ? null : window; -}, ARe = function(e, r) { +}, LRe = function(e, r) { if (rf(e) !== "object" || typeof e.createPolicy != "function") return null; var n = null, i = "data-tt-policy-suffix"; @@ -29127,7 +29127,7 @@ var UU = Aa(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud } }; function sse() { - var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _Re(), e = function(ne) { + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ARe(), e = function(ne) { return sse(ne); }; if (e.version = "2.4.7", e.removed = [], !t || !t.document || t.document.nodeType !== 9) @@ -29137,14 +29137,14 @@ function sse() { var w = n.createElement("template"); w.content && w.content.ownerDocument && (n = w.content.ownerDocument); } - var O = ARe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, A = C.createNodeIterator, E = C.createDocumentFragment, R = C.getElementsByTagName, _ = r.importNode, L = {}; + var O = LRe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, A = C.createNodeIterator, E = C.createDocumentFragment, R = C.getElementsByTagName, _ = r.importNode, L = {}; try { L = Ld(n).documentMode ? n.documentMode : {}; } catch { } var $ = {}; e.isSupported = typeof b == "function" && T && T.createHTMLDocument !== void 0 && L !== 9; - var k = bRe, P = xRe, M = wRe, N = ORe, D = kRe, I = TRe, B = CRe, F = SRe, Q = null, q = Lr({}, [].concat(_l(UU), _l(v6), _l(y6), _l(b6), _l(VU))), W = null, J = Lr({}, [].concat(_l(qU), _l(x6), _l(YU), _l(NO))), Y = Object.seal(Object.create(null, { + var k = xRe, P = wRe, M = ORe, N = kRe, D = SRe, I = CRe, F = ERe, B = TRe, U = null, Q = Lr({}, [].concat(_l(UU), _l(v6), _l(y6), _l(b6), _l(VU))), W = null, K = Lr({}, [].concat(_l(qU), _l(x6), _l(YU), _l(NO))), Y = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -29163,10 +29163,10 @@ function sse() { enumerable: !0, value: !1 } - })), re = null, se = null, U = !0, Z = !0, G = !1, K = !0, oe = !1, ae = !1, ee = !1, De = !1, he = !1, _e = !1, Pe = !1, He = !0, nt = !1, Ge = "user-content-", Ie = !0, de = !1, X = {}, le = null, ye = Lr({}, ["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"]), ie = null, fe = Lr({}, ["audio", "video", "img", "source", "image", "track"]), pe = null, ge = Lr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ve = "http://www.w3.org/1998/Math/MathML", we = "http://www.w3.org/2000/svg", Ee = "http://www.w3.org/1999/xhtml", Re = Ee, Ce = !1, $e = null, Le = Lr({}, [ve, we, Ee], g6), tt, Fe = ["application/xhtml+xml", "text/html"], ot = "text/html", at, bt = null, xt = n.createElement("form"), gt = function(ne) { + })), te = null, se = null, V = !0, Z = !0, G = !1, J = !0, oe = !1, ae = !1, ee = !1, De = !1, he = !1, _e = !1, Pe = !1, He = !0, nt = !1, Ge = "user-content-", Ie = !0, de = !1, X = {}, le = null, ye = Lr({}, ["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"]), ie = null, fe = Lr({}, ["audio", "video", "img", "source", "image", "track"]), pe = null, ge = Lr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ve = "http://www.w3.org/1998/Math/MathML", we = "http://www.w3.org/2000/svg", Ee = "http://www.w3.org/1999/xhtml", Re = Ee, Ce = !1, $e = null, Le = Lr({}, [ve, we, Ee], g6), tt, Fe = ["application/xhtml+xml", "text/html"], ot = "text/html", at, bt = null, xt = n.createElement("form"), gt = function(ne) { return ne instanceof RegExp || ne instanceof Function; }, et = function(ne) { - bt && bt === ne || ((!ne || rf(ne) !== "object") && (ne = {}), ne = Ld(ne), tt = Fe.indexOf(ne.PARSER_MEDIA_TYPE) === -1 ? tt = ot : tt = ne.PARSER_MEDIA_TYPE, at = tt === "application/xhtml+xml" ? g6 : y5, Q = "ALLOWED_TAGS" in ne ? Lr({}, ne.ALLOWED_TAGS, at) : q, W = "ALLOWED_ATTR" in ne ? Lr({}, ne.ALLOWED_ATTR, at) : J, $e = "ALLOWED_NAMESPACES" in ne ? Lr({}, ne.ALLOWED_NAMESPACES, g6) : Le, pe = "ADD_URI_SAFE_ATTR" in ne ? Lr( + bt && bt === ne || ((!ne || rf(ne) !== "object") && (ne = {}), ne = Ld(ne), tt = Fe.indexOf(ne.PARSER_MEDIA_TYPE) === -1 ? tt = ot : tt = ne.PARSER_MEDIA_TYPE, at = tt === "application/xhtml+xml" ? g6 : y5, U = "ALLOWED_TAGS" in ne ? Lr({}, ne.ALLOWED_TAGS, at) : Q, W = "ALLOWED_ATTR" in ne ? Lr({}, ne.ALLOWED_ATTR, at) : K, $e = "ALLOWED_NAMESPACES" in ne ? Lr({}, ne.ALLOWED_NAMESPACES, g6) : Le, pe = "ADD_URI_SAFE_ATTR" in ne ? Lr( Ld(ge), ne.ADD_URI_SAFE_ATTR, at @@ -29174,11 +29174,11 @@ function sse() { Ld(fe), ne.ADD_DATA_URI_TAGS, at - ) : fe, le = "FORBID_CONTENTS" in ne ? Lr({}, ne.FORBID_CONTENTS, at) : ye, re = "FORBID_TAGS" in ne ? Lr({}, ne.FORBID_TAGS, at) : {}, se = "FORBID_ATTR" in ne ? Lr({}, ne.FORBID_ATTR, at) : {}, X = "USE_PROFILES" in ne ? ne.USE_PROFILES : !1, U = ne.ALLOW_ARIA_ATTR !== !1, Z = ne.ALLOW_DATA_ATTR !== !1, G = ne.ALLOW_UNKNOWN_PROTOCOLS || !1, K = ne.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = ne.SAFE_FOR_TEMPLATES || !1, ae = ne.WHOLE_DOCUMENT || !1, he = ne.RETURN_DOM || !1, _e = ne.RETURN_DOM_FRAGMENT || !1, Pe = ne.RETURN_TRUSTED_TYPE || !1, De = ne.FORCE_BODY || !1, He = ne.SANITIZE_DOM !== !1, nt = ne.SANITIZE_NAMED_PROPS || !1, Ie = ne.KEEP_CONTENT !== !1, de = ne.IN_PLACE || !1, F = ne.ALLOWED_URI_REGEXP || F, Re = ne.NAMESPACE || Ee, Y = ne.CUSTOM_ELEMENT_HANDLING || {}, ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ne.CUSTOM_ELEMENT_HANDLING && typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (Z = !1), _e && (he = !0), X && (Q = Lr({}, _l(VU)), W = [], X.html === !0 && (Lr(Q, UU), Lr(W, qU)), X.svg === !0 && (Lr(Q, v6), Lr(W, x6), Lr(W, NO)), X.svgFilters === !0 && (Lr(Q, y6), Lr(W, x6), Lr(W, NO)), X.mathMl === !0 && (Lr(Q, b6), Lr(W, YU), Lr(W, NO))), ne.ADD_TAGS && (Q === q && (Q = Ld(Q)), Lr(Q, ne.ADD_TAGS, at)), ne.ADD_ATTR && (W === J && (W = Ld(W)), Lr(W, ne.ADD_ATTR, at)), ne.ADD_URI_SAFE_ATTR && Lr(pe, ne.ADD_URI_SAFE_ATTR, at), ne.FORBID_CONTENTS && (le === ye && (le = Ld(le)), Lr(le, ne.FORBID_CONTENTS, at)), Ie && (Q["#text"] = !0), ae && Lr(Q, ["html", "head", "body"]), Q.table && (Lr(Q, ["tbody"]), delete re.tbody), Aa && Aa(ne), bt = ne); + ) : fe, le = "FORBID_CONTENTS" in ne ? Lr({}, ne.FORBID_CONTENTS, at) : ye, te = "FORBID_TAGS" in ne ? Lr({}, ne.FORBID_TAGS, at) : {}, se = "FORBID_ATTR" in ne ? Lr({}, ne.FORBID_ATTR, at) : {}, X = "USE_PROFILES" in ne ? ne.USE_PROFILES : !1, V = ne.ALLOW_ARIA_ATTR !== !1, Z = ne.ALLOW_DATA_ATTR !== !1, G = ne.ALLOW_UNKNOWN_PROTOCOLS || !1, J = ne.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = ne.SAFE_FOR_TEMPLATES || !1, ae = ne.WHOLE_DOCUMENT || !1, he = ne.RETURN_DOM || !1, _e = ne.RETURN_DOM_FRAGMENT || !1, Pe = ne.RETURN_TRUSTED_TYPE || !1, De = ne.FORCE_BODY || !1, He = ne.SANITIZE_DOM !== !1, nt = ne.SANITIZE_NAMED_PROPS || !1, Ie = ne.KEEP_CONTENT !== !1, de = ne.IN_PLACE || !1, B = ne.ALLOWED_URI_REGEXP || B, Re = ne.NAMESPACE || Ee, Y = ne.CUSTOM_ELEMENT_HANDLING || {}, ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ne.CUSTOM_ELEMENT_HANDLING && typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (Z = !1), _e && (he = !0), X && (U = Lr({}, _l(VU)), W = [], X.html === !0 && (Lr(U, UU), Lr(W, qU)), X.svg === !0 && (Lr(U, v6), Lr(W, x6), Lr(W, NO)), X.svgFilters === !0 && (Lr(U, y6), Lr(W, x6), Lr(W, NO)), X.mathMl === !0 && (Lr(U, b6), Lr(W, YU), Lr(W, NO))), ne.ADD_TAGS && (U === Q && (U = Ld(U)), Lr(U, ne.ADD_TAGS, at)), ne.ADD_ATTR && (W === K && (W = Ld(W)), Lr(W, ne.ADD_ATTR, at)), ne.ADD_URI_SAFE_ATTR && Lr(pe, ne.ADD_URI_SAFE_ATTR, at), ne.FORBID_CONTENTS && (le === ye && (le = Ld(le)), Lr(le, ne.FORBID_CONTENTS, at)), Ie && (U["#text"] = !0), ae && Lr(U, ["html", "head", "body"]), U.table && (Lr(U, ["tbody"]), delete te.tbody), Aa && Aa(ne), bt = ne); }, Ke = Lr({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = Lr({}, ["foreignobject", "desc", "title", "annotation-xml"]), ct = Lr({}, ["title", "style", "font", "a", "script"]), it = Lr({}, v6); - Lr(it, y6), Lr(it, vRe); + Lr(it, y6), Lr(it, yRe); var At = Lr({}, b6); - Lr(At, yRe); + Lr(At, bRe); var ft = function(ne) { var Ne = b(ne); (!Ne || !Ne.tagName) && (Ne = { @@ -29188,7 +29188,7 @@ function sse() { var Xe = y5(ne.tagName), Ft = y5(Ne.tagName); return $e[ne.namespaceURI] ? ne.namespaceURI === we ? Ne.namespaceURI === Ee ? Xe === "svg" : Ne.namespaceURI === ve ? Xe === "svg" && (Ft === "annotation-xml" || Ke[Ft]) : Boolean(it[Xe]) : ne.namespaceURI === ve ? Ne.namespaceURI === Ee ? Xe === "math" : Ne.namespaceURI === we ? Xe === "math" && wt[Ft] : Boolean(At[Xe]) : ne.namespaceURI === Ee ? Ne.namespaceURI === we && !wt[Ft] || Ne.namespaceURI === ve && !Ke[Ft] ? !1 : !At[Xe] && (ct[Xe] || !it[Xe]) : !!(tt === "application/xhtml+xml" && $e[ne.namespaceURI]) : !1; }, st = function(ne) { - Tv(e.removed, { + Cv(e.removed, { element: ne }); try { @@ -29202,12 +29202,12 @@ function sse() { } }, yt = function(ne, Ne) { try { - Tv(e.removed, { + Cv(e.removed, { attribute: Ne.getAttributeNode(ne), from: Ne }); } catch { - Tv(e.removed, { + Cv(e.removed, { attribute: null, from: Ne }); @@ -29228,7 +29228,7 @@ function sse() { if (De) ne = "" + ne; else { - var Ft = dRe(ne, /^[\r\n\t ]+/); + var Ft = pRe(ne, /^[\r\n\t ]+/); Xe = Ft && Ft[0]; } tt === "application/xhtml+xml" && Re === Ee && (ne = '' + ne + ""); @@ -29260,7 +29260,7 @@ function sse() { }, _r = function(ne) { return rf(a) === "object" ? ne instanceof a : ne && rf(ne) === "object" && typeof ne.nodeType == "number" && typeof ne.nodeName == "string"; }, ir = function(ne, Ne, Xe) { - !$[ne] || fRe($[ne], function(Ft) { + !$[ne] || dRe($[ne], function(Ft) { Ft.call(e, Ne, Xe, bt); }); }, Zr = function(ne) { @@ -29270,11 +29270,11 @@ function sse() { var Xe = at(ne.nodeName); if (ir("uponSanitizeElement", ne, { tagName: Xe, - allowedTags: Q + allowedTags: U }), ne.hasChildNodes() && !_r(ne.firstElementChild) && (!_r(ne.content) || !_r(ne.content.firstElementChild)) && ma(/<[/\w]/g, ne.innerHTML) && ma(/<[/\w]/g, ne.textContent) || Xe === "select" && ma(/