text: !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=129)}([function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){t.exports=n(130)},function(t,e,n){"use strict";var o=n(0),r=o(n(88)),i=o(n(89)),a=o(n(65)),u=o(n(90)),l=o(n(54)),c=o(n(114)),s=o(n(19)),f=o(n(29)),d=o(n(5)),p=o(n(93)),A=o(n(1)),v=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,A.default)(e,"__esModule",{value:!0}),e.DomElement=void 0;var h=n(7),g=[];function m(t){var e=[],n=[];return e=(0,p.default)(t)?t:t.split(";"),(0,d.default)(e).call(e,(function(t){var e,o=(0,f.default)(e=t.split(":")).call(e,(function(t){return(0,s.default)(t).call(t)}));2===o.length&&n.push(o[0]+":"+o[1])})),n}var y=function(){function t(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,e){if(e instanceof t)return e;var n=[],o=e instanceof Node?e.nodeType:-1;if(this.selector=e,1===o||9===o)n=[e];else if(function(t){return!!t&&(t instanceof HTMLCollection||t instanceof NodeList)}(e))n=h.toArray(e);else if(e instanceof Array)n=e;else if("string"==typeof e){var r,i=(0,s.default)(r=e.replace("/\n/mg","")).call(r);n=0===(0,l.default)(i).call(i,"<")?function(t){var e=document.createElement("div");e.innerHTML=t;var n=e.children;return h.toArray(n)}(i):function(t){var e=document.querySelectorAll(t);return h.toArray(e)}(i)}var a=n.length;if(!a)return this;for(var u=0;u<a;u++)this.elems.push(n[u]);this.length=a}}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,d.default)(e=this.elems).call(e,(function(e){n.push(e.cloneNode(!!t))})),w(n)},t.prototype.get=function(t){void 0===t&&(t=0);var e=this.length;return t>=e&&(t%=e),w(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,d.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),g.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,d.default)(o=this).call(o,(function(o){if(e){for(var r=-1,i=0;i<g.length;i++){var a=g[i];if(a.selector===e&&a.fn===n&&a.elem===o){r=i;break}}if(-1!==r){var l=(0,u.default)(g).call(g,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,d.default)(n=this).call(n,(function(n){n.setAttribute(t,e)}))},t.prototype.removeAttr=function(t){var e;(0,d.default)(e=this).call(e,(function(e){e.removeAttribute(t)}))},t.prototype.addClass=function(t){var e;return t?(0,d.default)(e=this).call(e,(function(e){if(e.className){var n=e.className.split(/\s/);n=(0,a.default)(n).call(n,(function(t){return!!(0,s.default)(t).call(t)})),(0,l.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,d.default)(e=this).call(e,(function(e){if(e.className){var n=e.className.split(/\s/);n=(0,a.default)(n).call(n,(function(e){return!(!(e=(0,s.default)(e).call(e))||e===t)})),e.className=n.join(" ")}})):this},t.prototype.hasClass=function(t){if(!t)return!1;var e=this.elems[0];if(!e.className)return!1;var n=e.className.split(/\s/);return(0,i.default)(n).call(n,t)},t.prototype.css=function(t,e){var n,o;return o=""==e?"":t+":"+e+";",(0,d.default)(n=this).call(n,(function(e){var n,r=(0,s.default)(n=e.getAttribute("style")||"").call(n);if(r){var i=m(r);i=(0,f.default)(i).call(i,(function(e){return 0===(0,l.default)(e).call(e,t)?o:e})),""!=o&&(0,l.default)(i).call(i,o)<0&&i.push(o),""==o&&(i=m(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?w(t.children):null},t.prototype.childNodes=function(){var t=this.elems[0];return t?w(t.childNodes):null},t.prototype.replaceChildAll=function(t){for(var e=this.getNode(),n=this.elems[0];n.hasChildNodes();)e.firstChild&&n.removeChild(e.firstChild);this.append(t)},t.prototype.append=function(t){var e;return(0,d.default)(e=this).call(e,(function(e){(0,d.default)(t).call(t,(function(t){e.appendChild(t)}))}))},t.prototype.remove=function(){var t;return(0,d.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.getNode=function(t){return void 0===t&&(t=0),this.elems[t]},t.prototype.getClientHeight=function(){return this.elems[0].clientHeight},t.prototype.find=function(t){return w(this.elems[0].querySelectorAll(t))},t.prototype.text=function(t){var e;return t?(0,d.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,s.default)(t=e.value).call(t)},t.prototype.focus=function(){var t;return(0,d.default)(t=this).call(t,(function(t){t.focus()}))},t.prototype.prev=function(){return w(this.elems[0].previousElementSibling)},t.prototype.next=function(){return w(this.elems[0].nextElementSibling)},t.prototype.parent=function(){return w(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)?w(o):this.parentUntil(t,o)},t.prototype.parentUntilEditor=function(t,e,n){var o=n||this.elems[0];if(w(o).equal(e.$textContainerElem)||w(o).equal(e.$toolbarElem))return null;var r=o.parentElement;return null===r?null:r.matches(t)?w(r):this.parentUntilEditor(t,e,r)},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=w(t).elems[0];return n?(0,d.default)(e=this).call(e,(function(t){n.parentNode.insertBefore(t,n)})):this},t.prototype.insertAfter=function(t){var e,n=w(t).elems[0],o=n&&n.nextSibling;return n?(0,d.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.prototype.scrollTop=function(t){this.elems[0].scrollTo({top:t})},t}();function w(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new((0,r.default)(y).apply(y,v([void 0],t)))}e.DomElement=y,e.default=w},function(t,e,n){t.exports=n(134)},function(t,e,n){"use strict";var o=n(8),r=n(67).f,i=n(101),a=n(10),u=n(47),l=n(17),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,b=y?o:w?o[m]:(o[m]||{}).prototype,E=y?a:a[m]||(a[m]={}),_=E.prototype;for(d in e)n=!i(y?d:m+(w?".":"#")+d,t.forced)&&b&&c(b,d),A=E[d],n&&(v=t.noTargetGet?(g=r(b,d))&&g.value:b[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),E[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(177)},function(t,e,n){t.exports=n(305)},function(t,e,n){"use strict";var o=n(0),r=o(n(29)),i=o(n(93)),a=o(n(94)),u=o(n(121)),l=o(n(43)),c=o(n(260)),s=o(n(1)),f=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,s.default)(e,"__esModule",{value:!0}),e.hexToRgb=e.getRandomCode=e.toArray=e.deepClone=e.isFunction=e.debounce=e.throttle=e.arrForEach=e.forEach=e.replaceSpecialSymbol=e.replaceHtmlSymbol=e.getRandom=e.UA=void 0;var d=function(){function t(){this._ua=navigator.userAgent;var t=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(t&&"Edge"==t[1]&&(0,c.default)(t[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return t.prototype.isIE=function(){return"ActiveXObject"in window},t.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},t}();e.UA=new d,e.getRandom=function(t){var e;return void 0===t&&(t=""),t+(0,l.default)(e=Math.random().toString()).call(e,2)},e.replaceHtmlSymbol=function(t){return t.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")},e.replaceSpecialSymbol=function(t){return t.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/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=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n||(n=!0,(0,u.default)((function(){n=!1,t.call.apply(t,f([o],r))}),e))}},e.debounce=function(t,e){void 0===e&&(e=200);var n=0;return function(){for(var o=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n&&window.clearTimeout(n),n=window.setTimeout((function(){n=0,t.call.apply(t,f([o],r))}),e)}},e.isFunction=function(t){return"function"==typeof t},e.deepClone=function t(e){if("object"!==(0,a.default)(e)||"function"==typeof e||null===e)return e;var n;for(var o in(0,i.default)(e)&&(n=[]),(0,i.default)(e)||(n={}),e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=t(e[o]));return n},e.toArray=function(t){return(0,l.default)(Array.prototype).call(t)},e.getRandomCode=function(){var t;return(0,l.default)(t=Math.random().toString(36)).call(t,-5)},e.hexToRgb=function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(null==e)return null;var n=(0,r.default)(e).call(e,(function(t){return(0,c.default)(t,16)}));return"rgb("+n[1]+", "+n[2]+", "+n[3]+")"}},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}()||Function("return this")()}).call(this,n(133))},function(t,e,n){var o=n(8),r=n(73),i=n(15),a=n(60),u=n(77),l=n(104),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){t.exports={}},function(t,e,n){var o=n(10),r=n(15),i=n(95),a=n(18).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){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var o=n(12);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(10);t.exports=function(t){return o[t+"Prototype"]}},function(t,e,n){var o=n(14),r=n(18),i=n(35);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){var o=n(14),r=n(100),i=n(24),a=n(56),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){t.exports=n(212)},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&&"undefined"!=typeof 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){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(96)).default);e.default=s},function(t,e,n){"use strict";var o,r=n(0),i=r(n(5)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(96)),p=s(n(125)),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){var o=n(14),r=n(12),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";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.videoRegex=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\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/,e.videoRegex=/((<iframe|video|embed|object)\s+[\s\S]*<\/(iframe|video|embed|object))>|<(iframe|video|embed|object)\s+[\s\S]*\/?>/},function(t,e,n){var o=n(68),r=n(46);t.exports=function(t){return o(r(t))}},function(t,e,n){var o=n(10),r=n(8),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,n){t.exports=n(217)},function(t,e,n){t.exports=n(284)},function(t,e,n){"use strict";var o=n(0),r=o(n(124)),i=o(n(30)),a=o(n(5)),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(26),s=function(){function t(e,n){this.menu=e,this.conf=n,this.$container=l.default('<div class="w-e-panel-container"></div>');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('<i class="w-e-icon-close w-e-panel-close"></i>');r.append(A),A.on("click",(function(){e.remove()}));var v=l.default('<ul class="w-e-panel-tab-title"></ul>'),h=l.default('<div class="w-e-panel-tab-content"></div>');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('<li class="w-e-item">'+n+"</li>");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){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var o=n(47),r=n(68),i=n(38),a=n(36),u=n(86),l=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,s=4==t,f=6==t,d=7==t,p=5==t||f;return function(A,v,h,g){for(var m,y,w=i(A),x=r(w),b=o(v,h,3),E=a(x.length),_=0,C=g||u,S=e?C(A,E):n||d?C(A,0):void 0;E>_;_++)if((p||_ in x)&&(y=b(m=x[_],_,w),t))if(e)S[_]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:l.call(S,m)}else switch(t){case 4:return!1;case 7:l.call(S,m)}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),filterOut:c(7)}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(96)).default);e.default=s},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var o=n(58),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e){t.exports=!0},function(t,e,n){var o=n(46);t.exports=function(t){return Object(o(t))}},function(t,e,n){var o=n(24),r=n(160),i=n(36),a=n(47),u=n(161),l=n(162),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var s,f,d,p,A,v,h,g=n&&n.that,m=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),x=a(e,g,1+m+w),b=function(t){return s&&l(s),new c(!0,t)},E=function(t){return m?(o(t),w?x(t[0],t[1],b):x(t[0],t[1])):w?x(t,b):x(t)};if(y)s=t;else{if("function"!=typeof(f=u(t)))throw TypeError("Target is not iterable");if(r(f)){for(d=0,p=i(t.length);p>d;d++)if((A=E(t[d]))&&A instanceof c)return A;return new c(!1)}s=f.call(t)}for(v=s.next;!(h=v.call(s)).done;){try{A=E(h.value)}catch(t){throw l(s),t}if("object"==typeof A&&A&&A instanceof c)return A}return new c(!1)}},function(t,e){t.exports={}},function(t,e,n){var o=n(78),r=n(18).f,i=n(17),a=n(15),u=n(164),l=n(9)("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){var o,r,i,a=n(168),u=n(8),l=n(13),c=n(17),s=n(15),f=n(74),d=n(59),p=n(49),A=u.WeakMap;if(a){var v=f.state||(f.state=new A),h=v.get,g=v.has,m=v.set;o=function(t,e){return e.facade=t,m.call(v,t,e),e},r=function(t){return h.call(v,t)||{}},i=function(t){return g.call(v,t)}}else{var y=d("state");p[y]=!0,o=function(t,e){return e.facade=t,c(t,y,e),e},r=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}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,n){t.exports=n(256)},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),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("<div></div>");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;(0,r.default)(e).call(e,(function(e,r){var a=e.$elem,l=u.default("<div></div>");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){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},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(32);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,n){var o,r=n(24),i=n(137),a=n(72),u=n(49),l=n(103),c=n(69),s=n(59),f=s("IE_PROTO"),d=function(){},p=function(t){return"<script>"+t+"<\/script>"},A=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;A=o?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(o):((e=c("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete A.prototype[a[n]];return A()};u[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=r(t),n=new d,d.prototype=null,n[f]=t):n=A(),void 0===e?n:i(n,e)}},function(t,e){t.exports={}},function(t,e,n){var o=n(17);t.exports=function(t,e,n,r){r&&r.enumerable?t[e]=n:o(t,e,n)}},function(t,e,n){n(174);var o=n(175),r=n(8),i=n(61),a=n(17),u=n(40),l=n(9)("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(45);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,n){var o=n(12),r=n(9),i=n(83),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(204)},function(t,e,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:o},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,n){var o=n(102),r=n(72);t.exports=Object.keys||function(t){return o(t,r)}},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(73),r=n(60),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=n(78),r=n(45),i=n(9)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=o?r:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:a?r(e):"Object"==(o=r(e))&&"function"==typeof e.callee?"Arguments":o}},function(t,e){},function(t,e,n){"use strict";var o=n(32),r=function(t){var e,n;this.promise=new t((function(t,o){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=o})),this.resolve=o(e),this.reject=o(n)};t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";var o=n(172).charAt,r=n(42),i=n(84),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,n){t.exports=n(196)},function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(t,e,n){var o=n(14),r=n(55),i=n(35),a=n(27),u=n(56),l=n(15),c=n(100),s=Object.getOwnPropertyDescriptor;e.f=o?s:function(t,e){if(t=a(t),e=u(e,!0),c)try{return s(t,e)}catch(t){}if(l(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var o=n(12),r=n(45),i="".split;t.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var o=n(8),r=n(13),i=o.document,a=r(i)&&r(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var o=n(27),r=n(36),i=n(71),a=function(t){return function(e,n,a){var u,l=o(e),c=r(l.length),s=i(a,c);if(t&&n!=n){for(;c>s;)if((u=l[s++])!=u)return!0}else for(;c>s;s++)if((t||s in l)&&l[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var o=n(58),r=Math.max,i=Math.min;t.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var o=n(37),r=n(74);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var o=n(8),r=n(138),i=o["__core-js_shared__"]||r("__core-js_shared__",{});t.exports=i},function(t,e,n){var o=n(15),r=n(38),i=n(59),a=n(158),u=i("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(t),o(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},function(t,e,n){var o=n(24),r=n(159);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),r(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var o=n(12);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(t,e,n){var o={};o[n(9)("toStringTag")]="z",t.exports="[object z]"===String(o)},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var o=n(28);t.exports=o("navigator","userAgent")||""},function(t,e,n){var o=n(45),r=n(8);t.exports="process"==o(r.process)},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var o,r,i=n(8),a=n(80),u=i.process,l=u&&u.versions,c=l&&l.v8;c?r=(o=c.split("."))[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=o[1]),t.exports=r&&+r},function(t,e,n){"use strict";var o=n(4),r=n(173),i=n(75),a=n(76),u=n(41),l=n(17),c=n(50),s=n(9),f=n(37),d=n(40),p=n(113),A=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,h=s("iterator"),g=function(){return this};t.exports=function(t,e,n,s,p,m,y){r(n,e,s);var w,x,b,E=function(t){if(t===p&&N)return N;if(!v&&t in S)return S[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",C=!1,S=t.prototype,M=S[h]||S["@@iterator"]||p&&S[p],N=!v&&M||E(p),k="Array"==e&&S.entries||M;if(k&&(w=i(k.call(new t)),A!==Object.prototype&&w.next&&(f||i(w)===A||(a?a(w,A):"function"!=typeof w[h]&&l(w,h,g)),u(w,_,!0,!0),f&&(d[_]=g))),"values"==p&&M&&"values"!==M.name&&(C=!0,N=function(){return M.call(this)}),f&&!y||S[h]===N||l(S,h,N),d[e]=N,p)if(x={values:E("values"),keys:m?N:E("keys"),entries:E("entries")},y)for(b in x)(v||C||!(b in S))&&c(S,b,x[b]);else o({target:e,proto:!0,forced:v||C},x);return x}},function(t,e){t.exports=function(){}},function(t,e,n){var o=n(13),r=n(52),i=n(9)("species");t.exports=function(t,e){var n;return r(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){"use strict";var o=n(12);t.exports=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){t.exports=n(182)},function(t,e,n){t.exports=n(187)},function(t,e,n){t.exports=n(200)},function(t,e,n){"use strict";var o=n(56),r=n(18),i=n(35);t.exports=function(t,e,n){var a=o(e);a in t?r.f(t,a,i(0,n)):t[a]=n}},function(t,e,n){var o=n(46),r="["+n(66)+"]",i=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),u=function(t){return function(e){var n=String(o(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},function(t,e,n){t.exports=n(221)},function(t,e,n){var o=n(224),r=n(227);function i(e){return t.exports=i="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},i(e)}t.exports=i},function(t,e,n){var o=n(9);e.f=o},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),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(31)),l=function(){function t(t,e){var n=this;this.$elem=t,this.editor=e,this._active=!1,t.on("click",(function(t){var o;u.default.hideCurAllPanels(),(0,r.default)(o=e.txt.eventHooks.menuClickEvents).call(o,(function(t){return t()})),t.stopPropagation(),null!=e.selection.getRange()&&n.clickHandler(t)}))}return t.prototype.clickHandler=function(t){},t.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},t.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(t.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),t}();e.default=l},function(t,e,n){"use strict";var o=n(0),r=o(n(54)),i=o(n(5)),a=o(n(88)),u=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var l=n(7),c=u(n(334)),s=u(n(335)),f=function(){function t(t){this.editor=t}return t.prototype.insertImg=function(t){var e=this.editor,n=e.config,o=function(t,n){return void 0===n&&(n="validate."),e.i18next.t(n+t)};e.cmd.do("insertHTML",'<img src="'+t+'" style="max-width:100%;"/>'),n.linkImgCallback(t);var r=document.createElement("img");r.onload=function(){r=null},r.onerror=function(){n.customAlert(o("插入图片错误"),"error","wangEditor: "+o("插入图片错误")+"，"+o("图片链接")+' "'+t+'"，'+o("下载链接失败")),r=null},r.onabort=function(){return r=null},r.src=t},t.prototype.uploadImg=function(t){var e=this;if(t.length){var n=this.editor,o=n.config,u=function(t){return n.i18next.t("validate."+t)},f=o.uploadImgServer,d=o.uploadImgShowBase64,p=o.uploadImgMaxSize,A=p/1024/1024,v=o.uploadImgMaxLength,h=o.uploadFileName,g=o.uploadImgParams,m=o.uploadImgParamsWithUrl,y=o.uploadImgHeaders,w=o.uploadImgHooks,x=o.uploadImgTimeout,b=o.withCredentials,E=o.customUploadImg;if(E||f||d){var _=[],C=[];if(l.arrForEach(t,(function(t){var e=t.name,n=t.size;e&&n&&(!1!==/\.(jpg|jpeg|png|bmp|gif|webp)$/i.test(e)?p<n?C.push("【"+e+"】"+u("大于")+" "+A+"M"):_.push(t):C.push("【"+e+"】"+u("不是图片")))})),C.length)o.customAlert(u("图片验证未通过")+": \n"+C.join("\n"),"warning");else if(0!==_.length)if(_.length>v)o.customAlert(u("一次最多上传")+v+u("张图片"),"warning");else if(E&&"function"==typeof E){var S;E(_,(0,a.default)(S=this.insertImg).call(S,this))}else{var M=new FormData;if((0,i.default)(_).call(_,(function(t,e){var n=h||t.name;_.length>1&&(n+=e+1),M.append(n,t)})),f){var N=f.split("#");f=N[0];var k=N[1]||"";(0,i.default)(l).call(l,g,(function(t,e){m&&((0,r.default)(f).call(f,"?")>0?f+="&":f+="?",f=f+t+"="+e),M.append(t,e)})),k&&(f+="#"+k);var B=c.default(f,{timeout:x,formData:M,headers:y,withCredentials:!!b,beforeSend:function(t){if(w.before)return w.before(t,n,_)},onTimeout:function(t){o.customAlert(u("上传图片超时"),"error"),w.timeout&&w.timeout(t,n)},onProgress:function(t,e){var o=new s.default(n);e.lengthComputable&&(t=e.loaded/e.total,o.show(t))},onError:function(t){o.customAlert(u("上传图片错误"),"error",u("上传图片错误")+"，"+u("服务器返回状态")+": "+t.status),w.error&&w.error(t,n)},onFail:function(t,e){o.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+"，"+u("返回结果")+": "+e),w.fail&&w.fail(t,n,e)},onSuccess:function(t,r){if(w.customInsert){var l;w.customInsert((0,a.default)(l=e.insertImg).call(l,e),r,n)}else{if("0"!=r.errno)return o.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+"，"+u("返回结果")+" errno="+r.errno),void(w.fail&&w.fail(t,n,r));var c=r.data;(0,i.default)(c).call(c,(function(t){e.insertImg(t)})),w.success&&w.success(t,n,r)}}});"string"==typeof B&&o.customAlert(B,"error")}else d&&l.arrForEach(t,(function(t){var n=e,o=new FileReader;o.readAsDataURL(t),o.onload=function(){this.result&&n.insertImg(this.result.toString())}}))}else o.customAlert(u("传入的文件不合法"),"warning")}}},t}();e.default=f},function(t,e,n){"use strict";var o=n(0),r=o(n(43)),i=o(n(5)),a=o(n(380));function u(t){return"w-e-todo"===t.attr("class")}function l(t,e){return 3===t.nodeType?t.nodeValue===e.nodeValue:t.contains(e)}function c(t,e,n){void 0===n&&(n=!0);var o=t.nodeValue,i=null==o?void 0:(0,r.default)(o).call(o,0,e);if(o=null==o?void 0:(0,r.default)(o).call(o,e),!n){var a=o;o=i,i=a}return t.nodeValue=i,o}(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.dealTextNode=e.isAllTodo=e.isTodo=e.getCursorNextNode=void 0,e.isTodo=u,e.isAllTodo=function(t){var e=t.selection.getSelectionRangeTopNodes(t);if(0!==e.length)return(0,a.default)(e).call(e,(function(t){return u(t)}))},e.getCursorNextNode=function t(e,n,o){var r;if(e.hasChildNodes()){var a=e.cloneNode(),u=!1;""===n.nodeValue&&(u=!0);var s=[];return(0,i.default)(r=e.childNodes).call(r,(function(e){if(!l(e,n)&&u&&(a.appendChild(e.cloneNode(!0)),"BR"!==e.nodeName&&s.push(e)),l(e,n)){if(1===e.nodeType){var r=t(e,n,o);r&&""!==r.textContent&&(null==a||a.appendChild(r))}if(3===e.nodeType&&n.isEqualNode(e)){var i=c(e,o);a.textContent=i}u=!0}})),(0,i.default)(s).call(s,(function(t){t.remove()})),a}},e.dealTextNode=c},function(t,e,n){"use strict";var o=n(0)(n(1));(0,o.default)(e,"__esModule",{value:!0});var r=n(400),i=function(){function t(t){this.maxSize=t,this.isRe=!1,this.data=new r.CeilStack(t),this.revokeData=new r.CeilStack(t)}return(0,o.default)(t.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),t.prototype.resetMaxSize=function(t){this.data.resetMax(t),this.revokeData.resetMax(t)},t.prototype.save=function(t){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(t),this},t.prototype.revoke=function(t){!this.isRe&&(this.isRe=!0);var e=this.data.outstack();return!!e&&(this.revokeData.instack(e),t(e),!0)},t.prototype.restore=function(t){!this.isRe&&(this.isRe=!0);var e=this.revokeData.outstack();return!!e&&(this.data.instack(e),t(e),!0)},t}();e.default=i},function(t,e,n){var o=n(14),r=n(12),i=n(69);t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var o=n(12),r=/#|\.prototype\./,i=function(t,e){var n=u[a(t)];return n==c||n!=l&&("function"==typeof e?o(e):!!e)},a=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},u=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},function(t,e,n){var o=n(15),r=n(27),i=n(70).indexOf,a=n(49);t.exports=function(t,e){var n,u=r(t),l=0,c=[];for(n in u)!o(a,n)&&o(u,n)&&c.push(n);for(;e.length>l;)o(u,n=e[l++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var o=n(28);t.exports=o("document","documentElement")},function(t,e,n){var o=n(77);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var o=n(8);t.exports=o.Promise},function(t,e,n){var o=n(50);t.exports=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:o(t,r,e[r],n);return t}},function(t,e,n){"use strict";var o=n(28),r=n(18),i=n(9),a=n(14),u=i("species");t.exports=function(t){var e=o(t),n=r.f;a&&e&&!e[u]&&n(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var o=n(74),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(t){return r.call(t)}),t.exports=o.inspectSource},function(t,e,n){var o=n(24),r=n(32),i=n(9)("species");t.exports=function(t,e){var n,a=o(t).constructor;return void 0===a||null==(n=o(a)[i])?e:r(n)}},function(t,e,n){var o,r,i,a=n(8),u=n(12),l=n(47),c=n(103),s=n(69),f=n(111),d=n(81),p=a.location,A=a.setImmediate,v=a.clearImmediate,h=a.process,g=a.MessageChannel,m=a.Dispatch,y=0,w={},x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},b=function(t){return function(){x(t)}},E=function(t){x(t.data)},_=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};A&&v||(A=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return w[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},o(y),y},v=function(t){delete w[t]},d?o=function(t){h.nextTick(b(t))}:m&&m.now?o=function(t){m.now(b(t))}:g&&!f?(i=(r=new g).port2,r.port1.onmessage=E,o=l(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!u(_)?(o=_,a.addEventListener("message",E,!1)):o="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),x(t)}}:function(t){setTimeout(b(t),0)}),t.exports={set:A,clear:v}},function(t,e,n){var o=n(80);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(t,e,n){var o=n(24),r=n(13),i=n(63);t.exports=function(t,e){if(o(t),r(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var o,r,i,a=n(75),u=n(17),l=n(15),c=n(9),s=n(37),f=c("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(r=a(a(i)))!==Object.prototype&&(o=r):d=!0),null==o&&(o={}),s||l(o,f)||u(o,f,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){t.exports=n(208)},function(t,e,n){"use strict";var o=n(4),r=n(8),i=n(116),a=n(12),u=n(17),l=n(39),c=n(79),s=n(13),f=n(41),d=n(18).f,p=n(33).forEach,A=n(14),v=n(42),h=v.set,g=v.getterFor;t.exports=function(t,e,n){var v,m=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),w=m?"set":"add",x=r[t],b=x&&x.prototype,E={};if(A&&"function"==typeof x&&(y||b.forEach&&!a((function(){(new x).entries().next()})))){v=e((function(e,n){h(c(e,v,t),{type:t,collection:new x}),null!=n&&l(n,e[w],{that:e,AS_ENTRIES:m})}));var _=g(t);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in b)||y&&"clear"==t||u(v.prototype,t,(function(n,o){var r=_(this).collection;if(!e&&y&&!s(n))return"get"==t&&void 0;var i=r[t](0===n?0:n,o);return e?this:i}))})),y||d(v.prototype,"size",{configurable:!0,get:function(){return _(this).collection.size}})}else v=n.getConstructor(e,t,m,w),i.REQUIRED=!0;return f(v,t,!1,!0),E[t]=v,o({global:!0,forced:!0},E),y||n.setStrong(v,t,m),v}},function(t,e,n){var o=n(49),r=n(13),i=n(15),a=n(18).f,u=n(60),l=n(211),c=u("meta"),s=0,f=Object.isExtensible||function(){return!0},d=function(t){a(t,c,{value:{objectID:"O"+ ++s,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,c)){if(!f(t))return"F";if(!e)return"E";d(t)}return t[c].objectID},getWeakData:function(t,e){if(!i(t,c)){if(!f(t))return!0;if(!e)return!1;d(t)}return t[c].weakData},onFreeze:function(t){return l&&p.REQUIRED&&f(t)&&!i(t,c)&&d(t),t}};o[c]=!0},function(t,e,n){"use strict";var o=n(18).f,r=n(48),i=n(106),a=n(47),u=n(79),l=n(39),c=n(84),s=n(107),f=n(14),d=n(116).fastKey,p=n(42),A=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,n,c){var s=t((function(t,o){u(t,s,e),A(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=o&&l(o,t[c],{that:t,AS_ENTRIES:n})})),p=v(e),h=function(t,e,n){var o,r,i=p(t),a=g(t,e);return a?a.value=n:(i.last=a={index:r=d(e,!0),key:e,value:n,previous:o=i.last,next:void 0,removed:!1},i.first||(i.first=a),o&&(o.next=a),f?i.size++:t.size++,"F"!==r&&(i.index[r]=a)),t},g=function(t,e){var n,o=p(t),r=d(e);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key==e)return n};return i(s.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=p(this),n=g(this,t);if(n){var o=n.next,r=n.previous;delete e.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),e.first==n&&(e.first=o),e.last==n&&(e.last=r),f?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=p(this),o=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(s.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return h(this,0===t?0:t,e)}}:{add:function(t){return h(this,t=0===t?0:t,t)}}),f&&o(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(t,e,n){var o=e+" Iterator",r=v(e),i=v(o);c(t,e,(function(t,e){A(this,{type:o,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(e)}}},function(t,e,n){n(11)("iterator")},function(t,e,n){var o=n(102),r=n(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){t.exports=n(254)},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default={zIndex:1e4}},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.getPasteImgs=e.getPasteHtml=e.getPasteText=void 0;var a=n(7),u=i(n(293));function l(t){var e=t.clipboardData,n="";return n=null==e?window.clipboardData&&window.clipboardData.getData("text"):e.getData("text/plain"),a.replaceHtmlSymbol(n)}e.getPasteText=l,e.getPasteHtml=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var o=t.clipboardData,r="";if(o&&(r=o.getData("text/html")),!r){var i=l(t);if(!i)return"";r="<p>"+i+"</p>"}return r=u.default(r,e,n)},e.getPasteImgs=function(t){var e,n=[];if(l(t))return n;var o=null===(e=t.clipboardData)||void 0===e?void 0:e.items;return o?((0,r.default)(a).call(a,o,(function(t,e){var o=e.type;/image/i.test(o)&&n.push(e.getAsFile())})),n):n}},function(t,e,n){t.exports=n(295)},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),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=n(26),c=function(){function t(t,e){var n=this;this.hideTimeoutId=0,this.showTimeoutId=0,this.menu=t,this.conf=e;var o=u.default('<div class="w-e-droplist"></div>'),i=u.default("<p>"+e.title+"</p>");i.addClass("w-e-dp-title"),o.append(i);var a=e.list||[],c=e.type||"list",s=e.clickHandler||l.EMPTY_FN,f=u.default('<ul class="'+("list"===c?"w-e-list":"w-e-block")+'"></ul>');(0,r.default)(a).call(a,(function(t){var e=t.$elem,o=t.value,r=u.default('<li class="w-e-item"></li>');e&&(r.append(e),f.append(r),r.on("click",(function(){s(o),n.hideTimeoutId=window.setTimeout((function(){n.hide()}))})))})),o.append(f),o.on("mouseleave",(function(){n.hideTimeoutId=window.setTimeout((function(){n.hide()}))})),this.$container=o,this.rendered=!1,this._show=!1}return t.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var t=this.menu.$elem,e=this.$container;if(!this._show){if(this.rendered)e.show();else{var n=t.getSizeData().height||0,o=this.conf.width||100;e.css("margin-top",n+"px").css("width",o+"px"),t.append(e),this.rendered=!0}this._show=!0}},t.prototype.hide=function(){this.showTimeoutId&&clearTimeout(this.showTimeoutId);var t=this.$container;this._show&&(t.hide(),this._show=!1)},(0,i.default)(t.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),t}();e.default=c},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default=function(t){var e=t.selection.getSelectionContainerElem();return!!e&&"A"===e.getNodeName()}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default=function(t){var e=t.selection.getSelectionContainerElem();return!!e&&!("CODE"!=e.getNodeName()&&"PRE"!=e.getNodeName()&&"CODE"!=e.parent().getNodeName()&&"PRE"!=e.parent().getNodeName()&&!/hljs/.test(e.parent().attr("class")))}},function(t,e,n){"use strict";var o=n(0),r=o(n(30)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.todo=void 0;var a=i(n(2)),u=function(){function t(t){var e;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=a.default(this.template),this.$child=null===(e=null==t?void 0:t.childNodes())||void 0===e?void 0:e.clone(!0)}return t.prototype.init=function(){var t=this,e=this.getInput(),n=this.$child,o=this.getInputContainer();n&&n.insertAfter(o),e.on("click",(function(){t.checked?null==e||e.removeAttr("checked"):null==e||e.attr("checked",""),t.checked=!t.checked}))},t.prototype.getInput=function(){var t=this.$todo;return(0,r.default)(t).call(t,"input")},t.prototype.getInputContainer=function(){return this.getInput().parent()},t.prototype.getTodo=function(){return this.$todo},t}();e.todo=u,e.default=function(t){var e=new u(t);return e.init(),e}},function(t,e,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(3)).default?function(t,e,n,o){void 0===o&&(o=n),(0,r.default)(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]},a=function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)},u=function(t){return t&&t.__esModule?t:{default:t}};(0,r.default)(e,"__esModule",{value:!0}),n(139),n(141),n(145),n(147),n(149),n(151),n(153);var l=u(n(176));a(n(415),e);try{document}catch(t){throw new Error("请在浏览器环境下运行")}e.default=l.default},function(t,e,n){var o=n(131);t.exports=o},function(t,e,n){n(132);var o=n(10).Object,r=t.exports=function(t,e,n){return o.defineProperty(t,e,n)};o.defineProperty.sham&&(r.sham=!0)},function(t,e,n){var o=n(4),r=n(14);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(18).f})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var o=n(135);t.exports=o},function(t,e,n){n(136);var o=n(10).Object;t.exports=function(t,e){return o.create(t,e)}},function(t,e,n){n(4)({target:"Object",stat:!0,sham:!n(14)},{create:n(48)})},function(t,e,n){var o=n(14),r=n(18),i=n(24),a=n(57);t.exports=o?Object.defineProperties:function(t,e){i(t);for(var n,o=a(e),u=o.length,l=0;u>l;)r.f(t,n=o[l++],e[n]);return t}},function(t,e,n){var o=n(8),r=n(17);t.exports=function(t,e){try{r(o,t,e)}catch(n){o[t]=e}return e}},function(t,e,n){var o=n(20),r=n(140);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n  padding: 0;\n  margin: 0;\n  box-sizing: border-box;\n  background-color: #fff;\n  /*表情菜单样式*/\n  /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n  font-size: 2em !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n  font-size: 1.5em !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n  font-size: 1.17em !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n  font-size: 1em !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n  font-size: 0.83em !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n  font-size: 1em !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n  cursor: pointer;\n  display: inline-block;\n  font-size: 18px;\n  padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n  padding: 0;\n  margin: 0;\n  box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n  cursor: pointer;\n  display: block;\n  height: 0px;\n  border: 0;\n  border-top: 3px solid #ccc;\n  margin: 20px 0;\n}\n.w-e-clear-fix:after {\n  content: "";\n  display: table;\n  clear: both;\n}\n.w-e-drop-list-item {\n  position: relative;\n  top: 1px;\n  padding-right: 7px;\n  color: #333 !important;\n}\n.w-e-drop-list-tl {\n  padding-left: 10px;\n  text-align: left;\n}\n',""]),t.exports=e},function(t,e,n){var o=n(20),r=n(142);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){var o=n(21),r=n(143),i=n(144);e=o(!1);var a=r(i);e.push([t.i,"@font-face {\n  font-family: 'w-e-icon';\n  src: url("+a+') format(\'truetype\');\n  font-weight: normal;\n  font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n  /* use !important to prevent issues with browser extensions that change fonts */\n  font-family: \'w-e-icon\' !important;\n  speak: none;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  line-height: 1;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n  content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n  content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n  content: "\\f014";\n}\n.w-e-icon-header:before {\n  content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n  content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n  content: "\\f1fc";\n}\n.w-e-icon-image:before {\n  content: "\\e90d";\n}\n.w-e-icon-play:before {\n  content: "\\e912";\n}\n.w-e-icon-location:before {\n  content: "\\e947";\n}\n.w-e-icon-undo:before {\n  content: "\\e965";\n}\n.w-e-icon-redo:before {\n  content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n  content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n  content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n  content: "\\e9bb";\n}\n.w-e-icon-link:before {\n  content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n  content: "\\e9df";\n}\n.w-e-icon-bold:before {\n  content: "\\ea62";\n}\n.w-e-icon-underline:before {\n  content: "\\ea63";\n}\n.w-e-icon-italic:before {\n  content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n  content: "\\ea65";\n}\n.w-e-icon-table2:before {\n  content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n  content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n  content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n  content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n  content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n  content: "\\f120";\n}\n.w-e-icon-page-break:before {\n  content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n  content: "\\ea0d";\n}\n.w-e-icon-font:before {\n  content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n  content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n  content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n  content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n  content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n  content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n  content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n  content: "\\e901";\n}\n.w-e-icon-split-line:before {\n  content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n  content: "\\ea52";\n}\n',""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},function(t,e,n){"use strict";n.r(e),e.default="data:font/woff;base64,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"},function(t,e,n){var o=n(20),r=n(146);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,".w-e-toolbar {\n  display: flex;\n  padding: 0 6px;\n  flex-wrap: wrap;\n  position: relative;\n  /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n  position: relative;\n  display: flex;\n  width: 40px;\n  height: 40px;\n  align-items: center;\n  justify-content: center;\n  text-align: center;\n  cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n  color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n  background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n  color: #333;\n}\n.w-e-toolbar .w-e-active i {\n  color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n  color: #1e88e5;\n}\n",""]),t.exports=e},function(t,e,n){var o=n(20),r=n(148);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,'.w-e-text-container {\n  position: relative;\n}\n.w-e-text-container .w-e-progress {\n  position: absolute;\n  background-color: #1e88e5;\n  top: 0;\n  left: 0;\n  height: 1px;\n}\n.w-e-text-container .placeholder {\n  color: #D4D4D4;\n  position: absolute;\n  font-size: 11pt;\n  line-height: 22px;\n  left: 10px;\n  top: 10px;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  z-index: -1;\n}\n.w-e-text {\n  padding: 0 10px;\n  overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n  margin: 10px 0;\n  line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n  margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n  display: block;\n  border-left: 8px solid #d0e5f2;\n  padding: 5px 10px;\n  margin: 10px 0;\n  line-height: 1.4;\n  font-size: 100%;\n  background-color: #f1f1f1;\n}\n.w-e-text code {\n  display: inline-block;\n  background-color: #f1f1f1;\n  border-radius: 3px;\n  padding: 3px 5px;\n  margin: 0 3px;\n}\n.w-e-text pre code {\n  display: block;\n}\n.w-e-text table {\n  border-top: 1px solid #ccc;\n  border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n  border-bottom: 1px solid #ccc;\n  border-right: 1px solid #ccc;\n  padding: 3px 5px;\n  min-height: 30px;\n}\n.w-e-text table th {\n  border-bottom: 2px solid #ccc;\n  text-align: center;\n  background-color: #f1f1f1;\n}\n.w-e-text:focus {\n  outline: none;\n}\n.w-e-text img {\n  cursor: pointer;\n}\n.w-e-text img:hover {\n  box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n  margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n  list-style: none;\n  font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n  position: relative;\n  left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n  position: absolute;\n  top: 0.3em;\n  margin-right: 3px;\n}\n.w-e-tooltip {\n  position: absolute;\n  display: flex;\n  color: #f1f1f1;\n  background-color: rgba(0, 0, 0, 0.75);\n  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n  border-radius: 4px;\n  padding: 4px 5px 6px;\n  justify-content: center;\n  align-items: center;\n}\n.w-e-tooltip-up::after {\n  content: "";\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n  content: "";\n  position: absolute;\n  bottom: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n  cursor: pointer;\n  font-size: 14px;\n  margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n  color: #ccc;\n  text-decoration: underline;\n}\n',""]),t.exports=e},function(t,e,n){var o=n(20),r=n(150);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,'.w-e-menu .w-e-panel-container {\n  position: absolute;\n  top: 0;\n  left: 50%;\n  border: 1px solid #ccc;\n  border-top: 0;\n  box-shadow: 1px 1px 2px #ccc;\n  color: #333;\n  background-color: #fff;\n  text-align: left;\n  /* 为 emotion panel 定制的样式 */\n  /* 上传图片的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n  position: absolute;\n  right: 0;\n  top: 0;\n  padding: 5px;\n  margin: 2px 5px 0 0;\n  cursor: pointer;\n  color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n  color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n  list-style: none;\n  display: flex;\n  font-size: 14px;\n  margin: 2px 10px 0 10px;\n  border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n  padding: 3px 5px;\n  color: #999;\n  cursor: pointer;\n  margin: 0 3px;\n  position: relative;\n  top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n  color: #333;\n  border-bottom: 1px solid #333;\n  cursor: default;\n  font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n  padding: 10px 15px 10px 15px;\n  font-size: 16px;\n  /* 输入框的样式 */\n  /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n  outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n  width: 100%;\n  border: 1px solid #ccc;\n  padding: 5px;\n  margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n  border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n  border: none;\n  border-bottom: 1px solid #ccc;\n  font-size: 14px;\n  height: 20px;\n  color: #333;\n  text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n  width: 30px;\n  text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n  display: block;\n  width: 100%;\n  margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n  border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n  font-size: 14px;\n  color: #1e88e5;\n  border: none;\n  padding: 5px 10px;\n  background-color: #fff;\n  cursor: pointer;\n  border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n  float: left;\n  margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n  float: right;\n  margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n  color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n  color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n  background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n  content: "";\n  display: table;\n  clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n  cursor: pointer;\n  font-size: 18px;\n  padding: 0 3px;\n  display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container {\n  text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn {\n  display: inline-block;\n  color: #999;\n  cursor: pointer;\n  font-size: 60px;\n  line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover {\n  color: #333;\n}\n',""]),t.exports=e},function(t,e,n){var o=n(20),r=n(152);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,".w-e-toolbar .w-e-droplist {\n  position: absolute;\n  left: 0;\n  top: 0;\n  background-color: #fff;\n  border: 1px solid #f1f1f1;\n  border-right-color: #ccc;\n  border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n  text-align: center;\n  color: #999;\n  line-height: 2;\n  border-bottom: 1px solid #f1f1f1;\n  font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n  list-style: none;\n  line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n  color: #333;\n  padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n  background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n  list-style: none;\n  text-align: left;\n  padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n  display: inline-block;\n  padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n  background-color: #f1f1f1;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";var o=n(0)(n(154));Element.prototype.matches||(Element.prototype.matches=function(t){for(var e=this.ownerDocument.querySelectorAll(t),n=e.length;n>=0&&e.item(n)!==this;n--);return n>-1}),window.Promise||(window.Promise=o.default)},function(t,e,n){t.exports=n(155)},function(t,e,n){var o=n(156);t.exports=o},function(t,e,n){n(157),n(62),n(163),n(169),n(170),n(171),n(64),n(51);var o=n(10);t.exports=o.Promise},function(t,e,n){"use strict";var o=n(4),r=n(75),i=n(76),a=n(48),u=n(17),l=n(35),c=n(39),s=function(t,e){var n=this;if(!(n instanceof s))return new s(t,e);i&&(n=i(new Error(void 0),r(n))),void 0!==e&&u(n,"message",String(e));var o=[];return c(t,o.push,{that:o}),u(n,"errors",o),n};s.prototype=a(Error.prototype,{constructor:l(5,s),message:l(5,""),name:l(5,"AggregateError")}),o({global:!0},{AggregateError:s})},function(t,e,n){var o=n(12);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var o=n(13);t.exports=function(t){if(!o(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var o=n(9),r=n(40),i=o("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[i]===t)}},function(t,e,n){var o=n(61),r=n(40),i=n(9)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||r[o(t)]}},function(t,e,n){var o=n(24);t.exports=function(t){var e=t.return;if(void 0!==e)return o(e.call(t)).value}},function(t,e,n){"use strict";var o,r,i,a,u=n(4),l=n(37),c=n(8),s=n(28),f=n(105),d=n(50),p=n(106),A=n(41),v=n(107),h=n(13),g=n(32),m=n(79),y=n(108),w=n(39),x=n(165),b=n(109),E=n(110).set,_=n(166),C=n(112),S=n(167),M=n(63),N=n(82),k=n(42),B=n(101),I=n(9),T=n(81),R=n(83),D=I("species"),F="Promise",H=k.get,O=k.set,P=k.getterFor(F),Q=f,j=c.TypeError,L=c.document,U=c.process,z=s("fetch"),Y=M.f,$=Y,G=!!(L&&L.createEvent&&c.dispatchEvent),J="function"==typeof PromiseRejectionEvent,V=B(F,(function(){if(!(y(Q)!==String(Q))){if(66===R)return!0;if(!T&&!J)return!0}if(l&&!Q.prototype.finally)return!0;if(R>=51&&/native code/.test(Q))return!1;var t=Q.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[D]=e,!(t.then((function(){}))instanceof e)})),K=V||!x((function(t){Q.all(t).catch((function(){}))})),W=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},q=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;_((function(){for(var o=t.value,r=1==t.state,i=0;n.length>i;){var a,u,l,c=n[i++],s=r?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{s?(r||(2===t.rejection&&et(t),t.rejection=1),!0===s?a=o:(p&&p.enter(),a=s(o),p&&(p.exit(),l=!0)),a===c.promise?d(j("Promise-chain cycle")):(u=W(a))?u.call(a,f,d):f(a)):d(o)}catch(t){p&&!l&&p.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Z(t)}))}},X=function(t,e,n){var o,r;G?((o=L.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),c.dispatchEvent(o)):o={promise:e,reason:n},!J&&(r=c["on"+t])?r(o):"unhandledrejection"===t&&S("Unhandled promise rejection",n)},Z=function(t){E.call(c,(function(){var e,n=t.facade,o=t.value;if(tt(t)&&(e=N((function(){T?U.emit("unhandledRejection",o,n):X("unhandledrejection",n,o)})),t.rejection=T||tt(t)?2:1,e.error))throw e.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t){E.call(c,(function(){var e=t.facade;T?U.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},nt=function(t,e,n){return function(o){t(e,o,n)}},ot=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,q(t,!0))},rt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw j("Promise can't be resolved itself");var o=W(e);o?_((function(){var n={done:!1};try{o.call(e,nt(rt,n,t),nt(ot,n,t))}catch(e){ot(n,e,t)}})):(t.value=e,t.state=1,q(t,!1))}catch(e){ot({done:!1},e,t)}}};V&&(Q=function(t){m(this,Q,F),g(t),o.call(this);var e=H(this);try{t(nt(rt,e),nt(ot,e))}catch(t){ot(e,t)}},(o=function(t){O(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(Q.prototype,{then:function(t,e){var n=P(this),o=Y(b(this,Q));return o.ok="function"!=typeof t||t,o.fail="function"==typeof e&&e,o.domain=T?U.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&q(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new o,e=H(t);this.promise=t,this.resolve=nt(rt,e),this.reject=nt(ot,e)},M.f=Y=function(t){return t===Q||t===i?new r(t):$(t)},l||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(t,e){var n=this;return new Q((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof z&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return C(Q,z.apply(c,arguments))}}))),u({global:!0,wrap:!0,forced:V},{Promise:Q}),A(Q,F,!1,!0),v(F),i=s(F),u({target:F,stat:!0,forced:V},{reject:function(t){var e=Y(this);return e.reject.call(void 0,t),e.promise}}),u({target:F,stat:!0,forced:l||V},{resolve:function(t){return C(l&&this===i?Q:this,t)}}),u({target:F,stat:!0,forced:K},{all:function(t){var e=this,n=Y(e),o=n.resolve,r=n.reject,i=N((function(){var n=g(e.resolve),i=[],a=0,u=1;w(t,(function(t){var l=a++,c=!1;i.push(void 0),u++,n.call(e,t).then((function(t){c||(c=!0,i[l]=t,--u||o(i))}),r)})),--u||o(i)}));return i.error&&r(i.value),n.promise},race:function(t){var e=this,n=Y(e),o=n.reject,r=N((function(){var r=g(e.resolve);w(t,(function(t){r.call(e,t).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(t,e,n){"use strict";var o=n(78),r=n(61);t.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,n){var o=n(9)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var o,r,i,a,u,l,c,s,f=n(8),d=n(67).f,p=n(110).set,A=n(111),v=n(81),h=f.MutationObserver||f.WebKitMutationObserver,g=f.document,m=f.process,y=f.Promise,w=d(f,"queueMicrotask"),x=w&&w.value;x||(o=function(){var t,e;for(v&&(t=m.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?a():i=void 0,t}}i=void 0,t&&t.enter()},!A&&!v&&h&&g?(u=!0,l=g.createTextNode(""),new h(o).observe(l,{characterData:!0}),a=function(){l.data=u=!u}):y&&y.resolve?(c=y.resolve(void 0),s=c.then,a=function(){s.call(c,o)}):a=v?function(){m.nextTick(o)}:function(){p.call(f,o)}),t.exports=x||function(t){var e={fn:t,next:void 0};i&&(i.next=e),r||(r=e,a()),i=e}},function(t,e,n){var o=n(8);t.exports=function(t,e){var n=o.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e,n){var o=n(8),r=n(108),i=o.WeakMap;t.exports="function"==typeof i&&/native code/.test(r(i))},function(t,e,n){"use strict";var o=n(4),r=n(32),i=n(63),a=n(82),u=n(39);o({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),o=n.resolve,l=n.reject,c=a((function(){var n=r(e.resolve),i=[],a=0,l=1;u(t,(function(t){var r=a++,u=!1;i.push(void 0),l++,n.call(e,t).then((function(t){u||(u=!0,i[r]={status:"fulfilled",value:t},--l||o(i))}),(function(t){u||(u=!0,i[r]={status:"rejected",reason:t},--l||o(i))}))})),--l||o(i)}));return c.error&&l(c.value),n.promise}})},function(t,e,n){"use strict";var o=n(4),r=n(32),i=n(28),a=n(63),u=n(82),l=n(39);o({target:"Promise",stat:!0},{any:function(t){var e=this,n=a.f(e),o=n.resolve,c=n.reject,s=u((function(){var n=r(e.resolve),a=[],u=0,s=1,f=!1;l(t,(function(t){var r=u++,l=!1;a.push(void 0),s++,n.call(e,t).then((function(t){l||f||(f=!0,o(t))}),(function(t){l||f||(l=!0,a[r]=t,--s||c(new(i("AggregateError"))(a,"No one promise resolved")))}))})),--s||c(new(i("AggregateError"))(a,"No one promise resolved"))}));return s.error&&c(s.value),n.promise}})},function(t,e,n){"use strict";var o=n(4),r=n(37),i=n(105),a=n(12),u=n(28),l=n(109),c=n(112),s=n(50);o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=l(this,u("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),r||"function"!=typeof i||i.prototype.finally||s(i.prototype,"finally",u("Promise").prototype.finally)},function(t,e,n){var o=n(58),r=n(46),i=function(t){return function(e,n){var i,a,u=String(r(e)),l=o(n),c=u.length;return l<0||l>=c?t?"":void 0:(i=u.charCodeAt(l))<55296||i>56319||l+1===c||(a=u.charCodeAt(l+1))<56320||a>57343?t?u.charAt(l):i:t?u.slice(l,l+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";var o=n(113).IteratorPrototype,r=n(48),i=n(35),a=n(41),u=n(40),l=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=r(o,{next:i(1,n)}),a(t,c,!1,!0),u[c]=l,t}},function(t,e,n){"use strict";var o=n(27),r=n(85),i=n(40),a=n(42),u=n(84),l=a.set,c=a.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(t,e){l(this,{type:"Array Iterator",target:o(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,o=t.index++;return!e||o>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:e[o],done:!1}:{value:[o,e[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports={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}},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=o(n(1)),a=o(n(3)),u=a.default?function(t,e,n,o){void 0===o&&(o=n),(0,i.default)(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]},l=a.default?function(t,e){(0,i.default)(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&u(e,t,n);return l(e,t),e},s=function(t){return t&&t.__esModule?t:{default:t}};(0,i.default)(e,"__esModule",{value:!0});var f=s(n(2)),d=n(7),p=s(n(265)),A=s(n(280)),v=s(n(282)),h=s(n(283)),g=s(n(302)),m=s(n(386)),y=s(n(387)),w=s(n(388)),x=s(n(389)),b=c(n(390)),E=s(n(393)),_=s(n(394)),C=s(n(395)),S=s(n(397)),M=s(n(412)),N=s(n(22)),k=s(n(125)),B=s(n(23)),I=s(n(31)),T=s(n(34)),R=s(n(44)),D=1,F=function(){function t(t,e){if(this.beforeDestroyHooks=[],this.id="wangEditor-"+D++,this.toolbarSelector=t,this.textSelector=e,null==t)throw new Error("错误：初始化编辑器时候未传入任何参数，请查阅文档");this.config=d.deepClone(p.default),this.$toolbarElem=f.default("<div></div>"),this.$textContainerElem=f.default("<div></div>"),this.$textElem=f.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new A.default(this),this.cmd=new v.default(this),this.txt=new h.default(this),this.menus=new g.default(this),this.zIndex=new _.default,this.change=new C.default(this),this.history=new S.default(this);var n=M.default(this),o=n.disable,r=n.enable;this.disable=o,this.enable=r}return t.prototype.initSelection=function(t){y.default(this,t)},t.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),x.default(this),m.default(this),this.txt.init(),this.menus.init(),b.default(this),this.initSelection(!0),w.default(this),this.change.observe(),this.history.observe()},t.prototype.beforeDestroy=function(t){return this.beforeDestroyHooks.push(t),this},t.prototype.destroy=function(){var t,e=this;(0,r.default)(t=this.beforeDestroyHooks).call(t,(function(t){return t.call(e)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},t.prototype.fullScreen=function(){b.setFullScreen(this)},t.prototype.unFullScreen=function(){b.setUnFullScreen(this)},t.prototype.scrollToHead=function(t){E.default(this,t)},t.$=f.default,t.BtnMenu=N.default,t.DropList=k.default,t.DropListMenu=B.default,t.Panel=I.default,t.PanelMenu=T.default,t.Tooltip=R.default,t}();e.default=F},function(t,e,n){n(51);var o=n(178),r=n(61),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===i||t instanceof Array&&e===i.forEach||a.hasOwnProperty(r(t))?o:e}},function(t,e,n){var o=n(179);t.exports=o},function(t,e,n){n(180);var o=n(16);t.exports=o("Array").forEach},function(t,e,n){"use strict";var o=n(4),r=n(181);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(t,e,n){"use strict";var o=n(33).forEach,r=n(87),i=n(25),a=r("forEach"),u=i("forEach");t.exports=a&&u?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var o=n(183);t.exports=o},function(t,e,n){var o=n(184),r=Function.prototype;t.exports=function(t){var e=t.bind;return t===r||t instanceof Function&&e===r.bind?o:e}},function(t,e,n){n(185);var o=n(16);t.exports=o("Function").bind},function(t,e,n){n(4)({target:"Function",proto:!0},{bind:n(186)})},function(t,e,n){"use strict";var o=n(32),r=n(13),i=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var o=[],r=0;r<e;r++)o[r]="a["+r+"]";a[e]=Function("C,a","return new C("+o.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=o(this),n=i.call(arguments,1),a=function(){var o=n.concat(i.call(arguments));return this instanceof a?u(e,o.length,o):e.apply(t,o)};return r(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,n){var o=n(188);t.exports=o},function(t,e,n){var o=n(189),r=n(191),i=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===i||t instanceof Array&&e===i.includes?o:"string"==typeof t||t===a||t instanceof String&&e===a.includes?r:e}},function(t,e,n){n(190);var o=n(16);t.exports=o("Array").includes},function(t,e,n){"use strict";var o=n(4),r=n(70).includes,i=n(85);o({target:"Array",proto:!0,forced:!n(25)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,e,n){n(192);var o=n(16);t.exports=o("String").includes},function(t,e,n){"use strict";var o=n(4),r=n(193),i=n(46);o({target:"String",proto:!0,forced:!n(195)("includes")},{includes:function(t){return!!~String(i(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var o=n(194);t.exports=function(t){if(o(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var o=n(13),r=n(45),i=n(9)("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},function(t,e,n){var o=n(9)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var o=n(197);t.exports=o},function(t,e,n){var o=n(198),r=Array.prototype;t.exports=function(t){var e=t.filter;return t===r||t instanceof Array&&e===r.filter?o:e}},function(t,e,n){n(199);var o=n(16);t.exports=o("Array").filter},function(t,e,n){"use strict";var o=n(4),r=n(33).filter,i=n(53),a=n(25),u=i("filter"),l=a("filter");o({target:"Array",proto:!0,forced:!u||!l},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var o=n(201);t.exports=o},function(t,e,n){var o=n(202),r=Array.prototype;t.exports=function(t){var e=t.splice;return t===r||t instanceof Array&&e===r.splice?o:e}},function(t,e,n){n(203);var o=n(16);t.exports=o("Array").splice},function(t,e,n){"use strict";var o=n(4),r=n(71),i=n(58),a=n(36),u=n(38),l=n(86),c=n(91),s=n(53),f=n(25),d=s("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),A=Math.max,v=Math.min;o({target:"Array",proto:!0,forced:!d||!p},{splice:function(t,e){var n,o,s,f,d,p,h=u(this),g=a(h.length),m=r(t,g),y=arguments.length;if(0===y?n=o=0:1===y?(n=0,o=g-m):(n=y-2,o=v(A(i(e),0),g-m)),g+n-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=l(h,o),f=0;f<o;f++)(d=m+f)in h&&c(s,f,h[d]);if(s.length=o,n<o){for(f=m;f<g-o;f++)p=f+n,(d=f+o)in h?h[p]=h[d]:delete h[p];for(f=g;f>g-o+n;f--)delete h[f-1]}else if(n>o)for(f=g-o;f>m;f--)p=f+n-1,(d=f+o-1)in h?h[p]=h[d]:delete h[p];for(f=0;f<n;f++)h[f+m]=arguments[f+2];return h.length=g-o+n,s}})},function(t,e,n){var o=n(205);t.exports=o},function(t,e,n){var o=n(206),r=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===r||t instanceof Array&&e===r.indexOf?o:e}},function(t,e,n){n(207);var o=n(16);t.exports=o("Array").indexOf},function(t,e,n){"use strict";var o=n(4),r=n(70).indexOf,i=n(87),a=n(25),u=[].indexOf,l=!!u&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),s=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:l||!c||!s},{indexOf:function(t){return l?u.apply(this,arguments)||0:r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var o=n(209);t.exports=o},function(t,e,n){n(210),n(62),n(64),n(51);var o=n(10);t.exports=o.Map},function(t,e,n){"use strict";var o=n(115),r=n(117);t.exports=o("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},function(t,e,n){var o=n(12);t.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var o=n(213);t.exports=o},function(t,e,n){var o=n(214),r=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===r||t instanceof String&&e===r.trim?o:e}},function(t,e,n){n(215);var o=n(16);t.exports=o("String").trim},function(t,e,n){"use strict";var o=n(4),r=n(92).trim;o({target:"String",proto:!0,forced:n(216)("trim")},{trim:function(){return r(this)}})},function(t,e,n){var o=n(12),r=n(66);t.exports=function(t){return o((function(){return!!r[t]()||"​᠎"!="​᠎"[t]()||r[t].name!==t}))}},function(t,e,n){var o=n(218);t.exports=o},function(t,e,n){var o=n(219),r=Array.prototype;t.exports=function(t){var e=t.map;return t===r||t instanceof Array&&e===r.map?o:e}},function(t,e,n){n(220);var o=n(16);t.exports=o("Array").map},function(t,e,n){"use strict";var o=n(4),r=n(33).map,i=n(53),a=n(25),u=i("map"),l=a("map");o({target:"Array",proto:!0,forced:!u||!l},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var o=n(222);t.exports=o},function(t,e,n){n(223);var o=n(10);t.exports=o.Array.isArray},function(t,e,n){n(4)({target:"Array",stat:!0},{isArray:n(52)})},function(t,e,n){t.exports=n(225)},function(t,e,n){var o=n(226);t.exports=o},function(t,e,n){n(118),n(64),n(51);var o=n(95);t.exports=o.f("iterator")},function(t,e,n){t.exports=n(228)},function(t,e,n){var o=n(229);n(249),n(250),n(251),n(252),n(253),t.exports=o},function(t,e,n){n(230),n(62),n(231),n(233),n(234),n(235),n(236),n(118),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248);var o=n(10);t.exports=o.Symbol},function(t,e,n){"use strict";var o=n(4),r=n(12),i=n(52),a=n(13),u=n(38),l=n(36),c=n(91),s=n(86),f=n(53),d=n(9),p=n(83),A=d("isConcatSpreadable"),v=p>=51||!r((function(){var t=[];return t[A]=!1,t.concat()[0]!==t})),h=f("concat"),g=function(t){if(!a(t))return!1;var e=t[A];return void 0!==e?!!e:i(t)};o({target:"Array",proto:!0,forced:!v||!h},{concat:function(t){var e,n,o,r,i,a=u(this),f=s(a,0),d=0;for(e=-1,o=arguments.length;e<o;e++)if(g(i=-1===e?a:arguments[e])){if(d+(r=l(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,d++)n in i&&c(f,d,i[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(f,d++,i)}return f.length=d,f}})},function(t,e,n){"use strict";var o=n(4),r=n(8),i=n(28),a=n(37),u=n(14),l=n(77),c=n(104),s=n(12),f=n(15),d=n(52),p=n(13),A=n(24),v=n(38),h=n(27),g=n(56),m=n(35),y=n(48),w=n(57),x=n(119),b=n(232),E=n(120),_=n(67),C=n(18),S=n(55),M=n(17),N=n(50),k=n(73),B=n(59),I=n(49),T=n(60),R=n(9),D=n(95),F=n(11),H=n(41),O=n(42),P=n(33).forEach,Q=B("hidden"),j=R("toPrimitive"),L=O.set,U=O.getterFor("Symbol"),z=Object.prototype,Y=r.Symbol,$=i("JSON","stringify"),G=_.f,J=C.f,V=b.f,K=S.f,W=k("symbols"),q=k("op-symbols"),X=k("string-to-symbol-registry"),Z=k("symbol-to-string-registry"),tt=k("wks"),et=r.QObject,nt=!et||!et.prototype||!et.prototype.findChild,ot=u&&s((function(){return 7!=y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(t,e,n){var o=G(z,e);o&&delete z[e],J(t,e,n),o&&t!==z&&J(z,e,o)}:J,rt=function(t,e){var n=W[t]=y(Y.prototype);return L(n,{type:"Symbol",tag:t,description:e}),u||(n.description=e),n},it=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},at=function(t,e,n){t===z&&at(q,e,n),A(t);var o=g(e,!0);return A(n),f(W,o)?(n.enumerable?(f(t,Q)&&t[Q][o]&&(t[Q][o]=!1),n=y(n,{enumerable:m(0,!1)})):(f(t,Q)||J(t,Q,m(1,{})),t[Q][o]=!0),ot(t,o,n)):J(t,o,n)},ut=function(t,e){A(t);var n=h(e),o=w(n).concat(ft(n));return P(o,(function(e){u&&!lt.call(n,e)||at(t,e,n[e])})),t},lt=function(t){var e=g(t,!0),n=K.call(this,e);return!(this===z&&f(W,e)&&!f(q,e))&&(!(n||!f(this,e)||!f(W,e)||f(this,Q)&&this[Q][e])||n)},ct=function(t,e){var n=h(t),o=g(e,!0);if(n!==z||!f(W,o)||f(q,o)){var r=G(n,o);return!r||!f(W,o)||f(n,Q)&&n[Q][o]||(r.enumerable=!0),r}},st=function(t){var e=V(h(t)),n=[];return P(e,(function(t){f(W,t)||f(I,t)||n.push(t)})),n},ft=function(t){var e=t===z,n=V(e?q:h(t)),o=[];return P(n,(function(t){!f(W,t)||e&&!f(z,t)||o.push(W[t])})),o};(l||(N((Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=T(t),n=function(t){this===z&&n.call(q,t),f(this,Q)&&f(this[Q],e)&&(this[Q][e]=!1),ot(this,e,m(1,t))};return u&&nt&&ot(z,e,{configurable:!0,set:n}),rt(e,t)}).prototype,"toString",(function(){return U(this).tag})),N(Y,"withoutSetter",(function(t){return rt(T(t),t)})),S.f=lt,C.f=at,_.f=ct,x.f=b.f=st,E.f=ft,D.f=function(t){return rt(R(t),t)},u&&(J(Y.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||N(z,"propertyIsEnumerable",lt,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Y}),P(w(tt),(function(t){F(t)})),o({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=String(t);if(f(X,e))return X[e];var n=Y(e);return X[e]=n,Z[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(f(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(t,e){return void 0===e?y(t):ut(y(t),e)},defineProperty:at,defineProperties:ut,getOwnPropertyDescriptor:ct}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:st,getOwnPropertySymbols:ft}),o({target:"Object",stat:!0,forced:s((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(v(t))}}),$)&&o({target:"JSON",stat:!0,forced:!l||s((function(){var t=Y();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))}))},{stringify:function(t,e,n){for(var o,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(o=e,(p(e)||void 0!==t)&&!it(t))return d(e)||(e=function(t,e){if("function"==typeof o&&(e=o.call(this,t,e)),!it(e))return e}),r[1]=e,$.apply(null,r)}});Y.prototype[j]||M(Y.prototype,j,Y.prototype.valueOf),H(Y,"Symbol"),I[Q]=!0},function(t,e,n){var o=n(27),r=n(119).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(o(t))}},function(t,e,n){n(11)("asyncIterator")},function(t,e){},function(t,e,n){n(11)("hasInstance")},function(t,e,n){n(11)("isConcatSpreadable")},function(t,e,n){n(11)("match")},function(t,e,n){n(11)("matchAll")},function(t,e,n){n(11)("replace")},function(t,e,n){n(11)("search")},function(t,e,n){n(11)("species")},function(t,e,n){n(11)("split")},function(t,e,n){n(11)("toPrimitive")},function(t,e,n){n(11)("toStringTag")},function(t,e,n){n(11)("unscopables")},function(t,e,n){var o=n(8);n(41)(o.JSON,"JSON",!0)},function(t,e){},function(t,e){},function(t,e,n){n(11)("asyncDispose")},function(t,e,n){n(11)("dispose")},function(t,e,n){n(11)("observable")},function(t,e,n){n(11)("patternMatch")},function(t,e,n){n(11)("replaceAll")},function(t,e,n){n(255);var o=n(10);t.exports=o.setTimeout},function(t,e,n){var o=n(4),r=n(8),i=n(80),a=[].slice,u=function(t){return function(e,n){var o=arguments.length>2,r=o?a.call(arguments,2):void 0;return t(o?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var o=n(257);t.exports=o},function(t,e,n){var o=n(258),r=Array.prototype;t.exports=function(t){var e=t.slice;return t===r||t instanceof Array&&e===r.slice?o:e}},function(t,e,n){n(259);var o=n(16);t.exports=o("Array").slice},function(t,e,n){"use strict";var o=n(4),r=n(13),i=n(52),a=n(71),u=n(36),l=n(27),c=n(91),s=n(9),f=n(53),d=n(25),p=f("slice"),A=d("slice",{ACCESSORS:!0,0:0,1:2}),v=s("species"),h=[].slice,g=Math.max;o({target:"Array",proto:!0,forced:!p||!A},{slice:function(t,e){var n,o,s,f=l(this),d=u(f.length),p=a(t,d),A=a(void 0===e?d:e,d);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[v])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(f,p,A);for(o=new(void 0===n?Array:n)(g(A-p,0)),s=0;p<A;p++,s++)p in f&&c(o,s,f[p]);return o.length=s,o}})},function(t,e,n){t.exports=n(261)},function(t,e,n){var o=n(262);t.exports=o},function(t,e,n){n(263);var o=n(10);t.exports=o.parseInt},function(t,e,n){var o=n(4),r=n(264);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(t,e,n){var o=n(8),r=n(92).trim,i=n(66),a=o.parseInt,u=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");t.exports=l?function(t,e){var n=r(String(t));return a(n,e>>>0||(u.test(n)?16:10))}:a},function(t,e,n){"use strict";var o=n(0),r=o(n(266)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(271)),u=i(n(272)),l=i(n(122)),c=i(n(273)),s=i(n(274)),f=i(n(275)),d=i(n(276)),p=i(n(277)),A=i(n(278)),v=i(n(279)),h=(0,r.default)({},a.default,u.default,l.default,s.default,c.default,f.default,d.default,p.default,A.default,v.default,{linkCheck:function(t,e){return!0}},{linkImgCheck:function(t){return!0}});e.default=h},function(t,e,n){t.exports=n(267)},function(t,e,n){var o=n(268);t.exports=o},function(t,e,n){n(269);var o=n(10);t.exports=o.Object.assign},function(t,e,n){var o=n(4),r=n(270);o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(t,e,n){"use strict";var o=n(14),r=n(12),i=n(57),a=n(120),u=n(55),l=n(38),c=n(68),s=Object.assign,f=Object.defineProperty;t.exports=!s||r((function(){if(o&&1!==s({b:1},s(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||"abcdefghijklmnopqrst"!=i(s({},e)).join("")}))?function(t,e){for(var n=l(t),r=arguments.length,s=1,f=a.f,d=u.f;r>s;)for(var p,A=c(arguments[s++]),v=f?i(A).concat(f(A)):i(A),h=v.length,g=0;h>g;)p=v[g++],o&&!d.call(A,p)||(n[p]=A[p]);return n}:s},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var o="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal",r="http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal";e.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo","todo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b","#ffffff"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"　　　　",emotions:[{title:"默认",type:"image",content:[{alt:"[坏笑]",src:o+"/50/pcmoren_huaixiao_org.png"},{alt:"[舔屏]",src:o+"/40/pcmoren_tian_org.png"},{alt:"[污]",src:o+"/3c/pcmoren_wu_org.png"}]},{title:"新浪",type:"image",content:[{src:r+"/7a/shenshou_thumb.gif",alt:"[草泥马]"},{src:r+"/60/horse2_thumb.gif",alt:"[神马]"},{src:r+"/bc/fuyun_thumb.gif",alt:"[浮云]"}]},{title:"emoji",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 😊 😇 🙂 🙃 😉 😓 😪 😴 🙄 🤔 😬 🤐".split(/\s/)},{title:"手势",type:"emoji",content:["🙌","👏","👋","👍","👎","👊","✊","️👌","✋","👐","💪","🙏","️👆","👇","👈","👉","🖕","🖐","🤘"]}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em"}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var o=n(26);e.default={onchangeTimeout:200,onchange:o.EMPTY_FN,onfocus:o.EMPTY_FN,onblur:o.EMPTY_FN,onCatalogChange:null,customAlert:function(t,e,n){window.alert(t),n&&console.error("wangEditor: "+n)}}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(t){return t}}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default={styleWithCSS:!1}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var o=n(26);e.default={showLinkImg:!0,linkImgCallback:o.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"图片链接":"图片链接","上传图片":"上传图片","网络图片":"网络图片"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"默认":"default","新浪":"sina",emoji:"emoji","手势":"gesture"},image:{"图片链接":"image link","上传图片":"upload image","网络图片":"network image"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification"}}}}}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var o=n(7);e.default={compatibleMode:function(){return!(!o.UA.isIE()&&!o.UA.isOldEdge)},historyMaxSize:30}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var o=n(26);e.default={onlineVideoCheck:function(t){return!0},onlineVideoCallback:o.EMPTY_FN}},function(t,e,n){"use strict";var o=n(0),r=o(n(19)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2)),u=n(7),l=i(n(281)),c=function(){function t(t){this._currentRange=null,this.editor=t}return t.prototype.getRange=function(){return this._currentRange},t.prototype.saveRange=function(t){if(t)this._currentRange=t;else{var e=window.getSelection();if(0!==e.rangeCount){var n=e.getRangeAt(0),o=this.getSelectionContainerElem(n);if(o&&"false"!==o.attr("contenteditable")&&!o.parentUntil("[contenteditable=false]")){var i=this.editor,a=i.$textElem;if(a.isContain(o)){var u;if(a.elems[0]===o.elems[0])if("<p><br></p>"===(0,r.default)(u=a.html()).call(u)){var l=a.children(),c=null==l?void 0:l.last();i.selection.createRangeByElem(c,!0,!0),i.selection.restoreSelection()}this._currentRange=n}}}}},t.prototype.collapseRange=function(t){void 0===t&&(t=!1);var e=this._currentRange;e&&e.collapse(t)},t.prototype.getSelectionText=function(){var t=this._currentRange;return t?t.toString():""},t.prototype.getSelectionContainerElem=function(t){var e,n;if(e=t||this._currentRange)return n=e.commonAncestorContainer,a.default(1===n.nodeType?n:n.parentNode)},t.prototype.getSelectionStartElem=function(t){var e,n;if(e=t||this._currentRange)return n=e.startContainer,a.default(1===n.nodeType?n:n.parentNode)},t.prototype.getSelectionEndElem=function(t){var e,n;if(e=t||this._currentRange)return n=e.endContainer,a.default(1===n.nodeType?n:n.parentNode)},t.prototype.isSelectionEmpty=function(){var t=this._currentRange;return!(!t||!t.startContainer||t.startContainer!==t.endContainer||t.startOffset!==t.endOffset)},t.prototype.restoreSelection=function(){var t=window.getSelection(),e=this._currentRange;t&&e&&(t.removeAllRanges(),t.addRange(e))},t.prototype.createEmptyRange=function(){var t,e=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{u.UA.isWebkit()?(e.cmd.do("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(t=a.default("<strong>&#8203;</strong>"),e.cmd.do("insertElem",t),this.createRangeByElem(t,!0))}catch(t){}},t.prototype.createRangeByElem=function(t,e,n){if(t.length){var o=t.elems[0],r=document.createRange();n?r.selectNodeContents(o):r.selectNode(o),null!=e&&r.collapse(e),this.saveRange(r)}},t.prototype.getSelectionRangeTopNodes=function(t){var e=new l.default(t);return e.init(),e.getSelectionNodes()},t.prototype.moveCursor=function(t,e){var n,o=this.getRange(),r=3===t.nodeType?null===(n=t.nodeValue)||void 0===n?void 0:n.length:t.childNodes.length;(u.UA.isFirefox||u.UA.isIE())&&0!==r&&(3!==t.nodeType&&"BR"!==t.childNodes[r-1].nodeName||(r-=1));var i=null!=e?e:r;o&&t&&(o.setStart(t,i),o.setEnd(t,i),this.restoreSelection())},t.prototype.getCursorPos=function(){var t=window.getSelection();return null==t?void 0:t.anchorOffset},t}();e.default=c},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=function(){function t(t){this.editor=t,this.$nodeList=[],this.$startElem=r.default(t.selection.getSelectionStartElem()).getNodeTop(this.editor),this.$endElem=r.default(t.selection.getSelectionEndElem()).getNodeTop(this.editor)}return t.prototype.init=function(){this.recordSelectionNodes(r.default(this.$startElem))},t.prototype.addNodeList=function(t){this.$nodeList.push(r.default(t))},t.prototype.isEndElem=function(t){var e;return null===(e=this.$endElem)||void 0===e?void 0:e.equal(t)},t.prototype.getNextSibling=function(t){return r.default(t.elems[0].nextSibling)},t.prototype.recordSelectionNodes=function(t){var e=t.getNodeTop(this.editor);e.length>0&&(this.addNodeList(e),this.isEndElem(e)||this.recordSelectionNodes(this.getNextSibling(e)))},t.prototype.getSelectionNodes=function(){return this.$nodeList},t}();e.default=i},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=function(){function t(t){this.editor=t}return t.prototype.do=function(t,e){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var o=n.selection;if(o.getRange()){switch(o.restoreSelection(),t){case"insertHTML":this.insertHTML(e);break;case"insertElem":this.insertElem(e);break;default:this.execCommand(t,e)}n.menus.changeActive(),o.saveRange(),o.restoreSelection()}},t.prototype.insertHTML=function(t){var e=this.editor,n=e.selection.getRange();null!=n&&(this.queryCommandSupported("insertHTML")?this.execCommand("insertHTML",t):n.insertNode&&(n.deleteContents(),n.insertNode(r.default(t).elems[0]),e.selection.collapseRange()))},t.prototype.insertElem=function(t){var e=this.editor.selection.getRange();null!=e&&e.insertNode&&(e.deleteContents(),e.insertNode(t.elems[0]))},t.prototype.execCommand=function(t,e){document.execCommand(t,!1,e)},t.prototype.queryCommandValue=function(t){return document.queryCommandValue(t)},t.prototype.queryCommandState=function(t){return document.queryCommandState(t)},t.prototype.queryCommandSupported=function(t){return document.queryCommandSupported(t)},t}();e.default=i},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=o(n(54)),a=o(n(19)),u=o(n(30)),l=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var c=l(n(2)),s=l(n(288)),f=n(7),d=l(n(300)),p=l(n(301)),A=function(){function t(t){this.editor=t,this.eventHooks={changeEvents:[],dropEvents:[],clickEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[]}}return t.prototype.init=function(){this._saveRange(),this._bindEventHooks(),s.default(this)},t.prototype.togglePlaceholder=function(){var t,e=this.html(),n=(0,u.default)(t=this.editor.$textContainerElem).call(t,".placeholder");n.hide(),e&&" "!==e||n.show()},t.prototype.clear=function(){this.html("<p><br></p>")},t.prototype.html=function(t){var e=this.editor,n=e.$textElem;if(null==t){var o=n.html();return o=(o=(o=o.replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(/<p><br\/?><\/p>$/gim,"")}""===(t=(0,a.default)(t).call(t))&&(t="<p><br></p>"),0!==(0,i.default)(t).call(t,"<")&&(t="<p>"+t+"</p>"),n.html(t),e.initSelection()},t.prototype.setJSON=function(t){var e=p.default(t).children(),n=this.editor.$textElem;e&&n.replaceChildAll(e)},t.prototype.getJSON=function(){var t=this.editor.$textElem;return d.default(t)},t.prototype.text=function(t){var e=this.editor,n=e.$textElem;if(null==t){var o=n.text();return o=o.replace(/\u200b/gm,"")}n.text("<p>"+t+"</p>"),e.initSelection()},t.prototype.append=function(t){var e=this.editor,n=e.$textElem;0!==(0,i.default)(t).call(t,"<")&&(t="<p>"+t+"</p>"),n.append(c.default(t)),e.initSelection()},t.prototype._saveRange=function(){var t=this.editor,e=t.$textElem;function n(){t.selection.saveRange(),t.menus.changeActive()}e.on("keyup",n),e.on("click",(function t(){n(),e.off("click",t)})),e.on("mousedown",(function(){e.on("mouseleave",n)})),e.on("mouseup",(function(){var o=t.selection.getRange();if(null!=o){var r=o.startOffset,i=o.endOffset,a=null==o?void 0:o.endContainer;r!==i&&null!=a&&(null==o||o.setStart(a,i)),n(),e.off("mouseleave",n)}}))},t.prototype._bindEventHooks=function(){var t=this.editor,e=t.$textElem,n=this.eventHooks;function o(t){t.preventDefault()}e.on("click",(function(t){var e=n.clickEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))})),e.on("keyup",(function(t){if(13===t.keyCode){var e=n.enterUpEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}})),e.on("keyup",(function(t){var e=n.keyupEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))})),e.on("keyup",(function(t){if(8===t.keyCode){var e=n.deleteUpEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}})),e.on("keydown",(function(t){if(8===t.keyCode){var e=n.deleteDownEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}})),e.on("paste",(function(t){if(!f.UA.isIE()){t.preventDefault();var e=n.pasteEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}})),e.on("keydown",(function(e){(t.isFocus||t.isCompatibleMode)&&(e.ctrlKey||e.metaKey)&&90===e.keyCode&&(e.preventDefault(),e.shiftKey?t.history.restore():t.history.revoke())})),e.on("keyup",(function(t){if(9===t.keyCode){t.preventDefault();var e=n.tabUpEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}})),e.on("keydown",(function(t){if(9===t.keyCode){t.preventDefault();var e=n.tabDownEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}})),e.on("scroll",f.throttle((function(t){var e=n.textScrollEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}),100)),c.default(document).on("dragleave",o).on("drop",o).on("dragenter",o).on("dragover",o),t.beforeDestroy((function(){c.default(document).off("dragleave",o).off("drop",o).off("dragenter",o).off("dragover",o)})),e.on("drop",(function(t){t.preventDefault();var e=n.dropEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))})),e.on("click",(function(t){var e=null,o=t.target,i=c.default(o);if("A"===i.getNodeName())e=i;else{var a=i.parentUntil("a");null!=a&&(e=a)}if(e){var u=n.linkClickEvents;(0,r.default)(u).call(u,(function(t){return t(e)}))}})),e.on("click",(function(t){var e=null,o=t.target,i=c.default(o);if("IMG"!==i.getNodeName()||i.elems[0].getAttribute("class")&&"eleImg"===i.elems[0].getAttribute("class")||i.elems[0].getAttribute("alt")||(t.stopPropagation(),e=i),e){var a=n.imgClickEvents;(0,r.default)(a).call(a,(function(t){return t(e)}))}})),e.on("click",(function(t){var e=null,o=t.target,i=c.default(o);if("PRE"===i.getNodeName())e=i;else{var a=i.parentUntil("pre");null!==a&&(e=a)}if(e){var u=n.codeClickEvents;(0,r.default)(u).call(u,(function(t){return t(e)}))}})),e.on("click",(function(e){var o=null,i=e.target,a=c.default(i);if("HR"===a.getNodeName()&&(o=a),o){t.selection.createRangeByElem(o),t.selection.restoreSelection();var u=n.splitLineEvents;(0,r.default)(u).call(u,(function(t){return t(o)}))}})),t.$toolbarElem.on("click",(function(t){var e=n.toolbarClickEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))})),t.$textContainerElem.on("mousedown",(function(t){var e=t.target;if(c.default(e).hasClass("w-e-img-drag-rb")){var o=n.imgDragBarMouseDownEvents;(0,r.default)(o).call(o,(function(t){return t()}))}})),e.on("click",(function(e){var o,i=e.target;if(o=c.default(i).parentUntilEditor("TABLE",t,i)){var a=n.tableClickEvents;(0,r.default)(a).call(a,(function(t){return t(o)}))}})),e.on("keydown",(function(t){if(13===t.keyCode){var e=n.enterDownEvents;(0,r.default)(e).call(e,(function(e){return e(t)}))}}))},t}();e.default=A},function(t,e,n){var o=n(285);t.exports=o},function(t,e,n){var o=n(286),r=Array.prototype;t.exports=function(t){var e=t.find;return t===r||t instanceof Array&&e===r.find?o:e}},function(t,e,n){n(287);var o=n(16);t.exports=o("Array").find},function(t,e,n){"use strict";var o=n(4),r=n(33).find,i=n(85),a=n(25),u=!0,l=a("find");"find"in[]&&Array(1).find((function(){u=!1})),o({target:"Array",proto:!0,forced:u||!l},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(289)),i=o(n(290)),a=o(n(291)),u=o(n(292)),l=o(n(299));e.default=function(t){var e=t.editor,n=t.eventHooks;r.default(e,n.enterUpEvents,n.enterDownEvents),i.default(e,n.deleteUpEvents,n.deleteDownEvents),a.default(e,n.tabDownEvents),u.default(e,n.pasteEvents),l.default(e,n.imgClickEvents)}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2));e.default=function(t,e,n){function o(e){var n=r.default("<p><br></p>");n.insertBefore(e),t.selection.createRangeByElem(n,!0,!0),t.selection.restoreSelection(),e.remove()}e.push((function(){var e=t.$textElem,n=t.selection.getSelectionContainerElem(),r=n.parent();"<code><br></code>"!==r.html()?r.equal(e)&&"P"!==n.getNodeName()&&(n.text()||o(n)):o(n)})),n.push((function(e){var n;t.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0)),t.selection.getSelectionContainerElem().id===t.textElemId&&(e.preventDefault(),t.cmd.do("insertHTML","<p><br></p>"))}))}},function(t,e,n){"use strict";var o=n(0),r=o(n(19)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2));e.default=function(t,e,n){e.push((function(){var e,n=t.$textElem,o=(0,r.default)(e=n.html().toLowerCase()).call(e);if(!o||"<br>"===o){var i=a.default("<p><br/></p>");n.html(" "),n.append(i),t.selection.createRangeByElem(i,!1,!0),t.selection.restoreSelection(),t.selection.moveCursor(i.getNode(),0)}})),n.push((function(e){var n,o=t.$textElem;"<p><br></p>"!==(0,r.default)(n=o.html().toLowerCase()).call(n)||e.preventDefault()}))}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default=function(t,e){e.push((function(){if(t.cmd.queryCommandSupported("insertHTML")){var e=t.selection.getSelectionContainerElem();if(e){var n=e.parent(),o=e.getNodeName(),r=n.getNodeName();"CODE"==o||"CODE"===r||"PRE"===r||/hljs/.test(r)?t.cmd.do("insertHTML",t.config.languageTab):t.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}))}},function(t,e,n){"use strict";var o=n(0),r=o(n(19));(0,o(n(1)).default)(e,"__esModule",{value:!0});var i=n(123),a=n(7),u=n(26);function l(t){var e=t;return e=(e=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).replace(/<p><\/p>/gim,"<p><br></p>"),(0,r.default)(e).call(e)}e.default=function(t,e){e.push((function(e){var n=t.config,o=n.pasteFilterStyle,r=n.pasteIgnoreImg,c=n.pasteTextHandle,s=i.getPasteHtml(e,o,r),f=i.getPasteText(e);f=f.replace(/\n/gm,"<br>");var d=t.selection.getSelectionContainerElem();if(d){var p,A=null==d?void 0:d.getNodeName(),v=null==d?void 0:d.getNodeTop(t),h="";if(v.elems[0]&&(h=null==v?void 0:v.getNodeName()),"CODE"===A||"PRE"===h)return c&&a.isFunction(c)&&(f=""+(c(f)||"")),void t.cmd.do("insertHTML",(p=f,p.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"")));if(u.urlRegex.test(f))return t.cmd.do("insertHTML",'<a href="'+f+'" target="_blank">'+f+"</a>");if(s)try{c&&a.isFunction(c)&&(s=""+(c(s)||"")),t.cmd.do("insertHTML",""+l(s))}catch(e){c&&a.isFunction(c)&&(f=""+(c(f)||"")),t.cmd.do("insertHTML",""+l(f))}}}))}},function(t,e,n){"use strict";var o=n(0),r=o(n(89)),i=o(n(5)),a=o(n(19)),u=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var l=n(294),c=u(n(298));function s(t,e){var n;return t=(0,a.default)(n=t.toLowerCase()).call(n),!!l.IGNORE_TAGS.has(t)||!(!e||"img"!==t)}e.default=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var o=[],u="";(new c.default).parse(t,{startElement:function(t,c){if(function(t){(t=(0,a.default)(t).call(t))&&(l.EMPTY_TAGS.has(t)||(u=t))}(t),!s(t,n)){var f=l.NECESSARY_ATTRS.get(t)||[],d=[];(0,i.default)(c).call(c,(function(t){var n=t.name;"style"!==n?!1!==(0,r.default)(f).call(f,n)&&d.push(t):e||d.push(t)}));var p=function(t,e){var n="";n="<"+t;var o=[];return(0,i.default)(e).call(e,(function(t){o.push(t.name+'="'+t.value+'"')})),o.length>0&&(n=n+" "+o.join(" ")),n=n+(l.EMPTY_TAGS.has(t)?"/":"")+">"}(t,d);o.push(p)}},characters:function(t){t&&(s(u,n)&&/^</.test(t)||o.push(t))},endElement:function(t){if(!s(t,n)){var e=function(t){return"</"+t+">"}(t);o.push(e),u=""}},comment:function(t){}});var f=o.join("");return f=function(t){var e=/<span>(.*?)<\/span>/;return t.replace(/<span>.*?<\/span>/gi,(function(t){var n=t.match(e);return null==n?"":n[1]}))}(f)}},function(t,e,n){"use strict";var o=n(0),r=o(n(114)),i=o(n(124));(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.TOP_LEVEL_TAGS=e.EMPTY_TAGS=e.NECESSARY_ATTRS=e.IGNORE_TAGS=void 0,e.IGNORE_TAGS=new i.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center"]),e.NECESSARY_ATTRS=new r.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),e.EMPTY_TAGS=new i.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),e.TOP_LEVEL_TAGS=new i.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(t,e,n){var o=n(296);t.exports=o},function(t,e,n){n(297),n(62),n(64),n(51);var o=n(10);t.exports=o.Set},function(t,e,n){"use strict";var o=n(115),r=n(117);t.exports=o("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},function(t,e){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(t,e){e&&(this.contentHandler=e);for(var n,o,r,i=!1,a=this;t.length>0;)"\x3c!--"==t.substring(0,4)?-1!=(r=t.indexOf("--\x3e"))?(this.contentHandler.comment(t.substring(4,r)),t=t.substring(r+3),i=!1):i=!0:"</"==t.substring(0,2)?this.endTagRe.test(t)?(RegExp.leftContext,n=RegExp.lastMatch,o=RegExp.rightContext,n.replace(this.endTagRe,(function(){return a.parseEndTag.apply(a,arguments)})),t=o,i=!1):i=!0:"<"==t.charAt(0)&&(this.startTagRe.test(t)?(RegExp.leftContext,n=RegExp.lastMatch,o=RegExp.rightContext,n.replace(this.startTagRe,(function(){return a.parseStartTag.apply(a,arguments)})),t=o,i=!1):i=!0),i&&(-1==(r=t.indexOf("<"))?(this.contentHandler.characters(t),t=""):(this.contentHandler.characters(t.substring(0,r)),t=t.substring(r))),i=!0},parseStartTag:function(t,e,n){var o=this.parseAttributes(e,n);this.contentHandler.startElement(e,o)},parseEndTag:function(t,e){this.contentHandler.endElement(e)},parseAttributes:function(t,e){var n=this,o=[];return e.replace(this.attrRe,(function(e,r,i,a,u,l,c){o.push(n.parseAttribute(t,e,r,i,a,u,l,c))})),o},parseAttribute:function(t,e,n){var o="";arguments[7]?o=arguments[8]:arguments[5]?o=arguments[6]:arguments[3]&&(o=arguments[4]);var r=!o&&!arguments[3];return{name:n,value:r?null:o}}},t.exports=n},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default=function(t,e){e.push((function(e){t.selection.createRangeByElem(e),t.selection.restoreSelection()}))}},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=n(7),u=i(n(2));e.default=function t(e){var n=[],o=e.childNodes()||[];return(0,r.default)(o).call(o,(function(e){var o,r=e.nodeType;if(3===r&&(o=e.textContent||"",o=a.replaceHtmlSymbol(o)),1===r){(o=o={}).tag=e.nodeName.toLowerCase();for(var i=[],l=e.attributes,c=l.length||0,s=0;s<c;s++){var f=l[s];i.push({name:f.name,value:f.value})}o.attrs=i,o.children=t(u.default(e))}o&&n.push(o)})),n}},function(t,e,n){"use strict";var o=n(0),r=o(n(94)),i=o(n(5)),a=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var u=a(n(2));e.default=function t(e,n){void 0===n&&(n=document.createElement("div"));var o=n;return(0,i.default)(e).call(e,(function(e){var n,a;("string"==typeof e&&(n=document.createTextNode(e)),"object"===(0,r.default)(e))&&(n=document.createElement(e.tag),(0,i.default)(a=e.attrs).call(a,(function(t){u.default(n).attr(t.name,t.value)})),e.children&&e.children.length>0&&t(e.children,n.getRootNode()));n&&o.appendChild(n)})),u.default(o)}},function(t,e,n){"use strict";var o=n(0),r=o(n(88)),i=o(n(121)),a=o(n(5)),u=o(n(89)),l=o(n(65)),c=o(n(93)),s=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var f=s(n(303)),d=function(){function t(t){this.editor=t,this.menuList=[],this.constructorList=f.default}return t.prototype.extend=function(t,e){e&&"function"==typeof e&&(this.constructorList[t]=e)},t.prototype.init=function(){var t,e,n=this,o=this.editor.config,r=o.excludeMenus;!1===(0,c.default)(r)&&(r=[]),o.menus=(0,l.default)(t=o.menus).call(t,(function(t){return!1===(0,u.default)(r).call(r,t)})),(0,a.default)(e=o.menus).call(e,(function(t){var e=n.constructorList[t];if(null!=e&&"function"==typeof e){var o=new e(n.editor);o.key=t,n.menuList.push(o)}})),this._addToToolbar()},t.prototype._addToToolbar=function(){var t,e=this.editor.$toolbarElem;(0,a.default)(t=this.menuList).call(t,(function(t){var n=t.$elem;n&&e.append(n)}))},t.prototype.menuFind=function(t){for(var e=this.menuList,n=0,o=e.length;n<o;n++)if(e[n].key===t)return e[n];return e[0]},t.prototype.changeActive=function(){var t;(0,a.default)(t=this.menuList).call(t,(function(t){var e;(0,i.default)((0,r.default)(e=t.tryChangeActive).call(e,t),100)}))},t}();e.default=d},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(304)),i=o(n(308)),a=o(n(313)),u=o(n(317)),l=o(n(318)),c=o(n(319)),s=o(n(320)),f=o(n(322)),d=o(n(324)),p=o(n(325)),A=o(n(328)),v=o(n(329)),h=o(n(330)),g=o(n(332)),m=o(n(352)),y=o(n(356)),w=o(n(358)),x=o(n(359)),b=o(n(361)),E=o(n(362)),_=o(n(363)),C=o(n(372)),S=o(n(376)),M=o(n(379));e.default={bold:r.default,head:i.default,italic:u.default,link:a.default,underline:l.default,strikeThrough:c.default,fontName:s.default,fontSize:f.default,justify:d.default,quote:p.default,backColor:A.default,foreColor:v.default,video:h.default,image:g.default,indent:m.default,emoticon:y.default,list:w.default,lineHeight:x.default,undo:b.default,redo:E.default,table:_.default,code:C.default,splitLine:S.default,todo:M.default}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(22)),f=c(n(2)),d=function(t){function e(e){var n=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-bold"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.clickHandler=function(){var t=this.editor,e=t.selection.isSelectionEmpty();e&&t.selection.createEmptyRange(),t.cmd.do("bold"),e&&(t.selection.collapseRange(),t.selection.restoreSelection())},e.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},e}(s.default);e.default=d},function(t,e,n){var o=n(306);t.exports=o},function(t,e,n){n(307);var o=n(10);t.exports=o.Object.setPrototypeOf},function(t,e,n){n(4)({target:"Object",stat:!0},{setPrototypeOf:n(76)})},function(t,e,n){"use strict";var o,r=n(0),i=r(n(309)),a=r(n(5)),u=r(n(30)),l=r(n(1)),c=r(n(3)),s=r(n(6)),f=(o=function(t,e){return(o=s.default||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?(0,c.default)(e):(n.prototype=e.prototype,new n)}),d=function(t){return t&&t.__esModule?t:{default:t}};(0,l.default)(e,"__esModule",{value:!0});var p=d(n(23)),A=d(n(2)),v=n(7),h=function(t){function e(e){var n=this,o=A.default('<div class="w-e-menu"><i class="w-e-icon-header"></i></div>'),r={width:100,title:"设置标题",type:"list",list:[{$elem:A.default("<h1>H1</h1>"),value:"<h1>"},{$elem:A.default("<h2>H2</h2>"),value:"<h2>"},{$elem:A.default("<h3>H3</h3>"),value:"<h3>"},{$elem:A.default("<h4>H4</h4>"),value:"<h4>"},{$elem:A.default("<h5>H5</h5>"),value:"<h5>"},{$elem:A.default("<p>"+e.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(t){n.command(t)}};return n=t.call(this,o,e,r)||this,e.config.onCatalogChange&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return f(e,t),e.prototype.command=function(t){var e=this.editor,n=e.selection.getSelectionContainerElem();n&&e.$textElem.equal(n)||(e.cmd.do("formatBlock",t),"<p>"!==t&&this.addUidForSelectionElem())},e.prototype.addUidForSelectionElem=function(){var t=this.editor.selection.getSelectionContainerElem(),e=v.getRandomCode();A.default(t).attr("id",e)},e.prototype.addListenerCatalog=function(){var t=this;this.editor.txt.eventHooks.changeEvents.push((function(){t.getCatalogs()}))},e.prototype.getCatalogs=function(){var t=this.editor,e=this.editor.$textElem,n=t.config.onCatalogChange,o=(0,u.default)(e).call(e,"h1,h2,h3,h4,h5"),r=[];(0,a.default)(o).call(o,(function(t,e){var n=A.default(t),o=n.attr("id"),i=n.getNodeName(),a=n.text();o||(o=v.getRandomCode(),n.attr("id",o)),a&&r.push({tag:i,id:o,text:a})})),(0,i.default)(this.oldCatalogs)!==(0,i.default)(r)&&(this.oldCatalogs=r,n&&n(r))},e.prototype.tryChangeActive=function(){var t=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(t)?this.active():this.unActive()},e}(p.default);e.default=h},function(t,e,n){t.exports=n(310)},function(t,e,n){var o=n(311);t.exports=o},function(t,e,n){n(312);var o=n(10);o.JSON||(o.JSON={stringify:JSON.stringify}),t.exports=function(t,e,n){return o.JSON.stringify.apply(null,arguments)}},function(t,e,n){var o=n(4),r=n(28),i=n(12),a=r("JSON","stringify"),u=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,s=function(t,e,n){var o=n.charAt(e-1),r=n.charAt(e+1);return l.test(t)&&!c.test(r)||c.test(t)&&!l.test(o)?"\\u"+t.charCodeAt(0).toString(16):t},f=i((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&o({target:"JSON",stat:!0,forced:f},{stringify:function(t,e,n){var o=a.apply(null,arguments);return"string"==typeof o?o.replace(u,s):o}})},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(34)),f=c(n(2)),d=c(n(314)),p=c(n(126)),A=c(n(31)),v=c(n(315)),h=function(t){function e(e){var n,o=f.default('<div class="w-e-menu"><i class="w-e-icon-link"></i></div>');return n=t.call(this,o,e)||this,v.default(e),n}return l(e,t),e.prototype.clickHandler=function(){var t,e=this.editor;if(this.isActive){if(!(t=e.selection.getSelectionContainerElem()))return;this.createPanel(t.text(),t.attr("href"))}else e.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(e.selection.getSelectionText(),"")},e.prototype.createPanel=function(t,e){var n=d.default(this.editor,t,e);new A.default(this,n).create()},e.prototype.tryChangeActive=function(){var t=this.editor;p.default(t)?this.active():this.unActive()},e}(s.default);e.default=h},function(t,e,n){"use strict";var o=n(0),r=o(n(19)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=n(7),u=i(n(2)),l=i(n(126));e.default=function(t,e,n){var o,i=a.getRandom("input-link"),c=a.getRandom("input-text"),s=a.getRandom("btn-ok"),f=a.getRandom("btn-del"),d=l.default(t)?"inline-block":"none";function p(){if(l.default(t)){var e=t.selection.getSelectionContainerElem();e&&(t.selection.createRangeByElem(e),t.selection.restoreSelection(),o=e)}}return{width:300,height:0,tabs:[{title:t.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n                        <input\n                            id="'+c+'"\n                            type="text"\n                            class="block"\n                            value="'+e+'"\n                            placeholder="'+t.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n                        </td>\n                        <input\n                            id="'+i+'"\n                            type="text"\n                            class="block"\n                            value="'+n+'"\n                            placeholder="'+t.i18next.t("如")+' https://..."/>\n                        </td>\n                        <div class="w-e-button-container">\n                            <button type="button" id="'+s+'" class="right">\n                                '+t.i18next.t("插入")+'\n                            </button>\n                            <button type="button" id="'+f+'" class="gray right" style="display:'+d+'">\n                                '+t.i18next.t("menus.panelMenus.link.取消链接")+"\n                            </button>\n                        </div>\n                    </div>",events:[{selector:"#"+s,type:"click",fn:function(){var e,n,o=u.default("#"+i),a=u.default("#"+c),s=(0,r.default)(e=o.val()).call(e),f=(0,r.default)(n=a.val()).call(n);if(s&&(f||(f=s),function(e,n){var o=t.config.linkCheck(e,n);if(void 0===o);else{if(!0===o)return!0;t.config.customAlert(o,"warning")}return!1}(f,s)))return function(e,n){l.default(t)?(p(),t.cmd.do("insertHTML",'<a href="'+n+'" target="_blank">'+e+"</a>")):t.cmd.do("insertHTML",'<a href="'+n+'" target="_blank">'+e+"</a>")}(f,s),!0}},{selector:"#"+f,type:"click",fn:function(){return function(){if(l.default(t)){p();var e=o.text();t.cmd.do("insertHTML","<span>"+e+"</span>")}}(),!0}}]}]}}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(316));e.default=function(t){r.default(t)}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=o(n(44));e.default=function(t){var e=function(t){var e;return{showLinkTooltip:function(n){var o=[{$elem:r.default("<span>"+t.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(t,e){var n=e.attr("href");return window.open(n,"_target"),!0}},{$elem:r.default("<span>"+t.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(t,e){t.selection.createRangeByElem(e),t.selection.restoreSelection();var n=e.text();return t.cmd.do("insertHTML","<span>"+n+"</span>"),!0}}];(e=new i.default(t,n,o)).create()},hideLinkTooltip:function(){e&&(e.remove(),e=null)}}}(t),n=e.showLinkTooltip,o=e.hideLinkTooltip;t.txt.eventHooks.linkClickEvents.push(n),t.txt.eventHooks.clickEvents.push(o),t.txt.eventHooks.keyupEvents.push(o),t.txt.eventHooks.toolbarClickEvents.push(o),t.txt.eventHooks.menuClickEvents.push(o),t.txt.eventHooks.textScrollEvents.push(o)}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(22)),f=c(n(2)),d=function(t){function e(e){var n=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-italic"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.clickHandler=function(){var t=this.editor,e=t.selection.isSelectionEmpty();e&&t.selection.createEmptyRange(),t.cmd.do("italic"),e&&(t.selection.collapseRange(),t.selection.restoreSelection())},e.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},e}(s.default);e.default=d},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(22)),f=c(n(2)),d=function(t){function e(e){var n=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-underline"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.clickHandler=function(){var t=this.editor,e=t.selection.isSelectionEmpty();e&&t.selection.createEmptyRange(),t.cmd.do("underline"),e&&(t.selection.collapseRange(),t.selection.restoreSelection())},e.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},e}(s.default);e.default=d},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(22)),f=c(n(2)),d=function(t){function e(e){var n=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-strikethrough"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.clickHandler=function(){var t=this.editor,e=t.selection.isSelectionEmpty();e&&t.selection.createEmptyRange(),t.cmd.do("strikeThrough"),e&&(t.selection.collapseRange(),t.selection.restoreSelection())},e.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},e}(s.default);e.default=d},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(23)),f=c(n(2)),d=c(n(321)),p=function(t){function e(e){var n=this,o=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-font"></i>\n            </div>'),r={width:100,title:"设置字体",type:"list",list:new d.default(e.config.fontNames).getItemList(),clickHandler:function(t){n.command(t)}};return n=t.call(this,o,e,r)||this}return l(e,t),e.prototype.command=function(t){var e,n=this.editor,o=n.selection.isSelectionEmpty(),r=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0],i="p"!==(null==r?void 0:r.nodeName.toLowerCase()),a=(null==r?void 0:r.getAttribute("face"))===t;if(o){if(i&&!a){var u=n.selection.getSelectionRangeTopNodes(n);n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("fontName",t),o&&(n.selection.collapseRange(),n.selection.restoreSelection())},e.prototype.tryChangeActive=function(){},e}(s.default);e.default=p},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2)),u=function(){function t(t){var e=this;this.itemList=[],(0,r.default)(t).call(t,(function(t){e.itemList.push({$elem:a.default("<p style=\"font-family:'"+t+"'\">"+t+"</p>"),value:t})}))}return t.prototype.getItemList=function(){return this.itemList},t}();e.default=u},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(23)),f=c(n(2)),d=c(n(323)),p=function(t){function e(e){var n=this,o=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-text-heigh"></i>\n            </div>'),r={width:160,title:"设置字号",type:"list",list:new d.default(e.config.fontSizes).getItemList(),clickHandler:function(t){n.command(t)}};return n=t.call(this,o,e,r)||this}return l(e,t),e.prototype.command=function(t){var e,n=this.editor,o=n.selection.isSelectionEmpty(),r=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0],i="p"!==(null==r?void 0:r.nodeName.toLowerCase()),a=(null==r?void 0:r.getAttribute("size"))===t;if(o){if(i&&!a){var u=n.selection.getSelectionRangeTopNodes(n);n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("fontSize",t),o&&(n.selection.collapseRange(),n.selection.restoreSelection())},e.prototype.tryChangeActive=function(){},e}(s.default);e.default=p},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=function(){function t(t){for(var e in this.itemList=[],t){var n=t[e];this.itemList.push({$elem:r.default('<p style="font-size:'+e+'">'+n.name+"</p>"),value:n.value})}}return t.prototype.getItemList=function(){return this.itemList},t}();e.default=i},function(t,e,n){"use strict";var o,r=n(0),i=r(n(5)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(23)),d=s(n(2)),p=function(t){function e(e){var n=this,o=d.default('<div class="w-e-menu"><i class="w-e-icon-paragraph-left"></i></div>'),r={width:100,title:"对齐方式",type:"list",list:[{$elem:d.default('<p>\n                            <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.靠左")+"\n                        </p>"),value:"justifyLeft"},{$elem:d.default('<p>\n                            <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.居中")+"\n                        </p>"),value:"justifyCenter"},{$elem:d.default('<p>\n                            <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.靠右")+"\n                        </p>"),value:"justifyRight"},{$elem:d.default('<p>\n                            <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.两端")+"\n                        </p>"),value:"justifyFull"}],clickHandler:function(t){n.command(t)}};return n=t.call(this,o,e,r)||this}return c(e,t),e.prototype.command=function(t){var e=this.editor,n=e.selection,o=n.getSelectionContainerElem();n.saveRange();var r=e.selection.getSelectionRangeTopNodes(e);if(o){var a={justifyLeft:"left",justifyCenter:"center",justifyRight:"right",justifyFull:"justify"}[t];(0,i.default)(r).call(r,(function(t){t.css("text-align",a)}))}n.restoreSelection()},e.prototype.tryChangeActive=function(){},e}(f.default);e.default=p},function(t,e,n){"use strict";var o,r=n(0),i=r(n(5)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(22)),p=s(n(326)),A=s(n(327)),v=function(t){function e(e){var n,o=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-quotes-left"></i>\n            </div>');return n=t.call(this,o,e)||this,p.default(e),n}return c(e,t),e.prototype.clickHandler=function(){var t,e=this.editor,n=e.selection.isSelectionEmpty(),o=e.selection.getSelectionRangeTopNodes(e),r=o[o.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var a=A.default(o);a.insertAfter(r),this.delSelectNode(o);var u=null===(t=a.childNodes())||void 0===t?void 0:t.last().getNode();return u.textContent?e.selection.moveCursor(u):e.selection.moveCursor(u,0),this.tryChangeActive(),void f.default("<p><br></p>").insertAfter(a)}var l=f.default(r.childNodes()),c=l.length,s=r;(0,i.default)(l).call(l,(function(t){var e=f.default(t);e.insertAfter(s),s=e})),r.remove(),e.selection.moveCursor(l.elems[c-1]),this.tryChangeActive(),n&&(e.selection.collapseRange(),e.selection.restoreSelection())},e.prototype.tryChangeActive=function(){var t,e=this.editor;"BLOCKQUOTE"===(null===(t=e.selection.getSelectionRangeTopNodes(e)[0])||void 0===t?void 0:t.getNodeName())?this.active():this.unActive()},e.prototype.getTopNodeName=function(){var t=this.editor,e=t.selection.getSelectionRangeTopNodes(t)[0];return null==e?void 0:e.getNodeName()},e.prototype.delSelectNode=function(t){(0,i.default)(t).call(t,(function(t){t.remove()}))},e}(d.default);e.default=v},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2));e.default=function(t){t.txt.eventHooks.enterDownEvents.push((function(e){var n,o=t.selection.getSelectionContainerElem(),i=t.selection.getSelectionRangeTopNodes(t)[0];if("BLOCKQUOTE"===(null==i?void 0:i.getNodeName())){if("BLOCKQUOTE"===o.getNodeName()){var a=null===(n=o.childNodes())||void 0===n?void 0:n.getNode();t.selection.moveCursor(a)}if(""===o.text()){e.preventDefault(),o.remove();var u=r.default("<p><br></p>");u.insertAfter(i),t.selection.moveCursor(u.getNode(),0)}""===i.text()&&i.remove()}}))}},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2));e.default=function(t){var e=a.default("<blockquote></blockquote>");return(0,r.default)(t).call(t,(function(t){e.append(t.clone(!0))})),e}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(29)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(23)),d=s(n(2)),p=n(7),A=function(t){function e(e){var n,o=this,r=d.default('<div class="w-e-menu">\n                <i class="w-e-icon-paint-brush"></i>\n            </div>'),a={width:120,title:"背景颜色",type:"inline-block",list:(0,i.default)(n=e.config.colors).call(n,(function(t){return{$elem:d.default('<i style="color:'+t+';" class="w-e-icon-paint-brush"></i>'),value:t}})),clickHandler:function(t){o.command(t)}};return o=t.call(this,r,e,a)||this}return c(e,t),e.prototype.command=function(t){var e,n=this.editor,o=n.selection.isSelectionEmpty(),r=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0],i="p"!==(null==r?void 0:r.nodeName.toLowerCase()),a=null==r?void 0:r.style.backgroundColor,u=p.hexToRgb(t)===a;if(o){if(i&&!u){var l=n.selection.getSelectionRangeTopNodes(n);n.selection.createRangeByElem(l[0]),n.selection.moveCursor(l[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("backColor",t),o&&(n.selection.collapseRange(),n.selection.restoreSelection())},e.prototype.tryChangeActive=function(){},e}(f.default);e.default=A},function(t,e,n){"use strict";var o,r=n(0),i=r(n(29)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(23)),d=s(n(2)),p=function(t){function e(e){var n,o=this,r=d.default('<div class="w-e-menu">\n                <i class="w-e-icon-pencil2"></i>\n            </div>'),a={width:120,title:"文字颜色",type:"inline-block",list:(0,i.default)(n=e.config.colors).call(n,(function(t){return{$elem:d.default('<i style="color:'+t+';" class="w-e-icon-pencil2"></i>'),value:t}})),clickHandler:function(t){o.command(t)}};return o=t.call(this,r,e,a)||this}return c(e,t),e.prototype.command=function(t){var e,n=this.editor,o=n.selection.isSelectionEmpty(),r=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0],i="p"!==(null==r?void 0:r.nodeName.toLowerCase()),a=(null==r?void 0:r.getAttribute("color"))===t;if(o){if(i&&!a){var u=n.selection.getSelectionRangeTopNodes(n);n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("foreColor",t),o&&(n.selection.collapseRange(),n.selection.restoreSelection())},e.prototype.tryChangeActive=function(){},e}(f.default);e.default=p},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(2)),f=c(n(31)),d=c(n(34)),p=c(n(331)),A=function(t){function e(e){var n=s.default('<div class="w-e-menu">\n                <i class="w-e-icon-play"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.clickHandler=function(){this.createPanel("")},e.prototype.createPanel=function(t){var e=p.default(this.editor,t);new f.default(this,e).create()},e.prototype.tryChangeActive=function(){},e}(d.default);e.default=A},function(t,e,n){"use strict";var o=n(0),r=o(n(19)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=n(7),u=i(n(2)),l=n(26);e.default=function(t,e){var n=a.getRandom("input-iframe"),o=a.getRandom("btn-ok"),i=function(e,n){return void 0===n&&(n="menus.panelMenus.video."),t.i18next.t(n+e)};return{width:300,height:0,tabs:[{title:t.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n                        <input \n                            id="'+n+'" \n                            type="text" \n                            class="block" \n                            placeholder="'+t.i18next.t("如")+'：<iframe src=... ></iframe>"/>\n                        </td>\n                        <div class="w-e-button-container">\n                            <button type="button" id="'+o+'" class="right">\n                                '+t.i18next.t("插入")+"\n                            </button>\n                        </div>\n                    </div>",events:[{selector:"#"+o,type:"click",fn:function(){var e,o=u.default("#"+n),a=(0,r.default)(e=o.val()).call(e);if(a&&function(e){var n=!0;l.videoRegex.test(e)||(n=!1);var o=t.config.onlineVideoCheck(e);if(void 0===o)!1===n&&console.log(i("您刚才插入的视频链接未通过编辑器校验","validate."));else if(!0===o){if(!1!==n)return!0;t.config.customAlert(i("您插入的网络视频无法识别","validate.")+"，"+i("请替换为正确的网络视频格式","validate.")+"：如<iframe src=...></iframe>","warning")}else t.config.customAlert(o,"error");return!1}(a))return function(e){t.cmd.do("insertHTML",e+"<p><br></p>"),t.config.onlineVideoCallback(e)}(a),!0}}]}]}}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(34)),f=c(n(2)),d=c(n(333)),p=c(n(31)),A=c(n(340)),v=function(t){function e(e){var n,o=f.default('<div class="w-e-menu"><i class="w-e-icon-image"></i></div>');return n=t.call(this,o,e)||this,A.default(e),n}return l(e,t),e.prototype.clickHandler=function(){this.createPanel()},e.prototype.createPanel=function(){var t=d.default(this.editor);new p.default(this,t).create()},e.prototype.tryChangeActive=function(){},e}(s.default);e.default=v},function(t,e,n){"use strict";var o=n(0),r=o(n(19)),i=o(n(29)),a=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var u=n(7),l=a(n(2)),c=a(n(97)),s=n(26);e.default=function(t){var e,n=t.config,o=new c.default(t),a=u.getRandom("up-trigger-id"),f=u.getRandom("up-file-id"),d=u.getRandom("input-link-url"),p=u.getRandom("btn-link"),A=function(e,n){return void 0===n&&(n="menus.panelMenus.image."),t.i18next.t(n+e)},v=1===n.uploadImgMaxLength?"":'multiple="multiple"',h=(0,i.default)(e=n.uploadImgAccept).call(e,(function(t){return"image/"+t})).join(","),g=[{title:A("上传图片"),tpl:'<div class="w-e-up-img-container">\n                    <div id="'+a+'" class="w-e-up-btn">\n                        <i class="w-e-icon-upload2"></i>\n                    </div>\n                    <div style="display:none;">\n                        <input id="'+f+'" type="file" '+v+' accept="'+h+'"/>\n                    </div>\n                </div>',events:[{selector:"#"+a,type:"click",fn:function(){var t=l.default("#"+f).elems[0];if(!t)return!0;t.click()}},{selector:"#"+f,type:"change",fn:function(){var t=l.default("#"+f).elems[0];if(!t)return!0;var e=t.files;return e.length&&o.uploadImg(e),!0}}]},{title:A("网络图片"),tpl:'<div>\n                    <input\n                        id="'+d+'"\n                        type="text"\n                        class="block"\n                        placeholder="'+A("图片链接")+'"/>\n                    </td>\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+p+'" class="right">'+A("插入","")+"</button>\n                    </div>\n                </div>",events:[{selector:"#"+p,type:"click",fn:function(){var t,e=l.default("#"+d),i=(0,r.default)(t=e.val()).call(t);if(i&&function(t){var e=!0;s.imgRegex.test(t)||(e=!1);var o=n.linkImgCheck(t);if(void 0===o)!1===e&&console.log(A("您刚才插入的图片链接未通过编辑器校验","validate."));else if(!0===o){if(!1!==e)return!0;n.customAlert(A("您插入的网络图片无法识别","validate.")+"，"+A("请替换为支持的图片类型","validate.")+"：jpg | png | gif ...","warning")}else n.customAlert(o,"error");return!1}(i))return o.insertImg(i),!0}}]}],m={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg)&&m.tabs.push(g[0]),n.showLinkImg&&m.tabs.push(g[1]),m}},function(t,e,n){"use strict";var o=n(0),r=o(n(94)),i=o(n(5));(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=n(7);e.default=function(t,e){var n=new XMLHttpRequest;if(n.open("POST",t),n.timeout=e.timeout||1e4,n.ontimeout=function(){console.error("wangEditor - 请求超时"),e.onTimeout&&e.onTimeout(n)},n.upload&&(n.upload.onprogress=function(t){var n=t.loaded/t.total;e.onProgress&&e.onProgress(n,t)}),e.headers&&(0,i.default)(a).call(a,e.headers,(function(t,e){n.setRequestHeader(t,e)})),n.withCredentials=!!e.withCredentials,e.beforeSend){var o=e.beforeSend(n);if(o&&"object"===(0,r.default)(o)&&o.prevent)return o.msg}return n.onreadystatechange=function(){if(4===n.readyState){var t=n.status;if(!(t<200||t>=300&&t<400)){if(t>=400)return console.error("wangEditor - XHR 报错，状态码 "+t),void(e.onError&&e.onError(n));var o,i=n.responseText;if("object"!==(0,r.default)(i))try{o=JSON.parse(i)}catch(t){return console.error("wangEditor - 返回结果不是 JSON 格式",i),void(e.onFail&&e.onFail(n,i))}else o=i;e.onSuccess(n,o)}}},n.send(e.formData||null),n}},function(t,e,n){"use strict";var o=n(0),r=o(n(336)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2)),u=function(){function t(t){this.editor=t,this.$textContainer=t.$textContainerElem,this.$bar=a.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return t.prototype.show=function(t){var e=this;if(!this.isShow){this.isShow=!0;var n=this.$bar;this.$textContainer.append(n),(0,r.default)()-this.time>100&&t<=1&&(n.css("width",100*t+"%"),this.time=(0,r.default)());var o=this.timeoutId;o&&clearTimeout(o),this.timeoutId=window.setTimeout((function(){e.hide()}),500)}},t.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},t}();e.default=u},function(t,e,n){t.exports=n(337)},function(t,e,n){var o=n(338);t.exports=o},function(t,e,n){n(339);var o=n(10);t.exports=o.Date.now},function(t,e,n){n(4)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(341)),i=o(n(342)),a=o(n(343)),u=o(n(351));e.default=function(t){r.default(t),i.default(t),a.default(t),u.default(t)}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=n(123),i=o(n(97));function a(t,e){if(!function(t,e){var n=t.config,o=n.pasteFilterStyle,i=n.pasteIgnoreImg;return!!r.getPasteHtml(e,o,i)||!!r.getPasteText(e)}(e,t)){var n=r.getPasteImgs(t);if(n.length)new i.default(e).uploadImg(n)}}e.default=function(t){t.txt.eventHooks.pasteEvents.push((function(e){a(e,t)}))}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(97));e.default=function(t){t.txt.eventHooks.dropEvents.push((function(e){var n=e.dataTransfer&&e.dataTransfer.files;n&&n.length&&new r.default(t).uploadImg(n)}))}},function(t,e,n){"use strict";var o=n(0),r=o(n(344)),i=o(n(30)),a=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.createShowHideFn=void 0;var u=a(n(2));n(349);var l=n(7);function c(t,e,n,o,r){t.attr("style","width:"+e+"px; height:"+n+"px; left:"+o+"px; top:"+r+"px;")}function s(t){var e,n=t.$textContainerElem,o=function(t,e){var n=u.default('<div class="w-e-img-drag-mask">\n            <div class="w-e-img-drag-show-size"></div>\n            <div class="w-e-img-drag-rb"></div>\n         </div>');return n.hide(),e.append(n),n}(0,n);function a(){(0,i.default)(n).call(n,".w-e-img-drag-mask").hide()}return function(t,n){t.on("click",(function(t){t.stopPropagation()})),t.on("mousedown",".w-e-img-drag-rb",(function(o){if(o.preventDefault(),e){var a=o.clientX,l=o.clientY,s=n.getBoundingClientRect(),f=e.getBoundingClientRect(),d=f.width,p=f.height,A=f.left-s.left,v=f.top-s.top,h=d/p,g=d,m=p,y=u.default(document);y.on("mousemove",x),y.on("mouseup",b),y.on("mouseleave",w)}function w(){y.off("mousemove",x),y.off("mouseup",b)}function x(e){e.stopPropagation(),e.preventDefault(),g=d+(e.clientX-a),m=p+(e.clientY-l),g/m!=h&&(m=g/h),g=(0,r.default)(g.toFixed(2)),m=(0,r.default)(m.toFixed(2)),(0,i.default)(t).call(t,".w-e-img-drag-show-size").text(g.toFixed(2).replace(".00","")+"px * "+m.toFixed(2).replace(".00","")+"px"),c(t,g,m,A,v)}function b(){e.attr("width",g+""),e.attr("height",m+"");var n=e.getBoundingClientRect();c(t,g,m,n.left-s.left,n.top-s.top),w()}}))}(o,n),u.default(document).on("click",a),t.beforeDestroy((function(){u.default(document).off("click",a)})),{showDrag:function(t){if(l.UA.isIE())return!1;t&&function(t,e,n){var o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=a.width.toFixed(2),l=a.height.toFixed(2);(0,i.default)(e).call(e,".w-e-img-drag-show-size").text(u+"px * "+l+"px"),c(e,(0,r.default)(u),(0,r.default)(l),a.left-o.left,a.top-o.top),e.show()}(n,o,e=t)},hideDrag:a}}e.createShowHideFn=s,e.default=function(t){var e=s(t),n=e.showDrag,o=e.hideDrag;t.txt.eventHooks.imgClickEvents.push(n),t.txt.eventHooks.textScrollEvents.push(o),t.txt.eventHooks.keyupEvents.push(o),t.txt.eventHooks.toolbarClickEvents.push(o),t.txt.eventHooks.menuClickEvents.push(o),t.txt.eventHooks.changeEvents.push(o)}},function(t,e,n){t.exports=n(345)},function(t,e,n){var o=n(346);t.exports=o},function(t,e,n){n(347);var o=n(10);t.exports=o.parseFloat},function(t,e,n){var o=n(4),r=n(348);o({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(t,e,n){var o=n(8),r=n(92).trim,i=n(66),a=o.parseFloat,u=1/a(i+"-0")!=-1/0;t.exports=u?function(t){var e=r(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},function(t,e,n){var o=n(20),r=n(350);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,".w-e-text-container {\n  overflow: hidden;\n}\n.w-e-img-drag-mask {\n  position: absolute;\n  z-index: 1;\n  border: 1px dashed #ccc;\n  box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n  position: absolute;\n  right: -5px;\n  bottom: -5px;\n  width: 16px;\n  height: 16px;\n  border-radius: 50%;\n  background: #ccc;\n  cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n  min-width: 110px;\n  height: 22px;\n  line-height: 22px;\n  font-size: 14px;\n  color: #999;\n  position: absolute;\n  left: 0;\n  top: 0;\n  background-color: #999;\n  color: #fff;\n  border-radius: 2px;\n  padding: 0 5px;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.createShowHideFn=void 0;var r=o(n(2)),i=o(n(44));function a(t){var e;return{showImgTooltip:function(n){var o,a,u=[{$elem:r.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(t,e){return t.selection.createRangeByElem(e),t.selection.restoreSelection(),t.cmd.do("delete"),!0}},{$elem:r.default("<span>30%</span>"),onClick:function(t,e){return e.attr("width","30%"),e.removeAttr("height"),!0}},{$elem:r.default("<span>50%</span>"),onClick:function(t,e){return e.attr("width","50%"),e.removeAttr("height"),!0}},{$elem:r.default("<span>100%</span>"),onClick:function(t,e){return e.attr("width","100%"),e.removeAttr("height"),!0}},{$elem:r.default("<span>"+(o="重置",void 0===a&&(a=""),t.i18next.t(a+o)+"</span>")),onClick:function(t,e){return e.removeAttr("width"),e.removeAttr("height"),!0}}];(e=new i.default(t,n,u)).create()},hideImgTooltip:function(){e&&(e.remove(),e=null)}}}e.createShowHideFn=a,e.default=function(t){var e=a(t),n=e.showImgTooltip,o=e.hideImgTooltip;t.txt.eventHooks.imgClickEvents.push(n),t.txt.eventHooks.clickEvents.push(o),t.txt.eventHooks.keyupEvents.push(o),t.txt.eventHooks.toolbarClickEvents.push(o),t.txt.eventHooks.menuClickEvents.push(o),t.txt.eventHooks.textScrollEvents.push(o),t.txt.eventHooks.imgDragBarMouseDownEvents.push(o),t.txt.eventHooks.changeEvents.push(o)}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(5)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(23)),p=s(n(353)),A=function(t){function e(e){var n=this,o=f.default('<div class="w-e-menu">\n                <i class="w-e-icon-indent-increase"></i>\n            </div>'),r={width:130,title:"设置缩进",type:"list",list:[{$elem:f.default('<p>\n                            <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n                        <p>"),value:"increase"},{$elem:f.default('<p>\n                            <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n                        <p>"),value:"decrease"}],clickHandler:function(t){n.command(t)}};return n=t.call(this,o,e,r)||this}return c(e,t),e.prototype.command=function(t){var e=this.editor,n=e.selection.getSelectionContainerElem();if(n&&e.$textElem.equal(n)){var o=e.selection.getSelectionRangeTopNodes(e);o.length>0&&(0,i.default)(o).call(o,(function(n){p.default(f.default(n),t,e)}))}else n&&n.length>0&&(0,i.default)(n).call(n,(function(n){p.default(f.default(n),t,e)}));e.selection.restoreSelection(),this.tryChangeActive()},e.prototype.tryChangeActive=function(){var t=this.editor,e=t.selection.getSelectionStartElem(),n=f.default(e).getNodeTop(t);n.length<=0||(""!=n.elems[0].style.paddingLeft?this.active():this.unActive())},e}(d.default);e.default=A},function(t,e,n){"use strict";var o=n(0),r=o(n(19)),i=o(n(43)),a=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var u=a(n(354)),l=a(n(355)),c=/^(\d+)(\w+)$/,s=/^(\d+)%$/;function f(t){var e=t.config.indentation;if("string"==typeof e){if(c.test(e)){var n,o=(0,i.default)(n=(0,r.default)(e).call(e).match(c)).call(n,1,3),a=o[0],u=o[1];return{value:Number(a),unit:u}}if(s.test(e))return{value:Number((0,r.default)(e).call(e).match(s)[1]),unit:"%"}}else if(void 0!==e.value&&e.unit)return e;return{value:2,unit:"em"}}e.default=function(t,e,n){var o=t.getNodeTop(n);/^P$/i.test(o.getNodeName())&&("increase"===e?u.default(o,f(n)):"decrease"===e&&l.default(o,f(n)))}},function(t,e,n){"use strict";var o=n(0),r=o(n(43));(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.default=function(t,e){var n=t.elems[0];if(""===n.style.paddingLeft)t.css("padding-left",e.value+e.unit);else{var o=n.style.paddingLeft,i=(0,r.default)(o).call(o,0,o.length-e.unit.length),a=Number(i)+e.value;t.css("padding-left",""+a+e.unit)}}},function(t,e,n){"use strict";var o=n(0),r=o(n(43));(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.default=function(t,e){var n=t.elems[0];if(""!==n.style.paddingLeft){var o=n.style.paddingLeft,i=(0,r.default)(o).call(o,0,o.length-e.unit.length),a=Number(i)-e.value;a>0?t.css("padding-left",""+a+e.unit):t.css("padding-left","")}}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(2)),f=c(n(34)),d=c(n(31)),p=c(n(357)),A=function(t){function e(e){var n=s.default('<div class="w-e-menu">\n                <i class="w-e-icon-happy"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.createPanel=function(){var t=p.default(this.editor);new d.default(this,t).create()},e.prototype.clickHandler=function(){this.createPanel()},e.prototype.tryChangeActive=function(){},e}(f.default);e.default=A},function(t,e,n){"use strict";var o=n(0),r=o(n(19)),i=o(n(65)),a=o(n(29)),u=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var l=u(n(2));e.default=function(t){var e=t.config.emotions;function n(t){var e,n,o=[];"image"==t.type?(o=(0,a.default)(e=t.content).call(e,(function(t){return"string"==typeof t?"":'<span  title="'+t.alt+'">\n                    <img class="eleImg" style src="'+t.src+'" alt="['+t.alt+']">\n                </span>'})),o=(0,i.default)(o).call(o,(function(t){return""!==t}))):o=(0,a.default)(n=t.content).call(n,(function(t){return'<span class="eleImg" title="'+t+'">'+t+"</span>"}));return o.join("").replace(/&nbsp;/g,"")}return{width:300,height:230,tabs:(0,a.default)(e).call(e,(function(e){return{title:t.i18next.t("menus.panelMenus.emoticon."+e.title),tpl:"<div>"+n(e)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(e){var n,o,i=l.default(e.target);"IMG"===i.getNodeName()?n=(0,r.default)(o=i.parent().html()).call(o):n="<span>"+i.html()+"</span>";return t.cmd.do("insertHTML",n),!0}}]}}))}}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(2)),f=function(t){function e(e){var n=this,o=s.default('<div class="w-e-menu">\n                <i class="w-e-icon-list2"></i>\n            </div>'),r={width:130,title:"序列",type:"list",list:[{$elem:s.default('\n                        <p>\n                            <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.list.无序列表")+"\n                        <p>"),value:"insertUnorderedList"},{$elem:s.default('<p>\n                            <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.list.有序列表")+"\n                        <p>"),value:"insertOrderedList"}],clickHandler:function(t){n.command(t)}};return n=t.call(this,o,e,r)||this}return l(e,t),e.prototype.command=function(t){var e=this.editor,n=e.$textElem;if(e.selection.restoreSelection(),!e.cmd.queryCommandState(t)){var o=s.default(e.selection.getSelectionContainerElem()),r=s.default(o.elems[0]).parentUntil("TABLE",o.elems[0]);if(!(r&&"TABLE"===s.default(r.elems[0]).getNodeName()||(e.cmd.do(t),"LI"===o.getNodeName()&&(o=o.parent()),!1===/^ol|ul$/i.test(o.getNodeName())||o.equal(n)))){var i=o.parent();i.equal(n)||(o.insertAfter(i),i.remove(),e.selection.restoreSelection(),this.tryChangeActive())}}},e.prototype.tryChangeActive=function(){},e}(c(n(23)).default);e.default=f},function(t,e,n){"use strict";var o,r=n(0),i=r(n(54)),a=r(n(5)),u=r(n(1)),l=r(n(3)),c=r(n(6)),s=(o=function(t,e){return(o=c.default||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?(0,l.default)(e):(n.prototype=e.prototype,new n)}),f=function(t){return t&&t.__esModule?t:{default:t}};(0,u.default)(e,"__esModule",{value:!0});var d=f(n(23)),p=f(n(2)),A=f(n(360)),v=n(7),h=function(t){function e(e){var n=this,o=p.default('<div class="w-e-menu">\n                    <i class="w-e-icon-row-height"></i>\n                </div>'),r={width:100,title:"设置行高",type:"list",list:new A.default(e,e.config.lineHeights).getItemList(),clickHandler:function(t){e.selection.saveRange(),n.command(t)}};return n=t.call(this,o,e,r)||this}return s(e,t),e.prototype.command=function(t){var e,n=this,o=window.getSelection?window.getSelection():document.getSelection(),r=["P"],u=this.editor,l="";u.selection.restoreSelection();var c=p.default(u.selection.getSelectionContainerElem()),s=p.default(u.selection.getSelectionContainerElem()),f=p.default(u.selection.getSelectionStartElem()).elems[0],d="",A=[],h="";if(c&&u.$textElem.equal(c)){if(v.UA.isIE())return;var g=[],m=[],y=[],w=p.default(u.selection.getSelectionStartElem()),x=p.default(u.selection.getSelectionEndElem()),b=null===(e=u.selection.getRange())||void 0===e?void 0:e.commonAncestorContainer.childNodes;m.push(this.getDom(w.elems[0])),null==b||(0,a.default)(b).call(b,(function(t,e){t===n.getDom(w.elems[0])&&g.push(e),t===n.getDom(x.elems[0])&&g.push(e)}));var E=0,_=void 0;for(y.push(this.getDom(w.elems[0]));m[E]!==this.getDom(x.elems[0]);)_=p.default(m[E].nextElementSibling).elems[0],-1!==(0,i.default)(r).call(r,p.default(_).getNodeName())?(y.push(_),m.push(_)):m.push(_),E++;if("P"!==p.default(m[0]).getNodeName()){E=0;for(var C=0;C<m.length;C++)if("P"===p.default(m[C]).getNodeName()){E=C;break}if(0===E)return;for(var S=0;S!==E;)m.shift(),S++}return this.setRange(m[0],m[m.length-1]),(0,a.default)(m).call(m,(function(e){d=e.getAttribute("style"),A=d?d.split(";"):[],h="","P"===p.default(e).getNodeName()?(h=t?n.styleProcessing(A)+"line-height:"+t+";":n.styleProcessing(A),l=l+"<"+p.default(e).getNodeName().toLowerCase()+' style="'+h+'">'+e.innerHTML+"</"+p.default(e).getNodeName().toLowerCase()+">"):(h=n.styleProcessing(A),l=l+"<"+p.default(e).getNodeName().toLowerCase()+' style="'+h+'">'+e.innerHTML+"</"+p.default(e).getNodeName().toLowerCase()+">")})),this.action(l,u),f=s.elems[0],void this.setRange(f.children[g[0]],f.children[g[1]])}f=this.getDom(f),-1!==(0,i.default)(r).call(r,p.default(f).getNodeName())&&(d=f.getAttribute("style"),A=d?d.split(";"):[],null==o||o.selectAllChildren(f),u.selection.saveRange(),t?(h=d?this.styleProcessing(A)+"line-height:"+t+";":"line-height:"+t+";",l="<"+p.default(f).getNodeName().toLowerCase()+' style="'+h+'">'+f.innerHTML+"</"+p.default(f).getNodeName().toLowerCase()+">","BLOCKQUOTE"===p.default(f).getNodeName()?p.default(f).css("line-height",t):this.action(l,u)):d&&(h=this.styleProcessing(A),l=""===h?"<"+p.default(f).getNodeName().toLowerCase()+">"+f.innerHTML+"</"+p.default(f).getNodeName().toLowerCase()+">":"<"+p.default(f).getNodeName().toLowerCase()+' style="'+h+'">'+f.innerHTML+"</"+p.default(f).getNodeName().toLowerCase()+">",this.action(l,u)))},e.prototype.getDom=function(t){var e=p.default(t).elems[0];if(!e.parentNode)return e;return e=function t(e,n){var o=p.default(e.parentNode);return n.$textElem.equal(o)?e:t(o.elems[0],n)}(e,this.editor)},e.prototype.action=function(t,e){e.cmd.do("insertHTML",t)},e.prototype.styleProcessing=function(t){var e="";return(0,a.default)(t).call(t,(function(t){""!==t&&-1===(0,i.default)(t).call(t,"line-height")&&(e=e+t+";")})),e},e.prototype.setRange=function(t,e){var n=this.editor,o=window.getSelection?window.getSelection():document.getSelection();null==o||o.removeAllRanges();var r=document.createRange(),i=t,a=e;r.setStart(i,0),r.setEnd(a,1),null==o||o.addRange(r),n.selection.saveRange(),null==o||o.removeAllRanges(),n.selection.restoreSelection()},e.prototype.tryChangeActive=function(){var t=this.editor,e=t.selection.getSelectionContainerElem();if(!e||!t.$textElem.equal(e)){var n=p.default(t.selection.getSelectionStartElem()),o=(n=this.getDom(n.elems[0])).getAttribute("style")?n.getAttribute("style"):"";o&&-1!==(0,i.default)(o).call(o,"line-height")?this.active():this.unActive()}},e}(d.default);e.default=h},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2)),u=function(){function t(t,e){var n=this;this.itemList=[{$elem:a.default("<span>"+t.i18next.t("默认")+"</span>"),value:""}],(0,r.default)(e).call(e,(function(t){n.itemList.push({$elem:a.default("<span>"+t+"</span>"),value:t})}))}return t.prototype.getItemList=function(){return this.itemList},t}();e.default=u},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(2)),f=function(t){function e(e){var n=s.default('<div class="w-e-menu">\n                <i class="w-e-icon-undo"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.clickHandler=function(){this.editor.history.revoke()},e.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},e}(c(n(22)).default);e.default=f},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(2)),f=function(t){function e(e){var n=s.default('<div class="w-e-menu">\n                <i class="w-e-icon-redo"></i>\n            </div>');return t.call(this,n,e)||this}return l(e,t),e.prototype.clickHandler=function(){this.editor.history.restore()},e.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},e}(c(n(22)).default);e.default=f},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(34)),f=c(n(2)),d=c(n(364)),p=c(n(31)),A=c(n(368)),v=function(t){function e(e){var n,o=f.default('<div class="w-e-menu"><i class="w-e-icon-table2"></i></div>');return n=t.call(this,o,e)||this,A.default(e),n}return l(e,t),e.prototype.clickHandler=function(){this.createPanel()},e.prototype.createPanel=function(){var t=d.default(this.editor);new p.default(this,t).create()},e.prototype.tryChangeActive=function(){},e}(s.default);e.default=v},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=n(7),i=o(n(2));n(365);var a=o(n(367));e.default=function(t){var e=new a.default(t),n=r.getRandom("w-col-id"),o=r.getRandom("w-row-id"),u=r.getRandom("btn-link"),l="menus.panelMenus.table.",c=function(e){return t.i18next.t(e)},s=[{title:c(l+"插入表格"),tpl:'<div>\n                    <div class="w-e-table">\n                        <span>'+c("创建")+'</span>\n                        <input id="'+o+'"  type="text" class="w-e-table-input" value="5"/></td>\n                        <span>'+c(l+"行")+'</span>\n                        <input id="'+n+'" type="text" class="w-e-table-input" value="5"/></td>\n                        <span>'+(c(l+"列")+c(l+"的")+c(l+"表格"))+'</span>\n                    </div>\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+u+'" class="right">'+c("插入")+"</button>\n                    </div>\n                </div>",events:[{selector:"#"+u,type:"click",fn:function(){var t=Number(i.default("#"+n).val()),r=Number(i.default("#"+o).val());return t&&r&&e.createAction(r,t),!0}}]}],f={width:330,height:0,tabs:[]};return f.tabs.push(s[0]),f}},function(t,e,n){var o=n(20),r=n(366);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,".w-e-table {\n  display: flex;\n}\n.w-e-table .w-e-table-input {\n  width: 40px;\n  text-align: center!important;\n  margin: 0 5px;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=function(){function t(t){this.editor=t}return t.prototype.createAction=function(t,e){var n=this.editor,o=r.default(n.selection.getSelectionContainerElem()),i=r.default(o.elems[0]).parentUntil("UL",o.elems[0]),a=r.default(o.elems[0]).parentUntil("OL",o.elems[0]);if(!i&&!a){var u=this.createTableHtml(t,e);n.cmd.do("insertHTML",u)}},t.prototype.createTableHtml=function(t,e){for(var n="",o="",r=0;r<t;r++){o="";for(var i=0;i<e;i++)o+=0===r?"<th></th>":"<td></td>";n=n+"<tr>"+o+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table><p><br></p>"},t}();e.default=i},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(369));e.default=function(t){r.default(t)}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=o(n(44)),a=o(n(370)),u=o(n(371));function l(t){var e=t.selection.getSelectionStartElem(),n=t.selection.getSelectionEndElem();return(null==e?void 0:e.elems[0])!==(null==n?void 0:n.elems[0])}e.default=function(t){var e=function(t){var e;return{showTableTooltip:function(n){var o=new u.default(t),c=function(e,n){return void 0===n&&(n="menus.panelMenus.table."),t.i18next.t(n+e)},s=[{$elem:r.default("<span>"+c("删除表格")+"</span>"),onClick:function(t,e){return t.selection.createRangeByElem(e),t.selection.restoreSelection(),t.cmd.do("insertHTML","<p><br></p>"),!0}},{$elem:r.default("<span>"+c("添加行")+"</span>"),onClick:function(t,e){if(l(t))return!0;var n=r.default(t.selection.getSelectionStartElem()),i=o.getRowNode(n.elems[0]);if(!i)return!0;var u=Number(o.getCurrentRowIndex(e.elems[0],i)),c=o.getTableHtml(e.elems[0]),s=o.getTableHtml(a.default.ProcessingRow(r.default(c),u).elems[0]);return t.selection.createRangeByElem(e),t.selection.restoreSelection(),t.cmd.do("insertHTML",s),!0}},{$elem:r.default("<span>"+c("删除行")+"</span>"),onClick:function(t,e){if(l(t))return!0;var n=r.default(t.selection.getSelectionStartElem()),i=o.getRowNode(n.elems[0]);if(!i)return!0;var u=Number(o.getCurrentRowIndex(e.elems[0],i)),c=o.getTableHtml(e.elems[0]),s=a.default.DeleteRow(r.default(c),u).elems[0].childNodes[0].childNodes.length,f="";return t.selection.createRangeByElem(e),t.selection.restoreSelection(),f=0===s?"<p><br></p>":o.getTableHtml(a.default.DeleteRow(r.default(c),u).elems[0]),t.cmd.do("insertHTML",f),!0}},{$elem:r.default("<span>"+c("添加列")+"</span>"),onClick:function(t,e){if(l(t))return!0;var n=r.default(t.selection.getSelectionStartElem()),i=o.getCurrentColIndex(n.elems[0]),u=o.getTableHtml(e.elems[0]),c=o.getTableHtml(a.default.ProcessingCol(r.default(u),i).elems[0]);return t.selection.createRangeByElem(e),t.selection.restoreSelection(),t.cmd.do("insertHTML",c),!0}},{$elem:r.default("<span>"+c("删除列")+"</span>"),onClick:function(t,e){if(l(t))return!0;var n=r.default(t.selection.getSelectionStartElem()),i=o.getCurrentColIndex(n.elems[0]),u=o.getTableHtml(e.elems[0]),c=a.default.DeleteCol(r.default(u),i).elems[0].childNodes[0].childNodes[0].childNodes.length,s="";return t.selection.createRangeByElem(e),t.selection.restoreSelection(),s=1===c?"<p><br></p>":o.getTableHtml(a.default.DeleteCol(r.default(u),i).elems[0]),t.cmd.do("insertHTML",s),!0}},{$elem:r.default("<span>"+c("设置表头")+"</span>"),onClick:function(t,e){if(l(t))return!0;var n=r.default(t.selection.getSelectionStartElem()),i=o.getRowNode(n.elems[0]);if(!i)return!0;var u=Number(o.getCurrentRowIndex(e.elems[0],i));0!==u&&(u=0);var c=o.getTableHtml(e.elems[0]),s=o.getTableHtml(a.default.setTheHeader(r.default(c),u,"th").elems[0]);return t.selection.createRangeByElem(e),t.selection.restoreSelection(),t.cmd.do("insertHTML",s),!0}},{$elem:r.default("<span>"+c("取消表头")+"</span>"),onClick:function(t,e){var n=r.default(t.selection.getSelectionStartElem()),i=o.getRowNode(n.elems[0]);if(!i)return!0;var u=Number(o.getCurrentRowIndex(e.elems[0],i));0!==u&&(u=0);var l=o.getTableHtml(e.elems[0]),c=o.getTableHtml(a.default.setTheHeader(r.default(l),u,"td").elems[0]);return t.selection.createRangeByElem(e),t.selection.restoreSelection(),t.cmd.do("insertHTML",c),!0}}];(e=new i.default(t,n,s)).create()},hideTableTooltip:function(){e&&(e.remove(),e=null)}}}(t),n=e.showTableTooltip,o=e.hideTableTooltip;t.txt.eventHooks.tableClickEvents.push(n),t.txt.eventHooks.clickEvents.push(o),t.txt.eventHooks.keyupEvents.push(o),t.txt.eventHooks.toolbarClickEvents.push(o),t.txt.eventHooks.menuClickEvents.push(o),t.txt.eventHooks.textScrollEvents.push(o)}},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=o(n(90)),a=o(n(43)),u=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var l=u(n(2));function c(t,e){for(;0!==t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var n=0;n<e.length;n++)t.appendChild(e[n])}function s(t){var e=t.elems[0].childNodes[0];return"COLGROUP"===e.nodeName&&(e=t.elems[0].childNodes[t.elems[0].childNodes.length-1]),e}e.default={ProcessingRow:function(t,e){for(var n=s(t),o=(0,a.default)(Array.prototype).apply(n.childNodes),r=o[0].childNodes.length,u=document.createElement("tr"),f=0;f<r;f++){var d=document.createElement("td");u.appendChild(d)}return(0,i.default)(o).call(o,e+1,0,u),c(n,o),l.default(n.parentNode)},ProcessingCol:function(t,e){for(var n=s(t),o=(0,a.default)(Array.prototype).apply(n.childNodes),u=function(t){var n,a=[];for((0,r.default)(n=o[t].childNodes).call(n,(function(t){a.push(t)}));0!==o[t].childNodes.length;)o[t].removeChild(o[t].childNodes[0]);var u="TH"!==l.default(a[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,i.default)(a).call(a,e+1,0,u);for(var c=0;c<a.length;c++)o[t].appendChild(a[c])},f=0;f<o.length;f++)u(f);return c(n,o),l.default(n.parentNode)},DeleteRow:function(t,e){var n=s(t),o=(0,a.default)(Array.prototype).apply(n.childNodes);return(0,i.default)(o).call(o,e,1),c(n,o),l.default(n.parentNode)},DeleteCol:function(t,e){for(var n=s(t),o=(0,a.default)(Array.prototype).apply(n.childNodes),u=function(t){var n,a=[];for((0,r.default)(n=o[t].childNodes).call(n,(function(t){a.push(t)}));0!==o[t].childNodes.length;)o[t].removeChild(o[t].childNodes[0]);(0,i.default)(a).call(a,e,1);for(var u=0;u<a.length;u++)o[t].appendChild(a[u])},f=0;f<o.length;f++)u(f);return c(n,o),l.default(n.parentNode)},setTheHeader:function(t,e,n){for(var o=s(t),u=(0,a.default)(Array.prototype).apply(o.childNodes),f=u[e].childNodes,d=document.createElement("tr"),p=function(t){var e,o=document.createElement(n);(0,r.default)(e=f[t].childNodes).call(e,(function(t){o.appendChild(t)})),d.appendChild(o)},A=0;A<f.length;A++)p(A);return(0,i.default)(u).call(u,e,1,d),c(o,u),l.default(o.parentNode)}}},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2)),u=function(){function t(t){this.editor=t}return t.prototype.getRowNode=function(t){var e,n=a.default(t).elems[0];return n.parentNode?n=null===(e=a.default(n).parentUntil("TR",n))||void 0===e?void 0:e.elems[0]:n},t.prototype.getCurrentRowIndex=function(t,e){var n,o=0,i=t.childNodes[0];return"COLGROUP"===i.nodeName&&(i=t.childNodes[t.childNodes.length-1]),(0,r.default)(n=i.childNodes).call(n,(function(t,n){t===e&&(o=n)})),o},t.prototype.getCurrentColIndex=function(t){var e,n,o=0,i="TD"===a.default(t).getNodeName()||"TH"===a.default(t).getNodeName()?t:null===(n=a.default(t).parentUntil("TD",t))||void 0===n?void 0:n.elems[0],u=a.default(i).parent();return(0,r.default)(e=u.elems[0].childNodes).call(e,(function(t,e){t===i&&(o=e)})),o},t.prototype.getTableHtml=function(t){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+a.default(t).html()+"</table>"},t}();e.default=u},function(t,e,n){"use strict";var o,r=n(0),i=r(n(29)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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}),e.formatCodeHtml=void 0;var f=s(n(34)),d=s(n(2)),p=n(7),A=s(n(373)),v=s(n(127)),h=s(n(31)),g=s(n(374));e.formatCodeHtml=function(t,e){return e?(e=function(t){var e=t.match(/<pre[\s|\S]+?\/pre>/g);return null===e||(0,i.default)(e).call(e,(function(e){t=t.replace(e,e.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))})),t}(e=function t(e){var n,o=e.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!o||!o.length)return e;for(var r=(0,i.default)(n=p.deepClone(o)).call(n,(function(t){return(t=t.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")})),a=0;a<o.length;a++)e=e.replace(o[a],r[a]);return t(e)}(e)),e=p.replaceSpecialSymbol(e)):e};var m=function(t){function e(e){var n,o=d.default('<div class="w-e-menu"><i class="w-e-icon-terminal"></i></div>');return n=t.call(this,o,e)||this,g.default(e),n}return c(e,t),e.prototype.insertLineCode=function(t){var e=this.editor,n=d.default("<code>"+t+"</code>");e.cmd.do("insertElem",n),e.selection.createRangeByElem(n,!1),e.selection.restoreSelection()},e.prototype.clickHandler=function(){var t=this.editor,e=t.selection.getSelectionText();this.isActive||(t.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(e))},e.prototype.createPanel=function(t,e){var n=A.default(this.editor,t,e);new h.default(this,n).create()},e.prototype.tryChangeActive=function(){var t=this.editor;v.default(t)?this.active():this.unActive()},e}(f.default);e.default=m},function(t,e,n){"use strict";var o=n(0),r=o(n(29)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=n(7),u=i(n(2)),l=i(n(127));e.default=function(t,e,n){var o,i=a.getRandom("input-iframe"),c=a.getRandom("select"),s=a.getRandom("btn-ok");function f(e){l.default(t)&&function(){if(!l.default(t))return;var e=t.selection.getSelectionStartElem(),n=null==e?void 0:e.getNodeTop(t);if(!n)return;t.selection.createRangeByElem(n),t.selection.restoreSelection(),n}(),t.cmd.do("insertHTML",e);var n=t.selection.getSelectionStartElem(),o=null==n?void 0:n.getNodeTop(t);u.default("<p><br></p>").insertAfter(o)}var d=function(e){return t.i18next.t(e)};return{width:500,height:0,tabs:[{title:d("menus.panelMenus.code.插入代码"),tpl:'<div>\n                        <select name="" id="'+c+'">\n                            '+(0,r.default)(o=t.config.languageType).call(o,(function(t){return"<option "+(n==t?"selected":"")+' value ="'+t+'">'+t+"</option>"}))+'\n                        </select>\n                        <textarea id="'+i+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+e.replace(/&quot;/g,'"')+'</textarea>\n                        <div class="w-e-button-container">\n                            <button type="button" id="'+s+'" class="right">'+(l.default(t)?d("修改"):d("插入"))+"</button>\n                        </div>\n                    </div>",events:[{selector:"#"+s,type:"click",fn:function(){var e,n=document.getElementById(i),o=u.default("#"+c).val(),r=n.value;if(e=t.highlight?t.highlight.highlightAuto(r).value:"<xmp>"+r+"</xmp>",r)return!l.default(t)&&(f('<pre type="'+o+'"><code>'+e+"</code></pre>"),!0)}}]}]}}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(375));e.default=function(t){r.default(t)}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.createShowHideFn=void 0;var r=o(n(2)),i=o(n(44));function a(t){var e;return{showCodeTooltip:function(n){var o,a,u=[{$elem:r.default("<span>"+(o="删除代码",void 0===a&&(a="menus.panelMenus.code."),t.i18next.t(a+o)+"</span>")),onClick:function(t,e){return e.remove(),!0}}];(e=new i.default(t,n,u)).create()},hideCodeTooltip:function(){e&&(e.remove(),e=null)}}}e.createShowHideFn=a,e.default=function(t){var e=a(t),n=e.showCodeTooltip,o=e.hideCodeTooltip;t.txt.eventHooks.codeClickEvents.push(n),t.txt.eventHooks.clickEvents.push(o),t.txt.eventHooks.toolbarClickEvents.push(o),t.txt.eventHooks.menuClickEvents.push(o),t.txt.eventHooks.textScrollEvents.push(o)}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(22)),f=c(n(2)),d=c(n(377)),p=function(t){function e(e){var n,o=f.default('<div class="w-e-menu"><i class="w-e-icon-split-line"></i></div>');return n=t.call(this,o,e)||this,d.default(e),n}return l(e,t),e.prototype.clickHandler=function(){var t=this.editor,e=t.selection.getRange(),n=t.selection.getSelectionContainerElem();if(n){var o=f.default(n.elems[0]),r=o.parentUntil("TABLE",n.elems[0]),i=o.children();"CODE"!==o.getNodeName()&&(r&&"TABLE"===f.default(r.elems[0]).getNodeName()||i&&0!==i.length&&"IMG"===f.default(i.elems[0]).getNodeName()&&!(null==e?void 0:e.collapsed)||this.createSplitLine())}},e.prototype.createSplitLine=function(){this.editor.cmd.do("insertHTML","<hr/>")},e.prototype.tryChangeActive=function(){},e}(s.default);e.default=p},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(378));e.default=function(t){r.default(t)}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=o(n(44));e.default=function(t){var e=function(t){var e;return{showSplitLineTooltip:function(n){var o=[{$elem:r.default("<span>"+t.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(t,e){return t.selection.createRangeByElem(e),t.selection.restoreSelection(),t.cmd.do("delete"),!0}}];(e=new i.default(t,n,o)).create()},hideSplitLineTooltip:function(){e&&(e.remove(),e=null)}}}(t),n=e.showSplitLineTooltip,o=e.hideSplitLineTooltip;t.txt.eventHooks.splitLineEvents.push(n),t.txt.eventHooks.clickEvents.push(o),t.txt.eventHooks.keyupEvents.push(o),t.txt.eventHooks.toolbarClickEvents.push(o),t.txt.eventHooks.menuClickEvents.push(o),t.txt.eventHooks.textScrollEvents.push(o)}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(5)),a=r(n(1)),u=r(n(3)),l=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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(22)),p=n(98),A=s(n(385)),v=s(n(128)),h=function(t){function e(e){var n,o=f.default('<div class="w-e-menu">\n                    <i class="w-e-icon-checkbox-checked"></i>\n                </div>');return n=t.call(this,o,e)||this,A.default(e),n}return c(e,t),e.prototype.clickHandler=function(){var t=this.editor;p.isAllTodo(t)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},e.prototype.tryChangeActive=function(){p.isAllTodo(this.editor)?this.active():this.unActive()},e.prototype.setTodo=function(){var t=this.editor,e=t.selection.getSelectionRangeTopNodes(t);(0,i.default)(e).call(e,(function(e){var n;if("P"===(null==e?void 0:e.getNodeName())){var o=v.default(e).getTodo(),r=null===(n=o.children())||void 0===n?void 0:n.getNode();o.insertAfter(e),t.selection.moveCursor(r),e.remove()}})),this.tryChangeActive()},e.prototype.cancelTodo=function(){var t=this.editor,e=t.selection.getSelectionRangeTopNodes(t);(0,i.default)(e).call(e,(function(e){var n,o,r,i=null===(o=null===(n=e.childNodes())||void 0===n?void 0:n.childNodes())||void 0===o?void 0:o.clone(!0),a=f.default("<p></p>");a.append(i),a.insertAfter(e),null===(r=a.childNodes())||void 0===r||r.get(0).remove(),t.selection.moveCursor(a.getNode()),e.remove()}))},e}(d.default);e.default=h},function(t,e,n){t.exports=n(381)},function(t,e,n){var o=n(382);t.exports=o},function(t,e,n){var o=n(383),r=Array.prototype;t.exports=function(t){var e=t.every;return t===r||t instanceof Array&&e===r.every?o:e}},function(t,e,n){n(384);var o=n(16);t.exports=o("Array").every},function(t,e,n){"use strict";var o=n(4),r=n(33).every,i=n(87),a=n(25),u=i("every"),l=a("every");o({target:"Array",proto:!0,forced:!u||!l},{every:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var o=n(0),r=o(n(5)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2)),u=n(98),l=i(n(128)),c=n(98);e.default=function(t){t.txt.eventHooks.enterDownEvents.push((function(e){var n,o;if(u.isAllTodo(t)){e.preventDefault();var i=t.selection,s=i.getSelectionRangeTopNodes(t)[0],f=null===(n=s.childNodes())||void 0===n?void 0:n.get(0),d=null===(o=window.getSelection())||void 0===o?void 0:o.anchorNode,p=i.getRange();if(!(null==p?void 0:p.collapsed)){var A=null==p?void 0:p.commonAncestorContainer.childNodes,v=null==p?void 0:p.startContainer,h=null==p?void 0:p.endContainer,g=null==p?void 0:p.startOffset,m=null==p?void 0:p.endOffset,y=0,w=0,x=[];null==A||(0,r.default)(A).call(A,(function(t,e){t.contains(v)&&(y=e),t.contains(h)&&(w=e)})),w-y>1&&(null==A||(0,r.default)(A).call(A,(function(t,e){e<=y||e>=w||x.push(t)})),(0,r.default)(x).call(x,(function(t){t.remove()}))),c.dealTextNode(v,g),c.dealTextNode(h,m,!1),t.selection.moveCursor(h,0)}if(""===s.text()){var b=a.default("<p><br></p>");return b.insertAfter(s),i.moveCursor(b.getNode()),void s.remove()}var E=i.getCursorPos(),_=u.getCursorNextNode(null==f?void 0:f.getNode(),d,E),C=l.default(a.default(_)),S=C.getInputContainer(),M=S.parent().getNode(),N=C.getTodo(),k=S.getNode().nextSibling;if(""===(null==f?void 0:f.text())&&(null==f||f.append(a.default("<br>"))),N.insertAfter(s),k&&""!==(null==k?void 0:k.textContent))i.moveCursor(M);else{if("BR"!==(null==k?void 0:k.nodeName))a.default("<br>").insertAfter(S);i.moveCursor(M,1)}}})),t.txt.eventHooks.deleteUpEvents.push((function(){var e=t.selection.getSelectionRangeTopNodes(t)[0];c.isTodo(e)&&""===e.text()&&(a.default("<p><br></p>").insertAfter(e),e.remove())})),t.txt.eventHooks.deleteDownEvents.push((function(e){var n,o;if(u.isAllTodo(t)){var i,l=t.selection,c=l.getSelectionRangeTopNodes(t)[0],s=null===(n=c.childNodes())||void 0===n?void 0:n.getNode(),f=a.default("<p></p>"),d=f.getNode(),p=null===(o=window.getSelection())||void 0===o?void 0:o.anchorNode,A=l.getCursorPos(),v=p.previousSibling;if(""===c.text()){e.preventDefault();var h=a.default("<p><br></p>");return h.insertAfter(c),c.remove(),void l.moveCursor(h.getNode(),0)}if("SPAN"===(null==v?void 0:v.nodeName)&&"INPUT"===v.childNodes[0].nodeName&&0===A)e.preventDefault(),null==s||(0,r.default)(i=s.childNodes).call(i,(function(t,e){0!==e&&d.appendChild(t.cloneNode(!0))})),f.insertAfter(c),c.remove()}}))}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2)),i=n(7),a="1px solid #c9d8db",u="#FFF",l="1px solid #EEE";e.default=function(t){var e,n,o,c,s,f=t.toolbarSelector,d=r.default(f),p=t.textSelector,A=t.config.height,v=t.i18next;null==p?(e=r.default("<div></div>"),n=r.default("<div></div>"),c=d.children(),d.append(e).append(n),e.css("background-color",u).css("border",a).css("border-bottom",l),n.css("border",a).css("border-top","none").css("height",A+"px"),s=i.getRandom("toolbar-elem")):(e=d,c=(n=r.default(p)).children(),s=d.attr("id")||i.getRandom("toolbar-elem")),(o=r.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var h=r.default("<div>"+v.t(t.config.placeholder)+"</div>");h.addClass("placeholder"),c&&c.length?(o.append(c),h.hide()):o.append(r.default("<p><br></p>")),n.append(o),n.append(h),e.addClass("w-e-toolbar").css("z-index",t.zIndex.get("toolbar")),n.addClass("w-e-text-container"),n.css("z-index",t.zIndex.get()),o.addClass("w-e-text"),e.attr("id",s);var g=i.getRandom("text-elem");o.attr("id",g);var m=n.getClientHeight();m!==o.getClientHeight()&&o.css("min-height",m+"px"),t.$toolbarElem=e,t.$textContainerElem=n,t.$textElem=o,t.toolbarElemId=s,t.textElemId=g}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2));e.default=function t(e,n){var o=e.$textElem,i=o.children();if(!i||!i.length)return o.append(r.default("<p><br></p>")),void t(e);var a=i.last();if(n){var u=a.html().toLowerCase(),l=a.getNodeName();if("<br>"!==u&&"<br/>"!==u||"P"!==l)return o.append(r.default("<p><br></p>")),void t(e)}e.config.focus&&(e.selection.createRangeByElem(a,!0,!0),e.selection.restoreSelection())}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(2));function i(t){(0,t.config.onfocus)(t.txt.html()||"")}e.default=function(t){!function(t){var e=t.config.onchange;t.txt.eventHooks.changeEvents.push((function(){var n=t.txt.html()||"";e(n),t.txt.togglePlaceholder()}))}(t),function(t){function e(e){var n=e.target,o=r.default(n),a=t.$textElem,u=t.$toolbarElem,l=a.isContain(o),c=u.isContain(o),s=u.elems[0]==e.target;if(l)t.isFocus||i(t),t.isFocus=!0;else{if(c&&!s)return;t.isFocus&&function(t){var e=t.config.onblur,n=t.txt.html()||"";e(n)}(t),t.isFocus=!1}}t.isFocus=!1,document.activeElement===t.$textElem.elems[0]&&(i(t),t.isFocus=!0);r.default(document).on("click",e),t.beforeDestroy((function(){r.default(document).off("click",e)}))}(t),function(t){t.$textElem.on("compositionstart",(function(){t.isComposing=!0})).on("compositionend",(function(){t.isComposing=!1}))}(t)}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0}),e.default=function(t){var e=t.config,n=e.lang,o=e.languages;if(null==t.i18next)t.i18next={t:function(t){var e=t.split(".");return e[e.length-1]}};else try{t.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:o})}catch(t){throw new Error("i18next:"+t)}}},function(t,e,n){"use strict";var o=n(0),r=o(n(30)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.setUnFullScreen=e.setFullScreen=void 0;var a=i(n(2));n(391);e.setFullScreen=function(t){var e=a.default(t.toolbarSelector),n=t.$textContainerElem,o=t.$toolbarElem,i=(0,r.default)(o).call(o,"i.w-e-icon-fullscreen"),u=t.config;i.removeClass("w-e-icon-fullscreen"),i.addClass("w-e-icon-fullscreen_exit"),e.addClass("w-e-full-screen-editor"),e.css("z-index",u.zIndexFullScreen);var l=o.getBoundingClientRect(),c=window.innerHeight-l.height;n.css("height",c+"px")};e.setUnFullScreen=function(t){var e=a.default(t.toolbarSelector),n=t.$textContainerElem,o=t.$toolbarElem,i=(0,r.default)(o).call(o,"i.w-e-icon-fullscreen_exit"),u=t.config;i.removeClass("w-e-icon-fullscreen_exit"),i.addClass("w-e-icon-fullscreen"),e.removeClass("w-e-full-screen-editor"),e.css("z-index","auto"),n.css("height",u.height+"px")};e.default=function(t){if(!t.textSelector&&t.config.showFullScreen){var n=t.$toolbarElem,o=a.default('<div class="w-e-menu">\n            <i class="w-e-icon-fullscreen"></i>\n        </div>');o.on("click",(function(n){var o;(0,r.default)(o=a.default(n.currentTarget)).call(o,"i").hasClass("w-e-icon-fullscreen")?e.setFullScreen(t):e.setUnFullScreen(t)})),n.append(o)}}},function(t,e,n){var o=n(20),r=n(392);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,".w-e-full-screen-editor {\n  position: fixed;\n  width: 100%!important;\n  height: 100%!important;\n  left: 0;\n  top: 0;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";var o=n(0),r=o(n(30));(0,o(n(1)).default)(e,"__esModule",{value:!0});e.default=function(t,e){var n=t.$textElem,o=(0,r.default)(n).call(n,"[id='"+e+"']").getOffsetData().top;n.scrollTop(o)}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(122)),i={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},a=function(){function t(){this.tier=i,this.baseZIndex=r.default.zIndex}return t.prototype.get=function(t){return t&&this.tier[t]?this.baseZIndex+this.tier[t]:this.baseZIndex},t.prototype.init=function(t){this.baseZIndex==r.default.zIndex&&(this.baseZIndex=t.config.zIndex)},t}();e.default=a},function(t,e,n){"use strict";var o,r=n(0),i=r(n(5)),a=r(n(65)),u=r(n(1)),l=r(n(3)),c=r(n(6)),s=(o=function(t,e){return(o=c.default||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?(0,l.default)(e):(n.prototype=e.prototype,new n)}),f=function(t){return t&&t.__esModule?t:{default:t}};(0,u.default)(e,"__esModule",{value:!0});var d=f(n(396)),p=n(7),A=n(26);var v=function(t){function e(e){var n=t.call(this,(function(t,o){var r;if(t=function(t,e){return(0,a.default)(t).call(t,(function(t){var n=t.type,o=t.target,r=t.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==r||o!=e)}))}(t,o.target),(r=n.data).push.apply(r,t),e.isCompatibleMode)n.asyncSave();else if(!e.isComposing)return n.asyncSave()}))||this;return n.editor=e,n.data=[],n.asyncSave=A.EMPTY_FN,n}return s(e,t),e.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},e.prototype.emit=function(){var t;(0,i.default)(t=this.editor.txt.eventHooks.changeEvents).call(t,(function(t){return t()}))},e.prototype.observe=function(){var e=this;t.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=p.debounce((function(){e.save()}),n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){e.asyncSave()}))},e}(d.default);e.default=v},function(t,e,n){"use strict";var o=n(0)(n(1));(0,o.default)(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(e){t(e,n)},this.observer=new MutationObserver(this.callback),e&&(this.options=e)}return(0,o.default)(t.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),t.prototype.observe=function(t){this.node instanceof Node||(this.node=t,this.connect())},t.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定，请您先绑定有效的 Node 节点")},t.prototype.disconnect=function(){var t=this.observer.takeRecords();t.length&&this.callback(t),this.observer.disconnect()},t}();e.default=r},function(t,e,n){"use strict";var o=n(0)(n(1)),r=function(t){return t&&t.__esModule?t:{default:t}};(0,o.default)(e,"__esModule",{value:!0});var i=r(n(398)),a=r(n(410)),u=r(n(411)),l=function(){function t(t){this.editor=t,this.content=new i.default(t),this.scroll=new a.default(t),this.range=new u.default(t)}return(0,o.default)(t.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),t.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},t.prototype.save=function(t){t.length&&(this.content.save(t),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},t.prototype.revoke=function(){this.editor.change.disconnect();var t=this.content.revoke();t&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),t&&this.editor.change.emit()},t.prototype.restore=function(){this.editor.change.disconnect();var t=this.content.restore();t&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),t&&this.editor.change.emit()},t}();e.default=l},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}};(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var r=o(n(399)),i=o(n(408)),a=function(){function t(t){this.editor=t}return t.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new i.default(this.editor):this.cache=new r.default(this.editor),this.cache.observe()},t.prototype.save=function(t){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(t)},t.prototype.revoke=function(){var t;return null===(t=this.cache)||void 0===t?void 0:t.revoke()},t.prototype.restore=function(){var t;return null===(t=this.cache)||void 0===t?void 0:t.restore()},t}();e.default=a},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(99)),f=c(n(401)),d=n(402),p=function(t){function e(e){var n=t.call(this,e.config.historyMaxSize)||this;return n.editor=e,n}return l(e,t),e.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},e.prototype.compile=function(t){return this.save(f.default(t)),this},e.prototype.revoke=function(){return t.prototype.revoke.call(this,(function(t){d.revoke(t)}))},e.prototype.restore=function(){return t.prototype.restore.call(this,(function(t){d.restore(t)}))},e}(s.default);e.default=p},function(t,e,n){"use strict";var o=n(0)(n(1));(0,o.default)(e,"__esModule",{value:!0}),e.CeilStack=void 0;var r=function(){function t(t){void 0===t&&(t=0),this.data=[],this.max=0,this.reset=!1,(t=Math.abs(t))&&(this.max=t)}return t.prototype.resetMax=function(t){t=Math.abs(t),this.reset||isNaN(t)||(this.max=t,this.reset=!0)},(0,o.default)(t.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),t.prototype.instack=function(t){return this.data.unshift(t),this.max&&this.size>this.max&&(this.data.length=this.max),this},t.prototype.outstack=function(){return this.data.shift()},t.prototype.clear=function(){return this.data.length=0,this},t}();e.CeilStack=r},function(t,e,n){"use strict";var o=n(0),r=o(n(54)),i=o(n(5));(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.compliePosition=e.complieNodes=e.compileValue=e.compileType=void 0;var a=n(7);function u(t){switch(t){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function l(t){switch(t.type){case"attributes":return t.target.getAttribute(t.attributeName)||"";case"characterData":return t.target.textContent;default:return""}}function c(t){var e={};return t.addedNodes.length&&(e.add=a.toArray(t.addedNodes)),t.removedNodes.length&&(e.remove=a.toArray(t.removedNodes)),e}function s(t){return t.previousSibling?{type:"before",target:t.previousSibling}:t.nextSibling?{type:"after",target:t.nextSibling}:{type:"parent",target:t.target}}e.compileType=u,e.compileValue=l,e.complieNodes=c,e.compliePosition=s;var f=["UL","OL","H1","H2","H3","H4","H5","H6"];function d(t,e){for(var n=0,o=e.length-1;o>0&&t.contains(e[o]);o--)n++;return n}e.default=function(t){var e=[],n=!1,o=[];return(0,i.default)(t).call(t,(function(t,i){var p={type:u(t.type),target:t.target,attr:t.attributeName||"",value:l(t)||"",oldValue:t.oldValue||"",nodes:c(t),position:s(t)};if(e.push(p),a.UA.isFirefox){if(n&&t.addedNodes.length&&1==t.addedNodes[0].nodeType){var A=t.addedNodes[0],v={type:"node",target:A,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:A}};-1!=(0,r.default)(f).call(f,A.nodeName)?(v.nodes.add=a.toArray(A.childNodes),e.push(v)):3==n.nodeType?(d(A,o)&&(v.nodes.add=a.toArray(A.childNodes)),e.push(v)):-1==(0,r.default)(f).call(f,t.target.nodeName)&&d(A,o)&&(v.nodes.add=a.toArray(A.childNodes),e.push(v))}"node"==p.type&&1==t.removedNodes.length?(n=t.removedNodes[0],o.push(n)):(n=!1,o.length=0)}})),e}},function(t,e,n){"use strict";var o=n(0),r=o(n(403)),i=o(n(5));function a(t,e){var n=t.position.target;switch(t.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,i.default)(e).call(e,(function(e){t.target.insertBefore(e,n)}))):(0,i.default)(e).call(e,(function(e){t.target.appendChild(e)}));break;case"after":(0,i.default)(e).call(e,(function(e){t.target.insertBefore(e,n)}));break;default:(0,i.default)(e).call(e,(function(t){n.appendChild(t)}))}}(0,o(n(1)).default)(e,"__esModule",{value:!0}),e.restore=e.revoke=void 0;var u={node:function(t){for(var e=0,n=(0,r.default)(t.nodes);e<n.length;e++){var o=n[e],u=o[0],l=o[1];switch(u){case"add":(0,i.default)(l).call(l,(function(e){t.target.removeChild(e)}));break;default:a(t,l)}}},text:function(t){t.target.textContent=t.oldValue},attr:function(t){var e=t.target;null==t.oldValue?e.removeAttribute(t.attr):e.setAttribute(t.attr,t.oldValue)}};e.revoke=function(t){for(var e=t.length-1;e>-1;e--){var n=t[e];u[n.type](n)}};var l={node:function(t){for(var e=0,n=(0,r.default)(t.nodes);e<n.length;e++){var o=n[e],u=o[0],l=o[1];switch(u){case"add":a(t,l);break;default:(0,i.default)(l).call(l,(function(t){t.parentNode.removeChild(t)}))}}},text:function(t){t.target.textContent=t.value},attr:function(t){t.target.setAttribute(t.attr,t.value)}};e.restore=function(t){for(var e=0,n=t;e<n.length;e++){var o=n[e];l[o.type](o)}}},function(t,e,n){t.exports=n(404)},function(t,e,n){var o=n(405);t.exports=o},function(t,e,n){n(406);var o=n(10);t.exports=o.Object.entries},function(t,e,n){var o=n(4),r=n(407).entries;o({target:"Object",stat:!0},{entries:function(t){return r(t)}})},function(t,e,n){var o=n(14),r=n(57),i=n(27),a=n(55).f,u=function(t){return function(e){for(var n,u=i(e),l=r(u),c=l.length,s=0,f=[];c>s;)n=l[s++],o&&!a.call(u,n)||f.push(t?[n,u[n]]:u[n]);return f}};t.exports={entries:u(!0),values:u(!1)}},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0});var o=n(409),r=function(){function t(t){this.editor=t,this.data=new o.TailChain}return t.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},t.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},t.prototype.revoke=function(){var t=this.data.prev();return!!t&&(this.editor.$textElem.html(t),!0)},t.prototype.restore=function(){var t=this.data.next();return!!t&&(this.editor.$textElem.html(t),!0)},t}();e.default=r},function(t,e,n){"use strict";var o=n(0),r=o(n(90)),i=o(n(1));(0,i.default)(e,"__esModule",{value:!0}),e.TailChain=void 0;var a=function(){function t(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return t.prototype.resetMax=function(t){(t=Math.abs(t))&&(this.max=t)},(0,i.default)(t.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),t.prototype.insertLast=function(t){var e;this.isRe&&((0,r.default)(e=this.data).call(e,this.point+1),this.isRe=!1);for(this.data.push(t);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},t.prototype.current=function(){return this.data[this.point]},t.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},t.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},t}();e.TailChain=a},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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){var n=t.call(this,e.config.historyMaxSize)||this;return n.editor=e,n.last=0,n.target=e.$textElem.elems[0],n}return l(e,t),e.prototype.observe=function(){var t=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",(function(){t.last=t.target.scrollTop})),this.resetMaxSize(this.editor.config.historyMaxSize)},e.prototype.save=function(){return t.prototype.save.call(this,[this.last,this.target.scrollTop]),this},e.prototype.revoke=function(){var e=this;return t.prototype.revoke.call(this,(function(t){e.target.scrollTop=t[0]}))},e.prototype.restore=function(){var e=this;return t.prototype.restore.call(this,(function(t){e.target.scrollTop=t[1]}))},e}(c(n(99)).default);e.default=s},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),u=r(n(6)),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)Object.prototype.hasOwnProperty.call(e,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=c(n(99)),f=c(n(2)),d=n(7);function p(t){return{start:[t.startContainer,t.startOffset],end:[t.endContainer,t.endOffset],root:t.commonAncestorContainer,collapsed:t.collapsed}}var A=function(t){function e(e){var n=t.call(this,e.config.historyMaxSize)||this;return n.editor=e,n.lastRange=p(document.createRange()),n.root=e.$textElem.elems[0],n.updateLastRange=d.debounce((function(){n.lastRange=p(n.rangeHandle)}),e.config.onchangeTimeout),n}return l(e,t),(0,i.default)(e.prototype,"rangeHandle",{get:function(){var t=document.getSelection();return t&&t.rangeCount?t.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),e.prototype.observe=function(){var t=this;function e(){var e=t.rangeHandle;(t.root===e.commonAncestorContainer||t.root.contains(e.commonAncestorContainer))&&(t.editor.isComposing||t.updateLastRange())}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),f.default(document).on("selectionchange",e),this.editor.beforeDestroy((function(){f.default(document).off("selectionchange",e)})),t.editor.$textElem.on("keydown",(function(e){"Backspace"!=e.key&&"Delete"!=e.key||t.updateLastRange()}))},e.prototype.save=function(){var e=p(this.rangeHandle);return t.prototype.save.call(this,[this.lastRange,e]),this.lastRange=e,this},e.prototype.set=function(t){if(t){var e=this.rangeHandle;return e.setStart.apply(e,t.start),e.setEnd.apply(e,t.end),this.editor.menus.changeActive(),!0}return!1},e.prototype.revoke=function(){var e=this;return t.prototype.revoke.call(this,(function(t){e.set(t[0])}))},e.prototype.restore=function(){var e=this;return t.prototype.restore.call(this,(function(t){e.set(t[1])}))},e}(s.default);e.default=A},function(t,e,n){"use strict";var o=n(0),r=o(n(30)),i=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var a=i(n(2));n(413),e.default=function(t){var e,n,o=!1;return t.txt.eventHooks.changeEvents.push((function(){o&&(0,r.default)(e).call(e,".w-e-content-preview").html(t.$textElem.html())})),{disable:function(){if(!o){t.$textElem.hide();var r=t.zIndex.get("textContainer"),i=t.txt.html();e=a.default('<div class="w-e-content-mantle" style="z-index:'+r+'">\n                <div class="w-e-content-preview w-e-text">'+i+"</div>\n            </div>"),t.$textContainerElem.append(e);var u=t.zIndex.get("menu");n=a.default('<div class="w-e-menue-mantle" style="z-index:'+u+'"></div>'),t.$toolbarElem.append(n),o=!0}},enable:function(){o&&(e.remove(),n.remove(),t.$textElem.show(),o=!1)}}}},function(t,e,n){var o=n(20),r=n(414);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},function(t,e,n){(e=n(21)(!1)).push([t.i,".w-e-content-mantle {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n  width: 100%;\n  min-height: 100%;\n  padding: 0 10px;\n  line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n  cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n  box-shadow: none;\n}\n.w-e-menue-mantle {\n  position: absolute;\n  height: 100%;\n  width: 100%;\n  top: 0;\n  left: 0;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";(0,n(0)(n(1)).default)(e,"__esModule",{value:!0})}]).default}));
  //# sourceMappingURL=wangEditor.min.js.map