!function(t, e) { "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.wangEditor = e() : t.wangEditor = e() }(window, (function() { return function(t) { var e = {}; function n(o) { if (e[o]) return e[o].exports; var r = e[o] = { i: o, l: !1, exports: {} }; return t[o].call(r.exports, r, r.exports, n), r.l = !0, r.exports } return n.m = t, n.c = e, n.d = function(t, e, o) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: o }) } , n.r = function(t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) } , n.t = function(t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var o = Object.create(null); if (n.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var r in t) n.d(o, r, function(e) { return t[e] } .bind(null, r)); return o } , n.n = function(t) { var e = t && t.__esModule ? function() { return t.default } : function() { return t } ; return n.d(e, "a", e), e } , n.o = function(t, e) { return Object.prototype.hasOwnProperty.call(t, e) } , n.p = "", n(n.s = 125) }([function(t, e) { t.exports = function(t) { return t && t.__esModule ? t : { default: t } } } , function(t, e, n) { t.exports = n(126) } , function(t, e, n) { "use strict"; var o = n(0) , r = o(n(105)) , i = o(n(106)) , a = o(n(107)) , u = o(n(60)) , l = o(n(108)) , c = o(n(23)) , s = o(n(39)) , f = o(n(6)) , d = o(n(113)) , p = o(n(50)) , A = o(n(1)); (0, A.default)(e, "__esModule", { value: !0 }), e.DomElement = void 0; var v = []; function h(t) { return (0, p.default)(Array.prototype).call(t) } function g(t) { var e = [] , n = []; return e = (0, d.default)(t) ? t : t.split(";"), (0, f.default)(e).call(e, (function(t) { var e, o = (0, s.default)(e = t.split(":")).call(e, (function(t) { return (0, c.default)(t).call(t) } )); 2 === o.length && n.push(o[0] + ":" + o[1]) } )), n } var m = function() { function t(e) { if (this.selector = "", this.elems = [], this.length = this.elems.length, this.dataSource = new l.default, e) { if (e instanceof t) return e; var n = []; this.selector = e; var o, r, i = e.nodeType; if (9 === i) n = [e]; else if (1 === i) n = [e]; else if (function(t) { return !!t && (t instanceof HTMLCollection || t instanceof NodeList) }(e)) n = h(e); else if (e instanceof Array) n = e; else if ("string" == typeof e) { var a; e = (0, c.default)(a = e.replace("/\n/mg", "")).call(a), 0 === (0, u.default)(e).call(e, "<") ? (o = e, (r = document.createElement("div")).innerHTML = o, n = h(r.children)) : n = function(t) { return h(document.querySelectorAll(t)) }(e) } var s = n.length; if (!s) return this; for (var f = 0; f < s; f++) this.elems.push(n[f]); this.length = s } } return (0, A.default)(t.prototype, "id", { get: function() { return this.elems[0].id }, enumerable: !1, configurable: !0 }), t.prototype.forEach = function(t) { for (var e = 0; e < this.length; e++) { var n = this.elems[e]; if (!1 === t.call(n, n, e)) break } return this } , t.prototype.clone = function(t) { var e; void 0 === t && (t = !1); var n = []; return (0, f.default)(e = this.elems).call(e, (function(e) { n.push(e.cloneNode(!!t)) } )), y(n) } , t.prototype.get = function(t) { void 0 === t && (t = 0); var e = this.length; return t >= e && (t %= e), y(this.elems[t]) } , t.prototype.first = function() { return this.get(0) } , t.prototype.last = function() { var t = this.length; return this.get(t - 1) } , t.prototype.on = function(t, e, n) { var o; return t ? ("function" == typeof e && (n = e, e = ""), (0, f.default)(o = this).call(o, (function(o) { if (e) { var r = function(t) { var o = t.target; o.matches(e) && n.call(o, t) }; o.addEventListener(t, r), v.push({ elem: o, selector: e, fn: n, agentFn: r }) } else o.addEventListener(t, n) } ))) : this } , t.prototype.off = function(t, e, n) { var o; return t ? ("function" == typeof e && (n = e, e = ""), (0, f.default)(o = this).call(o, (function(o) { if (e) { for (var r = -1, i = 0; i < v.length; i++) { var u = v[i]; if (u.selector === e && u.fn === n && u.elem === o) { r = i; break } } if (-1 !== r) { var l = (0, a.default)(v).call(v, r, 1)[0].agentFn; o.removeEventListener(t, l) } } else o.removeEventListener(t, n) } ))) : this } , t.prototype.attr = function(t, e) { var n; return null == e ? this.elems[0].getAttribute(t) || "" : (0, f.default)(n = this).call(n, (function(n) { n.setAttribute(t, e) } )) } , t.prototype.addClass = function(t) { var e; return t ? (0, f.default)(e = this).call(e, (function(e) { if (e.className) { var n = e.className.split(/\s/); n = (0, i.default)(n).call(n, (function(t) { return !!(0, c.default)(t).call(t) } )), (0, u.default)(n).call(n, t) < 0 && n.push(t), e.className = n.join(" ") } else e.className = t } )) : this } , t.prototype.removeClass = function(t) { var e; return t ? (0, f.default)(e = this).call(e, (function(e) { if (e.className) { var n = e.className.split(/\s/); n = (0, i.default)(n).call(n, (function(e) { return !(!(e = (0, c.default)(e).call(e)) || e === t) } )), e.className = n.join(" ") } } )) : this } , t.prototype.hasClass = function(t) { if (void 0 === t && (t = ""), !t) return !1; var e = this.elems[0]; if (!e.className) return !1; var n = e.className.split(/\s/); return (0, r.default)(n).call(n, t) } , t.prototype.css = function(t, e) { var n, o; return o = "" == e ? "" : t + ":" + e + ";", (0, f.default)(n = this).call(n, (function(e) { var n, r = (0, c.default)(n = e.getAttribute("style") || "").call(n); if (r) { var i = g(r); i = (0, s.default)(i).call(i, (function(e) { return 0 === (0, u.default)(e).call(e, t) ? o : e } )), "" != o && (0, u.default)(i).call(i, o) < 0 && i.push(o), "" == o && (i = g(i)), e.setAttribute("style", i.join("; ")) } else e.setAttribute("style", o) } )) } , t.prototype.getBoundingClientRect = function() { return this.elems[0].getBoundingClientRect() } , t.prototype.show = function() { return this.css("display", "block") } , t.prototype.hide = function() { return this.css("display", "none") } , t.prototype.children = function() { var t = this.elems[0]; return t ? y(t.children) : null } , t.prototype.childNodes = function() { var t = this.elems[0]; return t ? y(t.childNodes) : null } , t.prototype.append = function(t) { var e; return (0, f.default)(e = this).call(e, (function(e) { (0, f.default)(t).call(t, (function(t) { e.appendChild(t) } )) } )) } , t.prototype.remove = function() { var t; return (0, f.default)(t = this).call(t, (function(t) { if (t.remove) t.remove(); else { var e = t.parentElement; e && e.removeChild(t) } } )) } , t.prototype.isContain = function(t) { var e = this.elems[0] , n = t.elems[0]; return e.contains(n) } , t.prototype.getSizeData = function() { return this.elems[0].getBoundingClientRect() } , t.prototype.getNodeName = function() { return this.elems[0].nodeName } , t.prototype.getClientHeight = function() { return this.elems[0].clientHeight } , t.prototype.find = function(t) { return y(this.elems[0].querySelectorAll(t)) } , t.prototype.text = function(t) { var e; return t ? (0, f.default)(e = this).call(e, (function(e) { e.innerHTML = t } )) : this.elems[0].innerHTML.replace(/<[^>]+>/g, (function() { return "" } )) } , t.prototype.html = function(t) { var e = this.elems[0]; return t ? (e.innerHTML = t, this) : e.innerHTML } , t.prototype.val = function() { var t, e = this.elems[0]; return (0, c.default)(t = e.value).call(t) } , t.prototype.focus = function() { var t; return (0, f.default)(t = this).call(t, (function(t) { t.focus() } )) } , t.prototype.prev = function() { return y(this.elems[0].previousElementSibling) } , t.prototype.next = function() { return y(this.elems[0].nextElementSibling) } , t.prototype.parent = function() { return y(this.elems[0].parentElement) } , t.prototype.parentUntil = function(t, e) { var n = e || this.elems[0]; if ("BODY" === n.nodeName) return null; var o = n.parentElement; return null == o ? null : o.matches(t) ? y(o) : this.parentUntil(t, o) } , t.prototype.equal = function(e) { return e instanceof t ? this.elems[0] === e.elems[0] : e instanceof HTMLElement && this.elems[0] === e } , t.prototype.insertBefore = function(t) { var e, n = y(t).elems[0]; return n ? (0, f.default)(e = this).call(e, (function(t) { n.parentNode.insertBefore(t, n) } )) : this } , t.prototype.insertAfter = function(t) { var e, n = y(t).elems[0], o = n && n.nextSibling; return n ? (0, f.default)(e = this).call(e, (function(t) { var e = n.parentNode; o ? e.insertBefore(t, o) : e.appendChild(t) } )) : this } , t.prototype.data = function(t, e) { if (null == e) return this.dataSource.get(t); this.dataSource.set(t, e) } , t.prototype.getNodeTop = function(t) { if (this.length < 1) return this; var e = this.parent(); return t.$textElem.equal(e) ? this : e.getNodeTop(t) } , t.prototype.getOffsetData = function() { var t = this.elems[0]; return { top: t.offsetTop, left: t.offsetLeft, width: t.offsetWidth, height: t.offsetHeight, parent: t.offsetParent } } , t }(); function y(t) { return new m(t) } e.DomElement = m, e.default = y } , function(t, e, n) { t.exports = n(173) } , function(t, e, n) { "use strict"; var o = n(7) , r = n(62).f , i = n(87) , a = n(12) , u = n(44) , l = n(18) , c = n(15) , s = function(t) { var e = function(e, n, o) { if (this instanceof t) { switch (arguments.length) { case 0: return new t; case 1: return new t(e); case 2: return new t(e,n) } return new t(e,n,o) } return t.apply(this, arguments) }; return e.prototype = t.prototype, e }; t.exports = function(t, e) { var n, f, d, p, A, v, h, g, m = t.target, y = t.global, w = t.stat, x = t.proto, E = y ? o : w ? o[m] : (o[m] || {}).prototype, b = y ? a : a[m] || (a[m] = {}), _ = b.prototype; for (d in e) n = !i(y ? d : m + (w ? "." : "#") + d, t.forced) && E && c(E, d), A = b[d], n && (v = t.noTargetGet ? (g = r(E, d)) && g.value : E[d]), p = n && v ? v : e[d], n && typeof A == typeof p || (h = t.bind && n ? u(p, o) : t.wrap && n ? s(p) : x && "function" == typeof p ? u(Function.call, p) : p, (t.sham || p && p.sham || A && A.sham) && l(h, "sham", !0), b[d] = h, x && (c(a, f = m + "Prototype") || l(a, f, {}), a[f][d] = p, t.real && _ && !_[d] && l(_, d, p))) } } , function(t, e, n) { t.exports = n(290) } , function(t, e, n) { t.exports = n(168) } , function(t, e, n) { (function(e) { var n = function(t) { return t && t.Math == Math && t }; t.exports = n("object" == typeof globalThis && globalThis) || n("object" == typeof window && window) || n("object" == typeof self && self) || n("object" == typeof e && e) || Function("return this")() } ).call(this, n(129)) } , function(t, e, n) { var o = n(7) , r = n(66) , i = n(15) , a = n(56) , u = n(68) , l = n(92) , c = r("wks") , s = o.Symbol , f = l ? s : s && s.withoutSetter || a; t.exports = function(t) { return i(c, t) || (u && i(s, t) ? c[t] = s[t] : c[t] = f("Symbol." + t)), c[t] } } , function(t, e, n) { "use strict"; var o = n(0) , r = o(n(113)) , i = o(n(114)) , a = o(n(83)) , u = o(n(50)) , l = o(n(1)) , c = function() { for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length; var o = Array(t) , r = 0; for (e = 0; e < n; e++) for (var i = arguments[e], a = 0, u = i.length; a < u; a++, r++) o[r] = i[a]; return o }; (0, l.default)(e, "__esModule", { value: !0 }), e.deepClone = e.isFunction = e.debounce = e.throttle = e.arrForEach = e.forEach = e.replaceSpecialSymbol = e.replaceHtmlSymbol = e.getRandom = e.UA = void 0, e.UA = { _ua: navigator.userAgent, isWebkit: function() { return /webkit/i.test(this._ua) }, isIE: function() { return "ActiveXObject"in window } }, e.getRandom = function(t) { var e; return void 0 === t && (t = ""), t + (0, u.default)(e = Math.random().toString()).call(e, 2) } , e.replaceHtmlSymbol = function(t) { return t.replace(//gm, ">").replace(/"/gm, """).replace(/(\r\n|\r|\n)/g, "
") } , e.replaceSpecialSymbol = function(t) { return t.replace(/</gm, "<").replace(/>/gm, ">").replace(/"/gm, '"') } , e.forEach = function(t, e) { for (var n in t) { if (Object.prototype.hasOwnProperty.call(t, n)) if (!1 === e(n, t[n])) break } } , e.arrForEach = function(t, e) { var n, o, r = t.length || 0; for (n = 0; n < r && (o = t[n], !1 !== e.call(t, o, n)); n++) ; } , e.throttle = function(t, e) { void 0 === e && (e = 200); var n = !1; return function() { for (var o = [], r = 0; r < arguments.length; r++) o[r] = arguments[r]; n || (n = !0, (0, a.default)((function() { n = !1, t.call.apply(t, c([null], o)) } ), e)) } } , e.debounce = function(t, e) { void 0 === e && (e = 200); var n = 0; return function() { for (var o = [], r = 0; r < arguments.length; r++) o[r] = arguments[r]; n && window.clearTimeout(n), n = window.setTimeout((function() { n = 0, t.call.apply(t, c([null], o)) } ), e) } } , e.isFunction = function(t) { return "function" == typeof t } , e.deepClone = function t(e) { if ("object" !== (0, i.default)(e) || "function" == typeof e || null === e) return e; var n; for (var o in (0, r.default)(e) && (n = []), (0, r.default)(e) || (n = {}), e) Object.prototype.hasOwnProperty.call(e, o) && (n[o] = t(e[o])); return n } } , function(t, e, n) { var o = n(12) , r = n(15) , i = n(82) , a = n(16).f; t.exports = function(t) { var e = o.Symbol || (o.Symbol = {}); r(e, t) || a(e, t, { value: i.f(t) }) } } , function(t, e) { t.exports = function(t) { try { return !!t() } catch (t) { return !0 } } } , function(t, e) { t.exports = {} } , function(t, e) { t.exports = function(t) { return "object" == typeof t ? null !== t : "function" == typeof t } } , function(t, e, n) { var o = n(11); t.exports = !o((function() { return 7 != Object.defineProperty({}, 1, { get: function() { return 7 } })[1] } )) } , function(t, e) { var n = {}.hasOwnProperty; t.exports = function(t, e) { return n.call(t, e) } } , function(t, e, n) { var o = n(14) , r = n(86) , i = n(20) , a = n(51) , u = Object.defineProperty; e.f = o ? u : function(t, e, n) { if (i(t), e = a(e, !0), i(n), r) try { return u(t, e, n) } catch (t) {} if ("get"in n || "set"in n) throw TypeError("Accessors not supported"); return "value"in n && (t[e] = n.value), t } } , function(t, e, n) { var o = n(12); t.exports = function(t) { return o[t + "Prototype"] } } , function(t, e, n) { var o = n(14) , r = n(16) , i = n(42); t.exports = o ? function(t, e, n) { return r.f(t, e, i(1, n)) } : function(t, e, n) { return t[e] = n, t } } , function(t, e, n) { "use strict"; var o, r = n(0), i = r(n(6)), a = r(n(1)), u = r(n(3)), l = r(n(5)), c = (o = function(t, e) { return (o = l.default || { __proto__: [] }instanceof Array && function(t, e) { t.__proto__ = e } || function(t, e) { for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) } )(t, e) } , function(t, e) { function n() { this.constructor = t } o(t, e), t.prototype = null === e ? (0, u.default)(e) : (n.prototype = e.prototype, new n) } ), s = function(t) { return t && t.__esModule ? t : { default: t } }; (0, a.default)(e, "__esModule", { value: !0 }); var f = s(n(2)) , d = s(n(84)) , p = s(n(122)) , A = function(t) { function e(e, n, o) { var r = t.call(this, e, n) || this; o.title = n.i18next.t("menus.dropListMenu." + o.title); var a, u = "zh-CN" === n.config.lang ? "" : "w-e-drop-list-tl"; "" !== u && "list" === o.type && (0, i.default)(a = o.list).call(a, (function(t) { var e = t.$elem , n = f.default(e.children()); if (n.length > 0) { var o = null == n ? void 0 : n.getNodeName(); o && "I" === o && e.addClass(u) } } )); var l = new p.default(r,o); return r.dropList = l, e.on("mouseenter", (function() { var t; null != n.selection.getRange() && (e.css("z-index", n.zIndex.get("menu")), (0, i.default)(t = n.txt.eventHooks.dropListMenuHoverEvents).call(t, (function(t) { return t() } )), l.showTimeoutId = window.setTimeout((function() { l.show() } ), 200)) } )).on("mouseleave", (function() { e.css("z-index", "auto"), l.hideTimeoutId = window.setTimeout((function() { l.hide() } )) } )), r } return c(e, t), e }(d.default); e.default = A } , function(t, e, n) { var o = n(13); t.exports = function(t) { if (!o(t)) throw TypeError(String(t) + " is not an object"); return t } } , function(t, e, n) { "use strict"; var o, r = function() { return void 0 === o && (o = Boolean(window && document && document.all && !window.atob)), o }, i = function() { var t = {}; return function(e) { if (void 0 === t[e]) { var n = document.querySelector(e); if (window.HTMLIFrameElement && n instanceof window.HTMLIFrameElement) try { n = n.contentDocument.head } catch (t) { n = null } t[e] = n } return t[e] } }(), a = []; function u(t) { for (var e = -1, n = 0; n < a.length; n++) if (a[n].identifier === t) { e = n; break } return e } function l(t, e) { for (var n = {}, o = [], r = 0; r < t.length; r++) { var i = t[r] , l = e.base ? i[0] + e.base : i[0] , c = n[l] || 0 , s = "".concat(l, " ").concat(c); n[l] = c + 1; var f = u(s) , d = { css: i[1], media: i[2], sourceMap: i[3] }; -1 !== f ? (a[f].references++, a[f].updater(d)) : a.push({ identifier: s, updater: h(d, e), references: 1 }), o.push(s) } return o } function c(t) { var e = document.createElement("style") , o = t.attributes || {}; if (void 0 === o.nonce) { var r = n.nc; r && (o.nonce = r) } if (Object.keys(o).forEach((function(t) { e.setAttribute(t, o[t]) } )), "function" == typeof t.insert) t.insert(e); else { var a = i(t.insert || "head"); if (!a) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); a.appendChild(e) } return e } var s, f = (s = [], function(t, e) { return s[t] = e, s.filter(Boolean).join("\n") } ); function d(t, e, n, o) { var r = n ? "" : o.media ? "@media ".concat(o.media, " {").concat(o.css, "}") : o.css; if (t.styleSheet) t.styleSheet.cssText = f(e, r); else { var i = document.createTextNode(r) , a = t.childNodes; a[e] && t.removeChild(a[e]), a.length ? t.insertBefore(i, a[e]) : t.appendChild(i) } } function p(t, e, n) { var o = n.css , r = n.media , i = n.sourceMap; if (r ? t.setAttribute("media", r) : t.removeAttribute("media"), i && btoa && (o += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i)))), " */")), t.styleSheet) t.styleSheet.cssText = o; else { for (; t.firstChild; ) t.removeChild(t.firstChild); t.appendChild(document.createTextNode(o)) } } var A = null , v = 0; function h(t, e) { var n, o, r; if (e.singleton) { var i = v++; n = A || (A = c(e)), o = d.bind(null, n, i, !1), r = d.bind(null, n, i, !0) } else n = c(e), o = p.bind(null, n, e), r = function() { !function(t) { if (null === t.parentNode) return !1; t.parentNode.removeChild(t) }(n) } ; return o(t), function(e) { if (e) { if (e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap) return; o(t = e) } else r() } } t.exports = function(t, e) { (e = e || {}).singleton || "boolean" == typeof e.singleton || (e.singleton = r()); var n = l(t = t || [], e); return function(t) { if (t = t || [], "[object Array]" === Object.prototype.toString.call(t)) { for (var o = 0; o < n.length; o++) { var r = u(n[o]); a[r].references-- } for (var i = l(t, e), c = 0; c < n.length; c++) { var s = u(n[c]); 0 === a[s].references && (a[s].updater(), a.splice(s, 1)) } n = i } } } } , function(t, e, n) { "use strict"; t.exports = function(t) { var e = []; return e.toString = function() { return this.map((function(e) { var n = function(t, e) { var n = t[1] || "" , o = t[3]; if (!o) return n; if (e && "function" == typeof btoa) { var r = (a = o, u = btoa(unescape(encodeURIComponent(JSON.stringify(a)))), l = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u), "/*# ".concat(l, " */")) , i = o.sources.map((function(t) { return "/*# sourceURL=".concat(o.sourceRoot || "").concat(t, " */") } )); return [n].concat(i).concat([r]).join("\n") } var a, u, l; return [n].join("\n") }(e, t); return e[2] ? "@media ".concat(e[2], " {").concat(n, "}") : n } )).join("") } , e.i = function(t, n, o) { "string" == typeof t && (t = [[null, t, ""]]); var r = {}; if (o) for (var i = 0; i < this.length; i++) { var a = this[i][0]; null != a && (r[a] = !0) } for (var u = 0; u < t.length; u++) { var l = [].concat(t[u]); o && r[l[0]] || (n && (l[2] ? l[2] = "".concat(n, " and ").concat(l[2]) : l[2] = n), e.push(l)) } } , e } } , function(t, e, n) { t.exports = n(201) } , function(t, e, n) { "use strict"; var o, r = n(0), i = r(n(1)), a = r(n(3)), u = r(n(5)), l = (o = function(t, e) { return (o = u.default || { __proto__: [] }instanceof Array && function(t, e) { t.__proto__ = e } || function(t, e) { for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) } )(t, e) } , function(t, e) { function n() { this.constructor = t } o(t, e), t.prototype = null === e ? (0, a.default)(e) : (n.prototype = e.prototype, new n) } ), c = function(t) { return t && t.__esModule ? t : { default: t } }; (0, i.default)(e, "__esModule", { value: !0 }); var s = function(t) { function e(e, n) { return t.call(this, e, n) || this } return l(e, t), e }(c(n(84)).default); e.default = s } , function(t, e, n) { var o = n(14) , r = n(11) , i = n(15) , a = Object.defineProperty , u = {} , l = function(t) { throw t }; t.exports = function(t, e) { if (i(u, t)) return u[t]; e || (e = {}); var n = [][t] , c = !!i(e, "ACCESSORS") && e.ACCESSORS , s = i(e, 0) ? e[0] : l , f = i(e, 1) ? e[1] : void 0; return u[t] = !!n && !r((function() { if (c && !o) return !0; var t = { length: -1 }; c ? a(t, 1, { enumerable: !0, get: l }) : t[1] = 1, n.call(t, s, f) } )) } } , function(t, e, n) { "use strict"; var o = n(0) , r = o(n(120)) , i = o(n(61)) , a = o(n(6)) , u = function(t) { return t && t.__esModule ? t : { default: t } }; (0, o(n(1)).default)(e, "__esModule", { value: !0 }); var l = u(n(2)) , c = n(40) , s = function() { function t(e, n) { this.menu = e, this.conf = n, this.$container = l.default('
'); var o = e.editor; o.txt.eventHooks.clickEvents.push(t.hideCurAllPanels), o.txt.eventHooks.toolbarClickEvents.push(t.hideCurAllPanels), o.txt.eventHooks.dropListMenuHoverEvents.push(t.hideCurAllPanels) } return t.prototype.create = function() { var e = this , n = this.menu; if (!t.createdMenus.has(n)) { var o = this.conf , r = this.$container , u = o.width || 300 , s = n.editor.$toolbarElem.getBoundingClientRect() , f = n.$elem.getBoundingClientRect() , d = s.height + s.top - f.top , p = (s.width - u) / 2 + s.left - f.left; r.css("width", u + "px").css("margin-top", d + "px").css("margin-left", p + "px").css("z-index", n.editor.zIndex.get("panel")); var A = l.default(''); r.append(A), A.on("click", (function() { e.remove() } )); var v = l.default('') , h = l.default('
'); r.append(v).append(h); var g = o.height; g && h.css("height", g + "px").css("overflow-y", "auto"); var m = o.tabs || [] , y = [] , w = []; (0, a.default)(m).call(m, (function(t, e) { if (t) { var n = t.title || "" , o = t.tpl || "" , r = l.default('
  • ' + n + "
  • "); v.append(r); var i = l.default(o); h.append(i), y.push(r), w.push(i), 0 === e ? (r.data("active", !0), r.addClass("w-e-active")) : i.hide(), r.on("click", (function() { r.data("active") || ((0, a.default)(y).call(y, (function(t) { t.data("active", !1), t.removeClass("w-e-active") } )), (0, a.default)(w).call(w, (function(t) { t.hide() } )), r.data("active", !0), r.addClass("w-e-active"), i.show()) } )) } } )), r.on("click", (function(t) { t.stopPropagation() } )), n.$elem.append(r), (0, a.default)(m).call(m, (function(t, n) { if (t) { var o = t.events || []; (0, a.default)(o).call(o, (function(t) { var o = t.selector , r = t.type , a = t.fn || c.EMPTY_FN , u = w[n]; (0, i.default)(u).call(u, o).on(r, (function(t) { t.stopPropagation(), a(t) && e.remove() } )) } )) } } )); var x = (0, i.default)(r).call(r, "input[type=text],textarea"); x.length && x.get(0).focus(), t.hideCurAllPanels(), n.setPanel(this), t.createdMenus.add(n) } } , t.prototype.remove = function() { var e = this.menu , n = this.$container; n && n.remove(), t.createdMenus.delete(e) } , t.hideCurAllPanels = function() { var e; 0 !== t.createdMenus.size && (0, a.default)(e = t.createdMenus).call(e, (function(t) { var e = t.panel; e && e.remove() } )) } , t.createdMenus = new r.default, t }(); e.default = s } , function(t, e, n) { var o = n(64) , r = n(43); t.exports = function(t) { return o(r(t)) } } , function(t, e) { var n = {}.toString; t.exports = function(t) { return n.call(t).slice(8, -1) } } , function(t, e, n) { var o = n(73) , r = n(16).f , i = n(18) , a = n(15) , u = n(154) , l = n(8)("toStringTag"); t.exports = function(t, e, n, c) { if (t) { var s = n ? t : t.prototype; a(s, l) || r(s, l, { configurable: !0, value: e }), c && !o && i(s, "toString", u) } } } , function(t, e, n) { "use strict"; var o, r = n(0), i = r(n(1)), a = r(n(3)), u = r(n(5)), l = (o = function(t, e) { return (o = u.default || { __proto__: [] }instanceof Array && function(t, e) { t.__proto__ = e } || function(t, e) { for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) } )(t, e) } , function(t, e) { function n() { this.constructor = t } o(t, e), t.prototype = null === e ? (0, a.default)(e) : (n.prototype = e.prototype, new n) } ), c = function(t) { return t && t.__esModule ? t : { default: t } }; (0, i.default)(e, "__esModule", { value: !0 }); var s = function(t) { function e(e, n) { return t.call(this, e, n) || this } return l(e, t), e.prototype.setPanel = function(t) { this.panel = t } , e }(c(n(84)).default); e.default = s } , function(t, e) { t.exports = function(t) { if ("function" != typeof t) throw TypeError(String(t) + " is not a function"); return t } } , function(t, e, n) { var o, r, i, a = n(149), u = n(7), l = n(13), c = n(18), s = n(15), f = n(55), d = n(45), p = u.WeakMap; if (a) { var A = new p , v = A.get , h = A.has , g = A.set; o = function(t, e) { return g.call(A, t, e), e } , r = function(t) { return v.call(A, t) || {} } , i = function(t) { return h.call(A, t) } } else { var m = f("state"); d[m] = !0, o = function(t, e) { return c(t, m, e), e } , r = function(t) { return s(t, m) ? t[m] : {} } , i = function(t) { return s(t, m) } } t.exports = { set: o, get: r, has: i, enforce: function(t) { return i(t) ? r(t) : o(t, {}) }, getterFor: function(t) { return function(e) { var n; if (!l(e) || (n = r(e)).type !== t) throw TypeError("Incompatible receiver, " + t + " required"); return n } } } } , function(t, e) { t.exports = !0 } , function(t, e, n) { var o = n(43); t.exports = function(t) { return Object(o(t)) } } , function(t, e, n) { var o = n(54) , r = Math.min; t.exports = function(t) { return t > 0 ? r(o(t), 9007199254740991) : 0 } } , function(t, e, n) { var o = n(12) , r = n(7) , i = function(t) { return "function" == typeof t ? t : void 0 }; t.exports = function(t, e) { return arguments.length < 2 ? i(o[t]) || i(r[t]) : o[t] && o[t][e] || r[t] && r[t][e] } } , function(t, e) { t.exports = {} } , function(t, e, n) { var o = n(44) , r = n(64) , i = n(34) , a = n(35) , u = n(79) , l = [].push , c = function(t) { var e = 1 == t , n = 2 == t , c = 3 == t , s = 4 == t , f = 6 == t , d = 5 == t || f; return function(p, A, v, h) { for (var g, m, y = i(p), w = r(y), x = o(A, v, 3), E = a(w.length), b = 0, _ = h || u, S = e ? _(p, E) : n ? _(p, 0) : void 0; E > b; b++) if ((d || b in w) && (m = x(g = w[b], b, y), t)) if (e) S[b] = m; else if (m) switch (t) { case 3: return !0; case 5: return g; case 6: return b; case 2: l.call(S, g) } else if (s) return !1; return f ? -1 : c || s ? s : S } }; t.exports = { forEach: c(0), map: c(1), filter: c(2), some: c(3), every: c(4), find: c(5), findIndex: c(6) } } , function(t, e, n) { t.exports = n(206) } , function(t, e, n) { "use strict"; (0, n(0)(n(1)).default)(e, "__esModule", { value: !0 }), e.urlRegex = e.imgRegex = e.EMPTY_FN = void 0, e.EMPTY_FN = function() {} , e.imgRegex = /\.(gif|jpg|jpeg|png)$/i, e.urlRegex = /^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/ } , function(t, e, n) { "use strict"; var o = n(0) , r = o(n(6)) , i = o(n(1)) , a = function(t) { return t && t.__esModule ? t : { default: t } }; (0, i.default)(e, "__esModule", { value: !0 }); var u = a(n(2)) , l = function() { function t(t, e, n) { this.editor = t, this.$targetElem = e, this.conf = n, this._show = !1, this._isInsertTextContainer = !1; var o = u.default("
    "); o.addClass("w-e-tooltip"), this.$container = o } return t.prototype.getPositionData = function() { var t = this.$container , e = 0 , n = 0 , o = document.documentElement.scrollTop , r = this.$targetElem.getBoundingClientRect() , i = this.editor.$textElem.getBoundingClientRect() , a = this.$targetElem.getOffsetData() , l = u.default(a.parent) , c = this.editor.$textElem.elems[0].scrollTop; if (this._isInsertTextContainer = l.equal(this.editor.$textContainerElem), this._isInsertTextContainer) { var s = l.getClientHeight() , f = a.top , d = a.left , p = a.height , A = f - c; A > 25 ? (e = A - 20 - 15, t.addClass("w-e-tooltip-up")) : A + p + 20 < s ? (e = A + p + 10, t.addClass("w-e-tooltip-down")) : (e = (A > 0 ? A : 0) + 20 + 10, t.addClass("w-e-tooltip-down")), n = d < 0 ? 0 : d } else r.top < 20 || r.top - i.top < 20 ? (e = r.bottom + o + 5, t.addClass("w-e-tooltip-down")) : (e = r.top + o - 20 - 15, t.addClass("w-e-tooltip-up")), n = r.left < 0 ? 0 : r.left; return { top: e, left: n } } , t.prototype.appendMenus = function() { var t = this , e = this.conf , n = this.editor , o = this.$targetElem , i = this.$container; e.length; (0, r.default)(e).call(e, (function(e, r) { var a = e.$elem , l = u.default("
    "); l.addClass("w-e-tooltip-item-wrapper "), l.append(a), i.append(l), a.on("click", (function(r) { r.preventDefault(), e.onClick(n, o) && t.remove() } )) } )) } , t.prototype.create = function() { var t = this.editor , e = this.$container; this.appendMenus(); var n = this.getPositionData() , o = n.top , r = n.left; e.css("top", o + "px"), e.css("left", r + "px"), e.css("z-index", t.zIndex.get("tooltip")), this._isInsertTextContainer ? this.editor.$textContainerElem.append(e) : u.default("body").append(e), this._show = !0 } , t.prototype.remove = function() { this.$container.remove(), this._show = !1 } , (0, i.default)(t.prototype, "isShow", { get: function() { return this._show }, enumerable: !1, configurable: !0 }), t }(); e.default = l } , function(t, e) { t.exports = function(t, e) { return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e } } } , function(t, e) { t.exports = function(t) { if (null == t) throw TypeError("Can't call method on " + t); return t } } , function(t, e, n) { var o = n(31); t.exports = function(t, e, n) { if (o(t), void 0 === e) return t; switch (n) { case 0: return function() { return t.call(e) } ; case 1: return function(n) { return t.call(e, n) } ; case 2: return function(n, o) { return t.call(e, n, o) } ; case 3: return function(n, o, r) { return t.call(e, n, o, r) } } return function() { return t.apply(e, arguments) } } } , function(t, e) { t.exports = {} } , function(t, e, n) { var o = n(18); t.exports = function(t, e, n, r) { r && r.enumerable ? t[e] = n : o(t, e, n) } } , function(t, e, n) { n(156); var o = n(157) , r = n(7) , i = n(58) , a = n(18) , u = n(37) , l = n(8)("toStringTag"); for (var c in o) { var s = r[c] , f = s && s.prototype; f && i(f) !== l && a(f, l, c), u[c] = u.Array } } , function(t, e, n) { var o = n(28); t.exports = Array.isArray || function(t) { return "Array" == o(t) } } , function(t, e, n) { var o = n(11) , r = n(8) , i = n(78) , a = r("species"); t.exports = function(t) { return i >= 51 || !o((function() { var e = []; return (e.constructor = {})[a] = function() { return { foo: 1 } } , 1 !== e[t](Boolean).foo } )) } } , function(t, e, n) { t.exports = n(213) } , function(t, e, n) { var o = n(13); t.exports = function(t, e) { if (!o(t)) return t; var n, r; if (e && "function" == typeof (n = t.toString) && !o(r = n.call(t))) return r; if ("function" == typeof (n = t.valueOf) && !o(r = n.call(t))) return r; if (!e && "function" == typeof (n = t.toString) && !o(r = n.call(t))) return r; throw TypeError("Can't convert object to primitive value") } } , function(t, e) {} , function(t, e, n) { "use strict"; var o = n(148).charAt , r = n(32) , i = n(67) , a = r.set , u = r.getterFor("String Iterator"); i(String, "String", (function(t) { a(this, { type: "String Iterator", string: String(t), index: 0 }) } ), (function() { var t, e = u(this), n = e.string, r = e.index; return r >= n.length ? { value: void 0, done: !0 } : (t = o(n, r), e.index += t.length, { value: t, done: !1 }) } )) } , function(t, e) { var n = Math.ceil , o = Math.floor; t.exports = function(t) { return isNaN(t = +t) ? 0 : (t > 0 ? o : n)(t) } } , function(t, e, n) { var o = n(66) , r = n(56) , i = o("keys"); t.exports = function(t) { return i[t] || (i[t] = r(t)) } } , function(t, e) { var n = 0 , o = Math.random(); t.exports = function(t) { return "Symbol(" + String(void 0 === t ? "" : t) + ")_" + (++n + o).toString(36) } } , function(t, e, n) { var o, r = n(20), i = n(153), a = n(72), u = n(45), l = n(94), c = n(65), s = n(55), f = s("IE_PROTO"), d = function() {}, p = function(t) { return "