!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.wangEditor=t():e.wangEditor=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=139)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(146)},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(92)),a=o(n(3)),l=o(n(26)),u=o(n(20)),c=o(n(118)),s=o(n(27)),f=o(n(94)),d=o(n(73)),p=o(n(74)),v=o(n(55)),h=function(e,t){for(var n=0,o=t.length,r=e.length;n
")},t.replaceSpecialSymbol=function(e){return e.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')},t.forEach=function(e,t){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))if(!1===t(n,e[n]))break}},t.arrForEach=function(e,t){var n,o,r=e.length||0;for(n=0;n
<\/p>$/gim,t.EMPTY_P_REGEX=/
/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(143))},function(e,t){e.exports={}},function(e,t,n){var o=n(9),r=n(81),i=n(17),a=n(63),l=n(85),u=n(107),c=r("wks"),s=o.Symbol,f=u?s:s&&s.withoutSetter||a;e.exports=function(e){return i(c,e)&&(l||"string"==typeof c[e])||(l&&i(s,e)?c[e]=s[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,n){var o=n(10),r=n(17),i=n(97),a=n(19).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var o=n(13);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var o=n(10);e.exports=function(e){return o[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(15),r=n(19),i=n(36);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(15),r=n(102),i=n(25),a=n(59),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=n(198)},function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n'),m=v.default('');r.append(g).append(m);var y=o.height;y&&m.css("height",y+"px").css("overflow-y","auto");var w=o.tabs||[],x=[],E=[];(0,u.default)(w).call(w,(function(e,t){if(e){var n=e.title||"",o=e.tpl||"",r=v.default('
0?v:0)+20+10,e.addClass("w-e-tooltip-down")),n=d<0?0:d}else r.top<20||r.top-i.top<20?(t=r.bottom+o+5,e.addClass("w-e-tooltip-down")):(t=r.top+o-20-15,e.addClass("w-e-tooltip-up")),n=r.left<0?0:r.left;return{top:t,left:n}},e.prototype.appendMenus=function(){var e=this,t=this.conf,n=this.editor,o=this.$targetElem,r=this.$container;(0,i.default)(t).call(t,(function(t,i){var a=t.$elem,l=u.default("");l.addClass("w-e-tooltip-item-wrapper "),l.append(a),r.append(l),a.on("click",(function(r){r.preventDefault(),t.onClick(n,o)&&e.remove()}))}))},e.prototype.create=function(){var e,t,n=this.editor,o=this.$container;this.appendMenus();var r=this.getPositionData(),i=r.top,l=r.left;o.css("top",i+"px"),o.css("left",l+"px"),o.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(o):u.default("body").append(o),this._show=!0,n.beforeDestroy((0,a.default)(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,a.default)(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,r.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=c},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(61),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t){e.exports=!0},function(e,t,n){var o=n(47);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(25),r=n(169),i=n(37),a=n(48),l=n(170),u=n(171),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var s,f,d,p,v,h,A,g=n&&n.that,m=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),x=a(t,g,1+m+w),E=function(e){return s&&u(s),new c(!0,e)},b=function(e){return m?(o(e),w?x(e[0],e[1],E):x(e[0],e[1])):w?x(e,E):x(e)};if(y)s=e;else{if("function"!=typeof(f=l(e)))throw TypeError("Target is not iterable");if(r(f)){for(d=0,p=i(e.length);p>d;d++)if((v=b(e[d]))&&v instanceof c)return v;return new c(!1)}s=f.call(e)}for(h=s.next;!(A=h.call(s)).done;){try{v=b(A.value)}catch(e){throw u(s),e}if("object"==typeof v&&v&&v instanceof c)return v}return new c(!1)}},function(e,t){e.exports={}},function(e,t,n){var o=n(86),r=n(19).f,i=n(18),a=n(17),l=n(173),u=n(11)("toStringTag");e.exports=function(e,t,n,c){if(e){var s=n?e:e.prototype;a(s,u)||r(s,u,{configurable:!0,value:t}),c&&!o&&i(s,"toString",l)}}},function(e,t,n){var o,r,i,a=n(178),l=n(9),u=n(14),c=n(18),s=n(17),f=n(82),d=n(62),p=n(50),v=l.WeakMap;if(a){var h=f.state||(f.state=new v),A=h.get,g=h.has,m=h.set;o=function(e,t){return t.facade=e,m.call(h,e,t),t},r=function(e){return A.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var y=d("state");p[y]=!0,o=function(e,t){return t.facade=e,c(e,y,t),t},r=function(e){return s(e,y)?e[y]:{}},i=function(e){return s(e,y)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){e.exports=n(266)},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(3)),a=function(e){return e&&e.__esModule?e:{default:e}};(0,r.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var l=n(136),u=a(n(2));function c(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,i.default)(e).call(e,(function(e){var n=e.getNodeName();if(n!==l.ListType.OrderedList&&n!==l.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var o=e.children();null==o||(0,i.default)(o).call(o,(function(e){t.push(u.default(e))}))}})),t},t.updateRange=function(e,t,n){var o=e.selection,r=document.createRange();t.length>1?(r.setStart(t.elems[0],0),r.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):r.selectNodeContents(t.elems[0]),n&&r.collapse(!1),o.saveRange(r),o.restoreSelection()},t.getStartPoint=function(e){var t;return e.prior?e.prior:u.default(null===(t=e.children())||void 0===t?void 0:t.elems[0])},t.getEndPoint=function(e){var t;return e.prior?e.prior:u.default(null===(t=e.children())||void 0===t?void 0:t.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=c,t.createDocumentFragment=function(){return document.createDocumentFragment()},t.createElementFragment=function(e,t,n){return void 0===n&&(n="li"),(0,i.default)(e).call(e,(function(e){var o=c(n);o.innerHTML=e.html(),t.append(o),e.remove()})),t}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var o=n(33);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o,r=n(25),i=n(144),a=n(80),l=n(50),u=n(105),c=n(77),s=n(62),f=s("IE_PROTO"),d=function(){},p=function(e){return"