UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

28,242 lines 1.05 MB
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function t(x) {
	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
}
function n(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var r, o, i = function(x) {
	return x && x.Math == Math && x;
}, a = i(typeof globalThis == "object" && globalThis) || i(typeof window == "object" && window) || i(typeof self == "object" && self) || i(typeof e == "object" && e) || function() {
	return this;
}() || Function("return this")(), u = Function.prototype, s = u.apply, l = u.bind, c = u.call, f = typeof Reflect == "object" && Reflect.apply || (l ? c.bind(s) : function() {
	return c.apply(s, arguments);
}), d = Function.prototype, p = d.bind, h = d.call, g = p && p.bind(h), v = p ? function(x) {
	return x && g(h, x);
} : function(x) {
	return x && function() {
		return h.apply(x, arguments);
	};
}, y = function(x) {
	return typeof x == "function";
}, m = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, b = !m((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), w = Function.prototype.call, E = w.bind ? w.bind(w) : function() {
	return w.apply(w, arguments);
}, D = {}.propertyIsEnumerable, S = Object.getOwnPropertyDescriptor, C = { f: S && !D.call({ 1: 2 }, 1) ? function(x) {
	var Be = S(this, x);
	return !!Be && Be.enumerable;
} : D }, A = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, O = v({}.toString), k = v("".slice), B = function(x) {
	return k(O(x), 8, -1);
}, F = a.Object, T = v("".split), _ = m((function() {
	return !F("z").propertyIsEnumerable(0);
})) ? function(x) {
	return B(x) == "String" ? T(x, "") : F(x);
} : F, P = a.TypeError, j = function(x) {
	if (x == null) throw P("Can't call method on " + x);
	return x;
}, N = function(x) {
	return _(j(x));
}, I = function(x) {
	return typeof x == "object" ? x !== null : y(x);
}, L = {}, R = function(x) {
	return y(x) ? x : void 0;
}, M = function(x, Be) {
	return arguments.length < 2 ? R(L[x]) || R(a[x]) : L[x] && L[x][Be] || a[x] && a[x][Be];
}, z = v({}.isPrototypeOf), $ = M("navigator", "userAgent") || "", H = a.process, V = a.Deno, U = H && H.versions || V && V.version, W = U && U.v8;
W && (o = (r = W.split("."))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !o && $ && (!(r = $.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = $.match(/Chrome\/(\d+)/)) && (o = +r[1]);
var G, q = o, K = !!Object.getOwnPropertySymbols && !m((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && q && q < 41;
})), Y = K && !Symbol.sham && typeof Symbol.iterator == "symbol", X = a.Object, Z = Y ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = M("Symbol");
	return y(Be) && z(Be.prototype, X(x));
}, J = a.String, Q = function(x) {
	try {
		return J(x);
	} catch {
		return "Object";
	}
}, ee = a.TypeError, te = function(x) {
	if (y(x)) return x;
	throw ee(Q(x) + " is not a function");
}, ne = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : te(We);
}, re = a.TypeError, oe = Object.defineProperty, ie = a["__core-js_shared__"] || function(x, Be) {
	try {
		oe(a, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		a[x] = Be;
	}
	return Be;
}("__core-js_shared__", {}), ae = n((function(x) {
	(x.exports = function(x, Be) {
		return ie[x] || (ie[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "pure",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), ue = a.Object, se = function(x) {
	return ue(j(x));
}, le = v({}.hasOwnProperty), ce = Object.hasOwn || function(x, Be) {
	return le(se(x), Be);
}, fe = 0, de = Math.random(), pe = v(1 .toString), he = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + pe(++fe + de, 36);
}, ge = ae("wks"), ve = a.Symbol, ye = ve && ve.for, me = Y ? ve : ve && ve.withoutSetter || he, be = function(x) {
	if (!ce(ge, x) || !K && typeof ge[x] != "string") {
		var Be = "Symbol." + x;
		K && ce(ve, x) ? ge[x] = ve[x] : ge[x] = Y && ye ? ye(Be) : me(Be);
	}
	return ge[x];
}, we = a.TypeError, Ee = be("toPrimitive"), De = function(x, Be) {
	if (!I(x) || Z(x)) return x;
	var We, St = ne(x, Ee);
	if (St) {
		if (Be === void 0 && (Be = "default"), We = E(St, x, Be), !I(We) || Z(We)) return We;
		throw we("Can't convert object to primitive value");
	}
	return Be === void 0 && (Be = "number"), function(x, Be) {
		var We, St;
		if (Be === "string" && y(We = x.toString) && !I(St = E(We, x)) || y(We = x.valueOf) && !I(St = E(We, x)) || Be !== "string" && y(We = x.toString) && !I(St = E(We, x))) return St;
		throw re("Can't convert object to primitive value");
	}(x, Be);
}, Se = function(x) {
	var Be = De(x, "string");
	return Z(Be) ? Be : Be + "";
}, xe = a.document, Ce = I(xe) && I(xe.createElement), Ae = function(x) {
	return Ce ? xe.createElement(x) : {};
}, Oe = !b && !m((function() {
	return Object.defineProperty(Ae("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), ke = Object.getOwnPropertyDescriptor, Fe = { f: b ? ke : function(x, Be) {
	if (x = N(x), Be = Se(Be), Oe) try {
		return ke(x, Be);
	} catch {}
	if (ce(x, Be)) return A(!E(C.f, x, Be), x[Be]);
} }, Te = /#|\.prototype\./, _e = function(x, Be) {
	var We = je[Pe(x)];
	return We == Ie || We != Ne && (y(Be) ? m(Be) : !!Be);
}, Pe = _e.normalize = function(x) {
	return String(x).replace(Te, ".").toLowerCase();
}, je = _e.data = {}, Ne = _e.NATIVE = "N", Ie = _e.POLYFILL = "P", Le = _e, Re = v(v.bind), Me = function(x, Be) {
	return te(x), Be === void 0 ? x : Re ? Re(x, Be) : function() {
		return x.apply(Be, arguments);
	};
}, ze = a.String, $e = a.TypeError, He = function(x) {
	if (I(x)) return x;
	throw $e(ze(x) + " is not an object");
}, Ve = a.TypeError, Ue = Object.defineProperty, Ge = { f: b ? Ue : function(x, Be, We) {
	if (He(x), Be = Se(Be), He(We), Oe) try {
		return Ue(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw Ve("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, qe = b ? function(x, Be, We) {
	return Ge.f(x, Be, A(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, Ke = Fe.f, Ye = function(x) {
	var Be = function(We, St, Kn) {
		if (this instanceof Be) {
			switch (arguments.length) {
				case 0: return new x();
				case 1: return new x(We);
				case 2: return new x(We, St);
			}
			return new x(We, St, Kn);
		}
		return f(x, this, arguments);
	};
	return Be.prototype = x.prototype, Be;
}, Xe = function(x, Be) {
	var We, St, Kn, _r, fa, Vo, Xo, Tc, Tl = x.target, Al = x.global, Uu = x.stat, Ff = x.proto, Lm = Al ? a : Uu ? a[Tl] : (a[Tl] || {}).prototype, uy = Al ? L : L[Tl] || qe(L, Tl, {})[Tl], dx = uy.prototype;
	for (Kn in Be) We = !Le(Al ? Kn : Tl + (Uu ? "." : "#") + Kn, x.forced) && Lm && ce(Lm, Kn), fa = uy[Kn], We && (Vo = x.noTargetGet ? (Tc = Ke(Lm, Kn)) && Tc.value : Lm[Kn]), _r = We && Vo ? Vo : Be[Kn], We && typeof fa == typeof _r || (Xo = x.bind && We ? Me(_r, a) : x.wrap && We ? Ye(_r) : Ff && y(_r) ? v(_r) : _r, (x.sham || _r && _r.sham || fa && fa.sham) && qe(Xo, "sham", !0), qe(uy, Kn, Xo), Ff && (ce(L, St = Tl + "Prototype") || qe(L, St, {}), qe(L[St], Kn, _r), x.real && dx && !dx[Kn] && qe(dx, Kn, _r)));
}, Ze = ae("keys"), Je = function(x) {
	return Ze[x] || (Ze[x] = he(x));
}, Qe = !m((function() {
	function x() {}
	return x.prototype.constructor = null, Object.getPrototypeOf(new x()) !== x.prototype;
})), et = Je("IE_PROTO"), tt = a.Object, nt = tt.prototype, rt = Qe ? tt.getPrototypeOf : function(x) {
	var Be = se(x);
	if (ce(Be, et)) return Be[et];
	var We = Be.constructor;
	return y(We) && Be instanceof We ? We.prototype : Be instanceof tt ? nt : null;
}, ot = a.String, it = a.TypeError, at = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var x, Be = !1, We = {};
	try {
		(x = v(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(We, []), Be = We instanceof Array;
	} catch {}
	return function(We, St) {
		return He(We), function(x) {
			if (typeof x == "object" || y(x)) return x;
			throw it("Can't set " + ot(x) + " as a prototype");
		}(St), Be ? x(We, St) : We.__proto__ = St, We;
	};
}() : void 0), ut = Math.ceil, st = Math.floor, lt = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? st : ut)(Be);
}, ct = Math.max, ft = Math.min, dt = function(x, Be) {
	var We = lt(x);
	return We < 0 ? ct(We + Be, 0) : ft(We, Be);
}, pt = Math.min, ht = function(x) {
	return (Be = x.length) > 0 ? pt(lt(Be), 9007199254740991) : 0;
	var Be;
}, gt = function(x) {
	return function(Be, We, St) {
		var Kn, _r = N(Be), Li = ht(_r), fa = dt(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}, vt = {
	includes: gt(!0),
	indexOf: gt(!1)
}, yt = {}, mt = vt.indexOf, bt = v([].push), wt = function(x, Be) {
	var We, St = N(x), Kn = 0, _r = [];
	for (We in St) !ce(yt, We) && ce(St, We) && bt(_r, We);
	for (; Be.length > Kn;) ce(St, We = Be[Kn++]) && (~mt(_r, We) || bt(_r, We));
	return _r;
}, Et = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], Dt = Et.concat("length", "prototype"), xt = { f: Object.getOwnPropertyNames || function(x) {
	return wt(x, Dt);
} }, Ct = { f: Object.getOwnPropertySymbols }, At = v([].concat), Ot = M("Reflect", "ownKeys") || function(x) {
	var Be = xt.f(He(x)), We = Ct.f;
	return We ? At(Be, We(x)) : Be;
}, kt = Object.keys || function(x) {
	return wt(x, Et);
}, Bt = b ? Object.defineProperties : function(x, Be) {
	He(x);
	for (var We, St = N(Be), Kn = kt(Be), _r = Kn.length, Li = 0; _r > Li;) Ge.f(x, We = Kn[Li++], St[We]);
	return x;
}, Ft = M("document", "documentElement"), Tt = Je("IE_PROTO"), _t = function() {}, Pt = function(x) {
	return "<script>" + x + "<\/script>";
}, jt = function(x) {
	x.write(Pt("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, Nt = function() {
	try {
		G = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	Nt = typeof document < "u" ? document.domain && G ? jt(G) : ((Be = Ae("iframe")).style.display = "none", Ft.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(Pt("document.F=Object")), x.close(), x.F) : jt(G);
	for (var We = Et.length; We--;) delete Nt.prototype[Et[We]];
	return Nt();
};
yt[Tt] = !0;
var It = Object.create || function(x, Be) {
	var We;
	return x === null ? We = Nt() : (_t.prototype = He(x), We = new _t(), _t.prototype = null, We[Tt] = x), Be === void 0 ? We : Bt(We, Be);
}, Lt = function(x, Be, We) {
	var St = Se(Be);
	St in x ? Ge.f(x, St, A(0, We)) : x[St] = We;
}, Rt = a.Array, Mt = Math.max, zt = function(x, Be, We) {
	for (var St = ht(x), Kn = dt(Be, St), _r = dt(We === void 0 ? St : We, St), Li = Rt(Mt(_r - Kn, 0)), fa = 0; Kn < _r; Kn++, fa++) Lt(Li, fa, x[Kn]);
	return Li.length = fa, Li;
}, $t = v("".replace), Ht = v("".split), Vt = v([].join), Ut = String(Error("zxcasd").stack), Wt = /\n\s*at [^:]*:[^\n]*/, Gt = Wt.test(Ut), qt = /@[^\n]*\n/.test(Ut) && !/zxcasd/.test(Ut), Kt = function(x, Be) {
	if (typeof x != "string") return x;
	if (Gt) for (; Be--;) x = $t(x, Wt, "");
	else if (qt) return Vt(zt(Ht(x, "\n"), Be), "\n");
	return x;
}, Yt = function(x, Be) {
	I(Be) && "cause" in Be && qe(x, "cause", Be.cause);
}, Xt = {}, Zt = be("iterator"), Jt = Array.prototype, Qt = {};
Qt[be("toStringTag")] = "z";
var en = String(Qt) === "[object z]", tn = be("toStringTag"), nn = a.Object, rn = B(function() {
	return arguments;
}()) == "Arguments", on = en ? B : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = nn(x), tn)) == "string" ? We : rn ? B(Be) : (St = B(Be)) == "Object" && y(Be.callee) ? "Arguments" : St;
}, an = be("iterator"), un = function(x) {
	if (x != null) return ne(x, an) || ne(x, "@@iterator") || Xt[on(x)];
}, sn = a.TypeError, ln = function(x, Be, We) {
	var St, Kn;
	He(x);
	try {
		if (!(St = ne(x, "return"))) {
			if (Be === "throw") throw We;
			return We;
		}
		St = E(St, x);
	} catch (x) {
		Kn = !0, St = x;
	}
	if (Be === "throw") throw We;
	if (Kn) throw St;
	return He(St), We;
}, cn = a.TypeError, fn = function(x, Be) {
	this.stopped = x, this.result = Be;
}, dn = fn.prototype, pn = function(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo, Tc = We && We.that, Tl = !(!We || !We.AS_ENTRIES), Al = !(!We || !We.IS_ITERATOR), Uu = !(!We || !We.INTERRUPTED), Ff = Me(Be, Tc), Lm = function(x) {
		return St && ln(St, "normal", x), new fn(!0, x);
	}, Bm = function(x) {
		return Tl ? (He(x), Uu ? Ff(x[0], x[1], Lm) : Ff(x[0], x[1])) : Uu ? Ff(x, Lm) : Ff(x);
	};
	if (Al) St = x;
	else {
		if (!(Kn = un(x))) throw cn(Q(x) + " is not iterable");
		if (function(x) {
			return x !== void 0 && (Xt.Array === x || Jt[Zt] === x);
		}(Kn)) {
			for (_r = 0, Li = ht(x); Li > _r; _r++) if ((fa = Bm(x[_r])) && z(dn, fa)) return fa;
			return new fn(!1);
		}
		St = function(x, Be) {
			var We = arguments.length < 2 ? un(x) : Be;
			if (te(We)) return He(E(We, x));
			throw sn(Q(x) + " is not iterable");
		}(x, Kn);
	}
	for (Vo = St.next; !(Xo = E(Vo, St)).done;) {
		try {
			fa = Bm(Xo.value);
		} catch (x) {
			ln(St, "throw", x);
		}
		if (typeof fa == "object" && fa && z(dn, fa)) return fa;
	}
	return new fn(!1);
}, hn = a.String, gn = function(x) {
	if (on(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return hn(x);
}, vn = function(x, Be) {
	return x === void 0 ? arguments.length < 2 ? "" : Be : gn(x);
}, yn = !m((function() {
	var x = Error("a");
	return !("stack" in x) || (Object.defineProperty(x, "stack", A(1, 7)), x.stack !== 7);
})), mn = be("toStringTag"), bn = a.Error, wn = [].push, En = function(x, Be) {
	var We, St = arguments.length > 2 ? arguments[2] : void 0, Kn = z(Dn, this);
	at ? We = at(new bn(void 0), Kn ? rt(this) : Dn) : (We = Kn ? this : It(Dn), qe(We, mn, "Error")), qe(We, "message", vn(Be, "")), yn && qe(We, "stack", Kt(We.stack, 1)), Yt(We, St);
	var _r = [];
	return pn(x, wn, { that: _r }), qe(We, "errors", _r), We;
};
at ? at(En, bn) : function(x, Be) {
	for (var We = Ot(Be), St = Ge.f, Kn = Fe.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		ce(x, Li) || St(x, Li, Kn(Be, Li));
	}
}(En, bn);
var Dn = En.prototype = It(bn.prototype, {
	constructor: A(1, En),
	message: A(1, ""),
	name: A(1, "AggregateError")
});
Xe({ global: !0 }, { AggregateError: En });
var Sn = v(Function.toString);
y(ie.inspectSource) || (ie.inspectSource = function(x) {
	return Sn(x);
});
var xn, Cn, An, On = ie.inspectSource, kn = a.WeakMap, Bn = y(kn) && /native code/.test(On(kn)), Fn = a.TypeError, Tn = a.WeakMap;
if (Bn || ie.state) {
	var _n = ie.state ||= new Tn(), Pn = v(_n.get), jn = v(_n.has), Nn = v(_n.set);
	xn = function(x, Be) {
		if (jn(_n, x)) throw new Fn("Object already initialized");
		return Be.facade = x, Nn(_n, x, Be), Be;
	}, Cn = function(x) {
		return Pn(_n, x) || {};
	}, An = function(x) {
		return jn(_n, x);
	};
} else {
	var In = Je("state");
	yt[In] = !0, xn = function(x, Be) {
		if (ce(x, In)) throw new Fn("Object already initialized");
		return Be.facade = x, qe(x, In, Be), Be;
	}, Cn = function(x) {
		return ce(x, In) ? x[In] : {};
	}, An = function(x) {
		return ce(x, In);
	};
}
var Ln, Rn, Mn, zn = {
	set: xn,
	get: Cn,
	has: An,
	enforce: function(x) {
		return An(x) ? Cn(x) : xn(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!I(Be) || (We = Cn(Be)).type !== x) throw Fn("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, $n = Function.prototype, Hn = b && Object.getOwnPropertyDescriptor, Vn = ce($n, "name"), Un = {
	EXISTS: Vn,
	PROPER: Vn && function() {}.name === "something",
	CONFIGURABLE: Vn && (!b || b && Hn($n, "name").configurable)
}, Wn = function(x, Be, We, St) {
	St && St.enumerable ? x[Be] = We : qe(x, Be, We);
}, Gn = be("iterator"), qn = !1;
[].keys && ("next" in (Mn = [].keys()) ? (Rn = rt(rt(Mn))) !== Object.prototype && (Ln = Rn) : qn = !0), Ln = Ln == null || m((function() {
	var x = {};
	return Ln[Gn].call(x) !== x;
})) ? {} : It(Ln), y(Ln[Gn]) || Wn(Ln, Gn, (function() {
	return this;
}));
var Yn = {
	IteratorPrototype: Ln,
	BUGGY_SAFARI_ITERATORS: qn
}, Xn = en ? {}.toString : function() {
	return "[object " + on(this) + "]";
}, Zn = Ge.f, Jn = be("toStringTag"), Qn = function(x, Be, We, St) {
	if (x) {
		var Kn = We ? x : x.prototype;
		ce(Kn, Jn) || Zn(Kn, Jn, {
			configurable: !0,
			value: Be
		}), St && !en && qe(Kn, "toString", Xn);
	}
}, er = Yn.IteratorPrototype, tr = function() {
	return this;
}, nr = Un.PROPER, rr = Yn.BUGGY_SAFARI_ITERATORS, or = be("iterator"), ir = function() {
	return this;
}, ar = function(x, Be, We, St, Kn, _r, Li) {
	(function(x, Be, We, St) {
		var Kn = Be + " Iterator";
		x.prototype = It(er, { next: A(+!St, We) }), Qn(x, Kn, !1, !0), Xt[Kn] = tr;
	})(We, Be, St);
	var fa, Vo, Xo, Tc = function(x) {
		if (x === Kn && Lm) return Lm;
		if (!rr && x in Uu) return Uu[x];
		switch (x) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new We(this, x);
			};
		}
		return function() {
			return new We(this);
		};
	}, Tl = Be + " Iterator", Al = !1, Uu = x.prototype, Ff = Uu[or] || Uu["@@iterator"] || Kn && Uu[Kn], Lm = !rr && Ff || Tc(Kn), Bm = Be == "Array" && Uu.entries || Ff;
	if (Bm && (fa = rt(Bm.call(new x()))) !== Object.prototype && fa.next && (Qn(fa, Tl, !0, !0), Xt[Tl] = ir), nr && Kn == "values" && Ff && Ff.name !== "values" && (Al = !0, Lm = function() {
		return E(Ff, this);
	}), Kn) if (Vo = {
		values: Tc("values"),
		keys: _r ? Lm : Tc("keys"),
		entries: Tc("entries")
	}, Li) for (Xo in Vo) (rr || Al || !(Xo in Uu)) && Wn(Uu, Xo, Vo[Xo]);
	else Xe({
		target: Be,
		proto: !0,
		forced: rr || Al
	}, Vo);
	return Li && Uu[or] !== Lm && Wn(Uu, or, Lm, { name: Kn }), Xt[Be] = Lm, Vo;
}, ur = zn.set, sr = zn.getterFor("Array Iterator");
ar(Array, "Array", (function(x, Be) {
	ur(this, {
		type: "Array Iterator",
		target: N(x),
		index: 0,
		kind: Be
	});
}), (function() {
	var x = sr(this), Be = x.target, We = x.kind, St = x.index++;
	return !Be || St >= Be.length ? (x.target = void 0, {
		value: void 0,
		done: !0
	}) : We == "keys" ? {
		value: St,
		done: !1
	} : We == "values" ? {
		value: Be[St],
		done: !1
	} : {
		value: [St, Be[St]],
		done: !1
	};
}), "values"), Xt.Arguments = Xt.Array;
var lr = v("".charAt), cr = v("".charCodeAt), fr = v("".slice), dr = function(x) {
	return function(Be, We) {
		var St, Kn, _r = gn(j(Be)), Li = lt(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = cr(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = cr(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? lr(_r, Li) : St : x ? fr(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}, pr = {
	codeAt: dr(!1),
	charAt: dr(!0)
}.charAt, hr = zn.set, gr = zn.getterFor("String Iterator");
ar(String, "String", (function(x) {
	hr(this, {
		type: "String Iterator",
		string: gn(x),
		index: 0
	});
}), (function() {
	var x, Be = gr(this), We = Be.string, St = Be.index;
	return St >= We.length ? {
		value: void 0,
		done: !0
	} : (x = pr(We, St), Be.index += x.length, {
		value: x,
		done: !1
	});
}));
var vr = L.AggregateError, yr = be("toStringTag");
for (var mr 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 br = a[mr], wr = br && br.prototype;
	wr && on(wr) !== yr && qe(wr, yr, mr), Xt[mr] = Xt.Array;
}
var Er, Dr, Sr = vr, xr = function(x) {
	return x && x.Math == Math && x;
}, Cr = xr(typeof globalThis == "object" && globalThis) || xr(typeof window == "object" && window) || xr(typeof self == "object" && self) || xr(typeof e == "object" && e) || function() {
	return this;
}() || Function("return this")(), Ar = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, Or = !Ar((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), kr = Function.prototype.call, Br = kr.bind ? kr.bind(kr) : function() {
	return kr.apply(kr, arguments);
}, Fr = {}.propertyIsEnumerable, Tr = Object.getOwnPropertyDescriptor, Pr = { f: Tr && !Fr.call({ 1: 2 }, 1) ? function(x) {
	var Be = Tr(this, x);
	return !!Be && Be.enumerable;
} : Fr }, jr = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, Nr = Function.prototype, Ir = Nr.bind, Lr = Nr.call, Rr = Ir && Ir.bind(Lr), Mr = Ir ? function(x) {
	return x && Rr(Lr, x);
} : function(x) {
	return x && function() {
		return Lr.apply(x, arguments);
	};
}, zr = Mr({}.toString), $r = Mr("".slice), Hr = function(x) {
	return $r(zr(x), 8, -1);
}, Vr = Cr.Object, Ur = Mr("".split), Wr = Ar((function() {
	return !Vr("z").propertyIsEnumerable(0);
})) ? function(x) {
	return Hr(x) == "String" ? Ur(x, "") : Vr(x);
} : Vr, Gr = Cr.TypeError, qr = function(x) {
	if (x == null) throw Gr("Can't call method on " + x);
	return x;
}, Kr = function(x) {
	return Wr(qr(x));
}, Yr = function(x) {
	return typeof x == "function";
}, Xr = function(x) {
	return typeof x == "object" ? x !== null : Yr(x);
}, Zr = function(x) {
	return Yr(x) ? x : void 0;
}, Jr = function(x, Be) {
	return arguments.length < 2 ? Zr(Cr[x]) : Cr[x] && Cr[x][Be];
}, Qr = Mr({}.isPrototypeOf), eo = Jr("navigator", "userAgent") || "", to = Cr.process, no = Cr.Deno, ro = to && to.versions || no && no.version, oo = ro && ro.v8;
oo && (Dr = (Er = oo.split("."))[0] > 0 && Er[0] < 4 ? 1 : +(Er[0] + Er[1])), !Dr && eo && (!(Er = eo.match(/Edge\/(\d+)/)) || Er[1] >= 74) && (Er = eo.match(/Chrome\/(\d+)/)) && (Dr = +Er[1]);
var io = Dr, ao = !!Object.getOwnPropertySymbols && !Ar((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && io && io < 41;
})), uo = ao && !Symbol.sham && typeof Symbol.iterator == "symbol", so = Cr.Object, lo = uo ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = Jr("Symbol");
	return Yr(Be) && Qr(Be.prototype, so(x));
}, co = Cr.String, fo = function(x) {
	try {
		return co(x);
	} catch {
		return "Object";
	}
}, po = Cr.TypeError, ho = function(x) {
	if (Yr(x)) return x;
	throw po(fo(x) + " is not a function");
}, go = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : ho(We);
}, vo = Cr.TypeError, yo = Object.defineProperty, mo = function(x, Be) {
	try {
		yo(Cr, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		Cr[x] = Be;
	}
	return Be;
}, bo = Cr["__core-js_shared__"] || mo("__core-js_shared__", {}), wo = n((function(x) {
	(x.exports = function(x, Be) {
		return bo[x] || (bo[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), Eo = Cr.Object, Do = function(x) {
	return Eo(qr(x));
}, So = Mr({}.hasOwnProperty), xo = Object.hasOwn || function(x, Be) {
	return So(Do(x), Be);
}, Co = 0, Ao = Math.random(), Oo = Mr(1 .toString), ko = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + Oo(++Co + Ao, 36);
}, Bo = wo("wks"), Fo = Cr.Symbol, To = Fo && Fo.for, _o = uo ? Fo : Fo && Fo.withoutSetter || ko, Po = function(x) {
	if (!xo(Bo, x) || !ao && typeof Bo[x] != "string") {
		var Be = "Symbol." + x;
		ao && xo(Fo, x) ? Bo[x] = Fo[x] : Bo[x] = uo && To ? To(Be) : _o(Be);
	}
	return Bo[x];
}, jo = Cr.TypeError, No = Po("toPrimitive"), Io = function(x, Be) {
	if (!Xr(x) || lo(x)) return x;
	var We, St = go(x, No);
	if (St) {
		if (Be === void 0 && (Be = "default"), We = Br(St, x, Be), !Xr(We) || lo(We)) return We;
		throw jo("Can't convert object to primitive value");
	}
	return Be === void 0 && (Be = "number"), function(x, Be) {
		var We, St;
		if (Be === "string" && Yr(We = x.toString) && !Xr(St = Br(We, x)) || Yr(We = x.valueOf) && !Xr(St = Br(We, x)) || Be !== "string" && Yr(We = x.toString) && !Xr(St = Br(We, x))) return St;
		throw vo("Can't convert object to primitive value");
	}(x, Be);
}, Lo = function(x) {
	var Be = Io(x, "string");
	return lo(Be) ? Be : Be + "";
}, Ro = Cr.document, Mo = Xr(Ro) && Xr(Ro.createElement), zo = function(x) {
	return Mo ? Ro.createElement(x) : {};
}, $o = !Or && !Ar((function() {
	return Object.defineProperty(zo("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), Ho = Object.getOwnPropertyDescriptor, Uo = { f: Or ? Ho : function(x, Be) {
	if (x = Kr(x), Be = Lo(Be), $o) try {
		return Ho(x, Be);
	} catch {}
	if (xo(x, Be)) return jr(!Br(Pr.f, x, Be), x[Be]);
} }, Wo = Cr.String, Go = Cr.TypeError, qo = function(x) {
	if (Xr(x)) return x;
	throw Go(Wo(x) + " is not an object");
}, Ko = Cr.TypeError, Yo = Object.defineProperty, Zo = { f: Or ? Yo : function(x, Be, We) {
	if (qo(x), Be = Lo(Be), qo(We), $o) try {
		return Yo(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw Ko("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, Jo = Or ? function(x, Be, We) {
	return Zo.f(x, Be, jr(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, Qo = Mr(Function.toString);
Yr(bo.inspectSource) || (bo.inspectSource = function(x) {
	return Qo(x);
});
var ei, ti, ni, ri = bo.inspectSource, oi = Cr.WeakMap, ii = Yr(oi) && /native code/.test(ri(oi)), ai = wo("keys"), ui = function(x) {
	return ai[x] || (ai[x] = ko(x));
}, si = {}, li = Cr.TypeError, ci = Cr.WeakMap;
if (ii || bo.state) {
	var fi = bo.state ||= new ci(), di = Mr(fi.get), pi = Mr(fi.has), hi = Mr(fi.set);
	ei = function(x, Be) {
		if (pi(fi, x)) throw new li("Object already initialized");
		return Be.facade = x, hi(fi, x, Be), Be;
	}, ti = function(x) {
		return di(fi, x) || {};
	}, ni = function(x) {
		return pi(fi, x);
	};
} else {
	var gi = ui("state");
	si[gi] = !0, ei = function(x, Be) {
		if (xo(x, gi)) throw new li("Object already initialized");
		return Be.facade = x, Jo(x, gi, Be), Be;
	}, ti = function(x) {
		return xo(x, gi) ? x[gi] : {};
	}, ni = function(x) {
		return xo(x, gi);
	};
}
var vi = {
	set: ei,
	get: ti,
	has: ni,
	enforce: function(x) {
		return ni(x) ? ti(x) : ei(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!Xr(Be) || (We = ti(Be)).type !== x) throw li("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, yi = Function.prototype, mi = Or && Object.getOwnPropertyDescriptor, bi = xo(yi, "name"), wi = {
	EXISTS: bi,
	PROPER: bi && function() {}.name === "something",
	CONFIGURABLE: bi && (!Or || Or && mi(yi, "name").configurable)
}, Ei = n((function(x) {
	var Be = wi.CONFIGURABLE, We = vi.get, St = vi.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		Yr(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!xo(_r, "name") || Be && _r.name !== Tl) && Jo(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === Cr ? Xo ? x[We] = _r : mo(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : Jo(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return Yr(this) && We(this).source || ri(this);
	}));
})), Di = Math.ceil, Si = Math.floor, xi = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? Si : Di)(Be);
}, Ci = Math.max, Ai = Math.min, Oi = function(x, Be) {
	var We = xi(x);
	return We < 0 ? Ci(We + Be, 0) : Ai(We, Be);
}, ki = Math.min, Bi = function(x) {
	return x > 0 ? ki(xi(x), 9007199254740991) : 0;
}, Fi = function(x) {
	return Bi(x.length);
}, Ti = function(x) {
	return function(Be, We, St) {
		var Kn, _r = Kr(Be), Li = Fi(_r), fa = Oi(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}, _i = {
	includes: Ti(!0),
	indexOf: Ti(!1)
}.indexOf, Pi = Mr([].push), ji = function(x, Be) {
	var We, St = Kr(x), Kn = 0, _r = [];
	for (We in St) !xo(si, We) && xo(St, We) && Pi(_r, We);
	for (; Be.length > Kn;) xo(St, We = Be[Kn++]) && (~_i(_r, We) || Pi(_r, We));
	return _r;
}, Ni = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], Ii = Ni.concat("length", "prototype"), Ri = { f: Object.getOwnPropertyNames || function(x) {
	return ji(x, Ii);
} }, Mi = { f: Object.getOwnPropertySymbols }, zi = Mr([].concat), $i = Jr("Reflect", "ownKeys") || function(x) {
	var Be = Ri.f(qo(x)), We = Mi.f;
	return We ? zi(Be, We(x)) : Be;
}, Hi = function(x, Be) {
	for (var We = $i(Be), St = Zo.f, Kn = Uo.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		xo(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, Vi = /#|\.prototype\./, Ui = function(x, Be) {
	var We = Gi[Wi(x)];
	return We == Ki || We != qi && (Yr(Be) ? Ar(Be) : !!Be);
}, Wi = Ui.normalize = function(x) {
	return String(x).replace(Vi, ".").toLowerCase();
}, Gi = Ui.data = {}, qi = Ui.NATIVE = "N", Ki = Ui.POLYFILL = "P", Yi = Ui, Xi = Uo.f, Zi = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? Cr : Xo ? Cr[fa] || mo(fa, {}) : (Cr[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = Xi(We, St)) && Li.value : We[St], !Yi(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			Hi(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && Jo(_r, "sham", !0), Ei(We, St, _r, x);
	}
}, Ji = {};
Ji[Po("toStringTag")] = "z";
var Qi, ea = String(Ji) === "[object z]", ta = Po("toStringTag"), na = Cr.Object, ra = Hr(function() {
	return arguments;
}()) == "Arguments", oa = ea ? Hr : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = na(x), ta)) == "string" ? We : ra ? Hr(Be) : (St = Hr(Be)) == "Object" && Yr(Be.callee) ? "Arguments" : St;
}, ia = Cr.String, aa = function(x) {
	if (oa(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return ia(x);
}, ua = function() {
	var x = qo(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, sa = Cr.RegExp, la = Ar((function() {
	var x = sa("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), ca = la || Ar((function() {
	return !sa("a", "y").sticky;
})), da = {
	BROKEN_CARET: la || Ar((function() {
		var x = sa("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: ca,
	UNSUPPORTED_Y: la
}, pa = Object.keys || function(x) {
	return ji(x, Ni);
}, ha = Or ? Object.defineProperties : function(x, Be) {
	qo(x);
	for (var We, St = Kr(Be), Kn = pa(Be), _r = Kn.length, Li = 0; _r > Li;) Zo.f(x, We = Kn[Li++], St[We]);
	return x;
}, ga = Jr("document", "documentElement"), va = ui("IE_PROTO"), ya = function() {}, ma = function(x) {
	return "<script>" + x + "<\/script>";
}, ba = function(x) {
	x.write(ma("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, wa = function() {
	try {
		Qi = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	wa = typeof document < "u" ? document.domain && Qi ? ba(Qi) : ((Be = zo("iframe")).style.display = "none", ga.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(ma("document.F=Object")), x.close(), x.F) : ba(Qi);
	for (var We = Ni.length; We--;) delete wa.prototype[Ni[We]];
	return wa();
};
si[va] = !0;
var Ea, Da, Sa = Object.create || function(x, Be) {
	var We;
	return x === null ? We = wa() : (ya.prototype = qo(x), We = new ya(), ya.prototype = null, We[va] = x), Be === void 0 ? We : ha(We, Be);
}, xa = Cr.RegExp, Ca = Ar((function() {
	var x = xa(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), Aa = Cr.RegExp, Oa = Ar((function() {
	var x = Aa("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), ka = vi.get, Ba = wo("native-string-replace", String.prototype.replace), Fa = RegExp.prototype.exec, Ta = Fa, _a = Mr("".charAt), Pa = Mr("".indexOf), ja = Mr("".replace), Na = Mr("".slice), Ia = (Da = /b*/g, Br(Fa, Ea = /a/, "a"), Br(Fa, Da, "a"), Ea.lastIndex !== 0 || Da.lastIndex !== 0), La = da.BROKEN_CARET, Ra = /()??/.exec("")[1] !== void 0;
(Ia || Ra || La || Ca || Oa) && (Ta = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = ka(Vo), Tc = aa(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = Br(Ta, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = La && Vo.sticky, Ff = Br(ua, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = ja(Ff, "y", ""), Pa(Ff, "g") === -1 && (Ff += "g"), x_ = Na(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && _a(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), Ra && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), Ia && (St = Vo.lastIndex), Kn = Br(Fa, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = Na(Kn.input, Bm), Kn[0] = Na(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : Ia && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), Ra && Kn && Kn.length > 1 && Br(Ba, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = Sa(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var Ma = Ta;
Zi({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== Ma
}, { exec: Ma });
var za = Po("species"), $a = RegExp.prototype, Ha = Mr("".charAt), Va = Mr("".charCodeAt), Ua = Mr("".slice), Wa = function(x) {
	return function(Be, We) {
		var St, Kn, _r = aa(qr(Be)), Li = xi(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = Va(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = Va(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? Ha(_r, Li) : St : x ? Ua(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}, Ga = {
	codeAt: Wa(!1),
	charAt: Wa(!0)
}, qa = Ga.charAt, Ka = function(x, Be, We) {
	return Be + (We ? qa(x, Be).length : 1);
}, Ya = Cr.TypeError, Xa = function(x, Be) {
	var We = x.exec;
	if (Yr(We)) {
		var St = Br(We, x, Be);
		return St !== null && qo(St), St;
	}
	if (Hr(x) === "RegExp") return Br(Ma, x, Be);
	throw Ya("RegExp#exec called on incompatible receiver");
};
(function(x, Be, We, St) {
	var Kn = Po(x), _r = !Ar((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !Ar((function() {
		var Be = !1, We = /a/;
		return x === "split" && ((We = {}).constructor = {}, We.constructor[za] = function() {
			return We;
		}, We.flags = "", We[Kn] = /./[Kn]), We.exec = function() {
			return Be = !0, null;
		}, We[Kn](""), !Be;
	}));
	if (!_r || !Li || We) {
		var fa = Mr(/./[Kn]), Vo = Be(Kn, ""[x], (function(x, Be, We, St, Kn) {
			var Li = Mr(x), Vo = Be.exec;
			return Vo === Ma || Vo === $a.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		Ei(String.prototype, x, Vo[0]), Ei($a, Kn, Vo[1]);
	}
	St && Jo($a[Kn], "sham", !0);
})("match", (function(x, Be, We) {
	return [function(Be) {
		var We = qr(this), St = Be == null ? void 0 : go(Be, x);
		return St ? Br(St, Be, We) : new RegExp(Be)[x](aa(We));
	}, function(x) {
		var St = qo(this), Kn = aa(x), _r = We(Be, St, Kn);
		if (_r.done) return _r.value;
		if (!St.global) return Xa(St, Kn);
		var Li = St.unicode;
		St.lastIndex = 0;
		for (var fa, Vo = [], Xo = 0; (fa = Xa(St, Kn)) !== null;) {
			var Tc = aa(fa[0]);
			Vo[Xo] = Tc, Tc === "" && (St.lastIndex = Ka(Kn, Bi(St.lastIndex), Li)), Xo++;
		}
		return Xo === 0 ? null : Vo;
	}];
})), Zi({ global: !0 }, { globalThis: Cr });
var Za = !Ar((function() {
	function x() {}
	return x.prototype.constructor = null, Object.getPrototypeOf(new x()) !== x.prototype;
})), Ja = ui("IE_PROTO"), Qa = Cr.Object, eu = Qa.prototype, tu = Za ? Qa.getPrototypeOf : function(x) {
	var Be = Do(x);
	if (xo(Be, Ja)) return Be[Ja];
	var We = Be.constructor;
	return Yr(We) && Be instanceof We ? We.prototype : Be instanceof Qa ? eu : null;
}, nu = Cr.String, ru = Cr.TypeError, ou = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var x, Be = !1, We = {};
	try {
		(x = Mr(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(We, []), Be = We instanceof Array;
	} catch {}
	return function(We, St) {
		return qo(We), function(x) {
			if (typeof x == "object" || Yr(x)) return x;
			throw ru("Can't set " + nu(x) + " as a prototype");
		}(St), Be ? x(We, St) : We.__proto__ = St, We;
	};
}() : void 0), iu = Cr.Array, au = Math.max, uu = Mr("".replace), su = Mr("".split), lu = Mr([].join), cu = String(Error("zxcasd").stack), fu = /\n\s*at [^:]*:[^\n]*/, du = fu.test(cu), pu = /@[^\n]*\n/.test(cu) && !/zxcasd/.test(cu), hu = function(x, Be) {
	if (typeof x != "string") return x;
	if (du) for (; Be--;) x = uu(x, fu, "");
	else if (pu) return lu(function(x, Be, We) {
		for (var St, Kn, _r, Li, fa = Fi(x), Vo = Oi(Be, fa), Xo = Oi(We === void 0 ? fa : We, fa), Tc = iu(au(Xo - Vo, 0)), Tl = 0; Vo < Xo; Vo++, Tl++) St = Tc, Kn = Tl, _r = x[Vo], Li = void 0, (Li = Lo(Kn)) in St ? Zo.f(St, Li, jr(0, _r)) : St[Li] = _r;
		return Tc.length = Tl, Tc;
	}(su(x, "\n"), Be), "\n");
	return x;
}, gu = function(x, Be) {
	Xr(Be) && "cause" in Be && Jo(x, "cause", Be.cause);
}, vu = Mr(Mr.bind), yu = function(x, Be) {
	return ho(x), Be === void 0 ? x : vu ? vu(x, Be) : function() {
		return x.apply(Be, arguments);
	};
}, mu = {}, bu = Po("iterator"), wu = Array.prototype, Eu = Po("iterator"), Du = function(x) {
	if (x != null) return go(x, Eu) || go(x, "@@iterator") || mu[oa(x)];
}, Su = Cr.TypeError, xu = function(x, Be, We) {
	var St, Kn;
	qo(x);
	try {
		if (!(St = go(x, "return"))) {
			if (Be === "throw") throw We;
			return We;
		}
		St = Br(St, x);
	} catch (x) {
		Kn = !0, St = x;
	}
	if (Be === "throw") throw We;
	if (Kn) throw St;
	return qo(St), We;
}, Cu = Cr.TypeError, Au = function(x, Be) {
	this.stopped = x, this.result = Be;
}, Ou = Au.prototype, ku = function(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo, Tc = We && We.that, Tl = !(!We || !We.AS_ENTRIES), Al = !(!We || !We.IS_ITERATOR), Uu = !(!We || !We.INTERRUPTED), Ff = yu(Be, Tc), Lm = function(x) {
		return St && xu(St, "normal", x), new Au(!0, x);
	}, Bm = function(x) {
		return Tl ? (qo(x), Uu ? Ff(x[0], x[1], Lm) : Ff(x[0], x[1])) : Uu ? Ff(x, Lm) : Ff(x);
	};
	if (Al) St = x;
	else {
		if (!(Kn = Du(x))) throw Cu(fo(x) + " is not iterable");
		if (function(x) {
			return x !== void 0 && (mu.Array === x || wu[bu] === x);
		}(Kn)) {
			for (_r = 0, Li = Fi(x); Li > _r; _r++) if ((fa = Bm(x[_r])) && Qr(Ou, fa)) return fa;
			return new Au(!1);
		}
		St = function(x, Be) {
			var We = arguments.length < 2 ? Du(x) : Be;
			if (ho(We)) return qo(Br(We, x));
			throw Su(fo(x) + " is not iterable");
		}(x, Kn);
	}
	for (Vo = St.next; !(Xo = Br(Vo, St)).done;) {
		try {
			fa = Bm(Xo.value);
		} catch (x) {
			xu(St, "throw", x);
		}
		if (typeof fa == "object" && fa && Qr(Ou, fa)) return fa;
	}
	return new Au(!1);
}, Bu = function(x, Be) {
	return x === void 0 ? arguments.length < 2 ? "" : Be : aa(x);
}, Fu = !Ar((function() {
	var x = Error("a");
	return !("stack" in x) || (Object.defineProperty(x, "stack", jr(1, 7)), x.stack !== 7);
})), Tu = Po("toStringTag"), _u = Cr.Error, Pu = [].push, ju = function(x, Be) {
	var We, St = arguments.length > 2 ? arguments[2] : void 0, Kn = Qr(Nu, this);
	ou ? We = ou(new _u(void 0), Kn ? tu(this) : Nu) : (We = Kn ? this : Sa(Nu), Jo(We, Tu, "Error")), Jo(We, "message", Bu(Be, "")), Fu && Jo(We, "stack", hu(We.stack, 1)), gu(We, St);
	var _r = [];
	return ku(x, Pu, { that: _r }), Jo(We, "errors", _r), We;
};
ou ? ou(ju, _u) : Hi(ju, _u);
var Nu = ju.prototype = Sa(_u.prototype, {
	constructor: jr(1, ju),
	message: jr(1, ""),
	name: jr(1, "AggregateError")
});
Zi({ global: !0 }, { AggregateError: ju });
var Iu = Po("unscopables"), Lu = Array.prototype;
Lu[Iu] ?? Zo.f(Lu, Iu, {
	configurable: !0,
	value: Sa(null)
});
var Ru, Mu, zu, $u = function(x) {
	Lu[Iu][x] = !0;
}, Hu = Po("iterator"), Vu = !1;
[].keys && ("next" in (zu = [].keys()) ? (Mu = tu(tu(zu))) !== Object.prototype && (Ru = Mu) : Vu = !0), (Ru == null || Ar((function() {
	var x = {};
	return Ru[Hu].call(x) !== x;
}))) && (Ru = {}), Yr(Ru[Hu]) || Ei(Ru, Hu, (function() {
	return this;
}));
var Wu = {
	IteratorPrototype: Ru,
	BUGGY_SAFARI_ITERATORS: Vu
}, Gu = Zo.f, qu = Po("toStringTag"), Ku = function(x, Be, We) {
	x && !xo(x = We ? x : x.prototype, qu) && Gu(x, qu, {
		configurable: !0,
		value: Be
	});
}, Yu = Wu.IteratorPrototype, Xu = function() {
	return this;
}, Zu = wi.PROPER, Ju = wi.CONFIGURABLE, Qu = Wu.IteratorPrototype, es = Wu.BUGGY_SAFARI_ITERATORS, ts = Po("iterator"), ns = function() {
	return this;
}, rs = function(x, Be, We, St, Kn, _r, Li) {
	(function(x, Be, We, St) {
		var Kn = Be + " Iterator";
		x.prototype = Sa(Yu, { next: jr(+!St, We) }), Ku(x, Kn, !1), mu[Kn] = Xu;
	})(We, Be, St);
	var fa, Vo, Xo, Tc = function(x) {
		if (x === Kn && Lm) return Lm;
		if (!es && x in Uu) return Uu[x];
		switch (x) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new We(this, x);
			};
		}
		return function() {
			return new We(this);
		};
	}, Tl = Be + " Iterator", Al = !1, Uu = x.prototype, Ff = Uu[ts] || Uu["@@iterator"] || Kn && Uu[Kn], Lm = !es && Ff || Tc(Kn), Bm = Be == "Array" && Uu.entries || Ff;
	if (Bm && (fa = tu(Bm.call(new x()))) !== Object.prototype && fa.next && (tu(fa) !== Qu && (ou ? ou(fa, Qu) : Yr(fa[ts]) || Ei(fa, ts, ns)), Ku(fa, Tl, !0)), Zu && Kn == "values" && Ff && Ff.name !== "values" && (Ju ? Jo(Uu, "name", "values") : (Al = !0, Lm = function() {
		return Br(Ff, this);
	})), Kn) if (Vo = {
		values: Tc("values"),
		keys: _r ? Lm : Tc("keys"),
		entries: Tc("entries")
	}, Li) for (Xo in Vo) (es || Al || !(Xo in Uu)) && Ei(Uu, Xo, Vo[Xo]);
	else Zi({
		target: Be,
		proto: !0,
		forced: es || Al
	}, Vo);
	return Uu[ts] !== Lm && Ei(Uu, ts, Lm, { name: Kn }), mu[Be] = Lm, Vo;
}, os = vi.set, is = vi.getterFor("Array Iterator"), as = rs(Array, "Array", (function(x, Be) {
	os(this, {
		type: "Array Iterator",
		target: Kr(x),
		index: 0,
		kind: Be
	});
}), (function() {
	var x = is(this), Be = x.target, We = x.kind, St = x.index++;
	return !Be || St >= Be.length ? (x.target = void 0, {
		value: void 0,
		done: !0
	}) : We == "keys" ? {
		value: St,
		done: !1
	} : We == "values" ? {
		value: Be[St],
		done: !1
	} : {
		value: [St, Be[St]],
		done: !1
	};
}), "values");
mu.Arguments = mu.Array, $u("keys"), $u("values"), $u("entries");
var us = Ga.charAt, ss = vi.set, ls = vi.getterFor("String Iterator");
rs(String, "String", (function(x) {
	ss(this, {
		type: "String Iterator",
		string: aa(x),
		index: 0
	});
}), (function() {
	var x, Be = ls(this), We = Be.string, St = Be.index;
	return St >= We.length ? {
		value: void 0,
		done: !0
	} : (x = us(We, St), Be.index += x.length, {
		value: x,
		done: !1
	});
}));
var cs, fs = {
	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
}, ds = zo("span").classList, ps = ds && ds.constructor && ds.constructor.prototype, hs = ps === Object.prototype ? void 0 : ps, gs = Po("iterator"), vs = Po("toStringTag"), ys = as.values, ms = function(x, Be) {
	if (x) {
		if (x[gs] !== ys) try {
			Jo(x, gs, ys);
		} catch {
			x[gs] = ys;
		}
		if (x[vs] || Jo(x, vs, Be), fs[Be]) {
			for (var We in as) if (x[We] !== as[We]) try {
				Jo(x, We, as[We]);
			} catch {
				x[We] = as[We];
			}
		}
	}
};
for (var bs in fs) ms(Cr[bs] && Cr[bs].prototype, bs);
ms(hs, "DOMTokenList"), typeof global > "u" ? ("ActiveXObject" in window && console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."), ws(), Es()) : global && (cs = global.navigator) != null && cs.userAgent.match("QQBrowser") && (ws(), Es());
function ws() {
	typeof globalThis > "u" && (window.globalThis = window);
}
function Es() {
	Sr === void 0 && (window.AggregateError = function(x, Be) {
		var We = Error(Be);
		return We.errors = x, We;
	});
}
var Ds, Ss = Array.isArray || function(x) {
	return B(x) == "Array";
}, xs = function() {}, Cs = [], As = M("Reflect", "construct"), Os = /^\s*(?:class|function)\b/, ks = v(Os.exec), Bs = !Os.exec(xs), Fs = function(x) {
	if (!y(x)) return !1;
	try {
		return As(xs, Cs, x), !0;
	} catch {
		return !1;
	}
}, Ts = !As || m((function() {
	var x;
	return Fs(Fs.call) || !Fs(Object) || !Fs((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!y(x)) return !1;
	switch (on(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return Bs || !!ks(Os, On(x));
} : Fs, _s = be("species"), Ps = a.Array, js = function(x, Be) {
	return new (function(x) {
		var Be;
		return Ss(x) && (Be = x.constructor, (Ts(Be) && (Be === Ps || Ss(Be.prototype)) || I(Be) && (Be = Be[_s]) === null) && (Be = void 0)), Be === void 0 ? Ps : Be;
	}(x))(Be === 0 ? 0 : Be);
}, Ns = be("species"), Is = be("isConcatSpreadable"), Ls = a.TypeError, Rs = q >= 51 || !m((function() {
	var x = [];
	return x[Is] = !1, x.concat()[0] !== x;
})), Ms = (Ds = "concat", q >= 51 || !m((function() {
	var x = [];
	return (x.constructor = {})[Ns] = function() {
		return { foo: 1 };
	}, x[Ds](Boolean).foo !== 1;
}))), zs = function(x) {
	if (!I(x)) return !1;
	var Be = x[Is];
	return Be === void 0 ? Ss(x) : !!Be;
};
Xe({
	target: "Array",
	proto: !0,
	forced: !Rs || !Ms
}, { concat: function(x) {
	var Be, We, St, Kn, _r, Li = se(this), fa = js(Li, 0), Vo = 0;
	for (Be = -1, St = arguments.length; Be < St; Be++) if (zs(_r = Be === -1 ? Li : arguments[Be])) {
		if (Vo + (Kn = ht(_r)) > 9007199254740991) throw Ls("Maximum allowed index exceeded");
		for (We = 0; We < Kn; We++, Vo++) We in _r && Lt(fa, Vo, _r[We]);
	} else {
		if (Vo >= 9007199254740991) throw Ls("Maximum allowed index exceeded");
		Lt(fa, Vo++, _r);
	}
	return fa.length = Vo, fa;
} });
var $s = xt.f, Hs = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], Vs = { f: function(x) {
	return Hs && B(x) == "Window" ? function(x) {
		try {
			return $s(x);
		} catch {
			return zt(Hs);
		}
	}(x) : $s(N(x));
} }, Us = v([].slice), Ws = { f: be }, Gs = Ge.f, qs = function(x) {
	var Be = L.Symbol ||= {};
	ce(Be, x) || Gs(Be, x, { value: Ws.f(x) });
}, Ks = v([].push), Ys = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = se(Vo), Lm = _(Ff), Bm = Me(Xo, Tc), x_ = ht(Lm), uy = 0, dx = Tl || js, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: Ks(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: Ks(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, Xs = {
	forEach: Ys(0),
	map: Ys(1),
	filter: Ys(2),
	some: Ys(3),
	every: Ys(4),
	find: Ys(5),
	findIndex: Ys(6),
	filterReject: Ys(7)
}.forEach, Zs = Je("hidden"), Js = be("toPrimitive"), Qs = zn.set, el = zn.getterFor("Symbol"), tl = Object.prototype, nl = a.Symbol, rl = nl && nl.prototype, ol = a.TypeError, il = a.QObject, al = M("JSON", "stringify"), ul = Fe.f, sl = Ge.f, ll = Vs.f, cl = C.f, fl = v([].push), dl = ae("symbols"), pl = ae("op-symbols"), hl = ae("string-to-symbol-registry"), gl = ae("symbol-to-string-registry"), vl = ae("wks"), yl = !il || !il.prototype || !il.prototype.findChild, ml = b && m((function() {
	return It(sl({}, "a", { get: function() {
		return sl(this, "a", { value: 7 }).a;
	} })).a != 7;
})) ? function(x, Be, We) {
	var St = ul(tl, Be);
	St && delete tl[Be], sl(x, Be, We), St && x !== tl && sl(tl, Be, St);
} : sl, bl = function(x, Be) {
	var We = dl[x] = It(rl);
	return Qs(We, {
		type: "Symbol",
		tag: x,
		description: Be
	}), b || (We.description = Be), We;
}, wl = function(x, Be, We) {
	x === tl && wl(pl, Be, We), He(x);
	var St = Se(Be);
	return He(We), ce(dl, St) ? (We.enumerable ? (ce(x, Zs) && x[Zs][St] && (x[Zs][St] = !1), We = It(We, { enumerable: A(0, !1) })) : (ce(x, Zs) || sl(x, Zs, A(1, {})), x[Zs][St] = !0), ml(x, St, We)) : sl(x, St, We);
}, El = function(x, Be) {
	He(x);
	var We = N(Be);
	return Xs(kt(We).concat(Cl(We)), (function(Be) {
		b && !E(Dl, We, Be) || wl(x, Be, We[Be]);
	})), x;
}, Dl = function(x) {
	var Be = Se(x), We = E(cl, this, Be);
	return !(this === tl && ce(dl, Be) && !ce(pl, Be)) && (!(We || !ce(this, Be) || !ce(dl, Be) || ce(this, Zs) && this[Zs][Be]) || We);
}, Sl = function(x, Be) {
	var We = N(x), St = Se(Be);
	if (We !== tl || !ce(dl, St) || ce(pl, St)) {
		var Kn = ul(We, St);
		return !Kn || !ce(dl, St) || ce(We, Zs) && We[Zs][St] || (Kn.enumerable = !0), Kn;
	}
}, xl = function(x) {
	var Be = ll(N(x)), We = [];
	return Xs(Be, (function(x) {
		ce(dl, x) || ce(yt, x) || fl(We, x);
	})), We;
}, Cl = function(x) {
	var Be = x === tl, We = ll(Be ? pl : N(x)), St = [];
	return Xs(We, (function(x) {
		!ce(dl, x) || Be && !ce(tl, x) || fl(St, dl[x]);
	})), St;
};
if (K || (rl = (nl = function() {
	if (z(rl, this)) throw ol("Symbol is not a constructor");
	var x = arguments.length && arguments[0] !== void 0 ? gn(arguments[0]) : void 0, Be = he(x), We = function(x) {
		this === tl && E(We, pl, x), ce(this, Zs) && ce(this[Zs], Be) && (this[Zs][Be] = !1), ml(this, Be, A(1, x));
	};
	return b && yl && ml(tl, Be, {
		configurable: !0,
		set: We
	}), bl(Be, x);
}).prototype, Wn(rl, "toString", (function() {
	return el(this).tag;
})), Wn(nl, "withoutSetter", (function(x) {
	return bl(he(x), x);
})), C.f = Dl, Ge.f = wl, Fe.f = Sl, xt.f = Vs.f = xl, Ct.f = Cl, Ws.f = function(x) {
	return bl(be(x), x);
}, b && sl(rl, "description", {
	configurable: !0,
	get: function() {
		return el(this).description;
	}
})), Xe({
	global: !0,
	wrap: !0,
	forced: !K,
	sham: !K
}, { Symbol: nl }), Xs(kt(vl), (function(x) {
	qs(x);
})), Xe({
	target: "Symbol",
	stat: !0,
	forced: !K
}, {
	for: function(x) {
		var Be = gn(x);
		if (ce(hl, Be)) return hl[Be];
		var We = nl(Be);
		return hl[Be] = We, gl[We] = Be, We;
	},
	keyFor: function(x) {
		if (!Z(x)) throw ol(x + " is not a symbol");
		if (ce(gl, x)) return gl[x];
	},
	useSetter: function() {
		yl = !0;
	},
	useSimple: function() {
		yl = !1;
	}
}), Xe({
	target: "Object",
	stat: !0,
	forced: !K,
	sham: !b
}, {
	create: function(x, Be) {
		return Be === void 0 ? It(x) : El(It(x), Be);
	},
	defineProperty: wl,
	defineProperties: El,
	getOwnPropertyDescriptor: Sl
}), Xe({
	target: "Object",
	stat: !0,
	forced: !K
}, {
	getOwnPropertyNames: xl,
	getOwnPropertySymbols: Cl
}), Xe({
	target: "Object",
	stat: !0,
	forced: m((function() {
		Ct.f(1);
	}))
}, { getOwnPropertySymbols: function(x) {
	return Ct.f(se(x));
} }), al && Xe({
	target: "JSON",
	stat: !0,
	forced: !K || m((function() {
		var x = nl();
		return al([x]) != "[null]" || al({ a: x }) != "{}" || al(Object(x)) != "{}";
	}))
}, { stringify: function(x, Be, We) {
	var St = Us(arguments), Kn = Be;
	if ((I(Be) || x !== void 0) && !Z(x)) return Ss(Be) || (Be = function(x, Be) {
		if (y(Kn) && (Be = E(Kn, this, x, Be)), !Z(Be)) return Be;
	}), St[1] = Be, f(al, null, St);
} }), !rl[Js]) {
	var Ol = rl.valueOf;
	Wn(rl, Js, (function(x) {
		return E(Ol, this);
	}));
}
Qn(nl, "Symbol"), yt[Zs] = !0, qs("asyncIterator"), qs("hasInstance"), qs("isConcatSpreadable"), qs("iterator"), qs("match"), qs("matchAll"), qs("replace"), qs("search"), qs("species"), qs("split"), qs("toPrimitive"), qs("toStringTag"), qs("unscopables"), Qn(a.JSON, "JSON", !0);
var kl = L.Symbol;
qs("asyncDispose"), qs("dispose"), qs("matcher"), qs("metadata"), qs("observable"), qs("patternMatch"), qs("replaceAll");
var Bl = kl, Fl = Ws.f("iterator"), _l = t(n((function(x) {
	function Be(We) {
		return typeof Bl == "function" && typeof Fl == "symbol" ? (x.exports = Be = function(x) {
			return typeof x;
		}, x.exports.default = x.exports, x.exports.__esModule = !0) : (x.exports = Be = function(x) {
			return x && typeof Bl == "function" && x.constructor === Bl && x !== Bl.prototype ? "symbol" : typeof x;
		}, x.exports.default = x.exports, x.exports.__esModule = !0), Be(We);
	}
	x.exports = Be, x.exports.default = x.exports, x.exports.__esModule = !0;
}))), Pl = Uo.f, jl = Ar((function() {
	Pl(1);
}));
if (Zi({
	target: "Object",
	stat: !0,
	forced: !Or || jl,
	sham: !Or
}, { getOwnPropertyDescriptor: function(x, Be) {
	return Pl(Kr(x), Be);
} }), (typeof global > "u" ? "undefined" : _l(global)) === "object") {
	var Nl = Object.getOwnPropertyDescriptor(global, "window");
	global.window && !Nl.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(x) {
		return nodeCrypto.randomFillSync(x);
	} }), global.document != null && global.document.getElementsByTagName == null && (global.document.getElementsByTagName = function() {
		return [];
	});
}
function Il(x) {
	return Object.prototype.toString.call(x) === "[object Object]";
}
function Ll(x) {
	var Be, We;
	return !1 !== Il(x) && ((Be = x.constructor) === void 0 || !1 !== Il(We = Be.prototype) && !1 !== We.hasOwnProperty("isPrototypeOf"));
}
function Rl(x) {
	var Be = [...arguments].slice(1);
	throw Error("[Immer] minified error nr: " + x + (Be.length ? " " + Be.map((function(x) {
		return "'" + x + "'";
	})).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf");
}
function Ml(x) {
	return !!x && !!x[xc];
}
function zl(x) {
	return !!x && (function(x) {
		if (!x || typeof x != "object") return !1;
		var Be = Object.getPrototypeOf(x);
		if (Be === null) return !0;
		var We = Object.hasOwnProperty.call(Be, "constructor") && Be.constructor;
		return We === Object || typeof We == "function" && Function.toString.call(We) === Cc;
	}(x) || Array.isArray(x) || !!x[Sc] || !!x.constructor[Sc] || Wl(x) || Gl(x));
}
function $l(x, Be, We) {
	We === void 0 && (We = !1), Hl(x) === 0 ? (We ? Object.keys : Ac)(x).forEach((function(St) {
		We && typeof St == "symbol" || Be(St, x[St], x);
	})) : x.forEach((function(We, St) {
		return Be(St, We, x);
	}));
}
function Hl(x) {
	var Be = x[xc];
	return Be ? Be.i > 3 ? Be.i - 4 : Be.i : Array.isArray(x) ? 1 : Wl(x) ? 2 : Gl(x) ? 3 : 0;
}
function Vl(x, Be) {
	return Hl(x) === 2 ? x.has(Be) : Object.prototype.hasOwnProperty.call(x, Be);
}
function Ul(x, Be, We) {
	var St = Hl(x);
	St === 2 ? x.set(Be, We) : St === 3 ? (x.delete(Be), x.add(We)) : x[Be] = We;
}
function Wl(x) {
	return bc && x instanceof Map;
}
function Gl(x) {
	return wc && x instanceof Set;
}
function ql(x) {
	return x.o || x.t;
}
function Kl(x) {
	if (Array.isArray(x)) return Array.prototype.slice.call(x);
	var Be = Oc(x);
	delete Be[xc];
	for (var We = Ac(Be), St = 0; St < We.length; St++) {
		var Kn = We[St], _r = Be[Kn];
		!1 === _r.writable && (_r.writable = !0, _r.configurable = !0), (_r.get || _r.set) && (Be[Kn] = {
			configurable: !0,
			writable: !0,
			enumerable: _r.enumerable,
			value: x[Kn]
		});
	}
	return Object.create(Object.getPrototypeOf(x), Be);
}
function Yl(x, Be) {
	return Be === void 0 && (Be = !1), Zl(x) || Ml(x) || !zl(x) || (Hl(x) > 1 && (x.set = x.add = x.clear = x.delete = Xl), Object.freeze(x), Be && $l(x, (function(x, Be) {
		return Yl(Be, !0);
	}), !0)), x;
}
function Xl() {
	Rl(2);
}
function Zl(x) {
	return typeof x != "object" || !x || Object.isFrozen(x);
}
function Jl(x) {
	var Be = kc[x];
	return Be || Rl(18, x), Be;
}
function Ql() {
	return yc;
}
function ec(x, Be) {
	Be && (Jl("Patches"), x.u = [], x.s = [], x.v = Be);
}
function tc(x) {
	nc(x), x.p.forEach(oc), x.p = null;
}
function nc(x) {
	x === yc && (yc = x.l);
}
function rc(x) {
	return yc = {
		p: [],
		l: yc,
		h: x,
		m: !0,
		_: 0
	};
}
function oc(x) {
	var Be = x[xc];
	Be.i === 0 || Be.i === 1 ? Be.j() : Be.O = !0;
}
function ic(x, Be) {
	Be._ = Be.p.length;
	var We = Be.p[0], St = x !== void 0 && x !== We;
	return Be.h.g || Jl("ES5").S(Be, x, St), St ? (We[xc].P && (tc(Be), Rl(4)), zl(x) && (x = ac(Be, x), Be.l || sc(Be, x)), Be.u && Jl("Patches").M(We[xc], x, Be.u, Be.s)) : x = ac(Be, We, []), tc(Be), Be.u && Be.v(Be.u, Be.s), x === Dc ? void 0 : x;
}
function ac(x, Be, We) {
	if (Zl(Be)) return Be;
	var St = Be[xc];
	if (!St) return $l(Be, (function(Kn, _r) {
		return uc(x, St, Be, Kn, _r, We);
	}), !0), Be;
	if (St.A !== x) return Be;
	if (!St.P) return sc(x, St.t, !0), St.t;
	if (!St.I) {
		St.I = !0, St.A._--;
		var Kn = St.i === 4 || St.i === 5 ? St.o = Kl(St.k) : St.o;
		$l(St.i === 3 ? new Set(Kn) : Kn, (function(Be, _r) {
			return uc(x, St, Kn, Be, _r, We);
		})), sc(x, Kn, !1), We && x.u && Jl("Patches").R(St, We, x.u, x.s);
	}
	return St.o;
}
function uc(x, Be, We, St, Kn, _r) {
	if (Ml(Kn)) {
		var Li = ac(x, Kn, _r && Be && Be.i !== 3 && !Vl(Be.D, St) ? _r.concat(St) : void 0);
		if (Ul(We, St, Li), !Ml(Li)) return;
		x.m = !1;
	}
	if (zl(Kn) && !Zl(Kn)) {
		if (!x.h.F && x._ < 1) return;
		ac(x, Kn), Be && Be.A.l || sc(x, Kn);
	}
}
function sc(x, Be, We) {
	We === void 0 && (We = !1), x.h.F && x.m && Yl(Be, We);
}
function lc(x, Be) {
	var We = x[xc];
	return (We ? ql(We) : x)[Be];
}
function cc(x, Be) {
	if (Be in x) for (var We = Object.getPrototypeOf(x); We;) {
		var St = Object.getOwnPropertyDescriptor(We, Be);
		if (St) return St;
		We = Object.getPrototypeOf(We);
	}
}
function fc(x) {
	x.P || (x.P = !0, x.l && fc(x.l));
}
function dc(x) {
	x.o ||= Kl(x.t);
}
function pc(x, Be, We) {
	var St = Wl(Be) ? Jl("MapSet").N(Be, We) : Gl(Be) ? Jl("MapSet").T(Be, We) : x.g ? function(x, Be) {
		var We = Array.isArray(x), St = {
			i: We ? 1 : 0,
			A: Be ? Be.A : Ql(),
			P: !1,
			I: !1,
			D: {},
			l: Be,
			t: x,
			k: null,
			o: null,
			j: null,
			C: !1
		}, Kn = St, _r = Bc;
		We && (Kn = [St], _r = Fc);
		var Li = Proxy.revocable(Kn, _r), fa = Li.revoke, Vo = Li.proxy;
		return St.k = Vo, St.j = fa, Vo;
	}(Be, We) : Jl("ES5").J(Be, We);
	return (We ? We.A : Ql()).p.push(St), St;
}
function hc(x) {
	return Ml(x) || Rl(22, x), function x(Be) {
		if (!zl(Be)) return Be;
		var We, St = Be[xc], Kn = Hl(Be);
		if (St) {
			if (!St.P && (St.i < 4 || !Jl("ES5").K(St))) return St.t;
			St.I = !0, We = gc(Be, Kn), St.I = !1;
		} else We = gc(Be, Kn);
		return $l(We, (function(Be, Kn) {
			St && function(x, Be) {
				return Hl(x) === 2 ? x.get(Be) : x[Be];
			}(St.t, Be) === Kn || Ul(We, Be, x(Kn));
		})), Kn === 3 ? new Set(We) : We;
	}(x);
}
function gc(x, Be) {
	switch (Be) {
		case 2: return new Map(x);
		case 3: return Array.from(x);
	}
	return Kl(x);
}
var vc, yc, mc = typeof Symbol < "u" && typeof Symbol("x") == "symbol", bc = typeof Map < "u", wc = typeof Set < "u", Ec = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", Dc = mc ? Symbol.for("immer-nothing") : ((vc = {})["immer-nothing"] = !0, vc), Sc = mc ? Symbol.for("immer-draftable") : "__$immer_draftable", xc = mc ? Symbol.for("immer-state") : "__$immer_state", Cc = "" + Object.prototype.constructor, Ac = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols === void 0 ? Object.getOwnPropertyNames : function(x) {
	return Object.getOwnPropertyNames(x).concat(Object.getOwnPropertySymbols(x));
}, Oc = Object.getOwnPropertyDescriptors || function(x) {
	var Be = {};
	return Ac(x).forEach((function(We) {
		Be[We] = Object.getOwnPropertyDescriptor(x, We);
	})), Be;
}, kc = {}, Bc = {
	get: function(x, Be) {
		if (Be === xc) return x;
		var We = ql(x);
		if (!Vl(We, Be)) return function(x, Be, We) {
			var St = cc(Be, We);
			return St ? "value" in St ? St.value : St.get?.call(x.k) : void 0;
		}(x, We, Be);
		var St = We[Be];
		return x.I || !zl(St) ? St : St === lc(x.t, Be) ? (dc(x), x.o[Be] = pc(x.A.h, St, x)) : St;
	},
	has: function(x, Be) {
		return Be in ql(x);
	},
	ownKeys: function(x) {
		return Reflect.ownKeys(ql(x));
	},
	set: function(x, Be, We) {
		var St = cc(ql(x), Be);
		if (St?.set) return St.set.call(x.k, We), !0;
		if (!x.P) {
			var Kn = lc(ql(x), Be), _r = Kn?.[xc];
			if (_r && _r.t === We) return x.o[Be] = We, x.D[Be] = !1, !0;
			if (function(x, Be) {
				return x === Be ? x !== 0 || 1 / x == 1 / Be : x != x && Be != Be;
			}(We, Kn) && (We !== void 0 || Vl(x.t, Be))) return !0;
			dc(x), fc(x);
		}
		return x.o[Be] === We && typeof We != "number" && (We !== void 0 || Be in x.o) || (x.o[Be] = We, x.D[Be] = !0, !0);
	},
	deleteProperty: function(x, Be) {
		return lc(x.t, Be) !== void 0 || Be in x.t ? (x.D[Be] = !1, dc(x), fc(x)) : delete x.D[Be], x.o && delete x.o[Be], !0;
	},
	getOwnPropertyDescriptor: function(x, Be) {
		var We = ql(x), St = Reflect.getOwnPropertyDescriptor(We, Be);
		return St && {
			writable: !0,
			configurable: x.i !== 1 || Be !== "length",
			enumerable: St.enumerable,
			value: We[Be]
		};
	},
	defineProperty: function() {
		Rl(11);
	},
	getPrototypeOf: function(x) {
		return Object.getPrototypeOf(x.t);
	},
	setPrototypeOf: function() {
		Rl(12);
	}
}, Fc = {};
$l(Bc, (function(x, Be) {
	Fc[x] = function() {
		return arguments[0] = arguments[0][0], Be.apply(this, arguments);
	};
})), Fc.deleteProperty = function(x, Be) {
	return Bc.deleteProperty.call(this, x[0], Be);
}, Fc.set = function(x, Be, We) {
	return Bc.set.call(this, x[0], Be, We, x[0]);
};
var _c = new (function() {
	function x(x) {
		var Be = this;
		this.g = Ec, this.F = !0, this.produce = function(x, We, St) {
			if (typeof x == "function" && typeof We != "function") {
				var Kn = We;
				We = x;
				var _r = Be;
				return function(x) {
					var Be = this;
					x === void 0 && (x = Kn);
					var St = [...arguments].slice(1);
					return _r.produce(x, (function(x) {
						var Kn;
						return (Kn = We).call.apply(Kn, [Be, x].concat(St));
					}));
				};
			}
			var Li;
			if (typeof We != "function" && Rl(6), St !== void 0 && typeof St != "function" && Rl(7), zl(x)) {
				var fa = rc(Be), Vo = pc(Be, x, void 0), Xo = !0;
				try {
					Li = We(Vo), Xo = !1;
				} finally {
					Xo ? tc(fa) : nc(fa);
				}
				return typeof Promise < "u" && Li instanceof Promise ? Li.then((function(x) {
					return ec(fa, St), ic(x, fa);
				}), (function(x) {
					throw tc(fa), x;
				})) : (ec(fa, St), ic(Li, fa));
			}
			if (!x || typeof x != "object") return (Li = We(x)) === Dc ? void 0 : (Li === void 0 && (Li = x), Be.F && Yl(Li, !0), Li);
			Rl(21, x);
		}, this.produceWithPatches = function(x, We) {
			return typeof x == "function" ? function(We) {
				var St = [...arguments].slice(1);
				return Be.produceWithPatches(We, (function(Be) {
					return x.apply(void 0, [Be].concat(St));
				}));
			} : [
				Be.produce(x, We, (function(x, Be) {
					St = x, Kn = Be;
				})),
				St,
				Kn
			];
			var St, Kn;
		}, typeof x?.useProxies == "boolean" && this.setUseProxies(x.useProxies), typeof x?.autoFreeze == "boolean" && this.setAutoFreeze(x.autoFreeze);
	}
	var Be = x.prototype;
	return Be.createDraft = function(x) {
		zl(x) || Rl(8), Ml(x) && (x = hc(x));
		var Be = rc(this), We = pc(this, x, void 0);
		return We[xc].C = !0, nc(Be), We;
	}, Be.finishDraft = function(x, Be) {
		var We = (x && x[xc]).A;
		return ec(We, Be), ic(void 0, We);
	}, Be.setAutoFreeze = function(x) {
		this.F = x;
	}, Be.setUseProxies = function(x) {
		x && !Ec && Rl(20), this.g = x;
	}, Be.applyPatches = function(x, Be) {
		var We;
		for (We = Be.length - 1; We >= 0; We--) {
			var St = Be[We];
			if (St.path.length === 0 && St.op === "replace") {
				x = St.value;
				break;
			}
		}
		We > -1 && (Be = Be.slice(We + 1));
		var Kn = Jl("Patches").$;
		return Ml(x) ? Kn(x, Be) : this.produce(x, (function(x) {
			return Kn(x, Be);
		}));
	}, x;
}())(), Pc = _c.produce;
_c.produceWithPatches.bind(_c), _c.setAutoFreeze.bind(_c), _c.setUseProxies.bind(_c), _c.applyPatches.bind(_c);
var jc = _c.createDraft.bind(_c), Nc = _c.finishDraft.bind(_c);
function Ic(x, Be, We) {
	return Be in x ? Object.defineProperty(x, Be, {
		value: We,
		enumerable: !0,
		configurable: !0,
		writable: !0
	}) : x[Be] = We, x;
}
var Lc = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), Mc = /* @__PURE__ */ new WeakMap(), zc = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakMap(), Hc = /* @__PURE__ */ new WeakMap();
function Vc(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function Uc(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? Vc(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : Vc(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var Wc = () => {
	var x = {
		children: [],
		operations: [],
		selection: null,
		marks: null,
		isInline: () => !1,
		isVoid: () => !1,
		onChange: () => {},
		apply: (Be) => {
			for (var We of Bf.pathRefs(x)) zf.transform(We, Be);
			for (var St of Bf.pointRefs(x)) Uf.transform(St, Be);
			for (var Kn of Bf.rangeRefs(x)) Kf.transform(Kn, Be);
			var _r = /* @__PURE__ */ new Set(), Li = [], fa = (x) => {
				if (x) {
					var Be = x.join(",");
					_r.has(Be) || (_r.add(Be), Li.push(x));
				}
			}, Vo = Lc.get(x) || [], Xo = Gc(Be);
			for (var Tc of Vo) fa(Mf.transform(Tc, Be));
			for (var Tl of Xo) fa(Tl);
			Lc.set(x, Li), md.transform(x, Be), x.operations.push(Be), Bf.normalize(x), Be.type === "set_selection" && (x.marks = null), Rc.get(x) || (Rc.set(x, !0), Promise.resolve().then((() => {
				Rc.set(x, !1), x.onChange(), x.operations = [];
			})));
		},
		addMark: (Be, We) => {
			var { selection: St } = x;
			St && (qf.isExpanded(St) ? md.setNodes(x, { [Be]: We }, {
				match: ed.isText,
				split: !0
			}) : (x.marks = Uc(Uc({}, Bf.marks(x) || {}), {}, { [Be]: We }), Rc.get(x) || x.onChange()));
		},
		deleteBackward: (Be) => {
			var { selection: We } = x;
			We && qf.isCollapsed(We) && md.delete(x, {
				unit: Be,
				reverse: !0
			});
		},
		deleteForward: (Be) => {
			var { selection: We } = x;
			We && qf.isCollapsed(We) && md.delete(x, { unit: Be });
		},
		deleteFragment: (Be) => {
			var { selection: We } = x;
			We && qf.isExpanded(We) && md.delete(x, { reverse: Be === "backward" });
		},
		getFragment: () => {
			var { selection: Be } = x;
			return Be ? Nf.fragment(x, Be) : [];
		},
		insertBreak: () => {
			md.splitNodes(x, { always: !0 });
		},
		insertFragment: (Be) => {
			md.insertFragment(x, Be);
		},
		insertNode: (Be) => {
			md.insertNodes(x, Be);
		},
		insertText: (Be) => {
			var { selection: We, marks: St } = x;
			if (We) {
				if (St) {
					var Kn = Uc({ text: Be }, St);
					md.insertNodes(x, Kn);
				} else md.insertText(x, Be);
				x.marks = null;
			}
		},
		normalizeNode: (Be) => {
			var [We, St] = Be;
			if (!ed.isText(We)) if (Sf.isElement(We) && We.children.length === 0) md.insertNodes(x, { text: "" }, {
				at: St.concat(0),
				voids: !0
			});
			else for (var Kn = !Bf.isEditor(We) && Sf.isElement(We) && (x.isInline(We) || We.children.length === 0 || ed.isText(We.children[0]) || x.isInline(We.children[0])), _r = 0, Li = 0; Li < We.children.length; Li++, _r++) {
				var fa = Nf.get(x, St);
				if (!ed.isText(fa)) {
					var Vo = We.children[Li], Xo = fa.children[_r - 1], Tc = Li === We.children.length - 1;
					(ed.isText(Vo) || Sf.isElement(Vo) && x.isInline(Vo)) === Kn ? Sf.isElement(Vo) ? x.isInline(Vo) && (Xo != null && ed.isText(Xo) ? Tc && (md.insertNodes(x, { text: "" }, {
						at: St.concat(_r + 1),
						voids: !0
					}), _r++) : (md.insertNodes(x, { text: "" }, {
						at: St.concat(_r),
						voids: !0
					}), _r++)) : Xo != null && ed.isText(Xo) && (ed.equals(Vo, Xo, { loose: !0 }) ? (md.mergeNodes(x, {
						at: St.concat(_r),
						voids: !0
					}), _r--) : Xo.text === "" ? (md.removeNodes(x, {
						at: St.concat(_r - 1),
						voids: !0
					}), _r--) : Vo.text === "" && (md.removeNodes(x, {
						at: St.concat(_r),
						voids: !0
					}), _r--)) : (md.removeNodes(x, {
						at: St.concat(_r),
						voids: !0
					}), _r--);
				}
			}
		},
		removeMark: (Be) => {
			var { selection: We } = x;
			if (We) if (qf.isExpanded(We)) md.unsetNodes(x, Be, {
				match: ed.isText,
				split: !0
			});
			else {
				var St = Uc({}, Bf.marks(x) || {});
				delete St[Be], x.marks = St, Rc.get(x) || x.onChange();
			}
		}
	};
	return x;
}, Gc = (x) => {
	switch (x.type) {
		case "insert_text":
		case "remove_text":
		case "set_node":
			var { path: Be } = x;
			return Mf.levels(Be);
		case "insert_node":
			var { node: We, path: St } = x, Kn = Mf.levels(St), _r = ed.isText(We) ? [] : Array.from(Nf.nodes(We), ((x) => {
				var [, Be] = x;
				return St.concat(Be);
			}));
			return [...Kn, ..._r];
		case "merge_node":
			var { path: Li } = x;
			return [...Mf.ancestors(Li), Mf.previous(Li)];
		case "move_node":
			var { path: fa, newPath: Vo } = x;
			if (Mf.equals(fa, Vo)) return [];
			var Xo = [], Tc = [];
			for (var Tl of Mf.ancestors(fa)) {
				var Al = Mf.transform(Tl, x);
				Xo.push(Al);
			}
			for (var Uu of Mf.ancestors(Vo)) {
				var Ff = Mf.transform(Uu, x);
				Tc.push(Ff);
			}
			var Lm = Tc[Tc.length - 1], Bm = Vo[Vo.length - 1], x_ = Lm.concat(Bm);
			return [
				...Xo,
				...Tc,
				x_
			];
		case "remove_node":
			var { path: uy } = x;
			return [...Mf.ancestors(uy)];
		case "split_node":
			var { path: dx } = x;
			return [...Mf.levels(dx), Mf.next(dx)];
		default: return [];
	}
};
function qc(x, Be) {
	if (x == null) return {};
	var We, St, Kn = function(x, Be) {
		if (x == null) return {};
		var We, St, Kn = {}, _r = Object.keys(x);
		for (St = 0; St < _r.length; St++) We = _r[St], Be.indexOf(We) >= 0 || (Kn[We] = x[We]);
		return Kn;
	}(x, Be);
	if (Object.getOwnPropertySymbols) {
		var _r = Object.getOwnPropertySymbols(x);
		for (St = 0; St < _r.length; St++) We = _r[St], Be.indexOf(We) >= 0 || Object.prototype.propertyIsEnumerable.call(x, We) && (Kn[We] = x[We]);
	}
	return Kn;
}
var Kc, Yc = function(x) {
	var Be = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], We = !Be, St = Be ? tf(x) : x, Kn = Kc.None, _r = Kc.None, Li = 0, fa = null;
	for (var Vo of St) {
		var Xo = Vo.codePointAt(0);
		if (!Xo) break;
		var Tc = hf(Vo, Xo);
		if ([Kn, _r] = We ? [_r, Tc] : [Tc, Kn], gf(Kn, Kc.ZWJ) && gf(_r, Kc.ExtPict) && !bf(We ? x.substring(0, Li) : x.substring(0, x.length - Li)) || gf(Kn, Kc.RI) && gf(_r, Kc.RI) && !(fa = fa === null ? !!We || Ef(x.substring(0, x.length - Li)) : !fa) || Kn !== Kc.None && _r !== Kc.None && yf(Kn, _r)) break;
		Li += Vo.length;
	}
	return Li || 1;
}, Xc = /\s/, Zc = /[\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]/, Jc = /['\u2018\u2019]/, Qc = (x, Be, We) => {
	if (We) {
		var St = x.length - Be;
		return [x.slice(St, x.length), x.slice(0, St)];
	}
	return [x.slice(0, Be), x.slice(Be)];
}, ef = function x(Be, We) {
	var St = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
	if (Xc.test(Be)) return !1;
	if (Jc.test(Be)) {
		var [Kn, _r] = Qc(We, Yc(We, St), St);
		if (x(Kn, _r, St)) return !0;
	}
	return !Zc.test(Be);
}, tf = function* (x) {
	for (var Be = x.length - 1, We = 0; We < x.length; We++) {
		var St = x.charAt(Be - We);
		if (rf(St.charCodeAt(0))) {
			var Kn = x.charAt(Be - We - 1);
			if (nf(Kn.charCodeAt(0))) {
				yield Kn + St, We++;
				continue;
			}
		}
		yield St;
	}
}, nf = (x) => x >= 55296 && x <= 56319, rf = (x) => x >= 56320 && x <= 57343;
(function(x) {
	x[x.None = 0] = "None", x[x.Extend = 1] = "Extend", x[x.ZWJ = 2] = "ZWJ", x[x.RI = 4] = "RI", x[x.Prepend = 8] = "Prepend", x[x.SpacingMark = 16] = "SpacingMark", x[x.L = 32] = "L", x[x.V = 64] = "V", x[x.T = 128] = "T", x[x.LV = 256] = "LV", x[x.LVT = 512] = "LVT", x[x.ExtPict = 1024] = "ExtPict", x[x.Any = 2048] = "Any";
})(Kc ||= {});
var of = /^(?:[\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])$/, af = /^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/, uf = /^(?:[\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])$/, sf = /^[\u1100-\u115F\uA960-\uA97C]$/, lf = /^[\u1160-\u11A7\uD7B0-\uD7C6]$/, cf = /^[\u11A8-\u11FF\uD7CB-\uD7FB]$/, ff = /^[\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]$/, df = /^[\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]$/, pf = /^(?:[\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])$/, hf = (x, Be) => {
	var We = Kc.Any;
	return x.search(of) !== -1 && (We |= Kc.Extend), Be === 8205 && (We |= Kc.ZWJ), Be >= 127462 && Be <= 127487 && (We |= Kc.RI), x.search(af) !== -1 && (We |= Kc.Prepend), x.search(uf) !== -1 && (We |= Kc.SpacingMark), x.search(sf) !== -1 && (We |= Kc.L), x.search(lf) !== -1 && (We |= Kc.V), x.search(cf) !== -1 && (We |= Kc.T), x.search(ff) !== -1 && (We |= Kc.LV), x.search(df) !== -1 && (We |= Kc.LVT), x.search(pf) !== -1 && (We |= Kc.ExtPict), We;
};
function gf(x, Be) {
	return (x & Be) != 0;
}
var vf = [
	[Kc.L, Kc.L | Kc.V | Kc.LV | Kc.LVT],
	[Kc.LV | Kc.V, Kc.V | Kc.T],
	[Kc.LVT | Kc.T, Kc.T],
	[Kc.Any, Kc.Extend | Kc.ZWJ],
	[Kc.Any, Kc.SpacingMark],
	[Kc.Prepend, Kc.Any],
	[Kc.ZWJ, Kc.ExtPict],
	[Kc.RI, Kc.RI]
];
function yf(x, Be) {
	return vf.findIndex(((We) => gf(x, We[0]) && gf(Be, We[1]))) === -1;
}
var mf = /(?:[\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$/, bf = (x) => x.search(mf) !== -1, wf = /(?:\uD83C[\uDDE6-\uDDFF])+$/g, Ef = (x) => {
	var Be = x.match(wf);
	return Be !== null && Be[0].length / 2 % 2 == 1;
}, Df = (x) => Ll(x) && Nf.isNodeList(x.children) && !Bf.isEditor(x), Sf = {
	isAncestor: (x) => Ll(x) && Nf.isNodeList(x.children),
	isElement: Df,
	isElementList: (x) => Array.isArray(x) && x.every(((x) => Sf.isElement(x))),
	isElementProps: (x) => x.children !== void 0,
	isElementType: function(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "type";
		return Df(x) && x[We] === Be;
	},
	matches(x, Be) {
		for (var We in Be) if (We !== "children" && x[We] !== Be[We]) return !1;
		return !0;
	}
}, xf = ["text"], Cf = ["text"];
function Af(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function Of(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? Af(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : Af(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var kf = /* @__PURE__ */ new WeakMap(), Bf = {
	above(x) {
		var { voids: Be = !1, mode: We = "lowest", at: St = x.selection, match: Kn } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		if (St) {
			var _r = Bf.path(x, St), Li = We === "lowest";
			for (var [fa, Vo] of Bf.levels(x, {
				at: _r,
				voids: Be,
				match: Kn,
				reverse: Li
			})) if (!ed.isText(fa) && !Mf.equals(_r, Vo)) return [fa, Vo];
		}
	},
	addMark(x, Be, We) {
		x.addMark(Be, We);
	},
	after(x, Be) {
		var We, St = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Kn = {
			anchor: Bf.point(x, Be, { edge: "end" }),
			focus: Bf.end(x, [])
		}, { distance: _r = 1 } = St, Li = 0;
		for (var fa of Bf.positions(x, Of(Of({}, St), {}, { at: Kn }))) {
			if (Li > _r) break;
			Li !== 0 && (We = fa), Li++;
		}
		return We;
	},
	before(x, Be) {
		var We, St = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Kn = {
			anchor: Bf.start(x, []),
			focus: Bf.point(x, Be, { edge: "start" })
		}, { distance: _r = 1 } = St, Li = 0;
		for (var fa of Bf.positions(x, Of(Of({}, St), {}, {
			at: Kn,
			reverse: !0
		}))) {
			if (Li > _r) break;
			Li !== 0 && (We = fa), Li++;
		}
		return We;
	},
	deleteBackward(x) {
		var { unit: Be = "character" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		x.deleteBackward(Be);
	},
	deleteForward(x) {
		var { unit: Be = "character" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		x.deleteForward(Be);
	},
	deleteFragment(x) {
		var { direction: Be = "forward" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		x.deleteFragment(Be);
	},
	edges: (x, Be) => [Bf.start(x, Be), Bf.end(x, Be)],
	end: (x, Be) => Bf.point(x, Be, { edge: "end" }),
	first(x, Be) {
		var We = Bf.path(x, Be, { edge: "start" });
		return Bf.node(x, We);
	},
	fragment(x, Be) {
		var We = Bf.range(x, Be);
		return Nf.fragment(x, We);
	},
	hasBlocks: (x, Be) => Be.children.some(((Be) => Bf.isBlock(x, Be))),
	hasInlines: (x, Be) => Be.children.some(((Be) => ed.isText(Be) || Bf.isInline(x, Be))),
	hasTexts: (x, Be) => Be.children.every(((x) => ed.isText(x))),
	insertBreak(x) {
		x.insertBreak();
	},
	insertFragment(x, Be) {
		x.insertFragment(Be);
	},
	insertNode(x, Be) {
		x.insertNode(Be);
	},
	insertText(x, Be) {
		x.insertText(Be);
	},
	isBlock: (x, Be) => Sf.isElement(Be) && !x.isInline(Be),
	isEditor(x) {
		if (!Ll(x)) return !1;
		var Be = kf.get(x);
		if (Be !== void 0) return Be;
		var We = typeof x.addMark == "function" && typeof x.apply == "function" && typeof x.deleteBackward == "function" && typeof x.deleteForward == "function" && typeof x.deleteFragment == "function" && typeof x.insertBreak == "function" && typeof x.insertFragment == "function" && typeof x.insertNode == "function" && typeof x.insertText == "function" && typeof x.isInline == "function" && typeof x.isVoid == "function" && typeof x.normalizeNode == "function" && typeof x.onChange == "function" && typeof x.removeMark == "function" && (x.marks === null || Ll(x.marks)) && (x.selection === null || qf.isRange(x.selection)) && Nf.isNodeList(x.children) && Rf.isOperationList(x.operations);
		return kf.set(x, We), We;
	},
	isEnd(x, Be, We) {
		var St = Bf.end(x, We);
		return Vf.equals(Be, St);
	},
	isEdge: (x, Be, We) => Bf.isStart(x, Be, We) || Bf.isEnd(x, Be, We),
	isEmpty(x, Be) {
		var { children: We } = Be, [St] = We;
		return We.length === 0 || We.length === 1 && ed.isText(St) && St.text === "" && !x.isVoid(Be);
	},
	isInline: (x, Be) => Sf.isElement(Be) && x.isInline(Be),
	isNormalizing(x) {
		var Be = Mc.get(x);
		return Be === void 0 || Be;
	},
	isStart(x, Be, We) {
		if (Be.offset !== 0) return !1;
		var St = Bf.start(x, We);
		return Vf.equals(Be, St);
	},
	isVoid: (x, Be) => Sf.isElement(Be) && x.isVoid(Be),
	last(x, Be) {
		var We = Bf.path(x, Be, { edge: "end" });
		return Bf.node(x, We);
	},
	leaf(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = Bf.path(x, Be, We);
		return [Nf.leaf(x, St), St];
	},
	*levels(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { at: We = x.selection, reverse: St = !1, voids: Kn = !1 } = Be, { match: _r } = Be;
		if (_r ??= () => !0, We) {
			var Li = [], fa = Bf.path(x, We);
			for (var [Vo, Xo] of Nf.levels(x, fa)) if (_r(Vo, Xo) && (Li.push([Vo, Xo]), !Kn && Bf.isVoid(x, Vo))) break;
			St && Li.reverse(), yield* Li;
		}
	},
	marks(x) {
		var { marks: Be, selection: We } = x;
		if (!We) return null;
		if (Be) return Be;
		if (qf.isExpanded(We)) {
			var [St] = Bf.nodes(x, { match: ed.isText });
			if (St) {
				var [Kn] = St;
				return qc(Kn, xf);
			}
			return {};
		}
		var { anchor: _r } = We, { path: Li } = _r, [fa] = Bf.leaf(x, Li);
		if (_r.offset === 0) {
			var Vo = Bf.previous(x, {
				at: Li,
				match: ed.isText
			}), Xo = Bf.above(x, { match: (Be) => Bf.isBlock(x, Be) });
			if (Vo && Xo) {
				var [Tc, Tl] = Vo, [, Al] = Xo;
				Mf.isAncestor(Al, Tl) && (fa = Tc);
			}
		}
		return qc(fa, Cf);
	},
	next(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { mode: We = "lowest", voids: St = !1 } = Be, { match: Kn, at: _r = x.selection } = Be;
		if (_r) {
			var Li = Bf.after(x, _r, { voids: St });
			if (Li) {
				var [, fa] = Bf.last(x, []), Vo = [Li.path, fa];
				if (Mf.isPath(_r) && _r.length === 0) throw Error("Cannot get the next node from the root node!");
				if (Kn == null) if (Mf.isPath(_r)) {
					var [Xo] = Bf.parent(x, _r);
					Kn = (x) => Xo.children.includes(x);
				} else Kn = () => !0;
				var [Tc] = Bf.nodes(x, {
					at: Vo,
					match: Kn,
					mode: We,
					voids: St
				});
				return Tc;
			}
		}
	},
	node(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = Bf.path(x, Be, We);
		return [Nf.get(x, St), St];
	},
	*nodes(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { at: We = x.selection, mode: St = "all", universal: Kn = !1, reverse: _r = !1, voids: Li = !1 } = Be, { match: fa } = Be;
		if (fa ||= () => !0, We) {
			var Vo, Xo;
			if (Tf.isSpan(We)) Vo = We[0], Xo = We[1];
			else {
				var Tc = Bf.path(x, We, { edge: "start" }), Tl = Bf.path(x, We, { edge: "end" });
				Vo = _r ? Tl : Tc, Xo = _r ? Tc : Tl;
			}
			var Al, Uu = Nf.nodes(x, {
				reverse: _r,
				from: Vo,
				to: Xo,
				pass: (Be) => {
					var [We] = Be;
					return !Li && Bf.isVoid(x, We);
				}
			}), Ff = [];
			for (var [Lm, Bm] of Uu) {
				var x_ = Al && Mf.compare(Bm, Al[1]) === 0;
				if (St !== "highest" || !x_) {
					if (fa(Lm, Bm)) if (St === "lowest" && x_) Al = [Lm, Bm];
					else {
						var uy = St === "lowest" ? Al : [Lm, Bm];
						uy && (Kn ? Ff.push(uy) : yield uy), Al = [Lm, Bm];
					}
					else if (Kn && !x_ && ed.isText(Lm)) return;
				}
			}
			St === "lowest" && Al && (Kn ? Ff.push(Al) : yield Al), Kn && (yield* Ff);
		}
	},
	normalize(x) {
		var { force: Be = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, We = (x) => Lc.get(x) || [];
		if (Bf.isNormalizing(x)) {
			if (Be) {
				var St = Array.from(Nf.nodes(x), ((x) => {
					var [, Be] = x;
					return Be;
				}));
				Lc.set(x, St);
			}
			We(x).length !== 0 && Bf.withoutNormalizing(x, (() => {
				for (var Be of We(x)) if (Nf.has(x, Be)) {
					var St = Bf.node(x, Be), [Kn, _r] = St;
					Sf.isElement(Kn) && Kn.children.length === 0 && x.normalizeNode(St);
				}
				for (var Li = 42 * We(x).length, fa = 0; We(x).length !== 0;) {
					if (fa > Li) throw Error(`
            Could not completely normalize the editor after ${Li} iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
          `);
					var Vo = We(x).pop();
					if (Nf.has(x, Vo)) {
						var Xo = Bf.node(x, Vo);
						x.normalizeNode(Xo);
					}
					fa++;
				}
			}));
		}
	},
	parent(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = Bf.path(x, Be, We), Kn = Mf.parent(St);
		return Bf.node(x, Kn);
	},
	path(x, Be) {
		var { depth: We, edge: St } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		if (Mf.isPath(Be)) {
			if (St === "start") {
				var [, Kn] = Nf.first(x, Be);
				Be = Kn;
			} else if (St === "end") {
				var [, _r] = Nf.last(x, Be);
				Be = _r;
			}
		}
		return qf.isRange(Be) && (Be = St === "start" ? qf.start(Be) : St === "end" ? qf.end(Be) : Mf.common(Be.anchor.path, Be.focus.path)), Vf.isPoint(Be) && (Be = Be.path), We != null && (Be = Be.slice(0, We)), Be;
	},
	hasPath: (x, Be) => Nf.has(x, Be),
	pathRef(x, Be) {
		var { affinity: We = "forward" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = {
			current: Be,
			affinity: We,
			unref() {
				var { current: Be } = St;
				return Bf.pathRefs(x).delete(St), St.current = null, Be;
			}
		};
		return Bf.pathRefs(x).add(St), St;
	},
	pathRefs(x) {
		var Be = zc.get(x);
		return Be || (Be = /* @__PURE__ */ new Set(), zc.set(x, Be)), Be;
	},
	point(x, Be) {
		var { edge: We = "start" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		if (Mf.isPath(Be)) {
			var St;
			if (We === "end") {
				var [, Kn] = Nf.last(x, Be);
				St = Kn;
			} else {
				var [, _r] = Nf.first(x, Be);
				St = _r;
			}
			var Li = Nf.get(x, St);
			if (!ed.isText(Li)) throw Error(`Cannot get the ${We} point in the node at path [${Be}] because it has no ${We} text node.`);
			return {
				path: St,
				offset: We === "end" ? Li.text.length : 0
			};
		}
		if (qf.isRange(Be)) {
			var [fa, Vo] = qf.edges(Be);
			return We === "start" ? fa : Vo;
		}
		return Be;
	},
	pointRef(x, Be) {
		var { affinity: We = "forward" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = {
			current: Be,
			affinity: We,
			unref() {
				var { current: Be } = St;
				return Bf.pointRefs(x).delete(St), St.current = null, Be;
			}
		};
		return Bf.pointRefs(x).add(St), St;
	},
	pointRefs(x) {
		var Be = $c.get(x);
		return Be || (Be = /* @__PURE__ */ new Set(), $c.set(x, Be)), Be;
	},
	*positions(x) {
		var { at: Be = x.selection, unit: We = "offset", reverse: St = !1, voids: Kn = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		if (Be) {
			var _r = Bf.range(x, Be), [Li, fa] = qf.edges(_r), Vo = St ? fa : Li, Xo = !1, Tc = "", Tl = 0, Al = 0, Uu = 0;
			for (var [Ff, Lm] of Bf.nodes(x, {
				at: Be,
				reverse: St,
				voids: Kn
			})) {
				if (Sf.isElement(Ff)) {
					if (!Kn && x.isVoid(Ff)) {
						yield Bf.start(x, Lm);
						continue;
					}
					if (x.isInline(Ff)) continue;
					if (Bf.hasInlines(x, Ff)) {
						var Bm = Mf.isAncestor(Lm, fa.path) ? fa : Bf.end(x, Lm), x_ = Mf.isAncestor(Lm, Li.path) ? Li : Bf.start(x, Lm);
						Tc = Bf.string(x, {
							anchor: x_,
							focus: Bm
						}, { voids: Kn }), Xo = !0;
					}
				}
				if (ed.isText(Ff)) {
					var uy = Mf.equals(Lm, Vo.path);
					for (uy ? (Al = St ? Vo.offset : Ff.text.length - Vo.offset, Uu = Vo.offset) : (Al = Ff.text.length, Uu = St ? Al : 0), (uy || Xo || We === "offset") && (yield {
						path: Lm,
						offset: Uu
					}, Xo = !1);;) {
						if (Tl === 0) {
							if (Tc === "") break;
							Tl = dx(Tc, We, St), Tc = Qc(Tc, Tl, St)[1];
						}
						if (Uu = St ? Uu - Tl : Uu + Tl, (Al -= Tl) < 0) {
							Tl = -Al;
							break;
						}
						Tl = 0, yield {
							path: Lm,
							offset: Uu
						};
					}
				}
			}
		}
		function dx(x, Be, We) {
			return Be === "character" ? Yc(x, We) : Be === "word" ? function(x) {
				for (var Be = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], We = 0, St = !1; x.length > 0;) {
					var Kn = Yc(x, Be), [_r, Li] = Qc(x, Kn, Be);
					if (ef(_r, Li, Be)) St = !0, We += Kn;
					else {
						if (St) break;
						We += Kn;
					}
					x = Li;
				}
				return We;
			}(x, We) : Be === "line" || Be === "block" ? x.length : 1;
		}
	},
	previous(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { mode: We = "lowest", voids: St = !1 } = Be, { match: Kn, at: _r = x.selection } = Be;
		if (_r) {
			var Li = Bf.before(x, _r, { voids: St });
			if (Li) {
				var [, fa] = Bf.first(x, []), Vo = [Li.path, fa];
				if (Mf.isPath(_r) && _r.length === 0) throw Error("Cannot get the previous node from the root node!");
				if (Kn == null) if (Mf.isPath(_r)) {
					var [Xo] = Bf.parent(x, _r);
					Kn = (x) => Xo.children.includes(x);
				} else Kn = () => !0;
				var [Tc] = Bf.nodes(x, {
					reverse: !0,
					at: Vo,
					match: Kn,
					mode: We,
					voids: St
				});
				return Tc;
			}
		}
	},
	range: (x, Be, We) => qf.isRange(Be) && !We ? Be : {
		anchor: Bf.start(x, Be),
		focus: Bf.end(x, We || Be)
	},
	rangeRef(x, Be) {
		var { affinity: We = "forward" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = {
			current: Be,
			affinity: We,
			unref() {
				var { current: Be } = St;
				return Bf.rangeRefs(x).delete(St), St.current = null, Be;
			}
		};
		return Bf.rangeRefs(x).add(St), St;
	},
	rangeRefs(x) {
		var Be = Hc.get(x);
		return Be || (Be = /* @__PURE__ */ new Set(), Hc.set(x, Be)), Be;
	},
	removeMark(x, Be) {
		x.removeMark(Be);
	},
	setNormalizing(x, Be) {
		Mc.set(x, Be);
	},
	start: (x, Be) => Bf.point(x, Be, { edge: "start" }),
	string(x, Be) {
		var { voids: We = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = Bf.range(x, Be), [Kn, _r] = qf.edges(St), Li = "";
		for (var [fa, Vo] of Bf.nodes(x, {
			at: St,
			match: ed.isText,
			voids: We
		})) {
			var Xo = fa.text;
			Mf.equals(Vo, _r.path) && (Xo = Xo.slice(0, _r.offset)), Mf.equals(Vo, Kn.path) && (Xo = Xo.slice(Kn.offset)), Li += Xo;
		}
		return Li;
	},
	unhangRange(x, Be) {
		var { voids: We = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, [St, Kn] = qf.edges(Be);
		if (St.offset !== 0 || Kn.offset !== 0 || qf.isCollapsed(Be)) return Be;
		var _r = Bf.above(x, {
			at: Kn,
			match: (Be) => Bf.isBlock(x, Be)
		}), Li = _r ? _r[1] : [], fa = {
			anchor: Bf.start(x, []),
			focus: Kn
		}, Vo = !0;
		for (var [Xo, Tc] of Bf.nodes(x, {
			at: fa,
			match: ed.isText,
			reverse: !0,
			voids: We
		})) if (Vo) Vo = !1;
		else if (Xo.text !== "" || Mf.isBefore(Tc, Li)) {
			Kn = {
				path: Tc,
				offset: Xo.text.length
			};
			break;
		}
		return {
			anchor: St,
			focus: Kn
		};
	},
	void(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		return Bf.above(x, Of(Of({}, Be), {}, { match: (Be) => Bf.isVoid(x, Be) }));
	},
	withoutNormalizing(x, Be) {
		var We = Bf.isNormalizing(x);
		Bf.setNormalizing(x, !1);
		try {
			Be();
		} finally {
			Bf.setNormalizing(x, We);
		}
		Bf.normalize(x);
	}
}, Tf = { isSpan: (x) => Array.isArray(x) && x.length === 2 && x.every(Mf.isPath) }, _f = ["children"], Pf = ["text"], jf = /* @__PURE__ */ new WeakMap(), Nf = {
	ancestor(x, Be) {
		var We = Nf.get(x, Be);
		if (ed.isText(We)) throw Error(`Cannot get the ancestor node at path [${Be}] because it refers to a text node instead: ${We}`);
		return We;
	},
	*ancestors(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		for (var St of Mf.ancestors(Be, We)) yield [Nf.ancestor(x, St), St];
	},
	child(x, Be) {
		if (ed.isText(x)) throw Error(`Cannot get the child of a text node: ${JSON.stringify(x)}`);
		var We = x.children[Be];
		if (We == null) throw Error(`Cannot get child at index \`${Be}\` in node: ${JSON.stringify(x)}`);
		return We;
	},
	*children(x, Be) {
		for (var { reverse: We = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, St = Nf.ancestor(x, Be), { children: Kn } = St, _r = We ? Kn.length - 1 : 0; We ? _r >= 0 : _r < Kn.length;) yield [Nf.child(St, _r), Be.concat(_r)], _r = We ? _r - 1 : _r + 1;
	},
	common(x, Be, We) {
		var St = Mf.common(Be, We);
		return [Nf.get(x, St), St];
	},
	descendant(x, Be) {
		var We = Nf.get(x, Be);
		if (Bf.isEditor(We)) throw Error(`Cannot get the descendant node at path [${Be}] because it refers to the root editor node instead: ${We}`);
		return We;
	},
	*descendants(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		for (var [We, St] of Nf.nodes(x, Be)) St.length !== 0 && (yield [We, St]);
	},
	*elements(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		for (var [We, St] of Nf.nodes(x, Be)) Sf.isElement(We) && (yield [We, St]);
	},
	extractProps: (x) => Sf.isAncestor(x) ? qc(x, _f) : qc(x, Pf),
	first(x, Be) {
		for (var We = Be.slice(), St = Nf.get(x, We); St && !ed.isText(St) && St.children.length !== 0;) St = St.children[0], We.push(0);
		return [St, We];
	},
	fragment(x, Be) {
		if (ed.isText(x)) throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(x)}`);
		return Pc({ children: x.children }, ((x) => {
			var [We, St] = qf.edges(Be);
			for (var [, Kn] of Nf.nodes(x, {
				reverse: !0,
				pass: (x) => {
					var [, We] = x;
					return !qf.includes(Be, We);
				}
			})) {
				if (!qf.includes(Be, Kn)) {
					var _r = Nf.parent(x, Kn), Li = Kn[Kn.length - 1];
					_r.children.splice(Li, 1);
				}
				if (Mf.equals(Kn, St.path)) {
					var fa = Nf.leaf(x, Kn);
					fa.text = fa.text.slice(0, St.offset);
				}
				if (Mf.equals(Kn, We.path)) {
					var Vo = Nf.leaf(x, Kn);
					Vo.text = Vo.text.slice(We.offset);
				}
			}
			Bf.isEditor(x) && (x.selection = null);
		})).children;
	},
	get(x, Be) {
		for (var We = x, St = 0; St < Be.length; St++) {
			var Kn = Be[St];
			if (ed.isText(We) || !We.children[Kn]) throw Error(`Cannot find a descendant at path [${Be}] in node: ${JSON.stringify(x)}`);
			We = We.children[Kn];
		}
		return We;
	},
	has(x, Be) {
		for (var We = x, St = 0; St < Be.length; St++) {
			var Kn = Be[St];
			if (ed.isText(We) || !We.children[Kn]) return !1;
			We = We.children[Kn];
		}
		return !0;
	},
	isNode: (x) => ed.isText(x) || Sf.isElement(x) || Bf.isEditor(x),
	isNodeList(x) {
		if (!Array.isArray(x)) return !1;
		var Be = jf.get(x);
		if (Be !== void 0) return Be;
		var We = x.every(((x) => Nf.isNode(x)));
		return jf.set(x, We), We;
	},
	last(x, Be) {
		for (var We = Be.slice(), St = Nf.get(x, We); St && !ed.isText(St) && St.children.length !== 0;) {
			var Kn = St.children.length - 1;
			St = St.children[Kn], We.push(Kn);
		}
		return [St, We];
	},
	leaf(x, Be) {
		var We = Nf.get(x, Be);
		if (!ed.isText(We)) throw Error(`Cannot get the leaf node at path [${Be}] because it refers to a non-leaf node: ${We}`);
		return We;
	},
	*levels(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		for (var St of Mf.levels(Be, We)) yield [Nf.get(x, St), St];
	},
	matches: (x, Be) => Sf.isElement(x) && Sf.isElementProps(Be) && Sf.matches(x, Be) || ed.isText(x) && ed.isTextProps(Be) && ed.matches(x, Be),
	*nodes(x) {
		for (var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { pass: We, reverse: St = !1 } = Be, { from: Kn = [], to: _r } = Be, Li = /* @__PURE__ */ new Set(), fa = [], Vo = x; !_r || !(St ? Mf.isBefore(fa, _r) : Mf.isAfter(fa, _r));) if (Li.has(Vo) || (yield [Vo, fa]), Li.has(Vo) || ed.isText(Vo) || Vo.children.length === 0 || We != null && !1 !== We([Vo, fa])) {
			if (fa.length === 0) break;
			if (!St) {
				var Xo = Mf.next(fa);
				if (Nf.has(x, Xo)) {
					fa = Xo, Vo = Nf.get(x, fa);
					continue;
				}
			}
			St && fa[fa.length - 1] !== 0 ? (fa = Mf.previous(fa), Vo = Nf.get(x, fa)) : (fa = Mf.parent(fa), Vo = Nf.get(x, fa), Li.add(Vo));
		} else {
			Li.add(Vo);
			var Tc = St ? Vo.children.length - 1 : 0;
			Mf.isAncestor(fa, Kn) && (Tc = Kn[fa.length]), fa = fa.concat(Tc), Vo = Nf.get(x, fa);
		}
	},
	parent(x, Be) {
		var We = Mf.parent(Be), St = Nf.get(x, We);
		if (ed.isText(St)) throw Error(`Cannot get the parent of path [${Be}] because it does not exist in the root.`);
		return St;
	},
	string: (x) => ed.isText(x) ? x.text : x.children.map(Nf.string).join(""),
	*texts(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		for (var [We, St] of Nf.nodes(x, Be)) ed.isText(We) && (yield [We, St]);
	}
};
function If(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function Lf(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? If(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : If(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var Rf = {
	isNodeOperation: (x) => Rf.isOperation(x) && x.type.endsWith("_node"),
	isOperation(x) {
		if (!Ll(x)) return !1;
		switch (x.type) {
			case "insert_node":
			case "remove_node": return Mf.isPath(x.path) && Nf.isNode(x.node);
			case "insert_text":
			case "remove_text": return typeof x.offset == "number" && typeof x.text == "string" && Mf.isPath(x.path);
			case "merge_node": return typeof x.position == "number" && Mf.isPath(x.path) && Ll(x.properties);
			case "move_node": return Mf.isPath(x.path) && Mf.isPath(x.newPath);
			case "set_node": return Mf.isPath(x.path) && Ll(x.properties) && Ll(x.newProperties);
			case "set_selection": return x.properties === null && qf.isRange(x.newProperties) || x.newProperties === null && qf.isRange(x.properties) || Ll(x.properties) && Ll(x.newProperties);
			case "split_node": return Mf.isPath(x.path) && typeof x.position == "number" && Ll(x.properties);
			default: return !1;
		}
	},
	isOperationList: (x) => Array.isArray(x) && x.every(((x) => Rf.isOperation(x))),
	isSelectionOperation: (x) => Rf.isOperation(x) && x.type.endsWith("_selection"),
	isTextOperation: (x) => Rf.isOperation(x) && x.type.endsWith("_text"),
	inverse(x) {
		switch (x.type) {
			case "insert_node": return Lf(Lf({}, x), {}, { type: "remove_node" });
			case "insert_text": return Lf(Lf({}, x), {}, { type: "remove_text" });
			case "merge_node": return Lf(Lf({}, x), {}, {
				type: "split_node",
				path: Mf.previous(x.path)
			});
			case "move_node":
				var { newPath: Be, path: We } = x;
				if (Mf.equals(Be, We)) return x;
				if (Mf.isSibling(We, Be)) return Lf(Lf({}, x), {}, {
					path: Be,
					newPath: We
				});
				var St = Mf.transform(We, x), Kn = Mf.transform(Mf.next(We), x);
				return Lf(Lf({}, x), {}, {
					path: St,
					newPath: Kn
				});
			case "remove_node": return Lf(Lf({}, x), {}, { type: "insert_node" });
			case "remove_text": return Lf(Lf({}, x), {}, { type: "insert_text" });
			case "set_node":
				var { properties: _r, newProperties: Li } = x;
				return Lf(Lf({}, x), {}, {
					properties: Li,
					newProperties: _r
				});
			case "set_selection":
				var { properties: fa, newProperties: Vo } = x;
				return Lf(Lf({}, x), {}, fa == null ? {
					properties: Vo,
					newProperties: null
				} : Vo == null ? {
					properties: null,
					newProperties: fa
				} : {
					properties: Vo,
					newProperties: fa
				});
			case "split_node": return Lf(Lf({}, x), {}, {
				type: "merge_node",
				path: Mf.next(x.path)
			});
		}
	}
}, Mf = {
	ancestors(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { reverse: We = !1 } = Be, St = Mf.levels(x, Be);
		return St = We ? St.slice(1) : St.slice(0, -1);
	},
	common(x, Be) {
		for (var We = [], St = 0; St < x.length && St < Be.length; St++) {
			var Kn = x[St];
			if (Kn !== Be[St]) break;
			We.push(Kn);
		}
		return We;
	},
	compare(x, Be) {
		for (var We = Math.min(x.length, Be.length), St = 0; St < We; St++) {
			if (x[St] < Be[St]) return -1;
			if (x[St] > Be[St]) return 1;
		}
		return 0;
	},
	endsAfter(x, Be) {
		var We = x.length - 1, St = x.slice(0, We), Kn = Be.slice(0, We), _r = x[We], Li = Be[We];
		return Mf.equals(St, Kn) && _r > Li;
	},
	endsAt(x, Be) {
		var We = x.length, St = x.slice(0, We), Kn = Be.slice(0, We);
		return Mf.equals(St, Kn);
	},
	endsBefore(x, Be) {
		var We = x.length - 1, St = x.slice(0, We), Kn = Be.slice(0, We), _r = x[We], Li = Be[We];
		return Mf.equals(St, Kn) && _r < Li;
	},
	equals: (x, Be) => x.length === Be.length && x.every(((x, We) => x === Be[We])),
	hasPrevious: (x) => x[x.length - 1] > 0,
	isAfter: (x, Be) => Mf.compare(x, Be) === 1,
	isAncestor: (x, Be) => x.length < Be.length && Mf.compare(x, Be) === 0,
	isBefore: (x, Be) => Mf.compare(x, Be) === -1,
	isChild: (x, Be) => x.length === Be.length + 1 && Mf.compare(x, Be) === 0,
	isCommon: (x, Be) => x.length <= Be.length && Mf.compare(x, Be) === 0,
	isDescendant: (x, Be) => x.length > Be.length && Mf.compare(x, Be) === 0,
	isParent: (x, Be) => x.length + 1 === Be.length && Mf.compare(x, Be) === 0,
	isPath: (x) => Array.isArray(x) && (x.length === 0 || typeof x[0] == "number"),
	isSibling(x, Be) {
		if (x.length !== Be.length) return !1;
		var We = x.slice(0, -1), St = Be.slice(0, -1);
		return x[x.length - 1] !== Be[Be.length - 1] && Mf.equals(We, St);
	},
	levels(x) {
		for (var { reverse: Be = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, We = [], St = 0; St <= x.length; St++) We.push(x.slice(0, St));
		return Be && We.reverse(), We;
	},
	next(x) {
		if (x.length === 0) throw Error(`Cannot get the next path of a root path [${x}], because it has no next index.`);
		var Be = x[x.length - 1];
		return x.slice(0, -1).concat(Be + 1);
	},
	parent(x) {
		if (x.length === 0) throw Error(`Cannot get the parent path of the root path [${x}].`);
		return x.slice(0, -1);
	},
	previous(x) {
		if (x.length === 0) throw Error(`Cannot get the previous path of a root path [${x}], because it has no previous index.`);
		var Be = x[x.length - 1];
		if (Be <= 0) throw Error(`Cannot get the previous path of a first child path [${x}] because it would result in a negative index.`);
		return x.slice(0, -1).concat(Be - 1);
	},
	relative(x, Be) {
		if (!Mf.isAncestor(Be, x) && !Mf.equals(x, Be)) throw Error(`Cannot get the relative path of [${x}] inside ancestor [${Be}], because it is not above or equal to the path.`);
		return x.slice(Be.length);
	},
	transform(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		return Pc(x, ((St) => {
			var { affinity: Kn = "forward" } = We;
			if (x && x?.length !== 0) {
				if (St === null) return null;
				switch (Be.type) {
					case "insert_node":
						var { path: _r } = Be;
						(Mf.equals(_r, St) || Mf.endsBefore(_r, St) || Mf.isAncestor(_r, St)) && (St[_r.length - 1] += 1);
						break;
					case "remove_node":
						var { path: Li } = Be;
						if (Mf.equals(Li, St) || Mf.isAncestor(Li, St)) return null;
						Mf.endsBefore(Li, St) && --St[Li.length - 1];
						break;
					case "merge_node":
						var { path: fa, position: Vo } = Be;
						Mf.equals(fa, St) || Mf.endsBefore(fa, St) ? --St[fa.length - 1] : Mf.isAncestor(fa, St) && (--St[fa.length - 1], St[fa.length] += Vo);
						break;
					case "split_node":
						var { path: Xo, position: Tc } = Be;
						if (Mf.equals(Xo, St)) {
							if (Kn === "forward") St[St.length - 1] += 1;
							else if (Kn !== "backward") return null;
						} else Mf.endsBefore(Xo, St) ? St[Xo.length - 1] += 1 : Mf.isAncestor(Xo, St) && x[Xo.length] >= Tc && (St[Xo.length - 1] += 1, St[Xo.length] -= Tc);
						break;
					case "move_node":
						var { path: Tl, newPath: Al } = Be;
						if (Mf.equals(Tl, Al)) return;
						if (Mf.isAncestor(Tl, St) || Mf.equals(Tl, St)) {
							var Uu = Al.slice();
							return Mf.endsBefore(Tl, Al) && Tl.length < Al.length && --Uu[Tl.length - 1], Uu.concat(St.slice(Tl.length));
						}
						Mf.isSibling(Tl, Al) && (Mf.isAncestor(Al, St) || Mf.equals(Al, St)) ? Mf.endsBefore(Tl, St) ? --St[Tl.length - 1] : St[Tl.length - 1] += 1 : Mf.endsBefore(Al, St) || Mf.equals(Al, St) || Mf.isAncestor(Al, St) ? (Mf.endsBefore(Tl, St) && --St[Tl.length - 1], St[Al.length - 1] += 1) : Mf.endsBefore(Tl, St) && (Mf.equals(Al, St) && (St[Al.length - 1] += 1), --St[Tl.length - 1]);
				}
			}
		}));
	}
}, zf = { transform(x, Be) {
	var { current: We, affinity: St } = x;
	if (We != null) {
		var Kn = Mf.transform(We, Be, { affinity: St });
		x.current = Kn, Kn ?? x.unref();
	}
} };
function $f(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function Hf(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? $f(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : $f(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var Vf = {
	compare(x, Be) {
		var We = Mf.compare(x.path, Be.path);
		return We === 0 ? x.offset < Be.offset ? -1 : x.offset > Be.offset ? 1 : 0 : We;
	},
	isAfter: (x, Be) => Vf.compare(x, Be) === 1,
	isBefore: (x, Be) => Vf.compare(x, Be) === -1,
	equals: (x, Be) => x.offset === Be.offset && Mf.equals(x.path, Be.path),
	isPoint: (x) => Ll(x) && typeof x.offset == "number" && Mf.isPath(x.path),
	transform(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		return Pc(x, ((x) => {
			if (x === null) return null;
			var { affinity: St = "forward" } = We, { path: Kn, offset: _r } = x;
			switch (Be.type) {
				case "insert_node":
				case "move_node":
					x.path = Mf.transform(Kn, Be, We);
					break;
				case "insert_text":
					Mf.equals(Be.path, Kn) && Be.offset <= _r && (x.offset += Be.text.length);
					break;
				case "merge_node":
					Mf.equals(Be.path, Kn) && (x.offset += Be.position), x.path = Mf.transform(Kn, Be, We);
					break;
				case "remove_text":
					Mf.equals(Be.path, Kn) && Be.offset <= _r && (x.offset -= Math.min(_r - Be.offset, Be.text.length));
					break;
				case "remove_node":
					if (Mf.equals(Be.path, Kn) || Mf.isAncestor(Be.path, Kn)) return null;
					x.path = Mf.transform(Kn, Be, We);
					break;
				case "split_node": if (Mf.equals(Be.path, Kn)) {
					if (Be.position === _r && St == null) return null;
					(Be.position < _r || Be.position === _r && St === "forward") && (x.offset -= Be.position, x.path = Mf.transform(Kn, Be, Hf(Hf({}, We), {}, { affinity: "forward" })));
				} else x.path = Mf.transform(Kn, Be, We);
			}
		}));
	}
}, Uf = { transform(x, Be) {
	var { current: We, affinity: St } = x;
	if (We != null) {
		var Kn = Vf.transform(We, Be, { affinity: St });
		x.current = Kn, Kn ?? x.unref();
	}
} }, Wf = ["anchor", "focus"];
function Gf(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
var qf = {
	edges(x) {
		var { reverse: Be = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { anchor: We, focus: St } = x;
		return qf.isBackward(x) === Be ? [We, St] : [St, We];
	},
	end(x) {
		var [, Be] = qf.edges(x);
		return Be;
	},
	equals: (x, Be) => Vf.equals(x.anchor, Be.anchor) && Vf.equals(x.focus, Be.focus),
	includes(x, Be) {
		if (qf.isRange(Be)) {
			if (qf.includes(x, Be.anchor) || qf.includes(x, Be.focus)) return !0;
			var [We, St] = qf.edges(x), [Kn, _r] = qf.edges(Be);
			return Vf.isBefore(We, Kn) && Vf.isAfter(St, _r);
		}
		var [Li, fa] = qf.edges(x), Vo = !1, Xo = !1;
		return Vf.isPoint(Be) ? (Vo = Vf.compare(Be, Li) >= 0, Xo = Vf.compare(Be, fa) <= 0) : (Vo = Mf.compare(Be, Li.path) >= 0, Xo = Mf.compare(Be, fa.path) <= 0), Vo && Xo;
	},
	intersection(x, Be) {
		var We = qc(x, Wf), [St, Kn] = qf.edges(x), [_r, Li] = qf.edges(Be), fa = Vf.isBefore(St, _r) ? _r : St, Vo = Vf.isBefore(Kn, Li) ? Kn : Li;
		return Vf.isBefore(Vo, fa) ? null : function(x) {
			for (var Be = 1; Be < arguments.length; Be++) {
				var We = arguments[Be] == null ? {} : arguments[Be];
				Be % 2 ? Gf(Object(We), !0).forEach((function(Be) {
					Ic(x, Be, We[Be]);
				})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : Gf(Object(We)).forEach((function(Be) {
					Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
				}));
			}
			return x;
		}({
			anchor: fa,
			focus: Vo
		}, We);
	},
	isBackward(x) {
		var { anchor: Be, focus: We } = x;
		return Vf.isAfter(Be, We);
	},
	isCollapsed(x) {
		var { anchor: Be, focus: We } = x;
		return Vf.equals(Be, We);
	},
	isExpanded: (x) => !qf.isCollapsed(x),
	isForward: (x) => !qf.isBackward(x),
	isRange: (x) => Ll(x) && Vf.isPoint(x.anchor) && Vf.isPoint(x.focus),
	*points(x) {
		yield [x.anchor, "anchor"], yield [x.focus, "focus"];
	},
	start(x) {
		var [Be] = qf.edges(x);
		return Be;
	},
	transform(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		return Pc(x, ((x) => {
			if (x === null) return null;
			var St, Kn, { affinity: _r = "inward" } = We;
			if (_r === "inward") {
				var Li = qf.isCollapsed(x);
				qf.isForward(x) ? (St = "forward", Kn = Li ? St : "backward") : (St = "backward", Kn = Li ? St : "forward");
			} else _r === "outward" ? qf.isForward(x) ? (St = "backward", Kn = "forward") : (St = "forward", Kn = "backward") : (St = _r, Kn = _r);
			var fa = Vf.transform(x.anchor, Be, { affinity: St }), Vo = Vf.transform(x.focus, Be, { affinity: Kn });
			if (!fa || !Vo) return null;
			x.anchor = fa, x.focus = Vo;
		}));
	}
}, Kf = { transform(x, Be) {
	var { current: We, affinity: St } = x;
	if (We != null) {
		var Kn = qf.transform(We, Be, { affinity: St });
		x.current = Kn, Kn ?? x.unref();
	}
} }, Yf = (x, Be) => {
	for (var We in x) {
		var St = x[We], Kn = Be[We];
		if (Ll(St) && Ll(Kn)) {
			if (!Yf(St, Kn)) return !1;
		} else if (Array.isArray(St) && Array.isArray(Kn)) {
			if (St.length !== Kn.length) return !1;
			for (var _r = 0; _r < St.length; _r++) if (St[_r] !== Kn[_r]) return !1;
		} else if (St !== Kn) return !1;
	}
	for (var Li in Be) if (x[Li] === void 0 && Be[Li] !== void 0) return !1;
	return !0;
}, Xf = ["text"], Zf = ["anchor", "focus"];
function Jf(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function Qf(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? Jf(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : Jf(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var ed = {
	equals(x, Be) {
		var { loose: We = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		function St(x) {
			return qc(x, Xf);
		}
		return Yf(We ? St(x) : x, We ? St(Be) : Be);
	},
	isText: (x) => Ll(x) && typeof x.text == "string",
	isTextList: (x) => Array.isArray(x) && x.every(((x) => ed.isText(x))),
	isTextProps: (x) => x.text !== void 0,
	matches(x, Be) {
		for (var We in Be) if (We !== "text" && (!x.hasOwnProperty(We) || x[We] !== Be[We])) return !1;
		return !0;
	},
	decorations(x, Be) {
		var We = [Qf({}, x)];
		for (var St of Be) {
			var Kn = qc(St, Zf), [_r, Li] = qf.edges(St), fa = [], Vo = 0;
			for (var Xo of We) {
				var { length: Tc } = Xo.text, Tl = Vo;
				if (Vo += Tc, _r.offset <= Tl && Li.offset >= Vo) Object.assign(Xo, Kn), fa.push(Xo);
				else if (_r.offset !== Li.offset && (_r.offset === Vo || Li.offset === Tl) || _r.offset > Vo || Li.offset < Tl || Li.offset === Tl && Tl !== 0) fa.push(Xo);
				else {
					var Al = Xo, Uu = void 0, Ff = void 0;
					if (Li.offset < Vo) {
						var Lm = Li.offset - Tl;
						Ff = Qf(Qf({}, Al), {}, { text: Al.text.slice(Lm) }), Al = Qf(Qf({}, Al), {}, { text: Al.text.slice(0, Lm) });
					}
					if (_r.offset > Tl) {
						var Bm = _r.offset - Tl;
						Uu = Qf(Qf({}, Al), {}, { text: Al.text.slice(0, Bm) }), Al = Qf(Qf({}, Al), {}, { text: Al.text.slice(Bm) });
					}
					Object.assign(Al, Kn), Uu && fa.push(Uu), fa.push(Al), Ff && fa.push(Ff);
				}
			}
			We = fa;
		}
		return We;
	}
};
function td(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function nd(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? td(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : td(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var rd = { transform(x, Be) {
	x.children = jc(x.children);
	var We = x.selection && jc(x.selection);
	try {
		We = ((x, Be, We) => {
			switch (We.type) {
				case "insert_node":
					var { path: St, node: Kn } = We, _r = Nf.parent(x, St), Li = St[St.length - 1];
					if (Li > _r.children.length) throw Error(`Cannot apply an "insert_node" operation at path [${St}] because the destination is past the end of the node.`);
					if (_r.children.splice(Li, 0, Kn), Be) for (var [fa, Vo] of qf.points(Be)) Be[Vo] = Vf.transform(fa, We);
					break;
				case "insert_text":
					var { path: Xo, offset: Tc, text: Tl } = We;
					if (Tl.length === 0) break;
					var Al = Nf.leaf(x, Xo), Uu = Al.text.slice(0, Tc), Ff = Al.text.slice(Tc);
					if (Al.text = Uu + Tl + Ff, Be) for (var [Lm, Bm] of qf.points(Be)) Be[Bm] = Vf.transform(Lm, We);
					break;
				case "merge_node":
					var { path: x_ } = We, uy = Nf.get(x, x_), dx = Mf.previous(x_), kx = Nf.get(x, dx), eC = Nf.parent(x, x_), uC = x_[x_.length - 1];
					if (ed.isText(uy) && ed.isText(kx)) kx.text += uy.text;
					else {
						if (ed.isText(uy) || ed.isText(kx)) throw Error(`Cannot apply a "merge_node" operation at path [${x_}] to nodes of different interfaces: ${uy} ${kx}`);
						kx.children.push(...uy.children);
					}
					if (eC.children.splice(uC, 1), Be) for (var [_T, ID] of qf.points(Be)) Be[ID] = Vf.transform(_T, We);
					break;
				case "move_node":
					var { path: ok, newPath: ij } = We;
					if (Mf.isAncestor(ok, ij)) throw Error(`Cannot move a path [${ok}] to new path [${ij}] because the destination is inside itself.`);
					var Dj = Nf.get(x, ok), LP = Nf.parent(x, ok), zP = ok[ok.length - 1];
					LP.children.splice(zP, 1);
					var $P = Mf.transform(ok, We), CF = Nf.get(x, Mf.parent($P)), VF = $P[$P.length - 1];
					if (CF.children.splice(VF, 0, Dj), Be) for (var [nR, tH] of qf.points(Be)) Be[tH] = Vf.transform(nR, We);
					break;
				case "remove_node":
					var { path: MH } = We, vG = MH[MH.length - 1];
					if (Nf.parent(x, MH).children.splice(vG, 1), Be) for (var [jG, pMt] of qf.points(Be)) {
						var eq = Vf.transform(jG, We);
						if (Be != null && eq != null) Be[pMt] = eq;
						else {
							var iq = void 0, Vq = void 0;
							for (var [Hq, Uq] of Nf.texts(x)) {
								if (Mf.compare(Uq, MH) !== -1) {
									Vq = [Hq, Uq];
									break;
								}
								iq = [Hq, Uq];
							}
							var mMt = !1;
							iq && Vq && (mMt = Mf.equals(Vq[1], MH) ? !Mf.hasPrevious(Vq[1]) : Mf.common(iq[1], MH).length < Mf.common(Vq[1], MH).length), iq && !mMt ? (jG.path = iq[1], jG.offset = iq[0].text.length) : Vq ? (jG.path = Vq[1], jG.offset = 0) : Be = null;
						}
					}
					break;
				case "remove_text":
					var { path: hMt, offset: gMt, text: _Mt } = We;
					if (_Mt.length === 0) break;
					var vMt = Nf.leaf(x, hMt);
					if (vMt.text = vMt.text.slice(0, gMt) + vMt.text.slice(gMt + _Mt.length), Be) for (var [yMt, bMt] of qf.points(Be)) Be[bMt] = Vf.transform(yMt, We);
					break;
				case "set_node":
					var { path: qX, properties: xMt, newProperties: RQ } = We;
					if (qX.length === 0) throw Error("Cannot set properties on the root node!");
					var SMt = Nf.get(x, qX);
					for (var CMt in RQ) {
						if (CMt === "children" || CMt === "text") throw Error(`Cannot set the "${CMt}" property of nodes!`);
						var wMt = RQ[CMt];
						wMt == null ? delete SMt[CMt] : SMt[CMt] = wMt;
					}
					for (var TMt in xMt) RQ.hasOwnProperty(TMt) || delete SMt[TMt];
					break;
				case "set_selection":
					var { newProperties: S2 } = We;
					if (S2 == null) Be = S2;
					else {
						if (Be == null) {
							if (!qf.isRange(S2)) throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(S2)} when there is no current selection.`);
							Be = nd({}, S2);
						}
						for (var EMt in S2) {
							var DMt = S2[EMt];
							if (DMt == null) {
								if (EMt === "anchor" || EMt === "focus") throw Error(`Cannot remove the "${EMt}" selection property`);
								delete Be[EMt];
							} else Be[EMt] = DMt;
						}
					}
					break;
				case "split_node":
					var { path: OMt, position: kMt, properties: AMt } = We;
					if (OMt.length === 0) throw Error(`Cannot apply a "split_node" operation at path [${OMt}] because the root node cannot be split.`);
					var jMt, MMt = Nf.get(x, OMt), NMt = Nf.parent(x, OMt), PMt = OMt[OMt.length - 1];
					if (ed.isText(MMt)) {
						var FMt = MMt.text.slice(0, kMt), U3 = MMt.text.slice(kMt);
						MMt.text = FMt, jMt = nd(nd({}, AMt), {}, { text: U3 });
					} else {
						var IMt = MMt.children.slice(0, kMt), LMt = MMt.children.slice(kMt);
						MMt.children = IMt, jMt = nd(nd({}, AMt), {}, { children: LMt });
					}
					if (NMt.children.splice(PMt + 1, 0, jMt), Be) for (var [RMt, zMt] of qf.points(Be)) Be[zMt] = Vf.transform(RMt, We);
			}
			return Be;
		})(x, We, Be);
	} finally {
		x.children = Nc(x.children), x.selection = We ? Ml(We) ? Nc(We) : We : null;
	}
} }, od = ["text"], id = ["children"];
function ad(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function ud(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? ad(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : ad(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var sd = {
	insertNodes(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		Bf.withoutNormalizing(x, (() => {
			var { hanging: St = !1, voids: Kn = !1, mode: _r = "lowest" } = We, { at: Li, match: fa, select: Vo } = We;
			if (Nf.isNode(Be) && (Be = [Be]), Be.length !== 0) {
				var [Xo] = Be;
				if (Li || (Li = x.selection ? x.selection : x.children.length > 0 ? Bf.end(x, []) : [0], Vo = !0), Vo ??= !1, qf.isRange(Li)) if (St || (Li = Bf.unhangRange(x, Li)), qf.isCollapsed(Li)) Li = Li.anchor;
				else {
					var [, Tc] = qf.edges(Li), Tl = Bf.pointRef(x, Tc);
					md.delete(x, { at: Li }), Li = Tl.unref();
				}
				if (Vf.isPoint(Li)) {
					fa ??= ed.isText(Xo) ? (x) => ed.isText(x) : x.isInline(Xo) ? (Be) => ed.isText(Be) || Bf.isInline(x, Be) : (Be) => Bf.isBlock(x, Be);
					var [Al] = Bf.nodes(x, {
						at: Li.path,
						match: fa,
						mode: _r,
						voids: Kn
					});
					if (!Al) return;
					var [, Uu] = Al, Ff = Bf.pathRef(x, Uu), Lm = Bf.isEnd(x, Li, Uu);
					md.splitNodes(x, {
						at: Li,
						match: fa,
						mode: _r,
						voids: Kn
					});
					var Bm = Ff.unref();
					Li = Lm ? Mf.next(Bm) : Bm;
				}
				var x_ = Mf.parent(Li), uy = Li[Li.length - 1];
				if (Kn || !Bf.void(x, { at: x_ })) {
					for (var dx of Be) {
						var kx = x_.concat(uy);
						uy++, x.apply({
							type: "insert_node",
							path: kx,
							node: dx
						}), Li = Mf.next(Li);
					}
					if (Li = Mf.previous(Li), Vo) {
						var eC = Bf.end(x, Li);
						eC && md.select(x, eC);
					}
				}
			}
		}));
	},
	liftNodes(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		Bf.withoutNormalizing(x, (() => {
			var { at: We = x.selection, mode: St = "lowest", voids: Kn = !1 } = Be, { match: _r } = Be;
			if (_r ??= Mf.isPath(We) ? fd(x, We) : (Be) => Bf.isBlock(x, Be), We) {
				var Li = Bf.nodes(x, {
					at: We,
					match: _r,
					mode: St,
					voids: Kn
				});
				for (var fa of Array.from(Li, ((Be) => {
					var [, We] = Be;
					return Bf.pathRef(x, We);
				}))) {
					var Vo = fa.unref();
					if (Vo.length < 2) throw Error(`Cannot lift node at a path [${Vo}] because it has a depth of less than \`2\`.`);
					var [Xo, Tc] = Bf.node(x, Mf.parent(Vo)), Tl = Vo[Vo.length - 1], { length: Al } = Xo.children;
					if (Al === 1) {
						var Uu = Mf.next(Tc);
						md.moveNodes(x, {
							at: Vo,
							to: Uu,
							voids: Kn
						}), md.removeNodes(x, {
							at: Tc,
							voids: Kn
						});
					} else if (Tl === 0) md.moveNodes(x, {
						at: Vo,
						to: Tc,
						voids: Kn
					});
					else if (Tl === Al - 1) {
						var Ff = Mf.next(Tc);
						md.moveNodes(x, {
							at: Vo,
							to: Ff,
							voids: Kn
						});
					} else {
						var Lm = Mf.next(Vo), Bm = Mf.next(Tc);
						md.splitNodes(x, {
							at: Lm,
							voids: Kn
						}), md.moveNodes(x, {
							at: Vo,
							to: Bm,
							voids: Kn
						});
					}
				}
			}
		}));
	},
	mergeNodes(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		Bf.withoutNormalizing(x, (() => {
			var { match: We, at: St = x.selection } = Be, { hanging: Kn = !1, voids: _r = !1, mode: Li = "lowest" } = Be;
			if (St) {
				if (We == null) if (Mf.isPath(St)) {
					var [fa] = Bf.parent(x, St);
					We = (x) => fa.children.includes(x);
				} else We = (Be) => Bf.isBlock(x, Be);
				if (!Kn && qf.isRange(St) && (St = Bf.unhangRange(x, St)), qf.isRange(St)) if (qf.isCollapsed(St)) St = St.anchor;
				else {
					var [, Vo] = qf.edges(St), Xo = Bf.pointRef(x, Vo);
					md.delete(x, { at: St }), St = Xo.unref(), Be.at ?? md.select(x, St);
				}
				var [Tc] = Bf.nodes(x, {
					at: St,
					match: We,
					voids: _r,
					mode: Li
				}), Tl = Bf.previous(x, {
					at: St,
					match: We,
					voids: _r,
					mode: Li
				});
				if (Tc && Tl) {
					var [Al, Uu] = Tc, [Ff, Lm] = Tl;
					if (Uu.length !== 0 && Lm.length !== 0) {
						var Bm, x_, uy = Mf.next(Lm), dx = Mf.common(Uu, Lm), kx = Mf.isSibling(Uu, Lm), eC = Array.from(Bf.levels(x, { at: Uu }), ((x) => {
							var [Be] = x;
							return Be;
						})).slice(dx.length).slice(0, -1), uC = Bf.above(x, {
							at: Uu,
							mode: "highest",
							match: (Be) => eC.includes(Be) && ld(x, Be)
						}), _T = uC && Bf.pathRef(x, uC[1]);
						if (ed.isText(Al) && ed.isText(Ff)) {
							var ID = qc(Al, od);
							x_ = Ff.text.length, Bm = ID;
						} else {
							if (!Sf.isElement(Al) || !Sf.isElement(Ff)) throw Error(`Cannot merge the node at path [${Uu}] with the previous sibling because it is not the same kind: ${JSON.stringify(Al)} ${JSON.stringify(Ff)}`);
							ID = qc(Al, id), x_ = Ff.children.length, Bm = ID;
						}
						kx || md.moveNodes(x, {
							at: Uu,
							to: uy,
							voids: _r
						}), _T && md.removeNodes(x, {
							at: _T.current,
							voids: _r
						}), Sf.isElement(Ff) && Bf.isEmpty(x, Ff) || ed.isText(Ff) && Ff.text === "" && Lm[Lm.length - 1] !== 0 ? md.removeNodes(x, {
							at: Lm,
							voids: _r
						}) : x.apply({
							type: "merge_node",
							path: uy,
							position: x_,
							properties: Bm
						}), _T && _T.unref();
					}
				}
			}
		}));
	},
	moveNodes(x, Be) {
		Bf.withoutNormalizing(x, (() => {
			var { to: We, at: St = x.selection, mode: Kn = "lowest", voids: _r = !1 } = Be, { match: Li } = Be;
			if (St) {
				Li ??= Mf.isPath(St) ? fd(x, St) : (Be) => Bf.isBlock(x, Be);
				var fa = Bf.pathRef(x, We), Vo = Bf.nodes(x, {
					at: St,
					match: Li,
					mode: Kn,
					voids: _r
				});
				for (var Xo of Array.from(Vo, ((Be) => {
					var [, We] = Be;
					return Bf.pathRef(x, We);
				}))) {
					var Tc = Xo.unref(), Tl = fa.current;
					Tc.length !== 0 && x.apply({
						type: "move_node",
						path: Tc,
						newPath: Tl
					}), fa.current && Mf.isSibling(Tl, Tc) && Mf.isAfter(Tl, Tc) && (fa.current = Mf.next(fa.current));
				}
				fa.unref();
			}
		}));
	},
	removeNodes(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		Bf.withoutNormalizing(x, (() => {
			var { hanging: We = !1, voids: St = !1, mode: Kn = "lowest" } = Be, { at: _r = x.selection, match: Li } = Be;
			if (_r) {
				Li ??= Mf.isPath(_r) ? fd(x, _r) : (Be) => Bf.isBlock(x, Be), !We && qf.isRange(_r) && (_r = Bf.unhangRange(x, _r));
				var fa = Bf.nodes(x, {
					at: _r,
					match: Li,
					mode: Kn,
					voids: St
				});
				for (var Vo of Array.from(fa, ((Be) => {
					var [, We] = Be;
					return Bf.pathRef(x, We);
				}))) {
					var Xo = Vo.unref();
					if (Xo) {
						var [Tc] = Bf.node(x, Xo);
						x.apply({
							type: "remove_node",
							path: Xo,
							node: Tc
						});
					}
				}
			}
		}));
	},
	setNodes(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		Bf.withoutNormalizing(x, (() => {
			var { match: St, at: Kn = x.selection } = We, { hanging: _r = !1, mode: Li = "lowest", split: fa = !1, voids: Vo = !1 } = We;
			if (Kn) {
				if (St ??= Mf.isPath(Kn) ? fd(x, Kn) : (Be) => Bf.isBlock(x, Be), !_r && qf.isRange(Kn) && (Kn = Bf.unhangRange(x, Kn)), fa && qf.isRange(Kn)) {
					if (qf.isCollapsed(Kn) && Bf.leaf(x, Kn.anchor)[0].text.length > 0) return;
					var Xo = Bf.rangeRef(x, Kn, { affinity: "inward" }), [Tc, Tl] = qf.edges(Kn), Al = Li === "lowest" ? "lowest" : "highest", Uu = Bf.isEnd(x, Tl, Tl.path);
					md.splitNodes(x, {
						at: Tl,
						match: St,
						mode: Al,
						voids: Vo,
						always: !Uu
					});
					var Ff = Bf.isStart(x, Tc, Tc.path);
					md.splitNodes(x, {
						at: Tc,
						match: St,
						mode: Al,
						voids: Vo,
						always: !Ff
					}), Kn = Xo.unref(), We.at ?? md.select(x, Kn);
				}
				for (var [Lm, Bm] of Bf.nodes(x, {
					at: Kn,
					match: St,
					mode: Li,
					voids: Vo
				})) {
					var x_ = {}, uy = {};
					if (Bm.length !== 0) {
						var dx = !1;
						for (var kx in Be) kx !== "children" && kx !== "text" && Be[kx] !== Lm[kx] && (dx = !0, Lm.hasOwnProperty(kx) && (x_[kx] = Lm[kx]), Be[kx] != null && (uy[kx] = Be[kx]));
						dx && x.apply({
							type: "set_node",
							path: Bm,
							properties: x_,
							newProperties: uy
						});
					}
				}
			}
		}));
	},
	splitNodes(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		Bf.withoutNormalizing(x, (() => {
			var { mode: We = "lowest", voids: St = !1 } = Be, { match: Kn, at: _r = x.selection, height: Li = 0, always: fa = !1 } = Be;
			if (Kn ??= (Be) => Bf.isBlock(x, Be), qf.isRange(_r) && (_r = cd(x, _r)), Mf.isPath(_r)) {
				var Vo = _r, Xo = Bf.point(x, Vo), [Tc] = Bf.parent(x, Vo);
				Kn = (x) => x === Tc, Li = Xo.path.length - Vo.length + 1, _r = Xo, fa = !0;
			}
			if (_r) {
				var Tl = Bf.pointRef(x, _r, { affinity: "backward" }), [Al] = Bf.nodes(x, {
					at: _r,
					match: Kn,
					mode: We,
					voids: St
				});
				if (Al) {
					var Uu = Bf.void(x, {
						at: _r,
						mode: "highest"
					});
					if (!St && Uu) {
						var [Ff, Lm] = Uu;
						if (Sf.isElement(Ff) && x.isInline(Ff)) {
							var Bm = Bf.after(x, Lm);
							if (!Bm) {
								var x_ = Mf.next(Lm);
								md.insertNodes(x, { text: "" }, {
									at: x_,
									voids: St
								}), Bm = Bf.point(x, x_);
							}
							_r = Bm, fa = !0;
						}
						Li = _r.path.length - Lm.length + 1, fa = !0;
					}
					var uy = Bf.pointRef(x, _r), dx = _r.path.length - Li, [, kx] = Al, eC = _r.path.slice(0, dx), uC = Li === 0 ? _r.offset : _r.path[dx] + 0;
					for (var [_T, ID] of Bf.levels(x, {
						at: eC,
						reverse: !0,
						voids: St
					})) {
						var ok = !1;
						if (ID.length < kx.length || ID.length === 0 || !St && Bf.isVoid(x, _T)) break;
						var ij = Tl.current, Dj = Bf.isEnd(x, ij, ID);
						if (fa || !Tl || !Bf.isEdge(x, ij, ID)) {
							ok = !0;
							var LP = Nf.extractProps(_T);
							x.apply({
								type: "split_node",
								path: ID,
								position: uC,
								properties: LP
							});
						}
						uC = ID[ID.length - 1] + (ok || Dj ? 1 : 0);
					}
					if (Be.at == null) {
						var zP = uy.current || Bf.end(x, []);
						md.select(x, zP);
					}
					Tl.unref(), uy.unref();
				}
			}
		}));
	},
	unsetNodes(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		Array.isArray(Be) || (Be = [Be]);
		var St = {};
		for (var Kn of Be) St[Kn] = null;
		md.setNodes(x, St, We);
	},
	unwrapNodes(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		Bf.withoutNormalizing(x, (() => {
			var { mode: We = "lowest", split: St = !1, voids: Kn = !1 } = Be, { at: _r = x.selection, match: Li } = Be;
			if (_r) {
				Li ??= Mf.isPath(_r) ? fd(x, _r) : (Be) => Bf.isBlock(x, Be), Mf.isPath(_r) && (_r = Bf.range(x, _r));
				var fa = qf.isRange(_r) ? Bf.rangeRef(x, _r) : null, Vo = Bf.nodes(x, {
					at: _r,
					match: Li,
					mode: We,
					voids: Kn
				}), Xo = Array.from(Vo, ((Be) => {
					var [, We] = Be;
					return Bf.pathRef(x, We);
				})).reverse(), Tc = function(Be) {
					var We = Be.unref(), [_r] = Bf.node(x, We), Li = Bf.range(x, We);
					St && fa && (Li = qf.intersection(fa.current, Li)), md.liftNodes(x, {
						at: Li,
						match: (x) => Sf.isAncestor(_r) && _r.children.includes(x),
						voids: Kn
					});
				};
				for (var Tl of Xo) Tc(Tl);
				fa && fa.unref();
			}
		}));
	},
	wrapNodes(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		Bf.withoutNormalizing(x, (() => {
			var { mode: St = "lowest", split: Kn = !1, voids: _r = !1 } = We, { match: Li, at: fa = x.selection } = We;
			if (fa) {
				if (Li ??= Mf.isPath(fa) ? fd(x, fa) : x.isInline(Be) ? (Be) => Bf.isInline(x, Be) || ed.isText(Be) : (Be) => Bf.isBlock(x, Be), Kn && qf.isRange(fa)) {
					var [Vo, Xo] = qf.edges(fa), Tc = Bf.rangeRef(x, fa, { affinity: "inward" });
					md.splitNodes(x, {
						at: Xo,
						match: Li,
						voids: _r
					}), md.splitNodes(x, {
						at: Vo,
						match: Li,
						voids: _r
					}), fa = Tc.unref(), We.at ?? md.select(x, fa);
				}
				for (var [, Tl] of Array.from(Bf.nodes(x, {
					at: fa,
					match: x.isInline(Be) ? (Be) => Bf.isBlock(x, Be) : (x) => Bf.isEditor(x),
					mode: "lowest",
					voids: _r
				}))) {
					var Al = qf.isRange(fa) ? qf.intersection(fa, Bf.range(x, Tl)) : fa;
					if (Al) {
						var Uu = Array.from(Bf.nodes(x, {
							at: Al,
							match: Li,
							mode: St,
							voids: _r
						}));
						if (Uu.length > 0 && function() {
							var [We] = Uu, St = Uu[Uu.length - 1], [, Kn] = We, [, Li] = St;
							if (Kn.length === 0 && Li.length === 0) return "continue";
							var fa = Mf.equals(Kn, Li) ? Mf.parent(Kn) : Mf.common(Kn, Li), Vo = Bf.range(x, Kn, Li), [Xo] = Bf.node(x, fa), Tc = fa.length + 1, Tl = Mf.next(Li.slice(0, Tc)), Al = ud(ud({}, Be), {}, { children: [] });
							md.insertNodes(x, Al, {
								at: Tl,
								voids: _r
							}), md.moveNodes(x, {
								at: Vo,
								match: (x) => Sf.isAncestor(Xo) && Xo.children.includes(x),
								to: Tl.concat(0),
								voids: _r
							});
						}() === "continue") continue;
					}
				}
			}
		}));
	}
}, ld = (x, Be) => {
	if (Sf.isElement(Be)) {
		var We = Be;
		return !!Bf.isVoid(x, Be) || We.children.length === 1 && ld(x, We.children[0]);
	}
	return !Bf.isEditor(Be);
}, cd = (x, Be) => {
	if (qf.isCollapsed(Be)) return Be.anchor;
	var [, We] = qf.edges(Be), St = Bf.pointRef(x, We);
	return md.delete(x, { at: Be }), St.unref();
}, fd = (x, Be) => {
	var [We] = Bf.node(x, Be);
	return (x) => x === We;
};
function dd(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function pd(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? dd(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : dd(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var hd = {
	collapse(x) {
		var { edge: Be = "anchor" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { selection: We } = x;
		if (We) {
			if (Be === "anchor") md.select(x, We.anchor);
			else if (Be === "focus") md.select(x, We.focus);
			else if (Be === "start") {
				var [St] = qf.edges(We);
				md.select(x, St);
			} else if (Be === "end") {
				var [, Kn] = qf.edges(We);
				md.select(x, Kn);
			}
		}
	},
	deselect(x) {
		var { selection: Be } = x;
		Be && x.apply({
			type: "set_selection",
			properties: Be,
			newProperties: null
		});
	},
	move(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { selection: We } = x, { distance: St = 1, unit: Kn = "character", reverse: _r = !1 } = Be, { edge: Li = null } = Be;
		if (We) {
			Li === "start" && (Li = qf.isBackward(We) ? "focus" : "anchor"), Li === "end" && (Li = qf.isBackward(We) ? "anchor" : "focus");
			var { anchor: fa, focus: Vo } = We, Xo = {
				distance: St,
				unit: Kn
			}, Tc = {};
			if (Li == null || Li === "anchor") {
				var Tl = _r ? Bf.before(x, fa, Xo) : Bf.after(x, fa, Xo);
				Tl && (Tc.anchor = Tl);
			}
			if (Li == null || Li === "focus") {
				var Al = _r ? Bf.before(x, Vo, Xo) : Bf.after(x, Vo, Xo);
				Al && (Tc.focus = Al);
			}
			md.setSelection(x, Tc);
		}
	},
	select(x, Be) {
		var { selection: We } = x;
		if (Be = Bf.range(x, Be), We) md.setSelection(x, Be);
		else {
			if (!qf.isRange(Be)) 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(Be)}`);
			x.apply({
				type: "set_selection",
				properties: We,
				newProperties: Be
			});
		}
	},
	setPoint(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { selection: St } = x, { edge: Kn = "both" } = We;
		if (St) {
			Kn === "start" && (Kn = qf.isBackward(St) ? "focus" : "anchor"), Kn === "end" && (Kn = qf.isBackward(St) ? "anchor" : "focus");
			var { anchor: _r, focus: Li } = St, fa = Kn === "anchor" ? _r : Li;
			md.setSelection(x, { [Kn === "anchor" ? "anchor" : "focus"]: pd(pd({}, fa), Be) });
		}
	},
	setSelection(x, Be) {
		var { selection: We } = x, St = {}, Kn = {};
		if (We) {
			for (var _r in Be) (_r === "anchor" && Be.anchor != null && !Vf.equals(Be.anchor, We.anchor) || _r === "focus" && Be.focus != null && !Vf.equals(Be.focus, We.focus) || _r !== "anchor" && _r !== "focus" && Be[_r] !== We[_r]) && (St[_r] = We[_r], Kn[_r] = Be[_r]);
			Object.keys(St).length > 0 && x.apply({
				type: "set_selection",
				properties: St,
				newProperties: Kn
			});
		}
	}
}, gd = {
	delete(x) {
		var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		Bf.withoutNormalizing(x, (() => {
			var { reverse: We = !1, unit: St = "character", distance: Kn = 1, voids: _r = !1 } = Be, { at: Li = x.selection, hanging: fa = !1 } = Be;
			if (Li) {
				if (qf.isRange(Li) && qf.isCollapsed(Li) && (Li = Li.anchor), Vf.isPoint(Li)) {
					var Vo = Bf.void(x, {
						at: Li,
						mode: "highest"
					});
					if (!_r && Vo) {
						var [, Xo] = Vo;
						Li = Xo;
					} else {
						var Tc = {
							unit: St,
							distance: Kn
						};
						Li = {
							anchor: Li,
							focus: We ? Bf.before(x, Li, Tc) || Bf.start(x, []) : Bf.after(x, Li, Tc) || Bf.end(x, [])
						}, fa = !0;
					}
				}
				if (Mf.isPath(Li)) md.removeNodes(x, {
					at: Li,
					voids: _r
				});
				else if (!qf.isCollapsed(Li)) {
					if (!fa) {
						var [, Tl] = qf.edges(Li), Al = Bf.end(x, []);
						Vf.equals(Tl, Al) || (Li = Bf.unhangRange(x, Li, { voids: _r }));
					}
					var [Uu, Ff] = qf.edges(Li), Lm = Bf.above(x, {
						match: (Be) => Bf.isBlock(x, Be),
						at: Uu,
						voids: _r
					}), Bm = Bf.above(x, {
						match: (Be) => Bf.isBlock(x, Be),
						at: Ff,
						voids: _r
					}), x_ = Lm && Bm && !Mf.equals(Lm[1], Bm[1]), uy = Mf.equals(Uu.path, Ff.path), dx = _r ? null : Bf.void(x, {
						at: Uu,
						mode: "highest"
					}), kx = _r ? null : Bf.void(x, {
						at: Ff,
						mode: "highest"
					});
					if (dx) {
						var eC = Bf.before(x, Uu);
						eC && Lm && Mf.isAncestor(Lm[1], eC.path) && (Uu = eC);
					}
					if (kx) {
						var uC = Bf.after(x, Ff);
						uC && Bm && Mf.isAncestor(Bm[1], uC.path) && (Ff = uC);
					}
					var _T, ID = [];
					for (var ok of Bf.nodes(x, {
						at: Li,
						voids: _r
					})) {
						var [ij, Dj] = ok;
						_T && Mf.compare(Dj, _T) === 0 || (!_r && Bf.isVoid(x, ij) || !Mf.isCommon(Dj, Uu.path) && !Mf.isCommon(Dj, Ff.path)) && (ID.push(ok), _T = Dj);
					}
					var LP = Array.from(ID, ((Be) => {
						var [, We] = Be;
						return Bf.pathRef(x, We);
					})), zP = Bf.pointRef(x, Uu), $P = Bf.pointRef(x, Ff);
					if (!uy && !dx) {
						var CF = zP.current, [VF] = Bf.leaf(x, CF), { path: nR } = CF, { offset: tH } = Uu, MH = VF.text.slice(tH);
						MH.length > 0 && x.apply({
							type: "remove_text",
							path: nR,
							offset: tH,
							text: MH
						});
					}
					for (var vG of LP) {
						var jG = vG.unref();
						md.removeNodes(x, {
							at: jG,
							voids: _r
						});
					}
					if (!kx) {
						var pMt = $P.current, [eq] = Bf.leaf(x, pMt), { path: iq } = pMt, Vq = uy ? Uu.offset : 0, Hq = eq.text.slice(Vq, Ff.offset);
						Hq.length > 0 && x.apply({
							type: "remove_text",
							path: iq,
							offset: Vq,
							text: Hq
						});
					}
					!uy && x_ && $P.current && zP.current && md.mergeNodes(x, {
						at: $P.current,
						hanging: !0,
						voids: _r
					});
					var Uq = We ? zP.unref() || $P.unref() : $P.unref() || zP.unref();
					Be.at == null && Uq && md.select(x, Uq);
				}
			}
		}));
	},
	insertFragment(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		Bf.withoutNormalizing(x, (() => {
			var { hanging: St = !1, voids: Kn = !1 } = We, { at: _r = x.selection } = We;
			if (Be.length && _r) {
				if (qf.isRange(_r)) if (St || (_r = Bf.unhangRange(x, _r)), qf.isCollapsed(_r)) _r = _r.anchor;
				else {
					var [, Li] = qf.edges(_r);
					if (!Kn && Bf.void(x, { at: Li })) return;
					var fa = Bf.pointRef(x, Li);
					md.delete(x, { at: _r }), _r = fa.unref();
				}
				else Mf.isPath(_r) && (_r = Bf.start(x, _r));
				if (Kn || !Bf.void(x, { at: _r })) {
					var Vo = Bf.above(x, {
						at: _r,
						match: (Be) => Bf.isInline(x, Be),
						mode: "highest",
						voids: Kn
					});
					if (Vo) {
						var [, Xo] = Vo;
						Bf.isEnd(x, _r, Xo) ? _r = Bf.after(x, Xo) : Bf.isStart(x, _r, Xo) && (_r = Bf.before(x, Xo));
					}
					var [, Tc] = Bf.above(x, {
						match: (Be) => Bf.isBlock(x, Be),
						at: _r,
						voids: Kn
					}), Tl = Bf.isStart(x, _r, Tc), Al = Bf.isEnd(x, _r, Tc), Uu = Tl && Al, Ff = !Tl || Tl && Al, Lm = !Al, [, Bm] = Nf.first({ children: Be }, []), [, x_] = Nf.last({ children: Be }, []), uy = [], dx = (Be) => {
						var [We, St] = Be;
						return St.length !== 0 && (!!Uu || !(Ff && Mf.isAncestor(St, Bm) && Sf.isElement(We) && !x.isVoid(We) && !x.isInline(We)) && !(Lm && Mf.isAncestor(St, x_) && Sf.isElement(We) && !x.isVoid(We) && !x.isInline(We)));
					};
					for (var kx of Nf.nodes({ children: Be }, { pass: dx })) dx(kx) && uy.push(kx);
					var eC = [], uC = [], _T = [], ID = !0, ok = !1;
					for (var [ij] of uy) Sf.isElement(ij) && !x.isInline(ij) ? (ID = !1, ok = !0, uC.push(ij)) : ID ? eC.push(ij) : _T.push(ij);
					var [Dj] = Bf.nodes(x, {
						at: _r,
						match: (Be) => ed.isText(Be) || Bf.isInline(x, Be),
						mode: "highest",
						voids: Kn
					}), [, LP] = Dj, zP = Bf.isStart(x, _r, LP), $P = Bf.isEnd(x, _r, LP), CF = Bf.pathRef(x, Al ? Mf.next(Tc) : Tc), VF = Bf.pathRef(x, $P ? Mf.next(LP) : LP), nR = Bf.pathRef(x, Tc);
					md.splitNodes(x, {
						at: _r,
						match: (Be) => ok ? Bf.isBlock(x, Be) : ed.isText(Be) || Bf.isInline(x, Be),
						mode: ok ? "lowest" : "highest",
						voids: Kn
					});
					var tH = Bf.pathRef(x, !zP || zP && $P ? Mf.next(LP) : LP);
					if (md.insertNodes(x, eC, {
						at: tH.current,
						match: (Be) => ed.isText(Be) || Bf.isInline(x, Be),
						mode: "highest",
						voids: Kn
					}), Uu && uC.length && md.delete(x, {
						at: nR.unref(),
						voids: Kn
					}), md.insertNodes(x, uC, {
						at: CF.current,
						match: (Be) => Bf.isBlock(x, Be),
						mode: "lowest",
						voids: Kn
					}), md.insertNodes(x, _T, {
						at: VF.current,
						match: (Be) => ed.isText(Be) || Bf.isInline(x, Be),
						mode: "highest",
						voids: Kn
					}), !We.at) {
						var MH = _T.length > 0 ? Mf.previous(VF.current) : uC.length > 0 ? Mf.previous(CF.current) : Mf.previous(tH.current), vG = Bf.end(x, MH);
						md.select(x, vG);
					}
					tH.unref(), CF.unref(), VF.unref();
				}
			}
		}));
	},
	insertText(x, Be) {
		var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
		Bf.withoutNormalizing(x, (() => {
			var { voids: St = !1 } = We, { at: Kn = x.selection } = We;
			if (Kn) {
				if (Mf.isPath(Kn) && (Kn = Bf.range(x, Kn)), qf.isRange(Kn)) if (qf.isCollapsed(Kn)) Kn = Kn.anchor;
				else {
					var _r = qf.end(Kn);
					if (!St && Bf.void(x, { at: _r })) return;
					var Li = Bf.pointRef(x, _r);
					md.delete(x, {
						at: Kn,
						voids: St
					}), Kn = Li.unref(), md.setSelection(x, {
						anchor: Kn,
						focus: Kn
					});
				}
				if (St || !Bf.void(x, { at: Kn })) {
					var { path: fa, offset: Vo } = Kn;
					Be.length > 0 && x.apply({
						type: "insert_text",
						path: fa,
						offset: Vo,
						text: Be
					});
				}
			}
		}));
	}
};
function vd(x, Be) {
	var We = Object.keys(x);
	if (Object.getOwnPropertySymbols) {
		var St = Object.getOwnPropertySymbols(x);
		Be && (St = St.filter((function(Be) {
			return Object.getOwnPropertyDescriptor(x, Be).enumerable;
		}))), We.push.apply(We, St);
	}
	return We;
}
function yd(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : arguments[Be];
		Be % 2 ? vd(Object(We), !0).forEach((function(Be) {
			Ic(x, Be, We[Be]);
		})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(We)) : vd(Object(We)).forEach((function(Be) {
			Object.defineProperty(x, Be, Object.getOwnPropertyDescriptor(We, Be));
		}));
	}
	return x;
}
var md = yd(yd(yd(yd({}, rd), sd), hd), gd), bd = "[object Map]", wd = "[object Set]", Ed = /^\[object .+?Constructor\]$/, Dd = /^(?:0|[1-9]\d*)$/, Sd = "[\\ud800-\\udfff]", xd = "[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]", Cd = "\\ud83c[\\udffb-\\udfff]", Ad = "[^\\ud800-\\udfff]", Od = "(?:\\ud83c[\\udde6-\\uddff]){2}", kd = "[\\ud800-\\udbff][\\udc00-\\udfff]", Bd = "(?:" + xd + "|" + Cd + ")?", Fd = "[\\ufe0e\\ufe0f]?" + Bd + ("(?:\\u200d(?:" + [
	Ad,
	Od,
	kd
].join("|") + ")[\\ufe0e\\ufe0f]?" + Bd + ")*"), Td = "(?:" + [
	Ad + xd + "?",
	xd,
	Od,
	kd,
	Sd
].join("|") + ")", _d = RegExp(Cd + "(?=" + Cd + ")|" + Td + Fd, "g"), Pd = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"), jd = typeof e == "object" && e && e.Object === Object && e, Nd = typeof self == "object" && self && self.Object === Object && self, Id = jd || Nd || Function("return this")();
function Ld(x, Be) {
	return function(x, Be) {
		for (var We = -1, St = x ? x.length : 0, Kn = Array(St); ++We < St;) Kn[We] = Be(x[We], We, x);
		return Kn;
	}(Be, (function(Be) {
		return x[Be];
	}));
}
function Rd(x) {
	var Be = -1, We = Array(x.size);
	return x.forEach((function(x, St) {
		We[++Be] = [St, x];
	})), We;
}
function Md(x) {
	var Be = -1, We = Array(x.size);
	return x.forEach((function(x) {
		We[++Be] = x;
	})), We;
}
function zd(x) {
	return function(x) {
		return Pd.test(x);
	}(x) ? function(x) {
		return x.match(_d) || [];
	}(x) : function(x) {
		return x.split("");
	}(x);
}
var $d, Hd, Vd = Function.prototype, Ud = Object.prototype, Wd = Id["__core-js_shared__"], Gd = function() {
	var x = /[^.]+$/.exec(Wd && Wd.keys && Wd.keys.IE_PROTO || "");
	return x ? "Symbol(src)_1." + x : "";
}(), qd = Vd.toString, Kd = Ud.hasOwnProperty, Yd = Ud.toString, Xd = RegExp("^" + qd.call(Kd).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Zd = Id.Symbol, Jd = Zd ? Zd.iterator : void 0, Qd = Ud.propertyIsEnumerable, ep = ($d = Object.keys, Hd = Object, function(x) {
	return $d(Hd(x));
}), tp = hp(Id, "DataView"), np = hp(Id, "Map"), rp = hp(Id, "Promise"), op = hp(Id, "Set"), ip = hp(Id, "WeakMap"), ap = yp(tp), up = yp(np), sp = yp(rp), lp = yp(op), cp = yp(ip);
function fp(x, Be) {
	var We = mp(x) || function(x) {
		return function(x) {
			return Dp(x) && bp(x);
		}(x) && Kd.call(x, "callee") && (!Qd.call(x, "callee") || Yd.call(x) == "[object Arguments]");
	}(x) ? function(x, Be) {
		for (var We = -1, St = Array(x); ++We < x;) St[We] = Be(We);
		return St;
	}(x.length, String) : [], St = We.length, Kn = !!St;
	for (var _r in x) !Be && !Kd.call(x, _r) || Kn && (_r == "length" || vp(_r, St)) || We.push(_r);
	return We;
}
function dp(x) {
	return !Ep(x) || function(x) {
		return !!Gd && Gd in x;
	}(x) ? !1 : (wp(x) || function(x) {
		var Be = !1;
		if (x != null && typeof x.toString != "function") try {
			Be = !!(x + "");
		} catch {}
		return Be;
	}(x) ? Xd : Ed).test(yp(x));
}
function pp(x) {
	if (We = (Be = x) && Be.constructor, St = typeof We == "function" && We.prototype || Ud, Be !== St) return ep(x);
	var Be, We, St, Kn = [];
	for (var _r in Object(x)) Kd.call(x, _r) && _r != "constructor" && Kn.push(_r);
	return Kn;
}
function hp(x, Be) {
	var We = function(x, Be) {
		return x?.[Be];
	}(x, Be);
	return dp(We) ? We : void 0;
}
var gp = function(x) {
	return Yd.call(x);
};
function vp(x, Be) {
	return !!(Be ??= 9007199254740991) && (typeof x == "number" || Dd.test(x)) && x > -1 && x % 1 == 0 && x < Be;
}
function yp(x) {
	if (x != null) {
		try {
			return qd.call(x);
		} catch {}
		try {
			return x + "";
		} catch {}
	}
	return "";
}
(tp && gp(new tp(/* @__PURE__ */ new ArrayBuffer(1))) != "[object DataView]" || np && gp(new np()) != bd || rp && gp(rp.resolve()) != "[object Promise]" || op && gp(new op()) != wd || ip && gp(new ip()) != "[object WeakMap]") && (gp = function(x) {
	var Be = Yd.call(x), We = Be == "[object Object]" ? x.constructor : void 0, St = We ? yp(We) : void 0;
	if (St) switch (St) {
		case ap: return "[object DataView]";
		case up: return bd;
		case sp: return "[object Promise]";
		case lp: return wd;
		case cp: return "[object WeakMap]";
	}
	return Be;
});
var mp = Array.isArray;
function bp(x) {
	return x != null && function(x) {
		return typeof x == "number" && x > -1 && x % 1 == 0 && x <= 9007199254740991;
	}(x.length) && !wp(x);
}
function wp(x) {
	var Be = Ep(x) ? Yd.call(x) : "";
	return Be == "[object Function]" || Be == "[object GeneratorFunction]";
}
function Ep(x) {
	var Be = typeof x;
	return !!x && (Be == "object" || Be == "function");
}
function Dp(x) {
	return !!x && typeof x == "object";
}
function Sp(x) {
	return x ? Ld(x, function(x) {
		return bp(x) ? fp(x) : pp(x);
	}(x)) : [];
}
var xp = function(x) {
	if (!x) return [];
	if (bp(x)) return function(x) {
		return typeof x == "string" || !mp(x) && Dp(x) && Yd.call(x) == "[object String]";
	}(x) ? zd(x) : function(x, Be) {
		var We = -1, St = x.length;
		for (Be ||= Array(St); ++We < St;) Be[We] = x[We];
		return Be;
	}(x);
	if (Jd && x[Jd]) return function(x) {
		for (var Be, We = []; !(Be = x.next()).done;) We.push(Be.value);
		return We;
	}(x[Jd]());
	var Be = gp(x);
	return (Be == bd ? Rd : Be == wd ? Md : Sp)(x);
};
function Cp(x) {
	return typeof x == "object" && !!x && "constructor" in x && x.constructor === Object;
}
function Ap(x, Be) {
	x === void 0 && (x = {}), Be === void 0 && (Be = {}), Object.keys(Be).forEach((function(We) {
		x[We] === void 0 ? x[We] = Be[We] : Cp(Be[We]) && Cp(x[We]) && Object.keys(Be[We]).length > 0 && Ap(x[We], Be[We]);
	}));
}
var Op = {
	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 kp() {
	var x = typeof document < "u" ? document : {};
	return Ap(x, Op), x;
}
var Bp = {
	document: Op,
	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(x) {
		return typeof setTimeout > "u" ? (x(), null) : setTimeout(x, 0);
	},
	cancelAnimationFrame: function(x) {
		typeof setTimeout < "u" && clearTimeout(x);
	}
};
function Fp() {
	var x = typeof window < "u" ? window : {};
	return Ap(x, Bp), x;
}
function Tp(x) {
	return Tp = Object.setPrototypeOf ? Object.getPrototypeOf : function(x) {
		return x.__proto__ || Object.getPrototypeOf(x);
	}, Tp(x);
}
function _p(x, Be) {
	return _p = Object.setPrototypeOf || function(x, Be) {
		return x.__proto__ = Be, x;
	}, _p(x, Be);
}
function Pp() {
	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 jp(x, Be, We) {
	return jp = Pp() ? Reflect.construct : function(x, Be, We) {
		var St = [null];
		St.push.apply(St, Be);
		var Kn = new (Function.bind.apply(x, St))();
		return We && _p(Kn, We.prototype), Kn;
	}, jp.apply(null, arguments);
}
function Np(x) {
	var Be = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
	return Np = function(x) {
		if (x === null || !function(x) {
			return Function.toString.call(x).indexOf("[native code]") !== -1;
		}(x)) return x;
		if (typeof x != "function") throw TypeError("Super expression must either be null or a function");
		if (Be !== void 0) {
			if (Be.has(x)) return Be.get(x);
			Be.set(x, We);
		}
		function We() {
			return jp(x, arguments, Tp(this).constructor);
		}
		return We.prototype = Object.create(x.prototype, { constructor: {
			value: We,
			enumerable: !1,
			writable: !0,
			configurable: !0
		} }), _p(We, x);
	}, Np(x);
}
var Ip = function(x) {
	var Be, We;
	function St(Be) {
		var We, St, Kn;
		return We = x.call.apply(x, [this].concat(Be)) || this, St = function(x) {
			if (x === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
			return x;
		}(We), Kn = St.__proto__, Object.defineProperty(St, "__proto__", {
			get: function() {
				return Kn;
			},
			set: function(x) {
				Kn.__proto__ = x;
			}
		}), We;
	}
	return We = x, (Be = St).prototype = Object.create(We.prototype), Be.prototype.constructor = Be, Be.__proto__ = We, St;
}(Np(Array));
function Lp(x) {
	x === void 0 && (x = []);
	var Be = [];
	return x.forEach((function(x) {
		Array.isArray(x) ? Be.push.apply(Be, Lp(x)) : Be.push(x);
	})), Be;
}
function Rp(x, Be) {
	return Array.prototype.filter.call(x, Be);
}
function Mp(x, Be) {
	var We = Fp(), St = kp(), Kn = [];
	if (!Be && x instanceof Ip) return x;
	if (!x) return new Ip(Kn);
	if (typeof x == "string") {
		var _r = x.trim();
		if (_r.indexOf("<") >= 0 && _r.indexOf(">") >= 0) {
			var Li = "div";
			_r.indexOf("<li") === 0 && (Li = "ul"), _r.indexOf("<tr") === 0 && (Li = "tbody"), _r.indexOf("<td") !== 0 && _r.indexOf("<th") !== 0 || (Li = "tr"), _r.indexOf("<tbody") === 0 && (Li = "table"), _r.indexOf("<option") === 0 && (Li = "select");
			var fa = St.createElement(Li);
			fa.innerHTML = _r;
			for (var Vo = 0; Vo < fa.childNodes.length; Vo += 1) Kn.push(fa.childNodes[Vo]);
		} else Kn = function(x, Be) {
			if (typeof x != "string") return [x];
			for (var We = [], St = Be.querySelectorAll(x), Kn = 0; Kn < St.length; Kn += 1) We.push(St[Kn]);
			return We;
		}(x.trim(), Be || St);
	} else if (x.nodeType || x === We || x === St) Kn.push(x);
	else if (Array.isArray(x)) {
		if (x instanceof Ip) return x;
		Kn = x;
	}
	return new Ip(function(x) {
		for (var Be = [], We = 0; We < x.length; We += 1) Be.indexOf(x[We]) === -1 && Be.push(x[We]);
		return Be;
	}(Kn));
}
function zp() {
	var x = Lp([...arguments].map((function(x) {
		return x.split(" ");
	})));
	return this.forEach((function(Be) {
		var We;
		(We = Be.classList).add.apply(We, x);
	})), this;
}
function $p() {
	var x = Lp([...arguments].map((function(x) {
		return x.split(" ");
	})));
	return this.forEach((function(Be) {
		var We;
		(We = Be.classList).remove.apply(We, x);
	})), this;
}
function Hp() {
	var x = Lp([...arguments].map((function(x) {
		return x.split(" ");
	})));
	return Rp(this, (function(Be) {
		return x.filter((function(x) {
			return Be.classList.contains(x);
		})).length > 0;
	})).length > 0;
}
function Vp(x, Be) {
	if (arguments.length === 1 && typeof x == "string") return this[0] ? this[0].getAttribute(x) : void 0;
	for (var We = 0; We < this.length; We += 1) if (arguments.length === 2) this[We].setAttribute(x, Be);
	else for (var St in x) this[We][St] = x[St], this[We].setAttribute(St, x[St]);
	return this;
}
function Up(x) {
	for (var Be = 0; Be < this.length; Be += 1) this[Be].removeAttribute(x);
	return this;
}
function Wp() {
	var x = this[0];
	if (x) {
		var Be, We = {};
		if (x.dataset) for (var St in x.dataset) We[St] = x.dataset[St];
		else for (var Kn = 0; Kn < x.attributes.length; Kn += 1) {
			var _r = x.attributes[Kn];
			_r.name.indexOf("data-") >= 0 && (We[Be = _r.name.split("data-")[1], Be.toLowerCase().replace(/-(.)/g, (function(x, Be) {
				return Be.toUpperCase();
			}))] = _r.value);
		}
		for (var Li in We) We[Li] === "false" ? We[Li] = !1 : We[Li] === "true" ? We[Li] = !0 : parseFloat(We[Li]) === 1 * We[Li] && (We[Li] *= 1);
		return We;
	}
}
function Gp(x) {
	if (x === void 0) {
		var Be = this[0];
		if (!Be) return;
		if (Be.multiple && Be.nodeName.toLowerCase() === "select") {
			for (var We = [], St = 0; St < Be.selectedOptions.length; St += 1) We.push(Be.selectedOptions[St].value);
			return We;
		}
		return Be.value;
	}
	for (var Kn = 0; Kn < this.length; Kn += 1) {
		var _r = this[Kn];
		if (Array.isArray(x) && _r.multiple && _r.nodeName.toLowerCase() === "select") for (var Li = 0; Li < _r.options.length; Li += 1) _r.options[Li].selected = x.indexOf(_r.options[Li].value) >= 0;
		else _r.value = x;
	}
	return this;
}
function qp() {
	var x = [...arguments], Be = x[0], We = x[1], St = x[2], Kn = x[3];
	function _r(x) {
		var Be = x.target;
		if (Be) {
			var Kn = x.target.dom7EventData || [];
			if (Kn.indexOf(x) < 0 && Kn.unshift(x), Mp(Be).is(We)) St.apply(Be, Kn);
			else for (var _r = Mp(Be).parents(), Li = 0; Li < _r.length; Li += 1) Mp(_r[Li]).is(We) && St.apply(_r[Li], Kn);
		}
	}
	function Li(x) {
		var Be = x && x.target && x.target.dom7EventData || [];
		Be.indexOf(x) < 0 && Be.unshift(x), St.apply(this, Be);
	}
	typeof x[1] == "function" && (Be = x[0], St = x[1], Kn = x[2], We = void 0), Kn ||= !1;
	for (var fa, Vo = Be.split(" "), Xo = 0; Xo < this.length; Xo += 1) {
		var Tc = this[Xo];
		if (We) for (fa = 0; fa < Vo.length; fa += 1) {
			var Tl = Vo[fa];
			Tc.dom7LiveListeners ||= {}, Tc.dom7LiveListeners[Tl] || (Tc.dom7LiveListeners[Tl] = []), Tc.dom7LiveListeners[Tl].push({
				listener: St,
				proxyListener: _r
			}), Tc.addEventListener(Tl, _r, Kn);
		}
		else for (fa = 0; fa < Vo.length; fa += 1) {
			var Al = Vo[fa];
			Tc.dom7Listeners ||= {}, Tc.dom7Listeners[Al] || (Tc.dom7Listeners[Al] = []), Tc.dom7Listeners[Al].push({
				listener: St,
				proxyListener: Li
			}), Tc.addEventListener(Al, Li, Kn);
		}
	}
	return this;
}
function Kp() {
	var x = [...arguments], Be = x[0], We = x[1], St = x[2], Kn = x[3];
	typeof x[1] == "function" && (Be = x[0], St = x[1], Kn = x[2], We = void 0), Kn ||= !1;
	for (var _r = Be.split(" "), Li = 0; Li < _r.length; Li += 1) for (var fa = _r[Li], Vo = 0; Vo < this.length; Vo += 1) {
		var Xo = this[Vo], Tc = void 0;
		if (!We && Xo.dom7Listeners ? Tc = Xo.dom7Listeners[fa] : We && Xo.dom7LiveListeners && (Tc = Xo.dom7LiveListeners[fa]), Tc && Tc.length) for (var Tl = Tc.length - 1; Tl >= 0; --Tl) {
			var Al = Tc[Tl];
			St && Al.listener === St || St && Al.listener && Al.listener.dom7proxy && Al.listener.dom7proxy === St ? (Xo.removeEventListener(fa, Al.proxyListener, Kn), Tc.splice(Tl, 1)) : St || (Xo.removeEventListener(fa, Al.proxyListener, Kn), Tc.splice(Tl, 1));
		}
	}
	return this;
}
function Yp() {
	var x = Fp();
	return this[0] === x ? x.innerWidth : this.length > 0 ? parseFloat(this.css("width")) : null;
}
function Xp() {
	var x = Fp();
	return this[0] === x ? x.innerHeight : this.length > 0 ? parseFloat(this.css("height")) : null;
}
function Zp() {
	if (this.length > 0) {
		var x = Fp(), Be = kp(), We = this[0], St = We.getBoundingClientRect(), Kn = Be.body, _r = We.clientTop || Kn.clientTop || 0, Li = We.clientLeft || Kn.clientLeft || 0, fa = We === x ? x.scrollY : We.scrollTop, Vo = We === x ? x.scrollX : We.scrollLeft;
		return {
			top: St.top + fa - _r,
			left: St.left + Vo - Li
		};
	}
	return null;
}
function Jp() {
	for (var x = 0; x < this.length; x += 1) this[x].style.display = "none";
	return this;
}
function Qp() {
	for (var x = Fp(), Be = 0; Be < this.length; Be += 1) {
		var We = this[Be];
		We.style.display === "none" && (We.style.display = ""), x.getComputedStyle(We, null).getPropertyValue("display") === "none" && (We.style.display = "block");
	}
	return this;
}
function eh(x, Be) {
	var We, St = Fp();
	if (arguments.length === 1) {
		if (typeof x != "string") {
			for (We = 0; We < this.length; We += 1) for (var Kn in x) this[We].style[Kn] = x[Kn];
			return this;
		}
		if (this[0]) return St.getComputedStyle(this[0], null).getPropertyValue(x);
	}
	if (arguments.length === 2 && typeof x == "string") {
		for (We = 0; We < this.length; We += 1) this[We].style[x] = Be;
		return this;
	}
	return this;
}
function th(x) {
	return x && this.forEach((function(Be, We) {
		x.apply(Be, [Be, We]);
	})), this;
}
function nh(x) {
	return Mp(Rp(this, x));
}
function rh(x) {
	if (x === void 0) return this[0] ? this[0].innerHTML : null;
	for (var Be = 0; Be < this.length; Be += 1) this[Be].innerHTML = x;
	return this;
}
function oh(x) {
	if (x === void 0) return this[0] ? this[0].textContent.trim() : null;
	for (var Be = 0; Be < this.length; Be += 1) this[Be].textContent = x;
	return this;
}
function ih(x) {
	var Be, We, St = Fp(), Kn = kp(), _r = this[0];
	if (!_r || x === void 0) return !1;
	if (typeof x == "string") {
		if (_r.matches) return _r.matches(x);
		if (_r.webkitMatchesSelector) return _r.webkitMatchesSelector(x);
		if (_r.msMatchesSelector) return _r.msMatchesSelector(x);
		for (Be = Mp(x), We = 0; We < Be.length; We += 1) if (Be[We] === _r) return !0;
		return !1;
	}
	if (x === Kn) return _r === Kn;
	if (x === St) return _r === St;
	if (x.nodeType || x instanceof Ip) {
		for (Be = x.nodeType ? [x] : x, We = 0; We < Be.length; We += 1) if (Be[We] === _r) return !0;
		return !1;
	}
	return !1;
}
function ah() {
	for (var x, Be = kp(), We = 0; We < arguments.length; We += 1) {
		x = We < 0 || arguments.length <= We ? void 0 : arguments[We];
		for (var St = 0; St < this.length; St += 1) if (typeof x == "string") {
			var Kn = Be.createElement("div");
			for (Kn.innerHTML = x; Kn.firstChild;) this[St].appendChild(Kn.firstChild);
		} else if (x instanceof Ip) for (var _r = 0; _r < x.length; _r += 1) this[St].appendChild(x[_r]);
		else this[St].appendChild(x);
	}
	return this;
}
function uh(x) {
	var Be, We, St = kp();
	for (Be = 0; Be < this.length; Be += 1) if (typeof x == "string") {
		var Kn = St.createElement("div");
		for (Kn.innerHTML = x, We = Kn.childNodes.length - 1; We >= 0; --We) this[Be].insertBefore(Kn.childNodes[We], this[Be].childNodes[0]);
	} else if (x instanceof Ip) for (We = 0; We < x.length; We += 1) this[Be].insertBefore(x[We], this[Be].childNodes[0]);
	else this[Be].insertBefore(x, this[Be].childNodes[0]);
	return this;
}
function sh(x) {
	for (var Be = [], We = 0; We < this.length; We += 1) this[We].parentNode !== null && (x ? Mp(this[We].parentNode).is(x) && Be.push(this[We].parentNode) : Be.push(this[We].parentNode));
	return Mp(Be);
}
function lh(x) {
	for (var Be = [], We = 0; We < this.length; We += 1) for (var St = this[We].parentNode; St;) x ? Mp(St).is(x) && Be.push(St) : Be.push(St), St = St.parentNode;
	return Mp(Be);
}
function ch(x) {
	for (var Be = [], We = 0; We < this.length; We += 1) for (var St = this[We].querySelectorAll(x), Kn = 0; Kn < St.length; Kn += 1) Be.push(St[Kn]);
	return Mp(Be);
}
function fh(x) {
	for (var Be = [], We = 0; We < this.length; We += 1) for (var St = this[We].children, Kn = 0; Kn < St.length; Kn += 1) x && !Mp(St[Kn]).is(x) || Be.push(St[Kn]);
	return Mp(Be);
}
function dh() {
	for (var x = 0; x < this.length; x += 1) this[x].parentNode && this[x].parentNode.removeChild(this[x]);
	return this;
}
function ph() {
	for (var x = 0; x < this.length; x += 1) {
		var Be = this[x];
		if (Be.nodeType === 1) {
			for (var We = 0; We < Be.childNodes.length; We += 1) Be.childNodes[We].parentNode && Be.childNodes[We].parentNode.removeChild(Be.childNodes[We]);
			Be.textContent = "";
		}
	}
	return this;
}
Mp.fn = Ip.prototype;
var hh = "resize scroll".split(" ");
function gh(x) {
	return function() {
		var Be = [...arguments];
		if (Be[0] === void 0) {
			for (var We = 0; We < this.length; We += 1) hh.indexOf(x) < 0 && (x in this[We] ? this[We][x]() : Mp(this[We]).trigger(x));
			return this;
		}
		return this.on.apply(this, [x].concat(Be));
	};
}
var vh = gh("click"), yh = gh("focus"), mh = "[object GeneratorFunction]", bh = /^(?:0|[1-9]\d*)$/;
function wh(x, Be) {
	for (var We = -1, St = x ? x.length : 0; ++We < St && !1 !== Be(x[We], We, x););
	return x;
}
var Eh = Object.prototype, Dh = Eh.hasOwnProperty, Sh = Eh.toString, xh = Eh.propertyIsEnumerable, Ch = function(x, Be) {
	return function(We) {
		return x(Be(We));
	};
}(Object.keys, Object);
function Ah(x, Be) {
	var We = Ph(x) || function(x) {
		return function(x) {
			return function(x) {
				return !!x && typeof x == "object";
			}(x) && jh(x);
		}(x) && Dh.call(x, "callee") && (!xh.call(x, "callee") || Sh.call(x) == "[object Arguments]");
	}(x) ? function(x, Be) {
		for (var We = -1, St = Array(x); ++We < x;) St[We] = Be(We);
		return St;
	}(x.length, String) : [], St = We.length, Kn = !!St;
	for (var _r in x) !Be && !Dh.call(x, _r) || Kn && (_r == "length" || _h(_r, St)) || We.push(_r);
	return We;
}
var Oh, kh, Bh = (Oh = function(x, Be) {
	return x && Fh(x, Be, Nh);
}, function(x, Be) {
	if (x == null) return x;
	if (!jh(x)) return Oh(x, Be);
	for (var We = x.length, St = kh ? We : -1, Kn = Object(x); (kh ? St-- : ++St < We) && !1 !== Be(Kn[St], St, Kn););
	return x;
}), Fh = function(x) {
	return function(Be, We, St) {
		for (var Kn = -1, _r = Object(Be), Li = St(Be), fa = Li.length; fa--;) {
			var Vo = Li[x ? fa : ++Kn];
			if (!1 === We(_r[Vo], Vo, _r)) break;
		}
		return Be;
	};
}();
function Th(x) {
	if (We = (Be = x) && Be.constructor, St = typeof We == "function" && We.prototype || Eh, Be !== St) return Ch(x);
	var Be, We, St, Kn = [];
	for (var _r in Object(x)) Dh.call(x, _r) && _r != "constructor" && Kn.push(_r);
	return Kn;
}
function _h(x, Be) {
	return !!(Be ??= 9007199254740991) && (typeof x == "number" || bh.test(x)) && x > -1 && x % 1 == 0 && x < Be;
}
var Ph = Array.isArray;
function jh(x) {
	return x != null && function(x) {
		return typeof x == "number" && x > -1 && x % 1 == 0 && x <= 9007199254740991;
	}(x.length) && !function(x) {
		var Be = function(x) {
			var Be = typeof x;
			return !!x && (Be == "object" || Be == "function");
		}(x) ? Sh.call(x) : "";
		return Be == "[object Function]" || Be == mh;
	}(x);
}
function Nh(x) {
	return jh(x) ? Ah(x) : Th(x);
}
function Ih(x) {
	return x;
}
var Lh = function(x, Be) {
	return (Ph(x) ? wh : Bh)(x, typeof Be == "function" ? Be : Ih);
}, Rh = (x = 21) => {
	let Be = "", We = crypto.getRandomValues(new Uint8Array(x));
	for (; x--;) {
		let St = 63 & We[x];
		Be += St < 36 ? St.toString(36) : St < 62 ? (St - 26).toString(36).toUpperCase() : St < 63 ? "_" : "-";
	}
	return Be;
}, Mh = /^\s+|\s+$/g, zh = /^[-+]0x[0-9a-f]+$/i, $h = /^0b[01]+$/i, Hh = /^0o[0-7]+$/i, Vh = parseInt, Uh = typeof e == "object" && e && e.Object === Object && e, Wh = typeof self == "object" && self && self.Object === Object && self, Gh = Uh || Wh || Function("return this")(), qh = Object.prototype.toString, Kh = Math.max, Yh = Math.min, Xh = function() {
	return Gh.Date.now();
};
function Zh(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo = 0, Tc = !1, Tl = !1, Al = !0;
	if (typeof x != "function") throw TypeError("Expected a function");
	function Uu(Be) {
		var We = St, _r = Kn;
		return St = Kn = void 0, Xo = Be, Li = x.apply(_r, We);
	}
	function Ff(x) {
		return Xo = x, fa = setTimeout(Bm, Be), Tc ? Uu(x) : Li;
	}
	function Lm(x) {
		var We = x - Vo;
		return Vo === void 0 || We >= Be || We < 0 || Tl && x - Xo >= _r;
	}
	function Bm() {
		var x = Xh();
		if (Lm(x)) return x_(x);
		fa = setTimeout(Bm, function(x) {
			var We = Be - (x - Vo);
			return Tl ? Yh(We, _r - (x - Xo)) : We;
		}(x));
	}
	function x_(x) {
		return fa = void 0, Al && St ? Uu(x) : (St = Kn = void 0, Li);
	}
	function uy() {
		var x = Xh(), We = Lm(x);
		if (St = arguments, Kn = this, Vo = x, We) {
			if (fa === void 0) return Ff(Vo);
			if (Tl) return fa = setTimeout(Bm, Be), Uu(Vo);
		}
		return fa === void 0 && (fa = setTimeout(Bm, Be)), Li;
	}
	return Be = Qh(Be) || 0, Jh(We) && (Tc = !!We.leading, _r = (Tl = "maxWait" in We) ? Kh(Qh(We.maxWait) || 0, Be) : _r, Al = "trailing" in We ? !!We.trailing : Al), uy.cancel = function() {
		fa !== void 0 && clearTimeout(fa), Xo = 0, St = Vo = Kn = fa = void 0;
	}, uy.flush = function() {
		return fa === void 0 ? Li : x_(Xh());
	}, uy;
}
function Jh(x) {
	var Be = typeof x;
	return !!x && (Be == "object" || Be == "function");
}
function Qh(x) {
	if (typeof x == "number") return x;
	if (function(x) {
		return typeof x == "symbol" || function(x) {
			return !!x && typeof x == "object";
		}(x) && qh.call(x) == "[object Symbol]";
	}(x)) return NaN;
	if (Jh(x)) {
		var Be = typeof x.valueOf == "function" ? x.valueOf() : x;
		x = Jh(Be) ? Be + "" : Be;
	}
	if (typeof x != "string") return x === 0 ? x : +x;
	x = x.replace(Mh, "");
	var We = $h.test(x);
	return We || Hh.test(x) ? Vh(x.slice(2), We ? 2 : 8) : zh.test(x) ? NaN : +x;
}
var eg = function(x, Be, We) {
	var St = !0, Kn = !0;
	if (typeof x != "function") throw TypeError("Expected a function");
	return Jh(We) && (St = "leading" in We ? !!We.leading : St, Kn = "trailing" in We ? !!We.trailing : Kn), Zh(x, Be, {
		leading: St,
		maxWait: Be,
		trailing: Kn
	});
}, tg = {
	createElement: function(x, Be) {
		return document.createElement(x, Be);
	},
	createElementNS: function(x, Be, We) {
		return document.createElementNS(x, Be, We);
	},
	createTextNode: function(x) {
		return document.createTextNode(x);
	},
	createComment: function(x) {
		return document.createComment(x);
	},
	insertBefore: function(x, Be, We) {
		x.insertBefore(Be, We);
	},
	removeChild: function(x, Be) {
		x.removeChild(Be);
	},
	appendChild: function(x, Be) {
		x.appendChild(Be);
	},
	parentNode: function(x) {
		return x.parentNode;
	},
	nextSibling: function(x) {
		return x.nextSibling;
	},
	tagName: function(x) {
		return x.tagName;
	},
	setTextContent: function(x, Be) {
		x.textContent = Be;
	},
	getTextContent: function(x) {
		return x.textContent;
	},
	isElement: function(x) {
		return x.nodeType === 1;
	},
	isText: function(x) {
		return x.nodeType === 3;
	},
	isComment: function(x) {
		return x.nodeType === 8;
	}
};
function ng(x, Be, We, St, Kn) {
	return {
		sel: x,
		data: Be,
		children: We,
		text: St,
		elm: Kn,
		key: Be === void 0 ? void 0 : Be.key
	};
}
var rg = Array.isArray;
function og(x) {
	return typeof x == "string" || typeof x == "number" || x instanceof String || x instanceof Number;
}
function ig(x) {
	return x === void 0;
}
function ag(x) {
	return x !== void 0;
}
var ug = ng("", {}, [], void 0, void 0);
function sg(x, Be) {
	let We = x.key === Be.key, St = x.data?.is === Be.data?.is;
	return x.sel === Be.sel && We && St;
}
function lg(x, Be, We) {
	let St = {};
	for (let Kn = Be; Kn <= We; ++Kn) {
		let Be = x[Kn]?.key;
		Be !== void 0 && (St[Be] = Kn);
	}
	return St;
}
var cg = [
	"create",
	"update",
	"remove",
	"destroy",
	"pre",
	"post"
];
function fg(x, Be) {
	let We = {
		create: [],
		update: [],
		remove: [],
		destroy: [],
		pre: [],
		post: []
	}, St = Be === void 0 ? tg : Be;
	for (let Be of cg) for (let St of x) {
		let x = St[Be];
		x !== void 0 && We[Be].push(x);
	}
	function Kn(x) {
		let Be = x.id ? "#" + x.id : "", We = x.getAttribute("class"), Kn = We ? "." + We.split(" ").join(".") : "";
		return ng(St.tagName(x).toLowerCase() + Be + Kn, {}, [], void 0, x);
	}
	function _r(x, Be) {
		return function() {
			if (--Be == 0) {
				let Be = St.parentNode(x);
				St.removeChild(Be, x);
			}
		};
	}
	function Li(x, Be) {
		var Kn;
		let _r, fa = x.data;
		if (fa !== void 0) {
			let Be = fa.hook?.init;
			ag(Be) && (Be(x), fa = x.data);
		}
		let Vo = x.children, Xo = x.sel;
		if (Xo === "!") ig(x.text) && (x.text = ""), x.elm = St.createComment(x.text);
		else if (Xo !== void 0) {
			let Tc = Xo.indexOf("#"), Tl = Xo.indexOf(".", Tc), Al = Tc > 0 ? Tc : Xo.length, Uu = Tl > 0 ? Tl : Xo.length, Ff = Tc !== -1 || Tl !== -1 ? Xo.slice(0, Math.min(Al, Uu)) : Xo, Lm = x.elm = ag(fa) && ag(_r = fa.ns) ? St.createElementNS(_r, Ff, fa) : St.createElement(Ff, fa);
			for (Al < Uu && Lm.setAttribute("id", Xo.slice(Al + 1, Uu)), Tl > 0 && Lm.setAttribute("class", Xo.slice(Uu + 1).replace(/\./g, " ")), _r = 0; _r < We.create.length; ++_r) We.create[_r](ug, x);
			if (rg(Vo)) for (_r = 0; _r < Vo.length; ++_r) {
				let x = Vo[_r];
				x != null && St.appendChild(Lm, Li(x, Be));
			}
			else og(x.text) && St.appendChild(Lm, St.createTextNode(x.text));
			let Bm = x.data.hook;
			ag(Bm) && ((Kn = Bm.create) == null || Kn.call(Bm, ug, x), Bm.insert && Be.push(x));
		} else x.elm = St.createTextNode(x.text);
		return x.elm;
	}
	function fa(x, Be, We, Kn, _r, fa) {
		for (; Kn <= _r; ++Kn) {
			let _r = We[Kn];
			_r != null && St.insertBefore(x, Li(_r, fa), Be);
		}
	}
	function Vo(x) {
		var Be, St;
		let Kn = x.data;
		if (Kn !== void 0) {
			(St = (Be = Kn?.hook)?.destroy) == null || St.call(Be, x);
			for (let Be = 0; Be < We.destroy.length; ++Be) We.destroy[Be](x);
			if (x.children !== void 0) for (let Be = 0; Be < x.children.length; ++Be) {
				let We = x.children[Be];
				We != null && typeof We != "string" && Vo(We);
			}
		}
	}
	function Xo(x, Be, Kn, Li) {
		for (; Kn <= Li; ++Kn) {
			let Li, fa, Xo = Be[Kn];
			if (Xo != null) if (ag(Xo.sel)) {
				Vo(Xo), Li = We.remove.length + 1, fa = _r(Xo.elm, Li);
				for (let x = 0; x < We.remove.length; ++x) We.remove[x](Xo, fa);
				let x = Xo?.data?.hook?.remove;
				ag(x) ? x(Xo, fa) : fa();
			} else St.removeChild(x, Xo.elm);
		}
	}
	function Tc(x, Be, Kn) {
		var _r, Vo, Tl, Al;
		let Uu = Be.data?.hook;
		(_r = Uu?.prepatch) == null || _r.call(Uu, x, Be);
		let Ff = Be.elm = x.elm, Lm = x.children, Bm = Be.children;
		if (x !== Be) {
			if (Be.data !== void 0) {
				for (let St = 0; St < We.update.length; ++St) We.update[St](x, Be);
				(Tl = (Vo = Be.data.hook)?.update) == null || Tl.call(Vo, x, Be);
			}
			ig(Be.text) ? ag(Lm) && ag(Bm) ? Lm !== Bm && function(x, Be, We, Kn) {
				let _r, Vo, Tl, Al, Uu = 0, Ff = 0, Lm = Be.length - 1, Bm = Be[0], x_ = Be[Lm], uy = We.length - 1, dx = We[0], kx = We[uy];
				for (; Uu <= Lm && Ff <= uy;) Bm == null ? Bm = Be[++Uu] : x_ == null ? x_ = Be[--Lm] : dx == null ? dx = We[++Ff] : kx == null ? kx = We[--uy] : sg(Bm, dx) ? (Tc(Bm, dx, Kn), Bm = Be[++Uu], dx = We[++Ff]) : sg(x_, kx) ? (Tc(x_, kx, Kn), x_ = Be[--Lm], kx = We[--uy]) : sg(Bm, kx) ? (Tc(Bm, kx, Kn), St.insertBefore(x, Bm.elm, St.nextSibling(x_.elm)), Bm = Be[++Uu], kx = We[--uy]) : sg(x_, dx) ? (Tc(x_, dx, Kn), St.insertBefore(x, x_.elm, Bm.elm), x_ = Be[--Lm], dx = We[++Ff]) : (_r === void 0 && (_r = lg(Be, Uu, Lm)), Vo = _r[dx.key], ig(Vo) ? St.insertBefore(x, Li(dx, Kn), Bm.elm) : (Tl = Be[Vo], Tl.sel === dx.sel ? (Tc(Tl, dx, Kn), Be[Vo] = void 0, St.insertBefore(x, Tl.elm, Bm.elm)) : St.insertBefore(x, Li(dx, Kn), Bm.elm)), dx = We[++Ff]);
				(Uu <= Lm || Ff <= uy) && (Uu > Lm ? (Al = We[uy + 1] == null ? null : We[uy + 1].elm, fa(x, Al, We, Ff, uy, Kn)) : Xo(x, Be, Uu, Lm));
			}(Ff, Lm, Bm, Kn) : ag(Bm) ? (ag(x.text) && St.setTextContent(Ff, ""), fa(Ff, null, Bm, 0, Bm.length - 1, Kn)) : ag(Lm) ? Xo(Ff, Lm, 0, Lm.length - 1) : ag(x.text) && St.setTextContent(Ff, "") : x.text !== Be.text && (ag(Lm) && Xo(Ff, Lm, 0, Lm.length - 1), St.setTextContent(Ff, Be.text)), (Al = Uu?.postpatch) == null || Al.call(Uu, x, Be);
		}
	}
	return function(x, Be) {
		let _r, fa, Vo, Tl = [];
		for (_r = 0; _r < We.pre.length; ++_r) We.pre[_r]();
		for (function(x) {
			return x.sel !== void 0;
		}(x) || (x = Kn(x)), sg(x, Be) ? Tc(x, Be, Tl) : (fa = x.elm, Vo = St.parentNode(fa), Li(Be, Tl), Vo !== null && (St.insertBefore(Vo, Be.elm, St.nextSibling(fa)), Xo(Vo, [x], 0, 0))), _r = 0; _r < Tl.length; ++_r) Tl[_r].data.hook.insert(Tl[_r]);
		for (_r = 0; _r < We.post.length; ++_r) We.post[_r]();
		return Be;
	};
}
function dg(x, Be, We) {
	if (x.ns = "http://www.w3.org/2000/svg", We !== "foreignObject" && Be !== void 0) for (let x = 0; x < Be.length; ++x) {
		let We = Be[x].data;
		We !== void 0 && dg(We, Be[x].children, Be[x].sel);
	}
}
function pg(x, Be, We) {
	let St, Kn, _r, Li = {};
	if (We === void 0 ? Be != null && (rg(Be) ? St = Be : og(Be) ? Kn = Be.toString() : Be && Be.sel ? St = [Be] : Li = Be) : (Be !== null && (Li = Be), rg(We) ? St = We : og(We) ? Kn = We.toString() : We && We.sel && (St = [We])), St !== void 0) for (_r = 0; _r < St.length; ++_r) og(St[_r]) && (St[_r] = ng(void 0, void 0, void 0, St[_r], void 0));
	return x[0] !== "s" || x[1] !== "v" || x[2] !== "g" || x.length !== 3 && x[3] !== "." && x[3] !== "#" || dg(Li, St, x), ng(x, Li, St, Kn, void 0);
}
function hg(x, Be) {
	let We, St = Be.elm, Kn = x.data.attrs, _r = Be.data.attrs;
	if ((Kn || _r) && Kn !== _r) {
		for (We in Kn ||= {}, _r ||= {}, _r) {
			let x = _r[We];
			Kn[We] !== x && (!0 === x ? St.setAttribute(We, "") : !1 === x ? St.removeAttribute(We) : We.charCodeAt(0) === 120 ? We.charCodeAt(3) === 58 ? St.setAttributeNS("http://www.w3.org/XML/1998/namespace", We, x) : We.charCodeAt(5) === 58 ? St.setAttributeNS("http://www.w3.org/1999/xlink", We, x) : St.setAttribute(We, x) : St.setAttribute(We, x));
		}
		for (We in Kn) We in _r || St.removeAttribute(We);
	}
}
var gg = {
	create: hg,
	update: hg
};
function vg(x, Be) {
	let We, St, Kn = Be.elm, _r = x.data.class, Li = Be.data.class;
	if ((_r || Li) && _r !== Li) {
		for (St in _r ||= {}, Li ||= {}, _r) _r[St] && !Object.prototype.hasOwnProperty.call(Li, St) && Kn.classList.remove(St);
		for (St in Li) We = Li[St], We !== _r[St] && Kn.classList[We ? "add" : "remove"](St);
	}
}
var yg = {
	create: vg,
	update: vg
}, mg = /[A-Z]/g;
function bg(x, Be) {
	let We = Be.elm, St, Kn = x.data.dataset, _r = Be.data.dataset;
	if (!Kn && !_r || Kn === _r) return;
	Kn ||= {}, _r ||= {};
	let Li = We.dataset;
	for (St in Kn) _r[St] || (Li ? St in Li && delete Li[St] : We.removeAttribute("data-" + St.replace(mg, "-$&").toLowerCase()));
	for (St in _r) Kn[St] !== _r[St] && (Li ? Li[St] = _r[St] : We.setAttribute("data-" + St.replace(mg, "-$&").toLowerCase(), _r[St]));
}
var wg = {
	create: bg,
	update: bg
};
function Eg(x, Be, We) {
	if (typeof x == "function") x.call(Be, We, Be);
	else if (typeof x == "object") for (let St = 0; St < x.length; St++) Eg(x[St], Be, We);
}
function Dg(x, Be) {
	let We = x.type, St = Be.data.on;
	St && St[We] && Eg(St[We], Be, x);
}
function Sg(x, Be) {
	let We = x.data.on, St = x.listener, Kn = x.elm, _r = Be && Be.data.on, Li = Be && Be.elm, fa;
	if (We !== _r) {
		if (We && St) if (_r) for (fa in We) _r[fa] || Kn.removeEventListener(fa, St, !1);
		else for (fa in We) Kn.removeEventListener(fa, St, !1);
		if (_r) {
			let St = Be.listener = x.listener || function x(Be) {
				Dg(Be, x.vnode);
			};
			if (St.vnode = Be, We) for (fa in _r) We[fa] || Li.addEventListener(fa, St, !1);
			else for (fa in _r) Li.addEventListener(fa, St, !1);
		}
	}
}
var xg = {
	create: Sg,
	update: Sg,
	destroy: Sg
};
function Cg(x, Be) {
	let We, St, Kn, _r = Be.elm, Li = x.data.props, fa = Be.data.props;
	if ((Li || fa) && Li !== fa) for (We in Li ||= {}, fa ||= {}, fa) St = fa[We], Kn = Li[We], Kn === St || We === "value" && _r[We] === St || (_r[We] = St);
}
var Ag = {
	create: Cg,
	update: Cg
}, Og = typeof window < "u" && window.requestAnimationFrame.bind(window) || setTimeout, kg = !1;
function Bg(x, Be, We) {
	(function(x) {
		Og((function() {
			Og(x);
		}));
	})((function() {
		x[Be] = We;
	}));
}
function Fg(x, Be) {
	let We, St, Kn = Be.elm, _r = x.data.style, Li = Be.data.style;
	if (!_r && !Li || _r === Li) return;
	_r ||= {}, Li ||= {};
	let fa = "delayed" in _r;
	for (St in _r) Li[St] || (St[0] === "-" && St[1] === "-" ? Kn.style.removeProperty(St) : Kn.style[St] = "");
	for (St in Li) if (We = Li[St], St === "delayed" && Li.delayed) for (let x in Li.delayed) We = Li.delayed[x], fa && We === _r.delayed[x] || Bg(Kn.style, x, We);
	else St !== "remove" && We !== _r[St] && (St[0] === "-" && St[1] === "-" ? Kn.style.setProperty(St, We) : Kn.style[St] = We);
}
var Tg = {
	pre: function() {
		kg = !1;
	},
	create: Fg,
	update: Fg,
	destroy: function(x) {
		let Be, We, St = x.elm, Kn = x.data.style;
		if (Kn && (Be = Kn.destroy)) for (We in Be) St.style[We] = Be[We];
	},
	remove: function(x, Be) {
		let We = x.data.style;
		if (!We || !We.remove) return void Be();
		let St;
		kg ||= (x.elm.offsetLeft, !0);
		let Kn = x.elm, _r = 0, Li = We.remove, fa = 0, Vo = [];
		for (St in Li) Vo.push(St), Kn.style[St] = Li[St];
		let Xo = getComputedStyle(Kn)["transition-property"].split(", ");
		for (; _r < Xo.length; ++_r) Vo.indexOf(Xo[_r]) !== -1 && fa++;
		Kn.addEventListener("transitionend", (function(x) {
			x.target === Kn && --fa, fa === 0 && Be();
		}));
	}
};
function _g(x, Be) {
	for (let We of x) We != null && !1 !== We && We !== "" && (Array.isArray(We) ? _g(We, Be) : typeof We == "string" || typeof We == "number" || typeof We == "boolean" ? Be.push(ng(void 0, void 0, void 0, String(We), void 0)) : Be.push(We));
	return Be;
}
function Pg(x, Be, ...We) {
	let St = _g(We, []);
	return typeof x == "function" ? x(Be, St) : St.length === 1 && !St[0].sel && St[0].text ? pg(x, Be, St[0].text) : pg(x, Be, St);
}
Pg ||= {};
var jg = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ng = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ig = "\\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", Lg = "[\\ud800-\\udfff]", Rg = "[" + Ig + "]", Mg = "[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]", zg = "\\d+", $g = "[\\u2700-\\u27bf]", Hg = "[a-z\\xdf-\\xf6\\xf8-\\xff]", Vg = "[^\\ud800-\\udfff" + Ig + zg + "\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]", Ug = "\\ud83c[\\udffb-\\udfff]", Wg = "[^\\ud800-\\udfff]", Gg = "(?:\\ud83c[\\udde6-\\uddff]){2}", qg = "[\\ud800-\\udbff][\\udc00-\\udfff]", Kg = "[A-Z\\xc0-\\xd6\\xd8-\\xde]", Yg = "(?:" + Hg + "|" + Vg + ")", Xg = "(?:" + Kg + "|" + Vg + ")", Zg = "(?:" + Mg + "|" + Ug + ")?", Jg = "[\\ufe0e\\ufe0f]?" + Zg + ("(?:\\u200d(?:" + [
	Wg,
	Gg,
	qg
].join("|") + ")[\\ufe0e\\ufe0f]?" + Zg + ")*"), Qg = "(?:" + [
	$g,
	Gg,
	qg
].join("|") + ")" + Jg, ev = "(?:" + [
	Wg + Mg + "?",
	Mg,
	Gg,
	qg,
	Lg
].join("|") + ")", tv = RegExp("['’]", "g"), nv = RegExp(Mg, "g"), rv = RegExp(Ug + "(?=" + Ug + ")|" + ev + Jg, "g"), ov = RegExp([
	Kg + "?" + Hg + "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + [
		Rg,
		Kg,
		"$"
	].join("|") + ")",
	Xg + "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + [
		Rg,
		Kg + Yg,
		"$"
	].join("|") + ")",
	Kg + "?" + Yg + "+(?:['’](?:d|ll|m|re|s|t|ve))?",
	Kg + "+(?:['’](?:D|LL|M|RE|S|T|VE))?",
	zg,
	Qg
].join("|"), "g"), iv = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"), av = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, uv = typeof e == "object" && e && e.Object === Object && e, sv = typeof self == "object" && self && self.Object === Object && self, lv = uv || sv || Function("return this")(), cv, fv = (cv = {
	À: "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(x) {
	return cv?.[x];
});
function dv(x) {
	return iv.test(x);
}
function pv(x) {
	return dv(x) ? function(x) {
		return x.match(rv) || [];
	}(x) : function(x) {
		return x.split("");
	}(x);
}
var hv = Object.prototype.toString, gv = lv.Symbol, vv = gv ? gv.prototype : void 0, yv = vv ? vv.toString : void 0;
function mv(x) {
	if (typeof x == "string") return x;
	if (function(x) {
		return typeof x == "symbol" || function(x) {
			return !!x && typeof x == "object";
		}(x) && hv.call(x) == "[object Symbol]";
	}(x)) return yv ? yv.call(x) : "";
	var Be = x + "";
	return Be == "0" && 1 / x == -Infinity ? "-0" : Be;
}
function bv(x, Be, We) {
	var St = x.length;
	return We = We === void 0 ? St : We, !Be && We >= St ? x : function(x, Be, We) {
		var St = -1, Kn = x.length;
		Be < 0 && (Be = -Be > Kn ? 0 : Kn + Be), (We = We > Kn ? Kn : We) < 0 && (We += Kn), Kn = Be > We ? 0 : We - Be >>> 0, Be >>>= 0;
		for (var _r = Array(Kn); ++St < Kn;) _r[St] = x[St + Be];
		return _r;
	}(x, Be, We);
}
function wv(x) {
	return x == null ? "" : mv(x);
}
for (var Ev, Dv = (Ev = function(x, Be, We) {
	return Be = Be.toLowerCase(), x + (We ? xv(wv(Be).toLowerCase()) : Be);
}, function(x) {
	return function(x, Be, We, St) {
		var Kn = -1, _r = x ? x.length : 0;
		for (St && _r && (We = x[++Kn]); ++Kn < _r;) We = Be(We, x[Kn], Kn, x);
		return We;
	}(function(x, Be, We) {
		return x = wv(x), (Be = We ? void 0 : Be) === void 0 ? function(x) {
			return av.test(x);
		}(x) ? function(x) {
			return x.match(ov) || [];
		}(x) : function(x) {
			return x.match(jg) || [];
		}(x) : x.match(Be) || [];
	}(function(x) {
		return (x = wv(x)) && x.replace(Ng, fv).replace(nv, "");
	}(x).replace(tv, "")), Ev, "");
}), Sv, xv = (Sv = "toUpperCase", function(x) {
	var Be = dv(x = wv(x)) ? pv(x) : void 0, We = Be ? Be[0] : x.charAt(0), St = Be ? bv(Be, 1).join("") : x.slice(1);
	return We[Sv]() + St;
}), Cv = Dv, Av = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), Ov = {
	alt: "altKey",
	control: "ctrlKey",
	meta: "metaKey",
	shift: "shiftKey"
}, kv = {
	add: "+",
	break: "pause",
	cmd: "meta",
	command: "meta",
	ctl: "control",
	ctrl: "control",
	del: "delete",
	down: "arrowdown",
	esc: "escape",
	ins: "insert",
	left: "arrowleft",
	mod: Av ? "meta" : "control",
	opt: "alt",
	option: "alt",
	return: "enter",
	right: "arrowright",
	space: " ",
	spacebar: " ",
	up: "arrowup",
	win: "meta",
	windows: "meta"
}, Bv = {
	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
}, Fv = 1; Fv < 20; Fv++) Bv["f" + Fv] = 111 + Fv;
function Tv(x, Be, We) {
	Be && !("byKey" in Be) && (We = Be, Be = null), Array.isArray(x) || (x = [x]);
	var St = x.map((function(x) {
		return function(x, Be) {
			var We = Be && Be.byKey, St = {}, Kn = (x = x.replace("++", "+add")).split("+"), _r = Kn.length;
			for (var Li in Ov) St[Ov[Li]] = !1;
			var fa = !0, Vo = !1, Xo = void 0;
			try {
				for (var Tc, Tl = Kn[Symbol.iterator](); !(fa = (Tc = Tl.next()).done); fa = !0) {
					var Al = Tc.value, Uu = Al.endsWith("?") && Al.length > 1;
					Uu && (Al = Al.slice(0, -1));
					var Ff = Pv(Al), Lm = Ov[Ff];
					if (Al.length > 1 && !Lm && !kv[Al] && !Bv[Ff]) throw TypeError("Unknown modifier: \"" + Al + "\"");
					_r !== 1 && Lm || (We ? St.key = Ff : St.which = _v(Al)), Lm && (St[Lm] = !Uu || null);
				}
			} catch (x) {
				Vo = !0, Xo = x;
			} finally {
				try {
					!fa && Tl.return && Tl.return();
				} finally {
					if (Vo) throw Xo;
				}
			}
			return St;
		}(x, Be);
	})), Kn = function(x) {
		return St.some((function(Be) {
			return function(x, Be) {
				for (var We in x) {
					var St = x[We], Kn = void 0;
					if (St != null && ((Kn = We === "key" && Be.key != null ? Be.key.toLowerCase() : We === "which" ? St === 91 && Be.which === 93 ? 91 : Be.which : Be[We]) != null || !1 !== St) && Kn !== St) return !1;
				}
				return !0;
			}(Be, x);
		}));
	};
	return We == null ? Kn : Kn(We);
}
function _v(x) {
	return x = Pv(x), Bv[x] || x.toUpperCase().charCodeAt(0);
}
function Pv(x) {
	return x = x.toLowerCase(), x = kv[x] || x;
}
var jv = Tv, Nv = function(x, Be) {
	return Tv(x, { byKey: !0 }, Be);
}, Iv = /^\s+|\s+$/g, Lv = /^[-+]0x[0-9a-f]+$/i, Rv = /^0b[01]+$/i, Mv = /^0o[0-7]+$/i, zv = parseInt, $v = typeof e == "object" && e && e.Object === Object && e, Hv = typeof self == "object" && self && self.Object === Object && self, Vv = $v || Hv || Function("return this")(), Uv = Object.prototype.toString, Wv = Math.max, Gv = Math.min, qv = function() {
	return Vv.Date.now();
};
function Kv(x) {
	var Be = typeof x;
	return !!x && (Be == "object" || Be == "function");
}
function Yv(x) {
	if (typeof x == "number") return x;
	if (function(x) {
		return typeof x == "symbol" || function(x) {
			return !!x && typeof x == "object";
		}(x) && Uv.call(x) == "[object Symbol]";
	}(x)) return NaN;
	if (Kv(x)) {
		var Be = typeof x.valueOf == "function" ? x.valueOf() : x;
		x = Kv(Be) ? Be + "" : Be;
	}
	if (typeof x != "string") return x === 0 ? x : +x;
	x = x.replace(Iv, "");
	var We = Rv.test(x);
	return We || Mv.test(x) ? zv(x.slice(2), We ? 2 : 8) : Lv.test(x) ? NaN : +x;
}
var Xv, Zv = function(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo = 0, Tc = !1, Tl = !1, Al = !0;
	if (typeof x != "function") throw TypeError("Expected a function");
	function Uu(Be) {
		var We = St, _r = Kn;
		return St = Kn = void 0, Xo = Be, Li = x.apply(_r, We);
	}
	function Ff(x) {
		return Xo = x, fa = setTimeout(Bm, Be), Tc ? Uu(x) : Li;
	}
	function Lm(x) {
		var We = x - Vo;
		return Vo === void 0 || We >= Be || We < 0 || Tl && x - Xo >= _r;
	}
	function Bm() {
		var x = qv();
		if (Lm(x)) return x_(x);
		fa = setTimeout(Bm, function(x) {
			var We = Be - (x - Vo);
			return Tl ? Gv(We, _r - (x - Xo)) : We;
		}(x));
	}
	function x_(x) {
		return fa = void 0, Al && St ? Uu(x) : (St = Kn = void 0, Li);
	}
	function uy() {
		var x = qv(), We = Lm(x);
		if (St = arguments, Kn = this, Vo = x, We) {
			if (fa === void 0) return Ff(Vo);
			if (Tl) return fa = setTimeout(Bm, Be), Uu(Vo);
		}
		return fa === void 0 && (fa = setTimeout(Bm, Be)), Li;
	}
	return Be = Yv(Be) || 0, Kv(We) && (Tc = !!We.leading, _r = (Tl = "maxWait" in We) ? Wv(Yv(We.maxWait) || 0, Be) : _r, Al = "trailing" in We ? !!We.trailing : Al), uy.cancel = function() {
		fa !== void 0 && clearTimeout(fa), Xo = 0, St = Vo = Kn = fa = void 0;
	}, uy.flush = function() {
		return fa === void 0 ? Li : x_(qv());
	}, uy;
}, Jv = n((function(Be, We) {
	var St = "__lodash_hash_undefined__", Kn = 9007199254740991, _r = "[object Arguments]", Li = "[object Boolean]", fa = "[object Date]", Vo = "[object Function]", Xo = "[object GeneratorFunction]", Tc = "[object Map]", Tl = "[object Number]", Al = "[object Object]", Uu = "[object Promise]", Ff = "[object RegExp]", Lm = "[object Set]", Bm = "[object String]", x_ = "[object Symbol]", uy = "[object WeakMap]", dx = "[object ArrayBuffer]", kx = "[object DataView]", eC = "[object Float32Array]", uC = "[object Float64Array]", _T = "[object Int8Array]", ID = "[object Int16Array]", ok = "[object Int32Array]", ij = "[object Uint8Array]", Dj = "[object Uint8ClampedArray]", LP = "[object Uint16Array]", zP = "[object Uint32Array]", $P = /\w*$/, CF = /^\[object .+?Constructor\]$/, VF = /^(?:0|[1-9]\d*)$/, nR = {};
	nR[_r] = nR["[object Array]"] = nR[dx] = nR[kx] = nR[Li] = nR[fa] = nR[eC] = nR[uC] = nR[_T] = nR[ID] = nR[ok] = nR[Tc] = nR[Tl] = nR[Al] = nR[Ff] = nR[Lm] = nR[Bm] = nR[x_] = nR[ij] = nR[Dj] = nR[LP] = nR[zP] = !0, nR["[object Error]"] = nR[Vo] = nR[uy] = !1;
	var tH = typeof e == "object" && e && e.Object === Object && e, MH = typeof self == "object" && self && self.Object === Object && self, vG = tH || MH || Function("return this")(), jG = We && !We.nodeType && We, pMt = jG && Be && !Be.nodeType && Be, eq = pMt && pMt.exports === jG;
	function iq(x, Be) {
		return x.set(Be[0], Be[1]), x;
	}
	function Vq(x, Be) {
		return x.add(Be), x;
	}
	function Hq(x, Be, We, St) {
		var Kn = -1, _r = x ? x.length : 0;
		for (St && _r && (We = x[++Kn]); ++Kn < _r;) We = Be(We, x[Kn], Kn, x);
		return We;
	}
	function Uq(x) {
		var Be = !1;
		if (x != null && typeof x.toString != "function") try {
			Be = !!(x + "");
		} catch {}
		return Be;
	}
	function mMt(x) {
		var Be = -1, We = Array(x.size);
		return x.forEach((function(x, St) {
			We[++Be] = [St, x];
		})), We;
	}
	function hMt(x, Be) {
		return function(We) {
			return x(Be(We));
		};
	}
	function gMt(x) {
		var Be = -1, We = Array(x.size);
		return x.forEach((function(x) {
			We[++Be] = x;
		})), We;
	}
	var _Mt = Array.prototype, vMt = Function.prototype, yMt = Object.prototype, bMt = vG["__core-js_shared__"], qX = function() {
		var x = /[^.]+$/.exec(bMt && bMt.keys && bMt.keys.IE_PROTO || "");
		return x ? "Symbol(src)_1." + x : "";
	}(), xMt = vMt.toString, RQ = yMt.hasOwnProperty, SMt = yMt.toString, CMt = RegExp("^" + xMt.call(RQ).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), wMt = eq ? vG.Buffer : void 0, TMt = vG.Symbol, S2 = vG.Uint8Array, EMt = hMt(Object.getPrototypeOf, Object), DMt = Object.create, OMt = yMt.propertyIsEnumerable, kMt = _Mt.splice, AMt = Object.getOwnPropertySymbols, jMt = wMt ? wMt.isBuffer : void 0, MMt = hMt(Object.keys, Object), NMt = nNt(vG, "DataView"), PMt = nNt(vG, "Map"), FMt = nNt(vG, "Promise"), U3 = nNt(vG, "Set"), IMt = nNt(vG, "WeakMap"), LMt = nNt(Object, "create"), RMt = sNt(NMt), zMt = sNt(PMt), BMt = sNt(FMt), VMt = sNt(U3), HMt = sNt(IMt), UMt = TMt ? TMt.prototype : void 0, WMt = UMt ? UMt.valueOf : void 0;
	function GMt(x) {
		var Be = -1, We = x ? x.length : 0;
		for (this.clear(); ++Be < We;) {
			var St = x[Be];
			this.set(St[0], St[1]);
		}
	}
	function KMt(x) {
		var Be = -1, We = x ? x.length : 0;
		for (this.clear(); ++Be < We;) {
			var St = x[Be];
			this.set(St[0], St[1]);
		}
	}
	function qMt(x) {
		var Be = -1, We = x ? x.length : 0;
		for (this.clear(); ++Be < We;) {
			var St = x[Be];
			this.set(St[0], St[1]);
		}
	}
	function JMt(x) {
		this.__data__ = new KMt(x);
	}
	function YMt(x, Be) {
		var We = lNt(x) || function(x) {
			return function(x) {
				return function(x) {
					return !!x && typeof x == "object";
				}(x) && uNt(x);
			}(x) && RQ.call(x, "callee") && (!OMt.call(x, "callee") || SMt.call(x) == _r);
		}(x) ? function(x, Be) {
			for (var We = -1, St = Array(x); ++We < x;) St[We] = Be(We);
			return St;
		}(x.length, String) : [], St = We.length, Kn = !!St;
		for (var Li in x) !Be && !RQ.call(x, Li) || Kn && (Li == "length" || aNt(Li, St)) || We.push(Li);
		return We;
	}
	function XMt(x, Be, We) {
		var St = x[Be];
		RQ.call(x, Be) && cNt(St, We) && (We !== void 0 || Be in x) || (x[Be] = We);
	}
	function P6(x, Be) {
		for (var We = x.length; We--;) if (cNt(x[We][0], Be)) return We;
		return -1;
	}
	function ZMt(x, Be, We, St, Kn, Uu, uy) {
		var CF;
		if (St && (CF = Uu ? St(x, Kn, Uu, uy) : St(x)), CF !== void 0) return CF;
		if (!pNt(x)) return x;
		var VF = lNt(x);
		if (VF) {
			if (CF = function(x) {
				var Be = x.length, We = x.constructor(Be);
				return Be && typeof x[0] == "string" && RQ.call(x, "index") && (We.index = x.index, We.input = x.input), We;
			}(x), !Be) return function(x, Be) {
				var We = -1, St = x.length;
				for (Be ||= Array(St); ++We < St;) Be[We] = x[We];
				return Be;
			}(x, CF);
		} else {
			var tH = iNt(x), MH = tH == Vo || tH == Xo;
			if (dNt(x)) return function(x, Be) {
				if (Be) return x.slice();
				var We = new x.constructor(x.length);
				return x.copy(We), We;
			}(x, Be);
			if (tH == Al || tH == _r || MH && !Uu) {
				if (Uq(x)) return Uu ? x : {};
				if (CF = function(x) {
					return typeof x.constructor != "function" || oNt(x) ? {} : (Be = EMt(x), pNt(Be) ? DMt(Be) : {});
					var Be;
				}(MH ? {} : x), !Be) return function(x, Be) {
					return eNt(x, rNt(x), Be);
				}(x, function(x, Be) {
					return x && eNt(Be, mNt(Be), x);
				}(CF, x));
			} else {
				if (!nR[tH]) return Uu ? x : {};
				CF = function(x, Be, We, St) {
					var Kn = x.constructor;
					switch (Be) {
						case dx: return $Mt(x);
						case Li:
						case fa: return new Kn(+x);
						case kx: return function(x, Be) {
							var We = Be ? $Mt(x.buffer) : x.buffer;
							return new x.constructor(We, x.byteOffset, x.byteLength);
						}(x, St);
						case eC:
						case uC:
						case _T:
						case ID:
						case ok:
						case ij:
						case Dj:
						case LP:
						case zP: return function(x, Be) {
							var We = Be ? $Mt(x.buffer) : x.buffer;
							return new x.constructor(We, x.byteOffset, x.length);
						}(x, St);
						case Tc: return function(x, Be, We) {
							return Hq(Be ? We(mMt(x), !0) : mMt(x), iq, new x.constructor());
						}(x, St, We);
						case Tl:
						case Bm: return new Kn(x);
						case Ff: return function(x) {
							var Be = new x.constructor(x.source, $P.exec(x));
							return Be.lastIndex = x.lastIndex, Be;
						}(x);
						case Lm: return function(x, Be, We) {
							return Hq(Be ? We(gMt(x), !0) : gMt(x), Vq, new x.constructor());
						}(x, St, We);
						case x_: return function(x) {
							return WMt ? Object(WMt.call(x)) : {};
						}(x);
					}
				}(x, tH, ZMt, Be);
			}
		}
		uy ||= new JMt();
		var vG = uy.get(x);
		if (vG) return vG;
		if (uy.set(x, CF), !VF) var jG = We ? function(x) {
			return function(x, Be, We) {
				var St = Be(x);
				return lNt(x) ? St : function(x, Be) {
					for (var We = -1, St = Be.length, Kn = x.length; ++We < St;) x[Kn + We] = Be[We];
					return x;
				}(St, We(x));
			}(x, mNt, rNt);
		}(x) : mNt(x);
		return function(x, Be) {
			for (var We = -1, St = x ? x.length : 0; ++We < St && !1 !== Be(x[We], We, x););
		}(jG || x, (function(Kn, _r) {
			jG && (Kn = x[_r = Kn]), XMt(CF, _r, ZMt(Kn, Be, We, St, _r, x, uy));
		})), CF;
	}
	function QMt(x) {
		return !(!pNt(x) || function(x) {
			return !!qX && qX in x;
		}(x)) && (fNt(x) || Uq(x) ? CMt : CF).test(sNt(x));
	}
	function $Mt(x) {
		var Be = new x.constructor(x.byteLength);
		return new S2(Be).set(new S2(x)), Be;
	}
	function eNt(x, Be, We, St) {
		We ||= {};
		for (var Kn = -1, _r = Be.length; ++Kn < _r;) {
			var Li = Be[Kn], fa = St ? St(We[Li], x[Li], Li, We, x) : void 0;
			XMt(We, Li, fa === void 0 ? x[Li] : fa);
		}
		return We;
	}
	function tNt(x, Be) {
		var We, St, Kn = x.__data__;
		return ((St = typeof (We = Be)) == "string" || St == "number" || St == "symbol" || St == "boolean" ? We !== "__proto__" : We === null) ? Kn[typeof Be == "string" ? "string" : "hash"] : Kn.map;
	}
	function nNt(x, Be) {
		var We = function(x, Be) {
			return x?.[Be];
		}(x, Be);
		return QMt(We) ? We : void 0;
	}
	GMt.prototype.clear = function() {
		this.__data__ = LMt ? LMt(null) : {};
	}, GMt.prototype.delete = function(x) {
		return this.has(x) && delete this.__data__[x];
	}, GMt.prototype.get = function(x) {
		var Be = this.__data__;
		if (LMt) {
			var We = Be[x];
			return We === St ? void 0 : We;
		}
		return RQ.call(Be, x) ? Be[x] : void 0;
	}, GMt.prototype.has = function(x) {
		var Be = this.__data__;
		return LMt ? Be[x] !== void 0 : RQ.call(Be, x);
	}, GMt.prototype.set = function(x, Be) {
		return this.__data__[x] = LMt && Be === void 0 ? St : Be, this;
	}, KMt.prototype.clear = function() {
		this.__data__ = [];
	}, KMt.prototype.delete = function(x) {
		var Be = this.__data__, We = P6(Be, x);
		return !(We < 0) && (We == Be.length - 1 ? Be.pop() : kMt.call(Be, We, 1), !0);
	}, KMt.prototype.get = function(x) {
		var Be = this.__data__, We = P6(Be, x);
		return We < 0 ? void 0 : Be[We][1];
	}, KMt.prototype.has = function(x) {
		return P6(this.__data__, x) > -1;
	}, KMt.prototype.set = function(x, Be) {
		var We = this.__data__, St = P6(We, x);
		return St < 0 ? We.push([x, Be]) : We[St][1] = Be, this;
	}, qMt.prototype.clear = function() {
		this.__data__ = {
			hash: new GMt(),
			map: new (PMt || KMt)(),
			string: new GMt()
		};
	}, qMt.prototype.delete = function(x) {
		return tNt(this, x).delete(x);
	}, qMt.prototype.get = function(x) {
		return tNt(this, x).get(x);
	}, qMt.prototype.has = function(x) {
		return tNt(this, x).has(x);
	}, qMt.prototype.set = function(x, Be) {
		return tNt(this, x).set(x, Be), this;
	}, JMt.prototype.clear = function() {
		this.__data__ = new KMt();
	}, JMt.prototype.delete = function(x) {
		return this.__data__.delete(x);
	}, JMt.prototype.get = function(x) {
		return this.__data__.get(x);
	}, JMt.prototype.has = function(x) {
		return this.__data__.has(x);
	}, JMt.prototype.set = function(x, Be) {
		var We = this.__data__;
		if (We instanceof KMt) {
			var St = We.__data__;
			if (!PMt || St.length < 199) return St.push([x, Be]), this;
			We = this.__data__ = new qMt(St);
		}
		return We.set(x, Be), this;
	};
	var rNt = AMt ? hMt(AMt, Object) : function() {
		return [];
	}, iNt = function(x) {
		return SMt.call(x);
	};
	function aNt(x, Be) {
		return !!(Be ??= Kn) && (typeof x == "number" || VF.test(x)) && x > -1 && x % 1 == 0 && x < Be;
	}
	function oNt(x) {
		var Be = x && x.constructor;
		return x === (typeof Be == "function" && Be.prototype || yMt);
	}
	function sNt(x) {
		if (x != null) {
			try {
				return xMt.call(x);
			} catch {}
			try {
				return x + "";
			} catch {}
		}
		return "";
	}
	function cNt(x, Be) {
		return x === Be || x != x && Be != Be;
	}
	(NMt && iNt(new NMt(/* @__PURE__ */ new ArrayBuffer(1))) != kx || PMt && iNt(new PMt()) != Tc || FMt && iNt(FMt.resolve()) != Uu || U3 && iNt(new U3()) != Lm || IMt && iNt(new IMt()) != uy) && (iNt = function(x) {
		var Be = SMt.call(x), We = Be == Al ? x.constructor : void 0, St = We ? sNt(We) : void 0;
		if (St) switch (St) {
			case RMt: return kx;
			case zMt: return Tc;
			case BMt: return Uu;
			case VMt: return Lm;
			case HMt: return uy;
		}
		return Be;
	});
	var lNt = Array.isArray;
	function uNt(x) {
		return x != null && function(x) {
			return typeof x == "number" && x > -1 && x % 1 == 0 && x <= Kn;
		}(x.length) && !fNt(x);
	}
	var dNt = jMt || function() {
		return !1;
	};
	function fNt(x) {
		var Be = pNt(x) ? SMt.call(x) : "";
		return Be == Vo || Be == Xo;
	}
	function pNt(x) {
		var Be = typeof x;
		return !!x && (Be == "object" || Be == "function");
	}
	function mNt(x) {
		return uNt(x) ? YMt(x) : function(x) {
			if (!oNt(x)) return MMt(x);
			var Be = [];
			for (var We in Object(x)) RQ.call(x, We) && We != "constructor" && Be.push(We);
			return Be;
		}(x);
	}
	Be.exports = function(x) {
		return ZMt(x, !0, !0);
	};
}));
function Qv(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var ey = 0;
function ty(x) {
	return "__private_" + ey++ + "_" + x;
}
function ny(x, Be, We) {
	let St = [];
	return x.forEach(((x) => typeof x == "string" ? Be[Symbol.split](x).forEach(((x, Be, Kn) => {
		x !== "" && St.push(x), Be < Kn.length - 1 && St.push(We);
	})) : St.push(x))), St;
}
/**
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/ function ry(x, Be) {
	let We = /\$/g, St = [x];
	if (Be == null) return St;
	for (let x of Object.keys(Be)) if (x !== "_") {
		let Kn = Be[x];
		typeof Kn == "string" && (Kn = We[Symbol.replace](Kn, "$$$$")), St = ny(St, RegExp(`%\\{${x}\\}`, "g"), Kn);
	}
	return St;
}
var oy = (Xv = ty("apply"), class {
	constructor(x) {
		Object.defineProperty(this, Xv, { value: iy }), this.locale = {
			strings: {},
			pluralize: (x) => x === 1 ? 0 : 1
		}, Array.isArray(x) ? x.forEach(Qv(this, Xv)[Xv], this) : Qv(this, Xv)[Xv](x);
	}
	translate(x, Be) {
		return this.translateArray(x, Be).join("");
	}
	translateArray(x, Be) {
		if (!function(x, Be) {
			return Object.prototype.hasOwnProperty.call(x, Be);
		}(this.locale.strings, x)) throw Error(`missing string: ${x}`);
		let We = this.locale.strings[x];
		if (typeof We == "object") {
			if (Be && Be.smart_count !== void 0) return ry(We[this.locale.pluralize(Be.smart_count)], Be);
			throw Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}");
		}
		return ry(We, Be);
	}
});
function iy(x) {
	if (x == null || !x.strings) return;
	let Be = this.locale;
	this.locale = {
		...Be,
		strings: {
			...Be.strings,
			...x.strings
		}
	}, this.locale.pluralize = x.pluralize || Be.pluralize;
}
var ay = function() {
	var x = {}, Be = x._fns = {};
	return x.emit = function(x, We, St, Kn, _r, Li, fa) {
		var Vo = function(x) {
			for (var We = Be[x] ? Be[x] : [], St = x.indexOf(":"), Kn = St === -1 ? [x] : [x.substring(0, St), x.substring(St + 1)], _r = Object.keys(Be), Li = 0, fa = _r.length; Li < fa; Li++) {
				var Vo = _r[Li];
				if (Vo === "*" && (We = We.concat(Be[Vo])), Kn.length === 2 && Kn[0] === Vo) {
					We = We.concat(Be[Vo]);
					break;
				}
			}
			return We;
		}(x);
		Vo.length && function(x, Be, We) {
			for (var St = 0, Kn = Be.length; St < Kn && Be[St]; St++) Be[St].event = x, Be[St].apply(Be[St], We);
		}(x, Vo, [
			We,
			St,
			Kn,
			_r,
			Li,
			fa
		]);
	}, x.on = function(x, We) {
		Be[x] || (Be[x] = []), Be[x].push(We);
	}, x.once = function(Be, We) {
		this.on(Be, (function St() {
			We.apply(this, arguments), x.off(Be, St);
		}));
	}, x.off = function(x, Be) {
		var We = [];
		if (x && Be) for (var St = this._fns[x], Kn = 0, _r = St ? St.length : 0; Kn < _r; Kn++) St[Kn] !== Be && We.push(St[Kn]);
		We.length ? this._fns[x] = We : delete this._fns[x];
	}, x;
}, { urlAlphabet: sy } = { urlAlphabet: "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict" }, ly = (x) => crypto.getRandomValues(new Uint8Array(x)), cy = (x, Be, We) => {
	let St = (2 << Math.log(x.length - 1) / Math.LN2) - 1, Kn = -~(1.6 * St * Be / x.length);
	return () => {
		let _r = "";
		for (;;) {
			let Li = We(Kn), fa = Kn;
			for (; fa--;) if (_r += x[Li[fa] & St] || "", _r.length === Be) return _r;
		}
	};
}, fy = {
	nanoid: (x = 21) => {
		let Be = "", We = crypto.getRandomValues(new Uint8Array(x));
		for (; x--;) {
			let St = 63 & We[x];
			Be += St < 36 ? St.toString(36) : St < 62 ? (St - 26).toString(36).toUpperCase() : St < 63 ? "_" : "-";
		}
		return Be;
	},
	customAlphabet: (x, Be) => cy(x, Be, ly),
	customRandom: cy,
	urlAlphabet: sy,
	random: ly
}, dy = function(x) {
	if (typeof x != "number" || isNaN(x)) throw TypeError("Expected a number, got " + typeof x);
	var Be = x < 0, We = [
		"B",
		"KB",
		"MB",
		"GB",
		"TB",
		"PB",
		"EB",
		"ZB",
		"YB"
	];
	if (Be && (x = -x), x < 1) return (Be ? "-" : "") + x + " B";
	var St = Math.min(Math.floor(Math.log(x) / Math.log(1024)), We.length - 1);
	x = Number(x / 1024 ** St);
	var Kn = We[St];
	return x >= 10 || x % 1 == 0 ? (Be ? "-" : "") + x.toFixed(0) + " " + Kn : (Be ? "-" : "") + x.toFixed(1) + " " + Kn;
};
function py(x, Be) {
	this.text = x ||= "", this.hasWild = ~x.indexOf("*"), this.separator = Be, this.parts = x.split(Be);
}
py.prototype.match = function(x) {
	var Be, We, St = !0, Kn = this.parts, _r = Kn.length;
	if (typeof x == "string" || x instanceof String) if (this.hasWild || this.text == x) {
		for (We = (x || "").split(this.separator), Be = 0; St && Be < _r; Be++) Kn[Be] !== "*" && (St = Be < We.length && Kn[Be] === We[Be]);
		St &&= We;
	} else St = !1;
	else if (typeof x.splice == "function") for (St = [], Be = x.length; Be--;) this.match(x[Be]) && (St[St.length] = x[Be]);
	else if (typeof x == "object") for (var Li in St = {}, x) this.match(Li) && (St[Li] = x[Li]);
	return St;
};
var hy = /[\/\+\.]/, gy = function(x, Be) {
	function We(Be) {
		var We = function(x, Be, We) {
			var St = new py(x, We || /[\/\.]/);
			return Be === void 0 ? St : St.match(Be);
		}(Be, x, hy);
		return We && We.length >= 2;
	}
	return Be ? We(Be.split(";")[0]) : We;
}, vy = 0;
function yy(x) {
	return "__private_" + vy++ + "_" + x;
}
var my = yy("publish"), by = class {
	constructor() {
		Object.defineProperty(this, my, { value: wy }), this.state = {}, this.callbacks = [];
	}
	getState() {
		return this.state;
	}
	setState(x) {
		let Be = { ...this.state }, We = {
			...this.state,
			...x
		};
		this.state = We, function(x, Be) {
			if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
			return x;
		}(this, my)[my](Be, We, x);
	}
	subscribe(x) {
		return this.callbacks.push(x), () => {
			this.callbacks.splice(this.callbacks.indexOf(x), 1);
		};
	}
};
function wy() {
	var x = [...arguments];
	this.callbacks.forEach(((Be) => {
		Be(...x);
	}));
}
by.VERSION = "2.0.3";
var Ey = function(x) {
	let Be = x.lastIndexOf(".");
	return Be === -1 || Be === x.length - 1 ? {
		name: x,
		extension: void 0
	} : {
		name: x.slice(0, Be),
		extension: x.slice(Be + 1)
	};
}, Dy = {
	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 Sy(x) {
	let Be = "";
	return x.replace(/[^A-Z0-9]/gi, ((x) => (Be += `-${function(x) {
		return x.charCodeAt(0).toString(32);
	}(x)}`, "/"))) + Be;
}
var xy = function(x) {
	if (x ??= typeof navigator < "u" ? navigator.userAgent : null, !x) return !0;
	let Be = /Edge\/(\d+\.\d+)/.exec(x);
	if (!Be) return !0;
	let [We, St] = Be[1].split(".");
	return We = parseInt(We, 10), St = parseInt(St, 10), We < 15 || We === 15 && St < 15063 || We > 18 || We === 18 && St >= 18218;
};
function Cy(x) {
	return x < 10 ? `0${x}` : x.toString();
}
var Ay = function() {
	let x = /* @__PURE__ */ new Date();
	return `${Cy(x.getHours())}:${Cy(x.getMinutes())}:${Cy(x.getSeconds())}`;
}, Oy = {
	justErrorsLogger: {
		debug: () => {},
		warn: () => {},
		error: function() {
			var x = [...arguments];
			return console.error(`[Uppy] [${Ay()}]`, ...x);
		}
	},
	debugLogger: {
		debug: function() {
			var x = [...arguments];
			return console.debug(`[Uppy] [${Ay()}]`, ...x);
		},
		warn: function() {
			var x = [...arguments];
			return console.warn(`[Uppy] [${Ay()}]`, ...x);
		},
		error: function() {
			var x = [...arguments];
			return console.error(`[Uppy] [${Ay()}]`, ...x);
		}
	}
}, ky = { 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}"
	}
} }, By = fy, Fy, Ty;
function _y(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var Py = 0;
function jy(x) {
	return "__private_" + Py++ + "_" + x;
}
var { nanoid: Ny } = By, { justErrorsLogger: Iy, debugLogger: Ly } = Oy, Ry = class extends Error {
	constructor() {
		super(...arguments), this.isRestriction = !0;
	}
};
typeof AggregateError > "u" && (globalThis.AggregateError = class extends Error {
	constructor(x, Be) {
		super(Be), this.errors = x;
	}
});
var My = class extends AggregateError {
	constructor() {
		super(...arguments), this.isRestriction = !0;
	}
}, zy = jy("plugins"), $y = jy("storeUnsubscribe"), Hy = jy("emitter"), Vy = jy("preProcessors"), Uy = jy("uploaders"), Wy = jy("postProcessors"), Gy = jy("checkRestrictions"), qy = jy("checkMinNumberOfFiles"), Ky = jy("checkRequiredMetaFieldsOnFile"), Yy = jy("checkRequiredMetaFields"), Xy = jy("showOrLogErrorAndThrow"), Zy = jy("assertNewUploadAllowed"), Jy = jy("checkAndCreateFileStateObject"), Qy = jy("startIfAutoProceed"), em = jy("addListeners"), tm = jy("updateOnlineStatus"), nm = jy("createUpload"), rm = jy("getUpload"), om = jy("removeUpload"), im = jy("runUpload");
Fy = Symbol.for("uppy test: getPlugins"), Ty = Symbol.for("uppy test: createUpload");
var am = class {
	constructor(x) {
		Object.defineProperty(this, im, { value: bm }), Object.defineProperty(this, om, { value: mm }), Object.defineProperty(this, rm, { value: ym }), Object.defineProperty(this, nm, { value: vm }), Object.defineProperty(this, em, { value: gm }), Object.defineProperty(this, Qy, { value: hm }), Object.defineProperty(this, Jy, { value: pm }), Object.defineProperty(this, Zy, { value: dm }), Object.defineProperty(this, Xy, { value: fm }), Object.defineProperty(this, Yy, { value: cm }), Object.defineProperty(this, Ky, { value: lm }), Object.defineProperty(this, qy, { value: sm }), Object.defineProperty(this, Gy, { value: um }), Object.defineProperty(this, zy, {
			writable: !0,
			value: Object.create(null)
		}), Object.defineProperty(this, $y, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, Hy, {
			writable: !0,
			value: ay()
		}), Object.defineProperty(this, Vy, {
			writable: !0,
			value: /* @__PURE__ */ new Set()
		}), Object.defineProperty(this, Uy, {
			writable: !0,
			value: /* @__PURE__ */ new Set()
		}), Object.defineProperty(this, Wy, {
			writable: !0,
			value: /* @__PURE__ */ new Set()
		}), Object.defineProperty(this, tm, {
			writable: !0,
			value: this.updateOnlineStatus.bind(this)
		}), this.defaultLocale = ky;
		let Be = {
			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: (x) => x,
			onBeforeUpload: (x) => x,
			store: new by(),
			logger: Iy,
			infoTimeout: 5e3
		};
		if (this.opts = {
			...Be,
			...x,
			restrictions: {
				...Be.restrictions,
				...x && x.restrictions
			}
		}, x && x.logger && x.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") : x && x.debug && (this.opts.logger = Ly), 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 = eg(this.calculateProgress.bind(this), 500, {
			leading: !0,
			trailing: !0
		}), this.store = this.opts.store, this.setState({
			plugins: {},
			files: {},
			currentUploads: {},
			allowNewUpload: !0,
			capabilities: {
				uploadProgress: xy(),
				individualCancellation: !0,
				resumableUploads: !1
			},
			totalProgress: 0,
			meta: { ...this.opts.meta },
			info: [],
			recoveredState: null
		}), _y(this, $y)[$y] = this.store.subscribe(((x, Be, We) => {
			this.emit("state-update", x, Be, We), this.updateAll(Be);
		})), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), _y(this, em)[em]();
	}
	emit(x) {
		var Be = [...arguments].slice(1);
		_y(this, Hy)[Hy].emit(x, ...Be);
	}
	on(x, Be) {
		return _y(this, Hy)[Hy].on(x, Be), this;
	}
	once(x, Be) {
		return _y(this, Hy)[Hy].once(x, Be), this;
	}
	off(x, Be) {
		return _y(this, Hy)[Hy].off(x, Be), this;
	}
	updateAll(x) {
		this.iteratePlugins(((Be) => {
			Be.update(x);
		}));
	}
	setState(x) {
		this.store.setState(x);
	}
	getState() {
		return this.store.getState();
	}
	get state() {
		return this.getState();
	}
	setFileState(x, Be) {
		if (!this.getState().files[x]) throw Error(`Can’t set state for ${x} (the file could have been removed)`);
		this.setState({ files: {
			...this.getState().files,
			[x]: {
				...this.getState().files[x],
				...Be
			}
		} });
	}
	i18nInit() {
		let x = new oy([this.defaultLocale, this.opts.locale]);
		this.i18n = x.translate.bind(x), this.i18nArray = x.translateArray.bind(x), this.locale = x.locale;
	}
	setOptions(x) {
		this.opts = {
			...this.opts,
			...x,
			restrictions: {
				...this.opts.restrictions,
				...x && x.restrictions
			}
		}, x.meta && this.setMeta(x.meta), this.i18nInit(), x.locale && this.iteratePlugins(((x) => {
			x.setOptions();
		})), this.setState();
	}
	resetProgress() {
		let x = {
			percentage: 0,
			bytesUploaded: 0,
			uploadComplete: !1,
			uploadStarted: null
		}, Be = { ...this.getState().files }, We = {};
		Object.keys(Be).forEach(((St) => {
			let Kn = { ...Be[St] };
			Kn.progress = {
				...Kn.progress,
				...x
			}, We[St] = Kn;
		})), this.setState({
			files: We,
			totalProgress: 0
		}), this.emit("reset-progress");
	}
	addPreProcessor(x) {
		_y(this, Vy)[Vy].add(x);
	}
	removePreProcessor(x) {
		return _y(this, Vy)[Vy].delete(x);
	}
	addPostProcessor(x) {
		_y(this, Wy)[Wy].add(x);
	}
	removePostProcessor(x) {
		return _y(this, Wy)[Wy].delete(x);
	}
	addUploader(x) {
		_y(this, Uy)[Uy].add(x);
	}
	removeUploader(x) {
		return _y(this, Uy)[Uy].delete(x);
	}
	setMeta(x) {
		let Be = {
			...this.getState().meta,
			...x
		}, We = { ...this.getState().files };
		Object.keys(We).forEach(((Be) => {
			We[Be] = {
				...We[Be],
				meta: {
					...We[Be].meta,
					...x
				}
			};
		})), this.log("Adding metadata:"), this.log(x), this.setState({
			meta: Be,
			files: We
		});
	}
	setFileMeta(x, Be) {
		let We = { ...this.getState().files };
		if (!We[x]) return void this.log("Was trying to set metadata for a file that has been removed: ", x);
		let St = {
			...We[x].meta,
			...Be
		};
		We[x] = {
			...We[x],
			meta: St
		}, this.setState({ files: We });
	}
	getFile(x) {
		return this.getState().files[x];
	}
	getFiles() {
		let { files: x } = this.getState();
		return Object.values(x);
	}
	getObjectOfFilesPerState() {
		let { files: x, totalProgress: Be, error: We } = this.getState(), St = Object.values(x), Kn = St.filter(((x) => {
			let { progress: Be } = x;
			return !Be.uploadComplete && Be.uploadStarted;
		})), _r = St.filter(((x) => !x.progress.uploadStarted)), Li = St.filter(((x) => x.progress.uploadStarted || x.progress.preprocess || x.progress.postprocess)), fa = St.filter(((x) => x.progress.uploadStarted)), Vo = St.filter(((x) => x.isPaused)), Xo = St.filter(((x) => x.progress.uploadComplete)), Tc = St.filter(((x) => x.error)), Tl = Kn.filter(((x) => !x.isPaused)), Al = St.filter(((x) => x.progress.preprocess || x.progress.postprocess));
		return {
			newFiles: _r,
			startedFiles: Li,
			uploadStartedFiles: fa,
			pausedFiles: Vo,
			completeFiles: Xo,
			erroredFiles: Tc,
			inProgressFiles: Kn,
			inProgressNotPausedFiles: Tl,
			processingFiles: Al,
			isUploadStarted: fa.length > 0,
			isAllComplete: Be === 100 && Xo.length === St.length && Al.length === 0,
			isAllErrored: !!We && Tc.length === St.length,
			isAllPaused: Kn.length !== 0 && Vo.length === Kn.length,
			isUploadInProgress: Kn.length > 0,
			isSomeGhost: St.some(((x) => x.isGhost))
		};
	}
	validateRestrictions(x, Be) {
		try {
			return _y(this, Gy)[Gy](x, Be), { result: !0 };
		} catch (x) {
			return {
				result: !1,
				reason: x.message
			};
		}
	}
	checkIfFileAlreadyExists(x) {
		let { files: Be } = this.getState();
		return !(!Be[x] || Be[x].isGhost);
	}
	addFile(x) {
		_y(this, Zy)[Zy](x);
		let { files: Be } = this.getState(), We = _y(this, Jy)[Jy](Be, x);
		return Be[We.id] && Be[We.id].isGhost && (We = {
			...Be[We.id],
			data: x.data,
			isGhost: !1
		}, this.log(`Replaced the blob in the restored ghost file: ${We.name}, ${We.id}`)), this.setState({ files: {
			...Be,
			[We.id]: We
		} }), this.emit("file-added", We), this.emit("files-added", [We]), this.log(`Added file: ${We.name}, ${We.id}, mime type: ${We.type}`), _y(this, Qy)[Qy](), We.id;
	}
	addFiles(x) {
		_y(this, Zy)[Zy]();
		let Be = { ...this.getState().files }, We = [], St = [];
		for (let Kn = 0; Kn < x.length; Kn++) try {
			let St = _y(this, Jy)[Jy](Be, x[Kn]);
			Be[St.id] && Be[St.id].isGhost && (St = {
				...Be[St.id],
				data: x[Kn].data,
				isGhost: !1
			}, this.log(`Replaced blob in a ghost file: ${St.name}, ${St.id}`)), Be[St.id] = St, We.push(St);
		} catch (x) {
			x.isRestriction || St.push(x);
		}
		if (this.setState({ files: Be }), We.forEach(((x) => {
			this.emit("file-added", x);
		})), this.emit("files-added", We), We.length > 5 ? this.log(`Added batch of ${We.length} files`) : Object.keys(We).forEach(((x) => {
			this.log(`Added file: ${We[x].name}\n id: ${We[x].id}\n type: ${We[x].type}`);
		})), We.length > 0 && _y(this, Qy)[Qy](), St.length > 0) {
			let x = "Multiple errors occurred while adding files:\n";
			if (St.forEach(((Be) => {
				x += `\n * ${Be.message}`;
			})), this.info({
				message: this.i18n("addBulkFilesFailed", { smart_count: St.length }),
				details: x
			}, "error", this.opts.infoTimeout), typeof AggregateError == "function") throw AggregateError(St, x);
			{
				let Be = Error(x);
				throw Be.errors = St, Be;
			}
		}
	}
	removeFiles(x, Be) {
		let { files: We, currentUploads: St } = this.getState(), Kn = { ...We }, _r = { ...St }, Li = Object.create(null);
		function fa(x) {
			return Li[x] === void 0;
		}
		x.forEach(((x) => {
			We[x] && (Li[x] = We[x], delete Kn[x]);
		})), Object.keys(_r).forEach(((x) => {
			let Be = St[x].fileIDs.filter(fa);
			Be.length === 0 ? delete _r[x] : _r[x] = {
				...St[x],
				fileIDs: Be
			};
		}));
		let Vo = {
			currentUploads: _r,
			files: Kn
		};
		Object.keys(Kn).length === 0 && (Vo.allowNewUpload = !0, Vo.error = null, Vo.recoveredState = null), this.setState(Vo), this.calculateTotalProgress();
		let Xo = Object.keys(Li);
		Xo.forEach(((x) => {
			this.emit("file-removed", Li[x], Be);
		})), Xo.length > 5 ? this.log(`Removed ${Xo.length} files`) : this.log(`Removed files: ${Xo.join(", ")}`);
	}
	removeFile(x, Be) {
		Be === void 0 && (Be = null), this.removeFiles([x], Be);
	}
	pauseResume(x) {
		if (!this.getState().capabilities.resumableUploads || this.getFile(x).uploadComplete) return;
		let Be = !this.getFile(x).isPaused;
		return this.setFileState(x, { isPaused: Be }), this.emit("upload-pause", x, Be), Be;
	}
	pauseAll() {
		let x = { ...this.getState().files };
		Object.keys(x).filter(((Be) => !x[Be].progress.uploadComplete && x[Be].progress.uploadStarted)).forEach(((Be) => {
			x[Be] = {
				...x[Be],
				isPaused: !0
			};
		})), this.setState({ files: x }), this.emit("pause-all");
	}
	resumeAll() {
		let x = { ...this.getState().files };
		Object.keys(x).filter(((Be) => !x[Be].progress.uploadComplete && x[Be].progress.uploadStarted)).forEach(((Be) => {
			x[Be] = {
				...x[Be],
				isPaused: !1,
				error: null
			};
		})), this.setState({ files: x }), this.emit("resume-all");
	}
	retryAll() {
		let x = { ...this.getState().files }, Be = Object.keys(x).filter(((Be) => x[Be].error));
		if (Be.forEach(((Be) => {
			x[Be] = {
				...x[Be],
				isPaused: !1,
				error: null
			};
		})), this.setState({
			files: x,
			error: null
		}), this.emit("retry-all", Be), Be.length === 0) return Promise.resolve({
			successful: [],
			failed: []
		});
		let We = _y(this, nm)[nm](Be, { forceAllowNewUpload: !0 });
		return _y(this, im)[im](We);
	}
	cancelAll() {
		this.emit("cancel-all");
		let { files: x } = this.getState(), Be = Object.keys(x);
		Be.length && this.removeFiles(Be, "cancel-all"), this.setState({
			totalProgress: 0,
			error: null,
			recoveredState: null
		});
	}
	retryUpload(x) {
		this.setFileState(x, {
			error: null,
			isPaused: !1
		}), this.emit("upload-retry", x);
		let Be = _y(this, nm)[nm]([x], { forceAllowNewUpload: !0 });
		return _y(this, im)[im](Be);
	}
	reset() {
		this.cancelAll();
	}
	logout() {
		this.iteratePlugins(((x) => {
			x.provider && x.provider.logout && x.provider.logout();
		}));
	}
	calculateProgress(x, Be) {
		if (!this.getFile(x.id)) return void this.log(`Not setting progress for a file that has been removed: ${x.id}`);
		let We = Number.isFinite(Be.bytesTotal) && Be.bytesTotal > 0;
		this.setFileState(x.id, { progress: {
			...this.getFile(x.id).progress,
			bytesUploaded: Be.bytesUploaded,
			bytesTotal: Be.bytesTotal,
			percentage: We ? Math.round(Be.bytesUploaded / Be.bytesTotal * 100) : 0
		} }), this.calculateTotalProgress();
	}
	calculateTotalProgress() {
		let x = this.getFiles().filter(((x) => x.progress.uploadStarted || x.progress.preprocess || x.progress.postprocess));
		if (x.length === 0) return this.emit("progress", 0), void this.setState({ totalProgress: 0 });
		let Be = x.filter(((x) => x.progress.bytesTotal != null)), We = x.filter(((x) => x.progress.bytesTotal == null));
		if (Be.length === 0) {
			let Be = 100 * x.length, St = We.reduce(((x, Be) => x + Be.progress.percentage), 0), Kn = Math.round(St / Be * 100);
			this.setState({ totalProgress: Kn });
			return;
		}
		let St = Be.reduce(((x, Be) => x + Be.progress.bytesTotal), 0), Kn = St / Be.length;
		St += Kn * We.length;
		let _r = 0;
		Be.forEach(((x) => {
			_r += x.progress.bytesUploaded;
		})), We.forEach(((x) => {
			_r += Kn * (x.progress.percentage || 0) / 100;
		}));
		let Li = St === 0 ? 0 : Math.round(_r / St * 100);
		Li > 100 && (Li = 100), this.setState({ totalProgress: Li }), this.emit("progress", Li);
	}
	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(x, Be) {
		if (typeof x != "function") throw TypeError(`Expected a plugin class, but got ${x === null ? "null" : typeof x}. Please verify that the plugin was imported and spelled correctly.`);
		let We = new x(this, Be), St = We.id;
		if (!St) throw Error("Your plugin must have an id");
		if (!We.type) throw Error("Your plugin must have a type");
		let Kn = this.getPlugin(St);
		if (Kn) {
			let x = `Already found a plugin named '${Kn.id}'. Tried to use: '${St}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;
			throw Error(x);
		}
		return x.VERSION && this.log(`Using ${St} v${x.VERSION}`), We.type in _y(this, zy)[zy] ? _y(this, zy)[zy][We.type].push(We) : _y(this, zy)[zy][We.type] = [We], We.install(), this;
	}
	getPlugin(x) {
		for (let Be of Object.values(_y(this, zy)[zy])) {
			let We = Be.find(((Be) => Be.id === x));
			if (We != null) return We;
		}
	}
	[Fy](x) {
		return _y(this, zy)[zy][x];
	}
	iteratePlugins(x) {
		Object.values(_y(this, zy)[zy]).flat(1).forEach(x);
	}
	removePlugin(x) {
		this.log(`Removing plugin ${x.id}`), this.emit("plugin-remove", x), x.uninstall && x.uninstall();
		let Be = _y(this, zy)[zy][x.type], We = Be.findIndex(((Be) => Be.id === x.id));
		We !== -1 && Be.splice(We, 1);
		let St = { plugins: {
			...this.getState().plugins,
			[x.id]: void 0
		} };
		this.setState(St);
	}
	close() {
		this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.reset(), _y(this, $y)[$y](), this.iteratePlugins(((x) => {
			this.removePlugin(x);
		})), typeof window < "u" && window.removeEventListener && (window.removeEventListener("online", _y(this, tm)[tm]), window.removeEventListener("offline", _y(this, tm)[tm]));
	}
	hideInfo() {
		let { info: x } = this.getState();
		this.setState({ info: x.slice(1) }), this.emit("info-hidden");
	}
	info(x, Be, We) {
		Be === void 0 && (Be = "info"), We === void 0 && (We = 3e3);
		let St = typeof x == "object";
		this.setState({ info: [...this.getState().info, {
			type: Be,
			message: St ? x.message : x,
			details: St ? x.details : null
		}] }), setTimeout((() => this.hideInfo()), We), this.emit("info-visible");
	}
	log(x, Be) {
		let { logger: We } = this.opts;
		switch (Be) {
			case "error":
				We.error(x);
				break;
			case "warning":
				We.warn(x);
				break;
			default: We.debug(x);
		}
	}
	restore(x) {
		return this.log(`Core: attempting to restore upload "${x}"`), this.getState().currentUploads[x] ? _y(this, im)[im](x) : (_y(this, om)[om](x), Promise.reject(/* @__PURE__ */ Error("Nonexistent upload")));
	}
	[Ty]() {
		return _y(this, nm)[nm](...arguments);
	}
	addResultData(x, Be) {
		if (!_y(this, rm)[rm](x)) return void this.log(`Not setting result for an upload that has been removed: ${x}`);
		let { currentUploads: We } = this.getState(), St = {
			...We[x],
			result: {
				...We[x].result,
				...Be
			}
		};
		this.setState({ currentUploads: {
			...We,
			[x]: St
		} });
	}
	upload() {
		var x;
		(x = _y(this, zy)[zy].uploader) != null && x.length || this.log("No uploader type plugins are used", "warning");
		let { files: Be } = this.getState(), We = this.opts.onBeforeUpload(Be);
		return !1 === We ? Promise.reject(/* @__PURE__ */ Error("Not starting the upload because onBeforeUpload returned false")) : (We && typeof We == "object" && (Be = We, this.setState({ files: Be })), Promise.resolve().then((() => {
			_y(this, qy)[qy](Be), _y(this, Yy)[Yy](Be);
		})).catch(((x) => {
			_y(this, Xy)[Xy](x);
		})).then((() => {
			let { currentUploads: x } = this.getState(), We = Object.values(x).flatMap(((x) => x.fileIDs)), St = [];
			Object.keys(Be).forEach(((x) => {
				let Be = this.getFile(x);
				Be.progress.uploadStarted || We.indexOf(x) !== -1 || St.push(Be.id);
			}));
			let Kn = _y(this, nm)[nm](St);
			return _y(this, im)[im](Kn);
		})).catch(((x) => {
			_y(this, Xy)[Xy](x, { showInformer: !1 });
		})));
	}
};
function um(x, Be) {
	Be === void 0 && (Be = this.getFiles());
	let { maxFileSize: We, minFileSize: St, maxTotalFileSize: Kn, maxNumberOfFiles: _r, allowedFileTypes: Li } = this.opts.restrictions;
	if (_r && Be.length + 1 > _r) throw new Ry(`${this.i18n("youCanOnlyUploadX", { smart_count: _r })}`);
	if (Li && !Li.some(((Be) => Be.indexOf("/") > -1 ? !!x.type && gy(x.type.replace(/;.*?$/, ""), Be) : !(Be[0] !== "." || !x.extension) && x.extension.toLowerCase() === Be.substr(1).toLowerCase()))) {
		let x = Li.join(", ");
		throw new Ry(this.i18n("youCanOnlyUploadFileTypes", { types: x }));
	}
	if (Kn && x.size != null) {
		let We = 0;
		if (We += x.size, Be.forEach(((x) => {
			We += x.size;
		})), We > Kn) throw new Ry(this.i18n("exceedsSize", {
			size: dy(Kn),
			file: x.name
		}));
	}
	if (We && x.size != null && x.size > We) throw new Ry(this.i18n("exceedsSize", {
		size: dy(We),
		file: x.name
	}));
	if (St && x.size != null && x.size < St) throw new Ry(this.i18n("inferiorSize", { size: dy(St) }));
}
function sm(x) {
	let { minNumberOfFiles: Be } = this.opts.restrictions;
	if (Object.keys(x).length < Be) throw new Ry(`${this.i18n("youHaveToAtLeastSelectX", { smart_count: Be })}`);
}
function lm(x) {
	let { requiredMetaFields: Be } = this.opts.restrictions, { hasOwnProperty: We } = Object.prototype, St = [], Kn = [];
	for (let _r = 0; _r < Be.length; _r++) if (!We.call(x.meta, Be[_r]) || x.meta[Be[_r]] === "") {
		let We = new Ry(`${this.i18n("missingRequiredMetaFieldOnFile", { fileName: x.name })}`);
		St.push(We), Kn.push(Be[_r]), _y(this, Xy)[Xy](We, {
			file: x,
			showInformer: !1,
			throwErr: !1
		});
	}
	return this.setFileState(x.id, { missingRequiredMetaFields: Kn }), St;
}
function cm(x) {
	let Be = Object.keys(x).flatMap(((x) => {
		let Be = this.getFile(x);
		return _y(this, Ky)[Ky](Be);
	}));
	if (Be.length) throw new My(Be, `${this.i18n("missingRequiredMetaField")}`);
}
function fm(x, Be) {
	let { showInformer: We = !0, file: St = null, throwErr: Kn = !0 } = Be === void 0 ? {} : Be, _r = typeof x == "object" ? x.message : x, Li = typeof x == "object" && x.details ? x.details : "", fa = _r;
	if (Li && (fa += ` ${Li}`), x.isRestriction ? (this.log(fa), this.emit("restriction-failed", St, x)) : this.log(fa, "error"), We && this.info({
		message: _r,
		details: Li
	}, "error", this.opts.infoTimeout), Kn) throw typeof x == "object" ? x : Error(x);
}
function dm(x) {
	let { allowNewUpload: Be } = this.getState();
	!1 === Be && _y(this, Xy)[Xy](new Ry(this.i18n("noMoreFilesAllowed")), { file: x });
}
function pm(x, Be) {
	let We = function(x) {
		if (x.type) return x.type;
		let Be = x.name ? Ey(x.name).extension?.toLowerCase() : null;
		return Be && Be in Dy ? Dy[Be] : "application/octet-stream";
	}(Be), St = function(x, Be) {
		return Be.name ? Be.name : x.split("/")[0] === "image" ? `${x.split("/")[0]}.${x.split("/")[1]}` : "noname";
	}(We, Be), Kn = Ey(St).extension, _r = !!Be.isRemote, Li = function(x) {
		let Be = "uppy";
		return typeof x.name == "string" && (Be += `-${Sy(x.name.toLowerCase())}`), x.type !== void 0 && (Be += `-${x.type}`), x.meta && typeof x.meta.relativePath == "string" && (Be += `-${Sy(x.meta.relativePath.toLowerCase())}`), x.data.size !== void 0 && (Be += `-${x.data.size}`), x.data.lastModified !== void 0 && (Be += `-${x.data.lastModified}`), Be;
	}({
		...Be,
		type: We
	});
	if (this.checkIfFileAlreadyExists(Li)) {
		let x = new Ry(this.i18n("noDuplicates", { fileName: St }));
		_y(this, Xy)[Xy](x, { file: Be });
	}
	let fa = Be.meta || {};
	fa.name = St, fa.type = We;
	let Vo = Number.isFinite(Be.data.size) ? Be.data.size : null, Xo = {
		source: Be.source || "",
		id: Li,
		name: St,
		extension: Kn || "",
		meta: {
			...this.getState().meta,
			...fa
		},
		type: We,
		data: Be.data,
		progress: {
			percentage: 0,
			bytesUploaded: 0,
			bytesTotal: Vo,
			uploadComplete: !1,
			uploadStarted: null
		},
		size: Vo,
		isRemote: _r,
		remote: Be.remote || "",
		preview: Be.preview
	}, Tc = this.opts.onBeforeFileAdded(Xo, x);
	!1 === Tc ? _y(this, Xy)[Xy](new Ry("Cannot add the file because onBeforeFileAdded returned false."), {
		showInformer: !1,
		fileDescriptor: Be
	}) : typeof Tc == "object" && Tc && (Xo = Tc);
	try {
		let Be = Object.keys(x).map(((Be) => x[Be]));
		_y(this, Gy)[Gy](Xo, Be);
	} catch (x) {
		_y(this, Xy)[Xy](x, { file: Xo });
	}
	return Xo;
}
function hm() {
	this.opts.autoProceed && !this.scheduledAutoProceed && (this.scheduledAutoProceed = setTimeout((() => {
		this.scheduledAutoProceed = null, this.upload().catch(((x) => {
			x.isRestriction || this.log(x.stack || x.message || x);
		}));
	}), 4));
}
function gm() {
	let x = (x, Be, We) => {
		let St = x.message || "Unknown error";
		x.details && (St += ` ${x.details}`), this.setState({ error: St }), Be != null && Be.id in this.getState().files && this.setFileState(Be.id, {
			error: St,
			response: We
		});
	};
	this.on("error", x), this.on("upload-error", ((Be, We, St) => {
		if (x(We, Be, St), typeof We == "object" && We.message) {
			let x = Error(We.message);
			x.details = We.message, We.details && (x.details += ` ${We.details}`), x.message = this.i18n("failedToUpload", { file: Be.name }), _y(this, Xy)[Xy](x, { throwErr: !1 });
		} else _y(this, Xy)[Xy](We, { throwErr: !1 });
	})), this.on("upload", (() => {
		this.setState({ error: null });
	})), this.on("upload-started", ((x) => {
		this.getFile(x.id) ? this.setFileState(x.id, { progress: {
			uploadStarted: Date.now(),
			uploadComplete: !1,
			percentage: 0,
			bytesUploaded: 0,
			bytesTotal: x.size
		} }) : this.log(`Not setting progress for a file that has been removed: ${x.id}`);
	})), this.on("upload-progress", this.calculateProgress), this.on("upload-success", ((x, Be) => {
		if (!this.getFile(x.id)) return void this.log(`Not setting progress for a file that has been removed: ${x.id}`);
		let We = this.getFile(x.id).progress;
		this.setFileState(x.id, {
			progress: {
				...We,
				postprocess: _y(this, Wy)[Wy].size > 0 ? { mode: "indeterminate" } : null,
				uploadComplete: !0,
				percentage: 100,
				bytesUploaded: We.bytesTotal
			},
			response: Be,
			uploadURL: Be.uploadURL,
			isPaused: !1
		}), x.size ?? this.setFileState(x.id, { size: Be.bytesUploaded || We.bytesTotal }), this.calculateTotalProgress();
	})), this.on("preprocess-progress", ((x, Be) => {
		this.getFile(x.id) ? this.setFileState(x.id, { progress: {
			...this.getFile(x.id).progress,
			preprocess: Be
		} }) : this.log(`Not setting progress for a file that has been removed: ${x.id}`);
	})), this.on("preprocess-complete", ((x) => {
		if (!this.getFile(x.id)) return void this.log(`Not setting progress for a file that has been removed: ${x.id}`);
		let Be = { ...this.getState().files };
		Be[x.id] = {
			...Be[x.id],
			progress: { ...Be[x.id].progress }
		}, delete Be[x.id].progress.preprocess, this.setState({ files: Be });
	})), this.on("postprocess-progress", ((x, Be) => {
		this.getFile(x.id) ? this.setFileState(x.id, { progress: {
			...this.getState().files[x.id].progress,
			postprocess: Be
		} }) : this.log(`Not setting progress for a file that has been removed: ${x.id}`);
	})), this.on("postprocess-complete", ((x) => {
		if (!this.getFile(x.id)) return void this.log(`Not setting progress for a file that has been removed: ${x.id}`);
		let Be = { ...this.getState().files };
		Be[x.id] = {
			...Be[x.id],
			progress: { ...Be[x.id].progress }
		}, delete Be[x.id].progress.postprocess, this.setState({ files: Be });
	})), this.on("restored", (() => {
		this.calculateTotalProgress();
	})), this.on("dashboard:file-edit-complete", ((x) => {
		x && _y(this, Ky)[Ky](x);
	})), typeof window < "u" && window.addEventListener && (window.addEventListener("online", _y(this, tm)[tm]), window.addEventListener("offline", _y(this, tm)[tm]), setTimeout(_y(this, tm)[tm], 3e3));
}
function vm(x, Be) {
	Be === void 0 && (Be = {});
	let { forceAllowNewUpload: We = !1 } = Be, { allowNewUpload: St, currentUploads: Kn } = this.getState();
	if (!St && !We) throw Error("Cannot create a new upload: already uploading.");
	let _r = Ny();
	return this.emit("upload", {
		id: _r,
		fileIDs: x
	}), this.setState({
		allowNewUpload: !1 !== this.opts.allowMultipleUploadBatches && !1 !== this.opts.allowMultipleUploads,
		currentUploads: {
			...Kn,
			[_r]: {
				fileIDs: x,
				step: 0,
				result: {}
			}
		}
	}), _r;
}
function ym(x) {
	let { currentUploads: Be } = this.getState();
	return Be[x];
}
function mm(x) {
	let Be = { ...this.getState().currentUploads };
	delete Be[x], this.setState({ currentUploads: Be });
}
async function bm(x) {
	let { currentUploads: Be } = this.getState(), We = Be[x], St = We.step || 0, Kn = [
		..._y(this, Vy)[Vy],
		..._y(this, Uy)[Uy],
		..._y(this, Wy)[Wy]
	];
	try {
		for (let _r = St; _r < Kn.length && We; _r++) {
			let St = Kn[_r], Li = {
				...We,
				step: _r
			};
			this.setState({ currentUploads: {
				...Be,
				[x]: Li
			} }), await St(Li.fileIDs, x), Be = this.getState().currentUploads, We = Be[x];
		}
	} catch (Be) {
		throw this.emit("error", Be), _y(this, om)[om](x), Be;
	}
	if (We) {
		We.fileIDs.forEach(((x) => {
			let Be = this.getFile(x);
			Be && Be.progress.postprocess && this.emit("postprocess-complete", Be);
		}));
		let St = We.fileIDs.map(((x) => this.getFile(x))), Kn = St.filter(((x) => !x.error)), _r = St.filter(((x) => x.error));
		await this.addResultData(x, {
			successful: Kn,
			failed: _r,
			uploadID: x
		}), Be = this.getState().currentUploads, We = Be[x];
	}
	let _r;
	return We && (_r = We.result, this.emit("complete", _r), _y(this, om)[om](x)), _r ?? this.log(`Not setting result for an upload that has been removed: ${x}`), _r;
}
am.VERSION = "2.1.3";
var wm = am, Em = n((function(x, Be) {
	var We, St, Kn, _r, Li, fa, Vo, Xo, Tc = {}, Tl = [], Al = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
	function Uu(x, Be) {
		for (var We in Be) x[We] = Be[We];
		return x;
	}
	function Ff(x) {
		var Be = x.parentNode;
		Be && Be.removeChild(x);
	}
	function Lm(x, Be, St) {
		var Kn, _r, Li, fa = {};
		for (Li in Be) Li == "key" ? Kn = Be[Li] : Li == "ref" ? _r = Be[Li] : fa[Li] = Be[Li];
		if (arguments.length > 2 && (fa.children = arguments.length > 3 ? We.call(arguments, 2) : St), typeof x == "function" && x.defaultProps != null) for (Li in x.defaultProps) fa[Li] === void 0 && (fa[Li] = x.defaultProps[Li]);
		return Bm(x, fa, Kn, _r, null);
	}
	function Bm(x, Be, We, _r, Li) {
		var fa = {
			type: x,
			props: Be,
			key: We,
			ref: _r,
			__k: null,
			__: null,
			__b: 0,
			__e: null,
			__d: void 0,
			__c: null,
			__h: null,
			constructor: void 0,
			__v: Li ?? ++Kn
		};
		return Li == null && St.vnode != null && St.vnode(fa), fa;
	}
	function x_(x) {
		return x.children;
	}
	function uy(x, Be) {
		this.props = x, this.context = Be;
	}
	function dx(x, Be) {
		if (Be == null) return x.__ ? dx(x.__, x.__.__k.indexOf(x) + 1) : null;
		for (var We; Be < x.__k.length; Be++) if ((We = x.__k[Be]) != null && We.__e != null) return We.__e;
		return typeof x.type == "function" ? dx(x) : null;
	}
	function kx(x) {
		var Be, We;
		if ((x = x.__) != null && x.__c != null) {
			for (x.__e = x.__c.base = null, Be = 0; Be < x.__k.length; Be++) if ((We = x.__k[Be]) != null && We.__e != null) {
				x.__e = x.__c.base = We.__e;
				break;
			}
			return kx(x);
		}
	}
	function eC(x) {
		(!x.__d && (x.__d = !0) && Li.push(x) && !uC.__r++ || Vo !== St.debounceRendering) && ((Vo = St.debounceRendering) || fa)(uC);
	}
	function uC() {
		for (var x; uC.__r = Li.length;) x = Li.sort((function(x, Be) {
			return x.__v.__b - Be.__v.__b;
		})), Li = [], x.some((function(x) {
			var Be, We, St, Kn, _r, Li;
			x.__d && (_r = (Kn = (Be = x).__v).__e, (Li = Be.__P) && (We = [], (St = Uu({}, Kn)).__v = Kn.__v + 1, $P(Li, Kn, St, Be.__n, Li.ownerSVGElement !== void 0, Kn.__h == null ? null : [_r], We, _r ?? dx(Kn), Kn.__h), CF(We, Kn), Kn.__e != _r && kx(Kn)));
		}));
	}
	function _T(x, Be, We, St, Kn, _r, Li, fa, Vo, Xo) {
		var Al, Uu, Ff, Lm, uy, kx, eC, uC = St && St.__k || Tl, _T = uC.length;
		for (We.__k = [], Al = 0; Al < Be.length; Al++) if ((Lm = We.__k[Al] = (Lm = Be[Al]) == null || typeof Lm == "boolean" ? null : typeof Lm == "string" || typeof Lm == "number" || typeof Lm == "bigint" ? Bm(null, Lm, null, null, Lm) : Array.isArray(Lm) ? Bm(x_, { children: Lm }, null, null, null) : Lm.__b > 0 ? Bm(Lm.type, Lm.props, Lm.key, null, Lm.__v) : Lm) != null) {
			if (Lm.__ = We, Lm.__b = We.__b + 1, (Ff = uC[Al]) === null || Ff && Lm.key == Ff.key && Lm.type === Ff.type) uC[Al] = void 0;
			else for (Uu = 0; Uu < _T; Uu++) {
				if ((Ff = uC[Uu]) && Lm.key == Ff.key && Lm.type === Ff.type) {
					uC[Uu] = void 0;
					break;
				}
				Ff = null;
			}
			$P(x, Lm, Ff ||= Tc, Kn, _r, Li, fa, Vo, Xo), uy = Lm.__e, (Uu = Lm.ref) && Ff.ref != Uu && (eC ||= [], Ff.ref && eC.push(Ff.ref, null, Lm), eC.push(Uu, Lm.__c || uy, Lm)), uy == null ? Vo && Ff.__e == Vo && Vo.parentNode != x && (Vo = dx(Ff)) : (kx ??= uy, typeof Lm.type == "function" && Lm.__k === Ff.__k ? Lm.__d = Vo = ID(Lm, Vo, x) : Vo = ok(x, Lm, Ff, uC, uy, Vo), typeof We.type == "function" && (We.__d = Vo));
		}
		for (We.__e = kx, Al = _T; Al--;) uC[Al] != null && (typeof We.type == "function" && uC[Al].__e != null && uC[Al].__e == We.__d && (We.__d = dx(St, Al + 1)), tH(uC[Al], uC[Al]));
		if (eC) for (Al = 0; Al < eC.length; Al++) nR(eC[Al], eC[++Al], eC[++Al]);
	}
	function ID(x, Be, We) {
		for (var St, Kn = x.__k, _r = 0; Kn && _r < Kn.length; _r++) (St = Kn[_r]) && (St.__ = x, Be = typeof St.type == "function" ? ID(St, Be, We) : ok(We, St, St, Kn, St.__e, Be));
		return Be;
	}
	function ok(x, Be, We, St, Kn, _r) {
		var Li, fa, Vo;
		if (Be.__d !== void 0) Li = Be.__d, Be.__d = void 0;
		else if (We == null || Kn != _r || Kn.parentNode == null) e: if (_r == null || _r.parentNode !== x) x.appendChild(Kn), Li = null;
		else {
			for (fa = _r, Vo = 0; (fa = fa.nextSibling) && Vo < St.length; Vo += 2) if (fa == Kn) break e;
			x.insertBefore(Kn, _r), Li = _r;
		}
		return Li === void 0 ? Kn.nextSibling : Li;
	}
	function ij(x, Be, We) {
		Be[0] === "-" ? x.setProperty(Be, We) : x[Be] = We == null ? "" : typeof We != "number" || Al.test(Be) ? We : We + "px";
	}
	function Dj(x, Be, We, St, Kn) {
		var _r;
		e: if (Be === "style") if (typeof We == "string") x.style.cssText = We;
		else {
			if (typeof St == "string" && (x.style.cssText = St = ""), St) for (Be in St) We && Be in We || ij(x.style, Be, "");
			if (We) for (Be in We) St && We[Be] === St[Be] || ij(x.style, Be, We[Be]);
		}
		else if (Be[0] === "o" && Be[1] === "n") _r = Be !== (Be = Be.replace(/Capture$/, "")), Be = Be.toLowerCase() in x ? Be.toLowerCase().slice(2) : Be.slice(2), x.l ||= {}, x.l[Be + _r] = We, We ? St || x.addEventListener(Be, _r ? zP : LP, _r) : x.removeEventListener(Be, _r ? zP : LP, _r);
		else if (Be !== "dangerouslySetInnerHTML") {
			if (Kn) Be = Be.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");
			else if (Be !== "href" && Be !== "list" && Be !== "form" && Be !== "tabIndex" && Be !== "download" && Be in x) try {
				x[Be] = We ?? "";
				break e;
			} catch {}
			typeof We == "function" || (We != null && (!1 !== We || Be[0] === "a" && Be[1] === "r") ? x.setAttribute(Be, We) : x.removeAttribute(Be));
		}
	}
	function LP(x) {
		this.l[x.type + !1](St.event ? St.event(x) : x);
	}
	function zP(x) {
		this.l[x.type + !0](St.event ? St.event(x) : x);
	}
	function $P(x, Be, We, Kn, _r, Li, fa, Vo, Xo) {
		var Tc, Tl, Al, Ff, Lm, Bm, dx, kx, eC, uC, ID, ok = Be.type;
		if (Be.constructor !== void 0) return null;
		We.__h != null && (Xo = We.__h, Vo = Be.__e = We.__e, Be.__h = null, Li = [Vo]), (Tc = St.__b) && Tc(Be);
		try {
			e: if (typeof ok == "function") {
				if (kx = Be.props, eC = (Tc = ok.contextType) && Kn[Tc.__c], uC = Tc ? eC ? eC.props.value : Tc.__ : Kn, We.__c ? dx = (Tl = Be.__c = We.__c).__ = Tl.__E : ("prototype" in ok && ok.prototype.render ? Be.__c = Tl = new ok(kx, uC) : (Be.__c = Tl = new uy(kx, uC), Tl.constructor = ok, Tl.render = MH), eC && eC.sub(Tl), Tl.props = kx, Tl.state ||= {}, Tl.context = uC, Tl.__n = Kn, Al = Tl.__d = !0, Tl.__h = []), Tl.__s ??= Tl.state, ok.getDerivedStateFromProps != null && (Tl.__s == Tl.state && (Tl.__s = Uu({}, Tl.__s)), Uu(Tl.__s, ok.getDerivedStateFromProps(kx, Tl.__s))), Ff = Tl.props, Lm = Tl.state, Al) ok.getDerivedStateFromProps == null && Tl.componentWillMount != null && Tl.componentWillMount(), Tl.componentDidMount != null && Tl.__h.push(Tl.componentDidMount);
				else {
					if (ok.getDerivedStateFromProps == null && kx !== Ff && Tl.componentWillReceiveProps != null && Tl.componentWillReceiveProps(kx, uC), !Tl.__e && Tl.shouldComponentUpdate != null && !1 === Tl.shouldComponentUpdate(kx, Tl.__s, uC) || Be.__v === We.__v) {
						Tl.props = kx, Tl.state = Tl.__s, Be.__v !== We.__v && (Tl.__d = !1), Tl.__v = Be, Be.__e = We.__e, Be.__k = We.__k, Be.__k.forEach((function(x) {
							x && (x.__ = Be);
						})), Tl.__h.length && fa.push(Tl);
						break e;
					}
					Tl.componentWillUpdate != null && Tl.componentWillUpdate(kx, Tl.__s, uC), Tl.componentDidUpdate != null && Tl.__h.push((function() {
						Tl.componentDidUpdate(Ff, Lm, Bm);
					}));
				}
				Tl.context = uC, Tl.props = kx, Tl.state = Tl.__s, (Tc = St.__r) && Tc(Be), Tl.__d = !1, Tl.__v = Be, Tl.__P = x, Tc = Tl.render(Tl.props, Tl.state, Tl.context), Tl.state = Tl.__s, Tl.getChildContext != null && (Kn = Uu(Uu({}, Kn), Tl.getChildContext())), Al || Tl.getSnapshotBeforeUpdate == null || (Bm = Tl.getSnapshotBeforeUpdate(Ff, Lm)), ID = Tc != null && Tc.type === x_ && Tc.key == null ? Tc.props.children : Tc, _T(x, Array.isArray(ID) ? ID : [ID], Be, We, Kn, _r, Li, fa, Vo, Xo), Tl.base = Be.__e, Be.__h = null, Tl.__h.length && fa.push(Tl), dx && (Tl.__E = Tl.__ = null), Tl.__e = !1;
			} else Li == null && Be.__v === We.__v ? (Be.__k = We.__k, Be.__e = We.__e) : Be.__e = VF(We.__e, Be, We, Kn, _r, Li, fa, Xo);
			(Tc = St.diffed) && Tc(Be);
		} catch (x) {
			Be.__v = null, (Xo || Li != null) && (Be.__e = Vo, Be.__h = !!Xo, Li[Li.indexOf(Vo)] = null), St.__e(x, Be, We);
		}
	}
	function CF(x, Be) {
		St.__c && St.__c(Be, x), x.some((function(Be) {
			try {
				x = Be.__h, Be.__h = [], x.some((function(x) {
					x.call(Be);
				}));
			} catch (x) {
				St.__e(x, Be.__v);
			}
		}));
	}
	function VF(x, Be, St, Kn, _r, Li, fa, Vo) {
		var Xo, Tl, Al, Uu = St.props, Lm = Be.props, Bm = Be.type, x_ = 0;
		if (Bm === "svg" && (_r = !0), Li != null) {
			for (; x_ < Li.length; x_++) if ((Xo = Li[x_]) && "setAttribute" in Xo == !!Bm && (Bm ? Xo.localName === Bm : Xo.nodeType === 3)) {
				x = Xo, Li[x_] = null;
				break;
			}
		}
		if (x == null) {
			if (Bm === null) return document.createTextNode(Lm);
			x = _r ? document.createElementNS("http://www.w3.org/2000/svg", Bm) : document.createElement(Bm, Lm.is && Lm), Li = null, Vo = !1;
		}
		if (Bm === null) Uu === Lm || Vo && x.data === Lm || (x.data = Lm);
		else {
			if (Li &&= We.call(x.childNodes), Tl = (Uu = St.props || Tc).dangerouslySetInnerHTML, Al = Lm.dangerouslySetInnerHTML, !Vo) {
				if (Li != null) for (Uu = {}, x_ = 0; x_ < x.attributes.length; x_++) Uu[x.attributes[x_].name] = x.attributes[x_].value;
				(Al || Tl) && (Al && (Tl && Al.__html == Tl.__html || Al.__html === x.innerHTML) || (x.innerHTML = Al && Al.__html || ""));
			}
			if (function(x, Be, We, St, Kn) {
				for (var _r in We) _r === "children" || _r === "key" || _r in Be || Dj(x, _r, null, We[_r], St);
				for (_r in Be) Kn && typeof Be[_r] != "function" || _r === "children" || _r === "key" || _r === "value" || _r === "checked" || We[_r] === Be[_r] || Dj(x, _r, Be[_r], We[_r], St);
			}(x, Lm, Uu, _r, Vo), Al) Be.__k = [];
			else if (x_ = Be.props.children, _T(x, Array.isArray(x_) ? x_ : [x_], Be, St, Kn, _r && Bm !== "foreignObject", Li, fa, Li ? Li[0] : St.__k && dx(St, 0), Vo), Li != null) for (x_ = Li.length; x_--;) Li[x_] != null && Ff(Li[x_]);
			Vo || ("value" in Lm && (x_ = Lm.value) !== void 0 && (x_ !== Uu.value || x_ !== x.value || Bm === "progress" && !x_) && Dj(x, "value", x_, Uu.value, !1), "checked" in Lm && (x_ = Lm.checked) !== void 0 && x_ !== x.checked && Dj(x, "checked", x_, Uu.checked, !1));
		}
		return x;
	}
	function nR(x, Be, We) {
		try {
			typeof x == "function" ? x(Be) : x.current = Be;
		} catch (x) {
			St.__e(x, We);
		}
	}
	function tH(x, Be, We) {
		var Kn, _r;
		if (St.unmount && St.unmount(x), (Kn = x.ref) && (Kn.current && Kn.current !== x.__e || nR(Kn, null, Be)), (Kn = x.__c) != null) {
			if (Kn.componentWillUnmount) try {
				Kn.componentWillUnmount();
			} catch (x) {
				St.__e(x, Be);
			}
			Kn.base = Kn.__P = null;
		}
		if (Kn = x.__k) for (_r = 0; _r < Kn.length; _r++) Kn[_r] && tH(Kn[_r], Be, typeof x.type != "function");
		We || x.__e == null || Ff(x.__e), x.__e = x.__d = void 0;
	}
	function MH(x, Be, We) {
		return this.constructor(x, We);
	}
	function vG(x, Be, Kn) {
		var _r, Li, fa;
		St.__ && St.__(x, Be), Li = (_r = typeof Kn == "function") ? null : Kn && Kn.__k || Be.__k, fa = [], $P(Be, x = (!_r && Kn || Be).__k = Lm(x_, null, [x]), Li || Tc, Tc, Be.ownerSVGElement !== void 0, !_r && Kn ? [Kn] : Li ? null : Be.firstChild ? We.call(Be.childNodes) : null, fa, !_r && Kn ? Kn : Li ? Li.__e : Be.firstChild, _r), CF(fa, x);
	}
	We = Tl.slice, St = { __e: function(x, Be) {
		for (var We, St, Kn; Be = Be.__;) if ((We = Be.__c) && !We.__) try {
			if ((St = We.constructor) && St.getDerivedStateFromError != null && (We.setState(St.getDerivedStateFromError(x)), Kn = We.__d), We.componentDidCatch != null && (We.componentDidCatch(x), Kn = We.__d), Kn) return We.__E = We;
		} catch (Be) {
			x = Be;
		}
		throw x;
	} }, Kn = 0, _r = function(x) {
		return x != null && x.constructor === void 0;
	}, uy.prototype.setState = function(x, Be) {
		var We = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Uu({}, this.state);
		typeof x == "function" && (x = x(Uu({}, We), this.props)), x && Uu(We, x), x != null && this.__v && (Be && this.__h.push(Be), eC(this));
	}, uy.prototype.forceUpdate = function(x) {
		this.__v && (this.__e = !0, x && this.__h.push(x), eC(this));
	}, uy.prototype.render = x_, Li = [], fa = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, uC.__r = 0, Xo = 0, Be.Component = uy, Be.Fragment = x_, Be.cloneElement = function(x, Be, St) {
		var Kn, _r, Li, fa = Uu({}, x.props);
		for (Li in Be) Li == "key" ? Kn = Be[Li] : Li == "ref" ? _r = Be[Li] : fa[Li] = Be[Li];
		return arguments.length > 2 && (fa.children = arguments.length > 3 ? We.call(arguments, 2) : St), Bm(x.type, fa, Kn || x.key, _r || x.ref, null);
	}, Be.createContext = function(x, Be) {
		var We = {
			__c: Be = "__cC" + Xo++,
			__: x,
			Consumer: function(x, Be) {
				return x.children(Be);
			},
			Provider: function(x) {
				var We, St;
				return this.getChildContext || (We = [], (St = {})[Be] = this, this.getChildContext = function() {
					return St;
				}, this.shouldComponentUpdate = function(x) {
					this.props.value !== x.value && We.some(eC);
				}, this.sub = function(x) {
					We.push(x);
					var Be = x.componentWillUnmount;
					x.componentWillUnmount = function() {
						We.splice(We.indexOf(x), 1), Be && Be.call(x);
					};
				}), x.children;
			}
		};
		return We.Provider.__ = We.Consumer.contextType = We;
	}, Be.createElement = Lm, Be.createRef = function() {
		return { current: null };
	}, Be.h = Lm, Be.hydrate = function x(Be, We) {
		vG(Be, We, x);
	}, Be.isValidElement = _r, Be.options = St, Be.render = vG, Be.toChildArray = function x(Be, We) {
		return We ||= [], Be == null || typeof Be == "boolean" || (Array.isArray(Be) ? Be.some((function(Be) {
			x(Be, We);
		})) : We.push(Be)), We;
	};
})), Dm = function(x, Be) {
	return Be === void 0 && (Be = document), typeof x == "string" ? Be.querySelector(x) : (We = x)?.nodeType === Node.ELEMENT_NODE ? x : null;
	var We;
}, Sm = class {
	constructor(x, Be) {
		Be === void 0 && (Be = {}), this.uppy = x, this.opts = Be;
	}
	getPluginState() {
		let { plugins: x } = this.uppy.getState();
		return x[this.id] || {};
	}
	setPluginState(x) {
		let { plugins: Be } = this.uppy.getState();
		this.uppy.setState({ plugins: {
			...Be,
			[this.id]: {
				...Be[this.id],
				...x
			}
		} });
	}
	setOptions(x) {
		this.opts = {
			...this.opts,
			...x
		}, this.setPluginState(), this.i18nInit();
	}
	i18nInit() {
		let x = new oy([
			this.defaultLocale,
			this.uppy.locale,
			this.opts.locale
		]);
		this.i18n = x.translate.bind(x), this.i18nArray = x.translateArray.bind(x), 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 xm(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var Cm = 0;
function Am(x) {
	return "__private_" + Cm++ + "_" + x;
}
var { render: Om } = Em, km = Am("updateUI"), Fm = class x extends Sm {
	constructor() {
		super(...arguments), Object.defineProperty(this, km, {
			writable: !0,
			value: void 0
		});
	}
	mount(Be, We) {
		let St = We.id, Kn = Dm(Be);
		if (Kn) {
			this.isTargetDOMEl = !0;
			let x = document.createDocumentFragment();
			return xm(this, km)[km] = function(x) {
				let Be = null, We = null;
				return function() {
					return We = [...arguments], Be ||= Promise.resolve().then((() => (Be = null, x(...We)))), Be;
				};
			}(((Be) => {
				this.uppy.getPlugin(this.id) && (Om(this.render(Be), x), this.afterUpdate());
			})), this.uppy.log(`Installing ${St} to a DOM element '${Be}'`), this.opts.replaceTargetContent && (Kn.innerHTML = ""), Om(this.render(this.uppy.getState()), x), this.el = x.firstElementChild, Kn.appendChild(x), this.onMount(), this.el;
		}
		let _r;
		if (typeof Be == "object" && Be instanceof x) _r = Be;
		else if (typeof Be == "function") {
			let x = Be;
			this.uppy.iteratePlugins(((Be) => {
				if (Be instanceof x) return _r = Be, !1;
			}));
		}
		if (_r) return this.uppy.log(`Installing ${St} to ${_r.id}`), this.parent = _r, this.el = _r.addTarget(We), this.onMount(), this.el;
		this.uppy.log(`Not installing ${St}`);
		let Li = `Invalid target option given to ${St}.`;
		throw Li += typeof Be == "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(Li);
	}
	update(x) {
		var Be, We;
		this.el != null && ((Be = (We = xm(this, km))[km]) == null || Be.call(We, x));
	}
	unmount() {
		var x;
		this.isTargetDOMEl && ((x = this.el) == null || x.remove()), this.onUnmount();
	}
	onMount() {}
	onUnmount() {}
}, { debugLogger: Tm } = Oy, _m = wm, Pm = wm, jm = Fm, Nm = Sm, Im = Tm;
_m.Uppy = Pm, _m.UIPlugin = jm, _m.BasePlugin = Nm, _m.debugLogger = Im;
var Rm = class extends Error {
	constructor(x, Be) {
		Be === void 0 && (Be = null), super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."), this.cause = x, this.isNetworkError = !0, this.request = Be;
	}
}, Mm = function() {
	return fetch(...arguments).catch(((x) => {
		throw x.name === "AbortError" ? x : new Rm(x);
	}));
}, zm = class extends Error {
	constructor() {
		super("Authorization required"), this.name = "AuthError", this.isAuthError = !0;
	}
}, $m, Hm, Vm, Um, Wm, Gm = zm;
function qm(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var Km = 0;
function Ym(x) {
	return "__private_" + Km++ + "_" + x;
}
async function Xm(x) {
	if (x.status === 401) throw new Gm();
	let Be = x.json();
	if (x.status < 200 || x.status > 300) {
		let We = `Failed request with status: ${x.status}. ${x.statusText}`;
		try {
			let x = await Be;
			We = x.message ? `${We} message: ${x.message}` : We, We = x.requestId ? `${We} request-Id: ${x.requestId}` : We;
		} finally {
			throw Error(We);
		}
	}
	return Be;
}
var Zm = (Hm = Ym("getPostResponseFunc"), Vm = Ym("getUrl"), Um = Ym("errorHandler"), Wm = $m = class x {
	constructor(x, Be) {
		Object.defineProperty(this, Um, { value: Qm }), Object.defineProperty(this, Vm, { value: Jm }), Object.defineProperty(this, Hm, {
			writable: !0,
			value: (x) => (Be) => x ? Be : this.onReceiveResponse(Be)
		}), this.uppy = x, this.opts = Be, this.onReceiveResponse = this.onReceiveResponse.bind(this), this.allowedHeaders = [
			"accept",
			"content-type",
			"uppy-auth-token"
		], this.preflightDone = !1;
	}
	get hostname() {
		let { companion: x } = this.uppy.getState(), Be = this.opts.companionUrl;
		return (x && x[Be] ? x[Be] : Be).replace(/\/$/, "");
	}
	headers() {
		let Be = this.opts.companionHeaders || {};
		return Promise.resolve({
			...x.defaultHeaders,
			...Be
		});
	}
	onReceiveResponse(x) {
		let Be = this.uppy.getState().companion || {}, We = this.opts.companionUrl, { headers: St } = x;
		return St.has("i-am") && St.get("i-am") !== Be[We] && this.uppy.setState({ companion: {
			...Be,
			[We]: St.get("i-am")
		} }), x;
	}
	preflight(x) {
		return this.preflightDone ? Promise.resolve(this.allowedHeaders.slice()) : fetch(qm(this, Vm)[Vm](x), { method: "OPTIONS" }).then(((x) => (x.headers.has("access-control-allow-headers") && (this.allowedHeaders = x.headers.get("access-control-allow-headers").split(",").map(((x) => x.trim().toLowerCase()))), this.preflightDone = !0, this.allowedHeaders.slice()))).catch(((x) => (this.uppy.log(`[CompanionClient] unable to make preflight request ${x}`, "warning"), this.preflightDone = !0, this.allowedHeaders.slice())));
	}
	preflightAndHeaders(x) {
		return Promise.all([this.preflight(x), this.headers()]).then(((x) => {
			let [Be, We] = x;
			return Object.keys(We).forEach(((x) => {
				Be.includes(x.toLowerCase()) || (this.uppy.log(`[CompanionClient] excluding disallowed header ${x}`), delete We[x]);
			})), We;
		}));
	}
	get(x, Be) {
		return this.preflightAndHeaders(x).then(((Be) => Mm(qm(this, Vm)[Vm](x), {
			method: "get",
			headers: Be,
			credentials: this.opts.companionCookiesRule || "same-origin"
		}))).then(qm(this, Hm)[Hm](Be)).then(Xm).catch(qm(this, Um)[Um]("get", x));
	}
	post(x, Be, We) {
		let St = "post";
		return this.preflightAndHeaders(x).then(((We) => Mm(qm(this, Vm)[Vm](x), {
			method: St,
			headers: We,
			credentials: this.opts.companionCookiesRule || "same-origin",
			body: JSON.stringify(Be)
		}))).then(qm(this, Hm)[Hm](We)).then(Xm).catch(qm(this, Um)[Um](St, x));
	}
	delete(x, Be, We) {
		let St = "delete";
		return this.preflightAndHeaders(x).then(((We) => Mm(`${this.hostname}/${x}`, {
			method: St,
			headers: We,
			credentials: this.opts.companionCookiesRule || "same-origin",
			body: Be ? JSON.stringify(Be) : null
		}))).then(qm(this, Hm)[Hm](We)).then(Xm).catch(qm(this, Um)[Um](St, x));
	}
}, $m.VERSION = "2.0.4", $m.defaultHeaders = {
	Accept: "application/json",
	"Content-Type": "application/json",
	"Uppy-Versions": `@uppy/companion-client=${$m.VERSION}`
}, Wm);
function Jm(x) {
	return /^(https?:|)\/\//.test(x) ? x : `${this.hostname}/${x}`;
}
function Qm(x, Be) {
	return (We) => {
		var St;
		if ((St = We) == null || !St.isAuthError) {
			let St = /* @__PURE__ */ Error(`Could not ${x} ${qm(this, Vm)[Vm](Be)}`);
			St.cause = We, We = St;
		}
		return Promise.reject(We);
	};
}
var eb = {
	setItem: (x, Be) => new Promise(((We) => {
		localStorage.setItem(x, Be), We();
	})),
	getItem: (x) => Promise.resolve(localStorage.getItem(x)),
	removeItem: (x) => new Promise(((Be) => {
		localStorage.removeItem(x), Be();
	}))
}, tb, nb, rb, ob, ib, ab, ub;
function sb(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var lb = 0;
function cb(x) {
	return "__private_" + lb++ + "_" + x;
}
var fb = (tb = cb("queued"), nb = cb("emitter"), rb = cb("isOpen"), ob = cb("socket"), ib = cb("handleMessage"), ab = Symbol.for("uppy test: getSocket"), ub = Symbol.for("uppy test: getQueued"), class {
	constructor(x) {
		Object.defineProperty(this, tb, {
			writable: !0,
			value: []
		}), Object.defineProperty(this, nb, {
			writable: !0,
			value: ay()
		}), Object.defineProperty(this, rb, {
			writable: !0,
			value: !1
		}), Object.defineProperty(this, ob, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, ib, {
			writable: !0,
			value: (x) => {
				try {
					let Be = JSON.parse(x.data);
					this.emit(Be.action, Be.payload);
				} catch (x) {
					console.log(x);
				}
			}
		}), this.opts = x, x && !1 === x.autoOpen || this.open();
	}
	get isOpen() {
		return sb(this, rb)[rb];
	}
	[ab]() {
		return sb(this, ob)[ob];
	}
	[ub]() {
		return sb(this, tb)[tb];
	}
	open() {
		sb(this, ob)[ob] = new WebSocket(this.opts.target), sb(this, ob)[ob].onopen = () => {
			for (sb(this, rb)[rb] = !0; sb(this, tb)[tb].length > 0 && sb(this, rb)[rb];) {
				let x = sb(this, tb)[tb].shift();
				this.send(x.action, x.payload);
			}
		}, sb(this, ob)[ob].onclose = () => {
			sb(this, rb)[rb] = !1;
		}, sb(this, ob)[ob].onmessage = sb(this, ib)[ib];
	}
	close() {
		var x;
		(x = sb(this, ob)[ob]) == null || x.close();
	}
	send(x, Be) {
		sb(this, rb)[rb] ? sb(this, ob)[ob].send(JSON.stringify({
			action: x,
			payload: Be
		})) : sb(this, tb)[tb].push({
			action: x,
			payload: Be
		});
	}
	on(x, Be) {
		sb(this, nb)[nb].on(x, Be);
	}
	emit(x, Be) {
		sb(this, nb)[nb].emit(x, Be);
	}
	once(x, Be) {
		sb(this, nb)[nb].once(x, Be);
	}
}), db = {
	RequestClient: Zm,
	Provider: class extends Zm {
		constructor(x, Be) {
			super(x, Be), this.provider = Be.provider, this.id = this.provider, this.name = this.opts.name || ((x) => x.split("-").map(((x) => x.charAt(0).toUpperCase() + x.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(((x) => {
				let [Be, We] = x, St = {};
				return We && (St["uppy-auth-token"] = We), this.companionKeysParams && (St["uppy-credentials-params"] = btoa(JSON.stringify({ params: this.companionKeysParams }))), {
					...Be,
					...St
				};
			}));
		}
		onReceiveResponse(x) {
			x = super.onReceiveResponse(x);
			let Be = this.uppy.getPlugin(this.pluginId), We = Be.getPluginState().authenticated ? x.status !== 401 : x.status < 400;
			return Be.setPluginState({ authenticated: We }), x;
		}
		setAuthToken(x) {
			return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey, x);
		}
		getAuthToken() {
			return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey);
		}
		authUrl(x) {
			return x === void 0 && (x = {}), this.preAuthToken && (x.uppyPreAuthToken = this.preAuthToken), `${this.hostname}/${this.id}/connect?${new URLSearchParams(x)}`;
		}
		fileUrl(x) {
			return `${this.hostname}/${this.id}/get/${x}`;
		}
		fetchPreAuthToken() {
			return this.companionKeysParams ? this.post(`${this.id}/preauth/`, { params: this.companionKeysParams }).then(((x) => {
				this.preAuthToken = x.token;
			})).catch(((x) => {
				this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${x}`, "warning");
			})) : Promise.resolve();
		}
		list(x) {
			return this.get(`${this.id}/list/${x || ""}`);
		}
		logout() {
			return this.get(`${this.id}/logout`).then(((x) => Promise.all([x, this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then(((x) => {
				let [Be] = x;
				return Be;
			}));
		}
		static initPlugin(x, Be, We) {
			if (x.type = "acquirer", x.files = [], We && (x.opts = {
				...We,
				...Be
			}), Be.serverUrl || Be.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 (Be.companionAllowedHosts) {
				let We = Be.companionAllowedHosts;
				if (!(typeof We == "string" || Array.isArray(We) || We instanceof RegExp)) throw TypeError(`${x.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);
				x.opts.companionAllowedHosts = We;
			} else /^(?!https?:\/\/).*$/i.test(Be.companionUrl) ? x.opts.companionAllowedHosts = `https://${Be.companionUrl.replace(/^\/\//, "")}` : x.opts.companionAllowedHosts = new URL(Be.companionUrl).origin;
			x.storage = x.opts.storage || eb;
		}
	},
	SearchProvider: class extends Zm {
		constructor(x, Be) {
			super(x, Be), this.provider = Be.provider, this.id = this.provider, this.name = this.opts.name || ((x) => x.split("-").map(((x) => x.charAt(0).toUpperCase() + x.slice(1))).join(" "))(this.id), this.pluginId = this.opts.pluginId;
		}
		fileUrl(x) {
			return `${this.hostname}/search/${this.id}/get/${x}`;
		}
		search(x, Be) {
			return Be = Be ? `&${Be}` : "", this.get(`search/${this.id}/list?q=${encodeURIComponent(x)}${Be}`);
		}
	},
	Socket: fb
}, pb, hb, gb = eg((function(x, Be, We) {
	let { progress: St, bytesUploaded: Kn, bytesTotal: _r } = Be;
	St && (x.uppy.log(`Upload progress: ${St}`), x.uppy.emit("upload-progress", We, {
		uploader: x,
		bytesUploaded: Kn,
		bytesTotal: _r
	}));
}), 300, {
	leading: !0,
	trailing: !0
});
function vb(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var yb = 0;
function mb(x) {
	return "__private_" + yb++ + "_" + x;
}
var bb = (pb = mb("emitter"), hb = mb("events"), class {
	constructor(x) {
		Object.defineProperty(this, pb, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, hb, {
			writable: !0,
			value: []
		}), vb(this, pb)[pb] = x;
	}
	on(x, Be) {
		return vb(this, hb)[hb].push([x, Be]), vb(this, pb)[pb].on(x, Be);
	}
	remove() {
		for (let [x, Be] of vb(this, hb)[hb].splice(0)) vb(this, pb)[pb].off(x, Be);
	}
});
function wb(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var Eb = 0;
function Db(x) {
	return "__private_" + Eb++ + "_" + x;
}
var Sb = Db("aliveTimer"), xb = Db("isDone"), Cb = Db("onTimedOut"), Ab = Db("timeout"), Ob = class {
	constructor(x, Be) {
		Object.defineProperty(this, Sb, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, xb, {
			writable: !0,
			value: !1
		}), Object.defineProperty(this, Cb, {
			writable: !0,
			value: void 0
		}), Object.defineProperty(this, Ab, {
			writable: !0,
			value: void 0
		}), wb(this, Ab)[Ab] = x, wb(this, Cb)[Cb] = Be;
	}
	progress() {
		wb(this, xb)[xb] || wb(this, Ab)[Ab] > 0 && (clearTimeout(wb(this, Sb)[Sb]), wb(this, Sb)[Sb] = setTimeout(wb(this, Cb)[Cb], wb(this, Ab)[Ab]));
	}
	done() {
		wb(this, xb)[xb] || (clearTimeout(wb(this, Sb)[Sb]), wb(this, Sb)[Sb] = null, wb(this, xb)[xb] = !0);
	}
};
function kb(x, Be) {
	if (!Object.prototype.hasOwnProperty.call(x, Be)) throw TypeError("attempted to use private field on non-instance");
	return x;
}
var Bb = 0;
function Fb(x) {
	return "__private_" + Bb++ + "_" + x;
}
function Tb() {
	return /* @__PURE__ */ Error("Cancelled");
}
var _b = Fb("activeRequests"), Pb = Fb("queuedHandlers"), jb = Fb("call"), Nb = Fb("queueNext"), Ib = Fb("next"), Lb = Fb("queue"), Rb = Fb("dequeue");
function Mb(x) {
	kb(this, _b)[_b] += 1;
	let Be, We = !1;
	try {
		Be = x();
	} catch (x) {
		throw --kb(this, _b)[_b], x;
	}
	return {
		abort: () => {
			We || (We = !0, --kb(this, _b)[_b], Be(), kb(this, Nb)[Nb]());
		},
		done: () => {
			We || (We = !0, --kb(this, _b)[_b], kb(this, Nb)[Nb]());
		}
	};
}
function zb() {
	queueMicrotask((() => kb(this, Ib)[Ib]()));
}
function $b() {
	if (kb(this, _b)[_b] >= this.limit || kb(this, Pb)[Pb].length === 0) return;
	let x = kb(this, Pb)[Pb].shift(), Be = kb(this, jb)[jb](x.fn);
	x.abort = Be.abort, x.done = Be.done;
}
function Hb(x, Be) {
	Be === void 0 && (Be = {});
	let We = {
		fn: x,
		priority: Be.priority || 0,
		abort: () => {
			kb(this, Rb)[Rb](We);
		},
		done: () => {
			throw Error("Cannot mark a queued request as done: this indicates a bug");
		}
	}, St = kb(this, Pb)[Pb].findIndex(((x) => We.priority > x.priority));
	return St === -1 ? kb(this, Pb)[Pb].push(We) : kb(this, Pb)[Pb].splice(St, 0, We), We;
}
function Vb(x) {
	let Be = kb(this, Pb)[Pb].indexOf(x);
	Be !== -1 && kb(this, Pb)[Pb].splice(Be, 1);
}
var Ub = {
	RateLimitedQueue: class {
		constructor(x) {
			Object.defineProperty(this, Rb, { value: Vb }), Object.defineProperty(this, Lb, { value: Hb }), Object.defineProperty(this, Ib, { value: $b }), Object.defineProperty(this, Nb, { value: zb }), Object.defineProperty(this, jb, { value: Mb }), Object.defineProperty(this, _b, {
				writable: !0,
				value: 0
			}), Object.defineProperty(this, Pb, {
				writable: !0,
				value: []
			}), this.limit = typeof x != "number" || x === 0 ? Infinity : x;
		}
		run(x, Be) {
			return kb(this, _b)[_b] < this.limit ? kb(this, jb)[jb](x) : kb(this, Lb)[Lb](x, Be);
		}
		wrapPromiseFunction(x, Be) {
			var We = this;
			return function() {
				var St = [...arguments];
				let Kn, _r = new Promise(((_r, Li) => {
					Kn = We.run((() => {
						let Be, We;
						try {
							We = Promise.resolve(x(...St));
						} catch (x) {
							We = Promise.reject(x);
						}
						return We.then(((x) => {
							Be ? Li(Be) : (Kn.done(), _r(x));
						}), ((x) => {
							Be ? Li(Be) : (Kn.done(), Li(x));
						})), () => {
							Be = Tb();
						};
					}), Be);
				}));
				return _r.abort = () => {
					Kn.abort();
				}, _r;
			};
		}
	},
	internalRateLimitedQueue: Symbol("__queue")
}, Wb, Gb, qb = function(x) {
	return !!x && (x.readyState !== 0 && x.readyState !== 4 || x.status === 0);
}, Kb = { strings: { timedOut: "Upload stalled for %{seconds} seconds, aborting." } }, { nanoid: Yb } = By, { Provider: Xb, RequestClient: Zb, Socket: Jb } = db, { RateLimitedQueue: Qb, internalRateLimitedQueue: ew } = Ub;
function tw(x, Be) {
	let We = Be;
	return We ||= /* @__PURE__ */ Error("Upload error"), typeof We == "string" && (We = Error(We)), We instanceof Error || (We = Object.assign(/* @__PURE__ */ Error("Upload error"), { data: We })), qb(x) ? (We = new Rm(We, x), We) : (We.request = x, We);
}
function nw(x) {
	return x.data.slice(0, x.data.size, x.meta.type);
}
var rw = (Gb = Wb = class extends Sm {
	constructor(x, Be) {
		if (super(x, Be), this.type = "uploader", this.id = this.opts.id || "XHRUpload", this.title = "XHRUpload", this.defaultLocale = Kb, this.opts = {
			formData: !0,
			fieldName: Be.bundle ? "files[]" : "file",
			method: "post",
			metaFields: null,
			responseUrlFieldName: "url",
			bundle: !1,
			headers: {},
			timeout: 3e4,
			limit: 5,
			withCredentials: !1,
			responseType: "",
			getResponseData(Be) {
				let We = {};
				try {
					We = JSON.parse(Be);
				} catch (Be) {
					x.log(Be);
				}
				return We;
			},
			getResponseError(x, Be) {
				let We = /* @__PURE__ */ Error("Upload error");
				return qb(Be) && (We = new Rm(We, Be)), We;
			},
			validateStatus: (x) => x >= 200 && x < 300,
			...Be
		}, this.i18nInit(), this.handleUpload = this.handleUpload.bind(this), ew in this.opts ? this.requests = this.opts[ew] : this.requests = new Qb(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(x) {
		let Be = this.uppy.getState().xhrUpload, { headers: We } = this.opts, St = {
			...this.opts,
			...Be || {},
			...x.xhrUpload || {},
			headers: {}
		};
		return typeof We == "function" ? St.headers = We(x) : Object.assign(St.headers, this.opts.headers), Be && Object.assign(St.headers, Be.headers), x.xhrUpload && Object.assign(St.headers, x.xhrUpload.headers), St;
	}
	addMetadata(x, Be, We) {
		(Array.isArray(We.metaFields) ? We.metaFields : Object.keys(Be)).forEach(((We) => {
			x.append(We, Be[We]);
		}));
	}
	createFormDataUpload(x, Be) {
		let We = new FormData();
		this.addMetadata(We, x.meta, Be);
		let St = nw(x);
		return x.name ? We.append(Be.fieldName, St, x.meta.name) : We.append(Be.fieldName, St), We;
	}
	createBundledUpload(x, Be) {
		let We = new FormData(), { meta: St } = this.uppy.getState();
		return this.addMetadata(We, St, Be), x.forEach(((x) => {
			let Be = this.getOptions(x), St = nw(x);
			x.name ? We.append(Be.fieldName, St, x.name) : We.append(Be.fieldName, St);
		})), We;
	}
	upload(x, Be, We) {
		let St = this.getOptions(x);
		return this.uppy.log(`uploading ${Be} of ${We}`), new Promise(((Be, We) => {
			this.uppy.emit("upload-started", x);
			let Kn = St.formData ? this.createFormDataUpload(x, St) : x.data, _r = new XMLHttpRequest();
			this.uploaderEvents[x.id] = new bb(this.uppy);
			let Li = new Ob(St.timeout, (() => {
				_r.abort(), Vo.done();
				let Be = Error(this.i18n("timedOut", { seconds: Math.ceil(St.timeout / 1e3) }));
				this.uppy.emit("upload-error", x, Be), We(Be);
			})), fa = Yb();
			_r.upload.addEventListener("loadstart", (() => {
				this.uppy.log(`[XHRUpload] ${fa} started`);
			})), _r.upload.addEventListener("progress", ((Be) => {
				this.uppy.log(`[XHRUpload] ${fa} progress: ${Be.loaded} / ${Be.total}`), Li.progress(), Be.lengthComputable && this.uppy.emit("upload-progress", x, {
					uploader: this,
					bytesUploaded: Be.loaded,
					bytesTotal: Be.total
				});
			})), _r.addEventListener("load", ((Kn) => {
				if (this.uppy.log(`[XHRUpload] ${fa} finished`), Li.done(), Vo.done(), this.uploaderEvents[x.id] && (this.uploaderEvents[x.id].remove(), this.uploaderEvents[x.id] = null), St.validateStatus(Kn.target.status, _r.responseText, _r)) {
					let We = St.getResponseData(_r.responseText, _r), Li = We[St.responseUrlFieldName], fa = {
						status: Kn.target.status,
						body: We,
						uploadURL: Li
					};
					return this.uppy.emit("upload-success", x, fa), Li && this.uppy.log(`Download ${x.name} from ${Li}`), Be(x);
				}
				let Xo = St.getResponseData(_r.responseText, _r), Tc = tw(_r, St.getResponseError(_r.responseText, _r)), Tl = {
					status: Kn.target.status,
					body: Xo
				};
				return this.uppy.emit("upload-error", x, Tc, Tl), We(Tc);
			})), _r.addEventListener("error", (() => {
				this.uppy.log(`[XHRUpload] ${fa} errored`), Li.done(), Vo.done(), this.uploaderEvents[x.id] && (this.uploaderEvents[x.id].remove(), this.uploaderEvents[x.id] = null);
				let Be = tw(_r, St.getResponseError(_r.responseText, _r));
				return this.uppy.emit("upload-error", x, Be), We(Be);
			})), _r.open(St.method.toUpperCase(), St.endpoint, !0), _r.withCredentials = St.withCredentials, St.responseType !== "" && (_r.responseType = St.responseType);
			let Vo = this.requests.run((() => {
				this.uppy.emit("upload-started", x);
				let Be = this.getOptions(x);
				return Object.keys(Be.headers).forEach(((x) => {
					_r.setRequestHeader(x, Be.headers[x]);
				})), _r.send(Kn), () => {
					Li.done(), _r.abort();
				};
			}));
			this.onFileRemove(x.id, (() => {
				Vo.abort(), We(/* @__PURE__ */ Error("File removed"));
			})), this.onCancelAll(x.id, (() => {
				Vo.abort(), We(/* @__PURE__ */ Error("Upload cancelled"));
			}));
		}));
	}
	uploadRemote(x) {
		let Be = this.getOptions(x);
		return new Promise(((We, St) => {
			this.uppy.emit("upload-started", x);
			let Kn = {};
			(Array.isArray(Be.metaFields) ? Be.metaFields : Object.keys(x.meta)).forEach(((Be) => {
				Kn[Be] = x.meta[Be];
			})), new (x.remote.providerOptions.provider ? Xb : Zb)(this.uppy, x.remote.providerOptions).post(x.remote.url, {
				...x.remote.body,
				endpoint: Be.endpoint,
				size: x.data.size,
				fieldname: Be.fieldName,
				metadata: Kn,
				httpMethod: Be.method,
				useFormData: Be.formData,
				headers: Be.headers
			}).then(((Kn) => {
				let { token: _r } = Kn, Li = new Jb({
					target: `${function(x) {
						let Be = /^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(x)[1];
						return `${/^http:\/\//i.test(x) ? "ws" : "wss"}://${Be}`;
					}(x.remote.companionUrl)}/api/${_r}`,
					autoOpen: !1
				});
				this.uploaderEvents[x.id] = new bb(this.uppy), this.onFileRemove(x.id, (() => {
					Li.send("cancel", {}), fa.abort(), We(`upload ${x.id} was removed`);
				})), this.onCancelAll(x.id, (() => {
					Li.send("cancel", {}), fa.abort(), We(`upload ${x.id} was canceled`);
				})), this.onRetry(x.id, (() => {
					Li.send("pause", {}), Li.send("resume", {});
				})), this.onRetryAll(x.id, (() => {
					Li.send("pause", {}), Li.send("resume", {});
				})), Li.on("progress", ((Be) => gb(this, Be, x))), Li.on("success", ((St) => {
					let Kn = Be.getResponseData(St.response.responseText, St.response), _r = Kn[Be.responseUrlFieldName], Li = {
						status: St.response.status,
						body: Kn,
						uploadURL: _r
					};
					return this.uppy.emit("upload-success", x, Li), fa.done(), this.uploaderEvents[x.id] && (this.uploaderEvents[x.id].remove(), this.uploaderEvents[x.id] = null), We();
				})), Li.on("error", ((We) => {
					let Kn = We.response, _r = Kn ? Be.getResponseError(Kn.responseText, Kn) : Object.assign(Error(We.error.message), { cause: We.error });
					this.uppy.emit("upload-error", x, _r), fa.done(), this.uploaderEvents[x.id] && (this.uploaderEvents[x.id].remove(), this.uploaderEvents[x.id] = null), St(_r);
				}));
				let fa = this.requests.run((() => (Li.open(), x.isPaused && Li.send("pause", {}), () => Li.close())));
			})).catch(((Be) => {
				this.uppy.emit("upload-error", x, Be), St(Be);
			}));
		}));
	}
	uploadBundle(x) {
		return new Promise(((Be, We) => {
			let { endpoint: St } = this.opts, { method: Kn } = this.opts, _r = this.uppy.getState().xhrUpload, Li = this.createBundledUpload(x, {
				...this.opts,
				..._r || {}
			}), fa = new XMLHttpRequest(), Vo = new Ob(this.opts.timeout, (() => {
				fa.abort();
				let x = Error(this.i18n("timedOut", { seconds: Math.ceil(this.opts.timeout / 1e3) }));
				Xo(x), We(x);
			})), Xo = (Be) => {
				x.forEach(((x) => {
					this.uppy.emit("upload-error", x, Be);
				}));
			};
			fa.upload.addEventListener("loadstart", (() => {
				this.uppy.log("[XHRUpload] started uploading bundle"), Vo.progress();
			})), fa.upload.addEventListener("progress", ((Be) => {
				Vo.progress(), Be.lengthComputable && x.forEach(((x) => {
					this.uppy.emit("upload-progress", x, {
						uploader: this,
						bytesUploaded: Be.loaded / Be.total * x.size,
						bytesTotal: x.size
					});
				}));
			})), fa.addEventListener("load", ((St) => {
				if (Vo.done(), this.opts.validateStatus(St.target.status, fa.responseText, fa)) {
					let We = this.opts.getResponseData(fa.responseText, fa), Kn = {
						status: St.target.status,
						body: We
					};
					return x.forEach(((x) => {
						this.uppy.emit("upload-success", x, Kn);
					})), Be();
				}
				let Kn = this.opts.getResponseError(fa.responseText, fa) || /* @__PURE__ */ Error("Upload error");
				return Kn.request = fa, Xo(Kn), We(Kn);
			})), fa.addEventListener("error", (() => {
				Vo.done();
				let x = this.opts.getResponseError(fa.responseText, fa) || /* @__PURE__ */ Error("Upload error");
				return Xo(x), We(x);
			})), this.uppy.on("cancel-all", (() => {
				Vo.done(), fa.abort();
			})), fa.open(Kn.toUpperCase(), St, !0), fa.withCredentials = this.opts.withCredentials, this.opts.responseType !== "" && (fa.responseType = this.opts.responseType), Object.keys(this.opts.headers).forEach(((x) => {
				fa.setRequestHeader(x, this.opts.headers[x]);
			})), fa.send(Li), x.forEach(((x) => {
				this.uppy.emit("upload-started", x);
			}));
		}));
	}
	uploadFiles(x) {
		return function(x) {
			let Be = [], We = [];
			function St(x) {
				Be.push(x);
			}
			function Kn(x) {
				We.push(x);
			}
			return Promise.all(x.map(((x) => x.then(St, Kn)))).then((() => ({
				successful: Be,
				failed: We
			})));
		}(x.map(((Be, We) => {
			let St = parseInt(We, 10) + 1, Kn = x.length;
			return Be.error ? Promise.reject(Error(Be.error)) : Be.isRemote ? this.uploadRemote(Be, St, Kn) : this.upload(Be, St, Kn);
		})));
	}
	onFileRemove(x, Be) {
		this.uploaderEvents[x].on("file-removed", ((We) => {
			x === We.id && Be(We.id);
		}));
	}
	onRetry(x, Be) {
		this.uploaderEvents[x].on("upload-retry", ((We) => {
			x === We && Be();
		}));
	}
	onRetryAll(x, Be) {
		this.uploaderEvents[x].on("retry-all", (() => {
			this.uppy.getFile(x) && Be();
		}));
	}
	onCancelAll(x, Be) {
		this.uploaderEvents[x].on("cancel-all", (() => {
			this.uppy.getFile(x) && Be();
		}));
	}
	handleUpload(x) {
		if (x.length === 0) return this.uppy.log("[XHRUpload] No files to upload!"), Promise.resolve();
		this.opts.limit !== 0 || this.opts[ew] || 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 Be = x.map(((x) => this.uppy.getFile(x)));
		if (this.opts.bundle) {
			if (Be.some(((x) => x.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(Be);
		}
		return this.uploadFiles(Be).then((() => null));
	}
	install() {
		if (this.opts.bundle) {
			let { capabilities: x } = this.uppy.getState();
			this.uppy.setState({ capabilities: {
				...x,
				individualCancellation: !1
			} });
		}
		this.uppy.addUploader(this.handleUpload);
	}
	uninstall() {
		if (this.opts.bundle) {
			let { capabilities: x } = this.uppy.getState();
			this.uppy.setState({ capabilities: {
				...x,
				individualCancellation: !0
			} });
		}
		this.uppy.removeUploader(this.handleUpload);
	}
}, Wb.VERSION = "2.0.6", Gb), ow = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function iw(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var aw, uw, sw = function(x) {
	return x && x.Math == Math && x;
}, lw = sw(typeof globalThis == "object" && globalThis) || sw(typeof window == "object" && window) || sw(typeof self == "object" && self) || sw(typeof ow == "object" && ow) || function() {
	return this;
}() || Function("return this")(), cw = Object.defineProperty, fw = function(x, Be) {
	try {
		cw(lw, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		lw[x] = Be;
	}
	return Be;
}, dw = lw["__core-js_shared__"] || fw("__core-js_shared__", {}), pw = iw((function(x) {
	(x.exports = function(x, Be) {
		return dw[x] || (dw[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), hw = Function.prototype, gw = hw.bind, vw = hw.call, yw = gw && gw.bind(vw), mw = gw ? function(x) {
	return x && yw(vw, x);
} : function(x) {
	return x && function() {
		return vw.apply(x, arguments);
	};
}, bw = lw.TypeError, ww = function(x) {
	if (x == null) throw bw("Can't call method on " + x);
	return x;
}, Ew = lw.Object, Dw = function(x) {
	return Ew(ww(x));
}, Sw = mw({}.hasOwnProperty), xw = Object.hasOwn || function(x, Be) {
	return Sw(Dw(x), Be);
}, Cw = 0, Aw = Math.random(), Ow = mw(1 .toString), kw = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + Ow(++Cw + Aw, 36);
}, Bw = function(x) {
	return typeof x == "function";
}, Fw = function(x) {
	return Bw(x) ? x : void 0;
}, Tw = function(x, Be) {
	return arguments.length < 2 ? Fw(lw[x]) : lw[x] && lw[x][Be];
}, _w = Tw("navigator", "userAgent") || "", Pw = lw.process, jw = lw.Deno, Nw = Pw && Pw.versions || jw && jw.version, Iw = Nw && Nw.v8;
Iw && (uw = (aw = Iw.split("."))[0] > 0 && aw[0] < 4 ? 1 : +(aw[0] + aw[1])), !uw && _w && (!(aw = _w.match(/Edge\/(\d+)/)) || aw[1] >= 74) && (aw = _w.match(/Chrome\/(\d+)/)) && (uw = +aw[1]);
var Lw = uw, Rw = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, Mw = !!Object.getOwnPropertySymbols && !Rw((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && Lw && Lw < 41;
})), zw = Mw && !Symbol.sham && typeof Symbol.iterator == "symbol", $w = pw("wks"), Hw = lw.Symbol, Vw = Hw && Hw.for, Uw = zw ? Hw : Hw && Hw.withoutSetter || kw, Ww = function(x) {
	if (!xw($w, x) || !Mw && typeof $w[x] != "string") {
		var Be = "Symbol." + x;
		Mw && xw(Hw, x) ? $w[x] = Hw[x] : $w[x] = zw && Vw ? Vw(Be) : Uw(Be);
	}
	return $w[x];
}, Gw = {};
Gw[Ww("toStringTag")] = "z";
var qw = String(Gw) === "[object z]", Kw = !Rw((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), Yw = function(x) {
	return typeof x == "object" ? x !== null : Bw(x);
}, Xw = lw.document, Zw = Yw(Xw) && Yw(Xw.createElement), Jw = function(x) {
	return Zw ? Xw.createElement(x) : {};
}, Qw = !Kw && !Rw((function() {
	return Object.defineProperty(Jw("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), eE = lw.String, tE = lw.TypeError, nE = function(x) {
	if (Yw(x)) return x;
	throw tE(eE(x) + " is not an object");
}, rE = Function.prototype.call, oE = rE.bind ? rE.bind(rE) : function() {
	return rE.apply(rE, arguments);
}, iE = mw({}.isPrototypeOf), aE = lw.Object, uE = zw ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = Tw("Symbol");
	return Bw(Be) && iE(Be.prototype, aE(x));
}, sE = lw.String, lE = function(x) {
	try {
		return sE(x);
	} catch {
		return "Object";
	}
}, cE = lw.TypeError, fE = function(x) {
	if (Bw(x)) return x;
	throw cE(lE(x) + " is not a function");
}, dE = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : fE(We);
}, pE = lw.TypeError, hE = lw.TypeError, gE = Ww("toPrimitive"), vE = function(x) {
	var Be = function(x, Be) {
		if (!Yw(x) || uE(x)) return x;
		var We, St = dE(x, gE);
		if (St) {
			if (Be === void 0 && (Be = "default"), We = oE(St, x, Be), !Yw(We) || uE(We)) return We;
			throw hE("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && Bw(We = x.toString) && !Yw(St = oE(We, x)) || Bw(We = x.valueOf) && !Yw(St = oE(We, x)) || Be !== "string" && Bw(We = x.toString) && !Yw(St = oE(We, x))) return St;
			throw pE("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return uE(Be) ? Be : Be + "";
}, yE = lw.TypeError, mE = Object.defineProperty, bE = { f: Kw ? mE : function(x, Be, We) {
	if (nE(x), Be = vE(Be), nE(We), Qw) try {
		return mE(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw yE("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, wE = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, EE = Kw ? function(x, Be, We) {
	return bE.f(x, Be, wE(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, DE = mw(Function.toString);
Bw(dw.inspectSource) || (dw.inspectSource = function(x) {
	return DE(x);
});
var SE, xE, CE, AE = dw.inspectSource, OE = lw.WeakMap, kE = Bw(OE) && /native code/.test(AE(OE)), BE = pw("keys"), FE = function(x) {
	return BE[x] || (BE[x] = kw(x));
}, TE = {}, _E = lw.TypeError, PE = lw.WeakMap;
if (kE || dw.state) {
	var jE = dw.state ||= new PE(), NE = mw(jE.get), IE = mw(jE.has), LE = mw(jE.set);
	SE = function(x, Be) {
		if (IE(jE, x)) throw new _E("Object already initialized");
		return Be.facade = x, LE(jE, x, Be), Be;
	}, xE = function(x) {
		return NE(jE, x) || {};
	}, CE = function(x) {
		return IE(jE, x);
	};
} else {
	var RE = FE("state");
	TE[RE] = !0, SE = function(x, Be) {
		if (xw(x, RE)) throw new _E("Object already initialized");
		return Be.facade = x, EE(x, RE, Be), Be;
	}, xE = function(x) {
		return xw(x, RE) ? x[RE] : {};
	}, CE = function(x) {
		return xw(x, RE);
	};
}
var ME = {
	set: SE,
	get: xE,
	has: CE,
	enforce: function(x) {
		return CE(x) ? xE(x) : SE(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!Yw(Be) || (We = xE(Be)).type !== x) throw _E("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, zE = Function.prototype, $E = Kw && Object.getOwnPropertyDescriptor, HE = xw(zE, "name"), VE = {
	EXISTS: HE,
	PROPER: HE && function() {}.name === "something",
	CONFIGURABLE: HE && (!Kw || Kw && $E(zE, "name").configurable)
}, UE = iw((function(x) {
	var Be = VE.CONFIGURABLE, We = ME.get, St = ME.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		Bw(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!xw(_r, "name") || Be && _r.name !== Tl) && EE(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === lw ? Xo ? x[We] = _r : fw(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : EE(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return Bw(this) && We(this).source || AE(this);
	}));
})), WE = mw({}.toString), GE = mw("".slice), qE = function(x) {
	return GE(WE(x), 8, -1);
}, KE = Ww("toStringTag"), YE = lw.Object, XE = qE(function() {
	return arguments;
}()) == "Arguments", ZE = qw ? qE : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = YE(x), KE)) == "string" ? We : XE ? qE(Be) : (St = qE(Be)) == "Object" && Bw(Be.callee) ? "Arguments" : St;
}, JE = qw ? {}.toString : function() {
	return "[object " + ZE(this) + "]";
};
qw || UE(Object.prototype, "toString", JE, { unsafe: !0 });
var QE = {
	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
}, eD = Jw("span").classList, tD = eD && eD.constructor && eD.constructor.prototype, nD = tD === Object.prototype ? void 0 : tD, rD = mw(mw.bind), oD = function(x, Be) {
	return fE(x), Be === void 0 ? x : rD ? rD(x, Be) : function() {
		return x.apply(Be, arguments);
	};
}, iD = lw.Object, aD = mw("".split), uD = Rw((function() {
	return !iD("z").propertyIsEnumerable(0);
})) ? function(x) {
	return qE(x) == "String" ? aD(x, "") : iD(x);
} : iD, sD = Math.ceil, lD = Math.floor, cD = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? lD : sD)(Be);
}, fD = Math.min, dD = function(x) {
	return x > 0 ? fD(cD(x), 9007199254740991) : 0;
}, pD = function(x) {
	return dD(x.length);
}, hD = Array.isArray || function(x) {
	return qE(x) == "Array";
}, gD = function() {}, vD = [], yD = Tw("Reflect", "construct"), mD = /^\s*(?:class|function)\b/, bD = mw(mD.exec), wD = !mD.exec(gD), ED = function(x) {
	if (!Bw(x)) return !1;
	try {
		return yD(gD, vD, x), !0;
	} catch {
		return !1;
	}
}, DD = !yD || Rw((function() {
	var x;
	return ED(ED.call) || !ED(Object) || !ED((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!Bw(x)) return !1;
	switch (ZE(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return wD || !!bD(mD, AE(x));
} : ED, SD = Ww("species"), xD = lw.Array, CD = function(x, Be) {
	return new (function(x) {
		var Be;
		return hD(x) && (Be = x.constructor, (DD(Be) && (Be === xD || hD(Be.prototype)) || Yw(Be) && (Be = Be[SD]) === null) && (Be = void 0)), Be === void 0 ? xD : Be;
	}(x))(Be === 0 ? 0 : Be);
}, AD = mw([].push), OD = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = Dw(Vo), Lm = uD(Ff), Bm = oD(Xo, Tc), x_ = pD(Lm), uy = 0, dx = Tl || CD, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: AD(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: AD(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, kD = {
	forEach: OD(0),
	map: OD(1),
	filter: OD(2),
	some: OD(3),
	every: OD(4),
	find: OD(5),
	findIndex: OD(6),
	filterReject: OD(7)
}, BD = function(x, Be) {
	var We = [][x];
	return !!We && Rw((function() {
		We.call(null, Be || function() {
			throw 1;
		}, 1);
	}));
}, FD = kD.forEach, TD = BD("forEach") ? [].forEach : function(x) {
	return FD(this, x, arguments.length > 1 ? arguments[1] : void 0);
}, _D = function(x) {
	if (x && x.forEach !== TD) try {
		EE(x, "forEach", TD);
	} catch {
		x.forEach = TD;
	}
};
for (var PD in QE) QE[PD] && _D(lw[PD] && lw[PD].prototype);
_D(nD);
var jD = {}.propertyIsEnumerable, ND = Object.getOwnPropertyDescriptor, LD = { f: ND && !jD.call({ 1: 2 }, 1) ? function(x) {
	var Be = ND(this, x);
	return !!Be && Be.enumerable;
} : jD }, RD = function(x) {
	return uD(ww(x));
}, MD = Object.getOwnPropertyDescriptor, zD = { f: Kw ? MD : function(x, Be) {
	if (x = RD(x), Be = vE(Be), Qw) try {
		return MD(x, Be);
	} catch {}
	if (xw(x, Be)) return wE(!oE(LD.f, x, Be), x[Be]);
} }, $D = Math.max, HD = Math.min, VD = function(x, Be) {
	var We = cD(x);
	return We < 0 ? $D(We + Be, 0) : HD(We, Be);
}, UD = function(x) {
	return function(Be, We, St) {
		var Kn, _r = RD(Be), Li = pD(_r), fa = VD(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}, WD = {
	includes: UD(!0),
	indexOf: UD(!1)
}, GD = WD.indexOf, qD = mw([].push), KD = function(x, Be) {
	var We, St = RD(x), Kn = 0, _r = [];
	for (We in St) !xw(TE, We) && xw(St, We) && qD(_r, We);
	for (; Be.length > Kn;) xw(St, We = Be[Kn++]) && (~GD(_r, We) || qD(_r, We));
	return _r;
}, YD = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], XD = YD.concat("length", "prototype"), ZD = { f: Object.getOwnPropertyNames || function(x) {
	return KD(x, XD);
} }, JD = { f: Object.getOwnPropertySymbols }, QD = mw([].concat), eS = Tw("Reflect", "ownKeys") || function(x) {
	var Be = ZD.f(nE(x)), We = JD.f;
	return We ? QD(Be, We(x)) : Be;
}, tS = function(x, Be) {
	for (var We = eS(Be), St = bE.f, Kn = zD.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		xw(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, nS = /#|\.prototype\./, rS = function(x, Be) {
	var We = iS[oS(x)];
	return We == uS || We != aS && (Bw(Be) ? Rw(Be) : !!Be);
}, oS = rS.normalize = function(x) {
	return String(x).replace(nS, ".").toLowerCase();
}, iS = rS.data = {}, aS = rS.NATIVE = "N", uS = rS.POLYFILL = "P", sS = rS, lS = zD.f, cS = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? lw : Xo ? lw[fa] || fw(fa, {}) : (lw[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = lS(We, St)) && Li.value : We[St], !sS(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			tS(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && EE(_r, "sham", !0), UE(We, St, _r, x);
	}
}, fS = Object.keys || function(x) {
	return KD(x, YD);
}, dS = Rw((function() {
	fS(1);
}));
function pS(x) {
	return Object.prototype.toString.call(x) === "[object Object]";
}
cS({
	target: "Object",
	stat: !0,
	forced: dS
}, { keys: function(x) {
	return fS(Dw(x));
} });
var hS = { isHistory(x) {
	return !1 !== pS(Be = x) && ((We = Be.constructor) === void 0 || !1 !== pS(St = We.prototype) && !1 !== St.hasOwnProperty("isPrototypeOf")) && Array.isArray(x.redos) && Array.isArray(x.undos) && (x.redos.length === 0 || Rf.isOperationList(x.redos[0])) && (x.undos.length === 0 || Rf.isOperationList(x.undos[0]));
	var Be, We, St;
} }, gS = /* @__PURE__ */ new WeakMap(), vS = /* @__PURE__ */ new WeakMap(), yS = {
	isHistoryEditor: (x) => hS.isHistory(x.history) && Bf.isEditor(x),
	isMerging: (x) => vS.get(x),
	isSaving: (x) => gS.get(x),
	redo(x) {
		x.redo();
	},
	undo(x) {
		x.undo();
	},
	withoutMerging(x, Be) {
		var We = yS.isMerging(x);
		vS.set(x, !1), Be(), vS.set(x, We);
	},
	withoutSaving(x, Be) {
		var We = yS.isSaving(x);
		gS.set(x, !1), Be(), gS.set(x, We);
	}
}, mS = lw.String, bS = function(x) {
	if (ZE(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return mS(x);
}, wS = function() {
	var x = nE(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, ES = VE.PROPER, DS = RegExp.prototype, SS = DS.toString, xS = mw(wS), CS = Rw((function() {
	return SS.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), AS = ES && SS.name != "toString";
(CS || AS) && UE(RegExp.prototype, "toString", (function() {
	var x = nE(this), Be = bS(x.source), We = x.flags;
	return "/" + Be + "/" + bS(We === void 0 && iE(DS, x) && !("flags" in DS) ? xS(x) : We);
}), { unsafe: !0 });
var OS, kS = Kw ? Object.defineProperties : function(x, Be) {
	nE(x);
	for (var We, St = RD(Be), Kn = fS(Be), _r = Kn.length, Li = 0; _r > Li;) bE.f(x, We = Kn[Li++], St[We]);
	return x;
}, BS = Tw("document", "documentElement"), FS = FE("IE_PROTO"), TS = function() {}, _S = function(x) {
	return "<script>" + x + "<\/script>";
}, PS = function(x) {
	x.write(_S("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, jS = function() {
	try {
		OS = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	jS = typeof document < "u" ? document.domain && OS ? PS(OS) : ((Be = Jw("iframe")).style.display = "none", BS.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(_S("document.F=Object")), x.close(), x.F) : PS(OS);
	for (var We = YD.length; We--;) delete jS.prototype[YD[We]];
	return jS();
};
TE[FS] = !0;
var NS = Object.create || function(x, Be) {
	var We;
	return x === null ? We = jS() : (TS.prototype = nE(x), We = new TS(), TS.prototype = null, We[FS] = x), Be === void 0 ? We : kS(We, Be);
}, IS = Ww("unscopables"), LS = Array.prototype;
LS[IS] ?? bE.f(LS, IS, {
	configurable: !0,
	value: NS(null)
});
var RS = function(x) {
	LS[IS][x] = !0;
}, MS = WD.includes;
cS({
	target: "Array",
	proto: !0
}, { includes: function(x) {
	return MS(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), RS("includes");
var zS = Ww("match"), $S = function(x) {
	var Be;
	return Yw(x) && ((Be = x[zS]) === void 0 ? qE(x) == "RegExp" : !!Be);
}, HS = lw.TypeError, VS = function(x) {
	if ($S(x)) throw HS("The method doesn't accept regular expressions");
	return x;
}, US = Ww("match"), WS = function(x) {
	var Be = /./;
	try {
		"/./"[x](Be);
	} catch {
		try {
			return Be[US] = !1, "/./"[x](Be);
		} catch {}
	}
	return !1;
}, GS = mw("".indexOf);
cS({
	target: "String",
	proto: !0,
	forced: !WS("includes")
}, { includes: function(x) {
	return !!~GS(bS(ww(this)), bS(VS(x)), arguments.length > 1 ? arguments[1] : void 0);
} });
var qS = /"/g, KS = mw("".replace);
cS({
	target: "String",
	proto: !0,
	forced: Rw((function() {
		var x = "".anchor("\"");
		return x !== x.toLowerCase() || x.split("\"").length > 3;
	}))
}, { anchor: function(x) {
	return Be = x, We = bS(ww(this)), St = "<a", (St += " name=\"" + KS(bS(Be), qS, "&quot;") + "\"") + ">" + We + "</a>";
	var Be, We, St;
} });
var YS = function(x, Be, We) {
	var St, Kn;
	nE(x);
	try {
		if (!(St = dE(x, "return"))) {
			if (Be === "throw") throw We;
			return We;
		}
		St = oE(St, x);
	} catch (x) {
		Kn = !0, St = x;
	}
	if (Be === "throw") throw We;
	if (Kn) throw St;
	return nE(St), We;
}, XS = function(x, Be, We, St) {
	try {
		return St ? Be(nE(We)[0], We[1]) : Be(We);
	} catch (Be) {
		YS(x, "throw", Be);
	}
}, ZS = {}, JS = Ww("iterator"), QS = Array.prototype, ex = function(x) {
	return x !== void 0 && (ZS.Array === x || QS[JS] === x);
}, tx = function(x, Be, We) {
	var St = vE(Be);
	St in x ? bE.f(x, St, wE(0, We)) : x[St] = We;
}, nx = Ww("iterator"), rx = function(x) {
	if (x != null) return dE(x, nx) || dE(x, "@@iterator") || ZS[ZE(x)];
}, ox = lw.TypeError, ix = function(x, Be) {
	var We = arguments.length < 2 ? rx(x) : Be;
	if (fE(We)) return nE(oE(We, x));
	throw ox(lE(x) + " is not iterable");
}, ax = lw.Array, ux = Ww("iterator"), sx = !1;
try {
	var lx = 0, cx = {
		next: function() {
			return { done: !!lx++ };
		},
		return: function() {
			sx = !0;
		}
	};
	cx[ux] = function() {
		return this;
	}, Array.from(cx, (function() {
		throw 2;
	}));
} catch {}
var fx = function(x, Be) {
	if (!Be && !sx) return !1;
	var We = !1;
	try {
		var St = {};
		St[ux] = function() {
			return { next: function() {
				return { done: We = !0 };
			} };
		}, x(St);
	} catch {}
	return We;
};
cS({
	target: "Array",
	stat: !0,
	forced: !fx((function(x) {
		Array.from(x);
	}))
}, { from: function(x) {
	var Be = Dw(x), We = DD(this), St = arguments.length, Kn = St > 1 ? arguments[1] : void 0, _r = Kn !== void 0;
	_r && (Kn = oD(Kn, St > 2 ? arguments[2] : void 0));
	var Li, fa, Vo, Xo, Tc, Tl, Al = rx(Be), Uu = 0;
	if (!Al || this == ax && ex(Al)) for (Li = pD(Be), fa = We ? new this(Li) : ax(Li); Li > Uu; Uu++) Tl = _r ? Kn(Be[Uu], Uu) : Be[Uu], tx(fa, Uu, Tl);
	else for (Tc = (Xo = ix(Be, Al)).next, fa = We ? new this() : []; !(Vo = oE(Tc, Xo)).done; Uu++) Tl = _r ? XS(Xo, Kn, [Vo.value, Uu], !0) : Vo.value, tx(fa, Uu, Tl);
	return fa.length = Uu, fa;
} });
var px, hx, gx, vx = mw("".charAt), yx = mw("".charCodeAt), mx = mw("".slice), bx = function(x) {
	return function(Be, We) {
		var St, Kn, _r = bS(ww(Be)), Li = cD(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = yx(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = yx(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? vx(_r, Li) : St : x ? mx(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}, wx = {
	codeAt: bx(!1),
	charAt: bx(!0)
}, Ex = !Rw((function() {
	function x() {}
	return x.prototype.constructor = null, Object.getPrototypeOf(new x()) !== x.prototype;
})), Dx = FE("IE_PROTO"), Sx = lw.Object, xx = Sx.prototype, Cx = Ex ? Sx.getPrototypeOf : function(x) {
	var Be = Dw(x);
	if (xw(Be, Dx)) return Be[Dx];
	var We = Be.constructor;
	return Bw(We) && Be instanceof We ? We.prototype : Be instanceof Sx ? xx : null;
}, Ax = Ww("iterator"), Ox = !1;
[].keys && ("next" in (gx = [].keys()) ? (hx = Cx(Cx(gx))) !== Object.prototype && (px = hx) : Ox = !0), (px == null || Rw((function() {
	var x = {};
	return px[Ax].call(x) !== x;
}))) && (px = {}), Bw(px[Ax]) || UE(px, Ax, (function() {
	return this;
}));
var Bx = {
	IteratorPrototype: px,
	BUGGY_SAFARI_ITERATORS: Ox
}, Fx = bE.f, Tx = Ww("toStringTag"), _x = function(x, Be, We) {
	x && !xw(x = We ? x : x.prototype, Tx) && Fx(x, Tx, {
		configurable: !0,
		value: Be
	});
}, Px = Bx.IteratorPrototype, jx = function() {
	return this;
}, Nx = lw.String, Ix = lw.TypeError, Lx = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var x, Be = !1, We = {};
	try {
		(x = mw(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(We, []), Be = We instanceof Array;
	} catch {}
	return function(We, St) {
		return nE(We), function(x) {
			if (typeof x == "object" || Bw(x)) return x;
			throw Ix("Can't set " + Nx(x) + " as a prototype");
		}(St), Be ? x(We, St) : We.__proto__ = St, We;
	};
}() : void 0), Rx = VE.PROPER, Mx = VE.CONFIGURABLE, zx = Bx.IteratorPrototype, $x = Bx.BUGGY_SAFARI_ITERATORS, Hx = Ww("iterator"), Vx = function() {
	return this;
}, Ux = function(x, Be, We, St, Kn, _r, Li) {
	(function(x, Be, We, St) {
		var Kn = Be + " Iterator";
		x.prototype = NS(Px, { next: wE(1, We) }), _x(x, Kn, !1), ZS[Kn] = jx;
	})(We, Be, St);
	var fa, Vo, Xo, Tc = function(x) {
		if (x === Kn && Lm) return Lm;
		if (!$x && x in Uu) return Uu[x];
		switch (x) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new We(this, x);
			};
		}
		return function() {
			return new We(this);
		};
	}, Tl = Be + " Iterator", Al = !1, Uu = x.prototype, Ff = Uu[Hx] || Uu["@@iterator"] || Kn && Uu[Kn], Lm = !$x && Ff || Tc(Kn), Bm = Be == "Array" && Uu.entries || Ff;
	if (Bm && (fa = Cx(Bm.call(new x()))) !== Object.prototype && fa.next && (Cx(fa) !== zx && (Lx ? Lx(fa, zx) : Bw(fa[Hx]) || UE(fa, Hx, Vx)), _x(fa, Tl, !0)), Rx && Kn == "values" && Ff && Ff.name !== "values" && (Mx ? EE(Uu, "name", "values") : (Al = !0, Lm = function() {
		return oE(Ff, this);
	})), Kn) if (Vo = {
		values: Tc("values"),
		keys: _r ? Lm : Tc("keys"),
		entries: Tc("entries")
	}, Li) for (Xo in Vo) ($x || Al || !(Xo in Uu)) && UE(Uu, Xo, Vo[Xo]);
	else cS({
		target: Be,
		proto: !0,
		forced: $x || Al
	}, Vo);
	return Uu[Hx] !== Lm && UE(Uu, Hx, Lm, { name: Kn }), ZS[Be] = Lm, Vo;
}, Wx = wx.charAt, Gx = ME.set, qx = ME.getterFor("String Iterator");
Ux(String, "String", (function(x) {
	Gx(this, {
		type: "String Iterator",
		string: bS(x),
		index: 0
	});
}), (function() {
	var x, Be = qx(this), We = Be.string, St = Be.index;
	return St >= We.length ? {
		value: void 0,
		done: !0
	} : (x = Wx(We, St), Be.index += x.length, {
		value: x,
		done: !1
	});
}));
var Kx, Yx = zD.f, Xx = mw("".endsWith), Zx = mw("".slice), Jx = Math.min, Qx = WS("endsWith");
cS({
	target: "String",
	proto: !0,
	forced: !!(Qx || (Kx = Yx(String.prototype, "endsWith"), !Kx || Kx.writable)) && !Qx
}, { endsWith: function(x) {
	var Be = bS(ww(this));
	VS(x);
	var We = arguments.length > 1 ? arguments[1] : void 0, St = Be.length, Kn = We === void 0 ? St : Jx(dD(We), St), _r = bS(x);
	return Xx ? Xx(Be, _r, Kn) : Zx(Be, Kn - _r.length, Kn) === _r;
} });
var tC = mw([].join), nC = uD != Object, rC = BD("join", ",");
cS({
	target: "Array",
	proto: !0,
	forced: nC || !rC
}, { join: function(x) {
	return tC(RD(this), x === void 0 ? "," : x);
} });
var oC = Ww("species"), iC = function(x) {
	return Lw >= 51 || !Rw((function() {
		var Be = [];
		return (Be.constructor = {})[oC] = function() {
			return { foo: 1 };
		}, Be[x](Boolean).foo !== 1;
	}));
}, aC = kD.map;
cS({
	target: "Array",
	proto: !0,
	forced: !iC("map")
}, { map: function(x) {
	return aC(this, x, arguments.length > 1 ? arguments[1] : void 0);
} });
var sC = lw.RegExp, lC = Rw((function() {
	var x = sC("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), cC = lC || Rw((function() {
	return !sC("a", "y").sticky;
})), fC = {
	BROKEN_CARET: lC || Rw((function() {
		var x = sC("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: cC,
	UNSUPPORTED_Y: lC
}, dC = lw.RegExp, pC = Rw((function() {
	var x = dC(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), hC = lw.RegExp, gC = Rw((function() {
	var x = hC("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), vC = ME.get, yC = pw("native-string-replace", String.prototype.replace), mC = RegExp.prototype.exec, bC = mC, wC = mw("".charAt), EC = mw("".indexOf), DC = mw("".replace), SC = mw("".slice), xC = function() {
	var x = /a/, Be = /b*/g;
	return oE(mC, x, "a"), oE(mC, Be, "a"), x.lastIndex !== 0 || Be.lastIndex !== 0;
}(), CC = fC.BROKEN_CARET, AC = /()??/.exec("")[1] !== void 0;
(xC || AC || CC || pC || gC) && (bC = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = vC(Vo), Tc = bS(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = oE(bC, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = CC && Vo.sticky, Ff = oE(wS, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = DC(Ff, "y", ""), EC(Ff, "g") === -1 && (Ff += "g"), x_ = SC(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && wC(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), AC && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), xC && (St = Vo.lastIndex), Kn = oE(mC, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = SC(Kn.input, Bm), Kn[0] = SC(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : xC && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), AC && Kn && Kn.length > 1 && oE(yC, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = NS(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var OC = bC;
cS({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== OC
}, { exec: OC });
var kC = Function.prototype, BC = kC.apply, FC = kC.bind, TC = kC.call, _C = typeof Reflect == "object" && Reflect.apply || (FC ? TC.bind(BC) : function() {
	return TC.apply(BC, arguments);
}), PC = Ww("species"), jC = RegExp.prototype, NC = function(x, Be, We, St) {
	var Kn = Ww(x), _r = !Rw((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !Rw((function() {
		var Be = !1, We = /a/;
		return x === "split" && ((We = {}).constructor = {}, We.constructor[PC] = function() {
			return We;
		}, We.flags = "", We[Kn] = /./[Kn]), We.exec = function() {
			return Be = !0, null;
		}, We[Kn](""), !Be;
	}));
	if (!_r || !Li || We) {
		var fa = mw(/./[Kn]), Vo = Be(Kn, ""[x], (function(x, Be, We, St, Kn) {
			var Li = mw(x), Vo = Be.exec;
			return Vo === OC || Vo === jC.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		UE(String.prototype, x, Vo[0]), UE(jC, Kn, Vo[1]);
	}
	St && EE(jC[Kn], "sham", !0);
}, IC = wx.charAt, LC = function(x, Be, We) {
	return Be + (We ? IC(x, Be).length : 1);
}, RC = Math.floor, MC = mw("".charAt), zC = mw("".replace), $C = mw("".slice), HC = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, VC = /\$([$&'`]|\d{1,2})/g, UC = function(x, Be, We, St, Kn, _r) {
	var Li = We + x.length, fa = St.length, Vo = VC;
	return Kn !== void 0 && (Kn = Dw(Kn), Vo = HC), zC(_r, Vo, (function(_r, Vo) {
		var Xo;
		switch (MC(Vo, 0)) {
			case "$": return "$";
			case "&": return x;
			case "`": return $C(Be, 0, We);
			case "'": return $C(Be, Li);
			case "<":
				Xo = Kn[$C(Vo, 1, -1)];
				break;
			default:
				var Tc = +Vo;
				if (Tc === 0) return _r;
				if (Tc > fa) {
					var Tl = RC(Tc / 10);
					return Tl === 0 ? _r : Tl <= fa ? St[Tl - 1] === void 0 ? MC(Vo, 1) : St[Tl - 1] + MC(Vo, 1) : _r;
				}
				Xo = St[Tc - 1];
		}
		return Xo === void 0 ? "" : Xo;
	}));
}, WC = lw.TypeError, GC = function(x, Be) {
	var We = x.exec;
	if (Bw(We)) {
		var St = oE(We, x, Be);
		return St !== null && nE(St), St;
	}
	if (qE(x) === "RegExp") return oE(OC, x, Be);
	throw WC("RegExp#exec called on incompatible receiver");
}, qC = Ww("replace"), KC = Math.max, YC = Math.min, XC = mw([].concat), ZC = mw([].push), JC = mw("".indexOf), QC = mw("".slice), eA = "a".replace(/./, "$0") === "$0", tA = !!/./[qC] && /./[qC]("a", "$0") === "";
NC("replace", (function(x, Be, We) {
	var St = tA ? "$" : "$0";
	return [function(x, We) {
		var St = ww(this), Kn = x == null ? void 0 : dE(x, qC);
		return Kn ? oE(Kn, x, St, We) : oE(Be, bS(St), x, We);
	}, function(x, Kn) {
		var _r = nE(this), Li = bS(x);
		if (typeof Kn == "string" && JC(Kn, St) === -1 && JC(Kn, "$<") === -1) {
			var fa = We(Be, _r, Li, Kn);
			if (fa.done) return fa.value;
		}
		var Vo = Bw(Kn);
		Vo || (Kn = bS(Kn));
		var Xo = _r.global;
		if (Xo) {
			var Tc = _r.unicode;
			_r.lastIndex = 0;
		}
		for (var Tl = [];;) {
			var Al = GC(_r, Li);
			if (Al === null || (ZC(Tl, Al), !Xo)) break;
			bS(Al[0]) === "" && (_r.lastIndex = LC(Li, dD(_r.lastIndex), Tc));
		}
		for (var Uu, Ff = "", Lm = 0, Bm = 0; Bm < Tl.length; Bm++) {
			for (var x_ = bS((Al = Tl[Bm])[0]), uy = KC(YC(cD(Al.index), Li.length), 0), dx = [], kx = 1; kx < Al.length; kx++) ZC(dx, (Uu = Al[kx]) === void 0 ? Uu : String(Uu));
			var eC = Al.groups;
			if (Vo) {
				var uC = XC([x_], dx, uy, Li);
				eC !== void 0 && ZC(uC, eC);
				var _T = bS(_C(Kn, void 0, uC));
			} else _T = UC(x_, Li, uy, dx, eC, Kn);
			uy >= Lm && (Ff += QC(Li, Lm, uy) + _T, Lm = uy + x_.length);
		}
		return Ff + QC(Li, Lm);
	}];
}), !!Rw((function() {
	var x = /./;
	return x.exec = function() {
		var x = [];
		return x.groups = { a: "7" }, x;
	}, "".replace(x, "$<a>") !== "7";
})) || !eA || tA);
var nA = function(x, Be) {
	return nA = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, Be) {
		x.__proto__ = Be;
	} || function(x, Be) {
		for (var We in Be) Object.prototype.hasOwnProperty.call(Be, We) && (x[We] = Be[We]);
	}, nA(x, Be);
};
function rA(x, Be) {
	if (typeof Be != "function" && Be !== null) throw TypeError("Class extends value " + String(Be) + " is not a constructor or null");
	function We() {
		this.constructor = x;
	}
	nA(x, Be), x.prototype = Be === null ? Object.create(Be) : (We.prototype = Be.prototype, new We());
}
var oA = function() {
	return oA = Object.assign || function(x) {
		for (var Be, We = 1, St = arguments.length; We < St; We++) for (var Kn in Be = arguments[We]) Object.prototype.hasOwnProperty.call(Be, Kn) && (x[Kn] = Be[Kn]);
		return x;
	}, oA.apply(this, arguments);
};
function iA(x) {
	var Be = typeof Symbol == "function" && Symbol.iterator, We = Be && x[Be], St = 0;
	if (We) return We.call(x);
	if (x && typeof x.length == "number") return { next: function() {
		return x && St >= x.length && (x = void 0), {
			value: x && x[St++],
			done: !x
		};
	} };
	throw TypeError(Be ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function aA(x, Be) {
	var We = typeof Symbol == "function" && x[Symbol.iterator];
	if (!We) return x;
	var St, Kn, _r = We.call(x), Li = [];
	try {
		for (; (Be === void 0 || Be-- > 0) && !(St = _r.next()).done;) Li.push(St.value);
	} catch (x) {
		Kn = { error: x };
	} finally {
		try {
			St && !St.done && (We = _r.return) && We.call(_r);
		} finally {
			if (Kn) throw Kn.error;
		}
	}
	return Li;
}
function uA(x, Be) {
	for (var We = 0, St = Be.length, Kn = x.length; We < St; We++, Kn++) x[Kn] = Be[We];
	return x;
}
var sA = 0, lA = function() {
	this.id = "" + sA++;
}, cA = ME.set, fA = ME.getterFor("Array Iterator"), dA = Ux(Array, "Array", (function(x, Be) {
	cA(this, {
		type: "Array Iterator",
		target: RD(x),
		index: 0,
		kind: Be
	});
}), (function() {
	var x = fA(this), Be = x.target, We = x.kind, St = x.index++;
	return !Be || St >= Be.length ? (x.target = void 0, {
		value: void 0,
		done: !0
	}) : We == "keys" ? {
		value: St,
		done: !1
	} : We == "values" ? {
		value: Be[St],
		done: !1
	} : {
		value: [St, Be[St]],
		done: !1
	};
}), "values");
ZS.Arguments = ZS.Array, RS("keys"), RS("values"), RS("entries");
var pA = function(x, Be, We) {
	for (var St in Be) UE(x, St, Be[St], We);
	return x;
}, hA = lw.Array, gA = Math.max, vA = function(x, Be, We) {
	for (var St = pD(x), Kn = VD(Be, St), _r = VD(We === void 0 ? St : We, St), Li = hA(gA(_r - Kn, 0)), fa = 0; Kn < _r; Kn++, fa++) tx(Li, fa, x[Kn]);
	return Li.length = fa, Li;
}, yA = ZD.f, mA = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], bA = { f: function(x) {
	return mA && qE(x) == "Window" ? function(x) {
		try {
			return yA(x);
		} catch {
			return vA(mA);
		}
	}(x) : yA(RD(x));
} }, wA = Rw((function() {
	if (typeof ArrayBuffer == "function") {
		var x = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(x) && Object.defineProperty(x, "a", { value: 8 });
	}
})), EA = Object.isExtensible, DA = Rw((function() {
	EA(1);
})) || wA ? function(x) {
	return !!Yw(x) && (!wA || qE(x) != "ArrayBuffer") && (!EA || EA(x));
} : EA, SA = !Rw((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), xA = iw((function(x) {
	var Be = bE.f, We = !1, St = kw("meta"), Kn = 0, _r = function(x) {
		Be(x, St, { value: {
			objectID: "O" + Kn++,
			weakData: {}
		} });
	}, Li = x.exports = {
		enable: function() {
			Li.enable = function() {}, We = !0;
			var x = ZD.f, Be = mw([].splice), Kn = {};
			Kn[St] = 1, x(Kn).length && (ZD.f = function(We) {
				for (var Kn = x(We), _r = 0, Li = Kn.length; _r < Li; _r++) if (Kn[_r] === St) {
					Be(Kn, _r, 1);
					break;
				}
				return Kn;
			}, cS({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: bA.f }));
		},
		fastKey: function(x, Be) {
			if (!Yw(x)) return typeof x == "symbol" ? x : (typeof x == "string" ? "S" : "P") + x;
			if (!xw(x, St)) {
				if (!DA(x)) return "F";
				if (!Be) return "E";
				_r(x);
			}
			return x[St].objectID;
		},
		getWeakData: function(x, Be) {
			if (!xw(x, St)) {
				if (!DA(x)) return !0;
				if (!Be) return !1;
				_r(x);
			}
			return x[St].weakData;
		},
		onFreeze: function(x) {
			return SA && We && DA(x) && !xw(x, St) && _r(x), x;
		}
	};
	TE[St] = !0;
})), CA = lw.TypeError, AA = function(x, Be) {
	this.stopped = x, this.result = Be;
}, OA = AA.prototype, kA = function(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo, Tc = We && We.that, Tl = !(!We || !We.AS_ENTRIES), Al = !(!We || !We.IS_ITERATOR), Uu = !(!We || !We.INTERRUPTED), Ff = oD(Be, Tc), Lm = function(x) {
		return St && YS(St, "normal", x), new AA(!0, x);
	}, Bm = function(x) {
		return Tl ? (nE(x), Uu ? Ff(x[0], x[1], Lm) : Ff(x[0], x[1])) : Uu ? Ff(x, Lm) : Ff(x);
	};
	if (Al) St = x;
	else {
		if (!(Kn = rx(x))) throw CA(lE(x) + " is not iterable");
		if (ex(Kn)) {
			for (_r = 0, Li = pD(x); Li > _r; _r++) if ((fa = Bm(x[_r])) && iE(OA, fa)) return fa;
			return new AA(!1);
		}
		St = ix(x, Kn);
	}
	for (Vo = St.next; !(Xo = oE(Vo, St)).done;) {
		try {
			fa = Bm(Xo.value);
		} catch (x) {
			YS(St, "throw", x);
		}
		if (typeof fa == "object" && fa && iE(OA, fa)) return fa;
	}
	return new AA(!1);
}, BA = lw.TypeError, FA = function(x, Be) {
	if (iE(Be, x)) return x;
	throw BA("Incorrect invocation");
}, TA = function(x, Be, We) {
	var St, Kn;
	return Lx && Bw(St = Be.constructor) && St !== We && Yw(Kn = St.prototype) && Kn !== We.prototype && Lx(x, Kn), x;
}, _A = function(x, Be, We) {
	var St = x.indexOf("Map") !== -1, Kn = x.indexOf("Weak") !== -1, _r = St ? "set" : "add", Li = lw[x], fa = Li && Li.prototype, Vo = Li, Xo = {}, Tc = function(x) {
		var Be = mw(fa[x]);
		UE(fa, x, x == "add" ? function(x) {
			return Be(this, x === 0 ? 0 : x), this;
		} : x == "delete" ? function(x) {
			return !(Kn && !Yw(x)) && Be(this, x === 0 ? 0 : x);
		} : x == "get" ? function(x) {
			return Kn && !Yw(x) ? void 0 : Be(this, x === 0 ? 0 : x);
		} : x == "has" ? function(x) {
			return !(Kn && !Yw(x)) && Be(this, x === 0 ? 0 : x);
		} : function(x, We) {
			return Be(this, x === 0 ? 0 : x, We), this;
		});
	};
	if (sS(x, !Bw(Li) || !(Kn || fa.forEach && !Rw((function() {
		new Li().entries().next();
	}))))) Vo = We.getConstructor(Be, x, St, _r), xA.enable();
	else if (sS(x, !0)) {
		var Tl = new Vo(), Al = Tl[_r](Kn ? {} : -0, 1) != Tl, Uu = Rw((function() {
			Tl.has(1);
		})), Ff = fx((function(x) {
			new Li(x);
		})), Lm = !Kn && Rw((function() {
			for (var x = new Li(), Be = 5; Be--;) x[_r](Be, Be);
			return !x.has(-0);
		}));
		Ff || ((Vo = Be((function(x, Be) {
			FA(x, fa);
			var We = TA(new Li(), x, Vo);
			return Be != null && kA(Be, We[_r], {
				that: We,
				AS_ENTRIES: St
			}), We;
		}))).prototype = fa, fa.constructor = Vo), (Uu || Lm) && (Tc("delete"), Tc("has"), St && Tc("get")), (Lm || Al) && Tc(_r), Kn && fa.clear && delete fa.clear;
	}
	return Xo[x] = Vo, cS({
		global: !0,
		forced: Vo != Li
	}, Xo), _x(Vo, x), Kn || We.setStrong(Vo, x, St), Vo;
}, PA = xA.getWeakData, jA = ME.set, NA = ME.getterFor, IA = kD.find, LA = kD.findIndex, RA = mw([].splice), MA = 0, zA = function(x) {
	return x.frozen ||= new $A();
}, $A = function() {
	this.entries = [];
}, HA = function(x, Be) {
	return IA(x.entries, (function(x) {
		return x[0] === Be;
	}));
};
$A.prototype = {
	get: function(x) {
		var Be = HA(this, x);
		if (Be) return Be[1];
	},
	has: function(x) {
		return !!HA(this, x);
	},
	set: function(x, Be) {
		var We = HA(this, x);
		We ? We[1] = Be : this.entries.push([x, Be]);
	},
	delete: function(x) {
		var Be = LA(this.entries, (function(Be) {
			return Be[0] === x;
		}));
		return ~Be && RA(this.entries, Be, 1), !!~Be;
	}
};
var VA, UA = { getConstructor: function(x, Be, We, St) {
	var Kn = x((function(x, Kn) {
		FA(x, _r), jA(x, {
			type: Be,
			id: MA++,
			frozen: void 0
		}), Kn != null && kA(Kn, x[St], {
			that: x,
			AS_ENTRIES: We
		});
	})), _r = Kn.prototype, Li = NA(Be), fa = function(x, Be, We) {
		var St = Li(x), Kn = PA(nE(Be), !0);
		return !0 === Kn ? zA(St).set(Be, We) : Kn[St.id] = We, x;
	};
	return pA(_r, {
		delete: function(x) {
			var Be = Li(this);
			if (!Yw(x)) return !1;
			var We = PA(x);
			return !0 === We ? zA(Be).delete(x) : We && xw(We, Be.id) && delete We[Be.id];
		},
		has: function(x) {
			var Be = Li(this);
			if (!Yw(x)) return !1;
			var We = PA(x);
			return !0 === We ? zA(Be).has(x) : We && xw(We, Be.id);
		}
	}), pA(_r, We ? {
		get: function(x) {
			var Be = Li(this);
			if (Yw(x)) {
				var We = PA(x);
				return !0 === We ? zA(Be).get(x) : We ? We[Be.id] : void 0;
			}
		},
		set: function(x, Be) {
			return fa(this, x, Be);
		}
	} : { add: function(x) {
		return fa(this, x, !0);
	} }), Kn;
} }, WA = ME.enforce, GA = !lw.ActiveXObject && "ActiveXObject" in lw, qA = function(x) {
	return function() {
		return x(this, arguments.length ? arguments[0] : void 0);
	};
}, KA = _A("WeakMap", qA, UA);
if (kE && GA) {
	VA = UA.getConstructor(qA, "WeakMap", !0), xA.enable();
	var YA = KA.prototype, XA = mw(YA.delete), ZA = mw(YA.has), JA = mw(YA.get), QA = mw(YA.set);
	pA(YA, {
		delete: function(x) {
			if (Yw(x) && !DA(x)) {
				var Be = WA(this);
				return Be.frozen ||= new VA(), XA(this, x) || Be.frozen.delete(x);
			}
			return XA(this, x);
		},
		has: function(x) {
			if (Yw(x) && !DA(x)) {
				var Be = WA(this);
				return Be.frozen ||= new VA(), ZA(this, x) || Be.frozen.has(x);
			}
			return ZA(this, x);
		},
		get: function(x) {
			if (Yw(x) && !DA(x)) {
				var Be = WA(this);
				return Be.frozen ||= new VA(), ZA(this, x) ? JA(this, x) : Be.frozen.get(x);
			}
			return JA(this, x);
		},
		set: function(x, Be) {
			if (Yw(x) && !DA(x)) {
				var We = WA(this);
				We.frozen ||= new VA(), ZA(this, x) ? QA(this, x, Be) : We.frozen.set(x, Be);
			} else QA(this, x, Be);
			return this;
		}
	});
}
var eO = Ww("iterator"), tO = Ww("toStringTag"), nO = dA.values, rO = function(x, Be) {
	if (x) {
		if (x[eO] !== nO) try {
			EE(x, eO, nO);
		} catch {
			x[eO] = nO;
		}
		if (x[tO] || EE(x, tO, Be), QE[Be]) {
			for (var We in dA) if (x[We] !== dA[We]) try {
				EE(x, We, dA[We]);
			} catch {
				x[We] = dA[We];
			}
		}
	}
};
for (var oO in QE) rO(lw[oO] && lw[oO].prototype, oO);
rO(nD, "DOMTokenList");
var iO = /* @__PURE__ */ new WeakMap(), aO = /* @__PURE__ */ new WeakMap(), uO = /* @__PURE__ */ new WeakMap(), sO = /* @__PURE__ */ new WeakMap(), lO = /* @__PURE__ */ new WeakMap(), cO = /* @__PURE__ */ new WeakMap(), fO = /* @__PURE__ */ new WeakMap(), dO = /* @__PURE__ */ new WeakMap(), pO = /* @__PURE__ */ new WeakMap(), hO = /* @__PURE__ */ new WeakMap(), gO = /* @__PURE__ */ new WeakMap(), vO = /* @__PURE__ */ new WeakMap(), yO = /* @__PURE__ */ new WeakMap(), mO = /* @__PURE__ */ new WeakMap(), bO = /* @__PURE__ */ new WeakMap(), wO = /* @__PURE__ */ new WeakMap(), EO = /* @__PURE__ */ new WeakMap(), DO = /* @__PURE__ */ new WeakMap(), SO = /* @__PURE__ */ new WeakMap(), xO = /* @__PURE__ */ new WeakMap(), CO = /* @__PURE__ */ new WeakMap(), AO = /* @__PURE__ */ new WeakMap(), OO = /* @__PURE__ */ new WeakMap(), kO = /* @__PURE__ */ new WeakMap(), BO = /* @__PURE__ */ new WeakMap(), FO = kD.find, TO = !0;
"find" in [] && [,].find((function() {
	TO = !1;
})), cS({
	target: "Array",
	proto: !0,
	forced: TO
}, { find: function(x) {
	return FO(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), RS("find"), cS({ global: !0 }, { globalThis: lw });
var _O = [
	"area",
	"base",
	"basefont",
	"bgsound",
	"br",
	"col",
	"command",
	"embed",
	"frame",
	"hr",
	"image",
	"img",
	"input",
	"isindex",
	"keygen",
	"link",
	"menuitem",
	"meta",
	"nextid",
	"param",
	"source",
	"track",
	"wbr"
];
eh && (Mp.fn.css = eh), ah && (Mp.fn.append = ah), zp && (Mp.fn.addClass = zp), $p && (Mp.fn.removeClass = $p), Hp && (Mp.fn.hasClass = Hp), qp && (Mp.fn.on = qp), yh && (Mp.fn.focus = yh), Vp && (Mp.fn.attr = Vp), Up && (Mp.fn.removeAttr = Up), Jp && (Mp.fn.hide = Jp), Qp && (Mp.fn.show = Qp), Zp && (Mp.fn.offset = Zp), Yp && (Mp.fn.width = Yp), Xp && (Mp.fn.height = Xp), sh && (Mp.fn.parent = sh), lh && (Mp.fn.parents = lh), ih && (Mp.fn.is = ih), Wp && (Mp.fn.dataset = Wp), Gp && (Mp.fn.val = Gp), oh && (Mp.fn.text = oh), rh && (Mp.fn.html = rh), fh && (Mp.fn.children = fh), dh && (Mp.fn.remove = dh), ch && (Mp.fn.find = ch), th && (Mp.fn.each = th), ph && (Mp.fn.empty = ph);
var PO, jO, NO = function(x) {
	return x && x.ownerDocument && x.ownerDocument.defaultView || null;
}, IO = function(x) {
	return LO(x) && x.nodeType === 1;
}, LO = function(x) {
	var Be = NO(x);
	return !!Be && x instanceof Be.Node;
}, RO = function(x) {
	var Be = x && x.anchorNode && NO(x.anchorNode);
	return !!Be && x instanceof Be.Selection;
}, MO = function(x) {
	return LO(x) && x.nodeType === 3;
}, zO = function(x) {
	return window.document.getElementById(x) ?? ((window.document.activeElement?.shadowRoot)?.getElementById(x) || null);
}, $O = function(x, Be, We) {
	for (var St, Kn = x.childNodes, _r = Kn[Be], Li = Be, fa = !1, Vo = !1; (LO(St = _r) && St.nodeType === 8 || IO(_r) && _r.childNodes.length === 0 || IO(_r) && _r.getAttribute("contenteditable") === "false") && (!fa || !Vo);) Li >= Kn.length ? (fa = !0, Li = Be - 1, We = "backward") : Li < 0 ? (Vo = !0, Li = Be + 1, We = "forward") : (_r = Kn[Li], Be = Li, Li += We === "forward" ? 1 : -1);
	return [_r, Be];
}, HO = function(x, Be, We) {
	return aA($O(x, Be, We), 1)[0];
}, VO = function x(Be) {
	var We, St, Kn = "";
	if (MO(Be) && Be.nodeValue) return Be.nodeValue;
	if (IO(Be)) {
		try {
			for (var _r = iA(Array.from(Be.childNodes)), Li = _r.next(); !Li.done; Li = _r.next()) Kn += x(Li.value);
		} catch (x) {
			We = { error: x };
		} finally {
			try {
				Li && !Li.done && (St = _r.return) && St.call(_r);
			} finally {
				if (We) throw We.error;
			}
		}
		var fa = getComputedStyle(Be).getPropertyValue("display");
		fa !== "block" && fa !== "list" && fa !== "table-row" && Be.tagName !== "BR" || (Kn += "\n");
	}
	return Kn;
};
function UO(x, Be) {
	if (!(x instanceof HTMLElement && x.dataset.slateVoid === "true")) for (var We = x.childNodes, St = We.length; St--;) {
		var Kn = We[St], _r = Kn.nodeType;
		_r == 3 ? Be(Kn, x) : _r != 1 && _r != 9 && _r != 11 || UO(Kn, Be);
	}
}
function WO(x) {
	if (x.length === 0) return "";
	var Be = x[0];
	return Be.nodeType === PO.ELEMENT_NODE ? Be.tagName.toLowerCase() : "";
}
(jO = PO ||= {})[jO.ELEMENT_NODE = 1] = "ELEMENT_NODE", jO[jO.TEXT_NODE = 3] = "TEXT_NODE", jO[jO.CDATA_SECTION_NODE = 4] = "CDATA_SECTION_NODE", jO[jO.PROCESSING_INSTRUCTION_NODE = 7] = "PROCESSING_INSTRUCTION_NODE", jO[jO.COMMENT_NODE = 8] = "COMMENT_NODE", jO[jO.DOCUMENT_NODE = 9] = "DOCUMENT_NODE", jO[jO.DOCUMENT_TYPE_NODE = 10] = "DOCUMENT_TYPE_NODE", jO[jO.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 GO = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), qO = 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 KO = typeof navigator < "u" && /Version\/[\d\.]+.*Safari/.test(navigator.userAgent), YO = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), XO = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), ZO = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent);
typeof navigator < "u" && /.*QQBrowser/.test(navigator.userAgent);
var JO = !XO && !YO && typeof globalThis < "u" && globalThis.InputEvent && typeof globalThis.InputEvent.prototype.getTargetRanges == "function", QO = {
	getWindow: function(x) {
		var Be = CO.get(x);
		if (!Be) throw Error("Unable to find a host window element for this editor");
		return Be;
	},
	findKey: function(x, Be) {
		var We = xO.get(Be);
		return We || (We = new lA(), xO.set(Be, We)), We;
	},
	setNewKey: function(x) {
		var Be = new lA();
		xO.set(x, Be);
	},
	findPath: function(x, Be) {
		for (var We = [], St = Be;;) {
			var Kn = bO.get(St);
			if (Kn == null) {
				if (Bf.isEditor(St)) return We;
				break;
			}
			var _r = mO.get(St);
			if (_r == null) break;
			We.unshift(_r), St = Kn;
		}
		throw Error("Unable to find the path for Slate node: " + JSON.stringify(Be));
	},
	findDocumentOrShadowRoot: function(x) {
		if (x.isDestroyed) return window.document;
		var Be = QO.toDOMNode(x, x), We = Be.getRootNode();
		return (We instanceof Document || We instanceof ShadowRoot) && We.getSelection != null ? We : Be.ownerDocument;
	},
	getParentNode: function(x, Be) {
		return bO.get(Be) || null;
	},
	getParentsNodes: function(x, Be) {
		for (var We = [], St = Be; St !== x && St != null;) {
			var Kn = QO.getParentNode(x, St);
			if (Kn == null) break;
			We.push(Kn), St = Kn;
		}
		return We;
	},
	getTopNode: function(x, Be) {
		var We = [QO.findPath(x, Be)[0]];
		return Nf.get(x, We);
	},
	toDOMNode: function(x, Be) {
		var We;
		if (Bf.isEditor(Be)) We = wO.get(x);
		else {
			var St = QO.findKey(x, Be);
			We = DO.get(St);
		}
		if (!We) throw Error("Cannot resolve a DOM node from Slate node: " + JSON.stringify(Be));
		return We;
	},
	hasDOMNode: function(x, Be, We) {
		We === void 0 && (We = {});
		var St, Kn = We.editable, _r = Kn !== void 0 && Kn, Li = QO.toDOMNode(x, x);
		try {
			St = IO(Be) ? Be : Be.parentElement;
		} catch (x) {
			if (!x.message.includes("Permission denied to access property \"nodeType\"")) throw x;
		}
		return !!St && St.closest("[data-slate-editor]") === Li && (!_r || St.isContentEditable || !!St.getAttribute("data-slate-zero-width"));
	},
	toDOMRange: function(x, Be) {
		var We = Be.anchor, St = Be.focus, Kn = qf.isBackward(Be), _r = QO.toDOMPoint(x, We), Li = qf.isCollapsed(Be) ? _r : QO.toDOMPoint(x, St), fa = QO.getWindow(x).document.createRange(), Vo = aA(Kn ? Li : _r, 2), Xo = Vo[0], Tc = Vo[1], Tl = aA(Kn ? _r : Li, 2), Al = Tl[0], Uu = Tl[1], Ff = !!(IO(Xo) ? Xo : Xo.parentElement).getAttribute("data-slate-zero-width"), Lm = !!(IO(Al) ? Al : Al.parentElement).getAttribute("data-slate-zero-width");
		return fa.setStart(Xo, Ff ? 1 : Tc), fa.setEnd(Al, Lm ? 1 : Uu), fa;
	},
	toDOMPoint: function(x, Be) {
		var We, St, Kn, _r = aA(Bf.node(x, Be.path), 1)[0], Li = QO.toDOMNode(x, _r);
		Bf.void(x, { at: Be }) && (Be = {
			path: Be.path,
			offset: 0
		});
		var fa = Array.from(Li.querySelectorAll("[data-slate-string], [data-slate-zero-width]")), Vo = 0;
		try {
			for (var Xo = iA(fa), Tc = Xo.next(); !Tc.done; Tc = Xo.next()) {
				var Tl = Tc.value, Al = Tl.childNodes[0];
				if (Al != null && Al.textContent != null) {
					var Uu = Al.textContent.length, Ff = Tl.getAttribute("data-slate-length"), Lm = Vo + (Ff == null ? Uu : parseInt(Ff, 10));
					if (Be.offset <= Lm) {
						Kn = [Al, Math.min(Uu, Math.max(0, Be.offset - Vo))];
						break;
					}
					Vo = Lm;
				}
			}
		} catch (x) {
			We = { error: x };
		} finally {
			try {
				Tc && !Tc.done && (St = Xo.return) && St.call(Xo);
			} finally {
				if (We) throw We.error;
			}
		}
		if (!Kn) throw Error("Cannot resolve a DOM point from Slate point: " + JSON.stringify(Be));
		return Kn;
	},
	toSlateNode: function(x, Be) {
		var We = IO(Be) ? Be : Be.parentElement;
		We && !We.hasAttribute("data-slate-node") && (We = We.closest("[data-slate-node]"));
		var St = We ? EO.get(We) : null;
		if (!St) throw Error("Cannot resolve a Slate node from DOM node: " + We);
		return St;
	},
	findEventRange: function(x, Be) {
		"nativeEvent" in Be && (Be = Be.nativeEvent);
		var We = Be.clientX, St = Be.clientY, Kn = Be.target;
		if (We == null || St == null) throw Error("Cannot resolve a Slate range from a DOM event: " + Be);
		var _r, Li = QO.toSlateNode(x, Be.target), fa = QO.findPath(x, Li);
		if (Bf.isVoid(x, Li)) {
			var Vo = Kn.getBoundingClientRect(), Xo = x.isInline(Li) ? We - Vo.left < Vo.left + Vo.width - We : St - Vo.top < Vo.top + Vo.height - St, Tc = Bf.point(x, fa, { edge: Xo ? "start" : "end" }), Tl = Xo ? Bf.before(x, Tc) : Bf.after(x, Tc);
			if (Tl) return Bf.range(x, Tl);
		}
		var Al = this.getWindow(x).document;
		if (Al.caretRangeFromPoint) _r = Al.caretRangeFromPoint(We, St);
		else {
			var Uu = Al.caretPositionFromPoint(We, St);
			Uu && ((_r = Al.createRange()).setStart(Uu.offsetNode, Uu.offset), _r.setEnd(Uu.offsetNode, Uu.offset));
		}
		if (!_r) throw Error("Cannot resolve a Slate range from a DOM event: " + Be);
		return QO.toSlateRange(x, _r, {
			exactMatch: !1,
			suppressThrow: !1
		});
	},
	toSlateRange: function(x, Be, We) {
		var St, Kn, _r, Li, fa, Vo = We.exactMatch, Xo = We.suppressThrow;
		if ((RO(Be) ? Be.anchorNode : Be.startContainer) && (RO(Be) ? (St = Be.anchorNode, Kn = Be.anchorOffset, _r = Be.focusNode, Li = Be.focusOffset, fa = ZO && window.document.activeElement && window.document.activeElement.shadowRoot ? Be.anchorNode === Be.focusNode && Be.anchorOffset === Be.focusOffset : Be.isCollapsed) : (St = Be.startContainer, Kn = Be.startOffset, _r = Be.endContainer, Li = Be.endOffset, fa = Be.collapsed)), St == null || _r == null || Kn == null || Li == null) throw Error("Cannot resolve a Slate range from DOM range: " + Be);
		var Tc = QO.toSlatePoint(x, [St, Kn], {
			exactMatch: Vo,
			suppressThrow: Xo
		});
		if (!Tc) return null;
		var Tl = fa ? Tc : QO.toSlatePoint(x, [_r, Li], {
			exactMatch: Vo,
			suppressThrow: Xo
		});
		if (!Tl) return null;
		var Al = {
			anchor: Tc,
			focus: Tl
		};
		return qf.isExpanded(Al) && qf.isForward(Al) && IO(_r) && Bf.void(x, {
			at: Al.focus,
			mode: "highest"
		}) && (Al = Bf.unhangRange(x, Al, { voids: !0 })), Al;
	},
	toSlatePoint: function(x, Be, We) {
		var St, Kn = We.exactMatch, _r = We.suppressThrow, Li = aA(Kn ? Be : function(x) {
			var Be, We = aA(x, 2), St = We[0], Kn = We[1];
			if (IO(St) && St.childNodes.length) {
				var _r = Kn === St.childNodes.length, Li = _r ? Kn - 1 : Kn;
				for (St = (Be = aA($O(St, Li, _r ? "backward" : "forward"), 2))[0], _r = (Li = Be[1]) < Kn; IO(St) && St.childNodes.length;) {
					var fa = _r ? St.childNodes.length - 1 : 0;
					St = HO(St, fa, _r ? "backward" : "forward");
				}
				Kn = _r && St.textContent != null ? St.textContent.length : 0;
			}
			return [St, Kn];
		}(Be), 2), fa = Li[0], Vo = Li[1], Xo = fa.parentNode, Tc = null, Tl = 0;
		if (Xo) {
			var Al = Xo.closest("[data-slate-void=\"true\"]"), Uu = Xo.closest("[data-slate-leaf]"), Ff = null;
			if (Uu) {
				Tc = Uu.closest("[data-slate-node=\"text\"]");
				var Lm = QO.getWindow(x).document.createRange();
				Lm.setStart(Tc, 0), Lm.setEnd(fa, Vo);
				var Bm = Lm.cloneContents();
				uA(uA([], aA(xp(Bm.querySelectorAll("[data-slate-zero-width]")))), aA(xp(Bm.querySelectorAll("[contenteditable=false]")))).forEach((function(x) {
					x.parentNode.removeChild(x);
				})), Tl = Bm.textContent.length, Ff = Tc;
			} else Al && ((Uu = Al.querySelector("[data-slate-leaf]")) ? (Tc = Uu.closest("[data-slate-node=\"text\"]"), Tl = (Ff = Uu).textContent.length, Ff.querySelectorAll("[data-slate-zero-width]").forEach((function(x) {
				Tl -= x.textContent.length;
			}))) : Tl = 1);
			Ff && Tl === Ff.textContent.length && (Xo.hasAttribute("data-slate-zero-width") || qO && (St = Ff.textContent) != null && St.endsWith("\n")) && Tl--;
		}
		if (!Tc) {
			if (_r) return null;
			throw Error("Cannot resolve a Slate point from DOM point: " + Be);
		}
		var x_ = QO.toSlateNode(x, Tc);
		return {
			path: QO.findPath(x, x_),
			offset: Tl
		};
	},
	hasRange: function(x, Be) {
		var We = Be.anchor, St = Be.focus;
		return Bf.hasPath(x, We.path) && Bf.hasPath(x, St.path);
	},
	getNodeType: function(x) {
		return Sf.isElement(x) ? x.type : "";
	},
	checkNodeType: function(x, Be) {
		return this.getNodeType(x) === Be;
	},
	getNodesStr: function(x) {
		return x.map((function(x) {
			return Nf.string(x);
		})).join("");
	},
	getSelectedElems: function(x) {
		var Be, We, St = [], Kn = Bf.nodes(x, { universal: !0 });
		try {
			for (var _r = iA(Kn), Li = _r.next(); !Li.done; Li = _r.next()) {
				var fa = aA(Li.value, 1)[0];
				Sf.isElement(fa) && St.push(fa);
			}
		} catch (x) {
			Be = { error: x };
		} finally {
			try {
				Li && !Li.done && (We = _r.return) && We.call(_r);
			} finally {
				if (Be) throw Be.error;
			}
		}
		return St;
	},
	getSelectedNodeByType: function(x, Be) {
		var We = this, St = aA(Bf.nodes(x, {
			match: function(x) {
				return We.checkNodeType(x, Be);
			},
			universal: !0
		}), 1)[0];
		return St == null ? null : St[0];
	},
	getSelectedTextNode: function(x) {
		var Be = aA(Bf.nodes(x, {
			match: function(x) {
				return ed.isText(x);
			},
			universal: !0
		}), 1)[0];
		return Be == null ? null : Be[0];
	},
	isNodeSelected: function(x, Be) {
		var We = aA(Bf.nodes(x, {
			match: function(x) {
				return x === Be;
			},
			universal: !0
		}), 1)[0];
		return We != null && aA(We, 1)[0] === Be;
	},
	isSelectionAtLineEnd: function(x, Be) {
		var We = x.selection;
		return !!We && (Bf.isEnd(x, We.anchor, Be) || Bf.isEnd(x, We.focus, Be));
	},
	getTextarea: function(x) {
		var Be = iO.get(x);
		if (Be == null) throw Error("Cannot find textarea instance by editor");
		return Be;
	},
	getToolbar: function(x) {
		return sO.get(x) || null;
	},
	getHoverbar: function(x) {
		return cO.get(x) || null;
	},
	normalizeContent: function(x) {
		x.children.forEach((function(Be, We) {
			x.normalizeNode([Be, [We]]);
		}));
	},
	getLeftLengthOfMaxLength: function(x) {
		var Be = x.getConfig(), We = Be.maxLength, St = Be.onMaxLength;
		if (typeof We != "number" || We <= 0) return Infinity;
		var Kn = We - x.getText().replace(/\r|\n|(\r\n)/g, "").length;
		return Kn <= 0 && St && St(x), Kn;
	},
	cleanExposedTexNodeInSelectionBlock: function(x) {
		var Be, We, St, Kn, _r = QO.getTextarea(x).$textArea?.[0].childNodes;
		if (_r) try {
			for (var Li = iA(Array.from(_r)), fa = Li.next(); !fa.done; fa = Li.next()) {
				var Vo = fa.value;
				if (Vo.nodeType !== 3) break;
				Vo.remove();
			}
		} catch (x) {
			Be = { error: x };
		} finally {
			try {
				fa && !fa.done && (We = Li.return) && We.call(Li);
			} finally {
				if (Be) throw Be.error;
			}
		}
		var Xo = Bf.nodes(x, {
			match: function(Be) {
				return !(!Sf.isElement(Be) || x.isInline(Be));
			},
			universal: !0
		});
		try {
			for (var Tc = iA(Xo), Tl = Tc.next(); !Tl.done; Tl = Tc.next()) {
				var Al = Tl.value;
				if (Al != null) {
					var Uu = Al[0];
					UO(QO.toDOMNode(x, Uu), (function(x, Be) {
						var We = Mp(Be);
						We.attr("data-slate-string") || We.attr("data-slate-zero-width") || We.attr("data-w-e-reserve") || Be.removeChild(x);
					}));
				}
			}
		} catch (x) {
			St = { error: x };
		} finally {
			try {
				Tl && !Tl.done && (Kn = Tc.return) && Kn.call(Tc);
			} finally {
				if (St) throw St.error;
			}
		}
	},
	isLastNode: function(x, Be) {
		var We = x.children || [];
		return We[We.length - 1] === Be;
	},
	genEmptyParagraph: function() {
		return {
			type: "paragraph",
			children: [{ text: "" }]
		};
	},
	isSelectedVoidNode: function(x) {
		var Be, We, St = Bf.nodes(x, { match: function(Be) {
			return x.isVoid(Be);
		} }), Kn = 0;
		try {
			for (var _r = iA(St), Li = _r.next(); !Li.done; Li = _r.next()) Li.value, Kn++;
		} catch (x) {
			Be = { error: x };
		} finally {
			try {
				Li && !Li.done && (We = _r.return) && We.call(_r);
			} finally {
				if (Be) throw Be.error;
			}
		}
		return Kn > 0;
	},
	isSelectedEmptyParagraph: function(x) {
		var Be = x.selection;
		if (Be == null || qf.isExpanded(Be)) return !1;
		var We = QO.getSelectedNodeByType(x, "paragraph");
		if (We === null) return !1;
		var St = We.children;
		return St.length === 1 && (St[0].text === "" || void 0);
	},
	isEmptyPath: function(x, Be) {
		var We = Bf.node(x, Be);
		if (We == null) return !1;
		var St = aA(We, 1)[0].children;
		return St.length === 1 && St[0].text === "";
	}
}, ek = 1, tk = {}, nk = {}, rk = kD.filter;
cS({
	target: "Array",
	proto: !0,
	forced: !iC("filter")
}, { filter: function(x) {
	return rk(this, x, arguments.length > 1 ? arguments[1] : void 0);
} });
var ik = "	\n\v\f\r \xA0               \u2028\u2029", ak = mw("".replace), uk = "[" + ik + "]", sk = RegExp("^" + uk + uk + "*"), lk = RegExp(uk + uk + "*$"), ck = function(x) {
	return function(Be) {
		var We = bS(ww(Be));
		return 1 & x && (We = ak(We, sk, "")), 2 & x && (We = ak(We, lk, "")), We;
	};
}, fk = {
	start: ck(1),
	end: ck(2),
	trim: ck(3)
}, dk = VE.PROPER, pk = fk.trim;
cS({
	target: "String",
	proto: !0,
	forced: function(x) {
		return Rw((function() {
			return !!ik[x]() || "​…᠎"[x]() !== "​…᠎" || dk && ik[x].name !== x;
		}));
	}("trim")
}, { trim: function() {
	return pk(this);
} });
var hk = [], gk = {};
function vk(x, Be, We) {
	var St = We.isInline(x) ? "span" : "div";
	return "<" + St + ">" + Be + "</" + St + ">";
}
var yk, mk, bk, wk, Ek = lw.Promise, Dk = Ww("species"), Sk = function(x) {
	var Be = Tw(x), We = bE.f;
	Kw && Be && !Be[Dk] && We(Be, Dk, {
		configurable: !0,
		get: function() {
			return this;
		}
	});
}, xk = lw.TypeError, Ck = Ww("species"), Ak = function(x, Be) {
	var We, St = nE(x).constructor;
	return St === void 0 || (We = nE(St)[Ck]) == null ? Be : function(x) {
		if (DD(x)) return x;
		throw xk(lE(x) + " is not a constructor");
	}(We);
}, Ok = mw([].slice), kk = /(?:ipad|iphone|ipod).*applewebkit/i.test(_w), Bk = qE(lw.process) == "process", Fk = lw.setImmediate, Tk = lw.clearImmediate, _k = lw.process, Pk = lw.Dispatch, jk = lw.Function, Nk = lw.MessageChannel, Ik = lw.String, Lk = 0, Rk = {};
try {
	yk = lw.location;
} catch {}
var Mk = function(x) {
	if (xw(Rk, x)) {
		var Be = Rk[x];
		delete Rk[x], Be();
	}
}, zk = function(x) {
	return function() {
		Mk(x);
	};
}, $k = function(x) {
	Mk(x.data);
}, Hk = function(x) {
	lw.postMessage(Ik(x), yk.protocol + "//" + yk.host);
};
Fk && Tk || (Fk = function(x) {
	var Be = Ok(arguments, 1);
	return Rk[++Lk] = function() {
		_C(Bw(x) ? x : jk(x), void 0, Be);
	}, mk(Lk), Lk;
}, Tk = function(x) {
	delete Rk[x];
}, Bk ? mk = function(x) {
	_k.nextTick(zk(x));
} : Pk && Pk.now ? mk = function(x) {
	Pk.now(zk(x));
} : Nk && !kk ? (wk = (bk = new Nk()).port2, bk.port1.onmessage = $k, mk = oD(wk.postMessage, wk)) : lw.addEventListener && Bw(lw.postMessage) && !lw.importScripts && yk && yk.protocol !== "file:" && !Rw(Hk) ? (mk = Hk, lw.addEventListener("message", $k, !1)) : mk = "onreadystatechange" in Jw("script") ? function(x) {
	BS.appendChild(Jw("script")).onreadystatechange = function() {
		BS.removeChild(this), Mk(x);
	};
} : function(x) {
	setTimeout(zk(x), 0);
});
var Vk, Uk, Wk, Gk, qk, Kk, Yk, Xk, Zk = {
	set: Fk,
	clear: Tk
}, Jk = /ipad|iphone|ipod/i.test(_w) && lw.Pebble !== void 0, Qk = /web0s(?!.*chrome)/i.test(_w), eB = zD.f, tB = Zk.set, nB = lw.MutationObserver || lw.WebKitMutationObserver, rB = lw.document, oB = lw.process, iB = lw.Promise, aB = eB(lw, "queueMicrotask"), uB = aB && aB.value;
uB || (Vk = function() {
	var x, Be;
	for (Bk && (x = oB.domain) && x.exit(); Uk;) {
		Be = Uk.fn, Uk = Uk.next;
		try {
			Be();
		} catch (x) {
			throw Uk ? Gk() : Wk = void 0, x;
		}
	}
	Wk = void 0, x && x.enter();
}, kk || Bk || Qk || !nB || !rB ? !Jk && iB && iB.resolve ? ((Yk = iB.resolve(void 0)).constructor = iB, Xk = oD(Yk.then, Yk), Gk = function() {
	Xk(Vk);
}) : Bk ? Gk = function() {
	oB.nextTick(Vk);
} : (tB = oD(tB, lw), Gk = function() {
	tB(Vk);
}) : (qk = !0, Kk = rB.createTextNode(""), new nB(Vk).observe(Kk, { characterData: !0 }), Gk = function() {
	Kk.data = qk = !qk;
}));
var sB, lB, cB, fB, dB = uB || function(x) {
	var Be = {
		fn: x,
		next: void 0
	};
	Wk && (Wk.next = Be), Uk || (Uk = Be, Gk()), Wk = Be;
}, pB = function(x) {
	var Be, We;
	this.promise = new x((function(x, St) {
		if (Be !== void 0 || We !== void 0) throw TypeError("Bad Promise constructor");
		Be = x, We = St;
	})), this.resolve = fE(Be), this.reject = fE(We);
}, hB = { f: function(x) {
	return new pB(x);
} }, gB = function(x) {
	try {
		return {
			error: !1,
			value: x()
		};
	} catch (x) {
		return {
			error: !0,
			value: x
		};
	}
}, vB = typeof window == "object", yB = Zk.set, mB = Ww("species"), bB = "Promise", wB = ME.getterFor(bB), EB = ME.set, DB = ME.getterFor(bB), SB = Ek && Ek.prototype, xB = Ek, CB = SB, AB = lw.TypeError, OB = lw.document, kB = lw.process, BB = hB.f, FB = BB, TB = !!(OB && OB.createEvent && lw.dispatchEvent), _B = Bw(lw.PromiseRejectionEvent), PB = !1, jB = sS(bB, (function() {
	var x = AE(xB), Be = x !== String(xB);
	if (!Be && Lw === 66) return !0;
	if (Lw >= 51 && /native code/.test(x)) return !1;
	var We = new xB((function(x) {
		x(1);
	})), St = function(x) {
		x((function() {}), (function() {}));
	};
	return (We.constructor = {})[mB] = St, !(PB = We.then((function() {})) instanceof St) || !Be && vB && !_B;
})), NB = jB || !fx((function(x) {
	xB.all(x).catch((function() {}));
})), IB = function(x) {
	var Be;
	return !(!Yw(x) || !Bw(Be = x.then)) && Be;
}, LB = function(x, Be) {
	if (!x.notified) {
		x.notified = !0;
		var We = x.reactions;
		dB((function() {
			for (var St = x.value, Kn = x.state == 1, _r = 0; We.length > _r;) {
				var Li, fa, Vo, Xo = We[_r++], Tc = Kn ? Xo.ok : Xo.fail, Tl = Xo.resolve, Al = Xo.reject, Uu = Xo.domain;
				try {
					Tc ? (Kn || (x.rejection === 2 && $B(x), x.rejection = 1), !0 === Tc ? Li = St : (Uu && Uu.enter(), Li = Tc(St), Uu && (Uu.exit(), Vo = !0)), Li === Xo.promise ? Al(AB("Promise-chain cycle")) : (fa = IB(Li)) ? oE(fa, Li, Tl, Al) : Tl(Li)) : Al(St);
				} catch (x) {
					Uu && !Vo && Uu.exit(), Al(x);
				}
			}
			x.reactions = [], x.notified = !1, Be && !x.rejection && MB(x);
		}));
	}
}, RB = function(x, Be, We) {
	var St, Kn;
	TB ? ((St = OB.createEvent("Event")).promise = Be, St.reason = We, St.initEvent(x, !1, !0), lw.dispatchEvent(St)) : St = {
		promise: Be,
		reason: We
	}, !_B && (Kn = lw["on" + x]) ? Kn(St) : x === "unhandledrejection" && function(x, Be) {
		var We = lw.console;
		We && We.error && (arguments.length == 1 ? We.error(x) : We.error(x, Be));
	}("Unhandled promise rejection", We);
}, MB = function(x) {
	oE(yB, lw, (function() {
		var Be, We = x.facade, St = x.value;
		if (zB(x) && (Be = gB((function() {
			Bk ? kB.emit("unhandledRejection", St, We) : RB("unhandledrejection", We, St);
		})), x.rejection = Bk || zB(x) ? 2 : 1, Be.error)) throw Be.value;
	}));
}, zB = function(x) {
	return x.rejection !== 1 && !x.parent;
}, $B = function(x) {
	oE(yB, lw, (function() {
		var Be = x.facade;
		Bk ? kB.emit("rejectionHandled", Be) : RB("rejectionhandled", Be, x.value);
	}));
}, HB = function(x, Be, We) {
	return function(St) {
		x(Be, St, We);
	};
}, VB = function(x, Be, We) {
	x.done || (x.done = !0, We && (x = We), x.value = Be, x.state = 2, LB(x, !0));
}, UB = function(x, Be, We) {
	if (!x.done) {
		x.done = !0, We && (x = We);
		try {
			if (x.facade === Be) throw AB("Promise can't be resolved itself");
			var St = IB(Be);
			St ? dB((function() {
				var We = { done: !1 };
				try {
					oE(St, Be, HB(UB, We, x), HB(VB, We, x));
				} catch (Be) {
					VB(We, Be, x);
				}
			})) : (x.value = Be, x.state = 1, LB(x, !1));
		} catch (Be) {
			VB({ done: !1 }, Be, x);
		}
	}
};
if (jB && (CB = (xB = function(x) {
	FA(this, CB), fE(x), oE(sB, this);
	var Be = wB(this);
	try {
		x(HB(UB, Be), HB(VB, Be));
	} catch (x) {
		VB(Be, x);
	}
}).prototype, (sB = function(x) {
	EB(this, {
		type: bB,
		done: !1,
		notified: !1,
		parent: !1,
		reactions: [],
		rejection: !1,
		state: 0,
		value: void 0
	});
}).prototype = pA(CB, {
	then: function(x, Be) {
		var We = DB(this), St = We.reactions, Kn = BB(Ak(this, xB));
		return Kn.ok = !Bw(x) || x, Kn.fail = Bw(Be) && Be, Kn.domain = Bk ? kB.domain : void 0, We.parent = !0, St[St.length] = Kn, We.state != 0 && LB(We, !1), Kn.promise;
	},
	catch: function(x) {
		return this.then(void 0, x);
	}
}), lB = function() {
	var x = new sB(), Be = wB(x);
	this.promise = x, this.resolve = HB(UB, Be), this.reject = HB(VB, Be);
}, hB.f = BB = function(x) {
	return x === xB || x === cB ? new lB(x) : FB(x);
}, Bw(Ek) && SB !== Object.prototype)) {
	fB = SB.then, PB || (UE(SB, "then", (function(x, Be) {
		var We = this;
		return new xB((function(x, Be) {
			oE(fB, We, x, Be);
		})).then(x, Be);
	}), { unsafe: !0 }), UE(SB, "catch", CB.catch, { unsafe: !0 }));
	try {
		delete SB.constructor;
	} catch {}
	Lx && Lx(SB, CB);
}
cS({
	global: !0,
	wrap: !0,
	forced: jB
}, { Promise: xB }), _x(xB, bB, !1), Sk(bB), cB = Tw(bB), cS({
	target: bB,
	stat: !0,
	forced: jB
}, { reject: function(x) {
	var Be = BB(this);
	return oE(Be.reject, void 0, x), Be.promise;
} }), cS({
	target: bB,
	stat: !0,
	forced: jB
}, { resolve: function(x) {
	return function(x, Be) {
		if (nE(x), Yw(Be) && Be.constructor === x) return Be;
		var We = hB.f(x);
		return (0, We.resolve)(Be), We.promise;
	}(this, x);
} }), cS({
	target: bB,
	stat: !0,
	forced: NB
}, {
	all: function(x) {
		var Be = this, We = BB(Be), St = We.resolve, Kn = We.reject, _r = gB((function() {
			var We = fE(Be.resolve), _r = [], Li = 0, fa = 1;
			kA(x, (function(x) {
				var Vo = Li++, Xo = !1;
				fa++, oE(We, Be, x).then((function(x) {
					Xo || (Xo = !0, _r[Vo] = x, --fa || St(_r));
				}), Kn);
			})), --fa || St(_r);
		}));
		return _r.error && Kn(_r.value), We.promise;
	},
	race: function(x) {
		var Be = this, We = BB(Be), St = We.reject, Kn = gB((function() {
			var Kn = fE(Be.resolve);
			kA(x, (function(x) {
				oE(Kn, Be, x).then(We.resolve, St);
			}));
		}));
		return Kn.error && St(Kn.value), We.promise;
	}
});
var WB = fC.UNSUPPORTED_Y, GB = Math.min, qB = [].push, KB = mw(/./.exec), YB = mw(qB), XB = mw("".slice);
function ZB(x) {
	Promise.resolve().then(x);
}
function JB(x, Be) {
	return Sf.isElement(x) ? function(x, Be) {
		var We = x.type, St = We === void 0 ? "" : We, Kn = x.children, _r = Kn === void 0 ? [] : Kn, Li = Bf.isVoid(Be, x), fa = "";
		Li || (fa = _r.map((function(x) {
			return JB(x, Be);
		})).join(""));
		var Vo = function(x) {
			return gk[x] || vk;
		}(St)(x, fa, Be), Xo = "";
		if (Xo = typeof Vo == "string" ? Vo : Vo.html || "", Li || hk.forEach((function(Be) {
			return Xo = Be(x, Xo);
		})), typeof Vo == "string") return Xo;
		var Tc = Vo.prefix, Tl = Tc === void 0 ? "" : Tc, Al = Vo.suffix, Uu = Al === void 0 ? "" : Al;
		return Tl && (Xo = Tl + Xo), Uu && (Xo += Uu), Xo;
	}(x, Be) : function(x, Be) {
		var We = x.text;
		if (We == null) throw Error("Current node is not slate Text " + JSON.stringify(x));
		var St = We;
		St = function(x) {
			return x.replace(/ {2}/g, " &nbsp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/®/g, "&reg;").replace(/©/g, "&copy;").replace(/™/g, "&trade;");
		}(St);
		var Kn = QO.getParentsNodes(Be, x).some((function(x) {
			return QO.getNodeType(x) === "pre";
		}));
		if (Kn || (St = St.replace(/\r\n|\r|\n/g, "<br>")), Kn && (St = St.replace(/&nbsp;/g, " ")), St === "") {
			var _r = QO.getParentNode(null, x);
			if (!_r || _r.children.length !== 0) return St;
			St = "<br>";
		}
		return hk.forEach((function(Be) {
			return St = Be(x, St);
		})), St;
	}(x, Be);
}
function QB(x) {
	return "w-e-element-" + x;
}
NC("split", (function(x, Be, We) {
	var St;
	return St = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(x, We) {
		var St = bS(ww(this)), Kn = We === void 0 ? 4294967295 : We >>> 0;
		if (Kn === 0) return [];
		if (x === void 0) return [St];
		if (!$S(x)) return oE(Be, St, x, Kn);
		for (var _r, Li, fa, Vo = [], Xo = (x.ignoreCase ? "i" : "") + (x.multiline ? "m" : "") + (x.unicode ? "u" : "") + (x.sticky ? "y" : ""), Tc = 0, Tl = new RegExp(x.source, Xo + "g"); (_r = oE(OC, Tl, St)) && !((Li = Tl.lastIndex) > Tc && (YB(Vo, XB(St, Tc, _r.index)), _r.length > 1 && _r.index < St.length && _C(qB, Vo, vA(_r, 1)), fa = _r[0].length, Tc = Li, Vo.length >= Kn));) Tl.lastIndex === _r.index && Tl.lastIndex++;
		return Tc === St.length ? !fa && KB(Tl, "") || YB(Vo, "") : YB(Vo, XB(St, Tc)), Vo.length > Kn ? vA(Vo, 0, Kn) : Vo;
	} : "0".split(void 0, 0).length ? function(x, We) {
		return x === void 0 && We === 0 ? [] : oE(Be, this, x, We);
	} : Be, [function(Be, We) {
		var Kn = ww(this), _r = Be == null ? void 0 : dE(Be, x);
		return _r ? oE(_r, Be, Kn, We) : oE(St, bS(Kn), Be, We);
	}, function(x, Kn) {
		var _r = nE(this), Li = bS(x), fa = We(St, _r, Li, Kn, St !== Be);
		if (fa.done) return fa.value;
		var Vo = Ak(_r, RegExp), Xo = _r.unicode, Tc = (_r.ignoreCase ? "i" : "") + (_r.multiline ? "m" : "") + (_r.unicode ? "u" : "") + (WB ? "g" : "y"), Tl = new Vo(WB ? "^(?:" + _r.source + ")" : _r, Tc), Al = Kn === void 0 ? 4294967295 : Kn >>> 0;
		if (Al === 0) return [];
		if (Li.length === 0) return GC(Tl, Li) === null ? [Li] : [];
		for (var Uu = 0, Ff = 0, Lm = []; Ff < Li.length;) {
			Tl.lastIndex = WB ? 0 : Ff;
			var Bm, x_ = GC(Tl, WB ? XB(Li, Ff) : Li);
			if (x_ === null || (Bm = GB(dD(Tl.lastIndex + (WB ? Ff : 0)), Li.length)) === Uu) Ff = LC(Li, Ff, Xo);
			else {
				if (YB(Lm, XB(Li, Uu, Ff)), Lm.length === Al) return Lm;
				for (var uy = 1; uy <= x_.length - 1; uy++) if (YB(Lm, x_[uy]), Lm.length === Al) return Lm;
				Ff = Uu = Bm;
			}
		}
		return YB(Lm, XB(Li, Uu)), Lm;
	}];
}), !!Rw((function() {
	var x = /(?:)/, Be = x.exec;
	x.exec = function() {
		return Be.apply(this, arguments);
	};
	var We = "ab".split(x);
	return We.length !== 2 || We[0] !== "a" || We[1] !== "b";
})), WB);
var eF = function(x, Be) {
	var We = (Be.top + Be.bottom) / 2;
	return x.top <= We && x.bottom >= We;
}, tF = function(x, Be, We) {
	var St = QO.toDOMRange(x, Be).getBoundingClientRect(), Kn = QO.toDOMRange(x, We).getBoundingClientRect();
	return eF(St, Kn) && eF(Kn, St);
}, nF = [
	"span",
	"b",
	"strong",
	"i",
	"em",
	"s",
	"strike",
	"u",
	"font",
	"sub",
	"sup"
], rF = [], oF = [], iF = {}, aF = bE.f, uF = ZD.f, sF = ME.enforce, lF = Ww("match"), cF = lw.RegExp, fF = cF.prototype, dF = lw.SyntaxError, pF = mw(wS), hF = mw(fF.exec), gF = mw("".charAt), vF = mw("".replace), yF = mw("".indexOf), mF = mw("".slice), bF = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, wF = /a/g, EF = /a/g, DF = new cF(wF) !== wF, SF = fC.MISSED_STICKY, xF = fC.UNSUPPORTED_Y;
if (sS("RegExp", Kw && (!DF || SF || pC || gC || Rw((function() {
	return EF[lF] = !1, cF(wF) != wF || cF(EF) == EF || cF(wF, "i") != "/a/i";
}))))) {
	for (var AF = function(x, Be) {
		var We, St, Kn, _r, Li, fa, Vo = iE(fF, this), Xo = $S(x), Tc = Be === void 0, Tl = [], Al = x;
		if (!Vo && Xo && Tc && x.constructor === AF) return x;
		if ((Xo || iE(fF, x)) && (x = x.source, Tc && (Be = "flags" in Al ? Al.flags : pF(Al))), x = x === void 0 ? "" : bS(x), Be = Be === void 0 ? "" : bS(Be), Al = x, pC && "dotAll" in wF && (St = !!Be && yF(Be, "s") > -1) && (Be = vF(Be, /s/g, "")), We = Be, SF && "sticky" in wF && (Kn = !!Be && yF(Be, "y") > -1) && xF && (Be = vF(Be, /y/g, "")), gC && (_r = function(x) {
			for (var Be, We = x.length, St = 0, Kn = "", _r = [], Li = {}, fa = !1, Vo = !1, Xo = 0, Tc = ""; St <= We; St++) {
				if ((Be = gF(x, St)) === "\\") Be += gF(x, ++St);
				else if (Be === "]") fa = !1;
				else if (!fa) switch (!0) {
					case Be === "[":
						fa = !0;
						break;
					case Be === "(":
						hF(bF, mF(x, St + 1)) && (St += 2, Vo = !0), Kn += Be, Xo++;
						continue;
					case Be === ">" && Vo:
						if (Tc === "" || xw(Li, Tc)) throw new dF("Invalid capture group name");
						Li[Tc] = !0, _r[_r.length] = [Tc, Xo], Vo = !1, Tc = "";
						continue;
				}
				Vo ? Tc += Be : Kn += Be;
			}
			return [Kn, _r];
		}(x), x = _r[0], Tl = _r[1]), Li = TA(cF(x, Be), Vo ? this : fF, AF), (St || Kn || Tl.length) && (fa = sF(Li), St && (fa.dotAll = !0, fa.raw = AF(function(x) {
			for (var Be, We = x.length, St = 0, Kn = "", _r = !1; St <= We; St++) (Be = gF(x, St)) === "\\" ? Kn += Be + gF(x, ++St) : _r || Be !== "." ? (Be === "[" ? _r = !0 : Be === "]" && (_r = !1), Kn += Be) : Kn += "[\\s\\S]";
			return Kn;
		}(x), We)), Kn && (fa.sticky = !0), Tl.length && (fa.groups = Tl)), x !== Al) try {
			EE(Li, "source", Al === "" ? "(?:)" : Al);
		} catch {}
		return Li;
	}, OF = function(x) {
		x in AF || aF(AF, x, {
			configurable: !0,
			get: function() {
				return cF[x];
			},
			set: function(Be) {
				cF[x] = Be;
			}
		});
	}, kF = uF(cF), BF = 0; kF.length > BF;) OF(kF[BF++]);
	fF.constructor = AF, AF.prototype = fF, UE(lw, "RegExp", AF);
}
Sk("RegExp");
var FF = RegExp("\xA0", "g");
function TF(x) {
	return x.replace(FF, " ");
}
function _F(x, Be) {
	var We = x.length;
	if (We) {
		var St = x[We - 1];
		if (ed.isText(St)) {
			var Kn = Object.keys(St);
			if (Kn.length === 1 && Kn[0] === "text") return St.text += Be, !0;
		}
	}
	return !1;
}
function PF(x, Be, We) {
	return {
		type: "paragraph",
		children: [{ text: Mp(x).text().replace(/\s+/gm, " ") }]
	};
}
function jF(x, Be) {
	var We = function(x, Be) {
		var We = [];
		if (x.attr("data-w-e-is-void") != null) return We;
		var St = x[0].childNodes;
		return St.length === 1 && St[0].nodeName === "BR" ? (We.push({ text: "" }), We) : (St.forEach((function(x) {
			if (x.nodeType !== PO.ELEMENT_NODE) {
				if (x.nodeType === PO.TEXT_NODE) {
					var St = x.textContent || "";
					if (St.trim() === "" && St.indexOf("\n") >= 0) return;
					St && (St = TF(St), _F(We, St) || We.push({ text: St }));
				}
			} else {
				if (x.nodeName === "BR") return void (_F(We, "\n") || We.push({ text: "\n" }));
				var Kn = IF(Mp(x), Be);
				Array.isArray(Kn) ? Kn.forEach((function(x) {
					return We.push(x);
				})) : We.push(Kn);
			}
		})), We);
	}(x, Be), St = function(x) {
		for (var Be in iF) if (x[0].matches(Be)) return iF[Be];
		return PF;
	}(x)(x[0], We, Be);
	return Array.isArray(St) || (St = [St]), St.forEach((function(St) {
		Bf.isVoid(Be, St) || (We.length === 0 && (St.children = [{ text: x.text().replace(/\s+/gm, " ") }]), oF.forEach((function(We) {
			St = We(x[0], St, Be);
		})));
	})), St;
}
function NF(x, Be) {
	x.parents("pre").length === 0 && (x[0].innerHTML = x[0].innerHTML.replace(/\s+/gm, " ").replace(/<br>/g, "\n"));
	var We = x[0].textContent || "";
	We = function(x) {
		return x.replace(/&nbsp;/g, " ").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&reg;/g, "®").replace(/&copy;/g, "©").replace(/&trade;/g, "™").replace(/&quot;/g, "\"");
	}(We);
	var St = { text: We = TF(We) };
	return oF.forEach((function(We) {
		St = We(x[0], St, Be);
	})), St;
}
function IF(x, Be) {
	rF.forEach((function(Be) {
		var We = Be.selector, St = Be.preParseHtml;
		x[0].matches(We) && (x = Mp(St(x[0])));
	}));
	var We = WO(x);
	return We === "span" ? x.attr("data-w-e-type") ? jF(x, Be) : NF(x, Be) : We === "code" ? WO(x.parent()) === "pre" ? jF(x, Be) : NF(x, Be) : nF.includes(We) ? NF(x, Be) : jF(x, Be);
}
function LF(x, Be, We) {
	var St = Mp(We);
	return !!St.attr(Be) || (St.attr(Be, "true"), x.on("destroyed", (function() {
		St.removeAttr(Be);
	})), !1);
}
function RF(x, Be) {
	Be === void 0 && (Be = "");
	var We = [];
	Be === "" && (Be = "<p><br></p>"), Be.indexOf("<") !== 0 && (Be = Be.split(/\n/).map((function(x) {
		return "<p>" + x + "</p>";
	})).join(""));
	var St = Mp("<div>" + Be + "</div>");
	return Array.from(St.children()).forEach((function(Be) {
		var St = IF(Mp(Be), x);
		Array.isArray(St) ? St.forEach((function(x) {
			return We.push(x);
		})) : We.push(St);
	})), We;
}
var MF = bE.f, zF = xA.fastKey, $F = ME.set, HF = ME.getterFor;
_A("Set", (function(x) {
	return function() {
		return x(this, arguments.length ? arguments[0] : void 0);
	};
}), {
	getConstructor: function(x, Be, We, St) {
		var Kn = x((function(x, Kn) {
			FA(x, _r), $F(x, {
				type: Be,
				index: NS(null),
				first: void 0,
				last: void 0,
				size: 0
			}), Kw || (x.size = 0), Kn != null && kA(Kn, x[St], {
				that: x,
				AS_ENTRIES: We
			});
		})), _r = Kn.prototype, Li = HF(Be), fa = function(x, Be, We) {
			var St, Kn, _r = Li(x), fa = Vo(x, Be);
			return fa ? fa.value = We : (_r.last = fa = {
				index: Kn = zF(Be, !0),
				key: Be,
				value: We,
				previous: St = _r.last,
				next: void 0,
				removed: !1
			}, _r.first ||= fa, St && (St.next = fa), Kw ? _r.size++ : x.size++, Kn !== "F" && (_r.index[Kn] = fa)), x;
		}, Vo = function(x, Be) {
			var We, St = Li(x), Kn = zF(Be);
			if (Kn !== "F") return St.index[Kn];
			for (We = St.first; We; We = We.next) if (We.key == Be) return We;
		};
		return pA(_r, {
			clear: function() {
				for (var x = Li(this), Be = x.index, We = x.first; We;) We.removed = !0, We.previous &&= We.previous.next = void 0, delete Be[We.index], We = We.next;
				x.first = x.last = void 0, Kw ? x.size = 0 : this.size = 0;
			},
			delete: function(x) {
				var Be = this, We = Li(Be), St = Vo(Be, x);
				if (St) {
					var Kn = St.next, _r = St.previous;
					delete We.index[St.index], St.removed = !0, _r && (_r.next = Kn), Kn && (Kn.previous = _r), We.first == St && (We.first = Kn), We.last == St && (We.last = _r), Kw ? We.size-- : Be.size--;
				}
				return !!St;
			},
			forEach: function(x) {
				for (var Be, We = Li(this), St = oD(x, arguments.length > 1 ? arguments[1] : void 0); Be = Be ? Be.next : We.first;) for (St(Be.value, Be.key, this); Be && Be.removed;) Be = Be.previous;
			},
			has: function(x) {
				return !!Vo(this, x);
			}
		}), pA(_r, We ? {
			get: function(x) {
				var Be = Vo(this, x);
				return Be && Be.value;
			},
			set: function(x, Be) {
				return fa(this, x === 0 ? 0 : x, Be);
			}
		} : { add: function(x) {
			return fa(this, x = x === 0 ? 0 : x, x);
		} }), Kw && MF(_r, "size", { get: function() {
			return Li(this).size;
		} }), Kn;
	},
	setStrong: function(x, Be, We) {
		var St = Be + " Iterator", Kn = HF(Be), _r = HF(St);
		Ux(x, Be, (function(x, Be) {
			$F(this, {
				type: St,
				target: x,
				state: Kn(x),
				kind: Be,
				last: void 0
			});
		}), (function() {
			for (var x = _r(this), Be = x.kind, We = x.last; We && We.removed;) We = We.previous;
			return x.target && (x.last = We = We ? We.next : x.state.first) ? Be == "keys" ? {
				value: We.key,
				done: !1
			} : Be == "values" ? {
				value: We.value,
				done: !1
			} : {
				value: [We.key, We.value],
				done: !1
			} : (x.target = void 0, {
				value: void 0,
				done: !0
			});
		}), We ? "entries" : "values", !We, !0), Sk(Be);
	}
});
var UF = new Set([
	"doctype",
	"!doctype",
	"meta",
	"script",
	"style",
	"link",
	"frame",
	"iframe",
	"title",
	"svg"
]);
function WF(x, Be) {
	x.isInline(Be) ? (x.insertNode(Be), Be.type === "link" && x.insertFragment([{ text: "" }])) : md.insertNodes(x, Be, { mode: "highest" });
}
var GF = function(x) {
	var Be = x, We = Be.insertText;
	return Be.insertFragment, Be.setFragmentData = function(x) {
		var We = Be.selection;
		if (We) {
			var St = aA(qf.edges(We), 2), Kn = St[0], _r = St[1], Li = Bf.void(Be, { at: Kn.path }), fa = Bf.void(Be, { at: _r.path });
			if (!qf.isCollapsed(We) || Li) {
				var Vo = QO.toDOMRange(Be, We), Xo = Vo.cloneContents(), Tc = Xo.childNodes[0];
				if (Xo.childNodes.forEach((function(x) {
					x.textContent && x.textContent.trim() !== "" && (Tc = x);
				})), fa) {
					var Tl = aA(fa, 1)[0], Al = Vo.cloneRange(), Uu = QO.toDOMNode(Be, Tl);
					Al.setEndAfter(Uu), Xo = Al.cloneContents();
				}
				if (Li && (Tc = Xo.querySelector("[data-slate-spacer]")), Array.from(Xo.querySelectorAll("[data-slate-zero-width]")).forEach((function(x) {
					x.textContent = x.getAttribute("data-slate-zero-width") === "n" ? "\n" : "";
				})), MO(Tc)) {
					var Ff = Tc.ownerDocument.createElement("span");
					Ff.style.whiteSpace = "pre", Ff.appendChild(Tc), Xo.appendChild(Ff), Tc = Ff;
				}
				var Lm = Be.getFragment(), Bm = JSON.stringify(Lm), x_ = window.btoa(encodeURIComponent(Bm));
				Tc.setAttribute("data-slate-fragment", x_), x.setData("application/x-slate-fragment", x_);
				var uy = Xo.ownerDocument.createElement("div");
				return uy.appendChild(Xo), uy.setAttribute("hidden", "true"), Xo.ownerDocument.body.appendChild(uy), x.setData("text/html", uy.innerHTML), x.setData("text/plain", VO(uy)), Xo.ownerDocument.body.removeChild(uy), x;
			}
		}
	}, Be.insertData = function(x) {
		var St, Kn, _r = x.getData("application/x-slate-fragment");
		if (_r) {
			var Li = decodeURIComponent(window.atob(_r)), fa = JSON.parse(Li);
			Be.insertFragment(fa);
		} else {
			var Vo = x.getData("text/plain"), Xo = x.getData("text/html");
			if (Xo) Be.dangerouslyInsertHtml(Xo);
			else if (Vo) {
				var Tc = Vo.split(/\r\n|\r|\n/), Tl = !1;
				try {
					for (var Al = iA(Tc), Uu = Al.next(); !Uu.done; Uu = Al.next()) {
						var Ff = Uu.value;
						Tl && md.splitNodes(Be, { always: !0 }), We(Ff), Tl = !0;
					}
				} catch (x) {
					St = { error: x };
				} finally {
					try {
						Uu && !Uu.done && (Kn = Al.return) && Kn.call(Al);
					} finally {
						if (St) throw St.error;
					}
				}
			}
		}
	}, Be;
}, qF = function(x) {
	return x != null;
}, KF = {
	object: !0,
	function: !0,
	undefined: !0
}, YF = /^\s*class[\s{/}]/, XF = Function.prototype.toString, ZF = function(x) {
	return !!function(x) {
		if (typeof x != "function" || !hasOwnProperty.call(x, "length")) return !1;
		try {
			if (typeof x.length != "number" || typeof x.call != "function" || typeof x.apply != "function") return !1;
		} catch {
			return !1;
		}
		return !function(x) {
			if (!function(x) {
				return !!qF(x) && hasOwnProperty.call(KF, typeof x);
			}(x)) return !1;
			try {
				return !!x.constructor && x.constructor.prototype === x;
			} catch {
				return !1;
			}
		}(x);
	}(x) && !YF.test(XF.call(x));
}, JF = function(x) {
	return x != null;
}, QF = Object.keys, eT = function() {
	try {
		return !0;
	} catch {
		return !1;
	}
}() ? Object.keys : function(x) {
	return QF(JF(x) ? Object(x) : x);
}, tT = function(x) {
	if (!JF(x)) throw TypeError("Cannot use null or undefined");
	return x;
}, nT = Math.max, rT = function() {
	var x, Be = Object.assign;
	return typeof Be == "function" && (Be(x = { foo: "raz" }, { bar: "dwa" }, { trzy: "trzy" }), x.foo + x.bar + x.trzy === "razdwatrzy");
}() ? Object.assign : function(x, Be) {
	var We, St, Kn, _r = nT(arguments.length, 2);
	for (x = Object(tT(x)), Kn = function(St) {
		try {
			x[St] = Be[St];
		} catch (x) {
			We ||= x;
		}
	}, St = 1; St < _r; ++St) eT(Be = arguments[St]).forEach(Kn);
	if (We !== void 0) throw We;
	return x;
}, oT = Array.prototype.forEach, iT = Object.create, aT = function(x, Be) {
	for (var We in x) Be[We] = x[We];
}, uT = function(x) {
	var Be = iT(null);
	return oT.call(arguments, (function(x) {
		JF(x) && aT(Object(x), Be);
	})), Be;
}, sT = "razdwatrzy", lT = String.prototype.indexOf, cT = typeof sT.contains == "function" && !0 === sT.contains("dwa") && !1 === sT.contains("foo") ? String.prototype.contains : function(x) {
	return lT.call(this, x, arguments[1]) > -1;
}, fT = iw((function(x) {
	var Be = x.exports = function(x, Be) {
		var We, St, Kn, _r, Li;
		return arguments.length < 2 || typeof x != "string" ? (_r = Be, Be = x, x = null) : _r = arguments[2], qF(x) ? (We = cT.call(x, "c"), St = cT.call(x, "e"), Kn = cT.call(x, "w")) : (We = Kn = !0, St = !1), Li = {
			value: Be,
			configurable: We,
			enumerable: St,
			writable: Kn
		}, _r ? rT(uT(_r), Li) : Li;
	};
	Be.gs = function(x, Be, We) {
		var St, Kn, _r, Li;
		return typeof x == "string" ? _r = arguments[3] : (_r = We, We = Be, Be = x, x = null), qF(Be) ? ZF(Be) ? qF(We) ? ZF(We) || (_r = We, We = void 0) : We = void 0 : (_r = Be, Be = We = void 0) : Be = void 0, qF(x) ? (St = cT.call(x, "c"), Kn = cT.call(x, "e")) : (St = !0, Kn = !1), Li = {
			get: Be,
			set: We,
			configurable: St,
			enumerable: Kn
		}, _r ? rT(uT(_r), Li) : Li;
	};
})), dT = function(x) {
	if (typeof x != "function") throw TypeError(x + " is not a function");
	return x;
}, pT = iw((function(x, Be) {
	var We, St, Kn, _r, Li, fa, Vo, Xo = Function.prototype.apply, Tc = Function.prototype.call, Tl = Object.create, Al = Object.defineProperty, Uu = Object.defineProperties, Ff = Object.prototype.hasOwnProperty, Lm = {
		configurable: !0,
		enumerable: !1,
		writable: !0
	};
	We = function(x, Be) {
		var We;
		return dT(Be), Ff.call(this, "__ee__") ? We = this.__ee__ : (We = Lm.value = Tl(null), Al(this, "__ee__", Lm), Lm.value = null), We[x] ? typeof We[x] == "object" ? We[x].push(Be) : We[x] = [We[x], Be] : We[x] = Be, this;
	}, St = function(x, Be) {
		var St, _r;
		return dT(Be), _r = this, We.call(this, x, St = function() {
			Kn.call(_r, x, St), Xo.call(Be, this, arguments);
		}), St.__eeOnceListener__ = Be, this;
	}, Kn = function(x, Be) {
		var We, St, Kn, _r;
		if (dT(Be), !Ff.call(this, "__ee__") || !(We = this.__ee__)[x]) return this;
		if (typeof (St = We[x]) == "object") for (_r = 0; Kn = St[_r]; ++_r) Kn !== Be && Kn.__eeOnceListener__ !== Be || (St.length === 2 ? We[x] = St[_r ? 0 : 1] : St.splice(_r, 1));
		else St !== Be && St.__eeOnceListener__ !== Be || delete We[x];
		return this;
	}, _r = function(x) {
		var Be, We, St, Kn, _r;
		if (Ff.call(this, "__ee__") && (Kn = this.__ee__[x])) if (typeof Kn == "object") {
			for (We = arguments.length, _r = Array(We - 1), Be = 1; Be < We; ++Be) _r[Be - 1] = arguments[Be];
			for (Kn = Kn.slice(), Be = 0; St = Kn[Be]; ++Be) Xo.call(St, this, _r);
		} else switch (arguments.length) {
			case 1:
				Tc.call(Kn, this);
				break;
			case 2:
				Tc.call(Kn, this, arguments[1]);
				break;
			case 3:
				Tc.call(Kn, this, arguments[1], arguments[2]);
				break;
			default:
				for (We = arguments.length, _r = Array(We - 1), Be = 1; Be < We; ++Be) _r[Be - 1] = arguments[Be];
				Xo.call(Kn, this, _r);
		}
	}, Li = {
		on: We,
		once: St,
		off: Kn,
		emit: _r
	}, fa = {
		on: fT(We),
		once: fT(St),
		off: fT(Kn),
		emit: fT(_r)
	}, Vo = Uu({}, fa), x.exports = Be = function(x) {
		return x == null ? Tl(Vo) : Uu(Object(x), fa);
	}, Be.methods = Li;
}));
function hT(x) {
	var Be = kO.get(x);
	return Be ?? (Be = pT(), kO.set(x, Be)), Be;
}
var gT = /* @__PURE__ */ new WeakMap();
function vT(x, Be) {
	var We = gT.get(x);
	We ?? (We = /* @__PURE__ */ new Set(), gT.set(x, We)), We.add(Be);
}
function yT(x) {
	return gT.get(x) || /* @__PURE__ */ new Set();
}
function mT(x) {
	gT.set(x, /* @__PURE__ */ new Set());
}
function bT(x) {
	var Be = QO.getTextarea(x).$textAreaContainer, We = Be.width(), St = Be.height(), Kn = Be.offset();
	return {
		top: Kn.top,
		left: Kn.left,
		width: We,
		height: St
	};
}
function wT(x) {
	var Be = {
		top: "0",
		left: "0"
	}, We = x.selection;
	if (We == null) return Be;
	var St = bT(x);
	if (St == null) return Be;
	var Kn = St.top, _r = St.left, Li = St.width, fa = St.height, Vo = QO.toDOMRange(x, We).getClientRects()[0];
	if (Vo == null) return Be;
	Vo.width;
	var Xo = Vo.height, Tc = {}, Tl = Vo.top - Kn, Al = Vo.left - _r;
	if (Al > Li / 2 ? Tc.right = Li - Al + 5 + "px" : Tc.left = Al + 5 + "px", Tl > fa / 2) Tc.bottom = fa - Tl + 5 + "px";
	else {
		var Uu = Tl + Xo;
		Uu < 0 && (Uu = 0), Tc.top = Uu + 5 + "px";
	}
	return Tc;
}
function ET(x, Be, We) {
	We === void 0 && (We = "modal");
	var St = {
		top: "0",
		left: "0"
	};
	if (x.selection == null) return St;
	var Kn = Sf.isElement(Be) && x.isVoid(Be), _r = Sf.isElement(Be) && x.isInline(Be), Li = SO.get(Be);
	if (Li == null) return St;
	var fa = Li.getBoundingClientRect(), Vo = fa.top, Xo = fa.left, Tc = fa.height, Tl = fa.width;
	if (Kn) {
		var Al = function(x) {
			var Be = [];
			Be.push(x);
			for (var We = 0; Be.length > 0;) {
				var St = Be.pop();
				if (St == null || ++We > 1e4) break;
				var Kn = St.nodeName;
				if (St.nodeType === 1) {
					var _r = Kn.toLowerCase();
					if (_O.includes(_r) || _r === "iframe" || _r === "video") return St;
					var Li = St.children || [], fa = Li.length;
					if (fa) for (var Vo = fa - 1; Vo >= 0; Vo--) Be.push(Li[Vo]);
				}
			}
			return null;
		}(Li);
		if (Al != null) {
			var Uu = Al.getBoundingClientRect();
			Vo = Uu.top, Tc = Uu.height;
		}
	}
	var Ff = bT(x);
	if (Ff == null) return St;
	var Lm, Bm = Ff.top, x_ = Ff.left, uy = Ff.width, dx = Ff.height, kx = {}, eC = Vo - Bm, uC = Xo - x_;
	if (We === "bar") return kx.left = uC + "px", eC > 40 ? kx.bottom = dx - eC + 5 + "px" : kx.top = eC + Tc + 5 + "px", kx;
	if (We === "modal") return Kn ? _r ? uC > (uy - Tl) / 2 ? kx.right = uy - uC + 5 + "px" : kx.left = uC + Tl + 5 + "px" : kx.left = "20px" : kx.left = uC + "px", Kn ? ((Lm = eC) < 0 && (Lm = 0), kx.top = Lm + "px") : eC > (dx - Tc) / 2 ? kx.bottom = dx - eC + 5 + "px" : ((Lm = eC + Tc) < 0 && (Lm = 0), kx.top = Lm + 5 + "px"), kx;
	throw Error("type '" + We + "' is invalid");
}
function DT(x, Be) {
	ZB((function() {
		var We = bT(x);
		if (We != null) {
			var St, Kn = We.top, _r = We.left, Li = We.width, fa = We.height, Vo = Be.offset(), Xo = Vo.top, Tc = Vo.left, Tl = Be.width(), Al = Be.height(), Uu = Xo - Kn, Ff = Tc - _r, Lm = Be.attr("style");
			if (Lm.indexOf("top") >= 0 && (St = Uu + Al - fa) > 0) {
				var Bm = Be.css("top"), x_ = parseInt(Bm.toString()) - St;
				x_ < 0 && (x_ = 0), Be.css("top", x_ + "px");
			}
			if (Lm.indexOf("bottom") >= 0 && Xo < 0) {
				var uy = Be.css("bottom"), dx = parseInt(uy.toString()) - Math.abs(Xo);
				Be.css("bottom", dx + "px");
			}
			if (Lm.indexOf("left") >= 0 && (St = Ff + Tl - Li) > 0) {
				var kx = Be.css("left"), eC = parseInt(kx.toString()) - St;
				eC < 0 && (eC = 0), Be.css("left", eC + "px");
			}
			if (Lm.indexOf("right") >= 0 && Tc < 0) {
				var uC = Be.css("right"), _T = parseInt(uC.toString()) - Math.abs(Tc);
				Be.css("right", _T + "px");
			}
		}
	}));
}
var ST = iC("slice"), xT = Ww("species"), CT = lw.Array, AT = Math.max;
cS({
	target: "Array",
	proto: !0,
	forced: !ST
}, { slice: function(x, Be) {
	var We, St, Kn, _r = RD(this), Li = pD(_r), fa = VD(x, Li), Vo = VD(Be === void 0 ? Li : Be, Li);
	if (hD(_r) && (We = _r.constructor, (DD(We) && (We === CT || hD(We.prototype)) || Yw(We) && (We = We[xT]) === null) && (We = void 0), We === CT || We === void 0)) return Ok(_r, fa, Vo);
	for (St = new (We === void 0 ? CT : We)(AT(Vo - fa, 0)), Kn = 0; fa < Vo; fa++, Kn++) fa in _r && tx(St, Kn, _r[fa]);
	return St.length = Kn, St;
} });
var OT = zD.f, kT = mw("".startsWith), BT = mw("".slice), FT = Math.min, TT = WS("startsWith");
cS({
	target: "String",
	proto: !0,
	forced: !(!TT && function() {
		var x = OT(String.prototype, "startsWith");
		return x && !x.writable;
	}()) && !TT
}, { startsWith: function(x) {
	var Be = bS(ww(this));
	VS(x);
	var We = dD(FT(arguments.length > 1 ? arguments[1] : void 0, Be.length)), St = bS(x);
	return kT ? kT(Be, St, We) : BT(Be, We, We + St.length) === St;
} });
var PT = Object.assign, jT = Object.defineProperty, NT = mw([].concat), IT = !PT || Rw((function() {
	if (Kw && PT({ b: 1 }, PT(jT({}, "a", {
		enumerable: !0,
		get: function() {
			jT(this, "b", {
				value: 3,
				enumerable: !1
			});
		}
	}), { b: 2 })).b !== 1) return !0;
	var x = {}, Be = {}, We = Symbol(), St = "abcdefghijklmnopqrst";
	return x[We] = 7, St.split("").forEach((function(x) {
		Be[x] = x;
	})), PT({}, x)[We] != 7 || fS(PT({}, Be)).join("") != St;
})) ? function(x, Be) {
	for (var We = Dw(x), St = arguments.length, Kn = 1, _r = JD.f, Li = LD.f; St > Kn;) for (var fa, Vo = uD(arguments[Kn++]), Xo = _r ? NT(fS(Vo), _r(Vo)) : fS(Vo), Tc = Xo.length, Tl = 0; Tc > Tl;) fa = Xo[Tl++], Kw && !oE(Li, Vo, fa) || (We[fa] = Vo[fa]);
	return We;
} : PT;
cS({
	target: "Object",
	stat: !0,
	forced: Object.assign !== IT
}, { assign: IT });
var LT = [
	"props",
	"attrs",
	"style",
	"dataset",
	"on",
	"hook"
];
function RT(x) {
	var Be = x.data, We = Be === void 0 ? {} : Be, St = x.children, Kn = St === void 0 ? [] : St;
	Object.keys(We).forEach((function(Be) {
		var St, Kn, _r = We[Be];
		if (Be !== "key") {
			if (!LT.includes(Be)) {
				if (Be.startsWith("data-")) {
					var Li = Be.slice(5);
					Li = Cv(Li), function(x, Be) {
						x.data ??= {};
						var We = x.data;
						We.dataset ??= {}, Object.assign(We.dataset, Be);
					}(x, ((St = {})[Li] = _r, St)), delete We[Be];
					return;
				}
				(function(x, Be) {
					x.data ??= {};
					var We = x.data;
					We.props ??= {}, Object.assign(We.props, Be);
				})(x, (Kn = {}, Kn[Be] = _r, Kn)), delete We[Be];
			}
		} else x.key = _r;
	})), Kn.length > 0 && Kn.forEach((function(x) {
		typeof x != "string" && RT(x);
	}));
}
var MT = [], zT = {};
function $T(x, Be, We) {
	return Pg(We.isInline(x) ? "span" : "div", null, Be);
}
function HT(x, Be) {
	return Be === void 0 && (Be = !1), Pg("span", { "data-slate-string": !0 }, Be ? x + "\n" : x);
}
function VT(x, Be) {
	return x === void 0 && (x = 0), Be === void 0 && (Be = !1), Pg("span", {
		"data-slate-zero-width": Be ? "n" : "z",
		"data-slate-length": x
	}, "", Be ? Pg("br", null) : null);
}
function UT(x, Be, We, St) {
	return mO.set(x, Be), bO.set(x, We), Sf.isElement(x) ? function(x, Be) {
		var We, St = QO.findKey(Be, x), Kn = Be.isInline(x), _r = Bf.isVoid(Be, x), Li = QB(St.id), fa = {
			id: Li,
			key: St.id,
			"data-slate-node": "element",
			"data-slate-inline": Kn
		}, Vo = x.type, Xo = x.children, Tc = Xo === void 0 ? [] : Xo, Tl = function(x) {
			return zT[x] || $T;
		}(Vo);
		We = _r ? null : Tc.map((function(We, St) {
			return UT(We, St, x, Be);
		}));
		var Al = Tl(x, We, Be);
		if (_r) {
			fa["data-slate-void"] = !0;
			var Uu = Kn ? "span" : "div", Ff = aA(aA(Nf.texts(x), 1)[0], 1)[0], Lm = Pg(Uu, {
				"data-slate-spacer": !0,
				style: {
					height: "0",
					color: "transparent",
					outline: "none",
					position: "absolute"
				}
			}, UT(Ff, 0, x, Be));
			Al = Pg(Uu, { style: { position: "relative" } }, Al, Lm), mO.set(Ff, 0), bO.set(Ff, x);
		}
		return Al.data ??= {}, Object.assign(Al.data, fa), _r || Kn || (Al = function(x, Be) {
			var We = Be;
			return MT.forEach((function(St) {
				We = St(x, Be);
			})), We;
		}(x, Al)), ZB((function() {
			var Be = zO(Li);
			Be != null && (DO.set(St, Be), SO.set(x, Be), EO.set(Be, x));
		})), Al;
	}(x, St) : function(x, Be, We) {
		if (x.text == null) throw Error("Current node is not slate Text " + JSON.stringify(x));
		var St = QO.findKey(We, x), Kn = We.getConfig().decorate;
		if (Kn == null) throw Error("Can not get config.decorate");
		var _r = Kn([x, QO.findPath(We, x)]), Li = ed.decorations(x, _r), fa = Li.map((function(St, Kn) {
			var _r = function(x, Be, We, St, Kn) {
				Be === void 0 && (Be = !1);
				var _r = x.text, Li = QO.findPath(Kn, We), fa = Mf.parent(Li);
				if (Bf.isEditor(St)) throw Error("Text node " + JSON.stringify(We) + " parent is Editor");
				return Kn.isVoid(St) ? VT(Nf.string(St).length) : _r !== "" || St.children[St.children.length - 1] !== We || Kn.isInline(St) || Bf.string(Kn, fa) !== "" ? _r === "" ? VT() : Be && _r.slice(-1) === "\n" ? HT(_r, !0) : HT(_r) : VT(0, !0);
			}(St, Kn === Li.length - 1, x, Be, We);
			return _r = function(x, Be) {
				var We = Be;
				return MT.forEach((function(Be) {
					We = Be(x, We);
				})), We;
			}(St, _r), Pg("span", { "data-slate-leaf": !0 }, _r);
		})), Vo = function(x) {
			return "w-e-text-" + x;
		}(St.id), Xo = Pg("span", {
			"data-slate-node": "text",
			id: Vo,
			key: St.id
		}, fa);
		return ZB((function() {
			var Be = zO(Vo);
			Be != null && (DO.set(St, Be), SO.set(x, Be), EO.set(Be, x));
		})), Xo;
	}(x, We, St);
}
function WT(x, Be) {
	var We, St = x.$scroll, Kn = function(x) {
		return "w-e-textarea-" + x;
	}(x.id), _r = Be.getConfig(), Li = _r.readOnly, fa = _r.autoFocus, Vo = function(x, Be) {
		return Be === void 0 && (Be = !1), pg("div#" + x, { props: { contentEditable: !Be } });
	}(Kn, Li);
	Vo.children = (Be.children || []).map((function(x, We) {
		var St = UT(x, We, Be, Be);
		return RT(St), St;
	}));
	var Xo = gO.get(x);
	if (Xo ??= !0, Xo) {
		var Tc = function(x, Be) {
			return Mp("<div\n        id=\"" + x + "\"\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>");
		}(Kn);
		St.append(Tc), x.$textArea = Tc, We = Tc[0], (Al = fg([
			yg,
			Ag,
			Tg,
			wg,
			xg,
			gg
		]))(We, Vo), gO.set(x, !1), vO.set(x, Al);
	} else {
		var Tl = yO.get(x), Al = vO.get(x);
		if (Tl == null || Al == null) return;
		We = Tl.elm, Al(Tl, Vo);
	}
	if (We != null || (We = zO(Kn)) != null) {
		if ((Xo ? fa : Be.isFocused()) && We.focus({ preventScroll: !0 }), Xo) {
			var Uu = NO(We);
			Uu && CO.set(Be, Uu);
		}
		wO.set(Be, We), SO.set(Be, We), EO.set(We, Be), yO.set(x, Vo);
	}
}
function GT(x) {
	return typeof x == "object" && !!x && x.nodeType === 1;
}
function qT(x, Be) {
	return (!Be || x !== "hidden") && x !== "visible" && x !== "clip";
}
function KT(x, Be) {
	if (x.clientHeight < x.scrollHeight || x.clientWidth < x.scrollWidth) {
		var We = getComputedStyle(x, null);
		return qT(We.overflowY, Be) || qT(We.overflowX, Be) || function(x) {
			var Be = function(x) {
				if (!x.ownerDocument || !x.ownerDocument.defaultView) return null;
				try {
					return x.ownerDocument.defaultView.frameElement;
				} catch {
					return null;
				}
			}(x);
			return !!Be && (Be.clientHeight < x.scrollHeight || Be.clientWidth < x.scrollWidth);
		}(x);
	}
	return !1;
}
function YT(x, Be, We, St, Kn, _r, Li, fa) {
	return _r < x && Li > Be || _r > x && Li < Be ? 0 : _r <= x && fa <= We || Li >= Be && fa >= We ? _r - x - St : Li > Be && fa < We || _r < x && fa > We ? Li - Be + Kn : 0;
}
function XT(x, Be) {
	var We = window, St = Be.scrollMode, Kn = Be.block, _r = Be.inline, Li = Be.boundary, fa = Be.skipOverflowHiddenElements, Vo = typeof Li == "function" ? Li : function(x) {
		return x !== Li;
	};
	if (!GT(x)) throw TypeError("Invalid target");
	for (var Xo = document.scrollingElement || document.documentElement, Tc = [], Tl = x; GT(Tl) && Vo(Tl);) {
		if ((Tl = Tl.parentElement) === Xo) {
			Tc.push(Tl);
			break;
		}
		Tl != null && Tl === document.body && KT(Tl) && !KT(document.documentElement) || Tl != null && KT(Tl, fa) && Tc.push(Tl);
	}
	for (var Al = We.visualViewport ? We.visualViewport.width : innerWidth, Uu = We.visualViewport ? We.visualViewport.height : innerHeight, Ff = window.scrollX || pageXOffset, Lm = window.scrollY || pageYOffset, Bm = x.getBoundingClientRect(), x_ = Bm.height, uy = Bm.width, dx = Bm.top, kx = Bm.right, eC = Bm.bottom, uC = Bm.left, _T = Kn === "start" || Kn === "nearest" ? dx : Kn === "end" ? eC : dx + x_ / 2, ID = _r === "center" ? uC + uy / 2 : _r === "end" ? kx : uC, ok = [], ij = 0; ij < Tc.length; ij++) {
		var Dj = Tc[ij], LP = Dj.getBoundingClientRect(), zP = LP.height, $P = LP.width, CF = LP.top, VF = LP.right, nR = LP.bottom, tH = LP.left;
		if (St === "if-needed" && dx >= 0 && uC >= 0 && eC <= Uu && kx <= Al && dx >= CF && eC <= nR && uC >= tH && kx <= VF) return ok;
		var MH = getComputedStyle(Dj), vG = parseInt(MH.borderLeftWidth, 10), jG = parseInt(MH.borderTopWidth, 10), pMt = parseInt(MH.borderRightWidth, 10), eq = parseInt(MH.borderBottomWidth, 10), iq = 0, Vq = 0, Hq = "offsetWidth" in Dj ? Dj.offsetWidth - Dj.clientWidth - vG - pMt : 0, Uq = "offsetHeight" in Dj ? Dj.offsetHeight - Dj.clientHeight - jG - eq : 0;
		if (Xo === Dj) iq = Kn === "start" ? _T : Kn === "end" ? _T - Uu : Kn === "nearest" ? YT(Lm, Lm + Uu, Uu, jG, eq, Lm + _T, Lm + _T + x_, x_) : _T - Uu / 2, Vq = _r === "start" ? ID : _r === "center" ? ID - Al / 2 : _r === "end" ? ID - Al : YT(Ff, Ff + Al, Al, vG, pMt, Ff + ID, Ff + ID + uy, uy), iq = Math.max(0, iq + Lm), Vq = Math.max(0, Vq + Ff);
		else {
			iq = Kn === "start" ? _T - CF - jG : Kn === "end" ? _T - nR + eq + Uq : Kn === "nearest" ? YT(CF, nR, zP, jG, eq + Uq, _T, _T + x_, x_) : _T - (CF + zP / 2) + Uq / 2, Vq = _r === "start" ? ID - tH - vG : _r === "center" ? ID - (tH + $P / 2) + Hq / 2 : _r === "end" ? ID - VF + pMt + Hq : YT(tH, VF, $P, vG, pMt + Hq, ID, ID + uy, uy);
			var mMt = Dj.scrollLeft, hMt = Dj.scrollTop;
			_T += hMt - (iq = Math.max(0, Math.min(hMt + iq, Dj.scrollHeight - zP + Uq))), ID += mMt - (Vq = Math.max(0, Math.min(mMt + Vq, Dj.scrollWidth - $P + Hq)));
		}
		ok.push({
			el: Dj,
			top: iq,
			left: Vq
		});
	}
	return ok;
}
function ZT(x) {
	return x === Object(x) && Object.keys(x).length !== 0;
}
function JT(x, Be) {
	return LO(Be) && QO.hasDOMNode(x, Be, { editable: !0 });
}
function QT(x, Be) {
	if (x.getConfig().readOnly) return !1;
	var We = e_(x, Be) && QO.toSlateNode(x, Be);
	return Bf.isVoid(x, We);
}
function e_(x, Be) {
	return LO(Be) && QO.hasDOMNode(x, Be);
}
function t_(x, Be, We) {
	We === void 0 && (We = !1);
	var St = Be.selection, Kn = Be.getConfig(), _r = QO.findDocumentOrShadowRoot(Be).getSelection();
	if (_r && (!x.isComposing || We) && Be.isFocused()) {
		var Li = _r.type !== "None";
		if (St || Li) {
			var fa = wO.get(Be), Vo = !1;
			if (fa.contains(_r.anchorNode) && fa.contains(_r.focusNode) && (Vo = !0), Li && Vo && St) {
				var Xo = QO.toSlateRange(Be, _r, {
					exactMatch: !0,
					suppressThrow: !0
				});
				if (Xo && qf.equals(Xo, St)) {
					var Tc = !0;
					if (qf.isCollapsed(St)) {
						var Tl = _r.anchorNode, Al = _r.anchorOffset;
						if (Tl === fa) {
							var Uu = fa.childNodes, Ff = void 0;
							(Ff = Uu[Al]) && Ff.matches("table") && (Tc = !1), (Ff = Uu[Al - 1]) && Ff.matches("table") && (Tc = !1);
						}
					}
					if (Tc) return;
				}
			}
			if (!St || QO.hasRange(Be, St)) {
				x.isUpdatingSelection = !0;
				var Lm = St && QO.toDOMRange(Be, St);
				if (Lm) {
					qf.isBackward(St) ? _r.setBaseAndExtent(Lm.endContainer, Lm.endOffset, Lm.startContainer, Lm.startOffset) : _r.setBaseAndExtent(Lm.startContainer, Lm.startOffset, Lm.endContainer, Lm.endOffset);
					var Bm = Lm.startContainer.parentElement;
					if (!Bm.closest("[data-slate-spacer]")) {
						Bm.getBoundingClientRect = Lm.getBoundingClientRect.bind(Lm);
						var x_ = document.body;
						(function(x, Be) {
							var We = !x.ownerDocument.documentElement.contains(x);
							if (ZT(Be) && typeof Be.behavior == "function") return Be.behavior(We ? [] : XT(x, Be));
							if (!We) {
								var St = function(x) {
									return !1 === x ? {
										block: "end",
										inline: "nearest"
									} : ZT(x) ? x : {
										block: "start",
										inline: "nearest"
									};
								}(Be);
								(function(x, Be) {
									Be === void 0 && (Be = "auto");
									var We = "scrollBehavior" in document.body.style;
									x.forEach((function(x) {
										var St = x.el, Kn = x.top, _r = x.left;
										St.scroll && We ? St.scroll({
											top: Kn,
											left: _r,
											behavior: Be
										}) : (St.scrollTop = Kn, St.scrollLeft = _r);
									}));
								})(XT(x, St), St.behavior);
							}
						})(Bm, {
							scrollMode: "if-needed",
							boundary: Kn.scroll ? fa.parentElement : x_,
							block: "end",
							behavior: "smooth"
						}), delete Bm.getBoundingClientRect;
					}
				} else _r.removeAllRanges();
				setTimeout((function() {
					Lm && qO && fa.focus(), x.isUpdatingSelection = !1;
				}));
			} else Be.selection = QO.toSlateRange(Be, _r, {
				exactMatch: !1,
				suppressThrow: !1
			});
		}
	}
}
var n_ = /* @__PURE__ */ new WeakMap(), r_ = /* @__PURE__ */ new WeakMap(), o_ = {
	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"
}, i_ = {
	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"
}, a_ = {
	deleteWordBackward: "ctrl+shift?+backspace",
	deleteWordForward: "ctrl+shift?+delete",
	redo: ["ctrl+y", "ctrl+shift+z"]
}, u_ = function(x) {
	var Be = o_[x], We = i_[x], St = a_[x], Kn = Be && Nv(Be), _r = We && Nv(We), Li = St && Nv(St);
	return function(x) {
		return !(!Kn || !Kn(x)) || !!(GO && _r && _r(x)) || !(GO || !Li || !Li(x));
	};
}, s_ = {
	isBold: u_("bold"),
	isCompose: u_("compose"),
	isMoveBackward: u_("moveBackward"),
	isMoveForward: u_("moveForward"),
	isDeleteBackward: u_("deleteBackward"),
	isDeleteForward: u_("deleteForward"),
	isDeleteLineBackward: u_("deleteLineBackward"),
	isDeleteLineForward: u_("deleteLineForward"),
	isDeleteWordBackward: u_("deleteWordBackward"),
	isDeleteWordForward: u_("deleteWordForward"),
	isExtendBackward: u_("extendBackward"),
	isExtendForward: u_("extendForward"),
	isExtendLineBackward: u_("extendLineBackward"),
	isExtendLineForward: u_("extendLineForward"),
	isItalic: u_("italic"),
	isMoveLineBackward: u_("moveLineBackward"),
	isMoveLineForward: u_("moveLineForward"),
	isMoveWordBackward: u_("moveWordBackward"),
	isMoveWordForward: u_("moveWordForward"),
	isRedo: u_("redo"),
	isSplitBlock: u_("splitBlock"),
	isTransposeCharacter: u_("transposeCharacter"),
	isUndo: u_("undo"),
	isTab: u_("tab"),
	isSelectAll: u_("selectAll")
};
function l_(x) {
	x.preventDefault();
}
var c_ = {
	beforeinput: function(x, Be, We) {
		var St = x, Kn = We.getConfig().readOnly;
		if (JO && !Kn && JT(We, St.target)) {
			var _r = We.selection, Li = St.inputType, fa = St.dataTransfer || St.data || void 0;
			if (Li !== "insertCompositionText" && Li !== "deleteCompositionText") {
				if (St.preventDefault(), !Li.startsWith("delete") || Li.startsWith("deleteBy")) {
					var Vo = aA(St.getTargetRanges(), 1)[0];
					if (Vo) {
						var Xo = QO.toSlateRange(We, Vo, {
							exactMatch: !1,
							suppressThrow: !1
						});
						_r && qf.equals(_r, Xo) || md.select(We, Xo);
					}
				}
				if (_r && qf.isExpanded(_r) && Li.startsWith("delete")) {
					var Tc = Li.endsWith("Backward") ? "backward" : "forward";
					Bf.deleteFragment(We, { direction: Tc });
				} else switch (Li) {
					case "deleteByComposition":
					case "deleteByCut":
					case "deleteByDrag":
						Bf.deleteFragment(We);
						break;
					case "deleteContent":
					case "deleteContentForward":
						Bf.deleteForward(We);
						break;
					case "deleteContentBackward":
						Bf.deleteBackward(We);
						break;
					case "deleteEntireSoftLine":
						Bf.deleteBackward(We, { unit: "line" }), Bf.deleteForward(We, { unit: "line" });
						break;
					case "deleteHardLineBackward":
						Bf.deleteBackward(We, { unit: "block" });
						break;
					case "deleteSoftLineBackward":
						Bf.deleteBackward(We, { unit: "line" });
						break;
					case "deleteHardLineForward":
						Bf.deleteForward(We, { unit: "block" });
						break;
					case "deleteSoftLineForward":
						Bf.deleteForward(We, { unit: "line" });
						break;
					case "deleteWordBackward":
						Bf.deleteBackward(We, { unit: "word" });
						break;
					case "deleteWordForward":
						Bf.deleteForward(We, { unit: "word" });
						break;
					case "insertLineBreak":
					case "insertParagraph":
						Bf.insertBreak(We);
						break;
					case "insertFromDrop":
					case "insertFromPaste":
					case "insertFromYank":
					case "insertReplacementText":
					case "insertText":
						if (Li === "insertFromPaste" && !BO.get(We)) break;
						fa instanceof DataTransfer ? We.insertData(fa) : typeof fa == "string" && Bf.insertText(We, fa);
				}
			}
		}
	},
	blur: function(x, Be, We) {
		var St = x, Kn = Be.isUpdatingSelection, _r = Be.latestElement;
		if (!We.getConfig().readOnly && !Kn && JT(We, St.target)) {
			var Li = QO.findDocumentOrShadowRoot(We);
			if (_r !== Li.activeElement) {
				var fa = St.relatedTarget;
				if (!(fa === QO.toDOMNode(We, We) || IO(fa) && fa.hasAttribute("data-slate-spacer"))) {
					if (fa != null && LO(fa) && QO.hasDOMNode(We, fa)) {
						var Vo = QO.toSlateNode(We, fa);
						if (Sf.isElement(Vo) && !We.isVoid(Vo)) return;
					}
					KO && Li.getSelection()?.removeAllRanges(), AO.delete(We);
				}
			}
		}
	},
	focus: function(x, Be, We) {
		var St = QO.toDOMNode(We, We);
		Be.latestElement = QO.findDocumentOrShadowRoot(We).activeElement, qO && x.target !== St ? St.focus() : AO.set(We, !0);
	},
	click: function(x, Be, We) {
		if (!We.getConfig().readOnly && e_(We, x.target) && LO(x.target)) {
			var St = QO.toSlateNode(We, x.target), Kn = QO.findPath(We, St);
			if (Bf.hasPath(We, Kn) && Nf.get(We, Kn) === St) {
				var _r = Bf.start(We, Kn), Li = Bf.end(We, Kn), fa = Bf.void(We, { at: _r }), Vo = Bf.void(We, { at: Li });
				if (fa && Vo && Mf.equals(fa[1], Vo[1])) {
					var Xo = Bf.range(We, _r);
					md.select(We, Xo);
				}
			}
		}
	},
	compositionstart: function(x, Be, We) {
		if (JT(We, x.target)) {
			var St = We.selection;
			if (St && qf.isExpanded(St) && (Bf.deleteFragment(We), Promise.resolve().then((function() {
				t_(Be, We, !0);
			}))), St && qf.isCollapsed(St)) {
				var Kn = QO.toDOMRange(We, St).startContainer, _r = Kn.textContent || "";
				n_.set(We, _r), r_.set(We, Kn);
			}
			Be.isComposing = !0, function(x, Be) {
				var We;
				Be.getConfig().placeholder && Be.isEmpty() && x.showPlaceholder && ((We = x.$placeholder) == null || We.hide(), x.showPlaceholder = !1);
			}(Be, We);
		}
	},
	compositionend: function(x, Be, We) {
		var St = x;
		if (JT(We, St.target)) {
			Be.isComposing = !1;
			var Kn = We.selection;
			if (Kn != null) {
				(ZO || qO) && QO.cleanExposedTexNodeInSelectionBlock(We);
				for (var _r = qf.isBackward(Kn) ? Kn.focus : Kn.anchor, Li = aA(Bf.node(We, [_r.path[0]]), 1)[0], fa = 0; fa < _r.path.length; fa++) {
					var Vo = aA(Bf.node(We, _r.path.slice(0, fa + 1)), 1)[0];
					if (Sf.isElement(Vo) && ((KO || qO) && Vo.type === "link" || Vo.type === "code")) {
						QO.setNewKey(Li);
						break;
					}
				}
				var Xo = St.data;
				if (Xo) {
					if (We.getConfig().maxLength) {
						var Tc = QO.getLeftLengthOfMaxLength(We);
						Tc < Xo.length ? (QO.toDOMRange(We, Kn).startContainer.textContent = n_.get(We) || "", Tc > 0 && Bf.insertText(We, Xo.slice(0, Tc)), Be.changeViewState()) : Bf.insertText(We, Xo);
					} else Bf.insertText(We, Xo);
					KO || setTimeout((function() {
						var x = We.selection;
						if (x != null) {
							var Be = r_.get(We);
							Be != null && QO.toDOMRange(We, x).startContainer !== Be && (Be.textContent = n_.get(We) || "");
						}
					}));
				}
			}
		}
	},
	compositionupdate: function(x, Be, We) {
		JT(We, x.target) && (Be.isComposing = !0);
	},
	keydown: function(x, Be, We) {
		var St = x, Kn = We.selection;
		if (!We.getConfig().readOnly && !Be.isComposing && JT(We, St.target)) {
			if (function(x, Be) {
				var We = sO.get(x), St = We && We.getMenus(), Kn = cO.get(x), _r = Kn && Kn.getMenus(), Li = oA(oA({}, St), _r);
				for (var fa in Li) {
					var Vo = Li[fa], Xo = Vo.hotkey;
					if (Xo && jv(Xo, Be) && !Vo.isDisabled(x)) {
						var Tc = Vo.getValue(x);
						Vo.exec(x, Tc);
					}
				}
			}(We, St), s_.isTab(St)) return l_(St), void We.handleTab();
			if (s_.isRedo(St)) return l_(St), void (typeof We.redo == "function" && We.redo());
			if (s_.isUndo(St)) return l_(St), void (typeof We.undo == "function" && We.undo());
			if (s_.isMoveLineBackward(St)) return l_(St), void md.move(We, {
				unit: "line",
				reverse: !0
			});
			if (s_.isMoveLineForward(St)) return l_(St), void md.move(We, { unit: "line" });
			if (s_.isExtendLineBackward(St)) return l_(St), void md.move(We, {
				unit: "line",
				edge: "focus",
				reverse: !0
			});
			if (s_.isExtendLineForward(St)) return l_(St), void md.move(We, {
				unit: "line",
				edge: "focus"
			});
			if (s_.isMoveBackward(St)) return l_(St), void (Kn && qf.isCollapsed(Kn) ? md.move(We, { reverse: !0 }) : md.collapse(We, { edge: "start" }));
			if (s_.isMoveForward(St)) return l_(St), void (Kn && qf.isCollapsed(Kn) ? md.move(We) : md.collapse(We, { edge: "end" }));
			if (s_.isMoveWordBackward(St)) return l_(St), Kn && qf.isExpanded(Kn) && md.collapse(We, { edge: "focus" }), void md.move(We, {
				unit: "word",
				reverse: !0
			});
			if (s_.isMoveWordForward(St)) return l_(St), Kn && qf.isExpanded(Kn) && md.collapse(We, { edge: "focus" }), void md.move(We, { unit: "word" });
			if (s_.isSelectAll(St)) return l_(St), void We.selectAll();
			if (JO) {
				if ((ZO || KO) && Kn && (s_.isDeleteBackward(St) || s_.isDeleteForward(St)) && qf.isCollapsed(Kn)) {
					var _r = Nf.parent(We, Kn.anchor.path);
					if (Sf.isElement(_r) && Bf.isVoid(We, _r) && Bf.isInline(We, _r)) return St.preventDefault(), void md.delete(We, { unit: "block" });
				}
			} else {
				if (s_.isBold(St) || s_.isItalic(St) || s_.isTransposeCharacter(St)) return void l_(St);
				if (s_.isSplitBlock(St)) return l_(St), void Bf.insertBreak(We);
				if (s_.isDeleteBackward(St)) return l_(St), void (Kn && qf.isExpanded(Kn) ? Bf.deleteFragment(We, { direction: "backward" }) : Bf.deleteBackward(We));
				if (s_.isDeleteForward(St)) return l_(St), void (Kn && qf.isExpanded(Kn) ? Bf.deleteFragment(We, { direction: "forward" }) : Bf.deleteForward(We));
				if (s_.isDeleteLineBackward(St)) return l_(St), void (Kn && qf.isExpanded(Kn) ? Bf.deleteFragment(We, { direction: "backward" }) : Bf.deleteBackward(We, { unit: "line" }));
				if (s_.isDeleteLineForward(St)) return l_(St), void (Kn && qf.isExpanded(Kn) ? Bf.deleteFragment(We, { direction: "forward" }) : Bf.deleteForward(We, { unit: "line" }));
				if (s_.isDeleteWordBackward(St)) return l_(St), void (Kn && qf.isExpanded(Kn) ? Bf.deleteFragment(We, { direction: "backward" }) : Bf.deleteBackward(We, { unit: "word" }));
				if (s_.isDeleteWordForward(St)) return l_(St), void (Kn && qf.isExpanded(Kn) ? Bf.deleteFragment(We, { direction: "forward" }) : Bf.deleteForward(We, { unit: "word" }));
			}
		}
	},
	keypress: function(x, Be, We) {
		if (!JO && !We.getConfig().readOnly && JT(We, x.target)) {
			x.preventDefault();
			var St = x.key;
			Bf.insertText(We, St);
		}
	},
	copy: function(x, Be, We) {
		var St = x;
		if (JT(We, St.target)) {
			St.preventDefault();
			var Kn = St.clipboardData;
			Kn != null && We.setFragmentData(Kn);
		}
	},
	cut: function(x, Be, We) {
		var St = x, Kn = We.selection;
		if (!We.getConfig().readOnly && JT(We, St.target)) {
			St.preventDefault();
			var _r = St.clipboardData;
			if (_r != null && (We.setFragmentData(_r), Kn)) if (qf.isExpanded(Kn)) Bf.deleteFragment(We);
			else {
				var Li = Nf.parent(We, Kn.anchor.path);
				Bf.isVoid(We, Li) && md.delete(We);
			}
		}
	},
	paste: function(x, Be, We) {
		BO.set(We, !0);
		var St = x;
		if (!We.getConfig().readOnly && JT(We, St.target)) {
			var Kn = We.getConfig().customPaste;
			if (Kn && !1 === Kn(We, St)) return void BO.set(We, !1);
			if (!JO || function(x) {
				return x.clipboardData && x.clipboardData.getData("text/plain") !== "" && x.clipboardData.types.length === 1;
			}(St)) {
				St.preventDefault();
				var _r = St.clipboardData;
				_r != null && We.insertData(_r);
			}
		}
	},
	dragover: function(x, Be, We) {
		if (e_(We, x.target)) {
			var St = QO.toSlateNode(We, x.target);
			Bf.isVoid(We, St) && x.preventDefault();
		}
	},
	dragstart: function(x, Be, We) {
		var St = x;
		if (e_(We, St.target) && !We.getConfig().readOnly) {
			var Kn = QO.toSlateNode(We, St.target), _r = QO.findPath(We, Kn);
			if (Bf.isVoid(We, Kn) || Bf.void(We, {
				at: _r,
				voids: !0
			})) {
				var Li = Bf.range(We, _r);
				md.select(We, Li);
			}
			var fa = St.dataTransfer;
			fa != null && (Be.isDraggingInternally = !0, We.setFragmentData(fa));
		}
	},
	dragend: function(x, Be, We) {
		var St = x;
		We.getConfig().readOnly || Be.isDraggingInternally && e_(We, St.target) && (Be.isDraggingInternally = !1);
	},
	drop: function(x, Be, We) {
		var St = x, Kn = St.dataTransfer;
		if (!We.getConfig().readOnly && e_(We, St.target) && Kn != null && !(JO && KO && Kn.files.length > 0)) {
			St.preventDefault();
			var _r = We.selection, Li = QO.findEventRange(We, St);
			md.select(We, Li), Be.isDraggingInternally &&= (_r && md.delete(We, { at: _r }), !1), We.insertData(Kn), We.isFocused() || We.focus();
		}
	}
}, f_ = 1, d_ = function() {
	function x(x) {
		var Be = this;
		this.id = f_++, this.$textArea = null, this.$progressBar = Mp("<div class=\"w-e-progress-bar\"></div>"), this.$maxLengthInfo = Mp("<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 = eg((function() {
			(function(x, Be) {
				var We = x.isComposing, St = x.isUpdatingSelection, Kn = x.isDraggingInternally;
				if (!(Be.getConfig().readOnly || We || St || Kn)) {
					var _r = QO.findDocumentOrShadowRoot(Be), Li = _r.activeElement, fa = QO.toDOMNode(Be, Be), Vo = _r.getSelection();
					if (Li === fa ? (x.latestElement = Li, AO.set(Be, !0)) : AO.delete(Be), !Vo) return md.deselect(Be);
					var Xo = Vo.anchorNode, Tc = Vo.focusNode, Tl = JT(Be, Xo) || QT(Be, Xo), Al = JT(Be, Tc) || QT(Be, Tc);
					if (Tl && Al) {
						var Uu = QO.toSlateRange(Be, Vo, {
							exactMatch: !1,
							suppressThrow: !1
						});
						md.select(Be, Uu);
					} else md.deselect(Be);
				}
			})(Be, Be.editorInstance);
		}), 100);
		var We = Mp(x);
		if (We.length === 0) throw Error("Cannot find textarea DOM by selector '" + x + "'");
		this.$box = We;
		var St = Mp("<div class=\"w-e-text-container\"></div>");
		St.append(this.$progressBar), St.append(this.$maxLengthInfo), We.append(St);
		var Kn = Mp("<div class=\"w-e-scroll\"></div>");
		St.append(Kn), this.$scroll = Kn, this.$textAreaContainer = St, ZB((function() {
			var x = Be.editorInstance, We = QO.getWindow(x);
			We.document.addEventListener("selectionchange", Be.onDOMSelectionChange), x.on("destroyed", (function() {
				We.document.removeEventListener("selectionchange", Be.onDOMSelectionChange);
			})), St.on("click", (function() {
				return x.hidePanelOrModal();
			})), x.on("change", Be.changeViewState.bind(Be));
			var Kn = x.getConfig().onChange;
			Kn && x.on("change", (function() {
				return Kn(x);
			})), Be.onFocusAndOnBlur(), x.on("change", Be.changeMaxLengthInfo.bind(Be)), Be.bindEvent();
		}));
	}
	return Object.defineProperty(x.prototype, "editorInstance", {
		get: function() {
			var x = aO.get(this);
			if (x == null) throw Error("Can not get editor instance");
			return x;
		},
		enumerable: !1,
		configurable: !0
	}), x.prototype.bindEvent = function() {
		var x = this, Be = this.$textArea, We = this.$scroll, St = this.editorInstance;
		Be != null && (Lh(c_, (function(We, Kn) {
			Be.on(Kn, (function(Be) {
				We(Be, x, St);
			}));
		})), St.getConfig().scroll && (We.css("overflow-y", "auto"), We.on("scroll", eg((function() {
			St.emit("scroll");
		}), 100))));
	}, x.prototype.onFocusAndOnBlur = function() {
		var x = this, Be = this.editorInstance, We = Be.getConfig(), St = We.onBlur, Kn = We.onFocus;
		this.latestEditorSelection = Be.selection, Be.on("change", (function() {
			x.latestEditorSelection == null && Be.selection != null ? setTimeout((function() {
				return Kn && Kn(Be);
			})) : x.latestEditorSelection != null && Be.selection == null && setTimeout((function() {
				return St && St(Be);
			})), x.latestEditorSelection = Be.selection;
		}));
	}, x.prototype.changeMaxLengthInfo = function() {
		var x = this.editorInstance, Be = x.getConfig().maxLength;
		if (Be) {
			var We = Be - QO.getLeftLengthOfMaxLength(x);
			this.$maxLengthInfo[0].innerHTML = We + "/" + Be;
		}
	}, x.prototype.changeProgress = function(x) {
		var Be = this.$progressBar;
		Be.css("width", x + "%"), x >= 100 && setTimeout((function() {
			Be.hide(), Be.css("width", "0"), Be.show();
		}), 1e3);
	}, x.prototype.changeViewState = function() {
		var x = this, Be = this.editorInstance;
		WT(this, Be), function(x, Be) {
			var We, St = Be.getConfig().placeholder;
			if (St) {
				var Kn = Be.isEmpty();
				if (Kn && !x.showPlaceholder && !x.isComposing) {
					if (x.$placeholder == null) {
						var _r = Mp("<div class=\"w-e-text-placeholder\">" + St + "</div>");
						x.$textAreaContainer.append(_r), x.$placeholder = _r;
					}
					x.$placeholder.show(), x.showPlaceholder = !0;
					return;
				}
				!Kn && x.showPlaceholder && ((We = x.$placeholder) == null || We.hide(), x.showPlaceholder = !1);
			}
		}(this, Be), ZB((function() {
			t_(x, Be);
		}));
	}, x.prototype.destroy = function() {
		this.$textAreaContainer.remove();
	}, x;
}();
function p_(x) {
	x.removeAttr("width"), x.removeAttr("height"), x.removeAttr("fill"), x.removeAttr("class"), x.removeAttr("t"), x.removeAttr("p-id");
	var Be = x.children();
	Be.length && p_(Be);
}
function h_() {
	return Mp("<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 g_() {
	return Mp("<div class=\"w-e-bar-divider\"></div>");
}
function v_(x, Be, We, St, Kn) {
	if (Kn === void 0 && (Kn = !1), Be) {
		if (St) {
			var _r = GO ? "cmd" : "ctrl";
			St = St.replace("mod", _r);
		}
		if (Kn) St && (x.attr("data-tooltip", St), x.addClass("w-e-menu-tooltip-v5"), x.addClass("tooltip-right"));
		else {
			var Li = St ? We + "\n" + St : We;
			x.attr("data-tooltip", Li), x.addClass("w-e-menu-tooltip-v5");
		}
	}
}
NC("match", (function(x, Be, We) {
	return [function(Be) {
		var We = ww(this), St = Be == null ? void 0 : dE(Be, x);
		return St ? oE(St, Be, We) : new RegExp(Be)[x](bS(We));
	}, function(x) {
		var St = nE(this), Kn = bS(x), _r = We(Be, St, Kn);
		if (_r.done) return _r.value;
		if (!St.global) return GC(St, Kn);
		var Li = St.unicode;
		St.lastIndex = 0;
		for (var fa, Vo = [], Xo = 0; (fa = GC(St, Kn)) !== null;) {
			var Tc = bS(fa[0]);
			Vo[Xo] = Tc, Tc === "" && (St.lastIndex = LC(Kn, dD(St.lastIndex), Li)), Xo++;
		}
		return Xo === 0 ? null : Vo;
	}];
}));
var y_ = function() {
	function x(x, Be, We) {
		var St = this;
		We === void 0 && (We = !1), this.$elem = Mp("<div class=\"w-e-bar-item\"></div>"), this.$button = Mp("<button type=\"button\"></button>"), this.disabled = !1, this.menu = Be;
		var Kn = Be.tag, _r = Be.width;
		if (Kn !== "button") throw Error("Invalid tag '" + Kn + "', expected 'button'");
		var Li = Be.title, fa = Be.hotkey, Vo = fa === void 0 ? "" : fa, Xo = Be.iconSvg, Tc = Xo === void 0 ? "" : Xo, Tl = this.$button;
		if (Tc) {
			var Al = Mp(Tc);
			p_(Al), Tl.append(Al);
		} else Tl.text(Li);
		v_(Tl, Tc, Li, Vo, We), We && Tc && Tl.append(Mp("<span class=\"title\">" + Li + "</span>")), _r && Tl.css("width", _r + "px"), Tl.attr("data-menu-key", x), this.$elem.append(Tl), ZB((function() {
			return St.init();
		}));
	}
	return x.prototype.init = function() {
		var x = this;
		this.setActive(), this.setDisabled(), this.$button.on("click", (function(Be) {
			Be.preventDefault(), T_(x).hidePanelOrModal(), x.disabled || (x.exec(), x.onButtonClick());
		}));
	}, x.prototype.exec = function() {
		var x = T_(this), Be = this.menu, We = Be.getValue(x);
		Be.exec(x, We);
	}, x.prototype.setActive = function() {
		var x = T_(this), Be = this.$button, We = "active";
		this.menu.isActive(x) ? Be.addClass(We) : Be.removeClass(We);
	}, x.prototype.setDisabled = function() {
		var x = T_(this), Be = this.$button, We = this.menu.isDisabled(x);
		(x.selection == null || x.isDisabled()) && (We = !0), this.menu.alwaysEnable && (We = !1);
		var St = "disabled";
		We ? Be.addClass(St) : Be.removeClass(St), this.disabled = We;
	}, x.prototype.changeMenuState = function() {
		this.setActive(), this.setDisabled();
	}, x;
}(), m_ = function(x) {
	function Be(Be, We, St) {
		return St === void 0 && (St = !1), x.call(this, Be, We, St) || this;
	}
	return rA(Be, x), Be.prototype.onButtonClick = function() {}, Be;
}(y_), b_ = function() {
	function x(x) {
		this.isShow = !1, this.showTime = 0, this.record(x);
	}
	return x.prototype.record = function(x) {
		var Be = dO.get(x);
		Be ?? (Be = /* @__PURE__ */ new Set(), dO.set(x, Be)), Be.add(this), pO.set(this, x);
	}, x.prototype.renderContent = function(x) {
		var Be = this.$elem;
		Be.empty(), Be.append(x);
		var We = this.genSelfElem();
		We && Be.append(We);
	}, x.prototype.appendTo = function(x) {
		var Be = this.$elem;
		x.append(Be);
	}, x.prototype.show = function() {
		if (!this.isShow) {
			this.showTime = Date.now(), this.$elem.show(), this.isShow = !0;
			var x = pO.get(this);
			x && x.emit("modalOrPanelShow", this);
		}
	}, x.prototype.hide = function() {
		if (this.isShow && !(Date.now() - this.showTime < 200)) {
			this.$elem.hide(), this.isShow = !1;
			var x = pO.get(this);
			x && x.emit("modalOrPanelHide");
		}
	}, x;
}(), w_ = function(x) {
	function Be(Be) {
		var We = x.call(this, Be) || this;
		return We.type = "dropPanel", We.$elem = Mp("<div class=\"w-e-drop-panel\"></div>"), We;
	}
	return rA(Be, x), Be.prototype.genSelfElem = function() {
		return null;
	}, Be;
}(b_), E_ = function(x) {
	function Be(Be, We, St) {
		St === void 0 && (St = !1);
		var Kn = x.call(this, Be, We, St) || this;
		if (Kn.dropPanel = null, Kn.menu = We, We.showDropPanel) {
			var _r = h_();
			Kn.$button.append(_r);
		}
		return Kn;
	}
	return rA(Be, x), Be.prototype.onButtonClick = function() {
		this.menu.showDropPanel && this.handleDropPanel();
	}, Be.prototype.handleDropPanel = function() {
		var x = this.menu;
		if (x.getPanelContentElem != null) {
			var Be = T_(this);
			if (this.dropPanel == null) {
				var We = new w_(Be), St = x.getPanelContentElem(Be);
				We.renderContent(St), We.appendTo(this.$elem), We.show(), this.dropPanel = We;
			} else {
				var Kn = this.dropPanel;
				Kn.isShow ? Kn.hide() : (St = x.getPanelContentElem(Be), Kn.renderContent(St), Kn.show());
			}
			var _r = this.dropPanel;
			if (_r.isShow) {
				var Li = this.$elem, fa = Li.offset().left, Vo = Li.parents(".w-e-bar");
				fa - Vo.offset().left >= Vo.width() / 2 ? _r.$elem.css({
					left: "none",
					right: "0"
				}) : _r.$elem.css({
					left: "0",
					right: "none"
				});
			}
		}
	}, Be;
}(y_), D_ = function(x) {
	function Be(Be, We) {
		We === void 0 && (We = 0);
		var St = x.call(this, Be) || this;
		St.type = "modal", St.$elem = Mp("<div class=\"w-e-modal\"></div>"), St.width = 0, We && (St.width = We);
		var Kn = St.$elem;
		return Kn.on("click", (function(x) {
			return x.stopPropagation();
		})), Kn.on("keyup", (function(x) {
			x.code === "Escape" && (St.hide(), Be.restoreSelection());
		})), St;
	}
	return rA(Be, x), Be.prototype.genSelfElem = function() {
		var x = this, Be = Mp("<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>"), We = pO.get(this);
		return Be.on("click", (function() {
			x.hide(), We?.restoreSelection();
		})), Be;
	}, Be.prototype.setStyle = function(x) {
		var Be = this.width, We = this.$elem;
		We.attr("style", ""), Be && We.css("width", Be + "px"), We.css(x);
	}, Be;
}(b_);
function S_(x, Be, We) {
	var St = Mp("<label class=\"babel-container\"></label>");
	St.append("<span>" + x + "</span>");
	var Kn = Mp("<input type=\"text\" id=\"" + Be + "\" placeholder=\"" + (We || "") + "\">");
	return St.append(Kn), [St[0], Kn[0]];
}
function C_(x, Be) {
	var We = Mp("<div class=\"button-container\"></div>"), St = Mp("<button type=\"button\" id=\"" + x + "\">" + Be + "</button>");
	return We.append(St), [We[0], St[0]];
}
var A_ = function(x) {
	function Be(Be, We, St) {
		St === void 0 && (St = !1);
		var Kn = x.call(this, Be, We, St) || this;
		return Kn.$body = Mp("body"), Kn.modal = null, Kn.menu = We, Kn;
	}
	return rA(Be, x), Be.prototype.onButtonClick = function() {
		this.menu.showModal && this.handleModal();
	}, Be.prototype.getPosition = function() {
		var x = T_(this), Be = this.menu.getModalPositionNode(x);
		return Sf.isElement(Be) ? ET(x, Be, "modal") : wT(x);
	}, Be.prototype.handleModal = function() {
		var x = T_(this), Be = this.menu;
		if (this.modal == null) {
			var We = new D_(x, Be.modalWidth);
			this.renderAndShowModal(We, !0), this.modal = We;
		} else (We = this.modal).isShow ? We.hide() : this.renderAndShowModal(We, !1);
	}, Be.prototype.renderAndShowModal = function(x, Be) {
		Be === void 0 && (Be = !1);
		var We = T_(this), St = this.menu;
		if (St.getModalContentElem != null) {
			var Kn = QO.getTextarea(We), _r = (QO.getToolbar(We)?.getConfig() || {}).modalAppendToBody, Li = St.getModalContentElem(We);
			if (x.renderContent(Li), _r) x.setStyle({
				left: "0",
				right: "0"
			});
			else {
				var fa = this.getPosition();
				x.setStyle(fa);
			}
			Be && (_r ? x.appendTo(this.$body) : x.appendTo(Kn.$textAreaContainer)), x.show(), _r || DT(We, x.$elem), setTimeout((function() {
				We.blur();
			}));
		}
	}, Be;
}(y_), O_ = function(x) {
	function Be(Be, We) {
		var St = x.call(this, Be) || this;
		return St.type = "selectList", St.$elem = Mp("<div class=\"w-e-select-list\"></div>"), We && St.$elem.css("width", We + "px"), St.$elem.on("click", (function(x) {
			x.stopPropagation();
		})), St;
	}
	return rA(Be, x), Be.prototype.renderList = function(x) {
		var Be = this.$elem;
		Be.empty();
		var We = Mp("<ul></ul>");
		x.forEach((function(x) {
			var Be = x.value, St = x.text, Kn = x.selected, _r = x.styleForRenderMenuList, Li = Mp("<li data-value=\"" + Be + "\"></li>");
			if (_r && Li.css(_r), Kn) {
				var fa = Mp("<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>");
				Li.append(fa), Li.addClass("selected");
			}
			Li.append(Mp("<span data-value=\"" + Be + "\">" + St + "</span>")), Li.attr("title", St), We.append(Li);
		})), Be.append(We);
	}, Be.prototype.genSelfElem = function() {
		return null;
	}, Be;
}(b_), k_ = function() {
	function x(x, Be, We) {
		var St = this;
		We === void 0 && (We = !1), this.$elem = Mp("<div class=\"w-e-bar-item\"></div>"), this.$button = Mp("<button type=\"button\" class=\"select-button\"></button>"), this.disabled = !1, this.selectList = null;
		var Kn = Be.tag, _r = Be.title, Li = Be.width, fa = Be.iconSvg, Vo = fa === void 0 ? "" : fa, Xo = Be.hotkey, Tc = Xo === void 0 ? "" : Xo;
		if (Kn !== "select") throw Error("Invalid tag '" + Kn + "', expected 'select'");
		var Tl = this.$button;
		Li && Tl.css("width", Li + "px"), Tl.attr("data-menu-key", x), v_(Tl, Vo, _r, Tc, We), this.$elem.append(Tl), this.menu = Be, ZB((function() {
			return St.init();
		}));
	}
	return x.prototype.init = function() {
		var x = this;
		this.setSelectedValue(), this.$button.on("click", (function(Be) {
			Be.preventDefault(), T_(x).hidePanelOrModal(), x.trigger();
		}));
	}, x.prototype.trigger = function() {
		var x = this, Be = T_(this);
		if (!Be.isDisabled() && !this.disabled) {
			var We = this.menu;
			if (this.selectList == null) {
				this.selectList = new O_(Be, We.selectPanelWidth);
				var St = this.selectList, Kn = We.getOptions(Be);
				St.renderList(Kn), St.appendTo(this.$elem), St.show(), St.$elem.on("click", "li", (function(Be) {
					var We = Be.target;
					if (We != null) {
						Be.preventDefault();
						var St = Mp(We).attr("data-value");
						x.onChange(St);
					}
				}));
			} else (St = this.selectList).isShow ? St.hide() : (Kn = We.getOptions(Be), St.renderList(Kn), St.show());
		}
	}, x.prototype.onChange = function(x) {
		var Be = T_(this), We = this.menu;
		We.exec && We.exec(Be, x);
	}, x.prototype.setSelectedValue = function() {
		var x = T_(this), Be = this.menu, We = Be.getValue(x), St = function(x, Be) {
			for (var We = x.length, St = "", Kn = 0; Kn < We; Kn++) {
				var _r = x[Kn];
				if (_r.value === Be) {
					St = _r.text;
					break;
				}
			}
			return St;
		}(Be.getOptions(x), We.toString()), Kn = this.$button, _r = h_();
		Kn.empty(), Kn.text(St), Kn.append(_r);
	}, x.prototype.setDisabled = function() {
		var x = T_(this), Be = this.menu.isDisabled(x), We = this.$button;
		(x.selection == null || x.isDisabled()) && (Be = !0);
		var St = "disabled";
		Be ? We.addClass(St) : We.removeClass(St), this.disabled = Be;
	}, x.prototype.changeMenuState = function() {
		this.setSelectedValue(), this.setDisabled();
	}, x;
}(), B_ = function() {
	function x(x) {
		this.$elem = Mp("<div class=\"w-e-bar-item w-e-bar-item-group\"></div>"), this.$container = Mp("<div class=\"w-e-bar-item-menus-container\"></div>"), this.$button = Mp("<button type=\"button\"></button>");
		var Be = x.key, We = x.iconSvg, St = x.title, Kn = this.$elem, _r = this.$button;
		if (We) {
			var Li = Mp(We);
			p_(Li), _r.append(Li);
		} else _r.text(St);
		_r.attr("data-menu-key", Be);
		var fa = h_();
		_r.append(fa), Kn.append(_r);
		var Vo = this.$container;
		Kn.append(Vo);
		var Xo = this.createObserver();
		this.observe(Xo);
	}
	return x.prototype.appendBarItem = function(x) {
		var Be = x.$elem;
		this.$container.append(Be);
	}, x.prototype.observe = function(x) {
		var Be = this.$container;
		x.observe(Be[0], {
			childList: !0,
			subtree: !0,
			attributes: !0
		});
	}, x.prototype.createObserver = function() {
		var x = this, Be = this.$container, We = this.$button, St = new MutationObserver((function() {
			var Kn = Be.find("button"), _r = Kn.length;
			if (_r !== 0) {
				var Li = 0;
				Kn.each((function(x) {
					Mp(x).hasClass("disabled") && Li++;
				})), St.disconnect(), Li === _r ? We.addClass("disabled") : We.removeClass("disabled"), x.observe(St);
			}
		}));
		return St;
	}, x;
}(), F_ = /* @__PURE__ */ new WeakMap();
function T_(x) {
	var Be = fO.get(x);
	if (Be == null) throw Error("Can not get editor instance");
	return Be;
}
function __(x, Be, We) {
	We === void 0 && (We = !1);
	var St = F_.get(Be);
	if (St) return St;
	var Kn = Be.tag;
	if (Kn === "button") {
		var _r = Be.showDropPanel, Li = Be.showModal;
		St = _r ? new E_(x, Be, We) : Li ? new A_(x, Be, We) : new m_(x, Be, We);
	}
	if (Kn === "select" && (St = new k_(x, Be, We)), St == null) throw Error("Invalid tag in menu " + JSON.stringify(Be));
	return F_.set(Be, St), St;
}
function P_(x, Be) {
	var We = x.selection;
	return We != null && !qf.isCollapsed(We) && !QO.getSelectedElems(x).some((function(Be) {
		if (x.isVoid(Be)) return !0;
		var We = Be.type;
		return !![
			"pre",
			"code",
			"table"
		].includes(We) || void 0;
	})) && !!ed.isText(Be);
}
var j_ = function() {
	function x() {
		var x = this;
		this.$elem = Mp("<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 = Zv((function() {
			var Be = x.isShow, We = x.getSelectedNodeAndMenuKeys() || {}, St = We.node, Kn = St === void 0 ? null : St, _r = We.menuKeys, Li = _r === void 0 ? [] : _r;
			Kn != null && x.changeItemsState(), Kn && Sf.isElement(Kn) && Be && x.isSamePath(Kn, x.prevSelectedNode) || (x.hideAndClean(), Kn != null && (x.registerItems(Li), x.setPosition(Kn), x.show()), x.prevSelectedNode = Kn);
		}), 200), ZB((function() {
			var Be = x.getEditorInstance(), We = x.$elem;
			We.on("mousedown", (function(x) {
				return x.preventDefault();
			}), { passive: !1 }), QO.getTextarea(Be).$textAreaContainer.append(We), Be.on("change", x.changeHoverbarState);
			var St = x.hideAndClean.bind(x);
			Be.on("scroll", St), Be.on("fullScreen", St), Be.on("unFullScreen", St);
		}));
	}
	return x.prototype.getMenus = function() {
		return this.menus;
	}, x.prototype.hideAndClean = function() {
		var x = this.$elem;
		x.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"), this.hoverbarItems = [], x.empty(), this.isShow = !1;
	}, x.prototype.checkPositionBottom = function() {
		var x = this.$elem, Be = !1, We = window.innerHeight;
		We && We >= 360 && We - x[0].getBoundingClientRect().bottom < 360 && (Be = !0), Be ? x.addClass("w-e-bar-bottom") : x.removeClass("w-e-bar-bottom");
	}, x.prototype.show = function() {
		this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"), this.isShow = !0, this.checkPositionBottom();
	}, x.prototype.changeItemsState = function() {
		var x = this;
		ZB((function() {
			x.hoverbarItems.forEach((function(x) {
				x.changeMenuState();
			}));
		}));
	}, x.prototype.registerItems = function(x) {
		var Be = this, We = this.$elem;
		x.forEach((function(x) {
			if (x !== "|") Be.registerSingleItem(x);
			else {
				var St = g_();
				We.append(St);
			}
		}));
	}, x.prototype.registerSingleItem = function(x) {
		var Be = this.getEditorInstance(), We = this.menus, St = We[x];
		if (St == null) {
			var Kn = nk[x];
			if (Kn == null) throw Error("Not found menu item factory by key '" + x + "'");
			if (typeof Kn != "function") throw Error("Menu item factory (key='" + x + "') is not a function");
			St = Kn(), We[x] = St;
		}
		var _r = __(x, St);
		this.hoverbarItems.push(_r), fO.set(_r, Be), this.$elem.append(_r.$elem);
	}, x.prototype.setPosition = function(x) {
		var Be = this.getEditorInstance(), We = this.$elem;
		if (We.attr("style", ""), Sf.isElement(x)) {
			var St = ET(Be, x, "bar");
			We.css(St), DT(Be, We);
			return;
		}
		if (ed.isText(x)) return St = wT(Be), We.css(St), void DT(Be, We);
		throw Error("hoverbar.setPosition error, current selected node is not elem nor text");
	}, x.prototype.getSelectedNodeAndMenuKeys = function() {
		var x = this.getEditorInstance();
		if (x.selection == null) return null;
		var Be = this.getHoverbarKeysConf(), We = null, St = [], Kn = function(Kn) {
			var _r = Be[Kn], Li = _r.match, fa = _r.menuKeys, Vo = fa === void 0 ? [] : fa, Xo = Li || function(x, Be) {
				return QO.checkNodeType(Be, Kn);
			}, Tc = aA(Bf.nodes(x, {
				match: function(Be) {
					return Xo(x, Be);
				},
				universal: !0
			}), 1)[0];
			if (Tc != null) return We = Tc[0], St = Vo, "break";
		};
		for (var _r in Be) if (Kn(_r) === "break") break;
		return We == null || St.length === 0 ? null : {
			node: We,
			menuKeys: St
		};
	}, x.prototype.getEditorInstance = function() {
		var x = lO.get(this);
		if (x == null) throw Error("Can not get editor instance");
		return x;
	}, x.prototype.getHoverbarKeysConf = function() {
		var x = this.getEditorInstance().getConfig().hoverbarKeys, Be = x === void 0 ? {} : x, We = Be.text;
		return We && We.match == null && (We.match = P_), Be;
	}, x.prototype.isSamePath = function(x, Be) {
		if (x == null || Be == null) return !1;
		var We = QO.findPath(null, x), St = QO.findPath(null, Be);
		return Mf.equals(We, St);
	}, x.prototype.destroy = function() {
		this.changeHoverbarState.cancel(), this.$elem.remove(), this.menus = {}, this.hoverbarItems = [], this.prevSelectedNode = null;
	}, x;
}();
function N_(x, Be, We, St) {
	if (mO.set(x, Be), bO.set(x, We), Sf.isElement(x)) {
		var Kn = x.children;
		if ((Kn === void 0 ? [] : Kn).forEach((function(Be, We) {
			return N_(Be, We, x, St);
		})), Bf.isVoid(St, x)) {
			var _r = aA(aA(Nf.texts(x), 1)[0], 1)[0];
			mO.set(_r, 0), bO.set(_r, x);
		}
	}
}
function I_(x) {
	var Be = x.selector, We = Be === void 0 ? "" : Be, St = x.config, Kn = St === void 0 ? {} : St, _r = x.content, Li = x.html, fa = x.plugins, Vo = fa === void 0 ? [] : fa, Xo = ((x) => {
		var Be = x, { apply: We } = Be;
		return Be.history = {
			undos: [],
			redos: []
		}, Be.redo = () => {
			var { history: x } = Be, { redos: We } = x;
			if (We.length > 0) {
				var St = We[We.length - 1];
				yS.withoutSaving(Be, (() => {
					Bf.withoutNormalizing(Be, (() => {
						for (var x of St) Be.apply(x);
					}));
				})), x.redos.pop(), x.undos.push(St);
			}
		}, Be.undo = () => {
			var { history: x } = Be, { undos: We } = x;
			if (We.length > 0) {
				var St = We[We.length - 1];
				yS.withoutSaving(Be, (() => {
					Bf.withoutNormalizing(Be, (() => {
						for (var x of St.map(Rf.inverse).reverse()) Be.apply(x);
					}));
				})), x.redos.push(St), x.undos.pop();
			}
		}, Be.apply = (x) => {
			var { operations: St, history: Kn } = Be, { undos: _r } = Kn, Li = _r[_r.length - 1], fa = Li && Li[Li.length - 1], Vo = ((x, Be) => !(!Be || x.type !== "set_selection" || Be.type !== "set_selection"))(x, fa), Xo = yS.isSaving(Be), Tc = yS.isMerging(Be);
			if (Xo ??= ((x, Be) => x.type !== "set_selection" || x.properties != null && x.newProperties != null)(x), Xo) {
				if (Tc ??= Li != null && (St.length !== 0 || ((x, Be) => x.type === "set_selection" || !(!Be || x.type !== "insert_text" || Be.type !== "insert_text" || x.offset !== Be.offset + Be.text.length || !Mf.equals(x.path, Be.path)) || !(!Be || x.type !== "remove_text" || Be.type !== "remove_text" || x.offset + x.text.length !== Be.offset || !Mf.equals(x.path, Be.path)))(x, fa) || Vo), Li && Tc) Vo && Li.pop(), Li.push(x);
				else {
					var Tl = [x];
					_r.push(Tl);
				}
				for (; _r.length > 100;) _r.shift();
				((x) => x.type !== "set_selection")(x) && (Kn.redos = []);
			}
			We(x);
		}, Be;
	})(function(x) {
		var Be = x, We = Be.insertText, St = Be.insertNode, Kn = Be.insertFragment, _r = Be.dangerouslyInsertHtml;
		return Be.insertText = function(x) {
			if (Be.getConfig().maxLength) {
				var St = QO.getLeftLengthOfMaxLength(Be);
				St <= 0 || (St < x.length ? We(x.slice(0, St)) : We(x));
			} else We(x);
		}, Be.insertNode = function(x) {
			if (Be.getConfig().maxLength) {
				var We = QO.getLeftLengthOfMaxLength(Be);
				We <= 0 || We < Nf.string(x).length || St(x);
			} else St(x);
		}, Be.insertFragment = function(x) {
			if (Be.getConfig().maxLength) if (x.length !== 1) x.forEach((function(x) {
				Be.insertNode(x);
			}));
			else {
				var We = x[0];
				if (QO.getLeftLengthOfMaxLength(Be) < Nf.string(We).length) return;
				Kn(x);
			}
			else Kn(x);
		}, Be.dangerouslyInsertHtml = function(x, We) {
			if (x === void 0 && (x = ""), We === void 0 && (We = !1), x) if (Be.getConfig().maxLength) {
				var St = QO.getLeftLengthOfMaxLength(Be);
				if (!(St <= 0)) {
					var Kn = document.createElement("div");
					Kn.innerHTML = x, St < Array.from(Kn.childNodes).reduce((function(x, Be) {
						var We = Be.nodeType, St = Be.nodeName;
						return Be ? We === PO.TEXT_NODE ? x + (Be.textContent || "") : We === PO.ELEMENT_NODE ? UF.has(St.toLowerCase()) ? x : x + (Be.textContent || "") : x : x;
					}), "").length || _r(x, We);
				}
			} else _r(x, We);
		}, Be;
	}(function(x) {
		var Be = x;
		return Be.on = function(x, We) {
			var St = hT(Be);
			if (St.on(x, We), x === "destroyed" && vT(Be, We), x !== "destroyed") {
				var Kn = function() {
					return St.off(x, We);
				};
				St.on("destroyed", Kn), vT(Be, Kn);
			}
		}, Be.once = function(x, We) {
			hT(Be).once(x, We);
		}, Be.off = function(x, We) {
			hT(Be).off(x, We);
		}, Be.emit = function(x) {
			var We = [...arguments].slice(1), St = hT(Be);
			St.emit.apply(St, uA([x], aA(We))), x === "destroyed" && (yT(Be).forEach((function(x) {
				return St.off("destroyed", x);
			})), mT(Be));
		}, Be;
	}(function(x) {
		var Be = x;
		return Be.select = function(x) {
			md.select(Be, x);
		}, Be.deselect = function() {
			var We = Be.selection, St = QO.findDocumentOrShadowRoot(Be).getSelection();
			St && St.rangeCount > 0 && St.removeAllRanges(), We && md.deselect(x);
		}, Be.move = function(Be, We) {
			We === void 0 && (We = !1), Be && (Be < 0 || md.move(x, {
				distance: Be,
				unit: "character",
				reverse: We
			}));
		}, Be.moveReverse = function(x) {
			Be.move(x, !0);
		}, Be.restoreSelection = function() {
			var x = OO.get(Be);
			x != null && (Be.focus(), md.select(Be, x));
		}, Be.getSelectionPosition = function() {
			return wT(Be);
		}, Be.getNodePosition = function(x) {
			return ET(Be, x);
		}, Be.isSelectedAll = function() {
			var x = Be.selection;
			if (x == null) return !1;
			var We = aA(qf.edges(x), 2), St = We[0], Kn = We[1], _r = aA(Bf.edges(Be, []), 2), Li = _r[0], fa = _r[1];
			return !(!Vf.equals(St, Li) || !Vf.equals(Kn, fa));
		}, Be.selectAll = function() {
			var x = Bf.start(Be, []), We = Bf.end(Be, []);
			md.select(Be, {
				anchor: x,
				focus: We
			});
		}, Be;
	}(function(x) {
		var Be = x, We = Be.onChange, St = Be.insertText, Kn = Be.apply, _r = Be.deleteBackward;
		return Be.insertText = function(x) {
			Be.getConfig().readOnly || St(x);
		}, Be.apply = function(x) {
			var We, St, _r, Li, fa, Vo, Xo, Tc, Tl = [];
			switch (x.type) {
				case "insert_text":
				case "remove_text":
				case "set_node":
					try {
						for (var Al = iA(Bf.levels(Be, { at: x.path })), Uu = Al.next(); !Uu.done; Uu = Al.next()) {
							var Ff = aA(Uu.value, 2), Lm = Ff[0], Bm = Ff[1], x_ = QO.findKey(Be, Lm);
							Tl.push([Bm, x_]);
						}
					} catch (x) {
						We = { error: x };
					} finally {
						try {
							Uu && !Uu.done && (St = Al.return) && St.call(Al);
						} finally {
							if (We) throw We.error;
						}
					}
					break;
				case "insert_node":
				case "remove_node":
				case "merge_node":
				case "split_node":
					try {
						for (var uy = iA(Bf.levels(Be, { at: Mf.parent(x.path) })), dx = uy.next(); !dx.done; dx = uy.next()) {
							var kx = aA(dx.value, 2);
							Lm = kx[0], Bm = kx[1], x_ = QO.findKey(Be, Lm), Tl.push([Bm, x_]);
						}
					} catch (x) {
						_r = { error: x };
					} finally {
						try {
							dx && !dx.done && (Li = uy.return) && Li.call(uy);
						} finally {
							if (_r) throw _r.error;
						}
					}
					break;
				case "move_node": try {
					for (var eC = iA(Bf.levels(Be, { at: Mf.common(Mf.parent(x.path), Mf.parent(x.newPath)) })), uC = eC.next(); !uC.done; uC = eC.next()) {
						var _T = aA(uC.value, 2);
						Lm = _T[0], Bm = _T[1], x_ = QO.findKey(Be, Lm), Tl.push([Bm, x_]);
					}
				} catch (x) {
					fa = { error: x };
				} finally {
					try {
						uC && !uC.done && (Vo = eC.return) && Vo.call(eC);
					} finally {
						if (fa) throw fa.error;
					}
				}
			}
			Kn(x);
			try {
				for (var ID = iA(Tl), ok = ID.next(); !ok.done; ok = ID.next()) {
					var ij = aA(ok.value, 2);
					Bm = ij[0], x_ = ij[1], Lm = aA(Bf.node(Be, Bm), 1)[0], xO.set(Lm, x_);
				}
			} catch (x) {
				Xo = { error: x };
			} finally {
				try {
					ok && !ok.done && (Tc = ID.return) && Tc.call(ID);
				} finally {
					if (Xo) throw Xo.error;
				}
			}
		}, Be.deleteBackward = function(We) {
			if (We !== "line") return _r(We);
			if (x.selection && qf.isCollapsed(x.selection)) {
				var St = Bf.above(x, {
					match: function(Be) {
						return Bf.isBlock(x, Be);
					},
					at: x.selection
				});
				if (St) {
					var Kn = aA(St, 2)[1], Li = function(x, Be) {
						var We = Bf.range(x, qf.end(Be)), St = Array.from(Bf.positions(x, { at: Be })), Kn = 0, _r = St.length, Li = Math.floor(_r / 2);
						if (tF(x, Bf.range(x, St[Kn]), We)) return Bf.range(x, St[Kn], We);
						if (St.length < 2) return Bf.range(x, St[St.length - 1], We);
						for (; Li !== St.length && Li !== Kn;) tF(x, Bf.range(x, St[Li]), We) ? _r = Li : Kn = Li, Li = Math.floor((Kn + _r) / 2);
						return Bf.range(x, St[_r], We);
					}(Be, Bf.range(x, Kn, x.selection.anchor));
					qf.isCollapsed(Li) || md.delete(x, { at: Li });
				}
			}
		}, Be.onChange = function() {
			var x = Be.selection;
			x != null && OO.set(Be, x), Be.emit("change"), We();
		}, Be.handleTab = function() {
			Be.insertText("    ");
		}, Be.getHtml = function() {
			var x = Be.children;
			return (x === void 0 ? [] : x).map((function(x) {
				return JB(x, Be);
			})).join("");
		}, Be.getText = function() {
			var x = Be.children;
			return (x === void 0 ? [] : x).map((function(x) {
				return Nf.string(x);
			})).join("\n");
		}, Be.getSelectionText = function() {
			var We = Be.selection;
			return We == null ? "" : Bf.string(x, We);
		}, Be.getElemsByType = function(x, We) {
			var St, Kn;
			We === void 0 && (We = !1);
			var _r = [], Li = Bf.nodes(Be, {
				at: [],
				universal: !0
			});
			try {
				for (var fa = iA(Li), Vo = fa.next(); !Vo.done; Vo = fa.next()) {
					var Xo = aA(Vo.value, 1)[0];
					if (Sf.isElement(Xo) && (We ? Xo.type.indexOf(x) >= 0 : Xo.type === x)) {
						var Tc = QB(QO.findKey(Be, Xo).id);
						_r.push(oA(oA({}, Xo), { id: Tc }));
					}
				}
			} catch (x) {
				St = { error: x };
			} finally {
				try {
					Vo && !Vo.done && (Kn = fa.return) && Kn.call(fa);
				} finally {
					if (St) throw St.error;
				}
			}
			return _r;
		}, Be.getElemsByTypePrefix = function(x) {
			return Be.getElemsByType(x, !0);
		}, Be.isEmpty = function() {
			var x = Be.children, We = x === void 0 ? [] : x;
			if (We.length > 1) return !1;
			var St = We[0];
			if (St == null) return !0;
			if (Sf.isElement(St) && St.type === "paragraph") {
				var Kn = St.children, _r = Kn === void 0 ? [] : Kn;
				if (_r.length > 1) return !1;
				var Li = _r[0];
				if (Li == null || ed.isText(Li) && Li.text === "") return !0;
			}
			return !1;
		}, Be.clear = function() {
			md.delete(Be, { at: {
				anchor: Bf.start(Be, []),
				focus: Bf.end(Be, [])
			} }), Be.children.length === 0 && md.insertNodes(Be, [{
				type: "paragraph",
				children: [{ text: "" }]
			}]);
		}, Be.getParentNode = function(x) {
			return QO.getParentNode(Be, x);
		}, Be.dangerouslyInsertHtml = function(x, We) {
			if (x === void 0 && (x = ""), We === void 0 && (We = !1), x) {
				var St = document.createElement("div");
				St.innerHTML = x;
				var Kn = Array.from(St.childNodes);
				if (Kn = Kn.filter((function(x) {
					var Be = x.nodeType, We = x.nodeName;
					return Be === PO.TEXT_NODE || Be === PO.ELEMENT_NODE && !UF.has(We.toLowerCase());
				})), Kn.length !== 0) {
					var _r = Be.selection;
					if (_r != null) {
						var Li = null;
						QO.isSelectedEmptyParagraph(Be) && !We && (Li = [_r.focus.path[0]]), St.setAttribute("hidden", "true"), document.body.appendChild(St);
						var fa = 0;
						Kn.forEach((function(x) {
							var We = x.nodeType, St = x.nodeName, Kn = x.textContent, _r = Kn === void 0 ? "" : Kn;
							if (We !== PO.TEXT_NODE) if (St !== "BR") {
								var Li = x, Vo = !1;
								if (nF.includes(St.toLowerCase())) Vo = !0;
								else for (var Xo in iF) if (Li.matches(Xo)) {
									Vo = !0;
									break;
								}
								if (Vo) {
									var Tc = IF(Mp(Li), Be);
									Array.isArray(Tc) ? (Tc.forEach((function(x) {
										return WF(Be, x);
									})), fa++) : (WF(Be, Tc), fa++), QO.isSelectedVoidNode(Be) && Be.move(1);
									return;
								}
								var Tl = window.getComputedStyle(Li).display;
								QO.isSelectedEmptyParagraph(Be) || Tl.indexOf("inline") < 0 && Be.insertBreak(), Be.dangerouslyInsertHtml(Li.innerHTML, !0);
							} else Be.insertText("\n");
							else {
								if (!_r || !_r.trim()) return;
								Be.insertNode({ text: _r });
							}
						})), fa && Li && QO.isEmptyPath(Be, Li) && md.removeNodes(Be, { at: Li }), St.remove();
					}
				}
			}
		}, Be.setHtml = function(x) {
			x === void 0 && (x = "");
			var We = Be.isDisabled(), St = Be.isFocused(), Kn = JSON.stringify(Be.selection);
			Be.enable(), Be.focus(), Be.clear();
			var _r = RF(Be, x);
			if (md.insertFragment(Be, _r), St || (Be.deselect(), Be.blur()), We && (Be.deselect(), Be.disable()), Be.isFocused()) try {
				Be.select(JSON.parse(Kn));
			} catch {
				Be.select(Bf.start(Be, []));
			}
		}, Be;
	}(function(x) {
		var Be = x;
		return Be.getAllMenuKeys = function() {
			var x = [];
			for (var Be in nk) x.push(Be);
			return x;
		}, Be.getConfig = function() {
			var x = hO.get(Be);
			if (x == null) throw Error("Can not get editor config");
			return x;
		}, Be.getMenuConfig = function(x) {
			var We = Be.getConfig().MENU_CONF;
			return (We === void 0 ? {} : We)[x] || {};
		}, Be.alert = function(x, We) {
			We === void 0 && (We = "info");
			var St = Be.getConfig().customAlert;
			St && St(x, We);
		}, Be;
	}(function(x) {
		var Be = GF(Wc());
		return Be.id = "wangEditor-" + ek++, Be.isDestroyed = !1, Be.isFullScreen = !1, Be.focus = function(x) {
			if (QO.toDOMNode(Be, Be).focus({ preventScroll: !0 }), AO.set(Be, !0), x) {
				var We = Bf.end(Be, []);
				md.select(Be, We);
			} else {
				var St = OO.get(Be);
				St ? md.select(Be, St) : md.select(Be, Bf.start(Be, []));
			}
		}, Be.isFocused = function() {
			return !!AO.get(Be);
		}, Be.blur = function() {
			QO.toDOMNode(Be, Be).blur(), md.deselect(Be), AO.set(Be, !1);
		}, Be.updateView = function() {
			QO.getTextarea(Be).changeViewState();
			var x = QO.getToolbar(Be);
			x && x.changeToolbarState();
			var We = QO.getHoverbar(Be);
			We && We.changeHoverbarState();
		}, Be.destroy = function() {
			if (!Be.isDestroyed) {
				var x = QO.getTextarea(Be);
				x.destroy(), iO.delete(Be), aO.delete(x);
				var We = QO.getToolbar(Be);
				We && (We.destroy(), sO.delete(Be), uO.delete(We));
				var St = QO.getHoverbar(Be);
				St && (St.destroy(), cO.delete(Be), lO.delete(St)), Be.isDestroyed = !0, Be.emit("destroyed");
			}
		}, Be.scrollToElem = function(x) {
			if (!Be.getConfig().scroll) {
				var We = "编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";
				We += "\nYou has disabled editor scroll, please do this yourself", console.warn(We);
				return;
			}
			var St = Mp("#" + x);
			if (St.length !== 0) {
				var Kn = St[0];
				if (!QO.hasDOMNode(Be, Kn)) return We = "Element (found by id is '" + x + "') is not in editor DOM", We += "\n 通过 id '" + x + "' 找到的 element 不在 editor DOM 之内", void console.error(We, Kn);
				var _r = QO.getTextarea(Be), Li = _r.$textAreaContainer, fa = _r.$scroll, Vo = St.offset().top, Xo = Li.offset().top;
				fa[0].scrollBy({
					top: Vo - Xo,
					behavior: "smooth"
				});
			}
		}, Be.showProgressBar = function(x) {
			x < 1 || QO.getTextarea(Be).changeProgress(x);
		}, Be.hidePanelOrModal = function() {
			dO.get(Be)?.forEach((function(x) {
				return x.hide();
			}));
		}, Be.enable = function() {
			Be.getConfig().readOnly = !1, Be.updateView();
		}, Be.disable = function() {
			Be.getConfig().readOnly = !0, Be.updateView();
		}, Be.isDisabled = function() {
			return Be.getConfig().readOnly;
		}, Be.toDOMNode = function(x) {
			return QO.toDOMNode(Be, x);
		}, Be.fullScreen = function() {
			if (!Be.isFullScreen) {
				var x = null, We = QO.getToolbar(Be);
				We && (x = We.$box);
				var St = QO.getTextarea(Be).$box.parent();
				if (x && x.parent()[0] !== St[0]) throw Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");
				St.addClass("w-e-full-screen-container");
				var Kn = St.css("z-index");
				St.attr("data-z-index", Kn.toString()), Be.isFullScreen = !0, Be.emit("fullScreen");
			}
		}, Be.unFullScreen = function() {
			if (Be.isFullScreen) {
				var x = QO.getTextarea(Be).$box.parent();
				setTimeout((function() {
					x.removeClass("w-e-full-screen-container"), Be.isFullScreen = !1, Be.emit("unFullScreen");
				}), 200);
			}
		}, Be.getEditableContainer = function() {
			return QO.getTextarea(Be).$textAreaContainer[0];
		}, Be;
	}()))))));
	if (We && function(x, Be) {
		return LF(x, "data-w-e-textarea", Be);
	}(Xo, We)) throw Error("Repeated create editor by selector '" + We + "'");
	var Tc = function(x) {
		x === void 0 && (x = {});
		var Be = Jv(tk), We = {}, St = x.MENU_CONF, Kn = St === void 0 ? {} : St;
		return Lh(Be, (function(x, Be) {
			We[Be] = oA(oA({}, x), Kn[Be] || {});
		})), delete x.MENU_CONF, oA({
			scroll: !0,
			readOnly: !1,
			autoFocus: !0,
			decorate: function() {
				return [];
			},
			maxLength: 0,
			MENU_CONF: We,
			hoverbarKeys: {},
			customAlert: function(x, Be) {
				window.alert(Be + ":\n" + x);
			}
		}, x);
	}(Kn);
	hO.set(Xo, Tc);
	var Tl = Tc.hoverbarKeys, Al = Tl === void 0 ? {} : Tl;
	if (Vo.forEach((function(x) {
		Xo = x(Xo);
	})), Li != null && (Xo.children = RF(Xo, Li)), _r && _r.length && (Xo.children = _r), Xo.children.length === 0 && (Xo.children = [{
		type: "paragraph",
		children: [{ text: "" }]
	}]), QO.normalizeContent(Xo), We) {
		var Uu = new d_(We);
		iO.set(Xo, Uu), aO.set(Uu, Xo), Uu.changeViewState(), ZB((function() {
			var x = Uu.$scroll;
			x != null && x.height() < 300 && console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error", x);
		}));
		var Ff = void 0;
		Object.keys(Al).length > 0 && (Ff = new j_(), lO.set(Ff, Xo), cO.set(Xo, Ff)), Xo.on("change", (function() {
			Xo.hidePanelOrModal();
		})), Xo.on("scroll", (function() {
			Xo.hidePanelOrModal();
		}));
	} else Xo.children.forEach((function(x, Be) {
		return N_(x, Be, Xo, Xo);
	}));
	var Lm = Tc.onCreated, Bm = Tc.onDestroyed;
	return Lm && Xo.on("created", (function() {
		return Lm(Xo);
	})), Bm && Xo.on("destroyed", (function() {
		return Bm(Xo);
	})), ZB((function() {
		return Xo.emit("created");
	})), Xo;
}
var L_ = iC("splice"), R_ = lw.TypeError, M_ = Math.max, z_ = Math.min;
cS({
	target: "Array",
	proto: !0,
	forced: !L_
}, { splice: function(x, Be) {
	var We, St, Kn, _r, Li, fa, Vo = Dw(this), Xo = pD(Vo), Tc = VD(x, Xo), Tl = arguments.length;
	if (Tl === 0 ? We = St = 0 : Tl === 1 ? (We = 0, St = Xo - Tc) : (We = Tl - 2, St = z_(M_(cD(Be), 0), Xo - Tc)), Xo + We - St > 9007199254740991) throw R_("Maximum allowed length exceeded");
	for (Kn = CD(Vo, St), _r = 0; _r < St; _r++) (Li = Tc + _r) in Vo && tx(Kn, _r, Vo[Li]);
	if (Kn.length = St, We < St) {
		for (_r = Tc; _r < Xo - St; _r++) fa = _r + We, (Li = _r + St) in Vo ? Vo[fa] = Vo[Li] : delete Vo[fa];
		for (_r = Xo; _r > Xo - St + We; _r--) delete Vo[_r - 1];
	} else if (We > St) for (_r = Xo - St; _r > Tc; _r--) fa = _r + We - 1, (Li = _r + St - 1) in Vo ? Vo[fa] = Vo[Li] : delete Vo[fa];
	for (_r = 0; _r < We; _r++) Vo[_r + Tc] = arguments[_r + 2];
	return Vo.length = Xo - St + We, Kn;
} });
var $_ = function() {
	function x(x, Be) {
		var We = this;
		this.$toolbar = Mp("<div class=\"w-e-bar w-e-bar-show w-e-toolbar\"></div>"), this.menus = {}, this.toolbarItems = [], this.config = {}, this.changeToolbarState = Zv((function() {
			We.toolbarItems.forEach((function(x) {
				x.changeMenuState();
			}));
		}), 200), this.config = Be;
		var St = Mp(x);
		if (St.length === 0) throw Error("Cannot find toolbar DOM by selector '" + x + "'");
		this.$box = St;
		var Kn = this.$toolbar;
		Kn.on("mousedown", (function(x) {
			return x.preventDefault();
		}), { passive: !1 }), St.append(Kn), ZB((function() {
			We.registerItems(), We.changeToolbarState(), We.getEditorInstance().on("change", We.changeToolbarState);
		}));
	}
	return x.prototype.getMenus = function() {
		return this.menus;
	}, x.prototype.getConfig = function() {
		return this.config;
	}, x.prototype.registerItems = function() {
		var x = this, Be = "", We = this.$toolbar, St = this.config, Kn = St.toolbarKeys, _r = Kn === void 0 ? [] : Kn, Li = St.insertKeys, fa = Li === void 0 ? {
			index: 0,
			keys: []
		} : Li, Vo = St.excludeKeys, Xo = Vo === void 0 ? [] : Vo, Tc = Jv(_r);
		fa.keys.length > 0 && (typeof fa.keys == "string" && (fa.keys = [fa.keys]), fa.keys.forEach((function(x, Be) {
			Tc.splice(fa.index + Be, 0, x);
		})));
		var Tl = Tc.filter((function(x) {
			if (typeof x == "string") {
				if (Xo.includes(x)) return !1;
			} else if (Xo.includes(x.key)) return !1;
			return !0;
		})), Al = Tl.length;
		Tl.forEach((function(St, Kn) {
			if (St === "|") {
				if (Kn === 0 || Kn + 1 === Al || Be === "|") return;
				var _r = g_();
				We.append(_r), Be = St;
				return;
			}
			if (typeof St == "string") return x.registerSingleItem(St, x), void (Be = St);
			x.registerGroup(St), Be = "group";
		}));
	}, x.prototype.registerGroup = function(x) {
		var Be = this, We = this.$toolbar, St = function(x) {
			return new B_(x);
		}(x), Kn = x.menuKeys, _r = Kn === void 0 ? [] : Kn, Li = this.config.excludeKeys, fa = Li === void 0 ? [] : Li;
		_r.forEach((function(x) {
			fa.includes(x) || Be.registerSingleItem(x, St);
		})), We.append(St.$elem);
	}, x.prototype.registerSingleItem = function(x, Be) {
		var We = this.getEditorInstance(), St = Be instanceof B_, Kn = this.menus, _r = Kn[x];
		if (_r == null) {
			var Li = nk[x];
			if (Li == null) throw Error("Not found menu item factory by key '" + x + "'");
			if (typeof Li != "function") throw Error("Menu item factory (key='" + x + "') is not a function");
			_r = Li(), Kn[x] = _r;
		} else console.warn("Duplicated toolbar menu key '" + x + "'\n重复注册了菜单栏 menu '" + x + "'");
		var fa = __(x, _r, St);
		this.toolbarItems.push(fa), fO.set(fa, We), St ? Be.appendBarItem(fa) : Be.$toolbar.append(fa.$elem);
	}, x.prototype.getEditorInstance = function() {
		var x = uO.get(this);
		if (x == null) throw Error("Can not get editor instance");
		return x;
	}, x.prototype.destroy = function() {
		this.$toolbar.remove(), this.menus = {}, this.toolbarItems = [];
	}, x;
}(), H_ = VE.EXISTS, V_ = bE.f, U_ = Function.prototype, W_ = mw(U_.toString), G_ = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, q_ = mw(G_.exec);
function K_(x) {
	var Be = x.server, We = Be === void 0 ? "" : Be, St = x.fieldName, Kn = St === void 0 ? "" : St, _r = x.maxFileSize, Li = _r === void 0 ? 10485760 : _r, fa = x.maxNumberOfFiles, Vo = fa === void 0 ? 100 : fa, Xo = x.meta, Tc = Xo === void 0 ? {} : Xo, Tl = x.metaWithUrl, Al = Tl !== void 0 && Tl, Uu = x.headers, Ff = Uu === void 0 ? {} : Uu, Lm = x.withCredentials, Bm = Lm !== void 0 && Lm, x_ = x.timeout, uy = x_ === void 0 ? 1e4 : x_, dx = x.onBeforeUpload, kx = dx === void 0 ? function(x) {
		return x;
	} : dx, eC = x.onSuccess, uC = eC === void 0 ? function(x, Be) {} : eC, _T = x.onError, ID = _T === void 0 ? function(x, Be, We) {
		console.error(x.name + " upload error", Be, We);
	} : _T, ok = x.onProgress, ij = ok === void 0 ? function(x) {} : ok;
	if (!We) throw Error("Cannot get upload server address\n没有配置上传地址");
	if (!Kn) throw Error("Cannot get fieldName\n没有配置 fieldName");
	var Dj = We;
	Al && (Dj = function(x, Be) {
		var We = aA(x.split("#"), 2), St = We[0], Kn = We[1], _r = [];
		Lh(Be, (function(x, Be) {
			_r.push(Be + "=" + x);
		}));
		var Li = _r.join("&");
		return St = St.indexOf("?") > 0 ? St + "&" + Li : St + "?" + Li, Kn ? St + "#" + Kn : St;
	}(Dj, Tc));
	var LP = new _m({
		onBeforeUpload: kx,
		restrictions: {
			maxFileSize: Li,
			maxNumberOfFiles: Vo
		},
		meta: Tc
	}).use(rw, {
		endpoint: Dj,
		headers: Ff,
		formData: !0,
		fieldName: Kn,
		bundle: !0,
		withCredentials: Bm,
		timeout: uy
	});
	return LP.on("upload-success", (function(x, Be) {
		var We = Be.body, St = We === void 0 ? {} : We;
		try {
			uC(x, St);
		} catch (x) {
			console.error("wangEditor upload file - onSuccess error", x);
		}
		LP.removeFile(x.id);
	})), LP.on("progress", (function(x) {
		x < 1 || ij(x);
	})), LP.on("upload-error", (function(x, Be, We) {
		try {
			ID(x, Be, We);
		} catch (x) {
			console.error("wangEditor upload file - onError error", x);
		}
		LP.removeFile(x.id);
	})), LP.on("restriction-failed", (function(x, Be) {
		try {
			ID(x, Be);
		} catch (x) {
			console.error("wangEditor upload file - onError error", x);
		}
		LP.removeFile(x.id);
	})), LP;
}
function Y_(x) {
	return Y_ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(x) {
		return typeof x;
	} : function(x) {
		return x && typeof Symbol == "function" && x.constructor === Symbol && x !== Symbol.prototype ? "symbol" : typeof x;
	}, Y_(x);
}
function X_(x, Be, We) {
	return Be in x ? Object.defineProperty(x, Be, {
		value: We,
		enumerable: !0,
		configurable: !0,
		writable: !0
	}) : x[Be] = We, x;
}
function Z_(x) {
	for (var Be = 1; Be < arguments.length; Be++) {
		var We = arguments[Be] == null ? {} : Object(arguments[Be]), St = Object.keys(We);
		typeof Object.getOwnPropertySymbols == "function" && St.push.apply(St, Object.getOwnPropertySymbols(We).filter((function(x) {
			return Object.getOwnPropertyDescriptor(We, x).enumerable;
		}))), St.forEach((function(Be) {
			X_(x, Be, We[Be]);
		}));
	}
	return x;
}
function J_(x, Be) {
	if (!(x instanceof Be)) throw TypeError("Cannot call a class as a function");
}
function Q_(x, Be) {
	for (var We = 0; We < Be.length; We++) {
		var St = Be[We];
		St.enumerable = St.enumerable || !1, St.configurable = !0, "value" in St && (St.writable = !0), Object.defineProperty(x, St.key, St);
	}
}
function eP(x, Be, We) {
	return Be && Q_(x.prototype, Be), We && Q_(x, We), x;
}
function tP(x) {
	if (x === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
	return x;
}
function nP(x, Be) {
	if (Be && (Y_(Be) === "object" || typeof Be == "function")) return Be;
	if (Be !== void 0) throw TypeError("Derived constructors may only return object or undefined");
	return tP(x);
}
function rP(x) {
	return rP = Object.setPrototypeOf ? Object.getPrototypeOf : function(x) {
		return x.__proto__ || Object.getPrototypeOf(x);
	}, rP(x);
}
function oP(x, Be) {
	return oP = Object.setPrototypeOf || function(x, Be) {
		return x.__proto__ = Be, x;
	}, oP(x, Be);
}
function iP(x, Be) {
	if (typeof Be != "function" && Be !== null) throw TypeError("Super expression must either be null or a function");
	x.prototype = Object.create(Be && Be.prototype, { constructor: {
		value: x,
		writable: !0,
		configurable: !0
	} }), Be && oP(x, Be);
}
Kw && !H_ && V_(U_, "name", {
	configurable: !0,
	get: function() {
		try {
			return q_(G_, W_(this))[1];
		} catch {
			return "";
		}
	}
});
var aP = {
	type: "logger",
	log: function(x) {
		this.output("log", x);
	},
	warn: function(x) {
		this.output("warn", x);
	},
	error: function(x) {
		this.output("error", x);
	},
	output: function(x, Be) {
		console && console[x] && console[x].apply(console, Be);
	}
}, uP = new (function() {
	function x(Be) {
		var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		J_(this, x), this.init(Be, We);
	}
	return eP(x, [
		{
			key: "init",
			value: function(x) {
				var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
				this.prefix = Be.prefix || "i18next:", this.logger = x || aP, this.options = Be, this.debug = Be.debug;
			}
		},
		{
			key: "setDebug",
			value: function(x) {
				this.debug = x;
			}
		},
		{
			key: "log",
			value: function() {
				var x = [...arguments];
				return this.forward(x, "log", "", !0);
			}
		},
		{
			key: "warn",
			value: function() {
				var x = [...arguments];
				return this.forward(x, "warn", "", !0);
			}
		},
		{
			key: "error",
			value: function() {
				var x = [...arguments];
				return this.forward(x, "error", "");
			}
		},
		{
			key: "deprecate",
			value: function() {
				var x = [...arguments];
				return this.forward(x, "warn", "WARNING DEPRECATED: ", !0);
			}
		},
		{
			key: "forward",
			value: function(x, Be, We, St) {
				return St && !this.debug ? null : (typeof x[0] == "string" && (x[0] = `${We}${this.prefix} ${x[0]}`), this.logger[Be](x));
			}
		},
		{
			key: "create",
			value: function(Be) {
				return new x(this.logger, Z_({}, { prefix: `${this.prefix}:${Be}:` }, this.options));
			}
		}
	]), x;
}())(), sP = function() {
	function x() {
		J_(this, x), this.observers = {};
	}
	return eP(x, [
		{
			key: "on",
			value: function(x, Be) {
				var We = this;
				return x.split(" ").forEach((function(x) {
					We.observers[x] = We.observers[x] || [], We.observers[x].push(Be);
				})), this;
			}
		},
		{
			key: "off",
			value: function(x, Be) {
				this.observers[x] && (Be ? this.observers[x] = this.observers[x].filter((function(x) {
					return x !== Be;
				})) : delete this.observers[x]);
			}
		},
		{
			key: "emit",
			value: function(x) {
				var Be = [...arguments].slice(1);
				this.observers[x] && [].concat(this.observers[x]).forEach((function(x) {
					x.apply(void 0, Be);
				})), this.observers["*"] && [].concat(this.observers["*"]).forEach((function(We) {
					We.apply(We, [x].concat(Be));
				}));
			}
		}
	]), x;
}();
function lP() {
	var x, Be, We = new Promise((function(We, St) {
		x = We, Be = St;
	}));
	return We.resolve = x, We.reject = Be, We;
}
function cP(x) {
	return x == null ? "" : "" + x;
}
function fP(x, Be, We) {
	x.forEach((function(x) {
		Be[x] && (We[x] = Be[x]);
	}));
}
function dP(x, Be, We) {
	function St(x) {
		return x && x.indexOf("###") > -1 ? x.replace(/###/g, ".") : x;
	}
	function Kn() {
		return !x || typeof x == "string";
	}
	for (var _r = typeof Be == "string" ? Be.split(".") : [].concat(Be); _r.length > 1;) {
		if (Kn()) return {};
		var Li = St(_r.shift());
		!x[Li] && We && (x[Li] = new We()), x = Object.prototype.hasOwnProperty.call(x, Li) ? x[Li] : {};
	}
	return Kn() ? {} : {
		obj: x,
		k: St(_r.shift())
	};
}
function pP(x, Be, We) {
	var St = dP(x, Be, Object);
	St.obj[St.k] = We;
}
function hP(x, Be) {
	var We = dP(x, Be), St = We.obj, Kn = We.k;
	if (St) return St[Kn];
}
function gP(x, Be, We) {
	var St = hP(x, We);
	return St === void 0 ? hP(Be, We) : St;
}
function vP(x, Be, We) {
	for (var St in Be) St !== "__proto__" && St !== "constructor" && (St in x ? typeof x[St] == "string" || x[St] instanceof String || typeof Be[St] == "string" || Be[St] instanceof String ? We && (x[St] = Be[St]) : vP(x[St], Be[St], We) : x[St] = Be[St]);
	return x;
}
function yP(x) {
	return x.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}
var mP = {
	"&": "&amp;",
	"<": "&lt;",
	">": "&gt;",
	"\"": "&quot;",
	"'": "&#39;",
	"/": "&#x2F;"
};
function bP(x) {
	return typeof x == "string" ? x.replace(/[&<>"'\/]/g, (function(x) {
		return mP[x];
	})) : x;
}
var wP = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1;
function EP(x, Be) {
	var We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
	if (x) {
		if (x[Be]) return x[Be];
		for (var St = Be.split(We), Kn = x, _r = 0; _r < St.length; ++_r) {
			if (!Kn || typeof Kn[St[_r]] == "string" && _r + 1 < St.length) return;
			if (Kn[St[_r]] === void 0) {
				for (var Li = 2, fa = St.slice(_r, _r + Li).join(We), Vo = Kn[fa]; Vo === void 0 && St.length > _r + Li;) Li++, Vo = Kn[fa = St.slice(_r, _r + Li).join(We)];
				if (Vo === void 0) return;
				if (typeof Vo == "string") return Vo;
				if (fa && typeof Vo[fa] == "string") return Vo[fa];
				var Xo = St.slice(_r + Li).join(We);
				return Xo ? EP(Vo, Xo, We) : void 0;
			}
			Kn = Kn[St[_r]];
		}
		return Kn;
	}
}
var DP = function(x) {
	function Be(x) {
		var We, St = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
			ns: ["translation"],
			defaultNS: "translation"
		};
		return J_(this, Be), We = nP(this, rP(Be).call(this)), wP && sP.call(tP(We)), We.data = x || {}, We.options = St, We.options.keySeparator === void 0 && (We.options.keySeparator = "."), We.options.ignoreJSONStructure === void 0 && (We.options.ignoreJSONStructure = !0), We;
	}
	return iP(Be, sP), eP(Be, [
		{
			key: "addNamespaces",
			value: function(x) {
				this.options.ns.indexOf(x) < 0 && this.options.ns.push(x);
			}
		},
		{
			key: "removeNamespaces",
			value: function(x) {
				var Be = this.options.ns.indexOf(x);
				Be > -1 && this.options.ns.splice(Be, 1);
			}
		},
		{
			key: "getResource",
			value: function(x, Be, We) {
				var St = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, Kn = St.keySeparator === void 0 ? this.options.keySeparator : St.keySeparator, _r = St.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : St.ignoreJSONStructure, Li = [x, Be];
				We && typeof We != "string" && (Li = Li.concat(We)), We && typeof We == "string" && (Li = Li.concat(Kn ? We.split(Kn) : We)), x.indexOf(".") > -1 && (Li = x.split("."));
				var fa = hP(this.data, Li);
				return fa || !_r || typeof We != "string" ? fa : EP(this.data && this.data[x] && this.data[x][Be], We, Kn);
			}
		},
		{
			key: "addResource",
			value: function(x, Be, We, St) {
				var Kn = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, _r = this.options.keySeparator;
				_r === void 0 && (_r = ".");
				var Li = [x, Be];
				We && (Li = Li.concat(_r ? We.split(_r) : We)), x.indexOf(".") > -1 && (St = Be, Be = (Li = x.split("."))[1]), this.addNamespaces(Be), pP(this.data, Li, St), Kn.silent || this.emit("added", x, Be, We, St);
			}
		},
		{
			key: "addResources",
			value: function(x, Be, We) {
				var St = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { silent: !1 };
				for (var Kn in We) typeof We[Kn] != "string" && Object.prototype.toString.apply(We[Kn]) !== "[object Array]" || this.addResource(x, Be, Kn, We[Kn], { silent: !0 });
				St.silent || this.emit("added", x, Be, We);
			}
		},
		{
			key: "addResourceBundle",
			value: function(x, Be, We, St, Kn) {
				var _r = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, Li = [x, Be];
				x.indexOf(".") > -1 && (St = We, We = Be, Be = (Li = x.split("."))[1]), this.addNamespaces(Be);
				var fa = hP(this.data, Li) || {};
				St ? vP(fa, We, Kn) : fa = Z_({}, fa, We), pP(this.data, Li, fa), _r.silent || this.emit("added", x, Be, We);
			}
		},
		{
			key: "removeResourceBundle",
			value: function(x, Be) {
				this.hasResourceBundle(x, Be) && delete this.data[x][Be], this.removeNamespaces(Be), this.emit("removed", x, Be);
			}
		},
		{
			key: "hasResourceBundle",
			value: function(x, Be) {
				return this.getResource(x, Be) !== void 0;
			}
		},
		{
			key: "getResourceBundle",
			value: function(x, Be) {
				return Be ||= this.options.defaultNS, this.options.compatibilityAPI === "v1" ? Z_({}, {}, this.getResource(x, Be)) : this.getResource(x, Be);
			}
		},
		{
			key: "getDataByLanguage",
			value: function(x) {
				return this.data[x];
			}
		},
		{
			key: "toJSON",
			value: function() {
				return this.data;
			}
		}
	]), Be;
}(), SP = {
	processors: {},
	addPostProcessor: function(x) {
		this.processors[x.name] = x;
	},
	handle: function(x, Be, We, St, Kn) {
		var _r = this;
		return x.forEach((function(x) {
			_r.processors[x] && (Be = _r.processors[x].process(Be, We, St, Kn));
		})), Be;
	}
}, xP = {}, CP = function(x) {
	function Be(x) {
		var We, St = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		return J_(this, Be), We = nP(this, rP(Be).call(this)), wP && sP.call(tP(We)), fP([
			"resourceStore",
			"languageUtils",
			"pluralResolver",
			"interpolator",
			"backendConnector",
			"i18nFormat",
			"utils"
		], x, tP(We)), We.options = St, We.options.keySeparator === void 0 && (We.options.keySeparator = "."), We.logger = uP.create("translator"), We;
	}
	return iP(Be, sP), eP(Be, [
		{
			key: "changeLanguage",
			value: function(x) {
				x && (this.language = x);
			}
		},
		{
			key: "exists",
			value: function(x) {
				var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { interpolation: {} };
				if (x == null) return !1;
				var We = this.resolve(x, Be);
				return We && We.res !== void 0;
			}
		},
		{
			key: "extractFromKey",
			value: function(x, Be) {
				var We = Be.nsSeparator === void 0 ? this.options.nsSeparator : Be.nsSeparator;
				We === void 0 && (We = ":");
				var St = Be.keySeparator === void 0 ? this.options.keySeparator : Be.keySeparator, Kn = Be.ns || this.options.defaultNS;
				if (We && x.indexOf(We) > -1) {
					var _r = x.match(this.interpolator.nestingRegexp);
					if (_r && _r.length > 0) return {
						key: x,
						namespaces: Kn
					};
					var Li = x.split(We);
					(We !== St || We === St && this.options.ns.indexOf(Li[0]) > -1) && (Kn = Li.shift()), x = Li.join(St);
				}
				return typeof Kn == "string" && (Kn = [Kn]), {
					key: x,
					namespaces: Kn
				};
			}
		},
		{
			key: "translate",
			value: function(x, We, St) {
				var Kn = this;
				if (Y_(We) !== "object" && this.options.overloadTranslationOptionHandler && (We = this.options.overloadTranslationOptionHandler(arguments)), We ||= {}, x == null) return "";
				Array.isArray(x) || (x = [String(x)]);
				var _r = We.keySeparator === void 0 ? this.options.keySeparator : We.keySeparator, Li = this.extractFromKey(x[x.length - 1], We), fa = Li.key, Vo = Li.namespaces, Xo = Vo[Vo.length - 1], Tc = We.lng || this.language, Tl = We.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
				if (Tc && Tc.toLowerCase() === "cimode") return Tl ? Xo + (We.nsSeparator || this.options.nsSeparator) + fa : fa;
				var Al = this.resolve(x, We), Uu = Al && Al.res, Ff = Al && Al.usedKey || fa, Lm = Al && Al.exactUsedKey || fa, Bm = Object.prototype.toString.apply(Uu), x_ = [
					"[object Number]",
					"[object Function]",
					"[object RegExp]"
				], uy = We.joinArrays === void 0 ? this.options.joinArrays : We.joinArrays, dx = !this.i18nFormat || this.i18nFormat.handleAsObject;
				if (dx && Uu && typeof Uu != "string" && typeof Uu != "boolean" && typeof Uu != "number" && x_.indexOf(Bm) < 0 && (typeof uy != "string" || Bm !== "[object Array]")) {
					if (!We.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(Ff, Uu, Z_({}, We, { ns: Vo })) : `key '${fa} (${this.language})' returned an object instead of string.`;
					if (_r) {
						var kx = Bm === "[object Array]", eC = kx ? [] : {}, uC = kx ? Lm : Ff;
						for (var _T in Uu) if (Object.prototype.hasOwnProperty.call(Uu, _T)) {
							var ID = `${uC}${_r}${_T}`;
							eC[_T] = this.translate(ID, Z_({}, We, {
								joinArrays: !1,
								ns: Vo
							})), eC[_T] === ID && (eC[_T] = Uu[_T]);
						}
						Uu = eC;
					}
				} else if (dx && typeof uy == "string" && Bm === "[object Array]") (Uu = Uu.join(uy)) && (Uu = this.extendTranslation(Uu, x, We, St));
				else {
					var ok = !1, ij = !1, Dj = We.count !== void 0 && typeof We.count != "string", LP = Be.hasDefaultValue(We), zP = Dj ? this.pluralResolver.getSuffix(Tc, We.count) : "", $P = We[`defaultValue${zP}`] || We.defaultValue;
					!this.isValidLookup(Uu) && LP && (ok = !0, Uu = $P), this.isValidLookup(Uu) || (ij = !0, Uu = fa);
					var CF = (We.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && ij ? void 0 : Uu, VF = LP && $P !== Uu && this.options.updateMissing;
					if (ij || ok || VF) {
						if (this.logger.log(VF ? "updateKey" : "missingKey", Tc, Xo, fa, VF ? $P : Uu), _r) {
							var nR = this.resolve(fa, Z_({}, We, { keySeparator: !1 }));
							nR && nR.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 tH = [], MH = this.languageUtils.getFallbackCodes(this.options.fallbackLng, We.lng || this.language);
						if (this.options.saveMissingTo === "fallback" && MH && MH[0]) for (var vG = 0; vG < MH.length; vG++) tH.push(MH[vG]);
						else this.options.saveMissingTo === "all" ? tH = this.languageUtils.toResolveHierarchy(We.lng || this.language) : tH.push(We.lng || this.language);
						var jG = function(x, Be, St) {
							Kn.options.missingKeyHandler ? Kn.options.missingKeyHandler(x, Xo, Be, VF ? St : CF, VF, We) : Kn.backendConnector && Kn.backendConnector.saveMissing && Kn.backendConnector.saveMissing(x, Xo, Be, VF ? St : CF, VF, We), Kn.emit("missingKey", x, Xo, Be, Uu);
						};
						this.options.saveMissing && (this.options.saveMissingPlurals && Dj ? tH.forEach((function(x) {
							Kn.pluralResolver.getSuffixes(x).forEach((function(Be) {
								jG([x], fa + Be, We[`defaultValue${Be}`] || $P);
							}));
						})) : jG(tH, fa, $P));
					}
					Uu = this.extendTranslation(Uu, x, We, Al, St), ij && Uu === fa && this.options.appendNamespaceToMissingKey && (Uu = `${Xo}:${fa}`), (ij || ok) && this.options.parseMissingKeyHandler && (Uu = this.options.parseMissingKeyHandler(Uu));
				}
				return Uu;
			}
		},
		{
			key: "extendTranslation",
			value: function(x, Be, We, St, Kn) {
				var _r = this;
				if (this.i18nFormat && this.i18nFormat.parse) x = this.i18nFormat.parse(x, We, St.usedLng, St.usedNS, St.usedKey, { resolved: St });
				else if (!We.skipInterpolation) {
					We.interpolation && this.interpolator.init(Z_({}, We, { interpolation: Z_({}, this.options.interpolation, We.interpolation) }));
					var Li, fa = We.interpolation && We.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
					if (fa) {
						var Vo = x.match(this.interpolator.nestingRegexp);
						Li = Vo && Vo.length;
					}
					var Xo = We.replace && typeof We.replace != "string" ? We.replace : We;
					if (this.options.interpolation.defaultVariables && (Xo = Z_({}, this.options.interpolation.defaultVariables, Xo)), x = this.interpolator.interpolate(x, Xo, We.lng || this.language, We), fa) {
						var Tc = x.match(this.interpolator.nestingRegexp);
						Li < (Tc && Tc.length) && (We.nest = !1);
					}
					!1 !== We.nest && (x = this.interpolator.nest(x, (function() {
						var x = [...arguments];
						return Kn && Kn[0] === x[0] && !We.context ? (_r.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${Be[0]}`), null) : _r.translate.apply(_r, x.concat([Be]));
					}), We)), We.interpolation && this.interpolator.reset();
				}
				var Tl = We.postProcess || this.options.postProcess, Al = typeof Tl == "string" ? [Tl] : Tl;
				return x != null && Al && Al.length && !1 !== We.applyPostProcessor && (x = SP.handle(Al, x, Be, this.options && this.options.postProcessPassResolved ? Z_({ i18nResolved: St }, We) : We, this)), x;
			}
		},
		{
			key: "resolve",
			value: function(x) {
				var Be, We, St, Kn, _r, Li = this, fa = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
				return typeof x == "string" && (x = [x]), x.forEach((function(x) {
					if (!Li.isValidLookup(Be)) {
						var Vo = Li.extractFromKey(x, fa), Xo = Vo.key;
						We = Xo;
						var Tc = Vo.namespaces;
						Li.options.fallbackNS && (Tc = Tc.concat(Li.options.fallbackNS));
						var Tl = fa.count !== void 0 && typeof fa.count != "string", Al = fa.context !== void 0 && (typeof fa.context == "string" || typeof fa.context == "number") && fa.context !== "", Uu = fa.lngs ? fa.lngs : Li.languageUtils.toResolveHierarchy(fa.lng || Li.language, fa.fallbackLng);
						Tc.forEach((function(x) {
							Li.isValidLookup(Be) || (_r = x, !xP[`${Uu[0]}-${x}`] && Li.utils && Li.utils.hasLoadedNamespace && !Li.utils.hasLoadedNamespace(_r) && (xP[`${Uu[0]}-${x}`] = !0, Li.logger.warn(`key "${We}" for languages "${Uu.join(", ")}" won't get resolved as namespace "${_r}" 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!!!")), Uu.forEach((function(We) {
								if (!Li.isValidLookup(Be)) {
									Kn = We;
									var _r, Vo, Tc = Xo, Uu = [Tc];
									for (Li.i18nFormat && Li.i18nFormat.addLookupKeys ? Li.i18nFormat.addLookupKeys(Uu, Xo, We, x, fa) : (Tl && (_r = Li.pluralResolver.getSuffix(We, fa.count)), Tl && Al && Uu.push(Tc + _r), Al && Uu.push(Tc += `${Li.options.contextSeparator}${fa.context}`), Tl && Uu.push(Tc += _r)); Vo = Uu.pop();) Li.isValidLookup(Be) || (St = Vo, Be = Li.getResource(We, x, Vo, fa));
								}
							})));
						}));
					}
				})), {
					res: Be,
					usedKey: We,
					exactUsedKey: St,
					usedLng: Kn,
					usedNS: _r
				};
			}
		},
		{
			key: "isValidLookup",
			value: function(x) {
				return !(x === void 0 || !this.options.returnNull && x === null || !this.options.returnEmptyString && x === "");
			}
		},
		{
			key: "getResource",
			value: function(x, Be, We) {
				var St = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
				return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(x, Be, We, St) : this.resourceStore.getResource(x, Be, We, St);
			}
		}
	], [{
		key: "hasDefaultValue",
		value: function(x) {
			var Be = "defaultValue";
			for (var We in x) if (Object.prototype.hasOwnProperty.call(x, We) && Be === We.substring(0, Be.length) && x[We] !== void 0) return !0;
			return !1;
		}
	}]), Be;
}();
function AP(x) {
	return x.charAt(0).toUpperCase() + x.slice(1);
}
var OP = function() {
	function x(Be) {
		J_(this, x), this.options = Be, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = uP.create("languageUtils");
	}
	return eP(x, [
		{
			key: "getScriptPartFromCode",
			value: function(x) {
				if (!x || x.indexOf("-") < 0) return null;
				var Be = x.split("-");
				return Be.length === 2 ? null : (Be.pop(), Be[Be.length - 1].toLowerCase() === "x" ? null : this.formatLanguageCode(Be.join("-")));
			}
		},
		{
			key: "getLanguagePartFromCode",
			value: function(x) {
				if (!x || x.indexOf("-") < 0) return x;
				var Be = x.split("-");
				return this.formatLanguageCode(Be[0]);
			}
		},
		{
			key: "formatLanguageCode",
			value: function(x) {
				if (typeof x == "string" && x.indexOf("-") > -1) {
					var Be = [
						"hans",
						"hant",
						"latn",
						"cyrl",
						"cans",
						"mong",
						"arab"
					], We = x.split("-");
					return this.options.lowerCaseLng ? We = We.map((function(x) {
						return x.toLowerCase();
					})) : We.length === 2 ? (We[0] = We[0].toLowerCase(), We[1] = We[1].toUpperCase(), Be.indexOf(We[1].toLowerCase()) > -1 && (We[1] = AP(We[1].toLowerCase()))) : We.length === 3 && (We[0] = We[0].toLowerCase(), We[1].length === 2 && (We[1] = We[1].toUpperCase()), We[0] !== "sgn" && We[2].length === 2 && (We[2] = We[2].toUpperCase()), Be.indexOf(We[1].toLowerCase()) > -1 && (We[1] = AP(We[1].toLowerCase())), Be.indexOf(We[2].toLowerCase()) > -1 && (We[2] = AP(We[2].toLowerCase()))), We.join("-");
				}
				return this.options.cleanCode || this.options.lowerCaseLng ? x.toLowerCase() : x;
			}
		},
		{
			key: "isWhitelisted",
			value: function(x) {
				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(x);
			}
		},
		{
			key: "isSupportedCode",
			value: function(x) {
				return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (x = this.getLanguagePartFromCode(x)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(x) > -1;
			}
		},
		{
			key: "getBestMatchFromCodes",
			value: function(x) {
				var Be, We = this;
				return x ? (x.forEach((function(x) {
					if (!Be) {
						var St = We.formatLanguageCode(x);
						We.options.supportedLngs && !We.isSupportedCode(St) || (Be = St);
					}
				})), !Be && this.options.supportedLngs && x.forEach((function(x) {
					if (!Be) {
						var St = We.getLanguagePartFromCode(x);
						if (We.isSupportedCode(St)) return Be = St;
						Be = We.options.supportedLngs.find((function(x) {
							if (x.indexOf(St) === 0) return x;
						}));
					}
				})), Be ||= this.getFallbackCodes(this.options.fallbackLng)[0], Be) : null;
			}
		},
		{
			key: "getFallbackCodes",
			value: function(x, Be) {
				if (!x) return [];
				if (typeof x == "function" && (x = x(Be)), typeof x == "string" && (x = [x]), Object.prototype.toString.apply(x) === "[object Array]") return x;
				if (!Be) return x.default || [];
				var We = x[Be];
				return We ||= x[this.getScriptPartFromCode(Be)], We ||= x[this.formatLanguageCode(Be)], We ||= x[this.getLanguagePartFromCode(Be)], We ||= x.default, We || [];
			}
		},
		{
			key: "toResolveHierarchy",
			value: function(x, Be) {
				var We = this, St = this.getFallbackCodes(Be || this.options.fallbackLng || [], x), Kn = [], _r = function(x) {
					x && (We.isSupportedCode(x) ? Kn.push(x) : We.logger.warn(`rejecting language code not found in supportedLngs: ${x}`));
				};
				return typeof x == "string" && x.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && _r(this.formatLanguageCode(x)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && _r(this.getScriptPartFromCode(x)), this.options.load !== "currentOnly" && _r(this.getLanguagePartFromCode(x))) : typeof x == "string" && _r(this.formatLanguageCode(x)), St.forEach((function(x) {
					Kn.indexOf(x) < 0 && _r(We.formatLanguageCode(x));
				})), Kn;
			}
		}
	]), x;
}(), kP = [
	{
		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
	}
], BP = {
	1: function(x) {
		return Number(x > 1);
	},
	2: function(x) {
		return Number(x != 1);
	},
	3: function(x) {
		return 0;
	},
	4: function(x) {
		return Number(x % 10 == 1 && x % 100 != 11 ? 0 : x % 10 >= 2 && x % 10 <= 4 && (x % 100 < 10 || x % 100 >= 20) ? 1 : 2);
	},
	5: function(x) {
		return Number(x == 0 ? 0 : x == 1 ? 1 : x == 2 ? 2 : x % 100 >= 3 && x % 100 <= 10 ? 3 : x % 100 >= 11 ? 4 : 5);
	},
	6: function(x) {
		return Number(x == 1 ? 0 : x >= 2 && x <= 4 ? 1 : 2);
	},
	7: function(x) {
		return Number(x == 1 ? 0 : x % 10 >= 2 && x % 10 <= 4 && (x % 100 < 10 || x % 100 >= 20) ? 1 : 2);
	},
	8: function(x) {
		return Number(x == 1 ? 0 : x == 2 ? 1 : x != 8 && x != 11 ? 2 : 3);
	},
	9: function(x) {
		return Number(x >= 2);
	},
	10: function(x) {
		return Number(x == 1 ? 0 : x == 2 ? 1 : x < 7 ? 2 : x < 11 ? 3 : 4);
	},
	11: function(x) {
		return Number(x == 1 || x == 11 ? 0 : x == 2 || x == 12 ? 1 : x > 2 && x < 20 ? 2 : 3);
	},
	12: function(x) {
		return Number(x % 10 != 1 || x % 100 == 11);
	},
	13: function(x) {
		return Number(x !== 0);
	},
	14: function(x) {
		return Number(x == 1 ? 0 : x == 2 ? 1 : x == 3 ? 2 : 3);
	},
	15: function(x) {
		return Number(x % 10 == 1 && x % 100 != 11 ? 0 : x % 10 >= 2 && (x % 100 < 10 || x % 100 >= 20) ? 1 : 2);
	},
	16: function(x) {
		return Number(x % 10 == 1 && x % 100 != 11 ? 0 : x === 0 ? 2 : 1);
	},
	17: function(x) {
		return Number(x == 1 || x % 10 == 1 && x % 100 != 11 ? 0 : 1);
	},
	18: function(x) {
		return Number(x == 0 ? 0 : x == 1 ? 1 : 2);
	},
	19: function(x) {
		return Number(x == 1 ? 0 : x == 0 || x % 100 > 1 && x % 100 < 11 ? 1 : x % 100 > 10 && x % 100 < 20 ? 2 : 3);
	},
	20: function(x) {
		return Number(x == 1 ? 0 : x == 0 || x % 100 > 0 && x % 100 < 20 ? 1 : 2);
	},
	21: function(x) {
		return Number(x % 100 == 1 ? 1 : x % 100 == 2 ? 2 : x % 100 == 3 || x % 100 == 4 ? 3 : 0);
	},
	22: function(x) {
		return Number(x == 1 ? 0 : x == 2 ? 1 : (x < 0 || x > 10) && x % 10 == 0 ? 2 : 3);
	}
};
function FP() {
	var x = {};
	return kP.forEach((function(Be) {
		Be.lngs.forEach((function(We) {
			x[We] = {
				numbers: Be.nr,
				plurals: BP[Be.fc]
			};
		}));
	})), x;
}
var TP = function() {
	function x(Be) {
		var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
		J_(this, x), this.languageUtils = Be, this.options = We, this.logger = uP.create("pluralResolver"), this.rules = FP();
	}
	return eP(x, [
		{
			key: "addRule",
			value: function(x, Be) {
				this.rules[x] = Be;
			}
		},
		{
			key: "getRule",
			value: function(x) {
				return this.rules[x] || this.rules[this.languageUtils.getLanguagePartFromCode(x)];
			}
		},
		{
			key: "needsPlural",
			value: function(x) {
				var Be = this.getRule(x);
				return Be && Be.numbers.length > 1;
			}
		},
		{
			key: "getPluralFormsOfKey",
			value: function(x, Be) {
				return this.getSuffixes(x).map((function(x) {
					return Be + x;
				}));
			}
		},
		{
			key: "getSuffixes",
			value: function(x) {
				var Be = this, We = this.getRule(x);
				return We ? We.numbers.map((function(We) {
					return Be.getSuffix(x, We);
				})) : [];
			}
		},
		{
			key: "getSuffix",
			value: function(x, Be) {
				var We = this, St = this.getRule(x);
				if (St) {
					var Kn = St.noAbs ? St.plurals(Be) : St.plurals(Math.abs(Be)), _r = St.numbers[Kn];
					this.options.simplifyPluralSuffix && St.numbers.length === 2 && St.numbers[0] === 1 && (_r === 2 ? _r = "plural" : _r === 1 && (_r = ""));
					var Li = function() {
						return We.options.prepend && _r.toString() ? We.options.prepend + _r.toString() : _r.toString();
					};
					return this.options.compatibilityJSON === "v1" ? _r === 1 ? "" : typeof _r == "number" ? `_plural_${_r.toString()}` : Li() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && St.numbers.length === 2 && St.numbers[0] === 1 ? Li() : this.options.prepend && Kn.toString() ? this.options.prepend + Kn.toString() : Kn.toString();
				}
				return this.logger.warn(`no plural rule found for: ${x}`), "";
			}
		}
	]), x;
}(), _P = function() {
	function x() {
		var Be = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
		J_(this, x), this.logger = uP.create("interpolator"), this.options = Be, this.format = Be.interpolation && Be.interpolation.format || function(x) {
			return x;
		}, this.init(Be);
	}
	return eP(x, [
		{
			key: "init",
			value: function() {
				var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
				x.interpolation ||= { escapeValue: !0 };
				var Be = x.interpolation;
				this.escape = Be.escape === void 0 ? bP : Be.escape, this.escapeValue = Be.escapeValue === void 0 || Be.escapeValue, this.useRawValueToEscape = Be.useRawValueToEscape !== void 0 && Be.useRawValueToEscape, this.prefix = Be.prefix ? yP(Be.prefix) : Be.prefixEscaped || "{{", this.suffix = Be.suffix ? yP(Be.suffix) : Be.suffixEscaped || "}}", this.formatSeparator = Be.formatSeparator ? Be.formatSeparator : Be.formatSeparator || ",", this.unescapePrefix = Be.unescapeSuffix ? "" : Be.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : Be.unescapeSuffix || "", this.nestingPrefix = Be.nestingPrefix ? yP(Be.nestingPrefix) : Be.nestingPrefixEscaped || yP("$t("), this.nestingSuffix = Be.nestingSuffix ? yP(Be.nestingSuffix) : Be.nestingSuffixEscaped || yP(")"), this.nestingOptionsSeparator = Be.nestingOptionsSeparator ? Be.nestingOptionsSeparator : Be.nestingOptionsSeparator || ",", this.maxReplaces = Be.maxReplaces ? Be.maxReplaces : 1e3, this.alwaysFormat = Be.alwaysFormat !== void 0 && Be.alwaysFormat, this.resetRegExp();
			}
		},
		{
			key: "reset",
			value: function() {
				this.options && this.init(this.options);
			}
		},
		{
			key: "resetRegExp",
			value: function() {
				var x = `${this.prefix}(.+?)${this.suffix}`;
				this.regexp = new RegExp(x, "g");
				var Be = `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;
				this.regexpUnescape = new RegExp(Be, "g");
				var We = `${this.nestingPrefix}(.+?)${this.nestingSuffix}`;
				this.nestingRegexp = new RegExp(We, "g");
			}
		},
		{
			key: "interpolate",
			value: function(x, Be, We, St) {
				var Kn, _r, Li, fa = this, Vo = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
				function Xo(x) {
					return x.replace(/\$/g, "$$$$");
				}
				var Tc = function(x) {
					if (x.indexOf(fa.formatSeparator) < 0) {
						var Kn = gP(Be, Vo, x);
						return fa.alwaysFormat ? fa.format(Kn, void 0, We, Z_({}, St, Be, { interpolationkey: x })) : Kn;
					}
					var _r = x.split(fa.formatSeparator), Li = _r.shift().trim(), Xo = _r.join(fa.formatSeparator).trim();
					return fa.format(gP(Be, Vo, Li), Xo, We, Z_({}, St, Be, { interpolationkey: Li }));
				};
				this.resetRegExp();
				var Tl = St && St.missingInterpolationHandler || this.options.missingInterpolationHandler, Al = St && St.interpolation && St.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
				return [{
					regex: this.regexpUnescape,
					safeValue: function(x) {
						return Xo(x);
					}
				}, {
					regex: this.regexp,
					safeValue: function(x) {
						return fa.escapeValue ? Xo(fa.escape(x)) : Xo(x);
					}
				}].forEach((function(Be) {
					for (Li = 0; Kn = Be.regex.exec(x);) {
						if ((_r = Tc(Kn[1].trim())) === void 0) if (typeof Tl == "function") {
							var We = Tl(x, Kn, St);
							_r = typeof We == "string" ? We : "";
						} else {
							if (Al) {
								_r = Kn[0];
								continue;
							}
							fa.logger.warn(`missed to pass in variable ${Kn[1]} for interpolating ${x}`), _r = "";
						}
						else typeof _r == "string" || fa.useRawValueToEscape || (_r = cP(_r));
						var Vo = Be.safeValue(_r);
						if (x = x.replace(Kn[0], Vo), Al ? (Be.regex.lastIndex += Vo.length, Be.regex.lastIndex -= Kn[0].length) : Be.regex.lastIndex = 0, ++Li >= fa.maxReplaces) break;
					}
				})), x;
			}
		},
		{
			key: "nest",
			value: function(x, Be) {
				var We, St, Kn = this, _r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Li = Z_({}, _r);
				function fa(x, Be) {
					var We = this.nestingOptionsSeparator;
					if (x.indexOf(We) < 0) return x;
					var St = x.split(RegExp(`${We}[ ]*{`)), Kn = `{${St[1]}`;
					x = St[0], Kn = (Kn = this.interpolate(Kn, Li)).replace(/'/g, "\"");
					try {
						Li = JSON.parse(Kn), Be && (Li = Z_({}, Be, Li));
					} catch (Be) {
						return this.logger.warn(`failed parsing options string in nesting for key ${x}`, Be), `${x}${We}${Kn}`;
					}
					return delete Li.defaultValue, x;
				}
				for (Li.applyPostProcessor = !1, delete Li.defaultValue; We = this.nestingRegexp.exec(x);) {
					var Vo = [], Xo = !1;
					if (We[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(We[1])) {
						var Tc = We[1].split(this.formatSeparator).map((function(x) {
							return x.trim();
						}));
						We[1] = Tc.shift(), Vo = Tc, Xo = !0;
					}
					if ((St = Be(fa.call(this, We[1].trim(), Li), Li)) && We[0] === x && typeof St != "string") return St;
					typeof St != "string" && (St = cP(St)), St ||= (this.logger.warn(`missed to resolve ${We[1]} for nesting ${x}`), ""), Xo && (St = Vo.reduce((function(x, Be) {
						return Kn.format(x, Be, _r.lng, Z_({}, _r, { interpolationkey: We[1].trim() }));
					}), St.trim())), x = x.replace(We[0], St), this.regexp.lastIndex = 0;
				}
				return x;
			}
		}
	]), x;
}(), PP = function(x) {
	function Be(x, We, St) {
		var Kn, _r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
		return J_(this, Be), Kn = nP(this, rP(Be).call(this)), wP && sP.call(tP(Kn)), Kn.backend = x, Kn.store = We, Kn.services = St, Kn.languageUtils = St.languageUtils, Kn.options = _r, Kn.logger = uP.create("backendConnector"), Kn.state = {}, Kn.queue = [], Kn.backend && Kn.backend.init && Kn.backend.init(St, _r.backend, _r), Kn;
	}
	return iP(Be, sP), eP(Be, [
		{
			key: "queueLoad",
			value: function(x, Be, We, St) {
				var Kn = this, _r = [], Li = [], fa = [], Vo = [];
				return x.forEach((function(x) {
					var St = !0;
					Be.forEach((function(Be) {
						var fa = `${x}|${Be}`;
						!We.reload && Kn.store.hasResourceBundle(x, Be) ? Kn.state[fa] = 2 : Kn.state[fa] < 0 || (Kn.state[fa] === 1 ? Li.indexOf(fa) < 0 && Li.push(fa) : (Kn.state[fa] = 1, St = !1, Li.indexOf(fa) < 0 && Li.push(fa), _r.indexOf(fa) < 0 && _r.push(fa), Vo.indexOf(Be) < 0 && Vo.push(Be)));
					})), St || fa.push(x);
				})), (_r.length || Li.length) && this.queue.push({
					pending: Li,
					loaded: {},
					errors: [],
					callback: St
				}), {
					toLoad: _r,
					pending: Li,
					toLoadLanguages: fa,
					toLoadNamespaces: Vo
				};
			}
		},
		{
			key: "loaded",
			value: function(x, Be, We) {
				var St = x.split("|"), Kn = St[0], _r = St[1];
				Be && this.emit("failedLoading", Kn, _r, Be), We && this.store.addResourceBundle(Kn, _r, We), this.state[x] = Be ? -1 : 2;
				var Li = {};
				this.queue.forEach((function(We) {
					(function(x, Be, We, St) {
						var Kn = dP(x, Be, Object), _r = Kn.obj, Li = Kn.k;
						_r[Li] = _r[Li] || [], _r[Li].push(We);
					})(We.loaded, [Kn], _r), function(x, Be) {
						for (var We = x.indexOf(Be); We !== -1;) x.splice(We, 1), We = x.indexOf(Be);
					}(We.pending, x), Be && We.errors.push(Be), We.pending.length !== 0 || We.done || (Object.keys(We.loaded).forEach((function(x) {
						Li[x] || (Li[x] = []), We.loaded[x].length && We.loaded[x].forEach((function(Be) {
							Li[x].indexOf(Be) < 0 && Li[x].push(Be);
						}));
					})), We.done = !0, We.errors.length ? We.callback(We.errors) : We.callback());
				})), this.emit("loaded", Li), this.queue = this.queue.filter((function(x) {
					return !x.done;
				}));
			}
		},
		{
			key: "read",
			value: function(x, Be, We) {
				var St = this, Kn = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, _r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, Li = arguments.length > 5 ? arguments[5] : void 0;
				return x.length ? this.backend[We](x, Be, (function(fa, Vo) {
					fa && Vo && Kn < 5 ? setTimeout((function() {
						St.read.call(St, x, Be, We, Kn + 1, 2 * _r, Li);
					}), _r) : Li(fa, Vo);
				})) : Li(null, {});
			}
		},
		{
			key: "prepareLoading",
			value: function(x, Be) {
				var We = this, St = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Kn = 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."), Kn && Kn();
				typeof x == "string" && (x = this.languageUtils.toResolveHierarchy(x)), typeof Be == "string" && (Be = [Be]);
				var _r = this.queueLoad(x, Be, St, Kn);
				if (!_r.toLoad.length) return _r.pending.length || Kn(), null;
				_r.toLoad.forEach((function(x) {
					We.loadOne(x);
				}));
			}
		},
		{
			key: "load",
			value: function(x, Be, We) {
				this.prepareLoading(x, Be, {}, We);
			}
		},
		{
			key: "reload",
			value: function(x, Be, We) {
				this.prepareLoading(x, Be, { reload: !0 }, We);
			}
		},
		{
			key: "loadOne",
			value: function(x) {
				var Be = this, We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", St = x.split("|"), Kn = St[0], _r = St[1];
				this.read(Kn, _r, "read", void 0, void 0, (function(St, Li) {
					St && Be.logger.warn(`${We}loading namespace ${_r} for language ${Kn} failed`, St), !St && Li && Be.logger.log(`${We}loaded namespace ${_r} for language ${Kn}`, Li), Be.loaded(x, St, Li);
				}));
			}
		},
		{
			key: "saveMissing",
			value: function(x, Be, We, St, Kn) {
				var _r = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
				this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(Be) ? this.logger.warn(`did not save key "${We}" as the namespace "${Be}" 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!!!") : We != null && We !== "" && (this.backend && this.backend.create && this.backend.create(x, Be, We, St, null, Z_({}, _r, { isUpdate: Kn })), x && x[0] && this.store.addResource(x[0], Be, We, St));
			}
		}
	]), Be;
}();
function jP() {
	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(x) {
			var Be = {};
			if (Y_(x[1]) === "object" && (Be = x[1]), typeof x[1] == "string" && (Be.defaultValue = x[1]), typeof x[2] == "string" && (Be.tDescription = x[2]), Y_(x[2]) === "object" || Y_(x[3]) === "object") {
				var We = x[3] || x[2];
				Object.keys(We).forEach((function(x) {
					Be[x] = We[x];
				}));
			}
			return Be;
		},
		interpolation: {
			escapeValue: !0,
			format: function(x, Be, We, St) {
				return x;
			},
			prefix: "{{",
			suffix: "}}",
			formatSeparator: ",",
			unescapePrefix: "-",
			nestingPrefix: "$t(",
			nestingSuffix: ")",
			nestingOptionsSeparator: ",",
			maxReplaces: 1e3,
			skipOnVariables: !1
		}
	};
}
function NP(x) {
	return typeof x.ns == "string" && (x.ns = [x.ns]), typeof x.fallbackLng == "string" && (x.fallbackLng = [x.fallbackLng]), typeof x.fallbackNS == "string" && (x.fallbackNS = [x.fallbackNS]), x.whitelist && (x.whitelist && x.whitelist.indexOf("cimode") < 0 && (x.whitelist = x.whitelist.concat(["cimode"])), x.supportedLngs = x.whitelist), x.nonExplicitWhitelist && (x.nonExplicitSupportedLngs = x.nonExplicitWhitelist), x.supportedLngs && x.supportedLngs.indexOf("cimode") < 0 && (x.supportedLngs = x.supportedLngs.concat(["cimode"])), x;
}
function IP() {}
var RP = new (function(x) {
	function Be() {
		var x, We = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, St = arguments.length > 1 ? arguments[1] : void 0;
		if (J_(this, Be), x = nP(this, rP(Be).call(this)), wP && sP.call(tP(x)), x.options = NP(We), x.services = {}, x.logger = uP, x.modules = { external: [] }, St && !x.isInitialized && !We.isClone) {
			if (!x.options.initImmediate) return x.init(We, St), nP(x, tP(x));
			setTimeout((function() {
				x.init(We, St);
			}), 0);
		}
		return x;
	}
	return iP(Be, sP), eP(Be, [
		{
			key: "init",
			value: function() {
				var x = this, Be = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, We = arguments.length > 1 ? arguments[1] : void 0;
				function St(x) {
					return x ? typeof x == "function" ? new x() : x : null;
				}
				if (typeof Be == "function" && (We = Be, Be = {}), Be.whitelist && !Be.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), Be.nonExplicitWhitelist && !Be.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 = Z_({}, jP(), this.options, NP(Be)), this.format = this.options.interpolation.format, We ||= IP, !this.options.isClone) {
					this.modules.logger ? uP.init(St(this.modules.logger), this.options) : uP.init(null, this.options);
					var Kn = new OP(this.options);
					this.store = new DP(this.options.resources, this.options);
					var _r = this.services;
					_r.logger = uP, _r.resourceStore = this.store, _r.languageUtils = Kn, _r.pluralResolver = new TP(Kn, {
						prepend: this.options.pluralSeparator,
						compatibilityJSON: this.options.compatibilityJSON,
						simplifyPluralSuffix: this.options.simplifyPluralSuffix
					}), _r.interpolator = new _P(this.options), _r.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, _r.backendConnector = new PP(St(this.modules.backend), _r.resourceStore, _r, this.options), _r.backendConnector.on("*", (function(Be) {
						var We = [...arguments].slice(1);
						x.emit.apply(x, [Be].concat(We));
					})), this.modules.languageDetector && (_r.languageDetector = St(this.modules.languageDetector), _r.languageDetector.init(_r, this.options.detection, this.options)), this.modules.i18nFormat && (_r.i18nFormat = St(this.modules.i18nFormat), _r.i18nFormat.init && _r.i18nFormat.init(this)), this.translator = new CP(this.services, this.options), this.translator.on("*", (function(Be) {
						var We = [...arguments].slice(1);
						x.emit.apply(x, [Be].concat(We));
					})), this.modules.external.forEach((function(Be) {
						Be.init && Be.init(x);
					}));
				}
				if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
					var Li = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
					Li.length > 0 && Li[0] !== "dev" && (this.options.lng = Li[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(Be) {
					x[Be] = function() {
						var We;
						return (We = x.store)[Be].apply(We, arguments);
					};
				})), [
					"addResource",
					"addResources",
					"addResourceBundle",
					"removeResourceBundle"
				].forEach((function(Be) {
					x[Be] = function() {
						var We;
						return (We = x.store)[Be].apply(We, arguments), x;
					};
				}));
				var fa = lP(), Vo = function() {
					var Be = function(Be, St) {
						x.isInitialized && !x.initializedStoreOnce && x.logger.warn("init: i18next is already initialized. You should call init just once!"), x.isInitialized = !0, x.options.isClone || x.logger.log("initialized", x.options), x.emit("initialized", x.options), fa.resolve(St), We(Be, St);
					};
					if (x.languages && x.options.compatibilityAPI !== "v1" && !x.isInitialized) return Be(null, x.t.bind(x));
					x.changeLanguage(x.options.lng, Be);
				};
				return this.options.resources || !this.options.initImmediate ? Vo() : setTimeout(Vo, 0), fa;
			}
		},
		{
			key: "loadResources",
			value: function(x) {
				var Be = this, We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : IP, St = typeof x == "string" ? x : this.language;
				if (typeof x == "function" && (We = x), !this.options.resources || this.options.partialBundledLanguages) {
					if (St && St.toLowerCase() === "cimode") return We();
					var Kn = [], _r = function(x) {
						x && Be.services.languageUtils.toResolveHierarchy(x).forEach((function(x) {
							Kn.indexOf(x) < 0 && Kn.push(x);
						}));
					};
					St ? _r(St) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(x) {
						return _r(x);
					})), this.options.preload && this.options.preload.forEach((function(x) {
						return _r(x);
					})), this.services.backendConnector.load(Kn, this.options.ns, We);
				} else We(null);
			}
		},
		{
			key: "reloadResources",
			value: function(x, Be, We) {
				var St = lP();
				return x ||= this.languages, Be ||= this.options.ns, We ||= IP, this.services.backendConnector.reload(x, Be, (function(x) {
					St.resolve(), We(x);
				})), St;
			}
		},
		{
			key: "use",
			value: function(x) {
				if (!x) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
				if (!x.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
				return x.type === "backend" && (this.modules.backend = x), (x.type === "logger" || x.log && x.warn && x.error) && (this.modules.logger = x), x.type === "languageDetector" && (this.modules.languageDetector = x), x.type === "i18nFormat" && (this.modules.i18nFormat = x), x.type === "postProcessor" && SP.addPostProcessor(x), x.type === "3rdParty" && this.modules.external.push(x), this;
			}
		},
		{
			key: "changeLanguage",
			value: function(x, Be) {
				var We = this;
				this.isLanguageChangingTo = x;
				var St = lP();
				this.emit("languageChanging", x);
				var Kn = function(Kn) {
					x || Kn || !We.services.languageDetector || (Kn = []);
					var _r = typeof Kn == "string" ? Kn : We.services.languageUtils.getBestMatchFromCodes(Kn);
					_r && (We.language || (We.language = _r, We.languages = We.services.languageUtils.toResolveHierarchy(_r)), We.translator.language || We.translator.changeLanguage(_r), We.services.languageDetector && We.services.languageDetector.cacheUserLanguage(_r)), We.loadResources(_r, (function(x) {
						(function(x, Kn) {
							Kn ? (We.language = Kn, We.languages = We.services.languageUtils.toResolveHierarchy(Kn), We.translator.changeLanguage(Kn), We.isLanguageChangingTo = void 0, We.emit("languageChanged", Kn), We.logger.log("languageChanged", Kn)) : We.isLanguageChangingTo = void 0, St.resolve((function() {
								return We.t.apply(We, arguments);
							})), Be && Be(x, (function() {
								return We.t.apply(We, arguments);
							}));
						})(x, _r);
					}));
				};
				return x || !this.services.languageDetector || this.services.languageDetector.async ? !x && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(Kn) : Kn(x) : Kn(this.services.languageDetector.detect()), St;
			}
		},
		{
			key: "getFixedT",
			value: function(x, Be, We) {
				var St = this, Kn = function x(Be, Kn) {
					var _r;
					if (Y_(Kn) !== "object") {
						var Li = [...arguments].slice(2);
						_r = St.options.overloadTranslationOptionHandler([Be, Kn].concat(Li));
					} else _r = Z_({}, Kn);
					_r.lng = _r.lng || x.lng, _r.lngs = _r.lngs || x.lngs, _r.ns = _r.ns || x.ns;
					var fa = St.options.keySeparator || ".", Vo = We ? `${We}${fa}${Be}` : Be;
					return St.t(Vo, _r);
				};
				return typeof x == "string" ? Kn.lng = x : Kn.lngs = x, Kn.ns = Be, Kn.keyPrefix = We, Kn;
			}
		},
		{
			key: "t",
			value: function() {
				var x;
				return this.translator && (x = this.translator).translate.apply(x, arguments);
			}
		},
		{
			key: "exists",
			value: function() {
				var x;
				return this.translator && (x = this.translator).exists.apply(x, arguments);
			}
		},
		{
			key: "setDefaultNamespace",
			value: function(x) {
				this.options.defaultNS = x;
			}
		},
		{
			key: "hasLoadedNamespace",
			value: function(x) {
				var Be = this, We = 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 St = this.languages[0], Kn = !!this.options && this.options.fallbackLng, _r = this.languages[this.languages.length - 1];
				if (St.toLowerCase() === "cimode") return !0;
				var Li = function(x, We) {
					var St = Be.services.backendConnector.state[`${x}|${We}`];
					return St === -1 || St === 2;
				};
				if (We.precheck) {
					var fa = We.precheck(this, Li);
					if (fa !== void 0) return fa;
				}
				return !!this.hasResourceBundle(St, x) || !this.services.backendConnector.backend || !(!Li(St, x) || Kn && !Li(_r, x));
			}
		},
		{
			key: "loadNamespaces",
			value: function(x, Be) {
				var We = this, St = lP();
				return this.options.ns ? (typeof x == "string" && (x = [x]), x.forEach((function(x) {
					We.options.ns.indexOf(x) < 0 && We.options.ns.push(x);
				})), this.loadResources((function(x) {
					St.resolve(), Be && Be(x);
				})), St) : (Be && Be(), Promise.resolve());
			}
		},
		{
			key: "loadLanguages",
			value: function(x, Be) {
				var We = lP();
				typeof x == "string" && (x = [x]);
				var St = this.options.preload || [], Kn = x.filter((function(x) {
					return St.indexOf(x) < 0;
				}));
				return Kn.length ? (this.options.preload = St.concat(Kn), this.loadResources((function(x) {
					We.resolve(), Be && Be(x);
				})), We) : (Be && Be(), Promise.resolve());
			}
		},
		{
			key: "dir",
			value: function(x) {
				return x ||= this.languages && this.languages.length > 0 ? this.languages[0] : this.language, x ? (/* @__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(x)) >= 0 ? "rtl" : "ltr" : "rtl";
			}
		},
		{
			key: "createInstance",
			value: function() {
				return new Be(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, arguments.length > 1 ? arguments[1] : void 0);
			}
		},
		{
			key: "cloneInstance",
			value: function() {
				var x = this, We = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, St = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : IP, Kn = Z_({}, this.options, We, { isClone: !0 }), _r = new Be(Kn);
				return [
					"store",
					"services",
					"language"
				].forEach((function(Be) {
					_r[Be] = x[Be];
				})), _r.services = Z_({}, this.services), _r.services.utils = { hasLoadedNamespace: _r.hasLoadedNamespace.bind(_r) }, _r.translator = new CP(_r.services, _r.options), _r.translator.on("*", (function(x) {
					var Be = [...arguments].slice(1);
					_r.emit.apply(_r, [x].concat(Be));
				})), _r.init(Kn, St), _r.translator.options = _r.options, _r.translator.backendConnector.services.utils = { hasLoadedNamespace: _r.hasLoadedNamespace.bind(_r) }, _r;
			}
		},
		{
			key: "toJSON",
			value: function() {
				return {
					options: this.options,
					store: this.store,
					language: this.language,
					languages: this.languages
				};
			}
		}
	]), Be;
}())();
function MP(x, Be) {
	RP.addResourceBundle(x, "translation", Be, !0, !0);
}
RP.init({
	lng: "zh-CN",
	resources: {}
});
var HP = RP.t.bind(RP);
MP("en", { editor: {
	more: "More",
	justify: "Justify",
	indent: "Indent",
	image: "Image",
	video: "Video"
} }), MP("zh-CN", { editor: {
	more: "更多",
	justify: "对齐",
	indent: "缩进",
	image: "图片",
	video: "视频"
} });
var VP = ea ? {}.toString : function() {
	return "[object " + oa(this) + "]";
};
ea || Ei(Object.prototype, "toString", VP, { unsafe: !0 });
var UP = Array.isArray || function(x) {
	return Hr(x) == "Array";
}, WP = function() {}, GP = [], qP = Jr("Reflect", "construct"), KP = /^\s*(?:class|function)\b/, YP = Mr(KP.exec), XP = !KP.exec(WP), ZP = function(x) {
	if (!Yr(x)) return !1;
	try {
		return qP(WP, GP, x), !0;
	} catch {
		return !1;
	}
}, JP = !qP || Ar((function() {
	var x;
	return ZP(ZP.call) || !ZP(Object) || !ZP((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!Yr(x)) return !1;
	switch (oa(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return XP || !!YP(KP, ri(x));
} : ZP, QP = Po("species"), ej = Cr.Array, tj = function(x, Be) {
	return new (function(x) {
		var Be;
		return UP(x) && (Be = x.constructor, (JP(Be) && (Be === ej || UP(Be.prototype)) || Xr(Be) && (Be = Be[QP]) === null) && (Be = void 0)), Be === void 0 ? ej : Be;
	}(x))(Be === 0 ? 0 : Be);
}, nj = Mr([].push), rj = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = Do(Vo), Lm = Wr(Ff), Bm = yu(Xo, Tc), x_ = Fi(Lm), uy = 0, dx = Tl || tj, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: nj(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: nj(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, oj = {
	forEach: rj(0),
	map: rj(1),
	filter: rj(2),
	some: rj(3),
	every: rj(4),
	find: rj(5),
	findIndex: rj(6),
	filterReject: rj(7)
}.forEach, aj = function(x, Be) {
	var We = [][x];
	return !!We && Ar((function() {
		We.call(null, Be || function() {
			throw 1;
		}, 1);
	}));
}("forEach") ? [].forEach : function(x) {
	return oj(this, x, arguments.length > 1 ? arguments[1] : void 0);
}, uj = function(x) {
	if (x && x.forEach !== aj) try {
		Jo(x, "forEach", aj);
	} catch {
		x.forEach = aj;
	}
};
for (var sj in fs) fs[sj] && uj(Cr[sj] && Cr[sj].prototype);
uj(hs), MP("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" }
}), MP("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 lj = {
	type: "paragraph",
	renderElem: function(x, Be, We) {
		return Pg("p", null, Be);
	}
}, cj = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function fj(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var dj, pj, hj = function(x) {
	return x && x.Math == Math && x;
}, gj = hj(typeof globalThis == "object" && globalThis) || hj(typeof window == "object" && window) || hj(typeof self == "object" && self) || hj(typeof cj == "object" && cj) || function() {
	return this;
}() || Function("return this")(), vj = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, yj = !vj((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), mj = Function.prototype.call, bj = mj.bind ? mj.bind(mj) : function() {
	return mj.apply(mj, arguments);
}, wj = {}.propertyIsEnumerable, Ej = Object.getOwnPropertyDescriptor, Sj = { f: Ej && !wj.call({ 1: 2 }, 1) ? function(x) {
	var Be = Ej(this, x);
	return !!Be && Be.enumerable;
} : wj }, xj = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, Cj = Function.prototype, Aj = Cj.bind, Oj = Cj.call, kj = Aj && Aj.bind(Oj), Bj = Aj ? function(x) {
	return x && kj(Oj, x);
} : function(x) {
	return x && function() {
		return Oj.apply(x, arguments);
	};
}, Fj = Bj({}.toString), Tj = Bj("".slice), _j = function(x) {
	return Tj(Fj(x), 8, -1);
}, Pj = gj.Object, jj = Bj("".split), Nj = vj((function() {
	return !Pj("z").propertyIsEnumerable(0);
})) ? function(x) {
	return _j(x) == "String" ? jj(x, "") : Pj(x);
} : Pj, Ij = gj.TypeError, Lj = function(x) {
	if (x == null) throw Ij("Can't call method on " + x);
	return x;
}, Rj = function(x) {
	return Nj(Lj(x));
}, Mj = function(x) {
	return typeof x == "function";
}, zj = function(x) {
	return typeof x == "object" ? x !== null : Mj(x);
}, $j = function(x) {
	return Mj(x) ? x : void 0;
}, Hj = function(x, Be) {
	return arguments.length < 2 ? $j(gj[x]) : gj[x] && gj[x][Be];
}, Vj = Bj({}.isPrototypeOf), Uj = Hj("navigator", "userAgent") || "", Wj = gj.process, Gj = gj.Deno, qj = Wj && Wj.versions || Gj && Gj.version, Kj = qj && qj.v8;
Kj && (pj = (dj = Kj.split("."))[0] > 0 && dj[0] < 4 ? 1 : +(dj[0] + dj[1])), !pj && Uj && (!(dj = Uj.match(/Edge\/(\d+)/)) || dj[1] >= 74) && (dj = Uj.match(/Chrome\/(\d+)/)) && (pj = +dj[1]);
var Yj = pj, Xj = !!Object.getOwnPropertySymbols && !vj((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && Yj && Yj < 41;
})), Zj = Xj && !Symbol.sham && typeof Symbol.iterator == "symbol", Jj = gj.Object, Qj = Zj ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = Hj("Symbol");
	return Mj(Be) && Vj(Be.prototype, Jj(x));
}, eN = gj.String, tN = function(x) {
	try {
		return eN(x);
	} catch {
		return "Object";
	}
}, nN = gj.TypeError, rN = function(x) {
	if (Mj(x)) return x;
	throw nN(tN(x) + " is not a function");
}, oN = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : rN(We);
}, iN = gj.TypeError, aN = Object.defineProperty, uN = function(x, Be) {
	try {
		aN(gj, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		gj[x] = Be;
	}
	return Be;
}, sN = gj["__core-js_shared__"] || uN("__core-js_shared__", {}), lN = fj((function(x) {
	(x.exports = function(x, Be) {
		return sN[x] || (sN[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), cN = gj.Object, fN = function(x) {
	return cN(Lj(x));
}, dN = Bj({}.hasOwnProperty), pN = Object.hasOwn || function(x, Be) {
	return dN(fN(x), Be);
}, hN = 0, gN = Math.random(), vN = Bj(1 .toString), yN = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + vN(++hN + gN, 36);
}, mN = lN("wks"), bN = gj.Symbol, wN = bN && bN.for, EN = Zj ? bN : bN && bN.withoutSetter || yN, DN = function(x) {
	if (!pN(mN, x) || !Xj && typeof mN[x] != "string") {
		var Be = "Symbol." + x;
		Xj && pN(bN, x) ? mN[x] = bN[x] : mN[x] = Zj && wN ? wN(Be) : EN(Be);
	}
	return mN[x];
}, SN = gj.TypeError, xN = DN("toPrimitive"), CN = function(x) {
	var Be = function(x, Be) {
		if (!zj(x) || Qj(x)) return x;
		var We, St = oN(x, xN);
		if (St) {
			if (Be === void 0 && (Be = "default"), We = bj(St, x, Be), !zj(We) || Qj(We)) return We;
			throw SN("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && Mj(We = x.toString) && !zj(St = bj(We, x)) || Mj(We = x.valueOf) && !zj(St = bj(We, x)) || Be !== "string" && Mj(We = x.toString) && !zj(St = bj(We, x))) return St;
			throw iN("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return Qj(Be) ? Be : Be + "";
}, AN = gj.document, ON = zj(AN) && zj(AN.createElement), kN = function(x) {
	return ON ? AN.createElement(x) : {};
}, BN = !yj && !vj((function() {
	return Object.defineProperty(kN("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), FN = Object.getOwnPropertyDescriptor, TN = { f: yj ? FN : function(x, Be) {
	if (x = Rj(x), Be = CN(Be), BN) try {
		return FN(x, Be);
	} catch {}
	if (pN(x, Be)) return xj(!bj(Sj.f, x, Be), x[Be]);
} }, _N = gj.String, PN = gj.TypeError, jN = function(x) {
	if (zj(x)) return x;
	throw PN(_N(x) + " is not an object");
}, NN = gj.TypeError, IN = Object.defineProperty, LN = { f: yj ? IN : function(x, Be, We) {
	if (jN(x), Be = CN(Be), jN(We), BN) try {
		return IN(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw NN("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, RN = yj ? function(x, Be, We) {
	return LN.f(x, Be, xj(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, MN = Bj(Function.toString);
Mj(sN.inspectSource) || (sN.inspectSource = function(x) {
	return MN(x);
});
var zN, $N, HN, VN = sN.inspectSource, UN = gj.WeakMap, WN = Mj(UN) && /native code/.test(VN(UN)), GN = lN("keys"), qN = function(x) {
	return GN[x] || (GN[x] = yN(x));
}, KN = {}, YN = gj.TypeError, XN = gj.WeakMap;
if (WN || sN.state) {
	var ZN = sN.state ||= new XN(), JN = Bj(ZN.get), QN = Bj(ZN.has), eI = Bj(ZN.set);
	zN = function(x, Be) {
		if (QN(ZN, x)) throw new YN("Object already initialized");
		return Be.facade = x, eI(ZN, x, Be), Be;
	}, $N = function(x) {
		return JN(ZN, x) || {};
	}, HN = function(x) {
		return QN(ZN, x);
	};
} else {
	var tI = qN("state");
	KN[tI] = !0, zN = function(x, Be) {
		if (pN(x, tI)) throw new YN("Object already initialized");
		return Be.facade = x, RN(x, tI, Be), Be;
	}, $N = function(x) {
		return pN(x, tI) ? x[tI] : {};
	}, HN = function(x) {
		return pN(x, tI);
	};
}
var nI = {
	set: zN,
	get: $N,
	has: HN,
	enforce: function(x) {
		return HN(x) ? $N(x) : zN(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!zj(Be) || (We = $N(Be)).type !== x) throw YN("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, rI = Function.prototype, oI = yj && Object.getOwnPropertyDescriptor, iI = pN(rI, "name"), aI = {
	EXISTS: iI,
	PROPER: iI && function() {}.name === "something",
	CONFIGURABLE: iI && (!yj || yj && oI(rI, "name").configurable)
}, uI = fj((function(x) {
	var Be = aI.CONFIGURABLE, We = nI.get, St = nI.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		Mj(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!pN(_r, "name") || Be && _r.name !== Tl) && RN(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === gj ? Xo ? x[We] = _r : uN(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : RN(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return Mj(this) && We(this).source || VN(this);
	}));
})), sI = Math.ceil, lI = Math.floor, cI = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? lI : sI)(Be);
}, fI = Math.max, dI = Math.min, pI = function(x, Be) {
	var We = cI(x);
	return We < 0 ? fI(We + Be, 0) : dI(We, Be);
}, hI = Math.min, gI = function(x) {
	return x > 0 ? hI(cI(x), 9007199254740991) : 0;
}, vI = function(x) {
	return gI(x.length);
}, yI = function(x) {
	return function(Be, We, St) {
		var Kn, _r = Rj(Be), Li = vI(_r), fa = pI(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}, mI = {
	includes: yI(!0),
	indexOf: yI(!1)
}, bI = mI.indexOf, wI = Bj([].push), EI = function(x, Be) {
	var We, St = Rj(x), Kn = 0, _r = [];
	for (We in St) !pN(KN, We) && pN(St, We) && wI(_r, We);
	for (; Be.length > Kn;) pN(St, We = Be[Kn++]) && (~bI(_r, We) || wI(_r, We));
	return _r;
}, DI = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], SI = DI.concat("length", "prototype"), xI = { f: Object.getOwnPropertyNames || function(x) {
	return EI(x, SI);
} }, CI = { f: Object.getOwnPropertySymbols }, AI = Bj([].concat), OI = Hj("Reflect", "ownKeys") || function(x) {
	var Be = xI.f(jN(x)), We = CI.f;
	return We ? AI(Be, We(x)) : Be;
}, kI = function(x, Be) {
	for (var We = OI(Be), St = LN.f, Kn = TN.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		pN(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, BI = /#|\.prototype\./, FI = function(x, Be) {
	var We = _I[TI(x)];
	return We == jI || We != PI && (Mj(Be) ? vj(Be) : !!Be);
}, TI = FI.normalize = function(x) {
	return String(x).replace(BI, ".").toLowerCase();
}, _I = FI.data = {}, PI = FI.NATIVE = "N", jI = FI.POLYFILL = "P", NI = FI, II = TN.f, LI = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? gj : Xo ? gj[fa] || uN(fa, {}) : (gj[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = II(We, St)) && Li.value : We[St], !NI(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			kI(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && RN(_r, "sham", !0), uI(We, St, _r, x);
	}
}, RI = Bj(Bj.bind), MI = Array.isArray || function(x) {
	return _j(x) == "Array";
}, zI = {};
zI[DN("toStringTag")] = "z";
var $I = String(zI) === "[object z]", HI = DN("toStringTag"), VI = gj.Object, UI = _j(function() {
	return arguments;
}()) == "Arguments", WI = $I ? _j : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = VI(x), HI)) == "string" ? We : UI ? _j(Be) : (St = _j(Be)) == "Object" && Mj(Be.callee) ? "Arguments" : St;
}, GI = function() {}, qI = [], KI = Hj("Reflect", "construct"), YI = /^\s*(?:class|function)\b/, XI = Bj(YI.exec), ZI = !YI.exec(GI), JI = function(x) {
	if (!Mj(x)) return !1;
	try {
		return KI(GI, qI, x), !0;
	} catch {
		return !1;
	}
}, QI = !KI || vj((function() {
	var x;
	return JI(JI.call) || !JI(Object) || !JI((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!Mj(x)) return !1;
	switch (WI(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return ZI || !!XI(YI, VN(x));
} : JI, eL = DN("species"), tL = gj.Array, nL = function(x, Be) {
	return new (function(x) {
		var Be;
		return MI(x) && (Be = x.constructor, (QI(Be) && (Be === tL || MI(Be.prototype)) || zj(Be) && (Be = Be[eL]) === null) && (Be = void 0)), Be === void 0 ? tL : Be;
	}(x))(Be === 0 ? 0 : Be);
}, rL = Bj([].push), oL = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = fN(Vo), Lm = Nj(Ff), Bm = function(x, Be) {
			return rN(x), Be === void 0 ? x : RI ? RI(x, Be) : function() {
				return x.apply(Be, arguments);
			};
		}(Xo, Tc), x_ = vI(Lm), uy = 0, dx = Tl || nL, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: rL(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: rL(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, iL = {
	forEach: oL(0),
	map: oL(1),
	filter: oL(2),
	some: oL(3),
	every: oL(4),
	find: oL(5),
	findIndex: oL(6),
	filterReject: oL(7)
}, aL = DN("species"), uL = function(x) {
	return Yj >= 51 || !vj((function() {
		var Be = [];
		return (Be.constructor = {})[aL] = function() {
			return { foo: 1 };
		}, Be[x](Boolean).foo !== 1;
	}));
}, sL = iL.filter;
LI({
	target: "Array",
	proto: !0,
	forced: !uL("filter")
}, { filter: function(x) {
	return sL(this, x, arguments.length > 1 ? arguments[1] : void 0);
} });
var lL = $I ? {}.toString : function() {
	return "[object " + WI(this) + "]";
};
$I || uI(Object.prototype, "toString", lL, { unsafe: !0 });
var cL, fL = gj.String, dL = function(x) {
	if (WI(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return fL(x);
}, pL = function() {
	var x = jN(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, hL = gj.RegExp, gL = vj((function() {
	var x = hL("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), vL = gL || vj((function() {
	return !hL("a", "y").sticky;
})), yL = {
	BROKEN_CARET: gL || vj((function() {
		var x = hL("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: vL,
	UNSUPPORTED_Y: gL
}, mL = Object.keys || function(x) {
	return EI(x, DI);
}, bL = yj ? Object.defineProperties : function(x, Be) {
	jN(x);
	for (var We, St = Rj(Be), Kn = mL(Be), _r = Kn.length, Li = 0; _r > Li;) LN.f(x, We = Kn[Li++], St[We]);
	return x;
}, wL = Hj("document", "documentElement"), EL = qN("IE_PROTO"), DL = function() {}, SL = function(x) {
	return "<script>" + x + "<\/script>";
}, xL = function(x) {
	x.write(SL("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, CL = function() {
	try {
		cL = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	CL = typeof document < "u" ? document.domain && cL ? xL(cL) : ((Be = kN("iframe")).style.display = "none", wL.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(SL("document.F=Object")), x.close(), x.F) : xL(cL);
	for (var We = DI.length; We--;) delete CL.prototype[DI[We]];
	return CL();
};
KN[EL] = !0;
var AL, OL, kL = Object.create || function(x, Be) {
	var We;
	return x === null ? We = CL() : (DL.prototype = jN(x), We = new DL(), DL.prototype = null, We[EL] = x), Be === void 0 ? We : bL(We, Be);
}, BL = gj.RegExp, FL = vj((function() {
	var x = BL(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), TL = gj.RegExp, _L = vj((function() {
	var x = TL("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), PL = nI.get, jL = lN("native-string-replace", String.prototype.replace), NL = RegExp.prototype.exec, IL = NL, LL = Bj("".charAt), RL = Bj("".indexOf), ML = Bj("".replace), zL = Bj("".slice), $L = (OL = /b*/g, bj(NL, AL = /a/, "a"), bj(NL, OL, "a"), AL.lastIndex !== 0 || OL.lastIndex !== 0), HL = yL.BROKEN_CARET, VL = /()??/.exec("")[1] !== void 0;
($L || VL || HL || FL || _L) && (IL = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = PL(Vo), Tc = dL(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = bj(IL, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = HL && Vo.sticky, Ff = bj(pL, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = ML(Ff, "y", ""), RL(Ff, "g") === -1 && (Ff += "g"), x_ = zL(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && LL(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), VL && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), $L && (St = Vo.lastIndex), Kn = bj(NL, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = zL(Kn.input, Bm), Kn[0] = zL(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : $L && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), VL && Kn && Kn.length > 1 && bj(jL, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = kL(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var UL = IL;
LI({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== UL
}, { exec: UL });
var WL = Function.prototype, GL = WL.apply, qL = WL.bind, KL = WL.call, YL = typeof Reflect == "object" && Reflect.apply || (qL ? KL.bind(GL) : function() {
	return KL.apply(GL, arguments);
}), XL = DN("species"), ZL = RegExp.prototype, JL = function(x, Be, We, St) {
	var Kn = DN(x), _r = !vj((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !vj((function() {
		var Be = !1, We = /a/;
		return x === "split" && ((We = {}).constructor = {}, We.constructor[XL] = function() {
			return We;
		}, We.flags = "", We[Kn] = /./[Kn]), We.exec = function() {
			return Be = !0, null;
		}, We[Kn](""), !Be;
	}));
	if (!_r || !Li || We) {
		var fa = Bj(/./[Kn]), Vo = Be(Kn, ""[x], (function(x, Be, We, St, Kn) {
			var Li = Bj(x), Vo = Be.exec;
			return Vo === UL || Vo === ZL.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		uI(String.prototype, x, Vo[0]), uI(ZL, Kn, Vo[1]);
	}
	St && RN(ZL[Kn], "sham", !0);
}, QL = Bj("".charAt), eR = Bj("".charCodeAt), tR = Bj("".slice), rR = function(x) {
	return function(Be, We) {
		var St, Kn, _r = dL(Lj(Be)), Li = cI(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = eR(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = eR(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? QL(_r, Li) : St : x ? tR(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}(!0), oR = function(x, Be, We) {
	return Be + (We ? rR(x, Be).length : 1);
}, iR = Math.floor, aR = Bj("".charAt), uR = Bj("".replace), sR = Bj("".slice), lR = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, cR = /\$([$&'`]|\d{1,2})/g, fR = function(x, Be, We, St, Kn, _r) {
	var Li = We + x.length, fa = St.length, Vo = cR;
	return Kn !== void 0 && (Kn = fN(Kn), Vo = lR), uR(_r, Vo, (function(_r, Vo) {
		var Xo;
		switch (aR(Vo, 0)) {
			case "$": return "$";
			case "&": return x;
			case "`": return sR(Be, 0, We);
			case "'": return sR(Be, Li);
			case "<":
				Xo = Kn[sR(Vo, 1, -1)];
				break;
			default:
				var Tc = +Vo;
				if (Tc === 0) return _r;
				if (Tc > fa) {
					var Tl = iR(Tc / 10);
					return Tl === 0 ? _r : Tl <= fa ? St[Tl - 1] === void 0 ? aR(Vo, 1) : St[Tl - 1] + aR(Vo, 1) : _r;
				}
				Xo = St[Tc - 1];
		}
		return Xo === void 0 ? "" : Xo;
	}));
}, dR = gj.TypeError, pR = function(x, Be) {
	var We = x.exec;
	if (Mj(We)) {
		var St = bj(We, x, Be);
		return St !== null && jN(St), St;
	}
	if (_j(x) === "RegExp") return bj(UL, x, Be);
	throw dR("RegExp#exec called on incompatible receiver");
}, hR = DN("replace"), gR = Math.max, vR = Math.min, yR = Bj([].concat), mR = Bj([].push), bR = Bj("".indexOf), wR = Bj("".slice), ER = "a".replace(/./, "$0") === "$0", DR = !!/./[hR] && /./[hR]("a", "$0") === "";
JL("replace", (function(x, Be, We) {
	var St = DR ? "$" : "$0";
	return [function(x, We) {
		var St = Lj(this), Kn = x == null ? void 0 : oN(x, hR);
		return Kn ? bj(Kn, x, St, We) : bj(Be, dL(St), x, We);
	}, function(x, Kn) {
		var _r = jN(this), Li = dL(x);
		if (typeof Kn == "string" && bR(Kn, St) === -1 && bR(Kn, "$<") === -1) {
			var fa = We(Be, _r, Li, Kn);
			if (fa.done) return fa.value;
		}
		var Vo = Mj(Kn);
		Vo || (Kn = dL(Kn));
		var Xo = _r.global;
		if (Xo) {
			var Tc = _r.unicode;
			_r.lastIndex = 0;
		}
		for (var Tl = [];;) {
			var Al = pR(_r, Li);
			if (Al === null || (mR(Tl, Al), !Xo)) break;
			dL(Al[0]) === "" && (_r.lastIndex = oR(Li, gI(_r.lastIndex), Tc));
		}
		for (var Uu, Ff = "", Lm = 0, Bm = 0; Bm < Tl.length; Bm++) {
			for (var x_ = dL((Al = Tl[Bm])[0]), uy = gR(vR(cI(Al.index), Li.length), 0), dx = [], kx = 1; kx < Al.length; kx++) mR(dx, (Uu = Al[kx]) === void 0 ? Uu : String(Uu));
			var eC = Al.groups;
			if (Vo) {
				var uC = yR([x_], dx, uy, Li);
				eC !== void 0 && mR(uC, eC);
				var _T = dL(YL(Kn, void 0, uC));
			} else _T = fR(x_, Li, uy, dx, eC, Kn);
			uy >= Lm && (Ff += wR(Li, Lm, uy) + _T, Lm = uy + x_.length);
		}
		return Ff + wR(Li, Lm);
	}];
}), !!vj((function() {
	var x = /./;
	return x.exec = function() {
		var x = [];
		return x.groups = { a: "7" }, x;
	}, "".replace(x, "$<a>") !== "7";
})) || !ER || DR);
var SR = DN("unscopables"), xR = Array.prototype;
xR[SR] ?? LN.f(xR, SR, {
	configurable: !0,
	value: kL(null)
});
var CR = function(x) {
	xR[SR][x] = !0;
}, AR = iL.find, OR = !0;
"find" in [] && [,].find((function() {
	OR = !1;
})), LI({
	target: "Array",
	proto: !0,
	forced: OR
}, { find: function(x) {
	return AR(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), CR("find");
var kR = DN("match"), BR = function(x) {
	var Be;
	return zj(x) && ((Be = x[kR]) === void 0 ? _j(x) == "RegExp" : !!Be);
}, FR = gj.TypeError, TR = DN("species"), _R = function(x, Be, We) {
	var St = CN(Be);
	St in x ? LN.f(x, St, xj(0, We)) : x[St] = We;
}, PR = gj.Array, jR = Math.max, NR = function(x, Be, We) {
	for (var St = vI(x), Kn = pI(Be, St), _r = pI(We === void 0 ? St : We, St), Li = PR(jR(_r - Kn, 0)), fa = 0; Kn < _r; Kn++, fa++) _R(Li, fa, x[Kn]);
	return Li.length = fa, Li;
}, IR = yL.UNSUPPORTED_Y, LR = Math.min, RR = [].push, MR = Bj(/./.exec), zR = Bj(RR), $R = Bj("".slice);
JL("split", (function(x, Be, We) {
	var St;
	return St = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(x, We) {
		var St = dL(Lj(this)), Kn = We === void 0 ? 4294967295 : We >>> 0;
		if (Kn === 0) return [];
		if (x === void 0) return [St];
		if (!BR(x)) return bj(Be, St, x, Kn);
		for (var _r, Li, fa, Vo = [], Xo = (x.ignoreCase ? "i" : "") + (x.multiline ? "m" : "") + (x.unicode ? "u" : "") + (x.sticky ? "y" : ""), Tc = 0, Tl = new RegExp(x.source, Xo + "g"); (_r = bj(UL, Tl, St)) && !((Li = Tl.lastIndex) > Tc && (zR(Vo, $R(St, Tc, _r.index)), _r.length > 1 && _r.index < St.length && YL(RR, Vo, NR(_r, 1)), fa = _r[0].length, Tc = Li, Vo.length >= Kn));) Tl.lastIndex === _r.index && Tl.lastIndex++;
		return Tc === St.length ? !fa && MR(Tl, "") || zR(Vo, "") : zR(Vo, $R(St, Tc)), Vo.length > Kn ? NR(Vo, 0, Kn) : Vo;
	} : "0".split(void 0, 0).length ? function(x, We) {
		return x === void 0 && We === 0 ? [] : bj(Be, this, x, We);
	} : Be, [function(Be, We) {
		var Kn = Lj(this), _r = Be == null ? void 0 : oN(Be, x);
		return _r ? bj(_r, Be, Kn, We) : bj(St, dL(Kn), Be, We);
	}, function(x, Kn) {
		var _r = jN(this), Li = dL(x), fa = We(St, _r, Li, Kn, St !== Be);
		if (fa.done) return fa.value;
		var Vo = function(x, Be) {
			var We, St = jN(x).constructor;
			return St === void 0 || (We = jN(St)[TR]) == null ? Be : function(x) {
				if (QI(x)) return x;
				throw FR(tN(x) + " is not a constructor");
			}(We);
		}(_r, RegExp), Xo = _r.unicode, Tc = (_r.ignoreCase ? "i" : "") + (_r.multiline ? "m" : "") + (_r.unicode ? "u" : "") + (IR ? "g" : "y"), Tl = new Vo(IR ? "^(?:" + _r.source + ")" : _r, Tc), Al = Kn === void 0 ? 4294967295 : Kn >>> 0;
		if (Al === 0) return [];
		if (Li.length === 0) return pR(Tl, Li) === null ? [Li] : [];
		for (var Uu = 0, Ff = 0, Lm = []; Ff < Li.length;) {
			Tl.lastIndex = IR ? 0 : Ff;
			var Bm, x_ = pR(Tl, IR ? $R(Li, Ff) : Li);
			if (x_ === null || (Bm = LR(gI(Tl.lastIndex + (IR ? Ff : 0)), Li.length)) === Uu) Ff = oR(Li, Ff, Xo);
			else {
				if (zR(Lm, $R(Li, Uu, Ff)), Lm.length === Al) return Lm;
				for (var uy = 1; uy <= x_.length - 1; uy++) if (zR(Lm, x_[uy]), Lm.length === Al) return Lm;
				Ff = Uu = Bm;
			}
		}
		return zR(Lm, $R(Li, Uu)), Lm;
	}];
}), !!vj((function() {
	var x = /(?:)/, Be = x.exec;
	x.exec = function() {
		return Be.apply(this, arguments);
	};
	var We = "ab".split(x);
	return We.length !== 2 || We[0] !== "a" || We[1] !== "b";
})), IR);
var HR = "	\n\v\f\r \xA0               \u2028\u2029", VR = Bj("".replace), UR = "[" + HR + "]", WR = RegExp("^" + UR + UR + "*"), GR = RegExp(UR + UR + "*$"), qR = function(x) {
	return function(Be) {
		var We = dL(Lj(Be));
		return 1 & x && (We = VR(We, WR, "")), 2 & x && (We = VR(We, GR, "")), We;
	};
}, KR = {
	start: qR(1),
	end: qR(2),
	trim: qR(3)
}, YR = aI.PROPER, XR = KR.trim;
function ZR(x) {
	return Mp("<div>" + x + "</div>").children().filter((function(x) {
		return x.tagName !== "BR";
	})).length === 0;
}
function JR(x) {
	return x.length === 0 ? "" : x[0].outerHTML;
}
function QR(x) {
	return x.length ? x[0].tagName.toLowerCase() : "";
}
function eM(x, Be) {
	for (var We = "", St = (x.attr("style") || "").split(";"), Kn = St.length, _r = 0; _r < Kn; _r++) {
		var Li = St[_r];
		if (Li) {
			var fa = Li.split(":");
			fa[0].trim() === Be && (We = fa[1].trim());
		}
	}
	return We;
}
LI({
	target: "String",
	proto: !0,
	forced: vj((function() {
		return !!HR.trim() || YR && HR.trim.name !== "trim";
	}))
}, { trim: function() {
	return XR(this);
} }), LI({ global: !0 }, { globalThis: gj }), eh && (Mp.fn.css = eh), ah && (Mp.fn.append = ah), uh && (Mp.fn.prepend = uh), zp && (Mp.fn.addClass = zp), $p && (Mp.fn.removeClass = $p), Hp && (Mp.fn.hasClass = Hp), qp && (Mp.fn.on = qp), Kp && (Mp.fn.off = Kp), yh && (Mp.fn.focus = yh), Vp && (Mp.fn.attr = Vp), Up && (Mp.fn.removeAttr = Up), Jp && (Mp.fn.hide = Jp), Qp && (Mp.fn.show = Qp), lh && (Mp.fn.parents = lh), Wp && (Mp.fn.dataset = Wp), Gp && (Mp.fn.val = Gp), oh && (Mp.fn.text = oh), rh && (Mp.fn.html = rh), fh && (Mp.fn.children = fh), dh && (Mp.fn.remove = dh), ch && (Mp.fn.find = ch), Yp && (Mp.fn.width = Yp), Xp && (Mp.fn.height = Xp), nh && (Mp.fn.filter = nh), ph && (Mp.fn.empty = ph);
var tM = {
	selector: "p:not([data-w-e-type])",
	parseElemHtml: function(x, Be, We) {
		var St = Mp(x);
		return (Be = Be.filter((function(x) {
			return !!ed.isText(x) || !!We.isInline(x);
		}))).length === 0 && (Be = [{ text: St.text().replace(/\s+/gm, " ") }]), {
			type: "paragraph",
			children: Be
		};
	}
}, nM = function(x, Be) {
	return nM = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, Be) {
		x.__proto__ = Be;
	} || function(x, Be) {
		for (var We in Be) Object.prototype.hasOwnProperty.call(Be, We) && (x[We] = Be[We]);
	}, nM(x, Be);
};
function rM(x, Be) {
	if (typeof Be != "function" && Be !== null) throw TypeError("Class extends value " + String(Be) + " is not a constructor or null");
	function We() {
		this.constructor = x;
	}
	nM(x, Be), x.prototype = Be === null ? Object.create(Be) : (We.prototype = Be.prototype, new We());
}
var oM = function() {
	return oM = Object.assign || function(x) {
		for (var Be, We = 1, St = arguments.length; We < St; We++) for (var Kn in Be = arguments[We]) Object.prototype.hasOwnProperty.call(Be, Kn) && (x[Kn] = Be[Kn]);
		return x;
	}, oM.apply(this, arguments);
};
function iM(x, Be, We, St) {
	return new (We ||= Promise)((function(Kn, _r) {
		function Li(x) {
			try {
				Vo(St.next(x));
			} catch (x) {
				_r(x);
			}
		}
		function fa(x) {
			try {
				Vo(St.throw(x));
			} catch (x) {
				_r(x);
			}
		}
		function Vo(x) {
			var Be;
			x.done ? Kn(x.value) : (Be = x.value, Be instanceof We ? Be : new We((function(x) {
				x(Be);
			}))).then(Li, fa);
		}
		Vo((St = St.apply(x, Be || [])).next());
	}));
}
function aM(x, Be) {
	var We, St, Kn, _r, Li = {
		label: 0,
		sent: function() {
			if (1 & Kn[0]) throw Kn[1];
			return Kn[1];
		},
		trys: [],
		ops: []
	};
	return _r = {
		next: fa(0),
		throw: fa(1),
		return: fa(2)
	}, typeof Symbol == "function" && (_r[Symbol.iterator] = function() {
		return this;
	}), _r;
	function fa(_r) {
		return function(fa) {
			return function(_r) {
				if (We) throw TypeError("Generator is already executing.");
				for (; Li;) try {
					if (We = 1, St && (Kn = 2 & _r[0] ? St.return : _r[0] ? St.throw || ((Kn = St.return) && Kn.call(St), 0) : St.next) && !(Kn = Kn.call(St, _r[1])).done) return Kn;
					switch (St = 0, Kn && (_r = [2 & _r[0], Kn.value]), _r[0]) {
						case 0:
						case 1:
							Kn = _r;
							break;
						case 4: return Li.label++, {
							value: _r[1],
							done: !1
						};
						case 5:
							Li.label++, St = _r[1], _r = [0];
							continue;
						case 7:
							_r = Li.ops.pop(), Li.trys.pop();
							continue;
						default:
							if (!((Kn = (Kn = Li.trys).length > 0 && Kn[Kn.length - 1]) || _r[0] !== 6 && _r[0] !== 2)) {
								Li = 0;
								continue;
							}
							if (_r[0] === 3 && (!Kn || _r[1] > Kn[0] && _r[1] < Kn[3])) {
								Li.label = _r[1];
								break;
							}
							if (_r[0] === 6 && Li.label < Kn[1]) {
								Li.label = Kn[1], Kn = _r;
								break;
							}
							if (Kn && Li.label < Kn[2]) {
								Li.label = Kn[2], Li.ops.push(_r);
								break;
							}
							Kn[2] && Li.ops.pop(), Li.trys.pop();
							continue;
					}
					_r = Be.call(x, Li);
				} catch (x) {
					_r = [6, x], St = 0;
				} finally {
					We = Kn = 0;
				}
				if (5 & _r[0]) throw _r[1];
				return {
					value: _r[0] ? _r[1] : void 0,
					done: !0
				};
			}([_r, fa]);
		};
	}
}
function uM(x) {
	var Be = typeof Symbol == "function" && Symbol.iterator, We = Be && x[Be], St = 0;
	if (We) return We.call(x);
	if (x && typeof x.length == "number") return { next: function() {
		return x && St >= x.length && (x = void 0), {
			value: x && x[St++],
			done: !x
		};
	} };
	throw TypeError(Be ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function sM(x, Be) {
	var We = typeof Symbol == "function" && x[Symbol.iterator];
	if (!We) return x;
	var St, Kn, _r = We.call(x), Li = [];
	try {
		for (; (Be === void 0 || Be-- > 0) && !(St = _r.next()).done;) Li.push(St.value);
	} catch (x) {
		Kn = { error: x };
	} finally {
		try {
			St && !St.done && (We = _r.return) && We.call(_r);
		} finally {
			if (Kn) throw Kn.error;
		}
	}
	return Li;
}
function lM(x) {
	var Be = sM(Bf.nodes(x, {
		match: function(Be) {
			return x.children[0] === Be;
		},
		mode: "highest"
	}), 1)[0];
	if (Be == null) return !1;
	var We = Be[0];
	if (!Sf.isElement(We) || We.type === "paragraph" || Nf.string(We) !== "") return !1;
	var St = We.children, Kn = St === void 0 ? [] : St;
	return !!ed.isText(Kn[0]) && (md.setNodes(x, { type: "paragraph" }), !0);
}
var cM = {
	renderElems: [lj],
	elemsToHtml: [{
		type: "paragraph",
		elemToHtml: function(x, Be) {
			return Be === "" ? "<p><br></p>" : "<p>" + Be + "</p>";
		}
	}],
	parseElemsHtml: [tM],
	editorPlugin: function(x) {
		var Be = x.deleteBackward, We = x.deleteForward;
		x.insertText, x.insertBreak;
		var St = x;
		return St.deleteBackward = function(x) {
			lM(St) || Be(x);
		}, St.deleteForward = function(x) {
			lM(St) || We(x);
		}, St;
	}
}, fM = /"/g, dM = Bj("".replace), pM = function(x, Be, We, St) {
	var Kn = dL(Lj(x)), _r = "<" + Be;
	return We !== "" && (_r += " " + We + "=\"" + dM(dL(St), fM, "&quot;") + "\""), _r + ">" + Kn + "</" + Be + ">";
}, hM = function(x) {
	return vj((function() {
		var Be = ""[x]("\"");
		return Be !== Be.toLowerCase() || Be.split("\"").length > 3;
	}));
};
function gM(x, Be) {
	var We = Be, St = x, Kn = St.bold, _r = St.italic, Li = St.underline;
	return Kn && (We = "<strong>" + We + "</strong>"), St.code && (We = "<code>" + We + "</code>"), _r && (We = "<em>" + We + "</em>"), Li && (We = "<u>" + We + "</u>"), St.through && (We = "<s>" + We + "</s>"), St.sub && (We = "<sub>" + We + "</sub>"), St.sup && (We = "<sup>" + We + "</sup>"), We;
}
function vM(x, Be) {
	return x.length !== 0 && (!!x[0].matches(Be) || x.find(Be).length > 0);
}
LI({
	target: "String",
	proto: !0,
	forced: hM("bold")
}, { bold: function() {
	return pM(this, "b", "", "");
} }), LI({
	target: "String",
	proto: !0,
	forced: hM("italics")
}, { italics: function() {
	return pM(this, "i", "", "");
} }), LI({
	target: "String",
	proto: !0,
	forced: hM("sub")
}, { sub: function() {
	return pM(this, "sub", "", "");
} }), LI({
	target: "String",
	proto: !0,
	forced: hM("sup")
}, { sup: function() {
	return pM(this, "sup", "", "");
} });
var yM = {
	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
}, mM = kN("span").classList, bM = mM && mM.constructor && mM.constructor.prototype, wM = bM === Object.prototype ? void 0 : bM, EM = function(x, Be) {
	var We = [][x];
	return !!We && vj((function() {
		We.call(null, Be || function() {
			throw 1;
		}, 1);
	}));
}, DM = iL.forEach, SM = EM("forEach") ? [].forEach : function(x) {
	return DM(this, x, arguments.length > 1 ? arguments[1] : void 0);
}, xM = function(x) {
	if (x && x.forEach !== SM) try {
		RN(x, "forEach", SM);
	} catch {
		x.forEach = SM;
	}
};
for (var CM in yM) yM[CM] && xM(gj[CM] && gj[CM].prototype);
function AM(x, Be) {
	return x.selection == null || !!sM(Bf.nodes(x, {
		match: function(Be) {
			return QO.getNodeType(Be) === "pre" || !!Bf.isVoid(x, Be);
		},
		universal: !0
	}), 1)[0];
}
function OM(x, Be) {
	Object.keys(Be).forEach((function(Be) {
		Be !== "text" && Bf.removeMark(x, Be);
	}));
}
xM(wM), LI({
	target: "Object",
	stat: !0,
	forced: vj((function() {
		mL(1);
	}))
}, { keys: function(x) {
	return mL(fN(x));
} });
var kM = function() {
	function x() {
		this.marksNeedToRemove = [], this.tag = "button";
	}
	return x.prototype.getValue = function(x) {
		var Be = this.mark, We = Bf.marks(x);
		return We ? We[Be] : !!sM(Bf.nodes(x, { match: function(x) {
			return !0 === x[Be];
		} }), 1)[0];
	}, x.prototype.isActive = function(x) {
		return !!this.getValue(x);
	}, x.prototype.isDisabled = function(x) {
		return AM(x, this.mark);
	}, x.prototype.exec = function(x, Be) {
		var We = this.mark, St = this.marksNeedToRemove;
		Be ? x.removeMark(We) : (x.addMark(We, !0), St && St.forEach((function(Be) {
			return x.removeMark(Be);
		})));
	}, x;
}(), BM = "<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>", FM = "<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>", TM = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z\"></path></svg>", _M = "<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>", PM = "<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>", jM = "<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>", NM = "<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>", IM = "<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>", LM = "<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>", RM = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z\"></path></svg>", MM = "<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>", zM = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z\"></path></svg>", $M = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z\"></path></svg>", HM = "<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>", VM = "<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>", UM = "<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>", WM = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z\"></path></svg>", GM = "<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>", qM = "<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>", KM = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.mark = "bold", Be.title = HP("textStyle.bold"), Be.iconSvg = BM, Be.hotkey = "mod+b", Be;
	}
	return rM(Be, x), Be;
}(kM), YM = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.mark = "code", Be.title = HP("textStyle.code"), Be.iconSvg = PM, Be.hotkey = "mod+e", Be;
	}
	return rM(Be, x), Be;
}(kM), XM = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.mark = "italic", Be.title = HP("textStyle.italic"), Be.iconSvg = TM, Be.hotkey = "mod+i", Be;
	}
	return rM(Be, x), Be;
}(kM), ZM = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.mark = "through", Be.title = HP("textStyle.through"), Be.iconSvg = _M, Be.hotkey = "mod+shift+x", Be;
	}
	return rM(Be, x), Be;
}(kM), JM = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.mark = "underline", Be.title = HP("textStyle.underline"), Be.iconSvg = FM, Be.hotkey = "mod+u", Be;
	}
	return rM(Be, x), Be;
}(kM), QM = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.mark = "sub", Be.marksNeedToRemove = ["sup"], Be.title = HP("textStyle.sub"), Be.iconSvg = qM, Be.hotkey = "", Be;
	}
	return rM(Be, x), Be;
}(kM), ez = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.mark = "sup", Be.marksNeedToRemove = ["sub"], Be.title = HP("textStyle.sup"), Be.iconSvg = GM, Be.hotkey = "", Be;
	}
	return rM(Be, x), Be;
}(kM), tz = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return AM(x);
	}, x.prototype.exec = function(x, Be) {
		var We, St, Kn = Bf.nodes(x, {
			match: function(x) {
				return ed.isText(x);
			},
			universal: !0
		});
		try {
			for (var _r = uM(Kn), Li = _r.next(); !Li.done; Li = _r.next()) OM(x, Li.value[0]);
		} catch (x) {
			We = { error: x };
		} finally {
			try {
				Li && !Li.done && (St = _r.return) && St.call(_r);
			} finally {
				if (We) throw We.error;
			}
		}
	}, x;
}(), nz = {
	renderStyle: function(x, Be) {
		var We = x, St = We.bold, Kn = We.italic, _r = We.underline, Li = We.code, fa = We.through, Vo = We.sub, Xo = We.sup, Tc = Be;
		return St && (Tc = Pg("strong", null, Tc)), Li && (Tc = Pg("code", null, Tc)), Kn && (Tc = Pg("em", null, Tc)), _r && (Tc = Pg("u", null, Tc)), fa && (Tc = Pg("s", null, Tc)), Vo && (Tc = Pg("sub", null, Tc)), Xo && (Tc = Pg("sup", null, Tc)), Tc;
	},
	menus: [
		{
			key: "bold",
			factory: function() {
				return new KM();
			}
		},
		{
			key: "underline",
			factory: function() {
				return new JM();
			}
		},
		{
			key: "italic",
			factory: function() {
				return new XM();
			}
		},
		{
			key: "through",
			factory: function() {
				return new ZM();
			}
		},
		{
			key: "code",
			factory: function() {
				return new YM();
			}
		},
		{
			key: "sub",
			factory: function() {
				return new QM();
			}
		},
		{
			key: "sup",
			factory: function() {
				return new ez();
			}
		},
		{
			key: "clearStyle",
			factory: function() {
				return new tz();
			}
		}
	],
	styleToHtml: function(x, Be) {
		if (!ed.isText(x)) return Be;
		if (ZR(Be)) return gM(x, Be);
		var We = Mp(Be);
		if (QR(We) === "br") return gM(x, "<br>");
		var St = We.html();
		return St = gM(x, St), We.html(St), JR(We);
	},
	parseStyleHtml: function(x, Be, We) {
		var St = Mp(x);
		if (!ed.isText(Be)) return Be;
		var Kn = Be;
		return vM(St, "b,strong") && (Kn.bold = !0), vM(St, "i,em") && (Kn.italic = !0), vM(St, "u") && (Kn.underline = !0), vM(St, "s,strike") && (Kn.through = !0), vM(St, "sub") && (Kn.sub = !0), vM(St, "sup") && (Kn.sup = !0), vM(St, "code") && (Kn.code = !0), Kn;
	}
};
function rz(x) {
	return function(Be, We, St) {
		return Pg("h" + x, null, We);
	};
}
var oz = {
	type: "header1",
	renderElem: rz(1)
}, iz = {
	type: "header2",
	renderElem: rz(2)
}, az = {
	type: "header3",
	renderElem: rz(3)
}, uz = {
	type: "header4",
	renderElem: rz(4)
}, sz = {
	type: "header5",
	renderElem: rz(5)
}, lz = aI.PROPER, cz = RegExp.prototype, fz = cz.toString, dz = Bj(pL), pz = vj((function() {
	return fz.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), hz = lz && fz.name != "toString";
(pz || hz) && uI(RegExp.prototype, "toString", (function() {
	var x = jN(this), Be = dL(x.source), We = x.flags;
	return "/" + Be + "/" + dL(We === void 0 && Vj(cz, x) && !("flags" in cz) ? dz(x) : We);
}), { unsafe: !0 });
var gz, vz = gj.TypeError, yz = function(x) {
	if (BR(x)) throw vz("The method doesn't accept regular expressions");
	return x;
}, mz = DN("match"), bz = function(x) {
	var Be = /./;
	try {
		"/./"[x](Be);
	} catch {
		try {
			return Be[mz] = !1, "/./"[x](Be);
		} catch {}
	}
	return !1;
}, wz = TN.f, Ez = Bj("".startsWith), Dz = Bj("".slice), Sz = Math.min, xz = bz("startsWith");
function Cz(x) {
	var Be = sM(Bf.nodes(x, {
		match: function(x) {
			return QO.getNodeType(x).startsWith("header");
		},
		universal: !0
	}), 1)[0];
	if (Be == null) return "paragraph";
	var We = sM(Be, 1)[0];
	return QO.getNodeType(We);
}
function Az(x) {
	return x.selection == null || !sM(Bf.nodes(x, {
		match: function(x) {
			var Be = QO.getNodeType(x);
			return Be === "paragraph" || !!Be.startsWith("header");
		},
		universal: !0,
		mode: "highest"
	}), 1)[0];
}
function Oz(x, Be) {
	Be && md.setNodes(x, { type: Be });
}
LI({
	target: "String",
	proto: !0,
	forced: !(!xz && (gz = wz(String.prototype, "startsWith"), gz && !gz.writable) || xz)
}, { startsWith: function(x) {
	var Be = dL(Lj(this));
	yz(x);
	var We = gI(Sz(arguments.length > 1 ? arguments[1] : void 0, Be.length)), St = dL(x);
	return Ez ? Ez(Be, St, We) : Dz(Be, We, We + St.length) === St;
} });
var kz = function() {
	function x() {
		this.title = HP("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 x.prototype.getOptions = function(x) {
		var Be = [
			{
				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: HP("header.text")
			}
		], We = this.getValue(x).toString();
		return Be.forEach((function(x) {
			x.value === We ? x.selected = !0 : delete x.selected;
		})), Be;
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.getValue = function(x) {
		return Cz(x);
	}, x.prototype.isDisabled = function(x) {
		return Az(x);
	}, x.prototype.exec = function(x, Be) {
		Oz(x, Be.toString());
	}, x;
}(), Bz = function() {
	function x() {
		this.tag = "button";
	}
	return x.prototype.getValue = function(x) {
		return Cz(x);
	}, x.prototype.isActive = function(x) {
		return this.getValue(x) === this.type;
	}, x.prototype.isDisabled = function(x) {
		return Az(x);
	}, x.prototype.exec = function(x, Be) {
		var We = this.type;
		Oz(x, Be === We ? "paragraph" : We);
	}, x;
}(), Fz = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "H1", Be.type = "header1", Be;
	}
	return rM(Be, x), Be;
}(Bz), Tz = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "H2", Be.type = "header2", Be;
	}
	return rM(Be, x), Be;
}(Bz), _z = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "H3", Be.type = "header3", Be;
	}
	return rM(Be, x), Be;
}(Bz), Pz = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "H4", Be.type = "header4", Be;
	}
	return rM(Be, x), Be;
}(Bz), jz = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "H5", Be.type = "header5", Be;
	}
	return rM(Be, x), Be;
}(Bz), Nz = {
	key: "headerSelect",
	factory: function() {
		return new kz();
	}
}, Iz = {
	key: "header1",
	factory: function() {
		return new Fz();
	}
}, Lz = {
	key: "header2",
	factory: function() {
		return new Tz();
	}
}, Rz = {
	key: "header3",
	factory: function() {
		return new _z();
	}
}, Mz = {
	key: "header4",
	factory: function() {
		return new Pz();
	}
}, zz = {
	key: "header5",
	factory: function() {
		return new jz();
	}
};
function $z(x) {
	return function(Be, We) {
		return "<h" + x + ">" + We + "</h" + x + ">";
	};
}
function Hz(x) {
	return function(Be, We, St) {
		var Kn = Mp(Be);
		return (We = We.filter((function(x) {
			return !!ed.isText(x) || !!St.isInline(x);
		}))).length === 0 && (We = [{ text: Kn.text().replace(/\s+/gm, " ") }]), {
			type: "header" + x,
			children: We
		};
	};
}
var Vz = {
	renderElems: [
		oz,
		iz,
		az,
		uz,
		sz
	],
	elemsToHtml: [
		{
			type: "header1",
			elemToHtml: $z(1)
		},
		{
			type: "header2",
			elemToHtml: $z(2)
		},
		{
			type: "header3",
			elemToHtml: $z(3)
		},
		{
			type: "header4",
			elemToHtml: $z(4)
		},
		{
			type: "header5",
			elemToHtml: $z(5)
		}
	],
	parseElemsHtml: [
		{
			selector: "h1:not([data-w-e-type])",
			parseElemHtml: Hz(1)
		},
		{
			selector: "h2:not([data-w-e-type])",
			parseElemHtml: Hz(2)
		},
		{
			selector: "h3:not([data-w-e-type])",
			parseElemHtml: Hz(3)
		},
		{
			selector: "h4:not([data-w-e-type])",
			parseElemHtml: Hz(4)
		},
		{
			selector: "h5:not([data-w-e-type])",
			parseElemHtml: Hz(5)
		}
	],
	menus: [
		Nz,
		Iz,
		Lz,
		Rz,
		Mz,
		zz
	],
	editorPlugin: function(x) {
		var Be = x.insertBreak;
		x.insertNode;
		var We = x;
		return We.insertBreak = function() {
			var St = sM(Bf.nodes(We, {
				match: function(x) {
					return QO.getNodeType(x).startsWith("header");
				},
				universal: !0
			}), 1)[0];
			St && QO.isSelectionAtLineEnd(x, St[1]) ? md.insertNodes(We, {
				type: "paragraph",
				children: [{ text: "" }]
			}, { mode: "highest" }) : Be();
		}, We;
	}
}, Uz = Object.assign, Wz = Object.defineProperty, Gz = Bj([].concat), qz = !Uz || vj((function() {
	if (yj && Uz({ b: 1 }, Uz(Wz({}, "a", {
		enumerable: !0,
		get: function() {
			Wz(this, "b", {
				value: 3,
				enumerable: !1
			});
		}
	}), { b: 2 })).b !== 1) return !0;
	var x = {}, Be = {}, We = Symbol(), St = "abcdefghijklmnopqrst";
	return x[We] = 7, St.split("").forEach((function(x) {
		Be[x] = x;
	})), Uz({}, x)[We] != 7 || mL(Uz({}, Be)).join("") != St;
})) ? function(x, Be) {
	for (var We = fN(x), St = arguments.length, Kn = 1, _r = CI.f, Li = Sj.f; St > Kn;) for (var fa, Vo = Nj(arguments[Kn++]), Xo = _r ? Gz(mL(Vo), _r(Vo)) : mL(Vo), Tc = Xo.length, Tl = 0; Tc > Tl;) fa = Xo[Tl++], yj && !bj(Li, Vo, fa) || (We[fa] = Vo[fa]);
	return We;
} : Uz;
function Kz(x, Be) {
	x.data ??= {};
	var We = x.data;
	We.style ??= {}, Object.assign(We.style, Be);
}
LI({
	target: "Object",
	stat: !0,
	forced: Object.assign !== qz
}, { assign: qz });
var Yz = {
	selector: "font",
	preParseHtml: function(x) {
		var Be = Mp(x);
		if (QR(Be) !== "font") return x;
		var We = Be.attr("color") || "";
		return We && (Be.removeAttr("color"), Be.css("color", We)), Be[0];
	}
}, Xz = function() {
	function x() {
		this.tag = "button", this.showDropPanel = !0, this.$content = null;
	}
	return x.prototype.exec = function(x, Be) {}, x.prototype.getValue = function(x) {
		var Be = this.mark, We = Bf.marks(x);
		return We && We[Be] ? We[Be] : "";
	}, x.prototype.isActive = function(x) {
		return !!this.getValue(x);
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !!sM(Bf.nodes(x, {
			match: function(Be) {
				return QO.getNodeType(Be) === "pre" || !!Bf.isVoid(x, Be);
			},
			universal: !0
		}), 1)[0];
	}, x.prototype.getPanelContentElem = function(x) {
		var Be = this.mark;
		if (this.$content == null) {
			var We = Mp("<ul class=\"w-e-panel-content-color\"></ul>");
			We.on("click", "li", (function(We) {
				var St = We.target;
				if (St != null && (We.preventDefault(), x.selection != null)) {
					var Kn = Mp(St).attr("data-value");
					Kn === "0" ? Bf.removeMark(x, Be) : Bf.addMark(x, Be, Kn);
				}
			})), this.$content = We;
		}
		var St = this.$content;
		if (St == null) return document.createElement("ul");
		St.empty();
		var Kn = this.getValue(x), _r = x.getMenuConfig(Be).colors;
		(_r === void 0 ? [] : _r).forEach((function(x) {
			var Be = Mp("<div class=\"color-block\" data-value=\"" + x + "\"></div>");
			Be.css("background-color", x);
			var We = Mp("<li data-value=\"" + x + "\"></li>");
			Kn === x && We.addClass("active"), We.append(Be), St.append(We);
		}));
		var Li = "";
		Be === "color" && (Li = HP("color.default")), Be === "bgColor" && (Li = HP("color.clear"));
		var fa = Mp("\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        " + Li + "\n      </li>\n    ");
		return St.prepend(fa), St[0];
	}, x;
}(), Zz = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("color.color"), Be.iconSvg = IM, Be.mark = "color", Be;
	}
	return rM(Be, x), Be;
}(Xz), Jz = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("color.bgColor"), Be.iconSvg = LM, Be.mark = "bgColor", Be;
	}
	return rM(Be, x), Be;
}(Xz), Qz = /* @__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("."), e$ = {
	renderStyle: function(x, Be) {
		var We = x, St = We.color, Kn = We.bgColor, _r = Be;
		return St && Kz(_r, { color: St }), Kn && Kz(_r, { backgroundColor: Kn }), _r;
	},
	styleToHtml: function(x, Be) {
		if (!ed.isText(x)) return Be;
		var We, St = x, Kn = St.color, _r = St.bgColor;
		return Kn || _r ? ((ZR(Be) || QR(We = Mp(Be)) !== "span") && (We = Mp("<span>" + Be + "</span>")), Kn && We.css("color", Kn), _r && We.css("background-color", _r), JR(We)) : Be;
	},
	preParseHtml: [Yz],
	parseStyleHtml: function(x, Be, We) {
		var St = Mp(x);
		if (!ed.isText(Be)) return Be;
		var Kn = Be, _r = eM(St, "color");
		_r && (Kn.color = _r);
		var Li = eM(St, "background-color");
		return Li ||= eM(St, "background"), Li && (Kn.bgColor = Li), Kn;
	},
	menus: [{
		key: "color",
		factory: function() {
			return new Zz();
		},
		config: { colors: Qz }
	}, {
		key: "bgColor",
		factory: function() {
			return new Jz();
		},
		config: { colors: Qz }
	}]
}, t$ = /^(?:\w+:)?\/\/(\S+)$/, n$ = /^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/, r$ = /^[^\s\.]+\.\S{2,}$/, o$ = mI.includes;
function i$(x) {
	return x === void 0 && (x = "r"), x + "-" + Rh();
}
function a$(x) {
	return x.replace(/</g, "&lt;").replace(/>/g, "&gt;");
}
function u$(x, Be, We, St) {
	return iM(this, void 0, void 0, (function() {
		var Kn, _r;
		return aM(this, (function(Li) {
			switch (Li.label) {
				case 0: return (Kn = Be.getMenuConfig(x).checkLink) ? [4, Kn(We, St)] : [3, 2];
				case 1:
					if (typeof (_r = Li.sent()) == "string") return Be.alert(_r, "error"), [2, !1];
					if (_r == null) return [2, !1];
					Li.label = 2;
				case 2: return [2, !0];
			}
		}));
	}));
}
function s$(x, Be, We) {
	return iM(this, void 0, void 0, (function() {
		var St;
		return aM(this, (function(Kn) {
			switch (Kn.label) {
				case 0: return (St = Be.getMenuConfig(x).parseLinkUrl) ? [4, St(We)] : [3, 2];
				case 1: return [2, Kn.sent()];
				case 2: return [2, We];
			}
		}));
	}));
}
function l$(x) {
	return x.selection == null || !!QO.getSelectedElems(x).some((function(Be) {
		var We = Be.type;
		return !!x.isVoid(Be) || !![
			"pre",
			"code",
			"link"
		].includes(We) || void 0;
	}));
}
function c$(x, Be) {
	return {
		type: "link",
		url: a$(x),
		children: Be ? [{ text: Be }] : []
	};
}
function f$(x, Be, We) {
	return iM(this, void 0, void 0, (function() {
		var St, Kn, _r;
		return aM(this, (function(Li) {
			switch (Li.label) {
				case 0: return We ? (Be ||= We, x.restoreSelection(), l$(x) ? [2] : [4, u$("insertLink", x, Be, We)]) : [2];
				case 1: return Li.sent() ? [4, s$("insertLink", x, We)] : [2];
				case 2: return St = Li.sent(), (Kn = x.selection) == null || (qf.isCollapsed(Kn) ? (x.insertText(" "), _r = c$(St, Be), md.insertNodes(x, _r), x.insertFragment([{ text: " " }])) : Bf.string(x, Kn) === Be ? (_r = c$(St), md.wrapNodes(x, _r, { split: !0 }), md.collapse(x, { edge: "end" })) : (x.deleteFragment(), _r = c$(St, Be), md.insertNodes(x, _r))), [2];
			}
		}));
	}));
}
LI({
	target: "Array",
	proto: !0
}, { includes: function(x) {
	return o$(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), CR("includes");
var d$ = {
	type: "link",
	renderElem: function(x, Be, We) {
		var St = x, Kn = St.url, _r = St.target;
		return Pg("a", {
			href: Kn,
			target: _r === void 0 ? "_blank" : _r
		}, Be);
	}
}, p$ = {
	selector: "a:not([data-w-e-type])",
	parseElemHtml: function(x, Be, We) {
		var St = Mp(x);
		return (Be = Be.filter((function(x) {
			return !!ed.isText(x) || !!We.isInline(x);
		}))).length === 0 && (Be = [{ text: St.text().replace(/\s+/gm, " ") }]), {
			type: "link",
			url: St.attr("href") || "",
			target: St.attr("target") || "",
			children: Be
		};
	}
};
function h$() {
	return i$("w-e-insert-link");
}
var g$ = function() {
	function x() {
		this.title = HP("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 = h$(), this.urlInputId = h$(), this.buttonId = h$();
	}
	return x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {}, x.prototype.isDisabled = function(x) {
		return l$(x);
	}, x.prototype.getModalPositionNode = function(x) {
		return null;
	}, x.prototype.getModalContentElem = function(x) {
		var Be = x.selection, We = this, St = We.textInputId, Kn = We.urlInputId, _r = We.buttonId, Li = sM(S_(HP("link.text"), St), 2), fa = Li[0], Vo = Mp(Li[1]), Xo = sM(S_(HP("link.url"), Kn), 2), Tc = Xo[0], Tl = Mp(Xo[1]), Al = sM(C_(_r, HP("common.ok")), 1)[0];
		if (this.$content == null) {
			var Uu = Mp("<div></div>");
			Uu.on("click", "#" + _r, (function(Be) {
				Be.preventDefault(), f$(x, Uu.find("#" + St).val(), Uu.find("#" + Kn).val()), x.hidePanelOrModal();
			})), this.$content = Uu;
		}
		var Ff = this.$content;
		if (Ff.empty(), Ff.append(fa), Ff.append(Tc), Ff.append(Al), Be == null || qf.isCollapsed(Be)) Vo.val("");
		else {
			var Lm = Bf.string(x, Be);
			Vo.val(Lm);
		}
		return Tl.val(""), setTimeout((function() {
			Vo.focus();
		})), Ff[0];
	}, x;
}();
function v$() {
	return i$("w-e-update-link");
}
var y$ = function() {
	function x() {
		this.title = HP("link.edit"), this.iconSvg = jM, this.tag = "button", this.showModal = !0, this.modalWidth = 300, this.$content = null, this.urlInputId = v$(), this.buttonId = v$();
	}
	return x.prototype.getSelectedLinkElem = function(x) {
		return QO.getSelectedNodeByType(x, "link") ?? null;
	}, x.prototype.getValue = function(x) {
		var Be = this.getSelectedLinkElem(x);
		return Be && Be.url || "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {}, x.prototype.isDisabled = function(x) {
		return x.selection == null || this.getSelectedLinkElem(x) == null;
	}, x.prototype.getModalPositionNode = function(x) {
		return QO.getSelectedNodeByType(x, "link");
	}, x.prototype.getModalContentElem = function(x) {
		var Be = this.urlInputId, We = this.buttonId, St = sM(S_(HP("link.url"), Be), 2), Kn = St[0], _r = Mp(St[1]), Li = sM(C_(We, HP("common.ok")), 1)[0];
		if (this.$content == null) {
			var fa = Mp("<div></div>");
			fa.on("click", "button", (function(We) {
				We.preventDefault(), x.restoreSelection();
				var St = QO.getSelectedNodeByType(x, "link");
				(function(x, Be, We) {
					iM(this, void 0, void 0, (function() {
						var St, Kn;
						return aM(this, (function(_r) {
							switch (_r.label) {
								case 0: return We ? [4, u$("editLink", x, Be, We)] : [2];
								case 1: return _r.sent() ? [4, s$("editLink", x, We)] : [2];
								case 2: return St = _r.sent(), Kn = { url: a$(St) }, md.setNodes(x, Kn, { match: function(x) {
									return QO.checkNodeType(x, "link");
								} }), [2];
							}
						}));
					}));
				})(x, St ? Nf.string(St) : "", fa.find("#" + Be).val()), x.hidePanelOrModal();
			})), this.$content = fa;
		}
		var Vo = this.$content;
		Vo.empty(), Vo.append(Kn), Vo.append(Li);
		var Xo = this.getValue(x);
		return _r.val(Xo), setTimeout((function() {
			_r.focus();
		})), Vo[0];
	}, x;
}(), m$ = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || QO.getSelectedNodeByType(x, "link") == null;
	}, x.prototype.exec = function(x, Be) {
		this.isDisabled(x) || md.unwrapNodes(x, { match: function(x) {
			return QO.checkNodeType(x, "link");
		} });
	}, x;
}(), b$ = function() {
	function x() {
		this.title = HP("link.view"), this.iconSvg = NM, this.tag = "button";
	}
	return x.prototype.getSelectedLinkElem = function(x) {
		return QO.getSelectedNodeByType(x, "link") ?? null;
	}, x.prototype.getValue = function(x) {
		var Be = this.getSelectedLinkElem(x);
		return Be && Be.url || "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || this.getSelectedLinkElem(x) == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			if (!Be || typeof Be != "string") throw Error("View link failed, link url is '" + Be + "'");
			window.open(Be, "_blank");
		}
	}, x;
}(), w$ = {
	checkLink: function(x, Be) {
		return !0;
	},
	parseLinkUrl: function(x) {
		return x;
	}
}, E$ = {
	renderElems: [d$],
	elemsToHtml: [{
		type: "link",
		elemToHtml: function(x, Be) {
			var We = x, St = We.url, Kn = We.target;
			return "<a href=\"" + St + "\" target=\"" + (Kn === void 0 ? "_blank" : Kn) + "\">" + Be + "</a>";
		}
	}],
	parseElemsHtml: [p$],
	menus: [
		{
			key: "insertLink",
			factory: function() {
				return new g$();
			},
			config: w$
		},
		{
			key: "editLink",
			factory: function() {
				return new y$();
			},
			config: w$
		},
		{
			key: "unLink",
			factory: function() {
				return new m$();
			}
		},
		{
			key: "viewLink",
			factory: function() {
				return new b$();
			}
		}
	],
	editorPlugin: function(x) {
		var Be = x.isInline, We = x.insertData, St = x.normalizeNode;
		x.insertNode, x.insertText;
		var Kn = x;
		return Kn.isInline = function(x) {
			return x.type === "link" || Be(x);
		}, Kn.insertData = function(x) {
			var Be = x.getData("text/plain");
			if (function(x) {
				if (typeof x != "string") return !1;
				var Be = x.match(t$);
				if (!Be) return !1;
				var We = Be[1];
				return !(!We || !n$.test(We) && !r$.test(We));
			}(Be)) {
				if (!l$(Kn)) {
					var St = Kn.selection;
					St != null && f$(Kn, Bf.string(Kn, St), Be);
				}
			} else We(x);
		}, Kn.normalizeNode = function(x) {
			var Be = sM(x, 2), We = Be[0], _r = Be[1];
			return QO.getNodeType(We) === "link" && Nf.string(We) === "" ? md.removeNodes(Kn, { at: _r }) : St([We, _r]);
		}, Kn;
	}
}, D$ = Bj(1 .valueOf), S$ = gj.RangeError, x$ = gj.RangeError, C$ = gj.String, A$ = Math.floor, O$ = Bj((function(x) {
	var Be = dL(Lj(this)), We = "", St = cI(x);
	if (St < 0 || St == Infinity) throw S$("Wrong number of repetitions");
	for (; St > 0; (St >>>= 1) && (Be += Be)) 1 & St && (We += Be);
	return We;
})), k$ = Bj("".slice), B$ = Bj(1 .toFixed), F$ = function(x, Be, We) {
	return Be === 0 ? We : Be % 2 == 1 ? F$(x, Be - 1, We * x) : F$(x * x, Be / 2, We);
}, T$ = function(x, Be, We) {
	for (var St = -1, Kn = We; ++St < 6;) Kn += Be * x[St], x[St] = Kn % 1e7, Kn = A$(Kn / 1e7);
}, _$ = function(x, Be) {
	for (var We = 6, St = 0; --We >= 0;) St += x[We], x[We] = A$(St / Be), St = St % Be * 1e7;
}, P$ = function(x) {
	for (var Be = 6, We = ""; --Be >= 0;) if (We !== "" || Be === 0 || x[Be] !== 0) {
		var St = C$(x[Be]);
		We = We === "" ? St : We + O$("0", 7 - St.length) + St;
	}
	return We;
};
function j$(x, Be) {
	return "w-e-image-container-" + QO.findKey(x, Be).id;
}
LI({
	target: "Number",
	proto: !0,
	forced: vj((function() {
		return B$(8e-5, 3) !== "0.000" || B$(.9, 0) !== "1" || B$(1.255, 2) !== "1.25" || B$(0xde0b6b3a7640080, 0) !== "1000000000000000128";
	})) || !vj((function() {
		B$({});
	}))
}, { toFixed: function(x) {
	var Be, We, St, Kn, _r = D$(this), Li = cI(x), fa = [
		0,
		0,
		0,
		0,
		0,
		0
	], Vo = "", Xo = "0";
	if (Li < 0 || Li > 20) throw x$("Incorrect fraction digits");
	if (_r != _r) return "NaN";
	if (_r <= -1e21 || _r >= 1e21) return C$(_r);
	if (_r < 0 && (Vo = "-", _r = -_r), _r > 1e-21) if (We = (Be = function(x) {
		for (var Be = 0, We = x; We >= 4096;) Be += 12, We /= 4096;
		for (; We >= 2;) Be += 1, We /= 2;
		return Be;
	}(_r * F$(2, 69, 1)) - 69) < 0 ? _r * F$(2, -Be, 1) : _r / F$(2, Be, 1), We *= 4503599627370496, (Be = 52 - Be) > 0) {
		for (T$(fa, 0, We), St = Li; St >= 7;) T$(fa, 1e7, 0), St -= 7;
		for (T$(fa, F$(10, St, 1), 0), St = Be - 1; St >= 23;) _$(fa, 1 << 23), St -= 23;
		_$(fa, 1 << St), T$(fa, 1, 1), _$(fa, 2), Xo = P$(fa);
	} else T$(fa, 0, We), T$(fa, 1 << -Be, 0), Xo = P$(fa) + O$("0", Li);
	return Li > 0 ? Vo + ((Kn = Xo.length) <= Li ? "0." + O$("0", Li - Kn) + Xo : k$(Xo, 0, Kn - Li) + "." + k$(Xo, Kn - Li)) : Vo + Xo;
} });
var N$ = {
	type: "image",
	renderElem: function(x, Be, We) {
		var St = x, Kn = St.src, _r = St.alt, Li = _r === void 0 ? "" : _r, fa = St.href, Vo = fa === void 0 ? "" : fa, Xo = St.style, Tc = Xo === void 0 ? {} : Xo, Tl = Tc.width, Al = Tl === void 0 ? "" : Tl, Uu = Tc.height, Ff = Uu === void 0 ? "" : Uu, Lm = QO.isNodeSelected(We, x), Bm = {};
		Al && (Bm.width = "100%"), Ff && (Bm.height = "100%");
		var x_ = Pg("img", {
			style: Bm,
			src: Kn,
			alt: Li,
			"data-href": Vo
		}), uy = We.isDisabled();
		return Lm && !uy ? function(x, Be, We, St) {
			var Kn = Mp("body"), _r = j$(x, Be), Li = St.width, fa = St.height, Vo = 0, Xo = 0, Tc = 0, Tl = !1, Al = null;
			function Uu(Be) {
				Al = function() {
					var x = Mp("#" + _r);
					if (x.length === 0) throw Error("Cannot find image container elem");
					return x;
				}(), Vo = Be;
				var We = Al.find("img");
				if (We.length === 0) throw Error("Cannot find image elem");
				Xo = We.width(), Tc = We.height(), Kn.on("mousemove", Ff), Kn.on("mouseup", Lm);
				var St = QO.getHoverbar(x);
				St && St.hideAndClean();
			}
			var Ff = eg((function(x) {
				x.preventDefault();
				var Be = x.clientX, We = Xo + (Tl ? Vo - Be : Be - Vo), St = We / Xo * Tc;
				Al != null && (We <= 15 || St <= 15 || (Al.css("width", We + "px"), Al.css("height", St + "px")));
			}), 100);
			function Lm(We) {
				if (Kn.off("mousemove", Ff), Al != null) {
					var St = Al.width().toFixed(2), _r = Al.height().toFixed(2), Li = { style: oM(oM({}, Be.style), {
						width: St + "px",
						height: _r + "px"
					}) };
					md.setNodes(x, Li, { at: QO.findPath(x, Be) }), Kn.off("mouseup", Lm);
				}
			}
			var Bm = {};
			return Li && (Bm.width = Li), fa && (Bm.height = fa), Pg("div", {
				id: _r,
				style: Bm,
				className: "w-e-image-container w-e-selected-image-container",
				on: { mousedown: function(x) {
					var Be = Mp(x.target);
					Be.hasClass("w-e-image-dragger") && (x.preventDefault(), (Be.hasClass("left-top") || Be.hasClass("left-bottom")) && (Tl = !0), Uu(x.clientX));
				} }
			}, We, Pg("div", { className: "w-e-image-dragger left-top" }), Pg("div", { className: "w-e-image-dragger right-top" }), Pg("div", { className: "w-e-image-dragger left-bottom" }), Pg("div", { className: "w-e-image-dragger right-bottom" }));
		}(We, x, x_, {
			width: Al,
			height: Ff
		}) : function(x, Be, We, St) {
			var Kn = St.width, _r = St.height, Li = {};
			return Kn && (Li.width = Kn), _r && (Li.height = _r), Pg("div", {
				id: j$(x, Be),
				style: Li,
				className: "w-e-image-container"
			}, We);
		}(We, x, x_, {
			width: Al,
			height: Ff
		});
	}
}, I$ = {
	selector: "img:not([data-w-e-type])",
	parseElemHtml: function(x, Be, We) {
		var St = Mp(x), Kn = St.attr("data-href") || "";
		return Kn = decodeURIComponent(Kn), {
			type: "image",
			src: St.attr("src") || "",
			alt: St.attr("alt") || "",
			href: Kn,
			style: {
				width: eM(St, "width"),
				height: eM(St, "height")
			},
			children: [{ text: "" }]
		};
	}
};
function L$(x, Be, We, St, Kn) {
	return St === void 0 && (St = ""), Kn === void 0 && (Kn = ""), iM(this, void 0, void 0, (function() {
		var _r, Li;
		return aM(this, (function(fa) {
			switch (fa.label) {
				case 0: return (_r = Be.getMenuConfig(x).checkImage) ? [4, _r(We, St, Kn)] : [3, 2];
				case 1:
					if (typeof (Li = fa.sent()) == "string") return Be.alert(Li, "error"), [2, !1];
					if (Li == null) return [2, !1];
					fa.label = 2;
				case 2: return [2, !0];
			}
		}));
	}));
}
function R$(x, Be, We) {
	return iM(this, void 0, void 0, (function() {
		var St;
		return aM(this, (function(Kn) {
			switch (Kn.label) {
				case 0: return (St = Be.getMenuConfig(x).parseImageSrc) ? [4, St(We)] : [3, 2];
				case 1: return [2, Kn.sent()];
				case 2: return [2, We];
			}
		}));
	}));
}
function M$(x, Be, We, St) {
	return We === void 0 && (We = ""), St === void 0 && (St = ""), iM(this, void 0, void 0, (function() {
		var Kn, _r, Li;
		return aM(this, (function(fa) {
			switch (fa.label) {
				case 0: return [4, L$("insertImage", x, Be, We, St)];
				case 1: return fa.sent() ? [4, R$("insertImage", x, Be)] : [2];
				case 2: return Kn = fa.sent(), _r = {
					type: "image",
					src: a$(Kn),
					href: St,
					alt: We,
					style: {},
					children: [{ text: "" }]
				}, x.selection === null && x.restoreSelection(), QO.getSelectedNodeByType(x, "image") && x.move(1), z$(x) || (md.insertNodes(x, _r), (Li = x.getMenuConfig("insertImage").onInsertedImage) && Li(_r)), [2];
			}
		}));
	}));
}
function z$(x) {
	var Be = x.selection;
	return Be == null || !qf.isCollapsed(Be) || !!sM(Bf.nodes(x, {
		match: function(Be) {
			var We = QO.getNodeType(Be);
			return We === "code" || We === "pre" || We === "link" || We === "list-item" || !!We.startsWith("header") || We === "blockquote" || !!Bf.isVoid(x, Be);
		},
		universal: !0
	}), 1)[0];
}
function $$() {
	return i$("w-e-insert-image");
}
var H$ = function() {
	function x() {
		this.title = HP("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 = $$(), this.altInputId = $$(), this.hrefInputId = $$(), this.buttonId = $$();
	}
	return x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {}, x.prototype.isDisabled = function(x) {
		return z$(x);
	}, x.prototype.getModalPositionNode = function(x) {
		return null;
	}, x.prototype.getModalContentElem = function(x) {
		var Be = this, We = this, St = We.srcInputId, Kn = We.altInputId, _r = We.hrefInputId, Li = We.buttonId, fa = sM(S_(HP("image.src"), St), 2), Vo = fa[0], Xo = Mp(fa[1]), Tc = sM(S_(HP("image.desc"), Kn), 2), Tl = Tc[0], Al = Mp(Tc[1]), Uu = sM(S_(HP("image.link"), _r), 2), Ff = Uu[0], Lm = Mp(Uu[1]), Bm = sM(C_(Li, HP("common.ok")), 1)[0];
		if (this.$content == null) {
			var x_ = Mp("<div></div>");
			x_.on("click", "#" + Li, (function(We) {
				We.preventDefault();
				var Li = x_.find("#" + St).val().trim(), fa = x_.find("#" + Kn).val().trim(), Vo = x_.find("#" + _r).val().trim();
				Be.insertImage(x, Li, fa, Vo), x.hidePanelOrModal();
			})), this.$content = x_;
		}
		var uy = this.$content;
		return uy.empty(), uy.append(Vo), uy.append(Tl), uy.append(Ff), uy.append(Bm), Xo.val(""), Al.val(""), Lm.val(""), setTimeout((function() {
			Xo.focus();
		})), uy[0];
	}, x.prototype.insertImage = function(x, Be, We, St) {
		We === void 0 && (We = ""), St === void 0 && (St = ""), Be && (x.restoreSelection(), this.isDisabled(x) || M$(x, Be, We, St));
	}, x;
}(), V$ = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || QO.getSelectedNodeByType(x, "image") == null;
	}, x.prototype.exec = function(x, Be) {
		this.isDisabled(x) || md.removeNodes(x, { match: function(x) {
			return QO.checkNodeType(x, "image");
		} });
	}, x;
}();
function U$() {
	return i$("w-e-edit-image");
}
var W$ = function() {
	function x() {
		this.title = HP("image.edit"), this.iconSvg = jM, this.tag = "button", this.showModal = !0, this.modalWidth = 300, this.$content = null, this.srcInputId = U$(), this.altInputId = U$(), this.hrefInputId = U$(), this.buttonId = U$();
	}
	return x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.getImageNode = function(x) {
		return QO.getSelectedNodeByType(x, "image");
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || QO.getSelectedNodeByType(x, "image") == null;
	}, x.prototype.getModalPositionNode = function(x) {
		return this.getImageNode(x);
	}, x.prototype.getModalContentElem = function(x) {
		var Be = this, We = this, St = We.srcInputId, Kn = We.altInputId, _r = We.hrefInputId, Li = We.buttonId, fa = this.getImageNode(x);
		if (fa == null) throw Error("Not found selected image node");
		var Vo = sM(S_(HP("image.src"), St), 2), Xo = Vo[0], Tc = Mp(Vo[1]), Tl = sM(S_(HP("image.desc"), Kn), 2), Al = Tl[0], Uu = Mp(Tl[1]), Ff = sM(S_(HP("image.link"), _r), 2), Lm = Ff[0], Bm = Mp(Ff[1]), x_ = sM(C_(Li, HP("common.ok")), 1)[0];
		if (this.$content == null) {
			var uy = Mp("<div></div>");
			uy.on("click", "#" + Li, (function(We) {
				We.preventDefault();
				var Li = uy.find("#" + St).val(), fa = uy.find("#" + Kn).val(), Vo = uy.find("#" + _r).val();
				Be.updateImage(x, Li, fa, Vo), x.hidePanelOrModal();
			})), this.$content = uy;
		}
		var dx = this.$content;
		dx.empty(), dx.append(Xo), dx.append(Al), dx.append(Lm), dx.append(x_);
		var kx = fa, eC = kx.src, uC = kx.alt, _T = uC === void 0 ? "" : uC, ID = kx.href, ok = ID === void 0 ? "" : ID;
		return Tc.val(eC), Uu.val(_T), Bm.val(ok), setTimeout((function() {
			Tc.focus();
		})), dx[0];
	}, x.prototype.updateImage = function(x, Be, We, St, Kn) {
		We === void 0 && (We = ""), St === void 0 && (St = ""), Kn === void 0 && (Kn = {}), Be && (x.restoreSelection(), this.isDisabled(x) || function(x, Be, We, St, Kn) {
			We === void 0 && (We = ""), St === void 0 && (St = ""), Kn === void 0 && (Kn = {}), iM(this, void 0, void 0, (function() {
				var _r, Li, fa, Vo, Xo, Tc;
				return aM(this, (function(Tl) {
					switch (Tl.label) {
						case 0: return [4, L$("editImage", x, Be, We, St)];
						case 1: return Tl.sent() ? [4, R$("editImage", x, Be)] : [2];
						case 2: return _r = Tl.sent(), (Li = QO.getSelectedNodeByType(x, "image")) == null || (fa = Li.style, Vo = {
							src: _r,
							alt: We,
							href: St,
							style: oM(oM({}, fa === void 0 ? {} : fa), Kn)
						}, md.setNodes(x, Vo, { match: function(x) {
							return QO.checkNodeType(x, "image");
						} }), Xo = QO.getSelectedNodeByType(x, "image"), (Tc = x.getMenuConfig("editImage").onUpdatedImage) && Tc(Xo)), [2];
					}
				}));
			}));
		}(x, Be, We, St, Kn));
	}, x;
}(), G$ = function() {
	function x() {
		this.title = HP("image.viewLink"), this.iconSvg = NM, this.tag = "button";
	}
	return x.prototype.getValue = function(x) {
		var Be = QO.getSelectedNodeByType(x, "image");
		return Be && Be.href || "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !this.getValue(x);
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			if (!Be || typeof Be != "string") throw Error("View image link failed, image.href is '" + Be + "'");
			window.open(Be, "_blank");
		}
	}, x;
}(), q$ = function() {
	function x() {
		this.tag = "button";
	}
	return x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.getSelectedNode = function(x) {
		return QO.getSelectedNodeByType(x, "image");
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || this.getSelectedNode(x) == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = this.getSelectedNode(x);
			if (We != null) {
				var St = QO.getHoverbar(x);
				St && St.hideAndClean();
				var Kn = We.style, _r = { style: oM(oM({}, Kn === void 0 ? {} : Kn), {
					width: this.value,
					height: ""
				}) };
				md.setNodes(x, _r, { match: function(x) {
					return QO.checkNodeType(x, "image");
				} });
			}
		}
	}, x;
}(), K$ = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "30%", Be.value = "30%", Be;
	}
	return rM(Be, x), Be;
}(q$), Y$ = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "50%", Be.value = "50%", Be;
	}
	return rM(Be, x), Be;
}(q$), X$ = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = "100%", Be.value = "100%", Be;
	}
	return rM(Be, x), Be;
}(q$), Z$ = {
	onInsertedImage: function(x) {},
	onUpdatedImage: function(x) {},
	checkImage: function(x, Be, We) {
		return !0;
	},
	parseImageSrc: function(x) {
		return x;
	}
}, J$ = {
	renderElems: [N$],
	elemsToHtml: [{
		type: "image",
		elemToHtml: function(x, Be) {
			var We = x, St = We.src, Kn = We.alt, _r = Kn === void 0 ? "" : Kn, Li = We.href, fa = Li === void 0 ? "" : Li, Vo = We.style, Xo = Vo === void 0 ? {} : Vo, Tc = Xo.width, Tl = Tc === void 0 ? "" : Tc, Al = Xo.height, Uu = Al === void 0 ? "" : Al, Ff = "";
			return Tl && (Ff += "width: " + Tl + ";"), Uu && (Ff += "height: " + Uu + ";"), "<img src=\"" + St + "\" alt=\"" + _r + "\" data-href=\"" + fa + "\" style=\"" + Ff + "\"/>";
		}
	}],
	parseElemsHtml: [I$],
	menus: [
		{
			key: "insertImage",
			factory: function() {
				return new H$();
			},
			config: Z$
		},
		{
			key: "deleteImage",
			factory: function() {
				return new V$();
			}
		},
		{
			key: "editImage",
			factory: function() {
				return new W$();
			},
			config: Z$
		},
		{
			key: "viewImageLink",
			factory: function() {
				return new G$();
			}
		},
		{
			key: "imageWidth30",
			factory: function() {
				return new K$();
			}
		},
		{
			key: "imageWidth50",
			factory: function() {
				return new Y$();
			}
		},
		{
			key: "imageWidth100",
			factory: function() {
				return new X$();
			}
		}
	],
	editorPlugin: function(x) {
		var Be = x.isInline, We = x.isVoid;
		x.insertNode;
		var St = x;
		return St.isInline = function(x) {
			return x.type === "image" || Be(x);
		}, St.isVoid = function(x) {
			return x.type === "image" || We(x);
		}, St;
	}
}, Q$ = {
	type: "todo",
	renderElem: function(x, Be, We) {
		var St = !1;
		return We.isDisabled() && (St = !0), Pg("div", { style: { margin: "5px 0" } }, Pg("span", {
			contentEditable: !1,
			style: { marginRight: "0.5em" }
		}, Pg("input", {
			type: "checkbox",
			checked: x.checked,
			disabled: St,
			on: { change: function(Be) {
				var St = QO.findPath(We, x), Kn = { checked: Be.target.checked };
				md.setNodes(We, Kn, { at: St });
			} }
		})), Pg("span", null, Be));
	}
}, eH = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !!QO.getSelectedNodeByType(x, "todo");
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !!QO.getSelectedElems(x).some((function(Be) {
			if (Bf.isVoid(x, Be) && Bf.isBlock(x, Be)) return !0;
			var We = Be.type;
			return !![
				"pre",
				"table",
				"list-item"
			].includes(We) || void 0;
		}));
	}, x.prototype.exec = function(x, Be) {
		var We = this.isActive(x);
		md.setNodes(x, { type: We ? "paragraph" : "todo" });
	}, x;
}(), nH = {
	renderElems: [Q$],
	elemsToHtml: [{
		type: "todo",
		elemToHtml: function(x, Be) {
			return "<div data-w-e-type=\"todo\"><input type=\"checkbox\" disabled " + (x.checked ? "checked" : "") + ">" + Be + "</div>";
		}
	}],
	preParseHtml: [{
		selector: "ul.w-e-todo",
		preParseHtml: function(x) {
			var Be = Mp(x).find("li"), We = Mp("<div data-w-e-type=\"todo\"></div>"), St = Be.find("input[type]");
			return We.append(St), Be.children()[0].remove(), We[0].innerHTML = We[0].innerHTML + Be[0].innerHTML, We[0];
		}
	}],
	parseElemsHtml: [{
		selector: "div[data-w-e-type=\"todo\"]",
		parseElemHtml: function(x, Be, We) {
			var St = Mp(x);
			(Be = Be.filter((function(x) {
				return !!ed.isText(x) || !!We.isInline(x);
			}))).length === 0 && (Be = [{ text: St.text().replace(/\s+/gm, " ") }]);
			var Kn = !1;
			return St.find("input[type=\"checkbox\"]").attr("checked") != null && (Kn = !0), {
				type: "todo",
				checked: Kn,
				children: Be
			};
		}
	}],
	menus: [{
		key: "todo",
		factory: function() {
			return new eH();
		}
	}],
	editorPlugin: function(x) {
		var Be = x.deleteBackward, We = x;
		return We.deleteBackward = function(We) {
			var St = x.selection;
			if (St && qf.isCollapsed(St)) {
				var Kn = QO.getSelectedNodeByType(x, "todo");
				if (Kn && Nf.string(Kn).length === 0) return void md.setNodes(x, { type: "paragraph" }, { mode: "highest" });
			}
			Be(We);
		}, We;
	}
}, rH = {
	type: "blockquote",
	renderElem: function(x, Be, We) {
		return Pg("blockquote", null, Be);
	}
}, oH = {
	selector: "blockquote:not([data-w-e-type])",
	parseElemHtml: function(x, Be, We) {
		var St = Mp(x);
		return (Be = Be.filter((function(x) {
			return !!ed.isText(x) || !!We.isInline(x);
		}))).length === 0 && (Be = [{ text: St.text().replace(/\s+/gm, " ") }]), {
			type: "blockquote",
			children: Be
		};
	}
}, iH = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !!QO.getSelectedNodeByType(x, "blockquote");
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !sM(Bf.nodes(x, {
			match: function(x) {
				var Be = QO.getNodeType(x);
				return Be === "paragraph" || Be === "blockquote";
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = this.isActive(x) ? "paragraph" : "blockquote";
			md.setNodes(x, { type: We }, { mode: "highest" });
		}
	}, x;
}(), aH = {
	key: "blockquote",
	factory: function() {
		return new iH();
	}
}, uH = Bj([].slice), sH = uL("slice"), lH = DN("species"), cH = gj.Array, fH = Math.max;
LI({
	target: "Array",
	proto: !0,
	forced: !sH
}, { slice: function(x, Be) {
	var We, St, Kn, _r = Rj(this), Li = vI(_r), fa = pI(x, Li), Vo = pI(Be === void 0 ? Li : Be, Li);
	if (MI(_r) && (We = _r.constructor, (QI(We) && (We === cH || MI(We.prototype)) || zj(We) && (We = We[lH]) === null) && (We = void 0), We === cH || We === void 0)) return uH(_r, fa, Vo);
	for (St = new (We === void 0 ? cH : We)(fH(Vo - fa, 0)), Kn = 0; fa < Vo; fa++, Kn++) fa in _r && _R(St, Kn, _r[fa]);
	return St.length = Kn, St;
} });
var dH = {
	renderElems: [rH],
	elemsToHtml: [{
		type: "blockquote",
		elemToHtml: function(x, Be) {
			return "<blockquote>" + Be + "</blockquote>";
		}
	}],
	parseElemsHtml: [oH],
	menus: [aH],
	editorPlugin: function(x) {
		var Be = x.insertBreak, We = x.insertText, St = x;
		return St.insertBreak = function() {
			var Kn = St.selection;
			if (Kn == null) return Be();
			var _r = sM(Bf.nodes(x, {
				match: function(x) {
					return QO.checkNodeType(x, "blockquote");
				},
				universal: !0
			}), 1)[0];
			if (!_r) return Be();
			var Li = _r[0], fa = QO.findPath(x, Li), Vo = Bf.end(x, fa);
			if (Vf.equals(Vo, Kn.focus)) {
				var Xo = Nf.string(Li);
				if (Xo && Xo.slice(-1) === "\n") return x.deleteBackward("character"), void md.insertNodes(St, {
					type: "paragraph",
					children: [{ text: "" }]
				}, { mode: "highest" });
			}
			We("\n");
		}, St;
	}
}, pH = function() {
	function x() {
		this.title = HP("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 x.prototype.exec = function(x, Be) {}, x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !!sM(Bf.nodes(x, {
			match: function(Be) {
				return QO.getNodeType(Be) === "pre" || !!Bf.isVoid(x, Be);
			},
			universal: !0
		}), 1)[0];
	}, x.prototype.getPanelContentElem = function(x) {
		if (this.$content == null) {
			var Be = Mp("<ul class=\"w-e-panel-content-emotion\"></ul>");
			Be.on("click", "li", (function(Be) {
				var We = Be.target;
				if (We != null) {
					Be.preventDefault();
					var St = Mp(We).text();
					x.insertText(St);
				}
			})), this.$content = Be;
		}
		var We = this.$content;
		if (We == null) return document.createElement("ul");
		We.empty();
		var St = x.getMenuConfig("emotion").emotions;
		return (St === void 0 ? [] : St).forEach((function(x) {
			var Be = Mp("<li>" + x + "</li>");
			We.append(Be);
		})), We[0];
	}, x;
}(), hH = { menus: [{
	key: "emotion",
	factory: function() {
		return new pH();
	},
	config: { emotions: "😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ") }
}] }, gH = {
	1: "12px",
	2: "14px",
	3: "16px",
	4: "19px",
	5: "24px",
	6: "32px",
	7: "48px"
}, vH = {
	selector: "font",
	preParseHtml: function(x) {
		var Be = Mp(x);
		if (QR(Be) !== "font") return x;
		var We = Be.attr("size") || "";
		We && (Be.removeAttr("size"), Be.css("font-size", gH[We]));
		var St = Be.attr("face") || "";
		return St && (Be.removeAttr("face"), Be.css("font-family", St)), Be[0];
	}
}, yH = Bj("".indexOf);
LI({
	target: "String",
	proto: !0,
	forced: !bz("includes")
}, { includes: function(x) {
	return !!~yH(dL(Lj(this)), dL(yz(x)), arguments.length > 1 ? arguments[1] : void 0);
} });
var mH, bH, wH = function(x) {
	return x && x.Math == Math && x;
}, EH = wH(typeof globalThis == "object" && globalThis) || wH(typeof window == "object" && window) || wH(typeof self == "object" && self) || wH(typeof cj == "object" && cj) || function() {
	return this;
}() || Function("return this")(), DH = Function.prototype, SH = DH.apply, xH = DH.bind, CH = DH.call, AH = typeof Reflect == "object" && Reflect.apply || (xH ? CH.bind(SH) : function() {
	return CH.apply(SH, arguments);
}), OH = Function.prototype, kH = OH.bind, BH = OH.call, FH = kH && kH.bind(BH), TH = kH ? function(x) {
	return x && FH(BH, x);
} : function(x) {
	return x && function() {
		return BH.apply(x, arguments);
	};
}, _H = function(x) {
	return typeof x == "function";
}, PH = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, jH = !PH((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), NH = Function.prototype.call, IH = NH.bind ? NH.bind(NH) : function() {
	return NH.apply(NH, arguments);
}, LH = {}.propertyIsEnumerable, RH = Object.getOwnPropertyDescriptor, zH = { f: RH && !LH.call({ 1: 2 }, 1) ? function(x) {
	var Be = RH(this, x);
	return !!Be && Be.enumerable;
} : LH }, $H = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, HH = TH({}.toString), VH = TH("".slice), UH = function(x) {
	return VH(HH(x), 8, -1);
}, WH = EH.Object, GH = TH("".split), qH = PH((function() {
	return !WH("z").propertyIsEnumerable(0);
})) ? function(x) {
	return UH(x) == "String" ? GH(x, "") : WH(x);
} : WH, KH = EH.TypeError, YH = function(x) {
	if (x == null) throw KH("Can't call method on " + x);
	return x;
}, XH = function(x) {
	return qH(YH(x));
}, ZH = function(x) {
	return typeof x == "object" ? x !== null : _H(x);
}, JH = {}, QH = function(x) {
	return _H(x) ? x : void 0;
}, eV = function(x, Be) {
	return arguments.length < 2 ? QH(JH[x]) || QH(EH[x]) : JH[x] && JH[x][Be] || EH[x] && EH[x][Be];
}, tV = TH({}.isPrototypeOf), nV = eV("navigator", "userAgent") || "", rV = EH.process, oV = EH.Deno, iV = rV && rV.versions || oV && oV.version, aV = iV && iV.v8;
aV && (bH = (mH = aV.split("."))[0] > 0 && mH[0] < 4 ? 1 : +(mH[0] + mH[1])), !bH && nV && (!(mH = nV.match(/Edge\/(\d+)/)) || mH[1] >= 74) && (mH = nV.match(/Chrome\/(\d+)/)) && (bH = +mH[1]);
var uV = bH, sV = !!Object.getOwnPropertySymbols && !PH((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && uV && uV < 41;
})), lV = sV && !Symbol.sham && typeof Symbol.iterator == "symbol", cV = EH.Object, fV = lV ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = eV("Symbol");
	return _H(Be) && tV(Be.prototype, cV(x));
}, dV = EH.String, pV = EH.TypeError, hV = function(x) {
	if (_H(x)) return x;
	throw pV(function(x) {
		try {
			return dV(x);
		} catch {
			return "Object";
		}
	}(x) + " is not a function");
}, gV = EH.TypeError, vV = Object.defineProperty, yV = EH["__core-js_shared__"] || function(x, Be) {
	try {
		vV(EH, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		EH[x] = Be;
	}
	return Be;
}("__core-js_shared__", {}), mV = fj((function(x) {
	(x.exports = function(x, Be) {
		return yV[x] || (yV[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "pure",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), bV = EH.Object, wV = function(x) {
	return bV(YH(x));
}, EV = TH({}.hasOwnProperty), DV = Object.hasOwn || function(x, Be) {
	return EV(wV(x), Be);
}, SV = 0, xV = Math.random(), CV = TH(1 .toString), AV = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + CV(++SV + xV, 36);
}, OV = mV("wks"), kV = EH.Symbol, BV = kV && kV.for, FV = lV ? kV : kV && kV.withoutSetter || AV, TV = function(x) {
	if (!DV(OV, x) || !sV && typeof OV[x] != "string") {
		var Be = "Symbol." + x;
		sV && DV(kV, x) ? OV[x] = kV[x] : OV[x] = lV && BV ? BV(Be) : FV(Be);
	}
	return OV[x];
}, _V = EH.TypeError, PV = TV("toPrimitive"), jV = function(x) {
	var Be = function(x, Be) {
		if (!ZH(x) || fV(x)) return x;
		var We, St, Kn = (We = x[PV]) == null ? void 0 : hV(We);
		if (Kn) {
			if (Be === void 0 && (Be = "default"), St = IH(Kn, x, Be), !ZH(St) || fV(St)) return St;
			throw _V("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && _H(We = x.toString) && !ZH(St = IH(We, x)) || _H(We = x.valueOf) && !ZH(St = IH(We, x)) || Be !== "string" && _H(We = x.toString) && !ZH(St = IH(We, x))) return St;
			throw gV("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return fV(Be) ? Be : Be + "";
}, NV = EH.document, IV = ZH(NV) && ZH(NV.createElement), LV = function(x) {
	return IV ? NV.createElement(x) : {};
}, RV = !jH && !PH((function() {
	return Object.defineProperty(LV("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), MV = Object.getOwnPropertyDescriptor, zV = { f: jH ? MV : function(x, Be) {
	if (x = XH(x), Be = jV(Be), RV) try {
		return MV(x, Be);
	} catch {}
	if (DV(x, Be)) return $H(!IH(zH.f, x, Be), x[Be]);
} }, $V = /#|\.prototype\./, HV = function(x, Be) {
	var We = UV[VV(x)];
	return We == GV || We != WV && (_H(Be) ? PH(Be) : !!Be);
}, VV = HV.normalize = function(x) {
	return String(x).replace($V, ".").toLowerCase();
}, UV = HV.data = {}, WV = HV.NATIVE = "N", GV = HV.POLYFILL = "P", qV = HV, KV = TH(TH.bind), YV = function(x, Be) {
	return hV(x), Be === void 0 ? x : KV ? KV(x, Be) : function() {
		return x.apply(Be, arguments);
	};
}, XV = EH.String, ZV = EH.TypeError, JV = function(x) {
	if (ZH(x)) return x;
	throw ZV(XV(x) + " is not an object");
}, QV = EH.TypeError, eU = Object.defineProperty, tU = { f: jH ? eU : function(x, Be, We) {
	if (JV(x), Be = jV(Be), JV(We), RV) try {
		return eU(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw QV("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, nU = jH ? function(x, Be, We) {
	return tU.f(x, Be, $H(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, rU = zV.f, oU = function(x) {
	var Be = function(We, St, Kn) {
		if (this instanceof Be) {
			switch (arguments.length) {
				case 0: return new x();
				case 1: return new x(We);
				case 2: return new x(We, St);
			}
			return new x(We, St, Kn);
		}
		return AH(x, this, arguments);
	};
	return Be.prototype = x.prototype, Be;
}, iU = function(x, Be) {
	var We, St, Kn, _r, Li, fa, Vo, Xo, Tc = x.target, Tl = x.global, Al = x.stat, Uu = x.proto, Ff = Tl ? EH : Al ? EH[Tc] : (EH[Tc] || {}).prototype, Lm = Tl ? JH : JH[Tc] || nU(JH, Tc, {})[Tc], Bm = Lm.prototype;
	for (Kn in Be) We = !qV(Tl ? Kn : Tc + (Al ? "." : "#") + Kn, x.forced) && Ff && DV(Ff, Kn), Li = Lm[Kn], We && (fa = x.noTargetGet ? (Xo = rU(Ff, Kn)) && Xo.value : Ff[Kn]), _r = We && fa ? fa : Be[Kn], We && typeof Li == typeof _r || (Vo = x.bind && We ? YV(_r, EH) : x.wrap && We ? oU(_r) : Uu && _H(_r) ? TH(_r) : _r, (x.sham || _r && _r.sham || Li && Li.sham) && nU(Vo, "sham", !0), nU(Lm, Kn, Vo), Uu && (DV(JH, St = Tc + "Prototype") || nU(JH, St, {}), nU(JH[St], Kn, _r), x.real && Bm && !Bm[Kn] && nU(Bm, Kn, _r)));
}, aU = Array.isArray || function(x) {
	return UH(x) == "Array";
}, uU = Math.ceil, sU = Math.floor, lU = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? sU : uU)(Be);
}, cU = Math.min, fU = function(x) {
	return (Be = x.length) > 0 ? cU(lU(Be), 9007199254740991) : 0;
	var Be;
}, dU = function(x, Be, We) {
	var St = jV(Be);
	St in x ? tU.f(x, St, $H(0, We)) : x[St] = We;
}, pU = {};
pU[TV("toStringTag")] = "z";
var hU = String(pU) === "[object z]", gU = TV("toStringTag"), vU = EH.Object, yU = UH(function() {
	return arguments;
}()) == "Arguments", mU = hU ? UH : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = vU(x), gU)) == "string" ? We : yU ? UH(Be) : (St = UH(Be)) == "Object" && _H(Be.callee) ? "Arguments" : St;
}, bU = TH(Function.toString);
_H(yV.inspectSource) || (yV.inspectSource = function(x) {
	return bU(x);
});
var wU = yV.inspectSource, EU = function() {}, DU = [], SU = eV("Reflect", "construct"), xU = /^\s*(?:class|function)\b/, CU = TH(xU.exec), AU = !xU.exec(EU), OU = function(x) {
	if (!_H(x)) return !1;
	try {
		return SU(EU, DU, x), !0;
	} catch {
		return !1;
	}
}, kU = !SU || PH((function() {
	var x;
	return OU(OU.call) || !OU(Object) || !OU((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!_H(x)) return !1;
	switch (mU(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return AU || !!CU(xU, wU(x));
} : OU, BU = TV("species"), FU = EH.Array, TU = function(x, Be) {
	return new (function(x) {
		var Be;
		return aU(x) && (Be = x.constructor, (kU(Be) && (Be === FU || aU(Be.prototype)) || ZH(Be) && (Be = Be[BU]) === null) && (Be = void 0)), Be === void 0 ? FU : Be;
	}(x))(Be === 0 ? 0 : Be);
}, _U = TV("species"), PU = TV("isConcatSpreadable"), jU = EH.TypeError, NU = uV >= 51 || !PH((function() {
	var x = [];
	return x[PU] = !1, x.concat()[0] !== x;
})), IU = uV >= 51 || !PH((function() {
	var x = [];
	return (x.constructor = {})[_U] = function() {
		return { foo: 1 };
	}, x.concat(Boolean).foo !== 1;
})), LU = function(x) {
	if (!ZH(x)) return !1;
	var Be = x[PU];
	return Be === void 0 ? aU(x) : !!Be;
};
iU({
	target: "Array",
	proto: !0,
	forced: !NU || !IU
}, { concat: function(x) {
	var Be, We, St, Kn, _r, Li = wV(this), fa = TU(Li, 0), Vo = 0;
	for (Be = -1, St = arguments.length; Be < St; Be++) if (LU(_r = Be === -1 ? Li : arguments[Be])) {
		if (Vo + (Kn = fU(_r)) > 9007199254740991) throw jU("Maximum allowed index exceeded");
		for (We = 0; We < Kn; We++, Vo++) We in _r && dU(fa, Vo, _r[We]);
	} else {
		if (Vo >= 9007199254740991) throw jU("Maximum allowed index exceeded");
		dU(fa, Vo++, _r);
	}
	return fa.length = Vo, fa;
} });
var RU, MU = EH.String, zU = function(x) {
	if (mU(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return MU(x);
}, $U = Math.max, HU = Math.min, VU = function(x, Be) {
	var We = lU(x);
	return We < 0 ? $U(We + Be, 0) : HU(We, Be);
}, UU = function(x) {
	return function(Be, We, St) {
		var Kn, _r = XH(Be), Li = fU(_r), fa = VU(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}, WU = {
	includes: UU(!0),
	indexOf: UU(!1)
}, GU = {}, qU = WU.indexOf, KU = TH([].push), YU = function(x, Be) {
	var We, St = XH(x), Kn = 0, _r = [];
	for (We in St) !DV(GU, We) && DV(St, We) && KU(_r, We);
	for (; Be.length > Kn;) DV(St, We = Be[Kn++]) && (~qU(_r, We) || KU(_r, We));
	return _r;
}, XU = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], ZU = Object.keys || function(x) {
	return YU(x, XU);
}, JU = jH ? Object.defineProperties : function(x, Be) {
	JV(x);
	for (var We, St = XH(Be), Kn = ZU(Be), _r = Kn.length, Li = 0; _r > Li;) tU.f(x, We = Kn[Li++], St[We]);
	return x;
}, QU = eV("document", "documentElement"), eW = mV("keys"), tW = function(x) {
	return eW[x] || (eW[x] = AV(x));
}, nW = tW("IE_PROTO"), rW = function() {}, oW = function(x) {
	return "<script>" + x + "<\/script>";
}, iW = function(x) {
	x.write(oW("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, aW = function() {
	try {
		RU = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	aW = typeof document < "u" ? document.domain && RU ? iW(RU) : ((Be = LV("iframe")).style.display = "none", QU.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(oW("document.F=Object")), x.close(), x.F) : iW(RU);
	for (var We = XU.length; We--;) delete aW.prototype[XU[We]];
	return aW();
};
GU[nW] = !0;
var uW, sW, lW, cW = Object.create || function(x, Be) {
	var We;
	return x === null ? We = aW() : (rW.prototype = JV(x), We = new rW(), rW.prototype = null, We[nW] = x), Be === void 0 ? We : JU(We, Be);
}, fW = XU.concat("length", "prototype"), dW = { f: Object.getOwnPropertyNames || function(x) {
	return YU(x, fW);
} }, pW = EH.Array, hW = Math.max, gW = dW.f, vW = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], yW = { f: function(x) {
	return vW && UH(x) == "Window" ? function(x) {
		try {
			return gW(x);
		} catch {
			return function(x, Be, We) {
				for (var St = fU(x), Kn = VU(void 0, St), _r = VU(St, St), Li = pW(hW(_r - Kn, 0)), fa = 0; Kn < _r; Kn++, fa++) dU(Li, fa, x[Kn]);
				return Li.length = fa, Li;
			}(vW);
		}
	}(x) : gW(XH(x));
} }, mW = { f: Object.getOwnPropertySymbols }, bW = TH([].slice), wW = function(x, Be, We, St) {
	St && St.enumerable ? x[Be] = We : nU(x, Be, We);
}, EW = { f: TV }, DW = tU.f, SW = function(x) {
	var Be = JH.Symbol ||= {};
	DV(Be, x) || DW(Be, x, { value: EW.f(x) });
}, xW = hU ? {}.toString : function() {
	return "[object " + mU(this) + "]";
}, CW = tU.f, AW = TV("toStringTag"), OW = function(x, Be, We, St) {
	if (x) {
		var Kn = We ? x : x.prototype;
		DV(Kn, AW) || CW(Kn, AW, {
			configurable: !0,
			value: Be
		}), St && !hU && nU(Kn, "toString", xW);
	}
}, kW = EH.WeakMap, BW = _H(kW) && /native code/.test(wU(kW)), FW = EH.TypeError, TW = EH.WeakMap;
if (BW || yV.state) {
	var _W = yV.state ||= new TW(), PW = TH(_W.get), jW = TH(_W.has), NW = TH(_W.set);
	uW = function(x, Be) {
		if (jW(_W, x)) throw new FW("Object already initialized");
		return Be.facade = x, NW(_W, x, Be), Be;
	}, sW = function(x) {
		return PW(_W, x) || {};
	}, lW = function(x) {
		return jW(_W, x);
	};
} else {
	var IW = tW("state");
	GU[IW] = !0, uW = function(x, Be) {
		if (DV(x, IW)) throw new FW("Object already initialized");
		return Be.facade = x, nU(x, IW, Be), Be;
	}, sW = function(x) {
		return DV(x, IW) ? x[IW] : {};
	}, lW = function(x) {
		return DV(x, IW);
	};
}
var LW = {
	set: uW,
	get: sW,
	has: lW,
	enforce: function(x) {
		return lW(x) ? sW(x) : uW(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!ZH(Be) || (We = sW(Be)).type !== x) throw FW("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, RW = TH([].push), MW = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = wV(Vo), Lm = qH(Ff), Bm = YV(Xo, Tc), x_ = fU(Lm), uy = 0, dx = Tl || TU, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: RW(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: RW(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, zW = [
	MW(0),
	MW(1),
	MW(2),
	MW(3),
	MW(4),
	MW(5),
	MW(6),
	MW(7)
][0], $W = tW("hidden"), HW = TV("toPrimitive"), VW = LW.set, UW = LW.getterFor("Symbol"), WW = Object.prototype, GW = EH.Symbol, qW = GW && GW.prototype, KW = EH.TypeError, YW = EH.QObject, XW = eV("JSON", "stringify"), ZW = zV.f, JW = tU.f, QW = yW.f, eG = zH.f, tG = TH([].push), nG = mV("symbols"), rG = mV("op-symbols"), oG = mV("string-to-symbol-registry"), iG = mV("symbol-to-string-registry"), aG = mV("wks"), uG = !YW || !YW.prototype || !YW.prototype.findChild, sG = jH && PH((function() {
	return cW(JW({}, "a", { get: function() {
		return JW(this, "a", { value: 7 }).a;
	} })).a != 7;
})) ? function(x, Be, We) {
	var St = ZW(WW, Be);
	St && delete WW[Be], JW(x, Be, We), St && x !== WW && JW(WW, Be, St);
} : JW, lG = function(x, Be) {
	var We = nG[x] = cW(qW);
	return VW(We, {
		type: "Symbol",
		tag: x,
		description: Be
	}), jH || (We.description = Be), We;
}, cG = function(x, Be, We) {
	x === WW && cG(rG, Be, We), JV(x);
	var St = jV(Be);
	return JV(We), DV(nG, St) ? (We.enumerable ? (DV(x, $W) && x[$W][St] && (x[$W][St] = !1), We = cW(We, { enumerable: $H(0, !1) })) : (DV(x, $W) || JW(x, $W, $H(1, {})), x[$W][St] = !0), sG(x, St, We)) : JW(x, St, We);
}, fG = function(x, Be) {
	JV(x);
	var We = XH(Be);
	return zW(ZU(We).concat(gG(We)), (function(Be) {
		jH && !IH(dG, We, Be) || cG(x, Be, We[Be]);
	})), x;
}, dG = function(x) {
	var Be = jV(x), We = IH(eG, this, Be);
	return !(this === WW && DV(nG, Be) && !DV(rG, Be)) && (!(We || !DV(this, Be) || !DV(nG, Be) || DV(this, $W) && this[$W][Be]) || We);
}, pG = function(x, Be) {
	var We = XH(x), St = jV(Be);
	if (We !== WW || !DV(nG, St) || DV(rG, St)) {
		var Kn = ZW(We, St);
		return !Kn || !DV(nG, St) || DV(We, $W) && We[$W][St] || (Kn.enumerable = !0), Kn;
	}
}, hG = function(x) {
	var Be = QW(XH(x)), We = [];
	return zW(Be, (function(x) {
		DV(nG, x) || DV(GU, x) || tG(We, x);
	})), We;
}, gG = function(x) {
	var Be = x === WW, We = QW(Be ? rG : XH(x)), St = [];
	return zW(We, (function(x) {
		!DV(nG, x) || Be && !DV(WW, x) || tG(St, nG[x]);
	})), St;
};
if (sV || (qW = (GW = function() {
	if (tV(qW, this)) throw KW("Symbol is not a constructor");
	var x = arguments.length && arguments[0] !== void 0 ? zU(arguments[0]) : void 0, Be = AV(x), We = function(x) {
		this === WW && IH(We, rG, x), DV(this, $W) && DV(this[$W], Be) && (this[$W][Be] = !1), sG(this, Be, $H(1, x));
	};
	return jH && uG && sG(WW, Be, {
		configurable: !0,
		set: We
	}), lG(Be, x);
}).prototype, wW(qW, "toString", (function() {
	return UW(this).tag;
})), wW(GW, "withoutSetter", (function(x) {
	return lG(AV(x), x);
})), zH.f = dG, tU.f = cG, zV.f = pG, dW.f = yW.f = hG, mW.f = gG, EW.f = function(x) {
	return lG(TV(x), x);
}, jH && JW(qW, "description", {
	configurable: !0,
	get: function() {
		return UW(this).description;
	}
})), iU({
	global: !0,
	wrap: !0,
	forced: !sV,
	sham: !sV
}, { Symbol: GW }), zW(ZU(aG), (function(x) {
	SW(x);
})), iU({
	target: "Symbol",
	stat: !0,
	forced: !sV
}, {
	for: function(x) {
		var Be = zU(x);
		if (DV(oG, Be)) return oG[Be];
		var We = GW(Be);
		return oG[Be] = We, iG[We] = Be, We;
	},
	keyFor: function(x) {
		if (!fV(x)) throw KW(x + " is not a symbol");
		if (DV(iG, x)) return iG[x];
	},
	useSetter: function() {
		uG = !0;
	},
	useSimple: function() {
		uG = !1;
	}
}), iU({
	target: "Object",
	stat: !0,
	forced: !sV,
	sham: !jH
}, {
	create: function(x, Be) {
		return Be === void 0 ? cW(x) : fG(cW(x), Be);
	},
	defineProperty: cG,
	defineProperties: fG,
	getOwnPropertyDescriptor: pG
}), iU({
	target: "Object",
	stat: !0,
	forced: !sV
}, {
	getOwnPropertyNames: hG,
	getOwnPropertySymbols: gG
}), iU({
	target: "Object",
	stat: !0,
	forced: PH((function() {
		mW.f(1);
	}))
}, { getOwnPropertySymbols: function(x) {
	return mW.f(wV(x));
} }), XW && iU({
	target: "JSON",
	stat: !0,
	forced: !sV || PH((function() {
		var x = GW();
		return XW([x]) != "[null]" || XW({ a: x }) != "{}" || XW(Object(x)) != "{}";
	}))
}, { stringify: function(x, Be, We) {
	var St = bW(arguments), Kn = Be;
	if ((ZH(Be) || x !== void 0) && !fV(x)) return aU(Be) || (Be = function(x, Be) {
		if (_H(Kn) && (Be = IH(Kn, this, x, Be)), !fV(Be)) return Be;
	}), St[1] = Be, AH(XW, null, St);
} }), !qW[HW]) {
	var yG = qW.valueOf;
	wW(qW, HW, (function(x) {
		return IH(yG, this);
	}));
}
OW(GW, "Symbol"), GU[$W] = !0, SW("asyncIterator"), SW("hasInstance"), SW("isConcatSpreadable"), SW("iterator"), SW("match"), SW("matchAll"), SW("replace"), SW("search"), SW("species"), SW("split"), SW("toPrimitive"), SW("toStringTag"), SW("unscopables"), OW(EH.JSON, "JSON", !0);
var mG, bG, wG, EG = JH.Symbol, DG = {}, SG = Function.prototype, xG = jH && Object.getOwnPropertyDescriptor, CG = DV(SG, "name"), AG = {
	EXISTS: CG,
	PROPER: CG && function() {}.name === "something",
	CONFIGURABLE: CG && (!jH || jH && xG(SG, "name").configurable)
}, OG = !PH((function() {
	function x() {}
	return x.prototype.constructor = null, Object.getPrototypeOf(new x()) !== x.prototype;
})), kG = tW("IE_PROTO"), BG = EH.Object, FG = BG.prototype, TG = OG ? BG.getPrototypeOf : function(x) {
	var Be = wV(x);
	if (DV(Be, kG)) return Be[kG];
	var We = Be.constructor;
	return _H(We) && Be instanceof We ? We.prototype : Be instanceof BG ? FG : null;
}, _G = TV("iterator"), PG = !1;
[].keys && ("next" in (wG = [].keys()) ? (bG = TG(TG(wG))) !== Object.prototype && (mG = bG) : PG = !0), mG = mG == null || PH((function() {
	var x = {};
	return mG[_G].call(x) !== x;
})) ? {} : cW(mG), _H(mG[_G]) || wW(mG, _G, (function() {
	return this;
}));
var NG = {
	IteratorPrototype: mG,
	BUGGY_SAFARI_ITERATORS: PG
}, IG = NG.IteratorPrototype, LG = function() {
	return this;
};
EH.String, EH.TypeError, Object.setPrototypeOf || "__proto__" in {} && function() {
	var x = {};
	try {
		TH(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set)(x, []), x instanceof Array;
	} catch {}
}();
var RG = AG.PROPER, MG = NG.BUGGY_SAFARI_ITERATORS, zG = TV("iterator"), $G = function() {
	return this;
}, HG = function(x, Be, We, St, Kn, _r, Li) {
	(function(x, Be, We, St) {
		var Kn = Be + " Iterator";
		x.prototype = cW(IG, { next: $H(1, We) }), OW(x, Kn, !1, !0), DG[Kn] = LG;
	})(We, Be, St);
	var fa, Vo, Xo, Tc = function(x) {
		if (x === Kn && Lm) return Lm;
		if (!MG && x in Uu) return Uu[x];
		switch (x) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new We(this, x);
			};
		}
		return function() {
			return new We(this);
		};
	}, Tl = Be + " Iterator", Al = !1, Uu = x.prototype, Ff = Uu[zG] || Uu["@@iterator"] || Kn && Uu[Kn], Lm = !MG && Ff || Tc(Kn), Bm = Be == "Array" && Uu.entries || Ff;
	if (Bm && (fa = TG(Bm.call(new x()))) !== Object.prototype && fa.next && (OW(fa, Tl, !0, !0), DG[Tl] = $G), RG && Kn == "values" && Ff && Ff.name !== "values" && (Al = !0, Lm = function() {
		return IH(Ff, this);
	}), Kn) if (Vo = {
		values: Tc("values"),
		keys: _r ? Lm : Tc("keys"),
		entries: Tc("entries")
	}, Li) for (Xo in Vo) (MG || Al || !(Xo in Uu)) && wW(Uu, Xo, Vo[Xo]);
	else iU({
		target: Be,
		proto: !0,
		forced: MG || Al
	}, Vo);
	return Li && Uu[zG] !== Lm && wW(Uu, zG, Lm, { name: Kn }), DG[Be] = Lm, Vo;
}, VG = LW.set, UG = LW.getterFor("Array Iterator");
HG(Array, "Array", (function(x, Be) {
	VG(this, {
		type: "Array Iterator",
		target: XH(x),
		index: 0,
		kind: Be
	});
}), (function() {
	var x = UG(this), Be = x.target, We = x.kind, St = x.index++;
	return !Be || St >= Be.length ? (x.target = void 0, {
		value: void 0,
		done: !0
	}) : We == "keys" ? {
		value: St,
		done: !1
	} : We == "values" ? {
		value: Be[St],
		done: !1
	} : {
		value: [St, Be[St]],
		done: !1
	};
}), "values"), DG.Arguments = DG.Array;
var WG = TV("toStringTag");
for (var GG 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 qG = EH[GG], KG = qG && qG.prototype;
	KG && mU(KG) !== WG && nU(KG, WG, GG), DG[GG] = DG.Array;
}
var YG = EG;
SW("asyncDispose"), SW("dispose"), SW("matcher"), SW("metadata"), SW("observable"), SW("patternMatch"), SW("replaceAll");
var XG = YG, ZG = TH("".charAt), JG = TH("".charCodeAt), QG = TH("".slice), tq = function(x) {
	return function(Be, We) {
		var St, Kn, _r = zU(YH(Be)), Li = lU(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = JG(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = JG(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? ZG(_r, Li) : St : x ? QG(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}(!0), nq = LW.set, rq = LW.getterFor("String Iterator");
HG(String, "String", (function(x) {
	nq(this, {
		type: "String Iterator",
		string: zU(x),
		index: 0
	});
}), (function() {
	var x, Be = rq(this), We = Be.string, St = Be.index;
	return St >= We.length ? {
		value: void 0,
		done: !0
	} : (x = tq(We, St), Be.index += x.length, {
		value: x,
		done: !1
	});
}));
var oq = EW.f("iterator"), aq = function(x) {
	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
}(fj((function(x) {
	function Be(We) {
		return typeof XG == "function" && typeof oq == "symbol" ? (x.exports = Be = function(x) {
			return typeof x;
		}, x.exports.default = x.exports, x.exports.__esModule = !0) : (x.exports = Be = function(x) {
			return x && typeof XG == "function" && x.constructor === XG && x !== XG.prototype ? "symbol" : typeof x;
		}, x.exports.default = x.exports, x.exports.__esModule = !0), Be(We);
	}
	x.exports = Be, x.exports.default = x.exports, x.exports.__esModule = !0;
}))), uq = aI.EXISTS, sq = LN.f, lq = Function.prototype, cq = Bj(lq.toString), fq = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, dq = Bj(fq.exec);
yj && !uq && sq(lq, "name", {
	configurable: !0,
	get: function() {
		try {
			return dq(fq, cq(this))[1];
		} catch {
			return "";
		}
	}
});
var pq = function() {
	function x() {
		this.tag = "select", this.width = 80;
	}
	return x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.getValue = function(x) {
		var Be = this.mark, We = Bf.marks(x);
		return We && We[Be] ? We[Be] : "";
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || (this.mark, !!sM(Bf.nodes(x, {
			match: function(Be) {
				return QO.getNodeType(Be) === "pre" || !!Bf.isVoid(x, Be);
			},
			universal: !0
		}), 1)[0]);
	}, x.prototype.exec = function(x, Be) {
		var We = this.mark;
		Be ? x.addMark(We, Be) : x.removeMark(We);
	}, x;
}(), hq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("fontSize.title"), Be.iconSvg = RM, Be.mark = "fontSize", Be;
	}
	return rM(Be, x), Be.prototype.getOptions = function(x) {
		var Be = [], We = x.getMenuConfig(this.mark).fontSizeList, St = We === void 0 ? [] : We;
		Be.push({
			text: HP("fontSize.default"),
			value: ""
		}), St.forEach((function(x) {
			if (typeof x == "string") Be.push({
				text: x,
				value: x
			});
			else if (aq(x) === "object") {
				var We = x.name, St = x.value;
				Be.push({
					text: We,
					value: St
				});
			}
		}));
		var Kn = this.getValue(x);
		return Be.forEach((function(x) {
			x.value === Kn ? x.selected = !0 : delete x.selected;
		})), Be;
	}, Be;
}(pq), gq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("fontFamily.title"), Be.iconSvg = MM, Be.mark = "fontFamily", Be.selectPanelWidth = 150, Be;
	}
	return rM(Be, x), Be.prototype.getOptions = function(x) {
		var Be = [], We = x.getMenuConfig(this.mark).fontFamilyList, St = We === void 0 ? [] : We;
		Be.push({
			text: HP("fontFamily.default"),
			value: ""
		}), St.forEach((function(x) {
			if (typeof x == "string") Be.push({
				text: x,
				value: x,
				styleForRenderMenuList: { "font-family": x }
			});
			else if (aq(x) === "object") {
				var We = x.name, St = x.value;
				Be.push({
					text: We,
					value: St,
					styleForRenderMenuList: { "font-family": St }
				});
			}
		}));
		var Kn = this.getValue(x);
		return Be.forEach((function(x) {
			x.value === Kn ? x.selected = !0 : delete x.selected;
		})), Be;
	}, Be;
}(pq), vq = {
	renderStyle: function(x, Be) {
		var We = x, St = We.fontSize, Kn = We.fontFamily, _r = Be;
		return St && Kz(_r, { fontSize: St }), Kn && Kz(_r, { fontFamily: Kn }), _r;
	},
	styleToHtml: function(x, Be) {
		if (!ed.isText(x)) return Be;
		var We, St = x, Kn = St.fontSize, _r = St.fontFamily;
		return Kn || _r ? ((ZR(Be) || QR(We = Mp(Be)) !== "span") && (We = Mp("<span>" + Be + "</span>")), Kn && We.css("font-size", Kn), _r && We.css("font-family", _r), JR(We)) : Be;
	},
	preParseHtml: [vH],
	parseStyleHtml: function(x, Be, We) {
		var St = Mp(x);
		if (!ed.isText(Be)) return Be;
		var Kn = Be, _r = We.getMenuConfig("fontSize").fontSizeList, Li = _r === void 0 ? [] : _r, fa = eM(St, "font-size"), Vo = Li.find((function(x) {
			return x.value && x.value === fa;
		})) || Li.includes(fa);
		fa && Vo && (Kn.fontSize = fa);
		var Xo = We.getMenuConfig("fontFamily").fontFamilyList, Tc = Xo === void 0 ? [] : Xo, Tl = eM(St, "font-family").replace(/"/g, ""), Al = Tc.find((function(x) {
			return x.value && x.value === Tl;
		})) || Tc.includes(Tl);
		return Tl && Al && (Kn.fontFamily = Tl), Kn;
	},
	menus: [{
		key: "fontSize",
		factory: function() {
			return new hq();
		},
		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 gq();
		},
		config: { fontFamilyList: [
			"黑体",
			{
				name: "仿宋",
				value: "仿宋"
			},
			"楷体",
			"标楷体",
			"华文仿宋",
			"华文楷体",
			{
				name: "宋体",
				value: "宋体"
			},
			"微软雅黑",
			"Arial",
			"Tahoma",
			"Verdana",
			"Times New Roman",
			"Courier New"
		] }
	}]
}, yq = {
	selector: "p,h1,h2,h3,h4,h5",
	preParseHtml: function(x) {
		var Be = Mp(x), We = eM(Be, "padding-left");
		return /\dem/.test(We) && Be.css("text-indent", "2em"), /\dpx/.test(We) && parseInt(We, 10) % 32 == 0 && Be.css("text-indent", "2em"), Be[0];
	}
}, mq = function() {
	function x() {
		this.tag = "button";
	}
	return x.prototype.getValue = function(x) {
		var Be = sM(Bf.nodes(x, {
			match: function(x) {
				return !!x.indent;
			},
			universal: !0
		}), 1)[0];
		return Be == null ? "" : sM(Be, 1)[0].indent || "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.getMatchNode = function(x) {
		var Be = sM(Bf.nodes(x, {
			match: function(x) {
				var Be = QO.getNodeType(x);
				return Be === "paragraph" || !!Be.startsWith("header");
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
		return Be == null ? null : Be[0];
	}, x;
}(), bq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("indent.decrease"), Be.iconSvg = zM, Be;
	}
	return rM(Be, x), Be.prototype.isDisabled = function(x) {
		var Be = this.getMatchNode(x);
		return Be == null || !Be.indent;
	}, Be.prototype.exec = function(x, Be) {
		md.setNodes(x, { indent: null }, { match: function(x) {
			return Sf.isElement(x);
		} });
	}, Be;
}(mq), wq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("indent.increase"), Be.iconSvg = $M, Be;
	}
	return rM(Be, x), Be.prototype.isDisabled = function(x) {
		var Be = this.getMatchNode(x);
		return Be == null || !!Be.indent;
	}, Be.prototype.exec = function(x, Be) {
		md.setNodes(x, { indent: "2em" }, {
			match: function(x) {
				return Sf.isElement(x);
			},
			mode: "highest"
		});
	}, Be;
}(mq), Eq = {
	renderStyle: function(x, Be) {
		if (!Sf.isElement(x)) return Be;
		var We = x.indent, St = Be;
		return We && Kz(St, { textIndent: We }), St;
	},
	styleToHtml: function(x, Be) {
		if (!Sf.isElement(x)) return Be;
		var We = x.indent;
		if (!We) return Be;
		var St = Mp(Be);
		return St.css("text-indent", We), JR(St);
	},
	preParseHtml: [yq],
	parseStyleHtml: function(x, Be, We) {
		var St = Mp(x);
		if (!Sf.isElement(Be)) return Be;
		var Kn = Be, _r = eM(St, "text-indent");
		return _r && parseInt(_r, 10) > 0 && (Kn.indent = _r), Kn;
	},
	menus: [{
		key: "indent",
		factory: function() {
			return new wq();
		}
	}, {
		key: "delIndent",
		factory: function() {
			return new bq();
		}
	}]
}, Dq = function() {
	function x() {
		this.tag = "button";
	}
	return x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.getMatchNode = function(x) {
		var Be = sM(Bf.nodes(x, {
			match: function(x) {
				var Be = QO.getNodeType(x);
				return Be === "paragraph" || Be === "blockquote" || !!Be.startsWith("header");
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
		return Be == null ? null : Be[0];
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !!QO.getSelectedElems(x).some((function(Be) {
			if (Bf.isVoid(x, Be) && Bf.isBlock(x, Be)) return !0;
			var We = Be.type;
			return !!["pre", "code"].includes(We) || void 0;
		}));
	}, x;
}(), Sq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("justify.left"), Be.iconSvg = HM, Be;
	}
	return rM(Be, x), Be.prototype.exec = function(x, Be) {
		md.setNodes(x, { textAlign: "left" }, { match: function(Be) {
			return Sf.isElement(Be) && !x.isInline(Be);
		} });
	}, Be;
}(Dq), xq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("justify.right"), Be.iconSvg = VM, Be;
	}
	return rM(Be, x), Be.prototype.exec = function(x, Be) {
		md.setNodes(x, { textAlign: "right" }, { match: function(Be) {
			return Sf.isElement(Be) && !x.isInline(Be);
		} });
	}, Be;
}(Dq), Cq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("justify.center"), Be.iconSvg = UM, Be;
	}
	return rM(Be, x), Be.prototype.exec = function(x, Be) {
		md.setNodes(x, { textAlign: "center" }, { match: function(Be) {
			return Sf.isElement(Be) && !x.isInline(Be);
		} });
	}, Be;
}(Dq), Aq = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.title = HP("justify.justify"), Be.iconSvg = WM, Be;
	}
	return rM(Be, x), Be.prototype.exec = function(x, Be) {
		md.setNodes(x, { textAlign: "justify" }, { match: function(Be) {
			return Sf.isElement(Be) && !x.isInline(Be);
		} });
	}, Be;
}(Dq), Oq = {
	renderStyle: function(x, Be) {
		if (!Sf.isElement(x)) return Be;
		var We = x.textAlign, St = Be;
		return We && Kz(St, { textAlign: We }), St;
	},
	styleToHtml: function(x, Be) {
		if (!Sf.isElement(x)) return Be;
		var We = x.textAlign;
		if (!We) return Be;
		var St = Mp(Be);
		return St.css("text-align", We), JR(St);
	},
	parseStyleHtml: function(x, Be, We) {
		var St = Mp(x);
		if (!Sf.isElement(Be)) return Be;
		var Kn = Be, _r = eM(St, "text-align");
		return _r && (Kn.textAlign = _r), Kn;
	},
	menus: [
		{
			key: "justifyLeft",
			factory: function() {
				return new Sq();
			}
		},
		{
			key: "justifyRight",
			factory: function() {
				return new xq();
			}
		},
		{
			key: "justifyCenter",
			factory: function() {
				return new Cq();
			}
		},
		{
			key: "justifyJustify",
			factory: function() {
				return new Aq();
			}
		}
	]
}, kq = function() {
	function x() {
		this.title = HP("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 x.prototype.getOptions = function(x) {
		var Be = [], We = x.getMenuConfig("lineHeight").lineHeightList, St = We === void 0 ? [] : We;
		Be.push({
			text: HP("lineHeight.default"),
			value: ""
		}), St.forEach((function(x) {
			Be.push({
				text: x,
				value: x
			});
		}));
		var Kn = this.getValue(x);
		return Be.forEach((function(x) {
			x.value === Kn ? x.selected = !0 : delete x.selected;
		})), Be;
	}, x.prototype.getMatchNode = function(x) {
		var Be = sM(Bf.nodes(x, {
			match: function(x) {
				var Be = QO.getNodeType(x);
				return !!Be.startsWith("header") || !![
					"paragraph",
					"blockquote",
					"list-item"
				].includes(Be);
			},
			universal: !0,
			mode: "highest"
		}), 1)[0];
		return Be == null ? null : Be[0];
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.getValue = function(x) {
		var Be = this.getMatchNode(x);
		return Be == null ? "" : Sf.isElement(Be) && Be.lineHeight || "";
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || this.getMatchNode(x) == null;
	}, x.prototype.exec = function(x, Be) {
		md.setNodes(x, { lineHeight: Be.toString() }, { mode: "highest" });
	}, x;
}(), Bq = {
	renderStyle: function(x, Be) {
		if (!Sf.isElement(x)) return Be;
		var We = x.lineHeight, St = Be;
		return We && Kz(St, { lineHeight: We }), St;
	},
	styleToHtml: function(x, Be) {
		if (!Sf.isElement(x)) return Be;
		var We = x.lineHeight;
		if (!We) return Be;
		var St = Mp(Be);
		return St.css("line-height", We), JR(St);
	},
	parseStyleHtml: function(x, Be, We) {
		var St = Mp(x);
		if (!Sf.isElement(Be)) return Be;
		var Kn = Be, _r = We.getMenuConfig("lineHeight").lineHeightList, Li = _r === void 0 ? [] : _r, fa = eM(St, "line-height");
		return fa && Li.includes(fa) && (Kn.lineHeight = fa), Kn;
	},
	menus: [{
		key: "lineHeight",
		factory: function() {
			return new kq();
		},
		config: { lineHeightList: [
			"1",
			"1.15",
			"1.5",
			"2",
			"2.5",
			"3"
		] }
	}]
}, Fq = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null;
	}, x.prototype.exec = function(x, Be) {
		typeof x.redo == "function" && x.redo();
	}, x;
}(), Tq = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null;
	}, x.prototype.exec = function(x, Be) {
		typeof x.undo == "function" && x.undo();
	}, x;
}(), _q = { menus: [{
	key: "redo",
	factory: function() {
		return new Fq();
	}
}, {
	key: "undo",
	factory: function() {
		return new Tq();
	}
}] }, Pq = {
	type: "divider",
	renderElem: function(x, Be, We) {
		return pg("div", {
			props: {
				contentEditable: !1,
				className: "w-e-textarea-divider"
			},
			dataset: { selected: QO.isNodeSelected(We, x) ? "true" : "" },
			style: {},
			on: { mousedown: function(x) {
				return x.preventDefault();
			} }
		}, [pg("hr")]);
	}
}, jq = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !!QO.getSelectedElems(x).some((function(Be) {
			if (x.isVoid(Be)) return !0;
			var We = QO.getNodeType(Be);
			return We === "table" || We === "pre" || void 0;
		}));
	}, x.prototype.exec = function(x, Be) {
		md.insertNodes(x, {
			type: "divider",
			children: [{ text: "" }]
		}, { mode: "highest" });
	}, x;
}(), Nq = {
	renderElems: [Pq],
	elemsToHtml: [{
		type: "divider",
		elemToHtml: function(x, Be) {
			return "<hr/>";
		}
	}],
	parseElemsHtml: [{
		selector: "hr:not([data-w-e-type])",
		parseElemHtml: function(x, Be, We) {
			return {
				type: "divider",
				children: [{ text: "" }]
			};
		}
	}],
	menus: [{
		key: "divider",
		factory: function() {
			return new jq();
		}
	}],
	editorPlugin: function(x) {
		var Be = x.isVoid, We = x.normalizeNode, St = x;
		return St.isVoid = function(x) {
			return x.type === "divider" || Be(x);
		}, St.normalizeNode = function(x) {
			var Be = sM(x, 2), Kn = Be[0], _r = Be[1];
			if (QO.getNodeType(Kn) !== "divider") return We([Kn, _r]);
			QO.isLastNode(St, Kn) && md.insertNodes(St, QO.genEmptyParagraph(), { at: [_r[0] + 1] });
		}, St;
	}
}, Iq = iL.map;
LI({
	target: "Array",
	proto: !0,
	forced: !uL("map")
}, { map: function(x) {
	return Iq(this, x, arguments.length > 1 ? arguments[1] : void 0);
} });
var Lq = Bj([].join), Rq = Nj != Object, Mq = EM("join", ",");
LI({
	target: "Array",
	proto: !0,
	forced: Rq || !Mq
}, { join: function(x) {
	return Lq(Rj(this), x === void 0 ? "," : x);
} });
var zq = function() {
	function x() {
		this.title = HP("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 x.prototype.getSelectCodeElem = function(x) {
		var Be = QO.getSelectedNodeByType(x, "code");
		if (Be == null) return null;
		var We = QO.getParentNode(x, Be);
		return We == null || QO.getNodeType(We) !== "pre" ? null : Be;
	}, x.prototype.getValue = function(x) {
		var Be = this.getSelectCodeElem(x);
		return Be == null ? "" : Be.language || "";
	}, x.prototype.isActive = function(x) {
		return !!this.getSelectCodeElem(x);
	}, x.prototype.isDisabled = function(x) {
		if (x.selection == null) return !0;
		var Be = QO.getSelectedElems(x);
		return !!Be.some((function(Be) {
			return x.isVoid(Be);
		})) || !Be.some((function(x) {
			var Be = QO.getNodeType(x);
			if (Be === "pre" || Be === "paragraph") return !0;
		}));
	}, x.prototype.exec = function(x, Be) {
		this.isActive(x) ? this.changeToPlainText(x) : this.changeToCodeBlock(x, Be.toString());
	}, x.prototype.changeToPlainText = function(x) {
		var Be = this.getSelectCodeElem(x);
		if (Be != null) {
			var We = Nf.string(Be);
			md.removeNodes(x, { mode: "highest" });
			var St = We.split("\n").map((function(x) {
				return {
					type: "paragraph",
					children: [{ text: x }]
				};
			}));
			md.insertNodes(x, St, { mode: "highest" });
		}
	}, x.prototype.changeToCodeBlock = function(x, Be) {
		var We, St, Kn = [], _r = Bf.nodes(x, {
			match: function(Be) {
				return x.children.includes(Be);
			},
			universal: !0
		});
		try {
			for (var Li = uM(_r), fa = Li.next(); !fa.done; fa = Li.next()) {
				var Vo = sM(fa.value, 1)[0];
				Vo && Kn.push(Nf.string(Vo));
			}
		} catch (x) {
			We = { error: x };
		} finally {
			try {
				fa && !fa.done && (St = Li.return) && St.call(Li);
			} finally {
				if (We) throw We.error;
			}
		}
		md.removeNodes(x, { mode: "highest" });
		var Xo = {
			type: "pre",
			children: [{
				type: "code",
				language: Be,
				children: [{ text: Kn.join("\n") }]
			}]
		};
		md.insertNodes(x, Xo, { mode: "highest" });
	}, x;
}(), $q = {
	key: "codeBlock",
	factory: function() {
		return new zq();
	}
};
LI({
	target: "String",
	proto: !0,
	forced: hM("anchor")
}, { anchor: function(x) {
	return pM(this, "a", "name", x);
} }), JL("match", (function(x, Be, We) {
	return [function(Be) {
		var We = Lj(this), St = Be == null ? void 0 : oN(Be, x);
		return St ? bj(St, Be, We) : new RegExp(Be)[x](dL(We));
	}, function(x) {
		var St = jN(this), Kn = dL(x), _r = We(Be, St, Kn);
		if (_r.done) return _r.value;
		if (!St.global) return pR(St, Kn);
		var Li = St.unicode;
		St.lastIndex = 0;
		for (var fa, Vo = [], Xo = 0; (fa = pR(St, Kn)) !== null;) {
			var Tc = dL(fa[0]);
			Vo[Xo] = Tc, Tc === "" && (St.lastIndex = oR(Kn, gI(St.lastIndex), Li)), Xo++;
		}
		return Xo === 0 ? null : Vo;
	}];
}));
var Wq = {
	menus: [$q],
	editorPlugin: function(x) {
		var Be = x.insertBreak, We = x.normalizeNode, St = x.insertData;
		x.insertNode;
		var Kn = x;
		return Kn.insertBreak = function() {
			var x = QO.getSelectedNodeByType(Kn, "code");
			if (x != null) {
				var We = function(x, Be) {
					var We = Be.selection;
					if (We == null) return "";
					var St = Nf.string(x), Kn = We.anchor.offset, _r = St.slice(0, Kn).split("\n"), Li = _r.length;
					return Li === 0 ? "" : _r[Li - 1];
				}(x, Kn);
				if (We) {
					var St = We.match(/^\s+/);
					if (St != null && St[0] != null) {
						var _r = St[0];
						Kn.insertText("\n" + _r);
						return;
					}
				}
				Kn.insertText("\n");
			} else Be();
		}, Kn.normalizeNode = function(x) {
			var Be = sM(x, 2), St = Be[0], _r = Be[1], Li = QO.getNodeType(St);
			return Li === "code" && _r.length <= 1 && md.setNodes(Kn, { type: "paragraph" }, { at: _r }), Li === "pre" && (QO.isLastNode(Kn, St) && md.insertNodes(Kn, QO.genEmptyParagraph(), { at: [_r[0] + 1] }), QO.getNodeType(St.children[0]) !== "code" && (md.unwrapNodes(Kn), md.setNodes(Kn, { type: "paragraph" }, { mode: "highest" }))), We([St, _r]);
		}, Kn.insertData = function(x) {
			if (QO.getSelectedNodeByType(Kn, "code") != null) {
				var Be = x.getData("text/plain");
				Bf.insertText(Kn, Be);
			} else St(x);
		}, Kn;
	},
	renderElems: [{
		type: "pre",
		renderElem: function(x, Be, We) {
			return Pg("pre", null, Be);
		}
	}, {
		type: "code",
		renderElem: function(x, Be, We) {
			return Pg("code", null, Be);
		}
	}],
	elemsToHtml: [{
		type: "code",
		elemToHtml: function(x, Be) {
			return "<code>" + Be + "</code>";
		}
	}, {
		type: "pre",
		elemToHtml: function(x, Be) {
			return "<pre>" + Be + "</pre>";
		}
	}],
	preParseHtml: [{
		selector: "pre>code",
		preParseHtml: function(x) {
			var Be = Mp(x);
			if (QR(Be) !== "code") return x;
			var We = Be.find("xmp");
			if (We.length === 0) return x;
			var St = We.text();
			return We.remove(), Be.text(St), Be[0];
		}
	}],
	parseElemsHtml: [{
		selector: "pre:not([data-w-e-type])>code",
		parseElemHtml: function(x, Be, We) {
			return {
				type: "code",
				language: "",
				children: [{ text: Mp(x)[0].textContent || "" }]
			};
		}
	}, {
		selector: "pre:not([data-w-e-type])",
		parseElemHtml: function(x, Be, We) {
			var St = Mp(x);
			return (Be = Be.filter((function(x) {
				return QO.getNodeType(x) === "code";
			}))).length === 0 && (Be = [{
				type: "code",
				language: "",
				children: [{ text: St[0].textContent || "" }]
			}]), {
				type: "pre",
				children: Be.filter((function(x) {
					return QO.getNodeType(x) === "code";
				}))
			};
		}
	}]
}, Gq = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return x.isFullScreen;
	}, x.prototype.isDisabled = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {
		x.isFullScreen ? x.unFullScreen() : x.fullScreen();
	}, x;
}(), qq = { menus: [{
	key: "fullScreen",
	factory: function() {
		return new Gq();
	}
}] }, Kq = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !!qf.isExpanded(Be);
	}, x.prototype.exec = function(x, Be) {
		var We = x.selection;
		if (We != null) {
			var St = [We.anchor.path[0]];
			md.insertNodes(x, {
				type: "paragraph",
				children: [{ text: "" }]
			}, { at: St }), x.select(Bf.start(x, St));
		}
	}, x;
}(), Yq = [
	nz,
	e$,
	vq,
	Eq,
	Oq,
	Bq,
	J$,
	Nq,
	hH,
	E$,
	Wq,
	dH,
	Vz,
	cM,
	nH,
	_q,
	qq,
	{ menus: [{
		key: "enter",
		factory: function() {
			return new Kq();
		}
	}] }
];
MP("en", { listModule: {
	unOrderedList: "Unordered list",
	orderedList: "Ordered list"
} }), MP("zh-CN", { listModule: {
	unOrderedList: "无序列表",
	orderedList: "有序列表"
} });
var Xq = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Zq(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var Jq, Qq, eK = function(x) {
	return x && x.Math == Math && x;
}, tK = eK(typeof globalThis == "object" && globalThis) || eK(typeof window == "object" && window) || eK(typeof self == "object" && self) || eK(typeof Xq == "object" && Xq) || function() {
	return this;
}() || Function("return this")(), nK = Function.prototype, rK = nK.bind, oK = nK.call, iK = rK && rK.bind(oK), aK = rK ? function(x) {
	return x && iK(oK, x);
} : function(x) {
	return x && function() {
		return oK.apply(x, arguments);
	};
}, uK = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, sK = aK({}.toString), lK = aK("".slice), cK = function(x) {
	return lK(sK(x), 8, -1);
}, fK = tK.Object, dK = aK("".split), pK = uK((function() {
	return !fK("z").propertyIsEnumerable(0);
})) ? function(x) {
	return cK(x) == "String" ? dK(x, "") : fK(x);
} : fK, hK = tK.TypeError, gK = function(x) {
	if (x == null) throw hK("Can't call method on " + x);
	return x;
}, vK = function(x) {
	return pK(gK(x));
}, yK = Object.defineProperty, mK = function(x, Be) {
	try {
		yK(tK, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		tK[x] = Be;
	}
	return Be;
}, bK = tK["__core-js_shared__"] || mK("__core-js_shared__", {}), wK = Zq((function(x) {
	(x.exports = function(x, Be) {
		return bK[x] || (bK[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), EK = tK.Object, DK = function(x) {
	return EK(gK(x));
}, SK = aK({}.hasOwnProperty), xK = Object.hasOwn || function(x, Be) {
	return SK(DK(x), Be);
}, CK = 0, AK = Math.random(), OK = aK(1 .toString), kK = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + OK(++CK + AK, 36);
}, BK = function(x) {
	return typeof x == "function";
}, FK = function(x) {
	return BK(x) ? x : void 0;
}, TK = function(x, Be) {
	return arguments.length < 2 ? FK(tK[x]) : tK[x] && tK[x][Be];
}, _K = TK("navigator", "userAgent") || "", PK = tK.process, jK = tK.Deno, NK = PK && PK.versions || jK && jK.version, IK = NK && NK.v8;
IK && (Qq = (Jq = IK.split("."))[0] > 0 && Jq[0] < 4 ? 1 : +(Jq[0] + Jq[1])), !Qq && _K && (!(Jq = _K.match(/Edge\/(\d+)/)) || Jq[1] >= 74) && (Jq = _K.match(/Chrome\/(\d+)/)) && (Qq = +Jq[1]);
var LK, RK = Qq, MK = !!Object.getOwnPropertySymbols && !uK((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && RK && RK < 41;
})), zK = MK && !Symbol.sham && typeof Symbol.iterator == "symbol", $K = wK("wks"), HK = tK.Symbol, VK = HK && HK.for, UK = zK ? HK : HK && HK.withoutSetter || kK, WK = function(x) {
	if (!xK($K, x) || !MK && typeof $K[x] != "string") {
		var Be = "Symbol." + x;
		MK && xK(HK, x) ? $K[x] = HK[x] : $K[x] = zK && VK ? VK(Be) : UK(Be);
	}
	return $K[x];
}, GK = function(x) {
	return typeof x == "object" ? x !== null : BK(x);
}, qK = tK.String, KK = tK.TypeError, YK = function(x) {
	if (GK(x)) return x;
	throw KK(qK(x) + " is not an object");
}, XK = !uK((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), ZK = tK.document, JK = GK(ZK) && GK(ZK.createElement), QK = function(x) {
	return JK ? ZK.createElement(x) : {};
}, eY = !XK && !uK((function() {
	return Object.defineProperty(QK("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), tY = Function.prototype.call, nY = tY.bind ? tY.bind(tY) : function() {
	return tY.apply(tY, arguments);
}, rY = aK({}.isPrototypeOf), oY = tK.Object, iY = zK ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = TK("Symbol");
	return BK(Be) && rY(Be.prototype, oY(x));
}, aY = tK.String, uY = function(x) {
	try {
		return aY(x);
	} catch {
		return "Object";
	}
}, sY = tK.TypeError, lY = function(x) {
	if (BK(x)) return x;
	throw sY(uY(x) + " is not a function");
}, cY = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : lY(We);
}, fY = tK.TypeError, dY = tK.TypeError, pY = WK("toPrimitive"), hY = function(x) {
	var Be = function(x, Be) {
		if (!GK(x) || iY(x)) return x;
		var We, St = cY(x, pY);
		if (St) {
			if (Be === void 0 && (Be = "default"), We = nY(St, x, Be), !GK(We) || iY(We)) return We;
			throw dY("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && BK(We = x.toString) && !GK(St = nY(We, x)) || BK(We = x.valueOf) && !GK(St = nY(We, x)) || Be !== "string" && BK(We = x.toString) && !GK(St = nY(We, x))) return St;
			throw fY("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return iY(Be) ? Be : Be + "";
}, gY = tK.TypeError, vY = Object.defineProperty, yY = { f: XK ? vY : function(x, Be, We) {
	if (YK(x), Be = hY(Be), YK(We), eY) try {
		return vY(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw gY("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, mY = Math.ceil, bY = Math.floor, wY = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? bY : mY)(Be);
}, EY = Math.max, DY = Math.min, SY = function(x, Be) {
	var We = wY(x);
	return We < 0 ? EY(We + Be, 0) : DY(We, Be);
}, xY = Math.min, CY = function(x) {
	return x > 0 ? xY(wY(x), 9007199254740991) : 0;
}, AY = function(x) {
	return CY(x.length);
}, OY = function(x) {
	return function(Be, We, St) {
		var Kn, _r = vK(Be), Li = AY(_r), fa = SY(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}, kY = {
	includes: OY(!0),
	indexOf: OY(!1)
}, BY = {}, FY = kY.indexOf, TY = aK([].push), _Y = function(x, Be) {
	var We, St = vK(x), Kn = 0, _r = [];
	for (We in St) !xK(BY, We) && xK(St, We) && TY(_r, We);
	for (; Be.length > Kn;) xK(St, We = Be[Kn++]) && (~FY(_r, We) || TY(_r, We));
	return _r;
}, PY = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], jY = Object.keys || function(x) {
	return _Y(x, PY);
}, NY = XK ? Object.defineProperties : function(x, Be) {
	YK(x);
	for (var We, St = vK(Be), Kn = jY(Be), _r = Kn.length, Li = 0; _r > Li;) yY.f(x, We = Kn[Li++], St[We]);
	return x;
}, IY = TK("document", "documentElement"), LY = wK("keys"), RY = function(x) {
	return LY[x] || (LY[x] = kK(x));
}, MY = RY("IE_PROTO"), zY = function() {}, $Y = function(x) {
	return "<script>" + x + "<\/script>";
}, HY = function(x) {
	x.write($Y("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, VY = function() {
	try {
		LK = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	VY = typeof document < "u" ? document.domain && LK ? HY(LK) : ((Be = QK("iframe")).style.display = "none", IY.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write($Y("document.F=Object")), x.close(), x.F) : HY(LK);
	for (var We = PY.length; We--;) delete VY.prototype[PY[We]];
	return VY();
};
BY[MY] = !0;
var UY = Object.create || function(x, Be) {
	var We;
	return x === null ? We = VY() : (zY.prototype = YK(x), We = new zY(), zY.prototype = null, We[MY] = x), Be === void 0 ? We : NY(We, Be);
}, WY = WK("unscopables"), GY = Array.prototype;
GY[WY] ?? yY.f(GY, WY, {
	configurable: !0,
	value: UY(null)
});
var qY = function(x) {
	GY[WY][x] = !0;
}, KY = {}, YY = aK(Function.toString);
BK(bK.inspectSource) || (bK.inspectSource = function(x) {
	return YY(x);
});
var XY, ZY, JY, QY = bK.inspectSource, eX = tK.WeakMap, tX = BK(eX) && /native code/.test(QY(eX)), nX = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, rX = XK ? function(x, Be, We) {
	return yY.f(x, Be, nX(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, oX = tK.TypeError, iX = tK.WeakMap;
if (tX || bK.state) {
	var aX = bK.state ||= new iX(), uX = aK(aX.get), sX = aK(aX.has), lX = aK(aX.set);
	XY = function(x, Be) {
		if (sX(aX, x)) throw new oX("Object already initialized");
		return Be.facade = x, lX(aX, x, Be), Be;
	}, ZY = function(x) {
		return uX(aX, x) || {};
	}, JY = function(x) {
		return sX(aX, x);
	};
} else {
	var cX = RY("state");
	BY[cX] = !0, XY = function(x, Be) {
		if (xK(x, cX)) throw new oX("Object already initialized");
		return Be.facade = x, rX(x, cX, Be), Be;
	}, ZY = function(x) {
		return xK(x, cX) ? x[cX] : {};
	}, JY = function(x) {
		return xK(x, cX);
	};
}
var fX, dX, pX, hX = {
	set: XY,
	get: ZY,
	has: JY,
	enforce: function(x) {
		return JY(x) ? ZY(x) : XY(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!GK(Be) || (We = ZY(Be)).type !== x) throw oX("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, gX = {}.propertyIsEnumerable, vX = Object.getOwnPropertyDescriptor, yX = { f: vX && !gX.call({ 1: 2 }, 1) ? function(x) {
	var Be = vX(this, x);
	return !!Be && Be.enumerable;
} : gX }, mX = Object.getOwnPropertyDescriptor, bX = { f: XK ? mX : function(x, Be) {
	if (x = vK(x), Be = hY(Be), eY) try {
		return mX(x, Be);
	} catch {}
	if (xK(x, Be)) return nX(!nY(yX.f, x, Be), x[Be]);
} }, wX = Function.prototype, EX = XK && Object.getOwnPropertyDescriptor, DX = xK(wX, "name"), SX = {
	EXISTS: DX,
	PROPER: DX && function() {}.name === "something",
	CONFIGURABLE: DX && (!XK || XK && EX(wX, "name").configurable)
}, xX = Zq((function(x) {
	var Be = SX.CONFIGURABLE, We = hX.get, St = hX.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		BK(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!xK(_r, "name") || Be && _r.name !== Tl) && rX(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === tK ? Xo ? x[We] = _r : mK(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : rX(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return BK(this) && We(this).source || QY(this);
	}));
})), CX = PY.concat("length", "prototype"), AX = { f: Object.getOwnPropertyNames || function(x) {
	return _Y(x, CX);
} }, OX = { f: Object.getOwnPropertySymbols }, kX = aK([].concat), BX = TK("Reflect", "ownKeys") || function(x) {
	var Be = AX.f(YK(x)), We = OX.f;
	return We ? kX(Be, We(x)) : Be;
}, FX = function(x, Be) {
	for (var We = BX(Be), St = yY.f, Kn = bX.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		xK(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, TX = /#|\.prototype\./, _X = function(x, Be) {
	var We = jX[PX(x)];
	return We == IX || We != NX && (BK(Be) ? uK(Be) : !!Be);
}, PX = _X.normalize = function(x) {
	return String(x).replace(TX, ".").toLowerCase();
}, jX = _X.data = {}, NX = _X.NATIVE = "N", IX = _X.POLYFILL = "P", LX = _X, RX = bX.f, MX = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? tK : Xo ? tK[fa] || mK(fa, {}) : (tK[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = RX(We, St)) && Li.value : We[St], !LX(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			FX(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && rX(_r, "sham", !0), xX(We, St, _r, x);
	}
}, zX = !uK((function() {
	function x() {}
	return x.prototype.constructor = null, Object.getPrototypeOf(new x()) !== x.prototype;
})), $X = RY("IE_PROTO"), HX = tK.Object, VX = HX.prototype, UX = zX ? HX.getPrototypeOf : function(x) {
	var Be = DK(x);
	if (xK(Be, $X)) return Be[$X];
	var We = Be.constructor;
	return BK(We) && Be instanceof We ? We.prototype : Be instanceof HX ? VX : null;
}, WX = WK("iterator"), GX = !1;
[].keys && ("next" in (pX = [].keys()) ? (dX = UX(UX(pX))) !== Object.prototype && (fX = dX) : GX = !0), (fX == null || uK((function() {
	var x = {};
	return fX[WX].call(x) !== x;
}))) && (fX = {}), BK(fX[WX]) || xX(fX, WX, (function() {
	return this;
}));
var KX = {
	IteratorPrototype: fX,
	BUGGY_SAFARI_ITERATORS: GX
}, YX = yY.f, XX = WK("toStringTag"), ZX = function(x, Be, We) {
	x && !xK(x = We ? x : x.prototype, XX) && YX(x, XX, {
		configurable: !0,
		value: Be
	});
}, JX = KX.IteratorPrototype, QX = function() {
	return this;
}, eZ = tK.String, tZ = tK.TypeError, nZ = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var x, Be = !1, We = {};
	try {
		(x = aK(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(We, []), Be = We instanceof Array;
	} catch {}
	return function(We, St) {
		return YK(We), function(x) {
			if (typeof x == "object" || BK(x)) return x;
			throw tZ("Can't set " + eZ(x) + " as a prototype");
		}(St), Be ? x(We, St) : We.__proto__ = St, We;
	};
}() : void 0), rZ = SX.PROPER, oZ = SX.CONFIGURABLE, iZ = KX.IteratorPrototype, aZ = KX.BUGGY_SAFARI_ITERATORS, uZ = WK("iterator"), sZ = function() {
	return this;
}, lZ = function(x, Be, We, St, Kn, _r, Li) {
	(function(x, Be, We, St) {
		var Kn = Be + " Iterator";
		x.prototype = UY(JX, { next: nX(1, We) }), ZX(x, Kn, !1), KY[Kn] = QX;
	})(We, Be, St);
	var fa, Vo, Xo, Tc = function(x) {
		if (x === Kn && Lm) return Lm;
		if (!aZ && x in Uu) return Uu[x];
		switch (x) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new We(this, x);
			};
		}
		return function() {
			return new We(this);
		};
	}, Tl = Be + " Iterator", Al = !1, Uu = x.prototype, Ff = Uu[uZ] || Uu["@@iterator"] || Kn && Uu[Kn], Lm = !aZ && Ff || Tc(Kn), Bm = Be == "Array" && Uu.entries || Ff;
	if (Bm && (fa = UX(Bm.call(new x()))) !== Object.prototype && fa.next && (UX(fa) !== iZ && (nZ ? nZ(fa, iZ) : BK(fa[uZ]) || xX(fa, uZ, sZ)), ZX(fa, Tl, !0)), rZ && Kn == "values" && Ff && Ff.name !== "values" && (oZ ? rX(Uu, "name", "values") : (Al = !0, Lm = function() {
		return nY(Ff, this);
	})), Kn) if (Vo = {
		values: Tc("values"),
		keys: _r ? Lm : Tc("keys"),
		entries: Tc("entries")
	}, Li) for (Xo in Vo) (aZ || Al || !(Xo in Uu)) && xX(Uu, Xo, Vo[Xo]);
	else MX({
		target: Be,
		proto: !0,
		forced: aZ || Al
	}, Vo);
	return Uu[uZ] !== Lm && xX(Uu, uZ, Lm, { name: Kn }), KY[Be] = Lm, Vo;
}, cZ = hX.set, fZ = hX.getterFor("Array Iterator"), dZ = lZ(Array, "Array", (function(x, Be) {
	cZ(this, {
		type: "Array Iterator",
		target: vK(x),
		index: 0,
		kind: Be
	});
}), (function() {
	var x = fZ(this), Be = x.target, We = x.kind, St = x.index++;
	return !Be || St >= Be.length ? (x.target = void 0, {
		value: void 0,
		done: !0
	}) : We == "keys" ? {
		value: St,
		done: !1
	} : We == "values" ? {
		value: Be[St],
		done: !1
	} : {
		value: [St, Be[St]],
		done: !1
	};
}), "values");
KY.Arguments = KY.Array, qY("keys"), qY("values"), qY("entries");
var pZ = {};
pZ[WK("toStringTag")] = "z";
var hZ = String(pZ) === "[object z]", gZ = WK("toStringTag"), vZ = tK.Object, yZ = cK(function() {
	return arguments;
}()) == "Arguments", mZ = hZ ? cK : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = vZ(x), gZ)) == "string" ? We : yZ ? cK(Be) : (St = cK(Be)) == "Object" && BK(Be.callee) ? "Arguments" : St;
}, bZ = hZ ? {}.toString : function() {
	return "[object " + mZ(this) + "]";
};
hZ || xX(Object.prototype, "toString", bZ, { unsafe: !0 });
var wZ = tK.String, EZ = function(x) {
	if (mZ(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return wZ(x);
}, DZ = aK("".charAt), SZ = aK("".charCodeAt), xZ = aK("".slice), CZ = function(x) {
	return function(Be, We) {
		var St, Kn, _r = EZ(gK(Be)), Li = wY(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = SZ(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = SZ(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? DZ(_r, Li) : St : x ? xZ(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}, AZ = {
	codeAt: CZ(!1),
	charAt: CZ(!0)
}, OZ = AZ.charAt, kZ = hX.set, BZ = hX.getterFor("String Iterator");
lZ(String, "String", (function(x) {
	kZ(this, {
		type: "String Iterator",
		string: EZ(x),
		index: 0
	});
}), (function() {
	var x, Be = BZ(this), We = Be.string, St = Be.index;
	return St >= We.length ? {
		value: void 0,
		done: !0
	} : (x = OZ(We, St), Be.index += x.length, {
		value: x,
		done: !1
	});
}));
var FZ = function(x, Be, We) {
	for (var St in Be) xX(x, St, Be[St], We);
	return x;
}, TZ = tK.Array, _Z = Math.max, PZ = AX.f, jZ = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], NZ = { f: function(x) {
	return jZ && cK(x) == "Window" ? function(x) {
		try {
			return PZ(x);
		} catch {
			return function(x, Be, We) {
				for (var St, Kn, _r, Li, fa = AY(x), Vo = SY(void 0, fa), Xo = SY(fa, fa), Tc = TZ(_Z(Xo - Vo, 0)), Tl = 0; Vo < Xo; Vo++, Tl++) St = Tc, Kn = Tl, _r = x[Vo], (Li = hY(Kn)) in St ? yY.f(St, Li, nX(0, _r)) : St[Li] = _r;
				return Tc.length = Tl, Tc;
			}(jZ);
		}
	}(x) : PZ(vK(x));
} }, IZ = uK((function() {
	if (typeof ArrayBuffer == "function") {
		var x = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(x) && Object.defineProperty(x, "a", { value: 8 });
	}
})), LZ = Object.isExtensible, RZ = uK((function() {
	LZ(1);
})) || IZ ? function(x) {
	return !!GK(x) && (!IZ || cK(x) != "ArrayBuffer") && (!LZ || LZ(x));
} : LZ, MZ = !uK((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), zZ = Zq((function(x) {
	var Be = yY.f, We = !1, St = kK("meta"), Kn = 0, _r = function(x) {
		Be(x, St, { value: {
			objectID: "O" + Kn++,
			weakData: {}
		} });
	}, Li = x.exports = {
		enable: function() {
			Li.enable = function() {}, We = !0;
			var x = AX.f, Be = aK([].splice), Kn = {};
			Kn[St] = 1, x(Kn).length && (AX.f = function(We) {
				for (var Kn = x(We), _r = 0, Li = Kn.length; _r < Li; _r++) if (Kn[_r] === St) {
					Be(Kn, _r, 1);
					break;
				}
				return Kn;
			}, MX({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: NZ.f }));
		},
		fastKey: function(x, Be) {
			if (!GK(x)) return typeof x == "symbol" ? x : (typeof x == "string" ? "S" : "P") + x;
			if (!xK(x, St)) {
				if (!RZ(x)) return "F";
				if (!Be) return "E";
				_r(x);
			}
			return x[St].objectID;
		},
		getWeakData: function(x, Be) {
			if (!xK(x, St)) {
				if (!RZ(x)) return !0;
				if (!Be) return !1;
				_r(x);
			}
			return x[St].weakData;
		},
		onFreeze: function(x) {
			return MZ && We && RZ(x) && !xK(x, St) && _r(x), x;
		}
	};
	BY[St] = !0;
})), $Z = aK(aK.bind), HZ = function(x, Be) {
	return lY(x), Be === void 0 ? x : $Z ? $Z(x, Be) : function() {
		return x.apply(Be, arguments);
	};
}, VZ = WK("iterator"), UZ = Array.prototype, WZ = WK("iterator"), GZ = function(x) {
	if (x != null) return cY(x, WZ) || cY(x, "@@iterator") || KY[mZ(x)];
}, qZ = tK.TypeError, KZ = function(x, Be, We) {
	var St, Kn;
	YK(x);
	try {
		if (!(St = cY(x, "return"))) {
			if (Be === "throw") throw We;
			return We;
		}
		St = nY(St, x);
	} catch (x) {
		Kn = !0, St = x;
	}
	if (Be === "throw") throw We;
	if (Kn) throw St;
	return YK(St), We;
}, YZ = tK.TypeError, XZ = function(x, Be) {
	this.stopped = x, this.result = Be;
}, ZZ = XZ.prototype, JZ = function(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo, Tc, Tl = We && We.that, Al = !(!We || !We.AS_ENTRIES), Uu = !(!We || !We.IS_ITERATOR), Ff = !(!We || !We.INTERRUPTED), Lm = HZ(Be, Tl), Bm = function(x) {
		return St && KZ(St, "normal", x), new XZ(!0, x);
	}, x_ = function(x) {
		return Al ? (YK(x), Ff ? Lm(x[0], x[1], Bm) : Lm(x[0], x[1])) : Ff ? Lm(x, Bm) : Lm(x);
	};
	if (Uu) St = x;
	else {
		if (!(Kn = GZ(x))) throw YZ(uY(x) + " is not iterable");
		if ((Tc = Kn) !== void 0 && (KY.Array === Tc || UZ[VZ] === Tc)) {
			for (_r = 0, Li = AY(x); Li > _r; _r++) if ((fa = x_(x[_r])) && rY(ZZ, fa)) return fa;
			return new XZ(!1);
		}
		St = function(x, Be) {
			var We = arguments.length < 2 ? GZ(x) : Be;
			if (lY(We)) return YK(nY(We, x));
			throw qZ(uY(x) + " is not iterable");
		}(x, Kn);
	}
	for (Vo = St.next; !(Xo = nY(Vo, St)).done;) {
		try {
			fa = x_(Xo.value);
		} catch (x) {
			KZ(St, "throw", x);
		}
		if (typeof fa == "object" && fa && rY(ZZ, fa)) return fa;
	}
	return new XZ(!1);
}, QZ = tK.TypeError, eJ = function(x, Be) {
	if (rY(Be, x)) return x;
	throw QZ("Incorrect invocation");
}, tJ = WK("iterator"), nJ = !1;
try {
	var rJ = 0, oJ = {
		next: function() {
			return { done: !!rJ++ };
		},
		return: function() {
			nJ = !0;
		}
	};
	oJ[tJ] = function() {
		return this;
	}, Array.from(oJ, (function() {
		throw 2;
	}));
} catch {}
var iJ = Array.isArray || function(x) {
	return cK(x) == "Array";
}, aJ = function() {}, uJ = [], sJ = TK("Reflect", "construct"), lJ = /^\s*(?:class|function)\b/, cJ = aK(lJ.exec), fJ = !lJ.exec(aJ), dJ = function(x) {
	if (!BK(x)) return !1;
	try {
		return sJ(aJ, uJ, x), !0;
	} catch {
		return !1;
	}
}, pJ = !sJ || uK((function() {
	var x;
	return dJ(dJ.call) || !dJ(Object) || !dJ((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!BK(x)) return !1;
	switch (mZ(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return fJ || !!cJ(lJ, QY(x));
} : dJ, hJ = WK("species"), gJ = tK.Array, vJ = function(x, Be) {
	return new (function(x) {
		var Be;
		return iJ(x) && (Be = x.constructor, (pJ(Be) && (Be === gJ || iJ(Be.prototype)) || GK(Be) && (Be = Be[hJ]) === null) && (Be = void 0)), Be === void 0 ? gJ : Be;
	}(x))(Be === 0 ? 0 : Be);
}, yJ = aK([].push), mJ = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = DK(Vo), Lm = pK(Ff), Bm = HZ(Xo, Tc), x_ = AY(Lm), uy = 0, dx = Tl || vJ, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: yJ(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: yJ(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, bJ = {
	forEach: mJ(0),
	map: mJ(1),
	filter: mJ(2),
	some: mJ(3),
	every: mJ(4),
	find: mJ(5),
	findIndex: mJ(6),
	filterReject: mJ(7)
}, wJ = zZ.getWeakData, EJ = hX.set, DJ = hX.getterFor, SJ = bJ.find, xJ = bJ.findIndex, CJ = aK([].splice), AJ = 0, OJ = function(x) {
	return x.frozen ||= new kJ();
}, kJ = function() {
	this.entries = [];
}, BJ = function(x, Be) {
	return SJ(x.entries, (function(x) {
		return x[0] === Be;
	}));
};
kJ.prototype = {
	get: function(x) {
		var Be = BJ(this, x);
		if (Be) return Be[1];
	},
	has: function(x) {
		return !!BJ(this, x);
	},
	set: function(x, Be) {
		var We = BJ(this, x);
		We ? We[1] = Be : this.entries.push([x, Be]);
	},
	delete: function(x) {
		var Be = xJ(this.entries, (function(Be) {
			return Be[0] === x;
		}));
		return ~Be && CJ(this.entries, Be, 1), !!~Be;
	}
};
var FJ, TJ = { getConstructor: function(x, Be, We, St) {
	var Kn = x((function(x, Kn) {
		eJ(x, _r), EJ(x, {
			type: Be,
			id: AJ++,
			frozen: void 0
		}), Kn != null && JZ(Kn, x[St], {
			that: x,
			AS_ENTRIES: We
		});
	})), _r = Kn.prototype, Li = DJ(Be), fa = function(x, Be, We) {
		var St = Li(x), Kn = wJ(YK(Be), !0);
		return !0 === Kn ? OJ(St).set(Be, We) : Kn[St.id] = We, x;
	};
	return FZ(_r, {
		delete: function(x) {
			var Be = Li(this);
			if (!GK(x)) return !1;
			var We = wJ(x);
			return !0 === We ? OJ(Be).delete(x) : We && xK(We, Be.id) && delete We[Be.id];
		},
		has: function(x) {
			var Be = Li(this);
			if (!GK(x)) return !1;
			var We = wJ(x);
			return !0 === We ? OJ(Be).has(x) : We && xK(We, Be.id);
		}
	}), FZ(_r, We ? {
		get: function(x) {
			var Be = Li(this);
			if (GK(x)) {
				var We = wJ(x);
				return !0 === We ? OJ(Be).get(x) : We ? We[Be.id] : void 0;
			}
		},
		set: function(x, Be) {
			return fa(this, x, Be);
		}
	} : { add: function(x) {
		return fa(this, x, !0);
	} }), Kn;
} }, _J = hX.enforce, PJ = !tK.ActiveXObject && "ActiveXObject" in tK, jJ = function(x) {
	return function() {
		return x(this, arguments.length ? arguments[0] : void 0);
	};
}, NJ = function(x, Be, We) {
	var St = x.indexOf("Map") !== -1, Kn = x.indexOf("Weak") !== -1, _r = St ? "set" : "add", Li = tK[x], fa = Li && Li.prototype, Vo = Li, Xo = {}, Tc = function(x) {
		var Be = aK(fa[x]);
		xX(fa, x, x == "add" ? function(x) {
			return Be(this, x === 0 ? 0 : x), this;
		} : x == "delete" ? function(x) {
			return !(Kn && !GK(x)) && Be(this, x === 0 ? 0 : x);
		} : x == "get" ? function(x) {
			return Kn && !GK(x) ? void 0 : Be(this, x === 0 ? 0 : x);
		} : x == "has" ? function(x) {
			return !(Kn && !GK(x)) && Be(this, x === 0 ? 0 : x);
		} : function(x, We) {
			return Be(this, x === 0 ? 0 : x, We), this;
		});
	};
	if (LX(x, !BK(Li) || !(Kn || fa.forEach && !uK((function() {
		new Li().entries().next();
	}))))) Vo = We.getConstructor(Be, x, St, _r), zZ.enable();
	else if (LX(x, !0)) {
		var Tl = new Vo(), Al = Tl[_r](Kn ? {} : -0, 1) != Tl, Uu = uK((function() {
			Tl.has(1);
		})), Ff = function(x, Be) {
			if (!nJ) return !1;
			var We = !1;
			try {
				var St = {};
				St[tJ] = function() {
					return { next: function() {
						return { done: We = !0 };
					} };
				}, function(x) {
					new Li(x);
				}(St);
			} catch {}
			return We;
		}(), Lm = !Kn && uK((function() {
			for (var x = new Li(), Be = 5; Be--;) x[_r](Be, Be);
			return !x.has(-0);
		}));
		Ff || ((Vo = Be((function(x, Be) {
			eJ(x, fa);
			var We = function(x, Be, We) {
				var St, Kn;
				return nZ && BK(St = Be.constructor) && St !== We && GK(Kn = St.prototype) && Kn !== We.prototype && nZ(x, Kn), x;
			}(new Li(), x, Vo);
			return Be != null && JZ(Be, We[_r], {
				that: We,
				AS_ENTRIES: St
			}), We;
		}))).prototype = fa, fa.constructor = Vo), (Uu || Lm) && (Tc("delete"), Tc("has"), St && Tc("get")), (Lm || Al) && Tc(_r), Kn && fa.clear && delete fa.clear;
	}
	return Xo[x] = Vo, MX({
		global: !0,
		forced: Vo != Li
	}, Xo), ZX(Vo, x), Kn || We.setStrong(Vo, x, St), Vo;
}("WeakMap", jJ, TJ);
if (tX && PJ) {
	FJ = TJ.getConstructor(jJ, "WeakMap", !0), zZ.enable();
	var IJ = NJ.prototype, LJ = aK(IJ.delete), RJ = aK(IJ.has), MJ = aK(IJ.get), zJ = aK(IJ.set);
	FZ(IJ, {
		delete: function(x) {
			if (GK(x) && !RZ(x)) {
				var Be = _J(this);
				return Be.frozen ||= new FJ(), LJ(this, x) || Be.frozen.delete(x);
			}
			return LJ(this, x);
		},
		has: function(x) {
			if (GK(x) && !RZ(x)) {
				var Be = _J(this);
				return Be.frozen ||= new FJ(), RJ(this, x) || Be.frozen.has(x);
			}
			return RJ(this, x);
		},
		get: function(x) {
			if (GK(x) && !RZ(x)) {
				var Be = _J(this);
				return Be.frozen ||= new FJ(), RJ(this, x) ? MJ(this, x) : Be.frozen.get(x);
			}
			return MJ(this, x);
		},
		set: function(x, Be) {
			if (GK(x) && !RZ(x)) {
				var We = _J(this);
				We.frozen ||= new FJ(), RJ(this, x) ? zJ(this, x, Be) : We.frozen.set(x, Be);
			} else zJ(this, x, Be);
			return this;
		}
	});
}
var $J = {
	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
}, HJ = QK("span").classList, VJ = HJ && HJ.constructor && HJ.constructor.prototype, UJ = VJ === Object.prototype ? void 0 : VJ, WJ = WK("iterator"), GJ = WK("toStringTag"), qJ = dZ.values, KJ = function(x, Be) {
	if (x) {
		if (x[WJ] !== qJ) try {
			rX(x, WJ, qJ);
		} catch {
			x[WJ] = qJ;
		}
		if (x[GJ] || rX(x, GJ, Be), $J[Be]) {
			for (var We in dZ) if (x[We] !== dZ[We]) try {
				rX(x, We, dZ[We]);
			} catch {
				x[We] = dZ[We];
			}
		}
	}
};
for (var YJ in $J) KJ(tK[YJ] && tK[YJ].prototype, YJ);
KJ(UJ, "DOMTokenList");
var XJ = /* @__PURE__ */ new WeakMap(), ZJ = {
	type: "list-item",
	renderElem: function(x, Be, We) {
		XJ.set(x, We);
		var St = x, Kn = St.level, _r = Kn === void 0 ? 0 : Kn, Li = St.ordered, fa = { margin: "5px 0 5px " + 20 * _r + "px" }, Vo = "";
		Vo = Li !== void 0 && Li ? function(x, Be) {
			var We = Be, St = We.type, Kn = We.level, _r = Kn === void 0 ? 0 : Kn, Li = We.ordered, fa = Li !== void 0 && Li;
			if (!fa) return -1;
			var Vo = 1, Xo = Be, Tc = QO.findPath(x, Xo);
			if (Tc[0] === 0) return 1;
			for (; Tc[0] > 0;) {
				var Tl = Mf.previous(Tc), Al = Bf.node(x, Tl);
				if (Al == null) break;
				var Uu = Al[0], Ff = Uu.level, Lm = Ff === void 0 ? 0 : Ff, Bm = Uu.type, x_ = Uu.ordered;
				if (Bm !== St || Lm < _r) break;
				if (Lm === _r) {
					if (x_ !== fa) break;
					Vo++;
				}
				Xo = Uu, Tc = Tl;
			}
			return Vo;
		}(We, x) + "." : function(x) {
			x === void 0 && (x = 0);
			var Be = "";
			switch (x) {
				case 0:
					Be = "•";
					break;
				case 1:
					Be = "◦";
					break;
				default: Be = "▪";
			}
			return Be;
		}(_r);
		var Xo = function(x) {
			var Be, We = x.children || [], St = We.length;
			if (St === 0) return "";
			for (var Kn = 0; Kn < St && !Be; Kn++) {
				var _r = We[Kn];
				ed.isText(_r) && (Be = _r);
			}
			return Be == null ? "" : Be.color || "";
		}(x);
		return Pg("div", { style: fa }, Pg("span", {
			contentEditable: !1,
			style: {
				marginRight: "0.5em",
				color: Xo
			},
			"data-w-e-reserve": !0
		}, Vo), Pg("span", null, Be));
	}
}, JJ = function(x, Be) {
	return JJ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, Be) {
		x.__proto__ = Be;
	} || function(x, Be) {
		for (var We in Be) Object.prototype.hasOwnProperty.call(Be, We) && (x[We] = Be[We]);
	}, JJ(x, Be);
};
function QJ(x, Be) {
	if (typeof Be != "function" && Be !== null) throw TypeError("Class extends value " + String(Be) + " is not a constructor or null");
	function We() {
		this.constructor = x;
	}
	JJ(x, Be), x.prototype = Be === null ? Object.create(Be) : (We.prototype = Be.prototype, new We());
}
function eQ(x) {
	var Be = typeof Symbol == "function" && Symbol.iterator, We = Be && x[Be], St = 0;
	if (We) return We.call(x);
	if (x && typeof x.length == "number") return { next: function() {
		return x && St >= x.length && (x = void 0), {
			value: x && x[St++],
			done: !x
		};
	} };
	throw TypeError(Be ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function tQ(x, Be) {
	var We = typeof Symbol == "function" && x[Symbol.iterator];
	if (!We) return x;
	var St, Kn, _r = We.call(x), Li = [];
	try {
		for (; (Be === void 0 || Be-- > 0) && !(St = _r.next()).done;) Li.push(St.value);
	} catch (x) {
		Kn = { error: x };
	} finally {
		try {
			St && !St.done && (We = _r.return) && We.call(_r);
		} finally {
			if (Kn) throw Kn.error;
		}
	}
	return Li;
}
function nQ(x) {
	return Bf.nodes(x, {
		at: x.selection || void 0,
		match: function(Be) {
			return QO.findPath(x, Be).length === 1;
		}
	});
}
var rQ = kY.includes;
MX({
	target: "Array",
	proto: !0
}, { includes: function(x) {
	return rQ(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), qY("includes");
var oQ, iQ, aQ = function() {
	var x = YK(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, uQ = tK.RegExp, sQ = uK((function() {
	var x = uQ("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), lQ = sQ || uK((function() {
	return !uQ("a", "y").sticky;
})), cQ = {
	BROKEN_CARET: sQ || uK((function() {
		var x = uQ("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: lQ,
	UNSUPPORTED_Y: sQ
}, fQ = tK.RegExp, dQ = uK((function() {
	var x = fQ(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), pQ = tK.RegExp, hQ = uK((function() {
	var x = pQ("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), gQ = hX.get, vQ = wK("native-string-replace", String.prototype.replace), yQ = RegExp.prototype.exec, mQ = yQ, bQ = aK("".charAt), wQ = aK("".indexOf), EQ = aK("".replace), DQ = aK("".slice), SQ = (iQ = /b*/g, nY(yQ, oQ = /a/, "a"), nY(yQ, iQ, "a"), oQ.lastIndex !== 0 || iQ.lastIndex !== 0), xQ = cQ.BROKEN_CARET, CQ = /()??/.exec("")[1] !== void 0;
(SQ || CQ || xQ || dQ || hQ) && (mQ = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = gQ(Vo), Tc = EZ(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = nY(mQ, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = xQ && Vo.sticky, Ff = nY(aQ, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = EQ(Ff, "y", ""), wQ(Ff, "g") === -1 && (Ff += "g"), x_ = DQ(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && bQ(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), CQ && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), SQ && (St = Vo.lastIndex), Kn = nY(yQ, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = DQ(Kn.input, Bm), Kn[0] = DQ(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : SQ && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), CQ && Kn && Kn.length > 1 && nY(vQ, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = UY(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var AQ = mQ;
MX({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== AQ
}, { exec: AQ });
var OQ = function() {
	function x() {
		this.type = "list-item", this.tag = "button";
	}
	return x.prototype.getListNode = function(x) {
		var Be = this.type;
		return QO.getSelectedNodeByType(x, Be);
	}, x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		var Be = this.getListNode(x);
		if (Be == null) return !1;
		var We = Be.ordered;
		return (We !== void 0 && We) === this.ordered;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !!QO.getSelectedElems(x).some((function(Be) {
			if (Bf.isVoid(x, Be) && Bf.isBlock(x, Be)) return !0;
			var We = Be.type;
			return !![
				"pre",
				"code",
				"table"
			].includes(We) || void 0;
		}));
	}, x.prototype.exec = function(x, Be) {
		this.isActive(x) ? md.setNodes(x, {
			type: "paragraph",
			ordered: void 0,
			level: void 0
		}) : md.setNodes(x, {
			type: "list-item",
			ordered: this.ordered,
			indent: void 0
		});
	}, x;
}(), kQ = "<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>", BQ = "<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>", FQ = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.ordered = !1, Be.title = HP("listModule.unOrderedList"), Be.iconSvg = kQ, Be;
	}
	return QJ(Be, x), Be;
}(OQ), TQ = function(x) {
	function Be() {
		var Be = x !== null && x.apply(this, arguments) || this;
		return Be.ordered = !0, Be.title = HP("listModule.orderedList"), Be.iconSvg = BQ, Be;
	}
	return QJ(Be, x), Be;
}(OQ), _Q = {
	key: "bulletedList",
	factory: function() {
		return new FQ();
	}
}, PQ = {
	key: "numberedList",
	factory: function() {
		return new TQ();
	}
}, jQ = [], NQ = {
	type: "list-item",
	elemToHtml: function(x, Be) {
		var We = "", St = "", Kn = x.ordered, _r = Kn !== void 0 && Kn ? "ol" : "ul", Li = function(x) {
			var Be = XJ.get(x);
			if (Be == null) return 0;
			var We = x, St = We.type, Kn = We.ordered, _r = Kn !== void 0 && Kn, Li = We.level, fa = Li === void 0 ? 0 : Li, Vo = QO.findPath(Be, x);
			if (Vo[0] === 0) return fa + 1;
			var Xo = Mf.previous(Vo), Tc = Bf.node(Be, Xo);
			if (!Tc) return 0;
			var Tl = tQ(Tc, 1)[0];
			if (QO.getNodeType(Tl) !== St) return fa + 1;
			var Al = Tl, Uu = Al.ordered, Ff = Uu !== void 0 && Uu, Lm = Al.level, Bm = Lm === void 0 ? 0 : Lm;
			return Bm < fa ? fa - Bm : Bm > fa ? 0 : Bm === fa ? Ff === _r ? 0 : 1 : 0;
		}(x);
		if (Li > 0) for (var fa = 0; fa < Li; fa++) We += "<" + _r + ">", jQ.push(_r);
		var Vo = function(x) {
			var Be = XJ.get(x);
			if (Be == null) return 0;
			var We = x, St = We.type, Kn = We.ordered, _r = Kn !== void 0 && Kn, Li = We.level, fa = Li === void 0 ? 0 : Li, Vo = QO.findPath(Be, x);
			if (Vo[0] === Be.children.length - 1) return fa + 1;
			var Xo = Mf.next(Vo), Tc = Bf.node(Be, Xo);
			if (!Tc) return 0;
			var Tl = tQ(Tc, 1)[0];
			if (QO.getNodeType(Tl) !== St) return fa + 1;
			var Al = Tl, Uu = Al.ordered, Ff = Uu !== void 0 && Uu, Lm = Al.level, Bm = Lm === void 0 ? 0 : Lm;
			return Bm < fa ? fa - Bm : Bm > fa ? 0 : Bm === fa ? Ff === _r ? 0 : 1 : 0;
		}(x);
		if (Vo > 0) for (fa = 0; fa < Vo; fa++) St += "</" + jQ.pop() + ">";
		return {
			html: "<li>" + Be + "</li>",
			prefix: We,
			suffix: St
		};
	}
}, IQ = WK("species"), LQ = bJ.filter;
MX({
	target: "Array",
	proto: !0,
	forced: !(RK >= 51 || !uK((function() {
		var x = [];
		return (x.constructor = {})[IQ] = function() {
			return { foo: 1 };
		}, x.filter(Boolean).foo !== 1;
	})))
}, { filter: function(x) {
	return LQ(this, x, arguments.length > 1 ? arguments[1] : void 0);
} });
var MQ = Function.prototype, zQ = MQ.apply, $Q = MQ.bind, HQ = MQ.call, VQ = typeof Reflect == "object" && Reflect.apply || ($Q ? HQ.bind(zQ) : function() {
	return HQ.apply(zQ, arguments);
}), UQ = (WK("species"), RegExp.prototype), WQ = AZ.charAt, GQ = function(x, Be, We) {
	return Be + (We ? WQ(x, Be).length : 1);
}, qQ = Math.floor, KQ = aK("".charAt), YQ = aK("".replace), XQ = aK("".slice), ZQ = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, JQ = /\$([$&'`]|\d{1,2})/g, QQ = function(x, Be, We, St, Kn, _r) {
	var Li = We + x.length, fa = St.length, Vo = JQ;
	return Kn !== void 0 && (Kn = DK(Kn), Vo = ZQ), YQ(_r, Vo, (function(_r, Vo) {
		var Xo;
		switch (KQ(Vo, 0)) {
			case "$": return "$";
			case "&": return x;
			case "`": return XQ(Be, 0, We);
			case "'": return XQ(Be, Li);
			case "<":
				Xo = Kn[XQ(Vo, 1, -1)];
				break;
			default:
				var Tc = +Vo;
				if (Tc === 0) return _r;
				if (Tc > fa) {
					var Tl = qQ(Tc / 10);
					return Tl === 0 ? _r : Tl <= fa ? St[Tl - 1] === void 0 ? KQ(Vo, 1) : St[Tl - 1] + KQ(Vo, 1) : _r;
				}
				Xo = St[Tc - 1];
		}
		return Xo === void 0 ? "" : Xo;
	}));
}, e0 = tK.TypeError, t0 = function(x, Be) {
	var We = x.exec;
	if (BK(We)) {
		var St = nY(We, x, Be);
		return St !== null && YK(St), St;
	}
	if (cK(x) === "RegExp") return nY(AQ, x, Be);
	throw e0("RegExp#exec called on incompatible receiver");
}, n0 = WK("replace"), r0 = Math.max, o0 = Math.min, i0 = aK([].concat), a0 = aK([].push), u0 = aK("".indexOf), s0 = aK("".slice), l0 = "a".replace(/./, "$0") === "$0", c0 = !!/./[n0] && /./[n0]("a", "$0") === "";
(function(x, Be, We, St) {
	var Kn = WK(x), _r = !uK((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !uK((function() {
		var x = !1, Be = /a/;
		return Be.exec = function() {
			return x = !0, null;
		}, Be[Kn](""), !x;
	}));
	if (!_r || !Li || We) {
		var fa = aK(/./[Kn]), Vo = function(x, Be, We) {
			var St = c0 ? "$" : "$0";
			return [function(x, We) {
				var St = gK(this), Kn = x == null ? void 0 : cY(x, n0);
				return Kn ? nY(Kn, x, St, We) : nY(Be, EZ(St), x, We);
			}, function(x, Kn) {
				var _r = YK(this), Li = EZ(x);
				if (typeof Kn == "string" && u0(Kn, St) === -1 && u0(Kn, "$<") === -1) {
					var fa = We(Be, _r, Li, Kn);
					if (fa.done) return fa.value;
				}
				var Vo = BK(Kn);
				Vo || (Kn = EZ(Kn));
				var Xo = _r.global;
				if (Xo) {
					var Tc = _r.unicode;
					_r.lastIndex = 0;
				}
				for (var Tl = [];;) {
					var Al = t0(_r, Li);
					if (Al === null || (a0(Tl, Al), !Xo)) break;
					EZ(Al[0]) === "" && (_r.lastIndex = GQ(Li, CY(_r.lastIndex), Tc));
				}
				for (var Uu, Ff = "", Lm = 0, Bm = 0; Bm < Tl.length; Bm++) {
					for (var x_ = EZ((Al = Tl[Bm])[0]), uy = r0(o0(wY(Al.index), Li.length), 0), dx = [], kx = 1; kx < Al.length; kx++) a0(dx, (Uu = Al[kx]) === void 0 ? Uu : String(Uu));
					var eC = Al.groups;
					if (Vo) {
						var uC = i0([x_], dx, uy, Li);
						eC !== void 0 && a0(uC, eC);
						var _T = EZ(VQ(Kn, void 0, uC));
					} else _T = QQ(x_, Li, uy, dx, eC, Kn);
					uy >= Lm && (Ff += s0(Li, Lm, uy) + _T, Lm = uy + x_.length);
				}
				return Ff + s0(Li, Lm);
			}];
		}(0, ""[x], (function(x, Be, We, St, Kn) {
			var Li = aK(x), Vo = Be.exec;
			return Vo === AQ || Vo === UQ.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		xX(String.prototype, x, Vo[0]), xX(UQ, Kn, Vo[1]);
	}
})("replace", 0, !!uK((function() {
	var x = /./;
	return x.exec = function() {
		var x = [];
		return x.groups = { a: "7" }, x;
	}, "".replace(x, "$<a>") !== "7";
})) || !l0 || c0);
var f0 = tK.TypeError, d0 = function(x, Be, We, St, Kn, _r, Li, fa) {
	for (var Vo, Xo, Tc = Kn, Tl = 0, Al = !!Li && HZ(Li, fa); Tl < St;) {
		if (Tl in We) {
			if (Vo = Al ? Al(We[Tl], Tl, Be) : We[Tl], _r > 0 && iJ(Vo)) Xo = AY(Vo), Tc = d0(x, Be, Vo, Xo, Tc, _r - 1) - 1;
			else {
				if (Tc >= 9007199254740991) throw f0("Exceed the acceptable array length");
				x[Tc] = Vo;
			}
			Tc++;
		}
		Tl++;
	}
	return Tc;
}, p0 = d0;
function h0(x) {
	return x.length ? x[0].tagName.toLowerCase() : "";
}
MX({
	target: "Array",
	proto: !0
}, { flat: function() {
	var x = arguments.length ? arguments[0] : void 0, Be = DK(this), We = AY(Be), St = vJ(Be, 0);
	return St.length = p0(St, Be, Be, We, 0, x === void 0 ? 1 : wY(x)), St;
} }), qY("flat"), MX({ global: !0 }, { globalThis: tK }), ah && (Mp.fn.append = ah), Vp && (Mp.fn.attr = Vp), sh && (Mp.fn.parent = sh);
var g0 = {
	renderElems: [ZJ],
	editorPlugin: function(x) {
		var Be = x.deleteBackward, We = x.handleTab, St = x.normalizeNode, Kn = x;
		return Kn.deleteBackward = function(x) {
			var We = Kn.selection;
			if (We != null) if (qf.isExpanded(We)) Be(x);
			else {
				var St = QO.getSelectedNodeByType(Kn, "list-item");
				if (St != null) if (We.focus.offset !== 0) Be(x);
				else {
					var _r = St.level, Li = _r === void 0 ? 0 : _r;
					Li > 0 ? md.setNodes(Kn, { level: Li - 1 }) : md.setNodes(Kn, {
						type: "paragraph",
						ordered: void 0,
						level: void 0
					});
				}
				else Be(x);
			}
			else Be(x);
		}, Kn.handleTab = function() {
			var x, Be, St, _r, Li = Kn.selection;
			if (Li != null) {
				if (qf.isCollapsed(Li)) {
					var fa = QO.getSelectedNodeByType(Kn, "list-item");
					if (fa == null) return void We();
					if (Li.focus.offset === 0) {
						var Vo = fa.level, Xo = Vo === void 0 ? 0 : Vo;
						md.setNodes(Kn, { level: Xo + 1 });
						return;
					}
				}
				if (qf.isExpanded(Li)) {
					var Tc = 0, Tl = !1;
					try {
						for (var Al = eQ(nQ(Kn)), Uu = Al.next(); !Uu.done; Uu = Al.next()) {
							var Ff = tQ(Uu.value, 1)[0];
							QO.getNodeType(Ff) === "list-item" ? Tc++ : Tl = !0;
						}
					} catch (Be) {
						x = { error: Be };
					} finally {
						try {
							Uu && !Uu.done && (Be = Al.return) && Be.call(Al);
						} finally {
							if (x) throw x.error;
						}
					}
					if (Tl || Tc <= 1) return void We();
					try {
						for (var Lm = eQ(nQ(Kn)), Bm = Lm.next(); !Bm.done; Bm = Lm.next()) {
							var x_ = tQ(Bm.value, 2), uy = (Ff = x_[0], x_[1]), dx = Ff.level;
							Xo = dx === void 0 ? 0 : dx, md.setNodes(Kn, { level: Xo + 1 }, { at: uy });
						}
					} catch (x) {
						St = { error: x };
					} finally {
						try {
							Bm && !Bm.done && (_r = Lm.return) && _r.call(Lm);
						} finally {
							if (St) throw St.error;
						}
					}
				} else We();
			} else We();
		}, Kn.normalizeNode = function(x) {
			var Be = tQ(x, 2), We = Be[0], _r = Be[1], Li = QO.getNodeType(We);
			return Li !== "bulleted-list" && Li !== "numbered-list" || md.unwrapNodes(Kn, { at: _r }), St([We, _r]);
		}, Kn;
	},
	menus: [_Q, PQ],
	elemsToHtml: [NQ],
	parseElemsHtml: [{
		selector: "ul:not([data-w-e-type]),ol:not([data-w-e-type])",
		parseElemHtml: function(x, Be, We) {
			return Be.flat(Infinity);
		}
	}, {
		selector: "li:not([data-w-e-type])",
		parseElemHtml: function(x, Be, We) {
			var St = Mp(x);
			return (Be = Be.filter((function(x) {
				return !!ed.isText(x) || !!We.isInline(x);
			}))).length === 0 && (Be = [{ text: St.text().replace(/\s+/gm, " ") }]), {
				type: "list-item",
				ordered: function(x) {
					return h0(x.parent()) === "ol";
				}(St),
				level: function(x) {
					for (var Be = 0, We = x.parent(), St = h0(We); St === "ul" || St === "ol";) St = h0(We = We.parent()), Be++;
					return Be - 1;
				}(St),
				children: Be
			};
		}
	}]
}, v0 = n((function(Be, We) {
	var St = "__lodash_hash_undefined__", Kn = 9007199254740991, _r = "[object Arguments]", Li = "[object Array]", fa = "[object Boolean]", Vo = "[object Date]", Xo = "[object Error]", Tc = "[object Function]", Tl = "[object Map]", Al = "[object Number]", Uu = "[object Object]", Ff = "[object Promise]", Lm = "[object RegExp]", Bm = "[object Set]", x_ = "[object String]", uy = "[object Symbol]", dx = "[object WeakMap]", kx = "[object ArrayBuffer]", eC = "[object DataView]", uC = /^\[object .+?Constructor\]$/, _T = /^(?:0|[1-9]\d*)$/, ID = {};
	ID["[object Float32Array]"] = ID["[object Float64Array]"] = ID["[object Int8Array]"] = ID["[object Int16Array]"] = ID["[object Int32Array]"] = ID["[object Uint8Array]"] = ID["[object Uint8ClampedArray]"] = ID["[object Uint16Array]"] = ID["[object Uint32Array]"] = !0, ID[_r] = ID[Li] = ID[kx] = ID[fa] = ID[eC] = ID[Vo] = ID[Xo] = ID[Tc] = ID[Tl] = ID[Al] = ID[Uu] = ID[Lm] = ID[Bm] = ID[x_] = ID[dx] = !1;
	var ok = typeof e == "object" && e && e.Object === Object && e, ij = typeof self == "object" && self && self.Object === Object && self, Dj = ok || ij || Function("return this")(), LP = We && !We.nodeType && We, zP = LP && Be && !Be.nodeType && Be, $P = zP && zP.exports === LP, CF = $P && ok.process, VF = function() {
		try {
			return CF && CF.binding && CF.binding("util");
		} catch {}
	}(), nR = VF && VF.isTypedArray;
	function tH(x, Be) {
		for (var We = -1, St = x == null ? 0 : x.length; ++We < St;) if (Be(x[We], We, x)) return !0;
		return !1;
	}
	function MH(x) {
		var Be = -1, We = Array(x.size);
		return x.forEach((function(x, St) {
			We[++Be] = [St, x];
		})), We;
	}
	function vG(x) {
		var Be = -1, We = Array(x.size);
		return x.forEach((function(x) {
			We[++Be] = x;
		})), We;
	}
	var jG = Array.prototype, pMt = Function.prototype, eq = Object.prototype, iq = Dj["__core-js_shared__"], Vq = pMt.toString, Hq = eq.hasOwnProperty, Uq = function() {
		var x = /[^.]+$/.exec(iq && iq.keys && iq.keys.IE_PROTO || "");
		return x ? "Symbol(src)_1." + x : "";
	}(), mMt = eq.toString, hMt = RegExp("^" + Vq.call(Hq).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), gMt = $P ? Dj.Buffer : void 0, _Mt = Dj.Symbol, vMt = Dj.Uint8Array, yMt = eq.propertyIsEnumerable, bMt = jG.splice, qX = _Mt ? _Mt.toStringTag : void 0, xMt = Object.getOwnPropertySymbols, RQ = gMt ? gMt.isBuffer : void 0, SMt = function(x, Be) {
		return function(We) {
			return x(Be(We));
		};
	}(Object.keys, Object), CMt = YMt(Dj, "DataView"), wMt = YMt(Dj, "Map"), TMt = YMt(Dj, "Promise"), S2 = YMt(Dj, "Set"), EMt = YMt(Dj, "WeakMap"), DMt = YMt(Object, "create"), OMt = QMt(CMt), kMt = QMt(wMt), AMt = QMt(TMt), jMt = QMt(S2), MMt = QMt(EMt), NMt = _Mt ? _Mt.prototype : void 0, PMt = NMt ? NMt.valueOf : void 0;
	function FMt(x) {
		var Be = -1, We = x == null ? 0 : x.length;
		for (this.clear(); ++Be < We;) {
			var St = x[Be];
			this.set(St[0], St[1]);
		}
	}
	function U3(x) {
		var Be = -1, We = x == null ? 0 : x.length;
		for (this.clear(); ++Be < We;) {
			var St = x[Be];
			this.set(St[0], St[1]);
		}
	}
	function IMt(x) {
		var Be = -1, We = x == null ? 0 : x.length;
		for (this.clear(); ++Be < We;) {
			var St = x[Be];
			this.set(St[0], St[1]);
		}
	}
	function LMt(x) {
		var Be = -1, We = x == null ? 0 : x.length;
		for (this.__data__ = new IMt(); ++Be < We;) this.add(x[Be]);
	}
	function RMt(x) {
		this.size = (this.__data__ = new U3(x)).size;
	}
	function zMt(x, Be) {
		var We = tNt(x), St = !We && eNt(x), Kn = !We && !St && nNt(x), _r = !We && !St && !Kn && sNt(x), Li = We || St || Kn || _r, fa = Li ? function(x, Be) {
			for (var We = -1, St = Array(x); ++We < x;) St[We] = Be(We);
			return St;
		}(x.length, String) : [], Vo = fa.length;
		for (var Xo in x) !Be && !Hq.call(x, Xo) || Li && (Xo == "length" || Kn && (Xo == "offset" || Xo == "parent") || _r && (Xo == "buffer" || Xo == "byteLength" || Xo == "byteOffset") || ZMt(Xo, Vo)) || fa.push(Xo);
		return fa;
	}
	function BMt(x, Be) {
		for (var We = x.length; We--;) if ($Mt(x[We][0], Be)) return We;
		return -1;
	}
	function VMt(x) {
		return x == null ? x === void 0 ? "[object Undefined]" : "[object Null]" : qX && qX in Object(x) ? function(x) {
			var Be = Hq.call(x, qX), We = x[qX];
			try {
				x[qX] = void 0;
				var St = !0;
			} catch {}
			var Kn = mMt.call(x);
			return St && (Be ? x[qX] = We : delete x[qX]), Kn;
		}(x) : function(x) {
			return mMt.call(x);
		}(x);
	}
	function HMt(x) {
		return oNt(x) && VMt(x) == _r;
	}
	function UMt(x, Be, We, St, Kn) {
		return x === Be || (x == null || Be == null || !oNt(x) && !oNt(Be) ? x != x && Be != Be : function(x, Be, We, St, Kn, Tc) {
			var Ff = tNt(x), dx = tNt(Be), uC = Ff ? Li : P6(x), _T = dx ? Li : P6(Be), ID = (uC = uC == _r ? Uu : uC) == Uu, ok = (_T = _T == _r ? Uu : _T) == Uu, ij = uC == _T;
			if (ij && nNt(x)) {
				if (!nNt(Be)) return !1;
				Ff = !0, ID = !1;
			}
			if (ij && !ID) return Tc ||= new RMt(), Ff || sNt(x) ? KMt(x, Be, We, St, Kn, Tc) : function(x, Be, We, St, Kn, _r, Li) {
				switch (We) {
					case eC:
						if (x.byteLength != Be.byteLength || x.byteOffset != Be.byteOffset) return !1;
						x = x.buffer, Be = Be.buffer;
					case kx: return !(x.byteLength != Be.byteLength || !_r(new vMt(x), new vMt(Be)));
					case fa:
					case Vo:
					case Al: return $Mt(+x, +Be);
					case Xo: return x.name == Be.name && x.message == Be.message;
					case Lm:
					case x_: return x == Be + "";
					case Tl: var Tc = MH;
					case Bm:
						var Uu = 1 & St;
						if (Tc ||= vG, x.size != Be.size && !Uu) return !1;
						var Ff = Li.get(x);
						if (Ff) return Ff == Be;
						St |= 2, Li.set(x, Be);
						var dx = KMt(Tc(x), Tc(Be), St, Kn, _r, Li);
						return Li.delete(x), dx;
					case uy: if (PMt) return PMt.call(x) == PMt.call(Be);
				}
				return !1;
			}(x, Be, uC, We, St, Kn, Tc);
			if (!(1 & We)) {
				var Dj = ID && Hq.call(x, "__wrapped__"), LP = ok && Hq.call(Be, "__wrapped__");
				if (Dj || LP) {
					var zP = Dj ? x.value() : x, $P = LP ? Be.value() : Be;
					return Tc ||= new RMt(), Kn(zP, $P, We, St, Tc);
				}
			}
			return ij ? (Tc ||= new RMt(), function(x, Be, We, St, Kn, _r) {
				var Li = 1 & We, fa = qMt(x), Vo = fa.length;
				if (Vo != qMt(Be).length && !Li) return !1;
				for (var Xo = Vo; Xo--;) {
					var Tc = fa[Xo];
					if (!(Li ? Tc in Be : Hq.call(Be, Tc))) return !1;
				}
				var Tl = _r.get(x);
				if (Tl && _r.get(Be)) return Tl == Be;
				var Al = !0;
				_r.set(x, Be), _r.set(Be, x);
				for (var Uu = Li; ++Xo < Vo;) {
					var Ff = x[Tc = fa[Xo]], Lm = Be[Tc];
					if (St) var Bm = Li ? St(Lm, Ff, Tc, Be, x, _r) : St(Ff, Lm, Tc, x, Be, _r);
					if (!(Bm === void 0 ? Ff === Lm || Kn(Ff, Lm, We, St, _r) : Bm)) {
						Al = !1;
						break;
					}
					Uu ||= Tc == "constructor";
				}
				if (Al && !Uu) {
					var x_ = x.constructor, uy = Be.constructor;
					x_ == uy || !("constructor" in x) || !("constructor" in Be) || typeof x_ == "function" && x_ instanceof x_ && typeof uy == "function" && uy instanceof uy || (Al = !1);
				}
				return _r.delete(x), _r.delete(Be), Al;
			}(x, Be, We, St, Kn, Tc)) : !1;
		}(x, Be, We, St, UMt, Kn));
	}
	function WMt(x) {
		return !(!aNt(x) || function(x) {
			return !!Uq && Uq in x;
		}(x)) && (rNt(x) ? hMt : uC).test(QMt(x));
	}
	function GMt(x) {
		if (We = (Be = x) && Be.constructor, St = typeof We == "function" && We.prototype || eq, Be !== St) return SMt(x);
		var Be, We, St, Kn = [];
		for (var _r in Object(x)) Hq.call(x, _r) && _r != "constructor" && Kn.push(_r);
		return Kn;
	}
	function KMt(x, Be, We, St, Kn, _r) {
		var Li = 1 & We, fa = x.length, Vo = Be.length;
		if (fa != Vo && !(Li && Vo > fa)) return !1;
		var Xo = _r.get(x);
		if (Xo && _r.get(Be)) return Xo == Be;
		var Tc = -1, Tl = !0, Al = 2 & We ? new LMt() : void 0;
		for (_r.set(x, Be), _r.set(Be, x); ++Tc < fa;) {
			var Uu = x[Tc], Ff = Be[Tc];
			if (St) var Lm = Li ? St(Ff, Uu, Tc, Be, x, _r) : St(Uu, Ff, Tc, x, Be, _r);
			if (Lm !== void 0) {
				if (Lm) continue;
				Tl = !1;
				break;
			}
			if (Al) {
				if (!tH(Be, (function(x, Be) {
					if (Li = Be, !Al.has(Li) && (Uu === x || Kn(Uu, x, We, St, _r))) return Al.push(Be);
					var Li;
				}))) {
					Tl = !1;
					break;
				}
			} else if (Uu !== Ff && !Kn(Uu, Ff, We, St, _r)) {
				Tl = !1;
				break;
			}
		}
		return _r.delete(x), _r.delete(Be), Tl;
	}
	function qMt(x) {
		return function(x, Be, We) {
			var St = Be(x);
			return tNt(x) ? St : function(x, Be) {
				for (var We = -1, St = Be.length, Kn = x.length; ++We < St;) x[Kn + We] = Be[We];
				return x;
			}(St, We(x));
		}(x, cNt, XMt);
	}
	function JMt(x, Be) {
		var We, St, Kn = x.__data__;
		return ((St = typeof (We = Be)) == "string" || St == "number" || St == "symbol" || St == "boolean" ? We !== "__proto__" : We === null) ? Kn[typeof Be == "string" ? "string" : "hash"] : Kn.map;
	}
	function YMt(x, Be) {
		var We = function(x, Be) {
			return x?.[Be];
		}(x, Be);
		return WMt(We) ? We : void 0;
	}
	FMt.prototype.clear = function() {
		this.__data__ = DMt ? DMt(null) : {}, this.size = 0;
	}, FMt.prototype.delete = function(x) {
		var Be = this.has(x) && delete this.__data__[x];
		return this.size -= Be ? 1 : 0, Be;
	}, FMt.prototype.get = function(x) {
		var Be = this.__data__;
		if (DMt) {
			var We = Be[x];
			return We === St ? void 0 : We;
		}
		return Hq.call(Be, x) ? Be[x] : void 0;
	}, FMt.prototype.has = function(x) {
		var Be = this.__data__;
		return DMt ? Be[x] !== void 0 : Hq.call(Be, x);
	}, FMt.prototype.set = function(x, Be) {
		var We = this.__data__;
		return this.size += this.has(x) ? 0 : 1, We[x] = DMt && Be === void 0 ? St : Be, this;
	}, U3.prototype.clear = function() {
		this.__data__ = [], this.size = 0;
	}, U3.prototype.delete = function(x) {
		var Be = this.__data__, We = BMt(Be, x);
		return !(We < 0) && (We == Be.length - 1 ? Be.pop() : bMt.call(Be, We, 1), --this.size, !0);
	}, U3.prototype.get = function(x) {
		var Be = this.__data__, We = BMt(Be, x);
		return We < 0 ? void 0 : Be[We][1];
	}, U3.prototype.has = function(x) {
		return BMt(this.__data__, x) > -1;
	}, U3.prototype.set = function(x, Be) {
		var We = this.__data__, St = BMt(We, x);
		return St < 0 ? (++this.size, We.push([x, Be])) : We[St][1] = Be, this;
	}, IMt.prototype.clear = function() {
		this.size = 0, this.__data__ = {
			hash: new FMt(),
			map: new (wMt || U3)(),
			string: new FMt()
		};
	}, IMt.prototype.delete = function(x) {
		var Be = JMt(this, x).delete(x);
		return this.size -= Be ? 1 : 0, Be;
	}, IMt.prototype.get = function(x) {
		return JMt(this, x).get(x);
	}, IMt.prototype.has = function(x) {
		return JMt(this, x).has(x);
	}, IMt.prototype.set = function(x, Be) {
		var We = JMt(this, x), St = We.size;
		return We.set(x, Be), this.size += We.size == St ? 0 : 1, this;
	}, LMt.prototype.add = LMt.prototype.push = function(x) {
		return this.__data__.set(x, St), this;
	}, LMt.prototype.has = function(x) {
		return this.__data__.has(x);
	}, RMt.prototype.clear = function() {
		this.__data__ = new U3(), this.size = 0;
	}, RMt.prototype.delete = function(x) {
		var Be = this.__data__, We = Be.delete(x);
		return this.size = Be.size, We;
	}, RMt.prototype.get = function(x) {
		return this.__data__.get(x);
	}, RMt.prototype.has = function(x) {
		return this.__data__.has(x);
	}, RMt.prototype.set = function(x, Be) {
		var We = this.__data__;
		if (We instanceof U3) {
			var St = We.__data__;
			if (!wMt || St.length < 199) return St.push([x, Be]), this.size = ++We.size, this;
			We = this.__data__ = new IMt(St);
		}
		return We.set(x, Be), this.size = We.size, this;
	};
	var XMt = xMt ? function(x) {
		return x == null ? [] : (x = Object(x), function(x, Be) {
			for (var We = -1, St = x == null ? 0 : x.length, Kn = 0, _r = []; ++We < St;) {
				var Li = x[We];
				Be(Li, We, x) && (_r[Kn++] = Li);
			}
			return _r;
		}(xMt(x), (function(Be) {
			return yMt.call(x, Be);
		})));
	} : function() {
		return [];
	}, P6 = VMt;
	function ZMt(x, Be) {
		return !!(Be ??= Kn) && (typeof x == "number" || _T.test(x)) && x > -1 && x % 1 == 0 && x < Be;
	}
	function QMt(x) {
		if (x != null) {
			try {
				return Vq.call(x);
			} catch {}
			try {
				return x + "";
			} catch {}
		}
		return "";
	}
	function $Mt(x, Be) {
		return x === Be || x != x && Be != Be;
	}
	(CMt && P6(new CMt(/* @__PURE__ */ new ArrayBuffer(1))) != eC || wMt && P6(new wMt()) != Tl || TMt && P6(TMt.resolve()) != Ff || S2 && P6(new S2()) != Bm || EMt && P6(new EMt()) != dx) && (P6 = function(x) {
		var Be = VMt(x), We = Be == Uu ? x.constructor : void 0, St = We ? QMt(We) : "";
		if (St) switch (St) {
			case OMt: return eC;
			case kMt: return Tl;
			case AMt: return Ff;
			case jMt: return Bm;
			case MMt: return dx;
		}
		return Be;
	});
	var eNt = HMt(function() {
		return arguments;
	}()) ? HMt : function(x) {
		return oNt(x) && Hq.call(x, "callee") && !yMt.call(x, "callee");
	}, tNt = Array.isArray, nNt = RQ || function() {
		return !1;
	};
	function rNt(x) {
		if (!aNt(x)) return !1;
		var Be = VMt(x);
		return Be == Tc || Be == "[object GeneratorFunction]" || Be == "[object AsyncFunction]" || Be == "[object Proxy]";
	}
	function iNt(x) {
		return typeof x == "number" && x > -1 && x % 1 == 0 && x <= Kn;
	}
	function aNt(x) {
		var Be = typeof x;
		return x != null && (Be == "object" || Be == "function");
	}
	function oNt(x) {
		return typeof x == "object" && !!x;
	}
	var sNt = nR ? function(x) {
		return function(Be) {
			return x(Be);
		};
	}(nR) : function(x) {
		return oNt(x) && iNt(x.length) && !!ID[VMt(x)];
	};
	function cNt(x) {
		return (Be = x) != null && iNt(Be.length) && !rNt(Be) ? zMt(x) : GMt(x);
		var Be;
	}
	Be.exports = function(x, Be) {
		return UMt(x, Be);
	};
}));
MP("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"
} }), MP("zh-CN", { tableModule: {
	deleteCol: "删除列",
	deleteRow: "删除行",
	deleteTable: "删除表格",
	widthAuto: "宽度自适应",
	insertCol: "插入列",
	insertRow: "插入行",
	insertTable: "插入表格",
	header: "表头"
} });
var y0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function m0(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var b0, w0, E0 = function(x) {
	return x && x.Math == Math && x;
}, D0 = E0(typeof globalThis == "object" && globalThis) || E0(typeof window == "object" && window) || E0(typeof self == "object" && self) || E0(typeof y0 == "object" && y0) || function() {
	return this;
}() || Function("return this")(), S0 = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, x0 = !S0((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), C0 = Function.prototype.call, A0 = C0.bind ? C0.bind(C0) : function() {
	return C0.apply(C0, arguments);
}, O0 = {}.propertyIsEnumerable, k0 = Object.getOwnPropertyDescriptor, B0 = { f: k0 && !O0.call({ 1: 2 }, 1) ? function(x) {
	var Be = k0(this, x);
	return !!Be && Be.enumerable;
} : O0 }, F0 = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, T0 = Function.prototype, _0 = T0.bind, P0 = T0.call, j0 = _0 && _0.bind(P0), N0 = _0 ? function(x) {
	return x && j0(P0, x);
} : function(x) {
	return x && function() {
		return P0.apply(x, arguments);
	};
}, I0 = N0({}.toString), L0 = N0("".slice), R0 = function(x) {
	return L0(I0(x), 8, -1);
}, M0 = D0.Object, z0 = N0("".split), $0 = S0((function() {
	return !M0("z").propertyIsEnumerable(0);
})) ? function(x) {
	return R0(x) == "String" ? z0(x, "") : M0(x);
} : M0, H0 = D0.TypeError, V0 = function(x) {
	if (x == null) throw H0("Can't call method on " + x);
	return x;
}, U0 = function(x) {
	return $0(V0(x));
}, W0 = function(x) {
	return typeof x == "function";
}, G0 = function(x) {
	return typeof x == "object" ? x !== null : W0(x);
}, q0 = function(x) {
	return W0(x) ? x : void 0;
}, K0 = function(x, Be) {
	return arguments.length < 2 ? q0(D0[x]) : D0[x] && D0[x][Be];
}, Y0 = N0({}.isPrototypeOf), X0 = K0("navigator", "userAgent") || "", Z0 = D0.process, J0 = D0.Deno, Q0 = Z0 && Z0.versions || J0 && J0.version, e1 = Q0 && Q0.v8;
e1 && (w0 = (b0 = e1.split("."))[0] > 0 && b0[0] < 4 ? 1 : +(b0[0] + b0[1])), !w0 && X0 && (!(b0 = X0.match(/Edge\/(\d+)/)) || b0[1] >= 74) && (b0 = X0.match(/Chrome\/(\d+)/)) && (w0 = +b0[1]);
var t1 = w0, n1 = !!Object.getOwnPropertySymbols && !S0((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && t1 && t1 < 41;
})), r1 = n1 && !Symbol.sham && typeof Symbol.iterator == "symbol", o1 = D0.Object, i1 = r1 ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = K0("Symbol");
	return W0(Be) && Y0(Be.prototype, o1(x));
}, a1 = D0.String, u1 = function(x) {
	try {
		return a1(x);
	} catch {
		return "Object";
	}
}, s1 = D0.TypeError, l1 = function(x) {
	if (W0(x)) return x;
	throw s1(u1(x) + " is not a function");
}, c1 = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : l1(We);
}, f1 = D0.TypeError, d1 = Object.defineProperty, p1 = function(x, Be) {
	try {
		d1(D0, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		D0[x] = Be;
	}
	return Be;
}, h1 = D0["__core-js_shared__"] || p1("__core-js_shared__", {}), g1 = m0((function(x) {
	(x.exports = function(x, Be) {
		return h1[x] || (h1[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), v1 = D0.Object, y1 = function(x) {
	return v1(V0(x));
}, m1 = N0({}.hasOwnProperty), b1 = Object.hasOwn || function(x, Be) {
	return m1(y1(x), Be);
}, w1 = 0, E1 = Math.random(), D1 = N0(1 .toString), S1 = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + D1(++w1 + E1, 36);
}, x1 = g1("wks"), C1 = D0.Symbol, A1 = C1 && C1.for, O1 = r1 ? C1 : C1 && C1.withoutSetter || S1, k1 = function(x) {
	if (!b1(x1, x) || !n1 && typeof x1[x] != "string") {
		var Be = "Symbol." + x;
		n1 && b1(C1, x) ? x1[x] = C1[x] : x1[x] = r1 && A1 ? A1(Be) : O1(Be);
	}
	return x1[x];
}, B1 = D0.TypeError, F1 = k1("toPrimitive"), T1 = function(x) {
	var Be = function(x, Be) {
		if (!G0(x) || i1(x)) return x;
		var We, St = c1(x, F1);
		if (St) {
			if (Be === void 0 && (Be = "default"), We = A0(St, x, Be), !G0(We) || i1(We)) return We;
			throw B1("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && W0(We = x.toString) && !G0(St = A0(We, x)) || W0(We = x.valueOf) && !G0(St = A0(We, x)) || Be !== "string" && W0(We = x.toString) && !G0(St = A0(We, x))) return St;
			throw f1("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return i1(Be) ? Be : Be + "";
}, _1 = D0.document, P1 = G0(_1) && G0(_1.createElement), j1 = function(x) {
	return P1 ? _1.createElement(x) : {};
}, N1 = !x0 && !S0((function() {
	return Object.defineProperty(j1("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), I1 = Object.getOwnPropertyDescriptor, L1 = { f: x0 ? I1 : function(x, Be) {
	if (x = U0(x), Be = T1(Be), N1) try {
		return I1(x, Be);
	} catch {}
	if (b1(x, Be)) return F0(!A0(B0.f, x, Be), x[Be]);
} }, R1 = D0.String, M1 = D0.TypeError, z1 = function(x) {
	if (G0(x)) return x;
	throw M1(R1(x) + " is not an object");
}, $1 = D0.TypeError, H1 = Object.defineProperty, V1 = { f: x0 ? H1 : function(x, Be, We) {
	if (z1(x), Be = T1(Be), z1(We), N1) try {
		return H1(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw $1("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, U1 = x0 ? function(x, Be, We) {
	return V1.f(x, Be, F0(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, W1 = N0(Function.toString);
W0(h1.inspectSource) || (h1.inspectSource = function(x) {
	return W1(x);
});
var G1, q1, K1, Y1 = h1.inspectSource, X1 = D0.WeakMap, Z1 = W0(X1) && /native code/.test(Y1(X1)), J1 = g1("keys"), Q1 = function(x) {
	return J1[x] || (J1[x] = S1(x));
}, e2 = {}, t2 = D0.TypeError, n2 = D0.WeakMap;
if (Z1 || h1.state) {
	var r2 = h1.state ||= new n2(), o2 = N0(r2.get), i2 = N0(r2.has), a2 = N0(r2.set);
	G1 = function(x, Be) {
		if (i2(r2, x)) throw new t2("Object already initialized");
		return Be.facade = x, a2(r2, x, Be), Be;
	}, q1 = function(x) {
		return o2(r2, x) || {};
	}, K1 = function(x) {
		return i2(r2, x);
	};
} else {
	var u2 = Q1("state");
	e2[u2] = !0, G1 = function(x, Be) {
		if (b1(x, u2)) throw new t2("Object already initialized");
		return Be.facade = x, U1(x, u2, Be), Be;
	}, q1 = function(x) {
		return b1(x, u2) ? x[u2] : {};
	}, K1 = function(x) {
		return b1(x, u2);
	};
}
var s2 = {
	set: G1,
	get: q1,
	has: K1,
	enforce: function(x) {
		return K1(x) ? q1(x) : G1(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!G0(Be) || (We = q1(Be)).type !== x) throw t2("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, l2 = Function.prototype, c2 = x0 && Object.getOwnPropertyDescriptor, f2 = b1(l2, "name"), d2 = {
	EXISTS: f2,
	PROPER: f2 && function() {}.name === "something",
	CONFIGURABLE: f2 && (!x0 || x0 && c2(l2, "name").configurable)
}, p2 = m0((function(x) {
	var Be = d2.CONFIGURABLE, We = s2.get, St = s2.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		W0(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!b1(_r, "name") || Be && _r.name !== Tl) && U1(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === D0 ? Xo ? x[We] = _r : p1(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : U1(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return W0(this) && We(this).source || Y1(this);
	}));
})), h2 = Math.ceil, g2 = Math.floor, v2 = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? g2 : h2)(Be);
}, y2 = Math.max, m2 = Math.min, b2 = function(x, Be) {
	var We = v2(x);
	return We < 0 ? y2(We + Be, 0) : m2(We, Be);
}, w2 = Math.min, E2 = function(x) {
	return x > 0 ? w2(v2(x), 9007199254740991) : 0;
}, D2 = function(x) {
	return E2(x.length);
}, x2 = function(x) {
	return function(Be, We, St) {
		var Kn, _r = U0(Be), Li = D2(_r), fa = b2(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}(!1), C2 = N0([].push), A2 = function(x, Be) {
	var We, St = U0(x), Kn = 0, _r = [];
	for (We in St) !b1(e2, We) && b1(St, We) && C2(_r, We);
	for (; Be.length > Kn;) b1(St, We = Be[Kn++]) && (~x2(_r, We) || C2(_r, We));
	return _r;
}, O2 = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], k2 = O2.concat("length", "prototype"), B2 = { f: Object.getOwnPropertyNames || function(x) {
	return A2(x, k2);
} }, F2 = { f: Object.getOwnPropertySymbols }, T2 = N0([].concat), _2 = K0("Reflect", "ownKeys") || function(x) {
	var Be = B2.f(z1(x)), We = F2.f;
	return We ? T2(Be, We(x)) : Be;
}, P2 = function(x, Be) {
	for (var We = _2(Be), St = V1.f, Kn = L1.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		b1(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, j2 = /#|\.prototype\./, N2 = function(x, Be) {
	var We = L2[I2(x)];
	return We == M2 || We != R2 && (W0(Be) ? S0(Be) : !!Be);
}, I2 = N2.normalize = function(x) {
	return String(x).replace(j2, ".").toLowerCase();
}, L2 = N2.data = {}, R2 = N2.NATIVE = "N", M2 = N2.POLYFILL = "P", z2 = N2, $2 = L1.f, H2 = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? D0 : Xo ? D0[fa] || p1(fa, {}) : (D0[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = $2(We, St)) && Li.value : We[St], !z2(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			P2(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && U1(_r, "sham", !0), p2(We, St, _r, x);
	}
}, V2 = {};
V2[k1("toStringTag")] = "z";
var U2 = String(V2) === "[object z]", W2 = k1("toStringTag"), G2 = D0.Object, q2 = R0(function() {
	return arguments;
}()) == "Arguments", K2 = U2 ? R0 : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = G2(x), W2)) == "string" ? We : q2 ? R0(Be) : (St = R0(Be)) == "Object" && W0(Be.callee) ? "Arguments" : St;
}, Y2 = D0.String, X2 = function(x) {
	if (K2(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return Y2(x);
}, Z2 = /"/g, J2 = N0("".replace);
H2({
	target: "String",
	proto: !0,
	forced: S0((function() {
		var x = "".anchor("\"");
		return x !== x.toLowerCase() || x.split("\"").length > 3;
	}))
}, { anchor: function(x) {
	return Be = x, We = X2(V0(this)), St = "<a", (St += " name=\"" + J2(X2(Be), Z2, "&quot;") + "\"") + ">" + We + "</a>";
	var Be, We, St;
} });
var Q2, e4 = function() {
	var x = z1(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, t4 = D0.RegExp, n4 = S0((function() {
	var x = t4("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), r4 = n4 || S0((function() {
	return !t4("a", "y").sticky;
})), o4 = {
	BROKEN_CARET: n4 || S0((function() {
		var x = t4("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: r4,
	UNSUPPORTED_Y: n4
}, i4 = Object.keys || function(x) {
	return A2(x, O2);
}, a4 = x0 ? Object.defineProperties : function(x, Be) {
	z1(x);
	for (var We, St = U0(Be), Kn = i4(Be), _r = Kn.length, Li = 0; _r > Li;) V1.f(x, We = Kn[Li++], St[We]);
	return x;
}, u4 = K0("document", "documentElement"), s4 = Q1("IE_PROTO"), l4 = function() {}, c4 = function(x) {
	return "<script>" + x + "<\/script>";
}, f4 = function(x) {
	x.write(c4("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, d4 = function() {
	try {
		Q2 = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	d4 = typeof document < "u" ? document.domain && Q2 ? f4(Q2) : ((Be = j1("iframe")).style.display = "none", u4.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(c4("document.F=Object")), x.close(), x.F) : f4(Q2);
	for (var We = O2.length; We--;) delete d4.prototype[O2[We]];
	return d4();
};
e2[s4] = !0;
var p4, h4, g4 = Object.create || function(x, Be) {
	var We;
	return x === null ? We = d4() : (l4.prototype = z1(x), We = new l4(), l4.prototype = null, We[s4] = x), Be === void 0 ? We : a4(We, Be);
}, v4 = D0.RegExp, y4 = S0((function() {
	var x = v4(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), m4 = D0.RegExp, b4 = S0((function() {
	var x = m4("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), w4 = s2.get, E4 = g1("native-string-replace", String.prototype.replace), D4 = RegExp.prototype.exec, S4 = D4, x4 = N0("".charAt), C4 = N0("".indexOf), A4 = N0("".replace), O4 = N0("".slice), k4 = (h4 = /b*/g, A0(D4, p4 = /a/, "a"), A0(D4, h4, "a"), p4.lastIndex !== 0 || h4.lastIndex !== 0), B4 = o4.BROKEN_CARET, F4 = /()??/.exec("")[1] !== void 0;
(k4 || F4 || B4 || y4 || b4) && (S4 = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = w4(Vo), Tc = X2(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = A0(S4, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = B4 && Vo.sticky, Ff = A0(e4, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = A4(Ff, "y", ""), C4(Ff, "g") === -1 && (Ff += "g"), x_ = O4(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && x4(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), F4 && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), k4 && (St = Vo.lastIndex), Kn = A0(D4, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = O4(Kn.input, Bm), Kn[0] = O4(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : k4 && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), F4 && Kn && Kn.length > 1 && A0(E4, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = g4(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var T4 = S4;
H2({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== T4
}, { exec: T4 });
var _4 = Array.isArray || function(x) {
	return R0(x) == "Array";
}, P4 = function() {}, j4 = [], N4 = K0("Reflect", "construct"), I4 = /^\s*(?:class|function)\b/, L4 = N0(I4.exec), R4 = !I4.exec(P4), M4 = function(x) {
	if (!W0(x)) return !1;
	try {
		return N4(P4, j4, x), !0;
	} catch {
		return !1;
	}
}, z4 = !N4 || S0((function() {
	var x;
	return M4(M4.call) || !M4(Object) || !M4((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!W0(x)) return !1;
	switch (K2(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return R4 || !!L4(I4, Y1(x));
} : M4, $4 = function(x, Be, We) {
	var St = T1(Be);
	St in x ? V1.f(x, St, F0(0, We)) : x[St] = We;
}, H4 = k1("species"), V4 = function(x) {
	return t1 >= 51 || !S0((function() {
		var Be = [];
		return (Be.constructor = {})[H4] = function() {
			return { foo: 1 };
		}, Be[x](Boolean).foo !== 1;
	}));
}, U4 = N0([].slice), W4 = V4("slice"), G4 = k1("species"), q4 = D0.Array, K4 = Math.max;
function Y4(x, Be) {
	var We = typeof Symbol == "function" && x[Symbol.iterator];
	if (!We) return x;
	var St, Kn, _r = We.call(x), Li = [];
	try {
		for (; (Be === void 0 || Be-- > 0) && !(St = _r.next()).done;) Li.push(St.value);
	} catch (x) {
		Kn = { error: x };
	} finally {
		try {
			St && !St.done && (We = _r.return) && We.call(_r);
		} finally {
			if (Kn) throw Kn.error;
		}
	}
	return Li;
}
function X4(x) {
	var Be = x.selection;
	if (Be == null) return !1;
	var We = Y4(Bf.nodes(x, { match: function(x) {
		return QO.checkNodeType(x, "table-cell");
	} }), 1)[0];
	if (We) {
		var St = Y4(We, 2)[1], Kn = Bf.start(x, St);
		if (Vf.equals(Be.anchor, Kn)) return !0;
	}
	return !1;
}
function Z4(x, Be) {
	var We, St, Kn = Bf.nodes(x, {
		at: Be,
		match: function(x) {
			return QO.getNodeType(x) === "table";
		}
	}), _r = !1;
	try {
		for (var Li = function(x) {
			var Be = typeof Symbol == "function" && Symbol.iterator, We = Be && x[Be], St = 0;
			if (We) return We.call(x);
			if (x && typeof x.length == "number") return { next: function() {
				return x && St >= x.length && (x = void 0), {
					value: x && x[St++],
					done: !x
				};
			} };
			throw TypeError(Be ? "Object is not iterable." : "Symbol.iterator is not defined.");
		}(Kn), fa = Li.next(); !fa.done; fa = Li.next()) fa.value, _r = !0;
	} catch (x) {
		We = { error: x };
	} finally {
		try {
			fa && !fa.done && (St = Li.return) && St.call(Li);
		} finally {
			if (We) throw We.error;
		}
	}
	return _r;
}
H2({
	target: "Array",
	proto: !0,
	forced: !W4
}, { slice: function(x, Be) {
	var We, St, Kn, _r = U0(this), Li = D2(_r), fa = b2(x, Li), Vo = b2(Be === void 0 ? Li : Be, Li);
	if (_4(_r) && (We = _r.constructor, (z4(We) && (We === q4 || _4(We.prototype)) || G0(We) && (We = We[G4]) === null) && (We = void 0), We === q4 || We === void 0)) return U4(_r, fa, Vo);
	for (St = new (We === void 0 ? q4 : We)(K4(Vo - fa, 0)), Kn = 0; fa < Vo; fa++, Kn++) fa in _r && $4(St, Kn, _r[fa]);
	return St.length = Kn, St;
} });
var J4 = N0(N0.bind), Q4 = k1("species"), e6 = D0.Array, t6 = function(x, Be) {
	return new (function(x) {
		var Be;
		return _4(x) && (Be = x.constructor, (z4(Be) && (Be === e6 || _4(Be.prototype)) || G0(Be) && (Be = Be[Q4]) === null) && (Be = void 0)), Be === void 0 ? e6 : Be;
	}(x))(Be === 0 ? 0 : Be);
}, n6 = N0([].push), r6 = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = y1(Vo), Lm = $0(Ff), Bm = function(x, Be) {
			return l1(x), Be === void 0 ? x : J4 ? J4(x, Be) : function() {
				return x.apply(Be, arguments);
			};
		}(Xo, Tc), x_ = D2(Lm), uy = 0, dx = Tl || t6, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: n6(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: n6(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, o6 = {
	forEach: r6(0),
	map: r6(1),
	filter: r6(2),
	some: r6(3),
	every: r6(4),
	find: r6(5),
	findIndex: r6(6),
	filterReject: r6(7)
}, i6 = o6.map;
H2({
	target: "Array",
	proto: !0,
	forced: !V4("map")
}, { map: function(x) {
	return i6(this, x, arguments.length > 1 ? arguments[1] : void 0);
} });
var a6 = U2 ? {}.toString : function() {
	return "[object " + K2(this) + "]";
};
function u6(x) {
	var Be = x.children || [];
	return Be.length === 0 ? [] : (Be[0] || {}).children || [];
}
function s6(x) {
	return u6(x).every((function(x) {
		return !!x.isHeader;
	}));
}
U2 || p2(Object.prototype, "toString", a6, { unsafe: !0 });
var l6 = d2.PROPER, c6 = RegExp.prototype, f6 = c6.toString, d6 = N0(e4), p6 = S0((function() {
	return f6.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), h6 = l6 && f6.name != "toString";
(p6 || h6) && p2(RegExp.prototype, "toString", (function() {
	var x = z1(this), Be = X2(x.source), We = x.flags;
	return "/" + Be + "/" + X2(We === void 0 && Y0(c6, x) && !("flags" in c6) ? d6(x) : We);
}), { unsafe: !0 });
var g6 = k1("unscopables"), v6 = Array.prototype;
v6[g6] ?? V1.f(v6, g6, {
	configurable: !0,
	value: g4(null)
});
var y6 = o6.find, m6 = !0;
"find" in [] && [,].find((function() {
	m6 = !1;
})), H2({
	target: "Array",
	proto: !0,
	forced: m6
}, { find: function(x) {
	return y6(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), v6[g6].find = !0;
var b6 = Function.prototype, w6 = b6.apply, E6 = b6.bind, D6 = b6.call, S6 = typeof Reflect == "object" && Reflect.apply || (E6 ? D6.bind(w6) : function() {
	return D6.apply(w6, arguments);
}), x6 = k1("species"), C6 = RegExp.prototype, A6 = function(x, Be, We, St) {
	var Kn = k1(x), _r = !S0((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !S0((function() {
		var Be = !1, We = /a/;
		return x === "split" && ((We = {}).constructor = {}, We.constructor[x6] = function() {
			return We;
		}, We.flags = "", We[Kn] = /./[Kn]), We.exec = function() {
			return Be = !0, null;
		}, We[Kn](""), !Be;
	}));
	if (!_r || !Li || We) {
		var fa = N0(/./[Kn]), Vo = Be(Kn, ""[x], (function(x, Be, We, St, Kn) {
			var Li = N0(x), Vo = Be.exec;
			return Vo === T4 || Vo === C6.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		p2(String.prototype, x, Vo[0]), p2(C6, Kn, Vo[1]);
	}
	St && U1(C6[Kn], "sham", !0);
}, O6 = k1("match"), k6 = D0.TypeError, B6 = k1("species"), F6 = N0("".charAt), T6 = N0("".charCodeAt), _6 = N0("".slice), j6 = function(x) {
	return function(Be, We) {
		var St, Kn, _r = X2(V0(Be)), Li = v2(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = T6(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = T6(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? F6(_r, Li) : St : x ? _6(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}(!0), N6 = function(x, Be, We) {
	return Be + (We ? j6(x, Be).length : 1);
}, I6 = D0.Array, L6 = Math.max, R6 = function(x, Be, We) {
	for (var St = D2(x), Kn = b2(Be, St), _r = b2(We === void 0 ? St : We, St), Li = I6(L6(_r - Kn, 0)), fa = 0; Kn < _r; Kn++, fa++) $4(Li, fa, x[Kn]);
	return Li.length = fa, Li;
}, M6 = D0.TypeError, z6 = function(x, Be) {
	var We = x.exec;
	if (W0(We)) {
		var St = A0(We, x, Be);
		return St !== null && z1(St), St;
	}
	if (R0(x) === "RegExp") return A0(T4, x, Be);
	throw M6("RegExp#exec called on incompatible receiver");
}, $6 = o4.UNSUPPORTED_Y, H6 = Math.min, V6 = [].push, U6 = N0(/./.exec), W6 = N0(V6), G6 = N0("".slice);
A6("split", (function(x, Be, We) {
	var St;
	return St = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(x, We) {
		var St, Kn, _r = X2(V0(this)), Li = We === void 0 ? 4294967295 : We >>> 0;
		if (Li === 0) return [];
		if (x === void 0) return [_r];
		if (!G0(St = x) || !((Kn = St[O6]) === void 0 ? R0(St) == "RegExp" : Kn)) return A0(Be, _r, x, Li);
		for (var fa, Vo, Xo, Tc = [], Tl = (x.ignoreCase ? "i" : "") + (x.multiline ? "m" : "") + (x.unicode ? "u" : "") + (x.sticky ? "y" : ""), Al = 0, Uu = new RegExp(x.source, Tl + "g"); (fa = A0(T4, Uu, _r)) && !((Vo = Uu.lastIndex) > Al && (W6(Tc, G6(_r, Al, fa.index)), fa.length > 1 && fa.index < _r.length && S6(V6, Tc, R6(fa, 1)), Xo = fa[0].length, Al = Vo, Tc.length >= Li));) Uu.lastIndex === fa.index && Uu.lastIndex++;
		return Al === _r.length ? !Xo && U6(Uu, "") || W6(Tc, "") : W6(Tc, G6(_r, Al)), Tc.length > Li ? R6(Tc, 0, Li) : Tc;
	} : "0".split(void 0, 0).length ? function(x, We) {
		return x === void 0 && We === 0 ? [] : A0(Be, this, x, We);
	} : Be, [function(Be, We) {
		var Kn = V0(this), _r = Be == null ? void 0 : c1(Be, x);
		return _r ? A0(_r, Be, Kn, We) : A0(St, X2(Kn), Be, We);
	}, function(x, Kn) {
		var _r = z1(this), Li = X2(x), fa = We(St, _r, Li, Kn, St !== Be);
		if (fa.done) return fa.value;
		var Vo = function(x, Be) {
			var We, St = z1(x).constructor;
			return St === void 0 || (We = z1(St)[B6]) == null ? Be : function(x) {
				if (z4(x)) return x;
				throw k6(u1(x) + " is not a constructor");
			}(We);
		}(_r, RegExp), Xo = _r.unicode, Tc = (_r.ignoreCase ? "i" : "") + (_r.multiline ? "m" : "") + (_r.unicode ? "u" : "") + ($6 ? "g" : "y"), Tl = new Vo($6 ? "^(?:" + _r.source + ")" : _r, Tc), Al = Kn === void 0 ? 4294967295 : Kn >>> 0;
		if (Al === 0) return [];
		if (Li.length === 0) return z6(Tl, Li) === null ? [Li] : [];
		for (var Uu = 0, Ff = 0, Lm = []; Ff < Li.length;) {
			Tl.lastIndex = $6 ? 0 : Ff;
			var Bm, x_ = z6(Tl, $6 ? G6(Li, Ff) : Li);
			if (x_ === null || (Bm = H6(E2(Tl.lastIndex + ($6 ? Ff : 0)), Li.length)) === Uu) Ff = N6(Li, Ff, Xo);
			else {
				if (W6(Lm, G6(Li, Uu, Ff)), Lm.length === Al) return Lm;
				for (var uy = 1; uy <= x_.length - 1; uy++) if (W6(Lm, x_[uy]), Lm.length === Al) return Lm;
				Ff = Uu = Bm;
			}
		}
		return W6(Lm, G6(Li, Uu)), Lm;
	}];
}), !!S0((function() {
	var x = /(?:)/, Be = x.exec;
	x.exec = function() {
		return Be.apply(this, arguments);
	};
	var We = "ab".split(x);
	return We.length !== 2 || We[0] !== "a" || We[1] !== "b";
})), $6);
var q6 = "	\n\v\f\r \xA0               \u2028\u2029", K6 = N0("".replace), Y6 = "[" + q6 + "]", X6 = RegExp("^" + Y6 + Y6 + "*"), Z6 = RegExp(Y6 + Y6 + "*$"), J6 = function(x) {
	return function(Be) {
		var We = X2(V0(Be));
		return 1 & x && (We = K6(We, X6, "")), 2 & x && (We = K6(We, Z6, "")), We;
	};
}, Q6 = {
	start: J6(1),
	end: J6(2),
	trim: J6(3)
}, e3 = d2.PROPER, t3 = Q6.trim;
function n3(x) {
	return x.length ? x[0].tagName.toLowerCase() : "";
}
H2({
	target: "String",
	proto: !0,
	forced: function(x) {
		return S0((function() {
			return !!q6[x]() || "​…᠎"[x]() !== "​…᠎" || e3 && q6[x].name !== x;
		}));
	}("trim")
}, { trim: function() {
	return t3(this);
} }), H2({ global: !0 }, { globalThis: D0 }), ah && (Mp.fn.append = ah), qp && (Mp.fn.on = qp), yh && (Mp.fn.focus = yh), Vp && (Mp.fn.attr = Vp), Gp && (Mp.fn.val = Gp), rh && (Mp.fn.html = rh), Wp && (Mp.fn.dataset = Wp), zp && (Mp.fn.addClass = zp), $p && (Mp.fn.removeClass = $p), fh && (Mp.fn.children = fh), th && (Mp.fn.each = th), ch && (Mp.fn.find = ch);
var r3 = !1, o3 = 0, i3 = 0, a3 = null, u3 = null, s3 = Mp("body");
function l3(x) {
	r3 = !1, u3 = null, a3 = null, s3.off("mousemove", c3), s3.off("mouseup", l3);
}
s3.on("mousedown", (function(x) {
	var Be = x.target;
	(Be.tagName === "TH" || Be.tagName === "TD") && Be.style.cursor === "col-resize" && (Be.style.cursor = "auto", x.preventDefault(), r3 = !0, o3 = x.clientX, i3 = Be.getBoundingClientRect().width, s3.on("mousemove", c3), s3.on("mouseup", l3));
}));
var c3 = eg((function(x) {
	if (r3 && u3 != null && a3 != null) {
		x.preventDefault();
		var Be = x.clientX, We = i3 + (Be - o3);
		(We = Math.floor(100 * We) / 100) < 30 && (We = 30), md.setNodes(u3, { width: We.toString() }, { at: a3 });
	}
}), 100), f3 = {
	type: "table",
	renderElem: function(x, Be, We) {
		var St = function(x, Be) {
			if (x.isDisabled()) return !1;
			var We = x.selection;
			if (We == null || qf.isCollapsed(We)) return !0;
			var St = We.anchor, Kn = We.focus, _r = QO.findPath(x, Be), Li = Bf.start(x, _r), fa = Bf.end(x, _r), Vo = Vf.compare(St, fa) <= 0 && Vf.compare(St, Li) >= 0, Xo = Vf.compare(Kn, fa) <= 0 && Vf.compare(Kn, Li) >= 0;
			return !!(Vo && Xo && Mf.equals(St.path.slice(0, 3), Kn.path.slice(0, 3)));
		}(We, x), Kn = x.width, _r = Kn === void 0 ? "auto" : Kn;
		return Pg("div", {
			className: "table-container",
			"data-selected": QO.isNodeSelected(We, x),
			on: { mousedown: function(Be) {
				if (Be.target.tagName === "DIV" && Be.preventDefault(), !We.isDisabled()) {
					var St = QO.findPath(We, x), Kn = Bf.start(We, St), _r = We.selection;
					(_r == null || _r.anchor.path[0] !== St[0]) && We.select(Kn);
				}
			} }
		}, Pg("table", {
			width: _r,
			contentEditable: St
		}, Pg("colgroup", null, u6(x).map((function(x) {
			var Be = x.width;
			return Pg("col", { width: Be === void 0 ? "auto" : Be });
		}))), Pg("tbody", null, Be)));
	}
}, d3 = {
	type: "table-row",
	renderElem: function(x, Be, We) {
		return Pg("tr", null, Be);
	}
}, p3 = {
	type: "table-cell",
	renderElem: function(x, Be, We) {
		var St = function(x, Be) {
			var We = QO.getParentNode(x, Be);
			if (We == null) return !1;
			var St = QO.getParentNode(x, We);
			return St != null && u6(St).some((function(x) {
				return x === Be;
			}));
		}(We, x), Kn = x, _r = Kn.colSpan, Li = _r === void 0 ? 1 : _r, fa = Kn.rowSpan, Vo = fa === void 0 ? 1 : fa, Xo = Kn.isHeader;
		return St ? Pg(Xo !== void 0 && Xo ? "th" : "td", {
			colSpan: Li,
			rowSpan: Vo,
			style: { borderRightWidth: "3px" },
			on: { mousemove: eg((function(Be) {
				var St = this.elm;
				if (St != null) {
					var Kn = St.getBoundingClientRect(), _r = Kn.left, Li = Kn.width, fa = Kn.top, Vo = Kn.height, Xo = Be.clientX, Tc = Be.clientY;
					r3 || (Xo > _r + Li - 5 && Xo < _r + Li && Tc > fa && Tc < fa + Vo ? (St.style.cursor = "col-resize", u3 = We, a3 = QO.findPath(We, x)) : r3 || (St.style.cursor = "auto", u3 = null, a3 = null));
				}
			}), 100) }
		}, Be) : Pg("td", {
			colSpan: Li,
			rowSpan: Vo
		}, Be);
	}
}, h3 = {
	selector: "table",
	preParseHtml: function(x) {
		var Be = Mp(x);
		if (n3(Be) !== "table") return x;
		var We = Be.find("tbody");
		if (We.length === 0) return x;
		var St = Be.find("tr");
		return Be.append(St), We.remove(), Be[0];
	}
}, g3 = o6.filter;
H2({
	target: "Array",
	proto: !0,
	forced: !V4("filter")
}, { filter: function(x) {
	return g3(this, x, arguments.length > 1 ? arguments[1] : void 0);
} });
var v3 = Math.floor, y3 = N0("".charAt), m3 = N0("".replace), b3 = N0("".slice), w3 = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, E3 = /\$([$&'`]|\d{1,2})/g, D3 = function(x, Be, We, St, Kn, _r) {
	var Li = We + x.length, fa = St.length, Vo = E3;
	return Kn !== void 0 && (Kn = y1(Kn), Vo = w3), m3(_r, Vo, (function(_r, Vo) {
		var Xo;
		switch (y3(Vo, 0)) {
			case "$": return "$";
			case "&": return x;
			case "`": return b3(Be, 0, We);
			case "'": return b3(Be, Li);
			case "<":
				Xo = Kn[b3(Vo, 1, -1)];
				break;
			default:
				var Tc = +Vo;
				if (Tc === 0) return _r;
				if (Tc > fa) {
					var Tl = v3(Tc / 10);
					return Tl === 0 ? _r : Tl <= fa ? St[Tl - 1] === void 0 ? y3(Vo, 1) : St[Tl - 1] + y3(Vo, 1) : _r;
				}
				Xo = St[Tc - 1];
		}
		return Xo === void 0 ? "" : Xo;
	}));
}, S3 = k1("replace"), x3 = Math.max, C3 = Math.min, A3 = N0([].concat), O3 = N0([].push), k3 = N0("".indexOf), B3 = N0("".slice), F3 = "a".replace(/./, "$0") === "$0", T3 = !!/./[S3] && /./[S3]("a", "$0") === "";
A6("replace", (function(x, Be, We) {
	var St = T3 ? "$" : "$0";
	return [function(x, We) {
		var St = V0(this), Kn = x == null ? void 0 : c1(x, S3);
		return Kn ? A0(Kn, x, St, We) : A0(Be, X2(St), x, We);
	}, function(x, Kn) {
		var _r = z1(this), Li = X2(x);
		if (typeof Kn == "string" && k3(Kn, St) === -1 && k3(Kn, "$<") === -1) {
			var fa = We(Be, _r, Li, Kn);
			if (fa.done) return fa.value;
		}
		var Vo = W0(Kn);
		Vo || (Kn = X2(Kn));
		var Xo = _r.global;
		if (Xo) {
			var Tc = _r.unicode;
			_r.lastIndex = 0;
		}
		for (var Tl = [];;) {
			var Al = z6(_r, Li);
			if (Al === null || (O3(Tl, Al), !Xo)) break;
			X2(Al[0]) === "" && (_r.lastIndex = N6(Li, E2(_r.lastIndex), Tc));
		}
		for (var Uu, Ff = "", Lm = 0, Bm = 0; Bm < Tl.length; Bm++) {
			for (var x_ = X2((Al = Tl[Bm])[0]), uy = x3(C3(v2(Al.index), Li.length), 0), dx = [], kx = 1; kx < Al.length; kx++) O3(dx, (Uu = Al[kx]) === void 0 ? Uu : String(Uu));
			var eC = Al.groups;
			if (Vo) {
				var uC = A3([x_], dx, uy, Li);
				eC !== void 0 && O3(uC, eC);
				var _T = X2(S6(Kn, void 0, uC));
			} else _T = D3(x_, Li, uy, dx, eC, Kn);
			uy >= Lm && (Ff += B3(Li, Lm, uy) + _T, Lm = uy + x_.length);
		}
		return Ff + B3(Li, Lm);
	}];
}), !!S0((function() {
	var x = /./;
	return x.exec = function() {
		var x = [];
		return x.groups = { a: "7" }, x;
	}, "".replace(x, "$<a>") !== "7";
})) || !F3 || T3);
var _3 = {
	selector: "td:not([data-w-e-type]),th:not([data-w-e-type])",
	parseElemHtml: function(x, Be, We) {
		var St = Mp(x);
		(Be = Be.filter((function(x) {
			return !!ed.isText(x) || !!We.isInline(x);
		}))).length === 0 && (Be = [{ text: St.text().replace(/\s+/gm, " ") }]);
		var Kn = parseInt(St.attr("colSpan") || "1"), _r = parseInt(St.attr("rowSpan") || "1"), Li = St.attr("width") || "auto";
		return {
			type: "table-cell",
			isHeader: n3(St) === "th",
			colSpan: Kn,
			rowSpan: _r,
			width: Li,
			children: Be
		};
	}
}, P3 = {
	selector: "tr:not([data-w-e-type])",
	parseElemHtml: function(x, Be, We) {
		return {
			type: "table-row",
			children: Be.filter((function(x) {
				return QO.getNodeType(x) === "table-cell";
			}))
		};
	}
}, j3 = {
	selector: "table:not([data-w-e-type])",
	parseElemHtml: function(x, Be, We) {
		var St = Mp(x), Kn = "auto";
		return function(x, Be) {
			for (var We = "", St = (x.attr("style") || "").split(";"), Kn = St.length, _r = 0; _r < Kn; _r++) {
				var Li = St[_r];
				if (Li) {
					var fa = Li.split(":");
					fa[0].trim() === "width" && (We = fa[1].trim());
				}
			}
			return We;
		}(St) === "100%" && (Kn = "100%"), St.attr("width") === "100%" && (Kn = "100%"), {
			type: "table",
			width: Kn,
			children: Be.filter((function(x) {
				return QO.getNodeType(x) === "table-row";
			}))
		};
	}
}, N3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || !!QO.getSelectedElems(x).some((function(Be) {
			var We = QO.getNodeType(Be);
			return We === "pre" || We === "table" || We === "list-item" || !!x.isVoid(Be);
		}));
	}, x.prototype.getPanelContentElem = function(x) {
		var Be = this;
		if (this.$content) return this.$content[0];
		for (var We = Mp("<div class=\"w-e-panel-content-table\"></div>"), St = Mp("<span>0 &times; 0</span>"), Kn = Mp("<table></table>"), _r = 0; _r < 10; _r++) {
			for (var Li = Mp("<tr></tr>"), fa = 0; fa < 10; fa++) {
				var Vo = Mp("<td></td>");
				Vo.attr("data-x", fa.toString()), Vo.attr("data-y", _r.toString()), Li.append(Vo), Vo.on("mouseenter", (function(x) {
					var Be = x.target;
					if (Be != null) {
						var We = Mp(Be).dataset(), _r = We.x, Li = We.y;
						St[0].innerHTML = _r + 1 + " &times; " + (Li + 1), Kn.children().each((function(x) {
							Mp(x).children().each((function(x) {
								var Be = Mp(x), We = Be.dataset(), St = We.x, Kn = We.y;
								St <= _r && Kn <= Li ? Be.addClass("active") : Be.removeClass("active");
							}));
						}));
					}
				})), Vo.on("click", (function(We) {
					We.preventDefault();
					var St = We.target;
					if (St != null) {
						var Kn = Mp(St).dataset(), _r = Kn.x, Li = Kn.y;
						Be.insertTable(x, Li + 1, _r + 1);
					}
				}));
			}
			Kn.append(Li);
		}
		return We.append(Kn), We.append(St), this.$content = We, We[0];
	}, x.prototype.insertTable = function(x, Be, We) {
		var St = parseInt(Be, 10), Kn = parseInt(We, 10);
		if (St && Kn && !(St <= 0 || Kn <= 0)) {
			QO.isSelectedEmptyParagraph(x) && md.removeNodes(x, { mode: "highest" });
			var _r = function(x, Be) {
				for (var We = [], St = 0; St < x; St++) {
					for (var Kn = [], _r = 0; _r < Be; _r++) {
						var Li = {
							type: "table-cell",
							children: [{ text: "" }]
						};
						St === 0 && (Li.isHeader = !0), Kn.push(Li);
					}
					We.push({
						type: "table-row",
						children: Kn
					});
				}
				return {
					type: "table",
					width: "auto",
					children: We
				};
			}(St, Kn);
			md.insertNodes(x, _r, { mode: "highest" });
		}
	}, x;
}(), I3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || QO.getSelectedNodeByType(x, "table") == null;
	}, x.prototype.exec = function(x, Be) {
		this.isDisabled(x) || md.removeNodes(x, { mode: "highest" });
	}, x;
}(), L3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || QO.getSelectedNodeByType(x, "table") == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = Y4(Y4(Bf.nodes(x, {
				match: function(x) {
					return QO.checkNodeType(x, "table-cell");
				},
				universal: !0
			}), 1)[0], 2), St = We[0], Kn = We[1], _r = QO.getParentNode(x, St)?.children.length || 0;
			if (_r !== 0) {
				for (var Li = {
					type: "table-row",
					children: []
				}, fa = 0; fa < _r; fa++) Li.children.push({
					type: "table-cell",
					children: [{ text: "" }]
				});
				var Vo = Mf.parent(Kn), Xo = Mf.next(Vo);
				md.insertNodes(x, Li, { at: Xo });
			}
		}
	}, x;
}(), R3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || QO.getSelectedNodeByType(x, "table-row") == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = Y4(Y4(Bf.nodes(x, {
				match: function(x) {
					return QO.checkNodeType(x, "table-row");
				},
				universal: !0
			}), 1)[0], 2), St = We[0], Kn = We[1];
			(QO.getParentNode(x, St)?.children.length || 0) <= 1 ? md.removeNodes(x, { mode: "highest" }) : md.removeNodes(x, { at: Kn });
		}
	}, x;
}(), M3 = {
	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
}, z3 = j1("span").classList, $3 = z3 && z3.constructor && z3.constructor.prototype, H3 = $3 === Object.prototype ? void 0 : $3, V3 = o6.forEach, W3 = function(x, Be) {
	var We = [].forEach;
	return !!We && S0((function() {
		We.call(null, (function() {
			throw 1;
		}), 1);
	}));
}() ? [].forEach : function(x) {
	return V3(this, x, arguments.length > 1 ? arguments[1] : void 0);
}, G3 = function(x) {
	if (x && x.forEach !== W3) try {
		U1(x, "forEach", W3);
	} catch {
		x.forEach = W3;
	}
};
for (var q3 in M3) M3[q3] && G3(D0[q3] && D0[q3].prototype);
G3(H3);
var K3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || QO.getSelectedNodeByType(x, "table") == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = Y4(Y4(Bf.nodes(x, {
				match: function(x) {
					return QO.checkNodeType(x, "table-cell");
				},
				universal: !0
			}), 1)[0], 2), St = We[0], Kn = We[1], _r = QO.getParentNode(x, St);
			if (_r != null) {
				var Li = QO.getParentNode(x, _r);
				Li != null && (Li.children || []).forEach((function(Be, We) {
					Sf.isElement(Be) && (Be.children || []).forEach((function(Be) {
						var St = QO.findPath(x, Be);
						if (St.length === Kn.length && v0(St.slice(-1), Kn.slice(-1))) {
							var _r = {
								type: "table-cell",
								children: [{ text: "" }]
							};
							We === 0 && s6(Li) && (_r.isHeader = !0), md.insertNodes(x, _r, { at: St });
						}
					}));
				}));
			}
		}
	}, x;
}(), Y3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || QO.getSelectedNodeByType(x, "table-cell") == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = Y4(Y4(Bf.nodes(x, {
				match: function(x) {
					return QO.checkNodeType(x, "table-cell");
				},
				universal: !0
			}), 1)[0], 2), St = We[0], Kn = We[1], _r = QO.getParentNode(x, St), Li = _r?.children.length || 0;
			if (!_r || Li <= 1) md.removeNodes(x, { mode: "highest" });
			else {
				var fa = QO.getParentNode(x, _r);
				fa != null && (fa.children || []).forEach((function(Be) {
					Sf.isElement(Be) && (Be.children || []).forEach((function(Be) {
						var We = QO.findPath(x, Be);
						We.length === Kn.length && v0(We.slice(-1), Kn.slice(-1)) && md.removeNodes(x, { at: We });
					}));
				}));
			}
		}
	}, x;
}(), X3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		var Be = QO.getSelectedNodeByType(x, "table");
		return Be != null && s6(Be);
	}, x.prototype.isActive = function(x) {
		return !!this.getValue(x);
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || QO.getSelectedNodeByType(x, "table") == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = !Be, St = QO.getSelectedNodeByType(x, "table");
			St != null && u6(St).forEach((function(Be) {
				return md.setNodes(x, { isHeader: We }, { at: QO.findPath(x, Be) });
			}));
		}
	}, x;
}(), Z3 = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		var Be = QO.getSelectedNodeByType(x, "table");
		return Be != null && Be.width === "100%";
	}, x.prototype.isActive = function(x) {
		return !!this.getValue(x);
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || QO.getSelectedNodeByType(x, "table") == null;
	}, x.prototype.exec = function(x, Be) {
		if (!this.isDisabled(x)) {
			var We = { width: Be ? "auto" : "100%" };
			md.setNodes(x, We, { mode: "highest" });
		}
	}, x;
}(), J3 = {
	renderElems: [
		f3,
		d3,
		p3
	],
	elemsToHtml: [
		{
			type: "table",
			elemToHtml: function(x, Be) {
				var We = x.width;
				return "<table style=\"width: " + (We === void 0 ? "auto" : We) + ";\"><tbody>" + Be + "</tbody></table>";
			}
		},
		{
			type: "table-row",
			elemToHtml: function(x, Be) {
				return "<tr>" + Be + "</tr>";
			}
		},
		{
			type: "table-cell",
			elemToHtml: function(x, Be) {
				var We = x, St = We.colSpan, Kn = St === void 0 ? 1 : St, _r = We.rowSpan, Li = _r === void 0 ? 1 : _r, fa = We.isHeader, Vo = fa !== void 0 && fa, Xo = We.width, Tc = Vo ? "th" : "td";
				return "<" + Tc + " colSpan=\"" + Kn + "\" rowSpan=\"" + Li + "\" width=\"" + (Xo === void 0 ? "auto" : Xo) + "\">" + Be + "</" + Tc + ">";
			}
		}
	],
	preParseHtml: [h3],
	parseElemsHtml: [
		_3,
		P3,
		j3
	],
	menus: [
		{
			key: "insertTable",
			factory: function() {
				return new N3();
			}
		},
		{
			key: "deleteTable",
			factory: function() {
				return new I3();
			}
		},
		{
			key: "insertTableRow",
			factory: function() {
				return new L3();
			}
		},
		{
			key: "deleteTableRow",
			factory: function() {
				return new R3();
			}
		},
		{
			key: "insertTableCol",
			factory: function() {
				return new K3();
			}
		},
		{
			key: "deleteTableCol",
			factory: function() {
				return new Y3();
			}
		},
		{
			key: "tableHeader",
			factory: function() {
				return new X3();
			}
		},
		{
			key: "tableFullWidth",
			factory: function() {
				return new Z3();
			}
		}
	],
	editorPlugin: function(x) {
		var Be = x.insertBreak, We = x.deleteBackward, St = x.deleteForward, Kn = x.normalizeNode, _r = x.insertData, Li = x.handleTab, fa = x.selectAll, Vo = x;
		return Vo.insertBreak = function() {
			QO.getSelectedNodeByType(Vo, "table") == null ? Be() : Vo.insertText("\n");
		}, Vo.deleteBackward = function(x) {
			if (!X4(Vo)) {
				var Be = Vo.selection;
				if (Be) {
					var St = Bf.before(Vo, Be);
					if (St) {
						var Kn = Z4(Vo, St), _r = Z4(Vo, Be);
						if (Kn && !_r) return;
					}
				}
				We(x);
			}
		}, Vo.handleTab = function() {
			if (QO.getSelectedNodeByType(Vo, "table")) {
				var Be = Bf.above(x);
				QO.checkNodeType(Be[0], "table-cell") && md.select(x, Be[1]);
				var We = Bf.next(x);
				if (We) We[0] && We[0].text && (We = Bf.above(x, { at: We[1] }) ?? We), md.select(x, We[1]);
				else {
					var St = Vo.children || [], Kn = St.length;
					if (QO.checkNodeType(St[Kn - 1], "table")) {
						var _r = QO.genEmptyParagraph();
						md.insertNodes(Vo, _r, { at: [Kn] }), Vo.handleTab();
					}
				}
			} else Li();
		}, Vo.deleteForward = function(x) {
			X4(Vo) || St(x);
		}, Vo.normalizeNode = function(x) {
			var Be = Y4(x, 2), We = Be[0], St = Be[1];
			if (QO.getNodeType(We) !== "table") return Kn([We, St]);
			if (QO.isLastNode(Vo, We)) {
				var _r = QO.genEmptyParagraph();
				md.insertNodes(Vo, _r, { at: [St[0] + 1] });
			}
		}, Vo.insertData = function(x) {
			if (QO.getSelectedNodeByType(Vo, "table") != null) {
				var Be = x.getData("text/plain");
				Be === "\n" || /<img[^>]+>/.test(x.getData("text/html")) ? _r(x) : Bf.insertText(Vo, Be);
			} else _r(x);
		}, Vo.selectAll = function() {
			var x = Vo.selection;
			if (x != null) {
				var Be = QO.getSelectedNodeByType(Vo, "table-cell");
				if (Be != null) {
					var We = x.anchor, St = x.focus;
					if (Mf.equals(We.path.slice(0, 3), St.path.slice(0, 3))) if (Nf.string(Be).length !== 0) {
						var Kn = QO.findPath(Vo, Be), _r = {
							anchor: Bf.start(Vo, Kn),
							focus: Bf.end(Vo, Kn)
						};
						Vo.select(_r);
					} else fa();
					else fa();
				} else fa();
			} else fa();
		}, Vo;
	}
};
MP("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"
} }), MP("zh-CN", { videoModule: {
	delete: "删除视频",
	uploadVideo: "上传视频",
	insertVideo: "插入视频",
	videoSrc: "视频地址",
	videoSrcPlaceHolder: "视频文件 url 或第三方 <iframe>",
	videoPoster: "视频封面",
	videoPosterPlaceHolder: "封面图片 url",
	ok: "确定",
	editSize: "修改尺寸",
	width: "宽度",
	height: "高度"
} });
var Q3 = function() {
	return Q3 = Object.assign || function(x) {
		for (var Be, We = 1, St = arguments.length; We < St; We++) for (var Kn in Be = arguments[We]) Object.prototype.hasOwnProperty.call(Be, Kn) && (x[Kn] = Be[Kn]);
		return x;
	}, Q3.apply(this, arguments);
};
function e5(x, Be, We, St) {
	return new (We ||= Promise)((function(Kn, _r) {
		function Li(x) {
			try {
				Vo(St.next(x));
			} catch (x) {
				_r(x);
			}
		}
		function fa(x) {
			try {
				Vo(St.throw(x));
			} catch (x) {
				_r(x);
			}
		}
		function Vo(x) {
			var Be;
			x.done ? Kn(x.value) : (Be = x.value, Be instanceof We ? Be : new We((function(x) {
				x(Be);
			}))).then(Li, fa);
		}
		Vo((St = St.apply(x, Be || [])).next());
	}));
}
function t5(x, Be) {
	var We, St, Kn, _r, Li = {
		label: 0,
		sent: function() {
			if (1 & Kn[0]) throw Kn[1];
			return Kn[1];
		},
		trys: [],
		ops: []
	};
	return _r = {
		next: fa(0),
		throw: fa(1),
		return: fa(2)
	}, typeof Symbol == "function" && (_r[Symbol.iterator] = function() {
		return this;
	}), _r;
	function fa(_r) {
		return function(fa) {
			return function(_r) {
				if (We) throw TypeError("Generator is already executing.");
				for (; Li;) try {
					if (We = 1, St && (Kn = 2 & _r[0] ? St.return : _r[0] ? St.throw || ((Kn = St.return) && Kn.call(St), 0) : St.next) && !(Kn = Kn.call(St, _r[1])).done) return Kn;
					switch (St = 0, Kn && (_r = [2 & _r[0], Kn.value]), _r[0]) {
						case 0:
						case 1:
							Kn = _r;
							break;
						case 4: return Li.label++, {
							value: _r[1],
							done: !1
						};
						case 5:
							Li.label++, St = _r[1], _r = [0];
							continue;
						case 7:
							_r = Li.ops.pop(), Li.trys.pop();
							continue;
						default:
							if (!((Kn = (Kn = Li.trys).length > 0 && Kn[Kn.length - 1]) || _r[0] !== 6 && _r[0] !== 2)) {
								Li = 0;
								continue;
							}
							if (_r[0] === 3 && (!Kn || _r[1] > Kn[0] && _r[1] < Kn[3])) {
								Li.label = _r[1];
								break;
							}
							if (_r[0] === 6 && Li.label < Kn[1]) {
								Li.label = Kn[1], Kn = _r;
								break;
							}
							if (Kn && Li.label < Kn[2]) {
								Li.label = Kn[2], Li.ops.push(_r);
								break;
							}
							Kn[2] && Li.ops.pop(), Li.trys.pop();
							continue;
					}
					_r = Be.call(x, Li);
				} catch (x) {
					_r = [6, x], St = 0;
				} finally {
					We = Kn = 0;
				}
				if (5 & _r[0]) throw _r[1];
				return {
					value: _r[0] ? _r[1] : void 0,
					done: !0
				};
			}([_r, fa]);
		};
	}
}
function n5(x, Be) {
	var We = typeof Symbol == "function" && x[Symbol.iterator];
	if (!We) return x;
	var St, Kn, _r = We.call(x), Li = [];
	try {
		for (; (Be === void 0 || Be-- > 0) && !(St = _r.next()).done;) Li.push(St.value);
	} catch (x) {
		Kn = { error: x };
	} finally {
		try {
			St && !St.done && (We = _r.return) && We.call(_r);
		} finally {
			if (Kn) throw Kn.error;
		}
	}
	return Li;
}
function r5(x) {
	if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
	var Be, We = x[Symbol.asyncIterator];
	return We ? We.call(x) : (x = function(x) {
		var Be = typeof Symbol == "function" && Symbol.iterator, We = Be && x[Be], St = 0;
		if (We) return We.call(x);
		if (x && typeof x.length == "number") return { next: function() {
			return x && St >= x.length && (x = void 0), {
				value: x && x[St++],
				done: !x
			};
		} };
		throw TypeError(Be ? "Object is not iterable." : "Symbol.iterator is not defined.");
	}(x), Be = {}, St("next"), St("throw"), St("return"), Be[Symbol.asyncIterator] = function() {
		return this;
	}, Be);
	function St(We) {
		Be[We] = x[We] && function(Be) {
			return new Promise((function(St, Kn) {
				(function(x, Be, We, St) {
					Promise.resolve(St).then((function(Be) {
						x({
							value: Be,
							done: We
						});
					}), Be);
				})(St, Kn, (Be = x[We](Be)).done, Be.value);
			}));
		};
	}
}
var o5 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function i5(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var a5, u5, s5 = function(x) {
	return x && x.Math == Math && x;
}, l5 = s5(typeof globalThis == "object" && globalThis) || s5(typeof window == "object" && window) || s5(typeof self == "object" && self) || s5(typeof o5 == "object" && o5) || function() {
	return this;
}() || Function("return this")(), c5 = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, f5 = !c5((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), d5 = Function.prototype.call, p5 = d5.bind ? d5.bind(d5) : function() {
	return d5.apply(d5, arguments);
}, h5 = {}.propertyIsEnumerable, g5 = Object.getOwnPropertyDescriptor, v5 = { f: g5 && !h5.call({ 1: 2 }, 1) ? function(x) {
	var Be = g5(this, x);
	return !!Be && Be.enumerable;
} : h5 }, y5 = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, m5 = Function.prototype, b5 = m5.bind, w5 = m5.call, E5 = b5 && b5.bind(w5), D5 = b5 ? function(x) {
	return x && E5(w5, x);
} : function(x) {
	return x && function() {
		return w5.apply(x, arguments);
	};
}, S5 = D5({}.toString), x5 = D5("".slice), C5 = function(x) {
	return x5(S5(x), 8, -1);
}, A5 = l5.Object, O5 = D5("".split), k5 = c5((function() {
	return !A5("z").propertyIsEnumerable(0);
})) ? function(x) {
	return C5(x) == "String" ? O5(x, "") : A5(x);
} : A5, B5 = l5.TypeError, F5 = function(x) {
	if (x == null) throw B5("Can't call method on " + x);
	return x;
}, T5 = function(x) {
	return k5(F5(x));
}, _5 = function(x) {
	return typeof x == "function";
}, P5 = function(x) {
	return typeof x == "object" ? x !== null : _5(x);
}, j5 = function(x) {
	return _5(x) ? x : void 0;
}, N5 = function(x, Be) {
	return arguments.length < 2 ? j5(l5[x]) : l5[x] && l5[x][Be];
}, I5 = D5({}.isPrototypeOf), L5 = N5("navigator", "userAgent") || "", R5 = l5.process, M5 = l5.Deno, z5 = R5 && R5.versions || M5 && M5.version, $5 = z5 && z5.v8;
$5 && (u5 = (a5 = $5.split("."))[0] > 0 && a5[0] < 4 ? 1 : +(a5[0] + a5[1])), !u5 && L5 && (!(a5 = L5.match(/Edge\/(\d+)/)) || a5[1] >= 74) && (a5 = L5.match(/Chrome\/(\d+)/)) && (u5 = +a5[1]);
var H5 = u5, V5 = !!Object.getOwnPropertySymbols && !c5((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && H5 && H5 < 41;
})), U5 = V5 && !Symbol.sham && typeof Symbol.iterator == "symbol", W5 = l5.Object, G5 = U5 ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = N5("Symbol");
	return _5(Be) && I5(Be.prototype, W5(x));
}, q5 = l5.String, K5 = function(x) {
	try {
		return q5(x);
	} catch {
		return "Object";
	}
}, Y5 = l5.TypeError, X5 = function(x) {
	if (_5(x)) return x;
	throw Y5(K5(x) + " is not a function");
}, Z5 = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : X5(We);
}, J5 = l5.TypeError, Q5 = Object.defineProperty, e8 = function(x, Be) {
	try {
		Q5(l5, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		l5[x] = Be;
	}
	return Be;
}, t8 = l5["__core-js_shared__"] || e8("__core-js_shared__", {}), n8 = i5((function(x) {
	(x.exports = function(x, Be) {
		return t8[x] || (t8[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), r8 = l5.Object, o8 = function(x) {
	return r8(F5(x));
}, i8 = D5({}.hasOwnProperty), a8 = Object.hasOwn || function(x, Be) {
	return i8(o8(x), Be);
}, u8 = 0, s8 = Math.random(), l8 = D5(1 .toString), c8 = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + l8(++u8 + s8, 36);
}, f8 = n8("wks"), d8 = l5.Symbol, p8 = d8 && d8.for, h8 = U5 ? d8 : d8 && d8.withoutSetter || c8, g8 = function(x) {
	if (!a8(f8, x) || !V5 && typeof f8[x] != "string") {
		var Be = "Symbol." + x;
		V5 && a8(d8, x) ? f8[x] = d8[x] : f8[x] = U5 && p8 ? p8(Be) : h8(Be);
	}
	return f8[x];
}, v8 = l5.TypeError, y8 = g8("toPrimitive"), m8 = function(x) {
	var Be = function(x, Be) {
		if (!P5(x) || G5(x)) return x;
		var We, St = Z5(x, y8);
		if (St) {
			if (Be === void 0 && (Be = "default"), We = p5(St, x, Be), !P5(We) || G5(We)) return We;
			throw v8("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && _5(We = x.toString) && !P5(St = p5(We, x)) || _5(We = x.valueOf) && !P5(St = p5(We, x)) || Be !== "string" && _5(We = x.toString) && !P5(St = p5(We, x))) return St;
			throw J5("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return G5(Be) ? Be : Be + "";
}, b8 = l5.document, w8 = P5(b8) && P5(b8.createElement), E8 = function(x) {
	return w8 ? b8.createElement(x) : {};
}, D8 = !f5 && !c5((function() {
	return Object.defineProperty(E8("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), S8 = Object.getOwnPropertyDescriptor, x8 = { f: f5 ? S8 : function(x, Be) {
	if (x = T5(x), Be = m8(Be), D8) try {
		return S8(x, Be);
	} catch {}
	if (a8(x, Be)) return y5(!p5(v5.f, x, Be), x[Be]);
} }, C8 = l5.String, A8 = l5.TypeError, O8 = function(x) {
	if (P5(x)) return x;
	throw A8(C8(x) + " is not an object");
}, k8 = l5.TypeError, B8 = Object.defineProperty, F8 = { f: f5 ? B8 : function(x, Be, We) {
	if (O8(x), Be = m8(Be), O8(We), D8) try {
		return B8(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw k8("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, T8 = f5 ? function(x, Be, We) {
	return F8.f(x, Be, y5(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, _8 = D5(Function.toString);
_5(t8.inspectSource) || (t8.inspectSource = function(x) {
	return _8(x);
});
var P8, j8, N8, I8 = t8.inspectSource, L8 = l5.WeakMap, R8 = _5(L8) && /native code/.test(I8(L8)), M8 = n8("keys"), z8 = function(x) {
	return M8[x] || (M8[x] = c8(x));
}, $8 = {}, H8 = l5.TypeError, V8 = l5.WeakMap;
if (R8 || t8.state) {
	var U8 = t8.state ||= new V8(), W8 = D5(U8.get), G8 = D5(U8.has), q8 = D5(U8.set);
	P8 = function(x, Be) {
		if (G8(U8, x)) throw new H8("Object already initialized");
		return Be.facade = x, q8(U8, x, Be), Be;
	}, j8 = function(x) {
		return W8(U8, x) || {};
	}, N8 = function(x) {
		return G8(U8, x);
	};
} else {
	var K8 = z8("state");
	$8[K8] = !0, P8 = function(x, Be) {
		if (a8(x, K8)) throw new H8("Object already initialized");
		return Be.facade = x, T8(x, K8, Be), Be;
	}, j8 = function(x) {
		return a8(x, K8) ? x[K8] : {};
	}, N8 = function(x) {
		return a8(x, K8);
	};
}
var Y8 = {
	set: P8,
	get: j8,
	has: N8,
	enforce: function(x) {
		return N8(x) ? j8(x) : P8(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!P5(Be) || (We = j8(Be)).type !== x) throw H8("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, X8 = Function.prototype, Z8 = f5 && Object.getOwnPropertyDescriptor, J8 = a8(X8, "name"), Q8 = {
	EXISTS: J8,
	PROPER: J8 && function() {}.name === "something",
	CONFIGURABLE: J8 && (!f5 || f5 && Z8(X8, "name").configurable)
}, e7 = i5((function(x) {
	var Be = Q8.CONFIGURABLE, We = Y8.get, St = Y8.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		_5(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!a8(_r, "name") || Be && _r.name !== Tl) && T8(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === l5 ? Xo ? x[We] = _r : e8(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : T8(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return _5(this) && We(this).source || I8(this);
	}));
})), t7 = Math.ceil, n7 = Math.floor, r7 = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? n7 : t7)(Be);
}, o7 = Math.max, i7 = Math.min, a7 = function(x, Be) {
	var We = r7(x);
	return We < 0 ? o7(We + Be, 0) : i7(We, Be);
}, u7 = Math.min, s7 = function(x) {
	return x > 0 ? u7(r7(x), 9007199254740991) : 0;
}, l7 = function(x) {
	return s7(x.length);
}, c7 = function(x) {
	return function(Be, We, St) {
		var Kn, _r = T5(Be), Li = l7(_r), fa = a7(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}, f7 = {
	includes: c7(!0),
	indexOf: c7(!1)
}, d7 = f7.indexOf, p7 = D5([].push), h7 = function(x, Be) {
	var We, St = T5(x), Kn = 0, _r = [];
	for (We in St) !a8($8, We) && a8(St, We) && p7(_r, We);
	for (; Be.length > Kn;) a8(St, We = Be[Kn++]) && (~d7(_r, We) || p7(_r, We));
	return _r;
}, g7 = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], v7 = g7.concat("length", "prototype"), y7 = { f: Object.getOwnPropertyNames || function(x) {
	return h7(x, v7);
} }, m7 = { f: Object.getOwnPropertySymbols }, b7 = D5([].concat), w7 = N5("Reflect", "ownKeys") || function(x) {
	var Be = y7.f(O8(x)), We = m7.f;
	return We ? b7(Be, We(x)) : Be;
}, E7 = function(x, Be) {
	for (var We = w7(Be), St = F8.f, Kn = x8.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		a8(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, D7 = /#|\.prototype\./, S7 = function(x, Be) {
	var We = C7[x7(x)];
	return We == O7 || We != A7 && (_5(Be) ? c5(Be) : !!Be);
}, x7 = S7.normalize = function(x) {
	return String(x).replace(D7, ".").toLowerCase();
}, C7 = S7.data = {}, A7 = S7.NATIVE = "N", O7 = S7.POLYFILL = "P", k7 = S7, B7 = x8.f, F7 = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? l5 : Xo ? l5[fa] || e8(fa, {}) : (l5[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = B7(We, St)) && Li.value : We[St], !k7(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			E7(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && T8(_r, "sham", !0), e7(We, St, _r, x);
	}
}, T7 = {};
T7[g8("toStringTag")] = "z";
var _7 = String(T7) === "[object z]", P7 = g8("toStringTag"), j7 = l5.Object, N7 = C5(function() {
	return arguments;
}()) == "Arguments", I7 = _7 ? C5 : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = j7(x), P7)) == "string" ? We : N7 ? C5(Be) : (St = C5(Be)) == "Object" && _5(Be.callee) ? "Arguments" : St;
}, L7 = l5.String, R7 = function(x) {
	if (I7(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return L7(x);
}, M7 = "	\n\v\f\r \xA0               \u2028\u2029", z7 = D5("".replace), $7 = "[" + M7 + "]", H7 = RegExp("^" + $7 + $7 + "*"), V7 = RegExp($7 + $7 + "*$"), U7 = function(x) {
	return function(Be) {
		var We = R7(F5(Be));
		return 1 & x && (We = z7(We, H7, "")), 2 & x && (We = z7(We, V7, "")), We;
	};
}, W7 = {
	start: U7(1),
	end: U7(2),
	trim: U7(3)
}, G7 = Q8.PROPER, q7 = W7.trim;
function K7(x) {
	return x.length ? x[0].tagName.toLowerCase() : "";
}
function Y7(x, Be, We) {
	Be === void 0 && (Be = "auto"), We === void 0 && (We = "auto");
	var St = Mp(x);
	return St.attr("width", Be), St.attr("height", We), St[0].outerHTML;
}
F7({
	target: "String",
	proto: !0,
	forced: c5((function() {
		return !!M7.trim() || G7 && M7.trim.name !== "trim";
	}))
}, { trim: function() {
	return q7(this);
} }), F7({ global: !0 }, { globalThis: l5 }), ah && (Mp.fn.append = ah), qp && (Mp.fn.on = qp), yh && (Mp.fn.focus = yh), Vp && (Mp.fn.attr = Vp), Gp && (Mp.fn.val = Gp), rh && (Mp.fn.html = rh), sh && (Mp.fn.parent = sh), Hp && (Mp.fn.hasClass = Hp), ph && (Mp.fn.empty = ph);
var X7, Z7 = {
	type: "video",
	renderElem: function(x, Be, We) {
		var St, Kn = x, _r = Kn.src, Li = _r === void 0 ? "" : _r, fa = Kn.poster, Vo = fa === void 0 ? "" : fa, Xo = Kn.width, Tc = Xo === void 0 ? "auto" : Xo, Tl = Kn.height, Al = Tl === void 0 ? "auto" : Tl, Uu = QO.isNodeSelected(We, x);
		if (Li.trim().indexOf("<iframe ") === 0) St = Pg("div", {
			className: "w-e-textarea-video-container",
			"data-selected": Uu ? "true" : "",
			innerHTML: Y7(Li, Tc, Al)
		});
		else {
			var Ff = Pg("video", {
				poster: Vo,
				controls: !0
			}, Pg("source", {
				src: Li,
				type: "video/mp4"
			}), "Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");
			Tc !== "auto" && (Ff.data.width = Tc), Al !== "auto" && (Ff.data.height = Al), St = Pg("div", {
				className: "w-e-textarea-video-container",
				"data-selected": Uu ? "true" : ""
			}, Ff);
		}
		return pg("div", {
			props: { contentEditable: !1 },
			on: { mousedown: function(x) {
				return x.preventDefault();
			} }
		}, St);
	}
}, J7 = {
	type: "video",
	elemToHtml: function(x, Be) {
		var We = x, St = We.src, Kn = St === void 0 ? "" : St, _r = We.poster, Li = _r === void 0 ? "" : _r, fa = We.width, Vo = fa === void 0 ? "auto" : fa, Xo = We.height, Tc = Xo === void 0 ? "auto" : Xo, Tl = "<div data-w-e-type=\"video\" data-w-e-is-void>\n";
		return Kn.trim().indexOf("<iframe ") === 0 ? Tl += Y7(Kn, Vo, Tc) : Tl += "<video poster=\"" + Li + "\" controls=\"true\" width=\"" + Vo + "\" height=\"" + Tc + "\"><source src=\"" + Kn + "\" type=\"video/mp4\"/></video>", Tl + "\n</div>";
	}
}, Q7 = Object.keys || function(x) {
	return h7(x, g7);
}, e9 = f5 ? Object.defineProperties : function(x, Be) {
	O8(x);
	for (var We, St = T5(Be), Kn = Q7(Be), _r = Kn.length, Li = 0; _r > Li;) F8.f(x, We = Kn[Li++], St[We]);
	return x;
}, t9 = N5("document", "documentElement"), n9 = z8("IE_PROTO"), r9 = function() {}, o9 = function(x) {
	return "<script>" + x + "<\/script>";
}, i9 = function(x) {
	x.write(o9("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, a9 = function() {
	try {
		X7 = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	a9 = typeof document < "u" ? document.domain && X7 ? i9(X7) : ((Be = E8("iframe")).style.display = "none", t9.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(o9("document.F=Object")), x.close(), x.F) : i9(X7);
	for (var We = g7.length; We--;) delete a9.prototype[g7[We]];
	return a9();
};
$8[n9] = !0;
var u9 = Object.create || function(x, Be) {
	var We;
	return x === null ? We = a9() : (r9.prototype = O8(x), We = new r9(), r9.prototype = null, We[n9] = x), Be === void 0 ? We : e9(We, Be);
}, s9 = g8("unscopables"), l9 = Array.prototype;
l9[s9] ?? F8.f(l9, s9, {
	configurable: !0,
	value: u9(null)
});
var c9 = function(x) {
	l9[s9][x] = !0;
}, f9 = f7.includes;
F7({
	target: "Array",
	proto: !0
}, { includes: function(x) {
	return f9(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), c9("includes");
var d9 = {
	selector: "iframe,video,p",
	preParseHtml: function(x) {
		var Be = Mp(x), We = Be;
		if (K7(Be) === "p") {
			var St = Be.children();
			if (St.length === 1) {
				var Kn = St[0], _r = Kn.tagName.toLowerCase();
				["iframe", "video"].includes(_r) && (We = Mp(Kn));
			}
		}
		var Li = K7(We);
		if (Li !== "iframe" && Li !== "video" || We.parent().attr("data-w-e-type") === "video") return We[0];
		var fa = Mp("<div data-w-e-type=\"video\" data-w-e-is-void></div>");
		return fa.append(We), fa[0];
	}
}, p9 = D5(D5.bind), h9 = function(x, Be) {
	return X5(x), Be === void 0 ? x : p9 ? p9(x, Be) : function() {
		return x.apply(Be, arguments);
	};
}, g9 = Array.isArray || function(x) {
	return C5(x) == "Array";
}, v9 = function() {}, y9 = [], m9 = N5("Reflect", "construct"), b9 = /^\s*(?:class|function)\b/, w9 = D5(b9.exec), E9 = !b9.exec(v9), D9 = function(x) {
	if (!_5(x)) return !1;
	try {
		return m9(v9, y9, x), !0;
	} catch {
		return !1;
	}
}, S9 = !m9 || c5((function() {
	var x;
	return D9(D9.call) || !D9(Object) || !D9((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!_5(x)) return !1;
	switch (I7(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return E9 || !!w9(b9, I8(x));
} : D9, x9 = g8("species"), C9 = l5.Array, A9 = function(x, Be) {
	return new (function(x) {
		var Be;
		return g9(x) && (Be = x.constructor, (S9(Be) && (Be === C9 || g9(Be.prototype)) || P5(Be) && (Be = Be[x9]) === null) && (Be = void 0)), Be === void 0 ? C9 : Be;
	}(x))(Be === 0 ? 0 : Be);
}, O9 = D5([].push), k9 = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = o8(Vo), Lm = k5(Ff), Bm = h9(Xo, Tc), x_ = l7(Lm), uy = 0, dx = Tl || A9, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: O9(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: O9(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, B9 = {
	forEach: k9(0),
	map: k9(1),
	filter: k9(2),
	some: k9(3),
	every: k9(4),
	find: k9(5),
	findIndex: k9(6),
	filterReject: k9(7)
}, F9 = B9.find, T9 = !0;
"find" in [] && [,].find((function() {
	T9 = !1;
})), F7({
	target: "Array",
	proto: !0,
	forced: T9
}, { find: function(x) {
	return F9(this, x, arguments.length > 1 ? arguments[1] : void 0);
} }), c9("find");
var _9 = _7 ? {}.toString : function() {
	return "[object " + I7(this) + "]";
};
function P9(x, Be, We, St) {
	return Be === void 0 && (Be = ""), We === void 0 && (We = "auto"), St === void 0 && (St = "auto"), {
		type: "video",
		src: x,
		poster: Be,
		width: We,
		height: St,
		children: [{ text: "" }]
	};
}
_7 || e7(Object.prototype, "toString", _9, { unsafe: !0 });
var j9, N9, I9 = {
	selector: "div[data-w-e-type=\"video\"]",
	parseElemHtml: function(x, Be, We) {
		var St = Mp(x), Kn = "", _r = "", Li = "auto", fa = "auto", Vo = St.find("iframe");
		if (Vo.length > 0) return Li = Vo.attr("width") || "auto", fa = Vo.attr("height") || "auto", P9(Kn = Vo[0].outerHTML, _r, Li, fa);
		var Xo = St.find("video");
		return (Kn = Xo.attr("src") || "") || Xo.length > 0 && (Kn = Xo.find("source").attr("src") || ""), Li = Xo.attr("width") || "auto", fa = Xo.attr("height") || "auto", P9(Kn, _r = Xo.attr("poster") || "", Li, fa);
	}
}, L9 = function() {
	var x = O8(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, R9 = l5.RegExp, M9 = c5((function() {
	var x = R9("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), z9 = M9 || c5((function() {
	return !R9("a", "y").sticky;
})), $9 = {
	BROKEN_CARET: M9 || c5((function() {
		var x = R9("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: z9,
	UNSUPPORTED_Y: M9
}, H9 = l5.RegExp, V9 = c5((function() {
	var x = H9(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), U9 = l5.RegExp, W9 = c5((function() {
	var x = U9("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), G9 = Y8.get, q9 = n8("native-string-replace", String.prototype.replace), K9 = RegExp.prototype.exec, Y9 = K9, X9 = D5("".charAt), Z9 = D5("".indexOf), J9 = D5("".replace), Q9 = D5("".slice), eee = (N9 = /b*/g, p5(K9, j9 = /a/, "a"), p5(K9, N9, "a"), j9.lastIndex !== 0 || N9.lastIndex !== 0), tee = $9.BROKEN_CARET, nee = /()??/.exec("")[1] !== void 0;
(eee || nee || tee || V9 || W9) && (Y9 = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = G9(Vo), Tc = R7(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = p5(Y9, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = tee && Vo.sticky, Ff = p5(L9, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = J9(Ff, "y", ""), Z9(Ff, "g") === -1 && (Ff += "g"), x_ = Q9(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && X9(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), nee && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), eee && (St = Vo.lastIndex), Kn = p5(K9, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = Q9(Kn.input, Bm), Kn[0] = Q9(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : eee && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), nee && Kn && Kn.length > 1 && p5(q9, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = u9(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var ree = Y9;
F7({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== ree
}, { exec: ree });
var oee = Function.prototype, iee = oee.apply, aee = oee.bind, uee = oee.call, see = typeof Reflect == "object" && Reflect.apply || (aee ? uee.bind(iee) : function() {
	return uee.apply(iee, arguments);
}), lee = (g8("species"), RegExp.prototype), cee = D5("".charAt), fee = D5("".charCodeAt), dee = D5("".slice), pee = function(x) {
	return function(Be, We) {
		var St, Kn, _r = R7(F5(Be)), Li = r7(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = fee(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = fee(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? cee(_r, Li) : St : x ? dee(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}, hee = {
	codeAt: pee(!1),
	charAt: pee(!0)
}, gee = hee.charAt, vee = function(x, Be, We) {
	return Be + (We ? gee(x, Be).length : 1);
}, yee = Math.floor, mee = D5("".charAt), bee = D5("".replace), wee = D5("".slice), Eee = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Dee = /\$([$&'`]|\d{1,2})/g, See = function(x, Be, We, St, Kn, _r) {
	var Li = We + x.length, fa = St.length, Vo = Dee;
	return Kn !== void 0 && (Kn = o8(Kn), Vo = Eee), bee(_r, Vo, (function(_r, Vo) {
		var Xo;
		switch (mee(Vo, 0)) {
			case "$": return "$";
			case "&": return x;
			case "`": return wee(Be, 0, We);
			case "'": return wee(Be, Li);
			case "<":
				Xo = Kn[wee(Vo, 1, -1)];
				break;
			default:
				var Tc = +Vo;
				if (Tc === 0) return _r;
				if (Tc > fa) {
					var Tl = yee(Tc / 10);
					return Tl === 0 ? _r : Tl <= fa ? St[Tl - 1] === void 0 ? mee(Vo, 1) : St[Tl - 1] + mee(Vo, 1) : _r;
				}
				Xo = St[Tc - 1];
		}
		return Xo === void 0 ? "" : Xo;
	}));
}, xee = l5.TypeError, Cee = function(x, Be) {
	var We = x.exec;
	if (_5(We)) {
		var St = p5(We, x, Be);
		return St !== null && O8(St), St;
	}
	if (C5(x) === "RegExp") return p5(ree, x, Be);
	throw xee("RegExp#exec called on incompatible receiver");
}, Aee = g8("replace"), Oee = Math.max, kee = Math.min, Bee = D5([].concat), Fee = D5([].push), Tee = D5("".indexOf), _ee = D5("".slice), Pee = "a".replace(/./, "$0") === "$0", jee = !!/./[Aee] && /./[Aee]("a", "$0") === "";
function Nee(x) {
	return x === void 0 && (x = "r"), x + "-" + Rh();
}
(function(x, Be, We, St) {
	var Kn = g8(x), _r = !c5((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !c5((function() {
		var x = !1, Be = /a/;
		return Be.exec = function() {
			return x = !0, null;
		}, Be[Kn](""), !x;
	}));
	if (!_r || !Li || We) {
		var fa = D5(/./[Kn]), Vo = function(x, Be, We) {
			var St = jee ? "$" : "$0";
			return [function(x, We) {
				var St = F5(this), Kn = x == null ? void 0 : Z5(x, Aee);
				return Kn ? p5(Kn, x, St, We) : p5(Be, R7(St), x, We);
			}, function(x, Kn) {
				var _r = O8(this), Li = R7(x);
				if (typeof Kn == "string" && Tee(Kn, St) === -1 && Tee(Kn, "$<") === -1) {
					var fa = We(Be, _r, Li, Kn);
					if (fa.done) return fa.value;
				}
				var Vo = _5(Kn);
				Vo || (Kn = R7(Kn));
				var Xo = _r.global;
				if (Xo) {
					var Tc = _r.unicode;
					_r.lastIndex = 0;
				}
				for (var Tl = [];;) {
					var Al = Cee(_r, Li);
					if (Al === null || (Fee(Tl, Al), !Xo)) break;
					R7(Al[0]) === "" && (_r.lastIndex = vee(Li, s7(_r.lastIndex), Tc));
				}
				for (var Uu, Ff = "", Lm = 0, Bm = 0; Bm < Tl.length; Bm++) {
					for (var x_ = R7((Al = Tl[Bm])[0]), uy = Oee(kee(r7(Al.index), Li.length), 0), dx = [], kx = 1; kx < Al.length; kx++) Fee(dx, (Uu = Al[kx]) === void 0 ? Uu : String(Uu));
					var eC = Al.groups;
					if (Vo) {
						var uC = Bee([x_], dx, uy, Li);
						eC !== void 0 && Fee(uC, eC);
						var _T = R7(see(Kn, void 0, uC));
					} else _T = See(x_, Li, uy, dx, eC, Kn);
					uy >= Lm && (Ff += _ee(Li, Lm, uy) + _T, Lm = uy + x_.length);
				}
				return Ff + _ee(Li, Lm);
			}];
		}(0, ""[x], (function(x, Be, We, St, Kn) {
			var Li = D5(x), Vo = Be.exec;
			return Vo === ree || Vo === lee.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		e7(String.prototype, x, Vo[0]), e7(lee, Kn, Vo[1]);
	}
})("replace", 0, !!c5((function() {
	var x = /./;
	return x.exec = function() {
		var x = [];
		return x.groups = { a: "7" }, x;
	}, "".replace(x, "$<a>") !== "7";
})) || !Pee || jee);
var Iee = l5.Promise, Lee = function(x, Be, We) {
	for (var St in Be) e7(x, St, Be[St], We);
	return x;
}, Ree = l5.String, Mee = l5.TypeError, zee = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var x, Be = !1, We = {};
	try {
		(x = D5(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(We, []), Be = We instanceof Array;
	} catch {}
	return function(We, St) {
		return O8(We), function(x) {
			if (typeof x == "object" || _5(x)) return x;
			throw Mee("Can't set " + Ree(x) + " as a prototype");
		}(St), Be ? x(We, St) : We.__proto__ = St, We;
	};
}() : void 0), $ee = F8.f, Hee = g8("toStringTag"), Vee = function(x, Be, We) {
	x && !a8(x = We ? x : x.prototype, Hee) && $ee(x, Hee, {
		configurable: !0,
		value: Be
	});
}, Uee = g8("species"), Wee = l5.TypeError, Gee = function(x, Be) {
	if (I5(Be, x)) return x;
	throw Wee("Incorrect invocation");
}, qee = {}, Kee = g8("iterator"), Yee = Array.prototype, Xee = g8("iterator"), Zee = function(x) {
	if (x != null) return Z5(x, Xee) || Z5(x, "@@iterator") || qee[I7(x)];
}, Jee = l5.TypeError, Qee = function(x, Be, We) {
	var St, Kn;
	O8(x);
	try {
		if (!(St = Z5(x, "return"))) {
			if (Be === "throw") throw We;
			return We;
		}
		St = p5(St, x);
	} catch (x) {
		Kn = !0, St = x;
	}
	if (Be === "throw") throw We;
	if (Kn) throw St;
	return O8(St), We;
}, ete = l5.TypeError, tte = function(x, Be) {
	this.stopped = x, this.result = Be;
}, nte = tte.prototype, rte = function(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo, Tc, Tl = We && We.that, Al = !(!We || !We.AS_ENTRIES), Uu = !(!We || !We.IS_ITERATOR), Ff = !(!We || !We.INTERRUPTED), Lm = h9(Be, Tl), Bm = function(x) {
		return St && Qee(St, "normal", x), new tte(!0, x);
	}, x_ = function(x) {
		return Al ? (O8(x), Ff ? Lm(x[0], x[1], Bm) : Lm(x[0], x[1])) : Ff ? Lm(x, Bm) : Lm(x);
	};
	if (Uu) St = x;
	else {
		if (!(Kn = Zee(x))) throw ete(K5(x) + " is not iterable");
		if ((Tc = Kn) !== void 0 && (qee.Array === Tc || Yee[Kee] === Tc)) {
			for (_r = 0, Li = l7(x); Li > _r; _r++) if ((fa = x_(x[_r])) && I5(nte, fa)) return fa;
			return new tte(!1);
		}
		St = function(x, Be) {
			var We = arguments.length < 2 ? Zee(x) : Be;
			if (X5(We)) return O8(p5(We, x));
			throw Jee(K5(x) + " is not iterable");
		}(x, Kn);
	}
	for (Vo = St.next; !(Xo = p5(Vo, St)).done;) {
		try {
			fa = x_(Xo.value);
		} catch (x) {
			Qee(St, "throw", x);
		}
		if (typeof fa == "object" && fa && I5(nte, fa)) return fa;
	}
	return new tte(!1);
}, ote = g8("iterator"), ite = !1;
try {
	var ate = 0, ute = {
		next: function() {
			return { done: !!ate++ };
		},
		return: function() {
			ite = !0;
		}
	};
	ute[ote] = function() {
		return this;
	}, Array.from(ute, (function() {
		throw 2;
	}));
} catch {}
var ste, lte, cte, fte, dte = function(x, Be) {
	if (!Be && !ite) return !1;
	var We = !1;
	try {
		var St = {};
		St[ote] = function() {
			return { next: function() {
				return { done: We = !0 };
			} };
		}, x(St);
	} catch {}
	return We;
}, pte = l5.TypeError, hte = g8("species"), gte = D5([].slice), vte = /(?:ipad|iphone|ipod).*applewebkit/i.test(L5), yte = C5(l5.process) == "process", mte = l5.setImmediate, bte = l5.clearImmediate, wte = l5.process, Ete = l5.Dispatch, Dte = l5.Function, Ste = l5.MessageChannel, xte = l5.String, Cte = 0, Ate = {};
try {
	ste = l5.location;
} catch {}
var Ote = function(x) {
	if (a8(Ate, x)) {
		var Be = Ate[x];
		delete Ate[x], Be();
	}
}, kte = function(x) {
	return function() {
		Ote(x);
	};
}, Bte = function(x) {
	Ote(x.data);
}, Fte = function(x) {
	l5.postMessage(xte(x), ste.protocol + "//" + ste.host);
};
mte && bte || (mte = function(x) {
	var Be = gte(arguments, 1);
	return Ate[++Cte] = function() {
		see(_5(x) ? x : Dte(x), void 0, Be);
	}, lte(Cte), Cte;
}, bte = function(x) {
	delete Ate[x];
}, yte ? lte = function(x) {
	wte.nextTick(kte(x));
} : Ete && Ete.now ? lte = function(x) {
	Ete.now(kte(x));
} : Ste && !vte ? (fte = (cte = new Ste()).port2, cte.port1.onmessage = Bte, lte = h9(fte.postMessage, fte)) : l5.addEventListener && _5(l5.postMessage) && !l5.importScripts && ste && ste.protocol !== "file:" && !c5(Fte) ? (lte = Fte, l5.addEventListener("message", Bte, !1)) : lte = "onreadystatechange" in E8("script") ? function(x) {
	t9.appendChild(E8("script")).onreadystatechange = function() {
		t9.removeChild(this), Ote(x);
	};
} : function(x) {
	setTimeout(kte(x), 0);
});
var Tte, _te, Pte, jte, Nte, Ite, Lte, Rte, Mte = {
	set: mte,
	clear: bte
}, zte = /ipad|iphone|ipod/i.test(L5) && l5.Pebble !== void 0, $te = /web0s(?!.*chrome)/i.test(L5), Hte = x8.f, Vte = Mte.set, Ute = l5.MutationObserver || l5.WebKitMutationObserver, Wte = l5.document, Gte = l5.process, qte = l5.Promise, Kte = Hte(l5, "queueMicrotask"), Yte = Kte && Kte.value;
Yte || (Tte = function() {
	var x, Be;
	for (yte && (x = Gte.domain) && x.exit(); _te;) {
		Be = _te.fn, _te = _te.next;
		try {
			Be();
		} catch (x) {
			throw _te ? jte() : Pte = void 0, x;
		}
	}
	Pte = void 0, x && x.enter();
}, vte || yte || $te || !Ute || !Wte ? !zte && qte && qte.resolve ? ((Lte = qte.resolve(void 0)).constructor = qte, Rte = h9(Lte.then, Lte), jte = function() {
	Rte(Tte);
}) : yte ? jte = function() {
	Gte.nextTick(Tte);
} : (Vte = h9(Vte, l5), jte = function() {
	Vte(Tte);
}) : (Nte = !0, Ite = Wte.createTextNode(""), new Ute(Tte).observe(Ite, { characterData: !0 }), jte = function() {
	Ite.data = Nte = !Nte;
}));
var Xte, Zte, Jte, Qte, ene = Yte || function(x) {
	var Be = {
		fn: x,
		next: void 0
	};
	Pte && (Pte.next = Be), _te || (_te = Be, jte()), Pte = Be;
}, tne = function(x) {
	var Be, We;
	this.promise = new x((function(x, St) {
		if (Be !== void 0 || We !== void 0) throw TypeError("Bad Promise constructor");
		Be = x, We = St;
	})), this.resolve = X5(Be), this.reject = X5(We);
}, nne = { f: function(x) {
	return new tne(x);
} }, rne = function(x) {
	try {
		return {
			error: !1,
			value: x()
		};
	} catch (x) {
		return {
			error: !0,
			value: x
		};
	}
}, one = typeof window == "object", ine = Mte.set, ane = g8("species"), une = "Promise", sne = Y8.getterFor(une), lne = Y8.set, cne = Y8.getterFor(une), fne = Iee && Iee.prototype, dne = Iee, pne = fne, hne = l5.TypeError, gne = l5.document, vne = l5.process, yne = nne.f, mne = yne, bne = !!(gne && gne.createEvent && l5.dispatchEvent), wne = _5(l5.PromiseRejectionEvent), Ene = !1, Dne = k7(une, (function() {
	var x = I8(dne), Be = x !== String(dne);
	if (!Be && H5 === 66) return !0;
	if (H5 >= 51 && /native code/.test(x)) return !1;
	var We = new dne((function(x) {
		x(1);
	})), St = function(x) {
		x((function() {}), (function() {}));
	};
	return (We.constructor = {})[ane] = St, !(Ene = We.then((function() {})) instanceof St) || !Be && one && !wne;
})), Sne = Dne || !dte((function(x) {
	dne.all(x).catch((function() {}));
})), xne = function(x) {
	var Be;
	return !(!P5(x) || !_5(Be = x.then)) && Be;
}, Cne = function(x, Be) {
	if (!x.notified) {
		x.notified = !0;
		var We = x.reactions;
		ene((function() {
			for (var St = x.value, Kn = x.state == 1, _r = 0; We.length > _r;) {
				var Li, fa, Vo, Xo = We[_r++], Tc = Kn ? Xo.ok : Xo.fail, Tl = Xo.resolve, Al = Xo.reject, Uu = Xo.domain;
				try {
					Tc ? (Kn || (x.rejection === 2 && Bne(x), x.rejection = 1), !0 === Tc ? Li = St : (Uu && Uu.enter(), Li = Tc(St), Uu && (Uu.exit(), Vo = !0)), Li === Xo.promise ? Al(hne("Promise-chain cycle")) : (fa = xne(Li)) ? p5(fa, Li, Tl, Al) : Tl(Li)) : Al(St);
				} catch (x) {
					Uu && !Vo && Uu.exit(), Al(x);
				}
			}
			x.reactions = [], x.notified = !1, Be && !x.rejection && One(x);
		}));
	}
}, Ane = function(x, Be, We) {
	var St, Kn;
	bne ? ((St = gne.createEvent("Event")).promise = Be, St.reason = We, St.initEvent(x, !1, !0), l5.dispatchEvent(St)) : St = {
		promise: Be,
		reason: We
	}, !wne && (Kn = l5["on" + x]) ? Kn(St) : x === "unhandledrejection" && function(x, Be) {
		var We = l5.console;
		We && We.error && (arguments.length == 1 ? We.error(x) : We.error(x, Be));
	}("Unhandled promise rejection", We);
}, One = function(x) {
	p5(ine, l5, (function() {
		var Be, We = x.facade, St = x.value;
		if (kne(x) && (Be = rne((function() {
			yte ? vne.emit("unhandledRejection", St, We) : Ane("unhandledrejection", We, St);
		})), x.rejection = yte || kne(x) ? 2 : 1, Be.error)) throw Be.value;
	}));
}, kne = function(x) {
	return x.rejection !== 1 && !x.parent;
}, Bne = function(x) {
	p5(ine, l5, (function() {
		var Be = x.facade;
		yte ? vne.emit("rejectionHandled", Be) : Ane("rejectionhandled", Be, x.value);
	}));
}, Fne = function(x, Be, We) {
	return function(St) {
		x(Be, St, We);
	};
}, Tne = function(x, Be, We) {
	x.done || (x.done = !0, We && (x = We), x.value = Be, x.state = 2, Cne(x, !0));
}, _ne = function(x, Be, We) {
	if (!x.done) {
		x.done = !0, We && (x = We);
		try {
			if (x.facade === Be) throw hne("Promise can't be resolved itself");
			var St = xne(Be);
			St ? ene((function() {
				var We = { done: !1 };
				try {
					p5(St, Be, Fne(_ne, We, x), Fne(Tne, We, x));
				} catch (Be) {
					Tne(We, Be, x);
				}
			})) : (x.value = Be, x.state = 1, Cne(x, !1));
		} catch (Be) {
			Tne({ done: !1 }, Be, x);
		}
	}
};
if (Dne && (pne = (dne = function(x) {
	Gee(this, pne), X5(x), p5(Xte, this);
	var Be = sne(this);
	try {
		x(Fne(_ne, Be), Fne(Tne, Be));
	} catch (x) {
		Tne(Be, x);
	}
}).prototype, (Xte = function(x) {
	lne(this, {
		type: une,
		done: !1,
		notified: !1,
		parent: !1,
		reactions: [],
		rejection: !1,
		state: 0,
		value: void 0
	});
}).prototype = Lee(pne, {
	then: function(x, Be) {
		var We = cne(this), St = We.reactions, Kn = yne(function(x, Be) {
			var We, St = O8(x).constructor;
			return St === void 0 || (We = O8(St)[hte]) == null ? Be : function(x) {
				if (S9(x)) return x;
				throw pte(K5(x) + " is not a constructor");
			}(We);
		}(this, dne));
		return Kn.ok = !_5(x) || x, Kn.fail = _5(Be) && Be, Kn.domain = yte ? vne.domain : void 0, We.parent = !0, St[St.length] = Kn, We.state != 0 && Cne(We, !1), Kn.promise;
	},
	catch: function(x) {
		return this.then(void 0, x);
	}
}), Zte = function() {
	var x = new Xte(), Be = sne(x);
	this.promise = x, this.resolve = Fne(_ne, Be), this.reject = Fne(Tne, Be);
}, nne.f = yne = function(x) {
	return x === dne || x === Jte ? new Zte(x) : mne(x);
}, _5(Iee) && fne !== Object.prototype)) {
	Qte = fne.then, Ene || (e7(fne, "then", (function(x, Be) {
		var We = this;
		return new dne((function(x, Be) {
			p5(Qte, We, x, Be);
		})).then(x, Be);
	}), { unsafe: !0 }), e7(fne, "catch", pne.catch, { unsafe: !0 }));
	try {
		delete fne.constructor;
	} catch {}
	zee && zee(fne, pne);
}
function Pne(x, Be, We) {
	return We === void 0 && (We = ""), e5(this, void 0, void 0, (function() {
		var St, Kn, _r, Li, fa, Vo, Xo;
		return t5(this, (function(Tc) {
			switch (Tc.label) {
				case 0: return Be ? (x.restoreSelection(), St = x.getMenuConfig("insertVideo"), Kn = St.onInsertedVideo, _r = St.checkVideo, Li = St.parseVideoSrc, [4, _r(Be, We)]) : [2];
				case 1: return typeof (fa = Tc.sent()) == "string" ? (x.alert(fa, "error"), [2]) : fa == null ? [2] : [4, Li(Be)];
				case 2: return (Vo = Tc.sent()).trim().indexOf("<iframe ") !== 0 && (Vo = Vo.replace(/</g, "&lt;").replace(/>/g, "&gt;")), Xo = {
					type: "video",
					src: Vo,
					poster: We,
					children: [{ text: "" }]
				}, Promise.resolve().then((function() {
					md.insertNodes(x, Xo);
				})), Kn(Xo), [2];
			}
		}));
	}));
}
function jne() {
	return Nee("w-e-insert-video");
}
F7({
	global: !0,
	wrap: !0,
	forced: Dne
}, { Promise: dne }), Vee(dne, une, !1), function(x) {
	var Be = N5("Promise"), We = F8.f;
	f5 && Be && !Be[Uee] && We(Be, Uee, {
		configurable: !0,
		get: function() {
			return this;
		}
	});
}(), Jte = N5(une), F7({
	target: une,
	stat: !0,
	forced: Dne
}, { reject: function(x) {
	var Be = yne(this);
	return p5(Be.reject, void 0, x), Be.promise;
} }), F7({
	target: une,
	stat: !0,
	forced: Dne
}, { resolve: function(x) {
	return function(x, Be) {
		if (O8(x), P5(Be) && Be.constructor === x) return Be;
		var We = nne.f(x);
		return (0, We.resolve)(Be), We.promise;
	}(this, x);
} }), F7({
	target: une,
	stat: !0,
	forced: Sne
}, {
	all: function(x) {
		var Be = this, We = yne(Be), St = We.resolve, Kn = We.reject, _r = rne((function() {
			var We = X5(Be.resolve), _r = [], Li = 0, fa = 1;
			rte(x, (function(x) {
				var Vo = Li++, Xo = !1;
				fa++, p5(We, Be, x).then((function(x) {
					Xo || (Xo = !0, _r[Vo] = x, --fa || St(_r));
				}), Kn);
			})), --fa || St(_r);
		}));
		return _r.error && Kn(_r.value), We.promise;
	},
	race: function(x) {
		var Be = this, We = yne(Be), St = We.reject, Kn = rne((function() {
			var Kn = X5(Be.resolve);
			rte(x, (function(x) {
				p5(Kn, Be, x).then(We.resolve, St);
			}));
		}));
		return Kn.error && St(Kn.value), We.promise;
	}
});
var Nne = function() {
	function x() {
		this.title = HP("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 = jne(), this.posterInputId = jne(), this.buttonId = jne();
	}
	return x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || !!QO.getSelectedElems(x).some((function(Be) {
			var We = QO.getNodeType(Be);
			return We === "pre" || We === "list-item" || !!x.isVoid(Be);
		}));
	}, x.prototype.getModalPositionNode = function(x) {
		return null;
	}, x.prototype.getModalContentElem = function(x) {
		var Be = this, We = this, St = We.srcInputId, Kn = We.posterInputId, _r = We.buttonId, Li = n5(S_(HP("videoModule.videoSrc"), St, HP("videoModule.videoSrcPlaceHolder")), 2), fa = Li[0], Vo = Li[1], Xo = n5(S_(HP("videoModule.videoPoster"), Kn, HP("videoModule.videoPosterPlaceHolder")), 2), Tc = Xo[0], Tl = Xo[1], Al = Mp(Vo), Uu = Mp(Tl), Ff = n5(C_(_r, HP("videoModule.ok")), 1)[0];
		if (this.$content == null) {
			var Lm = Mp("<div></div>");
			Lm.on("click", "#" + _r, (function(We) {
				return e5(Be, void 0, void 0, (function() {
					var Be, _r;
					return t5(this, (function(Li) {
						switch (Li.label) {
							case 0: return We.preventDefault(), Be = Lm.find("#" + St).val().trim(), _r = Lm.find("#" + Kn).val().trim(), [4, Pne(x, Be, _r)];
							case 1: return Li.sent(), x.hidePanelOrModal(), [2];
						}
					}));
				}));
			})), this.$content = Lm;
		}
		var Bm = this.$content;
		return Bm.empty(), Bm.append(fa), Bm.append(Tc), Bm.append(Ff), Al.val(""), Uu.val(""), setTimeout((function() {
			Al.focus();
		})), Bm[0];
	}, x;
}(), Ine = D5([].join), Lne = k5 != Object, Rne = function(x, Be) {
	var We = [].join;
	return !!We && c5((function() {
		We.call(null, ",", 1);
	}));
}();
F7({
	target: "Array",
	proto: !0,
	forced: Lne || !Rne
}, { join: function(x) {
	return Ine(T5(this), x === void 0 ? "," : x);
} });
var Mne, zne, $ne, Hne = !c5((function() {
	function x() {}
	return x.prototype.constructor = null, Object.getPrototypeOf(new x()) !== x.prototype;
})), Vne = z8("IE_PROTO"), Une = l5.Object, Wne = Une.prototype, Gne = Hne ? Une.getPrototypeOf : function(x) {
	var Be = o8(x);
	if (a8(Be, Vne)) return Be[Vne];
	var We = Be.constructor;
	return _5(We) && Be instanceof We ? We.prototype : Be instanceof Une ? Wne : null;
}, qne = g8("iterator"), Kne = !1;
[].keys && ("next" in ($ne = [].keys()) ? (zne = Gne(Gne($ne))) !== Object.prototype && (Mne = zne) : Kne = !0), (Mne == null || c5((function() {
	var x = {};
	return Mne[qne].call(x) !== x;
}))) && (Mne = {}), _5(Mne[qne]) || e7(Mne, qne, (function() {
	return this;
}));
var Xne = {
	IteratorPrototype: Mne,
	BUGGY_SAFARI_ITERATORS: Kne
}, Zne = Xne.IteratorPrototype, Jne = function() {
	return this;
}, Qne = Q8.PROPER, ere = Q8.CONFIGURABLE, tre = Xne.IteratorPrototype, nre = Xne.BUGGY_SAFARI_ITERATORS, rre = g8("iterator"), ore = function() {
	return this;
}, ire = function(x, Be, We, St, Kn, _r, Li) {
	(function(x, Be, We, St) {
		var Kn = Be + " Iterator";
		x.prototype = u9(Zne, { next: y5(1, We) }), Vee(x, Kn, !1), qee[Kn] = Jne;
	})(We, Be, St);
	var fa, Vo, Xo, Tc = function(x) {
		if (x === Kn && Lm) return Lm;
		if (!nre && x in Uu) return Uu[x];
		switch (x) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new We(this, x);
			};
		}
		return function() {
			return new We(this);
		};
	}, Tl = Be + " Iterator", Al = !1, Uu = x.prototype, Ff = Uu[rre] || Uu["@@iterator"] || Kn && Uu[Kn], Lm = !nre && Ff || Tc(Kn), Bm = Be == "Array" && Uu.entries || Ff;
	if (Bm && (fa = Gne(Bm.call(new x()))) !== Object.prototype && fa.next && (Gne(fa) !== tre && (zee ? zee(fa, tre) : _5(fa[rre]) || e7(fa, rre, ore)), Vee(fa, Tl, !0)), Qne && Kn == "values" && Ff && Ff.name !== "values" && (ere ? T8(Uu, "name", "values") : (Al = !0, Lm = function() {
		return p5(Ff, this);
	})), Kn) if (Vo = {
		values: Tc("values"),
		keys: _r ? Lm : Tc("keys"),
		entries: Tc("entries")
	}, Li) for (Xo in Vo) (nre || Al || !(Xo in Uu)) && e7(Uu, Xo, Vo[Xo]);
	else F7({
		target: Be,
		proto: !0,
		forced: nre || Al
	}, Vo);
	return Uu[rre] !== Lm && e7(Uu, rre, Lm, { name: Kn }), qee[Be] = Lm, Vo;
}, are = Y8.set, ure = Y8.getterFor("Array Iterator"), sre = ire(Array, "Array", (function(x, Be) {
	are(this, {
		type: "Array Iterator",
		target: T5(x),
		index: 0,
		kind: Be
	});
}), (function() {
	var x = ure(this), Be = x.target, We = x.kind, St = x.index++;
	return !Be || St >= Be.length ? (x.target = void 0, {
		value: void 0,
		done: !0
	}) : We == "keys" ? {
		value: St,
		done: !1
	} : We == "values" ? {
		value: Be[St],
		done: !1
	} : {
		value: [St, Be[St]],
		done: !1
	};
}), "values");
qee.Arguments = qee.Array, c9("keys"), c9("values"), c9("entries");
var lre = hee.charAt, cre = Y8.set, fre = Y8.getterFor("String Iterator");
ire(String, "String", (function(x) {
	cre(this, {
		type: "String Iterator",
		string: R7(x),
		index: 0
	});
}), (function() {
	var x, Be = fre(this), We = Be.string, St = Be.index;
	return St >= We.length ? {
		value: void 0,
		done: !0
	} : (x = lre(We, St), Be.index += x.length, {
		value: x,
		done: !1
	});
}));
var dre = function(x, Be, We) {
	var St = m8(Be);
	St in x ? F8.f(x, St, y5(0, We)) : x[St] = We;
}, pre = l5.Array, hre = Math.max, gre = y7.f, vre = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], yre = { f: function(x) {
	return vre && C5(x) == "Window" ? function(x) {
		try {
			return gre(x);
		} catch {
			return function(x, Be, We) {
				for (var St = l7(x), Kn = a7(void 0, St), _r = a7(St, St), Li = pre(hre(_r - Kn, 0)), fa = 0; Kn < _r; Kn++, fa++) dre(Li, fa, x[Kn]);
				return Li.length = fa, Li;
			}(vre);
		}
	}(x) : gre(T5(x));
} }, mre = c5((function() {
	if (typeof ArrayBuffer == "function") {
		var x = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(x) && Object.defineProperty(x, "a", { value: 8 });
	}
})), bre = Object.isExtensible, wre = c5((function() {
	bre(1);
})) || mre ? function(x) {
	return !!P5(x) && (!mre || C5(x) != "ArrayBuffer") && (!bre || bre(x));
} : bre, Ere = !c5((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), Dre = i5((function(x) {
	var Be = F8.f, We = !1, St = c8("meta"), Kn = 0, _r = function(x) {
		Be(x, St, { value: {
			objectID: "O" + Kn++,
			weakData: {}
		} });
	}, Li = x.exports = {
		enable: function() {
			Li.enable = function() {}, We = !0;
			var x = y7.f, Be = D5([].splice), Kn = {};
			Kn[St] = 1, x(Kn).length && (y7.f = function(We) {
				for (var Kn = x(We), _r = 0, Li = Kn.length; _r < Li; _r++) if (Kn[_r] === St) {
					Be(Kn, _r, 1);
					break;
				}
				return Kn;
			}, F7({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: yre.f }));
		},
		fastKey: function(x, Be) {
			if (!P5(x)) return typeof x == "symbol" ? x : (typeof x == "string" ? "S" : "P") + x;
			if (!a8(x, St)) {
				if (!wre(x)) return "F";
				if (!Be) return "E";
				_r(x);
			}
			return x[St].objectID;
		},
		getWeakData: function(x, Be) {
			if (!a8(x, St)) {
				if (!wre(x)) return !0;
				if (!Be) return !1;
				_r(x);
			}
			return x[St].weakData;
		},
		onFreeze: function(x) {
			return Ere && We && wre(x) && !a8(x, St) && _r(x), x;
		}
	};
	$8[St] = !0;
})), Sre = Dre.getWeakData, xre = Y8.set, Cre = Y8.getterFor, Are = B9.find, Ore = B9.findIndex, kre = D5([].splice), Bre = 0, Fre = function(x) {
	return x.frozen ||= new Tre();
}, Tre = function() {
	this.entries = [];
}, _re = function(x, Be) {
	return Are(x.entries, (function(x) {
		return x[0] === Be;
	}));
};
Tre.prototype = {
	get: function(x) {
		var Be = _re(this, x);
		if (Be) return Be[1];
	},
	has: function(x) {
		return !!_re(this, x);
	},
	set: function(x, Be) {
		var We = _re(this, x);
		We ? We[1] = Be : this.entries.push([x, Be]);
	},
	delete: function(x) {
		var Be = Ore(this.entries, (function(Be) {
			return Be[0] === x;
		}));
		return ~Be && kre(this.entries, Be, 1), !!~Be;
	}
};
var Pre, jre = { getConstructor: function(x, Be, We, St) {
	var Kn = x((function(x, Kn) {
		Gee(x, _r), xre(x, {
			type: Be,
			id: Bre++,
			frozen: void 0
		}), Kn != null && rte(Kn, x[St], {
			that: x,
			AS_ENTRIES: We
		});
	})), _r = Kn.prototype, Li = Cre(Be), fa = function(x, Be, We) {
		var St = Li(x), Kn = Sre(O8(Be), !0);
		return !0 === Kn ? Fre(St).set(Be, We) : Kn[St.id] = We, x;
	};
	return Lee(_r, {
		delete: function(x) {
			var Be = Li(this);
			if (!P5(x)) return !1;
			var We = Sre(x);
			return !0 === We ? Fre(Be).delete(x) : We && a8(We, Be.id) && delete We[Be.id];
		},
		has: function(x) {
			var Be = Li(this);
			if (!P5(x)) return !1;
			var We = Sre(x);
			return !0 === We ? Fre(Be).has(x) : We && a8(We, Be.id);
		}
	}), Lee(_r, We ? {
		get: function(x) {
			var Be = Li(this);
			if (P5(x)) {
				var We = Sre(x);
				return !0 === We ? Fre(Be).get(x) : We ? We[Be.id] : void 0;
			}
		},
		set: function(x, Be) {
			return fa(this, x, Be);
		}
	} : { add: function(x) {
		return fa(this, x, !0);
	} }), Kn;
} }, Nre = Y8.enforce, Ire = !l5.ActiveXObject && "ActiveXObject" in l5, Lre = function(x) {
	return function() {
		return x(this, arguments.length ? arguments[0] : void 0);
	};
}, Rre = function(x, Be, We) {
	var St = x.indexOf("Map") !== -1, Kn = x.indexOf("Weak") !== -1, _r = St ? "set" : "add", Li = l5[x], fa = Li && Li.prototype, Vo = Li, Xo = {}, Tc = function(x) {
		var Be = D5(fa[x]);
		e7(fa, x, x == "add" ? function(x) {
			return Be(this, x === 0 ? 0 : x), this;
		} : x == "delete" ? function(x) {
			return !(Kn && !P5(x)) && Be(this, x === 0 ? 0 : x);
		} : x == "get" ? function(x) {
			return Kn && !P5(x) ? void 0 : Be(this, x === 0 ? 0 : x);
		} : x == "has" ? function(x) {
			return !(Kn && !P5(x)) && Be(this, x === 0 ? 0 : x);
		} : function(x, We) {
			return Be(this, x === 0 ? 0 : x, We), this;
		});
	};
	if (k7(x, !_5(Li) || !(Kn || fa.forEach && !c5((function() {
		new Li().entries().next();
	}))))) Vo = We.getConstructor(Be, x, St, _r), Dre.enable();
	else if (k7(x, !0)) {
		var Tl = new Vo(), Al = Tl[_r](Kn ? {} : -0, 1) != Tl, Uu = c5((function() {
			Tl.has(1);
		})), Ff = dte((function(x) {
			new Li(x);
		})), Lm = !Kn && c5((function() {
			for (var x = new Li(), Be = 5; Be--;) x[_r](Be, Be);
			return !x.has(-0);
		}));
		Ff || ((Vo = Be((function(x, Be) {
			Gee(x, fa);
			var We = function(x, Be, We) {
				var St, Kn;
				return zee && _5(St = Be.constructor) && St !== We && P5(Kn = St.prototype) && Kn !== We.prototype && zee(x, Kn), x;
			}(new Li(), x, Vo);
			return Be != null && rte(Be, We[_r], {
				that: We,
				AS_ENTRIES: St
			}), We;
		}))).prototype = fa, fa.constructor = Vo), (Uu || Lm) && (Tc("delete"), Tc("has"), St && Tc("get")), (Lm || Al) && Tc(_r), Kn && fa.clear && delete fa.clear;
	}
	return Xo[x] = Vo, F7({
		global: !0,
		forced: Vo != Li
	}, Xo), Vee(Vo, x), Kn || We.setStrong(Vo, x, St), Vo;
}("WeakMap", Lre, jre);
if (R8 && Ire) {
	Pre = jre.getConstructor(Lre, "WeakMap", !0), Dre.enable();
	var Mre = Rre.prototype, zre = D5(Mre.delete), $re = D5(Mre.has), Hre = D5(Mre.get), Vre = D5(Mre.set);
	Lee(Mre, {
		delete: function(x) {
			if (P5(x) && !wre(x)) {
				var Be = Nre(this);
				return Be.frozen ||= new Pre(), zre(this, x) || Be.frozen.delete(x);
			}
			return zre(this, x);
		},
		has: function(x) {
			if (P5(x) && !wre(x)) {
				var Be = Nre(this);
				return Be.frozen ||= new Pre(), $re(this, x) || Be.frozen.has(x);
			}
			return $re(this, x);
		},
		get: function(x) {
			if (P5(x) && !wre(x)) {
				var Be = Nre(this);
				return Be.frozen ||= new Pre(), $re(this, x) ? Hre(this, x) : Be.frozen.get(x);
			}
			return Hre(this, x);
		},
		set: function(x, Be) {
			if (P5(x) && !wre(x)) {
				var We = Nre(this);
				We.frozen ||= new Pre(), $re(this, x) ? Vre(this, x, Be) : We.frozen.set(x, Be);
			} else Vre(this, x, Be);
			return this;
		}
	});
}
var Ure = {
	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
}, Wre = E8("span").classList, Gre = Wre && Wre.constructor && Wre.constructor.prototype, qre = Gre === Object.prototype ? void 0 : Gre, Kre = g8("iterator"), Yre = g8("toStringTag"), Xre = sre.values, Zre = function(x, Be) {
	if (x) {
		if (x[Kre] !== Xre) try {
			T8(x, Kre, Xre);
		} catch {
			x[Kre] = Xre;
		}
		if (x[Yre] || T8(x, Yre, Be), Ure[Be]) {
			for (var We in sre) if (x[We] !== sre[We]) try {
				T8(x, We, sre[We]);
			} catch {
				x[We] = sre[We];
			}
		}
	}
};
for (var Jre in Ure) Zre(l5[Jre] && l5[Jre].prototype, Jre);
Zre(qre, "DOMTokenList");
var Qre = Q8.EXISTS, eoe = F8.f, toe = Function.prototype, noe = D5(toe.toString), roe = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, ooe = D5(roe.exec);
f5 && !Qre && eoe(toe, "name", {
	configurable: !0,
	get: function() {
		try {
			return ooe(roe, noe(this))[1];
		} catch {
			return "";
		}
	}
});
var ioe = g8("species"), aoe = H5 >= 51 || !c5((function() {
	var x = [];
	return (x.constructor = {})[ioe] = function() {
		return { foo: 1 };
	}, x.slice(Boolean).foo !== 1;
})), uoe = g8("species"), soe = l5.Array, loe = Math.max;
function coe(x) {
	return x.getMenuConfig("uploadVideo");
}
F7({
	target: "Array",
	proto: !0,
	forced: !aoe
}, { slice: function(x, Be) {
	var We, St, Kn, _r = T5(this), Li = l7(_r), fa = a7(x, Li), Vo = a7(Be === void 0 ? Li : Be, Li);
	if (g9(_r) && (We = _r.constructor, (S9(We) && (We === soe || g9(We.prototype)) || P5(We) && (We = We[uoe]) === null) && (We = void 0), We === soe || We === void 0)) return gte(_r, fa, Vo);
	for (St = new (We === void 0 ? soe : We)(loe(Vo - fa, 0)), Kn = 0; fa < Vo; fa++, Kn++) fa in _r && dre(St, Kn, _r[fa]);
	return St.length = Kn, St;
} });
var foe = /* @__PURE__ */ new WeakMap();
function doe(x, Be) {
	return e5(this, void 0, void 0, (function() {
		var We, St, Kn, _r;
		return t5(this, (function(Li) {
			switch (Li.label) {
				case 0: return We = function(x) {
					var Be = foe.get(x);
					if (Be != null) return Be;
					var We = coe(x), St = We.onSuccess, Kn = We.onProgress, _r = We.onFailed, Li = We.customInsert, fa = We.onError;
					return Be = K_(Q3(Q3({}, We), {
						onProgress: function(Be) {
							x.showProgressBar(Be), Kn && Kn(Be);
						},
						onSuccess: function(Be, We) {
							if (Li) return Li(We, (function(Be, We) {
								return Pne(x, Be, We);
							})), void St(Be, We);
							var Kn = We.errno, fa = Kn === void 0 ? 1 : Kn, Vo = We.data, Xo = Vo === void 0 ? {} : Vo;
							if (fa === 0) {
								var Tc = Xo.url, Tl = Tc === void 0 ? "" : Tc, Al = Xo.poster;
								Pne(x, Tl, Al === void 0 ? "" : Al), St(Be, We);
							} else _r(Be, We);
						},
						onError: function(x, Be, We) {
							fa(x, Be, We);
						}
					})), foe.set(x, Be), Be;
				}(x), St = Be.name, Kn = Be.type, _r = Be.size, We.addFile({
					name: St,
					type: Kn,
					size: _r,
					data: Be
				}), [4, We.upload()];
				case 1: return Li.sent(), [2];
			}
		}));
	}));
}
var poe = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {
		var We = this.getMenuConfig(x), St = We.allowedFileTypes, Kn = St === void 0 ? [] : St, _r = We.customBrowseAndUpload;
		if (_r) _r((function(Be, We) {
			return Pne(x, Be, We);
		}));
		else {
			var Li = "";
			Kn.length > 0 && (Li = "accept=\"" + Kn.join(", ") + "\"");
			var fa = Mp("body"), Vo = Mp("<input type=\"file\" " + Li + " multiple/>");
			Vo.hide(), fa.append(Vo), Vo.click(), Vo.on("change", (function() {
				(function(x, Be) {
					var We, St;
					e5(this, void 0, void 0, (function() {
						var Kn, _r, Li, fa, Vo, Xo;
						return t5(this, (function(Tc) {
							switch (Tc.label) {
								case 0:
									if (Be == null) return [2];
									Kn = Array.prototype.slice.call(Be), _r = coe(x).customUpload, Tc.label = 1;
								case 1: Tc.trys.push([
									1,
									9,
									10,
									15
								]), Li = r5(Kn), Tc.label = 2;
								case 2: return [4, Li.next()];
								case 3: return (fa = Tc.sent()).done ? [3, 8] : (Vo = fa.value, _r ? [4, _r(Vo, (function(Be, We) {
									return Pne(x, Be, We);
								}))] : [3, 5]);
								case 4: return Tc.sent(), [3, 7];
								case 5: return [4, doe(x, Vo)];
								case 6: Tc.sent(), Tc.label = 7;
								case 7: return [3, 2];
								case 8: return [3, 15];
								case 9: return Xo = Tc.sent(), We = { error: Xo }, [3, 15];
								case 10: return Tc.trys.push([
									10,
									,
									13,
									14
								]), fa && !fa.done && (St = Li.return) ? [4, St.call(Li)] : [3, 12];
								case 11: Tc.sent(), Tc.label = 12;
								case 12: return [3, 14];
								case 13:
									if (We) throw We.error;
									return [7];
								case 14: return [7];
								case 15: return [2];
							}
						}));
					}));
				})(x, Vo[0].files);
			}));
		}
	}, x.prototype.isDisabled = function(x) {
		var Be = x.selection;
		return Be == null || !qf.isCollapsed(Be) || !!QO.getSelectedElems(x).some((function(Be) {
			var We = QO.getNodeType(Be);
			return We === "pre" || We === "list-item" || !!x.isVoid(Be);
		}));
	}, x.prototype.getMenuConfig = function(x) {
		return x.getMenuConfig("uploadVideo");
	}, x;
}(), hoe = Q8.PROPER, goe = RegExp.prototype, voe = goe.toString, yoe = D5(L9), moe = c5((function() {
	return voe.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), boe = hoe && voe.name != "toString";
function woe() {
	return Nee("w-e-insert-video");
}
(moe || boe) && e7(RegExp.prototype, "toString", (function() {
	var x = O8(this), Be = R7(x.source), We = x.flags;
	return "/" + Be + "/" + R7(We === void 0 && I5(goe, x) && !("flags" in goe) ? yoe(x) : We);
}), { unsafe: !0 });
var Eoe = function() {
	function x() {
		this.title = HP("videoModule.editSize"), this.tag = "button", this.showModal = !0, this.modalWidth = 320, this.$content = null, this.widthInputId = woe(), this.heightInputId = woe(), this.buttonId = woe();
	}
	return x.prototype.getSelectedVideoNode = function(x) {
		return QO.getSelectedNodeByType(x, "video");
	}, x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.exec = function(x, Be) {}, x.prototype.isDisabled = function(x) {
		return x.selection == null || this.getSelectedVideoNode(x) == null;
	}, x.prototype.getModalPositionNode = function(x) {
		return this.getSelectedVideoNode(x);
	}, x.prototype.getModalContentElem = function(x) {
		var Be = this, We = Be.widthInputId, St = Be.heightInputId, Kn = Be.buttonId, _r = n5(S_(HP("videoModule.width"), We, "auto"), 2), Li = _r[0], fa = Mp(_r[1]), Vo = n5(S_(HP("videoModule.height"), St, "auto"), 2), Xo = Vo[0], Tc = Mp(Vo[1]), Tl = n5(C_(Kn, HP("videoModule.ok")), 1)[0];
		if (this.$content == null) {
			var Al = Mp("<div></div>");
			Al.on("click", "#" + Kn, (function(Be) {
				Be.preventDefault();
				var Kn = Al.find("#" + We).val().trim(), _r = Al.find("#" + St).val().trim(), Li = parseInt(Kn), fa = parseInt(_r), Vo = Li ? Li.toString() : "auto", Xo = fa ? fa.toString() : "auto";
				x.restoreSelection(), md.setNodes(x, {
					width: Vo,
					height: Xo
				}, { match: function(x) {
					return QO.checkNodeType(x, "video");
				} }), x.hidePanelOrModal();
			})), this.$content = Al;
		}
		var Uu = this.$content;
		Uu.empty(), Uu.append(Li), Uu.append(Xo), Uu.append(Tl);
		var Ff = this.getSelectedVideoNode(x);
		if (Ff == null) return Uu[0];
		var Lm = Ff.width, Bm = Lm === void 0 ? "auto" : Lm, x_ = Ff.height, uy = x_ === void 0 ? "auto" : x_;
		return fa.val(Bm), Tc.val(uy), setTimeout((function() {
			fa.focus();
		})), Uu[0];
	}, x;
}(), Doe = {
	renderElems: [Z7],
	elemsToHtml: [J7],
	preParseHtml: [d9],
	parseElemsHtml: [I9],
	menus: [
		{
			key: "insertVideo",
			factory: function() {
				return new Nne();
			},
			config: {
				onInsertedVideo: function(x) {},
				checkVideo: function(x, Be) {
					return !0;
				},
				parseVideoSrc: function(x) {
					return x;
				}
			}
		},
		{
			key: "uploadVideo",
			factory: function() {
				return new poe();
			},
			config: {
				server: "",
				fieldName: "wangeditor-uploaded-video",
				maxFileSize: 10485760,
				maxNumberOfFiles: 5,
				allowedFileTypes: ["video/*"],
				meta: {},
				metaWithUrl: !1,
				withCredentials: !1,
				timeout: 3e4,
				onBeforeUpload: function(x) {
					return x;
				},
				onProgress: function(x) {},
				onSuccess: function(x, Be) {},
				onFailed: function(x, Be) {
					console.error("'" + x.name + "' upload failed", Be);
				},
				onError: function(x, Be, We) {
					console.error("'" + x.name + " upload error", Be, We);
				}
			}
		},
		{
			key: "editVideoSize",
			factory: function() {
				return new Eoe();
			}
		}
	],
	editorPlugin: function(x) {
		var Be = x.isVoid, We = x.normalizeNode, St = x;
		return St.isVoid = function(x) {
			return x.type === "video" || Be(x);
		}, St.normalizeNode = function(x) {
			var Be = n5(x, 2), Kn = Be[0], _r = Be[1];
			return QO.getNodeType(Kn) === "video" && QO.isLastNode(St, Kn) && md.insertNodes(St, QO.genEmptyParagraph(), { at: [_r[0] + 1] }), We([Kn, _r]);
		}, St;
	}
};
MP("en", { uploadImgModule: {
	uploadImage: "Upload Image",
	uploadError: "{{fileName}} upload error"
} }), MP("zh-CN", { uploadImgModule: {
	uploadImage: "上传图片",
	uploadError: "{{fileName}} 上传出错"
} });
var Soe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function xoe(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var Coe, Aoe, Ooe = function(x) {
	return x && x.Math == Math && x;
}, koe = Ooe(typeof globalThis == "object" && globalThis) || Ooe(typeof window == "object" && window) || Ooe(typeof self == "object" && self) || Ooe(typeof Soe == "object" && Soe) || function() {
	return this;
}() || Function("return this")(), Boe = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, Foe = !Boe((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), Toe = Function.prototype.call, _oe = Toe.bind ? Toe.bind(Toe) : function() {
	return Toe.apply(Toe, arguments);
}, Poe = {}.propertyIsEnumerable, joe = Object.getOwnPropertyDescriptor, Noe = { f: joe && !Poe.call({ 1: 2 }, 1) ? function(x) {
	var Be = joe(this, x);
	return !!Be && Be.enumerable;
} : Poe }, Ioe = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, Loe = Function.prototype, Roe = Loe.bind, Moe = Loe.call, zoe = Roe && Roe.bind(Moe), $oe = Roe ? function(x) {
	return x && zoe(Moe, x);
} : function(x) {
	return x && function() {
		return Moe.apply(x, arguments);
	};
}, Hoe = $oe({}.toString), Voe = $oe("".slice), Uoe = function(x) {
	return Voe(Hoe(x), 8, -1);
}, Woe = koe.Object, Goe = $oe("".split), qoe = Boe((function() {
	return !Woe("z").propertyIsEnumerable(0);
})) ? function(x) {
	return Uoe(x) == "String" ? Goe(x, "") : Woe(x);
} : Woe, Koe = koe.TypeError, Yoe = function(x) {
	if (x == null) throw Koe("Can't call method on " + x);
	return x;
}, Xoe = function(x) {
	return qoe(Yoe(x));
}, Zoe = function(x) {
	return typeof x == "function";
}, Joe = function(x) {
	return typeof x == "object" ? x !== null : Zoe(x);
}, Qoe = function(x) {
	return Zoe(x) ? x : void 0;
}, eie = function(x, Be) {
	return arguments.length < 2 ? Qoe(koe[x]) : koe[x] && koe[x][Be];
}, tie = $oe({}.isPrototypeOf), nie = eie("navigator", "userAgent") || "", rie = koe.process, oie = koe.Deno, iie = rie && rie.versions || oie && oie.version, aie = iie && iie.v8;
aie && (Aoe = (Coe = aie.split("."))[0] > 0 && Coe[0] < 4 ? 1 : +(Coe[0] + Coe[1])), !Aoe && nie && (!(Coe = nie.match(/Edge\/(\d+)/)) || Coe[1] >= 74) && (Coe = nie.match(/Chrome\/(\d+)/)) && (Aoe = +Coe[1]);
var uie = Aoe, sie = !!Object.getOwnPropertySymbols && !Boe((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && uie && uie < 41;
})), lie = sie && !Symbol.sham && typeof Symbol.iterator == "symbol", cie = koe.Object, fie = lie ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = eie("Symbol");
	return Zoe(Be) && tie(Be.prototype, cie(x));
}, die = koe.String, pie = function(x) {
	try {
		return die(x);
	} catch {
		return "Object";
	}
}, hie = koe.TypeError, gie = function(x) {
	if (Zoe(x)) return x;
	throw hie(pie(x) + " is not a function");
}, vie = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : gie(We);
}, yie = koe.TypeError, mie = Object.defineProperty, bie = function(x, Be) {
	try {
		mie(koe, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		koe[x] = Be;
	}
	return Be;
}, wie = koe["__core-js_shared__"] || bie("__core-js_shared__", {}), Eie = xoe((function(x) {
	(x.exports = function(x, Be) {
		return wie[x] || (wie[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), Die = koe.Object, Sie = function(x) {
	return Die(Yoe(x));
}, xie = $oe({}.hasOwnProperty), Cie = Object.hasOwn || function(x, Be) {
	return xie(Sie(x), Be);
}, Aie = 0, Oie = Math.random(), kie = $oe(1 .toString), Bie = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + kie(++Aie + Oie, 36);
}, Fie = Eie("wks"), Tie = koe.Symbol, _ie = Tie && Tie.for, Pie = lie ? Tie : Tie && Tie.withoutSetter || Bie, jie = function(x) {
	if (!Cie(Fie, x) || !sie && typeof Fie[x] != "string") {
		var Be = "Symbol." + x;
		sie && Cie(Tie, x) ? Fie[x] = Tie[x] : Fie[x] = lie && _ie ? _ie(Be) : Pie(Be);
	}
	return Fie[x];
}, Nie = koe.TypeError, Iie = jie("toPrimitive"), Lie = function(x) {
	var Be = function(x, Be) {
		if (!Joe(x) || fie(x)) return x;
		var We, St = vie(x, Iie);
		if (St) {
			if (Be === void 0 && (Be = "default"), We = _oe(St, x, Be), !Joe(We) || fie(We)) return We;
			throw Nie("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && Zoe(We = x.toString) && !Joe(St = _oe(We, x)) || Zoe(We = x.valueOf) && !Joe(St = _oe(We, x)) || Be !== "string" && Zoe(We = x.toString) && !Joe(St = _oe(We, x))) return St;
			throw yie("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return fie(Be) ? Be : Be + "";
}, Rie = koe.document, Mie = Joe(Rie) && Joe(Rie.createElement), zie = function(x) {
	return Mie ? Rie.createElement(x) : {};
}, $ie = !Foe && !Boe((function() {
	return Object.defineProperty(zie("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), Hie = Object.getOwnPropertyDescriptor, Vie = { f: Foe ? Hie : function(x, Be) {
	if (x = Xoe(x), Be = Lie(Be), $ie) try {
		return Hie(x, Be);
	} catch {}
	if (Cie(x, Be)) return Ioe(!_oe(Noe.f, x, Be), x[Be]);
} }, Uie = koe.String, Wie = koe.TypeError, Gie = function(x) {
	if (Joe(x)) return x;
	throw Wie(Uie(x) + " is not an object");
}, qie = koe.TypeError, Kie = Object.defineProperty, Yie = { f: Foe ? Kie : function(x, Be, We) {
	if (Gie(x), Be = Lie(Be), Gie(We), $ie) try {
		return Kie(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw qie("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, Xie = Foe ? function(x, Be, We) {
	return Yie.f(x, Be, Ioe(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, Zie = $oe(Function.toString);
Zoe(wie.inspectSource) || (wie.inspectSource = function(x) {
	return Zie(x);
});
var Jie, Qie, eae, tae = wie.inspectSource, nae = koe.WeakMap, rae = Zoe(nae) && /native code/.test(tae(nae)), oae = Eie("keys"), iae = function(x) {
	return oae[x] || (oae[x] = Bie(x));
}, aae = {}, uae = koe.TypeError, sae = koe.WeakMap;
if (rae || wie.state) {
	var lae = wie.state ||= new sae(), cae = $oe(lae.get), fae = $oe(lae.has), dae = $oe(lae.set);
	Jie = function(x, Be) {
		if (fae(lae, x)) throw new uae("Object already initialized");
		return Be.facade = x, dae(lae, x, Be), Be;
	}, Qie = function(x) {
		return cae(lae, x) || {};
	}, eae = function(x) {
		return fae(lae, x);
	};
} else {
	var pae = iae("state");
	aae[pae] = !0, Jie = function(x, Be) {
		if (Cie(x, pae)) throw new uae("Object already initialized");
		return Be.facade = x, Xie(x, pae, Be), Be;
	}, Qie = function(x) {
		return Cie(x, pae) ? x[pae] : {};
	}, eae = function(x) {
		return Cie(x, pae);
	};
}
var hae = {
	set: Jie,
	get: Qie,
	has: eae,
	enforce: function(x) {
		return eae(x) ? Qie(x) : Jie(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!Joe(Be) || (We = Qie(Be)).type !== x) throw uae("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, gae = Function.prototype, vae = Foe && Object.getOwnPropertyDescriptor, yae = Cie(gae, "name"), mae = {
	EXISTS: yae,
	PROPER: yae && function() {}.name === "something",
	CONFIGURABLE: yae && (!Foe || Foe && vae(gae, "name").configurable)
}, bae = xoe((function(x) {
	var Be = mae.CONFIGURABLE, We = hae.get, St = hae.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		Zoe(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!Cie(_r, "name") || Be && _r.name !== Tl) && Xie(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === koe ? Xo ? x[We] = _r : bie(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : Xie(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return Zoe(this) && We(this).source || tae(this);
	}));
})), wae = Math.ceil, Eae = Math.floor, Dae = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? Eae : wae)(Be);
}, Sae = Math.max, xae = Math.min, Cae = function(x, Be) {
	var We = Dae(x);
	return We < 0 ? Sae(We + Be, 0) : xae(We, Be);
}, Aae = Math.min, Oae = function(x) {
	return x > 0 ? Aae(Dae(x), 9007199254740991) : 0;
}, kae = function(x) {
	return Oae(x.length);
}, Fae = function(x) {
	return function(Be, We, St) {
		var Kn, _r = Xoe(Be), Li = kae(_r), fa = Cae(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}(!1), Tae = $oe([].push), _ae = function(x, Be) {
	var We, St = Xoe(x), Kn = 0, _r = [];
	for (We in St) !Cie(aae, We) && Cie(St, We) && Tae(_r, We);
	for (; Be.length > Kn;) Cie(St, We = Be[Kn++]) && (~Fae(_r, We) || Tae(_r, We));
	return _r;
}, Pae = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], jae = Pae.concat("length", "prototype"), Nae = { f: Object.getOwnPropertyNames || function(x) {
	return _ae(x, jae);
} }, Iae = { f: Object.getOwnPropertySymbols }, Lae = $oe([].concat), Rae = eie("Reflect", "ownKeys") || function(x) {
	var Be = Nae.f(Gie(x)), We = Iae.f;
	return We ? Lae(Be, We(x)) : Be;
}, Mae = function(x, Be) {
	for (var We = Rae(Be), St = Yie.f, Kn = Vie.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		Cie(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, zae = /#|\.prototype\./, $ae = function(x, Be) {
	var We = Vae[Hae(x)];
	return We == Wae || We != Uae && (Zoe(Be) ? Boe(Be) : !!Be);
}, Hae = $ae.normalize = function(x) {
	return String(x).replace(zae, ".").toLowerCase();
}, Vae = $ae.data = {}, Uae = $ae.NATIVE = "N", Wae = $ae.POLYFILL = "P", Gae = $ae, qae = Vie.f, Kae = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? koe : Xo ? koe[fa] || bie(fa, {}) : (koe[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = qae(We, St)) && Li.value : We[St], !Gae(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			Mae(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && Xie(_r, "sham", !0), bae(We, St, _r, x);
	}
}, Yae = Array.isArray || function(x) {
	return Uoe(x) == "Array";
}, Xae = {};
Xae[jie("toStringTag")] = "z";
var Zae = String(Xae) === "[object z]", Jae = jie("toStringTag"), Qae = koe.Object, eue = Uoe(function() {
	return arguments;
}()) == "Arguments", tue = Zae ? Uoe : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = Qae(x), Jae)) == "string" ? We : eue ? Uoe(Be) : (St = Uoe(Be)) == "Object" && Zoe(Be.callee) ? "Arguments" : St;
}, nue = function() {}, rue = [], oue = eie("Reflect", "construct"), iue = /^\s*(?:class|function)\b/, aue = $oe(iue.exec), uue = !iue.exec(nue), sue = function(x) {
	if (!Zoe(x)) return !1;
	try {
		return oue(nue, rue, x), !0;
	} catch {
		return !1;
	}
}, lue = !oue || Boe((function() {
	var x;
	return sue(sue.call) || !sue(Object) || !sue((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!Zoe(x)) return !1;
	switch (tue(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return uue || !!aue(iue, tae(x));
} : sue, cue = function(x, Be, We) {
	var St = Lie(Be);
	St in x ? Yie.f(x, St, Ioe(0, We)) : x[St] = We;
}, fue = jie("species"), due = $oe([].slice), pue = uie >= 51 || !Boe((function() {
	var x = [];
	return (x.constructor = {})[fue] = function() {
		return { foo: 1 };
	}, x.slice(Boolean).foo !== 1;
})), hue = jie("species"), gue = koe.Array, vue = Math.max;
Kae({
	target: "Array",
	proto: !0,
	forced: !pue
}, { slice: function(x, Be) {
	var We, St, Kn, _r = Xoe(this), Li = kae(_r), fa = Cae(x, Li), Vo = Cae(Be === void 0 ? Li : Be, Li);
	if (Yae(_r) && (We = _r.constructor, (lue(We) && (We === gue || Yae(We.prototype)) || Joe(We) && (We = We[hue]) === null) && (We = void 0), We === gue || We === void 0)) return due(_r, fa, Vo);
	for (St = new (We === void 0 ? gue : We)(vue(Vo - fa, 0)), Kn = 0; fa < Vo; fa++, Kn++) fa in _r && cue(St, Kn, _r[fa]);
	return St.length = Kn, St;
} });
var yue = Zae ? {}.toString : function() {
	return "[object " + tue(this) + "]";
};
Zae || bae(Object.prototype, "toString", yue, { unsafe: !0 });
var mue, bue = koe.String, wue = function(x) {
	if (tue(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return bue(x);
}, Eue = function() {
	var x = Gie(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, Due = koe.RegExp, Sue = Boe((function() {
	var x = Due("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), xue = Sue || Boe((function() {
	return !Due("a", "y").sticky;
})), Cue = {
	BROKEN_CARET: Sue || Boe((function() {
		var x = Due("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: xue,
	UNSUPPORTED_Y: Sue
}, Aue = Object.keys || function(x) {
	return _ae(x, Pae);
}, Oue = Foe ? Object.defineProperties : function(x, Be) {
	Gie(x);
	for (var We, St = Xoe(Be), Kn = Aue(Be), _r = Kn.length, Li = 0; _r > Li;) Yie.f(x, We = Kn[Li++], St[We]);
	return x;
}, kue = eie("document", "documentElement"), Bue = iae("IE_PROTO"), Fue = function() {}, Tue = function(x) {
	return "<script>" + x + "<\/script>";
}, _ue = function(x) {
	x.write(Tue("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, Pue = function() {
	try {
		mue = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	Pue = typeof document < "u" ? document.domain && mue ? _ue(mue) : ((Be = zie("iframe")).style.display = "none", kue.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(Tue("document.F=Object")), x.close(), x.F) : _ue(mue);
	for (var We = Pae.length; We--;) delete Pue.prototype[Pae[We]];
	return Pue();
};
aae[Bue] = !0;
var jue, Nue, Iue = Object.create || function(x, Be) {
	var We;
	return x === null ? We = Pue() : (Fue.prototype = Gie(x), We = new Fue(), Fue.prototype = null, We[Bue] = x), Be === void 0 ? We : Oue(We, Be);
}, Lue = koe.RegExp, Rue = Boe((function() {
	var x = Lue(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), Mue = koe.RegExp, zue = Boe((function() {
	var x = Mue("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), $ue = hae.get, Hue = Eie("native-string-replace", String.prototype.replace), Vue = RegExp.prototype.exec, Uue = Vue, Wue = $oe("".charAt), Gue = $oe("".indexOf), que = $oe("".replace), Kue = $oe("".slice), Yue = (Nue = /b*/g, _oe(Vue, jue = /a/, "a"), _oe(Vue, Nue, "a"), jue.lastIndex !== 0 || Nue.lastIndex !== 0), Xue = Cue.BROKEN_CARET, Zue = /()??/.exec("")[1] !== void 0;
(Yue || Zue || Xue || Rue || zue) && (Uue = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = $ue(Vo), Tc = wue(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = _oe(Uue, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = Xue && Vo.sticky, Ff = _oe(Eue, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = que(Ff, "y", ""), Gue(Ff, "g") === -1 && (Ff += "g"), x_ = Kue(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && Wue(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), Zue && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), Yue && (St = Vo.lastIndex), Kn = _oe(Vue, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = Kue(Kn.input, Bm), Kn[0] = Kue(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : Yue && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), Zue && Kn && Kn.length > 1 && _oe(Hue, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = Iue(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var Jue = Uue;
Kae({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== Jue
}, { exec: Jue });
var Que = Function.prototype, ese = Que.apply, tse = Que.bind, nse = Que.call, rse = typeof Reflect == "object" && Reflect.apply || (tse ? nse.bind(ese) : function() {
	return nse.apply(ese, arguments);
}), ose = jie("species"), ise = RegExp.prototype, ase = jie("match"), use = koe.TypeError, sse = jie("species"), lse = function(x, Be) {
	var We, St = Gie(x).constructor;
	return St === void 0 || (We = Gie(St)[sse]) == null ? Be : function(x) {
		if (lue(x)) return x;
		throw use(pie(x) + " is not a constructor");
	}(We);
}, cse = $oe("".charAt), fse = $oe("".charCodeAt), dse = $oe("".slice), pse = function(x) {
	return function(Be, We) {
		var St, Kn, _r = wue(Yoe(Be)), Li = Dae(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = fse(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = fse(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? cse(_r, Li) : St : x ? dse(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}, hse = {
	codeAt: pse(!1),
	charAt: pse(!0)
}, gse = hse.charAt, vse = function(x, Be, We) {
	return Be + (We ? gse(x, Be).length : 1);
}, yse = koe.Array, mse = Math.max, bse = function(x, Be, We) {
	for (var St = kae(x), Kn = Cae(Be, St), _r = Cae(We === void 0 ? St : We, St), Li = yse(mse(_r - Kn, 0)), fa = 0; Kn < _r; Kn++, fa++) cue(Li, fa, x[Kn]);
	return Li.length = fa, Li;
}, wse = koe.TypeError, Ese = function(x, Be) {
	var We = x.exec;
	if (Zoe(We)) {
		var St = _oe(We, x, Be);
		return St !== null && Gie(St), St;
	}
	if (Uoe(x) === "RegExp") return _oe(Jue, x, Be);
	throw wse("RegExp#exec called on incompatible receiver");
}, Dse = Cue.UNSUPPORTED_Y, Sse = Math.min, xse = [].push, Cse = $oe(/./.exec), Ase = $oe(xse), Ose = $oe("".slice);
(function(x, Be, We, St) {
	var Kn = jie(x), _r = !Boe((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !Boe((function() {
		var x = !1, Be = /a/;
		return (Be = {}).constructor = {}, Be.constructor[ose] = function() {
			return Be;
		}, Be.flags = "", Be[Kn] = /./[Kn], Be.exec = function() {
			return x = !0, null;
		}, Be[Kn](""), !x;
	}));
	if (!_r || !Li || We) {
		var fa = $oe(/./[Kn]), Vo = function(x, Be, We) {
			var St;
			return St = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(x, We) {
				var St, Kn, _r = wue(Yoe(this)), Li = We === void 0 ? 4294967295 : We >>> 0;
				if (Li === 0) return [];
				if (x === void 0) return [_r];
				if (!Joe(St = x) || !((Kn = St[ase]) === void 0 ? Uoe(St) == "RegExp" : Kn)) return _oe(Be, _r, x, Li);
				for (var fa, Vo, Xo, Tc = [], Tl = (x.ignoreCase ? "i" : "") + (x.multiline ? "m" : "") + (x.unicode ? "u" : "") + (x.sticky ? "y" : ""), Al = 0, Uu = new RegExp(x.source, Tl + "g"); (fa = _oe(Jue, Uu, _r)) && !((Vo = Uu.lastIndex) > Al && (Ase(Tc, Ose(_r, Al, fa.index)), fa.length > 1 && fa.index < _r.length && rse(xse, Tc, bse(fa, 1)), Xo = fa[0].length, Al = Vo, Tc.length >= Li));) Uu.lastIndex === fa.index && Uu.lastIndex++;
				return Al === _r.length ? !Xo && Cse(Uu, "") || Ase(Tc, "") : Ase(Tc, Ose(_r, Al)), Tc.length > Li ? bse(Tc, 0, Li) : Tc;
			} : "0".split(void 0, 0).length ? function(x, We) {
				return x === void 0 && We === 0 ? [] : _oe(Be, this, x, We);
			} : Be, [function(Be, We) {
				var Kn = Yoe(this), _r = Be == null ? void 0 : vie(Be, x);
				return _r ? _oe(_r, Be, Kn, We) : _oe(St, wue(Kn), Be, We);
			}, function(x, Kn) {
				var _r = Gie(this), Li = wue(x), fa = We(St, _r, Li, Kn, St !== Be);
				if (fa.done) return fa.value;
				var Vo = lse(_r, RegExp), Xo = _r.unicode, Tc = (_r.ignoreCase ? "i" : "") + (_r.multiline ? "m" : "") + (_r.unicode ? "u" : "") + (Dse ? "g" : "y"), Tl = new Vo(Dse ? "^(?:" + _r.source + ")" : _r, Tc), Al = Kn === void 0 ? 4294967295 : Kn >>> 0;
				if (Al === 0) return [];
				if (Li.length === 0) return Ese(Tl, Li) === null ? [Li] : [];
				for (var Uu = 0, Ff = 0, Lm = []; Ff < Li.length;) {
					Tl.lastIndex = Dse ? 0 : Ff;
					var Bm, x_ = Ese(Tl, Dse ? Ose(Li, Ff) : Li);
					if (x_ === null || (Bm = Sse(Oae(Tl.lastIndex + (Dse ? Ff : 0)), Li.length)) === Uu) Ff = vse(Li, Ff, Xo);
					else {
						if (Ase(Lm, Ose(Li, Uu, Ff)), Lm.length === Al) return Lm;
						for (var uy = 1; uy <= x_.length - 1; uy++) if (Ase(Lm, x_[uy]), Lm.length === Al) return Lm;
						Ff = Uu = Bm;
					}
				}
				return Ase(Lm, Ose(Li, Uu)), Lm;
			}];
		}(Kn, ""[x], (function(x, Be, We, St, Kn) {
			var Li = $oe(x), Vo = Be.exec;
			return Vo === Jue || Vo === ise.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		bae(String.prototype, x, Vo[0]), bae(ise, Kn, Vo[1]);
	}
	St && Xie(ise[Kn], "sham", !0);
})("split", 0, !!Boe((function() {
	var x = /(?:)/, Be = x.exec;
	x.exec = function() {
		return Be.apply(this, arguments);
	};
	var We = "ab".split(x);
	return We.length !== 2 || We[0] !== "a" || We[1] !== "b";
})), Dse);
var kse = function() {
	return kse = Object.assign || function(x) {
		for (var Be, We = 1, St = arguments.length; We < St; We++) for (var Kn in Be = arguments[We]) Object.prototype.hasOwnProperty.call(Be, Kn) && (x[Kn] = Be[Kn]);
		return x;
	}, kse.apply(this, arguments);
};
function Bse(x, Be, We, St) {
	return new (We ||= Promise)((function(Kn, _r) {
		function Li(x) {
			try {
				Vo(St.next(x));
			} catch (x) {
				_r(x);
			}
		}
		function fa(x) {
			try {
				Vo(St.throw(x));
			} catch (x) {
				_r(x);
			}
		}
		function Vo(x) {
			var Be;
			x.done ? Kn(x.value) : (Be = x.value, Be instanceof We ? Be : new We((function(x) {
				x(Be);
			}))).then(Li, fa);
		}
		Vo((St = St.apply(x, Be || [])).next());
	}));
}
function Fse(x, Be) {
	var We, St, Kn, _r, Li = {
		label: 0,
		sent: function() {
			if (1 & Kn[0]) throw Kn[1];
			return Kn[1];
		},
		trys: [],
		ops: []
	};
	return _r = {
		next: fa(0),
		throw: fa(1),
		return: fa(2)
	}, typeof Symbol == "function" && (_r[Symbol.iterator] = function() {
		return this;
	}), _r;
	function fa(_r) {
		return function(fa) {
			return function(_r) {
				if (We) throw TypeError("Generator is already executing.");
				for (; Li;) try {
					if (We = 1, St && (Kn = 2 & _r[0] ? St.return : _r[0] ? St.throw || ((Kn = St.return) && Kn.call(St), 0) : St.next) && !(Kn = Kn.call(St, _r[1])).done) return Kn;
					switch (St = 0, Kn && (_r = [2 & _r[0], Kn.value]), _r[0]) {
						case 0:
						case 1:
							Kn = _r;
							break;
						case 4: return Li.label++, {
							value: _r[1],
							done: !1
						};
						case 5:
							Li.label++, St = _r[1], _r = [0];
							continue;
						case 7:
							_r = Li.ops.pop(), Li.trys.pop();
							continue;
						default:
							if (!((Kn = (Kn = Li.trys).length > 0 && Kn[Kn.length - 1]) || _r[0] !== 6 && _r[0] !== 2)) {
								Li = 0;
								continue;
							}
							if (_r[0] === 3 && (!Kn || _r[1] > Kn[0] && _r[1] < Kn[3])) {
								Li.label = _r[1];
								break;
							}
							if (_r[0] === 6 && Li.label < Kn[1]) {
								Li.label = Kn[1], Kn = _r;
								break;
							}
							if (Kn && Li.label < Kn[2]) {
								Li.label = Kn[2], Li.ops.push(_r);
								break;
							}
							Kn[2] && Li.ops.pop(), Li.trys.pop();
							continue;
					}
					_r = Be.call(x, Li);
				} catch (x) {
					_r = [6, x], St = 0;
				} finally {
					We = Kn = 0;
				}
				if (5 & _r[0]) throw _r[1];
				return {
					value: _r[0] ? _r[1] : void 0,
					done: !0
				};
			}([_r, fa]);
		};
	}
}
function Tse(x) {
	if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
	var Be, We = x[Symbol.asyncIterator];
	return We ? We.call(x) : (x = function(x) {
		var Be = typeof Symbol == "function" && Symbol.iterator, We = Be && x[Be], St = 0;
		if (We) return We.call(x);
		if (x && typeof x.length == "number") return { next: function() {
			return x && St >= x.length && (x = void 0), {
				value: x && x[St++],
				done: !x
			};
		} };
		throw TypeError(Be ? "Object is not iterable." : "Symbol.iterator is not defined.");
	}(x), Be = {}, St("next"), St("throw"), St("return"), Be[Symbol.asyncIterator] = function() {
		return this;
	}, Be);
	function St(We) {
		Be[We] = x[We] && function(Be) {
			return new Promise((function(St, Kn) {
				(function(x, Be, We, St) {
					Promise.resolve(St).then((function(Be) {
						x({
							value: Be,
							done: We
						});
					}), Be);
				})(St, Kn, (Be = x[We](Be)).done, Be.value);
			}));
		};
	}
}
var _se = jie("unscopables"), Pse = Array.prototype;
Pse[_se] ?? Yie.f(Pse, _se, {
	configurable: !0,
	value: Iue(null)
});
var jse, Nse, Ise, Lse = function(x) {
	Pse[_se][x] = !0;
}, Rse = {}, Mse = !Boe((function() {
	function x() {}
	return x.prototype.constructor = null, Object.getPrototypeOf(new x()) !== x.prototype;
})), zse = iae("IE_PROTO"), $se = koe.Object, Hse = $se.prototype, Vse = Mse ? $se.getPrototypeOf : function(x) {
	var Be = Sie(x);
	if (Cie(Be, zse)) return Be[zse];
	var We = Be.constructor;
	return Zoe(We) && Be instanceof We ? We.prototype : Be instanceof $se ? Hse : null;
}, Use = jie("iterator"), Wse = !1;
[].keys && ("next" in (Ise = [].keys()) ? (Nse = Vse(Vse(Ise))) !== Object.prototype && (jse = Nse) : Wse = !0), (jse == null || Boe((function() {
	var x = {};
	return jse[Use].call(x) !== x;
}))) && (jse = {}), Zoe(jse[Use]) || bae(jse, Use, (function() {
	return this;
}));
var qse = {
	IteratorPrototype: jse,
	BUGGY_SAFARI_ITERATORS: Wse
}, Kse = Yie.f, Yse = jie("toStringTag"), Xse = function(x, Be, We) {
	x && !Cie(x = We ? x : x.prototype, Yse) && Kse(x, Yse, {
		configurable: !0,
		value: Be
	});
}, Zse = qse.IteratorPrototype, Jse = function() {
	return this;
}, Qse = koe.String, ele = koe.TypeError, tle = Object.setPrototypeOf || ("__proto__" in {} ? function() {
	var x, Be = !1, We = {};
	try {
		(x = $oe(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(We, []), Be = We instanceof Array;
	} catch {}
	return function(We, St) {
		return Gie(We), function(x) {
			if (typeof x == "object" || Zoe(x)) return x;
			throw ele("Can't set " + Qse(x) + " as a prototype");
		}(St), Be ? x(We, St) : We.__proto__ = St, We;
	};
}() : void 0), nle = mae.PROPER, rle = mae.CONFIGURABLE, ole = qse.IteratorPrototype, ile = qse.BUGGY_SAFARI_ITERATORS, ale = jie("iterator"), ule = function() {
	return this;
}, sle = function(x, Be, We, St, Kn, _r, Li) {
	(function(x, Be, We, St) {
		var Kn = Be + " Iterator";
		x.prototype = Iue(Zse, { next: Ioe(1, We) }), Xse(x, Kn, !1), Rse[Kn] = Jse;
	})(We, Be, St);
	var fa, Vo, Xo, Tc = function(x) {
		if (x === Kn && Lm) return Lm;
		if (!ile && x in Uu) return Uu[x];
		switch (x) {
			case "keys":
			case "values":
			case "entries": return function() {
				return new We(this, x);
			};
		}
		return function() {
			return new We(this);
		};
	}, Tl = Be + " Iterator", Al = !1, Uu = x.prototype, Ff = Uu[ale] || Uu["@@iterator"] || Kn && Uu[Kn], Lm = !ile && Ff || Tc(Kn), Bm = Be == "Array" && Uu.entries || Ff;
	if (Bm && (fa = Vse(Bm.call(new x()))) !== Object.prototype && fa.next && (Vse(fa) !== ole && (tle ? tle(fa, ole) : Zoe(fa[ale]) || bae(fa, ale, ule)), Xse(fa, Tl, !0)), nle && Kn == "values" && Ff && Ff.name !== "values" && (rle ? Xie(Uu, "name", "values") : (Al = !0, Lm = function() {
		return _oe(Ff, this);
	})), Kn) if (Vo = {
		values: Tc("values"),
		keys: _r ? Lm : Tc("keys"),
		entries: Tc("entries")
	}, Li) for (Xo in Vo) (ile || Al || !(Xo in Uu)) && bae(Uu, Xo, Vo[Xo]);
	else Kae({
		target: Be,
		proto: !0,
		forced: ile || Al
	}, Vo);
	return Uu[ale] !== Lm && bae(Uu, ale, Lm, { name: Kn }), Rse[Be] = Lm, Vo;
}, lle = hae.set, cle = hae.getterFor("Array Iterator"), fle = sle(Array, "Array", (function(x, Be) {
	lle(this, {
		type: "Array Iterator",
		target: Xoe(x),
		index: 0,
		kind: Be
	});
}), (function() {
	var x = cle(this), Be = x.target, We = x.kind, St = x.index++;
	return !Be || St >= Be.length ? (x.target = void 0, {
		value: void 0,
		done: !0
	}) : We == "keys" ? {
		value: St,
		done: !1
	} : We == "values" ? {
		value: Be[St],
		done: !1
	} : {
		value: [St, Be[St]],
		done: !1
	};
}), "values");
Rse.Arguments = Rse.Array, Lse("keys"), Lse("values"), Lse("entries");
var dle = hse.charAt, ple = hae.set, hle = hae.getterFor("String Iterator");
sle(String, "String", (function(x) {
	ple(this, {
		type: "String Iterator",
		string: wue(x),
		index: 0
	});
}), (function() {
	var x, Be = hle(this), We = Be.string, St = Be.index;
	return St >= We.length ? {
		value: void 0,
		done: !0
	} : (x = dle(We, St), Be.index += x.length, {
		value: x,
		done: !1
	});
}));
var gle = function(x, Be, We) {
	for (var St in Be) bae(x, St, Be[St], We);
	return x;
}, vle = Nae.f, yle = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], mle = { f: function(x) {
	return yle && Uoe(x) == "Window" ? function(x) {
		try {
			return vle(x);
		} catch {
			return bse(yle);
		}
	}(x) : vle(Xoe(x));
} }, ble = Boe((function() {
	if (typeof ArrayBuffer == "function") {
		var x = /* @__PURE__ */ new ArrayBuffer(8);
		Object.isExtensible(x) && Object.defineProperty(x, "a", { value: 8 });
	}
})), wle = Object.isExtensible, Ele = Boe((function() {
	wle(1);
})) || ble ? function(x) {
	return !!Joe(x) && (!ble || Uoe(x) != "ArrayBuffer") && (!wle || wle(x));
} : wle, Dle = !Boe((function() {
	return Object.isExtensible(Object.preventExtensions({}));
})), Sle = xoe((function(x) {
	var Be = Yie.f, We = !1, St = Bie("meta"), Kn = 0, _r = function(x) {
		Be(x, St, { value: {
			objectID: "O" + Kn++,
			weakData: {}
		} });
	}, Li = x.exports = {
		enable: function() {
			Li.enable = function() {}, We = !0;
			var x = Nae.f, Be = $oe([].splice), Kn = {};
			Kn[St] = 1, x(Kn).length && (Nae.f = function(We) {
				for (var Kn = x(We), _r = 0, Li = Kn.length; _r < Li; _r++) if (Kn[_r] === St) {
					Be(Kn, _r, 1);
					break;
				}
				return Kn;
			}, Kae({
				target: "Object",
				stat: !0,
				forced: !0
			}, { getOwnPropertyNames: mle.f }));
		},
		fastKey: function(x, Be) {
			if (!Joe(x)) return typeof x == "symbol" ? x : (typeof x == "string" ? "S" : "P") + x;
			if (!Cie(x, St)) {
				if (!Ele(x)) return "F";
				if (!Be) return "E";
				_r(x);
			}
			return x[St].objectID;
		},
		getWeakData: function(x, Be) {
			if (!Cie(x, St)) {
				if (!Ele(x)) return !0;
				if (!Be) return !1;
				_r(x);
			}
			return x[St].weakData;
		},
		onFreeze: function(x) {
			return Dle && We && Ele(x) && !Cie(x, St) && _r(x), x;
		}
	};
	aae[St] = !0;
})), xle = $oe($oe.bind), Cle = function(x, Be) {
	return gie(x), Be === void 0 ? x : xle ? xle(x, Be) : function() {
		return x.apply(Be, arguments);
	};
}, Ale = jie("iterator"), Ole = Array.prototype, kle = jie("iterator"), Ble = function(x) {
	if (x != null) return vie(x, kle) || vie(x, "@@iterator") || Rse[tue(x)];
}, Fle = koe.TypeError, Tle = function(x, Be, We) {
	var St, Kn;
	Gie(x);
	try {
		if (!(St = vie(x, "return"))) {
			if (Be === "throw") throw We;
			return We;
		}
		St = _oe(St, x);
	} catch (x) {
		Kn = !0, St = x;
	}
	if (Be === "throw") throw We;
	if (Kn) throw St;
	return Gie(St), We;
}, _le = koe.TypeError, Ple = function(x, Be) {
	this.stopped = x, this.result = Be;
}, jle = Ple.prototype, Nle = function(x, Be, We) {
	var St, Kn, _r, Li, fa, Vo, Xo, Tc, Tl = We && We.that, Al = !(!We || !We.AS_ENTRIES), Uu = !(!We || !We.IS_ITERATOR), Ff = !(!We || !We.INTERRUPTED), Lm = Cle(Be, Tl), Bm = function(x) {
		return St && Tle(St, "normal", x), new Ple(!0, x);
	}, x_ = function(x) {
		return Al ? (Gie(x), Ff ? Lm(x[0], x[1], Bm) : Lm(x[0], x[1])) : Ff ? Lm(x, Bm) : Lm(x);
	};
	if (Uu) St = x;
	else {
		if (!(Kn = Ble(x))) throw _le(pie(x) + " is not iterable");
		if ((Tc = Kn) !== void 0 && (Rse.Array === Tc || Ole[Ale] === Tc)) {
			for (_r = 0, Li = kae(x); Li > _r; _r++) if ((fa = x_(x[_r])) && tie(jle, fa)) return fa;
			return new Ple(!1);
		}
		St = function(x, Be) {
			var We = arguments.length < 2 ? Ble(x) : Be;
			if (gie(We)) return Gie(_oe(We, x));
			throw Fle(pie(x) + " is not iterable");
		}(x, Kn);
	}
	for (Vo = St.next; !(Xo = _oe(Vo, St)).done;) {
		try {
			fa = x_(Xo.value);
		} catch (x) {
			Tle(St, "throw", x);
		}
		if (typeof fa == "object" && fa && tie(jle, fa)) return fa;
	}
	return new Ple(!1);
}, Ile = koe.TypeError, Lle = function(x, Be) {
	if (tie(Be, x)) return x;
	throw Ile("Incorrect invocation");
}, Rle = jie("iterator"), Mle = !1;
try {
	var zle = 0, $le = {
		next: function() {
			return { done: !!zle++ };
		},
		return: function() {
			Mle = !0;
		}
	};
	$le[Rle] = function() {
		return this;
	}, Array.from($le, (function() {
		throw 2;
	}));
} catch {}
var Hle = function(x, Be) {
	if (!Be && !Mle) return !1;
	var We = !1;
	try {
		var St = {};
		St[Rle] = function() {
			return { next: function() {
				return { done: We = !0 };
			} };
		}, x(St);
	} catch {}
	return We;
}, Vle = jie("species"), Ule = koe.Array, Wle = function(x, Be) {
	return new (function(x) {
		var Be;
		return Yae(x) && (Be = x.constructor, (lue(Be) && (Be === Ule || Yae(Be.prototype)) || Joe(Be) && (Be = Be[Vle]) === null) && (Be = void 0)), Be === void 0 ? Ule : Be;
	}(x))(Be === 0 ? 0 : Be);
}, Gle = $oe([].push), qle = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = Sie(Vo), Lm = qoe(Ff), Bm = Cle(Xo, Tc), x_ = kae(Lm), uy = 0, dx = Tl || Wle, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: Gle(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: Gle(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, Kle = {
	forEach: qle(0),
	map: qle(1),
	filter: qle(2),
	some: qle(3),
	every: qle(4),
	find: qle(5),
	findIndex: qle(6),
	filterReject: qle(7)
}, Yle = Sle.getWeakData, Xle = hae.set, Zle = hae.getterFor, Jle = Kle.find, Qle = Kle.findIndex, ece = $oe([].splice), tce = 0, nce = function(x) {
	return x.frozen ||= new rce();
}, rce = function() {
	this.entries = [];
}, oce = function(x, Be) {
	return Jle(x.entries, (function(x) {
		return x[0] === Be;
	}));
};
rce.prototype = {
	get: function(x) {
		var Be = oce(this, x);
		if (Be) return Be[1];
	},
	has: function(x) {
		return !!oce(this, x);
	},
	set: function(x, Be) {
		var We = oce(this, x);
		We ? We[1] = Be : this.entries.push([x, Be]);
	},
	delete: function(x) {
		var Be = Qle(this.entries, (function(Be) {
			return Be[0] === x;
		}));
		return ~Be && ece(this.entries, Be, 1), !!~Be;
	}
};
var ice, ace = { getConstructor: function(x, Be, We, St) {
	var Kn = x((function(x, Kn) {
		Lle(x, _r), Xle(x, {
			type: Be,
			id: tce++,
			frozen: void 0
		}), Kn != null && Nle(Kn, x[St], {
			that: x,
			AS_ENTRIES: We
		});
	})), _r = Kn.prototype, Li = Zle(Be), fa = function(x, Be, We) {
		var St = Li(x), Kn = Yle(Gie(Be), !0);
		return !0 === Kn ? nce(St).set(Be, We) : Kn[St.id] = We, x;
	};
	return gle(_r, {
		delete: function(x) {
			var Be = Li(this);
			if (!Joe(x)) return !1;
			var We = Yle(x);
			return !0 === We ? nce(Be).delete(x) : We && Cie(We, Be.id) && delete We[Be.id];
		},
		has: function(x) {
			var Be = Li(this);
			if (!Joe(x)) return !1;
			var We = Yle(x);
			return !0 === We ? nce(Be).has(x) : We && Cie(We, Be.id);
		}
	}), gle(_r, We ? {
		get: function(x) {
			var Be = Li(this);
			if (Joe(x)) {
				var We = Yle(x);
				return !0 === We ? nce(Be).get(x) : We ? We[Be.id] : void 0;
			}
		},
		set: function(x, Be) {
			return fa(this, x, Be);
		}
	} : { add: function(x) {
		return fa(this, x, !0);
	} }), Kn;
} }, uce = hae.enforce, sce = !koe.ActiveXObject && "ActiveXObject" in koe, lce = function(x) {
	return function() {
		return x(this, arguments.length ? arguments[0] : void 0);
	};
}, cce = function(x, Be, We) {
	var St = x.indexOf("Map") !== -1, Kn = x.indexOf("Weak") !== -1, _r = St ? "set" : "add", Li = koe[x], fa = Li && Li.prototype, Vo = Li, Xo = {}, Tc = function(x) {
		var Be = $oe(fa[x]);
		bae(fa, x, x == "add" ? function(x) {
			return Be(this, x === 0 ? 0 : x), this;
		} : x == "delete" ? function(x) {
			return !(Kn && !Joe(x)) && Be(this, x === 0 ? 0 : x);
		} : x == "get" ? function(x) {
			return Kn && !Joe(x) ? void 0 : Be(this, x === 0 ? 0 : x);
		} : x == "has" ? function(x) {
			return !(Kn && !Joe(x)) && Be(this, x === 0 ? 0 : x);
		} : function(x, We) {
			return Be(this, x === 0 ? 0 : x, We), this;
		});
	};
	if (Gae(x, !Zoe(Li) || !(Kn || fa.forEach && !Boe((function() {
		new Li().entries().next();
	}))))) Vo = We.getConstructor(Be, x, St, _r), Sle.enable();
	else if (Gae(x, !0)) {
		var Tl = new Vo(), Al = Tl[_r](Kn ? {} : -0, 1) != Tl, Uu = Boe((function() {
			Tl.has(1);
		})), Ff = Hle((function(x) {
			new Li(x);
		})), Lm = !Kn && Boe((function() {
			for (var x = new Li(), Be = 5; Be--;) x[_r](Be, Be);
			return !x.has(-0);
		}));
		Ff || ((Vo = Be((function(x, Be) {
			Lle(x, fa);
			var We = function(x, Be, We) {
				var St, Kn;
				return tle && Zoe(St = Be.constructor) && St !== We && Joe(Kn = St.prototype) && Kn !== We.prototype && tle(x, Kn), x;
			}(new Li(), x, Vo);
			return Be != null && Nle(Be, We[_r], {
				that: We,
				AS_ENTRIES: St
			}), We;
		}))).prototype = fa, fa.constructor = Vo), (Uu || Lm) && (Tc("delete"), Tc("has"), St && Tc("get")), (Lm || Al) && Tc(_r), Kn && fa.clear && delete fa.clear;
	}
	return Xo[x] = Vo, Kae({
		global: !0,
		forced: Vo != Li
	}, Xo), Xse(Vo, x), Kn || We.setStrong(Vo, x, St), Vo;
}("WeakMap", lce, ace);
if (rae && sce) {
	ice = ace.getConstructor(lce, "WeakMap", !0), Sle.enable();
	var fce = cce.prototype, dce = $oe(fce.delete), pce = $oe(fce.has), hce = $oe(fce.get), gce = $oe(fce.set);
	gle(fce, {
		delete: function(x) {
			if (Joe(x) && !Ele(x)) {
				var Be = uce(this);
				return Be.frozen ||= new ice(), dce(this, x) || Be.frozen.delete(x);
			}
			return dce(this, x);
		},
		has: function(x) {
			if (Joe(x) && !Ele(x)) {
				var Be = uce(this);
				return Be.frozen ||= new ice(), pce(this, x) || Be.frozen.has(x);
			}
			return pce(this, x);
		},
		get: function(x) {
			if (Joe(x) && !Ele(x)) {
				var Be = uce(this);
				return Be.frozen ||= new ice(), pce(this, x) ? hce(this, x) : Be.frozen.get(x);
			}
			return hce(this, x);
		},
		set: function(x, Be) {
			if (Joe(x) && !Ele(x)) {
				var We = uce(this);
				We.frozen ||= new ice(), pce(this, x) ? gce(this, x, Be) : We.frozen.set(x, Be);
			} else gce(this, x, Be);
			return this;
		}
	});
}
var vce = {
	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
}, yce = zie("span").classList, mce = yce && yce.constructor && yce.constructor.prototype, bce = mce === Object.prototype ? void 0 : mce, wce = jie("iterator"), Ece = jie("toStringTag"), Dce = fle.values, Sce = function(x, Be) {
	if (x) {
		if (x[wce] !== Dce) try {
			Xie(x, wce, Dce);
		} catch {
			x[wce] = Dce;
		}
		if (x[Ece] || Xie(x, Ece, Be), vce[Be]) {
			for (var We in fle) if (x[We] !== fle[We]) try {
				Xie(x, We, fle[We]);
			} catch {
				x[We] = fle[We];
			}
		}
	}
};
for (var xce in vce) Sce(koe[xce] && koe[xce].prototype, xce);
Sce(bce, "DOMTokenList");
var Cce = function(x, Be) {
	var We = [][x];
	return !!We && Boe((function() {
		We.call(null, Be || function() {
			throw 1;
		}, 1);
	}));
}, Ace = Kle.forEach, Oce = Cce("forEach") ? [].forEach : function(x) {
	return Ace(this, x, arguments.length > 1 ? arguments[1] : void 0);
}, kce = function(x) {
	if (x && x.forEach !== Oce) try {
		Xie(x, "forEach", Oce);
	} catch {
		x.forEach = Oce;
	}
};
for (var Bce in vce) vce[Bce] && kce(koe[Bce] && koe[Bce].prototype);
kce(bce);
var Fce, Tce, _ce, Pce, jce = koe.Promise, Nce = jie("species"), Ice = /(?:ipad|iphone|ipod).*applewebkit/i.test(nie), Lce = Uoe(koe.process) == "process", Rce = koe.setImmediate, Mce = koe.clearImmediate, zce = koe.process, $ce = koe.Dispatch, Hce = koe.Function, Vce = koe.MessageChannel, Uce = koe.String, Wce = 0, Gce = {};
try {
	Fce = koe.location;
} catch {}
var qce = function(x) {
	if (Cie(Gce, x)) {
		var Be = Gce[x];
		delete Gce[x], Be();
	}
}, Kce = function(x) {
	return function() {
		qce(x);
	};
}, Yce = function(x) {
	qce(x.data);
}, Xce = function(x) {
	koe.postMessage(Uce(x), Fce.protocol + "//" + Fce.host);
};
Rce && Mce || (Rce = function(x) {
	var Be = due(arguments, 1);
	return Gce[++Wce] = function() {
		rse(Zoe(x) ? x : Hce(x), void 0, Be);
	}, Tce(Wce), Wce;
}, Mce = function(x) {
	delete Gce[x];
}, Lce ? Tce = function(x) {
	zce.nextTick(Kce(x));
} : $ce && $ce.now ? Tce = function(x) {
	$ce.now(Kce(x));
} : Vce && !Ice ? (Pce = (_ce = new Vce()).port2, _ce.port1.onmessage = Yce, Tce = Cle(Pce.postMessage, Pce)) : koe.addEventListener && Zoe(koe.postMessage) && !koe.importScripts && Fce && Fce.protocol !== "file:" && !Boe(Xce) ? (Tce = Xce, koe.addEventListener("message", Yce, !1)) : Tce = "onreadystatechange" in zie("script") ? function(x) {
	kue.appendChild(zie("script")).onreadystatechange = function() {
		kue.removeChild(this), qce(x);
	};
} : function(x) {
	setTimeout(Kce(x), 0);
});
var Zce, Jce, Qce, efe, tfe, nfe, rfe, ofe, ife = {
	set: Rce,
	clear: Mce
}, afe = /ipad|iphone|ipod/i.test(nie) && koe.Pebble !== void 0, ufe = /web0s(?!.*chrome)/i.test(nie), sfe = Vie.f, lfe = ife.set, cfe = koe.MutationObserver || koe.WebKitMutationObserver, ffe = koe.document, dfe = koe.process, pfe = koe.Promise, hfe = sfe(koe, "queueMicrotask"), gfe = hfe && hfe.value;
gfe || (Zce = function() {
	var x, Be;
	for (Lce && (x = dfe.domain) && x.exit(); Jce;) {
		Be = Jce.fn, Jce = Jce.next;
		try {
			Be();
		} catch (x) {
			throw Jce ? efe() : Qce = void 0, x;
		}
	}
	Qce = void 0, x && x.enter();
}, Ice || Lce || ufe || !cfe || !ffe ? !afe && pfe && pfe.resolve ? ((rfe = pfe.resolve(void 0)).constructor = pfe, ofe = Cle(rfe.then, rfe), efe = function() {
	ofe(Zce);
}) : Lce ? efe = function() {
	dfe.nextTick(Zce);
} : (lfe = Cle(lfe, koe), efe = function() {
	lfe(Zce);
}) : (tfe = !0, nfe = ffe.createTextNode(""), new cfe(Zce).observe(nfe, { characterData: !0 }), efe = function() {
	nfe.data = tfe = !tfe;
}));
var vfe, yfe, mfe, bfe, wfe = gfe || function(x) {
	var Be = {
		fn: x,
		next: void 0
	};
	Qce && (Qce.next = Be), Jce || (Jce = Be, efe()), Qce = Be;
}, Efe = function(x) {
	var Be, We;
	this.promise = new x((function(x, St) {
		if (Be !== void 0 || We !== void 0) throw TypeError("Bad Promise constructor");
		Be = x, We = St;
	})), this.resolve = gie(Be), this.reject = gie(We);
}, Dfe = { f: function(x) {
	return new Efe(x);
} }, Sfe = function(x) {
	try {
		return {
			error: !1,
			value: x()
		};
	} catch (x) {
		return {
			error: !0,
			value: x
		};
	}
}, xfe = typeof window == "object", Cfe = ife.set, Afe = jie("species"), Ofe = "Promise", kfe = hae.getterFor(Ofe), Bfe = hae.set, Ffe = hae.getterFor(Ofe), Tfe = jce && jce.prototype, _fe = jce, Pfe = Tfe, jfe = koe.TypeError, Nfe = koe.document, Ife = koe.process, Lfe = Dfe.f, Rfe = Lfe, Mfe = !!(Nfe && Nfe.createEvent && koe.dispatchEvent), zfe = Zoe(koe.PromiseRejectionEvent), $fe = !1, Hfe = Gae(Ofe, (function() {
	var x = tae(_fe), Be = x !== String(_fe);
	if (!Be && uie === 66) return !0;
	if (uie >= 51 && /native code/.test(x)) return !1;
	var We = new _fe((function(x) {
		x(1);
	})), St = function(x) {
		x((function() {}), (function() {}));
	};
	return (We.constructor = {})[Afe] = St, !($fe = We.then((function() {})) instanceof St) || !Be && xfe && !zfe;
})), Vfe = Hfe || !Hle((function(x) {
	_fe.all(x).catch((function() {}));
})), Ufe = function(x) {
	var Be;
	return !(!Joe(x) || !Zoe(Be = x.then)) && Be;
}, Wfe = function(x, Be) {
	if (!x.notified) {
		x.notified = !0;
		var We = x.reactions;
		wfe((function() {
			for (var St = x.value, Kn = x.state == 1, _r = 0; We.length > _r;) {
				var Li, fa, Vo, Xo = We[_r++], Tc = Kn ? Xo.ok : Xo.fail, Tl = Xo.resolve, Al = Xo.reject, Uu = Xo.domain;
				try {
					Tc ? (Kn || (x.rejection === 2 && Yfe(x), x.rejection = 1), !0 === Tc ? Li = St : (Uu && Uu.enter(), Li = Tc(St), Uu && (Uu.exit(), Vo = !0)), Li === Xo.promise ? Al(jfe("Promise-chain cycle")) : (fa = Ufe(Li)) ? _oe(fa, Li, Tl, Al) : Tl(Li)) : Al(St);
				} catch (x) {
					Uu && !Vo && Uu.exit(), Al(x);
				}
			}
			x.reactions = [], x.notified = !1, Be && !x.rejection && qfe(x);
		}));
	}
}, Gfe = function(x, Be, We) {
	var St, Kn;
	Mfe ? ((St = Nfe.createEvent("Event")).promise = Be, St.reason = We, St.initEvent(x, !1, !0), koe.dispatchEvent(St)) : St = {
		promise: Be,
		reason: We
	}, !zfe && (Kn = koe["on" + x]) ? Kn(St) : x === "unhandledrejection" && function(x, Be) {
		var We = koe.console;
		We && We.error && (arguments.length == 1 ? We.error(x) : We.error(x, Be));
	}("Unhandled promise rejection", We);
}, qfe = function(x) {
	_oe(Cfe, koe, (function() {
		var Be, We = x.facade, St = x.value;
		if (Kfe(x) && (Be = Sfe((function() {
			Lce ? Ife.emit("unhandledRejection", St, We) : Gfe("unhandledrejection", We, St);
		})), x.rejection = Lce || Kfe(x) ? 2 : 1, Be.error)) throw Be.value;
	}));
}, Kfe = function(x) {
	return x.rejection !== 1 && !x.parent;
}, Yfe = function(x) {
	_oe(Cfe, koe, (function() {
		var Be = x.facade;
		Lce ? Ife.emit("rejectionHandled", Be) : Gfe("rejectionhandled", Be, x.value);
	}));
}, Xfe = function(x, Be, We) {
	return function(St) {
		x(Be, St, We);
	};
}, Zfe = function(x, Be, We) {
	x.done || (x.done = !0, We && (x = We), x.value = Be, x.state = 2, Wfe(x, !0));
}, Jfe = function(x, Be, We) {
	if (!x.done) {
		x.done = !0, We && (x = We);
		try {
			if (x.facade === Be) throw jfe("Promise can't be resolved itself");
			var St = Ufe(Be);
			St ? wfe((function() {
				var We = { done: !1 };
				try {
					_oe(St, Be, Xfe(Jfe, We, x), Xfe(Zfe, We, x));
				} catch (Be) {
					Zfe(We, Be, x);
				}
			})) : (x.value = Be, x.state = 1, Wfe(x, !1));
		} catch (Be) {
			Zfe({ done: !1 }, Be, x);
		}
	}
};
if (Hfe && (Pfe = (_fe = function(x) {
	Lle(this, Pfe), gie(x), _oe(vfe, this);
	var Be = kfe(this);
	try {
		x(Xfe(Jfe, Be), Xfe(Zfe, Be));
	} catch (x) {
		Zfe(Be, x);
	}
}).prototype, (vfe = function(x) {
	Bfe(this, {
		type: Ofe,
		done: !1,
		notified: !1,
		parent: !1,
		reactions: [],
		rejection: !1,
		state: 0,
		value: void 0
	});
}).prototype = gle(Pfe, {
	then: function(x, Be) {
		var We = Ffe(this), St = We.reactions, Kn = Lfe(lse(this, _fe));
		return Kn.ok = !Zoe(x) || x, Kn.fail = Zoe(Be) && Be, Kn.domain = Lce ? Ife.domain : void 0, We.parent = !0, St[St.length] = Kn, We.state != 0 && Wfe(We, !1), Kn.promise;
	},
	catch: function(x) {
		return this.then(void 0, x);
	}
}), yfe = function() {
	var x = new vfe(), Be = kfe(x);
	this.promise = x, this.resolve = Xfe(Jfe, Be), this.reject = Xfe(Zfe, Be);
}, Dfe.f = Lfe = function(x) {
	return x === _fe || x === mfe ? new yfe(x) : Rfe(x);
}, Zoe(jce) && Tfe !== Object.prototype)) {
	bfe = Tfe.then, $fe || (bae(Tfe, "then", (function(x, Be) {
		var We = this;
		return new _fe((function(x, Be) {
			_oe(bfe, We, x, Be);
		})).then(x, Be);
	}), { unsafe: !0 }), bae(Tfe, "catch", Pfe.catch, { unsafe: !0 }));
	try {
		delete Tfe.constructor;
	} catch {}
	tle && tle(Tfe, Pfe);
}
Kae({
	global: !0,
	wrap: !0,
	forced: Hfe
}, { Promise: _fe }), Xse(_fe, Ofe, !1), function(x) {
	var Be = eie("Promise"), We = Yie.f;
	Foe && Be && !Be[Nce] && We(Be, Nce, {
		configurable: !0,
		get: function() {
			return this;
		}
	});
}(), mfe = eie(Ofe), Kae({
	target: Ofe,
	stat: !0,
	forced: Hfe
}, { reject: function(x) {
	var Be = Lfe(this);
	return _oe(Be.reject, void 0, x), Be.promise;
} }), Kae({
	target: Ofe,
	stat: !0,
	forced: Hfe
}, { resolve: function(x) {
	return function(x, Be) {
		if (Gie(x), Joe(Be) && Be.constructor === x) return Be;
		var We = Dfe.f(x);
		return (0, We.resolve)(Be), We.promise;
	}(this, x);
} }), Kae({
	target: Ofe,
	stat: !0,
	forced: Vfe
}, {
	all: function(x) {
		var Be = this, We = Lfe(Be), St = We.resolve, Kn = We.reject, _r = Sfe((function() {
			var We = gie(Be.resolve), _r = [], Li = 0, fa = 1;
			Nle(x, (function(x) {
				var Vo = Li++, Xo = !1;
				fa++, _oe(We, Be, x).then((function(x) {
					Xo || (Xo = !0, _r[Vo] = x, --fa || St(_r));
				}), Kn);
			})), --fa || St(_r);
		}));
		return _r.error && Kn(_r.value), We.promise;
	},
	race: function(x) {
		var Be = this, We = Lfe(Be), St = We.reject, Kn = Sfe((function() {
			var Kn = gie(Be.resolve);
			Nle(x, (function(x) {
				_oe(Kn, Be, x).then(We.resolve, St);
			}));
		}));
		return Kn.error && St(Kn.value), We.promise;
	}
});
var Qfe = mae.PROPER, ede = RegExp.prototype, tde = ede.toString, nde = $oe(Eue), rde = Boe((function() {
	return tde.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), ode = Qfe && tde.name != "toString";
(rde || ode) && bae(RegExp.prototype, "toString", (function() {
	var x = Gie(this), Be = wue(x.source), We = x.flags;
	return "/" + Be + "/" + wue(We === void 0 && tie(ede, x) && !("flags" in ede) ? nde(x) : We);
}), { unsafe: !0 });
var ide = mae.EXISTS, ade = Yie.f, ude = Function.prototype, sde = $oe(ude.toString), lde = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, cde = $oe(lde.exec);
Foe && !ide && ade(ude, "name", {
	configurable: !0,
	get: function() {
		try {
			return cde(lde, sde(this))[1];
		} catch {
			return "";
		}
	}
});
var fde = /* @__PURE__ */ new WeakMap();
function dde(x) {
	return x.getMenuConfig("uploadImage");
}
function pde(x, Be) {
	return Bse(this, void 0, void 0, (function() {
		return Fse(this, (function(We) {
			return [2, new Promise((function(We) {
				var St = new FileReader();
				St.readAsDataURL(Be), St.onload = function() {
					var Kn = St.result;
					if (Kn) {
						var _r = Kn.toString(), Li = _r.indexOf("data:image") === 0 ? "" : _r;
						M$(x, _r, Be.name, Li), We("ok");
					}
				};
			}))];
		}));
	}));
}
function hde(x, Be) {
	return Bse(this, void 0, void 0, (function() {
		var We, St, Kn, _r;
		return Fse(this, (function(Li) {
			switch (Li.label) {
				case 0: return We = function(x) {
					var Be = fde.get(x);
					if (Be != null) return Be;
					var We = dde(x), St = We.onSuccess, Kn = We.onProgress, _r = We.onFailed, Li = We.customInsert, fa = We.onError;
					return Be = K_(kse(kse({}, We), {
						onProgress: function(Be) {
							x.showProgressBar(Be), Kn && Kn(Be);
						},
						onSuccess: function(Be, We) {
							if (Li) return Li(We, (function(Be, We, St) {
								return M$(x, Be, We, St);
							})), void St(Be, We);
							var Kn = We.errno, fa = Kn === void 0 ? 1 : Kn, Vo = We.data, Xo = Vo === void 0 ? {} : Vo;
							if (fa === 0) {
								if (Array.isArray(Xo)) Xo.forEach((function(Be) {
									var We = Be.url, St = We === void 0 ? "" : We, Kn = Be.alt, _r = Kn === void 0 ? "" : Kn, Li = Be.href;
									M$(x, St, _r, Li === void 0 ? "" : Li);
								}));
								else {
									var Tc = Xo.url, Tl = Tc === void 0 ? "" : Tc, Al = Xo.alt, Uu = Al === void 0 ? "" : Al, Ff = Xo.href;
									M$(x, Tl, Uu, Ff === void 0 ? "" : Ff);
								}
								St(Be, We);
							} else _r(Be, We);
						},
						onError: function(x, Be, We) {
							fa(x, Be, We);
						}
					})), fde.set(x, Be), Be;
				}(x), St = Be.name, Kn = Be.type, _r = Be.size, We.addFile({
					name: St,
					type: Kn,
					size: _r,
					data: Be
				}), [4, We.upload()];
				case 1: return Li.sent(), [2];
			}
		}));
	}));
}
function gde(x, Be) {
	var We, St;
	return Bse(this, void 0, void 0, (function() {
		var Kn, _r, Li, fa, Vo, Xo, Tc, Tl, Al;
		return Fse(this, (function(Uu) {
			switch (Uu.label) {
				case 0:
					if (Be == null) return [2];
					Kn = Array.prototype.slice.call(Be), _r = dde(x), Li = _r.customUpload, fa = _r.base64LimitSize, Uu.label = 1;
				case 1: Uu.trys.push([
					1,
					11,
					12,
					17
				]), Vo = Tse(Kn), Uu.label = 2;
				case 2: return [4, Vo.next()];
				case 3: return (Xo = Uu.sent()).done ? [3, 10] : (Tc = Xo.value, Tl = Tc.size, fa && Tl <= fa ? [4, pde(x, Tc)] : [3, 5]);
				case 4: return Uu.sent(), [3, 9];
				case 5: return Li ? [4, Li(Tc, (function(Be, We, St) {
					return M$(x, Be, We, St);
				}))] : [3, 7];
				case 6: return Uu.sent(), [3, 9];
				case 7: return [4, hde(x, Tc)];
				case 8: Uu.sent(), Uu.label = 9;
				case 9: return [3, 2];
				case 10: return [3, 17];
				case 11: return Al = Uu.sent(), We = { error: Al }, [3, 17];
				case 12: return Uu.trys.push([
					12,
					,
					15,
					16
				]), Xo && !Xo.done && (St = Vo.return) ? [4, St.call(Vo)] : [3, 14];
				case 13: Uu.sent(), Uu.label = 14;
				case 14: return [3, 16];
				case 15:
					if (We) throw We.error;
					return [7];
				case 16: return [7];
				case 17: return [2];
			}
		}));
	}));
}
var vde = $oe([].join), yde = qoe != Object, mde = Cce("join", ",");
Kae({
	target: "Array",
	proto: !0,
	forced: yde || !mde
}, { join: function(x) {
	return vde(Xoe(this), x === void 0 ? "," : x);
} }), ah && (Mp.fn.append = ah), qp && (Mp.fn.on = qp), dh && (Mp.fn.remove = dh), Gp && (Mp.fn.val = Gp), vh && (Mp.fn.click = vh), Jp && (Mp.fn.hide = Jp);
var bde = function() {
	function x() {
		this.title = HP("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 x.prototype.getValue = function(x) {
		return "";
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.isDisabled = function(x) {
		return z$(x);
	}, x.prototype.getMenuConfig = function(x) {
		return x.getMenuConfig("uploadImage");
	}, x.prototype.exec = function(x, Be) {
		var We = this.getMenuConfig(x), St = We.allowedFileTypes, Kn = St === void 0 ? [] : St, _r = We.customBrowseAndUpload;
		if (_r) _r((function(Be, We, St) {
			return M$(x, Be, We, St);
		}));
		else {
			var Li = "";
			Kn.length > 0 && (Li = "accept=\"" + Kn.join(", ") + "\"");
			var fa = Mp("body"), Vo = Mp("<input type=\"file\" " + Li + " multiple/>");
			Vo.hide(), fa.append(Vo), Vo.click(), Vo.on("change", (function() {
				var Be = Vo[0].files;
				gde(x, Be);
			}));
		}
	}, x;
}(), wde = {
	menus: [{
		key: "uploadImage",
		factory: function() {
			return new bde();
		},
		config: {
			server: "",
			fieldName: "wangeditor-uploaded-image",
			maxFileSize: 2097152,
			maxNumberOfFiles: 100,
			allowedFileTypes: ["image/*"],
			meta: {},
			metaWithUrl: !1,
			withCredentials: !1,
			timeout: 1e4,
			onBeforeUpload: function(x) {
				return x;
			},
			onProgress: function(x) {},
			onSuccess: function(x, Be) {},
			onFailed: function(x, Be) {
				console.error("'" + x.name + "' upload failed", Be);
			},
			onError: function(x, Be, We) {
				console.error("'" + x.name + "' upload error", We);
			},
			base64LimitSize: 0
		}
	}],
	editorPlugin: function(x) {
		var Be = x.insertData, We = x;
		return We.insertData = function(St) {
			if (z$(We)) Be(St);
			else if (St.getData("text/plain")) Be(St);
			else {
				var Kn = St.files;
				Kn.length <= 0 ? Be(St) : Array.prototype.slice.call(Kn).some((function(x) {
					return function(x, Be) {
						var We = typeof Symbol == "function" && x[Symbol.iterator];
						if (!We) return x;
						var St, Kn, _r = We.call(x), Li = [];
						try {
							for (; (Be === void 0 || Be-- > 0) && !(St = _r.next()).done;) Li.push(St.value);
						} catch (x) {
							Kn = { error: x };
						} finally {
							try {
								St && !St.done && (We = _r.return) && We.call(_r);
							} finally {
								if (Kn) throw Kn.error;
							}
						}
						return Li;
					}(x.type.split("/"), 1)[0] === "image";
				})) ? gde(x, Kn) : Be(St);
			}
		}, We;
	}
};
MP("en", { highLightModule: { selectLang: "Language" } }), MP("zh-CN", { highLightModule: { selectLang: "选择语言" } });
var Ede = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Dde(x) {
	var Be = { exports: {} };
	return x(Be, Be.exports), Be.exports;
}
var Sde, xde, Cde = function(x) {
	return x && x.Math == Math && x;
}, Ade = Cde(typeof globalThis == "object" && globalThis) || Cde(typeof window == "object" && window) || Cde(typeof self == "object" && self) || Cde(typeof Ede == "object" && Ede) || function() {
	return this;
}() || Function("return this")(), Ode = Object.defineProperty, kde = function(x, Be) {
	try {
		Ode(Ade, x, {
			value: Be,
			configurable: !0,
			writable: !0
		});
	} catch {
		Ade[x] = Be;
	}
	return Be;
}, Bde = Ade["__core-js_shared__"] || kde("__core-js_shared__", {}), Fde = Dde((function(x) {
	(x.exports = function(x, Be) {
		return Bde[x] || (Bde[x] = Be === void 0 ? {} : Be);
	})("versions", []).push({
		version: "3.19.3",
		mode: "global",
		copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
	});
})), Tde = Function.prototype, _de = Tde.bind, Pde = Tde.call, jde = _de && _de.bind(Pde), Nde = _de ? function(x) {
	return x && jde(Pde, x);
} : function(x) {
	return x && function() {
		return Pde.apply(x, arguments);
	};
}, Ide = Ade.TypeError, Lde = function(x) {
	if (x == null) throw Ide("Can't call method on " + x);
	return x;
}, Rde = Ade.Object, Mde = function(x) {
	return Rde(Lde(x));
}, zde = Nde({}.hasOwnProperty), $de = Object.hasOwn || function(x, Be) {
	return zde(Mde(x), Be);
}, Hde = 0, Vde = Math.random(), Ude = Nde(1 .toString), Wde = function(x) {
	return "Symbol(" + (x === void 0 ? "" : x) + ")_" + Ude(++Hde + Vde, 36);
}, Gde = function(x) {
	return typeof x == "function";
}, qde = function(x) {
	return Gde(x) ? x : void 0;
}, Kde = function(x, Be) {
	return arguments.length < 2 ? qde(Ade[x]) : Ade[x] && Ade[x][Be];
}, Yde = Kde("navigator", "userAgent") || "", Xde = Ade.process, Zde = Ade.Deno, Jde = Xde && Xde.versions || Zde && Zde.version, Qde = Jde && Jde.v8;
Qde && (xde = (Sde = Qde.split("."))[0] > 0 && Sde[0] < 4 ? 1 : +(Sde[0] + Sde[1])), !xde && Yde && (!(Sde = Yde.match(/Edge\/(\d+)/)) || Sde[1] >= 74) && (Sde = Yde.match(/Chrome\/(\d+)/)) && (xde = +Sde[1]);
var epe = xde, tpe = function(x) {
	try {
		return !!x();
	} catch {
		return !0;
	}
}, npe = !!Object.getOwnPropertySymbols && !tpe((function() {
	var x = Symbol();
	return !String(x) || !(Object(x) instanceof Symbol) || !Symbol.sham && epe && epe < 41;
})), rpe = npe && !Symbol.sham && typeof Symbol.iterator == "symbol", ope = Fde("wks"), ipe = Ade.Symbol, ape = ipe && ipe.for, upe = rpe ? ipe : ipe && ipe.withoutSetter || Wde, spe = function(x) {
	if (!$de(ope, x) || !npe && typeof ope[x] != "string") {
		var Be = "Symbol." + x;
		npe && $de(ipe, x) ? ope[x] = ipe[x] : ope[x] = rpe && ape ? ape(Be) : upe(Be);
	}
	return ope[x];
}, lpe = {};
lpe[spe("toStringTag")] = "z";
var cpe = String(lpe) === "[object z]", fpe = !tpe((function() {
	return Object.defineProperty({}, 1, { get: function() {
		return 7;
	} })[1] != 7;
})), dpe = function(x) {
	return typeof x == "object" ? x !== null : Gde(x);
}, ppe = Ade.document, hpe = dpe(ppe) && dpe(ppe.createElement), gpe = function(x) {
	return hpe ? ppe.createElement(x) : {};
}, vpe = !fpe && !tpe((function() {
	return Object.defineProperty(gpe("div"), "a", { get: function() {
		return 7;
	} }).a != 7;
})), ype = Ade.String, mpe = Ade.TypeError, bpe = function(x) {
	if (dpe(x)) return x;
	throw mpe(ype(x) + " is not an object");
}, wpe = Function.prototype.call, Epe = wpe.bind ? wpe.bind(wpe) : function() {
	return wpe.apply(wpe, arguments);
}, Dpe = Nde({}.isPrototypeOf), Spe = Ade.Object, xpe = rpe ? function(x) {
	return typeof x == "symbol";
} : function(x) {
	var Be = Kde("Symbol");
	return Gde(Be) && Dpe(Be.prototype, Spe(x));
}, Cpe = Ade.String, Ape = function(x) {
	try {
		return Cpe(x);
	} catch {
		return "Object";
	}
}, Ope = Ade.TypeError, kpe = function(x) {
	if (Gde(x)) return x;
	throw Ope(Ape(x) + " is not a function");
}, Bpe = function(x, Be) {
	var We = x[Be];
	return We == null ? void 0 : kpe(We);
}, Fpe = Ade.TypeError, Tpe = Ade.TypeError, _pe = spe("toPrimitive"), Ppe = function(x) {
	var Be = function(x, Be) {
		if (!dpe(x) || xpe(x)) return x;
		var We, St = Bpe(x, _pe);
		if (St) {
			if (Be === void 0 && (Be = "default"), We = Epe(St, x, Be), !dpe(We) || xpe(We)) return We;
			throw Tpe("Can't convert object to primitive value");
		}
		return Be === void 0 && (Be = "number"), function(x, Be) {
			var We, St;
			if (Be === "string" && Gde(We = x.toString) && !dpe(St = Epe(We, x)) || Gde(We = x.valueOf) && !dpe(St = Epe(We, x)) || Be !== "string" && Gde(We = x.toString) && !dpe(St = Epe(We, x))) return St;
			throw Fpe("Can't convert object to primitive value");
		}(x, Be);
	}(x, "string");
	return xpe(Be) ? Be : Be + "";
}, jpe = Ade.TypeError, Npe = Object.defineProperty, Ipe = { f: fpe ? Npe : function(x, Be, We) {
	if (bpe(x), Be = Ppe(Be), bpe(We), vpe) try {
		return Npe(x, Be, We);
	} catch {}
	if ("get" in We || "set" in We) throw jpe("Accessors not supported");
	return "value" in We && (x[Be] = We.value), x;
} }, Lpe = function(x, Be) {
	return {
		enumerable: !(1 & x),
		configurable: !(2 & x),
		writable: !(4 & x),
		value: Be
	};
}, Rpe = fpe ? function(x, Be, We) {
	return Ipe.f(x, Be, Lpe(1, We));
} : function(x, Be, We) {
	return x[Be] = We, x;
}, Mpe = Nde(Function.toString);
Gde(Bde.inspectSource) || (Bde.inspectSource = function(x) {
	return Mpe(x);
});
var zpe, $pe, Hpe, Vpe = Bde.inspectSource, Upe = Ade.WeakMap, Wpe = Gde(Upe) && /native code/.test(Vpe(Upe)), Gpe = Fde("keys"), qpe = function(x) {
	return Gpe[x] || (Gpe[x] = Wde(x));
}, Kpe = {}, Ype = Ade.TypeError, Xpe = Ade.WeakMap;
if (Wpe || Bde.state) {
	var Zpe = Bde.state ||= new Xpe(), Jpe = Nde(Zpe.get), Qpe = Nde(Zpe.has), ehe = Nde(Zpe.set);
	zpe = function(x, Be) {
		if (Qpe(Zpe, x)) throw new Ype("Object already initialized");
		return Be.facade = x, ehe(Zpe, x, Be), Be;
	}, $pe = function(x) {
		return Jpe(Zpe, x) || {};
	}, Hpe = function(x) {
		return Qpe(Zpe, x);
	};
} else {
	var the = qpe("state");
	Kpe[the] = !0, zpe = function(x, Be) {
		if ($de(x, the)) throw new Ype("Object already initialized");
		return Be.facade = x, Rpe(x, the, Be), Be;
	}, $pe = function(x) {
		return $de(x, the) ? x[the] : {};
	}, Hpe = function(x) {
		return $de(x, the);
	};
}
var nhe = {
	set: zpe,
	get: $pe,
	has: Hpe,
	enforce: function(x) {
		return Hpe(x) ? $pe(x) : zpe(x, {});
	},
	getterFor: function(x) {
		return function(Be) {
			var We;
			if (!dpe(Be) || (We = $pe(Be)).type !== x) throw Ype("Incompatible receiver, " + x + " required");
			return We;
		};
	}
}, rhe = Function.prototype, ohe = fpe && Object.getOwnPropertyDescriptor, ihe = $de(rhe, "name"), ahe = {
	EXISTS: ihe,
	PROPER: ihe && function() {}.name === "something",
	CONFIGURABLE: ihe && (!fpe || fpe && ohe(rhe, "name").configurable)
}, uhe = Dde((function(x) {
	var Be = ahe.CONFIGURABLE, We = nhe.get, St = nhe.enforce, Kn = String(String).split("String");
	(x.exports = function(x, We, _r, Li) {
		var fa, Vo = !!Li && !!Li.unsafe, Xo = !!Li && !!Li.enumerable, Tc = !!Li && !!Li.noTargetGet, Tl = Li && Li.name !== void 0 ? Li.name : We;
		Gde(_r) && (String(Tl).slice(0, 7) === "Symbol(" && (Tl = "[" + String(Tl).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!$de(_r, "name") || Be && _r.name !== Tl) && Rpe(_r, "name", Tl), (fa = St(_r)).source || (fa.source = Kn.join(typeof Tl == "string" ? Tl : ""))), x === Ade ? Xo ? x[We] = _r : kde(We, _r) : (Vo ? !Tc && x[We] && (Xo = !0) : delete x[We], Xo ? x[We] = _r : Rpe(x, We, _r));
	})(Function.prototype, "toString", (function() {
		return Gde(this) && We(this).source || Vpe(this);
	}));
})), she = Nde({}.toString), lhe = Nde("".slice), che = function(x) {
	return lhe(she(x), 8, -1);
}, fhe = spe("toStringTag"), dhe = Ade.Object, phe = che(function() {
	return arguments;
}()) == "Arguments", hhe = cpe ? che : function(x) {
	var Be, We, St;
	return x === void 0 ? "Undefined" : x === null ? "Null" : typeof (We = function(x, Be) {
		try {
			return x[Be];
		} catch {}
	}(Be = dhe(x), fhe)) == "string" ? We : phe ? che(Be) : (St = che(Be)) == "Object" && Gde(Be.callee) ? "Arguments" : St;
}, ghe = cpe ? {}.toString : function() {
	return "[object " + hhe(this) + "]";
};
cpe || uhe(Object.prototype, "toString", ghe, { unsafe: !0 });
var vhe, yhe = {
	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
}, mhe = gpe("span").classList, bhe = mhe && mhe.constructor && mhe.constructor.prototype, whe = bhe === Object.prototype ? void 0 : bhe, Ehe = Nde(Nde.bind), Dhe = Ade.Object, She = Nde("".split), xhe = tpe((function() {
	return !Dhe("z").propertyIsEnumerable(0);
})) ? function(x) {
	return che(x) == "String" ? She(x, "") : Dhe(x);
} : Dhe, Che = Math.ceil, Ahe = Math.floor, Ohe = function(x) {
	var Be = +x;
	return Be != Be || Be === 0 ? 0 : (Be > 0 ? Ahe : Che)(Be);
}, khe = Math.min, Bhe = function(x) {
	return x > 0 ? khe(Ohe(x), 9007199254740991) : 0;
}, Fhe = function(x) {
	return Bhe(x.length);
}, The = Array.isArray || function(x) {
	return che(x) == "Array";
}, _he = function() {}, Phe = [], jhe = Kde("Reflect", "construct"), Nhe = /^\s*(?:class|function)\b/, Ihe = Nde(Nhe.exec), Lhe = !Nhe.exec(_he), Rhe = function(x) {
	if (!Gde(x)) return !1;
	try {
		return jhe(_he, Phe, x), !0;
	} catch {
		return !1;
	}
}, Mhe = !jhe || tpe((function() {
	var x;
	return Rhe(Rhe.call) || !Rhe(Object) || !Rhe((function() {
		x = !0;
	})) || x;
})) ? function(x) {
	if (!Gde(x)) return !1;
	switch (hhe(x)) {
		case "AsyncFunction":
		case "GeneratorFunction":
		case "AsyncGeneratorFunction": return !1;
	}
	return Lhe || !!Ihe(Nhe, Vpe(x));
} : Rhe, zhe = spe("species"), $he = Ade.Array, Hhe = function(x, Be) {
	return new (function(x) {
		var Be;
		return The(x) && (Be = x.constructor, (Mhe(Be) && (Be === $he || The(Be.prototype)) || dpe(Be) && (Be = Be[zhe]) === null) && (Be = void 0)), Be === void 0 ? $he : Be;
	}(x))(Be === 0 ? 0 : Be);
}, Vhe = Nde([].push), Uhe = function(x) {
	var Be = x == 1, We = x == 2, St = x == 3, Kn = x == 4, _r = x == 6, Li = x == 7, fa = x == 5 || _r;
	return function(Vo, Xo, Tc, Tl) {
		for (var Al, Uu, Ff = Mde(Vo), Lm = xhe(Ff), Bm = function(x, Be) {
			return kpe(x), Be === void 0 ? x : Ehe ? Ehe(x, Be) : function() {
				return x.apply(Be, arguments);
			};
		}(Xo, Tc), x_ = Fhe(Lm), uy = 0, dx = Tl || Hhe, kx = Be ? dx(Vo, x_) : We || Li ? dx(Vo, 0) : void 0; x_ > uy; uy++) if ((fa || uy in Lm) && (Uu = Bm(Al = Lm[uy], uy, Ff), x)) if (Be) kx[uy] = Uu;
		else if (Uu) switch (x) {
			case 3: return !0;
			case 5: return Al;
			case 6: return uy;
			case 2: Vhe(kx, Al);
		}
		else switch (x) {
			case 4: return !1;
			case 7: Vhe(kx, Al);
		}
		return _r ? -1 : St || Kn ? Kn : kx;
	};
}, Whe = [
	Uhe(0),
	Uhe(1),
	Uhe(2),
	Uhe(3),
	Uhe(4),
	Uhe(5),
	Uhe(6),
	Uhe(7)
][0], Ghe = (vhe = [].forEach) && tpe((function() {
	vhe.call(null, (function() {
		throw 1;
	}), 1);
})) ? [].forEach : function(x) {
	return Whe(this, x, arguments.length > 1 ? arguments[1] : void 0);
}, qhe = function(x) {
	if (x && x.forEach !== Ghe) try {
		Rpe(x, "forEach", Ghe);
	} catch {
		x.forEach = Ghe;
	}
};
for (var Khe in yhe) yhe[Khe] && qhe(Ade[Khe] && Ade[Khe].prototype);
qhe(whe);
var Yhe = {}.propertyIsEnumerable, Xhe = Object.getOwnPropertyDescriptor, Zhe = { f: Xhe && !Yhe.call({ 1: 2 }, 1) ? function(x) {
	var Be = Xhe(this, x);
	return !!Be && Be.enumerable;
} : Yhe }, Jhe = function(x) {
	return xhe(Lde(x));
}, Qhe = Object.getOwnPropertyDescriptor, ege = { f: fpe ? Qhe : function(x, Be) {
	if (x = Jhe(x), Be = Ppe(Be), vpe) try {
		return Qhe(x, Be);
	} catch {}
	if ($de(x, Be)) return Lpe(!Epe(Zhe.f, x, Be), x[Be]);
} }, tge = Math.max, nge = Math.min, rge = function(x, Be) {
	var We = Ohe(x);
	return We < 0 ? tge(We + Be, 0) : nge(We, Be);
}, ige = function(x) {
	return function(Be, We, St) {
		var Kn, _r = Jhe(Be), Li = Fhe(_r), fa = rge(St, Li);
		if (x && We != We) {
			for (; Li > fa;) if ((Kn = _r[fa++]) != Kn) return !0;
		} else for (; Li > fa; fa++) if ((x || fa in _r) && _r[fa] === We) return x || fa || 0;
		return !x && -1;
	};
}(!1), age = Nde([].push), uge = function(x, Be) {
	var We, St = Jhe(x), Kn = 0, _r = [];
	for (We in St) !$de(Kpe, We) && $de(St, We) && age(_r, We);
	for (; Be.length > Kn;) $de(St, We = Be[Kn++]) && (~ige(_r, We) || age(_r, We));
	return _r;
}, sge = [
	"constructor",
	"hasOwnProperty",
	"isPrototypeOf",
	"propertyIsEnumerable",
	"toLocaleString",
	"toString",
	"valueOf"
], lge = sge.concat("length", "prototype"), cge = { f: Object.getOwnPropertyNames || function(x) {
	return uge(x, lge);
} }, fge = { f: Object.getOwnPropertySymbols }, dge = Nde([].concat), pge = Kde("Reflect", "ownKeys") || function(x) {
	var Be = cge.f(bpe(x)), We = fge.f;
	return We ? dge(Be, We(x)) : Be;
}, hge = function(x, Be) {
	for (var We = pge(Be), St = Ipe.f, Kn = ege.f, _r = 0; _r < We.length; _r++) {
		var Li = We[_r];
		$de(x, Li) || St(x, Li, Kn(Be, Li));
	}
}, gge = /#|\.prototype\./, vge = function(x, Be) {
	var We = mge[yge(x)];
	return We == wge || We != bge && (Gde(Be) ? tpe(Be) : !!Be);
}, yge = vge.normalize = function(x) {
	return String(x).replace(gge, ".").toLowerCase();
}, mge = vge.data = {}, bge = vge.NATIVE = "N", wge = vge.POLYFILL = "P", Ege = vge, Dge = ege.f, Sge = function(x, Be) {
	var We, St, Kn, _r, Li, fa = x.target, Vo = x.global, Xo = x.stat;
	if (We = Vo ? Ade : Xo ? Ade[fa] || kde(fa, {}) : (Ade[fa] || {}).prototype) for (St in Be) {
		if (_r = Be[St], Kn = x.noTargetGet ? (Li = Dge(We, St)) && Li.value : We[St], !Ege(Vo ? St : fa + (Xo ? "." : "#") + St, x.forced) && Kn !== void 0) {
			if (typeof _r == typeof Kn) continue;
			hge(_r, Kn);
		}
		(x.sham || Kn && Kn.sham) && Rpe(_r, "sham", !0), uhe(We, St, _r, x);
	}
}, xge = Object.keys || function(x) {
	return uge(x, sge);
}, Cge = Object.assign, Age = Object.defineProperty, Oge = Nde([].concat), kge = !Cge || tpe((function() {
	if (fpe && Cge({ b: 1 }, Cge(Age({}, "a", {
		enumerable: !0,
		get: function() {
			Age(this, "b", {
				value: 3,
				enumerable: !1
			});
		}
	}), { b: 2 })).b !== 1) return !0;
	var x = {}, Be = {}, We = Symbol(), St = "abcdefghijklmnopqrst";
	return x[We] = 7, St.split("").forEach((function(x) {
		Be[x] = x;
	})), Cge({}, x)[We] != 7 || xge(Cge({}, Be)).join("") != St;
})) ? function(x, Be) {
	for (var We = Mde(x), St = arguments.length, Kn = 1, _r = fge.f, Li = Zhe.f; St > Kn;) for (var fa, Vo = xhe(arguments[Kn++]), Xo = _r ? Oge(xge(Vo), _r(Vo)) : xge(Vo), Tc = Xo.length, Tl = 0; Tc > Tl;) fa = Xo[Tl++], fpe && !Epe(Li, Vo, fa) || (We[fa] = Vo[fa]);
	return We;
} : Cge;
Sge({
	target: "Object",
	stat: !0,
	forced: Object.assign !== kge
}, { assign: kge });
var Bge = Dde((function(x) {
	var Be = function(x) {
		var Be = /\blang(?:uage)?-([\w-]+)\b/i, We = 0, St = {}, Kn = {
			manual: x.Prism && x.Prism.manual,
			disableWorkerMessageHandler: x.Prism && x.Prism.disableWorkerMessageHandler,
			util: {
				encode: function x(Be) {
					return Be instanceof _r ? new _r(Be.type, x(Be.content), Be.alias) : Array.isArray(Be) ? Be.map(x) : Be.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
				},
				type: function(x) {
					return Object.prototype.toString.call(x).slice(8, -1);
				},
				objId: function(x) {
					return x.__id || Object.defineProperty(x, "__id", { value: ++We }), x.__id;
				},
				clone: function x(Be, We) {
					var St, _r;
					switch (We ||= {}, Kn.util.type(Be)) {
						case "Object":
							if (_r = Kn.util.objId(Be), We[_r]) return We[_r];
							for (var Li in St = {}, We[_r] = St, Be) Be.hasOwnProperty(Li) && (St[Li] = x(Be[Li], We));
							return St;
						case "Array": return _r = Kn.util.objId(Be), We[_r] ? We[_r] : (St = [], We[_r] = St, Be.forEach((function(Be, Kn) {
							St[Kn] = x(Be, We);
						})), St);
						default: return Be;
					}
				},
				getLanguage: function(x) {
					for (; x && !Be.test(x.className);) x = x.parentElement;
					return x ? (x.className.match(Be) || [, "none"])[1].toLowerCase() : "none";
				},
				currentScript: function() {
					if (typeof document > "u") return null;
					if ("currentScript" in document) return document.currentScript;
					try {
						throw Error();
					} catch (St) {
						var x = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(St.stack) || [])[1];
						if (x) {
							var Be = document.getElementsByTagName("script");
							for (var We in Be) if (Be[We].src == x) return Be[We];
						}
						return null;
					}
				},
				isActive: function(x, Be, We) {
					for (var St = "no-" + Be; x;) {
						var Kn = x.classList;
						if (Kn.contains(Be)) return !0;
						if (Kn.contains(St)) return !1;
						x = x.parentElement;
					}
					return !!We;
				}
			},
			languages: {
				plain: St,
				plaintext: St,
				text: St,
				txt: St,
				extend: function(x, Be) {
					var We = Kn.util.clone(Kn.languages[x]);
					for (var St in Be) We[St] = Be[St];
					return We;
				},
				insertBefore: function(x, Be, We, St) {
					var _r = (St ||= Kn.languages)[x], Li = {};
					for (var fa in _r) if (_r.hasOwnProperty(fa)) {
						if (fa == Be) for (var Vo in We) We.hasOwnProperty(Vo) && (Li[Vo] = We[Vo]);
						We.hasOwnProperty(fa) || (Li[fa] = _r[fa]);
					}
					var Xo = St[x];
					return St[x] = Li, Kn.languages.DFS(Kn.languages, (function(Be, We) {
						We === Xo && Be != x && (this[Be] = Li);
					})), Li;
				},
				DFS: function x(Be, We, St, _r) {
					_r ||= {};
					var Li = Kn.util.objId;
					for (var fa in Be) if (Be.hasOwnProperty(fa)) {
						We.call(Be, fa, Be[fa], St || fa);
						var Vo = Be[fa], Xo = Kn.util.type(Vo);
						Xo !== "Object" || _r[Li(Vo)] ? Xo !== "Array" || _r[Li(Vo)] || (_r[Li(Vo)] = !0, x(Vo, We, fa, _r)) : (_r[Li(Vo)] = !0, x(Vo, We, null, _r));
					}
				}
			},
			plugins: {},
			highlightAll: function(x, Be) {
				Kn.highlightAllUnder(document, x, Be);
			},
			highlightAllUnder: function(x, Be, We) {
				var St = {
					callback: We,
					container: x,
					selector: "code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code"
				};
				Kn.hooks.run("before-highlightall", St), St.elements = Array.prototype.slice.apply(St.container.querySelectorAll(St.selector)), Kn.hooks.run("before-all-elements-highlight", St);
				for (var _r, Li = 0; _r = St.elements[Li++];) Kn.highlightElement(_r, !0 === Be, St.callback);
			},
			highlightElement: function(We, St, _r) {
				var Li = Kn.util.getLanguage(We), fa = Kn.languages[Li];
				We.className = We.className.replace(Be, "").replace(/\s+/g, " ") + " language-" + Li;
				var Vo = We.parentElement;
				Vo && Vo.nodeName.toLowerCase() === "pre" && (Vo.className = Vo.className.replace(Be, "").replace(/\s+/g, " ") + " language-" + Li);
				var Xo = {
					element: We,
					language: Li,
					grammar: fa,
					code: We.textContent
				};
				function Tc(x) {
					Xo.highlightedCode = x, Kn.hooks.run("before-insert", Xo), Xo.element.innerHTML = Xo.highlightedCode, Kn.hooks.run("after-highlight", Xo), Kn.hooks.run("complete", Xo), _r && _r.call(Xo.element);
				}
				if (Kn.hooks.run("before-sanity-check", Xo), (Vo = Xo.element.parentElement) && Vo.nodeName.toLowerCase() === "pre" && !Vo.hasAttribute("tabindex") && Vo.setAttribute("tabindex", "0"), !Xo.code) return Kn.hooks.run("complete", Xo), void (_r && _r.call(Xo.element));
				if (Kn.hooks.run("before-highlight", Xo), Xo.grammar) if (St && x.Worker) {
					var Tl = new Worker(Kn.filename);
					Tl.onmessage = function(x) {
						Tc(x.data);
					}, Tl.postMessage(JSON.stringify({
						language: Xo.language,
						code: Xo.code,
						immediateClose: !0
					}));
				} else Tc(Kn.highlight(Xo.code, Xo.grammar, Xo.language));
				else Tc(Kn.util.encode(Xo.code));
			},
			highlight: function(x, Be, We) {
				var St = {
					code: x,
					grammar: Be,
					language: We
				};
				return Kn.hooks.run("before-tokenize", St), St.tokens = Kn.tokenize(St.code, St.grammar), Kn.hooks.run("after-tokenize", St), _r.stringify(Kn.util.encode(St.tokens), St.language);
			},
			tokenize: function(x, Be) {
				var We = Be.rest;
				if (We) {
					for (var St in We) Be[St] = We[St];
					delete Be.rest;
				}
				var Kn = new Vo();
				return Xo(Kn, Kn.head, x), fa(x, Kn, Be, Kn.head, 0), function(x) {
					for (var Be = [], We = x.head.next; We !== x.tail;) Be.push(We.value), We = We.next;
					return Be;
				}(Kn);
			},
			hooks: {
				all: {},
				add: function(x, Be) {
					var We = Kn.hooks.all;
					We[x] = We[x] || [], We[x].push(Be);
				},
				run: function(x, Be) {
					var We = Kn.hooks.all[x];
					if (We && We.length) for (var St, _r = 0; St = We[_r++];) St(Be);
				}
			},
			Token: _r
		};
		function _r(x, Be, We, St) {
			this.type = x, this.content = Be, this.alias = We, this.length = 0 | (St || "").length;
		}
		function Li(x, Be, We, St) {
			x.lastIndex = Be;
			var Kn = x.exec(We);
			if (Kn && St && Kn[1]) {
				var _r = Kn[1].length;
				Kn.index += _r, Kn[0] = Kn[0].slice(_r);
			}
			return Kn;
		}
		function fa(x, Be, We, St, Vo, Tl) {
			for (var Al in We) if (We.hasOwnProperty(Al) && We[Al]) {
				var Uu = We[Al];
				Uu = Array.isArray(Uu) ? Uu : [Uu];
				for (var Ff = 0; Ff < Uu.length; ++Ff) {
					if (Tl && Tl.cause == Al + "," + Ff) return;
					var Lm = Uu[Ff], Bm = Lm.inside, x_ = !!Lm.lookbehind, uy = !!Lm.greedy, dx = Lm.alias;
					if (uy && !Lm.pattern.global) {
						var kx = Lm.pattern.toString().match(/[imsuy]*$/)[0];
						Lm.pattern = RegExp(Lm.pattern.source, kx + "g");
					}
					for (var eC = Lm.pattern || Lm, uC = St.next, _T = Vo; uC !== Be.tail && !(Tl && _T >= Tl.reach); _T += uC.value.length, uC = uC.next) {
						var ID = uC.value;
						if (Be.length > x.length) return;
						if (!(ID instanceof _r)) {
							var ok, ij = 1;
							if (uy) {
								if (!(ok = Li(eC, _T, x, x_))) break;
								var Dj = ok.index, LP = ok.index + ok[0].length, zP = _T;
								for (zP += uC.value.length; Dj >= zP;) zP += (uC = uC.next).value.length;
								if (_T = zP -= uC.value.length, uC.value instanceof _r) continue;
								for (var $P = uC; $P !== Be.tail && (zP < LP || typeof $P.value == "string"); $P = $P.next) ij++, zP += $P.value.length;
								ij--, ID = x.slice(_T, zP), ok.index -= _T;
							} else if (!(ok = Li(eC, 0, ID, x_))) continue;
							Dj = ok.index;
							var CF = ok[0], VF = ID.slice(0, Dj), nR = ID.slice(Dj + CF.length), tH = _T + ID.length;
							Tl && tH > Tl.reach && (Tl.reach = tH);
							var MH = uC.prev;
							if (VF && (MH = Xo(Be, MH, VF), _T += VF.length), Tc(Be, MH, ij), uC = Xo(Be, MH, new _r(Al, Bm ? Kn.tokenize(CF, Bm) : CF, dx, CF)), nR && Xo(Be, uC, nR), ij > 1) {
								var vG = {
									cause: Al + "," + Ff,
									reach: tH
								};
								fa(x, Be, We, uC.prev, _T, vG), Tl && vG.reach > Tl.reach && (Tl.reach = vG.reach);
							}
						}
					}
				}
			}
		}
		function Vo() {
			var x = {
				value: null,
				prev: null,
				next: null
			}, Be = {
				value: null,
				prev: x,
				next: null
			};
			x.next = Be, this.head = x, this.tail = Be, this.length = 0;
		}
		function Xo(x, Be, We) {
			var St = Be.next, Kn = {
				value: We,
				prev: Be,
				next: St
			};
			return Be.next = Kn, St.prev = Kn, x.length++, Kn;
		}
		function Tc(x, Be, We) {
			for (var St = Be.next, Kn = 0; Kn < We && St !== x.tail; Kn++) St = St.next;
			Be.next = St, St.prev = Be, x.length -= Kn;
		}
		if (x.Prism = Kn, _r.stringify = function x(Be, We) {
			if (typeof Be == "string") return Be;
			if (Array.isArray(Be)) {
				var St = "";
				return Be.forEach((function(Be) {
					St += x(Be, We);
				})), St;
			}
			var _r = {
				type: Be.type,
				content: x(Be.content, We),
				tag: "span",
				classes: ["token", Be.type],
				attributes: {},
				language: We
			}, Li = Be.alias;
			Li && (Array.isArray(Li) ? Array.prototype.push.apply(_r.classes, Li) : _r.classes.push(Li)), Kn.hooks.run("wrap", _r);
			var fa = "";
			for (var Vo in _r.attributes) fa += " " + Vo + "=\"" + (_r.attributes[Vo] || "").replace(/"/g, "&quot;") + "\"";
			return "<" + _r.tag + " class=\"" + _r.classes.join(" ") + "\"" + fa + ">" + _r.content + "</" + _r.tag + ">";
		}, !x.document) return x.addEventListener && (Kn.disableWorkerMessageHandler || x.addEventListener("message", (function(Be) {
			var We = JSON.parse(Be.data), St = We.language, _r = We.code, Li = We.immediateClose;
			x.postMessage(Kn.highlight(_r, Kn.languages[St], St)), Li && x.close();
		}), !1)), Kn;
		var Tl = Kn.util.currentScript();
		function Al() {
			Kn.manual || Kn.highlightAll();
		}
		if (Tl && (Kn.filename = Tl.src, Tl.hasAttribute("data-manual") && (Kn.manual = !0)), !Kn.manual) {
			var Uu = document.readyState;
			Uu === "loading" || Uu === "interactive" && Tl && Tl.defer ? document.addEventListener("DOMContentLoaded", Al) : window.requestAnimationFrame ? window.requestAnimationFrame(Al) : window.setTimeout(Al, 16);
		}
		return Kn;
	}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
	/**
	* Prism: Lightweight, robust, elegant syntax highlighting
	*
	* @license MIT <https://opensource.org/licenses/MIT>
	* @author Lea Verou <https://lea.verou.me>
	* @namespace
	* @public
	*/ x.exports &&= Be, Ede !== void 0 && (Ede.Prism = Be), Be.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]
	}, Be.languages.markup.tag.inside["attr-value"].inside.entity = Be.languages.markup.entity, Be.languages.markup.doctype.inside["internal-subset"].inside = Be.languages.markup, Be.hooks.add("wrap", (function(x) {
		x.type === "entity" && (x.attributes.title = x.content.replace(/&amp;/, "&"));
	})), Object.defineProperty(Be.languages.markup.tag, "addInlined", { value: function(x, We) {
		var St = {};
		St["language-" + We] = {
			pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
			lookbehind: !0,
			inside: Be.languages[We]
		}, St.cdata = /^<!\[CDATA\[|\]\]>$/i;
		var Kn = { "included-cdata": {
			pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
			inside: St
		} };
		Kn["language-" + We] = {
			pattern: /[\s\S]+/,
			inside: Be.languages[We]
		};
		var _r = {};
		_r[x] = {
			pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, (function() {
				return x;
			})), "i"),
			lookbehind: !0,
			greedy: !0,
			inside: Kn
		}, Be.languages.insertBefore("markup", "cdata", _r);
	} }), Object.defineProperty(Be.languages.markup.tag, "addAttribute", { value: function(x, We) {
		Be.languages.markup.tag.inside["special-attr"].push({
			pattern: RegExp("(^|[\"'\\s])(?:" + x + ")\\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: [We, "language-" + We],
							inside: Be.languages[We]
						},
						punctuation: [{
							pattern: /^=/,
							alias: "attr-equals"
						}, /"|'/]
					}
				}
			}
		});
	} }), Be.languages.html = Be.languages.markup, Be.languages.mathml = Be.languages.markup, Be.languages.svg = Be.languages.markup, Be.languages.xml = Be.languages.extend("markup", {}), Be.languages.ssml = Be.languages.xml, Be.languages.atom = Be.languages.xml, Be.languages.rss = Be.languages.xml, function(x) {
		var Be = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
		x.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\\((?:" + Be.source + "|(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*)\\)", "i"),
				greedy: !0,
				inside: {
					function: /^url/i,
					punctuation: /^\(|\)$/,
					string: {
						pattern: RegExp("^" + Be.source + "$"),
						alias: "url"
					}
				}
			},
			selector: {
				pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + Be.source + ")*(?=\\s*\\{)"),
				lookbehind: !0
			},
			string: {
				pattern: Be,
				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: /[(){};:,]/
		}, x.languages.css.atrule.inside.rest = x.languages.css;
		var We = x.languages.markup;
		We && (We.tag.addInlined("style", "css"), We.tag.addAttribute("style", "css"));
	}(Be), Be.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: /[{}[\];(),.:]/
	}, Be.languages.javascript = Be.languages.extend("clike", {
		"class-name": [Be.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}|\?\?=?|\?\.?|[~:]/
	}), Be.languages.javascript["class-name"][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/, Be.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: Be.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: Be.languages.javascript
			},
			{
				pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
				lookbehind: !0,
				inside: Be.languages.javascript
			},
			{
				pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
				lookbehind: !0,
				inside: Be.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: Be.languages.javascript
			}
		],
		constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
	}), Be.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: Be.languages.javascript
					}
				},
				string: /[\s\S]+/
			}
		}
	}), Be.languages.markup && (Be.languages.markup.tag.addInlined("script", "javascript"), Be.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")), Be.languages.js = Be.languages.javascript, function() {
		if (Be !== void 0 && typeof document < "u") {
			Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
			var x = {
				js: "javascript",
				py: "python",
				rb: "ruby",
				ps1: "powershell",
				psm1: "powershell",
				sh: "bash",
				bat: "batch",
				h: "c",
				tex: "latex"
			}, We = "data-src-status", St = "pre[data-src]:not([data-src-status=\"loaded\"]):not([data-src-status=\"loading\"])", Kn = /\blang(?:uage)?-([\w-]+)\b/i;
			Be.hooks.add("before-highlightall", (function(x) {
				x.selector += ", " + St;
			})), Be.hooks.add("before-sanity-check", (function(Kn) {
				var _r = Kn.element;
				if (_r.matches(St)) {
					Kn.code = "", _r.setAttribute(We, "loading");
					var fa = _r.appendChild(document.createElement("CODE"));
					fa.textContent = "Loading…";
					var Vo = _r.getAttribute("data-src"), Xo = Kn.language;
					if (Xo === "none") {
						var Tc = (/\.(\w+)$/.exec(Vo) || [, "none"])[1];
						Xo = x[Tc] || Tc;
					}
					Li(fa, Xo), Li(_r, Xo);
					var Tl = Be.plugins.autoloader;
					Tl && Tl.loadLanguages(Xo);
					var Al = new XMLHttpRequest();
					Al.open("GET", Vo, !0), Al.onreadystatechange = function() {
						Al.readyState == 4 && (Al.status < 400 && Al.responseText ? (_r.setAttribute(We, "loaded"), fa.textContent = Al.responseText, Be.highlightElement(fa)) : (_r.setAttribute(We, "failed"), Al.status >= 400 ? fa.textContent = "✖ Error " + Al.status + " while fetching file: " + Al.statusText : fa.textContent = "✖ Error: File does not exist or is empty"));
					}, Al.send(null);
				}
			})), Be.plugins.fileHighlight = { highlight: function(x) {
				for (var We, Kn = (x || document).querySelectorAll(St), _r = 0; We = Kn[_r++];) Be.highlightElement(We);
			} };
			var _r = !1;
			Be.fileHighlight = function() {
				_r ||= (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), !0), Be.plugins.fileHighlight.highlight.apply(this, arguments);
			};
		}
		function Li(x, Be) {
			var We = x.className;
			We = We.replace(Kn, " ") + " language-" + Be, x.className = We.replace(/\s+/g, " ").trim();
		}
	}();
}));
(function(x) {
	var Be = x.util.clone(x.languages.javascript), We = "(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)", St = "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})", Kn = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";
	function _r(x, Be) {
		return x = x.replace(/<S>/g, (function() {
			return We;
		})).replace(/<BRACES>/g, (function() {
			return St;
		})).replace(/<SPREAD>/g, (function() {
			return Kn;
		})), RegExp(x, Be);
	}
	Kn = _r(Kn).source, x.languages.jsx = x.languages.extend("markup", Be), x.languages.jsx.tag.pattern = _r("<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>"), x.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/i, x.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i, x.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, x.languages.jsx.tag.inside.comment = Be.comment, x.languages.insertBefore("inside", "attr-name", { spread: {
		pattern: _r("<SPREAD>"),
		inside: x.languages.jsx
	} }, x.languages.jsx.tag), x.languages.insertBefore("inside", "special-attr", { script: {
		pattern: _r("=<BRACES>"),
		inside: {
			"script-punctuation": {
				pattern: /^=(?=\{)/,
				alias: "punctuation"
			},
			rest: x.languages.jsx
		},
		alias: "language-javascript"
	} }, x.languages.jsx.tag);
	var Li = function(x) {
		return x ? typeof x == "string" ? x : typeof x.content == "string" ? x.content : x.content.map(Li).join("") : "";
	}, fa = function(Be) {
		for (var We = [], St = 0; St < Be.length; St++) {
			var Kn = Be[St], _r = !1;
			if (typeof Kn != "string" && (Kn.type === "tag" && Kn.content[0] && Kn.content[0].type === "tag" ? Kn.content[0].content[0].content === "</" ? We.length > 0 && We[We.length - 1].tagName === Li(Kn.content[0].content[1]) && We.pop() : Kn.content[Kn.content.length - 1].content === "/>" || We.push({
				tagName: Li(Kn.content[0].content[1]),
				openedBraces: 0
			}) : We.length > 0 && Kn.type === "punctuation" && Kn.content === "{" ? We[We.length - 1].openedBraces++ : We.length > 0 && We[We.length - 1].openedBraces > 0 && Kn.type === "punctuation" && Kn.content === "}" ? We[We.length - 1].openedBraces-- : _r = !0), (_r || typeof Kn == "string") && We.length > 0 && We[We.length - 1].openedBraces === 0) {
				var Vo = Li(Kn);
				St < Be.length - 1 && (typeof Be[St + 1] == "string" || Be[St + 1].type === "plain-text") && (Vo += Li(Be[St + 1]), Be.splice(St + 1, 1)), St > 0 && (typeof Be[St - 1] == "string" || Be[St - 1].type === "plain-text") && (Vo = Li(Be[St - 1]) + Vo, Be.splice(St - 1, 1), St--), Be[St] = new x.Token("plain-text", Vo, null, Vo);
			}
			Kn.content && typeof Kn.content != "string" && fa(Kn.content);
		}
	};
	x.hooks.add("after-tokenize", (function(x) {
		x.language !== "jsx" && x.language !== "tsx" || fa(x.tokens);
	}));
})(Prism), function(x) {
	x.languages.typescript = x.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/
	}), x.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 x.languages.typescript.parameter;
	var Be = x.languages.extend("typescript", {});
	delete Be["class-name"], x.languages.typescript["class-name"].inside = Be, x.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: Be
				}
			}
		}
	}), x.languages.ts = x.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(x) {
	x.type === "entity" && (x.attributes.title = x.content.replace(/&amp;/, "&"));
})), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { value: function(x, Be) {
	var We = {};
	We["language-" + Be] = {
		pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
		lookbehind: !0,
		inside: Prism.languages[Be]
	}, We.cdata = /^<!\[CDATA\[|\]\]>$/i;
	var St = { "included-cdata": {
		pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
		inside: We
	} };
	St["language-" + Be] = {
		pattern: /[\s\S]+/,
		inside: Prism.languages[Be]
	};
	var Kn = {};
	Kn[x] = {
		pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, (function() {
			return x;
		})), "i"),
		lookbehind: !0,
		greedy: !0,
		inside: St
	}, Prism.languages.insertBefore("markup", "cdata", Kn);
} }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { value: function(x, Be) {
	Prism.languages.markup.tag.inside["special-attr"].push({
		pattern: RegExp("(^|[\"'\\s])(?:" + x + ")\\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: [Be, "language-" + Be],
						inside: Prism.languages[Be]
					},
					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(x) {
	var Be = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, We = [
		{
			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*\()/
	], St = /\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, Kn = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/, _r = /[{}\[\](),:;]/;
	x.languages.php = {
		delimiter: {
			pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
			alias: "important"
		},
		comment: Be,
		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: We,
		function: {
			pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
			lookbehind: !0,
			inside: { punctuation: /\\/ }
		},
		property: {
			pattern: /(->\s*)\w+/,
			lookbehind: !0
		},
		number: St,
		operator: Kn,
		punctuation: _r
	};
	var Li = {
		pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
		lookbehind: !0,
		inside: x.languages.php
	}, fa = [
		{
			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: Li
			}
		},
		{
			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: Li }
		}
	];
	x.languages.insertBefore("php", "variable", {
		string: fa,
		attribute: {
			pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
			greedy: !0,
			inside: {
				"attribute-content": {
					pattern: /^(#\[)[\s\S]+(?=\]$)/,
					lookbehind: !0,
					inside: {
						comment: Be,
						string: fa,
						"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: We,
						number: St,
						operator: Kn,
						punctuation: _r
					}
				},
				delimiter: {
					pattern: /^#\[|\]$/,
					alias: "punctuation"
				}
			}
		}
	}), x.hooks.add("before-tokenize", (function(Be) {
		/<\?/.test(Be.code) && x.languages["markup-templating"].buildPlaceholders(Be, "php", /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi);
	})), x.hooks.add("after-tokenize", (function(Be) {
		x.languages["markup-templating"].tokenizePlaceholders(Be, "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(x) {
	var Be = /\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/, We = "(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", St = {
		pattern: RegExp(We + "[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: /\./
		}
	};
	x.languages.java = x.languages.extend("clike", {
		"class-name": [St, {
			pattern: RegExp(We + "[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])"),
			lookbehind: !0,
			inside: St.inside
		}],
		keyword: Be,
		function: [x.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
		}
	}), x.languages.insertBefore("java", "string", { "triple-quoted-string": {
		pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
		greedy: !0,
		alias: "string"
	} }), x.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": St,
				keyword: Be,
				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 Be.source;
			}))),
			lookbehind: !0,
			inside: { punctuation: /\./ }
		}
	});
}(Prism), function(x) {
	var Be = /\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/, We = "\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b".replace(/<keyword>/g, (function() {
		return Be.source;
	}));
	x.languages.cpp = x.languages.extend("c", {
		"class-name": [
			{
				pattern: RegExp("(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+".replace(/<keyword>/g, (function() {
					return Be.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: Be,
		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/
	}), x.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 We;
			})) + ")"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				string: /^[<"][\s\S]+/,
				operator: /:/,
				punctuation: /\./
			}
		},
		"raw-string": {
			pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
			alias: "string",
			greedy: !0
		}
	}), x.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: x.languages.cpp
			}
		}
	} }), x.languages.insertBefore("cpp", "operator", { "double-colon": {
		pattern: /::/,
		alias: "punctuation"
	} }), x.languages.insertBefore("cpp", "class-name", { "base-clause": {
		pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
		lookbehind: !0,
		greedy: !0,
		inside: x.languages.extend("cpp", {})
	} }), x.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, x.languages.cpp["base-clause"]);
}(Prism), function(x) {
	function Be(x, Be) {
		return x.replace(/<<(\d+)>>/g, (function(x, We) {
			return "(?:" + Be[+We] + ")";
		}));
	}
	function We(x, We, St) {
		return RegExp(Be(x, We), St || "");
	}
	function St(x, Be) {
		for (var We = 0; We < Be; We++) x = x.replace(/<<self>>/g, (function() {
			return "(?:" + x + ")";
		}));
		return x.replace(/<<self>>/g, "[^\\s\\S]");
	}
	var Kn = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void", _r = "class enum interface record struct", Li = "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*{)", fa = "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 Vo(x) {
		return "\\b(?:" + x.trim().replace(/ /g, "|") + ")\\b";
	}
	var Xo = Vo(_r), Tc = RegExp(Vo(Kn + " " + _r + " " + Li + " " + fa)), Tl = Vo(_r + " " + Li + " " + fa), Al = Vo(Kn + " " + _r + " " + fa), Uu = St("<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>", 2), Ff = St("\\((?:[^()]|<<self>>)*\\)", 2), Lm = "@?\\b[A-Za-z_]\\w*\\b", Bm = Be("<<0>>(?:\\s*<<1>>)?", [Lm, Uu]), x_ = Be("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*", [Tl, Bm]), uy = "\\[\\s*(?:,\\s*)*\\]", dx = Be("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?", [x_, uy]), kx = Be("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?", [
		Be("\\(<<0>>+(?:,<<0>>+)+\\)", [Be("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>", [
			Uu,
			Ff,
			uy
		])]),
		x_,
		uy
	]), eC = {
		keyword: Tc,
		punctuation: /[<>()?,.:[\]]/
	}, uC = "'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'", _T = "\"(?:\\\\.|[^\\\\\"\\r\\n])*\"", ID = "@\"(?:\"\"|\\\\[\\s\\S]|[^\\\\\"])*\"(?!\")";
	x.languages.csharp = x.languages.extend("clike", {
		string: [
			{
				pattern: We("(^|[^$\\\\])<<0>>", [ID]),
				lookbehind: !0,
				greedy: !0
			},
			{
				pattern: We("(^|[^@$\\\\])<<0>>", [_T]),
				lookbehind: !0,
				greedy: !0
			},
			{
				pattern: RegExp(uC),
				greedy: !0,
				alias: "character"
			}
		],
		"class-name": [
			{
				pattern: We("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)", [x_]),
				lookbehind: !0,
				inside: eC
			},
			{
				pattern: We("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)", [Lm, kx]),
				lookbehind: !0,
				inside: eC
			},
			{
				pattern: We("(\\busing\\s+)<<0>>(?=\\s*=)", [Lm]),
				lookbehind: !0
			},
			{
				pattern: We("(\\b<<0>>\\s+)<<1>>", [Xo, Bm]),
				lookbehind: !0,
				inside: eC
			},
			{
				pattern: We("(\\bcatch\\s*\\(\\s*)<<0>>", [x_]),
				lookbehind: !0,
				inside: eC
			},
			{
				pattern: We("(\\bwhere\\s+)<<0>>", [Lm]),
				lookbehind: !0
			},
			{
				pattern: We("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>", [dx]),
				lookbehind: !0,
				inside: eC
			},
			{
				pattern: We("\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))", [
					kx,
					Al,
					Lm
				]),
				inside: eC
			}
		],
		keyword: Tc,
		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: /\?\.?|::|[{}[\];(),.:]/
	}), x.languages.insertBefore("csharp", "number", { range: {
		pattern: /\.\./,
		alias: "operator"
	} }), x.languages.insertBefore("csharp", "punctuation", { "named-parameter": {
		pattern: We("([(,]\\s*)<<0>>(?=\\s*:)", [Lm]),
		lookbehind: !0,
		alias: "punctuation"
	} }), x.languages.insertBefore("csharp", "class-name", {
		namespace: {
			pattern: We("(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])", [Lm]),
			lookbehind: !0,
			inside: { punctuation: /\./ }
		},
		"type-expression": {
			pattern: We("(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))", [Ff]),
			lookbehind: !0,
			alias: "class-name",
			inside: eC
		},
		"return-type": {
			pattern: We("<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [kx, x_]),
			inside: eC,
			alias: "class-name"
		},
		"constructor-invocation": {
			pattern: We("(\\bnew\\s+)<<0>>(?=\\s*[[({])", [kx]),
			lookbehind: !0,
			inside: eC,
			alias: "class-name"
		},
		"generic-method": {
			pattern: We("<<0>>\\s*<<1>>(?=\\s*\\()", [Lm, Uu]),
			inside: {
				function: We("^<<0>>", [Lm]),
				generic: {
					pattern: RegExp(Uu),
					alias: "class-name",
					inside: eC
				}
			}
		},
		"type-list": {
			pattern: We("\\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|[{;]|=>|$))", [
				Xo,
				Bm,
				Lm,
				kx,
				Tc.source,
				Ff,
				"\\bnew\\s*\\(\\s*\\)"
			]),
			lookbehind: !0,
			inside: {
				"record-arguments": {
					pattern: We("(^(?!new\\s*\\()<<0>>\\s*)<<1>>", [Bm, Ff]),
					lookbehind: !0,
					greedy: !0,
					inside: x.languages.csharp
				},
				keyword: Tc,
				"class-name": {
					pattern: RegExp(kx),
					greedy: !0,
					inside: eC
				},
				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 ok = _T + "|" + uC, ij = Be("\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>", [ok]), Dj = St(Be("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [ij]), 2), LP = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", zP = Be("<<0>>(?:\\s*\\(<<1>>*\\))?", [x_, Dj]);
	x.languages.insertBefore("csharp", "class-name", { attribute: {
		pattern: We("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])", [LP, zP]),
		lookbehind: !0,
		greedy: !0,
		inside: {
			target: {
				pattern: We("^<<0>>(?=\\s*:)", [LP]),
				alias: "keyword"
			},
			"attribute-arguments": {
				pattern: We("\\(<<0>>*\\)", [Dj]),
				inside: x.languages.csharp
			},
			"class-name": {
				pattern: RegExp(x_),
				inside: { punctuation: /\./ }
			},
			punctuation: /[:,]/
		}
	} });
	var $P = ":[^}\\r\\n]+", CF = St(Be("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [ij]), 2), VF = Be("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [CF, $P]), nR = St(Be("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [ok]), 2), tH = Be("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [nR, $P]);
	function MH(Be, St) {
		return {
			interpolation: {
				pattern: We("((?:^|[^{])(?:\\{\\{)*)<<0>>", [Be]),
				lookbehind: !0,
				inside: {
					"format-string": {
						pattern: We("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)", [St, $P]),
						lookbehind: !0,
						inside: { punctuation: /^:/ }
					},
					punctuation: /^\{|\}$/,
					expression: {
						pattern: /[\s\S]+/,
						alias: "language-csharp",
						inside: x.languages.csharp
					}
				}
			},
			string: /[\s\S]+/
		};
	}
	x.languages.insertBefore("csharp", "string", { "interpolation-string": [{
		pattern: We("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [VF]),
		lookbehind: !0,
		greedy: !0,
		inside: MH(VF, CF)
	}, {
		pattern: We("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [tH]),
		lookbehind: !0,
		greedy: !0,
		inside: MH(tH, nR)
	}] });
}(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(x) {
	x.languages.ruby = x.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 Be = {
		pattern: /#\{[^}]+\}/,
		inside: {
			delimiter: {
				pattern: /^#\{|\}$/,
				alias: "tag"
			},
			rest: x.languages.ruby
		}
	};
	delete x.languages.ruby.function, x.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: Be }
		}, {
			pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,
			lookbehind: !0,
			greedy: !0,
			inside: { interpolation: Be }
		}],
		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: x.languages.ruby
			}
		}
	}), x.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)/
	}), x.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: Be }
		},
		{
			pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
			greedy: !0,
			inside: { interpolation: Be }
		},
		{
			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: Be
			}
		},
		{
			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: /^<<[-~]?'|'$/ }
			} }
		}
	], x.languages.rb = x.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(x) {
	x.inside.interpolation.inside = Prism.languages.swift;
})), function(x) {
	var Be = "\\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", We = {
		pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
		lookbehind: !0,
		alias: "punctuation",
		inside: null
	}, St = {
		bash: We,
		environment: {
			pattern: RegExp("\\$" + Be),
			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("(\\{)" + Be),
						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})/
	};
	x.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;|&]|[<>]\\()" + Be),
				lookbehind: !0,
				alias: "constant"
			} },
			alias: "variable",
			lookbehind: !0
		},
		string: [
			{
				pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
				lookbehind: !0,
				greedy: !0,
				inside: St
			},
			{
				pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
				lookbehind: !0,
				greedy: !0,
				inside: { bash: We }
			},
			{
				pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
				lookbehind: !0,
				greedy: !0,
				inside: St
			},
			{
				pattern: /(^|[^$\\])'[^']*'/,
				lookbehind: !0,
				greedy: !0
			},
			{
				pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
				greedy: !0,
				inside: { entity: St.entity }
			}
		],
		environment: {
			pattern: RegExp("\\$?" + Be),
			alias: "constant"
		},
		variable: St.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
		}
	}, We.inside = x.languages.bash;
	for (var Kn = [
		"comment",
		"function-name",
		"for-or-select",
		"assign-left",
		"string",
		"environment",
		"function",
		"keyword",
		"builtin",
		"boolean",
		"file-descriptor",
		"operator",
		"punctuation",
		"number"
	], _r = St.variable[1].inside, Li = 0; Li < Kn.length; Li++) _r[Kn[Li]] = x.languages.bash[Kn[Li]];
	x.languages.shell = x.languages.bash;
}(Prism), function(x) {
	var Be = "(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))";
	function We(x) {
		return x = x.replace(/<inner>/g, (function() {
			return Be;
		})), RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + x + ")");
	}
	var St = "(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+", Kn = "\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))".replace(/__/g, (function() {
		return St;
	})), _r = "\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)";
	x.languages.markdown = x.languages.extend("markup", {}), x.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: x.languages.yaml
				}
			}
		},
		blockquote: {
			pattern: /^>(?:[\t ]*>)*/m,
			alias: "punctuation"
		},
		table: {
			pattern: RegExp("^" + Kn + _r + "(?:" + Kn + ")*", "m"),
			inside: {
				"table-data-rows": {
					pattern: RegExp("^(" + Kn + _r + ")(?:" + Kn + ")*$"),
					lookbehind: !0,
					inside: {
						"table-data": {
							pattern: RegExp(St),
							inside: x.languages.markdown
						},
						punctuation: /\|/
					}
				},
				"table-line": {
					pattern: RegExp("^(" + Kn + ")" + _r + "$"),
					lookbehind: !0,
					inside: { punctuation: /\||:?-{3,}:?/ }
				},
				"table-header-row": {
					pattern: RegExp("^" + Kn + "$"),
					inside: {
						"table-header": {
							pattern: RegExp(St),
							alias: "important",
							inside: x.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: We("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				content: {
					pattern: /(^..)[\s\S]+(?=..$)/,
					lookbehind: !0,
					inside: {}
				},
				punctuation: /\*\*|__/
			}
		},
		italic: {
			pattern: We("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"),
			lookbehind: !0,
			greedy: !0,
			inside: {
				content: {
					pattern: /(^.)[\s\S]+(?=.$)/,
					lookbehind: !0,
					inside: {}
				},
				punctuation: /[*_]/
			}
		},
		strike: {
			pattern: We("(~~?)(?:(?!~)<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: We("!?\\[(?:(?!\\])<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(Be) {
		[
			"url",
			"bold",
			"italic",
			"strike",
			"code-snippet"
		].forEach((function(We) {
			Be !== We && (x.languages.markdown[Be].inside.content.inside[We] = x.languages.markdown[We]);
		}));
	})), x.hooks.add("after-tokenize", (function(x) {
		x.language !== "markdown" && x.language !== "md" || function x(Be) {
			if (Be && typeof Be != "string") for (var We = 0, St = Be.length; We < St; We++) {
				var Kn = Be[We];
				if (Kn.type === "code") {
					var _r = Kn.content[1], Li = Kn.content[3];
					if (_r && Li && _r.type === "code-language" && Li.type === "code-block" && typeof _r.content == "string") {
						var fa = _r.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), Vo = "language-" + (fa = (/[a-z][\w-]*/i.exec(fa) || [""])[0].toLowerCase());
						Li.alias ? typeof Li.alias == "string" ? Li.alias = [Li.alias, Vo] : Li.alias.push(Vo) : Li.alias = [Vo];
					}
				} else x(Kn.content);
			}
		}(x.tokens);
	})), x.hooks.add("wrap", (function(Be) {
		if (Be.type === "code-block") {
			for (var We = "", St = 0, Kn = Be.classes.length; St < Kn; St++) {
				var _r = Be.classes[St], Xo = /language-(.+)/.exec(_r);
				if (Xo) {
					We = Xo[1];
					break;
				}
			}
			var Tc = x.languages[We];
			if (Tc) Be.content = x.highlight(function(x) {
				return x.replace(Li, "").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, (function(x, Be) {
					var We;
					return (Be = Be.toLowerCase())[0] === "#" ? (We = Be[1] === "x" ? parseInt(Be.slice(2), 16) : Number(Be.slice(1)), Vo(We)) : fa[Be] || x;
				}));
			}(Be.content), Tc, We);
			else if (We && We !== "none" && x.plugins.autoloader) {
				var Tl = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(0x2386f26fc10000 * Math.random());
				Be.attributes.id = Tl, x.plugins.autoloader.loadLanguages(We, (function() {
					var Be = document.getElementById(Tl);
					Be && (Be.innerHTML = x.highlight(Be.textContent, x.languages[We], We));
				}));
			}
		}
	}));
	var Li = RegExp(x.languages.markup.tag.pattern.source, "gi"), fa = {
		amp: "&",
		lt: "<",
		gt: ">",
		quot: "\""
	}, Vo = String.fromCodePoint || String.fromCharCode;
	x.languages.md = x.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(x) {
	if (x.language === "groovy" && x.type === "string") {
		var Be = x.content[0];
		if (Be != "'") {
			var We = /([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;
			Be === "$" && (We = /([^\$])(?:\$(?:\{.*?\}|[\w.]+))/), x.content = x.content.replace(/&lt;/g, "<").replace(/&amp;/g, "&"), x.content = Prism.highlight(x.content, { expression: {
				pattern: We,
				lookbehind: !0,
				inside: Prism.languages.groovy
			} }), x.classes.push(Be === "/" ? "regex" : "gstring");
		}
	}
}));
var Fge = /* @__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 Tge(x) {
	return typeof x == "string" ? x.length : typeof x.content == "string" ? x.content.length : x.content.reduce((function(x, Be) {
		return x + Tge(Be);
	}), 0);
}
var _ge, Pge = Ade.String, jge = function(x) {
	if (hhe(x) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
	return Pge(x);
}, Nge = function() {
	var x = bpe(this), Be = "";
	return x.global && (Be += "g"), x.ignoreCase && (Be += "i"), x.multiline && (Be += "m"), x.dotAll && (Be += "s"), x.unicode && (Be += "u"), x.sticky && (Be += "y"), Be;
}, Ige = Ade.RegExp, Lge = tpe((function() {
	var x = Ige("a", "y");
	return x.lastIndex = 2, x.exec("abcd") != null;
})), Rge = Lge || tpe((function() {
	return !Ige("a", "y").sticky;
})), Mge = {
	BROKEN_CARET: Lge || tpe((function() {
		var x = Ige("^r", "gy");
		return x.lastIndex = 2, x.exec("str") != null;
	})),
	MISSED_STICKY: Rge,
	UNSUPPORTED_Y: Lge
}, zge = fpe ? Object.defineProperties : function(x, Be) {
	bpe(x);
	for (var We, St = Jhe(Be), Kn = xge(Be), _r = Kn.length, Li = 0; _r > Li;) Ipe.f(x, We = Kn[Li++], St[We]);
	return x;
}, $ge = Kde("document", "documentElement"), Hge = qpe("IE_PROTO"), Vge = function() {}, Uge = function(x) {
	return "<script>" + x + "<\/script>";
}, Wge = function(x) {
	x.write(Uge("")), x.close();
	var Be = x.parentWindow.Object;
	return x = null, Be;
}, Gge = function() {
	try {
		_ge = new ActiveXObject("htmlfile");
	} catch {}
	var x, Be;
	Gge = typeof document < "u" ? document.domain && _ge ? Wge(_ge) : ((Be = gpe("iframe")).style.display = "none", $ge.appendChild(Be), Be.src = "javascript:", (x = Be.contentWindow.document).open(), x.write(Uge("document.F=Object")), x.close(), x.F) : Wge(_ge);
	for (var We = sge.length; We--;) delete Gge.prototype[sge[We]];
	return Gge();
};
Kpe[Hge] = !0;
var qge, Kge, Yge = Object.create || function(x, Be) {
	var We;
	return x === null ? We = Gge() : (Vge.prototype = bpe(x), We = new Vge(), Vge.prototype = null, We[Hge] = x), Be === void 0 ? We : zge(We, Be);
}, Xge = Ade.RegExp, Zge = tpe((function() {
	var x = Xge(".", "s");
	return !(x.dotAll && x.exec("\n") && x.flags === "s");
})), Jge = Ade.RegExp, Qge = tpe((function() {
	var x = Jge("(?<a>b)", "g");
	return x.exec("b").groups.a !== "b" || "b".replace(x, "$<a>c") !== "bc";
})), eve = nhe.get, tve = Fde("native-string-replace", String.prototype.replace), nve = RegExp.prototype.exec, rve = nve, ove = Nde("".charAt), ive = Nde("".indexOf), ave = Nde("".replace), uve = Nde("".slice), sve = (Kge = /b*/g, Epe(nve, qge = /a/, "a"), Epe(nve, Kge, "a"), qge.lastIndex !== 0 || Kge.lastIndex !== 0), lve = Mge.BROKEN_CARET, cve = /()??/.exec("")[1] !== void 0;
(sve || cve || lve || Zge || Qge) && (rve = function(x) {
	var Be, We, St, Kn, _r, Li, fa, Vo = this, Xo = eve(Vo), Tc = jge(x), Tl = Xo.raw;
	if (Tl) return Tl.lastIndex = Vo.lastIndex, Be = Epe(rve, Tl, Tc), Vo.lastIndex = Tl.lastIndex, Be;
	var Al = Xo.groups, Uu = lve && Vo.sticky, Ff = Epe(Nge, Vo), Lm = Vo.source, Bm = 0, x_ = Tc;
	if (Uu && (Ff = ave(Ff, "y", ""), ive(Ff, "g") === -1 && (Ff += "g"), x_ = uve(Tc, Vo.lastIndex), Vo.lastIndex > 0 && (!Vo.multiline || Vo.multiline && ove(Tc, Vo.lastIndex - 1) !== "\n") && (Lm = "(?: " + Lm + ")", x_ = " " + x_, Bm++), We = RegExp("^(?:" + Lm + ")", Ff)), cve && (We = RegExp("^" + Lm + "$(?!\\s)", Ff)), sve && (St = Vo.lastIndex), Kn = Epe(nve, Uu ? We : Vo, x_), Uu ? Kn ? (Kn.input = uve(Kn.input, Bm), Kn[0] = uve(Kn[0], Bm), Kn.index = Vo.lastIndex, Vo.lastIndex += Kn[0].length) : Vo.lastIndex = 0 : sve && Kn && (Vo.lastIndex = Vo.global ? Kn.index + Kn[0].length : St), cve && Kn && Kn.length > 1 && Epe(tve, Kn[0], We, (function() {
		for (_r = 1; _r < arguments.length - 2; _r++) arguments[_r] === void 0 && (Kn[_r] = void 0);
	})), Kn && Al) for (Kn.groups = Li = Yge(null), _r = 0; _r < Al.length; _r++) Li[(fa = Al[_r])[0]] = Kn[fa[1]];
	return Kn;
});
var fve = rve;
Sge({
	target: "RegExp",
	proto: !0,
	forced: /./.exec !== fve
}, { exec: fve });
var dve = Function.prototype, pve = dve.apply, hve = dve.bind, gve = dve.call, vve = typeof Reflect == "object" && Reflect.apply || (hve ? gve.bind(pve) : function() {
	return gve.apply(pve, arguments);
}), yve = spe("species"), mve = RegExp.prototype, bve = spe("match"), wve = Ade.TypeError, Eve = spe("species"), Dve = Nde("".charAt), Sve = Nde("".charCodeAt), xve = Nde("".slice), Ave = function(x) {
	return function(Be, We) {
		var St, Kn, _r = jge(Lde(Be)), Li = Ohe(We), fa = _r.length;
		return Li < 0 || Li >= fa ? x ? "" : void 0 : (St = Sve(_r, Li)) < 55296 || St > 56319 || Li + 1 === fa || (Kn = Sve(_r, Li + 1)) < 56320 || Kn > 57343 ? x ? Dve(_r, Li) : St : x ? xve(_r, Li, Li + 2) : Kn - 56320 + (St - 55296 << 10) + 65536;
	};
}(!0), Ove = function(x, Be, We) {
	return Be + (We ? Ave(x, Be).length : 1);
}, kve = Ade.Array, Bve = Math.max, Fve = function(x, Be, We) {
	for (var St, Kn, _r, Li, fa = Fhe(x), Vo = rge(Be, fa), Xo = rge(We === void 0 ? fa : We, fa), Tc = kve(Bve(Xo - Vo, 0)), Tl = 0; Vo < Xo; Vo++, Tl++) St = Tc, Kn = Tl, _r = x[Vo], (Li = Ppe(Kn)) in St ? Ipe.f(St, Li, Lpe(0, _r)) : St[Li] = _r;
	return Tc.length = Tl, Tc;
}, Tve = Ade.TypeError, _ve = function(x, Be) {
	var We = x.exec;
	if (Gde(We)) {
		var St = Epe(We, x, Be);
		return St !== null && bpe(St), St;
	}
	if (che(x) === "RegExp") return Epe(fve, x, Be);
	throw Tve("RegExp#exec called on incompatible receiver");
}, Pve = Mge.UNSUPPORTED_Y, jve = Math.min, Nve = [].push, Ive = Nde(/./.exec), Lve = Nde(Nve), Rve = Nde("".slice);
(function(x, Be, We, St) {
	var Kn = spe(x), _r = !tpe((function() {
		var Be = {};
		return Be[Kn] = function() {
			return 7;
		}, ""[x](Be) != 7;
	})), Li = _r && !tpe((function() {
		var x = !1, Be = /a/;
		return (Be = {}).constructor = {}, Be.constructor[yve] = function() {
			return Be;
		}, Be.flags = "", Be[Kn] = /./[Kn], Be.exec = function() {
			return x = !0, null;
		}, Be[Kn](""), !x;
	}));
	if (!_r || !Li || We) {
		var fa = Nde(/./[Kn]), Vo = function(x, Be, We) {
			var St;
			return St = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(x, We) {
				var St, Kn, _r = jge(Lde(this)), Li = We === void 0 ? 4294967295 : We >>> 0;
				if (Li === 0) return [];
				if (x === void 0) return [_r];
				if (!dpe(St = x) || !((Kn = St[bve]) === void 0 ? che(St) == "RegExp" : Kn)) return Epe(Be, _r, x, Li);
				for (var fa, Vo, Xo, Tc = [], Tl = (x.ignoreCase ? "i" : "") + (x.multiline ? "m" : "") + (x.unicode ? "u" : "") + (x.sticky ? "y" : ""), Al = 0, Uu = new RegExp(x.source, Tl + "g"); (fa = Epe(fve, Uu, _r)) && !((Vo = Uu.lastIndex) > Al && (Lve(Tc, Rve(_r, Al, fa.index)), fa.length > 1 && fa.index < _r.length && vve(Nve, Tc, Fve(fa, 1)), Xo = fa[0].length, Al = Vo, Tc.length >= Li));) Uu.lastIndex === fa.index && Uu.lastIndex++;
				return Al === _r.length ? !Xo && Ive(Uu, "") || Lve(Tc, "") : Lve(Tc, Rve(_r, Al)), Tc.length > Li ? Fve(Tc, 0, Li) : Tc;
			} : "0".split(void 0, 0).length ? function(x, We) {
				return x === void 0 && We === 0 ? [] : Epe(Be, this, x, We);
			} : Be, [function(Be, We) {
				var Kn = Lde(this), _r = Be == null ? void 0 : Bpe(Be, x);
				return _r ? Epe(_r, Be, Kn, We) : Epe(St, jge(Kn), Be, We);
			}, function(x, Kn) {
				var _r = bpe(this), Li = jge(x), fa = We(St, _r, Li, Kn, St !== Be);
				if (fa.done) return fa.value;
				var Vo = function(x, Be) {
					var We, St = bpe(x).constructor;
					return St === void 0 || (We = bpe(St)[Eve]) == null ? Be : function(x) {
						if (Mhe(x)) return x;
						throw wve(Ape(x) + " is not a constructor");
					}(We);
				}(_r, RegExp), Xo = _r.unicode, Tc = (_r.ignoreCase ? "i" : "") + (_r.multiline ? "m" : "") + (_r.unicode ? "u" : "") + (Pve ? "g" : "y"), Tl = new Vo(Pve ? "^(?:" + _r.source + ")" : _r, Tc), Al = Kn === void 0 ? 4294967295 : Kn >>> 0;
				if (Al === 0) return [];
				if (Li.length === 0) return _ve(Tl, Li) === null ? [Li] : [];
				for (var Uu = 0, Ff = 0, Lm = []; Ff < Li.length;) {
					Tl.lastIndex = Pve ? 0 : Ff;
					var Bm, x_ = _ve(Tl, Pve ? Rve(Li, Ff) : Li);
					if (x_ === null || (Bm = jve(Bhe(Tl.lastIndex + (Pve ? Ff : 0)), Li.length)) === Uu) Ff = Ove(Li, Ff, Xo);
					else {
						if (Lve(Lm, Rve(Li, Uu, Ff)), Lm.length === Al) return Lm;
						for (var uy = 1; uy <= x_.length - 1; uy++) if (Lve(Lm, x_[uy]), Lm.length === Al) return Lm;
						Ff = Uu = Bm;
					}
				}
				return Lve(Lm, Rve(Li, Uu)), Lm;
			}];
		}(Kn, ""[x], (function(x, Be, We, St, Kn) {
			var Li = Nde(x), Vo = Be.exec;
			return Vo === fve || Vo === mve.exec ? _r && !Kn ? {
				done: !0,
				value: fa(Be, We, St)
			} : {
				done: !0,
				value: Li(We, Be, St)
			} : { done: !1 };
		}));
		uhe(String.prototype, x, Vo[0]), uhe(mve, Kn, Vo[1]);
	}
	St && Rpe(mve[Kn], "sham", !0);
})("split", 0, !!tpe((function() {
	var x = /(?:)/, Be = x.exec;
	x.exec = function() {
		return Be.apply(this, arguments);
	};
	var We = "ab".split(x);
	return We.length !== 2 || We[0] !== "a" || We[1] !== "b";
})), Pve), Sge({ global: !0 }, { globalThis: Ade }), Vp && (Mp.fn.attr = Vp);
var Mve = ahe.PROPER, zve = RegExp.prototype, $ve = zve.toString, Hve = Nde(Nge), Vve = tpe((function() {
	return $ve.call({
		source: "a",
		flags: "b"
	}) != "/a/b";
})), Uve = Mve && $ve.name != "toString";
(Vve || Uve) && uhe(RegExp.prototype, "toString", (function() {
	var x = bpe(this), Be = jge(x.source), We = x.flags;
	return "/" + Be + "/" + jge(We === void 0 && Dpe(zve, x) && !("flags" in zve) ? Hve(x) : We);
}), { unsafe: !0 });
var Wve = function() {
	function x() {
		this.title = HP("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 x.prototype.getOptions = function(x) {
		var Be = [], We = x.getMenuConfig("codeSelectLang").codeLangs, St = We === void 0 ? [] : We;
		Be.push({
			text: "plain text",
			value: ""
		}), St.forEach((function(x) {
			var We = x.text, St = x.value;
			Be.push({
				text: We,
				value: St
			});
		}));
		var Kn = this.getValue(x);
		return Be.forEach((function(x) {
			x.value === Kn ? x.selected = !0 : delete x.selected;
		})), Be;
	}, x.prototype.isActive = function(x) {
		return !1;
	}, x.prototype.getValue = function(x) {
		var Be = this.getSelectCodeElem(x);
		if (Be == null || !Sf.isElement(Be)) return "";
		var We = Be.language.toString(), St = x.getMenuConfig("codeSelectLang").codeLangs;
		return (St === void 0 ? [] : St).some((function(x) {
			return x.value === We;
		})) ? We : "";
	}, x.prototype.isDisabled = function(x) {
		return x.selection == null || !this.getSelectCodeElem(x);
	}, x.prototype.exec = function(x, Be) {
		if (this.getSelectCodeElem(x) != null) {
			var We = { language: Be.toString() };
			md.setNodes(x, We, { match: function(x) {
				return QO.checkNodeType(x, "code");
			} });
		}
	}, x.prototype.getSelectCodeElem = function(x) {
		var Be = QO.getSelectedNodeByType(x, "code");
		if (Be == null) return null;
		var We = QO.getParentNode(x, Be);
		return Sf.isElement(We) && We.type === "pre" ? Be : null;
	}, x;
}(), Gve = {
	renderStyle: function(x, Be) {
		var We = x, St = Be, Kn = "";
		return Fge.forEach((function(x) {
			We[x] && (Kn = x);
		})), Kn && function(x, Be) {
			x.data ??= {};
			var We = x.data;
			We.props ??= {}, Object.assign(We.props, { className: Be });
		}(St, Kn = "token " + Kn), St;
	},
	parseStyleHtml: function(x, Be, We) {
		var St = Mp(x);
		if (!Sf.isElement(Be) || QO.getNodeType(Be) !== "code") return Be;
		var Kn = Be, _r = St.attr("class") || "";
		return _r.indexOf("language-") === 0 ? Kn.language = _r.split("-")[1] || "" : Kn.language = _r.toLowerCase(), Kn;
	},
	menus: [{
		key: "codeSelectLang",
		factory: function() {
			return new Wve();
		},
		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(x, Be) {
			var We = x.language, St = We === void 0 ? "" : We;
			return "<code " + (St ? "class=\"language-" + St + "\"" : "") + ">" + Be + "</code>";
		}
	}]
}, qve = /"/g, Kve = Nde("".replace);
Sge({
	target: "String",
	proto: !0,
	forced: tpe((function() {
		var x = "".anchor("\"");
		return x !== x.toLowerCase() || x.split("\"").length > 3;
	}))
}, { anchor: function(x) {
	return Be = x, We = jge(Lde(this)), St = "<a", (St += " name=\"" + Kve(jge(Be), qve, "&quot;") + "\"") + ">" + We + "</a>";
	var Be, We, St;
} });
var Yve = function(x) {
	var Be, We, St, Kn = function(x, Be) {
		var We = typeof Symbol == "function" && x[Symbol.iterator];
		if (!We) return x;
		var St, Kn, _r = We.call(x), Li = [];
		try {
			for (; (Be === void 0 || Be-- > 0) && !(St = _r.next()).done;) Li.push(St.value);
		} catch (x) {
			Kn = { error: x };
		} finally {
			try {
				St && !St.done && (We = _r.return) && We.call(_r);
			} finally {
				if (Kn) throw Kn.error;
			}
		}
		return Li;
	}(x, 2), _r = Kn[0], Li = Kn[1], fa = [], Vo = function(x) {
		if (!ed.isText(x)) return null;
		var Be = QO.getParentNode(null, x);
		if (Be && QO.getNodeType(Be) === "code") {
			var We = QO.getParentNode(null, Be);
			if (We && QO.getNodeType(We) === "pre") return Be;
		}
		return null;
	}(_r);
	if (Vo == null) return fa;
	var Xo = Vo.language, Tc = Xo === void 0 ? "" : Xo;
	if (!Tc) return fa;
	var Tl = function(x, Be) {
		if (!Be) return [];
		var We = Bge.languages[Be];
		return We ? Bge.tokenize(x.text, We) : [];
	}(_r, Tc), Al = 0;
	try {
		for (var Uu = function(x) {
			var Be = typeof Symbol == "function" && Symbol.iterator, We = Be && x[Be], St = 0;
			if (We) return We.call(x);
			if (x && typeof x.length == "number") return { next: function() {
				return x && St >= x.length && (x = void 0), {
					value: x && x[St++],
					done: !x
				};
			} };
			throw TypeError(Be ? "Object is not iterable." : "Symbol.iterator is not defined.");
		}(Tl), Ff = Uu.next(); !Ff.done; Ff = Uu.next()) {
			var Lm = Ff.value, Bm = Al + Tge(Lm);
			typeof Lm != "string" && fa.push(((St = {})[Lm.type] = !0, St.anchor = {
				path: Li,
				offset: Al
			}, St.focus = {
				path: Li,
				offset: Bm
			}, St)), Al = Bm;
		}
	} catch (x) {
		Be = { error: x };
	} finally {
		try {
			Ff && !Ff.done && (We = Uu.return) && We.call(Uu);
		} finally {
			if (Be) throw Be.error;
		}
	}
	return fa;
}, Xve = function() {
	return Xve = Object.assign || function(x) {
		for (var Be, We = 1, St = arguments.length; We < St; We++) for (var Kn in Be = arguments[We]) Object.prototype.hasOwnProperty.call(Be, Kn) && (x[Kn] = Be[Kn]);
		return x;
	}, Xve.apply(this, arguments);
}, Zve = function() {
	function x() {
		throw Error("不能实例化\nCan not construct a instance");
	}
	return x.setEditorConfig = function(x) {
		x === void 0 && (x = {}), this.editorConfig = Xve(Xve({}, this.editorConfig), x);
	}, x.setSimpleEditorConfig = function(x) {
		x === void 0 && (x = {}), this.simpleEditorConfig = Xve(Xve({}, this.simpleEditorConfig), x);
	}, x.setToolbarConfig = function(x) {
		x === void 0 && (x = {}), this.toolbarConfig = Xve(Xve({}, this.toolbarConfig), x);
	}, x.setSimpleToolbarConfig = function(x) {
		x === void 0 && (x = {}), this.simpleToolbarConfig = Xve(Xve({}, this.simpleToolbarConfig), x);
	}, x.registerPlugin = function(x) {
		this.plugins.push(x);
	}, x.registerMenu = function(x, Be) {
		(function(x, Be) {
			var We = x.key, St = x.factory, Kn = x.config, _r = oA(oA({}, Kn), Be || {});
			if (nk[We] != null) throw Error("Duplicated key '" + We + "' in menu items");
			nk[We] = St, function(x, Be) {
				Be != null && (tk[x] = Be);
			}(We, _r);
		})(x, Be);
	}, x.registerRenderElem = function(x) {
		(function(x) {
			var Be = x.type;
			zT[Be || ""] = x.renderElem;
		})(x);
	}, x.registerRenderStyle = function(x) {
		(function(x) {
			MT.push(x);
		})(x);
	}, x.registerElemToHtml = function(x) {
		(function(x) {
			var Be = x.type;
			gk[Be || ""] = x.elemToHtml;
		})(x);
	}, x.registerStyleToHtml = function(x) {
		(function(x) {
			hk.push(x);
		})(x);
	}, x.registerPreParseHtml = function(x) {
		(function(x) {
			rF.push(x);
		})(x);
	}, x.registerParseElemHtml = function(x) {
		(function(x) {
			var Be = x.selector;
			iF[Be] = x.parseElemHtml;
		})(x);
	}, x.registerParseStyleHtml = function(x) {
		(function(x) {
			oF.push(x);
		})(x);
	}, x.registerModule = function(x) {
		Jve(x);
	}, x.editorConfig = {}, x.simpleEditorConfig = {}, x.toolbarConfig = {}, x.simpleToolbarConfig = {}, x.plugins = [], x;
}();
function Jve(x) {
	var Be = x.menus, We = x.renderElems, St = x.renderStyle, Kn = x.elemsToHtml, _r = x.styleToHtml, Li = x.preParseHtml, fa = x.parseElemsHtml, Vo = x.parseStyleHtml, Xo = x.editorPlugin;
	Be && Be.forEach((function(x) {
		return Zve.registerMenu(x);
	})), We && We.forEach((function(x) {
		return Zve.registerRenderElem(x);
	})), St && Zve.registerRenderStyle(St), Kn && Kn.forEach((function(x) {
		return Zve.registerElemToHtml(x);
	})), _r && Zve.registerStyleToHtml(_r), Li && Li.forEach((function(x) {
		return Zve.registerPreParseHtml(x);
	})), fa && fa.forEach((function(x) {
		return Zve.registerParseElemHtml(x);
	})), Vo && Zve.registerParseStyleHtml(Vo), Xo && Zve.registerPlugin(Xo);
}
Yq.forEach((function(x) {
	return Jve(x);
})), Jve(g0), Jve(J3), Jve(Doe), Jve(wde), Jve(Gve);
var Qve = "<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>", eye = {
	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"] }
}, tye = { hoverbarKeys: Xve(Xve({}, eye), { text: { menuKeys: [
	"headerSelect",
	"insertLink",
	"bulletedList",
	"|",
	"bold",
	"through",
	"color",
	"bgColor",
	"clearStyle"
] } }) };
Zve.setEditorConfig(Xve(Xve({}, tye), { decorate: Yve }));
var nye = { hoverbarKeys: eye };
Zve.setSimpleEditorConfig(Xve(Xve({}, nye), { decorate: Yve }));
var rye = { toolbarKeys: [
	"headerSelect",
	"blockquote",
	"|",
	"bold",
	"underline",
	"italic",
	{
		key: "group-more-style",
		title: HP("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: HP("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: HP("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: HP("editor.image"),
		iconSvg: Qve,
		menuKeys: ["insertImage", "uploadImage"]
	},
	{
		key: "group-video",
		title: HP("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"
] };
Zve.setToolbarConfig(rye);
var oye = { toolbarKeys: [
	"blockquote",
	"header1",
	"header2",
	"header3",
	"|",
	"bold",
	"underline",
	"italic",
	"through",
	"color",
	"bgColor",
	"clearStyle",
	"|",
	"bulletedList",
	"numberedList",
	"todo",
	"justifyLeft",
	"justifyRight",
	"justifyCenter",
	"|",
	"insertLink",
	{
		key: "group-image",
		title: HP("editor.image"),
		iconSvg: Qve,
		menuKeys: ["insertImage", "uploadImage"]
	},
	"insertVideo",
	"insertTable",
	"codeBlock",
	"|",
	"undo",
	"redo",
	"|",
	"fullScreen"
] };
function iye(x) {
	x === void 0 && (x = {});
	var Be = x.selector, We = Be === void 0 ? "" : Be, St = x.content, Kn = St === void 0 ? [] : St, _r = x.html, Li = x.config, fa = Li === void 0 ? {} : Li, Vo = x.mode, Xo = (Vo === void 0 ? "default" : Vo) === "simple" ? Zve.simpleEditorConfig : Zve.editorConfig, Tc = Xve(Xve({}, Xo.hoverbarKeys || {}), fa.hoverbarKeys || {});
	return I_({
		selector: We,
		config: Xve(Xve(Xve({}, Xo), fa), { hoverbarKeys: Tc }),
		content: Kn,
		html: _r,
		plugins: Zve.plugins
	});
}
function aye(x) {
	var Be = x.selector, We = x.editor, St = x.config, Kn = St === void 0 ? {} : St, _r = x.mode, Li = _r === void 0 ? "default" : _r;
	if (!Be) throw Error("Cannot find 'selector' when create toolbar");
	var fa = Li === "simple" ? Zve.simpleToolbarConfig : Zve.toolbarConfig;
	return function(x, Be) {
		if (x == null) throw Error("Cannot create toolbar, because editor is null");
		var We = Be.selector, St = Be.config, Kn = St === void 0 ? {} : St;
		if (function(x, Be) {
			return LF(x, "data-w-e-toolbar", Be);
		}(x, We)) throw Error("Repeated create toolbar by selector '" + We + "'");
		var _r = new $_(We, oA({
			toolbarKeys: [],
			excludeKeys: [],
			insertKeys: {
				index: 0,
				keys: []
			},
			modalAppendToBody: !1
		}, Kn || {}));
		return uO.set(_r, x), sO.set(x, _r), _r;
	}(We, {
		selector: Be,
		config: Xve(Xve({}, fa), Kn)
	});
}
Zve.setSimpleToolbarConfig(oye);
export { QO as DomEditor, iye as createEditor, aye as createToolbar };

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