(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cd762f2e"],{"0095":function(e,t,n){n("b09a")},"03ce":function(e,t,n){n("9346")},1812:function(e,t,n){n("c741")},"6fad":function(e,t,n){var o;window,o=function(){return t=[function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},function(e,t,n){n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return l})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return s})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return A})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__spreadArray",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return w})),n.d(t,"__asyncDelegator",(function(){return x})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return E})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return k})),n.d(t,"__classPrivateFieldSet",(function(){return M})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;ni[0]&&u[1]=e.length?void 0:e)&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||0]+>/g,(function(){return""}))},w.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},w.prototype.val=function(){var e=this.elems[0];return(0,u.default)(e=e.value).call(e)},w.prototype.focus=function(){return(0,a.default)(this).call(this,(function(e){e.focus()}))},w.prototype.prev=function(){return x(this.elems[0].previousElementSibling)},w.prototype.next=function(){return x(this.elems[0].nextElementSibling)},w.prototype.getNextSibling=function(){return x(this.elems[0].nextSibling)},w.prototype.parent=function(){return x(this.elems[0].parentElement)},w.prototype.parentUntil=function(e,t){t=t||this.elems[0];return"BODY"===t.nodeName||null===(t=t.parentElement)?null:t.matches(e)?x(t):this.parentUntil(e,t)},w.prototype.parentUntilEditor=function(e,t,n){n=n||this.elems[0];return x(n).equal(t.$textContainerElem)||x(n).equal(t.$toolbarElem)||null===(n=n.parentElement)?null:n.matches(e)?x(n):this.parentUntilEditor(e,t,n)},w.prototype.equal=function(e){return e instanceof w?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e},w.prototype.insertBefore=function(e){var t=x(e).elems[0];return t?(0,a.default)(this).call(this,(function(e){var n=t.parentNode;null!=n&&n.insertBefore(e,t)})):this},w.prototype.insertAfter=function(e){var t=x(e).elems[0],n=t&&t.nextSibling;return t?(0,a.default)(this).call(this,(function(e){var o=t.parentNode;n?o.insertBefore(e,n):o.appendChild(e)})):this},w.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},w.prototype.getNodeTop=function(e){var t;return this.length<1||(t=this.parent(),e.$textElem.equal(this))||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},w.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},w.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})};var y=w;function w(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,e){if(e instanceof w)return e;var t,n=[],o=e instanceof Node?e.nodeType:-1,i=(this.selector=e,1===o||9===o?n=[e]:(o=e)&&(o instanceof HTMLCollection||o instanceof NodeList)?n=A.toArray(e):e instanceof Array?n=e:"string"==typeof e&&(e=(0,u.default)(o=e.replace("/\n/mg","")).call(o),n=0===(0,s.default)(e).call(e,"<")?(o=e,(t=document.createElement("div")).innerHTML=o,A.toArray(t.children)):(o=e,o=document.querySelectorAll(e),A.toArray(o))),n.length);if(!i)return this;for(var r=0;r/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")},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)&&!1===t(n,e[n]))break},t.arrForEach=function(e,t){for(var n,o=e.length||0,i=0;i

',t.EMPTY_P_LAST_REGEX=/

<\/p>$/gim,t.EMPTY_P_REGEX=/

/gim},function(e,t,n){(function(t){function n(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")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var o=n(8),i=n(74),r=n(16),a=n(64),l=n(76),u=(n=n(106),i("wks")),c=o.Symbol,s=n?c:c&&c.withoutSetter||a;e.exports=function(e){return r(u,e)||(l&&r(c,e)?u[e]=c[e]:u[e]=s("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(9),i=n(16),r=n(93),a=n(18).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});i(t,e)||a(t,e,{value:r.f(e)})}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){n=n(11),e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var o=n(9);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){e.exports=n(192)},function(e,t,n){var o=n(14),i=n(100),r=n(25),a=n(60),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)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){var o=n(14),i=n(18),r=n(48);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o,i,r=function(){return o=void 0===o?Boolean(window&&document&&document.all&&!window.atob):o},a=(i={},function(e){if(void 0===i[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}i[e]=t}return i[e]}),l=[];function u(e){for(var t=-1,n=0;n{var n,o,i,r;return i=t.singleton?(r=m++,n=h=h||s(t),o=p.bind(null,n,r,!1),p.bind(null,n,r,!0)):(n=s(t),o=function(e,t,n){var o=n.css,i=n.media;n=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,n,t),function(){var e=n;null!==e.parentNode&&e.parentNode.removeChild(e)}),o(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||o(e=t):i()}})(c,t),references:1}),o.push(d)}return o}function s(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce&&(i=n.nc)&&(o.nonce=i),Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}d=[];var d,f=function(e,t){return d[e]=t,d.filter(Boolean).join("\n")};function p(e,t,n,o){n=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;e.styleSheet?e.styleSheet.cssText=f(t,n):(o=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(o,n[t]):e.appendChild(o))}var h=null,m=0;e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o{var n=e[1]||"",o=e[3];return o?(t&&"function"==typeof btoa?(e=(e=>(e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e),"/*# ".concat(e," */")))(o),t=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")})),[n].concat(t).concat([e])):[n]).join("\n"):n})(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r'),t.append(n),n.on("click",(function(){A.remove()})),o=u.default('

    '),i=u.default('
    '),t.append(o).append(i),(d=e.height)&&i.css("height",d+"px").css("overflow-y","auto"),f=e.tabs||[],p=[],h=[],(0,r.default)(f).call(f,(function(e,t){var n,a,l;e&&(n=e.title||"",e=e.tpl||"",a=u.default('
  • '+n+"
  • "),o.append(a),l=u.default(e),i.append(l),p.push(a),h.push(l),0===t?(a.data("active",!0),a.addClass("w-e-active")):l.hide(),a.on("click",(function(){a.data("active")||((0,r.default)(p).call(p,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,r.default)(h).call(h,(function(e){e.hide()})),a.data("active",!0),a.addClass("w-e-active"),l.show())})))})),t.on("click",(function(e){e.stopPropagation()})),v.$elem.append(t),e.setLinkValue&&e.setLinkValue(t,"text"),e.setLinkValue&&e.setLinkValue(t,"link"),(0,r.default)(f).call(f,(function(e,t){e&&(e=e.events||[],(0,r.default)(e).call(e,(function(e){function n(e){return l.__awaiter(A,void 0,void 0,(function(){return l.__generator(this,(function(t){switch(t.label){case 0:return e.stopPropagation(),[4,r(e)];case 1:return t.sent()&&this.remove(),[2]}}))}))}var o=e.selector,i=e.type,r=e.fn||c.EMPTY_FN,u=h[t];e=null!=(e=e.bindEnter)&&e;(0,a.default)(u).call(u,o).on(i,n),e&&"click"===i&&u.on("keyup",(function(e){13==e.keyCode&&n(e)}))})))})),(m=(0,a.default)(t).call(t,"input[type=text],textarea")).length&&m.get(0).focus(),s.hideCurAllPanels(),v.setPanel(this),s.createdMenus.add(v))},s.prototype.remove=function(){var e=this.menu,t=this.$container;t&&t.remove(),s.createdMenus.delete(e)},s.hideCurAllPanels=function(){var e;0!==s.createdMenus.size&&(0,r.default)(e=s.createdMenus).call(e,(function(e){e=e.panel,e&&e.remove()}))},s.createdMenus=new o.default,i=s;function s(e,t){this.menu=e,this.conf=t,this.$container=u.default('
    '),t=e.editor,t.txt.eventHooks.clickEvents.push(s.hideCurAllPanels),t.txt.eventHooks.toolbarClickEvents.push(s.hideCurAllPanels),t.txt.eventHooks.dropListMenuHoverEvents.push(s.hideCurAllPanels)}t.default=i},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(62),i=Math.min;e.exports=function(e){return 0"),e.addClass("w-e-tooltip"),this.$container=e}u.prototype.getPositionData=function(){var e,t,n=this.$container,o=0,i=0,r=document.documentElement.scrollTop,a=this.$targetElem.getBoundingClientRect(),u=this.editor.$textElem.getBoundingClientRect(),c=this.$targetElem.getOffsetData(),s=l.default(c.parent),d=this.editor.$textElem.elems[0].scrollTop;return this._isInsertTextContainer=s.equal(this.editor.$textContainerElem),i=this._isInsertTextContainer?(s=s.getBoundingClientRect().height,t=c.top,e=c.left,c=c.height,25<(t-=d)?(o=t-20-15,n.addClass("w-e-tooltip-up")):(o=t+c+20");u.addClass("w-e-tooltip-item-wrapper "),u.append(a),i.append(u),a.on("click",(function(i){i.preventDefault(),t.onClick(n,o)&&e.remove()}))}))},u.prototype.create=function(){var e=this.editor,t=this.$container,n=(this.appendMenus(),this.getPositionData()),o=n.top;n=n.left;t.css("top",o+"px"),t.css("left",n+"px"),t.css("z-index",e.zIndex.get("tooltip")),(this._isInsertTextContainer?this.editor.$textContainerElem:l.default("body")).append(t),this._show=!0,e.beforeDestroy((0,a.default)(o=this.remove).call(o,this)),e.txt.eventHooks.onBlurEvents.push((0,a.default)(n=this.remove).call(n,this))},u.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(u.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),t.default=u},function(e,t,n){var o=n(41);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,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var o,i,r,a,l,u,c,s,d=n(165),f=n(8),p=n(13),h=n(19),m=n(16),A=n(63);n=n(51),f=f.WeakMap;c=d?(o=new f,i=o.get,r=o.has,a=o.set,l=function(e,t){return a.call(o,e,t),t},u=function(e){return i.call(o,e)||{}},function(e){return r.call(o,e)}):(n[s=A("state")]=!0,l=function(e,t){return h(e,s,t),t},u=function(e){return m(e,s)?e[s]:{}},function(e){return m(e,s)}),e.exports={set:l,get:u,has:c,enforce:function(e){return c(e)?u(e):l(e,{})},getterFor:function(e){return function(t){if(p(t)&&(t=u(t)).type===e)return t;throw TypeError("Incompatible receiver, "+e+" required")}}}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0,n(2)),n(137)),l=o.__importDefault(n(3));function u(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,r.default)(e).call(e,(function(e){var n=e.getNodeName();n!==a.ListType.OrderedList&&n!==a.ListType.UnorderedList?t.push(e):e.prior?t.push(e.prior):null!=(n=e.children())&&(0,r.default)(n).call(n,(function(e){t.push(l.default(e))}))})),t},t.updateRange=function(e,t,n){e=e.selection;var o=document.createRange();1=t.length?{value:void 0,done:!0}:(t=o(t,n),e.index+=t.length,{value:t,done:!1})}))},function(e,t){e.exports={}},function(e,t,n){var o=n(107),i=n(80);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t,n){var o=n(19);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:o(e,t,n)}},function(e,t,n){n(173);var o,i=n(174),r=n(8),a=n(65),l=n(19),u=n(44),c=n(10)("toStringTag");for(o in i){var s=r[o];s=s&&s.prototype;s&&a(s)!==c&&l(s,c,o),u[o]=u.Array}},function(e,t,n){var o=n(34);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(11),i=n(10),r=n(86),a=i("species");e.exports=function(e){return 51<=r||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){e.exports=n(222)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var o=n(2).__importDefault(n(373));t.ListHandle=function(e){this.options=e,this.selectionRangeElem=new o.default}},function(e,t,n){var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);t.f=r?function(e){return e=i(this,e),!!e&&e.enumerable}:o},function(e,t,n){var o=n(13);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e))||"function"==typeof(n=e.valueOf)&&!o(i=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0{try{return e[t]}catch(e){}})(e=Object(e),r))?t:a?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},function(e,t,n){function o(e,t){this.stopped=e,this.result=t}var i=n(25),r=n(112),a=n(35),l=n(40),u=n(113),c=n(114);(e.exports=function(e,t,n,s,d){var f,p,h,m,A,v,g=l(t,n,s?2:1);if(d)f=e;else{if("function"!=typeof(t=u(e)))throw TypeError("Target is not iterable");if(r(t)){for(p=0,h=a(e.length);p"),f="<",p="prototype",h="script",m=n("IE_PROTO"),A=function(e){return f+h+d+e+f+"/"+h+d},v=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}v=i?((e=i).write(A("")),e.close(),t=e.parentWindow.Object,e=null,t):(e=s("iframe"),t="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(A("document.F=Object")),t.close(),t.F);for(var e,t,n=l.length;n--;)delete v[p][l[n]];return v()};u[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(o[p]=r(e),n=new o,o[p]=null,n[m]=e):n=v(),void 0===t?n:a(n,t)}},function(e,t,n){function o(e){return function(t,n,o){var l,u=i(t),c=r(u.length),s=a(o,c);if(e&&n!=n){for(;s"),this.$textContainerElem=a.default("
    "),this.$textElem=a.default("
    "),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new s.default(this),this.txt=new d.default(this),this.menus=new f.default(this),this.zIndex=new y.default,this.change=new w.default(this),this.history=new x.default(this),this.onSelectionChange=new E.default(this),e=_.default(this),t=e.disable,e=e.enable,this.disable=t,this.enable=e,this.isEnable=!0}T.prototype.initSelection=function(e){h.default(this,e)},T.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),A.default(this),p.default(this),this.txt.init(),this.menus.init(),v.default(this),this.initSelection(!0),m.default(this),this.change.observe(),this.history.observe(),b.default(this)},T.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},T.prototype.destroy=function(){var e,t=this;(0,r.default)(e=this.beforeDestroyHooks).call(e,(function(e){return e.call(t)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},T.prototype.fullScreen=function(){v.setFullScreen(this)},T.prototype.unFullScreen=function(){v.setUnFullScreen(this)},T.prototype.scrollToHead=function(e){g.default(this,e)},T.registerMenu=function(e,t){t&&"function"==typeof t&&(T.globalCustomMenuConstructorList[e]=t)},T.prototype.registerPlugin=function(e,t){b.registerPlugin(e,t,this.pluginsFunctionList)},T.registerPlugin=function(e,t){b.registerPlugin(e,t,T.globalPluginsFunctionList)},T.$=a.default,T.BtnMenu=i.default,T.DropList=C.default,T.DropListMenu=S.default,T.Panel=k.default,T.PanelMenu=M.default,T.Tooltip=o.default,T.globalCustomMenuConstructorList={},T.globalPluginsFunctionList={},t.default=T},function(e,t,n){var o=n(13),i=n(55),r=n(10)("species");e.exports=function(e,t){var n;return new(void 0===(n=i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||o(n)&&null===(n=n[r]))?void 0:n)?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){function o(e){return function(t){return t=String(i(t)),1&e&&(t=t.replace(r,"")),2&e?t.replace(a,""):t}}var i=n(49),r=(n="["+n(68)+"]",RegExp("^"+n+n+"*")),a=RegExp(n+n+"*$");e.exports={start:o(1),end:o(2),trim:o(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var o=n(227),i=n(230);function r(t){return e.exports=r="function"==typeof i&&"symbol"==typeof o?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t,n){n=n(10),t.f=n},function(e,t,n){e.exports=n(306)},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(33));function l(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",(function(e){var o;a.default.hideCurAllPanels(),(0,r.default)(o=t.txt.eventHooks.menuClickEvents).call(o,(function(e){return e()})),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)}))}l.prototype.clickHandler=function(e){},l.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},l.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(l.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),t.default=l},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28));function a(e){for(var n,o=e.elems[0];o&&(0,r.default)(n=t.EXTRA_TAG).call(n,o.nodeName);)if("A"===(o=o.parentElement).nodeName)return o}(0,i.default)(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=a,t.default=function(e){var t;e=e.selection.getSelectionContainerElem();return!(null==(t=null==e?void 0:e.elems)||!t.length||"A"!==e.getNodeName()&&(!(t=a(e))||"A"!==t.nodeName))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(57)),a=o(n(4)),l=o(n(27)),u=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),c=o.__importDefault(n(135)),s=o.__importDefault(n(136));function d(e){this.editor=e}d.prototype.insertImg=function(e,t,n){function o(e,t){return i.i18next.t((t=void 0===t?a:t)+e)}var i=this.editor,r=i.config,a="validate.",l=(l=e.replace(//g,">")).replace("'",'"'),u="",c=(n&&(u=n.replace("'",'"'),u="data-href='"+encodeURIComponent(u)+"' "),""),s=(t&&(c="alt='"+(c=(c=t.replace(//g,">")).replace("'",'"'))+"' "),i.cmd.do("insertHTML","'),r.linkImgCallback(e,t,n),document.createElement("img"));s.onload=function(){s=null},s.onerror=function(){r.customAlert(o("插入图片错误"),"error","wangEditor: "+o("插入图片错误")+","+o("图片链接")+' "'+e+'",'+o("下载链接失败")),s=null},s.onabort=function(){return s=null},s.src=e},d.prototype.uploadImg=function(e){var t,n,o,i,d,f,p,h,m,A,v,g,y,w,x,_,E,b,C,S=this;e.length&&(t=this.editor,n=t.config,o=function(e){return t.i18next.t("validate."+e)},E=n.uploadImgServer,i=n.uploadImgShowBase64,f=(d=n.uploadImgMaxSize)/1024/1024,b=n.uploadImgMaxLength,p=n.uploadFileName,h=n.uploadImgParams,m=n.uploadImgParamsWithUrl,A=n.uploadImgHeaders,v=n.uploadImgHooks,g=n.uploadImgTimeout,y=n.withCredentials,(C=n.customUploadImg)||E||i)&&(w=[],x=[],u.arrForEach(e,(function(e){var n,i,r;e&&(n=e.name||e.type.replace("/","."),i=e.size,n)&&i&&(r=t.config.uploadImgAccept.join("|"),!1===new RegExp(".("+r+")$","i").test(n)?x.push("【"+n+"】"+o("不是图片")):du;)!o(l,n=t[u++])||~r(c,n)||c.push(n);return c}},function(e,t,n){n=n(36),e.exports=n("document","documentElement")},function(e,t,n){n=n(8),e.exports=n.Promise},function(e,t,n){var o=n(53);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:o(e,i,t[i],n);return e}},function(e,t,n){var o=n(36),i=n(18),r=n(10),a=n(14),l=r("species");e.exports=function(e){e=o(e);var t=i.f;a&&e&&!e[l]&&t(e,l,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(10),i=n(44),r=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},function(e,t,n){var o=n(65),i=n(44),r=n(10)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var o=n(25);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){throw i=e.return,void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(10)("iterator"),i=!1;try{var r=0,a={next:function(){return{done:!!r++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}},function(e,t,n){var o=n(25),i=n(41),r=n(10)("species");e.exports=function(e,t){e=o(e).constructor;return void 0===e||null==(e=o(e)[r])?t:i(e)}},function(e,t,n){function o(e){return function(){_(e)}}function i(e){_(e.data)}function r(e){l.postMessage(e+"",p.protocol+"//"+p.host)}var a,l=n(8),u=n(11),c=n(34),s=n(40),d=n(108),f=n(73),p=(n=n(118),l.location),h=l.setImmediate,m=l.clearImmediate,A=l.process,v=l.MessageChannel,g=l.Dispatch,y=0,w={},x="onreadystatechange",_=function(e){var t;w.hasOwnProperty(e)&&(t=w[e],delete w[e],t())};h&&m||(h=function(e){for(var t=[],n=1;n"+o+"

    "}return i=(i=i.replace(/<(\d)/gm,(function(e,t){return"<"+t}))).replace(/<(\/?meta.*?)>/gim,""),l.default(i,t,n)},t.getPasteImgs=function(e){var t=[];return u(e)||(e=null==(e=e.clipboardData)?void 0:e.items)&&(0,r.default)(a).call(a,e,(function(e,n){var o=n.type;/image/i.test(o)&&t.push(n.getAsFile())})),t}},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=n(7);function c(e,t){var n=this,o=(e=(this.hideTimeoutId=0,this.menu=e,this.conf=t,l.default('
    ')),l.default("

    "+t.title+"

    ")),i=(o=(o.addClass("w-e-dp-title"),e.append(o),t.list||[]),t.clickHandler||u.EMPTY_FN),c=l.default('
      ');(0,r.default)(o).call(o,(function(e){var t=e.$elem,o=e.value;e=l.default('
    • ');t&&(e.append(t),c.append(e),e.on("click",(function(e){i(o),e.stopPropagation(),n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})))})),e.append(c),e.on("mouseleave",(function(){n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})),this.$container=e,this.rendered=!1,this._show=!1}c.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e,t,n=this.menu.$elem,o=this.$container;this._show||(this.rendered?o.show():(e=n.getBoundingClientRect().height||0,t=this.conf.width||100,o.css("margin-top",e+"px").css("width",t+"px"),n.append(o),this.rendered=!0),this._show=!0)},c.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,i.default)(c.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),t.default=c},function(e,t,n){var o=n(0),i=o(n(92)),r=o(n(1)),a=o(n(4)),l=((0,r.default)(t,"__esModule",{value:!0}),n(6));t.default=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,a.default)(l).call(l,t.headers,(function(e,t){n.setRequestHeader(e,t)})),n.withCredentials=!!t.withCredentials,t.beforeSend&&(e=t.beforeSend(n),e&&"object"===(0,i.default)(e)&&e.prevent)?e.msg:(n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||300<=e&&e<400))if(400<=e)t.onError&&t.onError(n);else{var o;e=n.responseText;if("object"!==(0,i.default)(e))try{o=JSON.parse(e)}catch(o){return void(t.onFail&&t.onFail(n,e))}else o=e;t.onSuccess(n,o)}}},n.send(t.formData||null),n)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(342)),a=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3));function u(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=l.default('
      '),this.isShow=!1,this.time=0,this.timeoutId=0}u.prototype.show=function(e){var t,n=this;this.isShow||(this.isShow=!0,t=this.$bar,this.$textContainer.append(t),100<(0,r.default)()-this.time&&e<=1&&(t.css("width",100*e+"%"),this.time=(0,r.default)()),(t=this.timeoutId)&&clearTimeout(t),this.timeoutId=(0,a.default)((function(){n.hide()}),500))},u.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var o,i,r=n(2),a=r.__importDefault(n(3)),l=r.__importDefault(n(24)),u=n(47),c=r.__importStar(n(371));(n=o=t.ListType||(t.ListType={})).OrderedList="OL",n.UnorderedList="UL",i=l.default,r.__extends(s,i),s.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},s.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},s.prototype.handleSelectionRangeNodes=function(e){var t,n=this.editor,o=n.selection,i=e.toLowerCase(),r=o.getSelectionContainerElem(),a=o.getSelectionStartElem().getNodeTop(n),l=o.getSelectionEndElem().getNodeTop(n);this.validator(a,l,n.$textElem)&&(t=null==(o=o.getRange())?void 0:o.collapsed,n.$textElem.equal(r)||(r=r.getNodeTop(n)),e={editor:n,listType:e,listTarget:i,$selectionElem:r,$startElem:a,$endElem:l},i=this.isOrderElem(r)?c.ClassType.Wrap:this.isOrderElem(a)&&this.isOrderElem(l)?c.ClassType.Join:this.isOrderElem(a)?c.ClassType.StartJoin:this.isOrderElem(l)?c.ClassType.EndJoin:c.ClassType.Other,r=new c.default(c.createListHandle(i,e,o)),u.updateRange(n,r.getSelectionRangeElem(),!!t))},s.prototype.isOrderElem=function(e){return e=e.getNodeName(),e===o.OrderedList||e===o.UnorderedList},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=this,n=a.default('
      \n \n
      '),r={width:130,title:"序列",type:"list",list:[{$elem:a.default('\n

      \n \n '+e.i18next.t("menus.dropListMenu.list.无序列表")+"\n

      "),value:o.UnorderedList},{$elem:a.default('

      \n \n '+e.i18next.t("menus.dropListMenu.list.有序列表")+"\n

      "),value:o.OrderedList}],clickHandler:function(e){t.command(e)}};return t=i.call(this,n,e,r)||this}t.default=n},function(e,t,n){e.exports=n(395)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){return!(null==(e=e.selection.getSelectionContainerElem())||!e.length||"CODE"!=e.getNodeName()&&"PRE"!=e.getNodeName()&&"CODE"!=e.parent().getNodeName()&&"PRE"!=e.parent().getNodeName()&&!/hljs/.test(e.parent().attr("class")))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2).__importDefault(n(3)),l=(u.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},u.prototype.getInput=function(){var e=this.$todo;return(0,r.default)(e).call(e,"input")},u.prototype.getInputContainer=function(){return this.getInput().parent()},u.prototype.getTodo=function(){return this.$todo},u);function u(e){this.template='

      ',this.checked=!1,this.$todo=a.default(this.template),this.$child=null==(e=null==e?void 0:e.childNodes())?void 0:e.clone(!0)}t.todo=l,t.default=function(e){return(e=new l(e)).init(),e}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=(n(146),n(148),n(152),n(154),n(156),n(158),n(160),o.__importDefault(n(87)));o.__exportStar(n(442),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){n=n(143),e.exports=n},function(e,t,n){n(144);var o=n(9).Object;n=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(n.sham=!0)},function(e,t,n){var o=n(5),i=n(14);o({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(18).f})},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var o=n(20),i=(n=n(147),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.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: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !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',""]),e.exports=t},function(e,t,n){var o=n(20),i=(n=n(149),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){var o=n(21),i=n(150);n=n(151),t=o(!1),o=i(n);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+o+') 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',""]),e.exports=t},function(e,t,n){e.exports=function(e,t){return t=t||{},"string"==typeof(e=e&&e.__esModule?e.default:e)&&(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes)?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e}},function(e,t,n){n.r(t),t.default="data:font/woff;base64,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"},function(e,t,n){var o=n(20),i=(n=n(153),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.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.w-e-menu-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-menu-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-menu-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-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=(n=n(155),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\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 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 margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\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',""]),e.exports=t},function(e,t,n){var o=n(20),i=(n=n(157),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.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.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-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.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=(n=n(159),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.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",""]),e.exports=t},function(e,t,n){n=n(0)(n(161)),Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;0<=n&&t.item(n)!==this;n--);return-1{var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(n){}return function(n,r){return o(n),i(r),t?e.call(n,r):n.__proto__=r,n}})():void 0)},function(e,t,n){var o=n(13);e.exports=function(e){if(o(e)||null===e)return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,n){var o=n(30),i=n(82),r=n(44),a=n(42),l=(n=n(75),"Array Iterator"),u=a.set,c=a.getterFor(l);e.exports=n(Array,"Array",(function(e,t){u(this,{type:l,target:o(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.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(e,t,n){function o(e,t){S.call(d,(function(){var n=t.value,o=re(t);if(o&&(o=N((function(){J?z.emit("unhandledRejection",n,e):ie(W,e,n)})),t.rejection=J||re(t)?te:ee,o.error))throw o.value}))}function i(e,t){S.call(d,(function(){J?z.emit("rejectionHandled",e):ie(q,e,t.value)}))}var r,a,l,u,c=n(5),s=n(43),d=n(8),f=n(36),p=n(109),h=n(53),m=n(110),A=n(37),v=n(111),g=n(13),y=n(41),w=n(83),x=n(34),_=n(102),E=n(66),b=n(115),C=n(116),S=n(117).set,k=n(176),M=n(119),D=n(177),T=n(85),N=n(120),B=n(42),I=n(101),R=n(10),P=n(86),H=R("species"),F="Promise",L=B.get,O=B.set,Q=B.getterFor(F),j=p,U=d.TypeError,Y=d.document,z=d.process,$=f("fetch"),V=T.f,G=V,J="process"==x(z),K=!!(Y&&Y.createEvent&&d.dispatchEvent),W="unhandledrejection",q="rejectionhandled",X=1,Z=2,ee=1,te=2,ne=(n=I(F,(function(){var e,t;if(_(j)===String(j)){if(66===P)return!0;if(!J&&"function"!=typeof PromiseRejectionEvent)return!0}return!(!s||j.prototype.finally)||!(51<=P&&/native code/.test(j)||(t=function(e){e((function(){}),(function(){}))},((e=j.resolve(1)).constructor={})[H]=t,e.then((function(){}))instanceof t))})),R=n||!b((function(e){j.all(e).catch((function(){}))})),function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t}),oe=function(e,t,n){var r;t.notified||(t.notified=!0,r=t.reactions,k((function(){for(var a=t.value,l=t.state==X,u=0;r.length>u;){var c,s,d,f=r[u++],p=l?f.ok:f.fail,h=f.resolve,m=f.reject,A=f.domain;try{p?(l||(t.rejection===te&&i(e,t),t.rejection=ee),!0===p?c=a:(A&&A.enter(),c=p(a),A&&(A.exit(),d=!0)),c===f.promise?m(U("Promise-chain cycle")):(s=ne(c))?s.call(c,h,m):h(c)):m(a)}catch(a){A&&!d&&A.exit(),m(a)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&o(e,t)})))},ie=function(e,t,n){var o;K?((o=Y.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),d.dispatchEvent(o)):o={promise:t,reason:n},(t=d["on"+e])?t(o):e===W&&D("Unhandled promise rejection",n)},re=function(e){return e.rejection!==ee&&!e.parent},ae=function(e,t,n,o){return function(i){e(t,n,i,o)}},le=function(e,t,n,o){t.done||(t.done=!0,(t=o||t).value=n,t.state=Z,oe(e,t,!0))},ue=function(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw U("Promise can't be resolved itself");var i=ne(n);i?k((function(){var o={done:!1};try{i.call(n,ae(ue,e,o,t),ae(le,e,o,t))}catch(n){le(e,o,n,t)}})):(t.value=n,t.state=X,oe(e,t,!1))}catch(n){le(e,{done:!1},n,t)}}};n&&(j=function(e){w(this,j,F),y(e),r.call(this);var t=L(this);try{e(ae(ue,this,t),ae(le,this,t))}catch(e){le(this,t,e)}},(r=function(e){O(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=m(j.prototype,{then:function(e,t){var n=Q(this),o=V(C(this,j));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=J?z.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&oe(this,n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ae(ue,e,t),this.reject=ae(le,e,t)},T.f=V=function(e){return e===j||e===l?new a:G(e)},s||"function"!=typeof p||(u=p.prototype.then,h(p.prototype,"then",(function(e,t){var n=this;return new j((function(e,t){u.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof $&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return M(j,$.apply(d,arguments))}}))),c({global:!0,wrap:!0,forced:n},{Promise:j}),A(j,F,!1,!0),v(F),l=f(F),c({target:F,stat:!0,forced:n},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),c({target:F,stat:!0,forced:s||n},{resolve:function(e){return M(s&&this===l?j:this,e)}}),c({target:F,stat:!0,forced:R},{all:function(e){var t=this,n=V(t),o=n.resolve,i=n.reject,r=N((function(){var n=y(t.resolve),r=[],a=0,l=1;E(e,(function(e){var u=a++,c=!1;r.push(void 0),l++,n.call(t,e).then((function(e){c||(c=!0,r[u]=e,--l)||o(r)}),i)})),--l||o(r)}));return r.error&&i(r.value),n.promise},race:function(e){var t=this,n=V(t),o=n.reject,i=N((function(){var i=y(t.resolve);E(e,(function(e){i.call(t,e).then(n.resolve,o)}))}));return i.error&&o(i.value),n.promise}})},function(e,t,n){var o,i,r,a,l,u,c,s,d=n(8),f=n(71).f,p=n(34),h=n(117).set,m=(n=n(118),d.MutationObserver||d.WebKitMutationObserver),A=d.process,v=d.Promise,g="process"==p(A);p=f(d,"queueMicrotask"),f=p&&p.value;f||(o=function(){var e,t;for(g&&(e=A.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():r=void 0,e}}r=void 0,e&&e.enter()},a=g?function(){A.nextTick(o)}:m&&!n?(l=!0,u=document.createTextNode(""),new m(o).observe(u,{characterData:!0}),function(){u.data=l=!l}):v&&v.resolve?(c=v.resolve(void 0),s=c.then,function(){s.call(c,o)}):function(){h.call(d,o)}),e.exports=f||function(e){e={fn:e,next:void 0},r&&(r.next=e),i||(i=e,a()),r=e}},function(e,t,n){var o=n(8);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){var o=n(5),i=n(41),r=n(85),a=n(120),l=n(66);o({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=r.f(t),o=n.resolve,u=n.reject,c=a((function(){var n=i(t.resolve),r=[],a=0,u=1;l(e,(function(e){var i=a++,l=!1;r.push(void 0),u++,n.call(t,e).then((function(e){l||(l=!0,r[i]={status:"fulfilled",value:e},--u)||o(r)}),(function(e){l||(l=!0,r[i]={status:"rejected",reason:e},--u)||o(r)}))})),--u||o(r)}));return c.error&&u(c.value),n.promise}})},function(e,t,n){var o=n(5),i=n(43),r=n(109),a=n(11),l=n(36),u=n(116),c=n(119);n=n(53);o({target:"Promise",proto:!0,real:!0,forced:!!r&&a((function(){r.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof r||r.prototype.finally||n(r.prototype,"finally",l("Promise").prototype.finally)},function(e,t,n){n(54);var o=n(181),i=n(65),r=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===r||e instanceof Array&&t===r.forEach||a.hasOwnProperty(i(e))?o:t}},function(e,t,n){n=n(182),e.exports=n},function(e,t,n){n(183),n=n(15),e.exports=n("Array").forEach},function(e,t,n){var o=n(5);n=n(184);o({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},function(e,t,n){var o=n(32).forEach,i=n(67);n=n(22),i=i("forEach"),n=n("forEach");e.exports=i&&n?[].forEach:function(e){return o(this,e,1>>0||(a.test(e)?16:10))}:r},function(e,t,n){n=n(262),e.exports=n},function(e,t,n){var o=n(263),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?o:t}},function(e,t,n){n(264),n=n(15),e.exports=n("Array").slice},function(e,t,n){var o=n(5),i=n(13),r=n(55),a=n(79),l=n(35),u=n(30),c=n(69),s=n(10),d=n(56),f=(n=n(22),d=d("slice"),n=n("slice",{ACCESSORS:!0,0:0,1:2}),s("species")),p=[].slice,h=Math.max;o({target:"Array",proto:!0,forced:!d||!n},{slice:function(e,t){var n,o,s,d=u(this),m=l(d.length),A=a(e,m),v=a(void 0===t?m:t,m);if(r(d)&&((n="function"==typeof(n=d.constructor)&&(n===Array||r(n.prototype))||i(n)&&null===(n=n[f])?void 0:n)===Array||void 0===n))return p.call(d,A,v);for(o=new(void 0===n?Array:n)(h(v-A,0)),s=0;A​"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(e){}},c.prototype.createRangeByElems=function(e,t){var n=(window.getSelection?window:document).getSelection();null!=n&&n.removeAllRanges(),n=document.createRange();n.setStart(e,0),n.setEnd(t,t.childNodes.length||1),this.saveRange(n),this.restoreSelection()},c.prototype.createRangeByElem=function(e,t,n){var o;e.length&&(e=e.elems[0],o=document.createRange(),n?o.selectNodeContents(e):o.selectNode(e),null!=t&&(o.collapse(t),t||(this.saveRange(o),this.editor.selection.moveCursor(e))),this.saveRange(o))},c.prototype.getSelectionRangeTopNodes=function(){var e=null==(e=this.getSelectionStartElem())?void 0:e.getNodeTop(this.editor),t=null==(t=this.getSelectionEndElem())?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(a.default(e),a.default(t))},c.prototype.moveCursor=function(e,t){var n=this.getRange(),o=3===e.nodeType?null==(o=e.nodeValue)?void 0:o.length:e.childNodes.length;!l.UA.isFirefox&&!l.UA.isIE()||0===o||3!==e.nodeType&&"BR"!==e.childNodes[o-1].nodeName||(o-=1),t=null!=t?t:o;n&&e&&(n.setStart(e,t),n.setEnd(e,t),this.restoreSelection())},c.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},c.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},c.prototype.recordSelectionNodes=function(e,t){var n=[],o=!0;try{for(var i=e,r=this.editor.$textElem;o;){var l=null==i?void 0:i.getNodeTop(this.editor);"BODY"===l.getNodeName()&&(o=!1),0<\/p>/gim,"")).replace(m.EMPTY_P_LAST_REGEX,"")).replace(m.EMPTY_P_REGEX,"

      ")).match(/<(img|br|hr|input)[^>]*>/gi))&&(0,a.default)(n).call(n,(function(e){e.match(/\/>/)||(t=t.replace(e,e.substring(0,e.length-1)+"/>"))})),t;""===(e=(0,l.default)(e).call(e))&&(e=m.EMPTY_P),0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),i.html(e),o.initSelection()},A.prototype.setJSON=function(e){e=h.default(e).children();var t=this.editor.$textElem;e&&t.replaceChildAll(e)},A.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},A.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e)return n.text().replace(/\u200b/gm,"");n.text("

      "+e+"

      "),t.initSelection()},A.prototype.append=function(e){var t=this.editor;0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),this.html(this.html()+e),t.initSelection()},A.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=s.default(document);function o(){e.selection.saveRange(),e.menus.changeActive()}function i(){o(),n.off("mouseup",i)}function r(){n.on("mouseup",i),t.off("mouseleave",r)}t.on("keyup",o),t.on("click",(function e(){o(),t.off("click",e)})),t.on("mousedown",(function(){t.on("mouseleave",r)})),t.on("mouseup",(function(n){t.off("mouseleave",r),(0,c.default)((function(){null!==e.selection.getRange()&&o()}),0)}))},A.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function o(e){e.preventDefault()}t.on("click",(function(e){var t=n.clickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){var t;13===e.keyCode&&(t=n.enterUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keyup",(function(e){var t=n.keyupEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keydown",(function(e){var t=n.keydownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){var t;8!==e.keyCode&&46!==e.keyCode||(t=n.deleteUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(e){var t;8!==e.keyCode&&46!==e.keyCode||(t=n.deleteDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("paste",(function(e){var t;f.UA.isIE()||(e.preventDefault(),t=n.pasteEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())})),t.on("keyup",(function(e){var t;9===e.keyCode&&(e.preventDefault(),t=n.tabUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(e){var t;9===e.keyCode&&(e.preventDefault(),t=n.tabDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("scroll",f.throttle((function(e){var t=n.textScrollEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}),100)),s.default(document).on("dragleave",o).on("drop",o).on("dragenter",o).on("dragover",o),e.beforeDestroy((function(){s.default(document).off("dragleave",o).off("drop",o).off("dragenter",o).off("dragover",o)})),t.on("drop",(function(e){e.preventDefault();var t=n.dropEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("click",(function(e){var t=null;e=e.target,e=s.default(e);("A"===e.getNodeName()||null!=(e=e.parentUntil("a")))&&(t=e),t&&(e=n.linkClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(e){var t=null,o=e.target;o=s.default(o);"IMG"!==o.getNodeName()||o.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=o),t&&(e=n.imgClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(e){var t=null;e=e.target,e=s.default(e);("PRE"===e.getNodeName()||null!==(e=e.parentUntil("pre")))&&(t=e),t&&(e=n.codeClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(t){var o=null;t=t.target,t=s.default(t);(o="HR"===t.getNodeName()?t:o)&&(e.selection.createRangeByElem(o),e.selection.restoreSelection(),t=n.splitLineEvents,(0,a.default)(t).call(t,(function(e){return e(o)})))})),e.$toolbarElem.on("click",(function(e){var t=n.toolbarClickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),e.$textContainerElem.on("mousedown",(function(e){e=e.target;s.default(e).hasClass("w-e-img-drag-rb")&&(e=n.imgDragBarMouseDownEvents,(0,a.default)(e).call(e,(function(e){return e()})))})),t.on("click",(function(t){var o,i=t.target;(o=s.default(i).parentUntilEditor("TABLE",e,i))&&(i=n.tableClickEvents,(0,a.default)(i).call(i,(function(e){return e(o,t)})))})),t.on("keydown",(function(e){var t;13===e.keyCode&&(t=n.enterDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("click",(function(e){var t=null,o=e.target;o=s.default(o);"VIDEO"===o.getNodeName()&&(e.stopPropagation(),t=o),t&&(e=n.videoClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))}))},t.default=A},function(e,t,n){n=n(284),e.exports=n},function(e,t,n){var o=n(285),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?o:t}},function(e,t,n){n(286),n=n(15),e.exports=n("Array").find},function(e,t,n){var o=n(5),i=n(32).find,r=n(82),a=(n=n(22),"find"),l=!0;n=n(a);a in[]&&Array(1).find((function(){l=!1})),o({target:"Array",proto:!0,forced:l||!n},{find:function(e){return i(this,e,1
      "===i.html()||"FONT"===n.getNodeName()&&""===n.text()&&"monospace"===n.attr("face")?o(i):!i.equal(t)||"P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||o(n)})),n.push((function(t){var n;e.selection.saveRange(null==(n=getSelection())?void 0:n.getRangeAt(0)),e.selection.getSelectionContainerElem().id===e.textElemId&&(t.preventDefault(),e.cmd.do("insertHTML","


      "))}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(28)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0,n(2)),n(7)),u=o.__importDefault(n(3));t.cutToKeepP=function(e,t){t.push((function(t){var n;88!==t.keyCode||(t=e.$textElem,(n=(0,r.default)(n=t.html().toLowerCase()).call(n))&&"
      "!==n)||(n=u.default(l.EMPTY_P),t.html(" "),t.append(n),e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(n.getNode(),0))}))},t.default=function(e,t,n){t.push((function(){var t=e.$textElem,n=e.$textElem.html(),o=e.$textElem.text(),i=(n=(0,r.default)(n).call(n),["


      ","
      ",'

      ',l.EMPTY_P]);!/^\s*$/.test(o)||n&&!(0,a.default)(i).call(i,n)||(t.html(l.EMPTY_P),o=t.getNode(),e.selection.createRangeByElems(o.childNodes[0],o.childNodes[0]),i=e.selection.getSelectionContainerElem(),e.selection.restoreSelection(),e.selection.moveCursor(i.getNode(),0))})),n.push((function(t){var n=e.$textElem;(0,r.default)(n=n.html().toLowerCase()).call(n)===l.EMPTY_P&&t.preventDefault()}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push((function(){var t,n;e.cmd.queryCommandSupported("insertHTML")&&(t=e.selection.getSelectionContainerElem())&&(n=t.parent(),t=t.getNodeName(),n=n.getNodeName(),"CODE"==t||"CODE"===n||"PRE"===n||/hljs/.test(n)?e.cmd.do("insertHTML",e.config.languageTab):e.cmd.do("insertHTML","    "))}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(4)),l=((0,i.default)(t,"__esModule",{value:!0}),n(131)),u=n(6),c=n(7);function s(e){e=(0,r.default)(e=e.replace(/
      /gim,"

      ").replace(/<\/div>/gim,"

      ")).call(e);var t=document.createElement("div");return t.innerHTML=e,t.innerHTML.replace(/

      <\/p>/gim,"")}t.default=function(e,t){t.push((function(t){var n=(i=e.config).pasteFilterStyle,o=i.pasteTextHandle,i=l.getPasteHtml(t,n,i.pasteIgnoreImg),r=(t=(t=l.getPasteText(t)).replace(/\n/gm,"
      "),e.selection.getSelectionContainerElem());if(r){var d,f,p=null==r?void 0:r.getNodeName(),h=null==r?void 0:r.getNodeTop(e),m="";if(h.elems[0]&&(m=null==h?void 0:h.getNodeName()),"CODE"===p||"PRE"===m)o&&u.isFunction(o)&&(t=""+(o(t)||"")),e.cmd.do("insertHTML",t.replace(/
      |/gm,"\n").replace(/<[^>]+>/gm,""));else if(c.urlRegex.test(t)&&n){p=(t=o&&u.isFunction(o)?""+(o(t)||""):t).replace(c.urlRegex,(function(e){return''+e+""})),m=e.selection.getRange();var A=document.createElement("div"),v=document.createDocumentFragment();if(A.innerHTML=p,null!=m){for(;A.childNodes.length;)v.append(A.childNodes[0]);p=v.querySelectorAll("a"),(0,a.default)(p).call(p,(function(e){e.innerText=e.href})),m.insertNode&&(m.deleteContents(),m.insertNode(v)),e.selection.clearWindowSelectionRange()}}else if(i)try{o&&u.isFunction(o)&&(i=""+(o(i)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(i)&&n?e.cmd.do("insertHTML",""+s(t)):(e=>{var t;return""!==e&&((t=document.createElement("div")).innerHTML=e,"P"===(null==(e=t.firstChild)?void 0:e.nodeName))})(d=s(i))?(f=e.$textElem,e.cmd.do("insertHTML",d),f.equal(r)?e.selection.createEmptyRange():(e=>null!=e&&e.length&&"P"===(e=e.elems[0]).nodeName&&"
      "===e.innerHTML)(h)&&h.remove()):e.cmd.do("insertHTML",d)}catch(n){o&&u.isFunction(o)&&(t=""+(o(t)||"")),e.cmd.do("insertHTML",""+s(t))}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(4)),l=o(n(28)),u=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(293)),c=o.__importDefault(n(297));function s(e,t){var n;return e=(0,r.default)(n=e.toLowerCase()).call(n),u.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}t.default=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var o=[],i="";function d(e){(e=(0,r.default)(e).call(e))&&!u.EMPTY_TAGS.has(e)&&(i=e)}(new c.default).parse(e,{startElement:function(e,i){var r,c,f,p;d(e),s(e,n)||(r=u.NECESSARY_ATTRS.get(e)||[],c=[],(0,a.default)(i).call(i,(function(e){var n=e.name;"style"===n?t||c.push(e):!1!==(0,l.default)(r).call(r,n)&&c.push(e)})),i=c,f="",f="<"+(e=e),p=[],(0,a.default)(i).call(i,(function(e){p.push(e.name+'="'+e.value+'"')})),0",o.push(e))},characters:function(e){!e||s(i,n)||o.push(e)},endElement:function(e){s(e,n)||(o.push(""),i="")},comment:function(e){d(e)}});var f;e=o.join("");return f=/(.*?)<\/span>/,e.replace(/.*?<\/span>/gi,(function(e){return e=e.match(f),null==e?"":e[1]}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(132));o=o(n(121));(0,i.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new r.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new o.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new r.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new r.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){n=n(295),e.exports=n},function(e,t,n){n(296),n(61),n(50),n(54),n=n(9),e.exports=n.Set},function(e,t,n){var o=n(122);n=n(124);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},function(e,t){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(e,t){t&&(this.contentHandler=t);for(var n,o,i=!1,r=this;0\n

      \n
      \n
      \n
      '),i=(o.css("visibility","hidden"),t.append(o),o.css("z-index",e.zIndex.get("tooltip")),0);function r(){i&&clearTimeout(i)}function a(){r(),o.css("visibility","hidden")}t.on("mouseover",(function(l){var u,c;l=l.target,l=A.default(l);!l.isContain(t)&&(null!=l.parentUntil(".w-e-droplist")?a():(l.attr("data-title")||null!=(l=l.parentUntil(".w-e-menu")))&&(c=l.attr("data-title"),u=l),c)&&u?(r(),l=u.getOffsetData(),o.text(e.i18next.t("menus.title."+c)),u=o.getOffsetData(),c=l.left+l.width/2-u.width/2,o.css("left",c+"px"),"up"===n?o.css("top",l.top-u.height-8+"px"):"down"===n&&o.css("top",l.top+l.height+8+"px"),i=(0,f.default)((function(){o.css("visibility","visible")}),200)):a()})).on("mouseleave",(function(){a()}))},v.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,c.default)(e=this.menuList).call(e,(function(e){e=e.$elem,e&&t.append(e)}))},v.prototype.menuFind=function(e){for(var t=this.menuList,n=0,o=t.length;n\n \n ');return o.call(this,t,e)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(27)),l=i(n(29)),u=i(n(4)),c=i(n(317)),s=i(n(28)),d=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3))),f=n(6),p=n(7);o=r.default,i.__extends(h,o),h.prototype.command=function(e){var t,n=this.editor,o=n.selection.getSelectionContainerElem();if(o&&n.$textElem.equal(o))this.setMultilineHead(e);else{if(-1<(0,a.default)(t=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(t,d.default(o).getNodeName()))return;n.cmd.do("formatBlock",e)}"

      "!==e&&this.addUidForSelectionElem()},h.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=f.getRandomCode();d.default(e).attr("id",t)},h.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},h.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=(e=e.config.onCatalogChange,t=(0,l.default)(t).call(t,"h1,h2,h3,h4,h5"),[]);(0,u.default)(t).call(t,(function(e,t){e=d.default(e);var o=e.attr("id"),i=e.getNodeName(),r=e.text();o||(o=f.getRandomCode(),e.attr("id",o)),r&&n.push({tag:i,id:o,text:r})})),(0,c.default)(this.oldCatalogs)!==(0,c.default)(n)&&(this.oldCatalogs=n,e)&&e(n)},h.prototype.setMultilineHead=function(e){for(var t=this,n=this.editor,o=n.selection,i=null==(i=o.getSelectionContainerElem())?void 0:i.elems[0],r=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],a=d.default(o.getSelectionStartElem()),l=d.default(o.getSelectionEndElem()),c=(l.elems[0].outerHTML!==d.default(p.EMPTY_P).elems[0].outerHTML||l.elems[0].nextSibling||(l=l.prev()),[]),s=(c.push(a.getNodeTop(n)),[]),f=(a=null==(a=o.getRange())?void 0:a.commonAncestorContainer.childNodes,null!=a&&(0,u.default)(a).call(a,(function(e,t){e===c[0].getNode()&&s.push(t),e===l.getNodeTop(n).getNode()&&s.push(t)})),0);c[f].getNode()!==l.getNodeTop(n).getNode();){if(!c[f].elems[0])return;var h=d.default(c[f].next().getNode());c.push(h),f++}null!=c&&(0,u.default)(c).call(c,(function(n,o){var i,a;t.hasTag(n,r)||(i=d.default(e),a=n.parent().getNode(),i.html(""+n.html()),a.insertBefore(i.getNode(),n.getNode()),n.remove())})),o.createRangeByElems(i.children[s[0]],i.children[s[1]])},h.prototype.hasTag=function(e,t){var n,o=this;return!!e&&(!!(0,s.default)(t).call(t,null==e?void 0:e.getNodeName())||(n=!1,null!=(e=e.children())&&(0,u.default)(e).call(e,(function(e){n=o.hasTag(d.default(e),t)})),n))},h.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},n=h;function h(e){var t=this,n=d.default('

      '),i={width:100,title:"设置标题",type:"list",list:[{$elem:d.default("

      H1

      "),value:"

      "},{$elem:d.default("

      H2

      "),value:"

      "},{$elem:d.default("

      H3

      "),value:"

      "},{$elem:d.default("

      H4

      "),value:"

      "},{$elem:d.default("

      H5
      "),value:"
      "},{$elem:d.default("

      "+e.i18next.t("menus.dropListMenu.head.正文")+"

      "),value:"

      "}],clickHandler:function(e){t.command(e)}};t=o.call(this,n,e,i)||this;return e.config.onCatalogChange&&(t.oldCatalogs=[],t.addListenerCatalog(),t.getCatalogs()),t}t.default=n},function(e,t,n){e.exports=n(318)},function(e,t,n){n=n(319),e.exports=n},function(e,t,n){n(320);var o=n(9);o.JSON||(o.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o.JSON.stringify.apply(null,arguments)}},function(e,t,n){function o(e,t,n){var o=n.charAt(t-1);n=n.charAt(t+1);return u.test(e)&&!c.test(n)||c.test(e)&&!u.test(o)?"\\u"+e.charCodeAt(0).toString(16):e}var i=n(5),r=n(36),a=(n=n(11),r("JSON","stringify")),l=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/;r=n((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&i({target:"JSON",stat:!0,forced:r},{stringify:function(e,t,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(l,o):i}})},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(17)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(38)),i.__importDefault(n(3))),u=i.__importDefault(n(322)),c=i.__importStar(n(96)),s=i.__importDefault(n(33)),d=i.__importDefault(n(324)),f=n(7);o=r.default,i.__extends(p,o),p.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),o=t.$textElem,i=o.html();(0,a.default)(i).call(i)===f.EMPTY_P&&(i=o.children(),t.selection.createRangeByElem(i,!0,!0),n=t.selection.getSelectionContainerElem()),n&&t.$textElem.equal(n)||(this.isActive?(i=o="",(n=t.selection.getSelectionContainerElem())&&("A"!==n.getNodeName()&&(e=c.getParentNodeA(n),n=l.default(e)),o=n.elems[0].innerText,i=n.attr("href"),this.createPanel(o,i))):t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),""))},p.prototype.createPanel=function(e,t){e=u.default(this.editor,e,t),new s.default(this,e).create()},p.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()},n=p;function p(e){var t=l.default('

      ');t=o.call(this,t,e)||this;return d.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28)),a=o(n(17)),l=o(n(29)),u=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),c=o.__importDefault(n(3)),s=o.__importStar(n(96)),d=n(323);t.default=function(e,t,n){var o,i=u.getRandom("input-link"),f=u.getRandom("input-text"),p=u.getRandom("btn-ok"),h=u.getRandom("btn-del"),m=s.default(e)?"inline-block":"none";function A(){var t;s.default(e)&&(t=e.selection.getSelectionContainerElem())&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),o=t)}return{width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'
      \n \n \n \n \n
      \n \n \n
      \n
      ",events:[{selector:"#"+p,type:"click",fn:function(){var t=e.selection.getSelectionContainerElem(),n=null==t?void 0:t.elems[0],o=(e.selection.restoreSelection(),e.selection.getSelectionRangeTopNodes()[0].getNode()),l=window.getSelection(),u=c.default("#"+i),p=c.default("#"+f),h=(u=(0,a.default)(u=u.val()).call(u),p=(0,a.default)(p=p.val()).call(p),"");o=null==(h=!l||null!=l&&l.isCollapsed?h:null==(l=d.insertHtml(l,o))?void 0:(0,a.default)(l).call(l))?void 0:h.replace(/<.*?>/g,""),h=null!=(l=null==o?void 0:o.length)?l:0;if(h<=p.length&&(l=p.substring(0,h),h=p.substring(h),o===l)&&(p=o+h),u&&((t,n)=>{if(void 0!==(t=e.config.linkCheck(t,n))){if(!0===t)return 1;e.config.customAlert(t,"warning")}})(p=p||u,u)){if("A"===(null==n?void 0:n.nodeName))n.setAttribute("href",u),n.innerText=p;else{if("A"!==(null==n?void 0:n.nodeName)&&(0,r.default)(l=s.EXTRA_TAG).call(l,n.nodeName)&&(o=s.getParentNodeA(t),o))return o.setAttribute("href",u),n.innerText=p,!0;h=u,t=(l=p).replace(//g,">"),(o=(t=c.default(''+t+"")).elems[0]).innerText=l,o.href=h,s.default(e)&&A(),e.cmd.do("insertElem",t)}return!0}},bindEnter:!0},{selector:"#"+h,type:"click",fn:function(){var t,n,i;return s.default(e)&&(A(),"A"===o.getNodeName()?(n=(t=o.elems[0]).parentElement)&&(0,r.default)(i=s.EXTRA_TAG).call(i,n.nodeName)?n.innerHTML=t.innerHTML:e.cmd.do("insertHTML",""+t.innerHTML+""):(i=s.getParentNodeA(o).innerHTML,e.cmd.do("insertHTML",""+i+""))),!0}}]}],setLinkValue:function(e,o){var r="",a="";"text"===o&&(r="#"+f,a=t),"link"===o&&(r="#"+i,a=n),(0,l.default)(e).call(e,r).elems[0].value=a}}}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));function a(e,t){for(var n=e,o=e;n.textContent!==t&&"P"!==(null==(n=(o=n).parentNode?null==n?void 0:n.parentNode:n)?void 0:n.nodeName););return o}function l(e,t){var n,o=e.nodeName,i="";return 3===e.nodeType||/^(h|H)[1-6]$/.test(o)?t:(1===e.nodeType&&((n=e.getAttribute("style"))&&(i=i+' style="'+n+'"'),(n=e.getAttribute("face"))&&(i=i+' face="'+n+'"'),n=e.getAttribute("color"))&&(i=i+' color="'+n+'"'),"<"+(o=o.toLowerCase())+i+">"+t+"")}function u(e,t,n,o){for(var i,r=null==(i=t.textContent)?void 0:i.substring(n,o),a=t,u="";r=u=l(a,null!=r?r:""),(a=null==a?void 0:a.parentElement)&&a.textContent!==e;);return u}function c(e,t){return(0,r.default)(e).call(e,(function(e){t=l(e,t)})),t}(0,i.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=a,t.makeHtmlString=l,t.createPartHtml=u,t.insertHtml=function(e,t){var n=e.anchorNode,o=e.focusNode,i=e.anchorOffset,r=(e=e.focusOffset,null!=(r=t.textContent)?r:""),s=(t=(e=>{for(var t,n=null!=(t=e.textContent)?t:"",o=[];(null==e?void 0:e.textContent)===n;)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&o.push(e),e=e.childNodes[0];return o})(t),""),d="",f="",p=n,h=o,m=n;if(null!=n&&n.isEqualNode(null!=o?o:null))return c(t,u(r,n,i,e));for(n&&(s=u(r,n,null!=i?i:0)),o&&(f=u(r,o,0,e)),n&&(p=a(n,r)),o&&(h=a(o,r)),m=null!=(i=null==p?void 0:p.nextSibling)?i:n;null==m||!m.isEqualNode(null!=h?h:null);){"#text"===(null==m?void 0:m.nodeName)?d+=null==m?void 0:m.textContent:(A=null==(A=null==(A=null==m?void 0:m.firstChild)?void 0:A.parentElement)?void 0:A.innerHTML,m&&(d+=l(m,null!=A?A:"")));var A,v=null!=(A=null==m?void 0:m.nextSibling)?A:m;if(v===m)break;m=v}return c(t,""+s+d+f)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(325));t.default=function(e){o.default(e)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(3))),l=o.__importDefault(n(39)),u=n(96);function c(e){var t;return{showLinkTooltip:function(n){var o=[{$elem:a.default(""+e.i18next.t("menus.panelMenus.link.查看链接")+""),onClick:function(e,t){return t=t.attr("href"),window.open(t,"_target"),!0}},{$elem:a.default(""+e.i18next.t("menus.panelMenus.link.取消链接")+""),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n,o=t.childNodes();return"IMG"===(null==o?void 0:o.getNodeName())?(o=null==(o=null==(o=e.selection.getSelectionContainerElem())?void 0:o.children())?void 0:o.elems[0].children[0],e.cmd.do("insertHTML","")):(t=(o=t.elems[0]).innerHTML,(o=o.parentElement)&&(0,r.default)(n=u.EXTRA_TAG).call(n,o.nodeName)?o.innerHTML=t:e.cmd.do("insertHTML",""+t+"")),!0}}];(t=new l.default(e,n,o)).create()},hideLinkTooltip:function(){t&&(t.remove(),t=null)}}}t.default=function(e){var t=(n=c(e)).showLinkTooltip,n=n.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3));o=r.default,i.__extends(l,o),l.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},n=l;function l(e){var t=a.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3));o=r.default,i.__extends(l,o),l.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},n=l;function l(e){var t=a.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3));o=r.default,i.__extends(l,o),l.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},n=l;function l(e){var t=a.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(24)),a=i.__importDefault(n(3)),l=i.__importDefault(n(330));o=r.default,i.__extends(u,o),u.prototype.command=function(e){var t,n,o=this.editor,i=o.selection.isSelectionEmpty(),r=null==(r=o.selection.getSelectionContainerElem())?void 0:r.elems[0];null!=r&&(n="p"!==(null==r?void 0:r.nodeName.toLowerCase()),t=(null==r?void 0:r.getAttribute("face"))===e,i&&(n&&!t&&(n=o.selection.getSelectionRangeTopNodes(),o.selection.createRangeByElem(n[0]),o.selection.moveCursor(n[0].elems[0])),o.selection.setRangeToElem(r),o.selection.createEmptyRange()),o.cmd.do("fontName",e),i)&&(o.selection.collapseRange(),o.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=a.default('
      \n \n
      '),i={width:100,title:"设置字体",type:"list",list:new l.default(e.config.fontNames).getItemList(),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e){var t=this;this.itemList=[],(0,r.default)(e).call(e,(function(e){var n="string"==typeof e?e:e.value;e="string"==typeof e?e:e.name;t.itemList.push({$elem:a.default("

      "+e+"

      "),value:e})}))}l.prototype.getItemList=function(){return this.itemList},t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(24)),a=i.__importDefault(n(3)),l=i.__importDefault(n(332));o=r.default,i.__extends(u,o),u.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty();null!=(null==(t=n.selection.getSelectionContainerElem())?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),o)&&(n.selection.collapseRange(),n.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=a.default('
      \n \n
      '),i={width:160,title:"设置字号",type:"list",list:new l.default(e.config.fontSizes).getItemList(),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));function i(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:o.default('

      '+n.name+"

      "),value:n.value})}}i.prototype.getItemList=function(){return this.itemList},t.default=i},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=i(n(27)),u=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3))),c=["LI"],s=["BLOCKQUOTE"];o=r.default,i.__extends(d,o),d.prototype.command=function(e){var t=this.editor,n=t.selection,o=n.getSelectionContainerElem();n.saveRange(),t=t.selection.getSelectionRangeTopNodes();if(null!=o&&o.length)if(this.isSpecialNode(o,t[0])||this.isSpecialTopNode(t[0])){if(o=this.getSpecialNodeUntilTop(o,t[0]),null==o)return;u.default(o).css("text-align",e)}else(0,a.default)(t).call(t,(function(t){t.css("text-align",e)}));n.restoreSelection()},d.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],o=t.elems[0];null!=n;){if(-1!==(0,l.default)(c).call(c,null==n?void 0:n.nodeName))return n;if(n.parentNode===o)return n;n=n.parentNode}return n},d.prototype.isSpecialNode=function(e,t){return e=this.getSpecialNodeUntilTop(e,t),null!=e&&-1!==(0,l.default)(c).call(c,e.nodeName)},d.prototype.isSpecialTopNode=function(e){return null!=e&&-1!==(0,l.default)(s).call(s,null==(e=e.elems[0])?void 0:e.nodeName)},d.prototype.tryChangeActive=function(){},n=d;function d(e){var t=this,n=u.default('
      '),i={width:100,title:"对齐方式",type:"list",list:[{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.靠左")+"\n

      "),value:"left"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.居中")+"\n

      "),value:"center"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.靠右")+"\n

      "),value:"right"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.两端")+"\n

      "),value:"justify"}],clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=i.__importDefault(n(23)),i.__importDefault(n(335))),c=i.__importDefault(n(336)),s=n(7);o=r.default,i.__extends(d,o),d.prototype.clickHandler=function(){var e,t,n,o=this.editor,i=o.selection.isSelectionEmpty(),r=o.selection.getSelectionRangeTopNodes(),u=r[r.length-1];if("BLOCKQUOTE"!==this.getTopNodeName())return t=c.default(r),o.$textElem.equal(u)?(n=null==(n=o.selection.getSelectionContainerElem())?void 0:n.elems[0],o.selection.createRangeByElems(n.children[0],n.children[0]),r=o.selection.getSelectionRangeTopNodes(),t=c.default(r),u.append(t)):t.insertAfter(u),this.delSelectNode(r),null==(r=null==(n=t.childNodes())?void 0:n.last().getNode())?void 0:(r.textContent?o.selection.moveCursor(r):o.selection.moveCursor(r,0),this.tryChangeActive(),void l.default(s.EMPTY_P).insertAfter(t));r=(n=l.default(u.childNodes())).length,e=u,(0,a.default)(n).call(n,(function(t){t=l.default(t),t.insertAfter(e),e=t})),u.remove(),o.selection.moveCursor(n.elems[r-1]),this.tryChangeActive(),i&&(o.selection.collapseRange(),o.selection.restoreSelection())},d.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null==(e=this.editor.selection.getSelectionRangeTopNodes()[0])?void 0:e.getNodeName())?this.active():this.unActive()},d.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},d.prototype.delSelectNode=function(e){(0,a.default)(e).call(e,(function(e){e.remove()}))},n=d;function d(e){var t=l.default('
      \n \n
      ');t=o.call(this,t,e)||this;return u.default(e),t}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(7),r=o.__importDefault(n(3));t.default=function(e){e.txt.eventHooks.enterDownEvents.push((function(t){var n,o=e.selection.getSelectionContainerElem(),a=e.selection.getSelectionRangeTopNodes()[0];"BLOCKQUOTE"===(null==a?void 0:a.getNodeName())&&("BLOCKQUOTE"===o.getNodeName()&&(n=null==(n=o.childNodes())?void 0:n.getNode(),e.selection.moveCursor(n)),""===o.text()&&(t.preventDefault(),o.remove(),(n=r.default(i.EMPTY_P)).insertAfter(a),e.selection.moveCursor(n.getNode(),0)),""===a.text())&&a.remove()}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e){var t=a.default("
      ");return(0,r.default)(e).call(e,(function(e){t.append(e.clone(!0))})),t}},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(26)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3))),u=n(6);o=r.default,i.__extends(c,o),c.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null==(i=n.selection.getSelectionContainerElem())?void 0:i.elems[0];null!=i&&(t="p"!==(null==i?void 0:i.nodeName.toLowerCase()),i=null==i?void 0:i.style.backgroundColor,i=u.hexToRgb(e)===i,o&&(t&&!i&&(t=n.selection.getSelectionRangeTopNodes(),n.selection.createRangeByElem(t[0]),n.selection.moveCursor(t[0].elems[0])),n.selection.createEmptyRange()),n.cmd.do("backColor",e),o)&&(n.selection.collapseRange(),n.selection.restoreSelection())},c.prototype.tryChangeActive=function(){},n=c;function c(e){var t=this,n=l.default('
      \n \n
      '),i={width:120,title:"背景颜色",type:"inline-block",list:(0,a.default)(i=e.config.colors).call(i,(function(e){return{$elem:l.default(''),value:e}})),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(26)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3)));o=r.default,i.__extends(u,o),u.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null==(i=n.selection.getSelectionContainerElem())?void 0:i.elems[0];null!=i&&(t=n.selection.getSelectionText(),"A"===i.nodeName&&i.textContent===t&&(t=l.default("").getNode(),i.appendChild(t)),n.cmd.do("foreColor",e),o)&&(n.selection.collapseRange(),n.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=l.default('
      \n \n
      '),i={width:120,title:"文字颜色",type:"inline-block",list:(0,a.default)(i=e.config.colors).call(i,(function(e){return{$elem:l.default(''),value:e}})),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(33)),l=i.__importDefault(n(38)),u=i.__importDefault(n(340)),c=i.__importDefault(n(346));o=l.default,i.__extends(s,o),s.prototype.clickHandler=function(){this.createPanel("")},s.prototype.createPanel=function(e){e=u.default(this.editor,e),new a.default(this,e).create()},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=r.default('
      \n \n
      ');t=o.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=o.__importDefault(n(3)),u=o.__importDefault(n(341)),c=n(7);t.default=function(e,t){var n=e.config,o=new u.default(e),i=a.getRandom("input-iframe"),s=a.getRandom("btn-ok"),d=a.getRandom("input-upload"),f=a.getRandom("btn-local-ok");return f=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'
      \n
      \n \n
      \n
      \n \n
      \n
      ',events:[{selector:"#"+f,type:"click",fn:function(){var e=l.default("#"+d).elems[0];if(!e)return!0;e.click()}},{selector:"#"+d,type:"change",fn:function(){var e=l.default("#"+d).elems[0];return e&&(e=e.files).length&&o.uploadVideo(e),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'
      \n "/>\n \n
      \n \n
      \n
      ",events:[{selector:"#"+s,type:"click",fn:function(){var t=l.default("#"+i);t=(0,r.default)(t=t.val()).call(t);if(t&&(t=>{if(!0===(t=e.config.onlineVideoCheck(t)))return 1;"string"==typeof t&&e.config.customAlert(t,"error")})(t))return t=t,e.cmd.do("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t),!0},bindEnter:!0}]}],s={width:300,height:0,tabs:[]},window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&s.tabs.push(f[0]),n.showLinkVideo&&s.tabs.push(f[1]),s}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(133)),a=o(n(57)),l=o(n(4)),u=o(n(27)),c=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),s=o.__importDefault(n(135)),d=o.__importDefault(n(136)),f=n(7),p=n(6);function h(e){this.editor=e}h.prototype.uploadVideo=function(e){var t,n,o,i,f,p,h,m,A,v,g,y,w,x,_,E,b,C=this;e.length&&(t=this.editor,n=t.config,o=function(e){return t.i18next.t("validate."+e)},E=n.uploadVideoServer,i=n.uploadVideoMaxSize/1024,f=n.uploadVideoName,p=n.uploadVideoParams,h=n.uploadVideoParamsWithUrl,m=n.uploadVideoHeaders,A=n.uploadVideoHooks,v=n.uploadVideoTimeout,g=n.withVideoCredentials,b=n.customUploadVideo,y=n.uploadVideoAccept,w=[],x=[],c.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(y instanceof Array?(0,r.default)(y).call(y,(function(e){return e===t.split(".")[t.split(".").length-1]}))?i

      '):o.cmd.do("insertHTML",''+f.EMPTY_P),(n=document.createElement("video")).onload=function(){n=null},n.onerror=function(){i.customAlert(t("插入视频错误"),"error","wangEditor: "+t("插入视频错误")+","+t("视频链接")+' "'+e+'",'+t("下载链接失败")),n=null},n.onabort=function(){return n=null},n.src=e)},t.default=h},function(e,t,n){e.exports=n(343)},function(e,t,n){n=n(344),e.exports=n},function(e,t,n){n(345),n=n(9),e.exports=n.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(347)),r=o.__importDefault(n(349));t.default=function(e){i.default(e),r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39)),a=o.__importDefault(n(348));function l(e){function t(t,n){return e.i18next.t((n=void 0===n?"":n)+t)}var n;return{showVideoTooltip:function(o){var l=[{$elem:i.default(""),onClick:function(e,t){return t.remove(),!0}},{$elem:i.default("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:i.default("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default(""+t("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:i.default(""+t("menus.justify.靠左")+""),onClick:function(e,t){return a.default(t,"left"),!0}},{$elem:i.default(""+t("menus.justify.居中")+""),onClick:function(e,t){return a.default(t,"center"),!0}},{$elem:i.default(""+t("menus.justify.靠右")+""),onClick:function(e,t){return a.default(t,"right"),!0}}];(n=new r.default(e,o,l)).create()},hideVideoTooltip:function(){n&&(n.remove(),n=null)}}}t.createShowHideFn=l,t.default=function(e){var t=(n=l(e)).showVideoTooltip,n=n.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e,t){(e=((e,t)=>{for(var n,o=e.elems[0];null!=o;){if((0,r.default)(t).call(t,null==o?void 0:o.nodeName))return o;if("BODY"===(null==(n=null==o?void 0:o.parentNode)?void 0:n.nodeName))return null;o=o.parentNode}return o})(e,["P"]))&&a.default(e).css("text-align",t)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(6);t.default=function(e){var t,n;o.UA.isFirefox&&(t=e.txt,n=e.selection,t.eventHooks.keydownEvents.push((function(t){var o=n.getSelectionContainerElem();o&&(o=(o=o.getNodeTop(e)).length&&o.prev().length?o.prev():null)&&o.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&o.remove()})))}},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(26)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),n(7)),u=i.__importDefault(n(3)),c=i.__importDefault(n(33)),s=(r=i.__importDefault(n(38)),i.__importDefault(n(351))),d=i.__importDefault(n(364));o=r.default,i.__extends(f,o),f.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},f.prototype.createPanel=function(){var e=this.imgPanelConfig;e=new c.default(this,e);this.setPanel(e),e.create()},f.prototype.tryChangeActive=function(){},n=f;function f(e){var t,n=this,i=u.default('
      '),r=d.default(e);return r.onlyUploadConf&&(i=r.onlyUploadConf.$elem,(0,a.default)(t=r.onlyUploadConf.events).call(t,(function(e){var t=e.type,n=e.fn||l.EMPTY_FN;i.on(t,(function(e){e.stopPropagation(),n(e)}))}))),(n=o.call(this,i,e)||this).imgPanelConfig=r,s.default(e),n}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(352)),r=o.__importDefault(n(353)),a=o.__importDefault(n(354)),l=o.__importDefault(n(362)),u=o.__importDefault(n(363));t.default=function(e){i.default(e),r.default(e),a.default(e),l.default(e),u.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(131),r=o.__importDefault(n(97));function a(e,t){var n,o,a;!(e=>{for(var t=(null==(e=e.clipboardData)?void 0:e.types)||[],n=0;n\n
      \n
      \n ')).hide(),n.append(o),o);function p(){(0,r.default)(d).call(d,".w-e-img-drag-mask").hide()}return s=d,(i=f).on("click",(function(e){e.stopPropagation()})),i.on("mousedown",".w-e-img-drag-rb",(function(e){var n,o,u,d,f,p,h,m,A,v,g;function y(){g.off("mousemove",w),g.off("mouseup",x)}function w(e){e.stopPropagation(),e.preventDefault(),(A=d+(e.clientX-n))/(v=f+(e.clientY-o))!=m&&(v=A/m),A=(0,a.default)(A.toFixed(2)),v=(0,a.default)(v.toFixed(2)),(0,r.default)(i).call(i,".w-e-img-drag-show-size").text(A.toFixed(2).replace(".00","")+"px * "+v.toFixed(2).replace(".00","")+"px"),c(i,A,v,p,h)}function x(){t.attr("width",A+""),t.attr("height",v+"");var e=t.getBoundingClientRect();c(i,A,v,e.left-u.left,e.top-u.top),y()}e.preventDefault(),t&&(n=e.clientX,o=e.clientY,u=s.getBoundingClientRect(),e=t.getBoundingClientRect(),d=e.width,f=e.height,p=e.left-u.left,h=e.top-u.top,m=d/f,A=d,v=f,(g=l.default(document)).on("mousemove",w),g.on("mouseup",x),g.on("mouseleave",y))})),l.default(document).on("click",p),e.beforeDestroy((function(){l.default(document).off("click",p)})),{showDrag:function(e){if(u.UA.isIE())return!1;var n,o,i,l;e&&(o=f,e=t=e,n=(n=d).getBoundingClientRect(),i=(e=e.getBoundingClientRect()).width.toFixed(2),l=e.height.toFixed(2),(0,r.default)(o).call(o,".w-e-img-drag-show-size").text(i+"px * "+l+"px"),c(o,(0,a.default)(i),(0,a.default)(l),e.left-n.left,e.top-n.top),o.show())},hideDrag:p}}t.createShowHideFn=s,t.default=function(e){var t=(n=s(e)).showDrag,n=n.hideDrag;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){e.exports=n(356)},function(e,t,n){n=n(357),e.exports=n},function(e,t,n){n(358),n=n(9),e.exports=n.parseFloat},function(e,t,n){var o=n(5);n=n(359);o({global:!0,forced:parseFloat!=n},{parseFloat:n})},function(e,t,n){var o=n(8),i=n(90).trim,r=(n=n(68),o.parseFloat);o=1/r(n+"-0")!=-1/0;e.exports=o?function(e){e=i(String(e));var t=r(e);return 0===t&&"-"==e.charAt(0)?-0:t}:r},function(e,t,n){var o=n(20),i=(n=n(361),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.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",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39));function a(e){function t(t,n){return e.i18next.t((n=void 0===n?"":n)+t)}var n;return{showImgTooltip:function(o){var a=[{$elem:i.default(""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:i.default("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];a.push({$elem:i.default(""+t("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),o.attr("data-href")&&a.push({$elem:i.default(""+t("查看链接")+""),onClick:function(e,t){return t=t.attr("data-href"),t&&(t=decodeURIComponent(t),window.open(t,"_target")),!0}}),(n=new r.default(e,o,a)).create()},hideImgTooltip:function(){n&&(n.remove(),n=null)}}}t.createShowHideFn=a,t.default=function(e){var t=(n=a(e)).showImgTooltip,n=n.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.imgDragBarMouseDownEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(e){var t=n.getSelectionContainerElem(),o=n.getRange();if(o&&t&&8===e.keyCode&&n.isSelectionEmpty()){var i=o.startContainer,r=(o=o.startOffset,null);if(0===o)for(;i!==t.elems[0]&&t.elems[0].contains(i)&&i.parentNode&&!r;){if(i.previousSibling){r=i.previousSibling;break}i=i.parentNode}else 3!==i.nodeType&&(r=i.childNodes[o-1]);if(r){for(var a=r;a.childNodes.length;)a=a.childNodes[a.childNodes.length-1];a instanceof HTMLElement&&"IMG"===a.tagName&&(a.remove(),e.preventDefault())}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=o(n(17)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(3))),u=n(6),c=o.__importDefault(n(97));t.default=function(e){function t(t,n){return e.i18next.t((n=void 0===n?"menus.panelMenus.image.":n)+t)}var n=e.config,o=new c.default(e),i=u.getRandom("up-trigger-id"),s=u.getRandom("up-file-id"),d=u.getRandom("input-link-url"),f=u.getRandom("input-link-url-alt"),p=u.getRandom("input-link-url-href"),h=u.getRandom("btn-link");function m(e,t,n){return'
      \n
      \n \n
      \n
      \n \n
      \n
      '}var A=1===n.uploadImgMaxLength?"":'multiple="multiple"',v=(0,r.default)(g=n.uploadImgAccept).call(g,(function(e){return"image/"+e})).join(","),g=[{selector:"#"+i,type:"click",fn:function(){var e=n.uploadImgFromMedia;return e&&"function"==typeof e?(e(),!0):!(e=l.default("#"+s).elems[0])||void e.click()}},{selector:"#"+s,type:"change",fn:function(){var e,t=l.default("#"+s).elems[0];return t&&(null!=(e=t.files)&&e.length&&o.uploadImg(e),t)&&(t.value=""),!0}}],y=[''];n.showLinkImgAlt&&y.push('\n '),n.showLinkImgHref&&y.push('\n '),y=[{title:t("上传图片"),tpl:m("w-e-up-img-container","w-e-icon-upload2",""),events:g},{title:t("网络图片"),tpl:"
      \n "+y.join("")+'\n
      \n \n
      \n
      ",events:[{selector:"#"+h,type:"click",fn:function(){var e,t,i=l.default("#"+d);i=(0,a.default)(i=i.val()).call(i);if(i&&(n.showLinkImgAlt&&(e=(0,a.default)(e=l.default("#"+f).val()).call(e)),n.showLinkImgHref&&(t=(0,a.default)(t=l.default("#"+p).val()).call(t)),(e=>{if(!0===(e=n.linkImgCheck(e)))return 1;"string"==typeof e&&n.customAlert(e,"error")})(i)))return o.insertImg(i,e,t),!0},bindEnter:!0}]}],h={width:300,height:0,tabs:[],onlyUploadConf:{$elem:l.default(m("w-e-menu","w-e-icon-image","图片")),events:g}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&h.tabs.push(y[0]),n.showLinkImg&&(h.tabs.push(y[1]),h.onlyUploadConf=void 0),h}},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=i.__importDefault(n(24)),i.__importDefault(n(366)));o=r.default,i.__extends(c,o),c.prototype.command=function(e){var t,n=this.editor,o=n.selection.getSelectionContainerElem();o&&n.$textElem.equal(o)?0<(t=n.selection.getSelectionRangeTopNodes()).length&&(0,a.default)(t).call(t,(function(t){u.default(l.default(t),e,n)})):o&&0\n \n '),i={width:130,title:"设置缩进",type:"list",list:[{$elem:l.default('

      \n \n '+e.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n

      "),value:"increase"},{$elem:l.default('

      \n \n '+e.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n

      "),value:"decrease"}],clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45)),a=o(n(17)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(367))),u=o.__importDefault(n(368)),c=/^(\d+)(\w+)$/,s=/^(\d+)%$/;function d(e){var t,n;e=e.config.indentation;if("string"==typeof e){if(c.test(e))return t=(n=(0,r.default)(n=(0,a.default)(e).call(e).match(c)).call(n,1,3))[0],n=n[1],{value:Number(t),unit:n};if(s.test(e))return{value:Number((0,a.default)(e).call(e).match(s)[1]),unit:"%"}}else if(void 0!==e.value&&e.unit)return e;return{value:2,unit:"em"}}t.default=function(e,t,n){e=e.getNodeTop(n),/^(P|H[0-9]*)$/.test(e.getNodeName())&&("increase"===t?l.default(e,d(n)):"decrease"===t&&u.default(e,d(n)))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""===n.style.paddingLeft?e.css("padding-left",t.value+t.unit):(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),n=Number(n)+t.value,e.css("padding-left",""+n+t.unit))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""!==n.style.paddingLeft&&(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),0<(n=Number(n)-t.value)?e.css("padding-left",""+n+t.unit):e.css("padding-left",""))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(38)),l=i.__importDefault(n(33)),u=i.__importDefault(n(370));o=a.default,i.__extends(c,o),c.prototype.createPanel=function(){var e=u.default(this.editor);new l.default(this,e).create()},c.prototype.clickHandler=function(){this.createPanel()},c.prototype.tryChangeActive=function(){},n=c;function c(e){var t=r.default('

      \n \n
      ');return o.call(this,t,e)||this}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=o(n(70)),l=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var u=n(2).__importDefault(n(3));t.default=function(e){var t=e.config.emotions;return{width:300,height:230,tabs:(0,r.default)(t).call(t,(function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"
      "+(o=[],(o="image"==(t=t).type?(o=(0,r.default)(n=t.content).call(n,(function(e){return"string"==typeof e?"":'\n ['+e.alt+']\n '})),(0,a.default)(o).call(o,(function(e){return""!==e}))):(0,r.default)(n=t.content).call(n,(function(e){return''+e+""}))).join("").replace(/ /g,"")+"
      "),events:[{selector:".eleImg",type:"click",fn:function(t){var n;t=u.default(t.target);return n="IMG"===t.getNodeName()?(0,l.default)(n=t.parent().html()).call(n):""+t.html()+"",e.cmd.do("insertHTML",n),!0}}]};var n,o}))}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(372)),l=i.__importDefault(n(374)),u=i.__importDefault(n(375)),c=i.__importDefault(n(376)),s=(i=i.__importDefault(n(377)),(n=o=t.ClassType||(t.ClassType={})).Wrap="WrapListHandle",n.Join="JoinListHandle",n.StartJoin="StartJoinListHandle",n.EndJoin="EndJoinListHandle",n.Other="OtherListHandle",{WrapListHandle:a.default,JoinListHandle:l.default,StartJoinListHandle:u.default,EndJoinListHandle:c.default,OtherListHandle:i.default});function d(e){this.handle=e,this.handle.exec()}t.createListHandle=function(e,t,n){if(e===o.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==o.Other?new s[e](t):new s[e](t,n)},d.prototype.getSelectionRangeElem=function(){return r.default(this.handle.selectionRangeElem.get())},t.default=d},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=n(58),n(47));o=r.ListHandle,i.__extends(c,o),c.prototype.exec=function(){var e,t=this.options,n=t.listType,o=t.listTarget,i=t.$selectionElem,r=t.$startElem,c=(t=t.$endElem,[]),s=null==i?void 0:i.getNodeName(),d=r.prior,f=t.prior;if((r.prior||t.prior)&&(null!=d&&d.prev().length||null!=f&&f.next().length)){for(var p=d;p.length;)c.push(p),p=null!=f&&f.equal(p)?l.default(void 0):p.next();r=d.prev();var h=f.next();if(s===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(o),(0,a.default)(c).call(c,(function(t){e.append(t.elems[0])}))),r.length&&h.length){for(var m=[];h.length;)m.push(h),h=h.next();var A,v=u.createElement(s);(0,a.default)(m).call(m,(function(e){v.append(e.elems[0])})),l.default(v).insertAfter(i),this.selectionRangeElem.set(e),(A=i.next()).length?u.insertBefore(i,e,A.elems[0]):i.parent().elems[0].append(e)}else r.length?(this.selectionRangeElem.set(e),(A=i.next()).length?u.insertBefore(i,e,A.elems[0]):i.parent().elems[0].append(e)):(this.selectionRangeElem.set(e),u.insertBefore(i,e,i.elems[0]))}else(0,a.default)(t=null==i?void 0:i.children()).call(t,(function(e){c.push(l.default(e))})),s===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(o),(0,a.default)(c).call(c,(function(t){e.appendChild(t.elems[0])}))),this.selectionRangeElem.set(e),u.insertBefore(i,e,i.elems[0]),i.remove()},n=c;function c(e){return o.call(this,e)||this}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));function a(){this._element=null}(0,i.default)(t,"__esModule",{value:!0}),a.prototype.set=function(e){var t,n;e instanceof DocumentFragment&&(n=[],(0,r.default)(t=e.childNodes).call(t,(function(e){n.push(e)})),e=n),this._element=e},a.prototype.get=function(){return this._element},a.prototype.clear=function(){this._element=null},t.default=a},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=n(58),n(47));o=r.ListHandle,i.__extends(c,o),c.prototype.exec=function(){var e,t=this.options,n=t.editor,o=t.listType,i=t.listTarget,r=t.$startElem,c=(t=t.$endElem,n.selection.getSelectionRangeTopNodes());n=null==r?void 0:r.getNodeName();if(n===(null==t?void 0:t.getNodeName()))if(2\n \n '),i={width:100,title:"设置行高",type:"list",list:new c.default(e,e.config.lineHeights).getItemList(),clickHandler:function(n){e.selection.saveRange(),t.command(n)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e,t){var n=this;this.itemList=[{$elem:a.default(""+e.i18next.t("默认")+""),value:""}],(0,r.default)(t).call(t,(function(e){n.itemList.push({$elem:a.default(""+e+""),value:e})}))}l.prototype.getItemList=function(){return this.itemList},t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3));n=i.__importDefault(n(23)),o=n.default,i.__extends(a,o),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.revoke(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},n=a;function a(e){var t=r.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3));n=i.__importDefault(n(23)),o=n.default,i.__extends(a,o),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.restore(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},n=a;function a(e){var t=r.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(38)),a=i.__importDefault(n(3)),l=i.__importDefault(n(383)),u=i.__importDefault(n(33)),c=i.__importDefault(n(392));o=r.default,i.__extends(s,o),s.prototype.clickHandler=function(){this.createPanel()},s.prototype.createPanel=function(){var e=l.default(this.editor);new u.default(this,e).create()},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=a.default('
      ');t=o.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(384)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=o.__importDefault(n(3)),u=(n(389),o.__importDefault(n(391)));function c(e){return 0\n
      \n '+t("创建")+'\n \n '+t(s+"行")+'\n \n '+(t(s+"列")+t(s+"的")+t(s+"表格"))+'\n
      \n
      \n \n
      \n ",events:[{selector:"#"+r,type:"click",fn:function(){var t=Number(l.default("#"+o).val()),r=Number(l.default("#"+i).val());return c(r)&&c(t)?(n.createAction(r,t),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}];return(r={width:330,height:0,tabs:[]}).tabs.push(s[0]),r}},function(e,t,n){e.exports=n(385)},function(e,t,n){n=n(386),e.exports=n},function(e,t,n){n(387),n=n(9),e.exports=n.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},function(e,t,n){var o=n(13),i=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var o=n(20),i=(n=n(390),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.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",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(7),r=o.__importDefault(n(3));function a(e){this.editor=e}a.prototype.createAction=function(e,t){var n=this.editor,o=r.default(n.selection.getSelectionContainerElem()),i=r.default(o.elems[0]).parentUntilEditor("UL",n);o=r.default(o.elems[0]).parentUntilEditor("OL",n);i||o||(i=this.createTableHtml(e,t),n.cmd.do("insertHTML",i))},a.prototype.createTableHtml=function(e,t){for(var n="",o="",r=0;r":"";n=n+""+o+""}return''+n+"
      "+i.EMPTY_P},t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(393)),i=n(400);t.default=function(e){o.default(e),i.bindEventKeyboardEvent(e),i.bindClickEvent(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39)),a=o.__importDefault(n(394)),l=o.__importDefault(n(399)),u=n(7);function c(e){var t;return{showTableTooltip:function(n){function o(t,n){return e.i18next.t((n=void 0===n?"menus.panelMenus.table.":n)+t)}var c=new l.default(e),f=[{$elem:i.default(""+o("删除表格")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u.EMPTY_P),!0}},{$elem:i.default(""+o("添加行")+""),onClick:function(e,t){var n,o;return!s(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(n=Number(c.getCurrentRowIndex(t.elems[0],n)),o=c.getTableHtml(t.elems[0]),o=d(t,o=c.getTableHtml(a.default.ProcessingRow(i.default(o),n).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o)),!0}},{$elem:i.default(""+o("删除行")+""),onClick:function(e,t){var n,o,r,l;return!s(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(n=Number(c.getCurrentRowIndex(t.elems[0],n)),o=c.getTableHtml(t.elems[0]),r=a.default.DeleteRow(i.default(o),n).elems[0].children[0].children.length,l="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),l=d(t,l=0===r?u.EMPTY_P:c.getTableHtml(a.default.DeleteRow(i.default(o),n).elems[0])),e.cmd.do("insertHTML",l)),!0}},{$elem:i.default(""+o("添加列")+""),onClick:function(e,t){var n,o;return s(e)||(n=i.default(e.selection.getSelectionStartElem()),n=c.getCurrentColIndex(n.elems[0]),o=c.getTableHtml(t.elems[0]),o=d(t,o=c.getTableHtml(a.default.ProcessingCol(i.default(o),n).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o)),!0}},{$elem:i.default(""+o("删除列")+""),onClick:function(e,t){var n,o,r;return s(e)||(o=i.default(e.selection.getSelectionStartElem()),o=c.getCurrentColIndex(o.elems[0]),n=c.getTableHtml(t.elems[0]),o=(n=a.default.DeleteCol(i.default(n),o)).elems[0].children[0].children[0].children.length,r="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),r=d(t,r=0===o?u.EMPTY_P:c.getTableHtml(n.elems[0])),e.cmd.do("insertHTML",r)),!0}},{$elem:i.default(""+o("设置表头")+""),onClick:function(e,t){var n,o;return!s(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(0!==(n=Number(c.getCurrentRowIndex(t.elems[0],n)))&&(n=0),o=c.getTableHtml(t.elems[0]),o=d(t,o=c.getTableHtml(a.default.setTheHeader(i.default(o),n,"th").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o)),!0}},{$elem:i.default(""+o("取消表头")+""),onClick:function(e,t){var n,o=i.default(e.selection.getSelectionStartElem());o=c.getRowNode(o.elems[0]);return o&&(0!==(o=Number(c.getCurrentRowIndex(t.elems[0],o)))&&(o=0),n=c.getTableHtml(t.elems[0]),n=d(t,n=c.getTableHtml(a.default.setTheHeader(i.default(n),o,"td").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n)),!0}}];(t=new r.default(e,n,f)).create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}function s(e){var t=e.selection.getSelectionStartElem();e=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==e?void 0:e.elems[0])}function d(e,t){return e=e.elems[0].nextSibling,e&&"
      "!==e.innerHTML||(t+=""+u.EMPTY_P),t}t.default=function(e){var t=(n=c(e)).showTableTooltip,n=n.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45)),a=o(n(91)),l=o(n(4)),u=o(n(138));(0,i.default)(t,"__esModule",{value:!0});var c=n(2).__importDefault(n(3));function s(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n{var o=[];for((0,l.default)(i=(0,u.default)(n[e].children)).call(i,(function(e){o.push(e)}));0!==n[e].children.length;)n[e].removeChild(n[e].children[0]);var i="TH"!==c.default(o[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,a.default)(o).call(o,t+1,0,i);for(var r=0;r{var o,i=[];for((0,l.default)(o=(0,u.default)(n[e].children)).call(o,(function(e){i.push(e)}));0!==n[e].children.length;)n[e].removeChild(n[e].children[0]);(0,a.default)(i).call(i,t,1);for(var r=0;r{var t=document.createElement(n);e=i[e];(0,l.default)(e=(0,u.default)(e.childNodes)).call(e,(function(e){t.appendChild(e)})),f.appendChild(t)})(p);return(0,a.default)(o).call(o,t,1,f),s(e,o),c.default(e.parentNode)}}},function(e,t,n){n=n(396),e.exports=n},function(e,t,n){n(50),n(397),n=n(9),e.exports=n.Array.from},function(e,t,n){var o=n(5),i=n(398);o({target:"Array",stat:!0,forced:!n(115)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){var o=n(40),i=n(31),r=n(114),a=n(112),l=n(35),u=n(69),c=n(113);e.exports=function(e){var t,n,s,d,f,p,h=i(e),m=(e="function"==typeof this?this:Array,arguments.length),A=1'+l.default(e).html()+""},t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var o=n(2).__importDefault(n(3));t.bindClickEvent=function(e){e.txt.eventHooks.tableClickEvents.push((function(t,n){var i;3<=n.detail&&(n=window.getSelection())&&(i=n.focusNode,n=n.anchorNode,n=o.default(null==n?void 0:n.parentElement),t.isContain(o.default(i))||(t="TD"===n.elems[0].tagName?n:n.parentUntilEditor("td",e))&&(null!=(i=e.selection.getRange())&&i.setEnd(t.elems[0],t.elems[0].childNodes.length),e.selection.restoreSelection()))}))},t.bindEventKeyboardEvent=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(t){e.selection.saveRange();var o,i=n.getSelectionContainerElem();i&&(o=(i=i.getNodeTop(e)).length&&i.prev().length?i.prev():null)&&"TABLE"===o.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode&&(!!(o=i.next()).length&&(e=>e.length&&"P"===(e=e.elems[0]).nodeName&&"
      "===e.innerHTML)(i)&&(i.remove(),e.selection.setRangeToElem(o.elems[0])),t.preventDefault())}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0,n(2)),i=o.__importDefault(n(38)),o.__importDefault(n(3))),l=n(6),u=o.__importDefault(n(402)),c=o.__importDefault(n(139)),s=o.__importDefault(n(33)),d=o.__importDefault(n(403));t.formatCodeHtml=function(e,t){var n,o;return t&&(t=function e(t){var n,o=t.match(//gm);if(!o||!o.length)return t;for(var i=(0,r.default)(n=l.deepClone(o)).call(n,(function(e){return(e=e.replace(/]+>/,"")).replace(/<\/span>/,"")})),a=0;a/g))&&(0,r.default)(o).call(o,(function(e){n=n.replace(e,e.replace(/<\/code>/g,"\n").replace(/
      /g,""))})),t=n,t=l.replaceSpecialSymbol(t)),t},f=i.default,o.__extends(p,f),p.prototype.insertLineCode=function(e){var t=this.editor;e=a.default(""+e+"");t.cmd.do("insertElem",e),t.selection.createRangeByElem(e,!1),t.selection.restoreSelection()},p.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},p.prototype.createPanel=function(e,t){e=u.default(this.editor,e,t),new s.default(this,e).create()},p.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()};var f;n=p;function p(e){var t=a.default('
      ');t=f.call(this,t,e)||this;return d.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=o.__importDefault(n(3)),u=o.__importDefault(n(139)),c=n(7);t.default=function(e,t,n){var o,i=a.getRandom("input-iframe"),s=a.getRandom("select"),d=a.getRandom("btn-ok");function f(t,n){var o;u.default(e)&&u.default(e)&&(o=null==(o=e.selection.getSelectionStartElem())?void 0:o.getNodeTop(e))&&(e.selection.createRangeByElem(o),e.selection.restoreSelection()),(null==(o=e.selection.getSelectionStartElem())?void 0:o.elems[0].innerHTML)&&e.cmd.do("insertHTML",c.EMPTY_P),n=n.replace(//g,">"),e.highlight&&(n=e.highlight.highlightAuto(n).value),e.cmd.do("insertHTML",'
      '+n+"
      "),t=e.selection.getSelectionStartElem(),n=null==t?void 0:t.getNodeTop(e),0===(null==n?void 0:n.getNextSibling().elems.length)&&l.default(c.EMPTY_P).insertAfter(n)}function p(t){return e.i18next.t(t)}return{width:500,height:0,tabs:[{title:p("menus.panelMenus.code.插入代码"),tpl:'
      \n \n \n
      \n \n
      \n
      ",events:[{selector:"#"+d,type:"click",fn:function(){var t=document.getElementById(i),n=l.default("#"+s).val();t=t.value;if(t)return!u.default(e)&&(f(n,t),!0)}}]}]}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(404)),r=o.__importDefault(n(405));t.default=function(e){i.default(e),r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39));function a(e){var t;return{showCodeTooltip:function(n){var o,a=[{$elem:i.default(""+(o="删除代码",e.i18next.t((a=void 0===a?"menus.panelMenus.code.":a)+o)+"")),onClick:function(e,t){return t.remove(),!0}}];(t=new r.default(e,n,a)).create()},hideCodeTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=(n=a(e)).showCodeTooltip,n=n.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(7),r=o.__importDefault(n(3));t.default=function(e){var t=e.$textElem,n=e.selection,o=e.txt.eventHooks.keydownEvents;o.push((function(e){var o;40===e.keyCode&&(e=n.getSelectionContainerElem(),o=null==(o=t.children())?void 0:o.last(),"XMP"===(null==e?void 0:e.elems[0].tagName))&&"PRE"===(null==o?void 0:o.elems[0].tagName)&&(e=r.default(i.EMPTY_P),t.append(e))})),o.push((function(o){e.selection.saveRange();var a,l=n.getSelectionContainerElem();l&&(a=null==(l=l.getNodeTop(e))?void 0:l.prev(),l=null==l?void 0:l.getNextSibling(),a.length)&&"PRE"===(null==a?void 0:a.getNodeName())&&0===l.length&&0===n.getCursorPos()&&8===o.keyCode&&(a=r.default(i.EMPTY_P),t.append(a))}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3)),l=i.__importDefault(n(407)),u=n(6),c=n(7);o=r.default,i.__extends(s,o),s.prototype.clickHandler=function(){var e,t,n=this.editor,o=n.selection.getRange();n=n.selection.getSelectionContainerElem();null!=n&&n.length&&(n=(e=a.default(n.elems[0])).parentUntil("TABLE",n.elems[0]),t=e.children(),"CODE"===e.getNodeName()||n&&"TABLE"===a.default(n.elems[0]).getNodeName()||(!t||0===t.length||"IMG"!==a.default(t.elems[0]).getNodeName()||null!=o&&o.collapsed)&&this.createSplitLine())},s.prototype.createSplitLine=function(){var e="
      "+c.EMPTY_P;u.UA.isFirefox&&(e="

      "),this.editor.cmd.do("insertHTML",e)},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=a.default('
      ');t=o.call(this,t,e)||this;return l.default(e),t}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(408));t.default=function(e){o.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39));function a(e){var t;return{showSplitLineTooltip:function(n){var o=[{$elem:i.default(""+e.i18next.t("menus.panelMenus.删除")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(t=new r.default(e,n,o)).create()},hideSplitLineTooltip:function(){t&&(t.remove(),t=null)}}}t.default=function(e){var t=(n=a(e)).showSplitLineTooltip,n=n.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=i.__importDefault(n(23)),n(98)),c=i.__importDefault(n(415)),s=i.__importDefault(n(140));o=r.default,i.__extends(d,o),d.prototype.clickHandler=function(){var e=this.editor;u.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},d.prototype.tryChangeActive=function(){u.isAllTodo(this.editor)?this.active():this.unActive()},d.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,(function(t){var n,o;"P"===(null==t?void 0:t.getNodeName())&&(o=null==(o=(n=s.default(t).getTodo()).children())?void 0:o.getNode(),n.insertAfter(t),e.selection.moveCursor(o),t.remove())})),this.tryChangeActive()},d.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,(function(t){var n=null==(n=null==(n=t.childNodes())?void 0:n.childNodes())?void 0:n.clone(!0),o=l.default("

      ");o.append(n),o.insertAfter(t),null!=(n=o.childNodes())&&n.get(0).remove(),e.selection.moveCursor(o.getNode()),t.remove()}))},n=d;function d(e){var t=l.default('
      \n \n
      ');t=o.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){e.exports=n(411)},function(e,t,n){n=n(412),e.exports=n},function(e,t,n){var o=n(413),i=Array.prototype;e.exports=function(e){var t=e.every;return e===i||e instanceof Array&&t===i.every?o:t}},function(e,t,n){n(414),n=n(15),e.exports=n("Array").every},function(e,t,n){var o=n(5),i=n(32).every,r=n(67);n=n(22),r=r("every"),n=n("every");o({target:"Array",proto:!0,forced:!r||!n},{every:function(e){return i(this,e,1")),v.insertAfter(n),g&&""!==(null==g?void 0:g.textContent)?t.moveCursor(A):("BR"!==(null==g?void 0:g.nodeName)&&a.default("
      ").insertAfter(m),t.moveCursor(A,1))))})),e.txt.eventHooks.deleteUpEvents.push((function(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&c.isTodo(t)&&""===t.text()&&(a.default(s.EMPTY_P).insertAfter(t),t.remove())})),e.txt.eventHooks.deleteDownEvents.push((function(t){var n,o,i,u,c,d,f,p;l.isAllTodo(e)&&(o=null==(o=(n=(p=e.selection).getSelectionRangeTopNodes()[0]).childNodes())?void 0:o.getNode(),i=a.default("

      "),u=i.getNode(),d=null==(d=window.getSelection())?void 0:d.anchorNode,c=p.getCursorPos(),d=d.previousSibling,""===n.text()?(t.preventDefault(),(f=a.default(s.EMPTY_P)).insertAfter(n),n.remove(),p.moveCursor(f.getNode(),0)):"SPAN"===(null==d?void 0:d.nodeName)&&"INPUT"===d.childNodes[0].nodeName&&0===c&&(t.preventDefault(),null!=o&&(0,r.default)(p=o.childNodes).call(p,(function(e,t){0!==t&&u.appendChild(e.cloneNode(!0))})),i.insertAfter(n),n.remove()))})),e.txt.eventHooks.clickEvents.push((function(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var o=n(2),i=o.__importDefault(n(3)),r=n(6),a=n(7),l=o.__importDefault(n(130)),u="1px solid #c9d8db",c="#FFF",s="1px solid #EEE";t.default=function(e){var t=e.toolbarSelector,n=(t=i.default(t),e.textSelector),o=e.config.height,d=e.i18next,f=i.default("
      "),p=i.default("
      "),h=null,m=(t=(null==n?(m=t.children(),t.append(f).append(p),f.css("background-color",c).css("border",u).css("border-bottom",s),p.css("border",u).css("border-top","none").css("height",o+"px")):(t.append(f),h=i.default(n).children(),i.default(n).append(p),m=p.children()),(o=i.default("
      ")).attr("contenteditable","true").css("width","100%").css("height","100%"),e.config.placeholder),d=((n=t!==l.default.placeholder?i.default("
      "+t+"
      "):i.default("
      "+d.t(t)+"
      ")).addClass("placeholder"),m&&m.length?(o.append(m),n.hide()):o.append(i.default(a.EMPTY_P)),h&&h.length&&(o.append(h),n.hide()),p.append(o),p.append(n),f.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),p.addClass("w-e-text-container"),p.css("z-index",e.zIndex.get()),o.addClass("w-e-text"),r.getRandom("toolbar-elem")),t=(f.attr("id",d),r.getRandom("text-elem")),o.attr("id",t),p.getBoundingClientRect().height);m!==o.getBoundingClientRect().height&&o.css("min-height",m+"px"),e.$toolbarElem=f,e.$textContainerElem=p,e.$textElem=o,e.toolbarElemId=d,e.textElemId=t},t.selectorValidator=function(e){var t="data-we-id",n=/^wangEditor-\d+$/,o=e.textSelector,r=e.toolbarSelector,a={bar:i.default("
      "),text:i.default("
      ")};if(null==r)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(a.bar=i.default(r),!a.bar.elems.length)throw new Error("无效的节点选择器:"+r);if(n.test(a.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(o){if(a.text=i.default(o),!a.text.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(a.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}a.bar.attr(t,e.id),a.text.attr(t,e.id),e.beforeDestroy((function(){a.bar.removeAttr(t),a.text.removeAttr(t)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),i=n(7);t.default=function e(t,n){var r=t.$textElem,a=r.children();if(a&&a.length){if(a=a.last(),n){n=a.html().toLowerCase();var l=a.getNodeName();if("
      "!==n&&"
      "!==n||"P"!==l)return r.append(o.default(i.EMPTY_P)),void e(t)}t.selection.createRangeByElem(a,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}else r.append(o.default(i.EMPTY_P)),e(t)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){(t=e).txt.eventHooks.changeEvents.push((function(){var e,n=t.config.onchange;n&&(e=t.txt.html()||"",t.isFocus=!0,n(e)),t.txt.togglePlaceholder()}));var t,n,o=e;function i(e){var t=e.target,n=(t=a.default(t),o.$textElem),i=o.$toolbarElem;n=n.isContain(t),t=i.isContain(t),i=i.elems[0]==e.target;n?(o.isFocus||l(o),o.isFocus=!0):t&&!i||!o.isFocus||(n=(e=o).config.onblur,t=e.txt.html()||"",(0,r.default)(e=e.txt.eventHooks.onBlurEvents).call(e,(function(e){return e()})),n(t),o.isFocus=!1)}o.isFocus=!1,document.activeElement===o.$textElem.elems[0]&&o.config.focus&&(l(o),o.isFocus=!0),a.default(document).on("click",i),o.beforeDestroy((function(){a.default(document).off("click",i)})),(n=e).$textElem.on("compositionstart",(function(){n.isComposing=!0,n.txt.togglePlaceholder()})).on("compositionend",(function(){n.isComposing=!1,n.txt.togglePlaceholder()}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=(n=e.config).lang,n=n.languages;if(null!=e.i18next)try{e.i18next.init({ns:"wangEditor",lng:t,defaultNS:"wangEditor",resources:n})}catch(e){throw new Error("i18next:"+e)}else e.i18next={t:function(e){return e=e.split("."),e[e.length-1]}}}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var a=n(2).__importDefault(n(3)),l=(n(421),"w-e-icon-fullscreen"),u="w-e-icon-fullscreen_exit",c="w-e-full-screen-editor";t.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,o=e.$toolbarElem,i=(0,r.default)(o).call(o,"i."+l);e=e.config,i.removeClass(l),i.addClass(u),t.addClass(c),t.css("z-index",e.zIndexFullScreen),i=o.getBoundingClientRect();n.css("height","calc(100% - "+i.height+"px)")},t.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,o=e.$toolbarElem;o=(0,r.default)(o).call(o,"i."+u),e=e.config;o.removeClass(u),o.addClass(l),t.removeClass(c),t.css("z-index","auto"),n.css("height",e.height+"px")},t.default=function(e){var n,o;e.textSelector||e.config.showFullScreen&&(n=e.$toolbarElem,(o=a.default('
      \n \n
      ')).on("click",(function(n){(0,r.default)(n=a.default(n.currentTarget)).call(n,"i").hasClass(l)?(o.attr("data-title","取消全屏"),t.setFullScreen(e)):(o.attr("data-title","全屏"),t.setUnFullScreen(e))})),n.append(o))}},function(e,t,n){var o=n(20),i=(n=n(422),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.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",""]),e.exports=t},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){e=e.isEnable?e.$textElem:(0,r.default)(e=e.$textContainerElem).call(e,".w-e-content-mantle"),t=(0,r.default)(e).call(e,"[id='"+t+"']").getOffsetData().top,e.scrollTop(t)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(129)),i={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1};function r(){this.tier=i,this.baseZIndex=o.default.zIndex}r.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},r.prototype.init=function(e){this.baseZIndex==o.default.zIndex&&(this.baseZIndex=e.config.zIndex)},t.default=r},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(70)),a=o(n(4)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),i=o.__importDefault(n(426)),n(6)),u=n(7);c=i.default,o.__extends(s,c),s.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},s.prototype.emit=function(){var e;(0,a.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,(function(e){return e()}))},s.prototype.observe=function(){var e=this,t=(c.prototype.observe.call(this,this.editor.$textElem.elems[0]),this.editor.config.onchangeTimeout);this.asyncSave=l.debounce((function(){e.save()}),t),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){e.asyncSave()}))};var c;n=s;function s(e){var t=c.call(this,(function(n,o){var i,a;if(i=n,a=o.target,n=(0,r.default)(i).call(i,(function(e){var t=e.type;return"attributes"!=t||"attributes"==t&&("contenteditable"==e.attributeName||e.target!=a)})),(o=t.data).push.apply(o,n),e.isCompatibleMode)t.asyncSave();else if(!e.isComposing)return t.asyncSave()}))||this;return t.editor=e,t.data=[],t.asyncSave=u.EMPTY_FN,t}t.default=n},function(e,t,n){function o(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}n=n(0)(n(1)),(0,n.default)(t,"__esModule",{value:!0}),(0,n.default)(o.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),o.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},o.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},o.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},t.default=o},function(e,t,n){var o=n(0)(n(1)),i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(428)),a=i.__importDefault(n(435)),l=i.__importDefault(n(436));function u(e){this.editor=e,this.content=new r.default(e),this.scroll=new a.default(e),this.range=new l.default(e)}(0,o.default)(u.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),u.prototype.observe=function(){this.content.observe(),this.scroll.observe(),this.editor.isCompatibleMode||this.range.observe()},u.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),this.editor.isCompatibleMode||this.range.save())},u.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},u.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(429)),r=o.__importDefault(n(433));function a(e){this.editor=e}a.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new r.default(this.editor):this.cache=new i.default(this.editor),this.cache.observe()},a.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},a.prototype.revoke=function(){var e;return null==(e=this.cache)?void 0:e.revoke()},a.prototype.restore=function(){var e;return null==(e=this.cache)?void 0:e.restore()},t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(99)),a=i.__importDefault(n(431)),l=n(432);o=r.default,i.__extends(u,o),u.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},u.prototype.compile=function(e){return this.save(a.default(e)),this},u.prototype.revoke=function(){return o.prototype.revoke.call(this,(function(e){l.revoke(e)}))},u.prototype.restore=function(){return o.prototype.restore.call(this,(function(e){l.restore(e)}))},n=u;function u(e){var t=o.call(this,e.config.historyMaxSize)||this;return t.editor=e,t}t.default=n},function(e,t,n){function o(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}n=n(0)(n(1)),(0,n.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0,o.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,n.default)(o.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),o.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},o.prototype.outstack=function(){return this.data.shift()},o.prototype.clear=function(){return this.data.length=0,this},n=o,t.CeilStack=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(27)),l=((0,i.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0,n(6));function u(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function c(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function s(e){var t={};return e.addedNodes.length&&(t.add=l.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=l.toArray(e.removedNodes)),t}function d(e){return e=e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target},e}t.compileType=u,t.compileValue=c,t.complieNodes=s,t.compliePosition=d;var f=["UL","OL","H1","H2","H3","H4","H5","H6"];function p(e,t){for(var n=0,o=t.length-1;0this.max;)this.data.shift();return this.point=this.size-1,this},a.prototype.current=function(){return this.data[this.point]},a.prototype.prev=function(){if(this.isRe||(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},a.prototype.next=function(){if(this.isRe||(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},o=a;function a(){this.data=[],this.max=0,this.point=0,this.isRe=!1}t.TailChain=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2);n=i.__importDefault(n(99)),o=n.default,i.__extends(r,o),r.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",(function(){e.last=e.target.scrollTop})),this.resetMaxSize(this.editor.config.historyMaxSize)},r.prototype.save=function(){return o.prototype.save.call(this,[this.last,this.target.scrollTop]),this},r.prototype.revoke=function(){var e=this;return o.prototype.revoke.call(this,(function(t){e.target.scrollTop=t[0]}))},r.prototype.restore=function(){var e=this;return o.prototype.restore.call(this,(function(t){e.target.scrollTop=t[1]}))},n=r;function r(e){var t=o.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.last=0,t.target=e.$textElem.elems[0],t}t.default=n},function(e,t,n){var o=n(0)(n(1)),i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(99)),a=i.__importDefault(n(3)),l=n(6);function u(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}c=r.default,i.__extends(s,c),(0,o.default)(s.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),s.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;e.root!==t.commonAncestorContainer&&!e.root.contains(t.commonAncestorContainer)||e.editor.isComposing||e.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a.default(document).on("selectionchange",t),this.editor.beforeDestroy((function(){a.default(document).off("selectionchange",t)})),e.editor.$textElem.on("keydown",(function(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()}))},s.prototype.save=function(){var e=u(this.rangeHandle);return c.prototype.save.call(this,[this.lastRange,e]),this.lastRange=e,this},s.prototype.set=function(e){try{var t;if(e)return(t=this.rangeHandle).setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}catch(e){}return!1},s.prototype.revoke=function(){var e=this;return c.prototype.revoke.call(this,(function(t){e.set(t[0])}))},s.prototype.restore=function(){var e=this;return c.prototype.restore.call(this,(function(t){e.set(t[1])}))};var c;n=s;function s(e){var t=c.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.lastRange=u(document.createRange()),t.root=e.$textElem.elems[0],t.updateLastRange=l.debounce((function(){t.lastRange=u(t.rangeHandle)}),e.config.onchangeTimeout),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));n(438),t.default=function(e){var t,n,o=!1;return e.txt.eventHooks.changeEvents.push((function(){o&&(0,r.default)(t).call(t,".w-e-content-preview").html(e.$textElem.html())})),{disable:function(){var i,r;o||(e.$textElem.hide(),r=e.zIndex.get("textContainer"),i=e.txt.html(),t=a.default('
      \n
      '+i+"
      \n
      "),e.$textContainerElem.append(t),r=e.zIndex.get("menu"),n=a.default('
      '),e.$toolbarElem.append(n),o=!0,e.isEnable=!1)},enable:function(){o&&(t.remove(),n.remove(),e.$textElem.show(),o=!1,e.isEnable=!0)}}}},function(e,t,n){var o=n(20),i=(n=n(439),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\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",""]),e.exports=t},function(e,t,n){function o(e){function t(){document.activeElement===e.$textElem.elems[0]&&n.emit()}var n=this;this.editor=e,window.document.addEventListener("selectionchange",t),this.editor.beforeDestroy((function(){window.document.removeEventListener("selectionchange",t)}))}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),o.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;t&&((e=this.editor.selection).saveRange(),e.isSelectionEmpty()||t({text:e.getSelectionText(),html:null==(t=e.getSelectionContainerElem())?void 0:t.elems[0].innerHTML,selection:e}))},t.default=o},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(128)),a=o(n(94)),l=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2).__importDefault(n(87)),c=n(6);t.registerPlugin=function(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e],n[e]=t},t.default=function(e){var t=(0,r.default)({},c.deepClone(u.default.globalPluginsFunctionList),c.deepClone(e.pluginsFunctionList));t=(0,a.default)(t);(0,l.default)(t).call(t,(function(t){t[0];t=t[1];var n=t.intention;t=t.config;n(e,t)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}],n={},e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(o,i,function(e){return t[e]}.bind(null,i));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=141).default;function e(o){var i;return(n[o]||(i=n[o]={i:o,l:!1,exports:{}},t[o].call(i.exports,i,i.exports,e),i.l=!0,i)).exports}var t,n},e.exports=o()},9346:function(e,t,n){},a069:function(e,t,n){n("99af"),n("d81d"),n("e9f5"),n("ab43"),n("d3b7");var o={data:function(){return{monacoInstance:null,content:""}},props:{value:{type:String,default:""}},watch:{value:function(e){}},mounted:function(){this.content=this.value},methods:{changeContent:function(){this.$emit("change",this.content)},setValue:function(e){},seteditor:function(){var e=this;this.monacoInstance=monaco.editor.create(this.$refs.code_box,{value:this.value,theme:"vs",language:"html",readOnly:!1}),this.monacoInstance.onDidChangeModelContent((function(){e.$emit("change",e.monacoInstance.getValue())}))}},beforeDestroy:function(){this.monacoInstance.dispose(),this.monacoInstance=null}},i=(n("0095"),n("2877")),r=(o=Object(i.a)(o,(function(){var e=this,t=e._self._c;return t("div",{ref:"code_box",staticClass:"text"},[t("el-input",{attrs:{type:"textarea",placeholder:""},on:{change:e.changeContent},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)}),[],!1,null,"037ad986",null).exports,n("6fad")),a=n.n(r),l=n("d4ec"),u=n("bee2");function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}var d=n("53ca");function f(e,t){if(t&&("object"==Object(d.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(t=e,void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(e,t,n){return t=c(t),f(e,s()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}var A=new(n("a026").default),v=(a.a.$,a.a.BtnMenu),g=(a.a.DropListMenu,a.a.PanelMenu,a.a.DropList,a.a.Panel,a.a.Tooltip,(()=>{function e(t){return Object(l.a)(this,e),p(this,e,[a.a.$('
      \n
      \n
      '),t])}return m(e,v),Object(u.a)(e,[{key:"clickHandler",value:function(){A.$emit("Video")}},{key:"tryChangeActive",value:function(){this.active()}}])})()),y=(a.a.$,a.a.BtnMenu),w=(a.a.DropListMenu,a.a.PanelMenu,a.a.DropList,a.a.Panel,a.a.Tooltip,(()=>{function e(t){return Object(l.a)(this,e),p(this,e,[a.a.$('
      \n
      HTML
      \n
      '),t])}return m(e,y),Object(u.a)(e,[{key:"clickHandler",value:function(){A.$emit("Html")}},{key:"tryChangeActive",value:function(){this.active()}}])})()),x=(r=n("b0e7"),n("b0c0"),n("0e5c")),_=n("c4c8"),E=n("d708"),b=n("c276"),C={name:"vide11o",data:function(){return{fileUrl:E.a.apiBaseURL+"/file/upload",upload:{videoIng:!1},progress:0,videoLink:"",formValidate:{video_link:""},upload_type:"",uploadData:{},header:{}}},created:function(){this.uploadType(),this.getToken()},methods:{videoSaveToUrl:function(e){var t=this;return Object(x.a)({file:e,pieceSize:3,success:function(e){t.formValidate.video_link=e.file_path,t.progress=100},error:function(e){t.$message.error(e.msg)},uploading:function(e,n){t.videoIng=!0,e=Math.floor(e/n*100),t.progress=e}}),!1},delVideo:function(){this.$set(this.formValidate,"video_link","")},uploadType:function(){var e=this;Object(_.G)().then((function(t){e.upload_type=t.data.upload_type}))},handleSuccess:function(e,t,n){200===e.status?(this.formValidate.video_link=e.data.src,this.$message.success(e.msg)):this.$message.error(e.msg)},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(b.c)("token")},beforeUpload:function(){var e=this;return this.uploadData={},new Promise((function(t){e.$nextTick((function(){t(!0)}))}))},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this;if("video/mp4"!==e.target.files[0].type)return t.$message.error("只能上传mp4文件");var n={key:e.target.files[0].name,contentType:e.target.files[0].type};Object(_.r)(n).then((function(n){t.$videoCloud.videoUpload({type:n.data.type,evfile:e,res:n,uploading:function(e,n){t.upload.videoIng=e}}).then((function(e){t.formValidate.video_link=e.url,t.$message.success("视频上传成功")})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.$emit("getVideo",this.formValidate.video_link)}}};n("03ce"),C=Object(i.a)(C,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mt20 ml20"},[t("el-input",{staticClass:"perW35",attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),t("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),"1"!==e.upload_type||e.videoLink?t("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]):e._e(),"1"!==e.upload_type||e.videoLink?e._e():t("el-upload",{staticClass:"ml10",staticStyle:{display:"inline-block"},attrs:{"show-file-list":!1,action:e.fileUrl,"before-upload":e.videoSaveToUrl,data:e.uploadData,headers:e.header,multiple:!0}},[t("el-button",{attrs:{type:"primary",icon:"ios-cloud-upload-outline"}},[e._v("上传视频")])],1),e.upload.videoIng?t("Progress",{attrs:{percent:e.progress,"stroke-width":5}}):e._e(),e.formValidate.video_link?t("div",{staticClass:"video-style"},[t("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),t("div",{staticClass:"mark"}),t("i",{staticClass:"el-icon-delete iconv",on:{click:e.delVideo}})]):e._e()],1),t("div",{staticClass:"mt50 ml20"},[t("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])}),[],!1,null,"b87926c8",null).exports,r={name:"Index",components:{uploadPictures:r.a,uploadVideo:C,monaco:o},props:{content:{type:String,default:""}},data:function(){return{monacoBox:!1,value:"",modalPic:!1,isChoice:"多选",picTit:"danFrom",img:"",modalVideo:!1,editor:null,uploadSize:2,video:""}},watch:{content:function(e){this.editor.txt.html(e)}},created:function(){},mounted:function(){var e=this;this.createEditor(),A.$on("Video",(function(t){e.getvideoint()})),A.$on("Html",(function(t){e.getHtmlint()}))},methods:{changeValue:function(e){this.newHtml=e,this.$emit("editorContent",e),this.$emit("input",e)},getPic:function(e){this.img=e.att_dir,this.modalPic=!1,this.editor.cmd.do("insertHTML",''))},getimg:function(){this.modalPic=!0,this.isChoice="多选"},getvideoint:function(){this.modalVideo=!0},getHtmlint:function(){this.monacoBox=!this.monacoBox,this.value=this.newHtml,this.monacoBox||this.editor.txt.html(this.newHtml)},getPicD:function(e){var t=this;this.modalPic=!1,e.map((function(e){t.editor.cmd.do("insertHTML",''))}))},getvideo:function(e){this.modalVideo=!1,this.video=e,e='


      ',this.editor.cmd.do("insertHTML",e)},createEditor:function(){var e=this,t=this,n="alertMenuKey";this.editor=new a.a(this.$refs["wang-editor"]),this.editor.menus.extend(n,g),this.editor.menus.extend("alertHtml",w),this.editor.config.menus=this.editor.config.menus.concat("alertHtml"),this.editor.config.menus=this.editor.config.menus.concat(n),this.editor.config.uploadImgFromMedia=function(){t.getimg()},this.editor.config.height=600,this.editor.config.menus=["alertHtml","head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","justify","quote","emoticon","image","alertMenuKey","code","splitLine"],this.editor.config.uploadImgShowBase64=!1,this.editor.config.zIndex=0,this.editor.config.compatibleMode=function(){return!0},this.editor.config.onchange=function(t){e.newHtml=t,e.$emit("editorContent",t)},this.editor.config.onchangeTimeout=300,this.editor.create()}}},n("1812"),C=Object(i.a)(r,(function(){var e=this,t=e._self._c;return t("div",[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.monacoBox,expression:"!monacoBox"}]},[t("div",{ref:"wang-editor",staticClass:"wang-editor"})]),e.monacoBox?t("div",[t("el-button",{staticClass:"bottom",attrs:{type:"primary"},on:{click:e.getHtmlint}},[e._v("可视化界面")]),t("monaco",{staticClass:"monaco-box",attrs:{value:e.newHtml},on:{change:e.changeValue}})],1):e._e(),t("el-dialog",{attrs:{visible:e.modalPic,width:"1024px",title:"上传图片","close-on-click-modal":!1},on:{"update:visible":function(t){e.modalPic=t}}},[e.modalPic?t("uploadPictures",{attrs:{isChoice:e.isChoice},on:{getPic:e.getPic,getPicD:e.getPicD}}):e._e()],1),t("el-dialog",{attrs:{visible:e.modalVideo,width:"720px",title:"上传视频","close-on-click-modal":!1},on:{"update:visible":function(t){e.modalVideo=t}}},[e.modalVideo?t("uploadVideo",{on:{getVideo:e.getvideo}}):e._e()],1)],1)}),[],!1,null,"0ba3c460",null);t.a=C.exports},b09a:function(e,t,n){},c741:function(e,t,n){}}]);