UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

28,234 lines 1.01 MB
//#region node_modules/.pnpm/@wangeditor+editor@5.1.23/node_modules/@wangeditor/editor/dist/index.esm.js
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function t(e) {
	return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function n(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var r, i, a = function(e) {
	return e && e.Math == Math && e;
}, o = a(typeof globalThis == "object" && globalThis) || a(typeof window == "object" && window) || a(typeof self == "object" && self) || a(typeof e == "object" && e) || function() {
	return this;
}() || Function("return this")(), s = Function.prototype, c = s.apply, l = s.bind, u = s.call, d = typeof Reflect == "object" && Reflect.apply || (l ? u.bind(c) : function() {
	return u.apply(c, arguments);
}), f = Function.prototype, p = f.bind, m = f.call, h = p && p.bind(m), g = p ? function(e) {
	return e && h(m, e);
} : function(e) {
	return e && function() {
		return m.apply(e, arguments);
	};
}, _ = function(e) {
	return typeof e == "function";
}, v = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, y = !v((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), b = Function.prototype.call, x = b.bind ? b.bind(b) : function() {
	return b.apply(b, arguments);
}, S = {}.propertyIsEnumerable, C = Object.getOwnPropertyDescriptor, w = { f: C && !S.call({ 1: 2 }, 1) ? function(e) {
	var t = C(this, e);
	return !!t && t.enumerable;
} : S }, T = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, E = g({}.toString), D = g("".slice), O = function(e) {
	return D(E(e), 8, -1);
}, ee = o.Object, te = g("".split), ne = v((function() {
	return !ee("z").propertyIsEnumerable(0);
})) ? function(e) {
	return O(e) == "String" ? te(e, "") : ee(e);
} : ee, re = o.TypeError, k = function(e) {
	if (e == null) throw re("Can't call method on " + e);
	return e;
}, ie = function(e) {
	return ne(k(e));
}, A = function(e) {
	return typeof e == "object" ? e !== null : _(e);
}, ae = {}, oe = function(e) {
	return _(e) ? e : void 0;
}, se = function(e, t) {
	return arguments.length < 2 ? oe(ae[e]) || oe(o[e]) : ae[e] && ae[e][t] || o[e] && o[e][t];
}, ce = g({}.isPrototypeOf), le = se("navigator", "userAgent") || "", ue = o.process, de = o.Deno, fe = ue && ue.versions || de && de.version, pe = fe && fe.v8;
pe && (i = (r = pe.split("."))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !i && le && (!(r = le.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = le.match(/Chrome\/(\d+)/)) && (i = +r[1]);
var me, he = i, ge = !!Object.getOwnPropertySymbols && !v((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && he && he < 41;
})), _e = ge && !Symbol.sham && typeof Symbol.iterator == "symbol", ve = o.Object, ye = _e ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = se("Symbol");
	return _(t) && ce(t.prototype, ve(e));
}, be = o.String, xe = function(e) {
	try {
		return be(e);
	} catch {
		return "Object";
	}
}, Se = o.TypeError, Ce = function(e) {
	if (_(e)) return e;
	throw Se(xe(e) + " is not a function");
}, we = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : Ce(n);
}, Te = o.TypeError, Ee = Object.defineProperty, De = o["__core-js_shared__"] || function(e, t) {
	try {
		Ee(o, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		o[e] = t;
	}
	return t;
}("__core-js_shared__", {}), Oe = n((function(e) {
	(e.exports = function(e, t) {
		return De[e] || (De[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "pure",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), ke = o.Object, Ae = function(e) {
	return ke(k(e));
}, je = g({}.hasOwnProperty), Me = Object.hasOwn || function(e, t) {
	return je(Ae(e), t);
}, Ne = 0, Pe = Math.random(), Fe = g(1 .toString), Ie = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + Fe(++Ne + Pe, 36);
}, Le = Oe("wks"), Re = o.Symbol, ze = Re && Re.for, Be = _e ? Re : Re && Re.withoutSetter || Ie, Ve = function(e) {
	if (!Me(Le, e) || !ge && typeof Le[e] != "string") {
		var t = "Symbol." + e;
		ge && Me(Re, e) ? Le[e] = Re[e] : Le[e] = _e && ze ? ze(t) : Be(t);
	}
	return Le[e];
}, He = o.TypeError, Ue = Ve("toPrimitive"), We = function(e, t) {
	if (!A(e) || ye(e)) return e;
	var n, r = we(e, Ue);
	if (r) {
		if (t === void 0 && (t = "default"), n = x(r, e, t), !A(n) || ye(n)) return n;
		throw He("Can't convert object to primitive value");
	}
	return t === void 0 && (t = "number"), function(e, t) {
		var n, r;
		if (t === "string" && _(n = e.toString) && !A(r = x(n, e)) || _(n = e.valueOf) && !A(r = x(n, e)) || t !== "string" && _(n = e.toString) && !A(r = x(n, e))) return r;
		throw Te("Can't convert object to primitive value");
	}(e, t);
}, Ge = function(e) {
	var t = We(e, "string");
	return ye(t) ? t : t + "";
}, Ke = o.document, qe = A(Ke) && A(Ke.createElement), Je = function(e) {
	return qe ? Ke.createElement(e) : {};
}, Ye = !y && !v((function() {
	return Object.defineProperty(Je("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), Xe = Object.getOwnPropertyDescriptor, Ze = { f: y ? Xe : function(e, t) {
	if (e = ie(e), t = Ge(t), Ye) try {
		return Xe(e, t);
	} catch {}
	if (Me(e, t)) return T(!x(w.f, e, t), e[t]);
} }, Qe = /#|\.prototype\./, $e = function(e, t) {
	var n = tt[et(e)];
	return n == rt || n != nt && (_(t) ? v(t) : !!t);
}, et = $e.normalize = function(e) {
	return String(e).replace(Qe, ".").toLowerCase();
}, tt = $e.data = {}, nt = $e.NATIVE = "N", rt = $e.POLYFILL = "P", it = $e, at = g(g.bind), ot = function(e, t) {
	return Ce(e), t === void 0 ? e : at ? at(e, t) : function() {
		return e.apply(t, arguments);
	};
}, st = o.String, ct = o.TypeError, lt = function(e) {
	if (A(e)) return e;
	throw ct(st(e) + " is not an object");
}, ut = o.TypeError, dt = Object.defineProperty, ft = { f: y ? dt : function(e, t, n) {
	if (lt(e), t = Ge(t), lt(n), Ye) try {
		return dt(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw ut("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, pt = y ? function(e, t, n) {
	return ft.f(e, t, T(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, mt = Ze.f, ht = function(e) {
	var t = function(n, r, i) {
		if (this instanceof t) {
			switch (arguments.length) {
				case 0: return new e();
				case 1: return new e(n);
				case 2: return new e(n, r);
			}
			return new e(n, r, i);
		}
		return d(e, this, arguments);
	};
	return t.prototype = e.prototype, t;
}, gt = function(e, t) {
	var n, r, i, a, s, c, l, u, d = e.target, f = e.global, p = e.stat, m = e.proto, h = f ? o : p ? o[d] : (o[d] || {}).prototype, v = f ? ae : ae[d] || pt(ae, d, {})[d], y = v.prototype;
	for (i in t) n = !it(f ? i : d + (p ? "." : "#") + i, e.forced) && h && Me(h, i), s = v[i], n && (c = e.noTargetGet ? (u = mt(h, i)) && u.value : h[i]), a = n && c ? c : t[i], n && typeof s == typeof a || (l = e.bind && n ? ot(a, o) : e.wrap && n ? ht(a) : m && _(a) ? g(a) : a, (e.sham || a && a.sham || s && s.sham) && pt(l, "sham", !0), pt(v, i, l), m && (Me(ae, r = d + "Prototype") || pt(ae, r, {}), pt(ae[r], i, a), e.real && y && !y[i] && pt(y, i, a)));
}, _t = Oe("keys"), vt = function(e) {
	return _t[e] || (_t[e] = Ie(e));
}, yt = !v((function() {
	function e() {}
	return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
})), bt = vt("IE_PROTO"), xt = o.Object, eee = xt.prototype, St = yt ? xt.getPrototypeOf : function(e) {
	var t = Ae(e);
	if (Me(t, bt)) return t[bt];
	var n = t.constructor;
	return _(n) && t instanceof n ? n.prototype : t instanceof xt ? eee : null;
}, Ct = o.String, tee = o.TypeError, wt = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var e, t = !1, n = {};
	try {
		(e = g(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(n, []), t = n instanceof Array;
	} catch {}
	return function(n, r) {
		return lt(n), function(e) {
			if (typeof e == "object" || _(e)) return e;
			throw tee("Can't set " + Ct(e) + " as a prototype");
		}(r), t ? e(n, r) : n.__proto__ = r, n;
	};
}() : void 0), nee = Math.ceil, Tt = Math.floor, Et = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? Tt : nee)(t);
}, ree = Math.max, Dt = Math.min, Ot = function(e, t) {
	var n = Et(e);
	return n < 0 ? ree(n + t, 0) : Dt(n, t);
}, kt = Math.min, At = function(e) {
	return (t = e.length) > 0 ? kt(Et(t), 9007199254740991) : 0;
	var t;
}, jt = function(e) {
	return function(t, n, r) {
		var i, a = ie(t), o = At(a), s = Ot(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}, Mt = {
	includes: jt(!0),
	indexOf: jt(!1)
}, Nt = {}, Pt = Mt.indexOf, Ft = g([].push), It = function(e, t) {
	var n, r = ie(e), i = 0, a = [];
	for (n in r) !Me(Nt, n) && Me(r, n) && Ft(a, n);
	for (; t.length > i;) Me(r, n = t[i++]) && (~Pt(a, n) || Ft(a, n));
	return a;
}, Lt = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], iee = Lt.concat("length", "prototype"), Rt = { f: Object.getOwnPropertyNames || function(e) {
	return It(e, iee);
} }, zt = { f: Object.getOwnPropertySymbols }, aee = g([].concat), oee = se("Reflect", "ownKeys") || function(e) {
	var t = Rt.f(lt(e)), n = zt.f;
	return n ? aee(t, n(e)) : t;
}, Bt = Object.keys || function(e) {
	return It(e, Lt);
}, Vt = y ? Object.defineProperties : function(e, t) {
	lt(e);
	for (var n, r = ie(t), i = Bt(t), a = i.length, o = 0; a > o;) ft.f(e, n = i[o++], r[n]);
	return e;
}, see = se("document", "documentElement"), Ht = vt("IE_PROTO"), Ut = function() {}, Wt = function(e) {
	return "<script>" + e + "<\/script>";
}, Gt = function(e) {
	e.write(Wt("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, Kt = function() {
	try {
		me = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	Kt = typeof document < "u" ? document.domain && me ? Gt(me) : ((t = Je("iframe")).style.display = "none", see.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(Wt("document.F=Object")), e.close(), e.F) : Gt(me);
	for (var n = Lt.length; n--;) delete Kt.prototype[Lt[n]];
	return Kt();
};
Nt[Ht] = !0;
var qt = Object.create || function(e, t) {
	var n;
	return e === null ? n = Kt() : (Ut.prototype = lt(e), n = new Ut(), Ut.prototype = null, n[Ht] = e), t === void 0 ? n : Vt(n, t);
}, Jt = function(e, t, n) {
	var r = Ge(t);
	r in e ? ft.f(e, r, T(0, n)) : e[r] = n;
}, Yt = o.Array, Xt = Math.max, Zt = function(e, t, n) {
	for (var r = At(e), i = Ot(t, r), a = Ot(n === void 0 ? r : n, r), o = Yt(Xt(a - i, 0)), s = 0; i < a; i++, s++) Jt(o, s, e[i]);
	return o.length = s, o;
}, Qt = g("".replace), $t = g("".split), en = g([].join), tn = String(Error("zxcasd").stack), nn = /\n\s*at [^:]*:[^\n]*/, rn = nn.test(tn), an = /@[^\n]*\n/.test(tn) && !/zxcasd/.test(tn), on = function(e, t) {
	if (typeof e != "string") return e;
	if (rn) for (; t--;) e = Qt(e, nn, "");
	else if (an) return en(Zt($t(e, "\n"), t), "\n");
	return e;
}, sn = function(e, t) {
	A(t) && "cause" in t && pt(e, "cause", t.cause);
}, cn = {}, ln = Ve("iterator"), un = Array.prototype, dn = {};
dn[Ve("toStringTag")] = "z";
var fn = String(dn) === "[object z]", pn = Ve("toStringTag"), mn = o.Object, hn = O(function() {
	return arguments;
}()) == "Arguments", gn = fn ? O : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = mn(e), pn)) == "string" ? n : hn ? O(t) : (r = O(t)) == "Object" && _(t.callee) ? "Arguments" : r;
}, _n = Ve("iterator"), vn = function(e) {
	if (e != null) return we(e, _n) || we(e, "@@iterator") || cn[gn(e)];
}, yn = o.TypeError, bn = function(e, t, n) {
	var r, i;
	lt(e);
	try {
		if (!(r = we(e, "return"))) {
			if (t === "throw") throw n;
			return n;
		}
		r = x(r, e);
	} catch (e) {
		i = !0, r = e;
	}
	if (t === "throw") throw n;
	if (i) throw r;
	return lt(r), n;
}, xn = o.TypeError, Sn = function(e, t) {
	this.stopped = e, this.result = t;
}, Cn = Sn.prototype, wn = function(e, t, n) {
	var r, i, a, o, s, c, l, u = n && n.that, d = !(!n || !n.AS_ENTRIES), f = !(!n || !n.IS_ITERATOR), p = !(!n || !n.INTERRUPTED), m = ot(t, u), h = function(e) {
		return r && bn(r, "normal", e), new Sn(!0, e);
	}, g = function(e) {
		return d ? (lt(e), p ? m(e[0], e[1], h) : m(e[0], e[1])) : p ? m(e, h) : m(e);
	};
	if (f) r = e;
	else {
		if (!(i = vn(e))) throw xn(xe(e) + " is not iterable");
		if (function(e) {
			return e !== void 0 && (cn.Array === e || un[ln] === e);
		}(i)) {
			for (a = 0, o = At(e); o > a; a++) if ((s = g(e[a])) && ce(Cn, s)) return s;
			return new Sn(!1);
		}
		r = function(e, t) {
			var n = arguments.length < 2 ? vn(e) : t;
			if (Ce(n)) return lt(x(n, e));
			throw yn(xe(e) + " is not iterable");
		}(e, i);
	}
	for (c = r.next; !(l = x(c, r)).done;) {
		try {
			s = g(l.value);
		} catch (e) {
			bn(r, "throw", e);
		}
		if (typeof s == "object" && s && ce(Cn, s)) return s;
	}
	return new Sn(!1);
}, Tn = o.String, En = function(e) {
	if (gn(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return Tn(e);
}, Dn = function(e, t) {
	return e === void 0 ? arguments.length < 2 ? "" : t : En(e);
}, On = !v((function() {
	var e = Error("a");
	return !("stack" in e) || (Object.defineProperty(e, "stack", T(1, 7)), e.stack !== 7);
})), cee = Ve("toStringTag"), kn = o.Error, lee = [].push, An = function(e, t) {
	var n, r = arguments.length > 2 ? arguments[2] : void 0, i = ce(jn, this);
	wt ? n = wt(new kn(void 0), i ? St(this) : jn) : (n = i ? this : qt(jn), pt(n, cee, "Error")), pt(n, "message", Dn(t, "")), On && pt(n, "stack", on(n.stack, 1)), sn(n, r);
	var a = [];
	return wn(e, lee, { that: a }), pt(n, "errors", a), n;
};
wt ? wt(An, kn) : function(e, t) {
	for (var n = oee(t), r = ft.f, i = Ze.f, a = 0; a < n.length; a++) {
		var o = n[a];
		Me(e, o) || r(e, o, i(t, o));
	}
}(An, kn);
var jn = An.prototype = qt(kn.prototype, {
	constructor: T(1, An),
	message: T(1, ""),
	name: T(1, "AggregateError")
});
gt({ global: !0 }, { AggregateError: An });
var uee = g(Function.toString);
_(De.inspectSource) || (De.inspectSource = function(e) {
	return uee(e);
});
var Mn, Nn, Pn, Fn = De.inspectSource, In = o.WeakMap, dee = _(In) && /native code/.test(Fn(In)), Ln = o.TypeError, fee = o.WeakMap;
if (dee || De.state) {
	var Rn = De.state ||= new fee(), pee = g(Rn.get), zn = g(Rn.has), mee = g(Rn.set);
	Mn = function(e, t) {
		if (zn(Rn, e)) throw new Ln("Object already initialized");
		return t.facade = e, mee(Rn, e, t), t;
	}, Nn = function(e) {
		return pee(Rn, e) || {};
	}, Pn = function(e) {
		return zn(Rn, e);
	};
} else {
	var Bn = vt("state");
	Nt[Bn] = !0, Mn = function(e, t) {
		if (Me(e, Bn)) throw new Ln("Object already initialized");
		return t.facade = e, pt(e, Bn, t), t;
	}, Nn = function(e) {
		return Me(e, Bn) ? e[Bn] : {};
	}, Pn = function(e) {
		return Me(e, Bn);
	};
}
var Vn, Hn, Un, Wn = {
	set: Mn,
	get: Nn,
	has: Pn,
	enforce: function(e) {
		return Pn(e) ? Nn(e) : Mn(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!A(t) || (n = Nn(t)).type !== e) throw Ln("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, Gn = Function.prototype, hee = y && Object.getOwnPropertyDescriptor, Kn = Me(Gn, "name"), qn = {
	EXISTS: Kn,
	PROPER: Kn && function() {}.name === "something",
	CONFIGURABLE: Kn && (!y || y && hee(Gn, "name").configurable)
}, Jn = function(e, t, n, r) {
	r && r.enumerable ? e[t] = n : pt(e, t, n);
}, Yn = Ve("iterator"), Xn = !1;
[].keys && ("next" in (Un = [].keys()) ? (Hn = St(St(Un))) !== Object.prototype && (Vn = Hn) : Xn = !0), Vn = Vn == null || v((function() {
	var e = {};
	return Vn[Yn].call(e) !== e;
})) ? {} : qt(Vn), _(Vn[Yn]) || Jn(Vn, Yn, (function() {
	return this;
}));
var Zn = {
	IteratorPrototype: Vn,
	BUGGY_SAFARI_ITERATORS: Xn
}, Qn = fn ? {}.toString : function() {
	return "[object " + gn(this) + "]";
}, $n = ft.f, er = Ve("toStringTag"), tr = function(e, t, n, r) {
	if (e) {
		var i = n ? e : e.prototype;
		Me(i, er) || $n(i, er, {
			configurable: !0,
			value: t
		}), r && !fn && pt(i, "toString", Qn);
	}
}, gee = Zn.IteratorPrototype, _ee = function() {
	return this;
}, vee = qn.PROPER, nr = Zn.BUGGY_SAFARI_ITERATORS, rr = Ve("iterator"), ir = function() {
	return this;
}, ar = function(e, t, n, r, i, a, o) {
	(function(e, t, n, r) {
		var i = t + " Iterator";
		e.prototype = qt(gee, { next: T(+!r, n) }), tr(e, i, !1, !0), cn[i] = _ee;
	})(n, t, r);
	var s, c, l, u = function(e) {
		if (e === i && h) return h;
		if (!nr && e in p) return p[e];
		switch (e) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new n(this, e);
			};
		}
		return function() {
			return new n(this);
		};
	}, d = t + " Iterator", f = !1, p = e.prototype, m = p[rr] || p["@@iterator"] || i && p[i], h = !nr && m || u(i), g = t == "Array" && p.entries || m;
	if (g && (s = St(g.call(new e()))) !== Object.prototype && s.next && (tr(s, d, !0, !0), cn[d] = ir), vee && i == "values" && m && m.name !== "values" && (f = !0, h = function() {
		return x(m, this);
	}), i) if (c = {
		values: u("values"),
		keys: a ? h : u("keys"),
		entries: u("entries")
	}, o) for (l in c) (nr || f || !(l in p)) && Jn(p, l, c[l]);
	else gt({
		target: t,
		proto: !0,
		forced: nr || f
	}, c);
	return o && p[rr] !== h && Jn(p, rr, h, { name: i }), cn[t] = h, c;
}, or = Wn.set, yee = Wn.getterFor("Array Iterator");
ar(Array, "Array", (function(e, t) {
	or(this, {
		type: "Array Iterator",
		target: ie(e),
		index: 0,
		kind: t
	});
}), (function() {
	var e = yee(this), t = e.target, n = e.kind, r = e.index++;
	return !t || r >= t.length ? (e.target = void 0, {
		value: void 0,
		done: !0
	}) : n == "keys" ? {
		value: r,
		done: !1
	} : n == "values" ? {
		value: t[r],
		done: !1
	} : {
		value: [r, t[r]],
		done: !1
	};
}), "values"), cn.Arguments = cn.Array;
var bee = g("".charAt), sr = g("".charCodeAt), xee = g("".slice), cr = function(e) {
	return function(t, n) {
		var r, i, a = En(k(t)), o = Et(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = sr(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = sr(a, o + 1)) < 56320 || i > 57343 ? e ? bee(a, o) : r : e ? xee(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}, See = {
	codeAt: cr(!1),
	charAt: cr(!0)
}.charAt, Cee = Wn.set, wee = Wn.getterFor("String Iterator");
ar(String, "String", (function(e) {
	Cee(this, {
		type: "String Iterator",
		string: En(e),
		index: 0
	});
}), (function() {
	var e, t = wee(this), n = t.string, r = t.index;
	return r >= n.length ? {
		value: void 0,
		done: !0
	} : (e = See(n, r), t.index += e.length, {
		value: e,
		done: !1
	});
}));
var Tee = ae.AggregateError, lr = Ve("toStringTag");
for (var ur in {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}) {
	var dr = o[ur], fr = dr && dr.prototype;
	fr && gn(fr) !== lr && pt(fr, lr, ur), cn[ur] = cn.Array;
}
var pr, mr, hr = Tee, gr = function(e) {
	return e && e.Math == Math && e;
}, j = gr(typeof globalThis == "object" && globalThis) || gr(typeof window == "object" && window) || gr(typeof self == "object" && self) || gr(typeof e == "object" && e) || function() {
	return this;
}() || Function("return this")(), _r = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, vr = !_r((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), yr = Function.prototype.call, br = yr.bind ? yr.bind(yr) : function() {
	return yr.apply(yr, arguments);
}, xr = {}.propertyIsEnumerable, Sr = Object.getOwnPropertyDescriptor, Cr = { f: Sr && !xr.call({ 1: 2 }, 1) ? function(e) {
	var t = Sr(this, e);
	return !!t && t.enumerable;
} : xr }, wr = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, Tr = Function.prototype, Er = Tr.bind, Dr = Tr.call, Or = Er && Er.bind(Dr), kr = Er ? function(e) {
	return e && Or(Dr, e);
} : function(e) {
	return e && function() {
		return Dr.apply(e, arguments);
	};
}, Ar = kr({}.toString), jr = kr("".slice), Mr = function(e) {
	return jr(Ar(e), 8, -1);
}, Nr = j.Object, Pr = kr("".split), Fr = _r((function() {
	return !Nr("z").propertyIsEnumerable(0);
})) ? function(e) {
	return Mr(e) == "String" ? Pr(e, "") : Nr(e);
} : Nr, Ir = j.TypeError, Lr = function(e) {
	if (e == null) throw Ir("Can't call method on " + e);
	return e;
}, Rr = function(e) {
	return Fr(Lr(e));
}, zr = function(e) {
	return typeof e == "function";
}, Br = function(e) {
	return typeof e == "object" ? e !== null : zr(e);
}, Vr = function(e) {
	return zr(e) ? e : void 0;
}, Hr = function(e, t) {
	return arguments.length < 2 ? Vr(j[e]) : j[e] && j[e][t];
}, Ur = kr({}.isPrototypeOf), Wr = Hr("navigator", "userAgent") || "", Gr = j.process, Kr = j.Deno, qr = Gr && Gr.versions || Kr && Kr.version, Jr = qr && qr.v8;
Jr && (mr = (pr = Jr.split("."))[0] > 0 && pr[0] < 4 ? 1 : +(pr[0] + pr[1])), !mr && Wr && (!(pr = Wr.match(/Edge\/(\d+)/)) || pr[1] >= 74) && (pr = Wr.match(/Chrome\/(\d+)/)) && (mr = +pr[1]);
var Yr = mr, Xr = !!Object.getOwnPropertySymbols && !_r((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && Yr && Yr < 41;
})), Zr = Xr && !Symbol.sham && typeof Symbol.iterator == "symbol", Qr = j.Object, $r = Zr ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = Hr("Symbol");
	return zr(t) && Ur(t.prototype, Qr(e));
}, ei = j.String, ti = function(e) {
	try {
		return ei(e);
	} catch {
		return "Object";
	}
}, ni = j.TypeError, ri = function(e) {
	if (zr(e)) return e;
	throw ni(ti(e) + " is not a function");
}, ii = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : ri(n);
}, ai = j.TypeError, oi = Object.defineProperty, si = function(e, t) {
	try {
		oi(j, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		j[e] = t;
	}
	return t;
}, ci = j["__core-js_shared__"] || si("__core-js_shared__", {}), li = n((function(e) {
	(e.exports = function(e, t) {
		return ci[e] || (ci[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), ui = j.Object, di = function(e) {
	return ui(Lr(e));
}, fi = kr({}.hasOwnProperty), pi = Object.hasOwn || function(e, t) {
	return fi(di(e), t);
}, Eee = 0, Dee = Math.random(), Oee = kr(1 .toString), mi = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + Oee(++Eee + Dee, 36);
}, hi = li("wks"), gi = j.Symbol, _i = gi && gi.for, kee = Zr ? gi : gi && gi.withoutSetter || mi, vi = function(e) {
	if (!pi(hi, e) || !Xr && typeof hi[e] != "string") {
		var t = "Symbol." + e;
		Xr && pi(gi, e) ? hi[e] = gi[e] : hi[e] = Zr && _i ? _i(t) : kee(t);
	}
	return hi[e];
}, Aee = j.TypeError, jee = vi("toPrimitive"), Mee = function(e, t) {
	if (!Br(e) || $r(e)) return e;
	var n, r = ii(e, jee);
	if (r) {
		if (t === void 0 && (t = "default"), n = br(r, e, t), !Br(n) || $r(n)) return n;
		throw Aee("Can't convert object to primitive value");
	}
	return t === void 0 && (t = "number"), function(e, t) {
		var n, r;
		if (t === "string" && zr(n = e.toString) && !Br(r = br(n, e)) || zr(n = e.valueOf) && !Br(r = br(n, e)) || t !== "string" && zr(n = e.toString) && !Br(r = br(n, e))) return r;
		throw ai("Can't convert object to primitive value");
	}(e, t);
}, yi = function(e) {
	var t = Mee(e, "string");
	return $r(t) ? t : t + "";
}, bi = j.document, Nee = Br(bi) && Br(bi.createElement), xi = function(e) {
	return Nee ? bi.createElement(e) : {};
}, Si = !vr && !_r((function() {
	return Object.defineProperty(xi("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), Ci = Object.getOwnPropertyDescriptor, wi = { f: vr ? Ci : function(e, t) {
	if (e = Rr(e), t = yi(t), Si) try {
		return Ci(e, t);
	} catch {}
	if (pi(e, t)) return wr(!br(Cr.f, e, t), e[t]);
} }, Pee = j.String, Fee = j.TypeError, Ti = function(e) {
	if (Br(e)) return e;
	throw Fee(Pee(e) + " is not an object");
}, Iee = j.TypeError, Ei = Object.defineProperty, Di = { f: vr ? Ei : function(e, t, n) {
	if (Ti(e), t = yi(t), Ti(n), Si) try {
		return Ei(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw Iee("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, Oi = vr ? function(e, t, n) {
	return Di.f(e, t, wr(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, Lee = kr(Function.toString);
zr(ci.inspectSource) || (ci.inspectSource = function(e) {
	return Lee(e);
});
var ki, Ai, ji, Mi = ci.inspectSource, Ni = j.WeakMap, Ree = zr(Ni) && /native code/.test(Mi(Ni)), Pi = li("keys"), Fi = function(e) {
	return Pi[e] || (Pi[e] = mi(e));
}, Ii = {}, Li = j.TypeError, zee = j.WeakMap;
if (Ree || ci.state) {
	var Ri = ci.state ||= new zee(), Bee = kr(Ri.get), zi = kr(Ri.has), Vee = kr(Ri.set);
	ki = function(e, t) {
		if (zi(Ri, e)) throw new Li("Object already initialized");
		return t.facade = e, Vee(Ri, e, t), t;
	}, Ai = function(e) {
		return Bee(Ri, e) || {};
	}, ji = function(e) {
		return zi(Ri, e);
	};
} else {
	var Bi = Fi("state");
	Ii[Bi] = !0, ki = function(e, t) {
		if (pi(e, Bi)) throw new Li("Object already initialized");
		return t.facade = e, Oi(e, Bi, t), t;
	}, Ai = function(e) {
		return pi(e, Bi) ? e[Bi] : {};
	}, ji = function(e) {
		return pi(e, Bi);
	};
}
var Vi = {
	set: ki,
	get: Ai,
	has: ji,
	enforce: function(e) {
		return ji(e) ? Ai(e) : ki(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!Br(t) || (n = Ai(t)).type !== e) throw Li("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, Hi = Function.prototype, Hee = vr && Object.getOwnPropertyDescriptor, Ui = pi(Hi, "name"), Wi = {
	EXISTS: Ui,
	PROPER: Ui && function() {}.name === "something",
	CONFIGURABLE: Ui && (!vr || vr && Hee(Hi, "name").configurable)
}, Gi = n((function(e) {
	var t = Wi.CONFIGURABLE, n = Vi.get, r = Vi.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		zr(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!pi(a, "name") || t && a.name !== d) && Oi(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === j ? l ? e[n] = a : si(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : Oi(e, n, a));
	})(Function.prototype, "toString", (function() {
		return zr(this) && n(this).source || Mi(this);
	}));
})), Uee = Math.ceil, Wee = Math.floor, Ki = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? Wee : Uee)(t);
}, qi = Math.max, Ji = Math.min, Yi = function(e, t) {
	var n = Ki(e);
	return n < 0 ? qi(n + t, 0) : Ji(n, t);
}, Gee = Math.min, Xi = function(e) {
	return e > 0 ? Gee(Ki(e), 9007199254740991) : 0;
}, Zi = function(e) {
	return Xi(e.length);
}, Qi = function(e) {
	return function(t, n, r) {
		var i, a = Rr(t), o = Zi(a), s = Yi(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}, Kee = {
	includes: Qi(!0),
	indexOf: Qi(!1)
}.indexOf, $i = kr([].push), ea = function(e, t) {
	var n, r = Rr(e), i = 0, a = [];
	for (n in r) !pi(Ii, n) && pi(r, n) && $i(a, n);
	for (; t.length > i;) pi(r, n = t[i++]) && (~Kee(a, n) || $i(a, n));
	return a;
}, ta = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], na = ta.concat("length", "prototype"), ra = { f: Object.getOwnPropertyNames || function(e) {
	return ea(e, na);
} }, ia = { f: Object.getOwnPropertySymbols }, aa = kr([].concat), oa = Hr("Reflect", "ownKeys") || function(e) {
	var t = ra.f(Ti(e)), n = ia.f;
	return n ? aa(t, n(e)) : t;
}, sa = function(e, t) {
	for (var n = oa(t), r = Di.f, i = wi.f, a = 0; a < n.length; a++) {
		var o = n[a];
		pi(e, o) || r(e, o, i(t, o));
	}
}, ca = /#|\.prototype\./, la = function(e, t) {
	var n = da[ua(e)];
	return n == pa || n != fa && (zr(t) ? _r(t) : !!t);
}, ua = la.normalize = function(e) {
	return String(e).replace(ca, ".").toLowerCase();
}, da = la.data = {}, fa = la.NATIVE = "N", pa = la.POLYFILL = "P", ma = la, ha = wi.f, ga = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? j : l ? j[s] || si(s, {}) : (j[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = ha(n, r)) && o.value : n[r], !ma(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			sa(a, i);
		}
		(e.sham || i && i.sham) && Oi(a, "sham", !0), Gi(n, r, a, e);
	}
}, _a = {};
_a[vi("toStringTag")] = "z";
var va, ya = String(_a) === "[object z]", ba = vi("toStringTag"), xa = j.Object, Sa = Mr(function() {
	return arguments;
}()) == "Arguments", Ca = ya ? Mr : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = xa(e), ba)) == "string" ? n : Sa ? Mr(t) : (r = Mr(t)) == "Object" && zr(t.callee) ? "Arguments" : r;
}, wa = j.String, Ta = function(e) {
	if (Ca(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return wa(e);
}, Ea = function() {
	var e = Ti(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, Da = j.RegExp, Oa = _r((function() {
	var e = Da("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), qee = Oa || _r((function() {
	return !Da("a", "y").sticky;
})), Jee = {
	BROKEN_CARET: Oa || _r((function() {
		var e = Da("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: qee,
	UNSUPPORTED_Y: Oa
}, Yee = Object.keys || function(e) {
	return ea(e, ta);
}, Xee = vr ? Object.defineProperties : function(e, t) {
	Ti(e);
	for (var n, r = Rr(t), i = Yee(t), a = i.length, o = 0; a > o;) Di.f(e, n = i[o++], r[n]);
	return e;
}, Zee = Hr("document", "documentElement"), ka = Fi("IE_PROTO"), Aa = function() {}, ja = function(e) {
	return "<script>" + e + "<\/script>";
}, Ma = function(e) {
	e.write(ja("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, Na = function() {
	try {
		va = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	Na = typeof document < "u" ? document.domain && va ? Ma(va) : ((t = xi("iframe")).style.display = "none", Zee.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(ja("document.F=Object")), e.close(), e.F) : Ma(va);
	for (var n = ta.length; n--;) delete Na.prototype[ta[n]];
	return Na();
};
Ii[ka] = !0;
var Pa, Fa, Ia = Object.create || function(e, t) {
	var n;
	return e === null ? n = Na() : (Aa.prototype = Ti(e), n = new Aa(), Aa.prototype = null, n[ka] = e), t === void 0 ? n : Xee(n, t);
}, La = j.RegExp, Ra = _r((function() {
	var e = La(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), za = j.RegExp, Ba = _r((function() {
	var e = za("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), Va = Vi.get, Ha = li("native-string-replace", String.prototype.replace), Ua = RegExp.prototype.exec, Wa = Ua, Ga = kr("".charAt), Ka = kr("".indexOf), qa = kr("".replace), Ja = kr("".slice), Ya = (Fa = /b*/g, br(Ua, Pa = /a/, "a"), br(Ua, Fa, "a"), Pa.lastIndex !== 0 || Fa.lastIndex !== 0), Xa = Jee.BROKEN_CARET, Za = /()??/.exec("")[1] !== void 0;
(Ya || Za || Xa || Ra || Ba) && (Wa = function(e) {
	var t, n, r, i, a, o, s, c = this, l = Va(c), u = Ta(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = br(Wa, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = Xa && c.sticky, m = br(Ea, c), h = c.source, g = 0, _ = u;
	if (p && (m = qa(m, "y", ""), Ka(m, "g") === -1 && (m += "g"), _ = Ja(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && Ga(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), Za && (n = RegExp("^" + h + "$(?!\\s)", m)), Ya && (r = c.lastIndex), i = br(Ua, p ? n : c, _), p ? i ? (i.input = Ja(i.input, g), i[0] = Ja(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : Ya && i && (c.lastIndex = c.global ? i.index + i[0].length : r), Za && i && i.length > 1 && br(Ha, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = Ia(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var Qa = Wa;
ga({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== Qa
}, { exec: Qa });
var Qee = vi("species"), $a = RegExp.prototype, $ee = kr("".charAt), eo = kr("".charCodeAt), ete = kr("".slice), to = function(e) {
	return function(t, n) {
		var r, i, a = Ta(Lr(t)), o = Ki(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = eo(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = eo(a, o + 1)) < 56320 || i > 57343 ? e ? $ee(a, o) : r : e ? ete(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}, no = {
	codeAt: to(!1),
	charAt: to(!0)
}, tte = no.charAt, nte = function(e, t, n) {
	return t + (n ? tte(e, t).length : 1);
}, rte = j.TypeError, ro = function(e, t) {
	var n = e.exec;
	if (zr(n)) {
		var r = br(n, e, t);
		return r !== null && Ti(r), r;
	}
	if (Mr(e) === "RegExp") return br(Qa, e, t);
	throw rte("RegExp#exec called on incompatible receiver");
};
(function(e, t, n, r) {
	var i = vi(e), a = !_r((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !_r((function() {
		var t = !1, n = /a/;
		return e === "split" && ((n = {}).constructor = {}, n.constructor[Qee] = function() {
			return n;
		}, n.flags = "", n[i] = /./[i]), n.exec = function() {
			return t = !0, null;
		}, n[i](""), !t;
	}));
	if (!a || !o || n) {
		var s = kr(/./[i]), c = t(i, ""[e], (function(e, t, n, r, i) {
			var o = kr(e), c = t.exec;
			return c === Qa || c === $a.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		Gi(String.prototype, e, c[0]), Gi($a, i, c[1]);
	}
	r && Oi($a[i], "sham", !0);
})("match", (function(e, t, n) {
	return [function(t) {
		var n = Lr(this), r = t == null ? void 0 : ii(t, e);
		return r ? br(r, t, n) : new RegExp(t)[e](Ta(n));
	}, function(e) {
		var r = Ti(this), i = Ta(e), a = n(t, r, i);
		if (a.done) return a.value;
		if (!r.global) return ro(r, i);
		var o = r.unicode;
		r.lastIndex = 0;
		for (var s, c = [], l = 0; (s = ro(r, i)) !== null;) {
			var u = Ta(s[0]);
			c[l] = u, u === "" && (r.lastIndex = nte(i, Xi(r.lastIndex), o)), l++;
		}
		return l === 0 ? null : c;
	}];
})), ga({ global: !0 }, { globalThis: j });
var ite = !_r((function() {
	function e() {}
	return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
})), io = Fi("IE_PROTO"), ao = j.Object, ate = ao.prototype, oo = ite ? ao.getPrototypeOf : function(e) {
	var t = di(e);
	if (pi(t, io)) return t[io];
	var n = t.constructor;
	return zr(n) && t instanceof n ? n.prototype : t instanceof ao ? ate : null;
}, ote = j.String, ste = j.TypeError, so = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var e, t = !1, n = {};
	try {
		(e = kr(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(n, []), t = n instanceof Array;
	} catch {}
	return function(n, r) {
		return Ti(n), function(e) {
			if (typeof e == "object" || zr(e)) return e;
			throw ste("Can't set " + ote(e) + " as a prototype");
		}(r), t ? e(n, r) : n.__proto__ = r, n;
	};
}() : void 0), cte = j.Array, lte = Math.max, ute = kr("".replace), dte = kr("".split), fte = kr([].join), co = String(Error("zxcasd").stack), lo = /\n\s*at [^:]*:[^\n]*/, pte = lo.test(co), mte = /@[^\n]*\n/.test(co) && !/zxcasd/.test(co), hte = function(e, t) {
	if (typeof e != "string") return e;
	if (pte) for (; t--;) e = ute(e, lo, "");
	else if (mte) return fte(function(e, t, n) {
		for (var r, i, a, o, s = Zi(e), c = Yi(t, s), l = Yi(n === void 0 ? s : n, s), u = cte(lte(l - c, 0)), d = 0; c < l; c++, d++) r = u, i = d, a = e[c], o = void 0, (o = yi(i)) in r ? Di.f(r, o, wr(0, a)) : r[o] = a;
		return u.length = d, u;
	}(dte(e, "\n"), t), "\n");
	return e;
}, gte = function(e, t) {
	Br(t) && "cause" in t && Oi(e, "cause", t.cause);
}, uo = kr(kr.bind), fo = function(e, t) {
	return ri(e), t === void 0 ? e : uo ? uo(e, t) : function() {
		return e.apply(t, arguments);
	};
}, po = {}, _te = vi("iterator"), vte = Array.prototype, yte = vi("iterator"), mo = function(e) {
	if (e != null) return ii(e, yte) || ii(e, "@@iterator") || po[Ca(e)];
}, bte = j.TypeError, ho = function(e, t, n) {
	var r, i;
	Ti(e);
	try {
		if (!(r = ii(e, "return"))) {
			if (t === "throw") throw n;
			return n;
		}
		r = br(r, e);
	} catch (e) {
		i = !0, r = e;
	}
	if (t === "throw") throw n;
	if (i) throw r;
	return Ti(r), n;
}, xte = j.TypeError, go = function(e, t) {
	this.stopped = e, this.result = t;
}, _o = go.prototype, Ste = function(e, t, n) {
	var r, i, a, o, s, c, l, u = n && n.that, d = !(!n || !n.AS_ENTRIES), f = !(!n || !n.IS_ITERATOR), p = !(!n || !n.INTERRUPTED), m = fo(t, u), h = function(e) {
		return r && ho(r, "normal", e), new go(!0, e);
	}, g = function(e) {
		return d ? (Ti(e), p ? m(e[0], e[1], h) : m(e[0], e[1])) : p ? m(e, h) : m(e);
	};
	if (f) r = e;
	else {
		if (!(i = mo(e))) throw xte(ti(e) + " is not iterable");
		if (function(e) {
			return e !== void 0 && (po.Array === e || vte[_te] === e);
		}(i)) {
			for (a = 0, o = Zi(e); o > a; a++) if ((s = g(e[a])) && Ur(_o, s)) return s;
			return new go(!1);
		}
		r = function(e, t) {
			var n = arguments.length < 2 ? mo(e) : t;
			if (ri(n)) return Ti(br(n, e));
			throw bte(ti(e) + " is not iterable");
		}(e, i);
	}
	for (c = r.next; !(l = br(c, r)).done;) {
		try {
			s = g(l.value);
		} catch (e) {
			ho(r, "throw", e);
		}
		if (typeof s == "object" && s && Ur(_o, s)) return s;
	}
	return new go(!1);
}, Cte = function(e, t) {
	return e === void 0 ? arguments.length < 2 ? "" : t : Ta(e);
}, wte = !_r((function() {
	var e = Error("a");
	return !("stack" in e) || (Object.defineProperty(e, "stack", wr(1, 7)), e.stack !== 7);
})), Tte = vi("toStringTag"), vo = j.Error, Ete = [].push, yo = function(e, t) {
	var n, r = arguments.length > 2 ? arguments[2] : void 0, i = Ur(bo, this);
	so ? n = so(new vo(void 0), i ? oo(this) : bo) : (n = i ? this : Ia(bo), Oi(n, Tte, "Error")), Oi(n, "message", Cte(t, "")), wte && Oi(n, "stack", hte(n.stack, 1)), gte(n, r);
	var a = [];
	return Ste(e, Ete, { that: a }), Oi(n, "errors", a), n;
};
so ? so(yo, vo) : sa(yo, vo);
var bo = yo.prototype = Ia(vo.prototype, {
	constructor: wr(1, yo),
	message: wr(1, ""),
	name: wr(1, "AggregateError")
});
ga({ global: !0 }, { AggregateError: yo });
var xo = vi("unscopables"), So = Array.prototype;
So[xo] ?? Di.f(So, xo, {
	configurable: !0,
	value: Ia(null)
});
var Co, wo, To, Eo = function(e) {
	So[xo][e] = !0;
}, Do = vi("iterator"), Oo = !1;
[].keys && ("next" in (To = [].keys()) ? (wo = oo(oo(To))) !== Object.prototype && (Co = wo) : Oo = !0), (Co == null || _r((function() {
	var e = {};
	return Co[Do].call(e) !== e;
}))) && (Co = {}), zr(Co[Do]) || Gi(Co, Do, (function() {
	return this;
}));
var ko = {
	IteratorPrototype: Co,
	BUGGY_SAFARI_ITERATORS: Oo
}, Ao = Di.f, jo = vi("toStringTag"), Mo = function(e, t, n) {
	e && !pi(e = n ? e : e.prototype, jo) && Ao(e, jo, {
		configurable: !0,
		value: t
	});
}, No = ko.IteratorPrototype, Po = function() {
	return this;
}, Fo = Wi.PROPER, Io = Wi.CONFIGURABLE, Lo = ko.IteratorPrototype, Ro = ko.BUGGY_SAFARI_ITERATORS, zo = vi("iterator"), Bo = function() {
	return this;
}, Vo = function(e, t, n, r, i, a, o) {
	(function(e, t, n, r) {
		var i = t + " Iterator";
		e.prototype = Ia(No, { next: wr(+!r, n) }), Mo(e, i, !1), po[i] = Po;
	})(n, t, r);
	var s, c, l, u = function(e) {
		if (e === i && h) return h;
		if (!Ro && e in p) return p[e];
		switch (e) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new n(this, e);
			};
		}
		return function() {
			return new n(this);
		};
	}, d = t + " Iterator", f = !1, p = e.prototype, m = p[zo] || p["@@iterator"] || i && p[i], h = !Ro && m || u(i), g = t == "Array" && p.entries || m;
	if (g && (s = oo(g.call(new e()))) !== Object.prototype && s.next && (oo(s) !== Lo && (so ? so(s, Lo) : zr(s[zo]) || Gi(s, zo, Bo)), Mo(s, d, !0)), Fo && i == "values" && m && m.name !== "values" && (Io ? Oi(p, "name", "values") : (f = !0, h = function() {
		return br(m, this);
	})), i) if (c = {
		values: u("values"),
		keys: a ? h : u("keys"),
		entries: u("entries")
	}, o) for (l in c) (Ro || f || !(l in p)) && Gi(p, l, c[l]);
	else ga({
		target: t,
		proto: !0,
		forced: Ro || f
	}, c);
	return p[zo] !== h && Gi(p, zo, h, { name: i }), po[t] = h, c;
}, Ho = Vi.set, Uo = Vi.getterFor("Array Iterator"), Wo = Vo(Array, "Array", (function(e, t) {
	Ho(this, {
		type: "Array Iterator",
		target: Rr(e),
		index: 0,
		kind: t
	});
}), (function() {
	var e = Uo(this), t = e.target, n = e.kind, r = e.index++;
	return !t || r >= t.length ? (e.target = void 0, {
		value: void 0,
		done: !0
	}) : n == "keys" ? {
		value: r,
		done: !1
	} : n == "values" ? {
		value: t[r],
		done: !1
	} : {
		value: [r, t[r]],
		done: !1
	};
}), "values");
po.Arguments = po.Array, Eo("keys"), Eo("values"), Eo("entries");
var Go = no.charAt, Ko = Vi.set, qo = Vi.getterFor("String Iterator");
Vo(String, "String", (function(e) {
	Ko(this, {
		type: "String Iterator",
		string: Ta(e),
		index: 0
	});
}), (function() {
	var e, t = qo(this), n = t.string, r = t.index;
	return r >= n.length ? {
		value: void 0,
		done: !0
	} : (e = Go(n, r), t.index += e.length, {
		value: e,
		done: !1
	});
}));
var Jo, Yo = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, Xo = xi("span").classList, Zo = Xo && Xo.constructor && Xo.constructor.prototype, Qo = Zo === Object.prototype ? void 0 : Zo, $o = vi("iterator"), es = vi("toStringTag"), ts = Wo.values, ns = function(e, t) {
	if (e) {
		if (e[$o] !== ts) try {
			Oi(e, $o, ts);
		} catch {
			e[$o] = ts;
		}
		if (e[es] || Oi(e, es, t), Yo[t]) {
			for (var n in Wo) if (e[n] !== Wo[n]) try {
				Oi(e, n, Wo[n]);
			} catch {
				e[n] = Wo[n];
			}
		}
	}
};
for (var rs in Yo) ns(j[rs] && j[rs].prototype, rs);
ns(Qo, "DOMTokenList"), typeof global > "u" ? ("ActiveXObject" in window && console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."), is(), as()) : global && (Jo = global.navigator) != null && Jo.userAgent.match("QQBrowser") && (is(), as());
function is() {
	typeof globalThis > "u" && (window.globalThis = window);
}
function as() {
	hr === void 0 && (window.AggregateError = function(e, t) {
		var n = Error(t);
		return n.errors = e, n;
	});
}
var os, ss = Array.isArray || function(e) {
	return O(e) == "Array";
}, cs = function() {}, ls = [], us = se("Reflect", "construct"), ds = /^\s*(?:class|function)\b/, fs = g(ds.exec), ps = !ds.exec(cs), ms = function(e) {
	if (!_(e)) return !1;
	try {
		return us(cs, ls, e), !0;
	} catch {
		return !1;
	}
}, hs = !us || v((function() {
	var e;
	return ms(ms.call) || !ms(Object) || !ms((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!_(e)) return !1;
	switch (gn(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return ps || !!fs(ds, Fn(e));
} : ms, gs = Ve("species"), _s = o.Array, vs = function(e, t) {
	return new (function(e) {
		var t;
		return ss(e) && (t = e.constructor, (hs(t) && (t === _s || ss(t.prototype)) || A(t) && (t = t[gs]) === null) && (t = void 0)), t === void 0 ? _s : t;
	}(e))(t === 0 ? 0 : t);
}, ys = Ve("species"), bs = Ve("isConcatSpreadable"), xs = o.TypeError, Ss = he >= 51 || !v((function() {
	var e = [];
	return e[bs] = !1, e.concat()[0] !== e;
})), Cs = (os = "concat", he >= 51 || !v((function() {
	var e = [];
	return (e.constructor = {})[ys] = function() {
		return { foo: 1 };
	}, e[os](Boolean).foo !== 1;
}))), ws = function(e) {
	if (!A(e)) return !1;
	var t = e[bs];
	return t === void 0 ? ss(e) : !!t;
};
gt({
	target: "Array",
	proto: !0,
	forced: !Ss || !Cs
}, { concat: function(e) {
	var t, n, r, i, a, o = Ae(this), s = vs(o, 0), c = 0;
	for (t = -1, r = arguments.length; t < r; t++) if (ws(a = t === -1 ? o : arguments[t])) {
		if (c + (i = At(a)) > 9007199254740991) throw xs("Maximum allowed index exceeded");
		for (n = 0; n < i; n++, c++) n in a && Jt(s, c, a[n]);
	} else {
		if (c >= 9007199254740991) throw xs("Maximum allowed index exceeded");
		Jt(s, c++, a);
	}
	return s.length = c, s;
} });
var Ts = Rt.f, Es = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], Ds = { f: function(e) {
	return Es && O(e) == "Window" ? function(e) {
		try {
			return Ts(e);
		} catch {
			return Zt(Es);
		}
	}(e) : Ts(ie(e));
} }, Os = g([].slice), ks = { f: Ve }, As = ft.f, js = function(e) {
	var t = ae.Symbol ||= {};
	Me(t, e) || As(t, e, { value: ks.f(e) });
}, Ms = g([].push), Ns = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = Ae(c), h = ne(m), g = ot(l, u), _ = At(h), v = 0, y = d || vs, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: Ms(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: Ms(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, Ps = {
	forEach: Ns(0),
	map: Ns(1),
	filter: Ns(2),
	some: Ns(3),
	every: Ns(4),
	find: Ns(5),
	findIndex: Ns(6),
	filterReject: Ns(7)
}.forEach, Fs = vt("hidden"), Is = Ve("toPrimitive"), Ls = Wn.set, Rs = Wn.getterFor("Symbol"), zs = Object.prototype, Bs = o.Symbol, Vs = Bs && Bs.prototype, Hs = o.TypeError, Us = o.QObject, Ws = se("JSON", "stringify"), Gs = Ze.f, Ks = ft.f, qs = Ds.f, Js = w.f, Ys = g([].push), Xs = Oe("symbols"), Zs = Oe("op-symbols"), Qs = Oe("string-to-symbol-registry"), $s = Oe("symbol-to-string-registry"), ec = Oe("wks"), tc = !Us || !Us.prototype || !Us.prototype.findChild, nc = y && v((function() {
	return qt(Ks({}, "a", { get: function() {
		return Ks(this, "a", { value: 7 }).a;
	} })).a != 7;
})) ? function(e, t, n) {
	var r = Gs(zs, t);
	r && delete zs[t], Ks(e, t, n), r && e !== zs && Ks(zs, t, r);
} : Ks, rc = function(e, t) {
	var n = Xs[e] = qt(Vs);
	return Ls(n, {
		type: "Symbol",
		tag: e,
		description: t
	}), y || (n.description = t), n;
}, ic = function(e, t, n) {
	e === zs && ic(Zs, t, n), lt(e);
	var r = Ge(t);
	return lt(n), Me(Xs, r) ? (n.enumerable ? (Me(e, Fs) && e[Fs][r] && (e[Fs][r] = !1), n = qt(n, { enumerable: T(0, !1) })) : (Me(e, Fs) || Ks(e, Fs, T(1, {})), e[Fs][r] = !0), nc(e, r, n)) : Ks(e, r, n);
}, ac = function(e, t) {
	lt(e);
	var n = ie(t);
	return Ps(Bt(n).concat(lc(n)), (function(t) {
		y && !x(oc, n, t) || ic(e, t, n[t]);
	})), e;
}, oc = function(e) {
	var t = Ge(e), n = x(Js, this, t);
	return !(this === zs && Me(Xs, t) && !Me(Zs, t)) && (!(n || !Me(this, t) || !Me(Xs, t) || Me(this, Fs) && this[Fs][t]) || n);
}, sc = function(e, t) {
	var n = ie(e), r = Ge(t);
	if (n !== zs || !Me(Xs, r) || Me(Zs, r)) {
		var i = Gs(n, r);
		return !i || !Me(Xs, r) || Me(n, Fs) && n[Fs][r] || (i.enumerable = !0), i;
	}
}, cc = function(e) {
	var t = qs(ie(e)), n = [];
	return Ps(t, (function(e) {
		Me(Xs, e) || Me(Nt, e) || Ys(n, e);
	})), n;
}, lc = function(e) {
	var t = e === zs, n = qs(t ? Zs : ie(e)), r = [];
	return Ps(n, (function(e) {
		!Me(Xs, e) || t && !Me(zs, e) || Ys(r, Xs[e]);
	})), r;
};
if (ge || (Vs = (Bs = function() {
	if (ce(Vs, this)) throw Hs("Symbol is not a constructor");
	var e = arguments.length && arguments[0] !== void 0 ? En(arguments[0]) : void 0, t = Ie(e), n = function(e) {
		this === zs && x(n, Zs, e), Me(this, Fs) && Me(this[Fs], t) && (this[Fs][t] = !1), nc(this, t, T(1, e));
	};
	return y && tc && nc(zs, t, {
		configurable: !0,
		set: n
	}), rc(t, e);
}).prototype, Jn(Vs, "toString", (function() {
	return Rs(this).tag;
})), Jn(Bs, "withoutSetter", (function(e) {
	return rc(Ie(e), e);
})), w.f = oc, ft.f = ic, Ze.f = sc, Rt.f = Ds.f = cc, zt.f = lc, ks.f = function(e) {
	return rc(Ve(e), e);
}, y && Ks(Vs, "description", {
	configurable: !0,
	get: function() {
		return Rs(this).description;
	}
})), gt({
	global: !0,
	wrap: !0,
	forced: !ge,
	sham: !ge
}, { Symbol: Bs }), Ps(Bt(ec), (function(e) {
	js(e);
})), gt({
	target: "Symbol",
	stat: !0,
	forced: !ge
}, {
	for: function(e) {
		var t = En(e);
		if (Me(Qs, t)) return Qs[t];
		var n = Bs(t);
		return Qs[t] = n, $s[n] = t, n;
	},
	keyFor: function(e) {
		if (!ye(e)) throw Hs(e + " is not a symbol");
		if (Me($s, e)) return $s[e];
	},
	useSetter: function() {
		tc = !0;
	},
	useSimple: function() {
		tc = !1;
	}
}), gt({
	target: "Object",
	stat: !0,
	forced: !ge,
	sham: !y
}, {
	create: function(e, t) {
		return t === void 0 ? qt(e) : ac(qt(e), t);
	},
	defineProperty: ic,
	defineProperties: ac,
	getOwnPropertyDescriptor: sc
}), gt({
	target: "Object",
	stat: !0,
	forced: !ge
}, {
	getOwnPropertyNames: cc,
	getOwnPropertySymbols: lc
}), gt({
	target: "Object",
	stat: !0,
	forced: v((function() {
		zt.f(1);
	}))
}, { getOwnPropertySymbols: function(e) {
	return zt.f(Ae(e));
} }), Ws && gt({
	target: "JSON",
	stat: !0,
	forced: !ge || v((function() {
		var e = Bs();
		return Ws([e]) != "[null]" || Ws({ a: e }) != "{}" || Ws(Object(e)) != "{}";
	}))
}, { stringify: function(e, t, n) {
	var r = Os(arguments), i = t;
	if ((A(t) || e !== void 0) && !ye(e)) return ss(t) || (t = function(e, t) {
		if (_(i) && (t = x(i, this, e, t)), !ye(t)) return t;
	}), r[1] = t, d(Ws, null, r);
} }), !Vs[Is]) {
	var uc = Vs.valueOf;
	Jn(Vs, Is, (function(e) {
		return x(uc, this);
	}));
}
tr(Bs, "Symbol"), Nt[Fs] = !0, js("asyncIterator"), js("hasInstance"), js("isConcatSpreadable"), js("iterator"), js("match"), js("matchAll"), js("replace"), js("search"), js("species"), js("split"), js("toPrimitive"), js("toStringTag"), js("unscopables"), tr(o.JSON, "JSON", !0);
var dc = ae.Symbol;
js("asyncDispose"), js("dispose"), js("matcher"), js("metadata"), js("observable"), js("patternMatch"), js("replaceAll");
var fc = dc, pc = ks.f("iterator"), mc = t(n((function(e) {
	function t(n) {
		return typeof fc == "function" && typeof pc == "symbol" ? (e.exports = t = function(e) {
			return typeof e;
		}, e.exports.default = e.exports, e.exports.__esModule = !0) : (e.exports = t = function(e) {
			return e && typeof fc == "function" && e.constructor === fc && e !== fc.prototype ? "symbol" : typeof e;
		}, e.exports.default = e.exports, e.exports.__esModule = !0), t(n);
	}
	e.exports = t, e.exports.default = e.exports, e.exports.__esModule = !0;
}))), hc = wi.f, gc = _r((function() {
	hc(1);
}));
if (ga({
	target: "Object",
	stat: !0,
	forced: !vr || gc,
	sham: !vr
}, { getOwnPropertyDescriptor: function(e, t) {
	return hc(Rr(e), t);
} }), (typeof global > "u" ? "undefined" : mc(global)) === "object") {
	var _c = Object.getOwnPropertyDescriptor(global, "window");
	global.window && !_c.set || (global.window = global, global.requestAnimationFrame = function() {}, global.navigator = { userAgent: "" }, global.location = {
		hostname: "0.0.0.0",
		port: 0,
		protocol: "http:"
	}, global.btoa = function() {}, global.crypto = { getRandomValues: function(e) {
		return nodeCrypto.randomFillSync(e);
	} }), global.document != null && global.document.getElementsByTagName == null && (global.document.getElementsByTagName = function() {
		return [];
	});
}
function vc(e) {
	return Object.prototype.toString.call(e) === "[object Object]";
}
function yc(e) {
	var t, n;
	return !1 !== vc(e) && ((t = e.constructor) === void 0 || !1 !== vc(n = t.prototype) && !1 !== n.hasOwnProperty("isPrototypeOf"));
}
function bc(e) {
	var t = [...arguments].slice(1);
	throw Error("[Immer] minified error nr: " + e + (t.length ? " " + t.map((function(e) {
		return "'" + e + "'";
	})).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf");
}
function xc(e) {
	return !!e && !!e[rl];
}
function Sc(e) {
	return !!e && (function(e) {
		if (!e || typeof e != "object") return !1;
		var t = Object.getPrototypeOf(e);
		if (t === null) return !0;
		var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
		return n === Object || typeof n == "function" && Function.toString.call(n) === Ate;
	}(e) || Array.isArray(e) || !!e[nl] || !!e.constructor[nl] || Dc(e) || Oc(e));
}
function Cc(e, t, n) {
	n === void 0 && (n = !1), wc(e) === 0 ? (n ? Object.keys : il)(e).forEach((function(r) {
		n && typeof r == "symbol" || t(r, e[r], e);
	})) : e.forEach((function(n, r) {
		return t(r, n, e);
	}));
}
function wc(e) {
	var t = e[rl];
	return t ? t.i > 3 ? t.i - 4 : t.i : Array.isArray(e) ? 1 : Dc(e) ? 2 : Oc(e) ? 3 : 0;
}
function Tc(e, t) {
	return wc(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
function Ec(e, t, n) {
	var r = wc(e);
	r === 2 ? e.set(t, n) : r === 3 ? (e.delete(t), e.add(n)) : e[t] = n;
}
function Dc(e) {
	return Ote && e instanceof Map;
}
function Oc(e) {
	return kte && e instanceof Set;
}
function kc(e) {
	return e.o || e.t;
}
function Ac(e) {
	if (Array.isArray(e)) return Array.prototype.slice.call(e);
	var t = jte(e);
	delete t[rl];
	for (var n = il(t), r = 0; r < n.length; r++) {
		var i = n[r], a = t[i];
		!1 === a.writable && (a.writable = !0, a.configurable = !0), (a.get || a.set) && (t[i] = {
			configurable: !0,
			writable: !0,
			enumerable: a.enumerable,
			value: e[i]
		});
	}
	return Object.create(Object.getPrototypeOf(e), t);
}
function jc(e, t) {
	return t === void 0 && (t = !1), Nc(e) || xc(e) || !Sc(e) || (wc(e) > 1 && (e.set = e.add = e.clear = e.delete = Mc), Object.freeze(e), t && Cc(e, (function(e, t) {
		return jc(t, !0);
	}), !0)), e;
}
function Mc() {
	bc(2);
}
function Nc(e) {
	return typeof e != "object" || !e || Object.isFrozen(e);
}
function Pc(e) {
	var t = Mte[e];
	return t || bc(18, e), t;
}
function Fc() {
	return Qc;
}
function Ic(e, t) {
	t && (Pc("Patches"), e.u = [], e.s = [], e.v = t);
}
function Lc(e) {
	Rc(e), e.p.forEach(Bc), e.p = null;
}
function Rc(e) {
	e === Qc && (Qc = e.l);
}
function zc(e) {
	return Qc = {
		p: [],
		l: Qc,
		h: e,
		m: !0,
		_: 0
	};
}
function Bc(e) {
	var t = e[rl];
	t.i === 0 || t.i === 1 ? t.j() : t.O = !0;
}
function Vc(e, t) {
	t._ = t.p.length;
	var n = t.p[0], r = e !== void 0 && e !== n;
	return t.h.g || Pc("ES5").S(t, e, r), r ? (n[rl].P && (Lc(t), bc(4)), Sc(e) && (e = Hc(t, e), t.l || Wc(t, e)), t.u && Pc("Patches").M(n[rl], e, t.u, t.s)) : e = Hc(t, n, []), Lc(t), t.u && t.v(t.u, t.s), e === tl ? void 0 : e;
}
function Hc(e, t, n) {
	if (Nc(t)) return t;
	var r = t[rl];
	if (!r) return Cc(t, (function(i, a) {
		return Uc(e, r, t, i, a, n);
	}), !0), t;
	if (r.A !== e) return t;
	if (!r.P) return Wc(e, r.t, !0), r.t;
	if (!r.I) {
		r.I = !0, r.A._--;
		var i = r.i === 4 || r.i === 5 ? r.o = Ac(r.k) : r.o;
		Cc(r.i === 3 ? new Set(i) : i, (function(t, a) {
			return Uc(e, r, i, t, a, n);
		})), Wc(e, i, !1), n && e.u && Pc("Patches").R(r, n, e.u, e.s);
	}
	return r.o;
}
function Uc(e, t, n, r, i, a) {
	if (xc(i)) {
		var o = Hc(e, i, a && t && t.i !== 3 && !Tc(t.D, r) ? a.concat(r) : void 0);
		if (Ec(n, r, o), !xc(o)) return;
		e.m = !1;
	}
	if (Sc(i) && !Nc(i)) {
		if (!e.h.F && e._ < 1) return;
		Hc(e, i), t && t.A.l || Wc(e, i);
	}
}
function Wc(e, t, n) {
	n === void 0 && (n = !1), e.h.F && e.m && jc(t, n);
}
function Gc(e, t) {
	var n = e[rl];
	return (n ? kc(n) : e)[t];
}
function Kc(e, t) {
	if (t in e) for (var n = Object.getPrototypeOf(e); n;) {
		var r = Object.getOwnPropertyDescriptor(n, t);
		if (r) return r;
		n = Object.getPrototypeOf(n);
	}
}
function qc(e) {
	e.P || (e.P = !0, e.l && qc(e.l));
}
function Jc(e) {
	e.o ||= Ac(e.t);
}
function Yc(e, t, n) {
	var r = Dc(t) ? Pc("MapSet").N(t, n) : Oc(t) ? Pc("MapSet").T(t, n) : e.g ? function(e, t) {
		var n = Array.isArray(e), r = {
			i: +!!n,
			A: t ? t.A : Fc(),
			P: !1,
			I: !1,
			D: {},
			l: t,
			t: e,
			k: null,
			o: null,
			j: null,
			C: !1
		}, i = r, a = al;
		n && (i = [r], a = ol);
		var o = Proxy.revocable(i, a), s = o.revoke, c = o.proxy;
		return r.k = c, r.j = s, c;
	}(t, n) : Pc("ES5").J(t, n);
	return (n ? n.A : Fc()).p.push(r), r;
}
function Dte(e) {
	return xc(e) || bc(22, e), function e(t) {
		if (!Sc(t)) return t;
		var n, r = t[rl], i = wc(t);
		if (r) {
			if (!r.P && (r.i < 4 || !Pc("ES5").K(r))) return r.t;
			r.I = !0, n = Xc(t, i), r.I = !1;
		} else n = Xc(t, i);
		return Cc(n, (function(t, i) {
			r && function(e, t) {
				return wc(e) === 2 ? e.get(t) : e[t];
			}(r.t, t) === i || Ec(n, t, e(i));
		})), i === 3 ? new Set(n) : n;
	}(e);
}
function Xc(e, t) {
	switch (t) {
		case 2: return new Map(e);
		case 3: return Array.from(e);
	}
	return Ac(e);
}
var Zc, Qc, $c = typeof Symbol < "u" && typeof Symbol("x") == "symbol", Ote = typeof Map < "u", kte = typeof Set < "u", el = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", tl = $c ? Symbol.for("immer-nothing") : ((Zc = {})["immer-nothing"] = !0, Zc), nl = $c ? Symbol.for("immer-draftable") : "__$immer_draftable", rl = $c ? Symbol.for("immer-state") : "__$immer_state", Ate = "" + Object.prototype.constructor, il = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols === void 0 ? Object.getOwnPropertyNames : function(e) {
	return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
}, jte = Object.getOwnPropertyDescriptors || function(e) {
	var t = {};
	return il(e).forEach((function(n) {
		t[n] = Object.getOwnPropertyDescriptor(e, n);
	})), t;
}, Mte = {}, al = {
	get: function(e, t) {
		if (t === rl) return e;
		var n = kc(e);
		if (!Tc(n, t)) return function(e, t, n) {
			var r = Kc(t, n);
			return r ? "value" in r ? r.value : r.get?.call(e.k) : void 0;
		}(e, n, t);
		var r = n[t];
		return e.I || !Sc(r) ? r : r === Gc(e.t, t) ? (Jc(e), e.o[t] = Yc(e.A.h, r, e)) : r;
	},
	has: function(e, t) {
		return t in kc(e);
	},
	ownKeys: function(e) {
		return Reflect.ownKeys(kc(e));
	},
	set: function(e, t, n) {
		var r = Kc(kc(e), t);
		if (r?.set) return r.set.call(e.k, n), !0;
		if (!e.P) {
			var i = Gc(kc(e), t), a = i?.[rl];
			if (a && a.t === n) return e.o[t] = n, e.D[t] = !1, !0;
			if (function(e, t) {
				return e === t ? e !== 0 || 1 / e == 1 / t : e != e && t != t;
			}(n, i) && (n !== void 0 || Tc(e.t, t))) return !0;
			Jc(e), qc(e);
		}
		return e.o[t] === n && typeof n != "number" && (n !== void 0 || t in e.o) || (e.o[t] = n, e.D[t] = !0, !0);
	},
	deleteProperty: function(e, t) {
		return Gc(e.t, t) !== void 0 || t in e.t ? (e.D[t] = !1, Jc(e), qc(e)) : delete e.D[t], e.o && delete e.o[t], !0;
	},
	getOwnPropertyDescriptor: function(e, t) {
		var n = kc(e), r = Reflect.getOwnPropertyDescriptor(n, t);
		return r && {
			writable: !0,
			configurable: e.i !== 1 || t !== "length",
			enumerable: r.enumerable,
			value: n[t]
		};
	},
	defineProperty: function() {
		bc(11);
	},
	getPrototypeOf: function(e) {
		return Object.getPrototypeOf(e.t);
	},
	setPrototypeOf: function() {
		bc(12);
	}
}, ol = {};
Cc(al, (function(e, t) {
	ol[e] = function() {
		return arguments[0] = arguments[0][0], t.apply(this, arguments);
	};
})), ol.deleteProperty = function(e, t) {
	return al.deleteProperty.call(this, e[0], t);
}, ol.set = function(e, t, n) {
	return al.set.call(this, e[0], t, n, e[0]);
};
var sl = new (function() {
	function e(e) {
		var t = this;
		this.g = el, this.F = !0, this.produce = function(e, n, r) {
			if (typeof e == "function" && typeof n != "function") {
				var i = n;
				n = e;
				var a = t;
				return function(e) {
					var t = this;
					e === void 0 && (e = i);
					var r = [...arguments].slice(1);
					return a.produce(e, (function(e) {
						var i;
						return (i = n).call.apply(i, [t, e].concat(r));
					}));
				};
			}
			var o;
			if (typeof n != "function" && bc(6), r !== void 0 && typeof r != "function" && bc(7), Sc(e)) {
				var s = zc(t), c = Yc(t, e, void 0), l = !0;
				try {
					o = n(c), l = !1;
				} finally {
					l ? Lc(s) : Rc(s);
				}
				return typeof Promise < "u" && o instanceof Promise ? o.then((function(e) {
					return Ic(s, r), Vc(e, s);
				}), (function(e) {
					throw Lc(s), e;
				})) : (Ic(s, r), Vc(o, s));
			}
			if (!e || typeof e != "object") return (o = n(e)) === tl ? void 0 : (o === void 0 && (o = e), t.F && jc(o, !0), o);
			bc(21, e);
		}, this.produceWithPatches = function(e, n) {
			return typeof e == "function" ? function(n) {
				var r = [...arguments].slice(1);
				return t.produceWithPatches(n, (function(t) {
					return e.apply(void 0, [t].concat(r));
				}));
			} : [
				t.produce(e, n, (function(e, t) {
					r = e, i = t;
				})),
				r,
				i
			];
			var r, i;
		}, typeof e?.useProxies == "boolean" && this.setUseProxies(e.useProxies), typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze);
	}
	var t = e.prototype;
	return t.createDraft = function(e) {
		Sc(e) || bc(8), xc(e) && (e = Dte(e));
		var t = zc(this), n = Yc(this, e, void 0);
		return n[rl].C = !0, Rc(t), n;
	}, t.finishDraft = function(e, t) {
		var n = (e && e[rl]).A;
		return Ic(n, t), Vc(void 0, n);
	}, t.setAutoFreeze = function(e) {
		this.F = e;
	}, t.setUseProxies = function(e) {
		e && !el && bc(20), this.g = e;
	}, t.applyPatches = function(e, t) {
		var n;
		for (n = t.length - 1; n >= 0; n--) {
			var r = t[n];
			if (r.path.length === 0 && r.op === "replace") {
				e = r.value;
				break;
			}
		}
		n > -1 && (t = t.slice(n + 1));
		var i = Pc("Patches").$;
		return xc(e) ? i(e, t) : this.produce(e, (function(e) {
			return i(e, t);
		}));
	}, e;
}())(), cl = sl.produce;
sl.produceWithPatches.bind(sl), sl.setAutoFreeze.bind(sl), sl.setUseProxies.bind(sl), sl.applyPatches.bind(sl);
var ll = sl.createDraft.bind(sl), ul = sl.finishDraft.bind(sl);
function dl(e, t, n) {
	return t in e ? Object.defineProperty(e, t, {
		value: n,
		enumerable: !0,
		configurable: !0,
		writable: !0
	}) : e[t] = n, e;
}
var fl = /* @__PURE__ */ new WeakMap(), pl = /* @__PURE__ */ new WeakMap(), ml = /* @__PURE__ */ new WeakMap(), hl = /* @__PURE__ */ new WeakMap(), gl = /* @__PURE__ */ new WeakMap(), _l = /* @__PURE__ */ new WeakMap();
function vl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function yl(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? vl(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vl(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var Nte = () => {
	var e = {
		children: [],
		operations: [],
		selection: null,
		marks: null,
		isInline: () => !1,
		isVoid: () => !1,
		onChange: () => {},
		apply: (t) => {
			for (var n of P.pathRefs(e)) lne.transform(n, t);
			for (var r of P.pointRefs(e)) une.transform(r, t);
			for (var i of P.rangeRefs(e)) fne.transform(i, t);
			var a = /* @__PURE__ */ new Set(), o = [], s = (e) => {
				if (e) {
					var t = e.join(",");
					a.has(t) || (a.add(t), o.push(e));
				}
			}, c = fl.get(e) || [], l = Pte(t);
			for (var u of c) s(I.transform(u, t));
			for (var d of l) s(d);
			fl.set(e, o), B.transform(e, t), e.operations.push(t), P.normalize(e), t.type === "set_selection" && (e.marks = null), pl.get(e) || (pl.set(e, !0), Promise.resolve().then((() => {
				pl.set(e, !1), e.onChange(), e.operations = [];
			})));
		},
		addMark: (t, n) => {
			var { selection: r } = e;
			r && (R.isExpanded(r) ? B.setNodes(e, { [t]: n }, {
				match: z.isText,
				split: !0
			}) : (e.marks = yl(yl({}, P.marks(e) || {}), {}, { [t]: n }), pl.get(e) || e.onChange()));
		},
		deleteBackward: (t) => {
			var { selection: n } = e;
			n && R.isCollapsed(n) && B.delete(e, {
				unit: t,
				reverse: !0
			});
		},
		deleteForward: (t) => {
			var { selection: n } = e;
			n && R.isCollapsed(n) && B.delete(e, { unit: t });
		},
		deleteFragment: (t) => {
			var { selection: n } = e;
			n && R.isExpanded(n) && B.delete(e, { reverse: t === "backward" });
		},
		getFragment: () => {
			var { selection: t } = e;
			return t ? F.fragment(e, t) : [];
		},
		insertBreak: () => {
			B.splitNodes(e, { always: !0 });
		},
		insertFragment: (t) => {
			B.insertFragment(e, t);
		},
		insertNode: (t) => {
			B.insertNodes(e, t);
		},
		insertText: (t) => {
			var { selection: n, marks: r } = e;
			if (n) {
				if (r) {
					var i = yl({ text: t }, r);
					B.insertNodes(e, i);
				} else B.insertText(e, t);
				e.marks = null;
			}
		},
		normalizeNode: (t) => {
			var [n, r] = t;
			if (!z.isText(n)) if (N.isElement(n) && n.children.length === 0) B.insertNodes(e, { text: "" }, {
				at: r.concat(0),
				voids: !0
			});
			else for (var i = !P.isEditor(n) && N.isElement(n) && (e.isInline(n) || n.children.length === 0 || z.isText(n.children[0]) || e.isInline(n.children[0])), a = 0, o = 0; o < n.children.length; o++, a++) {
				var s = F.get(e, r);
				if (!z.isText(s)) {
					var c = n.children[o], l = s.children[a - 1], u = o === n.children.length - 1;
					(z.isText(c) || N.isElement(c) && e.isInline(c)) === i ? N.isElement(c) ? e.isInline(c) && (l != null && z.isText(l) ? u && (B.insertNodes(e, { text: "" }, {
						at: r.concat(a + 1),
						voids: !0
					}), a++) : (B.insertNodes(e, { text: "" }, {
						at: r.concat(a),
						voids: !0
					}), a++)) : l != null && z.isText(l) && (z.equals(c, l, { loose: !0 }) ? (B.mergeNodes(e, {
						at: r.concat(a),
						voids: !0
					}), a--) : l.text === "" ? (B.removeNodes(e, {
						at: r.concat(a - 1),
						voids: !0
					}), a--) : c.text === "" && (B.removeNodes(e, {
						at: r.concat(a),
						voids: !0
					}), a--)) : (B.removeNodes(e, {
						at: r.concat(a),
						voids: !0
					}), a--);
				}
			}
		},
		removeMark: (t) => {
			var { selection: n } = e;
			if (n) if (R.isExpanded(n)) B.unsetNodes(e, t, {
				match: z.isText,
				split: !0
			});
			else {
				var r = yl({}, P.marks(e) || {});
				delete r[t], e.marks = r, pl.get(e) || e.onChange();
			}
		}
	};
	return e;
}, Pte = (e) => {
	switch (e.type) {
		case "insert_text":
		case "remove_text":
		case "set_node":
			var { path: t } = e;
			return I.levels(t);
		case "insert_node":
			var { node: n, path: r } = e, i = I.levels(r), a = z.isText(n) ? [] : Array.from(F.nodes(n), ((e) => {
				var [, t] = e;
				return r.concat(t);
			}));
			return [...i, ...a];
		case "merge_node":
			var { path: o } = e;
			return [...I.ancestors(o), I.previous(o)];
		case "move_node":
			var { path: s, newPath: c } = e;
			if (I.equals(s, c)) return [];
			var l = [], u = [];
			for (var d of I.ancestors(s)) {
				var f = I.transform(d, e);
				l.push(f);
			}
			for (var p of I.ancestors(c)) {
				var m = I.transform(p, e);
				u.push(m);
			}
			var h = u[u.length - 1], g = c[c.length - 1], _ = h.concat(g);
			return [
				...l,
				...u,
				_
			];
		case "remove_node":
			var { path: v } = e;
			return [...I.ancestors(v)];
		case "split_node":
			var { path: y } = e;
			return [...I.levels(y), I.next(y)];
		default: return [];
	}
};
function bl(e, t) {
	if (e == null) return {};
	var n, r, i = function(e, t) {
		if (e == null) return {};
		var n, r, i = {}, a = Object.keys(e);
		for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]);
		return i;
	}(e, t);
	if (Object.getOwnPropertySymbols) {
		var a = Object.getOwnPropertySymbols(e);
		for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
	}
	return i;
}
var M, xl = function(e) {
	var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = !t, r = t ? zte(e) : e, i = M.None, a = M.None, o = 0, s = null;
	for (var c of r) {
		var l = c.codePointAt(0);
		if (!l) break;
		var u = Zte(c, l);
		if ([i, a] = n ? [a, u] : [u, i], Cl(i, M.ZWJ) && Cl(a, M.ExtPict) && !tne(n ? e.substring(0, o) : e.substring(0, e.length - o)) || Cl(i, M.RI) && Cl(a, M.RI) && !(s = s === null ? !!n || rne(e.substring(0, e.length - o)) : !s) || i !== M.None && a !== M.None && $te(i, a)) break;
		o += c.length;
	}
	return o || 1;
}, Fte = /\s/, Ite = /[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Lte = /['\u2018\u2019]/, Sl = (e, t, n) => {
	if (n) {
		var r = e.length - t;
		return [e.slice(r, e.length), e.slice(0, r)];
	}
	return [e.slice(0, t), e.slice(t)];
}, Rte = function e(t, n) {
	var r = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
	if (Fte.test(t)) return !1;
	if (Lte.test(t)) {
		var [i, a] = Sl(n, xl(n, r), r);
		if (e(i, a, r)) return !0;
	}
	return !Ite.test(t);
}, zte = function* (e) {
	for (var t = e.length - 1, n = 0; n < e.length; n++) {
		var r = e.charAt(t - n);
		if (Vte(r.charCodeAt(0))) {
			var i = e.charAt(t - n - 1);
			if (Bte(i.charCodeAt(0))) {
				yield i + r, n++;
				continue;
			}
		}
		yield r;
	}
}, Bte = (e) => e >= 55296 && e <= 56319, Vte = (e) => e >= 56320 && e <= 57343;
(function(e) {
	e[e.None = 0] = "None", e[e.Extend = 1] = "Extend", e[e.ZWJ = 2] = "ZWJ", e[e.RI = 4] = "RI", e[e.Prepend = 8] = "Prepend", e[e.SpacingMark = 16] = "SpacingMark", e[e.L = 32] = "L", e[e.V = 64] = "V", e[e.T = 128] = "T", e[e.LV = 256] = "LV", e[e.LVT = 512] = "LVT", e[e.ExtPict = 1024] = "ExtPict", e[e.Any = 2048] = "Any";
})(M ||= {});
var Hte = /^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/, Ute = /^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/, Wte = /^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/, Gte = /^[\u1100-\u115F\uA960-\uA97C]$/, Kte = /^[\u1160-\u11A7\uD7B0-\uD7C6]$/, qte = /^[\u11A8-\u11FF\uD7CB-\uD7FB]$/, Jte = /^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/, Yte = /^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/, Xte = /^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/, Zte = (e, t) => {
	var n = M.Any;
	return e.search(Hte) !== -1 && (n |= M.Extend), t === 8205 && (n |= M.ZWJ), t >= 127462 && t <= 127487 && (n |= M.RI), e.search(Ute) !== -1 && (n |= M.Prepend), e.search(Wte) !== -1 && (n |= M.SpacingMark), e.search(Gte) !== -1 && (n |= M.L), e.search(Kte) !== -1 && (n |= M.V), e.search(qte) !== -1 && (n |= M.T), e.search(Jte) !== -1 && (n |= M.LV), e.search(Yte) !== -1 && (n |= M.LVT), e.search(Xte) !== -1 && (n |= M.ExtPict), n;
};
function Cl(e, t) {
	return (e & t) != 0;
}
var Qte = [
	[M.L, M.L | M.V | M.LV | M.LVT],
	[M.LV | M.V, M.V | M.T],
	[M.LVT | M.T, M.T],
	[M.Any, M.Extend | M.ZWJ],
	[M.Any, M.SpacingMark],
	[M.Prepend, M.Any],
	[M.ZWJ, M.ExtPict],
	[M.RI, M.RI]
];
function $te(e, t) {
	return Qte.findIndex(((n) => Cl(e, n[0]) && Cl(t, n[1]))) === -1;
}
var ene = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/, tne = (e) => e.search(ene) !== -1, nne = /(?:\uD83C[\uDDE6-\uDDFF])+$/g, rne = (e) => {
	var t = e.match(nne);
	return t !== null && t[0].length / 2 % 2 == 1;
}, wl = (e) => yc(e) && F.isNodeList(e.children) && !P.isEditor(e), N = {
	isAncestor: (e) => yc(e) && F.isNodeList(e.children),
	isElement: wl,
	isElementList: (e) => Array.isArray(e) && e.every(((e) => N.isElement(e))),
	isElementProps: (e) => e.children !== void 0,
	isElementType: function(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "type";
		return wl(e) && e[n] === t;
	},
	matches(e, t) {
		for (var n in t) if (n !== "children" && e[n] !== t[n]) return !1;
		return !0;
	}
}, ine = ["text"], ane = ["text"];
function Tl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function El(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? Tl(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tl(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var Dl = /* @__PURE__ */ new WeakMap(), P = {
	above(e) {
		var { voids: t = !1, mode: n = "lowest", at: r = e.selection, match: i } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		if (r) {
			var a = P.path(e, r), o = n === "lowest";
			for (var [s, c] of P.levels(e, {
				at: a,
				voids: t,
				match: i,
				reverse: o
			})) if (!z.isText(s) && !I.equals(a, c)) return [s, c];
		}
	},
	addMark(e, t, n) {
		e.addMark(t, n);
	},
	after(e, t) {
		var n, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = {
			anchor: P.point(e, t, { edge: "end" }),
			focus: P.end(e, [])
		}, { distance: a = 1 } = r, o = 0;
		for (var s of P.positions(e, El(El({}, r), {}, { at: i }))) {
			if (o > a) break;
			o !== 0 && (n = s), o++;
		}
		return n;
	},
	before(e, t) {
		var n, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = {
			anchor: P.start(e, []),
			focus: P.point(e, t, { edge: "start" })
		}, { distance: a = 1 } = r, o = 0;
		for (var s of P.positions(e, El(El({}, r), {}, {
			at: i,
			reverse: !0
		}))) {
			if (o > a) break;
			o !== 0 && (n = s), o++;
		}
		return n;
	},
	deleteBackward(e) {
		var { unit: t = "character" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		e.deleteBackward(t);
	},
	deleteForward(e) {
		var { unit: t = "character" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		e.deleteForward(t);
	},
	deleteFragment(e) {
		var { direction: t = "forward" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		e.deleteFragment(t);
	},
	edges: (e, t) => [P.start(e, t), P.end(e, t)],
	end: (e, t) => P.point(e, t, { edge: "end" }),
	first(e, t) {
		var n = P.path(e, t, { edge: "start" });
		return P.node(e, n);
	},
	fragment(e, t) {
		var n = P.range(e, t);
		return F.fragment(e, n);
	},
	hasBlocks: (e, t) => t.children.some(((t) => P.isBlock(e, t))),
	hasInlines: (e, t) => t.children.some(((t) => z.isText(t) || P.isInline(e, t))),
	hasTexts: (e, t) => t.children.every(((e) => z.isText(e))),
	insertBreak(e) {
		e.insertBreak();
	},
	insertFragment(e, t) {
		e.insertFragment(t);
	},
	insertNode(e, t) {
		e.insertNode(t);
	},
	insertText(e, t) {
		e.insertText(t);
	},
	isBlock: (e, t) => N.isElement(t) && !e.isInline(t),
	isEditor(e) {
		if (!yc(e)) return !1;
		var t = Dl.get(e);
		if (t !== void 0) return t;
		var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteBackward == "function" && typeof e.deleteForward == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isInline == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && (e.marks === null || yc(e.marks)) && (e.selection === null || R.isRange(e.selection)) && F.isNodeList(e.children) && jl.isOperationList(e.operations);
		return Dl.set(e, n), n;
	},
	isEnd(e, t, n) {
		var r = P.end(e, n);
		return L.equals(t, r);
	},
	isEdge: (e, t, n) => P.isStart(e, t, n) || P.isEnd(e, t, n),
	isEmpty(e, t) {
		var { children: n } = t, [r] = n;
		return n.length === 0 || n.length === 1 && z.isText(r) && r.text === "" && !e.isVoid(t);
	},
	isInline: (e, t) => N.isElement(t) && e.isInline(t),
	isNormalizing(e) {
		var t = ml.get(e);
		return t === void 0 || t;
	},
	isStart(e, t, n) {
		if (t.offset !== 0) return !1;
		var r = P.start(e, n);
		return L.equals(t, r);
	},
	isVoid: (e, t) => N.isElement(t) && e.isVoid(t),
	last(e, t) {
		var n = P.path(e, t, { edge: "end" });
		return P.node(e, n);
	},
	leaf(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = P.path(e, t, n);
		return [F.leaf(e, r), r];
	},
	*levels(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { at: n = e.selection, reverse: r = !1, voids: i = !1 } = t, { match: a } = t;
		if (a ??= () => !0, n) {
			var o = [], s = P.path(e, n);
			for (var [c, l] of F.levels(e, s)) if (a(c, l) && (o.push([c, l]), !i && P.isVoid(e, c))) break;
			r && o.reverse(), yield* o;
		}
	},
	marks(e) {
		var { marks: t, selection: n } = e;
		if (!n) return null;
		if (t) return t;
		if (R.isExpanded(n)) {
			var [r] = P.nodes(e, { match: z.isText });
			if (r) {
				var [i] = r;
				return bl(i, ine);
			}
			return {};
		}
		var { anchor: a } = n, { path: o } = a, [s] = P.leaf(e, o);
		if (a.offset === 0) {
			var c = P.previous(e, {
				at: o,
				match: z.isText
			}), l = P.above(e, { match: (t) => P.isBlock(e, t) });
			if (c && l) {
				var [u, d] = c, [, f] = l;
				I.isAncestor(f, d) && (s = u);
			}
		}
		return bl(s, ane);
	},
	next(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { mode: n = "lowest", voids: r = !1 } = t, { match: i, at: a = e.selection } = t;
		if (a) {
			var o = P.after(e, a, { voids: r });
			if (o) {
				var [, s] = P.last(e, []), c = [o.path, s];
				if (I.isPath(a) && a.length === 0) throw Error("Cannot get the next node from the root node!");
				if (i == null) if (I.isPath(a)) {
					var [l] = P.parent(e, a);
					i = (e) => l.children.includes(e);
				} else i = () => !0;
				var [u] = P.nodes(e, {
					at: c,
					match: i,
					mode: n,
					voids: r
				});
				return u;
			}
		}
	},
	node(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = P.path(e, t, n);
		return [F.get(e, r), r];
	},
	*nodes(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { at: n = e.selection, mode: r = "all", universal: i = !1, reverse: a = !1, voids: o = !1 } = t, { match: s } = t;
		if (s ||= () => !0, n) {
			var c, l;
			if (one.isSpan(n)) c = n[0], l = n[1];
			else {
				var u = P.path(e, n, { edge: "start" }), d = P.path(e, n, { edge: "end" });
				c = a ? d : u, l = a ? u : d;
			}
			var f, p = F.nodes(e, {
				reverse: a,
				from: c,
				to: l,
				pass: (t) => {
					var [n] = t;
					return !o && P.isVoid(e, n);
				}
			}), m = [];
			for (var [h, g] of p) {
				var _ = f && I.compare(g, f[1]) === 0;
				if (r !== "highest" || !_) {
					if (s(h, g)) if (r === "lowest" && _) f = [h, g];
					else {
						var v = r === "lowest" ? f : [h, g];
						v && (i ? m.push(v) : yield v), f = [h, g];
					}
					else if (i && !_ && z.isText(h)) return;
				}
			}
			r === "lowest" && f && (i ? m.push(f) : yield f), i && (yield* m);
		}
	},
	normalize(e) {
		var { force: t = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (e) => fl.get(e) || [];
		if (P.isNormalizing(e)) {
			if (t) {
				var r = Array.from(F.nodes(e), ((e) => {
					var [, t] = e;
					return t;
				}));
				fl.set(e, r);
			}
			n(e).length !== 0 && P.withoutNormalizing(e, (() => {
				for (var t of n(e)) if (F.has(e, t)) {
					var r = P.node(e, t), [i, a] = r;
					N.isElement(i) && i.children.length === 0 && e.normalizeNode(r);
				}
				for (var o = 42 * n(e).length, s = 0; n(e).length !== 0;) {
					if (s > o) throw Error(`
            Could not completely normalize the editor after ${o} iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
          `);
					var c = n(e).pop();
					if (F.has(e, c)) {
						var l = P.node(e, c);
						e.normalizeNode(l);
					}
					s++;
				}
			}));
		}
	},
	parent(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = P.path(e, t, n), i = I.parent(r);
		return P.node(e, i);
	},
	path(e, t) {
		var { depth: n, edge: r } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		if (I.isPath(t)) {
			if (r === "start") {
				var [, i] = F.first(e, t);
				t = i;
			} else if (r === "end") {
				var [, a] = F.last(e, t);
				t = a;
			}
		}
		return R.isRange(t) && (t = r === "start" ? R.start(t) : r === "end" ? R.end(t) : I.common(t.anchor.path, t.focus.path)), L.isPoint(t) && (t = t.path), n != null && (t = t.slice(0, n)), t;
	},
	hasPath: (e, t) => F.has(e, t),
	pathRef(e, t) {
		var { affinity: n = "forward" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = {
			current: t,
			affinity: n,
			unref() {
				var { current: t } = r;
				return P.pathRefs(e).delete(r), r.current = null, t;
			}
		};
		return P.pathRefs(e).add(r), r;
	},
	pathRefs(e) {
		var t = hl.get(e);
		return t || (t = /* @__PURE__ */ new Set(), hl.set(e, t)), t;
	},
	point(e, t) {
		var { edge: n = "start" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		if (I.isPath(t)) {
			var r;
			if (n === "end") {
				var [, i] = F.last(e, t);
				r = i;
			} else {
				var [, a] = F.first(e, t);
				r = a;
			}
			var o = F.get(e, r);
			if (!z.isText(o)) throw Error(`Cannot get the ${n} point in the node at path [${t}] because it has no ${n} text node.`);
			return {
				path: r,
				offset: n === "end" ? o.text.length : 0
			};
		}
		if (R.isRange(t)) {
			var [s, c] = R.edges(t);
			return n === "start" ? s : c;
		}
		return t;
	},
	pointRef(e, t) {
		var { affinity: n = "forward" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = {
			current: t,
			affinity: n,
			unref() {
				var { current: t } = r;
				return P.pointRefs(e).delete(r), r.current = null, t;
			}
		};
		return P.pointRefs(e).add(r), r;
	},
	pointRefs(e) {
		var t = gl.get(e);
		return t || (t = /* @__PURE__ */ new Set(), gl.set(e, t)), t;
	},
	*positions(e) {
		var { at: t = e.selection, unit: n = "offset", reverse: r = !1, voids: i = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		if (t) {
			var a = P.range(e, t), [o, s] = R.edges(a), c = r ? s : o, l = !1, u = "", d = 0, f = 0, p = 0;
			for (var [m, h] of P.nodes(e, {
				at: t,
				reverse: r,
				voids: i
			})) {
				if (N.isElement(m)) {
					if (!i && e.isVoid(m)) {
						yield P.start(e, h);
						continue;
					}
					if (e.isInline(m)) continue;
					if (P.hasInlines(e, m)) {
						var g = I.isAncestor(h, s.path) ? s : P.end(e, h), _ = I.isAncestor(h, o.path) ? o : P.start(e, h);
						u = P.string(e, {
							anchor: _,
							focus: g
						}, { voids: i }), l = !0;
					}
				}
				if (z.isText(m)) {
					var v = I.equals(h, c.path);
					for (v ? (f = r ? c.offset : m.text.length - c.offset, p = c.offset) : (f = m.text.length, p = r ? f : 0), (v || l || n === "offset") && (yield {
						path: h,
						offset: p
					}, l = !1);;) {
						if (d === 0) {
							if (u === "") break;
							d = y(u, n, r), u = Sl(u, d, r)[1];
						}
						if (p = r ? p - d : p + d, (f -= d) < 0) {
							d = -f;
							break;
						}
						d = 0, yield {
							path: h,
							offset: p
						};
					}
				}
			}
		}
		function y(e, t, n) {
			return t === "character" ? xl(e, n) : t === "word" ? function(e) {
				for (var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = 0, r = !1; e.length > 0;) {
					var i = xl(e, t), [a, o] = Sl(e, i, t);
					if (Rte(a, o, t)) r = !0, n += i;
					else {
						if (r) break;
						n += i;
					}
					e = o;
				}
				return n;
			}(e, n) : t === "line" || t === "block" ? e.length : 1;
		}
	},
	previous(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { mode: n = "lowest", voids: r = !1 } = t, { match: i, at: a = e.selection } = t;
		if (a) {
			var o = P.before(e, a, { voids: r });
			if (o) {
				var [, s] = P.first(e, []), c = [o.path, s];
				if (I.isPath(a) && a.length === 0) throw Error("Cannot get the previous node from the root node!");
				if (i == null) if (I.isPath(a)) {
					var [l] = P.parent(e, a);
					i = (e) => l.children.includes(e);
				} else i = () => !0;
				var [u] = P.nodes(e, {
					reverse: !0,
					at: c,
					match: i,
					mode: n,
					voids: r
				});
				return u;
			}
		}
	},
	range: (e, t, n) => R.isRange(t) && !n ? t : {
		anchor: P.start(e, t),
		focus: P.end(e, n || t)
	},
	rangeRef(e, t) {
		var { affinity: n = "forward" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = {
			current: t,
			affinity: n,
			unref() {
				var { current: t } = r;
				return P.rangeRefs(e).delete(r), r.current = null, t;
			}
		};
		return P.rangeRefs(e).add(r), r;
	},
	rangeRefs(e) {
		var t = _l.get(e);
		return t || (t = /* @__PURE__ */ new Set(), _l.set(e, t)), t;
	},
	removeMark(e, t) {
		e.removeMark(t);
	},
	setNormalizing(e, t) {
		ml.set(e, t);
	},
	start: (e, t) => P.point(e, t, { edge: "start" }),
	string(e, t) {
		var { voids: n = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = P.range(e, t), [i, a] = R.edges(r), o = "";
		for (var [s, c] of P.nodes(e, {
			at: r,
			match: z.isText,
			voids: n
		})) {
			var l = s.text;
			I.equals(c, a.path) && (l = l.slice(0, a.offset)), I.equals(c, i.path) && (l = l.slice(i.offset)), o += l;
		}
		return o;
	},
	unhangRange(e, t) {
		var { voids: n = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, [r, i] = R.edges(t);
		if (r.offset !== 0 || i.offset !== 0 || R.isCollapsed(t)) return t;
		var a = P.above(e, {
			at: i,
			match: (t) => P.isBlock(e, t)
		}), o = a ? a[1] : [], s = {
			anchor: P.start(e, []),
			focus: i
		}, c = !0;
		for (var [l, u] of P.nodes(e, {
			at: s,
			match: z.isText,
			reverse: !0,
			voids: n
		})) if (c) c = !1;
		else if (l.text !== "" || I.isBefore(u, o)) {
			i = {
				path: u,
				offset: l.text.length
			};
			break;
		}
		return {
			anchor: r,
			focus: i
		};
	},
	void(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		return P.above(e, El(El({}, t), {}, { match: (t) => P.isVoid(e, t) }));
	},
	withoutNormalizing(e, t) {
		var n = P.isNormalizing(e);
		P.setNormalizing(e, !1);
		try {
			t();
		} finally {
			P.setNormalizing(e, n);
		}
		P.normalize(e);
	}
}, one = { isSpan: (e) => Array.isArray(e) && e.length === 2 && e.every(I.isPath) }, sne = ["children"], cne = ["text"], Ol = /* @__PURE__ */ new WeakMap(), F = {
	ancestor(e, t) {
		var n = F.get(e, t);
		if (z.isText(n)) throw Error(`Cannot get the ancestor node at path [${t}] because it refers to a text node instead: ${n}`);
		return n;
	},
	*ancestors(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		for (var r of I.ancestors(t, n)) yield [F.ancestor(e, r), r];
	},
	child(e, t) {
		if (z.isText(e)) throw Error(`Cannot get the child of a text node: ${JSON.stringify(e)}`);
		var n = e.children[t];
		if (n == null) throw Error(`Cannot get child at index \`${t}\` in node: ${JSON.stringify(e)}`);
		return n;
	},
	*children(e, t) {
		for (var { reverse: n = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = F.ancestor(e, t), { children: i } = r, a = n ? i.length - 1 : 0; n ? a >= 0 : a < i.length;) yield [F.child(r, a), t.concat(a)], a = n ? a - 1 : a + 1;
	},
	common(e, t, n) {
		var r = I.common(t, n);
		return [F.get(e, r), r];
	},
	descendant(e, t) {
		var n = F.get(e, t);
		if (P.isEditor(n)) throw Error(`Cannot get the descendant node at path [${t}] because it refers to the root editor node instead: ${n}`);
		return n;
	},
	*descendants(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		for (var [n, r] of F.nodes(e, t)) r.length !== 0 && (yield [n, r]);
	},
	*elements(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		for (var [n, r] of F.nodes(e, t)) N.isElement(n) && (yield [n, r]);
	},
	extractProps: (e) => N.isAncestor(e) ? bl(e, sne) : bl(e, cne),
	first(e, t) {
		for (var n = t.slice(), r = F.get(e, n); r && !z.isText(r) && r.children.length !== 0;) r = r.children[0], n.push(0);
		return [r, n];
	},
	fragment(e, t) {
		if (z.isText(e)) throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);
		return cl({ children: e.children }, ((e) => {
			var [n, r] = R.edges(t);
			for (var [, i] of F.nodes(e, {
				reverse: !0,
				pass: (e) => {
					var [, n] = e;
					return !R.includes(t, n);
				}
			})) {
				if (!R.includes(t, i)) {
					var a = F.parent(e, i), o = i[i.length - 1];
					a.children.splice(o, 1);
				}
				if (I.equals(i, r.path)) {
					var s = F.leaf(e, i);
					s.text = s.text.slice(0, r.offset);
				}
				if (I.equals(i, n.path)) {
					var c = F.leaf(e, i);
					c.text = c.text.slice(n.offset);
				}
			}
			P.isEditor(e) && (e.selection = null);
		})).children;
	},
	get(e, t) {
		for (var n = e, r = 0; r < t.length; r++) {
			var i = t[r];
			if (z.isText(n) || !n.children[i]) throw Error(`Cannot find a descendant at path [${t}] in node: ${JSON.stringify(e)}`);
			n = n.children[i];
		}
		return n;
	},
	has(e, t) {
		for (var n = e, r = 0; r < t.length; r++) {
			var i = t[r];
			if (z.isText(n) || !n.children[i]) return !1;
			n = n.children[i];
		}
		return !0;
	},
	isNode: (e) => z.isText(e) || N.isElement(e) || P.isEditor(e),
	isNodeList(e) {
		if (!Array.isArray(e)) return !1;
		var t = Ol.get(e);
		if (t !== void 0) return t;
		var n = e.every(((e) => F.isNode(e)));
		return Ol.set(e, n), n;
	},
	last(e, t) {
		for (var n = t.slice(), r = F.get(e, n); r && !z.isText(r) && r.children.length !== 0;) {
			var i = r.children.length - 1;
			r = r.children[i], n.push(i);
		}
		return [r, n];
	},
	leaf(e, t) {
		var n = F.get(e, t);
		if (!z.isText(n)) throw Error(`Cannot get the leaf node at path [${t}] because it refers to a non-leaf node: ${n}`);
		return n;
	},
	*levels(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		for (var r of I.levels(t, n)) yield [F.get(e, r), r];
	},
	matches: (e, t) => N.isElement(e) && N.isElementProps(t) && N.matches(e, t) || z.isText(e) && z.isTextProps(t) && z.matches(e, t),
	*nodes(e) {
		for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { pass: n, reverse: r = !1 } = t, { from: i = [], to: a } = t, o = /* @__PURE__ */ new Set(), s = [], c = e; !a || !(r ? I.isBefore(s, a) : I.isAfter(s, a));) if (o.has(c) || (yield [c, s]), o.has(c) || z.isText(c) || c.children.length === 0 || n != null && !1 !== n([c, s])) {
			if (s.length === 0) break;
			if (!r) {
				var l = I.next(s);
				if (F.has(e, l)) {
					s = l, c = F.get(e, s);
					continue;
				}
			}
			r && s[s.length - 1] !== 0 ? (s = I.previous(s), c = F.get(e, s)) : (s = I.parent(s), c = F.get(e, s), o.add(c));
		} else {
			o.add(c);
			var u = r ? c.children.length - 1 : 0;
			I.isAncestor(s, i) && (u = i[s.length]), s = s.concat(u), c = F.get(e, s);
		}
	},
	parent(e, t) {
		var n = I.parent(t), r = F.get(e, n);
		if (z.isText(r)) throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);
		return r;
	},
	string: (e) => z.isText(e) ? e.text : e.children.map(F.string).join(""),
	*texts(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		for (var [n, r] of F.nodes(e, t)) z.isText(n) && (yield [n, r]);
	}
};
function kl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function Al(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? kl(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kl(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var jl = {
	isNodeOperation: (e) => jl.isOperation(e) && e.type.endsWith("_node"),
	isOperation(e) {
		if (!yc(e)) return !1;
		switch (e.type) {
			case "insert_node":
			case "remove_node": return I.isPath(e.path) && F.isNode(e.node);
			case "insert_text":
			case "remove_text": return typeof e.offset == "number" && typeof e.text == "string" && I.isPath(e.path);
			case "merge_node": return typeof e.position == "number" && I.isPath(e.path) && yc(e.properties);
			case "move_node": return I.isPath(e.path) && I.isPath(e.newPath);
			case "set_node": return I.isPath(e.path) && yc(e.properties) && yc(e.newProperties);
			case "set_selection": return e.properties === null && R.isRange(e.newProperties) || e.newProperties === null && R.isRange(e.properties) || yc(e.properties) && yc(e.newProperties);
			case "split_node": return I.isPath(e.path) && typeof e.position == "number" && yc(e.properties);
			default: return !1;
		}
	},
	isOperationList: (e) => Array.isArray(e) && e.every(((e) => jl.isOperation(e))),
	isSelectionOperation: (e) => jl.isOperation(e) && e.type.endsWith("_selection"),
	isTextOperation: (e) => jl.isOperation(e) && e.type.endsWith("_text"),
	inverse(e) {
		switch (e.type) {
			case "insert_node": return Al(Al({}, e), {}, { type: "remove_node" });
			case "insert_text": return Al(Al({}, e), {}, { type: "remove_text" });
			case "merge_node": return Al(Al({}, e), {}, {
				type: "split_node",
				path: I.previous(e.path)
			});
			case "move_node":
				var { newPath: t, path: n } = e;
				if (I.equals(t, n)) return e;
				if (I.isSibling(n, t)) return Al(Al({}, e), {}, {
					path: t,
					newPath: n
				});
				var r = I.transform(n, e), i = I.transform(I.next(n), e);
				return Al(Al({}, e), {}, {
					path: r,
					newPath: i
				});
			case "remove_node": return Al(Al({}, e), {}, { type: "insert_node" });
			case "remove_text": return Al(Al({}, e), {}, { type: "insert_text" });
			case "set_node":
				var { properties: a, newProperties: o } = e;
				return Al(Al({}, e), {}, {
					properties: o,
					newProperties: a
				});
			case "set_selection":
				var { properties: s, newProperties: c } = e;
				return Al(Al({}, e), {}, s == null ? {
					properties: c,
					newProperties: null
				} : c == null ? {
					properties: null,
					newProperties: s
				} : {
					properties: c,
					newProperties: s
				});
			case "split_node": return Al(Al({}, e), {}, {
				type: "merge_node",
				path: I.next(e.path)
			});
		}
	}
}, I = {
	ancestors(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { reverse: n = !1 } = t, r = I.levels(e, t);
		return r = n ? r.slice(1) : r.slice(0, -1);
	},
	common(e, t) {
		for (var n = [], r = 0; r < e.length && r < t.length; r++) {
			var i = e[r];
			if (i !== t[r]) break;
			n.push(i);
		}
		return n;
	},
	compare(e, t) {
		for (var n = Math.min(e.length, t.length), r = 0; r < n; r++) {
			if (e[r] < t[r]) return -1;
			if (e[r] > t[r]) return 1;
		}
		return 0;
	},
	endsAfter(e, t) {
		var n = e.length - 1, r = e.slice(0, n), i = t.slice(0, n), a = e[n], o = t[n];
		return I.equals(r, i) && a > o;
	},
	endsAt(e, t) {
		var n = e.length, r = e.slice(0, n), i = t.slice(0, n);
		return I.equals(r, i);
	},
	endsBefore(e, t) {
		var n = e.length - 1, r = e.slice(0, n), i = t.slice(0, n), a = e[n], o = t[n];
		return I.equals(r, i) && a < o;
	},
	equals: (e, t) => e.length === t.length && e.every(((e, n) => e === t[n])),
	hasPrevious: (e) => e[e.length - 1] > 0,
	isAfter: (e, t) => I.compare(e, t) === 1,
	isAncestor: (e, t) => e.length < t.length && I.compare(e, t) === 0,
	isBefore: (e, t) => I.compare(e, t) === -1,
	isChild: (e, t) => e.length === t.length + 1 && I.compare(e, t) === 0,
	isCommon: (e, t) => e.length <= t.length && I.compare(e, t) === 0,
	isDescendant: (e, t) => e.length > t.length && I.compare(e, t) === 0,
	isParent: (e, t) => e.length + 1 === t.length && I.compare(e, t) === 0,
	isPath: (e) => Array.isArray(e) && (e.length === 0 || typeof e[0] == "number"),
	isSibling(e, t) {
		if (e.length !== t.length) return !1;
		var n = e.slice(0, -1), r = t.slice(0, -1);
		return e[e.length - 1] !== t[t.length - 1] && I.equals(n, r);
	},
	levels(e) {
		for (var { reverse: t = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = 0; r <= e.length; r++) n.push(e.slice(0, r));
		return t && n.reverse(), n;
	},
	next(e) {
		if (e.length === 0) throw Error(`Cannot get the next path of a root path [${e}], because it has no next index.`);
		var t = e[e.length - 1];
		return e.slice(0, -1).concat(t + 1);
	},
	parent(e) {
		if (e.length === 0) throw Error(`Cannot get the parent path of the root path [${e}].`);
		return e.slice(0, -1);
	},
	previous(e) {
		if (e.length === 0) throw Error(`Cannot get the previous path of a root path [${e}], because it has no previous index.`);
		var t = e[e.length - 1];
		if (t <= 0) throw Error(`Cannot get the previous path of a first child path [${e}] because it would result in a negative index.`);
		return e.slice(0, -1).concat(t - 1);
	},
	relative(e, t) {
		if (!I.isAncestor(t, e) && !I.equals(e, t)) throw Error(`Cannot get the relative path of [${e}] inside ancestor [${t}], because it is not above or equal to the path.`);
		return e.slice(t.length);
	},
	transform(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		return cl(e, ((r) => {
			var { affinity: i = "forward" } = n;
			if (e && e?.length !== 0) {
				if (r === null) return null;
				switch (t.type) {
					case "insert_node":
						var { path: a } = t;
						(I.equals(a, r) || I.endsBefore(a, r) || I.isAncestor(a, r)) && (r[a.length - 1] += 1);
						break;
					case "remove_node":
						var { path: o } = t;
						if (I.equals(o, r) || I.isAncestor(o, r)) return null;
						I.endsBefore(o, r) && --r[o.length - 1];
						break;
					case "merge_node":
						var { path: s, position: c } = t;
						I.equals(s, r) || I.endsBefore(s, r) ? --r[s.length - 1] : I.isAncestor(s, r) && (--r[s.length - 1], r[s.length] += c);
						break;
					case "split_node":
						var { path: l, position: u } = t;
						if (I.equals(l, r)) {
							if (i === "forward") r[r.length - 1] += 1;
							else if (i !== "backward") return null;
						} else I.endsBefore(l, r) ? r[l.length - 1] += 1 : I.isAncestor(l, r) && e[l.length] >= u && (r[l.length - 1] += 1, r[l.length] -= u);
						break;
					case "move_node":
						var { path: d, newPath: f } = t;
						if (I.equals(d, f)) return;
						if (I.isAncestor(d, r) || I.equals(d, r)) {
							var p = f.slice();
							return I.endsBefore(d, f) && d.length < f.length && --p[d.length - 1], p.concat(r.slice(d.length));
						}
						I.isSibling(d, f) && (I.isAncestor(f, r) || I.equals(f, r)) ? I.endsBefore(d, r) ? --r[d.length - 1] : r[d.length - 1] += 1 : I.endsBefore(f, r) || I.equals(f, r) || I.isAncestor(f, r) ? (I.endsBefore(d, r) && --r[d.length - 1], r[f.length - 1] += 1) : I.endsBefore(d, r) && (I.equals(f, r) && (r[f.length - 1] += 1), --r[d.length - 1]);
				}
			}
		}));
	}
}, lne = { transform(e, t) {
	var { current: n, affinity: r } = e;
	if (n != null) {
		var i = I.transform(n, t, { affinity: r });
		e.current = i, i ?? e.unref();
	}
} };
function Ml(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function Nl(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? Ml(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ml(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var L = {
	compare(e, t) {
		var n = I.compare(e.path, t.path);
		return n === 0 ? e.offset < t.offset ? -1 : +(e.offset > t.offset) : n;
	},
	isAfter: (e, t) => L.compare(e, t) === 1,
	isBefore: (e, t) => L.compare(e, t) === -1,
	equals: (e, t) => e.offset === t.offset && I.equals(e.path, t.path),
	isPoint: (e) => yc(e) && typeof e.offset == "number" && I.isPath(e.path),
	transform(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		return cl(e, ((e) => {
			if (e === null) return null;
			var { affinity: r = "forward" } = n, { path: i, offset: a } = e;
			switch (t.type) {
				case "insert_node":
				case "move_node":
					e.path = I.transform(i, t, n);
					break;
				case "insert_text":
					I.equals(t.path, i) && t.offset <= a && (e.offset += t.text.length);
					break;
				case "merge_node":
					I.equals(t.path, i) && (e.offset += t.position), e.path = I.transform(i, t, n);
					break;
				case "remove_text":
					I.equals(t.path, i) && t.offset <= a && (e.offset -= Math.min(a - t.offset, t.text.length));
					break;
				case "remove_node":
					if (I.equals(t.path, i) || I.isAncestor(t.path, i)) return null;
					e.path = I.transform(i, t, n);
					break;
				case "split_node": if (I.equals(t.path, i)) {
					if (t.position === a && r == null) return null;
					(t.position < a || t.position === a && r === "forward") && (e.offset -= t.position, e.path = I.transform(i, t, Nl(Nl({}, n), {}, { affinity: "forward" })));
				} else e.path = I.transform(i, t, n);
			}
		}));
	}
}, une = { transform(e, t) {
	var { current: n, affinity: r } = e;
	if (n != null) {
		var i = L.transform(n, t, { affinity: r });
		e.current = i, i ?? e.unref();
	}
} }, dne = ["anchor", "focus"];
function Pl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
var R = {
	edges(e) {
		var { reverse: t = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { anchor: n, focus: r } = e;
		return R.isBackward(e) === t ? [n, r] : [r, n];
	},
	end(e) {
		var [, t] = R.edges(e);
		return t;
	},
	equals: (e, t) => L.equals(e.anchor, t.anchor) && L.equals(e.focus, t.focus),
	includes(e, t) {
		if (R.isRange(t)) {
			if (R.includes(e, t.anchor) || R.includes(e, t.focus)) return !0;
			var [n, r] = R.edges(e), [i, a] = R.edges(t);
			return L.isBefore(n, i) && L.isAfter(r, a);
		}
		var [o, s] = R.edges(e), c = !1, l = !1;
		return L.isPoint(t) ? (c = L.compare(t, o) >= 0, l = L.compare(t, s) <= 0) : (c = I.compare(t, o.path) >= 0, l = I.compare(t, s.path) <= 0), c && l;
	},
	intersection(e, t) {
		var n = bl(e, dne), [r, i] = R.edges(e), [a, o] = R.edges(t), s = L.isBefore(r, a) ? a : r, c = L.isBefore(i, o) ? i : o;
		return L.isBefore(c, s) ? null : function(e) {
			for (var t = 1; t < arguments.length; t++) {
				var n = arguments[t] == null ? {} : arguments[t];
				t % 2 ? Pl(Object(n), !0).forEach((function(t) {
					dl(e, t, n[t]);
				})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Pl(Object(n)).forEach((function(t) {
					Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
				}));
			}
			return e;
		}({
			anchor: s,
			focus: c
		}, n);
	},
	isBackward(e) {
		var { anchor: t, focus: n } = e;
		return L.isAfter(t, n);
	},
	isCollapsed(e) {
		var { anchor: t, focus: n } = e;
		return L.equals(t, n);
	},
	isExpanded: (e) => !R.isCollapsed(e),
	isForward: (e) => !R.isBackward(e),
	isRange: (e) => yc(e) && L.isPoint(e.anchor) && L.isPoint(e.focus),
	*points(e) {
		yield [e.anchor, "anchor"], yield [e.focus, "focus"];
	},
	start(e) {
		var [t] = R.edges(e);
		return t;
	},
	transform(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		return cl(e, ((e) => {
			if (e === null) return null;
			var r, i, { affinity: a = "inward" } = n;
			if (a === "inward") {
				var o = R.isCollapsed(e);
				R.isForward(e) ? (r = "forward", i = o ? r : "backward") : (r = "backward", i = o ? r : "forward");
			} else a === "outward" ? R.isForward(e) ? (r = "backward", i = "forward") : (r = "forward", i = "backward") : (r = a, i = a);
			var s = L.transform(e.anchor, t, { affinity: r }), c = L.transform(e.focus, t, { affinity: i });
			if (!s || !c) return null;
			e.anchor = s, e.focus = c;
		}));
	}
}, fne = { transform(e, t) {
	var { current: n, affinity: r } = e;
	if (n != null) {
		var i = R.transform(n, t, { affinity: r });
		e.current = i, i ?? e.unref();
	}
} }, Fl = (e, t) => {
	for (var n in e) {
		var r = e[n], i = t[n];
		if (yc(r) && yc(i)) {
			if (!Fl(r, i)) return !1;
		} else if (Array.isArray(r) && Array.isArray(i)) {
			if (r.length !== i.length) return !1;
			for (var a = 0; a < r.length; a++) if (r[a] !== i[a]) return !1;
		} else if (r !== i) return !1;
	}
	for (var o in t) if (e[o] === void 0 && t[o] !== void 0) return !1;
	return !0;
}, pne = ["text"], mne = ["anchor", "focus"];
function Il(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function Ll(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? Il(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Il(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var z = {
	equals(e, t) {
		var { loose: n = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		function r(e) {
			return bl(e, pne);
		}
		return Fl(n ? r(e) : e, n ? r(t) : t);
	},
	isText: (e) => yc(e) && typeof e.text == "string",
	isTextList: (e) => Array.isArray(e) && e.every(((e) => z.isText(e))),
	isTextProps: (e) => e.text !== void 0,
	matches(e, t) {
		for (var n in t) if (n !== "text" && (!e.hasOwnProperty(n) || e[n] !== t[n])) return !1;
		return !0;
	},
	decorations(e, t) {
		var n = [Ll({}, e)];
		for (var r of t) {
			var i = bl(r, mne), [a, o] = R.edges(r), s = [], c = 0;
			for (var l of n) {
				var { length: u } = l.text, d = c;
				if (c += u, a.offset <= d && o.offset >= c) Object.assign(l, i), s.push(l);
				else if (a.offset !== o.offset && (a.offset === c || o.offset === d) || a.offset > c || o.offset < d || o.offset === d && d !== 0) s.push(l);
				else {
					var f = l, p = void 0, m = void 0;
					if (o.offset < c) {
						var h = o.offset - d;
						m = Ll(Ll({}, f), {}, { text: f.text.slice(h) }), f = Ll(Ll({}, f), {}, { text: f.text.slice(0, h) });
					}
					if (a.offset > d) {
						var g = a.offset - d;
						p = Ll(Ll({}, f), {}, { text: f.text.slice(0, g) }), f = Ll(Ll({}, f), {}, { text: f.text.slice(g) });
					}
					Object.assign(f, i), p && s.push(p), s.push(f), m && s.push(m);
				}
			}
			n = s;
		}
		return n;
	}
};
function Rl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function zl(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? Rl(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Rl(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var hne = { transform(e, t) {
	e.children = ll(e.children);
	var n = e.selection && ll(e.selection);
	try {
		n = ((e, t, n) => {
			switch (n.type) {
				case "insert_node":
					var { path: r, node: i } = n, a = F.parent(e, r), o = r[r.length - 1];
					if (o > a.children.length) throw Error(`Cannot apply an "insert_node" operation at path [${r}] because the destination is past the end of the node.`);
					if (a.children.splice(o, 0, i), t) for (var [s, c] of R.points(t)) t[c] = L.transform(s, n);
					break;
				case "insert_text":
					var { path: l, offset: u, text: d } = n;
					if (d.length === 0) break;
					var f = F.leaf(e, l), p = f.text.slice(0, u), m = f.text.slice(u);
					if (f.text = p + d + m, t) for (var [h, g] of R.points(t)) t[g] = L.transform(h, n);
					break;
				case "merge_node":
					var { path: _ } = n, v = F.get(e, _), y = I.previous(_), b = F.get(e, y), x = F.parent(e, _), S = _[_.length - 1];
					if (z.isText(v) && z.isText(b)) b.text += v.text;
					else {
						if (z.isText(v) || z.isText(b)) throw Error(`Cannot apply a "merge_node" operation at path [${_}] to nodes of different interfaces: ${v} ${b}`);
						b.children.push(...v.children);
					}
					if (x.children.splice(S, 1), t) for (var [C, w] of R.points(t)) t[w] = L.transform(C, n);
					break;
				case "move_node":
					var { path: T, newPath: E } = n;
					if (I.isAncestor(T, E)) throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);
					var D = F.get(e, T), O = F.parent(e, T), ee = T[T.length - 1];
					O.children.splice(ee, 1);
					var te = I.transform(T, n), ne = F.get(e, I.parent(te)), re = te[te.length - 1];
					if (ne.children.splice(re, 0, D), t) for (var [k, ie] of R.points(t)) t[ie] = L.transform(k, n);
					break;
				case "remove_node":
					var { path: A } = n, ae = A[A.length - 1];
					if (F.parent(e, A).children.splice(ae, 1), t) for (var [oe, se] of R.points(t)) {
						var ce = L.transform(oe, n);
						if (t != null && ce != null) t[se] = ce;
						else {
							var le = void 0, ue = void 0;
							for (var [de, fe] of F.texts(e)) {
								if (I.compare(fe, A) !== -1) {
									ue = [de, fe];
									break;
								}
								le = [de, fe];
							}
							var pe = !1;
							le && ue && (pe = I.equals(ue[1], A) ? !I.hasPrevious(ue[1]) : I.common(le[1], A).length < I.common(ue[1], A).length), le && !pe ? (oe.path = le[1], oe.offset = le[0].text.length) : ue ? (oe.path = ue[1], oe.offset = 0) : t = null;
						}
					}
					break;
				case "remove_text":
					var { path: me, offset: he, text: ge } = n;
					if (ge.length === 0) break;
					var _e = F.leaf(e, me);
					if (_e.text = _e.text.slice(0, he) + _e.text.slice(he + ge.length), t) for (var [ve, ye] of R.points(t)) t[ye] = L.transform(ve, n);
					break;
				case "set_node":
					var { path: be, properties: xe, newProperties: Se } = n;
					if (be.length === 0) throw Error("Cannot set properties on the root node!");
					var Ce = F.get(e, be);
					for (var we in Se) {
						if (we === "children" || we === "text") throw Error(`Cannot set the "${we}" property of nodes!`);
						var Te = Se[we];
						Te == null ? delete Ce[we] : Ce[we] = Te;
					}
					for (var Ee in xe) Se.hasOwnProperty(Ee) || delete Ce[Ee];
					break;
				case "set_selection":
					var { newProperties: De } = n;
					if (De == null) t = De;
					else {
						if (t == null) {
							if (!R.isRange(De)) throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(De)} when there is no current selection.`);
							t = zl({}, De);
						}
						for (var Oe in De) {
							var ke = De[Oe];
							if (ke == null) {
								if (Oe === "anchor" || Oe === "focus") throw Error(`Cannot remove the "${Oe}" selection property`);
								delete t[Oe];
							} else t[Oe] = ke;
						}
					}
					break;
				case "split_node":
					var { path: Ae, position: je, properties: Me } = n;
					if (Ae.length === 0) throw Error(`Cannot apply a "split_node" operation at path [${Ae}] because the root node cannot be split.`);
					var Ne, Pe = F.get(e, Ae), Fe = F.parent(e, Ae), Ie = Ae[Ae.length - 1];
					if (z.isText(Pe)) {
						var Le = Pe.text.slice(0, je), Re = Pe.text.slice(je);
						Pe.text = Le, Ne = zl(zl({}, Me), {}, { text: Re });
					} else {
						var ze = Pe.children.slice(0, je), Be = Pe.children.slice(je);
						Pe.children = ze, Ne = zl(zl({}, Me), {}, { children: Be });
					}
					if (Fe.children.splice(Ie + 1, 0, Ne), t) for (var [Ve, He] of R.points(t)) t[He] = L.transform(Ve, n);
			}
			return t;
		})(e, n, t);
	} finally {
		e.children = ul(e.children), e.selection = n ? xc(n) ? ul(n) : n : null;
	}
} }, gne = ["text"], _ne = ["children"];
function Bl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function Vl(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? Bl(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Bl(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var vne = {
	insertNodes(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		P.withoutNormalizing(e, (() => {
			var { hanging: r = !1, voids: i = !1, mode: a = "lowest" } = n, { at: o, match: s, select: c } = n;
			if (F.isNode(t) && (t = [t]), t.length !== 0) {
				var [l] = t;
				if (o || (o = e.selection ? e.selection : e.children.length > 0 ? P.end(e, []) : [0], c = !0), c ??= !1, R.isRange(o)) if (r || (o = P.unhangRange(e, o)), R.isCollapsed(o)) o = o.anchor;
				else {
					var [, u] = R.edges(o), d = P.pointRef(e, u);
					B.delete(e, { at: o }), o = d.unref();
				}
				if (L.isPoint(o)) {
					s ??= z.isText(l) ? (e) => z.isText(e) : e.isInline(l) ? (t) => z.isText(t) || P.isInline(e, t) : (t) => P.isBlock(e, t);
					var [f] = P.nodes(e, {
						at: o.path,
						match: s,
						mode: a,
						voids: i
					});
					if (!f) return;
					var [, p] = f, m = P.pathRef(e, p), h = P.isEnd(e, o, p);
					B.splitNodes(e, {
						at: o,
						match: s,
						mode: a,
						voids: i
					});
					var g = m.unref();
					o = h ? I.next(g) : g;
				}
				var _ = I.parent(o), v = o[o.length - 1];
				if (i || !P.void(e, { at: _ })) {
					for (var y of t) {
						var b = _.concat(v);
						v++, e.apply({
							type: "insert_node",
							path: b,
							node: y
						}), o = I.next(o);
					}
					if (o = I.previous(o), c) {
						var x = P.end(e, o);
						x && B.select(e, x);
					}
				}
			}
		}));
	},
	liftNodes(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		P.withoutNormalizing(e, (() => {
			var { at: n = e.selection, mode: r = "lowest", voids: i = !1 } = t, { match: a } = t;
			if (a ??= I.isPath(n) ? Ul(e, n) : (t) => P.isBlock(e, t), n) {
				var o = P.nodes(e, {
					at: n,
					match: a,
					mode: r,
					voids: i
				});
				for (var s of Array.from(o, ((t) => {
					var [, n] = t;
					return P.pathRef(e, n);
				}))) {
					var c = s.unref();
					if (c.length < 2) throw Error(`Cannot lift node at a path [${c}] because it has a depth of less than \`2\`.`);
					var [l, u] = P.node(e, I.parent(c)), d = c[c.length - 1], { length: f } = l.children;
					if (f === 1) {
						var p = I.next(u);
						B.moveNodes(e, {
							at: c,
							to: p,
							voids: i
						}), B.removeNodes(e, {
							at: u,
							voids: i
						});
					} else if (d === 0) B.moveNodes(e, {
						at: c,
						to: u,
						voids: i
					});
					else if (d === f - 1) {
						var m = I.next(u);
						B.moveNodes(e, {
							at: c,
							to: m,
							voids: i
						});
					} else {
						var h = I.next(c), g = I.next(u);
						B.splitNodes(e, {
							at: h,
							voids: i
						}), B.moveNodes(e, {
							at: c,
							to: g,
							voids: i
						});
					}
				}
			}
		}));
	},
	mergeNodes(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		P.withoutNormalizing(e, (() => {
			var { match: n, at: r = e.selection } = t, { hanging: i = !1, voids: a = !1, mode: o = "lowest" } = t;
			if (r) {
				if (n == null) if (I.isPath(r)) {
					var [s] = P.parent(e, r);
					n = (e) => s.children.includes(e);
				} else n = (t) => P.isBlock(e, t);
				if (!i && R.isRange(r) && (r = P.unhangRange(e, r)), R.isRange(r)) if (R.isCollapsed(r)) r = r.anchor;
				else {
					var [, c] = R.edges(r), l = P.pointRef(e, c);
					B.delete(e, { at: r }), r = l.unref(), t.at ?? B.select(e, r);
				}
				var [u] = P.nodes(e, {
					at: r,
					match: n,
					voids: a,
					mode: o
				}), d = P.previous(e, {
					at: r,
					match: n,
					voids: a,
					mode: o
				});
				if (u && d) {
					var [f, p] = u, [m, h] = d;
					if (p.length !== 0 && h.length !== 0) {
						var g, _, v = I.next(h), y = I.common(p, h), b = I.isSibling(p, h), x = Array.from(P.levels(e, { at: p }), ((e) => {
							var [t] = e;
							return t;
						})).slice(y.length).slice(0, -1), S = P.above(e, {
							at: p,
							mode: "highest",
							match: (t) => x.includes(t) && Hl(e, t)
						}), C = S && P.pathRef(e, S[1]);
						if (z.isText(f) && z.isText(m)) {
							var w = bl(f, gne);
							_ = m.text.length, g = w;
						} else {
							if (!N.isElement(f) || !N.isElement(m)) throw Error(`Cannot merge the node at path [${p}] with the previous sibling because it is not the same kind: ${JSON.stringify(f)} ${JSON.stringify(m)}`);
							w = bl(f, _ne), _ = m.children.length, g = w;
						}
						b || B.moveNodes(e, {
							at: p,
							to: v,
							voids: a
						}), C && B.removeNodes(e, {
							at: C.current,
							voids: a
						}), N.isElement(m) && P.isEmpty(e, m) || z.isText(m) && m.text === "" && h[h.length - 1] !== 0 ? B.removeNodes(e, {
							at: h,
							voids: a
						}) : e.apply({
							type: "merge_node",
							path: v,
							position: _,
							properties: g
						}), C && C.unref();
					}
				}
			}
		}));
	},
	moveNodes(e, t) {
		P.withoutNormalizing(e, (() => {
			var { to: n, at: r = e.selection, mode: i = "lowest", voids: a = !1 } = t, { match: o } = t;
			if (r) {
				o ??= I.isPath(r) ? Ul(e, r) : (t) => P.isBlock(e, t);
				var s = P.pathRef(e, n), c = P.nodes(e, {
					at: r,
					match: o,
					mode: i,
					voids: a
				});
				for (var l of Array.from(c, ((t) => {
					var [, n] = t;
					return P.pathRef(e, n);
				}))) {
					var u = l.unref(), d = s.current;
					u.length !== 0 && e.apply({
						type: "move_node",
						path: u,
						newPath: d
					}), s.current && I.isSibling(d, u) && I.isAfter(d, u) && (s.current = I.next(s.current));
				}
				s.unref();
			}
		}));
	},
	removeNodes(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		P.withoutNormalizing(e, (() => {
			var { hanging: n = !1, voids: r = !1, mode: i = "lowest" } = t, { at: a = e.selection, match: o } = t;
			if (a) {
				o ??= I.isPath(a) ? Ul(e, a) : (t) => P.isBlock(e, t), !n && R.isRange(a) && (a = P.unhangRange(e, a));
				var s = P.nodes(e, {
					at: a,
					match: o,
					mode: i,
					voids: r
				});
				for (var c of Array.from(s, ((t) => {
					var [, n] = t;
					return P.pathRef(e, n);
				}))) {
					var l = c.unref();
					if (l) {
						var [u] = P.node(e, l);
						e.apply({
							type: "remove_node",
							path: l,
							node: u
						});
					}
				}
			}
		}));
	},
	setNodes(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		P.withoutNormalizing(e, (() => {
			var { match: r, at: i = e.selection } = n, { hanging: a = !1, mode: o = "lowest", split: s = !1, voids: c = !1 } = n;
			if (i) {
				if (r ??= I.isPath(i) ? Ul(e, i) : (t) => P.isBlock(e, t), !a && R.isRange(i) && (i = P.unhangRange(e, i)), s && R.isRange(i)) {
					if (R.isCollapsed(i) && P.leaf(e, i.anchor)[0].text.length > 0) return;
					var l = P.rangeRef(e, i, { affinity: "inward" }), [u, d] = R.edges(i), f = o === "lowest" ? "lowest" : "highest", p = P.isEnd(e, d, d.path);
					B.splitNodes(e, {
						at: d,
						match: r,
						mode: f,
						voids: c,
						always: !p
					});
					var m = P.isStart(e, u, u.path);
					B.splitNodes(e, {
						at: u,
						match: r,
						mode: f,
						voids: c,
						always: !m
					}), i = l.unref(), n.at ?? B.select(e, i);
				}
				for (var [h, g] of P.nodes(e, {
					at: i,
					match: r,
					mode: o,
					voids: c
				})) {
					var _ = {}, v = {};
					if (g.length !== 0) {
						var y = !1;
						for (var b in t) b !== "children" && b !== "text" && t[b] !== h[b] && (y = !0, h.hasOwnProperty(b) && (_[b] = h[b]), t[b] != null && (v[b] = t[b]));
						y && e.apply({
							type: "set_node",
							path: g,
							properties: _,
							newProperties: v
						});
					}
				}
			}
		}));
	},
	splitNodes(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		P.withoutNormalizing(e, (() => {
			var { mode: n = "lowest", voids: r = !1 } = t, { match: i, at: a = e.selection, height: o = 0, always: s = !1 } = t;
			if (i ??= (t) => P.isBlock(e, t), R.isRange(a) && (a = yne(e, a)), I.isPath(a)) {
				var c = a, l = P.point(e, c), [u] = P.parent(e, c);
				i = (e) => e === u, o = l.path.length - c.length + 1, a = l, s = !0;
			}
			if (a) {
				var d = P.pointRef(e, a, { affinity: "backward" }), [f] = P.nodes(e, {
					at: a,
					match: i,
					mode: n,
					voids: r
				});
				if (f) {
					var p = P.void(e, {
						at: a,
						mode: "highest"
					});
					if (!r && p) {
						var [m, h] = p;
						if (N.isElement(m) && e.isInline(m)) {
							var g = P.after(e, h);
							if (!g) {
								var _ = I.next(h);
								B.insertNodes(e, { text: "" }, {
									at: _,
									voids: r
								}), g = P.point(e, _);
							}
							a = g, s = !0;
						}
						o = a.path.length - h.length + 1, s = !0;
					}
					var v = P.pointRef(e, a), y = a.path.length - o, [, b] = f, x = a.path.slice(0, y), S = o === 0 ? a.offset : a.path[y] + 0;
					for (var [C, w] of P.levels(e, {
						at: x,
						reverse: !0,
						voids: r
					})) {
						var T = !1;
						if (w.length < b.length || w.length === 0 || !r && P.isVoid(e, C)) break;
						var E = d.current, D = P.isEnd(e, E, w);
						if (s || !d || !P.isEdge(e, E, w)) {
							T = !0;
							var O = F.extractProps(C);
							e.apply({
								type: "split_node",
								path: w,
								position: S,
								properties: O
							});
						}
						S = w[w.length - 1] + (T || D ? 1 : 0);
					}
					if (t.at == null) {
						var ee = v.current || P.end(e, []);
						B.select(e, ee);
					}
					d.unref(), v.unref();
				}
			}
		}));
	},
	unsetNodes(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		Array.isArray(t) || (t = [t]);
		var r = {};
		for (var i of t) r[i] = null;
		B.setNodes(e, r, n);
	},
	unwrapNodes(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		P.withoutNormalizing(e, (() => {
			var { mode: n = "lowest", split: r = !1, voids: i = !1 } = t, { at: a = e.selection, match: o } = t;
			if (a) {
				o ??= I.isPath(a) ? Ul(e, a) : (t) => P.isBlock(e, t), I.isPath(a) && (a = P.range(e, a));
				var s = R.isRange(a) ? P.rangeRef(e, a) : null, c = P.nodes(e, {
					at: a,
					match: o,
					mode: n,
					voids: i
				}), l = Array.from(c, ((t) => {
					var [, n] = t;
					return P.pathRef(e, n);
				})).reverse(), u = function(t) {
					var n = t.unref(), [a] = P.node(e, n), o = P.range(e, n);
					r && s && (o = R.intersection(s.current, o)), B.liftNodes(e, {
						at: o,
						match: (e) => N.isAncestor(a) && a.children.includes(e),
						voids: i
					});
				};
				for (var d of l) u(d);
				s && s.unref();
			}
		}));
	},
	wrapNodes(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		P.withoutNormalizing(e, (() => {
			var { mode: r = "lowest", split: i = !1, voids: a = !1 } = n, { match: o, at: s = e.selection } = n;
			if (s) {
				if (o ??= I.isPath(s) ? Ul(e, s) : e.isInline(t) ? (t) => P.isInline(e, t) || z.isText(t) : (t) => P.isBlock(e, t), i && R.isRange(s)) {
					var [c, l] = R.edges(s), u = P.rangeRef(e, s, { affinity: "inward" });
					B.splitNodes(e, {
						at: l,
						match: o,
						voids: a
					}), B.splitNodes(e, {
						at: c,
						match: o,
						voids: a
					}), s = u.unref(), n.at ?? B.select(e, s);
				}
				for (var [, d] of Array.from(P.nodes(e, {
					at: s,
					match: e.isInline(t) ? (t) => P.isBlock(e, t) : (e) => P.isEditor(e),
					mode: "lowest",
					voids: a
				}))) {
					var f = R.isRange(s) ? R.intersection(s, P.range(e, d)) : s;
					if (f) {
						var p = Array.from(P.nodes(e, {
							at: f,
							match: o,
							mode: r,
							voids: a
						}));
						if (p.length > 0 && function() {
							var [n] = p, r = p[p.length - 1], [, i] = n, [, o] = r;
							if (i.length === 0 && o.length === 0) return "continue";
							var s = I.equals(i, o) ? I.parent(i) : I.common(i, o), c = P.range(e, i, o), [l] = P.node(e, s), u = s.length + 1, d = I.next(o.slice(0, u)), f = Vl(Vl({}, t), {}, { children: [] });
							B.insertNodes(e, f, {
								at: d,
								voids: a
							}), B.moveNodes(e, {
								at: c,
								match: (e) => N.isAncestor(l) && l.children.includes(e),
								to: d.concat(0),
								voids: a
							});
						}() === "continue") continue;
					}
				}
			}
		}));
	}
}, Hl = (e, t) => {
	if (N.isElement(t)) {
		var n = t;
		return !!P.isVoid(e, t) || n.children.length === 1 && Hl(e, n.children[0]);
	}
	return !P.isEditor(t);
}, yne = (e, t) => {
	if (R.isCollapsed(t)) return t.anchor;
	var [, n] = R.edges(t), r = P.pointRef(e, n);
	return B.delete(e, { at: t }), r.unref();
}, Ul = (e, t) => {
	var [n] = P.node(e, t);
	return (e) => e === n;
};
function Wl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function Gl(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? Wl(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wl(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var bne = {
	collapse(e) {
		var { edge: t = "anchor" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { selection: n } = e;
		if (n) {
			if (t === "anchor") B.select(e, n.anchor);
			else if (t === "focus") B.select(e, n.focus);
			else if (t === "start") {
				var [r] = R.edges(n);
				B.select(e, r);
			} else if (t === "end") {
				var [, i] = R.edges(n);
				B.select(e, i);
			}
		}
	},
	deselect(e) {
		var { selection: t } = e;
		t && e.apply({
			type: "set_selection",
			properties: t,
			newProperties: null
		});
	},
	move(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { selection: n } = e, { distance: r = 1, unit: i = "character", reverse: a = !1 } = t, { edge: o = null } = t;
		if (n) {
			o === "start" && (o = R.isBackward(n) ? "focus" : "anchor"), o === "end" && (o = R.isBackward(n) ? "anchor" : "focus");
			var { anchor: s, focus: c } = n, l = {
				distance: r,
				unit: i
			}, u = {};
			if (o == null || o === "anchor") {
				var d = a ? P.before(e, s, l) : P.after(e, s, l);
				d && (u.anchor = d);
			}
			if (o == null || o === "focus") {
				var f = a ? P.before(e, c, l) : P.after(e, c, l);
				f && (u.focus = f);
			}
			B.setSelection(e, u);
		}
	},
	select(e, t) {
		var { selection: n } = e;
		if (t = P.range(e, t), n) B.setSelection(e, t);
		else {
			if (!R.isRange(t)) throw Error(`When setting the selection and the current selection is \`null\` you must provide at least an \`anchor\` and \`focus\`, but you passed: ${JSON.stringify(t)}`);
			e.apply({
				type: "set_selection",
				properties: n,
				newProperties: t
			});
		}
	},
	setPoint(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { selection: r } = e, { edge: i = "both" } = n;
		if (r) {
			i === "start" && (i = R.isBackward(r) ? "focus" : "anchor"), i === "end" && (i = R.isBackward(r) ? "anchor" : "focus");
			var { anchor: a, focus: o } = r, s = i === "anchor" ? a : o;
			B.setSelection(e, { [i === "anchor" ? "anchor" : "focus"]: Gl(Gl({}, s), t) });
		}
	},
	setSelection(e, t) {
		var { selection: n } = e, r = {}, i = {};
		if (n) {
			for (var a in t) (a === "anchor" && t.anchor != null && !L.equals(t.anchor, n.anchor) || a === "focus" && t.focus != null && !L.equals(t.focus, n.focus) || a !== "anchor" && a !== "focus" && t[a] !== n[a]) && (r[a] = n[a], i[a] = t[a]);
			Object.keys(r).length > 0 && e.apply({
				type: "set_selection",
				properties: r,
				newProperties: i
			});
		}
	}
}, xne = {
	delete(e) {
		var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		P.withoutNormalizing(e, (() => {
			var { reverse: n = !1, unit: r = "character", distance: i = 1, voids: a = !1 } = t, { at: o = e.selection, hanging: s = !1 } = t;
			if (o) {
				if (R.isRange(o) && R.isCollapsed(o) && (o = o.anchor), L.isPoint(o)) {
					var c = P.void(e, {
						at: o,
						mode: "highest"
					});
					if (!a && c) {
						var [, l] = c;
						o = l;
					} else {
						var u = {
							unit: r,
							distance: i
						};
						o = {
							anchor: o,
							focus: n ? P.before(e, o, u) || P.start(e, []) : P.after(e, o, u) || P.end(e, [])
						}, s = !0;
					}
				}
				if (I.isPath(o)) B.removeNodes(e, {
					at: o,
					voids: a
				});
				else if (!R.isCollapsed(o)) {
					if (!s) {
						var [, d] = R.edges(o), f = P.end(e, []);
						L.equals(d, f) || (o = P.unhangRange(e, o, { voids: a }));
					}
					var [p, m] = R.edges(o), h = P.above(e, {
						match: (t) => P.isBlock(e, t),
						at: p,
						voids: a
					}), g = P.above(e, {
						match: (t) => P.isBlock(e, t),
						at: m,
						voids: a
					}), _ = h && g && !I.equals(h[1], g[1]), v = I.equals(p.path, m.path), y = a ? null : P.void(e, {
						at: p,
						mode: "highest"
					}), b = a ? null : P.void(e, {
						at: m,
						mode: "highest"
					});
					if (y) {
						var x = P.before(e, p);
						x && h && I.isAncestor(h[1], x.path) && (p = x);
					}
					if (b) {
						var S = P.after(e, m);
						S && g && I.isAncestor(g[1], S.path) && (m = S);
					}
					var C, w = [];
					for (var T of P.nodes(e, {
						at: o,
						voids: a
					})) {
						var [E, D] = T;
						C && I.compare(D, C) === 0 || (!a && P.isVoid(e, E) || !I.isCommon(D, p.path) && !I.isCommon(D, m.path)) && (w.push(T), C = D);
					}
					var O = Array.from(w, ((t) => {
						var [, n] = t;
						return P.pathRef(e, n);
					})), ee = P.pointRef(e, p), te = P.pointRef(e, m);
					if (!v && !y) {
						var ne = ee.current, [re] = P.leaf(e, ne), { path: k } = ne, { offset: ie } = p, A = re.text.slice(ie);
						A.length > 0 && e.apply({
							type: "remove_text",
							path: k,
							offset: ie,
							text: A
						});
					}
					for (var ae of O) {
						var oe = ae.unref();
						B.removeNodes(e, {
							at: oe,
							voids: a
						});
					}
					if (!b) {
						var se = te.current, [ce] = P.leaf(e, se), { path: le } = se, ue = v ? p.offset : 0, de = ce.text.slice(ue, m.offset);
						de.length > 0 && e.apply({
							type: "remove_text",
							path: le,
							offset: ue,
							text: de
						});
					}
					!v && _ && te.current && ee.current && B.mergeNodes(e, {
						at: te.current,
						hanging: !0,
						voids: a
					});
					var fe = n ? ee.unref() || te.unref() : te.unref() || ee.unref();
					t.at == null && fe && B.select(e, fe);
				}
			}
		}));
	},
	insertFragment(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		P.withoutNormalizing(e, (() => {
			var { hanging: r = !1, voids: i = !1 } = n, { at: a = e.selection } = n;
			if (t.length && a) {
				if (R.isRange(a)) if (r || (a = P.unhangRange(e, a)), R.isCollapsed(a)) a = a.anchor;
				else {
					var [, o] = R.edges(a);
					if (!i && P.void(e, { at: o })) return;
					var s = P.pointRef(e, o);
					B.delete(e, { at: a }), a = s.unref();
				}
				else I.isPath(a) && (a = P.start(e, a));
				if (i || !P.void(e, { at: a })) {
					var c = P.above(e, {
						at: a,
						match: (t) => P.isInline(e, t),
						mode: "highest",
						voids: i
					});
					if (c) {
						var [, l] = c;
						P.isEnd(e, a, l) ? a = P.after(e, l) : P.isStart(e, a, l) && (a = P.before(e, l));
					}
					var [, u] = P.above(e, {
						match: (t) => P.isBlock(e, t),
						at: a,
						voids: i
					}), d = P.isStart(e, a, u), f = P.isEnd(e, a, u), p = d && f, m = !d || d && f, h = !f, [, g] = F.first({ children: t }, []), [, _] = F.last({ children: t }, []), v = [], y = (t) => {
						var [n, r] = t;
						return r.length !== 0 && (!!p || !(m && I.isAncestor(r, g) && N.isElement(n) && !e.isVoid(n) && !e.isInline(n)) && !(h && I.isAncestor(r, _) && N.isElement(n) && !e.isVoid(n) && !e.isInline(n)));
					};
					for (var b of F.nodes({ children: t }, { pass: y })) y(b) && v.push(b);
					var x = [], S = [], C = [], w = !0, T = !1;
					for (var [E] of v) N.isElement(E) && !e.isInline(E) ? (w = !1, T = !0, S.push(E)) : w ? x.push(E) : C.push(E);
					var [D] = P.nodes(e, {
						at: a,
						match: (t) => z.isText(t) || P.isInline(e, t),
						mode: "highest",
						voids: i
					}), [, O] = D, ee = P.isStart(e, a, O), te = P.isEnd(e, a, O), ne = P.pathRef(e, f ? I.next(u) : u), re = P.pathRef(e, te ? I.next(O) : O), k = P.pathRef(e, u);
					B.splitNodes(e, {
						at: a,
						match: (t) => T ? P.isBlock(e, t) : z.isText(t) || P.isInline(e, t),
						mode: T ? "lowest" : "highest",
						voids: i
					});
					var ie = P.pathRef(e, !ee || ee && te ? I.next(O) : O);
					if (B.insertNodes(e, x, {
						at: ie.current,
						match: (t) => z.isText(t) || P.isInline(e, t),
						mode: "highest",
						voids: i
					}), p && S.length && B.delete(e, {
						at: k.unref(),
						voids: i
					}), B.insertNodes(e, S, {
						at: ne.current,
						match: (t) => P.isBlock(e, t),
						mode: "lowest",
						voids: i
					}), B.insertNodes(e, C, {
						at: re.current,
						match: (t) => z.isText(t) || P.isInline(e, t),
						mode: "highest",
						voids: i
					}), !n.at) {
						var A = C.length > 0 ? I.previous(re.current) : S.length > 0 ? I.previous(ne.current) : I.previous(ie.current), ae = P.end(e, A);
						B.select(e, ae);
					}
					ie.unref(), ne.unref(), re.unref();
				}
			}
		}));
	},
	insertText(e, t) {
		var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		P.withoutNormalizing(e, (() => {
			var { voids: r = !1 } = n, { at: i = e.selection } = n;
			if (i) {
				if (I.isPath(i) && (i = P.range(e, i)), R.isRange(i)) if (R.isCollapsed(i)) i = i.anchor;
				else {
					var a = R.end(i);
					if (!r && P.void(e, { at: a })) return;
					var o = P.pointRef(e, a);
					B.delete(e, {
						at: i,
						voids: r
					}), i = o.unref(), B.setSelection(e, {
						anchor: i,
						focus: i
					});
				}
				if (r || !P.void(e, { at: i })) {
					var { path: s, offset: c } = i;
					t.length > 0 && e.apply({
						type: "insert_text",
						path: s,
						offset: c,
						text: t
					});
				}
			}
		}));
	}
};
function Kl(e, t) {
	var n = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var r = Object.getOwnPropertySymbols(e);
		t && (r = r.filter((function(t) {
			return Object.getOwnPropertyDescriptor(e, t).enumerable;
		}))), n.push.apply(n, r);
	}
	return n;
}
function ql(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : arguments[t];
		t % 2 ? Kl(Object(n), !0).forEach((function(t) {
			dl(e, t, n[t]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Kl(Object(n)).forEach((function(t) {
			Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
		}));
	}
	return e;
}
var B = ql(ql(ql(ql({}, hne), vne), bne), xne), Jl = "[object Map]", Yl = "[object Set]", Sne = /^\[object .+?Constructor\]$/, Cne = /^(?:0|[1-9]\d*)$/, wne = "[\\ud800-\\udfff]", Xl = "[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]", Zl = "\\ud83c[\\udffb-\\udfff]", Ql = "[^\\ud800-\\udfff]", $l = "(?:\\ud83c[\\udde6-\\uddff]){2}", eu = "[\\ud800-\\udbff][\\udc00-\\udfff]", tu = "(?:" + Xl + "|" + Zl + ")?", Tne = "[\\ufe0e\\ufe0f]?" + tu + ("(?:\\u200d(?:" + [
	Ql,
	$l,
	eu
].join("|") + ")[\\ufe0e\\ufe0f]?" + tu + ")*"), Ene = "(?:" + [
	Ql + Xl + "?",
	Xl,
	$l,
	eu,
	wne
].join("|") + ")", Dne = RegExp(Zl + "(?=" + Zl + ")|" + Ene + Tne, "g"), One = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"), kne = typeof e == "object" && e && e.Object === Object && e, Ane = typeof self == "object" && self && self.Object === Object && self, nu = kne || Ane || Function("return this")();
function jne(e, t) {
	return function(e, t) {
		for (var n = -1, r = e ? e.length : 0, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
		return i;
	}(t, (function(t) {
		return e[t];
	}));
}
function Mne(e) {
	var t = -1, n = Array(e.size);
	return e.forEach((function(e, r) {
		n[++t] = [r, e];
	})), n;
}
function Nne(e) {
	var t = -1, n = Array(e.size);
	return e.forEach((function(e) {
		n[++t] = e;
	})), n;
}
function Pne(e) {
	return function(e) {
		return One.test(e);
	}(e) ? function(e) {
		return e.match(Dne) || [];
	}(e) : function(e) {
		return e.split("");
	}(e);
}
var ru, iu, au = Function.prototype, ou = Object.prototype, su = nu["__core-js_shared__"], cu = function() {
	var e = /[^.]+$/.exec(su && su.keys && su.keys.IE_PROTO || "");
	return e ? "Symbol(src)_1." + e : "";
}(), lu = au.toString, uu = ou.hasOwnProperty, du = ou.toString, Fne = RegExp("^" + lu.call(uu).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), fu = nu.Symbol, pu = fu ? fu.iterator : void 0, Ine = ou.propertyIsEnumerable, Lne = (ru = Object.keys, iu = Object, function(e) {
	return ru(iu(e));
}), mu = Du(nu, "DataView"), hu = Du(nu, "Map"), gu = Du(nu, "Promise"), _u = Du(nu, "Set"), vu = Du(nu, "WeakMap"), yu = Au(mu), bu = Au(hu), xu = Au(gu), Su = Au(_u), Cu = Au(vu);
function wu(e, t) {
	var n = ju(e) || function(e) {
		return function(e) {
			return Fu(e) && Mu(e);
		}(e) && uu.call(e, "callee") && (!Ine.call(e, "callee") || du.call(e) == "[object Arguments]");
	}(e) ? function(e, t) {
		for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
		return r;
	}(e.length, String) : [], r = n.length, i = !!r;
	for (var a in e) !t && !uu.call(e, a) || i && (a == "length" || ku(a, r)) || n.push(a);
	return n;
}
function Tu(e) {
	return !Pu(e) || function(e) {
		return !!cu && cu in e;
	}(e) ? !1 : (Nu(e) || function(e) {
		var t = !1;
		if (e != null && typeof e.toString != "function") try {
			t = !!(e + "");
		} catch {}
		return t;
	}(e) ? Fne : Sne).test(Au(e));
}
function Eu(e) {
	if (n = (t = e) && t.constructor, r = typeof n == "function" && n.prototype || ou, t !== r) return Lne(e);
	var t, n, r, i = [];
	for (var a in Object(e)) uu.call(e, a) && a != "constructor" && i.push(a);
	return i;
}
function Du(e, t) {
	var n = function(e, t) {
		return e?.[t];
	}(e, t);
	return Tu(n) ? n : void 0;
}
var Ou = function(e) {
	return du.call(e);
};
function ku(e, t) {
	return !!(t ??= 9007199254740991) && (typeof e == "number" || Cne.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
function Au(e) {
	if (e != null) {
		try {
			return lu.call(e);
		} catch {}
		try {
			return e + "";
		} catch {}
	}
	return "";
}
(mu && Ou(new mu(/* @__PURE__ */ new ArrayBuffer(1))) != "[object DataView]" || hu && Ou(new hu()) != Jl || gu && Ou(gu.resolve()) != "[object Promise]" || _u && Ou(new _u()) != Yl || vu && Ou(new vu()) != "[object WeakMap]") && (Ou = function(e) {
	var t = du.call(e), n = t == "[object Object]" ? e.constructor : void 0, r = n ? Au(n) : void 0;
	if (r) switch (r) {
		case yu: return "[object DataView]";
		case bu: return Jl;
		case xu: return "[object Promise]";
		case Su: return Yl;
		case Cu: return "[object WeakMap]";
	}
	return t;
});
var ju = Array.isArray;
function Mu(e) {
	return e != null && function(e) {
		return typeof e == "number" && e > -1 && e % 1 == 0 && e <= 9007199254740991;
	}(e.length) && !Nu(e);
}
function Nu(e) {
	var t = Pu(e) ? du.call(e) : "";
	return t == "[object Function]" || t == "[object GeneratorFunction]";
}
function Pu(e) {
	var t = typeof e;
	return !!e && (t == "object" || t == "function");
}
function Fu(e) {
	return !!e && typeof e == "object";
}
function Rne(e) {
	return e ? jne(e, function(e) {
		return Mu(e) ? wu(e) : Eu(e);
	}(e)) : [];
}
var Iu = function(e) {
	if (!e) return [];
	if (Mu(e)) return function(e) {
		return typeof e == "string" || !ju(e) && Fu(e) && du.call(e) == "[object String]";
	}(e) ? Pne(e) : function(e, t) {
		var n = -1, r = e.length;
		for (t ||= Array(r); ++n < r;) t[n] = e[n];
		return t;
	}(e);
	if (pu && e[pu]) return function(e) {
		for (var t, n = []; !(t = e.next()).done;) n.push(t.value);
		return n;
	}(e[pu]());
	var t = Ou(e);
	return (t == Jl ? Mne : t == Yl ? Nne : Rne)(e);
};
function Lu(e) {
	return typeof e == "object" && !!e && "constructor" in e && e.constructor === Object;
}
function Ru(e, t) {
	e === void 0 && (e = {}), t === void 0 && (t = {}), Object.keys(t).forEach((function(n) {
		e[n] === void 0 ? e[n] = t[n] : Lu(t[n]) && Lu(e[n]) && Object.keys(t[n]).length > 0 && Ru(e[n], t[n]);
	}));
}
var zu = {
	body: {},
	addEventListener: function() {},
	removeEventListener: function() {},
	activeElement: {
		blur: function() {},
		nodeName: ""
	},
	querySelector: function() {
		return null;
	},
	querySelectorAll: function() {
		return [];
	},
	getElementById: function() {
		return null;
	},
	createEvent: function() {
		return { initEvent: function() {} };
	},
	createElement: function() {
		return {
			children: [],
			childNodes: [],
			style: {},
			setAttribute: function() {},
			getElementsByTagName: function() {
				return [];
			}
		};
	},
	createElementNS: function() {
		return {};
	},
	importNode: function() {
		return null;
	},
	location: {
		hash: "",
		host: "",
		hostname: "",
		href: "",
		origin: "",
		pathname: "",
		protocol: "",
		search: ""
	}
};
function Bu() {
	var e = typeof document < "u" ? document : {};
	return Ru(e, zu), e;
}
var zne = {
	document: zu,
	navigator: { userAgent: "" },
	location: {
		hash: "",
		host: "",
		hostname: "",
		href: "",
		origin: "",
		pathname: "",
		protocol: "",
		search: ""
	},
	history: {
		replaceState: function() {},
		pushState: function() {},
		go: function() {},
		back: function() {}
	},
	CustomEvent: function() {
		return this;
	},
	addEventListener: function() {},
	removeEventListener: function() {},
	getComputedStyle: function() {
		return { getPropertyValue: function() {
			return "";
		} };
	},
	Image: function() {},
	Date: function() {},
	screen: {},
	setTimeout: function() {},
	clearTimeout: function() {},
	matchMedia: function() {
		return {};
	},
	requestAnimationFrame: function(e) {
		return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
	},
	cancelAnimationFrame: function(e) {
		typeof setTimeout < "u" && clearTimeout(e);
	}
};
function Vu() {
	var e = typeof window < "u" ? window : {};
	return Ru(e, zne), e;
}
function Hu(e) {
	return Hu = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
		return e.__proto__ || Object.getPrototypeOf(e);
	}, Hu(e);
}
function Uu(e, t) {
	return Uu = Object.setPrototypeOf || function(e, t) {
		return e.__proto__ = t, e;
	}, Uu(e, t);
}
function Wu() {
	if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
	if (typeof Proxy == "function") return !0;
	try {
		return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {}))), !0;
	} catch {
		return !1;
	}
}
function Gu(e, t, n) {
	return Gu = Wu() ? Reflect.construct : function(e, t, n) {
		var r = [null];
		r.push.apply(r, t);
		var i = new (Function.bind.apply(e, r))();
		return n && Uu(i, n.prototype), i;
	}, Gu.apply(null, arguments);
}
function Ku(e) {
	var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
	return Ku = function(e) {
		if (e === null || !function(e) {
			return Function.toString.call(e).indexOf("[native code]") !== -1;
		}(e)) return e;
		if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
		if (t !== void 0) {
			if (t.has(e)) return t.get(e);
			t.set(e, n);
		}
		function n() {
			return Gu(e, arguments, Hu(this).constructor);
		}
		return n.prototype = Object.create(e.prototype, { constructor: {
			value: n,
			enumerable: !1,
			writable: !0,
			configurable: !0
		} }), Uu(n, e);
	}, Ku(e);
}
var qu = function(e) {
	var t, n;
	function r(t) {
		var n, r, i;
		return n = e.call.apply(e, [this].concat(t)) || this, r = function(e) {
			if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
			return e;
		}(n), i = r.__proto__, Object.defineProperty(r, "__proto__", {
			get: function() {
				return i;
			},
			set: function(e) {
				i.__proto__ = e;
			}
		}), n;
	}
	return n = e, (t = r).prototype = Object.create(n.prototype), t.prototype.constructor = t, t.__proto__ = n, r;
}(Ku(Array));
function Ju(e) {
	e === void 0 && (e = []);
	var t = [];
	return e.forEach((function(e) {
		Array.isArray(e) ? t.push.apply(t, Ju(e)) : t.push(e);
	})), t;
}
function Yu(e, t) {
	return Array.prototype.filter.call(e, t);
}
function V(e, t) {
	var n = Vu(), r = Bu(), i = [];
	if (!t && e instanceof qu) return e;
	if (!e) return new qu(i);
	if (typeof e == "string") {
		var a = e.trim();
		if (a.indexOf("<") >= 0 && a.indexOf(">") >= 0) {
			var o = "div";
			a.indexOf("<li") === 0 && (o = "ul"), a.indexOf("<tr") === 0 && (o = "tbody"), a.indexOf("<td") !== 0 && a.indexOf("<th") !== 0 || (o = "tr"), a.indexOf("<tbody") === 0 && (o = "table"), a.indexOf("<option") === 0 && (o = "select");
			var s = r.createElement(o);
			s.innerHTML = a;
			for (var c = 0; c < s.childNodes.length; c += 1) i.push(s.childNodes[c]);
		} else i = function(e, t) {
			if (typeof e != "string") return [e];
			for (var n = [], r = t.querySelectorAll(e), i = 0; i < r.length; i += 1) n.push(r[i]);
			return n;
		}(e.trim(), t || r);
	} else if (e.nodeType || e === n || e === r) i.push(e);
	else if (Array.isArray(e)) {
		if (e instanceof qu) return e;
		i = e;
	}
	return new qu(function(e) {
		for (var t = [], n = 0; n < e.length; n += 1) t.indexOf(e[n]) === -1 && t.push(e[n]);
		return t;
	}(i));
}
function Xu() {
	var e = Ju([...arguments].map((function(e) {
		return e.split(" ");
	})));
	return this.forEach((function(t) {
		var n;
		(n = t.classList).add.apply(n, e);
	})), this;
}
function Zu() {
	var e = Ju([...arguments].map((function(e) {
		return e.split(" ");
	})));
	return this.forEach((function(t) {
		var n;
		(n = t.classList).remove.apply(n, e);
	})), this;
}
function Qu() {
	var e = Ju([...arguments].map((function(e) {
		return e.split(" ");
	})));
	return Yu(this, (function(t) {
		return e.filter((function(e) {
			return t.classList.contains(e);
		})).length > 0;
	})).length > 0;
}
function $u(e, t) {
	if (arguments.length === 1 && typeof e == "string") return this[0] ? this[0].getAttribute(e) : void 0;
	for (var n = 0; n < this.length; n += 1) if (arguments.length === 2) this[n].setAttribute(e, t);
	else for (var r in e) this[n][r] = e[r], this[n].setAttribute(r, e[r]);
	return this;
}
function ed(e) {
	for (var t = 0; t < this.length; t += 1) this[t].removeAttribute(e);
	return this;
}
function td() {
	var e = this[0];
	if (e) {
		var t, n = {};
		if (e.dataset) for (var r in e.dataset) n[r] = e.dataset[r];
		else for (var i = 0; i < e.attributes.length; i += 1) {
			var a = e.attributes[i];
			a.name.indexOf("data-") >= 0 && (n[t = a.name.split("data-")[1], t.toLowerCase().replace(/-(.)/g, (function(e, t) {
				return t.toUpperCase();
			}))] = a.value);
		}
		for (var o in n) n[o] === "false" ? n[o] = !1 : n[o] === "true" ? n[o] = !0 : parseFloat(n[o]) === 1 * n[o] && (n[o] *= 1);
		return n;
	}
}
function nd(e) {
	if (e === void 0) {
		var t = this[0];
		if (!t) return;
		if (t.multiple && t.nodeName.toLowerCase() === "select") {
			for (var n = [], r = 0; r < t.selectedOptions.length; r += 1) n.push(t.selectedOptions[r].value);
			return n;
		}
		return t.value;
	}
	for (var i = 0; i < this.length; i += 1) {
		var a = this[i];
		if (Array.isArray(e) && a.multiple && a.nodeName.toLowerCase() === "select") for (var o = 0; o < a.options.length; o += 1) a.options[o].selected = e.indexOf(a.options[o].value) >= 0;
		else a.value = e;
	}
	return this;
}
function rd() {
	var e = [...arguments], t = e[0], n = e[1], r = e[2], i = e[3];
	function a(e) {
		var t = e.target;
		if (t) {
			var i = e.target.dom7EventData || [];
			if (i.indexOf(e) < 0 && i.unshift(e), V(t).is(n)) r.apply(t, i);
			else for (var a = V(t).parents(), o = 0; o < a.length; o += 1) V(a[o]).is(n) && r.apply(a[o], i);
		}
	}
	function o(e) {
		var t = e && e.target && e.target.dom7EventData || [];
		t.indexOf(e) < 0 && t.unshift(e), r.apply(this, t);
	}
	typeof e[1] == "function" && (t = e[0], r = e[1], i = e[2], n = void 0), i ||= !1;
	for (var s, c = t.split(" "), l = 0; l < this.length; l += 1) {
		var u = this[l];
		if (n) for (s = 0; s < c.length; s += 1) {
			var d = c[s];
			u.dom7LiveListeners ||= {}, u.dom7LiveListeners[d] || (u.dom7LiveListeners[d] = []), u.dom7LiveListeners[d].push({
				listener: r,
				proxyListener: a
			}), u.addEventListener(d, a, i);
		}
		else for (s = 0; s < c.length; s += 1) {
			var f = c[s];
			u.dom7Listeners ||= {}, u.dom7Listeners[f] || (u.dom7Listeners[f] = []), u.dom7Listeners[f].push({
				listener: r,
				proxyListener: o
			}), u.addEventListener(f, o, i);
		}
	}
	return this;
}
function id() {
	var e = [...arguments], t = e[0], n = e[1], r = e[2], i = e[3];
	typeof e[1] == "function" && (t = e[0], r = e[1], i = e[2], n = void 0), i ||= !1;
	for (var a = t.split(" "), o = 0; o < a.length; o += 1) for (var s = a[o], c = 0; c < this.length; c += 1) {
		var l = this[c], u = void 0;
		if (!n && l.dom7Listeners ? u = l.dom7Listeners[s] : n && l.dom7LiveListeners && (u = l.dom7LiveListeners[s]), u && u.length) for (var d = u.length - 1; d >= 0; --d) {
			var f = u[d];
			r && f.listener === r || r && f.listener && f.listener.dom7proxy && f.listener.dom7proxy === r ? (l.removeEventListener(s, f.proxyListener, i), u.splice(d, 1)) : r || (l.removeEventListener(s, f.proxyListener, i), u.splice(d, 1));
		}
	}
	return this;
}
function ad() {
	var e = Vu();
	return this[0] === e ? e.innerWidth : this.length > 0 ? parseFloat(this.css("width")) : null;
}
function od() {
	var e = Vu();
	return this[0] === e ? e.innerHeight : this.length > 0 ? parseFloat(this.css("height")) : null;
}
function sd() {
	if (this.length > 0) {
		var e = Vu(), t = Bu(), n = this[0], r = n.getBoundingClientRect(), i = t.body, a = n.clientTop || i.clientTop || 0, o = n.clientLeft || i.clientLeft || 0, s = n === e ? e.scrollY : n.scrollTop, c = n === e ? e.scrollX : n.scrollLeft;
		return {
			top: r.top + s - a,
			left: r.left + c - o
		};
	}
	return null;
}
function cd() {
	for (var e = 0; e < this.length; e += 1) this[e].style.display = "none";
	return this;
}
function ld() {
	for (var e = Vu(), t = 0; t < this.length; t += 1) {
		var n = this[t];
		n.style.display === "none" && (n.style.display = ""), e.getComputedStyle(n, null).getPropertyValue("display") === "none" && (n.style.display = "block");
	}
	return this;
}
function ud(e, t) {
	var n, r = Vu();
	if (arguments.length === 1) {
		if (typeof e != "string") {
			for (n = 0; n < this.length; n += 1) for (var i in e) this[n].style[i] = e[i];
			return this;
		}
		if (this[0]) return r.getComputedStyle(this[0], null).getPropertyValue(e);
	}
	if (arguments.length === 2 && typeof e == "string") {
		for (n = 0; n < this.length; n += 1) this[n].style[e] = t;
		return this;
	}
	return this;
}
function dd(e) {
	return e && this.forEach((function(t, n) {
		e.apply(t, [t, n]);
	})), this;
}
function fd(e) {
	return V(Yu(this, e));
}
function pd(e) {
	if (e === void 0) return this[0] ? this[0].innerHTML : null;
	for (var t = 0; t < this.length; t += 1) this[t].innerHTML = e;
	return this;
}
function md(e) {
	if (e === void 0) return this[0] ? this[0].textContent.trim() : null;
	for (var t = 0; t < this.length; t += 1) this[t].textContent = e;
	return this;
}
function hd(e) {
	var t, n, r = Vu(), i = Bu(), a = this[0];
	if (!a || e === void 0) return !1;
	if (typeof e == "string") {
		if (a.matches) return a.matches(e);
		if (a.webkitMatchesSelector) return a.webkitMatchesSelector(e);
		if (a.msMatchesSelector) return a.msMatchesSelector(e);
		for (t = V(e), n = 0; n < t.length; n += 1) if (t[n] === a) return !0;
		return !1;
	}
	if (e === i) return a === i;
	if (e === r) return a === r;
	if (e.nodeType || e instanceof qu) {
		for (t = e.nodeType ? [e] : e, n = 0; n < t.length; n += 1) if (t[n] === a) return !0;
		return !1;
	}
	return !1;
}
function gd() {
	for (var e, t = Bu(), n = 0; n < arguments.length; n += 1) {
		e = n < 0 || arguments.length <= n ? void 0 : arguments[n];
		for (var r = 0; r < this.length; r += 1) if (typeof e == "string") {
			var i = t.createElement("div");
			for (i.innerHTML = e; i.firstChild;) this[r].appendChild(i.firstChild);
		} else if (e instanceof qu) for (var a = 0; a < e.length; a += 1) this[r].appendChild(e[a]);
		else this[r].appendChild(e);
	}
	return this;
}
function _d(e) {
	var t, n, r = Bu();
	for (t = 0; t < this.length; t += 1) if (typeof e == "string") {
		var i = r.createElement("div");
		for (i.innerHTML = e, n = i.childNodes.length - 1; n >= 0; --n) this[t].insertBefore(i.childNodes[n], this[t].childNodes[0]);
	} else if (e instanceof qu) for (n = 0; n < e.length; n += 1) this[t].insertBefore(e[n], this[t].childNodes[0]);
	else this[t].insertBefore(e, this[t].childNodes[0]);
	return this;
}
function vd(e) {
	for (var t = [], n = 0; n < this.length; n += 1) this[n].parentNode !== null && (e ? V(this[n].parentNode).is(e) && t.push(this[n].parentNode) : t.push(this[n].parentNode));
	return V(t);
}
function yd(e) {
	for (var t = [], n = 0; n < this.length; n += 1) for (var r = this[n].parentNode; r;) e ? V(r).is(e) && t.push(r) : t.push(r), r = r.parentNode;
	return V(t);
}
function bd(e) {
	for (var t = [], n = 0; n < this.length; n += 1) for (var r = this[n].querySelectorAll(e), i = 0; i < r.length; i += 1) t.push(r[i]);
	return V(t);
}
function xd(e) {
	for (var t = [], n = 0; n < this.length; n += 1) for (var r = this[n].children, i = 0; i < r.length; i += 1) e && !V(r[i]).is(e) || t.push(r[i]);
	return V(t);
}
function Sd() {
	for (var e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]);
	return this;
}
function Cd() {
	for (var e = 0; e < this.length; e += 1) {
		var t = this[e];
		if (t.nodeType === 1) {
			for (var n = 0; n < t.childNodes.length; n += 1) t.childNodes[n].parentNode && t.childNodes[n].parentNode.removeChild(t.childNodes[n]);
			t.textContent = "";
		}
	}
	return this;
}
V.fn = qu.prototype;
var wd = "resize scroll".split(" ");
function Td(e) {
	return function() {
		var t = [...arguments];
		if (t[0] === void 0) {
			for (var n = 0; n < this.length; n += 1) wd.indexOf(e) < 0 && (e in this[n] ? this[n][e]() : V(this[n]).trigger(e));
			return this;
		}
		return this.on.apply(this, [e].concat(t));
	};
}
var Ed = Td("click"), Dd = Td("focus"), Od = "[object GeneratorFunction]", Bne = /^(?:0|[1-9]\d*)$/;
function Vne(e, t) {
	for (var n = -1, r = e ? e.length : 0; ++n < r && !1 !== t(e[n], n, e););
	return e;
}
var kd = Object.prototype, Ad = kd.hasOwnProperty, jd = kd.toString, Hne = kd.propertyIsEnumerable, Une = function(e, t) {
	return function(n) {
		return e(t(n));
	};
}(Object.keys, Object);
function Wne(e, t) {
	var n = Pd(e) || function(e) {
		return function(e) {
			return function(e) {
				return !!e && typeof e == "object";
			}(e) && Fd(e);
		}(e) && Ad.call(e, "callee") && (!Hne.call(e, "callee") || jd.call(e) == "[object Arguments]");
	}(e) ? function(e, t) {
		for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
		return r;
	}(e.length, String) : [], r = n.length, i = !!r;
	for (var a in e) !t && !Ad.call(e, a) || i && (a == "length" || Jne(a, r)) || n.push(a);
	return n;
}
var Md, Nd, Gne = (Md = function(e, t) {
	return e && Kne(e, t, Yne);
}, function(e, t) {
	if (e == null) return e;
	if (!Fd(e)) return Md(e, t);
	for (var n = e.length, r = Nd ? n : -1, i = Object(e); (Nd ? r-- : ++r < n) && !1 !== t(i[r], r, i););
	return e;
}), Kne = function(e) {
	return function(t, n, r) {
		for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
			var c = o[e ? s : ++i];
			if (!1 === n(a[c], c, a)) break;
		}
		return t;
	};
}();
function qne(e) {
	if (n = (t = e) && t.constructor, r = typeof n == "function" && n.prototype || kd, t !== r) return Une(e);
	var t, n, r, i = [];
	for (var a in Object(e)) Ad.call(e, a) && a != "constructor" && i.push(a);
	return i;
}
function Jne(e, t) {
	return !!(t ??= 9007199254740991) && (typeof e == "number" || Bne.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var Pd = Array.isArray;
function Fd(e) {
	return e != null && function(e) {
		return typeof e == "number" && e > -1 && e % 1 == 0 && e <= 9007199254740991;
	}(e.length) && !function(e) {
		var t = function(e) {
			var t = typeof e;
			return !!e && (t == "object" || t == "function");
		}(e) ? jd.call(e) : "";
		return t == "[object Function]" || t == Od;
	}(e);
}
function Yne(e) {
	return Fd(e) ? Wne(e) : qne(e);
}
function Xne(e) {
	return e;
}
var Id = function(e, t) {
	return (Pd(e) ? Vne : Gne)(e, typeof t == "function" ? t : Xne);
}, Ld = (e = 21) => {
	let t = "", n = crypto.getRandomValues(new Uint8Array(e));
	for (; e--;) {
		let r = 63 & n[e];
		t += r < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r < 63 ? "_" : "-";
	}
	return t;
}, Zne = /^\s+|\s+$/g, Qne = /^[-+]0x[0-9a-f]+$/i, $ne = /^0b[01]+$/i, ere = /^0o[0-7]+$/i, tre = parseInt, nre = typeof e == "object" && e && e.Object === Object && e, rre = typeof self == "object" && self && self.Object === Object && self, ire = nre || rre || Function("return this")(), are = Object.prototype.toString, ore = Math.max, sre = Math.min, Rd = function() {
	return ire.Date.now();
};
function cre(e, t, n) {
	var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
	if (typeof e != "function") throw TypeError("Expected a function");
	function p(t) {
		var n = r, a = i;
		return r = i = void 0, l = t, o = e.apply(a, n);
	}
	function m(e) {
		return l = e, s = setTimeout(g, t), u ? p(e) : o;
	}
	function h(e) {
		var n = e - c;
		return c === void 0 || n >= t || n < 0 || d && e - l >= a;
	}
	function g() {
		var e = Rd();
		if (h(e)) return _(e);
		s = setTimeout(g, function(e) {
			var n = t - (e - c);
			return d ? sre(n, a - (e - l)) : n;
		}(e));
	}
	function _(e) {
		return s = void 0, f && r ? p(e) : (r = i = void 0, o);
	}
	function v() {
		var e = Rd(), n = h(e);
		if (r = arguments, i = this, c = e, n) {
			if (s === void 0) return m(c);
			if (d) return s = setTimeout(g, t), p(c);
		}
		return s === void 0 && (s = setTimeout(g, t)), o;
	}
	return t = Bd(t) || 0, zd(n) && (u = !!n.leading, a = (d = "maxWait" in n) ? ore(Bd(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f), v.cancel = function() {
		s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
	}, v.flush = function() {
		return s === void 0 ? o : _(Rd());
	}, v;
}
function zd(e) {
	var t = typeof e;
	return !!e && (t == "object" || t == "function");
}
function Bd(e) {
	if (typeof e == "number") return e;
	if (function(e) {
		return typeof e == "symbol" || function(e) {
			return !!e && typeof e == "object";
		}(e) && are.call(e) == "[object Symbol]";
	}(e)) return NaN;
	if (zd(e)) {
		var t = typeof e.valueOf == "function" ? e.valueOf() : e;
		e = zd(t) ? t + "" : t;
	}
	if (typeof e != "string") return e === 0 ? e : +e;
	e = e.replace(Zne, "");
	var n = $ne.test(e);
	return n || ere.test(e) ? tre(e.slice(2), n ? 2 : 8) : Qne.test(e) ? NaN : +e;
}
var Vd = function(e, t, n) {
	var r = !0, i = !0;
	if (typeof e != "function") throw TypeError("Expected a function");
	return zd(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), cre(e, t, {
		leading: r,
		maxWait: t,
		trailing: i
	});
}, lre = {
	createElement: function(e, t) {
		return document.createElement(e, t);
	},
	createElementNS: function(e, t, n) {
		return document.createElementNS(e, t, n);
	},
	createTextNode: function(e) {
		return document.createTextNode(e);
	},
	createComment: function(e) {
		return document.createComment(e);
	},
	insertBefore: function(e, t, n) {
		e.insertBefore(t, n);
	},
	removeChild: function(e, t) {
		e.removeChild(t);
	},
	appendChild: function(e, t) {
		e.appendChild(t);
	},
	parentNode: function(e) {
		return e.parentNode;
	},
	nextSibling: function(e) {
		return e.nextSibling;
	},
	tagName: function(e) {
		return e.tagName;
	},
	setTextContent: function(e, t) {
		e.textContent = t;
	},
	getTextContent: function(e) {
		return e.textContent;
	},
	isElement: function(e) {
		return e.nodeType === 1;
	},
	isText: function(e) {
		return e.nodeType === 3;
	},
	isComment: function(e) {
		return e.nodeType === 8;
	}
};
function Hd(e, t, n, r, i) {
	return {
		sel: e,
		data: t,
		children: n,
		text: r,
		elm: i,
		key: t === void 0 ? void 0 : t.key
	};
}
var Ud = Array.isArray;
function Wd(e) {
	return typeof e == "string" || typeof e == "number" || e instanceof String || e instanceof Number;
}
function Gd(e) {
	return e === void 0;
}
function Kd(e) {
	return e !== void 0;
}
var qd = Hd("", {}, [], void 0, void 0);
function Jd(e, t) {
	let n = e.key === t.key, r = e.data?.is === t.data?.is;
	return e.sel === t.sel && n && r;
}
function ure(e, t, n) {
	let r = {};
	for (let i = t; i <= n; ++i) {
		let t = e[i]?.key;
		t !== void 0 && (r[t] = i);
	}
	return r;
}
var dre = [
	"create",
	"update",
	"remove",
	"destroy",
	"pre",
	"post"
];
function Yd(e, t) {
	let n = {
		create: [],
		update: [],
		remove: [],
		destroy: [],
		pre: [],
		post: []
	}, r = t === void 0 ? lre : t;
	for (let t of dre) for (let r of e) {
		let e = r[t];
		e !== void 0 && n[t].push(e);
	}
	function i(e) {
		let t = e.id ? "#" + e.id : "", n = e.getAttribute("class"), i = n ? "." + n.split(" ").join(".") : "";
		return Hd(r.tagName(e).toLowerCase() + t + i, {}, [], void 0, e);
	}
	function a(e, t) {
		return function() {
			if (--t == 0) {
				let t = r.parentNode(e);
				r.removeChild(t, e);
			}
		};
	}
	function o(e, t) {
		var i;
		let a, s = e.data;
		if (s !== void 0) {
			let t = s.hook?.init;
			Kd(t) && (t(e), s = e.data);
		}
		let c = e.children, l = e.sel;
		if (l === "!") Gd(e.text) && (e.text = ""), e.elm = r.createComment(e.text);
		else if (l !== void 0) {
			let u = l.indexOf("#"), d = l.indexOf(".", u), f = u > 0 ? u : l.length, p = d > 0 ? d : l.length, m = u !== -1 || d !== -1 ? l.slice(0, Math.min(f, p)) : l, h = e.elm = Kd(s) && Kd(a = s.ns) ? r.createElementNS(a, m, s) : r.createElement(m, s);
			for (f < p && h.setAttribute("id", l.slice(f + 1, p)), d > 0 && h.setAttribute("class", l.slice(p + 1).replace(/\./g, " ")), a = 0; a < n.create.length; ++a) n.create[a](qd, e);
			if (Ud(c)) for (a = 0; a < c.length; ++a) {
				let e = c[a];
				e != null && r.appendChild(h, o(e, t));
			}
			else Wd(e.text) && r.appendChild(h, r.createTextNode(e.text));
			let g = e.data.hook;
			Kd(g) && ((i = g.create) == null || i.call(g, qd, e), g.insert && t.push(e));
		} else e.elm = r.createTextNode(e.text);
		return e.elm;
	}
	function s(e, t, n, i, a, s) {
		for (; i <= a; ++i) {
			let a = n[i];
			a != null && r.insertBefore(e, o(a, s), t);
		}
	}
	function c(e) {
		var t, r;
		let i = e.data;
		if (i !== void 0) {
			(r = (t = i?.hook)?.destroy) == null || r.call(t, e);
			for (let t = 0; t < n.destroy.length; ++t) n.destroy[t](e);
			if (e.children !== void 0) for (let t = 0; t < e.children.length; ++t) {
				let n = e.children[t];
				n != null && typeof n != "string" && c(n);
			}
		}
	}
	function l(e, t, i, o) {
		for (; i <= o; ++i) {
			let o, s, l = t[i];
			if (l != null) if (Kd(l.sel)) {
				c(l), o = n.remove.length + 1, s = a(l.elm, o);
				for (let e = 0; e < n.remove.length; ++e) n.remove[e](l, s);
				let e = l?.data?.hook?.remove;
				Kd(e) ? e(l, s) : s();
			} else r.removeChild(e, l.elm);
		}
	}
	function u(e, t, i) {
		var a, c, d, f;
		let p = t.data?.hook;
		(a = p?.prepatch) == null || a.call(p, e, t);
		let m = t.elm = e.elm, h = e.children, g = t.children;
		if (e !== t) {
			if (t.data !== void 0) {
				for (let r = 0; r < n.update.length; ++r) n.update[r](e, t);
				(d = (c = t.data.hook)?.update) == null || d.call(c, e, t);
			}
			Gd(t.text) ? Kd(h) && Kd(g) ? h !== g && function(e, t, n, i) {
				let a, c, d, f, p = 0, m = 0, h = t.length - 1, g = t[0], _ = t[h], v = n.length - 1, y = n[0], b = n[v];
				for (; p <= h && m <= v;) g == null ? g = t[++p] : _ == null ? _ = t[--h] : y == null ? y = n[++m] : b == null ? b = n[--v] : Jd(g, y) ? (u(g, y, i), g = t[++p], y = n[++m]) : Jd(_, b) ? (u(_, b, i), _ = t[--h], b = n[--v]) : Jd(g, b) ? (u(g, b, i), r.insertBefore(e, g.elm, r.nextSibling(_.elm)), g = t[++p], b = n[--v]) : Jd(_, y) ? (u(_, y, i), r.insertBefore(e, _.elm, g.elm), _ = t[--h], y = n[++m]) : (a === void 0 && (a = ure(t, p, h)), c = a[y.key], Gd(c) ? r.insertBefore(e, o(y, i), g.elm) : (d = t[c], d.sel === y.sel ? (u(d, y, i), t[c] = void 0, r.insertBefore(e, d.elm, g.elm)) : r.insertBefore(e, o(y, i), g.elm)), y = n[++m]);
				(p <= h || m <= v) && (p > h ? (f = n[v + 1] == null ? null : n[v + 1].elm, s(e, f, n, m, v, i)) : l(e, t, p, h));
			}(m, h, g, i) : Kd(g) ? (Kd(e.text) && r.setTextContent(m, ""), s(m, null, g, 0, g.length - 1, i)) : Kd(h) ? l(m, h, 0, h.length - 1) : Kd(e.text) && r.setTextContent(m, "") : e.text !== t.text && (Kd(h) && l(m, h, 0, h.length - 1), r.setTextContent(m, t.text)), (f = p?.postpatch) == null || f.call(p, e, t);
		}
	}
	return function(e, t) {
		let a, s, c, d = [];
		for (a = 0; a < n.pre.length; ++a) n.pre[a]();
		for (function(e) {
			return e.sel !== void 0;
		}(e) || (e = i(e)), Jd(e, t) ? u(e, t, d) : (s = e.elm, c = r.parentNode(s), o(t, d), c !== null && (r.insertBefore(c, t.elm, r.nextSibling(s)), l(c, [e], 0, 0))), a = 0; a < d.length; ++a) d[a].data.hook.insert(d[a]);
		for (a = 0; a < n.post.length; ++a) n.post[a]();
		return t;
	};
}
function Xd(e, t, n) {
	if (e.ns = "http://www.w3.org/2000/svg", n !== "foreignObject" && t !== void 0) for (let e = 0; e < t.length; ++e) {
		let n = t[e].data;
		n !== void 0 && Xd(n, t[e].children, t[e].sel);
	}
}
function Zd(e, t, n) {
	let r, i, a, o = {};
	if (n === void 0 ? t != null && (Ud(t) ? r = t : Wd(t) ? i = t.toString() : t && t.sel ? r = [t] : o = t) : (t !== null && (o = t), Ud(n) ? r = n : Wd(n) ? i = n.toString() : n && n.sel && (r = [n])), r !== void 0) for (a = 0; a < r.length; ++a) Wd(r[a]) && (r[a] = Hd(void 0, void 0, void 0, r[a], void 0));
	return e[0] !== "s" || e[1] !== "v" || e[2] !== "g" || e.length !== 3 && e[3] !== "." && e[3] !== "#" || Xd(o, r, e), Hd(e, o, r, i, void 0);
}
function Qd(e, t) {
	let n, r = t.elm, i = e.data.attrs, a = t.data.attrs;
	if ((i || a) && i !== a) {
		for (n in i ||= {}, a ||= {}, a) {
			let e = a[n];
			i[n] !== e && (!0 === e ? r.setAttribute(n, "") : !1 === e ? r.removeAttribute(n) : n.charCodeAt(0) === 120 ? n.charCodeAt(3) === 58 ? r.setAttributeNS("http://www.w3.org/XML/1998/namespace", n, e) : n.charCodeAt(5) === 58 ? r.setAttributeNS("http://www.w3.org/1999/xlink", n, e) : r.setAttribute(n, e) : r.setAttribute(n, e));
		}
		for (n in i) n in a || r.removeAttribute(n);
	}
}
var $d = {
	create: Qd,
	update: Qd
};
function ef(e, t) {
	let n, r, i = t.elm, a = e.data.class, o = t.data.class;
	if ((a || o) && a !== o) {
		for (r in a ||= {}, o ||= {}, a) a[r] && !Object.prototype.hasOwnProperty.call(o, r) && i.classList.remove(r);
		for (r in o) n = o[r], n !== a[r] && i.classList[n ? "add" : "remove"](r);
	}
}
var tf = {
	create: ef,
	update: ef
}, nf = /[A-Z]/g;
function rf(e, t) {
	let n = t.elm, r, i = e.data.dataset, a = t.data.dataset;
	if (!i && !a || i === a) return;
	i ||= {}, a ||= {};
	let o = n.dataset;
	for (r in i) a[r] || (o ? r in o && delete o[r] : n.removeAttribute("data-" + r.replace(nf, "-$&").toLowerCase()));
	for (r in a) i[r] !== a[r] && (o ? o[r] = a[r] : n.setAttribute("data-" + r.replace(nf, "-$&").toLowerCase(), a[r]));
}
var af = {
	create: rf,
	update: rf
};
function of(e, t, n) {
	if (typeof e == "function") e.call(t, n, t);
	else if (typeof e == "object") for (let r = 0; r < e.length; r++) of(e[r], t, n);
}
function sf(e, t) {
	let n = e.type, r = t.data.on;
	r && r[n] && of(r[n], t, e);
}
function cf(e, t) {
	let n = e.data.on, r = e.listener, i = e.elm, a = t && t.data.on, o = t && t.elm, s;
	if (n !== a) {
		if (n && r) if (a) for (s in n) a[s] || i.removeEventListener(s, r, !1);
		else for (s in n) i.removeEventListener(s, r, !1);
		if (a) {
			let r = t.listener = e.listener || function e(t) {
				sf(t, e.vnode);
			};
			if (r.vnode = t, n) for (s in a) n[s] || o.addEventListener(s, r, !1);
			else for (s in a) o.addEventListener(s, r, !1);
		}
	}
}
var lf = {
	create: cf,
	update: cf,
	destroy: cf
};
function uf(e, t) {
	let n, r, i, a = t.elm, o = e.data.props, s = t.data.props;
	if ((o || s) && o !== s) for (n in o ||= {}, s ||= {}, s) r = s[n], i = o[n], i === r || n === "value" && a[n] === r || (a[n] = r);
}
var df = {
	create: uf,
	update: uf
}, ff = typeof window < "u" && window.requestAnimationFrame.bind(window) || setTimeout, pf = !1;
function mf(e, t, n) {
	(function(e) {
		ff((function() {
			ff(e);
		}));
	})((function() {
		e[t] = n;
	}));
}
function hf(e, t) {
	let n, r, i = t.elm, a = e.data.style, o = t.data.style;
	if (!a && !o || a === o) return;
	a ||= {}, o ||= {};
	let s = "delayed" in a;
	for (r in a) o[r] || (r[0] === "-" && r[1] === "-" ? i.style.removeProperty(r) : i.style[r] = "");
	for (r in o) if (n = o[r], r === "delayed" && o.delayed) for (let e in o.delayed) n = o.delayed[e], s && n === a.delayed[e] || mf(i.style, e, n);
	else r !== "remove" && n !== a[r] && (r[0] === "-" && r[1] === "-" ? i.style.setProperty(r, n) : i.style[r] = n);
}
var gf = {
	pre: function() {
		pf = !1;
	},
	create: hf,
	update: hf,
	destroy: function(e) {
		let t, n, r = e.elm, i = e.data.style;
		if (i && (t = i.destroy)) for (n in t) r.style[n] = t[n];
	},
	remove: function(e, t) {
		let n = e.data.style;
		if (!n || !n.remove) return void t();
		let r;
		pf ||= (e.elm.offsetLeft, !0);
		let i = e.elm, a = 0, o = n.remove, s = 0, c = [];
		for (r in o) c.push(r), i.style[r] = o[r];
		let l = getComputedStyle(i)["transition-property"].split(", ");
		for (; a < l.length; ++a) c.indexOf(l[a]) !== -1 && s++;
		i.addEventListener("transitionend", (function(e) {
			e.target === i && --s, s === 0 && t();
		}));
	}
};
function _f(e, t) {
	for (let n of e) n != null && !1 !== n && n !== "" && (Array.isArray(n) ? _f(n, t) : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? t.push(Hd(void 0, void 0, void 0, String(n), void 0)) : t.push(n));
	return t;
}
function H(e, t, ...n) {
	let r = _f(n, []);
	return typeof e == "function" ? e(t, r) : r.length === 1 && !r[0].sel && r[0].text ? Zd(e, t, r[0].text) : Zd(e, t, r);
}
H ||= {};
var vf = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, yf = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, bf = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", xf = "[\\ud800-\\udfff]", Sf = "[" + bf + "]", Cf = "[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]", wf = "\\d+", Tf = "[\\u2700-\\u27bf]", Ef = "[a-z\\xdf-\\xf6\\xf8-\\xff]", Df = "[^\\ud800-\\udfff" + bf + wf + "\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]", Of = "\\ud83c[\\udffb-\\udfff]", kf = "[^\\ud800-\\udfff]", Af = "(?:\\ud83c[\\udde6-\\uddff]){2}", jf = "[\\ud800-\\udbff][\\udc00-\\udfff]", Mf = "[A-Z\\xc0-\\xd6\\xd8-\\xde]", Nf = "(?:" + Ef + "|" + Df + ")", Pf = "(?:" + Mf + "|" + Df + ")", Ff = "(?:" + Cf + "|" + Of + ")?", If = "[\\ufe0e\\ufe0f]?" + Ff + ("(?:\\u200d(?:" + [
	kf,
	Af,
	jf
].join("|") + ")[\\ufe0e\\ufe0f]?" + Ff + ")*"), Lf = "(?:" + [
	Tf,
	Af,
	jf
].join("|") + ")" + If, Rf = "(?:" + [
	kf + Cf + "?",
	Cf,
	Af,
	jf,
	xf
].join("|") + ")", zf = RegExp("['’]", "g"), Bf = RegExp(Cf, "g"), Vf = RegExp(Of + "(?=" + Of + ")|" + Rf + If, "g"), Hf = RegExp([
	Mf + "?" + Ef + "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + [
		Sf,
		Mf,
		"$"
	].join("|") + ")",
	Pf + "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + [
		Sf,
		Mf + Nf,
		"$"
	].join("|") + ")",
	Mf + "?" + Nf + "+(?:['’](?:d|ll|m|re|s|t|ve))?",
	Mf + "+(?:['’](?:D|LL|M|RE|S|T|VE))?",
	wf,
	Lf
].join("|"), "g"), Uf = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"), Wf = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Gf = typeof e == "object" && e && e.Object === Object && e, Kf = typeof self == "object" && self && self.Object === Object && self, qf = Gf || Kf || Function("return this")(), Jf, Yf = (Jf = {
	À: "A",
	Á: "A",
	Â: "A",
	Ã: "A",
	Ä: "A",
	Å: "A",
	à: "a",
	á: "a",
	â: "a",
	ã: "a",
	ä: "a",
	å: "a",
	Ç: "C",
	ç: "c",
	Ð: "D",
	ð: "d",
	È: "E",
	É: "E",
	Ê: "E",
	Ë: "E",
	è: "e",
	é: "e",
	ê: "e",
	ë: "e",
	Ì: "I",
	Í: "I",
	Î: "I",
	Ï: "I",
	ì: "i",
	í: "i",
	î: "i",
	ï: "i",
	Ñ: "N",
	ñ: "n",
	Ò: "O",
	Ó: "O",
	Ô: "O",
	Õ: "O",
	Ö: "O",
	Ø: "O",
	ò: "o",
	ó: "o",
	ô: "o",
	õ: "o",
	ö: "o",
	ø: "o",
	Ù: "U",
	Ú: "U",
	Û: "U",
	Ü: "U",
	ù: "u",
	ú: "u",
	û: "u",
	ü: "u",
	Ý: "Y",
	ý: "y",
	ÿ: "y",
	Æ: "Ae",
	æ: "ae",
	Þ: "Th",
	þ: "th",
	ß: "ss",
	Ā: "A",
	Ă: "A",
	Ą: "A",
	ā: "a",
	ă: "a",
	ą: "a",
	Ć: "C",
	Ĉ: "C",
	Ċ: "C",
	Č: "C",
	ć: "c",
	ĉ: "c",
	ċ: "c",
	č: "c",
	Ď: "D",
	Đ: "D",
	ď: "d",
	đ: "d",
	Ē: "E",
	Ĕ: "E",
	Ė: "E",
	Ę: "E",
	Ě: "E",
	ē: "e",
	ĕ: "e",
	ė: "e",
	ę: "e",
	ě: "e",
	Ĝ: "G",
	Ğ: "G",
	Ġ: "G",
	Ģ: "G",
	ĝ: "g",
	ğ: "g",
	ġ: "g",
	ģ: "g",
	Ĥ: "H",
	Ħ: "H",
	ĥ: "h",
	ħ: "h",
	Ĩ: "I",
	Ī: "I",
	Ĭ: "I",
	Į: "I",
	İ: "I",
	ĩ: "i",
	ī: "i",
	ĭ: "i",
	į: "i",
	ı: "i",
	Ĵ: "J",
	ĵ: "j",
	Ķ: "K",
	ķ: "k",
	ĸ: "k",
	Ĺ: "L",
	Ļ: "L",
	Ľ: "L",
	Ŀ: "L",
	Ł: "L",
	ĺ: "l",
	ļ: "l",
	ľ: "l",
	ŀ: "l",
	ł: "l",
	Ń: "N",
	Ņ: "N",
	Ň: "N",
	Ŋ: "N",
	ń: "n",
	ņ: "n",
	ň: "n",
	ŋ: "n",
	Ō: "O",
	Ŏ: "O",
	Ő: "O",
	ō: "o",
	ŏ: "o",
	ő: "o",
	Ŕ: "R",
	Ŗ: "R",
	Ř: "R",
	ŕ: "r",
	ŗ: "r",
	ř: "r",
	Ś: "S",
	Ŝ: "S",
	Ş: "S",
	Š: "S",
	ś: "s",
	ŝ: "s",
	ş: "s",
	š: "s",
	Ţ: "T",
	Ť: "T",
	Ŧ: "T",
	ţ: "t",
	ť: "t",
	ŧ: "t",
	Ũ: "U",
	Ū: "U",
	Ŭ: "U",
	Ů: "U",
	Ű: "U",
	Ų: "U",
	ũ: "u",
	ū: "u",
	ŭ: "u",
	ů: "u",
	ű: "u",
	ų: "u",
	Ŵ: "W",
	ŵ: "w",
	Ŷ: "Y",
	ŷ: "y",
	Ÿ: "Y",
	Ź: "Z",
	Ż: "Z",
	Ž: "Z",
	ź: "z",
	ż: "z",
	ž: "z",
	IJ: "IJ",
	ij: "ij",
	Œ: "Oe",
	œ: "oe",
	ʼn: "'n",
	ſ: "ss"
}, function(e) {
	return Jf?.[e];
});
function Xf(e) {
	return Uf.test(e);
}
function Zf(e) {
	return Xf(e) ? function(e) {
		return e.match(Vf) || [];
	}(e) : function(e) {
		return e.split("");
	}(e);
}
var Qf = Object.prototype.toString, $f = qf.Symbol, ep = $f ? $f.prototype : void 0, tp = ep ? ep.toString : void 0;
function np(e) {
	if (typeof e == "string") return e;
	if (function(e) {
		return typeof e == "symbol" || function(e) {
			return !!e && typeof e == "object";
		}(e) && Qf.call(e) == "[object Symbol]";
	}(e)) return tp ? tp.call(e) : "";
	var t = e + "";
	return t == "0" && 1 / e == -Infinity ? "-0" : t;
}
function rp(e, t, n) {
	var r = e.length;
	return n = n === void 0 ? r : n, !t && n >= r ? e : function(e, t, n) {
		var r = -1, i = e.length;
		t < 0 && (t = -t > i ? 0 : i + t), (n = n > i ? i : n) < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
		for (var a = Array(i); ++r < i;) a[r] = e[r + t];
		return a;
	}(e, t, n);
}
function ip(e) {
	return e == null ? "" : np(e);
}
for (var ap, op = (ap = function(e, t, n) {
	return t = t.toLowerCase(), e + (n ? cp(ip(t).toLowerCase()) : t);
}, function(e) {
	return function(e, t, n, r) {
		var i = -1, a = e ? e.length : 0;
		for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
		return n;
	}(function(e, t, n) {
		return e = ip(e), (t = n ? void 0 : t) === void 0 ? function(e) {
			return Wf.test(e);
		}(e) ? function(e) {
			return e.match(Hf) || [];
		}(e) : function(e) {
			return e.match(vf) || [];
		}(e) : e.match(t) || [];
	}(function(e) {
		return (e = ip(e)) && e.replace(yf, Yf).replace(Bf, "");
	}(e).replace(zf, "")), ap, "");
}), sp, cp = (sp = "toUpperCase", function(e) {
	var t = Xf(e = ip(e)) ? Zf(e) : void 0, n = t ? t[0] : e.charAt(0), r = t ? rp(t, 1).join("") : e.slice(1);
	return n[sp]() + r;
}), lp = op, up = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), dp = {
	alt: "altKey",
	control: "ctrlKey",
	meta: "metaKey",
	shift: "shiftKey"
}, fp = {
	add: "+",
	break: "pause",
	cmd: "meta",
	command: "meta",
	ctl: "control",
	ctrl: "control",
	del: "delete",
	down: "arrowdown",
	esc: "escape",
	ins: "insert",
	left: "arrowleft",
	mod: up ? "meta" : "control",
	opt: "alt",
	option: "alt",
	return: "enter",
	right: "arrowright",
	space: " ",
	spacebar: " ",
	up: "arrowup",
	win: "meta",
	windows: "meta"
}, pp = {
	backspace: 8,
	tab: 9,
	enter: 13,
	shift: 16,
	control: 17,
	alt: 18,
	pause: 19,
	capslock: 20,
	escape: 27,
	" ": 32,
	pageup: 33,
	pagedown: 34,
	end: 35,
	home: 36,
	arrowleft: 37,
	arrowup: 38,
	arrowright: 39,
	arrowdown: 40,
	insert: 45,
	delete: 46,
	meta: 91,
	numlock: 144,
	scrolllock: 145,
	";": 186,
	"=": 187,
	",": 188,
	"-": 189,
	".": 190,
	"/": 191,
	"`": 192,
	"[": 219,
	"\\": 220,
	"]": 221,
	"'": 222
}, mp = 1; mp < 20; mp++) pp["f" + mp] = 111 + mp;
function hp(e, t, n) {
	t && !("byKey" in t) && (n = t, t = null), Array.isArray(e) || (e = [e]);
	var r = e.map((function(e) {
		return function(e, t) {
			var n = t && t.byKey, r = {}, i = (e = e.replace("++", "+add")).split("+"), a = i.length;
			for (var o in dp) r[dp[o]] = !1;
			var s = !0, c = !1, l = void 0;
			try {
				for (var u, d = i[Symbol.iterator](); !(s = (u = d.next()).done); s = !0) {
					var f = u.value, p = f.endsWith("?") && f.length > 1;
					p && (f = f.slice(0, -1));
					var m = _p(f), h = dp[m];
					if (f.length > 1 && !h && !fp[f] && !pp[m]) throw TypeError("Unknown modifier: \"" + f + "\"");
					a !== 1 && h || (n ? r.key = m : r.which = gp(f)), h && (r[h] = !p || null);
				}
			} catch (e) {
				c = !0, l = e;
			} finally {
				try {
					!s && d.return && d.return();
				} finally {
					if (c) throw l;
				}
			}
			return r;
		}(e, t);
	})), i = function(e) {
		return r.some((function(t) {
			return function(e, t) {
				for (var n in e) {
					var r = e[n], i = void 0;
					if (r != null && ((i = n === "key" && t.key != null ? t.key.toLowerCase() : n === "which" ? r === 91 && t.which === 93 ? 91 : t.which : t[n]) != null || !1 !== r) && i !== r) return !1;
				}
				return !0;
			}(t, e);
		}));
	};
	return n == null ? i : i(n);
}
function gp(e) {
	return e = _p(e), pp[e] || e.toUpperCase().charCodeAt(0);
}
function _p(e) {
	return e = e.toLowerCase(), e = fp[e] || e;
}
var vp = hp, yp = function(e, t) {
	return hp(e, { byKey: !0 }, t);
}, bp = /^\s+|\s+$/g, xp = /^[-+]0x[0-9a-f]+$/i, Sp = /^0b[01]+$/i, Cp = /^0o[0-7]+$/i, wp = parseInt, Tp = typeof e == "object" && e && e.Object === Object && e, Ep = typeof self == "object" && self && self.Object === Object && self, Dp = Tp || Ep || Function("return this")(), Op = Object.prototype.toString, kp = Math.max, fre = Math.min, Ap = function() {
	return Dp.Date.now();
};
function jp(e) {
	var t = typeof e;
	return !!e && (t == "object" || t == "function");
}
function Mp(e) {
	if (typeof e == "number") return e;
	if (function(e) {
		return typeof e == "symbol" || function(e) {
			return !!e && typeof e == "object";
		}(e) && Op.call(e) == "[object Symbol]";
	}(e)) return NaN;
	if (jp(e)) {
		var t = typeof e.valueOf == "function" ? e.valueOf() : e;
		e = jp(t) ? t + "" : t;
	}
	if (typeof e != "string") return e === 0 ? e : +e;
	e = e.replace(bp, "");
	var n = Sp.test(e);
	return n || Cp.test(e) ? wp(e.slice(2), n ? 2 : 8) : xp.test(e) ? NaN : +e;
}
var Np, Pp = function(e, t, n) {
	var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
	if (typeof e != "function") throw TypeError("Expected a function");
	function p(t) {
		var n = r, a = i;
		return r = i = void 0, l = t, o = e.apply(a, n);
	}
	function m(e) {
		return l = e, s = setTimeout(g, t), u ? p(e) : o;
	}
	function h(e) {
		var n = e - c;
		return c === void 0 || n >= t || n < 0 || d && e - l >= a;
	}
	function g() {
		var e = Ap();
		if (h(e)) return _(e);
		s = setTimeout(g, function(e) {
			var n = t - (e - c);
			return d ? fre(n, a - (e - l)) : n;
		}(e));
	}
	function _(e) {
		return s = void 0, f && r ? p(e) : (r = i = void 0, o);
	}
	function v() {
		var e = Ap(), n = h(e);
		if (r = arguments, i = this, c = e, n) {
			if (s === void 0) return m(c);
			if (d) return s = setTimeout(g, t), p(c);
		}
		return s === void 0 && (s = setTimeout(g, t)), o;
	}
	return t = Mp(t) || 0, jp(n) && (u = !!n.leading, a = (d = "maxWait" in n) ? kp(Mp(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f), v.cancel = function() {
		s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
	}, v.flush = function() {
		return s === void 0 ? o : _(Ap());
	}, v;
}, Fp = n((function(t, n) {
	var r = "__lodash_hash_undefined__", i = 9007199254740991, a = "[object Arguments]", o = "[object Boolean]", s = "[object Date]", c = "[object Function]", l = "[object GeneratorFunction]", u = "[object Map]", d = "[object Number]", f = "[object Object]", p = "[object Promise]", m = "[object RegExp]", h = "[object Set]", g = "[object String]", _ = "[object Symbol]", v = "[object WeakMap]", y = "[object ArrayBuffer]", b = "[object DataView]", x = "[object Float32Array]", S = "[object Float64Array]", C = "[object Int8Array]", w = "[object Int16Array]", T = "[object Int32Array]", E = "[object Uint8Array]", D = "[object Uint8ClampedArray]", O = "[object Uint16Array]", ee = "[object Uint32Array]", te = /\w*$/, ne = /^\[object .+?Constructor\]$/, re = /^(?:0|[1-9]\d*)$/, k = {};
	k[a] = k["[object Array]"] = k[y] = k[b] = k[o] = k[s] = k[x] = k[S] = k[C] = k[w] = k[T] = k[u] = k[d] = k[f] = k[m] = k[h] = k[g] = k[_] = k[E] = k[D] = k[O] = k[ee] = !0, k["[object Error]"] = k[c] = k[v] = !1;
	var ie = typeof e == "object" && e && e.Object === Object && e, A = typeof self == "object" && self && self.Object === Object && self, ae = ie || A || Function("return this")(), oe = n && !n.nodeType && n, se = oe && t && !t.nodeType && t, ce = se && se.exports === oe;
	function le(e, t) {
		return e.set(t[0], t[1]), e;
	}
	function ue(e, t) {
		return e.add(t), e;
	}
	function de(e, t, n, r) {
		var i = -1, a = e ? e.length : 0;
		for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
		return n;
	}
	function fe(e) {
		var t = !1;
		if (e != null && typeof e.toString != "function") try {
			t = !!(e + "");
		} catch {}
		return t;
	}
	function pe(e) {
		var t = -1, n = Array(e.size);
		return e.forEach((function(e, r) {
			n[++t] = [r, e];
		})), n;
	}
	function me(e, t) {
		return function(n) {
			return e(t(n));
		};
	}
	function he(e) {
		var t = -1, n = Array(e.size);
		return e.forEach((function(e) {
			n[++t] = e;
		})), n;
	}
	var ge = Array.prototype, _e = Function.prototype, ve = Object.prototype, ye = ae["__core-js_shared__"], be = function() {
		var e = /[^.]+$/.exec(ye && ye.keys && ye.keys.IE_PROTO || "");
		return e ? "Symbol(src)_1." + e : "";
	}(), xe = _e.toString, Se = ve.hasOwnProperty, Ce = ve.toString, we = RegExp("^" + xe.call(Se).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Te = ce ? ae.Buffer : void 0, Ee = ae.Symbol, De = ae.Uint8Array, Oe = me(Object.getPrototypeOf, Object), ke = Object.create, Ae = ve.propertyIsEnumerable, je = ge.splice, Me = Object.getOwnPropertySymbols, Ne = Te ? Te.isBuffer : void 0, Pe = me(Object.keys, Object), Fe = ot(ae, "DataView"), Ie = ot(ae, "Map"), Le = ot(ae, "Promise"), Re = ot(ae, "Set"), ze = ot(ae, "WeakMap"), Be = ot(Object, "create"), Ve = dt(Fe), He = dt(Ie), Ue = dt(Le), We = dt(Re), Ge = dt(ze), Ke = Ee ? Ee.prototype : void 0, qe = Ke ? Ke.valueOf : void 0;
	function Je(e) {
		var t = -1, n = e ? e.length : 0;
		for (this.clear(); ++t < n;) {
			var r = e[t];
			this.set(r[0], r[1]);
		}
	}
	function Ye(e) {
		var t = -1, n = e ? e.length : 0;
		for (this.clear(); ++t < n;) {
			var r = e[t];
			this.set(r[0], r[1]);
		}
	}
	function Xe(e) {
		var t = -1, n = e ? e.length : 0;
		for (this.clear(); ++t < n;) {
			var r = e[t];
			this.set(r[0], r[1]);
		}
	}
	function Ze(e) {
		this.__data__ = new Ye(e);
	}
	function Qe(e, t) {
		var n = pt(e) || function(e) {
			return function(e) {
				return function(e) {
					return !!e && typeof e == "object";
				}(e) && mt(e);
			}(e) && Se.call(e, "callee") && (!Ae.call(e, "callee") || Ce.call(e) == a);
		}(e) ? function(e, t) {
			for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
			return r;
		}(e.length, String) : [], r = n.length, i = !!r;
		for (var o in e) !t && !Se.call(e, o) || i && (o == "length" || lt(o, r)) || n.push(o);
		return n;
	}
	function $e(e, t, n) {
		var r = e[t];
		Se.call(e, t) && ft(r, n) && (n !== void 0 || t in e) || (e[t] = n);
	}
	function et(e, t) {
		for (var n = e.length; n--;) if (ft(e[n][0], t)) return n;
		return -1;
	}
	function tt(e, t, n, r, i, p, v) {
		var ne;
		if (r && (ne = p ? r(e, i, p, v) : r(e)), ne !== void 0) return ne;
		if (!_t(e)) return e;
		var re = pt(e);
		if (re) {
			if (ne = function(e) {
				var t = e.length, n = e.constructor(t);
				return t && typeof e[0] == "string" && Se.call(e, "index") && (n.index = e.index, n.input = e.input), n;
			}(e), !t) return function(e, t) {
				var n = -1, r = e.length;
				for (t ||= Array(r); ++n < r;) t[n] = e[n];
				return t;
			}(e, ne);
		} else {
			var ie = ct(e), A = ie == c || ie == l;
			if (ht(e)) return function(e, t) {
				if (t) return e.slice();
				var n = new e.constructor(e.length);
				return e.copy(n), n;
			}(e, t);
			if (ie == f || ie == a || A && !p) {
				if (fe(e)) return p ? e : {};
				if (ne = function(e) {
					return typeof e.constructor != "function" || ut(e) ? {} : (t = Oe(e), _t(t) ? ke(t) : {});
					var t;
				}(A ? {} : e), !t) return function(e, t) {
					return it(e, st(e), t);
				}(e, function(e, t) {
					return e && it(t, vt(t), e);
				}(ne, e));
			} else {
				if (!k[ie]) return p ? e : {};
				ne = function(e, t, n, r) {
					var i = e.constructor;
					switch (t) {
						case y: return rt(e);
						case o:
						case s: return new i(+e);
						case b: return function(e, t) {
							var n = t ? rt(e.buffer) : e.buffer;
							return new e.constructor(n, e.byteOffset, e.byteLength);
						}(e, r);
						case x:
						case S:
						case C:
						case w:
						case T:
						case E:
						case D:
						case O:
						case ee: return function(e, t) {
							var n = t ? rt(e.buffer) : e.buffer;
							return new e.constructor(n, e.byteOffset, e.length);
						}(e, r);
						case u: return function(e, t, n) {
							return de(t ? n(pe(e), !0) : pe(e), le, new e.constructor());
						}(e, r, n);
						case d:
						case g: return new i(e);
						case m: return function(e) {
							var t = new e.constructor(e.source, te.exec(e));
							return t.lastIndex = e.lastIndex, t;
						}(e);
						case h: return function(e, t, n) {
							return de(t ? n(he(e), !0) : he(e), ue, new e.constructor());
						}(e, r, n);
						case _: return function(e) {
							return qe ? Object(qe.call(e)) : {};
						}(e);
					}
				}(e, ie, tt, t);
			}
		}
		v ||= new Ze();
		var ae = v.get(e);
		if (ae) return ae;
		if (v.set(e, ne), !re) var oe = n ? function(e) {
			return function(e, t, n) {
				var r = t(e);
				return pt(e) ? r : function(e, t) {
					for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
					return e;
				}(r, n(e));
			}(e, vt, st);
		}(e) : vt(e);
		return function(e, t) {
			for (var n = -1, r = e ? e.length : 0; ++n < r && !1 !== t(e[n], n, e););
		}(oe || e, (function(i, a) {
			oe && (i = e[a = i]), $e(ne, a, tt(i, t, n, r, a, e, v));
		})), ne;
	}
	function nt(e) {
		return !(!_t(e) || function(e) {
			return !!be && be in e;
		}(e)) && (gt(e) || fe(e) ? we : ne).test(dt(e));
	}
	function rt(e) {
		var t = new e.constructor(e.byteLength);
		return new De(t).set(new De(e)), t;
	}
	function it(e, t, n, r) {
		n ||= {};
		for (var i = -1, a = t.length; ++i < a;) {
			var o = t[i], s = r ? r(n[o], e[o], o, n, e) : void 0;
			$e(n, o, s === void 0 ? e[o] : s);
		}
		return n;
	}
	function at(e, t) {
		var n, r, i = e.__data__;
		return ((r = typeof (n = t)) == "string" || r == "number" || r == "symbol" || r == "boolean" ? n !== "__proto__" : n === null) ? i[typeof t == "string" ? "string" : "hash"] : i.map;
	}
	function ot(e, t) {
		var n = function(e, t) {
			return e?.[t];
		}(e, t);
		return nt(n) ? n : void 0;
	}
	Je.prototype.clear = function() {
		this.__data__ = Be ? Be(null) : {};
	}, Je.prototype.delete = function(e) {
		return this.has(e) && delete this.__data__[e];
	}, Je.prototype.get = function(e) {
		var t = this.__data__;
		if (Be) {
			var n = t[e];
			return n === r ? void 0 : n;
		}
		return Se.call(t, e) ? t[e] : void 0;
	}, Je.prototype.has = function(e) {
		var t = this.__data__;
		return Be ? t[e] !== void 0 : Se.call(t, e);
	}, Je.prototype.set = function(e, t) {
		return this.__data__[e] = Be && t === void 0 ? r : t, this;
	}, Ye.prototype.clear = function() {
		this.__data__ = [];
	}, Ye.prototype.delete = function(e) {
		var t = this.__data__, n = et(t, e);
		return !(n < 0) && (n == t.length - 1 ? t.pop() : je.call(t, n, 1), !0);
	}, Ye.prototype.get = function(e) {
		var t = this.__data__, n = et(t, e);
		return n < 0 ? void 0 : t[n][1];
	}, Ye.prototype.has = function(e) {
		return et(this.__data__, e) > -1;
	}, Ye.prototype.set = function(e, t) {
		var n = this.__data__, r = et(n, e);
		return r < 0 ? n.push([e, t]) : n[r][1] = t, this;
	}, Xe.prototype.clear = function() {
		this.__data__ = {
			hash: new Je(),
			map: new (Ie || Ye)(),
			string: new Je()
		};
	}, Xe.prototype.delete = function(e) {
		return at(this, e).delete(e);
	}, Xe.prototype.get = function(e) {
		return at(this, e).get(e);
	}, Xe.prototype.has = function(e) {
		return at(this, e).has(e);
	}, Xe.prototype.set = function(e, t) {
		return at(this, e).set(e, t), this;
	}, Ze.prototype.clear = function() {
		this.__data__ = new Ye();
	}, Ze.prototype.delete = function(e) {
		return this.__data__.delete(e);
	}, Ze.prototype.get = function(e) {
		return this.__data__.get(e);
	}, Ze.prototype.has = function(e) {
		return this.__data__.has(e);
	}, Ze.prototype.set = function(e, t) {
		var n = this.__data__;
		if (n instanceof Ye) {
			var r = n.__data__;
			if (!Ie || r.length < 199) return r.push([e, t]), this;
			n = this.__data__ = new Xe(r);
		}
		return n.set(e, t), this;
	};
	var st = Me ? me(Me, Object) : function() {
		return [];
	}, ct = function(e) {
		return Ce.call(e);
	};
	function lt(e, t) {
		return !!(t ??= i) && (typeof e == "number" || re.test(e)) && e > -1 && e % 1 == 0 && e < t;
	}
	function ut(e) {
		var t = e && e.constructor;
		return e === (typeof t == "function" && t.prototype || ve);
	}
	function dt(e) {
		if (e != null) {
			try {
				return xe.call(e);
			} catch {}
			try {
				return e + "";
			} catch {}
		}
		return "";
	}
	function ft(e, t) {
		return e === t || e != e && t != t;
	}
	(Fe && ct(new Fe(/* @__PURE__ */ new ArrayBuffer(1))) != b || Ie && ct(new Ie()) != u || Le && ct(Le.resolve()) != p || Re && ct(new Re()) != h || ze && ct(new ze()) != v) && (ct = function(e) {
		var t = Ce.call(e), n = t == f ? e.constructor : void 0, r = n ? dt(n) : void 0;
		if (r) switch (r) {
			case Ve: return b;
			case He: return u;
			case Ue: return p;
			case We: return h;
			case Ge: return v;
		}
		return t;
	});
	var pt = Array.isArray;
	function mt(e) {
		return e != null && function(e) {
			return typeof e == "number" && e > -1 && e % 1 == 0 && e <= i;
		}(e.length) && !gt(e);
	}
	var ht = Ne || function() {
		return !1;
	};
	function gt(e) {
		var t = _t(e) ? Ce.call(e) : "";
		return t == c || t == l;
	}
	function _t(e) {
		var t = typeof e;
		return !!e && (t == "object" || t == "function");
	}
	function vt(e) {
		return mt(e) ? Qe(e) : function(e) {
			if (!ut(e)) return Pe(e);
			var t = [];
			for (var n in Object(e)) Se.call(e, n) && n != "constructor" && t.push(n);
			return t;
		}(e);
	}
	t.exports = function(e) {
		return tt(e, !0, !0);
	};
}));
function Ip(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var pre = 0;
function mre(e) {
	return "__private_" + pre++ + "_" + e;
}
function hre(e, t, n) {
	let r = [];
	return e.forEach(((e) => typeof e == "string" ? t[Symbol.split](e).forEach(((e, t, i) => {
		e !== "" && r.push(e), t < i.length - 1 && r.push(n);
	})) : r.push(e))), r;
}
function Lp(e, t) {
	let n = /\$/g, r = [e];
	if (t == null) return r;
	for (let e of Object.keys(t)) if (e !== "_") {
		let i = t[e];
		typeof i == "string" && (i = n[Symbol.replace](i, "$$$$")), r = hre(r, RegExp(`%\\{${e}\\}`, "g"), i);
	}
	return r;
}
var Rp = (Np = mre("apply"), class {
	constructor(e) {
		Object.defineProperty(this, Np, { value: gre }), this.locale = {
			strings: {},
			pluralize: (e) => e === 1 ? 0 : 1
		}, Array.isArray(e) ? e.forEach(Ip(this, Np)[Np], this) : Ip(this, Np)[Np](e);
	}
	translate(e, t) {
		return this.translateArray(e, t).join("");
	}
	translateArray(e, t) {
		if (!function(e, t) {
			return Object.prototype.hasOwnProperty.call(e, t);
		}(this.locale.strings, e)) throw Error(`missing string: ${e}`);
		let n = this.locale.strings[e];
		if (typeof n == "object") {
			if (t && t.smart_count !== void 0) return Lp(n[this.locale.pluralize(t.smart_count)], t);
			throw Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}");
		}
		return Lp(n, t);
	}
});
function gre(e) {
	if (e == null || !e.strings) return;
	let t = this.locale;
	this.locale = {
		...t,
		strings: {
			...t.strings,
			...e.strings
		}
	}, this.locale.pluralize = e.pluralize || t.pluralize;
}
var zp = function() {
	var e = {}, t = e._fns = {};
	return e.emit = function(e, n, r, i, a, o, s) {
		var c = function(e) {
			for (var n = t[e] ? t[e] : [], r = e.indexOf(":"), i = r === -1 ? [e] : [e.substring(0, r), e.substring(r + 1)], a = Object.keys(t), o = 0, s = a.length; o < s; o++) {
				var c = a[o];
				if (c === "*" && (n = n.concat(t[c])), i.length === 2 && i[0] === c) {
					n = n.concat(t[c]);
					break;
				}
			}
			return n;
		}(e);
		c.length && function(e, t, n) {
			for (var r = 0, i = t.length; r < i && t[r]; r++) t[r].event = e, t[r].apply(t[r], n);
		}(e, c, [
			n,
			r,
			i,
			a,
			o,
			s
		]);
	}, e.on = function(e, n) {
		t[e] || (t[e] = []), t[e].push(n);
	}, e.once = function(t, n) {
		this.on(t, (function r() {
			n.apply(this, arguments), e.off(t, r);
		}));
	}, e.off = function(e, t) {
		var n = [];
		if (e && t) for (var r = this._fns[e], i = 0, a = r ? r.length : 0; i < a; i++) r[i] !== t && n.push(r[i]);
		n.length ? this._fns[e] = n : delete this._fns[e];
	}, e;
}, { urlAlphabet: _re } = { urlAlphabet: "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict" }, Bp = (e) => crypto.getRandomValues(new Uint8Array(e)), Vp = (e, t, n) => {
	let r = (2 << Math.log(e.length - 1) / Math.LN2) - 1, i = -~(1.6 * r * t / e.length);
	return () => {
		let a = "";
		for (;;) {
			let o = n(i), s = i;
			for (; s--;) if (a += e[o[s] & r] || "", a.length === t) return a;
		}
	};
}, vre = {
	nanoid: (e = 21) => {
		let t = "", n = crypto.getRandomValues(new Uint8Array(e));
		for (; e--;) {
			let r = 63 & n[e];
			t += r < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r < 63 ? "_" : "-";
		}
		return t;
	},
	customAlphabet: (e, t) => Vp(e, t, Bp),
	customRandom: Vp,
	urlAlphabet: _re,
	random: Bp
}, Hp = function(e) {
	if (typeof e != "number" || isNaN(e)) throw TypeError("Expected a number, got " + typeof e);
	var t = e < 0, n = [
		"B",
		"KB",
		"MB",
		"GB",
		"TB",
		"PB",
		"EB",
		"ZB",
		"YB"
	];
	if (t && (e = -e), e < 1) return (t ? "-" : "") + e + " B";
	var r = Math.min(Math.floor(Math.log(e) / Math.log(1024)), n.length - 1);
	e = Number(e / 1024 ** r);
	var i = n[r];
	return e >= 10 || e % 1 == 0 ? (t ? "-" : "") + e.toFixed(0) + " " + i : (t ? "-" : "") + e.toFixed(1) + " " + i;
};
function Up(e, t) {
	this.text = e ||= "", this.hasWild = ~e.indexOf("*"), this.separator = t, this.parts = e.split(t);
}
Up.prototype.match = function(e) {
	var t, n, r = !0, i = this.parts, a = i.length;
	if (typeof e == "string" || e instanceof String) if (this.hasWild || this.text == e) {
		for (n = (e || "").split(this.separator), t = 0; r && t < a; t++) i[t] !== "*" && (r = t < n.length && i[t] === n[t]);
		r &&= n;
	} else r = !1;
	else if (typeof e.splice == "function") for (r = [], t = e.length; t--;) this.match(e[t]) && (r[r.length] = e[t]);
	else if (typeof e == "object") for (var o in r = {}, e) this.match(o) && (r[o] = e[o]);
	return r;
};
var yre = /[\/\+\.]/, bre = function(e, t) {
	function n(t) {
		var n = function(e, t, n) {
			var r = new Up(e, n || /[\/\.]/);
			return t === void 0 ? r : r.match(t);
		}(t, e, yre);
		return n && n.length >= 2;
	}
	return t ? n(t.split(";")[0]) : n;
}, xre = 0;
function Sre(e) {
	return "__private_" + xre++ + "_" + e;
}
var Wp = Sre("publish"), Gp = class {
	constructor() {
		Object.defineProperty(this, Wp, { value: Cre }), this.state = {}, this.callbacks = [];
	}
	getState() {
		return this.state;
	}
	setState(e) {
		let t = { ...this.state }, n = {
			...this.state,
			...e
		};
		this.state = n, function(e, t) {
			if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
			return e;
		}(this, Wp)[Wp](t, n, e);
	}
	subscribe(e) {
		return this.callbacks.push(e), () => {
			this.callbacks.splice(this.callbacks.indexOf(e), 1);
		};
	}
};
function Cre() {
	var e = [...arguments];
	this.callbacks.forEach(((t) => {
		t(...e);
	}));
}
Gp.VERSION = "2.0.3";
var Kp = function(e) {
	let t = e.lastIndexOf(".");
	return t === -1 || t === e.length - 1 ? {
		name: e,
		extension: void 0
	} : {
		name: e.slice(0, t),
		extension: e.slice(t + 1)
	};
}, qp = {
	md: "text/markdown",
	markdown: "text/markdown",
	mp4: "video/mp4",
	mp3: "audio/mp3",
	svg: "image/svg+xml",
	jpg: "image/jpeg",
	png: "image/png",
	gif: "image/gif",
	heic: "image/heic",
	heif: "image/heif",
	yaml: "text/yaml",
	yml: "text/yaml",
	csv: "text/csv",
	tsv: "text/tab-separated-values",
	tab: "text/tab-separated-values",
	avi: "video/x-msvideo",
	mks: "video/x-matroska",
	mkv: "video/x-matroska",
	mov: "video/quicktime",
	doc: "application/msword",
	docm: "application/vnd.ms-word.document.macroenabled.12",
	docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
	dot: "application/msword",
	dotm: "application/vnd.ms-word.template.macroenabled.12",
	dotx: "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
	xla: "application/vnd.ms-excel",
	xlam: "application/vnd.ms-excel.addin.macroenabled.12",
	xlc: "application/vnd.ms-excel",
	xlf: "application/x-xliff+xml",
	xlm: "application/vnd.ms-excel",
	xls: "application/vnd.ms-excel",
	xlsb: "application/vnd.ms-excel.sheet.binary.macroenabled.12",
	xlsm: "application/vnd.ms-excel.sheet.macroenabled.12",
	xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
	xlt: "application/vnd.ms-excel",
	xltm: "application/vnd.ms-excel.template.macroenabled.12",
	xltx: "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
	xlw: "application/vnd.ms-excel",
	txt: "text/plain",
	text: "text/plain",
	conf: "text/plain",
	log: "text/plain",
	pdf: "application/pdf",
	zip: "application/zip",
	"7z": "application/x-7z-compressed",
	rar: "application/x-rar-compressed",
	tar: "application/x-tar",
	gz: "application/gzip",
	dmg: "application/x-apple-diskimage"
};
function Jp(e) {
	let t = "";
	return e.replace(/[^A-Z0-9]/gi, ((e) => (t += `-${function(e) {
		return e.charCodeAt(0).toString(32);
	}(e)}`, "/"))) + t;
}
var wre = function(e) {
	if (e ??= typeof navigator < "u" ? navigator.userAgent : null, !e) return !0;
	let t = /Edge\/(\d+\.\d+)/.exec(e);
	if (!t) return !0;
	let [n, r] = t[1].split(".");
	return n = parseInt(n, 10), r = parseInt(r, 10), n < 15 || n === 15 && r < 15063 || n > 18 || n === 18 && r >= 18218;
};
function Yp(e) {
	return e < 10 ? `0${e}` : e.toString();
}
var Xp = function() {
	let e = /* @__PURE__ */ new Date();
	return `${Yp(e.getHours())}:${Yp(e.getMinutes())}:${Yp(e.getSeconds())}`;
}, Zp = {
	justErrorsLogger: {
		debug: () => {},
		warn: () => {},
		error: function() {
			var e = [...arguments];
			return console.error(`[Uppy] [${Xp()}]`, ...e);
		}
	},
	debugLogger: {
		debug: function() {
			var e = [...arguments];
			return console.debug(`[Uppy] [${Xp()}]`, ...e);
		},
		warn: function() {
			var e = [...arguments];
			return console.warn(`[Uppy] [${Xp()}]`, ...e);
		},
		error: function() {
			var e = [...arguments];
			return console.error(`[Uppy] [${Xp()}]`, ...e);
		}
	}
}, Tre = { strings: {
	addBulkFilesFailed: {
		0: "Failed to add %{smart_count} file due to an internal error",
		1: "Failed to add %{smart_count} files due to internal errors"
	},
	youCanOnlyUploadX: {
		0: "You can only upload %{smart_count} file",
		1: "You can only upload %{smart_count} files"
	},
	youHaveToAtLeastSelectX: {
		0: "You have to select at least %{smart_count} file",
		1: "You have to select at least %{smart_count} files"
	},
	exceedsSize: "%{file} exceeds maximum allowed size of %{size}",
	missingRequiredMetaField: "Missing required meta fields",
	missingRequiredMetaFieldOnFile: "Missing required meta fields in %{fileName}",
	inferiorSize: "This file is smaller than the allowed size of %{size}",
	youCanOnlyUploadFileTypes: "You can only upload: %{types}",
	noMoreFilesAllowed: "Cannot add more files",
	noDuplicates: "Cannot add the duplicate file '%{fileName}', it already exists",
	companionError: "Connection with Companion failed",
	authAborted: "Authentication aborted",
	companionUnauthorizeHint: "To unauthorize to your %{provider} account, please go to %{url}",
	failedToUpload: "Failed to upload %{file}",
	noInternetConnection: "No Internet connection",
	connectedToInternet: "Connected to the Internet",
	noFilesFound: "You have no files or folders here",
	selectX: {
		0: "Select %{smart_count}",
		1: "Select %{smart_count}"
	},
	allFilesFromFolderNamed: "All files from folder %{name}",
	openFolderNamed: "Open folder %{name}",
	cancel: "Cancel",
	logOut: "Log out",
	filter: "Filter",
	resetFilter: "Reset filter",
	loading: "Loading...",
	authenticateWithTitle: "Please authenticate with %{pluginName} to select files",
	authenticateWith: "Connect to %{pluginName}",
	signInWithGoogle: "Sign in with Google",
	searchImages: "Search for images",
	enterTextToSearch: "Enter text to search for images",
	backToSearch: "Back to Search",
	emptyFolderAdded: "No files were added from empty folder",
	folderAlreadyAdded: "The folder \"%{folder}\" was already added",
	folderAdded: {
		0: "Added %{smart_count} file from %{folder}",
		1: "Added %{smart_count} files from %{folder}"
	}
} }, Qp = vre, $p, em;
function U(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var Ere = 0;
function tm(e) {
	return "__private_" + Ere++ + "_" + e;
}
var { nanoid: Dre } = Qp, { justErrorsLogger: Ore, debugLogger: kre } = Zp, nm = class extends Error {
	constructor() {
		super(...arguments), this.isRestriction = !0;
	}
};
typeof AggregateError > "u" && (globalThis.AggregateError = class extends Error {
	constructor(e, t) {
		super(t), this.errors = e;
	}
});
var Are = class extends AggregateError {
	constructor() {
		super(...arguments), this.isRestriction = !0;
	}
}, rm = tm("plugins"), im = tm("storeUnsubscribe"), am = tm("emitter"), om = tm("preProcessors"), sm = tm("uploaders"), cm = tm("postProcessors"), lm = tm("checkRestrictions"), um = tm("checkMinNumberOfFiles"), dm = tm("checkRequiredMetaFieldsOnFile"), fm = tm("checkRequiredMetaFields"), pm = tm("showOrLogErrorAndThrow"), mm = tm("assertNewUploadAllowed"), hm = tm("checkAndCreateFileStateObject"), gm = tm("startIfAutoProceed"), _m = tm("addListeners"), vm = tm("updateOnlineStatus"), ym = tm("createUpload"), bm = tm("getUpload"), xm = tm("removeUpload"), Sm = tm("runUpload");
$p = Symbol.for("uppy test: getPlugins"), em = Symbol.for("uppy test: createUpload");
var Cm = class {
	constructor(e) {
		Object.defineProperty(this, Sm, { value: Ure }), Object.defineProperty(this, xm, { value: Hre }), Object.defineProperty(this, bm, { value: Vre }), Object.defineProperty(this, ym, { value: Bre }), Object.defineProperty(this, _m, { value: zre }), Object.defineProperty(this, gm, { value: Rre }), Object.defineProperty(this, hm, { value: Lre }), Object.defineProperty(this, mm, { value: Ire }), Object.defineProperty(this, pm, { value: Fre }), Object.defineProperty(this, fm, { value: Pre }), Object.defineProperty(this, dm, { value: Nre }), Object.defineProperty(this, um, { value: Mre }), Object.defineProperty(this, lm, { value: jre }), Object.defineProperty(this, rm, {
			writable: !0,
			value: Object.create(null)
		}), Object.defineProperty(this, im, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, am, {
			writable: !0,
			value: zp()
		}), Object.defineProperty(this, om, {
			writable: !0,
			value: /* @__PURE__ */ new Set()
		}), Object.defineProperty(this, sm, {
			writable: !0,
			value: /* @__PURE__ */ new Set()
		}), Object.defineProperty(this, cm, {
			writable: !0,
			value: /* @__PURE__ */ new Set()
		}), Object.defineProperty(this, vm, {
			writable: !0,
			value: this.updateOnlineStatus.bind(this)
		}), this.defaultLocale = Tre;
		let t = {
			id: "uppy",
			autoProceed: !1,
			allowMultipleUploads: !0,
			allowMultipleUploadBatches: !0,
			debug: !1,
			restrictions: {
				maxFileSize: null,
				minFileSize: null,
				maxTotalFileSize: null,
				maxNumberOfFiles: null,
				minNumberOfFiles: null,
				allowedFileTypes: null,
				requiredMetaFields: []
			},
			meta: {},
			onBeforeFileAdded: (e) => e,
			onBeforeUpload: (e) => e,
			store: new Gp(),
			logger: Ore,
			infoTimeout: 5e3
		};
		if (this.opts = {
			...t,
			...e,
			restrictions: {
				...t.restrictions,
				...e && e.restrictions
			}
		}, e && e.logger && e.debug ? this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.", "warning") : e && e.debug && (this.opts.logger = kre), this.log(`Using Core v${this.constructor.VERSION}`), this.opts.restrictions.allowedFileTypes && this.opts.restrictions.allowedFileTypes !== null && !Array.isArray(this.opts.restrictions.allowedFileTypes)) throw TypeError("`restrictions.allowedFileTypes` must be an array");
		this.i18nInit(), this.calculateProgress = Vd(this.calculateProgress.bind(this), 500, {
			leading: !0,
			trailing: !0
		}), this.store = this.opts.store, this.setState({
			plugins: {},
			files: {},
			currentUploads: {},
			allowNewUpload: !0,
			capabilities: {
				uploadProgress: wre(),
				individualCancellation: !0,
				resumableUploads: !1
			},
			totalProgress: 0,
			meta: { ...this.opts.meta },
			info: [],
			recoveredState: null
		}), U(this, im)[im] = this.store.subscribe(((e, t, n) => {
			this.emit("state-update", e, t, n), this.updateAll(t);
		})), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), U(this, _m)[_m]();
	}
	emit(e) {
		var t = [...arguments].slice(1);
		U(this, am)[am].emit(e, ...t);
	}
	on(e, t) {
		return U(this, am)[am].on(e, t), this;
	}
	once(e, t) {
		return U(this, am)[am].once(e, t), this;
	}
	off(e, t) {
		return U(this, am)[am].off(e, t), this;
	}
	updateAll(e) {
		this.iteratePlugins(((t) => {
			t.update(e);
		}));
	}
	setState(e) {
		this.store.setState(e);
	}
	getState() {
		return this.store.getState();
	}
	get state() {
		return this.getState();
	}
	setFileState(e, t) {
		if (!this.getState().files[e]) throw Error(`Can’t set state for ${e} (the file could have been removed)`);
		this.setState({ files: {
			...this.getState().files,
			[e]: {
				...this.getState().files[e],
				...t
			}
		} });
	}
	i18nInit() {
		let e = new Rp([this.defaultLocale, this.opts.locale]);
		this.i18n = e.translate.bind(e), this.i18nArray = e.translateArray.bind(e), this.locale = e.locale;
	}
	setOptions(e) {
		this.opts = {
			...this.opts,
			...e,
			restrictions: {
				...this.opts.restrictions,
				...e && e.restrictions
			}
		}, e.meta && this.setMeta(e.meta), this.i18nInit(), e.locale && this.iteratePlugins(((e) => {
			e.setOptions();
		})), this.setState();
	}
	resetProgress() {
		let e = {
			percentage: 0,
			bytesUploaded: 0,
			uploadComplete: !1,
			uploadStarted: null
		}, t = { ...this.getState().files }, n = {};
		Object.keys(t).forEach(((r) => {
			let i = { ...t[r] };
			i.progress = {
				...i.progress,
				...e
			}, n[r] = i;
		})), this.setState({
			files: n,
			totalProgress: 0
		}), this.emit("reset-progress");
	}
	addPreProcessor(e) {
		U(this, om)[om].add(e);
	}
	removePreProcessor(e) {
		return U(this, om)[om].delete(e);
	}
	addPostProcessor(e) {
		U(this, cm)[cm].add(e);
	}
	removePostProcessor(e) {
		return U(this, cm)[cm].delete(e);
	}
	addUploader(e) {
		U(this, sm)[sm].add(e);
	}
	removeUploader(e) {
		return U(this, sm)[sm].delete(e);
	}
	setMeta(e) {
		let t = {
			...this.getState().meta,
			...e
		}, n = { ...this.getState().files };
		Object.keys(n).forEach(((t) => {
			n[t] = {
				...n[t],
				meta: {
					...n[t].meta,
					...e
				}
			};
		})), this.log("Adding metadata:"), this.log(e), this.setState({
			meta: t,
			files: n
		});
	}
	setFileMeta(e, t) {
		let n = { ...this.getState().files };
		if (!n[e]) return void this.log("Was trying to set metadata for a file that has been removed: ", e);
		let r = {
			...n[e].meta,
			...t
		};
		n[e] = {
			...n[e],
			meta: r
		}, this.setState({ files: n });
	}
	getFile(e) {
		return this.getState().files[e];
	}
	getFiles() {
		let { files: e } = this.getState();
		return Object.values(e);
	}
	getObjectOfFilesPerState() {
		let { files: e, totalProgress: t, error: n } = this.getState(), r = Object.values(e), i = r.filter(((e) => {
			let { progress: t } = e;
			return !t.uploadComplete && t.uploadStarted;
		})), a = r.filter(((e) => !e.progress.uploadStarted)), o = r.filter(((e) => e.progress.uploadStarted || e.progress.preprocess || e.progress.postprocess)), s = r.filter(((e) => e.progress.uploadStarted)), c = r.filter(((e) => e.isPaused)), l = r.filter(((e) => e.progress.uploadComplete)), u = r.filter(((e) => e.error)), d = i.filter(((e) => !e.isPaused)), f = r.filter(((e) => e.progress.preprocess || e.progress.postprocess));
		return {
			newFiles: a,
			startedFiles: o,
			uploadStartedFiles: s,
			pausedFiles: c,
			completeFiles: l,
			erroredFiles: u,
			inProgressFiles: i,
			inProgressNotPausedFiles: d,
			processingFiles: f,
			isUploadStarted: s.length > 0,
			isAllComplete: t === 100 && l.length === r.length && f.length === 0,
			isAllErrored: !!n && u.length === r.length,
			isAllPaused: i.length !== 0 && c.length === i.length,
			isUploadInProgress: i.length > 0,
			isSomeGhost: r.some(((e) => e.isGhost))
		};
	}
	validateRestrictions(e, t) {
		try {
			return U(this, lm)[lm](e, t), { result: !0 };
		} catch (e) {
			return {
				result: !1,
				reason: e.message
			};
		}
	}
	checkIfFileAlreadyExists(e) {
		let { files: t } = this.getState();
		return !(!t[e] || t[e].isGhost);
	}
	addFile(e) {
		U(this, mm)[mm](e);
		let { files: t } = this.getState(), n = U(this, hm)[hm](t, e);
		return t[n.id] && t[n.id].isGhost && (n = {
			...t[n.id],
			data: e.data,
			isGhost: !1
		}, this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)), this.setState({ files: {
			...t,
			[n.id]: n
		} }), this.emit("file-added", n), this.emit("files-added", [n]), this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`), U(this, gm)[gm](), n.id;
	}
	addFiles(e) {
		U(this, mm)[mm]();
		let t = { ...this.getState().files }, n = [], r = [];
		for (let i = 0; i < e.length; i++) try {
			let r = U(this, hm)[hm](t, e[i]);
			t[r.id] && t[r.id].isGhost && (r = {
				...t[r.id],
				data: e[i].data,
				isGhost: !1
			}, this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)), t[r.id] = r, n.push(r);
		} catch (e) {
			e.isRestriction || r.push(e);
		}
		if (this.setState({ files: t }), n.forEach(((e) => {
			this.emit("file-added", e);
		})), this.emit("files-added", n), n.length > 5 ? this.log(`Added batch of ${n.length} files`) : Object.keys(n).forEach(((e) => {
			this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`);
		})), n.length > 0 && U(this, gm)[gm](), r.length > 0) {
			let e = "Multiple errors occurred while adding files:\n";
			if (r.forEach(((t) => {
				e += `\n * ${t.message}`;
			})), this.info({
				message: this.i18n("addBulkFilesFailed", { smart_count: r.length }),
				details: e
			}, "error", this.opts.infoTimeout), typeof AggregateError == "function") throw AggregateError(r, e);
			{
				let t = Error(e);
				throw t.errors = r, t;
			}
		}
	}
	removeFiles(e, t) {
		let { files: n, currentUploads: r } = this.getState(), i = { ...n }, a = { ...r }, o = Object.create(null);
		function s(e) {
			return o[e] === void 0;
		}
		e.forEach(((e) => {
			n[e] && (o[e] = n[e], delete i[e]);
		})), Object.keys(a).forEach(((e) => {
			let t = r[e].fileIDs.filter(s);
			t.length === 0 ? delete a[e] : a[e] = {
				...r[e],
				fileIDs: t
			};
		}));
		let c = {
			currentUploads: a,
			files: i
		};
		Object.keys(i).length === 0 && (c.allowNewUpload = !0, c.error = null, c.recoveredState = null), this.setState(c), this.calculateTotalProgress();
		let l = Object.keys(o);
		l.forEach(((e) => {
			this.emit("file-removed", o[e], t);
		})), l.length > 5 ? this.log(`Removed ${l.length} files`) : this.log(`Removed files: ${l.join(", ")}`);
	}
	removeFile(e, t) {
		t === void 0 && (t = null), this.removeFiles([e], t);
	}
	pauseResume(e) {
		if (!this.getState().capabilities.resumableUploads || this.getFile(e).uploadComplete) return;
		let t = !this.getFile(e).isPaused;
		return this.setFileState(e, { isPaused: t }), this.emit("upload-pause", e, t), t;
	}
	pauseAll() {
		let e = { ...this.getState().files };
		Object.keys(e).filter(((t) => !e[t].progress.uploadComplete && e[t].progress.uploadStarted)).forEach(((t) => {
			let n = {
				...e[t],
				isPaused: !0
			};
			e[t] = n;
		})), this.setState({ files: e }), this.emit("pause-all");
	}
	resumeAll() {
		let e = { ...this.getState().files };
		Object.keys(e).filter(((t) => !e[t].progress.uploadComplete && e[t].progress.uploadStarted)).forEach(((t) => {
			let n = {
				...e[t],
				isPaused: !1,
				error: null
			};
			e[t] = n;
		})), this.setState({ files: e }), this.emit("resume-all");
	}
	retryAll() {
		let e = { ...this.getState().files }, t = Object.keys(e).filter(((t) => e[t].error));
		if (t.forEach(((t) => {
			let n = {
				...e[t],
				isPaused: !1,
				error: null
			};
			e[t] = n;
		})), this.setState({
			files: e,
			error: null
		}), this.emit("retry-all", t), t.length === 0) return Promise.resolve({
			successful: [],
			failed: []
		});
		let n = U(this, ym)[ym](t, { forceAllowNewUpload: !0 });
		return U(this, Sm)[Sm](n);
	}
	cancelAll() {
		this.emit("cancel-all");
		let { files: e } = this.getState(), t = Object.keys(e);
		t.length && this.removeFiles(t, "cancel-all"), this.setState({
			totalProgress: 0,
			error: null,
			recoveredState: null
		});
	}
	retryUpload(e) {
		this.setFileState(e, {
			error: null,
			isPaused: !1
		}), this.emit("upload-retry", e);
		let t = U(this, ym)[ym]([e], { forceAllowNewUpload: !0 });
		return U(this, Sm)[Sm](t);
	}
	reset() {
		this.cancelAll();
	}
	logout() {
		this.iteratePlugins(((e) => {
			e.provider && e.provider.logout && e.provider.logout();
		}));
	}
	calculateProgress(e, t) {
		if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
		let n = Number.isFinite(t.bytesTotal) && t.bytesTotal > 0;
		this.setFileState(e.id, { progress: {
			...this.getFile(e.id).progress,
			bytesUploaded: t.bytesUploaded,
			bytesTotal: t.bytesTotal,
			percentage: n ? Math.round(t.bytesUploaded / t.bytesTotal * 100) : 0
		} }), this.calculateTotalProgress();
	}
	calculateTotalProgress() {
		let e = this.getFiles().filter(((e) => e.progress.uploadStarted || e.progress.preprocess || e.progress.postprocess));
		if (e.length === 0) return this.emit("progress", 0), void this.setState({ totalProgress: 0 });
		let t = e.filter(((e) => e.progress.bytesTotal != null)), n = e.filter(((e) => e.progress.bytesTotal == null));
		if (t.length === 0) {
			let t = 100 * e.length, r = n.reduce(((e, t) => e + t.progress.percentage), 0), i = Math.round(r / t * 100);
			this.setState({ totalProgress: i });
			return;
		}
		let r = t.reduce(((e, t) => e + t.progress.bytesTotal), 0), i = r / t.length;
		r += i * n.length;
		let a = 0;
		t.forEach(((e) => {
			a += e.progress.bytesUploaded;
		})), n.forEach(((e) => {
			a += i * (e.progress.percentage || 0) / 100;
		}));
		let o = r === 0 ? 0 : Math.round(a / r * 100);
		o > 100 && (o = 100), this.setState({ totalProgress: o }), this.emit("progress", o);
	}
	updateOnlineStatus() {
		window.navigator.onLine === void 0 || window.navigator.onLine ? (this.emit("is-online"), this.wasOffline &&= (this.emit("back-online"), this.info(this.i18n("connectedToInternet"), "success", 3e3), !1)) : (this.emit("is-offline"), this.info(this.i18n("noInternetConnection"), "error", 0), this.wasOffline = !0);
	}
	getID() {
		return this.opts.id;
	}
	use(e, t) {
		if (typeof e != "function") throw TypeError(`Expected a plugin class, but got ${e === null ? "null" : typeof e}. Please verify that the plugin was imported and spelled correctly.`);
		let n = new e(this, t), r = n.id;
		if (!r) throw Error("Your plugin must have an id");
		if (!n.type) throw Error("Your plugin must have a type");
		let i = this.getPlugin(r);
		if (i) {
			let e = `Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;
			throw Error(e);
		}
		return e.VERSION && this.log(`Using ${r} v${e.VERSION}`), n.type in U(this, rm)[rm] ? U(this, rm)[rm][n.type].push(n) : U(this, rm)[rm][n.type] = [n], n.install(), this;
	}
	getPlugin(e) {
		for (let t of Object.values(U(this, rm)[rm])) {
			let n = t.find(((t) => t.id === e));
			if (n != null) return n;
		}
	}
	[$p](e) {
		return U(this, rm)[rm][e];
	}
	iteratePlugins(e) {
		Object.values(U(this, rm)[rm]).flat(1).forEach(e);
	}
	removePlugin(e) {
		this.log(`Removing plugin ${e.id}`), this.emit("plugin-remove", e), e.uninstall && e.uninstall();
		let t = U(this, rm)[rm][e.type], n = t.findIndex(((t) => t.id === e.id));
		n !== -1 && t.splice(n, 1);
		let r = { plugins: {
			...this.getState().plugins,
			[e.id]: void 0
		} };
		this.setState(r);
	}
	close() {
		this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.reset(), U(this, im)[im](), this.iteratePlugins(((e) => {
			this.removePlugin(e);
		})), typeof window < "u" && window.removeEventListener && (window.removeEventListener("online", U(this, vm)[vm]), window.removeEventListener("offline", U(this, vm)[vm]));
	}
	hideInfo() {
		let { info: e } = this.getState();
		this.setState({ info: e.slice(1) }), this.emit("info-hidden");
	}
	info(e, t, n) {
		t === void 0 && (t = "info"), n === void 0 && (n = 3e3);
		let r = typeof e == "object";
		this.setState({ info: [...this.getState().info, {
			type: t,
			message: r ? e.message : e,
			details: r ? e.details : null
		}] }), setTimeout((() => this.hideInfo()), n), this.emit("info-visible");
	}
	log(e, t) {
		let { logger: n } = this.opts;
		switch (t) {
			case "error":
				n.error(e);
				break;
			case "warning":
				n.warn(e);
				break;
			default: n.debug(e);
		}
	}
	restore(e) {
		return this.log(`Core: attempting to restore upload "${e}"`), this.getState().currentUploads[e] ? U(this, Sm)[Sm](e) : (U(this, xm)[xm](e), Promise.reject(/* @__PURE__ */ Error("Nonexistent upload")));
	}
	[em]() {
		return U(this, ym)[ym](...arguments);
	}
	addResultData(e, t) {
		if (!U(this, bm)[bm](e)) return void this.log(`Not setting result for an upload that has been removed: ${e}`);
		let { currentUploads: n } = this.getState(), r = {
			...n[e],
			result: {
				...n[e].result,
				...t
			}
		};
		this.setState({ currentUploads: {
			...n,
			[e]: r
		} });
	}
	upload() {
		var e;
		(e = U(this, rm)[rm].uploader) != null && e.length || this.log("No uploader type plugins are used", "warning");
		let { files: t } = this.getState(), n = this.opts.onBeforeUpload(t);
		return !1 === n ? Promise.reject(/* @__PURE__ */ Error("Not starting the upload because onBeforeUpload returned false")) : (n && typeof n == "object" && (t = n, this.setState({ files: t })), Promise.resolve().then((() => {
			U(this, um)[um](t), U(this, fm)[fm](t);
		})).catch(((e) => {
			U(this, pm)[pm](e);
		})).then((() => {
			let { currentUploads: e } = this.getState(), n = Object.values(e).flatMap(((e) => e.fileIDs)), r = [];
			Object.keys(t).forEach(((e) => {
				let t = this.getFile(e);
				t.progress.uploadStarted || n.indexOf(e) !== -1 || r.push(t.id);
			}));
			let i = U(this, ym)[ym](r);
			return U(this, Sm)[Sm](i);
		})).catch(((e) => {
			U(this, pm)[pm](e, { showInformer: !1 });
		})));
	}
};
function jre(e, t) {
	t === void 0 && (t = this.getFiles());
	let { maxFileSize: n, minFileSize: r, maxTotalFileSize: i, maxNumberOfFiles: a, allowedFileTypes: o } = this.opts.restrictions;
	if (a && t.length + 1 > a) throw new nm(`${this.i18n("youCanOnlyUploadX", { smart_count: a })}`);
	if (o && !o.some(((t) => t.indexOf("/") > -1 ? !!e.type && bre(e.type.replace(/;.*?$/, ""), t) : !(t[0] !== "." || !e.extension) && e.extension.toLowerCase() === t.substr(1).toLowerCase()))) {
		let e = o.join(", ");
		throw new nm(this.i18n("youCanOnlyUploadFileTypes", { types: e }));
	}
	if (i && e.size != null) {
		let n = 0;
		if (n += e.size, t.forEach(((e) => {
			n += e.size;
		})), n > i) throw new nm(this.i18n("exceedsSize", {
			size: Hp(i),
			file: e.name
		}));
	}
	if (n && e.size != null && e.size > n) throw new nm(this.i18n("exceedsSize", {
		size: Hp(n),
		file: e.name
	}));
	if (r && e.size != null && e.size < r) throw new nm(this.i18n("inferiorSize", { size: Hp(r) }));
}
function Mre(e) {
	let { minNumberOfFiles: t } = this.opts.restrictions;
	if (Object.keys(e).length < t) throw new nm(`${this.i18n("youHaveToAtLeastSelectX", { smart_count: t })}`);
}
function Nre(e) {
	let { requiredMetaFields: t } = this.opts.restrictions, { hasOwnProperty: n } = Object.prototype, r = [], i = [];
	for (let a = 0; a < t.length; a++) if (!n.call(e.meta, t[a]) || e.meta[t[a]] === "") {
		let n = new nm(`${this.i18n("missingRequiredMetaFieldOnFile", { fileName: e.name })}`);
		r.push(n), i.push(t[a]), U(this, pm)[pm](n, {
			file: e,
			showInformer: !1,
			throwErr: !1
		});
	}
	return this.setFileState(e.id, { missingRequiredMetaFields: i }), r;
}
function Pre(e) {
	let t = Object.keys(e).flatMap(((e) => {
		let t = this.getFile(e);
		return U(this, dm)[dm](t);
	}));
	if (t.length) throw new Are(t, `${this.i18n("missingRequiredMetaField")}`);
}
function Fre(e, t) {
	let { showInformer: n = !0, file: r = null, throwErr: i = !0 } = t === void 0 ? {} : t, a = typeof e == "object" ? e.message : e, o = typeof e == "object" && e.details ? e.details : "", s = a;
	if (o && (s += ` ${o}`), e.isRestriction ? (this.log(s), this.emit("restriction-failed", r, e)) : this.log(s, "error"), n && this.info({
		message: a,
		details: o
	}, "error", this.opts.infoTimeout), i) throw typeof e == "object" ? e : Error(e);
}
function Ire(e) {
	let { allowNewUpload: t } = this.getState();
	!1 === t && U(this, pm)[pm](new nm(this.i18n("noMoreFilesAllowed")), { file: e });
}
function Lre(e, t) {
	let n = function(e) {
		if (e.type) return e.type;
		let t = e.name ? Kp(e.name).extension?.toLowerCase() : null;
		return t && t in qp ? qp[t] : "application/octet-stream";
	}(t), r = function(e, t) {
		return t.name ? t.name : e.split("/")[0] === "image" ? `${e.split("/")[0]}.${e.split("/")[1]}` : "noname";
	}(n, t), i = Kp(r).extension, a = !!t.isRemote, o = function(e) {
		let t = "uppy";
		return typeof e.name == "string" && (t += `-${Jp(e.name.toLowerCase())}`), e.type !== void 0 && (t += `-${e.type}`), e.meta && typeof e.meta.relativePath == "string" && (t += `-${Jp(e.meta.relativePath.toLowerCase())}`), e.data.size !== void 0 && (t += `-${e.data.size}`), e.data.lastModified !== void 0 && (t += `-${e.data.lastModified}`), t;
	}({
		...t,
		type: n
	});
	if (this.checkIfFileAlreadyExists(o)) {
		let e = new nm(this.i18n("noDuplicates", { fileName: r }));
		U(this, pm)[pm](e, { file: t });
	}
	let s = t.meta || {};
	s.name = r, s.type = n;
	let c = Number.isFinite(t.data.size) ? t.data.size : null, l = {
		source: t.source || "",
		id: o,
		name: r,
		extension: i || "",
		meta: {
			...this.getState().meta,
			...s
		},
		type: n,
		data: t.data,
		progress: {
			percentage: 0,
			bytesUploaded: 0,
			bytesTotal: c,
			uploadComplete: !1,
			uploadStarted: null
		},
		size: c,
		isRemote: a,
		remote: t.remote || "",
		preview: t.preview
	}, u = this.opts.onBeforeFileAdded(l, e);
	!1 === u ? U(this, pm)[pm](new nm("Cannot add the file because onBeforeFileAdded returned false."), {
		showInformer: !1,
		fileDescriptor: t
	}) : typeof u == "object" && u && (l = u);
	try {
		let t = Object.keys(e).map(((t) => e[t]));
		U(this, lm)[lm](l, t);
	} catch (e) {
		U(this, pm)[pm](e, { file: l });
	}
	return l;
}
function Rre() {
	this.opts.autoProceed && !this.scheduledAutoProceed && (this.scheduledAutoProceed = setTimeout((() => {
		this.scheduledAutoProceed = null, this.upload().catch(((e) => {
			e.isRestriction || this.log(e.stack || e.message || e);
		}));
	}), 4));
}
function zre() {
	let e = (e, t, n) => {
		let r = e.message || "Unknown error";
		e.details && (r += ` ${e.details}`), this.setState({ error: r }), t != null && t.id in this.getState().files && this.setFileState(t.id, {
			error: r,
			response: n
		});
	};
	this.on("error", e), this.on("upload-error", ((t, n, r) => {
		if (e(n, t, r), typeof n == "object" && n.message) {
			let e = Error(n.message);
			e.details = n.message, n.details && (e.details += ` ${n.details}`), e.message = this.i18n("failedToUpload", { file: t.name }), U(this, pm)[pm](e, { throwErr: !1 });
		} else U(this, pm)[pm](n, { throwErr: !1 });
	})), this.on("upload", (() => {
		this.setState({ error: null });
	})), this.on("upload-started", ((e) => {
		this.getFile(e.id) ? this.setFileState(e.id, { progress: {
			uploadStarted: Date.now(),
			uploadComplete: !1,
			percentage: 0,
			bytesUploaded: 0,
			bytesTotal: e.size
		} }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
	})), this.on("upload-progress", this.calculateProgress), this.on("upload-success", ((e, t) => {
		if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
		let n = this.getFile(e.id).progress;
		this.setFileState(e.id, {
			progress: {
				...n,
				postprocess: U(this, cm)[cm].size > 0 ? { mode: "indeterminate" } : null,
				uploadComplete: !0,
				percentage: 100,
				bytesUploaded: n.bytesTotal
			},
			response: t,
			uploadURL: t.uploadURL,
			isPaused: !1
		}), e.size ?? this.setFileState(e.id, { size: t.bytesUploaded || n.bytesTotal }), this.calculateTotalProgress();
	})), this.on("preprocess-progress", ((e, t) => {
		this.getFile(e.id) ? this.setFileState(e.id, { progress: {
			...this.getFile(e.id).progress,
			preprocess: t
		} }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
	})), this.on("preprocess-complete", ((e) => {
		if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
		let t = { ...this.getState().files };
		t[e.id] = {
			...t[e.id],
			progress: { ...t[e.id].progress }
		}, delete t[e.id].progress.preprocess, this.setState({ files: t });
	})), this.on("postprocess-progress", ((e, t) => {
		this.getFile(e.id) ? this.setFileState(e.id, { progress: {
			...this.getState().files[e.id].progress,
			postprocess: t
		} }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
	})), this.on("postprocess-complete", ((e) => {
		if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
		let t = { ...this.getState().files };
		t[e.id] = {
			...t[e.id],
			progress: { ...t[e.id].progress }
		}, delete t[e.id].progress.postprocess, this.setState({ files: t });
	})), this.on("restored", (() => {
		this.calculateTotalProgress();
	})), this.on("dashboard:file-edit-complete", ((e) => {
		e && U(this, dm)[dm](e);
	})), typeof window < "u" && window.addEventListener && (window.addEventListener("online", U(this, vm)[vm]), window.addEventListener("offline", U(this, vm)[vm]), setTimeout(U(this, vm)[vm], 3e3));
}
function Bre(e, t) {
	t === void 0 && (t = {});
	let { forceAllowNewUpload: n = !1 } = t, { allowNewUpload: r, currentUploads: i } = this.getState();
	if (!r && !n) throw Error("Cannot create a new upload: already uploading.");
	let a = Dre();
	return this.emit("upload", {
		id: a,
		fileIDs: e
	}), this.setState({
		allowNewUpload: !1 !== this.opts.allowMultipleUploadBatches && !1 !== this.opts.allowMultipleUploads,
		currentUploads: {
			...i,
			[a]: {
				fileIDs: e,
				step: 0,
				result: {}
			}
		}
	}), a;
}
function Vre(e) {
	let { currentUploads: t } = this.getState();
	return t[e];
}
function Hre(e) {
	let t = { ...this.getState().currentUploads };
	delete t[e], this.setState({ currentUploads: t });
}
async function Ure(e) {
	let { currentUploads: t } = this.getState(), n = t[e], r = n.step || 0, i = [
		...U(this, om)[om],
		...U(this, sm)[sm],
		...U(this, cm)[cm]
	];
	try {
		for (let a = r; a < i.length && n; a++) {
			let r = i[a], o = {
				...n,
				step: a
			};
			this.setState({ currentUploads: {
				...t,
				[e]: o
			} }), await r(o.fileIDs, e), t = this.getState().currentUploads, n = t[e];
		}
	} catch (t) {
		throw this.emit("error", t), U(this, xm)[xm](e), t;
	}
	if (n) {
		n.fileIDs.forEach(((e) => {
			let t = this.getFile(e);
			t && t.progress.postprocess && this.emit("postprocess-complete", t);
		}));
		let r = n.fileIDs.map(((e) => this.getFile(e))), i = r.filter(((e) => !e.error)), a = r.filter(((e) => e.error));
		await this.addResultData(e, {
			successful: i,
			failed: a,
			uploadID: e
		}), t = this.getState().currentUploads, n = t[e];
	}
	let a;
	return n && (a = n.result, this.emit("complete", a), U(this, xm)[xm](e)), a ?? this.log(`Not setting result for an upload that has been removed: ${e}`), a;
}
Cm.VERSION = "2.1.3";
var wm = Cm, Wre = n((function(e, t) {
	var n, r, i, a, o, s, c, l, u = {}, d = [], f = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
	function p(e, t) {
		for (var n in t) e[n] = t[n];
		return e;
	}
	function m(e) {
		var t = e.parentNode;
		t && t.removeChild(e);
	}
	function h(e, t, r) {
		var i, a, o, s = {};
		for (o in t) o == "key" ? i = t[o] : o == "ref" ? a = t[o] : s[o] = t[o];
		if (arguments.length > 2 && (s.children = arguments.length > 3 ? n.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) s[o] === void 0 && (s[o] = e.defaultProps[o]);
		return g(e, s, i, a, null);
	}
	function g(e, t, n, a, o) {
		var s = {
			type: e,
			props: t,
			key: n,
			ref: a,
			__k: null,
			__: null,
			__b: 0,
			__e: null,
			__d: void 0,
			__c: null,
			__h: null,
			constructor: void 0,
			__v: o ?? ++i
		};
		return o == null && r.vnode != null && r.vnode(s), s;
	}
	function _(e) {
		return e.children;
	}
	function v(e, t) {
		this.props = e, this.context = t;
	}
	function y(e, t) {
		if (t == null) return e.__ ? y(e.__, e.__.__k.indexOf(e) + 1) : null;
		for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
		return typeof e.type == "function" ? y(e) : null;
	}
	function b(e) {
		var t, n;
		if ((e = e.__) != null && e.__c != null) {
			for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
				e.__e = e.__c.base = n.__e;
				break;
			}
			return b(e);
		}
	}
	function x(e) {
		(!e.__d && (e.__d = !0) && o.push(e) && !S.__r++ || c !== r.debounceRendering) && ((c = r.debounceRendering) || s)(S);
	}
	function S() {
		for (var e; S.__r = o.length;) e = o.sort((function(e, t) {
			return e.__v.__b - t.__v.__b;
		})), o = [], e.some((function(e) {
			var t, n, r, i, a, o;
			e.__d && (a = (i = (t = e).__v).__e, (o = t.__P) && (n = [], (r = p({}, i)).__v = i.__v + 1, te(o, i, r, t.__n, o.ownerSVGElement !== void 0, i.__h == null ? null : [a], n, a ?? y(i), i.__h), ne(n, i), i.__e != a && b(i)));
		}));
	}
	function C(e, t, n, r, i, a, o, s, c, l) {
		var f, p, m, h, v, b, x, S = r && r.__k || d, C = S.length;
		for (n.__k = [], f = 0; f < t.length; f++) if ((h = n.__k[f] = (h = t[f]) == null || typeof h == "boolean" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? g(null, h, null, null, h) : Array.isArray(h) ? g(_, { children: h }, null, null, null) : h.__b > 0 ? g(h.type, h.props, h.key, null, h.__v) : h) != null) {
			if (h.__ = n, h.__b = n.__b + 1, (m = S[f]) === null || m && h.key == m.key && h.type === m.type) S[f] = void 0;
			else for (p = 0; p < C; p++) {
				if ((m = S[p]) && h.key == m.key && h.type === m.type) {
					S[p] = void 0;
					break;
				}
				m = null;
			}
			te(e, h, m ||= u, i, a, o, s, c, l), v = h.__e, (p = h.ref) && m.ref != p && (x ||= [], m.ref && x.push(m.ref, null, h), x.push(p, h.__c || v, h)), v == null ? c && m.__e == c && c.parentNode != e && (c = y(m)) : (b ??= v, typeof h.type == "function" && h.__k === m.__k ? h.__d = c = w(h, c, e) : c = T(e, h, m, S, v, c), typeof n.type == "function" && (n.__d = c));
		}
		for (n.__e = b, f = C; f--;) S[f] != null && (typeof n.type == "function" && S[f].__e != null && S[f].__e == n.__d && (n.__d = y(r, f + 1)), ie(S[f], S[f]));
		if (x) for (f = 0; f < x.length; f++) k(x[f], x[++f], x[++f]);
	}
	function w(e, t, n) {
		for (var r, i = e.__k, a = 0; i && a < i.length; a++) (r = i[a]) && (r.__ = e, t = typeof r.type == "function" ? w(r, t, n) : T(n, r, r, i, r.__e, t));
		return t;
	}
	function T(e, t, n, r, i, a) {
		var o, s, c;
		if (t.__d !== void 0) o = t.__d, t.__d = void 0;
		else if (n == null || i != a || i.parentNode == null) e: if (a == null || a.parentNode !== e) e.appendChild(i), o = null;
		else {
			for (s = a, c = 0; (s = s.nextSibling) && c < r.length; c += 2) if (s == i) break e;
			e.insertBefore(i, a), o = a;
		}
		return o === void 0 ? i.nextSibling : o;
	}
	function E(e, t, n) {
		t[0] === "-" ? e.setProperty(t, n) : e[t] = n == null ? "" : typeof n != "number" || f.test(t) ? n : n + "px";
	}
	function D(e, t, n, r, i) {
		var a;
		e: if (t === "style") if (typeof n == "string") e.style.cssText = n;
		else {
			if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || E(e.style, t, "");
			if (n) for (t in n) r && n[t] === r[t] || E(e.style, t, n[t]);
		}
		else if (t[0] === "o" && t[1] === "n") a = t !== (t = t.replace(/Capture$/, "")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r || e.addEventListener(t, a ? ee : O, a) : e.removeEventListener(t, a ? ee : O, a);
		else if (t !== "dangerouslySetInnerHTML") {
			if (i) t = t.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");
			else if (t !== "href" && t !== "list" && t !== "form" && t !== "tabIndex" && t !== "download" && t in e) try {
				e[t] = n ?? "";
				break e;
			} catch {}
			typeof n == "function" || (n != null && (!1 !== n || t[0] === "a" && t[1] === "r") ? e.setAttribute(t, n) : e.removeAttribute(t));
		}
	}
	function O(e) {
		this.l[e.type + !1](r.event ? r.event(e) : e);
	}
	function ee(e) {
		this.l[e.type + !0](r.event ? r.event(e) : e);
	}
	function te(e, t, n, i, a, o, s, c, l) {
		var u, d, f, m, h, g, y, b, x, S, w, T = t.type;
		if (t.constructor !== void 0) return null;
		n.__h != null && (l = n.__h, c = t.__e = n.__e, t.__h = null, o = [c]), (u = r.__b) && u(t);
		try {
			e: if (typeof T == "function") {
				if (b = t.props, x = (u = T.contextType) && i[u.__c], S = u ? x ? x.props.value : u.__ : i, n.__c ? y = (d = t.__c = n.__c).__ = d.__E : ("prototype" in T && T.prototype.render ? t.__c = d = new T(b, S) : (t.__c = d = new v(b, S), d.constructor = T, d.render = A), x && x.sub(d), d.props = b, d.state ||= {}, d.context = S, d.__n = i, f = d.__d = !0, d.__h = []), d.__s ??= d.state, T.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = p({}, d.__s)), p(d.__s, T.getDerivedStateFromProps(b, d.__s))), m = d.props, h = d.state, f) T.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
				else {
					if (T.getDerivedStateFromProps == null && b !== m && d.componentWillReceiveProps != null && d.componentWillReceiveProps(b, S), !d.__e && d.shouldComponentUpdate != null && !1 === d.shouldComponentUpdate(b, d.__s, S) || t.__v === n.__v) {
						d.props = b, d.state = d.__s, t.__v !== n.__v && (d.__d = !1), d.__v = t, t.__e = n.__e, t.__k = n.__k, t.__k.forEach((function(e) {
							e && (e.__ = t);
						})), d.__h.length && s.push(d);
						break e;
					}
					d.componentWillUpdate != null && d.componentWillUpdate(b, d.__s, S), d.componentDidUpdate != null && d.__h.push((function() {
						d.componentDidUpdate(m, h, g);
					}));
				}
				d.context = S, d.props = b, d.state = d.__s, (u = r.__r) && u(t), d.__d = !1, d.__v = t, d.__P = e, u = d.render(d.props, d.state, d.context), d.state = d.__s, d.getChildContext != null && (i = p(p({}, i), d.getChildContext())), f || d.getSnapshotBeforeUpdate == null || (g = d.getSnapshotBeforeUpdate(m, h)), w = u != null && u.type === _ && u.key == null ? u.props.children : u, C(e, Array.isArray(w) ? w : [w], t, n, i, a, o, s, c, l), d.base = t.__e, t.__h = null, d.__h.length && s.push(d), y && (d.__E = d.__ = null), d.__e = !1;
			} else o == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = re(n.__e, t, n, i, a, o, s, l);
			(u = r.diffed) && u(t);
		} catch (e) {
			t.__v = null, (l || o != null) && (t.__e = c, t.__h = !!l, o[o.indexOf(c)] = null), r.__e(e, t, n);
		}
	}
	function ne(e, t) {
		r.__c && r.__c(t, e), e.some((function(t) {
			try {
				e = t.__h, t.__h = [], e.some((function(e) {
					e.call(t);
				}));
			} catch (e) {
				r.__e(e, t.__v);
			}
		}));
	}
	function re(e, t, r, i, a, o, s, c) {
		var l, d, f, p = r.props, h = t.props, g = t.type, _ = 0;
		if (g === "svg" && (a = !0), o != null) {
			for (; _ < o.length; _++) if ((l = o[_]) && "setAttribute" in l == !!g && (g ? l.localName === g : l.nodeType === 3)) {
				e = l, o[_] = null;
				break;
			}
		}
		if (e == null) {
			if (g === null) return document.createTextNode(h);
			e = a ? document.createElementNS("http://www.w3.org/2000/svg", g) : document.createElement(g, h.is && h), o = null, c = !1;
		}
		if (g === null) p === h || c && e.data === h || (e.data = h);
		else {
			if (o &&= n.call(e.childNodes), d = (p = r.props || u).dangerouslySetInnerHTML, f = h.dangerouslySetInnerHTML, !c) {
				if (o != null) for (p = {}, _ = 0; _ < e.attributes.length; _++) p[e.attributes[_].name] = e.attributes[_].value;
				(f || d) && (f && (d && f.__html == d.__html || f.__html === e.innerHTML) || (e.innerHTML = f && f.__html || ""));
			}
			if (function(e, t, n, r, i) {
				for (var a in n) a === "children" || a === "key" || a in t || D(e, a, null, n[a], r);
				for (a in t) i && typeof t[a] != "function" || a === "children" || a === "key" || a === "value" || a === "checked" || n[a] === t[a] || D(e, a, t[a], n[a], r);
			}(e, h, p, a, c), f) t.__k = [];
			else if (_ = t.props.children, C(e, Array.isArray(_) ? _ : [_], t, r, i, a && g !== "foreignObject", o, s, o ? o[0] : r.__k && y(r, 0), c), o != null) for (_ = o.length; _--;) o[_] != null && m(o[_]);
			c || ("value" in h && (_ = h.value) !== void 0 && (_ !== p.value || _ !== e.value || g === "progress" && !_) && D(e, "value", _, p.value, !1), "checked" in h && (_ = h.checked) !== void 0 && _ !== e.checked && D(e, "checked", _, p.checked, !1));
		}
		return e;
	}
	function k(e, t, n) {
		try {
			typeof e == "function" ? e(t) : e.current = t;
		} catch (e) {
			r.__e(e, n);
		}
	}
	function ie(e, t, n) {
		var i, a;
		if (r.unmount && r.unmount(e), (i = e.ref) && (i.current && i.current !== e.__e || k(i, null, t)), (i = e.__c) != null) {
			if (i.componentWillUnmount) try {
				i.componentWillUnmount();
			} catch (e) {
				r.__e(e, t);
			}
			i.base = i.__P = null;
		}
		if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && ie(i[a], t, typeof e.type != "function");
		n || e.__e == null || m(e.__e), e.__e = e.__d = void 0;
	}
	function A(e, t, n) {
		return this.constructor(e, n);
	}
	function ae(e, t, i) {
		var a, o, s;
		r.__ && r.__(e, t), o = (a = typeof i == "function") ? null : i && i.__k || t.__k, s = [], te(t, e = (!a && i || t).__k = h(_, null, [e]), o || u, u, t.ownerSVGElement !== void 0, !a && i ? [i] : o ? null : t.firstChild ? n.call(t.childNodes) : null, s, !a && i ? i : o ? o.__e : t.firstChild, a), ne(s, e);
	}
	n = d.slice, r = { __e: function(e, t) {
		for (var n, r, i; t = t.__;) if ((n = t.__c) && !n.__) try {
			if ((r = n.constructor) && r.getDerivedStateFromError != null && (n.setState(r.getDerivedStateFromError(e)), i = n.__d), n.componentDidCatch != null && (n.componentDidCatch(e), i = n.__d), i) return n.__E = n;
		} catch (t) {
			e = t;
		}
		throw e;
	} }, i = 0, a = function(e) {
		return e != null && e.constructor === void 0;
	}, v.prototype.setState = function(e, t) {
		var n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = p({}, this.state);
		typeof e == "function" && (e = e(p({}, n), this.props)), e && p(n, e), e != null && this.__v && (t && this.__h.push(t), x(this));
	}, v.prototype.forceUpdate = function(e) {
		this.__v && (this.__e = !0, e && this.__h.push(e), x(this));
	}, v.prototype.render = _, o = [], s = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, S.__r = 0, l = 0, t.Component = v, t.Fragment = _, t.cloneElement = function(e, t, r) {
		var i, a, o, s = p({}, e.props);
		for (o in t) o == "key" ? i = t[o] : o == "ref" ? a = t[o] : s[o] = t[o];
		return arguments.length > 2 && (s.children = arguments.length > 3 ? n.call(arguments, 2) : r), g(e.type, s, i || e.key, a || e.ref, null);
	}, t.createContext = function(e, t) {
		var n = {
			__c: t = "__cC" + l++,
			__: e,
			Consumer: function(e, t) {
				return e.children(t);
			},
			Provider: function(e) {
				var n, r;
				return this.getChildContext || (n = [], (r = {})[t] = this, this.getChildContext = function() {
					return r;
				}, this.shouldComponentUpdate = function(e) {
					this.props.value !== e.value && n.some(x);
				}, this.sub = function(e) {
					n.push(e);
					var t = e.componentWillUnmount;
					e.componentWillUnmount = function() {
						n.splice(n.indexOf(e), 1), t && t.call(e);
					};
				}), e.children;
			}
		};
		return n.Provider.__ = n.Consumer.contextType = n;
	}, t.createElement = h, t.createRef = function() {
		return { current: null };
	}, t.h = h, t.hydrate = function e(t, n) {
		ae(t, n, e);
	}, t.isValidElement = a, t.options = r, t.render = ae, t.toChildArray = function e(t, n) {
		return n ||= [], t == null || typeof t == "boolean" || (Array.isArray(t) ? t.some((function(t) {
			e(t, n);
		})) : n.push(t)), n;
	};
})), Gre = function(e, t) {
	return t === void 0 && (t = document), typeof e == "string" ? t.querySelector(e) : (n = e)?.nodeType === Node.ELEMENT_NODE ? e : null;
	var n;
}, Tm = class {
	constructor(e, t) {
		t === void 0 && (t = {}), this.uppy = e, this.opts = t;
	}
	getPluginState() {
		let { plugins: e } = this.uppy.getState();
		return e[this.id] || {};
	}
	setPluginState(e) {
		let { plugins: t } = this.uppy.getState();
		this.uppy.setState({ plugins: {
			...t,
			[this.id]: {
				...t[this.id],
				...e
			}
		} });
	}
	setOptions(e) {
		this.opts = {
			...this.opts,
			...e
		}, this.setPluginState(), this.i18nInit();
	}
	i18nInit() {
		let e = new Rp([
			this.defaultLocale,
			this.uppy.locale,
			this.opts.locale
		]);
		this.i18n = e.translate.bind(e), this.i18nArray = e.translateArray.bind(e), this.setPluginState();
	}
	addTarget() {
		throw Error("Extend the addTarget method to add your plugin to another plugin's target");
	}
	install() {}
	uninstall() {}
	render() {
		throw Error("Extend the render method to add your plugin to a DOM element");
	}
	update() {}
	afterUpdate() {}
};
function Em(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var Kre = 0;
function qre(e) {
	return "__private_" + Kre++ + "_" + e;
}
var { render: Dm } = Wre, Om = qre("updateUI"), Jre = class e extends Tm {
	constructor() {
		super(...arguments), Object.defineProperty(this, Om, {
			writable: !0,
			value: void 0
		});
	}
	mount(t, n) {
		let r = n.id, i = Gre(t);
		if (i) {
			this.isTargetDOMEl = !0;
			let e = document.createDocumentFragment();
			return Em(this, Om)[Om] = function(e) {
				let t = null, n = null;
				return function() {
					return n = [...arguments], t ||= Promise.resolve().then((() => (t = null, e(...n)))), t;
				};
			}(((t) => {
				this.uppy.getPlugin(this.id) && (Dm(this.render(t), e), this.afterUpdate());
			})), this.uppy.log(`Installing ${r} to a DOM element '${t}'`), this.opts.replaceTargetContent && (i.innerHTML = ""), Dm(this.render(this.uppy.getState()), e), this.el = e.firstElementChild, i.appendChild(e), this.onMount(), this.el;
		}
		let a;
		if (typeof t == "object" && t instanceof e) a = t;
		else if (typeof t == "function") {
			let e = t;
			this.uppy.iteratePlugins(((t) => {
				if (t instanceof e) return a = t, !1;
			}));
		}
		if (a) return this.uppy.log(`Installing ${r} to ${a.id}`), this.parent = a, this.el = a.addTarget(n), this.onMount(), this.el;
		this.uppy.log(`Not installing ${r}`);
		let o = `Invalid target option given to ${r}.`;
		throw o += typeof t == "function" ? " The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly." : "If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.", Error(o);
	}
	update(e) {
		var t, n;
		this.el != null && ((t = (n = Em(this, Om))[Om]) == null || t.call(n, e));
	}
	unmount() {
		var e;
		this.isTargetDOMEl && ((e = this.el) == null || e.remove()), this.onUnmount();
	}
	onMount() {}
	onUnmount() {}
}, { debugLogger: Yre } = Zp, km = wm, Xre = wm, Zre = Jre, Qre = Tm, $re = Yre;
km.Uppy = Xre, km.UIPlugin = Zre, km.BasePlugin = Qre, km.debugLogger = $re;
var Am = class extends Error {
	constructor(e, t) {
		t === void 0 && (t = null), super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."), this.cause = e, this.isNetworkError = !0, this.request = t;
	}
}, jm = function() {
	return fetch(...arguments).catch(((e) => {
		throw e.name === "AbortError" ? e : new Am(e);
	}));
}, eie = class extends Error {
	constructor() {
		super("Authorization required"), this.name = "AuthError", this.isAuthError = !0;
	}
}, Mm, Nm, Pm, Fm, Im, tie = eie;
function Lm(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var nie = 0;
function Rm(e) {
	return "__private_" + nie++ + "_" + e;
}
async function zm(e) {
	if (e.status === 401) throw new tie();
	let t = e.json();
	if (e.status < 200 || e.status > 300) {
		let n = `Failed request with status: ${e.status}. ${e.statusText}`;
		try {
			let e = await t;
			n = e.message ? `${n} message: ${e.message}` : n, n = e.requestId ? `${n} request-Id: ${e.requestId}` : n;
		} finally {
			throw Error(n);
		}
	}
	return t;
}
var Bm = (Nm = Rm("getPostResponseFunc"), Pm = Rm("getUrl"), Fm = Rm("errorHandler"), Im = Mm = class e {
	constructor(e, t) {
		Object.defineProperty(this, Fm, { value: iie }), Object.defineProperty(this, Pm, { value: rie }), Object.defineProperty(this, Nm, {
			writable: !0,
			value: (e) => (t) => e ? t : this.onReceiveResponse(t)
		}), this.uppy = e, this.opts = t, this.onReceiveResponse = this.onReceiveResponse.bind(this), this.allowedHeaders = [
			"accept",
			"content-type",
			"uppy-auth-token"
		], this.preflightDone = !1;
	}
	get hostname() {
		let { companion: e } = this.uppy.getState(), t = this.opts.companionUrl;
		return (e && e[t] ? e[t] : t).replace(/\/$/, "");
	}
	headers() {
		let t = this.opts.companionHeaders || {};
		return Promise.resolve({
			...e.defaultHeaders,
			...t
		});
	}
	onReceiveResponse(e) {
		let t = this.uppy.getState().companion || {}, n = this.opts.companionUrl, { headers: r } = e;
		return r.has("i-am") && r.get("i-am") !== t[n] && this.uppy.setState({ companion: {
			...t,
			[n]: r.get("i-am")
		} }), e;
	}
	preflight(e) {
		return this.preflightDone ? Promise.resolve(this.allowedHeaders.slice()) : fetch(Lm(this, Pm)[Pm](e), { method: "OPTIONS" }).then(((e) => (e.headers.has("access-control-allow-headers") && (this.allowedHeaders = e.headers.get("access-control-allow-headers").split(",").map(((e) => e.trim().toLowerCase()))), this.preflightDone = !0, this.allowedHeaders.slice()))).catch(((e) => (this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`, "warning"), this.preflightDone = !0, this.allowedHeaders.slice())));
	}
	preflightAndHeaders(e) {
		return Promise.all([this.preflight(e), this.headers()]).then(((e) => {
			let [t, n] = e;
			return Object.keys(n).forEach(((e) => {
				t.includes(e.toLowerCase()) || (this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`), delete n[e]);
			})), n;
		}));
	}
	get(e, t) {
		return this.preflightAndHeaders(e).then(((t) => jm(Lm(this, Pm)[Pm](e), {
			method: "get",
			headers: t,
			credentials: this.opts.companionCookiesRule || "same-origin"
		}))).then(Lm(this, Nm)[Nm](t)).then(zm).catch(Lm(this, Fm)[Fm]("get", e));
	}
	post(e, t, n) {
		let r = "post";
		return this.preflightAndHeaders(e).then(((n) => jm(Lm(this, Pm)[Pm](e), {
			method: r,
			headers: n,
			credentials: this.opts.companionCookiesRule || "same-origin",
			body: JSON.stringify(t)
		}))).then(Lm(this, Nm)[Nm](n)).then(zm).catch(Lm(this, Fm)[Fm](r, e));
	}
	delete(e, t, n) {
		let r = "delete";
		return this.preflightAndHeaders(e).then(((n) => jm(`${this.hostname}/${e}`, {
			method: r,
			headers: n,
			credentials: this.opts.companionCookiesRule || "same-origin",
			body: t ? JSON.stringify(t) : null
		}))).then(Lm(this, Nm)[Nm](n)).then(zm).catch(Lm(this, Fm)[Fm](r, e));
	}
}, Mm.VERSION = "2.0.4", Mm.defaultHeaders = {
	Accept: "application/json",
	"Content-Type": "application/json",
	"Uppy-Versions": `@uppy/companion-client=${Mm.VERSION}`
}, Im);
function rie(e) {
	return /^(https?:|)\/\//.test(e) ? e : `${this.hostname}/${e}`;
}
function iie(e, t) {
	return (n) => {
		var r;
		if ((r = n) == null || !r.isAuthError) {
			let r = /* @__PURE__ */ Error(`Could not ${e} ${Lm(this, Pm)[Pm](t)}`);
			r.cause = n, n = r;
		}
		return Promise.reject(n);
	};
}
var aie = {
	setItem: (e, t) => new Promise(((n) => {
		localStorage.setItem(e, t), n();
	})),
	getItem: (e) => Promise.resolve(localStorage.getItem(e)),
	removeItem: (e) => new Promise(((t) => {
		localStorage.removeItem(e), t();
	}))
}, Vm, Hm, Um, Wm, Gm, Km, qm;
function Jm(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var oie = 0;
function Ym(e) {
	return "__private_" + oie++ + "_" + e;
}
var sie = (Vm = Ym("queued"), Hm = Ym("emitter"), Um = Ym("isOpen"), Wm = Ym("socket"), Gm = Ym("handleMessage"), Km = Symbol.for("uppy test: getSocket"), qm = Symbol.for("uppy test: getQueued"), class {
	constructor(e) {
		Object.defineProperty(this, Vm, {
			writable: !0,
			value: []
		}), Object.defineProperty(this, Hm, {
			writable: !0,
			value: zp()
		}), Object.defineProperty(this, Um, {
			writable: !0,
			value: !1
		}), Object.defineProperty(this, Wm, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, Gm, {
			writable: !0,
			value: (e) => {
				try {
					let t = JSON.parse(e.data);
					this.emit(t.action, t.payload);
				} catch (e) {
					console.log(e);
				}
			}
		}), this.opts = e, e && !1 === e.autoOpen || this.open();
	}
	get isOpen() {
		return Jm(this, Um)[Um];
	}
	[Km]() {
		return Jm(this, Wm)[Wm];
	}
	[qm]() {
		return Jm(this, Vm)[Vm];
	}
	open() {
		Jm(this, Wm)[Wm] = new WebSocket(this.opts.target), Jm(this, Wm)[Wm].onopen = () => {
			for (Jm(this, Um)[Um] = !0; Jm(this, Vm)[Vm].length > 0 && Jm(this, Um)[Um];) {
				let e = Jm(this, Vm)[Vm].shift();
				this.send(e.action, e.payload);
			}
		}, Jm(this, Wm)[Wm].onclose = () => {
			Jm(this, Um)[Um] = !1;
		}, Jm(this, Wm)[Wm].onmessage = Jm(this, Gm)[Gm];
	}
	close() {
		var e;
		(e = Jm(this, Wm)[Wm]) == null || e.close();
	}
	send(e, t) {
		Jm(this, Um)[Um] ? Jm(this, Wm)[Wm].send(JSON.stringify({
			action: e,
			payload: t
		})) : Jm(this, Vm)[Vm].push({
			action: e,
			payload: t
		});
	}
	on(e, t) {
		Jm(this, Hm)[Hm].on(e, t);
	}
	emit(e, t) {
		Jm(this, Hm)[Hm].emit(e, t);
	}
	once(e, t) {
		Jm(this, Hm)[Hm].once(e, t);
	}
}), cie = {
	RequestClient: Bm,
	Provider: class extends Bm {
		constructor(e, t) {
			super(e, t), this.provider = t.provider, this.id = this.provider, this.name = this.opts.name || ((e) => e.split("-").map(((e) => e.charAt(0).toUpperCase() + e.slice(1))).join(" "))(this.id), this.pluginId = this.opts.pluginId, this.tokenKey = `companion-${this.pluginId}-auth-token`, this.companionKeysParams = this.opts.companionKeysParams, this.preAuthToken = null;
		}
		headers() {
			return Promise.all([super.headers(), this.getAuthToken()]).then(((e) => {
				let [t, n] = e, r = {};
				return n && (r["uppy-auth-token"] = n), this.companionKeysParams && (r["uppy-credentials-params"] = btoa(JSON.stringify({ params: this.companionKeysParams }))), {
					...t,
					...r
				};
			}));
		}
		onReceiveResponse(e) {
			e = super.onReceiveResponse(e);
			let t = this.uppy.getPlugin(this.pluginId), n = t.getPluginState().authenticated ? e.status !== 401 : e.status < 400;
			return t.setPluginState({ authenticated: n }), e;
		}
		setAuthToken(e) {
			return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey, e);
		}
		getAuthToken() {
			return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey);
		}
		authUrl(e) {
			return e === void 0 && (e = {}), this.preAuthToken && (e.uppyPreAuthToken = this.preAuthToken), `${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`;
		}
		fileUrl(e) {
			return `${this.hostname}/${this.id}/get/${e}`;
		}
		fetchPreAuthToken() {
			return this.companionKeysParams ? this.post(`${this.id}/preauth/`, { params: this.companionKeysParams }).then(((e) => {
				this.preAuthToken = e.token;
			})).catch(((e) => {
				this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`, "warning");
			})) : Promise.resolve();
		}
		list(e) {
			return this.get(`${this.id}/list/${e || ""}`);
		}
		logout() {
			return this.get(`${this.id}/logout`).then(((e) => Promise.all([e, this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then(((e) => {
				let [t] = e;
				return t;
			}));
		}
		static initPlugin(e, t, n) {
			if (e.type = "acquirer", e.files = [], n && (e.opts = {
				...n,
				...t
			}), t.serverUrl || t.serverPattern) throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");
			if (t.companionAllowedHosts) {
				let n = t.companionAllowedHosts;
				if (!(typeof n == "string" || Array.isArray(n) || n instanceof RegExp)) throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);
				e.opts.companionAllowedHosts = n;
			} else /^(?!https?:\/\/).*$/i.test(t.companionUrl) ? e.opts.companionAllowedHosts = `https://${t.companionUrl.replace(/^\/\//, "")}` : e.opts.companionAllowedHosts = new URL(t.companionUrl).origin;
			e.storage = e.opts.storage || aie;
		}
	},
	SearchProvider: class extends Bm {
		constructor(e, t) {
			super(e, t), this.provider = t.provider, this.id = this.provider, this.name = this.opts.name || ((e) => e.split("-").map(((e) => e.charAt(0).toUpperCase() + e.slice(1))).join(" "))(this.id), this.pluginId = this.opts.pluginId;
		}
		fileUrl(e) {
			return `${this.hostname}/search/${this.id}/get/${e}`;
		}
		search(e, t) {
			return t = t ? `&${t}` : "", this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`);
		}
	},
	Socket: sie
}, Xm, Zm, lie = Vd((function(e, t, n) {
	let { progress: r, bytesUploaded: i, bytesTotal: a } = t;
	r && (e.uppy.log(`Upload progress: ${r}`), e.uppy.emit("upload-progress", n, {
		uploader: e,
		bytesUploaded: i,
		bytesTotal: a
	}));
}), 300, {
	leading: !0,
	trailing: !0
});
function Qm(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var uie = 0;
function $m(e) {
	return "__private_" + uie++ + "_" + e;
}
var eh = (Xm = $m("emitter"), Zm = $m("events"), class {
	constructor(e) {
		Object.defineProperty(this, Xm, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, Zm, {
			writable: !0,
			value: []
		}), Qm(this, Xm)[Xm] = e;
	}
	on(e, t) {
		return Qm(this, Zm)[Zm].push([e, t]), Qm(this, Xm)[Xm].on(e, t);
	}
	remove() {
		for (let [e, t] of Qm(this, Zm)[Zm].splice(0)) Qm(this, Xm)[Xm].off(e, t);
	}
});
function th(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var nh = 0;
function rh(e) {
	return "__private_" + nh++ + "_" + e;
}
var ih = rh("aliveTimer"), ah = rh("isDone"), oh = rh("onTimedOut"), sh = rh("timeout"), ch = class {
	constructor(e, t) {
		Object.defineProperty(this, ih, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, ah, {
			writable: !0,
			value: !1
		}), Object.defineProperty(this, oh, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, sh, {
			writable: !0,
			value: void 0
		}), th(this, sh)[sh] = e, th(this, oh)[oh] = t;
	}
	progress() {
		th(this, ah)[ah] || th(this, sh)[sh] > 0 && (clearTimeout(th(this, ih)[ih]), th(this, ih)[ih] = setTimeout(th(this, oh)[oh], th(this, sh)[sh]));
	}
	done() {
		th(this, ah)[ah] || (clearTimeout(th(this, ih)[ih]), th(this, ih)[ih] = null, th(this, ah)[ah] = !0);
	}
};
function lh(e, t) {
	if (!Object.prototype.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
	return e;
}
var uh = 0;
function dh(e) {
	return "__private_" + uh++ + "_" + e;
}
function fh() {
	return /* @__PURE__ */ Error("Cancelled");
}
var ph = dh("activeRequests"), mh = dh("queuedHandlers"), hh = dh("call"), gh = dh("queueNext"), _h = dh("next"), vh = dh("queue"), yh = dh("dequeue");
function bh(e) {
	lh(this, ph)[ph] += 1;
	let t, n = !1;
	try {
		t = e();
	} catch (e) {
		throw --lh(this, ph)[ph], e;
	}
	return {
		abort: () => {
			n || (n = !0, --lh(this, ph)[ph], t(), lh(this, gh)[gh]());
		},
		done: () => {
			n || (n = !0, --lh(this, ph)[ph], lh(this, gh)[gh]());
		}
	};
}
function xh() {
	queueMicrotask((() => lh(this, _h)[_h]()));
}
function Sh() {
	if (lh(this, ph)[ph] >= this.limit || lh(this, mh)[mh].length === 0) return;
	let e = lh(this, mh)[mh].shift(), t = lh(this, hh)[hh](e.fn);
	e.abort = t.abort, e.done = t.done;
}
function Ch(e, t) {
	t === void 0 && (t = {});
	let n = {
		fn: e,
		priority: t.priority || 0,
		abort: () => {
			lh(this, yh)[yh](n);
		},
		done: () => {
			throw Error("Cannot mark a queued request as done: this indicates a bug");
		}
	}, r = lh(this, mh)[mh].findIndex(((e) => n.priority > e.priority));
	return r === -1 ? lh(this, mh)[mh].push(n) : lh(this, mh)[mh].splice(r, 0, n), n;
}
function wh(e) {
	let t = lh(this, mh)[mh].indexOf(e);
	t !== -1 && lh(this, mh)[mh].splice(t, 1);
}
var Th = {
	RateLimitedQueue: class {
		constructor(e) {
			Object.defineProperty(this, yh, { value: wh }), Object.defineProperty(this, vh, { value: Ch }), Object.defineProperty(this, _h, { value: Sh }), Object.defineProperty(this, gh, { value: xh }), Object.defineProperty(this, hh, { value: bh }), Object.defineProperty(this, ph, {
				writable: !0,
				value: 0
			}), Object.defineProperty(this, mh, {
				writable: !0,
				value: []
			}), this.limit = typeof e != "number" || e === 0 ? Infinity : e;
		}
		run(e, t) {
			return lh(this, ph)[ph] < this.limit ? lh(this, hh)[hh](e) : lh(this, vh)[vh](e, t);
		}
		wrapPromiseFunction(e, t) {
			var n = this;
			return function() {
				var r = [...arguments];
				let i, a = new Promise(((a, o) => {
					i = n.run((() => {
						let t, n;
						try {
							n = Promise.resolve(e(...r));
						} catch (e) {
							n = Promise.reject(e);
						}
						return n.then(((e) => {
							t ? o(t) : (i.done(), a(e));
						}), ((e) => {
							t ? o(t) : (i.done(), o(e));
						})), () => {
							t = fh();
						};
					}), t);
				}));
				return a.abort = () => {
					i.abort();
				}, a;
			};
		}
	},
	internalRateLimitedQueue: Symbol("__queue")
}, Eh, Dh, Oh = function(e) {
	return !!e && (e.readyState !== 0 && e.readyState !== 4 || e.status === 0);
}, kh = { strings: { timedOut: "Upload stalled for %{seconds} seconds, aborting." } }, { nanoid: Ah } = Qp, { Provider: jh, RequestClient: Mh, Socket: Nh } = cie, { RateLimitedQueue: Ph, internalRateLimitedQueue: Fh } = Th;
function Ih(e, t) {
	let n = t;
	return n ||= /* @__PURE__ */ Error("Upload error"), typeof n == "string" && (n = Error(n)), n instanceof Error || (n = Object.assign(/* @__PURE__ */ Error("Upload error"), { data: n })), Oh(e) ? (n = new Am(n, e), n) : (n.request = e, n);
}
function Lh(e) {
	return e.data.slice(0, e.data.size, e.meta.type);
}
var Rh = (Dh = Eh = class extends Tm {
	constructor(e, t) {
		super(e, t), this.type = "uploader", this.id = this.opts.id || "XHRUpload", this.title = "XHRUpload", this.defaultLocale = kh;
		let n = {
			formData: !0,
			fieldName: t.bundle ? "files[]" : "file",
			method: "post",
			metaFields: null,
			responseUrlFieldName: "url",
			bundle: !1,
			headers: {},
			timeout: 3e4,
			limit: 5,
			withCredentials: !1,
			responseType: "",
			getResponseData(t) {
				let n = {};
				try {
					n = JSON.parse(t);
				} catch (t) {
					e.log(t);
				}
				return n;
			},
			getResponseError(e, t) {
				let n = /* @__PURE__ */ Error("Upload error");
				return Oh(t) && (n = new Am(n, t)), n;
			},
			validateStatus: (e) => e >= 200 && e < 300
		};
		if (this.opts = {
			...n,
			...t
		}, this.i18nInit(), this.handleUpload = this.handleUpload.bind(this), Fh in this.opts ? this.requests = this.opts[Fh] : this.requests = new Ph(this.opts.limit), this.opts.bundle && !this.opts.formData) throw Error("`opts.formData` must be true when `opts.bundle` is enabled.");
		this.uploaderEvents = Object.create(null);
	}
	getOptions(e) {
		let t = this.uppy.getState().xhrUpload, { headers: n } = this.opts, r = {
			...this.opts,
			...t || {},
			...e.xhrUpload || {},
			headers: {}
		};
		return typeof n == "function" ? r.headers = n(e) : Object.assign(r.headers, this.opts.headers), t && Object.assign(r.headers, t.headers), e.xhrUpload && Object.assign(r.headers, e.xhrUpload.headers), r;
	}
	addMetadata(e, t, n) {
		(Array.isArray(n.metaFields) ? n.metaFields : Object.keys(t)).forEach(((n) => {
			e.append(n, t[n]);
		}));
	}
	createFormDataUpload(e, t) {
		let n = new FormData();
		this.addMetadata(n, e.meta, t);
		let r = Lh(e);
		return e.name ? n.append(t.fieldName, r, e.meta.name) : n.append(t.fieldName, r), n;
	}
	createBundledUpload(e, t) {
		let n = new FormData(), { meta: r } = this.uppy.getState();
		return this.addMetadata(n, r, t), e.forEach(((e) => {
			let t = this.getOptions(e), r = Lh(e);
			e.name ? n.append(t.fieldName, r, e.name) : n.append(t.fieldName, r);
		})), n;
	}
	upload(e, t, n) {
		let r = this.getOptions(e);
		return this.uppy.log(`uploading ${t} of ${n}`), new Promise(((t, n) => {
			this.uppy.emit("upload-started", e);
			let i = r.formData ? this.createFormDataUpload(e, r) : e.data, a = new XMLHttpRequest();
			this.uploaderEvents[e.id] = new eh(this.uppy);
			let o = new ch(r.timeout, (() => {
				a.abort(), c.done();
				let t = Error(this.i18n("timedOut", { seconds: Math.ceil(r.timeout / 1e3) }));
				this.uppy.emit("upload-error", e, t), n(t);
			})), s = Ah();
			a.upload.addEventListener("loadstart", (() => {
				this.uppy.log(`[XHRUpload] ${s} started`);
			})), a.upload.addEventListener("progress", ((t) => {
				this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`), o.progress(), t.lengthComputable && this.uppy.emit("upload-progress", e, {
					uploader: this,
					bytesUploaded: t.loaded,
					bytesTotal: t.total
				});
			})), a.addEventListener("load", ((i) => {
				if (this.uppy.log(`[XHRUpload] ${s} finished`), o.done(), c.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null), r.validateStatus(i.target.status, a.responseText, a)) {
					let n = r.getResponseData(a.responseText, a), o = n[r.responseUrlFieldName], s = {
						status: i.target.status,
						body: n,
						uploadURL: o
					};
					return this.uppy.emit("upload-success", e, s), o && this.uppy.log(`Download ${e.name} from ${o}`), t(e);
				}
				let l = r.getResponseData(a.responseText, a), u = Ih(a, r.getResponseError(a.responseText, a)), d = {
					status: i.target.status,
					body: l
				};
				return this.uppy.emit("upload-error", e, u, d), n(u);
			})), a.addEventListener("error", (() => {
				this.uppy.log(`[XHRUpload] ${s} errored`), o.done(), c.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null);
				let t = Ih(a, r.getResponseError(a.responseText, a));
				return this.uppy.emit("upload-error", e, t), n(t);
			})), a.open(r.method.toUpperCase(), r.endpoint, !0), a.withCredentials = r.withCredentials, r.responseType !== "" && (a.responseType = r.responseType);
			let c = this.requests.run((() => {
				this.uppy.emit("upload-started", e);
				let t = this.getOptions(e);
				return Object.keys(t.headers).forEach(((e) => {
					a.setRequestHeader(e, t.headers[e]);
				})), a.send(i), () => {
					o.done(), a.abort();
				};
			}));
			this.onFileRemove(e.id, (() => {
				c.abort(), n(/* @__PURE__ */ Error("File removed"));
			})), this.onCancelAll(e.id, (() => {
				c.abort(), n(/* @__PURE__ */ Error("Upload cancelled"));
			}));
		}));
	}
	uploadRemote(e) {
		let t = this.getOptions(e);
		return new Promise(((n, r) => {
			this.uppy.emit("upload-started", e);
			let i = {};
			(Array.isArray(t.metaFields) ? t.metaFields : Object.keys(e.meta)).forEach(((t) => {
				i[t] = e.meta[t];
			})), new (e.remote.providerOptions.provider ? jh : Mh)(this.uppy, e.remote.providerOptions).post(e.remote.url, {
				...e.remote.body,
				endpoint: t.endpoint,
				size: e.data.size,
				fieldname: t.fieldName,
				metadata: i,
				httpMethod: t.method,
				useFormData: t.formData,
				headers: t.headers
			}).then(((i) => {
				let { token: a } = i, o = new Nh({
					target: `${function(e) {
						let t = /^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];
						return `${/^http:\/\//i.test(e) ? "ws" : "wss"}://${t}`;
					}(e.remote.companionUrl)}/api/${a}`,
					autoOpen: !1
				});
				this.uploaderEvents[e.id] = new eh(this.uppy), this.onFileRemove(e.id, (() => {
					o.send("cancel", {}), s.abort(), n(`upload ${e.id} was removed`);
				})), this.onCancelAll(e.id, (() => {
					o.send("cancel", {}), s.abort(), n(`upload ${e.id} was canceled`);
				})), this.onRetry(e.id, (() => {
					o.send("pause", {}), o.send("resume", {});
				})), this.onRetryAll(e.id, (() => {
					o.send("pause", {}), o.send("resume", {});
				})), o.on("progress", ((t) => lie(this, t, e))), o.on("success", ((r) => {
					let i = t.getResponseData(r.response.responseText, r.response), a = i[t.responseUrlFieldName], o = {
						status: r.response.status,
						body: i,
						uploadURL: a
					};
					return this.uppy.emit("upload-success", e, o), s.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null), n();
				})), o.on("error", ((n) => {
					let i = n.response, a = i ? t.getResponseError(i.responseText, i) : Object.assign(Error(n.error.message), { cause: n.error });
					this.uppy.emit("upload-error", e, a), s.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null), r(a);
				}));
				let s = this.requests.run((() => (o.open(), e.isPaused && o.send("pause", {}), () => o.close())));
			})).catch(((t) => {
				this.uppy.emit("upload-error", e, t), r(t);
			}));
		}));
	}
	uploadBundle(e) {
		return new Promise(((t, n) => {
			let { endpoint: r } = this.opts, { method: i } = this.opts, a = this.uppy.getState().xhrUpload, o = this.createBundledUpload(e, {
				...this.opts,
				...a || {}
			}), s = new XMLHttpRequest(), c = new ch(this.opts.timeout, (() => {
				s.abort();
				let e = Error(this.i18n("timedOut", { seconds: Math.ceil(this.opts.timeout / 1e3) }));
				l(e), n(e);
			})), l = (t) => {
				e.forEach(((e) => {
					this.uppy.emit("upload-error", e, t);
				}));
			};
			s.upload.addEventListener("loadstart", (() => {
				this.uppy.log("[XHRUpload] started uploading bundle"), c.progress();
			})), s.upload.addEventListener("progress", ((t) => {
				c.progress(), t.lengthComputable && e.forEach(((e) => {
					this.uppy.emit("upload-progress", e, {
						uploader: this,
						bytesUploaded: t.loaded / t.total * e.size,
						bytesTotal: e.size
					});
				}));
			})), s.addEventListener("load", ((r) => {
				if (c.done(), this.opts.validateStatus(r.target.status, s.responseText, s)) {
					let n = this.opts.getResponseData(s.responseText, s), i = {
						status: r.target.status,
						body: n
					};
					return e.forEach(((e) => {
						this.uppy.emit("upload-success", e, i);
					})), t();
				}
				let i = this.opts.getResponseError(s.responseText, s) || /* @__PURE__ */ Error("Upload error");
				return i.request = s, l(i), n(i);
			})), s.addEventListener("error", (() => {
				c.done();
				let e = this.opts.getResponseError(s.responseText, s) || /* @__PURE__ */ Error("Upload error");
				return l(e), n(e);
			})), this.uppy.on("cancel-all", (() => {
				c.done(), s.abort();
			})), s.open(i.toUpperCase(), r, !0), s.withCredentials = this.opts.withCredentials, this.opts.responseType !== "" && (s.responseType = this.opts.responseType), Object.keys(this.opts.headers).forEach(((e) => {
				s.setRequestHeader(e, this.opts.headers[e]);
			})), s.send(o), e.forEach(((e) => {
				this.uppy.emit("upload-started", e);
			}));
		}));
	}
	uploadFiles(e) {
		return function(e) {
			let t = [], n = [];
			function r(e) {
				t.push(e);
			}
			function i(e) {
				n.push(e);
			}
			return Promise.all(e.map(((e) => e.then(r, i)))).then((() => ({
				successful: t,
				failed: n
			})));
		}(e.map(((t, n) => {
			let r = parseInt(n, 10) + 1, i = e.length;
			return t.error ? Promise.reject(Error(t.error)) : t.isRemote ? this.uploadRemote(t, r, i) : this.upload(t, r, i);
		})));
	}
	onFileRemove(e, t) {
		this.uploaderEvents[e].on("file-removed", ((n) => {
			e === n.id && t(n.id);
		}));
	}
	onRetry(e, t) {
		this.uploaderEvents[e].on("upload-retry", ((n) => {
			e === n && t();
		}));
	}
	onRetryAll(e, t) {
		this.uploaderEvents[e].on("retry-all", (() => {
			this.uppy.getFile(e) && t();
		}));
	}
	onCancelAll(e, t) {
		this.uploaderEvents[e].on("cancel-all", (() => {
			this.uppy.getFile(e) && t();
		}));
	}
	handleUpload(e) {
		if (e.length === 0) return this.uppy.log("[XHRUpload] No files to upload!"), Promise.resolve();
		this.opts.limit !== 0 || this.opts[Fh] || this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0", "warning"), this.uppy.log("[XHRUpload] Uploading...");
		let t = e.map(((e) => this.uppy.getFile(e)));
		if (this.opts.bundle) {
			if (t.some(((e) => e.isRemote))) throw Error("Can’t upload remote files when the `bundle: true` option is set");
			if (typeof this.opts.headers == "function") throw TypeError("`headers` may not be a function when the `bundle: true` option is set");
			return this.uploadBundle(t);
		}
		return this.uploadFiles(t).then((() => null));
	}
	install() {
		if (this.opts.bundle) {
			let { capabilities: e } = this.uppy.getState();
			this.uppy.setState({ capabilities: {
				...e,
				individualCancellation: !1
			} });
		}
		this.uppy.addUploader(this.handleUpload);
	}
	uninstall() {
		if (this.opts.bundle) {
			let { capabilities: e } = this.uppy.getState();
			this.uppy.setState({ capabilities: {
				...e,
				individualCancellation: !0
			} });
		}
		this.uppy.removeUploader(this.handleUpload);
	}
}, Eh.VERSION = "2.0.6", Dh), zh = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Bh(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var Vh, Hh, Uh = function(e) {
	return e && e.Math == Math && e;
}, W = Uh(typeof globalThis == "object" && globalThis) || Uh(typeof window == "object" && window) || Uh(typeof self == "object" && self) || Uh(typeof zh == "object" && zh) || function() {
	return this;
}() || Function("return this")(), Wh = Object.defineProperty, Gh = function(e, t) {
	try {
		Wh(W, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		W[e] = t;
	}
	return t;
}, Kh = W["__core-js_shared__"] || Gh("__core-js_shared__", {}), qh = Bh((function(e) {
	(e.exports = function(e, t) {
		return Kh[e] || (Kh[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), Jh = Function.prototype, Yh = Jh.bind, Xh = Jh.call, Zh = Yh && Yh.bind(Xh), G = Yh ? function(e) {
	return e && Zh(Xh, e);
} : function(e) {
	return e && function() {
		return Xh.apply(e, arguments);
	};
}, Qh = W.TypeError, $h = function(e) {
	if (e == null) throw Qh("Can't call method on " + e);
	return e;
}, eg = W.Object, tg = function(e) {
	return eg($h(e));
}, ng = G({}.hasOwnProperty), rg = Object.hasOwn || function(e, t) {
	return ng(tg(e), t);
}, ig = 0, ag = Math.random(), og = G(1 .toString), sg = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + og(++ig + ag, 36);
}, cg = function(e) {
	return typeof e == "function";
}, lg = function(e) {
	return cg(e) ? e : void 0;
}, ug = function(e, t) {
	return arguments.length < 2 ? lg(W[e]) : W[e] && W[e][t];
}, dg = ug("navigator", "userAgent") || "", fg = W.process, pg = W.Deno, mg = fg && fg.versions || pg && pg.version, hg = mg && mg.v8;
hg && (Hh = (Vh = hg.split("."))[0] > 0 && Vh[0] < 4 ? 1 : +(Vh[0] + Vh[1])), !Hh && dg && (!(Vh = dg.match(/Edge\/(\d+)/)) || Vh[1] >= 74) && (Vh = dg.match(/Chrome\/(\d+)/)) && (Hh = +Vh[1]);
var gg = Hh, _g = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, vg = !!Object.getOwnPropertySymbols && !_g((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && gg && gg < 41;
})), yg = vg && !Symbol.sham && typeof Symbol.iterator == "symbol", bg = qh("wks"), xg = W.Symbol, Sg = xg && xg.for, Cg = yg ? xg : xg && xg.withoutSetter || sg, wg = function(e) {
	if (!rg(bg, e) || !vg && typeof bg[e] != "string") {
		var t = "Symbol." + e;
		vg && rg(xg, e) ? bg[e] = xg[e] : bg[e] = yg && Sg ? Sg(t) : Cg(t);
	}
	return bg[e];
}, Tg = {};
Tg[wg("toStringTag")] = "z";
var Eg = String(Tg) === "[object z]", Dg = !_g((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), Og = function(e) {
	return typeof e == "object" ? e !== null : cg(e);
}, kg = W.document, Ag = Og(kg) && Og(kg.createElement), jg = function(e) {
	return Ag ? kg.createElement(e) : {};
}, Mg = !Dg && !_g((function() {
	return Object.defineProperty(jg("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), Ng = W.String, Pg = W.TypeError, Fg = function(e) {
	if (Og(e)) return e;
	throw Pg(Ng(e) + " is not an object");
}, Ig = Function.prototype.call, Lg = Ig.bind ? Ig.bind(Ig) : function() {
	return Ig.apply(Ig, arguments);
}, Rg = G({}.isPrototypeOf), zg = W.Object, Bg = yg ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = ug("Symbol");
	return cg(t) && Rg(t.prototype, zg(e));
}, Vg = W.String, Hg = function(e) {
	try {
		return Vg(e);
	} catch {
		return "Object";
	}
}, Ug = W.TypeError, Wg = function(e) {
	if (cg(e)) return e;
	throw Ug(Hg(e) + " is not a function");
}, Gg = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : Wg(n);
}, Kg = W.TypeError, qg = W.TypeError, Jg = wg("toPrimitive"), Yg = function(e) {
	var t = function(e, t) {
		if (!Og(e) || Bg(e)) return e;
		var n, r = Gg(e, Jg);
		if (r) {
			if (t === void 0 && (t = "default"), n = Lg(r, e, t), !Og(n) || Bg(n)) return n;
			throw qg("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && cg(n = e.toString) && !Og(r = Lg(n, e)) || cg(n = e.valueOf) && !Og(r = Lg(n, e)) || t !== "string" && cg(n = e.toString) && !Og(r = Lg(n, e))) return r;
			throw Kg("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return Bg(t) ? t : t + "";
}, Xg = W.TypeError, Zg = Object.defineProperty, Qg = { f: Dg ? Zg : function(e, t, n) {
	if (Fg(e), t = Yg(t), Fg(n), Mg) try {
		return Zg(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw Xg("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, $g = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, e_ = Dg ? function(e, t, n) {
	return Qg.f(e, t, $g(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, t_ = G(Function.toString);
cg(Kh.inspectSource) || (Kh.inspectSource = function(e) {
	return t_(e);
});
var n_, r_, i_, a_ = Kh.inspectSource, o_ = W.WeakMap, s_ = cg(o_) && /native code/.test(a_(o_)), c_ = qh("keys"), l_ = function(e) {
	return c_[e] || (c_[e] = sg(e));
}, u_ = {}, d_ = W.TypeError, f_ = W.WeakMap;
if (s_ || Kh.state) {
	var p_ = Kh.state ||= new f_(), m_ = G(p_.get), h_ = G(p_.has), g_ = G(p_.set);
	n_ = function(e, t) {
		if (h_(p_, e)) throw new d_("Object already initialized");
		return t.facade = e, g_(p_, e, t), t;
	}, r_ = function(e) {
		return m_(p_, e) || {};
	}, i_ = function(e) {
		return h_(p_, e);
	};
} else {
	var __ = l_("state");
	u_[__] = !0, n_ = function(e, t) {
		if (rg(e, __)) throw new d_("Object already initialized");
		return t.facade = e, e_(e, __, t), t;
	}, r_ = function(e) {
		return rg(e, __) ? e[__] : {};
	}, i_ = function(e) {
		return rg(e, __);
	};
}
var v_ = {
	set: n_,
	get: r_,
	has: i_,
	enforce: function(e) {
		return i_(e) ? r_(e) : n_(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!Og(t) || (n = r_(t)).type !== e) throw d_("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, y_ = Function.prototype, b_ = Dg && Object.getOwnPropertyDescriptor, x_ = rg(y_, "name"), S_ = {
	EXISTS: x_,
	PROPER: x_ && function() {}.name === "something",
	CONFIGURABLE: x_ && (!Dg || Dg && b_(y_, "name").configurable)
}, C_ = Bh((function(e) {
	var t = S_.CONFIGURABLE, n = v_.get, r = v_.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		cg(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!rg(a, "name") || t && a.name !== d) && e_(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === W ? l ? e[n] = a : Gh(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : e_(e, n, a));
	})(Function.prototype, "toString", (function() {
		return cg(this) && n(this).source || a_(this);
	}));
})), w_ = G({}.toString), T_ = G("".slice), E_ = function(e) {
	return T_(w_(e), 8, -1);
}, D_ = wg("toStringTag"), O_ = W.Object, k_ = E_(function() {
	return arguments;
}()) == "Arguments", A_ = Eg ? E_ : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = O_(e), D_)) == "string" ? n : k_ ? E_(t) : (r = E_(t)) == "Object" && cg(t.callee) ? "Arguments" : r;
}, j_ = Eg ? {}.toString : function() {
	return "[object " + A_(this) + "]";
};
Eg || C_(Object.prototype, "toString", j_, { unsafe: !0 });
var M_ = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, N_ = jg("span").classList, P_ = N_ && N_.constructor && N_.constructor.prototype, F_ = P_ === Object.prototype ? void 0 : P_, I_ = G(G.bind), L_ = function(e, t) {
	return Wg(e), t === void 0 ? e : I_ ? I_(e, t) : function() {
		return e.apply(t, arguments);
	};
}, R_ = W.Object, z_ = G("".split), B_ = _g((function() {
	return !R_("z").propertyIsEnumerable(0);
})) ? function(e) {
	return E_(e) == "String" ? z_(e, "") : R_(e);
} : R_, V_ = Math.ceil, H_ = Math.floor, U_ = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? H_ : V_)(t);
}, W_ = Math.min, G_ = function(e) {
	return e > 0 ? W_(U_(e), 9007199254740991) : 0;
}, K_ = function(e) {
	return G_(e.length);
}, q_ = Array.isArray || function(e) {
	return E_(e) == "Array";
}, J_ = function() {}, Y_ = [], X_ = ug("Reflect", "construct"), Z_ = /^\s*(?:class|function)\b/, Q_ = G(Z_.exec), $_ = !Z_.exec(J_), ev = function(e) {
	if (!cg(e)) return !1;
	try {
		return X_(J_, Y_, e), !0;
	} catch {
		return !1;
	}
}, tv = !X_ || _g((function() {
	var e;
	return ev(ev.call) || !ev(Object) || !ev((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!cg(e)) return !1;
	switch (A_(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return $_ || !!Q_(Z_, a_(e));
} : ev, nv = wg("species"), rv = W.Array, iv = function(e, t) {
	return new (function(e) {
		var t;
		return q_(e) && (t = e.constructor, (tv(t) && (t === rv || q_(t.prototype)) || Og(t) && (t = t[nv]) === null) && (t = void 0)), t === void 0 ? rv : t;
	}(e))(t === 0 ? 0 : t);
}, av = G([].push), ov = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = tg(c), h = B_(m), g = L_(l, u), _ = K_(h), v = 0, y = d || iv, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: av(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: av(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, sv = {
	forEach: ov(0),
	map: ov(1),
	filter: ov(2),
	some: ov(3),
	every: ov(4),
	find: ov(5),
	findIndex: ov(6),
	filterReject: ov(7)
}, cv = function(e, t) {
	var n = [][e];
	return !!n && _g((function() {
		n.call(null, t || function() {
			throw 1;
		}, 1);
	}));
}, lv = sv.forEach, uv = cv("forEach") ? [].forEach : function(e) {
	return lv(this, e, arguments.length > 1 ? arguments[1] : void 0);
}, dv = function(e) {
	if (e && e.forEach !== uv) try {
		e_(e, "forEach", uv);
	} catch {
		e.forEach = uv;
	}
};
for (var fv in M_) M_[fv] && dv(W[fv] && W[fv].prototype);
dv(F_);
var pv = {}.propertyIsEnumerable, mv = Object.getOwnPropertyDescriptor, hv = { f: mv && !pv.call({ 1: 2 }, 1) ? function(e) {
	var t = mv(this, e);
	return !!t && t.enumerable;
} : pv }, gv = function(e) {
	return B_($h(e));
}, _v = Object.getOwnPropertyDescriptor, vv = { f: Dg ? _v : function(e, t) {
	if (e = gv(e), t = Yg(t), Mg) try {
		return _v(e, t);
	} catch {}
	if (rg(e, t)) return $g(!Lg(hv.f, e, t), e[t]);
} }, yv = Math.max, bv = Math.min, xv = function(e, t) {
	var n = U_(e);
	return n < 0 ? yv(n + t, 0) : bv(n, t);
}, Sv = function(e) {
	return function(t, n, r) {
		var i, a = gv(t), o = K_(a), s = xv(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}, Cv = {
	includes: Sv(!0),
	indexOf: Sv(!1)
}, wv = Cv.indexOf, Tv = G([].push), Ev = function(e, t) {
	var n, r = gv(e), i = 0, a = [];
	for (n in r) !rg(u_, n) && rg(r, n) && Tv(a, n);
	for (; t.length > i;) rg(r, n = t[i++]) && (~wv(a, n) || Tv(a, n));
	return a;
}, Dv = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], Ov = Dv.concat("length", "prototype"), kv = { f: Object.getOwnPropertyNames || function(e) {
	return Ev(e, Ov);
} }, Av = { f: Object.getOwnPropertySymbols }, jv = G([].concat), Mv = ug("Reflect", "ownKeys") || function(e) {
	var t = kv.f(Fg(e)), n = Av.f;
	return n ? jv(t, n(e)) : t;
}, Nv = function(e, t) {
	for (var n = Mv(t), r = Qg.f, i = vv.f, a = 0; a < n.length; a++) {
		var o = n[a];
		rg(e, o) || r(e, o, i(t, o));
	}
}, Pv = /#|\.prototype\./, Fv = function(e, t) {
	var n = Lv[Iv(e)];
	return n == zv || n != Rv && (cg(t) ? _g(t) : !!t);
}, Iv = Fv.normalize = function(e) {
	return String(e).replace(Pv, ".").toLowerCase();
}, Lv = Fv.data = {}, Rv = Fv.NATIVE = "N", zv = Fv.POLYFILL = "P", Bv = Fv, Vv = vv.f, Hv = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? W : l ? W[s] || Gh(s, {}) : (W[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = Vv(n, r)) && o.value : n[r], !Bv(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			Nv(a, i);
		}
		(e.sham || i && i.sham) && e_(a, "sham", !0), C_(n, r, a, e);
	}
}, Uv = Object.keys || function(e) {
	return Ev(e, Dv);
}, Wv = _g((function() {
	Uv(1);
}));
function Gv(e) {
	return Object.prototype.toString.call(e) === "[object Object]";
}
Hv({
	target: "Object",
	stat: !0,
	forced: Wv
}, { keys: function(e) {
	return Uv(tg(e));
} });
var Kv = { isHistory(e) {
	return !1 !== Gv(t = e) && ((n = t.constructor) === void 0 || !1 !== Gv(r = n.prototype) && !1 !== r.hasOwnProperty("isPrototypeOf")) && Array.isArray(e.redos) && Array.isArray(e.undos) && (e.redos.length === 0 || jl.isOperationList(e.redos[0])) && (e.undos.length === 0 || jl.isOperationList(e.undos[0]));
	var t, n, r;
} }, qv = /* @__PURE__ */ new WeakMap(), Jv = /* @__PURE__ */ new WeakMap(), Yv = {
	isHistoryEditor: (e) => Kv.isHistory(e.history) && P.isEditor(e),
	isMerging: (e) => Jv.get(e),
	isSaving: (e) => qv.get(e),
	redo(e) {
		e.redo();
	},
	undo(e) {
		e.undo();
	},
	withoutMerging(e, t) {
		var n = Yv.isMerging(e);
		Jv.set(e, !1), t(), Jv.set(e, n);
	},
	withoutSaving(e, t) {
		var n = Yv.isSaving(e);
		qv.set(e, !1), t(), qv.set(e, n);
	}
}, Xv = W.String, Zv = function(e) {
	if (A_(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return Xv(e);
}, Qv = function() {
	var e = Fg(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, $v = S_.PROPER, ey = RegExp.prototype, ty = ey.toString, ny = G(Qv), ry = _g((function() {
	return ty.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), iy = $v && ty.name != "toString";
(ry || iy) && C_(RegExp.prototype, "toString", (function() {
	var e = Fg(this), t = Zv(e.source), n = e.flags;
	return "/" + t + "/" + Zv(n === void 0 && Rg(ey, e) && !("flags" in ey) ? ny(e) : n);
}), { unsafe: !0 });
var ay, oy = Dg ? Object.defineProperties : function(e, t) {
	Fg(e);
	for (var n, r = gv(t), i = Uv(t), a = i.length, o = 0; a > o;) Qg.f(e, n = i[o++], r[n]);
	return e;
}, sy = ug("document", "documentElement"), cy = l_("IE_PROTO"), ly = function() {}, uy = function(e) {
	return "<script>" + e + "<\/script>";
}, dy = function(e) {
	e.write(uy("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, fy = function() {
	try {
		ay = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	fy = typeof document < "u" ? document.domain && ay ? dy(ay) : ((t = jg("iframe")).style.display = "none", sy.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(uy("document.F=Object")), e.close(), e.F) : dy(ay);
	for (var n = Dv.length; n--;) delete fy.prototype[Dv[n]];
	return fy();
};
u_[cy] = !0;
var py = Object.create || function(e, t) {
	var n;
	return e === null ? n = fy() : (ly.prototype = Fg(e), n = new ly(), ly.prototype = null, n[cy] = e), t === void 0 ? n : oy(n, t);
}, my = wg("unscopables"), hy = Array.prototype;
hy[my] ?? Qg.f(hy, my, {
	configurable: !0,
	value: py(null)
});
var gy = function(e) {
	hy[my][e] = !0;
}, _y = Cv.includes;
Hv({
	target: "Array",
	proto: !0
}, { includes: function(e) {
	return _y(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), gy("includes");
var vy = wg("match"), yy = function(e) {
	var t;
	return Og(e) && ((t = e[vy]) === void 0 ? E_(e) == "RegExp" : !!t);
}, by = W.TypeError, xy = function(e) {
	if (yy(e)) throw by("The method doesn't accept regular expressions");
	return e;
}, Sy = wg("match"), Cy = function(e) {
	var t = /./;
	try {
		"/./"[e](t);
	} catch {
		try {
			return t[Sy] = !1, "/./"[e](t);
		} catch {}
	}
	return !1;
}, wy = G("".indexOf);
Hv({
	target: "String",
	proto: !0,
	forced: !Cy("includes")
}, { includes: function(e) {
	return !!~wy(Zv($h(this)), Zv(xy(e)), arguments.length > 1 ? arguments[1] : void 0);
} });
var Ty = /"/g, Ey = G("".replace);
Hv({
	target: "String",
	proto: !0,
	forced: _g((function() {
		var e = "".anchor("\"");
		return e !== e.toLowerCase() || e.split("\"").length > 3;
	}))
}, { anchor: function(e) {
	return t = e, n = Zv($h(this)), r = "<a", (r += " name=\"" + Ey(Zv(t), Ty, "&quot;") + "\"") + ">" + n + "</a>";
	var t, n, r;
} });
var Dy = function(e, t, n) {
	var r, i;
	Fg(e);
	try {
		if (!(r = Gg(e, "return"))) {
			if (t === "throw") throw n;
			return n;
		}
		r = Lg(r, e);
	} catch (e) {
		i = !0, r = e;
	}
	if (t === "throw") throw n;
	if (i) throw r;
	return Fg(r), n;
}, Oy = function(e, t, n, r) {
	try {
		return r ? t(Fg(n)[0], n[1]) : t(n);
	} catch (t) {
		Dy(e, "throw", t);
	}
}, ky = {}, Ay = wg("iterator"), jy = Array.prototype, My = function(e) {
	return e !== void 0 && (ky.Array === e || jy[Ay] === e);
}, Ny = function(e, t, n) {
	var r = Yg(t);
	r in e ? Qg.f(e, r, $g(0, n)) : e[r] = n;
}, Py = wg("iterator"), Fy = function(e) {
	if (e != null) return Gg(e, Py) || Gg(e, "@@iterator") || ky[A_(e)];
}, Iy = W.TypeError, Ly = function(e, t) {
	var n = arguments.length < 2 ? Fy(e) : t;
	if (Wg(n)) return Fg(Lg(n, e));
	throw Iy(Hg(e) + " is not iterable");
}, Ry = W.Array, zy = wg("iterator"), By = !1;
try {
	var Vy = 0, Hy = {
		next: function() {
			return { done: !!Vy++ };
		},
		return: function() {
			By = !0;
		}
	};
	Hy[zy] = function() {
		return this;
	}, Array.from(Hy, (function() {
		throw 2;
	}));
} catch {}
var Uy = function(e, t) {
	if (!t && !By) return !1;
	var n = !1;
	try {
		var r = {};
		r[zy] = function() {
			return { next: function() {
				return { done: n = !0 };
			} };
		}, e(r);
	} catch {}
	return n;
};
Hv({
	target: "Array",
	stat: !0,
	forced: !Uy((function(e) {
		Array.from(e);
	}))
}, { from: function(e) {
	var t = tg(e), n = tv(this), r = arguments.length, i = r > 1 ? arguments[1] : void 0, a = i !== void 0;
	a && (i = L_(i, r > 2 ? arguments[2] : void 0));
	var o, s, c, l, u, d, f = Fy(t), p = 0;
	if (!f || this == Ry && My(f)) for (o = K_(t), s = n ? new this(o) : Ry(o); o > p; p++) d = a ? i(t[p], p) : t[p], Ny(s, p, d);
	else for (u = (l = Ly(t, f)).next, s = n ? new this() : []; !(c = Lg(u, l)).done; p++) d = a ? Oy(l, i, [c.value, p], !0) : c.value, Ny(s, p, d);
	return s.length = p, s;
} });
var Wy, Gy, Ky, qy = G("".charAt), Jy = G("".charCodeAt), Yy = G("".slice), Xy = function(e) {
	return function(t, n) {
		var r, i, a = Zv($h(t)), o = U_(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = Jy(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = Jy(a, o + 1)) < 56320 || i > 57343 ? e ? qy(a, o) : r : e ? Yy(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}, Zy = {
	codeAt: Xy(!1),
	charAt: Xy(!0)
}, Qy = !_g((function() {
	function e() {}
	return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
})), $y = l_("IE_PROTO"), eb = W.Object, tb = eb.prototype, nb = Qy ? eb.getPrototypeOf : function(e) {
	var t = tg(e);
	if (rg(t, $y)) return t[$y];
	var n = t.constructor;
	return cg(n) && t instanceof n ? n.prototype : t instanceof eb ? tb : null;
}, rb = wg("iterator"), ib = !1;
[].keys && ("next" in (Ky = [].keys()) ? (Gy = nb(nb(Ky))) !== Object.prototype && (Wy = Gy) : ib = !0), (Wy == null || _g((function() {
	var e = {};
	return Wy[rb].call(e) !== e;
}))) && (Wy = {}), cg(Wy[rb]) || C_(Wy, rb, (function() {
	return this;
}));
var ab = {
	IteratorPrototype: Wy,
	BUGGY_SAFARI_ITERATORS: ib
}, ob = Qg.f, sb = wg("toStringTag"), cb = function(e, t, n) {
	e && !rg(e = n ? e : e.prototype, sb) && ob(e, sb, {
		configurable: !0,
		value: t
	});
}, lb = ab.IteratorPrototype, ub = function() {
	return this;
}, db = W.String, fb = W.TypeError, pb = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var e, t = !1, n = {};
	try {
		(e = G(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(n, []), t = n instanceof Array;
	} catch {}
	return function(n, r) {
		return Fg(n), function(e) {
			if (typeof e == "object" || cg(e)) return e;
			throw fb("Can't set " + db(e) + " as a prototype");
		}(r), t ? e(n, r) : n.__proto__ = r, n;
	};
}() : void 0), mb = S_.PROPER, hb = S_.CONFIGURABLE, gb = ab.IteratorPrototype, _b = ab.BUGGY_SAFARI_ITERATORS, vb = wg("iterator"), yb = function() {
	return this;
}, bb = function(e, t, n, r, i, a, o) {
	(function(e, t, n, r) {
		var i = t + " Iterator";
		e.prototype = py(lb, { next: $g(1, n) }), cb(e, i, !1), ky[i] = ub;
	})(n, t, r);
	var s, c, l, u = function(e) {
		if (e === i && h) return h;
		if (!_b && e in p) return p[e];
		switch (e) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new n(this, e);
			};
		}
		return function() {
			return new n(this);
		};
	}, d = t + " Iterator", f = !1, p = e.prototype, m = p[vb] || p["@@iterator"] || i && p[i], h = !_b && m || u(i), g = t == "Array" && p.entries || m;
	if (g && (s = nb(g.call(new e()))) !== Object.prototype && s.next && (nb(s) !== gb && (pb ? pb(s, gb) : cg(s[vb]) || C_(s, vb, yb)), cb(s, d, !0)), mb && i == "values" && m && m.name !== "values" && (hb ? e_(p, "name", "values") : (f = !0, h = function() {
		return Lg(m, this);
	})), i) if (c = {
		values: u("values"),
		keys: a ? h : u("keys"),
		entries: u("entries")
	}, o) for (l in c) (_b || f || !(l in p)) && C_(p, l, c[l]);
	else Hv({
		target: t,
		proto: !0,
		forced: _b || f
	}, c);
	return p[vb] !== h && C_(p, vb, h, { name: i }), ky[t] = h, c;
}, xb = Zy.charAt, die = v_.set, fie = v_.getterFor("String Iterator");
bb(String, "String", (function(e) {
	die(this, {
		type: "String Iterator",
		string: Zv(e),
		index: 0
	});
}), (function() {
	var e, t = fie(this), n = t.string, r = t.index;
	return r >= n.length ? {
		value: void 0,
		done: !0
	} : (e = xb(n, r), t.index += e.length, {
		value: e,
		done: !1
	});
}));
var Sb, pie = vv.f, Cb = G("".endsWith), mie = G("".slice), hie = Math.min, wb = Cy("endsWith");
Hv({
	target: "String",
	proto: !0,
	forced: !!(wb || (Sb = pie(String.prototype, "endsWith"), !Sb || Sb.writable)) && !wb
}, { endsWith: function(e) {
	var t = Zv($h(this));
	xy(e);
	var n = arguments.length > 1 ? arguments[1] : void 0, r = t.length, i = n === void 0 ? r : hie(G_(n), r), a = Zv(e);
	return Cb ? Cb(t, a, i) : mie(t, i - a.length, i) === a;
} });
var gie = G([].join), _ie = B_ != Object, vie = cv("join", ",");
Hv({
	target: "Array",
	proto: !0,
	forced: _ie || !vie
}, { join: function(e) {
	return gie(gv(this), e === void 0 ? "," : e);
} });
var yie = wg("species"), Tb = function(e) {
	return gg >= 51 || !_g((function() {
		var t = [];
		return (t.constructor = {})[yie] = function() {
			return { foo: 1 };
		}, t[e](Boolean).foo !== 1;
	}));
}, bie = sv.map;
Hv({
	target: "Array",
	proto: !0,
	forced: !Tb("map")
}, { map: function(e) {
	return bie(this, e, arguments.length > 1 ? arguments[1] : void 0);
} });
var Eb = W.RegExp, Db = _g((function() {
	var e = Eb("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), xie = Db || _g((function() {
	return !Eb("a", "y").sticky;
})), Ob = {
	BROKEN_CARET: Db || _g((function() {
		var e = Eb("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: xie,
	UNSUPPORTED_Y: Db
}, Sie = W.RegExp, kb = _g((function() {
	var e = Sie(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), Cie = W.RegExp, Ab = _g((function() {
	var e = Cie("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), wie = v_.get, Tie = qh("native-string-replace", String.prototype.replace), jb = RegExp.prototype.exec, Mb = jb, Eie = G("".charAt), Die = G("".indexOf), Oie = G("".replace), Nb = G("".slice), Pb = function() {
	var e = /a/, t = /b*/g;
	return Lg(jb, e, "a"), Lg(jb, t, "a"), e.lastIndex !== 0 || t.lastIndex !== 0;
}(), Fb = Ob.BROKEN_CARET, Ib = /()??/.exec("")[1] !== void 0;
(Pb || Ib || Fb || kb || Ab) && (Mb = function(e) {
	var t, n, r, i, a, o, s, c = this, l = wie(c), u = Zv(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = Lg(Mb, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = Fb && c.sticky, m = Lg(Qv, c), h = c.source, g = 0, _ = u;
	if (p && (m = Oie(m, "y", ""), Die(m, "g") === -1 && (m += "g"), _ = Nb(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && Eie(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), Ib && (n = RegExp("^" + h + "$(?!\\s)", m)), Pb && (r = c.lastIndex), i = Lg(jb, p ? n : c, _), p ? i ? (i.input = Nb(i.input, g), i[0] = Nb(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : Pb && i && (c.lastIndex = c.global ? i.index + i[0].length : r), Ib && i && i.length > 1 && Lg(Tie, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = py(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var Lb = Mb;
Hv({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== Lb
}, { exec: Lb });
var Rb = Function.prototype, zb = Rb.apply, kie = Rb.bind, Bb = Rb.call, Vb = typeof Reflect == "object" && Reflect.apply || (kie ? Bb.bind(zb) : function() {
	return Bb.apply(zb, arguments);
}), Aie = wg("species"), Hb = RegExp.prototype, Ub = function(e, t, n, r) {
	var i = wg(e), a = !_g((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !_g((function() {
		var t = !1, n = /a/;
		return e === "split" && ((n = {}).constructor = {}, n.constructor[Aie] = function() {
			return n;
		}, n.flags = "", n[i] = /./[i]), n.exec = function() {
			return t = !0, null;
		}, n[i](""), !t;
	}));
	if (!a || !o || n) {
		var s = G(/./[i]), c = t(i, ""[e], (function(e, t, n, r, i) {
			var o = G(e), c = t.exec;
			return c === Lb || c === Hb.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		C_(String.prototype, e, c[0]), C_(Hb, i, c[1]);
	}
	r && e_(Hb[i], "sham", !0);
}, jie = Zy.charAt, Wb = function(e, t, n) {
	return t + (n ? jie(e, t).length : 1);
}, Mie = Math.floor, Gb = G("".charAt), Nie = G("".replace), Kb = G("".slice), Pie = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Fie = /\$([$&'`]|\d{1,2})/g, Iie = function(e, t, n, r, i, a) {
	var o = n + e.length, s = r.length, c = Fie;
	return i !== void 0 && (i = tg(i), c = Pie), Nie(a, c, (function(a, c) {
		var l;
		switch (Gb(c, 0)) {
			case "$": return "$";
			case "&": return e;
			case "`": return Kb(t, 0, n);
			case "'": return Kb(t, o);
			case "<":
				l = i[Kb(c, 1, -1)];
				break;
			default:
				var u = +c;
				if (u === 0) return a;
				if (u > s) {
					var d = Mie(u / 10);
					return d === 0 ? a : d <= s ? r[d - 1] === void 0 ? Gb(c, 1) : r[d - 1] + Gb(c, 1) : a;
				}
				l = r[u - 1];
		}
		return l === void 0 ? "" : l;
	}));
}, Lie = W.TypeError, qb = function(e, t) {
	var n = e.exec;
	if (cg(n)) {
		var r = Lg(n, e, t);
		return r !== null && Fg(r), r;
	}
	if (E_(e) === "RegExp") return Lg(Lb, e, t);
	throw Lie("RegExp#exec called on incompatible receiver");
}, Jb = wg("replace"), Rie = Math.max, zie = Math.min, Bie = G([].concat), Yb = G([].push), Xb = G("".indexOf), Zb = G("".slice), Vie = "a".replace(/./, "$0") === "$0", Qb = !!/./[Jb] && /./[Jb]("a", "$0") === "";
Ub("replace", (function(e, t, n) {
	var r = Qb ? "$" : "$0";
	return [function(e, n) {
		var r = $h(this), i = e == null ? void 0 : Gg(e, Jb);
		return i ? Lg(i, e, r, n) : Lg(t, Zv(r), e, n);
	}, function(e, i) {
		var a = Fg(this), o = Zv(e);
		if (typeof i == "string" && Xb(i, r) === -1 && Xb(i, "$<") === -1) {
			var s = n(t, a, o, i);
			if (s.done) return s.value;
		}
		var c = cg(i);
		c || (i = Zv(i));
		var l = a.global;
		if (l) {
			var u = a.unicode;
			a.lastIndex = 0;
		}
		for (var d = [];;) {
			var f = qb(a, o);
			if (f === null || (Yb(d, f), !l)) break;
			Zv(f[0]) === "" && (a.lastIndex = Wb(o, G_(a.lastIndex), u));
		}
		for (var p, m = "", h = 0, g = 0; g < d.length; g++) {
			for (var _ = Zv((f = d[g])[0]), v = Rie(zie(U_(f.index), o.length), 0), y = [], b = 1; b < f.length; b++) Yb(y, (p = f[b]) === void 0 ? p : String(p));
			var x = f.groups;
			if (c) {
				var S = Bie([_], y, v, o);
				x !== void 0 && Yb(S, x);
				var C = Zv(Vb(i, void 0, S));
			} else C = Iie(_, o, v, y, x, i);
			v >= h && (m += Zb(o, h, v) + C, h = v + _.length);
		}
		return m + Zb(o, h);
	}];
}), !!_g((function() {
	var e = /./;
	return e.exec = function() {
		var e = [];
		return e.groups = { a: "7" }, e;
	}, "".replace(e, "$<a>") !== "7";
})) || !Vie || Qb);
var $b = function(e, t) {
	return $b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
		e.__proto__ = t;
	} || function(e, t) {
		for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
	}, $b(e, t);
};
function ex(e, t) {
	if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
	function n() {
		this.constructor = e;
	}
	$b(e, t), e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
var tx = function() {
	return tx = Object.assign || function(e) {
		for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
		return e;
	}, tx.apply(this, arguments);
};
function nx(e) {
	var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
	if (n) return n.call(e);
	if (e && typeof e.length == "number") return { next: function() {
		return e && r >= e.length && (e = void 0), {
			value: e && e[r++],
			done: !e
		};
	} };
	throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function rx(e, t) {
	var n = typeof Symbol == "function" && e[Symbol.iterator];
	if (!n) return e;
	var r, i, a = n.call(e), o = [];
	try {
		for (; (t === void 0 || t-- > 0) && !(r = a.next()).done;) o.push(r.value);
	} catch (e) {
		i = { error: e };
	} finally {
		try {
			r && !r.done && (n = a.return) && n.call(a);
		} finally {
			if (i) throw i.error;
		}
	}
	return o;
}
function ix(e, t) {
	for (var n = 0, r = t.length, i = e.length; n < r; n++, i++) e[i] = t[n];
	return e;
}
var Hie = 0, ax = function() {
	this.id = "" + Hie++;
}, Uie = v_.set, Wie = v_.getterFor("Array Iterator"), ox = bb(Array, "Array", (function(e, t) {
	Uie(this, {
		type: "Array Iterator",
		target: gv(e),
		index: 0,
		kind: t
	});
}), (function() {
	var e = Wie(this), t = e.target, n = e.kind, r = e.index++;
	return !t || r >= t.length ? (e.target = void 0, {
		value: void 0,
		done: !0
	}) : n == "keys" ? {
		value: r,
		done: !1
	} : n == "values" ? {
		value: t[r],
		done: !1
	} : {
		value: [r, t[r]],
		done: !1
	};
}), "values");
ky.Arguments = ky.Array, gy("keys"), gy("values"), gy("entries");
var sx = function(e, t, n) {
	for (var r in t) C_(e, r, t[r], n);
	return e;
}, Gie = W.Array, Kie = Math.max, cx = function(e, t, n) {
	for (var r = K_(e), i = xv(t, r), a = xv(n === void 0 ? r : n, r), o = Gie(Kie(a - i, 0)), s = 0; i < a; i++, s++) Ny(o, s, e[i]);
	return o.length = s, o;
}, lx = kv.f, ux = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], qie = { f: function(e) {
	return ux && E_(e) == "Window" ? function(e) {
		try {
			return lx(e);
		} catch {
			return cx(ux);
		}
	}(e) : lx(gv(e));
} }, dx = _g((function() {
	if (typeof ArrayBuffer == "function") {
		var e = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(e) && Object.defineProperty(e, "a", { value: 8 });
	}
})), fx = Object.isExtensible, px = _g((function() {
	fx(1);
})) || dx ? function(e) {
	return !!Og(e) && (!dx || E_(e) != "ArrayBuffer") && (!fx || fx(e));
} : fx, Jie = !_g((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), mx = Bh((function(e) {
	var t = Qg.f, n = !1, r = sg("meta"), i = 0, a = function(e) {
		t(e, r, { value: {
			objectID: "O" + i++,
			weakData: {}
		} });
	}, o = e.exports = {
		enable: function() {
			o.enable = function() {}, n = !0;
			var e = kv.f, t = G([].splice), i = {};
			i[r] = 1, e(i).length && (kv.f = function(n) {
				for (var i = e(n), a = 0, o = i.length; a < o; a++) if (i[a] === r) {
					t(i, a, 1);
					break;
				}
				return i;
			}, Hv({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: qie.f }));
		},
		fastKey: function(e, t) {
			if (!Og(e)) return typeof e == "symbol" ? e : (typeof e == "string" ? "S" : "P") + e;
			if (!rg(e, r)) {
				if (!px(e)) return "F";
				if (!t) return "E";
				a(e);
			}
			return e[r].objectID;
		},
		getWeakData: function(e, t) {
			if (!rg(e, r)) {
				if (!px(e)) return !0;
				if (!t) return !1;
				a(e);
			}
			return e[r].weakData;
		},
		onFreeze: function(e) {
			return Jie && n && px(e) && !rg(e, r) && a(e), e;
		}
	};
	u_[r] = !0;
})), Yie = W.TypeError, hx = function(e, t) {
	this.stopped = e, this.result = t;
}, gx = hx.prototype, _x = function(e, t, n) {
	var r, i, a, o, s, c, l, u = n && n.that, d = !(!n || !n.AS_ENTRIES), f = !(!n || !n.IS_ITERATOR), p = !(!n || !n.INTERRUPTED), m = L_(t, u), h = function(e) {
		return r && Dy(r, "normal", e), new hx(!0, e);
	}, g = function(e) {
		return d ? (Fg(e), p ? m(e[0], e[1], h) : m(e[0], e[1])) : p ? m(e, h) : m(e);
	};
	if (f) r = e;
	else {
		if (!(i = Fy(e))) throw Yie(Hg(e) + " is not iterable");
		if (My(i)) {
			for (a = 0, o = K_(e); o > a; a++) if ((s = g(e[a])) && Rg(gx, s)) return s;
			return new hx(!1);
		}
		r = Ly(e, i);
	}
	for (c = r.next; !(l = Lg(c, r)).done;) {
		try {
			s = g(l.value);
		} catch (e) {
			Dy(r, "throw", e);
		}
		if (typeof s == "object" && s && Rg(gx, s)) return s;
	}
	return new hx(!1);
}, Xie = W.TypeError, vx = function(e, t) {
	if (Rg(t, e)) return e;
	throw Xie("Incorrect invocation");
}, yx = function(e, t, n) {
	var r, i;
	return pb && cg(r = t.constructor) && r !== n && Og(i = r.prototype) && i !== n.prototype && pb(e, i), e;
}, bx = function(e, t, n) {
	var r = e.indexOf("Map") !== -1, i = e.indexOf("Weak") !== -1, a = r ? "set" : "add", o = W[e], s = o && o.prototype, c = o, l = {}, u = function(e) {
		var t = G(s[e]);
		C_(s, e, e == "add" ? function(e) {
			return t(this, e === 0 ? 0 : e), this;
		} : e == "delete" ? function(e) {
			return !(i && !Og(e)) && t(this, e === 0 ? 0 : e);
		} : e == "get" ? function(e) {
			return i && !Og(e) ? void 0 : t(this, e === 0 ? 0 : e);
		} : e == "has" ? function(e) {
			return !(i && !Og(e)) && t(this, e === 0 ? 0 : e);
		} : function(e, n) {
			return t(this, e === 0 ? 0 : e, n), this;
		});
	};
	if (Bv(e, !cg(o) || !(i || s.forEach && !_g((function() {
		new o().entries().next();
	}))))) c = n.getConstructor(t, e, r, a), mx.enable();
	else if (Bv(e, !0)) {
		var d = new c(), f = d[a](i ? {} : -0, 1) != d, p = _g((function() {
			d.has(1);
		})), m = Uy((function(e) {
			new o(e);
		})), h = !i && _g((function() {
			for (var e = new o(), t = 5; t--;) e[a](t, t);
			return !e.has(-0);
		}));
		m || ((c = t((function(e, t) {
			vx(e, s);
			var n = yx(new o(), e, c);
			return t != null && _x(t, n[a], {
				that: n,
				AS_ENTRIES: r
			}), n;
		}))).prototype = s, s.constructor = c), (p || h) && (u("delete"), u("has"), r && u("get")), (h || f) && u(a), i && s.clear && delete s.clear;
	}
	return l[e] = c, Hv({
		global: !0,
		forced: c != o
	}, l), cb(c, e), i || n.setStrong(c, e, r), c;
}, xx = mx.getWeakData, Zie = v_.set, Qie = v_.getterFor, $ie = sv.find, eae = sv.findIndex, tae = G([].splice), nae = 0, Sx = function(e) {
	return e.frozen ||= new Cx();
}, Cx = function() {
	this.entries = [];
}, wx = function(e, t) {
	return $ie(e.entries, (function(e) {
		return e[0] === t;
	}));
};
Cx.prototype = {
	get: function(e) {
		var t = wx(this, e);
		if (t) return t[1];
	},
	has: function(e) {
		return !!wx(this, e);
	},
	set: function(e, t) {
		var n = wx(this, e);
		n ? n[1] = t : this.entries.push([e, t]);
	},
	delete: function(e) {
		var t = eae(this.entries, (function(t) {
			return t[0] === e;
		}));
		return ~t && tae(this.entries, t, 1), !!~t;
	}
};
var Tx, Ex = { getConstructor: function(e, t, n, r) {
	var i = e((function(e, i) {
		vx(e, a), Zie(e, {
			type: t,
			id: nae++,
			frozen: void 0
		}), i != null && _x(i, e[r], {
			that: e,
			AS_ENTRIES: n
		});
	})), a = i.prototype, o = Qie(t), s = function(e, t, n) {
		var r = o(e), i = xx(Fg(t), !0);
		return !0 === i ? Sx(r).set(t, n) : i[r.id] = n, e;
	};
	return sx(a, {
		delete: function(e) {
			var t = o(this);
			if (!Og(e)) return !1;
			var n = xx(e);
			return !0 === n ? Sx(t).delete(e) : n && rg(n, t.id) && delete n[t.id];
		},
		has: function(e) {
			var t = o(this);
			if (!Og(e)) return !1;
			var n = xx(e);
			return !0 === n ? Sx(t).has(e) : n && rg(n, t.id);
		}
	}), sx(a, n ? {
		get: function(e) {
			var t = o(this);
			if (Og(e)) {
				var n = xx(e);
				return !0 === n ? Sx(t).get(e) : n ? n[t.id] : void 0;
			}
		},
		set: function(e, t) {
			return s(this, e, t);
		}
	} : { add: function(e) {
		return s(this, e, !0);
	} }), i;
} }, Dx = v_.enforce, rae = !W.ActiveXObject && "ActiveXObject" in W, Ox = function(e) {
	return function() {
		return e(this, arguments.length ? arguments[0] : void 0);
	};
}, iae = bx("WeakMap", Ox, Ex);
if (s_ && rae) {
	Tx = Ex.getConstructor(Ox, "WeakMap", !0), mx.enable();
	var kx = iae.prototype, Ax = G(kx.delete), jx = G(kx.has), Mx = G(kx.get), Nx = G(kx.set);
	sx(kx, {
		delete: function(e) {
			if (Og(e) && !px(e)) {
				var t = Dx(this);
				return t.frozen ||= new Tx(), Ax(this, e) || t.frozen.delete(e);
			}
			return Ax(this, e);
		},
		has: function(e) {
			if (Og(e) && !px(e)) {
				var t = Dx(this);
				return t.frozen ||= new Tx(), jx(this, e) || t.frozen.has(e);
			}
			return jx(this, e);
		},
		get: function(e) {
			if (Og(e) && !px(e)) {
				var t = Dx(this);
				return t.frozen ||= new Tx(), jx(this, e) ? Mx(this, e) : t.frozen.get(e);
			}
			return Mx(this, e);
		},
		set: function(e, t) {
			if (Og(e) && !px(e)) {
				var n = Dx(this);
				n.frozen ||= new Tx(), jx(this, e) ? Nx(this, e, t) : n.frozen.set(e, t);
			} else Nx(this, e, t);
			return this;
		}
	});
}
var Px = wg("iterator"), Fx = wg("toStringTag"), Ix = ox.values, Lx = function(e, t) {
	if (e) {
		if (e[Px] !== Ix) try {
			e_(e, Px, Ix);
		} catch {
			e[Px] = Ix;
		}
		if (e[Fx] || e_(e, Fx, t), M_[t]) {
			for (var n in ox) if (e[n] !== ox[n]) try {
				e_(e, n, ox[n]);
			} catch {
				e[n] = ox[n];
			}
		}
	}
};
for (var Rx in M_) Lx(W[Rx] && W[Rx].prototype, Rx);
Lx(F_, "DOMTokenList");
var zx = /* @__PURE__ */ new WeakMap(), Bx = /* @__PURE__ */ new WeakMap(), Vx = /* @__PURE__ */ new WeakMap(), Hx = /* @__PURE__ */ new WeakMap(), Ux = /* @__PURE__ */ new WeakMap(), Wx = /* @__PURE__ */ new WeakMap(), Gx = /* @__PURE__ */ new WeakMap(), Kx = /* @__PURE__ */ new WeakMap(), qx = /* @__PURE__ */ new WeakMap(), Jx = /* @__PURE__ */ new WeakMap(), Yx = /* @__PURE__ */ new WeakMap(), Xx = /* @__PURE__ */ new WeakMap(), Zx = /* @__PURE__ */ new WeakMap(), Qx = /* @__PURE__ */ new WeakMap(), $x = /* @__PURE__ */ new WeakMap(), eS = /* @__PURE__ */ new WeakMap(), tS = /* @__PURE__ */ new WeakMap(), nS = /* @__PURE__ */ new WeakMap(), rS = /* @__PURE__ */ new WeakMap(), iS = /* @__PURE__ */ new WeakMap(), aS = /* @__PURE__ */ new WeakMap(), oS = /* @__PURE__ */ new WeakMap(), sS = /* @__PURE__ */ new WeakMap(), cS = /* @__PURE__ */ new WeakMap(), lS = /* @__PURE__ */ new WeakMap(), aae = sv.find, uS = !0;
"find" in [] && [,].find((function() {
	uS = !1;
})), Hv({
	target: "Array",
	proto: !0,
	forced: uS
}, { find: function(e) {
	return aae(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), gy("find"), Hv({ global: !0 }, { globalThis: W });
var oae = [
	"area",
	"base",
	"basefont",
	"bgsound",
	"br",
	"col",
	"command",
	"embed",
	"frame",
	"hr",
	"image",
	"img",
	"input",
	"isindex",
	"keygen",
	"link",
	"menuitem",
	"meta",
	"nextid",
	"param",
	"source",
	"track",
	"wbr"
];
ud && (V.fn.css = ud), gd && (V.fn.append = gd), Xu && (V.fn.addClass = Xu), Zu && (V.fn.removeClass = Zu), Qu && (V.fn.hasClass = Qu), rd && (V.fn.on = rd), Dd && (V.fn.focus = Dd), $u && (V.fn.attr = $u), ed && (V.fn.removeAttr = ed), cd && (V.fn.hide = cd), ld && (V.fn.show = ld), sd && (V.fn.offset = sd), ad && (V.fn.width = ad), od && (V.fn.height = od), vd && (V.fn.parent = vd), yd && (V.fn.parents = yd), hd && (V.fn.is = hd), td && (V.fn.dataset = td), nd && (V.fn.val = nd), md && (V.fn.text = md), pd && (V.fn.html = pd), xd && (V.fn.children = xd), Sd && (V.fn.remove = Sd), bd && (V.fn.find = bd), dd && (V.fn.each = dd), Cd && (V.fn.empty = Cd);
var dS, fS, pS = function(e) {
	return e && e.ownerDocument && e.ownerDocument.defaultView || null;
}, mS = function(e) {
	return hS(e) && e.nodeType === 1;
}, hS = function(e) {
	var t = pS(e);
	return !!t && e instanceof t.Node;
}, gS = function(e) {
	var t = e && e.anchorNode && pS(e.anchorNode);
	return !!t && e instanceof t.Selection;
}, _S = function(e) {
	return hS(e) && e.nodeType === 3;
}, vS = function(e) {
	return window.document.getElementById(e) ?? ((window.document.activeElement?.shadowRoot)?.getElementById(e) || null);
}, yS = function(e, t, n) {
	for (var r, i = e.childNodes, a = i[t], o = t, s = !1, c = !1; (hS(r = a) && r.nodeType === 8 || mS(a) && a.childNodes.length === 0 || mS(a) && a.getAttribute("contenteditable") === "false") && (!s || !c);) o >= i.length ? (s = !0, o = t - 1, n = "backward") : o < 0 ? (c = !0, o = t + 1, n = "forward") : (a = i[o], t = o, o += n === "forward" ? 1 : -1);
	return [a, t];
}, sae = function(e, t, n) {
	return rx(yS(e, t, n), 1)[0];
}, cae = function e(t) {
	var n, r, i = "";
	if (_S(t) && t.nodeValue) return t.nodeValue;
	if (mS(t)) {
		try {
			for (var a = nx(Array.from(t.childNodes)), o = a.next(); !o.done; o = a.next()) i += e(o.value);
		} catch (e) {
			n = { error: e };
		} finally {
			try {
				o && !o.done && (r = a.return) && r.call(a);
			} finally {
				if (n) throw n.error;
			}
		}
		var s = getComputedStyle(t).getPropertyValue("display");
		s !== "block" && s !== "list" && s !== "table-row" && t.tagName !== "BR" || (i += "\n");
	}
	return i;
};
function bS(e, t) {
	if (!(e instanceof HTMLElement && e.dataset.slateVoid === "true")) for (var n = e.childNodes, r = n.length; r--;) {
		var i = n[r], a = i.nodeType;
		a == 3 ? t(i, e) : a != 1 && a != 9 && a != 11 || bS(i, t);
	}
}
function xS(e) {
	if (e.length === 0) return "";
	var t = e[0];
	return t.nodeType === dS.ELEMENT_NODE ? t.tagName.toLowerCase() : "";
}
(fS = dS ||= {})[fS.ELEMENT_NODE = 1] = "ELEMENT_NODE", fS[fS.TEXT_NODE = 3] = "TEXT_NODE", fS[fS.CDATA_SECTION_NODE = 4] = "CDATA_SECTION_NODE", fS[fS.PROCESSING_INSTRUCTION_NODE = 7] = "PROCESSING_INSTRUCTION_NODE", fS[fS.COMMENT_NODE = 8] = "COMMENT_NODE", fS[fS.DOCUMENT_NODE = 9] = "DOCUMENT_NODE", fS[fS.DOCUMENT_TYPE_NODE = 10] = "DOCUMENT_TYPE_NODE", fS[fS.DOCUMENT_FRAGMENT_NODE = 11] = "DOCUMENT_FRAGMENT_NODE", globalThis.navigator !== void 0 && globalThis.window !== void 0 && /iPad|iPhone|iPod/.test(navigator.userAgent) && globalThis.window.MSStream;
var SS = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), CS = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);
var wS = typeof navigator < "u" && /Version\/[\d\.]+.*Safari/.test(navigator.userAgent), lae = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), uae = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), TS = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent);
typeof navigator < "u" && /.*QQBrowser/.test(navigator.userAgent);
var ES = !uae && !lae && typeof globalThis < "u" && globalThis.InputEvent && typeof globalThis.InputEvent.prototype.getTargetRanges == "function", K = {
	getWindow: function(e) {
		var t = aS.get(e);
		if (!t) throw Error("Unable to find a host window element for this editor");
		return t;
	},
	findKey: function(e, t) {
		var n = iS.get(t);
		return n || (n = new ax(), iS.set(t, n)), n;
	},
	setNewKey: function(e) {
		var t = new ax();
		iS.set(e, t);
	},
	findPath: function(e, t) {
		for (var n = [], r = t;;) {
			var i = $x.get(r);
			if (i == null) {
				if (P.isEditor(r)) return n;
				break;
			}
			var a = Qx.get(r);
			if (a == null) break;
			n.unshift(a), r = i;
		}
		throw Error("Unable to find the path for Slate node: " + JSON.stringify(t));
	},
	findDocumentOrShadowRoot: function(e) {
		if (e.isDestroyed) return window.document;
		var t = K.toDOMNode(e, e), n = t.getRootNode();
		return (n instanceof Document || n instanceof ShadowRoot) && n.getSelection != null ? n : t.ownerDocument;
	},
	getParentNode: function(e, t) {
		return $x.get(t) || null;
	},
	getParentsNodes: function(e, t) {
		for (var n = [], r = t; r !== e && r != null;) {
			var i = K.getParentNode(e, r);
			if (i == null) break;
			n.push(i), r = i;
		}
		return n;
	},
	getTopNode: function(e, t) {
		var n = [K.findPath(e, t)[0]];
		return F.get(e, n);
	},
	toDOMNode: function(e, t) {
		var n;
		if (P.isEditor(t)) n = eS.get(e);
		else {
			var r = K.findKey(e, t);
			n = nS.get(r);
		}
		if (!n) throw Error("Cannot resolve a DOM node from Slate node: " + JSON.stringify(t));
		return n;
	},
	hasDOMNode: function(e, t, n) {
		n === void 0 && (n = {});
		var r, i = n.editable, a = i !== void 0 && i, o = K.toDOMNode(e, e);
		try {
			r = mS(t) ? t : t.parentElement;
		} catch (e) {
			if (!e.message.includes("Permission denied to access property \"nodeType\"")) throw e;
		}
		return !!r && r.closest("[data-slate-editor]") === o && (!a || r.isContentEditable || !!r.getAttribute("data-slate-zero-width"));
	},
	toDOMRange: function(e, t) {
		var n = t.anchor, r = t.focus, i = R.isBackward(t), a = K.toDOMPoint(e, n), o = R.isCollapsed(t) ? a : K.toDOMPoint(e, r), s = K.getWindow(e).document.createRange(), c = rx(i ? o : a, 2), l = c[0], u = c[1], d = rx(i ? a : o, 2), f = d[0], p = d[1], m = !!(mS(l) ? l : l.parentElement).getAttribute("data-slate-zero-width"), h = !!(mS(f) ? f : f.parentElement).getAttribute("data-slate-zero-width");
		return s.setStart(l, m ? 1 : u), s.setEnd(f, h ? 1 : p), s;
	},
	toDOMPoint: function(e, t) {
		var n, r, i, a = rx(P.node(e, t.path), 1)[0], o = K.toDOMNode(e, a);
		P.void(e, { at: t }) && (t = {
			path: t.path,
			offset: 0
		});
		var s = Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")), c = 0;
		try {
			for (var l = nx(s), u = l.next(); !u.done; u = l.next()) {
				var d = u.value, f = d.childNodes[0];
				if (f != null && f.textContent != null) {
					var p = f.textContent.length, m = d.getAttribute("data-slate-length"), h = c + (m == null ? p : parseInt(m, 10));
					if (t.offset <= h) {
						i = [f, Math.min(p, Math.max(0, t.offset - c))];
						break;
					}
					c = h;
				}
			}
		} catch (e) {
			n = { error: e };
		} finally {
			try {
				u && !u.done && (r = l.return) && r.call(l);
			} finally {
				if (n) throw n.error;
			}
		}
		if (!i) throw Error("Cannot resolve a DOM point from Slate point: " + JSON.stringify(t));
		return i;
	},
	toSlateNode: function(e, t) {
		var n = mS(t) ? t : t.parentElement;
		n && !n.hasAttribute("data-slate-node") && (n = n.closest("[data-slate-node]"));
		var r = n ? tS.get(n) : null;
		if (!r) throw Error("Cannot resolve a Slate node from DOM node: " + n);
		return r;
	},
	findEventRange: function(e, t) {
		"nativeEvent" in t && (t = t.nativeEvent);
		var n = t.clientX, r = t.clientY, i = t.target;
		if (n == null || r == null) throw Error("Cannot resolve a Slate range from a DOM event: " + t);
		var a, o = K.toSlateNode(e, t.target), s = K.findPath(e, o);
		if (P.isVoid(e, o)) {
			var c = i.getBoundingClientRect(), l = e.isInline(o) ? n - c.left < c.left + c.width - n : r - c.top < c.top + c.height - r, u = P.point(e, s, { edge: l ? "start" : "end" }), d = l ? P.before(e, u) : P.after(e, u);
			if (d) return P.range(e, d);
		}
		var f = this.getWindow(e).document;
		if (f.caretRangeFromPoint) a = f.caretRangeFromPoint(n, r);
		else {
			var p = f.caretPositionFromPoint(n, r);
			p && ((a = f.createRange()).setStart(p.offsetNode, p.offset), a.setEnd(p.offsetNode, p.offset));
		}
		if (!a) throw Error("Cannot resolve a Slate range from a DOM event: " + t);
		return K.toSlateRange(e, a, {
			exactMatch: !1,
			suppressThrow: !1
		});
	},
	toSlateRange: function(e, t, n) {
		var r, i, a, o, s, c = n.exactMatch, l = n.suppressThrow;
		if ((gS(t) ? t.anchorNode : t.startContainer) && (gS(t) ? (r = t.anchorNode, i = t.anchorOffset, a = t.focusNode, o = t.focusOffset, s = TS && window.document.activeElement && window.document.activeElement.shadowRoot ? t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : t.isCollapsed) : (r = t.startContainer, i = t.startOffset, a = t.endContainer, o = t.endOffset, s = t.collapsed)), r == null || a == null || i == null || o == null) throw Error("Cannot resolve a Slate range from DOM range: " + t);
		var u = K.toSlatePoint(e, [r, i], {
			exactMatch: c,
			suppressThrow: l
		});
		if (!u) return null;
		var d = s ? u : K.toSlatePoint(e, [a, o], {
			exactMatch: c,
			suppressThrow: l
		});
		if (!d) return null;
		var f = {
			anchor: u,
			focus: d
		};
		return R.isExpanded(f) && R.isForward(f) && mS(a) && P.void(e, {
			at: f.focus,
			mode: "highest"
		}) && (f = P.unhangRange(e, f, { voids: !0 })), f;
	},
	toSlatePoint: function(e, t, n) {
		var r, i = n.exactMatch, a = n.suppressThrow, o = rx(i ? t : function(e) {
			var t, n = rx(e, 2), r = n[0], i = n[1];
			if (mS(r) && r.childNodes.length) {
				var a = i === r.childNodes.length, o = a ? i - 1 : i;
				for (r = (t = rx(yS(r, o, a ? "backward" : "forward"), 2))[0], a = (o = t[1]) < i; mS(r) && r.childNodes.length;) {
					var s = a ? r.childNodes.length - 1 : 0;
					r = sae(r, s, a ? "backward" : "forward");
				}
				i = a && r.textContent != null ? r.textContent.length : 0;
			}
			return [r, i];
		}(t), 2), s = o[0], c = o[1], l = s.parentNode, u = null, d = 0;
		if (l) {
			var f = l.closest("[data-slate-void=\"true\"]"), p = l.closest("[data-slate-leaf]"), m = null;
			if (p) {
				u = p.closest("[data-slate-node=\"text\"]");
				var h = K.getWindow(e).document.createRange();
				h.setStart(u, 0), h.setEnd(s, c);
				var g = h.cloneContents();
				ix(ix([], rx(Iu(g.querySelectorAll("[data-slate-zero-width]")))), rx(Iu(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e) {
					e.parentNode.removeChild(e);
				})), d = g.textContent.length, m = u;
			} else f && ((p = f.querySelector("[data-slate-leaf]")) ? (u = p.closest("[data-slate-node=\"text\"]"), d = (m = p).textContent.length, m.querySelectorAll("[data-slate-zero-width]").forEach((function(e) {
				d -= e.textContent.length;
			}))) : d = 1);
			m && d === m.textContent.length && (l.hasAttribute("data-slate-zero-width") || CS && (r = m.textContent) != null && r.endsWith("\n")) && d--;
		}
		if (!u) {
			if (a) return null;
			throw Error("Cannot resolve a Slate point from DOM point: " + t);
		}
		var _ = K.toSlateNode(e, u);
		return {
			path: K.findPath(e, _),
			offset: d
		};
	},
	hasRange: function(e, t) {
		var n = t.anchor, r = t.focus;
		return P.hasPath(e, n.path) && P.hasPath(e, r.path);
	},
	getNodeType: function(e) {
		return N.isElement(e) ? e.type : "";
	},
	checkNodeType: function(e, t) {
		return this.getNodeType(e) === t;
	},
	getNodesStr: function(e) {
		return e.map((function(e) {
			return F.string(e);
		})).join("");
	},
	getSelectedElems: function(e) {
		var t, n, r = [], i = P.nodes(e, { universal: !0 });
		try {
			for (var a = nx(i), o = a.next(); !o.done; o = a.next()) {
				var s = rx(o.value, 1)[0];
				N.isElement(s) && r.push(s);
			}
		} catch (e) {
			t = { error: e };
		} finally {
			try {
				o && !o.done && (n = a.return) && n.call(a);
			} finally {
				if (t) throw t.error;
			}
		}
		return r;
	},
	getSelectedNodeByType: function(e, t) {
		var n = this, r = rx(P.nodes(e, {
			match: function(e) {
				return n.checkNodeType(e, t);
			},
			universal: !0
		}), 1)[0];
		return r == null ? null : r[0];
	},
	getSelectedTextNode: function(e) {
		var t = rx(P.nodes(e, {
			match: function(e) {
				return z.isText(e);
			},
			universal: !0
		}), 1)[0];
		return t == null ? null : t[0];
	},
	isNodeSelected: function(e, t) {
		var n = rx(P.nodes(e, {
			match: function(e) {
				return e === t;
			},
			universal: !0
		}), 1)[0];
		return n != null && rx(n, 1)[0] === t;
	},
	isSelectionAtLineEnd: function(e, t) {
		var n = e.selection;
		return !!n && (P.isEnd(e, n.anchor, t) || P.isEnd(e, n.focus, t));
	},
	getTextarea: function(e) {
		var t = zx.get(e);
		if (t == null) throw Error("Cannot find textarea instance by editor");
		return t;
	},
	getToolbar: function(e) {
		return Hx.get(e) || null;
	},
	getHoverbar: function(e) {
		return Wx.get(e) || null;
	},
	normalizeContent: function(e) {
		e.children.forEach((function(t, n) {
			e.normalizeNode([t, [n]]);
		}));
	},
	getLeftLengthOfMaxLength: function(e) {
		var t = e.getConfig(), n = t.maxLength, r = t.onMaxLength;
		if (typeof n != "number" || n <= 0) return Infinity;
		var i = n - e.getText().replace(/\r|\n|(\r\n)/g, "").length;
		return i <= 0 && r && r(e), i;
	},
	cleanExposedTexNodeInSelectionBlock: function(e) {
		var t, n, r, i, a = K.getTextarea(e).$textArea?.[0].childNodes;
		if (a) try {
			for (var o = nx(Array.from(a)), s = o.next(); !s.done; s = o.next()) {
				var c = s.value;
				if (c.nodeType !== 3) break;
				c.remove();
			}
		} catch (e) {
			t = { error: e };
		} finally {
			try {
				s && !s.done && (n = o.return) && n.call(o);
			} finally {
				if (t) throw t.error;
			}
		}
		var l = P.nodes(e, {
			match: function(t) {
				return !(!N.isElement(t) || e.isInline(t));
			},
			universal: !0
		});
		try {
			for (var u = nx(l), d = u.next(); !d.done; d = u.next()) {
				var f = d.value;
				if (f != null) {
					var p = f[0];
					bS(K.toDOMNode(e, p), (function(e, t) {
						var n = V(t);
						n.attr("data-slate-string") || n.attr("data-slate-zero-width") || n.attr("data-w-e-reserve") || t.removeChild(e);
					}));
				}
			}
		} catch (e) {
			r = { error: e };
		} finally {
			try {
				d && !d.done && (i = u.return) && i.call(u);
			} finally {
				if (r) throw r.error;
			}
		}
	},
	isLastNode: function(e, t) {
		var n = e.children || [];
		return n[n.length - 1] === t;
	},
	genEmptyParagraph: function() {
		return {
			type: "paragraph",
			children: [{ text: "" }]
		};
	},
	isSelectedVoidNode: function(e) {
		var t, n, r = P.nodes(e, { match: function(t) {
			return e.isVoid(t);
		} }), i = 0;
		try {
			for (var a = nx(r), o = a.next(); !o.done; o = a.next()) o.value, i++;
		} catch (e) {
			t = { error: e };
		} finally {
			try {
				o && !o.done && (n = a.return) && n.call(a);
			} finally {
				if (t) throw t.error;
			}
		}
		return i > 0;
	},
	isSelectedEmptyParagraph: function(e) {
		var t = e.selection;
		if (t == null || R.isExpanded(t)) return !1;
		var n = K.getSelectedNodeByType(e, "paragraph");
		if (n === null) return !1;
		var r = n.children;
		return r.length === 1 && (r[0].text === "" || void 0);
	},
	isEmptyPath: function(e, t) {
		var n = P.node(e, t);
		if (n == null) return !1;
		var r = rx(n, 1)[0].children;
		return r.length === 1 && r[0].text === "";
	}
}, dae = 1, DS = {}, OS = {}, fae = sv.filter;
Hv({
	target: "Array",
	proto: !0,
	forced: !Tb("filter")
}, { filter: function(e) {
	return fae(this, e, arguments.length > 1 ? arguments[1] : void 0);
} });
var kS = "	\n\v\f\r \xA0               \u2028\u2029", AS = G("".replace), jS = "[" + kS + "]", pae = RegExp("^" + jS + jS + "*"), mae = RegExp(jS + jS + "*$"), MS = function(e) {
	return function(t) {
		var n = Zv($h(t));
		return 1 & e && (n = AS(n, pae, "")), 2 & e && (n = AS(n, mae, "")), n;
	};
}, hae = {
	start: MS(1),
	end: MS(2),
	trim: MS(3)
}, gae = S_.PROPER, _ae = hae.trim;
Hv({
	target: "String",
	proto: !0,
	forced: function(e) {
		return _g((function() {
			return !!kS[e]() || "​…᠎"[e]() !== "​…᠎" || gae && kS[e].name !== e;
		}));
	}("trim")
}, { trim: function() {
	return _ae(this);
} });
var NS = [], PS = {};
function vae(e, t, n) {
	var r = n.isInline(e) ? "span" : "div";
	return "<" + r + ">" + t + "</" + r + ">";
}
var FS, IS, LS, RS, zS = W.Promise, BS = wg("species"), VS = function(e) {
	var t = ug(e), n = Qg.f;
	Dg && t && !t[BS] && n(t, BS, {
		configurable: !0,
		get: function() {
			return this;
		}
	});
}, yae = W.TypeError, bae = wg("species"), HS = function(e, t) {
	var n, r = Fg(e).constructor;
	return r === void 0 || (n = Fg(r)[bae]) == null ? t : function(e) {
		if (tv(e)) return e;
		throw yae(Hg(e) + " is not a constructor");
	}(n);
}, US = G([].slice), WS = /(?:ipad|iphone|ipod).*applewebkit/i.test(dg), GS = E_(W.process) == "process", KS = W.setImmediate, qS = W.clearImmediate, xae = W.process, JS = W.Dispatch, Sae = W.Function, YS = W.MessageChannel, Cae = W.String, XS = 0, ZS = {};
try {
	FS = W.location;
} catch {}
var QS = function(e) {
	if (rg(ZS, e)) {
		var t = ZS[e];
		delete ZS[e], t();
	}
}, $S = function(e) {
	return function() {
		QS(e);
	};
}, eC = function(e) {
	QS(e.data);
}, tC = function(e) {
	W.postMessage(Cae(e), FS.protocol + "//" + FS.host);
};
KS && qS || (KS = function(e) {
	var t = US(arguments, 1);
	return ZS[++XS] = function() {
		Vb(cg(e) ? e : Sae(e), void 0, t);
	}, IS(XS), XS;
}, qS = function(e) {
	delete ZS[e];
}, GS ? IS = function(e) {
	xae.nextTick($S(e));
} : JS && JS.now ? IS = function(e) {
	JS.now($S(e));
} : YS && !WS ? (RS = (LS = new YS()).port2, LS.port1.onmessage = eC, IS = L_(RS.postMessage, RS)) : W.addEventListener && cg(W.postMessage) && !W.importScripts && FS && FS.protocol !== "file:" && !_g(tC) ? (IS = tC, W.addEventListener("message", eC, !1)) : IS = "onreadystatechange" in jg("script") ? function(e) {
	sy.appendChild(jg("script")).onreadystatechange = function() {
		sy.removeChild(this), QS(e);
	};
} : function(e) {
	setTimeout($S(e), 0);
});
var nC, rC, iC, aC, oC, sC, cC, lC, uC = {
	set: KS,
	clear: qS
}, wae = /ipad|iphone|ipod/i.test(dg) && W.Pebble !== void 0, Tae = /web0s(?!.*chrome)/i.test(dg), Eae = vv.f, dC = uC.set, fC = W.MutationObserver || W.WebKitMutationObserver, pC = W.document, mC = W.process, hC = W.Promise, gC = Eae(W, "queueMicrotask"), _C = gC && gC.value;
_C || (nC = function() {
	var e, t;
	for (GS && (e = mC.domain) && e.exit(); rC;) {
		t = rC.fn, rC = rC.next;
		try {
			t();
		} catch (e) {
			throw rC ? aC() : iC = void 0, e;
		}
	}
	iC = void 0, e && e.enter();
}, WS || GS || Tae || !fC || !pC ? !wae && hC && hC.resolve ? ((cC = hC.resolve(void 0)).constructor = hC, lC = L_(cC.then, cC), aC = function() {
	lC(nC);
}) : GS ? aC = function() {
	mC.nextTick(nC);
} : (dC = L_(dC, W), aC = function() {
	dC(nC);
}) : (oC = !0, sC = pC.createTextNode(""), new fC(nC).observe(sC, { characterData: !0 }), aC = function() {
	sC.data = oC = !oC;
}));
var vC, yC, bC, xC, SC = _C || function(e) {
	var t = {
		fn: e,
		next: void 0
	};
	iC && (iC.next = t), rC || (rC = t, aC()), iC = t;
}, Dae = function(e) {
	var t, n;
	this.promise = new e((function(e, r) {
		if (t !== void 0 || n !== void 0) throw TypeError("Bad Promise constructor");
		t = e, n = r;
	})), this.resolve = Wg(t), this.reject = Wg(n);
}, CC = { f: function(e) {
	return new Dae(e);
} }, wC = function(e) {
	try {
		return {
			error: !1,
			value: e()
		};
	} catch (e) {
		return {
			error: !0,
			value: e
		};
	}
}, Oae = typeof window == "object", TC = uC.set, kae = wg("species"), EC = "Promise", DC = v_.getterFor(EC), Aae = v_.set, jae = v_.getterFor(EC), OC = zS && zS.prototype, kC = zS, AC = OC, jC = W.TypeError, MC = W.document, NC = W.process, PC = CC.f, Mae = PC, Nae = !!(MC && MC.createEvent && W.dispatchEvent), FC = cg(W.PromiseRejectionEvent), IC = !1, LC = Bv(EC, (function() {
	var e = a_(kC), t = e !== String(kC);
	if (!t && gg === 66) return !0;
	if (gg >= 51 && /native code/.test(e)) return !1;
	var n = new kC((function(e) {
		e(1);
	})), r = function(e) {
		e((function() {}), (function() {}));
	};
	return (n.constructor = {})[kae] = r, !(IC = n.then((function() {})) instanceof r) || !t && Oae && !FC;
})), Pae = LC || !Uy((function(e) {
	kC.all(e).catch((function() {}));
})), RC = function(e) {
	var t;
	return !(!Og(e) || !cg(t = e.then)) && t;
}, zC = function(e, t) {
	if (!e.notified) {
		e.notified = !0;
		var n = e.reactions;
		SC((function() {
			for (var r = e.value, i = e.state == 1, a = 0; n.length > a;) {
				var o, s, c, l = n[a++], u = i ? l.ok : l.fail, d = l.resolve, f = l.reject, p = l.domain;
				try {
					u ? (i || (e.rejection === 2 && Iae(e), e.rejection = 1), !0 === u ? o = r : (p && p.enter(), o = u(r), p && (p.exit(), c = !0)), o === l.promise ? f(jC("Promise-chain cycle")) : (s = RC(o)) ? Lg(s, o, d, f) : d(o)) : f(r);
				} catch (e) {
					p && !c && p.exit(), f(e);
				}
			}
			e.reactions = [], e.notified = !1, t && !e.rejection && Fae(e);
		}));
	}
}, BC = function(e, t, n) {
	var r, i;
	Nae ? ((r = MC.createEvent("Event")).promise = t, r.reason = n, r.initEvent(e, !1, !0), W.dispatchEvent(r)) : r = {
		promise: t,
		reason: n
	}, !FC && (i = W["on" + e]) ? i(r) : e === "unhandledrejection" && function(e, t) {
		var n = W.console;
		n && n.error && (arguments.length == 1 ? n.error(e) : n.error(e, t));
	}("Unhandled promise rejection", n);
}, Fae = function(e) {
	Lg(TC, W, (function() {
		var t, n = e.facade, r = e.value;
		if (VC(e) && (t = wC((function() {
			GS ? NC.emit("unhandledRejection", r, n) : BC("unhandledrejection", n, r);
		})), e.rejection = GS || VC(e) ? 2 : 1, t.error)) throw t.value;
	}));
}, VC = function(e) {
	return e.rejection !== 1 && !e.parent;
}, Iae = function(e) {
	Lg(TC, W, (function() {
		var t = e.facade;
		GS ? NC.emit("rejectionHandled", t) : BC("rejectionhandled", t, e.value);
	}));
}, HC = function(e, t, n) {
	return function(r) {
		e(t, r, n);
	};
}, UC = function(e, t, n) {
	e.done || (e.done = !0, n && (e = n), e.value = t, e.state = 2, zC(e, !0));
}, WC = function(e, t, n) {
	if (!e.done) {
		e.done = !0, n && (e = n);
		try {
			if (e.facade === t) throw jC("Promise can't be resolved itself");
			var r = RC(t);
			r ? SC((function() {
				var n = { done: !1 };
				try {
					Lg(r, t, HC(WC, n, e), HC(UC, n, e));
				} catch (t) {
					UC(n, t, e);
				}
			})) : (e.value = t, e.state = 1, zC(e, !1));
		} catch (t) {
			UC({ done: !1 }, t, e);
		}
	}
};
if (LC && (AC = (kC = function(e) {
	vx(this, AC), Wg(e), Lg(vC, this);
	var t = DC(this);
	try {
		e(HC(WC, t), HC(UC, t));
	} catch (e) {
		UC(t, e);
	}
}).prototype, (vC = function(e) {
	Aae(this, {
		type: EC,
		done: !1,
		notified: !1,
		parent: !1,
		reactions: [],
		rejection: !1,
		state: 0,
		value: void 0
	});
}).prototype = sx(AC, {
	then: function(e, t) {
		var n = jae(this), r = n.reactions, i = PC(HS(this, kC));
		return i.ok = !cg(e) || e, i.fail = cg(t) && t, i.domain = GS ? NC.domain : void 0, n.parent = !0, r[r.length] = i, n.state != 0 && zC(n, !1), i.promise;
	},
	catch: function(e) {
		return this.then(void 0, e);
	}
}), yC = function() {
	var e = new vC(), t = DC(e);
	this.promise = e, this.resolve = HC(WC, t), this.reject = HC(UC, t);
}, CC.f = PC = function(e) {
	return e === kC || e === bC ? new yC(e) : Mae(e);
}, cg(zS) && OC !== Object.prototype)) {
	xC = OC.then, IC || (C_(OC, "then", (function(e, t) {
		var n = this;
		return new kC((function(e, t) {
			Lg(xC, n, e, t);
		})).then(e, t);
	}), { unsafe: !0 }), C_(OC, "catch", AC.catch, { unsafe: !0 }));
	try {
		delete OC.constructor;
	} catch {}
	pb && pb(OC, AC);
}
Hv({
	global: !0,
	wrap: !0,
	forced: LC
}, { Promise: kC }), cb(kC, EC, !1), VS(EC), bC = ug(EC), Hv({
	target: EC,
	stat: !0,
	forced: LC
}, { reject: function(e) {
	var t = PC(this);
	return Lg(t.reject, void 0, e), t.promise;
} }), Hv({
	target: EC,
	stat: !0,
	forced: LC
}, { resolve: function(e) {
	return function(e, t) {
		if (Fg(e), Og(t) && t.constructor === e) return t;
		var n = CC.f(e);
		return (0, n.resolve)(t), n.promise;
	}(this, e);
} }), Hv({
	target: EC,
	stat: !0,
	forced: Pae
}, {
	all: function(e) {
		var t = this, n = PC(t), r = n.resolve, i = n.reject, a = wC((function() {
			var n = Wg(t.resolve), a = [], o = 0, s = 1;
			_x(e, (function(e) {
				var c = o++, l = !1;
				s++, Lg(n, t, e).then((function(e) {
					l || (l = !0, a[c] = e, --s || r(a));
				}), i);
			})), --s || r(a);
		}));
		return a.error && i(a.value), n.promise;
	},
	race: function(e) {
		var t = this, n = PC(t), r = n.reject, i = wC((function() {
			var i = Wg(t.resolve);
			_x(e, (function(e) {
				Lg(i, t, e).then(n.resolve, r);
			}));
		}));
		return i.error && r(i.value), n.promise;
	}
});
var GC = Ob.UNSUPPORTED_Y, Lae = Math.min, KC = [].push, Rae = G(/./.exec), qC = G(KC), JC = G("".slice);
function YC(e) {
	Promise.resolve().then(e);
}
function XC(e, t) {
	return N.isElement(e) ? function(e, t) {
		var n = e.type, r = n === void 0 ? "" : n, i = e.children, a = i === void 0 ? [] : i, o = P.isVoid(t, e), s = "";
		o || (s = a.map((function(e) {
			return XC(e, t);
		})).join(""));
		var c = function(e) {
			return PS[e] || vae;
		}(r)(e, s, t), l = "";
		if (l = typeof c == "string" ? c : c.html || "", o || NS.forEach((function(t) {
			return l = t(e, l);
		})), typeof c == "string") return l;
		var u = c.prefix, d = u === void 0 ? "" : u, f = c.suffix, p = f === void 0 ? "" : f;
		return d && (l = d + l), p && (l += p), l;
	}(e, t) : function(e, t) {
		var n = e.text;
		if (n == null) throw Error("Current node is not slate Text " + JSON.stringify(e));
		var r = n;
		r = function(e) {
			return e.replace(/ {2}/g, " &nbsp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/®/g, "&reg;").replace(/©/g, "&copy;").replace(/™/g, "&trade;");
		}(r);
		var i = K.getParentsNodes(t, e).some((function(e) {
			return K.getNodeType(e) === "pre";
		}));
		if (i || (r = r.replace(/\r\n|\r|\n/g, "<br>")), i && (r = r.replace(/&nbsp;/g, " ")), r === "") {
			var a = K.getParentNode(null, e);
			if (!a || a.children.length !== 0) return r;
			r = "<br>";
		}
		return NS.forEach((function(t) {
			return r = t(e, r);
		})), r;
	}(e, t);
}
function ZC(e) {
	return "w-e-element-" + e;
}
Ub("split", (function(e, t, n) {
	var r;
	return r = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(e, n) {
		var r = Zv($h(this)), i = n === void 0 ? 4294967295 : n >>> 0;
		if (i === 0) return [];
		if (e === void 0) return [r];
		if (!yy(e)) return Lg(t, r, e, i);
		for (var a, o, s, c = [], l = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), u = 0, d = new RegExp(e.source, l + "g"); (a = Lg(Lb, d, r)) && !((o = d.lastIndex) > u && (qC(c, JC(r, u, a.index)), a.length > 1 && a.index < r.length && Vb(KC, c, cx(a, 1)), s = a[0].length, u = o, c.length >= i));) d.lastIndex === a.index && d.lastIndex++;
		return u === r.length ? !s && Rae(d, "") || qC(c, "") : qC(c, JC(r, u)), c.length > i ? cx(c, 0, i) : c;
	} : "0".split(void 0, 0).length ? function(e, n) {
		return e === void 0 && n === 0 ? [] : Lg(t, this, e, n);
	} : t, [function(t, n) {
		var i = $h(this), a = t == null ? void 0 : Gg(t, e);
		return a ? Lg(a, t, i, n) : Lg(r, Zv(i), t, n);
	}, function(e, i) {
		var a = Fg(this), o = Zv(e), s = n(r, a, o, i, r !== t);
		if (s.done) return s.value;
		var c = HS(a, RegExp), l = a.unicode, u = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (GC ? "g" : "y"), d = new c(GC ? "^(?:" + a.source + ")" : a, u), f = i === void 0 ? 4294967295 : i >>> 0;
		if (f === 0) return [];
		if (o.length === 0) return qb(d, o) === null ? [o] : [];
		for (var p = 0, m = 0, h = []; m < o.length;) {
			d.lastIndex = GC ? 0 : m;
			var g, _ = qb(d, GC ? JC(o, m) : o);
			if (_ === null || (g = Lae(G_(d.lastIndex + (GC ? m : 0)), o.length)) === p) m = Wb(o, m, l);
			else {
				if (qC(h, JC(o, p, m)), h.length === f) return h;
				for (var v = 1; v <= _.length - 1; v++) if (qC(h, _[v]), h.length === f) return h;
				m = p = g;
			}
		}
		return qC(h, JC(o, p)), h;
	}];
}), !!_g((function() {
	var e = /(?:)/, t = e.exec;
	e.exec = function() {
		return t.apply(this, arguments);
	};
	var n = "ab".split(e);
	return n.length !== 2 || n[0] !== "a" || n[1] !== "b";
})), GC);
var QC = function(e, t) {
	var n = (t.top + t.bottom) / 2;
	return e.top <= n && e.bottom >= n;
}, $C = function(e, t, n) {
	var r = K.toDOMRange(e, t).getBoundingClientRect(), i = K.toDOMRange(e, n).getBoundingClientRect();
	return QC(r, i) && QC(i, r);
}, ew = [
	"span",
	"b",
	"strong",
	"i",
	"em",
	"s",
	"strike",
	"u",
	"font",
	"sub",
	"sup"
], tw = [], nw = [], rw = {}, zae = Qg.f, Bae = kv.f, Vae = v_.enforce, Hae = wg("match"), iw = W.RegExp, aw = iw.prototype, Uae = W.SyntaxError, Wae = G(Qv), Gae = G(aw.exec), ow = G("".charAt), sw = G("".replace), cw = G("".indexOf), Kae = G("".slice), qae = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, lw = /a/g, uw = /a/g, Jae = new iw(lw) !== lw, dw = Ob.MISSED_STICKY, Yae = Ob.UNSUPPORTED_Y;
if (Bv("RegExp", Dg && (!Jae || dw || kb || Ab || _g((function() {
	return uw[Hae] = !1, iw(lw) != lw || iw(uw) == uw || iw(lw, "i") != "/a/i";
}))))) {
	for (var fw = function(e, t) {
		var n, r, i, a, o, s, c = Rg(aw, this), l = yy(e), u = t === void 0, d = [], f = e;
		if (!c && l && u && e.constructor === fw) return e;
		if ((l || Rg(aw, e)) && (e = e.source, u && (t = "flags" in f ? f.flags : Wae(f))), e = e === void 0 ? "" : Zv(e), t = t === void 0 ? "" : Zv(t), f = e, kb && "dotAll" in lw && (r = !!t && cw(t, "s") > -1) && (t = sw(t, /s/g, "")), n = t, dw && "sticky" in lw && (i = !!t && cw(t, "y") > -1) && Yae && (t = sw(t, /y/g, "")), Ab && (a = function(e) {
			for (var t, n = e.length, r = 0, i = "", a = [], o = {}, s = !1, c = !1, l = 0, u = ""; r <= n; r++) {
				if ((t = ow(e, r)) === "\\") t += ow(e, ++r);
				else if (t === "]") s = !1;
				else if (!s) switch (!0) {
					case t === "[":
						s = !0;
						break;
					case t === "(":
						Gae(qae, Kae(e, r + 1)) && (r += 2, c = !0), i += t, l++;
						continue;
					case t === ">" && c:
						if (u === "" || rg(o, u)) throw new Uae("Invalid capture group name");
						o[u] = !0, a[a.length] = [u, l], c = !1, u = "";
						continue;
				}
				c ? u += t : i += t;
			}
			return [i, a];
		}(e), e = a[0], d = a[1]), o = yx(iw(e, t), c ? this : aw, fw), (r || i || d.length) && (s = Vae(o), r && (s.dotAll = !0, s.raw = fw(function(e) {
			for (var t, n = e.length, r = 0, i = "", a = !1; r <= n; r++) (t = ow(e, r)) === "\\" ? i += t + ow(e, ++r) : a || t !== "." ? (t === "[" ? a = !0 : t === "]" && (a = !1), i += t) : i += "[\\s\\S]";
			return i;
		}(e), n)), i && (s.sticky = !0), d.length && (s.groups = d)), e !== f) try {
			e_(o, "source", f === "" ? "(?:)" : f);
		} catch {}
		return o;
	}, Xae = function(e) {
		e in fw || zae(fw, e, {
			configurable: !0,
			get: function() {
				return iw[e];
			},
			set: function(t) {
				iw[e] = t;
			}
		});
	}, pw = Bae(iw), mw = 0; pw.length > mw;) Xae(pw[mw++]);
	aw.constructor = fw, fw.prototype = aw, C_(W, "RegExp", fw);
}
VS("RegExp");
var Zae = /* @__PURE__ */ RegExp("\xA0", "g");
function hw(e) {
	return e.replace(Zae, " ");
}
function gw(e, t) {
	var n = e.length;
	if (n) {
		var r = e[n - 1];
		if (z.isText(r)) {
			var i = Object.keys(r);
			if (i.length === 1 && i[0] === "text") return r.text += t, !0;
		}
	}
	return !1;
}
function Qae(e, t, n) {
	return {
		type: "paragraph",
		children: [{ text: V(e).text().replace(/\s+/gm, " ") }]
	};
}
function _w(e, t) {
	var n = function(e, t) {
		var n = [];
		if (e.attr("data-w-e-is-void") != null) return n;
		var r = e[0].childNodes;
		return r.length === 1 && r[0].nodeName === "BR" ? (n.push({ text: "" }), n) : (r.forEach((function(e) {
			if (e.nodeType !== dS.ELEMENT_NODE) {
				if (e.nodeType === dS.TEXT_NODE) {
					var r = e.textContent || "";
					if (r.trim() === "" && r.indexOf("\n") >= 0) return;
					r && (r = hw(r), gw(n, r) || n.push({ text: r }));
				}
			} else {
				if (e.nodeName === "BR") return void (gw(n, "\n") || n.push({ text: "\n" }));
				var i = yw(V(e), t);
				Array.isArray(i) ? i.forEach((function(e) {
					return n.push(e);
				})) : n.push(i);
			}
		})), n);
	}(e, t), r = function(e) {
		for (var t in rw) if (e[0].matches(t)) return rw[t];
		return Qae;
	}(e)(e[0], n, t);
	return Array.isArray(r) || (r = [r]), r.forEach((function(r) {
		P.isVoid(t, r) || (n.length === 0 && (r.children = [{ text: e.text().replace(/\s+/gm, " ") }]), nw.forEach((function(n) {
			r = n(e[0], r, t);
		})));
	})), r;
}
function vw(e, t) {
	e.parents("pre").length === 0 && (e[0].innerHTML = e[0].innerHTML.replace(/\s+/gm, " ").replace(/<br>/g, "\n"));
	var n = e[0].textContent || "";
	n = function(e) {
		return e.replace(/&nbsp;/g, " ").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&reg;/g, "®").replace(/&copy;/g, "©").replace(/&trade;/g, "™").replace(/&quot;/g, "\"");
	}(n);
	var r = { text: n = hw(n) };
	return nw.forEach((function(n) {
		r = n(e[0], r, t);
	})), r;
}
function yw(e, t) {
	tw.forEach((function(t) {
		var n = t.selector, r = t.preParseHtml;
		e[0].matches(n) && (e = V(r(e[0])));
	}));
	var n = xS(e);
	return n === "span" ? e.attr("data-w-e-type") ? _w(e, t) : vw(e, t) : n === "code" ? xS(e.parent()) === "pre" ? _w(e, t) : vw(e, t) : ew.includes(n) ? vw(e, t) : _w(e, t);
}
function bw(e, t, n) {
	var r = V(n);
	return !!r.attr(t) || (r.attr(t, "true"), e.on("destroyed", (function() {
		r.removeAttr(t);
	})), !1);
}
function xw(e, t) {
	t === void 0 && (t = "");
	var n = [];
	t === "" && (t = "<p><br></p>"), t.indexOf("<") !== 0 && (t = t.split(/\n/).map((function(e) {
		return "<p>" + e + "</p>";
	})).join(""));
	var r = V("<div>" + t + "</div>");
	return Array.from(r.children()).forEach((function(t) {
		var r = yw(V(t), e);
		Array.isArray(r) ? r.forEach((function(e) {
			return n.push(e);
		})) : n.push(r);
	})), n;
}
var $ae = Qg.f, Sw = mx.fastKey, Cw = v_.set, ww = v_.getterFor;
bx("Set", (function(e) {
	return function() {
		return e(this, arguments.length ? arguments[0] : void 0);
	};
}), {
	getConstructor: function(e, t, n, r) {
		var i = e((function(e, i) {
			vx(e, a), Cw(e, {
				type: t,
				index: py(null),
				first: void 0,
				last: void 0,
				size: 0
			}), Dg || (e.size = 0), i != null && _x(i, e[r], {
				that: e,
				AS_ENTRIES: n
			});
		})), a = i.prototype, o = ww(t), s = function(e, t, n) {
			var r, i, a = o(e), s = c(e, t);
			return s ? s.value = n : (a.last = s = {
				index: i = Sw(t, !0),
				key: t,
				value: n,
				previous: r = a.last,
				next: void 0,
				removed: !1
			}, a.first ||= s, r && (r.next = s), Dg ? a.size++ : e.size++, i !== "F" && (a.index[i] = s)), e;
		}, c = function(e, t) {
			var n, r = o(e), i = Sw(t);
			if (i !== "F") return r.index[i];
			for (n = r.first; n; n = n.next) if (n.key == t) return n;
		};
		return sx(a, {
			clear: function() {
				for (var e = o(this), t = e.index, n = e.first; n;) n.removed = !0, n.previous &&= n.previous.next = void 0, delete t[n.index], n = n.next;
				e.first = e.last = void 0, Dg ? e.size = 0 : this.size = 0;
			},
			delete: function(e) {
				var t = this, n = o(t), r = c(t, e);
				if (r) {
					var i = r.next, a = r.previous;
					delete n.index[r.index], r.removed = !0, a && (a.next = i), i && (i.previous = a), n.first == r && (n.first = i), n.last == r && (n.last = a), Dg ? n.size-- : t.size--;
				}
				return !!r;
			},
			forEach: function(e) {
				for (var t, n = o(this), r = L_(e, arguments.length > 1 ? arguments[1] : void 0); t = t ? t.next : n.first;) for (r(t.value, t.key, this); t && t.removed;) t = t.previous;
			},
			has: function(e) {
				return !!c(this, e);
			}
		}), sx(a, n ? {
			get: function(e) {
				var t = c(this, e);
				return t && t.value;
			},
			set: function(e, t) {
				return s(this, e === 0 ? 0 : e, t);
			}
		} : { add: function(e) {
			return s(this, e = e === 0 ? 0 : e, e);
		} }), Dg && $ae(a, "size", { get: function() {
			return o(this).size;
		} }), i;
	},
	setStrong: function(e, t, n) {
		var r = t + " Iterator", i = ww(t), a = ww(r);
		bb(e, t, (function(e, t) {
			Cw(this, {
				type: r,
				target: e,
				state: i(e),
				kind: t,
				last: void 0
			});
		}), (function() {
			for (var e = a(this), t = e.kind, n = e.last; n && n.removed;) n = n.previous;
			return e.target && (e.last = n = n ? n.next : e.state.first) ? t == "keys" ? {
				value: n.key,
				done: !1
			} : t == "values" ? {
				value: n.value,
				done: !1
			} : {
				value: [n.key, n.value],
				done: !1
			} : (e.target = void 0, {
				value: void 0,
				done: !0
			});
		}), n ? "entries" : "values", !n, !0), VS(t);
	}
});
var Tw = /* @__PURE__ */ new Set([
	"doctype",
	"!doctype",
	"meta",
	"script",
	"style",
	"link",
	"frame",
	"iframe",
	"title",
	"svg"
]);
function Ew(e, t) {
	e.isInline(t) ? (e.insertNode(t), t.type === "link" && e.insertFragment([{ text: "" }])) : B.insertNodes(e, t, { mode: "highest" });
}
var eoe = function(e) {
	var t = e, n = t.insertText;
	return t.insertFragment, t.setFragmentData = function(e) {
		var n = t.selection;
		if (n) {
			var r = rx(R.edges(n), 2), i = r[0], a = r[1], o = P.void(t, { at: i.path }), s = P.void(t, { at: a.path });
			if (!R.isCollapsed(n) || o) {
				var c = K.toDOMRange(t, n), l = c.cloneContents(), u = l.childNodes[0];
				if (l.childNodes.forEach((function(e) {
					e.textContent && e.textContent.trim() !== "" && (u = e);
				})), s) {
					var d = rx(s, 1)[0], f = c.cloneRange(), p = K.toDOMNode(t, d);
					f.setEndAfter(p), l = f.cloneContents();
				}
				if (o && (u = l.querySelector("[data-slate-spacer]")), Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e) {
					e.textContent = e.getAttribute("data-slate-zero-width") === "n" ? "\n" : "";
				})), _S(u)) {
					var m = u.ownerDocument.createElement("span");
					m.style.whiteSpace = "pre", m.appendChild(u), l.appendChild(m), u = m;
				}
				var h = t.getFragment(), g = JSON.stringify(h), _ = window.btoa(encodeURIComponent(g));
				u.setAttribute("data-slate-fragment", _), e.setData("application/x-slate-fragment", _);
				var v = l.ownerDocument.createElement("div");
				return v.appendChild(l), v.setAttribute("hidden", "true"), l.ownerDocument.body.appendChild(v), e.setData("text/html", v.innerHTML), e.setData("text/plain", cae(v)), l.ownerDocument.body.removeChild(v), e;
			}
		}
	}, t.insertData = function(e) {
		var r, i, a = e.getData("application/x-slate-fragment");
		if (a) {
			var o = decodeURIComponent(window.atob(a)), s = JSON.parse(o);
			t.insertFragment(s);
		} else {
			var c = e.getData("text/plain"), l = e.getData("text/html");
			if (l) t.dangerouslyInsertHtml(l);
			else if (c) {
				var u = c.split(/\r\n|\r|\n/), d = !1;
				try {
					for (var f = nx(u), p = f.next(); !p.done; p = f.next()) {
						var m = p.value;
						d && B.splitNodes(t, { always: !0 }), n(m), d = !0;
					}
				} catch (e) {
					r = { error: e };
				} finally {
					try {
						p && !p.done && (i = f.return) && i.call(f);
					} finally {
						if (r) throw r.error;
					}
				}
			}
		}
	}, t;
}, Dw = function(e) {
	return e != null;
}, toe = {
	object: !0,
	function: !0,
	undefined: !0
}, noe = /^\s*class[\s{/}]/, roe = Function.prototype.toString, Ow = function(e) {
	return !!function(e) {
		if (typeof e != "function" || !hasOwnProperty.call(e, "length")) return !1;
		try {
			if (typeof e.length != "number" || typeof e.call != "function" || typeof e.apply != "function") return !1;
		} catch {
			return !1;
		}
		return !function(e) {
			if (!function(e) {
				return !!Dw(e) && hasOwnProperty.call(toe, typeof e);
			}(e)) return !1;
			try {
				return !!e.constructor && e.constructor.prototype === e;
			} catch {
				return !1;
			}
		}(e);
	}(e) && !noe.test(roe.call(e));
}, kw = function(e) {
	return e != null;
}, ioe = Object.keys, aoe = function() {
	try {
		return !0;
	} catch {
		return !1;
	}
}() ? Object.keys : function(e) {
	return ioe(kw(e) ? Object(e) : e);
}, ooe = function(e) {
	if (!kw(e)) throw TypeError("Cannot use null or undefined");
	return e;
}, soe = Math.max, Aw = function() {
	var e, t = Object.assign;
	return typeof t == "function" && (t(e = { foo: "raz" }, { bar: "dwa" }, { trzy: "trzy" }), e.foo + e.bar + e.trzy === "razdwatrzy");
}() ? Object.assign : function(e, t) {
	var n, r, i, a = soe(arguments.length, 2);
	for (e = Object(ooe(e)), i = function(r) {
		try {
			e[r] = t[r];
		} catch (e) {
			n ||= e;
		}
	}, r = 1; r < a; ++r) aoe(t = arguments[r]).forEach(i);
	if (n !== void 0) throw n;
	return e;
}, coe = Array.prototype.forEach, jw = Object.create, loe = function(e, t) {
	for (var n in e) t[n] = e[n];
}, Mw = function(e) {
	var t = jw(null);
	return coe.call(arguments, (function(e) {
		kw(e) && loe(Object(e), t);
	})), t;
}, Nw = "razdwatrzy", uoe = String.prototype.indexOf, Pw = typeof Nw.contains == "function" && !0 === Nw.contains("dwa") && !1 === Nw.contains("foo") ? String.prototype.contains : function(e) {
	return uoe.call(this, e, arguments[1]) > -1;
}, Fw = Bh((function(e) {
	var t = e.exports = function(e, t) {
		var n, r, i, a, o;
		return arguments.length < 2 || typeof e != "string" ? (a = t, t = e, e = null) : a = arguments[2], Dw(e) ? (n = Pw.call(e, "c"), r = Pw.call(e, "e"), i = Pw.call(e, "w")) : (n = i = !0, r = !1), o = {
			value: t,
			configurable: n,
			enumerable: r,
			writable: i
		}, a ? Aw(Mw(a), o) : o;
	};
	t.gs = function(e, t, n) {
		var r, i, a, o;
		return typeof e == "string" ? a = arguments[3] : (a = n, n = t, t = e, e = null), Dw(t) ? Ow(t) ? Dw(n) ? Ow(n) || (a = n, n = void 0) : n = void 0 : (a = t, t = n = void 0) : t = void 0, Dw(e) ? (r = Pw.call(e, "c"), i = Pw.call(e, "e")) : (r = !0, i = !1), o = {
			get: t,
			set: n,
			configurable: r,
			enumerable: i
		}, a ? Aw(Mw(a), o) : o;
	};
})), Iw = function(e) {
	if (typeof e != "function") throw TypeError(e + " is not a function");
	return e;
}, Lw = Bh((function(e, t) {
	var n, r, i, a, o, s, c, l = Function.prototype.apply, u = Function.prototype.call, d = Object.create, f = Object.defineProperty, p = Object.defineProperties, m = Object.prototype.hasOwnProperty, h = {
		configurable: !0,
		enumerable: !1,
		writable: !0
	};
	n = function(e, t) {
		var n;
		return Iw(t), m.call(this, "__ee__") ? n = this.__ee__ : (n = h.value = d(null), f(this, "__ee__", h), h.value = null), n[e] ? typeof n[e] == "object" ? n[e].push(t) : n[e] = [n[e], t] : n[e] = t, this;
	}, r = function(e, t) {
		var r, a;
		return Iw(t), a = this, n.call(this, e, r = function() {
			i.call(a, e, r), l.call(t, this, arguments);
		}), r.__eeOnceListener__ = t, this;
	}, i = function(e, t) {
		var n, r, i, a;
		if (Iw(t), !m.call(this, "__ee__") || !(n = this.__ee__)[e]) return this;
		if (typeof (r = n[e]) == "object") for (a = 0; i = r[a]; ++a) i !== t && i.__eeOnceListener__ !== t || (r.length === 2 ? n[e] = r[+!a] : r.splice(a, 1));
		else r !== t && r.__eeOnceListener__ !== t || delete n[e];
		return this;
	}, a = function(e) {
		var t, n, r, i, a;
		if (m.call(this, "__ee__") && (i = this.__ee__[e])) if (typeof i == "object") {
			for (n = arguments.length, a = Array(n - 1), t = 1; t < n; ++t) a[t - 1] = arguments[t];
			for (i = i.slice(), t = 0; r = i[t]; ++t) l.call(r, this, a);
		} else switch (arguments.length) {
			case 1:
				u.call(i, this);
				break;
			case 2:
				u.call(i, this, arguments[1]);
				break;
			case 3:
				u.call(i, this, arguments[1], arguments[2]);
				break;
			default:
				for (n = arguments.length, a = Array(n - 1), t = 1; t < n; ++t) a[t - 1] = arguments[t];
				l.call(i, this, a);
		}
	}, o = {
		on: n,
		once: r,
		off: i,
		emit: a
	}, s = {
		on: Fw(n),
		once: Fw(r),
		off: Fw(i),
		emit: Fw(a)
	}, c = p({}, s), e.exports = t = function(e) {
		return e == null ? d(c) : p(Object(e), s);
	}, t.methods = o;
}));
function Rw(e) {
	var t = cS.get(e);
	return t ?? (t = Lw(), cS.set(e, t)), t;
}
var zw = /* @__PURE__ */ new WeakMap();
function Bw(e, t) {
	var n = zw.get(e);
	n ?? (n = /* @__PURE__ */ new Set(), zw.set(e, n)), n.add(t);
}
function doe(e) {
	return zw.get(e) || /* @__PURE__ */ new Set();
}
function foe(e) {
	zw.set(e, /* @__PURE__ */ new Set());
}
function Vw(e) {
	var t = K.getTextarea(e).$textAreaContainer, n = t.width(), r = t.height(), i = t.offset();
	return {
		top: i.top,
		left: i.left,
		width: n,
		height: r
	};
}
function Hw(e) {
	var t = {
		top: "0",
		left: "0"
	}, n = e.selection;
	if (n == null) return t;
	var r = Vw(e);
	if (r == null) return t;
	var i = r.top, a = r.left, o = r.width, s = r.height, c = K.toDOMRange(e, n).getClientRects()[0];
	if (c == null) return t;
	c.width;
	var l = c.height, u = {}, d = c.top - i, f = c.left - a;
	if (f > o / 2 ? u.right = o - f + 5 + "px" : u.left = f + 5 + "px", d > s / 2) u.bottom = s - d + 5 + "px";
	else {
		var p = d + l;
		p < 0 && (p = 0), u.top = p + 5 + "px";
	}
	return u;
}
function Uw(e, t, n) {
	n === void 0 && (n = "modal");
	var r = {
		top: "0",
		left: "0"
	};
	if (e.selection == null) return r;
	var i = N.isElement(t) && e.isVoid(t), a = N.isElement(t) && e.isInline(t), o = rS.get(t);
	if (o == null) return r;
	var s = o.getBoundingClientRect(), c = s.top, l = s.left, u = s.height, d = s.width;
	if (i) {
		var f = function(e) {
			var t = [];
			t.push(e);
			for (var n = 0; t.length > 0;) {
				var r = t.pop();
				if (r == null || ++n > 1e4) break;
				var i = r.nodeName;
				if (r.nodeType === 1) {
					var a = i.toLowerCase();
					if (oae.includes(a) || a === "iframe" || a === "video") return r;
					var o = r.children || [], s = o.length;
					if (s) for (var c = s - 1; c >= 0; c--) t.push(o[c]);
				}
			}
			return null;
		}(o);
		if (f != null) {
			var p = f.getBoundingClientRect();
			c = p.top, u = p.height;
		}
	}
	var m = Vw(e);
	if (m == null) return r;
	var h, g = m.top, _ = m.left, v = m.width, y = m.height, b = {}, x = c - g, S = l - _;
	if (n === "bar") return b.left = S + "px", x > 40 ? b.bottom = y - x + 5 + "px" : b.top = x + u + 5 + "px", b;
	if (n === "modal") return i ? a ? S > (v - d) / 2 ? b.right = v - S + 5 + "px" : b.left = S + d + 5 + "px" : b.left = "20px" : b.left = S + "px", i ? ((h = x) < 0 && (h = 0), b.top = h + "px") : x > (y - u) / 2 ? b.bottom = y - x + 5 + "px" : ((h = x + u) < 0 && (h = 0), b.top = h + 5 + "px"), b;
	throw Error("type '" + n + "' is invalid");
}
function Ww(e, t) {
	YC((function() {
		var n = Vw(e);
		if (n != null) {
			var r, i = n.top, a = n.left, o = n.width, s = n.height, c = t.offset(), l = c.top, u = c.left, d = t.width(), f = t.height(), p = l - i, m = u - a, h = t.attr("style");
			if (h.indexOf("top") >= 0 && (r = p + f - s) > 0) {
				var g = t.css("top"), _ = parseInt(g.toString()) - r;
				_ < 0 && (_ = 0), t.css("top", _ + "px");
			}
			if (h.indexOf("bottom") >= 0 && l < 0) {
				var v = t.css("bottom"), y = parseInt(v.toString()) - Math.abs(l);
				t.css("bottom", y + "px");
			}
			if (h.indexOf("left") >= 0 && (r = m + d - o) > 0) {
				var b = t.css("left"), x = parseInt(b.toString()) - r;
				x < 0 && (x = 0), t.css("left", x + "px");
			}
			if (h.indexOf("right") >= 0 && u < 0) {
				var S = t.css("right"), C = parseInt(S.toString()) - Math.abs(u);
				t.css("right", C + "px");
			}
		}
	}));
}
var poe = Tb("slice"), Gw = wg("species"), Kw = W.Array, qw = Math.max;
Hv({
	target: "Array",
	proto: !0,
	forced: !poe
}, { slice: function(e, t) {
	var n, r, i, a = gv(this), o = K_(a), s = xv(e, o), c = xv(t === void 0 ? o : t, o);
	if (q_(a) && (n = a.constructor, (tv(n) && (n === Kw || q_(n.prototype)) || Og(n) && (n = n[Gw]) === null) && (n = void 0), n === Kw || n === void 0)) return US(a, s, c);
	for (r = new (n === void 0 ? Kw : n)(qw(c - s, 0)), i = 0; s < c; s++, i++) s in a && Ny(r, i, a[s]);
	return r.length = i, r;
} });
var Jw = vv.f, Yw = G("".startsWith), Xw = G("".slice), Zw = Math.min, Qw = Cy("startsWith");
Hv({
	target: "String",
	proto: !0,
	forced: !(!Qw && function() {
		var e = Jw(String.prototype, "startsWith");
		return e && !e.writable;
	}()) && !Qw
}, { startsWith: function(e) {
	var t = Zv($h(this));
	xy(e);
	var n = G_(Zw(arguments.length > 1 ? arguments[1] : void 0, t.length)), r = Zv(e);
	return Yw ? Yw(t, r, n) : Xw(t, n, n + r.length) === r;
} });
var $w = Object.assign, eT = Object.defineProperty, moe = G([].concat), tT = !$w || _g((function() {
	if (Dg && $w({ b: 1 }, $w(eT({}, "a", {
		enumerable: !0,
		get: function() {
			eT(this, "b", {
				value: 3,
				enumerable: !1
			});
		}
	}), { b: 2 })).b !== 1) return !0;
	var e = {}, t = {}, n = Symbol(), r = "abcdefghijklmnopqrst";
	return e[n] = 7, r.split("").forEach((function(e) {
		t[e] = e;
	})), $w({}, e)[n] != 7 || Uv($w({}, t)).join("") != r;
})) ? function(e, t) {
	for (var n = tg(e), r = arguments.length, i = 1, a = Av.f, o = hv.f; r > i;) for (var s, c = B_(arguments[i++]), l = a ? moe(Uv(c), a(c)) : Uv(c), u = l.length, d = 0; u > d;) s = l[d++], Dg && !Lg(o, c, s) || (n[s] = c[s]);
	return n;
} : $w;
Hv({
	target: "Object",
	stat: !0,
	forced: Object.assign !== tT
}, { assign: tT });
var hoe = [
	"props",
	"attrs",
	"style",
	"dataset",
	"on",
	"hook"
];
function nT(e) {
	var t = e.data, n = t === void 0 ? {} : t, r = e.children, i = r === void 0 ? [] : r;
	Object.keys(n).forEach((function(t) {
		var r, i, a = n[t];
		if (t !== "key") {
			if (!hoe.includes(t)) {
				if (t.startsWith("data-")) {
					var o = t.slice(5);
					o = lp(o), function(e, t) {
						e.data ??= {};
						var n = e.data;
						n.dataset ??= {}, Object.assign(n.dataset, t);
					}(e, ((r = {})[o] = a, r)), delete n[t];
					return;
				}
				(function(e, t) {
					e.data ??= {};
					var n = e.data;
					n.props ??= {}, Object.assign(n.props, t);
				})(e, (i = {}, i[t] = a, i)), delete n[t];
			}
		} else e.key = a;
	})), i.length > 0 && i.forEach((function(e) {
		typeof e != "string" && nT(e);
	}));
}
var rT = [], iT = {};
function goe(e, t, n) {
	return H(n.isInline(e) ? "span" : "div", null, t);
}
function aT(e, t) {
	return t === void 0 && (t = !1), H("span", { "data-slate-string": !0 }, t ? e + "\n" : e);
}
function oT(e, t) {
	return e === void 0 && (e = 0), t === void 0 && (t = !1), H("span", {
		"data-slate-zero-width": t ? "n" : "z",
		"data-slate-length": e
	}, "", t ? H("br", null) : null);
}
function sT(e, t, n, r) {
	return Qx.set(e, t), $x.set(e, n), N.isElement(e) ? function(e, t) {
		var n, r = K.findKey(t, e), i = t.isInline(e), a = P.isVoid(t, e), o = ZC(r.id), s = {
			id: o,
			key: r.id,
			"data-slate-node": "element",
			"data-slate-inline": i
		}, c = e.type, l = e.children, u = l === void 0 ? [] : l, d = function(e) {
			return iT[e] || goe;
		}(c);
		n = a ? null : u.map((function(n, r) {
			return sT(n, r, e, t);
		}));
		var f = d(e, n, t);
		if (a) {
			s["data-slate-void"] = !0;
			var p = i ? "span" : "div", m = rx(rx(F.texts(e), 1)[0], 1)[0], h = H(p, {
				"data-slate-spacer": !0,
				style: {
					height: "0",
					color: "transparent",
					outline: "none",
					position: "absolute"
				}
			}, sT(m, 0, e, t));
			f = H(p, { style: { position: "relative" } }, f, h), Qx.set(m, 0), $x.set(m, e);
		}
		return f.data ??= {}, Object.assign(f.data, s), a || i || (f = function(e, t) {
			var n = t;
			return rT.forEach((function(r) {
				n = r(e, t);
			})), n;
		}(e, f)), YC((function() {
			var t = vS(o);
			t != null && (nS.set(r, t), rS.set(e, t), tS.set(t, e));
		})), f;
	}(e, r) : function(e, t, n) {
		if (e.text == null) throw Error("Current node is not slate Text " + JSON.stringify(e));
		var r = K.findKey(n, e), i = n.getConfig().decorate;
		if (i == null) throw Error("Can not get config.decorate");
		var a = i([e, K.findPath(n, e)]), o = z.decorations(e, a), s = o.map((function(r, i) {
			var a = function(e, t, n, r, i) {
				t === void 0 && (t = !1);
				var a = e.text, o = K.findPath(i, n), s = I.parent(o);
				if (P.isEditor(r)) throw Error("Text node " + JSON.stringify(n) + " parent is Editor");
				return i.isVoid(r) ? oT(F.string(r).length) : a !== "" || r.children[r.children.length - 1] !== n || i.isInline(r) || P.string(i, s) !== "" ? a === "" ? oT() : t && a.slice(-1) === "\n" ? aT(a, !0) : aT(a) : oT(0, !0);
			}(r, i === o.length - 1, e, t, n);
			return a = function(e, t) {
				var n = t;
				return rT.forEach((function(t) {
					n = t(e, n);
				})), n;
			}(r, a), H("span", { "data-slate-leaf": !0 }, a);
		})), c = function(e) {
			return "w-e-text-" + e;
		}(r.id), l = H("span", {
			"data-slate-node": "text",
			id: c,
			key: r.id
		}, s);
		return YC((function() {
			var t = vS(c);
			t != null && (nS.set(r, t), rS.set(e, t), tS.set(t, e));
		})), l;
	}(e, n, r);
}
function _oe(e, t) {
	var n, r = e.$scroll, i = function(e) {
		return "w-e-textarea-" + e;
	}(e.id), a = t.getConfig(), o = a.readOnly, s = a.autoFocus, c = function(e, t) {
		return t === void 0 && (t = !1), Zd("div#" + e, { props: { contentEditable: !t } });
	}(i, o);
	c.children = (t.children || []).map((function(e, n) {
		var r = sT(e, n, t, t);
		return nT(r), r;
	}));
	var l = Yx.get(e);
	if (l ??= !0, l) {
		var u = function(e, t) {
			return V("<div\n        id=\"" + e + "\"\n        data-slate-editor\n        data-slate-node=\"value\"\n        suppressContentEditableWarning\n        role=\"textarea\"\n        spellCheck=\"true\"\n        autoCorrect=\"true\"\n        autoCapitalize=\"true\"\n    ></div>");
		}(i);
		r.append(u), e.$textArea = u, n = u[0], (f = Yd([
			tf,
			df,
			gf,
			af,
			lf,
			$d
		]))(n, c), Yx.set(e, !1), Xx.set(e, f);
	} else {
		var d = Zx.get(e), f = Xx.get(e);
		if (d == null || f == null) return;
		n = d.elm, f(d, c);
	}
	if (n != null || (n = vS(i)) != null) {
		if ((l ? s : t.isFocused()) && n.focus({ preventScroll: !0 }), l) {
			var p = pS(n);
			p && aS.set(t, p);
		}
		eS.set(t, n), rS.set(t, n), tS.set(n, t), Zx.set(e, c);
	}
}
function cT(e) {
	return typeof e == "object" && !!e && e.nodeType === 1;
}
function lT(e, t) {
	return (!t || e !== "hidden") && e !== "visible" && e !== "clip";
}
function uT(e, t) {
	if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
		var n = getComputedStyle(e, null);
		return lT(n.overflowY, t) || lT(n.overflowX, t) || function(e) {
			var t = function(e) {
				if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
				try {
					return e.ownerDocument.defaultView.frameElement;
				} catch {
					return null;
				}
			}(e);
			return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
		}(e);
	}
	return !1;
}
function dT(e, t, n, r, i, a, o, s) {
	return a < e && o > t || a > e && o < t ? 0 : a <= e && s <= n || o >= t && s >= n ? a - e - r : o > t && s < n || a < e && s > n ? o - t + i : 0;
}
function fT(e, t) {
	var n = window, r = t.scrollMode, i = t.block, a = t.inline, o = t.boundary, s = t.skipOverflowHiddenElements, c = typeof o == "function" ? o : function(e) {
		return e !== o;
	};
	if (!cT(e)) throw TypeError("Invalid target");
	for (var l = document.scrollingElement || document.documentElement, u = [], d = e; cT(d) && c(d);) {
		if ((d = d.parentElement) === l) {
			u.push(d);
			break;
		}
		d != null && d === document.body && uT(d) && !uT(document.documentElement) || d != null && uT(d, s) && u.push(d);
	}
	for (var f = n.visualViewport ? n.visualViewport.width : innerWidth, p = n.visualViewport ? n.visualViewport.height : innerHeight, m = window.scrollX || pageXOffset, h = window.scrollY || pageYOffset, g = e.getBoundingClientRect(), _ = g.height, v = g.width, y = g.top, b = g.right, x = g.bottom, S = g.left, C = i === "start" || i === "nearest" ? y : i === "end" ? x : y + _ / 2, w = a === "center" ? S + v / 2 : a === "end" ? b : S, T = [], E = 0; E < u.length; E++) {
		var D = u[E], O = D.getBoundingClientRect(), ee = O.height, te = O.width, ne = O.top, re = O.right, k = O.bottom, ie = O.left;
		if (r === "if-needed" && y >= 0 && S >= 0 && x <= p && b <= f && y >= ne && x <= k && S >= ie && b <= re) return T;
		var A = getComputedStyle(D), ae = parseInt(A.borderLeftWidth, 10), oe = parseInt(A.borderTopWidth, 10), se = parseInt(A.borderRightWidth, 10), ce = parseInt(A.borderBottomWidth, 10), le = 0, ue = 0, de = "offsetWidth" in D ? D.offsetWidth - D.clientWidth - ae - se : 0, fe = "offsetHeight" in D ? D.offsetHeight - D.clientHeight - oe - ce : 0;
		if (l === D) le = i === "start" ? C : i === "end" ? C - p : i === "nearest" ? dT(h, h + p, p, oe, ce, h + C, h + C + _, _) : C - p / 2, ue = a === "start" ? w : a === "center" ? w - f / 2 : a === "end" ? w - f : dT(m, m + f, f, ae, se, m + w, m + w + v, v), le = Math.max(0, le + h), ue = Math.max(0, ue + m);
		else {
			le = i === "start" ? C - ne - oe : i === "end" ? C - k + ce + fe : i === "nearest" ? dT(ne, k, ee, oe, ce + fe, C, C + _, _) : C - (ne + ee / 2) + fe / 2, ue = a === "start" ? w - ie - ae : a === "center" ? w - (ie + te / 2) + de / 2 : a === "end" ? w - re + se + de : dT(ie, re, te, ae, se + de, w, w + v, v);
			var pe = D.scrollLeft, me = D.scrollTop;
			C += me - (le = Math.max(0, Math.min(me + le, D.scrollHeight - ee + fe))), w += pe - (ue = Math.max(0, Math.min(pe + ue, D.scrollWidth - te + de)));
		}
		T.push({
			el: D,
			top: le,
			left: ue
		});
	}
	return T;
}
function pT(e) {
	return e === Object(e) && Object.keys(e).length !== 0;
}
function mT(e, t) {
	return hS(t) && K.hasDOMNode(e, t, { editable: !0 });
}
function hT(e, t) {
	if (e.getConfig().readOnly) return !1;
	var n = gT(e, t) && K.toSlateNode(e, t);
	return P.isVoid(e, n);
}
function gT(e, t) {
	return hS(t) && K.hasDOMNode(e, t);
}
function _T(e, t, n) {
	n === void 0 && (n = !1);
	var r = t.selection, i = t.getConfig(), a = K.findDocumentOrShadowRoot(t).getSelection();
	if (a && (!e.isComposing || n) && t.isFocused()) {
		var o = a.type !== "None";
		if (r || o) {
			var s = eS.get(t), c = !1;
			if (s.contains(a.anchorNode) && s.contains(a.focusNode) && (c = !0), o && c && r) {
				var l = K.toSlateRange(t, a, {
					exactMatch: !0,
					suppressThrow: !0
				});
				if (l && R.equals(l, r)) {
					var u = !0;
					if (R.isCollapsed(r)) {
						var d = a.anchorNode, f = a.anchorOffset;
						if (d === s) {
							var p = s.childNodes, m = void 0;
							(m = p[f]) && m.matches("table") && (u = !1), (m = p[f - 1]) && m.matches("table") && (u = !1);
						}
					}
					if (u) return;
				}
			}
			if (!r || K.hasRange(t, r)) {
				e.isUpdatingSelection = !0;
				var h = r && K.toDOMRange(t, r);
				if (h) {
					R.isBackward(r) ? a.setBaseAndExtent(h.endContainer, h.endOffset, h.startContainer, h.startOffset) : a.setBaseAndExtent(h.startContainer, h.startOffset, h.endContainer, h.endOffset);
					var g = h.startContainer.parentElement;
					if (!g.closest("[data-slate-spacer]")) {
						g.getBoundingClientRect = h.getBoundingClientRect.bind(h);
						var _ = document.body;
						(function(e, t) {
							var n = !e.ownerDocument.documentElement.contains(e);
							if (pT(t) && typeof t.behavior == "function") return t.behavior(n ? [] : fT(e, t));
							if (!n) {
								var r = function(e) {
									return !1 === e ? {
										block: "end",
										inline: "nearest"
									} : pT(e) ? e : {
										block: "start",
										inline: "nearest"
									};
								}(t);
								(function(e, t) {
									t === void 0 && (t = "auto");
									var n = "scrollBehavior" in document.body.style;
									e.forEach((function(e) {
										var r = e.el, i = e.top, a = e.left;
										r.scroll && n ? r.scroll({
											top: i,
											left: a,
											behavior: t
										}) : (r.scrollTop = i, r.scrollLeft = a);
									}));
								})(fT(e, r), r.behavior);
							}
						})(g, {
							scrollMode: "if-needed",
							boundary: i.scroll ? s.parentElement : _,
							block: "end",
							behavior: "smooth"
						}), delete g.getBoundingClientRect;
					}
				} else a.removeAllRanges();
				setTimeout((function() {
					h && CS && s.focus(), e.isUpdatingSelection = !1;
				}));
			} else t.selection = K.toSlateRange(t, a, {
				exactMatch: !1,
				suppressThrow: !1
			});
		}
	}
}
var vT = /* @__PURE__ */ new WeakMap(), yT = /* @__PURE__ */ new WeakMap(), bT = {
	bold: "mod+b",
	compose: [
		"down",
		"left",
		"right",
		"up",
		"backspace",
		"enter"
	],
	moveBackward: "left",
	moveForward: "right",
	moveWordBackward: "ctrl+left",
	moveWordForward: "ctrl+right",
	deleteBackward: "shift?+backspace",
	deleteForward: "shift?+delete",
	extendBackward: "shift+left",
	extendForward: "shift+right",
	italic: "mod+i",
	splitBlock: "shift?+enter",
	undo: "mod+z",
	tab: "tab",
	selectAll: "mod+a"
}, xT = {
	moveLineBackward: "opt+up",
	moveLineForward: "opt+down",
	moveWordBackward: "opt+left",
	moveWordForward: "opt+right",
	deleteBackward: ["ctrl+backspace", "ctrl+h"],
	deleteForward: ["ctrl+delete", "ctrl+d"],
	deleteLineBackward: "cmd+shift?+backspace",
	deleteLineForward: ["cmd+shift?+delete", "ctrl+k"],
	deleteWordBackward: "opt+shift?+backspace",
	deleteWordForward: "opt+shift?+delete",
	extendLineBackward: "opt+shift+up",
	extendLineForward: "opt+shift+down",
	redo: "cmd+shift+z",
	transposeCharacter: "ctrl+t"
}, ST = {
	deleteWordBackward: "ctrl+shift?+backspace",
	deleteWordForward: "ctrl+shift?+delete",
	redo: ["ctrl+y", "ctrl+shift+z"]
}, CT = function(e) {
	var t = bT[e], n = xT[e], r = ST[e], i = t && yp(t), a = n && yp(n), o = r && yp(r);
	return function(e) {
		return !(!i || !i(e)) || !!(SS && a && a(e)) || !(SS || !o || !o(e));
	};
}, wT = {
	isBold: CT("bold"),
	isCompose: CT("compose"),
	isMoveBackward: CT("moveBackward"),
	isMoveForward: CT("moveForward"),
	isDeleteBackward: CT("deleteBackward"),
	isDeleteForward: CT("deleteForward"),
	isDeleteLineBackward: CT("deleteLineBackward"),
	isDeleteLineForward: CT("deleteLineForward"),
	isDeleteWordBackward: CT("deleteWordBackward"),
	isDeleteWordForward: CT("deleteWordForward"),
	isExtendBackward: CT("extendBackward"),
	isExtendForward: CT("extendForward"),
	isExtendLineBackward: CT("extendLineBackward"),
	isExtendLineForward: CT("extendLineForward"),
	isItalic: CT("italic"),
	isMoveLineBackward: CT("moveLineBackward"),
	isMoveLineForward: CT("moveLineForward"),
	isMoveWordBackward: CT("moveWordBackward"),
	isMoveWordForward: CT("moveWordForward"),
	isRedo: CT("redo"),
	isSplitBlock: CT("splitBlock"),
	isTransposeCharacter: CT("transposeCharacter"),
	isUndo: CT("undo"),
	isTab: CT("tab"),
	isSelectAll: CT("selectAll")
};
function TT(e) {
	e.preventDefault();
}
var ET = {
	beforeinput: function(e, t, n) {
		var r = e, i = n.getConfig().readOnly;
		if (ES && !i && mT(n, r.target)) {
			var a = n.selection, o = r.inputType, s = r.dataTransfer || r.data || void 0;
			if (o !== "insertCompositionText" && o !== "deleteCompositionText") {
				if (r.preventDefault(), !o.startsWith("delete") || o.startsWith("deleteBy")) {
					var c = rx(r.getTargetRanges(), 1)[0];
					if (c) {
						var l = K.toSlateRange(n, c, {
							exactMatch: !1,
							suppressThrow: !1
						});
						a && R.equals(a, l) || B.select(n, l);
					}
				}
				if (a && R.isExpanded(a) && o.startsWith("delete")) {
					var u = o.endsWith("Backward") ? "backward" : "forward";
					P.deleteFragment(n, { direction: u });
				} else switch (o) {
					case "deleteByComposition":
					case "deleteByCut":
					case "deleteByDrag":
						P.deleteFragment(n);
						break;
					case "deleteContent":
					case "deleteContentForward":
						P.deleteForward(n);
						break;
					case "deleteContentBackward":
						P.deleteBackward(n);
						break;
					case "deleteEntireSoftLine":
						P.deleteBackward(n, { unit: "line" }), P.deleteForward(n, { unit: "line" });
						break;
					case "deleteHardLineBackward":
						P.deleteBackward(n, { unit: "block" });
						break;
					case "deleteSoftLineBackward":
						P.deleteBackward(n, { unit: "line" });
						break;
					case "deleteHardLineForward":
						P.deleteForward(n, { unit: "block" });
						break;
					case "deleteSoftLineForward":
						P.deleteForward(n, { unit: "line" });
						break;
					case "deleteWordBackward":
						P.deleteBackward(n, { unit: "word" });
						break;
					case "deleteWordForward":
						P.deleteForward(n, { unit: "word" });
						break;
					case "insertLineBreak":
					case "insertParagraph":
						P.insertBreak(n);
						break;
					case "insertFromDrop":
					case "insertFromPaste":
					case "insertFromYank":
					case "insertReplacementText":
					case "insertText":
						if (o === "insertFromPaste" && !lS.get(n)) break;
						s instanceof DataTransfer ? n.insertData(s) : typeof s == "string" && P.insertText(n, s);
				}
			}
		}
	},
	blur: function(e, t, n) {
		var r = e, i = t.isUpdatingSelection, a = t.latestElement;
		if (!n.getConfig().readOnly && !i && mT(n, r.target)) {
			var o = K.findDocumentOrShadowRoot(n);
			if (a !== o.activeElement) {
				var s = r.relatedTarget;
				if (!(s === K.toDOMNode(n, n) || mS(s) && s.hasAttribute("data-slate-spacer"))) {
					if (s != null && hS(s) && K.hasDOMNode(n, s)) {
						var c = K.toSlateNode(n, s);
						if (N.isElement(c) && !n.isVoid(c)) return;
					}
					wS && o.getSelection()?.removeAllRanges(), oS.delete(n);
				}
			}
		}
	},
	focus: function(e, t, n) {
		var r = K.toDOMNode(n, n);
		t.latestElement = K.findDocumentOrShadowRoot(n).activeElement, CS && e.target !== r ? r.focus() : oS.set(n, !0);
	},
	click: function(e, t, n) {
		if (!n.getConfig().readOnly && gT(n, e.target) && hS(e.target)) {
			var r = K.toSlateNode(n, e.target), i = K.findPath(n, r);
			if (P.hasPath(n, i) && F.get(n, i) === r) {
				var a = P.start(n, i), o = P.end(n, i), s = P.void(n, { at: a }), c = P.void(n, { at: o });
				if (s && c && I.equals(s[1], c[1])) {
					var l = P.range(n, a);
					B.select(n, l);
				}
			}
		}
	},
	compositionstart: function(e, t, n) {
		if (mT(n, e.target)) {
			var r = n.selection;
			if (r && R.isExpanded(r) && (P.deleteFragment(n), Promise.resolve().then((function() {
				_T(t, n, !0);
			}))), r && R.isCollapsed(r)) {
				var i = K.toDOMRange(n, r).startContainer, a = i.textContent || "";
				vT.set(n, a), yT.set(n, i);
			}
			t.isComposing = !0, function(e, t) {
				var n;
				t.getConfig().placeholder && t.isEmpty() && e.showPlaceholder && ((n = e.$placeholder) == null || n.hide(), e.showPlaceholder = !1);
			}(t, n);
		}
	},
	compositionend: function(e, t, n) {
		var r = e;
		if (mT(n, r.target)) {
			t.isComposing = !1;
			var i = n.selection;
			if (i != null) {
				(TS || CS) && K.cleanExposedTexNodeInSelectionBlock(n);
				for (var a = R.isBackward(i) ? i.focus : i.anchor, o = rx(P.node(n, [a.path[0]]), 1)[0], s = 0; s < a.path.length; s++) {
					var c = rx(P.node(n, a.path.slice(0, s + 1)), 1)[0];
					if (N.isElement(c) && ((wS || CS) && c.type === "link" || c.type === "code")) {
						K.setNewKey(o);
						break;
					}
				}
				var l = r.data;
				if (l) {
					if (n.getConfig().maxLength) {
						var u = K.getLeftLengthOfMaxLength(n);
						u < l.length ? (K.toDOMRange(n, i).startContainer.textContent = vT.get(n) || "", u > 0 && P.insertText(n, l.slice(0, u)), t.changeViewState()) : P.insertText(n, l);
					} else P.insertText(n, l);
					wS || setTimeout((function() {
						var e = n.selection;
						if (e != null) {
							var t = yT.get(n);
							t != null && K.toDOMRange(n, e).startContainer !== t && (t.textContent = vT.get(n) || "");
						}
					}));
				}
			}
		}
	},
	compositionupdate: function(e, t, n) {
		mT(n, e.target) && (t.isComposing = !0);
	},
	keydown: function(e, t, n) {
		var r = e, i = n.selection;
		if (!n.getConfig().readOnly && !t.isComposing && mT(n, r.target)) {
			if (function(e, t) {
				var n = Hx.get(e), r = n && n.getMenus(), i = Wx.get(e), a = i && i.getMenus(), o = tx(tx({}, r), a);
				for (var s in o) {
					var c = o[s], l = c.hotkey;
					if (l && vp(l, t) && !c.isDisabled(e)) {
						var u = c.getValue(e);
						c.exec(e, u);
					}
				}
			}(n, r), wT.isTab(r)) return TT(r), void n.handleTab();
			if (wT.isRedo(r)) return TT(r), void (typeof n.redo == "function" && n.redo());
			if (wT.isUndo(r)) return TT(r), void (typeof n.undo == "function" && n.undo());
			if (wT.isMoveLineBackward(r)) return TT(r), void B.move(n, {
				unit: "line",
				reverse: !0
			});
			if (wT.isMoveLineForward(r)) return TT(r), void B.move(n, { unit: "line" });
			if (wT.isExtendLineBackward(r)) return TT(r), void B.move(n, {
				unit: "line",
				edge: "focus",
				reverse: !0
			});
			if (wT.isExtendLineForward(r)) return TT(r), void B.move(n, {
				unit: "line",
				edge: "focus"
			});
			if (wT.isMoveBackward(r)) return TT(r), void (i && R.isCollapsed(i) ? B.move(n, { reverse: !0 }) : B.collapse(n, { edge: "start" }));
			if (wT.isMoveForward(r)) return TT(r), void (i && R.isCollapsed(i) ? B.move(n) : B.collapse(n, { edge: "end" }));
			if (wT.isMoveWordBackward(r)) return TT(r), i && R.isExpanded(i) && B.collapse(n, { edge: "focus" }), void B.move(n, {
				unit: "word",
				reverse: !0
			});
			if (wT.isMoveWordForward(r)) return TT(r), i && R.isExpanded(i) && B.collapse(n, { edge: "focus" }), void B.move(n, { unit: "word" });
			if (wT.isSelectAll(r)) return TT(r), void n.selectAll();
			if (ES) {
				if ((TS || wS) && i && (wT.isDeleteBackward(r) || wT.isDeleteForward(r)) && R.isCollapsed(i)) {
					var a = F.parent(n, i.anchor.path);
					if (N.isElement(a) && P.isVoid(n, a) && P.isInline(n, a)) return r.preventDefault(), void B.delete(n, { unit: "block" });
				}
			} else {
				if (wT.isBold(r) || wT.isItalic(r) || wT.isTransposeCharacter(r)) return void TT(r);
				if (wT.isSplitBlock(r)) return TT(r), void P.insertBreak(n);
				if (wT.isDeleteBackward(r)) return TT(r), void (i && R.isExpanded(i) ? P.deleteFragment(n, { direction: "backward" }) : P.deleteBackward(n));
				if (wT.isDeleteForward(r)) return TT(r), void (i && R.isExpanded(i) ? P.deleteFragment(n, { direction: "forward" }) : P.deleteForward(n));
				if (wT.isDeleteLineBackward(r)) return TT(r), void (i && R.isExpanded(i) ? P.deleteFragment(n, { direction: "backward" }) : P.deleteBackward(n, { unit: "line" }));
				if (wT.isDeleteLineForward(r)) return TT(r), void (i && R.isExpanded(i) ? P.deleteFragment(n, { direction: "forward" }) : P.deleteForward(n, { unit: "line" }));
				if (wT.isDeleteWordBackward(r)) return TT(r), void (i && R.isExpanded(i) ? P.deleteFragment(n, { direction: "backward" }) : P.deleteBackward(n, { unit: "word" }));
				if (wT.isDeleteWordForward(r)) return TT(r), void (i && R.isExpanded(i) ? P.deleteFragment(n, { direction: "forward" }) : P.deleteForward(n, { unit: "word" }));
			}
		}
	},
	keypress: function(e, t, n) {
		if (!ES && !n.getConfig().readOnly && mT(n, e.target)) {
			e.preventDefault();
			var r = e.key;
			P.insertText(n, r);
		}
	},
	copy: function(e, t, n) {
		var r = e;
		if (mT(n, r.target)) {
			r.preventDefault();
			var i = r.clipboardData;
			i != null && n.setFragmentData(i);
		}
	},
	cut: function(e, t, n) {
		var r = e, i = n.selection;
		if (!n.getConfig().readOnly && mT(n, r.target)) {
			r.preventDefault();
			var a = r.clipboardData;
			if (a != null && (n.setFragmentData(a), i)) if (R.isExpanded(i)) P.deleteFragment(n);
			else {
				var o = F.parent(n, i.anchor.path);
				P.isVoid(n, o) && B.delete(n);
			}
		}
	},
	paste: function(e, t, n) {
		lS.set(n, !0);
		var r = e;
		if (!n.getConfig().readOnly && mT(n, r.target)) {
			var i = n.getConfig().customPaste;
			if (i && !1 === i(n, r)) return void lS.set(n, !1);
			if (!ES || function(e) {
				return e.clipboardData && e.clipboardData.getData("text/plain") !== "" && e.clipboardData.types.length === 1;
			}(r)) {
				r.preventDefault();
				var a = r.clipboardData;
				a != null && n.insertData(a);
			}
		}
	},
	dragover: function(e, t, n) {
		if (gT(n, e.target)) {
			var r = K.toSlateNode(n, e.target);
			P.isVoid(n, r) && e.preventDefault();
		}
	},
	dragstart: function(e, t, n) {
		var r = e;
		if (gT(n, r.target) && !n.getConfig().readOnly) {
			var i = K.toSlateNode(n, r.target), a = K.findPath(n, i);
			if (P.isVoid(n, i) || P.void(n, {
				at: a,
				voids: !0
			})) {
				var o = P.range(n, a);
				B.select(n, o);
			}
			var s = r.dataTransfer;
			s != null && (t.isDraggingInternally = !0, n.setFragmentData(s));
		}
	},
	dragend: function(e, t, n) {
		var r = e;
		n.getConfig().readOnly || t.isDraggingInternally && gT(n, r.target) && (t.isDraggingInternally = !1);
	},
	drop: function(e, t, n) {
		var r = e, i = r.dataTransfer;
		if (!n.getConfig().readOnly && gT(n, r.target) && i != null && !(ES && wS && i.files.length > 0)) {
			r.preventDefault();
			var a = n.selection, o = K.findEventRange(n, r);
			B.select(n, o), t.isDraggingInternally &&= (a && B.delete(n, { at: a }), !1), n.insertData(i), n.isFocused() || n.focus();
		}
	}
}, DT = 1, OT = function() {
	function e(e) {
		var t = this;
		this.id = DT++, this.$textArea = null, this.$progressBar = V("<div class=\"w-e-progress-bar\"></div>"), this.$maxLengthInfo = V("<div class=\"w-e-max-length-info\"></div>"), this.isComposing = !1, this.isUpdatingSelection = !1, this.isDraggingInternally = !1, this.latestElement = null, this.showPlaceholder = !1, this.$placeholder = null, this.latestEditorSelection = null, this.onDOMSelectionChange = Vd((function() {
			(function(e, t) {
				var n = e.isComposing, r = e.isUpdatingSelection, i = e.isDraggingInternally;
				if (!(t.getConfig().readOnly || n || r || i)) {
					var a = K.findDocumentOrShadowRoot(t), o = a.activeElement, s = K.toDOMNode(t, t), c = a.getSelection();
					if (o === s ? (e.latestElement = o, oS.set(t, !0)) : oS.delete(t), !c) return B.deselect(t);
					var l = c.anchorNode, u = c.focusNode, d = mT(t, l) || hT(t, l), f = mT(t, u) || hT(t, u);
					if (d && f) {
						var p = K.toSlateRange(t, c, {
							exactMatch: !1,
							suppressThrow: !1
						});
						B.select(t, p);
					} else B.deselect(t);
				}
			})(t, t.editorInstance);
		}), 100);
		var n = V(e);
		if (n.length === 0) throw Error("Cannot find textarea DOM by selector '" + e + "'");
		this.$box = n;
		var r = V("<div class=\"w-e-text-container\"></div>");
		r.append(this.$progressBar), r.append(this.$maxLengthInfo), n.append(r);
		var i = V("<div class=\"w-e-scroll\"></div>");
		r.append(i), this.$scroll = i, this.$textAreaContainer = r, YC((function() {
			var e = t.editorInstance, n = K.getWindow(e);
			n.document.addEventListener("selectionchange", t.onDOMSelectionChange), e.on("destroyed", (function() {
				n.document.removeEventListener("selectionchange", t.onDOMSelectionChange);
			})), r.on("click", (function() {
				return e.hidePanelOrModal();
			})), e.on("change", t.changeViewState.bind(t));
			var i = e.getConfig().onChange;
			i && e.on("change", (function() {
				return i(e);
			})), t.onFocusAndOnBlur(), e.on("change", t.changeMaxLengthInfo.bind(t)), t.bindEvent();
		}));
	}
	return Object.defineProperty(e.prototype, "editorInstance", {
		get: function() {
			var e = Bx.get(this);
			if (e == null) throw Error("Can not get editor instance");
			return e;
		},
		enumerable: !1,
		configurable: !0
	}), e.prototype.bindEvent = function() {
		var e = this, t = this.$textArea, n = this.$scroll, r = this.editorInstance;
		t != null && (Id(ET, (function(n, i) {
			t.on(i, (function(t) {
				n(t, e, r);
			}));
		})), r.getConfig().scroll && (n.css("overflow-y", "auto"), n.on("scroll", Vd((function() {
			r.emit("scroll");
		}), 100))));
	}, e.prototype.onFocusAndOnBlur = function() {
		var e = this, t = this.editorInstance, n = t.getConfig(), r = n.onBlur, i = n.onFocus;
		this.latestEditorSelection = t.selection, t.on("change", (function() {
			e.latestEditorSelection == null && t.selection != null ? setTimeout((function() {
				return i && i(t);
			})) : e.latestEditorSelection != null && t.selection == null && setTimeout((function() {
				return r && r(t);
			})), e.latestEditorSelection = t.selection;
		}));
	}, e.prototype.changeMaxLengthInfo = function() {
		var e = this.editorInstance, t = e.getConfig().maxLength;
		if (t) {
			var n = t - K.getLeftLengthOfMaxLength(e);
			this.$maxLengthInfo[0].innerHTML = n + "/" + t;
		}
	}, e.prototype.changeProgress = function(e) {
		var t = this.$progressBar;
		t.css("width", e + "%"), e >= 100 && setTimeout((function() {
			t.hide(), t.css("width", "0"), t.show();
		}), 1e3);
	}, e.prototype.changeViewState = function() {
		var e = this, t = this.editorInstance;
		_oe(this, t), function(e, t) {
			var n, r = t.getConfig().placeholder;
			if (r) {
				var i = t.isEmpty();
				if (i && !e.showPlaceholder && !e.isComposing) {
					if (e.$placeholder == null) {
						var a = V("<div class=\"w-e-text-placeholder\">" + r + "</div>");
						e.$textAreaContainer.append(a), e.$placeholder = a;
					}
					e.$placeholder.show(), e.showPlaceholder = !0;
					return;
				}
				!i && e.showPlaceholder && ((n = e.$placeholder) == null || n.hide(), e.showPlaceholder = !1);
			}
		}(this, t), YC((function() {
			_T(e, t);
		}));
	}, e.prototype.destroy = function() {
		this.$textAreaContainer.remove();
	}, e;
}();
function kT(e) {
	e.removeAttr("width"), e.removeAttr("height"), e.removeAttr("fill"), e.removeAttr("class"), e.removeAttr("t"), e.removeAttr("p-id");
	var t = e.children();
	t.length && kT(t);
}
function AT() {
	return V("<svg viewBox=\"0 0 1024 1024\"><path d=\"M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z\"></path></svg>");
}
function jT() {
	return V("<div class=\"w-e-bar-divider\"></div>");
}
function MT(e, t, n, r, i) {
	if (i === void 0 && (i = !1), t) {
		if (r) {
			var a = SS ? "cmd" : "ctrl";
			r = r.replace("mod", a);
		}
		if (i) r && (e.attr("data-tooltip", r), e.addClass("w-e-menu-tooltip-v5"), e.addClass("tooltip-right"));
		else {
			var o = r ? n + "\n" + r : n;
			e.attr("data-tooltip", o), e.addClass("w-e-menu-tooltip-v5");
		}
	}
}
Ub("match", (function(e, t, n) {
	return [function(t) {
		var n = $h(this), r = t == null ? void 0 : Gg(t, e);
		return r ? Lg(r, t, n) : new RegExp(t)[e](Zv(n));
	}, function(e) {
		var r = Fg(this), i = Zv(e), a = n(t, r, i);
		if (a.done) return a.value;
		if (!r.global) return qb(r, i);
		var o = r.unicode;
		r.lastIndex = 0;
		for (var s, c = [], l = 0; (s = qb(r, i)) !== null;) {
			var u = Zv(s[0]);
			c[l] = u, u === "" && (r.lastIndex = Wb(i, G_(r.lastIndex), o)), l++;
		}
		return l === 0 ? null : c;
	}];
}));
var NT = function() {
	function e(e, t, n) {
		var r = this;
		n === void 0 && (n = !1), this.$elem = V("<div class=\"w-e-bar-item\"></div>"), this.$button = V("<button type=\"button\"></button>"), this.disabled = !1, this.menu = t;
		var i = t.tag, a = t.width;
		if (i !== "button") throw Error("Invalid tag '" + i + "', expected 'button'");
		var o = t.title, s = t.hotkey, c = s === void 0 ? "" : s, l = t.iconSvg, u = l === void 0 ? "" : l, d = this.$button;
		if (u) {
			var f = V(u);
			kT(f), d.append(f);
		} else d.text(o);
		MT(d, u, o, c, n), n && u && d.append(V("<span class=\"title\">" + o + "</span>")), a && d.css("width", a + "px"), d.attr("data-menu-key", e), this.$elem.append(d), YC((function() {
			return r.init();
		}));
	}
	return e.prototype.init = function() {
		var e = this;
		this.setActive(), this.setDisabled(), this.$button.on("click", (function(t) {
			t.preventDefault(), KT(e).hidePanelOrModal(), e.disabled || (e.exec(), e.onButtonClick());
		}));
	}, e.prototype.exec = function() {
		var e = KT(this), t = this.menu, n = t.getValue(e);
		t.exec(e, n);
	}, e.prototype.setActive = function() {
		var e = KT(this), t = this.$button, n = "active";
		this.menu.isActive(e) ? t.addClass(n) : t.removeClass(n);
	}, e.prototype.setDisabled = function() {
		var e = KT(this), t = this.$button, n = this.menu.isDisabled(e);
		(e.selection == null || e.isDisabled()) && (n = !0), this.menu.alwaysEnable && (n = !1);
		var r = "disabled";
		n ? t.addClass(r) : t.removeClass(r), this.disabled = n;
	}, e.prototype.changeMenuState = function() {
		this.setActive(), this.setDisabled();
	}, e;
}(), PT = function(e) {
	function t(t, n, r) {
		return r === void 0 && (r = !1), e.call(this, t, n, r) || this;
	}
	return ex(t, e), t.prototype.onButtonClick = function() {}, t;
}(NT), FT = function() {
	function e(e) {
		this.isShow = !1, this.showTime = 0, this.record(e);
	}
	return e.prototype.record = function(e) {
		var t = Kx.get(e);
		t ?? (t = /* @__PURE__ */ new Set(), Kx.set(e, t)), t.add(this), qx.set(this, e);
	}, e.prototype.renderContent = function(e) {
		var t = this.$elem;
		t.empty(), t.append(e);
		var n = this.genSelfElem();
		n && t.append(n);
	}, e.prototype.appendTo = function(e) {
		var t = this.$elem;
		e.append(t);
	}, e.prototype.show = function() {
		if (!this.isShow) {
			this.showTime = Date.now(), this.$elem.show(), this.isShow = !0;
			var e = qx.get(this);
			e && e.emit("modalOrPanelShow", this);
		}
	}, e.prototype.hide = function() {
		if (this.isShow && !(Date.now() - this.showTime < 200)) {
			this.$elem.hide(), this.isShow = !1;
			var e = qx.get(this);
			e && e.emit("modalOrPanelHide");
		}
	}, e;
}(), IT = function(e) {
	function t(t) {
		var n = e.call(this, t) || this;
		return n.type = "dropPanel", n.$elem = V("<div class=\"w-e-drop-panel\"></div>"), n;
	}
	return ex(t, e), t.prototype.genSelfElem = function() {
		return null;
	}, t;
}(FT), LT = function(e) {
	function t(t, n, r) {
		r === void 0 && (r = !1);
		var i = e.call(this, t, n, r) || this;
		if (i.dropPanel = null, i.menu = n, n.showDropPanel) {
			var a = AT();
			i.$button.append(a);
		}
		return i;
	}
	return ex(t, e), t.prototype.onButtonClick = function() {
		this.menu.showDropPanel && this.handleDropPanel();
	}, t.prototype.handleDropPanel = function() {
		var e = this.menu;
		if (e.getPanelContentElem != null) {
			var t = KT(this);
			if (this.dropPanel == null) {
				var n = new IT(t), r = e.getPanelContentElem(t);
				n.renderContent(r), n.appendTo(this.$elem), n.show(), this.dropPanel = n;
			} else {
				var i = this.dropPanel;
				i.isShow ? i.hide() : (r = e.getPanelContentElem(t), i.renderContent(r), i.show());
			}
			var a = this.dropPanel;
			if (a.isShow) {
				var o = this.$elem, s = o.offset().left, c = o.parents(".w-e-bar");
				s - c.offset().left >= c.width() / 2 ? a.$elem.css({
					left: "none",
					right: "0"
				}) : a.$elem.css({
					left: "0",
					right: "none"
				});
			}
		}
	}, t;
}(NT), RT = function(e) {
	function t(t, n) {
		n === void 0 && (n = 0);
		var r = e.call(this, t) || this;
		r.type = "modal", r.$elem = V("<div class=\"w-e-modal\"></div>"), r.width = 0, n && (r.width = n);
		var i = r.$elem;
		return i.on("click", (function(e) {
			return e.stopPropagation();
		})), i.on("keyup", (function(e) {
			e.code === "Escape" && (r.hide(), t.restoreSelection());
		})), r;
	}
	return ex(t, e), t.prototype.genSelfElem = function() {
		var e = this, t = V("<span class=\"btn-close\"><svg viewBox=\"0 0 1024 1024\"><path d=\"M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z\"></path></svg></span>"), n = qx.get(this);
		return t.on("click", (function() {
			e.hide(), n?.restoreSelection();
		})), t;
	}, t.prototype.setStyle = function(e) {
		var t = this.width, n = this.$elem;
		n.attr("style", ""), t && n.css("width", t + "px"), n.css(e);
	}, t;
}(FT);
function zT(e, t, n) {
	var r = V("<label class=\"babel-container\"></label>");
	r.append("<span>" + e + "</span>");
	var i = V("<input type=\"text\" id=\"" + t + "\" placeholder=\"" + (n || "") + "\">");
	return r.append(i), [r[0], i[0]];
}
function BT(e, t) {
	var n = V("<div class=\"button-container\"></div>"), r = V("<button type=\"button\" id=\"" + e + "\">" + t + "</button>");
	return n.append(r), [n[0], r[0]];
}
var VT = function(e) {
	function t(t, n, r) {
		r === void 0 && (r = !1);
		var i = e.call(this, t, n, r) || this;
		return i.$body = V("body"), i.modal = null, i.menu = n, i;
	}
	return ex(t, e), t.prototype.onButtonClick = function() {
		this.menu.showModal && this.handleModal();
	}, t.prototype.getPosition = function() {
		var e = KT(this), t = this.menu.getModalPositionNode(e);
		return N.isElement(t) ? Uw(e, t, "modal") : Hw(e);
	}, t.prototype.handleModal = function() {
		var e = KT(this), t = this.menu;
		if (this.modal == null) {
			var n = new RT(e, t.modalWidth);
			this.renderAndShowModal(n, !0), this.modal = n;
		} else (n = this.modal).isShow ? n.hide() : this.renderAndShowModal(n, !1);
	}, t.prototype.renderAndShowModal = function(e, t) {
		t === void 0 && (t = !1);
		var n = KT(this), r = this.menu;
		if (r.getModalContentElem != null) {
			var i = K.getTextarea(n), a = (K.getToolbar(n)?.getConfig() || {}).modalAppendToBody, o = r.getModalContentElem(n);
			if (e.renderContent(o), a) e.setStyle({
				left: "0",
				right: "0"
			});
			else {
				var s = this.getPosition();
				e.setStyle(s);
			}
			t && (a ? e.appendTo(this.$body) : e.appendTo(i.$textAreaContainer)), e.show(), a || Ww(n, e.$elem), setTimeout((function() {
				n.blur();
			}));
		}
	}, t;
}(NT), HT = function(e) {
	function t(t, n) {
		var r = e.call(this, t) || this;
		return r.type = "selectList", r.$elem = V("<div class=\"w-e-select-list\"></div>"), n && r.$elem.css("width", n + "px"), r.$elem.on("click", (function(e) {
			e.stopPropagation();
		})), r;
	}
	return ex(t, e), t.prototype.renderList = function(e) {
		var t = this.$elem;
		t.empty();
		var n = V("<ul></ul>");
		e.forEach((function(e) {
			var t = e.value, r = e.text, i = e.selected, a = e.styleForRenderMenuList, o = V("<li data-value=\"" + t + "\"></li>");
			if (a && o.css(a), i) {
				var s = V("<svg viewBox=\"0 0 1446 1024\"><path d=\"M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z\"></path></svg>");
				o.append(s), o.addClass("selected");
			}
			o.append(V("<span data-value=\"" + t + "\">" + r + "</span>")), o.attr("title", r), n.append(o);
		})), t.append(n);
	}, t.prototype.genSelfElem = function() {
		return null;
	}, t;
}(FT), UT = function() {
	function e(e, t, n) {
		var r = this;
		n === void 0 && (n = !1), this.$elem = V("<div class=\"w-e-bar-item\"></div>"), this.$button = V("<button type=\"button\" class=\"select-button\"></button>"), this.disabled = !1, this.selectList = null;
		var i = t.tag, a = t.title, o = t.width, s = t.iconSvg, c = s === void 0 ? "" : s, l = t.hotkey, u = l === void 0 ? "" : l;
		if (i !== "select") throw Error("Invalid tag '" + i + "', expected 'select'");
		var d = this.$button;
		o && d.css("width", o + "px"), d.attr("data-menu-key", e), MT(d, c, a, u, n), this.$elem.append(d), this.menu = t, YC((function() {
			return r.init();
		}));
	}
	return e.prototype.init = function() {
		var e = this;
		this.setSelectedValue(), this.$button.on("click", (function(t) {
			t.preventDefault(), KT(e).hidePanelOrModal(), e.trigger();
		}));
	}, e.prototype.trigger = function() {
		var e = this, t = KT(this);
		if (!t.isDisabled() && !this.disabled) {
			var n = this.menu;
			if (this.selectList == null) {
				this.selectList = new HT(t, n.selectPanelWidth);
				var r = this.selectList, i = n.getOptions(t);
				r.renderList(i), r.appendTo(this.$elem), r.show(), r.$elem.on("click", "li", (function(t) {
					var n = t.target;
					if (n != null) {
						t.preventDefault();
						var r = V(n).attr("data-value");
						e.onChange(r);
					}
				}));
			} else (r = this.selectList).isShow ? r.hide() : (i = n.getOptions(t), r.renderList(i), r.show());
		}
	}, e.prototype.onChange = function(e) {
		var t = KT(this), n = this.menu;
		n.exec && n.exec(t, e);
	}, e.prototype.setSelectedValue = function() {
		var e = KT(this), t = this.menu, n = t.getValue(e), r = function(e, t) {
			for (var n = e.length, r = "", i = 0; i < n; i++) {
				var a = e[i];
				if (a.value === t) {
					r = a.text;
					break;
				}
			}
			return r;
		}(t.getOptions(e), n.toString()), i = this.$button, a = AT();
		i.empty(), i.text(r), i.append(a);
	}, e.prototype.setDisabled = function() {
		var e = KT(this), t = this.menu.isDisabled(e), n = this.$button;
		(e.selection == null || e.isDisabled()) && (t = !0);
		var r = "disabled";
		t ? n.addClass(r) : n.removeClass(r), this.disabled = t;
	}, e.prototype.changeMenuState = function() {
		this.setSelectedValue(), this.setDisabled();
	}, e;
}(), WT = function() {
	function e(e) {
		this.$elem = V("<div class=\"w-e-bar-item w-e-bar-item-group\"></div>"), this.$container = V("<div class=\"w-e-bar-item-menus-container\"></div>"), this.$button = V("<button type=\"button\"></button>");
		var t = e.key, n = e.iconSvg, r = e.title, i = this.$elem, a = this.$button;
		if (n) {
			var o = V(n);
			kT(o), a.append(o);
		} else a.text(r);
		a.attr("data-menu-key", t);
		var s = AT();
		a.append(s), i.append(a);
		var c = this.$container;
		i.append(c);
		var l = this.createObserver();
		this.observe(l);
	}
	return e.prototype.appendBarItem = function(e) {
		var t = e.$elem;
		this.$container.append(t);
	}, e.prototype.observe = function(e) {
		var t = this.$container;
		e.observe(t[0], {
			childList: !0,
			subtree: !0,
			attributes: !0
		});
	}, e.prototype.createObserver = function() {
		var e = this, t = this.$container, n = this.$button, r = new MutationObserver((function() {
			var i = t.find("button"), a = i.length;
			if (a !== 0) {
				var o = 0;
				i.each((function(e) {
					V(e).hasClass("disabled") && o++;
				})), r.disconnect(), o === a ? n.addClass("disabled") : n.removeClass("disabled"), e.observe(r);
			}
		}));
		return r;
	}, e;
}(), GT = /* @__PURE__ */ new WeakMap();
function KT(e) {
	var t = Gx.get(e);
	if (t == null) throw Error("Can not get editor instance");
	return t;
}
function qT(e, t, n) {
	n === void 0 && (n = !1);
	var r = GT.get(t);
	if (r) return r;
	var i = t.tag;
	if (i === "button") {
		var a = t.showDropPanel, o = t.showModal;
		r = a ? new LT(e, t, n) : o ? new VT(e, t, n) : new PT(e, t, n);
	}
	if (i === "select" && (r = new UT(e, t, n)), r == null) throw Error("Invalid tag in menu " + JSON.stringify(t));
	return GT.set(t, r), r;
}
function JT(e, t) {
	var n = e.selection;
	return n != null && !R.isCollapsed(n) && !K.getSelectedElems(e).some((function(t) {
		if (e.isVoid(t)) return !0;
		var n = t.type;
		return !![
			"pre",
			"code",
			"table"
		].includes(n) || void 0;
	})) && !!z.isText(t);
}
var YT = function() {
	function e() {
		var e = this;
		this.$elem = V("<div class=\"w-e-bar w-e-bar-hidden w-e-hover-bar\"></div>"), this.menus = {}, this.hoverbarItems = [], this.prevSelectedNode = null, this.isShow = !1, this.changeHoverbarState = Pp((function() {
			var t = e.isShow, n = e.getSelectedNodeAndMenuKeys() || {}, r = n.node, i = r === void 0 ? null : r, a = n.menuKeys, o = a === void 0 ? [] : a;
			i != null && e.changeItemsState(), i && N.isElement(i) && t && e.isSamePath(i, e.prevSelectedNode) || (e.hideAndClean(), i != null && (e.registerItems(o), e.setPosition(i), e.show()), e.prevSelectedNode = i);
		}), 200), YC((function() {
			var t = e.getEditorInstance(), n = e.$elem;
			n.on("mousedown", (function(e) {
				return e.preventDefault();
			}), { passive: !1 }), K.getTextarea(t).$textAreaContainer.append(n), t.on("change", e.changeHoverbarState);
			var r = e.hideAndClean.bind(e);
			t.on("scroll", r), t.on("fullScreen", r), t.on("unFullScreen", r);
		}));
	}
	return e.prototype.getMenus = function() {
		return this.menus;
	}, e.prototype.hideAndClean = function() {
		var e = this.$elem;
		e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"), this.hoverbarItems = [], e.empty(), this.isShow = !1;
	}, e.prototype.checkPositionBottom = function() {
		var e = this.$elem, t = !1, n = window.innerHeight;
		n && n >= 360 && n - e[0].getBoundingClientRect().bottom < 360 && (t = !0), t ? e.addClass("w-e-bar-bottom") : e.removeClass("w-e-bar-bottom");
	}, e.prototype.show = function() {
		this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"), this.isShow = !0, this.checkPositionBottom();
	}, e.prototype.changeItemsState = function() {
		var e = this;
		YC((function() {
			e.hoverbarItems.forEach((function(e) {
				e.changeMenuState();
			}));
		}));
	}, e.prototype.registerItems = function(e) {
		var t = this, n = this.$elem;
		e.forEach((function(e) {
			if (e !== "|") t.registerSingleItem(e);
			else {
				var r = jT();
				n.append(r);
			}
		}));
	}, e.prototype.registerSingleItem = function(e) {
		var t = this.getEditorInstance(), n = this.menus, r = n[e];
		if (r == null) {
			var i = OS[e];
			if (i == null) throw Error("Not found menu item factory by key '" + e + "'");
			if (typeof i != "function") throw Error("Menu item factory (key='" + e + "') is not a function");
			r = i(), n[e] = r;
		}
		var a = qT(e, r);
		this.hoverbarItems.push(a), Gx.set(a, t), this.$elem.append(a.$elem);
	}, e.prototype.setPosition = function(e) {
		var t = this.getEditorInstance(), n = this.$elem;
		if (n.attr("style", ""), N.isElement(e)) {
			var r = Uw(t, e, "bar");
			n.css(r), Ww(t, n);
			return;
		}
		if (z.isText(e)) return r = Hw(t), n.css(r), void Ww(t, n);
		throw Error("hoverbar.setPosition error, current selected node is not elem nor text");
	}, e.prototype.getSelectedNodeAndMenuKeys = function() {
		var e = this.getEditorInstance();
		if (e.selection == null) return null;
		var t = this.getHoverbarKeysConf(), n = null, r = [], i = function(i) {
			var a = t[i], o = a.match, s = a.menuKeys, c = s === void 0 ? [] : s, l = o || function(e, t) {
				return K.checkNodeType(t, i);
			}, u = rx(P.nodes(e, {
				match: function(t) {
					return l(e, t);
				},
				universal: !0
			}), 1)[0];
			if (u != null) return n = u[0], r = c, "break";
		};
		for (var a in t) if (i(a) === "break") break;
		return n == null || r.length === 0 ? null : {
			node: n,
			menuKeys: r
		};
	}, e.prototype.getEditorInstance = function() {
		var e = Ux.get(this);
		if (e == null) throw Error("Can not get editor instance");
		return e;
	}, e.prototype.getHoverbarKeysConf = function() {
		var e = this.getEditorInstance().getConfig().hoverbarKeys, t = e === void 0 ? {} : e, n = t.text;
		return n && n.match == null && (n.match = JT), t;
	}, e.prototype.isSamePath = function(e, t) {
		if (e == null || t == null) return !1;
		var n = K.findPath(null, e), r = K.findPath(null, t);
		return I.equals(n, r);
	}, e.prototype.destroy = function() {
		this.changeHoverbarState.cancel(), this.$elem.remove(), this.menus = {}, this.hoverbarItems = [], this.prevSelectedNode = null;
	}, e;
}();
function XT(e, t, n, r) {
	if (Qx.set(e, t), $x.set(e, n), N.isElement(e)) {
		var i = e.children;
		if ((i === void 0 ? [] : i).forEach((function(t, n) {
			return XT(t, n, e, r);
		})), P.isVoid(r, e)) {
			var a = rx(rx(F.texts(e), 1)[0], 1)[0];
			Qx.set(a, 0), $x.set(a, e);
		}
	}
}
function ZT(e) {
	var t = e.selector, n = t === void 0 ? "" : t, r = e.config, i = r === void 0 ? {} : r, a = e.content, o = e.html, s = e.plugins, c = s === void 0 ? [] : s, l = ((e) => {
		var t = e, { apply: n } = t;
		return t.history = {
			undos: [],
			redos: []
		}, t.redo = () => {
			var { history: e } = t, { redos: n } = e;
			if (n.length > 0) {
				var r = n[n.length - 1];
				Yv.withoutSaving(t, (() => {
					P.withoutNormalizing(t, (() => {
						for (var e of r) t.apply(e);
					}));
				})), e.redos.pop(), e.undos.push(r);
			}
		}, t.undo = () => {
			var { history: e } = t, { undos: n } = e;
			if (n.length > 0) {
				var r = n[n.length - 1];
				Yv.withoutSaving(t, (() => {
					P.withoutNormalizing(t, (() => {
						for (var e of r.map(jl.inverse).reverse()) t.apply(e);
					}));
				})), e.redos.push(r), e.undos.pop();
			}
		}, t.apply = (e) => {
			var { operations: r, history: i } = t, { undos: a } = i, o = a[a.length - 1], s = o && o[o.length - 1], c = ((e, t) => !(!t || e.type !== "set_selection" || t.type !== "set_selection"))(e, s), l = Yv.isSaving(t), u = Yv.isMerging(t);
			if (l ??= ((e, t) => e.type !== "set_selection" || e.properties != null && e.newProperties != null)(e), l) {
				if (u ??= o != null && (r.length !== 0 || ((e, t) => e.type === "set_selection" || !(!t || e.type !== "insert_text" || t.type !== "insert_text" || e.offset !== t.offset + t.text.length || !I.equals(e.path, t.path)) || !(!t || e.type !== "remove_text" || t.type !== "remove_text" || e.offset + e.text.length !== t.offset || !I.equals(e.path, t.path)))(e, s) || c), o && u) c && o.pop(), o.push(e);
				else {
					var d = [e];
					a.push(d);
				}
				for (; a.length > 100;) a.shift();
				((e) => e.type !== "set_selection")(e) && (i.redos = []);
			}
			n(e);
		}, t;
	})(function(e) {
		var t = e, n = t.insertText, r = t.insertNode, i = t.insertFragment, a = t.dangerouslyInsertHtml;
		return t.insertText = function(e) {
			if (t.getConfig().maxLength) {
				var r = K.getLeftLengthOfMaxLength(t);
				r <= 0 || (r < e.length ? n(e.slice(0, r)) : n(e));
			} else n(e);
		}, t.insertNode = function(e) {
			if (t.getConfig().maxLength) {
				var n = K.getLeftLengthOfMaxLength(t);
				n <= 0 || n < F.string(e).length || r(e);
			} else r(e);
		}, t.insertFragment = function(e) {
			if (t.getConfig().maxLength) if (e.length !== 1) e.forEach((function(e) {
				t.insertNode(e);
			}));
			else {
				var n = e[0];
				if (K.getLeftLengthOfMaxLength(t) < F.string(n).length) return;
				i(e);
			}
			else i(e);
		}, t.dangerouslyInsertHtml = function(e, n) {
			if (e === void 0 && (e = ""), n === void 0 && (n = !1), e) if (t.getConfig().maxLength) {
				var r = K.getLeftLengthOfMaxLength(t);
				if (!(r <= 0)) {
					var i = document.createElement("div");
					i.innerHTML = e, r < Array.from(i.childNodes).reduce((function(e, t) {
						var n = t.nodeType, r = t.nodeName;
						return t ? n === dS.TEXT_NODE ? e + (t.textContent || "") : n === dS.ELEMENT_NODE ? Tw.has(r.toLowerCase()) ? e : e + (t.textContent || "") : e : e;
					}), "").length || a(e, n);
				}
			} else a(e, n);
		}, t;
	}(function(e) {
		var t = e;
		return t.on = function(e, n) {
			var r = Rw(t);
			if (r.on(e, n), e === "destroyed" && Bw(t, n), e !== "destroyed") {
				var i = function() {
					return r.off(e, n);
				};
				r.on("destroyed", i), Bw(t, i);
			}
		}, t.once = function(e, n) {
			Rw(t).once(e, n);
		}, t.off = function(e, n) {
			Rw(t).off(e, n);
		}, t.emit = function(e) {
			var n = [...arguments].slice(1), r = Rw(t);
			r.emit.apply(r, ix([e], rx(n))), e === "destroyed" && (doe(t).forEach((function(e) {
				return r.off("destroyed", e);
			})), foe(t));
		}, t;
	}(function(e) {
		var t = e;
		return t.select = function(e) {
			B.select(t, e);
		}, t.deselect = function() {
			var n = t.selection, r = K.findDocumentOrShadowRoot(t).getSelection();
			r && r.rangeCount > 0 && r.removeAllRanges(), n && B.deselect(e);
		}, t.move = function(t, n) {
			n === void 0 && (n = !1), t && (t < 0 || B.move(e, {
				distance: t,
				unit: "character",
				reverse: n
			}));
		}, t.moveReverse = function(e) {
			t.move(e, !0);
		}, t.restoreSelection = function() {
			var e = sS.get(t);
			e != null && (t.focus(), B.select(t, e));
		}, t.getSelectionPosition = function() {
			return Hw(t);
		}, t.getNodePosition = function(e) {
			return Uw(t, e);
		}, t.isSelectedAll = function() {
			var e = t.selection;
			if (e == null) return !1;
			var n = rx(R.edges(e), 2), r = n[0], i = n[1], a = rx(P.edges(t, []), 2), o = a[0], s = a[1];
			return !(!L.equals(r, o) || !L.equals(i, s));
		}, t.selectAll = function() {
			var e = P.start(t, []), n = P.end(t, []);
			B.select(t, {
				anchor: e,
				focus: n
			});
		}, t;
	}(function(e) {
		var t = e, n = t.onChange, r = t.insertText, i = t.apply, a = t.deleteBackward;
		return t.insertText = function(e) {
			t.getConfig().readOnly || r(e);
		}, t.apply = function(e) {
			var n, r, a, o, s, c, l, u, d = [];
			switch (e.type) {
				case "insert_text":
				case "remove_text":
				case "set_node":
					try {
						for (var f = nx(P.levels(t, { at: e.path })), p = f.next(); !p.done; p = f.next()) {
							var m = rx(p.value, 2), h = m[0], g = m[1], _ = K.findKey(t, h);
							d.push([g, _]);
						}
					} catch (e) {
						n = { error: e };
					} finally {
						try {
							p && !p.done && (r = f.return) && r.call(f);
						} finally {
							if (n) throw n.error;
						}
					}
					break;
				case "insert_node":
				case "remove_node":
				case "merge_node":
				case "split_node":
					try {
						for (var v = nx(P.levels(t, { at: I.parent(e.path) })), y = v.next(); !y.done; y = v.next()) {
							var b = rx(y.value, 2);
							h = b[0], g = b[1], _ = K.findKey(t, h), d.push([g, _]);
						}
					} catch (e) {
						a = { error: e };
					} finally {
						try {
							y && !y.done && (o = v.return) && o.call(v);
						} finally {
							if (a) throw a.error;
						}
					}
					break;
				case "move_node": try {
					for (var x = nx(P.levels(t, { at: I.common(I.parent(e.path), I.parent(e.newPath)) })), S = x.next(); !S.done; S = x.next()) {
						var C = rx(S.value, 2);
						h = C[0], g = C[1], _ = K.findKey(t, h), d.push([g, _]);
					}
				} catch (e) {
					s = { error: e };
				} finally {
					try {
						S && !S.done && (c = x.return) && c.call(x);
					} finally {
						if (s) throw s.error;
					}
				}
			}
			i(e);
			try {
				for (var w = nx(d), T = w.next(); !T.done; T = w.next()) {
					var E = rx(T.value, 2);
					g = E[0], _ = E[1], h = rx(P.node(t, g), 1)[0], iS.set(h, _);
				}
			} catch (e) {
				l = { error: e };
			} finally {
				try {
					T && !T.done && (u = w.return) && u.call(w);
				} finally {
					if (l) throw l.error;
				}
			}
		}, t.deleteBackward = function(n) {
			if (n !== "line") return a(n);
			if (e.selection && R.isCollapsed(e.selection)) {
				var r = P.above(e, {
					match: function(t) {
						return P.isBlock(e, t);
					},
					at: e.selection
				});
				if (r) {
					var i = rx(r, 2)[1], o = function(e, t) {
						var n = P.range(e, R.end(t)), r = Array.from(P.positions(e, { at: t })), i = 0, a = r.length, o = Math.floor(a / 2);
						if ($C(e, P.range(e, r[i]), n)) return P.range(e, r[i], n);
						if (r.length < 2) return P.range(e, r[r.length - 1], n);
						for (; o !== r.length && o !== i;) $C(e, P.range(e, r[o]), n) ? a = o : i = o, o = Math.floor((i + a) / 2);
						return P.range(e, r[a], n);
					}(t, P.range(e, i, e.selection.anchor));
					R.isCollapsed(o) || B.delete(e, { at: o });
				}
			}
		}, t.onChange = function() {
			var e = t.selection;
			e != null && sS.set(t, e), t.emit("change"), n();
		}, t.handleTab = function() {
			t.insertText("    ");
		}, t.getHtml = function() {
			var e = t.children;
			return (e === void 0 ? [] : e).map((function(e) {
				return XC(e, t);
			})).join("");
		}, t.getText = function() {
			var e = t.children;
			return (e === void 0 ? [] : e).map((function(e) {
				return F.string(e);
			})).join("\n");
		}, t.getSelectionText = function() {
			var n = t.selection;
			return n == null ? "" : P.string(e, n);
		}, t.getElemsByType = function(e, n) {
			var r, i;
			n === void 0 && (n = !1);
			var a = [], o = P.nodes(t, {
				at: [],
				universal: !0
			});
			try {
				for (var s = nx(o), c = s.next(); !c.done; c = s.next()) {
					var l = rx(c.value, 1)[0];
					if (N.isElement(l) && (n ? l.type.indexOf(e) >= 0 : l.type === e)) {
						var u = ZC(K.findKey(t, l).id);
						a.push(tx(tx({}, l), { id: u }));
					}
				}
			} catch (e) {
				r = { error: e };
			} finally {
				try {
					c && !c.done && (i = s.return) && i.call(s);
				} finally {
					if (r) throw r.error;
				}
			}
			return a;
		}, t.getElemsByTypePrefix = function(e) {
			return t.getElemsByType(e, !0);
		}, t.isEmpty = function() {
			var e = t.children, n = e === void 0 ? [] : e;
			if (n.length > 1) return !1;
			var r = n[0];
			if (r == null) return !0;
			if (N.isElement(r) && r.type === "paragraph") {
				var i = r.children, a = i === void 0 ? [] : i;
				if (a.length > 1) return !1;
				var o = a[0];
				if (o == null || z.isText(o) && o.text === "") return !0;
			}
			return !1;
		}, t.clear = function() {
			B.delete(t, { at: {
				anchor: P.start(t, []),
				focus: P.end(t, [])
			} }), t.children.length === 0 && B.insertNodes(t, [{
				type: "paragraph",
				children: [{ text: "" }]
			}]);
		}, t.getParentNode = function(e) {
			return K.getParentNode(t, e);
		}, t.dangerouslyInsertHtml = function(e, n) {
			if (e === void 0 && (e = ""), n === void 0 && (n = !1), e) {
				var r = document.createElement("div");
				r.innerHTML = e;
				var i = Array.from(r.childNodes);
				if (i = i.filter((function(e) {
					var t = e.nodeType, n = e.nodeName;
					return t === dS.TEXT_NODE || t === dS.ELEMENT_NODE && !Tw.has(n.toLowerCase());
				})), i.length !== 0) {
					var a = t.selection;
					if (a != null) {
						var o = null;
						K.isSelectedEmptyParagraph(t) && !n && (o = [a.focus.path[0]]), r.setAttribute("hidden", "true"), document.body.appendChild(r);
						var s = 0;
						i.forEach((function(e) {
							var n = e.nodeType, r = e.nodeName, i = e.textContent, a = i === void 0 ? "" : i;
							if (n !== dS.TEXT_NODE) if (r !== "BR") {
								var o = e, c = !1;
								if (ew.includes(r.toLowerCase())) c = !0;
								else for (var l in rw) if (o.matches(l)) {
									c = !0;
									break;
								}
								if (c) {
									var u = yw(V(o), t);
									Array.isArray(u) ? (u.forEach((function(e) {
										return Ew(t, e);
									})), s++) : (Ew(t, u), s++), K.isSelectedVoidNode(t) && t.move(1);
									return;
								}
								var d = window.getComputedStyle(o).display;
								K.isSelectedEmptyParagraph(t) || d.indexOf("inline") < 0 && t.insertBreak(), t.dangerouslyInsertHtml(o.innerHTML, !0);
							} else t.insertText("\n");
							else {
								if (!a || !a.trim()) return;
								t.insertNode({ text: a });
							}
						})), s && o && K.isEmptyPath(t, o) && B.removeNodes(t, { at: o }), r.remove();
					}
				}
			}
		}, t.setHtml = function(e) {
			e === void 0 && (e = "");
			var n = t.isDisabled(), r = t.isFocused(), i = JSON.stringify(t.selection);
			t.enable(), t.focus(), t.clear();
			var a = xw(t, e);
			if (B.insertFragment(t, a), r || (t.deselect(), t.blur()), n && (t.deselect(), t.disable()), t.isFocused()) try {
				t.select(JSON.parse(i));
			} catch {
				t.select(P.start(t, []));
			}
		}, t;
	}(function(e) {
		var t = e;
		return t.getAllMenuKeys = function() {
			var e = [];
			for (var t in OS) e.push(t);
			return e;
		}, t.getConfig = function() {
			var e = Jx.get(t);
			if (e == null) throw Error("Can not get editor config");
			return e;
		}, t.getMenuConfig = function(e) {
			var n = t.getConfig().MENU_CONF;
			return (n === void 0 ? {} : n)[e] || {};
		}, t.alert = function(e, n) {
			n === void 0 && (n = "info");
			var r = t.getConfig().customAlert;
			r && r(e, n);
		}, t;
	}(function(e) {
		var t = eoe(Nte());
		return t.id = "wangEditor-" + dae++, t.isDestroyed = !1, t.isFullScreen = !1, t.focus = function(e) {
			if (K.toDOMNode(t, t).focus({ preventScroll: !0 }), oS.set(t, !0), e) {
				var n = P.end(t, []);
				B.select(t, n);
			} else {
				var r = sS.get(t);
				r ? B.select(t, r) : B.select(t, P.start(t, []));
			}
		}, t.isFocused = function() {
			return !!oS.get(t);
		}, t.blur = function() {
			K.toDOMNode(t, t).blur(), B.deselect(t), oS.set(t, !1);
		}, t.updateView = function() {
			K.getTextarea(t).changeViewState();
			var e = K.getToolbar(t);
			e && e.changeToolbarState();
			var n = K.getHoverbar(t);
			n && n.changeHoverbarState();
		}, t.destroy = function() {
			if (!t.isDestroyed) {
				var e = K.getTextarea(t);
				e.destroy(), zx.delete(t), Bx.delete(e);
				var n = K.getToolbar(t);
				n && (n.destroy(), Hx.delete(t), Vx.delete(n));
				var r = K.getHoverbar(t);
				r && (r.destroy(), Wx.delete(t), Ux.delete(r)), t.isDestroyed = !0, t.emit("destroyed");
			}
		}, t.scrollToElem = function(e) {
			if (!t.getConfig().scroll) {
				var n = "编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";
				n += "\nYou has disabled editor scroll, please do this yourself", console.warn(n);
				return;
			}
			var r = V("#" + e);
			if (r.length !== 0) {
				var i = r[0];
				if (!K.hasDOMNode(t, i)) return n = "Element (found by id is '" + e + "') is not in editor DOM", n += "\n 通过 id '" + e + "' 找到的 element 不在 editor DOM 之内", void console.error(n, i);
				var a = K.getTextarea(t), o = a.$textAreaContainer, s = a.$scroll, c = r.offset().top, l = o.offset().top;
				s[0].scrollBy({
					top: c - l,
					behavior: "smooth"
				});
			}
		}, t.showProgressBar = function(e) {
			e < 1 || K.getTextarea(t).changeProgress(e);
		}, t.hidePanelOrModal = function() {
			Kx.get(t)?.forEach((function(e) {
				return e.hide();
			}));
		}, t.enable = function() {
			t.getConfig().readOnly = !1, t.updateView();
		}, t.disable = function() {
			t.getConfig().readOnly = !0, t.updateView();
		}, t.isDisabled = function() {
			return t.getConfig().readOnly;
		}, t.toDOMNode = function(e) {
			return K.toDOMNode(t, e);
		}, t.fullScreen = function() {
			if (!t.isFullScreen) {
				var e = null, n = K.getToolbar(t);
				n && (e = n.$box);
				var r = K.getTextarea(t).$box.parent();
				if (e && e.parent()[0] !== r[0]) throw Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");
				r.addClass("w-e-full-screen-container");
				var i = r.css("z-index");
				r.attr("data-z-index", i.toString()), t.isFullScreen = !0, t.emit("fullScreen");
			}
		}, t.unFullScreen = function() {
			if (t.isFullScreen) {
				var e = K.getTextarea(t).$box.parent();
				setTimeout((function() {
					e.removeClass("w-e-full-screen-container"), t.isFullScreen = !1, t.emit("unFullScreen");
				}), 200);
			}
		}, t.getEditableContainer = function() {
			return K.getTextarea(t).$textAreaContainer[0];
		}, t;
	}()))))));
	if (n && function(e, t) {
		return bw(e, "data-w-e-textarea", t);
	}(l, n)) throw Error("Repeated create editor by selector '" + n + "'");
	var u = function(e) {
		e === void 0 && (e = {});
		var t = Fp(DS), n = {}, r = e.MENU_CONF, i = r === void 0 ? {} : r;
		return Id(t, (function(e, t) {
			n[t] = tx(tx({}, e), i[t] || {});
		})), delete e.MENU_CONF, tx({
			scroll: !0,
			readOnly: !1,
			autoFocus: !0,
			decorate: function() {
				return [];
			},
			maxLength: 0,
			MENU_CONF: n,
			hoverbarKeys: {},
			customAlert: function(e, t) {
				window.alert(t + ":\n" + e);
			}
		}, e);
	}(i);
	Jx.set(l, u);
	var d = u.hoverbarKeys, f = d === void 0 ? {} : d;
	if (c.forEach((function(e) {
		l = e(l);
	})), o != null && (l.children = xw(l, o)), a && a.length && (l.children = a), l.children.length === 0 && (l.children = [{
		type: "paragraph",
		children: [{ text: "" }]
	}]), K.normalizeContent(l), n) {
		var p = new OT(n);
		zx.set(l, p), Bx.set(p, l), p.changeViewState(), YC((function() {
			var e = p.$scroll;
			e != null && e.height() < 300 && console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error", e);
		}));
		var m = void 0;
		Object.keys(f).length > 0 && (m = new YT(), Ux.set(m, l), Wx.set(l, m)), l.on("change", (function() {
			l.hidePanelOrModal();
		})), l.on("scroll", (function() {
			l.hidePanelOrModal();
		}));
	} else l.children.forEach((function(e, t) {
		return XT(e, t, l, l);
	}));
	var h = u.onCreated, g = u.onDestroyed;
	return h && l.on("created", (function() {
		return h(l);
	})), g && l.on("destroyed", (function() {
		return g(l);
	})), YC((function() {
		return l.emit("created");
	})), l;
}
var QT = Tb("splice"), $T = W.TypeError, eE = Math.max, voe = Math.min;
Hv({
	target: "Array",
	proto: !0,
	forced: !QT
}, { splice: function(e, t) {
	var n, r, i, a, o, s, c = tg(this), l = K_(c), u = xv(e, l), d = arguments.length;
	if (d === 0 ? n = r = 0 : d === 1 ? (n = 0, r = l - u) : (n = d - 2, r = voe(eE(U_(t), 0), l - u)), l + n - r > 9007199254740991) throw $T("Maximum allowed length exceeded");
	for (i = iv(c, r), a = 0; a < r; a++) (o = u + a) in c && Ny(i, a, c[o]);
	if (i.length = r, n < r) {
		for (a = u; a < l - r; a++) s = a + n, (o = a + r) in c ? c[s] = c[o] : delete c[s];
		for (a = l; a > l - r + n; a--) delete c[a - 1];
	} else if (n > r) for (a = l - r; a > u; a--) s = a + n - 1, (o = a + r - 1) in c ? c[s] = c[o] : delete c[s];
	for (a = 0; a < n; a++) c[a + u] = arguments[a + 2];
	return c.length = l - r + n, i;
} });
var yoe = function() {
	function e(e, t) {
		var n = this;
		this.$toolbar = V("<div class=\"w-e-bar w-e-bar-show w-e-toolbar\"></div>"), this.menus = {}, this.toolbarItems = [], this.config = {}, this.changeToolbarState = Pp((function() {
			n.toolbarItems.forEach((function(e) {
				e.changeMenuState();
			}));
		}), 200), this.config = t;
		var r = V(e);
		if (r.length === 0) throw Error("Cannot find toolbar DOM by selector '" + e + "'");
		this.$box = r;
		var i = this.$toolbar;
		i.on("mousedown", (function(e) {
			return e.preventDefault();
		}), { passive: !1 }), r.append(i), YC((function() {
			n.registerItems(), n.changeToolbarState(), n.getEditorInstance().on("change", n.changeToolbarState);
		}));
	}
	return e.prototype.getMenus = function() {
		return this.menus;
	}, e.prototype.getConfig = function() {
		return this.config;
	}, e.prototype.registerItems = function() {
		var e = this, t = "", n = this.$toolbar, r = this.config, i = r.toolbarKeys, a = i === void 0 ? [] : i, o = r.insertKeys, s = o === void 0 ? {
			index: 0,
			keys: []
		} : o, c = r.excludeKeys, l = c === void 0 ? [] : c, u = Fp(a);
		s.keys.length > 0 && (typeof s.keys == "string" && (s.keys = [s.keys]), s.keys.forEach((function(e, t) {
			u.splice(s.index + t, 0, e);
		})));
		var d = u.filter((function(e) {
			if (typeof e == "string") {
				if (l.includes(e)) return !1;
			} else if (l.includes(e.key)) return !1;
			return !0;
		})), f = d.length;
		d.forEach((function(r, i) {
			if (r === "|") {
				if (i === 0 || i + 1 === f || t === "|") return;
				var a = jT();
				n.append(a), t = r;
				return;
			}
			if (typeof r == "string") return e.registerSingleItem(r, e), void (t = r);
			e.registerGroup(r), t = "group";
		}));
	}, e.prototype.registerGroup = function(e) {
		var t = this, n = this.$toolbar, r = function(e) {
			return new WT(e);
		}(e), i = e.menuKeys, a = i === void 0 ? [] : i, o = this.config.excludeKeys, s = o === void 0 ? [] : o;
		a.forEach((function(e) {
			s.includes(e) || t.registerSingleItem(e, r);
		})), n.append(r.$elem);
	}, e.prototype.registerSingleItem = function(e, t) {
		var n = this.getEditorInstance(), r = t instanceof WT, i = this.menus, a = i[e];
		if (a == null) {
			var o = OS[e];
			if (o == null) throw Error("Not found menu item factory by key '" + e + "'");
			if (typeof o != "function") throw Error("Menu item factory (key='" + e + "') is not a function");
			a = o(), i[e] = a;
		} else console.warn("Duplicated toolbar menu key '" + e + "'\n重复注册了菜单栏 menu '" + e + "'");
		var s = qT(e, a, r);
		this.toolbarItems.push(s), Gx.set(s, n), r ? t.appendBarItem(s) : t.$toolbar.append(s.$elem);
	}, e.prototype.getEditorInstance = function() {
		var e = Vx.get(this);
		if (e == null) throw Error("Can not get editor instance");
		return e;
	}, e.prototype.destroy = function() {
		this.$toolbar.remove(), this.menus = {}, this.toolbarItems = [];
	}, e;
}(), boe = S_.EXISTS, xoe = Qg.f, tE = Function.prototype, Soe = G(tE.toString), nE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, Coe = G(nE.exec);
function rE(e) {
	var t = e.server, n = t === void 0 ? "" : t, r = e.fieldName, i = r === void 0 ? "" : r, a = e.maxFileSize, o = a === void 0 ? 10485760 : a, s = e.maxNumberOfFiles, c = s === void 0 ? 100 : s, l = e.meta, u = l === void 0 ? {} : l, d = e.metaWithUrl, f = d !== void 0 && d, p = e.headers, m = p === void 0 ? {} : p, h = e.withCredentials, g = h !== void 0 && h, _ = e.timeout, v = _ === void 0 ? 1e4 : _, y = e.onBeforeUpload, b = y === void 0 ? function(e) {
		return e;
	} : y, x = e.onSuccess, S = x === void 0 ? function(e, t) {} : x, C = e.onError, w = C === void 0 ? function(e, t, n) {
		console.error(e.name + " upload error", t, n);
	} : C, T = e.onProgress, E = T === void 0 ? function(e) {} : T;
	if (!n) throw Error("Cannot get upload server address\n没有配置上传地址");
	if (!i) throw Error("Cannot get fieldName\n没有配置 fieldName");
	var D = n;
	f && (D = function(e, t) {
		var n = rx(e.split("#"), 2), r = n[0], i = n[1], a = [];
		Id(t, (function(e, t) {
			a.push(t + "=" + e);
		}));
		var o = a.join("&");
		return r = r.indexOf("?") > 0 ? r + "&" + o : r + "?" + o, i ? r + "#" + i : r;
	}(D, u));
	var O = new km({
		onBeforeUpload: b,
		restrictions: {
			maxFileSize: o,
			maxNumberOfFiles: c
		},
		meta: u
	}).use(Rh, {
		endpoint: D,
		headers: m,
		formData: !0,
		fieldName: i,
		bundle: !0,
		withCredentials: g,
		timeout: v
	});
	return O.on("upload-success", (function(e, t) {
		var n = t.body, r = n === void 0 ? {} : n;
		try {
			S(e, r);
		} catch (e) {
			console.error("wangEditor upload file - onSuccess error", e);
		}
		O.removeFile(e.id);
	})), O.on("progress", (function(e) {
		e < 1 || E(e);
	})), O.on("upload-error", (function(e, t, n) {
		try {
			w(e, t, n);
		} catch (e) {
			console.error("wangEditor upload file - onError error", e);
		}
		O.removeFile(e.id);
	})), O.on("restriction-failed", (function(e, t) {
		try {
			w(e, t);
		} catch (e) {
			console.error("wangEditor upload file - onError error", e);
		}
		O.removeFile(e.id);
	})), O;
}
function iE(e) {
	return iE = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
		return typeof e;
	} : function(e) {
		return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
	}, iE(e);
}
function woe(e, t, n) {
	return t in e ? Object.defineProperty(e, t, {
		value: n,
		enumerable: !0,
		configurable: !0,
		writable: !0
	}) : e[t] = n, e;
}
function aE(e) {
	for (var t = 1; t < arguments.length; t++) {
		var n = arguments[t] == null ? {} : Object(arguments[t]), r = Object.keys(n);
		typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter((function(e) {
			return Object.getOwnPropertyDescriptor(n, e).enumerable;
		}))), r.forEach((function(t) {
			woe(e, t, n[t]);
		}));
	}
	return e;
}
function oE(e, t) {
	if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
}
function sE(e, t) {
	for (var n = 0; n < t.length; n++) {
		var r = t[n];
		r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
	}
}
function cE(e, t, n) {
	return t && sE(e.prototype, t), n && sE(e, n), e;
}
function lE(e) {
	if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
	return e;
}
function uE(e, t) {
	if (t && (iE(t) === "object" || typeof t == "function")) return t;
	if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
	return lE(e);
}
function dE(e) {
	return dE = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
		return e.__proto__ || Object.getPrototypeOf(e);
	}, dE(e);
}
function fE(e, t) {
	return fE = Object.setPrototypeOf || function(e, t) {
		return e.__proto__ = t, e;
	}, fE(e, t);
}
function pE(e, t) {
	if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
	e.prototype = Object.create(t && t.prototype, { constructor: {
		value: e,
		writable: !0,
		configurable: !0
	} }), t && fE(e, t);
}
Dg && !boe && xoe(tE, "name", {
	configurable: !0,
	get: function() {
		try {
			return Coe(nE, Soe(this))[1];
		} catch {
			return "";
		}
	}
});
var Toe = {
	type: "logger",
	log: function(e) {
		this.output("log", e);
	},
	warn: function(e) {
		this.output("warn", e);
	},
	error: function(e) {
		this.output("error", e);
	},
	output: function(e, t) {
		console && console[e] && console[e].apply(console, t);
	}
}, mE = new (function() {
	function e(t) {
		var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		oE(this, e), this.init(t, n);
	}
	return cE(e, [
		{
			key: "init",
			value: function(e) {
				var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
				this.prefix = t.prefix || "i18next:", this.logger = e || Toe, this.options = t, this.debug = t.debug;
			}
		},
		{
			key: "setDebug",
			value: function(e) {
				this.debug = e;
			}
		},
		{
			key: "log",
			value: function() {
				var e = [...arguments];
				return this.forward(e, "log", "", !0);
			}
		},
		{
			key: "warn",
			value: function() {
				var e = [...arguments];
				return this.forward(e, "warn", "", !0);
			}
		},
		{
			key: "error",
			value: function() {
				var e = [...arguments];
				return this.forward(e, "error", "");
			}
		},
		{
			key: "deprecate",
			value: function() {
				var e = [...arguments];
				return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
			}
		},
		{
			key: "forward",
			value: function(e, t, n, r) {
				return r && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
			}
		},
		{
			key: "create",
			value: function(t) {
				return new e(this.logger, aE({}, { prefix: `${this.prefix}:${t}:` }, this.options));
			}
		}
	]), e;
}())(), hE = function() {
	function e() {
		oE(this, e), this.observers = {};
	}
	return cE(e, [
		{
			key: "on",
			value: function(e, t) {
				var n = this;
				return e.split(" ").forEach((function(e) {
					n.observers[e] = n.observers[e] || [], n.observers[e].push(t);
				})), this;
			}
		},
		{
			key: "off",
			value: function(e, t) {
				this.observers[e] && (t ? this.observers[e] = this.observers[e].filter((function(e) {
					return e !== t;
				})) : delete this.observers[e]);
			}
		},
		{
			key: "emit",
			value: function(e) {
				var t = [...arguments].slice(1);
				this.observers[e] && [].concat(this.observers[e]).forEach((function(e) {
					e.apply(void 0, t);
				})), this.observers["*"] && [].concat(this.observers["*"]).forEach((function(n) {
					n.apply(n, [e].concat(t));
				}));
			}
		}
	]), e;
}();
function gE() {
	var e, t, n = new Promise((function(n, r) {
		e = n, t = r;
	}));
	return n.resolve = e, n.reject = t, n;
}
function _E(e) {
	return e == null ? "" : "" + e;
}
function Eoe(e, t, n) {
	e.forEach((function(e) {
		t[e] && (n[e] = t[e]);
	}));
}
function vE(e, t, n) {
	function r(e) {
		return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
	}
	function i() {
		return !e || typeof e == "string";
	}
	for (var a = typeof t == "string" ? t.split(".") : [].concat(t); a.length > 1;) {
		if (i()) return {};
		var o = r(a.shift());
		!e[o] && n && (e[o] = new n()), e = Object.prototype.hasOwnProperty.call(e, o) ? e[o] : {};
	}
	return i() ? {} : {
		obj: e,
		k: r(a.shift())
	};
}
function yE(e, t, n) {
	var r = vE(e, t, Object);
	r.obj[r.k] = n;
}
function bE(e, t) {
	var n = vE(e, t), r = n.obj, i = n.k;
	if (r) return r[i];
}
function xE(e, t, n) {
	var r = bE(e, n);
	return r === void 0 ? bE(t, n) : r;
}
function SE(e, t, n) {
	for (var r in t) r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : SE(e[r], t[r], n) : e[r] = t[r]);
	return e;
}
function CE(e) {
	return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}
var Doe = {
	"&": "&amp;",
	"<": "&lt;",
	">": "&gt;",
	"\"": "&quot;",
	"'": "&#39;",
	"/": "&#x2F;"
};
function Ooe(e) {
	return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (function(e) {
		return Doe[e];
	})) : e;
}
var wE = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1;
function TE(e, t) {
	var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
	if (e) {
		if (e[t]) return e[t];
		for (var r = t.split(n), i = e, a = 0; a < r.length; ++a) {
			if (!i || typeof i[r[a]] == "string" && a + 1 < r.length) return;
			if (i[r[a]] === void 0) {
				for (var o = 2, s = r.slice(a, a + o).join(n), c = i[s]; c === void 0 && r.length > a + o;) o++, c = i[s = r.slice(a, a + o).join(n)];
				if (c === void 0) return;
				if (typeof c == "string") return c;
				if (s && typeof c[s] == "string") return c[s];
				var l = r.slice(a + o).join(n);
				return l ? TE(c, l, n) : void 0;
			}
			i = i[r[a]];
		}
		return i;
	}
}
var EE = function(e) {
	function t(e) {
		var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
			ns: ["translation"],
			defaultNS: "translation"
		};
		return oE(this, t), n = uE(this, dE(t).call(this)), wE && hE.call(lE(n)), n.data = e || {}, n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.options.ignoreJSONStructure === void 0 && (n.options.ignoreJSONStructure = !0), n;
	}
	return pE(t, hE), cE(t, [
		{
			key: "addNamespaces",
			value: function(e) {
				this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
			}
		},
		{
			key: "removeNamespaces",
			value: function(e) {
				var t = this.options.ns.indexOf(e);
				t > -1 && this.options.ns.splice(t, 1);
			}
		},
		{
			key: "getResource",
			value: function(e, t, n) {
				var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o = [e, t];
				n && typeof n != "string" && (o = o.concat(n)), n && typeof n == "string" && (o = o.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (o = e.split("."));
				var s = bE(this.data, o);
				return s || !a || typeof n != "string" ? s : TE(this.data && this.data[e] && this.data[e][t], n, i);
			}
		},
		{
			key: "addResource",
			value: function(e, t, n, r) {
				var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, a = this.options.keySeparator;
				a === void 0 && (a = ".");
				var o = [e, t];
				n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (r = t, t = (o = e.split("."))[1]), this.addNamespaces(t), yE(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
			}
		},
		{
			key: "addResources",
			value: function(e, t, n) {
				var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { silent: !1 };
				for (var i in n) typeof n[i] != "string" && Object.prototype.toString.apply(n[i]) !== "[object Array]" || this.addResource(e, t, i, n[i], { silent: !0 });
				r.silent || this.emit("added", e, t, n);
			}
		},
		{
			key: "addResourceBundle",
			value: function(e, t, n, r, i) {
				var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, o = [e, t];
				e.indexOf(".") > -1 && (r = n, n = t, t = (o = e.split("."))[1]), this.addNamespaces(t);
				var s = bE(this.data, o) || {};
				r ? SE(s, n, i) : s = aE({}, s, n), yE(this.data, o, s), a.silent || this.emit("added", e, t, n);
			}
		},
		{
			key: "removeResourceBundle",
			value: function(e, t) {
				this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
			}
		},
		{
			key: "hasResourceBundle",
			value: function(e, t) {
				return this.getResource(e, t) !== void 0;
			}
		},
		{
			key: "getResourceBundle",
			value: function(e, t) {
				return t ||= this.options.defaultNS, this.options.compatibilityAPI === "v1" ? aE({}, {}, this.getResource(e, t)) : this.getResource(e, t);
			}
		},
		{
			key: "getDataByLanguage",
			value: function(e) {
				return this.data[e];
			}
		},
		{
			key: "toJSON",
			value: function() {
				return this.data;
			}
		}
	]), t;
}(), DE = {
	processors: {},
	addPostProcessor: function(e) {
		this.processors[e.name] = e;
	},
	handle: function(e, t, n, r, i) {
		var a = this;
		return e.forEach((function(e) {
			a.processors[e] && (t = a.processors[e].process(t, n, r, i));
		})), t;
	}
}, OE = {}, kE = function(e) {
	function t(e) {
		var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		return oE(this, t), n = uE(this, dE(t).call(this)), wE && hE.call(lE(n)), Eoe([
			"resourceStore",
			"languageUtils",
			"pluralResolver",
			"interpolator",
			"backendConnector",
			"i18nFormat",
			"utils"
		], e, lE(n)), n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.logger = mE.create("translator"), n;
	}
	return pE(t, hE), cE(t, [
		{
			key: "changeLanguage",
			value: function(e) {
				e && (this.language = e);
			}
		},
		{
			key: "exists",
			value: function(e) {
				var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { interpolation: {} };
				if (e == null) return !1;
				var n = this.resolve(e, t);
				return n && n.res !== void 0;
			}
		},
		{
			key: "extractFromKey",
			value: function(e, t) {
				var n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
				n === void 0 && (n = ":");
				var r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS;
				if (n && e.indexOf(n) > -1) {
					var a = e.match(this.interpolator.nestingRegexp);
					if (a && a.length > 0) return {
						key: e,
						namespaces: i
					};
					var o = e.split(n);
					(n !== r || n === r && this.options.ns.indexOf(o[0]) > -1) && (i = o.shift()), e = o.join(r);
				}
				return typeof i == "string" && (i = [i]), {
					key: e,
					namespaces: i
				};
			}
		},
		{
			key: "translate",
			value: function(e, n, r) {
				var i = this;
				if (iE(n) !== "object" && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), n ||= {}, e == null) return "";
				Array.isArray(e) || (e = [String(e)]);
				var a = n.keySeparator === void 0 ? this.options.keySeparator : n.keySeparator, o = this.extractFromKey(e[e.length - 1], n), s = o.key, c = o.namespaces, l = c[c.length - 1], u = n.lng || this.language, d = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
				if (u && u.toLowerCase() === "cimode") return d ? l + (n.nsSeparator || this.options.nsSeparator) + s : s;
				var f = this.resolve(e, n), p = f && f.res, m = f && f.usedKey || s, h = f && f.exactUsedKey || s, g = Object.prototype.toString.apply(p), _ = [
					"[object Number]",
					"[object Function]",
					"[object RegExp]"
				], v = n.joinArrays === void 0 ? this.options.joinArrays : n.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject;
				if (y && p && typeof p != "string" && typeof p != "boolean" && typeof p != "number" && _.indexOf(g) < 0 && (typeof v != "string" || g !== "[object Array]")) {
					if (!n.returnObjects && !this.options.returnObjects) return this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, p, aE({}, n, { ns: c })) : `key '${s} (${this.language})' returned an object instead of string.`;
					if (a) {
						var b = g === "[object Array]", x = b ? [] : {}, S = b ? h : m;
						for (var C in p) if (Object.prototype.hasOwnProperty.call(p, C)) {
							var w = `${S}${a}${C}`;
							x[C] = this.translate(w, aE({}, n, {
								joinArrays: !1,
								ns: c
							})), x[C] === w && (x[C] = p[C]);
						}
						p = x;
					}
				} else if (y && typeof v == "string" && g === "[object Array]") (p = p.join(v)) && (p = this.extendTranslation(p, e, n, r));
				else {
					var T = !1, E = !1, D = n.count !== void 0 && typeof n.count != "string", O = t.hasDefaultValue(n), ee = D ? this.pluralResolver.getSuffix(u, n.count) : "", te = n[`defaultValue${ee}`] || n.defaultValue;
					!this.isValidLookup(p) && O && (T = !0, p = te), this.isValidLookup(p) || (E = !0, p = s);
					var ne = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : p, re = O && te !== p && this.options.updateMissing;
					if (E || T || re) {
						if (this.logger.log(re ? "updateKey" : "missingKey", u, l, s, re ? te : p), a) {
							var k = this.resolve(s, aE({}, n, { keySeparator: !1 }));
							k && k.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
						}
						var ie = [], A = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
						if (this.options.saveMissingTo === "fallback" && A && A[0]) for (var ae = 0; ae < A.length; ae++) ie.push(A[ae]);
						else this.options.saveMissingTo === "all" ? ie = this.languageUtils.toResolveHierarchy(n.lng || this.language) : ie.push(n.lng || this.language);
						var oe = function(e, t, r) {
							i.options.missingKeyHandler ? i.options.missingKeyHandler(e, l, t, re ? r : ne, re, n) : i.backendConnector && i.backendConnector.saveMissing && i.backendConnector.saveMissing(e, l, t, re ? r : ne, re, n), i.emit("missingKey", e, l, t, p);
						};
						this.options.saveMissing && (this.options.saveMissingPlurals && D ? ie.forEach((function(e) {
							i.pluralResolver.getSuffixes(e).forEach((function(t) {
								oe([e], s + t, n[`defaultValue${t}`] || te);
							}));
						})) : oe(ie, s, te));
					}
					p = this.extendTranslation(p, e, n, f, r), E && p === s && this.options.appendNamespaceToMissingKey && (p = `${l}:${s}`), (E || T) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(p));
				}
				return p;
			}
		},
		{
			key: "extendTranslation",
			value: function(e, t, n, r, i) {
				var a = this;
				if (this.i18nFormat && this.i18nFormat.parse) e = this.i18nFormat.parse(e, n, r.usedLng, r.usedNS, r.usedKey, { resolved: r });
				else if (!n.skipInterpolation) {
					n.interpolation && this.interpolator.init(aE({}, n, { interpolation: aE({}, this.options.interpolation, n.interpolation) }));
					var o, s = n.interpolation && n.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
					if (s) {
						var c = e.match(this.interpolator.nestingRegexp);
						o = c && c.length;
					}
					var l = n.replace && typeof n.replace != "string" ? n.replace : n;
					if (this.options.interpolation.defaultVariables && (l = aE({}, this.options.interpolation.defaultVariables, l)), e = this.interpolator.interpolate(e, l, n.lng || this.language, n), s) {
						var u = e.match(this.interpolator.nestingRegexp);
						o < (u && u.length) && (n.nest = !1);
					}
					!1 !== n.nest && (e = this.interpolator.nest(e, (function() {
						var e = [...arguments];
						return i && i[0] === e[0] && !n.context ? (a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : a.translate.apply(a, e.concat([t]));
					}), n)), n.interpolation && this.interpolator.reset();
				}
				var d = n.postProcess || this.options.postProcess, f = typeof d == "string" ? [d] : d;
				return e != null && f && f.length && !1 !== n.applyPostProcessor && (e = DE.handle(f, e, t, this.options && this.options.postProcessPassResolved ? aE({ i18nResolved: r }, n) : n, this)), e;
			}
		},
		{
			key: "resolve",
			value: function(e) {
				var t, n, r, i, a, o = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
				return typeof e == "string" && (e = [e]), e.forEach((function(e) {
					if (!o.isValidLookup(t)) {
						var c = o.extractFromKey(e, s), l = c.key;
						n = l;
						var u = c.namespaces;
						o.options.fallbackNS && (u = u.concat(o.options.fallbackNS));
						var d = s.count !== void 0 && typeof s.count != "string", f = s.context !== void 0 && (typeof s.context == "string" || typeof s.context == "number") && s.context !== "", p = s.lngs ? s.lngs : o.languageUtils.toResolveHierarchy(s.lng || o.language, s.fallbackLng);
						u.forEach((function(e) {
							o.isValidLookup(t) || (a = e, !OE[`${p[0]}-${e}`] && o.utils && o.utils.hasLoadedNamespace && !o.utils.hasLoadedNamespace(a) && (OE[`${p[0]}-${e}`] = !0, o.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((function(n) {
								if (!o.isValidLookup(t)) {
									i = n;
									var a, c, u = l, p = [u];
									for (o.i18nFormat && o.i18nFormat.addLookupKeys ? o.i18nFormat.addLookupKeys(p, l, n, e, s) : (d && (a = o.pluralResolver.getSuffix(n, s.count)), d && f && p.push(u + a), f && p.push(u += `${o.options.contextSeparator}${s.context}`), d && p.push(u += a)); c = p.pop();) o.isValidLookup(t) || (r = c, t = o.getResource(n, e, c, s));
								}
							})));
						}));
					}
				})), {
					res: t,
					usedKey: n,
					exactUsedKey: r,
					usedLng: i,
					usedNS: a
				};
			}
		},
		{
			key: "isValidLookup",
			value: function(e) {
				return !(e === void 0 || !this.options.returnNull && e === null || !this.options.returnEmptyString && e === "");
			}
		},
		{
			key: "getResource",
			value: function(e, t, n) {
				var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
				return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
			}
		}
	], [{
		key: "hasDefaultValue",
		value: function(e) {
			var t = "defaultValue";
			for (var n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t === n.substring(0, t.length) && e[n] !== void 0) return !0;
			return !1;
		}
	}]), t;
}();
function AE(e) {
	return e.charAt(0).toUpperCase() + e.slice(1);
}
var jE = function() {
	function e(t) {
		oE(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = mE.create("languageUtils");
	}
	return cE(e, [
		{
			key: "getScriptPartFromCode",
			value: function(e) {
				if (!e || e.indexOf("-") < 0) return null;
				var t = e.split("-");
				return t.length === 2 ? null : (t.pop(), t[t.length - 1].toLowerCase() === "x" ? null : this.formatLanguageCode(t.join("-")));
			}
		},
		{
			key: "getLanguagePartFromCode",
			value: function(e) {
				if (!e || e.indexOf("-") < 0) return e;
				var t = e.split("-");
				return this.formatLanguageCode(t[0]);
			}
		},
		{
			key: "formatLanguageCode",
			value: function(e) {
				if (typeof e == "string" && e.indexOf("-") > -1) {
					var t = [
						"hans",
						"hant",
						"latn",
						"cyrl",
						"cans",
						"mong",
						"arab"
					], n = e.split("-");
					return this.options.lowerCaseLng ? n = n.map((function(e) {
						return e.toLowerCase();
					})) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = AE(n[1].toLowerCase()))) : n.length === 3 && (n[0] = n[0].toLowerCase(), n[1].length === 2 && (n[1] = n[1].toUpperCase()), n[0] !== "sgn" && n[2].length === 2 && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = AE(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = AE(n[2].toLowerCase()))), n.join("-");
				}
				return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
			}
		},
		{
			key: "isWhitelisted",
			value: function(e) {
				return this.logger.deprecate("languageUtils.isWhitelisted", "function \"isWhitelisted\" will be renamed to \"isSupportedCode\" in the next major - please make sure to rename it's usage asap."), this.isSupportedCode(e);
			}
		},
		{
			key: "isSupportedCode",
			value: function(e) {
				return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
			}
		},
		{
			key: "getBestMatchFromCodes",
			value: function(e) {
				var t, n = this;
				return e ? (e.forEach((function(e) {
					if (!t) {
						var r = n.formatLanguageCode(e);
						n.options.supportedLngs && !n.isSupportedCode(r) || (t = r);
					}
				})), !t && this.options.supportedLngs && e.forEach((function(e) {
					if (!t) {
						var r = n.getLanguagePartFromCode(e);
						if (n.isSupportedCode(r)) return t = r;
						t = n.options.supportedLngs.find((function(e) {
							if (e.indexOf(r) === 0) return e;
						}));
					}
				})), t ||= this.getFallbackCodes(this.options.fallbackLng)[0], t) : null;
			}
		},
		{
			key: "getFallbackCodes",
			value: function(e, t) {
				if (!e) return [];
				if (typeof e == "function" && (e = e(t)), typeof e == "string" && (e = [e]), Object.prototype.toString.apply(e) === "[object Array]") return e;
				if (!t) return e.default || [];
				var n = e[t];
				return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
			}
		},
		{
			key: "toResolveHierarchy",
			value: function(e, t) {
				var n = this, r = this.getFallbackCodes(t || this.options.fallbackLng || [], e), i = [], a = function(e) {
					e && (n.isSupportedCode(e) ? i.push(e) : n.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
				};
				return typeof e == "string" && e.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : typeof e == "string" && a(this.formatLanguageCode(e)), r.forEach((function(e) {
					i.indexOf(e) < 0 && a(n.formatLanguageCode(e));
				})), i;
			}
		}
	]), e;
}(), ME = [
	{
		lngs: [
			"ach",
			"ak",
			"am",
			"arn",
			"br",
			"fil",
			"gun",
			"ln",
			"mfe",
			"mg",
			"mi",
			"oc",
			"pt",
			"pt-BR",
			"tg",
			"tl",
			"ti",
			"tr",
			"uz",
			"wa"
		],
		nr: [1, 2],
		fc: 1
	},
	{
		lngs: /* @__PURE__ */ "af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo".split("."),
		nr: [1, 2],
		fc: 2
	},
	{
		lngs: [
			"ay",
			"bo",
			"cgg",
			"fa",
			"ht",
			"id",
			"ja",
			"jbo",
			"ka",
			"km",
			"ko",
			"ky",
			"lo",
			"ms",
			"sah",
			"su",
			"th",
			"tt",
			"ug",
			"vi",
			"wo",
			"zh"
		],
		nr: [1],
		fc: 3
	},
	{
		lngs: [
			"be",
			"bs",
			"cnr",
			"dz",
			"hr",
			"ru",
			"sr",
			"uk"
		],
		nr: [
			1,
			2,
			5
		],
		fc: 4
	},
	{
		lngs: ["ar"],
		nr: [
			0,
			1,
			2,
			3,
			11,
			100
		],
		fc: 5
	},
	{
		lngs: ["cs", "sk"],
		nr: [
			1,
			2,
			5
		],
		fc: 6
	},
	{
		lngs: ["csb", "pl"],
		nr: [
			1,
			2,
			5
		],
		fc: 7
	},
	{
		lngs: ["cy"],
		nr: [
			1,
			2,
			3,
			8
		],
		fc: 8
	},
	{
		lngs: ["fr"],
		nr: [1, 2],
		fc: 9
	},
	{
		lngs: ["ga"],
		nr: [
			1,
			2,
			3,
			7,
			11
		],
		fc: 10
	},
	{
		lngs: ["gd"],
		nr: [
			1,
			2,
			3,
			20
		],
		fc: 11
	},
	{
		lngs: ["is"],
		nr: [1, 2],
		fc: 12
	},
	{
		lngs: ["jv"],
		nr: [0, 1],
		fc: 13
	},
	{
		lngs: ["kw"],
		nr: [
			1,
			2,
			3,
			4
		],
		fc: 14
	},
	{
		lngs: ["lt"],
		nr: [
			1,
			2,
			10
		],
		fc: 15
	},
	{
		lngs: ["lv"],
		nr: [
			1,
			2,
			0
		],
		fc: 16
	},
	{
		lngs: ["mk"],
		nr: [1, 2],
		fc: 17
	},
	{
		lngs: ["mnk"],
		nr: [
			0,
			1,
			2
		],
		fc: 18
	},
	{
		lngs: ["mt"],
		nr: [
			1,
			2,
			11,
			20
		],
		fc: 19
	},
	{
		lngs: ["or"],
		nr: [2, 1],
		fc: 2
	},
	{
		lngs: ["ro"],
		nr: [
			1,
			2,
			20
		],
		fc: 20
	},
	{
		lngs: ["sl"],
		nr: [
			5,
			1,
			2,
			3
		],
		fc: 21
	},
	{
		lngs: ["he", "iw"],
		nr: [
			1,
			2,
			20,
			21
		],
		fc: 22
	}
], NE = {
	1: function(e) {
		return Number(e > 1);
	},
	2: function(e) {
		return Number(e != 1);
	},
	3: function(e) {
		return 0;
	},
	4: function(e) {
		return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
	},
	5: function(e) {
		return Number(e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5);
	},
	6: function(e) {
		return Number(e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2);
	},
	7: function(e) {
		return Number(e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
	},
	8: function(e) {
		return Number(e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3);
	},
	9: function(e) {
		return Number(e >= 2);
	},
	10: function(e) {
		return Number(e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4);
	},
	11: function(e) {
		return Number(e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3);
	},
	12: function(e) {
		return Number(e % 10 != 1 || e % 100 == 11);
	},
	13: function(e) {
		return Number(e !== 0);
	},
	14: function(e) {
		return Number(e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3);
	},
	15: function(e) {
		return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
	},
	16: function(e) {
		return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e === 0 ? 2 : 1);
	},
	17: function(e) {
		return Number(e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1);
	},
	18: function(e) {
		return Number(e == 0 ? 0 : e == 1 ? 1 : 2);
	},
	19: function(e) {
		return Number(e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3);
	},
	20: function(e) {
		return Number(e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2);
	},
	21: function(e) {
		return Number(e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0);
	},
	22: function(e) {
		return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
	}
};
function PE() {
	var e = {};
	return ME.forEach((function(t) {
		t.lngs.forEach((function(n) {
			e[n] = {
				numbers: t.nr,
				plurals: NE[t.fc]
			};
		}));
	})), e;
}
var FE = function() {
	function e(t) {
		var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		oE(this, e), this.languageUtils = t, this.options = n, this.logger = mE.create("pluralResolver"), this.rules = PE();
	}
	return cE(e, [
		{
			key: "addRule",
			value: function(e, t) {
				this.rules[e] = t;
			}
		},
		{
			key: "getRule",
			value: function(e) {
				return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
			}
		},
		{
			key: "needsPlural",
			value: function(e) {
				var t = this.getRule(e);
				return t && t.numbers.length > 1;
			}
		},
		{
			key: "getPluralFormsOfKey",
			value: function(e, t) {
				return this.getSuffixes(e).map((function(e) {
					return t + e;
				}));
			}
		},
		{
			key: "getSuffixes",
			value: function(e) {
				var t = this, n = this.getRule(e);
				return n ? n.numbers.map((function(n) {
					return t.getSuffix(e, n);
				})) : [];
			}
		},
		{
			key: "getSuffix",
			value: function(e, t) {
				var n = this, r = this.getRule(e);
				if (r) {
					var i = r.noAbs ? r.plurals(t) : r.plurals(Math.abs(t)), a = r.numbers[i];
					this.options.simplifyPluralSuffix && r.numbers.length === 2 && r.numbers[0] === 1 && (a === 2 ? a = "plural" : a === 1 && (a = ""));
					var o = function() {
						return n.options.prepend && a.toString() ? n.options.prepend + a.toString() : a.toString();
					};
					return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? `_plural_${a.toString()}` : o() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && r.numbers.length === 2 && r.numbers[0] === 1 ? o() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
				}
				return this.logger.warn(`no plural rule found for: ${e}`), "";
			}
		}
	]), e;
}(), IE = function() {
	function e() {
		var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
		oE(this, e), this.logger = mE.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
			return e;
		}, this.init(t);
	}
	return cE(e, [
		{
			key: "init",
			value: function() {
				var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
				e.interpolation ||= { escapeValue: !0 };
				var t = e.interpolation;
				this.escape = t.escape === void 0 ? Ooe : t.escape, this.escapeValue = t.escapeValue === void 0 || t.escapeValue, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 && t.useRawValueToEscape, this.prefix = t.prefix ? CE(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? CE(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? CE(t.nestingPrefix) : t.nestingPrefixEscaped || CE("$t("), this.nestingSuffix = t.nestingSuffix ? CE(t.nestingSuffix) : t.nestingSuffixEscaped || CE(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 && t.alwaysFormat, this.resetRegExp();
			}
		},
		{
			key: "reset",
			value: function() {
				this.options && this.init(this.options);
			}
		},
		{
			key: "resetRegExp",
			value: function() {
				var e = `${this.prefix}(.+?)${this.suffix}`;
				this.regexp = new RegExp(e, "g");
				var t = `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;
				this.regexpUnescape = new RegExp(t, "g");
				var n = `${this.nestingPrefix}(.+?)${this.nestingSuffix}`;
				this.nestingRegexp = new RegExp(n, "g");
			}
		},
		{
			key: "interpolate",
			value: function(e, t, n, r) {
				var i, a, o, s = this, c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
				function l(e) {
					return e.replace(/\$/g, "$$$$");
				}
				var u = function(e) {
					if (e.indexOf(s.formatSeparator) < 0) {
						var i = xE(t, c, e);
						return s.alwaysFormat ? s.format(i, void 0, n, aE({}, r, t, { interpolationkey: e })) : i;
					}
					var a = e.split(s.formatSeparator), o = a.shift().trim(), l = a.join(s.formatSeparator).trim();
					return s.format(xE(t, c, o), l, n, aE({}, r, t, { interpolationkey: o }));
				};
				this.resetRegExp();
				var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, f = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
				return [{
					regex: this.regexpUnescape,
					safeValue: function(e) {
						return l(e);
					}
				}, {
					regex: this.regexp,
					safeValue: function(e) {
						return s.escapeValue ? l(s.escape(e)) : l(e);
					}
				}].forEach((function(t) {
					for (o = 0; i = t.regex.exec(e);) {
						if ((a = u(i[1].trim())) === void 0) if (typeof d == "function") {
							var n = d(e, i, r);
							a = typeof n == "string" ? n : "";
						} else {
							if (f) {
								a = i[0];
								continue;
							}
							s.logger.warn(`missed to pass in variable ${i[1]} for interpolating ${e}`), a = "";
						}
						else typeof a == "string" || s.useRawValueToEscape || (a = _E(a));
						var c = t.safeValue(a);
						if (e = e.replace(i[0], c), f ? (t.regex.lastIndex += c.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, ++o >= s.maxReplaces) break;
					}
				})), e;
			}
		},
		{
			key: "nest",
			value: function(e, t) {
				var n, r, i = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = aE({}, a);
				function s(e, t) {
					var n = this.nestingOptionsSeparator;
					if (e.indexOf(n) < 0) return e;
					var r = e.split(RegExp(`${n}[ ]*{`)), i = `{${r[1]}`;
					e = r[0], i = (i = this.interpolate(i, o)).replace(/'/g, "\"");
					try {
						o = JSON.parse(i), t && (o = aE({}, t, o));
					} catch (t) {
						return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${n}${i}`;
					}
					return delete o.defaultValue, e;
				}
				for (o.applyPostProcessor = !1, delete o.defaultValue; n = this.nestingRegexp.exec(e);) {
					var c = [], l = !1;
					if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
						var u = n[1].split(this.formatSeparator).map((function(e) {
							return e.trim();
						}));
						n[1] = u.shift(), c = u, l = !0;
					}
					if ((r = t(s.call(this, n[1].trim(), o), o)) && n[0] === e && typeof r != "string") return r;
					typeof r != "string" && (r = _E(r)), r ||= (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), ""), l && (r = c.reduce((function(e, t) {
						return i.format(e, t, a.lng, aE({}, a, { interpolationkey: n[1].trim() }));
					}), r.trim())), e = e.replace(n[0], r), this.regexp.lastIndex = 0;
				}
				return e;
			}
		}
	]), e;
}(), LE = function(e) {
	function t(e, n, r) {
		var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
		return oE(this, t), i = uE(this, dE(t).call(this)), wE && hE.call(lE(i)), i.backend = e, i.store = n, i.services = r, i.languageUtils = r.languageUtils, i.options = a, i.logger = mE.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, a.backend, a), i;
	}
	return pE(t, hE), cE(t, [
		{
			key: "queueLoad",
			value: function(e, t, n, r) {
				var i = this, a = [], o = [], s = [], c = [];
				return e.forEach((function(e) {
					var r = !0;
					t.forEach((function(t) {
						var s = `${e}|${t}`;
						!n.reload && i.store.hasResourceBundle(e, t) ? i.state[s] = 2 : i.state[s] < 0 || (i.state[s] === 1 ? o.indexOf(s) < 0 && o.push(s) : (i.state[s] = 1, r = !1, o.indexOf(s) < 0 && o.push(s), a.indexOf(s) < 0 && a.push(s), c.indexOf(t) < 0 && c.push(t)));
					})), r || s.push(e);
				})), (a.length || o.length) && this.queue.push({
					pending: o,
					loaded: {},
					errors: [],
					callback: r
				}), {
					toLoad: a,
					pending: o,
					toLoadLanguages: s,
					toLoadNamespaces: c
				};
			}
		},
		{
			key: "loaded",
			value: function(e, t, n) {
				var r = e.split("|"), i = r[0], a = r[1];
				t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
				var o = {};
				this.queue.forEach((function(n) {
					(function(e, t, n, r) {
						var i = vE(e, t, Object), a = i.obj, o = i.k;
						a[o] = a[o] || [], a[o].push(n);
					})(n.loaded, [i], a), function(e, t) {
						for (var n = e.indexOf(t); n !== -1;) e.splice(n, 1), n = e.indexOf(t);
					}(n.pending, e), t && n.errors.push(t), n.pending.length !== 0 || n.done || (Object.keys(n.loaded).forEach((function(e) {
						o[e] || (o[e] = []), n.loaded[e].length && n.loaded[e].forEach((function(t) {
							o[e].indexOf(t) < 0 && o[e].push(t);
						}));
					})), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
				})), this.emit("loaded", o), this.queue = this.queue.filter((function(e) {
					return !e.done;
				}));
			}
		},
		{
			key: "read",
			value: function(e, t, n) {
				var r = this, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, o = arguments.length > 5 ? arguments[5] : void 0;
				return e.length ? this.backend[n](e, t, (function(s, c) {
					s && c && i < 5 ? setTimeout((function() {
						r.read.call(r, e, t, n, i + 1, 2 * a, o);
					}), a) : o(s, c);
				})) : o(null, {});
			}
		},
		{
			key: "prepareLoading",
			value: function(e, t) {
				var n = this, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0;
				if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
				typeof e == "string" && (e = this.languageUtils.toResolveHierarchy(e)), typeof t == "string" && (t = [t]);
				var a = this.queueLoad(e, t, r, i);
				if (!a.toLoad.length) return a.pending.length || i(), null;
				a.toLoad.forEach((function(e) {
					n.loadOne(e);
				}));
			}
		},
		{
			key: "load",
			value: function(e, t, n) {
				this.prepareLoading(e, t, {}, n);
			}
		},
		{
			key: "reload",
			value: function(e, t, n) {
				this.prepareLoading(e, t, { reload: !0 }, n);
			}
		},
		{
			key: "loadOne",
			value: function(e) {
				var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = e.split("|"), i = r[0], a = r[1];
				this.read(i, a, "read", void 0, void 0, (function(r, o) {
					r && t.logger.warn(`${n}loading namespace ${a} for language ${i} failed`, r), !r && o && t.logger.log(`${n}loaded namespace ${a} for language ${i}`, o), t.loaded(e, r, o);
				}));
			}
		},
		{
			key: "saveMissing",
			value: function(e, t, n, r, i) {
				var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
				this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t) ? this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!") : n != null && n !== "" && (this.backend && this.backend.create && this.backend.create(e, t, n, r, null, aE({}, a, { isUpdate: i })), e && e[0] && this.store.addResource(e[0], t, n, r));
			}
		}
	]), t;
}();
function RE() {
	return {
		debug: !1,
		initImmediate: !0,
		ns: ["translation"],
		defaultNS: ["translation"],
		fallbackLng: ["dev"],
		fallbackNS: !1,
		whitelist: !1,
		nonExplicitWhitelist: !1,
		supportedLngs: !1,
		nonExplicitSupportedLngs: !1,
		load: "all",
		preload: !1,
		simplifyPluralSuffix: !0,
		keySeparator: ".",
		nsSeparator: ":",
		pluralSeparator: "_",
		contextSeparator: "_",
		partialBundledLanguages: !1,
		saveMissing: !1,
		updateMissing: !1,
		saveMissingTo: "fallback",
		saveMissingPlurals: !0,
		missingKeyHandler: !1,
		missingInterpolationHandler: !1,
		postProcess: !1,
		postProcessPassResolved: !1,
		returnNull: !0,
		returnEmptyString: !0,
		returnObjects: !1,
		joinArrays: !1,
		returnedObjectHandler: !1,
		parseMissingKeyHandler: !1,
		appendNamespaceToMissingKey: !1,
		appendNamespaceToCIMode: !1,
		overloadTranslationOptionHandler: function(e) {
			var t = {};
			if (iE(e[1]) === "object" && (t = e[1]), typeof e[1] == "string" && (t.defaultValue = e[1]), typeof e[2] == "string" && (t.tDescription = e[2]), iE(e[2]) === "object" || iE(e[3]) === "object") {
				var n = e[3] || e[2];
				Object.keys(n).forEach((function(e) {
					t[e] = n[e];
				}));
			}
			return t;
		},
		interpolation: {
			escapeValue: !0,
			format: function(e, t, n, r) {
				return e;
			},
			prefix: "{{",
			suffix: "}}",
			formatSeparator: ",",
			unescapePrefix: "-",
			nestingPrefix: "$t(",
			nestingSuffix: ")",
			nestingOptionsSeparator: ",",
			maxReplaces: 1e3,
			skipOnVariables: !1
		}
	};
}
function zE(e) {
	return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
}
function BE() {}
var VE = new (function(e) {
	function t() {
		var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
		if (oE(this, t), e = uE(this, dE(t).call(this)), wE && hE.call(lE(e)), e.options = zE(n), e.services = {}, e.logger = mE, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
			if (!e.options.initImmediate) return e.init(n, r), uE(e, lE(e));
			setTimeout((function() {
				e.init(n, r);
			}), 0);
		}
		return e;
	}
	return pE(t, hE), cE(t, [
		{
			key: "init",
			value: function() {
				var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
				function r(e) {
					return e ? typeof e == "function" ? new e() : e : null;
				}
				if (typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = aE({}, RE(), this.options, zE(t)), this.format = this.options.interpolation.format, n ||= BE, !this.options.isClone) {
					this.modules.logger ? mE.init(r(this.modules.logger), this.options) : mE.init(null, this.options);
					var i = new jE(this.options);
					this.store = new EE(this.options.resources, this.options);
					var a = this.services;
					a.logger = mE, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new FE(i, {
						prepend: this.options.pluralSeparator,
						compatibilityJSON: this.options.compatibilityJSON,
						simplifyPluralSuffix: this.options.simplifyPluralSuffix
					}), a.interpolator = new IE(this.options), a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, a.backendConnector = new LE(r(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", (function(t) {
						var n = [...arguments].slice(1);
						e.emit.apply(e, [t].concat(n));
					})), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new kE(this.services, this.options), this.translator.on("*", (function(t) {
						var n = [...arguments].slice(1);
						e.emit.apply(e, [t].concat(n));
					})), this.modules.external.forEach((function(t) {
						t.init && t.init(e);
					}));
				}
				if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
					var o = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
					o.length > 0 && o[0] !== "dev" && (this.options.lng = o[0]);
				}
				this.services.languageDetector || this.options.lng || this.logger.warn("init: no languageDetector is used and no lng is defined"), [
					"getResource",
					"hasResourceBundle",
					"getResourceBundle",
					"getDataByLanguage"
				].forEach((function(t) {
					e[t] = function() {
						var n;
						return (n = e.store)[t].apply(n, arguments);
					};
				})), [
					"addResource",
					"addResources",
					"addResourceBundle",
					"removeResourceBundle"
				].forEach((function(t) {
					e[t] = function() {
						var n;
						return (n = e.store)[t].apply(n, arguments), e;
					};
				}));
				var s = gE(), c = function() {
					var t = function(t, r) {
						e.isInitialized && !e.initializedStoreOnce && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), s.resolve(r), n(t, r);
					};
					if (e.languages && e.options.compatibilityAPI !== "v1" && !e.isInitialized) return t(null, e.t.bind(e));
					e.changeLanguage(e.options.lng, t);
				};
				return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), s;
			}
		},
		{
			key: "loadResources",
			value: function(e) {
				var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : BE, r = typeof e == "string" ? e : this.language;
				if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
					if (r && r.toLowerCase() === "cimode") return n();
					var i = [], a = function(e) {
						e && t.services.languageUtils.toResolveHierarchy(e).forEach((function(e) {
							i.indexOf(e) < 0 && i.push(e);
						}));
					};
					r ? a(r) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e) {
						return a(e);
					})), this.options.preload && this.options.preload.forEach((function(e) {
						return a(e);
					})), this.services.backendConnector.load(i, this.options.ns, n);
				} else n(null);
			}
		},
		{
			key: "reloadResources",
			value: function(e, t, n) {
				var r = gE();
				return e ||= this.languages, t ||= this.options.ns, n ||= BE, this.services.backendConnector.reload(e, t, (function(e) {
					r.resolve(), n(e);
				})), r;
			}
		},
		{
			key: "use",
			value: function(e) {
				if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
				if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
				return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && DE.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
			}
		},
		{
			key: "changeLanguage",
			value: function(e, t) {
				var n = this;
				this.isLanguageChangingTo = e;
				var r = gE();
				this.emit("languageChanging", e);
				var i = function(i) {
					e || i || !n.services.languageDetector || (i = []);
					var a = typeof i == "string" ? i : n.services.languageUtils.getBestMatchFromCodes(i);
					a && (n.language || (n.language = a, n.languages = n.services.languageUtils.toResolveHierarchy(a)), n.translator.language || n.translator.changeLanguage(a), n.services.languageDetector && n.services.languageDetector.cacheUserLanguage(a)), n.loadResources(a, (function(e) {
						(function(e, i) {
							i ? (n.language = i, n.languages = n.services.languageUtils.toResolveHierarchy(i), n.translator.changeLanguage(i), n.isLanguageChangingTo = void 0, n.emit("languageChanged", i), n.logger.log("languageChanged", i)) : n.isLanguageChangingTo = void 0, r.resolve((function() {
								return n.t.apply(n, arguments);
							})), t && t(e, (function() {
								return n.t.apply(n, arguments);
							}));
						})(e, a);
					}));
				};
				return e || !this.services.languageDetector || this.services.languageDetector.async ? !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(i) : i(e) : i(this.services.languageDetector.detect()), r;
			}
		},
		{
			key: "getFixedT",
			value: function(e, t, n) {
				var r = this, i = function e(t, i) {
					var a;
					if (iE(i) !== "object") {
						var o = [...arguments].slice(2);
						a = r.options.overloadTranslationOptionHandler([t, i].concat(o));
					} else a = aE({}, i);
					a.lng = a.lng || e.lng, a.lngs = a.lngs || e.lngs, a.ns = a.ns || e.ns;
					var s = r.options.keySeparator || ".", c = n ? `${n}${s}${t}` : t;
					return r.t(c, a);
				};
				return typeof e == "string" ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = n, i;
			}
		},
		{
			key: "t",
			value: function() {
				var e;
				return this.translator && (e = this.translator).translate.apply(e, arguments);
			}
		},
		{
			key: "exists",
			value: function() {
				var e;
				return this.translator && (e = this.translator).exists.apply(e, arguments);
			}
		},
		{
			key: "setDefaultNamespace",
			value: function(e) {
				this.options.defaultNS = e;
			}
		},
		{
			key: "hasLoadedNamespace",
			value: function(e) {
				var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
				if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
				if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
				var r = this.languages[0], i = !!this.options && this.options.fallbackLng, a = this.languages[this.languages.length - 1];
				if (r.toLowerCase() === "cimode") return !0;
				var o = function(e, n) {
					var r = t.services.backendConnector.state[`${e}|${n}`];
					return r === -1 || r === 2;
				};
				if (n.precheck) {
					var s = n.precheck(this, o);
					if (s !== void 0) return s;
				}
				return !!this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || !(!o(r, e) || i && !o(a, e));
			}
		},
		{
			key: "loadNamespaces",
			value: function(e, t) {
				var n = this, r = gE();
				return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((function(e) {
					n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
				})), this.loadResources((function(e) {
					r.resolve(), t && t(e);
				})), r) : (t && t(), Promise.resolve());
			}
		},
		{
			key: "loadLanguages",
			value: function(e, t) {
				var n = gE();
				typeof e == "string" && (e = [e]);
				var r = this.options.preload || [], i = e.filter((function(e) {
					return r.indexOf(e) < 0;
				}));
				return i.length ? (this.options.preload = r.concat(i), this.loadResources((function(e) {
					n.resolve(), t && t(e);
				})), n) : (t && t(), Promise.resolve());
			}
		},
		{
			key: "dir",
			value: function(e) {
				return e ||= this.languages && this.languages.length > 0 ? this.languages[0] : this.language, e ? (/* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam".split(".")).indexOf(this.services.languageUtils.getLanguagePartFromCode(e)) >= 0 ? "rtl" : "ltr" : "rtl";
			}
		},
		{
			key: "createInstance",
			value: function() {
				return new t(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, arguments.length > 1 ? arguments[1] : void 0);
			}
		},
		{
			key: "cloneInstance",
			value: function() {
				var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : BE, i = aE({}, this.options, n, { isClone: !0 }), a = new t(i);
				return [
					"store",
					"services",
					"language"
				].forEach((function(t) {
					a[t] = e[t];
				})), a.services = aE({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new kE(a.services, a.options), a.translator.on("*", (function(e) {
					var t = [...arguments].slice(1);
					a.emit.apply(a, [e].concat(t));
				})), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
			}
		},
		{
			key: "toJSON",
			value: function() {
				return {
					options: this.options,
					store: this.store,
					language: this.language,
					languages: this.languages
				};
			}
		}
	]), t;
}())();
function HE(e, t) {
	VE.addResourceBundle(e, "translation", t, !0, !0);
}
VE.init({
	lng: "zh-CN",
	resources: {}
});
var q = VE.t.bind(VE);
HE("en", { editor: {
	more: "More",
	justify: "Justify",
	indent: "Indent",
	image: "Image",
	video: "Video"
} }), HE("zh-CN", { editor: {
	more: "更多",
	justify: "对齐",
	indent: "缩进",
	image: "图片",
	video: "视频"
} });
var UE = ya ? {}.toString : function() {
	return "[object " + Ca(this) + "]";
};
ya || Gi(Object.prototype, "toString", UE, { unsafe: !0 });
var WE = Array.isArray || function(e) {
	return Mr(e) == "Array";
}, GE = function() {}, KE = [], qE = Hr("Reflect", "construct"), JE = /^\s*(?:class|function)\b/, YE = kr(JE.exec), XE = !JE.exec(GE), ZE = function(e) {
	if (!zr(e)) return !1;
	try {
		return qE(GE, KE, e), !0;
	} catch {
		return !1;
	}
}, QE = !qE || _r((function() {
	var e;
	return ZE(ZE.call) || !ZE(Object) || !ZE((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!zr(e)) return !1;
	switch (Ca(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return XE || !!YE(JE, Mi(e));
} : ZE, $E = vi("species"), eD = j.Array, tD = function(e, t) {
	return new (function(e) {
		var t;
		return WE(e) && (t = e.constructor, (QE(t) && (t === eD || WE(t.prototype)) || Br(t) && (t = t[$E]) === null) && (t = void 0)), t === void 0 ? eD : t;
	}(e))(t === 0 ? 0 : t);
}, nD = kr([].push), rD = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = di(c), h = Fr(m), g = fo(l, u), _ = Zi(h), v = 0, y = d || tD, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: nD(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: nD(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, iD = {
	forEach: rD(0),
	map: rD(1),
	filter: rD(2),
	some: rD(3),
	every: rD(4),
	find: rD(5),
	findIndex: rD(6),
	filterReject: rD(7)
}.forEach, aD = function(e, t) {
	var n = [][e];
	return !!n && _r((function() {
		n.call(null, t || function() {
			throw 1;
		}, 1);
	}));
}("forEach") ? [].forEach : function(e) {
	return iD(this, e, arguments.length > 1 ? arguments[1] : void 0);
}, oD = function(e) {
	if (e && e.forEach !== aD) try {
		Oi(e, "forEach", aD);
	} catch {
		e.forEach = aD;
	}
};
for (var sD in Yo) Yo[sD] && oD(j[sD] && j[sD].prototype);
oD(Qo), HE("en", {
	common: {
		ok: "OK",
		delete: "Delete",
		enter: "Enter"
	},
	blockQuote: { title: "Quote" },
	codeBlock: { title: "Code block" },
	color: {
		color: "Font color",
		bgColor: "Back color",
		default: "Default color",
		clear: "Clear back color"
	},
	divider: { title: "Divider" },
	emotion: { title: "Emotion" },
	fontSize: {
		title: "Font size",
		default: "Default"
	},
	fontFamily: {
		title: "Font family",
		default: "Default"
	},
	fullScreen: { title: "Full screen" },
	header: {
		title: "Header",
		text: "Text"
	},
	image: {
		netImage: "Net image",
		delete: "Delete image",
		edit: "Edit image",
		viewLink: "View link",
		src: "Image src",
		desc: "Description",
		link: "Image link"
	},
	indent: {
		decrease: "Decrease",
		increase: "Increase"
	},
	justify: {
		left: "Left",
		right: "Right",
		center: "Center",
		justify: "Justify"
	},
	lineHeight: {
		title: "Line height",
		default: "Default"
	},
	link: {
		insert: "Insert link",
		text: "Link text",
		url: "Link source",
		unLink: "Unlink",
		edit: "Edit link",
		view: "View link"
	},
	textStyle: {
		bold: "Bold",
		clear: "Clear styles",
		code: "Inline code",
		italic: "Italic",
		sub: "Sub",
		sup: "Sup",
		through: "Through",
		underline: "Underline"
	},
	undo: {
		undo: "undo",
		redo: "Redo"
	},
	todo: { todo: "Todo" }
}), HE("zh-CN", {
	common: {
		ok: "确定",
		delete: "删除",
		enter: "回车"
	},
	blockQuote: { title: "引用" },
	codeBlock: { title: "代码块" },
	color: {
		color: "文字颜色",
		bgColor: "背景色",
		default: "默认颜色",
		clear: "清除背景色"
	},
	divider: { title: "分割线" },
	emotion: { title: "表情" },
	fontSize: {
		title: "字号",
		default: "默认字号"
	},
	fontFamily: {
		title: "字体",
		default: "默认字体"
	},
	fullScreen: { title: "全屏" },
	header: {
		title: "标题",
		text: "正文"
	},
	image: {
		netImage: "网络图片",
		delete: "删除图片",
		edit: "编辑图片",
		viewLink: "查看链接",
		src: "图片地址",
		desc: "图片描述",
		link: "图片链接"
	},
	indent: {
		decrease: "减少缩进",
		increase: "增加缩进"
	},
	justify: {
		left: "左对齐",
		right: "右对齐",
		center: "居中对齐",
		justify: "两端对齐"
	},
	lineHeight: {
		title: "行高",
		default: "默认行高"
	},
	link: {
		insert: "插入链接",
		text: "链接文本",
		url: "链接地址",
		unLink: "取消链接",
		edit: "修改链接",
		view: "查看链接"
	},
	textStyle: {
		bold: "粗体",
		clear: "清除格式",
		code: "行内代码",
		italic: "斜体",
		sub: "下标",
		sup: "上标",
		through: "删除线",
		underline: "下划线"
	},
	undo: {
		undo: "撤销",
		redo: "重做"
	},
	todo: { todo: "待办" }
});
var cD = {
	type: "paragraph",
	renderElem: function(e, t, n) {
		return H("p", null, t);
	}
}, lD = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function uD(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var dD, fD, pD = function(e) {
	return e && e.Math == Math && e;
}, J = pD(typeof globalThis == "object" && globalThis) || pD(typeof window == "object" && window) || pD(typeof self == "object" && self) || pD(typeof lD == "object" && lD) || function() {
	return this;
}() || Function("return this")(), mD = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, hD = !mD((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), gD = Function.prototype.call, _D = gD.bind ? gD.bind(gD) : function() {
	return gD.apply(gD, arguments);
}, vD = {}.propertyIsEnumerable, yD = Object.getOwnPropertyDescriptor, bD = { f: yD && !vD.call({ 1: 2 }, 1) ? function(e) {
	var t = yD(this, e);
	return !!t && t.enumerable;
} : vD }, xD = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, SD = Function.prototype, CD = SD.bind, wD = SD.call, TD = CD && CD.bind(wD), Y = CD ? function(e) {
	return e && TD(wD, e);
} : function(e) {
	return e && function() {
		return wD.apply(e, arguments);
	};
}, ED = Y({}.toString), DD = Y("".slice), OD = function(e) {
	return DD(ED(e), 8, -1);
}, kD = J.Object, AD = Y("".split), jD = mD((function() {
	return !kD("z").propertyIsEnumerable(0);
})) ? function(e) {
	return OD(e) == "String" ? AD(e, "") : kD(e);
} : kD, MD = J.TypeError, ND = function(e) {
	if (e == null) throw MD("Can't call method on " + e);
	return e;
}, PD = function(e) {
	return jD(ND(e));
}, FD = function(e) {
	return typeof e == "function";
}, ID = function(e) {
	return typeof e == "object" ? e !== null : FD(e);
}, LD = function(e) {
	return FD(e) ? e : void 0;
}, RD = function(e, t) {
	return arguments.length < 2 ? LD(J[e]) : J[e] && J[e][t];
}, zD = Y({}.isPrototypeOf), BD = RD("navigator", "userAgent") || "", VD = J.process, HD = J.Deno, UD = VD && VD.versions || HD && HD.version, WD = UD && UD.v8;
WD && (fD = (dD = WD.split("."))[0] > 0 && dD[0] < 4 ? 1 : +(dD[0] + dD[1])), !fD && BD && (!(dD = BD.match(/Edge\/(\d+)/)) || dD[1] >= 74) && (dD = BD.match(/Chrome\/(\d+)/)) && (fD = +dD[1]);
var GD = fD, KD = !!Object.getOwnPropertySymbols && !mD((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && GD && GD < 41;
})), qD = KD && !Symbol.sham && typeof Symbol.iterator == "symbol", JD = J.Object, YD = qD ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = RD("Symbol");
	return FD(t) && zD(t.prototype, JD(e));
}, XD = J.String, ZD = function(e) {
	try {
		return XD(e);
	} catch {
		return "Object";
	}
}, QD = J.TypeError, $D = function(e) {
	if (FD(e)) return e;
	throw QD(ZD(e) + " is not a function");
}, eO = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : $D(n);
}, tO = J.TypeError, nO = Object.defineProperty, rO = function(e, t) {
	try {
		nO(J, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		J[e] = t;
	}
	return t;
}, iO = J["__core-js_shared__"] || rO("__core-js_shared__", {}), aO = uD((function(e) {
	(e.exports = function(e, t) {
		return iO[e] || (iO[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), koe = J.Object, oO = function(e) {
	return koe(ND(e));
}, Aoe = Y({}.hasOwnProperty), sO = Object.hasOwn || function(e, t) {
	return Aoe(oO(e), t);
}, joe = 0, Moe = Math.random(), Noe = Y(1 .toString), cO = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + Noe(++joe + Moe, 36);
}, lO = aO("wks"), uO = J.Symbol, dO = uO && uO.for, Poe = qD ? uO : uO && uO.withoutSetter || cO, fO = function(e) {
	if (!sO(lO, e) || !KD && typeof lO[e] != "string") {
		var t = "Symbol." + e;
		KD && sO(uO, e) ? lO[e] = uO[e] : lO[e] = qD && dO ? dO(t) : Poe(t);
	}
	return lO[e];
}, Foe = J.TypeError, Ioe = fO("toPrimitive"), pO = function(e) {
	var t = function(e, t) {
		if (!ID(e) || YD(e)) return e;
		var n, r = eO(e, Ioe);
		if (r) {
			if (t === void 0 && (t = "default"), n = _D(r, e, t), !ID(n) || YD(n)) return n;
			throw Foe("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && FD(n = e.toString) && !ID(r = _D(n, e)) || FD(n = e.valueOf) && !ID(r = _D(n, e)) || t !== "string" && FD(n = e.toString) && !ID(r = _D(n, e))) return r;
			throw tO("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return YD(t) ? t : t + "";
}, mO = J.document, Loe = ID(mO) && ID(mO.createElement), hO = function(e) {
	return Loe ? mO.createElement(e) : {};
}, gO = !hD && !mD((function() {
	return Object.defineProperty(hO("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), _O = Object.getOwnPropertyDescriptor, vO = { f: hD ? _O : function(e, t) {
	if (e = PD(e), t = pO(t), gO) try {
		return _O(e, t);
	} catch {}
	if (sO(e, t)) return xD(!_D(bD.f, e, t), e[t]);
} }, Roe = J.String, zoe = J.TypeError, yO = function(e) {
	if (ID(e)) return e;
	throw zoe(Roe(e) + " is not an object");
}, Boe = J.TypeError, bO = Object.defineProperty, xO = { f: hD ? bO : function(e, t, n) {
	if (yO(e), t = pO(t), yO(n), gO) try {
		return bO(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw Boe("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, SO = hD ? function(e, t, n) {
	return xO.f(e, t, xD(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, Voe = Y(Function.toString);
FD(iO.inspectSource) || (iO.inspectSource = function(e) {
	return Voe(e);
});
var CO, wO, TO, EO = iO.inspectSource, DO = J.WeakMap, Hoe = FD(DO) && /native code/.test(EO(DO)), OO = aO("keys"), kO = function(e) {
	return OO[e] || (OO[e] = cO(e));
}, AO = {}, jO = J.TypeError, Uoe = J.WeakMap;
if (Hoe || iO.state) {
	var MO = iO.state ||= new Uoe(), Woe = Y(MO.get), NO = Y(MO.has), Goe = Y(MO.set);
	CO = function(e, t) {
		if (NO(MO, e)) throw new jO("Object already initialized");
		return t.facade = e, Goe(MO, e, t), t;
	}, wO = function(e) {
		return Woe(MO, e) || {};
	}, TO = function(e) {
		return NO(MO, e);
	};
} else {
	var PO = kO("state");
	AO[PO] = !0, CO = function(e, t) {
		if (sO(e, PO)) throw new jO("Object already initialized");
		return t.facade = e, SO(e, PO, t), t;
	}, wO = function(e) {
		return sO(e, PO) ? e[PO] : {};
	}, TO = function(e) {
		return sO(e, PO);
	};
}
var FO = {
	set: CO,
	get: wO,
	has: TO,
	enforce: function(e) {
		return TO(e) ? wO(e) : CO(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!ID(t) || (n = wO(t)).type !== e) throw jO("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, IO = Function.prototype, Koe = hD && Object.getOwnPropertyDescriptor, LO = sO(IO, "name"), RO = {
	EXISTS: LO,
	PROPER: LO && function() {}.name === "something",
	CONFIGURABLE: LO && (!hD || hD && Koe(IO, "name").configurable)
}, zO = uD((function(e) {
	var t = RO.CONFIGURABLE, n = FO.get, r = FO.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		FD(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!sO(a, "name") || t && a.name !== d) && SO(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === J ? l ? e[n] = a : rO(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : SO(e, n, a));
	})(Function.prototype, "toString", (function() {
		return FD(this) && n(this).source || EO(this);
	}));
})), qoe = Math.ceil, Joe = Math.floor, BO = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? Joe : qoe)(t);
}, Yoe = Math.max, Xoe = Math.min, VO = function(e, t) {
	var n = BO(e);
	return n < 0 ? Yoe(n + t, 0) : Xoe(n, t);
}, Zoe = Math.min, HO = function(e) {
	return e > 0 ? Zoe(BO(e), 9007199254740991) : 0;
}, UO = function(e) {
	return HO(e.length);
}, WO = function(e) {
	return function(t, n, r) {
		var i, a = PD(t), o = UO(a), s = VO(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}, GO = {
	includes: WO(!0),
	indexOf: WO(!1)
}, Qoe = GO.indexOf, KO = Y([].push), qO = function(e, t) {
	var n, r = PD(e), i = 0, a = [];
	for (n in r) !sO(AO, n) && sO(r, n) && KO(a, n);
	for (; t.length > i;) sO(r, n = t[i++]) && (~Qoe(a, n) || KO(a, n));
	return a;
}, JO = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], $oe = JO.concat("length", "prototype"), ese = { f: Object.getOwnPropertyNames || function(e) {
	return qO(e, $oe);
} }, YO = { f: Object.getOwnPropertySymbols }, tse = Y([].concat), nse = RD("Reflect", "ownKeys") || function(e) {
	var t = ese.f(yO(e)), n = YO.f;
	return n ? tse(t, n(e)) : t;
}, rse = function(e, t) {
	for (var n = nse(t), r = xO.f, i = vO.f, a = 0; a < n.length; a++) {
		var o = n[a];
		sO(e, o) || r(e, o, i(t, o));
	}
}, ise = /#|\.prototype\./, XO = function(e, t) {
	var n = ose[ase(e)];
	return n == cse || n != sse && (FD(t) ? mD(t) : !!t);
}, ase = XO.normalize = function(e) {
	return String(e).replace(ise, ".").toLowerCase();
}, ose = XO.data = {}, sse = XO.NATIVE = "N", cse = XO.POLYFILL = "P", lse = XO, use = vO.f, ZO = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? J : l ? J[s] || rO(s, {}) : (J[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = use(n, r)) && o.value : n[r], !lse(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			rse(a, i);
		}
		(e.sham || i && i.sham) && SO(a, "sham", !0), zO(n, r, a, e);
	}
}, QO = Y(Y.bind), $O = Array.isArray || function(e) {
	return OD(e) == "Array";
}, ek = {};
ek[fO("toStringTag")] = "z";
var tk = String(ek) === "[object z]", dse = fO("toStringTag"), fse = J.Object, pse = OD(function() {
	return arguments;
}()) == "Arguments", nk = tk ? OD : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = fse(e), dse)) == "string" ? n : pse ? OD(t) : (r = OD(t)) == "Object" && FD(t.callee) ? "Arguments" : r;
}, rk = function() {}, mse = [], ik = RD("Reflect", "construct"), ak = /^\s*(?:class|function)\b/, hse = Y(ak.exec), gse = !ak.exec(rk), ok = function(e) {
	if (!FD(e)) return !1;
	try {
		return ik(rk, mse, e), !0;
	} catch {
		return !1;
	}
}, sk = !ik || mD((function() {
	var e;
	return ok(ok.call) || !ok(Object) || !ok((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!FD(e)) return !1;
	switch (nk(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return gse || !!hse(ak, EO(e));
} : ok, _se = fO("species"), ck = J.Array, vse = function(e, t) {
	return new (function(e) {
		var t;
		return $O(e) && (t = e.constructor, (sk(t) && (t === ck || $O(t.prototype)) || ID(t) && (t = t[_se]) === null) && (t = void 0)), t === void 0 ? ck : t;
	}(e))(t === 0 ? 0 : t);
}, lk = Y([].push), uk = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = oO(c), h = jD(m), g = function(e, t) {
			return $D(e), t === void 0 ? e : QO ? QO(e, t) : function() {
				return e.apply(t, arguments);
			};
		}(l, u), _ = UO(h), v = 0, y = d || vse, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: lk(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: lk(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, dk = {
	forEach: uk(0),
	map: uk(1),
	filter: uk(2),
	some: uk(3),
	every: uk(4),
	find: uk(5),
	findIndex: uk(6),
	filterReject: uk(7)
}, yse = fO("species"), fk = function(e) {
	return GD >= 51 || !mD((function() {
		var t = [];
		return (t.constructor = {})[yse] = function() {
			return { foo: 1 };
		}, t[e](Boolean).foo !== 1;
	}));
}, bse = dk.filter;
ZO({
	target: "Array",
	proto: !0,
	forced: !fk("filter")
}, { filter: function(e) {
	return bse(this, e, arguments.length > 1 ? arguments[1] : void 0);
} });
var xse = tk ? {}.toString : function() {
	return "[object " + nk(this) + "]";
};
tk || zO(Object.prototype, "toString", xse, { unsafe: !0 });
var pk, Sse = J.String, mk = function(e) {
	if (nk(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return Sse(e);
}, hk = function() {
	var e = yO(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, gk = J.RegExp, _k = mD((function() {
	var e = gk("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), Cse = _k || mD((function() {
	return !gk("a", "y").sticky;
})), vk = {
	BROKEN_CARET: _k || mD((function() {
		var e = gk("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: Cse,
	UNSUPPORTED_Y: _k
}, yk = Object.keys || function(e) {
	return qO(e, JO);
}, wse = hD ? Object.defineProperties : function(e, t) {
	yO(e);
	for (var n, r = PD(t), i = yk(t), a = i.length, o = 0; a > o;) xO.f(e, n = i[o++], r[n]);
	return e;
}, bk = RD("document", "documentElement"), xk = kO("IE_PROTO"), Sk = function() {}, Ck = function(e) {
	return "<script>" + e + "<\/script>";
}, wk = function(e) {
	e.write(Ck("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, Tk = function() {
	try {
		pk = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	Tk = typeof document < "u" ? document.domain && pk ? wk(pk) : ((t = hO("iframe")).style.display = "none", bk.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(Ck("document.F=Object")), e.close(), e.F) : wk(pk);
	for (var n = JO.length; n--;) delete Tk.prototype[JO[n]];
	return Tk();
};
AO[xk] = !0;
var Ek, Dk, Ok = Object.create || function(e, t) {
	var n;
	return e === null ? n = Tk() : (Sk.prototype = yO(e), n = new Sk(), Sk.prototype = null, n[xk] = e), t === void 0 ? n : wse(n, t);
}, kk = J.RegExp, Ak = mD((function() {
	var e = kk(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), jk = J.RegExp, Mk = mD((function() {
	var e = jk("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), Nk = FO.get, Pk = aO("native-string-replace", String.prototype.replace), Fk = RegExp.prototype.exec, Ik = Fk, Lk = Y("".charAt), Rk = Y("".indexOf), zk = Y("".replace), Bk = Y("".slice), Vk = (Dk = /b*/g, _D(Fk, Ek = /a/, "a"), _D(Fk, Dk, "a"), Ek.lastIndex !== 0 || Dk.lastIndex !== 0), Hk = vk.BROKEN_CARET, Uk = /()??/.exec("")[1] !== void 0;
(Vk || Uk || Hk || Ak || Mk) && (Ik = function(e) {
	var t, n, r, i, a, o, s, c = this, l = Nk(c), u = mk(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = _D(Ik, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = Hk && c.sticky, m = _D(hk, c), h = c.source, g = 0, _ = u;
	if (p && (m = zk(m, "y", ""), Rk(m, "g") === -1 && (m += "g"), _ = Bk(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && Lk(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), Uk && (n = RegExp("^" + h + "$(?!\\s)", m)), Vk && (r = c.lastIndex), i = _D(Fk, p ? n : c, _), p ? i ? (i.input = Bk(i.input, g), i[0] = Bk(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : Vk && i && (c.lastIndex = c.global ? i.index + i[0].length : r), Uk && i && i.length > 1 && _D(Pk, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = Ok(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var Wk = Ik;
ZO({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== Wk
}, { exec: Wk });
var Gk = Function.prototype, Kk = Gk.apply, qk = Gk.bind, Jk = Gk.call, Yk = typeof Reflect == "object" && Reflect.apply || (qk ? Jk.bind(Kk) : function() {
	return Jk.apply(Kk, arguments);
}), Xk = fO("species"), Zk = RegExp.prototype, Qk = function(e, t, n, r) {
	var i = fO(e), a = !mD((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !mD((function() {
		var t = !1, n = /a/;
		return e === "split" && ((n = {}).constructor = {}, n.constructor[Xk] = function() {
			return n;
		}, n.flags = "", n[i] = /./[i]), n.exec = function() {
			return t = !0, null;
		}, n[i](""), !t;
	}));
	if (!a || !o || n) {
		var s = Y(/./[i]), c = t(i, ""[e], (function(e, t, n, r, i) {
			var o = Y(e), c = t.exec;
			return c === Wk || c === Zk.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		zO(String.prototype, e, c[0]), zO(Zk, i, c[1]);
	}
	r && SO(Zk[i], "sham", !0);
}, $k = Y("".charAt), eA = Y("".charCodeAt), tA = Y("".slice), nA = function(e) {
	return function(t, n) {
		var r, i, a = mk(ND(t)), o = BO(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = eA(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = eA(a, o + 1)) < 56320 || i > 57343 ? e ? $k(a, o) : r : e ? tA(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}(!0), rA = function(e, t, n) {
	return t + (n ? nA(e, t).length : 1);
}, iA = Math.floor, aA = Y("".charAt), oA = Y("".replace), sA = Y("".slice), cA = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, lA = /\$([$&'`]|\d{1,2})/g, uA = function(e, t, n, r, i, a) {
	var o = n + e.length, s = r.length, c = lA;
	return i !== void 0 && (i = oO(i), c = cA), oA(a, c, (function(a, c) {
		var l;
		switch (aA(c, 0)) {
			case "$": return "$";
			case "&": return e;
			case "`": return sA(t, 0, n);
			case "'": return sA(t, o);
			case "<":
				l = i[sA(c, 1, -1)];
				break;
			default:
				var u = +c;
				if (u === 0) return a;
				if (u > s) {
					var d = iA(u / 10);
					return d === 0 ? a : d <= s ? r[d - 1] === void 0 ? aA(c, 1) : r[d - 1] + aA(c, 1) : a;
				}
				l = r[u - 1];
		}
		return l === void 0 ? "" : l;
	}));
}, dA = J.TypeError, fA = function(e, t) {
	var n = e.exec;
	if (FD(n)) {
		var r = _D(n, e, t);
		return r !== null && yO(r), r;
	}
	if (OD(e) === "RegExp") return _D(Wk, e, t);
	throw dA("RegExp#exec called on incompatible receiver");
}, pA = fO("replace"), mA = Math.max, hA = Math.min, gA = Y([].concat), _A = Y([].push), vA = Y("".indexOf), yA = Y("".slice), bA = "a".replace(/./, "$0") === "$0", xA = !!/./[pA] && /./[pA]("a", "$0") === "";
Qk("replace", (function(e, t, n) {
	var r = xA ? "$" : "$0";
	return [function(e, n) {
		var r = ND(this), i = e == null ? void 0 : eO(e, pA);
		return i ? _D(i, e, r, n) : _D(t, mk(r), e, n);
	}, function(e, i) {
		var a = yO(this), o = mk(e);
		if (typeof i == "string" && vA(i, r) === -1 && vA(i, "$<") === -1) {
			var s = n(t, a, o, i);
			if (s.done) return s.value;
		}
		var c = FD(i);
		c || (i = mk(i));
		var l = a.global;
		if (l) {
			var u = a.unicode;
			a.lastIndex = 0;
		}
		for (var d = [];;) {
			var f = fA(a, o);
			if (f === null || (_A(d, f), !l)) break;
			mk(f[0]) === "" && (a.lastIndex = rA(o, HO(a.lastIndex), u));
		}
		for (var p, m = "", h = 0, g = 0; g < d.length; g++) {
			for (var _ = mk((f = d[g])[0]), v = mA(hA(BO(f.index), o.length), 0), y = [], b = 1; b < f.length; b++) _A(y, (p = f[b]) === void 0 ? p : String(p));
			var x = f.groups;
			if (c) {
				var S = gA([_], y, v, o);
				x !== void 0 && _A(S, x);
				var C = mk(Yk(i, void 0, S));
			} else C = uA(_, o, v, y, x, i);
			v >= h && (m += yA(o, h, v) + C, h = v + _.length);
		}
		return m + yA(o, h);
	}];
}), !!mD((function() {
	var e = /./;
	return e.exec = function() {
		var e = [];
		return e.groups = { a: "7" }, e;
	}, "".replace(e, "$<a>") !== "7";
})) || !bA || xA);
var SA = fO("unscopables"), CA = Array.prototype;
CA[SA] ?? xO.f(CA, SA, {
	configurable: !0,
	value: Ok(null)
});
var wA = function(e) {
	CA[SA][e] = !0;
}, TA = dk.find, EA = !0;
"find" in [] && [,].find((function() {
	EA = !1;
})), ZO({
	target: "Array",
	proto: !0,
	forced: EA
}, { find: function(e) {
	return TA(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), wA("find");
var DA = fO("match"), OA = function(e) {
	var t;
	return ID(e) && ((t = e[DA]) === void 0 ? OD(e) == "RegExp" : !!t);
}, kA = J.TypeError, AA = fO("species"), jA = function(e, t, n) {
	var r = pO(t);
	r in e ? xO.f(e, r, xD(0, n)) : e[r] = n;
}, MA = J.Array, NA = Math.max, PA = function(e, t, n) {
	for (var r = UO(e), i = VO(t, r), a = VO(n === void 0 ? r : n, r), o = MA(NA(a - i, 0)), s = 0; i < a; i++, s++) jA(o, s, e[i]);
	return o.length = s, o;
}, FA = vk.UNSUPPORTED_Y, IA = Math.min, LA = [].push, RA = Y(/./.exec), zA = Y(LA), BA = Y("".slice);
Qk("split", (function(e, t, n) {
	var r;
	return r = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(e, n) {
		var r = mk(ND(this)), i = n === void 0 ? 4294967295 : n >>> 0;
		if (i === 0) return [];
		if (e === void 0) return [r];
		if (!OA(e)) return _D(t, r, e, i);
		for (var a, o, s, c = [], l = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), u = 0, d = new RegExp(e.source, l + "g"); (a = _D(Wk, d, r)) && !((o = d.lastIndex) > u && (zA(c, BA(r, u, a.index)), a.length > 1 && a.index < r.length && Yk(LA, c, PA(a, 1)), s = a[0].length, u = o, c.length >= i));) d.lastIndex === a.index && d.lastIndex++;
		return u === r.length ? !s && RA(d, "") || zA(c, "") : zA(c, BA(r, u)), c.length > i ? PA(c, 0, i) : c;
	} : "0".split(void 0, 0).length ? function(e, n) {
		return e === void 0 && n === 0 ? [] : _D(t, this, e, n);
	} : t, [function(t, n) {
		var i = ND(this), a = t == null ? void 0 : eO(t, e);
		return a ? _D(a, t, i, n) : _D(r, mk(i), t, n);
	}, function(e, i) {
		var a = yO(this), o = mk(e), s = n(r, a, o, i, r !== t);
		if (s.done) return s.value;
		var c = function(e, t) {
			var n, r = yO(e).constructor;
			return r === void 0 || (n = yO(r)[AA]) == null ? t : function(e) {
				if (sk(e)) return e;
				throw kA(ZD(e) + " is not a constructor");
			}(n);
		}(a, RegExp), l = a.unicode, u = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (FA ? "g" : "y"), d = new c(FA ? "^(?:" + a.source + ")" : a, u), f = i === void 0 ? 4294967295 : i >>> 0;
		if (f === 0) return [];
		if (o.length === 0) return fA(d, o) === null ? [o] : [];
		for (var p = 0, m = 0, h = []; m < o.length;) {
			d.lastIndex = FA ? 0 : m;
			var g, _ = fA(d, FA ? BA(o, m) : o);
			if (_ === null || (g = IA(HO(d.lastIndex + (FA ? m : 0)), o.length)) === p) m = rA(o, m, l);
			else {
				if (zA(h, BA(o, p, m)), h.length === f) return h;
				for (var v = 1; v <= _.length - 1; v++) if (zA(h, _[v]), h.length === f) return h;
				m = p = g;
			}
		}
		return zA(h, BA(o, p)), h;
	}];
}), !!mD((function() {
	var e = /(?:)/, t = e.exec;
	e.exec = function() {
		return t.apply(this, arguments);
	};
	var n = "ab".split(e);
	return n.length !== 2 || n[0] !== "a" || n[1] !== "b";
})), FA);
var VA = "	\n\v\f\r \xA0               \u2028\u2029", HA = Y("".replace), UA = "[" + VA + "]", WA = RegExp("^" + UA + UA + "*"), GA = RegExp(UA + UA + "*$"), KA = function(e) {
	return function(t) {
		var n = mk(ND(t));
		return 1 & e && (n = HA(n, WA, "")), 2 & e && (n = HA(n, GA, "")), n;
	};
}, qA = {
	start: KA(1),
	end: KA(2),
	trim: KA(3)
}, JA = RO.PROPER, YA = qA.trim;
function XA(e) {
	return V("<div>" + e + "</div>").children().filter((function(e) {
		return e.tagName !== "BR";
	})).length === 0;
}
function ZA(e) {
	return e.length === 0 ? "" : e[0].outerHTML;
}
function QA(e) {
	return e.length ? e[0].tagName.toLowerCase() : "";
}
function $A(e, t) {
	for (var n = "", r = (e.attr("style") || "").split(";"), i = r.length, a = 0; a < i; a++) {
		var o = r[a];
		if (o) {
			var s = o.split(":");
			s[0].trim() === t && (n = s[1].trim());
		}
	}
	return n;
}
ZO({
	target: "String",
	proto: !0,
	forced: mD((function() {
		return !!VA.trim() || JA && VA.trim.name !== "trim";
	}))
}, { trim: function() {
	return YA(this);
} }), ZO({ global: !0 }, { globalThis: J }), ud && (V.fn.css = ud), gd && (V.fn.append = gd), _d && (V.fn.prepend = _d), Xu && (V.fn.addClass = Xu), Zu && (V.fn.removeClass = Zu), Qu && (V.fn.hasClass = Qu), rd && (V.fn.on = rd), id && (V.fn.off = id), Dd && (V.fn.focus = Dd), $u && (V.fn.attr = $u), ed && (V.fn.removeAttr = ed), cd && (V.fn.hide = cd), ld && (V.fn.show = ld), yd && (V.fn.parents = yd), td && (V.fn.dataset = td), nd && (V.fn.val = nd), md && (V.fn.text = md), pd && (V.fn.html = pd), xd && (V.fn.children = xd), Sd && (V.fn.remove = Sd), bd && (V.fn.find = bd), ad && (V.fn.width = ad), od && (V.fn.height = od), fd && (V.fn.filter = fd), Cd && (V.fn.empty = Cd);
var ej = {
	selector: "p:not([data-w-e-type])",
	parseElemHtml: function(e, t, n) {
		var r = V(e);
		return (t = t.filter((function(e) {
			return !!z.isText(e) || !!n.isInline(e);
		}))).length === 0 && (t = [{ text: r.text().replace(/\s+/gm, " ") }]), {
			type: "paragraph",
			children: t
		};
	}
}, tj = function(e, t) {
	return tj = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
		e.__proto__ = t;
	} || function(e, t) {
		for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
	}, tj(e, t);
};
function nj(e, t) {
	if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
	function n() {
		this.constructor = e;
	}
	tj(e, t), e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
var rj = function() {
	return rj = Object.assign || function(e) {
		for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
		return e;
	}, rj.apply(this, arguments);
};
function ij(e, t, n, r) {
	return new (n ||= Promise)((function(i, a) {
		function o(e) {
			try {
				c(r.next(e));
			} catch (e) {
				a(e);
			}
		}
		function s(e) {
			try {
				c(r.throw(e));
			} catch (e) {
				a(e);
			}
		}
		function c(e) {
			var t;
			e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
				e(t);
			}))).then(o, s);
		}
		c((r = r.apply(e, t || [])).next());
	}));
}
function aj(e, t) {
	var n, r, i, a, o = {
		label: 0,
		sent: function() {
			if (1 & i[0]) throw i[1];
			return i[1];
		},
		trys: [],
		ops: []
	};
	return a = {
		next: s(0),
		throw: s(1),
		return: s(2)
	}, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
		return this;
	}), a;
	function s(a) {
		return function(s) {
			return function(a) {
				if (n) throw TypeError("Generator is already executing.");
				for (; o;) try {
					if (n = 1, r && (i = 2 & a[0] ? r.return : a[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, a[1])).done) return i;
					switch (r = 0, i && (a = [2 & a[0], i.value]), a[0]) {
						case 0:
						case 1:
							i = a;
							break;
						case 4: return o.label++, {
							value: a[1],
							done: !1
						};
						case 5:
							o.label++, r = a[1], a = [0];
							continue;
						case 7:
							a = o.ops.pop(), o.trys.pop();
							continue;
						default:
							if (!((i = (i = o.trys).length > 0 && i[i.length - 1]) || a[0] !== 6 && a[0] !== 2)) {
								o = 0;
								continue;
							}
							if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
								o.label = a[1];
								break;
							}
							if (a[0] === 6 && o.label < i[1]) {
								o.label = i[1], i = a;
								break;
							}
							if (i && o.label < i[2]) {
								o.label = i[2], o.ops.push(a);
								break;
							}
							i[2] && o.ops.pop(), o.trys.pop();
							continue;
					}
					a = t.call(e, o);
				} catch (e) {
					a = [6, e], r = 0;
				} finally {
					n = i = 0;
				}
				if (5 & a[0]) throw a[1];
				return {
					value: a[0] ? a[1] : void 0,
					done: !0
				};
			}([a, s]);
		};
	}
}
function oj(e) {
	var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
	if (n) return n.call(e);
	if (e && typeof e.length == "number") return { next: function() {
		return e && r >= e.length && (e = void 0), {
			value: e && e[r++],
			done: !e
		};
	} };
	throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function sj(e, t) {
	var n = typeof Symbol == "function" && e[Symbol.iterator];
	if (!n) return e;
	var r, i, a = n.call(e), o = [];
	try {
		for (; (t === void 0 || t-- > 0) && !(r = a.next()).done;) o.push(r.value);
	} catch (e) {
		i = { error: e };
	} finally {
		try {
			r && !r.done && (n = a.return) && n.call(a);
		} finally {
			if (i) throw i.error;
		}
	}
	return o;
}
function cj(e) {
	var t = sj(P.nodes(e, {
		match: function(t) {
			return e.children[0] === t;
		},
		mode: "highest"
	}), 1)[0];
	if (t == null) return !1;
	var n = t[0];
	if (!N.isElement(n) || n.type === "paragraph" || F.string(n) !== "") return !1;
	var r = n.children, i = r === void 0 ? [] : r;
	return !!z.isText(i[0]) && (B.setNodes(e, { type: "paragraph" }), !0);
}
var lj = {
	renderElems: [cD],
	elemsToHtml: [{
		type: "paragraph",
		elemToHtml: function(e, t) {
			return t === "" ? "<p><br></p>" : "<p>" + t + "</p>";
		}
	}],
	parseElemsHtml: [ej],
	editorPlugin: function(e) {
		var t = e.deleteBackward, n = e.deleteForward;
		e.insertText, e.insertBreak;
		var r = e;
		return r.deleteBackward = function(e) {
			cj(r) || t(e);
		}, r.deleteForward = function(e) {
			cj(r) || n(e);
		}, r;
	}
}, uj = /"/g, dj = Y("".replace), fj = function(e, t, n, r) {
	var i = mk(ND(e)), a = "<" + t;
	return n !== "" && (a += " " + n + "=\"" + dj(mk(r), uj, "&quot;") + "\""), a + ">" + i + "</" + t + ">";
}, pj = function(e) {
	return mD((function() {
		var t = ""[e]("\"");
		return t !== t.toLowerCase() || t.split("\"").length > 3;
	}));
};
function mj(e, t) {
	var n = t, r = e, i = r.bold, a = r.italic, o = r.underline;
	return i && (n = "<strong>" + n + "</strong>"), r.code && (n = "<code>" + n + "</code>"), a && (n = "<em>" + n + "</em>"), o && (n = "<u>" + n + "</u>"), r.through && (n = "<s>" + n + "</s>"), r.sub && (n = "<sub>" + n + "</sub>"), r.sup && (n = "<sup>" + n + "</sup>"), n;
}
function hj(e, t) {
	return e.length !== 0 && (!!e[0].matches(t) || e.find(t).length > 0);
}
ZO({
	target: "String",
	proto: !0,
	forced: pj("bold")
}, { bold: function() {
	return fj(this, "b", "", "");
} }), ZO({
	target: "String",
	proto: !0,
	forced: pj("italics")
}, { italics: function() {
	return fj(this, "i", "", "");
} }), ZO({
	target: "String",
	proto: !0,
	forced: pj("sub")
}, { sub: function() {
	return fj(this, "sub", "", "");
} }), ZO({
	target: "String",
	proto: !0,
	forced: pj("sup")
}, { sup: function() {
	return fj(this, "sup", "", "");
} });
var gj = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, _j = hO("span").classList, vj = _j && _j.constructor && _j.constructor.prototype, yj = vj === Object.prototype ? void 0 : vj, bj = function(e, t) {
	var n = [][e];
	return !!n && mD((function() {
		n.call(null, t || function() {
			throw 1;
		}, 1);
	}));
}, xj = dk.forEach, Sj = bj("forEach") ? [].forEach : function(e) {
	return xj(this, e, arguments.length > 1 ? arguments[1] : void 0);
}, Cj = function(e) {
	if (e && e.forEach !== Sj) try {
		SO(e, "forEach", Sj);
	} catch {
		e.forEach = Sj;
	}
};
for (var wj in gj) gj[wj] && Cj(J[wj] && J[wj].prototype);
function Tj(e, t) {
	return e.selection == null || !!sj(P.nodes(e, {
		match: function(t) {
			return K.getNodeType(t) === "pre" || !!P.isVoid(e, t);
		},
		universal: !0
	}), 1)[0];
}
function Ej(e, t) {
	Object.keys(t).forEach((function(t) {
		t !== "text" && P.removeMark(e, t);
	}));
}
Cj(yj), ZO({
	target: "Object",
	stat: !0,
	forced: mD((function() {
		yk(1);
	}))
}, { keys: function(e) {
	return yk(oO(e));
} });
var Dj = function() {
	function e() {
		this.marksNeedToRemove = [], this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		var t = this.mark, n = P.marks(e);
		return n ? n[t] : !!sj(P.nodes(e, { match: function(e) {
			return !0 === e[t];
		} }), 1)[0];
	}, e.prototype.isActive = function(e) {
		return !!this.getValue(e);
	}, e.prototype.isDisabled = function(e) {
		return Tj(e, this.mark);
	}, e.prototype.exec = function(e, t) {
		var n = this.mark, r = this.marksNeedToRemove;
		t ? e.removeMark(n) : (e.addMark(n, !0), r && r.forEach((function(t) {
			return e.removeMark(t);
		})));
	}, e;
}(), Oj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z\"></path></svg>", kj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z\"></path></svg>", Aj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z\"></path></svg>", jj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z\"></path></svg>", Mj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z\"></path></svg>", Nj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z\"></path></svg>", Pj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z\" p-id=\"10909\"></path><path d=\"M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z\" p-id=\"10910\"></path><path d=\"M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z\"></path></svg>", Fj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z\"></path></svg>", Ij = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z\"></path></svg>", Lj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z\"></path></svg>", Rj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z\"></path></svg>", zj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z\"></path></svg>", Bj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z\"></path></svg>", Vj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z\"></path></svg>", Hj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z\"></path></svg>", Uj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z\"></path></svg>", Wj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z\"></path></svg>", Gj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z\"></path></svg>", Kj = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z\"></path></svg>", qj = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.mark = "bold", t.title = q("textStyle.bold"), t.iconSvg = Oj, t.hotkey = "mod+b", t;
	}
	return nj(t, e), t;
}(Dj), Jj = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.mark = "code", t.title = q("textStyle.code"), t.iconSvg = Mj, t.hotkey = "mod+e", t;
	}
	return nj(t, e), t;
}(Dj), Yj = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.mark = "italic", t.title = q("textStyle.italic"), t.iconSvg = Aj, t.hotkey = "mod+i", t;
	}
	return nj(t, e), t;
}(Dj), Xj = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.mark = "through", t.title = q("textStyle.through"), t.iconSvg = jj, t.hotkey = "mod+shift+x", t;
	}
	return nj(t, e), t;
}(Dj), Zj = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.mark = "underline", t.title = q("textStyle.underline"), t.iconSvg = kj, t.hotkey = "mod+u", t;
	}
	return nj(t, e), t;
}(Dj), Qj = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.mark = "sub", t.marksNeedToRemove = ["sup"], t.title = q("textStyle.sub"), t.iconSvg = Kj, t.hotkey = "", t;
	}
	return nj(t, e), t;
}(Dj), $j = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.mark = "sup", t.marksNeedToRemove = ["sub"], t.title = q("textStyle.sup"), t.iconSvg = Gj, t.hotkey = "", t;
	}
	return nj(t, e), t;
}(Dj), eM = function() {
	function e() {
		this.title = q("textStyle.clear"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return Tj(e);
	}, e.prototype.exec = function(e, t) {
		var n, r, i = P.nodes(e, {
			match: function(e) {
				return z.isText(e);
			},
			universal: !0
		});
		try {
			for (var a = oj(i), o = a.next(); !o.done; o = a.next()) Ej(e, o.value[0]);
		} catch (e) {
			n = { error: e };
		} finally {
			try {
				o && !o.done && (r = a.return) && r.call(a);
			} finally {
				if (n) throw n.error;
			}
		}
	}, e;
}(), tM = {
	renderStyle: function(e, t) {
		var n = e, r = n.bold, i = n.italic, a = n.underline, o = n.code, s = n.through, c = n.sub, l = n.sup, u = t;
		return r && (u = H("strong", null, u)), o && (u = H("code", null, u)), i && (u = H("em", null, u)), a && (u = H("u", null, u)), s && (u = H("s", null, u)), c && (u = H("sub", null, u)), l && (u = H("sup", null, u)), u;
	},
	menus: [
		{
			key: "bold",
			factory: function() {
				return new qj();
			}
		},
		{
			key: "underline",
			factory: function() {
				return new Zj();
			}
		},
		{
			key: "italic",
			factory: function() {
				return new Yj();
			}
		},
		{
			key: "through",
			factory: function() {
				return new Xj();
			}
		},
		{
			key: "code",
			factory: function() {
				return new Jj();
			}
		},
		{
			key: "sub",
			factory: function() {
				return new Qj();
			}
		},
		{
			key: "sup",
			factory: function() {
				return new $j();
			}
		},
		{
			key: "clearStyle",
			factory: function() {
				return new eM();
			}
		}
	],
	styleToHtml: function(e, t) {
		if (!z.isText(e)) return t;
		if (XA(t)) return mj(e, t);
		var n = V(t);
		if (QA(n) === "br") return mj(e, "<br>");
		var r = n.html();
		return r = mj(e, r), n.html(r), ZA(n);
	},
	parseStyleHtml: function(e, t, n) {
		var r = V(e);
		if (!z.isText(t)) return t;
		var i = t;
		return hj(r, "b,strong") && (i.bold = !0), hj(r, "i,em") && (i.italic = !0), hj(r, "u") && (i.underline = !0), hj(r, "s,strike") && (i.through = !0), hj(r, "sub") && (i.sub = !0), hj(r, "sup") && (i.sup = !0), hj(r, "code") && (i.code = !0), i;
	}
};
function nM(e) {
	return function(t, n, r) {
		return H("h" + e, null, n);
	};
}
var rM = {
	type: "header1",
	renderElem: nM(1)
}, iM = {
	type: "header2",
	renderElem: nM(2)
}, aM = {
	type: "header3",
	renderElem: nM(3)
}, oM = {
	type: "header4",
	renderElem: nM(4)
}, sM = {
	type: "header5",
	renderElem: nM(5)
}, cM = RO.PROPER, lM = RegExp.prototype, uM = lM.toString, dM = Y(hk), fM = mD((function() {
	return uM.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), pM = cM && uM.name != "toString";
(fM || pM) && zO(RegExp.prototype, "toString", (function() {
	var e = yO(this), t = mk(e.source), n = e.flags;
	return "/" + t + "/" + mk(n === void 0 && zD(lM, e) && !("flags" in lM) ? dM(e) : n);
}), { unsafe: !0 });
var mM, hM = J.TypeError, gM = function(e) {
	if (OA(e)) throw hM("The method doesn't accept regular expressions");
	return e;
}, _M = fO("match"), vM = function(e) {
	var t = /./;
	try {
		"/./"[e](t);
	} catch {
		try {
			return t[_M] = !1, "/./"[e](t);
		} catch {}
	}
	return !1;
}, yM = vO.f, bM = Y("".startsWith), xM = Y("".slice), SM = Math.min, CM = vM("startsWith");
function wM(e) {
	var t = sj(P.nodes(e, {
		match: function(e) {
			return K.getNodeType(e).startsWith("header");
		},
		universal: !0
	}), 1)[0];
	if (t == null) return "paragraph";
	var n = sj(t, 1)[0];
	return K.getNodeType(n);
}
function TM(e) {
	return e.selection == null || !sj(P.nodes(e, {
		match: function(e) {
			var t = K.getNodeType(e);
			return t === "paragraph" || !!t.startsWith("header");
		},
		universal: !0,
		mode: "highest"
	}), 1)[0];
}
function EM(e, t) {
	t && B.setNodes(e, { type: t });
}
ZO({
	target: "String",
	proto: !0,
	forced: !(!CM && (mM = yM(String.prototype, "startsWith"), mM && !mM.writable) || CM)
}, { startsWith: function(e) {
	var t = mk(ND(this));
	gM(e);
	var n = HO(SM(arguments.length > 1 ? arguments[1] : void 0, t.length)), r = mk(e);
	return bM ? bM(t, r, n) : xM(t, n, n + r.length) === r;
} });
var DM = function() {
	function e() {
		this.title = q("header.title"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z\"></path></svg>", this.tag = "select", this.width = 60;
	}
	return e.prototype.getOptions = function(e) {
		var t = [
			{
				value: "header1",
				text: "H1",
				styleForRenderMenuList: {
					"font-size": "32px",
					"font-weight": "bold"
				}
			},
			{
				value: "header2",
				text: "H2",
				styleForRenderMenuList: {
					"font-size": "24px",
					"font-weight": "bold"
				}
			},
			{
				value: "header3",
				text: "H3",
				styleForRenderMenuList: {
					"font-size": "18px",
					"font-weight": "bold"
				}
			},
			{
				value: "header4",
				text: "H4",
				styleForRenderMenuList: {
					"font-size": "16px",
					"font-weight": "bold"
				}
			},
			{
				value: "header5",
				text: "H5",
				styleForRenderMenuList: {
					"font-size": "13px",
					"font-weight": "bold"
				}
			},
			{
				value: "paragraph",
				text: q("header.text")
			}
		], n = this.getValue(e).toString();
		return t.forEach((function(e) {
			e.value === n ? e.selected = !0 : delete e.selected;
		})), t;
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.getValue = function(e) {
		return wM(e);
	}, e.prototype.isDisabled = function(e) {
		return TM(e);
	}, e.prototype.exec = function(e, t) {
		EM(e, t.toString());
	}, e;
}(), OM = function() {
	function e() {
		this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return wM(e);
	}, e.prototype.isActive = function(e) {
		return this.getValue(e) === this.type;
	}, e.prototype.isDisabled = function(e) {
		return TM(e);
	}, e.prototype.exec = function(e, t) {
		var n = this.type;
		EM(e, t === n ? "paragraph" : n);
	}, e;
}(), kM = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "H1", t.type = "header1", t;
	}
	return nj(t, e), t;
}(OM), AM = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "H2", t.type = "header2", t;
	}
	return nj(t, e), t;
}(OM), jM = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "H3", t.type = "header3", t;
	}
	return nj(t, e), t;
}(OM), MM = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "H4", t.type = "header4", t;
	}
	return nj(t, e), t;
}(OM), NM = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "H5", t.type = "header5", t;
	}
	return nj(t, e), t;
}(OM), PM = {
	key: "headerSelect",
	factory: function() {
		return new DM();
	}
}, FM = {
	key: "header1",
	factory: function() {
		return new kM();
	}
}, IM = {
	key: "header2",
	factory: function() {
		return new AM();
	}
}, LM = {
	key: "header3",
	factory: function() {
		return new jM();
	}
}, RM = {
	key: "header4",
	factory: function() {
		return new MM();
	}
}, zM = {
	key: "header5",
	factory: function() {
		return new NM();
	}
};
function BM(e) {
	return function(t, n) {
		return "<h" + e + ">" + n + "</h" + e + ">";
	};
}
function VM(e) {
	return function(t, n, r) {
		var i = V(t);
		return (n = n.filter((function(e) {
			return !!z.isText(e) || !!r.isInline(e);
		}))).length === 0 && (n = [{ text: i.text().replace(/\s+/gm, " ") }]), {
			type: "header" + e,
			children: n
		};
	};
}
var HM = {
	renderElems: [
		rM,
		iM,
		aM,
		oM,
		sM
	],
	elemsToHtml: [
		{
			type: "header1",
			elemToHtml: BM(1)
		},
		{
			type: "header2",
			elemToHtml: BM(2)
		},
		{
			type: "header3",
			elemToHtml: BM(3)
		},
		{
			type: "header4",
			elemToHtml: BM(4)
		},
		{
			type: "header5",
			elemToHtml: BM(5)
		}
	],
	parseElemsHtml: [
		{
			selector: "h1:not([data-w-e-type])",
			parseElemHtml: VM(1)
		},
		{
			selector: "h2:not([data-w-e-type])",
			parseElemHtml: VM(2)
		},
		{
			selector: "h3:not([data-w-e-type])",
			parseElemHtml: VM(3)
		},
		{
			selector: "h4:not([data-w-e-type])",
			parseElemHtml: VM(4)
		},
		{
			selector: "h5:not([data-w-e-type])",
			parseElemHtml: VM(5)
		}
	],
	menus: [
		PM,
		FM,
		IM,
		LM,
		RM,
		zM
	],
	editorPlugin: function(e) {
		var t = e.insertBreak;
		e.insertNode;
		var n = e;
		return n.insertBreak = function() {
			var r = sj(P.nodes(n, {
				match: function(e) {
					return K.getNodeType(e).startsWith("header");
				},
				universal: !0
			}), 1)[0];
			r && K.isSelectionAtLineEnd(e, r[1]) ? B.insertNodes(n, {
				type: "paragraph",
				children: [{ text: "" }]
			}, { mode: "highest" }) : t();
		}, n;
	}
}, UM = Object.assign, WM = Object.defineProperty, GM = Y([].concat), KM = !UM || mD((function() {
	if (hD && UM({ b: 1 }, UM(WM({}, "a", {
		enumerable: !0,
		get: function() {
			WM(this, "b", {
				value: 3,
				enumerable: !1
			});
		}
	}), { b: 2 })).b !== 1) return !0;
	var e = {}, t = {}, n = Symbol(), r = "abcdefghijklmnopqrst";
	return e[n] = 7, r.split("").forEach((function(e) {
		t[e] = e;
	})), UM({}, e)[n] != 7 || yk(UM({}, t)).join("") != r;
})) ? function(e, t) {
	for (var n = oO(e), r = arguments.length, i = 1, a = YO.f, o = bD.f; r > i;) for (var s, c = jD(arguments[i++]), l = a ? GM(yk(c), a(c)) : yk(c), u = l.length, d = 0; u > d;) s = l[d++], hD && !_D(o, c, s) || (n[s] = c[s]);
	return n;
} : UM;
function qM(e, t) {
	e.data ??= {};
	var n = e.data;
	n.style ??= {}, Object.assign(n.style, t);
}
ZO({
	target: "Object",
	stat: !0,
	forced: Object.assign !== KM
}, { assign: KM });
var JM = {
	selector: "font",
	preParseHtml: function(e) {
		var t = V(e);
		if (QA(t) !== "font") return e;
		var n = t.attr("color") || "";
		return n && (t.removeAttr("color"), t.css("color", n)), t[0];
	}
}, YM = function() {
	function e() {
		this.tag = "button", this.showDropPanel = !0, this.$content = null;
	}
	return e.prototype.exec = function(e, t) {}, e.prototype.getValue = function(e) {
		var t = this.mark, n = P.marks(e);
		return n && n[t] ? n[t] : "";
	}, e.prototype.isActive = function(e) {
		return !!this.getValue(e);
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !!sj(P.nodes(e, {
			match: function(t) {
				return K.getNodeType(t) === "pre" || !!P.isVoid(e, t);
			},
			universal: !0
		}), 1)[0];
	}, e.prototype.getPanelContentElem = function(e) {
		var t = this.mark;
		if (this.$content == null) {
			var n = V("<ul class=\"w-e-panel-content-color\"></ul>");
			n.on("click", "li", (function(n) {
				var r = n.target;
				if (r != null && (n.preventDefault(), e.selection != null)) {
					var i = V(r).attr("data-value");
					i === "0" ? P.removeMark(e, t) : P.addMark(e, t, i);
				}
			})), this.$content = n;
		}
		var r = this.$content;
		if (r == null) return document.createElement("ul");
		r.empty();
		var i = this.getValue(e), a = e.getMenuConfig(t).colors;
		(a === void 0 ? [] : a).forEach((function(e) {
			var t = V("<div class=\"color-block\" data-value=\"" + e + "\"></div>");
			t.css("background-color", e);
			var n = V("<li data-value=\"" + e + "\"></li>");
			i === e && n.addClass("active"), n.append(t), r.append(n);
		}));
		var o = "";
		t === "color" && (o = q("color.default")), t === "bgColor" && (o = q("color.clear"));
		var s = V("\n      <li data-value=\"0\" class=\"clear\">\n        <svg viewBox=\"0 0 1024 1024\"><path d=\"M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z\"></path></svg>\n        " + o + "\n      </li>\n    ");
		return r.prepend(s), r[0];
	}, e;
}(), XM = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("color.color"), t.iconSvg = Fj, t.mark = "color", t;
	}
	return nj(t, e), t;
}(YM), ZM = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("color.bgColor"), t.iconSvg = Ij, t.mark = "bgColor", t;
	}
	return nj(t, e), t;
}(YM), QM = /* @__PURE__ */ "rgb(0, 0, 0).rgb(38, 38, 38).rgb(89, 89, 89).rgb(140, 140, 140).rgb(191, 191, 191).rgb(217, 217, 217).rgb(233, 233, 233).rgb(245, 245, 245).rgb(250, 250, 250).rgb(255, 255, 255).rgb(225, 60, 57).rgb(231, 95, 51).rgb(235, 144, 58).rgb(245, 219, 77).rgb(114, 192, 64).rgb(89, 191, 192).rgb(66, 144, 247).rgb(54, 88, 226).rgb(106, 57, 201).rgb(216, 68, 147).rgb(251, 233, 230).rgb(252, 237, 225).rgb(252, 239, 212).rgb(252, 251, 207).rgb(231, 246, 213).rgb(218, 244, 240).rgb(217, 237, 250).rgb(224, 232, 250).rgb(237, 225, 248).rgb(246, 226, 234).rgb(255, 163, 158).rgb(255, 187, 150).rgb(255, 213, 145).rgb(255, 251, 143).rgb(183, 235, 143).rgb(135, 232, 222).rgb(145, 213, 255).rgb(173, 198, 255).rgb(211, 173, 247).rgb(255, 173, 210).rgb(255, 77, 79).rgb(255, 122, 69).rgb(255, 169, 64).rgb(255, 236, 61).rgb(115, 209, 61).rgb(54, 207, 201).rgb(64, 169, 255).rgb(89, 126, 247).rgb(146, 84, 222).rgb(247, 89, 171).rgb(207, 19, 34).rgb(212, 56, 13).rgb(212, 107, 8).rgb(212, 177, 6).rgb(56, 158, 13).rgb(8, 151, 156).rgb(9, 109, 217).rgb(29, 57, 196).rgb(83, 29, 171).rgb(196, 29, 127).rgb(130, 0, 20).rgb(135, 20, 0).rgb(135, 56, 0).rgb(97, 71, 0).rgb(19, 82, 0).rgb(0, 71, 79).rgb(0, 58, 140).rgb(6, 17, 120).rgb(34, 7, 94).rgb(120, 6, 80)".split("."), $M = {
	renderStyle: function(e, t) {
		var n = e, r = n.color, i = n.bgColor, a = t;
		return r && qM(a, { color: r }), i && qM(a, { backgroundColor: i }), a;
	},
	styleToHtml: function(e, t) {
		if (!z.isText(e)) return t;
		var n, r = e, i = r.color, a = r.bgColor;
		return i || a ? ((XA(t) || QA(n = V(t)) !== "span") && (n = V("<span>" + t + "</span>")), i && n.css("color", i), a && n.css("background-color", a), ZA(n)) : t;
	},
	preParseHtml: [JM],
	parseStyleHtml: function(e, t, n) {
		var r = V(e);
		if (!z.isText(t)) return t;
		var i = t, a = $A(r, "color");
		a && (i.color = a);
		var o = $A(r, "background-color");
		return o ||= $A(r, "background"), o && (i.bgColor = o), i;
	},
	menus: [{
		key: "color",
		factory: function() {
			return new XM();
		},
		config: { colors: QM }
	}, {
		key: "bgColor",
		factory: function() {
			return new ZM();
		},
		config: { colors: QM }
	}]
}, eN = /^(?:\w+:)?\/\/(\S+)$/, tN = /^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/, nN = /^[^\s\.]+\.\S{2,}$/, rN = GO.includes;
function iN(e) {
	return e === void 0 && (e = "r"), e + "-" + Ld();
}
function aN(e) {
	return e.replace(/</g, "&lt;").replace(/>/g, "&gt;");
}
function oN(e, t, n, r) {
	return ij(this, void 0, void 0, (function() {
		var i, a;
		return aj(this, (function(o) {
			switch (o.label) {
				case 0: return (i = t.getMenuConfig(e).checkLink) ? [4, i(n, r)] : [3, 2];
				case 1:
					if (typeof (a = o.sent()) == "string") return t.alert(a, "error"), [2, !1];
					if (a == null) return [2, !1];
					o.label = 2;
				case 2: return [2, !0];
			}
		}));
	}));
}
function sN(e, t, n) {
	return ij(this, void 0, void 0, (function() {
		var r;
		return aj(this, (function(i) {
			switch (i.label) {
				case 0: return (r = t.getMenuConfig(e).parseLinkUrl) ? [4, r(n)] : [3, 2];
				case 1: return [2, i.sent()];
				case 2: return [2, n];
			}
		}));
	}));
}
function cN(e) {
	return e.selection == null || !!K.getSelectedElems(e).some((function(t) {
		var n = t.type;
		return !!e.isVoid(t) || !![
			"pre",
			"code",
			"link"
		].includes(n) || void 0;
	}));
}
function lN(e, t) {
	return {
		type: "link",
		url: aN(e),
		children: t ? [{ text: t }] : []
	};
}
function uN(e, t, n) {
	return ij(this, void 0, void 0, (function() {
		var r, i, a;
		return aj(this, (function(o) {
			switch (o.label) {
				case 0: return n ? (t ||= n, e.restoreSelection(), cN(e) ? [2] : [4, oN("insertLink", e, t, n)]) : [2];
				case 1: return o.sent() ? [4, sN("insertLink", e, n)] : [2];
				case 2: return r = o.sent(), (i = e.selection) == null || (R.isCollapsed(i) ? (e.insertText(" "), a = lN(r, t), B.insertNodes(e, a), e.insertFragment([{ text: " " }])) : P.string(e, i) === t ? (a = lN(r), B.wrapNodes(e, a, { split: !0 }), B.collapse(e, { edge: "end" })) : (e.deleteFragment(), a = lN(r, t), B.insertNodes(e, a))), [2];
			}
		}));
	}));
}
ZO({
	target: "Array",
	proto: !0
}, { includes: function(e) {
	return rN(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), wA("includes");
var dN = {
	type: "link",
	renderElem: function(e, t, n) {
		var r = e, i = r.url, a = r.target;
		return H("a", {
			href: i,
			target: a === void 0 ? "_blank" : a
		}, t);
	}
}, fN = {
	selector: "a:not([data-w-e-type])",
	parseElemHtml: function(e, t, n) {
		var r = V(e);
		return (t = t.filter((function(e) {
			return !!z.isText(e) || !!n.isInline(e);
		}))).length === 0 && (t = [{ text: r.text().replace(/\s+/gm, " ") }]), {
			type: "link",
			url: r.attr("href") || "",
			target: r.attr("target") || "",
			children: t
		};
	}
};
function pN() {
	return iN("w-e-insert-link");
}
var mN = function() {
	function e() {
		this.title = q("link.insert"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z\"></path><path d=\"M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z\"></path></svg>", this.tag = "button", this.showModal = !0, this.modalWidth = 300, this.$content = null, this.textInputId = pN(), this.urlInputId = pN(), this.buttonId = pN();
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {}, e.prototype.isDisabled = function(e) {
		return cN(e);
	}, e.prototype.getModalPositionNode = function(e) {
		return null;
	}, e.prototype.getModalContentElem = function(e) {
		var t = e.selection, n = this, r = n.textInputId, i = n.urlInputId, a = n.buttonId, o = sj(zT(q("link.text"), r), 2), s = o[0], c = V(o[1]), l = sj(zT(q("link.url"), i), 2), u = l[0], d = V(l[1]), f = sj(BT(a, q("common.ok")), 1)[0];
		if (this.$content == null) {
			var p = V("<div></div>");
			p.on("click", "#" + a, (function(t) {
				t.preventDefault(), uN(e, p.find("#" + r).val(), p.find("#" + i).val()), e.hidePanelOrModal();
			})), this.$content = p;
		}
		var m = this.$content;
		if (m.empty(), m.append(s), m.append(u), m.append(f), t == null || R.isCollapsed(t)) c.val("");
		else {
			var h = P.string(e, t);
			c.val(h);
		}
		return d.val(""), setTimeout((function() {
			c.focus();
		})), m[0];
	}, e;
}();
function hN() {
	return iN("w-e-update-link");
}
var gN = function() {
	function e() {
		this.title = q("link.edit"), this.iconSvg = Nj, this.tag = "button", this.showModal = !0, this.modalWidth = 300, this.$content = null, this.urlInputId = hN(), this.buttonId = hN();
	}
	return e.prototype.getSelectedLinkElem = function(e) {
		return K.getSelectedNodeByType(e, "link") ?? null;
	}, e.prototype.getValue = function(e) {
		var t = this.getSelectedLinkElem(e);
		return t && t.url || "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {}, e.prototype.isDisabled = function(e) {
		return e.selection == null || this.getSelectedLinkElem(e) == null;
	}, e.prototype.getModalPositionNode = function(e) {
		return K.getSelectedNodeByType(e, "link");
	}, e.prototype.getModalContentElem = function(e) {
		var t = this.urlInputId, n = this.buttonId, r = sj(zT(q("link.url"), t), 2), i = r[0], a = V(r[1]), o = sj(BT(n, q("common.ok")), 1)[0];
		if (this.$content == null) {
			var s = V("<div></div>");
			s.on("click", "button", (function(n) {
				n.preventDefault(), e.restoreSelection();
				var r = K.getSelectedNodeByType(e, "link");
				(function(e, t, n) {
					ij(this, void 0, void 0, (function() {
						var r, i;
						return aj(this, (function(a) {
							switch (a.label) {
								case 0: return n ? [4, oN("editLink", e, t, n)] : [2];
								case 1: return a.sent() ? [4, sN("editLink", e, n)] : [2];
								case 2: return r = a.sent(), i = { url: aN(r) }, B.setNodes(e, i, { match: function(e) {
									return K.checkNodeType(e, "link");
								} }), [2];
							}
						}));
					}));
				})(e, r ? F.string(r) : "", s.find("#" + t).val()), e.hidePanelOrModal();
			})), this.$content = s;
		}
		var c = this.$content;
		c.empty(), c.append(i), c.append(o);
		var l = this.getValue(e);
		return a.val(l), setTimeout((function() {
			a.focus();
		})), c[0];
	}, e;
}(), _N = function() {
	function e() {
		this.title = q("link.unLink"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || K.getSelectedNodeByType(e, "link") == null;
	}, e.prototype.exec = function(e, t) {
		this.isDisabled(e) || B.unwrapNodes(e, { match: function(e) {
			return K.checkNodeType(e, "link");
		} });
	}, e;
}(), vN = function() {
	function e() {
		this.title = q("link.view"), this.iconSvg = Pj, this.tag = "button";
	}
	return e.prototype.getSelectedLinkElem = function(e) {
		return K.getSelectedNodeByType(e, "link") ?? null;
	}, e.prototype.getValue = function(e) {
		var t = this.getSelectedLinkElem(e);
		return t && t.url || "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || this.getSelectedLinkElem(e) == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			if (!t || typeof t != "string") throw Error("View link failed, link url is '" + t + "'");
			window.open(t, "_blank");
		}
	}, e;
}(), yN = {
	checkLink: function(e, t) {
		return !0;
	},
	parseLinkUrl: function(e) {
		return e;
	}
}, bN = {
	renderElems: [dN],
	elemsToHtml: [{
		type: "link",
		elemToHtml: function(e, t) {
			var n = e, r = n.url, i = n.target;
			return "<a href=\"" + r + "\" target=\"" + (i === void 0 ? "_blank" : i) + "\">" + t + "</a>";
		}
	}],
	parseElemsHtml: [fN],
	menus: [
		{
			key: "insertLink",
			factory: function() {
				return new mN();
			},
			config: yN
		},
		{
			key: "editLink",
			factory: function() {
				return new gN();
			},
			config: yN
		},
		{
			key: "unLink",
			factory: function() {
				return new _N();
			}
		},
		{
			key: "viewLink",
			factory: function() {
				return new vN();
			}
		}
	],
	editorPlugin: function(e) {
		var t = e.isInline, n = e.insertData, r = e.normalizeNode;
		e.insertNode, e.insertText;
		var i = e;
		return i.isInline = function(e) {
			return e.type === "link" || t(e);
		}, i.insertData = function(e) {
			var t = e.getData("text/plain");
			if (function(e) {
				if (typeof e != "string") return !1;
				var t = e.match(eN);
				if (!t) return !1;
				var n = t[1];
				return !(!n || !tN.test(n) && !nN.test(n));
			}(t)) {
				if (!cN(i)) {
					var r = i.selection;
					r != null && uN(i, P.string(i, r), t);
				}
			} else n(e);
		}, i.normalizeNode = function(e) {
			var t = sj(e, 2), n = t[0], a = t[1];
			return K.getNodeType(n) === "link" && F.string(n) === "" ? B.removeNodes(i, { at: a }) : r([n, a]);
		}, i;
	}
}, xN = Y(1 .valueOf), SN = J.RangeError, CN = J.RangeError, wN = J.String, TN = Math.floor, EN = Y((function(e) {
	var t = mk(ND(this)), n = "", r = BO(e);
	if (r < 0 || r == Infinity) throw SN("Wrong number of repetitions");
	for (; r > 0; (r >>>= 1) && (t += t)) 1 & r && (n += t);
	return n;
})), DN = Y("".slice), ON = Y(1 .toFixed), kN = function(e, t, n) {
	return t === 0 ? n : t % 2 == 1 ? kN(e, t - 1, n * e) : kN(e * e, t / 2, n);
}, AN = function(e, t, n) {
	for (var r = -1, i = n; ++r < 6;) i += t * e[r], e[r] = i % 1e7, i = TN(i / 1e7);
}, jN = function(e, t) {
	for (var n = 6, r = 0; --n >= 0;) r += e[n], e[n] = TN(r / t), r = r % t * 1e7;
}, MN = function(e) {
	for (var t = 6, n = ""; --t >= 0;) if (n !== "" || t === 0 || e[t] !== 0) {
		var r = wN(e[t]);
		n = n === "" ? r : n + EN("0", 7 - r.length) + r;
	}
	return n;
};
function NN(e, t) {
	return "w-e-image-container-" + K.findKey(e, t).id;
}
ZO({
	target: "Number",
	proto: !0,
	forced: mD((function() {
		return ON(8e-5, 3) !== "0.000" || ON(.9, 0) !== "1" || ON(1.255, 2) !== "1.25" || ON(0xde0b6b3a7640080, 0) !== "1000000000000000128";
	})) || !mD((function() {
		ON({});
	}))
}, { toFixed: function(e) {
	var t, n, r, i, a = xN(this), o = BO(e), s = [
		0,
		0,
		0,
		0,
		0,
		0
	], c = "", l = "0";
	if (o < 0 || o > 20) throw CN("Incorrect fraction digits");
	if (a != a) return "NaN";
	if (a <= -1e21 || a >= 1e21) return wN(a);
	if (a < 0 && (c = "-", a = -a), a > 1e-21) if (n = (t = function(e) {
		for (var t = 0, n = e; n >= 4096;) t += 12, n /= 4096;
		for (; n >= 2;) t += 1, n /= 2;
		return t;
	}(a * kN(2, 69, 1)) - 69) < 0 ? a * kN(2, -t, 1) : a / kN(2, t, 1), n *= 4503599627370496, (t = 52 - t) > 0) {
		for (AN(s, 0, n), r = o; r >= 7;) AN(s, 1e7, 0), r -= 7;
		for (AN(s, kN(10, r, 1), 0), r = t - 1; r >= 23;) jN(s, 1 << 23), r -= 23;
		jN(s, 1 << r), AN(s, 1, 1), jN(s, 2), l = MN(s);
	} else AN(s, 0, n), AN(s, 1 << -t, 0), l = MN(s) + EN("0", o);
	return o > 0 ? c + ((i = l.length) <= o ? "0." + EN("0", o - i) + l : DN(l, 0, i - o) + "." + DN(l, i - o)) : c + l;
} });
var PN = {
	type: "image",
	renderElem: function(e, t, n) {
		var r = e, i = r.src, a = r.alt, o = a === void 0 ? "" : a, s = r.href, c = s === void 0 ? "" : s, l = r.style, u = l === void 0 ? {} : l, d = u.width, f = d === void 0 ? "" : d, p = u.height, m = p === void 0 ? "" : p, h = K.isNodeSelected(n, e), g = {};
		f && (g.width = "100%"), m && (g.height = "100%");
		var _ = H("img", {
			style: g,
			src: i,
			alt: o,
			"data-href": c
		}), v = n.isDisabled();
		return h && !v ? function(e, t, n, r) {
			var i = V("body"), a = NN(e, t), o = r.width, s = r.height, c = 0, l = 0, u = 0, d = !1, f = null;
			function p(t) {
				f = function() {
					var e = V("#" + a);
					if (e.length === 0) throw Error("Cannot find image container elem");
					return e;
				}(), c = t;
				var n = f.find("img");
				if (n.length === 0) throw Error("Cannot find image elem");
				l = n.width(), u = n.height(), i.on("mousemove", m), i.on("mouseup", h);
				var r = K.getHoverbar(e);
				r && r.hideAndClean();
			}
			var m = Vd((function(e) {
				e.preventDefault();
				var t = e.clientX, n = l + (d ? c - t : t - c), r = n / l * u;
				f != null && (n <= 15 || r <= 15 || (f.css("width", n + "px"), f.css("height", r + "px")));
			}), 100);
			function h(n) {
				if (i.off("mousemove", m), f != null) {
					var r = f.width().toFixed(2), a = f.height().toFixed(2), o = { style: rj(rj({}, t.style), {
						width: r + "px",
						height: a + "px"
					}) };
					B.setNodes(e, o, { at: K.findPath(e, t) }), i.off("mouseup", h);
				}
			}
			var g = {};
			return o && (g.width = o), s && (g.height = s), H("div", {
				id: a,
				style: g,
				className: "w-e-image-container w-e-selected-image-container",
				on: { mousedown: function(e) {
					var t = V(e.target);
					t.hasClass("w-e-image-dragger") && (e.preventDefault(), (t.hasClass("left-top") || t.hasClass("left-bottom")) && (d = !0), p(e.clientX));
				} }
			}, n, H("div", { className: "w-e-image-dragger left-top" }), H("div", { className: "w-e-image-dragger right-top" }), H("div", { className: "w-e-image-dragger left-bottom" }), H("div", { className: "w-e-image-dragger right-bottom" }));
		}(n, e, _, {
			width: f,
			height: m
		}) : function(e, t, n, r) {
			var i = r.width, a = r.height, o = {};
			return i && (o.width = i), a && (o.height = a), H("div", {
				id: NN(e, t),
				style: o,
				className: "w-e-image-container"
			}, n);
		}(n, e, _, {
			width: f,
			height: m
		});
	}
}, FN = {
	selector: "img:not([data-w-e-type])",
	parseElemHtml: function(e, t, n) {
		var r = V(e), i = r.attr("data-href") || "";
		return i = decodeURIComponent(i), {
			type: "image",
			src: r.attr("src") || "",
			alt: r.attr("alt") || "",
			href: i,
			style: {
				width: $A(r, "width"),
				height: $A(r, "height")
			},
			children: [{ text: "" }]
		};
	}
};
function IN(e, t, n, r, i) {
	return r === void 0 && (r = ""), i === void 0 && (i = ""), ij(this, void 0, void 0, (function() {
		var a, o;
		return aj(this, (function(s) {
			switch (s.label) {
				case 0: return (a = t.getMenuConfig(e).checkImage) ? [4, a(n, r, i)] : [3, 2];
				case 1:
					if (typeof (o = s.sent()) == "string") return t.alert(o, "error"), [2, !1];
					if (o == null) return [2, !1];
					s.label = 2;
				case 2: return [2, !0];
			}
		}));
	}));
}
function LN(e, t, n) {
	return ij(this, void 0, void 0, (function() {
		var r;
		return aj(this, (function(i) {
			switch (i.label) {
				case 0: return (r = t.getMenuConfig(e).parseImageSrc) ? [4, r(n)] : [3, 2];
				case 1: return [2, i.sent()];
				case 2: return [2, n];
			}
		}));
	}));
}
function RN(e, t, n, r) {
	return n === void 0 && (n = ""), r === void 0 && (r = ""), ij(this, void 0, void 0, (function() {
		var i, a, o;
		return aj(this, (function(s) {
			switch (s.label) {
				case 0: return [4, IN("insertImage", e, t, n, r)];
				case 1: return s.sent() ? [4, LN("insertImage", e, t)] : [2];
				case 2: return i = s.sent(), a = {
					type: "image",
					src: aN(i),
					href: r,
					alt: n,
					style: {},
					children: [{ text: "" }]
				}, e.selection === null && e.restoreSelection(), K.getSelectedNodeByType(e, "image") && e.move(1), zN(e) || (B.insertNodes(e, a), (o = e.getMenuConfig("insertImage").onInsertedImage) && o(a)), [2];
			}
		}));
	}));
}
function zN(e) {
	var t = e.selection;
	return t == null || !R.isCollapsed(t) || !!sj(P.nodes(e, {
		match: function(t) {
			var n = K.getNodeType(t);
			return n === "code" || n === "pre" || n === "link" || n === "list-item" || !!n.startsWith("header") || n === "blockquote" || !!P.isVoid(e, t);
		},
		universal: !0
	}), 1)[0];
}
function BN() {
	return iN("w-e-insert-image");
}
var VN = function() {
	function e() {
		this.title = q("image.netImage"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z\"></path></svg>", this.tag = "button", this.showModal = !0, this.modalWidth = 300, this.$content = null, this.srcInputId = BN(), this.altInputId = BN(), this.hrefInputId = BN(), this.buttonId = BN();
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {}, e.prototype.isDisabled = function(e) {
		return zN(e);
	}, e.prototype.getModalPositionNode = function(e) {
		return null;
	}, e.prototype.getModalContentElem = function(e) {
		var t = this, n = this, r = n.srcInputId, i = n.altInputId, a = n.hrefInputId, o = n.buttonId, s = sj(zT(q("image.src"), r), 2), c = s[0], l = V(s[1]), u = sj(zT(q("image.desc"), i), 2), d = u[0], f = V(u[1]), p = sj(zT(q("image.link"), a), 2), m = p[0], h = V(p[1]), g = sj(BT(o, q("common.ok")), 1)[0];
		if (this.$content == null) {
			var _ = V("<div></div>");
			_.on("click", "#" + o, (function(n) {
				n.preventDefault();
				var o = _.find("#" + r).val().trim(), s = _.find("#" + i).val().trim(), c = _.find("#" + a).val().trim();
				t.insertImage(e, o, s, c), e.hidePanelOrModal();
			})), this.$content = _;
		}
		var v = this.$content;
		return v.empty(), v.append(c), v.append(d), v.append(m), v.append(g), l.val(""), f.val(""), h.val(""), setTimeout((function() {
			l.focus();
		})), v[0];
	}, e.prototype.insertImage = function(e, t, n, r) {
		n === void 0 && (n = ""), r === void 0 && (r = ""), t && (e.restoreSelection(), this.isDisabled(e) || RN(e, t, n, r));
	}, e;
}(), HN = function() {
	function e() {
		this.title = q("image.delete"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z\" p-id=\"9577\"></path><path d=\"M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || K.getSelectedNodeByType(e, "image") == null;
	}, e.prototype.exec = function(e, t) {
		this.isDisabled(e) || B.removeNodes(e, { match: function(e) {
			return K.checkNodeType(e, "image");
		} });
	}, e;
}();
function UN() {
	return iN("w-e-edit-image");
}
var WN = function() {
	function e() {
		this.title = q("image.edit"), this.iconSvg = Nj, this.tag = "button", this.showModal = !0, this.modalWidth = 300, this.$content = null, this.srcInputId = UN(), this.altInputId = UN(), this.hrefInputId = UN(), this.buttonId = UN();
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.getImageNode = function(e) {
		return K.getSelectedNodeByType(e, "image");
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || K.getSelectedNodeByType(e, "image") == null;
	}, e.prototype.getModalPositionNode = function(e) {
		return this.getImageNode(e);
	}, e.prototype.getModalContentElem = function(e) {
		var t = this, n = this, r = n.srcInputId, i = n.altInputId, a = n.hrefInputId, o = n.buttonId, s = this.getImageNode(e);
		if (s == null) throw Error("Not found selected image node");
		var c = sj(zT(q("image.src"), r), 2), l = c[0], u = V(c[1]), d = sj(zT(q("image.desc"), i), 2), f = d[0], p = V(d[1]), m = sj(zT(q("image.link"), a), 2), h = m[0], g = V(m[1]), _ = sj(BT(o, q("common.ok")), 1)[0];
		if (this.$content == null) {
			var v = V("<div></div>");
			v.on("click", "#" + o, (function(n) {
				n.preventDefault();
				var o = v.find("#" + r).val(), s = v.find("#" + i).val(), c = v.find("#" + a).val();
				t.updateImage(e, o, s, c), e.hidePanelOrModal();
			})), this.$content = v;
		}
		var y = this.$content;
		y.empty(), y.append(l), y.append(f), y.append(h), y.append(_);
		var b = s, x = b.src, S = b.alt, C = S === void 0 ? "" : S, w = b.href, T = w === void 0 ? "" : w;
		return u.val(x), p.val(C), g.val(T), setTimeout((function() {
			u.focus();
		})), y[0];
	}, e.prototype.updateImage = function(e, t, n, r, i) {
		n === void 0 && (n = ""), r === void 0 && (r = ""), i === void 0 && (i = {}), t && (e.restoreSelection(), this.isDisabled(e) || function(e, t, n, r, i) {
			n === void 0 && (n = ""), r === void 0 && (r = ""), i === void 0 && (i = {}), ij(this, void 0, void 0, (function() {
				var a, o, s, c, l, u;
				return aj(this, (function(d) {
					switch (d.label) {
						case 0: return [4, IN("editImage", e, t, n, r)];
						case 1: return d.sent() ? [4, LN("editImage", e, t)] : [2];
						case 2: return a = d.sent(), (o = K.getSelectedNodeByType(e, "image")) == null || (s = o.style, c = {
							src: a,
							alt: n,
							href: r,
							style: rj(rj({}, s === void 0 ? {} : s), i)
						}, B.setNodes(e, c, { match: function(e) {
							return K.checkNodeType(e, "image");
						} }), l = K.getSelectedNodeByType(e, "image"), (u = e.getMenuConfig("editImage").onUpdatedImage) && u(l)), [2];
					}
				}));
			}));
		}(e, t, n, r, i));
	}, e;
}(), GN = function() {
	function e() {
		this.title = q("image.viewLink"), this.iconSvg = Pj, this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		var t = K.getSelectedNodeByType(e, "image");
		return t && t.href || "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !this.getValue(e);
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			if (!t || typeof t != "string") throw Error("View image link failed, image.href is '" + t + "'");
			window.open(t, "_blank");
		}
	}, e;
}(), KN = function() {
	function e() {
		this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.getSelectedNode = function(e) {
		return K.getSelectedNodeByType(e, "image");
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || this.getSelectedNode(e) == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = this.getSelectedNode(e);
			if (n != null) {
				var r = K.getHoverbar(e);
				r && r.hideAndClean();
				var i = n.style, a = { style: rj(rj({}, i === void 0 ? {} : i), {
					width: this.value,
					height: ""
				}) };
				B.setNodes(e, a, { match: function(e) {
					return K.checkNodeType(e, "image");
				} });
			}
		}
	}, e;
}(), qN = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "30%", t.value = "30%", t;
	}
	return nj(t, e), t;
}(KN), JN = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "50%", t.value = "50%", t;
	}
	return nj(t, e), t;
}(KN), YN = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = "100%", t.value = "100%", t;
	}
	return nj(t, e), t;
}(KN), XN = {
	onInsertedImage: function(e) {},
	onUpdatedImage: function(e) {},
	checkImage: function(e, t, n) {
		return !0;
	},
	parseImageSrc: function(e) {
		return e;
	}
}, ZN = {
	renderElems: [PN],
	elemsToHtml: [{
		type: "image",
		elemToHtml: function(e, t) {
			var n = e, r = n.src, i = n.alt, a = i === void 0 ? "" : i, o = n.href, s = o === void 0 ? "" : o, c = n.style, l = c === void 0 ? {} : c, u = l.width, d = u === void 0 ? "" : u, f = l.height, p = f === void 0 ? "" : f, m = "";
			return d && (m += "width: " + d + ";"), p && (m += "height: " + p + ";"), "<img src=\"" + r + "\" alt=\"" + a + "\" data-href=\"" + s + "\" style=\"" + m + "\"/>";
		}
	}],
	parseElemsHtml: [FN],
	menus: [
		{
			key: "insertImage",
			factory: function() {
				return new VN();
			},
			config: XN
		},
		{
			key: "deleteImage",
			factory: function() {
				return new HN();
			}
		},
		{
			key: "editImage",
			factory: function() {
				return new WN();
			},
			config: XN
		},
		{
			key: "viewImageLink",
			factory: function() {
				return new GN();
			}
		},
		{
			key: "imageWidth30",
			factory: function() {
				return new qN();
			}
		},
		{
			key: "imageWidth50",
			factory: function() {
				return new JN();
			}
		},
		{
			key: "imageWidth100",
			factory: function() {
				return new YN();
			}
		}
	],
	editorPlugin: function(e) {
		var t = e.isInline, n = e.isVoid;
		e.insertNode;
		var r = e;
		return r.isInline = function(e) {
			return e.type === "image" || t(e);
		}, r.isVoid = function(e) {
			return e.type === "image" || n(e);
		}, r;
	}
}, QN = {
	type: "todo",
	renderElem: function(e, t, n) {
		var r = !1;
		return n.isDisabled() && (r = !0), H("div", { style: { margin: "5px 0" } }, H("span", {
			contentEditable: !1,
			style: { marginRight: "0.5em" }
		}, H("input", {
			type: "checkbox",
			checked: e.checked,
			disabled: r,
			on: { change: function(t) {
				var r = K.findPath(n, e), i = { checked: t.target.checked };
				B.setNodes(n, i, { at: r });
			} }
		})), H("span", null, t));
	}
}, $N = function() {
	function e() {
		this.title = q("todo.todo"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !!K.getSelectedNodeByType(e, "todo");
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !!K.getSelectedElems(e).some((function(t) {
			if (P.isVoid(e, t) && P.isBlock(e, t)) return !0;
			var n = t.type;
			return !![
				"pre",
				"table",
				"list-item"
			].includes(n) || void 0;
		}));
	}, e.prototype.exec = function(e, t) {
		var n = this.isActive(e);
		B.setNodes(e, { type: n ? "paragraph" : "todo" });
	}, e;
}(), eP = {
	renderElems: [QN],
	elemsToHtml: [{
		type: "todo",
		elemToHtml: function(e, t) {
			return "<div data-w-e-type=\"todo\"><input type=\"checkbox\" disabled " + (e.checked ? "checked" : "") + ">" + t + "</div>";
		}
	}],
	preParseHtml: [{
		selector: "ul.w-e-todo",
		preParseHtml: function(e) {
			var t = V(e).find("li"), n = V("<div data-w-e-type=\"todo\"></div>"), r = t.find("input[type]");
			return n.append(r), t.children()[0].remove(), n[0].innerHTML = n[0].innerHTML + t[0].innerHTML, n[0];
		}
	}],
	parseElemsHtml: [{
		selector: "div[data-w-e-type=\"todo\"]",
		parseElemHtml: function(e, t, n) {
			var r = V(e);
			(t = t.filter((function(e) {
				return !!z.isText(e) || !!n.isInline(e);
			}))).length === 0 && (t = [{ text: r.text().replace(/\s+/gm, " ") }]);
			var i = !1;
			return r.find("input[type=\"checkbox\"]").attr("checked") != null && (i = !0), {
				type: "todo",
				checked: i,
				children: t
			};
		}
	}],
	menus: [{
		key: "todo",
		factory: function() {
			return new $N();
		}
	}],
	editorPlugin: function(e) {
		var t = e.deleteBackward, n = e;
		return n.deleteBackward = function(n) {
			var r = e.selection;
			if (r && R.isCollapsed(r)) {
				var i = K.getSelectedNodeByType(e, "todo");
				if (i && F.string(i).length === 0) return void B.setNodes(e, { type: "paragraph" }, { mode: "highest" });
			}
			t(n);
		}, n;
	}
}, tP = {
	type: "blockquote",
	renderElem: function(e, t, n) {
		return H("blockquote", null, t);
	}
}, nP = {
	selector: "blockquote:not([data-w-e-type])",
	parseElemHtml: function(e, t, n) {
		var r = V(e);
		return (t = t.filter((function(e) {
			return !!z.isText(e) || !!n.isInline(e);
		}))).length === 0 && (t = [{ text: r.text().replace(/\s+/gm, " ") }]), {
			type: "blockquote",
			children: t
		};
	}
}, rP = function() {
	function e() {
		this.title = q("blockQuote.title"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !!K.getSelectedNodeByType(e, "blockquote");
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !sj(P.nodes(e, {
			match: function(e) {
				var t = K.getNodeType(e);
				return t === "paragraph" || t === "blockquote";
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = this.isActive(e) ? "paragraph" : "blockquote";
			B.setNodes(e, { type: n }, { mode: "highest" });
		}
	}, e;
}(), iP = {
	key: "blockquote",
	factory: function() {
		return new rP();
	}
}, aP = Y([].slice), oP = fk("slice"), sP = fO("species"), cP = J.Array, lP = Math.max;
ZO({
	target: "Array",
	proto: !0,
	forced: !oP
}, { slice: function(e, t) {
	var n, r, i, a = PD(this), o = UO(a), s = VO(e, o), c = VO(t === void 0 ? o : t, o);
	if ($O(a) && (n = a.constructor, (sk(n) && (n === cP || $O(n.prototype)) || ID(n) && (n = n[sP]) === null) && (n = void 0), n === cP || n === void 0)) return aP(a, s, c);
	for (r = new (n === void 0 ? cP : n)(lP(c - s, 0)), i = 0; s < c; s++, i++) s in a && jA(r, i, a[s]);
	return r.length = i, r;
} });
var uP = {
	renderElems: [tP],
	elemsToHtml: [{
		type: "blockquote",
		elemToHtml: function(e, t) {
			return "<blockquote>" + t + "</blockquote>";
		}
	}],
	parseElemsHtml: [nP],
	menus: [iP],
	editorPlugin: function(e) {
		var t = e.insertBreak, n = e.insertText, r = e;
		return r.insertBreak = function() {
			var i = r.selection;
			if (i == null) return t();
			var a = sj(P.nodes(e, {
				match: function(e) {
					return K.checkNodeType(e, "blockquote");
				},
				universal: !0
			}), 1)[0];
			if (!a) return t();
			var o = a[0], s = K.findPath(e, o), c = P.end(e, s);
			if (L.equals(c, i.focus)) {
				var l = F.string(o);
				if (l && l.slice(-1) === "\n") return e.deleteBackward("character"), void B.insertNodes(r, {
					type: "paragraph",
					children: [{ text: "" }]
				}, { mode: "highest" });
			}
			n("\n");
		}, r;
	}
}, dP = function() {
	function e() {
		this.title = q("emotion.title"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z\"></path></svg>", this.tag = "button", this.showDropPanel = !0, this.$content = null;
	}
	return e.prototype.exec = function(e, t) {}, e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !!sj(P.nodes(e, {
			match: function(t) {
				return K.getNodeType(t) === "pre" || !!P.isVoid(e, t);
			},
			universal: !0
		}), 1)[0];
	}, e.prototype.getPanelContentElem = function(e) {
		if (this.$content == null) {
			var t = V("<ul class=\"w-e-panel-content-emotion\"></ul>");
			t.on("click", "li", (function(t) {
				var n = t.target;
				if (n != null) {
					t.preventDefault();
					var r = V(n).text();
					e.insertText(r);
				}
			})), this.$content = t;
		}
		var n = this.$content;
		if (n == null) return document.createElement("ul");
		n.empty();
		var r = e.getMenuConfig("emotion").emotions;
		return (r === void 0 ? [] : r).forEach((function(e) {
			var t = V("<li>" + e + "</li>");
			n.append(t);
		})), n[0];
	}, e;
}(), fP = { menus: [{
	key: "emotion",
	factory: function() {
		return new dP();
	},
	config: { emotions: "😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ") }
}] }, pP = {
	1: "12px",
	2: "14px",
	3: "16px",
	4: "19px",
	5: "24px",
	6: "32px",
	7: "48px"
}, mP = {
	selector: "font",
	preParseHtml: function(e) {
		var t = V(e);
		if (QA(t) !== "font") return e;
		var n = t.attr("size") || "";
		n && (t.removeAttr("size"), t.css("font-size", pP[n]));
		var r = t.attr("face") || "";
		return r && (t.removeAttr("face"), t.css("font-family", r)), t[0];
	}
}, hP = Y("".indexOf);
ZO({
	target: "String",
	proto: !0,
	forced: !vM("includes")
}, { includes: function(e) {
	return !!~hP(mk(ND(this)), mk(gM(e)), arguments.length > 1 ? arguments[1] : void 0);
} });
var gP, _P, vP = function(e) {
	return e && e.Math == Math && e;
}, yP = vP(typeof globalThis == "object" && globalThis) || vP(typeof window == "object" && window) || vP(typeof self == "object" && self) || vP(typeof lD == "object" && lD) || function() {
	return this;
}() || Function("return this")(), bP = Function.prototype, xP = bP.apply, SP = bP.bind, CP = bP.call, wP = typeof Reflect == "object" && Reflect.apply || (SP ? CP.bind(xP) : function() {
	return CP.apply(xP, arguments);
}), TP = Function.prototype, EP = TP.bind, DP = TP.call, OP = EP && EP.bind(DP), kP = EP ? function(e) {
	return e && OP(DP, e);
} : function(e) {
	return e && function() {
		return DP.apply(e, arguments);
	};
}, AP = function(e) {
	return typeof e == "function";
}, jP = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, MP = !jP((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), NP = Function.prototype.call, PP = NP.bind ? NP.bind(NP) : function() {
	return NP.apply(NP, arguments);
}, FP = {}.propertyIsEnumerable, IP = Object.getOwnPropertyDescriptor, LP = { f: IP && !FP.call({ 1: 2 }, 1) ? function(e) {
	var t = IP(this, e);
	return !!t && t.enumerable;
} : FP }, RP = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, zP = kP({}.toString), BP = kP("".slice), VP = function(e) {
	return BP(zP(e), 8, -1);
}, HP = yP.Object, UP = kP("".split), WP = jP((function() {
	return !HP("z").propertyIsEnumerable(0);
})) ? function(e) {
	return VP(e) == "String" ? UP(e, "") : HP(e);
} : HP, GP = yP.TypeError, KP = function(e) {
	if (e == null) throw GP("Can't call method on " + e);
	return e;
}, qP = function(e) {
	return WP(KP(e));
}, JP = function(e) {
	return typeof e == "object" ? e !== null : AP(e);
}, YP = {}, XP = function(e) {
	return AP(e) ? e : void 0;
}, ZP = function(e, t) {
	return arguments.length < 2 ? XP(YP[e]) || XP(yP[e]) : YP[e] && YP[e][t] || yP[e] && yP[e][t];
}, QP = kP({}.isPrototypeOf), $P = ZP("navigator", "userAgent") || "", eF = yP.process, tF = yP.Deno, nF = eF && eF.versions || tF && tF.version, rF = nF && nF.v8;
rF && (_P = (gP = rF.split("."))[0] > 0 && gP[0] < 4 ? 1 : +(gP[0] + gP[1])), !_P && $P && (!(gP = $P.match(/Edge\/(\d+)/)) || gP[1] >= 74) && (gP = $P.match(/Chrome\/(\d+)/)) && (_P = +gP[1]);
var iF = _P, aF = !!Object.getOwnPropertySymbols && !jP((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && iF && iF < 41;
})), oF = aF && !Symbol.sham && typeof Symbol.iterator == "symbol", Tse = yP.Object, sF = oF ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = ZP("Symbol");
	return AP(t) && QP(t.prototype, Tse(e));
}, Ese = yP.String, Dse = yP.TypeError, cF = function(e) {
	if (AP(e)) return e;
	throw Dse(function(e) {
		try {
			return Ese(e);
		} catch {
			return "Object";
		}
	}(e) + " is not a function");
}, Ose = yP.TypeError, kse = Object.defineProperty, lF = yP["__core-js_shared__"] || function(e, t) {
	try {
		kse(yP, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		yP[e] = t;
	}
	return t;
}("__core-js_shared__", {}), uF = uD((function(e) {
	(e.exports = function(e, t) {
		return lF[e] || (lF[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "pure",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), Ase = yP.Object, dF = function(e) {
	return Ase(KP(e));
}, jse = kP({}.hasOwnProperty), fF = Object.hasOwn || function(e, t) {
	return jse(dF(e), t);
}, Mse = 0, Nse = Math.random(), Pse = kP(1 .toString), pF = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + Pse(++Mse + Nse, 36);
}, mF = uF("wks"), hF = yP.Symbol, gF = hF && hF.for, Fse = oF ? hF : hF && hF.withoutSetter || pF, _F = function(e) {
	if (!fF(mF, e) || !aF && typeof mF[e] != "string") {
		var t = "Symbol." + e;
		aF && fF(hF, e) ? mF[e] = hF[e] : mF[e] = oF && gF ? gF(t) : Fse(t);
	}
	return mF[e];
}, Ise = yP.TypeError, Lse = _F("toPrimitive"), vF = function(e) {
	var t = function(e, t) {
		if (!JP(e) || sF(e)) return e;
		var n, r, i = (n = e[Lse]) == null ? void 0 : cF(n);
		if (i) {
			if (t === void 0 && (t = "default"), r = PP(i, e, t), !JP(r) || sF(r)) return r;
			throw Ise("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && AP(n = e.toString) && !JP(r = PP(n, e)) || AP(n = e.valueOf) && !JP(r = PP(n, e)) || t !== "string" && AP(n = e.toString) && !JP(r = PP(n, e))) return r;
			throw Ose("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return sF(t) ? t : t + "";
}, yF = yP.document, Rse = JP(yF) && JP(yF.createElement), bF = function(e) {
	return Rse ? yF.createElement(e) : {};
}, xF = !MP && !jP((function() {
	return Object.defineProperty(bF("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), SF = Object.getOwnPropertyDescriptor, CF = { f: MP ? SF : function(e, t) {
	if (e = qP(e), t = vF(t), xF) try {
		return SF(e, t);
	} catch {}
	if (fF(e, t)) return RP(!PP(LP.f, e, t), e[t]);
} }, zse = /#|\.prototype\./, wF = function(e, t) {
	var n = Vse[Bse(e)];
	return n == Use || n != Hse && (AP(t) ? jP(t) : !!t);
}, Bse = wF.normalize = function(e) {
	return String(e).replace(zse, ".").toLowerCase();
}, Vse = wF.data = {}, Hse = wF.NATIVE = "N", Use = wF.POLYFILL = "P", Wse = wF, TF = kP(kP.bind), EF = function(e, t) {
	return cF(e), t === void 0 ? e : TF ? TF(e, t) : function() {
		return e.apply(t, arguments);
	};
}, Gse = yP.String, Kse = yP.TypeError, DF = function(e) {
	if (JP(e)) return e;
	throw Kse(Gse(e) + " is not an object");
}, qse = yP.TypeError, OF = Object.defineProperty, kF = { f: MP ? OF : function(e, t, n) {
	if (DF(e), t = vF(t), DF(n), xF) try {
		return OF(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw qse("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, AF = MP ? function(e, t, n) {
	return kF.f(e, t, RP(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, Jse = CF.f, Yse = function(e) {
	var t = function(n, r, i) {
		if (this instanceof t) {
			switch (arguments.length) {
				case 0: return new e();
				case 1: return new e(n);
				case 2: return new e(n, r);
			}
			return new e(n, r, i);
		}
		return wP(e, this, arguments);
	};
	return t.prototype = e.prototype, t;
}, jF = function(e, t) {
	var n, r, i, a, o, s, c, l, u = e.target, d = e.global, f = e.stat, p = e.proto, m = d ? yP : f ? yP[u] : (yP[u] || {}).prototype, h = d ? YP : YP[u] || AF(YP, u, {})[u], g = h.prototype;
	for (i in t) n = !Wse(d ? i : u + (f ? "." : "#") + i, e.forced) && m && fF(m, i), o = h[i], n && (s = e.noTargetGet ? (l = Jse(m, i)) && l.value : m[i]), a = n && s ? s : t[i], n && typeof o == typeof a || (c = e.bind && n ? EF(a, yP) : e.wrap && n ? Yse(a) : p && AP(a) ? kP(a) : a, (e.sham || a && a.sham || o && o.sham) && AF(c, "sham", !0), AF(h, i, c), p && (fF(YP, r = u + "Prototype") || AF(YP, r, {}), AF(YP[r], i, a), e.real && g && !g[i] && AF(g, i, a)));
}, MF = Array.isArray || function(e) {
	return VP(e) == "Array";
}, Xse = Math.ceil, Zse = Math.floor, NF = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? Zse : Xse)(t);
}, Qse = Math.min, PF = function(e) {
	return (t = e.length) > 0 ? Qse(NF(t), 9007199254740991) : 0;
	var t;
}, FF = function(e, t, n) {
	var r = vF(t);
	r in e ? kF.f(e, r, RP(0, n)) : e[r] = n;
}, IF = {};
IF[_F("toStringTag")] = "z";
var LF = String(IF) === "[object z]", $se = _F("toStringTag"), ece = yP.Object, tce = VP(function() {
	return arguments;
}()) == "Arguments", RF = LF ? VP : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = ece(e), $se)) == "string" ? n : tce ? VP(t) : (r = VP(t)) == "Object" && AP(t.callee) ? "Arguments" : r;
}, nce = kP(Function.toString);
AP(lF.inspectSource) || (lF.inspectSource = function(e) {
	return nce(e);
});
var zF = lF.inspectSource, BF = function() {}, rce = [], VF = ZP("Reflect", "construct"), HF = /^\s*(?:class|function)\b/, ice = kP(HF.exec), ace = !HF.exec(BF), UF = function(e) {
	if (!AP(e)) return !1;
	try {
		return VF(BF, rce, e), !0;
	} catch {
		return !1;
	}
}, oce = !VF || jP((function() {
	var e;
	return UF(UF.call) || !UF(Object) || !UF((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!AP(e)) return !1;
	switch (RF(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return ace || !!ice(HF, zF(e));
} : UF, sce = _F("species"), WF = yP.Array, GF = function(e, t) {
	return new (function(e) {
		var t;
		return MF(e) && (t = e.constructor, (oce(t) && (t === WF || MF(t.prototype)) || JP(t) && (t = t[sce]) === null) && (t = void 0)), t === void 0 ? WF : t;
	}(e))(t === 0 ? 0 : t);
}, cce = _F("species"), KF = _F("isConcatSpreadable"), qF = yP.TypeError, lce = iF >= 51 || !jP((function() {
	var e = [];
	return e[KF] = !1, e.concat()[0] !== e;
})), uce = iF >= 51 || !jP((function() {
	var e = [];
	return (e.constructor = {})[cce] = function() {
		return { foo: 1 };
	}, e.concat(Boolean).foo !== 1;
})), dce = function(e) {
	if (!JP(e)) return !1;
	var t = e[KF];
	return t === void 0 ? MF(e) : !!t;
};
jF({
	target: "Array",
	proto: !0,
	forced: !lce || !uce
}, { concat: function(e) {
	var t, n, r, i, a, o = dF(this), s = GF(o, 0), c = 0;
	for (t = -1, r = arguments.length; t < r; t++) if (dce(a = t === -1 ? o : arguments[t])) {
		if (c + (i = PF(a)) > 9007199254740991) throw qF("Maximum allowed index exceeded");
		for (n = 0; n < i; n++, c++) n in a && FF(s, c, a[n]);
	} else {
		if (c >= 9007199254740991) throw qF("Maximum allowed index exceeded");
		FF(s, c++, a);
	}
	return s.length = c, s;
} });
var JF, fce = yP.String, YF = function(e) {
	if (RF(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return fce(e);
}, pce = Math.max, mce = Math.min, XF = function(e, t) {
	var n = NF(e);
	return n < 0 ? pce(n + t, 0) : mce(n, t);
}, ZF = function(e) {
	return function(t, n, r) {
		var i, a = qP(t), o = PF(a), s = XF(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}, hce = {
	includes: ZF(!0),
	indexOf: ZF(!1)
}, QF = {}, gce = hce.indexOf, $F = kP([].push), eI = function(e, t) {
	var n, r = qP(e), i = 0, a = [];
	for (n in r) !fF(QF, n) && fF(r, n) && $F(a, n);
	for (; t.length > i;) fF(r, n = t[i++]) && (~gce(a, n) || $F(a, n));
	return a;
}, tI = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], nI = Object.keys || function(e) {
	return eI(e, tI);
}, _ce = MP ? Object.defineProperties : function(e, t) {
	DF(e);
	for (var n, r = qP(t), i = nI(t), a = i.length, o = 0; a > o;) kF.f(e, n = i[o++], r[n]);
	return e;
}, vce = ZP("document", "documentElement"), rI = uF("keys"), iI = function(e) {
	return rI[e] || (rI[e] = pF(e));
}, aI = iI("IE_PROTO"), oI = function() {}, sI = function(e) {
	return "<script>" + e + "<\/script>";
}, cI = function(e) {
	e.write(sI("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, lI = function() {
	try {
		JF = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	lI = typeof document < "u" ? document.domain && JF ? cI(JF) : ((t = bF("iframe")).style.display = "none", vce.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(sI("document.F=Object")), e.close(), e.F) : cI(JF);
	for (var n = tI.length; n--;) delete lI.prototype[tI[n]];
	return lI();
};
QF[aI] = !0;
var uI, dI, fI, pI = Object.create || function(e, t) {
	var n;
	return e === null ? n = lI() : (oI.prototype = DF(e), n = new oI(), oI.prototype = null, n[aI] = e), t === void 0 ? n : _ce(n, t);
}, yce = tI.concat("length", "prototype"), mI = { f: Object.getOwnPropertyNames || function(e) {
	return eI(e, yce);
} }, bce = yP.Array, xce = Math.max, hI = mI.f, gI = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], _I = { f: function(e) {
	return gI && VP(e) == "Window" ? function(e) {
		try {
			return hI(e);
		} catch {
			return function(e, t, n) {
				for (var r = PF(e), i = XF(void 0, r), a = XF(r, r), o = bce(xce(a - i, 0)), s = 0; i < a; i++, s++) FF(o, s, e[i]);
				return o.length = s, o;
			}(gI);
		}
	}(e) : hI(qP(e));
} }, vI = { f: Object.getOwnPropertySymbols }, Sce = kP([].slice), yI = function(e, t, n, r) {
	r && r.enumerable ? e[t] = n : AF(e, t, n);
}, bI = { f: _F }, Cce = kF.f, xI = function(e) {
	var t = YP.Symbol ||= {};
	fF(t, e) || Cce(t, e, { value: bI.f(e) });
}, wce = LF ? {}.toString : function() {
	return "[object " + RF(this) + "]";
}, Tce = kF.f, SI = _F("toStringTag"), CI = function(e, t, n, r) {
	if (e) {
		var i = n ? e : e.prototype;
		fF(i, SI) || Tce(i, SI, {
			configurable: !0,
			value: t
		}), r && !LF && AF(i, "toString", wce);
	}
}, wI = yP.WeakMap, Ece = AP(wI) && /native code/.test(zF(wI)), TI = yP.TypeError, Dce = yP.WeakMap;
if (Ece || lF.state) {
	var EI = lF.state ||= new Dce(), Oce = kP(EI.get), DI = kP(EI.has), kce = kP(EI.set);
	uI = function(e, t) {
		if (DI(EI, e)) throw new TI("Object already initialized");
		return t.facade = e, kce(EI, e, t), t;
	}, dI = function(e) {
		return Oce(EI, e) || {};
	}, fI = function(e) {
		return DI(EI, e);
	};
} else {
	var OI = iI("state");
	QF[OI] = !0, uI = function(e, t) {
		if (fF(e, OI)) throw new TI("Object already initialized");
		return t.facade = e, AF(e, OI, t), t;
	}, dI = function(e) {
		return fF(e, OI) ? e[OI] : {};
	}, fI = function(e) {
		return fF(e, OI);
	};
}
var kI = {
	set: uI,
	get: dI,
	has: fI,
	enforce: function(e) {
		return fI(e) ? dI(e) : uI(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!JP(t) || (n = dI(t)).type !== e) throw TI("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, AI = kP([].push), jI = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = dF(c), h = WP(m), g = EF(l, u), _ = PF(h), v = 0, y = d || GF, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: AI(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: AI(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, MI = [
	jI(0),
	jI(1),
	jI(2),
	jI(3),
	jI(4),
	jI(5),
	jI(6),
	jI(7)
][0], NI = iI("hidden"), PI = _F("toPrimitive"), Ace = kI.set, FI = kI.getterFor("Symbol"), II = Object.prototype, LI = yP.Symbol, RI = LI && LI.prototype, zI = yP.TypeError, BI = yP.QObject, VI = ZP("JSON", "stringify"), HI = CF.f, UI = kF.f, WI = _I.f, jce = LP.f, GI = kP([].push), KI = uF("symbols"), qI = uF("op-symbols"), JI = uF("string-to-symbol-registry"), YI = uF("symbol-to-string-registry"), Mce = uF("wks"), XI = !BI || !BI.prototype || !BI.prototype.findChild, ZI = MP && jP((function() {
	return pI(UI({}, "a", { get: function() {
		return UI(this, "a", { value: 7 }).a;
	} })).a != 7;
})) ? function(e, t, n) {
	var r = HI(II, t);
	r && delete II[t], UI(e, t, n), r && e !== II && UI(II, t, r);
} : UI, QI = function(e, t) {
	var n = KI[e] = pI(RI);
	return Ace(n, {
		type: "Symbol",
		tag: e,
		description: t
	}), MP || (n.description = t), n;
}, $I = function(e, t, n) {
	e === II && $I(qI, t, n), DF(e);
	var r = vF(t);
	return DF(n), fF(KI, r) ? (n.enumerable ? (fF(e, NI) && e[NI][r] && (e[NI][r] = !1), n = pI(n, { enumerable: RP(0, !1) })) : (fF(e, NI) || UI(e, NI, RP(1, {})), e[NI][r] = !0), ZI(e, r, n)) : UI(e, r, n);
}, eL = function(e, t) {
	DF(e);
	var n = qP(t);
	return MI(nI(n).concat(iL(n)), (function(t) {
		MP && !PP(tL, n, t) || $I(e, t, n[t]);
	})), e;
}, tL = function(e) {
	var t = vF(e), n = PP(jce, this, t);
	return !(this === II && fF(KI, t) && !fF(qI, t)) && (!(n || !fF(this, t) || !fF(KI, t) || fF(this, NI) && this[NI][t]) || n);
}, nL = function(e, t) {
	var n = qP(e), r = vF(t);
	if (n !== II || !fF(KI, r) || fF(qI, r)) {
		var i = HI(n, r);
		return !i || !fF(KI, r) || fF(n, NI) && n[NI][r] || (i.enumerable = !0), i;
	}
}, rL = function(e) {
	var t = WI(qP(e)), n = [];
	return MI(t, (function(e) {
		fF(KI, e) || fF(QF, e) || GI(n, e);
	})), n;
}, iL = function(e) {
	var t = e === II, n = WI(t ? qI : qP(e)), r = [];
	return MI(n, (function(e) {
		!fF(KI, e) || t && !fF(II, e) || GI(r, KI[e]);
	})), r;
};
if (aF || (RI = (LI = function() {
	if (QP(RI, this)) throw zI("Symbol is not a constructor");
	var e = arguments.length && arguments[0] !== void 0 ? YF(arguments[0]) : void 0, t = pF(e), n = function(e) {
		this === II && PP(n, qI, e), fF(this, NI) && fF(this[NI], t) && (this[NI][t] = !1), ZI(this, t, RP(1, e));
	};
	return MP && XI && ZI(II, t, {
		configurable: !0,
		set: n
	}), QI(t, e);
}).prototype, yI(RI, "toString", (function() {
	return FI(this).tag;
})), yI(LI, "withoutSetter", (function(e) {
	return QI(pF(e), e);
})), LP.f = tL, kF.f = $I, CF.f = nL, mI.f = _I.f = rL, vI.f = iL, bI.f = function(e) {
	return QI(_F(e), e);
}, MP && UI(RI, "description", {
	configurable: !0,
	get: function() {
		return FI(this).description;
	}
})), jF({
	global: !0,
	wrap: !0,
	forced: !aF,
	sham: !aF
}, { Symbol: LI }), MI(nI(Mce), (function(e) {
	xI(e);
})), jF({
	target: "Symbol",
	stat: !0,
	forced: !aF
}, {
	for: function(e) {
		var t = YF(e);
		if (fF(JI, t)) return JI[t];
		var n = LI(t);
		return JI[t] = n, YI[n] = t, n;
	},
	keyFor: function(e) {
		if (!sF(e)) throw zI(e + " is not a symbol");
		if (fF(YI, e)) return YI[e];
	},
	useSetter: function() {
		XI = !0;
	},
	useSimple: function() {
		XI = !1;
	}
}), jF({
	target: "Object",
	stat: !0,
	forced: !aF,
	sham: !MP
}, {
	create: function(e, t) {
		return t === void 0 ? pI(e) : eL(pI(e), t);
	},
	defineProperty: $I,
	defineProperties: eL,
	getOwnPropertyDescriptor: nL
}), jF({
	target: "Object",
	stat: !0,
	forced: !aF
}, {
	getOwnPropertyNames: rL,
	getOwnPropertySymbols: iL
}), jF({
	target: "Object",
	stat: !0,
	forced: jP((function() {
		vI.f(1);
	}))
}, { getOwnPropertySymbols: function(e) {
	return vI.f(dF(e));
} }), VI && jF({
	target: "JSON",
	stat: !0,
	forced: !aF || jP((function() {
		var e = LI();
		return VI([e]) != "[null]" || VI({ a: e }) != "{}" || VI(Object(e)) != "{}";
	}))
}, { stringify: function(e, t, n) {
	var r = Sce(arguments), i = t;
	if ((JP(t) || e !== void 0) && !sF(e)) return MF(t) || (t = function(e, t) {
		if (AP(i) && (t = PP(i, this, e, t)), !sF(t)) return t;
	}), r[1] = t, wP(VI, null, r);
} }), !RI[PI]) {
	var Nce = RI.valueOf;
	yI(RI, PI, (function(e) {
		return PP(Nce, this);
	}));
}
CI(LI, "Symbol"), QF[NI] = !0, xI("asyncIterator"), xI("hasInstance"), xI("isConcatSpreadable"), xI("iterator"), xI("match"), xI("matchAll"), xI("replace"), xI("search"), xI("species"), xI("split"), xI("toPrimitive"), xI("toStringTag"), xI("unscopables"), CI(yP.JSON, "JSON", !0);
var aL, oL, sL, Pce = YP.Symbol, cL = {}, lL = Function.prototype, Fce = MP && Object.getOwnPropertyDescriptor, uL = fF(lL, "name"), Ice = {
	EXISTS: uL,
	PROPER: uL && function() {}.name === "something",
	CONFIGURABLE: uL && (!MP || MP && Fce(lL, "name").configurable)
}, Lce = !jP((function() {
	function e() {}
	return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
})), dL = iI("IE_PROTO"), fL = yP.Object, Rce = fL.prototype, pL = Lce ? fL.getPrototypeOf : function(e) {
	var t = dF(e);
	if (fF(t, dL)) return t[dL];
	var n = t.constructor;
	return AP(n) && t instanceof n ? n.prototype : t instanceof fL ? Rce : null;
}, mL = _F("iterator"), hL = !1;
[].keys && ("next" in (sL = [].keys()) ? (oL = pL(pL(sL))) !== Object.prototype && (aL = oL) : hL = !0), aL = aL == null || jP((function() {
	var e = {};
	return aL[mL].call(e) !== e;
})) ? {} : pI(aL), AP(aL[mL]) || yI(aL, mL, (function() {
	return this;
}));
var gL = {
	IteratorPrototype: aL,
	BUGGY_SAFARI_ITERATORS: hL
}, zce = gL.IteratorPrototype, Bce = function() {
	return this;
};
yP.String, yP.TypeError, Object.setPrototypeOf || "__proto__" in {} && function() {
	var e = {};
	try {
		kP(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set)(e, []), e instanceof Array;
	} catch {}
}();
var Vce = Ice.PROPER, _L = gL.BUGGY_SAFARI_ITERATORS, vL = _F("iterator"), Hce = function() {
	return this;
}, yL = function(e, t, n, r, i, a, o) {
	(function(e, t, n, r) {
		var i = t + " Iterator";
		e.prototype = pI(zce, { next: RP(1, n) }), CI(e, i, !1, !0), cL[i] = Bce;
	})(n, t, r);
	var s, c, l, u = function(e) {
		if (e === i && h) return h;
		if (!_L && e in p) return p[e];
		switch (e) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new n(this, e);
			};
		}
		return function() {
			return new n(this);
		};
	}, d = t + " Iterator", f = !1, p = e.prototype, m = p[vL] || p["@@iterator"] || i && p[i], h = !_L && m || u(i), g = t == "Array" && p.entries || m;
	if (g && (s = pL(g.call(new e()))) !== Object.prototype && s.next && (CI(s, d, !0, !0), cL[d] = Hce), Vce && i == "values" && m && m.name !== "values" && (f = !0, h = function() {
		return PP(m, this);
	}), i) if (c = {
		values: u("values"),
		keys: a ? h : u("keys"),
		entries: u("entries")
	}, o) for (l in c) (_L || f || !(l in p)) && yI(p, l, c[l]);
	else jF({
		target: t,
		proto: !0,
		forced: _L || f
	}, c);
	return o && p[vL] !== h && yI(p, vL, h, { name: i }), cL[t] = h, c;
}, Uce = kI.set, Wce = kI.getterFor("Array Iterator");
yL(Array, "Array", (function(e, t) {
	Uce(this, {
		type: "Array Iterator",
		target: qP(e),
		index: 0,
		kind: t
	});
}), (function() {
	var e = Wce(this), t = e.target, n = e.kind, r = e.index++;
	return !t || r >= t.length ? (e.target = void 0, {
		value: void 0,
		done: !0
	}) : n == "keys" ? {
		value: r,
		done: !1
	} : n == "values" ? {
		value: t[r],
		done: !1
	} : {
		value: [r, t[r]],
		done: !1
	};
}), "values"), cL.Arguments = cL.Array;
var bL = _F("toStringTag");
for (var xL in {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}) {
	var SL = yP[xL], CL = SL && SL.prototype;
	CL && RF(CL) !== bL && AF(CL, bL, xL), cL[xL] = cL.Array;
}
var Gce = Pce;
xI("asyncDispose"), xI("dispose"), xI("matcher"), xI("metadata"), xI("observable"), xI("patternMatch"), xI("replaceAll");
var wL = Gce, Kce = kP("".charAt), TL = kP("".charCodeAt), qce = kP("".slice), Jce = function(e) {
	return function(t, n) {
		var r, i, a = YF(KP(t)), o = NF(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = TL(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = TL(a, o + 1)) < 56320 || i > 57343 ? e ? Kce(a, o) : r : e ? qce(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}(!0), Yce = kI.set, Xce = kI.getterFor("String Iterator");
yL(String, "String", (function(e) {
	Yce(this, {
		type: "String Iterator",
		string: YF(e),
		index: 0
	});
}), (function() {
	var e, t = Xce(this), n = t.string, r = t.index;
	return r >= n.length ? {
		value: void 0,
		done: !0
	} : (e = Jce(n, r), t.index += e.length, {
		value: e,
		done: !1
	});
}));
var Zce = bI.f("iterator"), EL = function(e) {
	return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}(uD((function(e) {
	function t(n) {
		return typeof wL == "function" && typeof Zce == "symbol" ? (e.exports = t = function(e) {
			return typeof e;
		}, e.exports.default = e.exports, e.exports.__esModule = !0) : (e.exports = t = function(e) {
			return e && typeof wL == "function" && e.constructor === wL && e !== wL.prototype ? "symbol" : typeof e;
		}, e.exports.default = e.exports, e.exports.__esModule = !0), t(n);
	}
	e.exports = t, e.exports.default = e.exports, e.exports.__esModule = !0;
}))), Qce = RO.EXISTS, $ce = xO.f, DL = Function.prototype, ele = Y(DL.toString), OL = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, tle = Y(OL.exec);
hD && !Qce && $ce(DL, "name", {
	configurable: !0,
	get: function() {
		try {
			return tle(OL, ele(this))[1];
		} catch {
			return "";
		}
	}
});
var kL = function() {
	function e() {
		this.tag = "select", this.width = 80;
	}
	return e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.getValue = function(e) {
		var t = this.mark, n = P.marks(e);
		return n && n[t] ? n[t] : "";
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || (this.mark, !!sj(P.nodes(e, {
			match: function(t) {
				return K.getNodeType(t) === "pre" || !!P.isVoid(e, t);
			},
			universal: !0
		}), 1)[0]);
	}, e.prototype.exec = function(e, t) {
		var n = this.mark;
		t ? e.addMark(n, t) : e.removeMark(n);
	}, e;
}(), nle = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("fontSize.title"), t.iconSvg = Lj, t.mark = "fontSize", t;
	}
	return nj(t, e), t.prototype.getOptions = function(e) {
		var t = [], n = e.getMenuConfig(this.mark).fontSizeList, r = n === void 0 ? [] : n;
		t.push({
			text: q("fontSize.default"),
			value: ""
		}), r.forEach((function(e) {
			if (typeof e == "string") t.push({
				text: e,
				value: e
			});
			else if (EL(e) === "object") {
				var n = e.name, r = e.value;
				t.push({
					text: n,
					value: r
				});
			}
		}));
		var i = this.getValue(e);
		return t.forEach((function(e) {
			e.value === i ? e.selected = !0 : delete e.selected;
		})), t;
	}, t;
}(kL), rle = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("fontFamily.title"), t.iconSvg = Rj, t.mark = "fontFamily", t.selectPanelWidth = 150, t;
	}
	return nj(t, e), t.prototype.getOptions = function(e) {
		var t = [], n = e.getMenuConfig(this.mark).fontFamilyList, r = n === void 0 ? [] : n;
		t.push({
			text: q("fontFamily.default"),
			value: ""
		}), r.forEach((function(e) {
			if (typeof e == "string") t.push({
				text: e,
				value: e,
				styleForRenderMenuList: { "font-family": e }
			});
			else if (EL(e) === "object") {
				var n = e.name, r = e.value;
				t.push({
					text: n,
					value: r,
					styleForRenderMenuList: { "font-family": r }
				});
			}
		}));
		var i = this.getValue(e);
		return t.forEach((function(e) {
			e.value === i ? e.selected = !0 : delete e.selected;
		})), t;
	}, t;
}(kL), ile = {
	renderStyle: function(e, t) {
		var n = e, r = n.fontSize, i = n.fontFamily, a = t;
		return r && qM(a, { fontSize: r }), i && qM(a, { fontFamily: i }), a;
	},
	styleToHtml: function(e, t) {
		if (!z.isText(e)) return t;
		var n, r = e, i = r.fontSize, a = r.fontFamily;
		return i || a ? ((XA(t) || QA(n = V(t)) !== "span") && (n = V("<span>" + t + "</span>")), i && n.css("font-size", i), a && n.css("font-family", a), ZA(n)) : t;
	},
	preParseHtml: [mP],
	parseStyleHtml: function(e, t, n) {
		var r = V(e);
		if (!z.isText(t)) return t;
		var i = t, a = n.getMenuConfig("fontSize").fontSizeList, o = a === void 0 ? [] : a, s = $A(r, "font-size"), c = o.find((function(e) {
			return e.value && e.value === s;
		})) || o.includes(s);
		s && c && (i.fontSize = s);
		var l = n.getMenuConfig("fontFamily").fontFamilyList, u = l === void 0 ? [] : l, d = $A(r, "font-family").replace(/"/g, ""), f = u.find((function(e) {
			return e.value && e.value === d;
		})) || u.includes(d);
		return d && f && (i.fontFamily = d), i;
	},
	menus: [{
		key: "fontSize",
		factory: function() {
			return new nle();
		},
		config: { fontSizeList: [
			"12px",
			{
				name: "13px",
				value: "13px"
			},
			"14px",
			"15px",
			"16px",
			"19px",
			{
				name: "22px",
				value: "22px"
			},
			"24px",
			"29px",
			"32px",
			"40px",
			"48px"
		] }
	}, {
		key: "fontFamily",
		factory: function() {
			return new rle();
		},
		config: { fontFamilyList: [
			"黑体",
			{
				name: "仿宋",
				value: "仿宋"
			},
			"楷体",
			"标楷体",
			"华文仿宋",
			"华文楷体",
			{
				name: "宋体",
				value: "宋体"
			},
			"微软雅黑",
			"Arial",
			"Tahoma",
			"Verdana",
			"Times New Roman",
			"Courier New"
		] }
	}]
}, ale = {
	selector: "p,h1,h2,h3,h4,h5",
	preParseHtml: function(e) {
		var t = V(e), n = $A(t, "padding-left");
		return /\dem/.test(n) && t.css("text-indent", "2em"), /\dpx/.test(n) && parseInt(n, 10) % 32 == 0 && t.css("text-indent", "2em"), t[0];
	}
}, AL = function() {
	function e() {
		this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		var t = sj(P.nodes(e, {
			match: function(e) {
				return !!e.indent;
			},
			universal: !0
		}), 1)[0];
		return t == null ? "" : sj(t, 1)[0].indent || "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.getMatchNode = function(e) {
		var t = sj(P.nodes(e, {
			match: function(e) {
				var t = K.getNodeType(e);
				return t === "paragraph" || !!t.startsWith("header");
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
		return t == null ? null : t[0];
	}, e;
}(), ole = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("indent.decrease"), t.iconSvg = zj, t;
	}
	return nj(t, e), t.prototype.isDisabled = function(e) {
		var t = this.getMatchNode(e);
		return t == null || !t.indent;
	}, t.prototype.exec = function(e, t) {
		B.setNodes(e, { indent: null }, { match: function(e) {
			return N.isElement(e);
		} });
	}, t;
}(AL), sle = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("indent.increase"), t.iconSvg = Bj, t;
	}
	return nj(t, e), t.prototype.isDisabled = function(e) {
		var t = this.getMatchNode(e);
		return t == null || !!t.indent;
	}, t.prototype.exec = function(e, t) {
		B.setNodes(e, { indent: "2em" }, {
			match: function(e) {
				return N.isElement(e);
			},
			mode: "highest"
		});
	}, t;
}(AL), cle = {
	renderStyle: function(e, t) {
		if (!N.isElement(e)) return t;
		var n = e.indent, r = t;
		return n && qM(r, { textIndent: n }), r;
	},
	styleToHtml: function(e, t) {
		if (!N.isElement(e)) return t;
		var n = e.indent;
		if (!n) return t;
		var r = V(t);
		return r.css("text-indent", n), ZA(r);
	},
	preParseHtml: [ale],
	parseStyleHtml: function(e, t, n) {
		var r = V(e);
		if (!N.isElement(t)) return t;
		var i = t, a = $A(r, "text-indent");
		return a && parseInt(a, 10) > 0 && (i.indent = a), i;
	},
	menus: [{
		key: "indent",
		factory: function() {
			return new sle();
		}
	}, {
		key: "delIndent",
		factory: function() {
			return new ole();
		}
	}]
}, jL = function() {
	function e() {
		this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.getMatchNode = function(e) {
		var t = sj(P.nodes(e, {
			match: function(e) {
				var t = K.getNodeType(e);
				return t === "paragraph" || t === "blockquote" || !!t.startsWith("header");
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
		return t == null ? null : t[0];
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !!K.getSelectedElems(e).some((function(t) {
			if (P.isVoid(e, t) && P.isBlock(e, t)) return !0;
			var n = t.type;
			return !!["pre", "code"].includes(n) || void 0;
		}));
	}, e;
}(), lle = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("justify.left"), t.iconSvg = Vj, t;
	}
	return nj(t, e), t.prototype.exec = function(e, t) {
		B.setNodes(e, { textAlign: "left" }, { match: function(t) {
			return N.isElement(t) && !e.isInline(t);
		} });
	}, t;
}(jL), ule = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("justify.right"), t.iconSvg = Hj, t;
	}
	return nj(t, e), t.prototype.exec = function(e, t) {
		B.setNodes(e, { textAlign: "right" }, { match: function(t) {
			return N.isElement(t) && !e.isInline(t);
		} });
	}, t;
}(jL), dle = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("justify.center"), t.iconSvg = Uj, t;
	}
	return nj(t, e), t.prototype.exec = function(e, t) {
		B.setNodes(e, { textAlign: "center" }, { match: function(t) {
			return N.isElement(t) && !e.isInline(t);
		} });
	}, t;
}(jL), fle = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.title = q("justify.justify"), t.iconSvg = Wj, t;
	}
	return nj(t, e), t.prototype.exec = function(e, t) {
		B.setNodes(e, { textAlign: "justify" }, { match: function(t) {
			return N.isElement(t) && !e.isInline(t);
		} });
	}, t;
}(jL), ple = {
	renderStyle: function(e, t) {
		if (!N.isElement(e)) return t;
		var n = e.textAlign, r = t;
		return n && qM(r, { textAlign: n }), r;
	},
	styleToHtml: function(e, t) {
		if (!N.isElement(e)) return t;
		var n = e.textAlign;
		if (!n) return t;
		var r = V(t);
		return r.css("text-align", n), ZA(r);
	},
	parseStyleHtml: function(e, t, n) {
		var r = V(e);
		if (!N.isElement(t)) return t;
		var i = t, a = $A(r, "text-align");
		return a && (i.textAlign = a), i;
	},
	menus: [
		{
			key: "justifyLeft",
			factory: function() {
				return new lle();
			}
		},
		{
			key: "justifyRight",
			factory: function() {
				return new ule();
			}
		},
		{
			key: "justifyCenter",
			factory: function() {
				return new dle();
			}
		},
		{
			key: "justifyJustify",
			factory: function() {
				return new fle();
			}
		}
	]
}, mle = function() {
	function e() {
		this.title = q("lineHeight.title"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z\"></path></svg>", this.tag = "select", this.width = 80;
	}
	return e.prototype.getOptions = function(e) {
		var t = [], n = e.getMenuConfig("lineHeight").lineHeightList, r = n === void 0 ? [] : n;
		t.push({
			text: q("lineHeight.default"),
			value: ""
		}), r.forEach((function(e) {
			t.push({
				text: e,
				value: e
			});
		}));
		var i = this.getValue(e);
		return t.forEach((function(e) {
			e.value === i ? e.selected = !0 : delete e.selected;
		})), t;
	}, e.prototype.getMatchNode = function(e) {
		var t = sj(P.nodes(e, {
			match: function(e) {
				var t = K.getNodeType(e);
				return !!t.startsWith("header") || !![
					"paragraph",
					"blockquote",
					"list-item"
				].includes(t);
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
		return t == null ? null : t[0];
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.getValue = function(e) {
		var t = this.getMatchNode(e);
		return t == null ? "" : N.isElement(t) && t.lineHeight || "";
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || this.getMatchNode(e) == null;
	}, e.prototype.exec = function(e, t) {
		B.setNodes(e, { lineHeight: t.toString() }, { mode: "highest" });
	}, e;
}(), hle = {
	renderStyle: function(e, t) {
		if (!N.isElement(e)) return t;
		var n = e.lineHeight, r = t;
		return n && qM(r, { lineHeight: n }), r;
	},
	styleToHtml: function(e, t) {
		if (!N.isElement(e)) return t;
		var n = e.lineHeight;
		if (!n) return t;
		var r = V(t);
		return r.css("line-height", n), ZA(r);
	},
	parseStyleHtml: function(e, t, n) {
		var r = V(e);
		if (!N.isElement(t)) return t;
		var i = t, a = n.getMenuConfig("lineHeight").lineHeightList, o = a === void 0 ? [] : a, s = $A(r, "line-height");
		return s && o.includes(s) && (i.lineHeight = s), i;
	},
	menus: [{
		key: "lineHeight",
		factory: function() {
			return new mle();
		},
		config: { lineHeightList: [
			"1",
			"1.15",
			"1.5",
			"2",
			"2.5",
			"3"
		] }
	}]
}, gle = function() {
	function e() {
		this.title = q("undo.redo"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null;
	}, e.prototype.exec = function(e, t) {
		typeof e.redo == "function" && e.redo();
	}, e;
}(), _le = function() {
	function e() {
		this.title = q("undo.undo"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null;
	}, e.prototype.exec = function(e, t) {
		typeof e.undo == "function" && e.undo();
	}, e;
}(), vle = { menus: [{
	key: "redo",
	factory: function() {
		return new gle();
	}
}, {
	key: "undo",
	factory: function() {
		return new _le();
	}
}] }, yle = {
	type: "divider",
	renderElem: function(e, t, n) {
		return Zd("div", {
			props: {
				contentEditable: !1,
				className: "w-e-textarea-divider"
			},
			dataset: { selected: K.isNodeSelected(n, e) ? "true" : "" },
			style: {},
			on: { mousedown: function(e) {
				return e.preventDefault();
			} }
		}, [Zd("hr")]);
	}
}, ble = function() {
	function e() {
		this.title = q("divider.title"), this.iconSvg = "<svg viewBox=\"0 0 1092 1024\"><path d=\"M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path><path d=\"M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !!K.getSelectedElems(e).some((function(t) {
			if (e.isVoid(t)) return !0;
			var n = K.getNodeType(t);
			return n === "table" || n === "pre" || void 0;
		}));
	}, e.prototype.exec = function(e, t) {
		B.insertNodes(e, {
			type: "divider",
			children: [{ text: "" }]
		}, { mode: "highest" });
	}, e;
}(), xle = {
	renderElems: [yle],
	elemsToHtml: [{
		type: "divider",
		elemToHtml: function(e, t) {
			return "<hr/>";
		}
	}],
	parseElemsHtml: [{
		selector: "hr:not([data-w-e-type])",
		parseElemHtml: function(e, t, n) {
			return {
				type: "divider",
				children: [{ text: "" }]
			};
		}
	}],
	menus: [{
		key: "divider",
		factory: function() {
			return new ble();
		}
	}],
	editorPlugin: function(e) {
		var t = e.isVoid, n = e.normalizeNode, r = e;
		return r.isVoid = function(e) {
			return e.type === "divider" || t(e);
		}, r.normalizeNode = function(e) {
			var t = sj(e, 2), i = t[0], a = t[1];
			if (K.getNodeType(i) !== "divider") return n([i, a]);
			K.isLastNode(r, i) && B.insertNodes(r, K.genEmptyParagraph(), { at: [a[0] + 1] });
		}, r;
	}
}, Sle = dk.map;
ZO({
	target: "Array",
	proto: !0,
	forced: !fk("map")
}, { map: function(e) {
	return Sle(this, e, arguments.length > 1 ? arguments[1] : void 0);
} });
var Cle = Y([].join), wle = jD != Object, Tle = bj("join", ",");
ZO({
	target: "Array",
	proto: !0,
	forced: wle || !Tle
}, { join: function(e) {
	return Cle(PD(this), e === void 0 ? "," : e);
} });
var Ele = function() {
	function e() {
		this.title = q("codeBlock.title"), this.iconSvg = "<svg viewBox=\"0 0 1280 1024\"><path d=\"M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getSelectCodeElem = function(e) {
		var t = K.getSelectedNodeByType(e, "code");
		if (t == null) return null;
		var n = K.getParentNode(e, t);
		return n == null || K.getNodeType(n) !== "pre" ? null : t;
	}, e.prototype.getValue = function(e) {
		var t = this.getSelectCodeElem(e);
		return t == null ? "" : t.language || "";
	}, e.prototype.isActive = function(e) {
		return !!this.getSelectCodeElem(e);
	}, e.prototype.isDisabled = function(e) {
		if (e.selection == null) return !0;
		var t = K.getSelectedElems(e);
		return !!t.some((function(t) {
			return e.isVoid(t);
		})) || !t.some((function(e) {
			var t = K.getNodeType(e);
			if (t === "pre" || t === "paragraph") return !0;
		}));
	}, e.prototype.exec = function(e, t) {
		this.isActive(e) ? this.changeToPlainText(e) : this.changeToCodeBlock(e, t.toString());
	}, e.prototype.changeToPlainText = function(e) {
		var t = this.getSelectCodeElem(e);
		if (t != null) {
			var n = F.string(t);
			B.removeNodes(e, { mode: "highest" });
			var r = n.split("\n").map((function(e) {
				return {
					type: "paragraph",
					children: [{ text: e }]
				};
			}));
			B.insertNodes(e, r, { mode: "highest" });
		}
	}, e.prototype.changeToCodeBlock = function(e, t) {
		var n, r, i = [], a = P.nodes(e, {
			match: function(t) {
				return e.children.includes(t);
			},
			universal: !0
		});
		try {
			for (var o = oj(a), s = o.next(); !s.done; s = o.next()) {
				var c = sj(s.value, 1)[0];
				c && i.push(F.string(c));
			}
		} catch (e) {
			n = { error: e };
		} finally {
			try {
				s && !s.done && (r = o.return) && r.call(o);
			} finally {
				if (n) throw n.error;
			}
		}
		B.removeNodes(e, { mode: "highest" });
		var l = {
			type: "pre",
			children: [{
				type: "code",
				language: t,
				children: [{ text: i.join("\n") }]
			}]
		};
		B.insertNodes(e, l, { mode: "highest" });
	}, e;
}(), Dle = {
	key: "codeBlock",
	factory: function() {
		return new Ele();
	}
};
ZO({
	target: "String",
	proto: !0,
	forced: pj("anchor")
}, { anchor: function(e) {
	return fj(this, "a", "name", e);
} }), Qk("match", (function(e, t, n) {
	return [function(t) {
		var n = ND(this), r = t == null ? void 0 : eO(t, e);
		return r ? _D(r, t, n) : new RegExp(t)[e](mk(n));
	}, function(e) {
		var r = yO(this), i = mk(e), a = n(t, r, i);
		if (a.done) return a.value;
		if (!r.global) return fA(r, i);
		var o = r.unicode;
		r.lastIndex = 0;
		for (var s, c = [], l = 0; (s = fA(r, i)) !== null;) {
			var u = mk(s[0]);
			c[l] = u, u === "" && (r.lastIndex = rA(i, HO(r.lastIndex), o)), l++;
		}
		return l === 0 ? null : c;
	}];
}));
var Ole = {
	menus: [Dle],
	editorPlugin: function(e) {
		var t = e.insertBreak, n = e.normalizeNode, r = e.insertData;
		e.insertNode;
		var i = e;
		return i.insertBreak = function() {
			var e = K.getSelectedNodeByType(i, "code");
			if (e != null) {
				var n = function(e, t) {
					var n = t.selection;
					if (n == null) return "";
					var r = F.string(e), i = n.anchor.offset, a = r.slice(0, i).split("\n"), o = a.length;
					return o === 0 ? "" : a[o - 1];
				}(e, i);
				if (n) {
					var r = n.match(/^\s+/);
					if (r != null && r[0] != null) {
						var a = r[0];
						i.insertText("\n" + a);
						return;
					}
				}
				i.insertText("\n");
			} else t();
		}, i.normalizeNode = function(e) {
			var t = sj(e, 2), r = t[0], a = t[1], o = K.getNodeType(r);
			return o === "code" && a.length <= 1 && B.setNodes(i, { type: "paragraph" }, { at: a }), o === "pre" && (K.isLastNode(i, r) && B.insertNodes(i, K.genEmptyParagraph(), { at: [a[0] + 1] }), K.getNodeType(r.children[0]) !== "code" && (B.unwrapNodes(i), B.setNodes(i, { type: "paragraph" }, { mode: "highest" }))), n([r, a]);
		}, i.insertData = function(e) {
			if (K.getSelectedNodeByType(i, "code") != null) {
				var t = e.getData("text/plain");
				P.insertText(i, t);
			} else r(e);
		}, i;
	},
	renderElems: [{
		type: "pre",
		renderElem: function(e, t, n) {
			return H("pre", null, t);
		}
	}, {
		type: "code",
		renderElem: function(e, t, n) {
			return H("code", null, t);
		}
	}],
	elemsToHtml: [{
		type: "code",
		elemToHtml: function(e, t) {
			return "<code>" + t + "</code>";
		}
	}, {
		type: "pre",
		elemToHtml: function(e, t) {
			return "<pre>" + t + "</pre>";
		}
	}],
	preParseHtml: [{
		selector: "pre>code",
		preParseHtml: function(e) {
			var t = V(e);
			if (QA(t) !== "code") return e;
			var n = t.find("xmp");
			if (n.length === 0) return e;
			var r = n.text();
			return n.remove(), t.text(r), t[0];
		}
	}],
	parseElemsHtml: [{
		selector: "pre:not([data-w-e-type])>code",
		parseElemHtml: function(e, t, n) {
			return {
				type: "code",
				language: "",
				children: [{ text: V(e)[0].textContent || "" }]
			};
		}
	}, {
		selector: "pre:not([data-w-e-type])",
		parseElemHtml: function(e, t, n) {
			var r = V(e);
			return (t = t.filter((function(e) {
				return K.getNodeType(e) === "code";
			}))).length === 0 && (t = [{
				type: "code",
				language: "",
				children: [{ text: r[0].textContent || "" }]
			}]), {
				type: "pre",
				children: t.filter((function(e) {
					return K.getNodeType(e) === "code";
				}))
			};
		}
	}]
}, kle = function() {
	function e() {
		this.title = q("fullScreen.title"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z\"></path></svg>", this.tag = "button", this.alwaysEnable = !0;
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return e.isFullScreen;
	}, e.prototype.isDisabled = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {
		e.isFullScreen ? e.unFullScreen() : e.fullScreen();
	}, e;
}(), Ale = { menus: [{
	key: "fullScreen",
	factory: function() {
		return new kle();
	}
}] }, jle = function() {
	function e() {
		this.title = q("common.enter"), this.iconSvg = "<svg viewBox=\"0 0 1255 1024\"><path d=\"M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !!R.isExpanded(t);
	}, e.prototype.exec = function(e, t) {
		var n = e.selection;
		if (n != null) {
			var r = [n.anchor.path[0]];
			B.insertNodes(e, {
				type: "paragraph",
				children: [{ text: "" }]
			}, { at: r }), e.select(P.start(e, r));
		}
	}, e;
}(), Mle = [
	tM,
	$M,
	ile,
	cle,
	ple,
	hle,
	ZN,
	xle,
	fP,
	bN,
	Ole,
	uP,
	HM,
	lj,
	eP,
	vle,
	Ale,
	{ menus: [{
		key: "enter",
		factory: function() {
			return new jle();
		}
	}] }
];
HE("en", { listModule: {
	unOrderedList: "Unordered list",
	orderedList: "Ordered list"
} }), HE("zh-CN", { listModule: {
	unOrderedList: "无序列表",
	orderedList: "有序列表"
} });
var ML = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function NL(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var PL, FL, IL = function(e) {
	return e && e.Math == Math && e;
}, X = IL(typeof globalThis == "object" && globalThis) || IL(typeof window == "object" && window) || IL(typeof self == "object" && self) || IL(typeof ML == "object" && ML) || function() {
	return this;
}() || Function("return this")(), LL = Function.prototype, RL = LL.bind, zL = LL.call, Nle = RL && RL.bind(zL), BL = RL ? function(e) {
	return e && Nle(zL, e);
} : function(e) {
	return e && function() {
		return zL.apply(e, arguments);
	};
}, VL = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, Ple = BL({}.toString), Fle = BL("".slice), HL = function(e) {
	return Fle(Ple(e), 8, -1);
}, UL = X.Object, Ile = BL("".split), WL = VL((function() {
	return !UL("z").propertyIsEnumerable(0);
})) ? function(e) {
	return HL(e) == "String" ? Ile(e, "") : UL(e);
} : UL, Lle = X.TypeError, GL = function(e) {
	if (e == null) throw Lle("Can't call method on " + e);
	return e;
}, KL = function(e) {
	return WL(GL(e));
}, Rle = Object.defineProperty, qL = function(e, t) {
	try {
		Rle(X, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		X[e] = t;
	}
	return t;
}, JL = X["__core-js_shared__"] || qL("__core-js_shared__", {}), YL = NL((function(e) {
	(e.exports = function(e, t) {
		return JL[e] || (JL[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), zle = X.Object, XL = function(e) {
	return zle(GL(e));
}, Ble = BL({}.hasOwnProperty), ZL = Object.hasOwn || function(e, t) {
	return Ble(XL(e), t);
}, Vle = 0, Hle = Math.random(), Ule = BL(1 .toString), QL = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + Ule(++Vle + Hle, 36);
}, $L = function(e) {
	return typeof e == "function";
}, Wle = function(e) {
	return $L(e) ? e : void 0;
}, eR = function(e, t) {
	return arguments.length < 2 ? Wle(X[e]) : X[e] && X[e][t];
}, tR = eR("navigator", "userAgent") || "", nR = X.process, rR = X.Deno, iR = nR && nR.versions || rR && rR.version, aR = iR && iR.v8;
aR && (FL = (PL = aR.split("."))[0] > 0 && PL[0] < 4 ? 1 : +(PL[0] + PL[1])), !FL && tR && (!(PL = tR.match(/Edge\/(\d+)/)) || PL[1] >= 74) && (PL = tR.match(/Chrome\/(\d+)/)) && (FL = +PL[1]);
var oR, sR = FL, cR = !!Object.getOwnPropertySymbols && !VL((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && sR && sR < 41;
})), lR = cR && !Symbol.sham && typeof Symbol.iterator == "symbol", uR = YL("wks"), dR = X.Symbol, fR = dR && dR.for, Gle = lR ? dR : dR && dR.withoutSetter || QL, pR = function(e) {
	if (!ZL(uR, e) || !cR && typeof uR[e] != "string") {
		var t = "Symbol." + e;
		cR && ZL(dR, e) ? uR[e] = dR[e] : uR[e] = lR && fR ? fR(t) : Gle(t);
	}
	return uR[e];
}, mR = function(e) {
	return typeof e == "object" ? e !== null : $L(e);
}, Kle = X.String, qle = X.TypeError, hR = function(e) {
	if (mR(e)) return e;
	throw qle(Kle(e) + " is not an object");
}, gR = !VL((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), _R = X.document, Jle = mR(_R) && mR(_R.createElement), vR = function(e) {
	return Jle ? _R.createElement(e) : {};
}, yR = !gR && !VL((function() {
	return Object.defineProperty(vR("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), bR = Function.prototype.call, xR = bR.bind ? bR.bind(bR) : function() {
	return bR.apply(bR, arguments);
}, SR = BL({}.isPrototypeOf), Yle = X.Object, CR = lR ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = eR("Symbol");
	return $L(t) && SR(t.prototype, Yle(e));
}, Xle = X.String, wR = function(e) {
	try {
		return Xle(e);
	} catch {
		return "Object";
	}
}, Zle = X.TypeError, TR = function(e) {
	if ($L(e)) return e;
	throw Zle(wR(e) + " is not a function");
}, ER = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : TR(n);
}, Qle = X.TypeError, $le = X.TypeError, eue = pR("toPrimitive"), DR = function(e) {
	var t = function(e, t) {
		if (!mR(e) || CR(e)) return e;
		var n, r = ER(e, eue);
		if (r) {
			if (t === void 0 && (t = "default"), n = xR(r, e, t), !mR(n) || CR(n)) return n;
			throw $le("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && $L(n = e.toString) && !mR(r = xR(n, e)) || $L(n = e.valueOf) && !mR(r = xR(n, e)) || t !== "string" && $L(n = e.toString) && !mR(r = xR(n, e))) return r;
			throw Qle("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return CR(t) ? t : t + "";
}, tue = X.TypeError, OR = Object.defineProperty, kR = { f: gR ? OR : function(e, t, n) {
	if (hR(e), t = DR(t), hR(n), yR) try {
		return OR(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw tue("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, nue = Math.ceil, rue = Math.floor, AR = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? rue : nue)(t);
}, iue = Math.max, aue = Math.min, jR = function(e, t) {
	var n = AR(e);
	return n < 0 ? iue(n + t, 0) : aue(n, t);
}, oue = Math.min, MR = function(e) {
	return e > 0 ? oue(AR(e), 9007199254740991) : 0;
}, NR = function(e) {
	return MR(e.length);
}, PR = function(e) {
	return function(t, n, r) {
		var i, a = KL(t), o = NR(a), s = jR(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}, FR = {
	includes: PR(!0),
	indexOf: PR(!1)
}, IR = {}, sue = FR.indexOf, LR = BL([].push), RR = function(e, t) {
	var n, r = KL(e), i = 0, a = [];
	for (n in r) !ZL(IR, n) && ZL(r, n) && LR(a, n);
	for (; t.length > i;) ZL(r, n = t[i++]) && (~sue(a, n) || LR(a, n));
	return a;
}, zR = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], cue = Object.keys || function(e) {
	return RR(e, zR);
}, lue = gR ? Object.defineProperties : function(e, t) {
	hR(e);
	for (var n, r = KL(t), i = cue(t), a = i.length, o = 0; a > o;) kR.f(e, n = i[o++], r[n]);
	return e;
}, uue = eR("document", "documentElement"), BR = YL("keys"), VR = function(e) {
	return BR[e] || (BR[e] = QL(e));
}, HR = VR("IE_PROTO"), UR = function() {}, WR = function(e) {
	return "<script>" + e + "<\/script>";
}, GR = function(e) {
	e.write(WR("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, KR = function() {
	try {
		oR = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	KR = typeof document < "u" ? document.domain && oR ? GR(oR) : ((t = vR("iframe")).style.display = "none", uue.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(WR("document.F=Object")), e.close(), e.F) : GR(oR);
	for (var n = zR.length; n--;) delete KR.prototype[zR[n]];
	return KR();
};
IR[HR] = !0;
var qR = Object.create || function(e, t) {
	var n;
	return e === null ? n = KR() : (UR.prototype = hR(e), n = new UR(), UR.prototype = null, n[HR] = e), t === void 0 ? n : lue(n, t);
}, JR = pR("unscopables"), YR = Array.prototype;
YR[JR] ?? kR.f(YR, JR, {
	configurable: !0,
	value: qR(null)
});
var XR = function(e) {
	YR[JR][e] = !0;
}, ZR = {}, QR = BL(Function.toString);
$L(JL.inspectSource) || (JL.inspectSource = function(e) {
	return QR(e);
});
var $R, ez, tz, nz = JL.inspectSource, rz = X.WeakMap, iz = $L(rz) && /native code/.test(nz(rz)), az = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, oz = gR ? function(e, t, n) {
	return kR.f(e, t, az(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, sz = X.TypeError, cz = X.WeakMap;
if (iz || JL.state) {
	var lz = JL.state ||= new cz(), uz = BL(lz.get), dz = BL(lz.has), fz = BL(lz.set);
	$R = function(e, t) {
		if (dz(lz, e)) throw new sz("Object already initialized");
		return t.facade = e, fz(lz, e, t), t;
	}, ez = function(e) {
		return uz(lz, e) || {};
	}, tz = function(e) {
		return dz(lz, e);
	};
} else {
	var pz = VR("state");
	IR[pz] = !0, $R = function(e, t) {
		if (ZL(e, pz)) throw new sz("Object already initialized");
		return t.facade = e, oz(e, pz, t), t;
	}, ez = function(e) {
		return ZL(e, pz) ? e[pz] : {};
	}, tz = function(e) {
		return ZL(e, pz);
	};
}
var mz, hz, gz, _z = {
	set: $R,
	get: ez,
	has: tz,
	enforce: function(e) {
		return tz(e) ? ez(e) : $R(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!mR(t) || (n = ez(t)).type !== e) throw sz("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, vz = {}.propertyIsEnumerable, yz = Object.getOwnPropertyDescriptor, bz = { f: yz && !vz.call({ 1: 2 }, 1) ? function(e) {
	var t = yz(this, e);
	return !!t && t.enumerable;
} : vz }, xz = Object.getOwnPropertyDescriptor, Sz = { f: gR ? xz : function(e, t) {
	if (e = KL(e), t = DR(t), yR) try {
		return xz(e, t);
	} catch {}
	if (ZL(e, t)) return az(!xR(bz.f, e, t), e[t]);
} }, Cz = Function.prototype, wz = gR && Object.getOwnPropertyDescriptor, Tz = ZL(Cz, "name"), Ez = {
	EXISTS: Tz,
	PROPER: Tz && function() {}.name === "something",
	CONFIGURABLE: Tz && (!gR || gR && wz(Cz, "name").configurable)
}, Dz = NL((function(e) {
	var t = Ez.CONFIGURABLE, n = _z.get, r = _z.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		$L(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!ZL(a, "name") || t && a.name !== d) && oz(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === X ? l ? e[n] = a : qL(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : oz(e, n, a));
	})(Function.prototype, "toString", (function() {
		return $L(this) && n(this).source || nz(this);
	}));
})), Oz = zR.concat("length", "prototype"), kz = { f: Object.getOwnPropertyNames || function(e) {
	return RR(e, Oz);
} }, Az = { f: Object.getOwnPropertySymbols }, jz = BL([].concat), Mz = eR("Reflect", "ownKeys") || function(e) {
	var t = kz.f(hR(e)), n = Az.f;
	return n ? jz(t, n(e)) : t;
}, Nz = function(e, t) {
	for (var n = Mz(t), r = kR.f, i = Sz.f, a = 0; a < n.length; a++) {
		var o = n[a];
		ZL(e, o) || r(e, o, i(t, o));
	}
}, Pz = /#|\.prototype\./, Fz = function(e, t) {
	var n = Lz[Iz(e)];
	return n == zz || n != Rz && ($L(t) ? VL(t) : !!t);
}, Iz = Fz.normalize = function(e) {
	return String(e).replace(Pz, ".").toLowerCase();
}, Lz = Fz.data = {}, Rz = Fz.NATIVE = "N", zz = Fz.POLYFILL = "P", Bz = Fz, Vz = Sz.f, Hz = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? X : l ? X[s] || qL(s, {}) : (X[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = Vz(n, r)) && o.value : n[r], !Bz(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			Nz(a, i);
		}
		(e.sham || i && i.sham) && oz(a, "sham", !0), Dz(n, r, a, e);
	}
}, Uz = !VL((function() {
	function e() {}
	return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
})), Wz = VR("IE_PROTO"), Gz = X.Object, Kz = Gz.prototype, qz = Uz ? Gz.getPrototypeOf : function(e) {
	var t = XL(e);
	if (ZL(t, Wz)) return t[Wz];
	var n = t.constructor;
	return $L(n) && t instanceof n ? n.prototype : t instanceof Gz ? Kz : null;
}, Jz = pR("iterator"), Yz = !1;
[].keys && ("next" in (gz = [].keys()) ? (hz = qz(qz(gz))) !== Object.prototype && (mz = hz) : Yz = !0), (mz == null || VL((function() {
	var e = {};
	return mz[Jz].call(e) !== e;
}))) && (mz = {}), $L(mz[Jz]) || Dz(mz, Jz, (function() {
	return this;
}));
var Xz = {
	IteratorPrototype: mz,
	BUGGY_SAFARI_ITERATORS: Yz
}, Zz = kR.f, Qz = pR("toStringTag"), $z = function(e, t, n) {
	e && !ZL(e = n ? e : e.prototype, Qz) && Zz(e, Qz, {
		configurable: !0,
		value: t
	});
}, eB = Xz.IteratorPrototype, tB = function() {
	return this;
}, nB = X.String, rB = X.TypeError, iB = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var e, t = !1, n = {};
	try {
		(e = BL(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(n, []), t = n instanceof Array;
	} catch {}
	return function(n, r) {
		return hR(n), function(e) {
			if (typeof e == "object" || $L(e)) return e;
			throw rB("Can't set " + nB(e) + " as a prototype");
		}(r), t ? e(n, r) : n.__proto__ = r, n;
	};
}() : void 0), aB = Ez.PROPER, oB = Ez.CONFIGURABLE, sB = Xz.IteratorPrototype, cB = Xz.BUGGY_SAFARI_ITERATORS, lB = pR("iterator"), uB = function() {
	return this;
}, dB = function(e, t, n, r, i, a, o) {
	(function(e, t, n, r) {
		var i = t + " Iterator";
		e.prototype = qR(eB, { next: az(1, n) }), $z(e, i, !1), ZR[i] = tB;
	})(n, t, r);
	var s, c, l, u = function(e) {
		if (e === i && h) return h;
		if (!cB && e in p) return p[e];
		switch (e) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new n(this, e);
			};
		}
		return function() {
			return new n(this);
		};
	}, d = t + " Iterator", f = !1, p = e.prototype, m = p[lB] || p["@@iterator"] || i && p[i], h = !cB && m || u(i), g = t == "Array" && p.entries || m;
	if (g && (s = qz(g.call(new e()))) !== Object.prototype && s.next && (qz(s) !== sB && (iB ? iB(s, sB) : $L(s[lB]) || Dz(s, lB, uB)), $z(s, d, !0)), aB && i == "values" && m && m.name !== "values" && (oB ? oz(p, "name", "values") : (f = !0, h = function() {
		return xR(m, this);
	})), i) if (c = {
		values: u("values"),
		keys: a ? h : u("keys"),
		entries: u("entries")
	}, o) for (l in c) (cB || f || !(l in p)) && Dz(p, l, c[l]);
	else Hz({
		target: t,
		proto: !0,
		forced: cB || f
	}, c);
	return p[lB] !== h && Dz(p, lB, h, { name: i }), ZR[t] = h, c;
}, fB = _z.set, pB = _z.getterFor("Array Iterator"), mB = dB(Array, "Array", (function(e, t) {
	fB(this, {
		type: "Array Iterator",
		target: KL(e),
		index: 0,
		kind: t
	});
}), (function() {
	var e = pB(this), t = e.target, n = e.kind, r = e.index++;
	return !t || r >= t.length ? (e.target = void 0, {
		value: void 0,
		done: !0
	}) : n == "keys" ? {
		value: r,
		done: !1
	} : n == "values" ? {
		value: t[r],
		done: !1
	} : {
		value: [r, t[r]],
		done: !1
	};
}), "values");
ZR.Arguments = ZR.Array, XR("keys"), XR("values"), XR("entries");
var hB = {};
hB[pR("toStringTag")] = "z";
var gB = String(hB) === "[object z]", _B = pR("toStringTag"), vB = X.Object, yB = HL(function() {
	return arguments;
}()) == "Arguments", bB = gB ? HL : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = vB(e), _B)) == "string" ? n : yB ? HL(t) : (r = HL(t)) == "Object" && $L(t.callee) ? "Arguments" : r;
}, xB = gB ? {}.toString : function() {
	return "[object " + bB(this) + "]";
};
gB || Dz(Object.prototype, "toString", xB, { unsafe: !0 });
var SB = X.String, CB = function(e) {
	if (bB(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return SB(e);
}, wB = BL("".charAt), TB = BL("".charCodeAt), EB = BL("".slice), DB = function(e) {
	return function(t, n) {
		var r, i, a = CB(GL(t)), o = AR(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = TB(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = TB(a, o + 1)) < 56320 || i > 57343 ? e ? wB(a, o) : r : e ? EB(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}, OB = {
	codeAt: DB(!1),
	charAt: DB(!0)
}, kB = OB.charAt, AB = _z.set, jB = _z.getterFor("String Iterator");
dB(String, "String", (function(e) {
	AB(this, {
		type: "String Iterator",
		string: CB(e),
		index: 0
	});
}), (function() {
	var e, t = jB(this), n = t.string, r = t.index;
	return r >= n.length ? {
		value: void 0,
		done: !0
	} : (e = kB(n, r), t.index += e.length, {
		value: e,
		done: !1
	});
}));
var MB = function(e, t, n) {
	for (var r in t) Dz(e, r, t[r], n);
	return e;
}, NB = X.Array, PB = Math.max, FB = kz.f, IB = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], LB = { f: function(e) {
	return IB && HL(e) == "Window" ? function(e) {
		try {
			return FB(e);
		} catch {
			return function(e, t, n) {
				for (var r, i, a, o, s = NR(e), c = jR(void 0, s), l = jR(s, s), u = NB(PB(l - c, 0)), d = 0; c < l; c++, d++) r = u, i = d, a = e[c], (o = DR(i)) in r ? kR.f(r, o, az(0, a)) : r[o] = a;
				return u.length = d, u;
			}(IB);
		}
	}(e) : FB(KL(e));
} }, RB = VL((function() {
	if (typeof ArrayBuffer == "function") {
		var e = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(e) && Object.defineProperty(e, "a", { value: 8 });
	}
})), zB = Object.isExtensible, BB = VL((function() {
	zB(1);
})) || RB ? function(e) {
	return !!mR(e) && (!RB || HL(e) != "ArrayBuffer") && (!zB || zB(e));
} : zB, VB = !VL((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), HB = NL((function(e) {
	var t = kR.f, n = !1, r = QL("meta"), i = 0, a = function(e) {
		t(e, r, { value: {
			objectID: "O" + i++,
			weakData: {}
		} });
	}, o = e.exports = {
		enable: function() {
			o.enable = function() {}, n = !0;
			var e = kz.f, t = BL([].splice), i = {};
			i[r] = 1, e(i).length && (kz.f = function(n) {
				for (var i = e(n), a = 0, o = i.length; a < o; a++) if (i[a] === r) {
					t(i, a, 1);
					break;
				}
				return i;
			}, Hz({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: LB.f }));
		},
		fastKey: function(e, t) {
			if (!mR(e)) return typeof e == "symbol" ? e : (typeof e == "string" ? "S" : "P") + e;
			if (!ZL(e, r)) {
				if (!BB(e)) return "F";
				if (!t) return "E";
				a(e);
			}
			return e[r].objectID;
		},
		getWeakData: function(e, t) {
			if (!ZL(e, r)) {
				if (!BB(e)) return !0;
				if (!t) return !1;
				a(e);
			}
			return e[r].weakData;
		},
		onFreeze: function(e) {
			return VB && n && BB(e) && !ZL(e, r) && a(e), e;
		}
	};
	IR[r] = !0;
})), UB = BL(BL.bind), WB = function(e, t) {
	return TR(e), t === void 0 ? e : UB ? UB(e, t) : function() {
		return e.apply(t, arguments);
	};
}, GB = pR("iterator"), KB = Array.prototype, qB = pR("iterator"), JB = function(e) {
	if (e != null) return ER(e, qB) || ER(e, "@@iterator") || ZR[bB(e)];
}, YB = X.TypeError, XB = function(e, t, n) {
	var r, i;
	hR(e);
	try {
		if (!(r = ER(e, "return"))) {
			if (t === "throw") throw n;
			return n;
		}
		r = xR(r, e);
	} catch (e) {
		i = !0, r = e;
	}
	if (t === "throw") throw n;
	if (i) throw r;
	return hR(r), n;
}, ZB = X.TypeError, QB = function(e, t) {
	this.stopped = e, this.result = t;
}, $B = QB.prototype, eV = function(e, t, n) {
	var r, i, a, o, s, c, l, u, d = n && n.that, f = !(!n || !n.AS_ENTRIES), p = !(!n || !n.IS_ITERATOR), m = !(!n || !n.INTERRUPTED), h = WB(t, d), g = function(e) {
		return r && XB(r, "normal", e), new QB(!0, e);
	}, _ = function(e) {
		return f ? (hR(e), m ? h(e[0], e[1], g) : h(e[0], e[1])) : m ? h(e, g) : h(e);
	};
	if (p) r = e;
	else {
		if (!(i = JB(e))) throw ZB(wR(e) + " is not iterable");
		if ((u = i) !== void 0 && (ZR.Array === u || KB[GB] === u)) {
			for (a = 0, o = NR(e); o > a; a++) if ((s = _(e[a])) && SR($B, s)) return s;
			return new QB(!1);
		}
		r = function(e, t) {
			var n = arguments.length < 2 ? JB(e) : t;
			if (TR(n)) return hR(xR(n, e));
			throw YB(wR(e) + " is not iterable");
		}(e, i);
	}
	for (c = r.next; !(l = xR(c, r)).done;) {
		try {
			s = _(l.value);
		} catch (e) {
			XB(r, "throw", e);
		}
		if (typeof s == "object" && s && SR($B, s)) return s;
	}
	return new QB(!1);
}, tV = X.TypeError, nV = function(e, t) {
	if (SR(t, e)) return e;
	throw tV("Incorrect invocation");
}, rV = pR("iterator"), iV = !1;
try {
	var aV = 0, oV = {
		next: function() {
			return { done: !!aV++ };
		},
		return: function() {
			iV = !0;
		}
	};
	oV[rV] = function() {
		return this;
	}, Array.from(oV, (function() {
		throw 2;
	}));
} catch {}
var sV = Array.isArray || function(e) {
	return HL(e) == "Array";
}, cV = function() {}, lV = [], uV = eR("Reflect", "construct"), dV = /^\s*(?:class|function)\b/, fV = BL(dV.exec), pV = !dV.exec(cV), mV = function(e) {
	if (!$L(e)) return !1;
	try {
		return uV(cV, lV, e), !0;
	} catch {
		return !1;
	}
}, hV = !uV || VL((function() {
	var e;
	return mV(mV.call) || !mV(Object) || !mV((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!$L(e)) return !1;
	switch (bB(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return pV || !!fV(dV, nz(e));
} : mV, gV = pR("species"), _V = X.Array, vV = function(e, t) {
	return new (function(e) {
		var t;
		return sV(e) && (t = e.constructor, (hV(t) && (t === _V || sV(t.prototype)) || mR(t) && (t = t[gV]) === null) && (t = void 0)), t === void 0 ? _V : t;
	}(e))(t === 0 ? 0 : t);
}, yV = BL([].push), bV = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = XL(c), h = WL(m), g = WB(l, u), _ = NR(h), v = 0, y = d || vV, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: yV(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: yV(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, xV = {
	forEach: bV(0),
	map: bV(1),
	filter: bV(2),
	some: bV(3),
	every: bV(4),
	find: bV(5),
	findIndex: bV(6),
	filterReject: bV(7)
}, SV = HB.getWeakData, CV = _z.set, wV = _z.getterFor, TV = xV.find, EV = xV.findIndex, DV = BL([].splice), OV = 0, kV = function(e) {
	return e.frozen ||= new AV();
}, AV = function() {
	this.entries = [];
}, jV = function(e, t) {
	return TV(e.entries, (function(e) {
		return e[0] === t;
	}));
};
AV.prototype = {
	get: function(e) {
		var t = jV(this, e);
		if (t) return t[1];
	},
	has: function(e) {
		return !!jV(this, e);
	},
	set: function(e, t) {
		var n = jV(this, e);
		n ? n[1] = t : this.entries.push([e, t]);
	},
	delete: function(e) {
		var t = EV(this.entries, (function(t) {
			return t[0] === e;
		}));
		return ~t && DV(this.entries, t, 1), !!~t;
	}
};
var MV, NV = { getConstructor: function(e, t, n, r) {
	var i = e((function(e, i) {
		nV(e, a), CV(e, {
			type: t,
			id: OV++,
			frozen: void 0
		}), i != null && eV(i, e[r], {
			that: e,
			AS_ENTRIES: n
		});
	})), a = i.prototype, o = wV(t), s = function(e, t, n) {
		var r = o(e), i = SV(hR(t), !0);
		return !0 === i ? kV(r).set(t, n) : i[r.id] = n, e;
	};
	return MB(a, {
		delete: function(e) {
			var t = o(this);
			if (!mR(e)) return !1;
			var n = SV(e);
			return !0 === n ? kV(t).delete(e) : n && ZL(n, t.id) && delete n[t.id];
		},
		has: function(e) {
			var t = o(this);
			if (!mR(e)) return !1;
			var n = SV(e);
			return !0 === n ? kV(t).has(e) : n && ZL(n, t.id);
		}
	}), MB(a, n ? {
		get: function(e) {
			var t = o(this);
			if (mR(e)) {
				var n = SV(e);
				return !0 === n ? kV(t).get(e) : n ? n[t.id] : void 0;
			}
		},
		set: function(e, t) {
			return s(this, e, t);
		}
	} : { add: function(e) {
		return s(this, e, !0);
	} }), i;
} }, PV = _z.enforce, FV = !X.ActiveXObject && "ActiveXObject" in X, IV = function(e) {
	return function() {
		return e(this, arguments.length ? arguments[0] : void 0);
	};
}, LV = function(e, t, n) {
	var r = e.indexOf("Map") !== -1, i = e.indexOf("Weak") !== -1, a = r ? "set" : "add", o = X[e], s = o && o.prototype, c = o, l = {}, u = function(e) {
		var t = BL(s[e]);
		Dz(s, e, e == "add" ? function(e) {
			return t(this, e === 0 ? 0 : e), this;
		} : e == "delete" ? function(e) {
			return !(i && !mR(e)) && t(this, e === 0 ? 0 : e);
		} : e == "get" ? function(e) {
			return i && !mR(e) ? void 0 : t(this, e === 0 ? 0 : e);
		} : e == "has" ? function(e) {
			return !(i && !mR(e)) && t(this, e === 0 ? 0 : e);
		} : function(e, n) {
			return t(this, e === 0 ? 0 : e, n), this;
		});
	};
	if (Bz(e, !$L(o) || !(i || s.forEach && !VL((function() {
		new o().entries().next();
	}))))) c = n.getConstructor(t, e, r, a), HB.enable();
	else if (Bz(e, !0)) {
		var d = new c(), f = d[a](i ? {} : -0, 1) != d, p = VL((function() {
			d.has(1);
		})), m = function(e, t) {
			if (!iV) return !1;
			var n = !1;
			try {
				var r = {};
				r[rV] = function() {
					return { next: function() {
						return { done: n = !0 };
					} };
				}, function(e) {
					new o(e);
				}(r);
			} catch {}
			return n;
		}(), h = !i && VL((function() {
			for (var e = new o(), t = 5; t--;) e[a](t, t);
			return !e.has(-0);
		}));
		m || ((c = t((function(e, t) {
			nV(e, s);
			var n = function(e, t, n) {
				var r, i;
				return iB && $L(r = t.constructor) && r !== n && mR(i = r.prototype) && i !== n.prototype && iB(e, i), e;
			}(new o(), e, c);
			return t != null && eV(t, n[a], {
				that: n,
				AS_ENTRIES: r
			}), n;
		}))).prototype = s, s.constructor = c), (p || h) && (u("delete"), u("has"), r && u("get")), (h || f) && u(a), i && s.clear && delete s.clear;
	}
	return l[e] = c, Hz({
		global: !0,
		forced: c != o
	}, l), $z(c, e), i || n.setStrong(c, e, r), c;
}("WeakMap", IV, NV);
if (iz && FV) {
	MV = NV.getConstructor(IV, "WeakMap", !0), HB.enable();
	var RV = LV.prototype, zV = BL(RV.delete), BV = BL(RV.has), VV = BL(RV.get), HV = BL(RV.set);
	MB(RV, {
		delete: function(e) {
			if (mR(e) && !BB(e)) {
				var t = PV(this);
				return t.frozen ||= new MV(), zV(this, e) || t.frozen.delete(e);
			}
			return zV(this, e);
		},
		has: function(e) {
			if (mR(e) && !BB(e)) {
				var t = PV(this);
				return t.frozen ||= new MV(), BV(this, e) || t.frozen.has(e);
			}
			return BV(this, e);
		},
		get: function(e) {
			if (mR(e) && !BB(e)) {
				var t = PV(this);
				return t.frozen ||= new MV(), BV(this, e) ? VV(this, e) : t.frozen.get(e);
			}
			return VV(this, e);
		},
		set: function(e, t) {
			if (mR(e) && !BB(e)) {
				var n = PV(this);
				n.frozen ||= new MV(), BV(this, e) ? HV(this, e, t) : n.frozen.set(e, t);
			} else HV(this, e, t);
			return this;
		}
	});
}
var UV = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, WV = vR("span").classList, GV = WV && WV.constructor && WV.constructor.prototype, KV = GV === Object.prototype ? void 0 : GV, qV = pR("iterator"), JV = pR("toStringTag"), YV = mB.values, XV = function(e, t) {
	if (e) {
		if (e[qV] !== YV) try {
			oz(e, qV, YV);
		} catch {
			e[qV] = YV;
		}
		if (e[JV] || oz(e, JV, t), UV[t]) {
			for (var n in mB) if (e[n] !== mB[n]) try {
				oz(e, n, mB[n]);
			} catch {
				e[n] = mB[n];
			}
		}
	}
};
for (var ZV in UV) XV(X[ZV] && X[ZV].prototype, ZV);
XV(KV, "DOMTokenList");
var QV = /* @__PURE__ */ new WeakMap(), $V = {
	type: "list-item",
	renderElem: function(e, t, n) {
		QV.set(e, n);
		var r = e, i = r.level, a = i === void 0 ? 0 : i, o = r.ordered, s = { margin: "5px 0 5px " + 20 * a + "px" }, c = "";
		c = o !== void 0 && o ? function(e, t) {
			var n = t, r = n.type, i = n.level, a = i === void 0 ? 0 : i, o = n.ordered, s = o !== void 0 && o;
			if (!s) return -1;
			var c = 1, l = t, u = K.findPath(e, l);
			if (u[0] === 0) return 1;
			for (; u[0] > 0;) {
				var d = I.previous(u), f = P.node(e, d);
				if (f == null) break;
				var p = f[0], m = p.level, h = m === void 0 ? 0 : m, g = p.type, _ = p.ordered;
				if (g !== r || h < a) break;
				if (h === a) {
					if (_ !== s) break;
					c++;
				}
				l = p, u = d;
			}
			return c;
		}(n, e) + "." : function(e) {
			e === void 0 && (e = 0);
			var t = "";
			switch (e) {
				case 0:
					t = "•";
					break;
				case 1:
					t = "◦";
					break;
				default: t = "▪";
			}
			return t;
		}(a);
		var l = function(e) {
			var t, n = e.children || [], r = n.length;
			if (r === 0) return "";
			for (var i = 0; i < r && !t; i++) {
				var a = n[i];
				z.isText(a) && (t = a);
			}
			return t == null ? "" : t.color || "";
		}(e);
		return H("div", { style: s }, H("span", {
			contentEditable: !1,
			style: {
				marginRight: "0.5em",
				color: l
			},
			"data-w-e-reserve": !0
		}, c), H("span", null, t));
	}
}, eH = function(e, t) {
	return eH = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
		e.__proto__ = t;
	} || function(e, t) {
		for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
	}, eH(e, t);
};
function tH(e, t) {
	if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
	function n() {
		this.constructor = e;
	}
	eH(e, t), e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
function nH(e) {
	var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
	if (n) return n.call(e);
	if (e && typeof e.length == "number") return { next: function() {
		return e && r >= e.length && (e = void 0), {
			value: e && e[r++],
			done: !e
		};
	} };
	throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function rH(e, t) {
	var n = typeof Symbol == "function" && e[Symbol.iterator];
	if (!n) return e;
	var r, i, a = n.call(e), o = [];
	try {
		for (; (t === void 0 || t-- > 0) && !(r = a.next()).done;) o.push(r.value);
	} catch (e) {
		i = { error: e };
	} finally {
		try {
			r && !r.done && (n = a.return) && n.call(a);
		} finally {
			if (i) throw i.error;
		}
	}
	return o;
}
function iH(e) {
	return P.nodes(e, {
		at: e.selection || void 0,
		match: function(t) {
			return K.findPath(e, t).length === 1;
		}
	});
}
var aH = FR.includes;
Hz({
	target: "Array",
	proto: !0
}, { includes: function(e) {
	return aH(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), XR("includes");
var oH, sH, cH = function() {
	var e = hR(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, lH = X.RegExp, uH = VL((function() {
	var e = lH("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), dH = uH || VL((function() {
	return !lH("a", "y").sticky;
})), fH = {
	BROKEN_CARET: uH || VL((function() {
		var e = lH("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: dH,
	UNSUPPORTED_Y: uH
}, pH = X.RegExp, mH = VL((function() {
	var e = pH(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), hH = X.RegExp, gH = VL((function() {
	var e = hH("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), _H = _z.get, vH = YL("native-string-replace", String.prototype.replace), yH = RegExp.prototype.exec, bH = yH, xH = BL("".charAt), SH = BL("".indexOf), CH = BL("".replace), wH = BL("".slice), TH = (sH = /b*/g, xR(yH, oH = /a/, "a"), xR(yH, sH, "a"), oH.lastIndex !== 0 || sH.lastIndex !== 0), EH = fH.BROKEN_CARET, DH = /()??/.exec("")[1] !== void 0;
(TH || DH || EH || mH || gH) && (bH = function(e) {
	var t, n, r, i, a, o, s, c = this, l = _H(c), u = CB(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = xR(bH, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = EH && c.sticky, m = xR(cH, c), h = c.source, g = 0, _ = u;
	if (p && (m = CH(m, "y", ""), SH(m, "g") === -1 && (m += "g"), _ = wH(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && xH(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), DH && (n = RegExp("^" + h + "$(?!\\s)", m)), TH && (r = c.lastIndex), i = xR(yH, p ? n : c, _), p ? i ? (i.input = wH(i.input, g), i[0] = wH(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : TH && i && (c.lastIndex = c.global ? i.index + i[0].length : r), DH && i && i.length > 1 && xR(vH, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = qR(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var OH = bH;
Hz({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== OH
}, { exec: OH });
var kH = function() {
	function e() {
		this.type = "list-item", this.tag = "button";
	}
	return e.prototype.getListNode = function(e) {
		var t = this.type;
		return K.getSelectedNodeByType(e, t);
	}, e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		var t = this.getListNode(e);
		if (t == null) return !1;
		var n = t.ordered;
		return (n !== void 0 && n) === this.ordered;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !!K.getSelectedElems(e).some((function(t) {
			if (P.isVoid(e, t) && P.isBlock(e, t)) return !0;
			var n = t.type;
			return !![
				"pre",
				"code",
				"table"
			].includes(n) || void 0;
		}));
	}, e.prototype.exec = function(e, t) {
		this.isActive(e) ? B.setNodes(e, {
			type: "paragraph",
			ordered: void 0,
			level: void 0
		}) : B.setNodes(e, {
			type: "list-item",
			ordered: this.ordered,
			indent: void 0
		});
	}, e;
}(), AH = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z\"></path></svg>", jH = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z\"></path></svg>", MH = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.ordered = !1, t.title = q("listModule.unOrderedList"), t.iconSvg = AH, t;
	}
	return tH(t, e), t;
}(kH), NH = function(e) {
	function t() {
		var t = e !== null && e.apply(this, arguments) || this;
		return t.ordered = !0, t.title = q("listModule.orderedList"), t.iconSvg = jH, t;
	}
	return tH(t, e), t;
}(kH), PH = {
	key: "bulletedList",
	factory: function() {
		return new MH();
	}
}, FH = {
	key: "numberedList",
	factory: function() {
		return new NH();
	}
}, IH = [], LH = {
	type: "list-item",
	elemToHtml: function(e, t) {
		var n = "", r = "", i = e.ordered, a = i !== void 0 && i ? "ol" : "ul", o = function(e) {
			var t = QV.get(e);
			if (t == null) return 0;
			var n = e, r = n.type, i = n.ordered, a = i !== void 0 && i, o = n.level, s = o === void 0 ? 0 : o, c = K.findPath(t, e);
			if (c[0] === 0) return s + 1;
			var l = I.previous(c), u = P.node(t, l);
			if (!u) return 0;
			var d = rH(u, 1)[0];
			if (K.getNodeType(d) !== r) return s + 1;
			var f = d, p = f.ordered, m = p !== void 0 && p, h = f.level, g = h === void 0 ? 0 : h;
			return g < s ? s - g : g > s ? 0 : g === s ? m === a ? 0 : 1 : 0;
		}(e);
		if (o > 0) for (var s = 0; s < o; s++) n += "<" + a + ">", IH.push(a);
		var c = function(e) {
			var t = QV.get(e);
			if (t == null) return 0;
			var n = e, r = n.type, i = n.ordered, a = i !== void 0 && i, o = n.level, s = o === void 0 ? 0 : o, c = K.findPath(t, e);
			if (c[0] === t.children.length - 1) return s + 1;
			var l = I.next(c), u = P.node(t, l);
			if (!u) return 0;
			var d = rH(u, 1)[0];
			if (K.getNodeType(d) !== r) return s + 1;
			var f = d, p = f.ordered, m = p !== void 0 && p, h = f.level, g = h === void 0 ? 0 : h;
			return g < s ? s - g : g > s ? 0 : g === s ? m === a ? 0 : 1 : 0;
		}(e);
		if (c > 0) for (s = 0; s < c; s++) r += "</" + IH.pop() + ">";
		return {
			html: "<li>" + t + "</li>",
			prefix: n,
			suffix: r
		};
	}
}, RH = pR("species"), zH = xV.filter;
Hz({
	target: "Array",
	proto: !0,
	forced: !(sR >= 51 || !VL((function() {
		var e = [];
		return (e.constructor = {})[RH] = function() {
			return { foo: 1 };
		}, e.filter(Boolean).foo !== 1;
	})))
}, { filter: function(e) {
	return zH(this, e, arguments.length > 1 ? arguments[1] : void 0);
} });
var BH = Function.prototype, VH = BH.apply, HH = BH.bind, UH = BH.call, WH = typeof Reflect == "object" && Reflect.apply || (HH ? UH.bind(VH) : function() {
	return UH.apply(VH, arguments);
}), GH = (pR("species"), RegExp.prototype), KH = OB.charAt, qH = function(e, t, n) {
	return t + (n ? KH(e, t).length : 1);
}, JH = Math.floor, YH = BL("".charAt), XH = BL("".replace), ZH = BL("".slice), QH = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, $H = /\$([$&'`]|\d{1,2})/g, eU = function(e, t, n, r, i, a) {
	var o = n + e.length, s = r.length, c = $H;
	return i !== void 0 && (i = XL(i), c = QH), XH(a, c, (function(a, c) {
		var l;
		switch (YH(c, 0)) {
			case "$": return "$";
			case "&": return e;
			case "`": return ZH(t, 0, n);
			case "'": return ZH(t, o);
			case "<":
				l = i[ZH(c, 1, -1)];
				break;
			default:
				var u = +c;
				if (u === 0) return a;
				if (u > s) {
					var d = JH(u / 10);
					return d === 0 ? a : d <= s ? r[d - 1] === void 0 ? YH(c, 1) : r[d - 1] + YH(c, 1) : a;
				}
				l = r[u - 1];
		}
		return l === void 0 ? "" : l;
	}));
}, tU = X.TypeError, nU = function(e, t) {
	var n = e.exec;
	if ($L(n)) {
		var r = xR(n, e, t);
		return r !== null && hR(r), r;
	}
	if (HL(e) === "RegExp") return xR(OH, e, t);
	throw tU("RegExp#exec called on incompatible receiver");
}, rU = pR("replace"), iU = Math.max, aU = Math.min, oU = BL([].concat), sU = BL([].push), cU = BL("".indexOf), lU = BL("".slice), uU = "a".replace(/./, "$0") === "$0", dU = !!/./[rU] && /./[rU]("a", "$0") === "";
(function(e, t, n, r) {
	var i = pR(e), a = !VL((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !VL((function() {
		var e = !1, t = /a/;
		return t.exec = function() {
			return e = !0, null;
		}, t[i](""), !e;
	}));
	if (!a || !o || n) {
		var s = BL(/./[i]), c = function(e, t, n) {
			var r = dU ? "$" : "$0";
			return [function(e, n) {
				var r = GL(this), i = e == null ? void 0 : ER(e, rU);
				return i ? xR(i, e, r, n) : xR(t, CB(r), e, n);
			}, function(e, i) {
				var a = hR(this), o = CB(e);
				if (typeof i == "string" && cU(i, r) === -1 && cU(i, "$<") === -1) {
					var s = n(t, a, o, i);
					if (s.done) return s.value;
				}
				var c = $L(i);
				c || (i = CB(i));
				var l = a.global;
				if (l) {
					var u = a.unicode;
					a.lastIndex = 0;
				}
				for (var d = [];;) {
					var f = nU(a, o);
					if (f === null || (sU(d, f), !l)) break;
					CB(f[0]) === "" && (a.lastIndex = qH(o, MR(a.lastIndex), u));
				}
				for (var p, m = "", h = 0, g = 0; g < d.length; g++) {
					for (var _ = CB((f = d[g])[0]), v = iU(aU(AR(f.index), o.length), 0), y = [], b = 1; b < f.length; b++) sU(y, (p = f[b]) === void 0 ? p : String(p));
					var x = f.groups;
					if (c) {
						var S = oU([_], y, v, o);
						x !== void 0 && sU(S, x);
						var C = CB(WH(i, void 0, S));
					} else C = eU(_, o, v, y, x, i);
					v >= h && (m += lU(o, h, v) + C, h = v + _.length);
				}
				return m + lU(o, h);
			}];
		}(0, ""[e], (function(e, t, n, r, i) {
			var o = BL(e), c = t.exec;
			return c === OH || c === GH.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		Dz(String.prototype, e, c[0]), Dz(GH, i, c[1]);
	}
})("replace", 0, !!VL((function() {
	var e = /./;
	return e.exec = function() {
		var e = [];
		return e.groups = { a: "7" }, e;
	}, "".replace(e, "$<a>") !== "7";
})) || !uU || dU);
var fU = X.TypeError, pU = function(e, t, n, r, i, a, o, s) {
	for (var c, l, u = i, d = 0, f = !!o && WB(o, s); d < r;) {
		if (d in n) {
			if (c = f ? f(n[d], d, t) : n[d], a > 0 && sV(c)) l = NR(c), u = pU(e, t, c, l, u, a - 1) - 1;
			else {
				if (u >= 9007199254740991) throw fU("Exceed the acceptable array length");
				e[u] = c;
			}
			u++;
		}
		d++;
	}
	return u;
}, mU = pU;
function hU(e) {
	return e.length ? e[0].tagName.toLowerCase() : "";
}
Hz({
	target: "Array",
	proto: !0
}, { flat: function() {
	var e = arguments.length ? arguments[0] : void 0, t = XL(this), n = NR(t), r = vV(t, 0);
	return r.length = mU(r, t, t, n, 0, e === void 0 ? 1 : AR(e)), r;
} }), XR("flat"), Hz({ global: !0 }, { globalThis: X }), gd && (V.fn.append = gd), $u && (V.fn.attr = $u), vd && (V.fn.parent = vd);
var gU = {
	renderElems: [$V],
	editorPlugin: function(e) {
		var t = e.deleteBackward, n = e.handleTab, r = e.normalizeNode, i = e;
		return i.deleteBackward = function(e) {
			var n = i.selection;
			if (n != null) if (R.isExpanded(n)) t(e);
			else {
				var r = K.getSelectedNodeByType(i, "list-item");
				if (r != null) if (n.focus.offset !== 0) t(e);
				else {
					var a = r.level, o = a === void 0 ? 0 : a;
					o > 0 ? B.setNodes(i, { level: o - 1 }) : B.setNodes(i, {
						type: "paragraph",
						ordered: void 0,
						level: void 0
					});
				}
				else t(e);
			}
			else t(e);
		}, i.handleTab = function() {
			var e, t, r, a, o = i.selection;
			if (o != null) {
				if (R.isCollapsed(o)) {
					var s = K.getSelectedNodeByType(i, "list-item");
					if (s == null) return void n();
					if (o.focus.offset === 0) {
						var c = s.level, l = c === void 0 ? 0 : c;
						B.setNodes(i, { level: l + 1 });
						return;
					}
				}
				if (R.isExpanded(o)) {
					var u = 0, d = !1;
					try {
						for (var f = nH(iH(i)), p = f.next(); !p.done; p = f.next()) {
							var m = rH(p.value, 1)[0];
							K.getNodeType(m) === "list-item" ? u++ : d = !0;
						}
					} catch (t) {
						e = { error: t };
					} finally {
						try {
							p && !p.done && (t = f.return) && t.call(f);
						} finally {
							if (e) throw e.error;
						}
					}
					if (d || u <= 1) return void n();
					try {
						for (var h = nH(iH(i)), g = h.next(); !g.done; g = h.next()) {
							var _ = rH(g.value, 2), v = (m = _[0], _[1]), y = m.level;
							l = y === void 0 ? 0 : y, B.setNodes(i, { level: l + 1 }, { at: v });
						}
					} catch (e) {
						r = { error: e };
					} finally {
						try {
							g && !g.done && (a = h.return) && a.call(h);
						} finally {
							if (r) throw r.error;
						}
					}
				} else n();
			} else n();
		}, i.normalizeNode = function(e) {
			var t = rH(e, 2), n = t[0], a = t[1], o = K.getNodeType(n);
			return o !== "bulleted-list" && o !== "numbered-list" || B.unwrapNodes(i, { at: a }), r([n, a]);
		}, i;
	},
	menus: [PH, FH],
	elemsToHtml: [LH],
	parseElemsHtml: [{
		selector: "ul:not([data-w-e-type]),ol:not([data-w-e-type])",
		parseElemHtml: function(e, t, n) {
			return t.flat(Infinity);
		}
	}, {
		selector: "li:not([data-w-e-type])",
		parseElemHtml: function(e, t, n) {
			var r = V(e);
			return (t = t.filter((function(e) {
				return !!z.isText(e) || !!n.isInline(e);
			}))).length === 0 && (t = [{ text: r.text().replace(/\s+/gm, " ") }]), {
				type: "list-item",
				ordered: function(e) {
					return hU(e.parent()) === "ol";
				}(r),
				level: function(e) {
					for (var t = 0, n = e.parent(), r = hU(n); r === "ul" || r === "ol";) r = hU(n = n.parent()), t++;
					return t - 1;
				}(r),
				children: t
			};
		}
	}]
}, _U = n((function(t, n) {
	var r = "__lodash_hash_undefined__", i = 9007199254740991, a = "[object Arguments]", o = "[object Array]", s = "[object Boolean]", c = "[object Date]", l = "[object Error]", u = "[object Function]", d = "[object Map]", f = "[object Number]", p = "[object Object]", m = "[object Promise]", h = "[object RegExp]", g = "[object Set]", _ = "[object String]", v = "[object WeakMap]", y = "[object ArrayBuffer]", b = "[object DataView]", x = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, C = {};
	C["[object Float32Array]"] = C["[object Float64Array]"] = C["[object Int8Array]"] = C["[object Int16Array]"] = C["[object Int32Array]"] = C["[object Uint8Array]"] = C["[object Uint8ClampedArray]"] = C["[object Uint16Array]"] = C["[object Uint32Array]"] = !0, C[a] = C[o] = C[y] = C[s] = C[b] = C[c] = C[l] = C[u] = C[d] = C[f] = C[p] = C[h] = C[g] = C[_] = C[v] = !1;
	var w = typeof e == "object" && e && e.Object === Object && e, T = typeof self == "object" && self && self.Object === Object && self, E = w || T || Function("return this")(), D = n && !n.nodeType && n, O = D && t && !t.nodeType && t, ee = O && O.exports === D, te = ee && w.process, ne = function() {
		try {
			return te && te.binding && te.binding("util");
		} catch {}
	}(), re = ne && ne.isTypedArray;
	function k(e, t) {
		for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
		return !1;
	}
	function ie(e) {
		var t = -1, n = Array(e.size);
		return e.forEach((function(e, r) {
			n[++t] = [r, e];
		})), n;
	}
	function A(e) {
		var t = -1, n = Array(e.size);
		return e.forEach((function(e) {
			n[++t] = e;
		})), n;
	}
	var ae = Array.prototype, oe = Function.prototype, se = Object.prototype, ce = E["__core-js_shared__"], le = oe.toString, ue = se.hasOwnProperty, de = function() {
		var e = /[^.]+$/.exec(ce && ce.keys && ce.keys.IE_PROTO || "");
		return e ? "Symbol(src)_1." + e : "";
	}(), fe = se.toString, pe = RegExp("^" + le.call(ue).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), me = ee ? E.Buffer : void 0, he = E.Symbol, ge = E.Uint8Array, _e = se.propertyIsEnumerable, ve = ae.splice, ye = he ? he.toStringTag : void 0, be = Object.getOwnPropertySymbols, xe = me ? me.isBuffer : void 0, Se = function(e, t) {
		return function(n) {
			return e(t(n));
		};
	}(Object.keys, Object), Ce = Ze(E, "DataView"), we = Ze(E, "Map"), Te = Ze(E, "Promise"), Ee = Ze(E, "Set"), De = Ze(E, "WeakMap"), Oe = Ze(Object, "create"), ke = tt(Ce), Ae = tt(we), je = tt(Te), Me = tt(Ee), Ne = tt(De), Pe = he ? he.prototype : void 0, Fe = Pe ? Pe.valueOf : void 0;
	function Ie(e) {
		var t = -1, n = e == null ? 0 : e.length;
		for (this.clear(); ++t < n;) {
			var r = e[t];
			this.set(r[0], r[1]);
		}
	}
	function Le(e) {
		var t = -1, n = e == null ? 0 : e.length;
		for (this.clear(); ++t < n;) {
			var r = e[t];
			this.set(r[0], r[1]);
		}
	}
	function Re(e) {
		var t = -1, n = e == null ? 0 : e.length;
		for (this.clear(); ++t < n;) {
			var r = e[t];
			this.set(r[0], r[1]);
		}
	}
	function ze(e) {
		var t = -1, n = e == null ? 0 : e.length;
		for (this.__data__ = new Re(); ++t < n;) this.add(e[t]);
	}
	function Be(e) {
		var t = this.__data__ = new Le(e);
		this.size = t.size;
	}
	function Ve(e, t) {
		var n = it(e), r = !n && rt(e), i = !n && !r && at(e), a = !n && !r && !i && ut(e), o = n || r || i || a, s = o ? function(e, t) {
			for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
			return r;
		}(e.length, String) : [], c = s.length;
		for (var l in e) !t && !ue.call(e, l) || o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || et(l, c)) || s.push(l);
		return s;
	}
	function He(e, t) {
		for (var n = e.length; n--;) if (nt(e[n][0], t)) return n;
		return -1;
	}
	function Ue(e) {
		return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : ye && ye in Object(e) ? function(e) {
			var t = ue.call(e, ye), n = e[ye];
			try {
				e[ye] = void 0;
				var r = !0;
			} catch {}
			var i = fe.call(e);
			return r && (t ? e[ye] = n : delete e[ye]), i;
		}(e) : function(e) {
			return fe.call(e);
		}(e);
	}
	function We(e) {
		return lt(e) && Ue(e) == a;
	}
	function Ge(e, t, n, r, i) {
		return e === t || (e == null || t == null || !lt(e) && !lt(t) ? e != e && t != t : function(e, t, n, r, i, u) {
			var m = it(e), v = it(t), x = m ? o : $e(e), S = v ? o : $e(t), C = (x = x == a ? p : x) == p, w = (S = S == a ? p : S) == p, T = x == S;
			if (T && at(e)) {
				if (!at(t)) return !1;
				m = !0, C = !1;
			}
			if (T && !C) return u ||= new Be(), m || ut(e) ? Je(e, t, n, r, i, u) : function(e, t, n, r, i, a, o) {
				switch (n) {
					case b:
						if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
						e = e.buffer, t = t.buffer;
					case y: return !(e.byteLength != t.byteLength || !a(new ge(e), new ge(t)));
					case s:
					case c:
					case f: return nt(+e, +t);
					case l: return e.name == t.name && e.message == t.message;
					case h:
					case _: return e == t + "";
					case d: var u = ie;
					case g:
						var p = 1 & r;
						if (u ||= A, e.size != t.size && !p) return !1;
						var m = o.get(e);
						if (m) return m == t;
						r |= 2, o.set(e, t);
						var v = Je(u(e), u(t), r, i, a, o);
						return o.delete(e), v;
					case "[object Symbol]": if (Fe) return Fe.call(e) == Fe.call(t);
				}
				return !1;
			}(e, t, x, n, r, i, u);
			if (!(1 & n)) {
				var E = C && ue.call(e, "__wrapped__"), D = w && ue.call(t, "__wrapped__");
				if (E || D) {
					var O = E ? e.value() : e, ee = D ? t.value() : t;
					return u ||= new Be(), i(O, ee, n, r, u);
				}
			}
			return T ? (u ||= new Be(), function(e, t, n, r, i, a) {
				var o = 1 & n, s = Ye(e), c = s.length;
				if (c != Ye(t).length && !o) return !1;
				for (var l = c; l--;) {
					var u = s[l];
					if (!(o ? u in t : ue.call(t, u))) return !1;
				}
				var d = a.get(e);
				if (d && a.get(t)) return d == t;
				var f = !0;
				a.set(e, t), a.set(t, e);
				for (var p = o; ++l < c;) {
					var m = e[u = s[l]], h = t[u];
					if (r) var g = o ? r(h, m, u, t, e, a) : r(m, h, u, e, t, a);
					if (!(g === void 0 ? m === h || i(m, h, n, r, a) : g)) {
						f = !1;
						break;
					}
					p ||= u == "constructor";
				}
				if (f && !p) {
					var _ = e.constructor, v = t.constructor;
					_ == v || !("constructor" in e) || !("constructor" in t) || typeof _ == "function" && _ instanceof _ && typeof v == "function" && v instanceof v || (f = !1);
				}
				return a.delete(e), a.delete(t), f;
			}(e, t, n, r, i, u)) : !1;
		}(e, t, n, r, Ge, i));
	}
	function Ke(e) {
		return !(!ct(e) || function(e) {
			return !!de && de in e;
		}(e)) && (ot(e) ? pe : x).test(tt(e));
	}
	function qe(e) {
		if (n = (t = e) && t.constructor, r = typeof n == "function" && n.prototype || se, t !== r) return Se(e);
		var t, n, r, i = [];
		for (var a in Object(e)) ue.call(e, a) && a != "constructor" && i.push(a);
		return i;
	}
	function Je(e, t, n, r, i, a) {
		var o = 1 & n, s = e.length, c = t.length;
		if (s != c && !(o && c > s)) return !1;
		var l = a.get(e);
		if (l && a.get(t)) return l == t;
		var u = -1, d = !0, f = 2 & n ? new ze() : void 0;
		for (a.set(e, t), a.set(t, e); ++u < s;) {
			var p = e[u], m = t[u];
			if (r) var h = o ? r(m, p, u, t, e, a) : r(p, m, u, e, t, a);
			if (h !== void 0) {
				if (h) continue;
				d = !1;
				break;
			}
			if (f) {
				if (!k(t, (function(e, t) {
					if (o = t, !f.has(o) && (p === e || i(p, e, n, r, a))) return f.push(t);
					var o;
				}))) {
					d = !1;
					break;
				}
			} else if (p !== m && !i(p, m, n, r, a)) {
				d = !1;
				break;
			}
		}
		return a.delete(e), a.delete(t), d;
	}
	function Ye(e) {
		return function(e, t, n) {
			var r = t(e);
			return it(e) ? r : function(e, t) {
				for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
				return e;
			}(r, n(e));
		}(e, dt, Qe);
	}
	function Xe(e, t) {
		var n, r, i = e.__data__;
		return ((r = typeof (n = t)) == "string" || r == "number" || r == "symbol" || r == "boolean" ? n !== "__proto__" : n === null) ? i[typeof t == "string" ? "string" : "hash"] : i.map;
	}
	function Ze(e, t) {
		var n = function(e, t) {
			return e?.[t];
		}(e, t);
		return Ke(n) ? n : void 0;
	}
	Ie.prototype.clear = function() {
		this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
	}, Ie.prototype.delete = function(e) {
		var t = this.has(e) && delete this.__data__[e];
		return this.size -= +!!t, t;
	}, Ie.prototype.get = function(e) {
		var t = this.__data__;
		if (Oe) {
			var n = t[e];
			return n === r ? void 0 : n;
		}
		return ue.call(t, e) ? t[e] : void 0;
	}, Ie.prototype.has = function(e) {
		var t = this.__data__;
		return Oe ? t[e] !== void 0 : ue.call(t, e);
	}, Ie.prototype.set = function(e, t) {
		var n = this.__data__;
		return this.size += +!this.has(e), n[e] = Oe && t === void 0 ? r : t, this;
	}, Le.prototype.clear = function() {
		this.__data__ = [], this.size = 0;
	}, Le.prototype.delete = function(e) {
		var t = this.__data__, n = He(t, e);
		return !(n < 0) && (n == t.length - 1 ? t.pop() : ve.call(t, n, 1), --this.size, !0);
	}, Le.prototype.get = function(e) {
		var t = this.__data__, n = He(t, e);
		return n < 0 ? void 0 : t[n][1];
	}, Le.prototype.has = function(e) {
		return He(this.__data__, e) > -1;
	}, Le.prototype.set = function(e, t) {
		var n = this.__data__, r = He(n, e);
		return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
	}, Re.prototype.clear = function() {
		this.size = 0, this.__data__ = {
			hash: new Ie(),
			map: new (we || Le)(),
			string: new Ie()
		};
	}, Re.prototype.delete = function(e) {
		var t = Xe(this, e).delete(e);
		return this.size -= +!!t, t;
	}, Re.prototype.get = function(e) {
		return Xe(this, e).get(e);
	}, Re.prototype.has = function(e) {
		return Xe(this, e).has(e);
	}, Re.prototype.set = function(e, t) {
		var n = Xe(this, e), r = n.size;
		return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
	}, ze.prototype.add = ze.prototype.push = function(e) {
		return this.__data__.set(e, r), this;
	}, ze.prototype.has = function(e) {
		return this.__data__.has(e);
	}, Be.prototype.clear = function() {
		this.__data__ = new Le(), this.size = 0;
	}, Be.prototype.delete = function(e) {
		var t = this.__data__, n = t.delete(e);
		return this.size = t.size, n;
	}, Be.prototype.get = function(e) {
		return this.__data__.get(e);
	}, Be.prototype.has = function(e) {
		return this.__data__.has(e);
	}, Be.prototype.set = function(e, t) {
		var n = this.__data__;
		if (n instanceof Le) {
			var r = n.__data__;
			if (!we || r.length < 199) return r.push([e, t]), this.size = ++n.size, this;
			n = this.__data__ = new Re(r);
		}
		return n.set(e, t), this.size = n.size, this;
	};
	var Qe = be ? function(e) {
		return e == null ? [] : (e = Object(e), function(e, t) {
			for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
				var o = e[n];
				t(o, n, e) && (a[i++] = o);
			}
			return a;
		}(be(e), (function(t) {
			return _e.call(e, t);
		})));
	} : function() {
		return [];
	}, $e = Ue;
	function et(e, t) {
		return !!(t ??= i) && (typeof e == "number" || S.test(e)) && e > -1 && e % 1 == 0 && e < t;
	}
	function tt(e) {
		if (e != null) {
			try {
				return le.call(e);
			} catch {}
			try {
				return e + "";
			} catch {}
		}
		return "";
	}
	function nt(e, t) {
		return e === t || e != e && t != t;
	}
	(Ce && $e(new Ce(/* @__PURE__ */ new ArrayBuffer(1))) != b || we && $e(new we()) != d || Te && $e(Te.resolve()) != m || Ee && $e(new Ee()) != g || De && $e(new De()) != v) && ($e = function(e) {
		var t = Ue(e), n = t == p ? e.constructor : void 0, r = n ? tt(n) : "";
		if (r) switch (r) {
			case ke: return b;
			case Ae: return d;
			case je: return m;
			case Me: return g;
			case Ne: return v;
		}
		return t;
	});
	var rt = We(function() {
		return arguments;
	}()) ? We : function(e) {
		return lt(e) && ue.call(e, "callee") && !_e.call(e, "callee");
	}, it = Array.isArray, at = xe || function() {
		return !1;
	};
	function ot(e) {
		if (!ct(e)) return !1;
		var t = Ue(e);
		return t == u || t == "[object GeneratorFunction]" || t == "[object AsyncFunction]" || t == "[object Proxy]";
	}
	function st(e) {
		return typeof e == "number" && e > -1 && e % 1 == 0 && e <= i;
	}
	function ct(e) {
		var t = typeof e;
		return e != null && (t == "object" || t == "function");
	}
	function lt(e) {
		return typeof e == "object" && !!e;
	}
	var ut = re ? function(e) {
		return function(t) {
			return e(t);
		};
	}(re) : function(e) {
		return lt(e) && st(e.length) && !!C[Ue(e)];
	};
	function dt(e) {
		return (t = e) != null && st(t.length) && !ot(t) ? Ve(e) : qe(e);
		var t;
	}
	t.exports = function(e, t) {
		return Ge(e, t);
	};
}));
HE("en", { tableModule: {
	deleteCol: "Delete column",
	deleteRow: "Delete row",
	deleteTable: "Delete table",
	widthAuto: "Width auto",
	insertCol: "Insert column",
	insertRow: "Insert row",
	insertTable: "Insert table",
	header: "Header"
} }), HE("zh-CN", { tableModule: {
	deleteCol: "删除列",
	deleteRow: "删除行",
	deleteTable: "删除表格",
	widthAuto: "宽度自适应",
	insertCol: "插入列",
	insertRow: "插入行",
	insertTable: "插入表格",
	header: "表头"
} });
var vU = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function yU(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var bU, xU, SU = function(e) {
	return e && e.Math == Math && e;
}, CU = SU(typeof globalThis == "object" && globalThis) || SU(typeof window == "object" && window) || SU(typeof self == "object" && self) || SU(typeof vU == "object" && vU) || function() {
	return this;
}() || Function("return this")(), wU = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, TU = !wU((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), EU = Function.prototype.call, DU = EU.bind ? EU.bind(EU) : function() {
	return EU.apply(EU, arguments);
}, OU = {}.propertyIsEnumerable, kU = Object.getOwnPropertyDescriptor, AU = { f: kU && !OU.call({ 1: 2 }, 1) ? function(e) {
	var t = kU(this, e);
	return !!t && t.enumerable;
} : OU }, jU = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, MU = Function.prototype, NU = MU.bind, PU = MU.call, FU = NU && NU.bind(PU), IU = NU ? function(e) {
	return e && FU(PU, e);
} : function(e) {
	return e && function() {
		return PU.apply(e, arguments);
	};
}, LU = IU({}.toString), RU = IU("".slice), zU = function(e) {
	return RU(LU(e), 8, -1);
}, BU = CU.Object, VU = IU("".split), HU = wU((function() {
	return !BU("z").propertyIsEnumerable(0);
})) ? function(e) {
	return zU(e) == "String" ? VU(e, "") : BU(e);
} : BU, UU = CU.TypeError, WU = function(e) {
	if (e == null) throw UU("Can't call method on " + e);
	return e;
}, GU = function(e) {
	return HU(WU(e));
}, KU = function(e) {
	return typeof e == "function";
}, qU = function(e) {
	return typeof e == "object" ? e !== null : KU(e);
}, JU = function(e) {
	return KU(e) ? e : void 0;
}, YU = function(e, t) {
	return arguments.length < 2 ? JU(CU[e]) : CU[e] && CU[e][t];
}, XU = IU({}.isPrototypeOf), ZU = YU("navigator", "userAgent") || "", QU = CU.process, $U = CU.Deno, eW = QU && QU.versions || $U && $U.version, tW = eW && eW.v8;
tW && (xU = (bU = tW.split("."))[0] > 0 && bU[0] < 4 ? 1 : +(bU[0] + bU[1])), !xU && ZU && (!(bU = ZU.match(/Edge\/(\d+)/)) || bU[1] >= 74) && (bU = ZU.match(/Chrome\/(\d+)/)) && (xU = +bU[1]);
var nW = xU, rW = !!Object.getOwnPropertySymbols && !wU((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && nW && nW < 41;
})), iW = rW && !Symbol.sham && typeof Symbol.iterator == "symbol", aW = CU.Object, oW = iW ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = YU("Symbol");
	return KU(t) && XU(t.prototype, aW(e));
}, sW = CU.String, cW = function(e) {
	try {
		return sW(e);
	} catch {
		return "Object";
	}
}, lW = CU.TypeError, uW = function(e) {
	if (KU(e)) return e;
	throw lW(cW(e) + " is not a function");
}, dW = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : uW(n);
}, fW = CU.TypeError, pW = Object.defineProperty, mW = function(e, t) {
	try {
		pW(CU, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		CU[e] = t;
	}
	return t;
}, hW = CU["__core-js_shared__"] || mW("__core-js_shared__", {}), gW = yU((function(e) {
	(e.exports = function(e, t) {
		return hW[e] || (hW[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), _W = CU.Object, vW = function(e) {
	return _W(WU(e));
}, yW = IU({}.hasOwnProperty), bW = Object.hasOwn || function(e, t) {
	return yW(vW(e), t);
}, xW = 0, SW = Math.random(), CW = IU(1 .toString), wW = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + CW(++xW + SW, 36);
}, TW = gW("wks"), EW = CU.Symbol, DW = EW && EW.for, OW = iW ? EW : EW && EW.withoutSetter || wW, kW = function(e) {
	if (!bW(TW, e) || !rW && typeof TW[e] != "string") {
		var t = "Symbol." + e;
		rW && bW(EW, e) ? TW[e] = EW[e] : TW[e] = iW && DW ? DW(t) : OW(t);
	}
	return TW[e];
}, AW = CU.TypeError, jW = kW("toPrimitive"), MW = function(e) {
	var t = function(e, t) {
		if (!qU(e) || oW(e)) return e;
		var n, r = dW(e, jW);
		if (r) {
			if (t === void 0 && (t = "default"), n = DU(r, e, t), !qU(n) || oW(n)) return n;
			throw AW("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && KU(n = e.toString) && !qU(r = DU(n, e)) || KU(n = e.valueOf) && !qU(r = DU(n, e)) || t !== "string" && KU(n = e.toString) && !qU(r = DU(n, e))) return r;
			throw fW("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return oW(t) ? t : t + "";
}, NW = CU.document, PW = qU(NW) && qU(NW.createElement), FW = function(e) {
	return PW ? NW.createElement(e) : {};
}, IW = !TU && !wU((function() {
	return Object.defineProperty(FW("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), LW = Object.getOwnPropertyDescriptor, RW = { f: TU ? LW : function(e, t) {
	if (e = GU(e), t = MW(t), IW) try {
		return LW(e, t);
	} catch {}
	if (bW(e, t)) return jU(!DU(AU.f, e, t), e[t]);
} }, zW = CU.String, BW = CU.TypeError, VW = function(e) {
	if (qU(e)) return e;
	throw BW(zW(e) + " is not an object");
}, HW = CU.TypeError, UW = Object.defineProperty, WW = { f: TU ? UW : function(e, t, n) {
	if (VW(e), t = MW(t), VW(n), IW) try {
		return UW(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw HW("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, GW = TU ? function(e, t, n) {
	return WW.f(e, t, jU(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, KW = IU(Function.toString);
KU(hW.inspectSource) || (hW.inspectSource = function(e) {
	return KW(e);
});
var qW, JW, YW, XW = hW.inspectSource, ZW = CU.WeakMap, QW = KU(ZW) && /native code/.test(XW(ZW)), $W = gW("keys"), eG = function(e) {
	return $W[e] || ($W[e] = wW(e));
}, tG = {}, nG = CU.TypeError, rG = CU.WeakMap;
if (QW || hW.state) {
	var iG = hW.state ||= new rG(), aG = IU(iG.get), oG = IU(iG.has), sG = IU(iG.set);
	qW = function(e, t) {
		if (oG(iG, e)) throw new nG("Object already initialized");
		return t.facade = e, sG(iG, e, t), t;
	}, JW = function(e) {
		return aG(iG, e) || {};
	}, YW = function(e) {
		return oG(iG, e);
	};
} else {
	var cG = eG("state");
	tG[cG] = !0, qW = function(e, t) {
		if (bW(e, cG)) throw new nG("Object already initialized");
		return t.facade = e, GW(e, cG, t), t;
	}, JW = function(e) {
		return bW(e, cG) ? e[cG] : {};
	}, YW = function(e) {
		return bW(e, cG);
	};
}
var lG = {
	set: qW,
	get: JW,
	has: YW,
	enforce: function(e) {
		return YW(e) ? JW(e) : qW(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!qU(t) || (n = JW(t)).type !== e) throw nG("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, uG = Function.prototype, dG = TU && Object.getOwnPropertyDescriptor, fG = bW(uG, "name"), pG = {
	EXISTS: fG,
	PROPER: fG && function() {}.name === "something",
	CONFIGURABLE: fG && (!TU || TU && dG(uG, "name").configurable)
}, mG = yU((function(e) {
	var t = pG.CONFIGURABLE, n = lG.get, r = lG.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		KU(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!bW(a, "name") || t && a.name !== d) && GW(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === CU ? l ? e[n] = a : mW(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : GW(e, n, a));
	})(Function.prototype, "toString", (function() {
		return KU(this) && n(this).source || XW(this);
	}));
})), hG = Math.ceil, gG = Math.floor, _G = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? gG : hG)(t);
}, vG = Math.max, yG = Math.min, bG = function(e, t) {
	var n = _G(e);
	return n < 0 ? vG(n + t, 0) : yG(n, t);
}, xG = Math.min, SG = function(e) {
	return e > 0 ? xG(_G(e), 9007199254740991) : 0;
}, CG = function(e) {
	return SG(e.length);
}, wG = function(e) {
	return function(t, n, r) {
		var i, a = GU(t), o = CG(a), s = bG(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}(!1), TG = IU([].push), EG = function(e, t) {
	var n, r = GU(e), i = 0, a = [];
	for (n in r) !bW(tG, n) && bW(r, n) && TG(a, n);
	for (; t.length > i;) bW(r, n = t[i++]) && (~wG(a, n) || TG(a, n));
	return a;
}, DG = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], OG = DG.concat("length", "prototype"), kG = { f: Object.getOwnPropertyNames || function(e) {
	return EG(e, OG);
} }, AG = { f: Object.getOwnPropertySymbols }, jG = IU([].concat), MG = YU("Reflect", "ownKeys") || function(e) {
	var t = kG.f(VW(e)), n = AG.f;
	return n ? jG(t, n(e)) : t;
}, NG = function(e, t) {
	for (var n = MG(t), r = WW.f, i = RW.f, a = 0; a < n.length; a++) {
		var o = n[a];
		bW(e, o) || r(e, o, i(t, o));
	}
}, PG = /#|\.prototype\./, FG = function(e, t) {
	var n = LG[IG(e)];
	return n == zG || n != RG && (KU(t) ? wU(t) : !!t);
}, IG = FG.normalize = function(e) {
	return String(e).replace(PG, ".").toLowerCase();
}, LG = FG.data = {}, RG = FG.NATIVE = "N", zG = FG.POLYFILL = "P", BG = FG, VG = RW.f, HG = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? CU : l ? CU[s] || mW(s, {}) : (CU[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = VG(n, r)) && o.value : n[r], !BG(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			NG(a, i);
		}
		(e.sham || i && i.sham) && GW(a, "sham", !0), mG(n, r, a, e);
	}
}, UG = {};
UG[kW("toStringTag")] = "z";
var WG = String(UG) === "[object z]", GG = kW("toStringTag"), KG = CU.Object, qG = zU(function() {
	return arguments;
}()) == "Arguments", JG = WG ? zU : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = KG(e), GG)) == "string" ? n : qG ? zU(t) : (r = zU(t)) == "Object" && KU(t.callee) ? "Arguments" : r;
}, YG = CU.String, XG = function(e) {
	if (JG(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return YG(e);
}, ZG = /"/g, QG = IU("".replace);
HG({
	target: "String",
	proto: !0,
	forced: wU((function() {
		var e = "".anchor("\"");
		return e !== e.toLowerCase() || e.split("\"").length > 3;
	}))
}, { anchor: function(e) {
	return t = e, n = XG(WU(this)), r = "<a", (r += " name=\"" + QG(XG(t), ZG, "&quot;") + "\"") + ">" + n + "</a>";
	var t, n, r;
} });
var $G, eK = function() {
	var e = VW(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, tK = CU.RegExp, nK = wU((function() {
	var e = tK("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), rK = nK || wU((function() {
	return !tK("a", "y").sticky;
})), iK = {
	BROKEN_CARET: nK || wU((function() {
		var e = tK("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: rK,
	UNSUPPORTED_Y: nK
}, aK = Object.keys || function(e) {
	return EG(e, DG);
}, oK = TU ? Object.defineProperties : function(e, t) {
	VW(e);
	for (var n, r = GU(t), i = aK(t), a = i.length, o = 0; a > o;) WW.f(e, n = i[o++], r[n]);
	return e;
}, sK = YU("document", "documentElement"), cK = eG("IE_PROTO"), lK = function() {}, uK = function(e) {
	return "<script>" + e + "<\/script>";
}, dK = function(e) {
	e.write(uK("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, fK = function() {
	try {
		$G = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	fK = typeof document < "u" ? document.domain && $G ? dK($G) : ((t = FW("iframe")).style.display = "none", sK.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(uK("document.F=Object")), e.close(), e.F) : dK($G);
	for (var n = DG.length; n--;) delete fK.prototype[DG[n]];
	return fK();
};
tG[cK] = !0;
var pK, mK, hK = Object.create || function(e, t) {
	var n;
	return e === null ? n = fK() : (lK.prototype = VW(e), n = new lK(), lK.prototype = null, n[cK] = e), t === void 0 ? n : oK(n, t);
}, gK = CU.RegExp, _K = wU((function() {
	var e = gK(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), vK = CU.RegExp, yK = wU((function() {
	var e = vK("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), bK = lG.get, xK = gW("native-string-replace", String.prototype.replace), SK = RegExp.prototype.exec, CK = SK, wK = IU("".charAt), TK = IU("".indexOf), EK = IU("".replace), DK = IU("".slice), OK = (mK = /b*/g, DU(SK, pK = /a/, "a"), DU(SK, mK, "a"), pK.lastIndex !== 0 || mK.lastIndex !== 0), kK = iK.BROKEN_CARET, AK = /()??/.exec("")[1] !== void 0;
(OK || AK || kK || _K || yK) && (CK = function(e) {
	var t, n, r, i, a, o, s, c = this, l = bK(c), u = XG(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = DU(CK, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = kK && c.sticky, m = DU(eK, c), h = c.source, g = 0, _ = u;
	if (p && (m = EK(m, "y", ""), TK(m, "g") === -1 && (m += "g"), _ = DK(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && wK(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), AK && (n = RegExp("^" + h + "$(?!\\s)", m)), OK && (r = c.lastIndex), i = DU(SK, p ? n : c, _), p ? i ? (i.input = DK(i.input, g), i[0] = DK(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : OK && i && (c.lastIndex = c.global ? i.index + i[0].length : r), AK && i && i.length > 1 && DU(xK, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = hK(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var jK = CK;
HG({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== jK
}, { exec: jK });
var MK = Array.isArray || function(e) {
	return zU(e) == "Array";
}, NK = function() {}, PK = [], FK = YU("Reflect", "construct"), IK = /^\s*(?:class|function)\b/, LK = IU(IK.exec), RK = !IK.exec(NK), zK = function(e) {
	if (!KU(e)) return !1;
	try {
		return FK(NK, PK, e), !0;
	} catch {
		return !1;
	}
}, BK = !FK || wU((function() {
	var e;
	return zK(zK.call) || !zK(Object) || !zK((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!KU(e)) return !1;
	switch (JG(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return RK || !!LK(IK, XW(e));
} : zK, VK = function(e, t, n) {
	var r = MW(t);
	r in e ? WW.f(e, r, jU(0, n)) : e[r] = n;
}, HK = kW("species"), UK = function(e) {
	return nW >= 51 || !wU((function() {
		var t = [];
		return (t.constructor = {})[HK] = function() {
			return { foo: 1 };
		}, t[e](Boolean).foo !== 1;
	}));
}, WK = IU([].slice), GK = UK("slice"), KK = kW("species"), qK = CU.Array, JK = Math.max;
function YK(e, t) {
	var n = typeof Symbol == "function" && e[Symbol.iterator];
	if (!n) return e;
	var r, i, a = n.call(e), o = [];
	try {
		for (; (t === void 0 || t-- > 0) && !(r = a.next()).done;) o.push(r.value);
	} catch (e) {
		i = { error: e };
	} finally {
		try {
			r && !r.done && (n = a.return) && n.call(a);
		} finally {
			if (i) throw i.error;
		}
	}
	return o;
}
function XK(e) {
	var t = e.selection;
	if (t == null) return !1;
	var n = YK(P.nodes(e, { match: function(e) {
		return K.checkNodeType(e, "table-cell");
	} }), 1)[0];
	if (n) {
		var r = YK(n, 2)[1], i = P.start(e, r);
		if (L.equals(t.anchor, i)) return !0;
	}
	return !1;
}
function ZK(e, t) {
	var n, r, i = P.nodes(e, {
		at: t,
		match: function(e) {
			return K.getNodeType(e) === "table";
		}
	}), a = !1;
	try {
		for (var o = function(e) {
			var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
			if (n) return n.call(e);
			if (e && typeof e.length == "number") return { next: function() {
				return e && r >= e.length && (e = void 0), {
					value: e && e[r++],
					done: !e
				};
			} };
			throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
		}(i), s = o.next(); !s.done; s = o.next()) s.value, a = !0;
	} catch (e) {
		n = { error: e };
	} finally {
		try {
			s && !s.done && (r = o.return) && r.call(o);
		} finally {
			if (n) throw n.error;
		}
	}
	return a;
}
HG({
	target: "Array",
	proto: !0,
	forced: !GK
}, { slice: function(e, t) {
	var n, r, i, a = GU(this), o = CG(a), s = bG(e, o), c = bG(t === void 0 ? o : t, o);
	if (MK(a) && (n = a.constructor, (BK(n) && (n === qK || MK(n.prototype)) || qU(n) && (n = n[KK]) === null) && (n = void 0), n === qK || n === void 0)) return WK(a, s, c);
	for (r = new (n === void 0 ? qK : n)(JK(c - s, 0)), i = 0; s < c; s++, i++) s in a && VK(r, i, a[s]);
	return r.length = i, r;
} });
var QK = IU(IU.bind), $K = kW("species"), eq = CU.Array, tq = function(e, t) {
	return new (function(e) {
		var t;
		return MK(e) && (t = e.constructor, (BK(t) && (t === eq || MK(t.prototype)) || qU(t) && (t = t[$K]) === null) && (t = void 0)), t === void 0 ? eq : t;
	}(e))(t === 0 ? 0 : t);
}, nq = IU([].push), rq = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = vW(c), h = HU(m), g = function(e, t) {
			return uW(e), t === void 0 ? e : QK ? QK(e, t) : function() {
				return e.apply(t, arguments);
			};
		}(l, u), _ = CG(h), v = 0, y = d || tq, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: nq(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: nq(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, iq = {
	forEach: rq(0),
	map: rq(1),
	filter: rq(2),
	some: rq(3),
	every: rq(4),
	find: rq(5),
	findIndex: rq(6),
	filterReject: rq(7)
}, aq = iq.map;
HG({
	target: "Array",
	proto: !0,
	forced: !UK("map")
}, { map: function(e) {
	return aq(this, e, arguments.length > 1 ? arguments[1] : void 0);
} });
var oq = WG ? {}.toString : function() {
	return "[object " + JG(this) + "]";
};
function sq(e) {
	var t = e.children || [];
	return t.length === 0 ? [] : (t[0] || {}).children || [];
}
function cq(e) {
	return sq(e).every((function(e) {
		return !!e.isHeader;
	}));
}
WG || mG(Object.prototype, "toString", oq, { unsafe: !0 });
var lq = pG.PROPER, uq = RegExp.prototype, dq = uq.toString, fq = IU(eK), pq = wU((function() {
	return dq.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), mq = lq && dq.name != "toString";
(pq || mq) && mG(RegExp.prototype, "toString", (function() {
	var e = VW(this), t = XG(e.source), n = e.flags;
	return "/" + t + "/" + XG(n === void 0 && XU(uq, e) && !("flags" in uq) ? fq(e) : n);
}), { unsafe: !0 });
var hq = kW("unscopables"), gq = Array.prototype;
gq[hq] ?? WW.f(gq, hq, {
	configurable: !0,
	value: hK(null)
});
var _q = iq.find, vq = !0;
"find" in [] && [,].find((function() {
	vq = !1;
})), HG({
	target: "Array",
	proto: !0,
	forced: vq
}, { find: function(e) {
	return _q(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), gq[hq].find = !0;
var yq = Function.prototype, bq = yq.apply, xq = yq.bind, Sq = yq.call, Cq = typeof Reflect == "object" && Reflect.apply || (xq ? Sq.bind(bq) : function() {
	return Sq.apply(bq, arguments);
}), wq = kW("species"), Tq = RegExp.prototype, Eq = function(e, t, n, r) {
	var i = kW(e), a = !wU((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !wU((function() {
		var t = !1, n = /a/;
		return e === "split" && ((n = {}).constructor = {}, n.constructor[wq] = function() {
			return n;
		}, n.flags = "", n[i] = /./[i]), n.exec = function() {
			return t = !0, null;
		}, n[i](""), !t;
	}));
	if (!a || !o || n) {
		var s = IU(/./[i]), c = t(i, ""[e], (function(e, t, n, r, i) {
			var o = IU(e), c = t.exec;
			return c === jK || c === Tq.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		mG(String.prototype, e, c[0]), mG(Tq, i, c[1]);
	}
	r && GW(Tq[i], "sham", !0);
}, Dq = kW("match"), Oq = CU.TypeError, kq = kW("species"), Aq = IU("".charAt), jq = IU("".charCodeAt), Mq = IU("".slice), Nq = function(e) {
	return function(t, n) {
		var r, i, a = XG(WU(t)), o = _G(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = jq(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = jq(a, o + 1)) < 56320 || i > 57343 ? e ? Aq(a, o) : r : e ? Mq(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}(!0), Pq = function(e, t, n) {
	return t + (n ? Nq(e, t).length : 1);
}, Fq = CU.Array, Iq = Math.max, Lq = function(e, t, n) {
	for (var r = CG(e), i = bG(t, r), a = bG(n === void 0 ? r : n, r), o = Fq(Iq(a - i, 0)), s = 0; i < a; i++, s++) VK(o, s, e[i]);
	return o.length = s, o;
}, Rq = CU.TypeError, zq = function(e, t) {
	var n = e.exec;
	if (KU(n)) {
		var r = DU(n, e, t);
		return r !== null && VW(r), r;
	}
	if (zU(e) === "RegExp") return DU(jK, e, t);
	throw Rq("RegExp#exec called on incompatible receiver");
}, Bq = iK.UNSUPPORTED_Y, Vq = Math.min, Hq = [].push, Uq = IU(/./.exec), Wq = IU(Hq), Gq = IU("".slice);
Eq("split", (function(e, t, n) {
	var r;
	return r = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(e, n) {
		var r, i, a = XG(WU(this)), o = n === void 0 ? 4294967295 : n >>> 0;
		if (o === 0) return [];
		if (e === void 0) return [a];
		if (!qU(r = e) || !((i = r[Dq]) === void 0 ? zU(r) == "RegExp" : i)) return DU(t, a, e, o);
		for (var s, c, l, u = [], d = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), f = 0, p = new RegExp(e.source, d + "g"); (s = DU(jK, p, a)) && !((c = p.lastIndex) > f && (Wq(u, Gq(a, f, s.index)), s.length > 1 && s.index < a.length && Cq(Hq, u, Lq(s, 1)), l = s[0].length, f = c, u.length >= o));) p.lastIndex === s.index && p.lastIndex++;
		return f === a.length ? !l && Uq(p, "") || Wq(u, "") : Wq(u, Gq(a, f)), u.length > o ? Lq(u, 0, o) : u;
	} : "0".split(void 0, 0).length ? function(e, n) {
		return e === void 0 && n === 0 ? [] : DU(t, this, e, n);
	} : t, [function(t, n) {
		var i = WU(this), a = t == null ? void 0 : dW(t, e);
		return a ? DU(a, t, i, n) : DU(r, XG(i), t, n);
	}, function(e, i) {
		var a = VW(this), o = XG(e), s = n(r, a, o, i, r !== t);
		if (s.done) return s.value;
		var c = function(e, t) {
			var n, r = VW(e).constructor;
			return r === void 0 || (n = VW(r)[kq]) == null ? t : function(e) {
				if (BK(e)) return e;
				throw Oq(cW(e) + " is not a constructor");
			}(n);
		}(a, RegExp), l = a.unicode, u = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (Bq ? "g" : "y"), d = new c(Bq ? "^(?:" + a.source + ")" : a, u), f = i === void 0 ? 4294967295 : i >>> 0;
		if (f === 0) return [];
		if (o.length === 0) return zq(d, o) === null ? [o] : [];
		for (var p = 0, m = 0, h = []; m < o.length;) {
			d.lastIndex = Bq ? 0 : m;
			var g, _ = zq(d, Bq ? Gq(o, m) : o);
			if (_ === null || (g = Vq(SG(d.lastIndex + (Bq ? m : 0)), o.length)) === p) m = Pq(o, m, l);
			else {
				if (Wq(h, Gq(o, p, m)), h.length === f) return h;
				for (var v = 1; v <= _.length - 1; v++) if (Wq(h, _[v]), h.length === f) return h;
				m = p = g;
			}
		}
		return Wq(h, Gq(o, p)), h;
	}];
}), !!wU((function() {
	var e = /(?:)/, t = e.exec;
	e.exec = function() {
		return t.apply(this, arguments);
	};
	var n = "ab".split(e);
	return n.length !== 2 || n[0] !== "a" || n[1] !== "b";
})), Bq);
var Kq = "	\n\v\f\r \xA0               \u2028\u2029", qq = IU("".replace), Jq = "[" + Kq + "]", Yq = RegExp("^" + Jq + Jq + "*"), Xq = RegExp(Jq + Jq + "*$"), Zq = function(e) {
	return function(t) {
		var n = XG(WU(t));
		return 1 & e && (n = qq(n, Yq, "")), 2 & e && (n = qq(n, Xq, "")), n;
	};
}, Qq = {
	start: Zq(1),
	end: Zq(2),
	trim: Zq(3)
}, $q = pG.PROPER, eJ = Qq.trim;
function tJ(e) {
	return e.length ? e[0].tagName.toLowerCase() : "";
}
HG({
	target: "String",
	proto: !0,
	forced: function(e) {
		return wU((function() {
			return !!Kq[e]() || "​…᠎"[e]() !== "​…᠎" || $q && Kq[e].name !== e;
		}));
	}("trim")
}, { trim: function() {
	return eJ(this);
} }), HG({ global: !0 }, { globalThis: CU }), gd && (V.fn.append = gd), rd && (V.fn.on = rd), Dd && (V.fn.focus = Dd), $u && (V.fn.attr = $u), nd && (V.fn.val = nd), pd && (V.fn.html = pd), td && (V.fn.dataset = td), Xu && (V.fn.addClass = Xu), Zu && (V.fn.removeClass = Zu), xd && (V.fn.children = xd), dd && (V.fn.each = dd), bd && (V.fn.find = bd);
var nJ = !1, rJ = 0, iJ = 0, aJ = null, oJ = null, sJ = V("body");
function cJ(e) {
	nJ = !1, oJ = null, aJ = null, sJ.off("mousemove", lJ), sJ.off("mouseup", cJ);
}
sJ.on("mousedown", (function(e) {
	var t = e.target;
	(t.tagName === "TH" || t.tagName === "TD") && t.style.cursor === "col-resize" && (t.style.cursor = "auto", e.preventDefault(), nJ = !0, rJ = e.clientX, iJ = t.getBoundingClientRect().width, sJ.on("mousemove", lJ), sJ.on("mouseup", cJ));
}));
var lJ = Vd((function(e) {
	if (nJ && oJ != null && aJ != null) {
		e.preventDefault();
		var t = e.clientX, n = iJ + (t - rJ);
		(n = Math.floor(100 * n) / 100) < 30 && (n = 30), B.setNodes(oJ, { width: n.toString() }, { at: aJ });
	}
}), 100), uJ = {
	type: "table",
	renderElem: function(e, t, n) {
		var r = function(e, t) {
			if (e.isDisabled()) return !1;
			var n = e.selection;
			if (n == null || R.isCollapsed(n)) return !0;
			var r = n.anchor, i = n.focus, a = K.findPath(e, t), o = P.start(e, a), s = P.end(e, a), c = L.compare(r, s) <= 0 && L.compare(r, o) >= 0, l = L.compare(i, s) <= 0 && L.compare(i, o) >= 0;
			return !!(c && l && I.equals(r.path.slice(0, 3), i.path.slice(0, 3)));
		}(n, e), i = e.width, a = i === void 0 ? "auto" : i;
		return H("div", {
			className: "table-container",
			"data-selected": K.isNodeSelected(n, e),
			on: { mousedown: function(t) {
				if (t.target.tagName === "DIV" && t.preventDefault(), !n.isDisabled()) {
					var r = K.findPath(n, e), i = P.start(n, r), a = n.selection;
					(a == null || a.anchor.path[0] !== r[0]) && n.select(i);
				}
			} }
		}, H("table", {
			width: a,
			contentEditable: r
		}, H("colgroup", null, sq(e).map((function(e) {
			var t = e.width;
			return H("col", { width: t === void 0 ? "auto" : t });
		}))), H("tbody", null, t)));
	}
}, dJ = {
	type: "table-row",
	renderElem: function(e, t, n) {
		return H("tr", null, t);
	}
}, fJ = {
	type: "table-cell",
	renderElem: function(e, t, n) {
		var r = function(e, t) {
			var n = K.getParentNode(e, t);
			if (n == null) return !1;
			var r = K.getParentNode(e, n);
			return r != null && sq(r).some((function(e) {
				return e === t;
			}));
		}(n, e), i = e, a = i.colSpan, o = a === void 0 ? 1 : a, s = i.rowSpan, c = s === void 0 ? 1 : s, l = i.isHeader;
		return r ? H(l !== void 0 && l ? "th" : "td", {
			colSpan: o,
			rowSpan: c,
			style: { borderRightWidth: "3px" },
			on: { mousemove: Vd((function(t) {
				var r = this.elm;
				if (r != null) {
					var i = r.getBoundingClientRect(), a = i.left, o = i.width, s = i.top, c = i.height, l = t.clientX, u = t.clientY;
					nJ || (l > a + o - 5 && l < a + o && u > s && u < s + c ? (r.style.cursor = "col-resize", oJ = n, aJ = K.findPath(n, e)) : nJ || (r.style.cursor = "auto", oJ = null, aJ = null));
				}
			}), 100) }
		}, t) : H("td", {
			colSpan: o,
			rowSpan: c
		}, t);
	}
}, pJ = {
	selector: "table",
	preParseHtml: function(e) {
		var t = V(e);
		if (tJ(t) !== "table") return e;
		var n = t.find("tbody");
		if (n.length === 0) return e;
		var r = t.find("tr");
		return t.append(r), n.remove(), t[0];
	}
}, mJ = iq.filter;
HG({
	target: "Array",
	proto: !0,
	forced: !UK("filter")
}, { filter: function(e) {
	return mJ(this, e, arguments.length > 1 ? arguments[1] : void 0);
} });
var hJ = Math.floor, gJ = IU("".charAt), _J = IU("".replace), vJ = IU("".slice), yJ = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, bJ = /\$([$&'`]|\d{1,2})/g, xJ = function(e, t, n, r, i, a) {
	var o = n + e.length, s = r.length, c = bJ;
	return i !== void 0 && (i = vW(i), c = yJ), _J(a, c, (function(a, c) {
		var l;
		switch (gJ(c, 0)) {
			case "$": return "$";
			case "&": return e;
			case "`": return vJ(t, 0, n);
			case "'": return vJ(t, o);
			case "<":
				l = i[vJ(c, 1, -1)];
				break;
			default:
				var u = +c;
				if (u === 0) return a;
				if (u > s) {
					var d = hJ(u / 10);
					return d === 0 ? a : d <= s ? r[d - 1] === void 0 ? gJ(c, 1) : r[d - 1] + gJ(c, 1) : a;
				}
				l = r[u - 1];
		}
		return l === void 0 ? "" : l;
	}));
}, SJ = kW("replace"), CJ = Math.max, wJ = Math.min, TJ = IU([].concat), EJ = IU([].push), DJ = IU("".indexOf), OJ = IU("".slice), kJ = "a".replace(/./, "$0") === "$0", AJ = !!/./[SJ] && /./[SJ]("a", "$0") === "";
Eq("replace", (function(e, t, n) {
	var r = AJ ? "$" : "$0";
	return [function(e, n) {
		var r = WU(this), i = e == null ? void 0 : dW(e, SJ);
		return i ? DU(i, e, r, n) : DU(t, XG(r), e, n);
	}, function(e, i) {
		var a = VW(this), o = XG(e);
		if (typeof i == "string" && DJ(i, r) === -1 && DJ(i, "$<") === -1) {
			var s = n(t, a, o, i);
			if (s.done) return s.value;
		}
		var c = KU(i);
		c || (i = XG(i));
		var l = a.global;
		if (l) {
			var u = a.unicode;
			a.lastIndex = 0;
		}
		for (var d = [];;) {
			var f = zq(a, o);
			if (f === null || (EJ(d, f), !l)) break;
			XG(f[0]) === "" && (a.lastIndex = Pq(o, SG(a.lastIndex), u));
		}
		for (var p, m = "", h = 0, g = 0; g < d.length; g++) {
			for (var _ = XG((f = d[g])[0]), v = CJ(wJ(_G(f.index), o.length), 0), y = [], b = 1; b < f.length; b++) EJ(y, (p = f[b]) === void 0 ? p : String(p));
			var x = f.groups;
			if (c) {
				var S = TJ([_], y, v, o);
				x !== void 0 && EJ(S, x);
				var C = XG(Cq(i, void 0, S));
			} else C = xJ(_, o, v, y, x, i);
			v >= h && (m += OJ(o, h, v) + C, h = v + _.length);
		}
		return m + OJ(o, h);
	}];
}), !!wU((function() {
	var e = /./;
	return e.exec = function() {
		var e = [];
		return e.groups = { a: "7" }, e;
	}, "".replace(e, "$<a>") !== "7";
})) || !kJ || AJ);
var jJ = {
	selector: "td:not([data-w-e-type]),th:not([data-w-e-type])",
	parseElemHtml: function(e, t, n) {
		var r = V(e);
		(t = t.filter((function(e) {
			return !!z.isText(e) || !!n.isInline(e);
		}))).length === 0 && (t = [{ text: r.text().replace(/\s+/gm, " ") }]);
		var i = parseInt(r.attr("colSpan") || "1"), a = parseInt(r.attr("rowSpan") || "1"), o = r.attr("width") || "auto";
		return {
			type: "table-cell",
			isHeader: tJ(r) === "th",
			colSpan: i,
			rowSpan: a,
			width: o,
			children: t
		};
	}
}, MJ = {
	selector: "tr:not([data-w-e-type])",
	parseElemHtml: function(e, t, n) {
		return {
			type: "table-row",
			children: t.filter((function(e) {
				return K.getNodeType(e) === "table-cell";
			}))
		};
	}
}, NJ = {
	selector: "table:not([data-w-e-type])",
	parseElemHtml: function(e, t, n) {
		var r = V(e), i = "auto";
		return function(e, t) {
			for (var n = "", r = (e.attr("style") || "").split(";"), i = r.length, a = 0; a < i; a++) {
				var o = r[a];
				if (o) {
					var s = o.split(":");
					s[0].trim() === "width" && (n = s[1].trim());
				}
			}
			return n;
		}(r) === "100%" && (i = "100%"), r.attr("width") === "100%" && (i = "100%"), {
			type: "table",
			width: i,
			children: t.filter((function(e) {
				return K.getNodeType(e) === "table-row";
			}))
		};
	}
}, PJ = function() {
	function e() {
		this.title = q("tableModule.insertTable"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z\"></path></svg>", this.tag = "button", this.showDropPanel = !0, this.$content = null;
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || !!K.getSelectedElems(e).some((function(t) {
			var n = K.getNodeType(t);
			return n === "pre" || n === "table" || n === "list-item" || !!e.isVoid(t);
		}));
	}, e.prototype.getPanelContentElem = function(e) {
		var t = this;
		if (this.$content) return this.$content[0];
		for (var n = V("<div class=\"w-e-panel-content-table\"></div>"), r = V("<span>0 &times; 0</span>"), i = V("<table></table>"), a = 0; a < 10; a++) {
			for (var o = V("<tr></tr>"), s = 0; s < 10; s++) {
				var c = V("<td></td>");
				c.attr("data-x", s.toString()), c.attr("data-y", a.toString()), o.append(c), c.on("mouseenter", (function(e) {
					var t = e.target;
					if (t != null) {
						var n = V(t).dataset(), a = n.x, o = n.y;
						r[0].innerHTML = a + 1 + " &times; " + (o + 1), i.children().each((function(e) {
							V(e).children().each((function(e) {
								var t = V(e), n = t.dataset(), r = n.x, i = n.y;
								r <= a && i <= o ? t.addClass("active") : t.removeClass("active");
							}));
						}));
					}
				})), c.on("click", (function(n) {
					n.preventDefault();
					var r = n.target;
					if (r != null) {
						var i = V(r).dataset(), a = i.x, o = i.y;
						t.insertTable(e, o + 1, a + 1);
					}
				}));
			}
			i.append(o);
		}
		return n.append(i), n.append(r), this.$content = n, n[0];
	}, e.prototype.insertTable = function(e, t, n) {
		var r = parseInt(t, 10), i = parseInt(n, 10);
		if (r && i && !(r <= 0 || i <= 0)) {
			K.isSelectedEmptyParagraph(e) && B.removeNodes(e, { mode: "highest" });
			var a = function(e, t) {
				for (var n = [], r = 0; r < e; r++) {
					for (var i = [], a = 0; a < t; a++) {
						var o = {
							type: "table-cell",
							children: [{ text: "" }]
						};
						r === 0 && (o.isHeader = !0), i.push(o);
					}
					n.push({
						type: "table-row",
						children: i
					});
				}
				return {
					type: "table",
					width: "auto",
					children: n
				};
			}(r, i);
			B.insertNodes(e, a, { mode: "highest" });
		}
	}, e;
}(), FJ = function() {
	function e() {
		this.title = q("tableModule.deleteTable"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z\" p-id=\"9577\"></path><path d=\"M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || K.getSelectedNodeByType(e, "table") == null;
	}, e.prototype.exec = function(e, t) {
		this.isDisabled(e) || B.removeNodes(e, { mode: "highest" });
	}, e;
}(), IJ = function() {
	function e() {
		this.title = q("tableModule.insertRow"), this.iconSvg = "<svg viewBox=\"0 0 1048 1024\"><path d=\"M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || K.getSelectedNodeByType(e, "table") == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = YK(YK(P.nodes(e, {
				match: function(e) {
					return K.checkNodeType(e, "table-cell");
				},
				universal: !0
			}), 1)[0], 2), r = n[0], i = n[1], a = K.getParentNode(e, r)?.children.length || 0;
			if (a !== 0) {
				for (var o = {
					type: "table-row",
					children: []
				}, s = 0; s < a; s++) o.children.push({
					type: "table-cell",
					children: [{ text: "" }]
				});
				var c = I.parent(i), l = I.next(c);
				B.insertNodes(e, o, { at: l });
			}
		}
	}, e;
}(), LJ = function() {
	function e() {
		this.title = q("tableModule.deleteRow"), this.iconSvg = "<svg viewBox=\"0 0 1048 1024\"><path d=\"M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || K.getSelectedNodeByType(e, "table-row") == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = YK(YK(P.nodes(e, {
				match: function(e) {
					return K.checkNodeType(e, "table-row");
				},
				universal: !0
			}), 1)[0], 2), r = n[0], i = n[1];
			(K.getParentNode(e, r)?.children.length || 0) <= 1 ? B.removeNodes(e, { mode: "highest" }) : B.removeNodes(e, { at: i });
		}
	}, e;
}(), RJ = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, zJ = FW("span").classList, BJ = zJ && zJ.constructor && zJ.constructor.prototype, VJ = BJ === Object.prototype ? void 0 : BJ, HJ = iq.forEach, UJ = function(e, t) {
	var n = [].forEach;
	return !!n && wU((function() {
		n.call(null, (function() {
			throw 1;
		}), 1);
	}));
}() ? [].forEach : function(e) {
	return HJ(this, e, arguments.length > 1 ? arguments[1] : void 0);
}, WJ = function(e) {
	if (e && e.forEach !== UJ) try {
		GW(e, "forEach", UJ);
	} catch {
		e.forEach = UJ;
	}
};
for (var GJ in RJ) RJ[GJ] && WJ(CU[GJ] && CU[GJ].prototype);
WJ(VJ);
var KJ = function() {
	function e() {
		this.title = q("tableModule.insertCol"), this.iconSvg = "<svg viewBox=\"0 0 1048 1024\"><path d=\"M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || K.getSelectedNodeByType(e, "table") == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = YK(YK(P.nodes(e, {
				match: function(e) {
					return K.checkNodeType(e, "table-cell");
				},
				universal: !0
			}), 1)[0], 2), r = n[0], i = n[1], a = K.getParentNode(e, r);
			if (a != null) {
				var o = K.getParentNode(e, a);
				o != null && (o.children || []).forEach((function(t, n) {
					N.isElement(t) && (t.children || []).forEach((function(t) {
						var r = K.findPath(e, t);
						if (r.length === i.length && _U(r.slice(-1), i.slice(-1))) {
							var a = {
								type: "table-cell",
								children: [{ text: "" }]
							};
							n === 0 && cq(o) && (a.isHeader = !0), B.insertNodes(e, a, { at: r });
						}
					}));
				}));
			}
		}
	}, e;
}(), qJ = function() {
	function e() {
		this.title = q("tableModule.deleteCol"), this.iconSvg = "<svg viewBox=\"0 0 1048 1024\"><path d=\"M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || K.getSelectedNodeByType(e, "table-cell") == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = YK(YK(P.nodes(e, {
				match: function(e) {
					return K.checkNodeType(e, "table-cell");
				},
				universal: !0
			}), 1)[0], 2), r = n[0], i = n[1], a = K.getParentNode(e, r), o = a?.children.length || 0;
			if (!a || o <= 1) B.removeNodes(e, { mode: "highest" });
			else {
				var s = K.getParentNode(e, a);
				s != null && (s.children || []).forEach((function(t) {
					N.isElement(t) && (t.children || []).forEach((function(t) {
						var n = K.findPath(e, t);
						n.length === i.length && _U(n.slice(-1), i.slice(-1)) && B.removeNodes(e, { at: n });
					}));
				}));
			}
		}
	}, e;
}(), JJ = function() {
	function e() {
		this.title = q("tableModule.header"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		var t = K.getSelectedNodeByType(e, "table");
		return t != null && cq(t);
	}, e.prototype.isActive = function(e) {
		return !!this.getValue(e);
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || K.getSelectedNodeByType(e, "table") == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = !t, r = K.getSelectedNodeByType(e, "table");
			r != null && sq(r).forEach((function(t) {
				return B.setNodes(e, { isHeader: n }, { at: K.findPath(e, t) });
			}));
		}
	}, e;
}(), YJ = function() {
	function e() {
		this.title = q("tableModule.widthAuto"), this.iconSvg = "<svg viewBox=\"0 0 1228 1024\"><path d=\"M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		var t = K.getSelectedNodeByType(e, "table");
		return t != null && t.width === "100%";
	}, e.prototype.isActive = function(e) {
		return !!this.getValue(e);
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || K.getSelectedNodeByType(e, "table") == null;
	}, e.prototype.exec = function(e, t) {
		if (!this.isDisabled(e)) {
			var n = { width: t ? "auto" : "100%" };
			B.setNodes(e, n, { mode: "highest" });
		}
	}, e;
}(), XJ = {
	renderElems: [
		uJ,
		dJ,
		fJ
	],
	elemsToHtml: [
		{
			type: "table",
			elemToHtml: function(e, t) {
				var n = e.width;
				return "<table style=\"width: " + (n === void 0 ? "auto" : n) + ";\"><tbody>" + t + "</tbody></table>";
			}
		},
		{
			type: "table-row",
			elemToHtml: function(e, t) {
				return "<tr>" + t + "</tr>";
			}
		},
		{
			type: "table-cell",
			elemToHtml: function(e, t) {
				var n = e, r = n.colSpan, i = r === void 0 ? 1 : r, a = n.rowSpan, o = a === void 0 ? 1 : a, s = n.isHeader, c = s !== void 0 && s, l = n.width, u = c ? "th" : "td";
				return "<" + u + " colSpan=\"" + i + "\" rowSpan=\"" + o + "\" width=\"" + (l === void 0 ? "auto" : l) + "\">" + t + "</" + u + ">";
			}
		}
	],
	preParseHtml: [pJ],
	parseElemsHtml: [
		jJ,
		MJ,
		NJ
	],
	menus: [
		{
			key: "insertTable",
			factory: function() {
				return new PJ();
			}
		},
		{
			key: "deleteTable",
			factory: function() {
				return new FJ();
			}
		},
		{
			key: "insertTableRow",
			factory: function() {
				return new IJ();
			}
		},
		{
			key: "deleteTableRow",
			factory: function() {
				return new LJ();
			}
		},
		{
			key: "insertTableCol",
			factory: function() {
				return new KJ();
			}
		},
		{
			key: "deleteTableCol",
			factory: function() {
				return new qJ();
			}
		},
		{
			key: "tableHeader",
			factory: function() {
				return new JJ();
			}
		},
		{
			key: "tableFullWidth",
			factory: function() {
				return new YJ();
			}
		}
	],
	editorPlugin: function(e) {
		var t = e.insertBreak, n = e.deleteBackward, r = e.deleteForward, i = e.normalizeNode, a = e.insertData, o = e.handleTab, s = e.selectAll, c = e;
		return c.insertBreak = function() {
			K.getSelectedNodeByType(c, "table") == null ? t() : c.insertText("\n");
		}, c.deleteBackward = function(e) {
			if (!XK(c)) {
				var t = c.selection;
				if (t) {
					var r = P.before(c, t);
					if (r) {
						var i = ZK(c, r), a = ZK(c, t);
						if (i && !a) return;
					}
				}
				n(e);
			}
		}, c.handleTab = function() {
			if (K.getSelectedNodeByType(c, "table")) {
				var t = P.above(e);
				K.checkNodeType(t[0], "table-cell") && B.select(e, t[1]);
				var n = P.next(e);
				if (n) n[0] && n[0].text && (n = P.above(e, { at: n[1] }) ?? n), B.select(e, n[1]);
				else {
					var r = c.children || [], i = r.length;
					if (K.checkNodeType(r[i - 1], "table")) {
						var a = K.genEmptyParagraph();
						B.insertNodes(c, a, { at: [i] }), c.handleTab();
					}
				}
			} else o();
		}, c.deleteForward = function(e) {
			XK(c) || r(e);
		}, c.normalizeNode = function(e) {
			var t = YK(e, 2), n = t[0], r = t[1];
			if (K.getNodeType(n) !== "table") return i([n, r]);
			if (K.isLastNode(c, n)) {
				var a = K.genEmptyParagraph();
				B.insertNodes(c, a, { at: [r[0] + 1] });
			}
		}, c.insertData = function(e) {
			if (K.getSelectedNodeByType(c, "table") != null) {
				var t = e.getData("text/plain");
				t === "\n" || /<img[^>]+>/.test(e.getData("text/html")) ? a(e) : P.insertText(c, t);
			} else a(e);
		}, c.selectAll = function() {
			var e = c.selection;
			if (e != null) {
				var t = K.getSelectedNodeByType(c, "table-cell");
				if (t != null) {
					var n = e.anchor, r = e.focus;
					if (I.equals(n.path.slice(0, 3), r.path.slice(0, 3))) if (F.string(t).length !== 0) {
						var i = K.findPath(c, t), a = {
							anchor: P.start(c, i),
							focus: P.end(c, i)
						};
						c.select(a);
					} else s();
					else s();
				} else s();
			} else s();
		}, c;
	}
};
HE("en", { videoModule: {
	delete: "Delete",
	uploadVideo: "Upload video",
	insertVideo: "Insert video",
	videoSrc: "Video source",
	videoSrcPlaceHolder: "Video file url, or third-party <iframe>",
	videoPoster: "Video poster",
	videoPosterPlaceHolder: "Poster image url",
	ok: "Ok",
	editSize: "Edit size",
	width: "Width",
	height: "Height"
} }), HE("zh-CN", { videoModule: {
	delete: "删除视频",
	uploadVideo: "上传视频",
	insertVideo: "插入视频",
	videoSrc: "视频地址",
	videoSrcPlaceHolder: "视频文件 url 或第三方 <iframe>",
	videoPoster: "视频封面",
	videoPosterPlaceHolder: "封面图片 url",
	ok: "确定",
	editSize: "修改尺寸",
	width: "宽度",
	height: "高度"
} });
var ZJ = function() {
	return ZJ = Object.assign || function(e) {
		for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
		return e;
	}, ZJ.apply(this, arguments);
};
function QJ(e, t, n, r) {
	return new (n ||= Promise)((function(i, a) {
		function o(e) {
			try {
				c(r.next(e));
			} catch (e) {
				a(e);
			}
		}
		function s(e) {
			try {
				c(r.throw(e));
			} catch (e) {
				a(e);
			}
		}
		function c(e) {
			var t;
			e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
				e(t);
			}))).then(o, s);
		}
		c((r = r.apply(e, t || [])).next());
	}));
}
function $J(e, t) {
	var n, r, i, a, o = {
		label: 0,
		sent: function() {
			if (1 & i[0]) throw i[1];
			return i[1];
		},
		trys: [],
		ops: []
	};
	return a = {
		next: s(0),
		throw: s(1),
		return: s(2)
	}, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
		return this;
	}), a;
	function s(a) {
		return function(s) {
			return function(a) {
				if (n) throw TypeError("Generator is already executing.");
				for (; o;) try {
					if (n = 1, r && (i = 2 & a[0] ? r.return : a[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, a[1])).done) return i;
					switch (r = 0, i && (a = [2 & a[0], i.value]), a[0]) {
						case 0:
						case 1:
							i = a;
							break;
						case 4: return o.label++, {
							value: a[1],
							done: !1
						};
						case 5:
							o.label++, r = a[1], a = [0];
							continue;
						case 7:
							a = o.ops.pop(), o.trys.pop();
							continue;
						default:
							if (!((i = (i = o.trys).length > 0 && i[i.length - 1]) || a[0] !== 6 && a[0] !== 2)) {
								o = 0;
								continue;
							}
							if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
								o.label = a[1];
								break;
							}
							if (a[0] === 6 && o.label < i[1]) {
								o.label = i[1], i = a;
								break;
							}
							if (i && o.label < i[2]) {
								o.label = i[2], o.ops.push(a);
								break;
							}
							i[2] && o.ops.pop(), o.trys.pop();
							continue;
					}
					a = t.call(e, o);
				} catch (e) {
					a = [6, e], r = 0;
				} finally {
					n = i = 0;
				}
				if (5 & a[0]) throw a[1];
				return {
					value: a[0] ? a[1] : void 0,
					done: !0
				};
			}([a, s]);
		};
	}
}
function eY(e, t) {
	var n = typeof Symbol == "function" && e[Symbol.iterator];
	if (!n) return e;
	var r, i, a = n.call(e), o = [];
	try {
		for (; (t === void 0 || t-- > 0) && !(r = a.next()).done;) o.push(r.value);
	} catch (e) {
		i = { error: e };
	} finally {
		try {
			r && !r.done && (n = a.return) && n.call(a);
		} finally {
			if (i) throw i.error;
		}
	}
	return o;
}
function tY(e) {
	if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
	var t, n = e[Symbol.asyncIterator];
	return n ? n.call(e) : (e = function(e) {
		var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
		if (n) return n.call(e);
		if (e && typeof e.length == "number") return { next: function() {
			return e && r >= e.length && (e = void 0), {
				value: e && e[r++],
				done: !e
			};
		} };
		throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
	}(e), t = {}, r("next"), r("throw"), r("return"), t[Symbol.asyncIterator] = function() {
		return this;
	}, t);
	function r(n) {
		t[n] = e[n] && function(t) {
			return new Promise((function(r, i) {
				(function(e, t, n, r) {
					Promise.resolve(r).then((function(t) {
						e({
							value: t,
							done: n
						});
					}), t);
				})(r, i, (t = e[n](t)).done, t.value);
			}));
		};
	}
}
var nY = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function rY(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var iY, aY, oY = function(e) {
	return e && e.Math == Math && e;
}, Z = oY(typeof globalThis == "object" && globalThis) || oY(typeof window == "object" && window) || oY(typeof self == "object" && self) || oY(typeof nY == "object" && nY) || function() {
	return this;
}() || Function("return this")(), sY = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, cY = !sY((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), lY = Function.prototype.call, uY = lY.bind ? lY.bind(lY) : function() {
	return lY.apply(lY, arguments);
}, dY = {}.propertyIsEnumerable, fY = Object.getOwnPropertyDescriptor, pY = { f: fY && !dY.call({ 1: 2 }, 1) ? function(e) {
	var t = fY(this, e);
	return !!t && t.enumerable;
} : dY }, mY = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, hY = Function.prototype, gY = hY.bind, _Y = hY.call, vY = gY && gY.bind(_Y), Q = gY ? function(e) {
	return e && vY(_Y, e);
} : function(e) {
	return e && function() {
		return _Y.apply(e, arguments);
	};
}, yY = Q({}.toString), bY = Q("".slice), xY = function(e) {
	return bY(yY(e), 8, -1);
}, SY = Z.Object, CY = Q("".split), wY = sY((function() {
	return !SY("z").propertyIsEnumerable(0);
})) ? function(e) {
	return xY(e) == "String" ? CY(e, "") : SY(e);
} : SY, TY = Z.TypeError, EY = function(e) {
	if (e == null) throw TY("Can't call method on " + e);
	return e;
}, DY = function(e) {
	return wY(EY(e));
}, OY = function(e) {
	return typeof e == "function";
}, kY = function(e) {
	return typeof e == "object" ? e !== null : OY(e);
}, AY = function(e) {
	return OY(e) ? e : void 0;
}, jY = function(e, t) {
	return arguments.length < 2 ? AY(Z[e]) : Z[e] && Z[e][t];
}, MY = Q({}.isPrototypeOf), NY = jY("navigator", "userAgent") || "", PY = Z.process, FY = Z.Deno, IY = PY && PY.versions || FY && FY.version, LY = IY && IY.v8;
LY && (aY = (iY = LY.split("."))[0] > 0 && iY[0] < 4 ? 1 : +(iY[0] + iY[1])), !aY && NY && (!(iY = NY.match(/Edge\/(\d+)/)) || iY[1] >= 74) && (iY = NY.match(/Chrome\/(\d+)/)) && (aY = +iY[1]);
var RY = aY, zY = !!Object.getOwnPropertySymbols && !sY((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && RY && RY < 41;
})), BY = zY && !Symbol.sham && typeof Symbol.iterator == "symbol", VY = Z.Object, HY = BY ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = jY("Symbol");
	return OY(t) && MY(t.prototype, VY(e));
}, UY = Z.String, WY = function(e) {
	try {
		return UY(e);
	} catch {
		return "Object";
	}
}, GY = Z.TypeError, KY = function(e) {
	if (OY(e)) return e;
	throw GY(WY(e) + " is not a function");
}, qY = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : KY(n);
}, JY = Z.TypeError, YY = Object.defineProperty, XY = function(e, t) {
	try {
		YY(Z, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		Z[e] = t;
	}
	return t;
}, ZY = Z["__core-js_shared__"] || XY("__core-js_shared__", {}), QY = rY((function(e) {
	(e.exports = function(e, t) {
		return ZY[e] || (ZY[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), $Y = Z.Object, eX = function(e) {
	return $Y(EY(e));
}, tX = Q({}.hasOwnProperty), nX = Object.hasOwn || function(e, t) {
	return tX(eX(e), t);
}, rX = 0, iX = Math.random(), aX = Q(1 .toString), oX = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + aX(++rX + iX, 36);
}, sX = QY("wks"), cX = Z.Symbol, lX = cX && cX.for, uX = BY ? cX : cX && cX.withoutSetter || oX, dX = function(e) {
	if (!nX(sX, e) || !zY && typeof sX[e] != "string") {
		var t = "Symbol." + e;
		zY && nX(cX, e) ? sX[e] = cX[e] : sX[e] = BY && lX ? lX(t) : uX(t);
	}
	return sX[e];
}, fX = Z.TypeError, pX = dX("toPrimitive"), mX = function(e) {
	var t = function(e, t) {
		if (!kY(e) || HY(e)) return e;
		var n, r = qY(e, pX);
		if (r) {
			if (t === void 0 && (t = "default"), n = uY(r, e, t), !kY(n) || HY(n)) return n;
			throw fX("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && OY(n = e.toString) && !kY(r = uY(n, e)) || OY(n = e.valueOf) && !kY(r = uY(n, e)) || t !== "string" && OY(n = e.toString) && !kY(r = uY(n, e))) return r;
			throw JY("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return HY(t) ? t : t + "";
}, hX = Z.document, gX = kY(hX) && kY(hX.createElement), _X = function(e) {
	return gX ? hX.createElement(e) : {};
}, vX = !cY && !sY((function() {
	return Object.defineProperty(_X("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), yX = Object.getOwnPropertyDescriptor, bX = { f: cY ? yX : function(e, t) {
	if (e = DY(e), t = mX(t), vX) try {
		return yX(e, t);
	} catch {}
	if (nX(e, t)) return mY(!uY(pY.f, e, t), e[t]);
} }, xX = Z.String, SX = Z.TypeError, CX = function(e) {
	if (kY(e)) return e;
	throw SX(xX(e) + " is not an object");
}, wX = Z.TypeError, TX = Object.defineProperty, EX = { f: cY ? TX : function(e, t, n) {
	if (CX(e), t = mX(t), CX(n), vX) try {
		return TX(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw wX("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, DX = cY ? function(e, t, n) {
	return EX.f(e, t, mY(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, OX = Q(Function.toString);
OY(ZY.inspectSource) || (ZY.inspectSource = function(e) {
	return OX(e);
});
var kX, AX, jX, MX = ZY.inspectSource, NX = Z.WeakMap, PX = OY(NX) && /native code/.test(MX(NX)), FX = QY("keys"), IX = function(e) {
	return FX[e] || (FX[e] = oX(e));
}, LX = {}, RX = Z.TypeError, zX = Z.WeakMap;
if (PX || ZY.state) {
	var BX = ZY.state ||= new zX(), VX = Q(BX.get), HX = Q(BX.has), UX = Q(BX.set);
	kX = function(e, t) {
		if (HX(BX, e)) throw new RX("Object already initialized");
		return t.facade = e, UX(BX, e, t), t;
	}, AX = function(e) {
		return VX(BX, e) || {};
	}, jX = function(e) {
		return HX(BX, e);
	};
} else {
	var WX = IX("state");
	LX[WX] = !0, kX = function(e, t) {
		if (nX(e, WX)) throw new RX("Object already initialized");
		return t.facade = e, DX(e, WX, t), t;
	}, AX = function(e) {
		return nX(e, WX) ? e[WX] : {};
	}, jX = function(e) {
		return nX(e, WX);
	};
}
var GX = {
	set: kX,
	get: AX,
	has: jX,
	enforce: function(e) {
		return jX(e) ? AX(e) : kX(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!kY(t) || (n = AX(t)).type !== e) throw RX("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, KX = Function.prototype, qX = cY && Object.getOwnPropertyDescriptor, JX = nX(KX, "name"), YX = {
	EXISTS: JX,
	PROPER: JX && function() {}.name === "something",
	CONFIGURABLE: JX && (!cY || cY && qX(KX, "name").configurable)
}, XX = rY((function(e) {
	var t = YX.CONFIGURABLE, n = GX.get, r = GX.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		OY(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!nX(a, "name") || t && a.name !== d) && DX(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === Z ? l ? e[n] = a : XY(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : DX(e, n, a));
	})(Function.prototype, "toString", (function() {
		return OY(this) && n(this).source || MX(this);
	}));
})), ZX = Math.ceil, QX = Math.floor, $X = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? QX : ZX)(t);
}, eZ = Math.max, tZ = Math.min, nZ = function(e, t) {
	var n = $X(e);
	return n < 0 ? eZ(n + t, 0) : tZ(n, t);
}, rZ = Math.min, iZ = function(e) {
	return e > 0 ? rZ($X(e), 9007199254740991) : 0;
}, aZ = function(e) {
	return iZ(e.length);
}, oZ = function(e) {
	return function(t, n, r) {
		var i, a = DY(t), o = aZ(a), s = nZ(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}, sZ = {
	includes: oZ(!0),
	indexOf: oZ(!1)
}, cZ = sZ.indexOf, lZ = Q([].push), uZ = function(e, t) {
	var n, r = DY(e), i = 0, a = [];
	for (n in r) !nX(LX, n) && nX(r, n) && lZ(a, n);
	for (; t.length > i;) nX(r, n = t[i++]) && (~cZ(a, n) || lZ(a, n));
	return a;
}, dZ = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], fZ = dZ.concat("length", "prototype"), pZ = { f: Object.getOwnPropertyNames || function(e) {
	return uZ(e, fZ);
} }, mZ = { f: Object.getOwnPropertySymbols }, hZ = Q([].concat), gZ = jY("Reflect", "ownKeys") || function(e) {
	var t = pZ.f(CX(e)), n = mZ.f;
	return n ? hZ(t, n(e)) : t;
}, _Z = function(e, t) {
	for (var n = gZ(t), r = EX.f, i = bX.f, a = 0; a < n.length; a++) {
		var o = n[a];
		nX(e, o) || r(e, o, i(t, o));
	}
}, vZ = /#|\.prototype\./, yZ = function(e, t) {
	var n = xZ[bZ(e)];
	return n == CZ || n != SZ && (OY(t) ? sY(t) : !!t);
}, bZ = yZ.normalize = function(e) {
	return String(e).replace(vZ, ".").toLowerCase();
}, xZ = yZ.data = {}, SZ = yZ.NATIVE = "N", CZ = yZ.POLYFILL = "P", wZ = yZ, TZ = bX.f, EZ = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? Z : l ? Z[s] || XY(s, {}) : (Z[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = TZ(n, r)) && o.value : n[r], !wZ(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			_Z(a, i);
		}
		(e.sham || i && i.sham) && DX(a, "sham", !0), XX(n, r, a, e);
	}
}, DZ = {};
DZ[dX("toStringTag")] = "z";
var OZ = String(DZ) === "[object z]", kZ = dX("toStringTag"), AZ = Z.Object, jZ = xY(function() {
	return arguments;
}()) == "Arguments", MZ = OZ ? xY : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = AZ(e), kZ)) == "string" ? n : jZ ? xY(t) : (r = xY(t)) == "Object" && OY(t.callee) ? "Arguments" : r;
}, NZ = Z.String, PZ = function(e) {
	if (MZ(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return NZ(e);
}, FZ = "	\n\v\f\r \xA0               \u2028\u2029", IZ = Q("".replace), LZ = "[" + FZ + "]", RZ = RegExp("^" + LZ + LZ + "*"), zZ = RegExp(LZ + LZ + "*$"), BZ = function(e) {
	return function(t) {
		var n = PZ(EY(t));
		return 1 & e && (n = IZ(n, RZ, "")), 2 & e && (n = IZ(n, zZ, "")), n;
	};
}, VZ = {
	start: BZ(1),
	end: BZ(2),
	trim: BZ(3)
}, HZ = YX.PROPER, UZ = VZ.trim;
function WZ(e) {
	return e.length ? e[0].tagName.toLowerCase() : "";
}
function GZ(e, t, n) {
	t === void 0 && (t = "auto"), n === void 0 && (n = "auto");
	var r = V(e);
	return r.attr("width", t), r.attr("height", n), r[0].outerHTML;
}
EZ({
	target: "String",
	proto: !0,
	forced: sY((function() {
		return !!FZ.trim() || HZ && FZ.trim.name !== "trim";
	}))
}, { trim: function() {
	return UZ(this);
} }), EZ({ global: !0 }, { globalThis: Z }), gd && (V.fn.append = gd), rd && (V.fn.on = rd), Dd && (V.fn.focus = Dd), $u && (V.fn.attr = $u), nd && (V.fn.val = nd), pd && (V.fn.html = pd), vd && (V.fn.parent = vd), Qu && (V.fn.hasClass = Qu), Cd && (V.fn.empty = Cd);
var KZ, qZ = {
	type: "video",
	renderElem: function(e, t, n) {
		var r, i = e, a = i.src, o = a === void 0 ? "" : a, s = i.poster, c = s === void 0 ? "" : s, l = i.width, u = l === void 0 ? "auto" : l, d = i.height, f = d === void 0 ? "auto" : d, p = K.isNodeSelected(n, e);
		if (o.trim().indexOf("<iframe ") === 0) r = H("div", {
			className: "w-e-textarea-video-container",
			"data-selected": p ? "true" : "",
			innerHTML: GZ(o, u, f)
		});
		else {
			var m = H("video", {
				poster: c,
				controls: !0
			}, H("source", {
				src: o,
				type: "video/mp4"
			}), "Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");
			u !== "auto" && (m.data.width = u), f !== "auto" && (m.data.height = f), r = H("div", {
				className: "w-e-textarea-video-container",
				"data-selected": p ? "true" : ""
			}, m);
		}
		return Zd("div", {
			props: { contentEditable: !1 },
			on: { mousedown: function(e) {
				return e.preventDefault();
			} }
		}, r);
	}
}, JZ = {
	type: "video",
	elemToHtml: function(e, t) {
		var n = e, r = n.src, i = r === void 0 ? "" : r, a = n.poster, o = a === void 0 ? "" : a, s = n.width, c = s === void 0 ? "auto" : s, l = n.height, u = l === void 0 ? "auto" : l, d = "<div data-w-e-type=\"video\" data-w-e-is-void>\n";
		return i.trim().indexOf("<iframe ") === 0 ? d += GZ(i, c, u) : d += "<video poster=\"" + o + "\" controls=\"true\" width=\"" + c + "\" height=\"" + u + "\"><source src=\"" + i + "\" type=\"video/mp4\"/></video>", d + "\n</div>";
	}
}, YZ = Object.keys || function(e) {
	return uZ(e, dZ);
}, XZ = cY ? Object.defineProperties : function(e, t) {
	CX(e);
	for (var n, r = DY(t), i = YZ(t), a = i.length, o = 0; a > o;) EX.f(e, n = i[o++], r[n]);
	return e;
}, ZZ = jY("document", "documentElement"), QZ = IX("IE_PROTO"), $Z = function() {}, eQ = function(e) {
	return "<script>" + e + "<\/script>";
}, tQ = function(e) {
	e.write(eQ("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, nQ = function() {
	try {
		KZ = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	nQ = typeof document < "u" ? document.domain && KZ ? tQ(KZ) : ((t = _X("iframe")).style.display = "none", ZZ.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(eQ("document.F=Object")), e.close(), e.F) : tQ(KZ);
	for (var n = dZ.length; n--;) delete nQ.prototype[dZ[n]];
	return nQ();
};
LX[QZ] = !0;
var rQ = Object.create || function(e, t) {
	var n;
	return e === null ? n = nQ() : ($Z.prototype = CX(e), n = new $Z(), $Z.prototype = null, n[QZ] = e), t === void 0 ? n : XZ(n, t);
}, iQ = dX("unscopables"), aQ = Array.prototype;
aQ[iQ] ?? EX.f(aQ, iQ, {
	configurable: !0,
	value: rQ(null)
});
var oQ = function(e) {
	aQ[iQ][e] = !0;
}, sQ = sZ.includes;
EZ({
	target: "Array",
	proto: !0
}, { includes: function(e) {
	return sQ(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), oQ("includes");
var cQ = {
	selector: "iframe,video,p",
	preParseHtml: function(e) {
		var t = V(e), n = t;
		if (WZ(t) === "p") {
			var r = t.children();
			if (r.length === 1) {
				var i = r[0], a = i.tagName.toLowerCase();
				["iframe", "video"].includes(a) && (n = V(i));
			}
		}
		var o = WZ(n);
		if (o !== "iframe" && o !== "video" || n.parent().attr("data-w-e-type") === "video") return n[0];
		var s = V("<div data-w-e-type=\"video\" data-w-e-is-void></div>");
		return s.append(n), s[0];
	}
}, lQ = Q(Q.bind), uQ = function(e, t) {
	return KY(e), t === void 0 ? e : lQ ? lQ(e, t) : function() {
		return e.apply(t, arguments);
	};
}, dQ = Array.isArray || function(e) {
	return xY(e) == "Array";
}, fQ = function() {}, pQ = [], mQ = jY("Reflect", "construct"), hQ = /^\s*(?:class|function)\b/, gQ = Q(hQ.exec), _Q = !hQ.exec(fQ), vQ = function(e) {
	if (!OY(e)) return !1;
	try {
		return mQ(fQ, pQ, e), !0;
	} catch {
		return !1;
	}
}, yQ = !mQ || sY((function() {
	var e;
	return vQ(vQ.call) || !vQ(Object) || !vQ((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!OY(e)) return !1;
	switch (MZ(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return _Q || !!gQ(hQ, MX(e));
} : vQ, bQ = dX("species"), xQ = Z.Array, SQ = function(e, t) {
	return new (function(e) {
		var t;
		return dQ(e) && (t = e.constructor, (yQ(t) && (t === xQ || dQ(t.prototype)) || kY(t) && (t = t[bQ]) === null) && (t = void 0)), t === void 0 ? xQ : t;
	}(e))(t === 0 ? 0 : t);
}, CQ = Q([].push), wQ = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = eX(c), h = wY(m), g = uQ(l, u), _ = aZ(h), v = 0, y = d || SQ, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: CQ(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: CQ(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, TQ = {
	forEach: wQ(0),
	map: wQ(1),
	filter: wQ(2),
	some: wQ(3),
	every: wQ(4),
	find: wQ(5),
	findIndex: wQ(6),
	filterReject: wQ(7)
}, EQ = TQ.find, DQ = !0;
"find" in [] && [,].find((function() {
	DQ = !1;
})), EZ({
	target: "Array",
	proto: !0,
	forced: DQ
}, { find: function(e) {
	return EQ(this, e, arguments.length > 1 ? arguments[1] : void 0);
} }), oQ("find");
var OQ = OZ ? {}.toString : function() {
	return "[object " + MZ(this) + "]";
};
function kQ(e, t, n, r) {
	return t === void 0 && (t = ""), n === void 0 && (n = "auto"), r === void 0 && (r = "auto"), {
		type: "video",
		src: e,
		poster: t,
		width: n,
		height: r,
		children: [{ text: "" }]
	};
}
OZ || XX(Object.prototype, "toString", OQ, { unsafe: !0 });
var AQ, jQ, MQ = {
	selector: "div[data-w-e-type=\"video\"]",
	parseElemHtml: function(e, t, n) {
		var r = V(e), i = "", a = "", o = "auto", s = "auto", c = r.find("iframe");
		if (c.length > 0) return o = c.attr("width") || "auto", s = c.attr("height") || "auto", kQ(i = c[0].outerHTML, a, o, s);
		var l = r.find("video");
		return (i = l.attr("src") || "") || l.length > 0 && (i = l.find("source").attr("src") || ""), o = l.attr("width") || "auto", s = l.attr("height") || "auto", kQ(i, a = l.attr("poster") || "", o, s);
	}
}, NQ = function() {
	var e = CX(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, PQ = Z.RegExp, FQ = sY((function() {
	var e = PQ("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), IQ = FQ || sY((function() {
	return !PQ("a", "y").sticky;
})), LQ = {
	BROKEN_CARET: FQ || sY((function() {
		var e = PQ("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: IQ,
	UNSUPPORTED_Y: FQ
}, RQ = Z.RegExp, zQ = sY((function() {
	var e = RQ(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), BQ = Z.RegExp, VQ = sY((function() {
	var e = BQ("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), HQ = GX.get, UQ = QY("native-string-replace", String.prototype.replace), WQ = RegExp.prototype.exec, GQ = WQ, KQ = Q("".charAt), qQ = Q("".indexOf), JQ = Q("".replace), YQ = Q("".slice), XQ = (jQ = /b*/g, uY(WQ, AQ = /a/, "a"), uY(WQ, jQ, "a"), AQ.lastIndex !== 0 || jQ.lastIndex !== 0), ZQ = LQ.BROKEN_CARET, QQ = /()??/.exec("")[1] !== void 0;
(XQ || QQ || ZQ || zQ || VQ) && (GQ = function(e) {
	var t, n, r, i, a, o, s, c = this, l = HQ(c), u = PZ(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = uY(GQ, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = ZQ && c.sticky, m = uY(NQ, c), h = c.source, g = 0, _ = u;
	if (p && (m = JQ(m, "y", ""), qQ(m, "g") === -1 && (m += "g"), _ = YQ(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && KQ(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), QQ && (n = RegExp("^" + h + "$(?!\\s)", m)), XQ && (r = c.lastIndex), i = uY(WQ, p ? n : c, _), p ? i ? (i.input = YQ(i.input, g), i[0] = YQ(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : XQ && i && (c.lastIndex = c.global ? i.index + i[0].length : r), QQ && i && i.length > 1 && uY(UQ, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = rQ(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var $Q = GQ;
EZ({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== $Q
}, { exec: $Q });
var e$ = Function.prototype, t$ = e$.apply, n$ = e$.bind, r$ = e$.call, i$ = typeof Reflect == "object" && Reflect.apply || (n$ ? r$.bind(t$) : function() {
	return r$.apply(t$, arguments);
}), a$ = (dX("species"), RegExp.prototype), o$ = Q("".charAt), s$ = Q("".charCodeAt), c$ = Q("".slice), l$ = function(e) {
	return function(t, n) {
		var r, i, a = PZ(EY(t)), o = $X(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = s$(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = s$(a, o + 1)) < 56320 || i > 57343 ? e ? o$(a, o) : r : e ? c$(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}, u$ = {
	codeAt: l$(!1),
	charAt: l$(!0)
}, d$ = u$.charAt, f$ = function(e, t, n) {
	return t + (n ? d$(e, t).length : 1);
}, p$ = Math.floor, m$ = Q("".charAt), h$ = Q("".replace), g$ = Q("".slice), _$ = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, v$ = /\$([$&'`]|\d{1,2})/g, y$ = function(e, t, n, r, i, a) {
	var o = n + e.length, s = r.length, c = v$;
	return i !== void 0 && (i = eX(i), c = _$), h$(a, c, (function(a, c) {
		var l;
		switch (m$(c, 0)) {
			case "$": return "$";
			case "&": return e;
			case "`": return g$(t, 0, n);
			case "'": return g$(t, o);
			case "<":
				l = i[g$(c, 1, -1)];
				break;
			default:
				var u = +c;
				if (u === 0) return a;
				if (u > s) {
					var d = p$(u / 10);
					return d === 0 ? a : d <= s ? r[d - 1] === void 0 ? m$(c, 1) : r[d - 1] + m$(c, 1) : a;
				}
				l = r[u - 1];
		}
		return l === void 0 ? "" : l;
	}));
}, b$ = Z.TypeError, x$ = function(e, t) {
	var n = e.exec;
	if (OY(n)) {
		var r = uY(n, e, t);
		return r !== null && CX(r), r;
	}
	if (xY(e) === "RegExp") return uY($Q, e, t);
	throw b$("RegExp#exec called on incompatible receiver");
}, S$ = dX("replace"), C$ = Math.max, w$ = Math.min, T$ = Q([].concat), E$ = Q([].push), D$ = Q("".indexOf), O$ = Q("".slice), k$ = "a".replace(/./, "$0") === "$0", A$ = !!/./[S$] && /./[S$]("a", "$0") === "";
function j$(e) {
	return e === void 0 && (e = "r"), e + "-" + Ld();
}
(function(e, t, n, r) {
	var i = dX(e), a = !sY((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !sY((function() {
		var e = !1, t = /a/;
		return t.exec = function() {
			return e = !0, null;
		}, t[i](""), !e;
	}));
	if (!a || !o || n) {
		var s = Q(/./[i]), c = function(e, t, n) {
			var r = A$ ? "$" : "$0";
			return [function(e, n) {
				var r = EY(this), i = e == null ? void 0 : qY(e, S$);
				return i ? uY(i, e, r, n) : uY(t, PZ(r), e, n);
			}, function(e, i) {
				var a = CX(this), o = PZ(e);
				if (typeof i == "string" && D$(i, r) === -1 && D$(i, "$<") === -1) {
					var s = n(t, a, o, i);
					if (s.done) return s.value;
				}
				var c = OY(i);
				c || (i = PZ(i));
				var l = a.global;
				if (l) {
					var u = a.unicode;
					a.lastIndex = 0;
				}
				for (var d = [];;) {
					var f = x$(a, o);
					if (f === null || (E$(d, f), !l)) break;
					PZ(f[0]) === "" && (a.lastIndex = f$(o, iZ(a.lastIndex), u));
				}
				for (var p, m = "", h = 0, g = 0; g < d.length; g++) {
					for (var _ = PZ((f = d[g])[0]), v = C$(w$($X(f.index), o.length), 0), y = [], b = 1; b < f.length; b++) E$(y, (p = f[b]) === void 0 ? p : String(p));
					var x = f.groups;
					if (c) {
						var S = T$([_], y, v, o);
						x !== void 0 && E$(S, x);
						var C = PZ(i$(i, void 0, S));
					} else C = y$(_, o, v, y, x, i);
					v >= h && (m += O$(o, h, v) + C, h = v + _.length);
				}
				return m + O$(o, h);
			}];
		}(0, ""[e], (function(e, t, n, r, i) {
			var o = Q(e), c = t.exec;
			return c === $Q || c === a$.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		XX(String.prototype, e, c[0]), XX(a$, i, c[1]);
	}
})("replace", 0, !!sY((function() {
	var e = /./;
	return e.exec = function() {
		var e = [];
		return e.groups = { a: "7" }, e;
	}, "".replace(e, "$<a>") !== "7";
})) || !k$ || A$);
var M$ = Z.Promise, N$ = function(e, t, n) {
	for (var r in t) XX(e, r, t[r], n);
	return e;
}, P$ = Z.String, F$ = Z.TypeError, I$ = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var e, t = !1, n = {};
	try {
		(e = Q(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(n, []), t = n instanceof Array;
	} catch {}
	return function(n, r) {
		return CX(n), function(e) {
			if (typeof e == "object" || OY(e)) return e;
			throw F$("Can't set " + P$(e) + " as a prototype");
		}(r), t ? e(n, r) : n.__proto__ = r, n;
	};
}() : void 0), L$ = EX.f, R$ = dX("toStringTag"), z$ = function(e, t, n) {
	e && !nX(e = n ? e : e.prototype, R$) && L$(e, R$, {
		configurable: !0,
		value: t
	});
}, B$ = dX("species"), V$ = Z.TypeError, H$ = function(e, t) {
	if (MY(t, e)) return e;
	throw V$("Incorrect invocation");
}, U$ = {}, W$ = dX("iterator"), due = Array.prototype, fue = dX("iterator"), G$ = function(e) {
	if (e != null) return qY(e, fue) || qY(e, "@@iterator") || U$[MZ(e)];
}, pue = Z.TypeError, K$ = function(e, t, n) {
	var r, i;
	CX(e);
	try {
		if (!(r = qY(e, "return"))) {
			if (t === "throw") throw n;
			return n;
		}
		r = uY(r, e);
	} catch (e) {
		i = !0, r = e;
	}
	if (t === "throw") throw n;
	if (i) throw r;
	return CX(r), n;
}, mue = Z.TypeError, q$ = function(e, t) {
	this.stopped = e, this.result = t;
}, J$ = q$.prototype, Y$ = function(e, t, n) {
	var r, i, a, o, s, c, l, u, d = n && n.that, f = !(!n || !n.AS_ENTRIES), p = !(!n || !n.IS_ITERATOR), m = !(!n || !n.INTERRUPTED), h = uQ(t, d), g = function(e) {
		return r && K$(r, "normal", e), new q$(!0, e);
	}, _ = function(e) {
		return f ? (CX(e), m ? h(e[0], e[1], g) : h(e[0], e[1])) : m ? h(e, g) : h(e);
	};
	if (p) r = e;
	else {
		if (!(i = G$(e))) throw mue(WY(e) + " is not iterable");
		if ((u = i) !== void 0 && (U$.Array === u || due[W$] === u)) {
			for (a = 0, o = aZ(e); o > a; a++) if ((s = _(e[a])) && MY(J$, s)) return s;
			return new q$(!1);
		}
		r = function(e, t) {
			var n = arguments.length < 2 ? G$(e) : t;
			if (KY(n)) return CX(uY(n, e));
			throw pue(WY(e) + " is not iterable");
		}(e, i);
	}
	for (c = r.next; !(l = uY(c, r)).done;) {
		try {
			s = _(l.value);
		} catch (e) {
			K$(r, "throw", e);
		}
		if (typeof s == "object" && s && MY(J$, s)) return s;
	}
	return new q$(!1);
}, X$ = dX("iterator"), Z$ = !1;
try {
	var hue = 0, Q$ = {
		next: function() {
			return { done: !!hue++ };
		},
		return: function() {
			Z$ = !0;
		}
	};
	Q$[X$] = function() {
		return this;
	}, Array.from(Q$, (function() {
		throw 2;
	}));
} catch {}
var $$, e1, t1, n1, r1 = function(e, t) {
	if (!t && !Z$) return !1;
	var n = !1;
	try {
		var r = {};
		r[X$] = function() {
			return { next: function() {
				return { done: n = !0 };
			} };
		}, e(r);
	} catch {}
	return n;
}, gue = Z.TypeError, _ue = dX("species"), i1 = Q([].slice), a1 = /(?:ipad|iphone|ipod).*applewebkit/i.test(NY), o1 = xY(Z.process) == "process", s1 = Z.setImmediate, c1 = Z.clearImmediate, vue = Z.process, l1 = Z.Dispatch, yue = Z.Function, u1 = Z.MessageChannel, bue = Z.String, d1 = 0, f1 = {};
try {
	$$ = Z.location;
} catch {}
var p1 = function(e) {
	if (nX(f1, e)) {
		var t = f1[e];
		delete f1[e], t();
	}
}, m1 = function(e) {
	return function() {
		p1(e);
	};
}, h1 = function(e) {
	p1(e.data);
}, g1 = function(e) {
	Z.postMessage(bue(e), $$.protocol + "//" + $$.host);
};
s1 && c1 || (s1 = function(e) {
	var t = i1(arguments, 1);
	return f1[++d1] = function() {
		i$(OY(e) ? e : yue(e), void 0, t);
	}, e1(d1), d1;
}, c1 = function(e) {
	delete f1[e];
}, o1 ? e1 = function(e) {
	vue.nextTick(m1(e));
} : l1 && l1.now ? e1 = function(e) {
	l1.now(m1(e));
} : u1 && !a1 ? (n1 = (t1 = new u1()).port2, t1.port1.onmessage = h1, e1 = uQ(n1.postMessage, n1)) : Z.addEventListener && OY(Z.postMessage) && !Z.importScripts && $$ && $$.protocol !== "file:" && !sY(g1) ? (e1 = g1, Z.addEventListener("message", h1, !1)) : e1 = "onreadystatechange" in _X("script") ? function(e) {
	ZZ.appendChild(_X("script")).onreadystatechange = function() {
		ZZ.removeChild(this), p1(e);
	};
} : function(e) {
	setTimeout(m1(e), 0);
});
var _1, v1, y1, b1, x1, S1, C1, w1, T1 = {
	set: s1,
	clear: c1
}, xue = /ipad|iphone|ipod/i.test(NY) && Z.Pebble !== void 0, Sue = /web0s(?!.*chrome)/i.test(NY), Cue = bX.f, E1 = T1.set, D1 = Z.MutationObserver || Z.WebKitMutationObserver, O1 = Z.document, k1 = Z.process, A1 = Z.Promise, j1 = Cue(Z, "queueMicrotask"), M1 = j1 && j1.value;
M1 || (_1 = function() {
	var e, t;
	for (o1 && (e = k1.domain) && e.exit(); v1;) {
		t = v1.fn, v1 = v1.next;
		try {
			t();
		} catch (e) {
			throw v1 ? b1() : y1 = void 0, e;
		}
	}
	y1 = void 0, e && e.enter();
}, a1 || o1 || Sue || !D1 || !O1 ? !xue && A1 && A1.resolve ? ((C1 = A1.resolve(void 0)).constructor = A1, w1 = uQ(C1.then, C1), b1 = function() {
	w1(_1);
}) : o1 ? b1 = function() {
	k1.nextTick(_1);
} : (E1 = uQ(E1, Z), b1 = function() {
	E1(_1);
}) : (x1 = !0, S1 = O1.createTextNode(""), new D1(_1).observe(S1, { characterData: !0 }), b1 = function() {
	S1.data = x1 = !x1;
}));
var N1, P1, F1, I1, L1 = M1 || function(e) {
	var t = {
		fn: e,
		next: void 0
	};
	y1 && (y1.next = t), v1 || (v1 = t, b1()), y1 = t;
}, wue = function(e) {
	var t, n;
	this.promise = new e((function(e, r) {
		if (t !== void 0 || n !== void 0) throw TypeError("Bad Promise constructor");
		t = e, n = r;
	})), this.resolve = KY(t), this.reject = KY(n);
}, R1 = { f: function(e) {
	return new wue(e);
} }, z1 = function(e) {
	try {
		return {
			error: !1,
			value: e()
		};
	} catch (e) {
		return {
			error: !0,
			value: e
		};
	}
}, Tue = typeof window == "object", B1 = T1.set, Eue = dX("species"), V1 = "Promise", H1 = GX.getterFor(V1), Due = GX.set, Oue = GX.getterFor(V1), U1 = M$ && M$.prototype, W1 = M$, G1 = U1, K1 = Z.TypeError, q1 = Z.document, J1 = Z.process, Y1 = R1.f, kue = Y1, Aue = !!(q1 && q1.createEvent && Z.dispatchEvent), X1 = OY(Z.PromiseRejectionEvent), Z1 = !1, Q1 = wZ(V1, (function() {
	var e = MX(W1), t = e !== String(W1);
	if (!t && RY === 66) return !0;
	if (RY >= 51 && /native code/.test(e)) return !1;
	var n = new W1((function(e) {
		e(1);
	})), r = function(e) {
		e((function() {}), (function() {}));
	};
	return (n.constructor = {})[Eue] = r, !(Z1 = n.then((function() {})) instanceof r) || !t && Tue && !X1;
})), jue = Q1 || !r1((function(e) {
	W1.all(e).catch((function() {}));
})), $1 = function(e) {
	var t;
	return !(!kY(e) || !OY(t = e.then)) && t;
}, e0 = function(e, t) {
	if (!e.notified) {
		e.notified = !0;
		var n = e.reactions;
		L1((function() {
			for (var r = e.value, i = e.state == 1, a = 0; n.length > a;) {
				var o, s, c, l = n[a++], u = i ? l.ok : l.fail, d = l.resolve, f = l.reject, p = l.domain;
				try {
					u ? (i || (e.rejection === 2 && Nue(e), e.rejection = 1), !0 === u ? o = r : (p && p.enter(), o = u(r), p && (p.exit(), c = !0)), o === l.promise ? f(K1("Promise-chain cycle")) : (s = $1(o)) ? uY(s, o, d, f) : d(o)) : f(r);
				} catch (e) {
					p && !c && p.exit(), f(e);
				}
			}
			e.reactions = [], e.notified = !1, t && !e.rejection && Mue(e);
		}));
	}
}, t0 = function(e, t, n) {
	var r, i;
	Aue ? ((r = q1.createEvent("Event")).promise = t, r.reason = n, r.initEvent(e, !1, !0), Z.dispatchEvent(r)) : r = {
		promise: t,
		reason: n
	}, !X1 && (i = Z["on" + e]) ? i(r) : e === "unhandledrejection" && function(e, t) {
		var n = Z.console;
		n && n.error && (arguments.length == 1 ? n.error(e) : n.error(e, t));
	}("Unhandled promise rejection", n);
}, Mue = function(e) {
	uY(B1, Z, (function() {
		var t, n = e.facade, r = e.value;
		if (n0(e) && (t = z1((function() {
			o1 ? J1.emit("unhandledRejection", r, n) : t0("unhandledrejection", n, r);
		})), e.rejection = o1 || n0(e) ? 2 : 1, t.error)) throw t.value;
	}));
}, n0 = function(e) {
	return e.rejection !== 1 && !e.parent;
}, Nue = function(e) {
	uY(B1, Z, (function() {
		var t = e.facade;
		o1 ? J1.emit("rejectionHandled", t) : t0("rejectionhandled", t, e.value);
	}));
}, r0 = function(e, t, n) {
	return function(r) {
		e(t, r, n);
	};
}, i0 = function(e, t, n) {
	e.done || (e.done = !0, n && (e = n), e.value = t, e.state = 2, e0(e, !0));
}, a0 = function(e, t, n) {
	if (!e.done) {
		e.done = !0, n && (e = n);
		try {
			if (e.facade === t) throw K1("Promise can't be resolved itself");
			var r = $1(t);
			r ? L1((function() {
				var n = { done: !1 };
				try {
					uY(r, t, r0(a0, n, e), r0(i0, n, e));
				} catch (t) {
					i0(n, t, e);
				}
			})) : (e.value = t, e.state = 1, e0(e, !1));
		} catch (t) {
			i0({ done: !1 }, t, e);
		}
	}
};
if (Q1 && (G1 = (W1 = function(e) {
	H$(this, G1), KY(e), uY(N1, this);
	var t = H1(this);
	try {
		e(r0(a0, t), r0(i0, t));
	} catch (e) {
		i0(t, e);
	}
}).prototype, (N1 = function(e) {
	Due(this, {
		type: V1,
		done: !1,
		notified: !1,
		parent: !1,
		reactions: [],
		rejection: !1,
		state: 0,
		value: void 0
	});
}).prototype = N$(G1, {
	then: function(e, t) {
		var n = Oue(this), r = n.reactions, i = Y1(function(e, t) {
			var n, r = CX(e).constructor;
			return r === void 0 || (n = CX(r)[_ue]) == null ? t : function(e) {
				if (yQ(e)) return e;
				throw gue(WY(e) + " is not a constructor");
			}(n);
		}(this, W1));
		return i.ok = !OY(e) || e, i.fail = OY(t) && t, i.domain = o1 ? J1.domain : void 0, n.parent = !0, r[r.length] = i, n.state != 0 && e0(n, !1), i.promise;
	},
	catch: function(e) {
		return this.then(void 0, e);
	}
}), P1 = function() {
	var e = new N1(), t = H1(e);
	this.promise = e, this.resolve = r0(a0, t), this.reject = r0(i0, t);
}, R1.f = Y1 = function(e) {
	return e === W1 || e === F1 ? new P1(e) : kue(e);
}, OY(M$) && U1 !== Object.prototype)) {
	I1 = U1.then, Z1 || (XX(U1, "then", (function(e, t) {
		var n = this;
		return new W1((function(e, t) {
			uY(I1, n, e, t);
		})).then(e, t);
	}), { unsafe: !0 }), XX(U1, "catch", G1.catch, { unsafe: !0 }));
	try {
		delete U1.constructor;
	} catch {}
	I$ && I$(U1, G1);
}
function o0(e, t, n) {
	return n === void 0 && (n = ""), QJ(this, void 0, void 0, (function() {
		var r, i, a, o, s, c, l;
		return $J(this, (function(u) {
			switch (u.label) {
				case 0: return t ? (e.restoreSelection(), r = e.getMenuConfig("insertVideo"), i = r.onInsertedVideo, a = r.checkVideo, o = r.parseVideoSrc, [4, a(t, n)]) : [2];
				case 1: return typeof (s = u.sent()) == "string" ? (e.alert(s, "error"), [2]) : s == null ? [2] : [4, o(t)];
				case 2: return (c = u.sent()).trim().indexOf("<iframe ") !== 0 && (c = c.replace(/</g, "&lt;").replace(/>/g, "&gt;")), l = {
					type: "video",
					src: c,
					poster: n,
					children: [{ text: "" }]
				}, Promise.resolve().then((function() {
					B.insertNodes(e, l);
				})), i(l), [2];
			}
		}));
	}));
}
function s0() {
	return j$("w-e-insert-video");
}
EZ({
	global: !0,
	wrap: !0,
	forced: Q1
}, { Promise: W1 }), z$(W1, V1, !1), function(e) {
	var t = jY("Promise"), n = EX.f;
	cY && t && !t[B$] && n(t, B$, {
		configurable: !0,
		get: function() {
			return this;
		}
	});
}(), F1 = jY(V1), EZ({
	target: V1,
	stat: !0,
	forced: Q1
}, { reject: function(e) {
	var t = Y1(this);
	return uY(t.reject, void 0, e), t.promise;
} }), EZ({
	target: V1,
	stat: !0,
	forced: Q1
}, { resolve: function(e) {
	return function(e, t) {
		if (CX(e), kY(t) && t.constructor === e) return t;
		var n = R1.f(e);
		return (0, n.resolve)(t), n.promise;
	}(this, e);
} }), EZ({
	target: V1,
	stat: !0,
	forced: jue
}, {
	all: function(e) {
		var t = this, n = Y1(t), r = n.resolve, i = n.reject, a = z1((function() {
			var n = KY(t.resolve), a = [], o = 0, s = 1;
			Y$(e, (function(e) {
				var c = o++, l = !1;
				s++, uY(n, t, e).then((function(e) {
					l || (l = !0, a[c] = e, --s || r(a));
				}), i);
			})), --s || r(a);
		}));
		return a.error && i(a.value), n.promise;
	},
	race: function(e) {
		var t = this, n = Y1(t), r = n.reject, i = z1((function() {
			var i = KY(t.resolve);
			Y$(e, (function(e) {
				uY(i, t, e).then(n.resolve, r);
			}));
		}));
		return i.error && r(i.value), n.promise;
	}
});
var Pue = function() {
	function e() {
		this.title = q("videoModule.insertVideo"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z\"></path></svg>", this.tag = "button", this.showModal = !0, this.modalWidth = 320, this.$content = null, this.srcInputId = s0(), this.posterInputId = s0(), this.buttonId = s0();
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || !!K.getSelectedElems(e).some((function(t) {
			var n = K.getNodeType(t);
			return n === "pre" || n === "list-item" || !!e.isVoid(t);
		}));
	}, e.prototype.getModalPositionNode = function(e) {
		return null;
	}, e.prototype.getModalContentElem = function(e) {
		var t = this, n = this, r = n.srcInputId, i = n.posterInputId, a = n.buttonId, o = eY(zT(q("videoModule.videoSrc"), r, q("videoModule.videoSrcPlaceHolder")), 2), s = o[0], c = o[1], l = eY(zT(q("videoModule.videoPoster"), i, q("videoModule.videoPosterPlaceHolder")), 2), u = l[0], d = l[1], f = V(c), p = V(d), m = eY(BT(a, q("videoModule.ok")), 1)[0];
		if (this.$content == null) {
			var h = V("<div></div>");
			h.on("click", "#" + a, (function(n) {
				return QJ(t, void 0, void 0, (function() {
					var t, a;
					return $J(this, (function(o) {
						switch (o.label) {
							case 0: return n.preventDefault(), t = h.find("#" + r).val().trim(), a = h.find("#" + i).val().trim(), [4, o0(e, t, a)];
							case 1: return o.sent(), e.hidePanelOrModal(), [2];
						}
					}));
				}));
			})), this.$content = h;
		}
		var g = this.$content;
		return g.empty(), g.append(s), g.append(u), g.append(m), f.val(""), p.val(""), setTimeout((function() {
			f.focus();
		})), g[0];
	}, e;
}(), Fue = Q([].join), Iue = wY != Object, Lue = function(e, t) {
	var n = [].join;
	return !!n && sY((function() {
		n.call(null, ",", 1);
	}));
}();
EZ({
	target: "Array",
	proto: !0,
	forced: Iue || !Lue
}, { join: function(e) {
	return Fue(DY(this), e === void 0 ? "," : e);
} });
var c0, l0, u0, Rue = !sY((function() {
	function e() {}
	return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
})), d0 = IX("IE_PROTO"), f0 = Z.Object, zue = f0.prototype, p0 = Rue ? f0.getPrototypeOf : function(e) {
	var t = eX(e);
	if (nX(t, d0)) return t[d0];
	var n = t.constructor;
	return OY(n) && t instanceof n ? n.prototype : t instanceof f0 ? zue : null;
}, m0 = dX("iterator"), h0 = !1;
[].keys && ("next" in (u0 = [].keys()) ? (l0 = p0(p0(u0))) !== Object.prototype && (c0 = l0) : h0 = !0), (c0 == null || sY((function() {
	var e = {};
	return c0[m0].call(e) !== e;
}))) && (c0 = {}), OY(c0[m0]) || XX(c0, m0, (function() {
	return this;
}));
var g0 = {
	IteratorPrototype: c0,
	BUGGY_SAFARI_ITERATORS: h0
}, Bue = g0.IteratorPrototype, Vue = function() {
	return this;
}, Hue = YX.PROPER, Uue = YX.CONFIGURABLE, _0 = g0.IteratorPrototype, v0 = g0.BUGGY_SAFARI_ITERATORS, y0 = dX("iterator"), Wue = function() {
	return this;
}, b0 = function(e, t, n, r, i, a, o) {
	(function(e, t, n, r) {
		var i = t + " Iterator";
		e.prototype = rQ(Bue, { next: mY(1, n) }), z$(e, i, !1), U$[i] = Vue;
	})(n, t, r);
	var s, c, l, u = function(e) {
		if (e === i && h) return h;
		if (!v0 && e in p) return p[e];
		switch (e) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new n(this, e);
			};
		}
		return function() {
			return new n(this);
		};
	}, d = t + " Iterator", f = !1, p = e.prototype, m = p[y0] || p["@@iterator"] || i && p[i], h = !v0 && m || u(i), g = t == "Array" && p.entries || m;
	if (g && (s = p0(g.call(new e()))) !== Object.prototype && s.next && (p0(s) !== _0 && (I$ ? I$(s, _0) : OY(s[y0]) || XX(s, y0, Wue)), z$(s, d, !0)), Hue && i == "values" && m && m.name !== "values" && (Uue ? DX(p, "name", "values") : (f = !0, h = function() {
		return uY(m, this);
	})), i) if (c = {
		values: u("values"),
		keys: a ? h : u("keys"),
		entries: u("entries")
	}, o) for (l in c) (v0 || f || !(l in p)) && XX(p, l, c[l]);
	else EZ({
		target: t,
		proto: !0,
		forced: v0 || f
	}, c);
	return p[y0] !== h && XX(p, y0, h, { name: i }), U$[t] = h, c;
}, Gue = GX.set, Kue = GX.getterFor("Array Iterator"), x0 = b0(Array, "Array", (function(e, t) {
	Gue(this, {
		type: "Array Iterator",
		target: DY(e),
		index: 0,
		kind: t
	});
}), (function() {
	var e = Kue(this), t = e.target, n = e.kind, r = e.index++;
	return !t || r >= t.length ? (e.target = void 0, {
		value: void 0,
		done: !0
	}) : n == "keys" ? {
		value: r,
		done: !1
	} : n == "values" ? {
		value: t[r],
		done: !1
	} : {
		value: [r, t[r]],
		done: !1
	};
}), "values");
U$.Arguments = U$.Array, oQ("keys"), oQ("values"), oQ("entries");
var que = u$.charAt, Jue = GX.set, Yue = GX.getterFor("String Iterator");
b0(String, "String", (function(e) {
	Jue(this, {
		type: "String Iterator",
		string: PZ(e),
		index: 0
	});
}), (function() {
	var e, t = Yue(this), n = t.string, r = t.index;
	return r >= n.length ? {
		value: void 0,
		done: !0
	} : (e = que(n, r), t.index += e.length, {
		value: e,
		done: !1
	});
}));
var S0 = function(e, t, n) {
	var r = mX(t);
	r in e ? EX.f(e, r, mY(0, n)) : e[r] = n;
}, Xue = Z.Array, Zue = Math.max, C0 = pZ.f, w0 = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], Que = { f: function(e) {
	return w0 && xY(e) == "Window" ? function(e) {
		try {
			return C0(e);
		} catch {
			return function(e, t, n) {
				for (var r = aZ(e), i = nZ(void 0, r), a = nZ(r, r), o = Xue(Zue(a - i, 0)), s = 0; i < a; i++, s++) S0(o, s, e[i]);
				return o.length = s, o;
			}(w0);
		}
	}(e) : C0(DY(e));
} }, T0 = sY((function() {
	if (typeof ArrayBuffer == "function") {
		var e = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(e) && Object.defineProperty(e, "a", { value: 8 });
	}
})), E0 = Object.isExtensible, D0 = sY((function() {
	E0(1);
})) || T0 ? function(e) {
	return !!kY(e) && (!T0 || xY(e) != "ArrayBuffer") && (!E0 || E0(e));
} : E0, $ue = !sY((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), O0 = rY((function(e) {
	var t = EX.f, n = !1, r = oX("meta"), i = 0, a = function(e) {
		t(e, r, { value: {
			objectID: "O" + i++,
			weakData: {}
		} });
	}, o = e.exports = {
		enable: function() {
			o.enable = function() {}, n = !0;
			var e = pZ.f, t = Q([].splice), i = {};
			i[r] = 1, e(i).length && (pZ.f = function(n) {
				for (var i = e(n), a = 0, o = i.length; a < o; a++) if (i[a] === r) {
					t(i, a, 1);
					break;
				}
				return i;
			}, EZ({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: Que.f }));
		},
		fastKey: function(e, t) {
			if (!kY(e)) return typeof e == "symbol" ? e : (typeof e == "string" ? "S" : "P") + e;
			if (!nX(e, r)) {
				if (!D0(e)) return "F";
				if (!t) return "E";
				a(e);
			}
			return e[r].objectID;
		},
		getWeakData: function(e, t) {
			if (!nX(e, r)) {
				if (!D0(e)) return !0;
				if (!t) return !1;
				a(e);
			}
			return e[r].weakData;
		},
		onFreeze: function(e) {
			return $ue && n && D0(e) && !nX(e, r) && a(e), e;
		}
	};
	LX[r] = !0;
})), k0 = O0.getWeakData, ede = GX.set, tde = GX.getterFor, nde = TQ.find, rde = TQ.findIndex, ide = Q([].splice), ade = 0, A0 = function(e) {
	return e.frozen ||= new j0();
}, j0 = function() {
	this.entries = [];
}, M0 = function(e, t) {
	return nde(e.entries, (function(e) {
		return e[0] === t;
	}));
};
j0.prototype = {
	get: function(e) {
		var t = M0(this, e);
		if (t) return t[1];
	},
	has: function(e) {
		return !!M0(this, e);
	},
	set: function(e, t) {
		var n = M0(this, e);
		n ? n[1] = t : this.entries.push([e, t]);
	},
	delete: function(e) {
		var t = rde(this.entries, (function(t) {
			return t[0] === e;
		}));
		return ~t && ide(this.entries, t, 1), !!~t;
	}
};
var N0, P0 = { getConstructor: function(e, t, n, r) {
	var i = e((function(e, i) {
		H$(e, a), ede(e, {
			type: t,
			id: ade++,
			frozen: void 0
		}), i != null && Y$(i, e[r], {
			that: e,
			AS_ENTRIES: n
		});
	})), a = i.prototype, o = tde(t), s = function(e, t, n) {
		var r = o(e), i = k0(CX(t), !0);
		return !0 === i ? A0(r).set(t, n) : i[r.id] = n, e;
	};
	return N$(a, {
		delete: function(e) {
			var t = o(this);
			if (!kY(e)) return !1;
			var n = k0(e);
			return !0 === n ? A0(t).delete(e) : n && nX(n, t.id) && delete n[t.id];
		},
		has: function(e) {
			var t = o(this);
			if (!kY(e)) return !1;
			var n = k0(e);
			return !0 === n ? A0(t).has(e) : n && nX(n, t.id);
		}
	}), N$(a, n ? {
		get: function(e) {
			var t = o(this);
			if (kY(e)) {
				var n = k0(e);
				return !0 === n ? A0(t).get(e) : n ? n[t.id] : void 0;
			}
		},
		set: function(e, t) {
			return s(this, e, t);
		}
	} : { add: function(e) {
		return s(this, e, !0);
	} }), i;
} }, F0 = GX.enforce, ode = !Z.ActiveXObject && "ActiveXObject" in Z, I0 = function(e) {
	return function() {
		return e(this, arguments.length ? arguments[0] : void 0);
	};
}, sde = function(e, t, n) {
	var r = e.indexOf("Map") !== -1, i = e.indexOf("Weak") !== -1, a = r ? "set" : "add", o = Z[e], s = o && o.prototype, c = o, l = {}, u = function(e) {
		var t = Q(s[e]);
		XX(s, e, e == "add" ? function(e) {
			return t(this, e === 0 ? 0 : e), this;
		} : e == "delete" ? function(e) {
			return !(i && !kY(e)) && t(this, e === 0 ? 0 : e);
		} : e == "get" ? function(e) {
			return i && !kY(e) ? void 0 : t(this, e === 0 ? 0 : e);
		} : e == "has" ? function(e) {
			return !(i && !kY(e)) && t(this, e === 0 ? 0 : e);
		} : function(e, n) {
			return t(this, e === 0 ? 0 : e, n), this;
		});
	};
	if (wZ(e, !OY(o) || !(i || s.forEach && !sY((function() {
		new o().entries().next();
	}))))) c = n.getConstructor(t, e, r, a), O0.enable();
	else if (wZ(e, !0)) {
		var d = new c(), f = d[a](i ? {} : -0, 1) != d, p = sY((function() {
			d.has(1);
		})), m = r1((function(e) {
			new o(e);
		})), h = !i && sY((function() {
			for (var e = new o(), t = 5; t--;) e[a](t, t);
			return !e.has(-0);
		}));
		m || ((c = t((function(e, t) {
			H$(e, s);
			var n = function(e, t, n) {
				var r, i;
				return I$ && OY(r = t.constructor) && r !== n && kY(i = r.prototype) && i !== n.prototype && I$(e, i), e;
			}(new o(), e, c);
			return t != null && Y$(t, n[a], {
				that: n,
				AS_ENTRIES: r
			}), n;
		}))).prototype = s, s.constructor = c), (p || h) && (u("delete"), u("has"), r && u("get")), (h || f) && u(a), i && s.clear && delete s.clear;
	}
	return l[e] = c, EZ({
		global: !0,
		forced: c != o
	}, l), z$(c, e), i || n.setStrong(c, e, r), c;
}("WeakMap", I0, P0);
if (PX && ode) {
	N0 = P0.getConstructor(I0, "WeakMap", !0), O0.enable();
	var L0 = sde.prototype, R0 = Q(L0.delete), z0 = Q(L0.has), B0 = Q(L0.get), V0 = Q(L0.set);
	N$(L0, {
		delete: function(e) {
			if (kY(e) && !D0(e)) {
				var t = F0(this);
				return t.frozen ||= new N0(), R0(this, e) || t.frozen.delete(e);
			}
			return R0(this, e);
		},
		has: function(e) {
			if (kY(e) && !D0(e)) {
				var t = F0(this);
				return t.frozen ||= new N0(), z0(this, e) || t.frozen.has(e);
			}
			return z0(this, e);
		},
		get: function(e) {
			if (kY(e) && !D0(e)) {
				var t = F0(this);
				return t.frozen ||= new N0(), z0(this, e) ? B0(this, e) : t.frozen.get(e);
			}
			return B0(this, e);
		},
		set: function(e, t) {
			if (kY(e) && !D0(e)) {
				var n = F0(this);
				n.frozen ||= new N0(), z0(this, e) ? V0(this, e, t) : n.frozen.set(e, t);
			} else V0(this, e, t);
			return this;
		}
	});
}
var H0 = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, U0 = _X("span").classList, W0 = U0 && U0.constructor && U0.constructor.prototype, cde = W0 === Object.prototype ? void 0 : W0, G0 = dX("iterator"), K0 = dX("toStringTag"), q0 = x0.values, J0 = function(e, t) {
	if (e) {
		if (e[G0] !== q0) try {
			DX(e, G0, q0);
		} catch {
			e[G0] = q0;
		}
		if (e[K0] || DX(e, K0, t), H0[t]) {
			for (var n in x0) if (e[n] !== x0[n]) try {
				DX(e, n, x0[n]);
			} catch {
				e[n] = x0[n];
			}
		}
	}
};
for (var Y0 in H0) J0(Z[Y0] && Z[Y0].prototype, Y0);
J0(cde, "DOMTokenList");
var lde = YX.EXISTS, ude = EX.f, X0 = Function.prototype, dde = Q(X0.toString), Z0 = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, fde = Q(Z0.exec);
cY && !lde && ude(X0, "name", {
	configurable: !0,
	get: function() {
		try {
			return fde(Z0, dde(this))[1];
		} catch {
			return "";
		}
	}
});
var pde = dX("species"), mde = RY >= 51 || !sY((function() {
	var e = [];
	return (e.constructor = {})[pde] = function() {
		return { foo: 1 };
	}, e.slice(Boolean).foo !== 1;
})), hde = dX("species"), Q0 = Z.Array, gde = Math.max;
function $0(e) {
	return e.getMenuConfig("uploadVideo");
}
EZ({
	target: "Array",
	proto: !0,
	forced: !mde
}, { slice: function(e, t) {
	var n, r, i, a = DY(this), o = aZ(a), s = nZ(e, o), c = nZ(t === void 0 ? o : t, o);
	if (dQ(a) && (n = a.constructor, (yQ(n) && (n === Q0 || dQ(n.prototype)) || kY(n) && (n = n[hde]) === null) && (n = void 0), n === Q0 || n === void 0)) return i1(a, s, c);
	for (r = new (n === void 0 ? Q0 : n)(gde(c - s, 0)), i = 0; s < c; s++, i++) s in a && S0(r, i, a[s]);
	return r.length = i, r;
} });
var e2 = /* @__PURE__ */ new WeakMap();
function _de(e, t) {
	return QJ(this, void 0, void 0, (function() {
		var n, r, i, a;
		return $J(this, (function(o) {
			switch (o.label) {
				case 0: return n = function(e) {
					var t = e2.get(e);
					if (t != null) return t;
					var n = $0(e), r = n.onSuccess, i = n.onProgress, a = n.onFailed, o = n.customInsert, s = n.onError;
					return t = rE(ZJ(ZJ({}, n), {
						onProgress: function(t) {
							e.showProgressBar(t), i && i(t);
						},
						onSuccess: function(t, n) {
							if (o) return o(n, (function(t, n) {
								return o0(e, t, n);
							})), void r(t, n);
							var i = n.errno, s = i === void 0 ? 1 : i, c = n.data, l = c === void 0 ? {} : c;
							if (s === 0) {
								var u = l.url, d = u === void 0 ? "" : u, f = l.poster;
								o0(e, d, f === void 0 ? "" : f), r(t, n);
							} else a(t, n);
						},
						onError: function(e, t, n) {
							s(e, t, n);
						}
					})), e2.set(e, t), t;
				}(e), r = t.name, i = t.type, a = t.size, n.addFile({
					name: r,
					type: i,
					size: a,
					data: t
				}), [4, n.upload()];
				case 1: return o.sent(), [2];
			}
		}));
	}));
}
var vde = function() {
	function e() {
		this.title = q("videoModule.uploadVideo"), this.iconSvg = "<svg viewBox=\"0 0 1056 1024\"><path d=\"M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z\" p-id=\"6802\"></path><path d=\"M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {
		var n = this.getMenuConfig(e), r = n.allowedFileTypes, i = r === void 0 ? [] : r, a = n.customBrowseAndUpload;
		if (a) a((function(t, n) {
			return o0(e, t, n);
		}));
		else {
			var o = "";
			i.length > 0 && (o = "accept=\"" + i.join(", ") + "\"");
			var s = V("body"), c = V("<input type=\"file\" " + o + " multiple/>");
			c.hide(), s.append(c), c.click(), c.on("change", (function() {
				(function(e, t) {
					var n, r;
					QJ(this, void 0, void 0, (function() {
						var i, a, o, s, c, l;
						return $J(this, (function(u) {
							switch (u.label) {
								case 0:
									if (t == null) return [2];
									i = Array.prototype.slice.call(t), a = $0(e).customUpload, u.label = 1;
								case 1: u.trys.push([
									1,
									9,
									10,
									15
								]), o = tY(i), u.label = 2;
								case 2: return [4, o.next()];
								case 3: return (s = u.sent()).done ? [3, 8] : (c = s.value, a ? [4, a(c, (function(t, n) {
									return o0(e, t, n);
								}))] : [3, 5]);
								case 4: return u.sent(), [3, 7];
								case 5: return [4, _de(e, c)];
								case 6: u.sent(), u.label = 7;
								case 7: return [3, 2];
								case 8: return [3, 15];
								case 9: return l = u.sent(), n = { error: l }, [3, 15];
								case 10: return u.trys.push([
									10,
									,
									13,
									14
								]), s && !s.done && (r = o.return) ? [4, r.call(o)] : [3, 12];
								case 11: u.sent(), u.label = 12;
								case 12: return [3, 14];
								case 13:
									if (n) throw n.error;
									return [7];
								case 14: return [7];
								case 15: return [2];
							}
						}));
					}));
				})(e, c[0].files);
			}));
		}
	}, e.prototype.isDisabled = function(e) {
		var t = e.selection;
		return t == null || !R.isCollapsed(t) || !!K.getSelectedElems(e).some((function(t) {
			var n = K.getNodeType(t);
			return n === "pre" || n === "list-item" || !!e.isVoid(t);
		}));
	}, e.prototype.getMenuConfig = function(e) {
		return e.getMenuConfig("uploadVideo");
	}, e;
}(), yde = YX.PROPER, t2 = RegExp.prototype, n2 = t2.toString, bde = Q(NQ), xde = sY((function() {
	return n2.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), Sde = yde && n2.name != "toString";
function r2() {
	return j$("w-e-insert-video");
}
(xde || Sde) && XX(RegExp.prototype, "toString", (function() {
	var e = CX(this), t = PZ(e.source), n = e.flags;
	return "/" + t + "/" + PZ(n === void 0 && MY(t2, e) && !("flags" in t2) ? bde(e) : n);
}), { unsafe: !0 });
var Cde = function() {
	function e() {
		this.title = q("videoModule.editSize"), this.tag = "button", this.showModal = !0, this.modalWidth = 320, this.$content = null, this.widthInputId = r2(), this.heightInputId = r2(), this.buttonId = r2();
	}
	return e.prototype.getSelectedVideoNode = function(e) {
		return K.getSelectedNodeByType(e, "video");
	}, e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.exec = function(e, t) {}, e.prototype.isDisabled = function(e) {
		return e.selection == null || this.getSelectedVideoNode(e) == null;
	}, e.prototype.getModalPositionNode = function(e) {
		return this.getSelectedVideoNode(e);
	}, e.prototype.getModalContentElem = function(e) {
		var t = this, n = t.widthInputId, r = t.heightInputId, i = t.buttonId, a = eY(zT(q("videoModule.width"), n, "auto"), 2), o = a[0], s = V(a[1]), c = eY(zT(q("videoModule.height"), r, "auto"), 2), l = c[0], u = V(c[1]), d = eY(BT(i, q("videoModule.ok")), 1)[0];
		if (this.$content == null) {
			var f = V("<div></div>");
			f.on("click", "#" + i, (function(t) {
				t.preventDefault();
				var i = f.find("#" + n).val().trim(), a = f.find("#" + r).val().trim(), o = parseInt(i), s = parseInt(a), c = o ? o.toString() : "auto", l = s ? s.toString() : "auto";
				e.restoreSelection(), B.setNodes(e, {
					width: c,
					height: l
				}, { match: function(e) {
					return K.checkNodeType(e, "video");
				} }), e.hidePanelOrModal();
			})), this.$content = f;
		}
		var p = this.$content;
		p.empty(), p.append(o), p.append(l), p.append(d);
		var m = this.getSelectedVideoNode(e);
		if (m == null) return p[0];
		var h = m.width, g = h === void 0 ? "auto" : h, _ = m.height, v = _ === void 0 ? "auto" : _;
		return s.val(g), u.val(v), setTimeout((function() {
			s.focus();
		})), p[0];
	}, e;
}(), wde = {
	renderElems: [qZ],
	elemsToHtml: [JZ],
	preParseHtml: [cQ],
	parseElemsHtml: [MQ],
	menus: [
		{
			key: "insertVideo",
			factory: function() {
				return new Pue();
			},
			config: {
				onInsertedVideo: function(e) {},
				checkVideo: function(e, t) {
					return !0;
				},
				parseVideoSrc: function(e) {
					return e;
				}
			}
		},
		{
			key: "uploadVideo",
			factory: function() {
				return new vde();
			},
			config: {
				server: "",
				fieldName: "wangeditor-uploaded-video",
				maxFileSize: 10485760,
				maxNumberOfFiles: 5,
				allowedFileTypes: ["video/*"],
				meta: {},
				metaWithUrl: !1,
				withCredentials: !1,
				timeout: 3e4,
				onBeforeUpload: function(e) {
					return e;
				},
				onProgress: function(e) {},
				onSuccess: function(e, t) {},
				onFailed: function(e, t) {
					console.error("'" + e.name + "' upload failed", t);
				},
				onError: function(e, t, n) {
					console.error("'" + e.name + " upload error", t, n);
				}
			}
		},
		{
			key: "editVideoSize",
			factory: function() {
				return new Cde();
			}
		}
	],
	editorPlugin: function(e) {
		var t = e.isVoid, n = e.normalizeNode, r = e;
		return r.isVoid = function(e) {
			return e.type === "video" || t(e);
		}, r.normalizeNode = function(e) {
			var t = eY(e, 2), i = t[0], a = t[1];
			return K.getNodeType(i) === "video" && K.isLastNode(r, i) && B.insertNodes(r, K.genEmptyParagraph(), { at: [a[0] + 1] }), n([i, a]);
		}, r;
	}
};
HE("en", { uploadImgModule: {
	uploadImage: "Upload Image",
	uploadError: "{{fileName}} upload error"
} }), HE("zh-CN", { uploadImgModule: {
	uploadImage: "上传图片",
	uploadError: "{{fileName}} 上传出错"
} });
var i2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function a2(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var o2, s2, c2 = function(e) {
	return e && e.Math == Math && e;
}, $ = c2(typeof globalThis == "object" && globalThis) || c2(typeof window == "object" && window) || c2(typeof self == "object" && self) || c2(typeof i2 == "object" && i2) || function() {
	return this;
}() || Function("return this")(), l2 = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, u2 = !l2((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), d2 = Function.prototype.call, f2 = d2.bind ? d2.bind(d2) : function() {
	return d2.apply(d2, arguments);
}, p2 = {}.propertyIsEnumerable, m2 = Object.getOwnPropertyDescriptor, Tde = { f: m2 && !p2.call({ 1: 2 }, 1) ? function(e) {
	var t = m2(this, e);
	return !!t && t.enumerable;
} : p2 }, h2 = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, g2 = Function.prototype, _2 = g2.bind, v2 = g2.call, Ede = _2 && _2.bind(v2), y2 = _2 ? function(e) {
	return e && Ede(v2, e);
} : function(e) {
	return e && function() {
		return v2.apply(e, arguments);
	};
}, Dde = y2({}.toString), Ode = y2("".slice), b2 = function(e) {
	return Ode(Dde(e), 8, -1);
}, x2 = $.Object, kde = y2("".split), S2 = l2((function() {
	return !x2("z").propertyIsEnumerable(0);
})) ? function(e) {
	return b2(e) == "String" ? kde(e, "") : x2(e);
} : x2, Ade = $.TypeError, C2 = function(e) {
	if (e == null) throw Ade("Can't call method on " + e);
	return e;
}, w2 = function(e) {
	return S2(C2(e));
}, T2 = function(e) {
	return typeof e == "function";
}, E2 = function(e) {
	return typeof e == "object" ? e !== null : T2(e);
}, jde = function(e) {
	return T2(e) ? e : void 0;
}, D2 = function(e, t) {
	return arguments.length < 2 ? jde($[e]) : $[e] && $[e][t];
}, O2 = y2({}.isPrototypeOf), k2 = D2("navigator", "userAgent") || "", A2 = $.process, j2 = $.Deno, M2 = A2 && A2.versions || j2 && j2.version, N2 = M2 && M2.v8;
N2 && (s2 = (o2 = N2.split("."))[0] > 0 && o2[0] < 4 ? 1 : +(o2[0] + o2[1])), !s2 && k2 && (!(o2 = k2.match(/Edge\/(\d+)/)) || o2[1] >= 74) && (o2 = k2.match(/Chrome\/(\d+)/)) && (s2 = +o2[1]);
var P2 = s2, F2 = !!Object.getOwnPropertySymbols && !l2((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && P2 && P2 < 41;
})), I2 = F2 && !Symbol.sham && typeof Symbol.iterator == "symbol", Mde = $.Object, L2 = I2 ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = D2("Symbol");
	return T2(t) && O2(t.prototype, Mde(e));
}, Nde = $.String, R2 = function(e) {
	try {
		return Nde(e);
	} catch {
		return "Object";
	}
}, Pde = $.TypeError, z2 = function(e) {
	if (T2(e)) return e;
	throw Pde(R2(e) + " is not a function");
}, B2 = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : z2(n);
}, Fde = $.TypeError, Ide = Object.defineProperty, V2 = function(e, t) {
	try {
		Ide($, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		$[e] = t;
	}
	return t;
}, H2 = $["__core-js_shared__"] || V2("__core-js_shared__", {}), U2 = a2((function(e) {
	(e.exports = function(e, t) {
		return H2[e] || (H2[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), Lde = $.Object, W2 = function(e) {
	return Lde(C2(e));
}, Rde = y2({}.hasOwnProperty), G2 = Object.hasOwn || function(e, t) {
	return Rde(W2(e), t);
}, zde = 0, Bde = Math.random(), Vde = y2(1 .toString), K2 = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + Vde(++zde + Bde, 36);
}, q2 = U2("wks"), J2 = $.Symbol, Y2 = J2 && J2.for, Hde = I2 ? J2 : J2 && J2.withoutSetter || K2, X2 = function(e) {
	if (!G2(q2, e) || !F2 && typeof q2[e] != "string") {
		var t = "Symbol." + e;
		F2 && G2(J2, e) ? q2[e] = J2[e] : q2[e] = I2 && Y2 ? Y2(t) : Hde(t);
	}
	return q2[e];
}, Ude = $.TypeError, Wde = X2("toPrimitive"), Z2 = function(e) {
	var t = function(e, t) {
		if (!E2(e) || L2(e)) return e;
		var n, r = B2(e, Wde);
		if (r) {
			if (t === void 0 && (t = "default"), n = f2(r, e, t), !E2(n) || L2(n)) return n;
			throw Ude("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && T2(n = e.toString) && !E2(r = f2(n, e)) || T2(n = e.valueOf) && !E2(r = f2(n, e)) || t !== "string" && T2(n = e.toString) && !E2(r = f2(n, e))) return r;
			throw Fde("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return L2(t) ? t : t + "";
}, Q2 = $.document, Gde = E2(Q2) && E2(Q2.createElement), $2 = function(e) {
	return Gde ? Q2.createElement(e) : {};
}, e4 = !u2 && !l2((function() {
	return Object.defineProperty($2("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), t4 = Object.getOwnPropertyDescriptor, n4 = { f: u2 ? t4 : function(e, t) {
	if (e = w2(e), t = Z2(t), e4) try {
		return t4(e, t);
	} catch {}
	if (G2(e, t)) return h2(!f2(Tde.f, e, t), e[t]);
} }, Kde = $.String, qde = $.TypeError, r4 = function(e) {
	if (E2(e)) return e;
	throw qde(Kde(e) + " is not an object");
}, Jde = $.TypeError, i4 = Object.defineProperty, a4 = { f: u2 ? i4 : function(e, t, n) {
	if (r4(e), t = Z2(t), r4(n), e4) try {
		return i4(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw Jde("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, o4 = u2 ? function(e, t, n) {
	return a4.f(e, t, h2(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, Yde = y2(Function.toString);
T2(H2.inspectSource) || (H2.inspectSource = function(e) {
	return Yde(e);
});
var s4, c4, l4, u4 = H2.inspectSource, d4 = $.WeakMap, f4 = T2(d4) && /native code/.test(u4(d4)), p4 = U2("keys"), m4 = function(e) {
	return p4[e] || (p4[e] = K2(e));
}, h4 = {}, g4 = $.TypeError, Xde = $.WeakMap;
if (f4 || H2.state) {
	var _4 = H2.state ||= new Xde(), Zde = y2(_4.get), v4 = y2(_4.has), Qde = y2(_4.set);
	s4 = function(e, t) {
		if (v4(_4, e)) throw new g4("Object already initialized");
		return t.facade = e, Qde(_4, e, t), t;
	}, c4 = function(e) {
		return Zde(_4, e) || {};
	}, l4 = function(e) {
		return v4(_4, e);
	};
} else {
	var y4 = m4("state");
	h4[y4] = !0, s4 = function(e, t) {
		if (G2(e, y4)) throw new g4("Object already initialized");
		return t.facade = e, o4(e, y4, t), t;
	}, c4 = function(e) {
		return G2(e, y4) ? e[y4] : {};
	}, l4 = function(e) {
		return G2(e, y4);
	};
}
var b4 = {
	set: s4,
	get: c4,
	has: l4,
	enforce: function(e) {
		return l4(e) ? c4(e) : s4(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!E2(t) || (n = c4(t)).type !== e) throw g4("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, x4 = Function.prototype, $de = u2 && Object.getOwnPropertyDescriptor, S4 = G2(x4, "name"), C4 = {
	EXISTS: S4,
	PROPER: S4 && function() {}.name === "something",
	CONFIGURABLE: S4 && (!u2 || u2 && $de(x4, "name").configurable)
}, w4 = a2((function(e) {
	var t = C4.CONFIGURABLE, n = b4.get, r = b4.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		T2(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!G2(a, "name") || t && a.name !== d) && o4(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === $ ? l ? e[n] = a : V2(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : o4(e, n, a));
	})(Function.prototype, "toString", (function() {
		return T2(this) && n(this).source || u4(this);
	}));
})), efe = Math.ceil, tfe = Math.floor, T4 = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? tfe : efe)(t);
}, nfe = Math.max, rfe = Math.min, E4 = function(e, t) {
	var n = T4(e);
	return n < 0 ? nfe(n + t, 0) : rfe(n, t);
}, ife = Math.min, D4 = function(e) {
	return e > 0 ? ife(T4(e), 9007199254740991) : 0;
}, O4 = function(e) {
	return D4(e.length);
}, afe = function(e) {
	return function(t, n, r) {
		var i, a = w2(t), o = O4(a), s = E4(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}(!1), k4 = y2([].push), A4 = function(e, t) {
	var n, r = w2(e), i = 0, a = [];
	for (n in r) !G2(h4, n) && G2(r, n) && k4(a, n);
	for (; t.length > i;) G2(r, n = t[i++]) && (~afe(a, n) || k4(a, n));
	return a;
}, j4 = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], ofe = j4.concat("length", "prototype"), M4 = { f: Object.getOwnPropertyNames || function(e) {
	return A4(e, ofe);
} }, sfe = { f: Object.getOwnPropertySymbols }, cfe = y2([].concat), lfe = D2("Reflect", "ownKeys") || function(e) {
	var t = M4.f(r4(e)), n = sfe.f;
	return n ? cfe(t, n(e)) : t;
}, ufe = function(e, t) {
	for (var n = lfe(t), r = a4.f, i = n4.f, a = 0; a < n.length; a++) {
		var o = n[a];
		G2(e, o) || r(e, o, i(t, o));
	}
}, dfe = /#|\.prototype\./, N4 = function(e, t) {
	var n = pfe[ffe(e)];
	return n == hfe || n != mfe && (T2(t) ? l2(t) : !!t);
}, ffe = N4.normalize = function(e) {
	return String(e).replace(dfe, ".").toLowerCase();
}, pfe = N4.data = {}, mfe = N4.NATIVE = "N", hfe = N4.POLYFILL = "P", P4 = N4, gfe = n4.f, F4 = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? $ : l ? $[s] || V2(s, {}) : ($[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = gfe(n, r)) && o.value : n[r], !P4(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			ufe(a, i);
		}
		(e.sham || i && i.sham) && o4(a, "sham", !0), w4(n, r, a, e);
	}
}, I4 = Array.isArray || function(e) {
	return b2(e) == "Array";
}, L4 = {};
L4[X2("toStringTag")] = "z";
var R4 = String(L4) === "[object z]", _fe = X2("toStringTag"), vfe = $.Object, yfe = b2(function() {
	return arguments;
}()) == "Arguments", z4 = R4 ? b2 : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = vfe(e), _fe)) == "string" ? n : yfe ? b2(t) : (r = b2(t)) == "Object" && T2(t.callee) ? "Arguments" : r;
}, B4 = function() {}, bfe = [], V4 = D2("Reflect", "construct"), H4 = /^\s*(?:class|function)\b/, xfe = y2(H4.exec), Sfe = !H4.exec(B4), U4 = function(e) {
	if (!T2(e)) return !1;
	try {
		return V4(B4, bfe, e), !0;
	} catch {
		return !1;
	}
}, W4 = !V4 || l2((function() {
	var e;
	return U4(U4.call) || !U4(Object) || !U4((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!T2(e)) return !1;
	switch (z4(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return Sfe || !!xfe(H4, u4(e));
} : U4, G4 = function(e, t, n) {
	var r = Z2(t);
	r in e ? a4.f(e, r, h2(0, n)) : e[r] = n;
}, Cfe = X2("species"), K4 = y2([].slice), wfe = P2 >= 51 || !l2((function() {
	var e = [];
	return (e.constructor = {})[Cfe] = function() {
		return { foo: 1 };
	}, e.slice(Boolean).foo !== 1;
})), Tfe = X2("species"), q4 = $.Array, Efe = Math.max;
F4({
	target: "Array",
	proto: !0,
	forced: !wfe
}, { slice: function(e, t) {
	var n, r, i, a = w2(this), o = O4(a), s = E4(e, o), c = E4(t === void 0 ? o : t, o);
	if (I4(a) && (n = a.constructor, (W4(n) && (n === q4 || I4(n.prototype)) || E2(n) && (n = n[Tfe]) === null) && (n = void 0), n === q4 || n === void 0)) return K4(a, s, c);
	for (r = new (n === void 0 ? q4 : n)(Efe(c - s, 0)), i = 0; s < c; s++, i++) s in a && G4(r, i, a[s]);
	return r.length = i, r;
} });
var Dfe = R4 ? {}.toString : function() {
	return "[object " + z4(this) + "]";
};
R4 || w4(Object.prototype, "toString", Dfe, { unsafe: !0 });
var J4, Ofe = $.String, Y4 = function(e) {
	if (z4(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return Ofe(e);
}, X4 = function() {
	var e = r4(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, Z4 = $.RegExp, Q4 = l2((function() {
	var e = Z4("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), kfe = Q4 || l2((function() {
	return !Z4("a", "y").sticky;
})), $4 = {
	BROKEN_CARET: Q4 || l2((function() {
		var e = Z4("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: kfe,
	UNSUPPORTED_Y: Q4
}, Afe = Object.keys || function(e) {
	return A4(e, j4);
}, jfe = u2 ? Object.defineProperties : function(e, t) {
	r4(e);
	for (var n, r = w2(t), i = Afe(t), a = i.length, o = 0; a > o;) a4.f(e, n = i[o++], r[n]);
	return e;
}, e3 = D2("document", "documentElement"), t3 = m4("IE_PROTO"), n3 = function() {}, r3 = function(e) {
	return "<script>" + e + "<\/script>";
}, i3 = function(e) {
	e.write(r3("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, a3 = function() {
	try {
		J4 = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	a3 = typeof document < "u" ? document.domain && J4 ? i3(J4) : ((t = $2("iframe")).style.display = "none", e3.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(r3("document.F=Object")), e.close(), e.F) : i3(J4);
	for (var n = j4.length; n--;) delete a3.prototype[j4[n]];
	return a3();
};
h4[t3] = !0;
var o3, s3, c3 = Object.create || function(e, t) {
	var n;
	return e === null ? n = a3() : (n3.prototype = r4(e), n = new n3(), n3.prototype = null, n[t3] = e), t === void 0 ? n : jfe(n, t);
}, Mfe = $.RegExp, Nfe = l2((function() {
	var e = Mfe(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), Pfe = $.RegExp, Ffe = l2((function() {
	var e = Pfe("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), Ife = b4.get, Lfe = U2("native-string-replace", String.prototype.replace), l3 = RegExp.prototype.exec, u3 = l3, Rfe = y2("".charAt), zfe = y2("".indexOf), Bfe = y2("".replace), d3 = y2("".slice), f3 = (s3 = /b*/g, f2(l3, o3 = /a/, "a"), f2(l3, s3, "a"), o3.lastIndex !== 0 || s3.lastIndex !== 0), p3 = $4.BROKEN_CARET, m3 = /()??/.exec("")[1] !== void 0;
(f3 || m3 || p3 || Nfe || Ffe) && (u3 = function(e) {
	var t, n, r, i, a, o, s, c = this, l = Ife(c), u = Y4(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = f2(u3, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = p3 && c.sticky, m = f2(X4, c), h = c.source, g = 0, _ = u;
	if (p && (m = Bfe(m, "y", ""), zfe(m, "g") === -1 && (m += "g"), _ = d3(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && Rfe(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), m3 && (n = RegExp("^" + h + "$(?!\\s)", m)), f3 && (r = c.lastIndex), i = f2(l3, p ? n : c, _), p ? i ? (i.input = d3(i.input, g), i[0] = d3(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : f3 && i && (c.lastIndex = c.global ? i.index + i[0].length : r), m3 && i && i.length > 1 && f2(Lfe, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = c3(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var h3 = u3;
F4({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== h3
}, { exec: h3 });
var g3 = Function.prototype, _3 = g3.apply, Vfe = g3.bind, v3 = g3.call, y3 = typeof Reflect == "object" && Reflect.apply || (Vfe ? v3.bind(_3) : function() {
	return v3.apply(_3, arguments);
}), Hfe = X2("species"), b3 = RegExp.prototype, Ufe = X2("match"), Wfe = $.TypeError, Gfe = X2("species"), x3 = function(e, t) {
	var n, r = r4(e).constructor;
	return r === void 0 || (n = r4(r)[Gfe]) == null ? t : function(e) {
		if (W4(e)) return e;
		throw Wfe(R2(e) + " is not a constructor");
	}(n);
}, Kfe = y2("".charAt), S3 = y2("".charCodeAt), qfe = y2("".slice), C3 = function(e) {
	return function(t, n) {
		var r, i, a = Y4(C2(t)), o = T4(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = S3(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = S3(a, o + 1)) < 56320 || i > 57343 ? e ? Kfe(a, o) : r : e ? qfe(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}, w3 = {
	codeAt: C3(!1),
	charAt: C3(!0)
}, Jfe = w3.charAt, Yfe = function(e, t, n) {
	return t + (n ? Jfe(e, t).length : 1);
}, Xfe = $.Array, Zfe = Math.max, T3 = function(e, t, n) {
	for (var r = O4(e), i = E4(t, r), a = E4(n === void 0 ? r : n, r), o = Xfe(Zfe(a - i, 0)), s = 0; i < a; i++, s++) G4(o, s, e[i]);
	return o.length = s, o;
}, Qfe = $.TypeError, E3 = function(e, t) {
	var n = e.exec;
	if (T2(n)) {
		var r = f2(n, e, t);
		return r !== null && r4(r), r;
	}
	if (b2(e) === "RegExp") return f2(h3, e, t);
	throw Qfe("RegExp#exec called on incompatible receiver");
}, D3 = $4.UNSUPPORTED_Y, $fe = Math.min, O3 = [].push, epe = y2(/./.exec), k3 = y2(O3), A3 = y2("".slice);
(function(e, t, n, r) {
	var i = X2(e), a = !l2((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !l2((function() {
		var e = !1, t = /a/;
		return (t = {}).constructor = {}, t.constructor[Hfe] = function() {
			return t;
		}, t.flags = "", t[i] = /./[i], t.exec = function() {
			return e = !0, null;
		}, t[i](""), !e;
	}));
	if (!a || !o || n) {
		var s = y2(/./[i]), c = function(e, t, n) {
			var r;
			return r = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(e, n) {
				var r, i, a = Y4(C2(this)), o = n === void 0 ? 4294967295 : n >>> 0;
				if (o === 0) return [];
				if (e === void 0) return [a];
				if (!E2(r = e) || !((i = r[Ufe]) === void 0 ? b2(r) == "RegExp" : i)) return f2(t, a, e, o);
				for (var s, c, l, u = [], d = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), f = 0, p = new RegExp(e.source, d + "g"); (s = f2(h3, p, a)) && !((c = p.lastIndex) > f && (k3(u, A3(a, f, s.index)), s.length > 1 && s.index < a.length && y3(O3, u, T3(s, 1)), l = s[0].length, f = c, u.length >= o));) p.lastIndex === s.index && p.lastIndex++;
				return f === a.length ? !l && epe(p, "") || k3(u, "") : k3(u, A3(a, f)), u.length > o ? T3(u, 0, o) : u;
			} : "0".split(void 0, 0).length ? function(e, n) {
				return e === void 0 && n === 0 ? [] : f2(t, this, e, n);
			} : t, [function(t, n) {
				var i = C2(this), a = t == null ? void 0 : B2(t, e);
				return a ? f2(a, t, i, n) : f2(r, Y4(i), t, n);
			}, function(e, i) {
				var a = r4(this), o = Y4(e), s = n(r, a, o, i, r !== t);
				if (s.done) return s.value;
				var c = x3(a, RegExp), l = a.unicode, u = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (D3 ? "g" : "y"), d = new c(D3 ? "^(?:" + a.source + ")" : a, u), f = i === void 0 ? 4294967295 : i >>> 0;
				if (f === 0) return [];
				if (o.length === 0) return E3(d, o) === null ? [o] : [];
				for (var p = 0, m = 0, h = []; m < o.length;) {
					d.lastIndex = D3 ? 0 : m;
					var g, _ = E3(d, D3 ? A3(o, m) : o);
					if (_ === null || (g = $fe(D4(d.lastIndex + (D3 ? m : 0)), o.length)) === p) m = Yfe(o, m, l);
					else {
						if (k3(h, A3(o, p, m)), h.length === f) return h;
						for (var v = 1; v <= _.length - 1; v++) if (k3(h, _[v]), h.length === f) return h;
						m = p = g;
					}
				}
				return k3(h, A3(o, p)), h;
			}];
		}(i, ""[e], (function(e, t, n, r, i) {
			var o = y2(e), c = t.exec;
			return c === h3 || c === b3.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		w4(String.prototype, e, c[0]), w4(b3, i, c[1]);
	}
	r && o4(b3[i], "sham", !0);
})("split", 0, !!l2((function() {
	var e = /(?:)/, t = e.exec;
	e.exec = function() {
		return t.apply(this, arguments);
	};
	var n = "ab".split(e);
	return n.length !== 2 || n[0] !== "a" || n[1] !== "b";
})), D3);
var j3 = function() {
	return j3 = Object.assign || function(e) {
		for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
		return e;
	}, j3.apply(this, arguments);
};
function M3(e, t, n, r) {
	return new (n ||= Promise)((function(i, a) {
		function o(e) {
			try {
				c(r.next(e));
			} catch (e) {
				a(e);
			}
		}
		function s(e) {
			try {
				c(r.throw(e));
			} catch (e) {
				a(e);
			}
		}
		function c(e) {
			var t;
			e.done ? i(e.value) : (t = e.value, t instanceof n ? t : new n((function(e) {
				e(t);
			}))).then(o, s);
		}
		c((r = r.apply(e, t || [])).next());
	}));
}
function N3(e, t) {
	var n, r, i, a, o = {
		label: 0,
		sent: function() {
			if (1 & i[0]) throw i[1];
			return i[1];
		},
		trys: [],
		ops: []
	};
	return a = {
		next: s(0),
		throw: s(1),
		return: s(2)
	}, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
		return this;
	}), a;
	function s(a) {
		return function(s) {
			return function(a) {
				if (n) throw TypeError("Generator is already executing.");
				for (; o;) try {
					if (n = 1, r && (i = 2 & a[0] ? r.return : a[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, a[1])).done) return i;
					switch (r = 0, i && (a = [2 & a[0], i.value]), a[0]) {
						case 0:
						case 1:
							i = a;
							break;
						case 4: return o.label++, {
							value: a[1],
							done: !1
						};
						case 5:
							o.label++, r = a[1], a = [0];
							continue;
						case 7:
							a = o.ops.pop(), o.trys.pop();
							continue;
						default:
							if (!((i = (i = o.trys).length > 0 && i[i.length - 1]) || a[0] !== 6 && a[0] !== 2)) {
								o = 0;
								continue;
							}
							if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
								o.label = a[1];
								break;
							}
							if (a[0] === 6 && o.label < i[1]) {
								o.label = i[1], i = a;
								break;
							}
							if (i && o.label < i[2]) {
								o.label = i[2], o.ops.push(a);
								break;
							}
							i[2] && o.ops.pop(), o.trys.pop();
							continue;
					}
					a = t.call(e, o);
				} catch (e) {
					a = [6, e], r = 0;
				} finally {
					n = i = 0;
				}
				if (5 & a[0]) throw a[1];
				return {
					value: a[0] ? a[1] : void 0,
					done: !0
				};
			}([a, s]);
		};
	}
}
function tpe(e) {
	if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
	var t, n = e[Symbol.asyncIterator];
	return n ? n.call(e) : (e = function(e) {
		var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
		if (n) return n.call(e);
		if (e && typeof e.length == "number") return { next: function() {
			return e && r >= e.length && (e = void 0), {
				value: e && e[r++],
				done: !e
			};
		} };
		throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
	}(e), t = {}, r("next"), r("throw"), r("return"), t[Symbol.asyncIterator] = function() {
		return this;
	}, t);
	function r(n) {
		t[n] = e[n] && function(t) {
			return new Promise((function(r, i) {
				(function(e, t, n, r) {
					Promise.resolve(r).then((function(t) {
						e({
							value: t,
							done: n
						});
					}), t);
				})(r, i, (t = e[n](t)).done, t.value);
			}));
		};
	}
}
var P3 = X2("unscopables"), F3 = Array.prototype;
F3[P3] ?? a4.f(F3, P3, {
	configurable: !0,
	value: c3(null)
});
var I3, L3, R3, z3 = function(e) {
	F3[P3][e] = !0;
}, B3 = {}, npe = !l2((function() {
	function e() {}
	return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
})), V3 = m4("IE_PROTO"), H3 = $.Object, rpe = H3.prototype, U3 = npe ? H3.getPrototypeOf : function(e) {
	var t = W2(e);
	if (G2(t, V3)) return t[V3];
	var n = t.constructor;
	return T2(n) && t instanceof n ? n.prototype : t instanceof H3 ? rpe : null;
}, W3 = X2("iterator"), G3 = !1;
[].keys && ("next" in (R3 = [].keys()) ? (L3 = U3(U3(R3))) !== Object.prototype && (I3 = L3) : G3 = !0), (I3 == null || l2((function() {
	var e = {};
	return I3[W3].call(e) !== e;
}))) && (I3 = {}), T2(I3[W3]) || w4(I3, W3, (function() {
	return this;
}));
var K3 = {
	IteratorPrototype: I3,
	BUGGY_SAFARI_ITERATORS: G3
}, ipe = a4.f, q3 = X2("toStringTag"), J3 = function(e, t, n) {
	e && !G2(e = n ? e : e.prototype, q3) && ipe(e, q3, {
		configurable: !0,
		value: t
	});
}, ape = K3.IteratorPrototype, ope = function() {
	return this;
}, spe = $.String, cpe = $.TypeError, Y3 = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var e, t = !1, n = {};
	try {
		(e = y2(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(n, []), t = n instanceof Array;
	} catch {}
	return function(n, r) {
		return r4(n), function(e) {
			if (typeof e == "object" || T2(e)) return e;
			throw cpe("Can't set " + spe(e) + " as a prototype");
		}(r), t ? e(n, r) : n.__proto__ = r, n;
	};
}() : void 0), lpe = C4.PROPER, upe = C4.CONFIGURABLE, X3 = K3.IteratorPrototype, Z3 = K3.BUGGY_SAFARI_ITERATORS, Q3 = X2("iterator"), dpe = function() {
	return this;
}, $3 = function(e, t, n, r, i, a, o) {
	(function(e, t, n, r) {
		var i = t + " Iterator";
		e.prototype = c3(ape, { next: h2(1, n) }), J3(e, i, !1), B3[i] = ope;
	})(n, t, r);
	var s, c, l, u = function(e) {
		if (e === i && h) return h;
		if (!Z3 && e in p) return p[e];
		switch (e) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new n(this, e);
			};
		}
		return function() {
			return new n(this);
		};
	}, d = t + " Iterator", f = !1, p = e.prototype, m = p[Q3] || p["@@iterator"] || i && p[i], h = !Z3 && m || u(i), g = t == "Array" && p.entries || m;
	if (g && (s = U3(g.call(new e()))) !== Object.prototype && s.next && (U3(s) !== X3 && (Y3 ? Y3(s, X3) : T2(s[Q3]) || w4(s, Q3, dpe)), J3(s, d, !0)), lpe && i == "values" && m && m.name !== "values" && (upe ? o4(p, "name", "values") : (f = !0, h = function() {
		return f2(m, this);
	})), i) if (c = {
		values: u("values"),
		keys: a ? h : u("keys"),
		entries: u("entries")
	}, o) for (l in c) (Z3 || f || !(l in p)) && w4(p, l, c[l]);
	else F4({
		target: t,
		proto: !0,
		forced: Z3 || f
	}, c);
	return p[Q3] !== h && w4(p, Q3, h, { name: i }), B3[t] = h, c;
}, fpe = b4.set, ppe = b4.getterFor("Array Iterator"), e6 = $3(Array, "Array", (function(e, t) {
	fpe(this, {
		type: "Array Iterator",
		target: w2(e),
		index: 0,
		kind: t
	});
}), (function() {
	var e = ppe(this), t = e.target, n = e.kind, r = e.index++;
	return !t || r >= t.length ? (e.target = void 0, {
		value: void 0,
		done: !0
	}) : n == "keys" ? {
		value: r,
		done: !1
	} : n == "values" ? {
		value: t[r],
		done: !1
	} : {
		value: [r, t[r]],
		done: !1
	};
}), "values");
B3.Arguments = B3.Array, z3("keys"), z3("values"), z3("entries");
var mpe = w3.charAt, hpe = b4.set, gpe = b4.getterFor("String Iterator");
$3(String, "String", (function(e) {
	hpe(this, {
		type: "String Iterator",
		string: Y4(e),
		index: 0
	});
}), (function() {
	var e, t = gpe(this), n = t.string, r = t.index;
	return r >= n.length ? {
		value: void 0,
		done: !0
	} : (e = mpe(n, r), t.index += e.length, {
		value: e,
		done: !1
	});
}));
var t6 = function(e, t, n) {
	for (var r in t) w4(e, r, t[r], n);
	return e;
}, n6 = M4.f, r6 = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], _pe = { f: function(e) {
	return r6 && b2(e) == "Window" ? function(e) {
		try {
			return n6(e);
		} catch {
			return T3(r6);
		}
	}(e) : n6(w2(e));
} }, i6 = l2((function() {
	if (typeof ArrayBuffer == "function") {
		var e = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(e) && Object.defineProperty(e, "a", { value: 8 });
	}
})), a6 = Object.isExtensible, o6 = l2((function() {
	a6(1);
})) || i6 ? function(e) {
	return !!E2(e) && (!i6 || b2(e) != "ArrayBuffer") && (!a6 || a6(e));
} : a6, vpe = !l2((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), s6 = a2((function(e) {
	var t = a4.f, n = !1, r = K2("meta"), i = 0, a = function(e) {
		t(e, r, { value: {
			objectID: "O" + i++,
			weakData: {}
		} });
	}, o = e.exports = {
		enable: function() {
			o.enable = function() {}, n = !0;
			var e = M4.f, t = y2([].splice), i = {};
			i[r] = 1, e(i).length && (M4.f = function(n) {
				for (var i = e(n), a = 0, o = i.length; a < o; a++) if (i[a] === r) {
					t(i, a, 1);
					break;
				}
				return i;
			}, F4({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: _pe.f }));
		},
		fastKey: function(e, t) {
			if (!E2(e)) return typeof e == "symbol" ? e : (typeof e == "string" ? "S" : "P") + e;
			if (!G2(e, r)) {
				if (!o6(e)) return "F";
				if (!t) return "E";
				a(e);
			}
			return e[r].objectID;
		},
		getWeakData: function(e, t) {
			if (!G2(e, r)) {
				if (!o6(e)) return !0;
				if (!t) return !1;
				a(e);
			}
			return e[r].weakData;
		},
		onFreeze: function(e) {
			return vpe && n && o6(e) && !G2(e, r) && a(e), e;
		}
	};
	h4[r] = !0;
})), c6 = y2(y2.bind), l6 = function(e, t) {
	return z2(e), t === void 0 ? e : c6 ? c6(e, t) : function() {
		return e.apply(t, arguments);
	};
}, ype = X2("iterator"), bpe = Array.prototype, xpe = X2("iterator"), u6 = function(e) {
	if (e != null) return B2(e, xpe) || B2(e, "@@iterator") || B3[z4(e)];
}, Spe = $.TypeError, d6 = function(e, t, n) {
	var r, i;
	r4(e);
	try {
		if (!(r = B2(e, "return"))) {
			if (t === "throw") throw n;
			return n;
		}
		r = f2(r, e);
	} catch (e) {
		i = !0, r = e;
	}
	if (t === "throw") throw n;
	if (i) throw r;
	return r4(r), n;
}, Cpe = $.TypeError, f6 = function(e, t) {
	this.stopped = e, this.result = t;
}, p6 = f6.prototype, m6 = function(e, t, n) {
	var r, i, a, o, s, c, l, u, d = n && n.that, f = !(!n || !n.AS_ENTRIES), p = !(!n || !n.IS_ITERATOR), m = !(!n || !n.INTERRUPTED), h = l6(t, d), g = function(e) {
		return r && d6(r, "normal", e), new f6(!0, e);
	}, _ = function(e) {
		return f ? (r4(e), m ? h(e[0], e[1], g) : h(e[0], e[1])) : m ? h(e, g) : h(e);
	};
	if (p) r = e;
	else {
		if (!(i = u6(e))) throw Cpe(R2(e) + " is not iterable");
		if ((u = i) !== void 0 && (B3.Array === u || bpe[ype] === u)) {
			for (a = 0, o = O4(e); o > a; a++) if ((s = _(e[a])) && O2(p6, s)) return s;
			return new f6(!1);
		}
		r = function(e, t) {
			var n = arguments.length < 2 ? u6(e) : t;
			if (z2(n)) return r4(f2(n, e));
			throw Spe(R2(e) + " is not iterable");
		}(e, i);
	}
	for (c = r.next; !(l = f2(c, r)).done;) {
		try {
			s = _(l.value);
		} catch (e) {
			d6(r, "throw", e);
		}
		if (typeof s == "object" && s && O2(p6, s)) return s;
	}
	return new f6(!1);
}, wpe = $.TypeError, h6 = function(e, t) {
	if (O2(t, e)) return e;
	throw wpe("Incorrect invocation");
}, g6 = X2("iterator"), _6 = !1;
try {
	var Tpe = 0, v6 = {
		next: function() {
			return { done: !!Tpe++ };
		},
		return: function() {
			_6 = !0;
		}
	};
	v6[g6] = function() {
		return this;
	}, Array.from(v6, (function() {
		throw 2;
	}));
} catch {}
var y6 = function(e, t) {
	if (!t && !_6) return !1;
	var n = !1;
	try {
		var r = {};
		r[g6] = function() {
			return { next: function() {
				return { done: n = !0 };
			} };
		}, e(r);
	} catch {}
	return n;
}, Epe = X2("species"), b6 = $.Array, Dpe = function(e, t) {
	return new (function(e) {
		var t;
		return I4(e) && (t = e.constructor, (W4(t) && (t === b6 || I4(t.prototype)) || E2(t) && (t = t[Epe]) === null) && (t = void 0)), t === void 0 ? b6 : t;
	}(e))(t === 0 ? 0 : t);
}, x6 = y2([].push), S6 = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = W2(c), h = S2(m), g = l6(l, u), _ = O4(h), v = 0, y = d || Dpe, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: x6(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: x6(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, C6 = {
	forEach: S6(0),
	map: S6(1),
	filter: S6(2),
	some: S6(3),
	every: S6(4),
	find: S6(5),
	findIndex: S6(6),
	filterReject: S6(7)
}, w6 = s6.getWeakData, Ope = b4.set, kpe = b4.getterFor, Ape = C6.find, jpe = C6.findIndex, Mpe = y2([].splice), Npe = 0, T6 = function(e) {
	return e.frozen ||= new E6();
}, E6 = function() {
	this.entries = [];
}, D6 = function(e, t) {
	return Ape(e.entries, (function(e) {
		return e[0] === t;
	}));
};
E6.prototype = {
	get: function(e) {
		var t = D6(this, e);
		if (t) return t[1];
	},
	has: function(e) {
		return !!D6(this, e);
	},
	set: function(e, t) {
		var n = D6(this, e);
		n ? n[1] = t : this.entries.push([e, t]);
	},
	delete: function(e) {
		var t = jpe(this.entries, (function(t) {
			return t[0] === e;
		}));
		return ~t && Mpe(this.entries, t, 1), !!~t;
	}
};
var O6, k6 = { getConstructor: function(e, t, n, r) {
	var i = e((function(e, i) {
		h6(e, a), Ope(e, {
			type: t,
			id: Npe++,
			frozen: void 0
		}), i != null && m6(i, e[r], {
			that: e,
			AS_ENTRIES: n
		});
	})), a = i.prototype, o = kpe(t), s = function(e, t, n) {
		var r = o(e), i = w6(r4(t), !0);
		return !0 === i ? T6(r).set(t, n) : i[r.id] = n, e;
	};
	return t6(a, {
		delete: function(e) {
			var t = o(this);
			if (!E2(e)) return !1;
			var n = w6(e);
			return !0 === n ? T6(t).delete(e) : n && G2(n, t.id) && delete n[t.id];
		},
		has: function(e) {
			var t = o(this);
			if (!E2(e)) return !1;
			var n = w6(e);
			return !0 === n ? T6(t).has(e) : n && G2(n, t.id);
		}
	}), t6(a, n ? {
		get: function(e) {
			var t = o(this);
			if (E2(e)) {
				var n = w6(e);
				return !0 === n ? T6(t).get(e) : n ? n[t.id] : void 0;
			}
		},
		set: function(e, t) {
			return s(this, e, t);
		}
	} : { add: function(e) {
		return s(this, e, !0);
	} }), i;
} }, A6 = b4.enforce, Ppe = !$.ActiveXObject && "ActiveXObject" in $, j6 = function(e) {
	return function() {
		return e(this, arguments.length ? arguments[0] : void 0);
	};
}, Fpe = function(e, t, n) {
	var r = e.indexOf("Map") !== -1, i = e.indexOf("Weak") !== -1, a = r ? "set" : "add", o = $[e], s = o && o.prototype, c = o, l = {}, u = function(e) {
		var t = y2(s[e]);
		w4(s, e, e == "add" ? function(e) {
			return t(this, e === 0 ? 0 : e), this;
		} : e == "delete" ? function(e) {
			return !(i && !E2(e)) && t(this, e === 0 ? 0 : e);
		} : e == "get" ? function(e) {
			return i && !E2(e) ? void 0 : t(this, e === 0 ? 0 : e);
		} : e == "has" ? function(e) {
			return !(i && !E2(e)) && t(this, e === 0 ? 0 : e);
		} : function(e, n) {
			return t(this, e === 0 ? 0 : e, n), this;
		});
	};
	if (P4(e, !T2(o) || !(i || s.forEach && !l2((function() {
		new o().entries().next();
	}))))) c = n.getConstructor(t, e, r, a), s6.enable();
	else if (P4(e, !0)) {
		var d = new c(), f = d[a](i ? {} : -0, 1) != d, p = l2((function() {
			d.has(1);
		})), m = y6((function(e) {
			new o(e);
		})), h = !i && l2((function() {
			for (var e = new o(), t = 5; t--;) e[a](t, t);
			return !e.has(-0);
		}));
		m || ((c = t((function(e, t) {
			h6(e, s);
			var n = function(e, t, n) {
				var r, i;
				return Y3 && T2(r = t.constructor) && r !== n && E2(i = r.prototype) && i !== n.prototype && Y3(e, i), e;
			}(new o(), e, c);
			return t != null && m6(t, n[a], {
				that: n,
				AS_ENTRIES: r
			}), n;
		}))).prototype = s, s.constructor = c), (p || h) && (u("delete"), u("has"), r && u("get")), (h || f) && u(a), i && s.clear && delete s.clear;
	}
	return l[e] = c, F4({
		global: !0,
		forced: c != o
	}, l), J3(c, e), i || n.setStrong(c, e, r), c;
}("WeakMap", j6, k6);
if (f4 && Ppe) {
	O6 = k6.getConstructor(j6, "WeakMap", !0), s6.enable();
	var M6 = Fpe.prototype, N6 = y2(M6.delete), P6 = y2(M6.has), F6 = y2(M6.get), I6 = y2(M6.set);
	t6(M6, {
		delete: function(e) {
			if (E2(e) && !o6(e)) {
				var t = A6(this);
				return t.frozen ||= new O6(), N6(this, e) || t.frozen.delete(e);
			}
			return N6(this, e);
		},
		has: function(e) {
			if (E2(e) && !o6(e)) {
				var t = A6(this);
				return t.frozen ||= new O6(), P6(this, e) || t.frozen.has(e);
			}
			return P6(this, e);
		},
		get: function(e) {
			if (E2(e) && !o6(e)) {
				var t = A6(this);
				return t.frozen ||= new O6(), P6(this, e) ? F6(this, e) : t.frozen.get(e);
			}
			return F6(this, e);
		},
		set: function(e, t) {
			if (E2(e) && !o6(e)) {
				var n = A6(this);
				n.frozen ||= new O6(), P6(this, e) ? I6(this, e, t) : n.frozen.set(e, t);
			} else I6(this, e, t);
			return this;
		}
	});
}
var L6 = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, R6 = $2("span").classList, z6 = R6 && R6.constructor && R6.constructor.prototype, B6 = z6 === Object.prototype ? void 0 : z6, V6 = X2("iterator"), H6 = X2("toStringTag"), U6 = e6.values, W6 = function(e, t) {
	if (e) {
		if (e[V6] !== U6) try {
			o4(e, V6, U6);
		} catch {
			e[V6] = U6;
		}
		if (e[H6] || o4(e, H6, t), L6[t]) {
			for (var n in e6) if (e[n] !== e6[n]) try {
				o4(e, n, e6[n]);
			} catch {
				e[n] = e6[n];
			}
		}
	}
};
for (var G6 in L6) W6($[G6] && $[G6].prototype, G6);
W6(B6, "DOMTokenList");
var K6 = function(e, t) {
	var n = [][e];
	return !!n && l2((function() {
		n.call(null, t || function() {
			throw 1;
		}, 1);
	}));
}, Ipe = C6.forEach, q6 = K6("forEach") ? [].forEach : function(e) {
	return Ipe(this, e, arguments.length > 1 ? arguments[1] : void 0);
}, J6 = function(e) {
	if (e && e.forEach !== q6) try {
		o4(e, "forEach", q6);
	} catch {
		e.forEach = q6;
	}
};
for (var Y6 in L6) L6[Y6] && J6($[Y6] && $[Y6].prototype);
J6(B6);
var X6, Z6, Q6, $6, e8 = $.Promise, t8 = X2("species"), n8 = /(?:ipad|iphone|ipod).*applewebkit/i.test(k2), r8 = b2($.process) == "process", i8 = $.setImmediate, a8 = $.clearImmediate, Lpe = $.process, o8 = $.Dispatch, Rpe = $.Function, s8 = $.MessageChannel, zpe = $.String, c8 = 0, l8 = {};
try {
	X6 = $.location;
} catch {}
var u8 = function(e) {
	if (G2(l8, e)) {
		var t = l8[e];
		delete l8[e], t();
	}
}, d8 = function(e) {
	return function() {
		u8(e);
	};
}, f8 = function(e) {
	u8(e.data);
}, p8 = function(e) {
	$.postMessage(zpe(e), X6.protocol + "//" + X6.host);
};
i8 && a8 || (i8 = function(e) {
	var t = K4(arguments, 1);
	return l8[++c8] = function() {
		y3(T2(e) ? e : Rpe(e), void 0, t);
	}, Z6(c8), c8;
}, a8 = function(e) {
	delete l8[e];
}, r8 ? Z6 = function(e) {
	Lpe.nextTick(d8(e));
} : o8 && o8.now ? Z6 = function(e) {
	o8.now(d8(e));
} : s8 && !n8 ? ($6 = (Q6 = new s8()).port2, Q6.port1.onmessage = f8, Z6 = l6($6.postMessage, $6)) : $.addEventListener && T2($.postMessage) && !$.importScripts && X6 && X6.protocol !== "file:" && !l2(p8) ? (Z6 = p8, $.addEventListener("message", f8, !1)) : Z6 = "onreadystatechange" in $2("script") ? function(e) {
	e3.appendChild($2("script")).onreadystatechange = function() {
		e3.removeChild(this), u8(e);
	};
} : function(e) {
	setTimeout(d8(e), 0);
});
var m8, h8, g8, _8, v8, y8, b8, x8, S8 = {
	set: i8,
	clear: a8
}, Bpe = /ipad|iphone|ipod/i.test(k2) && $.Pebble !== void 0, Vpe = /web0s(?!.*chrome)/i.test(k2), Hpe = n4.f, C8 = S8.set, w8 = $.MutationObserver || $.WebKitMutationObserver, T8 = $.document, E8 = $.process, D8 = $.Promise, O8 = Hpe($, "queueMicrotask"), k8 = O8 && O8.value;
k8 || (m8 = function() {
	var e, t;
	for (r8 && (e = E8.domain) && e.exit(); h8;) {
		t = h8.fn, h8 = h8.next;
		try {
			t();
		} catch (e) {
			throw h8 ? _8() : g8 = void 0, e;
		}
	}
	g8 = void 0, e && e.enter();
}, n8 || r8 || Vpe || !w8 || !T8 ? !Bpe && D8 && D8.resolve ? ((b8 = D8.resolve(void 0)).constructor = D8, x8 = l6(b8.then, b8), _8 = function() {
	x8(m8);
}) : r8 ? _8 = function() {
	E8.nextTick(m8);
} : (C8 = l6(C8, $), _8 = function() {
	C8(m8);
}) : (v8 = !0, y8 = T8.createTextNode(""), new w8(m8).observe(y8, { characterData: !0 }), _8 = function() {
	y8.data = v8 = !v8;
}));
var A8, j8, M8, N8, P8 = k8 || function(e) {
	var t = {
		fn: e,
		next: void 0
	};
	g8 && (g8.next = t), h8 || (h8 = t, _8()), g8 = t;
}, Upe = function(e) {
	var t, n;
	this.promise = new e((function(e, r) {
		if (t !== void 0 || n !== void 0) throw TypeError("Bad Promise constructor");
		t = e, n = r;
	})), this.resolve = z2(t), this.reject = z2(n);
}, F8 = { f: function(e) {
	return new Upe(e);
} }, I8 = function(e) {
	try {
		return {
			error: !1,
			value: e()
		};
	} catch (e) {
		return {
			error: !0,
			value: e
		};
	}
}, Wpe = typeof window == "object", L8 = S8.set, Gpe = X2("species"), R8 = "Promise", z8 = b4.getterFor(R8), Kpe = b4.set, qpe = b4.getterFor(R8), B8 = e8 && e8.prototype, V8 = e8, H8 = B8, U8 = $.TypeError, W8 = $.document, G8 = $.process, K8 = F8.f, Jpe = K8, Ype = !!(W8 && W8.createEvent && $.dispatchEvent), q8 = T2($.PromiseRejectionEvent), J8 = !1, Y8 = P4(R8, (function() {
	var e = u4(V8), t = e !== String(V8);
	if (!t && P2 === 66) return !0;
	if (P2 >= 51 && /native code/.test(e)) return !1;
	var n = new V8((function(e) {
		e(1);
	})), r = function(e) {
		e((function() {}), (function() {}));
	};
	return (n.constructor = {})[Gpe] = r, !(J8 = n.then((function() {})) instanceof r) || !t && Wpe && !q8;
})), Xpe = Y8 || !y6((function(e) {
	V8.all(e).catch((function() {}));
})), X8 = function(e) {
	var t;
	return !(!E2(e) || !T2(t = e.then)) && t;
}, Z8 = function(e, t) {
	if (!e.notified) {
		e.notified = !0;
		var n = e.reactions;
		P8((function() {
			for (var r = e.value, i = e.state == 1, a = 0; n.length > a;) {
				var o, s, c, l = n[a++], u = i ? l.ok : l.fail, d = l.resolve, f = l.reject, p = l.domain;
				try {
					u ? (i || (e.rejection === 2 && Qpe(e), e.rejection = 1), !0 === u ? o = r : (p && p.enter(), o = u(r), p && (p.exit(), c = !0)), o === l.promise ? f(U8("Promise-chain cycle")) : (s = X8(o)) ? f2(s, o, d, f) : d(o)) : f(r);
				} catch (e) {
					p && !c && p.exit(), f(e);
				}
			}
			e.reactions = [], e.notified = !1, t && !e.rejection && Zpe(e);
		}));
	}
}, Q8 = function(e, t, n) {
	var r, i;
	Ype ? ((r = W8.createEvent("Event")).promise = t, r.reason = n, r.initEvent(e, !1, !0), $.dispatchEvent(r)) : r = {
		promise: t,
		reason: n
	}, !q8 && (i = $["on" + e]) ? i(r) : e === "unhandledrejection" && function(e, t) {
		var n = $.console;
		n && n.error && (arguments.length == 1 ? n.error(e) : n.error(e, t));
	}("Unhandled promise rejection", n);
}, Zpe = function(e) {
	f2(L8, $, (function() {
		var t, n = e.facade, r = e.value;
		if ($8(e) && (t = I8((function() {
			r8 ? G8.emit("unhandledRejection", r, n) : Q8("unhandledrejection", n, r);
		})), e.rejection = r8 || $8(e) ? 2 : 1, t.error)) throw t.value;
	}));
}, $8 = function(e) {
	return e.rejection !== 1 && !e.parent;
}, Qpe = function(e) {
	f2(L8, $, (function() {
		var t = e.facade;
		r8 ? G8.emit("rejectionHandled", t) : Q8("rejectionhandled", t, e.value);
	}));
}, e5 = function(e, t, n) {
	return function(r) {
		e(t, r, n);
	};
}, t5 = function(e, t, n) {
	e.done || (e.done = !0, n && (e = n), e.value = t, e.state = 2, Z8(e, !0));
}, n5 = function(e, t, n) {
	if (!e.done) {
		e.done = !0, n && (e = n);
		try {
			if (e.facade === t) throw U8("Promise can't be resolved itself");
			var r = X8(t);
			r ? P8((function() {
				var n = { done: !1 };
				try {
					f2(r, t, e5(n5, n, e), e5(t5, n, e));
				} catch (t) {
					t5(n, t, e);
				}
			})) : (e.value = t, e.state = 1, Z8(e, !1));
		} catch (t) {
			t5({ done: !1 }, t, e);
		}
	}
};
if (Y8 && (H8 = (V8 = function(e) {
	h6(this, H8), z2(e), f2(A8, this);
	var t = z8(this);
	try {
		e(e5(n5, t), e5(t5, t));
	} catch (e) {
		t5(t, e);
	}
}).prototype, (A8 = function(e) {
	Kpe(this, {
		type: R8,
		done: !1,
		notified: !1,
		parent: !1,
		reactions: [],
		rejection: !1,
		state: 0,
		value: void 0
	});
}).prototype = t6(H8, {
	then: function(e, t) {
		var n = qpe(this), r = n.reactions, i = K8(x3(this, V8));
		return i.ok = !T2(e) || e, i.fail = T2(t) && t, i.domain = r8 ? G8.domain : void 0, n.parent = !0, r[r.length] = i, n.state != 0 && Z8(n, !1), i.promise;
	},
	catch: function(e) {
		return this.then(void 0, e);
	}
}), j8 = function() {
	var e = new A8(), t = z8(e);
	this.promise = e, this.resolve = e5(n5, t), this.reject = e5(t5, t);
}, F8.f = K8 = function(e) {
	return e === V8 || e === M8 ? new j8(e) : Jpe(e);
}, T2(e8) && B8 !== Object.prototype)) {
	N8 = B8.then, J8 || (w4(B8, "then", (function(e, t) {
		var n = this;
		return new V8((function(e, t) {
			f2(N8, n, e, t);
		})).then(e, t);
	}), { unsafe: !0 }), w4(B8, "catch", H8.catch, { unsafe: !0 }));
	try {
		delete B8.constructor;
	} catch {}
	Y3 && Y3(B8, H8);
}
F4({
	global: !0,
	wrap: !0,
	forced: Y8
}, { Promise: V8 }), J3(V8, R8, !1), function(e) {
	var t = D2("Promise"), n = a4.f;
	u2 && t && !t[t8] && n(t, t8, {
		configurable: !0,
		get: function() {
			return this;
		}
	});
}(), M8 = D2(R8), F4({
	target: R8,
	stat: !0,
	forced: Y8
}, { reject: function(e) {
	var t = K8(this);
	return f2(t.reject, void 0, e), t.promise;
} }), F4({
	target: R8,
	stat: !0,
	forced: Y8
}, { resolve: function(e) {
	return function(e, t) {
		if (r4(e), E2(t) && t.constructor === e) return t;
		var n = F8.f(e);
		return (0, n.resolve)(t), n.promise;
	}(this, e);
} }), F4({
	target: R8,
	stat: !0,
	forced: Xpe
}, {
	all: function(e) {
		var t = this, n = K8(t), r = n.resolve, i = n.reject, a = I8((function() {
			var n = z2(t.resolve), a = [], o = 0, s = 1;
			m6(e, (function(e) {
				var c = o++, l = !1;
				s++, f2(n, t, e).then((function(e) {
					l || (l = !0, a[c] = e, --s || r(a));
				}), i);
			})), --s || r(a);
		}));
		return a.error && i(a.value), n.promise;
	},
	race: function(e) {
		var t = this, n = K8(t), r = n.reject, i = I8((function() {
			var i = z2(t.resolve);
			m6(e, (function(e) {
				f2(i, t, e).then(n.resolve, r);
			}));
		}));
		return i.error && r(i.value), n.promise;
	}
});
var $pe = C4.PROPER, r5 = RegExp.prototype, i5 = r5.toString, eme = y2(X4), tme = l2((function() {
	return i5.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), nme = $pe && i5.name != "toString";
(tme || nme) && w4(RegExp.prototype, "toString", (function() {
	var e = r4(this), t = Y4(e.source), n = e.flags;
	return "/" + t + "/" + Y4(n === void 0 && O2(r5, e) && !("flags" in r5) ? eme(e) : n);
}), { unsafe: !0 });
var rme = C4.EXISTS, ime = a4.f, a5 = Function.prototype, ame = y2(a5.toString), o5 = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, ome = y2(o5.exec);
u2 && !rme && ime(a5, "name", {
	configurable: !0,
	get: function() {
		try {
			return ome(o5, ame(this))[1];
		} catch {
			return "";
		}
	}
});
var s5 = /* @__PURE__ */ new WeakMap();
function c5(e) {
	return e.getMenuConfig("uploadImage");
}
function sme(e, t) {
	return M3(this, void 0, void 0, (function() {
		return N3(this, (function(n) {
			return [2, new Promise((function(n) {
				var r = new FileReader();
				r.readAsDataURL(t), r.onload = function() {
					var i = r.result;
					if (i) {
						var a = i.toString(), o = a.indexOf("data:image") === 0 ? "" : a;
						RN(e, a, t.name, o), n("ok");
					}
				};
			}))];
		}));
	}));
}
function cme(e, t) {
	return M3(this, void 0, void 0, (function() {
		var n, r, i, a;
		return N3(this, (function(o) {
			switch (o.label) {
				case 0: return n = function(e) {
					var t = s5.get(e);
					if (t != null) return t;
					var n = c5(e), r = n.onSuccess, i = n.onProgress, a = n.onFailed, o = n.customInsert, s = n.onError;
					return t = rE(j3(j3({}, n), {
						onProgress: function(t) {
							e.showProgressBar(t), i && i(t);
						},
						onSuccess: function(t, n) {
							if (o) return o(n, (function(t, n, r) {
								return RN(e, t, n, r);
							})), void r(t, n);
							var i = n.errno, s = i === void 0 ? 1 : i, c = n.data, l = c === void 0 ? {} : c;
							if (s === 0) {
								if (Array.isArray(l)) l.forEach((function(t) {
									var n = t.url, r = n === void 0 ? "" : n, i = t.alt, a = i === void 0 ? "" : i, o = t.href;
									RN(e, r, a, o === void 0 ? "" : o);
								}));
								else {
									var u = l.url, d = u === void 0 ? "" : u, f = l.alt, p = f === void 0 ? "" : f, m = l.href;
									RN(e, d, p, m === void 0 ? "" : m);
								}
								r(t, n);
							} else a(t, n);
						},
						onError: function(e, t, n) {
							s(e, t, n);
						}
					})), s5.set(e, t), t;
				}(e), r = t.name, i = t.type, a = t.size, n.addFile({
					name: r,
					type: i,
					size: a,
					data: t
				}), [4, n.upload()];
				case 1: return o.sent(), [2];
			}
		}));
	}));
}
function l5(e, t) {
	var n, r;
	return M3(this, void 0, void 0, (function() {
		var i, a, o, s, c, l, u, d, f;
		return N3(this, (function(p) {
			switch (p.label) {
				case 0:
					if (t == null) return [2];
					i = Array.prototype.slice.call(t), a = c5(e), o = a.customUpload, s = a.base64LimitSize, p.label = 1;
				case 1: p.trys.push([
					1,
					11,
					12,
					17
				]), c = tpe(i), p.label = 2;
				case 2: return [4, c.next()];
				case 3: return (l = p.sent()).done ? [3, 10] : (u = l.value, d = u.size, s && d <= s ? [4, sme(e, u)] : [3, 5]);
				case 4: return p.sent(), [3, 9];
				case 5: return o ? [4, o(u, (function(t, n, r) {
					return RN(e, t, n, r);
				}))] : [3, 7];
				case 6: return p.sent(), [3, 9];
				case 7: return [4, cme(e, u)];
				case 8: p.sent(), p.label = 9;
				case 9: return [3, 2];
				case 10: return [3, 17];
				case 11: return f = p.sent(), n = { error: f }, [3, 17];
				case 12: return p.trys.push([
					12,
					,
					15,
					16
				]), l && !l.done && (r = c.return) ? [4, r.call(c)] : [3, 14];
				case 13: p.sent(), p.label = 14;
				case 14: return [3, 16];
				case 15:
					if (n) throw n.error;
					return [7];
				case 16: return [7];
				case 17: return [2];
			}
		}));
	}));
}
var lme = y2([].join), ume = S2 != Object, dme = K6("join", ",");
F4({
	target: "Array",
	proto: !0,
	forced: ume || !dme
}, { join: function(e) {
	return lme(w2(this), e === void 0 ? "," : e);
} }), gd && (V.fn.append = gd), rd && (V.fn.on = rd), Sd && (V.fn.remove = Sd), nd && (V.fn.val = nd), Ed && (V.fn.click = Ed), cd && (V.fn.hide = cd);
var fme = function() {
	function e() {
		this.title = q("uploadImgModule.uploadImage"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z\"></path></svg>", this.tag = "button";
	}
	return e.prototype.getValue = function(e) {
		return "";
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.isDisabled = function(e) {
		return zN(e);
	}, e.prototype.getMenuConfig = function(e) {
		return e.getMenuConfig("uploadImage");
	}, e.prototype.exec = function(e, t) {
		var n = this.getMenuConfig(e), r = n.allowedFileTypes, i = r === void 0 ? [] : r, a = n.customBrowseAndUpload;
		if (a) a((function(t, n, r) {
			return RN(e, t, n, r);
		}));
		else {
			var o = "";
			i.length > 0 && (o = "accept=\"" + i.join(", ") + "\"");
			var s = V("body"), c = V("<input type=\"file\" " + o + " multiple/>");
			c.hide(), s.append(c), c.click(), c.on("change", (function() {
				var t = c[0].files;
				l5(e, t);
			}));
		}
	}, e;
}(), pme = {
	menus: [{
		key: "uploadImage",
		factory: function() {
			return new fme();
		},
		config: {
			server: "",
			fieldName: "wangeditor-uploaded-image",
			maxFileSize: 2097152,
			maxNumberOfFiles: 100,
			allowedFileTypes: ["image/*"],
			meta: {},
			metaWithUrl: !1,
			withCredentials: !1,
			timeout: 1e4,
			onBeforeUpload: function(e) {
				return e;
			},
			onProgress: function(e) {},
			onSuccess: function(e, t) {},
			onFailed: function(e, t) {
				console.error("'" + e.name + "' upload failed", t);
			},
			onError: function(e, t, n) {
				console.error("'" + e.name + "' upload error", n);
			},
			base64LimitSize: 0
		}
	}],
	editorPlugin: function(e) {
		var t = e.insertData, n = e;
		return n.insertData = function(r) {
			if (zN(n)) t(r);
			else if (r.getData("text/plain")) t(r);
			else {
				var i = r.files;
				i.length <= 0 ? t(r) : Array.prototype.slice.call(i).some((function(e) {
					return function(e, t) {
						var n = typeof Symbol == "function" && e[Symbol.iterator];
						if (!n) return e;
						var r, i, a = n.call(e), o = [];
						try {
							for (; (t === void 0 || t-- > 0) && !(r = a.next()).done;) o.push(r.value);
						} catch (e) {
							i = { error: e };
						} finally {
							try {
								r && !r.done && (n = a.return) && n.call(a);
							} finally {
								if (i) throw i.error;
							}
						}
						return o;
					}(e.type.split("/"), 1)[0] === "image";
				})) ? l5(e, i) : t(r);
			}
		}, n;
	}
};
HE("en", { highLightModule: { selectLang: "Language" } }), HE("zh-CN", { highLightModule: { selectLang: "选择语言" } });
var u5 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function d5(e) {
	var t = { exports: {} };
	return e(t, t.exports), t.exports;
}
var f5, p5, m5 = function(e) {
	return e && e.Math == Math && e;
}, h5 = m5(typeof globalThis == "object" && globalThis) || m5(typeof window == "object" && window) || m5(typeof self == "object" && self) || m5(typeof u5 == "object" && u5) || function() {
	return this;
}() || Function("return this")(), mme = Object.defineProperty, g5 = function(e, t) {
	try {
		mme(h5, e, {
			value: t,
			configurable: !0,
			writable: !0
		});
	} catch {
		h5[e] = t;
	}
	return t;
}, _5 = h5["__core-js_shared__"] || g5("__core-js_shared__", {}), v5 = d5((function(e) {
	(e.exports = function(e, t) {
		return _5[e] || (_5[e] = t === void 0 ? {} : t);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), y5 = Function.prototype, b5 = y5.bind, x5 = y5.call, hme = b5 && b5.bind(x5), S5 = b5 ? function(e) {
	return e && hme(x5, e);
} : function(e) {
	return e && function() {
		return x5.apply(e, arguments);
	};
}, gme = h5.TypeError, C5 = function(e) {
	if (e == null) throw gme("Can't call method on " + e);
	return e;
}, _me = h5.Object, w5 = function(e) {
	return _me(C5(e));
}, vme = S5({}.hasOwnProperty), T5 = Object.hasOwn || function(e, t) {
	return vme(w5(e), t);
}, yme = 0, bme = Math.random(), xme = S5(1 .toString), E5 = function(e) {
	return "Symbol(" + (e === void 0 ? "" : e) + ")_" + xme(++yme + bme, 36);
}, D5 = function(e) {
	return typeof e == "function";
}, Sme = function(e) {
	return D5(e) ? e : void 0;
}, O5 = function(e, t) {
	return arguments.length < 2 ? Sme(h5[e]) : h5[e] && h5[e][t];
}, k5 = O5("navigator", "userAgent") || "", A5 = h5.process, j5 = h5.Deno, M5 = A5 && A5.versions || j5 && j5.version, N5 = M5 && M5.v8;
N5 && (p5 = (f5 = N5.split("."))[0] > 0 && f5[0] < 4 ? 1 : +(f5[0] + f5[1])), !p5 && k5 && (!(f5 = k5.match(/Edge\/(\d+)/)) || f5[1] >= 74) && (f5 = k5.match(/Chrome\/(\d+)/)) && (p5 = +f5[1]);
var P5 = p5, F5 = function(e) {
	try {
		return !!e();
	} catch {
		return !0;
	}
}, I5 = !!Object.getOwnPropertySymbols && !F5((function() {
	var e = Symbol();
	return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && P5 && P5 < 41;
})), L5 = I5 && !Symbol.sham && typeof Symbol.iterator == "symbol", R5 = v5("wks"), z5 = h5.Symbol, B5 = z5 && z5.for, Cme = L5 ? z5 : z5 && z5.withoutSetter || E5, V5 = function(e) {
	if (!T5(R5, e) || !I5 && typeof R5[e] != "string") {
		var t = "Symbol." + e;
		I5 && T5(z5, e) ? R5[e] = z5[e] : R5[e] = L5 && B5 ? B5(t) : Cme(t);
	}
	return R5[e];
}, H5 = {};
H5[V5("toStringTag")] = "z";
var U5 = String(H5) === "[object z]", W5 = !F5((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), G5 = function(e) {
	return typeof e == "object" ? e !== null : D5(e);
}, K5 = h5.document, wme = G5(K5) && G5(K5.createElement), q5 = function(e) {
	return wme ? K5.createElement(e) : {};
}, J5 = !W5 && !F5((function() {
	return Object.defineProperty(q5("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), Tme = h5.String, Eme = h5.TypeError, Y5 = function(e) {
	if (G5(e)) return e;
	throw Eme(Tme(e) + " is not an object");
}, X5 = Function.prototype.call, Z5 = X5.bind ? X5.bind(X5) : function() {
	return X5.apply(X5, arguments);
}, Q5 = S5({}.isPrototypeOf), Dme = h5.Object, $5 = L5 ? function(e) {
	return typeof e == "symbol";
} : function(e) {
	var t = O5("Symbol");
	return D5(t) && Q5(t.prototype, Dme(e));
}, Ome = h5.String, e7 = function(e) {
	try {
		return Ome(e);
	} catch {
		return "Object";
	}
}, kme = h5.TypeError, t7 = function(e) {
	if (D5(e)) return e;
	throw kme(e7(e) + " is not a function");
}, n7 = function(e, t) {
	var n = e[t];
	return n == null ? void 0 : t7(n);
}, Ame = h5.TypeError, jme = h5.TypeError, Mme = V5("toPrimitive"), r7 = function(e) {
	var t = function(e, t) {
		if (!G5(e) || $5(e)) return e;
		var n, r = n7(e, Mme);
		if (r) {
			if (t === void 0 && (t = "default"), n = Z5(r, e, t), !G5(n) || $5(n)) return n;
			throw jme("Can't convert object to primitive value");
		}
		return t === void 0 && (t = "number"), function(e, t) {
			var n, r;
			if (t === "string" && D5(n = e.toString) && !G5(r = Z5(n, e)) || D5(n = e.valueOf) && !G5(r = Z5(n, e)) || t !== "string" && D5(n = e.toString) && !G5(r = Z5(n, e))) return r;
			throw Ame("Can't convert object to primitive value");
		}(e, t);
	}(e, "string");
	return $5(t) ? t : t + "";
}, Nme = h5.TypeError, i7 = Object.defineProperty, a7 = { f: W5 ? i7 : function(e, t, n) {
	if (Y5(e), t = r7(t), Y5(n), J5) try {
		return i7(e, t, n);
	} catch {}
	if ("get" in n || "set" in n) throw Nme("Accessors not supported");
	return "value" in n && (e[t] = n.value), e;
} }, o7 = function(e, t) {
	return {
		enumerable: !(1 & e),
		configurable: !(2 & e),
		writable: !(4 & e),
		value: t
	};
}, s7 = W5 ? function(e, t, n) {
	return a7.f(e, t, o7(1, n));
} : function(e, t, n) {
	return e[t] = n, e;
}, Pme = S5(Function.toString);
D5(_5.inspectSource) || (_5.inspectSource = function(e) {
	return Pme(e);
});
var c7, l7, u7, d7 = _5.inspectSource, f7 = h5.WeakMap, Fme = D5(f7) && /native code/.test(d7(f7)), p7 = v5("keys"), m7 = function(e) {
	return p7[e] || (p7[e] = E5(e));
}, h7 = {}, g7 = h5.TypeError, Ime = h5.WeakMap;
if (Fme || _5.state) {
	var _7 = _5.state ||= new Ime(), Lme = S5(_7.get), v7 = S5(_7.has), Rme = S5(_7.set);
	c7 = function(e, t) {
		if (v7(_7, e)) throw new g7("Object already initialized");
		return t.facade = e, Rme(_7, e, t), t;
	}, l7 = function(e) {
		return Lme(_7, e) || {};
	}, u7 = function(e) {
		return v7(_7, e);
	};
} else {
	var y7 = m7("state");
	h7[y7] = !0, c7 = function(e, t) {
		if (T5(e, y7)) throw new g7("Object already initialized");
		return t.facade = e, s7(e, y7, t), t;
	}, l7 = function(e) {
		return T5(e, y7) ? e[y7] : {};
	}, u7 = function(e) {
		return T5(e, y7);
	};
}
var b7 = {
	set: c7,
	get: l7,
	has: u7,
	enforce: function(e) {
		return u7(e) ? l7(e) : c7(e, {});
	},
	getterFor: function(e) {
		return function(t) {
			var n;
			if (!G5(t) || (n = l7(t)).type !== e) throw g7("Incompatible receiver, " + e + " required");
			return n;
		};
	}
}, x7 = Function.prototype, zme = W5 && Object.getOwnPropertyDescriptor, S7 = T5(x7, "name"), C7 = {
	EXISTS: S7,
	PROPER: S7 && function() {}.name === "something",
	CONFIGURABLE: S7 && (!W5 || W5 && zme(x7, "name").configurable)
}, w7 = d5((function(e) {
	var t = C7.CONFIGURABLE, n = b7.get, r = b7.enforce, i = String(String).split("String");
	(e.exports = function(e, n, a, o) {
		var s, c = !!o && !!o.unsafe, l = !!o && !!o.enumerable, u = !!o && !!o.noTargetGet, d = o && o.name !== void 0 ? o.name : n;
		D5(a) && (String(d).slice(0, 7) === "Symbol(" && (d = "[" + String(d).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!T5(a, "name") || t && a.name !== d) && s7(a, "name", d), (s = r(a)).source || (s.source = i.join(typeof d == "string" ? d : ""))), e === h5 ? l ? e[n] = a : g5(n, a) : (c ? !u && e[n] && (l = !0) : delete e[n], l ? e[n] = a : s7(e, n, a));
	})(Function.prototype, "toString", (function() {
		return D5(this) && n(this).source || d7(this);
	}));
})), Bme = S5({}.toString), Vme = S5("".slice), T7 = function(e) {
	return Vme(Bme(e), 8, -1);
}, Hme = V5("toStringTag"), Ume = h5.Object, Wme = T7(function() {
	return arguments;
}()) == "Arguments", E7 = U5 ? T7 : function(e) {
	var t, n, r;
	return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (n = function(e, t) {
		try {
			return e[t];
		} catch {}
	}(t = Ume(e), Hme)) == "string" ? n : Wme ? T7(t) : (r = T7(t)) == "Object" && D5(t.callee) ? "Arguments" : r;
}, Gme = U5 ? {}.toString : function() {
	return "[object " + E7(this) + "]";
};
U5 || w7(Object.prototype, "toString", Gme, { unsafe: !0 });
var D7, O7 = {
	CSSRuleList: 0,
	CSSStyleDeclaration: 0,
	CSSValueList: 0,
	ClientRectList: 0,
	DOMRectList: 0,
	DOMStringList: 0,
	DOMTokenList: 1,
	DataTransferItemList: 0,
	FileList: 0,
	HTMLAllCollection: 0,
	HTMLCollection: 0,
	HTMLFormElement: 0,
	HTMLSelectElement: 0,
	MediaList: 0,
	MimeTypeArray: 0,
	NamedNodeMap: 0,
	NodeList: 1,
	PaintRequestList: 0,
	Plugin: 0,
	PluginArray: 0,
	SVGLengthList: 0,
	SVGNumberList: 0,
	SVGPathSegList: 0,
	SVGPointList: 0,
	SVGStringList: 0,
	SVGTransformList: 0,
	SourceBufferList: 0,
	StyleSheetList: 0,
	TextTrackCueList: 0,
	TextTrackList: 0,
	TouchList: 0
}, k7 = q5("span").classList, A7 = k7 && k7.constructor && k7.constructor.prototype, Kme = A7 === Object.prototype ? void 0 : A7, j7 = S5(S5.bind), M7 = h5.Object, qme = S5("".split), N7 = F5((function() {
	return !M7("z").propertyIsEnumerable(0);
})) ? function(e) {
	return T7(e) == "String" ? qme(e, "") : M7(e);
} : M7, Jme = Math.ceil, Yme = Math.floor, P7 = function(e) {
	var t = +e;
	return t != t || t === 0 ? 0 : (t > 0 ? Yme : Jme)(t);
}, Xme = Math.min, F7 = function(e) {
	return e > 0 ? Xme(P7(e), 9007199254740991) : 0;
}, I7 = function(e) {
	return F7(e.length);
}, L7 = Array.isArray || function(e) {
	return T7(e) == "Array";
}, R7 = function() {}, Zme = [], z7 = O5("Reflect", "construct"), B7 = /^\s*(?:class|function)\b/, Qme = S5(B7.exec), $me = !B7.exec(R7), V7 = function(e) {
	if (!D5(e)) return !1;
	try {
		return z7(R7, Zme, e), !0;
	} catch {
		return !1;
	}
}, H7 = !z7 || F5((function() {
	var e;
	return V7(V7.call) || !V7(Object) || !V7((function() {
		e = !0;
	})) || e;
})) ? function(e) {
	if (!D5(e)) return !1;
	switch (E7(e)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return $me || !!Qme(B7, d7(e));
} : V7, ehe = V5("species"), U7 = h5.Array, the = function(e, t) {
	return new (function(e) {
		var t;
		return L7(e) && (t = e.constructor, (H7(t) && (t === U7 || L7(t.prototype)) || G5(t) && (t = t[ehe]) === null) && (t = void 0)), t === void 0 ? U7 : t;
	}(e))(t === 0 ? 0 : t);
}, W7 = S5([].push), G7 = function(e) {
	var t = e == 1, n = e == 2, r = e == 3, i = e == 4, a = e == 6, o = e == 7, s = e == 5 || a;
	return function(c, l, u, d) {
		for (var f, p, m = w5(c), h = N7(m), g = function(e, t) {
			return t7(e), t === void 0 ? e : j7 ? j7(e, t) : function() {
				return e.apply(t, arguments);
			};
		}(l, u), _ = I7(h), v = 0, y = d || the, b = t ? y(c, _) : n || o ? y(c, 0) : void 0; _ > v; v++) if ((s || v in h) && (p = g(f = h[v], v, m), e)) if (t) b[v] = p;
		else if (p) switch (e) {
			case 3: return !0;
			case 5: return f;
			case 6: return v;
			case 2: W7(b, f);
		}
		else switch (e) {
			case 4: return !1;
			case 7: W7(b, f);
		}
		return a ? -1 : r || i ? i : b;
	};
}, nhe = [
	G7(0),
	G7(1),
	G7(2),
	G7(3),
	G7(4),
	G7(5),
	G7(6),
	G7(7)
][0], K7 = (D7 = [].forEach) && F5((function() {
	D7.call(null, (function() {
		throw 1;
	}), 1);
})) ? [].forEach : function(e) {
	return nhe(this, e, arguments.length > 1 ? arguments[1] : void 0);
}, q7 = function(e) {
	if (e && e.forEach !== K7) try {
		s7(e, "forEach", K7);
	} catch {
		e.forEach = K7;
	}
};
for (var J7 in O7) O7[J7] && q7(h5[J7] && h5[J7].prototype);
q7(Kme);
var Y7 = {}.propertyIsEnumerable, X7 = Object.getOwnPropertyDescriptor, Z7 = { f: X7 && !Y7.call({ 1: 2 }, 1) ? function(e) {
	var t = X7(this, e);
	return !!t && t.enumerable;
} : Y7 }, Q7 = function(e) {
	return N7(C5(e));
}, $7 = Object.getOwnPropertyDescriptor, e9 = { f: W5 ? $7 : function(e, t) {
	if (e = Q7(e), t = r7(t), J5) try {
		return $7(e, t);
	} catch {}
	if (T5(e, t)) return o7(!Z5(Z7.f, e, t), e[t]);
} }, rhe = Math.max, ihe = Math.min, t9 = function(e, t) {
	var n = P7(e);
	return n < 0 ? rhe(n + t, 0) : ihe(n, t);
}, ahe = function(e) {
	return function(t, n, r) {
		var i, a = Q7(t), o = I7(a), s = t9(r, o);
		if (e && n != n) {
			for (; o > s;) if ((i = a[s++]) != i) return !0;
		} else for (; o > s; s++) if ((e || s in a) && a[s] === n) return e || s || 0;
		return !e && -1;
	};
}(!1), n9 = S5([].push), r9 = function(e, t) {
	var n, r = Q7(e), i = 0, a = [];
	for (n in r) !T5(h7, n) && T5(r, n) && n9(a, n);
	for (; t.length > i;) T5(r, n = t[i++]) && (~ahe(a, n) || n9(a, n));
	return a;
}, i9 = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], ohe = i9.concat("length", "prototype"), she = { f: Object.getOwnPropertyNames || function(e) {
	return r9(e, ohe);
} }, a9 = { f: Object.getOwnPropertySymbols }, che = S5([].concat), lhe = O5("Reflect", "ownKeys") || function(e) {
	var t = she.f(Y5(e)), n = a9.f;
	return n ? che(t, n(e)) : t;
}, uhe = function(e, t) {
	for (var n = lhe(t), r = a7.f, i = e9.f, a = 0; a < n.length; a++) {
		var o = n[a];
		T5(e, o) || r(e, o, i(t, o));
	}
}, dhe = /#|\.prototype\./, o9 = function(e, t) {
	var n = phe[fhe(e)];
	return n == hhe || n != mhe && (D5(t) ? F5(t) : !!t);
}, fhe = o9.normalize = function(e) {
	return String(e).replace(dhe, ".").toLowerCase();
}, phe = o9.data = {}, mhe = o9.NATIVE = "N", hhe = o9.POLYFILL = "P", ghe = o9, _he = e9.f, s9 = function(e, t) {
	var n, r, i, a, o, s = e.target, c = e.global, l = e.stat;
	if (n = c ? h5 : l ? h5[s] || g5(s, {}) : (h5[s] || {}).prototype) for (r in t) {
		if (a = t[r], i = e.noTargetGet ? (o = _he(n, r)) && o.value : n[r], !ghe(c ? r : s + (l ? "." : "#") + r, e.forced) && i !== void 0) {
			if (typeof a == typeof i) continue;
			uhe(a, i);
		}
		(e.sham || i && i.sham) && s7(a, "sham", !0), w7(n, r, a, e);
	}
}, c9 = Object.keys || function(e) {
	return r9(e, i9);
}, l9 = Object.assign, u9 = Object.defineProperty, vhe = S5([].concat), d9 = !l9 || F5((function() {
	if (W5 && l9({ b: 1 }, l9(u9({}, "a", {
		enumerable: !0,
		get: function() {
			u9(this, "b", {
				value: 3,
				enumerable: !1
			});
		}
	}), { b: 2 })).b !== 1) return !0;
	var e = {}, t = {}, n = Symbol(), r = "abcdefghijklmnopqrst";
	return e[n] = 7, r.split("").forEach((function(e) {
		t[e] = e;
	})), l9({}, e)[n] != 7 || c9(l9({}, t)).join("") != r;
})) ? function(e, t) {
	for (var n = w5(e), r = arguments.length, i = 1, a = a9.f, o = Z7.f; r > i;) for (var s, c = N7(arguments[i++]), l = a ? vhe(c9(c), a(c)) : c9(c), u = l.length, d = 0; u > d;) s = l[d++], W5 && !Z5(o, c, s) || (n[s] = c[s]);
	return n;
} : l9;
s9({
	target: "Object",
	stat: !0,
	forced: Object.assign !== d9
}, { assign: d9 });
var f9 = d5((function(e) {
	var t = function(e) {
		var t = /\blang(?:uage)?-([\w-]+)\b/i, n = 0, r = {}, i = {
			manual: e.Prism && e.Prism.manual,
			disableWorkerMessageHandler: e.Prism && e.Prism.disableWorkerMessageHandler,
			util: {
				encode: function e(t) {
					return t instanceof a ? new a(t.type, e(t.content), t.alias) : Array.isArray(t) ? t.map(e) : t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
				},
				type: function(e) {
					return Object.prototype.toString.call(e).slice(8, -1);
				},
				objId: function(e) {
					return e.__id || Object.defineProperty(e, "__id", { value: ++n }), e.__id;
				},
				clone: function e(t, n) {
					var r, a;
					switch (n ||= {}, i.util.type(t)) {
						case "Object":
							if (a = i.util.objId(t), n[a]) return n[a];
							for (var o in r = {}, n[a] = r, t) t.hasOwnProperty(o) && (r[o] = e(t[o], n));
							return r;
						case "Array": return a = i.util.objId(t), n[a] ? n[a] : (r = [], n[a] = r, t.forEach((function(t, i) {
							r[i] = e(t, n);
						})), r);
						default: return t;
					}
				},
				getLanguage: function(e) {
					for (; e && !t.test(e.className);) e = e.parentElement;
					return e ? (e.className.match(t) || [, "none"])[1].toLowerCase() : "none";
				},
				currentScript: function() {
					if (typeof document > "u") return null;
					if ("currentScript" in document) return document.currentScript;
					try {
						throw Error();
					} catch (r) {
						var e = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
						if (e) {
							var t = document.getElementsByTagName("script");
							for (var n in t) if (t[n].src == e) return t[n];
						}
						return null;
					}
				},
				isActive: function(e, t, n) {
					for (var r = "no-" + t; e;) {
						var i = e.classList;
						if (i.contains(t)) return !0;
						if (i.contains(r)) return !1;
						e = e.parentElement;
					}
					return !!n;
				}
			},
			languages: {
				plain: r,
				plaintext: r,
				text: r,
				txt: r,
				extend: function(e, t) {
					var n = i.util.clone(i.languages[e]);
					for (var r in t) n[r] = t[r];
					return n;
				},
				insertBefore: function(e, t, n, r) {
					var a = (r ||= i.languages)[e], o = {};
					for (var s in a) if (a.hasOwnProperty(s)) {
						if (s == t) for (var c in n) n.hasOwnProperty(c) && (o[c] = n[c]);
						n.hasOwnProperty(s) || (o[s] = a[s]);
					}
					var l = r[e];
					return r[e] = o, i.languages.DFS(i.languages, (function(t, n) {
						n === l && t != e && (this[t] = o);
					})), o;
				},
				DFS: function e(t, n, r, a) {
					a ||= {};
					var o = i.util.objId;
					for (var s in t) if (t.hasOwnProperty(s)) {
						n.call(t, s, t[s], r || s);
						var c = t[s], l = i.util.type(c);
						l !== "Object" || a[o(c)] ? l !== "Array" || a[o(c)] || (a[o(c)] = !0, e(c, n, s, a)) : (a[o(c)] = !0, e(c, n, null, a));
					}
				}
			},
			plugins: {},
			highlightAll: function(e, t) {
				i.highlightAllUnder(document, e, t);
			},
			highlightAllUnder: function(e, t, n) {
				var r = {
					callback: n,
					container: e,
					selector: "code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code"
				};
				i.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), i.hooks.run("before-all-elements-highlight", r);
				for (var a, o = 0; a = r.elements[o++];) i.highlightElement(a, !0 === t, r.callback);
			},
			highlightElement: function(n, r, a) {
				var o = i.util.getLanguage(n), s = i.languages[o];
				n.className = n.className.replace(t, "").replace(/\s+/g, " ") + " language-" + o;
				var c = n.parentElement;
				c && c.nodeName.toLowerCase() === "pre" && (c.className = c.className.replace(t, "").replace(/\s+/g, " ") + " language-" + o);
				var l = {
					element: n,
					language: o,
					grammar: s,
					code: n.textContent
				};
				function u(e) {
					l.highlightedCode = e, i.hooks.run("before-insert", l), l.element.innerHTML = l.highlightedCode, i.hooks.run("after-highlight", l), i.hooks.run("complete", l), a && a.call(l.element);
				}
				if (i.hooks.run("before-sanity-check", l), (c = l.element.parentElement) && c.nodeName.toLowerCase() === "pre" && !c.hasAttribute("tabindex") && c.setAttribute("tabindex", "0"), !l.code) return i.hooks.run("complete", l), void (a && a.call(l.element));
				if (i.hooks.run("before-highlight", l), l.grammar) if (r && e.Worker) {
					var d = new Worker(i.filename);
					d.onmessage = function(e) {
						u(e.data);
					}, d.postMessage(JSON.stringify({
						language: l.language,
						code: l.code,
						immediateClose: !0
					}));
				} else u(i.highlight(l.code, l.grammar, l.language));
				else u(i.util.encode(l.code));
			},
			highlight: function(e, t, n) {
				var r = {
					code: e,
					grammar: t,
					language: n
				};
				return i.hooks.run("before-tokenize", r), r.tokens = i.tokenize(r.code, r.grammar), i.hooks.run("after-tokenize", r), a.stringify(i.util.encode(r.tokens), r.language);
			},
			tokenize: function(e, t) {
				var n = t.rest;
				if (n) {
					for (var r in n) t[r] = n[r];
					delete t.rest;
				}
				var i = new c();
				return l(i, i.head, e), s(e, i, t, i.head, 0), function(e) {
					for (var t = [], n = e.head.next; n !== e.tail;) t.push(n.value), n = n.next;
					return t;
				}(i);
			},
			hooks: {
				all: {},
				add: function(e, t) {
					var n = i.hooks.all;
					n[e] = n[e] || [], n[e].push(t);
				},
				run: function(e, t) {
					var n = i.hooks.all[e];
					if (n && n.length) for (var r, a = 0; r = n[a++];) r(t);
				}
			},
			Token: a
		};
		function a(e, t, n, r) {
			this.type = e, this.content = t, this.alias = n, this.length = 0 | (r || "").length;
		}
		function o(e, t, n, r) {
			e.lastIndex = t;
			var i = e.exec(n);
			if (i && r && i[1]) {
				var a = i[1].length;
				i.index += a, i[0] = i[0].slice(a);
			}
			return i;
		}
		function s(e, t, n, r, c, d) {
			for (var f in n) if (n.hasOwnProperty(f) && n[f]) {
				var p = n[f];
				p = Array.isArray(p) ? p : [p];
				for (var m = 0; m < p.length; ++m) {
					if (d && d.cause == f + "," + m) return;
					var h = p[m], g = h.inside, _ = !!h.lookbehind, v = !!h.greedy, y = h.alias;
					if (v && !h.pattern.global) {
						var b = h.pattern.toString().match(/[imsuy]*$/)[0];
						h.pattern = RegExp(h.pattern.source, b + "g");
					}
					for (var x = h.pattern || h, S = r.next, C = c; S !== t.tail && !(d && C >= d.reach); C += S.value.length, S = S.next) {
						var w = S.value;
						if (t.length > e.length) return;
						if (!(w instanceof a)) {
							var T, E = 1;
							if (v) {
								if (!(T = o(x, C, e, _))) break;
								var D = T.index, O = T.index + T[0].length, ee = C;
								for (ee += S.value.length; D >= ee;) ee += (S = S.next).value.length;
								if (C = ee -= S.value.length, S.value instanceof a) continue;
								for (var te = S; te !== t.tail && (ee < O || typeof te.value == "string"); te = te.next) E++, ee += te.value.length;
								E--, w = e.slice(C, ee), T.index -= C;
							} else if (!(T = o(x, 0, w, _))) continue;
							D = T.index;
							var ne = T[0], re = w.slice(0, D), k = w.slice(D + ne.length), ie = C + w.length;
							d && ie > d.reach && (d.reach = ie);
							var A = S.prev;
							if (re && (A = l(t, A, re), C += re.length), u(t, A, E), S = l(t, A, new a(f, g ? i.tokenize(ne, g) : ne, y, ne)), k && l(t, S, k), E > 1) {
								var ae = {
									cause: f + "," + m,
									reach: ie
								};
								s(e, t, n, S.prev, C, ae), d && ae.reach > d.reach && (d.reach = ae.reach);
							}
						}
					}
				}
			}
		}
		function c() {
			var e = {
				value: null,
				prev: null,
				next: null
			}, t = {
				value: null,
				prev: e,
				next: null
			};
			e.next = t, this.head = e, this.tail = t, this.length = 0;
		}
		function l(e, t, n) {
			var r = t.next, i = {
				value: n,
				prev: t,
				next: r
			};
			return t.next = i, r.prev = i, e.length++, i;
		}
		function u(e, t, n) {
			for (var r = t.next, i = 0; i < n && r !== e.tail; i++) r = r.next;
			t.next = r, r.prev = t, e.length -= i;
		}
		if (e.Prism = i, a.stringify = function e(t, n) {
			if (typeof t == "string") return t;
			if (Array.isArray(t)) {
				var r = "";
				return t.forEach((function(t) {
					r += e(t, n);
				})), r;
			}
			var a = {
				type: t.type,
				content: e(t.content, n),
				tag: "span",
				classes: ["token", t.type],
				attributes: {},
				language: n
			}, o = t.alias;
			o && (Array.isArray(o) ? Array.prototype.push.apply(a.classes, o) : a.classes.push(o)), i.hooks.run("wrap", a);
			var s = "";
			for (var c in a.attributes) s += " " + c + "=\"" + (a.attributes[c] || "").replace(/"/g, "&quot;") + "\"";
			return "<" + a.tag + " class=\"" + a.classes.join(" ") + "\"" + s + ">" + a.content + "</" + a.tag + ">";
		}, !e.document) return e.addEventListener && (i.disableWorkerMessageHandler || e.addEventListener("message", (function(t) {
			var n = JSON.parse(t.data), r = n.language, a = n.code, o = n.immediateClose;
			e.postMessage(i.highlight(a, i.languages[r], r)), o && e.close();
		}), !1)), i;
		var d = i.util.currentScript();
		function f() {
			i.manual || i.highlightAll();
		}
		if (d && (i.filename = d.src, d.hasAttribute("data-manual") && (i.manual = !0)), !i.manual) {
			var p = document.readyState;
			p === "loading" || p === "interactive" && d && d.defer ? document.addEventListener("DOMContentLoaded", f) : window.requestAnimationFrame ? window.requestAnimationFrame(f) : window.setTimeout(f, 16);
		}
		return i;
	}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
	e.exports &&= t, u5 !== void 0 && (u5.Prism = t), t.languages.markup = {
		comment: {
			pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
			greedy: !0
		},
		prolog: {
			pattern: /<\?[\s\S]+?\?>/,
			greedy: !0
		},
		doctype: {
			pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
			greedy: !0,
			inside: {
				"internal-subset": {
					pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
					lookbehind: !0,
					greedy: !0,
					inside: null
				},
				string: {
					pattern: /"[^"]*"|'[^']*'/,
					greedy: !0
				},
				punctuation: /^<!|>$|[[\]]/,
				"doctype-tag": /^DOCTYPE/i,
				name: /[^\s<>'"]+/
			}
		},
		cdata: {
			pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
			greedy: !0
		},
		tag: {
			pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
			greedy: !0,
			inside: {
				tag: {
					pattern: /^<\/?[^\s>\/]+/,
					inside: {
						punctuation: /^<\/?/,
						namespace: /^[^\s>\/:]+:/
					}
				},
				"special-attr": [],
				"attr-value": {
					pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
					inside: { punctuation: [{
						pattern: /^=/,
						alias: "attr-equals"
					}, /"|'/] }
				},
				punctuation: /\/?>/,
				"attr-name": {
					pattern: /[^\s>\/]+/,
					inside: { namespace: /^[^\s>\/:]+:/ }
				}
			}
		},
		entity: [{
			pattern: /&[\da-z]{1,8};/i,
			alias: "named-entity"
		}, /&#x?[\da-f]{1,8};/i]
	}, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", (function(e) {
		e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
	})), Object.defineProperty(t.languages.markup.tag, "addInlined", { value: function(e, n) {
		var r = {};
		r["language-" + n] = {
			pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
			lookbehind: !0,
			inside: t.languages[n]
		}, r.cdata = /^<!\[CDATA\[|\]\]>$/i;
		var i = { "included-cdata": {
			pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
			inside: r
		} };
		i["language-" + n] = {
			pattern: /[\s\S]+/,
			inside: t.languages[n]
		};
		var a = {};
		a[e] = {
			pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, (function() {
				return e;
			})), "i"),
			lookbehind: !0,
			greedy: !0,
			inside: i
		}, t.languages.insertBefore("markup", "cdata", a);
	} }), Object.defineProperty(t.languages.markup.tag, "addAttribute", { value: function(e, n) {
		t.languages.markup.tag.inside["special-attr"].push({
			pattern: RegExp("(^|[\"'\\s])(?:" + e + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"),
			lookbehind: !0,
			inside: {
				"attr-name": /^[^\s=]+/,
				"attr-value": {
					pattern: /=[\s\S]+/,
					inside: {
						value: {
							pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
							lookbehind: !0,
							alias: [n, "language-" + n],
							inside: t.languages[n]
						},
						punctuation: [{
							pattern: /^=/,
							alias: "attr-equals"
						}, /"|'/]
					}
				}
			}
		});
	} }), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(e) {
		var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
		e.languages.css = {
			comment: /\/\*[\s\S]*?\*\//,
			atrule: {
				pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
				inside: {
					rule: /^@[\w-]+/,
					"selector-function-argument": {
						pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
						lookbehind: !0,
						alias: "selector"
					},
					keyword: {
						pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
						lookbehind: !0
					}
				}
			},
			url: {
				pattern: RegExp("\\burl\\((?:" + t.source + "|(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*)\\)", "i"),
				greedy: !0,
				inside: {
					function: /^url/i,
					punctuation: /^\(|\)$/,
					string: {
						pattern: RegExp("^" + t.source + "$"),
						alias: "url"
					}
				}
			},
			selector: {
				pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + t.source + ")*(?=\\s*\\{)"),
				lookbehind: !0
			},
			string: {
				pattern: t,
				greedy: !0
			},
			property: {
				pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
				lookbehind: !0
			},
			important: /!important\b/i,
			function: {
				pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
				lookbehind: !0
			},
			punctuation: /[(){};:,]/
		}, e.languages.css.atrule.inside.rest = e.languages.css;
		var n = e.languages.markup;
		n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
	}(t), t.languages.clike = {
		comment: [{
			pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
			lookbehind: !0,
			greedy: !0
		}, {
			pattern: /(^|[^\\:])\/\/.*/,
			lookbehind: !0,
			greedy: !0
		}],
		string: {
			pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
			greedy: !0
		},
		"class-name": {
			pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,
			lookbehind: !0,
			inside: { punctuation: /[.\\]/ }
		},
		keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
		boolean: /\b(?:true|false)\b/,
		function: /\b\w+(?=\()/,
		number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
		operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
		punctuation: /[{}[\];(),.:]/
	}, t.languages.javascript = t.languages.extend("clike", {
		"class-name": [t.languages.clike["class-name"], {
			pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,
			lookbehind: !0
		}],
		keyword: [{
			pattern: /((?:^|\})\s*)catch\b/,
			lookbehind: !0
		}, {
			pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
			lookbehind: !0
		}],
		function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
		number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,
		operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
	}), t.languages.javascript["class-name"][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/, t.languages.insertBefore("javascript", "keyword", {
		regex: {
			pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
			lookbehind: !0,
			greedy: !0,
			inside: {
				"regex-source": {
					pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
					lookbehind: !0,
					alias: "language-regex",
					inside: t.languages.regex
				},
				"regex-delimiter": /^\/|\/$/,
				"regex-flags": /^[a-z]+$/
			}
		},
		"function-variable": {
			pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
			alias: "function"
		},
		parameter: [
			{
				pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
				lookbehind: !0,
				inside: t.languages.javascript
			},
			{
				pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
				lookbehind: !0,
				inside: t.languages.javascript
			},
			{
				pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
				lookbehind: !0,
				inside: t.languages.javascript
			},
			{
				pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
				lookbehind: !0,
				inside: t.languages.javascript
			}
		],
		constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
	}), t.languages.insertBefore("javascript", "string", {
		hashbang: {
			pattern: /^#!.*/,
			greedy: !0,
			alias: "comment"
		},
		"template-string": {
			pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
			greedy: !0,
			inside: {
				"template-punctuation": {
					pattern: /^`|`$/,
					alias: "string"
				},
				interpolation: {
					pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
					lookbehind: !0,
					inside: {
						"interpolation-punctuation": {
							pattern: /^\$\{|\}$/,
							alias: "punctuation"
						},
						rest: t.languages.javascript
					}
				},
				string: /[\s\S]+/
			}
		}
	}), t.languages.markup && (t.languages.markup.tag.addInlined("script", "javascript"), t.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), t.languages.js = t.languages.javascript, function() {
		if (t !== void 0 && typeof document < "u") {
			Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
			var e = {
				js: "javascript",
				py: "python",
				rb: "ruby",
				ps1: "powershell",
				psm1: "powershell",
				sh: "bash",
				bat: "batch",
				h: "c",
				tex: "latex"
			}, n = "data-src-status", r = "pre[data-src]:not([data-src-status=\"loaded\"]):not([data-src-status=\"loading\"])", i = /\blang(?:uage)?-([\w-]+)\b/i;
			t.hooks.add("before-highlightall", (function(e) {
				e.selector += ", " + r;
			})), t.hooks.add("before-sanity-check", (function(i) {
				var a = i.element;
				if (a.matches(r)) {
					i.code = "", a.setAttribute(n, "loading");
					var s = a.appendChild(document.createElement("CODE"));
					s.textContent = "Loading…";
					var c = a.getAttribute("data-src"), l = i.language;
					if (l === "none") {
						var u = (/\.(\w+)$/.exec(c) || [, "none"])[1];
						l = e[u] || u;
					}
					o(s, l), o(a, l);
					var d = t.plugins.autoloader;
					d && d.loadLanguages(l);
					var f = new XMLHttpRequest();
					f.open("GET", c, !0), f.onreadystatechange = function() {
						f.readyState == 4 && (f.status < 400 && f.responseText ? (a.setAttribute(n, "loaded"), s.textContent = f.responseText, t.highlightElement(s)) : (a.setAttribute(n, "failed"), f.status >= 400 ? s.textContent = "✖ Error " + f.status + " while fetching file: " + f.statusText : s.textContent = "✖ Error: File does not exist or is empty"));
					}, f.send(null);
				}
			})), t.plugins.fileHighlight = { highlight: function(e) {
				for (var n, i = (e || document).querySelectorAll(r), a = 0; n = i[a++];) t.highlightElement(n);
			} };
			var a = !1;
			t.fileHighlight = function() {
				a ||= (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
			};
		}
		function o(e, t) {
			var n = e.className;
			n = n.replace(i, " ") + " language-" + t, e.className = n.replace(/\s+/g, " ").trim();
		}
	}();
}));
(function(e) {
	var t = e.util.clone(e.languages.javascript), n = "(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)", r = "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})", i = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";
	function a(e, t) {
		return e = e.replace(/<S>/g, (function() {
			return n;
		})).replace(/<BRACES>/g, (function() {
			return r;
		})).replace(/<SPREAD>/g, (function() {
			return i;
		})), RegExp(e, t);
	}
	i = a(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = a("<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>"), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/i, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: {
		pattern: a("<SPREAD>"),
		inside: e.languages.jsx
	} }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: {
		pattern: a("=<BRACES>"),
		inside: {
			"script-punctuation": {
				pattern: /^=(?=\{)/,
				alias: "punctuation"
			},
			rest: e.languages.jsx
		},
		alias: "language-javascript"
	} }, e.languages.jsx.tag);
	var o = function(e) {
		return e ? typeof e == "string" ? e : typeof e.content == "string" ? e.content : e.content.map(o).join("") : "";
	}, s = function(t) {
		for (var n = [], r = 0; r < t.length; r++) {
			var i = t[r], a = !1;
			if (typeof i != "string" && (i.type === "tag" && i.content[0] && i.content[0].type === "tag" ? i.content[0].content[0].content === "</" ? n.length > 0 && n[n.length - 1].tagName === o(i.content[0].content[1]) && n.pop() : i.content[i.content.length - 1].content === "/>" || n.push({
				tagName: o(i.content[0].content[1]),
				openedBraces: 0
			}) : n.length > 0 && i.type === "punctuation" && i.content === "{" ? n[n.length - 1].openedBraces++ : n.length > 0 && n[n.length - 1].openedBraces > 0 && i.type === "punctuation" && i.content === "}" ? n[n.length - 1].openedBraces-- : a = !0), (a || typeof i == "string") && n.length > 0 && n[n.length - 1].openedBraces === 0) {
				var c = o(i);
				r < t.length - 1 && (typeof t[r + 1] == "string" || t[r + 1].type === "plain-text") && (c += o(t[r + 1]), t.splice(r + 1, 1)), r > 0 && (typeof t[r - 1] == "string" || t[r - 1].type === "plain-text") && (c = o(t[r - 1]) + c, t.splice(r - 1, 1), r--), t[r] = new e.Token("plain-text", c, null, c);
			}
			i.content && typeof i.content != "string" && s(i.content);
		}
	};
	e.hooks.add("after-tokenize", (function(e) {
		e.language !== "jsx" && e.language !== "tsx" || s(e.tokens);
	}));
})(Prism), function(e) {
	e.languages.typescript = e.languages.extend("javascript", {
		"class-name": {
			pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
			lookbehind: !0,
			greedy: !0,
			inside: null
		},
		builtin: /\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/
	}), e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter;
	var t = e.languages.extend("typescript", {});
	delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", {
		decorator: {
			pattern: /@[$\w\xA0-\uFFFF]+/,
			inside: {
				at: {
					pattern: /^@/,
					alias: "operator"
				},
				function: /^[\s\S]+/
			}
		},
		"generic-function": {
			pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
			greedy: !0,
			inside: {
				function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
				generic: {
					pattern: /<[\s\S]+/,
					alias: "class-name",
					inside: t
				}
			}
		}
	}), e.languages.ts = e.languages.typescript;
}(Prism), Prism.languages.markup = {
	comment: {
		pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
		greedy: !0
	},
	prolog: {
		pattern: /<\?[\s\S]+?\?>/,
		greedy: !0
	},
	doctype: {
		pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
		greedy: !0,
		inside: {
			"internal-subset": {
				pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
				lookbehind: !0,
				greedy: !0,
				inside: null
			},
			string: {
				pattern: /"[^"]*"|'[^']*'/,
				greedy: !0
			},
			punctuation: /^<!|>$|[[\]]/,
			"doctype-tag": /^DOCTYPE/i,
			name: /[^\s<>'"]+/
		}
	},
	cdata: {
		pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
		greedy: !0
	},
	tag: {
		pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
		greedy: !0,
		inside: {
			tag: {
				pattern: /^<\/?[^\s>\/]+/,
				inside: {
					punctuation: /^<\/?/,
					namespace: /^[^\s>\/:]+:/
				}
			},
			"special-attr": [],
			"attr-value": {
				pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
				inside: { punctuation: [{
					pattern: /^=/,
					alias: "attr-equals"
				}, /"|'/] }
			},
			punctuation: /\/?>/,
			"attr-name": {
				pattern: /[^\s>\/]+/,
				inside: { namespace: /^[^\s>\/:]+:/ }
			}
		}
	},
	entity: [{
		pattern: /&[\da-z]{1,8};/i,
		alias: "named-entity"
	}, /&#x?[\da-f]{1,8};/i]
}, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", (function(e) {
	e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
})), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { value: function(e, t) {
	var n = {};
	n["language-" + t] = {
		pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
		lookbehind: !0,
		inside: Prism.languages[t]
	}, n.cdata = /^<!\[CDATA\[|\]\]>$/i;
	var r = { "included-cdata": {
		pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
		inside: n
	} };
	r["language-" + t] = {
		pattern: /[\s\S]+/,
		inside: Prism.languages[t]
	};
	var i = {};
	i[e] = {
		pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, (function() {
			return e;
		})), "i"),
		lookbehind: !0,
		greedy: !0,
		inside: r
	}, Prism.languages.insertBefore("markup", "cdata", i);
} }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { value: function(e, t) {
	Prism.languages.markup.tag.inside["special-attr"].push({
		pattern: RegExp("(^|[\"'\\s])(?:" + e + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"),
		lookbehind: !0,
		inside: {
			"attr-name": /^[^\s=]+/,
			"attr-value": {
				pattern: /=[\s\S]+/,
				inside: {
					value: {
						pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
						lookbehind: !0,
						alias: [t, "language-" + t],
						inside: Prism.languages[t]
					},
					punctuation: [{
						pattern: /^=/,
						alias: "attr-equals"
					}, /"|'/]
				}
			}
		}
	});
} }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml, Prism.languages.go = Prism.languages.extend("clike", {
	string: {
		pattern: /(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,
		greedy: !0
	},
	keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
	boolean: /\b(?:_|iota|nil|true|false)\b/,
	number: /(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,
	operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
	builtin: /\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/
}), delete Prism.languages.go["class-name"], function(e) {
	var t = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, n = [
		{
			pattern: /\b(?:false|true)\b/i,
			alias: "boolean"
		},
		{
			pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,
			greedy: !0,
			lookbehind: !0
		},
		{
			pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,
			greedy: !0,
			lookbehind: !0
		},
		/\b(?:null)\b/i,
		/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/
	], r = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, i = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/, a = /[{}\[\](),:;]/;
	e.languages.php = {
		delimiter: {
			pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
			alias: "important"
		},
		comment: t,
		variable: /\$+(?:\w+\b|(?=\{))/i,
		package: {
			pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
			lookbehind: !0,
			inside: { punctuation: /\\/ }
		},
		"class-name-definition": {
			pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,
			lookbehind: !0,
			alias: "class-name"
		},
		"function-definition": {
			pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,
			lookbehind: !0,
			alias: "function"
		},
		keyword: [
			{
				pattern: /(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,
				alias: "type-casting",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,
				alias: "type-hint",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,
				alias: "type-hint",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,
				alias: "return-type",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,
				alias: "return-type",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,
				alias: "type-declaration",
				greedy: !0
			},
			{
				pattern: /(\|\s*)(?:null|false)\b/i,
				alias: "type-declaration",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /\b(?:parent|self|static)(?=\s*::)/i,
				alias: "static-context",
				greedy: !0
			},
			{
				pattern: /(\byield\s+)from\b/i,
				lookbehind: !0
			},
			/\bclass\b/i,
			{
				pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,
				lookbehind: !0
			}
		],
		"argument-name": {
			pattern: /([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,
			lookbehind: !0
		},
		"class-name": [
			{
				pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
				greedy: !0
			},
			{
				pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
				alias: "class-name-fully-qualified",
				greedy: !0,
				lookbehind: !0,
				inside: { punctuation: /\\/ }
			},
			{
				pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
				alias: "class-name-fully-qualified",
				greedy: !0,
				inside: { punctuation: /\\/ }
			},
			{
				pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
				alias: "class-name-fully-qualified",
				greedy: !0,
				lookbehind: !0,
				inside: { punctuation: /\\/ }
			},
			{
				pattern: /\b[a-z_]\w*(?=\s*\$)/i,
				alias: "type-declaration",
				greedy: !0
			},
			{
				pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
				alias: ["class-name-fully-qualified", "type-declaration"],
				greedy: !0,
				inside: { punctuation: /\\/ }
			},
			{
				pattern: /\b[a-z_]\w*(?=\s*::)/i,
				alias: "static-context",
				greedy: !0
			},
			{
				pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
				alias: ["class-name-fully-qualified", "static-context"],
				greedy: !0,
				inside: { punctuation: /\\/ }
			},
			{
				pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
				alias: "type-hint",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
				alias: ["class-name-fully-qualified", "type-hint"],
				greedy: !0,
				lookbehind: !0,
				inside: { punctuation: /\\/ }
			},
			{
				pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
				alias: "return-type",
				greedy: !0,
				lookbehind: !0
			},
			{
				pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
				alias: ["class-name-fully-qualified", "return-type"],
				greedy: !0,
				lookbehind: !0,
				inside: { punctuation: /\\/ }
			}
		],
		constant: n,
		function: {
			pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
			lookbehind: !0,
			inside: { punctuation: /\\/ }
		},
		property: {
			pattern: /(->\s*)\w+/,
			lookbehind: !0
		},
		number: r,
		operator: i,
		punctuation: a
	};
	var o = {
		pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
		lookbehind: !0,
		inside: e.languages.php
	}, s = [
		{
			pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
			alias: "nowdoc-string",
			greedy: !0,
			inside: { delimiter: {
				pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
				alias: "symbol",
				inside: { punctuation: /^<<<'?|[';]$/ }
			} }
		},
		{
			pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
			alias: "heredoc-string",
			greedy: !0,
			inside: {
				delimiter: {
					pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
					alias: "symbol",
					inside: { punctuation: /^<<<"?|[";]$/ }
				},
				interpolation: o
			}
		},
		{
			pattern: /`(?:\\[\s\S]|[^\\`])*`/,
			alias: "backtick-quoted-string",
			greedy: !0
		},
		{
			pattern: /'(?:\\[\s\S]|[^\\'])*'/,
			alias: "single-quoted-string",
			greedy: !0
		},
		{
			pattern: /"(?:\\[\s\S]|[^\\"])*"/,
			alias: "double-quoted-string",
			greedy: !0,
			inside: { interpolation: o }
		}
	];
	e.languages.insertBefore("php", "variable", {
		string: s,
		attribute: {
			pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
			greedy: !0,
			inside: {
				"attribute-content": {
					pattern: /^(#\[)[\s\S]+(?=\]$)/,
					lookbehind: !0,
					inside: {
						comment: t,
						string: s,
						"attribute-class-name": [{
							pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
							alias: "class-name",
							greedy: !0,
							lookbehind: !0
						}, {
							pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
							alias: ["class-name", "class-name-fully-qualified"],
							greedy: !0,
							lookbehind: !0,
							inside: { punctuation: /\\/ }
						}],
						constant: n,
						number: r,
						operator: i,
						punctuation: a
					}
				},
				delimiter: {
					pattern: /^#\[|\]$/,
					alias: "punctuation"
				}
			}
		}
	}), e.hooks.add("before-tokenize", (function(t) {
		/<\?/.test(t.code) && e.languages["markup-templating"].buildPlaceholders(t, "php", /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi);
	})), e.hooks.add("after-tokenize", (function(t) {
		e.languages["markup-templating"].tokenizePlaceholders(t, "php");
	}));
}(Prism), Prism.languages.c = Prism.languages.extend("clike", {
	comment: {
		pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
		greedy: !0
	},
	"class-name": {
		pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
		lookbehind: !0
	},
	keyword: /\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,
	function: /\b[a-z_]\w*(?=\s*\()/i,
	number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
	operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/
}), Prism.languages.insertBefore("c", "string", {
	macro: {
		pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,
		lookbehind: !0,
		greedy: !0,
		alias: "property",
		inside: {
			string: [{
				pattern: /^(#\s*include\s*)<[^>]+>/,
				lookbehind: !0
			}, Prism.languages.c.string],
			comment: Prism.languages.c.comment,
			"macro-name": [{
				pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
				lookbehind: !0
			}, {
				pattern: /(^#\s*define\s+)\w+\b(?=\()/i,
				lookbehind: !0,
				alias: "function"
			}],
			directive: {
				pattern: /^(#\s*)[a-z]+/,
				lookbehind: !0,
				alias: "keyword"
			},
			"directive-hash": /^#/,
			punctuation: /##|\\(?=[\r\n])/,
			expression: {
				pattern: /\S[\s\S]*/,
				inside: Prism.languages.c
			}
		}
	},
	constant: /\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/
}), delete Prism.languages.c.boolean, Prism.languages.python = {
	comment: {
		pattern: /(^|[^\\])#.*/,
		lookbehind: !0
	},
	"string-interpolation": {
		pattern: /(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
		greedy: !0,
		inside: {
			interpolation: {
				pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
				lookbehind: !0,
				inside: {
					"format-spec": {
						pattern: /(:)[^:(){}]+(?=\}$)/,
						lookbehind: !0
					},
					"conversion-option": {
						pattern: /![sra](?=[:}]$)/,
						alias: "punctuation"
					},
					rest: null
				}
			},
			string: /[\s\S]+/
		}
	},
	"triple-quoted-string": {
		pattern: /(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,
		greedy: !0,
		alias: "string"
	},
	string: {
		pattern: /(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
		greedy: !0
	},
	function: {
		pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
		lookbehind: !0
	},
	"class-name": {
		pattern: /(\bclass\s+)\w+/i,
		lookbehind: !0
	},
	decorator: {
		pattern: /(^[\t ]*)@\w+(?:\.\w+)*/im,
		lookbehind: !0,
		alias: ["annotation", "punctuation"],
		inside: { punctuation: /\./ }
	},
	keyword: /\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
	builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
	boolean: /\b(?:True|False|None)\b/,
	number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,
	operator: /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
	punctuation: /[{}[\];(),.:]/
}, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, function(e) {
	var t = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, n = "(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", r = {
		pattern: RegExp(n + "[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b"),
		lookbehind: !0,
		inside: {
			namespace: {
				pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
				inside: { punctuation: /\./ }
			},
			punctuation: /\./
		}
	};
	e.languages.java = e.languages.extend("clike", {
		"class-name": [r, {
			pattern: RegExp(n + "[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])"),
			lookbehind: !0,
			inside: r.inside
		}],
		keyword: t,
		function: [e.languages.clike.function, {
			pattern: /(::\s*)[a-z_]\w*/,
			lookbehind: !0
		}],
		number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
		operator: {
			pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
			lookbehind: !0
		}
	}), e.languages.insertBefore("java", "string", { "triple-quoted-string": {
		pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
		greedy: !0,
		alias: "string"
	} }), e.languages.insertBefore("java", "class-name", {
		annotation: {
			pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
			lookbehind: !0,
			alias: "punctuation"
		},
		generics: {
			pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
			inside: {
				"class-name": r,
				keyword: t,
				punctuation: /[<>(),.:]/,
				operator: /[?&|]/
			}
		},
		namespace: {
			pattern: RegExp("(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?".replace(/<keyword>/g, (function() {
				return t.source;
			}))),
			lookbehind: !0,
			inside: { punctuation: /\./ }
		}
	});
}(Prism), function(e) {
	var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, n = "\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b".replace(/<keyword>/g, (function() {
		return t.source;
	}));
	e.languages.cpp = e.languages.extend("c", {
		"class-name": [
			{
				pattern: RegExp("(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+".replace(/<keyword>/g, (function() {
					return t.source;
				}))),
				lookbehind: !0
			},
			/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,
			/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,
			/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
		],
		keyword: t,
		number: {
			pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
			greedy: !0
		},
		operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
		boolean: /\b(?:true|false)\b/
	}), e.languages.insertBefore("cpp", "string", {
		module: {
			pattern: RegExp("(\\b(?:module|import)\\s+)(?:\"(?:\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"|<[^<>\\r\\n]*>|" + "<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>".replace(/<mod-name>/g, (function() {
				return n;
			})) + ")"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				string: /^[<"][\s\S]+/,
				operator: /:/,
				punctuation: /\./
			}
		},
		"raw-string": {
			pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
			alias: "string",
			greedy: !0
		}
	}), e.languages.insertBefore("cpp", "keyword", { "generic-function": {
		pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
		inside: {
			function: /^\w+/,
			generic: {
				pattern: /<[\s\S]+/,
				alias: "class-name",
				inside: e.languages.cpp
			}
		}
	} }), e.languages.insertBefore("cpp", "operator", { "double-colon": {
		pattern: /::/,
		alias: "punctuation"
	} }), e.languages.insertBefore("cpp", "class-name", { "base-clause": {
		pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
		lookbehind: !0,
		greedy: !0,
		inside: e.languages.extend("cpp", {})
	} }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
}(Prism), function(e) {
	function t(e, t) {
		return e.replace(/<<(\d+)>>/g, (function(e, n) {
			return "(?:" + t[+n] + ")";
		}));
	}
	function n(e, n, r) {
		return RegExp(t(e, n), r || "");
	}
	function r(e, t) {
		for (var n = 0; n < t; n++) e = e.replace(/<<self>>/g, (function() {
			return "(?:" + e + ")";
		}));
		return e.replace(/<<self>>/g, "[^\\s\\S]");
	}
	var i = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void", a = "class enum interface record struct", o = "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)", s = "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";
	function c(e) {
		return "\\b(?:" + e.trim().replace(/ /g, "|") + ")\\b";
	}
	var l = c(a), u = RegExp(c(i + " " + a + " " + o + " " + s)), d = c(a + " " + o + " " + s), f = c(i + " " + a + " " + s), p = r("<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>", 2), m = r("\\((?:[^()]|<<self>>)*\\)", 2), h = "@?\\b[A-Za-z_]\\w*\\b", g = t("<<0>>(?:\\s*<<1>>)?", [h, p]), _ = t("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*", [d, g]), v = "\\[\\s*(?:,\\s*)*\\]", y = t("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?", [_, v]), b = t("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?", [
		t("\\(<<0>>+(?:,<<0>>+)+\\)", [t("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>", [
			p,
			m,
			v
		])]),
		_,
		v
	]), x = {
		keyword: u,
		punctuation: /[<>()?,.:[\]]/
	}, S = "'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'", C = "\"(?:\\\\.|[^\\\\\"\\r\\n])*\"", w = "@\"(?:\"\"|\\\\[\\s\\S]|[^\\\\\"])*\"(?!\")";
	e.languages.csharp = e.languages.extend("clike", {
		string: [
			{
				pattern: n("(^|[^$\\\\])<<0>>", [w]),
				lookbehind: !0,
				greedy: !0
			},
			{
				pattern: n("(^|[^@$\\\\])<<0>>", [C]),
				lookbehind: !0,
				greedy: !0
			},
			{
				pattern: RegExp(S),
				greedy: !0,
				alias: "character"
			}
		],
		"class-name": [
			{
				pattern: n("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)", [_]),
				lookbehind: !0,
				inside: x
			},
			{
				pattern: n("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)", [h, b]),
				lookbehind: !0,
				inside: x
			},
			{
				pattern: n("(\\busing\\s+)<<0>>(?=\\s*=)", [h]),
				lookbehind: !0
			},
			{
				pattern: n("(\\b<<0>>\\s+)<<1>>", [l, g]),
				lookbehind: !0,
				inside: x
			},
			{
				pattern: n("(\\bcatch\\s*\\(\\s*)<<0>>", [_]),
				lookbehind: !0,
				inside: x
			},
			{
				pattern: n("(\\bwhere\\s+)<<0>>", [h]),
				lookbehind: !0
			},
			{
				pattern: n("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>", [y]),
				lookbehind: !0,
				inside: x
			},
			{
				pattern: n("\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))", [
					b,
					f,
					h
				]),
				inside: x
			}
		],
		keyword: u,
		number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,
		operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
		punctuation: /\?\.?|::|[{}[\];(),.:]/
	}), e.languages.insertBefore("csharp", "number", { range: {
		pattern: /\.\./,
		alias: "operator"
	} }), e.languages.insertBefore("csharp", "punctuation", { "named-parameter": {
		pattern: n("([(,]\\s*)<<0>>(?=\\s*:)", [h]),
		lookbehind: !0,
		alias: "punctuation"
	} }), e.languages.insertBefore("csharp", "class-name", {
		namespace: {
			pattern: n("(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])", [h]),
			lookbehind: !0,
			inside: { punctuation: /\./ }
		},
		"type-expression": {
			pattern: n("(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))", [m]),
			lookbehind: !0,
			alias: "class-name",
			inside: x
		},
		"return-type": {
			pattern: n("<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [b, _]),
			inside: x,
			alias: "class-name"
		},
		"constructor-invocation": {
			pattern: n("(\\bnew\\s+)<<0>>(?=\\s*[[({])", [b]),
			lookbehind: !0,
			inside: x,
			alias: "class-name"
		},
		"generic-method": {
			pattern: n("<<0>>\\s*<<1>>(?=\\s*\\()", [h, p]),
			inside: {
				function: n("^<<0>>", [h]),
				generic: {
					pattern: RegExp(p),
					alias: "class-name",
					inside: x
				}
			}
		},
		"type-list": {
			pattern: n("\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))", [
				l,
				g,
				h,
				b,
				u.source,
				m,
				"\\bnew\\s*\\(\\s*\\)"
			]),
			lookbehind: !0,
			inside: {
				"record-arguments": {
					pattern: n("(^(?!new\\s*\\()<<0>>\\s*)<<1>>", [g, m]),
					lookbehind: !0,
					greedy: !0,
					inside: e.languages.csharp
				},
				keyword: u,
				"class-name": {
					pattern: RegExp(b),
					greedy: !0,
					inside: x
				},
				punctuation: /[,()]/
			}
		},
		preprocessor: {
			pattern: /(^[\t ]*)#.*/m,
			lookbehind: !0,
			alias: "property",
			inside: { directive: {
				pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
				lookbehind: !0,
				alias: "keyword"
			} }
		}
	});
	var T = C + "|" + S, E = t("\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>", [T]), D = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [E]), 2), O = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", ee = t("<<0>>(?:\\s*\\(<<1>>*\\))?", [_, D]);
	e.languages.insertBefore("csharp", "class-name", { attribute: {
		pattern: n("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])", [O, ee]),
		lookbehind: !0,
		greedy: !0,
		inside: {
			target: {
				pattern: n("^<<0>>(?=\\s*:)", [O]),
				alias: "keyword"
			},
			"attribute-arguments": {
				pattern: n("\\(<<0>>*\\)", [D]),
				inside: e.languages.csharp
			},
			"class-name": {
				pattern: RegExp(_),
				inside: { punctuation: /\./ }
			},
			punctuation: /[:,]/
		}
	} });
	var te = ":[^}\\r\\n]+", ne = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [E]), 2), re = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [ne, te]), k = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [T]), 2), ie = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [k, te]);
	function A(t, r) {
		return {
			interpolation: {
				pattern: n("((?:^|[^{])(?:\\{\\{)*)<<0>>", [t]),
				lookbehind: !0,
				inside: {
					"format-string": {
						pattern: n("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)", [r, te]),
						lookbehind: !0,
						inside: { punctuation: /^:/ }
					},
					punctuation: /^\{|\}$/,
					expression: {
						pattern: /[\s\S]+/,
						alias: "language-csharp",
						inside: e.languages.csharp
					}
				}
			},
			string: /[\s\S]+/
		};
	}
	e.languages.insertBefore("csharp", "string", { "interpolation-string": [{
		pattern: n("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [re]),
		lookbehind: !0,
		greedy: !0,
		inside: A(re, ne)
	}, {
		pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [ie]),
		lookbehind: !0,
		greedy: !0,
		inside: A(ie, k)
	}] });
}(Prism), Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp, Prism.languages["visual-basic"] = {
	comment: {
		pattern: /(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,
		inside: { keyword: /^REM/i }
	},
	directive: {
		pattern: /#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,
		alias: "comment",
		greedy: !0
	},
	string: {
		pattern: /\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,
		greedy: !0
	},
	date: {
		pattern: /#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,
		alias: "builtin"
	},
	number: /(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,
	boolean: /\b(?:True|False|Nothing)\b/i,
	keyword: /\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,
	operator: [/[+\-*/\\^<=>&#@$%!]/, {
		pattern: /([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,
		lookbehind: !0
	}],
	punctuation: /[{}().,:?]/
}, Prism.languages.vb = Prism.languages["visual-basic"], Prism.languages.vba = Prism.languages["visual-basic"], Prism.languages.sql = {
	comment: {
		pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
		lookbehind: !0
	},
	variable: [{
		pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
		greedy: !0
	}, /@[\w.$]+/],
	string: {
		pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
		greedy: !0,
		lookbehind: !0
	},
	function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
	keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
	boolean: /\b(?:TRUE|FALSE|NULL)\b/i,
	number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
	operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
	punctuation: /[;[\]()`,.]/
}, function(e) {
	e.languages.ruby = e.languages.extend("clike", {
		comment: [/#.*/, {
			pattern: /^=begin\s[\s\S]*?^=end/m,
			greedy: !0
		}],
		"class-name": {
			pattern: /(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,
			lookbehind: !0,
			inside: { punctuation: /[.\\]/ }
		},
		keyword: /\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/
	});
	var t = {
		pattern: /#\{[^}]+\}/,
		inside: {
			delimiter: {
				pattern: /^#\{|\}$/,
				alias: "tag"
			},
			rest: e.languages.ruby
		}
	};
	delete e.languages.ruby.function, e.languages.insertBefore("ruby", "keyword", {
		regex: [{
			pattern: RegExp("%r(?:" + [
				"([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1",
				"\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)",
				"\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}",
				"\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]",
				"<(?:[^<>\\\\]|\\\\[\\s\\S])*>"
			].join("|") + ")[egimnosux]{0,6}"),
			greedy: !0,
			inside: { interpolation: t }
		}, {
			pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,
			lookbehind: !0,
			greedy: !0,
			inside: { interpolation: t }
		}],
		variable: /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
		symbol: {
			pattern: /(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,
			lookbehind: !0
		},
		"method-definition": {
			pattern: /(\bdef\s+)[\w.]+/,
			lookbehind: !0,
			inside: {
				function: /\w+$/,
				rest: e.languages.ruby
			}
		}
	}), e.languages.insertBefore("ruby", "number", {
		builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,
		constant: /\b[A-Z]\w*(?:[?!]|\b)/
	}), e.languages.ruby.string = [
		{
			pattern: RegExp("%[qQiIwWxs]?(?:" + [
				"([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1",
				"\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)",
				"\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}",
				"\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]",
				"<(?:[^<>\\\\]|\\\\[\\s\\S])*>"
			].join("|") + ")"),
			greedy: !0,
			inside: { interpolation: t }
		},
		{
			pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
			greedy: !0,
			inside: { interpolation: t }
		},
		{
			pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
			alias: "heredoc-string",
			greedy: !0,
			inside: {
				delimiter: {
					pattern: /^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,
					alias: "symbol",
					inside: { punctuation: /^<<[-~]?/ }
				},
				interpolation: t
			}
		},
		{
			pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
			alias: "heredoc-string",
			greedy: !0,
			inside: { delimiter: {
				pattern: /^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,
				alias: "symbol",
				inside: { punctuation: /^<<[-~]?'|'$/ }
			} }
		}
	], e.languages.rb = e.languages.ruby;
}(Prism), Prism.languages.swift = {
	comment: {
		pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,
		lookbehind: !0,
		greedy: !0
	},
	"string-literal": [{
		pattern: RegExp("(^|[^\"#])(?:\"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n\"])*\"|\"\"\"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\\"]|\"(?!\"\"))*\"\"\")(?![\"#])"),
		lookbehind: !0,
		greedy: !0,
		inside: {
			interpolation: {
				pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/,
				lookbehind: !0,
				inside: null
			},
			"interpolation-punctuation": {
				pattern: /^\)|\\\($/,
				alias: "punctuation"
			},
			punctuation: /\\(?=[\r\n])/,
			string: /[\s\S]+/
		}
	}, {
		pattern: RegExp("(^|[^\"#])(#+)(?:\"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?\"|\"\"\"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?\"\"\")\\2"),
		lookbehind: !0,
		greedy: !0,
		inside: {
			interpolation: {
				pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,
				lookbehind: !0,
				inside: null
			},
			"interpolation-punctuation": {
				pattern: /^\)|\\#+\($/,
				alias: "punctuation"
			},
			string: /[\s\S]+/
		}
	}],
	directive: {
		pattern: RegExp("#(?:(?:elseif|if)\\b(?:[ 	]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)"),
		alias: "property",
		inside: {
			"directive-name": /^#\w+/,
			boolean: /\b(?:true|false)\b/,
			number: /\b\d+(?:\.\d+)*\b/,
			operator: /!|&&|\|\||[<>]=?/,
			punctuation: /[(),]/
		}
	},
	literal: {
		pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,
		alias: "constant"
	},
	"other-directive": {
		pattern: /#\w+\b/,
		alias: "property"
	},
	attribute: {
		pattern: /@\w+/,
		alias: "atrule"
	},
	"function-definition": {
		pattern: /(\bfunc\s+)\w+/,
		lookbehind: !0,
		alias: "function"
	},
	label: {
		pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,
		lookbehind: !0,
		alias: "important"
	},
	keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,
	boolean: /\b(?:true|false)\b/,
	nil: {
		pattern: /\bnil\b/,
		alias: "constant"
	},
	"short-argument": /\$\d+\b/,
	omit: {
		pattern: /\b_\b/,
		alias: "keyword"
	},
	number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,
	"class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,
	function: /\b[a-z_]\w*(?=\s*\()/i,
	constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,
	operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,
	punctuation: /[{}[\]();,.:\\]/
}, Prism.languages.swift["string-literal"].forEach((function(e) {
	e.inside.interpolation.inside = Prism.languages.swift;
})), function(e) {
	var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
		pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
		lookbehind: !0,
		alias: "punctuation",
		inside: null
	}, r = {
		bash: n,
		environment: {
			pattern: RegExp("\\$" + t),
			alias: "constant"
		},
		variable: [
			{
				pattern: /\$?\(\([\s\S]+?\)\)/,
				greedy: !0,
				inside: {
					variable: [{
						pattern: /(^\$\(\([\s\S]+)\)\)/,
						lookbehind: !0
					}, /^\$\(\(/],
					number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
					operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
					punctuation: /\(\(?|\)\)?|,|;/
				}
			},
			{
				pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
				greedy: !0,
				inside: { variable: /^\$\(|^`|\)$|`$/ }
			},
			{
				pattern: /\$\{[^}]+\}/,
				greedy: !0,
				inside: {
					operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
					punctuation: /[\[\]]/,
					environment: {
						pattern: RegExp("(\\{)" + t),
						lookbehind: !0,
						alias: "constant"
					}
				}
			},
			/\$(?:\w+|[#?*!@$])/
		],
		entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/
	};
	e.languages.bash = {
		shebang: {
			pattern: /^#!\s*\/.*/,
			alias: "important"
		},
		comment: {
			pattern: /(^|[^"{\\$])#.*/,
			lookbehind: !0
		},
		"function-name": [{
			pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
			lookbehind: !0,
			alias: "function"
		}, {
			pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
			alias: "function"
		}],
		"for-or-select": {
			pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
			alias: "variable",
			lookbehind: !0
		},
		"assign-left": {
			pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
			inside: { environment: {
				pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
				lookbehind: !0,
				alias: "constant"
			} },
			alias: "variable",
			lookbehind: !0
		},
		string: [
			{
				pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
				lookbehind: !0,
				greedy: !0,
				inside: r
			},
			{
				pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
				lookbehind: !0,
				greedy: !0,
				inside: { bash: n }
			},
			{
				pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
				lookbehind: !0,
				greedy: !0,
				inside: r
			},
			{
				pattern: /(^|[^$\\])'[^']*'/,
				lookbehind: !0,
				greedy: !0
			},
			{
				pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
				greedy: !0,
				inside: { entity: r.entity }
			}
		],
		environment: {
			pattern: RegExp("\\$?" + t),
			alias: "constant"
		},
		variable: r.variable,
		function: {
			pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
			lookbehind: !0
		},
		keyword: {
			pattern: /(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,
			lookbehind: !0
		},
		builtin: {
			pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,
			lookbehind: !0,
			alias: "class-name"
		},
		boolean: {
			pattern: /(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,
			lookbehind: !0
		},
		"file-descriptor": {
			pattern: /\B&\d\b/,
			alias: "important"
		},
		operator: {
			pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
			inside: { "file-descriptor": {
				pattern: /^\d/,
				alias: "important"
			} }
		},
		punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
		number: {
			pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
			lookbehind: !0
		}
	}, n.inside = e.languages.bash;
	for (var i = [
		"comment",
		"function-name",
		"for-or-select",
		"assign-left",
		"string",
		"environment",
		"function",
		"keyword",
		"builtin",
		"boolean",
		"file-descriptor",
		"operator",
		"punctuation",
		"number"
	], a = r.variable[1].inside, o = 0; o < i.length; o++) a[i[o]] = e.languages.bash[i[o]];
	e.languages.shell = e.languages.bash;
}(Prism), function(e) {
	function t(e) {
		return e = e.replace(/<inner>/g, (function() {
			return "(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))";
		})), RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + e + ")");
	}
	var n = "(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+", r = "\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))".replace(/__/g, (function() {
		return n;
	})), i = "\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)";
	e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
		"front-matter-block": {
			pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
			lookbehind: !0,
			greedy: !0,
			inside: {
				punctuation: /^---|---$/,
				"font-matter": {
					pattern: /\S+(?:\s+\S+)*/,
					alias: ["yaml", "language-yaml"],
					inside: e.languages.yaml
				}
			}
		},
		blockquote: {
			pattern: /^>(?:[\t ]*>)*/m,
			alias: "punctuation"
		},
		table: {
			pattern: RegExp("^" + r + i + "(?:" + r + ")*", "m"),
			inside: {
				"table-data-rows": {
					pattern: RegExp("^(" + r + i + ")(?:" + r + ")*$"),
					lookbehind: !0,
					inside: {
						"table-data": {
							pattern: RegExp(n),
							inside: e.languages.markdown
						},
						punctuation: /\|/
					}
				},
				"table-line": {
					pattern: RegExp("^(" + r + ")" + i + "$"),
					lookbehind: !0,
					inside: { punctuation: /\||:?-{3,}:?/ }
				},
				"table-header-row": {
					pattern: RegExp("^" + r + "$"),
					inside: {
						"table-header": {
							pattern: RegExp(n),
							alias: "important",
							inside: e.languages.markdown
						},
						punctuation: /\|/
					}
				}
			}
		},
		code: [{
			pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
			lookbehind: !0,
			alias: "keyword"
		}, {
			pattern: /^```[\s\S]*?^```$/m,
			greedy: !0,
			inside: {
				"code-block": {
					pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
					lookbehind: !0
				},
				"code-language": {
					pattern: /^(```).+/,
					lookbehind: !0
				},
				punctuation: /```/
			}
		}],
		title: [{
			pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
			alias: "important",
			inside: { punctuation: /==+$|--+$/ }
		}, {
			pattern: /(^\s*)#.+/m,
			lookbehind: !0,
			alias: "important",
			inside: { punctuation: /^#+|#+$/ }
		}],
		hr: {
			pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
			lookbehind: !0,
			alias: "punctuation"
		},
		list: {
			pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
			lookbehind: !0,
			alias: "punctuation"
		},
		"url-reference": {
			pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
			inside: {
				variable: {
					pattern: /^(!?\[)[^\]]+/,
					lookbehind: !0
				},
				string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
				punctuation: /^[\[\]!:]|[<>]/
			},
			alias: "url"
		},
		bold: {
			pattern: t("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				content: {
					pattern: /(^..)[\s\S]+(?=..$)/,
					lookbehind: !0,
					inside: {}
				},
				punctuation: /\*\*|__/
			}
		},
		italic: {
			pattern: t("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				content: {
					pattern: /(^.)[\s\S]+(?=.$)/,
					lookbehind: !0,
					inside: {}
				},
				punctuation: /[*_]/
			}
		},
		strike: {
			pattern: t("(~~?)(?:(?!~)<inner>)+\\2"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				content: {
					pattern: /(^~~?)[\s\S]+(?=\1$)/,
					lookbehind: !0,
					inside: {}
				},
				punctuation: /~~?/
			}
		},
		"code-snippet": {
			pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
			lookbehind: !0,
			greedy: !0,
			alias: ["code", "keyword"]
		},
		url: {
			pattern: t("!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				operator: /^!/,
				content: {
					pattern: /(^\[)[^\]]+(?=\])/,
					lookbehind: !0,
					inside: {}
				},
				variable: {
					pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
					lookbehind: !0
				},
				url: {
					pattern: /(^\]\()[^\s)]+/,
					lookbehind: !0
				},
				string: {
					pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
					lookbehind: !0
				}
			}
		}
	}), [
		"url",
		"bold",
		"italic",
		"strike"
	].forEach((function(t) {
		[
			"url",
			"bold",
			"italic",
			"strike",
			"code-snippet"
		].forEach((function(n) {
			t !== n && (e.languages.markdown[t].inside.content.inside[n] = e.languages.markdown[n]);
		}));
	})), e.hooks.add("after-tokenize", (function(e) {
		e.language !== "markdown" && e.language !== "md" || function e(t) {
			if (t && typeof t != "string") for (var n = 0, r = t.length; n < r; n++) {
				var i = t[n];
				if (i.type === "code") {
					var a = i.content[1], o = i.content[3];
					if (a && o && a.type === "code-language" && o.type === "code-block" && typeof a.content == "string") {
						var s = a.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), c = "language-" + (s = (/[a-z][\w-]*/i.exec(s) || [""])[0].toLowerCase());
						o.alias ? typeof o.alias == "string" ? o.alias = [o.alias, c] : o.alias.push(c) : o.alias = [c];
					}
				} else e(i.content);
			}
		}(e.tokens);
	})), e.hooks.add("wrap", (function(t) {
		if (t.type === "code-block") {
			for (var n = "", r = 0, i = t.classes.length; r < i; r++) {
				var c = t.classes[r], l = /language-(.+)/.exec(c);
				if (l) {
					n = l[1];
					break;
				}
			}
			var u = e.languages[n];
			if (u) t.content = e.highlight(function(e) {
				return e.replace(a, "").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, (function(e, t) {
					var n;
					return (t = t.toLowerCase())[0] === "#" ? (n = t[1] === "x" ? parseInt(t.slice(2), 16) : Number(t.slice(1)), s(n)) : o[t] || e;
				}));
			}(t.content), u, n);
			else if (n && n !== "none" && e.plugins.autoloader) {
				var d = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(0x2386f26fc10000 * Math.random());
				t.attributes.id = d, e.plugins.autoloader.loadLanguages(n, (function() {
					var t = document.getElementById(d);
					t && (t.innerHTML = e.highlight(t.textContent, e.languages[n], n));
				}));
			}
		}
	}));
	var a = RegExp(e.languages.markup.tag.pattern.source, "gi"), o = {
		amp: "&",
		lt: "<",
		gt: ">",
		quot: "\""
	}, s = String.fromCodePoint || String.fromCharCode;
	e.languages.md = e.languages.markdown;
}(Prism), Prism.languages.lua = {
	comment: /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
	string: {
		pattern: /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,
		greedy: !0
	},
	number: /\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,
	keyword: /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,
	function: /(?!\d)\w+(?=\s*(?:[({]))/,
	operator: [/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/, {
		pattern: /(^|[^.])\.\.(?!\.)/,
		lookbehind: !0
	}],
	punctuation: /[\[\](){},;]|\.+|:+/
}, Prism.languages.groovy = Prism.languages.extend("clike", {
	string: [{
		pattern: /("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,
		greedy: !0
	}, {
		pattern: /(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,
		greedy: !0
	}],
	keyword: /\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,
	number: /\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,
	operator: {
		pattern: /(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,
		lookbehind: !0
	},
	punctuation: /\.+|[{}[\];(),:$]/
}), Prism.languages.insertBefore("groovy", "string", { shebang: {
	pattern: /#!.+/,
	alias: "comment"
} }), Prism.languages.insertBefore("groovy", "punctuation", { "spock-block": /\b(?:setup|given|when|then|and|cleanup|expect|where):/ }), Prism.languages.insertBefore("groovy", "function", { annotation: {
	pattern: /(^|[^.])@\w+/,
	lookbehind: !0,
	alias: "punctuation"
} }), Prism.hooks.add("wrap", (function(e) {
	if (e.language === "groovy" && e.type === "string") {
		var t = e.content[0];
		if (t != "'") {
			var n = /([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;
			t === "$" && (n = /([^\$])(?:\$(?:\{.*?\}|[\w.]+))/), e.content = e.content.replace(/&lt;/g, "<").replace(/&amp;/g, "&"), e.content = Prism.highlight(e.content, { expression: {
				pattern: n,
				lookbehind: !0,
				inside: Prism.languages.groovy
			} }), e.classes.push(t === "/" ? "regex" : "gstring");
		}
	}
}));
var yhe = /* @__PURE__ */ "comment.prolog.doctype.cdata.punctuation.namespace.property.tag.boolean.number.constant.symbol.deleted.selector.attr-name.string.builtin.inserted.operator.entity.url.string.atrule.attr-value.keyword.function.class-name.regex.important.variable.bold.italic.entity.char".split(".");
function p9(e) {
	return typeof e == "string" ? e.length : typeof e.content == "string" ? e.content.length : e.content.reduce((function(e, t) {
		return e + p9(t);
	}), 0);
}
var m9, bhe = h5.String, h9 = function(e) {
	if (E7(e) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return bhe(e);
}, g9 = function() {
	var e = Y5(this), t = "";
	return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.dotAll && (t += "s"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
}, _9 = h5.RegExp, v9 = F5((function() {
	var e = _9("a", "y");
	return e.lastIndex = 2, e.exec("abcd") != null;
})), xhe = v9 || F5((function() {
	return !_9("a", "y").sticky;
})), y9 = {
	BROKEN_CARET: v9 || F5((function() {
		var e = _9("^r", "gy");
		return e.lastIndex = 2, e.exec("str") != null;
	})),
	MISSED_STICKY: xhe,
	UNSUPPORTED_Y: v9
}, She = W5 ? Object.defineProperties : function(e, t) {
	Y5(e);
	for (var n, r = Q7(t), i = c9(t), a = i.length, o = 0; a > o;) a7.f(e, n = i[o++], r[n]);
	return e;
}, Che = O5("document", "documentElement"), b9 = m7("IE_PROTO"), x9 = function() {}, S9 = function(e) {
	return "<script>" + e + "<\/script>";
}, C9 = function(e) {
	e.write(S9("")), e.close();
	var t = e.parentWindow.Object;
	return e = null, t;
}, w9 = function() {
	try {
		m9 = new ActiveXObject("htmlfile");
	} catch {}
	var e, t;
	w9 = typeof document < "u" ? document.domain && m9 ? C9(m9) : ((t = q5("iframe")).style.display = "none", Che.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(S9("document.F=Object")), e.close(), e.F) : C9(m9);
	for (var n = i9.length; n--;) delete w9.prototype[i9[n]];
	return w9();
};
h7[b9] = !0;
var T9, E9, whe = Object.create || function(e, t) {
	var n;
	return e === null ? n = w9() : (x9.prototype = Y5(e), n = new x9(), x9.prototype = null, n[b9] = e), t === void 0 ? n : She(n, t);
}, The = h5.RegExp, Ehe = F5((function() {
	var e = The(".", "s");
	return !(e.dotAll && e.exec("\n") && e.flags === "s");
})), Dhe = h5.RegExp, Ohe = F5((function() {
	var e = Dhe("(?<a>b)", "g");
	return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
})), khe = b7.get, Ahe = v5("native-string-replace", String.prototype.replace), D9 = RegExp.prototype.exec, O9 = D9, jhe = S5("".charAt), Mhe = S5("".indexOf), Nhe = S5("".replace), k9 = S5("".slice), A9 = (E9 = /b*/g, Z5(D9, T9 = /a/, "a"), Z5(D9, E9, "a"), T9.lastIndex !== 0 || E9.lastIndex !== 0), j9 = y9.BROKEN_CARET, M9 = /()??/.exec("")[1] !== void 0;
(A9 || M9 || j9 || Ehe || Ohe) && (O9 = function(e) {
	var t, n, r, i, a, o, s, c = this, l = khe(c), u = h9(e), d = l.raw;
	if (d) return d.lastIndex = c.lastIndex, t = Z5(O9, d, u), c.lastIndex = d.lastIndex, t;
	var f = l.groups, p = j9 && c.sticky, m = Z5(g9, c), h = c.source, g = 0, _ = u;
	if (p && (m = Nhe(m, "y", ""), Mhe(m, "g") === -1 && (m += "g"), _ = k9(u, c.lastIndex), c.lastIndex > 0 && (!c.multiline || c.multiline && jhe(u, c.lastIndex - 1) !== "\n") && (h = "(?: " + h + ")", _ = " " + _, g++), n = RegExp("^(?:" + h + ")", m)), M9 && (n = RegExp("^" + h + "$(?!\\s)", m)), A9 && (r = c.lastIndex), i = Z5(D9, p ? n : c, _), p ? i ? (i.input = k9(i.input, g), i[0] = k9(i[0], g), i.index = c.lastIndex, c.lastIndex += i[0].length) : c.lastIndex = 0 : A9 && i && (c.lastIndex = c.global ? i.index + i[0].length : r), M9 && i && i.length > 1 && Z5(Ahe, i[0], n, (function() {
		for (a = 1; a < arguments.length - 2; a++) arguments[a] === void 0 && (i[a] = void 0);
	})), i && f) for (i.groups = o = whe(null), a = 0; a < f.length; a++) o[(s = f[a])[0]] = i[s[1]];
	return i;
});
var N9 = O9;
s9({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== N9
}, { exec: N9 });
var P9 = Function.prototype, F9 = P9.apply, Phe = P9.bind, I9 = P9.call, Fhe = typeof Reflect == "object" && Reflect.apply || (Phe ? I9.bind(F9) : function() {
	return I9.apply(F9, arguments);
}), Ihe = V5("species"), L9 = RegExp.prototype, Lhe = V5("match"), Rhe = h5.TypeError, zhe = V5("species"), Bhe = S5("".charAt), R9 = S5("".charCodeAt), Vhe = S5("".slice), Hhe = function(e) {
	return function(t, n) {
		var r, i, a = h9(C5(t)), o = P7(n), s = a.length;
		return o < 0 || o >= s ? e ? "" : void 0 : (r = R9(a, o)) < 55296 || r > 56319 || o + 1 === s || (i = R9(a, o + 1)) < 56320 || i > 57343 ? e ? Bhe(a, o) : r : e ? Vhe(a, o, o + 2) : i - 56320 + (r - 55296 << 10) + 65536;
	};
}(!0), Uhe = function(e, t, n) {
	return t + (n ? Hhe(e, t).length : 1);
}, Whe = h5.Array, Ghe = Math.max, z9 = function(e, t, n) {
	for (var r, i, a, o, s = I7(e), c = t9(t, s), l = t9(n === void 0 ? s : n, s), u = Whe(Ghe(l - c, 0)), d = 0; c < l; c++, d++) r = u, i = d, a = e[c], (o = r7(i)) in r ? a7.f(r, o, o7(0, a)) : r[o] = a;
	return u.length = d, u;
}, Khe = h5.TypeError, B9 = function(e, t) {
	var n = e.exec;
	if (D5(n)) {
		var r = Z5(n, e, t);
		return r !== null && Y5(r), r;
	}
	if (T7(e) === "RegExp") return Z5(N9, e, t);
	throw Khe("RegExp#exec called on incompatible receiver");
}, V9 = y9.UNSUPPORTED_Y, qhe = Math.min, H9 = [].push, Jhe = S5(/./.exec), U9 = S5(H9), W9 = S5("".slice);
(function(e, t, n, r) {
	var i = V5(e), a = !F5((function() {
		var t = {};
		return t[i] = function() {
			return 7;
		}, ""[e](t) != 7;
	})), o = a && !F5((function() {
		var e = !1, t = /a/;
		return (t = {}).constructor = {}, t.constructor[Ihe] = function() {
			return t;
		}, t.flags = "", t[i] = /./[i], t.exec = function() {
			return e = !0, null;
		}, t[i](""), !e;
	}));
	if (!a || !o || n) {
		var s = S5(/./[i]), c = function(e, t, n) {
			var r;
			return r = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(e, n) {
				var r, i, a = h9(C5(this)), o = n === void 0 ? 4294967295 : n >>> 0;
				if (o === 0) return [];
				if (e === void 0) return [a];
				if (!G5(r = e) || !((i = r[Lhe]) === void 0 ? T7(r) == "RegExp" : i)) return Z5(t, a, e, o);
				for (var s, c, l, u = [], d = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), f = 0, p = new RegExp(e.source, d + "g"); (s = Z5(N9, p, a)) && !((c = p.lastIndex) > f && (U9(u, W9(a, f, s.index)), s.length > 1 && s.index < a.length && Fhe(H9, u, z9(s, 1)), l = s[0].length, f = c, u.length >= o));) p.lastIndex === s.index && p.lastIndex++;
				return f === a.length ? !l && Jhe(p, "") || U9(u, "") : U9(u, W9(a, f)), u.length > o ? z9(u, 0, o) : u;
			} : "0".split(void 0, 0).length ? function(e, n) {
				return e === void 0 && n === 0 ? [] : Z5(t, this, e, n);
			} : t, [function(t, n) {
				var i = C5(this), a = t == null ? void 0 : n7(t, e);
				return a ? Z5(a, t, i, n) : Z5(r, h9(i), t, n);
			}, function(e, i) {
				var a = Y5(this), o = h9(e), s = n(r, a, o, i, r !== t);
				if (s.done) return s.value;
				var c = function(e, t) {
					var n, r = Y5(e).constructor;
					return r === void 0 || (n = Y5(r)[zhe]) == null ? t : function(e) {
						if (H7(e)) return e;
						throw Rhe(e7(e) + " is not a constructor");
					}(n);
				}(a, RegExp), l = a.unicode, u = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (V9 ? "g" : "y"), d = new c(V9 ? "^(?:" + a.source + ")" : a, u), f = i === void 0 ? 4294967295 : i >>> 0;
				if (f === 0) return [];
				if (o.length === 0) return B9(d, o) === null ? [o] : [];
				for (var p = 0, m = 0, h = []; m < o.length;) {
					d.lastIndex = V9 ? 0 : m;
					var g, _ = B9(d, V9 ? W9(o, m) : o);
					if (_ === null || (g = qhe(F7(d.lastIndex + (V9 ? m : 0)), o.length)) === p) m = Uhe(o, m, l);
					else {
						if (U9(h, W9(o, p, m)), h.length === f) return h;
						for (var v = 1; v <= _.length - 1; v++) if (U9(h, _[v]), h.length === f) return h;
						m = p = g;
					}
				}
				return U9(h, W9(o, p)), h;
			}];
		}(i, ""[e], (function(e, t, n, r, i) {
			var o = S5(e), c = t.exec;
			return c === N9 || c === L9.exec ? a && !i ? {
				done: !0,
				value: s(t, n, r)
			} : {
				done: !0,
				value: o(n, t, r)
			} : { done: !1 };
		}));
		w7(String.prototype, e, c[0]), w7(L9, i, c[1]);
	}
	r && s7(L9[i], "sham", !0);
})("split", 0, !!F5((function() {
	var e = /(?:)/, t = e.exec;
	e.exec = function() {
		return t.apply(this, arguments);
	};
	var n = "ab".split(e);
	return n.length !== 2 || n[0] !== "a" || n[1] !== "b";
})), V9), s9({ global: !0 }, { globalThis: h5 }), $u && (V.fn.attr = $u);
var Yhe = C7.PROPER, G9 = RegExp.prototype, K9 = G9.toString, Xhe = S5(g9), Zhe = F5((function() {
	return K9.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), Qhe = Yhe && K9.name != "toString";
(Zhe || Qhe) && w7(RegExp.prototype, "toString", (function() {
	var e = Y5(this), t = h9(e.source), n = e.flags;
	return "/" + t + "/" + h9(n === void 0 && Q5(G9, e) && !("flags" in G9) ? Xhe(e) : n);
}), { unsafe: !0 });
var $he = function() {
	function e() {
		this.title = q("highLightModule.selectLang"), this.iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z\"></path></svg>", this.tag = "select", this.width = 95, this.selectPanelWidth = 115;
	}
	return e.prototype.getOptions = function(e) {
		var t = [], n = e.getMenuConfig("codeSelectLang").codeLangs, r = n === void 0 ? [] : n;
		t.push({
			text: "plain text",
			value: ""
		}), r.forEach((function(e) {
			var n = e.text, r = e.value;
			t.push({
				text: n,
				value: r
			});
		}));
		var i = this.getValue(e);
		return t.forEach((function(e) {
			e.value === i ? e.selected = !0 : delete e.selected;
		})), t;
	}, e.prototype.isActive = function(e) {
		return !1;
	}, e.prototype.getValue = function(e) {
		var t = this.getSelectCodeElem(e);
		if (t == null || !N.isElement(t)) return "";
		var n = t.language.toString(), r = e.getMenuConfig("codeSelectLang").codeLangs;
		return (r === void 0 ? [] : r).some((function(e) {
			return e.value === n;
		})) ? n : "";
	}, e.prototype.isDisabled = function(e) {
		return e.selection == null || !this.getSelectCodeElem(e);
	}, e.prototype.exec = function(e, t) {
		if (this.getSelectCodeElem(e) != null) {
			var n = { language: t.toString() };
			B.setNodes(e, n, { match: function(e) {
				return K.checkNodeType(e, "code");
			} });
		}
	}, e.prototype.getSelectCodeElem = function(e) {
		var t = K.getSelectedNodeByType(e, "code");
		if (t == null) return null;
		var n = K.getParentNode(e, t);
		return N.isElement(n) && n.type === "pre" ? t : null;
	}, e;
}(), ege = {
	renderStyle: function(e, t) {
		var n = e, r = t, i = "";
		return yhe.forEach((function(e) {
			n[e] && (i = e);
		})), i && function(e, t) {
			e.data ??= {};
			var n = e.data;
			n.props ??= {}, Object.assign(n.props, { className: t });
		}(r, i = "token " + i), r;
	},
	parseStyleHtml: function(e, t, n) {
		var r = V(e);
		if (!N.isElement(t) || K.getNodeType(t) !== "code") return t;
		var i = t, a = r.attr("class") || "";
		return a.indexOf("language-") === 0 ? i.language = a.split("-")[1] || "" : i.language = a.toLowerCase(), i;
	},
	menus: [{
		key: "codeSelectLang",
		factory: function() {
			return new $he();
		},
		config: { codeLangs: [
			{
				text: "CSS",
				value: "css"
			},
			{
				text: "HTML",
				value: "html"
			},
			{
				text: "XML",
				value: "xml"
			},
			{
				text: "Javascript",
				value: "javascript"
			},
			{
				text: "Typescript",
				value: "typescript"
			},
			{
				text: "JSX",
				value: "jsx"
			},
			{
				text: "Go",
				value: "go"
			},
			{
				text: "PHP",
				value: "php"
			},
			{
				text: "C",
				value: "c"
			},
			{
				text: "Python",
				value: "python"
			},
			{
				text: "Java",
				value: "java"
			},
			{
				text: "C++",
				value: "cpp"
			},
			{
				text: "C#",
				value: "csharp"
			},
			{
				text: "Visual Basic",
				value: "visual-basic"
			},
			{
				text: "SQL",
				value: "sql"
			},
			{
				text: "Ruby",
				value: "ruby"
			},
			{
				text: "Swift",
				value: "swift"
			},
			{
				text: "Bash",
				value: "bash"
			},
			{
				text: "Lua",
				value: "lua"
			},
			{
				text: "Groovy",
				value: "groovy"
			},
			{
				text: "Markdown",
				value: "markdown"
			}
		] }
	}],
	elemsToHtml: [{
		type: "code",
		elemToHtml: function(e, t) {
			var n = e.language, r = n === void 0 ? "" : n;
			return "<code " + (r ? "class=\"language-" + r + "\"" : "") + ">" + t + "</code>";
		}
	}]
}, tge = /"/g, q9 = S5("".replace);
s9({
	target: "String",
	proto: !0,
	forced: F5((function() {
		var e = "".anchor("\"");
		return e !== e.toLowerCase() || e.split("\"").length > 3;
	}))
}, { anchor: function(e) {
	return t = e, n = h9(C5(this)), r = "<a", (r += " name=\"" + q9(h9(t), tge, "&quot;") + "\"") + ">" + n + "</a>";
	var t, n, r;
} });
var J9 = function(e) {
	var t, n, r, i = function(e, t) {
		var n = typeof Symbol == "function" && e[Symbol.iterator];
		if (!n) return e;
		var r, i, a = n.call(e), o = [];
		try {
			for (; (t === void 0 || t-- > 0) && !(r = a.next()).done;) o.push(r.value);
		} catch (e) {
			i = { error: e };
		} finally {
			try {
				r && !r.done && (n = a.return) && n.call(a);
			} finally {
				if (i) throw i.error;
			}
		}
		return o;
	}(e, 2), a = i[0], o = i[1], s = [], c = function(e) {
		if (!z.isText(e)) return null;
		var t = K.getParentNode(null, e);
		if (t && K.getNodeType(t) === "code") {
			var n = K.getParentNode(null, t);
			if (n && K.getNodeType(n) === "pre") return t;
		}
		return null;
	}(a);
	if (c == null) return s;
	var l = c.language, u = l === void 0 ? "" : l;
	if (!u) return s;
	var d = function(e, t) {
		if (!t) return [];
		var n = f9.languages[t];
		return n ? f9.tokenize(e.text, n) : [];
	}(a, u), f = 0;
	try {
		for (var p = function(e) {
			var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
			if (n) return n.call(e);
			if (e && typeof e.length == "number") return { next: function() {
				return e && r >= e.length && (e = void 0), {
					value: e && e[r++],
					done: !e
				};
			} };
			throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
		}(d), m = p.next(); !m.done; m = p.next()) {
			var h = m.value, g = f + p9(h);
			typeof h != "string" && s.push(((r = {})[h.type] = !0, r.anchor = {
				path: o,
				offset: f
			}, r.focus = {
				path: o,
				offset: g
			}, r)), f = g;
		}
	} catch (e) {
		t = { error: e };
	} finally {
		try {
			m && !m.done && (n = p.return) && n.call(p);
		} finally {
			if (t) throw t.error;
		}
	}
	return s;
}, Y9 = function() {
	return Y9 = Object.assign || function(e) {
		for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
		return e;
	}, Y9.apply(this, arguments);
}, X9 = function() {
	function e() {
		throw Error("不能实例化\nCan not construct a instance");
	}
	return e.setEditorConfig = function(e) {
		e === void 0 && (e = {}), this.editorConfig = Y9(Y9({}, this.editorConfig), e);
	}, e.setSimpleEditorConfig = function(e) {
		e === void 0 && (e = {}), this.simpleEditorConfig = Y9(Y9({}, this.simpleEditorConfig), e);
	}, e.setToolbarConfig = function(e) {
		e === void 0 && (e = {}), this.toolbarConfig = Y9(Y9({}, this.toolbarConfig), e);
	}, e.setSimpleToolbarConfig = function(e) {
		e === void 0 && (e = {}), this.simpleToolbarConfig = Y9(Y9({}, this.simpleToolbarConfig), e);
	}, e.registerPlugin = function(e) {
		this.plugins.push(e);
	}, e.registerMenu = function(e, t) {
		(function(e, t) {
			var n = e.key, r = e.factory, i = e.config, a = tx(tx({}, i), t || {});
			if (OS[n] != null) throw Error("Duplicated key '" + n + "' in menu items");
			OS[n] = r, function(e, t) {
				t != null && (DS[e] = t);
			}(n, a);
		})(e, t);
	}, e.registerRenderElem = function(e) {
		(function(e) {
			var t = e.type;
			iT[t || ""] = e.renderElem;
		})(e);
	}, e.registerRenderStyle = function(e) {
		(function(e) {
			rT.push(e);
		})(e);
	}, e.registerElemToHtml = function(e) {
		(function(e) {
			var t = e.type;
			PS[t || ""] = e.elemToHtml;
		})(e);
	}, e.registerStyleToHtml = function(e) {
		(function(e) {
			NS.push(e);
		})(e);
	}, e.registerPreParseHtml = function(e) {
		(function(e) {
			tw.push(e);
		})(e);
	}, e.registerParseElemHtml = function(e) {
		(function(e) {
			var t = e.selector;
			rw[t] = e.parseElemHtml;
		})(e);
	}, e.registerParseStyleHtml = function(e) {
		(function(e) {
			nw.push(e);
		})(e);
	}, e.registerModule = function(e) {
		Z9(e);
	}, e.editorConfig = {}, e.simpleEditorConfig = {}, e.toolbarConfig = {}, e.simpleToolbarConfig = {}, e.plugins = [], e;
}();
function Z9(e) {
	var t = e.menus, n = e.renderElems, r = e.renderStyle, i = e.elemsToHtml, a = e.styleToHtml, o = e.preParseHtml, s = e.parseElemsHtml, c = e.parseStyleHtml, l = e.editorPlugin;
	t && t.forEach((function(e) {
		return X9.registerMenu(e);
	})), n && n.forEach((function(e) {
		return X9.registerRenderElem(e);
	})), r && X9.registerRenderStyle(r), i && i.forEach((function(e) {
		return X9.registerElemToHtml(e);
	})), a && X9.registerStyleToHtml(a), o && o.forEach((function(e) {
		return X9.registerPreParseHtml(e);
	})), s && s.forEach((function(e) {
		return X9.registerParseElemHtml(e);
	})), c && X9.registerParseStyleHtml(c), l && X9.registerPlugin(l);
}
Mle.forEach((function(e) {
	return Z9(e);
})), Z9(gU), Z9(XJ), Z9(wde), Z9(pme), Z9(ege);
var Q9 = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z\"></path></svg>", $9 = {
	link: { menuKeys: [
		"editLink",
		"unLink",
		"viewLink"
	] },
	image: { menuKeys: [
		"imageWidth30",
		"imageWidth50",
		"imageWidth100",
		"editImage",
		"viewImageLink",
		"deleteImage"
	] },
	pre: { menuKeys: [
		"enter",
		"codeBlock",
		"codeSelectLang"
	] },
	table: { menuKeys: [
		"enter",
		"tableHeader",
		"tableFullWidth",
		"insertTableRow",
		"deleteTableRow",
		"insertTableCol",
		"deleteTableCol",
		"deleteTable"
	] },
	divider: { menuKeys: ["enter"] },
	video: { menuKeys: ["enter", "editVideoSize"] }
}, nge = { hoverbarKeys: Y9(Y9({}, $9), { text: { menuKeys: [
	"headerSelect",
	"insertLink",
	"bulletedList",
	"|",
	"bold",
	"through",
	"color",
	"bgColor",
	"clearStyle"
] } }) };
X9.setEditorConfig(Y9(Y9({}, nge), { decorate: J9 }));
var rge = { hoverbarKeys: $9 };
X9.setSimpleEditorConfig(Y9(Y9({}, rge), { decorate: J9 }));
var ige = { toolbarKeys: [
	"headerSelect",
	"blockquote",
	"|",
	"bold",
	"underline",
	"italic",
	{
		key: "group-more-style",
		title: q("editor.more"),
		iconSvg: "<svg viewBox=\"0 0 1024 1024\"><path d=\"M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z\"></path><path d=\"M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z\"></path><path d=\"M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z\"></path></svg>",
		menuKeys: [
			"through",
			"code",
			"sup",
			"sub",
			"clearStyle"
		]
	},
	"color",
	"bgColor",
	"|",
	"fontSize",
	"fontFamily",
	"lineHeight",
	"|",
	"bulletedList",
	"numberedList",
	"todo",
	{
		key: "group-justify",
		title: q("editor.justify"),
		iconSvg: "<svg viewBox=\"0 0 1024 1024\"><path d=\"M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z\"></path></svg>",
		menuKeys: [
			"justifyLeft",
			"justifyRight",
			"justifyCenter",
			"justifyJustify"
		]
	},
	{
		key: "group-indent",
		title: q("editor.indent"),
		iconSvg: "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z\"></path></svg>",
		menuKeys: ["indent", "delIndent"]
	},
	"|",
	"emotion",
	"insertLink",
	{
		key: "group-image",
		title: q("editor.image"),
		iconSvg: Q9,
		menuKeys: ["insertImage", "uploadImage"]
	},
	{
		key: "group-video",
		title: q("editor.video"),
		iconSvg: "<svg viewBox=\"0 0 1024 1024\"><path d=\"M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z\"></path></svg>",
		menuKeys: ["insertVideo", "uploadVideo"]
	},
	"insertTable",
	"codeBlock",
	"divider",
	"|",
	"undo",
	"redo",
	"|",
	"fullScreen"
] };
X9.setToolbarConfig(ige);
var age = { toolbarKeys: [
	"blockquote",
	"header1",
	"header2",
	"header3",
	"|",
	"bold",
	"underline",
	"italic",
	"through",
	"color",
	"bgColor",
	"clearStyle",
	"|",
	"bulletedList",
	"numberedList",
	"todo",
	"justifyLeft",
	"justifyRight",
	"justifyCenter",
	"|",
	"insertLink",
	{
		key: "group-image",
		title: q("editor.image"),
		iconSvg: Q9,
		menuKeys: ["insertImage", "uploadImage"]
	},
	"insertVideo",
	"insertTable",
	"codeBlock",
	"|",
	"undo",
	"redo",
	"|",
	"fullScreen"
] };
function oge(e) {
	e === void 0 && (e = {});
	var t = e.selector, n = t === void 0 ? "" : t, r = e.content, i = r === void 0 ? [] : r, a = e.html, o = e.config, s = o === void 0 ? {} : o, c = e.mode, l = (c === void 0 ? "default" : c) === "simple" ? X9.simpleEditorConfig : X9.editorConfig, u = Y9(Y9({}, l.hoverbarKeys || {}), s.hoverbarKeys || {});
	return ZT({
		selector: n,
		config: Y9(Y9(Y9({}, l), s), { hoverbarKeys: u }),
		content: i,
		html: a,
		plugins: X9.plugins
	});
}
function sge(e) {
	var t = e.selector, n = e.editor, r = e.config, i = r === void 0 ? {} : r, a = e.mode, o = a === void 0 ? "default" : a;
	if (!t) throw Error("Cannot find 'selector' when create toolbar");
	var s = o === "simple" ? X9.simpleToolbarConfig : X9.toolbarConfig;
	return function(e, t) {
		if (e == null) throw Error("Cannot create toolbar, because editor is null");
		var n = t.selector, r = t.config, i = r === void 0 ? {} : r;
		if (function(e, t) {
			return bw(e, "data-w-e-toolbar", t);
		}(e, n)) throw Error("Repeated create toolbar by selector '" + n + "'");
		var a = new yoe(n, tx({
			toolbarKeys: [],
			excludeKeys: [],
			insertKeys: {
				index: 0,
				keys: []
			},
			modalAppendToBody: !1
		}, i || {}));
		return Vx.set(a, e), Hx.set(e, a), a;
	}(n, {
		selector: t,
		config: Y9(Y9({}, s), i)
	});
}
X9.setSimpleToolbarConfig(age);
//#endregion
export { K as DomEditor, oge as createEditor, sge as createToolbar };

//# sourceMappingURL=index.esm-Denfxe5W.js.map