webpackJsonp([22],{"+4Sa":function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{class:{"size-small-font":"small"===e.config.size||"mini"===e.config.size,"label-position-top":e.config.labelPositionTop,elementAddDelete:!0},style:"line-height:30px;"+e.config.style,attrs:{label:e.config.label,title:e.config.title,"label-width":e.config.labelWidth?e.config.labelWidth:e.config.label?"80px":"0px"},nativeOn:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.rightClick(t)}}},[n("div",{staticClass:"combine-item"},[e._l(e.config.labels,function(t,i){return n("label",{key:i,style:(e.itemDefault&&e.itemDefault.style?e.itemDefault.style:"")+";text-align:center;font-size:13px;color: #606266;width: 100%;"},[e._v(e._s(t))])}),e._v(" "),n("elementButton",{staticStyle:{width:"auto"},attrs:{config:Object.assign({size:"mini"},e.itemDefault,e.addButton)},on:{buttonClick:e.add,dialogButtonClick:e.dialogButtonClick}})],2),e._v(" "),e._l(e.value.config,function(t,i){return e.config.addType&&"keyValue_custom"!=e.config.addType?e._e():n("div",{key:i,staticClass:"combine-item"},[n("div",{staticClass:"combine-item-component"},[n(t.type,e._g({tag:"component",class:t.column?"element-"+t.column:"",style:e.itemDefault?e.itemDefault.style:"",attrs:{config:e.configHandle(t),form:e.value.value}},Object.assign({},e.$listeners,{config:function(t,n,o,r){return e.componentRightClick(t,n,o,r,i)}})))],1),e._v(" "),n("elementButton",{staticStyle:{width:"auto"},attrs:{config:Object.assign({size:"mini"},e.itemDefault,e.deleteButton)},on:{buttonClick:function(t,n){return e.del(t,n[i],i)}}})],1)}),e._v(" "),e._l(e.value,function(t,i){return"keyValue_component"==e.config.addType?n("div",{key:i,staticClass:"combine-item"},[n("div",{staticClass:"combine-item-component"},[n(e.config.config.type,e._g({tag:"component",class:e.config.config.column?"element-"+e.config.config.column:"",style:e.itemDefault?e.itemDefault.style:"",attrs:{config:e.configHandle(e.config.config,i),form:e.value}},Object.assign({},e.$listeners,{config:function(t,n,o,r){return e.componentRightClick(t,n,o,r,i)}})))],1),e._v(" "),n("elementButton",{staticStyle:{width:"auto"},attrs:{config:Object.assign({size:"mini"},e.itemDefault,e.deleteButton)},on:{buttonClick:function(t,n){return e.del(t,n[i],i)}}})],1):e._e()}),e._v(" "),e._l(e.value,function(t,i){return"component"==e.config.addType?n("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{list:e.value,disabled:!e.configing},expression:"{list:value,disabled:!configing}"}],key:i,staticClass:"combine-item"},[n("div",{staticClass:"combine-item-component"},[n(t.type,e._g({tag:"component",class:t.column?"element-"+t.column:"",style:e.itemDefault?e.itemDefault.style:"",attrs:{config:Object.assign({},t,e.itemDefault),form:e.componentForm,label:t.label}},Object.assign({},e.$listeners,{config:function(t,n,o){return e.itemConfig(t,n,o,i)}})))],1),e._v(" "),n("elementButton",{staticStyle:{width:"auto"},attrs:{config:Object.assign({size:"mini"},e.itemDefault,e.deleteButton)},on:{buttonClick:function(t,n){return e.del(t,n,i)}}})],1):e._e()}),e._v(" "),e._l(e.value,function(t,i,o){return"keyValue_components"==e.config.addType||"keyValue"==e.config.addType?n("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{list:e.value,disabled:!e.configing},expression:"{list:value,disabled:!configing}"}],key:i,staticClass:"combine-item"},[n("div",{staticClass:"combine-item-component"},e._l(e.cfg,function(r,a,l){return n(r.type,e._g({key:a,tag:"component",style:e.itemDefault?e.itemDefault.style:"",attrs:{config:Object.assign({},e.itemDefault,r,e.keyValue?{name:l?i:String(o)}:{}),form:e.keyValue?l?e.value:e.formKey:t,label:r.label}},Object.assign({},e.$listeners,e.keyValue?{change:function(n,o){return e.keyChange(n,o,i,t)}}:{})),[e._v("\n >")])}),1),e._v(" "),n("elementButton",{staticStyle:{width:"auto"},attrs:{config:Object.assign({size:"mini"},e.itemDefault,e.deleteButton)},on:{buttonClick:function(t,n){return e.del(t,n,i)}}})],1):e._e()})],2)},staticRenderFns:[]}},"+IGR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qZ9B"),o=n.n(i),r=Object.assign||function(e){for(var t=1;t0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},"+sR2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("NzHd"),o=(n.n(i),n("8U58")),r=n.n(o),a=n("8Nur"),l=(n.n(a),n("5IAE")),s=(n.n(l),n("c6RA")),c=(n.n(s),n("4/hK")),u=(n.n(c),n("qZ9B")),d=n.n(u),f=Object.assign||function(e){for(var t=1;t1&&this.$confirm("要清除所有文件吗","操作确认",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.onRemove({},[]),t.$set(t.form,t.config.name,[])}).catch(function(){})},onPreview:function(e){"text"!=this.config.listType&&(!e.raw||e.raw&&e.raw.type&&e.raw.type.match(/image\//))&&(this.previewURL=e.url,this.preview=!0),this.$emit("imagePreview",e)},onExceed:function(e,t){this.$message({showClose:!0,message:"超过最大上传数量限制:"+this.config.limit}),this.$emit("imageExceed",e,t)},onProgress:function onProgress(event,file,fileList){var _this4=this;if("function"==typeof this.config.onProgress&&this.config.onProgress(file,fileList,event,this),"string"==typeof this.config.onProgress){var progress=function progress(file,fileList,event,vue){eval(_this4.config.onProgress)};progress(file,fileList,event,this)}},rightClick:function(e){var t;this.toConfig(e,_extends({},this.basicAttr,(_defineProperty(t={visibility:this.visibilityAttr,action:{type:"elementText",label:"上传地址",name:"action"},autoUpload:{type:"elementSwitch",label:"自动上传",name:"autoUpload"},showFileList:{type:"elementSwitch",label:"显示列表",name:"showFileList"},readonly:this.readonlyAttr,limit:{type:"elementInputNumber",label:"最大限制",name:"limit",min:1,max:999},multiple:{type:"elementSwitch",label:"多选",name:"multiple"},drag:{type:"elementSwitch",label:"拖拽",name:"drag"}},"drag",{type:"elementSwitch",label:"右键清空",name:"clearFiles"}),_defineProperty(t,"listType",{type:"elementSelect",label:"列表样式",name:"listType",source:"options",options:[{value:"text",label:"文件列表"},{value:"picture",label:"图片列表"},{value:"picture-card",label:"图片墙"}]}),_defineProperty(t,"accept",{type:"elementSelect",label:"文件类型",name:"accept",allowCreate:!0,multiple:!0,source:"options",options:[{value:"",label:"所有"},{value:"image/*",label:"图片"},{value:"text/*,.pdf,.doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",label:"文本"},{value:"video/*",label:"视频"},{value:"audio/*",label:"音频"}]}),_defineProperty(t,"buttonConfig",{type:"elementComponents",label:"按钮配置",name:"buttonConfig",itemDefault:{size:"small"},labelPositionTop:!0,marginLeft:"0px",config:this.buttonAttr()}),t)))}}}},1:function(e,t){},"1ETl":function(e,t,n){var i=n("VU/8")(n("oRK/"),n("+ham"),!1,null,null,null);e.exports=i.exports},"1H6C":function(e,t,n){var i=function(){return this}()||Function("return this")(),o=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,r=o&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,e.exports=n("HhN8"),o)i.regeneratorRuntime=r;else try{delete i.regeneratorRuntime}catch(e){i.regeneratorRuntime=void 0}},"21It":function(e,t,n){"use strict";var i=n("FtD3");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"2UdK":function(e,t,n){var i=n("EH9y");"string"==typeof i&&(i=[[e.i,i,""]]);var o={transform:void 0};n("MTIv")(i,o);i.locals&&(e.exports=i.locals)},"2frm":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("Xxa5"),o=n.n(i),r="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};function a(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(o,r){try{var a=t[o](r),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then(function(e){i("next",e)},function(e){i("throw",e)});e(l)}("next")})}}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"676463563441";return(this.isMobile()?"taobao":"https")+"://item.taobao.com/item.htm?ft=t&id="+e},taobaoA:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"676463563441",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1元加入会员";return''+t+""},payA:function(){return''+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1元加入会员")+""},regexp:{url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")},url:function(e){var t={};try{e=e||"";return t=new URL(e,window.location)}catch(e){void 0===window.hasUrlAlert&&(alert("浏览器版本不支持URL处理,可能无法正常运行"),window.hasUrlAlert=!0),t=location}return t.searchParams||(t.searchParams={get:function(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),i=t.search.substr(1).match(n);return i&&2 in i&&i[2]?unescape(i[2]):""}}),t},isMobile:function(e){return(e=e||navigator.userAgent).match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},downloadA:function(e,t,n,i){var o=document.createElement("a");if(!i){n=n||"";var r=(t=decodeURIComponent(t)).match(/\/([^\?/]+\.[^\/?]+)($|\/$|\?|\/\?)/),a=(i=r&&1 in r?this.url(r[1]).pathname.substring(1):"media_"+(new Date).toLocaleString()+"_"+this.rand(100,999),n.substring(n.lastIndexOf("/")+1));i=i.lastIndexOf(".")>=0?i:i+"."+a}return o.href=e,o.setAttribute("referrerpolicy","no-referrer"),o.target="_blank",o.download=i,o.click(),o},filename:function(e){return e.match(this.regexp.url)&&(e=new URL(e).pathname),e.substr(0,e.lastIndexOf("."))},ext:function(e){return e.match(this.regexp.url)&&(e=new URL(e).pathname),e.substr(e.lastIndexOf(".")+1).toLowerCase()},dateFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":",o=((e=e?new Date(e):new Date).getFullYear(),e.getMonth()+1>=10?e.getMonth()+1:"0"+(e.getMonth()+1)),r=e.getDate()>=10?e.getDate():"0"+e.getDate(),a=e.getHours()>=10?e.getHours():"0"+e.getHours(),l=e.getMinutes()>=10?e.getMinutes():"0"+e.getMinutes(),s=e.getSeconds()>=10?e.getSeconds():"0"+e.getSeconds();return t?e.getFullYear()+n+o+n+r+" "+a+i+l+i+s:e.getFullYear()+n+o+n+r},round:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"round";return Math[n](+e+"e"+t)/Math.pow(10,t)},rand:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments[3],o=this.round(Math.random()*(t-e),n)+e;if(void 0!=i)for(var r=0;o==i&&r<10;)o=this.round(Math.random()*(t-e),n)+e,r++;return o},ucfirst:function(e){return e.substring(0,1).toUpperCase()+e.substring(1)},intersect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.unique(e.constructor==Array?e.join(""):e),i=this.unique(t.constructor==Array?t.join(""):t,"set"),o=Array.from(new Set(n.filter(function(e){return i.has(e)})));return e.constructor==String?o.join(""):o},union:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.constructor==Array?e.join(""):e,i=t.constructor==Array?t.join(""):t;return this.unique(n+i,e.constructor==String?"string":"array")},duplicate:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.split(e.constructor==Array?e.join(""):e),n=Array.from(new Set(t)),i=new Set,o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.unique(e.constructor==Array?e.join(""):e),i=this.unique(t.constructor==Array?t.join(""):t,"set"),o=Array.from(new Set(n.filter(function(e){return!i.has(e)})));return e.constructor==String?o.join(""):o},split:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/[\u0E80-\u0EFF]{1,2}|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g);return e||[]},unique:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"array",n=this.split(e);switch(t){case"set":return new Set(n);case"array":return[].concat(l(new Set(n)));case"string":return[].concat(l(new Set(n))).join("")}},array_unique:function(e){var t=new Set(e);return t.delete(void 0),Array.from(t)},array_column:function(e,t){var n=[];return e.forEach(function(e){return n.push(e[t])}),n},average:function(e){return e.length?e.reduce(function(e,t){return e+t})/e.length:0},container:function(e,t,n){return void 0!==n&&e.push(n),e.splice(0,e.length-t),e},rankN:function(e,t,n,i){var o=e.findIndex(function(e){return n[i]>e[i]});return e.splice(o,0,n),e.splice(t,e.length-t+1),e},isElementIntersect:function(e,t){e instanceof HTMLElement&&t instanceof HTMLElement&&(e=e.getBoundingClientRect(),t=t.getBoundingClientRect());var n=Math.max(e.x+e.width,t.x+t.width)-Math.min(e.x,t.x),i=Math.max(e.y+e.height,t.y+t.height)-Math.min(e.y,t.y),o=e.width+t.width,r=e.height+t.height;return n<=o&&i<=r},range:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return(n-t)/((arguments.length>4&&void 0!==arguments[4]?arguments[4]:1)-i)*(e-i)+t},median:function(e){e.sort(function(e,t){return e-t});var t=e[Math.floor(e.length/2)];return t||0},sleep:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(function(t,n){setTimeout(t,e)})},progress:function(e,t){var n=(new Date).getTime(),i=Number(e.loaded),o=Number(e.total);e.secondLoaded=(n-t)/1e3,e.spb=i?e.secondLoaded/i:0,e.secondTotal=e.spb*o;var r=e.secondTotal>60?"'":'"';return e.minitueRate=e.secondTotal>60?this.round(e.secondLoaded/60,1)+r+"/"+this.round(e.secondTotal/60,1,"ceil")+r:"",e.loadedPercent=(o?Math.round(i/o*100):0)+"% ",e.text=e.loadedPercent+e.minitueRate,e},loadProgress:function(){var e=a(o.a.mark(function e(t,n){var i,r,a,l;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=APP.$loading({background:"rgba(0,0,0,0.5)",spinner:"el-icon-loading"}),r=new Date,t.constructor==Object&&(t=Object.values(t)),a=0;case 3:if(!(a0&&void 0!==arguments[0]?arguments[0]:{},n=this;t=Object.assign({type:[],download:!0},t);var i={target:document.body,background:"rgba(0,0,0,0)"};t.loading="loading"in t?t.loading?Object.assign(i,t.loading):t.loading:i;var o=!!t.loading&&t.vue.$loading(t.loading),r=(new Date).getTime();return t.fetchOption=Object.assign({method:"POST",referrer:"no-referrer",referrerPolicy:"no-referrer",mode:"cors"},t.fetchOption),!(!fetch||!Blob)&&(fetch(t.url,t.fetchOption).then(function(i){if(200!=i.status&&206!=i.status)throw(a=new Error(i.statusText)).code=1,a.status=i.status,a;var a,l=i.body.getReader(),s=i.headers,c=s.get("content-type"),u=c.split(";")[0],d=u.split("/")[0];if(e.contentType=c,t.type.length&&t.type.indexOf(u)<0&&t.type.indexOf(d)<0)throw console.log("content-type",c),(a=new Error("bad content-type")).code="2",a;var f=Number(s.get("content-length"));return{headers:s,stream:new ReadableStream({start:function(e){return function i(a){return l.read().then(function(l){var s=l.done,c=l.value;if(s)return o&&o.close(),void e.close();a+=c.length;var u=n.progress({total:f,loaded:a},r);return o&&(o.text=u.text),"function"==typeof t.progress&&t.progress(u,o),e.enqueue(c),i(a)})}(0)}})}}).then(function(e){return new Response(e.stream,{headers:e.headers})}).then(function(e){return e.arrayBuffer()}).then(function(i){var o=new Blob([i],{type:e.contentType}),r=URL.createObjectURL(o);t.download&&n.downloadA(r,t.url,o.type),"function"==typeof t.success&&t.success(r,t,o),"function"==typeof t.complete&&t.complete(r,t,o)}).catch(function(e){o&&(o.close(),i.target.className=i.target.className+" el-loading-parent--relative"),"function"==typeof t.error&&t.error(e,t),"function"==typeof t.complete&&t.complete("",t)}),!0)}),axios:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){var t=this;e.axiosOption=Object.assign({method:"post"},e.axiosOption);var n={target:(e=Object.assign({errorMsg:"请求失败!",msgDuration:2e3,silent:!1},e)).vue.$el,background:"rgba(0,0,0,0)"};e.loading="loading"in e?e.loading?Object.assign(n,e.loading):e.loading:n;var i=!!e.loading&&e.vue.$loading(e.loading);if("function"==typeof e.onDownloadProgress){var o=(new Date).getTime();e.axiosOption.onDownloadProgress=function(t){t=e.vue.my.progress(t,o),i&&(i.text=t.text),e.onDownloadProgress(t,e,i)}}axios(e.axiosOption).then(function(n){var o=n.data;if("object"==(void 0===o?"undefined":r(o)))if(!e.silent&&"msg"in o&&o.msg.trim()&&t.message({message:o.msg,type:"type"in o?o.type:"info",duration:"error"==o.type?0:e.msgDuration}),"data"in o){var a=o.data,l=r(o.data);"string"==l&&!a||"object"==l&&!Object.keys(a).length?"function"==typeof e.fail&&e.fail(n,e,o):"function"==typeof e.success&&e.success(n,e,o)}else"function"==typeof e.fail&&e.fail(n,e,o);"function"==typeof e.complete&&e.complete(n,e,o),i&&i.close()}).catch(function(n){var o=void 0,r="response"in n&&n.response?n.response:{};console.log("axios error",r),"function"==typeof e.error&&e.error(n,e,r),"function"==typeof e.complete&&e.complete(n,e,r),r&&"status"in r?419!=r.status||"refreshCsrf"in e?401==r.status&&"Unauthorized"==r.statusText?(e.errorMsg="未授权,请刷新重新登录",o=e.errorMsg):o=e.errorMsg+" "+n:(e.refreshCsrf=!0,e.vue.my.axios({vue:e.vue,refreshCsrf:!1,axiosOption:{url:"refreshCsrf"},success:function(t,n,i){console.log("令牌过期,重新请求..."),window.axios.defaults.headers.common["X-CSRF-TOKEN"]=i.data;var o=document.head.querySelector('meta[name="csrf-token"]');o&&(o.content=i.data),e.vue.my.axios(e)}})):o=e.errorMsg+" "+n,o&&t.message({message:o,type:"error",duration:0}),i&&i.close()})}),axiosAll:function(e){var t=this,n=!!(e=Object.assign({errorMsg:"请求失败!",loading:!0},e)).loading&&e.vue.$loading({target:e.vue.$el,background:"rgba(0,0,0,0)"}),i=[];for(var o in e.axiosOption)i.push(axios(Object.assign({method:"post"},e.axiosOption[o])));axios.all(i).then(axios.spread(function(){n&&n.close();for(var t=arguments.length,i=Array(t),o=0;o2&&void 0!==arguments[2]&&arguments[2];return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="object"==(void 0===c?"undefined":r(c))?c:t.$loading({background:"rgba(0, 0, 0, 0.8)",spinner:"el-icon-loading"}),l=function(){return n.e(2).then(n.bind(null,"ILfh"))},e.next=4,l();case 4:if(t.FFMPEG=e.sent,t.ffmpeg&&(!t.ffmpeg||t.ffmpeg.isLoaded())){e.next=19;break}return a.setText("加载"),e.prev=7,t.ffmpeg=t.FFMPEG.createFFmpeg({}),e.next=11,t.ffmpeg.load();case 11:e.next=19;break;case 13:e.prev=13,e.t0=e.catch(7),console.log(e.t0.message),s="WebAssembly.Memory(): could not allocate memory"==e.t0.message?"浏览器内存不足,请尝试重启再试":i,this.message({message:s,duration:0,type:"error"}),c=!1;case 19:if(c){e.next=22;break}return a.close(),e.abrupt("return",c);case 22:return e.abrupt("return",a);case 23:case"end":return e.stop()}},e,this,[[7,13]])}));return function(t,n){return e.apply(this,arguments)}}(),console:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){for(var e,t=arguments.length,n=Array(t),i=0;imaximum?maximum=e[i-l]:e[i-l]10){for(var i=e.length-1;i>=e.length-t;i--)n.push(i in e?Number(e[i]):0);return this.average(n)}t=t>e.length?e.length:t;e.slice(e.length-t,e.length).filter(function(e){return!isNaN(e)});return this.average(n)},getCookie:function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i0&&void 0!==arguments[0]?arguments[0]:"USER",t="";try{t=JSON.parse(decodeURIComponent(this.getCookie(e)))}catch(e){t={role:-1}}return t},isLimit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"非会员免费次数已使用完",r=this.getUser(),a=!r||r&&r.role<0;if(e&&(a=a&&window.localStorage&&Number(localStorage.getItem(e))>=t),n&&window.localStorage){var s=(new Date).toDateString(),c=localStorage.getItem(n);a=a&&s==c}return!!a&&(n&&(o="非会员每天"+t+"次,会员不限"),this.message({message:o+"
"+this.payA.apply(this,l(i)),duration:0}),!0)},limitStorage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.getUser(),i=Number(localStorage.getItem(e));if(window.localStorage&&(!n||n&&n.role<0))if(t){var o=(new Date).toDateString();o==localStorage.getItem(t)?localStorage.setItem(e,++i):(localStorage.setItem(e,1),localStorage.setItem(t,o))}else localStorage.setItem(e,++i)},message:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"当前列表没有内容可导出",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"3000",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info";APP.$message(Object.assign({dangerouslyUseHTMLString:!0,showClose:!0,message:e,type:"info",duration:3e3},"object"==(void 0===e?"undefined":r(e))?e:{message:e,duration:t,type:n}))},deepCopy:function(e,t){for(var n in t)"object"===r(t[n])?e[n]=this.deepCopy(e[n]||{},t[n]):e[n]=t[n];return e}}},"2gBs":function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&t.push(i);return t}},"3eNs":function(e,t,n){var i,o,r,a;a=function(e){return e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}})},o=[n("7t+N"),n("UZ9c")],void 0===(r="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=r)},"3qyS":function(e,t){e.exports={render:function(){var e,t=this,n=t.$createElement,i=t._self._c||n;return i("el-form-item",{class:(e={"size-small-font":"small"===t.config.size||"mini"===t.config.size},e["element-"+(t.config.column?t.config.column:"")]="column"in t.config&&t.config.column,e["label-position-top"]=t.config.labelPositionTop,e),style:t.visibility+t.config.style,attrs:{prop:t.config.name,label:t.config.label,title:t.config.title,"label-width":t.labelWidth,rules:t.rules},nativeOn:{contextmenu:function(e){return e.stopPropagation(),t.rightClick(e)}}},[t.config.readonly&&t.my.regexp.url.test(t.form[t.config.name])?i("el-link",{attrs:{href:t.form[t.config.name],target:t.config.urlConfig.target,type:t.config.urlConfig.type,underline:Boolean(t.config.urlConfig.underline),icon:t.config.urlConfig.icon}},[t._v(t._s(t.form[t.config.name].substr(t.form[t.config.name].lastIndexOf("/")+1)))]):i("el-input",t._g(t._b({attrs:{type:"textarea",clearable:!0,readonly:Boolean(t.config.readonly),rows:t.config.rows,autosize:t.config.autosize,placeholder:t.config.placeholder||"请输入"},on:{change:t.change},model:{value:t.form[t.config.name],callback:function(e){t.$set(t.form,t.config.name,e)},expression:"form[config.name]"}},"el-input",Object.assign({},t.config,{style:""}),!1),t.listeners))],1)},staticRenderFns:[]}},"4/hK":function(e,t,n){var i=n("as9s");"string"==typeof i&&(i=[[e.i,i,""]]);var o={transform:void 0};n("MTIv")(i,o);i.locals&&(e.exports=i.locals)},"4JLK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qZ9B"),o=n.n(i),r=Object.assign||function(e){for(var t=1;t!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e,t,n){return i=e,o=n,t}function g(e,t){var n,i=e.next();if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){var i,o=!1;if(l&&"@"==e.peek()&&e.match(p))return t.tokenize=g,h("jsonld-keyword","meta");for(;null!=(i=e.next())&&(i!=n||o);)o=!o&&"\\"==i;return o||(t.tokenize=g),h("string","string")}),t.tokenize(e,t);if("."==i&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==i&&e.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(i))return h(i);if("="==i&&e.eat(">"))return h("=>","operator");if("0"==i&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(i))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==i)return e.eat("*")?(t.tokenize=m,m(e,t)):e.eat("/")?(e.skipToEnd(),h("comment","comment")):Xe(e,t,1)?(function(e){for(var t,n=!1,i=!1;null!=(t=e.next());){if(!n){if("/"==t&&!i)return;"["==t?i=!0:i&&"]"==t&&(i=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(e.eat("="),h("operator","operator",e.current()));if("`"==i)return t.tokenize=b,b(e,t);if("#"==i&&"!"==e.peek())return e.skipToEnd(),h("meta","meta");if("#"==i&&e.eatWhile(u))return h("variable","property");if("<"==i&&e.match("!--")||"-"==i&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),h("comment","comment");if(f.test(i))return">"==i&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=i&&"="!=i||e.eat("="):/[<>*+\-|&?]/.test(i)&&(e.eat(i),">"==i&&e.eat(i))),"?"==i&&e.eat(".")?h("."):h("operator","operator",e.current());if(u.test(i)){e.eatWhile(u);var o=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(o)){var r=d[o];return h(r.type,r.style,o)}if("async"==o&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",o)}return h("variable","variable",o)}}function m(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=g;break}i="*"==n}return h("comment","comment")}function b(e,t){for(var n,i=!1;null!=(n=e.next());){if(!i&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}i=!i&&"\\"==n}return h("quasi","string-2",e.current())}var v="([{}])";function _(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));i&&(n=i.index)}for(var o=0,r=!1,a=n-1;a>=0;--a){var l=e.string.charAt(a),s=v.indexOf(l);if(s>=0&&s<3){if(!o){++a;break}if(0==--o){"("==l&&(r=!0);break}}else if(s>=3&&s<6)++o;else if(u.test(l))r=!0;else if(/["'\/`]/.test(l))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==l&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(r&&!o){++a;break}}r&&!o&&(t.fatArrowAt=a)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,i,o,r){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=r,null!=i&&(this.align=i)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var i=e.context;i;i=i.prev)for(n=i.vars;n;n=n.next)if(n.name==t)return!0}var k={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function E(){return C.apply(null,arguments),!0}function S(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function T(e){var t=k.state;if(k.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var i=function e(t,n){if(n){if(n.block){var i=e(t,n.prev);return i?i==n.prev?n:new A(i,n.vars,!0):null}return S(t,n.vars)?n:new A(n.prev,new z(t,n.vars),!1)}return null}(e,t.context);if(null!=i)return void(t.context=i)}else if(!S(e,t.localVars))return void(t.localVars=new z(e,t.localVars));n.globalVars&&!S(e,t.globalVars)&&(t.globalVars=new z(e,t.globalVars))}function F(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,n){this.prev=e,this.vars=t,this.block=n}function z(e,t){this.name=e,this.next=t}var D=new z("this",new z("arguments",null));function M(){k.state.context=new A(k.state.context,k.state.localVars,!1),k.state.localVars=D}function O(){k.state.context=new A(k.state.context,k.state.localVars,!0),k.state.localVars=null}function P(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function L(e,t){var n=function(){var n=k.state,i=n.indented;if("stat"==n.lexical.type)i=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)i=o.indented;n.lexical=new x(i,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function N(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function I(e){return function t(n){return n==e?E():";"==e||"}"==n||")"==n||"]"==n?C():E(t)}}function R(e,t){return"var"==e?E(L("vardef",t),ye,I(";"),N):"keyword a"==e?E(L("form"),q,R,N):"keyword b"==e?E(L("form"),R,N):"keyword d"==e?k.stream.match(/^\s*$/,!1)?E():E(L("stat"),K,I(";"),N):"debugger"==e?E(I(";")):"{"==e?E(L("}"),O,ae,N,P):";"==e?E():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==N&&k.state.cc.pop()(),E(L("form"),q,R,N,Se)):"function"==e?E(ze):"for"==e?E(L("form"),Te,R,N):"class"==e||c&&"interface"==t?(k.marked="keyword",E(L("form","class"==e?e:t),Le,N)):"variable"==e?c&&"declare"==t?(k.marked="keyword",E(R)):c&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?E(Ve):"type"==t?E(Me,I("operator"),de,I(";")):E(L("form"),xe,I("{"),L("}"),ae,N,N)):c&&"namespace"==t?(k.marked="keyword",E(L("form"),U,R,N)):c&&"abstract"==t?(k.marked="keyword",E(R)):E(L("stat"),Q):"switch"==e?E(L("form"),q,I("{"),L("}","switch"),O,ae,N,N,P):"case"==e?E(U,I(":")):"default"==e?E(I(":")):"catch"==e?E(L("form"),M,B,R,N,P):"export"==e?E(L("stat"),Be,N):"import"==e?E(L("stat"),je,N):"async"==e?E(R):"@"==t?E(U,R):C(L("stat"),U,I(";"),N)}function B(e){if("("==e)return E(Oe,I(")"))}function U(e,t){return W(e,t,!1)}function j(e,t){return W(e,t,!0)}function q(e){return"("!=e?C():E(L(")"),K,I(")"),N)}function W(e,t,n){if(k.state.fatArrowAt==k.stream.start){var i=n?G:X;if("("==e)return E(M,L(")"),oe(Oe,")"),N,I("=>"),i,P);if("variable"==e)return C(M,xe,I("=>"),i,P)}var o=n?$:H;return y.hasOwnProperty(e)?E(o):"function"==e?E(ze,o):"class"==e||c&&"interface"==t?(k.marked="keyword",E(L("form"),Pe,N)):"keyword c"==e||"async"==e?E(n?j:U):"("==e?E(L(")"),K,I(")"),N,o):"operator"==e||"spread"==e?E(n?j:U):"["==e?E(L("]"),$e,N,o):"{"==e?re(te,"}",null,o):"quasi"==e?C(V,o):"new"==e?E(function(e){return function(t){return"."==t?E(e?J:Z):"variable"==t&&c?E(be,e?$:H):C(e?j:U)}}(n)):E()}function K(e){return e.match(/[;\}\)\],]/)?C():C(U)}function H(e,t){return","==e?E(K):$(e,t,!1)}function $(e,t,n){var i=0==n?H:$,o=0==n?U:j;return"=>"==e?E(M,n?G:X,P):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?E(i):c&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(L(">"),oe(de,">"),N,i):"?"==t?E(U,I(":"),o):E(o):"quasi"==e?C(V,i):";"!=e?"("==e?re(j,")","call",i):"."==e?E(ee,i):"["==e?E(L("]"),K,I("]"),N,i):c&&"as"==t?(k.marked="keyword",E(de,i)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),E(o)):void 0:void 0}function V(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?E(V):E(U,Y)}function Y(e){if("}"==e)return k.marked="string-2",k.state.tokenize=b,E(V)}function X(e){return _(k.stream,k.state),C("{"==e?R:U)}function G(e){return _(k.stream,k.state),C("{"==e?R:j)}function Z(e,t){if("target"==t)return k.marked="keyword",E(H)}function J(e,t){if("target"==t)return k.marked="keyword",E($)}function Q(e){return":"==e?E(N,R):C(H,I(";"),N)}function ee(e){if("variable"==e)return k.marked="property",E()}function te(e,t){if("async"==e)return k.marked="property",E(te);if("variable"==e||"keyword"==k.style){return k.marked="property","get"==t||"set"==t?E(ne):(c&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),E(ie));var n}else{if("number"==e||"string"==e)return k.marked=l?"property":k.style+" property",E(ie);if("jsonld-keyword"==e)return E(ie);if(c&&F(t))return k.marked="keyword",E(te);if("["==e)return E(U,le,I("]"),ie);if("spread"==e)return E(j,ie);if("*"==t)return k.marked="keyword",E(te);if(":"==e)return C(ie)}}function ne(e){return"variable"!=e?C(ie):(k.marked="property",E(ze))}function ie(e){return":"==e?E(j):"("==e?C(ze):void 0}function oe(e,t,n){function i(o,r){if(n?n.indexOf(o)>-1:","==o){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),E(function(n,i){return n==t||i==t?C():C(e)},i)}return o==t||r==t?E():n&&n.indexOf(";")>-1?C(e):E(I(t))}return function(n,o){return n==t||o==t?E():C(e,i)}}function re(e,t,n){for(var i=3;i"),de):void 0}function fe(e){if("=>"==e)return E(de)}function pe(e){return e.match(/[\}\)\]]/)?E():","==e||";"==e?E(pe):C(he,pe)}function he(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",E(he)):"?"==t||"number"==e||"string"==e?E(he):":"==e?E(de):"["==e?E(I("variable"),se,I("]"),he):"("==e?C(De,he):e.match(/[;\}\)\],]/)?void 0:E()}function ge(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?E(ge):":"==e?E(de):"spread"==e?E(ge):C(de)}function me(e,t){return"<"==t?E(L(">"),oe(de,">"),N,me):"|"==t||"."==e||"&"==t?E(de):"["==e?E(de,I("]"),me):"extends"==t||"implements"==t?(k.marked="keyword",E(de)):"?"==t?E(de,I(":"),de):void 0}function be(e,t){if("<"==t)return E(L(">"),oe(de,">"),N,me)}function ve(){return C(de,_e)}function _e(e,t){if("="==t)return E(de)}function ye(e,t){return"enum"==t?(k.marked="keyword",E(Ve)):C(xe,le,Ce,Ee)}function xe(e,t){return c&&F(t)?(k.marked="keyword",E(xe)):"variable"==e?(T(t),E()):"spread"==e?E(xe):"["==e?re(ke,"]"):"{"==e?re(we,"}"):void 0}function we(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?E(xe):"}"==e?C():"["==e?E(U,I("]"),I(":"),we):E(I(":"),xe,Ce)):(T(t),E(Ce))}function ke(){return C(xe,Ce)}function Ce(e,t){if("="==t)return E(j)}function Ee(e){if(","==e)return E(ye)}function Se(e,t){if("keyword b"==e&&"else"==t)return E(L("form","else"),R,N)}function Te(e,t){return"await"==t?E(Te):"("==e?E(L(")"),Fe,N):void 0}function Fe(e){return"var"==e?E(ye,Ae):"variable"==e?E(Ae):C(Ae)}function Ae(e,t){return")"==e?E():";"==e?E(Ae):"in"==t||"of"==t?(k.marked="keyword",E(U,Ae)):C(U,Ae)}function ze(e,t){return"*"==t?(k.marked="keyword",E(ze)):"variable"==e?(T(t),E(ze)):"("==e?E(M,L(")"),oe(Oe,")"),N,ce,R,P):c&&"<"==t?E(L(">"),oe(ve,">"),N,ze):void 0}function De(e,t){return"*"==t?(k.marked="keyword",E(De)):"variable"==e?(T(t),E(De)):"("==e?E(M,L(")"),oe(Oe,")"),N,ce,P):c&&"<"==t?E(L(">"),oe(ve,">"),N,De):void 0}function Me(e,t){return"keyword"==e||"variable"==e?(k.marked="type",E(Me)):"<"==t?E(L(">"),oe(ve,">"),N):void 0}function Oe(e,t){return"@"==t&&E(U,Oe),"spread"==e?E(Oe):c&&F(t)?(k.marked="keyword",E(Oe)):c&&"this"==e?E(le,Ce):C(xe,le,Ce)}function Pe(e,t){return"variable"==e?Le(e,t):Ne(e,t)}function Le(e,t){if("variable"==e)return T(t),E(Ne)}function Ne(e,t){return"<"==t?E(L(">"),oe(ve,">"),N,Ne):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(k.marked="keyword"),E(c?de:U,Ne)):"{"==e?E(L("}"),Ie,N):void 0}function Ie(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&F(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",E(Ie)):"variable"==e||"keyword"==k.style?(k.marked="property",E(Re,Ie)):"number"==e||"string"==e?E(Re,Ie):"["==e?E(U,le,I("]"),Re,Ie):"*"==t?(k.marked="keyword",E(Ie)):c&&"("==e?C(De,Ie):";"==e||","==e?E(Ie):"}"==e?E():"@"==t?E(U,Ie):void 0}function Re(e,t){if("?"==t)return E(Re);if(":"==e)return E(de,Ce);if("="==t)return E(j);var n=k.state.lexical.prev;return C(n&&"interface"==n.info?De:ze)}function Be(e,t){return"*"==t?(k.marked="keyword",E(He,I(";"))):"default"==t?(k.marked="keyword",E(U,I(";"))):"{"==e?E(oe(Ue,"}"),He,I(";")):C(R)}function Ue(e,t){return"as"==t?(k.marked="keyword",E(I("variable"))):"variable"==e?C(j,Ue):void 0}function je(e){return"string"==e?E():"("==e?C(U):"."==e?C(H):C(qe,We,He)}function qe(e,t){return"{"==e?re(qe,"}"):("variable"==e&&T(t),"*"==t&&(k.marked="keyword"),E(Ke))}function We(e){if(","==e)return E(qe,We)}function Ke(e,t){if("as"==t)return k.marked="keyword",E(qe)}function He(e,t){if("from"==t)return k.marked="keyword",E(U)}function $e(e){return"]"==e?E():C(oe(j,"]"))}function Ve(){return C(L("form"),xe,I("{"),L("}"),oe(Ye,"}"),N,N)}function Ye(){return C(xe,Ce)}function Xe(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return P.lex=!0,N.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-r,0,"block",!1),localVars:n.localVars,context:n.localVars&&new A(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),_(e,t)),t.tokenize!=m&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==i?n:(t.lastType="operator"!=i||"++"!=o&&"--"!=o?i:"incdec",function(e,t,n,i,o){var r=e.cc;for(k.state=e,k.stream=o,k.marked=null,k.cc=r,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((r.length?r.pop():s?U:R)(n,i)){for(;r.length&&r[r.length-1].lex;)r.pop()();return k.marked?k.marked:"variable"==n&&w(e,i)?"variable-2":t}}(t,n,i,o,e))},indent:function(t,i){if(t.tokenize==m||t.tokenize==b)return e.Pass;if(t.tokenize!=g)return 0;var o,l=i&&i.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(i))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==N)s=s.prev;else if(u!=Se)break}for(;("stat"==s.type||"form"==s.type)&&("}"==l||(o=t.cc[t.cc.length-1])&&(o==H||o==$)&&!/^[,\.=+\-*:?[\(]/.test(i));)s=s.prev;a&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var d=s.type,p=l==d;return"vardef"==d?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==d&&"{"==l?s.indented:"form"==d?s.indented+r:"stat"==d?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,i)?a||r:0):"switch"!=s.info||p||0==n.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:r):s.indented+(/^(?:case|default)\b/.test(i)?r:2*r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:l,jsonMode:s,expressionAllowed:Xe,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=U&&t!=j||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})(n("8U58"))},"5LAa":function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__other_elementMixin_vue__=__webpack_require__("qZ9B"),__WEBPACK_IMPORTED_MODULE_0__other_elementMixin_vue___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__other_elementMixin_vue__),_extends=Object.assign||function(e){for(var t=1;t|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function r(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),i=0;i!?|\/]/,A=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/,z=s.isReservedIdentifier||!1;function D(e,t){var n,i=e.next();if(y[i]){var o=y[i](e,t);if(!1!==o)return o}if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){for(var i,o=!1,r=!1;null!=(i=e.next());){if(i==n&&!o){r=!0;break}o=!o&&"\\"==i}return(r||!o&&!x)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(S.test(i)){if(e.backUp(1),e.match(T))return"number";e.next()}if(E.test(i))return c=i,null;if("/"==i){if(e.eat("*"))return t.tokenize=M,M(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(F.test(i)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(F););return"operator"}if(e.eatWhile(A),C)for(;e.match(C);)e.eatWhile(A);var r=e.current();return l(h,r)?(l(b,r)&&(c="newstatement"),l(v,r)&&(u=!0),"keyword"):l(g,r)?"type":l(m,r)||z&&z(r)?(l(b,r)&&(c="newstatement"),"builtin"):l(_,r)?"atom":"variable"}function M(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=null;break}i="*"==n}return"comment"}function O(e,t){s.typeFirstDefinitions&&e.eol()&&r(t.context)&&(t.typeAtEndOfLine=o(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return O(e,t),null;c=u=null;var l=(t.tokenize||D)(e,t);if("comment"==l||"meta"==l)return l;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)i(t);else if("{"==c)n(t,e.column(),"}");else if("["==c)n(t,e.column(),"]");else if("("==c)n(t,e.column(),")");else if("}"==c){for(;"statement"==a.type;)a=i(t);for("}"==a.type&&(a=i(t));"statement"==a.type;)a=i(t)}else c==a.type?i(t):w&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(t,e.column(),"statement",e.current());if("variable"==l&&("def"==t.prevToken||s.typeFirstDefinitions&&o(e,t,e.start)&&r(t.context)&&e.match(/^\s*\(/,!1))&&(l="def"),y.token){var d=y.token(e,t,l);void 0!==d&&(l=d)}return"def"==l&&!1===s.styleDefs&&(l="variable"),t.startOfLine=!1,t.prevToken=u?"def":l||c,O(e,t),l},indent:function(t,n){if(t.tokenize!=D&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var i=t.context,o=n&&n.charAt(0),r=o==i.type;if("statement"==i.type&&"}"==o&&(i=i.prev),s.dontIndentStatements)for(;"statement"==i.type&&s.dontIndentStatements.test(i.info);)i=i.prev;if(y.indent){var a=y.indent(t,i,n,d);if("number"==typeof a)return a}var l=i.prev&&"switch"==i.prev.info;if(s.allmanIndentation&&/[{(]/.test(o)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return"statement"==i.type?i.indented+("{"==o?0:f):!i.align||p&&")"==i.type?")"!=i.type||r?i.indented+(r?0:d)+(r||!l||/^(?:case|default)\b/.test(n)?0:d):i.indented+f:i.column+(r?0:1)},electricInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var s="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",u="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=a("int long char short double float unsigned signed void bool"),p=a("SEL instancetype id Class Protocol BOOL");function h(e){return l(f,e)||/.+_t$/.test(e)}function g(e){return h(e)||l(p,e)}var m="case do else for if switch while struct enum union";function b(e,t){if(!t.startOfLine)return!1;for(var n,i=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){i=b;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=i,"meta"}function v(e,t){return"type"==t.prevToken&&"type"}function _(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function y(e){return e.eatWhile(/[\w\.']/),"number"}function x(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=C,C(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function w(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function k(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function C(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function E(t,n){"string"==typeof t&&(t=[t]);var i=[];function o(e){if(e)for(var t in e)e.hasOwnProperty(t)&&i.push(t)}o(n.keywords),o(n.types),o(n.builtin),o(n.atoms),i.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],i));for(var r=0;r!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=S,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var i=n.context;return!("}"!=i.type||!i.align||!e.eat(">"))&&(n.context=new t(i.indented,i.column,i.type,i.info,null,i.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),E("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var i,o=!1,r=!1;!e.eol();){if(!n&&!o&&e.match('"')){r=!0;break}if(n&&e.match('"""')){r=!0;break}i=e.next(),!o&&"$"==i&&e.match("{")&&e.skipTo("}"),o=!o&&"\\"==i&&!n}return!r&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))},indent:function(e,t,n,i){var o=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==o||("}"==e.prevToken||")"==e.prevToken)&&"."==o?2*i+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:i):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),E(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":b},modeProps:{fold:["brace","include"]}}),E("text/x-nesc",{name:"clike",keywords:a(s+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(m),atoms:a("null true false"),hooks:{"#":b},modeProps:{fold:["brace","include"]}}),E("text/x-objectivec",{name:"clike",keywords:a(s+" "+u),types:g,builtin:a(d),blockKeywords:a(m+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a("struct enum union @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:_,hooks:{"#":b,"*":v},modeProps:{fold:["brace","include"]}}),E("text/x-objectivec++",{name:"clike",keywords:a(s+" "+u+" "+c),types:g,builtin:a(d),blockKeywords:a(m+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a("struct enum union @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:_,hooks:{"#":b,"*":v,u:x,U:x,L:x,R:x,0:y,1:y,2:y,3:y,4:y,5:y,6:y,7:y,8:y,9:y,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&w(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),E("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":b},modeProps:{fold:["brace","include"]}});var F=null;E("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function e(t){return function(n,i){for(var o,r=!1,a=!1;!n.eol();){if(!r&&n.match('"')&&("single"==t||n.match('""'))){a=!0;break}if(!r&&n.match("``")){F=e(t),a=!0;break}o=n.next(),r="single"==t&&!r&&"\\"==o}return a&&(i.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!F||!e.match("`"))&&(t.tokenize=F,F=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})(n("8U58"))},"6mly":function(e,t){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,i=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),o=i&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),r=n&&n.prototype.append&&n.prototype.getBlob;function a(e){return e.map(function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e})}function l(e,t){t=t||{};var i=new n;return a(e).forEach(function(e){i.append(e)}),t.type?i.getBlob(t.type):i.getBlob()}function s(e,t){return new Blob(a(e),t||{})}"undefined"!=typeof Blob&&(l.prototype=Blob.prototype,s.prototype=Blob.prototype),e.exports=i?o?Blob:s:r?l:void 0},"6pJG":function(e,t,n){var i=n("VU/8")(n("E+oi"),n("M6Jk"),!1,function(e){n("/biG")},null,null);e.exports=i.exports},"7E+/":function(e,t,n){var i=n("VU/8")(n("uTH1"),n("tHNE"),!1,function(e){n("KPIA")},null,null);e.exports=i.exports},"7GwW":function(e,t,n){"use strict";var i=n("cGG2"),o=n("21It"),r=n("DQCr"),a=n("oJlt"),l=n("GHBc"),s=n("FtD3");e.exports=function(e){return new Promise(function(t,c){var u=e.data,d=e.headers;i.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+h)}if(f.open(e.method.toUpperCase(),r(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};o(t,c,i),f=null}},f.onerror=function(){c(s("Network Error",e,null,f)),f=null},f.ontimeout=function(){c(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var g=n("p1b6"),m=(e.withCredentials||l(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;m&&(d[e.xsrfHeaderName]=m)}if("setRequestHeader"in f&&i.forEach(d,function(e,t){void 0===u&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)}),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),c(e),f=null)}),void 0===u&&(u=null),f.send(u)})}},"7jRy":function(e,t){e.exports={render:function(){var e,t,n=this,i=n.$createElement,o=n._self._c||i;return n.config.wrapper?o(n.config.wrapper||"el-form-item",{tag:"wrapper",class:(e={elementButton:!0},e["element-"+(n.config.column?n.config.column:"")]="column"in n.config&&n.config.column,e),style:n.visibility+n.config.style,attrs:{label:n.config.label,"label-width":n.config.labelWidth?n.config.labelWidth:n.config.label?"80px":"0px",name:n.config.name},on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),n.rightClick(e)}}},[o("el-button",{class:{noText:!n.config.textShow},attrs:{type:n.config.buttonType,icon:n.config.icon,round:"round"==n.config.shape||n.config.round,circle:"circle"==n.config.shape||n.config.circle,plain:"plain"==n.config.saturation||n.config.plain,"native-type":n.config.nativeType,title:n.config.title,size:n.config.size,disabled:Boolean(n.config.disabled),loading:n.config.loading},on:{click:n.buttonClick}},[n._v(n._s(n.config.text))]),n._v(" "),n.config.dialog?o("elementDialog",n._b({},"elementDialog",n.config.dialog,!1)):n._e()],1):o("el-form-item",{class:(t={elementButton:!0},t["element-"+(n.config.column?n.config.column:"")]="column"in n.config&&n.config.column,t),style:n.configing?"opacity: "+("hidden"==n.config.visibility?.5:1)+";":"visibility:"+n.config.visibility+";"+n.config.style,attrs:{label:n.config.label,"label-width":n.config.labelWidth?n.config.labelWidth:n.config.label?"80px":"0px",name:n.config.name},nativeOn:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),n.rightClick(e)}}},[o("el-button",n._g({class:{noText:!n.config.textShow,myButtonSquare:"square"==n.config.shape},style:n.config.buttonStyle,attrs:{type:n.config.buttonType,icon:n.config.icon,round:"round"==n.config.shape||n.config.round,circle:"circle"==n.config.shape||n.config.circle,plain:"plain"==n.config.saturation||n.config.plain,"native-type":n.config.nativeType,title:n.config.title,size:n.config.size,disabled:Boolean(n.config.disabled),loading:n.config.loading},on:{click:n.buttonClick}},n.listeners),[n._v(n._s(n.config.text))]),n._v(" "),n.config.dialog?o("elementDialog",n._b({on:{buttonClick:n.dialogButtonClick}},"elementDialog",n.config.dialog,!1)):n._e()],1)},staticRenderFns:[]}},"7kP/":function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{staticClass:"elementTree",class:{"size-small-font":"small"===e.config.size||"mini"===e.config.size,"label-position-top":e.config.labelPositionTop},attrs:{label:e.config.label,"label-width":e.config.labelWidth},nativeOn:{click:function(t){return e.click(t)}}},[n("div",{staticClass:"tree-head",class:{"size-small-font":"small"===e.config.itemDefault.size||"mini"===e.config.itemDefault.size,addShow:"addShow"in e.config}},[n("span",{staticClass:"label"},[e._v("显示")]),e._v(" "),n("span",{staticClass:"label",staticStyle:{display:"inline-block",width:"65px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","vertical-align":"middle"},attrs:{slot:"reference"},slot:"reference"},[e._v("列名")]),e._v(" "),n("span",{staticClass:"label"},e._l(e.config.labels,function(t,i){return n("span",{key:i,style:(e.config.labelDefault&&e.config.labelDefault.style?e.config.labelDefault.style:"")+t.style},[e._v(e._s(t.label))])}),0),e._v(" "),e.config.addHide?e._e():n("elementButton",{attrs:{config:e.addButton},on:{buttonClick:e.add}})],1),e._v(" "),n("el-tree",{ref:"elementTree",class:{"size-small-font":"small"===e.config.itemDefault.size||"mini"===e.config.itemDefault.size,delShow:"delShow"in e.config},attrs:{data:e.form[e.config.name],"node-key":e.config.nodeKey||"value",indent:e.config.indent,"default-expand-all":e.config.defaultExpandAll,"show-checkbox":e.config.showCheckbox,"expand-on-click-node":e.config.expandOnClickNode,"default-checked-keys":e.config.defaultCheckedKeys,"default-expanded-keys":e.config.defaultExpandedKeys,draggable:e.config.draggable,"check-strictly":e.config.checkStrictly,"allow-drop":e.config.allowDrop,"allow-drag":e.config.allowDrag},on:{"node-click":e.nodeClick,check:e.check,"check-change":e.checkChange,"node-drop":e.nodeDrop},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,o=t.data;return n("span",{},[n("el-popover",{attrs:{placement:"top",width:"250",disabled:e.config.popoverDisabled},model:{value:i.edit,callback:function(t){e.$set(i,"edit",t)},expression:"node.edit"}},[n("elementText",{attrs:{config:e.value,form:o}}),e._v(" "),n("elementText",{attrs:{config:e.label,form:o}}),e._v(" "),n("elementButton",{attrs:{config:e.cancelButton},on:{buttonClick:function(e){i.edit=!1}}}),e._v(" "),n("span",{staticClass:"label",staticStyle:{display:"inline-block",width:"65px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","vertical-align":"middle"},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(i.label))])],1),e._v(" "),n(e.config.item.type,{tag:"item",attrs:{config:e.config.item,form:i}}),e._v(" "),n("elementButton",{directives:[{name:"show",rawName:"v-show",value:e.config.delShow(i,o)&&e.delShow,expression:"config.delShow(node,data)&&delShow"}],attrs:{config:e.deleteButton},on:{buttonClick:function(t){return e.del(t,i,o)}}})],1)}}])})],1)},staticRenderFns:[]}},"81nI":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qZ9B"),o=n.n(i),r=Object.assign||function(e){for(var t=1;t","i")}function r(e,t){for(var n in e)for(var i=t[n]||(t[n]=[]),o=e[n],r=o.length-1;r>=0;r--)i.unshift(o[r])}e.defineMode("htmlmixed",function(n,a){var l=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),s={},c=a&&a.tags,u=a&&a.scriptTypes;if(r(t,s),c&&r(c,s),u)for(var d=u.length-1;d>=0;d--)s.script.unshift(["type",u[d].matches,u[d].mode]);function f(t,r){var a,c=l.token(t,r.htmlState),u=/\btag\b/.test(c);if(u&&!/[<>\s\/]/.test(t.current())&&(a=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&s.hasOwnProperty(a))r.inTag=a+" ";else if(r.inTag&&u&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var p=">"==t.current()&&function(e,t){for(var n=0;n-1?e.backUp(i.length-o):i.match(/<\/?$/)&&(e.backUp(i.length),e.match(t,!1)||e.match(i)),n}(e,m,t.localMode.token(e,t.localState))},r.localMode=h,r.localState=e.startState(h,l.indent(r.htmlState,"",""))}else r.inTag&&(r.inTag+=t.current(),t.eol()&&(r.inTag+=" "));return c}return{startState:function(){return{token:f,inTag:null,localMode:null,localState:null,htmlState:e.startState(l)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(l,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,i){return!t.localMode||/^\s*<\//.test(n)?l.indent(t.htmlState,n,i):t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||l}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")})(n("8U58"),n("ezqs"),n("5IAE"),n("puAj"))},"8U58":function(e,t,n){var i;i=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),r=/Edge\/(\d+)/.exec(e),a=i||o||r,l=a&&(i?document.documentMode||6:+(r||o)[1]),s=!r&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),u=!r&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),m=/Android/.test(e),b=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=g||/Mac/.test(t),_=/\bCrOS\b/.test(e),y=/win/i.test(t),x=d&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(d=!1,s=!0);var w=v&&(c||d&&(null==x||x<12.11)),k=n||a&&l>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,S=function(e,t){var n=e.className,i=C(t).exec(n);if(i){var o=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(o?i[1]+o:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function F(e,t){return T(e).appendChild(t)}function A(e,t,n,i){var o=document.createElement(e);if(n&&(o.className=n),i&&(o.style.cssText=i),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var r=0;r=t)return a+(t-r);a+=l-r,a+=n-a%n,r=l+1}}g?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function U(e,t){for(var n=0;n=t)return i+Math.min(a,t-o);if(o+=r-i,i=r+1,(o+=n-o%n)>=t)return i}}var V=[""];function Y(e){for(;V.length<=e;)V.push(X(V)+" ");return V[e]}function X(e){return e[e.length-1]}function G(e,t){for(var n=[],i=0;i"€"&&(e.toUpperCase()!=e.toLowerCase()||Q.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function re(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,r=i<0?Math.ceil(o):Math.floor(o);if(r==t)return e(r)?t:n;e(r)?n=r:t=r+i}}var le=null;function se(e,t,n){var i;le=null;for(var o=0;ot)return o;r.to==t&&(r.from!=r.to&&"before"==n?i=o:le=o),r.from==t&&(r.from!=r.to&&"before"!=n?i=o:le=o)}return null!=i?i:le}var ce=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,r=/[Lb1n]/,a=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,c){var u="ltr"==c?"L":"R";if(0==s.length||"ltr"==c&&!n.test(s))return!1;for(var d,f=s.length,p=[],h=0;h-1&&(i[t]=o.slice(0,r).concat(o.slice(r+1)))}}}function ge(e,t){var n=pe(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),o=0;o0}function _e(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){he(this,e,t)}}function ye(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){ye(e),xe(e)}function Ce(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var Se,Te,Fe=function(){if(a&&l<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Ae(e){if(null==Se){var t=A("span","​");F(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Se?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function ze(e){if(null!=Te)return Te;var t=F(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),i=E(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Te=i.right-n.right<3)}var De,Me=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var r=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=r.indexOf("\r");-1!=a?(n.push(r.slice(0,a)),t+=a+1):(n.push(r),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Oe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe="oncopy"in(De=A("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Le=null;var Ne={},Ie={};function Re(e){if("string"==typeof e&&Ie.hasOwnProperty(e))e=Ie[e];else if(e&&"string"==typeof e.name&&Ie.hasOwnProperty(e.name)){var t=Ie[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Re("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Re("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Re(t);var n=Ne[t.name];if(!n)return Be(e,"text/plain");var i=n(e,t);if(Ue.hasOwnProperty(t.name)){var o=Ue[t.name];for(var r in o)o.hasOwnProperty(r)&&(i.hasOwnProperty(r)&&(i["_"+r]=i[r]),i[r]=o[r])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ue={};function je(e,t){I(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var o=t[i];o instanceof Array&&(o=o.concat([])),n[i]=o}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var He=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $e(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var o=n.children[i],r=o.chunkSize();if(t=e.first&&tn?et(n,$e(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,$e(e,t.line).text.length)}function st(e,t){for(var n=[],i=0;i=this.string.length},He.prototype.sol=function(){return this.pos==this.lineStart},He.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},He.prototype.next=function(){if(this.post},He.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},He.prototype.skipToEnd=function(){this.pos=this.string.length},He.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},He.prototype.backUp=function(e){this.pos-=e},He.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},He.prototype.current=function(){return this.string.slice(this.start,this.pos)},He.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},He.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},He.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ct=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,i){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function dt(e,t,n,i){var o=[e.state.modeGen],r={};yt(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},r,i);for(var a=n.state,l=function(i){n.baseTokens=o;var l=e.state.overlays[i],s=1,c=0;n.state=!0,yt(e,t.text,l.mode,n,function(e,t){for(var n=s;ce&&o.splice(s,1,e,o[s+1],i),s+=2,c=Math.min(e,i)}if(t)if(l.opaque)o.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&qe(e.doc.mode,i.state),r=dt(e,t,i);o&&(i.state=o),t.stateAfter=i.save(!o),t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,n){var i=e.doc,o=e.display;if(!i.mode.startState)return new ut(i,!0,t);var r=function(e,t,n){for(var i,o,r=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=r.first)return r.first;var s=$e(r,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof ct?c.lookAhead:0)<=r.modeFrontier))return l;var u=R(s.text,null,e.options.tabSize);(null==o||i>u)&&(o=l-1,i=u)}return o}(e,t,n),a=r>i.first&&$e(i,r-1).stateAfter,l=a?ut.fromSaved(i,a,r):new ut(i,Ke(i.mode),r);return i.iter(r,t,function(n){ht(e,n.text,l);var i=l.line;n.stateAfter=i==t-1||i%5==0||i>=o.viewFrom&&it.start)return r}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof ct?new ut(e,qe(e.mode,t.state),n,t.lookAhead):new ut(e,qe(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ct(t,this.maxLookAhead):t};var bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function vt(e,t,n,i){var o,r,a=e.doc,l=a.mode,s=$e(a,(t=lt(a,t)).line),c=pt(e,t.line,n),u=new He(s.text,e.options.tabSize,c);for(i&&(r=[]);(i||u.pose.options.maxHighlightLength?(l=!1,a&&ht(e,t,i,d.pos),d.pos=t.length,s=null):s=_t(mt(n,d,i.state,f),r),f){var p=f[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||u!=s){for(;c=t:r.to>t);(i||(i=[])).push(new kt(a,r.from,l?null:r.to))}}return i}(n,o,a),s=function(e,t,n){var i;if(e)for(var o=0;o=t:r.to>t)||r.from==t&&"bookmark"==a.type&&(!n||r.marker.insertLeft)){var l=null==r.from||(a.inclusiveLeft?r.from<=t:r.from0&&l)for(var _=0;_t)&&(!n||Mt(n,r.marker)<0)&&(n=r.marker)}return n}function It(e,t,n,i,o){var r=$e(e,t),a=wt&&r.markedSpans;if(a)for(var l=0;l=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?tt(c.to,n)>=0:tt(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?tt(c.from,i)<=0:tt(c.from,i)<0)))return!0}}}function Rt(e){for(var t;t=Pt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=$e(e,t),i=Rt(n);return n==i?t:Ge(i)}function Ut(e,t){if(t>e.lastLine())return t;var n,i=$e(e,t);if(!jt(e,i))return t;for(;n=Lt(i);)i=n.find(1,!0).line;return Ge(i)+1}function jt(e,t){var n=wt&&t.markedSpans;if(n)for(var i=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var $t=function(e,t,n){this.text=e,At(this,t),this.height=n?n(this):1};function Vt(e){e.parent=null,Ft(e)}$t.prototype.lineNo=function(){return Ge(this)},_e($t);var Yt={},Xt={};function Gt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Xt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Zt(e,t){var n=z("span",null,null,s?"padding-right: .1px":null),i={pre:z("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var r=o?t.rest[o-1]:t.line,a=void 0;i.pos=0,i.addToken=Qt,ze(e.display.measure)&&(a=ue(r,e.doc.direction))&&(i.addToken=en(i.addToken,a)),i.map=[],nn(r,i,ft(e,r,t!=e.display.externalMeasured&&Ge(r))),r.styleClasses&&(r.styleClasses.bgClass&&(i.bgClass=P(r.styleClasses.bgClass,i.bgClass||"")),r.styleClasses.textClass&&(i.textClass=P(r.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ae(e.display.measure))),0==o?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=i.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=P(i.pre.className,i.textClass||"")),i}function Jt(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Qt(e,t,n,i,o,r,s){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",o=0;oc&&d.from<=c);f++);if(d.to>=u)return e(n,i,o,r,a,l,s);e(n,i.slice(0,d.to-c),o,r,null,l,s),r=null,i=i.slice(d.to-c),c=d.to}}}function tn(e,t,n,i){var o=!i&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!i&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var i=e.markedSpans,o=e.text,r=0;if(i)for(var a,l,s,c,u,d,f,p=o.length,h=0,g=1,m="",b=0;;){if(b==h){s=c=u=l="",f=null,d=null,b=1/0;for(var v=[],_=void 0,y=0;yh||w.collapsed&&x.to==h&&x.from==h)){if(null!=x.to&&x.to!=h&&b>x.to&&(b=x.to,c=""),w.className&&(s+=" "+w.className),w.css&&(l=(l?l+";":"")+w.css),w.startStyle&&x.from==h&&(u+=" "+w.startStyle),w.endStyle&&x.to==b&&(_||(_=[])).push(w.endStyle,x.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var k in w.attributes)(f||(f={}))[k]=w.attributes[k];w.collapsed&&(!d||Mt(d.marker,w)<0)&&(d=x)}else x.from>h&&b>x.from&&(b=x.from)}if(_)for(var C=0;C<_.length;C+=2)_[C+1]==b&&(c+=" "+_[C]);if(!d||d.from==h)for(var E=0;E=p)break;for(var S=Math.min(p,b);;){if(m){var T=h+m.length;if(!d){var F=T>S?m.slice(0,S-h):m;t.addToken(t,F,a?a+s:s,u,h+F.length==b?c:"",l,f)}if(T>=S){m=m.slice(S-h),h=S;break}h=T,u=""}m=o.slice(r,r=n[g++]),a=Gt(n[g++],t.cm.options)}}else for(var A=1;An)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function zn(e,t,n,i){return On(e,Mn(e,t),n,i)}function Dn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&r.push((s.bottom+c.top)/2-n.top)}}r.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(r=function(e,t,n,i){var o,r=Nn(t.map,n,i),s=r.node,c=r.start,u=r.end,d=r.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;c&&oe(t.line.text.charAt(r.coverStart+c));)--c;for(;r.coverStart+u1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*i,bottom:t.bottom*i}}(e.display.measure,o))}else{var p;c>0&&(d=i="right"),o=e.options.lineWrapping&&(p=s.getClientRects()).length>1?p["right"==i?p.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!c&&(!o||!o.left&&!o.right)){var h=s.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+ni(e.display),top:h.top,bottom:h.bottom}:Ln}for(var g=o.top-t.rect.top,m=o.bottom-t.rect.top,b=(g+m)/2,v=t.view.measure.heights,_=0;_t)&&(o=(r=s-l)-1,t>=s&&(a="right")),null!=o){if(i=e[c+2],l==s&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)i=e[2+(c-=3)],a="left";if("right"==n&&o==s-l)for(;c=0&&(n=e[o]).left==n.right;o--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=i.text.length?(s=i.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a("before"==c?s-1:s,"before"==c);function u(e,t,n){var i=1==l[t].level;return a(n?e-1:e,i!=n)}var d=se(l,s,c),f=le,p=u(s,d,"before"==c);return null!=f&&(p.other=u(s,f,"before"!=c)),p}function Yn(e,t){var n=0;t=lt(e.doc,t),e.options.lineWrapping||(n=ni(e.display)*t.ch);var i=$e(e.doc,t.line),o=Wt(i)+kn(e.display);return{left:n,right:n,top:o,bottom:o+i.height}}function Xn(e,t,n,i,o){var r=et(e,t,n);return r.xRel=o,i&&(r.outside=i),r}function Gn(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return Xn(i.first,0,null,-1,-1);var o=Ze(i,n),r=i.first+i.size-1;if(o>r)return Xn(i.first+i.size-1,$e(i,r).text.length,null,1,1);t<0&&(t=0);for(var a=$e(i,o);;){var l=ei(e,a,o,t,n),s=Nt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==o)return c;a=$e(i,o=c.line)}}function Zn(e,t,n,i){i-=Wn(t);var o=t.text.length,r=ae(function(t){return On(e,n,t-1).bottom<=i},o,0);return{begin:r,end:o=ae(function(t){return On(e,n,t).top>i},r,o)}}function Jn(e,t,n,i){return n||(n=Mn(e,t)),Zn(e,t,n,Kn(e,t,On(e,n,i),"line").top)}function Qn(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function ei(e,t,n,i,o){o-=Wt(t);var r=Mn(e,t),a=Wn(t),l=0,s=t.text.length,c=!0,u=ue(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?function(e,t,n,i,o,r,a){var l=Zn(e,t,i,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f=c||p.to<=s)){var h=1!=p.level,g=On(e,i,h?Math.min(c,p.to)-1:Math.max(s,p.from)).right,m=gm)&&(u=p,d=m)}}u||(u=o[o.length-1]);u.fromc&&(u={from:u.from,to:c,level:u.level});return u}:function(e,t,n,i,o,r,a){var l=ae(function(l){var s=o[l],c=1!=s.level;return Qn(Vn(e,et(n,c?s.to:s.from,c?"before":"after"),"line",t,i),r,a,!0)},0,o.length-1),s=o[l];if(l>0){var c=1!=s.level,u=Vn(e,et(n,c?s.from:s.to,c?"after":"before"),"line",t,i);Qn(u,r,a,!0)&&u.top>a&&(s=o[l-1])}return s})(e,t,n,r,u,i,o);l=(c=1!=d.level)?d.from:d.to-1,s=c?d.to:d.from-1}var f,p,h=null,g=null,m=ae(function(t){var n=On(e,r,t);return n.top+=a,n.bottom+=a,!!Qn(n,i,o,!1)&&(n.top<=o&&n.left<=i&&(h=t,g=n),!0)},l,s),b=!1;if(g){var v=i-g.left=y.bottom?1:0}return Xn(n,m=re(t.text,m,1),p,b,i-f)}function ti(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Pn){Pn=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Pn.appendChild(document.createTextNode("x")),Pn.appendChild(A("br"));Pn.appendChild(document.createTextNode("x"))}F(e.measure,Pn);var n=Pn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function ni(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");F(e.measure,n);var i=t.getBoundingClientRect(),o=(i.right-i.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ii(e){for(var t=e.display,n={},i={},o=t.gutters.clientLeft,r=t.gutters.firstChild,a=0;r;r=r.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=r.offsetLeft+r.clientLeft+o,i[l]=r.clientWidth}return{fixedPos:oi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function oi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ri(e){var t=ti(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/ni(e.display)-3);return function(o){if(jt(e.doc,o))return 0;var r=0;if(o.widgets)for(var a=0;a0&&(s=$e(e.doc,c.line).text).length==c.ch){var u=R(s,s.length,e.options.tabSize)-s.length;c=et(c.line,Math.max(0,Math.round((r-En(e.display).left)/ni(e.display))-u))}return c}function si(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;it)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)wt&&Bt(e.doc,t)o.viewFrom?di(e):(o.viewFrom+=i,o.viewTo+=i);else if(t<=o.viewFrom&&n>=o.viewTo)di(e);else if(t<=o.viewFrom){var r=fi(e,n,n+i,1);r?(o.view=o.view.slice(r.index),o.viewFrom=r.lineN,o.viewTo+=i):di(e)}else if(n>=o.viewTo){var a=fi(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):di(e)}else{var l=fi(e,t,t,-1),s=fi(e,n,n+i,1);l&&s?(o.view=o.view.slice(0,l.index).concat(rn(e,l.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=i):di(e)}var c=o.externalMeasured;c&&(n=o.lineN&&t=i.viewTo)){var r=i.view[si(e,t)];if(null!=r.node){var a=r.changes||(r.changes=[]);-1==U(a,n)&&a.push(n)}}}function di(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function fi(e,t,n,i){var o,r=si(e,t),a=e.display.view;if(!wt||n==e.doc.first+e.doc.size)return{index:r,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(r==a.length-1)return null;o=l+a[r].size-t,r++}else o=l-t;t+=o,n+=o}for(;Bt(e.doc,n)!=n;){if(r==(i<0?0:a.length-1))return null;n+=i*a[r-(i<0?1:0)].size,r+=i}return{index:r,lineN:n}}function pi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo||l.to().linet||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",r),o=!0)}o||i(t,n,"ltr")}(g,n||0,null==i?f:i,function(e,t,o,d){var m="ltr"==o,b=p(e,m?"left":"right"),v=p(t-1,m?"right":"left"),_=null==n&&0==e,y=null==i&&t==f,x=0==d,w=!g||d==g.length-1;if(v.top-b.top<=3){var k=(c?y:_)&&w,C=(c?_:y)&&x?l:(m?b:v).left,E=k?s:(m?v:b).right;u(C,b.top,E-C,b.bottom)}else{var S,T,F,A;m?(S=c&&_&&x?l:b.left,T=c?s:h(e,o,"before"),F=c?l:h(t,o,"after"),A=c&&y&&w?s:v.right):(S=c?h(e,o,"before"):l,T=!c&&_&&x?s:b.right,F=!c&&y&&w?l:v.left,A=c?h(t,o,"after"):s),u(S,b.top,T-S,b.bottom),b.bottom0?t.blinker=setInterval(function(){e.hasFocus()||ki(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function yi(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||wi(e))}function xi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ki(e))},100)}function wi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,O(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),_i(e))}function ki(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ci(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i.005||f<-.005)&&(Xe(o.line,s),Ei(o.line),o.rest))for(var p=0;pe.display.sizerWidth){var h=Math.ceil(c/ni(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function Ei(e){if(e.widgets)for(var t=0;t=a&&(r=Ze(t,Wt($e(t,s))-e.wrapper.clientHeight),a=s)}return{from:r,to:Math.max(a,r+1)}}function Ti(e,t){var n=e.display,i=ti(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,r=Fn(e),a={};t.bottom-t.top>r&&(t.bottom=t.top+r);var l=e.doc.height+Cn(n),s=t.topl-i;if(t.topo+r){var u=Math.min(t.top,(c?l:t.bottom)-r);u!=o&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Tn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Fi(e,t){null!=t&&(Di(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ai(e){Di(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function zi(e,t,n){null==t&&null==n||Di(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Di(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Mi(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Mi(e,t,n,i){var o=Ti(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});zi(e,o.scrollLeft,o.scrollTop)}function Oi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ro(e,{top:t}),Pi(e,t,!0),n&&ro(e),eo(e,100))}function Pi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Li(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,so(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ni(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Cn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ii=function(e,t,n){this.cm=n;var i=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=o.tabIndex=-1,e(i),e(o),fe(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),fe(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ii.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var o=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var r=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+r)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},Ii.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ii.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ii.prototype.zeroWidthHack=function(){var e=v&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Ii.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function i(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)})},Ii.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ri=function(){};function Bi(e,t){t||(t=Ni(e));var n=e.display.barWidth,i=e.display.barHeight;Ui(e,t);for(var o=0;o<4&&n!=e.display.barWidth||i!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Ci(e),Ui(e,Ni(e)),n=e.display.barWidth,i=e.display.barHeight}function Ui(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Ri.prototype.update=function(){return{bottom:0,right:0}},Ri.prototype.setScrollLeft=function(){},Ri.prototype.setScrollTop=function(){},Ri.prototype.clear=function(){};var ji={native:Ii,null:Ri};function qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ji[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Li(e,t):Oi(e,t)},e),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)}var Wi=0;function Ki(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wi},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Hi(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new no(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Vi(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ci(t),e.barMeasure=Ni(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=zn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Tn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Yi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!h){var r=A("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+Sn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(r),r.scrollIntoView(o),e.display.lineSpace.removeChild(r)}}}(t,function(e,t,n,i){var o;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var r=0;r<5;r++){var a=!1,l=Vn(e,t),s=n&&n!=t?Vn(e,n):l,c=Ti(e,o={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-i,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+i}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Oi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Li(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return o}(t,lt(i,e.scrollToPos.from),lt(i,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,r=e.maybeUnhiddenMarkers;if(o)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,i=pt(e,t.highlightFrontier),o=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(r){if(i.line>=e.display.viewFrom){var a=r.styles,l=r.text.length>e.options.maxHighlightLength?qe(t.mode,i.state):null,s=dt(e,r,i,!0);l&&(i.state=l),r.styles=s.styles;var c=r.styleClasses,u=s.classes;u?r.styleClasses=u:c&&(r.styleClasses=null);for(var d=!a||a.length!=r.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&fn)return eo(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),o.length&&Gi(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==pi(e))return!1;co(e)&&(di(e),t.dims=ii(e));var o=i.first+i.size,r=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),wt&&(r=Bt(e.doc,r),a=Ut(e.doc,a));var l=r!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=rn(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=rn(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,si(e,n)))),i.viewTo=n}(e,r,a),n.viewOffset=Wt($e(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=pi(e);if(!l&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=M();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&D(e.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var i=e.display,o=e.options.lineNumbers,r=i.lineDiv,a=r.firstChild;function l(t){var n=t.nextSibling;return s&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=i.view,u=i.viewFrom,d=0;d-1&&(p=!1),un(e,f,u,n)),p&&(T(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Qe(e.options,u)))),a=f.node.nextSibling}else{var h=bn(e,f,u,n);r.insertBefore(h,a)}u+=f.size}for(;a;)a=l(a)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=M()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,eo(e,400)),n.updateLineNumbers=null,!0}function oo(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Tn(e))i&&(t.visible=Si(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Cn(e.display)-Fn(e),n.top)}),t.visible=Si(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!io(e,t))break;Ci(e);var o=Ni(e);hi(e),Bi(e,o),lo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ro(e,t){var n=new no(e,t);if(io(e,n)){Ci(e),oo(e,n);var i=Ni(e);hi(e),Bi(e,i),lo(e,i),n.finish()}}function ao(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function lo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sn(e)+"px"}function so(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=oi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,r=i+"px",a=0;al.clientWidth,u=l.scrollHeight>l.clientHeight;if(o&&c||r&&u){if(r&&v&&s)e:for(var f=t.target,p=a.view;f!=l;f=f.parentNode)for(var h=0;h=0&&tt(e,i.to())<=0)return n}return-1};var yo=function(e,t){this.anchor=e,this.head=t};function xo(e,t,n){var i=e&&e.options.selectionsMayTouch,o=t[n];t.sort(function(e,t){return tt(e.from(),t.from())}),n=U(t,o);for(var r=1;r0:s>=0){var c=rt(l.from(),a.from()),u=ot(l.to(),a.to()),d=l.empty()?a.from()==a.head:l.from()==l.head;r<=n&&--n,t.splice(--r,2,new yo(d?u:c,d?c:u))}}return new _o(t,n)}function wo(e,t){return new _o([new yo(e,t||e)],0)}function ko(e){return e.text?et(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Co(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return ko(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=ko(t).ch-t.to.ch),et(n,i)}function Eo(e,t){for(var n=[],i=0;i1&&e.remove(l.line+1,h-1),e.insert(l.line+1,b)}sn(e,"change",e,t)}function Do(e,t,n){!function e(i,o,r){if(i.linked)for(var a=0;al-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(r=function(e,t){return t?(No(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}(o,o.lastOp==i)))a=X(r.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=ko(t):r.changes.push(Lo(e,t));else{var s=X(o.done);for(s&&s.ranges||Bo(e.sel,o.done),r={changes:[Lo(e,t)],generation:o.generation},o.done.push(r);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=l,o.lastOp=o.lastSelOp=i,o.lastOrigin=o.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function Ro(e,t,n,i){var o=e.history,r=i&&i.origin;n==o.lastSelOp||r&&o.lastSelOrigin==r&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==r||function(e,t,n,i){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,r,X(o.done),t))?o.done[o.done.length-1]=t:Bo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=r,o.lastSelOp=n,i&&!1!==i.clearRedo&&No(o.undone)}function Bo(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Uo(e,t,n,i){var o=t["spans_"+e.id],r=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[r]=n.markedSpans),++r})}function jo(e){if(!e)return null;for(var t,n=0;n-1&&(X(l)[d]=c[d],delete c[d])}}}return i}function Ko(e,t,n,i){if(i){var o=e.anchor;if(n){var r=tt(t,o)<0;r!=tt(n,o)<0?(o=t,t=n):r!=tt(t,n)<0&&(t=n)}return new yo(o,t)}return new yo(n||t,t)}function Ho(e,t,n,i,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Go(e,new _o([Ko(e.sel.primary(),t,n,o)],0),i)}function $o(e,t,n){for(var i=[],o=e.cm&&(e.cm.display.shift||e.extend),r=0;r=t.ch:l.to>t.ch))){if(o&&(ge(s,"beforeCursorEnter"),s.explicitlyCleared)){if(r.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var d=s.find(i<0?1:-1),f=void 0;if((i<0?u:c)&&(d=ir(e,d,-i,d&&d.line==t.line?r:null)),d&&d.line==t.line&&(f=tt(d,n))&&(i<0?f<0:f>0))return tr(e,d,t,i,o)}var p=s.find(i<0?-1:1);return(i<0?c:u)&&(p=ir(e,p,i,p.line==t.line?r:null)),p?tr(e,p,t,i,o):null}}return t}function nr(e,t,n,i,o){var r=i||1,a=tr(e,t,n,r,o)||!o&&tr(e,t,n,r,!0)||tr(e,t,n,-r,o)||!o&&tr(e,t,n,-r,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ir(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?lt(e,et(t.line-1)):null:n>0&&t.ch==(i||$e(e,t.line)).text.length?t.line0)){var u=[s,1],d=tt(c.from,l.from),f=tt(c.to,l.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:l.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:l.to,to:c.to}),o.splice.apply(o,u),s+=u.length-3}}return o}(e,t.from,t.to);if(i)for(var o=i.length-1;o>=0;--o)lr(e,{from:i[o].from,to:i[o].to,text:o?[""]:t.text,origin:t.origin});else lr(e,t)}}function lr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Eo(e,t);Io(e,t,n,e.cm?e.cm.curOp.id:NaN),ur(e,t,n,St(e,t));var i=[];Do(e,function(e,n){n||-1!=U(i,e.history)||(hr(e.history,t),i.push(e.history)),ur(e,t,null,St(e,t))})}}function sr(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var o,r=e.history,a=e.sel,l="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,c=0;c=0;--p){var h=f(p);if(h)return h.v}}}}function cr(e,t){if(0!=t&&(e.first+=t,e.sel=new _o(G(e.sel.ranges,function(e){return new yo(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){ci(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.liner&&(t={from:t.from,to:et(r,$e(e,r).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ve(e,t.from,t.to),n||(n=Eo(e,t)),e.cm?function(e,t,n){var i=e.doc,o=e.display,r=t.from,a=t.to,l=!1,s=r.line;e.options.lineWrapping||(s=Ge(Rt($e(i,r.line))),i.iter(s,a.line+1,function(e){if(e==o.maxLine)return l=!0,!0}));i.sel.contains(t.from,t.to)>-1&&be(e);zo(i,t,n,ri(e)),e.options.lineWrapping||(i.iter(s,r.line+t.text.length,function(e){var t=Kt(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;i--){var o=$e(e,i).stateAfter;if(o&&(!(o instanceof ct)||i+o.lookAhead1||!(this.children[0]instanceof mr))){var l=[];this.collapse(l),this.children=[new mr(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i0||0==a&&!1!==r.clearWhenEmpty)return r;if(r.replacedWith&&(r.collapsed=!0,r.widgetNode=z("span",[r.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||r.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(r.widgetNode.insertLeft=!0)),r.collapsed){if(It(e,t.line,t,n,r)||t.line!=n.line&&It(e,n.line,t,n,r))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt=!0}r.addToHistory&&Io(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,c=e.cm;if(e.iter(s,n.line+1,function(e){c&&r.collapsed&&!c.options.lineWrapping&&Rt(e)==c.display.maxLine&&(l=!0),r.collapsed&&s!=t.line&&Xe(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new kt(r,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s}),r.collapsed&&e.iter(t.line,n.line+1,function(t){jt(e,t)&&Xe(t,0)}),r.clearOnEnter&&fe(r,"beforeCursorEnter",function(){return r.clear()}),r.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),r.collapsed&&(r.id=++yr,r.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),r.collapsed)ci(c,t.line,n.line+1);else if(r.className||r.startStyle||r.endStyle||r.css||r.attributes||r.title)for(var u=t.line;u<=n.line;u++)ui(c,u,"text");r.atomic&&Qo(c.doc),sn(c,"markerAdded",c,r)}return r}xr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ki(e),ve(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var i=null,o=null,r=0;re.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&ci(e,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qo(e.doc)),e&&sn(e,"markerCleared",e,this,i,o),t&&Hi(e),this.parent&&this.parent.clear()}},xr.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;s--)ar(this,i[s]);l?Xo(this,l):this.cm&&Ai(this.cm)}),undo:Qi(function(){sr(this,"undo")}),redo:Qi(function(){sr(this,"redo")}),undoSelection:Qi(function(){sr(this,"undo",!0)}),redoSelection:Qi(function(){sr(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=lt(this,e),t=lt(this,t);var i=[],o=e.line;return this.iter(e.line,t.line+1,function(r){var a=r.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&o!=e.line||null!=s.from&&o==t.line&&s.from>=t.ch||n&&!n(s.marker)||i.push(s.marker.parent||s.marker)}++o}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;ie)return t=e,!0;e-=r,++n}),lt(this,et(n,t))},indexFromPos:function(e){var t=(e=lt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Zo(t.doc,wo(n,n)),f)for(var p=0;p=0;t--)dr(e.doc,"",i[t].from,i[t].to,"+delete");Ai(e)})}function Yr(e,t,n){var i=re(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Xr(e,t,n){var i=Yr(e,t.ch,n);return null==i?null:new et(t.line,i,n<0?"after":"before")}function Gr(e,t,n,i,o){if(e){"rtl"==t.doc.direction&&(o=-o);var r=ue(n,t.doc.direction);if(r){var a,l=o<0?X(r):r[0],s=o<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=Mn(t,n);a=o<0?n.text.length-1:0;var u=On(t,c,a).top;a=ae(function(e){return On(t,c,e).top==u},o<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Yr(n,a,1))}else a=o<0?l.to:l.from;return new et(i,a,s)}}return new et(i,o<0?n.text.length:0,o<0?"before":"after")}Br.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Br.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Br.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Br.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Br.default=v?Br.macDefault:Br.pcDefault;var Zr={selectAll:or,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Vr(e,function(t){if(t.empty()){var n=$e(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new et(o.line,o.ch+1),e.replaceRange(r.charAt(o.ch-1)+r.charAt(o.ch-2),et(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=$e(e.doc,o.line-1).text;a&&(o=new et(o.line,1),e.replaceRange(r.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(o.line-1,a.length-1),o,"+transpose"))}n.push(new yo(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return Gi(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i-1&&(tt((o=c.ranges[o]).from(),t)<0||t.xRel>0)&&(tt(o.to(),t)>0||t.xRel<0)?function(e,t,n,i){var o=e.display,r=!1,c=Zi(e,function(t){s&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:xi(e)),he(o.wrapper.ownerDocument,"mouseup",c),he(o.wrapper.ownerDocument,"mousemove",u),he(o.scroller,"dragstart",d),he(o.scroller,"drop",c),r||(ye(t),i.addNew||Ho(e.doc,n,null,null,i.extend),s&&!f||a&&9==l?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),u=function(e){r=r||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return r=!0};s&&(o.scroller.draggable=!0);e.state.draggingText=c,c.copy=!i.moveOnDrag,fe(o.wrapper.ownerDocument,"mouseup",c),fe(o.wrapper.ownerDocument,"mousemove",u),fe(o.scroller,"dragstart",d),fe(o.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout(function(){return o.input.focus()},20),o.scroller.dragDrop&&o.scroller.dragDrop()}(e,i,t,r):function(e,t,n,i){a&&xi(e);var o=e.display,r=e.doc;ye(t);var l,s,c=r.sel,u=c.ranges;i.addNew&&!i.extend?(s=r.sel.contains(n),l=s>-1?u[s]:new yo(n,n)):(l=r.sel.primary(),s=r.sel.primIndex);if("rectangle"==i.unit)i.addNew||(l=new yo(n,n)),n=li(e,t,!0,!0),s=-1;else{var d=pa(e,n,i.unit);l=i.extend?Ko(l,d.anchor,d.head,i.extend):d}i.addNew?-1==s?(s=u.length,Go(r,xo(e,u.concat([l]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==i.unit&&!i.extend?(Go(r,xo(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=r.sel):Vo(r,s,l,K):(s=0,Go(r,new _o([l],0),K),c=r.sel);var f=n;function p(t){if(0!=tt(f,t))if(f=t,"rectangle"==i.unit){for(var o=[],a=e.options.tabSize,u=R($e(r,n.line).text,n.ch,a),d=R($e(r,t.line).text,t.ch,a),p=Math.min(u,d),h=Math.max(u,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var b=$e(r,g).text,v=$(b,p,a);p==h?o.push(new yo(et(g,v),et(g,v))):b.length>v&&o.push(new yo(et(g,v),et(g,$(b,h,a))))}o.length||o.push(new yo(n,n)),Go(r,xo(e,c.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var _,y=l,x=pa(e,t,i.unit),w=y.anchor;tt(x.anchor,w)>0?(_=x.head,w=rt(y.from(),x.anchor)):(_=x.anchor,w=ot(y.to(),x.head));var k=c.ranges.slice(0);k[s]=function(e,t){var n=t.anchor,i=t.head,o=$e(e.doc,n.line);if(0==tt(n,i)&&n.sticky==i.sticky)return t;var r=ue(o);if(!r)return t;var a=se(r,n.ch,n.sticky),l=r[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,c=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==c||c==r.length)return t;if(i.line!=n.line)s=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=se(r,i.ch,i.sticky),d=u-a||(i.ch-n.ch)*(1==l.level?-1:1);s=u==c-1||u==c?d<0:d>0}var f=r[c+(s?-1:0)],p=s==(1==f.level),h=p?f.from:f.to,g=p?"after":"before";return n.ch==h&&n.sticky==g?t:new yo(new et(n.line,h,g),i)}(e,new yo(lt(r,w),_)),Go(r,xo(e,k,s),K)}}var h=o.wrapper.getBoundingClientRect(),g=0;function m(t){e.state.selectingText=!1,g=1/0,t&&(ye(t),o.input.focus()),he(o.wrapper.ownerDocument,"mousemove",b),he(o.wrapper.ownerDocument,"mouseup",v),r.history.lastSelOrigin=null}var b=Zi(e,function(t){0!==t.buttons&&Ee(t)?function t(n){var a=++g;var l=li(e,n,!0,"rectangle"==i.unit);if(!l)return;if(0!=tt(l,f)){e.curOp.focus=M(),p(l);var s=Si(o,r);(l.line>=s.to||l.lineh.bottom?20:0;c&&setTimeout(Zi(e,function(){g==a&&(o.scroller.scrollTop+=c,t(n))}),50)}}(t):m(t)}),v=Zi(e,m);e.state.selectingText=v,fe(o.wrapper.ownerDocument,"mousemove",b),fe(o.wrapper.ownerDocument,"mouseup",v)}(e,i,t,r)}(t,i,r,e):Ce(e)==n.scroller&&ye(e):2==o?(i&&Ho(t.doc,i),setTimeout(function(){return n.input.focus()},20)):3==o&&(k?t.display.input.onContextMenu(e):xi(t)))}}function pa(e,t,n){if("char"==n)return new yo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new yo(et(t.line,0),lt(e.doc,et(t.line+1,0)));var i=n(e,t);return new yo(i.from,i.to)}function ha(e,t,n,i){var o,r;if(t.touches)o=t.touches[0].clientX,r=t.touches[0].clientY;else try{o=t.clientX,r=t.clientY}catch(e){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&ye(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(r>l.bottom||!ve(e,n))return we(t);r-=l.top-a.viewOffset;for(var s=0;s=o)return ge(e,n,e,Ze(e.doc,r),e.display.gutterSpecs[s].className,t),we(t)}}function ga(e,t){return ha(e,t,"gutterClick",!0)}function ma(e,t){wn(e.display,t)||function(e,t){if(!ve(e,"gutterContextMenu"))return!1;return ha(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function ba(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}da.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var va={toString:function(){return"CodeMirror.Init"}},_a={},ya={};function xa(e,t,n){if(!t!=!(n&&n!=va)){var i=e.display.dragFunctions,o=t?fe:he;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function wa(e){e.options.lineWrapping?(O(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),ai(e),ci(e),Un(e),setTimeout(function(){return Bi(e)},100)}function ka(e,t){var i=this;if(!(this instanceof ka))return new ka(e,t);this.options=t=t?I(t):{},I(_a,t,!1);var o=t.value;"string"==typeof o?o=new Tr(o,t.mode,null,t.lineSeparator,t.direction):t.mode&&(o.modeOption=t.mode),this.doc=o;var r=new ka.inputStyles[t.inputStyle](this),c=this.display=new function(e,t,i,o){var r=this;this.input=i,r.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=z("div",null,"CodeMirror-code"),r.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=A("div",null,"CodeMirror-cursors"),r.measure=A("div",null,"CodeMirror-measure"),r.lineMeasure=A("div",null,"CodeMirror-measure"),r.lineSpace=z("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var c=z("div",[r.lineSpace],"CodeMirror-lines");r.mover=A("div",[c],null,"position: relative"),r.sizer=A("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=A("div",null,null,"position: absolute; height: "+j+"px; width: 1px;"),r.gutters=A("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=A("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=A("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),a&&l<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),s||n&&b||(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,r.gutterSpecs=uo(o.gutters,o.lineNumbers),fo(r),i.init(r)}(e,o,r,t);for(var u in c.wrapper.CodeMirror=this,ba(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!b&&c.input.focus(),a&&l<11&&setTimeout(function(){return i.display.input.reset(!0)},20),function(e){var t=e.display;fe(t.scroller,"mousedown",Zi(e,fa)),fe(t.scroller,"dblclick",a&&l<11?Zi(e,function(t){if(!me(e,t)){var n=li(e,t);if(n&&!ga(e,t)&&!wn(e.display,t)){ye(t);var i=e.findWordAt(n);Ho(e.doc,i.anchor,i.head)}}}):function(t){return me(e,t)||ye(t)});fe(t.scroller,"contextmenu",function(t){return ma(e,t)}),fe(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||ma(e,n)});var n,i={end:0};function o(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(i=t.activeTouch).end=+new Date)}function r(e,t){if(null==t.left)return!0;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>400}fe(t.scroller,"touchstart",function(o){if(!me(e,o)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(o)&&!ga(e,o)){t.input.ensurePolled(),clearTimeout(n);var r=+new Date;t.activeTouch={start:r,moved:!1,prev:r-i.end<=300?i:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}}),fe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),fe(t.scroller,"touchend",function(n){var i=t.activeTouch;if(i&&!wn(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,l=e.coordsChar(t.activeTouch,"page");a=!i.prev||r(i,i.prev)?new yo(l,l):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(l):new yo(et(l.line,0),lt(e.doc,et(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ye(n)}o()}),fe(t.scroller,"touchcancel",o),fe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Oi(e,t.scroller.scrollTop),Li(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))}),fe(t.scroller,"mousewheel",function(t){return vo(e,t)}),fe(t.scroller,"DOMMouseScroll",function(t){return vo(e,t)}),fe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){me(e,t)||ke(t)},over:function(t){me(e,t)||(!function(e,t){var n=li(e,t);if(n){var i=document.createDocumentFragment();mi(e,n,i),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),F(e.display.dragCursor,i)}}(e,t),ke(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fr<100))ke(t);else if(!me(e,t)&&!wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(e,t)},drop:Zi(e,Ar),leave:function(t){me(e,t)||zr(e)}};var s=t.input.getField();fe(s,"keyup",function(t){return la.call(e,t)}),fe(s,"keydown",Zi(e,aa)),fe(s,"keypress",Zi(e,sa)),fe(s,"focus",function(t){return wi(e,t)}),fe(s,"blur",function(t){return ki(e,t)})}(this),Or(),Ki(this),this.curOp.forceUpdate=!0,Mo(this,o),t.autofocus&&!b||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&wi(i)},20):ki(this),ya)ya.hasOwnProperty(u)&&ya[u](this,t[u],va);co(this),t.finishInit&&t.finishInit(this);for(var p=0;p150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>r.first?R($e(r,t-1).text,null,a):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)f+=a,d+="\t";if(fa,s=Me(t),c=null;if(l&&i.ranges.length>1)if(Sa&&Sa.text.join("\n")==t){if(i.ranges.length%Sa.text.length==0){c=[];for(var u=0;u=0;f--){var p=i.ranges[f],h=p.from(),g=p.to();p.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!l?g=et(g.line,Math.min($e(r,g.line).text.length,g.ch+X(s).length)):l&&Sa&&Sa.lineWise&&Sa.text.join("\n")==s.join("\n")&&(h=g=et(h.line,0)));var m={from:h,to:g,text:c?c[f%c.length]:s,origin:o||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};ar(e.doc,m),sn(e,"inputRead",e,m)}t&&!l&&za(e,t),Ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Aa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Gi(t,function(){return Fa(t,n,0,null,"paste")}),!0}function za(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var o=n.ranges[i];if(!(o.head.ch>100||i&&n.ranges[i-1].head.line==o.head.line)){var r=e.getModeAt(o.head),a=!1;if(r.electricChars){for(var l=0;l-1){a=Ea(e,o.head.line,"smart");break}}else r.electricInput&&r.electricInput.test($e(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Ea(e,o.head.line,"smart"));a&&sn(e,"electricInput",e,o.head.line)}}}function Da(e){for(var t=[],n=[],i=0;i0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new et(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(d?2:1))),-n)}}else a=o?function(e,t,n,i){var o=ue(t,e.doc.direction);if(!o)return Xr(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var r=se(o,n.ch,n.sticky),a=o[r];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&f>=u.begin)){var p=d?"before":"after";return new et(n.line,f,p)}}var h=function(e,t,i){for(var r=function(e,t){return t?new et(n.line,s(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=l?i.begin:s(i.end,-1);if(a.from<=c&&c0?u.end:s(u.begin,-1);return null==m||i>0&&m==t.text.length||!(g=h(i>0?0:o.length-1,i,c(m)))?null:g}(e.cm,l,t,n):Xr(l,t,n);if(null==a){if(r||(c=t.line+s)=e.first+e.size||(t=new et(c,t.ch,t.sticky),!(l=$e(e,c))))return!1;t=Gr(o,e.cm,l,t.line,s)}else t=a;return!0}if("char"==i||"codepoint"==i)c();else if("column"==i)c(!0);else if("word"==i||"group"==i)for(var u=null,d="group"==i,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||c(!p);p=!1){var h=l.text.charAt(t.ch)||"\n",g=te(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||g||(g="s"),u&&u!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(u=g),n>0&&!c(!p))break}var m=nr(e,t,r,a,!0);return nt(r,m)&&(m.hitSide=!0),m}function La(e,t,n,i){var o,r,a=e.doc,l=t.left;if("page"==i){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*ti(e.display),3);o=(n>0?t.bottom:t.top)+n*c}else"line"==i&&(o=n>0?t.bottom+3:t.top-3);for(;(r=Gn(e,l,o)).outside;){if(n<0?o<=0:o>=a.height){r.hitSide=!0;break}o+=5*n}return r}var Na=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ia(e,t){var n=Dn(e,t.line);if(!n||n.hidden)return null;var i=$e(e.doc,t.line),o=An(n,i,t.line),r=ue(i,e.doc.direction),a="left";r&&(a=se(r,t.ch)%2?"right":"left");var l=Nn(o.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Ra(e,t){return t&&(e.bad=!0),e}function Ba(e,t,n){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[n]))return Ra(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var o=0;o=t.display.viewTo||r.line=t.display.viewFrom&&Ia(t,o)||{node:s[0].measure.map[2],offset:0},u=r.linei.firstLine()&&(a=et(a.line-1,$e(i.doc,a.line-1).length)),l.ch==$e(i.doc,l.line).text.length&&l.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=si(i,a.line))?(t=Ge(o.view[0].line),n=o.view[0].node):(t=Ge(o.view[e].line),n=o.view[e-1].node.nextSibling);var s,c,u=si(i,l.line);if(u==o.view.length-1?(s=o.viewTo-1,c=o.lineDiv.lastChild):(s=Ge(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!n)return!1;for(var d=i.doc.splitLines(function(e,t,n,i,o){var r="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(){a&&(r+=l,s&&(r+=l),a=s=!1)}function u(e){e&&(c(),r+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var r,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(et(i,0),et(o+1,0),(m=+f,function(e){return e.id==m}));return void(p.length&&(r=p[0].find(0))&&u(Ve(e.doc,r.from,r.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&c();for(var g=0;g1&&f.length>1;)if(X(d)==X(f))d.pop(),f.pop(),s--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,g=d[0],m=f[0],b=Math.min(g.length,m.length);pa.ch&&v.charCodeAt(v.length-h-1)==_.charCodeAt(_.length-h-1);)p--,h++;d[d.length-1]=v.slice(0,v.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var x=et(t,p),w=et(s,f.length?X(f).length-h:0);return d.length>1||d[0]||tt(x,w)?(dr(i.doc,d,x,w,"+input"),!0):void 0},Na.prototype.ensurePolled=function(){this.forceCompositionEnd()},Na.prototype.reset=function(){this.forceCompositionEnd()},Na.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Na.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Na.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Gi(this.cm,function(){return ci(e.cm)})},Na.prototype.setUneditable=function(e){e.contentEditable="false"},Na.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Zi(this.cm,Fa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Na.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Na.prototype.onContextMenu=function(){},Na.prototype.resetPosition=function(){},Na.prototype.needsContentAttribute=!0;var ja=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};ja.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var o=this.textarea;function r(e){if(!me(i,e)){if(i.somethingSelected())Ta({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Da(i);Ta({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,W):(n.prevInput="",o.value=t.text.join("\n"),L(o))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),fe(o,"input",function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),fe(o,"paste",function(e){me(i,e)||Aa(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),fe(o,"cut",r),fe(o,"copy",r),fe(e.scroller,"paste",function(t){if(!wn(e,t)&&!me(i,t)){if(!o.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var r=new Event("paste");r.clipboardData=t.clipboardData,o.dispatchEvent(r)}}),fe(e.lineSpace,"selectstart",function(t){wn(e,t)||ye(t)}),fe(o,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),fe(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ja.prototype.createField=function(e){this.wrapper=Oa(),this.textarea=this.wrapper.firstChild},ja.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ja.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=gi(e);if(e.options.moveInputWithCursor){var o=Vn(e,n.sel.primary().head,"div"),r=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-r.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-r.left))}return i},ja.prototype.showSelection=function(e){var t=this.cm.display;F(t.cursorDiv,e.cursors),F(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ja.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},ja.prototype.getField=function(){return this.textarea},ja.prototype.supportsTouch=function(){return!1},ja.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||M()!=this.textarea))try{this.textarea.focus()}catch(e){}},ja.prototype.blur=function(){this.textarea.blur()},ja.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ja.prototype.receivedFocus=function(){this.slowPoll()},ja.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ja.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},ja.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Oe(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==i&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===o||v&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var r=o.charCodeAt(0);if(8203!=r||i||(i="​"),8666==r)return this.reset(),this.cm.execCommand("undo")}for(var s=0,c=Math.min(i.length,o.length);s1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ja.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ja.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},ja.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var r=li(n,e),c=i.scroller.scrollTop;if(r&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(r)&&Zi(n,Go)(n.doc,wo(r),W);var u,f=o.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(u=window.scrollY),i.input.focus(),s&&window.scrollTo(null,u),i.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=b,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&l>=9&&m(),k){ke(e);var g=function(){he(window,"mouseup",g),setTimeout(b,20)};fe(window,"mouseup",g)}else setTimeout(b,50)}function m(){if(null!=o.selectionStart){var e=n.somethingSelected(),r="​"+(e?o.value:"");o.value="⇚",o.value=r,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=r.length,i.selForContextMenu=n.doc.sel}}function b(){if(t.contextMenuPending==b&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,o.style.cssText=f,a&&l<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&l<9)&&m();var e=0,r=function(){i.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?Zi(n,or)(n):e++<10?i.detectingSelectAll=setTimeout(r,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(r,200)}}},ja.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ja.prototype.setUneditable=function(){},ja.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,i,o,r){e.defaults[n]=i,o&&(t[n]=r?function(e,t,n){n!=va&&o(e,t,n)}:o)}e.defineOption=n,e.Init=va,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,To(e)},!0),n("indentUnit",2,To,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Fo(e),Un(e),ci(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var r=e.text.indexOf(t,o);if(-1==r)break;o=r+t.length,n.push(et(i,r))}i++});for(var o=n.length-1;o>=0;o--)dr(e.doc,t,n[o],et(n[o].line,n[o].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=va&&e.refresh()}),n("specialCharPlaceholder",Jt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!y),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ba(e),po(e)},!0),n("keyMap","default",function(e,t,n){var i=$r(t),o=n!=va&&$r(n);o&&o.detach&&o.detach(e,i),i.attach&&i.attach(e,o||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,wa,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=uo(t,e.options.lineNumbers),po(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?oi(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Bi(e)},!0),n("scrollbarStyle","native",function(e){qi(e),Bi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=uo(e.options.gutters,t),po(e)},!0),n("firstLineNumber",1,po,!0),n("lineNumberFormatter",function(e){return e},po,!0),n("showCursorWhenSelecting",!1,hi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(ki(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,xa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,hi,!0),n("singleCursorHeightPerLine",!0,hi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fo,!0),n("addModeClass",!1,Fo,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Fo,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(ka),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,o=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&Zi(this,t[e])(this,n,o),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($r(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Ea(this,o.head.line,e,!0),n=o.head.line,i==this.doc.sel.primIndex&&Ai(this));else{var r=o.from(),a=o.to(),l=Math.max(n,r.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s0&&Vo(this.doc,i,new yo(r,c[i].to()),W)}}}),getTokenAt:function(e,t){return vt(this,e,t)},getLineTokens:function(e,t){return vt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=lt(this.doc,e);var t,n=ft(this,$e(this.doc,e.line)),i=0,o=(n.length-1)/2,r=e.ch;if(0==r)t=n[2];else for(;;){var a=i+o>>1;if((a?n[2*a-1]:0)>=r)o=a;else{if(!(n[2*a+1]r&&(e=r,o=!0),i=$e(this.doc,e)}else i=e;return Kn(this,i,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-Wt(i):0)},defaultTextHeight:function(){return ti(this.display)},defaultCharWidth:function(){return ni(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,o){var r,a,l,s=this.display,c=(e=Vn(this,lt(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==i)c=e.top;else if("above"==i||"near"==i){var d=Math.max(s.wrapper.clientHeight,this.doc.height),f=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==o?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?u=0:"middle"==o&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(r=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(l=Ti(r,a)).scrollTop&&Oi(r,l.scrollTop),null!=l.scrollLeft&&Li(r,l.scrollLeft))},triggerOnKeyDown:Ji(aa),triggerOnKeyPress:Ji(sa),triggerOnKeyUp:la,triggerOnMouseDown:Ji(fa),execCommand:function(e){if(Zr.hasOwnProperty(e))return Zr[e].call(null,this)},triggerElectric:Ji(function(e){za(this,e)}),findPosH:function(e,t,n,i){var o=1;t<0&&(o=-1,t=-t);for(var r=lt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;i.5||this.options.lineWrapping)&&ai(this),ge(this,"refresh",this)}),swapDoc:Ji(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Mo(this,e),Un(this),this.display.input.reset(),zi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_e(e),e.registerHelper=function(t,i,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=o},e.registerGlobalHelper=function(t,i,o,r){e.registerHelper(t,i,r),n[t]._global.push({pred:o,val:r})}}(ka);var qa="iter insert remove copy getEditor constructor".split(" ");for(var Wa in Tr.prototype)Tr.prototype.hasOwnProperty(Wa)&&U(qa,Wa)<0&&(ka.prototype[Wa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tr.prototype[Wa]));return _e(Tr),ka.inputStyles={textarea:ja,contenteditable:Na},ka.defineMode=function(e){ka.defaults.mode||"null"==e||(ka.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}.apply(this,arguments)},ka.defineMIME=function(e,t){Ie[e]=t},ka.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ka.defineMIME("text/plain","null"),ka.defineExtension=function(e,t){ka.prototype[e]=t},ka.defineDocExtension=function(e,t){Tr.prototype[e]=t},ka.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=M();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=l.getValue()}var o;if(e.form&&(fe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var r=e.form;o=r.submit;try{var a=r.submit=function(){i(),r.submit=o,r.submit(),r.submit=a}}catch(e){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(he(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var l=ka(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return l},function(e){e.off=he,e.on=fe,e.wheelEventPixels=bo,e.Doc=Tr,e.splitLines=Me,e.countColumn=R,e.findColumn=$,e.isWordChar=ee,e.Pass=q,e.signal=ge,e.Line=$t,e.changeEnd=ko,e.scrollbarModel=ji,e.Pos=et,e.cmpPos=tt,e.modes=Ne,e.mimeModes=Ie,e.resolveMode=Re,e.getMode=Be,e.modeExtensions=Ue,e.extendMode=je,e.copyState=qe,e.startState=Ke,e.innerMode=We,e.commands=Zr,e.keyMap=Br,e.keyName=Hr,e.isModifierKey=Wr,e.lookupKey=qr,e.normalizeKeyMap=jr,e.StringStream=He,e.SharedTextMarker=kr,e.TextMarker=xr,e.LineWidget=vr,e.e_preventDefault=ye,e.e_stopPropagation=xe,e.e_stop=ke,e.addClass=O,e.contains=D,e.rmClass=S,e.keyNames=Lr}(ka),ka.version="5.60.0",ka},e.exports=i()},"8Yco":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qZ9B"),o=n.n(i),r=n("0ic4"),a=n.n(r);t.default={components:{elementSelect:a.a},mixins:[o.a],props:["config"],computed:{rules:function(){}},methods:{created:function(){},rightClick:function(e){this.toConfig(e,{name:this.nameAttr,label:this.labelAttr,icon:this.iconAttr})},click:function(e){"function"==typeof this.config.onClick&&this.config.onClick(e,this.config,this),this.$emit("buttonClick",e,this.config)},itemClick:function(e){"function"==typeof this.config.onItemClick&&this.config.onItemClick(e,this.config,this),"function"==typeof e&&e(e,this.config,this),this.$emit("buttonItemClick",e,e)}}}},"9V2q":function(e,t,n){var i,o,r,a;a=function(e){var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,o=1===n.which,r=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(o&&!r&&this._mouseCapture(n))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),!0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})},o=[n("7t+N"),n("zkIY"),n("UZ9c"),n("z1kw")],void 0===(r="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=r)},"9X3J":function(e,t,n){var i=n("VU/8")(n("81nI"),n("dJTC"),!1,null,null,null);e.exports=i.exports},"9rXv":function(e,t,n){"use strict";var i,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r=64,a={},l=0,s=0;function c(e){var t="";do{t=o[e%r]+t,e=Math.floor(e/r)}while(e>0);return t}function u(){var e=c(+new Date);return e!==i?(l=0,i=e):e+"."+c(l++)}for(;s=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(t,n("W2nU"))},AYMf:function(e,t,n){var i=n("4ThM"),o=n("pnVU"),r=n("bqFq"),a=n("SJFm"),l=n("zqJT"),s=n("dtwh")("socket.io-client:socket"),c=n("gVZZ"),u=n("5+KW");e.exports=p;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},f=o.prototype.emit;function p(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[a(e,"open",l(this,"onopen")),a(e,"packet",l(this,"onpacket")),a(e,"close",l(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},p.prototype.send=function(){var e=r(arguments);return e.unshift("message"),this.emit.apply(this,e),this},p.prototype.emit=function(e){if(d.hasOwnProperty(e))return f.apply(this,arguments),this;var t=r(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:u(t))?i.BINARY_EVENT:i.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(s("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},p.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},p.prototype.onopen=function(){if(s("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?c.encode(this.query):this.query;s("sending connect packet with query %s",e),this.packet({type:i.CONNECT,query:e})}else this.packet({type:i.CONNECT})},p.prototype.onclose=function(e){s("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},p.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===i.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case i.CONNECT:this.onconnect();break;case i.EVENT:case i.BINARY_EVENT:this.onevent(e);break;case i.ACK:case i.BINARY_ACK:this.onack(e);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",e.data)}},p.prototype.onevent=function(e){var t=e.data||[];s("emitting event %j",t),null!=e.id&&(s("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?f.apply(this,t):this.receiveBuffer.push(t)},p.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=r(arguments);s("sending ack %j",o),t.packet({type:u(o)?i.BINARY_ACK:i.ACK,id:e,data:o})}}},p.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(s("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):s("bad ack %s",e.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.prototype.emitBuffered=function(){var e;for(e=0;eli{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\F000"}.fa-music:before{content:"\\F001"}.fa-search:before{content:"\\F002"}.fa-envelope-o:before{content:"\\F003"}.fa-heart:before{content:"\\F004"}.fa-star:before{content:"\\F005"}.fa-star-o:before{content:"\\F006"}.fa-user:before{content:"\\F007"}.fa-film:before{content:"\\F008"}.fa-th-large:before{content:"\\F009"}.fa-th:before{content:"\\F00A"}.fa-th-list:before{content:"\\F00B"}.fa-check:before{content:"\\F00C"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\\F00D"}.fa-search-plus:before{content:"\\F00E"}.fa-search-minus:before{content:"\\F010"}.fa-power-off:before{content:"\\F011"}.fa-signal:before{content:"\\F012"}.fa-cog:before,.fa-gear:before{content:"\\F013"}.fa-trash-o:before{content:"\\F014"}.fa-home:before{content:"\\F015"}.fa-file-o:before{content:"\\F016"}.fa-clock-o:before{content:"\\F017"}.fa-road:before{content:"\\F018"}.fa-download:before{content:"\\F019"}.fa-arrow-circle-o-down:before{content:"\\F01A"}.fa-arrow-circle-o-up:before{content:"\\F01B"}.fa-inbox:before{content:"\\F01C"}.fa-play-circle-o:before{content:"\\F01D"}.fa-repeat:before,.fa-rotate-right:before{content:"\\F01E"}.fa-refresh:before{content:"\\F021"}.fa-list-alt:before{content:"\\F022"}.fa-lock:before{content:"\\F023"}.fa-flag:before{content:"\\F024"}.fa-headphones:before{content:"\\F025"}.fa-volume-off:before{content:"\\F026"}.fa-volume-down:before{content:"\\F027"}.fa-volume-up:before{content:"\\F028"}.fa-qrcode:before{content:"\\F029"}.fa-barcode:before{content:"\\F02A"}.fa-tag:before{content:"\\F02B"}.fa-tags:before{content:"\\F02C"}.fa-book:before{content:"\\F02D"}.fa-bookmark:before{content:"\\F02E"}.fa-print:before{content:"\\F02F"}.fa-camera:before{content:"\\F030"}.fa-font:before{content:"\\F031"}.fa-bold:before{content:"\\F032"}.fa-italic:before{content:"\\F033"}.fa-text-height:before{content:"\\F034"}.fa-text-width:before{content:"\\F035"}.fa-align-left:before{content:"\\F036"}.fa-align-center:before{content:"\\F037"}.fa-align-right:before{content:"\\F038"}.fa-align-justify:before{content:"\\F039"}.fa-list:before{content:"\\F03A"}.fa-dedent:before,.fa-outdent:before{content:"\\F03B"}.fa-indent:before{content:"\\F03C"}.fa-video-camera:before{content:"\\F03D"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\\F03E"}.fa-pencil:before{content:"\\F040"}.fa-map-marker:before{content:"\\F041"}.fa-adjust:before{content:"\\F042"}.fa-tint:before{content:"\\F043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\F044"}.fa-share-square-o:before{content:"\\F045"}.fa-check-square-o:before{content:"\\F046"}.fa-arrows:before{content:"\\F047"}.fa-step-backward:before{content:"\\F048"}.fa-fast-backward:before{content:"\\F049"}.fa-backward:before{content:"\\F04A"}.fa-play:before{content:"\\F04B"}.fa-pause:before{content:"\\F04C"}.fa-stop:before{content:"\\F04D"}.fa-forward:before{content:"\\F04E"}.fa-fast-forward:before{content:"\\F050"}.fa-step-forward:before{content:"\\F051"}.fa-eject:before{content:"\\F052"}.fa-chevron-left:before{content:"\\F053"}.fa-chevron-right:before{content:"\\F054"}.fa-plus-circle:before{content:"\\F055"}.fa-minus-circle:before{content:"\\F056"}.fa-times-circle:before{content:"\\F057"}.fa-check-circle:before{content:"\\F058"}.fa-question-circle:before{content:"\\F059"}.fa-info-circle:before{content:"\\F05A"}.fa-crosshairs:before{content:"\\F05B"}.fa-times-circle-o:before{content:"\\F05C"}.fa-check-circle-o:before{content:"\\F05D"}.fa-ban:before{content:"\\F05E"}.fa-arrow-left:before{content:"\\F060"}.fa-arrow-right:before{content:"\\F061"}.fa-arrow-up:before{content:"\\F062"}.fa-arrow-down:before{content:"\\F063"}.fa-mail-forward:before,.fa-share:before{content:"\\F064"}.fa-expand:before{content:"\\F065"}.fa-compress:before{content:"\\F066"}.fa-plus:before{content:"\\F067"}.fa-minus:before{content:"\\F068"}.fa-asterisk:before{content:"\\F069"}.fa-exclamation-circle:before{content:"\\F06A"}.fa-gift:before{content:"\\F06B"}.fa-leaf:before{content:"\\F06C"}.fa-fire:before{content:"\\F06D"}.fa-eye:before{content:"\\F06E"}.fa-eye-slash:before{content:"\\F070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\\F071"}.fa-plane:before{content:"\\F072"}.fa-calendar:before{content:"\\F073"}.fa-random:before{content:"\\F074"}.fa-comment:before{content:"\\F075"}.fa-magnet:before{content:"\\F076"}.fa-chevron-up:before{content:"\\F077"}.fa-chevron-down:before{content:"\\F078"}.fa-retweet:before{content:"\\F079"}.fa-shopping-cart:before{content:"\\F07A"}.fa-folder:before{content:"\\F07B"}.fa-folder-open:before{content:"\\F07C"}.fa-arrows-v:before{content:"\\F07D"}.fa-arrows-h:before{content:"\\F07E"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\F080"}.fa-twitter-square:before{content:"\\F081"}.fa-facebook-square:before{content:"\\F082"}.fa-camera-retro:before{content:"\\F083"}.fa-key:before{content:"\\F084"}.fa-cogs:before,.fa-gears:before{content:"\\F085"}.fa-comments:before{content:"\\F086"}.fa-thumbs-o-up:before{content:"\\F087"}.fa-thumbs-o-down:before{content:"\\F088"}.fa-star-half:before{content:"\\F089"}.fa-heart-o:before{content:"\\F08A"}.fa-sign-out:before{content:"\\F08B"}.fa-linkedin-square:before{content:"\\F08C"}.fa-thumb-tack:before{content:"\\F08D"}.fa-external-link:before{content:"\\F08E"}.fa-sign-in:before{content:"\\F090"}.fa-trophy:before{content:"\\F091"}.fa-github-square:before{content:"\\F092"}.fa-upload:before{content:"\\F093"}.fa-lemon-o:before{content:"\\F094"}.fa-phone:before{content:"\\F095"}.fa-square-o:before{content:"\\F096"}.fa-bookmark-o:before{content:"\\F097"}.fa-phone-square:before{content:"\\F098"}.fa-twitter:before{content:"\\F099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\F09A"}.fa-github:before{content:"\\F09B"}.fa-unlock:before{content:"\\F09C"}.fa-credit-card:before{content:"\\F09D"}.fa-feed:before,.fa-rss:before{content:"\\F09E"}.fa-hdd-o:before{content:"\\F0A0"}.fa-bullhorn:before{content:"\\F0A1"}.fa-bell:before{content:"\\F0F3"}.fa-certificate:before{content:"\\F0A3"}.fa-hand-o-right:before{content:"\\F0A4"}.fa-hand-o-left:before{content:"\\F0A5"}.fa-hand-o-up:before{content:"\\F0A6"}.fa-hand-o-down:before{content:"\\F0A7"}.fa-arrow-circle-left:before{content:"\\F0A8"}.fa-arrow-circle-right:before{content:"\\F0A9"}.fa-arrow-circle-up:before{content:"\\F0AA"}.fa-arrow-circle-down:before{content:"\\F0AB"}.fa-globe:before{content:"\\F0AC"}.fa-wrench:before{content:"\\F0AD"}.fa-tasks:before{content:"\\F0AE"}.fa-filter:before{content:"\\F0B0"}.fa-briefcase:before{content:"\\F0B1"}.fa-arrows-alt:before{content:"\\F0B2"}.fa-group:before,.fa-users:before{content:"\\F0C0"}.fa-chain:before,.fa-link:before{content:"\\F0C1"}.fa-cloud:before{content:"\\F0C2"}.fa-flask:before{content:"\\F0C3"}.fa-cut:before,.fa-scissors:before{content:"\\F0C4"}.fa-copy:before,.fa-files-o:before{content:"\\F0C5"}.fa-paperclip:before{content:"\\F0C6"}.fa-floppy-o:before,.fa-save:before{content:"\\F0C7"}.fa-square:before{content:"\\F0C8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\\F0C9"}.fa-list-ul:before{content:"\\F0CA"}.fa-list-ol:before{content:"\\F0CB"}.fa-strikethrough:before{content:"\\F0CC"}.fa-underline:before{content:"\\F0CD"}.fa-table:before{content:"\\F0CE"}.fa-magic:before{content:"\\F0D0"}.fa-truck:before{content:"\\F0D1"}.fa-pinterest:before{content:"\\F0D2"}.fa-pinterest-square:before{content:"\\F0D3"}.fa-google-plus-square:before{content:"\\F0D4"}.fa-google-plus:before{content:"\\F0D5"}.fa-money:before{content:"\\F0D6"}.fa-caret-down:before{content:"\\F0D7"}.fa-caret-up:before{content:"\\F0D8"}.fa-caret-left:before{content:"\\F0D9"}.fa-caret-right:before{content:"\\F0DA"}.fa-columns:before{content:"\\F0DB"}.fa-sort:before,.fa-unsorted:before{content:"\\F0DC"}.fa-sort-desc:before,.fa-sort-down:before{content:"\\F0DD"}.fa-sort-asc:before,.fa-sort-up:before{content:"\\F0DE"}.fa-envelope:before{content:"\\F0E0"}.fa-linkedin:before{content:"\\F0E1"}.fa-rotate-left:before,.fa-undo:before{content:"\\F0E2"}.fa-gavel:before,.fa-legal:before{content:"\\F0E3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\F0E4"}.fa-comment-o:before{content:"\\F0E5"}.fa-comments-o:before{content:"\\F0E6"}.fa-bolt:before,.fa-flash:before{content:"\\F0E7"}.fa-sitemap:before{content:"\\F0E8"}.fa-umbrella:before{content:"\\F0E9"}.fa-clipboard:before,.fa-paste:before{content:"\\F0EA"}.fa-lightbulb-o:before{content:"\\F0EB"}.fa-exchange:before{content:"\\F0EC"}.fa-cloud-download:before{content:"\\F0ED"}.fa-cloud-upload:before{content:"\\F0EE"}.fa-user-md:before{content:"\\F0F0"}.fa-stethoscope:before{content:"\\F0F1"}.fa-suitcase:before{content:"\\F0F2"}.fa-bell-o:before{content:"\\F0A2"}.fa-coffee:before{content:"\\F0F4"}.fa-cutlery:before{content:"\\F0F5"}.fa-file-text-o:before{content:"\\F0F6"}.fa-building-o:before{content:"\\F0F7"}.fa-hospital-o:before{content:"\\F0F8"}.fa-ambulance:before{content:"\\F0F9"}.fa-medkit:before{content:"\\F0FA"}.fa-fighter-jet:before{content:"\\F0FB"}.fa-beer:before{content:"\\F0FC"}.fa-h-square:before{content:"\\F0FD"}.fa-plus-square:before{content:"\\F0FE"}.fa-angle-double-left:before{content:"\\F100"}.fa-angle-double-right:before{content:"\\F101"}.fa-angle-double-up:before{content:"\\F102"}.fa-angle-double-down:before{content:"\\F103"}.fa-angle-left:before{content:"\\F104"}.fa-angle-right:before{content:"\\F105"}.fa-angle-up:before{content:"\\F106"}.fa-angle-down:before{content:"\\F107"}.fa-desktop:before{content:"\\F108"}.fa-laptop:before{content:"\\F109"}.fa-tablet:before{content:"\\F10A"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\F10B"}.fa-circle-o:before{content:"\\F10C"}.fa-quote-left:before{content:"\\F10D"}.fa-quote-right:before{content:"\\F10E"}.fa-spinner:before{content:"\\F110"}.fa-circle:before{content:"\\F111"}.fa-mail-reply:before,.fa-reply:before{content:"\\F112"}.fa-github-alt:before{content:"\\F113"}.fa-folder-o:before{content:"\\F114"}.fa-folder-open-o:before{content:"\\F115"}.fa-smile-o:before{content:"\\F118"}.fa-frown-o:before{content:"\\F119"}.fa-meh-o:before{content:"\\F11A"}.fa-gamepad:before{content:"\\F11B"}.fa-keyboard-o:before{content:"\\F11C"}.fa-flag-o:before{content:"\\F11D"}.fa-flag-checkered:before{content:"\\F11E"}.fa-terminal:before{content:"\\F120"}.fa-code:before{content:"\\F121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\F122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\F123"}.fa-location-arrow:before{content:"\\F124"}.fa-crop:before{content:"\\F125"}.fa-code-fork:before{content:"\\F126"}.fa-chain-broken:before,.fa-unlink:before{content:"\\F127"}.fa-question:before{content:"\\F128"}.fa-info:before{content:"\\F129"}.fa-exclamation:before{content:"\\F12A"}.fa-superscript:before{content:"\\F12B"}.fa-subscript:before{content:"\\F12C"}.fa-eraser:before{content:"\\F12D"}.fa-puzzle-piece:before{content:"\\F12E"}.fa-microphone:before{content:"\\F130"}.fa-microphone-slash:before{content:"\\F131"}.fa-shield:before{content:"\\F132"}.fa-calendar-o:before{content:"\\F133"}.fa-fire-extinguisher:before{content:"\\F134"}.fa-rocket:before{content:"\\F135"}.fa-maxcdn:before{content:"\\F136"}.fa-chevron-circle-left:before{content:"\\F137"}.fa-chevron-circle-right:before{content:"\\F138"}.fa-chevron-circle-up:before{content:"\\F139"}.fa-chevron-circle-down:before{content:"\\F13A"}.fa-html5:before{content:"\\F13B"}.fa-css3:before{content:"\\F13C"}.fa-anchor:before{content:"\\F13D"}.fa-unlock-alt:before{content:"\\F13E"}.fa-bullseye:before{content:"\\F140"}.fa-ellipsis-h:before{content:"\\F141"}.fa-ellipsis-v:before{content:"\\F142"}.fa-rss-square:before{content:"\\F143"}.fa-play-circle:before{content:"\\F144"}.fa-ticket:before{content:"\\F145"}.fa-minus-square:before{content:"\\F146"}.fa-minus-square-o:before{content:"\\F147"}.fa-level-up:before{content:"\\F148"}.fa-level-down:before{content:"\\F149"}.fa-check-square:before{content:"\\F14A"}.fa-pencil-square:before{content:"\\F14B"}.fa-external-link-square:before{content:"\\F14C"}.fa-share-square:before{content:"\\F14D"}.fa-compass:before{content:"\\F14E"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\\F150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\\F151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\\F152"}.fa-eur:before,.fa-euro:before{content:"\\F153"}.fa-gbp:before{content:"\\F154"}.fa-dollar:before,.fa-usd:before{content:"\\F155"}.fa-inr:before,.fa-rupee:before{content:"\\F156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\\F157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\\F158"}.fa-krw:before,.fa-won:before{content:"\\F159"}.fa-bitcoin:before,.fa-btc:before{content:"\\F15A"}.fa-file:before{content:"\\F15B"}.fa-file-text:before{content:"\\F15C"}.fa-sort-alpha-asc:before{content:"\\F15D"}.fa-sort-alpha-desc:before{content:"\\F15E"}.fa-sort-amount-asc:before{content:"\\F160"}.fa-sort-amount-desc:before{content:"\\F161"}.fa-sort-numeric-asc:before{content:"\\F162"}.fa-sort-numeric-desc:before{content:"\\F163"}.fa-thumbs-up:before{content:"\\F164"}.fa-thumbs-down:before{content:"\\F165"}.fa-youtube-square:before{content:"\\F166"}.fa-youtube:before{content:"\\F167"}.fa-xing:before{content:"\\F168"}.fa-xing-square:before{content:"\\F169"}.fa-youtube-play:before{content:"\\F16A"}.fa-dropbox:before{content:"\\F16B"}.fa-stack-overflow:before{content:"\\F16C"}.fa-instagram:before{content:"\\F16D"}.fa-flickr:before{content:"\\F16E"}.fa-adn:before{content:"\\F170"}.fa-bitbucket:before{content:"\\F171"}.fa-bitbucket-square:before{content:"\\F172"}.fa-tumblr:before{content:"\\F173"}.fa-tumblr-square:before{content:"\\F174"}.fa-long-arrow-down:before{content:"\\F175"}.fa-long-arrow-up:before{content:"\\F176"}.fa-long-arrow-left:before{content:"\\F177"}.fa-long-arrow-right:before{content:"\\F178"}.fa-apple:before{content:"\\F179"}.fa-windows:before{content:"\\F17A"}.fa-android:before{content:"\\F17B"}.fa-linux:before{content:"\\F17C"}.fa-dribbble:before{content:"\\F17D"}.fa-skype:before{content:"\\F17E"}.fa-foursquare:before{content:"\\F180"}.fa-trello:before{content:"\\F181"}.fa-female:before{content:"\\F182"}.fa-male:before{content:"\\F183"}.fa-gittip:before,.fa-gratipay:before{content:"\\F184"}.fa-sun-o:before{content:"\\F185"}.fa-moon-o:before{content:"\\F186"}.fa-archive:before{content:"\\F187"}.fa-bug:before{content:"\\F188"}.fa-vk:before{content:"\\F189"}.fa-weibo:before{content:"\\F18A"}.fa-renren:before{content:"\\F18B"}.fa-pagelines:before{content:"\\F18C"}.fa-stack-exchange:before{content:"\\F18D"}.fa-arrow-circle-o-right:before{content:"\\F18E"}.fa-arrow-circle-o-left:before{content:"\\F190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\\F191"}.fa-dot-circle-o:before{content:"\\F192"}.fa-wheelchair:before{content:"\\F193"}.fa-vimeo-square:before{content:"\\F194"}.fa-try:before,.fa-turkish-lira:before{content:"\\F195"}.fa-plus-square-o:before{content:"\\F196"}.fa-space-shuttle:before{content:"\\F197"}.fa-slack:before{content:"\\F198"}.fa-envelope-square:before{content:"\\F199"}.fa-wordpress:before{content:"\\F19A"}.fa-openid:before{content:"\\F19B"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\\F19C"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\\F19D"}.fa-yahoo:before{content:"\\F19E"}.fa-google:before{content:"\\F1A0"}.fa-reddit:before{content:"\\F1A1"}.fa-reddit-square:before{content:"\\F1A2"}.fa-stumbleupon-circle:before{content:"\\F1A3"}.fa-stumbleupon:before{content:"\\F1A4"}.fa-delicious:before{content:"\\F1A5"}.fa-digg:before{content:"\\F1A6"}.fa-pied-piper-pp:before{content:"\\F1A7"}.fa-pied-piper-alt:before{content:"\\F1A8"}.fa-drupal:before{content:"\\F1A9"}.fa-joomla:before{content:"\\F1AA"}.fa-language:before{content:"\\F1AB"}.fa-fax:before{content:"\\F1AC"}.fa-building:before{content:"\\F1AD"}.fa-child:before{content:"\\F1AE"}.fa-paw:before{content:"\\F1B0"}.fa-spoon:before{content:"\\F1B1"}.fa-cube:before{content:"\\F1B2"}.fa-cubes:before{content:"\\F1B3"}.fa-behance:before{content:"\\F1B4"}.fa-behance-square:before{content:"\\F1B5"}.fa-steam:before{content:"\\F1B6"}.fa-steam-square:before{content:"\\F1B7"}.fa-recycle:before{content:"\\F1B8"}.fa-automobile:before,.fa-car:before{content:"\\F1B9"}.fa-cab:before,.fa-taxi:before{content:"\\F1BA"}.fa-tree:before{content:"\\F1BB"}.fa-spotify:before{content:"\\F1BC"}.fa-deviantart:before{content:"\\F1BD"}.fa-soundcloud:before{content:"\\F1BE"}.fa-database:before{content:"\\F1C0"}.fa-file-pdf-o:before{content:"\\F1C1"}.fa-file-word-o:before{content:"\\F1C2"}.fa-file-excel-o:before{content:"\\F1C3"}.fa-file-powerpoint-o:before{content:"\\F1C4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\\F1C5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\\F1C6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\\F1C7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\F1C8"}.fa-file-code-o:before{content:"\\F1C9"}.fa-vine:before{content:"\\F1CA"}.fa-codepen:before{content:"\\F1CB"}.fa-jsfiddle:before{content:"\\F1CC"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\\F1CD"}.fa-circle-o-notch:before{content:"\\F1CE"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\\F1D0"}.fa-empire:before,.fa-ge:before{content:"\\F1D1"}.fa-git-square:before{content:"\\F1D2"}.fa-git:before{content:"\\F1D3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\\F1D4"}.fa-tencent-weibo:before{content:"\\F1D5"}.fa-qq:before{content:"\\F1D6"}.fa-wechat:before,.fa-weixin:before{content:"\\F1D7"}.fa-paper-plane:before,.fa-send:before{content:"\\F1D8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\\F1D9"}.fa-history:before{content:"\\F1DA"}.fa-circle-thin:before{content:"\\F1DB"}.fa-header:before{content:"\\F1DC"}.fa-paragraph:before{content:"\\F1DD"}.fa-sliders:before{content:"\\F1DE"}.fa-share-alt:before{content:"\\F1E0"}.fa-share-alt-square:before{content:"\\F1E1"}.fa-bomb:before{content:"\\F1E2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\\F1E3"}.fa-tty:before{content:"\\F1E4"}.fa-binoculars:before{content:"\\F1E5"}.fa-plug:before{content:"\\F1E6"}.fa-slideshare:before{content:"\\F1E7"}.fa-twitch:before{content:"\\F1E8"}.fa-yelp:before{content:"\\F1E9"}.fa-newspaper-o:before{content:"\\F1EA"}.fa-wifi:before{content:"\\F1EB"}.fa-calculator:before{content:"\\F1EC"}.fa-paypal:before{content:"\\F1ED"}.fa-google-wallet:before{content:"\\F1EE"}.fa-cc-visa:before{content:"\\F1F0"}.fa-cc-mastercard:before{content:"\\F1F1"}.fa-cc-discover:before{content:"\\F1F2"}.fa-cc-amex:before{content:"\\F1F3"}.fa-cc-paypal:before{content:"\\F1F4"}.fa-cc-stripe:before{content:"\\F1F5"}.fa-bell-slash:before{content:"\\F1F6"}.fa-bell-slash-o:before{content:"\\F1F7"}.fa-trash:before{content:"\\F1F8"}.fa-copyright:before{content:"\\F1F9"}.fa-at:before{content:"\\F1FA"}.fa-eyedropper:before{content:"\\F1FB"}.fa-paint-brush:before{content:"\\F1FC"}.fa-birthday-cake:before{content:"\\F1FD"}.fa-area-chart:before{content:"\\F1FE"}.fa-pie-chart:before{content:"\\F200"}.fa-line-chart:before{content:"\\F201"}.fa-lastfm:before{content:"\\F202"}.fa-lastfm-square:before{content:"\\F203"}.fa-toggle-off:before{content:"\\F204"}.fa-toggle-on:before{content:"\\F205"}.fa-bicycle:before{content:"\\F206"}.fa-bus:before{content:"\\F207"}.fa-ioxhost:before{content:"\\F208"}.fa-angellist:before{content:"\\F209"}.fa-cc:before{content:"\\F20A"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\\F20B"}.fa-meanpath:before{content:"\\F20C"}.fa-buysellads:before{content:"\\F20D"}.fa-connectdevelop:before{content:"\\F20E"}.fa-dashcube:before{content:"\\F210"}.fa-forumbee:before{content:"\\F211"}.fa-leanpub:before{content:"\\F212"}.fa-sellsy:before{content:"\\F213"}.fa-shirtsinbulk:before{content:"\\F214"}.fa-simplybuilt:before{content:"\\F215"}.fa-skyatlas:before{content:"\\F216"}.fa-cart-plus:before{content:"\\F217"}.fa-cart-arrow-down:before{content:"\\F218"}.fa-diamond:before{content:"\\F219"}.fa-ship:before{content:"\\F21A"}.fa-user-secret:before{content:"\\F21B"}.fa-motorcycle:before{content:"\\F21C"}.fa-street-view:before{content:"\\F21D"}.fa-heartbeat:before{content:"\\F21E"}.fa-venus:before{content:"\\F221"}.fa-mars:before{content:"\\F222"}.fa-mercury:before{content:"\\F223"}.fa-intersex:before,.fa-transgender:before{content:"\\F224"}.fa-transgender-alt:before{content:"\\F225"}.fa-venus-double:before{content:"\\F226"}.fa-mars-double:before{content:"\\F227"}.fa-venus-mars:before{content:"\\F228"}.fa-mars-stroke:before{content:"\\F229"}.fa-mars-stroke-v:before{content:"\\F22A"}.fa-mars-stroke-h:before{content:"\\F22B"}.fa-neuter:before{content:"\\F22C"}.fa-genderless:before{content:"\\F22D"}.fa-facebook-official:before{content:"\\F230"}.fa-pinterest-p:before{content:"\\F231"}.fa-whatsapp:before{content:"\\F232"}.fa-server:before{content:"\\F233"}.fa-user-plus:before{content:"\\F234"}.fa-user-times:before{content:"\\F235"}.fa-bed:before,.fa-hotel:before{content:"\\F236"}.fa-viacoin:before{content:"\\F237"}.fa-train:before{content:"\\F238"}.fa-subway:before{content:"\\F239"}.fa-medium:before{content:"\\F23A"}.fa-y-combinator:before,.fa-yc:before{content:"\\F23B"}.fa-optin-monster:before{content:"\\F23C"}.fa-opencart:before{content:"\\F23D"}.fa-expeditedssl:before{content:"\\F23E"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\\F240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\\F241"}.fa-battery-2:before,.fa-battery-half:before{content:"\\F242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\\F243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\\F244"}.fa-mouse-pointer:before{content:"\\F245"}.fa-i-cursor:before{content:"\\F246"}.fa-object-group:before{content:"\\F247"}.fa-object-ungroup:before{content:"\\F248"}.fa-sticky-note:before{content:"\\F249"}.fa-sticky-note-o:before{content:"\\F24A"}.fa-cc-jcb:before{content:"\\F24B"}.fa-cc-diners-club:before{content:"\\F24C"}.fa-clone:before{content:"\\F24D"}.fa-balance-scale:before{content:"\\F24E"}.fa-hourglass-o:before{content:"\\F250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\\F251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\\F252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\\F253"}.fa-hourglass:before{content:"\\F254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\\F255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\\F256"}.fa-hand-scissors-o:before{content:"\\F257"}.fa-hand-lizard-o:before{content:"\\F258"}.fa-hand-spock-o:before{content:"\\F259"}.fa-hand-pointer-o:before{content:"\\F25A"}.fa-hand-peace-o:before{content:"\\F25B"}.fa-trademark:before{content:"\\F25C"}.fa-registered:before{content:"\\F25D"}.fa-creative-commons:before{content:"\\F25E"}.fa-gg:before{content:"\\F260"}.fa-gg-circle:before{content:"\\F261"}.fa-tripadvisor:before{content:"\\F262"}.fa-odnoklassniki:before{content:"\\F263"}.fa-odnoklassniki-square:before{content:"\\F264"}.fa-get-pocket:before{content:"\\F265"}.fa-wikipedia-w:before{content:"\\F266"}.fa-safari:before{content:"\\F267"}.fa-chrome:before{content:"\\F268"}.fa-firefox:before{content:"\\F269"}.fa-opera:before{content:"\\F26A"}.fa-internet-explorer:before{content:"\\F26B"}.fa-television:before,.fa-tv:before{content:"\\F26C"}.fa-contao:before{content:"\\F26D"}.fa-500px:before{content:"\\F26E"}.fa-amazon:before{content:"\\F270"}.fa-calendar-plus-o:before{content:"\\F271"}.fa-calendar-minus-o:before{content:"\\F272"}.fa-calendar-times-o:before{content:"\\F273"}.fa-calendar-check-o:before{content:"\\F274"}.fa-industry:before{content:"\\F275"}.fa-map-pin:before{content:"\\F276"}.fa-map-signs:before{content:"\\F277"}.fa-map-o:before{content:"\\F278"}.fa-map:before{content:"\\F279"}.fa-commenting:before{content:"\\F27A"}.fa-commenting-o:before{content:"\\F27B"}.fa-houzz:before{content:"\\F27C"}.fa-vimeo:before{content:"\\F27D"}.fa-black-tie:before{content:"\\F27E"}.fa-fonticons:before{content:"\\F280"}.fa-reddit-alien:before{content:"\\F281"}.fa-edge:before{content:"\\F282"}.fa-credit-card-alt:before{content:"\\F283"}.fa-codiepie:before{content:"\\F284"}.fa-modx:before{content:"\\F285"}.fa-fort-awesome:before{content:"\\F286"}.fa-usb:before{content:"\\F287"}.fa-product-hunt:before{content:"\\F288"}.fa-mixcloud:before{content:"\\F289"}.fa-scribd:before{content:"\\F28A"}.fa-pause-circle:before{content:"\\F28B"}.fa-pause-circle-o:before{content:"\\F28C"}.fa-stop-circle:before{content:"\\F28D"}.fa-stop-circle-o:before{content:"\\F28E"}.fa-shopping-bag:before{content:"\\F290"}.fa-shopping-basket:before{content:"\\F291"}.fa-hashtag:before{content:"\\F292"}.fa-bluetooth:before{content:"\\F293"}.fa-bluetooth-b:before{content:"\\F294"}.fa-percent:before{content:"\\F295"}.fa-gitlab:before{content:"\\F296"}.fa-wpbeginner:before{content:"\\F297"}.fa-wpforms:before{content:"\\F298"}.fa-envira:before{content:"\\F299"}.fa-universal-access:before{content:"\\F29A"}.fa-wheelchair-alt:before{content:"\\F29B"}.fa-question-circle-o:before{content:"\\F29C"}.fa-blind:before{content:"\\F29D"}.fa-audio-description:before{content:"\\F29E"}.fa-volume-control-phone:before{content:"\\F2A0"}.fa-braille:before{content:"\\F2A1"}.fa-assistive-listening-systems:before{content:"\\F2A2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\\F2A3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\\F2A4"}.fa-glide:before{content:"\\F2A5"}.fa-glide-g:before{content:"\\F2A6"}.fa-sign-language:before,.fa-signing:before{content:"\\F2A7"}.fa-low-vision:before{content:"\\F2A8"}.fa-viadeo:before{content:"\\F2A9"}.fa-viadeo-square:before{content:"\\F2AA"}.fa-snapchat:before{content:"\\F2AB"}.fa-snapchat-ghost:before{content:"\\F2AC"}.fa-snapchat-square:before{content:"\\F2AD"}.fa-pied-piper:before{content:"\\F2AE"}.fa-first-order:before{content:"\\F2B0"}.fa-yoast:before{content:"\\F2B1"}.fa-themeisle:before{content:"\\F2B2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\\F2B3"}.fa-fa:before,.fa-font-awesome:before{content:"\\F2B4"}.fa-handshake-o:before{content:"\\F2B5"}.fa-envelope-open:before{content:"\\F2B6"}.fa-envelope-open-o:before{content:"\\F2B7"}.fa-linode:before{content:"\\F2B8"}.fa-address-book:before{content:"\\F2B9"}.fa-address-book-o:before{content:"\\F2BA"}.fa-address-card:before,.fa-vcard:before{content:"\\F2BB"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\\F2BC"}.fa-user-circle:before{content:"\\F2BD"}.fa-user-circle-o:before{content:"\\F2BE"}.fa-user-o:before{content:"\\F2C0"}.fa-id-badge:before{content:"\\F2C1"}.fa-drivers-license:before,.fa-id-card:before{content:"\\F2C2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\\F2C3"}.fa-quora:before{content:"\\F2C4"}.fa-free-code-camp:before{content:"\\F2C5"}.fa-telegram:before{content:"\\F2C6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\\F2C7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\\F2C8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\\F2C9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\\F2CA"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\\F2CB"}.fa-shower:before{content:"\\F2CC"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\\F2CD"}.fa-podcast:before{content:"\\F2CE"}.fa-window-maximize:before{content:"\\F2D0"}.fa-window-minimize:before{content:"\\F2D1"}.fa-window-restore:before{content:"\\F2D2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\\F2D3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\\F2D4"}.fa-bandcamp:before{content:"\\F2D5"}.fa-grav:before{content:"\\F2D6"}.fa-etsy:before{content:"\\F2D7"}.fa-imdb:before{content:"\\F2D8"}.fa-ravelry:before{content:"\\F2D9"}.fa-eercast:before{content:"\\F2DA"}.fa-microchip:before{content:"\\F2DB"}.fa-snowflake-o:before{content:"\\F2DC"}.fa-superpowers:before{content:"\\F2DD"}.fa-wpexplorer:before{content:"\\F2DE"}.fa-meetup:before{content:"\\F2E0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}',""])},BLE9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qZ9B"),o=n.n(i),r=Object.assign||function(e){for(var t=1;t0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},DQCr:function(e,t,n){"use strict";var i=n("cGG2");function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(i.isURLSearchParams(t))r=t.toString();else{var a=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),r=a.join("&")}return r&&(e+=(-1===e.indexOf("?")?"?":"&")+r),e}},DgN2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qZ9B"),o=n.n(i);t.default={mixins:[o.a],data:function(){return{role:[],dept:[],user:[]}},computed:{rules:function(){},dialog:function(){return Object.assign({dialog:{visible:!1,appendToBody:!0,width:"55%"},body:{vhtml:"正文"},buttons:{ok:{type:"elementButton",text:"确认"}}},this.config.dialog)}},methods:{created:function(){!this.config.query&&this.$set(this.config,"query",{}),!this.config.priv&&this.$set(this.config,"priv",{role:[],dept:[],user:[]})},buttonClick:function(e){"function"==typeof this.config.onClick&&this.config.onClick(e,this.config,this),this.$emit("buttonClick",e,this.config,this),this.$emit("e",e,this.config,this)},dialogButtonClick:function(e,t){this.$emit("dialogButtonClick",e,t)},rightClick:function(e){if(this.configing){this.close(e);var t=e.currentTarget;this.role.length&&this.user.length?this.emit(e):this.my.axiosAll({vue:this,axiosOption:[{url:"admin/table/table",data:{TABLE_NAME:"roles",fields:"`name` as label,`id` as value"}},{url:"admin/table/table",data:{TABLE_NAME:"users",fields:"`name` as label,`id` as value"}}],success:function(n,i){n[0].data.data.unshift({label:"游客",value:"-1"}),i.vue.$set(i.vue,"role",n[0].data.data),i.vue.$set(i.vue,"user",n[1].data.data),e.myTarget=t,i.vue.emit(e)}})}},emit:function(e){this.toConfig(e,Object.assign({},this.buttonAttr(),{visibility:this.visibilityAttr,operator:{name:"operator",type:"elementRadioChange",label:"操作",itemStyle:"border:none;",config:[{type:"el-radio",label:"默认",name:"elementSelect",config:{type:"elementSelect",name:"script",options:[{value:"this.save(event,config);",label:"保存"},{value:"this.cancel(event,config);",label:"关闭"},{value:"this.save(event,config,true);",label:"保存并关闭"}]}},{type:"el-radio",label:"自定义",name:"elementTextarea",config:{name:"script",type:"elementTextarea"}}]},query:this.queryAttr(this.config.query),priv:this.privAttr(this.role,"待增加",this.user)}))}}}},Dkjr:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{prop:e.config.name,label:e.config.label,title:e.config.title,"label-width":e.config.labelWidth?e.config.labelWidth:e.config.label?"80px":"0px"},nativeOn:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.rightClick(t)}}},[n("el-input-number",e._b({on:{change:function(t){return e.change(t,0)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enter(t)}},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},"el-input-number",Object.assign({},e.config,{disabled:Boolean(e.config.disabled)}),!1)),e._v(" "),n("el-input-number",e._b({on:{change:function(t){return e.change(t,1)}},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}},"el-input-number",Object.assign({},e.config,{disabled:Boolean(e.config.disabled)}),!1))],1)},staticRenderFns:[]}},DmT9:function(e,t,n){var i=n("V1mL"),o=n("4ThM"),r=n("Ctjl"),a=n("dtwh")("socket.io-client");e.exports=t=s;var l=t.managers={};function s(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=i(e),s=o.source,c=o.id,u=o.path,d=l[c]&&u in l[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(a("ignoring socket cache for %s",s),n=r(s,t)):(l[c]||(a("new io instance for %s",s),l[c]=r(s,t)),n=l[c]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=s,t.Manager=n("Ctjl"),t.Socket=n("AYMf")},"E+oi":function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0_jquery_ui_themes_base_resizable_css__=__webpack_require__("H8PQ"),__WEBPACK_IMPORTED_MODULE_0_jquery_ui_themes_base_resizable_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery_ui_themes_base_resizable_css__),__WEBPACK_IMPORTED_MODULE_1_jquery_ui_ui_widgets_resizable__=__webpack_require__("mKWO"),__WEBPACK_IMPORTED_MODULE_1_jquery_ui_ui_widgets_resizable___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_jquery_ui_ui_widgets_resizable__),__WEBPACK_IMPORTED_MODULE_2__other_elementMixin_vue__=__webpack_require__("qZ9B"),__WEBPACK_IMPORTED_MODULE_2__other_elementMixin_vue___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__other_elementMixin_vue__);__webpack_exports__.default={mixins:[__WEBPACK_IMPORTED_MODULE_2__other_elementMixin_vue___default.a],inheritAttrs:!1,mounted:function(){this.headerHeightSet()},data:function(){return{}},watch:{headerHeight:function(e,t){var n=this;this.$nextTick(function(){n.headerHeightSet()})}},computed:{headerHeight:function(){return this.config.header.height}},methods:{created:function(){},rightClick:function rightClick(event){var vue=this;!this.config.margin&&this.$set(this.config,"margin",["1",0,0,"1"]),this.toConfig(event,this.cardAttr({visible:{type:"elementSwitch",label:"初始显隐",name:"visible"},style:{type:"elementTextarea",label:"其他样式",name:"style",placeholder:"css样式"},bodyStyle:{type:"elementTextarea",label:"内容样式",name:"bodyStyle",placeholder:"css样式"},body:{type:"elementTextarea",label:"内容",name:"body",placeholder:"html内容"},script:{type:"elementTextarea",label:"逻辑处理",name:"script",placeholder:"javascript代码",rules:[{required:0,trigger:[],message:"字段不能为空"},{type:"",trigger:[],message:""},{custom:"validator",trigger:["blur"],message:"",validator:function validator(rule,value,callback){if(value)try{eval("function test(){"+value+"}")}catch(e){callback(new Error("js错误:"+e.message))}}}]}}))}}}},EH9y:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"/*!\n * jQuery UI Draggable 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */.ui-draggable-handle{-ms-touch-action:none;touch-action:none}",""])},EKta:function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],l=i[1],s=new r(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[u++]=255&t);1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r=[],a=0,l=n-o;al?l:a+16383));1===o?(t=e[n-1],r.push(i[t>>2]+i[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],r.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,r,a=[],l=t;l>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},EarI:function(e,t){var n=1e3,i=60*n,o=60*i,r=24*o,a=365.25*r;function l(e,t,n){if(!(e0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var l=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"days":case"day":case"d":return l*r;case"hours":case"hour":case"hrs":case"hr":case"h":return l*o;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?l(s=e,r,"day")||l(s,o,"hour")||l(s,i,"minute")||l(s,n,"second")||s+" ms":function(e){if(e>=r)return Math.round(e/r)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=i)return Math.round(e/i)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},ElvI:function(e,t,n){var i,o=n("2gBs"),r=n("5+KW"),a=n("Tff0"),l=n("YUmt"),s=n("eAwk");"undefined"!=typeof ArrayBuffer&&(i=n("kVGU"));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=c||u;t.protocol=3;var f=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=o(f),h={type:"error",data:"parser error"},g=n("6mly");function m(e,t,n){for(var i=new Array(e.length),o=l(e.length,n),r=function(e,n,o){t(n,function(t,n){i[e]=n,o(t,i)})},a=0;a1?{type:p[o],data:e.substring(1)}:{type:p[o]}:h}o=new Uint8Array(e)[0];var r=a(e,1);return g&&"blob"===n&&(r=new g([r])),{type:p[o],data:r}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!i)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=i.decode(e.substr(1));return"blob"===t&&g&&(o=new g([o])),{type:n,data:o}},t.encodePayload=function(e,n,i){"function"==typeof n&&(i=n,n=null);var o=r(e);if(n&&o)return g&&!d?t.encodePayloadAsBlob(e,i):t.encodePayloadAsArrayBuffer(e,i);if(!e.length)return i("0:");m(e,function(e,i){t.encodePacket(e,!!o&&n,!1,function(e){i(null,function(e){return e.length+":"+e}(e))})},function(e,t){return i(t.join(""))})},t.decodePayload=function(e,n,i){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,i);var o;if("function"==typeof n&&(i=n,n=null),""===e)return i(h,0,1);for(var r,a,l="",s=0,c=e.length;s0;){for(var l=new Uint8Array(o),s=0===l[0],c="",u=1;255!==l[u];u++){if(c.length>310)return i(h,0,1);c+=l[u]}o=a(o,2+c.length),c=parseInt(c);var d=a(o,0,c);if(s)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var f=new Uint8Array(d);d="";for(u=0;u=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(i)return U(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,o){var r,a=1,l=e.length,s=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(r=n;rl&&(n=l-s),r=n;r>=0;r--){for(var d=!0,f=0;fo&&(i=o):i=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var a=0;a>8,o=n%256,r.push(o),r.push(i);return r}(t,e.length-n),e,n,i)}function C(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(r=e[o+1]))&&(s=(31&c)<<6|63&r)>127&&(u=s);break;case 3:r=e[o+1],a=e[o+2],128==(192&r)&&128==(192&a)&&(s=(15&c)<<12|(63&r)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:r=e[o+1],a=e[o+2],l=e[o+3],128==(192&r)&&128==(192&a)&&128==(192&l)&&(s=(15&c)<<18|(63&r)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=d}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);var n="",i=0;for(;ithis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},s.prototype.compare=function(e,t,n,i,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,a=n-t,l=Math.min(r,a),c=this.slice(i,o),u=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function T(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;oi)&&(n=i);for(var o="",r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,i,o,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function O(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o>>8*(i?o:1-o)}function P(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o>>8*(i?o:3-o)&255}function L(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,i,r){return r||L(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function I(e,t,n,i,r){return r||L(e,0,n,8),o.write(e,t,n,i,52,8),n+8}s.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(o*=256);)i+=this[e+--t]*o;return i},s.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=this[e],o=1,r=0;++r=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var i=t,o=1,r=this[e+--i];i>0&&(o*=256);)r+=this[e+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r=0&&(r*=256);)this[t+o]=e/r&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var r=0,a=1,l=0;for(this[t]=255&e;++r>0)-l&255;return t+n},s.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var r=n-1,a=1,l=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===l&&0!==this[t+r+1]&&(l=1),this[t+r]=(e/a>>0)-l&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(r<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function j(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,i){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(t,n("DuR2"))},F0MH:function(e,t,n){var i=n("VU/8")(n("YpaZ"),n("m4XA"),!1,null,null,null);e.exports=i.exports},F8S1:function(e,t,n){var i,o,r,a;a=function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("
").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),o=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options,r=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(n=e(o.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=o.containment:this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,o,r,a=this.options,l=this._isRootNode(this.scrollParent[0]),s=e.pageX,c=e.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.leftn[2]&&(s=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),a.grid&&(o=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,c=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-a.grid[1]:o+a.grid[1]:o,r=a.grid[0]?this.originalPageX+Math.round((s-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,s=n?r-this.offset.click.left>=n[0]||r-this.offset.click.left>n[2]?r:r-this.offset.click.left>=n[0]?r-a.grid[0]:r+a.grid[0]:r),"y"===a.axis&&(s=this.originalPageX),"x"===a.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var o=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,i){var o=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){this.isOver?(this.isOver=0,i.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,o))})},drag:function(t,n,i){e.each(i.sortables,function(){var o=!1,r=this;r.positionAbs=i.positionAbs,r.helperProportions=i.helperProportions,r.offset.click=i.offset.click,r._intersectsWith(r.containerCache)&&(o=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(o=!1),o})),o?(r.isOver||(r.isOver=1,i._parent=n.helper.parent(),r.currentItem=n.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return n.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=i.offset.click.top,r.offset.click.left=i.offset.click.left,r.offset.parent.left-=i.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=i.offset.parent.top-r.offset.parent.top,i._trigger("toSortable",t),i.dropped=r.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,r.fromOutside=i),r.currentItem&&(r._mouseDrag(t),n.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var o=e("body"),r=i.options;o.css("cursor")&&(r._cursor=o.css("cursor")),o.css("cursor",r.cursor)},stop:function(t,n,i){var o=i.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("opacity")&&(r._opacity=o.css("opacity")),o.css("opacity",r.opacity)},stop:function(t,n,i){var o=i.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var o=i.options,r=!1,a=i.scrollParentNotHidden[0],l=i.document[0];a!==l&&"HTML"!==a.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+a.offsetHeight-t.pageY=0;f--)c=(s=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,d=(u=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,bc+g||_d+g||!e.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==h.snapMode&&(o=Math.abs(u-_)<=g,r=Math.abs(d-v)<=g,a=Math.abs(s-b)<=g,l=Math.abs(c-m)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:s-i.helperProportions.width}).left),l&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),p=o||r||a||l,"outer"!==h.snapMode&&(o=Math.abs(u-v)<=g,r=Math.abs(d-_)<=g,a=Math.abs(s-m)<=g,l=Math.abs(c-b)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:s}).left),l&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||r||a||l||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||r||a||l||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var o,r=i.options,a=e.makeArray(e(r.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});a.length&&(o=parseInt(e(a[0]).css("zIndex"),10)||0,e(a).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+a.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("zIndex")&&(r._zIndex=o.css("zIndex")),o.css("zIndex",r.zIndex)},stop:function(t,n,i){var o=i.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}}),e.ui.draggable},o=[n("7t+N"),n("9V2q"),n("3eNs"),n("zUl4"),n("Nnp9"),n("ne1m"),n("Rl6D"),n("UZ9c"),n("z1kw")],void 0===(r="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=r)},"FZ+f":function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),r=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(r).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o=0;--r){var a=this.tryEntries[r],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:D(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),g}}}function y(e,t,n,i){var o=t&&t.prototype instanceof w?t:w,r=Object.create(o.prototype),a=new z(i||[]);return r._invoke=function(e,t,n){var i=d;return function(o,r){if(i===p)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw r;return M()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var l=T(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var s=x(e,t,n);if("normal"===s.type){if(i=n.done?h:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=h,n.method="throw",n.arg=s.arg)}}}(e,n,a),r}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function k(){}function C(){}function E(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function S(e){var t;this._invoke=function(n,i){function r(){return new Promise(function(t,r){!function t(n,i,r,a){var l=x(e[n],e,i);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,r,a)},function(e){t("throw",e,r,a)}):Promise.resolve(c).then(function(e){s.value=e,r(s)},a)}a(l.arg)}(n,i,t,r)})}return t=t?t.then(r,r):r()}}function T(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,T(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=x(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){s.headers[e]={}}),i.forEach(["post","put","patch"],function(e){s.headers[e]=i.merge(r)}),e.exports=s}).call(t,n("W2nU"))},KPIA:function(e,t,n){var i=n("Z6nn");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("59c40a0c",i,!0,{})},KSji:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{class:{"size-small-font":"small"===e.config.size||"mini"===e.config.size},style:e.config.style,attrs:{label:e.config.label,title:e.config.title,"label-width":e.config.labelWidth?e.config.labelWidth:e.config.label?"80px":"0px"},nativeOn:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.rightClick(t)}}},[n("el-switch",{attrs:{disabled:Boolean(e.config.readonly),"active-value":"value"in e.config?e.config.value.activeValue:1,"inactive-value":"value"in e.config?e.config.value.inactiveValue:0},model:{value:e.form[e.config.name],callback:function(t){e.$set(e.form,e.config.name,e._n(t))},expression:"form[config.name]"}})],1)},staticRenderFns:[]}},KsnT:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-card",{directives:[{name:"resizable",rawName:"v-resizable",value:{vue:this},expression:"{vue:this}"}],staticClass:"elementCard elementFrame",staticStyle:{display:"flex","flex-direction":"column"},style:(e.config.margin?"margin:"+e.config.margin[0]+"%"+e.config.margin[1]+"%"+e.config.margin[2]+"%"+e.config.margin[3]+"%":"")+";width:"+e.config.width+";height:"+e.config.height+";"+e.config.style,attrs:{shadow:e.config.shadow,"body-style":Object.assign({flex:1,padding:"0px"},e.config.bodyStyle?e.config.bodyStyle:{})},nativeOn:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.rightClick(t)}}},[e.config.header&&e.config.header.title?n("div",{attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.config.header.title))])]):e._e(),e._v(" "),e.config.url||e.query.url?n("iframe",{attrs:{frameborder:"0",src:e.config.url?e.config.url:e.query.url,width:"100%",height:"100%"}}):e._e()])},staticRenderFns:[]}},LcV5:function(e,t,n){var i=n("HYvZ");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9a216588",i,!0,{})},LzJh:function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__other_elementMixin_vue__=__webpack_require__("qZ9B"),__WEBPACK_IMPORTED_MODULE_0__other_elementMixin_vue___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__other_elementMixin_vue__),_extends=Object.assign||function(e){for(var t=1;t=0&&u.splice(t,1)}function m(e){var t=document.createElement("style");return e.attrs.type="text/css",b(t,e.attrs),h(e,t),t}function b(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,i,o,r;if(t.transform&&e.css){if(!(r=t.transform(e.css)))return function(){};e.css=r}if(t.singleton){var a=c++;n=s||(s=m(t)),i=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",b(t,e.attrs),h(e,t),t}(t),i=function(e,t,n){var i=n.css,o=n.sourceMap,r=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||r)&&(i=d(i));o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([i],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),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),o=function(){g(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return f(n,t),function(e){for(var i=[],o=0;on;n++)if(e===t[n])return n;return-1}function _each(e,t){if(_isArray(e))for(var n=0,i=e.length;i>n&&!1!==t.call(e[n],n,e[n]);n++);else for(var o in e)if(e.hasOwnProperty(o)&&!1===t.call(e[o],o,e[o]))break}function _trim(e){return e.replace(/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")}function _inString(e,t,n){return((n=n===undefined?",":n)+t+n).indexOf(n+e+n)>=0}function _addUnit(e,t){return t=t||"px",e&&/^\d+$/.test(e)?e+t:e}function _removeUnit(e){var t;return e&&(t=/(\d+)/.exec(e))?parseInt(t[1],10):0}function _escape(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function _unescape(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function _toCamel(e){var t=e.split("-");return e="",_each(t,function(t,n){e+=t>0?n.charAt(0).toUpperCase()+n.substr(1):n}),e}function _toHex(e){function t(e){var t=parseInt(e,10).toString(16).toUpperCase();return t.length>1?t:"0"+t}return e.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/gi,function(e,n,i,o){return"#"+t(n)+t(i)+t(o)})}function _toMap(e,t){t=t===undefined?",":t;var n,i={};return _each(_isArray(e)?e:e.split(t),function(e,t){if(n=/^(\d+)\.\.(\d+)$/.exec(t))for(var o=parseInt(n[1],10);o<=parseInt(n[2],10);o++)i[o.toString()]=!0;else i[t]=!0}),i}function _toArray(e,t){return Array.prototype.slice.call(e,t||0)}function _undef(e,t){return e===undefined?t:e}function _invalidUrl(e){return!e||/[<>"]/.test(e)}function _addParam(e,t){return e.indexOf("?")>=0?e+"&"+t:e+"?"+t}function _extend(e,t,n){var i;if(n||(n=t,t=null),t){var o=function(){};o.prototype=t.prototype,i=new o,_each(n,function(e,t){i[e]=t})}else i=n;i.constructor=e,e.prototype=i,e.parent=t?t.prototype:null}function _json(text){var match;(match=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(text))&&(text=match[0]);var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+text+")");throw"JSON parse error"}function _getBasePath(){for(var e,t=document.getElementsByTagName("script"),n=0,i=t.length;i>n;n++)if(e=t[n].src||"",/kindeditor[\w\-\.]*\.js/.test(e))return e.substring(0,e.lastIndexOf("/")+1);return""}function _bindEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,_useCapture):e.attachEvent&&e.attachEvent("on"+t,n)}function _unbindEvent(e,t,n){e.removeEventListener?e.removeEventListener(t,n,_useCapture):e.detachEvent&&e.detachEvent("on"+t,n)}function KEvent(e,t){this.init(e,t)}function _getId(e){return e[_eventExpendo]||null}function _setId(e){return e[_eventExpendo]=++_eventId,_eventId}function _removeId(e){try{delete e[_eventExpendo]}catch(t){e.removeAttribute&&e.removeAttribute(_eventExpendo)}}function _bind(e,t,n){if(t.indexOf(",")>=0)_each(t.split(","),function(){_bind(e,this,n)});else{var i=_getId(e);i||(i=_setId(e)),_eventData[i]===undefined&&(_eventData[i]={});var o=_eventData[i][t];o&&o.length>0?_unbindEvent(e,t,o[0]):(_eventData[i][t]=[],_eventData[i].el=e),0===(o=_eventData[i][t]).length&&(o[0]=function(t){var n=t?new KEvent(e,t):undefined;_each(o,function(t,i){t>0&&i&&i.call(e,n)})}),_inArray(n,o)<0&&o.push(n),_bindEvent(e,t,o[0])}}function _unbind(e,t,n){if(t&&t.indexOf(",")>=0)_each(t.split(","),function(){_unbind(e,this,n)});else{var i=_getId(e);if(i){if(t===undefined)return void(i in _eventData&&(_each(_eventData[i],function(t,n){"el"!=t&&n.length>0&&_unbindEvent(e,t,n[0])}),delete _eventData[i],_removeId(e)));if(_eventData[i]){var o=_eventData[i][t];if(o&&o.length>0){n===undefined?(_unbindEvent(e,t,o[0]),delete _eventData[i][t]):(_each(o,function(e,t){e>0&&t===n&&o.splice(e,1)}),1==o.length&&(_unbindEvent(e,t,o[0]),delete _eventData[i][t]));var r=0;_each(_eventData[i],function(){r++}),2>r&&(delete _eventData[i],_removeId(e))}}}}}function _fire(e,t){if(t.indexOf(",")>=0)_each(t.split(","),function(){_fire(e,this)});else{var n=_getId(e);if(n){var i=_eventData[n][t];_eventData[n]&&i&&i.length>0&&i[0]()}}}function _ctrl(e,t,n){t=/^\d{2,}$/.test(t)?t:t.toUpperCase().charCodeAt(0),_bind(e,"keydown",function(i){!i.ctrlKey||i.which!=t||i.shiftKey||i.altKey||(n.call(e),i.stop())})}function _ready(e){function t(){n||(n=!0,e(KindEditor),_readyFinished=!0)}if(_readyFinished)e(KindEditor);else{var n=!1;if(document.addEventListener)_bind(document,"DOMContentLoaded",t);else if(document.attachEvent){_bind(document,"readystatechange",function(){"complete"===document.readyState&&t()});var i=!1;try{i=null==window.frameElement}catch(e){}document.documentElement.doScroll&&i&&function e(){if(!n){try{document.documentElement.doScroll("left")}catch(t){return void setTimeout(e,100)}t()}}()}_bind(window,"load",t)}}function _getCssList(e){for(var t,n={},i=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g;t=i.exec(e);){var o=_trim(t[1].toLowerCase()),r=_trim(_toHex(t[2]));n[o]=r}return n}function _getAttrList(e){for(var t,n={},i=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g;t=i.exec(e);){var o=(t[1]||t[2]||t[4]||t[6]).toLowerCase(),r=(t[2]?t[3]:t[4]?t[5]:t[7])||"";n[o]=r}return n}function _addClassToTag(e,t){return/\s+class\s*=/.test(e)?e.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(e,n,i,o){return(" "+i+" ").indexOf(" "+t+" ")<0?""===i?n+t+o:n+i+" "+t+o:e}):e.substr(0,e.length-1)+' class="'+t+'">'}function _formatCss(e){var t="";return _each(_getCssList(e),function(e,n){t+=e+":"+n+";"}),t}function _formatUrl(e,t,n,i){function o(e){for(var t=e.split("/"),n=[],i=0,o=t.length;o>i;i++){var r=t[i];".."==r?n.length>0&&n.pop():""!==r&&"."!=r&&n.push(r)}return"/"+n.join("/")}if(t=_undef(t,"").toLowerCase(),"data:"!=e.substr(0,5)&&(e=e.replace(/([^:])\/\//g,"$1/")),_inArray(t,["absolute","relative","domain"])<0)return e;if(n=n||location.protocol+"//"+location.host,i===undefined){var r=location.pathname.match(/^(\/.*)\//);i=r?r[1]:""}var a;if(a=/^(\w+:\/\/[^\/]*)/.exec(e)){if(a[1]!==n)return e}else if(/^\w+:/.test(e))return e;return/^\//.test(e)?e=n+o(e.substr(1)):/^\w+:\/\//.test(e)||(e=n+o(i+"/"+e)),"relative"===t?e=function t(n,o){if(e.substr(0,n.length)===n){for(var r=[],l=0;o>l;l++)r.push("..");var s=".";return r.length>0&&(s+="/"+r.join("/")),"/"==i&&(s+="/"),s+e.substr(n.length)}return(a=/^(.*)\//.exec(n))?t(a[1],++o):void 0}(n+i,0).substr(2):"absolute"===t&&e.substr(0,n.length)===n&&(e=e.substr(n.length)),e}function _formatHtml(e,t,n,i,o){null==e&&(e=""),n=n||"",i=_undef(i,!1),o=_undef(o,"\t");var r="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,function(e,t,n,i){return t+n.replace(/<(?:br|br\s[^>]*)>/gi,"\n")+i})).replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/gi,"

")).replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/gi,"$1
$2")).replace(/\u200B/g,"")).replace(/\u00A9/g,"©")).replace(/\u00AE/g,"®")).replace(/\u2003/g," ")).replace(/\u3000/g," ")).replace(/<[^>]+/g,function(e){return e.replace(/\s+/g," ")});var a={};t&&(_each(t,function(e,t){for(var n=e.split(","),i=0,o=n.length;o>i;i++)a[n[i]]=_toMap(t)}),a.script||(e=e.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/gi,"")),a.style||(e=e.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/gi,"")));var l=[];return _trim(e=(e=(e=(e=e.replace(/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g,function(e,s,c,u,d,f,p){var h=e,g=s||"",m=c||"",b=u.toLowerCase(),v=d||"",_=f?" "+f:"",y=p||"";if(t&&!a[b])return"";if(""===_&&_SINGLE_TAG_MAP[b]&&(_=" /"),_INLINE_TAG_MAP[b]&&(g&&(g=" "),y&&(y=" ")),_PRE_TAG_MAP[b]&&(m?y="\n":g="\n"),i&&"br"==b&&(y="\n"),_BLOCK_TAG_MAP[b]&&!_PRE_TAG_MAP[b])if(i){m&&l.length>0&&l[l.length-1]===b?l.pop():l.push(b),g="\n",y="\n";for(var x=0,w=m?l.length:l.length-1;w>x;x++)g+=o,m||(y+=o);_?l.pop():m||(y+=o)}else g=y="";if(""!==v){var k=_getAttrList(h);if("font"===b){var C={},E="";_each(k,function(e,t){"color"===e&&(C.color=t,delete k[e]),"size"===e&&(C["font-size"]=r[parseInt(t,10)-1]||"",delete k[e]),"face"===e&&(C["font-family"]=t,delete k[e]),"style"===e&&(E=t)}),E&&!/;$/.test(E)&&(E+=";"),_each(C,function(e,t){""!==t&&(/\s/.test(t)&&(t="'"+t+"'"),E+=e+":"+t+";")}),k.style=E}_each(k,function(e,i){if(_FILL_ATTR_MAP[e]&&(k[e]=e),_inArray(e,["src","href"])>=0&&(k[e]=_formatUrl(i,n)),(t&&"style"!==e&&!a[b]["*"]&&!a[b][e]||"body"===b&&"contenteditable"===e||/^kindeditor_\d+$/.test(e))&&delete k[e],"style"===e&&""!==i){var o=_getCssList(i);_each(o,function(e){!t||a[b].style||a[b]["."+e]||delete o[e]});var r="";_each(o,function(e,t){r+=e+":"+t+";"}),k.style=r}}),v="",_each(k,function(e,t){("style"!==e||""!==t)&&(t=t.replace(/"/g,"""),v+=" "+e+'="'+t+'"')})}return"font"===b&&(b="span"),g+"<"+m+b+v+_+">"+y})).replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,function(e,t,n,i){return t+n.replace(/\n/g,'\n')+i})).replace(/\n\s*\n/g,"\n")).replace(/\n/g,"\n"))}function _clearMsWord(e,t){return _formatHtml(e=e.replace(//gi,"").replace(//gi,"").replace(/]*>[\s\S]*?<\/style>/gi,"").replace(/]*>[\s\S]*?<\/script>/gi,"").replace(/]+>[\s\S]*?<\/w:[^>]+>/gi,"").replace(/]+>[\s\S]*?<\/o:[^>]+>/gi,"").replace(/[\s\S]*?<\/xml>/gi,"").replace(/<(?:table|td)[^>]*>/gi,function(e){return e.replace(/border-bottom:([#\w\s]+)/gi,"border:$1")}),t)}function _mediaType(e){return/\.(rm|rmvb)(\?|$)/i.test(e)?"audio/x-pn-realaudio-plugin":/\.(swf|flv)(\?|$)/i.test(e)?"application/x-shockwave-flash":"video/x-ms-asf-plugin"}function _mediaClass(e){return/realaudio/i.test(e)?"ke-rm":/flash/i.test(e)?"ke-flash":"ke-media"}function _mediaAttrs(e){return _getAttrList(unescape(e))}function _mediaEmbed(e){var t="0&&(a+="width:"+n+"px;"),/\D/.test(i)?a+="height:"+i+";":i>0&&(a+="height:"+i+"px;");var l=''}function _tmpl(e,t){var n=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+e.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return t?n(t):n}function _contains(e,t){if(9==e.nodeType&&9!=t.nodeType)return!0;for(;t=t.parentNode;)if(t==e)return!0;return!1}function _getAttr(e,t){t=t.toLowerCase();var n=null;if(_GET_SET_ATTRIBUTE||"script"==e.nodeName.toLowerCase())try{n=e.getAttribute(t,2)}catch(i){n=e.getAttribute(t,1)}else{var i=e.ownerDocument.createElement("div");i.appendChild(e.cloneNode(!1));var o=_getAttrList(_unescape(i.innerHTML));t in o&&(n=o[t])}return"style"===t&&null!==n&&(n=_formatCss(n)),n}function _queryAll(e,t){function n(e){return"string"!=typeof e?e:e.replace(/([^\w\-])/g,"\\$1")}function i(e){return e.replace(/\\/g,"")}function o(e,t){return"*"===e||e.toLowerCase()===n(t.toLowerCase())}function r(e,t,n){var r=[],a=(n.ownerDocument||n).getElementById(i(e));return a&&o(t,a.nodeName)&&_contains(n,a)&&r.push(a),r}function a(e,t,n){var r,a,l,s,c=n.ownerDocument||n,u=[];if(n.getElementsByClassName)for(a=0,l=(r=n.getElementsByClassName(i(e))).length;l>a;a++)o(t,(s=r[a]).nodeName)&&u.push(s);else if(c.querySelectorAll)for(a=0,l=(r=c.querySelectorAll(("#document"!==n.nodeName?n.nodeName+" ":"")+t+"."+e)).length;l>a;a++)_contains(n,s=r[a])&&u.push(s);else for(e=" "+e+" ",a=0,l=(r=n.getElementsByTagName(t)).length;l>a;a++)if(1==(s=r[a]).nodeType){var d=s.className;d&&(" "+d+" ").indexOf(e)>-1&&u.push(s)}return u}function l(e,t,n){for(var r,a=[],l=(n.ownerDocument||n).getElementsByName(i(e)),s=0,c=l.length;c>s;s++)o(t,(r=l[s]).nodeName)&&_contains(n,r)&&null!==r.getAttribute("name")&&a.push(r);return a}function s(e,t,i,o){for(var r,a=[],l=o.getElementsByTagName(i),s=0,c=l.length;c>s;s++)1==(r=l[s]).nodeType&&(null===t?null!==_getAttr(r,e)&&a.push(r):t===n(_getAttr(r,e))&&a.push(r));return a}function c(e,t){var n,i=[],o=(n=/^((?:\\.|[^.#\s\[<>])+)/.exec(e))?n[1]:"*";if(n=/#((?:[\w\-]|\\.)+)$/.exec(e))i=r(n[1],o,t);else if(n=/\.((?:[\w\-]|\\.)+)$/.exec(e))i=a(n[1],o,t);else if(n=/\[((?:[\w\-]|\\.)+)\]/.exec(e))i=s(n[1].toLowerCase(),null,o,t);else if(n=/\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(e)){var c=n[1].toLowerCase(),u=n[2];i="id"===c?r(u,o,t):"class"===c?a(u,o,t):"name"===c?l(u,o,t):s(c,u,o,t)}else for(var d,f=t.getElementsByTagName(o),p=0,h=f.length;h>p;p++)1==(d=f[p]).nodeType&&i.push(d);return i}var u=e.split(",");if(u.length>1){var d=[];return _each(u,function(){_each(_queryAll(this,t),function(){_inArray(this,d)<0&&d.push(this)})}),d}t=t||document;for(var f,p=[],h=/((?:\\.|[^\s>])+|[\s>])/g;f=h.exec(e);)" "!==f[1]&&p.push(f[1]);var g=[];if(1==p.length)return c(p[0],t);var m,b,v,_,y,x,w,k,C,E,S=!1;for(x=0,lenth=p.length;lenth>x;x++)if(">"!==(m=p[x])){if(x>0){for(b=[],w=0,C=g.length;C>w;w++)for(k=0,E=(v=c(m,_=g[w])).length;E>k;k++)y=v[k],S?_===y.parentNode&&b.push(y):b.push(y);g=b}else g=c(m,t);if(0===g.length)return[]}else S=!0;return g}function _query(e,t){var n=_queryAll(e,t);return n.length>0?n[0]:null}function _get(e){return K(e)[0]}function _getDoc(e){return e?e.ownerDocument||e.document||e:document}function _getWin(e){if(!e)return window;var t=_getDoc(e);return t.parentWindow||t.defaultView}function _setHtml(e,t){if(1==e.nodeType){var n=_getDoc(e);try{e.innerHTML=''+t;var i=n.getElementById("__kindeditor_temp_tag__");i.parentNode.removeChild(i)}catch(i){K(e).empty(),K("@"+t,n).each(function(){e.appendChild(this)})}}}function _hasClass(e,t){return _inString(t,e.className," ")}function _setAttr(e,t,n){_IE&&8>_V&&"class"==t.toLowerCase()&&(t="className"),e.setAttribute(t,""+n)}function _removeAttr(e,t){_IE&&8>_V&&"class"==t.toLowerCase()&&(t="className"),_setAttr(e,t,""),e.removeAttribute(t)}function _getNodeName(e){return e&&e.nodeName?e.nodeName.toLowerCase():""}function _computedCss(e,t){var n=_getWin(e),i=_toCamel(t),o="";if(n.getComputedStyle){var r=n.getComputedStyle(e,null);o=r[i]||r.getPropertyValue(t)||e.style[i]}else e.currentStyle&&(o=e.currentStyle[i]||e.style[i]);return o}function _hasVal(e){return!!_VALUE_TAG_MAP[_getNodeName(e)]}function _docElement(e){return e=e||document,_QUIRKS?e.body:e.documentElement}function _docHeight(e){var t=_docElement(e);return Math.max(t.scrollHeight,t.clientHeight)}function _docWidth(e){var t=_docElement(e);return Math.max(t.scrollWidth,t.clientWidth)}function _getScrollPos(e){var t,n;return e=e||document,_IE||_NEWIE||_OPERA?(t=_docElement(e).scrollLeft,n=_docElement(e).scrollTop):(t=_getWin(e).scrollX,n=_getWin(e).scrollY),{x:t,y:n}}function KNode(e){this.init(e)}function _updateCollapsed(e){return e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset,e}function _copyAndDelete(e,t,n){function i(i,o,a){var l,s=i.nodeValue.length;if(t){var c=i.cloneNode(!0);l=o>0?c.splitText(o):c,s>a&&l.splitText(a-o)}if(n){var u=i;if(o>0&&(u=i.splitText(o),e.setStart(i,o)),s>a){var d=u.splitText(a-o);e.setEnd(d,0)}r.push(u)}return l}var o=e.doc,r=[],a=e.cloneRange().down(),l=-1,s=-1,c=-1,u=-1,d=e.commonAncestor(),f=o.createDocumentFragment();if(3==d.nodeType){var p=i(d,e.startOffset,e.endOffset);return t&&f.appendChild(p),function(){n&&e.up().collapse(!0);for(var t=0,i=r.length;i>t;t++){var o=r[t];o.parentNode&&o.parentNode.removeChild(o)}}(),t?f:e}(function d(f,p){for(var h,g=f.firstChild;g;){var m=new KRange(o).selectNode(g);if((l=m.compareBoundaryPoints(_START_TO_END,e))>=0&&0>=s&&(s=m.compareBoundaryPoints(_START_TO_START,e)),s>=0&&0>=c&&(c=m.compareBoundaryPoints(_END_TO_END,e)),c>=0&&0>=u&&(u=m.compareBoundaryPoints(_END_TO_START,e)),u>=0)return!1;if(h=g.nextSibling,l>0)if(1==g.nodeType){var b;if(s>=0&&0>=c)t&&p.appendChild(g.cloneNode(!0)),n&&r.push(g);else if(t&&(b=g.cloneNode(!1),p.appendChild(b)),!1===d(g,b))return!1}else if(3==g.nodeType){var v;if(v=g==a.startContainer?i(g,a.startOffset,g.nodeValue.length):g==a.endContainer?i(g,0,a.endOffset):i(g,0,g.nodeValue.length),t)try{p.appendChild(v)}catch(e){}}g=h}})(d,f),n&&e.up().collapse(!0);for(var h=0,g=r.length;g>h;h++){var m=r[h];m.parentNode&&m.parentNode.removeChild(m)}return t?f:e}function _moveToElementText(e,t){for(var n=t;n;){var i=K(n);if("marquee"==i.name||"select"==i.name)return;n=n.parentNode}try{e.moveToElementText(t)}catch(e){}}function _getStartEnd(e,t){var n=e.parentElement().ownerDocument,i=e.duplicate();i.collapse(t);var o=i.parentElement(),r=o.childNodes;if(0===r.length)return{node:o.parentNode,offset:K(o).index()};var a=n,l=0,s=-1,c=e.duplicate();_moveToElementText(c,o);for(var u=0,d=r.length;d>u;u++){var f=r[u];if(0===(s=c.compareEndPoints("StartToStart",i)))return{node:f.parentNode,offset:u};if(1==f.nodeType){var p,h=e.duplicate(),g=K(f),m=f;g.isControl()&&(p=n.createElement("span"),g.after(p),m=p,l+=g.text().replace(/\r\n|\n|\r/g,"").length),_moveToElementText(h,m),c.setEndPoint("StartToEnd",h),s>0?l+=h.text.replace(/\r\n|\n|\r/g,"").length:l=0,p&&K(p).remove()}else 3==f.nodeType&&(c.moveStart("character",f.nodeValue.length),l+=f.nodeValue.length);0>s&&(a=f)}if(0>s&&1==a.nodeType)return{node:o,offset:K(o.lastChild).index()+1};if(s>0)for(;a.nextSibling&&1==a.nodeType;)a=a.nextSibling;if(_moveToElementText(c=e.duplicate(),o),c.setEndPoint("StartToEnd",i),l-=c.text.replace(/\r\n|\n|\r/g,"").length,s>0&&3==a.nodeType)for(var b=a.previousSibling;b&&3==b.nodeType;)l-=b.nodeValue.length,b=b.previousSibling;return{node:a,offset:l}}function _getEndRange(e,t){var n=e.ownerDocument||e,i=n.body.createTextRange();if(n==e)return i.collapse(!0),i;if(1==e.nodeType&&e.childNodes.length>0){var o,r,a=e.childNodes;if(0===t?(r=a[0],o=!0):(r=a[t-1],o=!1),!r)return i;if("head"===K(r).name)return 1===t&&(o=!0),2===t&&(o=!1),i.collapse(o),i;if(1==r.nodeType){var l,s=K(r);return s.isControl()&&(l=n.createElement("span"),o?s.before(l):s.after(l),r=l),_moveToElementText(i,r),i.collapse(o),l&&K(l).remove(),i}e=r,t=o?0:r.nodeValue.length}var c=n.createElement("span");return K(e).before(c),_moveToElementText(i,c),i.moveStart("character",t),K(c).remove(),i}function _toRange(e){function t(e){"tr"==K(e.node).name&&(e.node=e.node.cells[e.offset],e.offset=0)}var n,i;if(_IERANGE){if(e.item)return(i=new KRange(n=_getDoc(e.item(0)))).selectNode(e.item(0)),i;n=e.parentElement().ownerDocument;var o=_getStartEnd(e,!0),r=_getStartEnd(e,!1);return t(o),t(r),(i=new KRange(n)).setStart(o.node,o.offset),i.setEnd(r.node,r.offset),i}var a=e.startContainer;return(i=new KRange(n=a.ownerDocument||a)).setStart(a,e.startOffset),i.setEnd(e.endContainer,e.endOffset),i}function KRange(e){this.init(e)}function _range(e){return e.nodeName?new KRange(e):e.constructor===KRange?e:_toRange(e)}function _nativeCommand(e,t,n){try{e.execCommand(t,!1,n)}catch(e){}}function _nativeCommandValue(e,t){var n="";try{n=e.queryCommandValue(t)}catch(e){}return"string"!=typeof n&&(n=""),n}function _getSel(e){var t=_getWin(e);return _IERANGE?e.selection:t.getSelection()}function _getRng(e){var t,n=_getSel(e);try{t=n.rangeCount>0?n.getRangeAt(0):n.createRange()}catch(e){}return!_IERANGE||t&&(t.item||t.parentElement().ownerDocument===e)?t:null}function _singleKeyMap(e){var t,n,i={};return _each(e,function(e,o){for(var r=0,a=(t=e.split(",")).length;a>r;r++)n=t[r],i[n]=o}),i}function _hasAttrOrCss(e,t){return _hasAttrOrCssByKey(e,t,"*")||_hasAttrOrCssByKey(e,t)}function _hasAttrOrCssByKey(e,t,n){if(n=n||e.name,1!==e.type)return!1;var i=_singleKeyMap(t);if(!i[n])return!1;for(var o=i[n].split(","),r=0,a=o.length;a>r;r++){var l=o[r];if("*"===l)return!0;var s=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(l),c=s[1]?"css":"attr";l=s[2];var u=s[3]||"";if(""===u&&""!==e[c](l))return!0;if(""!==u&&e[c](l)===u)return!0}return!1}function _removeAttrOrCss(e,t){1==e.type&&(_removeAttrOrCssByKey(e,t,"*"),_removeAttrOrCssByKey(e,t))}function _removeAttrOrCssByKey(e,t,n){if(n=n||e.name,1===e.type){var i=_singleKeyMap(t);if(i[n]){for(var o=i[n].split(","),r=!1,a=0,l=o.length;l>a;a++){var s=o[a];if("*"===s){r=!0;break}var c=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(s);s=c[2],c[1]?(s=_toCamel(s),e[0].style[s]&&(e[0].style[s]="")):e.removeAttr(s)}r&&e.remove(!0)}}}function _getInnerNode(e){for(var t=e;t.first();)t=t.first();return t}function _isEmptyNode(e){return 1==e.type&&!e.isSingle()&&""===e.html().replace(/<[^>]+>/g,"")}function _mergeWrapper(e,t){for(var n=_getInnerNode(e=e.clone(!0)),i=e,o=!1;t;){for(;i;)i.name===t.name&&(_mergeAttrs(i,t.attr(),t.css()),o=!0),i=i.first();o||n.append(t.clone(!1)),o=!1,t=t.first()}return e}function _wrapNode(e,t){if(t=t.clone(!0),3==e.type)return _getInnerNode(t).append(e.clone(!1)),e.replaceWith(t),t;for(var n,i=e;(n=e.first())&&1==n.children().length;)e=n;n=e.first();for(var o=e.doc.createDocumentFragment();n;)o.appendChild(n[0]),n=n.next();return t=_mergeWrapper(i,t),o.firstChild&&_getInnerNode(t).append(o),i.replaceWith(t),t}function _mergeAttrs(e,t,n){_each(t,function(t,n){"style"!==t&&e.attr(t,n)}),_each(n,function(t,n){e.css(t,n)})}function _inPreElement(e){for(;e&&"body"!=e.name;){if(_PRE_TAG_MAP[e.name]||"div"==e.name&&e.hasClass("ke-script"))return!0;e=e.parent()}return!1}function KCmd(e){this.init(e)}function _cmd(e){if(e.nodeName){var t=_getDoc(e);e=_range(t).selectNodeContents(t.body).collapse(!1)}return new KCmd(e)}function _drag(e){var t=e.moveEl,n=e.moveFn,i=e.clickEl||t,o=e.beforeDrag,r=e.iframeFix===undefined||e.iframeFix,a=[document];r&&K("iframe").each(function(){var e=_formatUrl(this.src||"","absolute");if(!/^https?:\/\//.test(e)){var t;try{t=_iframeDoc(this)}catch(e){}if(t){var n=K(this).pos();K(t).data("pos-x",n.x),K(t).data("pos-y",n.y),a.push(t)}}}),i.mousedown(function(e){function r(e){e.preventDefault();var t=K(_getDoc(e.target)),o=_round((t.data("pos-x")||0)+e.pageX-p),r=_round((t.data("pos-y")||0)+e.pageY-h);n.call(i,c,u,d,f,o,r)}function l(e){e.preventDefault()}e.stopPropagation();var s=i.get(),c=_removeUnit(t.css("left")),u=_removeUnit(t.css("top")),d=t.width(),f=t.height(),p=e.pageX,h=e.pageY;o&&o(),K(a).mousemove(r).mouseup(function e(t){t.preventDefault(),K(a).unbind("mousemove",r).unbind("mouseup",e).unbind("selectstart",l),s.releaseCapture&&s.releaseCapture()}).bind("selectstart",l),s.setCapture&&s.setCapture()})}function KWidget(e){this.init(e)}function _widget(e){return new KWidget(e)}function _iframeDoc(e){return(e=_get(e)).contentDocument||e.contentWindow.document}function _getInitHtml(e,t,n,i){var o=[""===_direction?"":'','',""];return _isArray(n)||(n=[n]),_each(n,function(e,t){t&&o.push('')}),i&&o.push(""),o.push(""),o.join("\n")}function _elementVal(e,t){if(e.hasVal()){if(t===undefined){var n=e.val();return n.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,"")}return e.val(t)}return e.html(t)}function KEdit(e){this.init(e)}function _edit(e){return new KEdit(e)}function _selectToolbar(e,t){var n=this.get(e);if(n){if(n.hasClass("ke-disabled"))return;t(n)}}function KToolbar(e){this.init(e)}function _toolbar(e){return new KToolbar(e)}function KMenu(e){this.init(e)}function _menu(e){return new KMenu(e)}function KColorPicker(e){this.init(e)}function _colorpicker(e){return new KColorPicker(e)}function KUploadButton(e){this.init(e)}function _uploadbutton(e){return new KUploadButton(e)}function _createButton(e){var t=(e=e||{}).name||"",n=K(''),i=K('');return e.click&&i.click(e.click),n.append(i),n}function KDialog(e){this.init(e)}function _dialog(e){return new KDialog(e)}function _tabs(e){var t=_widget(e),n=t.remove,i=e.afterSelect,o=t.div,r=[];o.addClass("ke-tabs").bind("contextmenu,mousedown,mousemove",function(e){e.preventDefault()});var a=K('
    ');return o.append(a),t.add=function(e){var t=K('
  • '+e.title+"
  • ");t.data("tab",e),r.push(t),a.append(t)},t.selectedIndex=0,t.select=function(e){t.selectedIndex=e,_each(r,function(n,i){i.unbind(),n===e?(i.addClass("ke-tabs-li-selected"),K(i.data("tab").panel).show("")):(i.removeClass("ke-tabs-li-selected").removeClass("ke-tabs-li-on").mouseover(function(){K(this).addClass("ke-tabs-li-on")}).mouseout(function(){K(this).removeClass("ke-tabs-li-on")}).click(function(){t.select(n)}),K(i.data("tab").panel).hide())}),i&&i.call(t,e)},t.remove=function(){_each(r,function(){this.remove()}),a.remove(),n.call(t)},t}function _loadScript(e,t){var n=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),i=document.createElement("script");n.appendChild(i),i.src=e,i.charset="utf-8",i.onload=i.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState||(t&&t(),i.onload=i.onreadystatechange=null,n.removeChild(i))}}function _chopQuery(e){var t=e.indexOf("?");return t>0?e.substr(0,t):e}function _loadStyle(e){for(var t=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),n=document.createElement("link"),i=_chopQuery(_formatUrl(e,"absolute")),o=K('link[rel="stylesheet"]',t),r=0,a=o.length;a>r;r++)if(_chopQuery(_formatUrl(o[r].href,"absolute"))===i)return;t.appendChild(n),n.href=e,n.rel="stylesheet"}function _ajax(e,t,n,i,o){n=n||"GET",o=o||"json";var r=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");if(r.open(n,e,!0),r.onreadystatechange=function(){if(4==r.readyState&&200==r.status&&t){var e=_trim(r.responseText);"json"==o&&(e=_json(e)),t(e)}},"POST"==n){var a=[];_each(i,function(e,t){a.push(encodeURIComponent(e)+"="+encodeURIComponent(t))});try{r.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}r.send(a.join("&"))}else r.send(null)}function _plugin(e,t){return e===undefined?_plugins:t?void(_plugins[e]=t):_plugins[e]}function _parseLangKey(e){var t,n="core";return(t=/^(\w+)\.(\w+)$/.exec(e))&&(n=t[1],e=t[2]),{ns:n,key:e}}function _lang(e,t){if(t=t===undefined?K.options.langType:t,"string"==typeof e){if(!_language[t])return"no language";var n=e.length-1;if("."===e.substr(n))return _language[t][e.substr(0,n)];var i=_parseLangKey(e);return _language[t][i.ns][i.key]}_each(e,function(e,n){var i=_parseLangKey(e);_language[t]||(_language[t]={}),_language[t][i.ns]||(_language[t][i.ns]={}),_language[t][i.ns][i.key]=n})}function _getImageFromRange(e,t){if(!e.collapsed){var n=(e=e.cloneRange().up()).startContainer,i=e.startOffset;if(_WEBKIT||e.isControl()){var o=K(n.childNodes[i]);if(o&&"img"==o.name)return t(o)?o:void 0}}}function _bindContextmenuEvent(){var e=this,t=e.edit.doc;K(t).contextmenu(function(t){if(e.menu&&e.hideMenu(),e.useContextmenu){if(0!==e._contextmenus.length){var n=0,i=[];for(_each(e._contextmenus,function(){return"-"==this.title?void i.push(this):void(this.cond&&this.cond()&&(i.push(this),this.width&&this.width>n&&(n=this.width)))});i.length>0&&"-"==i[0].title;)i.shift();for(;i.length>0&&"-"==i[i.length-1].title;)i.pop();var o=null;if(_each(i,function(e){"-"==this.title&&"-"==o.title&&delete i[e],o=this}),i.length>0){t.preventDefault();var r=K(e.edit.iframe).pos(),a=_menu({x:r.x+t.clientX,y:r.y+t.clientY,width:n,css:{visibility:"hidden"},shadowMode:e.shadowMode});_each(i,function(){this.title&&a.addItem(this)});var l=_docElement(a.doc),s=a.div.height();t.clientY+s>=l.clientHeight-100&&a.pos(a.x,_removeUnit(a.y)-s),a.div.css("visibility","visible"),e.menu=a}}}else t.preventDefault()})}function _bindNewlineEvent(){function e(e){for(var t=K(e.commonAncestor());t&&(1!=t.type||t.isStyle());)t=t.parent();return t.name}var t=this,n=t.edit.doc,i=t.newlineTag;if(!(_IE&&"br"!==i||_GECKO&&3>_V&&"p"!==i||_OPERA&&9>_V)){var o=_toMap("h1,h2,h3,h4,h5,h6,pre,li"),r=_toMap("p,h1,h2,h3,h4,h5,h6,pre,li,blockquote");K(n).keydown(function(a){if(!(13!=a.which||a.shiftKey||a.ctrlKey||a.altKey)){t.cmd.selection();var l=e(t.cmd.range);if("marquee"!=l&&"select"!=l)return"br"!==i||o[l]?void(r[l]||_nativeCommand(n,"formatblock","

    ")):(a.preventDefault(),void t.insertHtml("
    "+(_IE&&9>_V?"":"​")))}}),K(n).keyup(function(o){if(!(13!=o.which||o.shiftKey||o.ctrlKey||o.altKey)&&"br"!=i){if(_GECKO){var a=t.cmd.commonAncestor("p"),l=t.cmd.commonAncestor("a");return void(l&&""==l.text()&&(l.remove(!0),t.cmd.range.selectNodeContents(a[0]).collapse(!0),t.cmd.select()))}t.cmd.selection();var s=e(t.cmd.range);if("marquee"!=s&&"select"!=s){r[s]||_nativeCommand(n,"formatblock","

    ");var c=t.cmd.commonAncestor("div");if(c){for(var u=K("

    "),d=c[0].firstChild;d;){var f=d.nextSibling;u.append(d),d=f}c.before(u),c.remove(),t.cmd.range.selectNodeContents(u[0]),t.cmd.select()}}}})}}function _bindTabEvent(){var e=this,t=e.edit.doc;K(t).keydown(function(n){if(9==n.which){if(n.preventDefault(),e.afterTab)return void e.afterTab.call(e,n);var i=e.cmd,o=i.range;o.shrink(),o.collapsed&&1==o.startContainer.nodeType&&(o.insertNode(K("@ ",t)[0]),i.select()),e.insertHtml("    ")}})}function _bindFocusEvent(){var e=this;K(e.edit.textarea[0],e.edit.win).focus(function(t){e.afterFocus&&e.afterFocus.call(e,t)}).blur(function(t){e.afterBlur&&e.afterBlur.call(e,t)})}function _removeBookmarkTag(e){return _trim(e.replace(/]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/gi,""))}function _removeTempTag(e){return e.replace(/]+class="?__kindeditor_paste__"?[^>]*>[\s\S]*?<\/div>/gi,"")}function _addBookmarkToStack(e,t){if(0!==e.length){var n=e[e.length-1];_removeBookmarkTag(t.html)!==_removeBookmarkTag(n.html)&&e.push(t)}else e.push(t)}function _undoToRedo(e,t){var n,i,o=this,r=o.edit,a=r.doc.body;if(0===e.length)return o;r.designMode?(i=(n=o.cmd.range).createBookmark(!0)).html=a.innerHTML:i={html:a.innerHTML},_addBookmarkToStack(t,i);var l=e.pop();return _removeBookmarkTag(i.html)===_removeBookmarkTag(l.html)&&e.length>0&&(l=e.pop()),r.designMode?(r.html(l.html),l.start&&(n.moveToBookmark(l),o.select())):K(a).html(_removeBookmarkTag(l.html)),o}function KEditor(e){function t(e,t){KEditor.prototype[e]===undefined&&(n[e]=t),n.options[e]=t}var n=this;n.options={},_each(e,function(n){t(n,e[n])}),_each(K.options,function(e,i){n[e]===undefined&&t(e,i)});var i=K(n.srcElement||"').css("width","100%"),n.tabIndex=isNaN(parseInt(e.tabIndex,10))?n.srcElement.attr("tabindex"):parseInt(e.tabIndex,10),n.iframe.attr("tabindex",n.tabIndex),n.textarea.attr("tabindex",n.tabIndex),n.width&&n.setWidth(n.width),n.height&&n.setHeight(n.height),n.designMode?n.textarea.hide():n.iframe.hide(),l&&n.iframe.bind("load",function(){n.iframe.unbind("load"),_IE?t():setTimeout(t,0)}),n.div.append(n.iframe),n.div.append(n.textarea),n.srcElement.hide(),!l&&t()},setWidth:function(e){var t=this;return e=_addUnit(e),t.width=e,t.div.css("width",e),t},setHeight:function(e){var t=this;return e=_addUnit(e),t.height=e,t.div.css("height",e),t.iframe.css("height",e),(_IE&&8>_V||_QUIRKS)&&(e=_addUnit(_removeUnit(e)-2)),t.textarea.css("height",e),t},remove:function(){var e=this,t=e.doc;K(t.body).unbind(),K(t).unbind(),K(e.win).unbind(),e._mousedownHandler&&K(document).unbind("mousedown",e._mousedownHandler),_elementVal(e.srcElement,e.html()),e.srcElement.show(),e.iframe.unbind(),e.textarea.unbind(),KEdit.parent.remove.call(e)},html:function(e,t){var n=this,i=n.doc;if(n.designMode){var o=i.body;return e===undefined?(e=t?""+o.parentNode.innerHTML+"":o.innerHTML,n.beforeGetHtml&&(e=n.beforeGetHtml(e)),_GECKO&&"
    "==e&&(e=""),e):(n.beforeSetHtml&&(e=n.beforeSetHtml(e)),_IE&&_V>=9&&(e=e.replace(/(<.*?checked=")checked(".*>)/gi,"$1$2")),K(o).html(e),n.afterSetHtml&&n.afterSetHtml(),n)}return e===undefined?n.textarea.val():(n.textarea.val(e),n)},design:function(e){var t,n=this;return(e===undefined?!n.designMode:e)?n.designMode||(t=n.html(),n.designMode=!0,n.html(t),n.textarea.hide(),n.iframe.show()):n.designMode&&(t=n.html(),n.designMode=!1,n.html(t),n.iframe.hide(),n.textarea.show()),n.focus()},focus:function(){var e=this;return e.designMode?e.win.focus():e.textarea[0].focus(),e},blur:function(){var e=this;if(_IE){var t=K('',e.div);e.div.append(t),t[0].focus(),t.remove()}else e.designMode?e.win.blur():e.textarea[0].blur();return e},afterChange:function(e){function t(t){setTimeout(function(){e(t)},1)}var n=this,i=n.doc,o=i.body;return K(i).keyup(function(t){t.ctrlKey||t.altKey||!_CHANGE_KEY_MAP[t.which]||e(t)}),K(i).mouseup(e).contextmenu(e),K(n.win).blur(e),K(o).bind("paste",t),K(o).bind("cut",t),n}}),K.EditClass=KEdit,K.edit=_edit,K.iframeDoc=_iframeDoc,_extend(KToolbar,KWidget,{init:function(e){function t(e){var t=K(e);return t.hasClass("ke-outline")?t:t.hasClass("ke-toolbar-icon")?t.parent():void 0}function n(e,n){var i=t(e.target);if(i){if(i.hasClass("ke-disabled"))return;if(i.hasClass("ke-selected"))return;i[n]("ke-on")}}var i=this;KToolbar.parent.init.call(i,e),i.disableMode=_undef(e.disableMode,!1),i.noDisableItemMap=_toMap(_undef(e.noDisableItems,[])),i._itemMap={},i.div.addClass("ke-toolbar").bind("contextmenu,mousedown,mousemove",function(e){e.preventDefault()}).attr("unselectable","on"),i.div.mouseover(function(e){n(e,"addClass")}).mouseout(function(e){n(e,"removeClass")}).click(function(e){var n=t(e.target);if(n){if(n.hasClass("ke-disabled"))return;i.options.click.call(this,e,n.attr("data-name"))}})},get:function(e){return this._itemMap[e]?this._itemMap[e]:this._itemMap[e]=K("span.ke-icon-"+e,this.div).parent()},select:function(e){return _selectToolbar.call(this,e,function(e){e.addClass("ke-selected")}),self},unselect:function(e){return _selectToolbar.call(this,e,function(e){e.removeClass("ke-selected").removeClass("ke-on")}),self},enable:function(e){var t=e.get?e:this.get(e);return t&&(t.removeClass("ke-disabled"),t.opacity(1)),this},disable:function(e){var t=e.get?e:this.get(e);return t&&(t.removeClass("ke-selected").addClass("ke-disabled"),t.opacity(.5)),this},disableAll:function(e,t){var n=this,i=n.noDisableItemMap;return t&&(i=_toMap(t)),(e===undefined?!n.disableMode:e)?(K("span.ke-outline",n.div).each(function(){var e=K(this),t=e[0].getAttribute("data-name",2);i[t]||n.disable(e)}),n.disableMode=!0):(K("span.ke-outline",n.div).each(function(){var e=K(this),t=e[0].getAttribute("data-name",2);i[t]||n.enable(e)}),n.disableMode=!1),n}}),K.ToolbarClass=KToolbar,K.toolbar=_toolbar,_extend(KMenu,KWidget,{init:function(e){var t=this;e.z=e.z||811213,KMenu.parent.init.call(t,e),t.centerLineMode=_undef(e.centerLineMode,!0),t.div.addClass("ke-menu").bind("click,mousedown",function(e){e.stopPropagation()}).attr("unselectable","on")},addItem:function(e){var t=this;if("-"!==e.title){var n,i=K('
    '),o=K('
    '),r=K('
    '),a=_addUnit(e.height),l=_undef(e.iconClass,"");return t.div.append(i),a&&(i.css("height",a),r.css("line-height",a)),t.centerLineMode&&(n=K('
    '),a&&n.css("height",a)),i.mouseover(function(){K(this).addClass("ke-menu-item-on"),n&&n.addClass("ke-menu-item-center-on")}).mouseout(function(){K(this).removeClass("ke-menu-item-on"),n&&n.removeClass("ke-menu-item-center-on")}).click(function(t){e.click.call(K(this)),t.stopPropagation()}).append(o),n&&i.append(n),i.append(r),e.checked&&(l="ke-icon-checked"),""!==l&&o.html(''),r.html(e.title),t}t.div.append(K('
    '))},remove:function(){var e=this;return e.options.beforeRemove&&e.options.beforeRemove.call(e),K(".ke-menu-item",e.div[0]).unbind(),KMenu.parent.remove.call(e),e}}),K.MenuClass=KMenu,K.menu=_menu,_extend(KColorPicker,KWidget,{init:function(e){var t=this;e.z=e.z||811213,KColorPicker.parent.init.call(t,e);var n=e.colors||[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]];t.selectedColor=(e.selectedColor||"").toLowerCase(),t._cells=[],t.div.addClass("ke-colorpicker").bind("click,mousedown",function(e){e.stopPropagation()}).attr("unselectable","on");var i=t.doc.createElement("table");t.div.append(i),i.className="ke-colorpicker-table",i.cellPadding=0,i.cellSpacing=0,i.border=0;var o=i.insertRow(0),r=o.insertCell(0);r.colSpan=n[0].length,t._addAttr(r,"","ke-colorpicker-cell-top");for(var a=0;a
    ').css("background-color",t)):e.html(i.options.noColor),K(e).attr("unselectable","on"),i._cells.push(e)},remove:function(){var e=this;return _each(e._cells,function(){this.unbind()}),KColorPicker.parent.remove.call(e),e}}),K.ColorPickerClass=KColorPicker,K.colorpicker=_colorpicker,_extend(KUploadButton,{init:function(e){var t=this,n=K(e.button),i=e.fieldName||"file",o=e.url||"",r=n.val(),a=e.extraParams||{},l=n[0].className||"",s=e.target||"kindeditor_upload_iframe_"+(new Date).getTime();e.afterError=e.afterError||function(e){alert(e)};var c=[];for(var u in a)c.push('');var d=['
    ',e.target?"":'',e.form?'
    ':'
    ','',c.join(""),'',"",'',e.form?"
    ":"","
    "].join(""),f=K(d,n.doc);n.hide(),n.before(f),t.div=f,t.button=n,t.iframe=e.target?K('iframe[name="'+s+'"]'):K("iframe",f),t.form=e.form?K(e.form):K("form",f),t.fileBox=K(".ke-upload-file",f);var p=e.width||K(".ke-button-common",f).width();K(".ke-upload-area",f).width(p),t.options=e},submit:function(){var e=this,t=e.iframe;return t.bind("load",function(){t.unbind();var n=document.createElement("form");e.fileBox.before(n),K(n).append(e.fileBox),n.reset(),K(n).remove(!0);var i,o=K.iframeDoc(t),r=o.getElementsByTagName("pre")[0],a="";a=_unescape(a=r?r.innerHTML:o.body.innerHTML),t[0].src="javascript:false";try{i=K.json(a)}catch(t){e.options.afterError.call(e,""+o.body.parentNode.innerHTML+"")}i&&e.options.afterUpload.call(e,i)}),e.form[0].submit(),e},remove:function(){var e=this;return e.fileBox&&e.fileBox.unbind(),e.iframe.remove(),e.div.remove(),e.button.show(),e}}),K.UploadButtonClass=KUploadButton,K.uploadbutton=_uploadbutton,_extend(KDialog,KWidget,{init:function(e){var t=this,n=_undef(e.shadowMode,!0);e.z=e.z||811213,e.shadowMode=!1,e.autoScroll=_undef(e.autoScroll,!0),KDialog.parent.init.call(t,e);var i=e.title,o=K(e.body,t.doc),r=e.previewBtn,a=e.yesBtn,l=e.noBtn,s=e.closeBtn,c=_undef(e.showMask,!0);t.div.addClass("ke-dialog").bind("click,mousedown",function(e){e.stopPropagation()});var u=K('
    ').appendTo(t.div);_IE&&7>_V?t.iframeMask=K('').appendTo(t.div):n&&K('
    ').appendTo(t.div);var d=K('
    ');u.append(d),d.html(i),t.closeIcon=K('').click(s.click),d.append(t.closeIcon),t.draggable({clickEl:d,beforeDrag:e.beforeDrag});var f=K('
    ');u.append(f),f.append(o);var p=K('');if((r||a||l)&&u.append(p),_each([{btn:r,name:"preview"},{btn:a,name:"yes"},{btn:l,name:"no"}],function(){if(this.btn){var e=_createButton(this.btn);e.addClass("ke-dialog-"+this.name),p.append(e)}}),t.height&&f.height(_removeUnit(t.height)-d.height()-p.height()),t.div.width(t.div.width()),t.div.height(t.div.height()),t.mask=null,c){var h=_docElement(t.doc),g=Math.max(h.scrollWidth,h.clientWidth),m=Math.max(h.scrollHeight,h.clientHeight);t.mask=_widget({x:0,y:0,z:t.z-1,cls:"ke-dialog-mask",width:g,height:m})}t.autoPos(t.div.width(),t.div.height()),t.footerDiv=p,t.bodyDiv=f,t.headerDiv=d,t.isLoading=!1},setMaskIndex:function(e){this.mask.div.css("z-index",e)},showLoading:function(e){e=_undef(e,"");var t=this,n=t.bodyDiv;return t.loading=K('
    '+e+"
    ").width(n.width()).height(n.height()).css("top",t.headerDiv.height()+"px"),n.css("visibility","hidden").after(t.loading),t.isLoading=!0,t},hideLoading:function(){return this.loading&&this.loading.remove(),this.bodyDiv.css("visibility","visible"),this.isLoading=!1,this},remove:function(){var e=this;return e.options.beforeRemove&&e.options.beforeRemove.call(e),e.mask&&e.mask.remove(),e.iframeMask&&e.iframeMask.remove(),e.closeIcon.unbind(),K("input",e.div).unbind(),K("button",e.div).unbind(),e.footerDiv.unbind(),e.bodyDiv.unbind(),e.headerDiv.unbind(),K("iframe",e.div).each(function(){K(this).remove()}),KDialog.parent.remove.call(e),e}}),K.DialogClass=KDialog,K.dialog=_dialog,K.tabs=_tabs,K.loadScript=_loadScript,K.loadStyle=_loadStyle,K.ajax=_ajax;var _plugins={},_language={};KEditor.prototype={lang:function(e){return _lang(e,this.langType)},loadPlugin:function(e,t){var n=this;return _plugins[e]?_isFunction(_plugins[e])?(_plugins[e].call(n,KindEditor),t&&t.call(n),n):(setTimeout(function(){n.loadPlugin(e,t)},100),n):(_plugins[e]="loading",_loadScript(n.pluginsPath+e+"/"+e+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),function(){setTimeout(function(){_plugins[e]&&n.loadPlugin(e,t)},0)}),n)},handler:function(e,t){var n=this;return n._handlers[e]||(n._handlers[e]=[]),_isFunction(t)?(n._handlers[e].push(t),n):(_each(n._handlers[e],function(){t=this.call(n,t)}),t)},clickToolbar:function(e,t){var n=this,i="clickToolbar"+e;return t===undefined?n._handlers[i]?n.handler(i):(n.loadPlugin(e,function(){n.handler(i)}),n):n.handler(i,t)},updateState:function(){var e=this;return _each("justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,subscript,superscript,bold,italic,underline,strikethrough".split(","),function(t,n){e.cmd.state(n)?e.toolbar.select(n):e.toolbar.unselect(n)}),e},addContextmenu:function(e){return this._contextmenus.push(e),this},afterCreate:function(e){return this.handler("afterCreate",e)},beforeRemove:function(e){return this.handler("beforeRemove",e)},beforeGetHtml:function(e){return this.handler("beforeGetHtml",e)},beforeSetHtml:function(e){return this.handler("beforeSetHtml",e)},afterSetHtml:function(e){return this.handler("afterSetHtml",e)},create:function(){var e=this,t=e.fullscreenMode;if(e.isCreated)return e;if(e.srcElement.data("kindeditor"))return e;e.srcElement.data("kindeditor","true"),_docElement().style.overflow=t?"hidden":"";var n=t?_docElement().clientWidth+"px":e.width,i=t?_docElement().clientHeight+"px":e.height;(_IE&&8>_V||_QUIRKS)&&(i=_addUnit(_removeUnit(i)+2));var o=e.container=K(e.layout);t?K(document.body).append(o):e.srcElement.before(o);var r=K(".toolbar",o),a=K(".edit",o),l=e.statusbar=K(".statusbar",o);o.removeClass("container").addClass("ke-container ke-container-"+e.themeType).css("width",n),t?(o.css({position:"absolute",left:0,top:0,"z-index":811211}),_GECKO||(e._scrollPos=_getScrollPos()),window.scrollTo(0,0),K(document.body).css({height:"1px",overflow:"hidden"}),K(document.body.parentNode).css("overflow","hidden"),e._fullscreenExecuted=!0):(e._fullscreenExecuted&&(K(document.body).css({height:"",overflow:""}),K(document.body.parentNode).css("overflow","")),e._scrollPos&&window.scrollTo(e._scrollPos.x,e._scrollPos.y));var s=[];K.each(e.items,function(t,n){"|"==n?s.push(''):"/"==n?s.push('
    '):(s.push(''),s.push(''))});var c=e.toolbar=_toolbar({src:r,html:s.join(""),noDisableItems:e.noDisableItems,click:function(t,n){if(t.stop(),e.menu){var i=e.menu.name;if(e.hideMenu(),i===n)return}e.clickToolbar(n)}}),u=_removeUnit(i)-c.div.height(),d=e.edit=_edit({height:u>0&&_removeUnit(i)>e.minHeight?u:e.minHeight,src:a,srcElement:e.srcElement,designMode:e.designMode,themesPath:e.themesPath,bodyClass:e.bodyClass,cssPath:e.cssPath,cssData:e.cssData,beforeGetHtml:function(t){return _formatHtml(t=_removeBookmarkTag(_removeTempTag(t=e.beforeGetHtml(t))),e.filterMode?e.htmlTags:null,e.urlType,e.wellFormatMode,e.indentChar)},beforeSetHtml:function(t){return t=_formatHtml(t,e.filterMode?e.htmlTags:null,"",!1),e.beforeSetHtml(t)},afterSetHtml:function(){e.edit=d=this,e.afterSetHtml()},afterCreate:function(){if(e.edit=d=this,e.cmd=d.cmd,e._docMousedownFn=function(){e.menu&&e.hideMenu()},K(d.doc,document).mousedown(e._docMousedownFn),_bindContextmenuEvent.call(e),_bindNewlineEvent.call(e),_bindTabEvent.call(e),_bindFocusEvent.call(e),d.afterChange(function(){d.designMode&&(e.updateState(),e.addBookmark(),e.options.afterChange&&e.options.afterChange.call(e))}),d.textarea.keyup(function(t){t.ctrlKey||t.altKey||!_INPUT_KEY_MAP[t.which]||e.options.afterChange&&e.options.afterChange.call(e)}),e.readonlyMode&&e.readonly(),e.isCreated=!0,""===e.initContent&&(e.initContent=e.html()),e._undoStack.length>0){var t=e._undoStack.pop();t.start&&(e.html(t.html),d.cmd.range.moveToBookmark(t),e.select())}e.afterCreate(),e.options.afterCreate&&e.options.afterCreate.call(e)}});return l.removeClass("statusbar").addClass("ke-statusbar").append('').append(''),e._fullscreenResizeHandler&&(K(window).unbind("resize",e._fullscreenResizeHandler),e._fullscreenResizeHandler=null),function t(){return 0===l.height()?void setTimeout(t,100):void e.resize(n,i,!1)}(),t?(e._fullscreenResizeHandler=function(){e.isCreated&&e.resize(_docElement().clientWidth,_docElement().clientHeight,!1)},K(window).bind("resize",e._fullscreenResizeHandler),c.select("fullscreen"),l.first().css("visibility","hidden"),l.last().css("visibility","hidden")):(_GECKO&&K(window).bind("scroll",function(){e._scrollPos=_getScrollPos()}),e.resizeType>0?_drag({moveEl:o,clickEl:l,moveFn:function(t,n,i,o,r,a){o+=a,e.resize(null,o)}}):l.first().css("visibility","hidden"),2===e.resizeType?_drag({moveEl:o,clickEl:l.last(),moveFn:function(t,n,i,o,r,a){i+=r,o+=a,e.resize(i,o)}}):l.last().css("visibility","hidden")),e},remove:function(){var e=this;return e.isCreated?(e.beforeRemove(),e.srcElement.data("kindeditor",""),e.menu&&e.hideMenu(),_each(e.dialogs,function(){e.hideDialog()}),K(document).unbind("mousedown",e._docMousedownFn),e.toolbar.remove(),e.edit.remove(),e.statusbar.last().unbind(),e.statusbar.unbind(),e.container.remove(),e.container=e.toolbar=e.edit=e.menu=null,e.dialogs=[],e.isCreated=!1,e):e},resize:function(e,t,n){var i=this;return n=_undef(n,!0),e&&(/%/.test(e)||(e=(e=_removeUnit(e))/gi,"").replace(/ /gi," ")):this.html(_escape(e))},isEmpty:function(){return""===_trim(this.text().replace(/\r\n|\n|\r/,""))},isDirty:function(){return _trim(this.initContent.replace(/\r\n|\n|\r|t/g,""))!==_trim(this.html().replace(/\r\n|\n|\r|t/g,""))},selectedHtml:function(){var e=this.isCreated?this.cmd.range.html():"";return _removeBookmarkTag(_removeTempTag(e))},count:function(e){return"html"===(e=(e||"html").toLowerCase())?this.html().length:"text"===e?this.text().replace(/<(?:img|embed).*?>/gi,"K").replace(/\r\n|\n|\r/g,"").length:0},exec:function(e){e=e.toLowerCase();var t=this,n=t.cmd,i=_inArray(e,"selectall,copy,paste,print".split(","))<0;return i&&t.addBookmark(!1),n[e].apply(n,_toArray(arguments,1)),i&&(t.updateState(),t.addBookmark(!1),t.options.afterChange&&t.options.afterChange.call(t)),t},insertHtml:function(e,t){return this.isCreated?(e=this.beforeSetHtml(e),this.exec("inserthtml",e,t),this):this},appendHtml:function(e){if(this.html(this.html()+e),this.isCreated){var t=this.cmd;t.range.selectNodeContents(t.doc.body).collapse(!1),t.select()}return this},sync:function(){return _elementVal(this.srcElement,this.html()),this},focus:function(){return this.isCreated?this.edit.focus():this.srcElement[0].focus(),this},blur:function(){return this.isCreated?this.edit.blur():this.srcElement[0].blur(),this},addBookmark:function(e){e=_undef(e,!0);var t,n=this,i=n.edit,o=i.doc.body,r=_removeTempTag(o.innerHTML);if(e&&n._undoStack.length>0){var a=n._undoStack[n._undoStack.length-1];if(Math.abs(r.length-_removeBookmarkTag(a.html).length)0){var n=t.dialogs[0],i=t.dialogs[t.dialogs.length-1];n.setMaskIndex(i.z+2),e.z=i.z+3,e.showMask=!1}var o=_dialog(e);return t.dialogs.push(o),o},hideDialog:function(){var e=this;if(e.dialogs.length>0&&e.dialogs.pop().remove(),e.dialogs.length>0){var t=e.dialogs[0],n=e.dialogs[e.dialogs.length-1];t.setMaskIndex(n.z-1)}return e},errorDialog:function(e){var t=this,n=t.createDialog({width:750,title:t.lang("uploadError"),body:'
    '}),i=K("iframe",n.div),o=K.iframeDoc(i);return o.open(),o.write(e),o.close(),K(o.body).css("background-color","#FFF"),i[0].contentWindow.focus(),t}},_instances=[],K.remove=function(e){_eachEditor(e,function(e){this.remove(),_instances.splice(e,1)})},K.sync=function(e){_eachEditor(e,function(){this.sync()})},K.html=function(e,t){_eachEditor(e,function(){this.html(t)})},K.insertHtml=function(e,t){_eachEditor(e,function(){this.insertHtml(t)})},K.appendHtml=function(e,t){_eachEditor(e,function(){this.appendHtml(t)})},_IE&&7>_V&&_nativeCommand(document,"BackgroundImageCache",!0),K.EditorClass=KEditor,K.editor=_editor,K.create=_create,K.instances=_instances,K.plugin=_plugin,K.lang=_lang,_plugin("core",function(e){var t=this,n={undo:"Z",redo:"Y",bold:"B",italic:"I",underline:"U",print:"P",selectall:"A"};if(t.afterSetHtml(function(){t.options.afterChange&&t.options.afterChange.call(t)}),t.afterCreate(function(){if("form"==t.syncType){for(var n=e(t.srcElement),i=!1;n=n.parent();)if("form"==n.name){i=!0;break}if(i){n.bind("submit",function(){t.sync(),e(window).bind("unload",function(){t.edit.textarea.remove()})});var o=e('[type="reset"]',n);o.click(function(){t.html(t.initContent),t.cmd.selection()}),t.beforeRemove(function(){n.unbind(),o.unbind()})}}}),t.clickToolbar("source",function(){t.edit.designMode?(t.toolbar.disableAll(!0),t.edit.design(!1),t.toolbar.select("source")):(t.toolbar.disableAll(!1),t.edit.design(!0),t.toolbar.unselect("source"),_GECKO?setTimeout(function(){t.cmd.selection()},0):t.cmd.selection()),t.designMode=t.edit.designMode}),t.afterCreate(function(){t.designMode||t.toolbar.disableAll(!0).select("source")}),t.clickToolbar("fullscreen",function(){t.fullscreen()}),t.fullscreenShortcut){var i=!1;t.afterCreate(function(){if(e(t.edit.doc,t.edit.textarea).keyup(function(e){27==e.which&&setTimeout(function(){t.fullscreen()},0)}),i){if(_IE&&!t.designMode)return;t.focus()}i||(i=!0)})}_each("undo,redo".split(","),function(e,i){n[i]&&t.afterCreate(function(){_ctrl(this.edit.doc,n[i],function(){t.clickToolbar(i)})}),t.clickToolbar(i,function(){t[i]()})}),t.clickToolbar("formatblock",function(){var e=t.lang("formatblock.formatBlock"),n={h1:28,h2:24,h3:18,H4:14,p:12},i=t.cmd.val("formatblock"),o=t.createMenu({name:"formatblock",width:"en"==t.langType?200:150});_each(e,function(e,r){var a="font-size:"+n[e]+"px;";"h"===e.charAt(0)&&(a+="font-weight:bold;"),o.addItem({title:''+r+"",height:n[e]+12,checked:i===e||i===r,click:function(){t.select().exec("formatblock","<"+e+">").hideMenu()}})})}),t.clickToolbar("fontname",function(){var e=t.cmd.val("fontname"),n=t.createMenu({name:"fontname",width:150});_each(t.lang("fontname.fontName"),function(i,o){n.addItem({title:''+o+"",checked:e===i.toLowerCase()||e===o.toLowerCase(),click:function(){t.exec("fontname",i).hideMenu()}})})}),t.clickToolbar("fontsize",function(){var e=t.cmd.val("fontsize"),n=t.createMenu({name:"fontsize",width:150});_each(t.fontSizeTable,function(i,o){n.addItem({title:''+o+"",height:_removeUnit(o)+12,checked:e===o,click:function(){t.exec("fontsize",o).hideMenu()}})})}),_each("forecolor,hilitecolor".split(","),function(e,n){t.clickToolbar(n,function(){t.createMenu({name:n,selectedColor:t.cmd.val(n)||"default",colors:t.colorTable,click:function(e){t.exec(n,e).hideMenu()}})})}),_each("cut,copy,paste".split(","),function(e,n){t.clickToolbar(n,function(){t.focus();try{t.exec(n,null)}catch(e){alert(t.lang(n+"Error"))}})}),t.clickToolbar("about",function(){var e='
    KindEditor '+_VERSION+'
    Copyright © kindsoft.net All rights reserved.
    ';t.createDialog({name:"about",width:350,title:t.lang("about"),body:e})}),t.plugin.getSelectedLink=function(){return t.cmd.commonAncestor("a")},t.plugin.getSelectedImage=function(){return _getImageFromRange(t.edit.cmd.range,function(e){return!/^ke-\w+$/i.test(e[0].className)})},t.plugin.getSelectedFlash=function(){return _getImageFromRange(t.edit.cmd.range,function(e){return"ke-flash"==e[0].className})},t.plugin.getSelectedMedia=function(){return _getImageFromRange(t.edit.cmd.range,function(e){return"ke-media"==e[0].className||"ke-rm"==e[0].className})},t.plugin.getSelectedAnchor=function(){return _getImageFromRange(t.edit.cmd.range,function(e){return"ke-anchor"==e[0].className})},_each("link,image,flash,media,anchor".split(","),function(e,n){var i=n.charAt(0).toUpperCase()+n.substr(1);_each("edit,delete".split(","),function(e,o){t.addContextmenu({title:t.lang(o+i),click:function(){t.loadPlugin(n,function(){t.plugin[n][o](),t.hideMenu()})},cond:t.plugin["getSelected"+i],width:150,iconClass:"edit"==o?"ke-icon-"+n:undefined})}),t.addContextmenu({title:"-"})}),t.plugin.getSelectedTable=function(){return t.cmd.commonAncestor("table")},t.plugin.getSelectedRow=function(){return t.cmd.commonAncestor("tr")},t.plugin.getSelectedCell=function(){return t.cmd.commonAncestor("td")},_each("prop,cellprop,colinsertleft,colinsertright,rowinsertabove,rowinsertbelow,rowmerge,colmerge,rowsplit,colsplit,coldelete,rowdelete,insert,delete".split(","),function(e,n){var i=_inArray(n,["prop","delete"])<0?t.plugin.getSelectedCell:t.plugin.getSelectedTable;t.addContextmenu({title:t.lang("table"+n),click:function(){t.loadPlugin("table",function(){t.plugin.table[n](),t.hideMenu()})},cond:i,width:170,iconClass:"ke-icon-table"+n})}),t.addContextmenu({title:"-"}),_each("selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript,hr,print,bold,italic,underline,strikethrough,removeformat,unlink".split(","),function(e,i){n[i]&&t.afterCreate(function(){_ctrl(this.edit.doc,n[i],function(){t.cmd.selection(),t.clickToolbar(i)})}),t.clickToolbar(i,function(){t.focus().exec(i,null)})}),t.afterCreate(function(){var n,i,o,r=t.edit.doc,a="__kindeditor_paste__",l=!1;e(r.body).bind("paste",function(s){if(0!==t.pasteType){if(!l){if(l=!0,e("div."+a,r).remove(),n=t.cmd.selection(),i=n.range.createBookmark(),o=e('
    ',r).css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",left:"-1981px",top:e(i.start).pos().y+"px","white-space":"nowrap"}),e(r.body).append(o),_IE){var c=n.range.get(!0);c.moveToElementText(o[0]),c.select(),c.execCommand("paste"),s.preventDefault()}else n.range.selectNodeContents(o[0]),n.select();setTimeout(function(){(function(){n.range.moveToBookmark(i),n.select(),_WEBKIT&&(e("div."+a,o).each(function(){e(this).after("
    ").remove(!0)}),e("span.Apple-style-span",o).remove(!0),e("span.Apple-tab-span",o).remove(!0),e("span[style]",o).each(function(){"nowrap"==e(this).css("white-space")&&e(this).remove(!0)}),e("meta",o).remove());var r=o[0].innerHTML;o.remove(),""!==r&&(_WEBKIT&&(r=r.replace(/(
    )\1/gi,"$1")),2===t.pasteType&&(r=r.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),/schemas-microsoft-com|worddocument|mso-\w+/i.test(r)?r=_clearMsWord(r,t.filterMode?t.htmlTags:e.options.htmlTags):(r=_formatHtml(r,t.filterMode?t.htmlTags:null),r=t.beforeSetHtml(r))),1===t.pasteType&&(r=(r=(r=(r=(r=(r=r.replace(/ /gi," ")).replace(/\n\s*\n/g,"\n")).replace(/]*>/gi,"\n")).replace(/<\/p>]*>/gi,"\n")).replace(/<[^>]+>/g,"")).replace(/ {2}/g,"  "),"p"==t.newlineTag?/\n/.test(r)&&(r=r.replace(/^/,"

    ").replace(/$/,"

    ").replace(/\n/g,"

    ")):r=r.replace(/\n/g,"
    $&")),t.insertHtml(r,!0))})(),l=!1},0)}}else s.stop()})}),t.beforeGetHtml(function(e){return _IE&&8>=_V&&(e=(e=e.replace(/]*data-ke-input-tag="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,function(e,t){return unescape(t)})).replace(/(]*)?>)/gi,function(e,t,n){return/\s+type="[^"]+"/i.test(e)?e:t+' type="text"'+n})),e.replace(/(<(?:noscript|noscript\s[^>]*)>)([\s\S]*?)(<\/noscript>)/gi,function(e,t,n,i){return t+_unescape(n).replace(/\s+/g," ")+i}).replace(/]*class="?ke-(flash|rm|media)"?[^>]*>/gi,function(e){var t=_getAttrList(e),n=_getCssList(t.style||""),i=_mediaAttrs(t["data-ke-tag"]),o=_undef(n.width,""),r=_undef(n.height,"");return/px/i.test(o)&&(o=_removeUnit(o)),/px/i.test(r)&&(r=_removeUnit(r)),i.width=_undef(t.width,o),i.height=_undef(t.height,r),_mediaEmbed(i)}).replace(/]*class="?ke-anchor"?[^>]*>/gi,function(e){var t=_getAttrList(e);return''}).replace(/]*data-ke-script-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,function(e,t,n){return""+unescape(n)+"<\/script>"}).replace(/]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,function(e,t,n){return""+unescape(n)+""}).replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/gi,function(e,t,n){return(e=e.replace(/(\s+(?:href|src)=")[^"]*(")/i,function(e,t,i){return t+_unescape(n)+i})).replace(/\s+data-ke-src="[^"]*"/i,"")}).replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/gi,function(e,t,n){return t+n})}),t.beforeSetHtml(function(e){return _IE&&8>=_V&&(e=e.replace(/]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/gi,function(e){return"none"==_getCssList(_getAttrList(e).style||"").display?'

    ':e})),e.replace(/]*type="([^"]+)"[^>]*>(?:<\/embed>)?/gi,function(e){var n=_getAttrList(e);return n.src=_undef(n.src,""),n.width=_undef(n.width,0),n.height=_undef(n.height,0),_mediaImg(t.themesPath+"common/blank.gif",n)}).replace(/]*name="([^"]+)"[^>]*>(?:<\/a>)?/gi,function(e){var n=_getAttrList(e);return n.href!==undefined?e:''}).replace(/]*)>([\s\S]*?)<\/script>/gi,function(e,t,n){return'
    '+escape(n)+"
    "}).replace(/]*)>([\s\S]*?)<\/noscript>/gi,function(e,t,n){return'
    '+escape(n)+"
    "}).replace(/(<[^>]*)(href|src)="([^"]*)"([^>]*>)/gi,function(e,t,n,i,o){return e.match(/\sdata-ke-src="[^"]*"/i)?e:e=t+n+'="'+i+'" data-ke-src="'+_escape(i)+'"'+o}).replace(/(<[^>]+\s)(on\w+="[^"]*"[^>]*>)/gi,function(e,t,n){return t+"data-ke-"+n}).replace(/]*\s+border="0"[^>]*>/gi,function(e){return e.indexOf("ke-zeroborder")>=0?e:_addClassToTag(e,"ke-zeroborder")})})})}}(window),KindEditor.lang({source:"HTML代码",preview:"预览",undo:"后退(Ctrl+Z)",redo:"前进(Ctrl+Y)",cut:"剪切(Ctrl+X)",copy:"复制(Ctrl+C)",paste:"粘贴(Ctrl+V)",plainpaste:"粘贴为无格式文本",wordpaste:"从Word粘贴",selectall:"全选(Ctrl+A)",justifyleft:"左对齐",justifycenter:"居中",justifyright:"右对齐",justifyfull:"两端对齐",insertorderedlist:"编号",insertunorderedlist:"项目符号",indent:"增加缩进",outdent:"减少缩进",subscript:"下标",superscript:"上标",formatblock:"段落",fontname:"字体",fontsize:"文字大小",forecolor:"文字颜色",hilitecolor:"文字背景",bold:"粗体(Ctrl+B)",italic:"斜体(Ctrl+I)",underline:"下划线(Ctrl+U)",strikethrough:"删除线",removeformat:"删除格式",image:"图片",multiimage:"批量图片上传",flash:"Flash",media:"视音频",table:"表格",tablecell:"单元格",hr:"插入横线",emoticons:"插入表情",link:"超级链接",unlink:"取消超级链接",fullscreen:"全屏显示",about:"关于",print:"打印(Ctrl+P)",filemanager:"文件空间",code:"插入程序代码",map:"Google地图",baidumap:"百度地图",lineheight:"行距",clearhtml:"清理HTML代码",pagebreak:"插入分页符",quickformat:"一键排版",insertfile:"插入文件",template:"插入模板",anchor:"锚点",yes:"确定",no:"取消",close:"关闭",editImage:"图片属性",deleteImage:"删除图片",editFlash:"Flash属性",deleteFlash:"删除Flash",editMedia:"视音频属性",deleteMedia:"删除视音频",editLink:"超级链接属性",deleteLink:"取消超级链接",editAnchor:"锚点属性",deleteAnchor:"删除锚点",tableprop:"表格属性",tablecellprop:"单元格属性",tableinsert:"插入表格",tabledelete:"删除表格",tablecolinsertleft:"左侧插入列",tablecolinsertright:"右侧插入列",tablerowinsertabove:"上方插入行",tablerowinsertbelow:"下方插入行",tablerowmerge:"向下合并单元格",tablecolmerge:"向右合并单元格",tablerowsplit:"拆分行",tablecolsplit:"拆分列",tablecoldelete:"删除列",tablerowdelete:"删除行",noColor:"无颜色",pleaseSelectFile:"请选择文件。",invalidImg:"请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",invalidMedia:"请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",invalidWidth:"宽度必须为数字。",invalidHeight:"高度必须为数字。",invalidBorder:"边框必须为数字。",invalidUrl:"请输入有效的URL地址。",invalidRows:"行数为必选项,只允许输入大于0的数字。",invalidCols:"列数为必选项,只允许输入大于0的数字。",invalidPadding:"边距必须为数字。",invalidSpacing:"间距必须为数字。",invalidJson:"服务器发生故障。",uploadSuccess:"上传成功。",cutError:"您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。",copyError:"您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。",pasteError:"您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。",ajaxLoading:"加载中,请稍候 ...",uploadLoading:"上传中,请稍候 ...",uploadError:"上传错误","plainpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","wordpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","code.pleaseInput":"请输入程序代码。","link.url":"URL","link.linkType":"打开类型","link.newWindow":"新窗口","link.selfWindow":"当前窗口","flash.url":"URL","flash.width":"宽度","flash.height":"高度","flash.upload":"上传","flash.viewServer":"文件空间","media.url":"URL","media.width":"宽度","media.height":"高度","media.autostart":"自动播放","media.upload":"上传","media.viewServer":"文件空间","image.remoteImage":"网络图片","image.localImage":"本地上传","image.remoteUrl":"图片地址","image.localUrl":"上传文件","image.size":"图片大小","image.width":"宽","image.height":"高","image.resetSize":"重置大小","image.align":"对齐方式","image.defaultAlign":"默认方式","image.leftAlign":"左对齐","image.rightAlign":"右对齐","image.imgTitle":"图片说明","image.upload":"浏览...","image.viewServer":"图片空间","multiimage.uploadDesc":"允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>","multiimage.startUpload":"开始上传","multiimage.clearAll":"全部清空","multiimage.insertAll":"全部插入","multiimage.queueLimitExceeded":"文件数量超过限制。","multiimage.fileExceedsSizeLimit":"文件大小超过限制。","multiimage.zeroByteFile":"无法上传空文件。","multiimage.invalidFiletype":"文件类型不正确。","multiimage.unknownError":"发生异常,无法上传。","multiimage.pending":"等待上传","multiimage.uploadError":"上传失败","filemanager.emptyFolder":"空文件夹","filemanager.moveup":"移到上一级文件夹","filemanager.viewType":"显示方式:","filemanager.viewImage":"缩略图","filemanager.listImage":"详细信息","filemanager.orderType":"排序方式:","filemanager.fileName":"名称","filemanager.fileSize":"大小","filemanager.fileType":"类型","insertfile.url":"URL","insertfile.title":"文件说明","insertfile.upload":"上传","insertfile.viewServer":"文件空间","table.cells":"单元格数","table.rows":"行数","table.cols":"列数","table.size":"大小","table.width":"宽度","table.height":"高度","table.percent":"%","table.px":"px","table.space":"边距间距","table.padding":"边距","table.spacing":"间距","table.align":"对齐方式","table.textAlign":"水平对齐","table.verticalAlign":"垂直对齐","table.alignDefault":"默认","table.alignLeft":"左对齐","table.alignCenter":"居中","table.alignRight":"右对齐","table.alignTop":"顶部","table.alignMiddle":"中部","table.alignBottom":"底部","table.alignBaseline":"基线","table.border":"边框","table.borderWidth":"边框","table.borderColor":"颜色","table.backgroundColor":"背景颜色","map.address":"地址: ","map.search":"搜索","baidumap.address":"地址: ","baidumap.search":"搜索","baidumap.insertDynamicMap":"插入动态地图","anchor.name":"锚点名称","formatblock.formatBlock":{h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",p:"正 文"},"fontname.fontName":{SimSun:"宋体",NSimSun:"新宋体",FangSong_GB2312:"仿宋_GB2312",KaiTi_GB2312:"楷体_GB2312",SimHei:"黑体","Microsoft YaHei":"微软雅黑",Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"},"lineheight.lineHeight":[{1:"单倍行距"},{1.5:"1.5倍行距"},{2:"2倍行距"},{2.5:"2.5倍行距"},{3:"3倍行距"}],"template.selectTemplate":"可选模板","template.replaceContent":"替换当前内容","template.fileList":{"1.html":"图片和文字","2.html":"表格","3.html":"项目编号"}},"zh-CN"),KindEditor.options.langType="zh-CN",KindEditor.plugin("anchor",function(e){var t=this,n="anchor",i=t.lang(n+".");t.plugin.anchor={edit:function(){var o=['
    ','
    ','",'',"
    ","
    "].join(""),r=t.createDialog({name:n,width:300,title:t.lang(n),body:o,yesBtn:{name:t.lang("yes"),click:function(){t.insertHtml('').hideDialog().focus()}}}).div,a=e('input[name="name"]',r),l=t.plugin.getSelectedAnchor();l&&a.val(unescape(l.attr("data-ke-name"))),a[0].focus(),a[0].select()},delete:function(){t.plugin.getSelectedAnchor().remove()}},t.clickToolbar(n,t.plugin.anchor.edit)}),KindEditor.plugin("autoheight",function(e){function t(){var t=o.edit,n=t.doc.body;t.iframe.height(i),o.resize(null,Math.max((e.IE?n.scrollHeight:n.offsetHeight)+76,i))}function n(){i=e.removeUnit(o.height),o.edit.afterChange(t),function(){var e=o.edit,t=e.doc.body;e.iframe[0].scroll="no",t.style.overflowY="hidden"}(),t()}var i,o=this;o.autoHeightMode&&(o.isCreated?n():o.afterCreate(n))}),KindEditor.plugin("baidumap",function(e){var t=this,n="baidumap",i=t.lang(n+"."),o=e.undef(t.mapWidth,558),r=e.undef(t.mapHeight,360);t.clickToolbar(n,function(){function a(){l=g[0].contentWindow,s=e.iframeDoc(g)}var l,s,c=['
    ','
    ','
    ',i.address+' ','','',"","
    ",'
    ',' ","
    ",'
    ',"
    ",'
    ',"
    "].join(""),u=t.createDialog({name:n,width:o+42,title:t.lang(n),body:c,yesBtn:{name:t.lang("yes"),click:function(){var e=l.map,n=e.getCenter(),i=n.lng+","+n.lat,a=e.getZoom(),s=[h[0].checked?t.pluginsPath+"baidumap/index.html":"http://api.map.baidu.com/staticimage","?center="+encodeURIComponent(i),"&zoom="+encodeURIComponent(a),"&width="+o,"&height="+r,"&markers="+encodeURIComponent(i),"&markerStyles="+encodeURIComponent("l,A")].join("");h[0].checked?t.insertHtml(''):t.exec("insertimage",s),t.hideDialog().focus()}},beforeRemove:function(){p.remove(),s&&s.write(""),g.remove()}}),d=u.div,f=e('[name="address"]',d),p=e('[name="searchBtn"]',d),h=e('[name="insertDynamicMap"]',u.div),g=e('');g.bind("load",function(){g.unbind("load"),e.IE?a():setTimeout(a,0)}),e(".ke-map",d).replaceWith(g),p.click(function(){l.search(f.val())})})}),KindEditor.plugin("map",function(e){var t=this,n="map",i=t.lang(n+".");t.clickToolbar(n,function(){function o(){r=d[0].contentWindow,a=e.iframeDoc(d)}var r,a,l=['
    ','
    ',i.address+' ','','',"","
    ",'
    ',"
    "].join(""),s=t.createDialog({name:n,width:600,title:t.lang(n),body:l,yesBtn:{name:t.lang("yes"),click:function(){var e=(r.geocoder,r.map),n=e.getCenter().lat()+","+e.getCenter().lng(),i=e.getZoom(),o=e.getMapTypeId(),a="http://maps.googleapis.com/maps/api/staticmap";a+="?center="+encodeURIComponent(n),a+="&zoom="+encodeURIComponent(i),a+="&size=558x360",a+="&maptype="+encodeURIComponent(o),a+="&markers="+encodeURIComponent(n),a+="&language="+t.langType,a+="&sensor=false",t.exec("insertimage",a).hideDialog().focus()}},beforeRemove:function(){u.remove(),a&&a.write(""),d.remove()}}).div,c=e('[name="address"]',s),u=e('[name="searchBtn"]',s),d=(["",'',"",'