wangeditor
Version:
wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费
1 lines • 236 kB
JavaScript
!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(66)),l=o(n(90)),u=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,l=i.length;a<l;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,u.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 l=0;l<a;l++)this.elems.push(n[l]);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 u=(0,l.default)(g).call(g,r,1)[0].agentFn;o.removeEventListener(t,u)}}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,u.default)(n).call(n,t)<0&&n.push(t),e.className=n.join(" ")}else e.className=t})):this},t.prototype.removeClass=function(t){var e;return t?(0,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,u.default)(e).call(e,t)?o:e})),""!=o&&(0,u.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(68).f,i=n(101),a=n(10),l=n(47),u=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?l(p,o):t.wrap&&n?s(p):x&&"function"==typeof p?l(Function.call,p):p,(t.sham||p&&p.sham||A&&A.sham)&&u(h,"sham",!0),E[d]=h,x&&(c(a,f=m+"Prototype")||u(a,f,{}),a[f][d]=p,t.real&&_&&!_[d]&&u(_,d,p)))}},function(t,e,n){t.exports=n(178)},function(t,e,n){t.exports=n(306)},function(t,e,n){"use strict";var o=n(0),r=o(n(29)),i=o(n(93)),a=o(n(94)),l=o(n(121)),u=o(n(43)),c=o(n(261)),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,l=i.length;a<l;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,u.default)(e=Math.random().toString()).call(e,2)},e.replaceHtmlSymbol=function(t){return t.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"<br/>")},e.replaceSpecialSymbol=function(t){return t.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')},e.forEach=function(t,e){for(var n in t){if(Object.prototype.hasOwnProperty.call(t,n))if(!1===e(n,t[n]))break}},e.arrForEach=function(t,e){var n,o,r=t.length||0;for(n=0;n<r&&(o=t[n],!1!==e.call(t,o,n));n++);},e.throttle=function(t,e){void 0===e&&(e=200);var n=!1;return function(){for(var o=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n||(n=!0,(0,l.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,u.default)(Array.prototype).call(t)},e.getRandomCode=function(){var t;return(0,u.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(74),i=n(15),a=n(60),l=n(78),u=n(104),c=r("wks"),s=o.Symbol,f=u?s:s&&s.withoutSetter||a;t.exports=function(t){return i(c,t)||(l&&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),l=Object.defineProperty;e.f=o?l:function(t,e,n){if(i(t),e=a(e,!0),i(n),r)try{return l(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(213)},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 l(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},o=[],r=0;r<t.length;r++){var i=t[r],u=e.base?i[0]+e.base:i[0],c=n[u]||0,s="".concat(u," ").concat(c);n[u]=c+1;var f=l(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=u(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=l(n[o]);a[r].references--}for(var i=u(t,e),c=0;c<n.length;c++){var s=l(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,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(u," */")),i=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([r]).join("\n")}var a,l,u;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 l=0;l<t.length;l++){var u=[].concat(t[l]);o&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},function(t,e,n){"use strict";var o,r=n(0),i=r(n(1)),a=r(n(3)),l=r(n(6)),u=(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,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 u(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)),l=r(n(3)),u=r(n(6)),c=(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,l.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,l="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";""!==l&&"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(l)}}));var u=new p.default(r,o);return r.dropList=u,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()})),u.showTimeoutId=window.setTimeout((function(){u.show()}),200))})).on("mouseleave",(function(){e.css("z-index","auto"),u.hideTimeoutId=window.setTimeout((function(){u.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,l={},u=function(t){throw t};t.exports=function(t,e){if(i(l,t))return l[t];e||(e={});var n=[][t],c=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:u,f=i(e,1)?e[1]:void 0;return l[t]=!!n&&!r((function(){if(c&&!o)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):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\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/,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(69),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(218)},function(t,e,n){t.exports=n(285)},function(t,e,n){"use strict";var o=n(0),r=o(n(124)),i=o(n(30)),a=o(n(5)),l=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var u=l(n(2)),c=n(26),s=function(){function t(e,n){this.menu=e,this.conf=n,this.$container=u.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,l=o.width||300,s=n.editor.$toolbarElem.getBoundingClientRect(),f=n.$elem.getBoundingClientRect(),d=s.height+s.top-f.top,p=(s.width-l)/2+s.left-f.left;r.css("width",l+"px").css("margin-top",d+"px").css("margin-left",p+"px").css("z-index",n.editor.zIndex.get("panel"));var A=u.default('<i class="w-e-icon-close w-e-panel-close"></i>');r.append(A),A.on("click",(function(){e.remove()}));var v=u.default('<ul class="w-e-panel-tab-title"></ul>'),h=u.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=u.default('<li class="w-e-item">'+n+"</li>");v.append(r);var i=u.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,l=w[n];(0,i.default)(l).call(l,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(69),i=n(38),a=n(36),l=n(86),u=[].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||l,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:u.call(S,m)}else switch(t){case 4:return!1;case 7:u.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)),l=r(n(6)),u=(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,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 u(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),l=n(161),u=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&&u(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=l(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 u(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(79),r=n(18).f,i=n(17),a=n(15),l=n(164),u=n(9)("toStringTag");t.exports=function(t,e,n,c){if(t){var s=n?t:t.prototype;a(s,u)||r(s,u,{configurable:!0,value:e}),c&&!o&&i(s,"toString",l)}}},function(t,e,n){var o,r,i,a=n(169),l=n(8),u=n(13),c=n(17),s=n(15),f=n(75),d=n(59),p=n(49),A=l.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(!u(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){t.exports=n(257)},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 l=a(n(2)),u=function(){function t(t,e,n){this.editor=t,this.$targetElem=e,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var o=l.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(),u=l.default(a.parent),c=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=u.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var s=u.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,u=l.default("<div></div>");u.addClass("w-e-tooltip-item-wrapper "),u.append(a),i.append(u),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):l.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=u},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(73),l=n(49),u=n(103),c=n(70),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",u.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()};l[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(175);var o=n(176),r=n(8),i=n(61),a=n(17),l=n(40),u=n(9)("toStringTag");for(var c in o){var s=r[c],f=s&&s.prototype;f&&i(f)!==u&&a(f,u,c),l[c]=l.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(205)},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(73);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(74),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(79),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){var o=n(28);t.exports=o("navigator","userAgent")||""},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(173).charAt,r=n(42),i=n(84),a=r.set,l=r.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=l(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(197)},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),l=n(56),u=n(15),c=n(100),s=Object.getOwnPropertyDescriptor;e.f=o?s:function(t,e){if(t=a(t),e=l(e,!0),c)try{return s(t,e)}catch(t){}if(u(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(72),a=function(t){return function(e,n,a){var l,u=o(e),c=r(u.length),s=i(a,c);if(t&&n!=n){for(;c>s;)if((l=u[s++])!=l)return!0}else for(;c>s;s++)if((t||s in u)&&u[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(75);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.2",mode:o?"pure":"global",copyright:"© 2021 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),l=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(t),o(t,l)?t[l]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u: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(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(63),l=i.process,u=l&&l.versions,c=u&&u.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(174),i=n(76),a=n(77),l=n(41),u=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]&&u(w,h,g)),l(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||u(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(183)},function(t,e,n){t.exports=n(188)},function(t,e,n){t.exports=n(201)},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(67)+"]",i=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),l=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:l(1),end:l(2),trim:l(3)}},function(t,e,n){t.exports=n(222)},function(t,e,n){var o=n(225),r=n(228);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 l=a(n(31)),u=function(){function t(t,e){var n=this;this.$elem=t,this.editor=e,this._active=!1,t.on("click",(function(t){var o;l.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=u},function(t,e,n){"use strict";var o=n(0),r=o(n(54)),i=o(n(5)),a=o(n(88)),l=function(t){return t&&t.__esModule?t:{default:t}};(0,o(n(1)).default)(e,"__esModule",{value:!0});var u=n(7),c=l(n(335)),s=l(n(336)),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,l=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(u.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+"】"+l("大于")+" "+A+"M"):_.push(t):C.push("【"+e+"】"+l("不是图片")))})),C.length)o.customAlert(l("图片验证未通过")+": \n"+C.join("\n"),"warning");else if(0!==_.length)if(_.length>v)o.customAlert(l("一次最多上传")+v+l("张图片"),"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)(u).call(u,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(l("上传图片超时"),"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(l("上传图片错误"),"error",l("上传图片错误")+","+l("服务器返回状态")+": "+t.status),w.error&&w.error(t,n)},onFail:function(t,e){o.customAlert(l("上传图片失败"),"error",l("上传图片返回结果错误")+","+l("返回结果")+": "+e),w.fail&&w.fail(t,n,e)},onSuccess:function(t,r){if(w.customInsert){var u;w.customInsert((0,a.default)(u=e.insertImg).call(u,e),r,n)}else{if("0"!=r.errno)return o.customAlert(l("上传图片失败"),"error",l("上传图片返回结果错误")+","+l("返回结果")+" 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&&u.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(l("传入的文件不合法"),"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(381));function l(t){return"w-e-todo"===t.attr("class")}function u(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=l,e.isAllTodo=function(t){var e=t.selection.getSelectionRangeTopNodes(t);if(0!==e.length)return(0,a.default)(e).call(e,(function(t){return l(t)}))},e.getCursorNextNode=function t(e,n,o){var r;if(e.hasChildNodes()){var a=e.cloneNode(),l=!1;""===n.nodeValue&&(l=!0);var s=[];return(0,i.default)(r=e.childNodes).call(r,(function(e){if(!u(e,n)&&l&&(a.appendChild(e.cloneNode(!0)),"BR"!==e.nodeName&&s.push(e)),u(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}l=!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(401),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(70);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=l[a(t)];return n==c||n!=u&&("function"==typeof e?o(e):!!e)},a=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},function(t,e,n){var o=n(15),r=n(27),i=n(71).indexOf,a=n(49);t.exports=function(t,e){var n,l=r(t),u=0,c=[];for(n in l)!o(a,n)&&o(l,n)&&c.push(n);for(;e.length>u;)o(l,n=e[u++])&&(~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(78);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),l=i("species");t.exports=function(t){var e=o(t),n=r.f;a&&e&&!e[l]&&n(e,l,{configurable:!0,get:function(){return this}})}},function(t,e,n){var o=n(75),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),l=n(12),u=n(47),c=n(103),s=n(70),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=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!l(_)?(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(63);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(t,e,n){var o=n(24),r=n(13),i=n(64);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(76),l=n(17),u=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||u(o,f)||l(o,f,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){t.exports=n(209)},function(t,e,n){"use strict";var o=n(4),r=n(8),i=n(116),a=n(12),l=n(17),u=n(39),c=n(80),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&&u(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||l(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,l=n(60),u=n(212),c=l("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 u&&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),l=n(80),u=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){l(t,s,e),A(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=o&&u(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(73).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(255)},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",{va