import { __name as e } from "./chunk-AGHRB4JF.js";
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.mjs
function t(e) {
	return e == null;
}
e(t, "isNothing");
function n(e) {
	return typeof e == "object" && !!e;
}
e(n, "isObject");
function r(e) {
	return Array.isArray(e) ? e : t(e) ? [] : [e];
}
e(r, "toArray");
function i(e, t) {
	var n, r, i, a;
	if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
	return e;
}
e(i, "extend");
function a(e, t) {
	var n = "", r;
	for (r = 0; r < t; r += 1) n += e;
	return n;
}
e(a, "repeat");
function o(e) {
	return e === 0 && 1 / e == -Infinity;
}
e(o, "isNegativeZero");
var s = {
	isNothing: t,
	isObject: n,
	toArray: r,
	repeat: a,
	isNegativeZero: o,
	extend: i
};
function c(e, t) {
	var n = "", r = e.reason || "(unknown reason)";
	return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
}
e(c, "formatError");
function l(e, t) {
	Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = c(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
}
e(l, "YAMLException$1"), l.prototype = Object.create(Error.prototype), l.prototype.constructor = l, l.prototype.toString = /* @__PURE__ */ e(function(e) {
	return this.name + ": " + c(this, e);
}, "toString");
var u = l;
function d(e, t, n, r, i) {
	var a = "", o = "", s = Math.floor(i / 2) - 1;
	return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
		str: a + e.slice(t, n).replace(/\t/g, "→") + o,
		pos: r - t + a.length
	};
}
e(d, "getLine");
function f(e, t) {
	return s.repeat(" ", t - e.length) + e;
}
e(f, "padStart");
function p(e, t) {
	if (t = Object.create(t || null), !e.buffer) return null;
	t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
	for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
	o < 0 && (o = r.length - 1);
	var c = "", l, u, p = Math.min(e.line + t.linesAfter, i.length).toString().length, m = t.maxLength - (t.indent + p + 3);
	for (l = 1; l <= t.linesBefore && !(o - l < 0); l++) u = d(e.buffer, r[o - l], i[o - l], e.position - (r[o] - r[o - l]), m), c = s.repeat(" ", t.indent) + f((e.line - l + 1).toString(), p) + " | " + u.str + "\n" + c;
	for (u = d(e.buffer, r[o], i[o], e.position, m), c += s.repeat(" ", t.indent) + f((e.line + 1).toString(), p) + " | " + u.str + "\n", c += s.repeat("-", t.indent + p + 3 + u.pos) + "^\n", l = 1; l <= t.linesAfter && !(o + l >= i.length); l++) u = d(e.buffer, r[o + l], i[o + l], e.position - (r[o] - r[o + l]), m), c += s.repeat(" ", t.indent) + f((e.line + l + 1).toString(), p) + " | " + u.str + "\n";
	return c.replace(/\n$/, "");
}
e(p, "makeSnippet");
var m = p, h = [
	"kind",
	"multi",
	"resolve",
	"construct",
	"instanceOf",
	"predicate",
	"represent",
	"representName",
	"defaultStyle",
	"styleAliases"
], g = [
	"scalar",
	"sequence",
	"mapping"
];
function _(e) {
	var t = {};
	return e !== null && Object.keys(e).forEach(function(n) {
		e[n].forEach(function(e) {
			t[String(e)] = n;
		});
	}), t;
}
e(_, "compileStyleAliases");
function v(e, t) {
	if (t ||= {}, Object.keys(t).forEach(function(t) {
		if (h.indexOf(t) === -1) throw new u("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
	}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
		return !0;
	}, this.construct = t.construct || function(e) {
		return e;
	}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = _(t.styleAliases || null), g.indexOf(this.kind) === -1) throw new u("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
}
e(v, "Type$1");
var y = v;
function b(e, t) {
	var n = [];
	return e[t].forEach(function(e) {
		var t = n.length;
		n.forEach(function(n, r) {
			n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
		}), n[t] = e;
	}), n;
}
e(b, "compileList");
function ee() {
	var t = {
		scalar: {},
		sequence: {},
		mapping: {},
		fallback: {},
		multi: {
			scalar: [],
			sequence: [],
			mapping: [],
			fallback: []
		}
	}, n, r;
	function i(e) {
		e.multi ? (t.multi[e.kind].push(e), t.multi.fallback.push(e)) : t[e.kind][e.tag] = t.fallback[e.tag] = e;
	}
	for (e(i, "collectType"), n = 0, r = arguments.length; n < r; n += 1) arguments[n].forEach(i);
	return t;
}
e(ee, "compileMap");
function x(e) {
	return this.extend(e);
}
e(x, "Schema$1"), x.prototype.extend = /* @__PURE__ */ e(function(e) {
	var t = [], n = [];
	if (e instanceof y) n.push(e);
	else if (Array.isArray(e)) n = n.concat(e);
	else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
	else throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
	t.forEach(function(e) {
		if (!(e instanceof y)) throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");
		if (e.loadKind && e.loadKind !== "scalar") throw new u("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 u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
	}), n.forEach(function(e) {
		if (!(e instanceof y)) throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");
	});
	var r = Object.create(x.prototype);
	return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = b(r, "implicit"), r.compiledExplicit = b(r, "explicit"), r.compiledTypeMap = ee(r.compiledImplicit, r.compiledExplicit), r;
}, "extend");
var te = new x({ explicit: [
	new y("tag:yaml.org,2002:str", {
		kind: "scalar",
		construct: /* @__PURE__ */ e(function(e) {
			return e === null ? "" : e;
		}, "construct")
	}),
	new y("tag:yaml.org,2002:seq", {
		kind: "sequence",
		construct: /* @__PURE__ */ e(function(e) {
			return e === null ? [] : e;
		}, "construct")
	}),
	new y("tag:yaml.org,2002:map", {
		kind: "mapping",
		construct: /* @__PURE__ */ e(function(e) {
			return e === null ? {} : e;
		}, "construct")
	})
] });
function ne(e) {
	if (e === null) return !0;
	var t = e.length;
	return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
}
e(ne, "resolveYamlNull");
function re() {
	return null;
}
e(re, "constructYamlNull");
function ie(e) {
	return e === null;
}
e(ie, "isNull");
var ae = new y("tag:yaml.org,2002:null", {
	kind: "scalar",
	resolve: ne,
	construct: re,
	predicate: ie,
	represent: {
		canonical: /* @__PURE__ */ e(function() {
			return "~";
		}, "canonical"),
		lowercase: /* @__PURE__ */ e(function() {
			return "null";
		}, "lowercase"),
		uppercase: /* @__PURE__ */ e(function() {
			return "NULL";
		}, "uppercase"),
		camelcase: /* @__PURE__ */ e(function() {
			return "Null";
		}, "camelcase"),
		empty: /* @__PURE__ */ e(function() {
			return "";
		}, "empty")
	},
	defaultStyle: "lowercase"
});
function oe(e) {
	if (e === null) return !1;
	var t = e.length;
	return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
}
e(oe, "resolveYamlBoolean");
function se(e) {
	return e === "true" || e === "True" || e === "TRUE";
}
e(se, "constructYamlBoolean");
function ce(e) {
	return Object.prototype.toString.call(e) === "[object Boolean]";
}
e(ce, "isBoolean");
var le = new y("tag:yaml.org,2002:bool", {
	kind: "scalar",
	resolve: oe,
	construct: se,
	predicate: ce,
	represent: {
		lowercase: /* @__PURE__ */ e(function(e) {
			return e ? "true" : "false";
		}, "lowercase"),
		uppercase: /* @__PURE__ */ e(function(e) {
			return e ? "TRUE" : "FALSE";
		}, "uppercase"),
		camelcase: /* @__PURE__ */ e(function(e) {
			return e ? "True" : "False";
		}, "camelcase")
	},
	defaultStyle: "lowercase"
});
function ue(e) {
	return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
}
e(ue, "isHexCode");
function de(e) {
	return 48 <= e && e <= 55;
}
e(de, "isOctCode");
function fe(e) {
	return 48 <= e && e <= 57;
}
e(fe, "isDecCode");
function pe(e) {
	if (e === null) return !1;
	var t = e.length, n = 0, r = !1, i;
	if (!t) return !1;
	if (i = e[n], (i === "-" || i === "+") && (i = e[++n]), i === "0") {
		if (n + 1 === t) return !0;
		if (i = e[++n], i === "b") {
			for (n++; n < t; n++) if (i = e[n], i !== "_") {
				if (i !== "0" && i !== "1") return !1;
				r = !0;
			}
			return r && i !== "_";
		}
		if (i === "x") {
			for (n++; n < t; n++) if (i = e[n], i !== "_") {
				if (!ue(e.charCodeAt(n))) return !1;
				r = !0;
			}
			return r && i !== "_";
		}
		if (i === "o") {
			for (n++; n < t; n++) if (i = e[n], i !== "_") {
				if (!de(e.charCodeAt(n))) return !1;
				r = !0;
			}
			return r && i !== "_";
		}
	}
	if (i === "_") return !1;
	for (; n < t; n++) if (i = e[n], i !== "_") {
		if (!fe(e.charCodeAt(n))) return !1;
		r = !0;
	}
	return !(!r || i === "_");
}
e(pe, "resolveYamlInteger");
function me(e) {
	var t = e, n = 1, r;
	if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
	if (r === "0") {
		if (t[1] === "b") return n * parseInt(t.slice(2), 2);
		if (t[1] === "x") return n * parseInt(t.slice(2), 16);
		if (t[1] === "o") return n * parseInt(t.slice(2), 8);
	}
	return n * parseInt(t, 10);
}
e(me, "constructYamlInteger");
function he(e) {
	return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !s.isNegativeZero(e);
}
e(he, "isInteger");
var ge = new y("tag:yaml.org,2002:int", {
	kind: "scalar",
	resolve: pe,
	construct: me,
	predicate: he,
	represent: {
		binary: /* @__PURE__ */ e(function(e) {
			return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
		}, "binary"),
		octal: /* @__PURE__ */ e(function(e) {
			return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
		}, "octal"),
		decimal: /* @__PURE__ */ e(function(e) {
			return e.toString(10);
		}, "decimal"),
		hexadecimal: /* @__PURE__ */ e(function(e) {
			return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
		}, "hexadecimal")
	},
	defaultStyle: "decimal",
	styleAliases: {
		binary: [2, "bin"],
		octal: [8, "oct"],
		decimal: [10, "dec"],
		hexadecimal: [16, "hex"]
	}
}), _e = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
function ve(e) {
	return !(e === null || !_e.test(e) || e[e.length - 1] === "_");
}
e(ve, "resolveYamlFloat");
function ye(e) {
	var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
	return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
}
e(ye, "constructYamlFloat");
var be = /^[-+]?[0-9]+e/;
function xe(e, t) {
	var n;
	if (isNaN(e)) switch (t) {
		case "lowercase": return ".nan";
		case "uppercase": return ".NAN";
		case "camelcase": return ".NaN";
	}
	else if (e === Infinity) switch (t) {
		case "lowercase": return ".inf";
		case "uppercase": return ".INF";
		case "camelcase": return ".Inf";
	}
	else if (e === -Infinity) switch (t) {
		case "lowercase": return "-.inf";
		case "uppercase": return "-.INF";
		case "camelcase": return "-.Inf";
	}
	else if (s.isNegativeZero(e)) return "-0.0";
	return n = e.toString(10), be.test(n) ? n.replace("e", ".e") : n;
}
e(xe, "representYamlFloat");
function Se(e) {
	return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || s.isNegativeZero(e));
}
e(Se, "isFloat");
var Ce = new y("tag:yaml.org,2002:float", {
	kind: "scalar",
	resolve: ve,
	construct: ye,
	predicate: Se,
	represent: xe,
	defaultStyle: "lowercase"
}), we = te.extend({ implicit: [
	ae,
	le,
	ge,
	Ce
] }), Te = we, Ee = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), De = /* @__PURE__ */ 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 Oe(e) {
	return e === null ? !1 : Ee.exec(e) !== null || De.exec(e) !== null;
}
e(Oe, "resolveYamlTimestamp");
function ke(e) {
	var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
	if (t = Ee.exec(e), t === null && (t = De.exec(e)), t === null) throw Error("Date resolve error");
	if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
	if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
		for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
		c = +c;
	}
	return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
}
e(ke, "constructYamlTimestamp");
function Ae(e) {
	return e.toISOString();
}
e(Ae, "representYamlTimestamp");
var je = new y("tag:yaml.org,2002:timestamp", {
	kind: "scalar",
	resolve: Oe,
	construct: ke,
	instanceOf: Date,
	represent: Ae
});
function Me(e) {
	return e === "<<" || e === null;
}
e(Me, "resolveYamlMerge");
var Ne = new y("tag:yaml.org,2002:merge", {
	kind: "scalar",
	resolve: Me
}), S = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
function Pe(e) {
	if (e === null) return !1;
	var t, n, r = 0, i = e.length, a = S;
	for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
		if (t < 0) return !1;
		r += 6;
	}
	return r % 8 == 0;
}
e(Pe, "resolveYamlBinary");
function Fe(e) {
	var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = S, o = 0, s = [];
	for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
	return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
}
e(Fe, "constructYamlBinary");
function Ie(e) {
	var t = "", n = 0, r, i, a = e.length, o = S;
	for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
	return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
}
e(Ie, "representYamlBinary");
function Le(e) {
	return Object.prototype.toString.call(e) === "[object Uint8Array]";
}
e(Le, "isBinary");
var Re = new y("tag:yaml.org,2002:binary", {
	kind: "scalar",
	resolve: Pe,
	construct: Fe,
	predicate: Le,
	represent: Ie
}), ze = Object.prototype.hasOwnProperty, Be = Object.prototype.toString;
function Ve(e) {
	if (e === null) return !0;
	var t = [], n, r, i, a, o, s = e;
	for (n = 0, r = s.length; n < r; n += 1) {
		if (i = s[n], o = !1, Be.call(i) !== "[object Object]") return !1;
		for (a in i) if (ze.call(i, a)) if (!o) o = !0;
		else return !1;
		if (!o) return !1;
		if (t.indexOf(a) === -1) t.push(a);
		else return !1;
	}
	return !0;
}
e(Ve, "resolveYamlOmap");
function He(e) {
	return e === null ? [] : e;
}
e(He, "constructYamlOmap");
var Ue = new y("tag:yaml.org,2002:omap", {
	kind: "sequence",
	resolve: Ve,
	construct: He
}), We = Object.prototype.toString;
function Ge(e) {
	if (e === null) return !0;
	var t, n, r, i, a, o = e;
	for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
		if (r = o[t], We.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
		a[t] = [i[0], r[i[0]]];
	}
	return !0;
}
e(Ge, "resolveYamlPairs");
function Ke(e) {
	if (e === null) return [];
	var t, n, r, i, a, o = e;
	for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
	return a;
}
e(Ke, "constructYamlPairs");
var qe = new y("tag:yaml.org,2002:pairs", {
	kind: "sequence",
	resolve: Ge,
	construct: Ke
}), Je = Object.prototype.hasOwnProperty;
function Ye(e) {
	if (e === null) return !0;
	var t, n = e;
	for (t in n) if (Je.call(n, t) && n[t] !== null) return !1;
	return !0;
}
e(Ye, "resolveYamlSet");
function Xe(e) {
	return e === null ? {} : e;
}
e(Xe, "constructYamlSet");
var Ze = new y("tag:yaml.org,2002:set", {
	kind: "mapping",
	resolve: Ye,
	construct: Xe
}), Qe = Te.extend({
	implicit: [je, Ne],
	explicit: [
		Re,
		Ue,
		qe,
		Ze
	]
}), C = Object.prototype.hasOwnProperty, w = 1, $e = 2, et = 3, T = 4, E = 1, tt = 2, nt = 3, rt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, it = /[\x85\u2028\u2029]/, at = /[,\[\]\{\}]/, ot = /^(?:!|!!|![a-z\-]+!)$/i, st = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
function D(e) {
	return Object.prototype.toString.call(e);
}
e(D, "_class");
function O(e) {
	return e === 10 || e === 13;
}
e(O, "is_EOL");
function k(e) {
	return e === 9 || e === 32;
}
e(k, "is_WHITE_SPACE");
function A(e) {
	return e === 9 || e === 32 || e === 10 || e === 13;
}
e(A, "is_WS_OR_EOL");
function j(e) {
	return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
}
e(j, "is_FLOW_INDICATOR");
function ct(e) {
	var t;
	return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
}
e(ct, "fromHexCode");
function lt(e) {
	return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
}
e(lt, "escapedHexLen");
function ut(e) {
	return 48 <= e && e <= 57 ? e - 48 : -1;
}
e(ut, "fromDecimalCode");
function dt(e) {
	return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? "	" : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
}
e(dt, "simpleEscapeSequence");
function ft(e) {
	return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
}
e(ft, "charFromCodepoint");
function pt(e, t, n) {
	t === "__proto__" ? Object.defineProperty(e, t, {
		configurable: !0,
		enumerable: !0,
		writable: !0,
		value: n
	}) : e[t] = n;
}
e(pt, "setProperty");
var mt = Array(256), ht = Array(256);
for (M = 0; M < 256; M++) mt[M] = +!!dt(M), ht[M] = dt(M);
var M;
function gt(e, t) {
	this.input = e, this.filename = t.filename || null, this.schema = t.schema || Qe, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.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.firstTabInLine = -1, this.documents = [];
}
e(gt, "State$1");
function _t(e, t) {
	var n = {
		name: e.filename,
		buffer: e.input.slice(0, -1),
		position: e.position,
		line: e.line,
		column: e.position - e.lineStart
	};
	return n.snippet = m(n), new u(t, n);
}
e(_t, "generateError");
function N(e, t) {
	throw _t(e, t);
}
e(N, "throwError");
function P(e, t) {
	e.onWarning && e.onWarning.call(null, _t(e, t));
}
e(P, "throwWarning");
var vt = {
	YAML: /* @__PURE__ */ e(function(e, t, n) {
		var r, i, a;
		e.version !== null && N(e, "duplication of %YAML directive"), n.length !== 1 && N(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && N(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && N(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && P(e, "unsupported YAML version of the document");
	}, "handleYamlDirective"),
	TAG: /* @__PURE__ */ e(function(e, t, n) {
		var r, i;
		n.length !== 2 && N(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], ot.test(r) || N(e, "ill-formed tag handle (first argument) of the TAG directive"), C.call(e.tagMap, r) && N(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), st.test(i) || N(e, "ill-formed tag prefix (second argument) of the TAG directive");
		try {
			i = decodeURIComponent(i);
		} catch {
			N(e, "tag prefix is malformed: " + i);
		}
		e.tagMap[r] = i;
	}, "handleTagDirective")
};
function F(e, t, n, r) {
	var i, a, o, s;
	if (t < n) {
		if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || N(e, "expected valid JSON character");
		else rt.test(s) && N(e, "the stream contains non-printable characters");
		e.result += s;
	}
}
e(F, "captureSegment");
function yt(e, t, n, r) {
	var i, a, o, c;
	for (s.isObject(n) || N(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, c = i.length; o < c; o += 1) a = i[o], C.call(t, a) || (pt(t, a, n[a]), r[a] = !0);
}
e(yt, "mergeMappings");
function I(e, t, n, r, i, a, o, s, c) {
	var l, u;
	if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && N(e, "nested arrays are not supported inside keys"), typeof i == "object" && D(i[l]) === "[object Object]" && (i[l] = "[object Object]");
	if (typeof i == "object" && D(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) yt(e, t, a[l], n);
	else yt(e, t, a, n);
	else !e.json && !C.call(n, i) && C.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, N(e, "duplicated mapping key")), pt(t, i, a), delete n[i];
	return t;
}
e(I, "storeMappingPair");
function L(e) {
	var t = e.input.charCodeAt(e.position);
	t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : N(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
}
e(L, "readLineBreak");
function R(e, t, n) {
	for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
		for (; k(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
		if (t && i === 35) do
			i = e.input.charCodeAt(++e.position);
		while (i !== 10 && i !== 13 && i !== 0);
		if (O(i)) for (L(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
		else break;
	}
	return n !== -1 && r !== 0 && e.lineIndent < n && P(e, "deficient indentation"), r;
}
e(R, "skipSeparationSpace");
function z(e) {
	var t = e.position, n = e.input.charCodeAt(t);
	return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || A(n)));
}
e(z, "testDocumentSeparator");
function B(e, t) {
	t === 1 ? e.result += " " : t > 1 && (e.result += s.repeat("\n", t - 1));
}
e(B, "writeFoldedLines");
function bt(e, t, n) {
	var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
	if (A(p) || j(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 = e.input.charCodeAt(e.position + 1), A(i) || n && j(i))) return !1;
	for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
		if (p === 58) {
			if (i = e.input.charCodeAt(e.position + 1), A(i) || n && j(i)) break;
		} else if (p === 35) {
			if (r = e.input.charCodeAt(e.position - 1), A(r)) break;
		} else if (e.position === e.lineStart && z(e) || n && j(p)) break;
		else if (O(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, R(e, !1, -1), e.lineIndent >= t) {
			s = !0, p = e.input.charCodeAt(e.position);
			continue;
		} else {
			e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
			break;
		}
		s &&= (F(e, a, o, !1), B(e, e.line - c), a = o = e.position, !1), k(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
	}
	return F(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
}
e(bt, "readPlainScalar");
function xt(e, t) {
	var n = e.input.charCodeAt(e.position), r, i;
	if (n !== 39) return !1;
	for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (F(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
	else return !0;
	else O(n) ? (F(e, r, i, !0), B(e, R(e, !1, t)), r = i = e.position) : e.position === e.lineStart && z(e) ? N(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
	N(e, "unexpected end of the stream within a single quoted scalar");
}
e(xt, "readSingleQuotedScalar");
function St(e, t) {
	var n, r, i, a, o, s = e.input.charCodeAt(e.position);
	if (s !== 34) return !1;
	for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return F(e, n, e.position, !0), e.position++, !0;
	else if (s === 92) {
		if (F(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), O(s)) R(e, !1, t);
		else if (s < 256 && mt[s]) e.result += ht[s], e.position++;
		else if ((o = lt(s)) > 0) {
			for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = ct(s)) >= 0 ? a = (a << 4) + o : N(e, "expected hexadecimal character");
			e.result += ft(a), e.position++;
		} else N(e, "unknown escape sequence");
		n = r = e.position;
	} else O(s) ? (F(e, n, r, !0), B(e, R(e, !1, t)), n = r = e.position) : e.position === e.lineStart && z(e) ? N(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
	N(e, "unexpected end of the stream within a double quoted scalar");
}
e(St, "readDoubleQuotedScalar");
function Ct(e, t) {
	var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
	if (v === 91) u = 93, p = !1, s = [];
	else if (v === 123) u = 125, p = !0, s = {};
	else return !1;
	for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
		if (R(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
		n ? v === 44 && N(e, "expected the node content, but found ','") : N(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), A(l) && (d = f = !0, e.position++, R(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, V(e, t, w, !1, !0), g = e.tag, h = e.result, R(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), R(e, !0, t), V(e, t, w, !1, !0), _ = e.result), p ? I(e, s, m, g, h, _, r, i, a) : d ? s.push(I(e, null, m, g, h, _, r, i, a)) : s.push(h), R(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
	}
	N(e, "unexpected end of the stream within a flow collection");
}
e(Ct, "readFlowCollection");
function wt(e, t) {
	var n, r, i = E, a = !1, o = !1, c = t, l = 0, u = !1, d, f = e.input.charCodeAt(e.position);
	if (f === 124) r = !1;
	else if (f === 62) r = !0;
	else return !1;
	for (e.kind = "scalar", e.result = ""; f !== 0;) if (f = e.input.charCodeAt(++e.position), f === 43 || f === 45) E === i ? i = f === 43 ? nt : tt : N(e, "repeat of a chomping mode identifier");
	else if ((d = ut(f)) >= 0) d === 0 ? N(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? N(e, "repeat of an indentation width identifier") : (c = t + d - 1, o = !0);
	else break;
	if (k(f)) {
		do
			f = e.input.charCodeAt(++e.position);
		while (k(f));
		if (f === 35) do
			f = e.input.charCodeAt(++e.position);
		while (!O(f) && f !== 0);
	}
	for (; f !== 0;) {
		for (L(e), e.lineIndent = 0, f = e.input.charCodeAt(e.position); (!o || e.lineIndent < c) && f === 32;) e.lineIndent++, f = e.input.charCodeAt(++e.position);
		if (!o && e.lineIndent > c && (c = e.lineIndent), O(f)) {
			l++;
			continue;
		}
		if (e.lineIndent < c) {
			i === nt ? e.result += s.repeat("\n", a ? 1 + l : l) : i === E && a && (e.result += "\n");
			break;
		}
		for (r ? k(f) ? (u = !0, e.result += s.repeat("\n", a ? 1 + l : l)) : u ? (u = !1, e.result += s.repeat("\n", l + 1)) : l === 0 ? a && (e.result += " ") : e.result += s.repeat("\n", l) : e.result += s.repeat("\n", a ? 1 + l : l), a = !0, o = !0, l = 0, n = e.position; !O(f) && f !== 0;) f = e.input.charCodeAt(++e.position);
		F(e, n, e.position, !1);
	}
	return !0;
}
e(wt, "readBlockScalar");
function Tt(e, t) {
	var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
	if (e.firstTabInLine !== -1) return !1;
	for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !A(o))));) {
		if (s = !0, e.position++, R(e, !0, -1) && e.lineIndent <= t) {
			a.push(null), c = e.input.charCodeAt(e.position);
			continue;
		}
		if (n = e.line, V(e, t, et, !1, !0), a.push(e.result), R(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) N(e, "bad indentation of a sequence entry");
		else if (e.lineIndent < t) break;
	}
	return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
}
e(Tt, "readBlockSequence");
function Et(e, t, n) {
	var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = /* @__PURE__ */ Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
	if (e.firstTabInLine !== -1) return !1;
	for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
		if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && A(r)) v === 63 ? (g && (I(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : N(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
		else {
			if (o = e.line, s = e.lineStart, c = e.position, !V(e, n, $e, !1, !0)) break;
			if (e.line === a) {
				for (v = e.input.charCodeAt(e.position); k(v);) v = e.input.charCodeAt(++e.position);
				if (v === 58) v = e.input.charCodeAt(++e.position), A(v) || N(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (I(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
				else if (_) N(e, "can not read an implicit mapping pair; a colon is missed");
				else return e.tag = l, e.anchor = u, !0;
			} else if (_) N(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
			else return e.tag = l, e.anchor = u, !0;
		}
		if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), V(e, t, T, !0, i) && (g ? m = e.result : h = e.result), g || (I(e, d, f, p, m, h, o, s, c), p = m = h = null), R(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) N(e, "bad indentation of a mapping entry");
		else if (e.lineIndent < t) break;
	}
	return g && I(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
}
e(Et, "readBlockMapping");
function Dt(e) {
	var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
	if (o !== 33) return !1;
	if (e.tag !== null && N(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
		do
			o = e.input.charCodeAt(++e.position);
		while (o !== 0 && o !== 62);
		e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : N(e, "unexpected end of the stream within a verbatim tag");
	} else {
		for (; o !== 0 && !A(o);) o === 33 && (r ? N(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), ot.test(i) || N(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
		a = e.input.slice(t, e.position), at.test(a) && N(e, "tag suffix cannot contain flow indicator characters");
	}
	a && !st.test(a) && N(e, "tag name cannot contain such characters: " + a);
	try {
		a = decodeURIComponent(a);
	} catch {
		N(e, "tag name is malformed: " + a);
	}
	return n ? e.tag = a : C.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : N(e, "undeclared tag handle \"" + i + "\""), !0;
}
e(Dt, "readTagProperty");
function Ot(e) {
	var t, n = e.input.charCodeAt(e.position);
	if (n !== 38) return !1;
	for (e.anchor !== null && N(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !A(n) && !j(n);) n = e.input.charCodeAt(++e.position);
	return e.position === t && N(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
}
e(Ot, "readAnchorProperty");
function kt(e) {
	var t, n, r = e.input.charCodeAt(e.position);
	if (r !== 42) return !1;
	for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !A(r) && !j(r);) r = e.input.charCodeAt(++e.position);
	return e.position === t && N(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), C.call(e.anchorMap, n) || N(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], R(e, !0, -1), !0;
}
e(kt, "readAlias");
function V(e, t, n, r, i) {
	var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
	if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = T === n || et === n, r && R(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; Dt(e) || Ot(e);) R(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
	if (s &&= l || i, (c === 1 || T === n) && (h = w === n || $e === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (Tt(e, g) || Et(e, g, h)) || Ct(e, h) ? u = !0 : (o && wt(e, h) || xt(e, h) || St(e, h) ? u = !0 : kt(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && N(e, "alias node should not have any properties")) : bt(e, h, w === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && Tt(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
	else if (e.tag === "?") {
		for (e.result !== null && e.kind !== "scalar" && N(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], 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 if (e.tag !== "!") {
		if (C.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
		else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
			m = p[d];
			break;
		}
		m || N(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && N(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : N(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
	}
	return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
}
e(V, "composeNode");
function At(e) {
	var t = e.position, n, r, i, a = !1, o;
	for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (R(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
		for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !A(o);) o = e.input.charCodeAt(++e.position);
		for (r = e.input.slice(n, e.position), i = [], r.length < 1 && N(e, "directive name must not be less than one character in length"); o !== 0;) {
			for (; k(o);) o = e.input.charCodeAt(++e.position);
			if (o === 35) {
				do
					o = e.input.charCodeAt(++e.position);
				while (o !== 0 && !O(o));
				break;
			}
			if (O(o)) break;
			for (n = e.position; o !== 0 && !A(o);) o = e.input.charCodeAt(++e.position);
			i.push(e.input.slice(n, e.position));
		}
		o !== 0 && L(e), C.call(vt, r) ? vt[r](e, r, i) : P(e, "unknown document directive \"" + r + "\"");
	}
	if (R(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, R(e, !0, -1)) : a && N(e, "directives end mark is expected"), V(e, e.lineIndent - 1, T, !1, !0), R(e, !0, -1), e.checkLineBreaks && it.test(e.input.slice(t, e.position)) && P(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, R(e, !0, -1));
		return;
	}
	if (e.position < e.length - 1) N(e, "end of the stream or a document separator is expected");
	else return;
}
e(At, "readDocument");
function jt(e, t) {
	e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
	var n = new gt(e, t), r = e.indexOf("\0");
	for (r !== -1 && (n.position = r, N(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
	for (; n.position < n.length - 1;) At(n);
	return n.documents;
}
e(jt, "loadDocuments");
function Mt(e, t, n) {
	typeof t == "object" && t && n === void 0 && (n = t, t = null);
	var r = jt(e, n);
	if (typeof t != "function") return r;
	for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
}
e(Mt, "loadAll$1");
function Nt(e, t) {
	var n = jt(e, t);
	if (n.length !== 0) {
		if (n.length === 1) return n[0];
		throw new u("expected a single document in the stream, but found more");
	}
}
e(Nt, "load$1");
var Pt = {
	loadAll: Mt,
	load: Nt
}, Ft = Object.prototype.toString, It = Object.prototype.hasOwnProperty, Lt = 65279, Rt = 9, H = 10, zt = 13, Bt = 32, Vt = 33, Ht = 34, Ut = 35, Wt = 37, Gt = 38, Kt = 39, qt = 42, Jt = 44, Yt = 45, U = 58, Xt = 61, Zt = 62, Qt = 63, $t = 64, en = 91, tn = 93, nn = 96, rn = 123, an = 124, on = 125, W = {};
W[0] = "\\0", W[7] = "\\a", W[8] = "\\b", W[9] = "\\t", W[10] = "\\n", W[11] = "\\v", W[12] = "\\f", W[13] = "\\r", W[27] = "\\e", W[34] = "\\\"", W[92] = "\\\\", W[133] = "\\N", W[160] = "\\_", W[8232] = "\\L", W[8233] = "\\P";
var sn = [
	"y",
	"Y",
	"yes",
	"Yes",
	"YES",
	"on",
	"On",
	"ON",
	"n",
	"N",
	"no",
	"No",
	"NO",
	"off",
	"Off",
	"OFF"
], cn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
function ln(e, t) {
	var n, r, i, a, o, s, c;
	if (t === null) return {};
	for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && It.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
	return n;
}
e(ln, "compileStyleMap");
function un(e) {
	var t = e.toString(16).toUpperCase(), n, r;
	if (e <= 255) n = "x", r = 2;
	else if (e <= 65535) n = "u", r = 4;
	else if (e <= 4294967295) n = "U", r = 8;
	else throw new u("code point within a string may not be greater than 0xFFFFFFFF");
	return "\\" + n + s.repeat("0", r - t.length) + t;
}
e(un, "encodeHex");
var dn = 1, G = 2;
function fn(e) {
	this.schema = e.schema || Qe, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = s.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ln(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? G : dn, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
}
e(fn, "State");
function pn(e, t) {
	for (var n = s.repeat(" ", t), r = 0, i = -1, a = "", o, c = e.length; r < c;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = c) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
	return a;
}
e(pn, "indentString");
function K(e, t) {
	return "\n" + s.repeat(" ", e.indent * t);
}
e(K, "generateNextLine");
function mn(e, t) {
	var n, r, i;
	for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
	return !1;
}
e(mn, "testImplicitResolving");
function q(e) {
	return e === Bt || e === Rt;
}
e(q, "isWhitespace");
function J(e) {
	return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Lt || 65536 <= e && e <= 1114111;
}
e(J, "isPrintable");
function hn(e) {
	return J(e) && e !== Lt && e !== zt && e !== H;
}
e(hn, "isNsCharOrWhitespace");
function gn(e, t, n) {
	var r = hn(e), i = r && !q(e);
	return (n ? r : r && e !== Jt && e !== en && e !== tn && e !== rn && e !== on) && e !== Ut && !(t === U && !i) || hn(t) && !q(t) && e === Ut || t === U && i;
}
e(gn, "isPlainSafe");
function _n(e) {
	return J(e) && e !== Lt && !q(e) && e !== Yt && e !== Qt && e !== U && e !== Jt && e !== en && e !== tn && e !== rn && e !== on && e !== Ut && e !== Gt && e !== qt && e !== Vt && e !== an && e !== Xt && e !== Zt && e !== Kt && e !== Ht && e !== Wt && e !== $t && e !== nn;
}
e(_n, "isPlainSafeFirst");
function vn(e) {
	return !q(e) && e !== U;
}
e(vn, "isPlainSafeLast");
function Y(e, t) {
	var n = e.charCodeAt(t), r;
	return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
}
e(Y, "codePointAt");
function yn(e) {
	return /^\n* /.test(e);
}
e(yn, "needIndentIndicator");
var bn = 1, xn = 2, Sn = 3, Cn = 4, X = 5;
function wn(e, t, n, r, i, a, o, s) {
	var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = _n(Y(e, 0)) && vn(Y(e, e.length - 1));
	if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
		if (l = Y(e, c), !J(l)) return X;
		h &&= gn(l, u, s), u = l;
	}
	else {
		for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
			if (l = Y(e, c), l === H) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
			else if (!J(l)) return X;
			h &&= gn(l, u, s), u = l;
		}
		f ||= p && c - m - 1 > r && e[m + 1] !== " ";
	}
	return !d && !f ? h && !o && !i(e) ? bn : a === G ? X : xn : n > 9 && yn(e) ? X : o ? a === G ? X : xn : f ? Cn : Sn;
}
e(wn, "chooseScalarStyle");
function Tn(t, n, r, i, a) {
	t.dump = (function() {
		if (n.length === 0) return t.quotingType === G ? "\"\"" : "''";
		if (!t.noCompatMode && (sn.indexOf(n) !== -1 || cn.test(n))) return t.quotingType === G ? "\"" + n + "\"" : "'" + n + "'";
		var o = t.indent * Math.max(1, r), s = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - o), c = i || t.flowLevel > -1 && r >= t.flowLevel;
		function l(e) {
			return mn(t, e);
		}
		switch (e(l, "testAmbiguity"), wn(n, c, t.indent, s, l, t.quotingType, t.forceQuotes && !i, a)) {
			case bn: return n;
			case xn: return "'" + n.replace(/'/g, "''") + "'";
			case Sn: return "|" + En(n, t.indent) + Dn(pn(n, o));
			case Cn: return ">" + En(n, t.indent) + Dn(pn(On(n, s), o));
			case X: return "\"" + An(n) + "\"";
			default: throw new u("impossible error: invalid scalar style");
		}
	})();
}
e(Tn, "writeScalar");
function En(e, t) {
	var n = yn(e) ? String(t) : "", r = e[e.length - 1] === "\n";
	return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
}
e(En, "blockHeader");
function Dn(e) {
	return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
}
e(Dn, "dropEndingNewline");
function On(e, t) {
	for (var n = /(\n+)([^\n]*)/g, r = (function() {
		var r = e.indexOf("\n");
		return r = r === -1 ? e.length : r, n.lastIndex = r, kn(e.slice(0, r), t);
	})(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
		var s = o[1], c = o[2];
		a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + kn(c, t), i = a;
	}
	return r;
}
e(On, "foldString");
function kn(e, t) {
	if (e === "" || e[0] === " ") return e;
	for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
	return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
}
e(kn, "foldLine");
function An(e) {
	for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = Y(e, i), r = W[n], !r && J(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || un(n);
	return t;
}
e(An, "escapeString");
function jn(e, t, n) {
	var r = "", i = e.tag, a, o, s;
	for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Q(e, t, s, !1, !1) || s === void 0 && Q(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
	e.tag = i, e.dump = "[" + r + "]";
}
e(jn, "writeFlowSequence");
function Mn(e, t, n, r) {
	var i = "", a = e.tag, o, s, c;
	for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += K(e, t)), e.dump && H === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
	e.tag = a, e.dump = i || "[]";
}
e(Mn, "writeBlockSequence");
function Nn(e, t, n) {
	var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
	for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Q(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Q(e, t, l, !1, !1) && (u += e.dump, r += u));
	e.tag = i, e.dump = "{" + r + "}";
}
e(Nn, "writeFlowMapping");
function Pn(e, t, n, r) {
	var i = "", a = e.tag, o = Object.keys(n), s, c, l, d, f, p;
	if (e.sortKeys === !0) o.sort();
	else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
	else if (e.sortKeys) throw new u("sortKeys must be a boolean or a function");
	for (s = 0, c = o.length; s < c; s += 1) p = "", (!r || i !== "") && (p += K(e, t)), l = o[s], d = n[l], e.replacer && (d = e.replacer.call(n, l, d)), Q(e, t + 1, l, !0, !0, !0) && (f = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, f && (e.dump && H === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, f && (p += K(e, t)), Q(e, t + 1, d, !0, f) && (e.dump && H === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, i += p));
	e.tag = a, e.dump = i || "{}";
}
e(Pn, "writeBlockMapping");
function Z(e, t, n) {
	var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
	for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
		if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
			if (c = e.styleMap[s.tag] || s.defaultStyle, Ft.call(s.represent) === "[object Function]") r = s.represent(t, c);
			else if (It.call(s.represent, c)) r = s.represent[c](t, c);
			else throw new u("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
			e.dump = r;
		}
		return !0;
	}
	return !1;
}
e(Z, "detectType");
function Q(e, t, n, r, i, a, o) {
	e.tag = null, e.dump = n, Z(e, n, !1) || Z(e, n, !0);
	var s = Ft.call(e.dump), c = r, l;
	r &&= e.flowLevel < 0 || e.flowLevel > t;
	var d = s === "[object Object]" || s === "[object Array]", f, p;
	if (d && (f = e.duplicates.indexOf(n), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (i = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
	else {
		if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Pn(e, t, e.dump, i), p && (e.dump = "&ref_" + f + e.dump)) : (Nn(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
		else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Mn(e, t - 1, e.dump, i) : Mn(e, t, e.dump, i), p && (e.dump = "&ref_" + f + e.dump)) : (jn(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
		else if (s === "[object String]") e.tag !== "?" && Tn(e, e.dump, t, a, c);
		else if (s === "[object Undefined]") return !1;
		else {
			if (e.skipInvalid) return !1;
			throw new u("unacceptable kind of an object to dump " + s);
		}
		e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
	}
	return !0;
}
e(Q, "writeNode");
function Fn(e, t) {
	var n = [], r = [], i, a;
	for ($(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
	t.usedDuplicates = Array(a);
}
e(Fn, "getDuplicateReferences");
function $(e, t, n) {
	var r, i, a;
	if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
	else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) $(e[i], t, n);
	else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) $(e[r[i]], t, n);
}
e($, "inspectNode");
function In(e, t) {
	t ||= {};
	var n = new fn(t);
	n.noRefs || Fn(e, n);
	var r = e;
	return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Q(n, 0, r, !0, !0) ? n.dump + "\n" : "";
}
e(In, "dump$1");
var Ln = { dump: In };
function Rn(e, t) {
	return function() {
		throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
	};
}
e(Rn, "renamed");
var zn = we, Bn = Pt.load;
Pt.loadAll, Ln.dump;
//#endregion
export { zn as JSON_SCHEMA, Bn as load };
