UNPKG

ndlkotenocr-lite-worker

Version:
1,241 lines (1,240 loc) 58.9 MB
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function _D(A) { return typeof A > "u" || A === null; } function Oy(A) { return typeof A == "object" && A !== null; } function zy(A) { return Array.isArray(A) ? A : _D(A) ? [] : [A]; } function Xy(A, I) { var C, Q, g, E; if (I) for (E = Object.keys(I), C = 0, Q = E.length; C < Q; C += 1) g = E[C], A[g] = I[g]; return A; } function ry(A, I) { var C = "", Q; for (Q = 0; Q < I; Q += 1) C += A; return C; } function my(A) { return A === 0 && Number.NEGATIVE_INFINITY === 1 / A; } var vy = _D, ey = Oy, uy = zy, _y = ry, $y = my, Ao = Xy, lA = { isNothing: vy, isObject: ey, toArray: uy, repeat: _y, isNegativeZero: $y, extend: Ao }; function $D(A, I) { var C = "", Q = A.reason || "(unknown reason)"; return A.mark ? (A.mark.name && (C += 'in "' + A.mark.name + '" '), C += "(" + (A.mark.line + 1) + ":" + (A.mark.column + 1) + ")", !I && A.mark.snippet && (C += ` ` + A.mark.snippet), Q + " " + C) : Q; } function LC(A, I) { Error.call(this), this.name = "YAMLException", this.reason = A, this.mark = I, this.message = $D(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } LC.prototype = Object.create(Error.prototype); LC.prototype.constructor = LC; LC.prototype.toString = function(I) { return this.name + ": " + $D(this, I); }; var TA = LC; function xQ(A, I, C, Q, g) { var E = "", B = "", U = Math.floor(g / 2) - 1; return Q - I > U && (E = " ... ", I = Q - U + E.length), C - Q > U && (B = " ...", C = Q + U - B.length), { str: E + A.slice(I, C).replace(/\t/g, "→") + B, pos: Q - I + E.length // relative position }; } function PQ(A, I) { return lA.repeat(" ", I - A.length) + A; } function Io(A, I) { if (I = Object.create(I || null), !A.buffer) return null; I.maxLength || (I.maxLength = 79), typeof I.indent != "number" && (I.indent = 1), typeof I.linesBefore != "number" && (I.linesBefore = 3), typeof I.linesAfter != "number" && (I.linesAfter = 2); for (var C = /\r?\n|\r|\0/g, Q = [0], g = [], E, B = -1; E = C.exec(A.buffer); ) g.push(E.index), Q.push(E.index + E[0].length), A.position <= E.index && B < 0 && (B = Q.length - 2); B < 0 && (B = Q.length - 1); var U = "", w, D, M = Math.min(A.line + I.linesAfter, g.length).toString().length, G = I.maxLength - (I.indent + M + 3); for (w = 1; w <= I.linesBefore && !(B - w < 0); w++) D = xQ( A.buffer, Q[B - w], g[B - w], A.position - (Q[B] - Q[B - w]), G ), U = lA.repeat(" ", I.indent) + PQ((A.line - w + 1).toString(), M) + " | " + D.str + ` ` + U; for (D = xQ(A.buffer, Q[B], g[B], A.position, G), U += lA.repeat(" ", I.indent) + PQ((A.line + 1).toString(), M) + " | " + D.str + ` `, U += lA.repeat("-", I.indent + M + 3 + D.pos) + `^ `, w = 1; w <= I.linesAfter && !(B + w >= g.length); w++) D = xQ( A.buffer, Q[B + w], g[B + w], A.position - (Q[B] - Q[B + w]), G ), U += lA.repeat(" ", I.indent) + PQ((A.line + w + 1).toString(), M) + " | " + D.str + ` `; return U.replace(/\n$/, ""); } var Co = Io, Qo = [ "kind", "multi", "resolve", "construct", "instanceOf", "predicate", "represent", "representName", "defaultStyle", "styleAliases" ], go = [ "scalar", "sequence", "mapping" ]; function Bo(A) { var I = {}; return A !== null && Object.keys(A).forEach(function(C) { A[C].forEach(function(Q) { I[String(Q)] = C; }); }), I; } function Eo(A, I) { if (I = I || {}, Object.keys(I).forEach(function(C) { if (Qo.indexOf(C) === -1) throw new TA('Unknown option "' + C + '" is met in definition of "' + A + '" YAML type.'); }), this.options = I, this.tag = A, this.kind = I.kind || null, this.resolve = I.resolve || function() { return !0; }, this.construct = I.construct || function(C) { return C; }, this.instanceOf = I.instanceOf || null, this.predicate = I.predicate || null, this.represent = I.represent || null, this.representName = I.representName || null, this.defaultStyle = I.defaultStyle || null, this.multi = I.multi || !1, this.styleAliases = Bo(I.styleAliases || null), go.indexOf(this.kind) === -1) throw new TA('Unknown kind "' + this.kind + '" is specified for "' + A + '" YAML type.'); } var aA = Eo; function CU(A, I) { var C = []; return A[I].forEach(function(Q) { var g = C.length; C.forEach(function(E, B) { E.tag === Q.tag && E.kind === Q.kind && E.multi === Q.multi && (g = B); }), C[g] = Q; }), C; } function Uo() { var A = { scalar: {}, sequence: {}, mapping: {}, fallback: {}, multi: { scalar: [], sequence: [], mapping: [], fallback: [] } }, I, C; function Q(g) { g.multi ? (A.multi[g.kind].push(g), A.multi.fallback.push(g)) : A[g.kind][g.tag] = A.fallback[g.tag] = g; } for (I = 0, C = arguments.length; I < C; I += 1) arguments[I].forEach(Q); return A; } function pg(A) { return this.extend(A); } pg.prototype.extend = function(I) { var C = [], Q = []; if (I instanceof aA) Q.push(I); else if (Array.isArray(I)) Q = Q.concat(I); else if (I && (Array.isArray(I.implicit) || Array.isArray(I.explicit))) I.implicit && (C = C.concat(I.implicit)), I.explicit && (Q = Q.concat(I.explicit)); else throw new TA("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })"); C.forEach(function(E) { if (!(E instanceof aA)) throw new TA("Specified list of YAML types (or a single Type object) contains a non-Type object."); if (E.loadKind && E.loadKind !== "scalar") throw new TA("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported."); if (E.multi) throw new TA("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit."); }), Q.forEach(function(E) { if (!(E instanceof aA)) throw new TA("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); var g = Object.create(pg.prototype); return g.implicit = (this.implicit || []).concat(C), g.explicit = (this.explicit || []).concat(Q), g.compiledImplicit = CU(g, "implicit"), g.compiledExplicit = CU(g, "explicit"), g.compiledTypeMap = Uo(g.compiledImplicit, g.compiledExplicit), g; }; var AF = pg, IF = new aA("tag:yaml.org,2002:str", { kind: "scalar", construct: function(A) { return A !== null ? A : ""; } }), CF = new aA("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(A) { return A !== null ? A : []; } }), QF = new aA("tag:yaml.org,2002:map", { kind: "mapping", construct: function(A) { return A !== null ? A : {}; } }), gF = new AF({ explicit: [ IF, CF, QF ] }); function Ro(A) { if (A === null) return !0; var I = A.length; return I === 1 && A === "~" || I === 4 && (A === "null" || A === "Null" || A === "NULL"); } function wo() { return null; } function Do(A) { return A === null; } var BF = new aA("tag:yaml.org,2002:null", { kind: "scalar", resolve: Ro, construct: wo, predicate: Do, represent: { canonical: function() { return "~"; }, lowercase: function() { return "null"; }, uppercase: function() { return "NULL"; }, camelcase: function() { return "Null"; }, empty: function() { return ""; } }, defaultStyle: "lowercase" }); function Fo(A) { if (A === null) return !1; var I = A.length; return I === 4 && (A === "true" || A === "True" || A === "TRUE") || I === 5 && (A === "false" || A === "False" || A === "FALSE"); } function Mo(A) { return A === "true" || A === "True" || A === "TRUE"; } function Go(A) { return Object.prototype.toString.call(A) === "[object Boolean]"; } var EF = new aA("tag:yaml.org,2002:bool", { kind: "scalar", resolve: Fo, construct: Mo, predicate: Go, represent: { lowercase: function(A) { return A ? "true" : "false"; }, uppercase: function(A) { return A ? "TRUE" : "FALSE"; }, camelcase: function(A) { return A ? "True" : "False"; } }, defaultStyle: "lowercase" }); function Jo(A) { return 48 <= A && A <= 57 || 65 <= A && A <= 70 || 97 <= A && A <= 102; } function io(A) { return 48 <= A && A <= 55; } function yo(A) { return 48 <= A && A <= 57; } function oo(A) { if (A === null) return !1; var I = A.length, C = 0, Q = !1, g; if (!I) return !1; if (g = A[C], (g === "-" || g === "+") && (g = A[++C]), g === "0") { if (C + 1 === I) return !0; if (g = A[++C], g === "b") { for (C++; C < I; C++) if (g = A[C], g !== "_") { if (g !== "0" && g !== "1") return !1; Q = !0; } return Q && g !== "_"; } if (g === "x") { for (C++; C < I; C++) if (g = A[C], g !== "_") { if (!Jo(A.charCodeAt(C))) return !1; Q = !0; } return Q && g !== "_"; } if (g === "o") { for (C++; C < I; C++) if (g = A[C], g !== "_") { if (!io(A.charCodeAt(C))) return !1; Q = !0; } return Q && g !== "_"; } } if (g === "_") return !1; for (; C < I; C++) if (g = A[C], g !== "_") { if (!yo(A.charCodeAt(C))) return !1; Q = !0; } return !(!Q || g === "_"); } function No(A) { var I = A, C = 1, Q; if (I.indexOf("_") !== -1 && (I = I.replace(/_/g, "")), Q = I[0], (Q === "-" || Q === "+") && (Q === "-" && (C = -1), I = I.slice(1), Q = I[0]), I === "0") return 0; if (Q === "0") { if (I[1] === "b") return C * parseInt(I.slice(2), 2); if (I[1] === "x") return C * parseInt(I.slice(2), 16); if (I[1] === "o") return C * parseInt(I.slice(2), 8); } return C * parseInt(I, 10); } function jo(A) { return Object.prototype.toString.call(A) === "[object Number]" && A % 1 === 0 && !lA.isNegativeZero(A); } var UF = new aA("tag:yaml.org,2002:int", { kind: "scalar", resolve: oo, construct: No, predicate: jo, represent: { binary: function(A) { return A >= 0 ? "0b" + A.toString(2) : "-0b" + A.toString(2).slice(1); }, octal: function(A) { return A >= 0 ? "0o" + A.toString(8) : "-0o" + A.toString(8).slice(1); }, decimal: function(A) { return A.toString(10); }, /* eslint-disable max-len */ hexadecimal: function(A) { return A >= 0 ? "0x" + A.toString(16).toUpperCase() : "-0x" + A.toString(16).toUpperCase().slice(1); } }, defaultStyle: "decimal", styleAliases: { binary: [2, "bin"], octal: [8, "oct"], decimal: [10, "dec"], hexadecimal: [16, "hex"] } }), so = new RegExp( // 2.5e4, 2.5 and integers "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); function So(A) { return !(A === null || !so.test(A) || // Quick hack to not allow integers end with `_` // Probably should update regexp & check speed A[A.length - 1] === "_"); } function ho(A) { var I, C; return I = A.replace(/_/g, "").toLowerCase(), C = I[0] === "-" ? -1 : 1, "+-".indexOf(I[0]) >= 0 && (I = I.slice(1)), I === ".inf" ? C === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : I === ".nan" ? NaN : C * parseFloat(I, 10); } var Lo = /^[-+]?[0-9]+e/; function Yo(A, I) { var C; if (isNaN(A)) switch (I) { case "lowercase": return ".nan"; case "uppercase": return ".NAN"; case "camelcase": return ".NaN"; } else if (Number.POSITIVE_INFINITY === A) switch (I) { case "lowercase": return ".inf"; case "uppercase": return ".INF"; case "camelcase": return ".Inf"; } else if (Number.NEGATIVE_INFINITY === A) switch (I) { case "lowercase": return "-.inf"; case "uppercase": return "-.INF"; case "camelcase": return "-.Inf"; } else if (lA.isNegativeZero(A)) return "-0.0"; return C = A.toString(10), Lo.test(C) ? C.replace("e", ".e") : C; } function Ko(A) { return Object.prototype.toString.call(A) === "[object Number]" && (A % 1 !== 0 || lA.isNegativeZero(A)); } var RF = new aA("tag:yaml.org,2002:float", { kind: "scalar", resolve: So, construct: ho, predicate: Ko, represent: Yo, defaultStyle: "lowercase" }), wF = gF.extend({ implicit: [ BF, EF, UF, RF ] }), DF = wF, FF = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" ), MF = 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 lo(A) { return A === null ? !1 : FF.exec(A) !== null || MF.exec(A) !== null; } function ko(A) { var I, C, Q, g, E, B, U, w = 0, D = null, M, G, J; if (I = FF.exec(A), I === null && (I = MF.exec(A)), I === null) throw new Error("Date resolve error"); if (C = +I[1], Q = +I[2] - 1, g = +I[3], !I[4]) return new Date(Date.UTC(C, Q, g)); if (E = +I[4], B = +I[5], U = +I[6], I[7]) { for (w = I[7].slice(0, 3); w.length < 3; ) w += "0"; w = +w; } return I[9] && (M = +I[10], G = +(I[11] || 0), D = (M * 60 + G) * 6e4, I[9] === "-" && (D = -D)), J = new Date(Date.UTC(C, Q, g, E, B, U, w)), D && J.setTime(J.getTime() - D), J; } function co(A) { return A.toISOString(); } var GF = new aA("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: lo, construct: ko, instanceOf: Date, represent: co }); function Ho(A) { return A === "<<" || A === null; } var JF = new aA("tag:yaml.org,2002:merge", { kind: "scalar", resolve: Ho }), RB = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; function ao(A) { if (A === null) return !1; var I, C, Q = 0, g = A.length, E = RB; for (C = 0; C < g; C++) if (I = E.indexOf(A.charAt(C)), !(I > 64)) { if (I < 0) return !1; Q += 6; } return Q % 8 === 0; } function Zo(A) { var I, C, Q = A.replace(/[\r\n=]/g, ""), g = Q.length, E = RB, B = 0, U = []; for (I = 0; I < g; I++) I % 4 === 0 && I && (U.push(B >> 16 & 255), U.push(B >> 8 & 255), U.push(B & 255)), B = B << 6 | E.indexOf(Q.charAt(I)); return C = g % 4 * 6, C === 0 ? (U.push(B >> 16 & 255), U.push(B >> 8 & 255), U.push(B & 255)) : C === 18 ? (U.push(B >> 10 & 255), U.push(B >> 2 & 255)) : C === 12 && U.push(B >> 4 & 255), new Uint8Array(U); } function no(A) { var I = "", C = 0, Q, g, E = A.length, B = RB; for (Q = 0; Q < E; Q++) Q % 3 === 0 && Q && (I += B[C >> 18 & 63], I += B[C >> 12 & 63], I += B[C >> 6 & 63], I += B[C & 63]), C = (C << 8) + A[Q]; return g = E % 3, g === 0 ? (I += B[C >> 18 & 63], I += B[C >> 12 & 63], I += B[C >> 6 & 63], I += B[C & 63]) : g === 2 ? (I += B[C >> 10 & 63], I += B[C >> 4 & 63], I += B[C << 2 & 63], I += B[64]) : g === 1 && (I += B[C >> 2 & 63], I += B[C << 4 & 63], I += B[64], I += B[64]), I; } function qo(A) { return Object.prototype.toString.call(A) === "[object Uint8Array]"; } var iF = new aA("tag:yaml.org,2002:binary", { kind: "scalar", resolve: ao, construct: Zo, predicate: qo, represent: no }), Vo = Object.prototype.hasOwnProperty, To = Object.prototype.toString; function bo(A) { if (A === null) return !0; var I = [], C, Q, g, E, B, U = A; for (C = 0, Q = U.length; C < Q; C += 1) { if (g = U[C], B = !1, To.call(g) !== "[object Object]") return !1; for (E in g) if (Vo.call(g, E)) if (!B) B = !0; else return !1; if (!B) return !1; if (I.indexOf(E) === -1) I.push(E); else return !1; } return !0; } function xo(A) { return A !== null ? A : []; } var yF = new aA("tag:yaml.org,2002:omap", { kind: "sequence", resolve: bo, construct: xo }), Po = Object.prototype.toString; function fo(A) { if (A === null) return !0; var I, C, Q, g, E, B = A; for (E = new Array(B.length), I = 0, C = B.length; I < C; I += 1) { if (Q = B[I], Po.call(Q) !== "[object Object]" || (g = Object.keys(Q), g.length !== 1)) return !1; E[I] = [g[0], Q[g[0]]]; } return !0; } function po(A) { if (A === null) return []; var I, C, Q, g, E, B = A; for (E = new Array(B.length), I = 0, C = B.length; I < C; I += 1) Q = B[I], g = Object.keys(Q), E[I] = [g[0], Q[g[0]]]; return E; } var oF = new aA("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: fo, construct: po }), Wo = Object.prototype.hasOwnProperty; function to(A) { if (A === null) return !0; var I, C = A; for (I in C) if (Wo.call(C, I) && C[I] !== null) return !1; return !0; } function Oo(A) { return A !== null ? A : {}; } var NF = new aA("tag:yaml.org,2002:set", { kind: "mapping", resolve: to, construct: Oo }), wB = DF.extend({ implicit: [ GF, JF ], explicit: [ iF, yF, oF, NF ] }), hI = Object.prototype.hasOwnProperty, CQ = 1, jF = 2, sF = 3, QQ = 4, fQ = 1, zo = 2, QU = 3, Xo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ro = /[\x85\u2028\u2029]/, mo = /[,\[\]\{\}]/, SF = /^(?:!|!!|![a-z\-]+!)$/i, hF = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function gU(A) { return Object.prototype.toString.call(A); } function gI(A) { return A === 10 || A === 13; } function qI(A) { return A === 9 || A === 32; } function bA(A) { return A === 9 || A === 32 || A === 10 || A === 13; } function zI(A) { return A === 44 || A === 91 || A === 93 || A === 123 || A === 125; } function vo(A) { var I; return 48 <= A && A <= 57 ? A - 48 : (I = A | 32, 97 <= I && I <= 102 ? I - 97 + 10 : -1); } function eo(A) { return A === 120 ? 2 : A === 117 ? 4 : A === 85 ? 8 : 0; } function uo(A) { return 48 <= A && A <= 57 ? A - 48 : -1; } function BU(A) { return A === 48 ? "\0" : A === 97 ? "\x07" : A === 98 ? "\b" : A === 116 || A === 9 ? " " : A === 110 ? ` ` : A === 118 ? "\v" : A === 102 ? "\f" : A === 114 ? "\r" : A === 101 ? "\x1B" : A === 32 ? " " : A === 34 ? '"' : A === 47 ? "/" : A === 92 ? "\\" : A === 78 ? "…" : A === 95 ? " " : A === 76 ? "\u2028" : A === 80 ? "\u2029" : ""; } function _o(A) { return A <= 65535 ? String.fromCharCode(A) : String.fromCharCode( (A - 65536 >> 10) + 55296, (A - 65536 & 1023) + 56320 ); } var LF = new Array(256), YF = new Array(256); for (var WI = 0; WI < 256; WI++) LF[WI] = BU(WI) ? 1 : 0, YF[WI] = BU(WI); function $o(A, I) { this.input = A, this.filename = I.filename || null, this.schema = I.schema || wB, this.onWarning = I.onWarning || null, this.legacy = I.legacy || !1, this.json = I.json || !1, this.listener = I.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = A.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = []; } function KF(A, I) { var C = { name: A.filename, buffer: A.input.slice(0, -1), // omit trailing \0 position: A.position, line: A.line, column: A.position - A.lineStart }; return C.snippet = Co(C), new TA(I, C); } function $(A, I) { throw KF(A, I); } function gQ(A, I) { A.onWarning && A.onWarning.call(null, KF(A, I)); } var EU = { YAML: function(I, C, Q) { var g, E, B; I.version !== null && $(I, "duplication of %YAML directive"), Q.length !== 1 && $(I, "YAML directive accepts exactly one argument"), g = /^([0-9]+)\.([0-9]+)$/.exec(Q[0]), g === null && $(I, "ill-formed argument of the YAML directive"), E = parseInt(g[1], 10), B = parseInt(g[2], 10), E !== 1 && $(I, "unacceptable YAML version of the document"), I.version = Q[0], I.checkLineBreaks = B < 2, B !== 1 && B !== 2 && gQ(I, "unsupported YAML version of the document"); }, TAG: function(I, C, Q) { var g, E; Q.length !== 2 && $(I, "TAG directive accepts exactly two arguments"), g = Q[0], E = Q[1], SF.test(g) || $(I, "ill-formed tag handle (first argument) of the TAG directive"), hI.call(I.tagMap, g) && $(I, 'there is a previously declared suffix for "' + g + '" tag handle'), hF.test(E) || $(I, "ill-formed tag prefix (second argument) of the TAG directive"); try { E = decodeURIComponent(E); } catch { $(I, "tag prefix is malformed: " + E); } I.tagMap[g] = E; } }; function SI(A, I, C, Q) { var g, E, B, U; if (I < C) { if (U = A.input.slice(I, C), Q) for (g = 0, E = U.length; g < E; g += 1) B = U.charCodeAt(g), B === 9 || 32 <= B && B <= 1114111 || $(A, "expected valid JSON character"); else Xo.test(U) && $(A, "the stream contains non-printable characters"); A.result += U; } } function UU(A, I, C, Q) { var g, E, B, U; for (lA.isObject(C) || $(A, "cannot merge mappings; the provided source object is unacceptable"), g = Object.keys(C), B = 0, U = g.length; B < U; B += 1) E = g[B], hI.call(I, E) || (I[E] = C[E], Q[E] = !0); } function XI(A, I, C, Q, g, E, B, U, w) { var D, M; if (Array.isArray(g)) for (g = Array.prototype.slice.call(g), D = 0, M = g.length; D < M; D += 1) Array.isArray(g[D]) && $(A, "nested arrays are not supported inside keys"), typeof g == "object" && gU(g[D]) === "[object Object]" && (g[D] = "[object Object]"); if (typeof g == "object" && gU(g) === "[object Object]" && (g = "[object Object]"), g = String(g), I === null && (I = {}), Q === "tag:yaml.org,2002:merge") if (Array.isArray(E)) for (D = 0, M = E.length; D < M; D += 1) UU(A, I, E[D], C); else UU(A, I, E, C); else !A.json && !hI.call(C, g) && hI.call(I, g) && (A.line = B || A.line, A.lineStart = U || A.lineStart, A.position = w || A.position, $(A, "duplicated mapping key")), g === "__proto__" ? Object.defineProperty(I, g, { configurable: !0, enumerable: !0, writable: !0, value: E }) : I[g] = E, delete C[g]; return I; } function DB(A) { var I; I = A.input.charCodeAt(A.position), I === 10 ? A.position++ : I === 13 ? (A.position++, A.input.charCodeAt(A.position) === 10 && A.position++) : $(A, "a line break is expected"), A.line += 1, A.lineStart = A.position, A.firstTabInLine = -1; } function KA(A, I, C) { for (var Q = 0, g = A.input.charCodeAt(A.position); g !== 0; ) { for (; qI(g); ) g === 9 && A.firstTabInLine === -1 && (A.firstTabInLine = A.position), g = A.input.charCodeAt(++A.position); if (I && g === 35) do g = A.input.charCodeAt(++A.position); while (g !== 10 && g !== 13 && g !== 0); if (gI(g)) for (DB(A), g = A.input.charCodeAt(A.position), Q++, A.lineIndent = 0; g === 32; ) A.lineIndent++, g = A.input.charCodeAt(++A.position); else break; } return C !== -1 && Q !== 0 && A.lineIndent < C && gQ(A, "deficient indentation"), Q; } function iQ(A) { var I = A.position, C; return C = A.input.charCodeAt(I), !!((C === 45 || C === 46) && C === A.input.charCodeAt(I + 1) && C === A.input.charCodeAt(I + 2) && (I += 3, C = A.input.charCodeAt(I), C === 0 || bA(C))); } function FB(A, I) { I === 1 ? A.result += " " : I > 1 && (A.result += lA.repeat(` `, I - 1)); } function AN(A, I, C) { var Q, g, E, B, U, w, D, M, G = A.kind, J = A.result, i; if (i = A.input.charCodeAt(A.position), bA(i) || zI(i) || i === 35 || i === 38 || i === 42 || i === 33 || i === 124 || i === 62 || i === 39 || i === 34 || i === 37 || i === 64 || i === 96 || (i === 63 || i === 45) && (g = A.input.charCodeAt(A.position + 1), bA(g) || C && zI(g))) return !1; for (A.kind = "scalar", A.result = "", E = B = A.position, U = !1; i !== 0; ) { if (i === 58) { if (g = A.input.charCodeAt(A.position + 1), bA(g) || C && zI(g)) break; } else if (i === 35) { if (Q = A.input.charCodeAt(A.position - 1), bA(Q)) break; } else { if (A.position === A.lineStart && iQ(A) || C && zI(i)) break; if (gI(i)) if (w = A.line, D = A.lineStart, M = A.lineIndent, KA(A, !1, -1), A.lineIndent >= I) { U = !0, i = A.input.charCodeAt(A.position); continue; } else { A.position = B, A.line = w, A.lineStart = D, A.lineIndent = M; break; } } U && (SI(A, E, B, !1), FB(A, A.line - w), E = B = A.position, U = !1), qI(i) || (B = A.position + 1), i = A.input.charCodeAt(++A.position); } return SI(A, E, B, !1), A.result ? !0 : (A.kind = G, A.result = J, !1); } function IN(A, I) { var C, Q, g; if (C = A.input.charCodeAt(A.position), C !== 39) return !1; for (A.kind = "scalar", A.result = "", A.position++, Q = g = A.position; (C = A.input.charCodeAt(A.position)) !== 0; ) if (C === 39) if (SI(A, Q, A.position, !0), C = A.input.charCodeAt(++A.position), C === 39) Q = A.position, A.position++, g = A.position; else return !0; else gI(C) ? (SI(A, Q, g, !0), FB(A, KA(A, !1, I)), Q = g = A.position) : A.position === A.lineStart && iQ(A) ? $(A, "unexpected end of the document within a single quoted scalar") : (A.position++, g = A.position); $(A, "unexpected end of the stream within a single quoted scalar"); } function CN(A, I) { var C, Q, g, E, B, U; if (U = A.input.charCodeAt(A.position), U !== 34) return !1; for (A.kind = "scalar", A.result = "", A.position++, C = Q = A.position; (U = A.input.charCodeAt(A.position)) !== 0; ) { if (U === 34) return SI(A, C, A.position, !0), A.position++, !0; if (U === 92) { if (SI(A, C, A.position, !0), U = A.input.charCodeAt(++A.position), gI(U)) KA(A, !1, I); else if (U < 256 && LF[U]) A.result += YF[U], A.position++; else if ((B = eo(U)) > 0) { for (g = B, E = 0; g > 0; g--) U = A.input.charCodeAt(++A.position), (B = vo(U)) >= 0 ? E = (E << 4) + B : $(A, "expected hexadecimal character"); A.result += _o(E), A.position++; } else $(A, "unknown escape sequence"); C = Q = A.position; } else gI(U) ? (SI(A, C, Q, !0), FB(A, KA(A, !1, I)), C = Q = A.position) : A.position === A.lineStart && iQ(A) ? $(A, "unexpected end of the document within a double quoted scalar") : (A.position++, Q = A.position); } $(A, "unexpected end of the stream within a double quoted scalar"); } function QN(A, I) { var C = !0, Q, g, E, B = A.tag, U, w = A.anchor, D, M, G, J, i, o = /* @__PURE__ */ Object.create(null), N, L, S, j; if (j = A.input.charCodeAt(A.position), j === 91) M = 93, i = !1, U = []; else if (j === 123) M = 125, i = !0, U = {}; else return !1; for (A.anchor !== null && (A.anchorMap[A.anchor] = U), j = A.input.charCodeAt(++A.position); j !== 0; ) { if (KA(A, !0, I), j = A.input.charCodeAt(A.position), j === M) return A.position++, A.tag = B, A.anchor = w, A.kind = i ? "mapping" : "sequence", A.result = U, !0; C ? j === 44 && $(A, "expected the node content, but found ','") : $(A, "missed comma between flow collection entries"), L = N = S = null, G = J = !1, j === 63 && (D = A.input.charCodeAt(A.position + 1), bA(D) && (G = J = !0, A.position++, KA(A, !0, I))), Q = A.line, g = A.lineStart, E = A.position, vI(A, I, CQ, !1, !0), L = A.tag, N = A.result, KA(A, !0, I), j = A.input.charCodeAt(A.position), (J || A.line === Q) && j === 58 && (G = !0, j = A.input.charCodeAt(++A.position), KA(A, !0, I), vI(A, I, CQ, !1, !0), S = A.result), i ? XI(A, U, o, L, N, S, Q, g, E) : G ? U.push(XI(A, null, o, L, N, S, Q, g, E)) : U.push(N), KA(A, !0, I), j = A.input.charCodeAt(A.position), j === 44 ? (C = !0, j = A.input.charCodeAt(++A.position)) : C = !1; } $(A, "unexpected end of the stream within a flow collection"); } function gN(A, I) { var C, Q, g = fQ, E = !1, B = !1, U = I, w = 0, D = !1, M, G; if (G = A.input.charCodeAt(A.position), G === 124) Q = !1; else if (G === 62) Q = !0; else return !1; for (A.kind = "scalar", A.result = ""; G !== 0; ) if (G = A.input.charCodeAt(++A.position), G === 43 || G === 45) fQ === g ? g = G === 43 ? QU : zo : $(A, "repeat of a chomping mode identifier"); else if ((M = uo(G)) >= 0) M === 0 ? $(A, "bad explicit indentation width of a block scalar; it cannot be less than one") : B ? $(A, "repeat of an indentation width identifier") : (U = I + M - 1, B = !0); else break; if (qI(G)) { do G = A.input.charCodeAt(++A.position); while (qI(G)); if (G === 35) do G = A.input.charCodeAt(++A.position); while (!gI(G) && G !== 0); } for (; G !== 0; ) { for (DB(A), A.lineIndent = 0, G = A.input.charCodeAt(A.position); (!B || A.lineIndent < U) && G === 32; ) A.lineIndent++, G = A.input.charCodeAt(++A.position); if (!B && A.lineIndent > U && (U = A.lineIndent), gI(G)) { w++; continue; } if (A.lineIndent < U) { g === QU ? A.result += lA.repeat(` `, E ? 1 + w : w) : g === fQ && E && (A.result += ` `); break; } for (Q ? qI(G) ? (D = !0, A.result += lA.repeat(` `, E ? 1 + w : w)) : D ? (D = !1, A.result += lA.repeat(` `, w + 1)) : w === 0 ? E && (A.result += " ") : A.result += lA.repeat(` `, w) : A.result += lA.repeat(` `, E ? 1 + w : w), E = !0, B = !0, w = 0, C = A.position; !gI(G) && G !== 0; ) G = A.input.charCodeAt(++A.position); SI(A, C, A.position, !1); } return !0; } function RU(A, I) { var C, Q = A.tag, g = A.anchor, E = [], B, U = !1, w; if (A.firstTabInLine !== -1) return !1; for (A.anchor !== null && (A.anchorMap[A.anchor] = E), w = A.input.charCodeAt(A.position); w !== 0 && (A.firstTabInLine !== -1 && (A.position = A.firstTabInLine, $(A, "tab characters must not be used in indentation")), !(w !== 45 || (B = A.input.charCodeAt(A.position + 1), !bA(B)))); ) { if (U = !0, A.position++, KA(A, !0, -1) && A.lineIndent <= I) { E.push(null), w = A.input.charCodeAt(A.position); continue; } if (C = A.line, vI(A, I, sF, !1, !0), E.push(A.result), KA(A, !0, -1), w = A.input.charCodeAt(A.position), (A.line === C || A.lineIndent > I) && w !== 0) $(A, "bad indentation of a sequence entry"); else if (A.lineIndent < I) break; } return U ? (A.tag = Q, A.anchor = g, A.kind = "sequence", A.result = E, !0) : !1; } function BN(A, I, C) { var Q, g, E, B, U, w, D = A.tag, M = A.anchor, G = {}, J = /* @__PURE__ */ Object.create(null), i = null, o = null, N = null, L = !1, S = !1, j; if (A.firstTabInLine !== -1) return !1; for (A.anchor !== null && (A.anchorMap[A.anchor] = G), j = A.input.charCodeAt(A.position); j !== 0; ) { if (!L && A.firstTabInLine !== -1 && (A.position = A.firstTabInLine, $(A, "tab characters must not be used in indentation")), Q = A.input.charCodeAt(A.position + 1), E = A.line, (j === 63 || j === 58) && bA(Q)) j === 63 ? (L && (XI(A, G, J, i, o, null, B, U, w), i = o = N = null), S = !0, L = !0, g = !0) : L ? (L = !1, g = !0) : $(A, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), A.position += 1, j = Q; else { if (B = A.line, U = A.lineStart, w = A.position, !vI(A, C, jF, !1, !0)) break; if (A.line === E) { for (j = A.input.charCodeAt(A.position); qI(j); ) j = A.input.charCodeAt(++A.position); if (j === 58) j = A.input.charCodeAt(++A.position), bA(j) || $(A, "a whitespace character is expected after the key-value separator within a block mapping"), L && (XI(A, G, J, i, o, null, B, U, w), i = o = N = null), S = !0, L = !1, g = !1, i = A.tag, o = A.result; else if (S) $(A, "can not read an implicit mapping pair; a colon is missed"); else return A.tag = D, A.anchor = M, !0; } else if (S) $(A, "can not read a block mapping entry; a multiline key may not be an implicit key"); else return A.tag = D, A.anchor = M, !0; } if ((A.line === E || A.lineIndent > I) && (L && (B = A.line, U = A.lineStart, w = A.position), vI(A, I, QQ, !0, g) && (L ? o = A.result : N = A.result), L || (XI(A, G, J, i, o, N, B, U, w), i = o = N = null), KA(A, !0, -1), j = A.input.charCodeAt(A.position)), (A.line === E || A.lineIndent > I) && j !== 0) $(A, "bad indentation of a mapping entry"); else if (A.lineIndent < I) break; } return L && XI(A, G, J, i, o, null, B, U, w), S && (A.tag = D, A.anchor = M, A.kind = "mapping", A.result = G), S; } function EN(A) { var I, C = !1, Q = !1, g, E, B; if (B = A.input.charCodeAt(A.position), B !== 33) return !1; if (A.tag !== null && $(A, "duplication of a tag property"), B = A.input.charCodeAt(++A.position), B === 60 ? (C = !0, B = A.input.charCodeAt(++A.position)) : B === 33 ? (Q = !0, g = "!!", B = A.input.charCodeAt(++A.position)) : g = "!", I = A.position, C) { do B = A.input.charCodeAt(++A.position); while (B !== 0 && B !== 62); A.position < A.length ? (E = A.input.slice(I, A.position), B = A.input.charCodeAt(++A.position)) : $(A, "unexpected end of the stream within a verbatim tag"); } else { for (; B !== 0 && !bA(B); ) B === 33 && (Q ? $(A, "tag suffix cannot contain exclamation marks") : (g = A.input.slice(I - 1, A.position + 1), SF.test(g) || $(A, "named tag handle cannot contain such characters"), Q = !0, I = A.position + 1)), B = A.input.charCodeAt(++A.position); E = A.input.slice(I, A.position), mo.test(E) && $(A, "tag suffix cannot contain flow indicator characters"); } E && !hF.test(E) && $(A, "tag name cannot contain such characters: " + E); try { E = decodeURIComponent(E); } catch { $(A, "tag name is malformed: " + E); } return C ? A.tag = E : hI.call(A.tagMap, g) ? A.tag = A.tagMap[g] + E : g === "!" ? A.tag = "!" + E : g === "!!" ? A.tag = "tag:yaml.org,2002:" + E : $(A, 'undeclared tag handle "' + g + '"'), !0; } function UN(A) { var I, C; if (C = A.input.charCodeAt(A.position), C !== 38) return !1; for (A.anchor !== null && $(A, "duplication of an anchor property"), C = A.input.charCodeAt(++A.position), I = A.position; C !== 0 && !bA(C) && !zI(C); ) C = A.input.charCodeAt(++A.position); return A.position === I && $(A, "name of an anchor node must contain at least one character"), A.anchor = A.input.slice(I, A.position), !0; } function RN(A) { var I, C, Q; if (Q = A.input.charCodeAt(A.position), Q !== 42) return !1; for (Q = A.input.charCodeAt(++A.position), I = A.position; Q !== 0 && !bA(Q) && !zI(Q); ) Q = A.input.charCodeAt(++A.position); return A.position === I && $(A, "name of an alias node must contain at least one character"), C = A.input.slice(I, A.position), hI.call(A.anchorMap, C) || $(A, 'unidentified alias "' + C + '"'), A.result = A.anchorMap[C], KA(A, !0, -1), !0; } function vI(A, I, C, Q, g) { var E, B, U, w = 1, D = !1, M = !1, G, J, i, o, N, L; if (A.listener !== null && A.listener("open", A), A.tag = null, A.anchor = null, A.kind = null, A.result = null, E = B = U = QQ === C || sF === C, Q && KA(A, !0, -1) && (D = !0, A.lineIndent > I ? w = 1 : A.lineIndent === I ? w = 0 : A.lineIndent < I && (w = -1)), w === 1) for (; EN(A) || UN(A); ) KA(A, !0, -1) ? (D = !0, U = E, A.lineIndent > I ? w = 1 : A.lineIndent === I ? w = 0 : A.lineIndent < I && (w = -1)) : U = !1; if (U && (U = D || g), (w === 1 || QQ === C) && (CQ === C || jF === C ? N = I : N = I + 1, L = A.position - A.lineStart, w === 1 ? U && (RU(A, L) || BN(A, L, N)) || QN(A, N) ? M = !0 : (B && gN(A, N) || IN(A, N) || CN(A, N) ? M = !0 : RN(A) ? (M = !0, (A.tag !== null || A.anchor !== null) && $(A, "alias node should not have any properties")) : AN(A, N, CQ === C) && (M = !0, A.tag === null && (A.tag = "?")), A.anchor !== null && (A.anchorMap[A.anchor] = A.result)) : w === 0 && (M = U && RU(A, L))), A.tag === null) A.anchor !== null && (A.anchorMap[A.anchor] = A.result); else if (A.tag === "?") { for (A.result !== null && A.kind !== "scalar" && $(A, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + A.kind + '"'), G = 0, J = A.implicitTypes.length; G < J; G += 1) if (o = A.implicitTypes[G], o.resolve(A.result)) { A.result = o.construct(A.result), A.tag = o.tag, A.anchor !== null && (A.anchorMap[A.anchor] = A.result); break; } } else if (A.tag !== "!") { if (hI.call(A.typeMap[A.kind || "fallback"], A.tag)) o = A.typeMap[A.kind || "fallback"][A.tag]; else for (o = null, i = A.typeMap.multi[A.kind || "fallback"], G = 0, J = i.length; G < J; G += 1) if (A.tag.slice(0, i[G].tag.length) === i[G].tag) { o = i[G]; break; } o || $(A, "unknown tag !<" + A.tag + ">"), A.result !== null && o.kind !== A.kind && $(A, "unacceptable node kind for !<" + A.tag + '> tag; it should be "' + o.kind + '", not "' + A.kind + '"'), o.resolve(A.result, A.tag) ? (A.result = o.construct(A.result, A.tag), A.anchor !== null && (A.anchorMap[A.anchor] = A.result)) : $(A, "cannot resolve a node with !<" + A.tag + "> explicit tag"); } return A.listener !== null && A.listener("close", A), A.tag !== null || A.anchor !== null || M; } function wN(A) { var I = A.position, C, Q, g, E = !1, B; for (A.version = null, A.checkLineBreaks = A.legacy, A.tagMap = /* @__PURE__ */ Object.create(null), A.anchorMap = /* @__PURE__ */ Object.create(null); (B = A.input.charCodeAt(A.position)) !== 0 && (KA(A, !0, -1), B = A.input.charCodeAt(A.position), !(A.lineIndent > 0 || B !== 37)); ) { for (E = !0, B = A.input.charCodeAt(++A.position), C = A.position; B !== 0 && !bA(B); ) B = A.input.charCodeAt(++A.position); for (Q = A.input.slice(C, A.position), g = [], Q.length < 1 && $(A, "directive name must not be less than one character in length"); B !== 0; ) { for (; qI(B); ) B = A.input.charCodeAt(++A.position); if (B === 35) { do B = A.input.charCodeAt(++A.position); while (B !== 0 && !gI(B)); break; } if (gI(B)) break; for (C = A.position; B !== 0 && !bA(B); ) B = A.input.charCodeAt(++A.position); g.push(A.input.slice(C, A.position)); } B !== 0 && DB(A), hI.call(EU, Q) ? EU[Q](A, Q, g) : gQ(A, 'unknown document directive "' + Q + '"'); } if (KA(A, !0, -1), A.lineIndent === 0 && A.input.charCodeAt(A.position) === 45 && A.input.charCodeAt(A.position + 1) === 45 && A.input.charCodeAt(A.position + 2) === 45 ? (A.position += 3, KA(A, !0, -1)) : E && $(A, "directives end mark is expected"), vI(A, A.lineIndent - 1, QQ, !1, !0), KA(A, !0, -1), A.checkLineBreaks && ro.test(A.input.slice(I, A.position)) && gQ(A, "non-ASCII line breaks are interpreted as content"), A.documents.push(A.result), A.position === A.lineStart && iQ(A)) { A.input.charCodeAt(A.position) === 46 && (A.position += 3, KA(A, !0, -1)); return; } if (A.position < A.length - 1) $(A, "end of the stream or a document separator is expected"); else return; } function lF(A, I) { A = String(A), I = I || {}, A.length !== 0 && (A.charCodeAt(A.length - 1) !== 10 && A.charCodeAt(A.length - 1) !== 13 && (A += ` `), A.charCodeAt(0) === 65279 && (A = A.slice(1))); var C = new $o(A, I), Q = A.indexOf("\0"); for (Q !== -1 && (C.position = Q, $(C, "null byte is not allowed in input")), C.input += "\0"; C.input.charCodeAt(C.position) === 32; ) C.lineIndent += 1, C.position += 1; for (; C.position < C.length - 1; ) wN(C); return C.documents; } function DN(A, I, C) { I !== null && typeof I == "object" && typeof C > "u" && (C = I, I = null); var Q = lF(A, C); if (typeof I != "function") return Q; for (var g = 0, E = Q.length; g < E; g += 1) I(Q[g]); } function FN(A, I) { var C = lF(A, I); if (C.length !== 0) { if (C.length === 1) return C[0]; throw new TA("expected a single document in the stream, but found more"); } } var MN = DN, GN = FN, kF = { loadAll: MN, load: GN }, cF = Object.prototype.toString, HF = Object.prototype.hasOwnProperty, MB = 65279, JN = 9, YC = 10, iN = 13, yN = 32, oN = 33, NN = 34, Wg = 35, jN = 37, sN = 38, SN = 39, hN = 42, aF = 44, LN = 45, BQ = 58, YN = 61, KN = 62, lN = 63, kN = 64, ZF = 91, nF = 93, cN = 96, dF = 123, HN = 124, qF = 125, nA = {}; nA[0] = "\\0"; nA[7] = "\\a"; nA[8] = "\\b"; nA[9] = "\\t"; nA[10] = "\\n"; nA[11] = "\\v"; nA[12] = "\\f"; nA[13] = "\\r"; nA[27] = "\\e"; nA[34] = '\\"'; nA[92] = "\\\\"; nA[133] = "\\N"; nA[160] = "\\_"; nA[8232] = "\\L"; nA[8233] = "\\P"; var aN = [ "y", "Y", "yes", "Yes", "YES", "on", "On", "ON", "n", "N", "no", "No", "NO", "off", "Off", "OFF" ], ZN = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; function nN(A, I) { var C, Q, g, E, B, U, w; if (I === null) return {}; for (C = {}, Q = Object.keys(I), g = 0, E = Q.length; g < E; g += 1) B = Q[g], U = String(I[B]), B.slice(0, 2) === "!!" && (B = "tag:yaml.org,2002:" + B.slice(2)), w = A.compiledTypeMap.fallback[B], w && HF.call(w.styleAliases, U) && (U = w.styleAliases[U]), C[B] = U; return C; } function dN(A) { var I, C, Q; if (I = A.toString(16).toUpperCase(), A <= 255) C = "x", Q = 2; else if (A <= 65535) C = "u", Q = 4; else if (A <= 4294967295) C = "U", Q = 8; else throw new TA("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + C + lA.repeat("0", Q - I.length) + I; } var qN = 1, KC = 2; function VN(A) { this.schema = A.schema || wB, this.indent = Math.max(1, A.indent || 2), this.noArrayIndent = A.noArrayIndent || !1, this.skipInvalid = A.skipInvalid || !1, this.flowLevel = lA.isNothing(A.flowLevel) ? -1 : A.flowLevel, this.styleMap = nN(this.schema, A.styles || null), this.sortKeys = A.sortKeys || !1, this.lineWidth = A.lineWidth || 80, this.noRefs = A.noRefs || !1, this.noCompatMode = A.noCompatMode || !1, this.condenseFlow = A.condenseFlow || !1, this.quotingType = A.quotingType === '"' ? KC : qN, this.forceQuotes = A.forceQuotes || !1, this.replacer = typeof A.replacer == "function" ? A.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } function wU(A, I) { for (var C = lA.repeat(" ", I), Q = 0, g = -1, E = "", B, U = A.length; Q < U; ) g = A.indexOf(` `, Q), g === -1 ? (B = A.slice(Q), Q = U) : (B = A.slice(Q, g + 1), Q = g + 1), B.length && B !== ` ` && (E += C), E += B; return E; } function tg(A, I) { return ` ` + lA.repeat(" ", A.indent * I); } function TN(A, I) { var C, Q, g; for (C = 0, Q = A.implicitTypes.length; C < Q; C += 1) if (g = A.implicitTypes[C], g.resolve(I)) return !0; return !1; } function EQ(A) { return A === yN || A === JN; } function lC(A) { return 32 <= A && A <= 126 || 161 <= A && A <= 55295 && A !== 8232 && A !== 8233 || 57344 <= A && A <= 65533 && A !== MB || 65536 <= A && A <= 1114111; } function DU(A) { return lC(A) && A !== MB && A !== iN && A !== YC; } function FU(A, I, C) { var Q = DU(A), g = Q && !EQ(A); return ( // ns-plain-safe (C ? ( // c = flow-in Q ) : Q && A !== aF && A !== ZF && A !== nF && A !== dF && A !== qF) && A !== Wg && !(I === BQ && !g) || DU(I) && !EQ(I) && A === Wg || I === BQ && g ); } function bN(A) { return lC(A) && A !== MB && !EQ(A) && A !== LN && A !== lN && A !== BQ && A !== aF && A !== ZF && A !== nF && A !== dF && A !== qF && A !== Wg && A !== sN && A !== hN && A !== oN && A !== HN && A !== YN && A !== KN && A !== SN && A !== NN && A !== jN && A !== kN && A !== cN; } function xN(A) { return !EQ(A) && A !== BQ; } function oC(A, I) { var C = A.charCodeAt(I), Q; return C >= 55296 && C <= 56319 && I + 1 < A.length && (Q = A.charCodeAt(I + 1), Q >= 56320 && Q <= 57343) ? (C - 55296) * 1024 + Q - 56320 + 65536 : C; } function VF(A) { var I = /^\n* /; return I.test(A); } var TF = 1, Og = 2, bF = 3, xF = 4, OI = 5; function PN(A, I, C, Q, g, E, B, U) { var w, D = 0, M = null, G = !1, J = !1, i = Q !== -1, o = -1, N = bN(oC(A, 0)) && xN(oC(A, A.length - 1)); if (I || B) for (w = 0; w < A.length; D >= 65536 ? w += 2 : w++) { if (D = oC(A, w), !lC(D)) return OI; N = N && FU(D, M, U), M = D; } else { for (w = 0; w < A.length; D >= 65536 ? w += 2 : w++) { if (D = oC(A, w), D === YC) G = !0, i && (J = J || // Foldable line = too long, and not more-indented. w - o - 1 > Q && A[o + 1] !== " ", o = w); else if (!lC(D)) return OI; N = N && FU(D, M, U), M = D; } J = J || i && w - o - 1 > Q && A[o + 1] !== " "; } return !G && !J ? N && !B && !g(A) ? TF : E === KC ? OI : Og : C > 9 && VF(A) ? OI : B ? E === KC ? OI : Og : J ? xF : bF; } function fN(A, I, C, Q, g) { A.dump = function() { if (I.length === 0) return A.quotingType === KC ? '""' : "''"; if (!A.noCompatMode && (aN.indexOf(I) !== -1 || ZN.test(I))) return A.quotingType === KC ? '"' + I + '"' : "'" + I + "'"; var E = A.indent * Math.max(1, C), B = A.lineWidth === -1 ? -1 : Math.max(Math.min(A.lineWidth, 40), A.lineWidth - E), U = Q || A.flowLevel > -1 && C >= A.flowLevel; function w(D) { return TN(A, D); } switch (PN( I, U, A.indent, B, w, A.quotingType, A.forceQuotes && !Q, g )) { case TF: return I; case Og: return "'" + I.replace(/'/g, "''") + "'"; case bF: return "|" + MU(I, A.indent) + GU(wU(I, E)); case xF: return ">" + MU(I, A.indent) + GU(wU(pN(I, B), E)); case OI: return '"' + WN(I) + '"'; default: throw new TA("impossible error: invalid scalar style"); } }(); } function MU(A, I) { var C = VF(A) ? String(I) : "", Q = A[A.length - 1] === ` `, g = Q && (A[A.length - 2] === ` ` || A === ` `), E = g ? "+" : Q ? "" : "-"; return C + E + ` `; } function GU(A) { return A[A.length - 1] === ` ` ? A.slice(0, -1) : A; } function pN(A, I) { for (var C = /(\n+)([^\n]*)/g, Q = function() { var D = A.indexOf(` `); return D = D !== -1 ? D : A.length, C.lastIndex = D, JU(A.slice(0, D), I); }(), g = A[0] === ` ` || A[0] === " ", E, B; B = C.exec(A); ) { var U = B[1], w = B[2]; E = w[0] === " ", Q += U + (!g && !E && w !== "" ? ` ` : "") + JU(w, I), g = E; } return Q; } function JU(A, I) { if (A === "" || A[0] === " ") return A; for (var C = / [^ ]/g, Q, g = 0, E, B = 0, U = 0, w = ""; Q = C.exec(A); ) U = Q.index, U - g > I && (E = B > g ? B : U, w += ` ` + A.slice(g, E), g = E + 1), B = U; return w += ` `, A.length - g > I && B > g ? w += A.slice(g, B) + ` ` + A.slice(B + 1) : w += A.slice(g), w.slice(1); } function WN(A) { for (var I = "", C = 0, Q, g = 0; g < A.length; C >= 65536 ? g += 2 : g++) C = oC(A, g), Q = nA[C], !Q && lC(C) ? (I += A[g], C >= 65536 && (I += A[g + 1])) : I += Q || dN(C); return I; } function tN(A, I, C) { var Q = "", g = A.tag, E, B, U; for (E = 0, B = C.length; E < B; E += 1) U = C[E], A.replacer && (U = A.replacer.call(C, String(E), U)), (DI(A, I, U, !1, !1) || typeof U > "u" && DI(A, I, null, !1, !1)) && (Q !== "" && (Q += "," + (A.condenseFlow ? "" : " ")), Q += A.dump); A.tag = g, A.dump = "[" + Q + "]"; } function iU(A, I, C, Q) { var g = "", E = A.tag, B, U, w; for (B = 0, U = C.length; B < U; B += 1) w = C[B], A.replacer && (w = A.replacer.call(C, String(B), w)), (DI(A, I + 1, w, !0, !0, !1, !0) || typeof w > "u" && DI(A, I + 1, null, !0, !0, !1, !0)) && ((!Q || g !== "") && (g += tg(A, I)), A.dump && YC === A.dump.charCodeAt(0) ? g += "-" : g += "- ", g += A.dump); A.tag = E, A.dump = g || "[]"; } function ON(A, I, C) { var Q = "", g = A.tag, E = Object.keys(C), B, U, w, D, M; for (B = 0, U = E.length; B < U; B += 1) M = "", Q !== "" && (M += ", "), A.condenseFlow && (M += '"'), w = E[B], D = C[w], A.replacer && (D = A.replacer.call(C, w, D)), DI(A, I, w, !1, !1) && (A.dump.length > 1024 && (M += "? "), M += A.dump + (A.condenseFlow ? '"' : "") + ":" + (A.condenseFlow ? "" : " "), DI(A, I, D, !1, !1) && (M += A.dump, Q += M)); A.tag = g, A.dump = "{" + Q + "}"; } function zN(A, I, C, Q) { var g = "", E = A.tag, B = Object.keys(C), U, w, D, M, G, J; if (A.sortKeys === !0) B.sort(); else if (typeof A.sortKeys == "function") B.sort(A.sortKeys); else if (A.sortKeys) throw new TA("sortKeys must be a boolean or a function"); for (U = 0, w = B.length; U < w; U += 1) J = "", (!Q || g !== "") && (J += tg(A, I)), D = B[U], M = C[D], A.replacer && (M = A.replacer.call(C, D, M)), DI(A, I + 1, D, !0, !0, !0) && (G = A.tag !== null && A.tag !== "?" || A.dump && A.dump.length > 1024, G && (A.dump && YC === A.dump.charCodeAt(0) ? J += "?" : J += "? "), J += A.dump, G && (J += tg(A, I)), DI(A, I + 1, M, !0, G) && (A.dump && YC === A.dump.charCodeAt(0) ? J += ":" : J += ": ", J += A.dump, g += J)); A.tag = E, A.dump = g || "{}"; } function yU(A, I, C) { var Q, g, E, B, U, w; for (g = C ? A.explicitTypes : A.implicitTypes, E = 0, B = g.length; E < B; E += 1) if (U = g[E], (U.instanceOf || U.predicate) && (!U.instanceOf || typeof I == "object" && I instanceof U.instanceOf) && (!U.predicate || U.predicate(I))) { if (C ? U.multi && U.representName ? A.tag = U.representName(I) : A.tag = U.tag : A.tag = "?", U.represent) { if (w = A.styleMap[U.tag] || U.defaultStyle, cF.call(U.represent) === "[object Function]") Q = U.represent(I, w); else if (HF.call(U.represent, w)) Q = U.represent[w](I, w); else throw new TA("!<" + U.tag + '> tag resolver accepts not "' + w + '" style'); A.dump = Q; } return !0; } return !1; } function DI(A, I, C, Q, g, E, B) { A.tag = null, A