UNPKG

vitepress-plugin-auto-sidebar

Version:
1,326 lines 59.9 kB
import be from "fs"; import Oe from "path"; function Wr(u) { return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u; } var Te = { exports: {} }, M = {}, re = {}, X = {}, pr; function ne() { if (pr) return X; pr = 1; function u(a) { return typeof a > "u" || a === null; } function w(a) { return typeof a == "object" && a !== null; } function b(a) { return Array.isArray(a) ? a : u(a) ? [] : [a]; } function S(a, s) { var n, i, t, F; if (s) for (F = Object.keys(s), n = 0, i = F.length; n < i; n += 1) t = F[n], a[t] = s[t]; return a; } function v(a, s) { var n = "", i; for (i = 0; i < s; i += 1) n += a; return n; } function h(a) { return a === 0 && Number.NEGATIVE_INFINITY === 1 / a; } return X.isNothing = u, X.isObject = w, X.toArray = b, X.repeat = v, X.isNegativeZero = h, X.extend = S, X; } var Be, hr; function fe() { if (hr) return Be; hr = 1; function u(w, b) { Error.call(this), this.name = "YAMLException", this.reason = w, this.mark = b, this.message = (this.reason || "(unknown reason)") + (this.mark ? " " + this.mark.toString() : ""), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } return u.prototype = Object.create(Error.prototype), u.prototype.constructor = u, u.prototype.toString = function(b) { var S = this.name + ": "; return S += this.reason || "(unknown reason)", !b && this.mark && (S += " " + this.mark.toString()), S; }, Be = u, Be; } var Ye, sr; function Jr() { if (sr) return Ye; sr = 1; var u = ne(); function w(b, S, v, h, a) { this.name = b, this.buffer = S, this.position = v, this.line = h, this.column = a; } return w.prototype.getSnippet = function(S, v) { var h, a, s, n, i; if (!this.buffer) return null; for (S = S || 4, v = v || 75, h = "", a = this.position; a > 0 && `\0\r …\u2028\u2029`.indexOf(this.buffer.charAt(a - 1)) === -1; ) if (a -= 1, this.position - a > v / 2 - 1) { h = " ... ", a += 5; break; } for (s = "", n = this.position; n < this.buffer.length && `\0\r …\u2028\u2029`.indexOf(this.buffer.charAt(n)) === -1; ) if (n += 1, n - this.position > v / 2 - 1) { s = " ... ", n -= 5; break; } return i = this.buffer.slice(a, n), u.repeat(" ", S) + h + i + s + ` ` + u.repeat(" ", S + this.position - a + h.length) + "^"; }, w.prototype.toString = function(S) { var v, h = ""; return this.name && (h += 'in "' + this.name + '" '), h += "at line " + (this.line + 1) + ", column " + (this.column + 1), S || (v = this.getSnippet(), v && (h += `: ` + v)), h; }, Ye = w, Ye; } var Pe, dr; function q() { if (dr) return Pe; dr = 1; var u = fe(), w = [ "kind", "resolve", "construct", "instanceOf", "predicate", "represent", "defaultStyle", "styleAliases" ], b = [ "scalar", "sequence", "mapping" ]; function S(h) { var a = {}; return h !== null && Object.keys(h).forEach(function(s) { h[s].forEach(function(n) { a[String(n)] = s; }); }), a; } function v(h, a) { if (a = a || {}, Object.keys(a).forEach(function(s) { if (w.indexOf(s) === -1) throw new u('Unknown option "' + s + '" is met in definition of "' + h + '" YAML type.'); }), this.tag = h, this.kind = a.kind || null, this.resolve = a.resolve || function() { return !0; }, this.construct = a.construct || function(s) { return s; }, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.defaultStyle = a.defaultStyle || null, this.styleAliases = S(a.styleAliases || null), b.indexOf(this.kind) === -1) throw new u('Unknown kind "' + this.kind + '" is specified for "' + h + '" YAML type.'); } return Pe = v, Pe; } var je, mr; function ie() { if (mr) return je; mr = 1; var u = ne(), w = fe(), b = q(); function S(a, s, n) { var i = []; return a.include.forEach(function(t) { n = S(t, s, n); }), a[s].forEach(function(t) { n.forEach(function(F, E) { F.tag === t.tag && F.kind === t.kind && i.push(E); }), n.push(t); }), n.filter(function(t, F) { return i.indexOf(F) === -1; }); } function v() { var a = { scalar: {}, sequence: {}, mapping: {}, fallback: {} }, s, n; function i(t) { a[t.kind][t.tag] = a.fallback[t.tag] = t; } for (s = 0, n = arguments.length; s < n; s += 1) arguments[s].forEach(i); return a; } function h(a) { this.include = a.include || [], this.implicit = a.implicit || [], this.explicit = a.explicit || [], this.implicit.forEach(function(s) { if (s.loadKind && s.loadKind !== "scalar") throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported."); }), this.compiledImplicit = S(this, "implicit", []), this.compiledExplicit = S(this, "explicit", []), this.compiledTypeMap = v(this.compiledImplicit, this.compiledExplicit); } return h.DEFAULT = null, h.create = function() { var s, n; switch (arguments.length) { case 1: s = h.DEFAULT, n = arguments[0]; break; case 2: s = arguments[0], n = arguments[1]; break; default: throw new w("Wrong number of arguments for Schema.create function"); } if (s = u.toArray(s), n = u.toArray(n), !s.every(function(i) { return i instanceof h; })) throw new w("Specified list of super schemas (or a single Schema object) contains a non-Schema object."); if (!n.every(function(i) { return i instanceof b; })) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object."); return new h({ include: s, explicit: n }); }, je = h, je; } var He, xr; function $r() { if (xr) return He; xr = 1; var u = q(); return He = new u("tag:yaml.org,2002:str", { kind: "scalar", construct: function(w) { return w !== null ? w : ""; } }), He; } var Ue, vr; function Qr() { if (vr) return Ue; vr = 1; var u = q(); return Ue = new u("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(w) { return w !== null ? w : []; } }), Ue; } var Ke, gr; function Vr() { if (gr) return Ke; gr = 1; var u = q(); return Ke = new u("tag:yaml.org,2002:map", { kind: "mapping", construct: function(w) { return w !== null ? w : {}; } }), Ke; } var Ge, Ar; function ar() { if (Ar) return Ge; Ar = 1; var u = ie(); return Ge = new u({ explicit: [ $r(), Qr(), Vr() ] }), Ge; } var We, yr; function Xr() { if (yr) return We; yr = 1; var u = q(); function w(v) { if (v === null) return !0; var h = v.length; return h === 1 && v === "~" || h === 4 && (v === "null" || v === "Null" || v === "NULL"); } function b() { return null; } function S(v) { return v === null; } return We = new u("tag:yaml.org,2002:null", { kind: "scalar", resolve: w, construct: b, predicate: S, represent: { canonical: function() { return "~"; }, lowercase: function() { return "null"; }, uppercase: function() { return "NULL"; }, camelcase: function() { return "Null"; } }, defaultStyle: "lowercase" }), We; } var Je, Cr; function Zr() { if (Cr) return Je; Cr = 1; var u = q(); function w(v) { if (v === null) return !1; var h = v.length; return h === 4 && (v === "true" || v === "True" || v === "TRUE") || h === 5 && (v === "false" || v === "False" || v === "FALSE"); } function b(v) { return v === "true" || v === "True" || v === "TRUE"; } function S(v) { return Object.prototype.toString.call(v) === "[object Boolean]"; } return Je = new u("tag:yaml.org,2002:bool", { kind: "scalar", resolve: w, construct: b, predicate: S, represent: { lowercase: function(v) { return v ? "true" : "false"; }, uppercase: function(v) { return v ? "TRUE" : "FALSE"; }, camelcase: function(v) { return v ? "True" : "False"; } }, defaultStyle: "lowercase" }), Je; } var $e, wr; function zr() { if (wr) return $e; wr = 1; var u = ne(), w = q(); function b(n) { return 48 <= n && n <= 57 || 65 <= n && n <= 70 || 97 <= n && n <= 102; } function S(n) { return 48 <= n && n <= 55; } function v(n) { return 48 <= n && n <= 57; } function h(n) { if (n === null) return !1; var i = n.length, t = 0, F = !1, E; if (!i) return !1; if (E = n[t], (E === "-" || E === "+") && (E = n[++t]), E === "0") { if (t + 1 === i) return !0; if (E = n[++t], E === "b") { for (t++; t < i; t++) if (E = n[t], E !== "_") { if (E !== "0" && E !== "1") return !1; F = !0; } return F && E !== "_"; } if (E === "x") { for (t++; t < i; t++) if (E = n[t], E !== "_") { if (!b(n.charCodeAt(t))) return !1; F = !0; } return F && E !== "_"; } for (; t < i; t++) if (E = n[t], E !== "_") { if (!S(n.charCodeAt(t))) return !1; F = !0; } return F && E !== "_"; } if (E === "_") return !1; for (; t < i; t++) if (E = n[t], E !== "_") { if (E === ":") break; if (!v(n.charCodeAt(t))) return !1; F = !0; } return !F || E === "_" ? !1 : E !== ":" ? !0 : /^(:[0-5]?[0-9])+$/.test(n.slice(t)); } function a(n) { var i = n, t = 1, F, E, L = []; return i.indexOf("_") !== -1 && (i = i.replace(/_/g, "")), F = i[0], (F === "-" || F === "+") && (F === "-" && (t = -1), i = i.slice(1), F = i[0]), i === "0" ? 0 : F === "0" ? i[1] === "b" ? t * parseInt(i.slice(2), 2) : i[1] === "x" ? t * parseInt(i, 16) : t * parseInt(i, 8) : i.indexOf(":") !== -1 ? (i.split(":").forEach(function(O) { L.unshift(parseInt(O, 10)); }), i = 0, E = 1, L.forEach(function(O) { i += O * E, E *= 60; }), t * i) : t * parseInt(i, 10); } function s(n) { return Object.prototype.toString.call(n) === "[object Number]" && n % 1 === 0 && !u.isNegativeZero(n); } return $e = new w("tag:yaml.org,2002:int", { kind: "scalar", resolve: h, construct: a, predicate: s, represent: { binary: function(n) { return n >= 0 ? "0b" + n.toString(2) : "-0b" + n.toString(2).slice(1); }, octal: function(n) { return n >= 0 ? "0" + n.toString(8) : "-0" + n.toString(8).slice(1); }, decimal: function(n) { return n.toString(10); }, /* eslint-disable max-len */ hexadecimal: function(n) { return n >= 0 ? "0x" + n.toString(16).toUpperCase() : "-0x" + n.toString(16).toUpperCase().slice(1); } }, defaultStyle: "decimal", styleAliases: { binary: [2, "bin"], octal: [8, "oct"], decimal: [10, "dec"], hexadecimal: [16, "hex"] } }), $e; } var Qe, Fr; function en() { if (Fr) return Qe; Fr = 1; var u = ne(), w = q(), b = new RegExp( // 2.5e4, 2.5 and integers "^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); function S(n) { return !(n === null || !b.test(n) || // Quick hack to not allow integers end with `_` // Probably should update regexp & check speed n[n.length - 1] === "_"); } function v(n) { var i, t, F, E; return i = n.replace(/_/g, "").toLowerCase(), t = i[0] === "-" ? -1 : 1, E = [], "+-".indexOf(i[0]) >= 0 && (i = i.slice(1)), i === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : i === ".nan" ? NaN : i.indexOf(":") >= 0 ? (i.split(":").forEach(function(L) { E.unshift(parseFloat(L, 10)); }), i = 0, F = 1, E.forEach(function(L) { i += L * F, F *= 60; }), t * i) : t * parseFloat(i, 10); } var h = /^[-+]?[0-9]+e/; function a(n, i) { var t; if (isNaN(n)) switch (i) { case "lowercase": return ".nan"; case "uppercase": return ".NAN"; case "camelcase": return ".NaN"; } else if (Number.POSITIVE_INFINITY === n) switch (i) { case "lowercase": return ".inf"; case "uppercase": return ".INF"; case "camelcase": return ".Inf"; } else if (Number.NEGATIVE_INFINITY === n) switch (i) { case "lowercase": return "-.inf"; case "uppercase": return "-.INF"; case "camelcase": return "-.Inf"; } else if (u.isNegativeZero(n)) return "-0.0"; return t = n.toString(10), h.test(t) ? t.replace("e", ".e") : t; } function s(n) { return Object.prototype.toString.call(n) === "[object Number]" && (n % 1 !== 0 || u.isNegativeZero(n)); } return Qe = new w("tag:yaml.org,2002:float", { kind: "scalar", resolve: S, construct: v, predicate: s, represent: a, defaultStyle: "lowercase" }), Qe; } var Ve, Er; function Hr() { if (Er) return Ve; Er = 1; var u = ie(); return Ve = new u({ include: [ ar() ], implicit: [ Xr(), Zr(), zr(), en() ] }), Ve; } var Xe, _r; function Ur() { if (_r) return Xe; _r = 1; var u = ie(); return Xe = new u({ include: [ Hr() ] }), Xe; } var Ze, Sr; function rn() { if (Sr) return Ze; Sr = 1; var u = q(), w = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" ), b = 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 S(a) { return a === null ? !1 : w.exec(a) !== null || b.exec(a) !== null; } function v(a) { var s, n, i, t, F, E, L, O = 0, I = null, G, $, W; if (s = w.exec(a), s === null && (s = b.exec(a)), s === null) throw new Error("Date resolve error"); if (n = +s[1], i = +s[2] - 1, t = +s[3], !s[4]) return new Date(Date.UTC(n, i, t)); if (F = +s[4], E = +s[5], L = +s[6], s[7]) { for (O = s[7].slice(0, 3); O.length < 3; ) O += "0"; O = +O; } return s[9] && (G = +s[10], $ = +(s[11] || 0), I = (G * 60 + $) * 6e4, s[9] === "-" && (I = -I)), W = new Date(Date.UTC(n, i, t, F, E, L, O)), I && W.setTime(W.getTime() - I), W; } function h(a) { return a.toISOString(); } return Ze = new u("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: S, construct: v, instanceOf: Date, represent: h }), Ze; } var ze, br; function nn() { if (br) return ze; br = 1; var u = q(); function w(b) { return b === "<<" || b === null; } return ze = new u("tag:yaml.org,2002:merge", { kind: "scalar", resolve: w }), ze; } function Kr(u) { throw new Error('Could not dynamically require "' + u + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } var er, Tr; function on() { if (Tr) return er; Tr = 1; var u; try { var w = Kr; u = w("buffer").Buffer; } catch { } var b = q(), S = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; function v(n) { if (n === null) return !1; var i, t, F = 0, E = n.length, L = S; for (t = 0; t < E; t++) if (i = L.indexOf(n.charAt(t)), !(i > 64)) { if (i < 0) return !1; F += 6; } return F % 8 === 0; } function h(n) { var i, t, F = n.replace(/[\r\n=]/g, ""), E = F.length, L = S, O = 0, I = []; for (i = 0; i < E; i++) i % 4 === 0 && i && (I.push(O >> 16 & 255), I.push(O >> 8 & 255), I.push(O & 255)), O = O << 6 | L.indexOf(F.charAt(i)); return t = E % 4 * 6, t === 0 ? (I.push(O >> 16 & 255), I.push(O >> 8 & 255), I.push(O & 255)) : t === 18 ? (I.push(O >> 10 & 255), I.push(O >> 2 & 255)) : t === 12 && I.push(O >> 4 & 255), u ? u.from ? u.from(I) : new u(I) : I; } function a(n) { var i = "", t = 0, F, E, L = n.length, O = S; for (F = 0; F < L; F++) F % 3 === 0 && F && (i += O[t >> 18 & 63], i += O[t >> 12 & 63], i += O[t >> 6 & 63], i += O[t & 63]), t = (t << 8) + n[F]; return E = L % 3, E === 0 ? (i += O[t >> 18 & 63], i += O[t >> 12 & 63], i += O[t >> 6 & 63], i += O[t & 63]) : E === 2 ? (i += O[t >> 10 & 63], i += O[t >> 4 & 63], i += O[t << 2 & 63], i += O[64]) : E === 1 && (i += O[t >> 2 & 63], i += O[t << 4 & 63], i += O[64], i += O[64]), i; } function s(n) { return u && u.isBuffer(n); } return er = new b("tag:yaml.org,2002:binary", { kind: "scalar", resolve: v, construct: h, predicate: s, represent: a }), er; } var rr, kr; function ln() { if (kr) return rr; kr = 1; var u = q(), w = Object.prototype.hasOwnProperty, b = Object.prototype.toString; function S(h) { if (h === null) return !0; var a = [], s, n, i, t, F, E = h; for (s = 0, n = E.length; s < n; s += 1) { if (i = E[s], F = !1, b.call(i) !== "[object Object]") return !1; for (t in i) if (w.call(i, t)) if (!F) F = !0; else return !1; if (!F) return !1; if (a.indexOf(t) === -1) a.push(t); else return !1; } return !0; } function v(h) { return h !== null ? h : []; } return rr = new u("tag:yaml.org,2002:omap", { kind: "sequence", resolve: S, construct: v }), rr; } var nr, Or; function un() { if (Or) return nr; Or = 1; var u = q(), w = Object.prototype.toString; function b(v) { if (v === null) return !0; var h, a, s, n, i, t = v; for (i = new Array(t.length), h = 0, a = t.length; h < a; h += 1) { if (s = t[h], w.call(s) !== "[object Object]" || (n = Object.keys(s), n.length !== 1)) return !1; i[h] = [n[0], s[n[0]]]; } return !0; } function S(v) { if (v === null) return []; var h, a, s, n, i, t = v; for (i = new Array(t.length), h = 0, a = t.length; h < a; h += 1) s = t[h], n = Object.keys(s), i[h] = [n[0], s[n[0]]]; return i; } return nr = new u("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: b, construct: S }), nr; } var ir, Rr; function tn() { if (Rr) return ir; Rr = 1; var u = q(), w = Object.prototype.hasOwnProperty; function b(v) { if (v === null) return !0; var h, a = v; for (h in a) if (w.call(a, h) && a[h] !== null) return !1; return !0; } function S(v) { return v !== null ? v : {}; } return ir = new u("tag:yaml.org,2002:set", { kind: "mapping", resolve: b, construct: S }), ir; } var or, Lr; function te() { if (Lr) return or; Lr = 1; var u = ie(); return or = new u({ include: [ Ur() ], implicit: [ rn(), nn() ], explicit: [ on(), ln(), un(), tn() ] }), or; } var lr, Ir; function fn() { if (Ir) return lr; Ir = 1; var u = q(); function w() { return !0; } function b() { } function S() { return ""; } function v(h) { return typeof h > "u"; } return lr = new u("tag:yaml.org,2002:js/undefined", { kind: "scalar", resolve: w, construct: b, predicate: v, represent: S }), lr; } var ur, Dr; function cn() { if (Dr) return ur; Dr = 1; var u = q(); function w(h) { if (h === null || h.length === 0) return !1; var a = h, s = /\/([gim]*)$/.exec(h), n = ""; return !(a[0] === "/" && (s && (n = s[1]), n.length > 3 || a[a.length - n.length - 1] !== "/")); } function b(h) { var a = h, s = /\/([gim]*)$/.exec(h), n = ""; return a[0] === "/" && (s && (n = s[1]), a = a.slice(1, a.length - n.length - 1)), new RegExp(a, n); } function S(h) { var a = "/" + h.source + "/"; return h.global && (a += "g"), h.multiline && (a += "m"), h.ignoreCase && (a += "i"), a; } function v(h) { return Object.prototype.toString.call(h) === "[object RegExp]"; } return ur = new u("tag:yaml.org,2002:js/regexp", { kind: "scalar", resolve: w, construct: b, predicate: v, represent: S }), ur; } var tr, Mr; function an() { if (Mr) return tr; Mr = 1; var u; try { var w = Kr; u = w("esprima"); } catch { typeof window < "u" && (u = window.esprima); } var b = q(); function S(s) { if (s === null) return !1; try { var n = "(" + s + ")", i = u.parse(n, { range: !0 }); return !(i.type !== "Program" || i.body.length !== 1 || i.body[0].type !== "ExpressionStatement" || i.body[0].expression.type !== "ArrowFunctionExpression" && i.body[0].expression.type !== "FunctionExpression"); } catch { return !1; } } function v(s) { var n = "(" + s + ")", i = u.parse(n, { range: !0 }), t = [], F; if (i.type !== "Program" || i.body.length !== 1 || i.body[0].type !== "ExpressionStatement" || i.body[0].expression.type !== "ArrowFunctionExpression" && i.body[0].expression.type !== "FunctionExpression") throw new Error("Failed to resolve function"); return i.body[0].expression.params.forEach(function(E) { t.push(E.name); }), F = i.body[0].expression.body.range, i.body[0].expression.body.type === "BlockStatement" ? new Function(t, n.slice(F[0] + 1, F[1] - 1)) : new Function(t, "return " + n.slice(F[0], F[1])); } function h(s) { return s.toString(); } function a(s) { return Object.prototype.toString.call(s) === "[object Function]"; } return tr = new b("tag:yaml.org,2002:js/function", { kind: "scalar", resolve: S, construct: v, predicate: a, represent: h }), tr; } var fr, Nr; function Re() { if (Nr) return fr; Nr = 1; var u = ie(); return fr = u.DEFAULT = new u({ include: [ te() ], explicit: [ fn(), cn(), an() ] }), fr; } var qr; function pn() { if (qr) return re; qr = 1; var u = ne(), w = fe(), b = Jr(), S = te(), v = Re(), h = Object.prototype.hasOwnProperty, a = 1, s = 2, n = 3, i = 4, t = 1, F = 2, E = 3, L = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, O = /[\x85\u2028\u2029]/, I = /[,\[\]\{\}]/, G = /^(?:!|!!|![a-z\-]+!)$/i, $ = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function W(e) { return Object.prototype.toString.call(e); } function P(e) { return e === 10 || e === 13; } function J(e) { return e === 9 || e === 32; } function B(e) { return e === 9 || e === 32 || e === 10 || e === 13; } function Q(e) { return e === 44 || e === 91 || e === 93 || e === 123 || e === 125; } function Le(e) { var o; return 48 <= e && e <= 57 ? e - 48 : (o = e | 32, 97 <= o && o <= 102 ? o - 97 + 10 : -1); } function ce(e) { return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0; } function ae(e) { return 48 <= e && e <= 57 ? e - 48 : -1; } function pe(e) { return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? ` ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : ""; } function he(e) { return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode( (e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320 ); } for (var se = new Array(256), oe = new Array(256), D = 0; D < 256; D++) se[D] = pe(D) ? 1 : 0, oe[D] = pe(D); function Ie(e, o) { this.input = e, this.filename = o.filename || null, this.schema = o.schema || v, this.onWarning = o.onWarning || null, this.legacy = o.legacy || !1, this.json = o.json || !1, this.listener = o.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.documents = []; } function de(e, o) { return new w( o, new b(e.filename, e.input, e.position, e.line, e.position - e.lineStart) ); } function T(e, o) { throw de(e, o); } function ee(e, o) { e.onWarning && e.onWarning.call(null, de(e, o)); } var le = { YAML: function(o, p, y) { var d, C, r; o.version !== null && T(o, "duplication of %YAML directive"), y.length !== 1 && T(o, "YAML directive accepts exactly one argument"), d = /^([0-9]+)\.([0-9]+)$/.exec(y[0]), d === null && T(o, "ill-formed argument of the YAML directive"), C = parseInt(d[1], 10), r = parseInt(d[2], 10), C !== 1 && T(o, "unacceptable YAML version of the document"), o.version = y[0], o.checkLineBreaks = r < 2, r !== 1 && r !== 2 && ee(o, "unsupported YAML version of the document"); }, TAG: function(o, p, y) { var d, C; y.length !== 2 && T(o, "TAG directive accepts exactly two arguments"), d = y[0], C = y[1], G.test(d) || T(o, "ill-formed tag handle (first argument) of the TAG directive"), h.call(o.tagMap, d) && T(o, 'there is a previously declared suffix for "' + d + '" tag handle'), $.test(C) || T(o, "ill-formed tag prefix (second argument) of the TAG directive"), o.tagMap[d] = C; } }; function j(e, o, p, y) { var d, C, r, l; if (o < p) { if (l = e.input.slice(o, p), y) for (d = 0, C = l.length; d < C; d += 1) r = l.charCodeAt(d), r === 9 || 32 <= r && r <= 1114111 || T(e, "expected valid JSON character"); else L.test(l) && T(e, "the stream contains non-printable characters"); e.result += l; } } function me(e, o, p, y) { var d, C, r, l; for (u.isObject(p) || T(e, "cannot merge mappings; the provided source object is unacceptable"), d = Object.keys(p), r = 0, l = d.length; r < l; r += 1) C = d[r], h.call(o, C) || (o[C] = p[C], y[C] = !0); } function H(e, o, p, y, d, C, r, l) { var f, g; if (Array.isArray(d)) for (d = Array.prototype.slice.call(d), f = 0, g = d.length; f < g; f += 1) Array.isArray(d[f]) && T(e, "nested arrays are not supported inside keys"), typeof d == "object" && W(d[f]) === "[object Object]" && (d[f] = "[object Object]"); if (typeof d == "object" && W(d) === "[object Object]" && (d = "[object Object]"), d = String(d), o === null && (o = {}), y === "tag:yaml.org,2002:merge") if (Array.isArray(C)) for (f = 0, g = C.length; f < g; f += 1) me(e, o, C[f], p); else me(e, o, C, p); else !e.json && !h.call(p, d) && h.call(o, d) && (e.line = r || e.line, e.position = l || e.position, T(e, "duplicated mapping key")), o[d] = C, delete p[d]; return o; } function U(e) { var o; o = e.input.charCodeAt(e.position), o === 10 ? e.position++ : o === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position; } function N(e, o, p) { for (var y = 0, d = e.input.charCodeAt(e.position); d !== 0; ) { for (; J(d); ) d = e.input.charCodeAt(++e.position); if (o && d === 35) do d = e.input.charCodeAt(++e.position); while (d !== 10 && d !== 13 && d !== 0); if (P(d)) for (U(e), d = e.input.charCodeAt(e.position), y++, e.lineIndent = 0; d === 32; ) e.lineIndent++, d = e.input.charCodeAt(++e.position); else break; } return p !== -1 && y !== 0 && e.lineIndent < p && ee(e, "deficient indentation"), y; } function Z(e) { var o = e.position, p; return p = e.input.charCodeAt(o), !!((p === 45 || p === 46) && p === e.input.charCodeAt(o + 1) && p === e.input.charCodeAt(o + 2) && (o += 3, p = e.input.charCodeAt(o), p === 0 || B(p))); } function ue(e, o) { o === 1 ? e.result += " " : o > 1 && (e.result += u.repeat(` `, o - 1)); } function xe(e, o, p) { var y, d, C, r, l, f, g, x, c = e.kind, A = e.result, m; if (m = e.input.charCodeAt(e.position), B(m) || Q(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (d = e.input.charCodeAt(e.position + 1), B(d) || p && Q(d))) return !1; for (e.kind = "scalar", e.result = "", C = r = e.position, l = !1; m !== 0; ) { if (m === 58) { if (d = e.input.charCodeAt(e.position + 1), B(d) || p && Q(d)) break; } else if (m === 35) { if (y = e.input.charCodeAt(e.position - 1), B(y)) break; } else { if (e.position === e.lineStart && Z(e) || p && Q(m)) break; if (P(m)) if (f = e.line, g = e.lineStart, x = e.lineIndent, N(e, !1, -1), e.lineIndent >= o) { l = !0, m = e.input.charCodeAt(e.position); continue; } else { e.position = r, e.line = f, e.lineStart = g, e.lineIndent = x; break; } } l && (j(e, C, r, !1), ue(e, e.line - f), C = r = e.position, l = !1), J(m) || (r = e.position + 1), m = e.input.charCodeAt(++e.position); } return j(e, C, r, !1), e.result ? !0 : (e.kind = c, e.result = A, !1); } function ve(e, o) { var p, y, d; if (p = e.input.charCodeAt(e.position), p !== 39) return !1; for (e.kind = "scalar", e.result = "", e.position++, y = d = e.position; (p = e.input.charCodeAt(e.position)) !== 0; ) if (p === 39) if (j(e, y, e.position, !0), p = e.input.charCodeAt(++e.position), p === 39) y = e.position, e.position++, d = e.position; else return !0; else P(p) ? (j(e, y, d, !0), ue(e, N(e, !1, o)), y = d = e.position) : e.position === e.lineStart && Z(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, d = e.position); T(e, "unexpected end of the stream within a single quoted scalar"); } function ge(e, o) { var p, y, d, C, r, l; if (l = e.input.charCodeAt(e.position), l !== 34) return !1; for (e.kind = "scalar", e.result = "", e.position++, p = y = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) { if (l === 34) return j(e, p, e.position, !0), e.position++, !0; if (l === 92) { if (j(e, p, e.position, !0), l = e.input.charCodeAt(++e.position), P(l)) N(e, !1, o); else if (l < 256 && se[l]) e.result += oe[l], e.position++; else if ((r = ce(l)) > 0) { for (d = r, C = 0; d > 0; d--) l = e.input.charCodeAt(++e.position), (r = Le(l)) >= 0 ? C = (C << 4) + r : T(e, "expected hexadecimal character"); e.result += he(C), e.position++; } else T(e, "unknown escape sequence"); p = y = e.position; } else P(l) ? (j(e, p, y, !0), ue(e, N(e, !1, o)), p = y = e.position) : e.position === e.lineStart && Z(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, y = e.position); } T(e, "unexpected end of the stream within a double quoted scalar"); } function Ae(e, o) { var p = !0, y, d = e.tag, C, r = e.anchor, l, f, g, x, c, A = {}, m, _, R, k; if (k = e.input.charCodeAt(e.position), k === 91) f = 93, c = !1, C = []; else if (k === 123) f = 125, c = !0, C = {}; else return !1; for (e.anchor !== null && (e.anchorMap[e.anchor] = C), k = e.input.charCodeAt(++e.position); k !== 0; ) { if (N(e, !0, o), k = e.input.charCodeAt(e.position), k === f) return e.position++, e.tag = d, e.anchor = r, e.kind = c ? "mapping" : "sequence", e.result = C, !0; p || T(e, "missed comma between flow collection entries"), _ = m = R = null, g = x = !1, k === 63 && (l = e.input.charCodeAt(e.position + 1), B(l) && (g = x = !0, e.position++, N(e, !0, o))), y = e.line, V(e, o, a, !1, !0), _ = e.tag, m = e.result, N(e, !0, o), k = e.input.charCodeAt(e.position), (x || e.line === y) && k === 58 && (g = !0, k = e.input.charCodeAt(++e.position), N(e, !0, o), V(e, o, a, !1, !0), R = e.result), c ? H(e, C, A, _, m, R) : g ? C.push(H(e, null, A, _, m, R)) : C.push(m), N(e, !0, o), k = e.input.charCodeAt(e.position), k === 44 ? (p = !0, k = e.input.charCodeAt(++e.position)) : p = !1; } T(e, "unexpected end of the stream within a flow collection"); } function ye(e, o) { var p, y, d = t, C = !1, r = !1, l = o, f = 0, g = !1, x, c; if (c = e.input.charCodeAt(e.position), c === 124) y = !1; else if (c === 62) y = !0; else return !1; for (e.kind = "scalar", e.result = ""; c !== 0; ) if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45) t === d ? d = c === 43 ? E : F : T(e, "repeat of a chomping mode identifier"); else if ((x = ae(c)) >= 0) x === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? T(e, "repeat of an indentation width identifier") : (l = o + x - 1, r = !0); else break; if (J(c)) { do c = e.input.charCodeAt(++e.position); while (J(c)); if (c === 35) do c = e.input.charCodeAt(++e.position); while (!P(c) && c !== 0); } for (; c !== 0; ) { for (U(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!r || e.lineIndent < l) && c === 32; ) e.lineIndent++, c = e.input.charCodeAt(++e.position); if (!r && e.lineIndent > l && (l = e.lineIndent), P(c)) { f++; continue; } if (e.lineIndent < l) { d === E ? e.result += u.repeat(` `, C ? 1 + f : f) : d === t && C && (e.result += ` `); break; } for (y ? J(c) ? (g = !0, e.result += u.repeat(` `, C ? 1 + f : f)) : g ? (g = !1, e.result += u.repeat(` `, f + 1)) : f === 0 ? C && (e.result += " ") : e.result += u.repeat(` `, f) : e.result += u.repeat(` `, C ? 1 + f : f), C = !0, r = !0, f = 0, p = e.position; !P(c) && c !== 0; ) c = e.input.charCodeAt(++e.position); j(e, p, e.position, !1); } return !0; } function z(e, o) { var p, y = e.tag, d = e.anchor, C = [], r, l = !1, f; for (e.anchor !== null && (e.anchorMap[e.anchor] = C), f = e.input.charCodeAt(e.position); f !== 0 && !(f !== 45 || (r = e.input.charCodeAt(e.position + 1), !B(r))); ) { if (l = !0, e.position++, N(e, !0, -1) && e.lineIndent <= o) { C.push(null), f = e.input.charCodeAt(e.position); continue; } if (p = e.line, V(e, o, n, !1, !0), C.push(e.result), N(e, !0, -1), f = e.input.charCodeAt(e.position), (e.line === p || e.lineIndent > o) && f !== 0) T(e, "bad indentation of a sequence entry"); else if (e.lineIndent < o) break; } return l ? (e.tag = y, e.anchor = d, e.kind = "sequence", e.result = C, !0) : !1; } function De(e, o, p) { var y, d, C, r, l = e.tag, f = e.anchor, g = {}, x = {}, c = null, A = null, m = null, _ = !1, R = !1, k; for (e.anchor !== null && (e.anchorMap[e.anchor] = g), k = e.input.charCodeAt(e.position); k !== 0; ) { if (y = e.input.charCodeAt(e.position + 1), C = e.line, r = e.position, (k === 63 || k === 58) && B(y)) k === 63 ? (_ && (H(e, g, x, c, A, null), c = A = m = null), R = !0, _ = !0, d = !0) : _ ? (_ = !1, d = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = y; else if (V(e, p, s, !1, !0)) if (e.line === C) { for (k = e.input.charCodeAt(e.position); J(k); ) k = e.input.charCodeAt(++e.position); if (k === 58) k = e.input.charCodeAt(++e.position), B(k) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (H(e, g, x, c, A, null), c = A = m = null), R = !0, _ = !1, d = !1, c = e.tag, A = e.result; else if (R) T(e, "can not read an implicit mapping pair; a colon is missed"); else return e.tag = l, e.anchor = f, !0; } else if (R) T(e, "can not read a block mapping entry; a multiline key may not be an implicit key"); else return e.tag = l, e.anchor = f, !0; else break; if ((e.line === C || e.lineIndent > o) && (V(e, o, i, !0, d) && (_ ? A = e.result : m = e.result), _ || (H(e, g, x, c, A, m, C, r), c = A = m = null), N(e, !0, -1), k = e.input.charCodeAt(e.position)), e.lineIndent > o && k !== 0) T(e, "bad indentation of a mapping entry"); else if (e.lineIndent < o) break; } return _ && H(e, g, x, c, A, null), R && (e.tag = l, e.anchor = f, e.kind = "mapping", e.result = g), R; } function Me(e) { var o, p = !1, y = !1, d, C, r; if (r = e.input.charCodeAt(e.position), r !== 33) return !1; if (e.tag !== null && T(e, "duplication of a tag property"), r = e.input.charCodeAt(++e.position), r === 60 ? (p = !0, r = e.input.charCodeAt(++e.position)) : r === 33 ? (y = !0, d = "!!", r = e.input.charCodeAt(++e.position)) : d = "!", o = e.position, p) { do r = e.input.charCodeAt(++e.position); while (r !== 0 && r !== 62); e.position < e.length ? (C = e.input.slice(o, e.position), r = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag"); } else { for (; r !== 0 && !B(r); ) r === 33 && (y ? T(e, "tag suffix cannot contain exclamation marks") : (d = e.input.slice(o - 1, e.position + 1), G.test(d) || T(e, "named tag handle cannot contain such characters"), y = !0, o = e.position + 1)), r = e.input.charCodeAt(++e.position); C = e.input.slice(o, e.position), I.test(C) && T(e, "tag suffix cannot contain flow indicator characters"); } return C && !$.test(C) && T(e, "tag name cannot contain such characters: " + C), p ? e.tag = C : h.call(e.tagMap, d) ? e.tag = e.tagMap[d] + C : d === "!" ? e.tag = "!" + C : d === "!!" ? e.tag = "tag:yaml.org,2002:" + C : T(e, 'undeclared tag handle "' + d + '"'), !0; } function Ce(e) { var o, p; if (p = e.input.charCodeAt(e.position), p !== 38) return !1; for (e.anchor !== null && T(e, "duplication of an anchor property"), p = e.input.charCodeAt(++e.position), o = e.position; p !== 0 && !B(p) && !Q(p); ) p = e.input.charCodeAt(++e.position); return e.position === o && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(o, e.position), !0; } function we(e) { var o, p, y; if (y = e.input.charCodeAt(e.position), y !== 42) return !1; for (y = e.input.charCodeAt(++e.position), o = e.position; y !== 0 && !B(y) && !Q(y); ) y = e.input.charCodeAt(++e.position); return e.position === o && T(e, "name of an alias node must contain at least one character"), p = e.input.slice(o, e.position), h.call(e.anchorMap, p) || T(e, 'unidentified alias "' + p + '"'), e.result = e.anchorMap[p], N(e, !0, -1), !0; } function V(e, o, p, y, d) { var C, r, l, f = 1, g = !1, x = !1, c, A, m, _, R; if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, C = r = l = i === p || n === p, y && N(e, !0, -1) && (g = !0, e.lineIndent > o ? f = 1 : e.lineIndent === o ? f = 0 : e.lineIndent < o && (f = -1)), f === 1) for (; Me(e) || Ce(e); ) N(e, !0, -1) ? (g = !0, l = C, e.lineIndent > o ? f = 1 : e.lineIndent === o ? f = 0 : e.lineIndent < o && (f = -1)) : l = !1; if (l && (l = g || d), (f === 1 || i === p) && (a === p || s === p ? _ = o : _ = o + 1, R = e.position - e.lineStart, f === 1 ? l && (z(e, R) || De(e, R, _)) || Ae(e, _) ? x = !0 : (r && ye(e, _) || ve(e, _) || ge(e, _) ? x = !0 : we(e) ? (x = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : xe(e, _, a === p) && (x = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : f === 0 && (x = l && z(e, R))), e.tag !== null && e.tag !== "!") if (e.tag === "?") { for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, A = e.implicitTypes.length; c < A; c += 1) if (m = e.implicitTypes[c], m.resolve(e.result)) { e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result); break; } } else h.call(e.typeMap[e.kind || "fallback"], e.tag) ? (m = e.typeMap[e.kind || "fallback"][e.tag], e.result !== null && m.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + m.kind + '", not "' + e.kind + '"'), m.resolve(e.result) ? (e.result = m.construct(e.result), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag")) : T(e, "unknown tag !<" + e.tag + ">"); return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || x; } function Fe(e) { var o = e.position, p, y, d, C = !1, r; for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = {}, e.anchorMap = {}; (r = e.input.charCodeAt(e.position)) !== 0 && (N(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37)); ) { for (C = !0, r = e.input.charCodeAt(++e.position), p = e.position; r !== 0 && !B(r); ) r = e.input.charCodeAt(++e.position); for (y = e.input.slice(p, e.position), d = [], y.length < 1 && T(e, "directive name must not be less than one character in length"); r !== 0; ) { for (; J(r); ) r = e.input.charCodeAt(++e.position); if (r === 35) { do r = e.input.charCodeAt(++e.position); while (r !== 0 && !P(r)); break; } if (P(r)) break; for (p = e.position; r !== 0 && !B(r); ) r = e.input.charCodeAt(++e.position); d.push(e.input.slice(p, e.position)); } r !== 0 && U(e), h.call(le, y) ? le[y](e, y, d) : ee(e, 'unknown document directive "' + y + '"'); } if (N(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, N(e, !0, -1)) : C && T(e, "directives end mark is expected"), V(e, e.lineIndent - 1, i, !1, !0), N(e, !0, -1), e.checkLineBreaks && O.test(e.input.slice(o, e.position)) && ee(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Z(e)) { e.input.charCodeAt(e.position) === 46 && (e.position += 3, N(e, !0, -1)); return; } if (e.position < e.length - 1) T(e, "end of the stream or a document separator is expected"); else return; } function Ee(e, o) { e = String(e), o = o || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += ` `), e.charCodeAt(0) === 65279 && (e = e.slice(1))); var p = new Ie(e, o), y = e.indexOf("\0"); for (y !== -1 && (p.position = y, T(p, "null byte is not allowed in input")), p.input += "\0"; p.input.charCodeAt(p.position) === 32; ) p.lineIndent += 1, p.position += 1; for (; p.position < p.length - 1; ) Fe(p); return p.documents; } function _e(e, o, p) { o !== null && typeof o == "object" && typeof p > "u" && (p = o, o = null); var y = Ee(e, p); if (typeof o != "function") return y; for (var d = 0, C = y.length; d < C; d += 1) o(y[d]); } function Se(e, o) { var p = Ee(e, o); if (p.length !== 0) { if (p.length === 1) return p[0]; throw new w("expected a single document in the stream, but found more"); } } function Ne(e, o, p) { return typeof o == "object" && o !== null && typeof p > "u" && (p = o, o = null), _e(e, o, u.extend({ schema: S }, p)); } function qe(e, o) { return Se(e, u.extend({ schema: S }, o)); } return re.loadAll = _e, re.load = Se, re.safeLoadAll = Ne, re.safeLoad = qe, re; } var ke = {}, Br; function hn() { if (Br) return ke; Br = 1; var u = ne(), w = fe(), b = Re(), S = te(), v = Object.prototype.toString, h = Object.prototype.hasOwnProperty, a = 9, s = 10, n = 13, i = 32, t = 33, F = 34, E = 35, L = 37, O = 38, I = 39, G = 42, $ = 44, W = 45, P = 58, J = 61, B = 62, Q = 63, Le = 64, ce = 91, ae = 93, pe = 96, he = 123, se = 124, oe = 125, D = {}; D[0] = "\\0", D[7] = "\\a", D[8] = "\\b", D[9] = "\\t", D[10] = "\\n", D[11] = "\\v", D[12] = "\\f", D[13] = "\\r", D[27] = "\\e", D[34] = '\\"', D[92] = "\\\\", D[133] = "\\N", D[160] = "\\_", D[8232] = "\\L", D[8233] = "\\P"; var Ie = [ "y", "Y", "yes", "Yes", "YES", "on", "On", "ON", "n", "N", "no", "No", "NO", "off", "Off", "OFF" ]; function de(r, l) { var f, g, x, c, A, m, _; if (l === null) return {}; for (f = {}, g = Object.keys(l), x = 0, c = g.length; x < c; x += 1) A = g[x], m = String(l[A]), A.slice(0, 2) === "!!" && (A = "tag:yaml.org,2002:" + A.slice(2)), _ = r.compiledTypeMap.fallback[A], _ && h.call(_.styleAliases, m) && (m = _.styleAliases[m]), f[A] = m; return f; } function T(r) { var l, f, g; if (l = r.toString(16).toUpperCase(), r <= 255) f = "x", g = 2; else if (r <= 65535) f = "u", g = 4; else if (r <= 4294967295) f = "U", g = 8; else throw new w("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + f + u.repeat("0", g - l.length) + l; } function ee(r) { this.schema = r.schema || b, this.indent = Math.max(1, r.indent || 2), this.noArrayIndent = r.noArrayIndent || !1, this.skipInvalid = r.skipInvalid || !1, this.flowLevel = u.isNothing(r.flowLevel) ? -1 : r.flowLevel, this.styleMap = de(this.schema, r.styles || null), this.sortKeys = r.sortKeys || !1, this.lineWidth = r.lineWidth || 80, this.noRefs = r.noRefs || !1, this.noCompatMode = r.noCompatMode || !1, this.condenseFlow = r.condenseFlow || !1, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } function le(r, l) { for (var f = u.repeat(" ", l), g = 0, x = -1, c = "", A, m = r.length; g < m; ) x = r.indexOf(` `, g), x === -1 ? (A = r.slice(g), g = m) : (A = r.slice(g, x + 1), g = x + 1), A.length && A !== ` ` && (c += f), c += A; return c; } function j(r, l) { return ` ` + u.repeat(" ", r.indent * l); } function me(r, l) { var f, g, x; for (f = 0, g = r.implicitTypes.length; f < g; f += 1) if (x = r.implicitTypes[f], x.resolve(l)) return !0; return !1; } function H(r) { return r === i || r === a; } function U(r) { return 32 <= r && r <= 126 || 161 <= r && r <= 55295 && r !== 8232 && r !== 8233 || 57344 <= r && r <= 65533 && r !== 65279 || 65536 <= r && r <= 1114111; } function N(r) { return U(r) && !H(r) && r !== 65279 && r !== n && r !== s; } function Z(r, l) { return U(r) && r !== 65279 && r !== $ && r !== ce && r !== ae && r !== he && r !== oe && r !== P && (r !== E || l && N(l)); } function ue(r) { return U(r) && r !== 65279 && !H(r) && r !== W && r !== Q && r !== P && r !== $ && r !== ce && r !== ae && r !== he && r !== oe && r !== E && r !== O && r !== G && r !== t && r !== se && r !== J && r !== B && r !== I && r !== F && r !== L && r !== Le && r !== pe; } function xe(r) { var l = /^\n* /; return l.test(r); } var ve = 1, ge = 2, Ae = 3, ye = 4, z = 5; function De(r, l, f, g, x) { var c, A, m, _ = !1, R = !1, k = g !== -1, K = -1, Y = ue(r.charCodeAt(0)) && !H(r.charCodeAt(r.length - 1)); if (l) for (c = 0; c < r.length; c++) { if (A = r.charCodeAt(c), !U(A)) return z; m = c > 0 ? r.charCodeAt(c - 1) : null, Y = Y && Z(A, m); } else { for (c = 0; c < r.length; c++) { if (A = r.charCodeAt(c), A === s) _ = !0, k && (R = R || // Foldable line = too long, and not more-indented. c - K - 1 > g && r[K + 1] !== " ", K = c); else if (!U(A)) return z; m = c > 0 ? r.charCodeAt(c - 1) : null, Y = Y && Z(A, m); } R = R || k && c - K - 1 > g && r[K + 1] !== " "; } return !_ && !R ? Y && !x(r) ? ve : ge : f > 9 && xe(r) ? z : R ? ye : Ae; } function Me(r, l, f, g) { r.dump = function() { if (l.length === 0) return "''"; if (!r.noCompatMode && Ie.indexOf(l) !== -1) return "'" + l + "'"; var x = r.indent * Math.max(1, f), c = r.lineWidth === -1 ? -1 : Math.max(Math.min(r.lineWidth, 40), r.lineWidth - x), A = g || r.flowLevel > -1 && f >= r.flowLevel; function m(_) { return me(r, _); } switch (De(l, A, r.indent, c, m)) { case ve: return l; case ge: return "'" + l.replace(/'/g, "''") + "'"; case Ae: return "|" + Ce(l, r.indent) + we(le(l, x)); case ye: return ">" + Ce(l, r.indent) + we(le(V(l, c), x)); case z: return '"' + Ee(l) + '"'; default: throw new w("impossible error: invali