!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Editor=t():e.Editor=t()}(window,function(){return function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=5)}([function(e,t,n){"use strict";n.r(t);var i=n(1),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,function(){return i[e]})}(a);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(7)),o=a(n(8));function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Editor",data:function(){return{editorContent:""}},props:{id:{type:String,required:!0}},mounted:function(){this.createEditor(),this.initPreview()},updated:function(){this.preview.update(this.editorContent)},methods:{createEditor:function(){var t=this,e=document.querySelector("#"+this.id),n=new i.default(e);n.customConfig.onchange=function(e){t.editorContent=e},n.create()},initPreview:function(){var e=document.querySelector("#preview-"+this.id);this.preview=new o.default(e)}}}},function(e,t,n){var i=n(11);"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(14)(i,o);i.locals&&(e.exports=i.locals)},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editor-container"},[n("div",{staticClass:"editor-wrap",attrs:{id:e.id}}),e._v(" "),n("div",{staticClass:"preview-wrap",attrs:{id:"preview-"+e.id},domProps:{innerHTML:e._s(e.editorContent)}})])},o=[];i._withStripped=!0,n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o})},function(e,t,n){"use strict";function i(e,t,n,i,o,a,r,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var A=c.render;c.render=function(e,t){return l.call(t),A(e,t)}}else{var m=c.beforeCreate;c.beforeCreate=m?[].concat(m,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(6),a=(i=o)&&i.__esModule?i:{default:i};a.default.install=function(e){e.component(a.default.name,a.default)},"undefined"!=typeof window&&window.Vue&&(window.Editor=a.default),t.default=a.default},function(e,t,n){"use strict";n.r(t);var i=n(3),o=n(0);for(var a in o)"default"!==a&&function(e){n.d(t,e,function(){return o[e]})}(a);n(10);var r=n(4),s=Object(r.a)(o.default,i.a,i.b,!1,null,"2b260b38",null);s.options.__file="src/component/Editor.vue",t.default=s.exports},function(e,t,n){e.exports=function(){"use strict";function c(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}function A(e){if(e){if(e instanceof A)return e;var t=(this.selector=e).nodeType,n=[];9===t?n=[e]:1===t?n=[e]:c(e)||e instanceof Array?n=e:"string"==typeof e&&(e=e.replace("/\n/mg","").trim(),n=0===e.indexOf("<")?(s=e,l=void 0,(l=document.createElement("div")).innerHTML=s,l.children):(a=e,c(r=document.querySelectorAll(a))?r:[r]));var i=n.length;if(!i)return this;var o=void 0;for(o=0;o<i;o++)this[o]=n[o];this.length=i}var a,r,s,l}function f(e){return new A(e)}function C(e,t){var n=void 0;for(n in e)if(e.hasOwnProperty(n)&&!1===t.call(e,n,e[n]))break}function B(e,t){var n=void 0,i=void 0,o=e.length||0;for(n=0;n<o&&(i=e[n],!1!==t.call(e,i,n));n++);}function p(e){return e+Math.random().toString().slice(2)}function m(e){return null==e?"":e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}function d(e){return"function"==typeof e}function e(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-bold"></i>\n        </div>'),this.type="click",this._active=!1}function o(e,t){var a=this,r=e.editor;this.menu=e,this.opt=t;var n=f('<div class="w-e-droplist"></div>'),i=t.$title,o=void 0;i&&(o=i.html(),o=G(r,o),i.html(o),i.addClass("w-e-dp-title"),n.append(i));var s=t.list||[],l=t.type||"list",c=t.onClick||z,A=f('<ul class="'+("list"===l?"w-e-list":"w-e-block")+'"></ul>');n.append(A),s.forEach(function(e){var t=e.$elem,n=t.html();n=G(r,n),t.html(n);var i=e.value,o=f('<li class="w-e-item"></li>');t&&(o.append(t),A.append(o),o.on("click",function(e){c(i),a.hideTimeoutId=setTimeout(function(){a.hide()},0)}))}),n.on("mouseleave",function(e){a.hideTimeoutId=setTimeout(function(){a.hide()},0)}),this.$container=n,this._rendered=!1,this._show=!1}function t(e){var t=this;this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-header"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new o(this,{width:100,$title:f("<p>设置标题</p>"),type:"list",list:[{$elem:f("<h1>H1</h1>"),value:"<h1>"},{$elem:f("<h2>H2</h2>"),value:"<h2>"},{$elem:f("<h3>H3</h3>"),value:"<h3>"},{$elem:f("<h4>H4</h4>"),value:"<h4>"},{$elem:f("<h5>H5</h5>"),value:"<h5>"},{$elem:f("<p>正文</p>"),value:"<p>"}],onClick:function(e){t._command(e)}})}function n(e){var t=this;this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-text-heigh"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new o(this,{width:160,$title:f("<p>字号</p>"),type:"list",list:[{$elem:f('<span style="font-size: x-small;">x-small</span>'),value:"1"},{$elem:f('<span style="font-size: small;">small</span>'),value:"2"},{$elem:f("<span>normal</span>"),value:"3"},{$elem:f('<span style="font-size: large;">large</span>'),value:"4"},{$elem:f('<span style="font-size: x-large;">x-large</span>'),value:"5"},{$elem:f('<span style="font-size: xx-large;">xx-large</span>'),value:"6"}],onClick:function(e){t._command(e)}})}function i(e){var t=this;this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-font"></i></div>'),this.type="droplist",this._active=!1;var n=e.config,i=n.fontNames||[];this.droplist=new o(this,{width:100,$title:f("<p>字体</p>"),type:"list",list:i.map(function(e){return{$elem:f('<span style="font-family: '+e+';">'+e+"</span>"),value:e}}),onClick:function(e){t._command(e)}})}function u(e,t){this.menu=e,this.opt=t}function a(e){this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-link"></i></div>'),this.type="panel",this._active=!1}function r(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-italic"></i>\n        </div>'),this.type="click",this._active=!1}function s(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-redo"></i>\n        </div>'),this.type="click",this._active=!1}function l(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-strikethrough"></i>\n        </div>'),this.type="click",this._active=!1}function g(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-underline"></i>\n        </div>'),this.type="click",this._active=!1}function h(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-undo"></i>\n        </div>'),this.type="click",this._active=!1}function v(e){var t=this;this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-list2"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new o(this,{width:120,$title:f("<p>设置列表</p>"),type:"list",list:[{$elem:f('<span><i class="w-e-icon-list-numbered"></i> 有序列表</span>'),value:"insertOrderedList"},{$elem:f('<span><i class="w-e-icon-list2"></i> 无序列表</span>'),value:"insertUnorderedList"}],onClick:function(e){t._command(e)}})}function b(e){var t=this;this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-paragraph-left"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new o(this,{width:100,$title:f("<p>对齐方式</p>"),type:"list",list:[{$elem:f('<span><i class="w-e-icon-paragraph-left"></i> 靠左</span>'),value:"justifyLeft"},{$elem:f('<span><i class="w-e-icon-paragraph-center"></i> 居中</span>'),value:"justifyCenter"},{$elem:f('<span><i class="w-e-icon-paragraph-right"></i> 靠右</span>'),value:"justifyRight"}],onClick:function(e){t._command(e)}})}function w(e){var t=this;this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-pencil2"></i></div>'),this.type="droplist";var n=e.config,i=n.colors||[];this._active=!1,this.droplist=new o(this,{width:120,$title:f("<p>文字颜色</p>"),type:"inline-block",list:i.map(function(e){return{$elem:f('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}}),onClick:function(e){t._command(e)}})}function y(e){var t=this;this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-paint-brush"></i></div>'),this.type="droplist";var n=e.config,i=n.colors||[];this._active=!1,this.droplist=new o(this,{width:120,$title:f("<p>背景色</p>"),type:"inline-block",list:i.map(function(e){return{$elem:f('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}}),onClick:function(e){t._command(e)}})}function x(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-quotes-left"></i>\n        </div>'),this.type="click",this._active=!1}function E(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-terminal"></i>\n        </div>'),this.type="panel",this._active=!1}function N(e){this.editor=e,this.$elem=f('<div class="w-e-menu">\n            <i class="w-e-icon-happy"></i>\n        </div>'),this.type="panel",this._active=!1}function I(e){this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-table2"></i></div>'),this.type="panel",this._active=!1}function _(e){this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-play"></i></div>'),this.type="panel",this._active=!1}function Q(e){this.editor=e;var t=p("w-e-img");this.$elem=f('<div class="w-e-menu" id="'+t+'"><i class="w-e-icon-image"></i></div>'),e.imgMenuId=t,this.type="panel",this._active=!1}function k(e,t){this.$container=e,this.mq=this._create(e,t)}function M(e){this.formulaEditor=null,this.editor=e,this.$elem=f('<div class="w-e-menu"><i class="w-e-icon-link"></i></div>'),this.type="panel",this._active=!1}function S(e){this.editor=e,this.menus={}}function D(e){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return m(null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"))}function T(e){this.editor=e}function R(e){this.editor=e}function F(e){this.editor=e,this._currentRange=null}function U(e){this.editor=e,this._time=0,this._isShow=!1,this._isRender=!1,this._timeoutId=0,this.$textContainer=e.$textContainerElem,this.$bar=f('<div class="w-e-progress"></div>')}function j(e){this.editor=e}function L(e,t){if(null==e)throw new Error("错误：初始化编辑器时候未传入任何参数，请查阅文档");this.id="wangEditor-"+K++,this.toolbarSelector=e,this.textSelector=t,this.customConfig={}}var P=[];A.prototype={constructor:A,forEach:function(e){var t=void 0;for(t=0;t<this.length;t++){var n=this[t];if(!1===e.call(n,n,t))break}return this},clone:function(t){var n=[];return this.forEach(function(e){n.push(e.cloneNode(!!t))}),f(n)},get:function(e){var t=this.length;return t<=e&&(e%=t),f(this[e])},first:function(){return this.get(0)},last:function(){var e=this.length;return this.get(e-1)},on:function(e,n,i){i||(i=n,n=null);var o=[];return o=e.split(/\s+/),this.forEach(function(t){o.forEach(function(e){if(e){if(P.push({elem:t,type:e,fn:i}),!n)return void t.addEventListener(e,i);t.addEventListener(e,function(e){var t=e.target;t.matches(n)&&i.call(t,e)})}})})},off:function(t,n){return this.forEach(function(e){e.removeEventListener(t,n)})},attr:function(t,n){return null==n?this[0].getAttribute(t):this.forEach(function(e){e.setAttribute(t,n)})},addClass:function(n){return n?this.forEach(function(e){var t=void 0;e.className?((t=(t=e.className.split(/\s/)).filter(function(e){return!!e.trim()})).indexOf(n)<0&&t.push(n),e.className=t.join(" ")):e.className=n}):this},removeClass:function(n){return n?this.forEach(function(e){var t=void 0;e.className&&(t=(t=e.className.split(/\s/)).filter(function(e){return!(!(e=e.trim())||e===n)}),e.className=t.join(" "))}):this},css:function(i,e){var o=i+":"+e+";";return this.forEach(function(e){var t=(e.getAttribute("style")||"").trim(),n=[];t?(t.split(";").forEach(function(e){var t=e.split(":").map(function(e){return e.trim()});2===t.length&&n.push(t[0]+":"+t[1])}),(n=n.map(function(e){return 0===e.indexOf(i)?o:e})).indexOf(o)<0&&n.push(o),e.setAttribute("style",n.join("; "))):e.setAttribute("style",o)})},show:function(){return this.css("display","block")},hide:function(){return this.css("display","none")},children:function(){var e=this[0];return e?f(e.children):null},childNodes:function(){var e=this[0];return e?f(e.childNodes):null},append:function(e){return this.forEach(function(t){e.forEach(function(e){t.appendChild(e)})})},remove:function(){return this.forEach(function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}})},isContain:function(e){var t=this[0],n=e[0];return t.contains(n)},getSizeData:function(){return this[0].getBoundingClientRect()},getNodeName:function(){return this[0].nodeName},find:function(e){return f(this[0].querySelectorAll(e))},text:function(t){return t?this.forEach(function(e){e.innerHTML=t}):this[0].innerHTML.replace(/<.*?>/g,function(){return""})},html:function(e){var t=this[0];return null==e?t.innerHTML:(t.innerHTML=e,this)},val:function(){return this[0].value.trim()},focus:function(){return this.forEach(function(e){e.focus()})},parent:function(){return f(this[0].parentElement)},parentUntil:function(e,t){var n=document.querySelectorAll(e),i=n.length;if(!i)return null;var o=t||this[0];if("BODY"===o.nodeName)return null;var a=o.parentElement,r=void 0;for(r=0;r<i;r++)if(a===n[r])return f(a);return this.parentUntil(e,a)},equal:function(e){return 1===e.nodeType?this[0]===e:this[0]===e[0]},insertBefore:function(e){var t=f(e),n=t[0];return n?this.forEach(function(e){n.parentNode.insertBefore(e,n)}):this},insertAfter:function(e){var t=f(e),n=t[0];return n?this.forEach(function(e){var t=n.parentNode;t.lastChild===n?t.appendChild(e):t.insertBefore(e,n.nextSibling)}):this}},f.offAll=function(){P.forEach(function(e){var t=e.elem,n=e.type,i=e.fn;t.removeEventListener(n,i)})};var Y={menus:["head","bold","fontSize","fontName","italic","underline","foreColor","backColor","link","list","justify","quote","image","table","formula"],fontNames:["宋体","微软雅黑","Arial","Tahoma","Verdana"],colors:["#000000","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b","#ffffff"],emotions:[{title:"默认",type:"image",content:[{alt:"[坏笑]",src:"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/50/pcmoren_huaixiao_org.png"},{alt:"[舔屏]",src:"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/40/pcmoren_tian_org.png"},{alt:"[污]",src:"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/3c/pcmoren_wu_org.png"}]},{title:"新浪",type:"image",content:[{src:"http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/7a/shenshou_thumb.gif",alt:"[草泥马]"},{src:"http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/60/horse2_thumb.gif",alt:"[神马]"},{src:"http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/bc/fuyun_thumb.gif",alt:"[浮云]"}]},{title:"emoji",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 😊 😇 🙂 🙃 😉 😓 😪 😴 🙄 🤔 😬 🤐".split(/\s/)}],zIndex:1e4,debug:!1,linkCheck:function(e,t){return!0},linkImgCheck:function(e){return!0},pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e},showLinkImg:!0,linkImgCallback:function(e){},uploadImgMaxSize:5242880,uploadImgShowBase64:!1,uploadFileName:"",uploadImgParams:{},uploadImgHeaders:{},withCredentials:!1,uploadImgTimeout:1e4,uploadImgHooks:{before:function(e,t,n){},success:function(e,t,n){},fail:function(e,t,n){},error:function(e,t){},timeout:function(e,t){}},qiniu:!1,fomulaData:{toolbar:[{className:"普通运算符号",img:"164.png",symbol:[{symbolName:"正负",img:"165.png",latex:"\\pm"},{symbolName:"求导",img:"qiudao.png",latex:"{f'}(x)"},{symbolName:"负正",img:"166.png",latex:"\\mp"},{symbolName:"叉乘",img:"167.png",latex:"\\times"},{symbolName:"除以",img:"168.png",latex:"\\div"},{symbolName:"点",img:"169.png",latex:"\\cdot"},{symbolName:"点",img:"point.png",latex:"\\dot {}"},{symbolName:"箭头符号",img:"hu.png",latex:"\\overarc {}"},{symbolName:"大点",img:"170.png",latex:"\\bullet"},{symbolName:"度",img:"degree.png",latex:"\\^{\\circ}"},{symbolName:"冒号",img:"colon.png",latex:":"},{symbolName:"空集",img:"082.png",latex:"\\varnothing"},{symbolName:"积分上下标",img:"094.png",latex:"\\int_{}^{}"},{symbolName:"省略号",img:"ellipsis.png",latex:"\\cdots"},{symbolName:"求和符号右上下标",img:"097.png",latex:"\\sum_{}^{}{}"},{symbolName:"求积",img:"200.png",latex:"\\prod_{}^{}{}"},{symbolName:"共轭",img:"135.png",latex:"\\bar{}"},{symbolName:"p",img:"201.png",latex:"P^{}_{}"},{symbolName:"a",img:"202.png",latex:"A^{}_{}"},{symbolName:"c",img:"203.png",latex:"C^{}_{}"},{symbolName:"无穷",img:"175.png",latex:"\\infty"},{symbolName:"加号",img:"011.png",latex:"+"},{symbolName:"减号",img:"12.png",latex:"-"},{symbolName:"补集",img:"buji.png",latex:"C_{U}"}]},{className:"关系符",img:"016.png",symbol:[{symbolName:"大于等于",img:"017.png",latex:"\\geq"},{symbolName:"小于等于",img:"018.png",latex:"\\leq"},{symbolName:"大于",img:"012.png",latex:">"},{symbolName:"小于",img:"010.png",latex:"<"},{symbolName:"百分号",img:"6.png",latex:"%"},{symbolName:"等于",img:"equal.png",latex:"="},{symbolName:"不等",img:"019.png",latex:"\\neq"},{symbolName:"恒等",img:"020.png",latex:"\\equiv"},{symbolName:"约等",img:"022.png",latex:"\\approx"},{symbolName:"远大于",img:"023.png",latex:"\\gg"},{symbolName:"远小于",img:"024.png",latex:"\\ll"},{symbolName:"正比于",img:"025.png",latex:"\\propto"},{symbolName:"相似",img:"026.png",latex:"\\sim"},{symbolName:"相似2",img:"027.png",latex:"\\simeq"},{symbolName:"全等",img:"028.png",latex:"\\cong"},{symbolName:"属于",img:"075.png",latex:"\\in"},{symbolName:"属于2",img:"204.png",latex:"\\ni"},{symbolName:"不属于",img:"076.png",latex:"\\notin"},{symbolName:"并集大写",img:"073.png",latex:"\\bigcup"},{symbolName:"交集大写",img:"074.png",latex:"\\bigcap"},{symbolName:"且",img:"086.png",latex:"\\wedge"},{symbolName:"或",img:"087.png",latex:"\\vee"},{symbolName:"包含",img:"077.png",latex:"\\supseteq"},{symbolName:"真包含",img:"078.png",latex:"\\supset"},{symbolName:"被包含",img:"079.png",latex:"\\subseteq"},{symbolName:"被真包含",img:"080.png",latex:"\\subset"},{symbolName:"不被包含",img:"081.png",latex:"\\nsubseteq"},{symbolName:"非",img:"088.png",latex:"\\neg"},{symbolName:"不被包含",img:"205.png",latex:"\\subsetneqq"},{symbolName:"不被包含",img:"206.png",latex:"\\supsetneqq"}]},{className:"希腊字母",img:"029.png",symbol:[{symbolName:"π",img:"045.png",latex:"\\pi"},{symbolName:"α",img:"030.png",latex:"\\alpha"},{symbolName:"β",img:"031.png",latex:"\\beta"},{symbolName:"γ",img:"032.png",latex:"\\gamma"},{symbolName:"δ",img:"033.png",latex:"\\delta"},{symbolName:"偏微分",img:"065.png",latex:"\\partial"},{symbolName:"θ",img:"036.png",latex:"\\theta"},{symbolName:"ρ",img:"046.png",latex:"\\rho"},{symbolName:"σ",img:"047.png",latex:"\\sigma"},{symbolName:"phi",img:"207.png",latex:"\\varphi"},{symbolName:"ω",img:"053.png",latex:"\\omega"},{symbolName:"ε",img:"034.png",latex:"\\varepsilon"},{symbolName:"ζ",img:"035.png",latex:"\\zeta"},{symbolName:"ι",img:"037.png",latex:"\\iota"},{symbolName:"κ",img:"038.png",latex:"\\kappa"},{symbolName:"λ",img:"039.png",latex:"\\lambda"},{symbolName:"μ",img:"040.png",latex:"\\mu"},{symbolName:"η",img:"041.png",latex:"\\eta"},{symbolName:"ν",img:"042.png",latex:"\\nu"},{symbolName:"ξ",img:"043.png",latex:"\\xi"},{symbolName:"ο",img:"044.png",latex:"o"},{symbolName:"τ",img:"048.png",latex:"\\tau"},{symbolName:"υ",img:"049.png",latex:"\\upsilon"},{symbolName:"φ",img:"050.png",latex:"\\phi"},{symbolName:"χ",img:"051.png",latex:"\\chi"},{symbolName:"ψ",img:"052.png",latex:"\\psi"},{symbolName:"Γ",img:"054.png",latex:"\\Gamma"},{symbolName:"Δ",img:"055.png",latex:"\\Delta"},{symbolName:"Θ",img:"056.png",latex:"\\Theta"},{symbolName:"Λ",img:"057.png",latex:"\\Lambda"},{symbolName:"Ξ",img:"058.png",latex:"\\Xi"},{symbolName:"Π",img:"059.png",latex:"\\Pi"},{symbolName:"Σ",img:"060.png",latex:"\\Sigma"},{symbolName:"Φ",img:"061.png",latex:"\\Phi"},{symbolName:"Ψ",img:"062.png",latex:"\\Psi"},{symbolName:"Ω",img:"063.png",latex:"\\Omega"}]},{className:"特殊符号",img:"171.png",symbol:[{symbolName:"·",img:"170.png",latex:"\\cdot"},{symbolName:"*",img:"13.png",latex:"\\ast"},{symbolName:"雪花",img:"snow.png",latex:"\\divideontimes"},{symbolName:"圈叉乘",img:"171.png",latex:"\\otimes"},{symbolName:"圈叉加",img:"172.png",latex:"\\oplus"},{symbolName:"任取",img:"089.png",latex:"\\forall"},{symbolName:"存在",img:"090.png",latex:"\\exists"},{symbolName:"不存在",img:"214.png",latex:"∄"}]},{className:"几何符号",img:"083.png",symbol:[{symbolName:"因为",img:"084.png",latex:"\\because"},{symbolName:"所以",img:"085.png",latex:"\\therefore"},{symbolName:"角",img:"066.png",latex:"\\angle"},{symbolName:"平行",img:"069.png",latex:"\\parallel"},{symbolName:"不平行",img:"212.png",latex:"\\nparallel"},{symbolName:"垂直",img:"070.png",latex:"\\bot"},{symbolName:"三角形",img:"068.png",latex:"\\triangle"},{symbolName:"正方形",img:"071.png",latex:"\\square"},{symbolName:"平行四边形",img:"parallels.png",latex:"\\parallelogram"},{symbolName:"圈叉点",img:"173.png",latex:"\\odot"}]},{className:"箭头类",img:"111.png",symbol:[{symbolName:"左右单箭头",img:"112.png",latex:"\\leftrightarrow"},{symbolName:"右单箭头",img:"113.png",latex:"\\to"},{symbolName:"左单箭头",img:"114.png",latex:"\\leftarrow"},{symbolName:"上下单箭头",img:"115.png",latex:"\\updownarrow"},{symbolName:"上单箭头",img:"116.png",latex:"\\uparrow"},{symbolName:"下单箭头",img:"117.png",latex:"\\downarrow"},{symbolName:"左右双箭头",img:"118.png",latex:"\\Leftrightarrow"},{symbolName:"右双箭头",img:"119.png",latex:"\\Rightarrow"},{symbolName:"左双箭头",img:"120.png",latex:"\\Leftarrow"},{symbolName:"左右推不出",img:"208.png",latex:"\\nLeftrightarrow"},{symbolName:"右推不出",img:"209.png",latex:"\\nRightarrow"},{symbolName:"左推不出",img:"210.png",latex:"\\nLeftarrow"},{symbolName:"互推",img:"211.png",latex:"\\leftrightharpoons"},{symbolName:"上下双箭头",img:"121.png",latex:"\\Updownarrow"},{symbolName:"上双箭头",img:"122.png",latex:"\\Uparrow"},{symbolName:"下双箭头",img:"123.png",latex:"\\Downarrow"},{symbolName:"右上单箭头",img:"124.png",latex:"\\nearrow"},{symbolName:"左下单箭头",img:"125.png",latex:"\\swarrow"},{symbolName:"右下单箭头",img:"126.png",latex:"\\searrow"},{symbolName:"左上单箭头",img:"127.png",latex:"\\nwarrow"},{symbolName:"带尾箭头",img:"130.png",latex:"\\mapsto"}]},{className:"根号&分数",img:"001.png",symbol:[{symbolName:"分数",img:"002.png",latex:"\\frac{{}}{{}}"},{symbolName:"根号",img:"003.png",latex:"\\sqrt{}"},{symbolName:"n次根号",img:"004.png",latex:"\\sqrt[]{}"}]},{className:"上下标",img:"006.png",symbol:[{symbolName:"右上标",img:"007.png",latex:"^{}"},{symbolName:"右下标",img:"008.png",latex:"_{}"},{symbolName:"右上下标",img:"009.png",latex:"^{}_{}"},{symbolName:"xiangliang",img:"xiangliang.png",latex:"\\vec{}"}]},{className:"矩阵",img:"brackets.png",symbol:[{symbolName:"brackets_small",img:"brackets_small.png",latex:"\\left ( {} \\right )"},{symbolName:"brackets_middle",img:"brackets_middle.png",latex:"\\left [ \\right ]"},{symbolName:"brackets_big",img:"brackets_big.png",latex:"\\left \\{ \\right \\}"},{symbolName:"brackets_line",img:"brackets_line.png",latex:"\\left | \\right |"},{symbolName:"集合描述",img:"232.png",latex:"\\left | {} \\right."},{symbolName:"brackets_small22",img:"brackets_small22.png",latex:"\\begin{pmatrix}{}&{}\\\\{}&{}\\end{pmatrix}"},{symbolName:"brackets_small23",img:"brackets_line22.png",latex:"\\begin{vmatrix}{}&{}\\\\{}&{}\\end{vmatrix}"},{symbolName:"brackets_small29",img:"jic.png",latex:"\\begin{vmatrix}{}&{}&{}\\\\{}&{}&{}\\\\{}&{}&{}\\end{vmatrix}"},{symbolName:"brackets_small24",img:"brackets_middle22.png",latex:"\\begin{bmatrix}{}&{}\\\\{}&{}\\end{bmatrix}"},{symbolName:"brackets_small30",img:"231.png",latex:"\\begin{pmatrix}{}&{}&{}&{}\\\\{}&{}&{}&{}\\\\{}&{}&{}&{}\\\\{}&{}&{}&{}\\end{pmatrix}"},{symbolName:"brackets_small26",img:"215.png",latex:"\\begin{matrix}{}\\\\{}\\end{matrix}"},{symbolName:"brackets_small25",img:"216.png",latex:"\\begin{matrix}{}\\\\{}\\\\{}\\end{matrix}"},{symbolName:"brackets_small27",img:"217.png",latex:"\\begin{matrix}{}\\\\{}\\\\{}\\\\{}\\end{matrix}"}]},{className:"sin函数",img:"sincos.png",symbol:[{symbolName:"sin",img:"sin.png",latex:"\\sin{}"},{symbolName:"cos",img:"cos.png",latex:"\\cos{}"},{symbolName:"tan",img:"tan.png",latex:"\\tan{}"},{symbolName:"cot",img:"cot.png",latex:"\\cot{}"},{symbolName:"sec",img:"sec.png",latex:"\\sec{}"},{symbolName:"csc",img:"csc.png",latex:"\\csc{}"},{symbolName:"cot",img:"cot-1.png",latex:"\\cot{}^{-1}{}"},{symbolName:"sec",img:"sec-1.png",latex:"\\sec{}^{-1}{}"},{symbolName:"csc",img:"csc-1.png",latex:"\\csc{}^{-1}{}"},{symbolName:"sin-1",img:"sin-1.png",latex:"\\sin^{-1}{}"},{symbolName:"cos-1",img:"cos-1.png",latex:"\\cos^{-1}{}"},{symbolName:"tan-1",img:"tan-1.png",latex:"\\tan^{-1}{}"},{symbolName:"arcsin",img:"arcsin.png",latex:"\\arcsin{}"},{symbolName:"arccos",img:"arccos.png",latex:"\\arccos{}"},{symbolName:"arctan",img:"arctan.png",latex:"\\arctan{}"}]},{className:"其他函数",img:"log_min.png",symbol:[{symbolName:"log",img:"log.png",latex:"\\log_{}{}"},{symbolName:"lg",img:"log10.png",latex:"\\lg{}"},{symbolName:"ln",img:"ln.png",latex:"\\ln{}"},{symbolName:"lim",img:"lim.png",latex:"\\lim_{}"},{symbolName:"min",img:"min.png",latex:"\\min"},{symbolName:"max",img:"max.png",latex:"\\max"}]},{className:"序号",img:"224.png",symbol:[{symbolName:"符号1",img:"224.png",latex:"①"},{symbolName:"符号2",img:"225.png",latex:"②"},{symbolName:"符号3",img:"226.png",latex:"③"},{symbolName:"符号4",img:"227.png",latex:"④"},{symbolName:"符号5",img:"228.png",latex:"⑤"},{symbolName:"符号6",img:"229.png",latex:"⑥"},{symbolName:"符号7",img:"230.png",latex:"⑦"},{symbolName:"罗马1",img:"218.png",latex:"Ⅰ"},{symbolName:"罗马2",img:"219.png",latex:"Ⅱ"},{symbolName:"罗马3",img:"220.png",latex:"Ⅲ"},{symbolName:"罗马4",img:"221.png",latex:"Ⅳ"},{symbolName:"罗马5",img:"222.png",latex:"Ⅴ"},{symbolName:"罗马6",img:"223.png",latex:"Ⅵ"}]}]}},H={_ua:navigator.userAgent,isWebkit:function(){return/webkit/i.test(this._ua)},isIE:function(){return"ActiveXObject"in window}};e.prototype={constructor:e,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("bold"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("bold")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}};var G=function(e,t){var n=e.config.langArgs||[],i=t;return n.forEach(function(e){var t=e.reg,n=e.val;t.test(i)&&(i=i.replace(t,function(){return n}))}),i},z=function(){};o.prototype={constructor:o,show:function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu,t=e.$elem,n=this.$container;if(!this._show){if(this._rendered)n.show();else{var i=t.getSizeData().height||0,o=this.opt.width||100;n.css("margin-top",i+"px").css("width",o+"px"),t.append(n),this._rendered=!0}this._show=!0}},hide:function(){this.showTimeoutId&&clearTimeout(this.showTimeoutId);var e=this.$container;this._show&&(e.hide(),this._show=!1)}},t.prototype={constructor:t,_command:function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();t.$textElem.equal(n)||t.cmd.do("formatBlock",e)},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.cmd.queryCommandValue("formatBlock");/^h/i.test(i)?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},n.prototype={constructor:n,_command:function(e){this.editor.cmd.do("fontSize",e)}},i.prototype={constructor:i,_command:function(e){this.editor.cmd.do("fontName",e)}};var O=function(){},J=[];u.prototype={constructor:u,show:function(){var a=this,e=this.menu;if(!(0<=J.indexOf(e))){var r=e.editor,t=f("body"),n=r.$textContainerElem,i=this.opt,o=f('<div class="w-e-panel-container"></div>'),s=i.width||300;o.css("width",s+"px").css("margin-left",(0-s)/2+"px");var l=f('<i class="w-e-icon-close w-e-panel-close"></i>');o.append(l),l.on("click",function(){a.hide()});var c=f('<ul class="w-e-panel-tab-title"></ul>'),A=f('<div class="w-e-panel-tab-content"></div>');o.append(c).append(A);var m=i.height;m&&A.css("height",m+"px").css("overflow-y","auto");var d=i.tabs||[],p=[],u=[];d.forEach(function(e,t){if(e){var n=e.title||"",i=e.tpl||"";n=G(r,n),i=G(r,i);var o=f('<li class="w-e-item">'+n+"</li>");c.append(o);var a=f(i);A.append(a),o._index=t,p.push(o),u.push(a),0===t?(o._active=!0,o.addClass("w-e-active")):a.hide(),o.on("click",function(e){o._active||(p.forEach(function(e){e._active=!1,e.removeClass("w-e-active")}),u.forEach(function(e){e.hide()}),o._active=!0,o.addClass("w-e-active"),a.show())})}}),o.on("click",function(e){e.stopPropagation()}),t.on("click",function(e){a.hide()}),n.append(o),d.forEach(function(e,o){e&&(e.events||[]).forEach(function(e){var t=e.selector,n=e.type,i=e.fn||O;u[o].find(t).on(n,function(e){e.stopPropagation(),i(e)&&a.hide()})})});var g=o.find("input[type=text],textarea");g.length&&g.get(0).focus(),this.$container=o,this._hideOtherPanels(),J.push(e)}},hide:function(){var t=this.menu,e=this.$container;e&&e.remove(),J=J.filter(function(e){return e!==t})},_hideOtherPanels:function(){J.length&&J.forEach(function(e){var t=e.panel||{};t.hide&&t.hide()})}},a.prototype={constructor:a,onClick:function(e){var t=this.editor,n=void 0;if(this._active){if(!(n=t.selection.getSelectionContainerElem()))return;t.selection.createRangeByElem(n),t.selection.restoreSelection(),this._createPanel(n.text(),n.attr("href"))}else t.selection.isSelectionEmpty()?this._createPanel("",""):this._createPanel(t.selection.getSelectionText(),"")},_createPanel:function(e,t){var o=this,a=p("input-link"),r=p("input-text"),n=p("btn-ok"),i=p("btn-del"),s=this._active?"inline-block":"none",l=new u(this,{width:300,tabs:[{title:"链接",tpl:'<div>\n                            <input id="'+r+'" type="text" class="block" value="'+e+'" placeholder="链接文字"/></td>\n                            <input id="'+a+'" type="text" class="block" value="'+t+'" placeholder="http://..."/></td>\n                            <div class="w-e-button-container">\n                                <button id="'+n+'" class="right">插入</button>\n                                <button id="'+i+'" class="gray right" style="display:'+s+'">删除链接</button>\n                            </div>\n                        </div>',events:[{selector:"#"+n,type:"click",fn:function(){var e=f("#"+a),t=f("#"+r),n=e.val(),i=t.val();return o._insertLink(i,n),!0}},{selector:"#"+i,type:"click",fn:function(){return o._delLink(),!0}}]}]});l.show(),this.panel=l},_delLink:function(){if(this._active){var e=this.editor;if(e.selection.getSelectionContainerElem()){var t=e.selection.getSelectionText();e.cmd.do("insertHTML","<span>"+t+"</span>")}}},_insertLink:function(e,t){var n=this.editor,i=n.config,o=i.linkCheck,a=!0;o&&"function"==typeof o&&(a=o(e,t)),!0===a?n.cmd.do("insertHTML",'<a href="'+t+'" target="_blank">'+e+"</a>"):alert(a)},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.selection.getSelectionContainerElem();i&&("A"===i.getNodeName()?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active")))}},r.prototype={constructor:r,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("italic"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("italic")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},s.prototype={constructor:s,onClick:function(e){this.editor.cmd.do("redo")}},l.prototype={constructor:l,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("strikeThrough"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("strikeThrough")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},g.prototype={constructor:g,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("underline"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("underline")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},h.prototype={constructor:h,onClick:function(e){this.editor.cmd.do("undo")}},v.prototype={constructor:v,_command:function(e){var t=this.editor,n=t.$textElem;if(t.selection.restoreSelection(),!t.cmd.queryCommandState(e)){t.cmd.do(e);var i=t.selection.getSelectionContainerElem();if("LI"===i.getNodeName()&&(i=i.parent()),!1!==/^ol|ul$/i.test(i.getNodeName())&&!i.equal(n)){var o=i.parent();o.equal(n)||(i.insertAfter(o),o.remove())}}},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("insertUnOrderedList")||t.cmd.queryCommandState("insertOrderedList")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},b.prototype={constructor:b,_command:function(e){this.editor.cmd.do(e)}},w.prototype={constructor:w,_command:function(e){this.editor.cmd.do("foreColor",e)}},y.prototype={constructor:y,_command:function(e){this.editor.cmd.do("backColor",e)}},x.prototype={constructor:x,onClick:function(e){var t=this.editor,n=t.selection.getSelectionContainerElem(),i=n.getNodeName();if(H.isIE()){if("P"===i)return f("<blockquote>"+n.text()+"</blockquote>").insertAfter(n),void n.remove();"BLOCKQUOTE"===i&&(f("<p>"+n.text()+"</p>").insertAfter(n),n.remove())}else"BLOCKQUOTE"===i?t.cmd.do("formatBlock","<P>"):t.cmd.do("formatBlock","<BLOCKQUOTE>")},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.cmd.queryCommandValue("formatBlock");/^BLOCKQUOTE$/i.test(i)?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},E.prototype={constructor:E,onClick:function(e){var t=this.editor,n=t.selection.getSelectionStartElem(),i=t.selection.getSelectionEndElem(),o=t.selection.isSelectionEmpty(),a=t.selection.getSelectionText(),r=void 0;return n.equal(i)?o?void(this._active?this._createPanel(n.html()):this._createPanel()):(r=f("<code>"+a+"</code>"),t.cmd.do("insertElem",r),t.selection.createRangeByElem(r,!1),void t.selection.restoreSelection()):void t.selection.restoreSelection()},_createPanel:function(e){var n=this,i=(e=e||"")?"edit":"new",o=p("texxt"),t=p("btn"),a=new u(this,{width:500,tabs:[{title:"插入代码",tpl:'<div>\n                        <textarea id="'+o+'" style="height:145px;;">'+e+'</textarea>\n                        <div class="w-e-button-container">\n                            <button id="'+t+'" class="right">插入</button>\n                        </div>\n                    <div>',events:[{selector:"#"+t,type:"click",fn:function(){var e=f("#"+o),t=e.val()||e.html();return t=m(t),"new"===i?n._insertCode(t):n._updateCode(t),!0}}]}]});a.show(),this.panel=a},_insertCode:function(e){this.editor.cmd.do("insertHTML","<pre><code>"+e+"</code></pre><p><br></p>")},_updateCode:function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();n&&(n.html(e),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var o=i.parent();"CODE"===i.getNodeName()&&"PRE"===o.getNodeName()?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}}},N.prototype={constructor:N,onClick:function(){this._createPanel()},_createPanel:function(){var a=this,e=this.editor,t=e.config,n=t.emotions||[],o=[];n.forEach(function(e){var t=e.type,n=e.content||[],i="";"emoji"===t&&n.forEach(function(e){e&&(i+='<span class="w-e-item">'+e+"</span>")}),"image"===t&&n.forEach(function(e){var t=e.src,n=e.alt;t&&(i+='<span class="w-e-item"><img src="'+t+'" alt="'+n+'" data-w-e="1"/></span>')}),o.push({title:e.title,tpl:'<div class="w-e-emoticon-container">'+i+"</div>",events:[{selector:"span.w-e-item",type:"click",fn:function(e){var t=e.target,n=f(t),i=n.getNodeName(),o=void 0;return o="IMG"===i?n.parent().html():"<span>"+n.html()+"</span>",a._insert(o),!0}}]})});var i=new u(this,{width:300,height:200,tabs:o});i.show(),this.panel=i},_insert:function(e){this.editor.cmd.do("insertHTML",e)}},I.prototype={constructor:I,onClick:function(){this._active?this._createEditPanel():this._createInsertPanel()},_createInsertPanel:function(){var n=this,e=p("btn"),i=p("row"),o=p("col"),t=new u(this,{width:250,tabs:[{title:"插入表格",tpl:'<div>\n                        <p style="text-align:left; padding:5px 0;">\n                            创建\n                            <input id="'+i+'" type="text" value="5" style="width:40px;text-align:center;"/>\n                            行\n                            <input id="'+o+'" type="text" value="5" style="width:40px;text-align:center;"/>\n                            列的表格\n                        </p>\n                        <div class="w-e-button-container">\n                            <button id="'+e+'" class="right">插入</button>\n                        </div>\n                    </div>',events:[{selector:"#"+e,type:"click",fn:function(){var e=parseInt(f("#"+i).val()),t=parseInt(f("#"+o).val());return e&&t&&0<e&&0<t&&n._insert(e,t),!0}}]}]});t.show(),this.panel=t},_insert:function(e,t){var n=void 0,i=void 0,o='<table border="0" width="100%" cellpadding="0" cellspacing="0">';for(n=0;n<e;n++){if(o+="<tr>",0===n)for(i=0;i<t;i++)o+="<th>&nbsp;</th>";else for(i=0;i<t;i++)o+="<td>&nbsp;</td>";o+="</tr>"}o+="</table><p><br></p>";var a=this.editor;a.cmd.do("insertHTML",o),a.cmd.do("enableObjectResizing",!1),a.cmd.do("enableInlineTableEditing",!1)},_createEditPanel:function(){var e=this,t=p("add-row"),n=p("add-col"),i=p("del-row"),o=p("del-col"),a=p("del-table");new u(this,{width:320,tabs:[{title:"编辑表格",tpl:'<div>\n                        <div class="w-e-button-container" style="border-bottom:1px solid #f1f1f1;padding-bottom:5px;margin-bottom:5px;">\n                            <button id="'+t+'" class="left">增加行</button>\n                            <button id="'+i+'" class="red left">删除行</button>\n                            <button id="'+n+'" class="left">增加列</button>\n                            <button id="'+o+'" class="red left">删除列</button>\n                        </div>\n                        <div class="w-e-button-container">\n                            <button id="'+a+'" class="gray left">删除表格</button>\n                        </dv>\n                    </div>',events:[{selector:"#"+t,type:"click",fn:function(){return e._addRow(),!0}},{selector:"#"+n,type:"click",fn:function(){return e._addCol(),!0}},{selector:"#"+i,type:"click",fn:function(){return e._delRow(),!0}},{selector:"#"+o,type:"click",fn:function(){return e._delCol(),!0}},{selector:"#"+a,type:"click",fn:function(){return e._delTable(),!0}}]}]}).show()},_getLocationData:function(){var n={},e=this.editor,i=e.selection.getSelectionContainerElem();if(i){var t=i.getNodeName();if("TD"===t||"TH"===t){var o=i.parent(),a=o.children(),r=a.length;a.forEach(function(e,t){if(e===i[0])return!(n.td={index:t,elem:e,length:r})});var s=o.parent(),l=s.children(),c=l.length;return l.forEach(function(e,t){if(e===o[0])return!(n.tr={index:t,elem:e,length:c})}),n}}},_addRow:function(){var e=this._getLocationData();if(e){var t=e.tr,n=f(t.elem),i=e.td,o=i.length,a=document.createElement("tr"),r="",s=void 0;for(s=0;s<o;s++)r+="<td>&nbsp;</td>";a.innerHTML=r,f(a).insertAfter(n)}},_addCol:function(){var e=this._getLocationData();if(e){var t=e.tr,n=e.td,a=n.index;f(t.elem).parent().children().forEach(function(e){var t=f(e),n=t.children(),i=n.get(a),o=i.getNodeName().toLowerCase();f(document.createElement(o)).insertAfter(i)})}},_delRow:function(){var e=this._getLocationData();e&&f(e.tr.elem).remove()},_delCol:function(){var e=this._getLocationData();if(e){var t=e.tr,n=e.td,i=n.index;f(t.elem).parent().children().forEach(function(e){f(e).children().get(i).remove()})}},_delTable:function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(t){var n=t.parentUntil("table");n&&n.remove()}},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var o=i.getNodeName();"TD"===o||"TH"===o?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}}},_.prototype={constructor:_,onClick:function(){this._createPanel()},_createPanel:function(){var n=this,i=p("text-val"),e=p("btn"),t=new u(this,{width:350,tabs:[{title:"插入视频",tpl:'<div>\n                        <input id="'+i+'" type="text" class="block" placeholder="格式如：<iframe src=... ></iframe>"/>\n                        <div class="w-e-button-container">\n                            <button id="'+e+'" class="right">插入</button>\n                        </div>\n                    </div>',events:[{selector:"#"+e,type:"click",fn:function(){var e=f("#"+i),t=e.val().trim();return t&&n._insert(t),!0}}]}]});t.show(),this.panel=t},_insert:function(e){this.editor.cmd.do("insertHTML",e+"<p><br></p>")}},Q.prototype={constructor:Q,onClick:function(){this.editor.config.qiniu||(this._active?this._createEditPanel():this._createInsertPanel())},_createEditPanel:function(){var t=this.editor,e=p("width-30"),n=p("width-50"),i=p("width-100"),o=p("del-btn"),a=[{title:"编辑图片",tpl:'<div>\n                    <div class="w-e-button-container" style="border-bottom:1px solid #f1f1f1;padding-bottom:5px;margin-bottom:5px;">\n                        <span style="float:left;font-size:14px;margin:4px 5px 0 5px;color:#333;">最大宽度：</span>\n                        <button id="'+e+'" class="left">30%</button>\n                        <button id="'+n+'" class="left">50%</button>\n                        <button id="'+i+'" class="left">100%</button>\n                    </div>\n                    <div class="w-e-button-container">\n                        <button id="'+o+'" class="gray left">删除图片</button>\n                    </dv>\n                </div>',events:[{selector:"#"+e,type:"click",fn:function(){var e=t._selectedImg;return e&&e.css("max-width","30%"),!0}},{selector:"#"+n,type:"click",fn:function(){var e=t._selectedImg;return e&&e.css("max-width","50%"),!0}},{selector:"#"+i,type:"click",fn:function(){var e=t._selectedImg;return e&&e.css("max-width","100%"),!0}},{selector:"#"+o,type:"click",fn:function(){var e=t._selectedImg;return e&&e.remove(),!0}}]}],r=new u(this,{width:300,tabs:a});r.show(),this.panel=r},_createInsertPanel:function(){var e=this.editor,i=e.uploadImg,t=e.config,n=p("up-trigger"),o=p("up-file"),a=p("link-url"),r=p("link-btn"),s=[{title:"上传图片",tpl:'<div class="w-e-up-img-container">\n                    <div id="'+n+'" class="w-e-up-btn">\n                        <i class="w-e-icon-upload2"></i>\n                    </div>\n                    <div style="display:none;">\n                        <input id="'+o+'" type="file" multiple="multiple" accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp"/>\n                    </div>\n                </div>',events:[{selector:"#"+n,type:"click",fn:function(){var e=f("#"+o),t=e[0];if(!t)return!0;t.click()}},{selector:"#"+o,type:"change",fn:function(){var e=f("#"+o),t=e[0];if(!t)return!0;var n=t.files;return n.length&&i.uploadImg(n),!0}}]},{title:"网络图片",tpl:'<div>\n                    <input id="'+a+'" type="text" class="block" placeholder="图片链接"/></td>\n                    <div class="w-e-button-container">\n                        <button id="'+r+'" class="right">插入</button>\n                    </div>\n                </div>',events:[{selector:"#"+r,type:"click",fn:function(){var e=f("#"+a),t=e.val().trim();return t&&i.insertLinkImg(t),!0}}]}],l=[];(t.uploadImgShowBase64||t.uploadImgServer||t.customUploadImg)&&window.FileReader&&l.push(s[0]),t.showLinkImg&&l.push(s[1]);var c=new u(this,{width:300,tabs:l});c.show(),this.panel=c},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t._selectedImg?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},k.prototype={constructor:k,_create:function(e,t){var n=$("<div class='fe-body'></div>").appendTo(e),i=MathQuill.getInterface(2).MathField(n.get(0),{spaceBehavesLikeTab:!0,handlers:{edit:function(){t.handlers.change(i.latex())}}}),o=$("<div class='fe-toolbar'></div>").prependTo(e);$(Y.fomulaData.toolbar).each(function(){if(this.symbol.length){var t=$("<div class='fe-symbol-layer'></div>");$(this.symbol).each(function(){var e=this;$("<img src='static/images/formula/"+this.img+"'>").appendTo(t).click(function(){i.write(e.latex)})}),$("<div class='fe-symbol'><img src='static/images/formula/"+this.img+"'><br>"+this.className+"</div>").appendTo(o).append(t)}});var a=$("<div class='fe-footer'></div>").appendTo(e);return $('<button class="btn btn-submit">提交</button>').appendTo(a).click(function(){t.handlers.completed&&t.handlers.completed(i.latex())}),$('<button class="btn btn-cancel">取消</button>').appendTo(a).click(function(){t.handlers.cancel&&t.handlers.cancel()}),i},close:function(){this.$container.css("display","none")},open:function(){this.$container.css("display","block")}},M.prototype={constructor:M,onClick:function(e){this.editor,null===this.formulaEditor?this._createFormulaEditor():this._active?this._closeFormulaEditor():this._openFormulaEditor()},_createFormulaEditor:function(){var n=this,e=f('<div class="formula-editor-container fe-container"></div>');this.editor.$textContainerElem.append(e),this.formulaEditor=new k(e,{handlers:{change:function(e){},completed:function(e){var t="\\("+e+"\\)";n.editor.cmd.do("insertHTML","<p>"+t+"</p>"),n._closeFormulaEditor()},cancel:function(){n._closeFormulaEditor()}}})},_closeFormulaEditor:function(){this.formulaEditor.mq.latex(""),this.formulaEditor.close(),this._active=!1},_openFormulaEditor:function(){this.formulaEditor.open(),this._active=!0},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.selection.getSelectionContainerElem();i&&("A"===i.getNodeName()?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active")))}};var q={};q.bold=e,q.head=t,q.fontSize=n,q.fontName=i,q.link=a,q.italic=r,q.redo=s,q.strikeThrough=l,q.underline=g,q.undo=h,q.list=v,q.justify=b,q.foreColor=w,q.backColor=y,q.quote=x,q.code=E,q.emoticon=N,q.table=I,q.video=_,q.image=Q,q.formula=M,S.prototype={constructor:S,init:function(){var n=this,i=this.editor;((i.config||{}).menus||[]).forEach(function(e){var t=q[e];t&&"function"==typeof t&&(n.menus[e]=new t(i))}),this._addToToolbar(),this._bindEvent()},_addToToolbar:function(){var e=this.editor,i=e.$toolbarElem,t=this.menus,n=e.config,o=n.zIndex+1;C(t,function(e,t){var n=t.$elem;n&&(n.css("z-index",o),i.append(n))})},_bindEvent:function(){var e=this.menus,a=this.editor;C(e,function(e,t){var n=t.type;if(n){var i=t.$elem,o=t.droplist;t.panel,"click"===n&&t.onClick&&i.on("click",function(e){null!=a.selection.getRange()&&t.onClick(e)}),"droplist"===n&&o&&i.on("mouseenter",function(e){null!=a.selection.getRange()&&(o.showTimeoutId=setTimeout(function(){o.show()},200))}).on("mouseleave",function(e){o.hideTimeoutId=setTimeout(function(){o.hide()},0)}),"panel"===n&&t.onClick&&i.on("click",function(e){e.stopPropagation(),null!=a.selection.getRange()&&t.onClick(e)})}})},changeActive:function(){C(this.menus,function(e,t){t.tryChangeActive&&setTimeout(function(){t.tryChangeActive()},100)})}},T.prototype={constructor:T,init:function(){this._bindEvent()},clear:function(){this.html("<p><br></p>")},html:function(e){var t=this.editor,n=t.$textElem;if(null==e)return n.html().replace(/\u200b/gm,"");n.html(e),t.initSelection()},getJSON:function(){return function l(e){var c=[];return(e.childNodes()||[]).forEach(function(e){var t=void 0,n=e.nodeType;if(3===n&&(t=m(t=e.textContent)),1===n){(t={}).tag=e.nodeName.toLowerCase();for(var i=[],o=e.attributes||{},a=o.length||0,r=0;r<a;r++){var s=o[r];i.push({name:s.name,value:s.value})}t.attrs=i,t.children=l(f(e))}c.push(t)}),c}(this.editor.$textElem)},text:function(e){var t=this.editor,n=t.$textElem;if(null==e)return n.text().replace(/\u200b/gm,"");n.text("<p>"+e+"</p>"),t.initSelection()},append:function(e){var t=this.editor;t.$textElem.append(f(e)),t.initSelection()},_bindEvent:function(){this._saveRangeRealTime(),this._enterKeyHandle(),this._clearHandle(),this._pasteHandle(),this._tabHandle(),this._imgHandle(),this._dragHandle()},_saveRangeRealTime:function(){function t(e){n.selection.saveRange(),n.menus.changeActive()}var n=this.editor,i=n.$textElem;i.on("keyup",t),i.on("mousedown",function(e){i.on("mouseleave",t)}),i.on("mouseup",function(e){t(),i.off("mouseleave",t)})},_enterKeyHandle:function(){function i(e){var t=f("<p><br></p>");t.insertBefore(e),l.selection.createRangeByElem(t,!0),l.selection.restoreSelection(),e.remove()}var l=this.editor,o=l.$textElem;o.on("keyup",function(e){13===e.keyCode&&function(e){var t=l.selection.getSelectionContainerElem(),n=t.parent();if("<code><br></code>"===n.html())return i(t);n.equal(o)&&"P"!==t.getNodeName()&&(t.text()||i(t))}()}),o.on("keydown",function(e){13===e.keyCode?function(e){var t=l.selection.getSelectionContainerElem();if(t){var n=t.parent(),i=t.getNodeName(),o=n.getNodeName();if("CODE"===i&&"PRE"===o&&l.cmd.queryCommandSupported("insertHTML")){if(!0===l._willBreakCode){var a=f("<p><br></p>");return a.insertAfter(n),l.selection.createRangeByElem(a,!0),l.selection.restoreSelection(),l._willBreakCode=!1,e.preventDefault()}var r=l.selection.getRange().startOffset;l.cmd.do("insertHTML","\n"),l.selection.saveRange(),l.selection.getRange().startOffset===r&&l.cmd.do("insertHTML","\n");var s=t.html().length;l.selection.getRange().startOffset+1===s&&(l._willBreakCode=!0),e.preventDefault()}}}(e):l._willBreakCode=!1})},_clearHandle:function(){var i=this.editor,o=i.$textElem;o.on("keydown",function(e){if(8===e.keyCode)return"<p><br></p>"===o.html().toLowerCase().trim()?void e.preventDefault():void 0}),o.on("keyup",function(e){if(8===e.keyCode){var t=void 0,n=o.html().toLowerCase().trim();n&&"<br>"!==n||(t=f("<p><br/></p>"),o.html(""),o.append(t),i.selection.createRangeByElem(t,!1,!0),i.selection.restoreSelection())}})},_pasteHandle:function(){function a(){var e=Date.now(),t=!1;return 100<=e-A&&(t=!0),A=e,t}var r=this.editor,e=r.config,s=e.pasteFilterStyle,l=e.pasteTextHandle,c=e.pasteIgnoreImg,t=r.$textElem,A=0;t.on("paste",function(e){if(!H.isIE()&&(e.preventDefault(),a())){var t=function(e,t,n){var i=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData,o=void 0,a=void 0;if(null==i?o=window.clipboardData&&window.clipboardData.getData("text"):(o=i.getData("text/plain"),a=i.getData("text/html")),!a&&o&&(a="<p>"+m(o)+"</p>"),a){var r=a.split("</html>");return 2===r.length&&(a=r[0]),a=(a=(a=a.replace(/<(meta|script|link).+?>/gim,"")).replace(/<!--.*?-->/gm,"")).replace(/\s?data-.+?=('|").+?('|")/gim,""),n&&(a=a.replace(/<img.+?>/gim,"")),a=t?a.replace(/\s?(class|style)=('|").*?('|")/gim,""):a.replace(/\s?class=('|").*?('|")/gim,"")}}(e,s,c),n=D(e);n=n.replace(/\n/gm,"<br>");var i=r.selection.getSelectionContainerElem();if(i){var o=i.getNodeName();if("CODE"===o||"PRE"===o)return l&&d(l)&&(n=""+(l(n)||"")),void r.cmd.do("insertHTML","<p>"+n+"</p>");if(!t)return void(A=0);try{l&&d(l)&&(t=""+(l(t)||"")),r.cmd.do("insertHTML",t)}catch(e){l&&d(l)&&(n=""+(l(n)||"")),r.cmd.do("insertHTML","<p>"+n+"</p>")}}}}),t.on("paste",function(e){if(!H.isIE()&&(e.preventDefault(),a())){var t=function(e){var n=[];if(D(e))return n;var t=(e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData||{}).items;return t&&C(t,function(e,t){/image/i.test(t.type)&&n.push(t.getAsFile())}),n}(e);if(t&&t.length){var n=r.selection.getSelectionContainerElem();if(n){var i=n.getNodeName();"CODE"!==i&&"PRE"!==i&&r.uploadImg.uploadImg(t)}}}})},_tabHandle:function(){var a=this.editor;a.$textElem.on("keydown",function(e){if(9===e.keyCode&&a.cmd.queryCommandSupported("insertHTML")){var t=a.selection.getSelectionContainerElem();if(t){var n=t.parent(),i=t.getNodeName(),o=n.getNodeName();"CODE"===i&&"PRE"===o?a.cmd.do("insertHTML","    "):a.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;"),e.preventDefault()}}})},_imgHandle:function(){var n=this.editor,e=n.$textElem;e.on("click","img",function(e){var t=f(this);"1"!==t.attr("data-w-e")&&(n._selectedImg=t,n.selection.createRangeByElem(t),n.selection.restoreSelection())}),e.on("click  keyup",function(e){e.target.matches("img")||(n._selectedImg=null)})},_dragHandle:function(){var n=this.editor;f(document).on("dragleave drop dragenter dragover",function(e){e.preventDefault()}),n.$textElem.on("drop",function(e){e.preventDefault();var t=e.dataTransfer&&e.dataTransfer.files;t&&t.length&&n.uploadImg.uploadImg(t)})}},R.prototype={constructor:R,do:function(e,t){var n=this.editor;if(n._useStyleWithCSS||(document.execCommand("styleWithCSS",null,!0),n._useStyleWithCSS=!0),n.selection.getRange()){n.selection.restoreSelection();var i="_"+e;this[i]?this[i](t):this._execCommand(e,t),n.menus.changeActive(),n.selection.saveRange(),n.selection.restoreSelection(),n.change&&n.change()}},_insertHTML:function(e){var t=this.editor,n=t.selection.getRange();this.queryCommandSupported("insertHTML")?this._execCommand("insertHTML",e):n.insertNode?(n.deleteContents(),n.insertNode(f(e)[0])):n.pasteHTML&&n.pasteHTML(e)},_insertElem:function(e){var t=this.editor,n=t.selection.getRange();n.insertNode&&(n.deleteContents(),n.insertNode(e[0]))},_execCommand:function(e,t){document.execCommand(e,!1,t)},queryCommandValue:function(e){return document.queryCommandValue(e)},queryCommandState:function(e){return document.queryCommandState(e)},queryCommandSupported:function(e){return document.queryCommandSupported(e)}},F.prototype={constructor:F,getRange:function(){return this._currentRange},saveRange:function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),i=this.getSelectionContainerElem(n);i&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")&&this.editor.$textElem.isContain(i)&&(this._currentRange=n)}}},collapseRange:function(e){null==e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},getSelectionText:function(){return this._currentRange?this._currentRange.toString():""},getSelectionContainerElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return f(1===(t=e.commonAncestorContainer).nodeType?t:t.parentNode)},getSelectionStartElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return f(1===(t=e.startContainer).nodeType?t:t.parentNode)},getSelectionEndElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return f(1===(t=e.endContainer).nodeType?t:t.parentNode)},isSelectionEmpty:function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},restoreSelection:function(){var e=window.getSelection();e.removeAllRanges(),e.addRange(this._currentRange)},createEmptyRange:function(){var e=this.editor,t=this.getRange(),n=void 0;if(t&&this.isSelectionEmpty())try{H.isWebkit()?(e.cmd.do("insertHTML","&#8203;"),t.setEnd(t.endContainer,t.endOffset+1),this.saveRange(t)):(n=f("<strong>&#8203;</strong>"),e.cmd.do("insertElem",n),this.createRangeByElem(n,!0))}catch(e){}},createRangeByElem:function(e,t,n){if(e.length){var i=e[0],o=document.createRange();n?o.selectNodeContents(i):o.selectNode(i),"boolean"==typeof t&&o.collapse(t),this.saveRange(o)}}},U.prototype={constructor:U,show:function(e){var t=this;if(!this._isShow){this._isShow=!0;var n=this.$bar;this._isRender?this._isRender=!0:this.$textContainer.append(n),100<Date.now()-this._time&&e<=1&&(n.css("width",100*e+"%"),this._time=Date.now());var i=this._timeoutId;i&&clearTimeout(i),i=setTimeout(function(){t._hide()},500)}},_hide:function(){this.$bar.remove(),this._time=0,this._isShow=!1,this._isRender=!1}};var V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};j.prototype={constructor:j,_alert:function(e,t){var n=this.editor,i=n.config.debug,o=n.config.customAlert;if(i)throw new Error("wangEditor: "+(t||e));o&&"function"==typeof o?o(e):alert(e)},insertLinkImg:function(t){var e=this;if(t){var n=this.editor,i=n.config,o=i.linkImgCheck,a=void 0;if(o&&"function"==typeof o&&"string"==typeof(a=o(t)))return void alert(a);n.cmd.do("insertHTML",'<img src="'+t+'" style="max-width:100%;"/>');var r=document.createElement("img");r.onload=function(){var e=i.linkImgCallback;e&&"function"==typeof e&&e(t),r=null},r.onerror=function(){r=null,e._alert("插入图片错误",'wangEditor: 插入图片出错，图片链接是 "'+t+'"，下载该链接失败')},r.onabort=function(){r=null},r.src=t}},uploadImg:function(e){var i=this;if(e&&e.length){var o=this.editor,t=o.config,n=t.uploadImgServer,a=t.uploadImgShowBase64,r=t.uploadImgMaxSize,s=r/1024/1024,l=t.uploadImgMaxLength||1e4,c=t.uploadFileName||"",A=t.uploadImgParams||{},m=t.uploadImgParamsWithUrl,d=t.uploadImgHeaders||{},p=t.uploadImgHooks||{},u=t.uploadImgTimeout||3e3,g=t.withCredentials;null==g&&(g=!1);var f=t.customUploadImg;if(f||n||a){var h=[],v=[];if(B(e,function(e){var t=e.name,n=e.size;if(t&&n)return!1===/\.(jpg|jpeg|png|bmp|gif|webp)$/i.test(t)?void v.push("【"+t+"】不是图片"):r<n?void v.push("【"+t+"】大于 "+s+"M"):void h.push(e)}),v.length)return void this._alert("图片验证未通过: \n"+v.join("\n"));if(h.length>l)return void this._alert("一次最多上传"+l+"张图片");if(f&&"function"==typeof f)return void f(h,this.insertLinkImg.bind(this));var b=new FormData;if(B(h,function(e){var t=c||e.name;b.append(t,e)}),n&&"string"==typeof n){var w=n.split("#");n=w[0];var y=w[1]||"";C(A,function(e,t){m&&(0<n.indexOf("?")?n+="&":n+="?",n=n+e+"="+t),b.append(e,t)}),y&&(n+="#"+y);var x=new XMLHttpRequest;if(x.open("POST",n),x.timeout=u,x.ontimeout=function(){p.timeout&&"function"==typeof p.timeout&&p.timeout(x,o),i._alert("上传图片超时")},x.upload&&(x.upload.onprogress=function(e){var t=void 0,n=new U(o);e.lengthComputable&&(t=e.loaded/e.total,n.show(t))}),x.onreadystatechange=function(){var t=void 0;if(4===x.readyState){if(x.status<200||300<=x.status)return p.error&&"function"==typeof p.error&&p.error(x,o),void i._alert("上传图片发生错误","上传图片发生错误，服务器返回状态是 "+x.status);if("object"!==(void 0===(t=x.responseText)?"undefined":V(t)))try{t=JSON.parse(t)}catch(e){return p.fail&&"function"==typeof p.fail&&p.fail(x,o,t),void i._alert("上传图片失败","上传图片返回结果错误，返回结果是: "+t)}p.customInsert||"0"==t.errno?(p.customInsert&&"function"==typeof p.customInsert?p.customInsert(i.insertLinkImg.bind(i),t,o):(t.data||[]).forEach(function(e){i.insertLinkImg(e)}),p.success&&"function"==typeof p.success&&p.success(x,o,t)):(p.fail&&"function"==typeof p.fail&&p.fail(x,o,t),i._alert("上传图片失败","上传图片返回结果错误，返回结果 errno="+t.errno))}},p.before&&"function"==typeof p.before){var E=p.before(x,o,h);if(E&&"object"===(void 0===E?"undefined":V(E))&&E.prevent)return void this._alert(E.msg)}return C(d,function(e,t){x.setRequestHeader(e,t)}),x.withCredentials=g,void x.send(b)}a&&B(e,function(e){var t=i,n=new FileReader;n.readAsDataURL(e),n.onload=function(){t.insertLinkImg(this.result)}})}}}};var K=1;L.prototype={constructor:L,_initConfig:function(){this.config=Object.assign({},Y,this.customConfig);var e=this.config.lang||{},n=[];C(e,function(e,t){n.push({reg:new RegExp(e,"img"),val:t})}),this.config.langArgs=n},_initDom:function(){var o=this,e=this.toolbarSelector,t=f(e),n=this.textSelector,i=this.config,a=i.zIndex,r=void 0,s=void 0,l=void 0,c=void 0;this.$textContainerElem=s,null==n?(r=f("<div></div>"),s=f("<div></div>"),c=t.children(),t.append(r).append(s),r.css("background-color","#f1f1f1").css("border","1px solid #ccc"),s.css("border","1px solid #ccc").css("border-top","none").css("height","300px")):(r=t,s=f(n),c=s.children()),(l=f("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%"),c&&c.length?l.append(c):l.append(f("<p><br></p>")),s.append(l),r.addClass("w-e-toolbar"),s.addClass("w-e-text-container"),s.css("z-index",a),l.addClass("w-e-text");var A=p("toolbar-elem");r.attr("id",A);var m=p("text-elem");l.attr("id",m),this.$toolbarElem=r,this.$textContainerElem=s,this.$textElem=l,this.toolbarElemId=A,this.textElemId=m;var d=!0;s.on("compositionstart",function(){d=!1}),s.on("compositionend",function(){d=!0}),s.on("click keyup",function(){d&&o.change&&o.change()}),r.on("click",function(){this.change&&this.change()}),(i.onfocus||i.onblur)&&(this.isFocus=!1,f(document).on("click",function(e){var t=l.isContain(f(e.target)),n=r.isContain(f(e.target)),i=r[0]==e.target;if(t)o.isFocus||o.onfocus&&o.onfocus(),o.isFocus=!0;else{if(n&&!i)return;o.isFocus&&o.onblur&&o.onblur(),o.isFocus=!1}}))},_initCommand:function(){this.cmd=new R(this)},_initSelectionAPI:function(){this.selection=new F(this)},_initUploadImg:function(){this.uploadImg=new j(this)},_initMenus:function(){this.menus=new S(this),this.menus.init()},_initText:function(){this.txt=new T(this),this.txt.init()},initSelection:function(e){var t=this.$textElem,n=t.children();if(!n.length)return t.append(f("<p><br></p>")),void this.initSelection();var i=n.last();if(e){var o=i.html().toLowerCase(),a=i.getNodeName();if("<br>"!==o&&"<br/>"!==o||"P"!==a)return t.append(f("<p><br></p>")),void this.initSelection()}this.selection.createRangeByElem(i,!1,!0),this.selection.restoreSelection()},_bindEvent:function(){var t=0,n=this.txt.html(),e=this.config,i=e.onchangeTimeout;(!(i=parseInt(i,10))||i<=0)&&(i=200);var o=e.onchange;o&&"function"==typeof o&&(this.change=function(){var e=this.txt.html();e.length===n.length&&e===n||(t&&clearTimeout(t),t=setTimeout(function(){o(e),n=e},i))});var a=e.onblur;a&&"function"==typeof a&&(this.onblur=function(){var e=this.txt.html();a(e)});var r=e.onfocus;r&&"function"==typeof r&&(this.onfocus=function(){r()})},create:function(){this._initConfig(),this._initDom(),this._initCommand(),this._initSelectionAPI(),this._initText(),this._initMenus(),this._initUploadImg(),this.initSelection(!0),this._bindEvent()},_offAllEvent:function(){f.offAll()}};try{document}catch(e){throw new Error("请在浏览器环境下运行")}"function"!=typeof Object.assign&&(Object.assign=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1<n});var X=document.createElement("style");return X.type="text/css",X.innerHTML='.w-e-toolbar,.w-e-text-container,.w-e-menu-panel {  padding: 0;  margin: 0;  box-sizing: border-box;}.w-e-toolbar *,.w-e-text-container *,.w-e-menu-panel * {  padding: 0;  margin: 0;  box-sizing: border-box;}.w-e-clear-fix:after {  content: "";  display: table;  clear: both;}.w-e-toolbar .w-e-droplist {  position: absolute;  left: 0;  top: 0;  background-color: #fff;  border: 1px solid #f1f1f1;  border-right-color: #ccc;  border-bottom-color: #ccc;}.w-e-toolbar .w-e-droplist .w-e-dp-title {  text-align: center;  color: #999;  line-height: 2;  border-bottom: 1px solid #f1f1f1;  font-size: 13px;}.w-e-toolbar .w-e-droplist ul.w-e-list {  list-style: none;  line-height: 1;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {  color: #333;  padding: 5px 0;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {  background-color: #f1f1f1;}.w-e-toolbar .w-e-droplist ul.w-e-block {  list-style: none;  text-align: left;  padding: 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {  display: inline-block;  *display: inline;  *zoom: 1;  padding: 3px 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {  background-color: #f1f1f1;}.formula-editor-container {  position: absolute;  top: 0;  left: 0;  width: 100%;  height: 100%;  border: 1px solid #ccc;  border-top: 0;  box-shadow: 1px 1px 2px #ccc;  color: #333;  background-color: #fff;}.fe-container {  margin: auto;}.fe-container .fe-toolbar {  background: #f9f9f9;  border-bottom: 1px solid #e5e5e5;  position: relative;  z-index: 999;}.fe-container .fe-toolbar .fe-symbol {  width: 80px;  display: inline-block;  *display: inline;  *zoom: 1;  margin: 0px 0px 5px 10px;  font-size: 12px;  text-align: center;}.fe-container .fe-toolbar .fe-symbol img {  height: 30px;  display: inline-block;  *display: inline;  *zoom: 1;}.fe-container .fe-toolbar .fe-symbol:hover {  background: #e8e9ea;  cursor: pointer;}.fe-container .fe-toolbar .fe-symbol:hover .fe-symbol-layer {  display: block;}.fe-container .fe-toolbar .fe-symbol .fe-symbol-layer {  position: absolute;  max-width: 200px;  background: #fff;  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);  display: none;  margin-top: -18px;}.fe-container .fe-toolbar .fe-symbol .fe-symbol-layer img {  float: left;  padding: 5px;}.fe-container .fe-toolbar .fe-symbol .fe-symbol-layer img:hover {  background: #e8e9ea;}.fe-container .fe-body {  width: calc(100% - 20px);  height: calc(100% - 160px);  outline: none;  border: 0!important;}.fe-container .fe-footer {  border-top: 1px solid #e5e5e5;  padding: 10px 20px 0px 0px;  text-align: center;}.fe-container .fe-footer .btn {  font-size: 16px;  color: #ffffff;  border-radius: 4px;  border: 0;  width: 80px;  height: 30px;  margin: 0px 5px 0px 5px;}.fe-container .fe-footer .btn.btn-cancel {  background: #0f7595;}.fe-container .fe-footer .btn.btn-submit {  background: #0f7595;}@font-face {  font-family: \'w-e-icon\';  src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABhQAAsAAAAAGAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPBGNtYXAAAAFoAAABBAAAAQQrSf4BZ2FzcAAAAmwAAAAIAAAACAAAABBnbHlmAAACdAAAEvAAABLwfpUWUWhlYWQAABVkAAAANgAAADYQp00kaGhlYQAAFZwAAAAkAAAAJAfEA+FobXR4AAAVwAAAAIQAAACEeAcD7GxvY2EAABZEAAAARAAAAERBSEX+bWF4cAAAFogAAAAgAAAAIAAsALZuYW1lAAAWqAAAAYYAAAGGmUoJ+3Bvc3QAABgwAAAAIAAAACAAAwAAAAMD3gGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAA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AFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format(\'truetype\');  font-weight: normal;  font-style: normal;}[class^="w-e-icon-"],[class*=" w-e-icon-"] {  /* use !important to prevent issues with browser extensions that change fonts */  font-family: \'w-e-icon\' !important;  speak: none;  font-style: normal;  font-weight: normal;  font-variant: normal;  text-transform: none;  line-height: 1;  /* Better Font Rendering =========== */  -webkit-font-smoothing: antialiased;  -moz-osx-font-smoothing: grayscale;}.w-e-icon-close:before {  content: "\\f00d";}.w-e-icon-upload2:before {  content: "\\e9c6";}.w-e-icon-trash-o:before {  content: "\\f014";}.w-e-icon-header:before {  content: "\\f1dc";}.w-e-icon-pencil2:before {  content: "\\e906";}.w-e-icon-paint-brush:before {  content: "\\f1fc";}.w-e-icon-image:before {  content: "\\e90d";}.w-e-icon-play:before {  content: "\\e912";}.w-e-icon-location:before {  content: "\\e947";}.w-e-icon-undo:before {  content: "\\e965";}.w-e-icon-redo:before {  content: "\\e966";}.w-e-icon-quotes-left:before {  content: "\\e977";}.w-e-icon-list-numbered:before {  content: "\\e9b9";}.w-e-icon-list2:before {  content: "\\e9bb";}.w-e-icon-link:before {  content: "\\e9cb";}.w-e-icon-happy:before {  content: "\\e9df";}.w-e-icon-bold:before {  content: "\\ea62";}.w-e-icon-underline:before {  content: "\\ea63";}.w-e-icon-italic:before {  content: "\\ea64";}.w-e-icon-strikethrough:before {  content: "\\ea65";}.w-e-icon-table2:before {  content: "\\ea71";}.w-e-icon-paragraph-left:before {  content: "\\ea77";}.w-e-icon-paragraph-center:before {  content: "\\ea78";}.w-e-icon-paragraph-right:before {  content: "\\ea79";}.w-e-icon-terminal:before {  content: "\\f120";}.w-e-icon-page-break:before {  content: "\\ea68";}.w-e-icon-cancel-circle:before {  content: "\\ea0d";}.w-e-icon-font:before {  content: "\\ea5c";}.w-e-icon-text-heigh:before {  content: "\\ea5f";}.w-e-toolbar {  display: -ms-flexbox;  display: flex;  padding: 0 5px;  /* flex-wrap: wrap; */  /* 单个菜单 */}.w-e-toolbar .w-e-menu {  position: relative;  text-align: center;  padding: 5px 10px;  cursor: pointer;}.w-e-toolbar .w-e-menu i {  color: #999;}.w-e-toolbar .w-e-menu:hover i {  color: #333;}.w-e-toolbar .w-e-active i {  color: #1e88e5;}.w-e-toolbar .w-e-active:hover i {  color: #1e88e5;}.w-e-text-container .w-e-panel-container {  position: absolute;  top: 0;  left: 50%;  border: 1px solid #ccc;  border-top: 0;  box-shadow: 1px 1px 2px #ccc;  color: #333;  background-color: #fff;  /* 为 emotion panel 定制的样式 */  /* 上传图片的 panel 定制样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-close {  position: absolute;  right: 0;  top: 0;  padding: 5px;  margin: 2px 5px 0 0;  cursor: pointer;  color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-close:hover {  color: #333;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title {  list-style: none;  display: -ms-flexbox;  display: flex;  font-size: 14px;  margin: 2px 10px 0 10px;  border-bottom: 1px solid #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-item {  padding: 3px 5px;  color: #999;  cursor: pointer;  margin: 0 3px;  position: relative;  top: 1px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-active {  color: #333;  border-bottom: 1px solid #333;  cursor: default;  font-weight: 700;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content {  padding: 10px 15px 10px 15px;  font-size: 16px;  /* 输入框的样式 */  /* 按钮的样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content button:focus {  outline: none;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea {  width: 100%;  border: 1px solid #ccc;  padding: 5px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus {  border-color: #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text] {  border: none;  border-bottom: 1px solid #ccc;  font-size: 14px;  height: 20px;  color: #333;  text-align: left;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].small {  width: 30px;  text-align: center;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].block {  display: block;  width: 100%;  margin: 10px 0;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {  border-bottom: 2px solid #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {  font-size: 14px;  color: #1e88e5;  border: none;  padding: 5px 10px;  background-color: #fff;  cursor: pointer;  border-radius: 3px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {  float: left;  margin-right: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {  float: right;  margin-left: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {  color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {  color: #c24f4a;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {  background-color: #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {  content: "";  display: table;  clear: both;}.w-e-text-container .w-e-panel-container .w-e-emoticon-container .w-e-item {  cursor: pointer;  font-size: 18px;  padding: 0 3px;  display: inline-block;  *display: inline;  *zoom: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container {  text-align: center;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn {  display: inline-block;  *display: inline;  *zoom: 1;  color: #999;  cursor: pointer;  font-size: 60px;  line-height: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover {  color: #333;}.w-e-text-container {  position: relative;}.w-e-text-container .w-e-progress {  position: absolute;  background-color: #1e88e5;  bottom: 0;  left: 0;  height: 1px;}.w-e-text {  padding: 0 10px;  overflow-y: scroll;}.w-e-text p,.w-e-text h1,.w-e-text h2,.w-e-text h3,.w-e-text h4,.w-e-text h5,.w-e-text table,.w-e-text pre {  margin: 10px 0;  line-height: 1.5;}.w-e-text ul,.w-e-text ol {  margin: 10px 0 10px 20px;}.w-e-text blockquote {  display: block;  border-left: 8px solid #d0e5f2;  padding: 5px 10px;  margin: 10px 0;  line-height: 1.4;  font-size: 100%;  background-color: #f1f1f1;}.w-e-text code {  display: inline-block;  *display: inline;  *zoom: 1;  background-color: #f1f1f1;  border-radius: 3px;  padding: 3px 5px;  margin: 0 3px;}.w-e-text pre code {  display: block;}.w-e-text table {  border-top: 1px solid #ccc;  border-left: 1px solid #ccc;}.w-e-text table td,.w-e-text table th {  border-bottom: 1px solid #ccc;  border-right: 1px solid #ccc;  padding: 3px 5px;}.w-e-text table th {  border-bottom: 2px solid #ccc;  text-align: center;}.w-e-text:focus {  outline: none;}.w-e-text img {  cursor: pointer;}.w-e-text img:hover {  box-shadow: 0 0 5px #333;}',document.getElementsByTagName("HEAD").item(0).appendChild(X),window.wangEditor||L}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),o=n(9);var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.delay=30,this.buffer=e,this.timeout=null,this.mjRunning=!1,this.refreshNeeded=!1,this.oldText=null,this.number=0}return i(t,[{key:"update",value:function(e){this.timeout&&clearTimeout(this.timeout);var t=(0,o.htmlDecodeByRegExp)(e),n=MathJax.Callback(["createPreview",this,t]);this.timeout=setTimeout(n,this.delay)}},{key:"createPreview",value:function(e){if(this.timeout=null,this.mjRunning)this.refreshNeeded=!0;else{var t=(0,o.htmlDecodeByRegExp)(e);(t=(t=t.replace(/\\\[/g,"\\(")).replace(/\\\]/g,"\\)"))!==this.oldtext&&(this.buffer.innerHTML=this.oldtext=t,this.mjRunning=!0,MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.buffer],["creviewDone",this]))}}},{key:"creviewDone",value:function(){this.mjRunning=!1,this.refreshNeeded&&(this.refreshNeeded=!1,this.createPreview())}}]),t}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlDecodeByRegExp=function(e){return 0==e.length?"":e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&#39;/g,"'").replace(/&quot;/g,'"')}},function(e,t,n){"use strict";var i=n(2);n.n(i).a},function(e,t,n){var i=n(12);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,n(16).default)("1fdf4c3a",i,!1,{})},function(e,t,n){(e.exports=n(13)(!1)).push([e.i,".editor-container[data-v-2b260b38] {\n  display: flex;\n  width: 100%;\n}\n.editor-wrap[data-v-2b260b38] {\n  text-align: left;\n  width: 60%;\n}\n.preview-wrap[data-v-2b260b38] {\n  width: 40%;\n  height: 100%;\n  padding-top: 34px;\n  padding-left: 10px;\n  text-align: left;\n}\n",""])},function(e,t){e.exports=function(n){var r=[];return r.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(r=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),a=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(a).concat([o]).join("\n")}var r;return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},r.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(n[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&n[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),r.push(a))}},r}},function(e,t,i){var n,o,a,l={},c=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=n.apply(this,arguments)),o}),r=(a={},function(e,t){if("function"==typeof e)return e();if(void 0===a[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}a[e]=n}return a[e]}),A=null,m=0,s=[],d=i(15);function p(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=l[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(b(i.parts[a],t))}else{var r=[];for(a=0;a<i.parts.length;a++)r.push(b(i.parts[a],t));l[i.id]={id:i.id,refs:1,parts:r}}}}function u(e,t){for(var n=[],i={},o=0;o<e.length;o++){var a=e[o],r=t.base?a[0]+t.base:a[0],s={css:a[1],media:a[2],sourceMap:a[3]};i[r]?i[r].parts.push(s):n.push(i[r]={id:r,parts:[s]})}return n}function g(e,t){var n=r(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=s[s.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),s.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=r(e.insertAt.before,n);n.insertBefore(t,o)}}function f(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=s.indexOf(e);0<=t&&s.splice(t,1)}function h(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return i.nc}();n&&(e.attrs.nonce=n)}return v(t,e.attrs),g(e,t),t}function v(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function b(t,e){var n,i,o,a,r,s;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}if(e.singleton){var l=m++;n=A||(A=h(e)),i=x.bind(null,n,l,!1),o=x.bind(null,n,l,!0)}else o=t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=e,s=document.createElement("link"),void 0===r.attrs.type&&(r.attrs.type="text/css"),r.attrs.rel="stylesheet",v(s,r.attrs),g(r,s),i=function(e,t,n){var i=n.css,o=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||a)&&(i=d(i));o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([i],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(r),s&&URL.revokeObjectURL(s)}.bind(null,n=s,e),function(){f(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(e),i=function(e,t){var n=t.css,i=t.media;i&&e.setAttribute("media",i);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){f(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}e.exports=function(e,r){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(r=r||{}).attrs="object"==typeof r.attrs?r.attrs:{},r.singleton||"boolean"==typeof r.singleton||(r.singleton=c()),r.insertInto||(r.insertInto="head"),r.insertAt||(r.insertAt="bottom");var s=u(e,r);return p(s,r),function(e){for(var t=[],n=0;n<s.length;n++){var i=s[n];(o=l[i.id]).refs--,t.push(o)}e&&p(u(e,r),r);for(n=0;n<t.length;n++){var o;if(0===(o=t[n]).refs){for(var a=0;a<o.parts.length;a++)o.parts[a]();delete l[o.id]}}}};var w,y=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function x(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var a=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,a=o+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var n,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(n=0===i.indexOf("//")?i:0===i.indexOf("/")?o+i:a+i.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")})}},function(e,t,n){"use strict";function l(e,t){for(var n=[],i={},o=0;o<t.length;o++){var a=t[o],r=a[0],s={id:e+":"+o,css:a[1],media:a[2],sourceMap:a[3]};i[r]?i[r].parts.push(s):n.push(i[r]={id:r,parts:[s]})}return n}n.r(t),n.d(t,"default",function(){return u});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},o=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,r=0,A=!1,s=function(){},m=null,d="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function u(r,e,t,n){A=t,m=n||{};var s=l(r,e);return g(s),function(e){for(var t=[],n=0;n<s.length;n++){var i=s[n];(o=c[i.id]).refs--,t.push(o)}e?g(s=l(r,e)):s=[];for(n=0;n<t.length;n++){var o;if(0===(o=t[n]).refs){for(var a=0;a<o.parts.length;a++)o.parts[a]();delete c[o.id]}}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],i=c[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(h(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(h(n.parts[o]));c[n.id]={id:n.id,refs:1,parts:a}}}}function f(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function h(t){var n,i,e=document.querySelector("style["+d+'~="'+t.id+'"]');if(e){if(A)return s;e.parentNode.removeChild(e)}if(p){var o=r++;e=a||(a=f()),n=w.bind(null,e,o,!1),i=w.bind(null,e,o,!0)}else e=f(),n=function(e,t){var n=t.css,i=t.media,o=t.sourceMap;i&&e.setAttribute("media",i);m.ssrId&&e.setAttribute(d,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,e),i=function(){e.parentNode.removeChild(e)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}var v,b=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function w(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var a=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}}])});