UNPKG

@form-create/designer

Version:

好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。

1,185 lines (1,183 loc) 507 kB
/*! * FormCreate 可视化表单设计器 * @form-create/designer v1.3.0 * (c) 2021-2025 xaboy * Github https://github.com/xaboy/form-create-designer * Site https://form-create.com/ * Released under the MIT License. */ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-title{width:100%;font-size:16px;font-weight:600;margin-top:1em;margin-bottom:16px}._fc-title.h1,._fc-title.h2{padding-bottom:.3em;border-bottom:1px solid #eee}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{width:100%;min-width:160px;height:88px;line-height:88px;font-size:14px;color:#c9ccd8;border-radius:4px;border:1px dashed rgb(212,215,224);text-align:center;background:#fff;position:relative;box-sizing:border-box}._fc-signature-btn{cursor:pointer}._fc-signature.disabled ._fc-signature-btn{cursor:not-allowed}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{position:absolute;top:9px;right:9px;display:inline-block;line-height:14px;font-size:14px;cursor:pointer}._fc-signature-btn i{font-size:14px}._fc-signature-dialog .el-dialog__body{text-align:center}._fc-signature-pad{border-radius:4px;border:1px dashed #D4D7E0;background-image:linear-gradient(#FFFFFF 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px}._fc-table-form{overflow:auto;color:#666}._fc-table-form .form-create .el-form-item{margin-bottom:1px}._fc-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-tf-head-idx,._fc-tf-idx{width:40px;min-width:40px;font-weight:500;text-align:center}._fc-tf-edit,._fc-tf-btn{width:70px;min-width:70px;text-align:center}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{width:100%;height:100%;overflow:hidden;table-layout:fixed;border:1px solid #EBEEF5;border-bottom:0 none}._fc-table-form ._fc-tf-table>thead>tr>th{border:0 none;border-bottom:1px solid #EBEEF5;height:40px;font-weight:500;padding:0 5px;box-sizing:border-box}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #EBEEF5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{padding:5px;min-height:50px;min-width:80px;position:relative;box-sizing:border-box;overflow-wrap:break-word;overflow:hidden;border:0 none;border-bottom:1px solid #EBEEF5}._fc-table-form td+td{border-left:1px solid #EBEEF5}._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider,._fc-tf-table .el-cascader,._fc-tf-table .el-date-editor{width:100%}._fc-tf-head-required:before{content:"*";color:#f56c6c;margin-right:4px}._fc-table{overflow:auto}._fc-table>table{width:100%;height:100%;overflow:hidden;table-layout:fixed;border:1px solid #EBEEF5;border-bottom:0 none;border-right:0 none;border-collapse:collapse}._fc-table tr{min-height:50px}._fc-table td{padding:5px;min-height:50px;min-width:80px;position:relative;box-sizing:border-box;overflow-wrap:break-word;overflow:hidden;border:0 none;border-right:1px solid #EBEEF5;border-bottom:1px solid #EBEEF5;text-align:center;vertical-align:middle}._fc-table.is-mini td{padding:0;min-height:12px}._fc-table.is-mini .el-form-item{padding:0;margin:0}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); var je = Object.defineProperty, Ye = Object.defineProperties; var ze = Object.getOwnPropertyDescriptors; var Pe = Object.getOwnPropertySymbols; var $e = Object.prototype.hasOwnProperty, Ve = Object.prototype.propertyIsEnumerable; var Ie = (L, k, o) => k in L ? je(L, k, { enumerable: !0, configurable: !0, writable: !0, value: o }) : L[k] = o, ke = (L, k) => { for (var o in k || (k = {})) $e.call(k, o) && Ie(L, o, k[o]); if (Pe) for (var o of Pe(k)) Ve.call(k, o) && Ie(L, o, k[o]); return L; }, Fe = (L, k) => Ye(L, ze(k)); var Le = (L, k, o) => new Promise((n, e) => { var t = (i) => { try { r(o.next(i)); } catch (u) { e(u); } }, a = (i) => { try { r(o.throw(i)); } catch (u) { e(u); } }, r = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(t, a); r((o = o.apply(L, k)).next()); }); import Ge from "@form-create/element-ui"; import { defineComponent as He, markRaw as Oe, reactive as We } from "vue"; /*! * FormCreate 低代码表单渲染器 * @form-create/component-wangeditor v2.7.1 * (c) 2018-2025 xaboy * Github https://github.com/xaboy/form-create * Site https://form-create.com/ * Released under the MIT License. */ function Je(L) { return L && L.__esModule && Object.prototype.hasOwnProperty.call(L, "default") ? L.default : L; } var Ue = { exports: {} }; (function(L, k) { (function(o, n) { L.exports = n(); })(window, function() { return ( /******/ function(o) { var n = {}; function e(t) { if (n[t]) return n[t].exports; var a = n[t] = { /******/ i: t, /******/ l: !1, /******/ exports: {} /******/ }; return o[t].call(a.exports, a, a.exports, e), a.l = !0, a.exports; } return e.m = o, e.c = n, e.d = function(t, a, r) { e.o(t, a) || Object.defineProperty(t, a, { enumerable: !0, get: r }); }, e.r = function(t) { typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }); }, e.t = function(t, a) { if (a & 1 && (t = e(t)), a & 8 || a & 4 && typeof t == "object" && t && t.__esModule) return t; var r = /* @__PURE__ */ Object.create(null); if (e.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: t }), a & 2 && typeof t != "string") for (var i in t) e.d(r, i, function(u) { return t[u]; }.bind(null, i)); return r; }, e.n = function(t) { var a = t && t.__esModule ? ( /******/ function() { return t.default; } ) : ( /******/ function() { return t; } ); return e.d(a, "a", a), a; }, e.o = function(t, a) { return Object.prototype.hasOwnProperty.call(t, a); }, e.p = "", e(e.s = 141); }([ /* 0 */ /***/ function(o, n) { function e(t) { return t && t.__esModule ? t : { default: t }; } o.exports = e; }, /* 1 */ /***/ function(o, n, e) { o.exports = e(142); }, /* 2 */ /***/ function(o, n, e) { e.r(n), e.d(n, "__extends", function() { return a; }), e.d(n, "__assign", function() { return r; }), e.d(n, "__rest", function() { return i; }), e.d(n, "__decorate", function() { return u; }), e.d(n, "__param", function() { return h; }), e.d(n, "__metadata", function() { return s; }), e.d(n, "__awaiter", function() { return m; }), e.d(n, "__generator", function() { return f; }), e.d(n, "__createBinding", function() { return l; }), e.d(n, "__exportStar", function() { return d; }), e.d(n, "__values", function() { return c; }), e.d(n, "__read", function() { return v; }), e.d(n, "__spread", function() { return p; }), e.d(n, "__spreadArrays", function() { return g; }), e.d(n, "__spreadArray", function() { return A; }), e.d(n, "__await", function() { return y; }), e.d(n, "__asyncGenerator", function() { return w; }), e.d(n, "__asyncDelegator", function() { return b; }), e.d(n, "__asyncValues", function() { return E; }), e.d(n, "__makeTemplateObject", function() { return C; }), e.d(n, "__importStar", function() { return _; }), e.d(n, "__importDefault", function() { return S; }), e.d(n, "__classPrivateFieldGet", function() { return M; }), e.d(n, "__classPrivateFieldSet", function() { return T; }); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var t = function(D, N) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, R) { B.__proto__ = R; } || function(B, R) { for (var I in R) Object.prototype.hasOwnProperty.call(R, I) && (B[I] = R[I]); }, t(D, N); }; function a(D, N) { if (typeof N != "function" && N !== null) throw new TypeError("Class extends value " + String(N) + " is not a constructor or null"); t(D, N); function B() { this.constructor = D; } D.prototype = N === null ? Object.create(N) : (B.prototype = N.prototype, new B()); } var r = function() { return r = Object.assign || function(D) { for (var N, B = 1, R = arguments.length; B < R; B++) { N = arguments[B]; for (var I in N) Object.prototype.hasOwnProperty.call(N, I) && (D[I] = N[I]); } return D; }, r.apply(this, arguments); }; function i(D, N) { var B = {}; for (var R in D) Object.prototype.hasOwnProperty.call(D, R) && N.indexOf(R) < 0 && (B[R] = D[R]); if (D != null && typeof Object.getOwnPropertySymbols == "function") for (var I = 0, R = Object.getOwnPropertySymbols(D); I < R.length; I++) N.indexOf(R[I]) < 0 && Object.prototype.propertyIsEnumerable.call(D, R[I]) && (B[R[I]] = D[R[I]]); return B; } function u(D, N, B, R) { var I = arguments.length, P = I < 3 ? N : R === null ? R = Object.getOwnPropertyDescriptor(N, B) : R, F; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") P = Reflect.decorate(D, N, B, R); else for (var H = D.length - 1; H >= 0; H--) (F = D[H]) && (P = (I < 3 ? F(P) : I > 3 ? F(N, B, P) : F(N, B)) || P); return I > 3 && P && Object.defineProperty(N, B, P), P; } function h(D, N) { return function(B, R) { N(B, R, D); }; } function s(D, N) { if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(D, N); } function m(D, N, B, R) { function I(P) { return P instanceof B ? P : new B(function(F) { F(P); }); } return new (B || (B = Promise))(function(P, F) { function H(W) { try { Q(R.next(W)); } catch (U) { F(U); } } function V(W) { try { Q(R.throw(W)); } catch (U) { F(U); } } function Q(W) { W.done ? P(W.value) : I(W.value).then(H, V); } Q((R = R.apply(D, N || [])).next()); }); } function f(D, N) { var B = { label: 0, sent: function() { if (P[0] & 1) throw P[1]; return P[1]; }, trys: [], ops: [] }, R, I, P, F; return F = { next: H(0), throw: H(1), return: H(2) }, typeof Symbol == "function" && (F[Symbol.iterator] = function() { return this; }), F; function H(Q) { return function(W) { return V([Q, W]); }; } function V(Q) { if (R) throw new TypeError("Generator is already executing."); for (; B; ) try { if (R = 1, I && (P = Q[0] & 2 ? I.return : Q[0] ? I.throw || ((P = I.return) && P.call(I), 0) : I.next) && !(P = P.call(I, Q[1])).done) return P; switch (I = 0, P && (Q = [Q[0] & 2, P.value]), Q[0]) { case 0: case 1: P = Q; break; case 4: return B.label++, { value: Q[1], done: !1 }; case 5: B.label++, I = Q[1], Q = [0]; continue; case 7: Q = B.ops.pop(), B.trys.pop(); continue; default: if (P = B.trys, !(P = P.length > 0 && P[P.length - 1]) && (Q[0] === 6 || Q[0] === 2)) { B = 0; continue; } if (Q[0] === 3 && (!P || Q[1] > P[0] && Q[1] < P[3])) { B.label = Q[1]; break; } if (Q[0] === 6 && B.label < P[1]) { B.label = P[1], P = Q; break; } if (P && B.label < P[2]) { B.label = P[2], B.ops.push(Q); break; } P[2] && B.ops.pop(), B.trys.pop(); continue; } Q = N.call(D, B); } catch (W) { Q = [6, W], I = 0; } finally { R = P = 0; } if (Q[0] & 5) throw Q[1]; return { value: Q[0] ? Q[1] : void 0, done: !0 }; } } var l = Object.create ? function(D, N, B, R) { R === void 0 && (R = B), Object.defineProperty(D, R, { enumerable: !0, get: function() { return N[B]; } }); } : function(D, N, B, R) { R === void 0 && (R = B), D[R] = N[B]; }; function d(D, N) { for (var B in D) B !== "default" && !Object.prototype.hasOwnProperty.call(N, B) && l(N, D, B); } function c(D) { var N = typeof Symbol == "function" && Symbol.iterator, B = N && D[N], R = 0; if (B) return B.call(D); if (D && typeof D.length == "number") return { next: function() { return D && R >= D.length && (D = void 0), { value: D && D[R++], done: !D }; } }; throw new TypeError(N ? "Object is not iterable." : "Symbol.iterator is not defined."); } function v(D, N) { var B = typeof Symbol == "function" && D[Symbol.iterator]; if (!B) return D; var R = B.call(D), I, P = [], F; try { for (; (N === void 0 || N-- > 0) && !(I = R.next()).done; ) P.push(I.value); } catch (H) { F = { error: H }; } finally { try { I && !I.done && (B = R.return) && B.call(R); } finally { if (F) throw F.error; } } return P; } function p() { for (var D = [], N = 0; N < arguments.length; N++) D = D.concat(v(arguments[N])); return D; } function g() { for (var D = 0, N = 0, B = arguments.length; N < B; N++) D += arguments[N].length; for (var R = Array(D), I = 0, N = 0; N < B; N++) for (var P = arguments[N], F = 0, H = P.length; F < H; F++, I++) R[I] = P[F]; return R; } function A(D, N) { for (var B = 0, R = N.length, I = D.length; B < R; B++, I++) D[I] = N[B]; return D; } function y(D) { return this instanceof y ? (this.v = D, this) : new y(D); } function w(D, N, B) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var R = B.apply(D, N || []), I, P = []; return I = {}, F("next"), F("throw"), F("return"), I[Symbol.asyncIterator] = function() { return this; }, I; function F(Y) { R[Y] && (I[Y] = function(z) { return new Promise(function(J, Z) { P.push([Y, z, J, Z]) > 1 || H(Y, z); }); }); } function H(Y, z) { try { V(R[Y](z)); } catch (J) { U(P[0][3], J); } } function V(Y) { Y.value instanceof y ? Promise.resolve(Y.value.v).then(Q, W) : U(P[0][2], Y); } function Q(Y) { H("next", Y); } function W(Y) { H("throw", Y); } function U(Y, z) { Y(z), P.shift(), P.length && H(P[0][0], P[0][1]); } } function b(D) { var N, B; return N = {}, R("next"), R("throw", function(I) { throw I; }), R("return"), N[Symbol.iterator] = function() { return this; }, N; function R(I, P) { N[I] = D[I] ? function(F) { return (B = !B) ? { value: y(D[I](F)), done: I === "return" } : P ? P(F) : F; } : P; } } function E(D) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var N = D[Symbol.asyncIterator], B; return N ? N.call(D) : (D = typeof c == "function" ? c(D) : D[Symbol.iterator](), B = {}, R("next"), R("throw"), R("return"), B[Symbol.asyncIterator] = function() { return this; }, B); function R(P) { B[P] = D[P] && function(F) { return new Promise(function(H, V) { F = D[P](F), I(H, V, F.done, F.value); }); }; } function I(P, F, H, V) { Promise.resolve(V).then(function(Q) { P({ value: Q, done: H }); }, F); } } function C(D, N) { return Object.defineProperty ? Object.defineProperty(D, "raw", { value: N }) : D.raw = N, D; } var x = Object.create ? function(D, N) { Object.defineProperty(D, "default", { enumerable: !0, value: N }); } : function(D, N) { D.default = N; }; function _(D) { if (D && D.__esModule) return D; var N = {}; if (D != null) for (var B in D) B !== "default" && Object.prototype.hasOwnProperty.call(D, B) && l(N, D, B); return x(N, D), N; } function S(D) { return D && D.__esModule ? D : { default: D }; } function M(D, N) { if (!N.has(D)) throw new TypeError("attempted to get private field on non-instance"); return N.get(D); } function T(D, N, B) { if (!N.has(D)) throw new TypeError("attempted to set private field on non-instance"); return N.set(D, B), B; } }, /* 3 */ /***/ function(o, n, e) { var t = e(0), a = t(e(1)), r = t(e(89)), i = t(e(4)), u = t(e(26)), h = t(e(17)), s = t(e(121)), m = t(e(27)), f = t(e(91)), l = t(e(70)), d = t(e(28)), c = t(e(57)); (0, a.default)(n, "__esModule", { value: !0 }), n.DomElement = void 0; var v = e(2), p = e(6), g = []; function A(x) { var _ = document.createElement("div"); _.innerHTML = x; var S = _.children; return p.toArray(S); } function y(x) { return x ? x instanceof HTMLCollection || x instanceof NodeList : !1; } function w(x) { var _ = document.querySelectorAll(x); return p.toArray(_); } function b(x) { var _ = [], S = []; return (0, r.default)(x) ? _ = x : _ = x.split(";"), (0, i.default)(_).call(_, function(M) { var T, D = (0, u.default)(T = M.split(":")).call(T, function(N) { return (0, h.default)(N).call(N); }); D.length === 2 && S.push(D[0] + ":" + D[1]); }), S; } var E = ( /** @class */ function() { function x(_) { if (this.elems = [], this.length = this.elems.length, this.dataSource = new s.default(), !!_) { if (_ instanceof x) return _; var S = [], M = _ instanceof Node ? _.nodeType : -1; if (this.selector = _, M === 1 || M === 9) S = [_]; else if (y(_)) S = p.toArray(_); else if (_ instanceof Array) S = _; else if (typeof _ == "string") { var T, D = (0, h.default)(T = _.replace(`/ /mg`, "")).call(T); (0, m.default)(D).call(D, "<") === 0 ? S = A(D) : S = w(D); } var N = S.length; if (!N) return this; for (var B = 0; B < N; B++) this.elems.push(S[B]); this.length = N; } } return (0, a.default)(x.prototype, "id", { /** * 获取元素 id */ get: function() { return this.elems[0].id; }, enumerable: !1, configurable: !0 }), x.prototype.forEach = function(_) { for (var S = 0; S < this.length; S++) { var M = this.elems[S], T = _.call(M, M, S); if (T === !1) break; } return this; }, x.prototype.clone = function(_) { var S; _ === void 0 && (_ = !1); var M = []; return (0, i.default)(S = this.elems).call(S, function(T) { M.push(T.cloneNode(!!_)); }), C(M); }, x.prototype.get = function(_) { _ === void 0 && (_ = 0); var S = this.length; return _ >= S && (_ = _ % S), C(this.elems[_]); }, x.prototype.first = function() { return this.get(0); }, x.prototype.last = function() { var _ = this.length; return this.get(_ - 1); }, x.prototype.on = function(_, S, M) { var T; return _ ? (typeof S == "function" && (M = S, S = ""), (0, i.default)(T = this).call(T, function(D) { if (!S) { D.addEventListener(_, M); return; } var N = function(B) { var R = B.target; R.matches(S) && M.call(R, B); }; D.addEventListener(_, N), g.push({ elem: D, selector: S, fn: M, agentFn: N }); })) : this; }, x.prototype.off = function(_, S, M) { var T; return _ ? (typeof S == "function" && (M = S, S = ""), (0, i.default)(T = this).call(T, function(D) { if (S) { for (var N = -1, B = 0; B < g.length; B++) { var R = g[B]; if (R.selector === S && R.fn === M && R.elem === D) { N = B; break; } } if (N !== -1) { var I = (0, f.default)(g).call(g, N, 1)[0].agentFn; D.removeEventListener(_, I); } } else D.removeEventListener(_, M); })) : this; }, x.prototype.attr = function(_, S) { var M; return S == null ? this.elems[0].getAttribute(_) || "" : (0, i.default)(M = this).call(M, function(T) { T.setAttribute(_, S); }); }, x.prototype.removeAttr = function(_) { var S; (0, i.default)(S = this).call(S, function(M) { M.removeAttribute(_); }); }, x.prototype.addClass = function(_) { var S; return _ ? (0, i.default)(S = this).call(S, function(M) { if (M.className) { var T = M.className.split(/\s/); T = (0, l.default)(T).call(T, function(D) { return !!(0, h.default)(D).call(D); }), (0, m.default)(T).call(T, _) < 0 && T.push(_), M.className = T.join(" "); } else M.className = _; }) : this; }, x.prototype.removeClass = function(_) { var S; return _ ? (0, i.default)(S = this).call(S, function(M) { if (M.className) { var T = M.className.split(/\s/); T = (0, l.default)(T).call(T, function(D) { return D = (0, h.default)(D).call(D), !(!D || D === _); }), M.className = T.join(" "); } }) : this; }, x.prototype.hasClass = function(_) { if (!_) return !1; var S = this.elems[0]; if (!S.className) return !1; var M = S.className.split(/\s/); return (0, d.default)(M).call(M, _); }, x.prototype.css = function(_, S) { var M, T; return S == "" ? T = "" : T = _ + ":" + S + ";", (0, i.default)(M = this).call(M, function(D) { var N, B = (0, h.default)(N = D.getAttribute("style") || "").call(N); if (B) { var R = b(B); R = (0, u.default)(R).call(R, function(I) { return (0, m.default)(I).call(I, _) === 0 ? T : I; }), T != "" && (0, m.default)(R).call(R, T) < 0 && R.push(T), T == "" && (R = b(R)), D.setAttribute("style", R.join("; ")); } else D.setAttribute("style", T); }); }, x.prototype.getBoundingClientRect = function() { var _ = this.elems[0]; return _.getBoundingClientRect(); }, x.prototype.show = function() { return this.css("display", "block"); }, x.prototype.hide = function() { return this.css("display", "none"); }, x.prototype.children = function() { var _ = this.elems[0]; return _ ? C(_.children) : null; }, x.prototype.childNodes = function() { var _ = this.elems[0]; return _ ? C(_.childNodes) : null; }, x.prototype.replaceChildAll = function(_) { for (var S = this.getNode(), M = this.elems[0]; M.hasChildNodes(); ) S.firstChild && M.removeChild(S.firstChild); this.append(_); }, x.prototype.append = function(_) { var S; return (0, i.default)(S = this).call(S, function(M) { (0, i.default)(_).call(_, function(T) { M.appendChild(T); }); }); }, x.prototype.remove = function() { var _; return (0, i.default)(_ = this).call(_, function(S) { if (S.remove) S.remove(); else { var M = S.parentElement; M && M.removeChild(S); } }); }, x.prototype.isContain = function(_) { var S = this.elems[0], M = _.elems[0]; return S.contains(M); }, x.prototype.getNodeName = function() { var _ = this.elems[0]; return _.nodeName; }, x.prototype.getNode = function(_) { _ === void 0 && (_ = 0); var S; return S = this.elems[_], S; }, x.prototype.find = function(_) { var S = this.elems[0]; return C(S.querySelectorAll(_)); }, x.prototype.text = function(_) { if (_) { var S; return (0, i.default)(S = this).call(S, function(T) { T.innerHTML = _; }); } else { var M = this.elems[0]; return M.innerHTML.replace(/<[^>]+>/g, function() { return ""; }); } }, x.prototype.html = function(_) { var S = this.elems[0]; return _ ? (S.innerHTML = _, this) : S.innerHTML; }, x.prototype.val = function() { var _, S = this.elems[0]; return (0, h.default)(_ = S.value).call(_); }, x.prototype.focus = function() { var _; return (0, i.default)(_ = this).call(_, function(S) { S.focus(); }); }, x.prototype.prev = function() { var _ = this.elems[0]; return C(_.previousElementSibling); }, x.prototype.next = function() { var _ = this.elems[0]; return C(_.nextElementSibling); }, x.prototype.getNextSibling = function() { var _ = this.elems[0]; return C(_.nextSibling); }, x.prototype.parent = function() { var _ = this.elems[0]; return C(_.parentElement); }, x.prototype.parentUntil = function(_, S) { var M = S || this.elems[0]; if (M.nodeName === "BODY") return null; var T = M.parentElement; return T === null ? null : T.matches(_) ? C(T) : this.parentUntil(_, T); }, x.prototype.parentUntilEditor = function(_, S, M) { var T = M || this.elems[0]; if (C(T).equal(S.$textContainerElem) || C(T).equal(S.$toolbarElem)) return null; var D = T.parentElement; return D === null ? null : D.matches(_) ? C(D) : this.parentUntilEditor(_, S, D); }, x.prototype.equal = function(_) { return _ instanceof x ? this.elems[0] === _.elems[0] : _ instanceof HTMLElement ? this.elems[0] === _ : !1; }, x.prototype.insertBefore = function(_) { var S, M = C(_), T = M.elems[0]; return T ? (0, i.default)(S = this).call(S, function(D) { var N = T.parentNode; N == null || N.insertBefore(D, T); }) : this; }, x.prototype.insertAfter = function(_) { var S, M = C(_), T = M.elems[0], D = T && T.nextSibling; return T ? (0, i.default)(S = this).call(S, function(N) { var B = T.parentNode; D ? B.insertBefore(N, D) : B.appendChild(N); }) : this; }, x.prototype.data = function(_, S) { if (S != null) this.dataSource.set(_, S); else return this.dataSource.get(_); }, x.prototype.getNodeTop = function(_) { if (this.length < 1) return this; var S = this.parent(); return _.$textElem.equal(this) || _.$textElem.equal(S) ? this : (S.prior = this, S.getNodeTop(_)); }, x.prototype.getOffsetData = function() { var _ = this.elems[0]; return { top: _.offsetTop, left: _.offsetLeft, width: _.offsetWidth, height: _.offsetHeight, parent: _.offsetParent }; }, x.prototype.scrollTop = function(_) { var S = this.elems[0]; S.scrollTo({ top: _ }); }, x; }() ); n.DomElement = E; function C() { for (var x = [], _ = 0; _ < arguments.length; _++) x[_] = arguments[_]; return new ((0, c.default)(E).apply(E, v.__spreadArrays([void 0], x)))(); } n.default = C; }, /* 4 */ /***/ function(o, n, e) { o.exports = e(180); }, /* 5 */ /***/ function(o, n, e) { var t = e(8), a = e(71).f, r = e(101), i = e(9), u = e(40), h = e(19), s = e(16), m = function(f) { var l = function(d, c, v) { if (this instanceof f) { switch (arguments.length) { case 0: return new f(); case 1: return new f(d); case 2: return new f(d, c); } return new f(d, c, v); } return f.apply(this, arguments); }; return l.prototype = f.prototype, l; }; o.exports = function(f, l) { var d = f.target, c = f.global, v = f.stat, p = f.proto, g = c ? t : v ? t[d] : (t[d] || {}).prototype, A = c ? i : i[d] || (i[d] = {}), y = A.prototype, w, b, E, C, x, _, S, M, T; for (C in l) w = r(c ? C : d + (v ? "." : "#") + C, f.forced), b = !w && g && s(g, C), _ = A[C], b && (f.noTargetGet ? (T = a(g, C), S = T && T.value) : S = g[C]), x = b && S ? S : l[C], !(b && typeof _ == typeof x) && (f.bind && b ? M = u(x, t) : f.wrap && b ? M = m(x) : p && typeof x == "function" ? M = u(Function.call, x) : M = x, (f.sham || x && x.sham || _ && _.sham) && h(M, "sham", !0), A[C] = M, p && (E = d + "Prototype", s(i, E) || h(i, E, {}), i[E][C] = x, f.real && y && !y[C] && h(y, C, x))); }; }, /* 6 */ /***/ function(o, n, e) { var t = e(0), a = t(e(92)), r = t(e(1)), i = t(e(256)), u = t(e(45)), h = t(e(46)), s = t(e(89)), m = t(e(26)); (0, r.default)(n, "__esModule", { value: !0 }), n.hexToRgb = n.getRandomCode = n.toArray = n.deepClone = n.isFunction = n.debounce = n.throttle = n.arrForEach = n.forEach = n.replaceSpecialSymbol = n.replaceHtmlSymbol = n.getRandom = n.UA = void 0; var f = e(2), l = ( /** @class */ function() { function _() { this._ua = navigator.userAgent; var S = this._ua.match(/(Edge?)\/(\d+)/); this.isOldEdge = !!(S && S[1] == "Edge" && (0, i.default)(S[2]) < 19), this.isFirefox = !!(/Firefox\/\d+/.test(this._ua) && !/Seamonkey\/\d+/.test(this._ua)); } return _.prototype.isIE = function() { return "ActiveXObject" in window; }, _.prototype.isWebkit = function() { return /webkit/i.test(this._ua); }, _; }() ); n.UA = new l(); function d(_) { var S; return _ === void 0 && (_ = ""), _ + (0, u.default)(S = Math.random().toString()).call(S, 2); } n.getRandom = d; function c(_) { return _.replace(/</gm, "&lt;").replace(/>/gm, "&gt;").replace(/"/gm, "&quot;").replace(/(\r\n|\r|\n)/g, "<br/>"); } n.replaceHtmlSymbol = c; function v(_) { return _.replace(/&lt;/gm, "<").replace(/&gt;/gm, ">").replace(/&quot;/gm, '"'); } n.replaceSpecialSymbol = v; function p(_, S) { for (var M in _) if (Object.prototype.hasOwnProperty.call(_, M)) { var T = S(M, _[M]); if (T === !1) break; } } n.forEach = p; function g(_, S) { var M, T, D, N = _.length || 0; for (M = 0; M < N && (T = _[M], D = S.call(_, T, M), D !== !1); M++) ; } n.arrForEach = g; function A(_, S) { S === void 0 && (S = 200); var M = !1; return function() { for (var T = this, D = [], N = 0; N < arguments.length; N++) D[N] = arguments[N]; M || (M = !0, (0, h.default)(function() { M = !1, _.call.apply(_, f.__spreadArrays([T], D)); }, S)); }; } n.throttle = A; function y(_, S) { S === void 0 && (S = 200); var M = 0; return function() { for (var T = this, D = [], N = 0; N < arguments.length; N++) D[N] = arguments[N]; M && window.clearTimeout(M), M = (0, h.default)(function() { M = 0, _.call.apply(_, f.__spreadArrays([T], D)); }, S); }; } n.debounce = y; function w(_) { return typeof _ == "function"; } n.isFunction = w; function b(_) { if ((0, a.default)(_) !== "object" || typeof _ == "function" || _ === null) return _; var S; (0, s.default)(_) && (S = []), (0, s.default)(_) || (S = {}); for (var M in _) Object.prototype.hasOwnProperty.call(_, M) && (S[M] = b(_[M])); return S; } n.deepClone = b; function E(_) { return (0, u.default)(Array.prototype).call(_); } n.toArray = E; function C() { var _; return (0, u.default)(_ = Math.random().toString(36)).call(_, -5); } n.getRandomCode = C; function x(_) { var S = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(_); if (S == null) return null; var M = (0, m.default)(S).call(S, function(B) { return (0, i.default)(B, 16); }), T = M[1], D = M[2], N = M[3]; return "rgb(" + T + ", " + D + ", " + N + ")"; } n.hexToRgb = x; }, /* 7 */ /***/ function(o, n, e) { var t = e(0), a = t(e(1)); (0, a.default)(n, "__esModule", { value: !0 }), n.EMPTY_P_REGEX = n.EMPTY_P_LAST_REGEX = n.EMPTY_P = n.urlRegex = n.EMPTY_FN = void 0; function r() { } n.EMPTY_FN = r, n.urlRegex = /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g, n.EMPTY_P = '<p data-we-empty-p=""><br></p>', n.EMPTY_P_LAST_REGEX = /<p data-we-empty-p=""><br\/?><\/p>$/gim, n.EMPTY_P_REGEX = /<p data-we-empty-p="">/gim; }, /* 8 */ /***/ function(o, n, e) { (function(t) { var a = function(r) { return r && r.Math == Math && r; }; o.exports = // eslint-disable-next-line no-undef a(typeof globalThis == "object" && globalThis) || a(typeof window == "object" && window) || a(typeof self == "object" && self) || a(typeof t == "object" && t) || // eslint-disable-next-line no-new-func Function("return this")(); }).call(this, e(145)); }, /* 9 */ /***/ function(o, n) { o.exports = {}; }, /* 10 */ /***/ function(o, n, e) { var t = e(8), a = e(74), r = e(16), i = e(64), u = e(76), h = e(106), s = a("wks"), m = t.Symbol, f = h ? m : m && m.withoutSetter || i; o.exports = function(l) { return r(s, l) || (u && r(m, l) ? s[l] = m[l] : s[l] = f("Symbol." + l)), s[l]; }; }, /* 11 */ /***/ function(o, n) { o.exports = function(e) { try { return !!e(); } catch (t) { return !0; } }; }, /* 12 */ /***/ function(o, n, e) { var t = e(9), a = e(16), r = e(93), i = e(18).f; o.exports = function(u) { var h = t.Symbol || (t.Symbol = {}); a(h, u) || i(h, u, { value: r.f(u) }); }; }, /* 13 */ /***/ function(o, n) { o.exports = function(e) { return typeof e == "object" ? e !== null : typeof e == "function"; }; }, /* 14 */ /***/ function(o, n, e) { var t = e(11); o.exports = !t(function() { return Object.defineProperty({}, 1, { get: function() { return 7; } })[1] != 7; }); }, /* 15 */ /***/ function(o, n, e) { var t = e(9); o.exports = function(a) { return t[a + "Prototype"]; }; }, /* 16 */ /***/ function(o, n) { var e = {}.hasOwnProperty; o.exports = function(t, a) { return e.call(t, a); }; }, /* 17 */ /***/ function(o, n, e) { o.exports = e(192); }, /* 18 */ /***/ function(o, n, e) { var t = e(14), a = e(100), r = e(25), i = e(60), u = Object.defineProperty; n.f = t ? u : function(h, s, m) { if (r(h), s = i(s, !0), r(m), a) try { return u(h, s, m); } catch (f) { } if ("get" in m || "set" in m) throw TypeError("Accessors not supported"); return "value" in m && (h[s] = m.value), h; }; }, /* 19 */ /***/ function(o, n, e) { var t = e(14), a = e(18), r = e(48); o.exports = t ? function(i, u, h) { return a.f(i, u, r(1, h)); } : function(i, u, h) { return i[u] = h, i; }; }, /* 20 */ /***/ function(o, n, e) { var t = /* @__PURE__ */ function() { var p; return function() { return typeof p == "undefined" && (p = !!(window && document && document.all && !window.atob)), p; }; }(), a = /* @__PURE__ */ function() { var p = {}; return function(g) { if (typeof p[g] == "undefined") { var A = document.querySelector(g); if (window.HTMLIFrameElement && A instanceof window.HTMLIFrameElement) try { A = A.contentDocument.head; } catch (y) { A = null; } p[g] = A; } return p[g]; }; }(), r = []; function i(p) { for (var g = -1, A = 0; A < r.length; A++) if (r[A].identifier === p) { g = A; break; } return g; } function u(p, g) { for (var A = {}, y = [], w = 0; w < p.length; w++) { var b = p[w], E = g.base ? b[0] + g.base : b[0], C = A[E] || 0, x = "".concat(E, " ").concat(C); A[E] = C + 1; var _ = i(x), S = { css: b[1], media: b[2], sourceMap: b[3] }; _ !== -1 ? (r[_].references++, r[_].updater(S)) : r.push({ identifier: x, updater: v(S, g), references: 1 }), y.push(x); } return y; } function h(p) { var g = document.createElement("style"), A = p.attributes || {}; if (typeof A.nonce == "undefined") { var y = e.nc; y && (A.nonce = y); } if (Object.keys(A).forEach(function(b) { g.setAttribute(b, A[b]); }), typeof p.insert == "function") p.insert(g); else { var w = a(p.insert || "head"); if (!w) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); w.appendChild(g); } return g; } function s(p) { if (p.parentNode === null) return !1; p.parentNode.removeChild(p); } var m = /* @__PURE__ */ function() { var p = []; return function(g, A) { return p[g] = A, p.filter(Boolean).join(` `); }; }(); function f(p, g, A, y) { var w = A ? "" : y.media ? "@media ".concat(y.media, " {").concat(y.css, "}") : y.css; if (p.styleSheet) p.styleSheet.cssText = m(g, w); else { var b = document.createTextNode(w), E = p.childNodes; E[g] && p.removeChild(E[g]), E.length ? p.insertBefore(b, E[g]) : p.appendChild(b); } } function l(p, g, A) { var y = A.css, w = A.media, b = A.sourceMap; if (w ? p.setAttribute("media", w) : p.removeAttribute("media"), b && typeof btoa != "undefined" && (y += ` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(b)))), " */")), p.styleSheet) p.styleSheet.cssText = y; else { for (; p.firstChild; ) p.removeChild(p.firstChild); p.appendChild(document.createTextNode(y)); } } var d = null, c = 0; function v(p, g) { var A, y, w; if (g.singleton) { var b = c++; A = d || (d = h(g)), y = f.bind(null, A, b, !1), w = f.bind(null, A, b, !0); } else A = h(g), y = l.bind(null, A, g), w = function() { s(A); }; return y(p), function(E) { if (E) { if (E.css === p.css && E.media === p.media && E.sourceMap === p.sourceMap) return; y(p = E); } else w(); }; } o.exports = function(p, g) { g = g || {}, !g.singleton && typeof g.singleton != "boolean" && (g.singleton = t()), p = p || []; var A = u(p, g); return function(y) { if (y = y || [], Object.prototype.toString.call(y) === "[object Array]") { for (var w = 0; w < A.length; w++) { var b = A[w], E = i(b); r[E].references--; } for (var C = u(y, g), x = 0; x < A.length; x++) { var _ = A[x], S = i(_); r[S].references === 0 && (r[S].updater(), r.splice(S, 1)); } A = C; } }; }; }, /* 21 */ /***/ function(o, n, e) { o.exports = function(r) { var i = []; return i.toSt