index-legacy.DL-XDQfP.js 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*!
  2. Build based on gin-vue-admin
  3. Time : 1757946830000 */
  4. !function(){function e(t){var n="function"==typeof Map?new Map:void 0;return e=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return function(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&a(o,n.prototype),o}(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)},e(t)}function t(e,t,o){return t=r(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n(e)}(e,i()?Reflect.construct(t,o||[],r(e).constructor):t.apply(e,o))}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,m(i.key),i)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);u=!0);}catch(e){s=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=y(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}function g(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function y(e){return y="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},y(e)}System.register(["./index-legacy.C7yqTvSr.js"],function(i,r){"use strict";var a,s,f,m,v,_,b,D,A,x,w,C,E,k,F,S,B,T,O,R,M,N,I,L,P,j,V,z,H,U,W,G,$,Q,Y,q,K,X,J,Z,ee,te,ne,ie,re,oe,ae,le,ue;return{setters:[function(e){a=e.X,s=e.O,f=e.r,m=e.c_,v=e.U,_=e.ct,b=e.P,D=e.cu,A=e.t,x=e.f,w=e.g,C=e.a,E=e.ab,k=e.bT,F=e.Q,S=e.S,B=e.T,T=e.aw,O=e.V,R=e.q,M=e.W,N=e.cG,I=e.ag,L=e.c,P=e.o,j=e.b,V=e.cw,z=e.al,H=e.E,U=e.v,W=e.Y,G=e.i,$=e.w,Q=e.d,Y=e.n,q=e.ac,K=e.C,X=e.F,J=e.I,Z=e.h,ee=e.ay,te=e.L,ne=e.a0,ie=e.bY,re=e.cx,oe=e.cd,ae=e.m,le=e.bL,ue=e.a1}],execute:function(){
  5. /*!
  6. * @form-create/element-ui v3.2.30
  7. * (c) 2018-2025 xaboy
  8. * Github https://github.com/xaboy/form-create
  9. * Released under the MIT License.
  10. */
  11. function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e){return ce="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},ce(e)}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(e){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fe(e)}function pe(e,t){return pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pe(e,t)}function he(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=fe(e);if(t){var r=fe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return he(this,n)}}function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(u){l=!0,r=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||_e(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e){return function(e){if(Array.isArray(e))return ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_e(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){if(e){if("string"==typeof e)return ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function be(e,t){return Object.keys(e).reduce(function(n,i){return t&&-1!==t.indexOf(i)||(n[i]=e[i]),n},{})}function De(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}var Ae=b({name:"fcCheckbox",inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:Array,default:function(){return[]}},type:String,options:Array,input:Boolean,inputValue:String},emits:["update:modelValue","fc.el"],setup:function(e,t){var n=m(e.formCreateInject,"options",[]),i=m(e,"options"),r=m(e,"modelValue"),o=m(e,"inputValue",""),a=C(o.value),l=m(e,"input",!1),u=function(e){var t=ve(De(r.value)),n=t.indexOf(a.value);a.value=e,n>-1&&(t.splice(n,1),t.push(e),d(t))};v(o,function(e){l.value?u(e):a.value=e});var c=s(function(){var e=n.value||[];return i.value&&(e=i.value||[]),Array.isArray(e)?e:[]});v(r,function(e){var t=null;if(!o.value&&null!=e&&Array.isArray(e)&&e.length>0&&l.value){var n=c.value.map(function(e){return e.value});e.forEach(function(e){-1===n.indexOf(e)&&(t=e)})}null!=t&&(a.value=t)},{immediate:!0});var d=function(e){t.emit("update:modelValue",e)};return{options:c,value:r,onInput:d,updateCustomValue:u,makeInput:function(e){if(l.value)return x(e,{value:a.value||void 0,label:a.value||void 0},{default:function(){return[x(w("ElInput"),{size:"small",modelValue:a.value,"onUpdate:modelValue":u},null)]}})}}},render:function(){var e,t,n=this,i="button"===this.type?"ElCheckboxButton":"ElCheckbox",r=w(i);return x(w("ElCheckboxGroup"),V(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":this.onInput,ref:"el"}),se({default:function(){return[n.options.map(function(e,t){var n=se({},e),o=n.value,a=n.label;return delete n.value,delete n.label,x(r,V(n,{label:o,value:o,key:i+t+"-"+o}),{default:function(){return[a||o||""]}})}),null===(e=(t=n.$slots).default)||void 0===e?void 0:e.call(t),n.makeInput(r)]}},be(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function xe(e){e=e||new Map;var t={$on:function(t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])},$once:function(e,n){n._once=!0,t.$on(e,n)},$off:function(t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},$emit:function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];(e.get(n)||[]).slice().map(function(e){e._once&&(t.$off(n,e),delete e._once),e.apply(void 0,r)}),(e.get("*")||[]).slice().map(function(e){e(n,r)})}};return t}function we(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}we("._fc-frame ._fc-files img{display:inline-block;height:100%;vertical-align:top;width:100%}._fc-frame ._fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame._fc-disabled ._fc-upload-btn,._fc-frame._fc-disabled .el-button{color:#999;cursor:not-allowed!important}._fc-frame ._fc-upload-cover{background:rgba(0,0,0,.6);bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame ._fc-upload-cover i{color:#fff;cursor:pointer;font-size:20px;margin:0 2px}._fc-frame ._fc-files:hover ._fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame ._fc-upload-icon{cursor:pointer}._fc-files,._fc-frame ._fc-upload-btn{background:#fff;border:1px solid #c0ccda;border-radius:4px;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:58px;line-height:58px;margin-right:4px;overflow:hidden;position:relative;text-align:center;width:58px}");var Ce={name:"IconCircleClose"},Ee={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ke=[j("path",{fill:"currentColor",d:"M466.752 512l-90.496-90.496a32 32 0 0145.248-45.248L512 466.752l90.496-90.496a32 32 0 1145.248 45.248L557.248 512l90.496 90.496a32 32 0 11-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 01-45.248-45.248L466.752 512z"},null,-1),j("path",{fill:"currentColor",d:"M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"},null,-1)];Ce.render=function(e,t,n,i,r,o){return P(),L("svg",Ee,ke)};var Fe={name:"IconDocument"},Se={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Be=[j("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 01-32 32H160a32 32 0 01-32-32V96a32 32 0 0132-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1)];Fe.render=function(e,t,n,i,r,o){return P(),L("svg",Se,Be)};var Te={name:"IconDelete"},Oe={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Re=[j("path",{fill:"currentColor",d:"M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"},null,-1)];Te.render=function(e,t,n,i,r,o){return P(),L("svg",Oe,Re)};var Me={name:"IconView"},Ne={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ie=[j("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 110 448 224 224 0 010-448zm0 64a160.192 160.192 0 00-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1)];Me.render=function(e,t,n,i,r,o){return P(),L("svg",Ne,Ie)};var Le={name:"IconFolderOpened"},Pe={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},je=[j("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 01216.96 384H832zm-24.96 512H96a32 32 0 01-32-32V160a32 32 0 0132-32h287.872l128.384 128H864a32 32 0 0132 32v96h23.04a32 32 0 0131.04 39.744l-112 448A32 32 0 01807.04 896z"},null,-1)];Le.render=function(e,t,n,i,r,o){return P(),L("svg",Pe,je)};var Ve=b({name:"fcFrame",props:{type:{type:String,default:"input"},field:String,helper:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},src:{type:String,required:!0},icon:{type:String,default:"IconFolderOpened"},width:{type:String,default:"500px"},height:{type:String,default:"370px"},maxLength:{type:Number,default:0},okBtnText:{type:String,default:""},closeBtnText:{type:String,default:""},modalTitle:String,handleIcon:{type:[String,Boolean],default:void 0},title:String,allowRemove:{type:Boolean,default:!0},onOpen:{type:Function,default:function(){}},onOk:{type:Function,default:function(){}},onCancel:{type:Function,default:function(){}},onLoad:{type:Function,default:function(){}},onBeforeRemove:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},onHandle:Function,modal:{type:Object,default:function(){return{}}},srcKey:[String,Number],modelValue:[Array,String,Number,Object],previewMask:void 0,footer:{type:Boolean,default:!0},reload:{type:Boolean,default:!0},closeBtn:{type:Boolean,default:!0},okBtn:{type:Boolean,default:!0},formCreateInject:Object},emits:["update:modelValue","change"],components:{IconFolderOpened:Le,IconView:Me},data:function(){return{fileList:De(this.modelValue),previewVisible:!1,frameVisible:!1,previewImage:"",bus:new xe}},watch:{modelValue:function(e){this.fileList=De(e)}},methods:{close:function(){this.closeModel(!0)},closeModel:function(e){this.bus.$emit(e?"$close":"$ok"),this.reload&&(this.bus.$off("$ok"),this.bus.$off("$close")),this.frameVisible=!1},handleCancel:function(){this.previewVisible=!1},showModel:function(){this.disabled||!1===this.onOpen()||(this.frameVisible=!0)},input:function(){var e=this.fileList,t=1===this.maxLength?e[0]||"":e;this.$emit("update:modelValue",t),this.$emit("change",t)},makeInput:function(){var e=this;return x(w("ElInput"),V({type:"text",modelValue:this.fileList.map(function(t){return e.getSrc(t)}).toString(),readonly:!0},{key:1}),{append:function(){return x(w("ElButton"),{icon:w(e.icon),onClick:function(){return e.showModel()}},null)},suffix:function(){return e.fileList.length&&!e.disabled?x(w("ElIcon"),{class:"el-input__icon _fc-upload-icon",onClick:function(){e.fileList=[],e.input()}},{default:function(){return[x(Ce,null,null)]}}):null}})},makeGroup:function(e){return(!this.maxLength||this.fileList.length<this.maxLength)&&e.push(this.makeBtn()),x("div",{key:2},[e])},makeItem:function(e,t){return x("div",{class:"_fc-files",key:"3"+e},[t])},valid:function(e){var t=this.formCreateInject.field||this.field;if(t&&e!==t)throw new Error("[frame]无效的字段值")},makeIcons:function(e,t){if(!1!==this.handleIcon||!0===this.allowRemove){var n=[];return("file"!==this.type&&!1!==this.handleIcon||"file"===this.type&&this.handleIcon)&&n.push(this.makeHandleIcon(e,t)),this.allowRemove&&n.push(this.makeRemoveIcon(e,t)),x("div",{class:"_fc-upload-cover",key:4},[n])}},makeHandleIcon:function(e,t){var n=this,i=w(!0===this.handleIcon||void 0===this.handleIcon?"icon-view":this.handleIcon);return x(w("ElIcon"),{onClick:function(){return n.handleClick(e)},key:"5"+t},{default:function(){return[x(i,null,null)]}})},makeRemoveIcon:function(e,t){var n=this;return x(w("ElIcon"),{onClick:function(){return n.handleRemove(e)},key:"6"+t},{default:function(){return[x(Te,null,null)]}})},makeFiles:function(){var e=this;return this.makeGroup(this.fileList.map(function(t,n){return e.makeItem(n,[x(w("ElIcon"),{onClick:function(){return e.handleClick(t)}},{default:function(){return[x(Fe,null,null)]}}),e.makeIcons(t,n)])}))},makeImages:function(){var e=this;return this.makeGroup(this.fileList.map(function(t,n){return e.makeItem(n,[x("img",{src:e.getSrc(t)},null),e.makeIcons(t,n)])}))},makeBtn:function(){var e=this,t=w(this.icon);return x("div",{class:"_fc-upload-btn",onClick:function(){return e.showModel()},key:7},[x(w("ElIcon"),null,{default:function(){return[x(t,null,null)]}})])},handleClick:function(e){if(this.onHandle)return this.onHandle(e);this.previewImage=this.getSrc(e),this.previewVisible=!0},handleRemove:function(e){this.disabled||!1!==this.onBeforeRemove(e)&&(this.fileList.splice(this.fileList.indexOf(e),1),this.input(),this.onRemove(e))},getSrc:function(e){return this.srcKey?e[this.srcKey]:e},frameLoad:function(e){var t=this;this.onLoad(e);try{!0===this.helper&&(e.form_create_helper={api:this.formCreateInject.api,close:function(e){t.valid(e),t.closeModel()},set:function(e,n){t.valid(e),!t.disabled&&t.$emit("update:modelValue",n)},get:function(e){return t.valid(e),t.modelValue},onOk:function(e){return t.bus.$on("$ok",e)},onClose:function(e){return t.bus.$on("$close",e)}})}catch(n){}},makeFooter:function(){var e=this,t=this.$props,n=t.okBtnText,i=t.closeBtnText,r=t.closeBtn,o=t.okBtn;if(t.footer)return x("div",null,[r?x(w("ElButton"),{onClick:function(){return!1!==e.onCancel()&&(e.frameVisible=!1)}},{default:function(){return[i||e.formCreateInject.t("close")||"关闭"]}}):null,o?x(w("ElButton"),{type:"primary",onClick:function(){return!1!==e.onOk()&&e.closeModel()}},{default:function(){return[n||e.formCreateInject.t("ok")||"确定"]}}):null])}},render:function(){var e,t=this,n=this.type;e="input"===n?this.makeInput():"image"===n?this.makeImages():this.makeFiles();var i=this.$props,r=i.width,o=void 0===r?"30%":r,l=i.height,u=i.src,s=i.title,c=i.modalTitle;return a(function(){t.$refs.frame&&t.frameLoad(t.$refs.frame.contentWindow||{})}),x("div",{class:{"_fc-frame":!0,"_fc-disabled":this.disabled}},[e,x(w("ElDialog"),{appendToBody:!0,modal:this.previewMask,title:c,modelValue:this.previewVisible,onClose:this.handleCancel},{default:function(){return[x("img",{style:"width: 100%",src:t.previewImage},null)]}}),x(w("ElDialog"),V({appendToBody:!0},se({width:o,title:s},this.modal),{modelValue:this.frameVisible,onClose:function(){return t.closeModel(!0)}}),{default:function(){return[t.frameVisible||!t.reload?x("iframe",{ref:"frame",src:u,frameBorder:"0",style:{height:l,border:"0 none",width:"100%"}},null):null]},footer:function(){return t.makeFooter()}})])},beforeMount:function(){var e=this.formCreateInject,t=e.name,n=e.field,i=e.api;t&&i.on("fc:closeModal:"+t,this.close),n&&i.on("fc:closeModal:"+n,this.close)},beforeUnmount:function(){var e=this.formCreateInject,t=e.name,n=e.field,i=e.api;t&&i.off("fc:closeModal:"+t,this.close),n&&i.off("fc:closeModal:"+n,this.close)}}),ze=b({name:"fcRadio",inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:[String,Number,Boolean],default:""},options:Array,type:String,input:Boolean,inputValue:String},emits:["update:modelValue","fc.el"],setup:function(e,t){var n=m(e.formCreateInject,"options",[]),i=m(e,"options"),r=m(e,"modelValue"),o=m(e,"inputValue",""),a=C(o.value),l=m(e,"input",!1);v(o,function(e){l.value?d(e):a.value=e});var u=s(function(){var e=n.value||[];return i.value&&(e=i.value||[]),Array.isArray(e)?e:[]});v(r,function(e){var t=!1;!o.value&&null!=e&&l.value&&(t=-1===u.value.map(function(e){return e.value}).indexOf(e)),t&&(a.value=e)},{immediate:!0});var c=function(e){t.emit("update:modelValue",e)},d=function(e){var t=a.value;a.value=e,r.value===t&&c(e)};return{options:u,value:r,onInput:c,updateCustomValue:d,customValue:a,makeInput:function(e){if(l.value)return x(e,{checked:!1,value:a.value||void 0,label:a.value||void 0},{default:function(){return[x(w("ElInput"),{size:"small",modelValue:a.value,"onUpdate:modelValue":d},null)]}})}}},render:function(){var e,t,n=this,i="button"===this.type?"ElRadioButton":"ElRadio",r=w(i);return x(w("ElRadioGroup"),V(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":this.onInput,ref:"el"}),se({default:function(){return[n.options.map(function(e,t){var n=se({},e),o=n.value,a=n.label;return delete n.value,delete n.label,x(r,V(n,{label:o,value:o,key:i+t+"-"+o}),{default:function(){return[a||o||""]}})}),null===(e=(t=n.$slots).default)||void 0===e?void 0:e.call(t),n.makeInput(r)]}},be(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),He={type:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef:function(e){return null==e},Element:function(e){return"object"===ce(e)&&null!==e&&1===e.nodeType&&!He.Object(e)},trueArray:function(e){return Array.isArray(e)&&e.length>0},Function:function(e){var t=this.getType(e);return"Function"===t||"AsyncFunction"===t},getType:function(e){var t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty:function(e){return null==e||(!(!Array.isArray(e)||!Array.isArray(e)||e.length)||"string"==typeof e&&!e)}};function Ue(e,t){return{}.hasOwnProperty.call(e,t)}["Date","Object","String","Boolean","Array","Number"].forEach(function(e){He[e]=function(t){return He.type(t,e)}});var We=b({name:"fcSelect",inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},type:String},emits:["update:modelValue","fc.el"],setup:function(e){var t=m(e.formCreateInject,"options",[]);return{options:function(){return Array.isArray(t.value)?t.value:[]},value:m(e,"modelValue")}},render:function(){var e,t,n=this,i=function(e,t){return x(w("ElOption"),V(e,{key:t+"-"+e.value}),null)},r=this.options();return x(w("ElSelect"),V(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(e){return n.$emit("update:modelValue",e)},ref:"el"}),se({default:function(){return[r.map(function(e,t){return Ue(e||"","options")?function(e,t){return x(w("ElOptionGroup"),{label:e.label,key:t+"-"+e.label},{default:function(){return[He.trueArray(e.options)&&e.options.map(function(e,t){return i(e,t)})]}})}(e,t):i(e,t)}),null===(e=(t=n.$slots).default)||void 0===e?void 0:e.call(t)]}},be(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),Ge=b({name:"fcTree",inheritAttrs:!1,formCreateParser:{mergeProp:function(e){var t=e.prop.props;t.nodeKey||(t.nodeKey="id"),t.props||(t.props={label:"title"})}},props:{type:String,modelValue:{type:[Array,String,Number],default:function(){return[]}}},emits:["update:modelValue","fc.el"],watch:{modelValue:function(){this.setValue()}},methods:{updateValue:function(){var e;this.$refs.tree&&(e="selected"===this.type?this.$refs.tree.getCurrentKey():this.$refs.tree.getCheckedKeys(),this.$emit("update:modelValue",e))},setValue:function(){this.$refs.tree&&("selected"===this.type?this.$refs.tree.setCurrentKey(this.modelValue):this.$refs.tree.setCheckedKeys(De(this.modelValue)))}},render:function(){return x(w("ElTree"),V(this.$attrs,{ref:"tree",onCheck:this.updateValue,onNodeClick:this.updateValue}),this.$slots)},mounted:function(){this.setValue(),this.$emit("fc.el",this.$refs.tree)}});we("._fc-upload{width:100%}._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}");var $e={name:"IconUpload"},Qe={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ye=[j("path",{fill:"currentColor",d:"M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1)];function qe(e,t){return"object"===ce(e)?e:{url:e,is_string:!0,name:Xe(e),uid:t}}function Ke(e){return se(se({},e),{},{file:e,value:e})}function Xe(e){return(""+e).split("/").pop()}$e.render=function(e,t,n,i,r,o){return P(),L("svg",Qe,Ye)};var Je=b({name:"fcUpload",inheritAttrs:!1,formCreateParser:{toFormValue:function(e){return De(e)},toValue:function(e,t){return 1===t.prop.props.limit?e[0]||"":e}},props:{previewMask:void 0,onPreview:Function,httpRequest:Function,modalTitle:String,listType:String,uploadText:String,formCreateInject:Object,modelValue:[Array,String,Object]},emits:["update:modelValue","change","remove","fc.el"],data:function(){return{previewVisible:!1,previewImage:"",fileList:[]}},created:function(){this.fileList=De(this.modelValue).map(qe).map(Ke)},watch:{modelValue:function(e){this.fileList=De(e).map(qe).map(Ke)}},methods:{handlePreview:function(e){this.onPreview?this.onPreview.apply(this,arguments):"text"===this.listType?window.open(e.url):(this.previewImage=e.url,this.previewVisible=!0)},update:function(e){var t=e.map(function(e){return e.is_string?e.url:e.value||e.url}).filter(function(e){return void 0!==e});this.$emit("update:modelValue",t)},handleCancel:function(){this.previewVisible=!1},handleChange:function(e,t){this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),"success"===e.status&&this.update(t)},handleRemove:function(e,t){this.$emit.apply(this,["remove"].concat(Array.prototype.slice.call(arguments))),this.update(t)},doHttpRequest:function(e){if(this.httpRequest)return this.httpRequest(e);e.source="upload",this.formCreateInject.api.fetch(e)}},render:function(){var e,t,n=this,i=De(this.modelValue).length;return x("div",{class:"_fc-upload"},[x(w("ElUpload"),V({key:i},this.$attrs,{listType:this.listType||"picture-card",class:{"_fc-exceed":!!this.$attrs.limit&&this.$attrs.limit<=i},onPreview:this.handlePreview,onChange:this.handleChange,onRemove:this.handleRemove,httpRequest:this.doHttpRequest,fileList:this.fileList,ref:"upload"}),se({default:function(){return[(null===(e=(t=n.$slots).default)||void 0===e?void 0:e.call(t))||(-1===["text","picture"].indexOf(n.listType)?x(w("ElIcon"),null,{default:function(){return[x($e,null,null)]}}):x(w("ElButton"),{type:"primary"},{default:function(){return[n.formCreateInject.t("clickToUpload")||n.uploadText||"点击上传"]}}))]}},be(this.$slots,["default"]))),x(w("ElDialog"),{appendToBody:!0,modal:this.previewMask,title:this.modalTitle,modelValue:this.previewVisible,onClose:this.handleCancel},{default:function(){return[x("img",{style:"width: 100%",src:n.previewImage},null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.upload)}});function Ze(e,t,n){e[t]=n}function et(e,t){delete e[t]}function tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=!1;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r];if((i=Array.isArray(o))||He.Object(o)){var a=void 0===e[r];if(i)i=!1,a&&Ze(e,r,[]);else if(o._clone&&void 0!==n){if(!n){Ze(e,r,o._clone());continue}o=o.getRule(),a&&Ze(e,r,{})}else a&&Ze(e,r,{});e[r]=tt(e[r],o,n)}else Ze(e,r,o),He.Undef(o)||(He.Undef(o.__json)||(e[r].__json=o.__json),He.Undef(o.__origin)||(e[r].__origin=o.__origin))}return void 0!==n&&Array.isArray(e)?e.filter(function(e){return!e||!e.__ctrl}):e}function nt(e){return tt({},{value:e}).value}var it=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&Ze(e,i,t[i]);return e};function rt(){return it.apply(this,arguments)}function ot(e){return"object"!==ce(e)||null===e?e:e instanceof Array?ve(e):se({},e)}we('._fc-group{display:flex;flex-direction:column;justify-content:center;min-height:38px;width:100%}._fc-group-disabled ._fc-group-add,._fc-group-disabled ._fc-group-btn{cursor:not-allowed}._fc-group-handle{background-color:#fff;border:1px dashed #d9d9d9;border-radius:15px;bottom:-15px;display:flex;flex-direction:row;padding:3px 8px;position:absolute;right:30px}._fc-group-btn{cursor:pointer}._fc-group-idx{align-items:center;background:#eee;border-radius:15px;bottom:-15px;display:flex;font-weight:700;height:30px;justify-content:center;left:10px;position:absolute;width:30px}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{border:1px dashed #d9d9d9;border-radius:5px;display:flex;flex-direction:column;margin:5px 5px 25px;padding:20px 20px 25px;position:relative}._fc-group-arrow{height:20px;position:relative;width:20px}._fc-group-arrow:before{border-left:2px solid #999;border-top:2px solid #999;content:"";height:9px;left:5px;position:absolute;top:8px;transform:rotate(45deg);width:9px}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{cursor:pointer;height:20px;position:relative;width:20px}._fc-group-plus-minus:after,._fc-group-plus-minus:before{background-color:#409eff;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{border:1px solid rgba(64,158,255,.5);border-radius:15px;cursor:pointer;height:25px;width:25px}._fc-group-add._fc-group-plus-minus:after,._fc-group-add._fc-group-plus-minus:before{width:50%}');var at=b({name:"fcGroup",props:{field:String,rule:Array,expand:Number,options:Object,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},modelValue:{type:Array,default:function(){return[]}},defaultValue:Object,sortBtn:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},onBeforeRemove:{type:Function,default:function(){}},onBeforeAdd:{type:Function,default:function(){}},formCreateInject:Object,parse:Function},data:function(){return{len:0,cacheRule:{},cacheValue:{},sort:[],form:D(this.formCreateInject.form.$form())}},emits:["update:modelValue","change","itemMounted","remove","add"],watch:{rule:{handler:function(e,t){var n=this;Object.keys(this.cacheRule).forEach(function(i){var r=n.cacheRule[i];if(r.$f){var o=r.$f.formData();if(e===t)r.$f.deferSyncValue(function(){tt(r.rule,e),r.$f.setValue(o)},!0);else{var a=r.$f.formData();r.$f.once("reloading",function(){r.$f.setValue(a)}),r.rule=nt(e)}}})},deep:!0},expand:function(e){var t=e-this.modelValue.length;t>0&&this.expandRule(t)},modelValue:{handler:function(e){var t=this;e=e||[];var n=this.sort,i=n.length,r=i-e.length;if(r<0){for(var o=r;o<0;o++)this.addRule(e.length+o,!0);for(var a=0;a<i;a++)this.setValue(n[a],e[a])}else{if(r>0)for(var l=0;l<r;l++)this.removeRule(n[i-l-1]);e.forEach(function(i,r){t.setValue(n[r],e[r])})}},deep:!0}},methods:{_value:function(e){return e&&Ue(e,this.field)?e[this.field]:e},cache:function(e,t){this.cacheValue[e]=JSON.stringify(t)},input:function(e){this.$emit("update:modelValue",e),this.$emit("change",e)},formData:function(e,t){var n=this,i=this.cacheRule,r=this.sort;if(r.filter(function(e){return i[e]&&i[e].$f}).length===r.length){var o=r.map(function(i){var r=e===i?t:se({},n.cacheRule[i].$f.form),o=n.field?r[n.field]||null:r;return n.cache(i,o),o});this.input(o)}},setValue:function(e,t){var n=this.field;n&&(t=de({},n,this._value(t))),this.cacheValue[e]!==JSON.stringify(n?t[n]:t)&&(this.cacheRule[e].$f&&this.cacheRule[e].$f.coverValue(t),this.cache(e,t))},addRule:function(e,t){var n=this,i=this.formCreateInject.form.copyRules(this.rule||[]),r=this.options?se({},this.options):{submitBtn:!1,resetBtn:!1};if(this.defaultValue){r.formData||(r.formData={});var o=nt(this.defaultValue);rt(r.formData,this.field?de({},this.field,o):o)}this.parse&&this.parse({rule:i,options:r,index:this.sort.length}),this.cacheRule[++this.len]={rule:i,options:r},this.sort=Object.keys(this.cacheRule),t&&a(function(){return n.$emit("add",i,Object.keys(n.cacheRule).length-1)})},add$f:function(e,t,n){var i=this;this.cacheRule[t].$f=n,a(function(){i.$emit("itemMounted",n,Object.keys(i.cacheRule).indexOf(t))})},removeRule:function(e,t){var n=this,i=Object.keys(this.cacheRule).indexOf(e);delete this.cacheRule[e],delete this.cacheValue[e],this.sort=Object.keys(this.cacheRule),t&&a(function(){return n.$emit("remove",i)})},add:function(e){if(!this.disabled&&!1!==this.onBeforeAdd(this.modelValue)){var t=ve(this.modelValue);t.push(this.defaultValue?nt(this.defaultValue):this.field?null:{}),this.input(t)}},del:function(e,t){if(!this.disabled&&!1!==this.onBeforeRemove(this.modelValue,e)){this.removeRule(t,!0);var n=ve(this.modelValue);n.splice(e,1),this.input(n)}},addIcon:function(e){return x("div",{class:"_fc-group-btn _fc-group-plus-minus",onClick:this.add},null)},delIcon:function(e,t){var n=this;return x("div",{class:"_fc-group-btn _fc-group-plus-minus _fc-group-minus",onClick:function(){return n.del(e,t)}},null)},sortUpIcon:function(e){var t=this;return x("div",{class:"_fc-group-btn _fc-group-arrow _fc-group-up",onClick:function(){return t.changeSort(e,-1)}},null)},sortDownIcon:function(e){var t=this;return x("div",{class:"_fc-group-btn _fc-group-arrow _fc-group-down",onClick:function(){return t.changeSort(e,1)}},null)},changeSort:function(e,t){var n=this,i=this.sort[e];this.sort[e]=this.sort[e+t],this.sort[e+t]=i,this.formCreateInject.subForm(this.sort.map(function(e){return n.cacheRule[e].$f})),this.formData(0)},makeIcon:function(e,t,n){var i=this;if(this.$slots.button)return this.$slots.button({total:e,index:t,vm:this,key:n,del:function(){return i.del(t,n)},add:this.add});var r=[];return(!this.max||e<this.max)&&e===t+1&&r.push(this.addIcon(n)),e>this.min&&r.push(this.delIcon(t,n)),this.sortBtn&&t&&r.push(this.sortUpIcon(t)),this.sortBtn&&t!==e-1&&r.push(this.sortDownIcon(t)),r},emitEvent:function(e,t,n,i){this.$emit.apply(this,[e].concat(ve(t),[this.cacheRule[i].$f,n]))},expandRule:function(e){for(var t=0;t<e;t++)this.addRule(t)}},created:function(){for(var e=(this.expand||0)-this.modelValue.length,t=0;t<this.modelValue.length;t++)this.addRule(t);e>0&&this.expandRule(e)},render:function(){var e=this,t=this.sort,n=this.button,i=this.form,r=this.disabled,o=0===t.length?this.$slots.default?this.$slots.default({vm:this,add:this.add}):x("div",{key:"a_def",class:"_fc-group-plus-minus _fc-group-add fc-clock",onClick:this.add},null):t.map(function(o,a){var l=e.cacheRule[o],u=l.rule,s=l.options,c=n&&!r?e.makeIcon(t.length,a,o):[];return x("div",{class:"_fc-group-container",key:o},[x(i,V({key:o},{disabled:r,"onUpdate:modelValue":function(t){return e.formData(o,t)},"onEmit-event":function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e.emitEvent(t,i,a,o)},"onUpdate:api":function(t){return e.add$f(a,o,t)},inFor:!0,modelValue:e.field?de({},e.field,e._value(e.modelValue[a])):e.modelValue[a],rule:u,option:s,extendOption:!0}),null),x("div",{class:"_fc-group-idx"},[a+1]),c.length?x("div",{class:"_fc-group-handle fc-clock"},[c]):null])});return x("div",{key:"con",class:"_fc-group "+(r?"_fc-group-disabled":"")},[o])}}),lt=b({name:"fcSubForm",props:{rule:Array,options:{type:Object,default:function(){return f({submitBtn:!1,resetBtn:!1})}},modelValue:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},formCreateInject:Object},data:function(){return{cacheValue:{},subApi:{},form:D(this.formCreateInject.form.$form())}},emits:["fc:subform","update:modelValue","change","itemMounted"],watch:{modelValue:function(e){this.setValue(e)}},methods:{formData:function(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue:function(e){var t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))},add$f:function(e){var t=this;this.subApi=e,a(function(){t.$emit("itemMounted",e)})}},render:function(){var e=this.form;return x(e,{disabled:this.disabled,"onUpdate:modelValue":this.formData,modelValue:this.modelValue,"onEmit-event":this.$emit,"onUpdate:api":this.add$f,rule:this.rule,option:this.options,extendOption:!0},null)}}),ut={name:"IconWarning"},st={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ct=[j("path",{fill:"currentColor",d:"M512 64a448 448 0 110 896 448 448 0 010-896zm0 832a384 384 0 000-768 384 384 0 000 768zm48-176a48 48 0 11-96 0 48 48 0 0196 0zm-48-464a32 32 0 0132 32v288a32 32 0 01-64 0V288a32 32 0 0132-32z"},null,-1)];ut.render=function(e,t,n,i,r,o){return P(),L("svg",st,ct)};var dt=[Ae,Ve,ze,We,Ge,Je,at,lt,ut];function ft(e,t){var n=null;return function(){for(var i=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];null!==n&&clearTimeout(n),n=setTimeout(function(){return e.call.apply(e,[i].concat(o))},t)}}function pt(e){var t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return 0===t.indexOf("-")&&(t=t.substr(1)),t}function ht(e){return e.replace(e[0],e[0].toLocaleUpperCase())}var mt=["props"],gt=["class","style","directives"],vt=["on","hook"],_t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[].concat(mt,ve(i.normal||[])),o=[].concat(gt,ve(i.array||[])),a=[].concat(vt,ve(i.functional||[])),l=i.props||[];return t.reduce(function(t,n){for(var i in n)if(t[i])if(l.indexOf(i)>-1)t[i]=e([n[i]],t[i]);else if(r.indexOf(i)>-1)t[i]=se(se({},t[i]),n[i]);else if(o.indexOf(i)>-1){var u=t[i]instanceof Array?t[i]:[t[i]],s=n[i]instanceof Array?n[i]:[n[i]];t[i]=[].concat(ve(u),ve(s))}else if(a.indexOf(i)>-1)for(var c in n[i])if(t[i][c]){var d=t[i][c]instanceof Array?t[i][c]:[t[i][c]],f=n[i][c]instanceof Array?n[i][c]:[n[i][c]];t[i][c]=[].concat(ve(d),ve(f))}else t[i][c]=n[i][c];else if("hook"===i)for(var p in n[i])t[i][p]?t[i][p]=yt(t[i][p],n[i][p]):t[i][p]=n[i][p];else t[i]=n[i];else r.indexOf(i)>-1||a.indexOf(i)>-1||l.indexOf(i)>-1?t[i]=se({},n[i]):o.indexOf(i)>-1?t[i]=n[i]instanceof Array?ve(n[i]):"object"===ce(n[i])?se({},n[i]):n[i]:t[i]=n[i];return t},n)},yt=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},bt=["type","slot","ignore","emitPrefix","value","name","native","hidden","display","inject","options","emit","link","prefix","suffix","update","sync","optionsTo","key","slotUpdate","computed","preview","component","cache","modelEmit"],Dt=["validate","children","control"],At=["effect","deep","renderSlots"];function xt(){return[].concat(bt,ve(mt),ve(gt),ve(vt),Dt,At)}function wt(e){return Ct(e.replace(/(-[a-z])/g,function(e){return e.replace("-","").toLocaleUpperCase()}))}function Ct(e){return e.replace(e[0],e[0].toLowerCase())}var Et="[[FORM-CREATE-PREFIX-",kt="-FORM-CREATE-SUFFIX]]";function Ft(e,t){return JSON.stringify(tt(Array.isArray(e)?[]:{},e,!0),function(e,t){if(!t||!0!==t._isVue){if("function"!=typeof t)return t;if(t.__json)return t.__json;if(t.__origin&&(t=t.__origin),!t.__emit)return Et+t+kt}},t)}function St(e){return new Function("return "+e)()}function Bt(e,t){if(e&&He.String(e)&&e.length>4){var n=e.trim(),i=!1;try{if(n.indexOf(kt)>0&&0===n.indexOf(Et))n=n.replace(kt,"").replace(Et,""),i=!0;else if(0===n.indexOf("$FN:"))n=n.substring(4),i=!0;else if(0===n.indexOf("$EXEC:"))n=n.substring(6),i=!0;else{if(0===n.indexOf("$GLOBAL:")){var r=n.substring(8);return n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0].api.getGlobalEvent(r);if(i)return i.call.apply(i,[this].concat(t))},n.__json=e,n.__inject=!0,n}if(0===n.indexOf("$FNX:"))return(n=St("function($inject){\n"+n.substring(5)+"\n}")).__json=e,n.__inject=!0,n;(t||0!==n.indexOf("function ")||"function "===n)&&(t||0!==n.indexOf("function(")||"function("===n)||(i=!0)}if(!i)return e;var o;try{o=St(n)}catch(a){o=St("function "+n)}return o.__json=e,o}catch(a){return void"解析失败:".concat(n,"\n\nerr: ").concat(a)}}return e}function Tt(e,t){return JSON.parse(e,function(e,n){return He.Undef(n)||!n.indexOf?n:Bt(n,t)})}function Ot(e,t){return{value:e,enumerable:!1,configurable:!1,writable:!0}}function Rt(e,t){return Mt([e],t||!1)[0]}function Mt(e,t){return tt([],ve(e),t||!1)}function Nt(e,t){return _t(Array.isArray(t)?t:[t],e,{array:Dt,normal:At}),e}function It(e){var t=He.Function(e.getRule)?e.getRule():e;return t.type||(t.type="input"),t}function Lt(e,t){Object.defineProperties(e,Object.keys(t).reduce(function(e,n){return e[n]={get:function(){return t[n]()}},e},{}))}function Pt(e){return e.__fc__||(e.__origin__?e.__origin__.__fc__:null)}function jt(e,t){try{t=e()}catch(n){!function(e){e.toString()}(n)}return t}function Vt(){var e={},t=function(e){return e||"default"};return{setSlot:function(n,i){n=t(n),!i||Array.isArray(i)&&i.length||(e[n]||(e[n]=[]),e[n].push(i))},getSlot:function(n,i){n=t(n);var r=[];return(e[n]||[]).forEach(function(e){if(Array.isArray(e))r.push.apply(r,ve(e));else if(He.Function(e)){var t=e.apply(void 0,ve(i||[]));Array.isArray(t)?r.push.apply(r,ve(t)):r.push(t)}else He.Undef(e)||r.push(e)}),r},getSlots:function(){var t=this,n={};return Object.keys(e).forEach(function(e){n[e]=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.getSlot(e,i)}}),n},slotLen:function(n){return n=t(n),e[n]?e[n].length:0},mergeBag:function(e){var t=this;if(!e)return this;var n=He.Function(e.getSlots)?e.getSlots():e;return Array.isArray(e)||_(e)?this.setSlot(void 0,function(){return e}):Object.keys(n).forEach(function(e){t.setSlot(e,n[e])}),this}}}function zt(e){var t=se({},e.props||{});return Object.keys(e.on||{}).forEach(function(n){n.indexOf("-")>0&&(n=wt(n));var i="on".concat(ht(n));Array.isArray(t[i])?t[i]=[].concat(ve(t[i]),[e.on[n]]):t[i]?t[i]=[t[i],e.on[n]]:t[i]=e.on[n]}),t.key=e.key,t.ref=e.ref,t.class=e.class,t.id=e.id,t.style=e.style,t.slot&&delete t.slot,t}function Ht(e,t){return Object.setPrototypeOf(e,t),e}var Ut=function(e,t){return"string"==typeof e?String(t):"number"==typeof e?Number(t):t},Wt={"==":function(e,t){return JSON.stringify(e)===JSON.stringify(Ut(e,t))},"!=":function(e,t){return!Wt["=="](e,t)},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},on:function(e,t){return e&&e.indexOf&&e.indexOf(Ut(e[0],t))>-1},notOn:function(e,t){return!Wt.on(e,t)},in:function(e,t){return t&&t.indexOf&&t.indexOf(e)>-1},notIn:function(e,t){return!Wt.in(e,t)},between:function(e,t){return e>t[0]&&e<t[1]},notBetween:function(e,t){return e<t[0]||e>t[1]},empty:function(e){return He.empty(e)},notEmpty:function(e){return!He.empty(e)},pattern:function(e,t){return new RegExp(t,"g").test(e)}};function Gt(e,t){return(Array.isArray(t)?t:(t||"").split(".")).forEach(function(t){null!=e&&(e=e[t])}),e}function $t(e){var t=e.split("."),n=[],i="";return t.forEach(function(e,t){0===t?i=e:i+="."+e,n.push(i)}),n.join(" && ")}function Qt(e){for(var t=[],n="",i=0,r=0;r<e.length;r++){var o=e[r];"["===o?(0===i&&n&&(t.push({type:"key",value:n}),n=""),i++,n+=o):"]"===o?(n+=o,0===--i&&(t.push({type:"bracket",value:Qt(n.slice(1,-1))}),n="")):"."===o&&0===i?n&&(t.push({type:"key",value:n}),n=""):n+=o}return n&&t.push({type:"key",value:n}),t.map(function(e){return"key"===e.type?{key:e.value}:{children:e.value}})}var Yt=function(e,t){if(e&&e!==t)return e.props.formCreateInject?e.props.formCreateInject:e.parent?Yt(e.parent,t):void 0};function qt(e,t,n){return b({name:"FormCreate"+(e.isMobile?"Mobile":""),components:t,directives:n,props:{rule:{type:Array,required:!0,default:function(){return[]}},option:{type:Object,default:function(){return{}}},extendOption:Boolean,driver:[String,Object],modelValue:Object,disabled:{type:Boolean,default:void 0},preview:{type:Boolean,default:void 0},index:[String,Number],api:Object,locale:[String,Object],t:Function,name:String,subForm:{type:Boolean,default:!0},inFor:Boolean},emits:["update:api","update:modelValue","mounted","submit","reset","change","emit-event","control","remove-rule","remove-field","sync","reload","repeat-field","update","validate-field-fail","validate-fail","created"],render:function(){return this.fc.render()},setup:function(t){var n=A();z("parentFC",n);var i=S("parentFC",null),r=i;if(i)for(;r.setupState.parent;)r=r.setupState.parent;else r=n;var o=B(t),l=o.rule,u=o.modelValue,s=o.subForm,c=o.inFor,d=f({ctxInject:{},destroyed:!1,isShow:!0,unique:1,renderRule:ve(l.value||[]),updateValue:JSON.stringify(u.value||{})}),p=new e(n),h=p.api(),m=c.value,g=null;T(function(){O(function(){var e="",n=t.option&&t.option.globalClass||{};Object.keys(n).forEach(function(t){var i="";n[t].style&&Object.keys(n[t].style).forEach(function(e){i+=pt(e)+":"+n[t].style[e]+";"}),n[t].content&&(i+=n[t].content+";"),i&&(e+=".".concat(t,"{").concat(i,"}"))}),t.option&&t.option.style&&(e+=t.option.style),g||((g=document.createElement("style")).type="text/css",document.head.appendChild(g)),g.innerHTML=e||""})});var _=ft(function(){p.bus.$emit("$loadData.$topForm")},100),y=ft(function(){p.bus.$emit("$loadData.$scopeForm")},100),b=ft(function(){p.bus.$emit("$loadData.$form")},100),x=function(e){p.bus.$emit("change-$form."+e)};return R(function(){i&&(h.top.bus.$on("$loadData.$form",_),h.top.bus.$on("change",x)),h!==h.scope&&h.scope.bus.$on("$loadData.$scopeForm",y),p.mounted()}),M(function(){i&&(h.top.bus.$off("$loadData.$form",_),h.top.bus.$off("change",x)),h!==h.scope&&h.scope.bus.$off("$loadData.$scopeForm",y),function(){var e=Yt(n,i);if(e)if(m){var t=De(e.getSubForm()),r=t.indexOf(h);r>-1&&t.splice(r,1)}else e.subForm()}(),d.destroyed=!0,p.unmount(),g&&(g.parentNode||g.parentElement)&&document.head.removeChild(g)}),N(function(){p.updated()}),function(){if(i){var e,t=Yt(n,i);if(t)m?(e=De(t.getSubForm())).push(h):e=h,t.subForm(e)}}(),v(function(){return t.option},function(){p.initOptions(),h.refresh()},{deep:!0,flush:"sync"}),v(function(){return ve(l.value)},function(e){p.$handle.isBreakWatch()||e.length===d.renderRule.length&&e.every(function(e){return d.renderRule.indexOf(e)>-1})||(p.$handle.updateAppendData(),p.$handle.reloadRule(l.value),n.setupState.renderRule())}),v(function(){return[t.disabled,t.preview]},function(){h.refresh()}),v(u,function(e){Ft(e||{})!==d.updateValue&&(h.config.forceCoverValue?h.coverValue(e||{}):h.setValue(e||{}))},{deep:!0,flush:"post"}),v(function(){return t.index},function(){h.coverValue({}),p.$handle.updateAppendData(),a(function(){a(function(){h.clearValidateState()})})},{flush:"sync"}),se(se({fc:D(p),parent:i?D(i):i,top:D(r),fapi:D(h)},B(d)),{},{getGroupInject:function(){return Yt(n,i)},refresh:function(){++d.unique},renderRule:function(){d.renderRule=ve(l.value||[])},updateValue:function(e){if(!d.destroyed){var t=Ft(e);d.updateValue!==t&&(d.updateValue=t,n.emit("update:modelValue",e),a(function(){b(),i?s.value||y():(_(),y())}))}}})},created:function(){var e=A();e.emit("update:api",e.setupState.fapi),e.setupState.fc.init()}})}function Kt(e,t){return function(n,i,r){var o=new Xt(e,n,i,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{});return t&&(He.Function(t)?t(o):o.props(t)),o}}function Xt(e,t,n,i,r){this._data=rt({props:{},on:{},options:[],children:[],hidden:!1,display:!0,value:void 0},{type:e,title:t,field:n,value:i,props:r||{}}),this.event=this.on}function Jt(e){e.forEach(function(e){Xt.prototype[e]=function(t){return Nt(this._data,de({},e,arguments.length<2?t:de({},t,arguments[1]))),this}})}rt(Xt.prototype,{getRule:function(){return this._data},setProp:function(e,t){return Ze(this._data,e,t),this},modelField:function(e){return this._data.modelField=e,this},_clone:function(){var e=new this.constructor;return e._data=Rt(this._data),e}}),Jt(xt());var Zt=Kt("");function en(e,t,n){var i=Zt("",t);return i._data.type=e,i._data.title=n,i}function tn(){return{create:en,factory:Kt}}function nn(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function rn(e){if("undefined"!=typeof XMLHttpRequest){var t,n=new XMLHttpRequest,i=e.action||"";if(n.upload&&e.onProgress&&n.upload.addEventListener("progress",function(t){t.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(t)}),e.query){var r=new URLSearchParams(e.query).toString();r&&(i.includes("?")?i+="&".concat(r):i+="?".concat(r))}n.onerror=function(t){e.onError(t)},n.onload=function(){if(n.status<200||n.status>=300)return e.onError(function(e,t,n){var i="fail to ".concat(e," ").concat(n.status,"'"),r=new Error(i);return r.status=n.status,r.url=e,r}(i,0,n),nn(n));e.onSuccess(nn(n))},n.open(e.method||"get",i,!0),(e.data||e.file)&&(e.file||"json"!==(e.dataType||"").toLowerCase()?(t=new FormData,Object.keys(e.data||{}).map(function(n){t.append(n,e.data[n])})):(t=JSON.stringify(e.data||{}),n.setRequestHeader("content-type","application/json"))),e.file&&t.append(e.filename,e.file,e.file.name),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var o=e.headers||{};Object.keys(o).forEach(function(e){null!=o[e]&&n.setRequestHeader(e,o[e])}),n.send(t)}}function on(e,t,n){return new Promise(function(i,r){(t||rn)(se(se({},e),{},{onSuccess:function(t){var r=function(e){return e},o=Bt(e.parse);He.Function(o)?r=o:o&&He.String(o)&&(r=function(e){return Gt(e,o)}),i(r(t,e.targetRule,n))},onError:function(e){r(e)}}))})}function an(e){return nt(e)}function ln(e){return null==e?"":"object"===ce(e)?JSON.stringify(e,null,2):String(e)}var un=0;function sn(){var e=370+ ++un;return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now())).toString(36)+e.toString(36)+"c"}function cn(e,t,n){var i,r=e;return(t||"").split(".").forEach(function(e){i&&(r[i]&&"object"==ce(r[i])||(r[i]={}),r=r[i]),i=e}),r[i]=n,r}var dn=1;function fn(e){rt(this,{$handle:e,fc:e.fc,vm:e.vm,$manager:e.$manager,vNode:new e.fc.CreateNode(e),force:!1,tmpInput:null,id:dn++}),Lt(this,{options:function(){return e.options},sort:function(){return e.sort}}),this.initCache(),this.initRender()}!function(e){rt(e.prototype,{initCache:function(){this.clearCacheAll()},clearCache:function(e){e.rule.cache||(this.cache[e.id]?((!0===this.cache[e.id].use||this.cache[e.id].parent)&&this.$handle.refresh(),this.cache[e.id].parent&&this.clearCache(this.cache[e.id].parent),this.cache[e.id]=null):e.parent&&this.clearCache(e.parent))},clearCacheAll:function(){this.cache={}},setCache:function(e,t,n){this.cache[e.id]={vnode:t,use:!1,parent:n,slot:e.rule.slot}},getCache:function(e){var t=this.cache[e.id];if(t)return t.use=!0,t.vnode}})}(fn),function(e){rt(e.prototype,{initRender:function(){this.cacheConfig={}},getTypeSlot:function(e){return function t(n){if(n){var i=void 0;return e.rule.field&&(i=n.slots["field-"+pt(e.rule.field)]||n.slots["field-"+e.rule.field]),i||(i=n.slots["type-"+pt(e.type)]||n.slots["type-"+e.type]),i||t(n.setupState.parent)}}(this.vm)},render:function(){var e=this;if(this.vm.setupState.isShow){this.$manager.beforeRender();var t=Vt();return this.sort.forEach(function(n){e.renderSlot(t,e.$handle.ctxs[n])}),this.$manager.render(t)}},renderSlot:function(e,t,n){if(this.isFragment(t)){t.initProp(),this.mergeGlobal(t),t.initNone();var i=this.renderChildren(t.loadChildrenPending(),t),r=i.default;r&&e.setSlot(t.rule.slot,function(){return r()}),delete i.default,e.mergeBag(i)}else e.setSlot(t.rule.slot,this.renderCtx(t,n))},mergeGlobal:function(e){var t=this;this.$handle.options.global&&(this.cacheConfig[e.trueType]||(this.cacheConfig[e.trueType]=s(function(){var n=t.$handle.options.global;return Nt({},[n["*"]||n.default||{},n[e.originType]||n[e.type]||n[e.type]||{}])})),e.prop=Nt({},[this.cacheConfig[e.trueType].value,e.prop]))},setOptions:function(e){var t=e.loadPending({key:"options",origin:e.prop.options,def:[]});e.prop.options=t,e.prop.optionsTo&&t&&cn(e.prop,e.prop.optionsTo,t)},deepSet:function(e){var t=e.rule.deep;t&&Object.keys(t).sort(function(e,t){return e.length<t.length?-1:1}).forEach(function(n){cn(e.prop,n,t[n])})},parseSide:function(e,t){return He.Object(e)?Nt({props:{formCreateInject:t.prop.props.formCreateInject}},e):e},renderSides:function(e,t,n){var i=t[n?"rule":"prop"];return[this.renderRule(this.parseSide(i.prefix,t)),e,this.renderRule(this.parseSide(i.suffix,t))]},renderId:function(e,t){var n=this,i=this.$handle["field"===t?"fieldCtx":"nameCtx"][e];return i?i.map(function(e){return n.renderCtx(e,e.parent)}):void 0},renderCtx:function(e,t){var n=this;try{if("hidden"===e.type)return;var i=e.rule;if(this.force||!this.cache[e.id]||this.cache[e.id].slot!==i.slot){var r;e.initProp(),this.mergeGlobal(e),e.initNone(),this.$manager.tidyRule(e),this.deepSet(e),this.setOptions(e),this.ctxProp(e);var o=e.prop;o.preview=!!(null!=o.preview?o.preview:this.$handle.preview),o.props.formCreateInject=this.injectProp(e);var a=!1!==o.cache,l=o.preview;if(o.hidden)return void this.setCache(e,void 0,t);r=function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];var c={rule:i,prop:o,preview:l,api:n.$handle.api,model:o.model||{},slotValue:u};u.length&&i.slotUpdate&&jt(function(){return i.slotUpdate(c)});var d={},f=e.loadChildrenPending();e.parser.renderChildren?d=e.parser.renderChildren(f,e):!1!==e.parser.loadChildren&&(d=n.renderChildren(f,e)),Object.keys(o.renderSlots||{}).forEach(function(t){d[t]=function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];if(He.Function(o.renderSlots[t]))return jt(function(){var e;return(e=o.renderSlots)[t].apply(e,r)});var l=n.parseSide(o.renderSlots[t],e);return n.renderRule(l)}});var p,h=n.getTypeSlot(e);return h?(c.children=d,p=h(c)):p=l?e.parser.preview(ot(d),e):e.parser.render(ot(d),e),p=n.renderSides(p,e),!e.input&&He.Undef(o.native)||!0===o.native||(n.fc.targetFormDriver("updateWrap",e),p=n.$manager.makeWrap(e,p)),e.none&&(p=Array.isArray(p)?p.map(function(e){return e&&e.__v_isVNode?n.none(e):e}):n.none(p)),a&&n.setCache(e,function(){return n.stable(p)},t),p},this.setCache(e,r,t)}return function(){var t=n.getCache(e);if(t)return t.apply(void 0,arguments);if(!n.cache[e.id]){var i=n.renderCtx(e,e.parent);return i?i():void 0}}}catch(u){return}},none:function(e){if(e)return e.props.class=this.mergeClass(e.props.class,"fc-none"),e},mergeClass:function(e,t){return Array.isArray(e)?(e.push(t),e):e?[e,t]:t},stable:function(e){var t=this;return(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.__v_isVNode&&e.children&&"object"===ce(e.children)&&(e.children.$stable=!0,t.stable(e.children))}),e},getModelField:function(e){return e.prop.modelField||e.parser.modelField||this.fc.modelFields[this.vNode.aliasMap[e.type]]||this.fc.modelFields[e.type]||this.fc.modelFields[e.originType]||"modelValue"},isFragment:function(e){return"fragment"===e.type||"template"===e.type},injectProp:function(e){var t=this,n=this.vm.setupState;n.ctxInject[e.id]||(n.ctxInject[e.id]={api:this.$handle.api,form:this.fc.create,subForm:function(n){t.$handle.addSubForm(e,n)},getSubForm:function(){return t.$handle.subForm[e.id]},slots:function(){return t.vm.setupState.top.slots},getWrap:function(){return t.vm.refs[e.wrapRef]},options:[],children:[],preview:!1,id:e.id,field:e.field,rule:e.rule,input:e.input,t:function(){var e;return(e=t.$handle.api).t.apply(e,arguments)},updateValue:function(n){t.$handle.onUpdateValue(e,n)}});var i=n.ctxInject[e.id];return rt(i,{preview:e.prop.preview,options:e.prop.options,children:e.loadChildrenPending()}),i},ctxProp:function(e){var t=this,n=e.ref,i=e.key,r=e.rule;this.$manager.mergeProp(e),e.parser.mergeProp(e);var o=[{ref:n,key:r.key||"".concat(i,"fc"),slot:void 0,on:{vnodeMounted:function(n){n.el.__rule__=e.rule,t.onMounted(e,n.el)},"fc.updateValue":function(n){t.$handle.onUpdateValue(e,n)},"fc.el":function(t){e.exportEl=t,t&&((t.$el||t).__rule__=e.rule)}}}];if(e.input){var a=this.tmpInput;!0===this.vm.props.disabled&&(e.prop.props.disabled=!0);var l=this.getModelField(e),u={callback:function(n){a&&a(e.field,n,e.rule),t.onInput(e,n)},modelField:l,value:this.$handle.getFormData(e)};o.push({on:se(de({},"update:".concat(l),u.callback),e.prop.modelEmit?de({},e.prop.modelEmit,function(){return t.onEmitInput(e)}):{}),props:de({},l,u.value)}),e.prop.model=u}return _t(o,e.prop),e.prop},onMounted:function(e,t){e.el=this.vm.refs[e.ref]||t,e.parser.mounted(e),this.$handle.effect(e,"mounted"),this.$handle.targetHook(e,"mounted")},onInput:function(e,t){e.prop.modelEmit?this.$handle.onBaseInput(e,t):this.$handle.onInput(e,t)},onEmitInput:function(e){this.$handle.setValue(e,e.parser.toValue(e.modelValue,e),e.modelValue)},renderChildren:function(e,t){var n=this;if(!He.trueArray(e))return{};var i=Vt();return e.map(function(r){if(r)return He.String(r)?i.setSlot(null,r):r.__fc__?n.renderSlot(i,r.__fc__,t):void(r.type&&a(function(){n.$handle.loadChildren(e,t),n.$handle.refresh()}))}),i.getSlots()},defaultRender:function(e,t){var n=e.prop;return n.component?"string"==typeof n.component?this.vNode.make(n.component,n,t):this.vNode.makeComponent(n.component,n,t):this.vNode[e.type]?this.vNode[e.type](n,t):this.vNode[e.originType]?this.vNode[e.originType](n,t):this.vNode.make(Ct(n.type),n,t)},createChildrenVnodes:function(e,t,n){this.force=!1!==n,this.tmpInput=t;var i=this.renderChildren(e.rule.children,e);return this.force=!1,this.tmpInput=null,i},createRuleVnode:function(e,t,n){this.force=!1!==n,this.tmpInput=t;var i=Vt();return this.renderSlot(i,e,e.parent),this.force=!1,this.tmpInput=null,i.getSlots()},renderRule:function(e,t,n){var i=this;if(e){if(He.String(e))return e;var r;if(n)r=e.type;else if(r=e.is,e.type){r=wt(e.type);var o=this.vNode.aliasMap[r];o&&(r=wt(o))}if(r){var a=Vt();He.trueArray(e.children)&&e.children.forEach(function(e){e&&a.setSlot(null==e?void 0:e.slot,function(){return i.renderRule(e)})});var l=se({},e);return delete l.type,delete l.is,this.vNode.make(r,l,a.mergeBag(t).getSlots())}}}})}(fn);var pn=["hook:updated","hook:mounted"];function hn(e,t,n){var i,r=sn(),o=!!t.field;rt(this,{id:r,ref:r,wrapRef:r+"fi",rule:t,origin:t.__origin__||t,name:t.name,pending:{},none:!1,watch:[],linkOn:[],root:[],ctrlRule:[],children:[],parent:null,group:t.subRule?this:null,cacheConfig:null,prop:se({},t),computed:{},payload:{},refRule:{},input:o,el:void 0,exportEl:void 0,defaultValue:o?nt(n):void 0,field:t.field||void 0}),this.updateKey(),i=this,Object.defineProperties(i.origin,{__fc__:Ot(D(i))}),i.rule!==i.origin&&Object.defineProperties(i.rule,{__fc__:Ot(D(i))}),this.update(e,!0)}function mn(e,t){for(var n=0;n<e.ctrlRule.length;n++){var i=e.ctrlRule[n];if(i.children===t)return i}}function gn(e){return!!e.rule.__ctrl}function vn(e,t){return"function"==typeof t?""+t:t}rt(hn.prototype,{getParentGroup:function(){for(var e=this.parent;e;){if(e.group)return e;e=e.parent}},loadChildrenPending:function(){var e=this,t=this.rule.children||[];return Array.isArray(t)?t:this.loadPending({key:"children",origin:t,def:[],onLoad:function(t){e.$handle&&e.$handle.loadChildren(t,e)},onUpdate:function(t,n){e.$handle&&(t===n?e.$handle.loadChildren(t,e):e.$handle.updateChildren(e,t,n))},onReload:function(t){e.$handle?e.$handle.updateChildren(e,[],t):delete e.pending.children}})},loadPending:function(e){var t=this,n=e.key,i=e.origin,r=e.def,o=e.onLoad,a=e.onReload,l=e.onUpdate;if(this.pending[n]&&this.pending[n].origin===i)return this.getPending(n,r);delete this.pending[n];var u=i;if(He.Function(i)){var s=jt(function(){return i({rule:t.rule,api:t.$api,update:function(e){var o=e||r,a=t.getPending(n,r);t.setPending(n,i,o),l&&l(o,a)},reload:function(){var e=t.getPending(n,r);delete t.pending[n],a&&a(e),t.$api&&t.$api.sync(t.rule)}})});s&&He.Function(s.then)?(s.then(function(e){var a=e||r;t.setPending(n,i,a),o&&o(a),t.$api&&t.$api.sync(t.rule)}).catch(function(e){}),u=r,this.setPending(n,i,u)):(u=s||r,this.setPending(n,i,u),o&&o(u))}return u},getPending:function(e,t){return this.pending[e]&&this.pending[e].value||t},setPending:function(e,t,n){this.pending[e]={origin:t,value:f(n)}},effectData:function(e){return this.payload[e]||(this.payload[e]={}),this.payload[e]},clearEffectData:function(e){void 0===e?this.payload={}:delete this.payload[e]},updateKey:function(e){this.key=sn(),e&&this.parent&&this.parent.updateKey(e)},updateType:function(){this.originType=this.rule.type,this.type=wt(this.rule.type),this.trueType=this.$handle.getType(this.originType)},setParser:function(e){this.parser=e,e.init(this)},initProp:function(){var e,t,n=this,i=se({},this.rule);delete i.children,delete i.validate,this.prop=Nt({},[i].concat(ve(Object.keys(this.payload).map(function(e){return n.payload[e]})),[this.computed])),this.prop.validate=[].concat(ve((null===(e=this.refRule)||void 0===e||null===(t=e.__$validate)||void 0===t?void 0:t.value)||[]),ve(this.prop.validate||[]))},initNone:function(){this.none=!(He.Undef(this.prop.display)||this.prop.display)},hasHidden:function(){return!!this.rule.hidden||!!this.parent&&this.parent.hasHidden()},injectValidate:function(){return this.prop.validate},check:function(e){return this.vm===e.vm},unwatch:function(){this.watch.forEach(function(e){return e()}),this.watch=[],this.refRule={}},unlink:function(){this.linkOn.forEach(function(e){return e()}),this.linkOn=[]},link:function(){this.unlink(),this.$handle.appendLink(this)},watchTo:function(){this.$handle.watchCtx(this)},delete:function(){this.unwatch(),this.unlink(),this.rmCtrl(),this.parent&&this.parent.children.splice(this.parent.children.indexOf(this)>>>0,1),rt(this,{deleted:!0,computed:{},parent:null,children:[],cacheConfig:null,none:!1})},rmCtrl:function(){this.ctrlRule.forEach(function(e){return e.__fc__&&e.__fc__.rm()}),this.ctrlRule=[]},rm:function(){var e=this,t=function(){var t=e.root.indexOf(e.origin);t>-1&&(e.root.splice(t,1),e.$handle&&e.$handle.refresh())};this.deleted?t():this.$handle.noWatch(function(){e.$handle.deferSyncValue(function(){e.rmCtrl(),t(),e.$handle.rmCtx(e),rt(e,{root:[]})},e.input)})},update:function(e,t){rt(this,{deleted:!1,$handle:e,$render:e.$render,$api:e.api,vm:e.vm,vNode:e.$render.vNode,updated:!1,cacheValue:this.rule.value}),!t&&this.unwatch(),this.watchTo(),this.link(),this.updateType()}});var _n={init:function(e){},toFormValue:function(e,t){return e},toValue:function(e,t){return e},mounted:function(e){},render:function(e,t){return t.$handle.fc.renderDriver&&t.$handle.fc.renderDriver.defaultRender?t.$handle.fc.renderDriver.defaultRender(t,e):t.$render.defaultRender(t,e)},preview:function(e,t){return t.$handle.fc.renderDriver&&t.$handle.fc.renderDriver.defaultPreview?t.$handle.fc.renderDriver.defaultPreview(t,e):this.render(e,t)},mergeProp:function(e){}},yn=["field","value","vm","template","name","config","control","inject","sync","payload","optionsTo","update","slotUpdate","computed","component","cache"],bn=Symbol("oldValue");function Dn(e){var t=this;Lt(this,{options:function(){return e.options.value||{}},bus:function(){return e.bus},preview:function(){return null!=e.vm.props.preview?e.vm.props.preview:e.vm.setupState.parent&&null!=e.vm.setupState.parent.props.preview?e.vm.setupState.parent.props.preview:e.options.value.preview||!1}}),rt(this,{fc:e,vm:e.vm,watching:!1,loading:!1,reloading:!1,noWatchFn:null,deferSyncFn:null,isMounted:!1,formData:f({}),subRuleData:f({}),subForm:{},form:f({}),appendData:{},ignoreFields:[],providers:{},cycleLoad:null,loadedId:1,nextTick:null,changeStatus:!1,pageEnd:!0,nextReload:function(){t.lifecycle("reload")}}),this.initData(e.rules),this.$manager=new e.manager(this),this.$render=new fn(this),this.api=e.extendApiFn.reduce(function(e,n){var i=jt(function(){return n(e,t)});return i&&i!==e&&rt(e,i),e},function(e){function t(t){return He.Undef(t)?t=e.fields():Array.isArray(t)||(t=[t]),t}function n(t,n,i){He.Undef(t)?t=Object.keys(se(se({},e.fieldCtx),e.nameCtx)):Array.isArray(t)||(t=[t]),t.forEach(function(t){var r=e.fieldCtx[t]||e.nameCtx[t];r&&r.forEach(function(t){Ze(t.rule,n,i),e.$render.clearCache(t)})})}function i(){var t=e.subForm;return Object.keys(t).reduce(function(e,n){var i=t[n];return i?(Array.isArray(i)?e.push.apply(e,ve(i)):e.push(i),e):e},[])}var r={get isScope(){return!1===e.vm.props.subForm},get isPreview(){return e.preview},get config(){return e.options},set config(t){e.fc.options.value=t},get options(){return e.options},set options(t){e.fc.options.value=t},get form(){return e.form},get rule(){return e.rules},get parent(){return e.vm.setupState.parent&&e.vm.setupState.parent.setupState.fapi},get top(){return r.parent?r.parent.top:r},get scope(){for(var t=e.vm;t&&t.setupState.fapi;){if(!t.props.subForm)return t.setupState.fapi;t=t.setupState.parent}return r.top},get children(){return i()},get siblings(){var t=e.vm.setupState.getGroupInject();if(t){var n=t.getSubForm();if(Array.isArray(n))return ve(n)}},get index(){var e=r.siblings;if(e){var t=e.indexOf(r);return t>-1?t:void 0}},get formulas(){return se({},e.fc.formulas)},formData:function(n){if(null==n||"boolean"==typeof n){var i={};return Object.keys(e.form).forEach(function(t){!0!==n&&-1!==e.ignoreFields.indexOf(t)||(i[t]=an(e.form[t]))}),i}return t(n).reduce(function(e,t){return e[t]=r.getValue(t),e},{})},getValue:function(t){var n=e.getFieldCtx(t);return n?an(n.rule.value):!1!==e.options.appendValue&&Ue(e.appendData,t)?an(e.appendData[t]):void 0},coverValue:function(t){var n=se({},t||{});e.deferSyncValue(function(){e.appendData={},r.fields().forEach(function(i){var r=e.fieldCtx[i];if(r){var o=Ue(t,i);r.forEach(function(e){e.rule.value=o?t[i]:void 0}),delete n[i]}}),rt(e.appendData,n)},!0)},setValue:function(t){var n=t;arguments.length>=2&&(n=de({},t,arguments[1])),e.deferSyncValue(function(){Object.keys(n).forEach(function(t){var i=e.fieldCtx[t];if(!i)return e.appendData[t]=n[t];i.forEach(function(e){e.rule.value=n[t]})})},!0)},removeField:function(t){var n=e.getCtx(t);return e.deferSyncValue(function(){e.getCtxs(t).forEach(function(e){e.rm()})},!0),n?n.origin:void 0},removeRule:function(e){var t=e&&Pt(e);if(t)return t.rm(),t.origin},fields:function(){return e.fields()},append:function(t,n,i){var r,o=e.sort.length-1,a=e.getCtx(n);if(a)if(i){if(r=a.getPending("children",a.rule.children),!Array.isArray(r))return;o=a.rule.children.length-1}else o=a.root.indexOf(a.origin),r=a.root;else r=e.rules;r.splice(o+1,0,t)},prepend:function(t,n,i){var r,o=0,a=e.getCtx(n);if(a)if(i){if(r=a.getPending("children",a.rule.children),!Array.isArray(r))return}else o=a.root.indexOf(a.origin),r=a.root;else r=e.rules;r.splice(o,0,t)},hidden:function(t,i){n(i,"hidden",!!t),e.refresh()},hiddenStatus:function(t){var n=e.getCtx(t);if(n)return!!n.rule.hidden},display:function(t,i){n(i,"display",!!t),e.refresh()},displayStatus:function(t){var n=e.getCtx(t);if(n)return!!n.rule.display},disabled:function(n,i){t(i).forEach(function(t){e.getCtxs(t).forEach(function(e){Ze(e.rule.props,"disabled",!!n)})}),e.refresh()},all:function(t){return Object.keys(e.ctxs).map(function(n){var i=e.ctxs[n];return t?i.origin:i.rule})},model:function(t){return e.fields().reduce(function(n,i){var r=e.fieldCtx[i][0];return n[i]=t?r.origin:r.rule,n},{})},component:function(t){return Object.keys(e.nameCtx).reduce(function(n,i){var r=e.nameCtx[i].map(function(e){return t?e.origin:e.rule});return n[i]=1===r.length?r[0]:r,n},{})},bind:function(){return r.form},reload:function(t){e.reloadRule(t)},updateOptions:function(t){e.fc.updateOptions(t),r.refresh()},onSubmit:function(e){r.updateOptions({onSubmit:e})},sync:function(t){if(Array.isArray(t))t.forEach(function(e){return r.sync(e)});else{var n=He.Object(t)?Pt(t):e.getCtxs(t);n&&((n=Array.isArray(n)?n:[n]).forEach(function(t){if(!t.deleted){var n=e.subForm[t.id];n&&(Array.isArray(n)?n.forEach(function(e){e.refresh()}):n&&n.refresh()),e.$render.clearCache(t)}}),e.refresh())}},refresh:function(){i().forEach(function(e){e.refresh()}),e.$render.clearCacheAll(),e.refresh()},refreshOptions:function(){e.$manager.updateOptions(e.options),r.refresh()},hideForm:function(t){e.vm.setupState.isShow=!t},changeStatus:function(){return e.changeStatus},clearChangeStatus:function(){e.changeStatus=!1},updateRule:function(t,n){e.getCtxs(t).forEach(function(e){rt(e.rule,n)})},updateRules:function(e){Object.keys(e).forEach(function(t){r.updateRule(t,e[t])})},mergeRule:function(t,n){e.getCtxs(t).forEach(function(e){Nt(e.rule,n)})},mergeRules:function(e){Object.keys(e).forEach(function(t){r.mergeRule(t,e[t])})},getRule:function(t,n){var i=e.getCtx(t);if(i)return n?i.origin:i.rule},findType:function(t,n){var i=void 0;return Object.keys(e.ctxs).forEach(function(r){var o=e.ctxs[r];o.rule.type===t&&(i=n?o.origin:o.rule)}),i},findTypes:function(t,n){var i=[];return Object.keys(e.ctxs).forEach(function(r){var o=e.ctxs[r];o.rule.type===t&&i.push(n?o.origin:o.rule)}),i},getRenderRule:function(t){var n=e.getCtx(t);if(n)return n.prop},getRefRule:function(t){var n=e.getCtxs(t);if(n){var i=n.map(function(e){return e.rule});return 1===i.length?i[0]:i}},setEffect:function(t,n,i){var r=e.getCtx(t);r&&n&&("$"===n[0]&&(n=n.substr(1)),Ue(r.rule,"$"+n)&&Ze(r.rule,"$"+n,i),Ue(r.rule,"effect")||(r.rule.effect={}),Ze(r.rule.effect,n,i))},clearEffectData:function(t,n){var i=e.getCtx(t);i&&(n&&"$"===n[0]&&(n=n.substr(1)),i.clearEffectData(n),r.sync(t))},updateValidate:function(e,t,i){i?r.mergeRule(e,{validate:t}):n(e,"validate",t)},updateValidates:function(e,t){Object.keys(e).forEach(function(n){r.updateValidate(n,e[n],t)})},refreshValidate:function(){r.refresh()},resetFields:function(n){t(n).forEach(function(t){e.getCtxs(t).forEach(function(t){e.$render.clearCache(t),t.rule.value=an(t.defaultValue)})}),a(function(){a(function(){a(function(){r.clearValidateState(n)})})}),null==n&&(He.Function(e.options.onReset)&&jt(function(){return e.options.onReset(r)}),e.vm.emit("reset",r))},method:function(e,t){var n,i,o=r.el(e);if(!o||!o[t])throw new Error((n="err",i="".concat(t," 方法不存在"),"[form-create ".concat(n,"]: ").concat(i)+""));return function(){return o[t].apply(o,arguments)}},exec:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return jt(function(){return r.method(e,t).apply(void 0,i)})},toJson:function(e){return Ft(r.rule,e)},trigger:function(e,t){for(var n=r.el(e),i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n&&n.$emit.apply(n,[t].concat(o))},el:function(t){var n=e.getCtx(t);if(n)return n.el||e.vm.refs[n.ref]},closeModal:function(t){e.bus.$emit("fc:closeModal:"+t)},getSubForm:function(t){var n=e.getCtx(t);return n?e.subForm[n.id]:void 0},getChildrenRuleList:function(t){var n="object"===ce(t),i=n?Pt(t):e.getCtx(t),o=i?i.rule:n?t:r.getRule(t);if(!o)return[];var a,l=[];return(a=i?i.loadChildrenPending():o.children)&&a.forEach(function(e){"object"===ce(e)&&(e.field&&l.push(e),l.push.apply(l,ve(r.getChildrenRuleList(e))))}),l},getParentRule:function(t){return("object"===ce(t)?Pt(t):e.getCtx(t)).parent.rule},getParentSubRule:function(t){var n="object"===ce(t)?Pt(t):e.getCtx(t);if(n){var i=n.getParentGroup();if(i)return i.rule}},getChildrenFormData:function(e,t){return r.getChildrenRuleList(e).reduce(function(e,n){return!0===n.ignore&&!0!==t||(e[n.field]=an(n.value)),e},{})},setChildrenFormData:function(t,n,i){var o=r.getChildrenRuleList(t);e.deferSyncValue(function(){o.forEach(function(e){Ue(n,e.field)?e.value=n[e.field]:i&&(e.value=void 0)})})},getGlobalEvent:function(e){var t=r.options.globalEvent[e];if(t)return"object"===ce(t)&&(t=t.handle),Bt(t)},getGlobalData:function(t){return new Promise(function(n,i){var o=r.options.globalData[t];o?"fetch"===o.type?r.fetch(o).then(function(e){n(e)}).catch(i):n(o.data):n(e.fc.loadData[t])})},setGlobalData:function(e,t){r.setData("$globalData."+e,t)},setGlobalVar:function(e,t){r.setData("$var."+e,t)},renderRule:function(t,n,i){var r="object"===ce(t)?Pt(t):e.getCtx(t);return r?e.$render.createRuleVnode(r,n,i):void 0},renderChildren:function(t,n,i){var r="object"===ce(t)?Pt(t):e.getCtx(t);return r?e.$render.createChildrenVnodes(r,n,i):void 0},nextTick:function(t){e.bus.$once("next-tick",t),e.refresh()},nextRefresh:function(t){e.nextRefresh(),t&&jt(t)},deferSyncValue:function(t,n){e.deferSyncValue(t,n)},emit:function(t){for(var n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];(n=e.vm).emit.apply(n,[t].concat(r))},bus:e.bus,getCurrentFormRule:function(){var t;return null===(t=e.vm.setupState.getGroupInject())||void 0===t?void 0:t.rule},fetch:function(t){return new Promise(function(n,i){t=nt(t),t=e.loadFetchVar(t),e.beforeFetch(t).then(function(){return on(t,e.fc.create.fetch,r).then(function(e){jt(function(){return t.onSuccess&&t.onSuccess(e)}),n(e)}).catch(function(e){jt(function(){return t.onError&&t.onError(e)}),i(e)})}).catch(function(e){})})},watchFetch:function(t,n,i,o){return e.fc.watchLoadData(function(a,l){var u=nt(t);u=e.loadFetchVar(u,a),o&&!1===o(u,l)||e.beforeFetch(u).then(function(){return on(u,e.fc.create.fetch,r).then(function(e){jt(function(){return u.onSuccess&&u.onSuccess(e)}),n&&n(e,l)}).catch(function(e){jt(function(){return u.onError&&u.onError(e)}),i&&i(e)})}).catch(function(e){})},null==t.wait?1e3:t.wait)},getData:function(t,n){return e.fc.get?e.fc.get(t,n):e.fc.getLoadData(t,n)},watchData:function(t){return e.fc.watchLoadData(function(e,n){jt(function(){return t(e,n)})})},setData:function(t,n,i){return e.fc.setData(t,n,i)},refreshData:function(t){return e.fc.refreshData(t)},t:function(t,n){return e.fc.t(t,n)},getLocale:function(){return e.fc.getLocale()},helper:{tidyFields:t,props:n}};return["on","once","off"].forEach(function(t){r[t]=function(){var n;(n=e.bus)["$".concat(t)].apply(n,arguments)}}),r.changeValue=r.changeField=r.setValue,r}(this))}rt(Dn.prototype,{initData:function(e){rt(this,{ctxs:{},fieldCtx:{},nameCtx:{},sort:[],rules:e})},init:function(){this.updateAppendData(),this.useProvider(),this.usePage(),this.loadRule(),this.$manager.__init(),this.lifecycle("created")},updateAppendData:function(){this.appendData=se(se(se({},this.options.formData||{}),this.fc.vm.props.modelValue||{}),this.appendData)},isBreakWatch:function(){return this.loading||this.noWatchFn||this.reloading},globalBeforeFetch:function(e){var t=this;return new Promise(function(n,i){var r=t.options.beforeFetch&&jt(function(){return t.options.beforeFetch(e,{api:t.api})});r&&He.Function(r.then)?r.then(n).catch(i):n()})},beforeFetch:function(e){var t=this;return new Promise(function(n,i){var r=e&&e.beforeFetch&&jt(function(){return e.beforeFetch(e,{api:t.api})});r&&He.Function(r.then)?r.then(n).catch(i):!1===r?i():n()}).then(function(){return t.globalBeforeFetch(e)})},beforeSubmit:function(e){var t=this;return new Promise(function(n,i){var r=t.options.beforeSubmit&&jt(function(){return t.options.beforeSubmit(e,{api:t.api})});r&&He.Function(r.then)?r.then(n).catch(i):!1===r?i():n()})}}),function(e){rt(e.prototype,{parseInjectEvent:function(e,t){var n=e.inject||this.options.injectEvent;return this.parseEventLst(e,t,n)},parseEventLst:function(e,t,n,i){var r=this;return Object.keys(t).forEach(function(o){var a=r.parseEvent(e,t[o],n,i);a&&(t[o]=a)}),t},parseEvent:function(e,t,n,i){if(He.Function(t)&&(!1!==n&&!He.Undef(n)||t.__inject))return this.inject(e,t,n);if(!i&&Array.isArray(t)&&t[0]&&(He.String(t[0])||He.Function(t[0])))return this.parseEventLst(e,t,n,!0);if(He.String(t)){var r=Bt(t);if(r&&t!==r)return r.__inject?this.parseEvent(e,r,n,!0):r}},parseEmit:function(e){var t=this,n={},i=e.rule,r=i.emitPrefix,o=i.field,a=i.name,l=i.inject,u=i.emit||[];return He.trueArray(u)&&u.forEach(function(e){if(e){var u,s=r||o||a;if(He.Object(e)&&(u=e.inject,s=(e=e.name).prefix||s),s){var c=pt("".concat(s,"-").concat(e)),d=function(){var e,n,i;t.vm.emitsOptions&&(t.vm.emitsOptions[c]=null);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];(e=t.vm).emit.apply(e,[c].concat(o)),(n=t.vm).emit.apply(n,["emit-event",c].concat(o)),(i=t.bus).$emit.apply(i,[c].concat(o))};if(d.__emit=!0,u||!1!==l){var f=u||l||t.options.injectEvent;n[e]=He.Undef(f)?d:t.inject(i,d,f)}else n[e]=d}}}),e.computed.on=n,n},getInjectData:function(e,t){var n=e.__fc__&&e.__fc__.$api,i=(e.__fc__&&e.__fc__.$handle.vm||this.vm).props,r=i.option,o=i.rule;return{$f:n||this.api,api:n||this.api,rule:o,self:e.__origin__,option:r,inject:t}},inject:function(e,t,n){if(t.__origin){if(this.watching&&!this.loading)return t;t=t.__origin}var i=this,r=function(){for(var r=i.getInjectData(e,n),o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return r.args=[].concat(a),a.unshift(r),t.apply(this,a)};return r.__origin=t,r.__json=t.__json,r},loadStrVar:function(e,t,n){var i=this;if(e&&"string"==typeof e&&e.indexOf("{{")>-1&&e.indexOf("}}")>-1){var r,o=e,a=function(e){for(var t,n=/{{\s*(.*?)\s*}}/g,i={};null!==(t=n.exec(e));)t[1]&&(i[t[1]]=!0);return Object.keys(i)}(e),l=function e(r){var o=[];r.forEach(function(t){t.key?o.push(t.key):t.children&&o.push(e(t.children))});var a=!1;return o.forEach(function(e,t){null==e||0!==e.indexOf("'")&&0!==e.indexOf('"')||(o[t]=e.slice(1,-1),a=!0)}),1!==o.length||!a&&isNaN(Number(o[0]))?function(e){var r,o=!1;if(n&&0===e.indexOf("$form.")){var a=e.split(".");a.shift(),Ue(n.value,a[0])&&(o=!0,r=t?t({id:"$form."+a[0]+"_"+n.rule.__fc__.id,getValue:function(){return Gt(n.value,a)}}):Gt(n.value,a))}return o||(r=t?t(e):i.fc.getLoadData(e)),r}(o.join(".")):o[0]};if(a.forEach(function(t){var n=t.split("||"),i=n[0].trim();if(i){var o=(n[1]||"").trim(),a=Qt(i),u=jt(function(){return l(a)});(null==u||""===u)&&n.length>1&&(u=o),r=u,e=e.replaceAll("{{".concat(t,"}}"),null==u?"":u)}}),1===a.length&&o==="{{".concat(a[0],"}}"))return r}return e},loadFetchVar:function(e,t,n){var i,r=this;n&&n.__fc__&&(i=n.__fc__.getParentGroup());var o=function(e){return r.loadStrVar(e,t,i?{rule:n,value:r.subRuleData[i.id]||{}}:null)};return e.action=o(e.action||""),["headers","data","query"].forEach(function(t){if(e[t]){var n={};Object.keys(e[t]).forEach(function(i){n[o(i)]=o(e[t][i])}),e[t]=n}}),e}})}(Dn),function(e){rt(e.prototype,{usePage:function(){var e=this,t=this.options.page;if(t){var n,i=25,r=(n=this.rules).length<31?31:Math.ceil(n.length/3);He.Object(t)&&(t.first&&(i=parseInt(t.first,10)||i),t.limit&&(r=parseInt(t.limit,10)||r)),rt(this,{first:i,limit:r,pageEnd:this.rules.length<=i}),this.bus.$on("page-end",function(){return e.vm.emit("page-end",e.api)}),this.pageLoad()}},pageLoad:function(){var e=this;this.bus.$on(pn,function t(){e.pageEnd?(e.bus.$off(pn,t),e.bus.$emit("page-end")):(e.first+=e.limit,e.pageEnd=e.rules.length<=e.first,e.loadRule(),e.refresh())})}})}(Dn),function(e){rt(e.prototype,{clearNextTick:function(){this.nextTick&&clearTimeout(this.nextTick),this.nextTick=null},bindNextTick:function(e){var t=this;this.clearNextTick(),this.nextTick=setTimeout(function(){e(),t.nextTick=null},10)},render:function(){return++this.loadedId,this.vm.setupState.unique>0?this.$render.render():(this.vm.setupState.unique=1,[])}})}(Dn),function(e){rt(e.prototype,{nextRefresh:function(e){var t=this,n=this.loadedId;a(function(){n===t.loadedId&&(e?e():t.refresh())})},parseRule:function(e){var t=this,n=It(e);return Object.defineProperties(n,{__origin__:Ot(e)}),function(e){var t={props:{},on:{},options:[],children:[],hidden:!1,display:!0,value:void 0};Object.keys(t).forEach(function(n){Ue(e,n)||(e[n]=t[n])})}(n),this.appendValue(n),[n,n.prefix,n.suffix].forEach(function(e){e&&t.loadFn(e,n)}),this.loadCtrl(n),n.update&&(n.update=Bt(n.update)),n},loadFn:function(e,t){var n=this;["on","props","deep"].forEach(function(i){e[i]&&n.parseInjectEvent(t,e[i])})},loadCtrl:function(e){e.control&&e.control.forEach(function(e){e.handle&&(e.handle=Bt(e.handle))})},syncProp:function(e){var t=this,n=e.rule;He.trueArray(n.sync)&&_t([{on:n.sync.reduce(function(e,i){return e["object"===ce(i)&&i.event||"update:".concat(i)]=function(e){n.props["object"===ce(i)&&i.prop||i]=e,t.vm.emit("sync",i,e,n,t.fapi)},e},{})}],e.computed)},loadRule:function(){var e=this;this.cycleLoad=!1,this.loading=!0,this.pageEnd&&this.bus.$emit("load-start"),this.deferSyncValue(function(){if(e._loadRule(e.rules),e.loading=!1,e.cycleLoad&&e.pageEnd)return e.loadRule();e.syncForm(),e.pageEnd&&e.bus.$emit("load-end"),e.vm.setupState.renderRule()})},loadChildren:function(e,t){if(this.cycleLoad=!1,this.loading=!0,this.bus.$emit("load-start"),this._loadRule(e,t),this.loading=!1,this.cycleLoad)return this.loadRule();this.syncForm(),this.bus.$emit("load-end"),this.$render.clearCache(t)},_loadRule:function(e,t){var n=this,i=function t(i){var r=e[i-1];if(!r||!r.__fc__)return i>0?t(i-1):-1;var o=n.sort.indexOf(r.__fc__.id);return o>-1?o:t(i-1)},r=function(e,t){He.trueArray(e)&&n._loadRule(e,t)},o=e.map(function(o,a){if((!t||He.Object(o))&&(n.pageEnd||t||!(a>=n.first))){if(o.__fc__&&o.__fc__.root===e&&n.ctxs[o.__fc__.id])return r(o.__fc__.loadChildrenPending(),o.__fc__),o.__fc__;var l,u=It(o),s=function(){return!(!u.field||!n.fieldCtx[u.field]||n.fieldCtx[u.field][0]===o.__fc__)};n.fc.targetFormDriver("loadRule",{rule:u,api:n.api},n.fc),n.ruleEffect(u,"init",{repeat:s()}),s()&&n.vm.emit("repeat-field",o,n.api);var c=!1,d=!!o.__fc__,f=u.value;if(d)if(f=(l=o.__fc__).defaultValue,l.deleted){if(gn(l))return;l.update(n)}else if(!l.check(n)){if(gn(l))return;e[a]=o=o._clone?o._clone():Tt(Ft(o)),l=null,c=!0}if(l)l.originType!==l.rule.type&&l.updateType(),n.bindParser(l),n.appendValue(l.rule),l.parent&&l.parent!==t&&n.rmSubRuleData(l);else{var p=n.parseRule(o);l=new hn(n,p,f),n.bindParser(l)}n.parseEmit(l),n.syncProp(l),l.parent=t||null,l.root=e,n.setCtx(l),c||d||(n.effect(l,"load"),n.targetHook(l,"load")),n.effect(l,"created");var h=l.loadChildrenPending();if(!1===l.parser.loadChildren||r(h,l),!t){var m=i(a);m>-1||!a?n.sort.splice(m+1,0,l.id):n.sort.push(l.id)}var g=l.rule;return l.updated||(l.updated=!0,He.Function(g.update)&&n.bus.$once("load-end",function(){n.refreshUpdate(l,g.value,"init")}),n.effect(l,"loaded")),n.refreshControl(l)&&(n.cycleLoad=!0),l}}).filter(function(e){return!!e});t&&(t.children=o)},refreshControl:function(e){return e.input&&e.rule.control&&this.useCtrl(e)},useCtrl:function(e){var t=this,n=function(e){var t=e.rule.control||[];return He.Object(t)?[t]:t}(e),i=[],r=this.api;if(!n.length)return!1;for(var o=function(t){var o=n[t],a=o.handle||function(e){return(Wt[o.condition||"=="]||Wt["=="])(e,o.value)};if(!He.trueArray(o.rule))return"continue";var l=se(se({},o),{},{valid:jt(function(){return a(e.rule.value,r)}),ctrl:mn(e,o.rule),isHidden:He.String(o.rule[0])});if(l.valid&&l.ctrl||!l.valid&&!l.ctrl&&!l.isHidden)return"continue";i.push(l)},l=0;l<n.length;l++)o(l);if(!i.length)return!1;var u=[],s=!1;return this.deferSyncValue(function(){i.reverse().forEach(function(n){var i=n.isHidden,o=n.valid,a=n.rule,l=n.prepend,c=n.append,d=n.child,f=n.ctrl,p=n.method;if(i)return o?e.ctrlRule.push({__ctrl:!0,children:a,valid:o}):f&&e.ctrlRule.splice(e.ctrlRule.indexOf(f)>>>0,1),void u[o?"push":"unshift"](function(){"disabled"===p||"enabled"===p?t.api.disabled(!o,a):"display"===p||"show"===p?t.api.display(o,a):"required"===p?(a.forEach(function(e){t.api.setEffect(e,"required",o)}),o||t.api.clearValidateState(a)):t.api.hidden(!o,a)});if(o){s=!0;var h={type:"fragment",native:!0,__ctrl:!0,children:a};e.ctrlRule.push(h),t.bus.$once("load-start",function(){l?r.prepend(h,l,d):c||d?r.append(h,c||e.id,d):e.root.splice(e.root.indexOf(e.origin)+1,0,h)})}else{e.ctrlRule.splice(e.ctrlRule.indexOf(f),1);var m=Pt(f);m&&m.rm()}})}),u.length&&(this.loading?u.length&&this.bus.$once("load-end",function(){u.forEach(function(e){return e()})}):u.length&&a(function(){u.forEach(function(e){return e()})})),this.vm.emit("control",e.origin,this.api),this.effect(e,"control"),s},reloadRule:function(e){return this._reloadRule(e)},_reloadRule:function(e){var t=this;e||(e=this.rules);var n=se({},this.ctxs);this.clearNextTick(),this.initData(e),this.fc.rules=e,this.deferSyncValue(function(){t.bus.$once("load-end",function(){Object.keys(n).filter(function(e){return void 0===t.ctxs[e]}).forEach(function(e){return t.rmCtx(n[e])}),t.$render.clearCacheAll()}),t.reloading=!0,t.loadRule(),t.reloading=!1,t.refresh(),t.bus.$emit("reloading",t.api)}),this.bus.$off("next-tick",this.nextReload),this.bus.$once("next-tick",this.nextReload),this.bus.$emit("update",this.api)},refresh:function(){this.vm.setupState.refresh()}})}(Dn),function(e){rt(e.prototype,{setValue:function(e,t,n,i){var r=this;e.deleted||(e.rule.value=t,this.changeStatus=!0,this.nextRefresh(),this.$render.clearCache(e),this.setFormData(e,n),this.syncValue(),this.valueChange(e,t),this.vm.emit("change",e.field,t,e.origin,this.api,i||!1),this.effect(e,"value"),this.targetHook(e,"value",{value:t}),this.emitEvent("change",e.field,t,{rule:e.origin,api:this.api,setFlag:i||!1}),i&&a(function(){a(function(){a(function(){r.api.clearValidateState(e.id)})})}),this.$manager.fieldChange(e,t,n,i))},onInput:function(e,t){var n;e.input&&(this.isQuote(e,n=e.parser.toValue(t,e))||this.isChange(e,t))&&this.setValue(e,n,t)},onUpdateValue:function(e,t){var n=this;this.deferSyncValue(function(){var i=e.getParentGroup(),r=i?n.subRuleData[i.id]:null,o={};Object.keys(t||{}).forEach(function(e){r&&Ue(r,e)?o[e]=t[e]:Ue(n.api.form,e)?n.api.form[e]=t[e]:n.api.top!==n.api&&Ue(n.api.top.form,e)&&(n.api.top.form[e]=t[e])}),Object.keys(o).length&&n.api.setChildrenFormData(i.rule,o)})},onBaseInput:function(e,t){this.setFormData(e,t),e.modelValue=t,this.nextRefresh(),this.$render.clearCache(e)},setFormData:function(e,t){e.modelValue=t;var n=e.getParentGroup();n&&(this.subRuleData[n.id]||(this.subRuleData[n.id]={}),this.subRuleData[n.id][e.field]=e.rule.value),Ze(this.formData,e.id,t)},rmSubRuleData:function(e){var t=e.getParentGroup();t&&this.subRuleData[t.id]&&delete this.subRuleData[t.id][e.field]},getFormData:function(e){return this.formData[e.id]},syncForm:function(){var e=this,t=f({}),n=this.fields(),i=[];!1!==this.options.appendValue&&Object.keys(this.appendData).reduce(function(t,i){return-1===n.indexOf(i)&&(t[i]=m(e.appendData,i)),t},t),n.reduce(function(t,n){var r=(e.fieldCtx[n]||[]).filter(function(t){return!e.isIgnore(t)})[0];return r||(r=e.fieldCtx[n][0],i.push(n)),t[n]=m(r.rule,"value"),t},t),this.form=t,this.ignoreFields=i,this.syncValue()},isIgnore:function(e){return!0===e.rule.ignore||("hidden"===e.rule.ignore||this.options.ignoreHiddenFields)&&e.hasHidden()},appendValue:function(e){(e.field&&Ue(this.appendData,e.field)||this.options.forceCoverValue)&&(e.value=this.appendData[e.field],delete this.appendData[e.field])},addSubForm:function(e,t){this.subForm[e.id]=t},deferSyncValue:function(e,t){this.deferSyncFn||(this.deferSyncFn=e),this.deferSyncFn.sync||(this.deferSyncFn.sync=t),jt(e),this.deferSyncFn===e&&(this.deferSyncFn=null,e.sync&&this.syncForm())},syncValue:function(){var e=this;if(this.deferSyncFn)return this.deferSyncFn.sync=!0;var t={};Object.keys(this.form).forEach(function(n){-1===e.ignoreFields.indexOf(n)&&(t[n]=e.form[n])}),this.vm.setupState.updateValue(t)},isChange:function(e,t){return JSON.stringify(this.getFormData(e),vn)!==JSON.stringify(t,vn)},isQuote:function(e,t){return(t instanceof Function||He.Object(t)||Array.isArray(t))&&t===e.rule.value},refreshUpdate:function(e,t,n,i){var r=this;if(He.Function(e.rule.update)){var o=jt(function(){return e.rule.update(t,e.origin,r.api,{origin:n||"change",linkField:i})});if(void 0===o)return;e.rule.hidden=!0===o}},valueChange:function(e,t){this.refreshRule(e,t),this.bus.$emit("change-"+e.field,t)},refreshRule:function(e,t,n,i){this.refreshControl(e)&&(this.$render.clearCacheAll(),this.loadRule(),this.bus.$emit("update",this.api),this.refresh()),this.refreshUpdate(e,t,n,i)},appendLink:function(e){var t=this,n=e.rule.link;He.trueArray(n)&&n.forEach(function(n){var i=function(){return t.refreshRule(e,e.rule.value,"link",n)};t.bus.$on("change-"+n,i),e.linkOn.push(function(){return t.bus.$off("change-"+n,i)})})},fields:function(){return Object.keys(this.fieldCtx)}})}(Dn),function(e){rt(e.prototype,{getCtx:function(e){return this.getFieldCtx(e)||this.getNameCtx(e)[0]||this.ctxs[e]},getCtxs:function(e){return this.fieldCtx[e]||this.nameCtx[e]||(this.ctxs[e]?[this.ctxs[e]]:[])},setIdCtx:function(e,t,n){var i="".concat(n,"Ctx");this[i][t]?this[i][t].push(e):this[i][t]=[e]},rmIdCtx:function(e,t,n){var i="".concat(n,"Ctx"),r=this[i][t];if(!r)return!1;var o=r.splice(r.indexOf(e)>>>0,1).length>0;return r.length||delete this[i][t],o},getFieldCtx:function(e){return(this.fieldCtx[e]||[])[0]},getNameCtx:function(e){return this.nameCtx[e]||[]},setCtx:function(e){var t=e.id,n=e.field,i=e.name,r=e.rule;this.ctxs[t]=e,i&&this.setIdCtx(e,i,"name"),e.input&&(this.setIdCtx(e,n,"field"),this.setFormData(e,e.parser.toFormValue(r.value,e)),this.isMounted&&!this.reloading&&this.vm.emit("change",e.field,r.value,e.origin,this.api))},getParser:function(e){var t=this.fc.parsers,n=this.fc.renderDriver;if(n){var i=n.parsers||{},r=i[e.originType]||i[wt(e.type)]||i[e.trueType];if(r)return r}return t[e.originType]||t[wt(e.type)]||t[e.trueType]||_n},bindParser:function(e){e.setParser(this.getParser(e))},getType:function(e){var t=this.fc.CreateNode.aliasMap,n=t[e]||t[wt(e)]||e;return wt(n)},noWatch:function(e){this.noWatchFn||(this.noWatchFn=e),jt(e),this.noWatchFn===e&&(this.noWatchFn=null)},watchCtx:function(e){var t=this;if(xt().filter(function(e){return"_"!==e[0]&&"$"!==e[0]&&-1===yn.indexOf(e)}).forEach(function(n){var i=m(e.rule,n),r="children"===n;e.refRule[n]=i,e.watch.push(v(r?function(){return He.Function(i.value)?i.value:ve(i.value||[])}:function(){return i.value},function(o,l){var u=i.value;if(!t.isBreakWatch()){if(r&&!1===e.parser.loadChildren)return t.$render.clearCache(e),void t.nextRefresh();if(t.watching=!0,a(function(){t.targetHook(e,"watch",{key:n,oldValue:l,newValue:u})}),"hidden"===n&&Boolean(u)!==Boolean(l)&&(t.$render.clearCacheAll(),a(function(){t.targetHook(e,"hidden",{value:u})})),"ignore"===n&&e.input||"hidden"===n&&e.input&&("hidden"===e.rule.ignore||t.options.ignoreHiddenFields))t.syncForm();else{if("link"===n)return void e.link();["props","on","deep"].indexOf(n)>-1?(t.parseInjectEvent(e.rule,u||{}),"props"===n&&e.input&&t.setFormData(e,e.parser.toFormValue(e.rule.value,e))):"emit"===n?t.parseEmit(e):["prefix","suffix"].indexOf(n)>-1?u&&t.loadFn(u,e.rule):"type"===n?(e.updateType(),t.bindParser(e)):r&&(He.Function(l)&&(l=e.getPending("children",[])),He.Function(u)&&(u=e.loadChildrenPending()),t.updateChildren(e,u,l))}t.$render.clearCache(e),t.refresh(),t.watching=!1}},{deep:!r,sync:r}))}),e.refRule.__$title=s(function(){var n=("object"===ce(e.rule.title)?e.rule.title.title:e.rule.title)||"";if(n){var i=n.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);i&&(n=t.api.t(i[1]))}return n}),e.refRule.__$info=s(function(){var n=("object"===ce(e.rule.info)?e.rule.info.info:e.rule.info)||"";if(n){var i=n.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);i&&(n=t.api.t(i[1]))}return n}),e.refRule.__$validate=s(function(){var n=function(n){var i,r,o=n.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);return o?t.api.t(o[1],{title:null===(i=e.refRule)||void 0===i||null===(r=i.__$title)||void 0===r?void 0:r.value}):n};return De(e.rule.validate).map(function(i){var r=se({},i);if(r.message&&(r.message=n(r.message)),He.Function(r.validator)){var o=e;r.validator=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.validator).call.apply(e,[{that:this,id:o.id,field:o.field,rule:o.rule,api:o.$handle.api}].concat(n))}}if(r.adapter){if("object"===ce(r.error)){var a=se({},r.error);Object.keys(a).forEach(function(e){a[e]=n(a[e])}),r.error=a}return t.adapterValidate(r,e)}return r})}),e.input){var n=m(e.rule,"value");e.watch.push(v(function(){return n.value},function(){var i=e.parser.toFormValue(n.value,e);t.isChange(e,i)&&t.setValue(e,n.value,i,!0)}))}this.bus.$once("load-end",function(){var n=e.rule.computed;n&&("object"!==ce(n)&&(n={value:n}),Object.keys(n).forEach(function(i){var r=s(function(){var r=n[i];if(r){var o=t.compute(e,r);return(r.linkage||r.linkageVariable)&&o===bn?bn:o}}),o=function(n){"value"===i?t.onInput(e,n):"$"===i[0]?t.api.setEffect(e.id,i,n):cn(e.rule,i,n)};("value"===i?[void 0,null,""].indexOf(e.rule.value)>-1:r.value!==Gt(e.rule,i))&&o(r.value),e.watch.push(v(r,function(e){e!==bn&&setTimeout(function(){o(e)})},{deep:!0}))}))}),this.watchEffect(e)},adapterValidate:function(e,t){var n=this;return this.$manager.adapterValidate({required:e.required,message:e.message,target:e.trigger},function(i,r){if(!1===(e.beforeValidate&&jt(function(){return e.beforeValidate({value:i,api:n.api,validate:e,rule:t.rule})})))r();else{var o=n.validator(t,i,e);if(o){var a="";"object"===ce(e.error)&&(a=e.error[o]||e.error.default),a||"string"!=typeof e.message||(a=e.message),a||(a=n.getValidateMessage(t,{key:o,rule:e[o]})),r(a)}else if(e.validator){var l=e.validator&&jt(function(){return e.validator(i,r)});l&&He.Function(l.then)&&l.then(function(){return r()}).catch(function(e){return r(e)})}else r()}})},getValidateMessage:function(e,t){var n,i,r,o=Array.isArray(t.rule)?t.rule.join(","):""+t.rule;return this.api.t("required"===t.key?t.key:"validate."+t.key,(de(r={},t.key,o),de(r,"title",null===(n=e.refRule)||void 0===n||null===(i=n.__$title)||void 0===i?void 0:i.value),r))},validator:function(e,t,n){var i=this;if(He.empty(t))return n.required?"required":void 0;for(var r=function(){var n=ge(a[o],2),r=n[0],l=n[1];switch(r){case"len":case"maxLen":case"minLen":var u=function(e){return"len"===r?e===l:"maxLen"===r?e<=l:e>=l};if(Array.isArray(t)){if(!u(t.length))return{v:r}}else{if("object"===ce(t))return{v:r};if(!u((""+t).length))return{v:r}}break;case"pattern":if(!("string"==typeof l?new RegExp(l):l).test(""+t))return{v:r};break;case"uppercase":if(l&&("string"!=typeof t||!/^[A-Z]*$/.test(t)))return{v:r};break;case"lowercase":if(l&&("string"!=typeof t||!/^[a-z]*$/.test(t)))return{v:r};break;case"min":case"max":case"positive":case"negative":case"integer":case"number":var s=Number(t);if(Number.isNaN(s))return{v:r};if("min"===r&&s<l)return{v:r};if("max"===r&&s>l)return{v:r};if("positive"===r&&s<=0)return{v:r};if("negative"===r&&s>=0)return{v:r};if("integer"===r&&!Number.isInteger(s))return{v:r};break;case"equal":if(t!==l)return{v:r};break;case"enum":if(Array.isArray(l)&&!l.includes(t))return{v:r};break;case"hasKeys":if("object"!==ce(t)||Array.isArray(l)&&l.some(function(e){return!(e in t)}))return{v:r};break;case"email":if(!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(""+t))return{v:r};break;case"url":if(!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").test(""+t))return{v:r};break;case"ip":if(!/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/.test(""+t))return{v:r};break;case"phone":if(!/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test(""+t))return{v:r};break;case"computed":if(!i.compute(e,l))return{v:r}}},o=0,a=Object.entries(n);o<a.length;o++){var l=r();if("object"===ce(l))return l.v}},compute:function(e,t){var n,i=this;if("object"===ce(t)){var r=e.getParentGroup(),o=function t(n){if(n=Array.isArray(n)?{mode:"AND",group:n}:n,!He.trueArray(n.group))return!0;for(var o="OR"===n.mode,a=!0,l=function(l){var u=n.group[l],s=void 0,c=null;if(u.variable)c=JSON.stringify(i.fc.getLoadData(u.variable))||"";else if(u.field)c=$t(u.field||"");else if(!u.mode)return{v:!0};var d=u.compare;if(d&&(d=$t(d||"")),s=u.mode?t(u):!!Wt[u.condition]&&(He.Function(u.handler)?jt(function(){return u.handler(i.api,e.rule)}):jt(function(){return new Function("$condition","$val","$form","$scope","$group","$rule","with($form){with($scope){with(this){with($group){ return $condition['".concat(u.condition,"'](").concat(c,", ").concat(d||"$val","); }}}}")).call(i.api.form,Wt,u.value,i.api.top.form,i.api.top===i.api.scope?{}:i.api.scope.form,r&&i.subRuleData[r.id]||{},e.rule)})),o&&s)return{v:!0};o||(a=a&&s)},u=0;u<n.group.length;u++){var s=l(u);if("object"===ce(s))return s.v}return!o&&a}(t);return o=!0===t.invert?!o:o,t.linkage?o?jt(function(){return i.computeValue(t.linkage,e,r)},void 0):bn:t.linkageVariable?o?jt(function(){return i.fc.getLoadData(t.linkageVariable)},void 0):bn:o}if(He.Function(t))n=function(){return t(i.api.form,i.api)};else{var a=e.getParentGroup();n=function(){return i.computeValue(t,e,a)}}return jt(n,void 0)},computeValue:function(e,t,n){var i=this,r=this,o=Object.keys(this.fc.formulas).reduce(function(e,n){return e[n]=function(){for(var e,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=r.fc.formulas[n]).call.apply(e,[{that:this,rule:t.rule,api:r.api,fc:r.fc}].concat(o))},e},{});return jt(function(){return new Function("$formulas","$form","$scope","$group","$rule","$api","with($form){with($scope){with(this){with($group){with($formulas){ return ".concat(e," }}}}}")).call(i.api.form,o,i.api.top.form,i.api.top===i.api.scope?{}:i.api.scope.form,n&&i.subRuleData[n.id]||{},t.rule,i.api)},void 0)},updateChildren:function(e,t,n){var i=this;this.deferSyncValue(function(){n&&n.forEach(function(n){-1===(t||[]).indexOf(n)&&n&&!He.String(n)&&n.__fc__&&n.__fc__.parent===e&&i.rmCtx(n.__fc__)}),He.trueArray(t)&&(i.loadChildren(t,e),i.bus.$emit("update",i.api))})},rmSub:function(e){var t=this;He.trueArray(e)&&e.forEach(function(e){e&&e.__fc__&&t.rmCtx(e.__fc__)})},rmCtx:function(e){var t=this;if(!e.deleted){var n=e.id,i=e.field,r=e.input,o=e.name;et(this.ctxs,n),et(this.formData,n),et(this.subForm,n),et(this.vm.setupState.ctxInject,n);var a=e.getParentGroup();a&&this.subRuleData[a.id]&&et(this.subRuleData[a.id],i),e.group&&et(this.subRuleData,n),r&&this.rmIdCtx(e,i,"field"),o&&this.rmIdCtx(e,o,"name"),r&&!Ue(this.fieldCtx,i)&&et(this.form,i),this.deferSyncValue(function(){if(!t.reloading){if(!1!==e.parser.loadChildren){var n=e.getPending("children",e.rule.children);He.trueArray(n)&&n.forEach(function(e){return e&&e.__fc__&&t.rmCtx(e.__fc__)})}e.root===t.rules&&t.vm.setupState.renderRule()}},r);var l=this.sort.indexOf(n);return l>-1&&this.sort.splice(l,1),this.$render.clearCache(e),e.delete(),this.effect(e,"deleted"),this.targetHook(e,"deleted"),r&&!this.fieldCtx[i]&&this.vm.emit("remove-field",i,e.rule,this.api),e.rule.__ctrl||this.vm.emit("remove-rule",e.rule,this.api),e}}})}(Dn),function(e){rt(e.prototype,{mounted:function(){var e=this,t=function(){e.isMounted=!0,e.lifecycle("mounted")};this.pageEnd?t():this.bus.$once("page-end",t)},lifecycle:function(e){this.fc.targetFormDriver(e,this.api,this.fc),this.vm.emit(e,this.api),this.emitEvent(e,this.api)},emitEvent:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=this.options[e]||this.options[wt("on-"+e)];if(o){var a=Bt(o);He.Function(a)&&jt(function(){return a.apply(void 0,i)})}(t=this.bus).$emit.apply(t,[e].concat(i))},targetHook:function(e,t,n){var i,r,o=this,a=function(t,i){t&&(t=Array.isArray(t)?t:[t]).forEach(function(t){jt(function(){return t(se(se({},n||{}),{},{self:e.rule,rule:e.rule,parent:null==i?void 0:i.rule,$f:o.api,api:o.api,option:o.vm.props.option}))})})};a(null===(i=e.prop)||void 0===i||null===(r=i.hook)||void 0===r?void 0:r[t]);for(var l="deep"+ht(t),u=e.parent;u;){var s,c;a(null===(s=u.prop)||void 0===s||null===(c=s.hook)||void 0===c?void 0:c[l],u),u=u.parent}}})}(Dn),function(e){rt(e.prototype,{useProvider:function(){var e=this,t=this.fc.providers;Object.keys(t).forEach(function(n){var i=t[n];He.Function(i)&&(i=i(e.fc)),i._c=function(e){var t=e.components;if(Array.isArray(t)){var n=function(e){return e.filter(function(e,t,n){return n.indexOf(e,0)===t})}(t.filter(function(e){return"*"!==e}));return!!n.length&&n}return!!He.String(t)&&[t]}(i),e.onEffect(i,n),e.providers[n]=i})},onEffect:function(e,t){var n=this,i=[];(e._c||["*"]).forEach(function(r){var o="*"===r?"*":n.getType(r);i.indexOf(o)>-1||(i.push(o),n.bus.$on("p:".concat(t||e.name,":").concat(o,":").concat(e.input?1:0),function(t,n){e[t]&&e[t].apply(e,ve(n))}))}),e._used=i},watchEffect:function(e){var t=this,n={required:function(){var t,n;return(Ue(e.rule,"$required")?e.rule.$required:null===(t=e.rule)||void 0===t||null===(n=t.effect)||void 0===n?void 0:n.required)||!1}};Object.keys(e.rule.effect||{}).forEach(function(t){n[t]=function(){return e.rule.effect[t]}}),Object.keys(e.rule).forEach(function(t){"$"===t[0]&&(n[t.substr(1)]=function(){return e.rule[t]})}),Object.keys(n).forEach(function(i){e.watch.push(v(n[i],function(n){t.effect(e,"watch",de({},i,n))},{deep:!0}))})},ruleEffect:function(e,t,n){this.emitEffect({rule:e,input:!!e.field,type:this.getType(e.type)},t,n)},effect:function(e,t,n){this.emitEffect({rule:e.rule,input:e.input,type:e.trueType,ctx:e,custom:n},t)},getEffect:function(e,t){return Ue(e,"$"+t)?e["$"+t]:Ue(e,"effect")&&Ue(e.effect,t)?e.effect[t]:void 0},emitEffect:function(e,t,n){var i=this,r=e.ctx,o=e.rule,a=e.input,l=e.type,u=e.custom;if(l&&!(["fcFragment","fragment"].indexOf(l)>-1)){var s=u||Object.keys(o).reduce(function(e,t){return"$"===t[0]&&(e[t.substr(1)]=o[t]),e},se({},o.effect||{}));Object.keys(s).forEach(function(e){var u=i.providers[e];if(u&&(!u.input||a)){var c;if(u._c){if(!(u._used.indexOf(l)>-1))return;c=l}else c="*";var d=se({value:s[e],getValue:function(){return i.getEffect(o,e)}},n||{});r&&(d.getProp=function(){return r.effectData(e)},d.clearProp=function(){return r.clearEffectData(e)},d.mergeProp=function(e){return Nt(d.getProp(),[e])},d.id=r.id),i.bus.$emit("p:".concat(e,":").concat(c,":").concat(u.input?1:0),t,[d,o,i.api])}})}}})}(Dn);var An=b({name:"fcFragment",inheritAttrs:!1,props:["vnode"],render:function(){return this.vnode}});function xn(e,t){var n=e.directives;return n?(Array.isArray(n)||(n=[n]),E(t,n.reduce(function(e,t){return e.concat(function(e){return Object.keys(e).map(function(t){var n=e[t],i=I(t);if(i)return[i,n.value,n.arg,n.modifiers]}).filter(function(e){return!!e})}(t))},[]))):t}function wn(e){var t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pe(e,t)}(n,e);var t=me(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return n}(Cn);return Object.assign(t.prototype,e),t}function Cn(e){rt(this,{$handle:e,vm:e.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}rt(Cn.prototype,{__init:function(){var e=this;this.$render=this.$handle.$render,this.$r=function(){var t;return(t=e.$render).renderRule.apply(t,arguments)}},updateKey:function(){this.key=sn()},init:function(){},update:function(){},beforeRender:function(){},form:function(){return this.vm.refs[this.ref]},adapterValidate:function(e,t){return e.validator=function(e,n,i){return t(n,i)},e},getSlot:function(e){return function t(n){if(n){var i=n.slots[e];return i||t(n.setupState.parent)}}(this.vm)},mergeOptions:function(e,t){var n=this;return _t(e.map(function(e){return n.tidyOptions(e)}),t,this.mergeOptionsRule)},updateOptions:function(e){this.$handle.fc.targetFormDriver("updateOptions",e,{handle:this.$handle,api:this.$handle.api}),this.options=this.mergeOptions([e],this.getDefaultOptions()),this.update()},tidyOptions:function(e){return e},tidyRule:function(e){},mergeProp:function(e){},getDefaultOptions:function(){return{}},fieldChange:function(e,t,n,i){},render:function(e){}});var En={name:"componentValidate",load:function(e,t,n){var i=e.getValue();if(i&&!1!==i.method){He.Object(i)||(i={method:i});var r=i.method,o=se(se({},i),{},{validator:function(){var i=Pt(t);if(i){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return n.exec.apply(n,[i.id,He.String(r)?r:"formCreateValidate"].concat(a,[{attr:e,rule:t,api:n}]))}}});delete o.method,e.getProp().validate=[o]}else e.clearProp(),n.clearValidateState([t.field])},watch:function(){En.load.apply(En,arguments)}},kn={fetch:function(e){function t(t,i,r){var o=t.value;n.deleted(t),He.Function(o)&&(o=o(i,r)),o=function(e){return He.String(e)&&(e={action:e,to:"options"}),e}(o);var a=function(n){void 0===n?t.clearProp():cn(t.getProp(),o.to||"options",n),null!=n&&o&&o.key&&e.$handle.options.globalData[o.key]&&e.fetchCache.set(e.$handle.options.globalData[o.key],{status:!0,data:n}),r.sync(i)};if(o&&(o.action||o.key)){(o=nt(o)).to||(o.to="options");var l=o.onError,u=function(){if(!t.getValue())return t.clearProp(),r.sync(i),!0};n._fn[t.id]=e.watchLoadData(ft(function(s,c){if(c&&!1===o.watch)return n._fn[t.id]();if(o.key){e.targetRule=i;var d=s("$globalData."+o.key);if(delete e.targetRule,d){if(u())return;a(d)}}else{var f=e.$handle.loadFetchVar(nt(o),s,i),p=se(se({headers:{}},f),{},{onSuccess:function(e,t){if(!u()){var n=function(e){return t?e:Ue(e,"data")?e.data:e},o=Bt(f.parse);He.Function(o)?n=o:o&&He.String(o)&&(n=function(e){return Gt(e,o)}),a(n(e,i,r))}},onError:function(e){a(void 0),u()||(l||function(e){e.message||f.action})(e,i,r)}});e.$handle.beforeFetch(p,{rule:i,api:r}).then(function(){He.Function(f.action)?f.action(i,r).then(function(e){p.onSuccess(e,!0)}).catch(function(e){p.onError(e)}):jt(function(){return e.create.fetch(p,{inject:t,rule:i,api:r})})}).catch(function(e){})}},o.wait||600))}else a(void 0)}var n={name:"fetch",_fn:[],loaded:function(){t.apply(void 0,arguments)},watch:function(){t.apply(void 0,arguments)},deleted:function(e){this._fn[e.id]&&(this._fn[e.id](),delete this._fn[e.id]),e.clearProp()}};return n},loadData:function(e){var t={name:"loadData",_fn:[],loaded:function(t,n,i){var r=this;this.deleted(t),a(function(){var o=De(t.getValue()),a=[];o.forEach(function(r){if(r&&(r.attr||r.template)){var o=function(o){var a,l;n&&n.__fc__&&(a=n.__fc__.getParentGroup()),null!=(l=r.template?e.$handle.loadStrVar(r.template,o,a?{rule:n,value:e.$handle.subRuleData[a.id]||{}}:null):r.handler&&He.Function(r.handler)?r.handler(o,n,i):e.$handle.loadStrVar("{{".concat(r.attr,"}}"),o,a?{rule:n,value:e.$handle.subRuleData[a.id]||{}}:null))&&""!==l||null==r.default||(l=r.default),!1!==r.copy&&(l=nt(l));var u=r.modify?n:t.getProp();"child"===r.to?u.children?u.children[0]=l:u.children=[l]:cn(u,r.to||"options",l),i.sync(n)},l=e.watchLoadData(function(e){return o(e)});o=ft(o,r.wait||300),!1!==r.watch?a.push(l):l()}}),r._fn[t.id]=a})},deleted:function(e){this._fn[e.id]&&(this._fn[e.id].forEach(function(e){e()}),delete this._fn[e.id]),e.clearProp()}};return t.watch=t.loaded,t},t:function(e){var t={name:"t",_fn:[],loaded:function(t,n,i){this.deleted(t);var r=t.getValue()||{},o=[];Object.keys(r).forEach(function(a){var l=r[a];if(l){var u="object"===ce(l),s=function(r){var o=e.t(u?l.attr:l,u?l.params:null,r),s=u&&l.modify?n:t.getProp();"child"===a?s.children?s.children[0]=o:s.children=[o]:cn(s,a,o),i.sync(n)},c=e.watchLoadData(function(e){return s(e)});s=ft(s,l.wait||300),!1!==l.watch?o.push(c):c()}}),this._fn[t.id]=o},deleted:function(e){this._fn[e.id]&&(this._fn[e.id].forEach(function(e){e()}),delete this._fn[e.id]),e.clearProp()}};return t.watch=t.loaded,t},componentValidate:En},Fn={name:"html",loadChildren:!1,render:function(e,t){return t.prop.props.innerHTML=e.default(),t.vNode.make(t.prop.props.tag||"div",t.prop)},renderChildren:function(e){return{default:function(){return e.filter(function(e){return He.String(e)}).join("")}}}};function Sn(e){e+="=";for(var t=decodeURIComponent(document.cookie).split(";"),n=0;n<t.length;n++){for(var i=t[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(e)){i=i.substring(e.length,i.length);try{return JSON.parse(i)}catch(r){return i}}}return null}function Bn(e){var t=localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(n){return t}return null}function Tn(e){var t=sessionStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(n){return t}return null}function On(e,t){if(!t)return null;var n=t.split("."),i=e(n.shift());return n.length?null==i?null:Gt(i,n):i}function Rn(e){return On(Sn,e)}function Mn(e){return On(Bn,e)}function Nn(e){return On(Tn,e)}var In={en:{required:"{title} is required",validate:{url:"{title} is not a valid url",email:"{title} is not a valid email",ip:"{title} {title} is not a valid ip",phone:"{title} {title} is not a valid phone",pattern:"{title} does not match pattern {pattern}",uppercase:"{title} must be all uppercase",lowercase:"{title} must be all lowercased",positive:"{title} is not a positive number",negative:"{title} is not a negative number",equal:"{title} is not equal to {equal}",min:"{title} cannot be less than {min}",max:"{title} cannot be greater than {max}",enum:"{title} must be one of {enum}",hasKeys:"{title} does not contain required fields {hasKeys}",minLen:"{title} must be at least {minLen}",maxLen:"{title} cannot be longer than {maxLen}",len:"{title} must be exactly {len}",integer:"{title} is not an integer",number:"{title} is not an number"}},"zh-cn":{required:"{title}不能为空",validate:{url:"{title}不是有效的 url 地址",email:"{title}不是有效的邮箱地址",ip:"{title}不是有效的 IP 地址",phone:"{title}不是正确的手机号",pattern:"{title}必须匹配 {pattern}",uppercase:"{title}必须全大写",lowercase:"{title}必须全小写",positive:"{title}不是正数",negative:"{title}不是负数",equal:"{title}必须等于 {equal}",min:"{title}必须大于等于 {min}",max:"{title}必须小于等于 {max}",enum:"{title}必须是 {enum} 之一",hasKeys:"{title}必须包含 {hasKeys} 字段",minLen:"{title}长度必须大于 {minLen}",maxLen:"{title}长度必须小于 {maxLen}",len:"{title}长度必须为 {len}",integer:"{title}必须为整数",number:"{title}必须为数字"}}};function Ln(e,t){var n;return 2===arguments.length?t=(n=arguments[1])[e]:n=arguments[2],{id:t,prop:n}}function Pn(){return Ln.apply(void 0,["name"].concat(Array.prototype.slice.call(arguments)))}var jn=1,Vn={},zn=Symbol("defValue");function Hn(e){var t,n=de({},An.name,An),i={},r={},o={},l={},u=[],c=[],d=[e.extendApi],p=se({},kn),h=tn(),m={global:{}},g=!0===e.isMobile,_=f({$mobile:g}),y=function(){var e={};function t(e){this.vm=e.vm,this.handle=e}return rt(t.prototype,{make:function(e,t,n){return xn(t,this.h(e,zt(t),n))},makeComponent:function(e,t,n){try{return xn(t,x(e,zt(t),n))}catch(i){return x("")}},h:function(e,t,n){var i=(this.vm||A()).appContext.config.isNativeTag(e),r=this.handle.fc.prop.components[e];!r&&i&&delete t.formCreateInject;try{return x(r||(i?e:w(e)),t,n)}catch(o){return x("")}},aliasMap:e}),rt(t,{aliasMap:e,alias:function(t,n){e[t]=n},use:function(n){Object.keys(n).forEach(function(i){var r=pt(i),o=ln(i).toLocaleLowerCase(),a=n[i];t.alias(i,a),[i,r,o].forEach(function(n){t.prototype[n]=function(t,r){return this.make(e[i]||n,t,r)}})})}}),t}(),b={},D={};function E(e){var t=Vn[e];return Array.isArray(t)?t.map(function(e){return e.api()}):t?t.api():void 0}function S(e){u.push(e)}function B(){var e=Pn.apply(void 0,arguments);e.id&&e.prop&&(r[e.id]=e.prop)}function T(){var e=Pn.apply(void 0,arguments);e.id&&e.prop&&(p[e.id]=He.Function(e.prop)?e.prop:se(se({},e.prop),{},{name:e.id}))}function O(e){y.use(e)}function R(){var e=Pn.apply(void 0,arguments);if(!e.id||!e.prop)return _n;var t=wt(e.id),n=e.prop,r=!0===n.merge?i[t]:void 0;i[t]=Ht(n,r||_n),h[t]=Kt(t),n.maker&&rt(h,n.maker)}function M(e,t){var r;if(He.String(e)){if(r=e,void 0===t)return n[r]}else r=e.displayName||e.name,t=e;if(r&&t){var o=wt(r);n[r]=t,n[o]=t,delete y.aliasMap[r],delete y.aliasMap[o],delete i[r],delete i[o],t.formCreateParser&&R(r,t.formCreateParser)}}function N(){return qt(K,n,r)}function I(){return An}function L(e,t){return He.Function(e.install)?e.install(P,t):He.Function(e)&&e(P,t),this}function P(e,t){var n=function(e,t){var n=N();return k({data:function(){return f({rule:e,option:t})},render:function(){return F(n,se({ref:"fc"},this.$data))}})}(e,t||{});u.forEach(function(e){jt(function(){return e(P,n)})});var i=document.createElement("div");return((null==t?void 0:t.el)||document.body).appendChild(i),n.mount(i).$refs.fc.fapi}function j(t){var a=se({},e);return t?a.inherit={components:n,parsers:i,directives:r,modelFields:o,providers:p,useApps:u,maker:h,formulas:b,loadData:_}:delete a.inherit,Hn(a)}function V(e,t){o[e]=t}function z(e,t){b[e]=t}function H(e,t){var n=l[e]||{},i=n.parsers||{};t.parsers&&Object.keys(t.parsers).forEach(function(e){i[e]=Ht(t.parsers[e],_n)}),t.name=e,l[e]=se(se(se({},n),t),{},{parsers:i})}function U(e){e&&Object.keys(Vn).forEach(function(t){(Array.isArray(Vn[t])?Vn[t]:[Vn[t]]).forEach(function(t){t.bus.$emit("$loadData."+e)})})}function W(e,t){cn(_,e,t),U(e)}function G(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return jt(function(){return t.apply(void 0,n)})};n._driver=!0,W(e,n)}function $(e,t){var n=(e||"").split(".");e=n.shift();var i=n.join(".");if(Ue(_,e)||(_[e]=zn),_[e]!==zn){var r=_[e];return r&&r._driver?r=r(i):n.length&&(r=Gt(r,n)),null==r||""===r?t:r}return t}function Q(e){d.push(e)}function Y(e){delete _[e],U(e)}function q(e,t){c.push({name:e,callback:t})}function K(t){var u=this;rt(this,{id:jn++,create:P,vm:t,manager:wn(e.manager),parsers:i,providers:p,modelFields:o,formulas:b,isMobile:g,rules:t.props.rule,name:t.props.name||sn(),inFor:t.props.inFor,prop:{components:n,directives:r},get:null,drivers:l,renderDriver:null,refreshData:U,loadData:_,CreateNode:y,bus:new xe,unwatch:[],options:C({}),extendApiFn:d,fetchCache:new WeakMap,tmpData:f({})}),c.forEach(function(e){u.bus.$on(e.name,e.callback)}),a(function(){v(u.options,function(){u.$handle.$manager.updateOptions(u.options.value),u.api().refresh()},{deep:!0})}),rt(t.appContext.components,n),rt(t.appContext.directives,r),this.$handle=new Dn(this),this.name&&(this.inFor?(Vn[this.name]||(Vn[this.name]=[]),Vn[this.name].push(this)):Vn[this.name]=this)}function X(t){rt(t,{version:e.version,ui:e.ui,isMobile:g,extendApi:Q,getData:$,setDataDriver:G,setData:W,removeData:Y,refreshData:U,maker:h,component:M,directive:B,setModelField:V,setFormula:z,setDriver:H,register:T,$vnode:I,parser:R,use:L,factory:j,componentAlias:O,copyRule:Rt,copyRules:Mt,mergeRule:Nt,fetch:rn,$form:N,parseFn:Bt,parseJson:Tt,toJson:Ft,useApp:S,getApi:E,on:q})}if(function(e){var t=e.key||[],n=e.array||[],i=e.normal||[];bt.push.apply(bt,ve(t)),Dt.push.apply(Dt,ve(n)),At.push.apply(At,ve(i)),Jt([].concat(ve(t),ve(n),ve(i)))}(e.attrs||{}),Ht(P,D),K.isMobile=g,rt(K.prototype,{init:function(){var e=this;this.isSub()&&this.unwatch.push(v(function(){return e.vm.setupState.parent.setupState.fc.options.value},function(){e.initOptions(),e.$handle.api.refresh()},{deep:!0,flush:"sync"})),this.vm.props.driver&&(this.renderDriver="object"===ce(this.vm.props.driver)?this.vm.props.driver:this.drivers[this.vm.props.driver]),!this.renderDriver&&this.vm.setupState.parent&&(this.renderDriver=this.vm.setupState.parent.setupState.fc.renderDriver),this.renderDriver||(this.renderDriver=this.drivers.default),this.initOptions(),this.$handle.init()},targetFormDriver:function(e){for(var t,n=this,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if((t=this.bus).$emit.apply(t,[e].concat(r)),this.renderDriver&&this.renderDriver[e])return jt(function(){var t;return(t=n.renderDriver)[e].apply(t,r)})},t:function(e,t,n){var i=n?n("$t."+e):this.globalLanguageDriver(e);return null==i&&(i=""),i&&t&&Object.keys(t).forEach(function(e){var n=new RegExp("{".concat(e,"}"),"g");i=i.replace(n,t[e])}),i},globalDataDriver:function(e){var t=this,n=e.split("."),i=n.shift(),r=this.options.value.globalData&&this.options.value.globalData[i];if(r){if("static"===r.type)return Gt(r.data,n);var o,a=this.fetchCache.get(r);if(a){if(a.status&&(o=Gt(a.data,n)),!a.loading)return o;a.loading=!1,this.fetchCache.set(r,a)}else this.fetchCache.set(r,{status:!1});var l=ft(function(){s();var e=t.fetchCache.get(r);t.options.value.globalData&&-1!==Object.values(t.options.value.globalData).indexOf(r)?(e&&(e.loading=!0,t.fetchCache.set(r,e)),t.bus.$emit("$loadData.$globalData."+i)):t.fetchCache.delete(r)},r.wait||600),u=function(e){t.fetchCache.set(r,{status:!0,data:e}),t.bus.$emit("$loadData.$globalData."+i)},s=this.watchLoadData(function(e,n){if(n&&!1===r.watch)return s();if(n)l();else{var i=t.$handle.loadFetchVar(ot(r),e);i.targetRule=t.targetRule,t.$handle.api.fetch(i).then(function(e){u(e)}).catch(function(e){u(null)})}});return!1===r.watch&&s(),this.unwatch.push(s),o}},getLocale:function(){var e=this.vm.setupState.top.props.locale;return e&&"object"===ce(e)?e.name:"string"==typeof e?e:"zh-cn"},globalLanguageDriver:function(e){var t=this.vm.setupState.top.props.t,n=this.vm.setupState.top.props.locale,i=void 0;if(t&&(i=jt(function(){return t(e)})),null==i&&n&&"object"===ce(n)&&(i=Gt(n,e)),null==i){var r=this.options.value.language||{},o=this.getLocale();null==(i=Gt(r[o]||{},e))&&(i=Gt(In[o]||{},e))}return i},globalVarDriver:function(e){var t=this,n=e.split("."),i=n.shift(),r=this.options.value.globalVariable&&this.options.value.globalVariable[i];if(r){var o=He.Function(r)?r:Bt(r.handle);if(o){var a=o(function(){var e;return(e=t.$handle.api).getData.apply(e,arguments)},this.$handle.api);return Gt(a,n)}}},setData:function(e,t,n){n?W(e,t):(cn(this.vm.setupState.top.setupState.fc.tmpData,e,t),this.bus.$emit("$loadData."+e))},getLoadData:function(e,t){var n=null;if(null!=e){var i=e.split("."),r=i.shift();if(null!=(n=Gt(this.vm.setupState.top.setupState.fc.tmpData,e)))return n;if("$topForm"===r)n=this.$handle.api.top.formData(!0);else if("$scopeForm"===r)n=this.$handle.api.scope.formData(!0);else if("$form"===r)n=this.$handle.api.formData(!0);else if("$options"===r)n=this.options.value;else if("$globalData"===r)n=this.globalDataDriver(i.join(".")),i=[];else if("$var"===r)n=this.globalVarDriver(i.join(".")),i=[];else if("$locale"===r)n=this.getLocale(),i=[];else if("$t"===r)n=this.globalLanguageDriver(i.join(".")),i=[];else{if("$preview"===r)return this.$handle.preview;n=$(e),i=[]}n&&i.length&&(n=Gt(n,i))}return null==n||""===n?t:n},watchLoadData:function(e,t){var n=this,i={},r=function(t){n.get||(n.get=o),jt(function(){e(o,t)}),n.get===o&&(n.get=void 0)},o=function(e,o){var a;if("object"===ce(e)&&(a=e.getValue,e=e.id),i[e])return i[e].val;var l=s(function(){return a?a():n.getLoadData(e,o)}),u=e.split("."),c=u.shift(),d=u.shift()||"",f=ft(function(){var t=a?a():n.getLoadData(e,o);i[e]&&((t instanceof Function||He.Object(t)||Array.isArray(t))&&t===i[e].val||JSON.stringify(t)!==JSON.stringify(i[e].val))&&(i[e].val=t,r(!0))},t||0),p=v(l,function(e){f()});return n.bus.$on("$loadData."+c,f),d&&n.bus.$on("$loadData."+c+"."+d,f),i[e]={fn:function(){n.bus.$off("$loadData."+c,f),d&&n.bus.$off("$loadData."+c+"."+d,f),p()},val:l.value},l.value};r(!1);var a=function(){Object.keys(i).forEach(function(e){return i[e].fn()}),i={}};return this.unwatch.push(a),a},isSub:function(){return this.vm.setupState.parent&&this.vm.props.extendOption},initOptions:function(){this.options.value={};var e=se({formData:{},submitBtn:{},resetBtn:{},globalEvent:{},globalData:{}},nt(m)),t=this.isSub();t&&(e=this.mergeOptions(e,this.vm.setupState.parent.setupState.fc.options.value||{},!0)),e=this.mergeOptions(e,this.vm.props.option);var n=this.api();this.targetFormDriver("initOptions",e,{api:n,isSubForm:t}),this.updateOptions(e)},mergeOptions:function(e,t,n){return t=se({},t||{}),n&&["page","onSubmit","onReset","onCreated","onChange","onMounted","mounted","onReload","reload","formData","el","globalClass","style"].forEach(function(e){delete t[e]}),t.global&&(e.global=function(e,t){return e?(Object.keys(t||{}).forEach(function(n){t[n]&&(e[n]=Nt(e[n]||{},t[n]))}),e):t}(e.global,t.global),delete t.global),this.$handle.$manager.mergeOptions([t],e),e},updateOptions:function(e){this.options.value=this.mergeOptions(this.options.value,e),this.$handle.$manager.updateOptions(this.options.value),this.bus.$emit("$loadData.$options")},api:function(){return this.$handle.api},render:function(){return this.$handle.render()},mounted:function(){this.$handle.mounted()},unmount:function(){var e=this;if(this.name)if(this.inFor){var t=Vn[this.name].indexOf(this);Vn[this.name].splice(t,1)}else delete Vn[this.name];c.forEach(function(t){e.bus.$off(t.name,t.callback)}),this.tmpData={},this.unwatch.forEach(function(e){return e()}),this.unwatch=[],this.$handle.reloadRule([])},updated:function(){var e=this;this.$handle.bindNextTick(function(){return e.bus.$emit("next-tick",e.$handle.api)})}}),X(D),rt(t=D,{create:P,install:function(n,i){m=se(se({},m),i||{});var r="_installedFormCreate_"+e.ui;if(!0!==n[r]){n[r]=!0;var o=function(e){return P(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})};X(o),n.config.globalProperties.$formCreate=o;var a=N();n.component(a.name,a),u.forEach(function(e){jt(function(){return e(t,n)})})}}}),G("$cookie",Rn),G("$localStorage",Mn),G("$sessionStorage",Nn),y.use({fragment:"fcFragment"}),e.install&&P.use(e),S(function(e,t){t.mixin({props:["formCreateInject"]})}),R(Fn),e.inherit){var J=e.inherit;J.components&&rt(n,J.components),J.parsers&&rt(i,J.parsers),J.directives&&rt(r,J.directives),J.modelFields&&rt(o,J.modelFields),J.providers&&rt(p,J.providers),J.useApps&&rt(u,J.useApps),J.maker&&rt(h,J.maker),J.loadData&&rt(_,J.loadData),J.formulas&&rt(b,J.formulas)}var Z=N();return Ht(Z,D),Object.defineProperties(Z,{fetch:{get:function(){return D.fetch},set:function(e){D.fetch=e}}}),Z.util=D,Z}var Un,Wn={date:"YYYY-MM-DD",month:"YYYY-MM",week:"YYYY-wo",datetime:"YYYY-MM-DD HH:mm:ss",timerange:"HH:mm:ss",daterange:"YYYY-MM-DD",monthrange:"YYYY-MM",datetimerange:"YYYY-MM-DD HH:mm:ss",year:"YYYY"},Gn="datePicker",$n={name:Gn,maker:["year","month","date","dates","week","datetime","datetimeRange","dateRange","monthRange"].reduce(function(e,t){return e[t]=Kt(Gn,{type:t.toLowerCase()}),e},{}),mergeProp:function(e){var t=e.prop.props;t.valueFormat||(t.valueFormat=Wn[t.type]||Wn.date)}},Qn="hidden",Yn={name:Qn,maker:de({},Qn,function(e,t){return Kt(Qn)("",e,t)}),render:function(){return[]}},qn="input",Kn="slider",Xn="timePicker",Jn=[$n,Yn,{name:qn,maker:(Un=["password","url","email","text","textarea"].reduce(function(e,t){return e[t]=Kt(qn,{type:t}),e},{}),Un.idate=Kt(qn,{type:"date"}),Un),mergeProp:function(e){var t=e.prop.props;t&&t.autosize&&t.autosize.minRows&&(t.rows=t.autosize.minRows||2)}},{name:Kn,maker:{sliderRange:Kt(Kn,{range:!0})},toFormValue:function(e,t){var n=Array.isArray(e),i=t.prop.props,r=i.min||0;return!0===i.range?n?e:[r,parseFloat(e)||r]:n?parseFloat(e[0])||r:parseFloat(e)}},{name:Xn,maker:{time:Kt(Xn,function(e){return e.props.isRange=!1}),timeRange:Kt(Xn,function(e){return e.props.isRange=!0})},mergeProp:function(e){var t=e.prop.props;t.valueFormat||(t.valueFormat="HH:mm:ss")}},{name:"FcRow",render:function(e,t){return t.vNode.col({props:{span:24}},{default:function(){return[t.vNode.row(t.prop,e)]}})}},{name:"select",toFormValue:function(e,t){return t.prop.props.multiple&&!Array.isArray(e)?De(e):e}}],Zn={button:"el-button",icon:"el-icon",slider:"el-slider",rate:"el-rate",upload:"fc-upload",cascader:"el-cascader",popover:"el-popover",tooltip:"el-tooltip",colorPicker:"el-colorPicker",timePicker:"el-time-picker",timeSelect:"el-time-select",datePicker:"el-date-picker",switch:"el-switch",select:"fc-select",checkbox:"fc-checkbox",radio:"fc-radio",inputNumber:"el-input-number",number:"el-input-number",input:"el-input",formItem:"el-form-item",form:"el-form",frame:"fc-frame",col:"el-col",row:"el-row",tree:"fc-tree",autoComplete:"el-autocomplete",auto:"el-autocomplete",group:"fc-group",array:"fc-group",object:"fc-sub-form",subForm:"fc-sub-form"};function ei(e,t){var n;Ue(e,t)&&(He.String(e[t])&&(e[t]=(de(n={},t,e[t]),de(n,"show",!0),n)))}function ti(e){return!1===e}function ni(e){var t=se({},e);return delete t.children,t}var ii={validate:function(){var e=this.form();return e?e.validate():new Promise(function(e){return e()})},validateField:function(e){var t=this;return new Promise(function(n,i){var r=t.form();r?r.validateField(e,function(e,t){t?i(t):n(e)}):n()})},clearValidateState:function(e){var t=this.vm.refs[e.wrapRef];t&&t.clearValidate()},fieldChange:function(e,t,n,i){var r,o;i||(null===(r=this.vm.refs[e.wrapRef])||void 0===r||null===(o=r.validate("change"))||void 0===o||o.catch(function(){}))},tidyOptions:function(e){return["submitBtn","resetBtn","row","info","wrap","col","title"].forEach(function(t){!function(e,t){Ue(e,t)&&!He.Object(e[t])&&(e[t]={show:!!e[t]})}(e,t)}),e},tidyRule:function(e){var t=e.prop;return ei(t,"title"),ei(t,"info"),t},mergeProp:function(e){var t=this,n={info:{trigger:"hover",placement:"top-start",icon:!0},title:{},col:{span:24},wrap:{}};["info","wrap","col","title"].forEach(function(i){e.prop[i]=_t([t.options[i]||{},e.prop[i]||{}],n[i])})},getDefaultOptions:function(){return{form:{inline:!1,labelPosition:"right",labelWidth:"125px",disabled:!1,size:void 0},row:{show:!0,gutter:0},submitBtn:{type:"primary",loading:!1,disabled:!1,innerText:"",show:!0,col:void 0,click:void 0},resetBtn:{type:"default",loading:!1,disabled:!1,innerText:"",show:!1,col:void 0,click:void 0}}},update:function(){var e=this.options.form;this.rule={props:se({},e),on:{submit:function(e){e.preventDefault()}},style:e.style,type:"form"}},beforeRender:function(){var e=this.key,t=this.ref,n=this.$handle,i=this.options.form;rt(this.rule,{key:e,ref:t,class:[i.className,i.class,"form-create",this.$handle.preview?"is-preview":""]}),rt(this.rule.props,{model:n.formData})},render:function(e){var t=this;return e.slotLen()&&!this.$handle.preview&&e.setSlot(void 0,function(){return t.makeFormBtn()}),this.$r(this.rule,ti(this.options.row.show)?e.getSlots():[this.makeRow(e)])},makeWrap:function(e,t){var n=this,i=e.prop,r="".concat(this.key).concat(e.key),o=i.col,a=this.isTitle(i)&&!1!==i.wrap.title,l=o.labelWidth||a?o.labelWidth:0,u=this.rule.props,s=u.inline,c=u.col,d=i.wrap.class;delete i.wrap.class,delete i.wrap.title;var f=ti(i.wrap.show)?t:this.$r(_t([i.wrap,{props:se(se({labelWidth:void 0===l?l:ln(l),label:a?i.title.title:void 0},ni(i.wrap||{})),{},{prop:e.id,rules:e.injectValidate()}),class:this.$render.mergeClass(d||i.className,"fc-form-item"),key:"".concat(r,"fi"),ref:e.wrapRef,type:"formItem"}]),se({default:function(){return t}},a?{label:function(){return n.makeInfo(i,r,e)}}:{}));return!0===s||ti(c)||ti(o.show)?f:this.makeCol(i,r,[f])},isTitle:function(e){if(!1===this.options.form.title)return!1;var t=e.title;return!(!t.title&&!t.native||ti(t.show))},makeInfo:function(e,t,n){var i,r,o,a,l=this,u=se({},e.title),s=se({},e.info),c="tooltip"===s.type,d=this.options.form,f=this.getSlot("title"),p=[f?f({title:null===(i=n.refRule)||void 0===i||null===(r=i.__$title)||void 0===r?void 0:r.value,rule:n.rule,options:this.options}):(null===(o=n.refRule)||void 0===o||null===(a=o.__$title)||void 0===a?void 0:a.value)+(d.labelSuffix||d["label-suffix"]||"")];if(!ti(s.show)&&(s.info||s.native)&&!ti(s.icon)){var h={type:s.type||"popover",props:ni(s),key:"".concat(t,"pop")};delete h.props.icon,delete h.props.show,delete h.props.info,delete h.props.align,delete h.props.native;var m,g,v="content";if(s.info&&!Ue(h.props,v))h.props[v]=null===(m=n.refRule)||void 0===m||null===(g=m.__$info)||void 0===g?void 0:g.value;p["left"!==s.align?"unshift":"push"](this.$r(_t([s,h]),de({},u.slot||(c?"default":"reference"),function(){return l.$r({type:"ElIcon",style:"top:2px",key:"".concat(t,"i")},{default:function(){return l.$r({type:!0===s.icon?"icon-warning":s.icon})}},!0)})))}var _=_t([u,{props:ni(u),key:"".concat(t,"tit"),class:"fc-form-title",type:u.type||"span"}]);return delete _.props.show,delete _.props.title,delete _.props.native,this.$r(_,p)},makeCol:function(e,t,n){var i=e.col;return this.$r({class:this.$render.mergeClass(i.class,"fc-form-col"),type:"col",props:i||{span:24},key:"".concat(t,"col")},n)},makeRow:function(e){var t=this.options.row||{};return this.$r({type:"row",props:t,class:this.$render.mergeClass(t.class,"fc-form-row"),key:"".concat(this.key,"row")},e)},makeFormBtn:function(){var e=[];if(ti(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),ti(this.options.resetBtn.show)||e.push(this.makeResetBtn()),e.length){var t=this.$r({type:"formItem",class:"fc-form-item",key:"".concat(this.key,"fb")},e);return!0===this.rule.props.inline?t:this.$r({type:"col",class:"fc-form-col fc-form-footer",props:{span:24},key:"".concat(this.key,"fc")},[t])}},makeResetBtn:function(){var e=this,t=se({},this.options.resetBtn),n=t.innerText||this.$handle.api.t("reset")||"重置";return delete t.innerText,delete t.click,delete t.col,delete t.show,this.$r({type:"button",props:t,class:"fc-reset-btn",style:{width:t.width},on:{click:function(){var t=e.$handle.api;e.options.resetBtn.click?e.options.resetBtn.click(t):t.resetFields()}},key:"".concat(this.key,"b2")},[n])},makeSubmitBtn:function(){var e=this,t=se({},this.options.submitBtn),n=t.innerText||this.$handle.api.t("submit")||"提交";return delete t.innerText,delete t.click,delete t.col,delete t.show,this.$r({type:"button",props:t,class:"fc-submit-btn",style:{width:t.width},on:{click:function(){var t=e.$handle.api;e.options.submitBtn.click?e.options.submitBtn.click(t):t.submit().catch(function(){})}},key:"".concat(this.key,"b1")},[n])}},ri={};!function(e){["group","tree","switch","upload","autoComplete","checkbox","cascader","colorPicker","datePicker","frame","inputNumber","radio","rate"].forEach(function(t){e[t]=Kt(t)}),e.auto=e.autoComplete,e.number=e.inputNumber,e.color=e.colorPicker}(ri),function(e){var t="select",n="multiple";e.selectMultiple=Kt(t,de({},n,!0)),e.selectOne=Kt(t,de({},n,!1))}(ri),function(e){var t={treeSelected:"selected",treeChecked:"checked"};Object.keys(t).reduce(function(e,n){return e[n]=Kt("tree",{type:t[n]}),e},e)}(ri),function(e){var t={image:["image",0],file:["file",0],uploadFileOne:["file",1],uploadImageOne:["image",1]};Object.keys(t).reduce(function(e,n){return e[n]=Kt("upload",function(e){return e.props({uploadType:t[n][0],maxLength:t[n][1]})}),e},e),e.uploadImage=e.image,e.uploadFile=e.file}(ri),function(e){var t={frameInputs:["input",0],frameFiles:["file",0],frameImages:["image",0],frameInputOne:["input",1],frameFileOne:["file",1],frameImageOne:["image",1]};Object.keys(t).reduce(function(e,n){return e[n]=Kt("frame",function(e){return e.props({type:t[n][0],maxLength:t[n][1]})}),e},e),e.frameInput=e.frameInputs,e.frameFile=e.frameFiles,e.frameImage=e.frameImages}(ri);function oi(e,t){return He.Boolean(e)?e={show:e}:He.Undef(e)||He.Object(e)||(e={show:t}),e}function ai(e,t){return{formEl:function(){return t.$manager.form()},wrapEl:function(e){var n=t.getFieldCtx(e);if(n)return t.vm.refs[n.wrapRef]},validate:function(n){return new Promise(function(i,r){var o=e.children,a=[t.$manager.validate()];o.filter(function(e){return!e.isScope}).forEach(function(e){a.push(e.validate())}),Promise.all(a).then(function(){i(!0),n&&n(!0)}).catch(function(i){r(i),n&&n(i),t.vm.emit("validate-fail",i,{api:e}),t.emitEvent("validate-fail",i,{api:e})})})},validateField:function(n,i){return new Promise(function(r,o){var a=t.getFieldCtx(n);if(a){var l=t.subForm[a.id],u=[t.$manager.validateField(a.id)];De(l).filter(function(e){return!e.isScope}).forEach(function(e){u.push(e.validate())}),Promise.all(u).then(function(){r(null),i&&i(null)}).catch(function(r){o(r),i&&i(r),t.vm.emit("validate-field-fail",r,{field:n,api:e})})}})},clearValidateState:function(n){var i=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.helper.tidyFields(n).forEach(function(e){r&&i.clearSubValidateState(e),t.getCtxs(e).forEach(function(e){t.$manager.clearValidateState(e)})})},clearSubValidateState:function(n){e.helper.tidyFields(n).forEach(function(e){t.getCtxs(e).forEach(function(e){var n=t.subForm[e.id];n&&(Array.isArray(n)?n.forEach(function(e){e.clearValidateState()}):n&&n.clearValidateState())})})},btn:{loading:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({loading:!!t})},disabled:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({disabled:!!t})},show:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({show:!!t})}},resetBtn:{loading:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({loading:!!t})},disabled:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({disabled:!!t})},show:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({show:!!t})}},submitBtnProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=oi(t.options.submitBtn,!0);rt(i,n),t.options.submitBtn=i,e.refreshOptions()},resetBtnProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=oi(t.options.resetBtn,!1);rt(i,n),t.options.resetBtn=i,e.refreshOptions()},submit:function(n,i){return new Promise(function(r,o){(!1===t.options.validateOnSubmit?Promise.resolve():e.validate()).then(function(){var i=e.formData();t.beforeSubmit(i).then(function(){He.Function(n)&&jt(function(){return n(i,e)}),He.Function(t.options.onSubmit)&&jt(function(){return t.options.onSubmit(i,e)}),t.vm.emit("submit",i,e),r(i)}).catch(function(e){})}).catch(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];He.Function(i)&&jt(function(){return i.apply(void 0,[e].concat(n))}),o.apply(void 0,n)})})}}}we(".form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before,.form-create.is-preview .fc-clock{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}");var li={name:"required",load:function(e,t,n){var i=function(e){return He.Boolean(e)?{required:e}:He.String(e)?{message:e}:He.Undef(e)?{required:!1}:He.Function(e)?{validator:e}:He.Object(e)?e:{}}(e.getValue());if(!1===i.required)e.clearProp(),n.clearValidateState([t.field]);else{var r,o=se({required:!0,validator:function(e,t,n){He.empty(t)?n(o.message):n()}},i),a=null===(r=t.__fc__.refRule.__$title)||void 0===r?void 0:r.value;if(o.message){var l=o.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);l&&(o.message=n.t(l[1],{title:a}))}else o.message=n.t("required",{title:a})||a+("en"===n.getLocale()?" is required":"不能为空");e.getProp().validate=[o]}n.sync(t)},watch:function(){li.load.apply(li,arguments)}};function ui(e){e.componentAlias(Zn),dt.forEach(function(t){e.component(t.name,t)}),e.register(li),Jn.forEach(function(t){e.parser(t)}),Object.keys(ri).forEach(function(t){e.maker[t]=ri[t]}),"undefined"!=typeof window&&window.ElementPlus&&e.useApp(function(e,t){t.use(window.ElementPlus)})}var si=Hn({ui:"element-ui",version:"3.2.30",manager:ii,extendApi:ai,install:ui,attrs:{normal:["col","wrap"],array:["className"],key:["title","info"]}});"undefined"!=typeof window&&(window.formCreate=si),si.maker,
  12. /*!
  13. * FormCreate 可视化表单设计器
  14. * @form-create/designer v3.3.1
  15. * (c) 2021-2025 xaboy
  16. * Github https://github.com/xaboy/form-create-designer
  17. * Site https://form-create.com/
  18. * Released under the MIT License.
  19. */
  20. function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:5}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{background:#fff;border:1px solid silver;border-radius:3px;box-shadow:2px 3px 5px #0003;font-family:monospace;font-size:90%;list-style:none;margin:0;max-height:20em;overflow:hidden;overflow-y:auto;padding:2px;position:absolute;z-index:1}.CodeMirror-hint{border-radius:2px;color:#000;cursor:pointer;margin:0;padding:0 4px;white-space:pre}li.CodeMirror-hint-active{background:#08f;color:#fff}._fd-fn{display:flex;flex-direction:column;height:100%;position:relative;width:100%}._fd-fn .el-button{bottom:3px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;position:absolute;right:5px}._fd-fn-editor{display:flex;flex:1;overflow:auto;width:100%}._fd-fn-editor .CodeMirror{height:100%;width:100%}._fd-fn-tip{color:#000;direction:ltr;font-family:monospace}._fd-fn-tip .cm-keyword{color:#708;line-height:24px;overflow-x:auto;white-space:nowrap}._fd-fn-tip .cm-keyword::-webkit-scrollbar{background-color:transparent;height:0;width:0}._fd-fn-ind{background-color:#f7f7f7;border-right:1px solid #ddd;display:inline-block;float:left;height:24px;margin-right:4px;width:29px}._fd-fn-arg{cursor:pointer;text-decoration:underline}._fd-fn-arg i{color:#3073ff;font-size:12px}._fd-event .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-event .el-badge{width:100%}._fd-event-dialog .el-dialog__body{padding:10px 20px}._fd-event-con .el-main{padding:0}._fd-event-l,._fd-event-r{border:1px solid #ececec;display:flex;flex:1;flex-direction:column;height:100%}._fd-event-dropdown .el-dropdown-menu{max-height:500px;overflow:auto}._fd-event-head{align-items:center;background:#f8f9ff;border-bottom:1px solid #eee;display:flex;padding:5px 15px}._fd-event-head .el-button.is-link{color:#2f73ff}._fd-event-r{border-left:0}._fd-event-r ._fd-event-head{justify-content:space-between}._fd-event-l>.el-main,._fd-event-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-event-item,._fd-event-r>.el-main{flex-direction:column}._fd-event-item{display:flex;font-size:14px;justify-content:center;max-width:250px;overflow:hidden;white-space:pre-wrap}._fd-event-item ._fd-label{color:#aaa;font-size:12px}._fd-event-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-event-l .el-menu-item.is-active{background:#e4e7ed;color:#303133}._fd-event-l .el-menu-item{border:1px solid #ececec;border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-event-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-event-method ._fd-label{color:#aaa;font-size:12px;margin-top:4px}._fd-event-method>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-event-method>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:#000;margin-left:10px}._fd-event-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-event-title .fc-icon{color:#282828;font-size:18px;margin-right:6px}._fd-event-title .el-input{width:200px}._fd-event-title .el-input__wrapper{box-shadow:none}._fd-event-title .el-menu-item.is-active i{color:#282828}._fd-event-con .CodeMirror{height:100%;width:100%}._fd-event-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-type-select{cursor:pointer}._fd-type-select.is-disabled{cursor:default}._fd-type-select .fc-icon{font-size:14px}._fd-type-select-pop{max-height:500px;overflow:auto}._fd-type-select-pop .fc-icon{font-size:14px}._fd-struct,._fd-struct .el-badge{width:100%}._fd-struct .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-struct-con .CodeMirror{height:500px}._fd-struct-con .el-dialog__body{padding:0}._fd-props-input{display:inline-block;width:16px}._fd-props-input .fc-icon{cursor:pointer}._fd-language-config{height:100%;overflow:auto}._fd-lc-body,._fd-lc-header{padding:0 12px}._fd-lc-body{overflow:auto}._fd-lc-header{display:flex;justify-content:flex-end;margin-bottom:12px}._fd-language-config .el-table__cell{height:34px}._fd-language-config ._fc-l-info{margin-bottom:12px}._fd-lc-handle{align-items:center;cursor:pointer;display:flex;justify-content:space-between}._fd-struct-editor{flex:1;width:100%}._fd-struct-editor>div{height:100%}._fc-json-preview{color:#262626;display:flex;width:100%}._fc-json-preview .CodeMirror{font-size:12px;height:100%}._fd-warning-pop{max-width:400px}._fd-warning-text{cursor:help;text-decoration:underline;text-decoration-style:dashed}._fd-drag-tool{word-wrap:break-word;box-sizing:border-box;display:block;min-height:20px;outline:1px dashed var(--fc-tool-border-color);overflow:hidden;padding:2px;position:relative;word-break:break-all;z-index:0}._fd-drag-tool ._fd-drag-tool{height:calc(100% - 6px);margin:3px}._fd-drag-tool+._fd-drag-tool{margin-top:5px}._fd-drag-tool.active{outline:1px solid #2e73ff}._fd-drag-tool.active>div>._fd-drag-btn{display:flex}._fd-drag-tool:not(.active):hover>div>._fd-drag-btn{display:flex!important;opacity:.7}._fd-drag-tool._fd-drop-hover ._fd-drag-box{padding-bottom:15px!important;padding-top:15px!important}._fd-drag-tool ._fd-drag-btn{display:none}._fd-drag-r{right:2px;top:calc(100% - 20px)}._fd-drag-l,._fd-drag-r{position:absolute;z-index:3}._fd-drag-l{left:0;top:0}._fd-drag-btn{background-color:#2e73ff;color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}._fd-drag-btn+._fd-drag-btn{margin-left:2px}._fd-drag-danger{background-color:#ff2e2e}._fd-drag-btn i{font-size:14px}._fd-drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:2}._fd-drag-tool:hover{outline-color:#2e73ff80;outline-style:solid;z-index:1}._fd-drag-tool:has(._fd-drag-tool:not(.active):hover,._fd-drag-tool.active:hover)>div>._fd-drag-btn{display:none!important}._fd-row,._fd-html-editor{width:100%}._fd-html-editor .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-html-editor-con .CodeMirror{height:450px}._fd-html-editor-con .CodeMirror-line{font-size:13px!important;line-height:16px!important}._fd-html-editor-con .CodeMirror-lint-tooltip{z-index:1!important}._fd-html-editor-con .el-dialog__body{padding:0 20px}._fd-fn-input,._fd-fn-input .el-badge{width:100%}._fd-fn-input .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-fn-input-dialog .CodeMirror-lint-tooltip{z-index:1!important}._fd-fn-input-dialog .el-dialog__body{height:500px;padding:0}._fd-gfc,._fd-gfc .el-badge{width:100%}._fd-gfc .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-gfc-dialog .el-tabs__header{margin-bottom:0}._fd-gfc-dialog .form-create{margin-top:15px}._fd-gfc-con .CodeMirror{height:100%;width:100%}._fd-gfc-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-config-item{color:#666;display:flex;flex-direction:column;font-size:12px;margin-bottom:10px;width:100%}._fd-ci-head{justify-content:space-between}._fd-ci-head,._fd-ci-label{align-items:center;display:flex}._fd-ci-label{color:#262626;font-size:12px}._fd-ci-con{align-items:center;display:flex;justify-content:flex-end;min-width:150px}._fd-ci-label.is-arrow{cursor:pointer}._fd-ci-append{background:#f5f5f5;display:flex;flex-direction:column;margin:5px 3px 3px;padding:4px}._fd-ci-label i{font-size:12px;font-weight:600}._fd-ci-label i.down{transform:rotate(-180deg)}._fd-ci-info{font-size:12px;padding-right:5px}._fd-field-input{width:100%}._fd-field-input>.fc-icon{color:#a8abb2;cursor:pointer;height:24px;position:absolute;right:28px;text-align:center;top:1px;width:24px;z-index:1}._fd-field-input>.fc-icon:hover{color:#2e73ff}._fd-field-input .el-input-group__append{color:#606266;cursor:pointer;margin:0;padding:0;width:25px}._fd-fn-list,._fd-fn-list .el-badge{width:100%}._fd-fn-list .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-fn-list-dialog .el-dialog__body{padding:10px 20px}._fd-fn-list-con .el-main{padding:0}._fd-fn-list-l,._fd-fn-list-r{border:1px solid #ececec;display:flex;flex:1;flex-direction:column;height:100%}._fd-fn-list-head{align-items:center;background:#f8f9ff;border-bottom:1px solid #eee;display:flex;padding:5px 15px}._fd-fn-list-head .el-button.is-link{color:#2f73ff}._fd-fn-list-r{border-left:0}._fd-fn-list-r ._fd-fn-list-head{justify-content:flex-end}._fd-fn-list-l>.el-main,._fd-fn-list-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-fn-list-r>.el-main{flex-direction:column}._fd-fn-list-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-fn-list-l .el-menu-item.is-active{background:#e4e7ed;color:#303133}._fd-fn-list-l .el-menu-item{border:1px solid #ececec;border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-fn-list-method{box-sizing:border-box;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;line-height:1em;overflow:hidden;padding:10px 20px 10px 0;position:relative;white-space:pre-wrap;width:100%}._fd-fn-list-method ._fd-label{color:#aaa;font-size:12px;margin-top:4px}._fd-fn-list-method ._fd-dot{background:#00c050;border-radius:15px;display:block;height:6px;margin-top:-3px;position:absolute;right:16px;top:50%;width:6px}._fd-fn-list-method-info>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-fn-list-method-info>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:#000;margin-left:10px}._fd-fn-list-con .CodeMirror{height:100%;width:100%}._fd-fn-list-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-table-view{overflow:auto}._fd-table-view-cell{height:100%;min-height:50px;position:relative}._fd-table-row-handle{bottom:-4px;cursor:row-resize;height:8px;left:0;width:100%}._fd-table-col-handle,._fd-table-row-handle{background-color:transparent;position:absolute;z-index:1}._fd-table-col-handle{cursor:col-resize;height:100%;right:-4px;top:0;width:8px}._fd-table-view-cell.selected>._fd-drag-tool{background-color:#2e73ff0d;outline:1px solid #2e73ff}._fd-table-view-cell>._fd-drag-tool{border:0;height:100%;margin:0;max-height:100%;max-width:100%;min-width:unset;outline:0;width:100%}._fd-table-view-cell>._fd-drag-tool>._fd-tableCell-drag{min-height:80px}._fd-table-view-btn{flex-direction:column;padding:0}._fd-table-view-btn .fc-icon{color:#fff;font-size:16px;width:18px}._fd-table-view-icon{color:#fff;display:flex;height:100%;justify-content:center;margin-top:1px;width:100%}._fd-table-view>table{border-bottom:1px solid #ebeef5;border-collapse:collapse;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fd-table-view tr{min-height:50px}._fd-table-view td{border:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow-wrap:break-word;padding:0;position:relative;white-space:nowrap}._fd-tableCell-drag{height:100%}._fd-table-view.is-mini td{min-height:12px;padding:0}._fd-table-view.is-mini .el-form-item{margin:0;padding:0}._fd-table-context-menu{background-color:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 1px 10px #0000001a;color:#666;display:block;font-size:14px;min-width:120px;padding:6px 0;position:fixed;z-index:2}._fd-table-context-menuitem{cursor:pointer;line-height:22px;padding:5px 16px}._fd-table-context-menuitem:hover{background-color:#f0f0f0}._fd-table-context-menu-separator{background-color:#eee;height:1px;margin:6px 0}._fc-table{overflow:auto}._fc-table>table{border-bottom:1px solid #ebeef5;border-collapse:collapse;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table.is-mini td{min-height:12px;padding:0}._fc-table.is-mini .el-form-item{margin:0;padding:0}._fd-language-list{max-height:320px;overflow:auto;padding-top:70px}._fd-language-input .el-input-group__append{color:#aaa;cursor:pointer;margin:0;padding:0;width:25px}._fd-language-input.is-variable input{color:#2e73ff}._fd-language-header,._fd-language-item{border-bottom:1px solid #ececec;display:flex;padding:0 12px}._fd-language-header{background-color:#fff;color:#262626;flex-direction:column;font-weight:500;left:0;overflow:auto;padding-top:10px;position:absolute;right:0;top:0}._fd-language-item>div,._fd-language-name>div{flex:1;font-size:12px;min-width:70px;padding:5px}._fd-language-title{margin:6px 0}._fd-language-title .fc-icon{color:#2e73ff;cursor:pointer;font-size:14px}._fd-language-name{display:flex}._fd-language-name>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fd-language-item{cursor:pointer}._fd-language-item:hover{background-color:#ccdfff;color:#2e73ff}._fd-language-popover{padding:0!important}._fd-validate{display:flex;flex-direction:column;width:100%}._fd-validate-btn{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-validate-pop .el-dropdown-menu__item{width:248px}._fd-validate-item{border-bottom:1px dashed #ececec;margin-bottom:10px}._fd-validate-item .el-col-12:first-child{padding-right:5px}._fd-validate-item .el-col-12+.el-col-12{padding-left:5px}._fd-validate-item .el-input-number{width:100%}._fd-validate-title{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px}._fd-validate-title>div{align-items:center;display:flex}._fd-validate-title>div>span{background:#ececec;border-radius:15px;font-size:12px;height:16px;line-height:16px;margin-right:5px;text-align:center;width:16px}._fd-validate-title i{cursor:pointer}._fd-validate-title i:hover{color:#ff2e2e}._fd-validate .append-msg{cursor:pointer}._fd-validate .el-input-group__append{padding:0 10px}._fd-required{align-items:center;display:flex;width:100%}._fd-required .el-input{margin-left:15px}._fd-required .el-switch{height:28px}._fd-value-input .el-input__validateIcon{display:none}._fd-value-input .el-select,._fd-value-input .el-select__wrapper{height:100%}._td-table-opt[data-v-91131f26]{width:100%}._td-table-opt .el-table[data-v-91131f26]{z-index:1}._td-table-opt-handle[data-v-91131f26]{align-items:center;display:flex;justify-content:space-between;padding-right:5px}._fd-tree-opt ._fd-tree-opt-btn{background-color:#2f73ff;color:#fff;cursor:pointer;float:left;height:19px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}._fd-tree-opt-node{align-items:center;display:flex}._fd-tree-opt-first{margin-right:5px;width:60px}._fd-tree-opt-last{width:165px}._fd-tree-opt-last._label{width:175px}._fd-tree-opt-last._label .el-input-group__append{width:65px}._fd-tree-opt ._fd-tree-opt-danger{background-color:#ff2d2e;border-radius:0 2px 2px 0}._fd-tree-opt .el-tree-node__content{height:28px;margin-bottom:3px}._fd-tree-opt .el-input__inner{border-right:0}._fd-tree-opt .el-input-group__append{background:#fff;padding-left:1px;padding-right:2px;width:90px}._fd-table-form{background:#fff;border:1px solid #ececec;width:100%}._fc-child-empty,._fd-table-form{min-height:130px}._fd-tf-wrap{display:flex;overflow:auto}._fd-tf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px;overflow:auto}._fc-table-form{color:#666;overflow:auto}._fc-table-form .form-create td .el-form-item{margin-bottom:1px}._fc-table-form .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;font-weight:500;height:40px;padding:0 5px}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .el-cascader,._fc-tf-table .el-date-editor,._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-signature-btn{cursor:pointer}._fc-signature.disabled ._fc-signature-btn{cursor:not-allowed}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-signature-btn i{font-size:14px}._fc-signature-dialog .el-dialog__body{text-align:center}._fc-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px}._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fd-tf-col ._fd-tf-con .el-form-item{margin-bottom:1px!important}._fd-tf-col{display:flex;flex-direction:column;flex-shrink:0;flex-wrap:wrap;width:180px}._fd-tf-con .el-form-item__label,._fd-tf-con .van-field__label{display:none!important}._fd-tf-con{display:flex;flex:1;width:100%}._fd-tf-con .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fd-tf-title{border-bottom:1px solid #ebeef5;box-sizing:border-box;height:40px;margin-bottom:0;padding:0 5px}._fd-tf-required{color:#f56c6c;margin-right:4px}._fd-tf-con ._fc-l-item{display:flex;flex-shrink:0;margin-top:4px;width:100%}._fd-tf-con ._fc-l-item>*{display:none!important}._fd-tf-con .el-cascader,._fd-tf-con .el-date-editor,._fd-tf-con .el-input-number,._fd-tf-con .el-select,._fd-tf-con .el-slider{width:100%}._fd-tf-col:has(._fd-tf-col){width:auto!important}._fd-size-input{align-items:center;display:flex}._fd-size-input .el-input-number--small{width:122px}._fd-size-input .el-button{font-size:12px;margin-left:3px;padding:5px;width:25px}._fd-color-input{width:150px}._fd-color-input .el-input .el-color-picker{margin:0}._fd-color-input .el-input .el-input-group__append{padding:0;width:24px}._fd-color-input .el-input .el-color-picker__trigger{border-left:0;border-radius:0 3px 3px 0}._fd-box-size-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-box-size-input .el-radio-group{width:100%}._fd-box-size-input .el-radio-button__inner{padding:4px;width:100%}._fd-box-size-input .el-radio-button{flex:1}._fd-box-size-input ._fd-size-input .el-input-number--small{width:100%}._fd-box-space-input{color:#000}._fd-box-space-input ._margin,._fd-box-space-input ._padding{background-color:#f2cea5;box-sizing:border-box;height:180px;padding:40px 55px;position:relative;width:100%}._fd-box-space-input ._margin,html.dark ._fd-box-space-input ._padding{background-color:#a9855c}._fd-box-space-input ._margin{background-color:#c6cf92;height:100px;width:100%}._fd-box-space-input ._fd-input{background-color:unset;border:0;display:inline-block;font-size:12px;height:20px;margin:0;max-width:40px;outline:0 none;padding:0;text-align:center;text-decoration:underline;width:30%}._fd-box-space-input ._fd-input:focus,._fd-box-space-input ._fd-input:hover{background-color:#ececec;color:#262626;opacity:.9}._fd-box-space-input ._fd-left,._fd-box-space-input ._fd-right{left:7px;margin-top:-10px;position:absolute;top:50%}._fd-box-space-input ._fd-bottom,._fd-box-space-input ._fd-top{left:50%;margin-left:-20px;position:absolute;top:5px}._fd-box-space-input ._fd-bottom{bottom:15px;top:unset}._fd-box-space-input ._fd-right{left:unset;right:2px}._fd-box-space-input ._box{align-items:center;background-color:#94b5c0;display:flex;height:100%;justify-content:center;width:100%}._fd-box-space-input ._margin-title,._fd-box-space-input ._padding-title{left:4px;position:absolute;top:2px}._fd-box-space-input ._fd-help{align-items:center;color:#aaa;display:flex;position:absolute;right:5px;top:5px}._fd-box-space-input ._padding .fc-icon{color:#262626;cursor:pointer;font-size:12px}._fd-box-space-input ._padding .fc-icon+.fc-icon{margin-left:2px}._fd-box-space-input .fc-icon.active{color:#2e73ff}._fd-box-space-input ._fd-x{margin:0 5px}._fd-border-input{display:flex;height:110px;justify-content:center;width:100%}._fd-border-input ._fd-bi-left{align-items:center;display:flex;flex-direction:column;height:115px;justify-content:center;width:115px}._fd-border-input ._fd-bi-right{display:flex;flex-direction:column;justify-content:space-around;padding:5px;width:140px}._fd-border-input ._fd-bi-right ._fd-color-input{width:140px}._fd-bi-opt{align-items:center;display:flex;height:100%;width:100%}._fd-bi-opt ._line{width:100%}._fd-bi-opt .solid{border:1px solid #000}._fd-bi-opt .dashed{border:1px dashed #000}._fd-bi-opt .dotted{border:1px dotted #000}._fd-bi-opt .double{border:1px double #000}._fd-border-input ._fd-bil-row{display:flex;height:38px;justify-content:center}._fd-border-input ._fd-bil-col{align-items:center;cursor:pointer;display:flex;font-size:16px;height:22px;justify-content:center;margin:8px;width:22px}._fd-border-input ._fd-bil-col.active{color:#2e73ff;outline:1px dashed #2e73ff}.line-box{box-sizing:border-box;height:20px;padding:1px;width:150px}.line-box-con{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAD5JREFUOE9jZGBg+M+AChjR+HjlQYqHgQFoXibNS+gBBjKMpDAZHAaQ5GQGBgYUV4+mA7QAgaYokgJ14NMBAK1TIAlUJpxYAAAAAElFTkSuQmCC);height:100%;opacity:.3;width:100%}._fd-radius-input{display:flex;flex-direction:column;width:100%}._fd-radius-con{display:flex;flex-wrap:wrap}._fd-radius-item{box-sizing:border-box;padding:5px 0;width:50%}._fd-radius-item,._fd-radius-item ._fd-radius-icon{align-items:center;display:flex;justify-content:center}._fd-radius-item ._fd-radius-icon{height:24px;width:24px}._fd-radius-item ._fd-size-input .el-input-number--small{width:70px}._fd-font-input{display:flex;justify-content:center;padding:0 5px}._fd-fi-box{overflow:hidden;width:150px}._fd-font-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-font-input .el-form--inline .el-form-item{margin:0;padding:0}._fd-font-input ._fd-size-input .el-input-number--small{width:100%}._fd-shadow-content{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding:0 5px}._fd-sc-form .fc-icon{font-size:12px}._fd-shadow-content .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-shadow-content .el-form-item{display:grid!important;margin:0!important}._fd-shadow-content .el-input__wrapper{flex:1}._fd-shadow-content ._fd-sc-box{border:1px solid #ccc;border-radius:5px;cursor:pointer;height:250px;overflow:hidden;position:relative;width:250px}._fd-shadow-content ._fd-sc-box .spot{border-radius:100%;height:0;position:absolute;width:0}._fd-shadow-content ._fd-sc-box .spot-id{background:#1989fa;border-radius:100%;height:10px;left:-5px;position:absolute;top:-5px;width:10px;z-index:1}._fd-shadow-content ._fd-sc-box.down .spot-id{box-shadow:1px 1px 10px 2px #1989fa}._fd-shadow-content ._fd-sc-box .center-spot{background:#1989fa;border-radius:100%;height:0;left:125px;position:absolute;top:125px;width:0}._fd-shadow-content ._fd-sc-box .x-hr{background:#ccc;height:1px;position:absolute;top:125px;width:100%}._fd-shadow-content ._fd-sc-box .y-hr{background:#ccc;height:100%;left:125px;position:absolute;width:1px}._fd-shadow-content .el-select__placeholder{text-align:center}._fd-shadow-content .el-input-group__append{padding:0;width:55px}._fd-shadow-content ._fd-color-input,._fd-shadow-content .el-input{width:100%}._fd-shadow-content ._fd-sc-right{margin-top:10px}._fd-shadow-content ._fd-sc-radio{width:100%}._fd-shadow-content ._fd-sc-radio .el-radio-button{display:flex;flex:1}._fd-shadow-content ._fd-sc-radio .el-radio-button__inner{width:100%}._fd-shadow-input ._fd-ci-con{width:150px}._fd-shadow-input :focus-visible{outline:0 none}._fd-si-input .el-input-group__append{display:inline-flex;padding:0;width:24px}._fd-si-input .el-input__wrapper{flex:1}._fd-shadow-input ._fd-ci-con .fc-icon{cursor:pointer}._fd-pos-input{display:flex;flex-direction:column;width:100%}._fd-pos-con{display:flex;flex-wrap:wrap}._fd-pos-item{box-sizing:border-box;padding:5px 0;width:50%}._fd-pos-item,._fd-pos-item ._fd-pos-icon{align-items:center;display:flex;justify-content:center}._fd-pos-item ._fd-pos-icon{height:24px;width:24px}._fd-pos-item ._fd-size-input .el-input-number--small{width:70px}._fd-style-config{display:flex;flex-direction:column;width:100%}._fd-opacity-input ._fd-ci-con{align-items:center;display:flex;justify-content:space-between;width:150px}._fd-opacity-input ._fd-ci-con>span{width:32px}._fd-opacity-input .el-slider{flex:1;margin-right:15px}._fc-designer{--fc-drag-empty:"\\62d6\\62fd\\5de6\\4fa7\\5217\\8868\\4e2d\\7684\\7ec4\\4ef6\\5230\\6b64\\5904";--fc-child-empty:"\\70b9\\51fb\\53f3\\4e0b\\89d2 \\e789 \\6309\\94ae\\6dfb\\52a0\\4e00\\5217";--fc-tool-border-color:#2e73ff;background-color:#fff;cursor:default;height:100%;min-height:500px;overflow:hidden;position:relative}._fc-designer>.el-main{bottom:0;left:0;padding:0;position:absolute;right:0;top:0}._fc-l-menu{border-right:1px solid #ececec;border-top:1px solid #ececec;flex-direction:column}._fc-l-menu,._fc-l-menu-item{align-items:center;display:flex}._fc-l-menu-item{box-sizing:border-box;cursor:pointer;height:40px;justify-content:center;width:100%}._fc-l-menu-item.active{color:#2e73ff}._fc-l-menu-form{border-bottom:1px solid #ececec}._fc-l-menu-item i{font-size:22px}._fc-l-menu-item i:hover{color:#2e73ff}._fc-l-menu-item .el-badge__content{--el-badge-size:15px;--el-badge-padding:4px;background-color:#2e73ff}._fc-l-label{color:#262626;font-size:14px;font-weight:500;line-height:17px;margin-top:5px;padding:12px}._fc-l-info{color:#aaa;font-size:12px;font-style:normal;font-weight:400;line-height:17px;padding:0 12px;text-align:left}._fc-l>.el-container{height:100%}._fc-m .form-create ._fc-l-item{align-items:center;background:#f5f5f5;border:1px dashed #000;border-radius:4px;color:#000;display:flex!important;height:30px;justify-content:center;margin:5px 0;overflow:hidden;padding-bottom:0;transition:all .3s ease;width:100%}._fc-m .form-create ._fc-l-item ._fc-l-icon{display:inline-block!important;padding:0 4px}._fc-m .form-create ._fc-l-item ._fc-l-name{display:inline-block!important;font-size:12px}._fc-l,._fc-m,._fc-r{background-color:#fff;border-top:1px solid #ececec;box-sizing:border-box;overflow:unset;position:relative}._fc-l-close,._fc-l-open,._fc-r-close,._fc-r-open{align-items:center;background:#fff;border-radius:0 5px 5px 0;cursor:pointer;display:flex;height:46px;justify-content:center;position:absolute;right:-12px;top:50%;width:12px;z-index:1}._fc-l-open{left:0;right:unset}._fc-r-close{left:-12px;right:unset}._fc-r-close,._fc-r-open{border-radius:5px 0 0 5px}._fc-r-open{right:0}._fc-l-close>i,._fc-r-open>i{display:block;font-size:9px;transform:rotate(-90deg)}._fc-l-open>i,._fc-r-close>i{display:block;font-size:9px;transform:rotate(90deg)}._fc-r{--el-color-primary:#2e73ff}._fc-r-tab-props{padding:0 20px;position:relative}._fc-r-tools-close{color:#666;cursor:pointer;position:absolute;right:24px;top:12px;transform:rotate(45deg)}._fc-r-title{color:#333;font-size:12px;margin:15px 0 5px}._fc-r-sub ._fc-r-title{align-items:center;display:flex;justify-content:space-between}._fc-r-sub .fc-icon{cursor:pointer}._fc-r-sub ._fd-config-item+._fd-config-item{margin-top:8px}._fc-r-sub>._fd-config-item>._fd-ci-head{padding-left:8px;position:relative}._fc-r-sub>._fd-config-item>._fd-ci-head:before{background-color:#333;border-radius:25px;content:" ";height:5px;left:0;position:absolute;width:5px}._fc-r-config{display:grid;grid-template-areas:"a" "b" "c" "d" "e";grid-template-columns:280px}._fc-r-name-input .el-input-group__append{color:#606266;cursor:pointer;margin:0;padding:0;width:25px}._fc-r-name-input .icon-group{cursor:pointer}._fc-r-name-input .icon-group:hover{color:#2e73ff}._fc-r .el-main{padding-bottom:100px}._fc-l .el-main{padding:0}._fc-l .el-tree-node__label{color:#333;font-weight:400;padding:3px}._fc-l .el-tree-node__content{height:30px;margin-top:5px}._fc-l .el-tree-node__content>.el-tree-node__expand-icon{color:#333}._fc-l .el-tree-node__expand-icon.is-leaf{color:transparent}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fc-loading{animation:a 2s linear infinite}._fc-tree-node{align-items:center;display:flex;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fc-tree-node.active,._fc-tree-node.active .icon-more{color:#2e73ff}._fc-tree-label{align-items:center;display:flex}._fc-tree-label>i{font-weight:700;margin-right:5px}._fc-tree-more{align-items:center;display:flex;font-weight:700;padding:0 15px}._fc-l-tabs{border-bottom:1px solid #ececec;display:flex;padding:0}._fc-l-tab{box-sizing:border-box;color:#303133;display:inline-block;flex:1;font-size:14px;font-weight:600;height:40px;line-height:40px;list-style:none;position:relative;text-align:center}._fc-l ._fc-l-tab.active{border-bottom:2px solid #409eff;color:#409eff}._fc-l-group{border:1px solid #eee;margin:12px;padding:0;user-select:none}._fc-l-group ._fc-l-list{align-items:stretch;display:grid;grid-template-columns:repeat(3,1fr)}._fc-l-title{align-items:center;cursor:pointer;display:flex;font-weight:600;justify-content:space-between;margin:0;padding:12px}._fc-l-title,._fc-l-title i{font-size:14px}._fc-l-title i.down{transform:rotate(90deg)}._fc-l-item{background:#fff;color:#000;cursor:pointer;display:inline-block;line-height:1;padding-bottom:10px;text-align:center;transition:all .2s ease}._fc-l-item i{display:inline-block;font-size:21px}._fc-l-item ._fc-l-name{font-size:12px}._fc-l-item ._fc-l-icon{padding:10px 5px 12px}._fc-l-item:hover{background:#2e73ff;color:#fff}._fc-m-tools{border:1px solid #ececec;border-top:0;height:40px;justify-content:space-between;white-space:nowrap}._fc-m-tools,._fc-m-tools-l,._fc-m-tools-r{align-items:center;display:flex}._fc-m-tools-r{overflow:auto}._fc-m-tools-l .devices .fc-icon{cursor:pointer;width:18px}._fc-m-tools-l .devices .fc-icon.active{color:#2e73ff}._fc-m-tools-l .devices .fc-icon+.fc-icon{margin-left:5px}._fc-m-tools .line{background:#d8d8d8;height:24px;margin:0 10px;width:1px}._fc-m-tools .el-button{align-items:center;border-radius:5px;display:flex;padding:5px 10px}._fc-m-tools .el-button>span{align-items:center;display:inline-flex;justify-content:center}._fc-m-tools .el-button+.el-button,._fc-m-tools .el-dropdown{margin-left:10px}._fc-m-tools ._fd-m-extend{background-color:#f1f1f1;border-color:#ccc;border-radius:5px;color:#666;padding:5px}._fc-m-tools ._fd-m-extend .fc-icon{margin-right:0}._fc-m-tools ._fd-input-btn{align-items:center;display:flex;font-size:12px;justify-content:space-between}._fc-m-tools ._fd-input-btn .el-switch__action{height:18px;left:2px;width:18px}._fc-m-tools ._fd-input-btn .is-checked .el-switch__action{--el-color-white:#2e73ff;left:calc(100% - 20px)}._fc-m-tools ._fd-input-btn .el-switch__core,._fc-m-tools ._fd-input-btn .is-checked .el-switch__core{--el-switch-on-color:var(--el-switch-off-color);border-radius:16px;height:24px;width:46px}._fc-m-tools-r .fc-icon{font-size:14px}._fc-m-tools-l .fc-icon{cursor:pointer;font-size:18px}._fc-m-tools-l .fc-icon+.fc-icon{margin-left:10px}._fc-m-tools-l .fc-icon.disabled{color:#999;cursor:not-allowed}._fc-r .el-tabs__nav-wrap:after{background-color:#ececec;height:1px}._fc-r ._fc-r-tabs{border-bottom:1px solid #ececec;display:flex;padding:0}._fc-r .el-button,._fc-r .el-radio-button__inner,._fc-r .el-table__cell .cell{font-weight:400}._fc-r ._fc-r-tab{box-sizing:border-box;color:#303133;display:inline-block;flex:1;font-size:14px;font-weight:600;height:40px;line-height:40px;list-style:none;position:relative;text-align:center}._fc-r ._fc-r-tab.active{border-bottom:2px solid #409eff;color:#409eff}._fc-m-con{background:#f5f5f5;padding:20px 20px 36px;position:relative}._fc-m-drag{box-sizing:border-box;margin:0 auto;overflow:auto;padding:2px}._fc-m-input{padding:5px 5px 80px}._fc-m-input-handle{background:#fff;bottom:16px;box-shadow:0 2px 10px #0000000d;left:0;margin:20px;padding:12px;position:absolute;right:0;text-align:center;z-index:3}._fc-m-drag.mobile{width:400px}._fc-m-drag.pad{width:770px}._fc-m-drag,.draggable-drag{background:#fff;height:100%;position:relative}._fc-m-drag>form,._fc-m-drag>form>.el-row{height:100%}._fc-m-drag .el-tree{width:100%}._fd-drag-box{height:100%;min-height:80px;transition:padding-bottom,padding-top .3s ease;width:100%}._fd-drag-box>div[data-draggable]{margin-bottom:1px}._fc-r ._fc-group-container+._fc-group-container{margin-top:20px}._fc-r ._fc-group-container{margin:0;padding:10px}._fc-r ._fc-group-handle{right:15px}._fc-r .el-form-item{margin-bottom:10px!important}._fc-r .el-form-item__label{color:#333}._fc-upload-preview{border-radius:5px;display:inline-block;height:120px;overflow:hidden;width:120px}._fc-tabs .el-tabs__item{font-weight:400}._fc-tabs .el-tabs__content{overflow:auto}._fc-tabs .el-tabs__nav-scroll{padding:0 15px}._fc-tabs .el-tab-pane{margin-right:15px}._fc-tabs .el-tabs__nav-wrap:after{height:1px}.form-create .fc-none{display:none}._fd-draggable-drag.drag-holder,._fd-elCard-drag.drag-holder,._fd-elCollapseItem-drag.drag-holder,._fd-elTabPane-drag.drag-holder,._fd-group-drag.drag-holder,._fd-subForm-drag.drag-holder,._fd-tableFormColumn-drag.drag-holder{background:#f5f5f5;background-size:0;min-height:90px;position:relative}._fc-child-empty:after,._fd-draggable-drag.drag-holder:after,._fd-elCard-drag.drag-holder:after,._fd-elCollapseItem-drag.drag-holder:after,._fd-elTabPane-drag.drag-holder:after,._fd-group-drag.drag-holder:after,._fd-subForm-drag.drag-holder:after,._fd-tableFormColumn-drag.drag-holder:after{align-items:center;bottom:0;color:#aaa;content:var(--fc-drag-empty);display:flex;font-size:12px;justify-content:center;left:0;position:absolute;right:0;top:0}._fc-designer ._fc-m-drag ._fd-draggable-drag{overflow:auto;padding:2px 2px 100px}._fc-m-drag._fd-drop-hover ._fd-draggable-drag{padding-top:20px}._fd-draggable-drag.drag-holder{background-color:#fff}._fd-draggable-drag.drag-holder:after{font-size:16px}._fc-child-empty:after{content:var(--fc-child-empty);font-family:fc-icon!important}.fc-configured{color:#999;margin-left:5px}._fc-manage-text{color:#2f73ff;cursor:pointer;font-size:12px;margin-left:4px}._fc-manage-text i{font-size:12px}._fc-message-error{background-color:#fff;border-color:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:9px 13px;top:16px;z-index:4}._fc-message-error>.el-icon{font-size:18px}._fc-message-error .el-message__content{color:#000000e0;font-size:14px}._fd-preview-copy{align-items:center;background:#2e73ff33;border-radius:10px;color:#2e73ff;cursor:pointer;display:flex;height:28px;justify-content:center;position:absolute;right:35px;top:65px;width:28px}._fd-preview-dialog{border-radius:6px;min-height:40%;padding-top:0}._fd-preview-dialog .el-dialog__header{float:right;position:absolute;right:0;top:0;z-index:2}._fd-preview-code{margin-top:0;max-height:510px;overflow:auto}._fd-preview-tabs .el-tabs__nav-wrap:after{height:1px}._fd-preview-tabs .el-tabs__item{height:46px}._fd-preview-code>code{white-space:pre-wrap}._fd-row-line{background:#d8d8d8;height:1px;margin:10px 0;width:100%}.CodeMirror-hints{z-index:5}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAAFOoAAsAAAAApWAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA8FUuJY21hcAAAAYgAAAQeAAAKdIfzZw1nbHlmAAAFqAAARj8AAIvcpZc9X2hlYWQAAEvoAAAALwAAADYs4uLZaGhlYQAATBgAAAAeAAAAJAghBRFobXR4AABMOAAAAGQAAAKQqEAAAGxvY2EAAEycAAABSgAAAUr05NDIbWF4cAAATegAAAAfAAAAIAHIAPxuYW1lAABOCAAAAUUAAAJb1Yvg7HBvc3QAAE9QAAAEVQAABukvWosjeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFRY5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnjG8mMzc8L+BgYH5DgOQZGBEUcQEAIDyDRt4nO3WZXOVVxiF4TtAoQXq1N3d3VuguLu7u7u7W3CXugs1atTd3YWZNfwLujarH/ojmsyVyXtmMsmcPPezN3AEUNWutGpQZT8V/o6KfX614vDrVal5+PVqFSv8fAxHUoXqQrVUXw114GDloUNw+LmuGqhxnv/zUeGfKZ8nUKeikZ+P8itjGcd4JjCRSUymFlOYyjSmM4OZzGI2c5jLPOazgIUsYjFLWMoylrOClaziUlZzGWuoZC3rWM8GNrKJS7icK9jMFv/NF7OVq9jGdnawk13sZg83chM3cwsXcCu3cTW3cwd3chd3cw/3cg33UZd61Od+GtCQa2lEY5rQlGY0pwUtaUVr2tCWdrSnAx25jk505nq60JVudKcHPelFb/rQl370ZwADGcRghjCUYQxnBDcwklGMZgwXcSFncw7nch7ncxZncCZHcxqn+306luOozfF+v06kDidxMqdwqt/1mlT3/6Ka/2NVqOG3tTr/f9QuX2rs/fdpT5nD8JR5IqPMseqGJw/VC88gqh+eRtQgPJeoYXhCUePwrKIm4alFTYPye5qFJxk1D880ahGebtQyPOeoVXjiUevw7KM24QpQ23APqF24DNQ+3AjqEK4FdQx3gzqFC0Kdwy2hLuGqUNdwX6hbuDTUPdwc6hGuD/UMd4h6hYtEvcNtoj7hSlHfcK+oX7hc1D/cMBoQrhkNDHeNBoULR4PDraMh4erR0HD/aFh4E6Dh4Z2ARoS3AxoZ3hNoVHhjoNHh3YHGhLcIGhtlN2pceLOg8eEdgyaEtw2aGN47aFJ4A6HJ4V2EpoS3Epoa3k9oWnhToelxeJ5nhLcXmhneY2hWeKOh2eHdhuaEtxyaG953aF5486H54R2IFoS3IVoY3otoUXhDosXhXYmWhLcmWhren2hZeJOi5eGdilaEtytaGZQWVwWlxdVBaXFNeAujyqB0uTYoXa4L72i0Pryt0Yag9LoxKL1uCkqvm4PS65ag9Lo1KL1uC0qv24PS646g9LozKL3uCkqvu4PS656g9PpAUHp9MCi9PhQ+TdDDQWn3kaC0+2j4rEGPBaXjx4PS8RNB6fjJoHT8VFA6fjooHT8TlI6fDUrHzwWl4+eD0vHeoHT8QlA6fjEoHb8UlI5fDkrHrwSl431B6fjVoHT8WlA6fj0oHb8RlI7fDJ+jaH9Qmn4rKE2/HZSm3wlK0++GT170XvgMRu+HT2P0QfhcRh+GT2j0UfisRh+HT230Sfj8Rp+GT3L0WfhMR5+HT3f0RficR1+GT3z0VfjsR1+HbwHom/B9AH0b5cTTd+E7Avo+fFtAP4TvDejH8A0C/RS+S6Cfw7cK9Ev4foF+Dd800G/hOwf6PcodUH+E7yHozyh3R/0V5f6ov6PcK3UgfF/hYGVQ4x/aBF6zAAB4nL29B4AcZd04PM8zOzvb++zs3m2f292re7f9cj3JHcml3QVISCGdllBTJKE3RUWaQhBeJYBgAJUmBKICShH/Ypf64serFBHUV1BBEbPD9/s9M3u3e8klp3+/7+6ZZ56+M0/71ec3nIGDP/4S+k8uyWW5AW6c45KiUUlk6CAplcEVCxmixBMOIrl9EZKP5wZIPxGNJJ7z+4yQkSqUxEKpl2C0jSRSyXQqIRKjkxj9WgsFumStSbT5nQY+JLiIx+EN58LqeCQbDmcj5H6I7HGpD5IdVpfLql4JPty/Z9U8utXqyXvU/zXTEG83b7CZiddzYphafQHbWtlFvA5xBdQHV3lTu391j4u86/K7wH3dir5rldUDDZjsG8x2PkywgTy+soXjPn6fv5L+leM5kbNyTs7LyVwjF+UULs1xRFKKsiLlef2e1O8kLylxuJJ4xaU4Pf/DR84++2fo0Q3oq7uHhtT3hoZobGio8hu6vnIr/evf/z60U73/ww9nn/0IeuQH519//fVfHeKM8AwfGebSF+B5bFyAa+bauS6OK0MnS1kf9G0xWyBS3K0kUkV3oZQXcn4YBNbLLC4r7nwaHmRHPzm9v1+9rp//fKXbE2xqCtJX0P8req/97Gev/fWvO/r7+vrphrHKA5DZFGx6RGlQlwcVJUi+1qCMqee1ngPPAHPh41f4R/kI5+LCXIRrhX7IRYjPQRLpVDpVKJfKJRlmAswDmAUwL7zlbClK/GLW2ElS5Lsrblyx4sYHFi9o7+hoX7B45bydRx2186pdRx21a3UwEPgoEAgE/xHkIytuuv/GFR1tCxc9uAhKjmCRkZFdV+08Sm1jxZjHnuV9/gn6OoyLwjVhv+CzwPs7cDpmCPTAAMkL8YQR0vzQZSVISQkwESEOXQQxPtE22to62lb5c9toGzjqrPw5WSwmqRP8yo+j62KxdVH6GpRQx7US5H6oMVxMquNYjtyfLI7F1HNjMXJ5DPqHsrXyBVrhPPBMnJn4fTDTYQWUzSRDBqhfqE2BhZGjObLMalW/bov5raRHfUY0Gh0+n3q5lmqNySzVKsfoexjFknIM0kiP6PM5BcE0JRVqaOMEz3ElfZL1TQ83NsO+iZJBkpfdopIuOonSSSQIucvJnD8MyX5YsQkYRljKxUKJ/r15pBmc6tHu5E+qR8lmFfIn8NVh8dijxQ6TqUssis1wdZlM5EKHJ0AMfIkItER53u+lTzQPN6t7wQNHVoE3lFXUvayVVUp2mfD44/B+T5tMd5xrMJx7BzTRZ4IV/Q7hYUnQudT4jsPLcXZtnfI2zgez4ChuHncMdyy3ntvAnc6dwZ3Lncd9esrb00O/fToXoWGiFAspRc/phUWuF6d5L06cLJs42UKxNlLOZ9lyzGKkl0wX4VsaMo2NmQZ1rq8p5IQweUyd64RRJI/BkN+OiUM+pzoXIo5czptsdLkak95HY+/E0N2C7vp4LBY/PgZ/qzFEd0Ir6lzwsCR5DBqfaIE85vS9gMm5HEbxl4acoSYfeQxbrvwMG/kMenfGav70Na71Z3Xf47ywj+E/cSvsfwcfOPA2XnTDJXddQpeht0FL4QPVvfMV/go+BTtlkStxgzADJ0eFjUYYd402UsznSv1E63JI0rscAAiOkAyDUYLh8eOwxIni8+dKhVTCKGvbHMIWbduLu+NJGBFoAEYE6kq1ET4WzoZC2bCiuCTJVfke+oqipZ08HPWTa/3RYfVqsrcQaY9G2yNOfzTqV89Cn1wC6dvUpwIvByYcXRPKht6Ga9jvfNvpZ96wnjT4HNZ67in1T3CHxk6Ehp5mDfX5oyPqmy8HhAC4E7QbbBATfS0DdO2EPayP6+dGuQXccoQw0Ccim6BSfGIaQt9RnMlUibvxvbW5K9bOR2naCOXUl+xeCj3for5UnWH06GpI3UtWqW+RBpgw/xM7JTbFkTeG3Hb1lw7fbDbbWnDCkhYMV+7FFvjA7MoWeLCjHb5rcC59ecJjc+pl/my+GaCYxBVgjXKkFkyIiCQgfsAnHFTyyX74R1gy+Q9IBuVTCGSKMDNwNftEo2ikYbYtL2d7M2wcR8HeMXLhhsLKoZPyKadHCjXGI0ooJjfYnYUNFw0XsvNai/PO+8K580st87voGW3zj8P9/7j5bX/NjeTAkXuK6y8a+cxla8Zb/Gab0yeHIkqyrS2bK5Wh2WJFVDLDo+vWL7xwwYILF65fNzqc4RomxhAxBB8Xg1EswKyfzS3llsE4buQ2cWdyZ3Hncxdwn+Wu4G7gvsjdzt3B3c89wD2Ga6F+LiMOka6dvskjFThyC7Ugr5dOZtSGxdoaddW9tZHaKuRrvnDYpx6QwmHpg7feusFSsICjyzCuHsA8SN1tyVvAqe8fqiyJWdot4K6r3jos4K6zfM8C7jrLdy3g6vN4W7VtYpDCs6sNff6Qqepvqj9JDL7wUPVZPm9R77FYyDEW7Qc09wWt/S9ov6a+aSlbJhzDw7QxruIaPdzwDGEqAgc3AwHuQlxDltqIGzEzbe4fFpBWKhH4I7bSqhK4a69dtiw5lEwO8ba6CuDNBsg5Ue1TEfV+qDUeKa4+bXWRXNmn/jE5uGgwWbPfeBkW26zP1Dnckhm+DWxFMwR3h3+vc+nLleZVSfg7D73z0TvCW907tD9Z88fVwSp8n+6ZjokoG/1RIqbSooOmM3SA+GXRGIF7uZQhxsM++M/KljSgh4VYrzXTF0nlhOb5ixpuFMzBRCIgGBsLmSO8xA5HathKyo72V8MtDpOlb8ncqCs8x50Ims1Bd0PG0VClO3jcKZNcistxeYCfQ9wi2Em2HQqToQe9H5kWVamLEIbwsPkITVVBbhUOa3CZXg9IBcMyqkACsZYqguFTPxF7O4ZuD3Nr0VE3FoVqzyCEaOxofOYZhyQ5noFKUxGWOpwHG1QfRLzmvFg8HjsPIQdpx4LPQCOIuzwDFWf7HNXmuJq+qq7LLMDPAYCfx3Gr/431ySZwNSJDDnQFRKAjZL/PyfB2IFlzApBUR1i24Ugk/HYkHI7cjqGcyTRoCrjRUz99zz0zXb7V++7wo5HIo2GTKWgaMrkD5kGzr6+K4/NJRhvGYK5MoQtLuahGbcCDa8S6mYhlsjVGfxWLVZIx8k+bYv+Uzaaeb7bdavE5jSRILeR29VrvOeTMUex9+jOb7XK7YlMvMPFxanR4rXc5zGRYvf6SIDkDf16A/v8L/zneziWg1xfDLnIcYIsIj8qlKC0DNCrnNegEz9BJRGMqjSCKTEJ5WIdTQXwNgE9PoHz/Zffe6XAY/vlTl02wey2md12uj37giPBe8om2pf1xv08JNTWG/HKoIRlSvHJ8YLy93DLUNrpiQdtQS/eCtoH29oE28obXrj68CtCGGzYTq81DPQ71NbNTOMdkvuE0k9MtkIvtXtKa6F/aVi5m2hIx2et0euVYor2jWIafSaitqdzYMR2L2tsXdRwzlvtOtA0b1vpBm4c4Fgqs2EVTR0NH2w63bIUBIvtz5QESoYDaJNKwF4kOoBvfi5HfxGIqjMcsfWVpCJeGvFXuxcWDWJev8n96rx7JrS4ZnC67kQrzbhxOdBdCoiwZi7ii6EsMyZsLDUxSArM12kCjQv6yiWycP2oUqdnpMm7YkI1GuqxGewDoAI2efFOHG22Aq+a58kxXmFvxTrkOv3r+cfbZN4+P78xmx3K5zIIF9E2kE7fodOINSCfmEuoWVv6GRG6tuoNcWX8dDBvS8LwzhnCC5EPWVAGI3cNDg8oqpHnIQMB6i8VyizVwpIU9++IX7XbTqcaA8VSTXV8/r/B7gU7ywfrNcb3cfHxKXBcMvT2Yq4LhAqaKOt8lg9u2nDBqC4Uv+WUlQ4BuUAYI5bZvXNfd09O9buNb1cD2dXesXXvHd48e7+zq6hw/ej3jfyxnTJB0d/eS7u70yY/0Ls1fccMV+aW9j/CpusosMLL2jsfvWIuVv4etdLeNLkPsG7yh8lgZnPorsv7Y7r6+7mPXcxM8kX76GFsbnBdXhZutCnfh6T2kb88e9ek99FH0McbG7XV6Eh/hkD6ycH7okUnKr3a3pqHRtr42cA34MvSFCIbbnu1Sg11d5HddUJ+w/l0H/dvA+pX4HbSTwHaEqDKuLYr8R8rJLtLiJJE218+Bavu5JRTyiSYL0DZ8yq2+5GqLEOcvKjcjHUc3/cJiEn2hEOS6tfZ/ycaPzS6gUzXmG7I7M8TBA05By0DDDkKe6OAB1eD9MsT59bhm/we9K/JX33T5sVLXadf81yXjotsuOCRiWvtf3773sv7ACbft/8agxKe0oiFfzyzr4ou/eN3pBc/Rly7mbT5C/M41e04K9F36wCNfWu+Ye9SVABR51t+30//DmaC/XfBcfL4cl/O8wnvzXuLOu8ll/9zeS7y92z86t/1kw8nEcRr9QWXbHV+l16qnk6j6GvlCZRu9mtPGC9raTr/PwnYuCP2YYmupABjJbNjxOW8tceGuQy/+jZyrOo/vBKfsUMAR//Qx+v1OdV0mQ27rrDyqwB8dPnycw544wrss4VYB1nDy4d7pP5tzVWcG/jqVEQXcDzMQ68wcMpLphKgW+Vdf/KCOME3bD/XvHa+N1GGU8fp3+F0nOGif3dV1yscKOHKbdp983PrH0MbEcNCz1O8P7loQelUn/UxnZ2VXp0JvVZTK+oO6ojpft9FfHX6+TlCw7jo6+t/IuSa7KZfblNV84shtzE04iFUzwKevZH+dBadepd3J9sPHGWyAd3mdPszgVwfgtcfNEII5iCiVylLenZwqDgC4kB9AQQwCFxF206KCRA/AjWWp2Slwld2p2cnk7BQ9tbIbttMIPRX8ytuulD/dkCH3BuLxwGtyPC5/It1Jmom/TXJZ/a32ILlrp2mBPdBB90Fd9V6tDXI03Oe2RdR7sSVydKTtRJds7LDKr5OG7risvoUNkQY5viDfEg57mz1WVwgQFMWTdTQMtuhz43f6+49zx88U2wBUU/LlIVZQECzmc2XZqCQQkDIWk5IoYhR24ZwsAkTx6RxIftVhukAdSnkJNbkiZxTmLyl3Son8rFi/nNv0yaVDMakh3NCUGbC1OIOkwRfwHKETvnqyycpbM5GTZp8x5GpslOXMJ49ffNJIJNgaaioHXGFvW9ptcLgZrf44/0d+LtCBLdwIt4xbw23lzucu4j6n8walCd6g3hfxif7JFrXeULJpTezmzlfFbwibUGAE84HXIBZyjqAHkHMk5st5OV9WpHypPECLhVSa8Sh0dAOmTBsppmWlnMtr0bRSpF9WV7B3u0tdofUgPVV7d0z1I4e0qQn9G52S5GxtRX8MJ5L6KE6AdemjUs5RV/Pq+QMJi12yeV02h9VtcclBp8liMnoTu4PZH3oFs8VmttsDdJ/el3OrfVvt67la7/5cikoVB3jg6F/AU38Xl1+Dn5Nfl+NLHm5tffhhQojTb3cGDYIU8NooPVmwuW2EdPXNHSNWF4RIS5WH/b/8NbyXawS6cgAw+hO4M2AEzoP+v4ZBexnQRDnO1piDpuNGhteXGAmNbFsgQkgZ5Qpx6EBAwkUFxSlFcOV4lIhKJ1GcREkPkniOoXtOgtSQtjbbCJRCRp4f6aJUWmRjkmO4n3fKqCHGSu70Rnh4i3zrLETtK3cgZd3T8tOf2jyQTE+weqnLpn4vkeVjgtAndMAlkB7DYiFrsI/ahU5hsUAMbR6LlTdQg9FgMFucIad7oyBsyHZZzTbpf6WWH7Z1WS1Gk+1Ktyy71RfRJ43q+8TGe0PSp+EHZrWquxhPmOAj0PUtPXPctsqXrV6eQK9eBSX4nPKUkBLuEcClBP5l0dDSYhBf5oPOVoeBJ7xBEBwt7oCRF14WLuskBqPbbu4bOi4lGPyQ/YDsXucKBFzr3HJ5NtvrAbd7AnCvg3lZYwDHT/+Pc7TqJEDJAQKDyFDIQQKkWhlliciFRlkiotP1ssQx3nzg7+ub0+nmT6abm9OXYWgsdlE0elFM/b25wXLjjaLbaeVF4+rVZoPAp9rmt1XeAw8cdYE3UkhW3ksWCknqSha+NfI0NlK91DOjsVh0uYU3nXuewIt2t9M4Oir6rRzSbTU00FxuGPbRpbCPzBSOMOLCLzOYgT4jOVJpBegOnJM1wFmqjRxeNrjNHI1JUixqni/KDbI4vz56R4ysB2L31lj1fgSa6qdOm6kx0WC2O212u81pNzckGk02p9XhsJ6BPIwrdLGWjhd/lb7DhbhZTL6C71RlyLI3imvUVB4WLmyNss6tVeJHzlS0zF4CVJfqjpjHTE6z2WkaM0cSEVPld1qMBk2R5z1hMylocfXH5rASwZvDDA6SI7+CujSmZVd+g7XN87TYPHOEvuN2mp1wOTweBws4gTxxO01OD1zuiYD68kT2RAVtLrzC/+Sg9fIfWCW8klnS0bEkoxozizPgiFr5uHnWrGZKwK8cw/MHKusnZv3M5zan893v1mWRJqCSJS6OOKJbIXhNi69+IZulv83lKvdo2Bdp13Ay3qbLLS/LqjuyWXJltnpndOrHH/Hfox/C/EDOBm7GEeKgqUmCUef/yYTtvAOaGDNerIaQy0W9gtV0hVEQ7G6POOYLSWOWsM9yhcWpXubwmV0el5k+ZXZ5nRag9OiHhIpXiB4ICsZx9dOMCXrOuMUXtnzWSiq8zwlFzeBuu027P2UHkk+fy9Ave3V+U2gK1iww8WAyLeQAhLuvuZ6suv56de/1vBwtj6bVswj5vNQcdfO23ZAImbufUXekR8tRspK4o80SuVLri1f478Fc6dRmSD1HojipzsN4eIx9x4RzMB9Q3QchlAydRzoJk+WWaMO2TRoTYdNvN67vnuVznIlvu9BcKhx97HeWLGptN2Y7x5audUiS0eHbbbdZGux3WR2+KQyI7YwMXrtoQXOLrZAbP/rRsSUdGV/Y9zWf4zclIdhoE/p5r/VDZA2zPnqF/wW8Q4BLwN7HeTV0KT8FXwqSNJM9wzimGEI0sSdIOOz9ZGJtw2s/291MrB+oBm2+k49gsu+Fud5Nn5zV6/DtsOAwWXbAM+7QRmyHj7yjXpMsjFTnOs79d8m2DwvJVauSBXWLz7EDZ4VlB3YH1IcJsoM9vj73H9PHGGmZMM796ed8sroqXDo5cr42+dVgLkffggWxc+qk362tBm28P+Cf5gn8So7jkvkSsr9SCSdxI9dFcqfB9wFyIkyZ+SUNFxEV6jdaxSssvpBlTAr5xi0hnPTqF5w+i9OLcx66xGUX/kxNV2DWGNmFPHz1M2NY4wrLAZ/jKa3vbr0VeZFP2XyMbeSdgF92TuYygIUNcgsBE1vBreRO5D7JfZ67mdvDfY37OvcIt597GvFiJhln4owWouFnpSJfFXToOVXmKwo6cIdD9F+oBWB1FG55QggAGyCvkRDpFHKzgdLQEOkcbhZp3BoSmIobB3SfTn4MwipIJWcmoOevnJSn05cqW9x2utzhSxyB7XtrkKwKBtW9QfJYcFMQ3KZgIBBsiqbSEU/Q7SS83SoGPNFUKuoJON1Gg9selEwOoyhaATrYbbdbbTYWEu3qPcF7AoF7grU+GXqn+rPvvMO0B+i+OqmMzkauimVODwTx54OBXHBTILApqF7Y3NfitNoJtYkGZ3N/MwAnweAwuzIW3iiYRDNx+hx2v91itxosC4PwtxBrL0AP5oBV42fxSS7CRbk2rp3rBvg9wt3Gvcq9xb1b1SY5WG9HX+T1aMq0PZ8sIfKN/HeY+wNsCBkhCThChMgS7H6SA1IcMKmgHA49TIEUqjIanfpGB+Ofwnu6mCqUiwME20F9qbIsSn7YTMSsiIsoy2QbElNwwI01Wy7ijlrOlpHjnIXnhtrprL7ZyjjhcJJN8Hjp11qQA66o2xEH2rdPw4zcMbIY8KUHY7FfMIeqazGy1Ra2AEJvtVuNBmoJ25odNoFQj506JcrzVHJSu4cSweZotoetRBBsdhsQBtawPYUFjR73ZEG3x4gF5zYZUiFCKQmlDHFiFOW0LIqKIRnGtHDSoBhNUtoviqVoe3t/e3vE4nBIDgff1Dzc8oMfKDl4bJeSnY2o3HvwGvehuO9+RNGYd4XIw+MaTCaDgZp5oyxGnFQw2n2USg7eHYen8VFCJLtgpM6IKIsGeGYsLRCLQfRjaVcY6Dd4WpfigkeHcNjJOyOmiI9YbaE2A7EF7MTQGrZZiZcYBbdbEL3VnKANSKAQ5hgFp1MwjrQPoHgn55CcTsmB+zHDH39Xj4sQfdeN106zOr4VST73HJGee049RqG/TCQqGaV6p1+pPEqHK48mFCVBP6skEsqE7t4v6fc5s65PAr+BRKYCxGVyIkTqfmLzFin6XJS0b/bDTQ0neFMiceDDBE1F/eo1ZKs/ugfI4veoS4rCr8HfBHz8ni57KM9U7sDEimXkpOjqgIV62F7u6SmvRzHDunWTYgb1GUvIsu01RIU+suCGPwPBgvqQxbLtdUSG/mGBGqGqTEd7ZsRhUQo1M+yVZ2wNKwEfyDQNCk9goJO4Z0G9+56xlsdbxu7ZNo+fdwRE9WK1b9s28rT6+2eeYbyC9/gH+CEms2/hWrkS9Ohcbh23k7t4ZjJ7xLC9tRLneG2Er+fcwS6ULyoM7Sqk8hqYKZXzEgNNip8xv1JidefgPTpl+m6spyMQ6OiJUXfl3VQBthK3RptaD3zwLE4/ksGp+G52FuxikXLIZ4sVXE7nL260ZDvckfKzHX2FDjlto8loxtxhW5Ef6Ck2JuKz4nHeCs2rChC+gfbeKHk12tseHCkmVYUpyb6aLF40QgaULYnEFkXz1U8O5pOphnzA5k963C3+lmAs6okvyfeumuXzCu197cesGR0ZTzX1KoneJOPFwIS9kLccxNedj5LWOu60PLMIYTQt8SM9a9U38DIqOtLFkfej0fcjg5F90ei+yLzIGdHoGZE5mm6guscANBZPvIJZloW//9PgsxpsZuFMcq56OX0qEo1G9qHCzkMTIXq0yWIxVZbZZLPFSk+u3GSxUCrIsMn0T8zn7+jz+UTuqhnqr7CV6qAIKgDLYIiIKOUZRwpwch4BFTLtkGCXcTYMEhHBEorjUQ+g5M0xuTuEcRlDY5If6lVxGiRyEMGBmROa1I8+iKfxWpMs8cTocAF9abHbrDZqFIpWF3XbhofEjpBBKZp4myyJot1tchj65lphV7YtdfJef6DL7IZ3MjmNdq8502mmxGs3uszJJjNLybabKPEcYfkNNAbTJqeFmBwmW8DvaxEliTisgs2jHginCOUzCZtktEpWn8v6ASEOi2Bzk1mW2aGY+rzZ1N5u5wnxNJpLZZPV6PDwjq4uPaUnz1I4zqPrV8SPKC86hduhU2CHxB/5aSFD3Xqvm8TlusVfh6fU5myNkwsB6F8ap6tjF8XjF8U+jpEL43H10lj1/msEq5XvQxYUuBUjt8bvisXuihOmRkyfrmr+qh/oPioKbIvtj4FTb8K04ycikHV8/JFY7JG4Pnff47/EWzmXrqd0qLMAuF0xTY8aCFLHKnJs2X/qqftfXLOqUCoVVq05bfXiRXg6YNHifdWA+maczIFHexy2mVP3v7B/S6m4cs3Lx68qlmZ3tC9csm/xwvZMpn3h4n1LFrZ3qM/jU07qIOPaqo5fskY/iKt7ijocMVmz+oQ4MnLZuiMTcmcYgXxthJyQIOFEQn0j8UGCFwHw/iNBX4f5qj6FM7egujsTJtIP1N6bCHqvQo9P4UZ7NQZJ5df6HI+PqE1Kni8kyTZsrNoo3rkq/+bbde+TY9T5jN5E1rYQbQPJswjTvmX6YhsVElIU9U3lA0V7AYW+gTv607Ds/wYEWdjnu0gn5XyHfvT7fA71DcbACDN18zc0+hdjup7Dy/xd+rOHAG+aNVXaeIiTK24CxGW8yu2GrQ2xDdyzdhd/VARHv4Ei+WfR+87Xv1Z5ldLPiGazWNllE75oMHzRYOJTRfXkQoHcVAQ06GQpGpXITaiH/WlyTuUNnl9gMSZF8wJR4E/nrfxpPNVlo4/Txw7SJ/vXz5b00kOH+eh0fGKAyJUHCkX4KzxXd6OPtuqDAXfSp59AeZoB175kcbCoflgsElNx6p3xyN+nf2A8BNSlQHwSz+0g9y/L9E1qdCuEiRA/wzSybkF7f1tbfzu5cgH4EP7wiAn0iQgjDKLaTb0Vdaja2qLaDaIa2aDduAl8uHZMZigHrOGIHanPya+gz5Iz7mcdbv8S5rMLsL1RbjPDnjWRGOptFdjeZ6xufrDQStXtL0NQX7tasFhmTPXaMiX5CPm0bfvG9Vu3rt/4203rtm1bt2nb4iuLzbLPJzcXr/wSBP2S5IcgKTl8eiFCpUZPTb7PMX0Wn2oIHnfKccEG/TbSIHskTwQuuaEmqD7hcxS0UgXB7qa+0GSJsO/tw2VqOkEfvw97sw160oy8ViDfiSymy/Sc+9X2++nJ9624bwWG275JT7r/uPuOm6BX7oJV2gqYP9IryGBU8srkuPeTAYpToyjVz42knPWLxJjOpsqkRF6xe4jHTp5BYpS8p2QJsshNKGRwtaCKWQs9SZZlFT2ZfMlP3yfeBo9Gt2aVH5icJrPLRH+gyyOQiHXoxQGd/JKs46r76O8PiTfU4wnuaSN15GS5FtrcHKMvAUhviU3cySKAjg/FyM9jRITQP2JPMyD+ewb6T0cKm4xWwfwnY+qHUMMUm7LXtXEZpmO8DHGZmawvoogKkFMK4IyCUsxrIkwR5qrIxMJMWFmECa8gidIG9EpO0MTuZcYukxXkFuMS8THUIG887BpVg8e4cktLSwuhUIQ4Tzmz1W21Gq1uj8XZ6PTM6naanE6rLWAOOnLdTuJqSOe6Y6G2WY1O0sWb7UGbX3TGsnZR6DQeYYmrP8m88cbylSuXvxFwttjgVRqbXQGBP6HfYJLcoqHNGDHndwUGu3tj4ZTkd1idVou0OOU2eZJsfr7E74A9oQ0ovxVMgoD/g+x8hqZwAch1mvHJO4kbeUx+XNGoUYwIPOTyjAeF61x0s4I87AHIXkJ2lMZeShlFGvEo7QPzmpIes5UIDnfD2od4h2Pf+qDbYSTEZnLHm48a6ErajC6Tdda8oflWYo2aj77pC0dnnMQ6f2heT/Nyg02QDcSw02Az/BLufsFm4GPupqBiEwmxmtSzDd5AOHLmAmowLDwzEg74DORKk4UQItqUhmabcbklGwoYifrNSMpy/NyB5V0thIwRIRjKqp84GRr0QsNXC8Twe7hDXYOmiwfzbT+dBzCI87LTkLKZaMquBDa7S8xGwe2XTWQFWWHy+11Go0m9wq7YyD9NftllFE3qXZBhNLr8fsyw6zxyaPM7NArYkQUgG0K1xQjTRMWb92pz0107Nx2kbnIeZm4mJiYmsZ8lzTlt/qkjyVSanPzZ68oBB9A7smw3R9ySvGih1+bzWW22hGfuQi/ZkijOXtjW1LNI8ZFBo8U93Nw622MWB0ykeYBk1F9u27lzG8nEvCW3VTQlC36nz2D41LhgCclmoUdssc69NXrs6FhbMhcKSTZv+aS83yZndRj4Cv0NF+A6uB52firHgILPWOXXaFCH4dwO6otoqsR0UnljUle05uAVLRyzdLR/1tzhWQOj43eMjw7MGp47q3906TGDc/pP7us/pW/O+bP7T+nvO7l/ziCT7R2/ONOxJNOIBxlL6NHfNMW6i+edfG6pO64o8e7SuSefV+yONY00Niw/YfkJxzWEQg3HQWB5Q+M2Vpt5I3pt8PR3+z7s6yHASEa1lYNsVo12hVeSjSJjuSM8LJSiRMtEjgeUY4xeeHOtOySfmEZFcoKbCwSTpZysSfHSgDuSZG54ObzO7IHu3nIu2zNn/ujR46P9PcPr/jvrkeClAq2OrsDcZMeSjuhnjx1f0NczJ5NthI6YM+Tx9XapBywhCz1HF+5VPmOhV+bazym2bYK3lKVULtMQbopDZ+QHdx/b5WgNQIOSJxuKQsel5v6d9VOhf35XJt2O3UF77AGLpfJpo8djFwSR7rKEdRn1d9g4pwFeHG6UUYV+4vxc7QBTSR/Tnn4Y06XzYUzn9PQtGD82MdDZoI3Bko7qCDZMO4KPNHQOJDKHGLCJdXclzej4vHbmjavTk1Mm1WF15SIpTw6V9qXsKVlwV+HxrVPwsNbKBQvoagycgkkY68h+mAUX9n2IKeANvUIaamMTesb306c5J9Mj1ISUsJ9qB0iFCdh1Y9Dzrse2gufJck/wwDtBD33CEyR/u90TtK+gQU+fol7tbmhwk20cwkjAU84+xPmSmeOghxY91NHAr2l4hzqgq7g/qQ4w9YYnAUVRyzGyEKD6vljs2Xj8WYDdQSDsf3cktYgzEQV4QGOsawRxVZf31xNjFoe9JAO7yQJuCbeW2zhFNzJ+iLHyTqsVOdPRvqpzQyazoZPc4W1s9G5E79ijjvoCpEC6+sfMxgy4T2LyBl9jo++Yo46iRQxs0EuSkzQ105D3bUx52xvq/zEx6yqo52h3lswK9P2YmGpjOt7+dcZvi8Lb9x56HEmcsVTjSOWkmRSvV19o5WoOi/F2jfxVo9qdnKY+z2jgdqCZN72MwZcZHXyxegtL38BiB3O2Kj9GEjvse9QXkpgMGAKatkCVj/EUH2NzMF+jxXM6d8FM+YVTB6L+kJdQOzXrNJSTR6jJNx0GaTst3tkZ3xPPZOJ79pjsdtMes92uxpQVyoQjr8Y6O2N7WDnMNWM5PoY98je9eyw64+9vjPFnSRa2ZuJFrFWMZ3ps5iI2XDTbbKgArH6I/jyWx0r1aHlYSqcffqnzWufOrOfQugeDQRjLsPPqksKYWpqxEz5/GAMSD/+v02czCQaz5HVi0Czwouw9Al+z8qTNJgpWk0JaFa/VDkirVVTUFxVP9bzI+/zTuq0DPCl+NHsPOiOOsZQhyBkGGAKvUCz55QGa1LWY6gSMfCra0xGYTkaybe5Ab2fLVTdfEIotaFqWaU4vvLE/uOFi9a2G9mCwvSHd3Z22e70NXi9vC7b3xNSUbjjjFfBQJpBiuPYryeIbwUD7aXPnOdYvOK47FLbN88Q7557YfX1De7492L2kexDbaPDqZ2S+WMP3Ch9RC2KouKcIjoxpdzU5MkIfLVTeKxSoq1C9bznwEMdVz+Dsrm9/ek34NLT/YAGbLZBXtOavnLZ1bb+5Fto269ZjgP6rcrpQaqhxu6qaG3/Zg7ysPeTRPRhQJWh3D1yfifrVVf4ojkLUT/b6o3sOPMQvwvaRjn6TfwD2hjDbyxjDX8xQJpKOoGaiXD3lwhBtTAbcqMyyAB/FlDTpVI7fuCyUdffNG27YHvFLvePj4dWdq9u2nrUsHG4h21u3bz82EmvdUVNsR1iSesfGIqs7yYtK3Jxr7oo2m+XgjvD4eI8kRY7vPL41HDl269ZWsr0tFj12+/aWHXXFxsZ7fT4oNgG3v0O+UnM+qAoZz2ymB5qbK4ZmchtTCPOw/vwZGys754D+DDFpW5nr5ka4o5iNiQ0AyfC8PeyNXmUCQwKkVzhMjPx/UPKXY1KyNSkxj+yti4z7m9qa/MyrfOU/WYy+JOnJku6mBtXr/+9L6Pjfz8nP68bhX+jv56Z/m9rIxUd8kiqOdiuzodEMe+Ji7iRuJ/c57kvazoh6P3TygHMvEaeAMCVZewx6wvJIfaGDW6KHbokcsaWbUEca9Wbu1Y9H30fuRc2Z+xiG8BXdNsy92rHre+9FdSj01CV19TBQX1GvMLUeb0Ndnfsm6mhHqFmd+3RTHvfBQ+Bz1Gepe1j5quoPa6G2pl4Dfg/r1+Rwmk2eV4CmQ90Chetk5xqXsXV5PvdZGJk7uQen0TfwitqhYKaGk045ia4WDwWSyCHRktNlRdIzoFJSkXRxJpZStFSW49W06mUpDzkCRvJFJuXES5Tyep24xpJJ6KUB4KfFieYHJ+5QikYnjlT+tqr0ULYSh8/roHaf5CTW3k9bk3GT0NXj4iUbsfM2n8HV0yWIiaaffpcXeUe+0yYMWivq47YBwZ7JOyCNkMcJFXj7vHl2XqAP2jrzDoOR/y6xDqo3QAJ5nIoUMp8VBmxQ0GiwlbrIYvxNO6/9ps/rS6fvc83KGuBnLLxN+r4B8qxNCRGe41CqFpWLCF9KKQaSTHUbiCnI2z0GIekTTK0ZsznTahJ8KYPBY/+JJ59zG9yNJnHsBKPxhDHR1AjRXN7jbW32EouZwp3ImBjo6PCLm8ZmY4Yr02GnZvMCcckmkz/TIfOecM2P8UTcKfiSAjTP40+ZUjmz/vOazuMr/Jkwb6q2VJBGOchGCtq9IdOyTvkyniupvIM+hTtcD+RpPJ+v/DpfvfMpKNHESvw/cry70sT78rlcvhLM5fM57Tlu5Rfx6/+vnsOJ5tPUGDOi9hs1Rn5TebNE/lgqqb5S9c6vV4IH9mMJfn5Q6Tuwn/9kCf4OfAP9Kv7wJMNZk4CzbpiQseraqfgYg0Q/1cPUMfEBRYWRXmUd5lcVAyjDDktJxOWrJxcAA0FBfy9luLCRfFGT270KhAhqKJtwG3lVU9488A+H70nRjdwK41P3MEXAjwW7W+IlTNe0mJ/8BqQTnxMyXD4+xTSdX2X7E4fHVQ88BEQOi38McUqGfY57nhQFwe7xGJ/Es68+6rMRzuF7ui7DZmQZH3O4ueCZ26f5/+b7GQ7vz8uouiDlGWeIKSWhyq6Uz+mxqsUyUfJpenqaCDEMOwG8O2JBtImQ8wWjuOIPduEGg+EGwf6HFZSnBv58g8UAGaYVf6CENxt2C8Juo/33x5mMwvm8hZ9FbjDa/rBChJhWDhogWE5r448EG+EJP5kLzfNE161+kvGJR5kUAwasXopRwIGT0nItTk/zAhpzqBnLSUVcUsqR3zo8Pjt5rkp8WaDnzYRUSTNUy6FftVjUXZMDx8S55DOWEJ8iUqOXVKmQ5yxQ0+w20+eq2D+SAxZLGGq72Bh57R9r2rrfgOqcxtv9WOUfpB8BBOaqqGac7e9IPjLiEY1EykypEoeknCqTAoyJC/r3THLu8gXzWtsDscDg6bPVK06zUDNvi1vvtVNqp380CYJTksQz21vnLVj+Op47en326YOnWiJWwWqF1/HaNb6ZgaP7AM+2c259pcaraxR1q/jNQeXA+0qQXl85jV5/4EX+eweG6D4lWDlADbDy1O7WPk3GpPJf4ykXAag1pJ0RQaShirM7AOgDAq1MSKm1YUPNItkNGXFWxF0q40kQJia5pfkoOTAv/TWUNj0Qy9sGbfnYNzHy9a9bnDaz4euzOiCF3Ps1MVawthQeFMw2J0+botGmQlPlL00FmopEUrTQRB1NhQGntfIXs5MqNAppkFN5LcZTp5k6rE59r3gc5pUH8LHMpEafpJQyFB98gAoSkq8wGpqORjHvY1Zv8g6aLCKhC6NF5e2oxDdCjjr/5i9f1LQwtvNL6vu33u+PkK9uQ8394aPO2/PlC5sWQTqxQnpUgy/bl157QkrZMDq2a/byu4Yj/v0VC8LGbZCcTGycP7ZzzvK7RqL+/UyfV9fLF5lGO+rLdXBZrsjNAuxtNseV8SHhcVCspJkGySPVrUlQRLS7WdavpH7Fp1zPDm5pIH2bd27dsL5/wM6P8MQ9f/7p2y5VPx7BP37RSGXjZpIAt0Xzd60cKW7eM8KXi6uPP2vzZsdFW07uG+DJcVu27N+8+VubNxe3bBkbmfir0iyv0l9yfsR7cRXKEeqgIur3QYcOUC8qz1e15nOoTZ+mhoEzx909awqGWRt61HBuxSx7Yn5WXHLeC9aI9ZxWS1SyzrVGLddZrfQX+eP7jLNP3LGxl8+Mn7Bmrn3e9jnqD6xQyuqPQCnrdZaodUIm+h2GZ4W5welwqlSVsAcMR8ozKYdfqp4Bxq2zaoAlRX3bcZBndTPpMAbWbTrDHQgkggHTgpbmkj9YaM9IBm/ZYSclu9Xfbm1YckgE45tEbsJq5LZM62gunOhqDgeN3mw0FHW5Qn6vN21XMv3zJ885PKHzNEqAKY4CrjgjrsbBuqhJvFXP6TAQUMfb4hOoATmtkHEu7HHr1uEBhZ2WkHWnhbRYQpgQxoQwXGpFuTqRuFo5EmtDPcGC9Xwhy06rZZcl9FB9tF9XwdXPeF/Nx5neaFmXfuh8KXoYW5WCprfn094a31XGmcakqbrlkkQadltAOJle4wCR6Yctw81ySzmiuiLlFrl5uIW8p7p0IXgup55pscybZ/E2mteZwTV+UB89AQA6LVF/A/PtfAz51a5IqVWWW0sRJgYfqsrIsb2XLA2W+fPNjV7LWgtrY0r8ZEIlu3qJ3cX77eQiaFvncz6r8+eqvPalgPN8gvtUnc3IaWkreVqh+Uxqz4h6u02zG/ntEN5C3/42Hmz+tkuSrkyQ+Yqi7k+8jWOrnj9NMXJfuCsM7tv6TcsAj09hVC8OwRHJVa20DjVz70iojyQSZDShztZL6OWHtYax9PC0OZPnH7U9K6PBtoN2LZQNOgFWoBnnAT5DOgHN4A9W+J5uI5tXWN1jFLo6S/bRLPl1ek6KVwZTWYf3zCctUUvrOdaIn21ccw+9wY1mlxVydvvRG4Zo85wlw+2C0Dn3GPUJqxVqSmxfnGuNaPT+K/wLjKeGsN7PNQC0TnApeCN3HCBF3K0UeVlMK3Al4coXwXPD5XVrJjP55ytrRmjDKZ87p+Urm89o+SK58eaW3fG7Wy7e0/IJvrKGrqu8RRvoBZU13ziZNgyr5l0tt53eckMWCv0RChE7FCMLodztI5W3qvvXTfwc3UJ0lEujXroXJY9an6XZEhVJmZRlJ482dtNePCQEd1m//87V5qLHOZ0nudqdlbtdrs+N0aHxyve3dp1V6t68uTt/5uY/JAYHE5G5g38KtLcHpM523ubEku1QBWu2O9vGK98dJ+edlT3rqs2zZp2ycXAWXTeYSAz2phIb2+VAe0tjQJfBf4FeiCervDiwNQJ4eMqttibbX8mdVfF7r02xq+/ayKM22/vkTrMgMNl7r91O3DY8qsBg+V/5W3nukDay29iIsC5Po3JPzQXj00m0K10tw99y4H36EzQ9s+sbiW/k9ybujO9J3JK6Rdlz1Z2JO6+6JXHL5Xcqe2m2ci3Nqg7yF5478D5vG6xsuwOKf3evcucv9ii3/ASKqY0QaYJADO50NZQ/a1B14PO6684PHHxm/HjuFG4z7Ddnc5fO/Fzs9Fr7dSq9qANYDYvTZZTroFX8cFpr43ii/FnUxSQdbM+5IrEgAe47h7p9WxlVwNE/o/ZLUpdW/UrXfkki1k9+xbT0+xOon687dRSbx+vCuoC+Br9+UD8u/0/0Gs9OjlbPW/cSZriDtx1GE72yVOsLVEltx+f0n2AymL1W9UGNmq20Wnzhf/Xdx08U/V4rYVK4NsAJuAkd3G/Ce8u6FbQRmDVbJ7GVSZh98AkPb7wIs7wYJ9kyOxdWgyDK+Zx8cCoSFYcqW+J9Ue0gR1RNVkPkVxPvUiicc+AdXsar8lKfQHhecBo7uwSXRegTRINRmGEan8KGK+9Vf0IjBOukVao6rH57mJT7DXbBIAhdXYLVKfQbSKU+Qaj0CTYjbzR2dhqtTiP8FtH1Pm6lu2DXiHLtqBFMqmfq9aP2QlzTVanKW5PT67HcNXfbnDnb5qovzd06FxzaN84emwVHWnJ4V786jBmfZrksZxN6dOecbZdjTfCGsseegGngDR0ytdbWeJt+CvEo7mjuGG4dt547jdvBXch9BrWP6sedGbk+aHr08m7tVZCQrDuZMv0ZxboIQcsvKLbTLMBgj0yEyM3PTJwOdbwzcXxz8vzoM5fFTGgYwLsqdnrskE69ncTVXyN1jXfNBsFEiP7I55g8gDq7vm3NnnTlZqgAhekch/dSTfOw6l3GVBLnDXkbPZfNZvYJLhkyOT0Oc40dRT/Ac7S5snySi3+407tizTrJEAf1awtFOPRx4JbDn6e9Y6NIjbw5aFq82Oh0WQ0G40bRKlgJOdTZXI2/Pt1Z2B9tFP1mgwlaEgSDzekSNpoI2T/1PO0UO6bD3CbuBO4s2FcugBl1xQz31ClH1x0aEqtMsAa9jGTQLRroJBLbWhl2V57ZpDu8ZY+1Dk9Omyk5NrsA9fM6st61ZrOiGA0Gu8ttVBSkARQFKQvwGzbGbo9NcUfQbBn3OLJMY7f6U55Gb9bhUX9iwRaNbpdNEIyTP+AF3/zfOO1eRu9sZg5k0p6zi4sD7qidKp7+WxaTVhfrLBFOgCzKbdm/Zcv+F9asxFMsK9ecuvKmlStvenDxQjzBsnDxqmy4OQzOjT/O27bsf/6RLVjsxTUri6XZK/7rmzetxGIPYflbpXC4JRzeppn9n5D5P15ns3nmULYOn4gd5uhjZYw3Hfjw0sRDCXAIbduQvGVasoy8LaSq5G2qcPWI+gY7rarxH36k4wGlGWqjoJRaZOenmRZolPAdh3mws8xhiZrVly1xy+VGanR63MbTjqBDscdCPSGreqeN2O4RvW4rNZo+p9OXh8b91s7syVFO753h7swMBjuITkj6D4vLqZtHRi5OPJWY4tSP+o3GfsFuFUWr/Qiv3HbgbboIEaA9Ex45qd/oMfYbeMFqPFe0CLTKL9oHfRAGCnBzlarWmcpKMoFDUiqjajLqVOKZId6hyQgyBLEPfbttI8a0kmCqQ4f5fENcJ6gpQEDyWKgz9FqyzJeb1XPsjhs9drsnvAS2nmabtZEYnaLFI3Sbgg5xN9kuer3ix5SnoQC5GGngyjXoJxIaaUu3hrtCrnBa+h+6BHbdJ7vTn23rM9nv8OYL3jDfSH6QnsWPAJnyf0TeJBZNvCMu3hI0X2IOEtL8K7O03u/8E1LFf0J6uSv8J41Q/5OUDruGp9h5r9q5nfFqw/+k/o2MGdiNZZZoWmbvn32EHe+joQuH/kedi4a3yWO67ZeqffCpTzcN7llmCIiCFuHixSPY9L58wizwEc11v6AZFEbTwbP1M3dML/SHMzn7MK1JybpInXxtR5y+GI9XWuPxT8Vin4qTltjlMXBw/xQmVe6t5tMfstOML9V+20R9GfEOnXb5qS5jxFEuc73cQu0bOVPle7CDHiKNHHRYTcof/E0SKPcGnjlT2UdBSFj9K7HfzRJ6WMLD6iqyl7Rj+FPonX3SSdqnR15jJ9VcHwO5TjZGIM6KR/2R4Y95EfP9kQjGoyMfk+H6+MX1xXE4HOx9v6vTLPUU7/HcGm4Ldyq3a2YUTL0+67QRvk7VQz5MjI/FetoDgfaeWOXP1VAdZaduSxCPoqh/Sky9by46AuGAg3nFacIzIGDuQDh2y+Se2eDAuqGgwxH8hgP9qUFdRo02fyV2DmkQevJYjktOnDnqJ3mpipnydbZJWAj2DtQqhClTzMMlo5cvKkK+jCFFTLOcMoaL/N7qpj+iPe7KyX0fTQo5lhcKywuBWcVZd5KG/hSfWx2NrM7xb169andYgxThML5pmH5+Mow56k+XLXt1zZpX2775zbZXH3741a985dWH06+2PgjzRa7ZA5NA40za2zmJ28Zt5y7iLuau5K49hO0dzSLUBOqJkum4pjwrIdaEcKKTkBw7c1HUJgDCDIAqNfJrzYxWsnY+FevOtM7s2waoppeuQ35qI9la5A1NmU2ybBqQ5DmRUSWASdKlLOpt9EKkct9h8q6pGmmv3kn/wajtK7Nnd8bWxuNrY/nY92PoYrrP26CdEzWS6VM2DyUYxfZZ5MDbh8t9BBs4dcLY3SkTnl99SWFfUTCiDnisedJx3JRvgdTqth/7b2i3C9NiQpN07uFB4rsx0gAd91aMNGu7u+avZrj+kQyr4/s9w3qA0Zay+ozWWaRn4lto18J71mDP1a9Psa0IQqKi4fo6BqOpitVp6Z8/esGCBReMLlzYva4b3MKNC8sbyuAWLtQzdldP4tFrRy+4/oLRoe71Z63vHtJvLOk9zRqhuQaGazr4vdw8WGmrqjgZ63vt61g6C0GsM/iqb9DxOiBaF5FRp1Quy+V0OS2WFTktRmltTK5+jmzTJoTmm55RX2JQvebDUFXwqrmRoSH1R2GvNxxqtjUZmwTF1nx6fZTeDfiYulf7ChlZBTgBYhF7qx8eW+VNhpyVK7UvEeAw5SqLSKekKFJYTLjTaXdCDNfFqvov35qwjz+dhPNI1vFrOUWeSQlnNbBtLVqrefwYzVrNMevnnzNv3jnXoDevsKpYXLUZvRmYrFk575xrsRZ4I4XVp6wuFFZtWVXgar9FgDJO/IrjjL5Ih7hkUscl02lcAChwO4jsvmqI5CY/CZT2o0DuoCUydOD3vJ8gT3DiLMhe+hf9TEGZzb7VjI+1GTCC7f8Cz2HKAQ/pEGkHnyKQ8pPnyeXJM+amw9nmuRbRnG8hcvPgvfeyG3r33n03WVQbu17/jNuDRfwCW3tU4/uu0mnZvTrfdxWjZfcmi+WofwviW1v80Z51Z0b9m7GZzRi5qTZCytoX3fzaTT/D/N/83/k2/cwhMxcZrWpZR7VPDSBDSvv4ikbtMptgeDmZKj7qw1Akt2g6VRqk6QxJ02NcpvWCZH/RKZtF65fMJpqk1kDE8V1rg+1xRyRghbjJ8l9W0Sw7X7RJxvXmVsNSR1dk32U+L0+iXwmWgubbo4LTI172cGPGwcdE9xM2J41SbzhsvcEctD/vDHmoeIIIDqhk5/P2oPkGazjshSJO2xM+x5o7GhWh4WJvodG8b5mdWg3L9jUWfeLFDYZooMoDf53/Hd8C2M9xbL5s487jPslxQiKtpNIT/2W0LF79xovkZ8eCU6ID3xlCeX8ZD2Di2s3L/jJbuemiXpUd05Q1e2yyn4e1W8pQY9nnhxUM0wQCsJZx5tQG2AyipqTEZ7PNyVDAzc8xm9JNVxy3ds0pq47qCnpocKRjrC0d9lsEwUJMTbcZtoeNJos7OgAgyhvyN3q6vHZ/a//C5UuWzN8aUYzGWU6fPxJvvj3cBlhca6Qn0hIBdyNcJNIWvlu7R5ZFW8Lh1nDEYGz0J4Ihn/GE0zasXnZhKOp0j3Yv68gb+WtH2mBuC35byBrocC4Z9c61QMsFb7NAeSKa3V1nkHR6YVevw9YQOGnuwqVrVnplX8gjk1549UgrXJcD7Q2/ER70RSJwm4O3SORmuMFvV+n6x3Xexky/y8JYf7qylibZPTyH6C1L2PLoo7qm3/MQecFyBK7EGxbLY4/heUmPW3zeYoE6Vd1gxJ9RaqvUfPVwLeCVN3Ff4R6qPr9Grx7Kpt/MjTbzMmq64MZTzstShMnx8Ui2LCpp3UQjm2dMmxKK+LVDpzg5mX0//Wypj4GbQnnylEw5SrC8JOrfSS2W2fY18f5JXdR0LvLVjq+3/Hy90eIcDxmTAjH6BePnYxkipIyS1eG0eeJ+m7dtcUZICdRgkuwmh9FmkyI2f/Pv2uRIRF6OXpuvoaElGLxKmCMkBaHZMIw3NhRIY+KPVwkE7XTZyJN15qIvET7Z4GpoVQRBMEgOq/1TgpCIC4LDYnGKBpNgcXYnm2JGwWo0U8Em8kbeIJqc0VATCYRODQcC4VNDgfZYXwxcit++VRAeF+jZ2/FWw7+vUtYzPGcluPNuWVLcQPTgiSs30kAA+YAwEpE4Kh4edfxZ94vX/azvOLjIzvt3wN8R0MWT1Dz5SfYG9W9rEzcQy9pEt9rUdw/pP6+Pm+C33lYDq6daHJkGWpuJTHgimyncbPqJTk+43OrHI51TPn73cEdl4WJyf0YdIza8jR8JfFe2032ZykKykDwApdX3yf0d6jij7SflJbW2qU7gdnCf4C7hLuWunpkEZYb2T71Vnt6/1dSRJC/TWDLN6RyoGdfShDK7mVAG7jpDazfWAO9YzTwptKuVBpS1o3F3tendiKbWlq6aM4W54ZtRf1/DfYn7MncXdze37///vp9Ws6C2JVL7GSX3f3CE1L3VgyZkFWL+Gh3gU/cErw+C+5/gSBDcGHZn5R60jxfZj+4/OV4rq+PVrP0Y4SLqb8Nh0gg3/CBfVedQ01/w1Xxjcaa0Rd13ASc7m+So4Yi0xQ3Ib3o7cbui3J6YAUVxYuLDBLgPdYVB4SCaveffoNXlmVHk6qwqRf4TZlgetijc0TRShPwJdri6HeoSJOlm1RDe3NTvD1R5DItnaGGmjgdUxxNmZg6hIjvFGDnCJ1TfjZEL4DUui8XQdF2MijbTUqPFQA1LDTareARQoX6MFPv5SLSq1yw12USrDepRg4XRdH/hf8ojlxttaQ3UvlVaxKMGiLCk696NWSQoo3r4Id6RXxYvx8H9cNDZ5przTKwUp7HuOF1V2esPR6SfeRw9A1an8TkpElFNTOlHfS7B2+PdcbUZPDLg5B2zo4UY+TXEjopKarMUtff3W2lUIi/7I6qqGZidxL+iU/g+Z3MXcp/mruXu098kSP4jCJiGa2nmfnyakQ7dtpWGbfkBB9Vte5RlDZM62Ogx5DBcS/LJeXgUWWKmdPoJls7/K6jX55syvKHLQHjR7bBYAYluW+G3Wg1ZAzGY/FazkVjbYo2tLxigjOHhbFfXxmw262UnDu82BAUhSAixmwWD3GS3SAaDpH+q411iJqaDEK8PR55qrvlTzwk3GQxGo8lkMZrFsBxu8pobHILBKpiIwFtFiykoN6Z7DX83gOvpP6a395j+bGOhEdzxhk5DwnC8CDOvyYDmLL2nQbzTMGGL4wWg5avyjEHtS1EHG9Q7dFrNsRmNPmecWB4pV9Q3ArCSr0r9ijBjdyK1zMjwu2+6ic7CwLcwCWLqL3gyQOkAFW80iKLhRn4jRAiZjNM/R6XKp9mH9M6RosOVO+nNUxNkKG6g/TzPNxkNMYOoUF69n6UNUD3N2ER5jafya/45Pg57eIbxzzgzmZitMmEmcUmpkGSMMrT1yk7aaF/6IDj9DsEjyjM1+W+oz3Zk1Up5sc8LhHu5sctL+HRFFL0+O+EdPjMpWUTRolbMvkafWX3WIv630pNI9Iygl3AiWHIGEgnyNCmlF5fVCtRXn01DW3zqzI/tPi/WfVarW8GGSMnsc7yh1wdv2NUYbXQmuhL62H6CfgCrtgHobdQ4OobjvJNUW6owqZsL8GrCoJJ26rvGvlKqkCRYUAvXZXx+l9HttsPM3GVp9NFe9C3gec2Vn5LrtSxRPV0PEH9NGhRSPyARrKC+Zg55yfUkIrrdqIGhvo6Nbd0F1J/N7THuMnsbKy/vsngboWlfowWauU40GOxut1E9zagH3qlJg/I2EsWi0JI3RK4jUdaUW2RxTsd9b9e/u14rxxtnci3kY51d91XGqfyoui8oyTNMq0edpjf6HUPbNJuYOZuxMbqaff18B/tC+aXqZwj0ASa8xBKi6h+IdFBCZTPDj0g/bPdPTdzx++eb9Kb7xj5XG9kTljbi74HXO75H/3HI7h2jQxFVABTon3BDFIi0YMsTeNCzNfqM1a+6HlEWiHzJOFxE12rk26rGpSt/npC3oSgPWQFMyWHHCJk3TOZptgv4RTMQzo1Uy6rfQjVDTff7Nf5V3lcnX+5B/Y062XKdkoa7dsQOhXjITDKXMIqSLquS2YaH+0dR3/XSK7tpbtasyk+7L83vz+X25/G0KP18NB8Fp94XLUQihehdLvkUp5/KrlO8TsFdDfscvA9RQdWPZ0vJ7/OqnM+Td/IfczVVyVKInHRQTaPWos4H/1GNjYr6962zTXvRhNGEnyDUI3ch7CEXYgrmcDrv8j3+Rma7t+OQek9aj9TI7vJVuV2KWrd8a8uWbzHlJTTFe5rDcwl+kehib6P3EhRKXeKdaqj3x5jY6L24ppgul3mCfszeyccFpn4xucZo+yeaYOtvOlBpIltf2pT/Q2HjS9esNKxYmGxqStKHKj+56iqaV/f+7W/6fnkjwARXPV7/L9slrjs9Un1jfJVScdXxp61aotkcXvLQEk3Fa4n625hmpDj2GhPnxbZ86/lvbcHCrAOG6gpjIKM+hwVvwypYVX/29+jDdXO73tJJsu6bnHW9lere2g2ONGt3NdLE9yaTB77fRDd0q/d2d5Oju4/tVo0Q+KhbfQ9QpCTH/b9FXBCNAHicY2BkYGAA4hlWXw7G89t8ZeBmYQCBJwf88xD0/wUszswJQC4HAxNIFABLOAtNAHicY2BkYGBu+N/AEMPyhgEIWJwZGBlQwRIAY68EPAAAeJxjYWBgYIHhN1DaBUkMHTvgkcOHYfrsCahxQFLrgEUcF8ZmBro4uhp7HHbYoKmxIeA+Qm40JtIP9kSoweYOEDbA4S9c4YseD/Z44gbZrHosdtvjUIvuXgYGTH+iqQMAQcQa0QAAAAAAfAC+AQYBTAGWAdoCUAL4AxoDrgQiBJAFggXmBk4GuAdOB8wIDgiSCQIJXAmuCiAKOApeCo4K2Ar+C2QL6AwuDFYMvA08DbwOfA9MD94QZBDkET4RdBHKEfoSXBK8EvITPhRAFYQVuBXsFkYWkhdCF64YfBkMGVwZxBoiGnYa3htAG4ocKhxEHJgc7B2UHiQeTh7CHzAftiAKIFQgfiDkIWYhwCJkIsYjQCNwI54jziQwJEYlCiVQJhonNid6J74oSCioKRIpUil2KdQqKCqKKs4rMCuuLDQs5C1ILZAt5i4OLmYvCi+GMCwwhjE2MbIyajLAMw4zZDPmNHY0yDUWNWg14DaINvg37DhgOKo5PjmiOeo6jDsIO9I8KD0WPXg9zj6GP2o/xkAeQIxA6EHQQkxCvkNMQ+5ERkTCROpFLEVWRbRF7gAAeJxjYGRgYFjC8IFBigEEmICYCwgZGP6D+QwAM1wCxQB4nF2RzU7CQBSFz8iPERIXmrhwNW6IiaEFluwMCexZ4LqUKT9pO810IGHl0/gEPoFP4BPoS/gCHsrVBNrMne+cuffOTQvgBt9QOD63XEdWuKQ68gX5XrhGfhCukx+FG2gjFG7SHwq38IRn4TY7puyg6ldUHbwKK1zjTfiC/C5cI38I18mfwg3c4Uu4Sf9HuIWZUsJtdNTLyJnIm4We7/U6tnlic5/E3QNOzXKbRk6UbDPjyrXNdT/oiTMxuXF/LcrdcuB9ohNnMz1mL5OmVhfObkzsg5X3xTAME/GD2GYYwcEggmdcQGOOPeMaMSxyJFX03GN0/90pc5fY8kNFrD49O1UzZjqU1Ael0UeA3lnOhDl5lXc+RYkd7xnQPUyguRwrMtJY5jKcISVrFNXZhk5MP8Cqqir4k0O+yVl+UN2d/QI8XWjpAAAAeJxtVId22zYU9bVIipJsp4nTvfdk2yjp3nvvvQsRTxJikGAAULK699577/5nHyipdc6pzhFBAA/AxR1cWV2Z/7or///7C6toIUKMBG2k6KCLHtawjg3swhHYjT3YxF4ciaNwNI7BsTgOx+MEnIiTcDJOwak4DafjDJyJs3A2zsG5OA/n4wJkuBAX4WLsQx/7cQCX4FJchstxBa7EVbga1+BaXIfrcQNuxE24GbfgVtyG23EH7sRduBv34F7ch/vxAB7EQ3gYj+BRPIbH8QSexFN4Gs/gWTyH5yEwQA4JwhAjjKFwEFvQKFDCoMIhWDh41Jhgim3M8AJexEt4Ga/gVbyG1/EG3sRbeBvv4F28h/fxAT7ER/gYn+BTfIbP8QW+xFf4Gt/gW3yH7/EDfsRP+Bm/4Ff8ht/xB/7EX/h7JZ5a5SkZWFHm40TSROWUOBI2H69XximvTJlpGvqEtitRyrQQdkuaadmTwovMkabcd0ZWyUyrkuLKqtJHufKzVJtchOXJIZsbSakqq9pnSiZqaEVBsailMt2hsUVW8LyOvfKaIqdGZVtIacm5jvO8hfMqbw9Es0s8UZJMIiZ8um272lVUyvZU2FKVo8hxJ7U05LXj/qpQ7dzouij3L9oDi7a/aPclWsxM7TuORgWVnmQ7NIy5MwfrxajlxWAtN+VQjTKa8CxjoioLsBOnGYxNpBLajDYP1gx0OMtcJXIm0NSlTOpKGyGj3FSzrlcFZczziFIv3FbGd9x72JoB+SlRmaiiMtb3+GBNzUH7ewsAA+Foj9DMEItWuMx5Sz4f7xwaatpmFuJ8TPlWJGpv0lxoHhF2eQ3nZ5p2LTpCTlh6ksvJyprKbbAc5CnLlc019dcP6ybz3l6pLGsf/GHN1DI31tGaVK5iUhsYkbRitL4cGbAftqLgmpik8v0oPIPQGYuxuaxSZbBRU7tEOOHb8TKKgu02Di9s0Yw6/M9ybRy1K4ahaNoLp2cloxJVMjSaReo1PptfoNNMh8kojHaaqcBepPjIWBViRLuXyoRadqH1G8uRPDjF7vpXurkGMcPZ6seFKmsXs4vqflQYS1F4TTWrXvOurUrIpDADpSmtuJ8VYpvLJsueKlO+QhYctlrlURhsL+ycWCFV7XpOTNgUSmuS6aGaXJMwl1ujdWhU5duOvG/SwKWJGwvmLZ0Iq4KfWjNya/MxppArgyLUDY+FN1kNLSrHK6eK78UZGwSCenxNWuQ9ZklqDrAmy1kXVqaN2wZmm73mchFCMai9N2W3+Uo0To5HHImqLVVIsI0Cr2uS5pD5Di4a+0InwRTGxk38okApM+Pc1FgZBwJMi72WzLWPLIOOGa6xyRxXdNAxGWVdDMjGTaS6/4VoR576UchixBVl6mmb1SXR9sZor6rIaeNTz1y4IVlO/6gz5XNs+O5FgYO42afTGHestIz4rd/ix+aOFIagBozdpqxx3e4d03MLraz8Aw7bNJ4AAAA=) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-write:before{content:"\\e60b"}.icon-branch:before{content:"\\e6e3"}.icon-device:before{content:"\\e6e0"}.icon-position-left:before{content:"\\e6e2"}.icon-search:before{content:"\\e6e1"}.icon-expand:before{content:"\\e6df"}.icon-expand-left:before{content:"\\e6df";display:inline-block;transform:rotate(-180deg)}.icon-data-select:before{content:"\\e6dd"}.icon-markdown:before{content:"\\e893"}.icon-grid-line:before{content:"\\e600"}.icon-print:before{content:"\\e6de"}.icon-city:before{content:"\\e64b"}.icon-location:before{content:"\\e6d4"}.icon-qrcode:before{content:"\\e6ce"}.icon-input-id:before{content:"\\e6d1"}.icon-iframe:before{content:"\\e6d2"}.icon-audio:before{content:"\\e6d3"}.icon-form-model:before{content:"\\e6d5"}.icon-title:before{content:"\\e6d6"}.icon-sign:before{content:"\\e6d7"}.icon-address:before{content:"\\e6d8"}.icon-statistic:before{content:"\\e6d9"}.icon-barcode:before{content:"\\e6da"}.icon-video:before{content:"\\e6db"}.icon-avatar:before{content:"\\e6dc"}.icon-suspend:before{content:"\\e6cf"}.icon-warning:before{content:"\\e6d0"}.icon-send:before{content:"\\e6cc"}.icon-refresh2:before{content:"\\e6cd"}.icon-ai:before{content:"\\e6cb"}.icon-ai.bright{-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text}.icon-column4:before{content:"\\e6c7"}.icon-column3:before{content:"\\e6c6"}.icon-column2:before{content:"\\e6c8"}.icon-column1:before{content:"\\e6c9"}.icon-layout:before{content:"\\e6ca"}.icon-segmented:before{content:"\\e682"}.icon-mention:before{content:"\\e6c5"}.icon-input-tag:before{content:"\\e6c4"}.icon-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-alignitems-flexstart:before{content:"\\e67f";display:inline-block;transform:rotate(180deg)}.icon-align-center:before{content:"\\e6a5";display:inline-block;transform:rotate(90deg)}.icon-align-flexstart:before{content:"\\e6a4";display:inline-block;transform:rotate(90deg)}.icon-align-spacearound:before{content:"\\e670";display:inline-block;transform:rotate(-90deg)}.icon-align-spacebetween:before{content:"\\e695";display:inline-block;transform:rotate(-90deg)}.icon-align-stretch:before{content:"\\e6a7";display:inline-block;transform:rotate(-90deg)}.icon-align-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(-90deg)}.icon-justify-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(180deg)}.icon-direction-row:before{content:"\\e68b";display:inline-block;transform:rotate(180deg)}.icon-direction-column:before{content:"\\e68b";display:inline-block;transform:rotate(-90deg)}.icon-direction-columnreverse:before{content:"\\e68b";display:inline-block;transform:rotate(90deg)}.icon-arrow:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-cell:before{content:"\\e654"}.icon-table:before{content:"\\eb0a"}.icon-next-step:before{content:"\\e6b4";display:inline-block;transform:rotateY(180deg)}.icon-grid:before{content:"\\e65c";display:inline-block;transform:rotate(90deg)}.icon-alignitems-stretch:before{content:"\\e67e"}.icon-alignitems-flexend:before{content:"\\e67f"}.icon-check:before{content:"\\e680"}.icon-auto:before{content:"\\e681"}.icon-config-event:before{content:"\\e66e"}.icon-calendar:before{content:"\\e683"}.icon-config-style:before{content:"\\e684"}.icon-copy:before{content:"\\e676"}.icon-config-advanced:before{content:"\\e686"}.icon-config-props:before{content:"\\e687"}.icon-delete-circle2:before{content:"\\e688"}.icon-delete-circle:before,.icon-delete2:before{content:"\\e689"}.icon-delete:before{content:"\\e68a"}.icon-direction-rowreverse:before{content:"\\e68b"}.icon-display-flex:before{content:"\\e68c"}.icon-dialog:before{content:"\\e66f"}.icon-drag:before{content:"\\e68e"}.icon-display-block:before{content:"\\e68f"}.icon-data:before{content:"\\e690"}.icon-edit2:before{content:"\\e691"}.icon-edit:before{content:"\\e692"}.icon-add-col:before{content:"\\e693"}.icon-display-inlineblock:before{content:"\\e694"}.icon-config-base:before{content:"\\e6bf"}.icon-config-validate:before{content:"\\e696"}.icon-down:before{content:"\\e697"}.icon-display-inline:before{content:"\\e698"}.icon-eye:before{content:"\\e699"}.icon-eye-close:before{content:"\\e69a"}.icon-import:before{content:"\\e6a6"}.icon-preview:before{content:"\\e69b"}.icon-flex-nowrap:before{content:"\\e69c"}.icon-folder:before{content:"\\e69d"}.icon-form-circle:before{content:"\\e69e"}.icon-flex-wrap:before{content:"\\e69f"}.icon-form:before{content:"\\e6a0"}.icon-form-item:before{content:"\\e6a1"}.icon-icon:before{content:"\\e6a2"}.icon-image:before{content:"\\e6a3"}.icon-justify-flexstart:before{content:"\\e6a4"}.icon-justify-center:before{content:"\\e6a5"}.icon-justify-spacearound:before{content:"\\e670"}.icon-justify-stretch:before{content:"\\e6a7"}.icon-link2:before{content:"\\e6a8"}.icon-justify-spacebetween:before{content:"\\e695"}.icon-minus:before{content:"\\e6aa"}.icon-menu2:before{content:"\\e6ab"}.icon-more:before{content:"\\e6ac"}.icon-menu:before{content:"\\e6ad"}.icon-language:before{content:"\\e6ae"}.icon-pad:before{content:"\\e6af"}.icon-mobile:before{content:"\\e6b0"}.icon-page-max:before{content:"\\e6b1"}.icon-move:before{content:"\\e6b2"}.icon-page-min:before{content:"\\e6b3"}.icon-pre-step:before{content:"\\e6b4"}.icon-pc:before{content:"\\e6b5"}.icon-page:before{content:"\\e6b6"}.icon-refresh:before{content:"\\e6b7"}.icon-radius:before{content:"\\e6b8"}.icon-save-filled:before{content:"\\e6b9"}.icon-question:before{content:"\\e6ba"}.icon-scroll:before{content:"\\e6bb"}.icon-script:before{content:"\\e6bc"}.icon-setting:before{content:"\\e6bd"}.icon-save-online:before,.icon-save:before{content:"\\e6be"}.icon-task-add:before{content:"\\e68d"}.icon-shadow:before{content:"\\e6c0"}.icon-variable:before{content:"\\e6c1"}.icon-yes:before{content:"\\e6c2"}.icon-shadow-inset:before{content:"\\e6c3"}.icon-date:before{content:"\\e642"}.icon-date-range:before{content:"\\e643"}.icon-collapse:before{content:"\\e644"}.icon-slider:before{content:"\\e665"}.icon-switch:before{content:"\\e646"}.icon-subform:before{content:"\\e647"}.icon-time-range:before{content:"\\e685"}.icon-tree-select:before{content:"\\e649"}.icon-value:before{content:"\\e64a"}.icon-table-form3:before{content:"\\e6a9"}.icon-alert:before{content:"\\e64c"}.icon-card:before{content:"\\e64d"}.icon-checkbox:before{content:"\\e64e"}.icon-cascader:before{content:"\\e64f"}.icon-button:before{content:"\\e650"}.icon-data-table:before{content:"\\e651"}.icon-group:before{content:"\\e652"}.icon-divider:before{content:"\\e653"}.icon-flex:before{content:"\\e654"}.icon-descriptions:before{content:"\\e655"}.icon-html:before{content:"\\e656"}.icon-editor:before{content:"\\e657"}.icon-input:before{content:"\\e658"}.icon-link:before{content:"\\e659"}.icon-password:before{content:"\\e65a"}.icon-radio:before{content:"\\e65b"}.icon-row:before{content:"\\e65c"}.icon-inline:before{content:"\\e65d"}.icon-rate:before{content:"\\e65e"}.icon-color:before{content:"\\e65f"}.icon-select:before{content:"\\e660"}.icon-json:before{content:"\\e661"}.icon-number:before{content:"\\e662"}.icon-space:before{content:"\\e664"}.icon-step-form:before{content:"\\e663"}.icon-table-form:before{content:"\\e666"}.icon-table-form2:before{content:"\\e667"}.icon-time:before{content:"\\e668"}.icon-span:before{content:"\\e669"}.icon-textarea:before{content:"\\e66a"}.icon-tooltip:before{content:"\\e66b"}.icon-slot:before{content:"\\e66c"}.icon-transfer:before{content:"\\e66d"}.icon-upload:before{content:"\\e673"}.icon-tag:before{content:"\\e671"}.icon-watermark:before{content:"\\e672"}.icon-tab:before{content:"\\e674"}.icon-tree:before{content:"\\e675"}.icon-table:before{content:"\\e677"}.icon-add-child:before{content:"\\e678"}.icon-add2:before{content:"\\e679"}.icon-add:before{content:"\\e67a"}.icon-alignitems-baseline:before{content:"\\e67b"}.icon-add-circle:before{content:"\\e67c"}.icon-alignitems-center:before{content:"\\e67d"}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-subst,.hljs-title{color:#000;font-weight:400}.hljs-title.function_{color:#7a7a43}.hljs-code,.hljs-comment,.hljs-quote{color:#8c8c8c;font-style:italic}.hljs-meta{color:#9e880d}.hljs-section{color:#871094}.hljs-built_in,.hljs-keyword,.hljs-literal,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag,.hljs-symbol,.hljs-template-tag,.hljs-type,.hljs-variable.language_{color:#0033b3}.hljs-attr,.hljs-property{color:#871094}.hljs-attribute{color:#174ad4}.hljs-number{color:#1750eb}.hljs-regexp{color:#264eff}.hljs-link{color:#006dcc;text-decoration:underline}.hljs-meta .hljs-string,.hljs-string{color:#067d17}.hljs-char.escape_{color:#0037a6}.hljs-doctag{text-decoration:underline}.hljs-template-variable{color:#248f8f}.hljs-addition{background:#bee6be}.hljs-deletion{background:#d6d6d6}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}')),document.head.appendChild(e)}}catch(t){}}();var ci={type:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef:function(e){return null==e},Element:function(e){return"object"==y(e)&&null!==e&&1===e.nodeType&&!ci.Object(e)},trueArray:function(e){return Array.isArray(e)&&e.length>0},Function:function(e){var t=this.getType(e);return"Function"===t||"AsyncFunction"===t},getType:function(e){var t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty:function(e){return!!(null==e||Array.isArray(e)&&Array.isArray(e)&&!e.length)||"string"==typeof e&&!e}};function di(e,t){return{}.hasOwnProperty.call(e,t)}function fi(e,t,n){e[t]=n}function pi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=!1;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r];if((i=Array.isArray(o))||ci.Object(o)){var a=void 0===e[r];i?(i=!1,a&&fi(e,r,[])):o._clone&&void 0!==n||a&&fi(e,r,{}),e[r]=pi(e[r],o,n)}else fi(e,r,o),ci.Undef(o)||(ci.Undef(o.__json)||(e[r].__json=o.__json),ci.Undef(o.__origin)||(e[r].__origin=o.__origin))}return void 0!==n&&Array.isArray(e)?e.filter(function(e){return!e||!e.__ctrl}):e}function hi(e){return pi({},{value:e}).value}["Date","Object","String","Boolean","Array","Number"].forEach(function(e){ci[e]=function(t){return ci.type(t,e)}});var mi="[[FORM-CREATE-PREFIX-",gi="-FORM-CREATE-SUFFIX]]";function vi(e){return new Function("return "+e)()}function _i(e,t){if(e&&ci.String(e)&&e.length>4){var n=e.trim(),i=!1;try{if(n.indexOf(gi)>0&&0===n.indexOf(mi))n=n.replace(gi,"").replace(mi,""),i=!0;else if(0===n.indexOf("$FN:"))n=n.substring(4),i=!0;else if(0===n.indexOf("$EXEC:"))n=n.substring(6),i=!0;else{if(0===n.indexOf("$GLOBAL:")){var r=n.substring(8);return n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0].api.getGlobalEvent(r);if(i)return i.call.apply(i,[this].concat(t))},n.__json=e,n.__inject=!0,n}if(0===n.indexOf("$FNX:"))return(n=vi("function($inject){\n"+n.substring(5)+"\n}")).__json=e,n.__inject=!0,n;(!t&&0===n.indexOf("function ")&&"function "!==n||!t&&0===n.indexOf("function(")&&"function("!==n)&&(i=!0)}if(!i)return e;var o;try{o=vi(n)}catch(a){o=vi("function "+n)}return o.__json=e,o}catch(o){return void"解析失败:".concat(n,"\n\nerr: ").concat(o)}}return e}function yi(e){return bi(e.replace(/(-[a-z])/g,function(e){return e.replace("-","").toLocaleUpperCase()}))}function bi(e){return e.replace(e[0],e[0].toLowerCase())}var Di={name:"zh-cn",form:{field:"字段 ID",title:"字段名称",info:"提示信息",control:"组件联动",labelPosition:"标签的位置",labelStyle:"标签的样式",labelSuffix:"标签的后缀",size:"表单的尺寸",event:"表单事件",labelWidth:"标签的宽度",hideRequiredAsterisk:"隐藏必填字段的标签旁边的红色星号",showMessage:"显示校验错误信息",inlineMessage:"以行内形式展示校验信息",submitBtn:"是否显示表单提交按钮",resetBtn:"是否显示表单重置按钮",appendChild:"添加子级",formMode:"表单模式",formName:"表单名称",componentMode:"生成组件",htmlMode:"生成HTML",document:"帮助文档",controlDocument:"需要更详细的配置方法?请查看{doc}",onSubmit:"表单提交时触发",onReset:"表单重置后触发",onCreated:"表单组件初始化完毕后触发",onMounted:"表单组件渲染完毕后触发",onReload:"表单渲染规则重载后触发",onChange:"表单组件的值发生变化时触发",beforeSubmit:"表单验证通过时触发",beforeFetch:"远程数据请求发送前触发"},warning:{name:"组件的唯一标识,用于获取和修改该组件的配置规则。通过该标识可以精确定位组件,实现对组件属性和行为的控制。",field:"组件对应的字段名用于与组件的数据进行绑定。字段名需以字母开头,以确保能够正确识别。",fetch:"远程数据通过远程请求加载组件的配置项。配置请求参数后,组件会自动发起请求,获取远程数据并根据返回的结果更新组件。",fetchQuery:"定义请求的 GET 参数,通过 URL 传递数据。",fetchData:"定义请求的 POST 参数,通过请求体传递数据。",fetchDataType:"选择请求体的数据类型,确保数据格式正确。",beforeFetch:"在请求发送前,可通过处理函数修改请求参数;若需终止请求,直接返回 false 或一个拒绝的 Promise。",fetchParse:"请求返回后,可以通过处理函数对返回的结果进行处理,将结果转换为组件所需的数据和结构。",language:"管理页面的多语言数据,在组件中配置不同语言的文本,支持一键切换语言体系,便于在多语言环境下使用和展示内容。"},computed:{fieldUsed:"【{label}】在计算公式中被使用,请先修改对应公式",fieldExist:"【{label}】字段已存在",fieldEmpty:"字段名称不能为空",fieldChar:"字段名称必须以字母开头"},validate:{type:"字段类型",typePlaceholder:"请选择",trigger:"触发方式",mode:"验证方式",modes:{required:"必填",pattern:"正则表达式",validator:"自定义验证",min:"最小值",max:"最大值",len:"长度"},types:{string:"文本",boolean:"布尔",array:"多选",number:"数字",integer:"整数",float:"小数",object:"合集",date:"日期",url:"URL链接",email:"邮箱地址"},message:"错误信息",auto:"自动获取",autoRequired:"请输入{title}",autoMode:"请输入正确的{title}",requiredPlaceholder:"请输入提示语",required:"是否必填",rule:"验证规则"},tableOptions:{handle:"操作",add:"添加",empty1:"点击右下角",empty2:"按钮添加一列",rmCol:"删除当前列",rmRow:"删除当前行",batchRmCol:"删除列",batchRmRow:"删除行",batchSplit:"拆分单元格",batchMerge:"合并单元格",splitRow:"拆分成行",splitCol:"拆分成列",mergeBottom:"向下合并",mergeRight:"向右合并",addTop:"添加上列",addBottom:"添加下列",addLeft:"添加左列",addRight:"添加右列",keyValue:"键值对"},struct:{title:"编辑数据",only:"【{label}】只允许添加一个",errorMsg:"输入的内容语法错误",configured:"已配置"},event:{title:"设置事件",create:"创建事件",list:"事件列表",placeholder:"请输入事件的名称",saveMsg:"请先保存当前正在编辑的事件",type:"类型",info:"说明",label:"字段",inject:{api:"当前表单的api",rule:"当前表单的生成规则",self:"组件的生成规则",option:"表单的配置",args:"事件的原始参数"}},eventInfo:{blur:"失去焦点时触发",focus:"获得焦点时触发",change:"当绑定值变化时触发",input:"在值改变时触发",clear:"在点击清空按钮时触发",close:"关闭组件时触发",click:"点击组件时触发",add:"增加时触发",delete:"删除时触发",visibleChange:"下拉框出现/隐藏时触发",calendarChange:"在日历所选日期更改时触发",panelChange:"当日期面板改变时触发",open:"打开的回调",opened:"打开动画结束时的回调",closed:"关闭动画结束时的回调",openAutoFocus:"输入焦点聚焦在内容时的回调",closeAutoFocus:"输入焦点从内容失焦时的回调",submit:"表单提交时触发",confirm:"点击确认按钮时触发",validateFail:"表单验证失败时触发",hook_load:"组件规则加载后触发",hook_mounted:"组件挂载后触发",hook_deleted:"组件规则被移除后触发",hook_watch:"组件规则发生变化后触发",hook_value:"组件的值发生变化后触发",hook_hidden:"组件显示状态发生变化后触发"},fetch:{title:"设置数据源",create:"创建数据源",config:"请求配置",action:"请求链接",actionRequired:"请输入正确的链接",placeholder:"请输入数据源的名称",method:"请求方式",data:"附带数据",dataType:"数据类型",headers:"请求头部",query:"请求参数",parse:"数据处理",response:"接口返回的数据",onError:"错误处理",beforeFetch:"前置处理",remote:"远程数据",static:"静态数据",optionsType:{fetch:"远程数据",struct:"静态数据"}},style:{width:"宽度",height:"高度",color:"颜色",backgroundColor:"背景色",margin:"外边距",padding:"内边距",borderRadius:"圆角",border:"边框",solid:"实线",dashed:"虚线",dotted:"点状虚线",double:"双实线",opacity:"透明度",scale:"缩放",minWidth:"最小宽",minHeight:"最小高",maxWidth:"最大宽",maxHeight:"最大高",overflow:{name:"溢出",visible:"可见",hidden:"隐藏",scroll:"滚动",auto:"溢出后自动滚动"},shadow:{name:"阴影",x:"x轴偏移量",y:"y轴偏移量",vague:"模糊半径",extend:"扩散半径",inset:"向内",external:"向外",mode:"模式",classic:"经典",flat:"扁平",solid:"立体"},font:{name:"文字",size:"大小",family:"字体",align:"对齐方式",height:"行高",spacing:"字间距",preview:"样式预览"},family:{"Microsoft YaHei":"微软雅黑",SimSun:"宋体",SimHei:"黑体",KaiTi:"楷体",FangSong:"仿宋",LiSu:"隶书"},position:{name:"位置",static:"默认定位",relative:"相对定位",absolute:"绝对定位",fixed:"固定定位",sticky:"粘性定位"},decoration:{name:"修饰",underline:"下划线","line-through":"删除线",overline:"上划线"},weight:{name:"粗细",300:"细体",400:"常规体",500:"中黑体",700:"中粗体"}},designer:{component:"组件配置",id:"唯一值",name:"编号",type:"组件类型",form:"表单配置",json:"渲染规则",style:"组件样式配置",rule:"基础配置",advanced:"高级配置",props:"属性配置",customProps:"自定义属性配置",validate:"验证配置",event:"事件配置",clearWarn:"清空后将不能恢复,确定要清空吗?",childEmpty:"点击右下角 \\e789 按钮添加一列",dragEmpty:"拖拽左侧列表中的组件到此处",unload:"确定离开当前页面吗?",comList:"组件列表"},language:{name:"国际化配置",add:"新增词条",batchRemove:"批量删除",select:"选择多语言"},menu:{main:"基础组件",aide:"辅助组件",layout:"布局组件",component:"组件",subform:"子表单组件",tree:"大纲"},props:{disabled:"禁用",time:"时间",size:"尺寸",email:"邮箱",number:"数字",globalData:"全局数据",mobile:"移动端",reactive:"响应式",pc:"电脑端",title:"标题",content:"内容",collection:"合集",group:"分组",custom:"自定义",change:"改变",blur:"失去焦点",preview:"预览",clear:"清空",cancel:"取消",close:"关闭",ok:"确定",save:"保存",refresh:"刷新",submit:"提交",reset:"重置",copy:"复制",delete:"删除",hide:"隐藏",show:"显示",position:"位置",render:"渲染",large:"大",default:"默认",small:"小",always:"常显",never:"不显示",hover:"悬浮",click:"点击",button:"按钮",year:"年份",month:"月份",date:"日期",dates:"日期多选",week:"一周",datetime:"日期时间","datetime-local":"日期时间",datetimerange:"日期时间区间",daterange:"日期区间",monthrange:"月份区间",left:"左对齐",right:"右对齐",top:"顶部",text:"文字",picture:"图片","picture-card":"卡片",center:"居中",vertical:"竖向",horizontal:"横向",manage:"管理",key:"键名",name:"名称",value:"值",inputData:"默认值",append:"插入",options:"选项数据",option:"选项",callback:"回调",style:"样式",_self:"当前窗口",_blank:"新的窗口",_parent:"父级窗口",_top:"顶级窗口"},com:{cascader:{name:"级联选择器",event:{expandChange:"当展开节点发生变化时触发",removeTag:"在多选模式下,移除Tag时触发"},props:{props:"配置选项",placeholder:"输入框占位文本",disabled:"是否禁用",clearable:"是否支持清空选项",showAllLevels:"输入框中是否显示选中值的完整路径",collapseTags:"多选模式下是否折叠Tag",collapseTagsTooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签",separator:"选项分隔符",filterable:"该选项是否可以被搜索",tagType:"标签类型"},propsOpt:{multiple:"是否多选",expandTrigger:"次级菜单的展开方式",checkStrictly:"是否严格的遵守父子节点不互相关联",emitPath:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组",value:"指定选项的值为选项对象的某个属性值",label:"指定选项标签为选项对象的某个属性值",children:"指定选项的子选项为选项对象的某个属性值",disabled:"指定选项的禁用为选项对象的某个属性值",leaf:"指定选项的叶子节点的标志位为选项对象的某个属性值"}},checkbox:{name:"多选框",props:{input:"是否可以填写",type:"按钮类型",disabled:"是否禁用",min:"可被勾选的最小数量",max:"可被勾选的最大数量",textColor:"当按钮为活跃状态时的字体颜色",fill:"当按钮为活跃状态时的边框和背景颜色"}},col:{name:"布局格子",props:{span:"栅格占据的列数",offset:"栅格左侧的间隔格数",push:"栅格向右移动格数",pull:"栅格向左移动格数"}},colorPicker:{name:"颜色选择器",event:{activeChange:"面板中当前显示的颜色发生改变时触发"},props:{disabled:"是否禁用",showAlpha:"是否支持透明度选择",colorFormat:"颜色的格式",predefine:"预定义颜色"}},datePicker:{name:"日期",props:{pickerOptions:"当前时间日期选择器特有的选项",readonly:"完全只读",disabled:"禁用",type:"显示类型",editable:"文本框可输入",clearable:"是否显示清除按钮",placeholder:"非范围选择时的占位内容",startPlaceholder:"范围选择时开始日期的占位内容",endPlaceholder:"范围选择时结束日期的占位内容",format:"显示在输入框中的格式",align:"对齐方式",rangeSeparator:"选择范围时的分隔符",unlinkPanels:"在范围选择器里取消两个日期面板之间的联动"}},dateRange:{name:"日期区间"},timeRange:{name:"时间区间"},elAlert:{name:"提示",description:"说明文字",props:{title:"标题",type:"主题",description:"辅助性文字",closable:"是否可关闭",center:"文字是否居中",closeText:"关闭按钮自定义文本",showIcon:"是否显示图标",effect:"选择提供的主题"}},elButton:{name:"按钮",props:{formCreateChild:"内容",size:"尺寸",type:"类型",plain:"是否朴素按钮",round:"是否圆角按钮",circle:"是否圆形按钮",loading:"是否加载中状态",disabled:"是否禁用状态"}},elCard:{name:"卡片",props:{header:"标题",shadow:"阴影显示时机"}},elCollapse:{name:"折叠面板",event:{change:"切换当前活动面板,在手风琴模式下其类型是string,在其他模式下是array"},props:{accordion:"是否手风琴模式"}},elCollapseItem:{name:"面板",props:{title:"面板标题",name:"唯一标志符",disabled:"是否禁用"}},elDivider:{name:"分割线",props:{formCreateChild:"设置分割线文案",contentPosition:"设置分割线文案的位置"}},elTabPane:{name:"选项卡",props:{label:"选项卡标题",disabled:"是否禁用",name:"选项卡的标识符",lazy:"标签是否延迟渲染"}},elTabs:{name:"标签页",event:{tabClick:"tab 被选中时触发",tabChange:"activeName 改变时触发",tabRemove:"点击 tab 移除按钮时触发",tabAdd:"点击 tab 新增按钮时触发",edit:"点击 tab 的新增或移除按钮后触发"},props:{type:"风格类型",closable:"标签是否可关闭",tabPosition:"选项卡所在位置",stretch:"标签的宽度是否自撑开"}},elTag:{name:"标签",props:{formCreateNative:"是否显示标题",formCreateTitle:"标题",formCreateChild:"标签内容",type:"标签的类型",size:"标签的尺寸",effect:"标签的主题",closable:"是否可关闭",disableTransitions:"是否禁用渐变动画",hit:"是否有边框描边",round:"是否为圆形",color:"背景色"}},elTransfer:{name:"穿梭框",event:{leftCheckChange:"左侧列表元素被用户选中 / 取消选中时触发",rightCheckChange:"右侧列表元素被用户选中 / 取消选中时触发"},props:{filterable:"是否可搜索",filterPlaceholder:"搜索框占位符",targetOrder:"右侧列表元素的排序策略",targetOrderInfo:"若为 original,则保持与数据相同的顺序;若为 push,则新加入的元素排在最后;若为 unshift,则新加入的元素排在最前",titles:"自定义列表标题",buttonTexts:"自定义按钮文案",props:"数据源的字段别名"}},elTreeSelect:{name:"树形选择",event:{removeTag:"多选模式下移除tag时触发"},props:{multiple:"是否多选",disabled:"是否禁用",clearable:"是否可以清空选项",collapseTags:"多选时是否将选中值按文字的形式展示",multipleLimit:"多选时用户最多可以选择的项目数,为 0 则不限制",placeholder:"占位符",props:"配置选项",renderAfterExpand:"是否在第一次展开某个树节点后才渲染其子节点",defaultExpandAll:"是否默认展开所有节点",expandOnClickNode:"是否在点击节点的时候展开或者收缩节点",checkOnClickNode:"是否在点击节点的时候选中节点",nodeKey:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的"}},elImage:{name:"图片",props:{src:"图片链接"}},fcTitle:{name:"标题",props:{title:"标题",size:"尺寸",align:"对齐方式"}},fcEditor:{name:"富文本框",props:{disabled:"是否禁用"}},fcRow:{name:"栅格布局",props:{gutter:"栅格间隔",type:"flex布局模式",justify:"flex布局下的水平排列方式",align:"flex布局下的垂直排列方式"}},fcTable:{name:"表格布局",props:{border:"是否显示边框",borderColor:"边框颜色",borderWidth:"边框宽度"}},fcTableGrid:{name:"格子"},signaturePad:{name:"手写签名",props:{penColor:"线条的颜色",disabled:"禁用"}},group:{name:"子表单",props:{disabled:"是否禁用",syncDisabled:"是否与子表单强制同步禁用状态",expand:"设置默认展开几项",button:"是否显示操作按钮",sortBtn:"是否显示排序按钮",min:"设置最小添加几项",max:"设置最多添加几项"}},html:{name:"HTML",props:{formCreateNative:"是否显示标题",formCreateTitle:"标题",formCreateChild:"内容"}},input:{name:"输入框",event:{change:"当值改变时,当组件失去焦点或用户按Enter时触发"},props:{type:"类型",maxlength:"最大输入长度",minlength:"最小输入长度",placeholder:"输入框占位文本",clearable:"是否显示清除按钮",disabled:"是否禁用",readonly:"是否只读"}},inputNumber:{name:"计数器",props:{precision:"数值精度",min:"设置计数器允许的最小值",max:"设置计数器允许的最大值",step:"计数器步长",stepStrictly:"是否只能输入 step 的倍数",disabled:"是否禁用计数器",controls:"是否使用控制按钮",controlsPosition:"控制按钮位置",placeholder:"输入框占位文本"}},password:{name:"密码输入框",event:{change:"当值改变时,当组件失去焦点或用户按Enter时触发"},props:{disabled:"是否禁用",readonly:"是否只读",maxlength:"最大输入长度",minlength:"最小输入长度",placeholder:"输入框占位文本",clearable:"是否显示清除按钮"}},radio:{name:"单选框",props:{input:"是否可以填写",disabled:"是否禁用",type:"按钮形式",textColor:"按钮形式激活时的文本颜色",fill:"按钮形式激活时的填充色和边框色"}},rate:{name:"评分",props:{max:"最大分值",disabled:"是否禁用",allowHalf:"是否允许半选",voidColor:"未选中时图标的颜色",disabledVoidColor:"只读时未选中时图标的颜色",voidIconClass:"未选中时图标的类名",disabledVoidIconClass:"只读时未选中时图标的类名",showScore:"是否显示当前分数",textColor:"辅助文字的颜色",scoreTemplate:"分数显示模板"}},select:{name:"选择器",event:{removeTag:"多选模式下移除tag时触发"},props:{multiple:"是否多选",disabled:"是否禁用",clearable:"是否可以清空选项",collapseTags:"多选时是否将选中值按文字的形式展示",multipleLimit:"多选时用户最多可以选择的项目数,为 0 则不限制",placeholder:"占位符",filterable:"是否可搜索",allowCreate:"是否允许用户创建新条目",noMatchText:"搜索条件无匹配时显示的文字",noDataText:"选项为空时显示的文字",reserveKeyword:"多选且可搜索时,是否在选中一个选项后保留当前的搜索关键词",defaultFirstOption:"在输入框按下回车,选择第一个匹配项",remote:"其中的选项是否从服务器远程加载",remoteMethod:"自定义远程搜索方法"}},slider:{name:"滑块",props:{min:"最小值",max:"最大值",disabled:"是否禁用",step:"步长",showInput:"是否显示输入框,仅在非范围选择时有效",showInputControls:"在显示输入框的情况下,是否显示输入框的控制按钮",showStops:"是否显示间断点",range:"是否为范围选择",vertical:"是否竖向模式",height:"Slider 高度,竖向模式时必填"}},space:{name:"间距",props:{height:"高度"}},subForm:{name:"分组",props:{disabled:"是否禁用",syncDisabled:"是否与子表单强制同步禁用状态"}},switch:{name:"开关",props:{disabled:"是否禁用",width:"宽度(px)",activeText:"打开时的文字描述",inactiveText:"关闭时的文字描述",activeValue:"打开时的值",inactiveValue:"关闭时的值",activeColor:"打开时的背景色",inactiveColor:"关闭时的背景色"}},tableForm:{name:"表格表单",props:{disabled:"是否禁用",filterEmptyColumn:"是否过滤空行的数据",max:"最多添加几行,为 0 则不限制",min:"最少添加几行",addable:"允许新增",deletable:"允许删除"}},tableFormColumn:{name:"表格格子",label:"自定义名称",props:{align:"对齐方式",label:"标题",width:"宽度",color:"颜色",required:"是否显示必填星号"}},text:{name:"文字",props:{formCreateNative:"是否显示标题",formCreateTitle:"标题",formCreateChild:"内容"}},textarea:{name:"多行输入框",event:{change:"当值改变时,当组件失去焦点或用户按Enter时触发"},props:{disabled:"是否禁用",readonly:"是否只读",maxlength:"最大输入长度",minlength:"最小输入长度",showWordLimit:"是否显示统计字数",placeholder:"输入框占位文本",rows:"输入框行数",autosize:"高度是否自适应"}},timePicker:{name:"时间",props:{pickerOptions:"当前时间日期选择器特有的选项",readonly:"完全只读",disabled:"禁用",editable:"文本框可输入",clearable:"是否显示清除按钮",placeholder:"非范围选择时的占位内容",startPlaceholder:"范围选择时开始日期的占位内容",endPlaceholder:"范围选择时开始日期的占位内容",isRange:"是否为时间范围选择",arrowControl:"是否使用箭头进行时间选择",align:"对齐方式"}},tree:{name:"树形控件",event:{nodeClick:"当节点被点击的时候触发",nodeContextmenu:"当某一节点被鼠标右键点击时会触发该事件",checkChange:"当复选框被点击的时候触发",check:"点击节点复选框之后触发",currentChange:"当前选中节点变化时触发的事件",nodeExpand:"节点被展开时触发的事件",nodeCollapse:"节点被关闭时触发的事件",nodeDragStart:"节点开始拖拽时触发的事件",nodeDragEnter:"拖拽进入其他节点时触发的事件",nodeDragLeave:"拖拽离开某个节点时触发的事件",nodeDragOver:"在拖拽节点时触发的事件(类似浏览器的 mouseover 事件)",nodeDragEnd:"拖拽结束时(可能未成功)触发的事件",nodeDrop:"拖拽成功完成时触发的事件"},props:{emptyText:"内容为空的时候展示的文本",props:"配置选项",renderAfterExpand:"是否在第一次展开某个树节点后才渲染其子节点",defaultExpandAll:"是否默认展开所有节点",expandOnClickNode:"是否在点击节点的时候展开或者收缩节点,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。",checkOnClickNode:"是否在点击节点的时候选中节点",autoExpandParent:"展开子节点的时候是否自动展开父节点",checkStrictly:"在显示复选框的情况下,是否严格的遵循父子不互相关联的做法",accordion:"是否每次只打开一个同级树节点展开",indent:"相邻级节点间的水平缩进(px)",nodeKey:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的"}},upload:{name:"上传",info:"上传成功后,将接口返回的 URL 赋值给 file.url,或将返回结果赋值给 file.value,以便在后续的表单提交时获取这些数据。",event:{remove:"文件列表移除文件时触发",preview:"点击文件列表中已上传的文件时触发",error:"文件上传失败时触发",progress:"文件上传时触发",exceed:"当超出限制时触发"},props:{listType:"上传类型",multiple:"是否支持多选文件",action:"上传的地址(必填)",beforeUpload:"上传文件之前触发",onSuccess:"上传成功时触发",beforeRemove:"删除文件之前触发",headers:"设置上传的请求头部",data:"上传时附带的额外参数",name:"上传的文件字段名",withCredentials:"支持发送 cookie 凭证信息",accept:"接受上传的文件类型",autoUpload:"是否在选取文件后立即进行上传",disabled:"是否禁用",limit:"最大允许上传个数"}}}},Ai=function(e,t){return H({message:e,type:t||"info",customClass:"_fc-message-tip"})},xi=function(e){return Ai(e,"error")},wi=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&fi(e,i,t[i]);return e};function Ci(e){return"object"!=y(e)||null===e?e:e instanceof Array?g(e):p({},e)}function Ei(e,t){return'<html lang="zh">\n <head>\n <meta charset="UTF-8">\n \x3c!-- Import style --\x3e\n <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css"/>\n \x3c!-- Import Vue 3 --\x3e\n <script src="https://unpkg.com/vue@3"><\/script>\n \x3c!-- Import element-plus --\x3e\n <script src="https://unpkg.com/element-plus"><\/script>\n \x3c!-- Import formCreate --\x3e\n <script src="https://unpkg.com/@form-create/element-ui@3"><\/script>\n <script src="https://unpkg.com/@form-create/designer@3"><\/script>\n </head>\n <body>\n <div id="app">\n <form-create :rule="rule" :option="options" v-model="formData" v-model:api="api" @submit="onSubmit"></form-create>\n </div>\n <script>\n const App = {\n data() {\n return {\n rule: formCreate.parseJson(\''.concat(e.replaceAll("\\","\\\\").replaceAll("'","\\'"),"'),\n options: formCreate.parseJson('").concat(t.replaceAll("\\","\\\\").replaceAll("'","\\'"),"'),\n formData: {},\n api: null,\n };\n },\n methods: {\n onSubmit(formData){\n console.log('submit', formData);\n }\n }\n };\n const app = Vue.createApp(App);\n app.use(ElementPlus).use(formCreate);\n app.mount(\"#app\");\n <\/script>\n </body>\n</html>")}function ki(){return{type:"Required",field:"formCreate$required",title:"是否必填"}}function Fi(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];t.id||(t.id=1),n&&n--;for(var r=0;r<3;r++){var o=h(h({},t.label,e+10*n+(r+1)),t.value,""+t.id++);n&&Fi(e,t,n,o.children=[]),i.push(o)}return i}function Si(e,t){var n=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:1}],i=[{value:1,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TableOptions",field:"formCreate"+Ti(t).replace(".",">"),props:{column:[{label:e("props.key"),key:"label"},{value:!0,label:e("props.value"),key:"value"}],keyValue:"label"}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:n,props:{type:"button"},control:i}}function Bi(e,t,n,i){var r=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:1}],o=[{value:1,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TreeOptions",field:"formCreate"+Ti(t).replace(".",">"),props:{columns:{label:n,value:i},keyValue:n}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:r,props:{type:"button"},control:o}}function Ti(e){return e.replace(e[0],e[0].toLocaleUpperCase())}var Oi=function(e){var t=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(e));return t&&Ri[t[1].toLowerCase()]?Ri[t[1].toLowerCase()](e):e},Ri={object:function(e){var t=[];for(var n in e)!di(e,n)||t.push(Oi(n)+": "+(null!=e[n]?Oi(e[n]):"null"));return"{\n "+t.join(",\n ")+"\n}"},function:function(e){var t=/^ *([\w]+) *\(/.exec(e=""+e);return t&&"function"!==t[1]?"function "+e:e},array:function(e){for(var t=0,n=[];t<e.length;t++)n[t]=null!=e[t]?Oi(e[t]):"null";return"["+n.join(", ")+"]"},string:function(e){for(var t=e.split(""),n=0;n<t.length;n++){var i=t[n];i>=" "?"\\"===i?t[n]="\\\\":'"'===i&&(t[n]='\\"'):t[n]="\n"===i?"\\n":"\r"===i?"\\r":"\t"===i?"\\t":"\b"===i?"\\b":"\f"===i?"\\f":"\\u00"+((i=i.charCodeAt())>15?1:0)+i%16}return'"'+t.join("")+'"'}},Mi=function(e){if(e&&"object"==y(e))for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];(Array.isArray(n)||ci.Object(n))&&Mi(n),ci.String(n)&&(e[t]=_i(n))}return e};var Ni=function(e){return function(t,n){return Ii(t,n,U(e))}},Ii=function(e,t,n){return function(e,t,n){for(var i=0,r=(t=(t||"").split(".")).length;null!=e&&i<r;)e=e[t[i++]];return i&&i===r&&void 0!==e?e:n}(n,e,"").replace(/\{(\w+)\}/g,function(e,n){var i;return"".concat(null!=(i=null==t?void 0:t[n])?i:"{".concat(n,"}"))})},Li=function(e){return function(e){var t=s(function(){return U(e).name}),n=s(function(){return Ti(yi(t.value||""))}),i=W(e)?e:C(e);return{lang:t,name:n,locale:i,t:Ni(e)}}(s(function(){return e.value||Di}))},Pi=function(e,t,n){return t.map(function(t){return t.label=e((n||"props")+"."+t.label||t.value)||t.label,t})},ji=function(e,t,n){return n.map(function(n){return"formCreate$required"===n.field?n.title=e("validate.required")||n.title:n.field&&"_optionType"!==n.field&&(n.title=e("com."+t+"."+n.field)||n.title),"template"===n.type&&ci.trueArray(n.children)&&(n.children=ji(e,t,n.children)),n})},Vi=function(e){var t=[];return e&&e.forEach(function(e){if(e._fc_drag_tag){var n={id:e.__fc__.id,rule:e,children:Vi(e.children)};n.children.length||delete n.children,t.push(n)}else t.push.apply(t,g(Vi(e.children)))}),t},zi=function(e){var t=function(e){var n=[];return e&&e.forEach(function(e){e.field?(e.children=t(e.children||[]),e.children.length||delete e.children,n.push(e)):n.push.apply(n,g(t(e.children||[])))}),n};return t(e)},Hi=function(e){var t=function(e){var n=[];return e&&e.forEach(function(e){if("object"==y(e))if(e._fc_drag_tag){var i={_fc_id:e._fc_id,type:e.type,field:e.field,title:e.title,name:e.name,slot:e.slot,props:p({},e.props||{}),options:Ci(e.options),children:t(e.children||[])};e.children&&"string"==typeof e.children[0]&&(i.content=e.children[0]),i.children.length||delete i.children,n.push(i)}else n.push.apply(n,g(t(e.children)))}),n};return t(e)};function Ui(e){return{name:"$inject",columns:[{label:"$inject.api",info:e("event.inject.api"),type:"Api"},{label:"$inject.rule",info:e("event.inject.rule"),type:"Rule[]"},{label:"$inject.self",info:e("event.inject.self"),type:"Rule"},{label:"$inject.option",info:e("event.inject.option"),type:"Object"},{label:"$inject.args",info:e("event.inject.args"),type:"Array"}]}}function Wi(e){return-1!==["",null,void 0].indexOf(e)}function Gi(e){var t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left="-9999px",t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(n){}Ai("已复制!","success"),document.body.removeChild(t)}function $i(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Qi(e){var t=e.t;return[{type:"input",field:"formCreateFormName",value:"",title:t("form.formName")},{type:"radio",field:"labelPosition",value:"left",title:t("form.labelPosition"),options:Pi(t,[{value:"left",label:"left"},{value:"right",label:"right"},{value:"top",label:"top"}])},{type:"radio",field:"size",value:"small",title:t("form.size"),options:Pi(t,[{value:"large",label:"large"},{value:"default",label:"default"},{value:"small",label:"small"}])},{type:"input",field:"labelSuffix",value:"",title:t("form.labelSuffix"),style:{width:"150px"}},{type:"SizeInput",field:"labelWidth",value:"125px",title:t("form.labelWidth")},{type:"switch",field:"hideRequiredAsterisk",value:!1,title:t("form.hideRequiredAsterisk")},{type:"switch",field:"showMessage",value:!0,title:t("form.showMessage")},{type:"switch",field:"inlineMessage",value:!1,title:t("form.inlineMessage")},{type:"switch",field:"_submitBtn>show",value:!0,title:t("form.submitBtn")},{type:"switch",field:"_resetBtn>show",value:!1,title:t("form.resetBtn")},{type:"FnConfig",field:"formCreate_event",name:"event",warning:t("form.controlDocument",{doc:'<a target="_blank" href="https://form-create.com/v3/guide/global-event" style="color: inherit;text-decoration: underline;">'+t("form.document")+"</a>"}),value:{},col:{show:!0},props:{eventConfig:[{name:"onSubmit",info:t("form.onSubmit"),args:["formData","api"]},{name:"onReset",info:t("form.onReset"),args:["api"]},{name:"onCreated",info:t("form.onCreated"),args:["api"]},{name:"onMounted",info:t("form.onMounted"),args:["api"]},{name:"onReload",info:t("form.onReload"),args:["api"]},{name:"onChange",info:t("form.onChange"),args:["field","value","options"]},{name:"beforeSubmit",info:t("form.beforeSubmit"),args:["formData","data"]},{name:"beforeFetch",info:t("form.beforeFetch"),args:["config","data"]}]},title:t("form.event")}]}function Yi(e){var t=e.t;return[{type:"FieldInput",field:"field",value:"",title:t("form.field"),warning:t("warning.field")},{type:"LanguageInput",field:"title",value:"",title:t("form.title")},{type:"LanguageInput",field:"info",value:"",title:t("form.info")},{type:"SizeInput",field:"formCreateWrap>labelWidth",value:"",title:t("form.labelWidth")},{type:"Struct",field:"_control",name:"control",value:[],title:t("form.control"),warning:t("form.controlDocument",{doc:'<a target="_blank" href="https://view.form-create.com/control" style="color: inherit;text-decoration: underline;">'+t("form.document")+"</a>"}),props:{defaultValue:[],validate:function(e){return!!Array.isArray(e)&&(!e.length||!e.some(function(e){var t=e.rule;return!Array.isArray(t)}))}}}]}function qi(e){e.t;return[{type:"input",title:"ID",field:"id",wrap:{labelWidth:"45px"}},{type:"input",title:"Class",field:"class",wrap:{labelWidth:"45px"}},{type:"StyleConfig",field:"style",title:"",value:{}}]}function Ki(e){var t=e.t;return[{type:"Required",field:"$required",title:t("validate.required")},{type:"validate",field:"validate",title:t("validate.rule"),value:[]}]}function Xi(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function Ji(e){e=e||new Map;var t={$on:function(t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])},$once:function(e,n){n._once=!0,t.$on(e,n)},$off:function(t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},$emit:function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];(e.get(n)||[]).slice().map(function(e){e._once&&(t.$off(n,e),delete e._once),e.apply(void 0,r)}),(e.get("*")||[]).slice().map(function(e){e(n,r)})}};return t}var Zi=0;function er(){var e=370+ ++Zi;return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now())).toString(36)+e.toString(36)+"c"}var tr="radio",nr={menu:"main",icon:"icon-radio",label:"单选框",name:tr,input:!0,event:["change"],validate:["string","number"],rule:function(e){var t=e.t;return{type:tr,field:er(),title:t("com.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Fi(t("props.option"),{label:"label",value:"value"},1)}},props:function(e,t){var n=t.t;return ji(n,tr+".props",[Si(n,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},ir="checkbox",rr={menu:"main",icon:"icon-checkbox",label:"多选框",name:ir,input:!0,event:["change"],validate:["array"],rule:function(e){var t=e.t;return{type:ir,field:er(),title:t("com.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Fi(t("props.option"),{label:"label",value:"value"},1)}},props:function(e,t){var n=t.t;return ji(n,ir+".props",[Si(n,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{field:"min",type:"inputNumber",props:{min:0}},{field:"max",type:"inputNumber",props:{min:0}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},or="input",ar={menu:"main",icon:"icon-input",label:"输入框",name:or,input:!0,event:["blur","focus","change","input","clear"],validate:["string","url","email"],rule:function(e){var t=e.t;return{type:or,field:er(),title:t("com.input.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,or+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"select",field:"type",options:Pi(n,[{label:"text",value:"text"},{label:"number",value:"number"},{label:"time",value:"time"},{label:"date",value:"date"},{label:"month",value:"month"},{label:"datetime-local",value:"datetime-local"}])},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},lr="textarea",ur={menu:"main",icon:"icon-textarea",label:"多行输入框",name:lr,input:!0,event:["blur","focus","change","input"],validate:["string"],rule:function(e){var t=e.t;return{type:"input",field:er(),title:t("com.textarea.name"),info:"",$required:!1,props:{type:"textarea"}}},props:function(e,t){var n=t.t;return ji(n,lr+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"switch",field:"showWordLimit"},{type:"input",field:"placeholder"},{type:"inputNumber",field:"rows",props:{min:0}},{type:"switch",field:"autosize"}])}},sr="password",cr={menu:"main",icon:"icon-password",label:"密码输入框",name:sr,input:!0,event:["blur","focus","change","input","clear"],validate:["string"],rule:function(e){var t=e.t;return{type:"input",field:er(),title:t("com.password.name"),info:"",$required:!1,props:{type:"password"}}},props:function(e,t){var n=t.t;return ji(n,sr+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},dr="inputNumber",fr={menu:"main",icon:"icon-number",label:"计数器",name:dr,input:!0,event:["blur","focus","change"],validate:["number","integer","float"],rule:function(e){var t=e.t;return{type:dr,field:er(),title:t("com.inputNumber.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,dr+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"},{type:"inputNumber",title:"precision",field:"precision"},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"stepStrictly"},{type:"switch",field:"controls",value:!0},{type:"select",field:"controlsPosition",options:Pi(n,[{label:"default",value:""},{label:"right",value:"right"}])},{type:"input",field:"placeholder"}])}},pr="select",hr={menu:"main",icon:"icon-select",label:"选择器",name:pr,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],rule:function(e){var t=e.t;return{type:pr,field:er(),title:t("com.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Fi(t("props.option"),{label:"label",value:"value"},1)}},watch:{multiple:function(e){e.rule.key=er()}},props:function(e,t){var n=t.t;return ji(n,pr+".props",[Si(n,"options"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"filterable"},{type:"switch",field:"remote"},{type:"FnInput",field:"remoteMethod",props:{body:!0,fnx:!0,name:"remoteMethod",args:[Ui(n)]}},{type:"switch",field:"allowCreate"},{type:"input",field:"noMatchText"},{type:"input",field:"noDataText"},{type:"switch",field:"reserveKeyword"},{type:"switch",field:"defaultFirstOption"}])}},mr="switch",gr={menu:"main",icon:"icon-switch",label:"开关",name:mr,input:!0,event:["change"],rule:function(e){var t=e.t;return{type:mr,field:er(),title:t("com.switch.name"),info:"",$required:!1,props:{activeValue:!0,inactiveValue:!1}}},props:function(e,t){var n=t.t;return ji(n,mr+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"width",props:{min:0}},{type:"input",field:"activeText"},{type:"input",field:"inactiveText"},{type:"ValueInput",field:"activeValue"},{type:"ValueInput",field:"inactiveValue"},{type:"ColorInput",field:"activeColor"},{type:"ColorInput",field:"inactiveColor"}])}},vr="slider",_r={menu:"main",icon:"icon-slider",label:"滑块",name:vr,input:!0,event:["change","input"],validate:["number","array"],rule:function(e){var t=e.t;return{type:vr,field:er(),title:t("com.slider.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,vr+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"range"},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"showInput"},{type:"switch",field:"showInputControls",value:!0},{type:"switch",field:"showStops"},{type:"switch",field:"vertical"},{type:"input",field:"height"}])}},yr="timePicker",br={menu:"main",icon:"icon-time",label:"时间",name:yr,input:!0,event:["change","blur","focus","visibleChange"],rule:function(e){var t=e.t;return{type:yr,field:er(),title:t("com.timePicker.name"),info:"",$required:!1,props:{}}},watch:{isRange:function(e){e.rule.key=er()}},props:function(e,t){var n=t.t;return ji(n,yr+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"isRange"},{type:"switch",field:"clearable",value:!0},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:Pi(n,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},Dr={menu:"main",icon:"icon-time-range",label:"时间区间",name:"timeRange",input:!0,event:["change","blur","focus","visibleChange"],rule:function(e){var t=e.t;return{type:"timePicker",field:er(),title:t("com.timeRange.name"),info:"",$required:!1,props:{isRange:!0}}},props:function(e,t){var n=t.t;return ji(n,"timePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable",value:!0},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:Pi(n,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},Ar="datePicker",xr={menu:"main",icon:"icon-date",label:"日期",name:Ar,input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],rule:function(e){var t=e.t;return{type:Ar,field:er(),title:t("com.datePicker.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,Ar+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:Pi(n,[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}])},{type:"switch",field:"clearable",value:!0},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:Pi(n,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},wr={menu:"main",icon:"icon-date-range",label:"日期区间",name:"dateRange",input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],rule:function(e){var t=e.t;return{type:"datePicker",field:er(),title:t("com.dateRange.name"),info:"",$required:!1,props:{type:"datetimerange"}}},props:function(e,t){var n=t.t;return ji(n,"datePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:Pi(n,[{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}])},{type:"switch",field:"clearable",value:!0},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:Pi(n,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},Cr="rate",Er={menu:"main",icon:"icon-rate",label:"评分",name:Cr,input:!0,event:["change"],validate:["number"],rule:function(e){var t=e.t;return{type:Cr,field:er(),title:t("com.rate.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,Cr+".props",[{type:"inputNumber",field:"max",props:{min:0}},{type:"switch",field:"disabled"},{type:"switch",field:"allowHalf"},{type:"ColorInput",field:"voidColor"},{type:"ColorInput",field:"disabledVoidColor"},{type:"input",field:"voidIconClass"},{type:"input",field:"disabledVoidIconClass"},{type:"switch",field:"showScore"},{type:"ColorInput",field:"textColor"},{type:"input",field:"scoreTemplate"}])}},kr="colorPicker",Fr={menu:"main",icon:"icon-color",label:"颜色选择器",name:kr,input:!0,event:["change","activeChange","focus","blur"],validate:["string"],rule:function(e){var t=e.t;return{type:kr,field:er(),title:t("com.colorPicker.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,kr+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"showAlpha"},{type:"select",field:"colorFormat",options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},{type:"tableOptions",field:"predefine",props:{column:[{label:n("props.value"),key:"value"}],valueType:"string"}}])}},Sr="fcRow",Br="col",Tr={xs:"<768px",sm:"≥768px",md:"≥992px",lg:"≥1200px",xl:"≥1920px"},Or={name:Br,label:"格子",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule:function(){return{type:Br,props:{span:12},children:[]}},props:function(e,t){var n=t.t;return ji(n,Br+".props",[{type:"slider",field:"span",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",props:{min:0,max:24}},{type:"slider",field:"push",props:{min:0,max:24}},{type:"slider",field:"pull",props:{min:0,max:24}},{type:"ConfigItem",props:{label:n("props.reactive")},children:[{type:"elTabs",style:{width:"100%"},slot:"append",children:Object.keys(Tr).map(function(e){return{type:"elTabPane",props:{label:Tr[e]},style:"padding:0 10px;",children:[{type:"slider",field:e+">span",title:n("com.col.props.span"),value:12,props:{min:0,max:24}},{type:"slider",field:e+">offset",title:n("com.col.props.offset"),props:{min:0,max:24}},{type:"slider",field:e+">push",title:n("com.col.props.push"),props:{min:0,max:24}},{type:"slider",field:e+">pull",title:n("com.col.props.pull"),props:{min:0,max:24}}]}})}]}])}},Rr="elTabPane",Mr={label:"选项卡",name:Rr,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule:function(e){var t=e.t;return{type:Rr,props:{label:t("com.elTabPane.name")},children:[]}},props:function(e,t){var n=t.t;return ji(n,Rr+".props",[{type:"input",field:"label"},{type:"switch",field:"disabled"},{type:"input",field:"name"},{type:"switch",field:"lazy"}])}},Nr="elDivider",Ir={menu:"aide",icon:"icon-divider",label:"分割线",name:Nr,rule:function(e){var t=e.t;return{type:Nr,props:{},children:[t("com.elDivider.name")]}},props:function(e,t){var n=t.t;return ji(n,Nr+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"contentPosition",options:Pi(n,[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}])}])}},Lr="cascader",Pr={menu:"main",icon:"icon-cascader",label:"级联选择器",name:Lr,input:!0,event:["change","expandChange","blur","focus","visibleChange","removeTag"],validate:["string","number","array"],rule:function(e){var t=e.t;return{type:Lr,field:er(),title:t("com.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:Fi(t("props.option"),{label:"label",value:"value"},3)}}},props:function(e,t){var n=t.t;return ji(n,Lr+".props",[Bi(n,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"input",field:"placeholder"},{type:"Object",field:"props",props:{rule:ji(n,Lr+".propsOpt",[{type:"switch",field:"multiple"},{type:"select",field:"expandTrigger",options:Pi(n,[{label:"click",value:"click"},{label:"hover",value:"hover"}])},{type:"switch",field:"checkStrictly"},{type:"switch",field:"emitPath",value:!0},{type:"input",field:"value",value:"value"},{type:"input",field:"label",value:"label"},{type:"input",field:"children",value:"children"},{type:"input",field:"disabled",value:"disabled"},{type:"input",field:"leaf"}])}},{type:"switch",field:"showAllLevels",value:!0},{type:"switch",field:"collapseTags"},{type:"switch",field:"collapseTagsTooltip"},{type:"input",field:"separator"},{type:"switch",field:"filterable"},{type:"select",field:"tagType",options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]}])}},jr="upload",Vr={menu:"main",icon:"icon-upload",label:"上传",name:jr,input:!0,event:["change","remove","preview","error","progress","exceed"],languageKey:["clickToUpload"],validate:["array"],rule:function(e){var t=e.t;return{type:jr,field:er(),title:t("com.upload.name"),info:"",$required:!1,props:{action:"/",onSuccess:"$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.url;"}}},props:function(e,t){var n=t.t;return ji(n,jr+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:Pi(n,[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}])},{type:"switch",field:"multiple"},{type:"input",field:"action"},{type:"input",field:"accept"},{type:"FnInput",field:"beforeUpload",props:{body:!0,button:!0,fnx:!0,args:[Ui(n)],name:"beforeUpload"}},{type:"FnInput",field:"beforeRemove",props:{body:!0,button:!0,fnx:!0,args:[Ui(n)],name:"beforeRemove"}},{type:"FnInput",field:"onSuccess",warning:n("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[Ui(n)],name:"onSuccess"}},{type:"TableOptions",field:"headers",props:{column:[{label:n("props.key"),key:"label"},{label:n("props.value"),key:"value"}],valueType:"object"}},{type:"TableOptions",field:"data",props:{column:[{label:n("props.key"),key:"label"},{label:n("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"withCredentials"},{type:"switch",field:"autoUpload",value:!0},{type:"inputNumber",field:"limit",props:{min:0}}])}},zr="elTransfer",Hr={menu:"main",icon:"icon-transfer",label:"穿梭框",name:zr,input:!0,event:["change","leftCheckChange","rightCheckChange"],validate:["string","number","array"],rule:function(e){var t=e.t;return{type:zr,field:er(),title:t("com.elTransfer.name"),info:"",$required:!1,props:{data:Fi(t("props.option"),{label:"label",value:"key"},1)}}},props:function(e,t){var n=t.t;return ji(n,zr+".props",[Bi(n,"props.data","label","key"),{type:"switch",field:"filterable"},{type:"input",field:"filterPlaceholder"},{type:"select",field:"targetOrder",warning:n("com.elTransfer.props.targetOrderInfo"),options:[{label:"original",value:"original"},{label:"push",value:"push"},{label:"unshift",value:"unshift"}]},{type:"TableOptions",field:"titles",props:{column:[{label:n("props.value"),key:"value"}],valueType:"string",max:2}},{type:"TableOptions",field:"buttonTexts",props:{column:[{label:n("props.value"),key:"value"}],valueType:"string",max:2}}])}},Ur="tree",Wr={menu:"main",icon:"icon-tree",label:"树形控件",name:Ur,input:!0,event:["nodeClick","nodeContextmenu","checkChange","check","currentChange","nodeExpand","nodeCollapse","nodeDragStart","nodeDragEnter","nodeDragLeave","nodeDragOver","nodeDragEnd","nodeDrop"],validate:["string","number","array"],rule:function(e){var t=e.t;return{type:Ur,field:er(),title:t("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:Fi(t("props.option"),{label:"label",value:"id"},3)}}},props:function(e,t){var n=t.t;return ji(n,Ur+".props",[Bi(n,"props.data","label","id"),{type:"input",field:"emptyText"},{type:"TableOptions",field:"props",props:{column:[{label:n("props.key"),key:"label"},{label:n("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"renderAfterExpand",value:!0},{type:"switch",field:"defaultExpandAll"},{type:"switch",field:"expandOnClickNode",value:!0},{type:"switch",field:"checkOnClickNode"},{type:"switch",field:"autoExpandParent",value:!0},{type:"switch",field:"checkStrictly"},{type:"switch",field:"accordion"},{type:"inputNumber",field:"indent"},{type:"input",field:"nodeKey"}])}},Gr="elAlert",$r={menu:"aide",icon:"icon-alert",label:"提示",name:Gr,event:["close"],rule:function(e){var t=e.t;return{type:Gr,props:{title:t("com.elAlert.name"),description:t("com.elAlert.description"),type:"success",effect:"dark"},children:[]}},props:function(e,t){var n=t.t;return ji(n,Gr+".props",[{type:"input",field:"title"},{type:"select",field:"type",options:[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}]},{type:"input",field:"description"},{type:"switch",field:"closable",value:!0},{type:"switch",field:"center",value:!0},{type:"input",field:"closeText"},{type:"switch",field:"showIcon"},{type:"select",field:"effect",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]}])}},Qr="text",Yr={menu:"aide",icon:"icon-span",label:"文字",name:Qr,rule:function(e){return{type:"div",title:"",native:!0,style:{whiteSpace:"pre-line",width:"100%"},children:[(0,e.t)("com.text.name")]}},watch:{formCreateNative:function(e){var t=e.value,n=e.rule;t&&(n.title="")}},props:function(e,t){var n=t.t;return ji(n,Qr+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"input",field:"formCreateChild",props:{type:"textarea"}}])}},qr="space",Kr="elTabs",Xr="elButton",Jr={menu:"aide",icon:"icon-button",label:"按钮",name:Xr,mask:!0,event:["click"],rule:function(e){var t=e.t;return{type:Xr,props:{},children:[t("com.elButton.name")]}},props:function(e,t){var n=t.t;return ji(n,Xr+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"size",options:Pi(n,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"type",options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{type:"switch",field:"plain"},{type:"switch",field:"round"},{type:"switch",field:"circle"},{type:"switch",field:"loading"},{type:"switch",field:"disabled"}])}},Zr="fcEditor",eo={menu:"main",icon:"icon-editor",label:"富文本框",name:Zr,input:!0,event:["change"],validate:["string"],rule:function(e){var t=e.t;return{type:Zr,field:er(),title:t("com.fcEditor.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,Zr+".props",[{type:"switch",field:"disabled"}])}},to="group",no={menu:"subform",icon:"icon-subform",label:"子表单",name:to,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,event:["change"],subForm:"array",loadRule:function(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule:function(e){e.props.rule=e.children,e.type="group",delete e.children,delete e.props.mode},rule:function(e){var t=e.t;return{type:"fcRow",field:er(),title:t("com.group.name"),info:"",$required:!1,props:{},children:[]}},props:function(e,t){var n=t.t;return ji(n,to+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"syncDisabled",value:!0},{type:"switch",field:"button",value:!0},{type:"switch",field:"sortBtn",value:!0},{type:"inputNumber",field:"expand"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},io="subForm",ro={menu:"subform",icon:"icon-group",label:"分组",name:io,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,subForm:"object",event:["change"],loadRule:function(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule:function(e){e.props.rule=e.children,e.type="subForm",delete e.children},rule:function(e){var t=e.t;return{type:"fcRow",field:er(),title:t("com.subForm.name"),info:"",$required:!1,props:{},children:[]}},props:function(e,t){var n=t.t;return ji(n,io+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"syncDisabled",value:!0}])}},oo="elCard",ao={menu:"layout",icon:"icon-card",label:"卡片",name:oo,drag:!0,inside:!1,mask:!1,rule:function(e){var t=e.t;return{type:oo,props:{header:t("com.elCard.props.header")},style:{width:"100%"},children:[]}},props:function(e,t){var n=t.t;return ji(n,oo+".props",[{type:"input",field:"header"},{type:"select",field:"shadow",value:"always",options:Pi(n,[{label:"always",value:"always"},{label:"never",value:"never"},{label:"hover",value:"hover"}])}])}},lo="elCollapse",uo="elCollapseItem",so={icon:"icon-cell",label:"面板",name:uo,drag:!0,dragBtn:!1,inside:!0,mask:!1,rule:function(e){var t=e.t;return{type:uo,props:{title:t("com.elCollapseItem.name")},style:{},children:[]}},props:function(e,t){var n=t.t;return ji(n,uo+".props",[{type:"input",field:"title"},{type:"input",field:"name"},{type:"switch",field:"disabled"}])}},co="elTreeSelect",fo={menu:"main",icon:"icon-tree-select",label:"树形选择",name:co,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],rule:function(e){var t=e.t;return{type:co,field:er(),title:t("com.elTreeSelect.name"),info:"",effect:{fetch:""},$required:!1,props:{nodeKey:"value",showCheckbox:!0,data:Fi(t("props.option"),{label:"label",value:"value"},3)}}},watch:{multiple:function(e){e.rule.key=er()}},props:function(e,t){var n=t.t;return ji(n,co+".props",[Bi(n,"props.data","label","value"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"TableOptions",field:"props",props:{column:[{label:n("props.key"),key:"label"},{label:n("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"renderAfterExpand",value:!0},{type:"switch",field:"defaultExpandAll"},{type:"switch",field:"expandOnClickNode",value:!0},{type:"switch",field:"checkOnClickNode"},{type:"input",field:"nodeKey"}])}},po="elTag",ho={menu:"aide",icon:"icon-tag",label:"标签",name:po,mask:!0,event:["click","close"],rule:function(e){var t=e.t;return{type:po,title:"",native:!0,children:[t("com.elTag.name")]}},watch:{formCreateNative:function(e){var t=e.value,n=e.rule;t&&(n.title="")}},props:function(e,t){var n=t.t;return ji(n,po+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"input",field:"formCreateChild"},{type:"select",field:"type",options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{type:"select",field:"size",options:Pi(n,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"effect",options:[{label:"dark",value:"dark"},{label:"light",value:"light"},{label:"plain",value:"plain"}]},{type:"switch",field:"closable"},{type:"switch",field:"disableTransitions"},{type:"switch",field:"hit"},{type:"switch",field:"round"},{type:"ColorInput",field:"color"}])}},mo="html",go={menu:"aide",icon:"icon-html",label:"HTML",name:mo,rule:function(){return{type:mo,title:"",native:!0,attrs:{innerHTML:""},style:{display:"block",width:"100%"},children:['<div style="color:blue;">\n html html html html html html html html html\n </div>']}},watch:{formCreateNative:function(e){var t=e.value,n=e.rule;t&&(n.title="")}},props:function(e,t){var n=t.t;return ji(n,mo+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"HtmlEditor",field:"formCreateChild"}])}},vo="fcTable",_o="tableForm",yo={menu:"subform",icon:"icon-table-form",label:"表格表单",name:_o,mask:!1,input:!0,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",loadRule:function(e){e.props||(e.props={});var t=e.props.columns||[];e.children=t.map(function(e){return{type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:e.label,align:e.align,required:e.required||!1,width:e.style.width||"",color:e.style.color||""},children:e.rule||[]}}),delete e.props.columns},parseRule:function(e){var t=e.children||[];e.props.columns=t.map(function(e){return{label:e.props.label,required:e.props.required,align:e.props.align,style:{width:e.props.width,color:e.props.color},rule:e.children||[]}}),e.children=[]},rule:function(e){var t=e.t;return{type:_o,field:er(),title:t("com.tableForm.name"),info:"",props:{},children:[]}},props:function(e,t){var n=t.t;return ji(n,_o+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"addable",value:!0},{type:"switch",field:"deletable",value:!0},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}}])}},bo="tableFormColumn",Do={icon:"icon-cell",name:bo,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,rule:function(e){var t=e.t;return{type:bo,props:{label:t("com.tableFormColumn.label"),width:"auto"},children:[]}},props:function(e,t){var n=t.t;return ji(n,bo+".props",[{type:"input",field:"label"},{type:"select",field:"align",options:Pi(n,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"switch",field:"required"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},Ao="elImage",xo="signaturePad",wo={menu:"main",icon:"icon-sign",label:"手写签名",name:xo,input:!0,mask:!0,languageKey:["signaturePadTip","signaturePadTitle","reset","ok"],event:["change","remove"],rule:function(e){var t=e.t;return{type:xo,field:er(),title:t("com.signaturePad.name"),info:"",$required:!1,props:{}}},props:function(e,t){var n=t.t;return ji(n,xo+".props",[{type:"ColorInput",field:"penColor"},{type:"switch",field:"disabled"}])}},Co="fcTitle",Eo={menu:"aide",icon:"icon-title",label:"标题",name:Co,event:[],rule:function(e){return{type:"fcTitle",props:{title:(0,e.t)("props.title")}}},props:function(e,t){var n=t.t;return ji(n,Co+".props",[{type:"input",field:"title"},{type:"select",field:"size",value:"H2",options:[1,2,3,4,5,6].map(function(e){return{label:"H"+e,value:"h"+e}})},{type:"select",field:"align",options:Pi(n,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},ko=[ar,ur,cr,fr,nr,rr,hr,gr,Er,br,Dr,_r,xr,wr,Fr,Pr,Vr,Hr,Wr,fo,eo,wo,no,ro,yo,Do,$r,Jr,Yr,Eo,go,Ir,ho,{menu:"aide",icon:"icon-image",label:"图片",name:Ao,rule:function(){return{type:Ao,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props:function(e,t){var n=t.t;return ji(n,Ao+".props",[{type:"input",field:"src"}])}},{menu:"layout",icon:"icon-row",label:"栅格布局",name:Sr,mask:!1,children:"col",childrenLen:2,rule:function(){return{type:Sr,props:{},children:[]}},props:function(e,t){var n=t.t;return ji(n,Sr+".props",[{type:"inputNumber",field:"gutter",props:{min:0}},{type:"switch",field:"type",props:{activeValue:"flex",inactiveValue:"default"}},{type:"select",field:"justify",options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}]},{type:"select",field:"align",options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}]}])}},{menu:"layout",icon:"icon-table",label:"表格布局",name:vo,inside:!1,mask:!1,rule:function(){return{type:vo,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props:function(e,t){var n=t.t;return ji(n,vo+".props",[{type:"switch",field:"border",value:!0},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},{menu:"layout",icon:"icon-tab",label:"标签页",name:Kr,mask:!1,event:["tabClick","tabChange","tabRemove","tabAdd","edit"],children:"elTabPane",rule:function(){return{type:Kr,style:{width:"100%"},children:[]}},props:function(e,t){var n=t.t;return ji(n,Kr+".props",[{type:"select",field:"type",options:[{label:"card",value:"card"},{label:"border-card",value:"border-card"}]},{type:"switch",field:"closable"},{type:"select",field:"tabPosition",options:Pi(n,[{label:"top",value:"top"},{label:"right",value:"right"},{label:"left",value:"left"}])},{type:"switch",field:"stretch"}])}},{menu:"layout",icon:"icon-space",label:"间距",name:qr,rule:function(){return{type:"div",wrap:{show:!1},native:!0,style:{width:"100%",height:"20px"},children:[]}},props:function(e,t){var n=t.t;return[{type:"object",field:"formCreateStyle",native:!0,props:{rule:ji(n,qr+".props",[{type:"input",field:"height",title:"height"}])}}]}},ao,{menu:"layout",icon:"icon-collapse",label:"折叠面板",name:lo,mask:!1,children:"elCollapseItem",event:["change"],rule:function(){return{type:lo,props:{},style:{width:"100%"},children:[]}},props:function(e,t){var n=t.t;return ji(n,lo+".props",[{type:"switch",field:"accordion"}])}},Or,Mr,so];
  21. /**!
  22. * Sortable 1.14.0
  23. * @author RubaXa <trash@rubaxa.org>
  24. * @author owenm <owen23355@gmail.com>
  25. * @license MIT
  26. */
  27. function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach(function(t){To(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bo(e){return(Bo="function"==typeof Symbol&&"symbol"==y(Symbol.iterator)?function(e){return y(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":y(e)})(e)}function To(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(){return Oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Oo.apply(this,arguments)}function Ro(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function Mo(e){if(("undefined"==typeof window?"undefined":y(window))<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var No=Mo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Io=Mo(/Edge/i),Lo=Mo(/firefox/i),Po=Mo(/safari/i)&&!Mo(/chrome/i)&&!Mo(/android/i),jo=Mo(/iP(ad|od|hone)/i),Vo=Mo(/chrome/i)&&Mo(/android/i),zo={capture:!1,passive:!1};function Ho(e,t,n){e.addEventListener(t,n,!No&&zo)}function Uo(e,t,n){e.removeEventListener(t,n,!No&&zo)}function Wo(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Go(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function $o(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Wo(e,t):Wo(e,t))||i&&e===n)return e;if(e===n)break}while(e=Go(e))}return null}var Qo,Yo=/\s+/g;function qo(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Yo," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Yo," ")}}function Ko(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];!(t in i)&&-1===t.indexOf("webkit")&&(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function Xo(e,t){var n="";if("string"==typeof e)n=e;else do{var i=Ko(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Jo(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function Zo(){return document.scrollingElement||document.documentElement}function ea(e,t,n,i,r){if(e.getBoundingClientRect||e===window){var o,a,l,u,s,c,d;if(e!==window&&e.parentNode&&e!==Zo()?(a=(o=e.getBoundingClientRect()).top,l=o.left,u=o.bottom,s=o.right,c=o.height,d=o.width):(a=0,l=0,u=window.innerHeight,s=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!No))do{if(r&&r.getBoundingClientRect&&("none"!==Ko(r,"transform")||n&&"static"!==Ko(r,"position"))){var f=r.getBoundingClientRect();a-=f.top+parseInt(Ko(r,"border-top-width")),l-=f.left+parseInt(Ko(r,"border-left-width")),u=a+o.height,s=l+o.width;break}}while(r=r.parentNode);if(i&&e!==window){var p=Xo(r||e),h=p&&p.a,m=p&&p.d;p&&(u=(a/=m)+(c/=m),s=(l/=h)+(d/=h))}return{top:a,left:l,bottom:u,right:s,width:d,height:c}}}function ta(e,t,n){for(var i=aa(e,!0),r=ea(e)[t];i;){if(!(r>=ea(i)[n]))return i;if(i===Zo())break;i=aa(i,!1)}return!1}function na(e,t,n,i){for(var r=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==sl.ghost&&(i||a[o]!==sl.dragged)&&$o(a[o],n.draggable,e,!1)){if(r===t)return a[o];r++}o++}return null}function ia(e,t){for(var n=e.lastElementChild;n&&(n===sl.ghost||"none"===Ko(n,"display")||t&&!Wo(n,t));)n=n.previousElementSibling;return n||null}function ra(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"!==e.nodeName.toUpperCase()&&e!==sl.clone&&(!t||Wo(e,t))&&n++;return n}function oa(e){var t=0,n=0,i=Zo();if(e)do{var r=Xo(e),o=r.a,a=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}function aa(e,t){if(!e||!e.getBoundingClientRect)return Zo();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Ko(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Zo();if(i||t)return n;i=!0}}}while(n=n.parentNode);return Zo()}function la(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function ua(e,t){return function(){if(!Qo){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Qo=setTimeout(function(){Qo=void 0},t)}}}function sa(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function ca(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var da="Sortable"+(new Date).getTime();function fa(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(e){if("none"!==Ko(e,"display")&&e!==sl.ghost){t.push({target:e,rect:ea(e)});var n=So({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=Xo(e,!0);i&&(n.top-=i.f,n.left-=i.e)}e.fromRect=n}})},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!1,o=0;t.forEach(function(e){var t=0,n=e.target,a=n.fromRect,l=ea(n),u=n.prevFromRect,s=n.prevToRect,c=e.rect,d=Xo(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&la(u,l)&&!la(a,l)&&(c.top-l.top)/(c.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}(c,u,s,i.options)),la(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=i.options.animation),i.animate(n,c,l,t)),t&&(r=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(e),r?e=setTimeout(function(){"function"==typeof n&&n()},o):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,i){if(i){Ko(e,"transition",""),Ko(e,"transform","");var r=Xo(this.el),o=r&&r.a,a=r&&r.d,l=(t.left-n.left)/(o||1),u=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!u,Ko(e,"transform","translate3d("+l+"px,"+u+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Ko(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ko(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){Ko(e,"transition",""),Ko(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}var pa=[],ha={initializeByDefault:!0},ma={mount:function(e){for(var t in ha)ha.hasOwnProperty(t)&&!(t in e)&&(e[t]=ha[t]);pa.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),pa.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";pa.forEach(function(i){!t[i.pluginName]||(t[i.pluginName][r]&&t[i.pluginName][r](So({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](So({sortable:t},n)))})},initializePlugins:function(e,t,n,i){for(var r in pa.forEach(function(i){var r=i.pluginName;if(e.options[r]||i.initializeByDefault){var o=new i(e,t,e.options);o.sortable=e,o.options=e.options,e[r]=o,Oo(n,o.defaults)}}),e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);y(o)<"u"&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return pa.forEach(function(i){"function"==typeof i.eventProperties&&Oo(n,i.eventProperties.call(t[i.pluginName],e))}),n},modifyOption:function(e,t,n){var i;return pa.forEach(function(r){!e[r.pluginName]||r.optionListeners&&"function"==typeof r.optionListeners[t]&&(i=r.optionListeners[t].call(e[r.pluginName],n))}),i}};var ga=["evt"],va=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=Ro(n,ga);ma.pluginEvent.bind(sl)(e,t,So({dragEl:ya,parentEl:ba,ghostEl:Da,rootEl:Aa,nextEl:xa,lastDownEl:wa,cloneEl:Ca,cloneHidden:Ea,dragStarted:ja,putSortable:Oa,activeSortable:sl.active,originalEvent:i,oldIndex:ka,oldDraggableIndex:Sa,newIndex:Fa,newDraggableIndex:Ba,hideGhostForTarget:ol,unhideGhostForTarget:al,cloneNowHidden:function(){Ea=!0},cloneNowShown:function(){Ea=!1},dispatchSortableEvent:function(e){_a({sortable:t,name:e,originalEvent:i})}},r))};function _a(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,a=e.toEl,l=e.fromEl,u=e.oldIndex,s=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[da]){var m,g=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||No||Io?(m=document.createEvent("Event")).initEvent(i,!0,!0):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=r||n,m.clone=o,m.oldIndex=u,m.newIndex=s,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var _=So(So({},h),ma.getEventProperties(i,t));for(var y in _)m[y]=_[y];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(So({putSortable:Oa,cloneEl:Ca,targetEl:ya,rootEl:Aa,oldIndex:ka,oldDraggableIndex:Sa,newIndex:Fa,newDraggableIndex:Ba},e))}var ya,ba,Da,Aa,xa,wa,Ca,Ea,ka,Fa,Sa,Ba,Ta,Oa,Ra,Ma,Na,Ia,La,Pa,ja,Va,za,Ha,Ua,Wa=!1,Ga=!1,$a=[],Qa=!1,Ya=!1,qa=[],Ka=!1,Xa=[],Ja=("undefined"==typeof document?"undefined":y(document))<"u",Za=jo,el=Io||No?"cssFloat":"float",tl=Ja&&!Vo&&!jo&&"draggable"in document.createElement("div"),nl=function(){if(Ja){if(No)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),il=function(e,t){var n=Ko(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=na(e,0,t),o=na(e,1,t),a=r&&Ko(r),l=o&&Ko(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ea(r).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ea(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=i&&"none"===n[el]||o&&"none"===n[el]&&u+s>i)?"vertical":"horizontal"},rl=function(e){function t(e,n){return function(i,r,o,a){var l=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,r,o,a),n)(i,r,o,a);var u=(n?i:r).options.group.name;return!0===e||"string"==typeof e&&e===u||e.join&&e.indexOf(u)>-1}}var n={},i=e.group;(!i||"object"!=Bo(i))&&(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},ol=function(){!nl&&Da&&Ko(Da,"display","none")},al=function(){!nl&&Da&&Ko(Da,"display","")};Ja&&document.addEventListener("click",function(e){if(Ga)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ga=!1,!1},!0);var ll=function(e){if(ya){var t=function(e,t){var n;return $a.some(function(i){var r=i[da].options.emptyInsertThreshold;if(r&&!ia(i)){var o=ea(i),a=e>=o.left-r&&e<=o.right+r,l=t>=o.top-r&&t<=o.bottom+r;if(a&&l)return n=i}}),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[da]._onDragOver(n)}}},ul=function(e){ya&&ya.parentNode[da]._isOutsideThisEl(e.target)};function sl(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Oo({},t),e[da]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return il(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==sl.supportPointer&&"PointerEvent"in window&&!Po,emptyInsertThreshold:5};for(var i in ma.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var r in rl(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&tl,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ho(e,"pointerdown",this._onTapStart):(Ho(e,"mousedown",this._onTapStart),Ho(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ho(e,"dragover",this),Ho(e,"dragenter",this)),$a.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Oo(this,fa())}function cl(e,t,n,i,r,o,a,l){var u,s,c=e[da],d=c.options.onMove;return!window.CustomEvent||No||Io?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=i,u.related=r||t,u.relatedRect=o||ea(t),u.willInsertAfter=l,u.originalEvent=a,e.dispatchEvent(u),d&&(s=d.call(c,u,a)),s}function dl(e){e.draggable=!1}function fl(){Ka=!1}function pl(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function hl(e){return setTimeout(e,0)}function ml(e){return clearTimeout(e)}sl.prototype={constructor:sl,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Va=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ya):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,s=i.filter;if(function(e){Xa.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Xa.push(i)}}(n),!ya&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!Po||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=$o(l,i.draggable,n,!1))&&l.animated||wa===l)){if(ka=ra(l),Sa=ra(l,i.draggable),"function"==typeof s){if(s.call(this,e,l,this))return _a({sortable:t,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),va("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some(function(i){if(i=$o(u,i.trim(),n,!1))return _a({sortable:t,rootEl:i,name:"filter",targetEl:l,fromEl:n,toEl:n}),va("filter",t,{evt:e}),!0})))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!$o(u,i.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,l=o.ownerDocument;if(n&&!ya&&n.parentNode===o){var u=ea(n);if(Aa=o,ba=(ya=n).parentNode,xa=ya.nextSibling,wa=n,Ta=a.group,sl.dragged=ya,Ra={target:ya,clientX:(t||e).clientX,clientY:(t||e).clientY},La=Ra.clientX-u.left,Pa=Ra.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ya.style["will-change"]="all",i=function(){va("delayEnded",r,{evt:e}),sl.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Lo&&r.nativeDraggable&&(ya.draggable=!0),r._triggerDragStart(e,t),_a({sortable:r,name:"choose",originalEvent:e}),qo(ya,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){Jo(ya,e.trim(),dl)}),Ho(l,"dragover",ll),Ho(l,"mousemove",ll),Ho(l,"touchmove",ll),Ho(l,"mouseup",r._onDrop),Ho(l,"touchend",r._onDrop),Ho(l,"touchcancel",r._onDrop),Lo&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ya.draggable=!0),va("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Io||No))i();else{if(sl.eventCanceled)return void this._onDrop();Ho(l,"mouseup",r._disableDelayedDrag),Ho(l,"touchend",r._disableDelayedDrag),Ho(l,"touchcancel",r._disableDelayedDrag),Ho(l,"mousemove",r._delayedDragTouchMoveHandler),Ho(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&Ho(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ya&&dl(ya),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Uo(e,"mouseup",this._disableDelayedDrag),Uo(e,"touchend",this._disableDelayedDrag),Uo(e,"touchcancel",this._disableDelayedDrag),Uo(e,"mousemove",this._delayedDragTouchMoveHandler),Uo(e,"touchmove",this._delayedDragTouchMoveHandler),Uo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Ho(document,"pointermove",this._onTouchMove):Ho(document,t?"touchmove":"mousemove",this._onTouchMove):(Ho(ya,"dragend",this),Ho(Aa,"dragstart",this._onDragStart));try{document.selection?hl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Wa=!1,Aa&&ya){va("dragStarted",this,{evt:t}),this.nativeDraggable&&Ho(document,"dragover",ul);var n=this.options;!e&&qo(ya,n.dragClass,!1),qo(ya,n.ghostClass,!0),sl.active=this,e&&this._appendGhost(),_a({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ma){this._lastX=Ma.clientX,this._lastY=Ma.clientY,ol();for(var e=document.elementFromPoint(Ma.clientX,Ma.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ma.clientX,Ma.clientY))!==t;)t=e;if(ya.parentNode[da]._isOutsideThisEl(e),t)do{if(t[da]){if(t[da]._onDragOver({clientX:Ma.clientX,clientY:Ma.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);al()}},_onTouchMove:function(e){if(Ra){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=Da&&Xo(Da,!0),a=Da&&o&&o.a,l=Da&&o&&o.d,u=Za&&Ua&&oa(Ua),s=(r.clientX-Ra.clientX+i.x)/(a||1)+(u?u[0]-qa[0]:0)/(a||1),c=(r.clientY-Ra.clientY+i.y)/(l||1)+(u?u[1]-qa[1]:0)/(l||1);if(!sl.active&&!Wa){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Da){o?(o.e+=s-(Na||0),o.f+=c-(Ia||0)):o={a:1,b:0,c:0,d:1,e:s,f:c};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Ko(Da,"webkitTransform",d),Ko(Da,"mozTransform",d),Ko(Da,"msTransform",d),Ko(Da,"transform",d),Na=s,Ia=c,Ma=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Da){var e=this.options.fallbackOnBody?document.body:Aa,t=ea(ya,!0,Za,!0,e),n=this.options;if(Za){for(Ua=e;"static"===Ko(Ua,"position")&&"none"===Ko(Ua,"transform")&&Ua!==document;)Ua=Ua.parentNode;Ua!==document.body&&Ua!==document.documentElement?(Ua===document&&(Ua=Zo()),t.top+=Ua.scrollTop,t.left+=Ua.scrollLeft):Ua=Zo(),qa=oa(Ua)}qo(Da=ya.cloneNode(!0),n.ghostClass,!1),qo(Da,n.fallbackClass,!0),qo(Da,n.dragClass,!0),Ko(Da,"transition",""),Ko(Da,"transform",""),Ko(Da,"box-sizing","border-box"),Ko(Da,"margin",0),Ko(Da,"top",t.top),Ko(Da,"left",t.left),Ko(Da,"width",t.width),Ko(Da,"height",t.height),Ko(Da,"opacity","0.8"),Ko(Da,"position",Za?"absolute":"fixed"),Ko(Da,"zIndex","100000"),Ko(Da,"pointerEvents","none"),sl.ghost=Da,e.appendChild(Da),Ko(Da,"transform-origin",La/parseInt(Da.style.width)*100+"% "+Pa/parseInt(Da.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;va("dragStart",this,{evt:e}),sl.eventCanceled?this._onDrop():(va("setupClone",this),sl.eventCanceled||((Ca=ca(ya)).draggable=!1,Ca.style["will-change"]="",this._hideClone(),qo(Ca,this.options.chosenClass,!1),sl.clone=Ca),n.cloneId=hl(function(){va("clone",n),!sl.eventCanceled&&(n.options.removeCloneOnHide||Aa.insertBefore(Ca,ya),n._hideClone(),_a({sortable:n,name:"clone"}))}),!t&&qo(ya,r.dragClass,!0),t?(Ga=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Uo(document,"mouseup",n._onDrop),Uo(document,"touchend",n._onDrop),Uo(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,ya)),Ho(document,"drop",n),Ko(ya,"transform","translateZ(0)")),Wa=!0,n._dragStartId=hl(n._dragStarted.bind(n,t,e)),Ho(document,"selectstart",n),ja=!0,Po&&Ko(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,r,o=this.el,a=e.target,l=this.options,u=l.group,s=sl.active,c=Ta===u,d=l.sort,f=Oa||s,p=this,h=!1;if(!Ka){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=$o(a,l.draggable,o,!0),S("dragOver"),sl.eventCanceled)return h;if(ya.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return T(!1);if(Ga=!1,s&&!l.disabled&&(c?d||(i=ba!==Aa):Oa===this||(this.lastPutMode=Ta.checkPull(this,s,ya,e))&&u.checkPut(this,s,ya,e))){if(r="vertical"===this._getDirection(e,a),t=ea(ya),S("dragOverValid"),sl.eventCanceled)return h;if(i)return ba=Aa,B(),this._hideClone(),S("revert"),sl.eventCanceled||(xa?Aa.insertBefore(ya,xa):Aa.appendChild(ya)),T(!0);var m=ia(o,l.draggable);if(!m||function(e,t,n){var i=ea(ia(n.el,n.options.draggable)),r=10;return t?e.clientX>i.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}(e,r,this)&&!m.animated){if(m===ya)return T(!1);if(m&&o===e.target&&(a=m),a&&(n=ea(a)),!1!==cl(Aa,o,ya,t,a,n,e,!!a))return B(),o.appendChild(ya),ba=o,O(),T(!0)}else if(m&&function(e,t,n){var i=ea(na(n.el,0,n.options,!0)),r=10;return t?e.clientX<i.left-r||e.clientY<i.top&&e.clientX<i.right:e.clientY<i.top-r||e.clientY<i.bottom&&e.clientX<i.left}(e,r,this)){var g=na(o,0,l,!0);if(g===ya)return T(!1);if(n=ea(a=g),!1!==cl(Aa,o,ya,t,a,n,e,!1))return B(),o.insertBefore(ya,g),ba=o,O(),T(!0)}else if(a.parentNode===o){n=ea(a);var v,_,y,b=ya.parentNode!==o,D=!function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,u=n?t.width:t.height;return i===a||r===l||i+o/2===a+u/2}(ya.animated&&ya.toRect||t,a.animated&&a.toRect||n,r),A=r?"top":"left",x=ta(a,"top","top")||ta(ya,"top","top"),w=x?x.scrollTop:void 0;if(Va!==a&&(_=n[A],Qa=!1,Ya=!D&&l.invertSwap||b),v=function(e,t,n,i,r,o,a,l){var u=i?e.clientY:e.clientX,s=i?n.height:n.width,c=i?n.top:n.left,d=i?n.bottom:n.right,f=!1;if(!a)if(l&&Ha<s*r){if(!Qa&&(1===za?u>c+s*o/2:u<d-s*o/2)&&(Qa=!0),Qa)f=!0;else if(1===za?u<c+Ha:u>d-Ha)return-za}else if(u>c+s*(1-r)/2&&u<d-s*(1-r)/2)return function(e){return ra(ya)<ra(e)?1:-1}(t);return f=f||a,f&&(u<c+s*o/2||u>d-s*o/2)?u>c+s/2?1:-1:0}(e,a,n,r,D?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ya,Va===a),0!==v){var C=ra(ya);do{C-=v,y=ba.children[C]}while(y&&("none"===Ko(y,"display")||y===Da))}if(0===v||y===a)return T(!1);Va=a,za=v;var E=a.nextElementSibling,k=!1,F=cl(Aa,o,ya,t,a,n,e,k=1===v);if(!1!==F)return(1===F||-1===F)&&(k=1===F),Ka=!0,setTimeout(fl,30),B(),k&&!E?o.appendChild(ya):a.parentNode.insertBefore(ya,k?E:a),x&&sa(x,0,w-x.scrollTop),ba=ya.parentNode,void 0!==_&&!Ya&&(Ha=Math.abs(_-ea(a)[A])),O(),T(!0)}if(o.contains(ya))return T(!1)}return!1}function S(l,u){va(l,p,So({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:T,onMove:function(n,i){return cl(Aa,o,ya,t,n,ea(n),e,i)},changed:O},u))}function B(){S("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function T(t){return S("dragOverCompleted",{insertion:t}),t&&(c?s._hideClone():s._showClone(p),p!==f&&(qo(ya,Oa?Oa.options.ghostClass:s.options.ghostClass,!1),qo(ya,l.ghostClass,!0)),Oa!==p&&p!==sl.active?Oa=p:p===sl.active&&Oa&&(Oa=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){S("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===ya&&!ya.animated||a===o&&!a.animated)&&(Va=null),!l.dragoverBubble&&!e.rootEl&&a!==document&&(ya.parentNode[da]._isOutsideThisEl(e.target),!t&&ll(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function O(){Fa=ra(ya),Ba=ra(ya,l.draggable),_a({sortable:p,name:"change",toEl:o,newIndex:Fa,newDraggableIndex:Ba,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Uo(document,"mousemove",this._onTouchMove),Uo(document,"touchmove",this._onTouchMove),Uo(document,"pointermove",this._onTouchMove),Uo(document,"dragover",ll),Uo(document,"mousemove",ll),Uo(document,"touchmove",ll)},_offUpEvents:function(){var e=this.el.ownerDocument;Uo(e,"mouseup",this._onDrop),Uo(e,"touchend",this._onDrop),Uo(e,"pointerup",this._onDrop),Uo(e,"touchcancel",this._onDrop),Uo(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Fa=ra(ya),Ba=ra(ya,n.draggable),va("drop",this,{evt:e}),ba=ya&&ya.parentNode,Fa=ra(ya),Ba=ra(ya,n.draggable),sl.eventCanceled||(Wa=!1,Ya=!1,Qa=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ml(this.cloneId),ml(this._dragStartId),this.nativeDraggable&&(Uo(document,"drop",this),Uo(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Po&&Ko(document.body,"user-select",""),Ko(ya,"transform",""),e&&(ja&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Da&&Da.parentNode&&Da.parentNode.removeChild(Da),(Aa===ba||Oa&&"clone"!==Oa.lastPutMode)&&Ca&&Ca.parentNode&&Ca.parentNode.removeChild(Ca),ya&&(this.nativeDraggable&&Uo(ya,"dragend",this),dl(ya),ya.style["will-change"]="",ja&&!Wa&&qo(ya,Oa?Oa.options.ghostClass:this.options.ghostClass,!1),qo(ya,this.options.chosenClass,!1),_a({sortable:this,name:"unchoose",toEl:ba,newIndex:null,newDraggableIndex:null,originalEvent:e}),Aa!==ba?(Fa>=0&&(_a({rootEl:ba,name:"add",toEl:ba,fromEl:Aa,originalEvent:e}),_a({sortable:this,name:"remove",toEl:ba,originalEvent:e}),_a({rootEl:ba,name:"sort",toEl:ba,fromEl:Aa,originalEvent:e}),_a({sortable:this,name:"sort",toEl:ba,originalEvent:e})),Oa&&Oa.save()):Fa!==ka&&Fa>=0&&(_a({sortable:this,name:"update",toEl:ba,originalEvent:e}),_a({sortable:this,name:"sort",toEl:ba,originalEvent:e})),sl.active&&((null==Fa||-1===Fa)&&(Fa=ka,Ba=Sa),_a({sortable:this,name:"end",toEl:ba,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){va("nulling",this),Aa=ya=ba=Da=xa=Ca=wa=Ea=Ra=Ma=ja=Fa=Ba=ka=Sa=Va=za=Oa=Ta=sl.dragged=sl.ghost=sl.clone=sl.active=null,Xa.forEach(function(e){e.checked=!0}),Xa.length=Na=Ia=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ya&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)$o(e=n[i],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||pl(e));return t},sort:function(e,t){var n={},i=this.el;this.toArray().forEach(function(e,t){var r=i.children[t];$o(r,this.options.draggable,i,!1)&&(n[e]=r)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(i.removeChild(n[e]),i.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return $o(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=ma.modifyOption(this,e,t);y(i)<"u"?n[e]=i:n[e]=t,"group"===e&&rl(n)},destroy:function(){va("destroy",this);var e=this.el;e[da]=null,Uo(e,"mousedown",this._onTapStart),Uo(e,"touchstart",this._onTapStart),Uo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Uo(e,"dragover",this),Uo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),$a.splice($a.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ea){if(va("hideClone",this),sl.eventCanceled)return;Ko(Ca,"display","none"),this.options.removeCloneOnHide&&Ca.parentNode&&Ca.parentNode.removeChild(Ca),Ea=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Ea){if(va("showClone",this),sl.eventCanceled)return;ya.parentNode!=Aa||this.options.group.revertClone?xa?Aa.insertBefore(Ca,xa):Aa.appendChild(Ca):Aa.insertBefore(Ca,ya),this.options.group.revertClone&&this.animate(ya,Ca),Ko(Ca,"display",""),Ea=!1}}else this._hideClone()}},Ja&&Ho(document,"touchmove",function(e){(sl.active||Wa)&&e.cancelable&&e.preventDefault()}),sl.utils={on:Ho,off:Uo,css:Ko,find:Jo,is:function(e,t){return!!$o(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:ua,closest:$o,toggleClass:qo,clone:ca,index:ra,nextTick:hl,cancelNextTick:ml,detectDirection:il,getChild:na},sl.get=function(e){return e[da]},sl.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(sl.utils=So(So({},sl.utils),e.utils)),ma.mount(e)})},sl.create=function(e,t){return new sl(e,t)},sl.version="1.14.0";var gl,vl,_l,yl,bl,Dl,Al=[],xl=!1;function wl(){Al.forEach(function(e){clearInterval(e.pid)}),Al=[]}function Cl(){clearInterval(Dl)}var El=ua(function(e,t,n,i){if(t.scroll){var r,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,u=t.scrollSpeed,s=Zo(),c=!1;vl!==n&&(vl=n,wl(),gl=t.scroll,r=t.scrollFn,!0===gl&&(gl=aa(n,!0)));var d=0,f=gl;do{var p=f,h=ea(p),m=h.top,g=h.bottom,v=h.left,_=h.right,y=h.width,b=h.height,D=void 0,A=void 0,x=p.scrollWidth,w=p.scrollHeight,C=Ko(p),E=p.scrollLeft,k=p.scrollTop;p===s?(D=y<x&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),A=b<w&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(D=y<x&&("auto"===C.overflowX||"scroll"===C.overflowX),A=b<w&&("auto"===C.overflowY||"scroll"===C.overflowY));var F=D&&(Math.abs(_-o)<=l&&E+y<x)-(Math.abs(v-o)<=l&&!!E),S=A&&(Math.abs(g-a)<=l&&k+b<w)-(Math.abs(m-a)<=l&&!!k);if(!Al[d])for(var B=0;B<=d;B++)Al[B]||(Al[B]={});(Al[d].vx!=F||Al[d].vy!=S||Al[d].el!==p)&&(Al[d].el=p,Al[d].vx=F,Al[d].vy=S,clearInterval(Al[d].pid),(0!=F||0!=S)&&(c=!0,Al[d].pid=setInterval(function(){i&&0===this.layer&&sl.active._onTouchMove(bl);var t=Al[this.layer].vy?Al[this.layer].vy*u:0,n=Al[this.layer].vx?Al[this.layer].vx*u:0;"function"==typeof r&&"continue"!==r.call(sl.dragged.parentNode[da],n,t,e,bl,Al[this.layer].el)||sa(Al[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==s&&(f=aa(f,!1)));xl=c}},30),kl=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var u=n||r;a();var s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(s.clientX,s.clientY);l(),u&&!u.el.contains(c)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function Fl(){}function Sl(){}function Bl(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function Tl(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}Fl.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=na(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:kl},Oo(Fl,{pluginName:"revertOnSpill"}),Sl.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:kl},Oo(Sl,{pluginName:"removeOnSpill"}),sl.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Ho(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ho(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Ho(document,"touchmove",this._handleFallbackAutoScroll):Ho(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Uo(document,"dragover",this._handleAutoScroll):(Uo(document,"pointermove",this._handleFallbackAutoScroll),Uo(document,"touchmove",this._handleFallbackAutoScroll),Uo(document,"mousemove",this._handleFallbackAutoScroll)),Cl(),wl(),clearTimeout(Qo),Qo=void 0},nulling:function(){bl=vl=gl=xl=Dl=_l=yl=null,Al.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(i,r);if(bl=e,t||this.options.forceAutoScrollFallback||Io||No||Po){El(e,this.options,o,t);var a=aa(o,!0);xl&&(!Dl||i!==_l||r!==yl)&&(Dl&&Cl(),Dl=setInterval(function(){var o=aa(document.elementFromPoint(i,r),!0);o!==a&&(a=o,wl()),El(e,n.options,o,t)},10),_l=i,yl=r)}else{if(!this.options.bubbleScroll||aa(o,!0)===Zo())return void wl();El(e,this.options,aa(o,!1),!1)}}},Oo(e,{pluginName:"scroll",initializeByDefault:!0})}),sl.mount(Sl,Fl);var Ol=("undefined"==typeof window?"undefined":y(window))<"u"?window.console:global.console;var Rl=/-(\w)/g,Ml=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}(function(e){return e.replace(Rl,function(e,t){return t.toUpperCase()})}),Nl=["Start","Add","Remove","Update","End"],Il=["Choose","Unchoose","Sort","Filter","Clone"],Ll=["Move"],Pl=[Ll,Nl,Il].flatMap(function(e){return e}).map(function(e){return"on".concat(e)}),jl={manage:Ll,manageAndEmit:Nl,emit:Il};var Vl=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function zl(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function Hl(e){return e.reduce(function(e,t){var n=d(t,2),i=n[0],r=n[1];return e[i]=r,e},{})}function Ul(e){return Object.entries(e).filter(function(e){var t=d(e,2),n=t[0];t[1];return!zl(n)}).map(function(e){var t=d(e,2),n=t[0],i=t[1];return[Ml(n),i]}).filter(function(e){var t=d(e,2),n=t[0];t[1];return!function(e){return-1!==Pl.indexOf(e)}(n)})}var Wl=function(e){return e.el},Gl=function(e){return e.__draggable_context},$l=function(){return c(function e(t){var n=t.nodes,i=n.header,r=n.default,o=n.footer,a=t.root,l=t.realList;u(this,e),this.defaultNodes=r,this.children=[].concat(g(i),g(r),g(o)),this.externalComponent=a.externalComponent,this.rootTransition=a.transition,this.tag=a.tag,this.realList=l},[{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}},{key:"render",value:function(e,t){var n=this.tag,i=this.children;return e(n,t,this._isRootComponent?{default:function(){return i}}:i)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,n){!function(e,t){e.__draggable_context=t}(Wl(e),{element:t[n],index:n})})}},{key:"getUnderlyingVm",value:function(e){return Gl(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var n=this.defaultNodes,i=n.length,r=t.children,o=r.item(e);if(null===o)return i;var a=Gl(o);if(a)return a.index;if(0===i)return 0;var l=Wl(n[0]);return e<g(r).findIndex(function(e){return e===l})?0:i}}])}();function Ql(e){var t=function(e){return["transition-group","TransitionGroup"].includes(e)}(e),n=!function(e){return Vl.includes(e)}(e)&&!t;return{transition:t,externalComponent:n,tag:n?w(e):t?le:e}}function Yl(e){var t=e.$slots,n=e.tag,i=e.realList,r=function(e){var t=e.$slots,n=e.realList,i=e.getKey,r=n||[],o=["header","footer"].map(function(e){return function(e,t){var n=e[t];return n?n():[]}(t,e)}),a=d(o,2),l=a[0],u=a[1],s=t.item;if(!s)throw new Error("draggable element must have an item slot");var c=r.flatMap(function(e,t){return s({element:e,index:t}).map(function(t){return t.key=i(e),t.props=p(p({},t.props||{}),{},{"data-draggable":!0}),t})});if(c.length!==r.length)throw new Error("Item slot must have only one child");return{header:l,footer:u,default:c}}({$slots:t,realList:i,getKey:e.getKey}),o=Ql(n);return new $l({nodes:r,root:o,realList:i})}function ql(e,t){var n=this;a(function(){return n.$emit(e.toLowerCase(),t)})}function Kl(e){var t=this;return function(n,i){if(null!==t.realList)return t["onDrag".concat(e)](n,i)}}function Xl(e){var t=this,n=Kl.call(this,e);return function(i,r){n.call(t,i,r),ql.call(t,e,i)}}var Jl=null,Zl={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},eu=["update:modelValue","change"].concat(g([].concat(g(jl.manageAndEmit),g(jl.emit)).map(function(e){return e.toLowerCase()}))),tu=b({name:"draggable",inheritAttrs:!1,props:Zl,emits:eu,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,i=this.componentData,r=Yl({$slots:e,tag:n,realList:this.realList,getKey:this.getKey});this.componentStructure=r;var o=function(e){var t=e.$attrs,n=e.componentData,i=void 0===n?{}:n;return p(p({},Hl(Object.entries(t).filter(function(e){var t=d(e,2),n=t[0];return t[1],zl(n)}))),i)}({$attrs:t,componentData:i});return r.render(F,o)}catch(a){return this.error=!0,F("pre",{style:{color:"red"}},a.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&Ol.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var i=function(e){var t=e.$attrs,n=e.callBackBuilder,i=Hl(Ul(t));Object.entries(n).forEach(function(e){var t=d(e,2),n=t[0],r=t[1];jl[n].forEach(function(e){i["on".concat(e)]=r(e)})});var r="[data-draggable]".concat(i.draggable||"");return p(p({},i),{},{draggable:r})}({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return Xl.call(e,t)},emit:function(t){return ql.bind(e,t)},manage:function(t){return Kl.call(e,t)}}}),r=1===n.nodeType?n:n.parentElement;this._sortable=new sl(r,i),this.targetDomElement=r,r.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){return this.list||this.modelValue},getKey:function(){var e=this.itemKey;return"function"==typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;!t||Ul(e).forEach(function(e){var n=d(e,2),i=n[0],r=n[1];t.option(i,r)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;a(function(){return t.$emit("change",e)})},alterList:function(e){if(this.list)e(this.list);else{var t=g(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,g(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var r=i.realList,o={list:r,component:i};return t!==n&&r?p(p({},i.getUnderlyingVm(n)||{}),o):o},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),Jl=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Bl(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Tl(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,n=t.index,i=t.element;this.spliceList(n,1);var r={element:i,oldIndex:n};this.emitChanges({removed:r})}else Bl(e.clone)},onDragUpdate:function(e){Bl(e.item),Tl(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=g(t.to.children).filter(function(e){return"none"!==e.style.display}),i=n.indexOf(t.related),r=e.component.getVmIndexFromDomIndex(i);return-1===n.indexOf(Jl)&&t.willInsertAfter?r+1:r},onDragMove:function(e,t){var n=this.move,i=this.realList;if(!n||!i)return!0;var r=this.getRelatedContextFromMoveEvent(e),o=this.computeFutureIndex(r,e),a=p(p({},this.context),{},{futureIndex:o});return n(p(p({},e),{},{relatedContext:r,draggedContext:a}),t)},onDragEnd:function(){Jl=null}}}),nu=[{name:"main",title:"基础组件",list:[]},{name:"subform",title:"子表单组件",list:[]},{name:"aide",title:"辅助组件",list:[]},{name:"layout",title:"布局组件",list:[]}],iu=si,ru=si.factory(),ou=null,au=C(null);function lu(){return ou.apply(void 0,arguments)}var uu=function(e){au.value=e||Di;var t=Li(au);return ou=t.t,t};uu();("undefined"==typeof globalThis?"undefined":y(globalThis))<"u"?globalThis:("undefined"==typeof window?"undefined":y(window))<"u"?window:("undefined"==typeof global?"undefined":y(global))<"u"?global:("undefined"==typeof self?"undefined":y(self))<"u"&&self;var su,cu={exports:{}};function du(){return su||(su=1,function(e){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=i||r||o,l=a&&(i?document.documentMode||6:+(o||r)[1]),u=!o&&/WebKit\//.test(e),s=u&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),_=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),D=/\bCrOS\b/.test(e),A=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,u=!0);var w=b&&(s||f&&(null==x||x<12.11)),C=n||a&&l>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,F=function(e,t){var n=e.className,i=E(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function S(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function B(e,t){return S(e).appendChild(t)}function T(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)r.appendChild(t[o]);return r}function O(e,t,n,i){var r=T(e,t,n,i);return r.setAttribute("role","presentation"),r}function R(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function M(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function N(e,t){var n=e.className;E(t).test(n)||(e.className+=(n?" ":"")+t)}function I(e,t){for(var n=e.split(" "),i=0;i<n.length;i++)n[i]&&!E(n[i]).test(t)&&(t+=" "+n[i]);return t}k=document.createRange?function(e,t,n,i){var r=document.createRange();return r.setEnd(i||e,n),r.setStart(e,t),r}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(r){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var L=function(e){e.select()};function P(e){return e.display.wrapper.ownerDocument}function j(e){return P(e).defaultView}function V(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function z(e,t,n){for(var i in t||(t={}),e)e.hasOwnProperty(i)&&(!1!==n||!t.hasOwnProperty(i))&&(t[i]=e[i]);return t}function H(e,t,n,i,r){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=i||0,a=r||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}g?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(t){}});var U=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};function W(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}U.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},U.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var G=50,$={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},Y={origin:"*mouse"},q={origin:"+move"};function K(e,t,n){for(var i=0,r=0;;){var o=e.indexOf("\t",i);-1==o&&(o=e.length);var a=o-i;if(o==e.length||r+a>=t)return i+Math.min(a,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var X=[""];function J(e){for(;X.length<=e;)X.push(Z(X)+" ");return X[e]}function Z(e){return e[e.length-1]}function ee(e,t){for(var n=[],i=0;i<e.length;i++)n[i]=t(e[i],i);return n}function te(e,t,n){for(var i=0,r=n(t);i<e.length&&n(e[i])<=r;)i++;e.splice(i,0,t)}function ne(){}function ie(e,t){var n;return Object.create?n=Object.create(e):(ne.prototype=e,n=new ne),t&&z(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&oe(e))||t.test(e):oe(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ue=/[\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 se(e){return e.charCodeAt(0)>=768&&ue.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&se(e.charAt(t));)t+=n;return t}function de(e,t,n){for(var i=t>n?-1:1;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+i}}function fe(e,t,n,i){if(!e)return i(t,n,"ltr",0);for(var r=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}var pe=null;function he(e,t,n){var i;pe=null;for(var r=0;r<e.length;++r){var o=e[r];if(o.from<t&&o.to>t)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:pe=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:pe=r)}return null!=i?i:pe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function u(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var s="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var c=e.length,d=[],f=0;f<c;++f)d.push(n(e.charCodeAt(f)));for(var p=0,h=s;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=s;g<c;++g){var _=d[g];"1"==_&&"r"==v?d[g]="n":o.test(_)&&(v=_,"r"==_&&(d[g]="R"))}for(var y=1,b=d[0];y<c-1;++y){var D=d[y];"+"==D&&"1"==b&&"1"==d[y+1]?d[y]="1":","==D&&b==d[y+1]&&("1"==b||"n"==b)&&(d[y]=b),b=D}for(var A=0;A<c;++A){var x=d[A];if(","==x)d[A]="N";else if("%"==x){var w=void 0;for(w=A+1;w<c&&"%"==d[w];++w);for(var C=A&&"!"==d[A-1]||w<c&&"1"==d[w]?"1":"N",E=A;E<w;++E)d[E]=C;A=w-1}}for(var k=0,F=s;k<c;++k){var S=d[k];"L"==F&&"1"==S?d[k]="L":o.test(S)&&(F=S)}for(var B=0;B<c;++B)if(r.test(d[B])){var T=void 0;for(T=B+1;T<c&&r.test(d[T]);++T);for(var O="L"==(B?d[B-1]:s),R=O==("L"==(T<c?d[T]:s))?O?"L":"R":s,M=B;M<T;++M)d[M]=R;B=T-1}for(var N,I=[],L=0;L<c;)if(a.test(d[L])){var P=L;for(++L;L<c&&a.test(d[L]);++L);I.push(new u(0,P,L))}else{var j=L,V=I.length,z="rtl"==t?1:0;for(++L;L<c&&"L"!=d[L];++L);for(var H=j;H<L;)if(l.test(d[H])){j<H&&(I.splice(V,0,new u(1,j,H)),V+=z);var U=H;for(++H;H<L&&l.test(d[H]);++H);I.splice(V,0,new u(2,U,H)),V+=z,j=H}else++H;j<L&&I.splice(V,0,new u(1,j,L))}return"ltr"==t&&(1==I[0].level&&(N=e.match(/^\s+/))&&(I[0].from=N[0].length,I.unshift(new u(0,0,N[0].length))),1==Z(I).level&&(N=e.match(/\s+$/))&&(Z(I).to-=N[0].length,I.push(new u(0,c-N[0].length,c)))),"rtl"==t?I.reverse():I}}();function ge(e,t){var n=e.order;return null==n&&(n=e.order=me(e.text,t)),n}var ve=[],_e=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||ve).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||ve}function be(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var i=e._handlers,r=i&&i[t];if(r){var o=W(r,n);o>-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function De(e,t){var n=ye(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)}function Ae(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),De(e,n||t.type,e,t),Fe(t)||t.codemirrorIgnore}function xe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)-1==W(n,t[i])&&n.push(t[i])}function we(e,t){return ye(e,t).length>0}function Ce(e){e.prototype.on=function(e,t){_e(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Fe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){Ee(e),ke(e)}function Be(e){return e.target||e.srcElement}function Te(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Oe,Re,Me=function(){if(a&&l<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}();function Ne(e){if(null==Oe){var t=T("span","​");B(e,T("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Oe?T("span","​"):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Re)return Re;var t=B(e,document.createTextNode("AخA")),n=k(t,0,1).getBoundingClientRect(),i=k(t,1,2).getBoundingClientRect();return S(e),!(!n||n.left==n.right)&&(Re=i.right-n.right<3)}var Le,Pe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ve="oncopy"in(Le=T("div"))||(Le.setAttribute("oncopy","return;"),"function"==typeof Le.oncopy),ze=null;function He(e){if(null!=ze)return ze;var t=B(e,T("span","x")),n=t.getBoundingClientRect(),i=k(t,0,1).getBoundingClientRect();return ze=Math.abs(n.left-i.left)>1}var Ue={},We={};function Ge(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ue[e]=t}function $e(e,t){We[e]=t}function Qe(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),(e=ie(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ye(e,t){t=Qe(t);var n=Ue[t.name];if(!n)return Ye(e,"text/plain");var i=n(e,t);if(qe.hasOwnProperty(t.name)){var r=qe[t.name];for(var o in r)!r.hasOwnProperty(o)||(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}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 qe={};function Ke(e,t){z(t,qe.hasOwnProperty(e)?qe[e]:qe[e]={})}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Je(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 Ze(e,t,n){return!e.startState||e.startState(t,n)}var et=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 tt(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 r=n.children[i],o=r.chunkSize();if(t<o){n=r;break}t-=o}return n.lines[t]}function nt(e,t,n){var i=[],r=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;r==n.line&&(o=o.slice(0,n.ch)),r==t.line&&(o=o.slice(t.ch)),i.push(o),++r}),i}function it(e,t,n){var i=[];return e.iter(t,n,function(e){i.push(e.text)}),i}function rt(e,t){var n=t-e.height;if(n)for(var i=e;i;i=i.parent)i.height+=n}function ot(e){if(null==e.parent)return null;for(var t=e.parent,n=W(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var r=0;i.children[r]!=t;++r)n+=i.children[r].chunkSize();return n+t.first}function at(e,t){var n=e.first;e:do{for(var i=0;i<e.children.length;++i){var r=e.children[i],o=r.height;if(t<o){e=r;continue e}t-=o,n+=r.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a].height;if(t<l)break;t-=l}return n+a}function lt(e,t){return t>=e.first&&t<e.first+e.size}function ut(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function st(e,t,n){if(void 0===n&&(n=null),!(this instanceof st))return new st(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ct(e,t){return e.line-t.line||e.ch-t.ch}function dt(e,t){return e.sticky==t.sticky&&0==ct(e,t)}function ft(e){return st(e.line,e.ch)}function pt(e,t){return ct(e,t)<0?t:e}function ht(e,t){return ct(e,t)<0?e:t}function mt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function gt(e,t){if(t.line<e.first)return st(e.first,0);var n=e.first+e.size-1;return t.line>n?st(n,tt(e,n).text.length):vt(t,tt(e,t.line).text.length)}function vt(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function _t(e,t){for(var n=[],i=0;i<t.length;i++)n[i]=gt(e,t[i]);return n}et.prototype.eol=function(){return this.pos>=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},et.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},et.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},et.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=H(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},et.prototype.indentation=function(){return H(this.string,null,this.tabSize)-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},et.prototype.match=function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},bt=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 r=[e.state.modeGen],o={};Bt(e,t.text,e.doc.mode,n,function(e,t){return r.push(e,t)},o,i);for(var a=n.state,l=function(i){n.baseTokens=r;var l=e.state.overlays[i],u=1,s=0;n.state=!0,Bt(e,t.text,l.mode,n,function(e,t){for(var n=u;s<e;){var i=r[u];i>e&&r.splice(u,1,e,r[u+1],i),u+=2,s=Math.min(e,i)}if(t)if(l.opaque)r.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;n<u;n+=2){var o=r[n+1];r[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},u=0;u<e.state.overlays.length;++u)l(u);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function At(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=xt(e,ot(t)),r=t.text.length>e.options.maxHighlightLength&&Xe(e.doc.mode,i.state),o=Dt(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.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 xt(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new bt(i,!0,t);var o=Tt(e,t,n),a=o>i.first&&tt(i,o-1).stateAfter,l=a?bt.fromSaved(i,a,o):new bt(i,Ze(i.mode),o);return i.iter(o,t,function(n){wt(e,n.text,l);var i=l.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&i<r.viewTo?l.save():null,l.nextLine()}),n&&(i.modeFrontier=l.line),l}function wt(e,t,n,i){var r=e.doc.mode,o=new et(t,e.options.tabSize,n);for(o.start=o.pos=i||0,""==t&&Ct(r,n.state);!o.eol();)Et(r,o,n.state),o.start=o.pos}function Ct(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Je(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Et(e,t,n,i){for(var r=0;r<10;r++){i&&(i[0]=Je(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.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}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,Xe(e.mode,t.state),n,t.lookAhead):new bt(e,Xe(e.mode,t),n)},bt.prototype.save=function(e){var t=!1!==e?Xe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ft(e,t,n,i){var r,o,a=e.doc,l=a.mode,u=tt(a,(t=gt(a,t)).line),s=xt(e,t.line,n),c=new et(u.text,e.options.tabSize,s);for(i&&(o=[]);(i||c.pos<t.ch)&&!c.eol();)c.start=c.pos,r=Et(l,c,s.state),i&&o.push(new kt(c,r,Xe(a.mode,s.state)));return i?o:new kt(c,r,s.state)}function St(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==t[i]?t[i]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+n[2])}return e}function Bt(e,t,n,i,r,o,a){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var u,s=0,c=null,d=new et(t,e.options.tabSize,i),f=e.options.addModeClass&&[null];for(""==t&&St(Ct(n,i.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(l=!1,a&&wt(e,t,i,d.pos),d.pos=t.length,u=null):u=St(Et(n,d,i.state,f),o),f){var p=f[0].name;p&&(u="m-"+(u?p+" "+u:p))}if(!l||c!=u){for(;s<d.start;)r(s=Math.min(d.start,s+5e3),c);c=u}d.start=d.pos}for(;s<d.pos;){var h=Math.min(d.pos,s+5e3);r(h,c),s=h}}function Tt(e,t,n){for(var i,r,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var u=tt(o,l-1),s=u.stateAfter;if(s&&(!n||l+(s instanceof yt?s.lookAhead:0)<=o.modeFrontier))return l;var c=H(u.text,null,e.options.tabSize);(null==r||i>c)&&(r=l-1,i=c)}return r}function Ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,i=t-1;i>n;i--){var r=tt(e,i).stateAfter;if(r&&(!(r instanceof yt)||i+r.lookAhead<t)){n=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Rt=!1,Mt=!1;function Nt(){Rt=!0}function It(){Mt=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Pt(e,t){if(e)for(var n=0;n<e.length;++n){var i=e[n];if(i.marker==t)return i}}function jt(e,t){for(var n,i=0;i<e.length;++i)e[i]!=t&&(n||(n=[])).push(e[i]);return n}function Vt(e,t,n){var i=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));i&&e.markedSpans&&i.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],i&&i.add(e.markedSpans)),t.marker.attachLine(e)}function zt(e,t,n){var i;if(e)for(var r=0;r<e.length;++r){var o=e[r],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(i||(i=[])).push(new Lt(a,o.from,l?null:o.to))}}return i}function Ht(e,t,n){var i;if(e)for(var r=0;r<e.length;++r){var o=e[r],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(i||(i=[])).push(new Lt(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return i}function Ut(e,t){if(t.full)return null;var n=lt(e,t.from.line)&&tt(e,t.from.line).markedSpans,i=lt(e,t.to.line)&&tt(e,t.to.line).markedSpans;if(!n&&!i)return null;var r=t.from.ch,o=t.to.ch,a=0==ct(t.from,t.to),l=zt(n,r,a),u=Ht(i,o,a),s=1==t.text.length,c=Z(t.text).length+(s?r:0);if(l)for(var d=0;d<l.length;++d){var f=l[d];if(null==f.to){var p=Pt(u,f.marker);p?s&&(f.to=null==p.to?null:p.to+c):f.to=r}}if(u)for(var h=0;h<u.length;++h){var m=u[h];null!=m.to&&(m.to+=c),null==m.from?Pt(l,m.marker)||(m.from=c,s&&(l||(l=[])).push(m)):(m.from+=c,s&&(l||(l=[])).push(m))}l&&(l=Wt(l)),u&&u!=l&&(u=Wt(u));var g=[l];if(!s){var v,_=t.text.length-2;if(_>0&&l)for(var y=0;y<l.length;++y)null==l[y].to&&(v||(v=[])).push(new Lt(l[y].marker,null,null));for(var b=0;b<_;++b)g.push(v);g.push(u)}return g}function Wt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Gt(e,t,n){var i=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;n.readOnly&&(!i||-1==W(i,n))&&(i||(i=[])).push(n)}}),!i)return null;for(var r=[{from:t,to:n}],o=0;o<i.length;++o)for(var a=i[o],l=a.find(0),u=0;u<r.length;++u){var s=r[u];if(!(ct(s.to,l.from)<0||ct(s.from,l.to)>0)){var c=[u,1],d=ct(s.from,l.from),f=ct(s.to,l.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:s.from,to:l.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:l.to,to:s.to}),r.splice.apply(r,c),u+=c.length-3}}return r}function $t(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Yt(e){return e.inclusiveLeft?-1:0}function qt(e){return e.inclusiveRight?1:0}function Kt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var i=e.find(),r=t.find(),o=ct(i.from,r.from)||Yt(e)-Yt(t);return o?-o:ct(i.to,r.to)||qt(e)-qt(t)||t.id-e.id}function Xt(e,t){var n,i=Mt&&e.markedSpans;if(i)for(var r=void 0,o=0;o<i.length;++o)(r=i[o]).marker.collapsed&&null==(t?r.from:r.to)&&(!n||Kt(n,r.marker)<0)&&(n=r.marker);return n}function Jt(e){return Xt(e,!0)}function Zt(e){return Xt(e,!1)}function en(e,t){var n,i=Mt&&e.markedSpans;if(i)for(var r=0;r<i.length;++r){var o=i[r];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Kt(n,o.marker)<0)&&(n=o.marker)}return n}function tn(e,t,n,i,r){var o=tt(e,t),a=Mt&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];if(u.marker.collapsed){var s=u.marker.find(0),c=ct(s.from,n)||Yt(u.marker)-Yt(r),d=ct(s.to,i)||qt(u.marker)-qt(r);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(u.marker.inclusiveRight&&r.inclusiveLeft?ct(s.to,n)>=0:ct(s.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&r.inclusiveLeft?ct(s.from,i)<=0:ct(s.from,i)<0)))return!0}}}function nn(e){for(var t;t=Jt(e);)e=t.find(-1,!0).line;return e}function rn(e){for(var t;t=Zt(e);)e=t.find(1,!0).line;return e}function on(e){for(var t,n;t=Zt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function an(e,t){var n=tt(e,t),i=nn(n);return n==i?t:ot(i)}function ln(e,t){if(t>e.lastLine())return t;var n,i=tt(e,t);if(!un(e,i))return t;for(;n=Zt(i);)i=n.find(1,!0).line;return ot(i)+1}function un(e,t){var n=Mt&&t.markedSpans;if(n)for(var i=void 0,r=0;r<n.length;++r)if((i=n[r]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&sn(e,t,i))return!0}}function sn(e,t,n){if(null==n.to){var i=n.marker.find(1,!0);return sn(e,i.line,Pt(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var r=void 0,o=0;o<t.markedSpans.length;++o)if((r=t.markedSpans[o]).marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&sn(e,t,r))return!0}function cn(e){for(var t=0,n=(e=nn(e)).parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==e)break;t+=r.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function dn(e){if(0==e.height)return 0;for(var t,n=e.text.length,i=e;t=Jt(i);){var r=t.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=e;t=Zt(i);){var o=t.find(0,!0);n-=i.text.length-o.from.ch,n+=(i=o.to.line).text.length-o.to.ch}return n}function fn(e){var t=e.display,n=e.doc;t.maxLine=tt(n,n.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=dn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var pn=function(e,t,n){this.text=e,Qt(this,t),this.height=n?n(this):1};function hn(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),$t(e),Qt(e,n);var r=i?i(e):1;r!=e.height&&rt(e,r)}function mn(e){e.parent=null,$t(e)}pn.prototype.lineNo=function(){return ot(this)},Ce(pn);var gn={},vn={};function _n(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?vn:gn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function yn(e,t){var n=O("span",null,null,u?"padding-right: .1px":null),i={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,a=void 0;i.pos=0,i.addToken=Dn,Ie(e.display.measure)&&(a=ge(o,e.doc.direction))&&(i.addToken=xn(i.addToken,a)),i.map=[],Cn(o,i,At(e,o,t!=e.display.externalMeasured&&ot(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=I(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=I(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ne(e.display.measure))),0==r?(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(u){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 De(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=I(i.pre.className,i.textClass||"")),i}function bn(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Dn(e,t,n,i,r,o,u){if(t){var s,c=e.splitSpaces?An(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){s=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&l<9?s.appendChild(T("span",[g])):s.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var _=e.cm.options.tabSize,y=_-e.col%_;(v=s.appendChild(T("span",J(y),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=y}else"\r"==h[0]||"\n"==h[0]?((v=s.appendChild(T("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&l<9?s.appendChild(T("span",[v])):s.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,s=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,s),a&&l<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||i||r||f||o||u){var b=n||"";i&&(b+=i),r&&(b+=r);var D=T("span",[s],b,o);if(u)for(var A in u)u.hasOwnProperty(A)&&"style"!=A&&"class"!=A&&D.setAttribute(A,u[A]);return e.content.appendChild(D)}e.content.appendChild(s)}}function An(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;r<e.length;r++){var o=e.charAt(r);" "==o&&n&&(r==e.length-1||32==e.charCodeAt(r+1))&&(o=" "),i+=o,n=" "==o}return i}function xn(e,t){return function(n,i,r,o,a,l,u){r=r?r+" cm-force-border":"cm-force-border";for(var s=n.pos,c=s+i.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>s&&d.from<=s);f++);if(d.to>=c)return e(n,i,r,o,a,l,u);e(n,i.slice(0,d.to-s),r,o,null,l,u),o=null,i=i.slice(d.to-s),s=d.to}}}function wn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Cn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,l,u,s,c,d,f,p=r.length,h=0,m=1,g="",v=0;;){if(v==h){u=s=c=l="",f=null,d=null,v=1/0;for(var _=[],y=void 0,b=0;b<i.length;++b){var D=i[b],A=D.marker;if("bookmark"==A.type&&D.from==h&&A.widgetNode)_.push(A);else if(D.from<=h&&(null==D.to||D.to>h||A.collapsed&&D.to==h&&D.from==h)){if(null!=D.to&&D.to!=h&&v>D.to&&(v=D.to,s=""),A.className&&(u+=" "+A.className),A.css&&(l=(l?l+";":"")+A.css),A.startStyle&&D.from==h&&(c+=" "+A.startStyle),A.endStyle&&D.to==v&&(y||(y=[])).push(A.endStyle,D.to),A.title&&((f||(f={})).title=A.title),A.attributes)for(var x in A.attributes)(f||(f={}))[x]=A.attributes[x];A.collapsed&&(!d||Kt(d.marker,A)<0)&&(d=D)}else D.from>h&&v>D.from&&(v=D.from)}if(y)for(var w=0;w<y.length;w+=2)y[w+1]==v&&(s+=" "+y[w]);if(!d||d.from==h)for(var C=0;C<_.length;++C)wn(t,0,_[C]);if(d&&(d.from||0)==h){if(wn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var E=Math.min(p,v);;){if(g){var k=h+g.length;if(!d){var F=k>E?g.slice(0,E-h):g;t.addToken(t,F,a?a+u:u,c,h+F.length==v?s:"",l,f)}if(k>=E){g=g.slice(E-h),h=E;break}h=k,c=""}g=r.slice(o,o=n[m++]),a=_n(n[m++],t.cm.options)}}else for(var S=1;S<n.length;S+=2)t.addToken(t,r.slice(o,o=n[S]),_n(n[S+1],t.cm.options))}function En(e,t,n){this.line=t,this.rest=on(t),this.size=this.rest?ot(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=un(e,t)}function kn(e,t,n){for(var i,r=[],o=t;o<n;o=i){var a=new En(e.doc,tt(e.doc,o),o);i=o+a.size,r.push(a)}return r}var Fn=null;function Sn(e){Fn?Fn.ops.push(e):e.ownsGroup=Fn={ops:[e],delayedCallbacks:[]}}function Bn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var i=0;i<e.ops.length;i++){var r=e.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<t.length)}function Tn(e,t){var n=e.ownsGroup;if(n)try{Bn(n)}finally{Fn=null,t(n)}}var On=null;function Rn(e,t){var n=ye(e,t);if(n.length){var i,r=Array.prototype.slice.call(arguments,2);Fn?i=Fn.delayedCallbacks:On?i=On:(i=On=[],setTimeout(Mn,0));for(var o=function(e){i.push(function(){return n[e].apply(null,r)})},a=0;a<n.length;++a)o(a)}}function Mn(){var e=On;On=null;for(var t=0;t<e.length;++t)e[t]()}function Nn(e,t,n,i){for(var r=0;r<t.changes.length;r++){var o=t.changes[r];"text"==o?jn(e,t):"gutter"==o?zn(e,t,n,i):"class"==o?Vn(e,t):"widget"==o&&Hn(e,t,i)}t.changes=null}function In(e){return e.node==e.text&&(e.node=T("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&l<8&&(e.node.style.zIndex=2)),e.node}function Ln(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=In(t);t.background=i.insertBefore(T("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}}function Pn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):yn(e,t)}function jn(e,t){var n=t.text.className,i=Pn(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,Vn(e,t)):n&&(t.text.className=n)}function Vn(e,t){Ln(e,t),t.line.wrapClass?In(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function zn(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var r=In(t);t.gutterBackground=T("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),r.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=In(t),l=t.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(l.setAttribute("aria-hidden","true"),e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=l.appendChild(T("div",ut(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.display.gutterSpecs.length;++u){var s=e.display.gutterSpecs[u].className,c=o.hasOwnProperty(s)&&o[s];c&&l.appendChild(T("div",[c],"CodeMirror-gutter-elt","left: "+i.gutterLeft[s]+"px; width: "+i.gutterWidth[s]+"px"))}}}function Hn(e,t,n){t.alignable&&(t.alignable=null);for(var i=E("CodeMirror-linewidget"),r=t.node.firstChild,o=void 0;r;r=o)o=r.nextSibling,i.test(r.className)&&t.node.removeChild(r);Wn(e,t,n)}function Un(e,t,n,i){var r=Pn(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),Vn(e,t),zn(e,t,n,i),Wn(e,t,i),t.node}function Wn(e,t,n){if(Gn(e,t.line,t,n,!0),t.rest)for(var i=0;i<t.rest.length;i++)Gn(e,t.rest[i],t,n,!1)}function Gn(e,t,n,i,r){if(t.widgets)for(var o=In(n),a=0,l=t.widgets;a<l.length;++a){var u=l[a],s=T("div",[u.node],"CodeMirror-linewidget"+(u.className?" "+u.className:""));u.handleMouseEvents||s.setAttribute("cm-ignore-events","true"),$n(u,s,n,i),e.display.input.setUneditable(s),r&&u.above?o.insertBefore(s,n.gutter||n.text):o.appendChild(s),Rn(u,"redraw")}}function $n(e,t,n,i){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var r=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(r-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=r+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function Qn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!R(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),B(t.display.measure,T("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Yn(e,t){for(var n=Be(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function qn(e){return e.lineSpace.offsetTop}function Kn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Xn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=B(e.measure,T("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return!isNaN(i.left)&&!isNaN(i.right)&&(e.cachedPaddingH=i),i}function Jn(e){return G-e.display.nativeBarWidth}function Zn(e){return e.display.scroller.clientWidth-Jn(e)-e.display.barWidth}function ei(e){return e.display.scroller.clientHeight-Jn(e)-e.display.barHeight}function ti(e,t,n){var i=e.options.lineWrapping,r=i&&Zn(e);if(!t.measure.heights||i&&t.measure.width!=r){var o=t.measure.heights=[];if(i){t.measure.width=r;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var u=a[l],s=a[l+1];Math.abs(u.bottom-s.bottom)>2&&o.push((u.bottom+s.top)/2-n.top)}}o.push(n.bottom-n.top)}}function ni(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var r=0;r<e.rest.length;r++)if(ot(e.rest[r])>n)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}}function ii(e,t){var n=ot(t=nn(t)),i=e.display.externalMeasured=new En(e.doc,t,n);i.lineN=n;var r=i.built=yn(e,i);return i.text=r.pre,B(e.display.lineMeasure,r.pre),i}function ri(e,t,n,i){return li(e,ai(e,t),n,i)}function oi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Vi(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function ai(e,t){var n=ot(t),i=oi(e,n);i&&!i.text?i=null:i&&i.changes&&(Nn(e,i,n,Ni(e)),e.curOp.forceUpdate=!0),i||(i=ii(e,t));var r=ni(i,t,n);return{line:t,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function li(e,t,n,i,r){t.before&&(n=-1);var o,a=n+(i||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(ti(e,t.view,t.rect),t.hasHeights=!0),(o=fi(e,t,n,i)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}var ui,si={left:0,right:0,top:0,bottom:0};function ci(e,t,n){for(var i,r,o,a,l,u,s=0;s<e.length;s+=3)if(l=e[s],u=e[s+1],t<l?(r=0,o=1,a="left"):t<u?o=1+(r=t-l):(s==e.length-3||t==u&&e[s+3]>t)&&(r=(o=u-l)-1,t>=u&&(a="right")),null!=r){if(i=e[s+2],l==u&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)i=e[2+(s-=3)],a="left";if("right"==n&&r==u-l)for(;s<e.length-3&&e[s+3]==e[s+4]&&!e[s+5].insertLeft;)i=e[(s+=3)+2],a="right";break}return{node:i,start:r,end:o,collapse:a,coverStart:l,coverEnd:u}}function di(e,t){var n=si;if("left"==t)for(var i=0;i<e.length&&(n=e[i]).left==n.right;i++);else for(var r=e.length-1;r>=0&&(n=e[r]).left==n.right;r--);return n}function fi(e,t,n,i){var r,o=ci(t.map,n,i),u=o.node,s=o.start,c=o.end,d=o.collapse;if(3==u.nodeType){for(var f=0;f<4;f++){for(;s&&se(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+c<o.coverEnd&&se(t.line.text.charAt(o.coverStart+c));)++c;if((r=a&&l<9&&0==s&&c==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():di(k(u,s,c).getClientRects(),i)).left||r.right||0==s)break;c=s,s-=1,d="right"}a&&l<11&&(r=pi(e.display.measure,r))}else{var p;s>0&&(d=i="right"),r=e.options.lineWrapping&&(p=u.getClientRects()).length>1?p["right"==i?p.length-1:0]:u.getBoundingClientRect()}if(a&&l<9&&!s&&(!r||!r.left&&!r.right)){var h=u.parentNode.getClientRects()[0];r=h?{left:h.left,right:h.left+Mi(e.display),top:h.top,bottom:h.bottom}:si}for(var m=r.top-t.rect.top,g=r.bottom-t.rect.top,v=(m+g)/2,_=t.view.measure.heights,y=0;y<_.length-1&&!(v<_[y]);y++);var b=y?_[y-1]:0,D=_[y],A={left:("right"==d?r.right:r.left)-t.rect.left,right:("left"==d?r.left:r.right)-t.rect.left,top:b,bottom:D};return!r.left&&!r.right&&(A.bogus=!0),e.options.singleCursorHeightPerLine||(A.rtop=m,A.rbottom=g),A}function pi(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!He(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}}function hi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function mi(e){e.display.externalMeasure=null,S(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)hi(e.display.view[t])}function gi(e){mi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function vi(e){return c&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function _i(e){return c&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function yi(e){var t=nn(e).widgets,n=0;if(t)for(var i=0;i<t.length;++i)t[i].above&&(n+=Qn(t[i]));return n}function bi(e,t,n,i,r){if(!r){var o=yi(t);n.top+=o,n.bottom+=o}if("line"==i)return n;i||(i="local");var a=cn(t);if("local"==i?a+=qn(e.display):a-=e.display.viewOffset,"page"==i||"window"==i){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+("window"==i?0:_i(P(e)));var u=l.left+("window"==i?0:vi(P(e)));n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function Di(e,t,n){if("div"==n)return t;var i=t.left,r=t.top;if("page"==n)i-=vi(P(e)),r-=_i(P(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();i+=o.left,r+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:i-a.left,top:r-a.top}}function Ai(e,t,n,i,r){return i||(i=tt(e.doc,t.line)),bi(e,i,ri(e,i,t.ch,r),n)}function xi(e,t,n,i,r,o){function a(t,a){var l=li(e,r,t,a?"right":"left",o);return a?l.left=l.right:l.right=l.left,bi(e,i,l,n)}i=i||tt(e.doc,t.line),r||(r=ai(e,i));var l=ge(i,e.doc.direction),u=t.ch,s=t.sticky;if(u>=i.text.length?(u=i.text.length,s="before"):u<=0&&(u=0,s="after"),!l)return a("before"==s?u-1:u,"before"==s);function c(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var d=he(l,u,s),f=pe,p=c(u,d,"before"==s);return null!=f&&(p.other=c(u,f,"before"!=s)),p}function wi(e,t){var n=0;t=gt(e.doc,t),e.options.lineWrapping||(n=Mi(e.display)*t.ch);var i=tt(e.doc,t.line),r=cn(i)+qn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Ci(e,t,n,i,r){var o=st(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Ei(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return Ci(i.first,0,null,-1,-1);var r=at(i,n),o=i.first+i.size-1;if(r>o)return Ci(i.first+i.size-1,tt(i,o).text.length,null,1,1);t<0&&(t=0);for(var a=tt(i,r);;){var l=Bi(e,a,r,t,n),u=en(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!u)return l;var s=u.find(1);if(s.line==r)return s;a=tt(i,r=s.line)}}function ki(e,t,n,i){i-=yi(t);var r=t.text.length,o=de(function(t){return li(e,n,t-1).bottom<=i},r,0);return{begin:o,end:r=de(function(t){return li(e,n,t).top>i},o,r)}}function Fi(e,t,n,i){return n||(n=ai(e,t)),ki(e,t,n,bi(e,t,li(e,n,i),"line").top)}function Si(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function Bi(e,t,n,i,r){r-=cn(t);var o=ai(e,t),a=yi(t),l=0,u=t.text.length,s=!0,c=ge(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?Oi:Ti)(e,t,n,o,c,i,r);l=(s=1!=d.level)?d.from:d.to-1,u=s?d.to:d.from-1}var f,p,h=null,m=null,g=de(function(t){var n=li(e,o,t);return n.top+=a,n.bottom+=a,!!Si(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(h=t,m=n),!0)},l,u),v=!1;if(m){var _=i-m.left<m.right-i,y=_==s;g=h+(y?0:1),p=y?"after":"before",f=_?m.left:m.right}else{!s&&(g==u||g==l)&&g++,p=0==g?"after":g==t.text.length?"before":li(e,o,g-(s?1:0)).bottom+a<=r==s?"after":"before";var b=xi(e,st(n,g,p),"line",t,o);f=b.left,v=r<b.top?-1:r>=b.bottom?1:0}return Ci(n,g=ce(t.text,g,1),p,v,i-f)}function Ti(e,t,n,i,r,o,a){var l=de(function(l){var u=r[l],s=1!=u.level;return Si(xi(e,st(n,s?u.to:u.from,s?"before":"after"),"line",t,i),o,a,!0)},0,r.length-1),u=r[l];if(l>0){var s=1!=u.level,c=xi(e,st(n,s?u.from:u.to,s?"after":"before"),"line",t,i);Si(c,o,a,!0)&&c.top>a&&(u=r[l-1])}return u}function Oi(e,t,n,i,r,o,a){var l=ki(e,t,i,a),u=l.begin,s=l.end;/\s/.test(t.text.charAt(s-1))&&s--;for(var c=null,d=null,f=0;f<r.length;f++){var p=r[f];if(!(p.from>=s||p.to<=u)){var h=li(e,i,1!=p.level?Math.min(s,p.to)-1:Math.max(u,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=r[r.length-1]),c.from<u&&(c={from:u,to:c.to,level:c.level}),c.to>s&&(c={from:c.from,to:s,level:c.level}),c}function Ri(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ui){ui=T("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ui.appendChild(document.createTextNode("x")),ui.appendChild(T("br"));ui.appendChild(document.createTextNode("x"))}B(e.measure,ui);var n=ui.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),S(e.measure),n||1}function Mi(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=T("span","xxxxxxxxxx"),n=T("pre",[t],"CodeMirror-line-like");B(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ni(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+r,i[l]=o.clientWidth}return{fixedPos:Ii(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Ii(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Li(e){var t=Ri(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/Mi(e.display)-3);return function(r){if(un(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a<r.widgets.length;a++)r.widgets[a].height&&(o+=r.widgets[a].height);return n?o+(Math.ceil(r.text.length/i)||1)*t:o+t}}function Pi(e){var t=e.doc,n=Li(e);t.iter(function(e){var t=n(e);t!=e.height&&rt(e,t)})}function ji(e,t,n,i){var r=e.display;if(!n&&"true"==Be(t).getAttribute("cm-not-content"))return null;var o,a,l=r.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(d){return null}var u,s=Ei(e,o,a);if(i&&s.xRel>0&&(u=tt(e.doc,s.line).text).length==s.ch){var c=H(u,u.length,e.options.tabSize)-u.length;s=st(s.line,Math.max(0,Math.round((o-Xn(e.display).left)/Mi(e.display))-c))}return s}function Vi(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;i<n.length;i++)if((t-=n[i].size)<0)return i}function zi(e,t,n,i){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),i||(i=0);var r=e.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Mt&&an(e.doc,t)<r.viewTo&&Ui(e);else if(n<=r.viewFrom)Mt&&ln(e.doc,n+i)>r.viewFrom?Ui(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)Ui(e);else if(t<=r.viewFrom){var o=Wi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):Ui(e)}else if(n>=r.viewTo){var a=Wi(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):Ui(e)}else{var l=Wi(e,t,t,-1),u=Wi(e,n,n+i,1);l&&u?(r.view=r.view.slice(0,l.index).concat(kn(e,l.lineN,u.lineN)).concat(r.view.slice(u.index)),r.viewTo+=i):Ui(e)}var s=r.externalMeasured;s&&(n<s.lineN?s.lineN+=i:t<s.lineN+s.size&&(r.externalMeasured=null))}function Hi(e,t,n){e.curOp.viewChanged=!0;var i=e.display,r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var o=i.view[Vi(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function Ui(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wi(e,t,n,i){var r,o=Vi(e,t),a=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,u=0;u<o;u++)l+=a[u].size;if(l!=t){if(i>0){if(o==a.length-1)return null;r=l+a[o].size-t,o++}else r=l-t;t+=r,n+=r}for(;an(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function Gi(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=kn(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=kn(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Vi(e,t))),i.viewFrom=t,i.viewTo<n?i.view=i.view.concat(kn(e,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,Vi(e,n)))),i.viewTo=n}function $i(e){for(var t=e.display.view,n=0,i=0;i<t.length;i++){var r=t[i];!r.hidden&&(!r.node||r.changes)&&++n}return n}function Qi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Yi(e,t){void 0===t&&(t=!0);var n=e.doc,i={},r=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var l=0;l<n.sel.ranges.length;l++)if(t||l!=n.sel.primIndex){var u=n.sel.ranges[l];if(!(u.from().line>=e.display.viewTo||u.to().line<e.display.viewFrom)){var s=u.empty();if(a){var c=a(e,u);c&&qi(e,c,r)}else(s||e.options.showCursorWhenSelecting)&&qi(e,u.head,r);s||Xi(e,u,o)}}return i}function qi(e,t,n){var i=xi(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=n.appendChild(T("div"," ","CodeMirror-cursor"));if(r.style.left=i.left+"px",r.style.top=i.top+"px",r.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Ai(e,t,"div",null,null),a=o.right-o.left;r.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(i.other){var l=n.appendChild(T("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=i.other.left+"px",l.style.top=i.other.top+"px",l.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Ki(e,t){return e.top-t.top||e.left-t.left}function Xi(e,t,n){var i=e.display,r=e.doc,o=document.createDocumentFragment(),a=Xn(e.display),l=a.left,u=Math.max(i.sizerWidth,Zn(e)-i.sizer.offsetLeft)-a.right,s="ltr"==r.direction;function c(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),o.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(i-t)+"px"))}function d(t,n,i){var o,a,d=tt(r,t),f=d.text.length;function p(n,i){return Ai(e,st(t,n),"div",d,i)}function h(t,n,i){var r=Fi(e,d,null,t),o="ltr"==n==("after"==i)?"left":"right";return p("after"==i?r.begin:r.end-(/\s/.test(d.text.charAt(r.end-1))?2:1),o)[o]}var m=ge(d,r.direction);return fe(m,n||0,null==i?f:i,function(e,t,r,d){var g="ltr"==r,v=p(e,g?"left":"right"),_=p(t-1,g?"right":"left"),y=null==n&&0==e,b=null==i&&t==f,D=0==d,A=!m||d==m.length-1;if(_.top-v.top<=3){var x=(s?b:y)&&A,w=(s?y:b)&&D?l:(g?v:_).left,C=x?u:(g?_:v).right;c(w,v.top,C-w,v.bottom)}else{var E,k,F,S;g?(E=s&&y&&D?l:v.left,k=s?u:h(e,r,"before"),F=s?l:h(t,r,"after"),S=s&&b&&A?u:_.right):(E=s?h(e,r,"before"):l,k=!s&&y&&D?u:v.right,F=!s&&b&&A?l:_.left,S=s?h(t,r,"after"):u),c(E,v.top,k-E,v.bottom),v.bottom<_.top&&c(l,v.bottom,null,_.top),c(F,_.top,S-F,_.bottom)}(!o||Ki(v,o)<0)&&(o=v),Ki(_,o)<0&&(o=_),(!a||Ki(v,a)<0)&&(a=v),Ki(_,a)<0&&(a=_)}),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=tt(r,f.line),m=tt(r,p.line),g=nn(h)==nn(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,_=d(p.line,g?0:null,p.ch).start;g&&(v.top<_.top-2?(c(v.right,v.top,null,v.bottom),c(l,_.top,_.left,_.bottom)):c(v.right,v.top,_.left-v.right,v.bottom)),v.bottom<_.top&&c(l,v.bottom,null,_.top)}n.appendChild(o)}function Ji(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||nr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Zi(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||tr(e))}function er(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&nr(e))},100)}function tr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(De(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),u&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ji(e))}function nr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(De(e,"blur",e,t),e.state.focused=!1,F(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ir(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),r=t.lineDiv.getBoundingClientRect().top,o=0,u=0;u<t.view.length;u++){var s=t.view[u],c=e.options.lineWrapping,d=void 0,f=0;if(!s.hidden){if(r+=s.line.height,a&&l<8){var p=s.node.offsetTop+s.node.offsetHeight;d=p-n,n=p}else{var h=s.node.getBoundingClientRect();d=h.bottom-h.top,!c&&s.text.firstChild&&(f=s.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=s.line.height-d;if((m>.005||m<-.005)&&(r<i&&(o-=m),rt(s.line,d),rr(s.line),s.rest))for(var g=0;g<s.rest.length;g++)rr(s.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/Mi(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=s.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function rr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],i=n.node.parentNode;i&&(n.height=i.offsetHeight)}}function or(e,t,n){var i=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;i=Math.floor(i-qn(e));var r=n&&null!=n.bottom?n.bottom:i+e.wrapper.clientHeight,o=at(t,i),a=at(t,r);if(n&&n.ensure){var l=n.ensure.from.line,u=n.ensure.to.line;l<o?(o=l,a=at(t,cn(tt(t,l))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(o=at(t,cn(tt(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function ar(e,t){if(!Ae(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),r=null,o=n.wrapper.ownerDocument;if(t.top+i.top<0?r=!0:t.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(r=!1),null!=r&&!m){var a=T("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-qn(e.display))+"px;\n height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(r),e.display.lineSpace.removeChild(a)}}}function lr(e,t,n,i){var r;null==i&&(i=0),!e.options.lineWrapping&&t==n&&(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=xi(e,t),u=n&&n!=t?xi(e,n):l,s=sr(e,r={left:Math.min(l.left,u.left),top:Math.min(l.top,u.top)-i,right:Math.max(l.left,u.left),bottom:Math.max(l.bottom,u.bottom)+i}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=s.scrollTop&&(gr(e,s.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=s.scrollLeft&&(_r(e,s.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function ur(e,t){var n=sr(e,t);null!=n.scrollTop&&gr(e,n.scrollTop),null!=n.scrollLeft&&_r(e,n.scrollLeft)}function sr(e,t){var n=e.display,i=Ri(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=ei(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Kn(n),u=t.top<i,s=t.bottom>l-i;if(t.top<r)a.scrollTop=u?0:t.top;else if(t.bottom>r+o){var c=Math.min(t.top,(s?l:t.bottom)-o);c!=r&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Zn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function cr(e,t){null!=t&&(hr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function dr(e){hr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fr(e,t,n){(null!=t||null!=n)&&hr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function pr(e,t){hr(e),e.curOp.scrollToPos=t}function hr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,mr(e,wi(e,t.from),wi(e,t.to),t.margin))}function mr(e,t,n,i){var r=sr(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});fr(e,r.scrollLeft,r.scrollTop)}function gr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Qr(e,{top:t}),vr(e,t,!0),n&&Qr(e),jr(e,100))}function vr(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 _r(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,Xr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yr(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Kn(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+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var br=function(e,t,n){this.cm=n;var i=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),_e(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),_e(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};br.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 r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.scrollTop=0,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 o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"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}},br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},br.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new U,this.disableVert=new U},br.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,i)}e.style.visibility="",t.set(1e3,i)},br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Dr=function(){};function Ar(e,t){t||(t=yr(e));var n=e.display.barWidth,i=e.display.barHeight;xr(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&ir(e),xr(e,yr(e)),n=e.display.barWidth,i=e.display.barHeight}function xr(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=""}Dr.prototype.update=function(){return{bottom:0,right:0}},Dr.prototype.setScrollLeft=function(){},Dr.prototype.setScrollTop=function(){},Dr.prototype.clear=function(){};var wr={native:br,null:Dr};function Cr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),_e(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?_r(e,t):gr(e,t)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Er=0;function kr(e){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:++Er,markArrays:null},Sn(e.curOp)}function Fr(e){var t=e.curOp;t&&Tn(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Sr(e)})}function Sr(e){for(var t=e.ops,n=0;n<t.length;n++)Br(t[n]);for(var i=0;i<t.length;i++)Tr(t[i]);for(var r=0;r<t.length;r++)Or(t[r]);for(var o=0;o<t.length;o++)Rr(t[o]);for(var a=0;a<t.length;a++)Mr(t[a])}function Br(e){var t=e.cm,n=t.display;Hr(t),e.updateMaxLine&&fn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new zr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Tr(e){e.updatedDisplay=e.mustUpdate&&Gr(e.cm,e.update)}function Or(e){var t=e.cm,n=t.display;e.updatedDisplay&&ir(t),e.barMeasure=yr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ri(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+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Zn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Rr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&_r(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==M(P(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ar(t,e.barMeasure),e.updatedDisplay&&Kr(t,e.barMeasure),e.selectionChanged&&Ji(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Zi(e.cm)}function Mr(e){var t=e.cm,n=t.display,i=t.doc;e.updatedDisplay&&$r(t,e.update),null!=n.wheelStartX&&(null!=e.scrollTop||null!=e.scrollLeft||e.scrollToPos)&&(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&vr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&_r(t,e.scrollLeft,!0,!0),e.scrollToPos&&ar(t,lr(t,gt(i,e.scrollToPos.from),gt(i,e.scrollToPos.to),e.scrollToPos.margin));var r=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(r)for(var a=0;a<r.length;++a)r[a].lines.length||De(r[a],"hide");if(o)for(var l=0;l<o.length;++l)o[l].lines.length&&De(o[l],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&De(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Nr(e,t){if(e.curOp)return t();kr(e);try{return t()}finally{Fr(e)}}function Ir(e,t){return function(){if(e.curOp)return t.apply(e,arguments);kr(e);try{return t.apply(e,arguments)}finally{Fr(e)}}}function Lr(e){return function(){if(this.curOp)return e.apply(this,arguments);kr(this);try{return e.apply(this,arguments)}finally{Fr(this)}}}function Pr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);kr(t);try{return e.apply(this,arguments)}finally{Fr(t)}}}function jr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,V(Vr,e))}function Vr(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,i=xt(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(i.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Xe(t.mode,i.state):null,u=Dt(e,o,i,!0);l&&(i.state=l),o.styles=u.styles;var s=o.styleClasses,c=u.classes;c?o.styleClasses=c:s&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||s!=c&&(!s||!c||s.bgClass!=c.bgClass||s.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&r.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=e.options.maxHighlightLength&&wt(e,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return jr(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&Nr(e,function(){for(var t=0;t<r.length;t++)Hi(e,r[t],"text")})}}var zr=function(e,t,n){var i=e.display;this.viewport=t,this.visible=or(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Zn(e),this.force=n,this.dims=Ni(e),this.events=[]};function Hr(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Jn(e)+"px",t.scrollbarsClipped=!0)}function Ur(e){if(e.hasFocus())return null;var t=M(P(e));if(!t||!R(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var i=j(e).getSelection();i.anchorNode&&i.extend&&R(e.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}function Wr(e){if(e&&e.activeElt&&e.activeElt!=M(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),i=t.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),n.removeAllRanges(),n.addRange(i),n.extend(e.focusNode,e.focusOffset)}}function Gr(e,t){var n=e.display,i=e.doc;if(t.editorIsHidden)return Ui(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$i(e))return!1;Jr(e)&&(Ui(e),t.dims=Ni(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(i.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),Mt&&(o=an(e.doc,o),a=ln(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Gi(e,o,a),n.viewOffset=cn(tt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=$i(e);if(!l&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var s=Ur(e);return u>4&&(n.lineDiv.style.display="none"),Yr(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wr(s),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,jr(e,400)),n.updateLineNumbers=null,!0}function $r(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Zn(e))i&&(t.visible=or(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Kn(e.display)-ei(e),n.top)}),t.visible=or(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Gr(e,t))break;ir(e);var r=yr(e);Qi(e),Ar(e,r),Kr(e,r),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 Qr(e,t){var n=new zr(e,t);if(Gr(e,n)){ir(e),$r(e,n);var i=yr(e);Qi(e),Ar(e,i),Kr(e,i),n.finish()}}function Yr(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var s=i.view,c=i.viewFrom,d=0;d<s.length;d++){var f=s[d];if(!f.hidden)if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=l(a);var p=r&&null!=t&&t<=c&&f.lineNumber;f.changes&&(W(f.changes,"gutter")>-1&&(p=!1),Nn(e,f,c,n)),p&&(S(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ut(e.options,c)))),a=f.node.nextSibling}else{var h=Un(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=l(a)}function qr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Rn(e,"gutterChanged",e)}function Kr(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+Jn(e)+"px"}function Xr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=Ii(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var u=0;u<l.length;u++)l[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=i+r+"px")}}function Jr(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=ut(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var r=i.measure.appendChild(T("div",[T("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=r.firstChild.offsetWidth,a=r.offsetWidth-o;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(o,i.lineGutter.offsetWidth-a)+1,i.lineNumWidth=i.lineNumInnerWidth+a,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",qr(e.display),!0}return!1}function Zr(e,t){for(var n=[],i=!1,r=0;r<e.length;r++){var o=e[r],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;i=!0}n.push({className:o,style:a})}return t&&!i&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function eo(e){var t=e.gutters,n=e.gutterSpecs;S(t),e.lineGutter=null;for(var i=0;i<n.length;++i){var r=n[i],o=r.className,a=r.style,l=t.appendChild(T("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",qr(e)}function to(e){eo(e.display),zi(e),Xr(e)}function no(e,t,i,r){var o=this;this.input=i,o.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=O("div",null,"CodeMirror-code"),o.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=T("div",null,"CodeMirror-cursors"),o.measure=T("div",null,"CodeMirror-measure"),o.lineMeasure=T("div",null,"CodeMirror-measure"),o.lineSpace=O("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var s=O("div",[o.lineSpace],"CodeMirror-lines");o.mover=T("div",[s],null,"position: relative"),o.sizer=T("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=T("div",null,null,"position: absolute; height: "+G+"px; width: 1px;"),o.gutters=T("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=T("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=T("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),a&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),!u&&!(n&&_)&&(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Zr(r.gutters,r.lineNumbers),eo(o),i.init(o)}zr.prototype.signal=function(e,t){we(e,t)&&this.events.push(arguments)},zr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)De.apply(null,this.events[e])};var io=0,ro=null;function oo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ao(e){var t=oo(e);return t.x*=ro,t.y*=ro,t}function lo(e,t){c&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=oo(t),r=i.x,o=i.y,a=ro;0===t.deltaMode&&(r=t.deltaX,o=t.deltaY,a=1);var l=e.display,s=l.scroller,p=s.scrollWidth>s.clientWidth,h=s.scrollHeight>s.clientHeight;if(r&&p||o&&h){if(o&&b&&u)e:for(var m=t.target,g=l.view;m!=s;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(r&&!n&&!f&&null!=a)return o&&h&&gr(e,Math.max(0,s.scrollTop+o*a)),_r(e,Math.max(0,s.scrollLeft+r*a)),(!o||o&&h)&&Ee(t),void(l.wheelStartX=null);if(o&&null!=a){var _=o*a,y=e.doc.scrollTop,D=y+l.wrapper.clientHeight;_<0?y=Math.max(0,y+_-50):D=Math.min(e.doc.height,D+_+50),Qr(e,{top:y,bottom:D})}io<20&&0!==t.deltaMode&&(null==l.wheelStartX?(l.wheelStartX=s.scrollLeft,l.wheelStartY=s.scrollTop,l.wheelDX=r,l.wheelDY=o,setTimeout(function(){if(null!=l.wheelStartX){var e=s.scrollLeft-l.wheelStartX,t=s.scrollTop-l.wheelStartY,n=t&&l.wheelDY&&t/l.wheelDY||e&&l.wheelDX&&e/l.wheelDX;l.wheelStartX=l.wheelStartY=null,n&&(ro=(ro*io+n)/(io+1),++io)}},200)):(l.wheelDX+=r,l.wheelDY+=o))}}a?ro=-.53:n?ro=15:c?ro=-.7:p&&(ro=-1/3);var uo=function(e,t){this.ranges=e,this.primIndex=t};uo.prototype.primary=function(){return this.ranges[this.primIndex]},uo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],i=e.ranges[t];if(!dt(n.anchor,i.anchor)||!dt(n.head,i.head))return!1}return!0},uo.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new so(ft(this.ranges[t].anchor),ft(this.ranges[t].head));return new uo(e,this.primIndex)},uo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},uo.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var i=this.ranges[n];if(ct(t,i.from())>=0&&ct(e,i.to())<=0)return n}return-1};var so=function(e,t){this.anchor=e,this.head=t};function co(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort(function(e,t){return ct(e.from(),t.from())}),n=W(t,r);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],u=ct(l.to(),a.from());if(i&&!a.empty()?u>0:u>=0){var s=ht(l.from(),a.from()),c=pt(l.to(),a.to()),d=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new so(d?c:s,d?s:c))}}return new uo(t,n)}function fo(e,t){return new uo([new so(e,t||e)],0)}function po(e){return e.text?st(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ho(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return po(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+=po(t).ch-t.to.ch),st(n,i)}function mo(e,t){for(var n=[],i=0;i<e.sel.ranges.length;i++){var r=e.sel.ranges[i];n.push(new so(ho(r.anchor,t),ho(r.head,t)))}return co(e.cm,n,e.sel.primIndex)}function go(e,t,n){return e.line==t.line?st(n.line,e.ch-t.ch+n.ch):st(n.line+(e.line-t.line),e.ch)}function vo(e,t,n){for(var i=[],r=st(e.first,0),o=r,a=0;a<t.length;a++){var l=t[a],u=go(l.from,r,o),s=go(po(l),r,o);if(r=l.to,o=s,"around"==n){var c=e.sel.ranges[a],d=ct(c.head,c.anchor)<0;i[a]=new so(d?s:u,d?u:s)}else i[a]=new so(u,u)}return new uo(i,e.sel.primIndex)}function _o(e){e.doc.mode=Ye(e.options,e.doc.modeOption),yo(e)}function yo(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,jr(e,100),e.state.modeGen++,e.curOp&&zi(e)}function bo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Do(e,t,n,i){function r(e){return n?n[e]:null}function o(e,n,r){hn(e,n,r,i),Rn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new pn(s[o],r(o),i));return n}var l=t.from,u=t.to,s=t.text,c=tt(e,l.line),d=tt(e,u.line),f=Z(s),p=r(s.length-1),h=u.line-l.line;if(t.full)e.insert(0,a(0,s.length)),e.remove(s.length,e.size-s.length);else if(bo(e,t)){var m=a(0,s.length-1);o(d,d.text,p),h&&e.remove(l.line,h),m.length&&e.insert(l.line,m)}else if(c==d)if(1==s.length)o(c,c.text.slice(0,l.ch)+f+c.text.slice(u.ch),p);else{var g=a(1,s.length-1);g.push(new pn(f+c.text.slice(u.ch),p,i)),o(c,c.text.slice(0,l.ch)+s[0],r(0)),e.insert(l.line+1,g)}else if(1==s.length)o(c,c.text.slice(0,l.ch)+s[0]+d.text.slice(u.ch),r(0)),e.remove(l.line+1,h);else{o(c,c.text.slice(0,l.ch)+s[0],r(0)),o(d,f+d.text.slice(u.ch),p);var v=a(1,s.length-1);h>1&&e.remove(l.line+1,h-1),e.insert(l.line+1,v)}Rn(e,"change",e,t)}function Ao(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var l=e.linked[a];if(l.doc!=r){var u=o&&l.sharedHist;n&&!u||(t(l.doc,u),i(l.doc,e,u))}}}i(e,null,!0)}function xo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Pi(e),_o(e),wo(e),e.options.direction=t.direction,e.options.lineWrapping||fn(e),e.options.mode=t.modeOption,zi(e)}function wo(e){("rtl"==e.doc.direction?N:F)(e.display.lineDiv,"CodeMirror-rtl")}function Co(e){Nr(e,function(){wo(e),zi(e)})}function Eo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ko(e,t){var n={from:ft(t.from),to:po(t),text:nt(e,t.from,t.to)};return Mo(e,n,t.from.line,t.to.line+1),Ao(e,function(e){return Mo(e,n,t.from.line,t.to.line+1)},!0),n}function Fo(e){for(;e.length&&Z(e).ranges;)e.pop()}function So(e,t){return t?(Fo(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}function Bo(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,l=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=So(r,r.lastOp==i)))a=Z(o.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=po(t):o.changes.push(ko(e,t));else{var u=Z(r.done);for((!u||!u.ranges)&&Ro(e.sel,r.done),o={changes:[ko(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=l,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||De(e,"historyAdded")}function To(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oo(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||To(e,o,Z(r.done),t))?r.done[r.done.length-1]=t:Ro(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&Fo(r.undone)}function Ro(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Mo(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function No(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Io(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var i=[],r=0;r<t.text.length;++r)i.push(No(n[r]));return i}function Lo(e,t){var n=Io(e,t),i=Ut(e,t);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var o=n[r],a=i[r];if(o&&a)e:for(var l=0;l<a.length;++l){for(var u=a[l],s=0;s<o.length;++s)if(o[s].marker==u.marker)continue e;o.push(u)}else a&&(n[r]=a)}return n}function Po(e,t,n){for(var i=[],r=0;r<e.length;++r){var o=e[r];if(o.ranges)i.push(n?uo.prototype.deepCopy.call(o):o);else{var a=o.changes,l=[];i.push({changes:l});for(var u=0;u<a.length;++u){var s=a[u],c=void 0;if(l.push({from:s.from,to:s.to,text:s.text}),t)for(var d in s)(c=d.match(/^spans_(\d+)$/))&&W(t,Number(c[1]))>-1&&(Z(l)[d]=s[d],delete s[d])}}}return i}function jo(e,t,n,i){if(i){var r=e.anchor;if(n){var o=ct(t,r)<0;o!=ct(n,r)<0?(r=t,t=n):o!=ct(t,n)<0&&(t=n)}return new so(r,t)}return new so(n||t,t)}function Vo(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),$o(e,new uo([jo(e.sel.primary(),t,n,r)],0),i)}function zo(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)i[o]=jo(e.sel.ranges[o],t[o],null,r);$o(e,co(e.cm,i,e.sel.primIndex),n)}function Ho(e,t,n,i){var r=e.sel.ranges.slice(0);r[t]=n,$o(e,co(e.cm,r,e.sel.primIndex),i)}function Uo(e,t,n,i){$o(e,fo(t,n),i)}function Wo(e,t,n){var i={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new so(gt(e,t[n].anchor),gt(e,t[n].head))},origin:n&&n.origin};return De(e,"beforeSelectionChange",e,i),e.cm&&De(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?co(e.cm,i.ranges,i.ranges.length-1):t}function Go(e,t,n){var i=e.history.done,r=Z(i);r&&r.ranges?(i[i.length-1]=t,Qo(e,t,n)):$o(e,t,n)}function $o(e,t,n){Qo(e,t,n),Oo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Qo(e,t,n){(we(e,"beforeSelectionChange")||e.cm&&we(e.cm,"beforeSelectionChange"))&&(t=Wo(e,t,n));var i=n&&n.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Yo(e,Ko(e,t,i,!0)),(!n||!1!==n.scroll)&&e.cm&&"nocursor"!=e.cm.getOption("readOnly")&&dr(e.cm)}function Yo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,xe(e.cm)),Rn(e,"cursorActivity",e))}function qo(e){Yo(e,Ko(e,e.sel,null,!1))}function Ko(e,t,n,i){for(var r,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],u=Jo(e,a.anchor,l&&l.anchor,n,i),s=a.head==a.anchor?u:Jo(e,a.head,l&&l.head,n,i);(r||u!=a.anchor||s!=a.head)&&(r||(r=t.ranges.slice(0,o)),r[o]=new so(u,s))}return r?co(e.cm,r,t.primIndex):t}function Xo(e,t,n,i,r){var o=tt(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],u=l.marker,s="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,c="selectRight"in u?!u.selectRight:u.inclusiveRight;if((null==l.from||(s?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(c?l.to>=t.ch:l.to>t.ch))){if(r&&(De(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var d=u.find(i<0?1:-1),f=void 0;if((i<0?c:s)&&(d=Zo(e,d,-i,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ct(d,n))&&(i<0?f<0:f>0))return Xo(e,d,t,i,r)}var p=u.find(i<0?-1:1);return(i<0?s:c)&&(p=Zo(e,p,i,p.line==t.line?o:null)),p?Xo(e,p,t,i,r):null}}return t}function Jo(e,t,n,i,r){var o=i||1;return Xo(e,t,n,o,r)||!r&&Xo(e,t,n,o,!0)||Xo(e,t,n,-o,r)||!r&&Xo(e,t,n,-o,!0)||(e.cantEdit=!0,st(e.first,0))}function Zo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?gt(e,st(t.line-1)):null:n>0&&t.ch==(i||tt(e,t.line)).text.length?t.line<e.first+e.size-1?st(t.line+1,0):null:new st(t.line,t.ch+n)}function ea(e){e.setSelection(st(e.firstLine(),0),st(e.lastLine()),Q)}function ta(e,t,n){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(t,n,r,o){t&&(i.from=gt(e,t)),n&&(i.to=gt(e,n)),r&&(i.text=r),void 0!==o&&(i.origin=o)}),De(e,"beforeChange",e,i),e.cm&&De(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function na(e,t,n){if(e.cm){if(!e.cm.curOp)return Ir(e.cm,na)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"))||(t=ta(e,t,!0))){var i=Rt&&!n&&Gt(e,t.from,t.to);if(i)for(var r=i.length-1;r>=0;--r)ia(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else ia(e,t)}}function ia(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=mo(e,t);Bo(e,t,n,e.cm?e.cm.curOp.id:NaN),aa(e,t,n,Ut(e,t));var i=[];Ao(e,function(e,n){!n&&-1==W(i,e.history)&&(da(e.history,t),i.push(e.history)),aa(e,t,null,Ut(e,t))})}}function ra(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,u="undo"==t?o.undone:o.done,s=0;s<l.length&&(r=l[s],!(n?r.ranges&&!r.equals(e.sel):!r.ranges));s++);if(s!=l.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(r=l.pop()).ranges){if(i)return void l.push(r);break}if(Ro(r,u),n&&!r.equals(e.sel))return void $o(e,r,{clearRedo:!1});a=r}var c=[];Ro(a,u),u.push({changes:c,generation:o.generation}),o.generation=r.generation||++o.maxGeneration;for(var d=we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"),f=function(n){var i=r.changes[n];if(i.origin=t,d&&!ta(e,i,!1))return l.length=0,{};c.push(ko(e,i));var o=n?mo(e,i):Z(l);aa(e,i,o,Lo(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:po(i)});var a=[];Ao(e,function(e,t){!t&&-1==W(a,e.history)&&(da(e.history,i),a.push(e.history)),aa(e,i,null,Lo(e,i))})},p=r.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function oa(e,t){if(0!=t&&(e.first+=t,e.sel=new uo(ee(e.sel.ranges,function(e){return new so(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){zi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;i<n.viewTo;i++)Hi(e.cm,i,"gutter")}}function aa(e,t,n,i){if(e.cm&&!e.cm.curOp)return Ir(e.cm,aa)(e,t,n,i);if(t.to.line<e.first)oa(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var r=t.text.length-1-(e.first-t.from.line);oa(e,r),t={from:st(e.first,0),to:st(t.to.line+r,t.to.ch),text:[Z(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:st(o,tt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=nt(e,t.from,t.to),n||(n=mo(e,t)),e.cm?la(e.cm,t,i):Do(e,t,i),Qo(e,n,Q),e.cantEdit&&Jo(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function la(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,l=!1,u=o.line;e.options.lineWrapping||(u=ot(nn(tt(i,o.line))),i.iter(u,a.line+1,function(e){if(e==r.maxLine)return l=!0,!0})),i.sel.contains(t.from,t.to)>-1&&xe(e),Do(i,t,n,Li(e)),e.options.lineWrapping||(i.iter(u,o.line+t.text.length,function(e){var t=dn(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),Ot(i,o.line),jr(e,400);var s=t.text.length-(a.line-o.line)-1;t.full?zi(e):o.line!=a.line||1!=t.text.length||bo(e.doc,t)?zi(e,o.line,a.line+1,s):Hi(e,o.line,"text");var c=we(e,"changes"),d=we(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Rn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ua(e,t,n,i,r){var o;i||(i=n),ct(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),na(e,{from:n,to:i,text:t,origin:r})}function sa(e,t,n,i){n<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function ca(e,t,n,i){for(var r=0;r<e.length;++r){var o=e[r],a=!0;if(o.ranges){o.copied||((o=e[r]=o.deepCopy()).copied=!0);for(var l=0;l<o.ranges.length;l++)sa(o.ranges[l].anchor,t,n,i),sa(o.ranges[l].head,t,n,i)}else{for(var u=0;u<o.changes.length;++u){var s=o.changes[u];if(n<s.from.line)s.from=st(s.from.line+i,s.from.ch),s.to=st(s.to.line+i,s.to.ch);else if(t<=s.to.line){a=!1;break}}a||(e.splice(0,r+1),r=0)}}}function da(e,t){var n=t.from.line,i=t.to.line,r=t.text.length-(i-n)-1;ca(e.done,n,i,r),ca(e.undone,n,i,r)}function fa(e,t,n,i){var r=t,o=t;return"number"==typeof t?o=tt(e,mt(e,t)):r=ot(t),null==r?null:(i(o,r)&&e.cm&&Hi(e.cm,r,n),o)}function pa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ha(e){this.children=e;for(var t=0,n=0,i=0;i<e.length;++i){var r=e[i];t+=r.chunkSize(),n+=r.height,r.parent=this}this.size=t,this.height=n,this.parent=null}so.prototype.from=function(){return ht(this.anchor,this.head)},so.prototype.to=function(){return pt(this.anchor,this.head)},so.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,i=e+t;n<i;++n){var r=this.lines[n];this.height-=r.height,mn(r),Rn(r,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,n){for(var i=e+t;e<i;++e)if(n(this.lines[e]))return!0}},ha.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var i=this.children[n],r=i.chunkSize();if(e<r){var o=Math.min(t,r-e),a=i.height;if(i.removeInner(e,o),this.height-=a-i.height,r==o&&(this.children.splice(n--,1),i.parent=null),0==(t-=o))break;e=0}else e-=r}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof pa))){var l=[];this.collapse(l),this.children=[new pa(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(e<=o){if(r.insertInner(e,t,n),r.lines&&r.lines.length>50){for(var a=r.lines.length%25+25,l=a;l<r.lines.length;){var u=new pa(r.lines.slice(l,l+=25));r.height-=u.height,this.children.splice(++i,0,u),u.parent=this}r.lines=r.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ha(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=W(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var i=new ha(e.children);i.parent=e,e.children=[i,t],e=i}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(e<o){var a=Math.min(t,o-e);if(r.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ma=function(e,t,n){if(n)for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.doc=e,this.node=t};function ga(e,t,n){cn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&cr(e,n)}function va(e,t,n,i){var r=new ma(e,n,i),o=e.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),fa(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length,Math.max(0,r.insertAt)),0,r),r.line=t,o&&!un(e,t)){var i=cn(t)<e.scrollTop;rt(t,t.height+Qn(r)),i&&cr(o,r.height),o.curOp.forceUpdate=!0}return!0}),o&&Rn(o,"lineWidgetAdded",o,r,"number"==typeof t?t:ot(t)),r}ma.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,i=ot(n);if(null!=i&&t){for(var r=0;r<t.length;++r)t[r]==this&&t.splice(r--,1);t.length||(n.widgets=null);var o=Qn(this);rt(n,Math.max(0,n.height-o)),e&&(Nr(e,function(){ga(e,n,-o),Hi(e,i,"widget")}),Rn(e,"lineWidgetCleared",e,this,i))}},ma.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,i=this.line;this.height=null;var r=Qn(this)-t;!r||(un(this.doc,i)||rt(i,i.height+r),n&&Nr(n,function(){n.curOp.forceUpdate=!0,ga(n,i,r),Rn(n,"lineWidgetChanged",n,e,ot(i))}))},Ce(ma);var _a=0,ya=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++_a};function ba(e,t,n,i,r){if(i&&i.shared)return Aa(e,t,n,i,r);if(e.cm&&!e.cm.curOp)return Ir(e.cm,ba)(e,t,n,i,r);var o=new ya(e,r),a=ct(t,n);if(i&&z(i,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(tn(e,t.line,t,n,o)||t.line!=n.line&&tn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");It()}o.addToHistory&&Bo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,u=t.line,s=e.cm;if(e.iter(u,n.line+1,function(i){s&&o.collapsed&&!s.options.lineWrapping&&nn(i)==s.display.maxLine&&(l=!0),o.collapsed&&u!=t.line&&rt(i,0),Vt(i,new Lt(o,u==t.line?t.ch:null,u==n.line?n.ch:null),e.cm&&e.cm.curOp),++u}),o.collapsed&&e.iter(t.line,n.line+1,function(t){un(e,t)&&rt(t,0)}),o.clearOnEnter&&_e(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Nt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++_a,o.atomic=!0),s){if(l&&(s.curOp.updateMaxLine=!0),o.collapsed)zi(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Hi(s,c,"text");o.atomic&&qo(s.doc),Rn(s,"markerAdded",s,o)}return o}ya.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&kr(e),we(this,"clear")){var n=this.find();n&&Rn(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=Pt(a.markedSpans,this);e&&!this.collapsed?Hi(e,ot(a),"text"):e&&(null!=l.to&&(r=ot(a)),null!=l.from&&(i=ot(a))),a.markedSpans=jt(a.markedSpans,l),null==l.from&&this.collapsed&&!un(this.doc,a)&&e&&rt(a,Ri(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var s=nn(this.lines[u]),c=dn(s);c>e.display.maxLineLength&&(e.display.maxLine=s,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&zi(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&qo(e.doc)),e&&Rn(e,"markerCleared",e,this,i,r),t&&Fr(e),this.parent&&this.parent.clear()}},ya.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,i,r=0;r<this.lines.length;++r){var o=this.lines[r],a=Pt(o.markedSpans,this);if(null!=a.from&&(n=st(t?o:ot(o),a.from),-1==e))return n;if(null!=a.to&&(i=st(t?o:ot(o),a.to),1==e))return i}return n&&{from:n,to:i}},ya.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,i=this.doc.cm;!t||!i||Nr(i,function(){var r=t.line,o=ot(t.line),a=oi(i,o);if(a&&(hi(a),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!un(n.doc,r)&&null!=n.height){var l=n.height;n.height=null;var u=Qn(n)-l;u&&rt(r,r.height+u)}Rn(i,"markerChanged",i,e)})},ya.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||-1==W(t.maybeHiddenMarkers,this))&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ya.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ce(ya);var Da=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Aa(e,t,n,i,r){(i=z(i)).shared=!1;var o=[ba(e,t,n,i,r)],a=o[0],l=i.widgetNode;return Ao(e,function(e){l&&(i.widgetNode=l.cloneNode(!0)),o.push(ba(e,gt(e,t),gt(e,n),i,r));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=Z(o)}),new Da(o,a)}function xa(e){return e.findMarks(st(e.first,0),e.clipPos(st(e.lastLine())),function(e){return e.parent})}function wa(e,t){for(var n=0;n<t.length;n++){var i=t[n],r=i.find(),o=e.clipPos(r.from),a=e.clipPos(r.to);if(ct(o,a)){var l=ba(e,o,a,i.primary,i.primary.type);i.markers.push(l),l.parent=i}}}function Ca(e){for(var t=function(t){var n=e[t],i=[n.primary.doc];Ao(n.primary.doc,function(e){return i.push(e)});for(var r=0;r<n.markers.length;r++){var o=n.markers[r];-1==W(i,o.doc)&&(o.parent=null,n.markers.splice(r--,1))}},n=0;n<e.length;n++)t(n)}Da.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Rn(this,"clear")}},Da.prototype.find=function(e,t){return this.primary.find(e,t)},Ce(Da);var Ea=0,ka=function(e,t,n,i,r){if(!(this instanceof ka))return new ka(e,t,n,i,r);null==n&&(n=0),ha.call(this,[new pa([new pn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=st(n,0);this.sel=fo(o),this.history=new Eo(null),this.id=++Ea,this.modeOption=t,this.lineSep=i,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Do(this,{from:o,to:o,text:e}),$o(this,fo(o),Q)};ka.prototype=ie(ha.prototype,{constructor:ka,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,i=0;i<t.length;++i)n+=t[i].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=it(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Pr(function(e){var t=st(this.first,0),n=this.first+this.size-1;na(this,{from:t,to:st(n,tt(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&fr(this.cm,0,0),$o(this,fo(t),Q)}),replaceRange:function(e,t,n,i){ua(this,e,t=gt(this,t),n=n?gt(this,n):t,i)},getRange:function(e,t,n){var i=nt(this,gt(this,e),gt(this,t));return!1===n?i:""===n?i.join(""):i.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(lt(this,e))return tt(this,e)},getLineNumber:function(e){return ot(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=tt(this,e)),nn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return gt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Pr(function(e,t,n){Uo(this,gt(this,"number"==typeof e?st(e,t||0):e),null,n)}),setSelection:Pr(function(e,t,n){Uo(this,gt(this,e),gt(this,t||e),n)}),extendSelection:Pr(function(e,t,n){Vo(this,gt(this,e),t&&gt(this,t),n)}),extendSelections:Pr(function(e,t){zo(this,_t(this,e),t)}),extendSelectionsBy:Pr(function(e,t){zo(this,_t(this,ee(this.sel.ranges,e)),t)}),setSelections:Pr(function(e,t,n){if(e.length){for(var i=[],r=0;r<e.length;r++)i[r]=new so(gt(this,e[r].anchor),gt(this,e[r].head||e[r].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),$o(this,co(this.cm,i,t),n)}}),addSelection:Pr(function(e,t,n){var i=this.sel.ranges.slice(0);i.push(new so(gt(this,e),gt(this,t||e))),$o(this,co(this.cm,i,i.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,i=0;i<n.length;i++){var r=nt(this,n[i].from(),n[i].to());t=t?t.concat(r):r}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,i=0;i<n.length;i++){var r=nt(this,n[i].from(),n[i].to());!1!==e&&(r=r.join(e||this.lineSeparator())),t[i]=r}return t},replaceSelection:function(e,t,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=e;this.replaceSelections(i,t,n||"+input")},replaceSelections:Pr(function(e,t,n){for(var i=[],r=this.sel,o=0;o<r.ranges.length;o++){var a=r.ranges[o];i[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&"end"!=t&&vo(this,i,t),u=i.length-1;u>=0;u--)na(this,i[u]);l?Go(this,l):this.cm&&dr(this.cm)}),undo:Pr(function(){ra(this,"undo")}),redo:Pr(function(){ra(this,"redo")}),undoSelection:Pr(function(){ra(this,"undo",!0)}),redoSelection:Pr(function(){ra(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.done.length;i++)e.done[i].ranges||++t;for(var r=0;r<e.undone.length;r++)e.undone[r].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Eo(this.history),Ao(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Po(this.history.done),undone:Po(this.history.undone)}},setHistory:function(e){var t=this.history=new Eo(this.history);t.done=Po(e.done.slice(0),null,!0),t.undone=Po(e.undone.slice(0),null,!0)},setGutterMarker:Pr(function(e,t,n){return fa(this,e,"gutter",function(e){var i=e.gutterMarkers||(e.gutterMarkers={});return i[t]=n,!n&&le(i)&&(e.gutterMarkers=null),!0})}),clearGutter:Pr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&fa(t,n,"gutter",function(){return n.gutterMarkers[e]=null,le(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!(lt(this,e)&&(t=e,e=tt(this,e))))return null}else if(null==(t=ot(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Pr(function(e,t,n){return fa(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[i]){if(E(n).test(e[i]))return!1;e[i]+=" "+n}else e[i]=n;return!0})}),removeLineClass:Pr(function(e,t,n){return fa(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",r=e[i];if(!r)return!1;if(null==n)e[i]=null;else{var o=r.match(E(n));if(!o)return!1;var a=o.index+o[0].length;e[i]=r.slice(0,o.index)+(o.index&&a!=r.length?" ":"")+r.slice(a)||null}return!0})}),addLineWidget:Pr(function(e,t,n){return va(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ba(this,gt(this,e),gt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ba(this,e=gt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=tt(this,(e=gt(this,e)).line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=e.ch)&&(null==r.to||r.to>=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=gt(this,e),t=gt(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var u=a[l];!(null!=u.to&&r==e.line&&e.ch>=u.to||null==u.from&&r!=e.line||null!=u.from&&r==t.line&&u.from>=t.ch)&&(!n||n(u.marker))&&i.push(u.marker.parent||u.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&e.push(n[i].marker)}),e},posFromIndex:function(e){var t,n=this.first,i=this.lineSeparator().length;return this.iter(function(r){var o=r.text.length+i;if(o>e)return t=e,!0;e-=o,++n}),gt(this,st(n,t))},indexFromPos:function(e){var t=(e=gt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new ka(it(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var i=new ka(it(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],wa(i,xa(this)),i},unlinkDoc:function(e){if(e instanceof zl&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ca(xa(this));break}if(e.history==this.history){var n=[e.id];Ao(e,function(e){return n.push(e.id)},!0),e.history=new Eo(null),e.history.done=Po(this.history.done,n),e.history.undone=Po(this.history.undone,n)}},iterLinkedDocs:function(e){Ao(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Pe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Pr(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Co(this.cm))})}),ka.prototype.eachLine=ka.prototype.iter;var Fa=0;function Sa(e){var t=this;if(Oa(t),!Ae(t,e)&&!Yn(t.display,e)){Ee(e),a&&(Fa=+new Date);var n=ji(t,e,!0),i=e.dataTransfer.files;if(n&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,o=Array(r),l=0,u=function(){++l==r&&Ir(t,function(){var e={from:n=gt(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};na(t.doc,e),Go(t.doc,fo(gt(t.doc,n),gt(t.doc,po(e))))})()},s=function(e,n){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))u();else{var i=new FileReader;i.onerror=function(){return u()},i.onload=function(){var e=i.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),u()},i.readAsText(e)}},c=0;c<i.length;c++)s(i[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-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()),Qo(t.doc,fo(n,n)),f)for(var p=0;p<f.length;++p)ua(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(h){}}}}function Ba(e,t){if(a&&(!e.state.draggingText||+new Date-Fa<100))Se(t);else if(!Ae(e,t)&&!Yn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=T("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function Ta(e,t){var n=ji(e,t);if(n){var i=document.createDocumentFragment();qi(e,n,i),e.display.dragCursor||(e.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),B(e.display.dragCursor,i)}}function Oa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ra(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],i=0;i<t.length;i++){var r=t[i].CodeMirror;r&&n.push(r)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Ma=!1;function Na(){Ma||(Ia(),Ma=!0)}function Ia(){var e;_e(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Ra(La)},100))}),_e(window,"blur",function(){return Ra(nr)})}function La(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Pa={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Pa[ja+48]=Pa[ja+96]=String(ja);for(var Va=65;Va<=90;Va++)Pa[Va]=String.fromCharCode(Va);for(var za=1;za<=12;za++)Pa[za+111]=Pa[za+63235]="F"+za;var Ha={};function Ua(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,i,r,o,a=0;a<t.length-1;a++){var l=t[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return n&&(e="Alt-"+e),i&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Wa(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete e[n];continue}for(var r=ee(n.split(" "),Ua),o=0;o<r.length;o++){var a=void 0,l=void 0;o==r.length-1?(l=r.join(" "),a=i):(l=r.slice(0,o+1).join(" "),a="...");var u=t[l];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+l)}else t[l]=a}delete e[n]}for(var s in t)e[s]=t[s];return e}function Ga(e,t,n,i){var r=(t=qa(t)).call?t.call(e,i):t[e];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ga(e,t.fallthrough,n,i);for(var o=0;o<t.fallthrough.length;o++){var a=Ga(e,t.fallthrough[o],n,i);if(a)return a}}}function $a(e){var t="string"==typeof e?e:Pa[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Qa(e,t,n){var i=e;return t.altKey&&"Alt"!=i&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=i&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Mod"!=i&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=i&&(e="Shift-"+e),e}function Ya(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Pa[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Qa(n,e,t))}function qa(e){return"string"==typeof e?Ha[e]:e}function Ka(e,t){for(var n=e.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var o=t(n[r]);i.length&&ct(o.from,Z(i).to)<=0;){var a=i.pop();if(ct(a.from,o.from)<0){o.from=a.from;break}}i.push(o)}Nr(e,function(){for(var t=i.length-1;t>=0;t--)ua(e.doc,"",i[t].from,i[t].to,"+delete");dr(e)})}function Xa(e,t,n){var i=ce(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Ja(e,t,n){var i=Xa(e,t.ch,n);return null==i?null:new st(t.line,i,n<0?"after":"before")}function Za(e,t,n,i,r){if(e){"rtl"==t.doc.direction&&(r=-r);var o=ge(n,t.doc.direction);if(o){var a,l=r<0?Z(o):o[0],u=r<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var s=ai(t,n);a=r<0?n.text.length-1:0;var c=li(t,s,a).top;a=de(function(e){return li(t,s,e).top==c},r<0==(1==l.level)?l.from:l.to-1,a),"before"==u&&(a=Xa(n,a,1))}else a=r<0?l.to:l.from;return new st(i,a,u)}}return new st(i,r<0?n.text.length:0,r<0?"before":"after")}function el(e,t,n,i){var r=ge(t,e.doc.direction);if(!r)return Ja(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 o=he(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from<n.ch))return Ja(t,n,i);var l,u=function(e,n){return Xa(t,e instanceof st?e.ch:e,n)},s=function(n){return e.options.lineWrapping?(l=l||ai(e,t),Fi(e,t,l,n)):{begin:0,end:t.text.length}},c=s("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==i<0,f=u(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=c.end:f>=a.from&&f>=c.begin)){var p=d?"before":"after";return new st(n.line,f,p)}}var h=function(e,t,i){for(var o=function(e,t){return t?new st(n.line,u(e,1),"before"):new st(n.line,e,"after")};e>=0&&e<r.length;e+=t){var a=r[e],l=t>0==(1!=a.level),s=l?i.begin:u(i.end,-1);if(a.from<=s&&s<a.to||(s=l?a.from:u(a.to,-1),i.begin<=s&&s<i.end))return o(s,l)}},m=h(o+i,i,c);if(m)return m;var g=i>0?c.end:u(c.begin,-1);return null==g||i>0&&g==t.text.length||!(m=h(i>0?0:r.length-1,i,s(g)))?null:m}Ha.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"},Ha.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"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.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"]},Ha.default=b?Ha.macDefault:Ha.pcDefault;var tl={selectAll:ea,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Q)},killLine:function(e){return Ka(e,function(t){if(t.empty()){var n=tt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:st(t.head.line+1,0)}:{from:t.head,to:st(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Ka(e,function(t){return{from:st(t.from().line,0),to:gt(e.doc,st(t.to().line+1,0))}})},delLineLeft:function(e){return Ka(e,function(e){return{from:st(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Ka(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Ka(e,function(t){var n=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(st(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(st(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return nl(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return rl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return il(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},q)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},q)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:n},"div");return i.ch<e.getLine(i.line).search(/\S/)?rl(e,t.head):i},q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),i=e.options.tabSize,r=0;r<n.length;r++){var o=n[r].from(),a=H(e.getLine(o.line),o.ch,i);t.push(J(i-a%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Nr(e,function(){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++)if(t[i].empty()){var r=t[i].head,o=tt(e.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new st(r.line,r.ch-1)),r.ch>0)r=new st(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),st(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=tt(e.doc,r.line-1).text;a&&(r=new st(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),st(r.line-1,a.length-1),r,"+transpose"))}n.push(new so(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){return Nr(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<t.length;i++)e.indentLine(t[i].from().line,null,!0);dr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function nl(e,t){var n=tt(e.doc,t),i=nn(n);return i!=n&&(t=ot(i)),Za(!0,e,i,t,1)}function il(e,t){var n=tt(e.doc,t),i=rn(n);return i!=n&&(t=ot(i)),Za(!0,e,n,t,-1)}function rl(e,t){var n=nl(e,t.line),i=tt(e.doc,n.line),r=ge(i,e.doc.direction);if(!r||0==r[0].level){var o=Math.max(n.ch,i.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return st(n.line,a?0:o,n.sticky)}return n}function ol(e,t,n){if("string"==typeof t&&!(t=tl[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),r=t(e)!=$}finally{e.display.shift=i,e.state.suppressEdits=!1}return r}function al(e,t,n){for(var i=0;i<e.state.keyMaps.length;i++){var r=Ga(t,e.state.keyMaps[i],n,e);if(r)return r}return e.options.extraKeys&&Ga(t,e.options.extraKeys,n,e)||Ga(t,e.options.keyMap,n,e)}var ll=new U;function ul(e,t,n,i){var r=e.state.keySeq;if(r){if($a(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ll.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),sl(e,r+" "+t,n,i))return!0}return sl(e,t,n,i)}function sl(e,t,n,i){var r=al(e,t,i);return"multi"==r&&(e.state.keySeq=t),"handled"==r&&Rn(e,"keyHandled",e,t,n),("handled"==r||"multi"==r)&&(Ee(n),Ji(e)),!!r}function cl(e,t){var n=Ya(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ul(e,"Shift-"+n,t,function(t){return ol(e,t,!0)})||ul(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ol(e,t)}):ul(e,n,t,function(t){return ol(e,t)}))}function dl(e,t,n){return ul(e,"'"+n+"'",t,function(t){return ol(e,t,!0)})}var fl=null;function pl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=M(P(t)),Ae(t,e)))){a&&l<11&&27==e.keyCode&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=16==i||e.shiftKey;var r=cl(t,e);f&&(fl=r?i:null,!r&&88==i&&!Ve&&(b?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),n&&!b&&!r&&46==i&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18==i&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&hl(t)}}function hl(e){var t=e.display.lineDiv;function n(e){(18==e.keyCode||!e.altKey)&&(F(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n))}N(t,"CodeMirror-crosshair"),_e(document,"keyup",n),_e(document,"mouseover",n)}function ml(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ae(this,e)}function gl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Yn(t.display,e)||Ae(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,i=e.charCode;if(f&&n==fl)return fl=null,void Ee(e);if(!f||e.which&&!(e.which<10)||!cl(t,e)){var r=String.fromCharCode(null==i?n:i);"\b"!=r&&(dl(t,e,r)||t.display.input.onKeyPress(e))}}}var vl,_l,yl=400,bl=function(e,t,n){this.time=e,this.pos=t,this.button=n};function Dl(e,t){var n=+new Date;return _l&&_l.compare(n,e,t)?(vl=_l=null,"triple"):vl&&vl.compare(n,e,t)?(_l=new bl(n,e,t),vl=null,"double"):(vl=new bl(n,e,t),_l=null,"single")}function Al(e){var t=this,n=t.display;if(!(Ae(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Yn(n,e))return void(u||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!Tl(t,e)){var i=ji(t,e),r=Te(e),o=i?Dl(i,r):"single";j(t).focus(),1==r&&t.state.selectingText&&t.state.selectingText(e),(!i||!xl(t,r,i,o,e))&&(1==r?i?Cl(t,i,o,e):Be(e)==n.scroller&&Ee(e):2==r?(i&&Vo(t.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(C?t.display.input.onContextMenu(e):er(t)))}}}function xl(e,t,n,i,r){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),ul(e,Qa(o=(1==t?"Left":2==t?"Middle":"Right")+o,r),r,function(t){if("string"==typeof t&&(t=tl[t]),!t)return!1;var i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i=t(e,n)!=$}finally{e.state.suppressEdits=!1}return i})}function wl(e,t,n){var i=e.getOption("configureMouse"),r=i?i(e,t,n):{};if(null==r.unit){var o=D?n.shiftKey&&n.metaKey:n.altKey;r.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==r.extend||e.doc.extend)&&(r.extend=e.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=b?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(b?n.altKey:n.ctrlKey)),r}function Cl(e,t,n,i){a?setTimeout(V(Zi,e),0):e.curOp.focus=M(P(e));var r,o=wl(e,n,i),l=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==n&&(r=l.contains(t))>-1&&(ct((r=l.ranges[r]).from(),t)<0||t.xRel>0)&&(ct(r.to(),t)>0||t.xRel<0)?El(e,i,t,o):Fl(e,i,t,o)}function El(e,t,n,i){var r=e.display,o=!1,s=Ir(e,function(t){u&&(r.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:er(e)),be(r.wrapper.ownerDocument,"mouseup",s),be(r.wrapper.ownerDocument,"mousemove",c),be(r.scroller,"dragstart",d),be(r.scroller,"drop",s),o||(Ee(t),i.addNew||Vo(e.doc,n,null,null,i.extend),u&&!p||a&&9==l?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};u&&(r.scroller.draggable=!0),e.state.draggingText=s,s.copy=!i.moveOnDrag,_e(r.wrapper.ownerDocument,"mouseup",s),_e(r.wrapper.ownerDocument,"mousemove",c),_e(r.scroller,"dragstart",d),_e(r.scroller,"drop",s),e.state.delayingBlurEvent=!0,setTimeout(function(){return r.input.focus()},20),r.scroller.dragDrop&&r.scroller.dragDrop()}function kl(e,t,n){if("char"==n)return new so(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new so(st(t.line,0),gt(e.doc,st(t.line+1,0)));var i=n(e,t);return new so(i.from,i.to)}function Fl(e,t,n,i){a&&er(e);var r=e.display,o=e.doc;Ee(t);var l,u,s=o.sel,c=s.ranges;if(i.addNew&&!i.extend?(u=o.sel.contains(n),l=u>-1?c[u]:new so(n,n)):(l=o.sel.primary(),u=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(l=new so(n,n)),n=ji(e,t,!0,!0),u=-1;else{var d=kl(e,n,i.unit);l=i.extend?jo(l,d.anchor,d.head,i.extend):d}i.addNew?-1==u?(u=c.length,$o(o,co(e,c.concat([l]),u),{scroll:!1,origin:"*mouse"})):c.length>1&&c[u].empty()&&"char"==i.unit&&!i.extend?($o(o,co(e,c.slice(0,u).concat(c.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Ho(o,u,l,Y):(u=0,$o(o,new uo([l],0),Y),s=o.sel);var f=n;function p(t){if(0!=ct(f,t))if(f=t,"rectangle"==i.unit){for(var r=[],a=e.options.tabSize,c=H(tt(o,n.line).text,n.ch,a),d=H(tt(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=tt(o,m).text,_=K(v,p,a);p==h?r.push(new so(st(m,_),st(m,_))):v.length>_&&r.push(new so(st(m,_),st(m,K(v,h,a))))}r.length||r.push(new so(n,n)),$o(o,co(e,s.ranges.slice(0,u).concat(r),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,b=l,D=kl(e,t,i.unit),A=b.anchor;ct(D.anchor,A)>0?(y=D.head,A=ht(b.from(),D.anchor)):(y=D.anchor,A=pt(b.to(),D.head));var x=s.ranges.slice(0);x[u]=Sl(e,new so(gt(o,A),y)),$o(o,co(e,x,u),Y)}}var h=r.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=ji(e,t,!0,"rectangle"==i.unit);if(a)if(0!=ct(a,f)){e.curOp.focus=M(P(e)),p(a);var l=or(r,o);(a.line>=l.to||a.line<l.from)&&setTimeout(Ir(e,function(){m==n&&g(t)}),150)}else{var u=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;u&&setTimeout(Ir(e,function(){m==n&&(r.scroller.scrollTop+=u,g(t))}),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Ee(t),r.input.focus()),be(r.wrapper.ownerDocument,"mousemove",_),be(r.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var _=Ir(e,function(e){0!==e.buttons&&Te(e)?g(e):v(e)}),y=Ir(e,v);e.state.selectingText=y,_e(r.wrapper.ownerDocument,"mousemove",_),_e(r.wrapper.ownerDocument,"mouseup",y)}function Sl(e,t){var n=t.anchor,i=t.head,r=tt(e.doc,n.line);if(0==ct(n,i)&&n.sticky==i.sticky)return t;var o=ge(r);if(!o)return t;var a=he(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var u,s=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==s||s==o.length)return t;if(i.line!=n.line)u=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=he(o,i.ch,i.sticky),d=c-a||(i.ch-n.ch)*(1==l.level?-1:1);u=c==s-1||c==s?d<0:d>0}var f=o[s+(u?-1:0)],p=u==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new so(new st(n.line,h,m),i)}function Bl(e,t,n,i){var r,o;if(t.touches)r=t.touches[0].clientX,o=t.touches[0].clientY;else try{r=t.clientX,o=t.clientY}catch(c){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ee(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!we(e,n))return Fe(t);o-=l.top-a.viewOffset;for(var u=0;u<e.display.gutterSpecs.length;++u){var s=a.gutters.childNodes[u];if(s&&s.getBoundingClientRect().right>=r)return De(e,n,e,at(e.doc,o),e.display.gutterSpecs[u].className,t),Fe(t)}}function Tl(e,t){return Bl(e,t,"gutterClick",!0)}function Ol(e,t){Yn(e.display,t)||Rl(e,t)||Ae(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Rl(e,t){return!!we(e,"gutterContextMenu")&&Bl(e,t,"gutterContextMenu",!1)}function Ml(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gi(e)}bl.prototype.compare=function(e,t,n){return this.time+yl>e&&0==ct(t,this.pos)&&n==this.button};var Nl={toString:function(){return"CodeMirror.Init"}},Il={},Ll={};function Pl(e){var t=e.optionHandlers;function n(n,i,r,o){e.defaults[n]=i,r&&(t[n]=o?function(e,t,n){n!=Nl&&r(e,t,n)}:r)}e.defineOption=n,e.Init=Nl,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,_o(e)},!0),n("indentUnit",2,_o,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){yo(e),gi(e),zi(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 r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(st(i,o))}i++});for(var r=n.length-1;r>=0;r--)ua(e.doc,t,n[r],st(n[r].line,n[r].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!=Nl&&e.refresh()}),n("specialCharPlaceholder",bn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",_?"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",!A),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Ml(e),to(e)},!0),n("keyMap","default",function(e,t,n){var i=qa(t),r=n!=Nl&&qa(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Vl,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=Zr(t,e.options.lineNumbers),to(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Ii(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Ar(e)},!0),n("scrollbarStyle","native",function(e){Cr(e),Ar(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=Zr(e.options.gutters,t),to(e)},!0),n("firstLineNumber",1,to,!0),n("lineNumberFormatter",function(e){return e},to,!0),n("showCursorWhenSelecting",!1,Qi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(nr(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,jl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Qi,!0),n("singleCursorHeightPerLine",!0,Qi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,yo,!0),n("addModeClass",!1,yo,!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,yo,!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)}function jl(e,t,n){if(!t!=!(n&&n!=Nl)){var i=e.display.dragFunctions,r=t?_e:be;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Vl(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(F(e.display.wrapper,"CodeMirror-wrap"),fn(e)),Pi(e),zi(e),gi(e),setTimeout(function(){return Ar(e)},100)}function zl(e,t){var n=this;if(!(this instanceof zl))return new zl(e,t);this.options=t=t?z(t):{},z(Il,t,!1);var i=t.value;"string"==typeof i?i=new ka(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var r=new zl.inputStyles[t.inputStyle](this),o=this.display=new no(e,i,r,t);for(var s in o.wrapper.CodeMirror=this,Ml(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Cr(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 U,keySeq:null,specialChars:null},t.autofocus&&!_&&o.input.focus(),a&&l<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Hl(this),Na(),kr(this),this.curOp.forceUpdate=!0,xo(this,i),t.autofocus&&!_||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&tr(n)},20):nr(this),Ll)Ll.hasOwnProperty(s)&&Ll[s](this,t[s],Nl);Jr(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Ul.length;++c)Ul[c](this);Fr(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Hl(e){var t=e.display;_e(t.scroller,"mousedown",Ir(e,Al)),_e(t.scroller,"dblclick",a&&l<11?Ir(e,function(t){if(!Ae(e,t)){var n=ji(e,t);if(n&&!Tl(e,t)&&!Yn(e.display,t)){Ee(t);var i=e.findWordAt(n);Vo(e.doc,i.anchor,i.head)}}}):function(t){return Ae(e,t)||Ee(t)}),_e(t.scroller,"contextmenu",function(t){return Ol(e,t)}),_e(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Ol(e,n)});var n,i={end:0};function r(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(i=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function u(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}_e(t.scroller,"touchstart",function(r){if(!Ae(e,r)&&!o(r)&&!Tl(e,r)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}}),_e(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),_e(t.scroller,"touchend",function(n){var i=t.activeTouch;if(i&&!Yn(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!i.prev||u(i,i.prev)?new so(a,a):!i.prev.prev||u(i,i.prev.prev)?e.findWordAt(a):new so(st(a.line,0),gt(e.doc,st(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ee(n)}r()}),_e(t.scroller,"touchcancel",r),_e(t.scroller,"scroll",function(){t.scroller.clientHeight&&(gr(e,t.scroller.scrollTop),_r(e,t.scroller.scrollLeft,!0),De(e,"scroll",e))}),_e(t.scroller,"mousewheel",function(t){return lo(e,t)}),_e(t.scroller,"DOMMouseScroll",function(t){return lo(e,t)}),_e(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){Ae(e,t)||Se(t)},over:function(t){Ae(e,t)||(Ta(e,t),Se(t))},start:function(t){return Ba(e,t)},drop:Ir(e,Sa),leave:function(t){Ae(e,t)||Oa(e)}};var s=t.input.getField();_e(s,"keyup",function(t){return ml.call(e,t)}),_e(s,"keydown",Ir(e,pl)),_e(s,"keypress",Ir(e,gl)),_e(s,"focus",function(t){return tr(e,t)}),_e(s,"blur",function(t){return nr(e,t)})}zl.defaults=Il,zl.optionHandlers=Ll;var Ul=[];function Wl(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=xt(e,t).state:n="prev");var a=e.options.tabSize,l=tt(o,t),u=H(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var s,c=l.text.match(/^\s*/)[0];if(i||/\S/.test(l.text)){if("smart"==n&&((s=o.mode.indent(r,l.text.slice(c.length),l.text))==$||s>150)){if(!i)return;n="prev"}}else s=0,n="not";"prev"==n?s=t>o.first?H(tt(o,t-1).text,null,a):0:"add"==n?s=u+e.options.indentUnit:"subtract"==n?s=u-e.options.indentUnit:"number"==typeof n&&(s=u+n),s=Math.max(0,s);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(s/a);p;--p)f+=a,d+="\t";if(f<s&&(d+=J(s-f)),d!=c)return ua(o,d,st(t,0),st(t,c.length),"+input"),l.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=st(t,c.length);Ho(o,h,new so(g,g));break}}}zl.defineInitHook=function(e){return Ul.push(e)};var Gl=null;function $l(e){Gl=e}function Ql(e,t,n,i,r){var o=e.doc;e.display.shift=!1,i||(i=o.sel);var a=+new Date-200,l="paste"==r||e.state.pasteIncoming>a,u=Pe(t),s=null;if(l&&i.ranges.length>1)if(Gl&&Gl.text.join("\n")==t){if(i.ranges.length%Gl.text.length==0){s=[];for(var c=0;c<Gl.text.length;c++)s.push(o.splitLines(Gl.text[c]))}}else u.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(s=ee(u,function(e){return[e]}));for(var d=e.curOp.updateInput,f=i.ranges.length-1;f>=0;f--){var p=i.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=st(h.line,h.ch-n):e.state.overwrite&&!l?m=st(m.line,Math.min(tt(o,m.line).text.length,m.ch+Z(u).length)):l&&Gl&&Gl.lineWise&&Gl.text.join("\n")==u.join("\n")&&(h=m=st(h.line,0)));var g={from:h,to:m,text:s?s[f%s.length]:u,origin:r||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};na(e.doc,g),Rn(e,"inputRead",e,g)}t&&!l&&ql(e,t),dr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Yl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Nr(t,function(){return Ql(t,n,0,null,"paste")}),!0}function ql(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Wl(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(tt(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Wl(e,r.head.line,"smart"));a&&Rn(e,"electricInput",e,r.head.line)}}}function Kl(e){for(var t=[],n=[],i=0;i<e.doc.sel.ranges.length;i++){var r=e.doc.sel.ranges[i].head.line,o={anchor:st(r,0),head:st(r+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Xl(e,t,n,i){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",i?"":"off"),e.setAttribute("spellcheck",!!t)}function Jl(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Xl(e),t}function Zl(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){j(this).focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,r=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&Ir(this,t[e])(this,n,r),De(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"](qa(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Lr(function(t,n){var i=t.token?t:e.getMode(this.options,t);if(i.startState)throw new Error("Overlays may not be stateful.");te(this.state.overlays,{mode:i,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,zi(this)}),removeOverlay:Lr(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var i=t[n].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return t.splice(n,1),this.state.modeGen++,void zi(this)}}),indentLine:Lr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),lt(this.doc,e)&&Wl(this,e,t,n)}),indentSelection:Lr(function(e){for(var t=this.doc.sel.ranges,n=-1,i=0;i<t.length;i++){var r=t[i];if(r.empty())r.head.line>n&&(Wl(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&dr(this));else{var o=r.from(),a=r.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=l;u<n;++u)Wl(this,u,e);var s=this.doc.sel.ranges;0==o.ch&&t.length==s.length&&s[i].from().ch>0&&Ho(this.doc,i,new so(o,s[i].to()),Q)}}}),getTokenAt:function(e,t){return Ft(this,e,t)},getLineTokens:function(e,t){return Ft(this,st(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,n=At(this,tt(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}i=a+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var i=[];if(!n.hasOwnProperty(t))return i;var r=n[t],o=this.getModeAt(e);if("string"==typeof o[t])r[o[t]]&&i.push(r[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var l=r[o[t][a]];l&&i.push(l)}else o.helperType&&r[o.helperType]?i.push(r[o.helperType]):r[o.name]&&i.push(r[o.name]);for(var u=0;u<r._global.length;u++){var s=r._global[u];s.pred(o,this)&&-1==W(i,s.val)&&i.push(s.val)}return i},getStateAfter:function(e,t){var n=this.doc;return xt(this,(e=mt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return xi(this,null==e?n.head:"object"==y(e)?gt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Ai(this,gt(this.doc,e),t||"page")},coordsChar:function(e,t){return Ei(this,(e=Di(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Di(this,{top:e,left:0},t||"page").top,at(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var i,r=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,r=!0),i=tt(this.doc,e)}else i=e;return bi(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-cn(i):0)},defaultTextHeight:function(){return Ri(this.display)},defaultCharWidth:function(){return Mi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display,a=(e=xi(this,gt(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var u=Math.max(o.wrapper.clientHeight,this.doc.height),s=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),l+t.offsetWidth>s&&(l=s-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?l=0:"middle"==r&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&ur(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Lr(pl),triggerOnKeyPress:Lr(gl),triggerOnKeyUp:ml,triggerOnMouseDown:Lr(Al),execCommand:function(e){if(tl.hasOwnProperty(e))return tl[e].call(null,this)},triggerElectric:Lr(function(e){ql(this,e)}),findPosH:function(e,t,n,i){var r=1;t<0&&(r=-1,t=-t);for(var o=gt(this.doc,e),a=0;a<t&&!(o=eu(this.doc,o,r,n,i)).hitSide;++a);return o},moveH:Lr(function(e,t){var n=this;this.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?eu(n.doc,i.head,e,t,n.options.rtlMoveVisually):e<0?i.from():i.to()},q)}),deleteH:Lr(function(e,t){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):Ka(this,function(n){var r=eu(i,n.head,e,t,!1);return e<0?{from:r,to:n.head}:{from:n.head,to:r}})}),findPosV:function(e,t,n,i){var r=1,o=i;t<0&&(r=-1,t=-t);for(var a=gt(this.doc,e),l=0;l<t;++l){var u=xi(this,a,"div");if(null==o?o=u.left:u.left=o,(a=tu(this,u,r,n)).hitSide)break}return a},moveV:Lr(function(e,t){var n=this,i=this.doc,r=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var l=xi(n,a.head,"div");null!=a.goalColumn&&(l.left=a.goalColumn),r.push(l.left);var u=tu(n,l,e,t);return"page"==t&&a==i.sel.primary()&&cr(n,Ai(n,u,"div").top-l.top),u},q),r.length)for(var a=0;a<i.sel.ranges.length;a++)i.sel.ranges[a].goalColumn=r[a]}),findWordAt:function(e){var t=tt(this.doc,e.line).text,n=e.ch,i=e.ch;if(t){var r=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=t.length||!n?++i:--n;for(var o=t.charAt(n),a=ae(o,r)?function(e){return ae(e,r)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ae(e)};n>0&&a(t.charAt(n-1));)--n;for(;i<t.length&&a(t.charAt(i));)++i}return new so(st(e.line,n),st(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):F(this.display.cursorDiv,"CodeMirror-overwrite"),De(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==M(P(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Lr(function(e,t){fr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Jn(this)-this.display.barHeight,width:e.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:ei(this),clientWidth:Zn(this)}},scrollIntoView:Lr(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:st(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?pr(this,e):mr(this,e.from,e.to,e.margin)}),setSize:Lr(function(e,t){var n=this,i=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=i(e)),null!=t&&(this.display.wrapper.style.height=i(t)),this.options.lineWrapping&&mi(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Hi(n,r,"widget");break}++r}),this.curOp.forceUpdate=!0,De(this,"refresh",this)}),operation:function(e){return Nr(this,e)},startOperation:function(){return kr(this)},endOperation:function(){return Fr(this)},refresh:Lr(function(){var e=this.display.cachedTextHeight;zi(this),this.curOp.forceUpdate=!0,gi(this),fr(this,this.doc.scrollLeft,this.doc.scrollTop),qr(this.display),(null==e||Math.abs(e-Ri(this.display))>.5||this.options.lineWrapping)&&Pi(this),De(this,"refresh",this)}),swapDoc:Lr(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xo(this,e),gi(this),this.display.input.reset(),fr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Rn(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}},Ce(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}function eu(e,t,n,i,r){var o=t,a=n,l=tt(e,t.line),u=r&&"rtl"==e.direction?-n:n;function s(){var n=t.line+u;return!(n<e.first||n>=e.first+e.size)&&(t=new st(n,t.ch,t.sticky),l=tt(e,n))}function c(o){var a;if("codepoint"==i){var c=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new st(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(d?2:1))),-n)}}else a=r?el(e.cm,l,t,n):Ja(l,t,n);if(null==a){if(o||!s())return!1;t=Za(r,e.cm,l,t.line,u)}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 d=null,f="group"==i,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var m=l.text.charAt(t.ch)||"\n",g=ae(m,p)?"w":f&&"\n"==m?"n":!f||/\s/.test(m)?null:"p";if(f&&!h&&!g&&(g="s"),d&&d!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(d=g),n>0&&!c(!h))break}var v=Jo(e,t,o,a,!0);return dt(o,v)&&(v.hitSide=!0),v}function tu(e,t,n,i){var r,o,a=e.doc,l=t.left;if("page"==i){var u=Math.min(e.display.wrapper.clientHeight,j(e).innerHeight||a(e).documentElement.clientHeight),s=Math.max(u-.5*Ri(e.display),3);r=(n>0?t.bottom:t.top)+n*s}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;(o=Ei(e,l,r)).outside;){if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var nu=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function iu(e,t){var n=oi(e,t.line);if(!n||n.hidden)return null;var i=tt(e.doc,t.line),r=ni(n,i,t.line),o=ge(i,e.doc.direction),a="left";o&&(a=he(o,t.ch)%2?"right":"left");var l=ci(r.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function ru(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ou(e,t){return t&&(e.bad=!0),e}function au(e,t,n,i,r){var o="",a=!1,l=e.doc.lineSeparator(),u=!1;function s(e){return function(t){return t.id==e}}function c(){a&&(o+=l,u&&(o+=l),a=u=!1)}function d(e){e&&(c(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(st(i,0),st(r+1,0),s(+p));return void(h.length&&(o=h[0].find(0))&&d(nt(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;f(t),t!=n;)t=t.nextSibling,u=!1;return o}function lu(e,t,n){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[n]))return ou(e.clipPos(st(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 r=0;r<e.display.view.length;r++){var o=e.display.view[r];if(o.node==i)return uu(o,t,n)}}function uu(e,t,n){var i=e.text.firstChild,r=!1;if(!t||!R(i,t))return ou(st(ot(e.line),0),!0);if(t==i&&(r=!0,t=i.childNodes[n],n=0,!t)){var o=e.rest?Z(e.rest):e.line;return ou(st(ot(o),o.text.length),r)}var a=3==t.nodeType?t:null,l=t;for(!a&&1==t.childNodes.length&&3==t.firstChild.nodeType&&(a=t.firstChild,n&&(n=a.nodeValue.length));l.parentNode!=i;)l=l.parentNode;var u=e.measure,s=u.maps;function c(t,n,i){for(var r=-1;r<(s?s.length:0);r++)for(var o=r<0?u.map:s[r],a=0;a<o.length;a+=3){var l=o[a+2];if(l==t||l==n){var c=ot(r<0?e.line:e.rest[r]),d=o[a]+i;return(i<0||l!=t)&&(d=o[a+(i?1:0)]),st(c,d)}}}var d=c(a,l,n);if(d)return ou(d,r);for(var f=l.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=c(f,f.firstChild,0))return ou(st(d.line,d.ch-p),r);p+=f.textContent.length}for(var h=l.previousSibling,m=n;h;h=h.previousSibling){if(d=c(h,h.firstChild,-1))return ou(st(d.line,d.ch+m),r);m+=h.textContent.length}}nu.prototype.init=function(e){var t=this,n=this,i=n.cm,r=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!Ae(i,e)){if(i.somethingSelected())$l({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Kl(i);$l({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Q),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=Gl.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var l=Jl(),u=l.firstChild;i.display.lineSpace.insertBefore(l,i.display.lineSpace.firstChild),u.value=Gl.text.join("\n");var s=M(r.ownerDocument);L(u),setTimeout(function(){i.display.lineSpace.removeChild(l),s.focus(),s==r&&n.showPrimarySelection()},50)}}r.contentEditable=!0,Xl(r,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),_e(r,"paste",function(e){!o(e)||Ae(i,e)||Yl(e,i)||l<=11&&setTimeout(Ir(i,function(){return t.updateFromDOM()}),20)}),_e(r,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),_e(r,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),_e(r,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),_e(r,"touchstart",function(){return n.forceCompositionEnd()}),_e(r,"input",function(){t.composing||t.readFromDOMSoon()}),_e(r,"copy",a),_e(r,"cut",a)},nu.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},nu.prototype.prepareSelection=function(){var e=Yi(this.cm,!1);return e.focus=M(this.div.ownerDocument)==this.div,e},nu.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},nu.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nu.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),o=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=lu(t,e.anchorNode,e.anchorOffset),l=lu(t,e.focusNode,e.focusOffset);if(!a||a.bad||!l||l.bad||0!=ct(ht(a,l),r)||0!=ct(pt(a,l),o)){var u=t.display.view,s=r.line>=t.display.viewFrom&&iu(t,r)||{node:u[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&iu(t,o);if(!c){var d=u[u.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!s||!c)return void e.removeAllRanges();var p,h=e.rangeCount&&e.getRangeAt(0);try{p=k(s.node,s.offset,c.offset,c.node)}catch(m){}p&&(!n&&t.state.focused?(e.collapse(s.node,s.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}}},nu.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},nu.prototype.showMultipleSelections=function(e){B(this.cm.display.cursorDiv,e.cursors),B(this.cm.display.selectionDiv,e.selection)},nu.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},nu.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},nu.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&((!this.selectionInEditor()||M(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nu.prototype.blur=function(){this.div.blur()},nu.prototype.getField=function(){return this.div},nu.prototype.supportsTouch=function(){return!0},nu.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Nr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,n)},nu.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},nu.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&ru(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=lu(t,e.anchorNode,e.anchorOffset),i=lu(t,e.focusNode,e.focusOffset);n&&i&&Nr(t,function(){$o(t.doc,fo(n,i),Q),(n.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},nu.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,i=this.cm,r=i.display,o=i.doc.sel.primary(),a=o.from(),l=o.to();if(0==a.ch&&a.line>i.firstLine()&&(a=st(a.line-1,tt(i.doc,a.line-1).length)),l.ch==tt(i.doc,l.line).text.length&&l.line<i.lastLine()&&(l=st(l.line+1,0)),a.line<r.viewFrom||l.line>r.viewTo-1)return!1;a.line==r.viewFrom||0==(e=Vi(i,a.line))?(t=ot(r.view[0].line),n=r.view[0].node):(t=ot(r.view[e].line),n=r.view[e-1].node.nextSibling);var u,s,c=Vi(i,l.line);if(c==r.view.length-1?(u=r.viewTo-1,s=r.lineDiv.lastChild):(u=ot(r.view[c+1].line)-1,s=r.view[c+1].node.previousSibling),!n)return!1;for(var d=i.doc.splitLines(au(i,n,s,t,u)),f=nt(i.doc,st(t,0),st(u,tt(i.doc,u).text.length));d.length>1&&f.length>1;)if(Z(d)==Z(f))d.pop(),f.pop(),u--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var _=Z(d),y=Z(f),b=Math.min(_.length-(1==d.length?p:0),y.length-(1==f.length?p:0));h<b&&_.charCodeAt(_.length-h-1)==y.charCodeAt(y.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&_.charCodeAt(_.length-h-1)==y.charCodeAt(y.length-h-1);)p--,h++;d[d.length-1]=_.slice(0,_.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var D=st(t,p),A=st(u,f.length?Z(f).length-h:0);return d.length>1||d[0]||ct(D,A)?(ua(i.doc,d,D,A,"+input"),!0):void 0},nu.prototype.ensurePolled=function(){this.forceCompositionEnd()},nu.prototype.reset=function(){this.forceCompositionEnd()},nu.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nu.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))},nu.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Nr(this.cm,function(){return zi(e.cm)})},nu.prototype.setUneditable=function(e){e.contentEditable="false"},nu.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ir(this.cm,Ql)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},nu.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},nu.prototype.onContextMenu=function(){},nu.prototype.resetPosition=function(){},nu.prototype.needsContentAttribute=!0;var su=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null};function cu(e,t){if((t=t?z(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(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=l.getValue()}var r;if(e.form&&(_e(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(u){}}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&&(be(e.form,"submit",i),!t.leaveSubmitMethodAlone&&"function"==typeof e.form.submit&&(e.form.submit=r))}},e.style.display="none";var l=zl(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return l}function du(e){e.off=be,e.on=_e,e.wheelEventPixels=ao,e.Doc=ka,e.splitLines=Pe,e.countColumn=H,e.findColumn=K,e.isWordChar=oe,e.Pass=$,e.signal=De,e.Line=pn,e.changeEnd=po,e.scrollbarModel=wr,e.Pos=st,e.cmpPos=ct,e.modes=Ue,e.mimeModes=We,e.resolveMode=Qe,e.getMode=Ye,e.modeExtensions=qe,e.extendMode=Ke,e.copyState=Xe,e.startState=Ze,e.innerMode=Je,e.commands=tl,e.keyMap=Ha,e.keyName=Ya,e.isModifierKey=$a,e.lookupKey=Ga,e.normalizeKeyMap=Wa,e.StringStream=et,e.SharedTextMarker=Da,e.TextMarker=ya,e.LineWidget=ma,e.e_preventDefault=Ee,e.e_stopPropagation=ke,e.e_stop=Se,e.addClass=N,e.contains=R,e.rmClass=F,e.keyNames=Pa}su.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var r=this.textarea;function o(e){if(!Ae(i,e)){if(i.somethingSelected())$l({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Kl(i);$l({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Q):(n.prevInput="",r.value=t.text.join("\n"),L(r))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),_e(r,"input",function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),_e(r,"paste",function(e){Ae(i,e)||Yl(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),_e(r,"cut",o),_e(r,"copy",o),_e(e.scroller,"paste",function(t){if(!Yn(e,t)&&!Ae(i,t)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,r.dispatchEvent(o)}}),_e(e.lineSpace,"selectstart",function(t){Yn(e,t)||Ee(t)}),_e(r,"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"})}}),_e(r,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},su.prototype.createField=function(e){this.wrapper=Jl(),this.textarea=this.wrapper.firstChild},su.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},su.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Yi(e);if(e.options.moveInputWithCursor){var r=xi(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},su.prototype.showSelection=function(e){var t=this.cm.display;B(t.cursorDiv,e.cursors),B(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},su.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))}},su.prototype.getField=function(){return this.textarea},su.prototype.supportsTouch=function(){return!1},su.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!_||M(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},su.prototype.blur=function(){this.textarea.blur()},su.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},su.prototype.receivedFocus=function(){this.slowPoll()},su.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},su.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},su.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===r||b&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203==o&&!i&&(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,s=Math.min(i.length,r.length);u<s&&i.charCodeAt(u)==r.charCodeAt(u);)++u;return Nr(t,function(){Ql(t,r.slice(u),i.length-u,null,e.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},su.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},su.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},su.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ji(n,e),s=i.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Ir(n,$o)(n.doc,fo(o),Q);var c,d=r.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.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);",u&&(c=r.ownerDocument.defaultView.scrollY),i.input.focus(),u&&r.ownerDocument.defaultView.scrollTo(null,c),i.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&l>=9&&g(),C){Se(e);var m=function(){be(window,"mouseup",m),setTimeout(v,20)};_e(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=r.selectionStart){var e=n.somethingSelected(),o="​"+(e?r.value:"");r.value="⇚",r.value=o,t.prevInput=e?"":"​",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,r.style.cssText=d,a&&l<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=s),null!=r.selectionStart)){(!a||a&&l<9)&&g();var e=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==t.prevInput?Ir(n,ea)(n):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},su.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},su.prototype.setUneditable=function(){},su.prototype.needsContentAttribute=!1,Pl(zl),Zl(zl);var fu="iter insert remove copy getEditor constructor".split(" ");for(var pu in ka.prototype)ka.prototype.hasOwnProperty(pu)&&W(fu,pu)<0&&(zl.prototype[pu]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[pu]));return Ce(ka),zl.inputStyles={textarea:su,contenteditable:nu},zl.defineMode=function(e){!zl.defaults.mode&&"null"!=e&&(zl.defaults.mode=e),Ge.apply(this,arguments)},zl.defineMIME=$e,zl.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),zl.defineMIME("text/plain","null"),zl.defineExtension=function(e,t){zl.prototype[e]=t},zl.defineDocExtension=function(e,t){ka.prototype[e]=t},zl.fromTextArea=cu,du(zl),zl.version="6.65.7",zl}()}(cu)),cu.exports}var fu,pu=du();(fu=du()).defineMode("javascript",function(e,t){var n,i,r=e.indentUnit,o=t.statementIndent,a=t.jsonld,l=t.json||a,u=!1!==t.trackScope,s=t.typescript,c=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),i=e("keyword c"),r=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:i,void:i,throw:i,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:i,export:e("export"),import:e("import"),extends:i,await:i}}(),f=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(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}}function m(e,t,r){return n=e,i=r,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=v(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=_,_(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):rt(e,t,1)?(h(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=b,b(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==n&&e.eatWhile(c))return m("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(f.test(n))return(">"!=n||!t.lexical||">"!=t.lexical.type)&&(e.eat("=")?("!"==n||"="==n)&&e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?m("."):m("operator","operator",e.current());if(c.test(n)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(i)){var r=d[i];return m(r.type,r.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e){return function(t,n){var i,r=!1;if(a&&"@"==t.peek()&&t.match(p))return n.tokenize=g,m("jsonld-keyword","meta");for(;null!=(i=t.next())&&(i!=e||r);)r=!r&&"\\"==i;return r||(n.tokenize=g),m("string","string")}}function _(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=g;break}i="*"==n}return m("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 m("quasi","string-2",e.current())}var D="([{}])";function A(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(s){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));i&&(n=i.index)}for(var r=0,o=!1,a=n-1;a>=0;--a){var l=e.string.charAt(a),u=D.indexOf(l);if(u>=0&&u<3){if(!r){++a;break}if(0==--r){"("==l&&(o=!0);break}}else if(u>=3&&u<6)++r;else if(c.test(l))o=!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(o&&!r){++a;break}}o&&!r&&(t.fatArrowAt=a)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(e,t,n,i,r,o){this.indented=e,this.column=t,this.type=n,this.prev=r,this.info=o,null!=i&&(this.align=i)}function C(e,t){if(!u)return!1;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}function E(e,t,n,i,r){var o=e.cc;for(k.state=e,k.stream=r,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?G:U)(n,i)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&C(e,i)?"variable-2":t}}var k={state:null,marked:null,cc:null};function F(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function S(){return F.apply(null,arguments),!0}function B(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function T(e){var n=k.state;if(k.marked="def",u){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var i=O(e,n.context);if(null!=i)return void(n.context=i)}else if(!B(e,n.localVars))return void(n.localVars=new N(e,n.localVars));t.globalVars&&!B(e,n.globalVars)&&(n.globalVars=new N(e,n.globalVars))}}function O(e,t){if(t){if(t.block){var n=O(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return B(e,t.vars)?t:new M(t.prev,new N(e,t.vars),!1)}return null}function R(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function N(e,t){this.name=e,this.next=t}var I=new N("this",new N("arguments",null));function L(){k.state.context=new M(k.state.context,k.state.localVars,!1),k.state.localVars=I}function P(){k.state.context=new M(k.state.context,k.state.localVars,!0),k.state.localVars=null}function j(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function V(e,t){var n=function(){var n=k.state,i=n.indented;if("stat"==n.lexical.type)i=n.lexical.indented;else for(var r=n.lexical;r&&")"==r.type&&r.align;r=r.prev)i=r.indented;n.lexical=new w(i,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function H(e){function t(n){return n==e?S():";"==e||"}"==n||")"==n||"]"==n?F():S(t)}return t}function U(e,t){return"var"==e?S(V("vardef",t),Fe,H(";"),z):"keyword a"==e?S(V("form"),Q,U,z):"keyword b"==e?S(V("form"),U,z):"keyword d"==e?k.stream.match(/^\s*$/,!1)?S():S(V("stat"),q,H(";"),z):"debugger"==e?S(H(";")):"{"==e?S(V("}"),P,fe,z,j):";"==e?S():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==z&&k.state.cc.pop()(),S(V("form"),Q,U,z,Me)):"function"==e?S(Pe):"for"==e?S(V("form"),P,Ne,U,j,z):"class"==e||s&&"interface"==t?(k.marked="keyword",S(V("form","class"==e?e:t),Ue,z)):"variable"==e?s&&"declare"==t?(k.marked="keyword",S(U)):s&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?S(tt):"type"==t?S(Ve,H("operator"),ve,H(";")):S(V("form"),Se,H("{"),V("}"),fe,z,z)):s&&"namespace"==t?(k.marked="keyword",S(V("form"),G,U,z)):s&&"abstract"==t?(k.marked="keyword",S(U)):S(V("stat"),oe):"switch"==e?S(V("form"),Q,H("{"),V("}","switch"),P,fe,z,z,j):"case"==e?S(G,H(":")):"default"==e?S(H(":")):"catch"==e?S(V("form"),L,W,U,z,j):"export"==e?S(V("stat"),Qe,z):"import"==e?S(V("stat"),qe,z):"async"==e?S(U):"@"==t?S(G,U):F(V("stat"),G,H(";"),z)}function W(e){if("("==e)return S(ze,H(")"))}function G(e,t){return Y(e,t,!1)}function $(e,t){return Y(e,t,!0)}function Q(e){return"("!=e?F():S(V(")"),q,H(")"),z)}function Y(e,t,n){if(k.state.fatArrowAt==k.stream.start){var i=n?te:ee;if("("==e)return S(L,V(")"),ce(ze,")"),z,H("=>"),i,j);if("variable"==e)return F(L,Se,H("=>"),i,j)}var r=n?X:K;return x.hasOwnProperty(e)?S(r):"function"==e?S(Pe,r):"class"==e||s&&"interface"==t?(k.marked="keyword",S(V("form"),He,z)):"keyword c"==e||"async"==e?S(n?$:G):"("==e?S(V(")"),q,H(")"),z,r):"operator"==e||"spread"==e?S(n?$:G):"["==e?S(V("]"),et,z,r):"{"==e?de(le,"}",null,r):"quasi"==e?F(J,r):"new"==e?S(ne(n)):S()}function q(e){return e.match(/[;\}\)\],]/)?F():F(G)}function K(e,t){return","==e?S(q):X(e,t,!1)}function X(e,t,n){var i=0==n?K:X,r=0==n?G:$;if("=>"==e)return S(L,n?te:ee,j);if("operator"==e)return/\+\+|--/.test(t)||s&&"!"==t?S(i):s&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(V(">"),ce(ve,">"),z,i):"?"==t?S(G,H(":"),r):S(r);if("quasi"==e)return F(J,i);if(";"!=e){if("("==e)return de($,")","call",i);if("."==e)return S(ae,i);if("["==e)return S(V("]"),q,H("]"),z,i);if(s&&"as"==t)return k.marked="keyword",S(ve,i);if("regexp"==e)return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),S(r)}}function J(e,t){return"quasi"!=e?F():"${"!=t.slice(t.length-2)?S(J):S(q,Z)}function Z(e){if("}"==e)return k.marked="string-2",k.state.tokenize=b,S(J)}function ee(e){return A(k.stream,k.state),F("{"==e?U:G)}function te(e){return A(k.stream,k.state),F("{"==e?U:$)}function ne(e){return function(t){return"."==t?S(e?re:ie):"variable"==t&&s?S(Ce,e?X:K):F(e?$:G)}}function ie(e,t){if("target"==t)return k.marked="keyword",S(K)}function re(e,t){if("target"==t)return k.marked="keyword",S(X)}function oe(e){return":"==e?S(z,U):F(K,H(";"),z)}function ae(e){if("variable"==e)return k.marked="property",S()}function le(e,t){return"async"==e?(k.marked="property",S(le)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?S(ue):(s&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),S(se))):"number"==e||"string"==e?(k.marked=a?"property":k.style+" property",S(se)):"jsonld-keyword"==e?S(se):s&&R(t)?(k.marked="keyword",S(le)):"["==e?S(G,pe,H("]"),se):"spread"==e?S($,se):"*"==t?(k.marked="keyword",S(le)):":"==e?F(se):void 0;var n}function ue(e){return"variable"!=e?F(se):(k.marked="property",S(Pe))}function se(e){return":"==e?S($):"("==e?F(Pe):void 0}function ce(e,t,n){function i(r,o){if(n?n.indexOf(r)>-1:","==r){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),S(function(n,i){return n==t||i==t?F():F(e)},i)}return r==t||o==t?S():n&&n.indexOf(";")>-1?F(e):S(H(t))}return function(n,r){return n==t||r==t?S():F(e,i)}}function de(e,t,n){for(var i=3;i<arguments.length;i++)k.cc.push(arguments[i]);return S(V(t,n),ce(e,t),z)}function fe(e){return"}"==e?S():F(U,fe)}function pe(e,t){if(s){if(":"==e)return S(ve);if("?"==t)return S(pe)}}function he(e,t){if(s&&(":"==e||"in"==t))return S(ve)}function me(e){if(s&&":"==e)return k.stream.match(/^\s*\w+\s+is\b/,!1)?S(G,ge,ve):S(ve)}function ge(e,t){if("is"==t)return k.marked="keyword",S()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(k.marked="keyword",S("typeof"==t?$:ve)):"variable"==e||"void"==t?(k.marked="type",S(we)):"|"==t||"&"==t?S(ve):"string"==e||"number"==e||"atom"==e?S(we):"["==e?S(V("]"),ce(ve,"]",","),z,we):"{"==e?S(V("}"),ye,z,we):"("==e?S(ce(xe,")"),_e,we):"<"==e?S(ce(ve,">"),ve):"quasi"==e?F(De,we):void 0}function _e(e){if("=>"==e)return S(ve)}function ye(e){return e.match(/[\}\)\]]/)?S():","==e||";"==e?S(ye):F(be,ye)}function be(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",S(be)):"?"==t||"number"==e||"string"==e?S(be):":"==e?S(ve):"["==e?S(H("variable"),he,H("]"),be):"("==e?F(je,be):e.match(/[;\}\)\],]/)?void 0:S()}function De(e,t){return"quasi"!=e?F():"${"!=t.slice(t.length-2)?S(De):S(ve,Ae)}function Ae(e){if("}"==e)return k.marked="string-2",k.state.tokenize=b,S(De)}function xe(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?S(xe):":"==e?S(ve):"spread"==e?S(xe):F(ve)}function we(e,t){return"<"==t?S(V(">"),ce(ve,">"),z,we):"|"==t||"."==e||"&"==t?S(ve):"["==e?S(ve,H("]"),we):"extends"==t||"implements"==t?(k.marked="keyword",S(ve)):"?"==t?S(ve,H(":"),ve):void 0}function Ce(e,t){if("<"==t)return S(V(">"),ce(ve,">"),z,we)}function Ee(){return F(ve,ke)}function ke(e,t){if("="==t)return S(ve)}function Fe(e,t){return"enum"==t?(k.marked="keyword",S(tt)):F(Se,pe,Oe,Re)}function Se(e,t){return s&&R(t)?(k.marked="keyword",S(Se)):"variable"==e?(T(t),S()):"spread"==e?S(Se):"["==e?de(Te,"]"):"{"==e?de(Be,"}"):void 0}function Be(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?S(Se):"}"==e?F():"["==e?S(G,H("]"),H(":"),Be):S(H(":"),Se,Oe)):(T(t),S(Oe))}function Te(){return F(Se,Oe)}function Oe(e,t){if("="==t)return S($)}function Re(e){if(","==e)return S(Fe)}function Me(e,t){if("keyword b"==e&&"else"==t)return S(V("form","else"),U,z)}function Ne(e,t){return"await"==t?S(Ne):"("==e?S(V(")"),Ie,z):void 0}function Ie(e){return"var"==e?S(Fe,Le):"variable"==e?S(Le):F(Le)}function Le(e,t){return")"==e?S():";"==e?S(Le):"in"==t||"of"==t?(k.marked="keyword",S(G,Le)):F(G,Le)}function Pe(e,t){return"*"==t?(k.marked="keyword",S(Pe)):"variable"==e?(T(t),S(Pe)):"("==e?S(L,V(")"),ce(ze,")"),z,me,U,j):s&&"<"==t?S(V(">"),ce(Ee,">"),z,Pe):void 0}function je(e,t){return"*"==t?(k.marked="keyword",S(je)):"variable"==e?(T(t),S(je)):"("==e?S(L,V(")"),ce(ze,")"),z,me,j):s&&"<"==t?S(V(">"),ce(Ee,">"),z,je):void 0}function Ve(e,t){return"keyword"==e||"variable"==e?(k.marked="type",S(Ve)):"<"==t?S(V(">"),ce(Ee,">"),z):void 0}function ze(e,t){return"@"==t&&S(G,ze),"spread"==e?S(ze):s&&R(t)?(k.marked="keyword",S(ze)):s&&"this"==e?S(pe,Oe):F(Se,pe,Oe)}function He(e,t){return"variable"==e?Ue(e,t):We(e,t)}function Ue(e,t){if("variable"==e)return T(t),S(We)}function We(e,t){return"<"==t?S(V(">"),ce(Ee,">"),z,We):"extends"==t||"implements"==t||s&&","==e?("implements"==t&&(k.marked="keyword"),S(s?ve:G,We)):"{"==e?S(V("}"),Ge,z):void 0}function Ge(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||s&&R(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",S(Ge)):"variable"==e||"keyword"==k.style?(k.marked="property",S($e,Ge)):"number"==e||"string"==e?S($e,Ge):"["==e?S(G,pe,H("]"),$e,Ge):"*"==t?(k.marked="keyword",S(Ge)):s&&"("==e?F(je,Ge):";"==e||","==e?S(Ge):"}"==e?S():"@"==t?S(G,Ge):void 0}function $e(e,t){if("!"==t||"?"==t)return S($e);if(":"==e)return S(ve,Oe);if("="==t)return S($);var n=k.state.lexical.prev;return F(n&&"interface"==n.info?je:Pe)}function Qe(e,t){return"*"==t?(k.marked="keyword",S(Ze,H(";"))):"default"==t?(k.marked="keyword",S(G,H(";"))):"{"==e?S(ce(Ye,"}"),Ze,H(";")):F(U)}function Ye(e,t){return"as"==t?(k.marked="keyword",S(H("variable"))):"variable"==e?F($,Ye):void 0}function qe(e){return"string"==e?S():"("==e?F(G):"."==e?F(K):F(Ke,Xe,Ze)}function Ke(e,t){return"{"==e?de(Ke,"}"):("variable"==e&&T(t),"*"==t&&(k.marked="keyword"),S(Je))}function Xe(e){if(","==e)return S(Ke,Xe)}function Je(e,t){if("as"==t)return k.marked="keyword",S(Ke)}function Ze(e,t){if("from"==t)return k.marked="keyword",S(G)}function et(e){return"]"==e?S():F(ce($,"]"))}function tt(){return F(V("form"),Se,H("{"),V("}"),ce(nt,"}"),z,z)}function nt(){return F(Se,Oe)}function it(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function rt(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 L.lex=P.lex=!0,j.lex=!0,z.lex=!0,{startState:function(e){var n={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-r,0,"block",!1),localVars:t.localVars,context:t.localVars&&new M(null,null,!1),indented:e||0};return t.globalVars&&"object"==y(t.globalVars)&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),A(e,t)),t.tokenize!=_&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",E(t,r,n,i,e))},indent:function(e,n){if(e.tokenize==_||e.tokenize==b)return fu.Pass;if(e.tokenize!=g)return 0;var i,a=n&&n.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(n))for(var u=e.cc.length-1;u>=0;--u){var s=e.cc[u];if(s==z)l=l.prev;else if(s!=Me&&s!=j)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(i=e.cc[e.cc.length-1])&&(i==K||i==X)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;o&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var c=l.type,d=a==c;return"vardef"==c?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==c&&"{"==a?l.indented:"form"==c?l.indented+r:"stat"==c?l.indented+(it(e,n)?o||r:0):"switch"!=l.info||d||0==t.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:r):l.indented+(/^(?:case|default)\b/.test(n)?r:2*r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:a,jsonMode:l,expressionAllowed:rt,skipExpression:function(e){E(e,"atom","atom","true",new fu.StringStream("",2,null))}}}),fu.registerHelper("wordChars","javascript",/[\w$]/),fu.defineMIME("text/javascript","javascript"),fu.defineMIME("text/ecmascript","javascript"),fu.defineMIME("application/javascript","javascript"),fu.defineMIME("application/x-javascript","javascript"),fu.defineMIME("application/ecmascript","javascript"),fu.defineMIME("application/json",{name:"javascript",json:!0}),fu.defineMIME("application/x-json",{name:"javascript",json:!0}),fu.defineMIME("application/manifest+json",{name:"javascript",json:!0}),fu.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),fu.defineMIME("text/typescript",{name:"javascript",typescript:!0}),fu.defineMIME("application/typescript",{name:"javascript",typescript:!0}),function(e){var t="CodeMirror-hint",n="CodeMirror-hint-active";function i(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var i={hint:t};if(n)for(var r in n)i[r]=n[r];return e.showHint(i)},e.defineExtension("showHint",function(t){t=a(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var r=0;r<n.length;r++)if(n[r].head.line!=n[r].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new i(this,t);!o.options.hint||(e.signal(this,"startCompletion",this),o.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var r=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(e,t,n){var i=e.options.hintOptions,r={};for(var o in h)r[o]=h[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(e,t)),r}function l(e){return"string"==typeof e?e:e.text}function u(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,r=i?{}:n;function o(e,i){var o;o="string"!=typeof i?function(e){return i(e,t)}:n.hasOwnProperty(i)?n[i]:i,r[e]=o}if(i)for(var a in i)i.hasOwnProperty(a)&&o(a,i[a]);var l=e.options.extraKeys;if(l)for(var a in l)l.hasOwnProperty(a)&&o(a,l[a]);return r}function s(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function c(i,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=i,this.data=r,this.picked=!1;var o=this,a=i.cm,c=a.getInputField().ownerDocument,d=c.defaultView||c.parentWindow,f=this.hints=c.createElement("ul");f.setAttribute("role","listbox"),f.setAttribute("aria-expanded","true"),f.id=this.id;var p=i.cm.options.theme;f.className="CodeMirror-hints "+p,this.selectedHint=r.selectedHint||0;for(var h=r.list,m=0;m<h.length;++m){var g=f.appendChild(c.createElement("li")),v=h[m],_=t+(m!=this.selectedHint?"":" "+n);null!=v.className&&(_=v.className+" "+_),g.className=_,m==this.selectedHint&&g.setAttribute("aria-selected","true"),g.id=this.id+"-"+m,g.setAttribute("role","option"),v.render?v.render(g,r,v):g.appendChild(c.createTextNode(v.displayText||l(v))),g.hintId=m}var y=i.options.container||c.body,b=a.cursorCoords(i.options.alignWithWord?r.from:null),D=b.left,A=b.bottom,x=!0,w=0,C=0;if(y!==c.body){var E=-1!==["absolute","relative","fixed"].indexOf(d.getComputedStyle(y).position)?y:y.offsetParent,k=E.getBoundingClientRect(),F=c.body.getBoundingClientRect();w=k.left-F.left-E.scrollLeft,C=k.top-F.top-E.scrollTop}f.style.left=D-w+"px",f.style.top=A-C+"px";var S=d.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),B=d.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);y.appendChild(f),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var T,O=i.options.moveOnOverlap?f.getBoundingClientRect():new DOMRect,R=!!i.options.paddingForScrollbar&&f.scrollHeight>f.clientHeight+1;if(setTimeout(function(){T=a.getScrollInfo()}),O.bottom-B>0){var M=O.bottom-O.top;if(b.top-(b.bottom-O.top)-M>0)f.style.top=(A=b.top-M-C)+"px",x=!1;else if(M>B){f.style.height=B-5+"px",f.style.top=(A=b.bottom-O.top-C)+"px";var N=a.getCursor();r.from.ch!=N.ch&&(b=a.cursorCoords(N),f.style.left=(D=b.left-w)+"px",O=f.getBoundingClientRect())}}var I,L=O.right-S;if(R&&(L+=a.display.nativeBarWidth),L>0&&(O.right-O.left>S&&(f.style.width=S-5+"px",L-=O.right-O.left-S),f.style.left=(D=Math.max(b.left-L-w,0))+"px"),R)for(var P=f.firstChild;P;P=P.nextSibling)P.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=u(i,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:h.length,close:function(){i.close()},pick:function(){o.pick()},data:r})),i.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){I=setTimeout(function(){i.close()},100)}),a.on("focus",this.onFocus=function(){clearTimeout(I)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect();T||(T=a.getScrollInfo());var n=A+T.top-e.top,r=n-(d.pageYOffset||(c.documentElement||c.body).scrollTop);if(x||(r+=f.offsetHeight),r<=t.top||r>=t.bottom)return i.close();f.style.top=n+"px",f.style.left=D+T.left-e.left+"px"}),e.on(f,"dblclick",function(e){var t=s(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(f,"click",function(e){var t=s(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),i.options.completeOnSingleClick&&o.pick())}),e.on(f,"mousedown",function(){setTimeout(function(){a.focus()},20)});var j=this.getSelectedHintRange();return(0!==j.from||0!==j.to)&&this.scrollToActive(),e.signal(r,"select",h[this.selectedHint],f.childNodes[this.selectedHint]),!0}function d(e,t){if(!e.somethingSelected())return t;for(var n=[],i=0;i<t.length;i++)t[i].supportsSelection&&n.push(t[i]);return n}function f(e,t,n,i){if(e.async)e(t,i,n);else{var r=e(t,n);r&&r.then?r.then(i):i(r)}}function p(t,n){var i,r=t.getHelpers(n,"hint");if(r.length){var o=function(e,t,n){var i=d(e,r);function o(r){if(r==i.length)return t(null);f(i[r],e,n,function(e){e&&e.list.length>0?t(e):o(r+1)})}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}i.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n],r=this;this.cm.operation(function(){i.hint?i.hint(r.cm,t,i):r.cm.replaceRange(l(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),r.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var i=this;this.debounce=r(function(){i.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;f(this.options.hint,this.cm,this.options,function(i){t.tick==n&&t.finishUpdate(i,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var i=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&1==t.list.length?this.pick(t,0):(this.widget=new c(this,t),e.signal(t,"shown")))}},c.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,i){if(t>=this.data.list.length?t=i?this.data.list.length-1:0:t<0&&(t=i?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" "+n,""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],i=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-i.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+i.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:p}),e.registerHelper("hint","fromList",function(t,n){var i,r=t.getCursor(),o=t.getTokenAt(r),a=e.Pos(r.line,o.start),l=r;o.start<r.ch&&/\w/.test(o.string.charAt(r.ch-o.start-1))?i=o.string.substr(0,r.ch-o.start):(i="",a=r);for(var u=[],s=0;s<n.words.length;s++){var c=n.words[s];c.slice(0,i.length)==i&&u.push(c)}if(u.length)return{list:u,from:a,to:l}}),e.commands.autocomplete=e.showHint;var h={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(du()),function(e){var t=e.Pos;function n(e,t){for(var n=0,i=e.length;n<i;++n)t(e[n])}function i(e,t){if(!Array.prototype.indexOf){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1}return-1!=e.indexOf(t)}function r(n,i,r,o){var a=n.getCursor(),l=r(n,a);if(!/\b(?:string|comment)\b/.test(l.type)){var u=e.innerMode(n.getMode(),l.state);if("json"!==u.mode.helperType){l.state=u.state,/^[\w$_]*$/.test(l.string)?l.end>a.ch&&(l.end=a.ch,l.string=l.string.slice(0,a.ch-l.start)):l={start:a.ch,end:a.ch,string:"",state:l.state,type:"."==l.string?"property":null};for(var s=l;"property"==s.type;){if("."!=(s=r(n,t(a.line,s.start))).string)return;if(s=r(n,t(a.line,s.start)),!c)var c=[];c.push(s)}return{list:h(l,c,i,o),from:t(a.line,l.start),to:t(a.line,l.end)}}}}function o(e,t){return r(e,d,function(e,t){return e.getTokenAt(t)},t)}function a(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function l(e,t){return r(e,f,a,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",l);var u="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),s="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),c="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),f="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function p(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var i in e)t(i)}function h(e,t,r,o){var a=[],l=e.string,d=o&&o.globalScope||window;function f(e){0==e.lastIndexOf(l,0)&&!i(a,e)&&a.push(e)}function h(e){"string"==typeof e?n(u,f):e instanceof Array?n(s,f):e instanceof Function&&n(c,f),p(e,f)}if(t&&t.length){var m,g=t.pop();for(g.type&&0===g.type.indexOf("variable")?(o&&o.additionalContext&&(m=o.additionalContext[g.string]),(!o||!1!==o.useGlobalScope)&&(m=m||d[g.string])):"string"==g.type?m="":"atom"==g.type?m=1:"function"==g.type&&(null==d.jQuery||"$"!=g.string&&"jQuery"!=g.string||"function"!=typeof d.jQuery?null!=d._&&"_"==g.string&&"function"==typeof d._&&(m=d._()):m=d.jQuery());null!=m&&t.length;)m=m[t.pop().string];null!=m&&h(m)}else{for(var v=e.state.localVars;v;v=v.next)f(v.name);for(var _=e.state.context;_;_=_.prev)for(v=_.vars;v;v=v.next)f(v.name);for(v=e.state.globalVars;v;v=v.next)f(v.name);if(o&&null!=o.additionalContext)for(var y in o.additionalContext)f(y);(!o||!1!==o.useGlobalScope)&&h(d),n(r,f)}return a}}(du());var hu=function(e,t){var n,i=e.__vccOpts||e,r=l(t);try{for(r.s();!(n=r.n()).done;){var o=d(n.value,2),a=o[0],u=o[1];i[a]=u}}catch(s){r.e(s)}finally{r.f()}return i},mu=b({name:"FnEditor",emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,body:Boolean,button:Boolean,fnx:Boolean},inject:["designer"],data:function(){return{editor:null,fn:"",visible:!1,value:""}},watch:{modelValue:function(e){e!=this.value&&(!e||!e.__json||e.__json&&e.__json!=this.value)&&this.editor&&this.editor.setValue(this.tidyValue())}},computed:{t:function(){return this.designer.setupState.t},argStr:function(){return(this.args||[]).map(function(e){return"string"==typeof e?e:e.name}).join(", ")},argList:function(){return this.args.map(function(e){return"string"==typeof e?{name:e,type:"string"}:e})}},mounted:function(){var e=this;this.$nextTick(function(){e.load()})},methods:{save:function(){var e=this.editor.getValue()||"";if(""===e.trim())this.fn="";else{var t;try{t=new Function("return function ("+this.argStr+"){\n"+e+"\n}")()}catch(fu){return xi(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+e:this.fn="[[FORM-CREATE-PREFIX-"+t+"-FORM-CREATE-SUFFIX]]"}return this.submit(),!0},submit:function(){this.$emit("update:modelValue",this.fn),this.$emit("change",this.fn),this.value=this.fn,this.visible=!1},trimString:function(e){var t=e.indexOf("{"),n=e.lastIndexOf("}");return-1===t||-1===n||t>=n?e:e.slice(t+1,n).replace(/^\n+|\n+$/g,"")},tidyValue:function(){var e=this.modelValue||"";return e.__json&&(e=e.__json),this.fnx&&"string"==typeof e&&0===e.indexOf("$FNX:")&&(e=e.slice(5)),"function"==typeof e?e=this.trimString(Oi(e)).trim():this.body||(e=this.trimString(e).trim()),this.value=e,e},load:function(){var e=this;this.$nextTick(function(){var t=e.tidyValue();e.editor=D(pu(e.$refs.editor,{lineNumbers:!0,mode:{name:"javascript",globalVars:!0},extraKeys:{"Ctrl-Space":"autocomplete"},line:!0,tabSize:2,lineWrapping:!0,value:t})),e.editor.on("inputRead",function(e,t){32===t.keyCode&&t.ctrlKey&&pu.showHint(e,pu.hint.javascript)}),e.editor.on("change",function(){e.visible=!0}),e.editor})}}}),gu={class:"_fd-fn"},vu={class:"_fd-fn-tip"},_u={class:"cm-keyword"},yu={key:0},bu={class:"_fd-fn-arg"},Du={ref:"editor",class:"_fd-fn-editor"};var Au=hu(mu,[["render",function(e,t,n,i,r,o){var a=w("el-table-column"),l=w("el-table"),u=w("el-popover"),s=w("el-button");return P(),L("div",gu,[j("div",vu,[t[2]||(t[2]=j("div",{class:"_fd-fn-ind"},null,-1)),j("div",_u,[j("span",null,[Z("function "+K(e.name)+"(",1),(P(!0),L(X,null,J(e.argList,function(n,i){return P(),L(X,null,[Z(K(i>0?", ":""),1),"string"===n.type?(P(),L("span",yu,K(n.name),1)):(P(),G(u,{key:1,placement:"top-start",width:400,"hide-after":0,trigger:"click",title:n.name,content:n.info||""},{reference:$(function(){return[j("span",bu,[Z(K(n.name),1),t[0]||(t[0]=j("i",{class:"fc-icon icon-question"},null,-1))])]}),default:$(function(){return[n.columns?(P(),G(l,{key:0,data:n.columns,border:""},{default:$(function(){return[x(a,{width:"120",property:"label",label:e.t("event.label")},null,8,["label"]),x(a,{property:"info",label:e.t("event.info")},null,8,["label"]),x(a,{width:"80",property:"type",label:e.t("event.type")},null,8,["label"])]}),_:2},1032,["data"])):Q("",!0)]}),_:2},1032,["title","content"]))],64)}),256)),t[1]||(t[1]=Z(") {"))])])]),j("div",Du,null,512),t[3]||(t[3]=j("div",{class:"_fd-fn-tip"},[j("div",{class:"_fd-fn-ind"}),j("div",{class:"cm-keyword"},"}")],-1)),e.visible&&e.button?(P(),G(s,{key:0,type:"primary",size:"small",onClick:e.save},{default:$(function(){return[Z(K(e.t("props.save")),1)]}),_:1},8,["onClick"])):Q("",!0)])}]]),xu="$FNX:",wu=function(e){return ci.String(e)&&0===e.indexOf(xu)},Cu=b({name:"EventConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],componentName:String,eventName:{type:Array,default:function(){return[]}}},inject:["designer"],components:{FnEditor:Au},data:function(){return{visible:!1,activeData:null,val:null,defActive:"no",hookList:["hook_load","hook_mounted","hook_deleted","hook_watch","hook_value","hook_hidden"],event:{},cus:!1,cusValue:"",eventStr:""}},computed:{t:function(){return this.designer.setupState.t},activeRule:function(){return this.designer.setupState.activeRule},orgEvent:function(){return this.eventName&&this.eventName.length?this.eventName:["click"]},eventList:function(){return this.orgEvent.map(function(e){return"object"==y(e)?e.name:e})},eventInfo:function(){var e=this,t={};return this.orgEvent.forEach(function(n){"object"==y(n)?t[n.name]=e.t("com."+e.componentName+".event."+n.name)||n.info||e.t("eventInfo."+n.name)||"":t[n]=e.t("com."+e.componentName+".event."+n)||e.t("eventInfo."+n)||""}),this.hookList.forEach(function(n){t[n]=e.t("eventInfo."+n)||""}),t},eventNum:function(){var e=this,t=0;Object.keys(this.modelValue||{}).forEach(function(n){t+=Array.isArray(e.modelValue[n])?e.modelValue[n].length:1});var n=this.activeRule?p({},this.activeRule._hook||{}):{};return Object.keys(n).forEach(function(e){t+=Array.isArray(n[e])?n[e].length:1}),t},fnArgs:function(){return[Ui(this.t)]}},watch:{visible:function(e){this.event=e?this.loadFN():{},e||(this.destroy(),this.closeCus())}},methods:{addCus:function(){var e=this.cusValue&&this.cusValue.trim();e&&(this.closeCus(),this.add(e))},closeCus:function(){this.cus=!1,this.cusValue=""},cusEvent:function(){this.cus=!0},loadFN:function(){var e=pi({},this.modelValue||{}),t=this.activeRule?p({},this.activeRule._hook||{}):{};Object.keys(t).forEach(function(n){e["hook_"+n]=t[n]});var n={};return Object.keys(e).forEach(function(t){if(Array.isArray(e[t])){var i=[];e[t].forEach(function(e){wu(e)?i.push(e.replace(xu,"")):ci.Function(e)&&wu(e.__json)?i.push(e.__json.replace(xu,"")):e&&0===e.indexOf("$GLOBAL:")&&i.push(e)}),n[t]=i}else if(wu(e[t]))n[t]=[e[t].replace(xu,"")];else if(ci.Function(e[t])){var r=e[t].__json||"";r?wu(r)?n[t]=[r.replace(xu,"")]:n[t]=[r]:n[t]=[""+e[t]]}else e[t]&&0===e[t].indexOf("$GLOBAL:")&&(n[t]=[e[t]])}),n},parseFN:function(e){var t={},n={};return Object.keys(e).forEach(function(i){var r=[];e[i].forEach(function(e,t){r[t]=0!==e.indexOf("$GLOBAL:")?xu+e:e}),r.length>0&&(i.indexOf("hook_")>-1?n[i.replace("hook_","")]=1===r.length?r[0]:r:t[i]=1===r.length?r[0]:r)}),{hooks:n,on:t}},add:function(e){var t={};if(Array.isArray(this.event[e]))this.event[e].push(""),t={name:e,item:this.event[e],index:this.event[e].length-1};else if(this.event[e]){var n=[this.event[e],""];this.event[e]=n,t={name:e,item:n,index:1}}else{var i=[""];this.event[e]=i,t={name:e,item:i,index:0}}this.activeData||this.edit(t)},edit:function(e){e.key=er(),e.item?this.val=e.item[e.index]:this.val=this.event[e.name],this.activeData=e,this.eventStr=this.val,this.defActive=e.name+(e.index||0)},save:function(){if(this.$refs.fn.save()){var e=this.eventStr;this.activeData.item?this.activeData.item[this.activeData.index]=e:this.event[this.activeData.name]=e,this.destroy()}},rm:function(e){void 0!==e.index?(e.item.splice(e.index,1),0===e.item.length&&delete this.event[e.name]):delete this.event[e.name],this.defActive===e.name+(e.index||0)&&this.destroy()},destroy:function(){this.activeData=null,this.val=null,this.defActive="no"},close:function(){this.destroy()},submit:function(){if(this.activeData)return xi(this.t("event.saveMsg"));var e=this.parseFN(this.event),t=e.on,n=e.hooks;this.$emit("update:modelValue",t),this.activeRule._hook=n,this.visible=!1,this.destroy(),this.closeCus()}},beforeCreate:function(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}}}),Eu={class:"_fd-event"},ku={class:"el-dropdown-link"},Fu={class:"_fd-event-item"},Su={key:0,class:"_fd-label"},Bu={class:"_fd-event-item"},Tu={class:"_fd-label"},Ou=["onClick"],Ru={class:"_fd-event-method"},Mu={key:0,class:"_fd-label"},Nu=["onClick"],Iu=["onClick"],Lu={class:"_fd-event-method"},Pu={key:0,class:"_fd-label"},ju=["onClick"],Vu={target:"_blank",href:"https://form-create.com/v3/instance/"};var zu=hu(Cu,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-badge"),u=w("el-dropdown-item"),s=w("el-dropdown-menu"),c=w("el-dropdown"),d=w("el-header"),f=w("el-menu-item"),p=w("el-input"),h=w("el-menu"),m=w("el-main"),g=w("el-container"),v=w("el-aside"),_=w("FnEditor"),y=w("el-dialog");return P(),L("div",Eu,[x(l,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:$(function(){return[x(a,{size:"small",onClick:t[0]||(t[0]=function(t){return e.visible=!0})},{default:$(function(){return[Z(K(e.t("event.title")),1)]}),_:1})]}),_:1},8,["value","hidden"]),x(y,{class:"_fd-event-dialog",title:e.t("event.title"),modelValue:e.visible,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.visible=t}),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{footer:$(function(){return[j("div",null,[x(a,{size:"default",onClick:t[7]||(t[7]=function(t){return e.visible=!1})},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1}),x(a,{type:"primary",size:"default",onClick:e.submit,color:"#2f73ff"},{default:$(function(){return[Z(K(e.t("props.ok")),1)]}),_:1},8,["onClick"])])]}),default:$(function(){return[x(g,{class:"_fd-event-con",style:{height:"600px"}},{default:$(function(){return[x(v,{style:{width:"300px"}},{default:$(function(){return[x(g,{class:"_fd-event-l"},{default:$(function(){return[x(d,{class:"_fd-event-head",height:"40px"},{default:$(function(){return[x(c,{"popper-class":"_fd-event-dropdown",trigger:"click",size:"default",placement:"bottom-start"},{dropdown:$(function(){return[x(s,null,{default:$(function(){return[(P(!0),L(X,null,J(e.eventList,function(t){return P(),G(u,{key:t,onClick:function(n){return e.add(t)},disabled:Object.keys(e.event).indexOf(t)>-1},{default:$(function(){return[j("div",Fu,[j("span",null,K(t),1),e.eventInfo[t]?(P(),L("span",Su,K(e.eventInfo[t]),1)):Q("",!0)])]}),_:2},1032,["onClick","disabled"])}),128)),(P(!0),L(X,null,J(e.hookList,function(t,n){return P(),G(u,{divided:e.eventList.length>0&&!n,onClick:function(n){return e.add(t)},disabled:Object.keys(e.event).indexOf(t)>-1},{default:$(function(){return[j("div",Bu,[j("div",null,K(t),1),j("span",Tu,K(e.eventInfo[t]),1)])]}),_:2},1032,["divided","onClick","disabled"])}),256)),x(u,{divided:e.eventList.length>0,onClick:e.cusEvent},{default:$(function(){return[j("div",null,K(e.t("props.custom")),1)]}),_:1},8,["divided","onClick"])]}),_:1})]}),default:$(function(){return[j("span",ku,[x(a,{link:"",type:"primary",size:"default"},{default:$(function(){return[Z(K(e.t("event.create")),1),t[9]||(t[9]=j("i",{class:"el-icon-arrow-down el-icon--right"},null,-1))]}),_:1,__:[9]})])]}),_:1})]}),_:1}),x(m,null,{default:$(function(){return[x(h,{"default-active":e.defActive,modelValue:e.activeData,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.activeData=t})},{default:$(function(){return[(P(!0),L(X,null,J(e.event,function(n,i){return P(),L(X,null,[Array.isArray(n)?(P(!0),L(X,{key:0},J(n,function(r,o){return P(),G(f,{key:i+o,index:i+o},{default:$(function(){return[j("div",{class:"_fd-event-title",onClick:ee(function(t){return e.edit({name:i,item:n,index:o})},["stop"])},[j("div",Ru,[j("span",null,[t[10]||(t[10]=Z("function")),j("span",null,K(i),1)]),e.eventInfo[i]?(P(),L("span",Mu,K(e.eventInfo[i]),1)):Q("",!0)]),j("i",{class:"fc-icon icon-delete",onClick:ee(function(t){return e.rm({name:i,item:n,index:o})},["stop"])},null,8,Nu)],8,Ou)]}),_:2},1032,["index"])}),128)):(P(),G(f,{key:1,index:i+0},{default:$(function(){return[j("div",{class:"_fd-event-title",onClick:ee(function(t){return e.edit({name:i})},["stop"])},[j("div",Lu,[j("span",null,[t[11]||(t[11]=Z("function")),j("span",null,K(i),1)]),e.eventInfo[i]?(P(),L("span",Pu,K(e.eventInfo[i]),1)):Q("",!0)]),j("i",{class:"fc-icon icon-delete",onClick:ee(function(t){return e.rm({name:i})},["stop"])},null,8,ju)],8,Iu)]}),_:2},1032,["index"]))],64)}),256)),e.cus?(P(),G(f,{key:0,style:{"padding-left":"10px"},index:"custom"},{default:$(function(){return[j("div",{class:"_fd-event-title",onClick:t[4]||(t[4]=ee(function(){},["stop"]))},[x(p,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.cusValue=t}),size:"default",onKeydown:ae(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),j("div",null,[j("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=ee(function(){return e.addCus&&e.addCus.apply(e,arguments)},["stop"]))}),j("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=ee(function(){return e.closeCus&&e.closeCus.apply(e,arguments)},["stop"]))})])])]}),_:1})):Q("",!0)]}),_:1},8,["default-active","modelValue"])]}),_:1})]}),_:1})]}),_:1}),x(m,null,{default:$(function(){return[x(g,{class:"_fd-event-r"},{default:$(function(){return[e.activeData?(P(),G(d,{key:0,class:"_fd-event-head",height:"40px"},{default:$(function(){return[j("div",null,[j("a",Vu,K(e.t("form.document")),1)]),j("div",null,[x(a,{size:"small",onClick:e.close},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1},8,["onClick"]),x(a,{size:"small",type:"primary",onClick:e.save,color:"#2f73ff"},{default:$(function(){return[Z(K(e.t("props.save")),1)]}),_:1},8,["onClick"])])]}),_:1})):Q("",!0),e.activeData?(P(),G(m,{key:1},{default:$(function(){return[x(_,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.eventStr=t}),body:"",name:e.activeData.name,args:e.fnArgs,style:{height:"519px"}},null,8,["modelValue","name","args"])]}),_:1})):Q("",!0)]}),_:1})]}),_:1})]}),_:1})]}),_:1},8,["title","modelValue"])])}]]);function Hu(e,t){var n=null;return function(){for(var i=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];null!==n&&clearTimeout(n),n=setTimeout(function(){return e.call.apply(e,[i].concat(o))},t)}}
  28. /*!
  29. Highlight.js v11.9.0 (git: b7ec4bfafc)
  30. (c) 2006-2024 undefined and other contributors
  31. License: BSD-3-Clause
  32. */function Uu(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t],i=y(n);"object"!==i&&"function"!==i||Object.isFrozen(n)||Uu(n)}),e}var Wu=function(){return c(function e(t){u(this,e),void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1},[{key:"ignoreMatch",value:function(){this.isMatchIgnored=!0}}])}();function Gu(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function $u(e){var t=Object.create(null);for(var n in e)t[n]=e[n];for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.forEach(function(e){for(var n in e)t[n]=e[n]}),t}var Qu=function(e){return!!e.scope},Yu=function(){return c(function e(t,n){u(this,e),this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)},[{key:"addText",value:function(e){this.buffer+=Gu(e)}},{key:"openNode",value:function(e){if(Qu(e)){var t=function(e,t){var n=t.prefix;if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){var i=e.split(".");return["".concat(n).concat(i.shift())].concat(g(i.map(function(e,t){return"".concat(e).concat("_".repeat(t+1))}))).join(" ")}return"".concat(n).concat(e)}(e.scope,{prefix:this.classPrefix});this.span(t)}}},{key:"closeNode",value:function(e){Qu(e)&&(this.buffer+="</span>")}},{key:"value",value:function(){return this.buffer}},{key:"span",value:function(e){this.buffer+='<span class="'.concat(e,'">')}}])}(),qu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={children:[]};return Object.assign(t,e),t},Ku=function(){function e(){u(this,e),this.rootNode=qu(),this.stack=[this.rootNode]}return c(e,[{key:"top",get:function(){return this.stack[this.stack.length-1]}},{key:"root",get:function(){return this.rootNode}},{key:"add",value:function(e){this.top.children.push(e)}},{key:"openNode",value:function(e){var t=qu({scope:e});this.add(t),this.stack.push(t)}},{key:"closeNode",value:function(){if(this.stack.length>1)return this.stack.pop()}},{key:"closeAllNodes",value:function(){for(;this.closeNode(););}},{key:"toJSON",value:function(){return JSON.stringify(this.rootNode,null,4)}},{key:"walk",value:function(e){return this.constructor._walk(e,this.rootNode)}}],[{key:"_walk",value:function(e,t){var n=this;return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(function(t){return n._walk(e,t)}),e.closeNode(t)),e}},{key:"_collapse",value:function(t){"string"!=typeof t&&t.children&&(t.children.every(function(e){return"string"==typeof e})?t.children=[t.children.join("")]:t.children.forEach(function(t){e._collapse(t)}))}}])}(),Xu=function(e){function n(e){var i;return u(this,n),(i=t(this,n)).options=e,i}return o(n,e),c(n,[{key:"addText",value:function(e){""!==e&&this.add(e)}},{key:"startScope",value:function(e){this.openNode(e)}},{key:"endScope",value:function(){this.closeNode()}},{key:"__addSublanguage",value:function(e,t){var n=e.root;t&&(n.scope="language:"+t),this.add(n)}},{key:"toHTML",value:function(){return new Yu(this,this.options).value()}},{key:"finalize",value:function(){return this.closeAllNodes(),!0}}])}(Ku);function Ju(e){return e?"string"==typeof e?e:e.source:null}function Zu(e){return ns("(?=",e,")")}function es(e){return ns("(?:",e,")*")}function ts(e){return ns("(?:",e,")?")}function ns(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(function(e){return Ju(e)}).join("")}function is(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"("+(function(e){var t=e[e.length-1];return"object"==y(t)&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(t).capture?"":"?:")+t.map(function(e){return Ju(e)}).join("|")+")"}function rs(e){return RegExp(e.toString()+"|").exec("").length-1}var os=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function as(e,t){var n=t.joinWith,i=0;return e.map(function(e){for(var t=i+=1,n=Ju(e),r="";n.length>0;){var o=os.exec(n);if(!o){r+=n;break}r+=n.substring(0,o.index),n=n.substring(o.index+o[0].length),"\\"===o[0][0]&&o[1]?r+="\\"+(Number(o[1])+t):(r+=o[0],"("===o[0]&&i++)}return r}).map(function(e){return"(".concat(e,")")}).join(n)}var ls="[a-zA-Z]\\w*",us="[a-zA-Z_]\\w*",ss="\\b\\d+(\\.\\d+)?",cs="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ds="\\b(0b[01]+)",fs={begin:"\\\\[\\s\\S]",relevance:0},ps={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[fs]},hs={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[fs]},ms=function(e,t){var n=$u({scope:"comment",begin:e,end:t,contains:[]},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});var i=is("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:ns(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},gs=ms("//","$"),vs=ms("/\\*","\\*/"),_s=ms("#","$"),ys=Object.freeze({__proto__:null,APOS_STRING_MODE:ps,BACKSLASH_ESCAPE:fs,BINARY_NUMBER_MODE:{scope:"number",begin:ds,relevance:0},BINARY_NUMBER_RE:ds,COMMENT:ms,C_BLOCK_COMMENT_MODE:vs,C_LINE_COMMENT_MODE:gs,C_NUMBER_MODE:{scope:"number",begin:cs,relevance:0},C_NUMBER_RE:cs,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":function(e,t){t.data._beginMatch=e[1]},"on:end":function(e,t){t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:_s,IDENT_RE:ls,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+us,relevance:0},NUMBER_MODE:{scope:"number",begin:ss,relevance:0},NUMBER_RE:ss,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:hs,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[fs,{begin:/\[/,end:/\]/,relevance:0,contains:[fs]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^#![ ]*\//;return e.binary&&(e.begin=ns(t,/.*\b/,e.binary,/\b.*/)),$u({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":function(e,t){0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:ls,relevance:0},UNDERSCORE_IDENT_RE:us,UNDERSCORE_TITLE_MODE:{scope:"title",begin:us,relevance:0}});function bs(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function Ds(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function As(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=bs,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function xs(e,t){Array.isArray(e.illegal)&&(e.illegal=is.apply(void 0,g(e.illegal)))}function ws(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Cs(e,t){void 0===e.relevance&&(e.relevance=1)}var Es=function(e,t){if(e.beforeMatch){if(e.starts)throw Error("beforeMatch cannot be used with starts");var n=Object.assign({},e);Object.keys(e).forEach(function(t){delete e[t]}),e.keywords=n.keywords,e.begin=ns(n.beforeMatch,Zu(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch}},ks=["of","and","for","in","not","or","if","then","parent","list","value"];function Fs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"keyword",i=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach(function(n){Object.assign(i,Fs(e[n],t,n))}),i;function r(e,n){t&&(n=n.map(function(e){return e.toLowerCase()})),n.forEach(function(t){var n=t.split("|");i[n[0]]=[e,Ss(n[0],n[1])]})}}function Ss(e,t){return t?Number(t):function(e){return ks.includes(e.toLowerCase())}(e)?0:1}var Bs={},Ts=function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=console).log.apply(t,["WARN: "+e].concat(i))},Os=function(e,t){Bs["".concat(e,"/").concat(t)]||(Bs["".concat(e,"/").concat(t)]=!0)},Rs=Error();function Ms(e,t,n){for(var i=n.key,r=0,o=e[i],a={},l={},u=1;u<=t.length;u++)l[u+r]=o[u],a[u+r]=!0,r+=rs(t[u-1]);e[i]=l,e[i]._emit=a,e[i]._multi=!0}function Ns(e){var t;(t=e).scope&&"object"==y(t.scope)&&null!==t.scope&&(t.beginScope=t.scope,delete t.scope),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Rs;if("object"!=y(e.beginScope)||null===e.beginScope)throw Rs;Ms(e,e.begin,{key:"beginScope"}),e.begin=as(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Rs;if("object"!=y(e.endScope)||null===e.endScope)throw Rs;Ms(e,e.end,{key:"endScope"}),e.end=as(e.end,{joinWith:""})}}(e)}function Is(e){function t(t,n){return RegExp(Ju(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}var n=function(){return c(function e(){u(this,e),this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0},[{key:"addRule",value:function(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=rs(e)+1}},{key:"compile",value:function(){0===this.regexes.length&&(this.exec=function(){return null});var e=this.regexes.map(function(e){return e[1]});this.matcherRe=t(as(e,{joinWith:"|"}),!0),this.lastIndex=0}},{key:"exec",value:function(e){this.matcherRe.lastIndex=this.lastIndex;var t=this.matcherRe.exec(e);if(!t)return null;var n=t.findIndex(function(e,t){return t>0&&void 0!==e}),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}])}(),i=function(){return c(function e(){u(this,e),this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0},[{key:"getMatcher",value:function(e){if(this.multiRegexes[e])return this.multiRegexes[e];var t=new n;return this.rules.slice(e).forEach(function(e){var n=d(e,2),i=n[0],r=n[1];return t.addRule(i,r)}),t.compile(),this.multiRegexes[e]=t,t}},{key:"resumingScanAtSamePosition",value:function(){return 0!==this.regexIndex}},{key:"considerAll",value:function(){this.regexIndex=0}},{key:"addRule",value:function(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}},{key:"exec",value:function(e){var t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;var n=t.exec(e);if(this.resumingScanAtSamePosition()&&(!n||n.index!==this.lastIndex)){var i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,n=i.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}])}();if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=$u(e.classNameAliases||{}),function n(r,o,a){var l=r;if(r.isCompiled)return l;[Ds,ws,Ns,Es].forEach(function(e){return e(r,o)}),e.compilerExtensions.forEach(function(e){return e(r,o)}),r.__beforeBegin=null,[As,xs,Cs].forEach(function(e){return e(r,o)}),r.isCompiled=!0;var u=null;return"object"==y(r.keywords)&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),u=r.keywords.$pattern,delete r.keywords.$pattern),u=u||/\w+/,r.keywords&&(r.keywords=Fs(r.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),o&&(r.begin||(r.begin=/\B|\b/),l.beginRe=t(l.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(l.endRe=t(l.end)),l.terminatorEnd=Ju(l.end)||"",r.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(l.illegalRe=t(r.illegal)),r.contains||(r.contains=[]),r.contains=(a=[]).concat.apply(a,g(r.contains.map(function(e){return(t="self"===e?r:e).variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return $u(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Ls(t)?$u(t,{starts:t.starts?$u(t.starts):null}):Object.isFrozen(t)?$u(t):t;var t}))),r.contains.forEach(function(e){n(e,l)}),r.starts&&n(r.starts,o),l.matcher=function(e){var t=new i;return e.contains.forEach(function(e){return t.addRule(e.begin,{rule:e,type:"begin"})}),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(l),l}(e)}function Ls(e){return!!e&&(e.endsWithParent||Ls(e.starts))}var Ps=function(e){function n(e,i){var r;return u(this,n),(r=t(this,n,[e])).name="HTMLInjectionError",r.html=i,r}return o(n,e),c(n)}(e(Error)),js=Gu,Vs=$u,zs=Symbol("nomatch"),Hs=function(e){var t=Object.create(null),n=Object.create(null),i=[],r=!0,o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Xu};function u(e){return l.noHighlightRe.test(e)}function s(e,t,n){var i="",r="";"object"==y(t)?(i=e,n=t.ignoreIllegals,r=t.language):(Os("10.7.0","highlight(lang, code, ...args) has been deprecated."),Os("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);var o={code:i,language:r};b("before:highlight",o);var a=o.result?o.result:c(o.language,o.code,n);return a.code=o.code,b("after:highlight",a),a}function c(e,n,i,a){var u=Object.create(null);function s(){if(!E.keywords)return F.addText(S);var e=0;E.keywordPatternRe.lastIndex=0;for(var t,n=E.keywordPatternRe.exec(S),i="";n;){i+=S.substring(e,n.index);var r=x.case_insensitive?n[0].toLowerCase():n[0],o=(t=r,E.keywords[t]);if(o){var a=d(o,2),l=a[0],s=a[1];if(F.addText(i),i="",u[r]=(u[r]||0)+1,u[r]<=7&&(B+=s),l.startsWith("_"))i+=n[0];else{var c=x.classNameAliases[l]||l;h(n[0],c)}}else i+=n[0];e=E.keywordPatternRe.lastIndex,n=E.keywordPatternRe.exec(S)}i+=S.substring(e),F.addText(i)}function p(){null!=E.subLanguage?function(){if(""!==S){var e=null;if("string"==typeof E.subLanguage){if(!t[E.subLanguage])return F.addText(S);e=c(E.subLanguage,S,!0,k[E.subLanguage]),k[E.subLanguage]=e._top}else e=f(S,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(B+=e.relevance),F.__addSublanguage(e._emitter,e.language)}}():s(),S=""}function h(e,t){""!==e&&(F.startScope(t),F.addText(e),F.endScope())}function m(e,t){for(var n=1,i=t.length-1;n<=i;)if(e._emit[n]){var r=x.classNameAliases[e[n]]||e[n],o=t[n];r?h(o,r):(S=o,s(),S=""),n++}else n++}function v(e,t){return e.scope&&"string"==typeof e.scope&&F.openNode(x.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(h(S,x.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),S=""):e.beginScope._multi&&(m(e.beginScope,t),S="")),E=Object.create(e,{parent:{value:E}})}function _(e,t,n){var i=function(e,t){var n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(i){if(e["on:end"]){var r=new Wu(e);e["on:end"](t,r),r.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return 0===E.matcher.regexIndex?(S+=e[0],1):(R=!0,0)}function b(e){var t=e[0],i=n.substring(e.index),r=_(E,e,i);if(!r)return zs;var o=E;E.endScope&&E.endScope._wrap?(p(),h(t,E.endScope._wrap)):E.endScope&&E.endScope._multi?(p(),m(E.endScope,e)):o.skip?S+=t:(o.returnEnd||o.excludeEnd||(S+=t),p(),o.excludeEnd&&(S=t));do{E.scope&&F.closeNode(),E.skip||E.subLanguage||(B+=E.relevance),E=E.parent}while(E!==r.parent);return r.starts&&v(r.starts,e),o.returnEnd?0:t.length}var D={};function A(t,o){var a=o&&o[0];if(S+=t,null==a)return p(),0;if("begin"===D.type&&"end"===o.type&&D.index===o.index&&""===a){if(S+=n.slice(o.index,o.index+1),!r){var l=Error("0 width match regex (".concat(e,")"));throw l.languageName=e,l.badRule=D.rule,l}return 1}if(D=o,"begin"===o.type)return function(e){for(var t=e[0],n=e.rule,i=new Wu(n),r=0,o=[n.__beforeBegin,n["on:begin"]];r<o.length;r++){var a=o[r];if(a&&(a(e,i),i.isMatchIgnored))return y(t)}return n.skip?S+=t:(n.excludeBegin&&(S+=t),p(),n.returnBegin||n.excludeBegin||(S=t)),v(n,e),n.returnBegin?0:t.length}(o);if("illegal"===o.type&&!i){var u=Error('Illegal lexeme "'+a+'" for mode "'+(E.scope||"<unnamed>")+'"');throw u.mode=E,u}if("end"===o.type){var s=b(o);if(s!==zs)return s}if("illegal"===o.type&&""===a)return 1;if(O>1e5&&O>3*o.index)throw Error("potential infinite loop, way more iterations than matches");return S+=a,a.length}var x=g(e);if(!x)throw o.replace("{}",e),Error('Unknown language: "'+e+'"');var w=Is(x),C="",E=a||w,k={},F=new l.__emitter(l);!function(){for(var e=[],t=E;t!==x;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(function(e){return F.openNode(e)})}();var S="",B=0,T=0,O=0,R=!1;try{if(x.__emitTokens)x.__emitTokens(n,F);else{for(E.matcher.considerAll();;){O++,R?R=!1:E.matcher.considerAll(),E.matcher.lastIndex=T;var M=E.matcher.exec(n);if(!M)break;var N=A(n.substring(T,M.index),M);T=M.index+N}A(n.substring(T))}return F.finalize(),C=F.toHTML(),{language:e,value:C,relevance:B,illegal:!1,_emitter:F,_top:E}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:e,value:js(n),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:T,context:n.slice(T-100,T+100),mode:M.mode,resultSoFar:C},_emitter:F};if(r)return{language:e,value:js(n),illegal:!1,relevance:0,errorRaised:M,_emitter:F,_top:E};throw M}}function f(e,n){n=n||l.languages||Object.keys(t);var i,r,o=((r={value:js(i=e),illegal:!1,relevance:0,_top:a,_emitter:new l.__emitter(l)})._emitter.addText(i),r),u=n.filter(g).filter(_).map(function(t){return c(t,e,!1)});u.unshift(o);var s=u.sort(function(e,t){if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(g(e.language).supersetOf===t.language)return 1;if(g(t.language).supersetOf===e.language)return-1}return 0}),f=d(s,2),p=f[0],h=f[1],m=p;return m.secondBest=h,m}function p(e){var t=function(e){var t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";var n=l.languageDetectRe.exec(t);if(n){var i=g(n[1]);return i||(Ts(o.replace("{}",n[1])),Ts("Falling back to no-highlight mode for this block.",e)),i?n[1]:"no-highlight"}return t.split(/\s+/).find(function(e){return u(e)||g(e)})}(e);if(!u(t)&&(b("before:highlightElement",{el:e,language:t}),!e.dataset.highlighted)){if(e.children.length>0&&(l.ignoreUnescapedHTML,l.throwUnescapedHTML))throw new Ps("One of your code blocks includes unescaped HTML.",e.innerHTML);var i,r,a,c,d=e.textContent,p=t?s(d,{language:t,ignoreIllegals:!0}):f(d);e.innerHTML=p.value,e.dataset.highlighted="yes",i=e,r=t,a=p.language,c=r&&n[r]||a,i.classList.add("hljs"),i.classList.add("language-"+c),e.result={language:p.language,re:p.relevance,relevance:p.relevance},p.secondBest&&(e.secondBest={language:p.secondBest.language,relevance:p.secondBest.relevance}),b("after:highlightElement",{el:e,result:p,text:d})}}var h=!1;function m(){"loading"!==document.readyState?document.querySelectorAll(l.cssSelector).forEach(p):h=!0}function g(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function v(e,t){var i=t.languageName;"string"==typeof e&&(e=[e]),e.forEach(function(e){n[e.toLowerCase()]=i})}function _(e){var t=g(e);return t&&!t.disableAutodetect}function b(e,t){var n=e;i.forEach(function(e){e[n]&&e[n](t)})}for(var D in("undefined"==typeof window?"undefined":y(window))<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){h&&m()},!1),Object.assign(e,{highlight:s,highlightAuto:f,highlightAll:m,highlightElement:p,highlightBlock:function(e){return Os("10.7.0","highlightBlock will be removed entirely in v12.0"),Os("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){l=Vs(l,e)},initHighlighting:function(){m(),Os("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){m(),Os("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(n,i){var o=null;try{o=i(e)}catch(l){if("Language definition for '{}' could not be registered.".replace("{}",n),!r)throw l;o=a}o.name||(o.name=n),t[n]=o,o.rawDefinition=i.bind(null,e),o.aliases&&v(o.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(var i=0,r=Object.keys(n);i<r.length;i++){var o=r[i];n[o]===e&&delete n[o]}},listLanguages:function(){return Object.keys(t)},getLanguage:g,registerAliases:v,autoDetection:_,inherit:Vs,addPlugin:function(e){var t;(t=e)["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=function(e){t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=function(e){t["after:highlightBlock"](Object.assign({block:e.el},e))}),i.push(e)},removePlugin:function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1)}}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString="11.9.0",e.regex={concat:ns,lookahead:Zu,either:is,optional:ts,anyNumberOfTimes:es},ys)"object"==y(ys[D])&&Uu(ys[D]);return Object.assign(e,ys),e},Us=Hs({});Us.newInstance=function(){return Hs({})};/*! `xml` grammar compiled for Highlight.js 11.9.0 */var Ws=function(e){var t=e.regex,n=t.concat(/(?:[A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/,t.optional(/(?:[\x2D\.0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*:/),/(?:[\x2D\.0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*/),i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(r,{begin:/\(/,end:/\)/}),a=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/(?:[\x2D\.0-:A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])+/,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,l,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,l,a]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}},Gs=function(){var e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],l=[].concat(o,i,r);return function(u){var s=u.regex,c=e,d={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:function(e,t){var n=e[0].length+e.index,i=e.input[n];if("<"!==i&&","!==i){var r,o,a,l;">"===i&&(a={after:n}.after,l="</"+(o=e)[0].slice(1),-1!==o.input.indexOf(l,a)||t.ignoreMatch());var u=e.input.substring(n);((r=u.match(/^\s*=/))||(r=u.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}else t.ignoreMatch()}},f={$pattern:e,keyword:t,literal:n,built_in:l,"variable.language":a},p="[0-9](_?[0-9])*",h="\\.(".concat(p,")"),m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:"(\\b(".concat(m,")((").concat(h,")|\\.)?|(").concat(h,"))[eE][+-]?(").concat(p,")\\b")},{begin:"\\b(".concat(m,")\\b((").concat(h,")\\b|\\.)?|(").concat(h,")\\b")},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,v],subLanguage:"css"}},b={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,v]},A={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:c+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},x=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,_,y,b,D,{match:/\$\d+/},g];v.contains=x.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(x)});var w,C=[].concat(A,v.contains),E=C.concat([{begin:/\(/,end:/\)/,keywords:f,contains:["self"].concat(C)}]),k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:E},F={variants:[{match:[/class/,/\s+/,c,/\s+/,/extends/,/\s+/,s.concat(c,"(",s.concat(/\./,c),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,c],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:s.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[].concat(i,r)}},B={variants:[{match:[/function/,/\s+/,c,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[k],illegal:/%/},T={match:s.concat(/\b/,(w=[].concat(o,["super","import"]),s.concat("(?!",w.join("|"),")")),c,s.lookahead(/\(/)),className:"title.function",relevance:0},O={begin:s.concat(/\./,s.lookahead(s.concat(c,/(?![0-9A-Za-z$_(])/))),end:c,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},R={match:[/get|set/,/\s+/,c,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},k]},M="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",N={match:[/const|var|let/,/\s+/,c,/\s*/,/=\s*/,/(async\s*)?/,s.lookahead(M)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[k]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:E,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,_,y,b,D,A,{match:/\$\d+/},g,S,{className:"attr",begin:c+s.lookahead(":"),relevance:0},N,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[A,u.REGEXP_MODE,{className:"function",begin:M,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:E}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:d.begin,"on:begin":d.isTrulyOpeningTag,end:d.end}],subLanguage:"xml",contains:[{begin:d.begin,end:d.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[k,u.inherit(u.TITLE_MODE,{begin:c,className:"title.function"})]},{match:/\.\.\./,relevance:0},O,{match:"\\$"+c,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[k]},T,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},F,R,{match:/\$[(.]/}]}}}(),$s=b({name:"TypeSelect",inject:["designer"],props:{disabled:Boolean},computed:{t:function(){return this.designer.setupState.t},activeRule:function(){return this.designer.setupState.activeRule},customForm:function(){return this.designer.setupState.customForm},menus:function(){var e=this,t=[],n=this.designer.setupState;if(this.activeRule){var i=this.activeRule._menu.name,r=n.getConfig("switchType",[]);if(!1===r)return t;var o=[];r.forEach(function(e){var t;e.indexOf(i)>-1&&(t=o).push.apply(t,g(e))}),(o=o.filter(function(e,t){return e!==i&&o.indexOf(e)===t})).length?n.menuList.forEach(function(e){e.list.forEach(function(e){o.indexOf(e.name)>-1&&t.push(e)})}):n.menuList.forEach(function(n){n.name===e.activeRule._menu.menu&&n.list.forEach(function(e){e.name!==i&&t.push(e)})})}return t.filter(function(t){return-1===e.designer.setupState.hiddenItem.indexOf(t.name)})}},methods:{handleCommand:function(e){var t,n=this,i=this.activeRule,r=this.activeRule;r._menu.inside||(r=r.__fc__.parent.rule);var o=r.__fc__.parent.rule.children,a=this.designer.setupState.makeRule(e),l=a;"DragTool"===a.type&&(l=a.children[0]),l.field&&i.field?["title","info","field","validate","control","$required"].forEach(function(e){l[e]=i[e]}):null!=(t=null==i?void 0:i.computed)&&t.hidden&&(l.computed={hidden:i.computed.hidden}),i.name&&(l.name=i.name),["name","id","on"].forEach(function(e){i[e]&&(l[e]=i[e])}),o.splice(o.indexOf(r),1,a),this.$nextTick(function(){n.designer.setupState.triggerActive(l)})}}}),Qs={key:0,class:"fc-icon icon-down"};/*! `javascript` grammar compiled for Highlight.js 11.9.0 */var Ys,qs=hu($s,[["render",function(e,t,n,i,r,o){var a=w("el-tag"),l=w("el-dropdown-item"),u=w("el-dropdown-menu"),s=w("el-dropdown");return P(),G(s,{class:"_fd-type-select",trigger:"click",size:"default","popper-class":"_fd-type-select-pop",disabled:e.disabled||!e.menus.length,onCommand:e.handleCommand},{dropdown:$(function(){return[x(u,null,{default:$(function(){return[(P(!0),L(X,null,J(e.menus,function(t){return P(),G(l,{command:t,key:t.name},{default:$(function(){return[j("div",null,[j("i",{class:Y(["fc-icon",t.icon||"icon-input"])},null,2),Z(K(e.t("com."+t.name+".name")||t.label),1)])]}),_:2},1032,["command"])}),128))]}),_:1})]}),default:$(function(){return[x(a,{type:"success",effect:"plain","disable-transitions":""},{default:$(function(){return[e.activeRule?(P(),L(X,{key:0},[Z(K(e.t("com."+e.activeRule._menu.name+".name")||e.activeRule._menu.label)+" ",1),!e.disabled&&e.menus.length?(P(),L("i",Qs)):Q("",!0)],64)):(P(),L(X,{key:1},[Z(K(e.t("com."+e.customForm.config.name+".name")||e.customForm.config.label||e.customForm.config.name),1)],64))]}),_:1})]}),_:1},8,["disabled","onCommand"])}]]),Ks={exports:{}},Xs={},Js={exports:{}},Zs={},ec={};function tc(){if(Ys)return ec;function e(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function n(n,i){this.__indent_cache=new t(n,i),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return Ys=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},t.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},t.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},t.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},n.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},n.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},n.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},n.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},n.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},ec.Output=n,ec}var nc,ic={};function rc(){if(nc)return ic;return nc=1,ic.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null},ic}var oc,ac={};function lc(){return oc||(oc=1,function(e){var t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",r="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",o="(?:"+r+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+n+"])",a="(?:"+r+"|["+t+n+i+"])*";e.identifier=new RegExp(o+a,"g"),e.identifierStart=new RegExp(o),e.identifierMatch=new RegExp("(?:"+r+"|["+t+n+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(ac)),ac}var uc,sc,cc={},dc={};function fc(){if(uc)return dc;function e(e,n){this.raw_options=t(e,n),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var i,r={};for(i in e=n(e))i!==t&&(r[i]=e[i]);if(t&&e[t])for(i in e[t])r[i]=e[t][i];return r}function n(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}return uc=1,e.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==y(n)?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},e.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},e.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},e.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},e.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return-1===t.indexOf(e)})},dc.Options=e,dc.normalizeOpts=n,dc.mergeOpts=t,dc}function pc(){if(sc)return cc;sc=1;var e=fc().Options,t=["before-newline","after-newline","preserve-newline"];function n(n){e.call(this,n,"js");var i=this.raw_options.brace_style||null;"expand-strict"===i?this.raw_options.brace_style="expand":"collapse-preserve-inline"===i?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var r=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o<r.length;o++)"preserve-inline"===r[o]?this.brace_preserve_inline=!0:this.brace_style=r[o];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return n.prototype=new e,cc.Options=n,cc}var hc,mc={},gc={};function vc(){if(hc)return gc;hc=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},t.prototype.__match=function(t,n){t.lastIndex=n;var i=t.exec(this.__input);return i&&!(e&&t.sticky)&&i.index!==n&&(i=null),i},t.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},t.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},t.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},t.prototype.read=function(e,t,n){var i,r="";return e&&((i=this.match(e))&&(r+=i[0])),t&&(i||!e)&&(r+=this.readUntil(t,n)),r},t.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,n){var i=null,r="g";return n&&e&&(r="y"),"string"==typeof t&&""!==t?i=new RegExp(t,r):t&&(i=new RegExp(t.source,r)),i},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},gc.InputScanner=t,gc}var _c,yc={},bc={};var Dc,Ac,xc,wc={},Cc={};function Ec(){if(Dc)return Cc;function e(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}return Dc=1,e.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},Cc.Pattern=e,Cc}function kc(){if(xc)return yc;xc=1;var e=vc().InputScanner,t=rc().Token,n=function(){if(_c)return bc;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return _c=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},e.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},e.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},bc.TokenStream=e,bc}().TokenStream,i=function(){if(Ac)return wc;Ac=1;var e=Ec().Pattern;function t(t,n){e.call(this,t,n),n?this._line_regexp=this._input.get_regexp(n._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},t.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,i=[],r=e.exec(t);r;)i.push(t.substring(n,r.index)),n=r.index+r[0].length,r=e.exec(t);return n<t.length?i.push(t.substring(n,t.length)):i.push(""),i},wc.WhitespacePattern=t,wc}().WhitespacePattern,r={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(t,n){this._input=new e(t),this._options=n||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};return o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new n,this._reset();for(var e,i=new t(r.START,""),o=null,a=[],l=new n;i.type!==r.EOF;){for(e=this._get_next_token(i,o);this._is_comment(e);)l.add(e),e=this._get_next_token(i,o);l.isEmpty()||(e.comments_before=l,l=new n),e.parent=o,this._is_opening(e)?(a.push(o),o=e):o&&this._is_closing(e,o)&&(e.opened=o,o.closed=e,o=a.pop(),e.parent=o),e.previous=i,i.next=e,this.__tokens.add(e),i=e}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(r.RAW,n):this._create_token(r.EOF,"")},o.prototype._is_comment=function(e){return!1},o.prototype._is_opening=function(e){return!1},o.prototype._is_closing=function(e,t){return!1},o.prototype._create_token=function(e,n){return new t(e,n,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},yc.Tokenizer=o,yc.TOKEN=r,yc}var Fc,Sc={};function Bc(){if(Fc)return Sc;function e(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}return Fc=1,e.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},Sc.Directives=e,Sc}var Tc,Oc,Rc,Mc,Nc={};function Ic(){if(Tc)return Nc;Tc=1;var e=Ec().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function n(n,i){e.call(this,n,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var r=new e(n);this.__patterns={handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:r.starting_with(/{{{/).until_after(/}}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),php:r.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:r.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:r.starting_with(/{%/).until_after(/%}/),django_value:r.starting_with(/{{/).until_after(/}}/),django_comment:r.starting_with(/{#/).until_after(/#}/),smarty:r.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:r.starting_with(/{\*/).until_after(/\*}/),smarty_literal:r.starting_with(/{literal}/).until_after(/{\/literal}/)}}return n.prototype=new e,n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){this.__set_templated_pattern()},n.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},n.prototype.read_options=function(e){var n=this._create();for(var i in t)n._disabled[i]=-1===e.templating.indexOf(i);return n._update(),n},n.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},n.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},n.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},n.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&"?"===n&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&"%"===n&&(e=e||this.__patterns.erb.read())}else"{"===t&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},Nc.TemplatablePattern=n,Nc}function Lc(){if(Oc)return mc;Oc=1;var e=vc().InputScanner,t=kc().Tokenizer,n=kc().TOKEN,i=Bc().Directives,r=lc(),o=Ec().Pattern,a=Ic().TemplatablePattern;function l(e,t){return-1!==t.indexOf(e)}var u={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},s=new i(/\/\*/,/\*\//),c=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,d=/[0-9]/,f=/[^\d\.]/,p=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),h=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";h=(h="\\?\\.(?!\\d) "+(h=h.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var m,g=new RegExp(h),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),_=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),y=new RegExp("^(?:"+_.join("|")+")$"),b=function(e,n){t.call(this,e,n),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var i=new o(this._input),l=new a(this._input).read_options(this._options);this.__patterns={template:l,identifier:l.starting_with(r.identifier).matching(r.identifierMatch),number:i.matching(c),punct:i.matching(g),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(r.lineBreak),shebang:i.starting_with(/#!/).until_after(r.lineBreak),xml:i.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:l.until(/['\\\n\r\u2028\u2029]/),double_quote:l.until(/["\\\n\r\u2028\u2029]/),template_text:l.until(/[`\\$]/),template_expression:l.until(/[`}\\]/)}};return(b.prototype=new t)._is_comment=function(e){return e.type===u.COMMENT||e.type===u.BLOCK_COMMENT||e.type===u.UNKNOWN},b.prototype._is_opening=function(e){return e.type===u.START_BLOCK||e.type===u.START_EXPR},b.prototype._is_closing=function(e,t){return(e.type===u.END_BLOCK||e.type===u.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},b.prototype._reset=function(){m=!1},b.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(u.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(i))||this._read_string(i))||this._read_pair(i,this._input.peek(1)))||this._read_word(e))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,e))||this._read_xml(i,e))||this._read_punctuation())||this._create_token(u.UNKNOWN,this._input.next())},b.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(r.allLineBreaks,"\n"),e.type!==u.DOT&&(e.type!==u.RESERVED||"set"!==e.text&&"get"!==e.text)&&y.test(t)?"in"!==t&&"of"!==t||e.type!==u.WORD&&e.type!==u.STRING?this._create_token(u.RESERVED,t):this._create_token(u.OPERATOR,t):this._create_token(u.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(u.WORD,t):void 0},b.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(u.START_EXPR,e):")"===e||"]"===e?t=this._create_token(u.END_EXPR,e):"{"===e?t=this._create_token(u.START_BLOCK,e):"}"===e?t=this._create_token(u.END_BLOCK,e):";"===e?t=this._create_token(u.SEMICOLON,e):"."===e&&f.test(this._input.peek(1))?t=this._create_token(u.DOT,e):","===e&&(t=this._create_token(u.COMMA,e)),t&&this._input.next(),t},b.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(u.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},b.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(u.EQUALS,e):"?."===e?this._create_token(u.DOT,e):this._create_token(u.OPERATOR,e)},b.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(u.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(u.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(d)){do{n+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(r.newline);)t+=this._input.next();return m=!0,this._create_token(u.COMMENT,t)}}else if(m&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return m=!1,this._create_token(u.COMMENT,t);return null},b.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=s.get_directives(n);i&&"start"===i.ignore&&(n+=s.readIgnored(this._input)),n=n.replace(r.allLineBreaks,"\n"),(t=this._create_token(u.BLOCK_COMMENT,n)).directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(u.COMMENT,n))}return t},b.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var n=this._input.next();return this.has_char_escapes=!1,n+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(n=function(t){for(var n="",i=0,r=new e(t),o=null;r.hasNext();)if((o=r.match(/([\s]|[^\\]|\\\\)+/g))&&(n+=o[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())o=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){n+="\\",r.hasNext()&&(n+=r.next());continue}(o=r.match(/u([0-9A-Fa-f]{4})/g))||(o=r.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!o||(i=parseInt(o[1],16))>126&&i<=255&&0===o[0].indexOf("x"))return t;n+=i>=0&&i<32||i>1114111?"\\"+o[0]:34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return n}(n)),this._input.peek()===t&&(n+=this._input.next()),n=n.replace(r.allLineBreaks,"\n"),this._create_token(u.STRING,n)}return null},b.prototype._allow_regexp_or_xml=function(e){return e.type===u.RESERVED&&l(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===u.END_EXPR&&")"===e.text&&e.opened.previous.type===u.RESERVED&&l(e.opened.previous.text,["if","while","for"])||l(e.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},b.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),i=!1,o=!1;this._input.hasNext()&&(i||o||this._input.peek()!==e)&&!this._input.testChar(r.newline);)n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(r.identifier)),this._create_token(u.STRING,n)}return null},b.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",i=this.__patterns.xml.read_match();if(i){for(var o=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),a=0===o.indexOf("{"),l=0;i;){var s=!!i[1],c=i[2];if(!(!!i[i.length-1]||"![CDATA["===c.slice(0,8))&&(c===o||a&&c.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(s?--l:++l),n+=i[0],l<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(r.allLineBreaks,"\n"),this._create_token(u.STRING,n)}}return null},b.prototype._read_string_recursive=function(e,t,n){var i,o;"'"===e?o=this.__patterns.single_quote:'"'===e?o=this.__patterns.double_quote:"`"===e?o=this.__patterns.template_text:"}"===e&&(o=this.__patterns.template_expression);for(var a=o.read(),l="";this._input.hasNext();){if((l=this._input.next())===e||!t&&r.newline.test(l)){this._input.back();break}"\\"===l&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),l+=this._input.next()):n&&("${"===n&&"$"===l&&"{"===this._input.peek()&&(l+=this._input.next()),n===l&&(l+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(l+=this._input.next()))),a+=l+=o.read()}return a},mc.Tokenizer=b,mc.TOKEN=u,mc.positionable_operators=p.slice(),mc.line_starters=v.slice(),mc}function Pc(){if(Rc)return Zs;Rc=1;var e=tc().Output,t=rc().Token,n=lc(),i=pc().Options,r=Lc().Tokenizer,o=Lc().line_starters,a=Lc().positionable_operators,l=Lc().TOKEN;function u(e,t){return-1!==t.indexOf(e)}function s(e){return e.replace(/^\s+/g,"")}function c(e,t){return e&&e.type===l.RESERVED&&e.text===t}function d(e,t){return e&&e.type===l.RESERVED&&u(e.text,t)}var f=["case","return","do","if","throw","else","await","break","continue","async"],p=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}(["before-newline","after-newline","preserve-newline"]),h=[p.before_newline,p.preserve_newline],m="BlockStatement",g="Statement",v="ObjectLiteral",_="ArrayLiteral",y="ForInitializer",b="Conditional",D="Expression";function A(e,t){t.multiline_frame||t.mode===y||t.mode===b||e.remove_indent(t.start_line_index)}function x(e){return e===_}function w(e){return u(e,[D,y,b])}function C(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new i(t)}C.prototype.create_flags=function(e,n){var i=0;return e&&(i=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>i&&(i=e.line_indent_level)),{mode:n,parent:e,last_token:e?e.last_token:new t(l.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:i,alignment:0,line_indent_level:e?e.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0}},C.prototype._reset=function(t){var n=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,n),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(m);var i=new r(t,this._options);return this._tokens=i.tokenize(),t},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&n.lineBreak.test(e||"")&&(t=e.match(n.lineBreak)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return this._output.get_code(t)},C.prototype.handle_token=function(e,t){e.type===l.START_EXPR?this.handle_start_expr(e):e.type===l.END_EXPR?this.handle_end_expr(e):e.type===l.START_BLOCK?this.handle_start_block(e):e.type===l.END_BLOCK?this.handle_end_block(e):e.type===l.WORD||e.type===l.RESERVED?this.handle_word(e):e.type===l.SEMICOLON?this.handle_semicolon(e):e.type===l.STRING?this.handle_string(e):e.type===l.EQUALS?this.handle_equals(e):e.type===l.OPERATOR?this.handle_operator(e):e.type===l.COMMA?this.handle_comma(e):e.type===l.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===l.COMMENT?this.handle_comment(e,t):e.type===l.DOT?this.handle_dot(e):e.type===l.EOF?this.handle_eof(e):(e.type,l.UNKNOWN,this.handle_unknown(e,t))},C.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,i=this._options.keep_array_indentation&&x(this._flags.mode);if(e.comments_before)for(var r=e.comments_before.next();r;)this.handle_whitespace_and_comments(r,t),this.handle_token(r,t),r=e.comments_before.next();if(i)for(var o=0;o<n;o+=1)this.print_newline(o>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a<n;a+=1)this.print_newline(!0,t)}};var E=["async","break","continue","return","throw","yield"];return C.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t;if(u(this._flags.last_token.text,a)||u(e.text,a)){var i=u(this._flags.last_token.text,a)&&u(this._options.operator_position,h)||u(e.text,a);n=n&&i}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,E))return;this._output.set_wrap_point()}}},C.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==l.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var n=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&c(n,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},C.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||x(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},C.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===l.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},C.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g&&A(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.start_of_object_property=function(){return this._flags.parent.mode===v&&this._flags.mode===g&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"]))},C.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||d(this._flags.last_token,["var","let","const"])&&e.type===l.WORD)||c(this._flags.last_token,"do"))||!(this._flags.parent.mode===v&&this._flags.mode===g)&&d(this._flags.last_token,E)&&!e.newlines)||c(this._flags.last_token,"else")&&!(c(e,"if")&&!e.comments_before))||this._flags.last_token.type===l.END_EXPR&&(this._previous_flags.mode===y||this._previous_flags.mode===b))||this._flags.last_token.type===l.WORD&&this._flags.mode===m&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==l.WORD&&e.type!==l.RESERVED)||this._flags.mode===v&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"])))&&(this.set_mode(g),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,d(e,["do","for","if","while"])),!0)},C.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=D;if("["===e.text){if(this._flags.last_token.type===l.WORD||")"===this._flags.last_token.text)return d(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=_,x(this._flags.mode)&&("["===this._flags.last_token.text||","===this._flags.last_token.text&&("]"===this._last_last_text||"}"===this._last_last_text))&&(this._options.keep_array_indentation||this.print_newline()),u(this._flags.last_token.type,[l.START_EXPR,l.END_EXPR,l.WORD,l.OPERATOR,l.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===l.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=y):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=b):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(u(this._flags.last_token.text,o)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===l.EQUALS||this._flags.last_token.type===l.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===l.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);d(n,["async","function"])||"*"===n.text&&d(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===v?("{"===n.text||","===n.text||"*"===n.text&&("{"===i.text||","===i.text))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===l.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(u(this._last_last_text,["function","yield"])||this._flags.mode===v&&u(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===l.START_BLOCK?this.print_newline():(this._flags.last_token.type===l.END_EXPR||this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.END_BLOCK||"."===this._flags.last_token.text||this._flags.last_token.type===l.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},C.prototype.handle_end_expr=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==l.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),A(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===b&&(this._previous_flags.mode=D,this._flags.do_block=!1,this._flags.do_while=!1)},C.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===l.END_EXPR?(this.set_mode(m),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(m):n&&(u(n.text,[":",","])&&u(t.type,[l.STRING,l.WORD,l.RESERVED])||u(t.text,["get","set","..."])&&u(n.type,[l.WORD,l.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(n.text,[":",","])?this.set_mode(m):this.set_mode(v):this._flags.last_token.type===l.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(m):u(this._flags.last_token.type,[l.EQUALS,l.START_EXPR,l.COMMA,l.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(v):this.set_mode(m),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!t.comments_before&&"}"===t.text,r=i&&"function"===this._flags.last_word&&this._flags.last_token.type===l.END_EXPR;if(this._options.brace_preserve_inline){var o=0,a=null;this._flags.inline_frame=!0;do{if(o+=1,(a=this._tokens.peek(o-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==l.EOF&&(a.type!==l.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==l.OPERATOR&&(r||this._flags.last_token.type===l.EQUALS||d(this._flags.last_token,f)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(x(this._previous_flags.mode)&&(this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.COMMA)&&((this._flags.last_token.type===l.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==l.OPERATOR&&this._flags.last_token.type!==l.START_EXPR&&(u(this._flags.last_token.type,[l.START_BLOCK,l.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),!i&&(!this._options.brace_preserve_inline||!this._flags.inline_frame)&&this.print_newline()},C.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===g;)this.restore_mode();var t=this._flags.last_token.type===l.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(x(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},C.prototype.handle_word=function(e){if(e.type===l.RESERVED)if(u(e.text,["set","get"])&&this._flags.mode!==v)e.type=l.WORD;else if("import"===e.text&&u(this._tokens.peek().text,["(","."]))e.type=l.WORD;else if(u(e.text,["as","from"])&&!this._flags.import_block)e.type=l.WORD;else if(this._flags.mode===v){":"===this._tokens.peek().text&&(e.type=l.WORD)}if(this.start_of_statement(e)?d(this._flags.last_token,["var","let","const"])&&e.type===l.WORD&&(this._flags.declaration_statement=!0):!e.newlines||w(this._flags.mode)||this._flags.last_token.type===l.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===l.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(c(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&c(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(e,["case","default"]))return this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if((this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.EQUALS||this._flags.last_token.type===l.OPERATOR)&&!this.start_of_object_property()&&!(u(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===v)&&this.allow_wrap_or_preserved_newline(e),c(e,"function"))return(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===l.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,E)||c(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===l.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(w(this._flags.mode)||x(this._flags.mode))||this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===l.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":d(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===l.SEMICOLON&&this._flags.mode===m?t="NEWLINE":this._flags.last_token.type===l.SEMICOLON&&w(this._flags.mode)?t="SPACE":this._flags.last_token.type===l.STRING?t="NEWLINE":this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD||"*"===this._flags.last_token.text&&(u(this._last_last_text,["function","yield"])||this._flags.mode===v&&u(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===l.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===l.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),d(e,o)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(e,["else","catch","finally"]))?(this._flags.last_token.type!==l.END_BLOCK||this._previous_flags.mode!==m||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?d(this._flags.last_token,f)||"declare"===this._flags.last_token.text&&d(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==l.END_EXPR?(this._flags.last_token.type!==l.START_EXPR||!d(e,["var","let","const"]))&&":"!==this._flags.last_token.text&&(c(e,"if")&&c(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(e,o)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);e.previous&&(e.previous.type===l.WORD||e.previous.type===l.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===l.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&c(e,"from")&&(this._flags.import_block=!1))},C.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&c(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},C.prototype.handle_string=function(e){e.text.startsWith("`")&&0===e.newlines&&""===e.whitespace_before&&(")"===e.previous.text||this._flags.last_token.type===l.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.EQUALS||this._flags.last_token.type===l.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==l.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},C.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},C.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(w(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===v||this._flags.mode===g&&this._flags.parent.mode===v?(this._flags.mode===g&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},C.prototype.handle_operator=function(e){var t="*"===e.text&&(d(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[l.START_BLOCK,l.COMMA,l.END_BLOCK,l.SEMICOLON])),n=u(e.text,["-","+"])&&(u(this._flags.last_token.type,[l.START_BLOCK,l.START_EXPR,l.EQUALS,l.OPERATOR])||u(this._flags.last_token.text,o)||","===this._flags.last_token.text);if(!this.start_of_statement(e)){var i=!t;this.handle_whitespace_and_comments(e,i)}if("*"!==e.text||this._flags.last_token.type!==l.DOT)if("::"!==e.text)if(u(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===l.OPERATOR&&u(this._options.operator_position,h)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==l.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var r=!0,s=!0,c=!1;if(":"===e.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,c=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&u(e.text,a)){var v=":"===e.text,_=v&&c,y=v&&!c;switch(this._options.operator_position){case p.before_newline:return this._output.space_before_token=!y,this.print_token(e),(!v||_)&&this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case p.after_newline:return this._output.space_before_token=!0,!v||_?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case p.preserve_newline:return y||this.allow_wrap_or_preserved_newline(e),r=!(this._output.just_added_newline()||y),this._output.space_before_token=r,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),r=!1;var b=this._tokens.peek();s=b&&u(b.type,[l.WORD,l.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),r=this._flags.last_token.type===l.START_BLOCK,s=!1;else if(u(e.text,["--","++","!","~"])||n){if((this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),r=!1,s=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var D=d(this._flags.last_token,f)&&e.newlines;D&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(D,!0)}";"===this._flags.last_token.text&&w(this._flags.mode)&&(r=!0),this._flags.last_token.type===l.RESERVED?r=!0:this._flags.last_token.type===l.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===l.OPERATOR&&(r=u(e.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(e.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode===m&&!this._flags.inline_frame||this._flags.mode===g)&&("{"===this._flags.last_token.text||";"===this._flags.last_token.text)&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(e),this._output.space_before_token=s}else this.print_token(e);else this.print_token(e)},C.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):n.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},C.prototype.print_block_commment=function(e,t){var i,r=function(e){for(var t=[],i=(e=e.replace(n.allLineBreaks,"\n")).indexOf("\n");-1!==i;)t.push(e.substring(0,i)),i=(e=e.substring(i+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),o=!1,a=!1,l=e.whitespace_before,u=l.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(r[0]),this.print_newline(!1,t),r.length>1){for(o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].trim().charAt(0)!==t)return!1;return!0}(r=r.slice(1),"*"),a=function(e,t){for(var n,i=0,r=e.length;i<r;i++)if((n=e[i])&&0!==n.indexOf(t))return!1;return!0}(r,l),o&&(this._flags.alignment=1),i=0;i<r.length;i++)o?(this.print_token_line_indentation(e),this._output.add_token(s(r[i]))):a&&r[i]?(this.print_token_line_indentation(e),this._output.add_token(r[i].substring(u))):(this._output.current_line.set_indent(-1),this._output.add_token(r[i])),this.print_newline(!1,t);this._flags.alignment=0}},C.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},C.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),d(this._flags.last_token,f)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},C.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},C.prototype.handle_eof=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e)},Zs.Beautifier=C,Zs}var jc,Vc,zc,Hc={exports:{}},Uc={},Wc={};function Gc(){if(jc)return Wc;jc=1;var e=fc().Options;function t(t){e.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<i.length;r++)"expand"!==i[r]?this.brace_style="collapse":this.brace_style=i[r]}return t.prototype=new e,Wc.Options=t,Wc}function $c(){if(zc)return Hc.exports;zc=1;var e=function(){if(Vc)return Uc;Vc=1;var e=Gc().Options,t=tc().Output,n=vc().InputScanner,i=new(0,Bc().Directives)(/\/\*/,/\*\//),r=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,a=/\s/,l=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,s=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function c(t,n){this._source_text=t||"",this._options=new e(n),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return c.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},c.prototype.eatWhitespace=function(e){for(var t=a.test(this._input.peek()),n=0;a.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},c.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},c.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},c.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},c.prototype.indent=function(){this._indentLevel++},c.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},c.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,c=this._options.eol;"auto"===c&&(c="\n",e&&r.test(e||"")&&(c=e.match(r)[0]));var d=(e=e.replace(o,"\n")).match(/^[\t ]*/)[0];this._output=new t(this._options,d),this._input=new n(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var f,p,h=0,m=!1,g=!1,v=!1,_=!1,y=!1,b=this._ch,D=!1;f=""!==this._input.read(l),p=b,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),b=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var A=this._input.read(u),x=i.get_directives(A);x&&"start"===x.ignore&&(A+=i.readIgnored(this._input)),this.print_string(A),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(s)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(f),this.print_string(this._ch);var w=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);w.match(/[ :]$/)&&(w=this.eatString(": ").replace(/\s+$/,""),this.print_string(w),this._output.space_before_token=!0),0===h&&-1!==w.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(f),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===h&&-1!==C.indexOf(":")?(g=!0,this.indent()):C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0===h&&!g&&(_=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(f),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),_=!1,v?(v=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===p?this._output.space_before_token=!1:","!==p&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var E=0;E<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;E++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[E])){D=!0;break}!m&&!v||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||_||0!==h?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var k='"'===p||"'"===p;this.preserveSingleSpace(k||f),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)D=!1,0===h?(g&&(this.outdent(),g=!1),_=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),h++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),h&&(h--,this.outdent()));else{var F=!1;this._input.lookBack("with")&&(F=!0),this.preserveSingleSpace(f||F),this.print_string(this._ch),g&&"$"===p&&this._options.selector_separator_newline?(this._output.add_new_line(),y=!0):(this.eatWhitespace(),h++,this.indent())}else if(")"===this._ch)h&&(h--,this.outdent()),y&&";"===this._input.peek()&&this._options.selector_separator_newline&&(y=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!y||0!==h||_?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==h)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(f),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),a.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var S='"'===p||"'"===p;this.preserveSingleSpace(S||f),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&D&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&a.test(this._ch)&&(this._ch=""));return this._output.get_code(c)},Uc.Beautifier=c,Uc}().Beautifier,t=Gc().Options;return Hc.exports=function(t,n){return new e(t,n).beautify()},Hc.exports.defaultOptions=function(){return new t},Hc.exports}var Qc,Yc={exports:{}},qc={},Kc={};function Xc(){if(Qc)return Kc;Qc=1;var e=fc().Options;function t(t){e.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Kc.Options=t,Kc}var Jc,Zc,ed,td,nd={};function id(){if(Jc)return nd;Jc=1;var e=kc().Tokenizer,t=kc().TOKEN,n=Bc().Directives,i=Ic().TemplatablePattern,r=Ec().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},a=new n(/<\!--/,/-->/),l=function(t,n){e.call(this,t,n),this._current_tag_name="";var o=new i(this._input).read_options(this._options),a=new r(this._input);if(this.__patterns={word:o.until(/[\n\r\t <]/),word_control_flow_close_excluded:o.until(/[\n\r\t <}]/),single_quote:o.until_after(/'/),double_quote:o.until_after(/"/),attribute:o.until(/[\n\r\t =>]|\/>/),element_name:o.until(/[\n\r\t >\/]/),angular_control_flow_start:a.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:a.starting_with(/{{!--/).until_after(/--}}/),handlebars:a.starting_with(/{{/).until_after(/}}/),handlebars_open:a.until(/[\n\r\t }]/),handlebars_raw_close:a.until(/}}/),comment:a.starting_with(/<!--/).until_after(/-->/),cdata:a.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:a.starting_with(/<!\[/).until_after(/]>/),processing:a.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var l=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=a.matching(l).until_after(l)}};return(l.prototype=new e)._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return e.type===o.TAG_OPEN||e.type===o.CONTROL_FLOW_OPEN},l.prototype._is_closing=function(e,t){return e.type===o.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===o.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},l.prototype._reset=function(){this._current_tag_name=""},l.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(o.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_script_and_style(i,e))||this._read_control_flows(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i,t))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(o.UNKNOWN,this._input.next())},l.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=a.get_directives(n))&&"start"===i.ignore&&(n+=a.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(o.COMMENT,n)).directives=i));return t},l.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);("!"===i||"?"===i)&&(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(o.COMMENT,n)).directives=null)}return t},l.prototype._read_open=function(e,t){var n=null,i=null;return(!t||t.type===o.CONTROL_FLOW_OPEN)&&"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(o.TAG_OPEN,n)),i},l.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return(!t||t.type===o.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(o.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(o.TAG_OPEN,n))),i},l.prototype._read_control_flows=function(e,t){var n="",i=null;if(!this._options.templating.includes("angular"))return i;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,a=0;!n.endsWith("{")||r!==a;){var l=this._input.next();if(null===l)break;"("===l?r++:")"===l&&a++,n+=l}i=this._create_token(o.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===o.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(o.CONTROL_FLOW_CLOSE,n));return i},l.prototype._read_close=function(e,t){var n=null,i=null;return t&&t.type===o.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(o.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(o.TAG_CLOSE,"}}"))),i},l.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(o.EQUALS,this._input.next());else if('"'===e||"'"===e){var a=this._input.next();a+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(o.VALUE,a)}else(r=this.__patterns.attribute.read())&&(i=t.type===o.EQUALS?this._create_token(o.VALUE,r):this._create_token(o.ATTRIBUTE,r));return i},l.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},l.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===o.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(o.TEXT,i):null},l.prototype._read_script_and_style=function(e,t){if(t.type===o.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var n=t.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var i=this._read_comment_or_cdata(e);if(i)return i.type=o.TEXT,i;var r=this._input.readUntil(new RegExp("</"+n+"[\\n\\r\\t ]*?>","ig"));if(r)return this._create_token(o.TEXT,r)}}return null},l.prototype._read_content_word=function(e,t){var n="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===o.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n?this._create_token(o.TEXT,n):null},nd.Tokenizer=l,nd.TOKEN=o,nd}function rd(){if(Zc)return qc;Zc=1;var e=Xc().Options,t=tc().Output,n=id().Tokenizer,i=id().TOKEN,r=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,a=function(e,n){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new t(e,n)};a.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},a.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},a.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},a.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},a.prototype.print_preserved_newlines=function(e){var t=0;e.type!==i.TEXT&&e.previous.type!==i.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},a.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},a.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},a.prototype.print_newline=function(e){this._output.add_new_line(e)},a.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},a.prototype.indent=function(){this.indent_level++},a.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},a.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var l=function(e,t){var n=null,r=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==i.EOF&&e.closed!==n;){if(n.type===i.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===i.EQUALS&&n.next.next&&n.next.next.type===i.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function u(e,t){return-1!==t.indexOf(e)}function s(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function c(e){this._printer=e,this._current_frame=null}function d(t,n,i,r){this._source_text=t||"",n=n||{},this._js_beautify=i,this._css_beautify=r,this._tag_stack=null;var o=new e(n,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}c.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},c.prototype.record_tag=function(e){var t=new s(this._current_frame,e,this._printer.indent_level);this._current_frame=t},c.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},c.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},c.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},c.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&r.test(e)&&(t=e.match(r)[0]));var l=(e=e.replace(o,"\n")).match(/^[\t ]*/)[0],u={text:"",type:""},s=new f(this._options),d=new a(this._options,l),p=new n(e,this._options).tokenize();this._tag_stack=new c(d);for(var h=null,m=p.next();m.type!==i.EOF;)m.type===i.TAG_OPEN||m.type===i.COMMENT?s=h=this._handle_tag_open(d,m,s,u,p):m.type===i.ATTRIBUTE||m.type===i.EQUALS||m.type===i.VALUE||m.type===i.TEXT&&!s.tag_complete?h=this._handle_inside_tag(d,m,s,u):m.type===i.TAG_CLOSE?h=this._handle_tag_close(d,m,s):m.type===i.TEXT?h=this._handle_text(d,m,s):m.type===i.CONTROL_FLOW_OPEN?h=this._handle_control_flow_open(d,m):m.type===i.CONTROL_FLOW_CLOSE?h=this._handle_control_flow_close(d,m):d.add_raw_token(m),u=h,m=p.next();return d._output.get_code(t)},d.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},d.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},d.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),n.indent_content&&!(n.is_unformatted||n.is_content_unformatted)&&(e.indent(),n.indent_content=!1),!n.is_inline_element&&!(n.is_unformatted||n.is_content_unformatted)&&e.set_wrap_point(),i},d.prototype._handle_inside_tag=function(e,t,n,r){var o=n.has_wrapped_attrs,a={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===i.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===i.ATTRIBUTE?e.set_space_before_token(!0):(t.type===i.EQUALS||t.type===i.VALUE&&t.previous.type===i.EQUALS)&&e.set_space_before_token(!1),t.type===i.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),o=o||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(r.type!==i.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),o=!0)),e.print_token(t),o=o||e.previous_token_wrapped(),n.has_wrapped_attrs=o),a},d.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},d.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,o=t.text,a=1,l="",u="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new d(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var s=e.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(o);if(!c)return void e.add_raw_token(t);l=s+c[1]+"\n",o=c[4],c[5]&&(u=s+c[5]),o=o.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&((c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0]))}if(o)if(r){var f=function(){this.eol="\n"};f.prototype=this._options.raw_options,o=r(s+o,new f)}else{var p=t.whitespace_before;p&&(o=o.replace(new RegExp("\n("+p+")?","g"),"\n")),o=s+o.replace(/\n/g,"\n"+s)}l&&(o=o?l+o+"\n"+u:l+u),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},d.prototype._handle_tag_open=function(e,t,n,r,o){var a=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==i.TAG_OPEN||a.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,a,n,r),a.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),a.start_tag_token=this._tag_stack.try_pop(a.tag_name)),a.is_start_tag&&this._is_wrap_attributes_force){var l,u=0;do{(l=o.peek(u)).type===i.ATTRIBUTE&&(a.attr_count+=1),u+=1}while(l.type!==i.EOF&&l.type!==i.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(a.alignment_size=t.text.length+1),!a.tag_complete&&!a.is_unformatted&&(e.alignment_size=a.alignment_size),a};var f=function(e,t,n){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",n){var r;this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(r=n.text.match(/^<([^\s>]*)/),this.tag_check=r?r[1]:""):(r=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=r?r[1]:"",(n.text.startsWith("{{#>")||n.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==n.next?this.tag_check=n.next.text.split(" ")[0]:this.tag_check=n.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),n.type===i.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||n.closed&&"/>"===n.closed.text;var o=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(o=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(o)))}else this.tag_complete=!0};d.prototype._get_tag_open_token=function(e){var t=new f(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||u(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&u(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&u(t.tag_check,this._options.content_unformatted),t.is_inline_element=u(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},d.prototype._set_tag_position=function(e,t,n,r,o){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),("script"===n.tag_name||"style"===n.tag_name)&&!(n.is_unformatted||n.is_content_unformatted)&&(n.custom_beautifier_name=l(n.tag_check,t)))),u(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&o.type===i.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var a=!1;a=(a=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(r.is_inline_element||r.is_unformatted)&&!(o.type===i.TAG_CLOSE&&n.start_tag_token===r)&&"TK_CONTENT"!==o.type,(n.is_content_unformatted||n.is_unformatted)&&(a=!1),a&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),!(n.is_inline_element||n.is_unformatted)&&("TK_CONTENT"!==o.type||n.is_content_unformatted)&&e.print_newline(!1),this._calcluate_parent_multiline(e,n)},d.prototype._calcluate_parent_multiline=function(e,t){t.parent&&e._output.just_added_newline()&&(!t.is_inline_element&&!t.is_unformatted||!t.parent.is_inline_element)&&(t.parent.multiline_content=!0)};var p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],h=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==p.indexOf(e.tag_name)){var n=e.parent.parent;(!n||-1===h.indexOf(n.tag_name))&&(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):("th"===e.tag_name||"td"===e.tag_name)&&(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},qc.Beautifier=d,qc}function od(){if(td)return Xs;td=1;var e=function(){if(Mc)return Js.exports;Mc=1;var e=Pc().Beautifier,t=pc().Options;return Js.exports=function(t,n){return new e(t,n).beautify()},Js.exports.defaultOptions=function(){return new t},Js.exports}(),t=$c(),n=function(){if(ed)return Yc.exports;ed=1;var e=rd().Beautifier,t=Xc().Options;return Yc.exports=function(t,n,i,r){return new e(t,n,i,r).beautify()},Yc.exports.defaultOptions=function(){return new t},Yc.exports}();function i(i,r,o,a){return n(i,r,o=o||e,a=a||t)}return i.defaultOptions=n.defaultOptions,Xs.js=e,Xs.css=t,Xs.html=i,Xs}!function(e){!function(e){var t=od();t.js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=function(e,t,n){var i=function(t,n){return e.js_beautify(t,n)};return i.js=e.js_beautify,i.css=t.css_beautify,i.html=n.html_beautify,i.js_beautify=e.js_beautify,i.css_beautify=t.css_beautify,i.html_beautify=n.html_beautify,i}(t,t,t)}(e)}(Ks);var ad=Ks.exports,ld=b({name:"Struct",emits:["update:modelValue"],props:{modelValue:[Object,Array,Function],title:String,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t:function(){return this.designer.setupState.t},configured:function(){return!ci.empty(this.modelValue)&&Object.keys(this.modelValue).length>0}},data:function(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue:function(){this.load()},visible:function(e){e&&this.load()}},methods:{load:function(){var e=this,t=Oi(Mi(this.modelValue?hi(this.modelValue):this.defaultValue));this.oldVal=t,this.$nextTick(function(){e.editor=D(pu(e.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:t?ad.js(t,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""}))})},onOk:function(){var e,t=(this.editor.getValue()||"").trim();try{e=new Function("return "+t)()}catch(fu){return xi(this.t("struct.errorMsg")),!1}return this.validate&&!1===this.validate(e)?(xi(this.t("struct.errorMsg")),!1):(this.visible=!1,Oi(e)!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),ud={class:"_fd-struct"},sd={key:0,ref:"editor"};var cd=hu(ld,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-badge"),u=w("el-dialog");return P(),L("div",ud,[x(l,{type:"warning","is-dot":"",hidden:!e.configured},{default:$(function(){return[j("div",{onClick:t[0]||(t[0]=function(t){return e.visible=!0})},[te(e.$slots,"default",{},function(){return[x(a,{class:"_fd-plain-button",plain:"",size:"small"},{default:$(function(){return[Z(K(e.title||e.t("struct.title")),1)]}),_:1})]})])]}),_:3},8,["hidden"]),x(u,{class:"_fd-struct-con",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.visible=t}),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:$(function(){return[j("div",null,[x(a,{onClick:t[1]||(t[1]=function(t){return e.visible=!1}),size:"default"},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1}),x(a,{type:"primary",onClick:e.onOk,size:"default",color:"#2f73ff"},{default:$(function(){return[Z(K(e.t("props.ok")),1)]}),_:1},8,["onClick"])])]}),default:$(function(){return[e.visible?(P(),L("div",sd,null,512)):Q("",!0)]}),_:1},8,["title","modelValue"])])}]]),dd=b({name:"PropsInput",components:{Struct:cd},inject:["designer"],data:function(){return{}},computed:{t:function(){return this.designer.setupState.t},activeRule:function(){return this.designer.setupState.activeRule},props:function(){var e,t=this,n=(null==(e=this.activeRule._fc_store)?void 0:e.props_keys)||[],i={};return n.forEach(function(e){t.activeRule.props&&null!=t.activeRule.props[e]&&(i[e]=t.activeRule.props[e])}),i}},methods:{onInput:function(e){var t=this;this.activeRule.props||(this.activeRule.props={}),this.activeRule._fc_store||(this.activeRule._fc_store={}),Object.keys(this.props).forEach(function(n){null==(e||{})[n]&&delete t.activeRule.props[n]}),function(){wi.apply(this,arguments)}(this.activeRule.props,e||{});var n=Object.keys(e||{});n.length?this.activeRule._fc_store.props_keys=n:delete this.activeRule._fc_store.props_keys}}});var fd=hu(dd,[["render",function(e,t,n,i,r,o){var a=w("Struct");return P(),G(a,{class:"_fd-props-input",modelValue:e.props,"onUpdate:modelValue":e.onInput,title:e.t("designer.customProps")},{default:$(function(){return t[0]||(t[0]=[j("i",{class:"fc-icon icon-edit"},null,-1)])}),_:1,__:[0]},8,["modelValue","onUpdate:modelValue","title"])}]]),pd=b({name:"LanguageConfig",inject:["designer"],computed:{localeOptions:function(){return this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"}])},t:function(){return this.designer.setupState.t}},data:function(){return{column:[],uni:0,selected:[]}},methods:{copy:function(e){Gi(e)},addColumn:function(){this.column.unshift({key:this.randomString(),input:!0})},saveColumn:function(e,t){e.input=t||!1;var n=this.designer.setupState.formOptions.language;this.localeOptions.forEach(function(t){n[t.value]||(n[t.value]={}),n[t.value][e.key]=e[t.value]})},rmColumn:function(e){var t=this.column[e];this.column.splice(e,1);var n=this.designer.setupState.formOptions.language;this.localeOptions.forEach(function(e){n[e.value]&&delete n[e.value][t.key]})},batchRmColumn:function(){var e=this;this.selected.forEach(function(t){e.rmColumn(e.column.indexOf(t))}),this.selected=[]},selectionChange:function(e){this.selected=e},randomString:function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<7;n++)t+=e.charAt(Math.floor(62*Math.random()));return e.charAt(this.uni++%26)+t}},mounted:function(){var e=this.designer.setupState.formOptions.language||{},t={};Object.keys(e).forEach(function(n){Object.keys(e[n]).forEach(function(i){t[i]||(t[i]={key:i}),t[i][n]=e[n][i]})}),this.column=Object.values(t)}}),hd={class:"_fd-language-config"},md={class:"_fc-l-label"},gd={class:"_fc-l-info"},vd={class:"_fd-lc-header"},_d={class:"_fd-lc-body"},yd={class:"_fd-lc-handle"},bd=["onClick"],Dd=["onClick"],Ad=["onClick"],xd=["onClick"];var wd=hu(pd,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-table-column"),u=w("el-input"),s=w("el-table");return P(),L("div",hd,[j("div",md,K(e.t("language.name")),1),j("div",gd,K(e.t("warning.language")),1),j("div",vd,[x(a,{size:"small",onClick:e.addColumn},{default:$(function(){return[Z(K(e.t("language.add")),1)]}),_:1},8,["onClick"]),x(a,{size:"small",type:"danger",plain:"",disabled:!e.selected.length,onClick:e.batchRmColumn},{default:$(function(){return[Z(K(e.t("language.batchRemove")),1)]}),_:1},8,["disabled","onClick"])]),j("div",_d,[x(s,{data:e.column,size:"small",ref:"table",onSelectionChange:e.selectionChange,"row-key":"key"},{default:$(function(){return[x(l,{type:"selection",width:"30px"}),x(l,{prop:"key",label:"Key",width:"90px"}),(P(!0),L(X,null,J(e.localeOptions,function(t){return P(),G(l,{key:t.value,prop:t.value,label:t.label,"min-width":"100px"},{default:$(function(n){return[n.row.input?(P(),G(u,{key:0,size:"small",modelValue:n.row[t.value],"onUpdate:modelValue":function(e){return n.row[t.value]=e},onBlur:function(t){return e.saveColumn(n.row,!0)}},null,8,["modelValue","onUpdate:modelValue","onBlur"])):(P(),L(X,{key:1},[Z(K(n.row[t.value]||"-"),1)],64))]}),_:2},1032,["prop","label"])}),128)),x(l,{width:"75px",label:e.t("tableOptions.handle"),fixed:"right"},{default:$(function(t){return[j("div",yd,[t.row.input?(P(),L("i",{key:1,class:"fc-icon icon-check",onClick:function(n){return e.saveColumn(t.row)}},null,8,Dd)):(P(),L("i",{key:0,class:"fc-icon icon-edit",onClick:function(e){return t.row.input=!0}},null,8,bd)),j("i",{class:"fc-icon icon-group",onClick:function(n){return e.copy(t.row.key)}},null,8,Ad),j("i",{class:"fc-icon icon-delete-circle",onClick:function(n){return e.rmColumn(t.$index)}},null,8,xd)])]}),_:1},8,["label"])]}),_:1},8,["data","onSelectionChange"])])])}]]),Cd=b({name:"StructEditor",props:{modelValue:[Object,Array,Function],format:Boolean,defaultValue:{require:!1}},emits:["blur","focus","update:modelValue"],inject:["designer"],data:function(){return{editor:null,visible:!1,err:!1,oldVal:null}},computed:{t:function(){return this.designer.setupState.t}},watch:{modelValue:function(e){if(this.editor){var t=e?this.toJson(e):"";this.oldVal=t;var n=this.editor.getScrollInfo().top;this.editor.setValue(t),this.editor.scrollTo(0,n)}}},mounted:function(){var e=this;this.$nextTick(function(){e.load()})},methods:{toJson:function(e){return this.format?ru.toJson(e,2):Oi(e)},load:function(){var e=this,t=this.modelValue?this.toJson(this.modelValue):"";this.oldVal=t,this.$nextTick(function(){e.editor=D(pu(e.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:t?ad.js(t,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""})),e.editor.on("blur",function(){e.$emit("blur")}),e.editor.on("focus",function(){e.$emit("focus")})})},save:function(){var e,t=(this.editor.getValue()||"").trim();try{e=new Function("return "+t)()}catch(fu){return xi(this.t("struct.errorMsg")),!1}return this.validate&&!1===this.validate(e)?(this.err=!0,!1):(this.visible=!1,this.toJson(e)!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),Ed={class:"_fd-struct-editor"},kd={ref:"editor"};var Fd=hu(Cd,[["render",function(e,t,n,i,r,o){return P(),L("div",Ed,[j("div",kd,null,512)])}]]),Sd=b({name:"JsonPreview",components:{StructEditor:Fd},inject:["designer"],data:function(){return{active:"rule",value:this.designer.setupState.getRule(),oldValue:""}},watch:{active:function(){this.updateValue()}},computed:{change:function(){return"rule"===this.active?this.designer.setupState.children:this.designer.setupState.formOptions},t:function(){return this.designer.setupState.t}},methods:{updateValue:function(){"rule"===this.active?this.value=this.designer.setupState.getRule():this.value=this.designer.setupState.getOptions()},handleFocus:function(){this.oldValue=ru.toJson(this.value)},handleBlur:function(){var e;this.$refs.editor.save()&&(e=ru.toJson(this.value))!==this.oldValue&&("rule"===this.active?this.designer.setupState.setRule(e):this.designer.setupState.setOptions(this.value||{}))}},mounted:function(){var e=this;this.$watch(function(){return e.change},function(){e.updateValue()},{deep:!0})}});var Bd=hu(Sd,[["render",function(e,t,n,i,r,o){var a=w("el-header"),l=w("StructEditor"),u=w("el-main"),s=w("el-container");return P(),G(s,{class:"_fc-json-preview"},{default:$(function(){return[x(a,{height:"40px",class:"_fc-l-tabs"},{default:$(function(){return[j("div",{class:Y(["_fc-l-tab",{active:"rule"===e.active}]),onClick:t[0]||(t[0]=function(t){return e.active="rule"})},K(e.t("designer.json")),3),j("div",{class:Y(["_fc-l-tab",{active:"options"===e.active}]),onClick:t[1]||(t[1]=function(t){return e.active="options"})},K(e.t("designer.form")),3)]}),_:1}),x(u,{style:{padding:"8px"}},{default:$(function(){return[x(l,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.value=t}),onBlur:e.handleBlur,onFocus:e.handleFocus,format:"",style:{height:"100%"}},null,8,["modelValue","onBlur","onFocus"])]}),_:1})]}),_:1})}]]),Td=b({name:"Warning",props:{tooltip:String},data:function(){return{}}}),Od=["innerHTML"],Rd={key:0,class:"_fd-warning-text"},Md={key:1,class:"fc-icon icon-question"};var Nd=hu(Td,[["render",function(e,t,n,i,r,o){var a=w("el-tooltip");return P(),G(a,{effect:"dark",placement:"top-start","popper-class":"_fd-warning-pop"},{content:$(function(){return[j("span",{innerHTML:e.tooltip},null,8,Od)]}),default:$(function(){return[e.$slots.default?(P(),L("span",Rd,[te(e.$slots,"default")])):(P(),L("i",Md))]}),_:3})}]]),Id=["props"],Ld=["class","style","directives"],Pd=["on","hook"],jd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[].concat(Id,g(n.normal||[])),r=[].concat(Ld,g(n.array||[])),o=[].concat(Pd,g(n.functional||[])),a=n.props||[];return e.reduce(function(e,t){for(var n in t)if(e[n])if(a.indexOf(n)>-1)e[n]=jd([t[n]],e[n]);else if(i.indexOf(n)>-1)e[n]=p(p({},e[n]),t[n]);else if(r.indexOf(n)>-1){var l=e[n]instanceof Array?e[n]:[e[n]],u=t[n]instanceof Array?t[n]:[t[n]];e[n]=[].concat(g(l),g(u))}else if(o.indexOf(n)>-1)for(var s in t[n])if(e[n][s]){var c=e[n][s]instanceof Array?e[n][s]:[e[n][s]],d=t[n][s]instanceof Array?t[n][s]:[t[n][s]];e[n][s]=[].concat(g(c),g(d))}else e[n][s]=t[n][s];else if("hook"===n)for(var f in t[n])e[n][f]?e[n][f]=Vd(e[n][f],t[n][f]):e[n][f]=t[n][f];else e[n]=t[n];else i.indexOf(n)>-1||o.indexOf(n)>-1||a.indexOf(n)>-1?e[n]=p({},t[n]):r.indexOf(n)>-1?e[n]=t[n]instanceof Array?g(t[n]):"object"==y(t[n])?p({},t[n]):t[n]:e[n]=t[n];return e},t)},Vd=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};Us.registerLanguage("javascript",Gs),Us.registerLanguage("xml",Ws);var zd=b({name:"FcDesigner",components:{Warning:Nd,JsonPreview:Bd,LanguageConfig:wd,PropsInput:fd,TypeSelect:qs,fcDraggable:tu,DragForm:ru.$form(),ViewForm:iu.$form(),EventConfig:zu},props:{menu:Array,height:[String,Number],config:{type:Object,default:function(){return{}}},mask:{type:Boolean,default:void 0},locale:Object,handle:Array},emits:["active","create","copy","delete","drag","inputData","save","clear","copyRule","pasteRule","sortUp","sortDown","changeDevice","previewSubmit","previewReset","changeField"],setup:function(e){var t,n,i,r,o,l,u=B(e),c=u.menu,d=u.height,h=u.mask,_=u.locale,b=u.handle,x=A(),w=f({active:null});z("fcx",w),z("designer",x);var E=m(e,"config",{}),k=m(E.value,"baseRule",null),F=m(E.value,"componentRule",{}),S=m(E.value,"validateRule",null),T=m(E.value,"formRule",null),O=m(E.value,"updateDefaultRule",{}),R=s(function(){var e=d.value;return e?ci.Number(e)?"".concat(e,"px"):e:"100%"}),M=s(function(){return!1!==E.value.fieldReadonly}),N=s(function(){return E.value.hiddenMenu||[]}),I=s(function(){return E.value.hiddenItem||[]}),L=s(function(){return!0===E.value.hiddenDragMenu}),P=s(function(){return!0===E.value.hiddenDragBtn}),j=s(function(){var e=["base","props","style","event","validate"],t=E.value.configFormOrder?g(E.value.configFormOrder):[],n=[];return t.length?[].concat(g(t),e).forEach(function(t){-1===n.indexOf(t)&&e.indexOf(t)>-1&&n.push(t)}):n=e,n.map(function(e){return'"'.concat(e,'"')}).join(" ")}),V=lu;_.value&&(V=Li(_).t);var H=function(){return V.apply(void 0,arguments)},U=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(t){if(ci.Function(t))return t.apply(void 0,i);if(t.rule){var o=t.rule.apply(t,i);return t.prepend?o=[].concat(g(o),g(e.apply(void 0,i))):t.append&&(o=[].concat(g(e.apply(void 0,i)),g(o))),o}}return e.apply(void 0,i)},W=C(hi(nu)),G=f({cacheProps:{},operation:{idx:-1,list:[]},hiddenLeft:!1,hiddenRight:!1,moveRule:null,addRule:null,added:null,bus:Ji(),device:(null==(t=E.value)?void 0:t.device)||"pc",activeModule:"base",activeTab:"form",activeMenuTab:"menu",activeRule:null,activePermission:{},children:C([]),treeInfo:[],dragRuleList:{},eventShow:!1,unloadStatus:!1,previewStatus:"form",t:H,preview:{state:!1,rule:[],option:{},api:{}},inputForm:{state:!1,rule:[],option:{},api:{},data:{},key:""},dragForm:C({rule:[],api:{}}),formOptions:{},oldOptionsKeys:[],form:{rule:U(Qi,T.value,{t:H}),api:{},option:{global:{input:!1!==(null==(n=E.value)?void 0:n.updateConfigOnBlur)?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1},value:{form:{},submitBtn:!1}},baseForm:{isShow:!1,rule:U(Yi,k.value,{t:H}),api:{},value:{},options:{global:{input:!1!==(null==(i=E.value)?void 0:i.updateConfigOnBlur)?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:function(e){e.activeRule=G.activeRule,e.setValue(e.options.formData||{})}}},styleForm:{isShow:!1,rule:qi({t:H}),api:{},value:{},options:{form:{labelPosition:"left",size:"small"},submitBtn:!1,mounted:function(e){e.activeRule=G.activeRule,e.setValue(e.options.formData||{})}}},validateForm:{isShow:!1,rule:U(Ki,S.value,{t:H}),api:{},value:[],options:{global:{input:!1!==(null==(r=E.value)?void 0:r.updateConfigOnBlur)?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:function(e){e.activeRule=G.activeRule,e.setValue(e.options.formData||{})}}},propsForm:{isShow:!1,rule:[],api:{},value:{},options:{global:{input:!1!==(null==(o=E.value)?void 0:o.updateConfigOnBlur)?{modelEmit:"blur"}:{},inputNumber:{props:{controlsPosition:"right"}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:function(e){e.activeRule=G.activeRule,e.setValue(e.options.formData||{})}}},customForm:{isShow:!1,config:null,key:"",rule:[],api:{},options:{global:{input:!1!==(null==(l=E.value)?void 0:l.updateConfigOnBlur)?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1}}});v(function(){return G.preview.state},function(e){e||a(function(){G.previewStatus="form",G.preview.rule=G.preview.option=null})});var $=null,Q=function(e,t){if(">"!==e[10]){if(!(e=e.replace("formCreate","")))return;e=bi(e)}else e=e.replace("formCreate>","");var n=e.split(">"),i=n.pop(),r=G.activeRule;n.forEach(function(e,t){t||(e=bi(e)),r[e]||(r[e]={}),r=r[e]}),t({source:r,field:i})};v(function(){return _.value},function(e){V=e?Li(_).t:lu,q.clearActiveRule();var t=G.form.api.formData&&G.form.api.formData(),n=G.baseForm.api.formData&&G.baseForm.api.formData(),i=G.validateForm.api.formData&&G.validateForm.api.formData();G.validateForm.rule=U(Ki,S.value,{t:H}),G.baseForm.rule=U(Yi,k.value,{t:H}),G.form.rule=U(Qi,T.value,{t:H}),G.cacheProps={};var r=G.activeRule,o=null;r&&(o=G.propsForm.api.formData&&G.propsForm.api.formData(),G.propsForm.rule=G.cacheProps[r._fc_id]=q.getPropsRule(r)),a(function(){t&&G.form.api.setValue(t),n&&G.baseForm.api.setValue(n),i&&G.validateForm.api.setValue(i),o&&G.propsForm.api.setValue(o)})});var Y=s(function(){return Array.isArray(c.value)?c.value:W.value}),q={setDevice:function(e){G.device=e,x.emit("changeDevice",e)},unWatchActiveRule:function(){$&&$(),$=null},watchActiveRule:function(){q.unWatchActiveRule(),$=v(function(){return G.activeRule},function(e){e&&q.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren:function(e){return f({children:e}).children},addMenu:function(e){if(e.name){e.list||(e.list=[]);var t=!0;Y.value.forEach(function(n,i){n.name===e.name&&(Y.value[i]=e,t=!1)}),t&&(e.before?Y.value.unshift(e):Y.value.push(e))}},removeMenu:function(e){g(Y.value).forEach(function(t,n){t.name===e&&Y.value.splice(n,1)})},setMenuItem:function(e,t){Y.value.forEach(function(n){n.name===e&&(n.list=t)})},appendMenuItem:function(e,t){Y.value.forEach(function(n){var i;n.name===e&&(n.list||(n.list=[]),(i=n.list).push.apply(i,g(Array.isArray(t)?t:[t])))})},removeMenuItem:function(e){Y.value.forEach(function(t){var n;ci.String(e)?g(t.list).forEach(function(n,i){n.name===e&&t.list.splice(i,1)}):(n=t.list.indexOf(e))>-1&&t.list.splice(n,1)})},addComponent:function(e){Array.isArray(e)?e.forEach(function(e){G.dragRuleList[e.name]=e,e.menu&&q.appendMenuItem(e.menu,e)}):(G.dragRuleList[e.name]=e,e.menu&&q.appendMenuItem(e.menu,e))},openInputData:function(e){G.inputForm.state=void 0===e?!G.inputForm.state:!!e,G.inputForm.state&&(G.inputForm.rule=ru.parseJson(q.getJson()),G.inputForm.option=ru.parseJson(q.getOptionsJson()),G.inputForm.option.formData=hi(G.inputForm.data),G.inputForm.option.appendValue=!1,G.inputForm.option.submitBtn.show=!1,G.inputForm.option.resetBtn.show=!1,q.clearActiveRule())},inputSave:function(){var e=G.inputForm.api.formData();Object.keys(e).forEach(function(t){Wi(e[t])&&delete e[t]});var t=JSON.stringify(G.inputForm.data)!==JSON.stringify(e);G.inputForm.data=e,G.inputForm.state=!1,x.emit("inputData",e),t&&q.addOperationRecord()},inputClear:function(){q.inputReset({})},inputReset:function(e){G.inputForm.rule=ru.parseJson(q.getJson()),G.inputForm.option.formData=e||hi(G.inputForm.data),G.inputForm.key=er()},setFormData:function(e){G.inputForm.data=e||{}},getFormData:function(){return G.inputForm.data},getParent:function(e){var t=e.__fc__.parent.rule,n=t._menu;return n&&n.inside&&(e=t,t=t.__fc__.parent.rule),{root:t,parent:e}},copyName:function(){Gi(G.activeRule.name)},updateName:function(){G.activeRule.name="ref_"+er()},makeDrag:function(e,t,n,i,r){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:{name:!0===e?"default":e,put:function(){return q.dragPut.apply(q,arguments)}},swapThreshold:"draggable"===t?.25:.8,ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"auto",itemKey:"_fc_id"}},tag:t},children:n,slot:r,on:i}},clearDragRule:function(){q.setRule([]),q.addOperationRecord(),G.unloadStatus=!1,x.emit("clear")},makeDragRule:function(e){return q.makeChildren([q.makeDrag(!0,"draggable",e,{add:function(t,n){return q.dragAdd(e,n)},end:function(t,n){return q.dragEnd(e,n)},start:function(t,n){return q.dragStart(e,n)},unchoose:function(t,n){return q.dragUnchoose(e,n)}})])},handleSave:function(){x.emit("save",{rule:q.getJson(),options:q.getOptionsJson()})},previewSubmit:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.emit.apply(x,["previewSubmit"].concat(t))},previewReset:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.emit.apply(x,["previewReset"].concat(t))},openPreview:function(){G.preview.state=!0;var e=q.getJson(),t=q.getOptionsJson();G.preview.rule=ru.parseJson(e),G.preview.option=ru.parseJson(t);var n=q.getConfig("useTemplate",!1);G.preview.component=Us.highlight(n?function(e,t){return'<template>\n <form-create\n v-model="formData"\n v-model:api="fapi"\n :rule="rule"\n :option="option"\n @submit="onSubmit"\n ></form-create>\n</template>\n\n<script>\nimport formCreate from "@form-create/element-ui";\n\nexport default {\n components: {\n formCreate: formCreate.$form()\n },\n data () {\n const option = formCreate.parseJson(\''.concat(t.replaceAll("\\","\\\\").replaceAll("'","\\'"),"');\n return {\n formData: {},\n fapi: null,\n rule: formCreate.parseJson('").concat(e.replaceAll("\\","\\\\").replaceAll("'","\\'"),"'),\n option: option\n }\n },\n methods: {\n onSubmit (formData) {\n //todo 提交表单\n }\n }\n}\n<\/script>")}(e,t):function(e,t){return'<template>\n <form-create\n v-model="formData"\n v-model:api="fapi"\n :rule="rule"\n :option="option"\n @submit="onSubmit"\n ></form-create>\n</template>\n\n<script setup>\nimport {ref} from "vue";\nimport formCreate from "@form-create/element-ui";\n\nconst option = ref(formCreate.parseJson(\''.concat(t.replaceAll("\\","\\\\").replaceAll("'","\\'"),"'));\nconst rule = ref(formCreate.parseJson('").concat(e.replaceAll("\\","\\\\").replaceAll("'","\\'"),"'));\nconst fapi = ref(null);\nconst formData = ref({});\n\nconst onSubmit = (formData) => {\n //todo 提交表单\n}\n<\/script>")}(e,t),{language:"xml"}).value,G.preview.html=Us.highlight(Ei(e,t),{language:"xml"}).value},copyCode:function(){Gi(this.$refs.previewCode.innerText)},getHtml:function(){return Ei(q.getJson(),q.getOptionsJson())},getRule:function(){return q.parseRule(hi(G.dragForm.rule[0].children))},getJson:function(){return ru.toJson(q.getRule())},getOption:function(){var e=hi(G.formOptions);["onReset","onSubmit","beforeSubmit","onCreated","onMounted","onReload","onChange","beforeFetch"].forEach(function(t){delete e[t]}),Object.keys(e._event||{}).forEach(function(t){e._event[t]&&(e[t]=e._event[t])}),delete e._event,e.submitBtn=e._submitBtn,e.resetBtn=e._resetBtn,e.resetBtn.innerText=H("props.reset"),e.submitBtn.innerText=H("props.submit");var t=hi(G.inputForm.data);return Object.keys(t).length>0&&(e.formData=t),e.language&&Object.keys(e.language).forEach(function(t){Object.keys(e.language[t]).forEach(function(n){e.language[t][n]||delete e.language[t][n]}),Object.keys(e.language[t]).length||delete e.language[t]}),Object.keys(e).forEach(function(t){ci.Object(e[t])&&!Object.keys(e[t]).length&&delete e[t]}),delete e._submitBtn,delete e._resetBtn,e},getOptions:function(){return q.getOption()},getOptionsJson:function(){return ru.toJson([q.getOption()]).slice(1).slice(0,-1)},setRule:function(e){e||(e=[]),G.children=C(q.loadRule(ci.String(e)?ru.parseJson(e):hi(e))),q.clearActiveRule(),G.dragForm.rule=q.makeDragRule(q.makeChildren(G.children)),q.updateTree()},setBaseRuleConfig:function(e,t){k.value={rule:e,append:t},G.baseForm.rule=U(Yi,k.value,{t:H})},setComponentRuleConfig:function(e,t,n){F.value[e]={rule:t,append:n},G.cacheProps={};var i=G.activeRule;if(i){var r=G.propsForm.api.formData&&G.propsForm.api.formData();G.propsForm.rule=G.cacheProps[i._fc_id]=U(i._menu.props,F.value&&F.value[i._menu.name],i,{t:H,api:G.dragForm.api}),a(function(){r&&G.propsForm.api.setValue(r)})}},setValidateRuleConfig:function(e,t){S.value={rule:e,append:t},G.validateForm.rule=U(Yi,S.value,{t:H})},setFormRuleConfig:function(e,t){T.value={rule:e,append:t},G.form.rule=U(Yi,T.value,{t:H})},clearActiveRule:function(){G.activeRule=null,G.activePermission={},G.customForm.config=null,G.activeTab="form",w.active=""},setOption:function(e){var t=hi(q.getConfig("formOptions",{})),n=t.form||{};delete t.form;var i=p(p({},t),ci.String(e)?JSON.parse(e):hi(e||{}));i.form=p(p({inline:!1,hideRequiredAsterisk:!1,labelPosition:"right",size:"default",labelWidth:"125px"},n),i.form||{}),i._event={onReset:i.onReset||"",onSubmit:i.onSubmit||"",onCreated:i.onCreated||"",onMounted:i.onMounted||"",beforeSubmit:i.beforeSubmit||"",onReload:i.onReload||"",onChange:i.onChange||"",beforeFetch:i.beforeFetch||""},di(i,"language")||(i.language={}),i._resetBtn="object"==y(i.resetBtn)?i.resetBtn:{show:!0===i.resetBtn},i._submitBtn="object"==y(i.submitBtn)?i.submitBtn:{show:!1!==i.submitBtn},i.submitBtn=i.resetBtn=!1,G.inputForm.data=i.formData||{},G.oldOptionsKeys=Object.keys(G.form.value),delete i.formData,G.formOptions=i,q.updateOptionsValue()},setOptions:function(e){q.setOption(e)},mergeOptions:function(e){if(["form"].forEach(function(t){e[t]&&(G.formOptions[t]=p(p({},G.formOptions[t]||{}),e[t]))}),e.style&&(!G.formOptions.style||-1===G.formOptions.style.indexOf(e.style))&&(G.formOptions.style=(G.formOptions.style||"")+"\n"+e.style),G.formOptions.language||(G.formOptions.language={}),e.language&&Object.keys(e.language).forEach(function(t){G.formOptions.language[t]=p(p({},G.formOptions.language[t]||{}),e.language[t])}),e.languageKey){var t=q.getConfig("localeOptions",[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"}]);e.languageKey.forEach(function(e){t.forEach(function(t){var n=t.value;G.formOptions.language[n]||(G.formOptions.language[n]={}),G.formOptions.language[n][e]||(G.formOptions.language[n][e]="")})})}},updateOptionsValue:function(){var e={};G.oldOptionsKeys.forEach(function(t){e[t]=void 0});var t=p(p({},e),G.formOptions.form);Object.keys(G.formOptions).forEach(function(e){var n=G.formOptions[e];t[">"+e]=n,t["formCreate"+Ti(e)]=n,"object"==y(n)&&Object.keys(n).forEach(function(i){t[e+">"+i]=n[i]})}),G.form.value=t},loadRule:function(e,t,n){var i=[];return e.forEach(function(e){if(ci.String(e))return i.push(e);var r=G.dragRuleList[e._fc_drag_tag]||G.dragRuleList[e.type];if(r||(r=function(e){return{icon:e.field?"icon-input":"icon-cell",label:e.field||e.type,name:"_",mask:!0,handleBtn:["delete"],rule:function(){return e},props:function(){return[]}}}(e),e._fc_drag_tag="_"),n&&(e._fc_template=n),r&&r.loadRule&&r.loadRule(e),e.children=q.loadRule(e.children||[],r,n),e.control&&(e._control=e.control,delete e.control),e.computed&&(e._computed=e.computed,delete e.computed),e.on&&(e._on=e.on,delete e.on),e.hook&&(e._hook=e.hook,delete e.hook),r){var o,a=e.slot;t&&t.slot&&a&&"default"!==a&&(o=q.getSlotConfig(t,a,r)),delete e.slot,e=q.makeRule(o||r,e),a&&(e.slot=a)}i.push(e)}),i},parseRule:function(e,t){return g(e).reduce(function(e,n){var i=t;if(ci.String(n))return e.push(n),e;if("DragBox"===n.type)return e.push.apply(e,g(q.parseRule(n.children,i||n.slot))),e;if("DragTool"===n.type){if(i=n.slot||t,n=n.children[0],ci.String(n))return e.push(n),e;if("DragBox"===n.type)return e.push.apply(e,g(q.parseRule(n.children,i||n.slot))),e}return n&&(n=p({},n),i&&"default"!==i&&(n.slot=i),n.children&&n.children.length&&(n.children=q.parseRule(n.children)),delete n.key,delete n.component,n._menu&&(n._menu.parseRule&&n._menu.parseRule(n),delete n._menu),"_"===n._fc_drag_tag&&delete n._fc_drag_tag,n._control&&(n.control=n._control,delete n._control),n._computed&&(n.computed=n._computed,delete n._computed),n.slot||delete n.slot,n._on&&(n.on=n._on,delete n._on),n._hook&&(n.hook=n._hook,delete n._hook),n.props&&Object.keys(n.props).forEach(function(e){Wi(n.props[e])&&delete n.props[e]}),Object.keys(n).filter(function(e){return 0===e.indexOf("__")||Array.isArray(n[e])&&0===n[e].length||ci.Object(n[e])&&0===Object.keys(n[e]).length}).forEach(function(e){delete n[e]}),e.push(n)),e},[])},fields:function(){return G.dragForm.api.all().map(function(e){return e.field}).filter(function(e){return!!e})},formMounted:function(){G.form.api.hidden(!0,E.value.hiddenFormConfig||[]),G.form.api.disabled(!0,E.value.disabledFormConfig||[])},baseChange:function(e,t,n,i){q.handleChange("",e,t,n,i)},formOptChange:function(e,t){G.form.value[e]=t,0===e.indexOf("formCreate")&&(e=">"+bi(e.replace("formCreate",""))),-1===e.indexOf(">")&&(e="form>"+e);var n=G.formOptions,i=e.split(">"),r=i.pop();i.forEach(function(e){e&&(n[e]||(n[e]={}),n=n[e])}),n[r]=t},propRemoveField:function(e,t,n){var i,r,o;if(G.activeRule&&n[G.activeRule._fc_id]===G.activeRule){q.unWatchActiveRule();var a=e;G.dragForm.api.sync(G.activeRule),0!==e.indexOf("__")&&("formCreateChild"===e?delete G.activeRule.children[0]:0===e.indexOf("formCreate")||e.indexOf(">")>0?(e.indexOf("formCreate")<0&&(e="props>"+e),Q(e,function(e){delete e.source[e.field]})):delete G.activeRule.props[e]),q.watchActiveRule(),null==(o=null==(r=null==(i=G.activeRule._menu)?void 0:i.watch)?void 0:r[a])||o.call(r,{field:a,value:void 0,api:n,rule:G.activeRule,ctx:x})}},propChange:function(e,t,n,i){q.handleChange("props",e,t,n,i)},styleChange:function(e,t,n,i){if(G.customForm.config)return G.customForm.config.style.change(e,t);q.handleChange("",e,t,n,i)},handleChange:function(e,t,n,i,r){var o,a,l;if(G.activeRule&&r[G.activeRule._fc_id]===G.activeRule){q.unWatchActiveRule();var u=t;0!==t.indexOf("__")&&("formCreateChild"===t?G.activeRule.children[0]=n:0===t.indexOf("formCreate")||t.indexOf(">")>0?(t.indexOf("formCreate")<0&&(t=(e?e+">":"")+t),Q(t,function(e){var t=e.source,i=e.field;Wi(n)?delete t[i]:t[i]=n})):e&&Wi(n)?delete G.activeRule[e][t]:(e?G.activeRule[e]:G.activeRule)[t]=n),q.watchActiveRule(),null==(l=null==(a=null==(o=G.activeRule._menu)?void 0:o.watch)?void 0:a[u])||l.call(a,{field:u,value:n,api:r,rule:G.activeRule,ctx:x})}},validateChange:function(e,t,n,i){!G.activeRule||G.validateForm.api[G.activeRule._fc_id]!==G.activeRule||(q.handleChange("",e,t,n,i),G.dragForm.api.refreshValidate(),G.dragForm.api.nextTick(function(){G.dragForm.api.clearValidateState(G.activeRule.__fc__.id)}))},triggerActive:function(e){var t;if(ci.String(e)&&(e=q.findRule(e)),e&&((t=e._menu.inside?e.children[0]:e.__fc__.parent.rule)&&"DragTool"===t.type)){var n=G.dragForm.api.el(t.__fc__.id);n&&(w.active=n.id,x.emit("active",e),q.toolActive(e))}},customFormChange:function(e,t){G.customForm.config&&G.customForm.config.change(e,t)},customActive:function(e){G.baseForm.isShow=!1,G.propsForm.isShow=!1,G.eventShow=!1,G.validateForm.isShow=!1,G.styleForm.isShow=!!e.style&&!1!==q.getConfig("showStyleForm"),G.activeRule=null,G.activePermission={},w.active="",G.customForm.config=e,G.customForm.isShow=!0,G.customForm.propsShow=e.props&&!1!==q.getConfig("showPropsForm"),G.customForm.key=er(),G.customForm.rule=G.customForm.propsShow?e.props({t:H}):[],G.customForm.options.formData=e.formData,e.style&&(G.styleForm.value=e.style.formData||{}),a(function(){G.activeTab="props"})},getPropsRule:function(e){var t=U(e._menu.props,F.value&&F.value[e._menu.name],e,{t:H,api:G.dragForm.api});if(F.value&&F.value.default){var n=F.value.default;t=U(function(){return t},ci.Function(n)?{rule:n,append:!0}:n,e,{t:H,api:G.dragForm.api})}return t},findRule:function(e){var t,n=function(i){i.forEach(function(i){[i.rule.field,i.rule.name,i.rule._fc_id].indexOf(e)>-1?t=i.rule:i.children&&n(i.children)})};return n(G.treeInfo),t},toolActive:function(e){if(!E.value.beforeActiveRule||!1!==E.value.beforeActiveRule({rule:e})){q.unWatchActiveRule(),G.customForm.isShow=!1,G.customForm.config=null,G.activeRule&&(delete G.propsForm.api[G.activeRule._fc_id],delete G.baseForm.api[G.activeRule._fc_id],delete G.validateForm.api[G.activeRule._fc_id],delete G.styleForm.api[G.activeRule._fc_id],delete G.dragForm.api.activeRule);var t=q.getPermission(e);G.activeRule=e,G.activePermission=t,G.dragForm.api.activeRule=e,a(function(){G.activeTab="props",a(function(){G.propsForm.api[G.activeRule._fc_id]=G.activeRule,G.baseForm.api[G.activeRule._fc_id]=G.activeRule,G.validateForm.api[G.activeRule._fc_id]=G.activeRule,G.styleForm.api[G.activeRule._fc_id]=G.activeRule})}),G.cacheProps[e._fc_id]||(G.cacheProps[e._fc_id]=q.getPropsRule(e));var n=q.getConfig("hiddenItemConfig",{}),i=q.getConfig("disabledItemConfig",{}),r=$i([].concat(g(t.hiddenConfig||[]),g((null==n?void 0:n.default)||[]),g((null==n?void 0:n[e._menu.name])||[]))),o=[].concat(g(r),g(e._menu.hiddenBaseField||[])),l=$i([].concat(g(t.disabledConfig||[]),g((null==i?void 0:i.default)||[]),g((null==i?void 0:i[e._menu.name])||[])));G.baseForm.api.disabled(!1),G.baseForm.api.hidden(!1),a(function(){G.baseForm.api.all().forEach(function(e){(e.name||e.field)&&(e.hidden=-1!==o.indexOf(e.name)||-1!==o.indexOf(e.field))}),G.propsForm.api.hidden(!0,r),q.getConfig("showControl",!0)||G.baseForm.api.hidden(!0,"_control")}),l.length&&(G.baseForm.api.disabled(!0,l),a(function(){G.propsForm.api.disabled(!0,l)}));var u=di(e,"field");G.baseForm.isShow=!1!==t.base&&u&&!1!==e.input&&!1!==q.getConfig("showBaseForm"),G.propsForm.isShow=!1!==t.props&&G.cacheProps[e._fc_id].length>0&&!1!==q.getConfig("showPropsForm"),G.styleForm.isShow=!1!==t.style&&!1!==e._menu.style&&!1!==q.getConfig("showStyleForm"),G.eventShow=!1!==t.event&&!1!==e._menu.event&&!1!==q.getConfig("showEventForm");var s=q.getConfig("showValidateForm");G.validateForm.isShow=!1!==t.validate&&(G.baseForm.isShow&&!1!==s||!0===s)&&!1!==e._menu.validate,G.propsForm.rule=G.cacheProps[e._fc_id],G.validateForm.isShow&&a(function(){G.validateForm.api.hidden(!0===q.getConfig("validateOnlyRequired")||"required"===e._menu.validate,["validate"])}),q.updateRuleFormData(),q.watchActiveRule()}},getConfig:function(e,t){return E.value&&di(E.value,e)?E.value[e]:t},getPermission:function(e){var t,n={};return((null==(t=E.value)?void 0:t.componentPermission)||[]).forEach(function(t){var i=!1;(t.field&&(Array.isArray(t.field)?t.field.indexOf(e.field)>-1:t.field===e.field)||t.name&&(Array.isArray(t.name)?t.name.indexOf(e.name)>-1:t.name===e.name)||t.id&&(Array.isArray(t.id)?t.id.indexOf(e._fc_id)>-1:t.id===e._fc_id)||t.tag&&(Array.isArray(t.tag)?t.tag.indexOf(e._fc_drag_tag)>-1:t.tag===e._fc_drag_tag))&&(i=!0),i&&(n=t.permission||{})}),n},updateRuleFormData:function(){var e=G.activeRule,t={formCreateChild:""+e.children[0],"formCreateWrap>labelWidth":""},n=E.value.appendConfigData;ci.Function(n)?t=p(p({},t),n(e)):Array.isArray(n)&&n.forEach(function(e){t[e]=void 0}),Object.keys(e).forEach(function(n){["effect","config","payload","id","type","_menu"].indexOf(n)<0&&(t["formCreate"+Ti(n)]=hi(e[n]))}),Object.keys(e.props).forEach(function(n){var i=e.props[n];t[n]=hi(i),ci.Object(i)&&Object.keys(i).forEach(function(e){t[n+">"+e]=hi(i[e])})}),["props","effect","attrs","style","wrap"].forEach(function(n){e[n]&&"object"==y(e[n])&&Object.keys(e[n]).forEach(function(i){t["formCreate"+Ti(n)+">"+i]=hi(e[n][i])})});var i=e._menu.attrs||{};Object.keys(i).forEach(function(n){t["__"+n]=i[n]({rule:e})}),G.propsForm.value=t,G.styleForm.value={style:e.style,class:e.class,id:e.id},G.baseForm.isShow&&(G.baseForm.value=p({field:e.field,title:e.title||"",info:e.info,_control:e._control},t),G.validateForm.value={validate:e.validate?g(e.validate):[],$required:t.formCreate$required},G.dragForm.api.refreshValidate(),G.dragForm.api.nextTick(function(){G.dragForm.api.clearValidateState(e.__fc__.id)}))},dragStart:function(e){G.moveRule=e,G.added=!1},dragUnchoose:function(e,t){G.addRule={children:e,oldIndex:t.oldIndex}},clickMenu:function(e){this.checkDragToContainer(e)&&q.dragMenu({menu:e,children:G.children,index:G.children.length})},checkOnly:function(e){var t=!1;return G.dragForm.api.all().forEach(function(n){t=t||n._fc_template===e.name||n._menu&&n._menu.name===e.name}),t&&xi(G.t("struct.only",{label:H("com."+e.name+".name")||e.label})),t},dragMenu:function(e){var t=e.menu,n=e.children,i=e.index,r=e.slot;if(!(G.inputForm.state||t.only&&q.checkOnly(t))){q.handleAddBefore();var o=G.dragRuleList[t.name];x.emit("drag",{item:t,dragRule:o});var l=q.makeRule(G.dragRuleList[o.name]);r&&(l.slot=r),n.splice(i,0,l);var u="DragTool"===l.type?l.children[0]:l;q.handleAddAfter({rule:l}),u&&q.getConfig("autoActive",!0)&&a(function(){q.triggerActive(u)})}},replaceField:function(e){var t=["array","object"].indexOf(e._menu.subForm)>-1,n=q.parseRule(hi([e]))[0],i=!1!==q.getConfig("autoResetName");return t&&(n.field=er(),i&&(n.name="ref_"+er())),n=ru.toJson(n),t?n=q.batchReplaceUni(n):(n=q.batchReplaceField(n),i&&(n=q.batchReplaceName(n))),q.loadRule([ru.parseJson(n)])[0]},batchReplaceField:function(e){return e=e.replace(/"field"\s*:\s*"(\w[\w\d]+)"/g,function(e,t){return'"field":"'.concat(er(),'"')}),q.batchReplaceUni(e)},batchReplaceUni:function(e){return e=e.replace(/"_fc_id"\s*:\s*"(\w[\w\d]+)"/g,function(){return'"_fc_id":"id_'.concat(er(),'"')})},batchReplaceName:function(e){return e=e.replace(/"name"\s*:\s*"ref_(\w[\w\d]+)"/g,function(){return'"name":"ref_'.concat(er(),'"')})},getTrueRule:function(e){if(e){if(e._menu)return e._menu._get();if(e._config)return e._config._get()}},checkDragToContainer:function(e){return!e.allowDragTo||(Array.isArray(e.allowDragTo)?e.allowDragTo.indexOf("draggable")>-1:"draggable"===e.allowDragTo)},dragPut:function(e,t,n){var i=q.getTrueRule(e.el.__rule__),r=n._underlying_vm_.__fc__?n._underlying_vm_._config||n._underlying_vm_._menu:n._underlying_vm_;if(!i)return!r||this.checkDragToContainer(r);var o=i._menu,a=n._fc_allow_drag||{};if(void 0===a[i._fc_id]){var l=q.getTrueRule(n._underlying_vm_);a[i._fc_id]=!(r&&o&&!q.checkDrag({menu:r,toMenu:o,rule:l,toRule:i})),n._fc_allow_drag=a}return n._fc_allow_drag[i._fc_id]},checkDrag:function(e){var t,n,i=e.menu,r=e.toMenu,o=e.rule,a=e.toRule;return!(!q.checkAllowDrag(i,r)||a.children&&r.maxChildren&&r.maxChildren<=(null==(n=null==(t=a.children[0])?void 0:t.children)?void 0:n.length)||i.checkDrag&&!1===i.checkDrag({menu:i,toMenu:r,rule:o,toRule:a,designer:x})||r.checkDrag&&!1===r.checkDrag({menu:i,toMenu:r,rule:o,toRule:a,designer:x})||E.value.checkDrag&&!1===E.value.checkDrag({menu:i,toMenu:r,rule:o,toRule:a}))},checkAllowDrag:function(e,t){function n(t){return Array.isArray(t)&&(t={item:t}),Xi(t.item).indexOf(e.name)>-1||Xi(t.menu).indexOf(e.menu)>-1}var i=q.getConfig("allowDrag",{})[t.name],r=q.getConfig("denyDrag",{})[t.name];return(!e.allowDragTo||(Array.isArray(e.allowDragTo)?-1!==e.allowDragTo.indexOf(t.name):e.allowDragTo===t.name))&&(!!(t.allowDrag&&n(t.allowDrag)||i&&n(i))||!(t.allowDrag||i||t.denyDrag&&n(t.denyDrag))&&!(r&&n(r)))},dragAdd:function(e,t,n){delete t.item._fc_allow_drag;var i=t.newIndex,r=t.item._underlying_vm_||t.item.__rule__;if(G.added=!0,r&&r.__fc__){if(G.addRule){q.handleSortBefore();var o=G.addRule.children.splice(G.addRule.children.indexOf(r),1)[0];n?o.slot=n:delete o.slot,e.splice(i,0,o),q.handleSortAfter({rule:o})}}else q.dragMenu({menu:r,children:e,index:i,slot:n})},dragEnd:function(e,t,n){var i=t.item,r=t.newIndex,o=t.oldIndex;if(delete i._fc_allow_drag,!G.added&&(G.moveRule!==e||r!==o)){q.handleSortBefore();var a=G.moveRule.splice(o,1);n&&(a.slot=n),e.splice(r,0,a[0]),q.handleSortAfter({rule:a[0]})}G.moveRule=null,G.addRule=null,G.added=!1},getSlotConfig:function(e,t,n){var i={};return(e.slot||[]).forEach(function(e){e.name===t&&(i=e.config||{})}),p(p({},n),{},{dragBtn:!1,handleBtn:!!n.children&&["addChild"]},i)},makeRule:function(e,t){var n=t||e.rule({t:H}),i=O.value&&O.value[e.name];if(!t&&i)if("function"==typeof i)try{i(n)}catch(r){}else{var r=hi(i);delete r.children,delete r.component,n=jd([n,r])}n._menu=D(p({},e)),n._menu._get=function(){return n},n._fc_id||(n._fc_id="id_"+er()),n.name||(n.name="ref_"+er()),e.component&&(n.component=D(e.component)),n._computed||(n._computed={}),n.effect||(n.effect={}),e.input&&!n.field&&(n.field=er()),e.languageKey&&q.mergeOptions({languageKey:e.languageKey}),di(n,"display")||(n.display=!0),di(n,"hidden")||(n.hidden=!1),n.children||(n.children=[]),n._fc_drag_tag=e.name;var o,a=!0===e.only,l=n.children||[];if(e.drag&&(n.children=[o=q.makeDrag(e.drag,n._menu?n._menu.name:n.type,l,{end:function(e,t){return q.dragEnd(e.self.children,t)},add:function(e,t){return q.dragAdd(e.self.children,t)},start:function(e,t){return q.dragStart(e.self.children,t)},unchoose:function(e,t){return q.dragUnchoose(e.self.children,t)}})],o._config=n._menu),e.children&&!t&&!l.length)for(var u=0;u<(e.childrenLen||1);u++){var s=q.makeRule(G.dragRuleList[e.children]);(o||n).children.push(s)}var c=void 0!==h.value?!1!==h.value:!1!==e.mask;return!1===e.tool?n:e.inside?(n.children=q.makeChildren([{type:"DragTool",props:{dragBtn:!1!==e.dragBtn,children:e.children,mask:c,handleBtn:e.handleBtn,only:a},inject:!0,on:{delete:function(e){var t=e.self,n=q.getParent(t).parent;!1!==q.handleRemoveBefore({parent:n,rule:n})&&(n.__fc__.rm(),x.emit("delete",n),G.activeRule===n&&q.clearActiveRule(),q.handleRemoveAfter({rule:n}))},create:function(e){var t=e.self;q.handleAddBefore();var n=q.getParent(t);x.emit("create",n.parent);var i=q.makeRule(n.parent._menu);n.parent.slot&&(i.slot=n.parent.slot),n.root.children.splice(n.root.children.indexOf(n.parent)+1,0,i),q.handleAddAfter({rule:n.parent})},addChild:function(e){var t=e.self;q.handleAddBefore();var n=q.getParent(t),i=n.parent._menu,r=G.dragRuleList[i.children];if(r){var o=q.makeRule(r);(i.drag?n.parent.children[0]:n.parent).children[0].children.push(o),q.handleAddAfter({rule:o})}},copy:function(e){var t=e.self;q.handleCopyBefore();var n=q.getParent(t);x.emit("copy",n.parent);var i=q.replaceField(n.parent);n.root.children.splice(n.root.children.indexOf(n.parent)+1,0,i),q.handleCopyAfter({rule:n.parent})},active:function(e){var t=e.self,n=q.getParent(t);x.emit("active",n.parent),setTimeout(function(){q.toolActive(n.parent)},10)}},_config:n._menu,children:n.children}]),n):{type:"DragTool",props:{dragBtn:!1!==e.dragBtn,children:e.children,mask:c,handleBtn:e.handleBtn,only:a},inject:!0,display:!!n.display,on:{delete:function(e){var t=e.self;!1!==q.handleRemoveBefore({parent:t,rule:t.children[0]})&&(x.emit("delete",t.children[0]),t.__fc__.rm(),G.activeRule===t.children[0]&&q.clearActiveRule(),q.handleRemoveAfter({rule:t.children[0]}))},create:function(e){var t=e.self;q.handleAddBefore(),x.emit("create",t.children[0]);var n=q.getParent(t),i=q.makeRule(t.children[0]._menu);n.parent.slot&&(i.slot=n.parent.slot),n.root.children.splice(n.root.children.indexOf(n.parent)+1,0,i),q.handleAddAfter({rule:i})},addChild:function(e){var t=e.self;q.handleAddBefore();var n=t.children[0]._menu,i=G.dragRuleList[n.children];if(i){var r=q.makeRule(i);(n.drag?t.children[0]:t).children[0].children.push(r),q.handleAddAfter({rule:r})}},copy:function(e){var t=e.self;q.handleCopyBefore(),x.emit("copy",t.children[0]);var n=q.getParent(t),i=q.replaceField(t.children[0]);t.slot&&(i.slot=t.slot),n.root.children.splice(n.root.children.indexOf(n.parent)+1,0,i),q.handleCopyAfter({rule:t.children[0]})},active:function(e){var t=e.self;x.emit("active",t.children[0]),setTimeout(function(){q.toolActive(t.children[0])},10)}},_config:n._menu,children:q.makeChildren([n])}},toolHandle:function(e,t){e._fc_drag_tag&&!1!==e._menu.tool?(e._menu.inside?e.children[0].__fc__.exportEl:e.__fc__.parent.exportEl).$emit(t):e.__fc__.rm()},handleAddBefore:function(){},handleRemoveBefore:function(e){var t=e.rule;if(E.value.beforeRemoveRule&&!1===E.value.beforeRemoveRule({rule:t}))return!1},handleCopyBefore:function(){},handleSortBefore:function(){},addOperationRecord:function(){var e=q.getJson(),t=hi(G.inputForm.data),n=G.operation.list.slice(0,G.operation.idx+1);n.push({rule:e,formData:t}),G.operation.list=n,G.operation.idx=n.length-1,G.unloadStatus=1!==n.length},prevOperationRecord:function(){if(G.operation.list[G.operation.idx-1]){var e=G.operation.list[--G.operation.idx];q.useOperationRecord(e),q.clearActiveRule()}},nextOperationRecord:function(){if(G.operation.list[G.operation.idx+1]){var e=G.operation.list[++G.operation.idx];q.useOperationRecord(e),q.clearActiveRule()}},useOperationRecord:function(e){G.inputForm.data=e.formData,q.setRule(e.rule)},handleAddAfter:function(){q.addOperationRecord(),q.updateTree()},handleRemoveAfter:function(){q.addOperationRecord(),q.updateTree()},handleCopyAfter:function(){q.addOperationRecord(),q.updateTree()},handleSortAfter:function(){q.addOperationRecord(),q.updateTree()},treeChange:function(e){q.triggerActive(e.rule)},getFormDescription:function(){return zi(q.getDescription())},getDescription:function(){return Hi(G.dragForm.rule[0].children)},getSubFormDescription:function(e){for(var t=e.__fc__&&e.__fc__.parent;t;){if(t.rule._menu&&["array","object"].indexOf(t.rule._menu.subForm)>-1)return zi(Hi(t.rule.children));t=t.parent}return null},getSubFormChildren:function(e){for(var t=e.__fc__&&e.__fc__.parent;t;){if(t.rule._menu&&["array","object"].indexOf(t.rule._menu.subForm)>-1)return t.rule.children||[];t=t.parent}return null},updateTree:Hu(function(){a(function(){G.treeInfo=Vi(G.dragForm.rule[0].children)})},300),findTree:function(e){var t,n=function(i){i.forEach(function(i){i.rule.field===e?t=i.children:i.children&&n(i.children)})};return n(G.treeInfo),t||[]},handleDragenter:function(e){G.bus.$emit("dragenter",e)},handleDragleave:function(e){G.bus.$emit("dragleave",e)},handleDrop:function(e){G.bus.$emit("drop",e)},changeEvent:function(e){G.activeRule._on=e},triggerHandle:function(e){e.handle()},bindHotkey:function(e){var t=e.ctrlKey||e.metaKey;if(!getSelection().toString()&&t&&"BODY"===e.target.tagName&&["ArrowUp","ArrowDown","Backspace","c","x","z","p","1","2","3","4"].indexOf(e.key)>-1){if(e.preventDefault(),G.inputForm.state)return;K[e.key]?K[e.key](e):"1234".indexOf(e.key)>-1&&K.num(e)}},bindPaste:function(e){if(!G.inputForm.state){var t=e.clipboardData.getData("text/plain");if(t&&0===t.indexOf("FormCreate:")){var n=G.children;t=t.slice(11,t.length),!1!==q.getConfig("autoResetField")&&(t=q.batchReplaceField(t)),!1!==q.getConfig("autoResetName")&&(t=q.batchReplaceName(t));var i=q.loadRule([ru.parseJson(t)])[0],r=!0;if(G.activeRule&&G.activeRule._menu.drag){var o=q.getTrueRule(i);if(o&&!q.checkDrag({rule:o,menu:o._menu,toRule:G.activeRule,toMenu:G.activeRule._menu}))return;n=G.activeRule._menu.inside?G.activeRule.children[0].children[0].children:G.activeRule.children[0].children}else G.customForm.config&&G.customForm.config.onPaste&&(G.customForm.config.onPaste(i),r=!1);r&&n.push(i),q.updateTree(),q.addOperationRecord(),x.emit("pasteRule",{event:e,copyRule:i})}}}};q.addDragRule=q.addComponent;var K={z:function(e){e.shiftKey?q.nextOperationRecord():q.prevOperationRecord()},Backspace:function(){!G.activeRule||q.toolHandle(G.activeRule,"delete")},c:function(e){var t=G.activeRule;!t||(Gi("FormCreate:"+ru.toJson(q.parseRule([t])[0])),x.emit("copyRule",{event:e,rule:t}))},x:function(e){!G.activeRule||(K.c(e),q.toolHandle(G.activeRule,"delete"))},p:function(){q.openPreview()},num:function(e){e.key,"1"===e.key?(G.activeModule="base",G.activeMenuTab="menu"):"2"===e.key?(G.activeModule="base",G.activeMenuTab="tree"):"3"===e.key?G.activeModule="json":"4"===e.key&&(G.activeModule="language")},ArrowUp:function(e){var t=G.activeRule;if(t){t._menu.inside||(t=t.__fc__.parent.rule);var n=t.__fc__.parent.rule,i=n.children.indexOf(t);if(n.children.length>1&&i>=0){var r="ArrowUp"===e.key?-1:"ArrowDown"===e.key?1:0;r&&i+r>=0&&i+r<n.children.length&&(n.children.splice(i,1),n.children.splice(i+r,0,t),q.updateTree(),q.addOperationRecord(),x.emit("sort"+("ArrowUp"===e.key?"Up":"Down"),{event:e,rule:t}))}}},ArrowDown:function(e){K.ArrowUp(e)}};G.dragForm.rule=q.makeDragRule(q.makeChildren(G.children)),q.setOption({}),c.value?ko.forEach(function(e){G.dragRuleList[e.name]=e}):q.addComponent(ko);var X=s(function(){return Object.keys(G.inputForm.data).length>0});return p(p(p({},B(G)),q),{},{dragHeight:R,t:H,handle:b,inputCheckStatus:X,fieldReadonly:M,hiddenMenu:N,hiddenItem:I,hiddenDragMenu:L,hiddenDragBtn:P,menuList:Y,configFormOrderStyle:j})},created:function(){var e=this;document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()},window.onbeforeunload=function(t){var n;e.unloadStatus&&!1!==(null==(n=e.config)?void 0:n.exitConfirm)&&(t.returnValue=e.t("designer.unload"))}},mounted:function(){var e;!1!==(null==(e=this.config)?void 0:e.hotKey)&&(document.addEventListener("keydown",this.bindHotkey),document.addEventListener("paste",this.bindPaste))},unmounted:function(){document.removeEventListener("keydown",this.bindHotkey),document.removeEventListener("paste",this.bindPaste)}}),Hd=["onClick"],Ud=["onClick"],Wd={class:"_fc-l-icon"},Gd={class:"_fc-l-name"},$d={class:"_fc-tree-label"},Qd={class:"_fc-m-tools-l"},Yd={class:"devices"},qd={class:"_fc-m-tools-r"},Kd={class:"_fd-input-btn"},Xd={key:0,class:"_fc-m-input"},Jd={key:0,class:"_fc-m-input-handle"},Zd={class:"_fc-r-title"},ef={class:"_fc-r-title"},tf={style:{"grid-area":"base"}},nf={style:{"grid-area":"props"}},rf={style:{"grid-area":"style"}},of={style:{"grid-area":"event"}},af={key:0,style:{"grid-area":"validate"}},lf={key:2,class:"_fd-preview-code",ref:"previewCode"},uf=["innerHTML"],sf={key:3,class:"_fd-preview-code",ref:"previewCode"},cf=["innerHTML"];var df=hu(zd,[["render",function(e,t,n,i,r,o){var a=w("el-tooltip"),l=w("el-aside"),u=w("LanguageConfig"),s=w("JsonPreview"),c=w("el-header"),d=w("fcDraggable"),f=w("el-main"),p=w("el-dropdown-item"),h=w("el-dropdown-menu"),m=w("el-dropdown"),g=w("el-tree"),v=w("el-container"),_=w("el-button"),y=w("el-popconfirm"),b=w("el-switch"),D=w("ViewForm"),A=w("DragForm"),C=w("Warning"),k=w("TypeSelect"),F=w("el-input"),S=w("el-divider"),B=w("PropsInput"),T=w("EventConfig"),O=w("el-tab-pane"),R=w("el-tabs"),M=w("el-dialog");return P(),G(v,{class:"_fc-designer",style:ne(e.height?"height:".concat(e.dragHeight,";flex:0;"):""),onDragenter:e.handleDragenter,onDragleave:e.handleDragleave,onDrop:e.handleDrop},{default:$(function(){return[x(f,null,{default:$(function(){return[(P(),G(v,{style:{height:"100%"},key:e.locale&&e.locale.name},{default:$(function(){return[!1!==e.getConfig("showMenuBar")?E((P(),G(l,{key:0,class:"_fc-l-menu",width:"40px"},{default:$(function(){return[x(a,{effect:"dark",content:e.t("designer.comList"),placement:"right","hide-after":0},{default:$(function(){return[j("div",{class:Y(["_fc-l-menu-item",{active:"base"===e.activeModule}]),onClick:t[0]||(t[0]=function(t){return e.activeModule="base"})},t[36]||(t[36]=[j("i",{class:"fc-icon icon-menu"},null,-1)]),2)]}),_:1},8,["content"]),e.getConfig("showLanguage",!0)?(P(),G(a,{key:0,effect:"dark",content:e.t("language.name"),placement:"right","hide-after":0},{default:$(function(){return[j("div",{class:Y(["_fc-l-menu-item",{active:"language"===e.activeModule}]),onClick:t[1]||(t[1]=function(t){return e.activeModule="language"})},t[37]||(t[37]=[j("i",{class:"fc-icon icon-language"},null,-1)]),2)]}),_:1},8,["content"])):Q("",!0),e.getConfig("showJsonPreview",!0)?(P(),G(a,{key:1,effect:"dark",content:"JSON",placement:"right","hide-after":0},{default:$(function(){return[j("div",{class:Y(["_fc-l-menu-item",{active:"json"===e.activeModule}]),onClick:t[2]||(t[2]=function(t){return e.activeModule="json"})},t[38]||(t[38]=[j("i",{class:"fc-icon icon-script"},null,-1)]),2)]}),_:1})):Q("",!0)]}),_:1},512)),[[q,!e.hiddenLeft]]):Q("",!0),e.hiddenLeft?Q("",!0):(P(),G(l,{key:1,class:"_fc-l",width:"language"===e.activeModule?"450px":"266px"},{default:$(function(){return[j("div",{class:"_fc-l-close",onClick:t[3]||(t[3]=function(t){return e.hiddenLeft=!0})},t[39]||(t[39]=[j("i",{class:"fc-icon icon-arrow"},null,-1)])),"language"===e.activeModule?(P(),G(u,{key:0})):Q("",!0),"json"===e.activeModule?(P(),G(s,{key:1})):Q("",!0),"base"===e.activeModule?(P(),G(v,{key:2,style:{height:"100%"}},{default:$(function(){return[x(c,{height:"40px",class:"_fc-l-tabs"},{default:$(function(){return[j("div",{class:Y(["_fc-l-tab",{active:"menu"===e.activeMenuTab}]),onClick:t[4]||(t[4]=function(t){return e.activeMenuTab="menu"})},K(e.t("menu.component")),3),j("div",{class:Y(["_fc-l-tab",{active:"tree"===e.activeMenuTab}]),onClick:t[5]||(t[5]=function(t){return e.activeMenuTab="tree"})},K(e.t("menu.tree")),3)]}),_:1}),E(x(f,null,{default:$(function(){return[(P(!0),L(X,null,J(e.menuList,function(t,n){return P(),L(X,null,[-1===e.hiddenMenu.indexOf(t.name)?(P(),L("div",{class:"_fc-l-group",key:n},[j("h4",{class:"_fc-l-title",onClick:function(e){return t.hidden=!t.hidden}},[Z(K(e.t("menu."+t.name)||t.title)+" ",1),j("i",{class:Y(["fc-icon icon-arrow",{down:!t.hidden}])},null,2)],8,Hd),E(x(d,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",class:"_fc-l-list",list:t.list},{item:$(function(t){var n=t.element;return[-1===e.hiddenItem.indexOf(n.name)?(P(),L("div",{key:0,class:"_fc-l-item",onClick:function(t){return e.clickMenu(n)}},[j("div",Wd,[j("i",{class:Y(["fc-icon",n.icon||"icon-input"])},null,2)]),j("span",Gd,K(e.t("com."+n.name+".name")||n.label),1)],8,Ud)):Q("",!0)]}),_:2},1032,["list"]),[[q,!t.hidden]])])):Q("",!0)],64)}),256))]}),_:1},512),[[q,"menu"===e.activeMenuTab]]),"tree"===e.activeMenuTab?(P(),G(f,{key:0},{default:$(function(){return[x(g,{ref:"treeRef",data:e.treeInfo,"default-expand-all":"","expand-on-click-node":!1,onCurrentChange:e.treeChange},{default:$(function(n){n.node;var i,r,o,a,l=n.data;return[j("div",{class:Y(["_fc-tree-node",{active:e.activeRule===l.rule}])},[j("div",$d,[j("i",{class:Y(["fc-icon",l.rule._menu&&l.rule._menu.icon||"icon-cell"])},null,2),j("span",null,K(((null==(a=null==(o=null==(r=null==(i=l.rule)?void 0:i.__fc__)?void 0:r.refRule)?void 0:o.__$title)?void 0:a.value)||l.rule.title||"").trim()||l.rule.props&&l.rule.props.label||e.t("com."+(l.rule._menu&&l.rule._menu.name)+".name")||l.rule._menu&&l.rule._menu.label||l.rule.type),1)]),l.slot?Q("",!0):(P(),L("div",{key:0,class:"_fc-tree-more",onClick:t[6]||(t[6]=ee(function(){},["stop"]))},[x(m,{trigger:"click",size:"default"},{dropdown:$(function(){return[x(h,null,{default:$(function(){return["_"!==l.rule._fc_drag_tag?(P(),G(p,{key:"1",onClick:function(t){return e.toolHandle(l.rule,"copy")}},{default:$(function(){return[Z(K(e.t("props.copy")),1)]}),_:2},1032,["onClick"])):Q("",!0),l.rule._menu&&l.rule._menu.children&&"_"!==l.rule._fc_drag_tag?(P(),G(p,{key:"2",onClick:function(t){return e.toolHandle(l.rule,"addChild")}},{default:$(function(){return[Z(K(e.t("form.appendChild")),1)]}),_:2},1032,["onClick"])):Q("",!0),x(p,{key:"3",onClick:function(t){return e.toolHandle(l.rule,"delete")}},{default:$(function(){return[Z(K(e.t("props.delete")),1)]}),_:2},1032,["onClick"])]}),_:2},1024)]}),default:$(function(){return[t[40]||(t[40]=j("i",{class:"fc-icon icon-more"},null,-1))]}),_:2,__:[40]},1024)]))],2)]}),_:1},8,["data","onCurrentChange"])]}),_:1})):Q("",!0)]}),_:1})):Q("",!0)]}),_:1},8,["width"])),x(v,{class:"_fc-m"},{default:$(function(){return[x(c,{class:"_fc-m-tools",height:"45"},{default:$(function(){return[j("div",Qd,[e.inputForm.state?Q("",!0):(P(),L(X,{key:0},[!1!==e.getConfig("showDevice")?(P(),L(X,{key:0},[j("div",Yd,[j("i",{class:Y(["fc-icon icon-pc",{active:"pc"===e.device}]),onClick:t[7]||(t[7]=function(t){return e.setDevice("pc")})},null,2),j("i",{class:Y(["fc-icon icon-pad",{active:"pad"===e.device}]),onClick:t[8]||(t[8]=function(t){return e.setDevice("pad")})},null,2),j("i",{class:Y(["fc-icon icon-mobile",{active:"mobile"===e.device}]),onClick:t[9]||(t[9]=function(t){return e.setDevice("mobile")})},null,2)]),t[41]||(t[41]=j("div",{class:"line"},null,-1))],64)):Q("",!0),j("div",null,[j("i",{class:Y(["fc-icon icon-pre-step",{disabled:!e.operation.list[e.operation.idx-1]}]),onClick:t[10]||(t[10]=function(){return e.prevOperationRecord&&e.prevOperationRecord.apply(e,arguments)})},null,2),j("i",{class:Y(["fc-icon icon-next-step",{disabled:!e.operation.list[e.operation.idx+1]}]),onClick:t[11]||(t[11]=function(){return e.nextOperationRecord&&e.nextOperationRecord.apply(e,arguments)})},null,2)])],64))]),j("div",qd,[e.inputForm.state?Q("",!0):(P(),L(X,{key:0},[te(e.$slots,"handle"),e.getConfig("showSaveBtn",!1)?(P(),G(_,{key:0,type:"success",plain:"",size:"small",onClick:e.handleSave},{default:$(function(){return[t[42]||(t[42]=j("i",{class:"fc-icon icon-save-online"},null,-1)),Z(" "+K(e.t("props.save")),1)]}),_:1,__:[42]},8,["onClick"])):Q("",!0),!1!==e.getConfig("showPreviewBtn")?(P(),G(_,{key:1,type:"primary",plain:"",size:"small",onClick:e.openPreview},{default:$(function(){return[t[43]||(t[43]=j("i",{class:"fc-icon icon-preview"},null,-1)),Z(" "+K(e.t("props.preview")),1)]}),_:1,__:[43]},8,["onClick"])):Q("",!0),x(y,{title:e.t("designer.clearWarn"),width:"200px","confirm-button-text":e.t("props.clear"),"cancel-button-text":e.t("props.cancel"),onConfirm:e.clearDragRule},{reference:$(function(){return[x(_,{type:"danger",plain:"",size:"small"},{default:$(function(){return[t[44]||(t[44]=j("i",{class:"fc-icon icon-delete"},null,-1)),Z(K(e.t("props.clear")),1)]}),_:1,__:[44]})]}),_:1},8,["title","confirm-button-text","cancel-button-text","onConfirm"]),e.handle&&e.handle.length?(P(),G(m,{key:2,trigger:"click",size:"default"},{dropdown:$(function(){return[x(h,null,{default:$(function(){return[(P(!0),L(X,null,J(e.handle,function(t){return P(),G(p,{onClick:ee(function(n){return e.triggerHandle(t)},["stop"])},{default:$(function(){return[j("div",null,K(t.label),1)]}),_:2},1032,["onClick"])}),256))]}),_:1})]}),default:$(function(){return[x(_,{class:"_fd-m-extend",plain:"",size:"small"},{default:$(function(){return t[45]||(t[45]=[j("i",{class:"fc-icon icon-more"},null,-1)])}),_:1,__:[45]})]}),_:1})):Q("",!0)],64)),e.getConfig("showInputData",!0)?(P(),L(X,{key:1},[t[48]||(t[48]=j("div",{class:"line"},null,-1)),j("div",Kd,[x(b,{size:"default","model-value":e.inputForm.state,"inline-prompt":"","onUpdate:modelValue":e.openInputData},{"active-action":$(function(){return t[46]||(t[46]=[j("i",{class:"fc-icon icon-edit2",style:{"font-size":"12px",color:"#fff"}},null,-1)])}),"inactive-action":$(function(){return t[47]||(t[47]=[j("i",{class:"fc-icon icon-edit2",style:{"font-size":"12px",color:"#333"}},null,-1)])}),_:1},8,["model-value","onUpdate:modelValue"])])],64)):Q("",!0)])]}),_:3}),x(f,{class:"_fc-m-con"},{default:$(function(){var n,i;return[(P(),L("a",{key:e.activeRule?e.activeRule._fc_id:"",style:{"background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAAiCAYAAAAu2wBPAAABG2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+l1vpCgAAAAFzUkdCAK7OHOkAAAAEc0JJVAgICAh8CGSIAAAQoElEQVR4nO1dW3KbSBf+usGM335lBQMjKVV6imYFI6/Azgoir2CcFdhegZMVRF5BnBVYs4I4T1QJMMwKwrw5GLr/B53GRwhdLTuZDF9VKgj6crr79OlzAwMNGjRo0KBBgwYNGjRo0KBBgwYNGjT4mSHiOP4MoL+Dtg48zxsDQBzH1wAGqyoopc7b7fbZDvpu0KBBg40hi6J4v4N2bpjwG2AN4QcAUsqrHfTdoEGDBltBWpY1fmwjSqlP7HqwZrWx53k3j+27QYMGDbaF7XleEsfxCMCQ3R8DSNZtREr5jl3/yR4l1BYAuJjVDBvtr0GDBt8VNgDkeX5p2/bQ3CyK4rLT6Yw2bYzM3xa7dVzxCxqkAC63aL91d3fXWlam1+slm7bbYDnCMBxqrV0A6Ha7Z+vUieO4lef5CQAIIW46nc53PfB833c3Kf8z8ZHv++7e3l7fsqxf6VZ6d3f31880xm1hA0C32x3HcZxgqqXBsqw3AEZbtHfKrlMm/FqY1f5GnuelW7R/6DjOUrqiKIIQYqyU2kqIN6jFGynlgK7P1qlwd3fXchzH8MMI31njdxznGsTfayAB4D0ZMc8EEnwfhBADAFBKlc8cx8Ht7e24KIrzbrc7/k4kbgVzmO1CgEt2zRl0EMexu0lDVSGnlHrPrk8qxT/hCaG1HgghPkRR9OEp+2nQ4EdFEARnjuPERvjVQWs9kFJeB0Fw9nyUbY/JZNKPouij4zixbdvuLtq02fV7AKWgKopigA20QKXUiZQP8lRKOWbX3C9YaoaPxEgpNWNG27b9a57nHvXXAjAMw/CvRhNswKGUOvjeNDwlgiAYSCm5NTZSSl3atn0DTLVz27aHZp9IKU/DMEx+9H0ihDgCcLTLNksBSMGQMUiLsyzrIo7j0wX1AAB5nh8b9VlKecgejStpMaXfjmuGj4FS6u9FqnsQBGMppfE5bmvON/hJ8W8z+TZBHMctpVRp+Witj2sEWwrgbDKZXFmW9RkAhBCn+A/uE64BoiiKS8uyBvSzhdmARhWpOVFIyPFkam5Ov+GVeMT4qdDtdsdRFKUAWkKI2iTvMAyPhBB/aK37QogUQKKU+lTdHEEQDGzb/hUA6hzHYRgeWZb1v6Io/qk6+n3fd/f39/8AgDzPZwQ2+WcGQohDrXVLCJFIKW8AXFb9o+ReOASA+/v7L3t7e0me50MhxKEQIsmy7JzT5fu+6zjOn3jweaVKqctVGz8MwyHNiSuESNapswmofXNQ1tIUx3HJL57n1QbKVq3JU4CtF5+fv/M8H9X1z2n0PO+S+O0NAGitP3U6ndGCMoeY7ruZ+SFeOmRpZkmWZe+rfRdFMRBCuPRztEyre/ny5U0URSNMM0DcIAgGpj+zDoav+doppd5XeblCW7qIlzmozVda6z4ALNoDZp6UUq9Y9UEcx+Xc8XY5Pav21owA7HQ6oziOL7Bc8MFMQrvdNo1x7a+M8NLG5SrreMvgxzZIUSPESTiUDnEhRPlMSnlye3s7FkK8NnQKIVxzotq2fQ4WBKDT9qNSCiREZwSg4zinSqkh1R2a+5PJpG9Z1scqDeSkPgvD8C1nXAoojADAsqx3SqkjKaVrntu2fQlKWwqC4Kxi/pixDW9vb8ffvn07rm6aRXMipRwGQXBebWsbRFF0AeZi4TTx+aZNNKSx1Gr5UsqPSqkWgHR/f//JgxVkUn7A/PzAcZzTIAjedrvdmYNdCHFqBEIQBC+EEBfsWQpgVCnjkRZWQko5jKLoXZZl7x3HuVZKufy54zjDMAyP+cHLDhhUXUR1kFK+zfP8EgDyPE9Y3RFdjqMoOsRsmtwXUHqb4TceYKH6AHAymUxev3z5cibfd9kerKvH54nRzfssxxkEwYmU8sI8q+ytOXpmBCDhCvM5gXMwb3GQkJspz4TcGzABtKO3TlaCBJNLP5PKfR4NvFFKfZJS/g/TMbS01gMAHwEcAMD9/f3YcRwAgBDiD94PnbbmZ4ufoAQj/FNQ4Mf3fdeyrGs8zMuVUuqLlPJXKt8SQnwIwzBdkDoyxIIDqiJkEpBAFkL0tdYDrfWAGK8UGjVzkiilLmlOqr6kbTEEAK31WGv9V3W+tdYXAI6B6aaVUg4BQEr5BhX+C4JggIfxb5tNsDZI+PEULrNe5RiklBdBELQWpQitM4dUJgEwFkK4xIcAcOI4zhDTMV8BSMx6YsorF77v37BDzdRL19Heaf4WliMLalD3jDRWM7YUwJjm5hWmvOxalnXt+/7v/NDlws/wBABYlvUHjcslBcEjGlKaG67QpPSvSs8Fu3W1ip45AbhFTuCMkMM0mGLAtb90F2+dLAPlnvW5D4SfgnmenzDN6V273X7L6p5TvSOt9SAMw2Gn0xn1er0kDMOxEGIghBjEcdxi2uGMQLRt+xWImShU36JyN6bOL7/88kFr3SLaDiqmxLlhDlrIOgHYwlRIHZsTe39/PyXBYITfTZZlrznTmZMRgGvGRo/e4EH4jdrt9jGfTzMnNXRsBKXUORcQNN+fqe9hEASX3W53TO6LxNz3fX/GvOcBNf4G0iaIokgvey6lHBqzijQ/APP+NN/335v1klKe+r5faw4DaCmlzvM8H9U8AwAIIca//fZbGZxh62Xqz2iZlOEwBODu7e0N8OC/4wJiF2gBSLTW55ZlXZk83IqvMc2ybEbIkZXzGYBJhzqmem+YcvKu0+mUe7A6LqNQtNvt18CsdaOUes33zrb08DQYAKWDuKxIOYHLMCPkWPCjenLs9LSWUp5GUaT5P6XUVzqtXSqW2LZd95ZKKqWcMe08z0uzLCsXQwjBI9elEKXouIEZ+4ielXOxv79/yOqcA9NFMCe7EGJcPaF7vV7CfKQuCbUq0izLDrrd7rjX6yW9Xi/xPC/lQSil1NvqRqTNk1THprUuaZZSzjBjdU4egbSqHXmelyqlSmHL6ddal2tDmxvAbKpV3fztGjT/rumvqgj0er2E00p+1zq863a7Z2a96oRknucz82zbNu8rqZrY/GAXQnDf2K4FIJRSx51OZ+R5XsroN75KKKXmfJFkZpoDfEhrBwCfsizzlFIHWZbNWYRa6/JQI4ViXaxDz6hKT50JjKIozi3LMtJ0EMex63leUi1HuYID87uS+3fE02LwxLl/NRhRcCAFpsIHzOysE8Zc2wPQN9pexQw+BHBFGp4LIC2K4r1lWUOuITLBUgaL9vb2XnFfSV3+lVLKZOvPaJQMVwu0DC7IDhcIT4M+o9OUS9aYk20xqrtp2/aNmQ/jCAdm3Q6YjeKX1oYQYuvEamNiL8Ld3d1fdDkw94QQo7qylmVdGc2Dj6HS30o/atVP5nleGkWR+Tm3Llprfq/OJbLSj78mkrqDhvvkpJSv6nhZCNHSeqps53nex4N7LAWQTCaTfhzHf+Z5/oJcQCDz39R5sS6RSqly7pfQ41bpqRWANaZqqTJWOh1Wcv/qtC2ApcXsEFd1X5PJ8/xv27ZvqptZCFEyhFLq70WNkr8BwDT4ACCtCIEBMNXwKPhxQ9G0GwB9M7FsM5TClnIUAZRJqINlA+SLug7tDCeVw2cO9/f3bhzHCRNAyaKyfE62gVLqn7r7tMlTTH1Zrrnf6/USE50UQgx833dJ2+I+1Y1fpWT9rlXXbEpgylcL2qodQ7XMFmSWqAg7AEBRFKllWXXFbzDNyKilZYu+kwWPuIA9klLOuUmMsAGmObrmmgdBlFLgvMrrbIit6KkVgJQTeIUHrWJQV65GyKVA7TvBW5/Wi6CU+tJut7faBOTA3hSXmM6D6/u+a4QT00RuAPRJ+wIe1PFFNF4ppb4s61AIcbPs+SIopVZqHEVRpC9fvuRaxkJQKsE2pABYOd+1mgoPhjiO8yf5DAf0+LmyCdbtY+dm5yOQgFLSaoJyc+BBnqqfdgOMVh3M5jn54uaCgLZtx0CpJDw28LY2PbUCEChzAo0ArDrOVwm5mXeC8YjTelfI8zxhZpW7pOiA/k+5qcnNMvJLHVG7X4Cp70IIMaT6RuMpzV9gTqAlWzJbLbTWidFAtNZXVZNqCRJMgy615hswNR0eSV5t/coHCmborQRDjsD80rtKpl8FrfUXI/gXuCOMa8UgeQ66loH48Aioj6JXYVnWKdOMlpatIOF9drvdtZQcy7LMW1q1SdoUJNmAjBLl4aO1/qvb7Y4WF33AQjuJUjAS87smGFIr5Mi5yJniOXP/FoKEWUI/j+q+DsJTLKraF5lgY3p2SuXKVAPmNugzh/6Mr/H+/p63WRtZjaLowgR1VvjxquBO8bm24zhuRVH0ldr+zB4Zult1/fFAwCNQO98824C/OmnAAgyuUuqMrmt9Uk+B+/v7sp+a99kBlBsaQP0YnhskUBL6OVz2ni995WcAbB5U4hF4nnvIcXt7e214mQVBBhVaZ6C1Hq5Lwy7oWe4omj0Ryg8k1Ag5HuFdlhbzXVGJ2F3zDR+G4VBK+dH8NpHbCoyQcen/8tSjgMKYfvaBefOXhPDItBFF0UfGGAiC4AQslWUThqTNmgLTCHkQBCembTLZS7OD05VlWTlOKeUHPieTyaTP00AeA8dxPnIhSPNdRuVRYyXwMdXR/tRYtl5xHLdIuAzpeYIfwNIBAK11GVGWUp7e3t5ex3H8ZjKZ9CeTST8Mw6Moij4IIcq0kW/fvs35+Jehki0yjKLogvNbEARnLMBWygfuU+S85vu+G0XRB1ZnDrZtf2XjOgyCYGB4qkLP0TJ6hBClUrZKAFaFgJGsVSHHI7xc+9jVhw92gk6nM2L+MVdKeU1a0VdiBrPJ3tYJH64RAPMnvmVZ3AyYMX9ZnbdgC6WU+mo0M5b3lWZZ9nqTsZGGytNKLkzbjuPEeDiwRjylotfrJYvmhPKmXDzet5UC6DuOE0dRFFfnW2v9dlEEGhX/MU9reg7Qepl1NOsVU8qVsYKSoihe/wiWDjC13ogXjNAZKKVGlmV9tizrsxDiI5jgLoriYJvXCbMsO8ADL59wfuNzU0mvKg8J4rXPURR9Jh4dYokb4e7ujsuZEynlNfvk2tr0CCHKvbVUAFLqy5h3Sv9zIZcs+nsgz+Wr2QTdbvdMKfUWs5qFEeaJ1vp1NefKgJvBhJnUHuMPJNSm2lDO3u8kdGa0G8KomsS5LjqdzpVS6kAIwWksx6amf4Rq7qRfNidE56OCWFLKMzBNCpX5XpZoz98e4if3c4HW66CyXi4rMsqy7GADn+uzoNPpjLIs+x3TtVs0Z4+ivdfrJVmWLeK3sn2+ZqSEcF7r078UwLuiKBYe/HRYcwXi0fSsDO2FYThkOYFQSp3zKI1if9mN3iPmvpIXP8qpWAcy8VytdZrneW2C6lMijuPW/f29u7e392pR+s62MF8BBqZpFOua05PJpP8U9ADT8RZFMdBap1rrdJ2NV8n+P3gu/18dzHp9T57ZFobXgc34YV2Yt7Ao9y9dxTvV8t+LnpUCkOzor0uKvPA8L6VyMR4k7tjzvIMl9Ro0WIkoir6CAk7tdnvtxNgGDdbBKh+gSeIcLXjMTZI+njj3r8F/Czwq/yO6Uxr8+7FSAALTDyTU3a983eWHy/1r8O+GZVklTz138KPBfwNrCcDqBxII5ddddvhHjxo0AFCm7oCCTg0/NXgSLHwTpAp6NWnm7wywj1hW3z197g8fNPjJQMGFxofcoEGDBg0aNGjQoEGDHeL/8DGxPwUCk/oAAAAASUVORK5CYII=) !important","background-repeat":"no-repeat !important","background-size":"cover !important","background-position":"center !important",position:"absolute !important",overflow:"hidden !important",left:"50% !important",width:"160px!important",right:"0 !important",top:"auto !important",bottom:"9px !important",display:"block !important",height:"17px !important","text-align":"center !important",opacity:"1 !important",visibility:"visible !important",margin:"0 0 0 -80px !important",padding:"0 !important"},target:"_blank",href:"https://form-create.com/"})),j("div",{class:Y(["_fc-m-drag",e.device]),ref:"dragCon",style:ne({"--fc-drag-empty":"'".concat(e.t("designer.dragEmpty"),"'"),"--fc-child-empty":"'".concat(e.t("designer.childEmpty"),"'")})},[e.inputForm.state?(P(),L("div",Xd,[(P(),G(D,{key:e.inputForm.key,rule:e.inputForm.rule,option:e.inputForm.option,locale:null==(n=e.locale)?void 0:n.name,api:e.inputForm.api,"onUpdate:api":t[12]||(t[12]=function(t){return e.inputForm.api=t}),disabled:!1},null,8,["rule","option","locale","api"]))])):(P(),G(A,{key:1,rule:e.dragForm.rule,option:e.formOptions,locale:null==(i=e.locale)?void 0:i.name,api:e.dragForm.api,"onUpdate:api":t[13]||(t[13]=function(t){return e.dragForm.api=t})},null,8,["rule","option","locale","api"]))],6),e.inputForm.state?(P(),L("div",Jd,[x(_,{plain:"",onClick:t[14]||(t[14]=function(t){return e.inputClear()})},{default:$(function(){return[Z(K(e.t("props.clear")),1)]}),_:1}),x(_,{plain:"",onClick:t[15]||(t[15]=function(t){return e.inputReset()})},{default:$(function(){return[Z(K(e.t("props.reset")),1)]}),_:1}),x(_,{type:"primary",plain:"",onClick:t[16]||(t[16]=function(t){return e.inputSave()})},{default:$(function(){return[Z(K(e.t("props.save")),1)]}),_:1})])):Q("",!0)]}),_:1})]}),_:3}),e.config&&!1===e.config.showConfig?Q("",!0):E((P(),G(l,{key:2,class:"_fc-r",width:"320px"},{default:$(function(){return[j("div",{class:"_fc-r-close",onClick:t[17]||(t[17]=function(t){return e.hiddenRight=!0})},t[49]||(t[49]=[j("i",{class:"fc-icon icon-arrow"},null,-1)])),x(v,{style:{height:"100%"}},{default:$(function(){return[x(c,{height:"40px",class:"_fc-r-tabs"},{default:$(function(){return[e.activeRule||e.customForm.isShow||e.config&&!1===e.config.showFormConfig?(P(),L("div",{key:0,class:Y(["_fc-r-tab",{active:"props"===e.activeTab}]),onClick:t[18]||(t[18]=function(t){return e.activeTab="props"})},K(e.t("designer.component")),3)):Q("",!0),e.config&&!1===e.config.showFormConfig?Q("",!0):(P(),L("div",{key:1,class:Y(["_fc-r-tab",{active:"form"===e.activeTab&&(!!e.activeRule||e.customForm.isShow)}]),onClick:t[19]||(t[19]=function(t){return e.activeTab="form"})},K(e.t("designer.form")),3))]}),_:1}),e.config&&!1===e.config.showFormConfig?Q("",!0):E((P(),G(f,{key:0,class:"_fc-r-tab-form"},{default:$(function(){return[x(A,{rule:e.form.rule,option:e.form.option,modelValue:e.form.value,onChange:e.formOptChange,api:e.form.api,"onUpdate:api":t[20]||(t[20]=function(t){return e.form.api=t}),onMounted:e.formMounted},{title:$(function(e){return[e.rule.warning?(P(),G(C,{key:0,tooltip:e.rule.warning},{default:$(function(){return[Z(K(e.rule.title),1)]}),_:2},1032,["tooltip"])):(P(),L(X,{key:1},[Z(K(e.rule.title),1)],64))]}),_:1},8,["rule","option","modelValue","onChange","api","onMounted"])]}),_:1},512)),[[q,"form"===e.activeTab]]),E((P(),G(f,{class:"_fc-r-tab-props",key:e.activeRule?e.activeRule._fc_id:e.customForm.config?e.customForm.key:""},{default:$(function(){return[j("div",{class:"_fc-r-tools-close",onClick:t[21]||(t[21]=function(){return e.clearActiveRule&&e.clearActiveRule.apply(e,arguments)})},t[50]||(t[50]=[j("i",{class:"fc-icon icon-add2"},null,-1)])),e.activeRule||e.customForm.config&&(e.customForm.config.name||e.customForm.config.label)?(P(),L(X,{key:0},[j("p",Zd,K(e.t("designer.type")),1),x(k,{disabled:!1===e.activePermission.switchType},null,8,["disabled"]),!1!==e.activePermission.name&&e.activeRule&&e.activeRule.name&&!1!==e.config.showComponentName?(P(),L(X,{key:0},[j("p",ef,[x(C,{tooltip:e.t("warning.name")},{default:$(function(){return[Z(K(e.t("designer.name")),1)]}),_:1},8,["tooltip"])]),x(F,{size:"small",class:"_fc-r-name-input",modelValue:e.activeRule.name,"onUpdate:modelValue":t[24]||(t[24]=function(t){return e.activeRule.name=t}),modelModifiers:{trim:!0},readonly:!1!==e.getConfig("nameReadonly")},{suffix:$(function(){return[j("i",{class:"fc-icon icon-group",onClick:t[22]||(t[22]=function(){return e.copyName&&e.copyName.apply(e,arguments)})})]}),append:$(function(){return[j("i",{class:"fc-icon icon-auto",onClick:t[23]||(t[23]=function(){return e.updateName&&e.updateName.apply(e,arguments)})})]}),_:1},8,["modelValue","readonly"])],64)):Q("",!0)],64)):Q("",!0),j("div",{class:"_fc-r-config",style:ne({"grid-template-areas":e.configFormOrderStyle})},[j("div",tf,[e.baseForm.isShow?(P(),G(S,{key:0},{default:$(function(){return[Z(K(e.t("designer.rule")),1)]}),_:1})):Q("",!0),E(x(A,{api:e.baseForm.api,"onUpdate:api":t[25]||(t[25]=function(t){return e.baseForm.api=t}),rule:e.baseForm.rule,option:e.baseForm.options,modelValue:e.baseForm.value,onChange:e.baseChange},{title:$(function(e){return[e.rule.warning?(P(),G(C,{key:0,tooltip:e.rule.warning},{default:$(function(){return[Z(K(e.rule.title),1)]}),_:2},1032,["tooltip"])):(P(),L(X,{key:1},[Z(K(e.rule.title),1)],64))]}),_:1},8,["api","rule","option","modelValue","onChange"]),[[q,e.baseForm.isShow]])]),j("div",nf,[e.propsForm.isShow?(P(),G(S,{key:0},{default:$(function(){return[Z(K(e.t("designer.props"))+" ",1),e.activeRule&&e.getConfig("showCustomProps",!0)?(P(),G(B,{key:0})):Q("",!0)]}),_:1})):Q("",!0),E(x(A,{api:e.propsForm.api,"onUpdate:api":t[26]||(t[26]=function(t){return e.propsForm.api=t}),rule:e.propsForm.rule,option:e.propsForm.options,modelValue:e.propsForm.value,onChange:e.propChange,onRemoveField:e.propRemoveField},{title:$(function(e){return[e.rule.warning?(P(),G(C,{key:0,tooltip:e.rule.warning},{default:$(function(){return[Z(K(e.rule.title),1)]}),_:2},1032,["tooltip"])):(P(),L(X,{key:1},[Z(K(e.rule.title),1)],64))]}),_:1},8,["api","rule","option","modelValue","onChange","onRemoveField"]),[[q,e.propsForm.isShow]]),e.customForm.isShow&&e.customForm.propsShow?(P(),G(S,{key:1},{default:$(function(){return[Z(K(e.t("designer.props")),1)]}),_:1})):Q("",!0),e.customForm.isShow&&e.customForm.propsShow?(P(),G(A,{api:e.customForm.api,"onUpdate:api":t[27]||(t[27]=function(t){return e.customForm.api=t}),rule:e.customForm.rule,option:e.customForm.options,key:e.customForm.key,onChange:e.customFormChange},null,8,["api","rule","option","onChange"])):Q("",!0)]),j("div",rf,[e.styleForm.isShow?(P(),G(S,{key:0,id:"_fd-config-style"},{default:$(function(){return[Z(K(e.t("designer.style")),1)]}),_:1})):Q("",!0),E(x(A,{rule:e.styleForm.rule,option:e.styleForm.options,modelValue:e.styleForm.value,onChange:e.styleChange,api:e.styleForm.api,"onUpdate:api":t[28]||(t[28]=function(t){return e.styleForm.api=t})},null,8,["rule","option","modelValue","onChange","api"]),[[q,e.styleForm.isShow]])]),j("div",of,[e.eventShow?(P(),G(S,{key:0},{default:$(function(){return[Z(K(e.t("designer.event")),1)]}),_:1})):Q("",!0),e.eventShow?(P(),G(T,{key:1,"event-name":e.activeRule&&e.activeRule._menu.event||[],"component-name":e.activeRule&&e.activeRule._menu.name||"","model-value":e.activeRule&&e.activeRule._on||{},"onUpdate:modelValue":e.changeEvent},null,8,["event-name","component-name","model-value","onUpdate:modelValue"])):Q("",!0)]),e.activeRule?(P(),L("div",af,[e.validateForm.isShow?(P(),G(S,{key:0},{default:$(function(){return[Z(K(e.t("designer.validate")),1)]}),_:1})):Q("",!0),e.validateForm.isShow?(P(),G(A,{api:e.validateForm.api,"onUpdate:api":t[29]||(t[29]=function(t){return e.validateForm.api=t}),rule:e.validateForm.rule,option:e.validateForm.options,modelValue:e.validateForm.value,onChange:e.validateChange,key:e.activeRule._fc_id},null,8,["api","rule","option","modelValue","onChange"])):Q("",!0)])):Q("",!0)],4)]}),_:1})),[[q,"props"===e.activeTab]])]}),_:1})]}),_:1},512)),[[q,!e.hiddenRight]]),e.hiddenLeft?(P(),L("div",{key:3,class:"_fc-l-open",onClick:t[30]||(t[30]=function(t){return e.hiddenLeft=!1})},t[51]||(t[51]=[j("i",{class:"fc-icon icon-arrow"},null,-1)]))):Q("",!0),e.hiddenRight?(P(),L("div",{key:4,class:"_fc-r-open",onClick:t[31]||(t[31]=function(t){return e.hiddenRight=!1})},t[52]||(t[52]=[j("i",{class:"fc-icon icon-arrow"},null,-1)]))):Q("",!0),x(M,{modelValue:e.preview.state,"onUpdate:modelValue":t[35]||(t[35]=function(t){return e.preview.state=t}),width:"80%",class:"_fd-preview-dialog","append-to-body":""},{default:$(function(){var n;return[x(R,{class:"_fd-preview-tabs",modelValue:e.previewStatus,"onUpdate:modelValue":t[32]||(t[32]=function(t){return e.previewStatus=t})},{default:$(function(){return[x(O,{label:e.t("form.formMode"),name:"form"},null,8,["label"]),x(O,{label:e.t("form.componentMode"),name:"component"},null,8,["label"]),x(O,{label:e.t("form.htmlMode"),name:"html"},null,8,["label"])]}),_:1},8,["modelValue"]),["component","html"].indexOf(e.previewStatus)>-1?(P(),L("div",{key:0,class:"_fd-preview-copy",onClick:t[33]||(t[33]=function(){return e.copyCode&&e.copyCode.apply(e,arguments)})},t[53]||(t[53]=[j("i",{class:"fc-icon icon-copy"},null,-1)]))):Q("",!0),"form"===e.previewStatus?(P(),L(X,{key:1},[e.preview.state?(P(),G(D,{key:0,rule:e.preview.rule,option:e.preview.option,api:e.preview.api,"onUpdate:api":t[34]||(t[34]=function(t){return e.preview.api=t}),onSubmit:e.previewSubmit,onReset:e.previewReset,locale:null==(n=e.locale)?void 0:n.name},ie({_:2},[J(e.$slots,function(t,n){return{name:n,fn:$(function(t){return[te(e.$slots,n,re(oe(null!=t?t:{})))]})}})]),1032,["rule","option","api","onSubmit","onReset","locale"])):Q("",!0)],64)):"component"===e.previewStatus?(P(),L("pre",lf,[j("code",{innerHTML:e.preview.component},null,8,uf)],512)):(P(),L("pre",sf,[j("code",{innerHTML:e.preview.html},null,8,cf)],512))]}),_:3},8,["modelValue"])]}),_:3}))]}),_:3})]}),_:3},8,["style","onDragenter","onDragleave","onDrop"])}]]),ff=b({name:"DragTool",emits:["create","copy","addChild","delete","active","fc.el"],props:{dragBtn:Boolean,children:String,mask:Boolean,handleBtn:[Boolean,Array],formCreateInject:Object,unique:String,only:Boolean},inject:{fcx:{default:null},designer:{default:null},dragTool:{default:null}},provide:function(){return{dragTool:this}},computed:{isCreate:function(){return!!this.dragTool&&!!this.dragTool.children},btns:function(){return Array.isArray(this.handleBtn)?!!this.handleBtn.length&&this.handleBtn:!1!==this.handleBtn},id:function(){return this.unique||this.formCreateInject.id},hiddenMenu:function(){return this.designer.ctx.hiddenDragMenu},hiddenBtn:function(){return this.designer.ctx.hiddenDragBtn},rule:function(){var e,t;return null==(t=null==(e=this.formCreateInject)?void 0:e.rule)?void 0:t._config._get()},permission:function(){return this.rule?this.designer.setupState.getPermission(this.rule):{}}},methods:{active:function(){this.fcx.active!==this.id&&(this.fcx.active=this.id,this.$emit("active"))}},mounted:function(){this.$emit("fc.el",this)}}),pf={key:0,class:"_fd-drag-mask"},hf={key:0,class:"_fd-drag-btn",style:{cursor:"move"}},mf={key:2,class:"_fd-drag-r"};var gf=hu(ff,[["render",function(e,t,n,i,r,o){return P(),L("div",{class:Y(["_fd-drag-tool",{active:e.fcx.active===e.id}]),onClick:t[5]||(t[5]=ee(function(){return e.active&&e.active.apply(e,arguments)},["stop"]))},[e.mask?(P(),L("div",pf)):Q("",!0),e.hiddenBtn||!1===e.permission.move?Q("",!0):(P(),L("div",{key:1,class:"_fd-drag-l",onClick:t[0]||(t[0]=ee(function(){},["stop"]))},[!1!==e.dragBtn?E((P(),L("div",hf,t[6]||(t[6]=[j("i",{class:"fc-icon icon-move"},null,-1)]),512)),[[q,e.fcx.active===e.id]]):Q("",!0)])),!1===e.btns||e.hiddenMenu||!1===e.permission.dragMenu?Q("",!0):(P(),L("div",mf,[te(e.$slots,"handle",{},function(){return[!1!==e.permission.create&&e.isCreate&&(!0===e.btns||e.btns.indexOf("create")>-1)?(P(),L("div",{key:0,class:"_fd-drag-btn",onClick:t[1]||(t[1]=ee(function(t){return e.$emit("create")},["stop"]))},t[7]||(t[7]=[j("i",{class:"fc-icon icon-add"},null,-1)]))):Q("",!0),!1!==e.permission.copy&&!e.only&&(!0===e.btns||e.btns.indexOf("copy")>-1)?(P(),L("div",{key:1,class:"_fd-drag-btn",onClick:t[2]||(t[2]=ee(function(t){return e.$emit("copy")},["stop"]))},t[8]||(t[8]=[j("i",{class:"fc-icon icon-copy"},null,-1)]))):Q("",!0),!1!==e.permission.addChild&&e.children&&(!0===e.btns||e.btns.indexOf("addChild")>-1)?(P(),L("div",{key:2,class:"_fd-drag-btn",onClick:t[3]||(t[3]=ee(function(t){return e.$emit("addChild")},["stop"]))},t[9]||(t[9]=[j("i",{class:"fc-icon icon-add-child"},null,-1)]))):Q("",!0),!1!==e.permission.delete&&(!0===e.btns||e.btns.indexOf("delete")>-1)?(P(),L("div",{key:3,class:"_fd-drag-btn _fd-drag-danger",onClick:t[4]||(t[4]=ee(function(t){return e.$emit("delete")},["stop"]))},t[10]||(t[10]=[j("i",{class:"fc-icon icon-delete"},null,-1)]))):Q("",!0)]})])),te(e.$slots,"default")],2)}]]);var vf=hu(b({name:"fcRow",mounted:function(){}}),[["render",function(e,t,n,i,r,o){var a=w("el-col");return P(),G(a,{span:24},{default:$(function(){return[j("div",V({class:["_fd-row el-row",{"_fc-child-empty":!e.$slots.default}]},e.$attrs),[te(e.$slots,"default")],16)]}),_:3})}]]),_f=b({name:"HtmlEditor",emits:["update:modelValue"],props:{modelValue:String,title:String,defaultValue:{require:!1}},inject:["designer"],computed:{t:function(){return this.designer.setupState.t}},data:function(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue:function(){this.load()},visible:function(e){e&&this.load()}},methods:{validateXML:function(e){var t,n=(new DOMParser).parseFromString(e,"text/html").getElementsByTagName("parsererror");return n.length>0&&null!=(t=n[0].innerText.split("\n")[0])?t:""},load:function(){var e=this;this.oldVal=this.modelValue,this.$nextTick(function(){e.editor=D(pu(e.$refs.editor,{lineNumbers:!0,mode:"xml",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e.modelValue||""}))})},onOk:function(){var e=this.editor.getValue();return this.validateXML(e)?(xi(this.t("struct.errorMsg")),!1):(this.visible=!1,e!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),yf={class:"_fd-html-editor"},bf={key:0,ref:"editor"};var Df=hu(_f,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-dialog");return P(),L("div",yf,[x(a,{onClick:t[0]||(t[0]=function(t){return e.visible=!0}),style:{width:"100%"}},{default:$(function(){return[Z(K(e.title||e.t("struct.title")),1)]}),_:1}),x(l,{class:"_fd-html-editor-con",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.visible=t}),"close-on-click-modal":!1,"append-to-body":""},{footer:$(function(){return[j("div",null,[x(a,{onClick:t[1]||(t[1]=function(t){return e.visible=!1}),size:"default"},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1}),x(a,{type:"primary",onClick:e.onOk,size:"default"},{default:$(function(){return[Z(K(e.t("props.ok")),1)]}),_:1},8,["onClick"])])]}),default:$(function(){return[e.visible?(P(),L("div",bf,null,512)):Q("",!0)]}),_:1},8,["title","modelValue"])])}]]),Af=b({name:"FnInput",components:{FnEditor:Au},emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,title:String,body:Boolean,fnx:Boolean,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t:function(){return this.designer.setupState.t},configured:function(){return!!this.modelValue}},data:function(){return{visible:!1,value:this.modelValue}},watch:{modelValue:function(e){this.value=e}},methods:{onOk:function(){this.$refs.editor.save()&&(this.$emit("update:modelValue",this.value),this.$emit("change",this.value),this.visible=!1)}}}),xf={class:"_fd-fn-input"};var wf=hu(Af,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-badge"),u=w("FnEditor"),s=w("el-dialog");return P(),L("div",xf,[x(l,{type:"warning","is-dot":"",hidden:!e.configured},{default:$(function(){return[x(a,{onClick:t[0]||(t[0]=function(t){return e.visible=!0}),size:"small"},{default:$(function(){return[te(e.$slots,"default",{},function(){return[Z(K(e.t("event.title")),1)]})]}),_:3})]}),_:3},8,["hidden"]),x(s,{class:"_fd-fn-input-dialog _fd-config-dialog",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.visible=t}),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:$(function(){return[j("div",null,[x(a,{onClick:t[2]||(t[2]=function(t){return e.visible=!1}),size:"default"},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1}),x(a,{type:"primary",onClick:e.onOk,size:"default"},{default:$(function(){return[Z(K(e.t("props.ok")),1)]}),_:1},8,["onClick"])])]}),default:$(function(){return[x(u,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.value=t}),name:e.name,args:e.args,body:e.body,fnx:e.fnx},null,8,["modelValue","name","args","body","fnx"])]}),_:1},8,["title","modelValue"])])}]]),Cf=b({name:"FetchConfig",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},components:{Warning:Nd,DragForm:ru.$form(),FnEditor:Au,StructEditor:Fd},inject:["designer"],data:function(){return{visible:!1,value:hi(this.modelValue||{}),form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"default"},submitBtn:!1,resetBtn:!1}}}},computed:{t:function(){return this.designer.setupState.t},configured:function(){return!ci.empty(this.modelValue)}},watch:{visible:function(e){e&&(this.value=hi(this.modelValue||{}),this.active())}},methods:{open:function(){this.visible=!0},active:function(){var e=this.value;this.form.rule="static"===e.type?[]:function(e){return[{type:"input",field:"action",title:e("fetch.action"),value:"",props:{size:"default"},validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",props:{size:"default"},options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",props:{size:"default"},options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"TableOptions",field:"headers",title:e("fetch.headers"),value:{},props:{column:[{label:e("props.key"),key:"label"},{label:e("props.value"),key:"value"}],valueType:"object",size:"default"}},{type:"TableOptions",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{},props:{column:[{label:e("props.key"),key:"label"},{label:e("props.value"),key:"value"}],valueType:"object",size:"default"}},{type:"TableOptions",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{},props:{column:[{label:e("props.key"),key:"label"},{label:e("props.value"),key:"value"}],valueType:"object",size:"default"}}]}(this.t),this.form.formData=p({},e),this.form.label=e.label,this.form.type=e.type,this.form.data=e.data,this.form.dataType=e.dataType,this.form.parse=e.parse||"",this.form.beforeFetch=e.beforeFetch||"",this.form.onError=e.onError||""},save:function(){var e=this;this.form.api.validate().then(function(){var t=p({},e.form.formData);e.$refs.parse&&!e.$refs.parse.save()||e.$refs.beforeFetch&&!e.$refs.beforeFetch.save()||e.$refs.error&&!e.$refs.error.save()||(t.parse=ru.parseFn(e.form.parse),t.beforeFetch=ru.parseFn(e.form.beforeFetch),t.onError=e.form.onError,t.label=e.form.label,t.type=e.form.type,t.to=e.to||"options",e.$emit("update:modelValue",t),e.visible=!1)}).catch(function(e){xi(e[Object.keys(e)[0]][0].message)})}},created:function(){this.active()}}),Ef={class:"_fd-gfc"};var kf=hu(Cf,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-badge"),u=w("Warning"),s=w("DragForm"),c=w("el-tab-pane"),d=w("FnEditor"),f=w("el-tabs"),p=w("el-container"),h=w("el-dialog");return P(),L("div",Ef,[x(l,{type:"warning","is-dot":"",hidden:!e.configured},{default:$(function(){return[x(a,{onClick:t[0]||(t[0]=function(t){return e.visible=!0}),size:"small"},{default:$(function(){return[Z(K(e.t("struct.title")),1)]}),_:1})]}),_:1},8,["hidden"]),x(h,{class:"_fd-gfc-dialog",modelValue:e.visible,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.visible=t}),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{header:$(function(){return[Z(K(e.t("fetch.optionsType.fetch"))+" ",1),x(u,{tooltip:e.t("warning.fetch")},null,8,["tooltip"])]}),footer:$(function(){return[j("div",null,[x(a,{size:"default",onClick:t[6]||(t[6]=function(t){return e.visible=!1})},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1}),x(a,{type:"primary",size:"default",onClick:e.save,color:"#2f73ff"},{default:$(function(){return[Z(K(e.t("props.ok")),1)]}),_:1},8,["onClick"])])]}),default:$(function(){return[x(p,{class:"_fd-gfc-con",style:{height:"450px"}},{default:$(function(){return[x(f,{"model-value":"first",class:"_fc-tabs",style:{width:"100%"}},{default:$(function(){return[x(c,{label:e.t("fetch.config"),name:"first"},{default:$(function(){return[x(s,{api:e.form.api,"onUpdate:api":t[1]||(t[1]=function(t){return e.form.api=t}),modelValue:e.form.formData,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.formData=t}),rule:e.form.rule,option:e.form.options},{title:$(function(e){return[e.rule.warning?(P(),G(u,{key:0,tooltip:e.rule.warning},{default:$(function(){return[Z(K(e.rule.title),1)]}),_:2},1032,["tooltip"])):(P(),L(X,{key:1},[Z(K(e.rule.title),1)],64))]}),_:1},8,["api","modelValue","rule","option"])]}),_:1},8,["label"]),x(c,{lazy:"",label:e.t("fetch.beforeFetch"),name:"second"},{label:$(function(){return[Z(K(e.t("fetch.beforeFetch"))+" ",1),x(u,{tooltip:e.t("warning.beforeFetch")},null,8,["tooltip"])]}),default:$(function(){return[x(d,{style:{height:"415px"},modelValue:e.form.beforeFetch,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.form.beforeFetch=t}),name:"beforeFetch",args:["config","data"],ref:"beforeFetch"},null,8,["modelValue"])]}),_:1},8,["label"]),x(c,{lazy:"",name:"third"},{label:$(function(){return[Z(K(e.t("fetch.parse"))+" ",1),x(u,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]}),default:$(function(){return[x(d,{style:{height:"415px"},modelValue:e.form.parse,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.form.parse=t}),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]}),_:1}),x(c,{lazy:"",label:e.t("fetch.onError"),name:"fourth"},{default:$(function(){return[x(d,{style:{height:"415px"},modelValue:e.form.onError,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.form.onError=t}),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]}),_:1},8,["label"])]}),_:1})]}),_:1})]}),_:1},8,["modelValue"])])}]]),Ff=b({name:"ConfigItem",components:{Warning:Nd},props:{label:String,info:String,warning:String,appendBackground:String,arrow:{type:Boolean,default:!0},showAppend:Boolean},data:function(){return{visit:!1}}}),Sf={class:"_fd-config-item"},Bf={class:"_fd-ci-head"},Tf={key:0,class:"_fd-ci-con"},Of={key:1,class:"_fd-ci-info"};var Rf=hu(Ff,[["render",function(e,t,n,i,r,o){var a=w("Warning");return P(),L("div",Sf,[j("div",Bf,[j("div",{class:Y(["_fd-ci-label",e.$slots.append&&!1!==e.arrow?"is-arrow":""]),onClick:t[0]||(t[0]=function(t){return e.visit=e.$slots.append&&!1!==e.arrow&&!e.visit})},[e.warning?(P(),G(a,{key:0,tooltip:e.warning},{default:$(function(){return[te(e.$slots,"label",{},function(){return[j("span",null,K(e.label),1)]})]}),_:3},8,["tooltip"])):te(e.$slots,"label",{key:1},function(){return[j("span",null,K(e.label),1)]}),e.$slots.append&&!1!==e.arrow?(P(),L("i",{key:2,class:Y(["fc-icon icon-down",e.showAppend||e.visit?"down":""])},null,2)):Q("",!0)],2),e.$slots.default||e.info?(P(),L("div",Tf,[e.$slots.default?te(e.$slots,"default",{key:0}):(P(),L("span",Of,K(e.info),1))])):Q("",!0)]),e.showAppend||e.visit?(P(),L("div",{key:0,class:"_fd-ci-append",style:ne("background:"+e.appendBackground)},[te(e.$slots,"append")],4)):Q("",!0)])}]]),Mf=b({name:"FieldInput",inject:["designer"],emits:["update:modelValue"],props:{modelValue:String,disabled:Boolean},computed:{fieldReadonly:function(){return this.designer.setupState.fieldReadonly},activeRule:function(){return this.designer.setupState.activeRule},t:function(){return this.designer.setupState.t}},data:function(){return{value:this.modelValue||"",oldValue:""}},watch:{modelValue:function(e){this.value=e}},methods:{copy:function(){Gi(this.modelValue)},getSubChildren:function(){var e=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return e=ci.trueArray(e)?e:this.designer.setupState.children},getSubFieldChildren:function(){var e=this.getSubChildren(),t=[],n=function(e){return e&&e.forEach(function(e){e&&e._fc_drag_tag&&e.field?t.push(p(p({},e),{},{children:[]})):e&&e.children&&n(e.children)}),t};return n(e)},checkValue:function(){var e=this.oldValue,t=(this.value||"").replace(/[\s ]/g,"");if(!t)return xi(this.t("computed.fieldEmpty")),e;if(!/^[a-zA-Z]/.test(t))return xi(this.t("computed.fieldChar")),e;if(e!==t){var n=t.indexOf(".")>-1;if(n&&(t=t.replaceAll(".","_")),this.getSubFieldChildren().filter(function(e){return e.field===t}).length>0)return xi(this.t("computed.fieldExist",{label:t})),e;if(n)return t}return this.oldValue="",t},onFocus:function(){this.oldValue=this.value},makeField:function(){this.oldValue=this.value,this.value=er(),this.onInput()},onInput:function(){this.value!==this.modelValue&&(this.value=this.checkValue(),this.oldValue=this.value,this.value!==this.modelValue&&(this.designer.emit("changeField",{field:this.value,oldField:this.modelValue,rule:this.activeRule}),this.$emit("update:modelValue",this.value)))}}}),Nf={class:"_fd-field-input"};var If=hu(Mf,[["render",function(e,t,n,i,r,o){var a=w("el-input");return P(),L("div",Nf,[j("i",{class:"fc-icon icon-group",onClick:t[0]||(t[0]=ee(function(){return e.copy&&e.copy.apply(e,arguments)},["stop"]))}),x(a,{modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.value=t}),readonly:e.fieldReadonly||e.disabled,disabled:e.fieldReadonly||e.disabled,onFocus:e.onFocus,onBlur:e.onInput},ie({_:2},[e.fieldReadonly?void 0:{name:"append",fn:$(function(){return[j("i",{class:"fc-icon icon-auto",onClick:t[1]||(t[1]=function(){return e.makeField&&e.makeField.apply(e,arguments)})})]}),key:"0"}]),1032,["modelValue","readonly","disabled","onFocus","onBlur"])])}]]),Lf=b({name:"FnConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],eventConfig:{type:Array,default:function(){return[]}}},inject:["designer"],components:{FnEditor:Au},data:function(){return{visible:!1,activeData:null,defActive:"no",event:{},cus:!1,eventStr:""}},computed:{eventInfo:function(){var e={};return this.eventConfig.forEach(function(t){e[t.name]=t.info}),e},t:function(){return this.designer.setupState.t},eventNum:function(){var e=this,t=0;return Object.keys(this.modelValue||{}).forEach(function(n){e.modelValue[n]&&t++}),t}},watch:{visible:function(e){this.event=e?this.loadFN(pi({},this.modelValue||{})):{},e||this.destroy()}},methods:{getArgs:function(e){return e.args.join(", ")},loadFN:function(e){var t={};return this.eventConfig.forEach(function(n){var i=n.name,r=e[i]||"";t[i]={item:n,fn:r}}),t},parseFN:function(e){var t={};return Object.keys(e).forEach(function(n){e[n].fn&&(t[n]=e[n].fn)}),t},edit:function(e){e.key=er(),this.activeData=e,this.eventStr=e.fn||"[[FORM-CREATE-PREFIX-"+"function ".concat(e.item.name,"(").concat(this.getArgs(e.item),"){}")+"-FORM-CREATE-SUFFIX]]",this.defActive=e.item.name},save:function(){return!!this.$refs.fn.save()&&(this.activeData.fn=this.eventStr,this.destroy(),!0)},destroy:function(){this.activeData=null,this.defActive="no"},close:function(){this.destroy()},submit:function(){this.activeData&&!this.save()||(this.$emit("update:modelValue",this.parseFN(this.event)),this.visible=!1,this.destroy())}}}),Pf={class:"_fd-fn-list"},jf=["onClick"],Vf={key:0,class:"_fd-label"},zf={key:1,class:"_fd-dot"};var Hf=hu(Lf,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-badge"),u=w("el-text"),s=w("el-header"),c=w("el-menu-item"),d=w("el-menu"),f=w("el-main"),p=w("el-container"),h=w("el-aside"),m=w("FnEditor"),g=w("el-dialog");return P(),L("div",Pf,[x(l,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:$(function(){return[x(a,{onClick:t[0]||(t[0]=function(t){return e.visible=!0}),size:"small"},{default:$(function(){return[Z(K(e.t("event.title")),1)]}),_:1})]}),_:1},8,["value","hidden"]),x(g,{class:"_fd-fn-list-dialog",title:e.t("event.title"),modelValue:e.visible,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.visible=t}),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{footer:$(function(){return[j("div",null,[x(a,{size:"default",onClick:t[3]||(t[3]=function(t){return e.visible=!1})},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1}),x(a,{type:"primary",size:"default",onClick:e.submit,color:"#2f73ff"},{default:$(function(){return[Z(K(e.t("props.ok")),1)]}),_:1},8,["onClick"])])]}),default:$(function(){return[x(p,{class:"_fd-fn-list-con",style:{height:"600px"}},{default:$(function(){return[x(h,{style:{width:"300px"}},{default:$(function(){return[x(p,{class:"_fd-fn-list-l"},{default:$(function(){return[x(s,{class:"_fd-fn-list-head",height:"40px"},{default:$(function(){return[x(u,{type:"primary",size:"default"},{default:$(function(){return[Z(K(e.t("event.list")),1)]}),_:1})]}),_:1}),x(f,null,{default:$(function(){return[x(d,{"default-active":e.defActive,modelValue:e.activeData,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.activeData=t})},{default:$(function(){return[(P(!0),L(X,null,J(e.event,function(n,i){return P(),G(c,{index:i},{default:$(function(){return[j("div",{class:"_fd-fn-list-method",onClick:ee(function(t){return e.edit(n)},["stop"])},[j("span",null,[t[5]||(t[5]=Z("function")),j("span",null,K(i),1)]),e.eventInfo[i]?(P(),L("span",Vf,K(e.eventInfo[i]),1)):Q("",!0),n.fn?(P(),L("span",zf)):Q("",!0)],8,jf)]}),_:2},1032,["index"])}),256))]}),_:1},8,["default-active","modelValue"])]}),_:1})]}),_:1})]}),_:1}),x(f,null,{default:$(function(){return[x(p,{class:"_fd-fn-list-r"},{default:$(function(){return[e.activeData?(P(),G(s,{key:0,class:"_fd-fn-list-head",height:"40px"},{default:$(function(){return[x(a,{size:"small",onClick:e.close},{default:$(function(){return[Z(K(e.t("props.cancel")),1)]}),_:1},8,["onClick"]),x(a,{size:"small",type:"primary",onClick:e.save,color:"#2f73ff"},{default:$(function(){return[Z(K(e.t("props.save")),1)]}),_:1},8,["onClick"])]}),_:1})):Q("",!0),e.activeData?(P(),G(f,{key:1},{default:$(function(){return[x(m,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.eventStr=t}),name:e.activeData.item.name,args:e.activeData.item.args},null,8,["modelValue","name","args"])]}),_:1})):Q("",!0)]}),_:1})]}),_:1})]}),_:1})]}),_:1},8,["title","modelValue"])])}]]),Uf=b({name:"DragBox",props:["rule","tag","formCreateInject","list"],render:function(e){var t=p(p({},e.$props.rule.props),e.$attrs),n="_fd-"+e.$props.tag+"-drag _fd-drag-box";Object.keys(e.$slots).length||(n+=" drag-holder"),t.class=n,t.modelValue=e.$props.list||g(e.$props.formCreateInject.children);var i={};return e.$slots.default&&e.$slots.default().forEach(function(e){e.key&&(i[e.key]=e)}),F(tu,t,{item:function(t){var n,r=t.element,o=t.index,a=null==(n=null==r?void 0:r.__fc__)?void 0:n.key;if(a){var l=i["_"+r.slot];if(l?l.children.forEach(function(e){e.key===a+"fc"&&(l=e)}):l=i[a+"fc"],l)return F("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item",key:a},l)}return F("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item",key:o},null)}})}}),Wf=b({name:"FcTableView",props:{mini:Boolean,label:String,width:[Number,String],formCreateInject:Object,border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:function(){return{row:1,col:1}}}},inject:["designer"],components:{DragTool:gf,DragBox:Uf},watch:{rule:{handler:function(){this.initRule(),this.style=this.rule.style},immediate:!0}},data:function(){var e=this;return{unique:{},style:{},selection:[],selectionPos:null,visible:!1,resize:{isResizing:!1,startX:0,startY:0,startWidth:0,startHeight:0},menuPos:{left:0,top:0},isSelecting:null,oldSelection:null,dragProp:{rule:{props:{tag:"el-col",group:{name:"default",put:function(t){for(var n,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return t.el.__rule__=e.formCreateInject.rule,(n=e.designer.setupState).dragPut.apply(n,[t].concat(r))}},ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:"tableCell"},lattice:{},uni:{}}},computed:{t:function(){return this.designer.setupState.t},tableColor:function(){var e={};return!1===this.border?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{contextmenu:function(e){e.preventDefault(),e.stopPropagation(),this.selectionPos&&(this.menuPos={left:"".concat(e.clientX,"px"),top:"".concat(e.clientY,"px")},this.visible=!0)},rowResize:function(e,t){var n=this,i=t.pid,r=t.idx;e.preventDefault(),e.stopPropagation();var o,a="".concat(this.lattice[i][r].startRow||i,":").concat(this.lattice[i][r].startCol||0);(!this.$refs["td_".concat(a)]||this.lattice[i][r].colspan>1||this.lattice[i][r].rowspan>1)&&(a="".concat(i,":").concat(r));var l=this.$refs["td_".concat(a)][0].parentElement,u=this.rule.style[a]||{},s=function(e){if(n.resize.isResizing){var t=e.clientY-n.resize.startY,i=n.resize.startHeight+t;i>20&&(l.style.height="".concat(i,"px"),o=i)}},c=function(){!n.resize.isResizing||(n.resize.isResizing=!1,u.height="".concat(o,"px"),n.rule.style[a]=u,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c))};this.resize.isResizing=!0,this.resize.startY=e.clientY,this.resize.startHeight=l.offsetHeight,u.height&&(l.style.height=u.height,delete u.height),document.addEventListener("mousemove",s),document.addEventListener("mouseup",c)},colResize:function(e,t){var n=this,i=t.pid,r=t.idx;e.preventDefault(),e.stopPropagation();var o,a="".concat(this.lattice[i][r].startRow||0,":").concat(this.lattice[i][r].startCol||r);(!this.$refs["td_".concat(a)]||this.lattice[i][r].colspan>1||this.lattice[i][r].rowspan>1)&&(a="".concat(i,":").concat(r));var l=this.$refs["td_".concat(a)][0],u=this.rule.style[a]||{},s=function(e){if(n.resize.isResizing){var t=e.clientX-n.resize.startX,i=n.resize.startWidth+t;i>20&&(l.style.width="".concat(i,"px"),o=i)}},c=function(){!n.resize.isResizing||(n.resize.isResizing=!1,u.width="".concat(o,"px"),n.rule.style[a]=u,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c))};this.resize.isResizing=!0,this.resize.startX=e.clientX,this.resize.startWidth=l.offsetWidth,document.addEventListener("mousemove",s),document.addEventListener("mouseup",c)},mousedown:function(e,t){var n=t.pid,i=t.idx;0===e.button&&!e.target.classList.contains("icon-move")&&!e.target.classList.contains("_fd-table-row-handle")&&!e.target.classList.contains("_fd-table-col-handle")&&(e.stopPropagation(),e.preventDefault(),this.visible?this.visible=!1:(this.isSelecting={pid:n,idx:i},this.updateSelection({pid:n,idx:i})))},mousemove:function(e,t){var n=t.pid,i=t.idx;this.isSelecting&&(e.stopPropagation(),(!this.oldSelection||this.oldSelection.pid!==n||this.oldSelection.idx!==i)&&(this.updateSelection({pid:n,idx:i}),this.oldSelection={pid:n,idx:i}))},mouseup:function(){this.isSelecting=null},dblclick:function(e,t){var n=t.pid,i=t.idx,r=!1;if(this.formCreateInject.children.forEach(function(e){r=r||e&&e.slot==="".concat(n,":").concat(i)}),!r){var o=this.designer.setupState;o.dragMenu({menu:o.dragRuleList.text,children:this.formCreateInject.children,index:this.formCreateInject.children.length,slot:"".concat(n,":").concat(i)})}},updateSelection:function(e){var t=e.pid,n=e.idx,i=this.selectionRect(this.isSelecting,{pid:t,idx:n}),r=this.getSelectionPos({startRow:i[0].pid,startCol:i[0].idx,endRow:i[i.length-1].pid,endCol:i[i.length-1].idx,selection:i}),o=r.startRow,a=r.startCol,l=r.endRow,u=r.endCol;this.selectionPos={startRow:o,startCol:a,endRow:l,endCol:u},this.selection=this.selectionRect({pid:o,idx:a},{pid:l,idx:u},!0)},getSelectionPos:function(e){var t=this,n=e.startRow,i=e.startCol,r=e.endRow,o=e.endCol;return(e.selection||this.selectionRect({pid:n,idx:i},{pid:r,idx:o})).forEach(function(e){var a=t.lattice[e.pid][e.idx];if(a.show)a.rowspan>1&&(r=Math.max(r,e.pid+a.rowspan-1)),a.colspan>1&&(o=Math.max(o,e.idx+a.colspan-1));else{var l=t.lattice[a.startRow][a.startCol];n=Math.min(n,a.startRow),i=Math.min(i,a.startCol),r=Math.max(r,a.startRow+l.rowspan-1),o=Math.max(o,a.startCol+l.colspan-1)}}),e.startRow!==n||e.endRow!==r||e.startCol!==i||e.endCol!==o?this.getSelectionPos({startRow:n,startCol:i,endRow:r,endCol:o}):{startRow:n,startCol:i,endRow:r,endCol:o}},selectionRect:function(e,t,n){for(var i=e.pid,r=e.idx,o=t.pid,a=t.idx,l=Math.min(i,o),u=Math.max(i,o),s=Math.min(r,a),c=Math.max(r,a),d=[],f=l;f<=u;f++)for(var p=s;p<=c;p++)d.push(n?"".concat(f,":").concat(p):{pid:f,idx:p});return d},clearSelection:function(){this.isSelecting=null,this.oldSelection=null,this.selection=[],this.selectionPos=null},getUnique:function(e){return this.unique[e]||(this.unique[e]=er()),this.unique[e]},getSlotChildren:function(e){var t=[];return this.formCreateInject.children.forEach(function(n){e.indexOf(n.slot)>-1&&t.push(n)}),t},dragAdd:function(e,t){var n=this.designer.setupState,i=this.formCreateInject.children,r="".concat(t.pid,":").concat(t.idx),o=e.item._underlying_vm_,a=n.addRule&&n.addRule.children===n.moveRule;a&&n.moveRule.splice(n.moveRule.indexOf(o),1);var l=0,u="drag"+t.pid+t.idx;if(this.$refs[u][0].list.length){var s=this.$refs[u][0].list[e.newIndex?e.newIndex-1:0];l=i.indexOf(s)+(e.newIndex?1:0)}else if(i.length)for(var c=Object.keys(this.$refs),d=c.indexOf(u)-1;d>=0;d--)if(this.$refs[c[d]]&&this.$refs[c[d]].length){var f=this.$refs[c[d]][0].list||[];if(f.length){l=i.indexOf(f[f.length-1])+1;break}}e.newIndex=l,a?(o.slot=r,i.splice(e.newIndex,0,o),n.added=!0,n.handleSortAfter({rule:o})):n.dragAdd(i,e,"".concat(t.pid,":").concat(t.idx))},dragEnd:function(e,t){var n=this.designer.setupState,i=this.formCreateInject.children,r=e.item._underlying_vm_,o=i.indexOf(r);e.newIndex=o+(e.newIndex-e.oldIndex),e.oldIndex=o,n.dragEnd(this.formCreateInject.children,e,"".concat(t.pid,":").concat(t.idx))},dragStart:function(){this.designer.setupState.dragStart(this.formCreateInject.children)},dragUnchoose:function(e){this.designer.setupState.dragUnchoose(this.formCreateInject.children,e)},initRule:function(){var e=this.rule;e.style||(e.style={}),e.class||(e.class={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},active:function(e){var t=this,n="".concat(e.pid,":").concat(e.idx);this.designer.setupState.customActive({name:"fcTableGrid",onPaste:function(e){e.slot=n,t.formCreateInject.children.push(e)},style:{formData:{style:this.rule.style[n]||{},class:this.rule.class[n]||""},change:function(e,i){i&&0!==Object.keys(i).length?t.rule[e][n]=i:delete t.rule[e][n]}}})},command:function(e){this[e[0]].apply(this,g(e[1]))},rmSlot:function(e,t){var n=this,i=Object.keys(e),r=this.formCreateInject.children,o=0;g(r).forEach(function(n,a){var l;n.slot&&(t.indexOf(n.slot)>-1?(r.splice(a-o,1),o++):(l=i.indexOf(n.slot))>-1&&(n.slot=e[i[l]]))}),t.forEach(function(e){delete n.style[e]}),this.loadRule()},rmRow:function(e){this.clearSelection(),this.rule.row--;for(var t={},n=[],i=e.pid;i<this.rule.row+1;i++)for(var r=0;r<this.rule.col;r++)i===e.pid?n.push("".concat(e.pid,":").concat(r)):t["".concat(i,":").concat(r)]="".concat(i-1,":").concat(r);var o=0,a=this.rule.layout;g(a).forEach(function(t,n){t.top===e.pid&&(a.splice(n-o,1),o++)}),a.forEach(function(t){t.top>e.pid&&t.top--}),this.rmSlot(t,n)},rmCol:function(e){this.clearSelection(),this.rule.col--;for(var t={},n=[],i=0;i<this.rule.row;i++){for(var r=e.idx+1;r<this.rule.col+1;r++)t["".concat(i,":").concat(r)]="".concat(i,":").concat(r-1);n.push("".concat(i,":").concat(e.idx))}var o=0,a=this.rule.layout;g(a).forEach(function(t,n){t.left===e.idx&&(a.splice(n-o,1),o++)}),a.forEach(function(t){t.left>e.idx&&t.left--}),this.rmSlot(t,n)},splitRow:function(e){this.clearSelection();var t=e.data.layout,n=t.row;if(t.row=0,n>1)for(var i=1;i<n;i++)this.rule.layout.push(p(p({},t),{},{top:t.top+i}));this.loadRule()},splitCol:function(e){this.clearSelection();var t=e.data.layout,n=t.col;if(t.col=0,n>1)for(var i=1;i<n;i++)this.rule.layout.push(p(p({},t),{},{left:t.left+i}));this.loadRule()},makeMap:function(e){for(var t=[],n=e.top;n<(e.row||e.top+1);n++)for(var i=e.left;i<(e.col||e.left+1);i++)t.push("".concat(n,":").concat(i));return t},rmSelectionContent:function(){this.rmSlot({},this.selection)},selectionStyle:function(){var e=this,t=p({},this.rule.style[this.selection[0]]||{}),n=this.selection.reduce(function(t,n){return t[n]=p({},e.rule.style[n]||{}),t},{});this.designer.setupState.customActive({name:"fcTableGrid",style:{formData:{style:t,class:this.rule.class[this.selection[0]]||""},change:function(i,r){e.selection.forEach(function(o){if(r&&0!==Object.keys(r).length)if("style"===i){var a=p({},n[o]);Object.keys(r).forEach(function(e){r[e]!==t[e]&&(a[e]=r[e])}),e.rule[i][o]=a}else e.rule[i][o]=r;else delete e.rule[i][o]})}}})},rmSelectionCol:function(){for(var e=this,t=this.selectionPos.endCol-this.selectionPos.startCol+1,n={},i=0;i<this.rule.row;i++)for(var r=this.selectionPos.endCol+1;r<this.rule.col;r++)n["".concat(i,":").concat(r)]="".concat(i,":").concat(r-t);var o=this.filterSelectionLayout();o.forEach(function(n){n.left>e.selectionPos.startCol&&(n.left-=t)}),this.rule.layout=o,this.rule.col-t<=0?this.formCreateInject.children.splice(0,this.formCreateInject.children.length):this.rmSlot(n,this.selectionRect({pid:0,idx:this.selectionPos.startCol},{pid:this.rule.row,idx:this.selectionPos.endCol},!0)),this.rule.col=Math.max(1,this.rule.col-t),this.clearSelection()},rmSelectionRow:function(){for(var e=this,t=this.selectionPos.endRow-this.selectionPos.startRow+1,n={},i=this.selectionPos.endRow+1;i<this.rule.row;i++)for(var r=0;r<this.rule.col;r++)n["".concat(i,":").concat(r)]="".concat(i-t,":").concat(r);var o=this.filterSelectionLayout();o.forEach(function(n){n.top>e.selectionPos.startRow&&(n.top-=t)}),this.rule.layout=o,this.rule.row-t<=0?this.formCreateInject.children.splice(0,this.formCreateInject.children.length):this.rmSlot(n,this.selectionRect({pid:this.selectionPos.startRow,idx:0},{pid:this.selectionPos.endRow,idx:this.rule.col},!0)),this.rule.row=Math.max(1,this.rule.row-t),this.clearSelection()},filterSelectionLayout:function(){var e=this;return(this.rule.layout||[]).filter(function(t){return t.top<e.selectionPos.startRow||t.top>e.selectionPos.endRow||t.left<e.selectionPos.startCol||t.left>e.selectionPos.endCol})},mergeSelection:function(e){var t=this.filterSelectionLayout();if(!e){t.push({top:this.selectionPos.startRow,left:this.selectionPos.startCol,row:this.selectionPos.endRow-this.selectionPos.startRow+1,col:this.selectionPos.endCol-this.selectionPos.startCol+1});for(var n={},i=this.selectionPos.startRow;i<=this.selectionPos.endRow;i++)for(var r=this.selectionPos.startCol;r<=this.selectionPos.endCol;r++)n["".concat(i,":").concat(r)]="".concat(this.selectionPos.startRow,":").concat(this.selectionPos.startCol);this.rmSlot(n,[])}this.rule.layout=t,this.loadRule()},mergeRight:function(e){var t;if(this.clearSelection(),e.data.layout){var n=(e.data.layout.col||1)+1;e.data.layout.col=n+e.idx>this.rule.col?this.rule.col-e.idx:n,t=e.data.layout}else t={top:e.pid,left:e.idx,col:2},this.rule.layout.push(t);var i=this.makeMap(t);this.formCreateInject.children.forEach(function(t){!t.slot||i.indexOf(t.slot)>-1&&(t.slot="".concat(e.pid,":").concat(e.idx))}),this.loadRule()},mergeBottom:function(e){var t;if(this.clearSelection(),e.data.layout){var n=(e.data.layout.row||1)+1;e.data.layout.row=n+n.pid>this.rule.col?this.rule.col-e.pid:n,t=e.data.layout}else t={top:e.pid,left:e.idx,row:2},this.rule.layout.push(t);var i=this.makeMap(t);this.formCreateInject.children.forEach(function(t){!t.slot||i.indexOf(t.slot)>-1&&(t.slot="".concat(e.pid,":").concat(e.idx))}),this.loadRule()},addCol:function(e,t){var n=this;if(this.clearSelection(),this.rule.col++,this.rule.layout.forEach(function(n){n.left>(t?e.idx-1:e.idx)&&n.left++}),t||e.idx<this.rule.col-2){for(var i={},r=0;r<this.rule.row;r++)for(var o=t?e.idx-1:e.idx+1;o<this.rule.col-1;o++)i["".concat(r,":").concat(o)]="".concat(r,":").concat(o+1);var a=Object.keys(i);this.formCreateInject.children.forEach(function(e){var t;e.slot&&(t=a.indexOf(e.slot))>-1&&(e.slot=i[a[t]])}),a.forEach(function(e){n.style[e]&&(n.style[i[e]]=n.style[e],delete n.style[e])})}this.loadRule()},addRow:function(e,t){var n=this;if(this.clearSelection(),this.rule.row++,this.rule.layout.forEach(function(n){n.top>(t?e.pid-1:e.pid)&&n.top++}),t||e.pid<this.rule.row-2){for(var i={},r=t?e.pid-1:e.pid+1;r<this.rule.row;r++)for(var o=0;o<this.rule.col;o++)i["".concat(r,":").concat(o)]="".concat(r+1,":").concat(o);var a=Object.keys(i);this.formCreateInject.children.forEach(function(e){var t;e.slot&&(t=a.indexOf(e.slot))>-1&&(e.slot=i[a[t]])}),a.reverse().forEach(function(e){n.style[e]&&(n.style[i[e]]=n.style[e],delete n.style[e])})}this.loadRule()},loadRule:function(){for(var e=[],t=this.rule||{row:1,col:1},n=0;n<t.row;n++){var i=[];e.push(i);for(var r=0;r<t.col;r++)i.push({rowspan:1,colspan:1,slot:[],show:!0,id:this.getUnique("".concat(n).concat(r))})}g(t.layout||[]).forEach(function(n,i){if((n.row&&!(n.row<=0)||n.col&&!(n.col<=0))&&e[n.top]&&e[n.top][n.left]&&e[n.top][n.left].show){var r=e[n.top][n.left];r.layout=n;var o=1,a=1;if(n.col&&(o=n.col+n.left>t.col?t.col-n.left:n.col,r.colspan=o),n.row&&(a=n.row+n.top>t.row?t.row-n.top:n.row,r.rowspan=a),a&&o)for(var l=0;l<a;l++){var u=e[n.top+l];if(u)for(var s=0;s<o;s++)!s&&!l||(u[n.left+s]&&(u[n.left+s].show=!1,u[n.left+s].startRow=n.top,u[n.left+s].startCol=n.left),r.slot.push("".concat(n.top+l,":").concat(n.left+s)))}}else t.layout.splice(i,1)});var o=function(e){return!(e&&!e.layout&&e.show)};e.forEach(function(t,n){t.forEach(function(i,r){var a=!1,l=!1;if(i.layout){for(var u=i.layout.col||1,s=i.layout.row||1,c=0;c<u;c++)if(!e[n+s]||o(e[n+s][r+c])){l=!0;continue}for(var d=0;d<s;d++)if(!e[n+d]||o(e[n+d][r+u])){a=!0;continue}}else a=o(t[r+1]),l=!e[n+1]||o(e[n+1][r]);i.right=a,i.bottom=l})}),this.lattice=e,this.formCreateInject.rule.props.rule=t},hideMenu:function(){this.visible=!1}},beforeMount:function(){this.loadRule()},mounted:function(){document.addEventListener("click",this.hideMenu,!0)},beforeUnmount:function(){document.removeEventListener("click",this.hideMenu,!0)}}),Gf=["onContextmenu","onMousedown","onMousemove","onDblclick"],$f=["onMousedown"],Qf=["onMousedown"],Yf=["onClick"],qf=["onClick"];var Kf=hu(Wf,[["render",function(e,t,n,i,r,o){var a=w("DragBox"),l=w("el-dropdown-item"),u=w("el-dropdown-menu"),s=w("el-dropdown"),c=w("DragTool");return P(),L("div",{class:Y(["_fd-table-view",{"is-mini":e.mini}])},[j("table",{border:"1",cellspacing:"0",cellpadding:"0",style:ne(e.tableColor),onMouseleave:t[3]||(t[3]=function(){return e.mouseup&&e.mouseup.apply(e,arguments)}),onMouseup:t[4]||(t[4]=function(){return e.mouseup&&e.mouseup.apply(e,arguments)})},[(P(!0),L(X,null,J(e.rule.row,function(n,i){return P(),L("tr",{key:i},[(P(!0),L(X,null,J(e.rule.col,function(n,r){return P(),L(X,null,[e.lattice[i][r].show?(P(),L("td",V({key:"".concat(i).concat(r),ref_for:!0,ref:"td_".concat(i,":").concat(r),class:"_fd-table-view-cell"},{ref_for:!0},e.lattice[i][r]?{colspan:e.lattice[i][r].colspan,rowspan:e.lattice[i][r].rowspan}:{},{style:[e.tableColor,e.style&&e.style["".concat(i,":").concat(r)]||{}],class:[e.rule.class&&e.rule.class["".concat(i,":").concat(r)]||"",{selected:e.selection.indexOf("".concat(i,":").concat(r))>-1}],onContextmenu:function(t){return e.contextmenu(t,{pid:i,idx:r})},onMousedown:function(t){return e.mousedown(t,{pid:i,idx:r})},onMousemove:function(t){return e.mousemove(t,{pid:i,idx:r})},onDblclick:function(t){return e.dblclick(t,{pid:i,idx:r})}}),[i!==e.rule.row-1?(P(),L("div",{key:0,class:"_fd-table-row-handle",onMousedown:function(t){return e.rowResize(t,{pid:i,idx:r})}},null,40,$f)):Q("",!0),r!==e.rule.col-1?(P(),L("div",{key:1,class:"_fd-table-col-handle",onMousedown:function(t){return e.colResize(t,{pid:i,idx:r})}},null,40,Qf)):Q("",!0),x(c,{"drag-btn":!1,"handle-btn":!0,onActive:function(t){return e.active({pid:i,idx:r})},unique:e.lattice[i][r].id},{handle:$(function(){return[j("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:ee(function(t){return e.addRow({pid:i,idx:r,data:e.lattice[i][r]},0)},["stop"])},t[15]||(t[15]=[j("i",{class:"fc-icon icon-add-col"},null,-1)]),8,Yf),j("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:ee(function(t){return e.addCol({pid:i,idx:r,data:e.lattice[i][r]},0)},["stop"])},t[16]||(t[16]=[j("i",{class:"fc-icon icon-add-col",style:{transform:"rotate(90deg)"}},null,-1)]),8,qf),j("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:t[2]||(t[2]=ee(function(){},["stop"]))},[x(s,{trigger:"click",onCommand:e.command},{dropdown:$(function(){return[x(u,null,{default:$(function(){return[x(l,{command:["addCol",[{pid:i,idx:r,data:e.lattice[i][r]},1]]},{default:$(function(){return[Z(K(e.t("tableOptions.addLeft")),1)]}),_:2},1032,["command"]),x(l,{command:["addCol",[{pid:i,idx:r,data:e.lattice[i][r]},0]]},{default:$(function(){return[Z(K(e.t("tableOptions.addRight")),1)]}),_:2},1032,["command"]),x(l,{command:["addRow",[{pid:i,idx:r,data:e.lattice[i][r]},1]]},{default:$(function(){return[Z(K(e.t("tableOptions.addTop")),1)]}),_:2},1032,["command"]),x(l,{command:["addRow",[{pid:i,idx:r,data:e.lattice[i][r]},0]]},{default:$(function(){return[Z(K(e.t("tableOptions.addBottom")),1)]}),_:2},1032,["command"]),x(l,{divided:"",disabled:e.lattice[i][r].right,command:["mergeRight",[{pid:i,idx:r,data:e.lattice[i][r]}]]},{default:$(function(){return[Z(K(e.t("tableOptions.mergeRight")),1)]}),_:2},1032,["disabled","command"]),x(l,{disabled:e.lattice[i][r].bottom,command:["mergeBottom",[{pid:i,idx:r,data:e.lattice[i][r]}]]},{default:$(function(){return[Z(K(e.t("tableOptions.mergeBottom")),1)]}),_:2},1032,["disabled","command"]),x(l,{divided:"",disabled:!(e.lattice[i][r].layout&&e.lattice[i][r].layout.col>1),command:["splitCol",[{pid:i,idx:r,data:e.lattice[i][r]}]]},{default:$(function(){return[Z(K(e.t("tableOptions.splitCol")),1)]}),_:2},1032,["disabled","command"]),x(l,{disabled:!(e.lattice[i][r].layout&&e.lattice[i][r].layout.row>1),command:["splitRow",[{pid:i,idx:r,data:e.lattice[i][r]}]]},{default:$(function(){return[Z(K(e.t("tableOptions.splitRow")),1)]}),_:2},1032,["disabled","command"]),x(l,{divided:"",disabled:e.rule.col<2,command:["rmCol",[{pid:i,idx:r,data:e.lattice[i][r]}]]},{default:$(function(){return[Z(K(e.t("tableOptions.rmCol")),1)]}),_:2},1032,["disabled","command"]),x(l,{disabled:e.rule.row<2,command:["rmRow",[{pid:i,idx:r,data:e.lattice[i][r]}]]},{default:$(function(){return[Z(K(e.t("tableOptions.rmRow")),1)]}),_:2},1032,["disabled","command"])]}),_:2},1024)]}),default:$(function(){return[t[17]||(t[17]=j("i",{class:"fc-icon icon-setting"},null,-1))]}),_:2,__:[17]},1032,["onCommand"])])]}),default:$(function(){return[x(a,V({ref_for:!0},e.dragProp,{onAdd:function(t){return e.dragAdd(t,{pid:i,idx:r})},ref_for:!0,ref:"drag"+i+r,onEnd:function(t){return e.dragEnd(t,{pid:i,idx:r})},onStart:t[0]||(t[0]=function(t){return e.dragStart(t)}),onUnchoose:t[1]||(t[1]=function(t){return e.dragUnchoose(t)}),list:e.getSlotChildren(["".concat(i,":").concat(r)].concat(g(e.lattice[i][r].slot)))}),{default:$(function(){return[te(e.$slots,"".concat(i,":").concat(r))]}),_:2},1040,["onAdd","onEnd","list"])]}),_:2},1032,["onActive","unique"])],16,Gf)):Q("",!0)],64)}),256))])}),128))],36),e.visible?(P(),L("div",{key:0,class:"_fd-table-context-menu",style:ne(e.menuPos)},[j("div",{class:"_fd-table-context-menuitem",onClick:t[5]||(t[5]=ee(function(){return e.selectionStyle&&e.selectionStyle.apply(e,arguments)},["stop"]))},K(e.t("props.style")),1),j("div",{class:"_fd-table-context-menuitem",onClick:t[6]||(t[6]=ee(function(){return e.rmSelectionContent&&e.rmSelectionContent.apply(e,arguments)},["stop"]))},K(e.t("props.clear")),1),t[18]||(t[18]=j("div",{class:"_fd-table-context-menu-separator"},null,-1)),j("div",{class:"_fd-table-context-menuitem",onClick:t[7]||(t[7]=ee(function(t){return e.mergeSelection(!1)},["stop"]))},K(e.t("tableOptions.batchMerge")),1),j("div",{class:"_fd-table-context-menuitem",onClick:t[8]||(t[8]=ee(function(t){return e.mergeSelection(!0)},["stop"]))},K(e.t("tableOptions.batchSplit")),1),j("div",{class:"_fd-table-context-menuitem",onClick:t[9]||(t[9]=ee(function(t){return e.addCol({pid:e.selectionPos.startRow,idx:e.selectionPos.startCol},1)},["stop"]))},K(e.t("tableOptions.addLeft")),1),j("div",{class:"_fd-table-context-menuitem",onClick:t[10]||(t[10]=ee(function(t){return e.addCol({pid:e.selectionPos.startRow,idx:e.selectionPos.endCol},0)},["stop"]))},K(e.t("tableOptions.addRight")),1),j("div",{class:"_fd-table-context-menuitem",onClick:t[11]||(t[11]=ee(function(t){return e.addRow({pid:e.selectionPos.startRow,idx:e.selectionPos.startCol},1)},["stop"]))},K(e.t("tableOptions.addTop")),1),j("div",{class:"_fd-table-context-menuitem",onClick:t[12]||(t[12]=ee(function(t){return e.addRow({pid:e.selectionPos.startRow,idx:e.selectionPos.endCol},0)},["stop"]))},K(e.t("tableOptions.addBottom")),1),t[19]||(t[19]=j("div",{class:"_fd-table-context-menu-separator"},null,-1)),j("div",{class:"_fd-table-context-menuitem",onClick:t[13]||(t[13]=ee(function(){return e.rmSelectionRow&&e.rmSelectionRow.apply(e,arguments)},["stop"]))},K(e.t("tableOptions.batchRmRow")),1),j("div",{class:"_fd-table-context-menuitem",onClick:t[14]||(t[14]=ee(function(){return e.rmSelectionCol&&e.rmSelectionCol.apply(e,arguments)},["stop"]))},K(e.t("tableOptions.batchRmCol")),1)],4)):Q("",!0)],2)}]]),Xf={name:"FcTable",props:{mini:Boolean,label:String,width:[Number,String],border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:function(){return{row:1,col:1}}}},watch:{rule:{handler:function(){this.initRule(),this.loadRule(),this.tdStyle=this.rule.style||{},this.tdClass=this.rule.class||{}},immediate:!0,deep:!0}},data:function(){return{tdStyle:{},tdClass:{},lattice:{}}},computed:{tableColor:function(){var e={};return!1===this.border?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{initRule:function(){var e=this.rule;e.style||(e.style={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},loadRule:function(){for(var e=[],t=this.rule||{row:1,col:1},n=0;n<t.row;n++){var i=[];e.push(i);for(var r=0;r<t.col;r++)i.push({rowspan:1,colspan:1,slot:[],show:!0})}g(t.layout||[]).forEach(function(n,i){if((n.row&&!(n.row<=0)||n.col&&!(n.col<=0))&&e[n.top]&&e[n.top][n.left]&&e[n.top][n.left].show){var r=e[n.top][n.left];r.layout=n;var o=1,a=1;if(n.col&&(o=n.col+n.left>t.col?t.col-n.left:n.col,r.colspan=o),n.row&&(a=n.row+n.top>t.row?t.row-n.top:n.row,r.rowspan=a),a&&o)for(var l=0;l<a;l++){var u=e[n.top+l];if(u)for(var s=0;s<o;s++)!s&&!l||(u[n.left+s]&&(u[n.left+s].show=!1),r.slot.push("".concat(n.top+l,":").concat(n.left+s)))}}else t.layout.splice(i,1)});var o=function(e){return!(e&&!e.layout&&e.show)};e.forEach(function(t,n){t.forEach(function(i,r){var a=!1,l=!1;if(i.layout){for(var u=i.layout.col||1,s=i.layout.row||1,c=0;c<u;c++)if(!e[n+s]||o(e[n+s][r+c])){l=!0;continue}for(var d=0;d<s;d++)if(!e[n+d]||o(e[n+d][r+u])){a=!0;continue}}else a=o(t[r+1]),l=!e[n+1]||o(e[n+1][r]);i.right=a,i.bottom=l})}),this.lattice=e}}};var Jf=hu(Xf,[["render",function(e,t,n,i,r,o){var a=w("el-col");return P(),G(a,{span:24},{default:$(function(){return[j("div",{class:Y(["_fc-table",{"is-mini":n.mini}])},[j("table",{border:"1",cellspacing:"0",cellpadding:"0",style:ne(o.tableColor)},[(P(!0),L(X,null,J(n.rule.row,function(t,i){return P(),L("tr",{key:i},[(P(!0),L(X,null,J(n.rule.col,function(t,n){return P(),L(X,{key:"".concat(i).concat(n)},[r.lattice[i][n].show?(P(),L("td",V({key:0,ref_for:!0},r.lattice[i][n]?{colspan:r.lattice[i][n].colspan,rowspan:r.lattice[i][n].rowspan}:{},{valign:"top",class:r.tdClass&&r.tdClass["".concat(i,":").concat(n)]||"",style:[o.tableColor,r.tdStyle&&r.tdStyle["".concat(i,":").concat(n)]||{}]}),[te(e.$slots,"".concat(i,":").concat(n)),(P(!0),L(X,null,J(r.lattice[i][n].slot,function(t){return te(e.$slots,"".concat(t))}),256))],16)):Q("",!0)],64)}),128))])}),128))],4)],2)]}),_:3})}]]),Zf=b({name:"LanguageInput",inject:["designer"],emits:["update:modelValue","blur","change"],props:{size:String,placeholder:String,modelValue:String,disabled:Boolean},computed:{isVar:function(){return!!(this.modelValue||"").match(/^\{\{\s*\$t\.(.+)\s*\}\}$/)},t:function(){return this.designer.setupState.t},localeList:function(){var e,t,n=this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"}]),i=[],r=(null==(t=null==(e=this.designer.props)?void 0:e.locale)?void 0:t.name)||"zh-cn";return n.forEach(function(e){e.value===r?i.unshift(e):i.length<2&&i.push(e)}),i.length>2&&i.pop(),i},showLanguage:function(){return this.designer.setupState.getConfig("showLanguage")},language:function(){var e=this.designer.setupState.formOptions.language||{},t={};return Object.keys(e).forEach(function(n){Object.keys(e[n]).forEach(function(i){t[i]||(t[i]={key:i}),t[i][n]=e[n][i]})}),Object.values(t)}},methods:{openConfig:function(){this.designer.setupState.activeModule="language"},clickLang:function(e){this.onInput("{{$t.".concat(e,"}}")),this.$refs.pop.hide()},onInput:function(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},mounted:function(){}}),ep={class:"_fd-language-list"},tp={class:"_fd-language-header"},np={class:"_fd-language-title"},ip={class:"_fd-language-name"},rp=["onClick"];var op=hu(Zf,[["render",function(e,t,n,i,r,o){var a=w("el-popover"),l=w("el-input");return P(),G(l,{class:Y(["_fd-language-input",{"is-variable":e.isVar}]),placeholder:e.placeholder,disabled:e.disabled,modelValue:e.modelValue,"onUpdate:modelValue":e.onInput,onBlur:t[1]||(t[1]=function(t){return e.$emit("blur")}),size:e.size||"small"},ie({_:2},[!1!==e.showLanguage?{name:"append",fn:$(function(){return[x(a,{placement:"bottom-end",width:300,"hide-after":0,trigger:"click",ref:"pop","popper-class":"_fd-language-popover"},{reference:$(function(){return t[2]||(t[2]=[j("i",{class:"fc-icon icon-language"},null,-1)])}),default:$(function(){return[j("div",ep,[j("div",tp,[j("div",np,[Z(K(e.t("language.select")),1),j("i",{class:"fc-icon icon-setting",onClick:t[0]||(t[0]=function(){return e.openConfig&&e.openConfig.apply(e,arguments)})})]),j("div",ip,[(P(!0),L(X,null,J(e.localeList,function(e){return P(),L("div",{key:e.value},K(e.label),1)}),128))])]),(P(!0),L(X,null,J(e.language,function(t){return P(),L("div",{key:t.key,class:"_fd-language-item",onClick:function(n){return e.clickLang(t.key)}},[(P(!0),L(X,null,J(e.localeList,function(e){return P(),L("div",{key:e.value},K(t[e.value]||"-"),1)}),128))],8,rp)}),128))])]}),_:1},512)]}),key:"0"}:void 0]),1032,["class","placeholder","disabled","modelValue","onUpdate:modelValue","size"])}]]),ap=b({name:"Validate",inject:["designer"],emits:["update:modelValue"],props:{modelValue:Array},components:{LanguageInput:op,FnInput:wf},watch:{modelValue:function(e){this.validate=this.parseValue(e||[])}},data:function(){return{validate:this.parseValue(this.modelValue||[])}},computed:{t:function(){return this.designer.setupState.t},modes:function(){var e=this.designer.setupState.activeRule;return e&&"object"===e._menu.subForm?{validator:this.t("validate.modes.validator")}:{min:this.t("validate.modes.min"),max:this.t("validate.modes.max"),len:this.t("validate.modes.len"),pattern:this.t("validate.modes.pattern"),validator:this.t("validate.modes.validator")}},triggers:function(){return Pi(this.t,[{label:"blur",value:"blur"},{label:"change",value:"change"},{label:"submit",value:"submit"}])}},methods:{handleCommand:function(e){this.validate.push({transform:new Function("val","this.type = val == null ? 'string' : (Array.isArray(val) ? 'array' : (typeof val)); return val;"),mode:e,trigger:"blur"})},autoMessage:function(e){var t=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&(e.message=this.t("validate.autoRequired",{title:t}),this.onInput())},getSpan:function(e){return["pattern","validator","required"].indexOf(e.mode)>-1?24:12},onInput:function(){this.$emit("update:modelValue",this.validate.map(function(e){return(e=p({},e)).message||delete e.message,e}))},remove:function(e){this.validate.splice(e,1),this.onInput()},parseValue:function(e){return hi(e.map(function(e){return e.validator&&(e.mode="validator"),e.mode||Object.keys(e).forEach(function(t){["message","type","trigger","mode"].indexOf(t)<0&&(e.mode=t)}),e}))}}}),lp={class:"_fd-validate"},up={class:"_fd-validate-item"},sp={class:"_fd-validate-title"},cp=["onClick"];var dp=hu(ap,[["render",function(e,t,n,i,r,o){var a=w("el-option"),l=w("el-select"),u=w("el-form-item"),s=w("el-col"),c=w("elInput"),d=w("FnInput"),f=w("el-input-number"),p=w("LanguageInput"),h=w("el-row"),m=w("el-button"),g=w("el-dropdown-item"),v=w("el-dropdown-menu"),_=w("el-dropdown");return P(),L("div",lp,[(P(!0),L(X,null,J(e.validate,function(t,n){return P(),L("div",up,[j("div",sp,[j("div",null,[j("span",null,K(n+1),1),Z(" "+K(e.modes[t.mode]),1)]),j("i",{class:"fc-icon icon-delete2",onClick:function(t){return e.remove(n)}},null,8,cp)]),x(h,null,{default:$(function(){return[x(s,{span:e.getSpan(t)},{default:$(function(){return[x(u,{label:e.t("validate.mode")},{default:$(function(){return[x(l,{modelValue:t.trigger,"onUpdate:modelValue":function(e){return t.trigger=e},onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.triggers,function(e){return P(),G(a,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]}),_:2},1032,["label"])]}),_:2},1032,["span"]),x(s,{span:e.getSpan(t)},{default:$(function(){return[x(u,{label:e.modes[t.mode]},{default:$(function(){return["pattern"===t.mode?(P(),G(c,{key:0,modelValue:t[t.mode],"onUpdate:modelValue":function(e){return t[t.mode]=e},onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):"validator"===t.mode?(P(),G(d,{key:1,modelValue:t[t.mode],"onUpdate:modelValue":function(e){return t[t.mode]=e},name:"name",args:["rule","value","callback"],onChange:e.onInput},{default:$(function(){return[Z(K(e.t("validate.modes.validator")),1)]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(P(),G(f,{key:2,modelValue:t[t.mode],"onUpdate:modelValue":function(e){return t[t.mode]=e},onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]))]}),_:2},1032,["label"])]}),_:2},1032,["span"]),x(s,{span:24},{default:$(function(){return[x(u,{label:e.t("validate.message")},{default:$(function(){return[x(p,{modelValue:t.message,"onUpdate:modelValue":function(e){return t.message=e},placeholder:e.t("validate.requiredPlaceholder"),onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]}),_:2},1032,["label"])]}),_:2},1024)]}),_:2},1024)])}),256)),x(_,{trigger:"click",size:"default","popper-class":"_fd-validate-pop",onCommand:e.handleCommand},{dropdown:$(function(){return[x(v,null,{default:$(function(){return[(P(!0),L(X,null,J(e.modes,function(e,t){return P(),G(g,{command:t,key:t},{default:$(function(){return[j("div",null,K(e),1)]}),_:2},1032,["command"])}),128))]}),_:1})]}),default:$(function(){return[x(m,{class:"_fd-validate-btn",size:"small"},{default:$(function(){return[Z(K(e.t("validate.rule"))+" +",1)]}),_:1})]}),_:1},8,["onCommand"])])}]]),fp=b({name:"Required",components:{LanguageInput:op},emits:["update:modelValue"],props:{modelValue:{}},inject:["designer"],watch:{required:function(){this.update()},requiredMsg:function(){this.update()},modelValue:function(e){var t=ci.String(e);this.required=void 0!==e&&(!!t||!!e),this.requiredMsg=t?e:""}},computed:{t:function(){return this.designer.setupState.t}},data:function(){var e=ci.String(this.modelValue);return{required:void 0!==this.modelValue&&(!!e||!!this.modelValue),requiredMsg:e?this.modelValue:""}},methods:{update:function(){var e;e=!1!==this.required&&(this.requiredMsg||!0),this.$emit("update:modelValue",e)}}}),pp={class:"_fd-required"};var hp=hu(fp,[["render",function(e,t,n,i,r,o){var a=w("el-switch"),l=w("LanguageInput");return P(),L("div",pp,[x(a,{modelValue:e.required,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.required=t})},null,8,["modelValue"]),e.required?(P(),G(l,{key:0,modelValue:e.requiredMsg,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.requiredMsg=t}),placeholder:e.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):Q("",!0)])}]]),mp=b({name:"ValueInput",emits:["update:modelValue","change","change-type","blur"],inject:["designer"],props:{modelValue:[String,Number,Boolean],disabled:Boolean},data:function(){return{type:"1",value:""}},computed:{t:function(){return this.designer.setupState.t}},watch:{modelValue:{handler:function(e){this.type="number"==typeof e?"2":"boolean"==typeof e?"3":"1",this.value=null==e?"":""+e},immediate:!0},type:function(){this.updateValue(this.value),this.$emit("change-type",this.type)}},methods:{onBlur:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.value!==this.toValue(this.modelValue)&&this.updateValue(this.value),this.$emit.apply(this,["blur"].concat(t))},updateValue:function(e){var t=this.toValue(e);this.$emit("update:modelValue",t),this.$emit("change",t)},toValue:function(e){return"1"===this.type?""+e:"2"===this.type?parseFloat(e)||0:"true"===e}}});var gp=hu(mp,[["render",function(e,t,n,i,r,o){var a=w("el-option"),l=w("el-select"),u=w("el-input");return P(),G(u,V({class:"_fd-value-input",disabled:e.disabled,modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.value=t}),onBlur:e.onBlur},e.$attrs),ie({prepend:$(function(){return[x(l,{modelValue:e.type,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.type=t}),style:{width:"60px"},disabled:e.disabled},{default:$(function(){return[x(a,{label:e.t("validate.types.string"),value:"1"},null,8,["label"]),x(a,{label:e.t("validate.types.number"),value:"2"},null,8,["label"]),x(a,{label:e.t("validate.types.boolean"),value:"3"},null,8,["label"])]}),_:1},8,["modelValue","disabled"])]}),_:2},[e.$slots.append?{name:"append",fn:$(function(){return[te(e.$slots,"append")]}),key:"0"}:void 0]),1040,["disabled","modelValue","onBlur"])}]]),vp=b({name:"TableOptions",emits:["update:modelValue","change"],components:{ValueInput:gp},props:{modelValue:[Array,Object],column:{type:Array,default:function(){return[{label:"label",key:"label"},{label:"value",key:"value"}]}},valueType:String,max:Number,size:String,disabled:Boolean},inject:["designer"],watch:{modelValue:function(){this.value=this.tidyModelValue()}},computed:{t:function(){return this.designer.setupState.t}},data:function(){return{value:this.tidyModelValue()}},methods:{tidyModelValue:function(){var e=this.modelValue;return"string"===this.valueType?(e||[]).map(function(e){return{value:""+e}}):"object"===this.valueType?Object.keys(e||{}).map(function(t){return{label:t,value:e[t]}}):g(e||[]).map(function(e){return Ci(e)})},tidyValue:function(){var e=this;if("object"===this.valueType){var t={};return this.value.forEach(function(e){e.label&&e.value&&(t[e.label]=e.value)}),t}return this.value.map(function(t){return"string"===e.valueType?t.value:p({},t)})},onInput:function(e){var t=this;1===this.column.length&&""===e[this.column[0].key]||this.column.every(function(n){return!1===n.required||(["object","string"].indexOf(t.valueType)>-1?void 0!==e[n.key]&&""!==e[n.key]&&null!==e[n.key]:void 0!==e[n.key])})&&this.input()},input:function(){var e=this.tidyValue();this.$emit("update:modelValue",e),this.$emit("change",e)},add:function(){this.value.push(this.column.reduce(function(e,t){return e[t.key]="",e},{}))},del:function(e){this.value.splice(e,1),this.input()}}}),_p={class:"_td-table-opt"},yp=["onClick"],bp={class:"_td-table-opt-handle"};var Dp=hu(vp,[["render",function(e,t,n,i,r,o){var a=w("ValueInput"),l=w("el-input"),u=w("el-table-column"),s=w("el-table"),c=w("el-button");return P(),L("div",_p,[x(s,{data:e.value,border:"",size:e.size||"small",style:{width:"100%"}},{default:$(function(){return[(P(!0),L(X,null,J(e.column,function(t,n){return P(),G(u,{key:t.label+n,label:t.label},{default:$(function(n){return[t.value?(P(),G(a,{key:0,size:e.size||"small",modelValue:n.row[t.key],disabled:e.disabled,"onUpdate:modelValue":function(e){return n.row[t.key]=e},onBlur:function(t){return e.onInput(n.row)},onChangeType:function(t){return e.onInput(n.row)}},null,8,["size","modelValue","disabled","onUpdate:modelValue","onBlur","onChangeType"])):(P(),G(l,{key:1,size:e.size||"small",disabled:e.disabled,modelValue:n.row[t.key]||"","onUpdate:modelValue":function(e){return n.row[t.key]=e},onBlur:function(t){return e.onInput(n.row)}},null,8,["size","disabled","modelValue","onUpdate:modelValue","onBlur"]))]}),_:2},1032,["label"])}),128)),e.disabled?Q("",!0):(P(),G(u,{key:0,width:"45",align:"center",fixed:"right"},{default:$(function(t){return[j("i",{class:"fc-icon icon-delete",onClick:function(n){return e.del(t.$index)}},null,8,yp)]}),_:1}))]}),_:1},8,["data","size"]),j("div",bp,[!e.max||e.max>e.value.length?(P(),G(c,{key:0,link:"",type:"primary",onClick:e.add},{default:$(function(){return[t[0]||(t[0]=j("i",{class:"fc-icon icon-add"},null,-1)),Z(" "+K(e.t("tableOptions.add")),1)]}),_:1,__:[0]},8,["onClick"])):Q("",!0)])])}],["__scopeId","data-v-91131f26"]]),Ap=b({name:"TreeOptions",emits:["update:modelValue"],components:{ValueInput:gp},props:{modelValue:Array,columns:Object,disabled:Boolean},inject:["designer"],data:function(){return{value:g(hi(this.modelValue||[]))}},computed:{t:function(){return this.designer.setupState.t},overColumns:function(){return this.columns?{label:this.columns.label||"label",value:this.columns.value||"value"}:{label:"label",value:"value"}}},created:function(){this.value.length||(this.value=[{}])},methods:{tidyValue:function(){return hi(this.value)},change:function(){this.$emit("update:modelValue",this.tidyValue())},add:function(e){var t=e.parent;(t.data.children||t.data).push({})},append:function(e){e.children||(e.children=[]),e.children.push({})},remove:function(e,t){var n=e.parent;n.data.children?(n.data.children.splice(n.data.children.indexOf(t),1),n.data.children.length||delete n.data.children):n.data.splice(n.data.indexOf(t),1),this.change()}}}),xp={class:"_fd-tree-opt"},wp={class:"_fd-tree-opt-node"},Cp=["onClick"],Ep=["onClick"],kp=["onClick"];var Fp=hu(Ap,[["render",function(e,t,n,i,r,o){var a=w("el-input"),l=w("ValueInput"),u=w("el-tree");return P(),L("div",xp,[x(u,{data:e.value,"node-key":"index","expand-on-click-node":!1},{default:$(function(n){var i=n.node,r=n.data;return[j("div",wp,[x(a,{class:"_fd-tree-opt-first",modelValue:r[e.overColumns.label],"onUpdate:modelValue":function(t){return r[e.overColumns.label]=t},disabled:e.disabled,onBlur:e.change},null,8,["modelValue","onUpdate:modelValue","disabled","onBlur"]),x(l,{class:"_fd-tree-opt-last",modelValue:r[e.overColumns.value],"onUpdate:modelValue":function(t){return r[e.overColumns.value]=t},onBlur:e.change,disabled:e.disabled,onChangeType:e.change},ie({_:2},[e.disabled?void 0:{name:"append",fn:$(function(){return[j("div",{class:"_fd-tree-opt-btn",onClick:function(t){return e.add(i,r)}},t[0]||(t[0]=[j("i",{class:"fc-icon icon-add"},null,-1)]),8,Cp),j("div",{class:"_fd-tree-opt-btn",onClick:function(t){return e.append(r)}},t[1]||(t[1]=[j("i",{class:"fc-icon icon-add-child"},null,-1)]),8,Ep),j("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:function(t){return e.remove(i,r)}},t[2]||(t[2]=[j("i",{class:"fc-icon icon-delete"},null,-1)]),8,kp)]}),key:"0"}]),1032,["modelValue","onUpdate:modelValue","onBlur","disabled","onChangeType"])])]}),_:1},8,["data"])])}]]),Sp=b({name:"TableFormView",data:function(){return{}}}),Bp={class:"_fd-table-form"},Tp={key:0,class:"_fd-tf-wrap"},Op={key:1,class:"_fc-child-empty"};var Rp=hu(Sp,[["render",function(e,t,n,i,r,o){return P(),L("div",Bp,[e.$slots.default?(P(),L("div",Tp,[te(e.$slots,"default")])):(P(),L("div",Op))])}]]),Mp={name:"TableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:function(){return[]}},columns:{type:Array,required:!0,default:function(){return[]}},filterEmptyColumn:{type:Boolean,default:!0},deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:function(){return f({submitBtn:!1,resetBtn:!1})}},max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler:function(){this.updateTable()},deep:!0},"formCreateInject.preview":function(e){this.emptyRule.children[0].props.colspan=this.columns.length+(e?1:2)}},data:function(){return{rule:[],trs:[],fapi:{},Form:D(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",emptyRule:{type:"tr",_isEmpty:!0,native:!0,subRule:!0,children:[{type:"td",style:{textAlign:"center"},native:!0,subRule:!0,props:{colspan:this.columns.length+(this.formCreateInject.preview?1:2)},children:[this.formCreateInject.t("dataEmpty")||"暂无数据"]}]}}},methods:{formChange:function(){this.updateValue()},updateValue:function(){var e=this,t=this.trs.map(function(t,n){return p(p({},e.modelValue[n]||{}),e.fapi.getChildrenFormData(t))}).filter(function(t){if(!e.filterEmptyColumn)return!0;if(null==t)return!1;var n=!1;return Object.keys(t).forEach(function(e){n=n||void 0!==t[e]&&""!==t[e]&&null!==t[e]}),n}),n=JSON.stringify(t);n!==this.oldValue&&(this.oldValue=n,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData:function(e,t){var n=this.trs[e];this.fapi.setChildrenFormData(n,t,!0)},updateTable:function(){var e=this,t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length?this.clearEmpty():this.addEmpty(),this.modelValue.forEach(function(t,n){e.trs[n]||e.addRaw(),e.setRawData(n,t||{})}),this.rule[0].children[1].children=this.trs)},addEmpty:function(){this.trs.length&&this.trs.splice(0,this.trs.length),this.trs.push(this.emptyRule)},clearEmpty:function(){this.trs[0]&&this.trs[0]._isEmpty&&this.trs.splice(0,1)},delRaw:function(e){var t=this;this.disabled||!this.deletable||this.min>0&&this.trs.length<=this.min||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(function(e){return t.updateRaw(e)}):this.addEmpty(),this.$emit("delete",e))},addRaw:function(e){if(!e||!this.disabled){var t=this.formCreateInject.form.parseJson(this.copyTrs)[0];1===this.trs.length&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(t),this.updateRaw(t),e&&(this.$emit("add",this.trs.length),this.updateValue())}},updateRaw:function(e){var t=this,n=this.trs.indexOf(e);e.children[0].props.innerText=n+1,e.children[e.children.length-1].children[0].props.onClick=function(){t.delRaw(n)}},loadRule:function(){var e=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}],t=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(function(n){e.push({type:"th",native:!0,style:p(p({},n.style||{}),{},{textAlign:n.align||"center"}),class:n.required?"_fc-tf-head-required":"",props:{innerText:n.label||""}}),t.push({type:"td",native:!0,children:g(n.rule||[])})}),e.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"操作"}}),t.push({type:"td",native:!0,class:"_fc-tf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,subRule:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-tf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created:function(){this.loadRule()},mounted:function(){this.updateTable()}};var Np=hu(Mp,[["render",function(e,t,n,i,r,o){var a=w("el-button");return P(),L("div",{class:Y(["_fc-table-form",{"_fc-disabled":n.disabled}])},[(P(),G(ue(r.Form),{option:n.options,rule:r.rule,extendOption:!0,disabled:n.disabled,onChange:o.formChange,api:r.fapi,"onUpdate:api":t[0]||(t[0]=function(e){return r.fapi=e}),onEmitEvent:e.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),n.addable&&(!n.max||n.max>this.trs.length)?(P(),G(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=function(e){return o.addRaw(!0)})},{default:$(function(){return[t[2]||(t[2]=j("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),Z(" "+K(n.formCreateInject.t("add")||"添加"),1)]}),_:1,__:[2]})):Q("",!0)],2)}]]),Ip=function(){return c(function e(t,n,i,r){if(u(this,e),isNaN(t)||isNaN(n))throw new Error("Point is invalid: (".concat(t,", ").concat(n,")"));this.x=+t,this.y=+n,this.pressure=i||0,this.time=r||Date.now()},[{key:"distanceTo",value:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}},{key:"velocityFrom",value:function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}])}(),Lp=function(){function e(t,n,i,r,o,a){u(this,e),this.startPoint=t,this.control2=n,this.control1=i,this.endPoint=r,this.startWidth=o,this.endWidth=a}return c(e,[{key:"length",value:function(){for(var e,t,n=0,i=0;i<=10;i+=1){var r=i/10,o=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var l=o-e,u=a-t;n+=Math.sqrt(l*l+u*u)}e=o,t=a}return n}},{key:"point",value:function(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e}}],[{key:"fromPoints",value:function(t,n){var i=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new e(t[1],i,r,t[2],n.start,n.end)}},{key:"calculateControlPoints",value:function(e,t,n){var i=e.x-t.x,r=e.y-t.y,o=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,s=(t.x+n.x)/2,c=(t.y+n.y)/2,d=Math.sqrt(i*i+r*r),f=Math.sqrt(o*o+a*a),p=d+f==0?0:f/(d+f),h=s+(l-s)*p,m=c+(u-c)*p,g=t.x-h,v=t.y-m;return{c1:new Ip(l+g,u+v),c2:new Ip(s+g,c+v)}}}])}(),Pp=function(){return c(function e(){u(this,e);try{this._et=new EventTarget}catch(t){this._et=document}},[{key:"addEventListener",value:function(e,t,n){this._et.addEventListener(e,t,n)}},{key:"dispatchEvent",value:function(e){return this._et.dispatchEvent(e)}},{key:"removeEventListener",value:function(e,t,n){this._et.removeEventListener(e,t,n)}}])}();
  33. /*!
  34. * Signature Pad v5.0.10 | https://github.com/szimek/signature_pad
  35. * (c) 2025 Szymon Nowak | Released under the MIT license
  36. */var jp=function(e){function i(e){var r,o,a,l,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(this,i),(r=t(this,i)).canvas=e,r._drawingStroke=!1,r._isEmpty=!0,r._lastPoints=[],r._data=[],r._lastVelocity=0,r._lastWidth=0,r.velocityFilterWeight=s.velocityFilterWeight||.7,r.minWidth=s.minWidth||.5,r.maxWidth=s.maxWidth||2.5,r.throttle=null!==(o=s.throttle)&&void 0!==o?o:16,r.minDistance=null!==(a=s.minDistance)&&void 0!==a?a:5,r.dotSize=s.dotSize||0,r.penColor=s.penColor||"black",r.backgroundColor=s.backgroundColor||"rgba(0,0,0,0)",r.compositeOperation=s.compositeOperation||"source-over",r.canvasContextOptions=null!==(l=s.canvasContextOptions)&&void 0!==l?l:{},r._strokeMoveUpdate=r.throttle?function(e){var t,n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,o=0,a=null,l=function(){o=Date.now(),a=null,t=e.apply(n,i),a||(n=null,i=[])};return function(){for(var u=Date.now(),s=r-(u-o),c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return n=this,i=d,s<=0||s>r?(a&&(clearTimeout(a),a=null),o=u,t=e.apply(n,i),a||(n=null,i=[])):a||(a=window.setTimeout(l,s)),t}}(i.prototype._strokeUpdate,r.throttle):i.prototype._strokeUpdate,r._handleMouseDown=r._handleMouseDown.bind(n(r)),r._handleMouseMove=r._handleMouseMove.bind(n(r)),r._handleMouseUp=r._handleMouseUp.bind(n(r)),r._handleTouchStart=r._handleTouchStart.bind(n(r)),r._handleTouchMove=r._handleTouchMove.bind(n(r)),r._handleTouchEnd=r._handleTouchEnd.bind(n(r)),r._handlePointerDown=r._handlePointerDown.bind(n(r)),r._handlePointerMove=r._handlePointerMove.bind(n(r)),r._handlePointerUp=r._handlePointerUp.bind(n(r)),r._ctx=e.getContext("2d",r.canvasContextOptions),r.clear(),r.on(),r}return o(i,e),c(i,[{key:"clear",value:function(){var e=this._ctx,t=this.canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._strokePointerId=void 0}},{key:"fromDataURL",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(i,r){var o=new Image,a=n.ratio||window.devicePixelRatio||1,l=n.width||t.canvas.width/a,u=n.height||t.canvas.height/a,s=n.xOffset||0,c=n.yOffset||0;t._reset(t._getPointGroupOptions()),o.onload=function(){t._ctx.drawImage(o,s,c,l,u),i()},o.onerror=function(e){r(e)},o.crossOrigin="anonymous",o.src=e,t._isEmpty=!1})}},{key:"toDataURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",t=arguments.length>1?arguments[1]:void 0;return"image/svg+xml"===e?("object"!=y(t)&&(t=void 0),"data:image/svg+xml;base64,".concat(btoa(this.toSVG(t)))):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}},{key:"on",value:function(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";var e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}},{key:"off",value:function(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}},{key:"_getListenerFunctions",value:function(){var e,t=window.document===this.canvas.ownerDocument?window:null!==(e=this.canvas.ownerDocument.defaultView)&&void 0!==e?e:this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}},{key:"_removeMoveUpEventListeners",value:function(){var e=this._getListenerFunctions().removeEventListener;e("pointermove",this._handlePointerMove),e("pointerup",this._handlePointerUp),e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp),e("touchmove",this._handleTouchMove),e("touchend",this._handleTouchEnd)}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"fromData",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clear;(void 0===t||t)&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}},{key:"toData",value:function(){return this._data}},{key:"_isLeftButtonPressed",value:function(e,t){return t?1===e.buttons:!(1&~e.buttons)}},{key:"_pointerEventToSignatureEvent",value:function(e){return{event:e,type:e.type,x:e.clientX,y:e.clientY,pressure:"pressure"in e?e.pressure:0}}},{key:"_touchEventToSignatureEvent",value:function(e){var t=e.changedTouches[0];return{event:e,type:e.type,x:t.clientX,y:t.clientY,pressure:t.force}}},{key:"_handleMouseDown",value:function(e){!this._isLeftButtonPressed(e,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(e))}},{key:"_handleMouseMove",value:function(e){this._isLeftButtonPressed(e,!0)&&this._drawingStroke?this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e)):this._strokeEnd(this._pointerEventToSignatureEvent(e),!1)}},{key:"_handleMouseUp",value:function(e){this._isLeftButtonPressed(e)||this._strokeEnd(this._pointerEventToSignatureEvent(e))}},{key:"_handleTouchStart",value:function(e){1!==e.targetTouches.length||this._drawingStroke||(e.cancelable&&e.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(e)))}},{key:"_handleTouchMove",value:function(e){if(1===e.targetTouches.length){if(e.cancelable&&e.preventDefault(),!this._drawingStroke)return void this._strokeEnd(this._touchEventToSignatureEvent(e),!1);this._strokeMoveUpdate(this._touchEventToSignatureEvent(e))}}},{key:"_handleTouchEnd",value:function(e){0===e.targetTouches.length&&(e.cancelable&&e.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(e)))}},{key:"_getPointerId",value:function(e){return e.persistentDeviceId||e.pointerId}},{key:"_allowPointerId",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return y(this._strokePointerId)>"u"?t:this._getPointerId(e)===this._strokePointerId}},{key:"_handlePointerDown",value:function(e){this._drawingStroke||!this._isLeftButtonPressed(e)||!this._allowPointerId(e,!0)||(this._strokePointerId=this._getPointerId(e),e.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(e)))}},{key:"_handlePointerMove",value:function(e){if(this._allowPointerId(e)){if(!this._isLeftButtonPressed(e,!0)||!this._drawingStroke)return void this._strokeEnd(this._pointerEventToSignatureEvent(e),!1);e.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e))}}},{key:"_handlePointerUp",value:function(e){this._isLeftButtonPressed(e)||!this._allowPointerId(e)||(e.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(e)))}},{key:"_getPointGroupOptions",value:function(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}},{key:"_strokeBegin",value:function(e){if(this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0}))){var t=this._getListenerFunctions().addEventListener;switch(e.event.type){case"mousedown":t("mousemove",this._handleMouseMove,{passive:!1}),t("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":t("touchmove",this._handleTouchMove,{passive:!1}),t("touchend",this._handleTouchEnd,{passive:!1});break;case"pointerdown":t("pointermove",this._handlePointerMove,{passive:!1}),t("pointerup",this._handlePointerUp,{passive:!1})}this._drawingStroke=!0;var n=this._getPointGroupOptions(),i=Object.assign(Object.assign({},n),{points:[]});this._data.push(i),this._reset(n),this._strokeUpdate(e)}}},{key:"_strokeUpdate",value:function(e){if(this._drawingStroke)if(0!==this._data.length){this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));var t=this._createPoint(e.x,e.y,e.pressure),n=this._data[this._data.length-1],i=n.points,r=i.length>0&&i[i.length-1],o=!!r&&t.distanceTo(r)<=this.minDistance,a=this._getPointGroupOptions(n);if(!r||!r||!o){var l=this._addPoint(t,a);r?l&&this._drawCurve(l,a):this._drawDot(t,a),i.push({time:t.time,x:t.x,y:t.y,pressure:t.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}else this._strokeBegin(e)}},{key:"_strokeEnd",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._removeMoveUpEventListeners(),this._drawingStroke&&(t&&this._strokeUpdate(e),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}},{key:"_handlePointerEvents",value:function(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}},{key:"_handleMouseEvents",value:function(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}},{key:"_handleTouchEvents",value:function(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}},{key:"_reset",value:function(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}},{key:"_createPoint",value:function(e,t,n){var i=this.canvas.getBoundingClientRect();return new Ip(e-i.left,t-i.top,n,(new Date).getTime())}},{key:"_addPoint",value:function(e,t){var n=this._lastPoints;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);var i=this._calculateCurveWidths(n[1],n[2],t),r=Lp.fromPoints(n,i);return n.shift(),r}return null}},{key:"_calculateCurveWidths",value:function(e,t,n){var i=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i,n),o={end:r,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=r,o}},{key:"_strokeWidth",value:function(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}},{key:"_drawCurveSegment",value:function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}},{key:"_drawCurve",value:function(e,t){var n=this._ctx,i=e.endWidth-e.startWidth,r=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(var o=0;o<r;o+=1){var a=o/r,l=a*a,u=l*a,s=1-a,c=s*s,d=c*s,f=d*e.startPoint.x;f+=3*c*a*e.control1.x,f+=3*s*l*e.control2.x,f+=u*e.endPoint.x;var p=d*e.startPoint.y;p+=3*c*a*e.control1.y,p+=3*s*l*e.control2.y,p+=u*e.endPoint.y;var h=Math.min(e.startWidth+u*i,t.maxWidth);this._drawCurveSegment(f,p,h)}n.closePath(),n.fill()}},{key:"_drawDot",value:function(e,t){var n=this._ctx,i=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,i),n.closePath(),n.fillStyle=t.penColor,n.fill()}},{key:"_fromData",value:function(e,t,n){var i,r=l(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,a=o.points,u=this._getPointGroupOptions(o);if(a.length>1)for(var s=0;s<a.length;s+=1){var c=a[s],d=new Ip(c.x,c.y,c.pressure,c.time);0===s&&this._reset(u);var f=this._addPoint(d,u);f&&t(f,u)}else this._reset(u),n(a[0],u)}}catch(p){r.e(p)}finally{r.f()}}},{key:"toSVG",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeBackgroundColor,t=void 0!==e&&e,n=this._data,i=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/i,o=this.canvas.height/i,a=document.createElementNS("http://www.w3.org/2000/svg","svg");if(a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),a.setAttribute("viewBox","".concat(0," ").concat(0," ").concat(r," ").concat(o)),a.setAttribute("width",r.toString()),a.setAttribute("height",o.toString()),t&&this.backgroundColor){var l=document.createElement("rect");l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.setAttribute("fill",this.backgroundColor),a.appendChild(l)}return this._fromData(n,function(e,t){var n=t.penColor,i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M ".concat(e.startPoint.x.toFixed(3),",").concat(e.startPoint.y.toFixed(3)," C ").concat(e.control1.x.toFixed(3),",").concat(e.control1.y.toFixed(3)," ").concat(e.control2.x.toFixed(3),",").concat(e.control2.y.toFixed(3)," ").concat(e.endPoint.x.toFixed(3),",").concat(e.endPoint.y.toFixed(3));i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),a.appendChild(i)}},function(e,t){var n=t.penColor,i=t.dotSize,r=t.minWidth,o=t.maxWidth,l=document.createElement("circle"),u=i>0?i:(r+o)/2;l.setAttribute("r",u.toString()),l.setAttribute("cx",e.x.toString()),l.setAttribute("cy",e.y.toString()),l.setAttribute("fill",n),a.appendChild(l)}),a.outerHTML}}])}(Pp),Vp=b({name:"SignaturePad",emits:["update:modelValue","change","remove"],data:function(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,disabled:Boolean,formCreateInject:Object},watch:{visible:function(e){var t=this;e?(this.isEmpty=!0,this.$nextTick(function(){t.signaturePad=D(new jp(t.$refs.pad,{penColor:t.penColor})),t.signaturePad.addEventListener("endStroke",function(){t.isEmpty=t.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{open:function(){this.disabled||(this.visible=!0)},clear:function(){this.signaturePad.clear(),this.isEmpty=!0},submit:function(){var e=this.signaturePad.toDataURL();this.updateValue(e),this.visible=!1},updateValue:function(e){this.$emit("update:modelValue",e),this.$emit("change",e)},remove:function(){this.disabled||(this.updateValue(""),this.$emit("remove"))}}}),zp={key:0,class:"_fc-signature-preview"},Hp=["src"],Up={class:"_fc-signature-pad",ref:"pad",width:"600px",height:"270px"};var Wp=hu(Vp,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-dialog");return P(),L("div",{class:Y(["_fc-signature",{disabled:e.disabled}])},[e.modelValue?(P(),L("div",zp,[e.disabled?Q("",!0):(P(),L("i",{key:0,class:"fc-icon icon-delete2",onClick:t[0]||(t[0]=function(){return e.remove&&e.remove.apply(e,arguments)})})),j("img",{src:e.modelValue,alt:"signature"},null,8,Hp)])):(P(),L("div",{key:1,class:"_fc-signature-btn",onClick:t[1]||(t[1]=function(){return e.open&&e.open.apply(e,arguments)})},[t[4]||(t[4]=j("i",{class:"fc-icon icon-edit2"},null,-1)),Z(" "+K(e.formCreateInject.t("signaturePadTip")||"点击添加手写签名"),1)])),x(l,{class:"_fc-signature-dialog",title:e.formCreateInject.t("signaturePadTitle")||"请在虚线框内书写",modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.visible=t}),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"640px"},{footer:$(function(){return[j("div",null,[x(a,{size:"default",onClick:t[2]||(t[2]=function(t){return e.clear()})},{default:$(function(){return[Z(K(e.formCreateInject.t("reset")||"重置"),1)]}),_:1}),x(a,{type:"primary",disabled:e.isEmpty,onClick:e.submit,size:"default"},{default:$(function(){return[Z(K(e.formCreateInject.t("ok")||"确定"),1)]}),_:1},8,["disabled","onClick"])])]}),default:$(function(){return[j("canvas",Up,null,512)]}),_:1},8,["title","modelValue"])],2)}]]);var Gp=hu(b({name:"FcTitle",data:function(){return{}},props:{title:String,size:String,align:String},computed:{textStyle:function(){return{textAlign:this.align||"left"}}}}),[["render",function(e,t,n,i,r,o){return P(),L("div",{class:Y(["_fc-title",e.size||"h2"]),style:ne(e.textStyle)},K(e.title),7)}]]),$p=b({name:"TableFormColumnView",props:{label:String,align:String,width:[Number,String],color:String,required:Boolean},computed:{colStyle:function(){var e=this.width,t={width:ci.Number(e)?"".concat(e,"px"):e&&"auto"!==e?e:"180px"};return this.color&&(t.color=this.color),t}},data:function(){return{}}}),Qp={key:0,class:"_fd-tf-required"},Yp={class:"_fd-tf-con"};var qp=hu($p,[["render",function(e,t,n,i,r,o){return P(),L("div",{class:"_fd-tf-col",style:ne(e.colStyle)},[j("div",{class:"_fd-tf-title",style:ne({textAlign:e.align||"center"})},[e.required?(P(),L("span",Qp,"*")):Q("",!0),Z(K(e.label||""),1)],4),j("div",Yp,[te(e.$slots,"default")])],4)}]]),Kp=b({name:"SizeInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String,size:String,unit:{type:Array,default:function(){return["auto","px","%","vh","vw","em","rem"]}},defaultUnit:{type:String,default:"px"}},watch:{modelValue:function(){this.parseValue()}},data:function(){return{idx:1,num:0,oldValue:this.modelValue||""}},methods:{parseValue:function(){var e=this;"auto"!==this.modelValue?(this.idx=Math.max(this.unit.indexOf(this.defaultUnit),0),this.unit.forEach(function(t,n){(e.modelValue||"").indexOf(t)>-1&&(e.idx=n)}),this.num=Wi(this.modelValue)?null:parseFloat(this.modelValue||0)):(this.idx=0,this.num=0)},submit:function(){this.oldValue=Wi(this.num)?"":""+this.num+this.unit[this.idx],this.$emit("update:modelValue",this.oldValue),this.$emit("change",this.oldValue)},changeType:function(e){if(void 0!==e){if(this.idx===e)return;this.idx=e}else this.idx++,this.idx>4&&(this.idx=0);"auto"===this.unit[this.idx]?(this.oldValue="auto",this.$emit("update:modelValue","auto"),this.$emit("change","auto")):this.submit()}},created:function(){this.parseValue()}}),Xp={class:"_fd-size-input"};var Jp=hu(Kp,[["render",function(e,t,n,i,r,o){var a=w("el-button"),l=w("el-inputNumber"),u=w("el-dropdown-item"),s=w("el-dropdown-menu"),c=w("el-dropdown");return P(),L("div",Xp,["auto"===e.unit[e.idx]?(P(),G(a,{key:0,size:e.size,style:{width:"150px"},onClick:t[0]||(t[0]=function(t){return e.changeType()})},{default:$(function(){return[Z(K(e.unit[e.idx]),1)]}),_:1},8,["size"])):(P(),L(X,{key:1},[x(l,{size:e.size,modelValue:e.num,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.num=t}),onChange:e.submit,"controls-position":"right"},null,8,["size","modelValue","onChange"]),x(c,{trigger:"click",size:"small"},{dropdown:$(function(){return[x(s,null,{default:$(function(){return[(P(!0),L(X,null,J(e.unit,function(t,n){return P(),G(u,{key:t,onClick:function(t){return e.changeType(n)}},{default:$(function(){return[j("div",null,K(t),1)]}),_:2},1032,["onClick"])}),128))]}),_:1})]}),default:$(function(){return[x(a,{size:e.size},{default:$(function(){return[Z(K(e.unit[e.idx]),1)]}),_:1},8,["size"])]}),_:1})],64))])}]]),Zp=b({name:"ColorInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue:function(){this.value=this.modelValue||""},value:function(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data:function(){return{value:this.modelValue||"",predefine:["#c9e6fc","#c3f2f2","#c2f1d2","#fef6c6","#ffe5c2","#fdcac2","#fadcce","#dec2fa","#ccd2f1","#2196f3","#08c9c9","#00c344","#fad714","#ff9300","#f52222","#eb2f96","#800080","#7500ea","#2d46c4","#000000","#333333","#5a5a5a","#757575","#9e9e9e","#bdbdbd","#dddddd","#f5f5f5","#ffffff"]}},methods:{},created:function(){}}),eh={class:"_fd-color-input"};var th=hu(Zp,[["render",function(e,t,n,i,r,o){var a=w("el-color-picker"),l=w("el-input");return P(),L("div",eh,[x(l,{clearable:"",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.value=t})},{append:$(function(){return[x(a,{"show-alpha":"","color-format":"hex",predefine:e.predefine,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t})},null,8,["predefine","modelValue"])]}),_:1},8,["modelValue"])])}]]),nh=b({name:"BoxSizeInput",components:{SizeInput:Jp,ConfigItem:Rf},props:{modelValue:{type:Object,default:function(){return{}}}},inject:["designer"],emits:["update:modelValue","change"],data:function(){return{overflow:[{value:"visible",icon:"icon-eye"},{value:"hidden",icon:"icon-eye-close"},{value:"scroll",icon:"icon-scroll"},{value:"auto",text:"Auto"}],keys:["width","height","minWidth","minHeight","maxWidth","maxHeight"],boxStyle:{width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""}}},watch:{modelValue:function(){this.tidyValue()}},computed:{t:function(){return this.designer.setupState.t}},methods:{tidyValue:function(){var e=this;this.boxStyle={width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""},this.modelValue&&Object.keys(this.boxStyle).forEach(function(t){e.modelValue[t]&&(e.boxStyle[t]=e.modelValue[t])})},onInput:function(){var e=this,t=Object.keys(this.boxStyle).reduce(function(t,n){return""!==e.boxStyle[n]&&(t[n]=e.boxStyle[n]),t},{});this.$emit("update:modelValue",t),this.$emit("change",t)},changeOverflow:function(e){this.boxStyle.overflow=this.boxStyle.overflow===e?"":e,this.onInput()},change:function(e,t){this.boxStyle[e]=t.target.value}},created:function(){this.tidyValue()}}),ih={class:"_fd-box-size-input"},rh={key:0,style:{"font-size":"12px","line-height":"16px"}};var oh=hu(nh,[["render",function(e,t,n,i,r,o){var a=w("SizeInput"),l=w("el-form-item"),u=w("el-radio-button"),s=w("el-tooltip"),c=w("el-radio-group"),d=w("el-form"),f=w("ConfigItem");return P(),L("div",ih,[x(f,{label:e.t("props.size"),info:Object.keys(e.modelValue).length>0?e.t("struct.configured"):""},{append:$(function(){return[x(d,{"label-position":"top",size:"small"},{default:$(function(){return[(P(!0),L(X,null,J(e.keys,function(t){return P(),G(l,{label:e.t("style."+t),key:t},{default:$(function(){return[x(a,{modelValue:e.boxStyle[t],"onUpdate:modelValue":function(n){return e.boxStyle[t]=n},onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])]}),_:2},1032,["label"])}),128)),x(l,{label:e.t("style.overflow.name"),style:{"grid-column":"span 2"}},{default:$(function(){return[x(c,{modelValue:e.boxStyle.overflow},{default:$(function(){return[(P(!0),L(X,null,J(e.overflow,function(t){return P(),G(s,{effect:"dark",content:e.t("style.overflow."+t.value),placement:"top",persistent:"","hide-after":0,key:t.value},{default:$(function(){return[x(u,{label:t.value,value:t.value,onClick:function(n){return e.changeOverflow(t.value)}},{default:$(function(){return[t.text?(P(),L("span",rh,"Auto ")):(P(),L("i",{key:1,class:Y(["fc-icon",t.icon])},null,2))]}),_:2},1032,["label","value","onClick"])]}),_:2},1032,["content"])}),128))]}),_:1},8,["modelValue"])]}),_:1},8,["label"])]}),_:1})]}),_:1},8,["label","info"])])}]]),ah=b({name:"BoxSpaceInput",components:{ConfigItem:Rf},props:{modelValue:{type:Object,default:function(){return{}}}},inject:["designer"],emits:["update:modelValue","change"],data:function(){return{position:["Top","Right","Bottom","Left"],boxStyle:{margin:"",padding:"",marginLeft:"",marginRight:"",marginTop:"",marginBottom:"",paddingLeft:"",paddingRight:"",paddingTop:"",paddingBottom:""},marginLock:!1,paddingLock:!1}},watch:{modelValue:function(){this.tidyValue()}},computed:{t:function(){return this.designer.setupState.t}},methods:{tidyValue:function(){var e=this;this.boxStyle={},["margin","padding"].forEach(function(t){e.boxStyle[t]=e.modelValue[t]||"",e.position.forEach(function(n){e.boxStyle[t+n]=e.tidySize(e.modelValue[t+n]||e.modelValue[t]||"")})})},onInput:function(){var e=this,t=Object.keys(this.boxStyle).reduce(function(t,n){return""!==e.boxStyle[n]&&(t[n]=e.boxStyle[n]),t},{});this.$emit("update:modelValue",t),this.$emit("change",t)},tidySize:function(e){if(!/^(\d*\.?\d+)(px|rem|%|vh|vw|em)$/.test(e)){if("auto"===e)return e;var t=parseInt(e);return isNaN(t)?"":t+"px"}return e},setValue:function(e,t,n){var i=this,r=this.tidySize(n.target.value);e?this[e+"Lock"]?this.position.forEach(function(t){i.boxStyle[e+t]=r}):this.boxStyle[e+t]=r:this.boxStyle[t]=r,this.onInput()},change:function(e,t){this.boxStyle[e]=t.target.value},clear:function(e){var t=this;this.position.forEach(function(n){t.boxStyle[e+n]=""}),this.onInput()},lock:function(e){var t=e+"Lock";this[t]=!this[t]}},created:function(){this.tidyValue()}}),lh={class:"_fd-box-space-input"},uh={class:"_padding"},sh={class:"_padding-title"},ch=["value"],dh=["value"],fh=["value"],ph=["value"],hh={class:"_fd-help"},mh={class:"_margin"},gh={class:"_margin-title"},vh={class:"_fd-help"},_h=["value"],yh=["value"],bh=["value"],Dh=["value"];var Ah=hu(ah,[["render",function(e,t,n,i,r,o){return P(),L("div",lh,[j("div",uh,[j("span",sh,K(e.t("style.margin")),1),j("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.marginTop,type:"text",onBlur:t[0]||(t[0]=function(t){return e.setValue("margin","Top",t)}),onInput:t[1]||(t[1]=function(t){return e.change("marginTop",t)})},null,40,ch),j("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.marginRight,type:"text",onBlur:t[2]||(t[2]=function(t){return e.setValue("margin","Right",t)}),onInput:t[3]||(t[3]=function(t){return e.change("marginRight",t)})},null,40,dh),j("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.marginBottom,type:"text",onBlur:t[4]||(t[4]=function(t){return e.setValue("margin","Bottom",t)}),onInput:t[5]||(t[5]=function(t){return e.change("marginBottom",t)})},null,40,fh),j("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.marginLeft,type:"text",onBlur:t[6]||(t[6]=function(t){return e.setValue("margin","Left",t)}),onInput:t[7]||(t[7]=function(t){return e.change("marginLeft",t)})},null,40,ph),j("div",hh,[j("i",{class:Y(["fc-icon icon-link2",e.marginLock?"active":""]),title:"lock",onClick:t[8]||(t[8]=function(t){return e.lock("margin")})},null,2),j("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[9]||(t[9]=function(t){return e.clear("margin")})})]),j("div",mh,[j("span",gh,K(e.t("style.padding")),1),j("div",vh,[j("i",{class:Y(["fc-icon icon-link2",e.paddingLock?"active":""]),title:"lock",onClick:t[10]||(t[10]=function(t){return e.lock("padding")})},null,2),j("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[11]||(t[11]=function(t){return e.clear("padding")})})]),j("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.paddingTop,type:"text",onBlur:t[12]||(t[12]=function(t){return e.setValue("padding","Top",t)}),onInput:t[13]||(t[13]=function(t){return e.change("paddingTop",t)})},null,40,_h),j("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.paddingRight,type:"text",onBlur:t[14]||(t[14]=function(t){return e.setValue("padding","Right",t)}),onInput:t[15]||(t[15]=function(t){return e.change("paddingRight",t)})},null,40,yh),j("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.paddingBottom,type:"text",onBlur:t[16]||(t[16]=function(t){return e.setValue("padding","Bottom",t)}),onInput:t[17]||(t[17]=function(t){return e.change("paddingBottom",t)})},null,40,bh),j("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.paddingLeft,type:"text",onBlur:t[18]||(t[18]=function(t){return e.setValue("padding","Left",t)}),onInput:t[19]||(t[19]=function(t){return e.change("paddingLeft",t)})},null,40,Dh),t[20]||(t[20]=j("div",{class:"_box"},null,-1))])])])}]]);function xh(e){var t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return 0===t.indexOf("-")&&(t=t.substr(1)),t}var wh=b({name:"BorderInput",components:{ColorInput:th,SizeInput:Jp,ConfigItem:Rf},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:function(){return{}}}},watch:{modelValue:function(){this.tidyValue(),this.initCur()},active:function(){this.initCur()}},computed:{borderStyleStr:function(){var e=this,t="";return Object.keys(this.borderStyle).forEach(function(n){""!==e.borderStyle[n]&&(t+=xh(n)+": "+e.borderStyle[n]+";")},{}),t}},data:function(){var e=this.designer.setupState.t;return{t:e,active:"",borderStyle:{},curStyle:"",curColor:"",curWidth:"",lineType:["solid","dashed","dotted","double"].map(function(t){return{value:t,label:e("style."+t)}}),position:["Top","Left","Bottom","Right"],type:["Style","Color","Width"],unwatch:null}},methods:{tidyValue:function(){var e=this,t=[];this.borderStyle={},[""].concat(g(this.position)).forEach(function(n){e.type.forEach(function(e){t.push("border"+n+e)})}),t.forEach(function(t){e.borderStyle[t]=e.modelValue[t]||""})},onInput:function(){var e=this,t=Object.keys(this.borderStyle).reduce(function(t,n){return""!==e.borderStyle[n]&&(t[n]=e.borderStyle[n]),t},{});this.$emit("update:modelValue",t),this.$emit("change",t)},pushCur:function(){this.borderStyle["border"+this.active+"Style"]=this.curStyle||"",this.borderStyle["border"+this.active+"Color"]=this.curColor||"",this.borderStyle["border"+this.active+"Width"]=this.curWidth||"",this.onInput()},initCur:function(){var e=this;this.unwatch&&this.unwatch(),this.curStyle=this.borderStyle["border"+this.active+"Style"]||"",this.curColor=this.borderStyle["border"+this.active+"Color"]||"",this.curWidth=this.borderStyle["border"+this.active+"Width"]||"",this.unwatch=this.$watch(function(){return[e.curStyle,e.curColor,e.curWidth]},function(){e.pushCur()})}},created:function(){this.tidyValue(),this.initCur()}}),Ch={class:"_fd-border-input"},Eh={class:"_fd-bi-left"},kh={class:"_fd-bil-row"},Fh={class:"_fd-bil-row"},Sh={class:"_fd-bil-row"},Bh={class:"_fd-bi-right"},Th={class:"_fd-bi-opt"};var Oh=hu(wh,[["render",function(e,t,n,i,r,o){var a=w("el-option"),l=w("el-select"),u=w("SizeInput"),s=w("ColorInput"),c=w("ConfigItem");return P(),G(c,{label:e.t("style.border")},{append:$(function(){return[j("div",Ch,[j("div",Eh,[j("div",kh,[j("div",{class:Y(["_fd-bil-col","Top"===e.active?"active":""]),onClick:t[0]||(t[0]=function(t){return e.active="Top"})},"┳ ",2)]),j("div",Fh,[j("div",{class:Y(["_fd-bil-col","Left"===e.active?"active":""]),onClick:t[1]||(t[1]=function(t){return e.active="Left"})},"┣ ",2),j("div",{class:Y(["_fd-bil-col",""===e.active?"active":""]),onClick:t[2]||(t[2]=function(t){return e.active=""})},"╋",2),j("div",{class:Y(["_fd-bil-col","Right"===e.active?"active":""]),onClick:t[3]||(t[3]=function(t){return e.active="Right"})}," ┫ ",2)]),j("div",Sh,[j("div",{class:Y(["_fd-bil-col","Bottom"===e.active?"active":""]),onClick:t[4]||(t[4]=function(t){return e.active="Bottom"})},"┻ ",2)])]),j("div",Bh,[x(l,{modelValue:e.curStyle,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.curStyle=t}),clearable:""},{default:$(function(){return[(P(!0),L(X,null,J(e.lineType,function(e){return P(),G(a,{key:e.value,label:e.label,value:e.value},{default:$(function(){return[j("div",Th,[j("div",{class:Y(["_line",e.value])},null,2)])]}),_:2},1032,["label","value"])}),128))]}),_:1},8,["modelValue"]),x(u,{modelValue:e.curWidth,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.curWidth=t})},null,8,["modelValue"]),x(s,{modelValue:e.curColor,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.curColor=t})},null,8,["modelValue"])])])]}),default:$(function(){return[j("div",{class:"line-box",style:ne(e.borderStyleStr)},t[8]||(t[8]=[j("div",{class:"line-box-con"},null,-1)]),4)]}),_:1},8,["label"])}]]),Rh=b({name:"RadiusInput",components:{ConfigItem:Rf,ColorInput:th,SizeInput:Jp},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue:function(e){e!==this.oldValue&&this.tidyValue()}},computed:{t:function(){return this.designer.setupState.t}},data:function(){return{visit:!1,active:"",style:{com:"",left:"",right:"",top:"",bottom:""},unit:["px","%"],oldValue:""}},methods:{batch:function(){this.style.left=this.style.com,this.style.right=this.style.com,this.style.top=this.style.com,this.style.bottom=this.style.com,this.onInput()},tidyValue:function(){if(this.style={com:"",left:"",right:"",top:"",bottom:""},this.modelValue){var e=(this.modelValue||"").split(" ").filter(function(e){return""!==e});1===e.length?e=[e[0],e[0],e[0],e[0]]:2===e.length?e=[e[0],e[1],e[0],e[1]]:3===e.length&&(e=[e[0],e[1],e[2],e[1]]),this.style.left=e[0],this.style.top=e[1],this.style.right=e[2],this.style.bottom=e[3],this.updateCom()}},updateCom:function(){var e="".concat(this.style.left||"0px"," ").concat(this.style.top||"0px"," ").concat(this.style.right||"0px"," ").concat(this.style.bottom||"0px");this.style.com=""===e.replaceAll(this.style.left,"").trim()?this.style.left:""},onInput:function(){var e="".concat(this.style.left||"0px"," ").concat(this.style.top||"0px"," ").concat(this.style.right||"0px"," ").concat(this.style.bottom||"0px");""==="".concat(this.style.left).concat(this.style.top).concat(this.style.right).concat(this.style.bottom).trim()?e="":this.updateCom(),this.oldValue=e,this.$emit("update:modelValue",e),this.$emit("change",e)}},created:function(){this.tidyValue()}}),Mh={class:"_fd-radius-input"},Nh={class:"_fd-radius-con"},Ih={class:"_fd-radius-item"},Lh={class:"_fd-radius-item"},Ph={class:"_fd-radius-item"},jh={class:"_fd-radius-item"};var Vh=hu(Rh,[["render",function(e,t,n,i,r,o){var a=w("SizeInput"),l=w("ConfigItem");return P(),L("div",Mh,[x(l,{label:e.t("style.borderRadius")},{append:$(function(){return[j("div",Nh,[j("div",Ih,[t[5]||(t[5]=j("div",{class:"_fd-radius-icon",style:{transform:"rotate(180deg)"}},[j("i",{class:"fc-icon icon-radius"})],-1)),x(a,{unit:e.unit,modelValue:e.style.left,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.style.left=t}),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),j("div",Lh,[t[6]||(t[6]=j("div",{class:"_fd-radius-icon",style:{transform:"rotate(-90deg)"}},[j("i",{class:"fc-icon icon-radius"})],-1)),x(a,{unit:e.unit,modelValue:e.style.top,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.style.top=t}),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),j("div",Ph,[t[7]||(t[7]=j("div",{class:"_fd-radius-icon",style:{transform:"rotate(90deg)"}},[j("i",{class:"fc-icon icon-radius"})],-1)),x(a,{unit:e.unit,modelValue:e.style.bottom,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.style.bottom=t}),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),j("div",jh,[t[8]||(t[8]=j("div",{class:"_fd-radius-icon"},[j("i",{class:"fc-icon icon-radius"})],-1)),x(a,{unit:e.unit,modelValue:e.style.right,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.style.right=t}),onChange:e.onInput},null,8,["unit","modelValue","onChange"])])])]}),default:$(function(){return[x(a,{unit:e.unit,modelValue:e.style.com,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.style.com=t}),onChange:e.batch},null,8,["unit","modelValue","onChange"])]}),_:1},8,["label"])])}]]),zh=b({name:"BorderInput",components:{ColorInput:th,SizeInput:Jp,ConfigItem:Rf},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:function(){return{}}}},watch:{modelValue:function(){this.tidyValue()}},computed:{borderStyleStr:function(){var e=this,t="";return Object.keys(this.borderStyle).forEach(function(n){""!==e.borderStyle[n]&&(t+=xh(n)+": "+e.borderStyle[n]+";")},{}),t},alignType:function(){var e=this;return["left","center","right"].map(function(t){return{label:e.t("props."+t),value:t}})},decorationType:function(){var e=this;return["underline","line-through","overline"].map(function(t){return{label:e.t("style.decoration."+t),value:t}})},weightType:function(){var e=this;return[300,400,500,700].map(function(t){return{label:e.t("style.weight."+t),value:t}})},familyType:function(){var e=this;return(this.designer.setupState.getConfig("fontFamily")||["Microsoft YaHei","SimSun","SimHei","KaiTi","FangSong","Arial","sans-serif","monospace"]).map(function(t){return"string"==typeof t?{label:e.t("style.family."+t)||t,value:t}:t})}},data:function(){return{t:this.designer.setupState.t,fontStyle:{fontSize:"",fontFamily:"",fontWeight:"",fontStyle:"",textDecoration:"",textAlign:"",lineHeight:"",letterSpacing:""}}},methods:{tidyValue:function(){var e=this;Object.keys(this.fontStyle).forEach(function(t){e.fontStyle[t]=e.modelValue[t]||""})},onInput:function(){var e=this,t=Object.keys(this.fontStyle).reduce(function(t,n){return""!==e.fontStyle[n]&&(t[n]=e.fontStyle[n]),t},{});this.$emit("update:modelValue",t),this.$emit("change",t)}},created:function(){this.tidyValue()}}),Hh={class:"_fd-font-input"};var Uh=hu(zh,[["render",function(e,t,n,i,r,o){var a=w("el-option"),l=w("el-select"),u=w("el-form-item"),s=w("SizeInput"),c=w("el-form"),d=w("ConfigItem");return P(),G(d,{label:e.t("style.font.name")},{append:$(function(){return[j("div",Hh,[x(c,{"label-width":"50px","label-position":"top",inline:"",size:"small"},{default:$(function(){return[x(u,{label:e.t("style.font.family")},{default:$(function(){return[x(l,{modelValue:e.fontStyle.fontFamily,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.fontStyle.fontFamily=t}),clearable:"",onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.familyType,function(e){return P(),G(a,{key:e.value,label:e.label,value:e.value},{default:$(function(){return[j("span",{style:ne({fontFamily:e.value})},K(e.label),5)]}),_:2},1032,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(u,{label:e.t("style.font.size")},{default:$(function(){return[x(s,{modelValue:e.fontStyle.fontSize,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.fontStyle.fontSize=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]}),_:1},8,["label"]),x(u,{label:e.t("style.weight.name")},{default:$(function(){return[x(l,{modelValue:e.fontStyle.fontWeight,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.fontStyle.fontWeight=t}),clearable:"",onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.weightType,function(e){return P(),G(a,{key:e.value,label:e.label,value:e.value},{default:$(function(){return[j("span",{style:ne({fontWeight:e.value})},K(e.label),5)]}),_:2},1032,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(u,{label:e.t("style.decoration.name")},{default:$(function(){return[x(l,{modelValue:e.fontStyle.textDecoration,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.fontStyle.textDecoration=t}),clearable:"",onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.decorationType,function(e){return P(),G(a,{key:e.value,label:e.label,value:e.value},{default:$(function(){return[j("span",{style:ne({textDecoration:e.value})},K(e.label),5)]}),_:2},1032,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(u,{label:e.t("style.font.align")},{default:$(function(){return[x(l,{modelValue:e.fontStyle.textAlign,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.fontStyle.textAlign=t}),clearable:"",onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.alignType,function(e){return P(),G(a,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(u,{label:e.t("style.font.height")},{default:$(function(){return[x(s,{modelValue:e.fontStyle.lineHeight,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.fontStyle.lineHeight=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]}),_:1},8,["label"]),x(u,{label:e.t("style.font.spacing")},{default:$(function(){return[x(s,{modelValue:e.fontStyle.letterSpacing,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.fontStyle.letterSpacing=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]}),_:1},8,["label"])]}),_:1})])]}),default:$(function(){return[j("div",{class:"_fd-fi-box",style:ne(e.fontStyle)},K(e.t("style.font.preview")),5)]}),_:1},8,["label"])}]]),Wh=b({name:"ShadowContent",components:{ColorInput:th},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String}},data:function(){return{max:24,boxSize:250,options:[{key:"external",icon:"shadow"},{key:"inset",icon:"shadow-inset"}],form:{color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"},units:["px","%","rem","em","vw","vh"],down:!1,position:{left:0,top:0}}},computed:{spotStyle:function(){return{left:this.position.left+"px",top:this.position.top+"px"}},t:function(){return this.designer.setupState.t}},watch:{position:function(e){this.form.x=parseInt(String((e.left-this.boxSize/2)/this.boxSize*this.max)),this.form.y=parseInt(String((e.top-this.boxSize/2)/this.boxSize*this.max));var t=this.max/2;this.form.x=this.form.x<0?Math.max(this.form.x,-1*t):Math.min(this.form.x,t),this.form.y=this.form.y<0?Math.max(this.form.y,-1*t):Math.min(this.form.y,t)},modelValue:function(e){this.initStyle(e)}},methods:{getMouseXY:function(e,t){if(this.down||t){var n=this.$refs.box.getBoundingClientRect();this.position={left:parseInt(String(e.clientX-n.x)),top:parseInt(String(e.clientY-n.y))}}},onMouseup:function(){this.down=!1,this.onInput()},onMousedown:function(e){this.getMouseXY(e,!0),this.down=!0},onInput:function(){var e=this.form,t="".concat(e.x).concat(e.x_unit," ").concat(e.y).concat(e.y_unit," ").concat(e.vague).concat(e.vague_unit," ").concat(e.extend).concat(e.extend_unit," ").concat(e.color);""==="".concat(e.x).concat(e.y).concat(e.vague).concat(e.extend).replaceAll("0","")?t="":"inset"===e.type&&(t+=" inset"),this.$emit("update:modelValue",t),this.$emit("change",t)},initStyle:function(e){(this.modelValue||"").indexOf(" inset")>-1&&(this.form.type="inset",e=e.replace(" inset",""));var t,n,i=e.split("rgba");i.length>1?(t="rgba"+i[1].trim(),n=i[0].trim().split(" ")):t=(n=i[0].trim().split(" ")).pop(),this.form.color=t||"#000",this.form.x=parseInt(n[0])||0,this.form.y=parseInt(n[1])||0,this.form.vague=parseInt(n[2])||0,this.form.extend=parseInt(n[3])||0;var r=function(e){return(null==e?void 0:e.replace(/[-\d.]/g,""))||"px"};this.form.x_unit=r(n[0]),this.form.y_unit=r(n[1]),this.form.vague_unit=r(n[2]),this.form.extend_unit=r(n[3]),this.position.left=this.boxSize/2+this.form.x/this.max*this.boxSize||0,this.position.top=this.boxSize/2+this.form.y/this.max*this.boxSize||0}},mounted:function(){this.initStyle(this.modelValue)}}),Gh={class:"_fd-shadow-content"},$h={class:"_fd-sc-right"};var Qh=hu(Wh,[["render",function(e,t,n,i,r,o){var a=w("el-radio-button"),l=w("el-tooltip"),u=w("el-radio-group"),s=w("el-form-item"),c=w("ColorInput"),d=w("el-option"),f=w("el-select"),p=w("el-input"),h=w("el-form");return P(),L("div",Gh,[x(h,{"label-width":"50px","label-position":"top",inline:"",class:"_fd-sc-form",size:"small"},{default:$(function(){return[x(s,{label:e.t("style.shadow.mode")},{default:$(function(){return[x(u,{modelValue:e.form.type,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.form.type=t}),onChange:e.onInput,size:"small",class:"_fd-sc-radio"},{default:$(function(){return[(P(!0),L(X,null,J(e.options,function(t){return P(),G(l,{key:t.key,effect:"dark",content:e.t("style.shadow."+t.key),placement:"top","hide-after":0,persistent:""},{default:$(function(){return[x(a,{label:t.key,value:t.key},{default:$(function(){return[j("i",{class:Y(["fc-icon","icon-"+t.icon])},null,2)]}),_:2},1032,["label","value"])]}),_:2},1032,["content"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(s,{label:e.t("style.color")},{default:$(function(){return[x(c,{modelValue:e.form.color,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.form.color=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]}),_:1},8,["label"]),x(s,{label:e.t("style.shadow.x")},{default:$(function(){return[x(p,{modelValue:e.form.x,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.form.x=t}),type:"number",onChange:e.onInput},{append:$(function(){return[x(f,{modelValue:e.form.x_unit,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.form.x_unit=t}),onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.units,function(e){return P(),G(d,{key:e,label:e,value:e},null,8,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(s,{label:e.t("style.shadow.y")},{default:$(function(){return[x(p,{modelValue:e.form.y,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.form.y=t}),type:"number",onChange:e.onInput},{append:$(function(){return[x(f,{modelValue:e.form.y_unit,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.form.y_unit=t}),onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.units,function(e){return P(),G(d,{key:e,label:e,value:e},null,8,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(s,{label:e.t("style.shadow.vague")},{default:$(function(){return[x(p,{modelValue:e.form.vague,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.form.vague=t}),type:"number",onChange:e.onInput},{append:$(function(){return[x(f,{modelValue:e.form.vague_unit,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.form.vague_unit=t}),onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.units,function(e){return P(),G(d,{key:e,label:e,value:e},null,8,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"]),x(s,{label:e.t("style.shadow.extend")},{default:$(function(){return[x(p,{modelValue:e.form.extend,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.form.extend=t}),type:"number",onChange:e.onInput},{append:$(function(){return[x(f,{modelValue:e.form.extend_unit,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.form.extend_unit=t}),onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.units,function(e){return P(),G(d,{key:e,label:e,value:e},null,8,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"])]}),_:1}),j("div",$h,[j("div",{ref:"box",class:Y(["_fd-sc-box",e.down?"down":""]),onClick:t[10]||(t[10]=function(t){return e.getMouseXY(t,1)}),onMousedown:t[11]||(t[11]=function(){return e.onMousedown&&e.onMousedown.apply(e,arguments)}),onMouseup:t[12]||(t[12]=function(){return e.onMouseup&&e.onMouseup.apply(e,arguments)}),onMousemove:t[13]||(t[13]=function(t){return e.getMouseXY(t,0)})},[j("span",{class:"spot",style:ne(e.spotStyle)},t[14]||(t[14]=[j("i",{class:"spot-id"},null,-1)]),4),t[15]||(t[15]=j("span",{class:"center-spot"},null,-1)),t[16]||(t[16]=j("div",{class:"x-hr"},null,-1)),t[17]||(t[17]=j("div",{class:"y-hr"},null,-1))],34)])])}]]),Yh=b({name:"ShadowInput",emits:["update:modelValue","change"],components:{ConfigItem:Rf,ShadowContent:Qh},inject:["designer"],props:{modelValue:String},watch:{modelValue:function(){this.value=this.modelValue||""},value:function(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data:function(){var e=this.designer.setupState.t;return{t:e,options:[{label:e("style.shadow.classic"),value:"3px 5px 7px 2px #CBCBCBFF"},{label:e("style.shadow.flat"),value:"4px 4px 3px -2px #E7E5E5FF"},{label:e("style.shadow.solid"),value:"1px 2px 4px 2px #979797FF"}],value:this.modelValue||""}},methods:{changeValue:function(e){this.value=e}},created:function(){}}),qh={class:"_fd-shadow-input"};var Kh=hu(Yh,[["render",function(e,t,n,i,r,o){var a=w("el-dropdown-item"),l=w("el-dropdown-menu"),u=w("el-dropdown"),s=w("el-input"),c=w("ShadowContent"),d=w("ConfigItem");return P(),L("div",qh,[x(d,{label:e.t("style.shadow.name")},{append:$(function(){return[x(c,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.value=t})},null,8,["modelValue"])]}),default:$(function(){return[x(s,{clearable:"",modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),class:"_fd-si-input"},{append:$(function(){return[x(u,null,{dropdown:$(function(){return[x(l,null,{default:$(function(){return[(P(!0),L(X,null,J(e.options,function(t){return P(),G(a,{onClick:function(n){return e.changeValue(t.value)}},{default:$(function(){return[Z(K(t.label),1)]}),_:2},1032,["onClick"])}),256))]}),_:1})]}),default:$(function(){return[t[2]||(t[2]=j("i",{class:"fc-icon icon-setting"},null,-1))]}),_:1,__:[2]})]}),_:1},8,["modelValue"])]}),_:1},8,["label"])])}]]),Xh=b({name:"PositionInput",components:{ConfigItem:Rf,SizeInput:Jp},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:Object},watch:{modelValue:function(){this.tidyValue()}},computed:{t:function(){return this.designer.setupState.t},positionType:function(){var e=this;return["static","relative","absolute","fixed","sticky"].map(function(t){return{label:e.t("style.position."+t),value:t}})}},data:function(){return{style:{position:"",left:"",right:"",top:"",bottom:""}}},methods:{tidyValue:function(){this.style=p({position:"",left:"",right:"",top:"",bottom:""},this.modelValue)},onInput:function(){var e=this,t=Object.keys(this.style).reduce(function(t,n){return""!==e.style[n]&&(t[n]=e.style[n]),t},{});this.$emit("update:modelValue",t),this.$emit("change",t)}},created:function(){this.tidyValue()}}),Jh={class:"_fd-pos-input"},Zh={class:"_fd-pos-con"},em={class:"_fd-pos-item"},tm={class:"_fd-pos-item"},nm={class:"_fd-pos-item"},im={class:"_fd-pos-item"};var rm=hu(Xh,[["render",function(e,t,n,i,r,o){var a=w("el-option"),l=w("el-select"),u=w("SizeInput"),s=w("ConfigItem");return P(),L("div",Jh,[x(s,{label:e.t("style.position.name")},{append:$(function(){return[j("div",Zh,[j("div",em,[t[5]||(t[5]=j("div",{class:"_fd-pos-icon"},[j("i",{class:"fc-icon icon-position-left"})],-1)),x(u,{modelValue:e.style.left,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.style.left=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]),j("div",tm,[t[6]||(t[6]=j("div",{class:"_fd-pos-icon",style:{transform:"rotate(90deg)"}},[j("i",{class:"fc-icon icon-position-left"})],-1)),x(u,{modelValue:e.style.top,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.style.top=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]),j("div",nm,[t[7]||(t[7]=j("div",{class:"_fd-pos-icon",style:{transform:"rotate(-90deg)"}},[j("i",{class:"fc-icon icon-position-left"})],-1)),x(u,{modelValue:e.style.bottom,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.style.bottom=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]),j("div",im,[t[8]||(t[8]=j("div",{class:"_fd-pos-icon",style:{transform:"rotate(180deg)"}},[j("i",{class:"fc-icon icon-position-left"})],-1)),x(u,{modelValue:e.style.right,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.style.right=t}),onChange:e.onInput},null,8,["modelValue","onChange"])])])]}),default:$(function(){return[x(l,{modelValue:e.style.position,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.style.position=t}),clearable:"",onChange:e.onInput},{default:$(function(){return[(P(!0),L(X,null,J(e.positionType,function(e){return P(),G(a,{key:e.value,label:e.label,value:e.value},{default:$(function(){return[Z(K(e.label),1)]}),_:2},1032,["label","value"])}),128))]}),_:1},8,["modelValue","onChange"])]}),_:1},8,["label"])])}]]),om=["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","lineHeight","letterSpacing"],am=["position","top","left","bottom","right"],lm=["height","width","minWidth","minHeight","maxWidth","maxHeight","overflow"],um=["color","backgroundColor","scale","borderRadius","boxShadow","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","padding","opacity","borderStyle","borderColor","borderWidth","borderTopStyle","borderTopColor","borderTopWidth","borderLeftStyle","borderLeftColor","borderLeftWidth","borderBottomStyle","borderBottomColor","borderBottomWidth","borderRightStyle","borderRightColor","borderRightWidth"].concat(om,lm,am),sm=b({name:"StyleConfig",inject:["designer"],emits:["update:modelValue"],components:{PositionInput:rm,TableOptions:Dp,ColorInput:th,ConfigItem:Rf,RadiusInput:Vh,BoxSizeInput:oh,BoxSpaceInput:Ah,BorderInput:Oh,ShadowInput:Kh,FontInput:Uh},props:{modelValue:{type:Object,default:function(){return{}}}},watch:{modelValue:function(){this.tidyStyle()}},data:function(){return{t:this.designer.setupState.t,formData:{},size:{},space:{},border:{},font:{},position:{},radius:"",backgroundColor:"",color:"",boxShadow:"",opacity:100,scale:100}},methods:{tidyStyle:function(){var e=p({},this.modelValue||{}),t={};Object.keys(e).forEach(function(n){var i=yi(n);(["margin","padding"].indexOf(n)>-1||n.indexOf("margin")>-1||n.indexOf("padding")>-1)&&(t[i]=e[n])});var n={};lm.forEach(function(t){e[t]&&(n[t]=e[t])});var i={};am.forEach(function(t){e[t]&&(i[t]=e[t])}),this.radius=e.borderRadius||"",delete e.borderRadius;var r={};Object.keys(e).forEach(function(t){0===t.indexOf("border")&&(r[t]=e[t])});var o=Wi(e.opacity)?100:parseFloat(e.opacity)||0;o&&o<1&&(o*=100);var a=e.scale;a=Wi(e.scale)?100:isNaN(Number(a))?parseFloat(a)||100:a>0?100*a:0;var l={};om.forEach(function(t){e[t]&&(l[t]=e[t])}),this.opacity=o,this.scale=a,this.size=n,this.position=i,this.space=t,this.border=r,this.font=l,this.boxShadow=e.boxShadow||"",this.color=e.color||"",this.backgroundColor=e.backgroundColor||"",um.forEach(function(t){delete e[t]}),this.formData=e},onInput:function(){var e=p({},this.formData),t={};um.forEach(function(n){if(e[n])t[n]=e[n],delete e[n];else{var i=xh(n);e[i]&&(t[n]=e[i],delete e[i])}});var n=p(p(p(p(p(p(p({},e),{},{color:this.color||"",backgroundColor:this.backgroundColor||"",opacity:this.opacity>=0&&this.opacity<100?this.opacity+"%":"",borderRadius:this.radius||"",boxShadow:this.boxShadow||"",scale:this.scale>=0&&100!==this.scale?this.scale+"%":""},this.space),this.size),this.border),this.font),this.position),t);Object.keys(n).forEach(function(e){Wi(n[e])&&delete n[e]}),this.$emit("update:modelValue",n)}},created:function(){this.tidyStyle()}}),cm={class:"_fd-style-config"};var dm=hu(sm,[["render",function(e,t,n,i,r,o){var a=w("BoxSpaceInput"),l=w("BoxSizeInput"),u=w("ColorInput"),s=w("ConfigItem"),c=w("BorderInput"),d=w("RadiusInput"),f=w("FontInput"),p=w("ShadowInput"),h=w("PositionInput"),m=w("el-slider"),g=w("TableOptions");return P(),L("div",cm,[x(a,{modelValue:e.space,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.space=t}),onChange:e.onInput,style:{"margin-bottom":"10px"}},null,8,["modelValue","onChange"]),x(l,{modelValue:e.size,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.size=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),x(s,{label:e.t("style.color")},{default:$(function(){return[x(u,{modelValue:e.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.color=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]}),_:1},8,["label"]),x(s,{label:e.t("style.backgroundColor")},{default:$(function(){return[x(u,{modelValue:e.backgroundColor,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.backgroundColor=t}),onChange:e.onInput},null,8,["modelValue","onChange"])]}),_:1},8,["label"]),x(c,{modelValue:e.border,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.border=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),x(d,{modelValue:e.radius,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.radius=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),x(f,{modelValue:e.font,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.font=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),x(p,{modelValue:e.boxShadow,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.boxShadow=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),x(h,{modelValue:e.position,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.position=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),x(s,{label:e.t("style.opacity"),class:"_fd-opacity-input"},{default:$(function(){return[x(m,{"show-tooltip":!1,modelValue:e.opacity,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.opacity=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),j("span",null,K(e.opacity)+"%",1)]}),_:1},8,["label"]),x(s,{label:e.t("style.scale"),class:"_fd-opacity-input"},{default:$(function(){return[x(m,{min:80,max:120,"show-tooltip":!1,modelValue:e.scale,"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.scale=t}),onChange:e.onInput},null,8,["modelValue","onChange"]),j("span",null,K(e.scale)+"%",1)]}),_:1},8,["label"]),x(s,{label:e.t("props.custom"),info:Object.keys(e.formData).length>0?e.t("struct.configured"):""},{append:$(function(){return[x(g,V({modelValue:e.formData,"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.formData=t}),onChange:e.onInput},{column:[{label:e.t("props.key"),key:"label"},{label:e.t("props.value"),key:"value"}],valueType:"object"}),null,16,["modelValue","onChange"])]}),_:1},8,["label","info"])])}]]);
  37. /*!
  38. * @form-create/component-wangeditor v3.2.14
  39. * (c) 2018-2024 xaboy
  40. * Github https://github.com/xaboy/form-create with wangeditor
  41. * Released under the MIT License.
  42. */function fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function pm(e){return(pm="function"==typeof Symbol&&"symbol"==y(Symbol.iterator)?function(e){return y(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":y(e)})(e)}function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gm={exports:{}};!function(e){window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){("undefined"==typeof Symbol?"undefined":y(Symbol))<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"===pm(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=141)}([function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){e.exports=n(142)},function(e,t,n){n.r(t),n.d(t,"__extends",function(){return r}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return l}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return s}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return d}),n.d(t,"__createBinding",function(){return f}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return h}),n.d(t,"__read",function(){return m}),n.d(t,"__spread",function(){return g}),n.d(t,"__spreadArrays",function(){return v}),n.d(t,"__spreadArray",function(){return _}),n.d(t,"__await",function(){return b}),n.d(t,"__asyncGenerator",function(){return D}),n.d(t,"__asyncDelegator",function(){return A}),n.d(t,"__asyncValues",function(){return x}),n.d(t,"__makeTemplateObject",function(){return w}),n.d(t,"__importStar",function(){return E}),n.d(t,"__importDefault",function(){return k}),n.d(t,"__classPrivateFieldGet",function(){return F}),n.d(t,"__classPrivateFieldSet",function(){return S});
  43. /*! *****************************************************************************
  44. Copyright (c) Microsoft Corporation.
  45. Permission to use, copy, modify, and/or distribute this software for any
  46. purpose with or without fee is hereby granted.
  47. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  48. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  49. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  50. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  51. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  52. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  53. PERFORMANCE OF THIS SOFTWARE.
  54. ***************************************************************************** */
  55. var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function l(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===(("undefined"==typeof Reflect?"undefined":y(Reflect))>"u"?"undefined":pm(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,i){t(n,i,e)}}function s(e,t){if("object"===(("undefined"==typeof Reflect?"undefined":y(Reflect))>"u"?"undefined":pm(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,i){function r(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function l(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(a,l)}u((i=i.apply(e,t||[])).next())})}function d(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(l){o=[6,l],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var f=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function p(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&f(t,e,n)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(l){r={error:l}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,l=o.length;a<l;a++,r++)i[r]=o[a];return i}function _(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function D(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise(function(n,i){o.push([e,t,n,i])>1||l(e,t)})})}function l(e,t){try{u(r[e](t))}catch(n){d(o[0][3],n)}}function u(e){e.value instanceof b?Promise.resolve(e.value.v).then(s,c):d(o[0][2],e)}function s(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function A(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:b(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof h?h(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise(function(i,o){r(i,o,(t=e[n](t)).done,t.value)})}}function r(e,t,n,i){Promise.resolve(i).then(function(t){e({value:t,done:n})},t)}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return C(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function F(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(89)),a=i(n(4)),l=i(n(26)),u=i(n(17)),s=i(n(121)),c=i(n(27)),d=i(n(91)),f=i(n(70)),p=i(n(28)),h=i(n(57));(0,r.default)(t,"__esModule",{value:!0}),t.DomElement=void 0;var m=n(2),g=n(6),v=[];function _(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return g.toArray(n)}function y(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}function b(e){var t=document.querySelectorAll(e);return g.toArray(t)}function D(e){var t=[],n=[];return t=(0,o.default)(e)?e:e.split(";"),(0,a.default)(t).call(t,function(e){var t,i=(0,l.default)(t=e.split(":")).call(t,function(e){return(0,u.default)(e).call(e)});2===i.length&&n.push(i[0]+":"+i[1])}),n}var A=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new s.default,t){if(t instanceof e)return t;var n=[],i=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===i||9===i)n=[t];else if(y(t))n=g.toArray(t);else if(t instanceof Array)n=t;else if("string"==typeof t){var r,o=(0,u.default)(r=t.replace("/\n/mg","")).call(r);n=0===(0,c.default)(o).call(o,"<")?_(o):b(o)}var a=n.length;if(!a)return this;for(var l=0;l<a;l++)this.elems.push(n[l]);this.length=a}}return(0,r.default)(e.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t];if(!1===e.call(n,n,t))break}return this},e.prototype.clone=function(e){var t;void 0===e&&(e=!1);var n=[];return(0,a.default)(t=this.elems).call(t,function(t){n.push(t.cloneNode(!!e))}),x(n)},e.prototype.get=function(e){void 0===e&&(e=0);var t=this.length;return e>=t&&(e%=t),x(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){var i;return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(i=this).call(i,function(i){if(t){var r=function(e){var i=e.target;i.matches(t)&&n.call(i,e)};i.addEventListener(e,r),v.push({elem:i,selector:t,fn:n,agentFn:r})}else i.addEventListener(e,n)})):this},e.prototype.off=function(e,t,n){var i;return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(i=this).call(i,function(i){if(t){for(var r=-1,o=0;o<v.length;o++){var a=v[o];if(a.selector===t&&a.fn===n&&a.elem===i){r=o;break}}if(-1!==r){var l=(0,d.default)(v).call(v,r,1)[0].agentFn;i.removeEventListener(e,l)}}else i.removeEventListener(e,n)})):this},e.prototype.attr=function(e,t){var n;return null==t?this.elems[0].getAttribute(e)||"":(0,a.default)(n=this).call(n,function(n){n.setAttribute(e,t)})},e.prototype.removeAttr=function(e){var t;(0,a.default)(t=this).call(t,function(t){t.removeAttribute(e)})},e.prototype.addClass=function(e){var t;return e?(0,a.default)(t=this).call(t,function(t){if(t.className){var n=t.className.split(/\s/);n=(0,f.default)(n).call(n,function(e){return!!(0,u.default)(e).call(e)}),(0,c.default)(n).call(n,e)<0&&n.push(e),t.className=n.join(" ")}else t.className=e}):this},e.prototype.removeClass=function(e){var t;return e?(0,a.default)(t=this).call(t,function(t){if(t.className){var n=t.className.split(/\s/);n=(0,f.default)(n).call(n,function(t){return!(!(t=(0,u.default)(t).call(t))||t===e)}),t.className=n.join(" ")}}):this},e.prototype.hasClass=function(e){if(!e)return!1;var t=this.elems[0];if(!t.className)return!1;var n=t.className.split(/\s/);return(0,p.default)(n).call(n,e)},e.prototype.css=function(e,t){var n,i;return i=""==t?"":e+":"+t+";",(0,a.default)(n=this).call(n,function(t){var n,r=(0,u.default)(n=t.getAttribute("style")||"").call(n);if(r){var o=D(r);o=(0,l.default)(o).call(o,function(t){return 0===(0,c.default)(t).call(t,e)?i:t}),""!=i&&(0,c.default)(o).call(o,i)<0&&o.push(i),""==i&&(o=D(o)),t.setAttribute("style",o.join("; "))}else t.setAttribute("style",i)})},e.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},e.prototype.show=function(){return this.css("display","block")},e.prototype.hide=function(){return this.css("display","none")},e.prototype.children=function(){var e=this.elems[0];return e?x(e.children):null},e.prototype.childNodes=function(){var e=this.elems[0];return e?x(e.childNodes):null},e.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},e.prototype.append=function(e){var t;return(0,a.default)(t=this).call(t,function(t){(0,a.default)(e).call(e,function(e){t.appendChild(e)})})},e.prototype.remove=function(){var e;return(0,a.default)(e=this).call(e,function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}})},e.prototype.isContain=function(e){var t=this.elems[0],n=e.elems[0];return t.contains(n)},e.prototype.getNodeName=function(){return this.elems[0].nodeName},e.prototype.getNode=function(e){return void 0===e&&(e=0),this.elems[e]},e.prototype.find=function(e){return x(this.elems[0].querySelectorAll(e))},e.prototype.text=function(e){var t;return e?(0,a.default)(t=this).call(t,function(t){t.innerHTML=e}):this.elems[0].innerHTML.replace(/<[^>]+>/g,function(){return""})},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,u.default)(e=t.value).call(e)},e.prototype.focus=function(){var e;return(0,a.default)(e=this).call(e,function(e){e.focus()})},e.prototype.prev=function(){return x(this.elems[0].previousElementSibling)},e.prototype.next=function(){return x(this.elems[0].nextElementSibling)},e.prototype.getNextSibling=function(){return x(this.elems[0].nextSibling)},e.prototype.parent=function(){return x(this.elems[0].parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var i=n.parentElement;return null===i?null:i.matches(e)?x(i):this.parentUntil(e,i)},e.prototype.parentUntilEditor=function(e,t,n){var i=n||this.elems[0];if(x(i).equal(t.$textContainerElem)||x(i).equal(t.$toolbarElem))return null;var r=i.parentElement;return null===r?null:r.matches(e)?x(r):this.parentUntilEditor(e,t,r)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t,n=x(e).elems[0];return n?(0,a.default)(t=this).call(t,function(e){var t=n.parentNode;null==t||t.insertBefore(e,n)}):this},e.prototype.insertAfter=function(e){var t,n=x(e).elems[0],i=n&&n.nextSibling;return n?(0,a.default)(t=this).call(t,function(e){var t=n.parentNode;i?t.insertBefore(e,i):t.appendChild(e)}):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})},e}();function x(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,h.default)(A).apply(A,m.__spreadArrays([void 0],e)))}t.DomElement=A,t.default=x},function(e,t,n){e.exports=n(180)},function(e,t,n){var i=n(8),r=n(71).f,o=n(101),a=n(9),l=n(40),u=n(19),s=n(16),c=function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,d,f,p,h,m,g,v,_=e.target,y=e.global,b=e.stat,D=e.proto,A=y?i:b?i[_]:(i[_]||{}).prototype,x=y?a:a[_]||(a[_]={}),w=x.prototype;for(f in t)n=!o(y?f:_+(b?".":"#")+f,e.forced)&&A&&s(A,f),h=x[f],n&&(m=e.noTargetGet?(v=r(A,f))&&v.value:A[f]),p=n&&m?m:t[f],(!n||pm(h)!==pm(p))&&(g=e.bind&&n?l(p,i):e.wrap&&n?c(p):D&&"function"==typeof p?l(Function.call,p):p,(e.sham||p&&p.sham||h&&h.sham)&&u(g,"sham",!0),x[f]=g,D&&(s(a,d=_+"Prototype")||u(a,d,{}),a[d][f]=p,e.real&&w&&!w[f]&&u(w,f,p)))}},function(e,t,n){var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(256)),l=i(n(45)),u=i(n(46)),s=i(n(89)),c=i(n(26));(0,o.default)(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0;var d=n(2),f=function(){function e(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,a.default)(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return e.prototype.isIE=function(){return"ActiveXObject"in window},e.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},e}();function p(e){var t;return void 0===e&&(e=""),e+(0,l.default)(t=Math.random().toString()).call(t,2)}function h(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}function m(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break}function v(e,t){var n,i,r=e.length||0;for(n=0;n<r&&(i=e[n],!1!==t.call(e,i,n));n++);}function _(e,t){void 0===t&&(t=200);var n=!1;return function(){for(var i=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,(0,u.default)(function(){n=!1,e.call.apply(e,d.__spreadArrays([i],r))},t))}}function y(e,t){void 0===t&&(t=200);var n=0;return function(){for(var i=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&window.clearTimeout(n),n=(0,u.default)(function(){n=0,e.call.apply(e,d.__spreadArrays([i],r))},t)}}function b(e){return"function"==typeof e}function D(e){if("object"!==(0,r.default)(e)||"function"==typeof e||null===e)return e;var t;for(var n in(0,s.default)(e)&&(t=[]),(0,s.default)(e)||(t={}),e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=D(e[n]));return t}function A(e){return(0,l.default)(Array.prototype).call(e)}function x(){var e;return(0,l.default)(e=Math.random().toString(36)).call(e,-5)}function w(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(null==t)return null;var n=(0,c.default)(t).call(t,function(e){return(0,a.default)(e,16)});return"rgb("+n[1]+", "+n[2]+", "+n[3]+")"}t.UA=new f,t.getRandom=p,t.replaceHtmlSymbol=h,t.replaceSpecialSymbol=m,t.forEach=g,t.arrForEach=v,t.throttle=_,t.debounce=y,t.isFunction=b,t.deepClone=D,t.toArray=A,t.getRandomCode=x,t.hexToRgb=w},function(e,t,n){function i(){}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=i,t.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==(("undefined"==typeof globalThis?"undefined":y(globalThis))>"u"?"undefined":pm(globalThis))&&globalThis)||n("object"==(("undefined"==typeof window?"undefined":y(window))>"u"?"undefined":pm(window))&&window)||n("object"==(("undefined"==typeof self?"undefined":y(self))>"u"?"undefined":pm(self))&&self)||n("object"==pm(t)&&t)||Function("return this")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var i=n(8),r=n(74),o=n(16),a=n(64),l=n(76),u=n(106),s=r("wks"),c=i.Symbol,d=u?c:c&&c.withoutSetter||a;e.exports=function(e){return o(s,e)||(l&&o(c,e)?s[e]=c[e]:s[e]=d("Symbol."+e)),s[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var i=n(9),r=n(16),o=n(93),a=n(18).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},function(e,t){e.exports=function(e){return"object"===pm(e)?null!==e:"function"==typeof e}},function(e,t,n){var i=n(11);e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var i=n(9);e.exports=function(e){return i[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var i=n(14),r=n(100),o=n(25),a=n(60),l=Object.defineProperty;t.f=i?l:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return l(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(14),r=n(18),o=n(48);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i,r=function(){return y(i)>"u"&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(y(e[t])>"u"){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(i){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},i=[],r=0;r<e.length;r++){var o=e[r],u=t.base?o[0]+t.base:o[0],s=n[u]||0,c="".concat(u," ").concat(s);n[u]=s+1;var d=l(c),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:c,updater:g(f,t),references:1}),i.push(c)}return i}function s(e){var t=document.createElement("style"),i=e.attributes||{};if(y(i.nonce)>"u"){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach(function(e){t.setAttribute(e,i[e])}),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}function c(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}var d=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function f(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&("undefined"==typeof btoa?"undefined":y(btoa))<"u"&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,m=0;function g(e,t){var n,i,r;if(t.singleton){var o=m++;n=h||(h=s(t)),i=f.bind(null,n,o,!1),r=f.bind(null,n,o,!0)}else n=s(t),i=p.bind(null,n,t),r=function(){c(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 r()}}e.exports=function(e,t){!(t=t||{}).singleton&&"boolean"!=typeof t.singleton&&(t.singleton=r());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=l(n[i]);a[r].references--}for(var o=u(e,t),s=0;s<n.length;s++){var c=l(n[s]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=o}}}},function(e,t,n){function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i),a=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=i(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);i&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){var i=n(14),r=n(11),o=n(16),a=Object.defineProperty,l={},u=function(e){throw e};e.exports=function(e,t){if(o(l,e))return l[e];t||(t={});var n=[][e],s=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:u,d=o(t,1)?t[1]:void 0;return l[e]=!!n&&!r(function(){if(s&&!i)return!0;var e={length:-1};s?a(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,c,d)})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t}(i.__importDefault(n(95)).default);t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),s=l.__importDefault(n(95)),c=l.__importDefault(n(134)),d=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;i.title=n.i18next.t("menus.dropListMenu."+i.title);var l,s="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";""!==s&&"list"===i.type&&(0,o.default)(l=i.list).call(l,function(e){var t=e.$elem,n=u.default(t.children());if(n.length>0){var i=null==n?void 0:n.getNodeName();i&&"I"===i&&t.addClass(s)}});var d=new c.default(r,i);return r.dropList=d,t.on("click",function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,o.default)(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,function(e){return e()}),d.show())}).on("mouseleave",function(){t.css("z-index","auto"),d.hideTimeoutId=(0,a.default)(function(){d.hide()})}),r}return l.__extends(t,e),t}(s.default);t.default=d},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(283)},function(e,t,n){var i=n(72),r=n(49);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(49);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(40),r=n(72),o=n(31),a=n(35),l=n(88),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,c=4==e,d=6==e,f=5==e||d;return function(p,h,m,g){for(var v,_,y=o(p),b=r(y),D=i(h,m,3),A=a(b.length),x=0,w=g||l,C=t?w(p,A):n?w(p,0):void 0;A>x;x++)if((f||x in b)&&(_=D(v=b[x],x,y),e))if(t)C[x]=_;else if(_)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:u.call(C,v)}else if(c)return!1;return d?-1:s||c?c:C}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(29)),l=i(n(132));(0,r.default)(t,"__esModule",{value:!0});var u=n(2),s=u.__importDefault(n(3)),c=n(7),d=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=s.default('<div class="w-e-panel-container"></div>');var i=t.editor;i.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var i=this.conf,r=this.$container,l=i.width||300,d=n.editor.$toolbarElem.getBoundingClientRect(),f=n.$elem.getBoundingClientRect(),p=d.height+d.top-f.top,h=(d.width-l)/2+d.left-f.left,m=300;Math.abs(h)>m&&(h=f.left<document.documentElement.clientWidth/2?-f.width/2:-l+f.width/2),r.css("width",l+"px").css("margin-top",p+"px").css("margin-left",h+"px").css("z-index",n.editor.zIndex.get("panel"));var g=s.default('<i class="w-e-icon-close w-e-panel-close"></i>');r.append(g),g.on("click",function(){t.remove()});var v=s.default('<ul class="w-e-panel-tab-title"></ul>'),_=s.default('<div class="w-e-panel-tab-content"></div>');r.append(v).append(_);var y=i.height;y&&_.css("height",y+"px").css("overflow-y","auto");var b=i.tabs||[],D=[],A=[];(0,o.default)(b).call(b,function(e,t){if(e){var n=e.title||"",i=e.tpl||"",r=s.default('<li class="w-e-item">'+n+"</li>");v.append(r);var a=s.default(i);_.append(a),D.push(r),A.push(a),0===t?(r.data("active",!0),r.addClass("w-e-active")):a.hide(),r.on("click",function(){r.data("active")||((0,o.default)(D).call(D,function(e){e.data("active",!1),e.removeClass("w-e-active")}),(0,o.default)(A).call(A,function(e){e.hide()}),r.data("active",!0),r.addClass("w-e-active"),a.show())})}}),r.on("click",function(e){e.stopPropagation()}),n.$elem.append(r),i.setLinkValue&&i.setLinkValue(r,"text"),i.setLinkValue&&i.setLinkValue(r,"link"),(0,o.default)(b).call(b,function(e,n){if(e){var i=e.events||[];(0,o.default)(i).call(i,function(e){var i,r=e.selector,o=e.type,l=e.fn||c.EMPTY_FN,s=A[n],d=null!==(i=e.bindEnter)&&void 0!==i&&i,f=function(e){return u.__awaiter(t,void 0,void 0,function(){return u.__generator(this,function(t){switch(t.label){case 0:return e.stopPropagation(),[4,l(e)];case 1:return t.sent()&&this.remove(),[2]}})})};(0,a.default)(s).call(s,r).on(o,f),d&&"click"===o&&s.on("keyup",function(e){13==e.keyCode&&f(e)})})}});var x=(0,a.default)(r).call(r,"input[type=text],textarea");x.length&&x.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus.delete(t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,o.default)(t=e.createdMenus).call(t,function(e){var t=e.panel;t&&t.remove()})},e.createdMenus=new l.default,e}();t.default=d},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(62),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(9),r=n(8),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){var i=n(81),r=n(18).f,o=n(19),a=n(16),l=n(170),u=n(10)("toStringTag");e.exports=function(e,t,n,s){if(e){var c=n?e:e.prototype;a(c,u)||r(c,u,{configurable:!0,value:t}),s&&!i&&o(c,"toString",l)}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(i.__importDefault(n(95)).default);t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(57));(0,r.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var i=l.default("<div></div>");i.addClass("w-e-tooltip"),this.$container=i}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,i=20,r=document.documentElement.scrollTop,o=this.$targetElem.getBoundingClientRect(),a=this.editor.$textElem.getBoundingClientRect(),u=this.$targetElem.getOffsetData(),s=l.default(u.parent),c=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=s.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var d=s.getBoundingClientRect().height,f=u.top,p=u.left,h=u.height,m=f-c;m>i+5?(t=m-i-15,e.addClass("w-e-tooltip-up")):m+h+i<d?(t=m+h+10,e.addClass("w-e-tooltip-down")):(t=(m>0?m:0)+i+10,e.addClass("w-e-tooltip-down")),n=p<0?0:p}else o.top<i||o.top-a.top<i?(t=o.bottom+r+5,e.addClass("w-e-tooltip-down")):(t=o.top+r-i-15,e.addClass("w-e-tooltip-up")),n=o.left<0?0:o.left;return{top:t,left:n}},e.prototype.appendMenus=function(){var e=this,t=this.conf,n=this.editor,i=this.$targetElem,r=this.$container;(0,o.default)(t).call(t,function(t,o){var a=t.$elem,u=l.default("<div></div>");u.addClass("w-e-tooltip-item-wrapper "),u.append(a),r.append(u),a.on("click",function(r){r.preventDefault(),t.onClick(n,i)&&e.remove()})})},e.prototype.create=function(){var e,t,n=this.editor,i=this.$container;this.appendMenus();var r=this.getPositionData(),o=r.top,u=r.left;i.css("top",o+"px"),i.css("left",u+"px"),i.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(i):l.default("body").append(i),this._show=!0,n.beforeDestroy((0,a.default)(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,a.default)(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,r.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=u},function(e,t,n){var i=n(41);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var i,r,o,a=n(165),l=n(8),u=n(13),s=n(19),c=n(16),d=n(63),f=n(51),p=l.WeakMap,h=function(e){return o(e)?r(e):i(e,{})},m=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var g=new p,v=g.get,_=g.has,y=g.set;i=function(e,t){return y.call(g,e,t),t},r=function(e){return v.call(g,e)||{}},o=function(e){return _.call(g,e)}}else{var b=d("state");f[b]=!0,i=function(e,t){return s(e,b,t),t},r=function(e){return c(e,b)?e[b]:{}},o=function(e){return c(e,b)}}e.exports={set:i,get:r,has:o,enforce:h,getterFor:m}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var a=n(2),l=n(137),u=a.__importDefault(n(3));function s(e){var t=[];return(0,o.default)(e).call(e,function(e){var n=e.getNodeName();if(n!==l.ListType.OrderedList&&n!==l.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var i=e.children();null==i||(0,o.default)(i).call(i,function(e){t.push(u.default(e))})}}),t}function c(e,t,n){var i=e.selection,r=document.createRange();t.length>1?(r.setStart(t.elems[0],0),r.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):r.selectNodeContents(t.elems[0]),n&&r.collapse(!1),i.saveRange(r),i.restoreSelection()}function d(e){var t;return e.prior?e.prior:u.default(null===(t=e.children())||void 0===t?void 0:t.elems[0])}function f(e){var t;return e.prior?e.prior:u.default(null===(t=e.children())||void 0===t?void 0:t.last().elems[0])}function p(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)}function h(e){return document.createElement(e)}function m(){return document.createDocumentFragment()}function g(e,t,n){return void 0===n&&(n="li"),(0,o.default)(e).call(e,function(e){var i=h(n);i.innerHTML=e.html(),t.appendChild(i),e.remove()}),t}t.filterSelectionNodes=s,t.updateRange=c,t.getStartPoint=d,t.getEndPoint=f,t.insertBefore=p,t.createElement=h,t.createDocumentFragment=m,t.createElementFragment=g},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(164).charAt,r=n(42),o=n(75),a="String Iterator",l=r.set,u=r.getterFor(a);o(String,"String",function(e){l(this,{type:a,string:String(e),index:0})},function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t,n){var i=n(107),r=n(80);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n,r){r&&r.enumerable?e[t]=n:i(e,t,n)}},function(e,t,n){n(173);var i=n(174),r=n(8),o=n(65),a=n(19),l=n(44),u=n(10)("toStringTag");for(var s in i){var c=r[s],d=c&&c.prototype;d&&o(d)!==u&&a(d,u,s),l[s]=l.Array}},function(e,t,n){var i=n(34);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(11),r=n(10),o=n(86),a=r("species");e.exports=function(e){return o>=51||!i(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){e.exports=n(222)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var i=n(2).__importDefault(n(373)),r=function(){function e(e){this.options=e,this.selectionRangeElem=new i.default}return e}();t.ListHandle=r},function(e,t,n){var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e))||"function"==typeof(n=e.valueOf)&&!i(r=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(74),r=n(64),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t,n){var i=n(81),r=n(34),o=n(10)("toStringTag"),a="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),o))?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var i=n(25),r=n(112),o=n(35),a=n(40),l=n(113),u=n(114),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,c,d){var f,p,h,m,g,v,_,y=a(t,n,c?2:1);if(d)f=e;else{if("function"!=typeof(p=l(e)))throw TypeError("Target is not iterable");if(r(p)){for(h=0,m=o(e.length);m>h;h++)if((g=c?y(i(_=e[h])[0],_[1]):y(e[h]))&&g instanceof s)return g;return new s(!1)}f=p.call(e)}for(v=f.next;!(_=v.call(f)).done;)if("object"==pm(g=u(f,y,_.value,c))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(e){return new s(!0,e)}},function(e,t,n){var i=n(11);e.exports=function(e,t){var n=[][e];return!!n&&i(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var i=n(60),r=n(18),o=n(48);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var i=n(14),r=n(59),o=n(48),a=n(30),l=n(60),u=n(16),s=n(100),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=a(e),t=l(t,!0),s)try{return c(e,t)}catch(n){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var i=n(11),r=n(34),o="".split;e.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(8),r=n(13),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var i=n(43),r=n(103);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var i=n(5),r=n(167),o=n(105),a=n(171),l=n(37),u=n(19),s=n(53),c=n(10),d=n(43),f=n(44),p=n(104),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",_="values",y="entries",b=function(){return this};e.exports=function(e,t,n,c,p,D,A){r(n,t,c);var x,w,C,E=function(e){if(e===p&&T)return T;if(!m&&e in S)return S[e];switch(e){case v:case _:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",F=!1,S=e.prototype,B=S[g]||S["@@iterator"]||p&&S[p],T=!m&&B||E(p),O="Array"==t&&S.entries||B;if(O&&(x=o(O.call(new e)),h!==Object.prototype&&x.next&&(!d&&o(x)!==h&&(a?a(x,h):"function"!=typeof x[g]&&u(x,g,b)),l(x,k,!0,!0),d&&(f[k]=b))),p==_&&B&&B.name!==_&&(F=!0,T=function(){return B.call(this)}),(!d||A)&&S[g]!==T&&u(S,g,T),f[t]=T,p)if(w={values:E(_),keys:D?T:E(v),entries:E(y)},A)for(C in w)(m||F||!(C in S))&&s(S,C,w[C]);else i({target:t,proto:!0,forced:m||F},w);return w}},function(e,t,n){var i=n(11);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},function(e,t,n){var i,r=n(25),o=n(169),a=n(80),l=n(51),u=n(108),s=n(73),c=n(63),d=">",f="<",p="prototype",h="script",m=c("IE_PROTO"),g=function(){},v=function(e){return f+h+d+e+f+"/"+h+d},_=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=s("iframe"),n="java"+h+":";return t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F},b=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=i?_(i):y();for(var e=a.length;e--;)delete b[p][a[e]];return b()};l[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=r(e),n=new g,g[p]=null,n[m]=e):n=b(),void 0===t?n:o(n,t)}},function(e,t,n){var i=n(30),r=n(35),o=n(79),a=function(e){return function(t,n,a){var l,u=i(t),s=r(u.length),c=o(a,s);if(e&&n!=n){for(;s>c;)if((l=u[c++])!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var i=n(62),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var i={};i[n(10)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var i=n(36);e.exports=i("navigator","userAgent")||""},function(e,t,n){var i=n(41),r=function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},function(e,t,n){var i,r,o=n(8),a=n(84),l=o.process,u=l&&l.versions,s=u&&u.v8;s?r=(i=s.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(6),s=a.__importDefault(n(267)),c=a.__importDefault(n(280)),d=a.__importDefault(n(281)),f=a.__importDefault(n(282)),p=a.__importDefault(n(301)),h=a.__importStar(n(416)),m=a.__importDefault(n(417)),g=a.__importDefault(n(418)),v=a.__importDefault(n(419)),_=a.__importStar(n(420)),y=a.__importDefault(n(423)),b=a.__importDefault(n(424)),D=a.__importDefault(n(425)),A=a.__importDefault(n(427)),x=a.__importDefault(n(437)),w=a.__importDefault(n(440)),C=a.__importStar(n(441)),E=a.__importDefault(n(23)),k=a.__importDefault(n(134)),F=a.__importDefault(n(24)),S=a.__importDefault(n(33)),B=a.__importDefault(n(38)),T=a.__importDefault(n(39)),O=1,R=function(){function e(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+O++,this.toolbarSelector=e,this.textSelector=t,h.selectorValidator(this),this.config=u.deepClone(s.default),this.$toolbarElem=l.default("<div></div>"),this.$textContainerElem=l.default("<div></div>"),this.$textElem=l.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new d.default(this),this.txt=new f.default(this),this.menus=new p.default(this),this.zIndex=new b.default,this.change=new D.default(this),this.history=new A.default(this),this.onSelectionChange=new w.default(this);var n=x.default(this),i=n.disable,r=n.enable;this.disable=i,this.enable=r,this.isEnable=!0}return e.prototype.initSelection=function(e){m.default(this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),v.default(this),h.default(this),this.txt.init(),this.menus.init(),_.default(this),this.initSelection(!0),g.default(this),this.change.observe(),this.history.observe(),C.default(this)},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,o.default)(e=this.beforeDestroyHooks).call(e,function(e){return e.call(t)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){_.setFullScreen(this)},e.prototype.unFullScreen=function(){_.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){y.default(this,e)},e.registerMenu=function(t,n){!n||"function"!=typeof n||(e.globalCustomMenuConstructorList[t]=n)},e.prototype.registerPlugin=function(e,t){C.registerPlugin(e,t,this.pluginsFunctionList)},e.registerPlugin=function(t,n){C.registerPlugin(t,n,e.globalPluginsFunctionList)},e.$=l.default,e.BtnMenu=E.default,e.DropList=k.default,e.DropListMenu=F.default,e.Panel=S.default,e.PanelMenu=B.default,e.Tooltip=T.default,e.globalCustomMenuConstructorList={},e.globalPluginsFunctionList={},e}();t.default=R},function(e,t,n){var i=n(13),r=n(55),o=n(10)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var i=n(49),r="["+n(68)+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),l=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var i=n(227),r=n(230);function o(t){return"function"==typeof r&&"symbol"==y(i)?e.exports=o=function(e){return y(e)}:e.exports=o=function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":y(e)},o(t)}e.exports=o},function(e,t,n){var i=n(10);t.f=i},function(e,t,n){e.exports=n(306)},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(33)),l=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",function(e){var i;a.default.hideCurAllPanels(),(0,o.default)(i=t.txt.eventHooks.menuClickEvents).call(i,function(e){return e()}),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)})}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,r.default)(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t.default=l},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(28));function a(e){for(var n=e.elems[0];n&&(0,o.default)(i=t.EXTRA_TAG).call(i,n.nodeName);){var i;if("A"===(n=n.parentElement).nodeName)return n}}function l(e){var t,n=e.selection.getSelectionContainerElem();if(null===(t=null==n?void 0:n.elems)||void 0===t||!t.length)return!1;if("A"===n.getNodeName())return!0;var i=a(n);return!(!i||"A"!==i.nodeName)}(0,r.default)(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=a,t.default=l},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(57)),a=i(n(4)),l=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var u=n(2),s=n(6),c=u.__importDefault(n(135)),d=u.__importDefault(n(136)),f=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var i=this.editor,r=i.config,o="validate.",a=function(e,t){return void 0===t&&(t=o),i.i18next.t(t+e)},l=e.replace(/</g,"&lt;").replace(/>/g,"&gt;");l=l.replace("'",'"');var u="";n&&(u=n.replace("'",'"'),u="data-href='"+encodeURIComponent(u)+"' ");var s="";t&&(s="alt='"+(s=(s=t.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'))+"' "),i.cmd.do("insertHTML","<img src='"+l+"' "+s+u+'style="max-width:100%;" contenteditable="false"/>'),r.linkImgCallback(e,t,n);var c=document.createElement("img");c.onload=function(){c=null},c.onerror=function(){r.customAlert(a("插入图片错误"),"error","wangEditor: "+a("插入图片错误")+","+a("图片链接")+' "'+e+'",'+a("下载链接失败")),c=null},c.onabort=function(){return c=null},c.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,i=n.config,r="validate.",u=function(e){return n.i18next.t(r+e)},f=i.uploadImgServer,p=i.uploadImgShowBase64,h=i.uploadImgMaxSize,m=h/1024/1024,g=i.uploadImgMaxLength,v=i.uploadFileName,_=i.uploadImgParams,y=i.uploadImgParamsWithUrl,b=i.uploadImgHeaders,D=i.uploadImgHooks,A=i.uploadImgTimeout,x=i.withCredentials,w=i.customUploadImg;if(w||f||p){var C,E=[],k=[];if(s.arrForEach(e,function(e){if(e){var t=e.name||e.type.replace("/","."),i=e.size;if(t&&i){var r=n.config.uploadImgAccept.join("|");if(!1===new RegExp(".("+r+")$","i").test(t))return void k.push("【"+t+"】"+u("不是图片"));if(h<i)return void k.push("【"+t+"】"+u("大于")+" "+m+"M");E.push(e)}}}),k.length)return void i.customAlert(u("图片验证未通过")+": \n"+k.join("\n"),"warning");if(0===E.length)return void i.customAlert(u("传入的文件不合法"),"warning");if(E.length>g)return void i.customAlert(u("一次最多上传")+g+u("张图片"),"warning");if(w&&"function"==typeof w)return void w(E,(0,o.default)(C=this.insertImg).call(C,this));var F=new FormData;if((0,a.default)(E).call(E,function(e,t){var n=v||e.name;E.length>1&&(n+=t+1),F.append(n,e)}),f){var S=f.split("#");f=S[0];var B=S[1]||"";(0,a.default)(s).call(s,_,function(e,t){y&&((0,l.default)(f).call(f,"?")>0?f+="&":f+="?",f=f+e+"="+t),F.append(e,t)}),B&&(f+="#"+B);var T=c.default(f,{timeout:A,formData:F,headers:b,withCredentials:!!x,beforeSend:function(e){if(D.before)return D.before(e,n,E)},onTimeout:function(e){i.customAlert(u("上传图片超时"),"error"),D.timeout&&D.timeout(e,n)},onProgress:function(e,t){var i=new d.default(n);t.lengthComputable&&(e=t.loaded/t.total,i.show(e))},onError:function(e){i.customAlert(u("上传图片错误"),"error",u("上传图片错误")+","+u("服务器返回状态")+": "+e.status),D.error&&D.error(e,n)},onFail:function(e,t){i.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+","+u("返回结果")+": "+t),D.fail&&D.fail(e,n,t)},onSuccess:function(e,r){if(D.customInsert){var l;D.customInsert((0,o.default)(l=t.insertImg).call(l,t),r,n)}else{if("0"!=r.errno)return i.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+","+u("返回结果")+" errno="+r.errno),void(D.fail&&D.fail(e,n,r));var s=r.data;(0,a.default)(s).call(s,function(e){"string"==typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)}),D.success&&D.success(e,n,r)}}});return void("string"==typeof T&&i.customAlert(T,"error"))}p&&s.arrForEach(e,function(e){var n=t,i=new FileReader;i.readAsDataURL(e),i.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}})}}},e}();t.default=f},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(410)),a=i(n(4)),l=i(n(45));function u(e){return!!e.length&&"w-e-todo"===e.attr("class")}function s(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,o.default)(t).call(t,function(e){return u(e)})}function c(e,t,n){var i;if(e.hasChildNodes()){var r=e.cloneNode(),o=!1;""===t.nodeValue&&(o=!0);var l=[];return(0,a.default)(i=e.childNodes).call(i,function(e){if(!d(e,t)&&o&&(r.appendChild(e.cloneNode(!0)),"BR"!==e.nodeName&&l.push(e)),d(e,t)){if(1===e.nodeType){var i=c(e,t,n);i&&""!==i.textContent&&(null==r||r.appendChild(i))}if(3===e.nodeType&&t.isEqualNode(e)){var a=f(e,n);r.textContent=a}o=!0}}),(0,a.default)(l).call(l,function(e){e.remove()}),r}}function d(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function f(e,t,n){void 0===n&&(n=!0);var i=e.nodeValue,r=null==i?void 0:(0,l.default)(i).call(i,0,t);if(i=null==i?void 0:(0,l.default)(i).call(i,t),!n){var o=i;i=r,r=o}return e.nodeValue=r,i}(0,r.default)(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=u,t.isAllTodo=s,t.getCursorNextNode=c,t.dealTextNode=f},function(e,t,n){var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=n(430),o=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new r.CeilStack(e),this.revokeData=new r.CeilStack(e)}return(0,i.default)(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t.default=o},function(e,t,n){var i=n(14),r=n(11),o=n(73);e.exports=!i&&!r(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(11),r=/#|\.prototype\./,o=function(e,t){var n=l[a(e)];return n==s||n!=u&&("function"==typeof t?i(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";e.exports=o},function(e,t,n){var i=n(103),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},function(e,t,n){var i=n(8),r=n(166),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},function(e,t,n){var i,r,o,a=n(105),l=n(19),u=n(16),s=n(10),c=n(43),d=s("iterator"),f=!1,p=function(){return this};[].keys&&("next"in(o=[].keys())?(r=a(a(o)))!==Object.prototype&&(i=r):f=!0),null==i&&(i={}),!c&&!u(i,d)&&l(i,d,p),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var i=n(16),r=n(31),o=n(63),a=n(168),l=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var i=n(76);e.exports=i&&!Symbol.sham&&"symbol"==pm(Symbol.iterator)},function(e,t,n){var i=n(16),r=n(30),o=n(78).indexOf,a=n(51);e.exports=function(e,t){var n,l=r(e),u=0,s=[];for(n in l)!i(a,n)&&i(l,n)&&s.push(n);for(;t.length>u;)i(l,n=t[u++])&&(~o(s,n)||s.push(n));return s}},function(e,t,n){var i=n(36);e.exports=i("document","documentElement")},function(e,t,n){var i=n(8);e.exports=i.Promise},function(e,t,n){var i=n(53);e.exports=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:i(e,r,t[r],n);return e}},function(e,t,n){var i=n(36),r=n(18),o=n(10),a=n(14),l=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(10),r=n(44),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},function(e,t,n){var i=n(65),r=n(44),o=n(10)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){var i=n(25);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&i(o.call(e)),a}}},function(e,t,n){var i=n(10)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(l){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(a){}return n}},function(e,t,n){var i=n(25),r=n(41),o=n(10)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[o])?t:r(n)}},function(e,t,n){var i,r,o,a=n(8),l=n(11),u=n(34),s=n(40),c=n(108),d=n(73),f=n(118),p=a.location,h=a.setImmediate,m=a.clearImmediate,g=a.process,v=a.MessageChannel,_=a.Dispatch,y=0,b={},D="onreadystatechange",A=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},x=function(e){return function(){A(e)}},w=function(e){A(e.data)},C=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};(!h||!m)&&(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},m=function(e){delete b[e]},"process"==u(g)?i=function(e){g.nextTick(x(e))}:_&&_.now?i=function(e){_.now(x(e))}:v&&!f?(o=(r=new v).port2,r.port1.onmessage=w,i=s(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||l(C)||"file:"===p.protocol?i=D in d("script")?function(e){c.appendChild(d("script"))[D]=function(){c.removeChild(this),A(e)}}:function(e){setTimeout(x(e),0)}:(i=C,a.addEventListener("message",w,!1))),e.exports={set:h,clear:m}},function(e,t,n){var i=n(84);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},function(e,t,n){var i=n(25),r=n(13),o=n(85);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){var i=n(5),r=n(8),o=n(123),a=n(11),l=n(19),u=n(66),s=n(83),c=n(13),d=n(37),f=n(18).f,p=n(32).forEach,h=n(14),m=n(42),g=m.set,v=m.getterFor;e.exports=function(e,t,n){var m,_=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=_?"set":"add",D=r[e],A=D&&D.prototype,x={};if(h&&"function"==typeof D&&(y||A.forEach&&!a(function(){(new D).entries().next()}))){m=t(function(t,n){g(s(t,m,e),{type:e,collection:new D}),null!=n&&u(n,t[b],t,_)});var w=v(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(e){var t="add"==e||"set"==e;e in A&&(!y||"clear"!=e)&&l(m.prototype,e,function(n,i){var r=w(this).collection;if(!t&&y&&!c(n))return"get"==e&&void 0;var o=r[e](0===n?0:n,i);return t?this:o})}),y||f(m.prototype,"size",{configurable:!0,get:function(){return w(this).collection.size}})}else m=n.getConstructor(t,e,_,b),o.REQUIRED=!0;return d(m,e,!1,!0),x[e]=m,i({global:!0,forced:!0},x),y||n.setStrong(m,e,_),m}},function(e,t,n){var i=n(51),r=n(13),o=n(16),a=n(18).f,l=n(64),u=n(200),s=l("meta"),c=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,s,{value:{objectID:"O"+ ++c,weakData:{}}})},p=function(e,t){if(!r(e))return"symbol"==pm(e)?e:("string"==typeof e?"S":"P")+e;if(!o(e,s)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[s].objectID},h=function(e,t){if(!o(e,s)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[s].weakData},m=function(e){return u&&g.REQUIRED&&d(e)&&!o(e,s)&&f(e),e},g=e.exports={REQUIRED:!1,fastKey:p,getWeakData:h,onFreeze:m};i[s]=!0},function(e,t,n){var i=n(18).f,r=n(77),o=n(110),a=n(40),l=n(83),u=n(66),s=n(75),c=n(111),d=n(14),f=n(123).fastKey,p=n(42),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,s){var c=e(function(e,i){l(e,c,t),h(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=i&&u(i,e[s],e,n)}),p=m(t),g=function(e,t,n){var i,r,o=p(e),a=v(e,t);return a?a.value=n:(o.last=a={index:r=f(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),d?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},v=function(e,t){var n,i=p(e),r=f(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(c.prototype,{clear:function(){for(var e=this,t=p(e),n=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),i=v(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),d?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=p(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(c.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&i(c.prototype,"size",{get:function(){return p(this).size}}),c},setStrong:function(e,t,n){var i=t+" Iterator",r=m(t),o=m(i);s(e,t,function(e,t){h(this,{type:i,target:e,state:r(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){n(12)("iterator")},function(e,t,n){var i=n(107),r=n(80).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={zIndex:1e4}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var a=n(2),l=n(6),u=a.__importDefault(n(292));function s(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),l.replaceHtmlSymbol(n)}function c(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.clipboardData,r="";if(i&&(r=i.getData("text/html")),!r){var o=s(e);if(!o)return"";r="<p>"+o+"</p>"}return r=(r=r.replace(/<(\d)/gm,function(e,t){return"&lt;"+t})).replace(/<(\/?meta.*?)>/gim,""),r=u.default(r,t,n)}function d(e){var t,n=[];if(s(e))return n;var i=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return i&&(0,o.default)(l).call(l,i,function(e,t){var i=t.type;/image/i.test(i)&&n.push(t.getAsFile())}),n}t.getPasteText=s,t.getPasteHtml=c,t.getPasteImgs=d},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=n(7),s=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var i=l.default('<div class="w-e-droplist"></div>'),r=l.default("<p>"+t.title+"</p>");r.addClass("w-e-dp-title"),i.append(r);var s=t.list||[],c=t.type||"list",d=t.clickHandler||u.EMPTY_FN,f=l.default('<ul class="'+("list"===c?"w-e-list":"w-e-block")+'"></ul>');(0,o.default)(s).call(s,function(e){var t=e.$elem,i=e.value,r=l.default('<li class="w-e-item"></li>');t&&(r.append(t),f.append(r),r.on("click",function(e){d(i),e.stopPropagation(),n.hideTimeoutId=(0,a.default)(function(){n.hide()})}))}),i.append(f),i.on("mouseleave",function(){n.hideTimeoutId=(0,a.default)(function(){n.hide()})}),this.$container=i,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu.$elem,t=this.$container;if(!this._show){if(this.rendered)t.show();else{var n=e.getBoundingClientRect().height||0,i=this.conf.width||100;t.css("margin-top",n+"px").css("width",i+"px"),e.append(t),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;!this._show||(e.hide(),this._show=!1)},(0,r.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=s},function(e,t,n){var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(4));(0,o.default)(t,"__esModule",{value:!0});var l=n(6);function u(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,a.default)(l).call(l,t.headers,function(e,t){n.setRequestHeader(e,t)}),n.withCredentials=!!t.withCredentials,t.beforeSend){var i=t.beforeSend(n);if(i&&"object"===(0,r.default)(i)&&i.prevent)return i.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||e>=300&&e<400)){if(e>=400)return void(t.onError&&t.onError(n));var i,o=n.responseText;if("object"!==(0,r.default)(o))try{i=JSON.parse(o)}catch(a){return void(t.onFail&&t.onFail(n,o))}else i=o;t.onSuccess(n,i)}}},n.send(t.formData||null),n}t.default=u},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(342)),a=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=l.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar;this.$textContainer.append(n),(0,o.default)()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,o.default)());var i=this.timeoutId;i&&clearTimeout(i),this.timeoutId=(0,a.default)(function(){t.hide()},500)}},e.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var i,r,o=n(2),a=o.__importDefault(n(3)),l=o.__importDefault(n(24)),u=n(47),s=o.__importStar(n(371));(r=i=t.ListType||(t.ListType={})).OrderedList="OL",r.UnorderedList="UL";var c=function(e){function t(t){var n=this,r=a.default('<div class="w-e-menu" data-title="序列">\n <i class="w-e-icon-list2"></i>\n </div>'),o={width:130,title:"序列",type:"list",list:[{$elem:a.default('\n <p>\n <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.无序列表")+"\n <p>"),value:i.UnorderedList},{$elem:a.default('<p>\n <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.有序列表")+"\n <p>"),value:i.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,o)||this}return o.__extends(t,e),t.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,i=e.toLowerCase(),r=n.getSelectionContainerElem(),o=n.getSelectionStartElem().getNodeTop(t),a=n.getSelectionEndElem().getNodeTop(t);if(this.validator(o,a,t.$textElem)){var l=n.getRange(),c=null==l?void 0:l.collapsed;t.$textElem.equal(r)||(r=r.getNodeTop(t));var d,f={editor:t,listType:e,listTarget:i,$selectionElem:r,$startElem:o,$endElem:a};d=this.isOrderElem(r)?s.ClassType.Wrap:this.isOrderElem(o)&&this.isOrderElem(a)?s.ClassType.Join:this.isOrderElem(o)?s.ClassType.StartJoin:this.isOrderElem(a)?s.ClassType.EndJoin:s.ClassType.Other;var p=new s.default(s.createListHandle(d,f,l));u.updateRange(t,p.getSelectionRangeElem(),!!c)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===i.OrderedList||t===i.UnorderedList},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=c},function(e,t,n){e.exports=n(395)},function(e,t,n){function i(e){var t=e.selection.getSelectionContainerElem();return!(null==t||!t.length||"CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2).__importDefault(n(3)),l=function(){function e(e){var t;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=a.default(this.template),this.$child=null===(t=null==e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},e.prototype.getInput=function(){var e=this.$todo;return(0,o.default)(e).call(e,"input")},e.prototype.getInputContainer=function(){return this.getInput().parent()},e.prototype.getTodo=function(){return this.$todo},e}();function u(e){var t=new l(e);return t.init(),t}t.todo=l,t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var r=i.__importDefault(n(87));i.__exportStar(n(442),t),t.default=r.default},function(e,t,n){var i=n(143);e.exports=i},function(e,t,n){n(144);var i=n(9).Object,r=e.exports=function(e,t,n){return i.defineProperty(e,t,n)};i.defineProperty.sham&&(r.sham=!0)},function(e,t,n){var i=n(5),r=n(14);i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(18).f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===(("undefined"==typeof window?"undefined":y(window))>"u"?"undefined":pm(window))&&(n=window)}e.exports=n},function(e,t,n){var i=n(20),r=n(147);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(149);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){var i=n(21),r=n(150),o=n(151);t=i(!1);var a=r(o);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+a+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){n.r(t),t.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var i=n(20),r=n(153);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(155);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(157);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),r=n(159);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){var i=n(0)(n(161));Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;n>=0&&t.item(n)!==this;n--);return n>-1}),i.default||(window.Promise=i.default)},function(e,t,n){e.exports=n(162)},function(e,t,n){var i=n(163);e.exports=i},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179);var i=n(9);e.exports=i.Promise},function(e,t,n){var i=n(62),r=n(49),o=function(e){return function(t,n){var o,a,l=String(r(t)),u=i(n),s=l.length;return u<0||u>=s?e?"":void 0:(o=l.charCodeAt(u))<55296||o>56319||u+1===s||(a=l.charCodeAt(u+1))<56320||a>57343?e?l.charAt(u):o:e?l.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var i=n(8),r=n(102),o=i.WeakMap;e.exports="function"==typeof o&&/native code/.test(r(o))},function(e,t,n){var i=n(8),r=n(19);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){var i=n(104).IteratorPrototype,r=n(77),o=n(48),a=n(37),l=n(44),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),a(e,s,!1,!0),l[s]=u,e}},function(e,t,n){var i=n(11);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var i=n(14),r=n(18),o=n(25),a=n(52);e.exports=i?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),l=i.length,u=0;l>u;)r.f(e,n=i[u++],t[n]);return e}},function(e,t,n){var i=n(81),r=n(65);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){var i=n(25),r=n(172);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var i=n(30),r=n(82),o=n(44),a=n(42),l=n(75),u="Array Iterator",s=a.set,c=a.getterFor(u);e.exports=l(Array,"Array",function(e,t){s(this,{type:u,target:i(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var i,r,o,a,l=n(5),u=n(43),s=n(8),c=n(36),d=n(109),f=n(53),p=n(110),h=n(37),m=n(111),g=n(13),v=n(41),_=n(83),y=n(34),b=n(102),D=n(66),A=n(115),x=n(116),w=n(117).set,C=n(176),E=n(119),k=n(177),F=n(85),S=n(120),B=n(42),T=n(101),O=n(10),R=n(86),M=O("species"),N="Promise",I=B.get,L=B.set,P=B.getterFor(N),j=d,V=s.TypeError,z=s.document,H=s.process,U=c("fetch"),W=F.f,G=W,$="process"==y(H),Q=!!(z&&z.createEvent&&s.dispatchEvent),Y="unhandledrejection",q="rejectionhandled",K=0,X=1,J=2,Z=1,ee=2,te=T(N,function(){if(b(j)===String(j)&&(66===R||!$&&"function"!=typeof PromiseRejectionEvent)||u&&!j.prototype.finally)return!0;if(R>=51&&/native code/.test(j))return!1;var e=j.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[M]=t,!(e.then(function(){})instanceof t)}),ne=te||!A(function(e){j.all(e).catch(function(){})}),ie=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;C(function(){for(var r=t.value,o=t.state==X,a=0;i.length>a;){var l,u,s,c=i[a++],d=o?c.ok:c.fail,f=c.resolve,p=c.reject,h=c.domain;try{d?(o||(t.rejection===ee&&ue(e,t),t.rejection=Z),!0===d?l=r:(h&&h.enter(),l=d(r),h&&(h.exit(),s=!0)),l===c.promise?p(V("Promise-chain cycle")):(u=ie(l))?u.call(l,f,p):f(l)):p(r)}catch(m){h&&!s&&h.exit(),p(m)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ae(e,t)})}},oe=function(e,t,n){var i,r;Q?((i=z.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),s.dispatchEvent(i)):i={promise:t,reason:n},(r=s["on"+e])?r(i):e===Y&&k("Unhandled promise rejection",n)},ae=function(e,t){w.call(s,function(){var n,i=t.value;if(le(t)&&(n=S(function(){$?H.emit("unhandledRejection",i,e):oe(Y,e,i)}),t.rejection=$||le(t)?ee:Z,n.error))throw n.value})},le=function(e){return e.rejection!==Z&&!e.parent},ue=function(e,t){w.call(s,function(){$?H.emit("rejectionHandled",e):oe(q,e,t.value)})},se=function(e,t,n,i){return function(r){e(t,n,r,i)}},ce=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=J,re(e,t,!0))},de=function e(t,n,i,r){if(!n.done){n.done=!0,r&&(n=r);try{if(t===i)throw V("Promise can't be resolved itself");var o=ie(i);o?C(function(){var r={done:!1};try{o.call(i,se(e,t,r,n),se(ce,t,r,n))}catch(a){ce(t,r,a,n)}}):(n.value=i,n.state=X,re(t,n,!1))}catch(a){ce(t,{done:!1},a,n)}}};te&&(j=function(e){_(this,j,N),v(e),i.call(this);var t=I(this);try{e(se(de,this,t),se(ce,this,t))}catch(n){ce(this,t,n)}},(i=function(e){L(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:K,value:void 0})}).prototype=p(j.prototype,{then:function(e,t){var n=P(this),i=W(x(this,j));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=$?H.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=K&&re(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=I(e);this.promise=e,this.resolve=se(de,e,t),this.reject=se(ce,e,t)},F.f=W=function(e){return e===j||e===o?new r(e):G(e)},!u&&"function"==typeof d&&(a=d.prototype.then,f(d.prototype,"then",function(e,t){var n=this;return new j(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof U&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(j,U.apply(s,arguments))}}))),l({global:!0,wrap:!0,forced:te},{Promise:j}),h(j,N,!1,!0),m(N),o=c(N),l({target:N,stat:!0,forced:te},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),l({target:N,stat:!0,forced:u||te},{resolve:function(e){return E(u&&this===o?j:this,e)}}),l({target:N,stat:!0,forced:ne},{all:function(e){var t=this,n=W(t),i=n.resolve,r=n.reject,o=S(function(){var n=v(t.resolve),o=[],a=0,l=1;D(e,function(e){var u=a++,s=!1;o.push(void 0),l++,n.call(t,e).then(function(e){s||(s=!0,o[u]=e,--l||i(o))},r)}),--l||i(o)});return o.error&&r(o.value),n.promise},race:function(e){var t=this,n=W(t),i=n.reject,r=S(function(){var r=v(t.resolve);D(e,function(e){r.call(t,e).then(n.resolve,i)})});return r.error&&i(r.value),n.promise}})},function(e,t,n){var i,r,o,a,l,u,s,c,d=n(8),f=n(71).f,p=n(34),h=n(117).set,m=n(118),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,_=d.Promise,y="process"==p(v),b=f(d,"queueMicrotask"),D=b&&b.value;D||(i=function(){var e,t;for(y&&(e=v.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():o=void 0,n}}o=void 0,e&&e.enter()},y?a=function(){v.nextTick(i)}:g&&!m?(l=!0,u=document.createTextNode(""),new g(i).observe(u,{characterData:!0}),a=function(){u.data=l=!l}):_&&_.resolve?(s=_.resolve(void 0),c=s.then,a=function(){c.call(s,i)}):a=function(){h.call(d,i)}),e.exports=D||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,a()),o=t}},function(e,t,n){var i=n(8);e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){var i=n(5),r=n(41),o=n(85),a=n(120),l=n(66);i({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),i=n.resolve,u=n.reject,s=a(function(){var n=r(t.resolve),o=[],a=0,u=1;l(e,function(e){var r=a++,l=!1;o.push(void 0),u++,n.call(t,e).then(function(e){l||(l=!0,o[r]={status:"fulfilled",value:e},--u||i(o))},function(e){l||(l=!0,o[r]={status:"rejected",reason:e},--u||i(o))})}),--u||i(o)});return s.error&&u(s.value),n.promise}})},function(e,t,n){var i=n(5),r=n(43),o=n(109),a=n(11),l=n(36),u=n(116),s=n(119),c=n(53);i({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}}),!r&&"function"==typeof o&&!o.prototype.finally&&c(o.prototype,"finally",l("Promise").prototype.finally)},function(e,t,n){n(54);var i=n(181),r=n(65),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===o||e instanceof Array&&t===o.forEach||a.hasOwnProperty(r(e))?i:t}},function(e,t,n){var i=n(182);e.exports=i},function(e,t,n){n(183);var i=n(15);e.exports=i("Array").forEach},function(e,t,n){var i=n(5),r=n(184);i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){var i=n(32).forEach,r=n(67),o=n(22),a=r("forEach"),l=o("forEach");e.exports=a&&l?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var i=n(186);e.exports=i},function(e,t,n){n(187);var i=n(9);e.exports=i.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(55)})},function(e,t,n){var i=n(189);e.exports=i},function(e,t,n){var i=n(190),r=Array.prototype;e.exports=function(e){var t=e.map;return e===r||e instanceof Array&&t===r.map?i:t}},function(e,t,n){n(191);var i=n(15);e.exports=i("Array").map},function(e,t,n){var i=n(5),r=n(32).map,o=n(56),a=n(22),l=o("map"),u=a("map");i({target:"Array",proto:!0,forced:!l||!u},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(193);e.exports=i},function(e,t,n){var i=n(194),r=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===r||e instanceof String&&t===r.trim?i:t}},function(e,t,n){n(195);var i=n(15);e.exports=i("String").trim},function(e,t,n){var i=n(5),r=n(90).trim;i({target:"String",proto:!0,forced:n(196)("trim")},{trim:function(){return r(this)}})},function(e,t,n){var i=n(11),r=n(68),o="​…᠎";e.exports=function(e){return i(function(){return!!r[e]()||o[e]()!=o||r[e].name!==e})}},function(e,t,n){var i=n(198);e.exports=i},function(e,t,n){n(199),n(61),n(50),n(54);var i=n(9);e.exports=i.Map},function(e,t,n){var i=n(122),r=n(124);e.exports=i("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r)},function(e,t,n){var i=n(11);e.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var i=n(202);e.exports=i},function(e,t,n){var i=n(203),r=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===r||e instanceof Array&&t===r.indexOf?i:t}},function(e,t,n){n(204);var i=n(15);e.exports=i("Array").indexOf},function(e,t,n){var i=n(5),r=n(78).indexOf,o=n(67),a=n(22),l=[].indexOf,u=!!l&&1/[1].indexOf(1,-0)<0,s=o("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:u||!s||!c},{indexOf:function(e){return u?l.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(206);e.exports=i},function(e,t,n){var i=n(207),r=Array.prototype;e.exports=function(e){var t=e.splice;return e===r||e instanceof Array&&t===r.splice?i:t}},function(e,t,n){n(208);var i=n(15);e.exports=i("Array").splice},function(e,t,n){var i=n(5),r=n(79),o=n(62),a=n(35),l=n(31),u=n(88),s=n(69),c=n(56),d=n(22),f=c("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,m=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f||!p},{splice:function(e,t){var n,i,c,d,f,p,_=l(this),y=a(_.length),b=r(e,y),D=arguments.length;if(0===D?n=i=0:1===D?(n=0,i=y-b):(n=D-2,i=m(h(o(t),0),y-b)),y+n-i>g)throw TypeError(v);for(c=u(_,i),d=0;d<i;d++)(f=b+d)in _&&s(c,d,_[f]);if(c.length=i,n<i){for(d=b;d<y-i;d++)p=d+n,(f=d+i)in _?_[p]=_[f]:delete _[p];for(d=y;d>y-i+n;d--)delete _[d-1]}else if(n>i)for(d=y-i;d>b;d--)p=d+n-1,(f=d+i-1)in _?_[p]=_[f]:delete _[p];for(d=0;d<n;d++)_[d+b]=arguments[d+2];return _.length=y-i+n,c}})},function(e,t,n){var i=n(210);e.exports=i},function(e,t,n){var i=n(211),r=Array.prototype;e.exports=function(e){var t=e.filter;return e===r||e instanceof Array&&t===r.filter?i:t}},function(e,t,n){n(212);var i=n(15);e.exports=i("Array").filter},function(e,t,n){var i=n(5),r=n(32).filter,o=n(56),a=n(22),l=o("filter"),u=a("filter");i({target:"Array",proto:!0,forced:!l||!u},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(214);e.exports=i},function(e,t,n){var i=n(215),r=n(217),o=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===o||e instanceof Array&&t===o.includes?i:"string"==typeof e||e===a||e instanceof String&&t===a.includes?r:t}},function(e,t,n){n(216);var i=n(15);e.exports=i("Array").includes},function(e,t,n){var i=n(5),r=n(78).includes,o=n(82);i({target:"Array",proto:!0,forced:!n(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){n(218);var i=n(15);e.exports=i("String").includes},function(e,t,n){var i=n(5),r=n(219),o=n(49);i({target:"String",proto:!0,forced:!n(221)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(220);e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(13),r=n(34),o=n(10)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},function(e,t,n){var i=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){var i=n(223);e.exports=i},function(e,t,n){var i=n(224),r=Function.prototype;e.exports=function(e){var t=e.bind;return e===r||e instanceof Function&&t===r.bind?i:t}},function(e,t,n){n(225);var i=n(15);e.exports=i("Function").bind},function(e,t,n){n(5)({target:"Function",proto:!0},{bind:n(226)})},function(e,t,n){var i=n(41),r=n(13),o=[].slice,a={},l=function(e,t,n){if(!(t in a)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";a[t]=Function("C,a","return new C("+i.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),a=function(){var i=n.concat(o.call(arguments));return this instanceof a?l(t,i.length,i):t.apply(e,i)};return r(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t,n){e.exports=n(228)},function(e,t,n){var i=n(229);e.exports=i},function(e,t,n){n(125),n(50),n(54);var i=n(93);e.exports=i.f("iterator")},function(e,t,n){e.exports=n(231)},function(e,t,n){var i=n(232);n(251),n(252),n(253),n(254),n(255),e.exports=i},function(e,t,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(125),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250);var i=n(9);e.exports=i.Symbol},function(e,t,n){var i=n(5),r=n(11),o=n(55),a=n(13),l=n(31),u=n(35),s=n(69),c=n(88),d=n(56),f=n(10),p=n(86),h=f("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=p>=51||!r(function(){var e=[];return e[h]=!1,e.concat()[0]!==e}),_=d("concat"),y=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};i({target:"Array",proto:!0,forced:!v||!_},{concat:function(e){var t,n,i,r,o,a=l(this),d=c(a,0),f=0;for(t=-1,i=arguments.length;t<i;t++)if(y(o=-1===t?a:arguments[t])){if(f+(r=u(o.length))>m)throw TypeError(g);for(n=0;n<r;n++,f++)n in o&&s(d,f,o[n])}else{if(f>=m)throw TypeError(g);s(d,f++,o)}return d.length=f,d}})},function(e,t,n){var i=n(5),r=n(8),o=n(36),a=n(43),l=n(14),u=n(76),s=n(106),c=n(11),d=n(16),f=n(55),p=n(13),h=n(25),m=n(31),g=n(30),v=n(60),_=n(48),y=n(77),b=n(52),D=n(126),A=n(235),x=n(127),w=n(71),C=n(18),E=n(59),k=n(19),F=n(53),S=n(74),B=n(63),T=n(51),O=n(64),R=n(10),M=n(93),N=n(12),I=n(37),L=n(42),P=n(32).forEach,j=B("hidden"),V="Symbol",z="prototype",H=R("toPrimitive"),U=L.set,W=L.getterFor(V),G=Object[z],$=r.Symbol,Q=o("JSON","stringify"),Y=w.f,q=C.f,K=A.f,X=E.f,J=S("symbols"),Z=S("op-symbols"),ee=S("string-to-symbol-registry"),te=S("symbol-to-string-registry"),ne=S("wks"),ie=r.QObject,re=!ie||!ie[z]||!ie[z].findChild,oe=l&&c(function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=Y(G,t);i&&delete G[t],q(e,t,n),i&&e!==G&&q(G,t,i)}:q,ae=function(e,t){var n=J[e]=y($[z]);return U(n,{type:V,tag:e,description:t}),l||(n.description=t),n},le=s?function(e){return"symbol"==pm(e)}:function(e){return Object(e)instanceof $},ue=function(e,t,n){e===G&&ue(Z,t,n),h(e);var i=v(t,!0);return h(n),d(J,i)?(n.enumerable?(d(e,j)&&e[j][i]&&(e[j][i]=!1),n=y(n,{enumerable:_(0,!1)})):(d(e,j)||q(e,j,_(1,{})),e[j][i]=!0),oe(e,i,n)):q(e,i,n)},se=function(e,t){h(e);var n=g(t),i=b(n).concat(he(n));return P(i,function(t){(!l||de.call(n,t))&&ue(e,t,n[t])}),e},ce=function(e,t){return void 0===t?y(e):se(y(e),t)},de=function(e){var t=v(e,!0),n=X.call(this,t);return!(this===G&&d(J,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,j)&&this[j][t])||n)},fe=function(e,t){var n=g(e),i=v(t,!0);if(n!==G||!d(J,i)||d(Z,i)){var r=Y(n,i);return r&&d(J,i)&&!(d(n,j)&&n[j][i])&&(r.enumerable=!0),r}},pe=function(e){var t=K(g(e)),n=[];return P(t,function(e){!d(J,e)&&!d(T,e)&&n.push(e)}),n},he=function(e){var t=e===G,n=K(t?Z:g(e)),i=[];return P(n,function(e){d(J,e)&&(!t||d(G,e))&&i.push(J[e])}),i};u||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),n=function e(n){this===G&&e.call(Z,n),d(this,j)&&d(this[j],t)&&(this[j][t]=!1),oe(this,t,_(1,n))};return l&&re&&oe(G,t,{configurable:!0,set:n}),ae(t,e)},F($[z],"toString",function(){return W(this).tag}),F($,"withoutSetter",function(e){return ae(O(e),e)}),E.f=de,C.f=ue,w.f=fe,D.f=A.f=pe,x.f=he,M.f=function(e){return ae(R(e),e)},l&&(q($[z],"description",{configurable:!0,get:function(){return W(this).description}}),a||F(G,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:$}),P(b(ne),function(e){N(e)}),i({target:V,stat:!0,forced:!u},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=$(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!le(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!l},{create:ce,defineProperty:ue,defineProperties:se,getOwnPropertyDescriptor:fe}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),i({target:"Object",stat:!0,forced:c(function(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(m(e))}}),Q&&i({target:"JSON",stat:!0,forced:!u||c(function(){var e=$();return"[null]"!=Q([e])||"{}"!=Q({a:e})||"{}"!=Q(Object(e))})},{stringify:function(e,t,n){for(var i,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(i=t,(p(t)||void 0!==e)&&!le(e))return f(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!le(t))return t}),r[1]=t,Q.apply(null,r)}}),$[z][H]||k($[z],H,$[z].valueOf),I($,V),T[j]=!0},function(e,t,n){var i=n(30),r=n(126).f,o={}.toString,a="object"==(("undefined"==typeof window?"undefined":y(window))>"u"?"undefined":pm(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?l(e):r(i(e))}},function(e,t,n){n(12)("asyncIterator")},function(e,t){},function(e,t,n){n(12)("hasInstance")},function(e,t,n){n(12)("isConcatSpreadable")},function(e,t,n){n(12)("match")},function(e,t,n){n(12)("matchAll")},function(e,t,n){n(12)("replace")},function(e,t,n){n(12)("search")},function(e,t,n){n(12)("species")},function(e,t,n){n(12)("split")},function(e,t,n){n(12)("toPrimitive")},function(e,t,n){n(12)("toStringTag")},function(e,t,n){n(12)("unscopables")},function(e,t,n){n(37)(Math,"Math",!0)},function(e,t,n){var i=n(8);n(37)(i.JSON,"JSON",!0)},function(e,t,n){n(12)("asyncDispose")},function(e,t,n){n(12)("dispose")},function(e,t,n){n(12)("observable")},function(e,t,n){n(12)("patternMatch")},function(e,t,n){n(12)("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){var i=n(258);e.exports=i},function(e,t,n){n(259);var i=n(9);e.exports=i.parseInt},function(e,t,n){var i=n(5),r=n(260);i({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){var i=n(8),r=n(90).trim,o=n(68),a=i.parseInt,l=/^[+-]?0[Xx]/,u=8!==a(o+"08")||22!==a(o+"0x16");e.exports=u?function(e,t){var n=r(String(e));return a(n,t>>>0||(l.test(n)?16:10))}:a},function(e,t,n){var i=n(262);e.exports=i},function(e,t,n){var i=n(263),r=Array.prototype;e.exports=function(e){var t=e.slice;return e===r||e instanceof Array&&t===r.slice?i:t}},function(e,t,n){n(264);var i=n(15);e.exports=i("Array").slice},function(e,t,n){var i=n(5),r=n(13),o=n(55),a=n(79),l=n(35),u=n(30),s=n(69),c=n(10),d=n(56),f=n(22),p=d("slice"),h=f("slice",{ACCESSORS:!0,0:0,1:2}),m=c("species"),g=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,i,c,d=u(this),f=l(d.length),p=a(e,f),h=a(void 0===t?f:t,f);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(d,p,h);for(i=new(void 0===n?Array:n)(v(h-p,0)),c=0;p<h;p++,c++)p in d&&s(i,c,d[p]);return i.length=c,i}})},function(e,t,n){n(266);var i=n(9);e.exports=i.setTimeout},function(e,t,n){var i=n(5),r=n(8),o=n(84),a=[].slice,l=function(e){return function(t,n){var i=arguments.length>2,r=i?a.call(arguments,2):void 0;return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};i({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(128));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(272)),u=a.__importDefault(n(273)),s=a.__importDefault(n(129)),c=a.__importDefault(n(274)),d=a.__importDefault(n(275)),f=a.__importDefault(n(276)),p=a.__importDefault(n(130)),h=a.__importDefault(n(277)),m=a.__importDefault(n(278)),g=a.__importDefault(n(279)),v=(0,o.default)({},l.default,u.default,s.default,d.default,c.default,f.default,p.default,h.default,m.default,g.default,{linkCheck:function(e,t){return!0}});t.default=v},function(e,t,n){var i=n(269);e.exports=i},function(e,t,n){n(270);var i=n(9);e.exports=i.Object.assign},function(e,t,n){var i=n(5),r=n(271);i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){var i=n(14),r=n(11),o=n(52),a=n(127),l=n(59),u=n(31),s=n(72),c=Object.assign,d=Object.defineProperty;e.exports=!c||r(function(){if(i&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||o(c({},t)).join("")!=r})?function(e,t){for(var n=u(e),r=arguments.length,c=1,d=a.f,f=l.f;r>c;)for(var p,h=s(arguments[c++]),m=d?o(h).concat(d(h)):o(h),g=m.length,v=0;g>v;)p=m[v++],(!i||f.call(h,p))&&(n[p]=h[p]);return n}:c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(7);function r(e,t,n){window.alert(e)}t.default={onchangeTimeout:200,onchange:null,onfocus:i.EMPTY_FN,onblur:i.EMPTY_FN,onCatalogChange:null,customAlert:r}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={styleWithCSS:!1}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(7);t.default={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:i.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"redo","撤销":"undo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(6);function r(){return!(!i.UA.isIE()&&!i.UA.isOldEdge)}t.default={compatibleMode:r,historyMaxSize:30}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(7);t.default={onlineVideoCheck:function(e){return!0},onlineVideoCallback:i.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),l=n(6),u=n(7),s=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),i=this.getSelectionContainerElem(n);if(null!=i&&i.length&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")){var r=this.editor,a=r.$textElem;if(a.isContain(i)){var l;if(a.elems[0]===i.elems[0]&&(0,o.default)(l=a.html()).call(l)===u.EMPTY_P){var s=a.children(),c=null==s?void 0:s.last();r.selection.createRangeByElem(c,!0,!0),r.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.commonAncestorContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.startContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.endContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{l.UA.isWebkit()?(t.cmd.do("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=a.default("<strong>&#8203;</strong>"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(i){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null==n||n.removeAllRanges();var i=document.createRange();i.setStart(e,0),i.setEnd(t,t.childNodes.length||1),this.saveRange(i),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var i=e.elems[0],r=document.createRange();n?r.selectNodeContents(i):r.selectNode(i),null!=t&&(r.collapse(t),t||(this.saveRange(r),this.editor.selection.moveCursor(i))),this.saveRange(r)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),i=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(a.default(n),a.default(i))},e.prototype.moveCursor=function(e,t){var n,i=this.getRange(),r=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(l.UA.isFirefox||l.UA.isIE())&&0!==r&&(3===e.nodeType||"BR"===e.childNodes[r-1].nodeName)&&(r-=1);var o=null!=t?t:r;!i||e&&(i.setStart(e,o),i.setEnd(e,o),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){var n=[],i=!0;try{for(var r=e,o=this.editor.$textElem;i;){var l=null==r?void 0:r.getNodeTop(this.editor);"BODY"===l.getNodeName()&&(i=!1),l.length>0&&(n.push(a.default(r)),(null==t?void 0:t.equal(l))||o.equal(l)?i=!1:r=l.getNextSibling())}}catch(u){i=!1}return n},e.prototype.setRangeToElem=function(e){var t=this.getRange();null==t||t.setStart(e,0),null==t||t.setEnd(e,0)},e}();t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(3)),r=function(){function e(e){this.editor=e}return e.prototype.do=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var i=n.selection;if(i.getRange()){switch(i.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t)}n.menus.changeActive(),i.saveRange(),i.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),i.default(e).elems.length>0)n.insertNode(i.default(e).elems[0]);else{var r=document.createElement("p");r.appendChild(document.createTextNode(e)),n.insertNode(r)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor.selection.getRange();null!=t&&t.insertNode&&(t.deleteContents(),t.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(29)),a=i(n(4)),l=i(n(17)),u=i(n(27)),s=i(n(46));(0,r.default)(t,"__esModule",{value:!0});var c=n(2),d=c.__importDefault(n(3)),f=c.__importDefault(n(287)),p=n(6),h=c.__importDefault(n(299)),m=c.__importDefault(n(300)),g=n(7),v=function(){function e(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),f.default(this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,o.default)(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),!this.editor.isComposing&&(!t||" "===t)&&n.show()},e.prototype.clear=function(){this.html(g.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.html(),r=(i=(i=(i=(i=i.replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(g.EMPTY_P_LAST_REGEX,"")).replace(g.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi);return null!==r&&(0,a.default)(r).call(r,function(e){e.match(/\/>/)||(i=i.replace(e,e.substring(0,e.length-1)+"/>"))}),i}""===(e=(0,l.default)(e).call(e))&&(e=g.EMPTY_P),0!==(0,u.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),n.html(e),t.initSelection()},e.prototype.setJSON=function(e){var t=m.default(e).children(),n=this.editor.$textElem;!t||n.replaceChildAll(t)},e.prototype.getJSON=function(){var e=this.editor.$textElem;return h.default(e)},e.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.text();return i=i.replace(/\u200b/gm,"")}n.text("<p>"+e+"</p>"),t.initSelection()},e.prototype.append=function(e){var t=this.editor;0!==(0,u.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),this.html(this.html()+e),t.initSelection()},e.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=d.default(document);function i(){e.selection.saveRange(),e.menus.changeActive()}function r(){i(),t.off("click",r)}function o(){i(),n.off("mouseup",o)}function a(){n.on("mouseup",o),t.off("mouseleave",a)}t.on("keyup",i),t.on("click",r),t.on("mousedown",function(){t.on("mouseleave",a)}),t.on("mouseup",function(n){t.off("mouseleave",a),(0,s.default)(function(){null!==e.selection.getRange()&&i()},0)})},e.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function i(e){e.preventDefault()}t.on("click",function(e){var t=n.clickEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("keyup",function(e){if(13===e.keyCode){var t=n.enterUpEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keyup",function(e){var t=n.keyupEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("keydown",function(e){var t=n.keydownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("keyup",function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteUpEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteDownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("paste",function(e){if(!p.UA.isIE()){e.preventDefault();var t=n.pasteEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())}),t.on("keyup",function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabUpEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("keydown",function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabDownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("scroll",p.throttle(function(e){var t=n.textScrollEvents;(0,a.default)(t).call(t,function(t){return t(e)})},100)),d.default(document).on("dragleave",i).on("drop",i).on("dragenter",i).on("dragover",i),e.beforeDestroy(function(){d.default(document).off("dragleave",i).off("drop",i).off("dragenter",i).off("dragover",i)}),t.on("drop",function(e){e.preventDefault();var t=n.dropEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),t.on("click",function(e){var t=null,i=e.target,r=d.default(i);if("A"===r.getNodeName())t=r;else{var o=r.parentUntil("a");null!=o&&(t=o)}if(t){var l=n.linkClickEvents;(0,a.default)(l).call(l,function(e){return e(t)})}}),t.on("click",function(e){var t=null,i=e.target,r=d.default(i);if("IMG"===r.getNodeName()&&!r.elems[0].getAttribute("data-emoji")&&(e.stopPropagation(),t=r),t){var o=n.imgClickEvents;(0,a.default)(o).call(o,function(e){return e(t)})}}),t.on("click",function(e){var t=null,i=e.target,r=d.default(i);if("PRE"===r.getNodeName())t=r;else{var o=r.parentUntil("pre");null!==o&&(t=o)}if(t){var l=n.codeClickEvents;(0,a.default)(l).call(l,function(e){return e(t)})}}),t.on("click",function(t){var i=null,r=t.target,o=d.default(r);if("HR"===o.getNodeName()&&(i=o),i){e.selection.createRangeByElem(i),e.selection.restoreSelection();var l=n.splitLineEvents;(0,a.default)(l).call(l,function(e){return e(i)})}}),e.$toolbarElem.on("click",function(e){var t=n.toolbarClickEvents;(0,a.default)(t).call(t,function(t){return t(e)})}),e.$textContainerElem.on("mousedown",function(e){var t=e.target;if(d.default(t).hasClass("w-e-img-drag-rb")){var i=n.imgDragBarMouseDownEvents;(0,a.default)(i).call(i,function(e){return e()})}}),t.on("click",function(t){var i=null,r=t.target;if(i=d.default(r).parentUntilEditor("TABLE",e,r)){var o=n.tableClickEvents;(0,a.default)(o).call(o,function(e){return e(i,t)})}}),t.on("keydown",function(e){if(13===e.keyCode){var t=n.enterDownEvents;(0,a.default)(t).call(t,function(t){return t(e)})}}),t.on("click",function(e){var t=null,i=e.target,r=d.default(i);if("VIDEO"===r.getNodeName()&&(e.stopPropagation(),t=r),t){var o=n.videoClickEvents;(0,a.default)(o).call(o,function(e){return e(t)})}})},e}();t.default=v},function(e,t,n){var i=n(284);e.exports=i},function(e,t,n){var i=n(285),r=Array.prototype;e.exports=function(e){var t=e.find;return e===r||e instanceof Array&&t===r.find?i:t}},function(e,t,n){n(286);var i=n(15);e.exports=i("Array").find},function(e,t,n){var i=n(5),r=n(32).find,o=n(82),a=n(22),l="find",u=!0,s=a(l);l in[]&&Array(1)[l](function(){u=!1}),i({target:"Array",proto:!0,forced:u||!s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(l)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(288)),o=i.__importStar(n(289)),a=i.__importDefault(n(290)),l=i.__importDefault(n(291)),u=i.__importDefault(n(298));function s(e){var t=e.editor,n=e.eventHooks;r.default(t,n.enterUpEvents,n.enterDownEvents),o.default(t,n.deleteUpEvents,n.deleteDownEvents),o.cutToKeepP(t,n.keyupEvents),a.default(t,n.tabDownEvents),l.default(t,n.pasteEvents),u.default(t,n.imgClickEvents)}t.default=s},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=n(7),u=a.__importDefault(n(3));function s(e,t,n){function i(t){var n,i=u.default(l.EMPTY_P);i.insertBefore(t),(0,o.default)(n=t.html()).call(n,"<img")>=0?i.remove():(e.selection.createRangeByElem(i,!0,!0),e.selection.restoreSelection(),t.remove())}function r(){var t=e.$textElem,n=e.selection.getSelectionContainerElem(),r=n.parent();"<code><br></code>"===r.html()||"FONT"===n.getNodeName()&&""===n.text()&&"monospace"===n.attr("face")?i(r):r.equal(t)&&("P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||i(n))}function a(t){var n;e.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0)),e.selection.getSelectionContainerElem().id===e.textElemId&&(t.preventDefault(),e.cmd.do("insertHTML","<p><br></p>"))}t.push(r),n.push(a)}t.default=s},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(17)),a=i(n(28));(0,r.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var l=n(2),u=n(7),s=l.__importDefault(n(3));function c(e,t,n){function i(){var t=e.$textElem,n=e.$textElem.html(),i=e.$textElem.text(),r=(0,o.default)(n).call(n),l=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',u.EMPTY_P];if(/^\s*$/.test(i)&&(!r||(0,a.default)(l).call(l,r))){t.html(u.EMPTY_P);var s=t.getNode();e.selection.createRangeByElems(s.childNodes[0],s.childNodes[0]);var c=e.selection.getSelectionContainerElem();e.selection.restoreSelection(),e.selection.moveCursor(c.getNode(),0)}}function r(t){var n,i=e.$textElem;(0,o.default)(n=i.html().toLowerCase()).call(n)!==u.EMPTY_P||t.preventDefault()}t.push(i),n.push(r)}function d(e,t){function n(t){var n;if(88===t.keyCode){var i=e.$textElem,r=(0,o.default)(n=i.html().toLowerCase()).call(n);if(!r||"<br>"===r){var a=s.default(u.EMPTY_P);i.html(" "),i.append(a),e.selection.createRangeByElem(a,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(a.getNode(),0)}}}t.push(n)}t.cutToKeepP=d,t.default=c},function(e,t,n){function i(e,t){function n(){if(e.cmd.queryCommandSupported("insertHTML")){var t=e.selection.getSelectionContainerElem();if(t){var n=t.parent(),i=t.getNodeName(),r=n.getNodeName();"CODE"==i||"CODE"===r||"PRE"===r||/hljs/.test(r)?e.cmd.do("insertHTML",e.config.languageTab):e.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}t.push(n)}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(17)),a=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var l=n(131),u=n(6),s=n(7);function c(e){var t,n=(0,o.default)(t=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(t),i=document.createElement("div");return i.innerHTML=n,i.innerHTML.replace(/<p><\/p>/gim,"")}function d(e){return e.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"")}function f(e){var t;if(""===e)return!1;var n=document.createElement("div");return n.innerHTML=e,"P"===(null===(t=n.firstChild)||void 0===t?void 0:t.nodeName)}function p(e){if(null==e||!e.length)return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML}function h(e,t){function n(t){var n=e.config,i=n.pasteFilterStyle,r=n.pasteIgnoreImg,o=n.pasteTextHandle,h=l.getPasteHtml(t,i,r),m=l.getPasteText(t);m=m.replace(/\n/gm,"<br>");var g=e.selection.getSelectionContainerElem();if(g){var v=null==g?void 0:g.getNodeName(),_=null==g?void 0:g.getNodeTop(e),y="";if(_.elems[0]&&(y=null==_?void 0:_.getNodeName()),"CODE"===v||"PRE"===y)return o&&u.isFunction(o)&&(m=""+(o(m)||"")),void e.cmd.do("insertHTML",d(m));if(s.urlRegex.test(m)&&i){o&&u.isFunction(o)&&(m=""+(o(m)||""));var b=m.replace(s.urlRegex,function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"}),D=e.selection.getRange(),A=document.createElement("div"),x=document.createDocumentFragment();if(A.innerHTML=b,null==D)return;for(;A.childNodes.length;)x.append(A.childNodes[0]);var w=x.querySelectorAll("a");return(0,a.default)(w).call(w,function(e){e.innerText=e.href}),D.insertNode&&(D.deleteContents(),D.insertNode(x)),void e.selection.clearWindowSelectionRange()}if(h)try{if(o&&u.isFunction(o)&&(h=""+(o(h)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(h)&&i)e.cmd.do("insertHTML",""+c(m));else{var C=c(h);if(f(C)){var E=e.$textElem;if(e.cmd.do("insertHTML",C),E.equal(g))return void e.selection.createEmptyRange();p(_)&&_.remove()}else e.cmd.do("insertHTML",C)}}catch(k){o&&u.isFunction(o)&&(m=""+(o(m)||"")),e.cmd.do("insertHTML",""+c(m))}}}t.push(n)}t.default=h},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(17)),a=i(n(4)),l=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var u=n(2),s=n(293),c=u.__importDefault(n(297));function d(e){var t=/<span>.*?<\/span>/gi,n=/<span>(.*?)<\/span>/;return e.replace(t,function(e){var t=e.match(n);return null==t?"":t[1]})}function f(e,t){var n;return e=(0,o.default)(n=e.toLowerCase()).call(n),!!(s.IGNORE_TAGS.has(e)||t&&"img"===e)}function p(e,t){var n="";n="<"+e;var i=[];return(0,a.default)(t).call(t,function(e){i.push(e.name+'="'+e.value+'"')}),i.length>0&&(n=n+" "+i.join(" ")),n=n+(s.EMPTY_TAGS.has(e)?"/":"")+">"}function h(e){return"</"+e+">"}function m(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=[],r="";function u(e){(e=(0,o.default)(e).call(e))&&(s.EMPTY_TAGS.has(e)||(r=e))}function m(){r=""}(new c.default).parse(e,{startElement:function(e,r){if(u(e),!f(e,n)){var o=s.NECESSARY_ATTRS.get(e)||[],c=[];(0,a.default)(r).call(r,function(e){var n=e.name;"style"!==n?!1!==(0,l.default)(o).call(o,n)&&c.push(e):t||c.push(e)});var d=p(e,c);i.push(d)}},characters:function(e){!e||f(r,n)||i.push(e)},endElement:function(e){if(!f(e,n)){var t=h(e);i.push(t),m()}},comment:function(e){u(e)}});var g=i.join("");return g=d(g)}t.default=m},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(132)),a=i(n(121));(0,r.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new o.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new a.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new o.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new o.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){var i=n(295);e.exports=i},function(e,t,n){n(296),n(61),n(50),n(54);var i=n(9);e.exports=i.Set},function(e,t,n){var i=n(122),r=n(124);e.exports=i("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);for(var n,i,r,o=!1,a=this;e.length>0;)"\x3c!--"==e.substring(0,4)?-1!=(r=e.indexOf("--\x3e"))?(this.contentHandler.comment(e.substring(4,r)),e=e.substring(r+3),o=!1):o=!0:"</"==e.substring(0,2)?this.endTagRe.test(e)?(n=RegExp.lastMatch,i=RegExp.rightContext,n.replace(this.endTagRe,function(){return a.parseEndTag.apply(a,arguments)}),e=i,o=!1):o=!0:"<"==e.charAt(0)&&(this.startTagRe.test(e)?(n=RegExp.lastMatch,i=RegExp.rightContext,n.replace(this.startTagRe,function(){return a.parseStartTag.apply(a,arguments)}),e=i,o=!1):o=!0),o&&(-1==(r=e.indexOf("<"))?(this.contentHandler.characters(e),e=""):(this.contentHandler.characters(e.substring(0,r)),e=e.substring(r))),o=!0},parseStartTag:function(e,t,n){var i=this.parseAttributes(t,n);this.contentHandler.startElement(t,i)},parseEndTag:function(e,t){this.contentHandler.endElement(t)},parseAttributes:function(e,t){var n=this,i=[];return t.replace(this.attrRe,function(t,r,o,a,l,u,s,c){i.push(n.parseAttribute(e,t,r,o,a,l,u,s,c))}),i},parseAttribute:function(e,t,n){var i="";return arguments[7]?i=arguments[8]:arguments[5]?i=arguments[6]:arguments[3]&&(i=arguments[4]),{name:n,value:i||arguments[3]?i:null}}},e.exports=n},function(e,t,n){function i(e,t){function n(t){e.selection.createRangeByElem(t),e.selection.restoreSelection()}t.push(n)}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3));function s(e){var t=[],n=e.childNodes()||[];return(0,o.default)(n).call(n,function(e){var n,i=e.nodeType;if(3===i&&(n=e.textContent||"",n=l.replaceHtmlSymbol(n)),1===i){(n={}).tag=e.nodeName.toLowerCase();for(var r=[],o=e.attributes,a=o.length||0,c=0;c<a;c++){var d=o[c];r.push({name:d.name,value:d.value})}n.attrs=r,n.children=s(u.default(e))}n&&t.push(n)}),t}t.default=s},function(e,t,n){var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(4));(0,o.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3));function u(e,t){void 0===t&&(t=document.createElement("div"));var n=t;return(0,a.default)(e).call(e,function(e){var t,i;"string"==typeof e&&(t=document.createTextNode(e)),"object"===(0,r.default)(e)&&(t=document.createElement(e.tag),(0,a.default)(i=e.attrs).call(i,function(e){l.default(t).attr(e.name,e.value)}),e.children&&e.children.length>0&&u(e.children,t.getRootNode())),t&&n.appendChild(t)}),l.default(n)}t.default=u},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(89)),a=i(n(70)),l=i(n(28)),u=i(n(302)),s=i(n(4)),c=i(n(94)),d=i(n(133)),f=i(n(46)),p=i(n(57));(0,r.default)(t,"__esModule",{value:!0});var h=n(2),m=h.__importDefault(n(87)),g=h.__importDefault(n(314)),v=h.__importDefault(n(3)),_=function(){function e(e){this.editor=e,this.menuList=[],this.constructorList=g.default}return e.prototype.extend=function(e,t){!t||"function"!=typeof t||(this.constructorList[e]=t)},e.prototype.init=function(){var e,t,n=this,i=this.editor.config,r=i.excludeMenus;!1===(0,o.default)(r)&&(r=[]),i.menus=(0,a.default)(e=i.menus).call(e,function(e){return!1===(0,l.default)(r).call(r,e)});var d=(0,u.default)(m.default.globalCustomMenuConstructorList);d=(0,a.default)(d).call(d,function(e){return(0,l.default)(r).call(r,e)}),(0,s.default)(d).call(d,function(e){delete m.default.globalCustomMenuConstructorList[e]}),(0,s.default)(t=i.menus).call(t,function(e){var t=n.constructorList[e];n._initMenuList(e,t)});for(var f=0,p=(0,c.default)(m.default.globalCustomMenuConstructorList);f<p.length;f++){var h=p[f],g=h[0],v=h[1];this._initMenuList(g,v)}this._addToToolbar(),i.showMenuTooltips&&this._bindMenuTooltips()},e.prototype._initMenuList=function(e,t){var n;if(null!=t&&"function"==typeof t)if((0,d.default)(n=this.menuList).call(n,function(t){return t.key===e}));else{var i=new t(this.editor);i.key=e,this.menuList.push(i)}},e.prototype._bindMenuTooltips=function(){var e=this.editor,t=e.$toolbarElem,n=e.config.menuTooltipPosition,i=v.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+n+'">\n <div class="w-e-menu-tooltip-item-wrapper">\n <div></div>\n </div>\n </div>');i.css("visibility","hidden"),t.append(i),i.css("z-index",e.zIndex.get("tooltip"));var r=0;function o(){r&&clearTimeout(r)}function a(){o(),i.css("visibility","hidden")}t.on("mouseover",function(l){var u,s,c=l.target,d=v.default(c);if(d.isContain(t))a();else{if(null!=d.parentUntil(".w-e-droplist"))a();else if(d.attr("data-title"))u=d.attr("data-title"),s=d;else{var p=d.parentUntil(".w-e-menu");null!=p&&(u=p.attr("data-title"),s=p)}if(u&&s){o();var h=s.getOffsetData();i.text(e.i18next.t("menus.title."+u));var m=i.getOffsetData(),g=h.left+h.width/2-m.width/2;i.css("left",g+"px"),"up"===n?i.css("top",h.top-m.height-8+"px"):"down"===n&&i.css("top",h.top+h.height+8+"px"),r=(0,f.default)(function(){i.css("visibility","visible")},200)}else a()}}).on("mouseleave",function(){a()})},e.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,s.default)(e=this.menuList).call(e,function(e){var n=e.$elem;n&&t.append(n)})},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,i=t.length;n<i;n++)if(t[n].key===e)return t[n];return t[0]},e.prototype.changeActive=function(){var e;(0,s.default)(e=this.menuList).call(e,function(e){var t;(0,f.default)((0,p.default)(t=e.tryChangeActive).call(t,e),100)})},e}();t.default=_},function(e,t,n){e.exports=n(303)},function(e,t,n){var i=n(304);e.exports=i},function(e,t,n){n(305);var i=n(9);e.exports=i.Object.keys},function(e,t,n){var i=n(5),r=n(31),o=n(52);i({target:"Object",stat:!0,forced:n(11)(function(){o(1)})},{keys:function(e){return o(r(e))}})},function(e,t,n){var i=n(307);e.exports=i},function(e,t,n){n(308);var i=n(9);e.exports=i.Object.entries},function(e,t,n){var i=n(5),r=n(309).entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},function(e,t,n){var i=n(14),r=n(52),o=n(30),a=n(59).f,l=function(e){return function(t){for(var n,l=o(t),u=r(l),s=u.length,c=0,d=[];s>c;)n=u[c++],(!i||a.call(l,n))&&d.push(e?[n,l[n]]:l[n]);return d}};e.exports={entries:l(!0),values:l(!1)}},function(e,t,n){var i=n(311);e.exports=i},function(e,t,n){var i=n(312),r=Array.prototype;e.exports=function(e){var t=e.some;return e===r||e instanceof Array&&t===r.some?i:t}},function(e,t,n){n(313);var i=n(15);e.exports=i("Array").some},function(e,t,n){var i=n(5),r=n(32).some,o=n(67),a=n(22),l=o("some"),u=a("some");i({target:"Array",proto:!0,forced:!l||!u},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(315)),o=i.__importDefault(n(316)),a=i.__importDefault(n(321)),l=i.__importDefault(n(326)),u=i.__importDefault(n(327)),s=i.__importDefault(n(328)),c=i.__importDefault(n(329)),d=i.__importDefault(n(331)),f=i.__importDefault(n(333)),p=i.__importDefault(n(334)),h=i.__importDefault(n(337)),m=i.__importDefault(n(338)),g=i.__importDefault(n(339)),v=i.__importDefault(n(350)),_=i.__importDefault(n(365)),y=i.__importDefault(n(369)),b=i.__importDefault(n(137)),D=i.__importDefault(n(378)),A=i.__importDefault(n(380)),x=i.__importDefault(n(381)),w=i.__importDefault(n(382)),C=i.__importDefault(n(401)),E=i.__importDefault(n(406)),k=i.__importDefault(n(409));t.default={bold:r.default,head:o.default,italic:l.default,link:a.default,underline:u.default,strikeThrough:s.default,fontName:c.default,fontSize:d.default,justify:f.default,quote:p.default,backColor:h.default,foreColor:m.default,video:g.default,image:v.default,indent:_.default,emoticon:y.default,list:b.default,lineHeight:D.default,undo:A.default,redo:x.default,table:w.default,code:C.default,splitLine:E.default,todo:k.default}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="加粗">\n <i class="w-e-icon-bold"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(27)),a=i(n(29)),l=i(n(4)),u=i(n(317)),s=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var c=n(2),d=c.__importDefault(n(24)),f=c.__importDefault(n(3)),p=n(6),h=n(7),m=function(e){function t(t){var n=this,i=f.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),r={width:100,title:"设置标题",type:"list",list:[{$elem:f.default("<h1>H1</h1>"),value:"<h1>"},{$elem:f.default("<h2>H2</h2>"),value:"<h2>"},{$elem:f.default("<h3>H3</h3>"),value:"<h3>"},{$elem:f.default("<h4>H4</h4>"),value:"<h4>"},{$elem:f.default("<h5>H5</h5>"),value:"<h5>"},{$elem:f.default("<p>"+t.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this,t.config.onCatalogChange&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return c.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var i;if((0,o.default)(i=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(i,f.default(n).getNodeName())>-1)return;t.cmd.do("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=p.getRandomCode();f.default(e).attr("id",t)},t.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push(function(){e.getCatalogs()})},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,i=(0,a.default)(t).call(t,"h1,h2,h3,h4,h5"),r=[];(0,l.default)(i).call(i,function(e,t){var n=f.default(e),i=n.attr("id"),o=n.getNodeName(),a=n.text();i||(i=p.getRandomCode(),n.attr("id",i)),a&&r.push({tag:o,id:i,text:a})}),(0,u.default)(this.oldCatalogs)!==(0,u.default)(r)&&(this.oldCatalogs=r,n&&n(r))},t.prototype.setMultilineHead=function(e){var t,n,i=this,r=this.editor,o=r.selection,a=null===(t=o.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],u=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],s=f.default(o.getSelectionStartElem()),c=f.default(o.getSelectionEndElem());c.elems[0].outerHTML===f.default(h.EMPTY_P).elems[0].outerHTML&&!c.elems[0].nextSibling&&(c=c.prev());var d=[];d.push(s.getNodeTop(r));var p=[],m=null===(n=o.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null==m||(0,l.default)(m).call(m,function(e,t){e===d[0].getNode()&&p.push(t),e===c.getNodeTop(r).getNode()&&p.push(t)});for(var g=0;d[g].getNode()!==c.getNodeTop(r).getNode();){if(!d[g].elems[0])return;var v=f.default(d[g].next().getNode());d.push(v),g++}null==d||(0,l.default)(d).call(d,function(t,n){if(!i.hasTag(t,u)){var r=f.default(e),o=t.parent().getNode();r.html(""+t.html()),o.insertBefore(r.getNode(),t.getNode()),t.remove()}}),o.createRangeByElems(a.children[p[0]],a.children[p[1]])},t.prototype.hasTag=function(e,t){var n,i=this;if(!e)return!1;if((0,s.default)(t).call(t,null==e?void 0:e.getNodeName()))return!0;var r=!1;return null===(n=e.children())||void 0===n||(0,l.default)(n).call(n,function(e){r=i.hasTag(f.default(e),t)}),r},t.prototype.tryChangeActive=function(){var e=/^h/i,t=this.editor.cmd.queryCommandValue("formatBlock");e.test(t)?this.active():this.unActive()},t}(d.default);t.default=m},function(e,t,n){e.exports=n(318)},function(e,t,n){var i=n(319);e.exports=i},function(e,t,n){n(320);var i=n(9);i.JSON||(i.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return i.JSON.stringify.apply(null,arguments)}},function(e,t,n){var i=n(5),r=n(36),o=n(11),a=r("JSON","stringify"),l=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,s=/^[\uDC00-\uDFFF]$/,c=function(e,t,n){var i=n.charAt(t-1),r=n.charAt(t+1);return u.test(e)&&!s.test(r)||s.test(e)&&!u.test(i)?"\\u"+e.charCodeAt(0).toString(16):e},d=o(function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")});a&&i({target:"JSON",stat:!0,forced:d},{stringify:function(e,t,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(l,c):i}})},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(38)),u=a.__importDefault(n(3)),s=a.__importDefault(n(322)),c=a.__importStar(n(96)),d=a.__importDefault(n(33)),f=a.__importDefault(n(324)),p=n(7),h=function(e){function t(t){var n=this,i=u.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return n=e.call(this,i,t)||this,f.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),i=t.$textElem,r=i.html();if((0,o.default)(r).call(r)===p.EMPTY_P){var a=i.children();t.selection.createRangeByElem(a,!0,!0),n=t.selection.getSelectionContainerElem()}if(!n||!t.$textElem.equal(n))if(this.isActive){var l="",s="";if(!(e=t.selection.getSelectionContainerElem()))return;if("A"!==e.getNodeName()){var d=c.getParentNodeA(e);e=u.default(d)}l=e.elems[0].innerText,s=e.attr("href"),this.createPanel(l,s)}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=s.default(this.editor,e,t);new d.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()},t}(l.default);t.default=h},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(28)),a=i(n(17)),l=i(n(29));(0,r.default)(t,"__esModule",{value:!0});var u=n(2),s=n(6),c=u.__importDefault(n(3)),d=u.__importStar(n(96)),f=n(323);function p(e,t,n){var i,r=s.getRandom("input-link"),u=s.getRandom("input-text"),p=s.getRandom("btn-ok"),h=s.getRandom("btn-del"),m=d.default(e)?"inline-block":"none";function g(){if(d.default(e)){var t=e.selection.getSelectionContainerElem();!t||(e.selection.createRangeByElem(t),e.selection.restoreSelection(),i=t)}}function v(t,n){var i=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),r=c.default('<a target="_blank">'+i+"</a>"),o=r.elems[0];o.innerText=t,o.href=n,d.default(e)&&g(),e.cmd.do("insertElem",r)}function _(){if(d.default(e))if(g(),"A"===i.getNodeName()){var t,n=i.elems[0],r=n.parentElement;r&&(0,o.default)(t=d.EXTRA_TAG).call(t,r.nodeName)?r.innerHTML=n.innerHTML:e.cmd.do("insertHTML","<span>"+n.innerHTML+"</span>")}else{var a=d.getParentNodeA(i).innerHTML;e.cmd.do("insertHTML","<span>"+a+"</span>")}}function y(t,n){var i=e.config.linkCheck(t,n);if(void 0!==i){if(!0===i)return!0;e.config.customAlert(i,"warning")}return!1}return{width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n <input\n id="'+u+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n </td>\n <input\n id="'+r+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("如")+' https://..."/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+p+'" class="right">\n '+e.i18next.t("插入")+'\n </button>\n <button type="button" id="'+h+'" class="gray right" style="display:'+m+'">\n '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+p,type:"click",fn:function(){var t,n,i,l,s,p=e.selection.getSelectionContainerElem(),h=null==p?void 0:p.elems[0];e.selection.restoreSelection();var m=e.selection.getSelectionRangeTopNodes()[0].getNode(),g=window.getSelection(),_=c.default("#"+r),b=c.default("#"+u),D=(0,a.default)(t=_.val()).call(t),A=(0,a.default)(n=b.val()).call(n),x="";g&&(null==g||!g.isCollapsed)&&(x=null===(l=f.insertHtml(g,m))||void 0===l?void 0:(0,a.default)(l).call(l));var w=null==x?void 0:x.replace(/<.*?>/g,""),C=null!==(s=null==w?void 0:w.length)&&void 0!==s?s:0;if(C<=A.length){var E=A.substring(0,C),k=A.substring(C);w===E&&(A=w+k)}if(D&&(A||(A=D),y(A,D))){if("A"===(null==h?void 0:h.nodeName))return h.setAttribute("href",D),h.innerText=A,!0;if("A"!==(null==h?void 0:h.nodeName)&&(0,o.default)(i=d.EXTRA_TAG).call(i,h.nodeName)){var F=d.getParentNodeA(p);if(F)return F.setAttribute("href",D),h.innerText=A,!0}return v(A,D),!0}},bindEnter:!0},{selector:"#"+h,type:"click",fn:function(){return _(),!0}}]}],setLinkValue:function(e,i){var o="",a="";"text"===i&&(o="#"+u,a=t),"link"===i&&(o="#"+r,a=n),(0,l.default)(e).call(e,o).elems[0].value=a}}}t.default=p},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));function a(e,t){var n=e,i=e;do{if(n.textContent===t)break;i=n,n.parentNode&&(n=null==n?void 0:n.parentNode)}while("P"!==(null==n?void 0:n.nodeName));return i}function l(e,t){var n=e.nodeName,i="";if(3===e.nodeType||/^(h|H)[1-6]$/.test(n))return t;if(1===e.nodeType){var r=e.getAttribute("style"),o=e.getAttribute("face"),a=e.getAttribute("color");r&&(i=i+' style="'+r+'"'),o&&(i=i+' face="'+o+'"'),a&&(i=i+' color="'+a+'"')}return"<"+(n=n.toLowerCase())+i+">"+t+"</"+n+">"}function u(e,t,n,i){var r,o=null===(r=t.textContent)||void 0===r?void 0:r.substring(n,i),a=t,u="";do{o=u=l(a,null!=o?o:""),a=null==a?void 0:a.parentElement}while(a&&a.textContent!==e);return u}function s(e,t){var n,i,r,o,s,f=e.anchorNode,p=e.focusNode,h=e.anchorOffset,m=e.focusOffset,g=null!==(n=t.textContent)&&void 0!==n?n:"",v=c(t),_="",y="",b="",D=f,A=p,x=f;if(null!=f&&f.isEqualNode(null!=p?p:null)){var w=u(g,f,h,m);return w=d(v,w)}for(f&&(_=u(g,f,null!=h?h:0)),p&&(b=u(g,p,0,m)),f&&(D=a(f,g)),p&&(A=a(p,g)),x=null!==(i=null==D?void 0:D.nextSibling)&&void 0!==i?i:f;null==x||!x.isEqualNode(null!=A?A:null);){if("#text"===(null==x?void 0:x.nodeName))y+=null==x?void 0:x.textContent;else{var C=null===(o=null===(r=null==x?void 0:x.firstChild)||void 0===r?void 0:r.parentElement)||void 0===o?void 0:o.innerHTML;x&&(y+=l(x,null!=C?C:""))}var E=null!==(s=null==x?void 0:x.nextSibling)&&void 0!==s?s:x;if(E===x)break;x=E}return d(v,""+_+y+b)}function c(e){for(var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",i=[];(null==e?void 0:e.textContent)===n;)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&i.push(e),e=e.childNodes[0];return i}function d(e,t){return(0,o.default)(e).call(e,function(e){t=l(e,t)}),t}(0,r.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=a,t.makeHtmlString=l,t.createPartHtml=u,t.insertHtml=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(325));function r(e){i.default(e)}t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(39)),s=n(96);function c(e){var t;function n(n){var i=[{$elem:l.default("<span>"+e.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("href");return window.open(n,"_target"),!0}},{$elem:l.default("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){var n,i;e.selection.createRangeByElem(t),e.selection.restoreSelection();var r=t.childNodes();if("IMG"===(null==r?void 0:r.getNodeName())){var a=null===(i=null===(n=e.selection.getSelectionContainerElem())||void 0===n?void 0:n.children())||void 0===i?void 0:i.elems[0].children[0];e.cmd.do("insertHTML","<img \n src="+(null==a?void 0:a.getAttribute("src"))+" \n style="+(null==a?void 0:a.getAttribute("style"))+">")}else{var l,u=t.elems[0],c=u.innerHTML,d=u.parentElement;d&&(0,o.default)(l=s.EXTRA_TAG).call(l,d.nodeName)?d.innerHTML=c:e.cmd.do("insertHTML","<span>"+c+"</span>")}return!0}}];(t=new u.default(e,n,i)).create()}function i(){t&&(t.remove(),t=null)}return{showLinkTooltip:n,hideLinkTooltip:i}}function d(e){var t=c(e),n=t.showLinkTooltip,i=t.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t.default=d},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="斜体">\n <i class="w-e-icon-italic"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="下划线">\n <i class="w-e-icon-underline"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="删除线">\n <i class="w-e-icon-strikethrough"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},t}(r.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(24)),o=i.__importDefault(n(3)),a=i.__importDefault(n(330)),l=function(e){function t(t){var n=this,i=o.default('<div class="w-e-menu" data-title="字体">\n <i class="w-e-icon-font"></i>\n </div>'),r={width:100,title:"设置字体",type:"list",list:new a.default(t.config.fontNames).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return i.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var o="p"!==(null==r?void 0:r.nodeName.toLowerCase()),a=(null==r?void 0:r.getAttribute("face"))===e;if(i){if(o&&!a){var l=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(l[0]),n.selection.moveCursor(l[0].elems[0])}n.selection.setRangeToElem(r),n.selection.createEmptyRange()}n.cmd.do("fontName",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=l},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),l=function(){function e(e){var t=this;this.itemList=[],(0,o.default)(e).call(e,function(e){var n="string"==typeof e?e:e.value,i="string"==typeof e?e:e.name;t.itemList.push({$elem:a.default("<p style=\"font-family:'"+n+"'\">"+i+"</p>"),value:i})})}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(24)),o=i.__importDefault(n(3)),a=i.__importDefault(n(332)),l=function(e){function t(t){var n=this,i=o.default('<div class="w-e-menu" data-title="字号">\n <i class="w-e-icon-text-heigh"></i>\n </div>'),r={width:160,title:"设置字号",type:"list",list:new a.default(t.config.fontSizes).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return i.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty();null!=(null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection()))},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(3)),r=function(){function e(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:i.default('<p style="font-size:'+t+'">'+n.name+"</p>"),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(24)),s=l.__importDefault(n(3)),c=["LI"],d=["BLOCKQUOTE"],f=function(e){function t(t){var n=this,i=s.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),r={width:100,title:"对齐方式",type:"list",list:[{$elem:s.default('<p>\n <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠左")+"\n </p>"),value:"left"},{$elem:s.default('<p>\n <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.居中")+"\n </p>"),value:"center"},{$elem:s.default('<p>\n <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠右")+"\n </p>"),value:"right"},{$elem:s.default('<p>\n <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.两端")+"\n </p>"),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return l.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,i=n.getSelectionContainerElem();n.saveRange();var r=t.selection.getSelectionRangeTopNodes();if(null!=i&&i.length)if(this.isSpecialNode(i,r[0])||this.isSpecialTopNode(r[0])){var a=this.getSpecialNodeUntilTop(i,r[0]);if(null==a)return;s.default(a).css("text-align",e)}else(0,o.default)(r).call(r,function(t){t.css("text-align",e)});n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],i=t.elems[0];null!=n;){if(-1!==(0,a.default)(c).call(c,null==n?void 0:n.nodeName)||n.parentNode===i)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,a.default)(c).call(c,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,a.default)(d).call(d,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(u.default);t.default=f},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(23)),s=a.__importDefault(n(335)),c=a.__importDefault(n(336)),d=n(7),f=function(e){function t(t){var n=this,i=l.default('<div class="w-e-menu" data-title="引用">\n <i class="w-e-icon-quotes-left"></i>\n </div>');return n=e.call(this,i,t)||this,s.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t,n=this.editor,i=n.selection.isSelectionEmpty(),r=n.selection.getSelectionRangeTopNodes(),a=r[r.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var u=c.default(r);if(n.$textElem.equal(a)){var s=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0];n.selection.createRangeByElems(s.children[0],s.children[0]),r=n.selection.getSelectionRangeTopNodes(),u=c.default(r),a.append(u)}else u.insertAfter(a);this.delSelectNode(r);var f=null===(t=u.childNodes())||void 0===t?void 0:t.last().getNode();if(null==f)return;return f.textContent?n.selection.moveCursor(f):n.selection.moveCursor(f,0),this.tryChangeActive(),void l.default(d.EMPTY_P).insertAfter(u)}var p=l.default(a.childNodes()),h=p.length,m=a;(0,o.default)(p).call(p,function(e){var t=l.default(e);t.insertAfter(m),m=t}),a.remove(),n.selection.moveCursor(p.elems[h-1]),this.tryChangeActive(),i&&(n.selection.collapseRange(),n.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null===(e=this.editor.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName())?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},t.prototype.delSelectNode=function(e){(0,o.default)(e).call(e,function(e){e.remove()})},t}(u.default);t.default=f},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(7),o=i.__importDefault(n(3));function a(e){function t(t){var n,i=e.selection.getSelectionContainerElem(),a=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null==a?void 0:a.getNodeName())){if("BLOCKQUOTE"===i.getNodeName()){var l=null===(n=i.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(l)}if(""===i.text()){t.preventDefault(),i.remove();var u=o.default(r.EMPTY_P);u.insertAfter(a),e.selection.moveCursor(u.getNode(),0)}""===a.text()&&a.remove()}}e.txt.eventHooks.enterDownEvents.push(t)}t.default=a},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e){var t=a.default("<blockquote></blockquote>");return(0,o.default)(e).call(e,function(e){t.append(e.clone(!0))}),t}t.default=l},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(24)),u=a.__importDefault(n(3)),s=n(6),c=function(e){function t(t){var n,i=this,r=u.default('<div class="w-e-menu" data-title="背景色">\n <i class="w-e-icon-paint-brush"></i>\n </div>'),a={width:120,title:"背景颜色",type:"inline-block",list:(0,o.default)(n=t.config.colors).call(n,function(e){return{$elem:u.default('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}}),clickHandler:function(e){i.command(e)}};return i=e.call(this,r,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var o="p"!==(null==r?void 0:r.nodeName.toLowerCase()),a=null==r?void 0:r.style.backgroundColor,l=s.hexToRgb(e)===a;if(i){if(o&&!l){var u=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("backColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=c},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(24)),u=a.__importDefault(n(3)),s=function(e){function t(t){var n,i=this,r=u.default('<div class="w-e-menu" data-title="文字颜色">\n <i class="w-e-icon-pencil2"></i>\n </div>'),a={width:120,title:"文字颜色",type:"inline-block",list:(0,o.default)(n=t.config.colors).call(n,function(e){return{$elem:u.default('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}}),clickHandler:function(e){i.command(e)}};return i=e.call(this,r,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var o=n.selection.getSelectionText();if("A"===r.nodeName&&r.textContent===o){var a=u.default("<span>&#8203;</span>").getNode();r.appendChild(a)}n.cmd.do("foreColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(33)),a=i.__importDefault(n(38)),l=i.__importDefault(n(340)),u=i.__importDefault(n(346)),s=function(e){function t(t){var n=this,i=r.default('<div class="w-e-menu" data-title="视频">\n <i class="w-e-icon-play"></i>\n </div>');return n=e.call(this,i,t)||this,u.default(t),n}return i.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=l.default(this.editor,e);new o.default(this,t).create()},t.prototype.tryChangeActive=function(){},t}(a.default);t.default=s},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3)),s=a.__importDefault(n(341)),c=n(7);function d(e,t){var n=e.config,i=new s.default(e),r=l.getRandom("input-iframe"),a=l.getRandom("btn-ok"),d=l.getRandom("input-upload"),f=l.getRandom("btn-local-ok");function p(t){e.cmd.do("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t)}function h(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"==typeof n&&e.config.customAlert(n,"error"),!1)}var m=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n <div id="'+f+'" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="'+d+'" type="file" accept="video/*"/>\n </div>\n </div>',events:[{selector:"#"+f,type:"click",fn:function(){var e=u.default("#"+d).elems[0];if(!e)return!0;e.click()}},{selector:"#"+d,type:"change",fn:function(){var e=u.default("#"+d).elems[0];if(!e)return!0;var t=e.files;return t.length&&i.uploadVideo(t),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n <input \n id="'+r+'" \n type="text" \n class="block" \n placeholder="'+e.i18next.t("如")+':<iframe src=... ></iframe>"/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+a+'" class="right">\n '+e.i18next.t("插入")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+a,type:"click",fn:function(){var e,t=u.default("#"+r),n=(0,o.default)(e=t.val()).call(e);if(n&&h(n))return p(n),!0},bindEnter:!0}]}],g={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&g.tabs.push(m[0]),n.showLinkVideo&&g.tabs.push(m[1]),g}t.default=d},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(133)),a=i(n(57)),l=i(n(4)),u=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var s=n(2),c=n(6),d=s.__importDefault(n(135)),f=s.__importDefault(n(136)),p=n(7),h=n(6),m=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n,i=this.editor,r=i.config,s="validate.",p=function(e){return i.i18next.t(s+e)},h=r.uploadVideoServer,m=r.uploadVideoMaxSize/1024,g=r.uploadVideoName,v=r.uploadVideoParams,_=r.uploadVideoParamsWithUrl,y=r.uploadVideoHeaders,b=r.uploadVideoHooks,D=r.uploadVideoTimeout,A=r.withVideoCredentials,x=r.customUploadVideo,w=r.uploadVideoAccept,C=[],E=[];if(c.arrForEach(e,function(e){var t=e.name,n=e.size/1024/1024;if(t&&n){if(!(w instanceof Array))return void E.push("【"+w+"】"+p("uploadVideoAccept 不是Array"));if(!(0,o.default)(w).call(w,function(e){return e===t.split(".")[t.split(".").length-1]}))return void E.push("【"+t+"】"+p("不是视频"));if(m<n)return void E.push("【"+t+"】"+p("大于")+" "+m+"M");C.push(e)}}),E.length)return void r.customAlert(p("视频验证未通过")+": \n"+E.join("\n"),"warning");if(0===C.length)return void r.customAlert(p("传入的文件不合法"),"warning");if(x&&"function"==typeof x)return void x(C,(0,a.default)(n=this.insertVideo).call(n,this));var k=new FormData;if((0,l.default)(C).call(C,function(e,t){var n=g||e.name;C.length>1&&(n+=t+1),k.append(n,e)}),h){var F=h.split("#");h=F[0];var S=F[1]||"";(0,l.default)(c).call(c,v,function(e,t){_&&((0,u.default)(h).call(h,"?")>0?h+="&":h+="?",h=h+e+"="+t),k.append(e,t)}),S&&(h+="#"+S);var B=d.default(h,{timeout:D,formData:k,headers:y,withCredentials:!!A,beforeSend:function(e){if(b.before)return b.before(e,i,C)},onTimeout:function(e){r.customAlert(p("上传视频超时"),"error"),b.timeout&&b.timeout(e,i)},onProgress:function(e,t){var n=new f.default(i);t.lengthComputable&&(e=t.loaded/t.total,n.show(e))},onError:function(e){r.customAlert(p("上传视频错误"),"error",p("上传视频错误")+","+p("服务器返回状态")+": "+e.status),b.error&&b.error(e,i)},onFail:function(e,t){r.customAlert(p("上传视频失败"),"error",p("上传视频返回结果错误")+","+p("返回结果")+": "+t),b.fail&&b.fail(e,i,t)},onSuccess:function(e,n){if(b.customInsert){var o;b.customInsert((0,a.default)(o=t.insertVideo).call(o,t),n,i)}else{if("0"!=n.errno)return r.customAlert(p("上传视频失败"),"error",p("上传视频返回结果错误")+","+p("返回结果")+" errno="+n.errno),void(b.fail&&b.fail(e,i,n));var l=n.data;t.insertVideo(l.url),b.success&&b.success(e,i,n)}}});"string"==typeof B&&r.customAlert(B,"error")}}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,i="validate.",r=function(e,n){return void 0===n&&(n=i),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{h.UA.isFirefox?t.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):t.cmd.do("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+p.EMPTY_P);var o=document.createElement("video");o.onload=function(){o=null},o.onerror=function(){n.customAlert(r("插入视频错误"),"error","wangEditor: "+r("插入视频错误")+","+r("视频链接")+' "'+e+'",'+r("下载链接失败")),o=null},o.onabort=function(){return o=null},o.src=e}},e}();t.default=m},function(e,t,n){e.exports=n(343)},function(e,t,n){var i=n(344);e.exports=i},function(e,t,n){n(345);var i=n(9);e.exports=i.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(347)),o=i.__importDefault(n(349));function a(e){r.default(e),o.default(e)}t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39)),a=i.__importDefault(n(348));function l(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};function i(i){var l=[{$elem:r.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return t.remove(),!0}},{$elem:r.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:r.default("<span>"+n("menus.justify.靠左")+"</span>"),onClick:function(e,t){return a.default(t,"left"),!0}},{$elem:r.default("<span>"+n("menus.justify.居中")+"</span>"),onClick:function(e,t){return a.default(t,"center"),!0}},{$elem:r.default("<span>"+n("menus.justify.靠右")+"</span>"),onClick:function(e,t){return a.default(t,"right"),!0}}];(t=new o.default(e,i,l)).create()}function l(){t&&(t.remove(),t=null)}return{showVideoTooltip:i,hideVideoTooltip:l}}function u(e){var t=l(e),n=t.showVideoTooltip,i=t.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=l,t.default=u},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(28));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e,t){var n=u(e,["P"]);n&&a.default(n).css("text-align",t)}function u(e,t){for(var n,i=e.elems[0];null!=i;){if((0,o.default)(t).call(t,null==i?void 0:i.nodeName))return i;if("BODY"===(null===(n=null==i?void 0:i.parentNode)||void 0===n?void 0:n.nodeName))return null;i=i.parentNode}return i}t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(6);function r(e){if(i.UA.isFirefox){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(t){var i=n.getSelectionContainerElem();if(i){var r=i.getNodeTop(e),o=r.length&&r.prev().length?r.prev():null;o&&o.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&o.remove()}})}}t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=n(7),u=a.__importDefault(n(3)),s=a.__importDefault(n(33)),c=a.__importDefault(n(38)),d=a.__importDefault(n(351)),f=a.__importDefault(n(364)),p=function(e){function t(t){var n,i=this,r=u.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),a=f.default(t);return a.onlyUploadConf&&(r=a.onlyUploadConf.$elem,(0,o.default)(n=a.onlyUploadConf.events).call(n,function(e){var t=e.type,n=e.fn||l.EMPTY_FN;r.on(t,function(e){e.stopPropagation(),n(e)})})),(i=e.call(this,r,t)||this).imgPanelConfig=a,d.default(t),i}return a.__extends(t,e),t.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},t.prototype.createPanel=function(){var e=this.imgPanelConfig,t=new s.default(this,e);this.setPanel(t),t.create()},t.prototype.tryChangeActive=function(){},t}(c.default);t.default=p},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(352)),o=i.__importDefault(n(353)),a=i.__importDefault(n(354)),l=i.__importDefault(n(362)),u=i.__importDefault(n(363));function s(e){r.default(e),o.default(e),a.default(e),l.default(e),u.default(e)}t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(131),o=i.__importDefault(n(97));function a(e,t){var n=e.config,i=n.pasteFilterStyle,o=n.pasteIgnoreImg;return!!r.getPasteHtml(t,i,o)||!!r.getPasteText(t)}function l(e,t){for(var n,i=(null===(n=t.clipboardData)||void 0===n?void 0:n.types)||[],r=0;r<i.length;r++)if("Files"===i[r])return!0;return!1}function u(e,t){if(l(t,e)||!a(t,e)){var n=r.getPasteImgs(e);n.length&&new o.default(t).uploadImg(n)}}function s(e){e.txt.eventHooks.pasteEvents.unshift(function(t){u(t,e)})}t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(97));function r(e){function t(t){var n=t.dataTransfer&&t.dataTransfer.files;n&&n.length&&new i.default(e).uploadImg(n)}e.txt.eventHooks.dropEvents.push(t)}t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(29)),a=i(n(355));(0,r.default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var l=n(2).__importDefault(n(3));n(360);var u=n(6);function s(e,t,n,i,r){e.attr("style","width:"+t+"px; height:"+n+"px; left:"+i+"px; top:"+r+"px;")}function c(e,t){var n=l.default('<div class="w-e-img-drag-mask">\n <div class="w-e-img-drag-show-size"></div>\n <div class="w-e-img-drag-rb"></div>\n </div>');return n.hide(),t.append(n),n}function d(e,t,n){var i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),l=r.width.toFixed(2),u=r.height.toFixed(2);(0,o.default)(t).call(t,".w-e-img-drag-show-size").text(l+"px * "+u+"px"),s(t,(0,a.default)(l),(0,a.default)(u),r.left-i.left,r.top-i.top),t.show()}function f(e){var t,n=e.$textContainerElem,i=c(e,n);function r(e,n){e.on("click",function(e){e.stopPropagation()}),e.on("mousedown",".w-e-img-drag-rb",function(i){if(i.preventDefault(),t){var r=i.clientX,u=i.clientY,c=n.getBoundingClientRect(),d=t.getBoundingClientRect(),f=d.width,p=d.height,h=d.left-c.left,m=d.top-c.top,g=f/p,v=f,_=p,y=l.default(document);y.on("mousemove",D),y.on("mouseup",A),y.on("mouseleave",b)}function b(){y.off("mousemove",D),y.off("mouseup",A)}function D(t){t.stopPropagation(),t.preventDefault(),v=f+(t.clientX-r),_=p+(t.clientY-u),v/_!=g&&(_=v/g),v=(0,a.default)(v.toFixed(2)),_=(0,a.default)(_.toFixed(2)),(0,o.default)(e).call(e,".w-e-img-drag-show-size").text(v.toFixed(2).replace(".00","")+"px * "+_.toFixed(2).replace(".00","")+"px"),s(e,v,_,h,m)}function A(){t.attr("width",v+""),t.attr("height",_+"");var n=t.getBoundingClientRect();s(e,v,_,n.left-c.left,n.top-c.top),b()}})}function f(e){if(u.UA.isIE())return!1;e&&d(n,i,t=e)}function p(){(0,o.default)(n).call(n,".w-e-img-drag-mask").hide()}return r(i,n),l.default(document).on("click",p),e.beforeDestroy(function(){l.default(document).off("click",p)}),{showDrag:f,hideDrag:p}}function p(e){var t=f(e),n=t.showDrag,i=t.hideDrag;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=f,t.default=p},function(e,t,n){e.exports=n(356)},function(e,t,n){var i=n(357);e.exports=i},function(e,t,n){n(358);var i=n(9);e.exports=i.parseFloat},function(e,t,n){var i=n(5),r=n(359);i({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t,n){var i=n(8),r=n(90).trim,o=n(68),a=i.parseFloat,l=1/a(o+"-0")!=-1/0;e.exports=l?function(e){var t=r(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var i=n(20),r=n(361);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39));function a(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};function i(i){var a=[{$elem:r.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:r.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];a.push({$elem:r.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),i.attr("data-href")&&a.push({$elem:r.default("<span>"+n("查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("data-href");return n&&(n=decodeURIComponent(n),window.open(n,"_target")),!0}}),(t=new o.default(e,i,a)).create()}function a(){t&&(t.remove(),t=null)}return{showImgTooltip:i,hideImgTooltip:a}}function l(e){var t=a(e),n=t.showImgTooltip,i=t.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.imgDragBarMouseDownEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=a,t.default=l},function(e,t,n){function i(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(e){var t=n.getSelectionContainerElem(),i=n.getRange();if(i&&t&&8===e.keyCode&&n.isSelectionEmpty()){var r=i.startContainer,o=i.startOffset,a=null;if(0===o)for(;r!==t.elems[0]&&t.elems[0].contains(r)&&r.parentNode&&!a;){if(r.previousSibling){a=r.previousSibling;break}r=r.parentNode}else 3!==r.nodeType&&(a=r.childNodes[o-1]);if(a){for(var l=a;l.childNodes.length;)l=l.childNodes[l.childNodes.length-1];l instanceof HTMLElement&&"IMG"===l.tagName&&(l.remove(),e.preventDefault())}}})}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(26)),a=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),s=n(6),c=l.__importDefault(n(97));function d(e){var t,n=e.config,i=new c.default(e),r=s.getRandom("up-trigger-id"),l=s.getRandom("up-file-id"),d=s.getRandom("input-link-url"),f=s.getRandom("input-link-url-alt"),p=s.getRandom("input-link-url-href"),h=s.getRandom("btn-link"),m="menus.panelMenus.image.",g=function(t,n){return void 0===n&&(n=m),e.i18next.t(n+t)};function v(e,t,i){var r=n.linkImgCheck(e);return!0===r||("string"==typeof r&&n.customAlert(r,"error"),!1)}var _=1===n.uploadImgMaxLength?"":'multiple="multiple"',y=(0,o.default)(t=n.uploadImgAccept).call(t,function(e){return"image/"+e}).join(","),b=function(e,t,n){return'<div class="'+e+'" data-title="'+n+'">\n <div id="'+r+'" class="w-e-up-btn">\n <i class="'+t+'"></i>\n </div>\n <div style="display:none;">\n <input id="'+l+'" type="file" '+_+' accept="'+y+'"/>\n </div>\n </div>'},D=[{selector:"#"+r,type:"click",fn:function(){var e=n.uploadImgFromMedia;if(e&&"function"==typeof e)return e(),!0;var t=u.default("#"+l).elems[0];if(!t)return!0;t.click()}},{selector:"#"+l,type:"change",fn:function(){var e=u.default("#"+l).elems[0];if(!e)return!0;var t=e.files;return null!=t&&t.length&&i.uploadImg(t),e&&(e.value=""),!0}}],A=['<input\n id="'+d+'"\n type="text"\n class="block"\n placeholder="'+g("图片地址")+'"/>'];n.showLinkImgAlt&&A.push('\n <input\n id="'+f+'"\n type="text"\n class="block"\n placeholder="'+g("图片文字说明")+'"/>'),n.showLinkImgHref&&A.push('\n <input\n id="'+p+'"\n type="text"\n class="block"\n placeholder="'+g("跳转链接")+'"/>');var x=[{title:g("上传图片"),tpl:b("w-e-up-img-container","w-e-icon-upload2",""),events:D},{title:g("网络图片"),tpl:"<div>\n "+A.join("")+'\n <div class="w-e-button-container">\n <button type="button" id="'+h+'" class="right">'+g("插入","")+"</button>\n </div>\n </div>",events:[{selector:"#"+h,type:"click",fn:function(){var e,t,r,o,l,s=u.default("#"+d),c=(0,a.default)(e=s.val()).call(e);if(c&&(n.showLinkImgAlt&&(t=(0,a.default)(r=u.default("#"+f).val()).call(r)),n.showLinkImgHref&&(o=(0,a.default)(l=u.default("#"+p).val()).call(l)),v(c)))return i.insertImg(c,t,o),!0},bindEnter:!0}]}],w={width:300,height:0,tabs:[],onlyUploadConf:{$elem:u.default(b("w-e-menu","w-e-icon-image","图片")),events:D}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&w.tabs.push(x[0]),n.showLinkImg&&(w.tabs.push(x[1]),w.onlyUploadConf=void 0),w}t.default=d},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(24)),s=a.__importDefault(n(366)),c=function(e){function t(t){var n=this,i=l.default('<div class="w-e-menu" data-title="缩进">\n <i class="w-e-icon-indent-increase"></i>\n </div>'),r={width:130,title:"设置缩进",type:"list",list:[{$elem:l.default('<p>\n <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n <p>"),value:"increase"},{$elem:l.default('<p>\n <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n <p>"),value:"decrease"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n)){var i=t.selection.getSelectionRangeTopNodes();i.length>0&&(0,o.default)(i).call(i,function(n){s.default(l.default(n),e,t)})}else n&&n.length>0&&(0,o.default)(n).call(n,function(n){s.default(l.default(n),e,t)});t.selection.restoreSelection(),this.tryChangeActive()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem(),n=l.default(t).getNodeTop(e);n.length<=0||(""!=n.elems[0].style.paddingLeft?this.active():this.unActive())},t}(u.default);t.default=c},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(45)),a=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(367)),s=l.__importDefault(n(368)),c=/^(\d+)(\w+)$/,d=/^(\d+)%$/;function f(e){var t=e.config.indentation;if("string"==typeof t){if(c.test(t)){var n,i=(0,o.default)(n=(0,a.default)(t).call(t).match(c)).call(n,1,3),r=i[0],l=i[1];return{value:Number(r),unit:l}}if(d.test(t))return{value:Number((0,a.default)(t).call(t).match(d)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}function p(e,t,n){var i=e.getNodeTop(n);/^(P|H[0-9]*)$/.test(i.getNodeName())&&("increase"===t?u.default(i,f(n)):"decrease"===t&&s.default(i,f(n)))}t.default=p},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(45));function a(e,t){var n=e.elems[0];if(""===n.style.paddingLeft)e.css("padding-left",t.value+t.unit);else{var i=n.style.paddingLeft,r=(0,o.default)(i).call(i,0,i.length-t.unit.length),a=Number(r)+t.value;e.css("padding-left",""+a+t.unit)}}(0,r.default)(t,"__esModule",{value:!0}),t.default=a},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(45));function a(e,t){var n=e.elems[0];if(""!==n.style.paddingLeft){var i=n.style.paddingLeft,r=(0,o.default)(i).call(i,0,i.length-t.unit.length),a=Number(r)-t.value;a>0?e.css("padding-left",""+a+t.unit):e.css("padding-left","")}}(0,r.default)(t,"__esModule",{value:!0}),t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(38)),a=i.__importDefault(n(33)),l=i.__importDefault(n(370)),u=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="表情">\n <i class="w-e-icon-happy"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.createPanel=function(){var e=l.default(this.editor);new a.default(this,e).create()},t.prototype.clickHandler=function(){this.createPanel()},t.prototype.tryChangeActive=function(){},t}(o.default);t.default=u},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(26)),a=i(n(70)),l=i(n(17));(0,r.default)(t,"__esModule",{value:!0});var u=n(2).__importDefault(n(3));function s(e){var t=e.config.emotions;function n(e){var t,n,i=[];return"image"==e.type?(i=(0,o.default)(t=e.content).call(t,function(e){return"string"==typeof e?"":'<span title="'+e.alt+'">\n <img class="eleImg" data-emoji="'+e.alt+'" style src="'+e.src+'" alt="['+e.alt+']">\n </span>'}),i=(0,a.default)(i).call(i,function(e){return""!==e})):i=(0,o.default)(n=e.content).call(n,function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"}),i.join("").replace(/&nbsp;/g,"")}return{width:300,height:230,tabs:(0,o.default)(t).call(t,function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"<div>"+n(t)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(t){var n,i,r=u.default(t.target);return n="IMG"===r.getNodeName()?(0,l.default)(i=r.parent().html()).call(i):"<span>"+r.html()+"</span>",e.cmd.do("insertHTML",n),!0}}]}})}}t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var i,r,o=n(2),a=o.__importDefault(n(3)),l=o.__importDefault(n(372)),u=o.__importDefault(n(374)),s=o.__importDefault(n(375)),c=o.__importDefault(n(376)),d=o.__importDefault(n(377));(r=i=t.ClassType||(t.ClassType={})).Wrap="WrapListHandle",r.Join="JoinListHandle",r.StartJoin="StartJoinListHandle",r.EndJoin="EndJoinListHandle",r.Other="OtherListHandle";var f={WrapListHandle:l.default,JoinListHandle:u.default,StartJoinListHandle:s.default,EndJoinListHandle:c.default,OtherListHandle:d.default};function p(e,t,n){if(e===i.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==i.Other?new f[e](t):new f[e](t,n)}t.createListHandle=p;var h=function(){function e(e){this.handle=e,this.handle.exec()}return e.prototype.getSelectionRangeElem=function(){return a.default(this.handle.selectionRangeElem.get())},e}();t.default=h},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),s=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t=this.options,n=t.listType,i=t.listTarget,r=t.$selectionElem,a=t.$startElem,u=t.$endElem,c=[],d=null==r?void 0:r.getNodeName(),f=a.prior,p=u.prior;if((a.prior||u.prior)&&(null!=f&&f.prev().length||null!=p&&p.next().length)){for(var h=f;h.length;)c.push(h),h=null!=p&&p.equal(h)?l.default(void 0):h.next();var m=f.prev(),g=p.next();if(d===n?e=s.createElementFragment(c,s.createDocumentFragment(),"p"):(e=s.createElement(i),(0,o.default)(c).call(c,function(t){e.append(t.elems[0])})),m.length&&g.length){for(var v=[];g.length;)v.push(g),g=g.next();var _=s.createElement(d);(0,o.default)(v).call(v,function(e){_.append(e.elems[0])}),l.default(_).insertAfter(r),this.selectionRangeElem.set(e),(y=r.next()).length?s.insertBefore(r,e,y.elems[0]):r.parent().elems[0].append(e)}else if(m.length){var y;this.selectionRangeElem.set(e),(y=r.next()).length?s.insertBefore(r,e,y.elems[0]):r.parent().elems[0].append(e)}else this.selectionRangeElem.set(e),s.insertBefore(r,e,r.elems[0])}else{var b;(0,o.default)(b=null==r?void 0:r.children()).call(b,function(e){c.push(l.default(e))}),d===n?e=s.createElementFragment(c,s.createDocumentFragment(),"p"):(e=s.createElement(i),(0,o.default)(c).call(c,function(t){e.appendChild(t.elems[0])})),this.selectionRangeElem.set(e),s.insertBefore(r,e,r.elems[0]),r.remove()}},t}(u.ListHandle);t.default=c},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=function(){function e(){this._element=null}return e.prototype.set=function(e){if(e instanceof DocumentFragment){var t,n=[];(0,o.default)(t=e.childNodes).call(t,function(e){n.push(e)}),e=n}this._element=e},e.prototype.get=function(){return this._element},e.prototype.clear=function(){this._element=null},e}();t.default=a},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),s=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,i,r,a,u,c,d=this.options,f=d.editor,p=d.listType,h=d.listTarget,m=d.$startElem,g=d.$endElem,v=f.selection.getSelectionRangeTopNodes(),_=null==m?void 0:m.getNodeName();if(_===(null==g?void 0:g.getNodeName()))if(v.length>2)if(v.shift(),v.pop(),c=s.createElementFragment(s.filterSelectionNodes(v),s.createDocumentFragment()),_===p)null===(e=g.children())||void 0===e||(0,o.default)(e).call(e,function(e){c.append(e)}),g.remove(),this.selectionRangeElem.set(c),m.elems[0].append(c);else{for(var y=document.createDocumentFragment(),b=document.createDocumentFragment(),D=s.getStartPoint(m);D.length;){var A=D.elems[0];D=D.next(),y.append(A)}for(var x=s.getEndPoint(g),w=[];x.length;)w.unshift(x.elems[0]),x=x.prev();(0,o.default)(w).call(w,function(e){b.append(e)});var C=s.createElement(h);C.append(y),C.append(c),C.append(b),c=C,this.selectionRangeElem.set(c),l.default(C).insertAfter(m),!(null!==(t=m.children())&&void 0!==t&&t.length)&&m.remove(),(null===(n=g.children())||void 0===n||!n.length)&&g.remove()}else{for(v.length=0,D=s.getStartPoint(m);D.length;)v.push(D),D=D.next();for(x=s.getEndPoint(g),w=[];x.length;)w.unshift(x),x=x.prev();v.push.apply(v,w),_===p?(c=s.createElementFragment(v,s.createDocumentFragment(),"p"),this.selectionRangeElem.set(c),s.insertBefore(m,c,g.elems[0])):(c=s.createElement(h),(0,o.default)(v).call(v,function(e){c.append(e.elems[0])}),this.selectionRangeElem.set(c),l.default(c).insertAfter(m)),!(null!==(i=m.children())&&void 0!==i&&i.length)&&g.remove(),(null===(r=g.children())||void 0===r||!r.length)&&g.remove()}else{var E=[];for(x=s.getEndPoint(g);x.length;)E.unshift(x),x=x.prev();var k=[];for(D=s.getStartPoint(m);D.length;)k.push(D),D=D.next();if(c=s.createDocumentFragment(),v.shift(),v.pop(),(0,o.default)(k).call(k,function(e){return c.append(e.elems[0])}),c=s.createElementFragment(s.filterSelectionNodes(v),c),(0,o.default)(E).call(E,function(e){return c.append(e.elems[0])}),this.selectionRangeElem.set(c),_===p)m.elems[0].append(c),(null===(a=g.children())||void 0===a||!a.length)&&g.remove();else if(null!==(u=g.children())&&void 0!==u&&u.length){var F=g.children();s.insertBefore(F,c,F.elems[0])}else g.elems[0].append(c)}},t}(u.ListHandle);t.default=c},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),s=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n=this.options,i=n.editor,r=n.listType,a=n.listTarget,u=n.$startElem,c=i.selection.getSelectionRangeTopNodes(),d=null==u?void 0:u.getNodeName();c.shift();for(var f=[],p=s.getStartPoint(u);p.length;)f.push(p),p=p.next();d===r?(t=s.createDocumentFragment(),(0,o.default)(f).call(f,function(e){return t.append(e.elems[0])}),t=s.createElementFragment(s.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),u.elems[0].append(t)):(t=s.createElement(a),(0,o.default)(f).call(f,function(e){return t.append(e.elems[0])}),t=s.createElementFragment(s.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),l.default(t).insertAfter(u),(null===(e=u.children())||void 0===e||!e.length)&&u.remove())},t}(u.ListHandle);t.default=c},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),s=n(47),c=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,i=this.options,r=i.editor,a=i.listType,u=i.listTarget,c=i.$endElem,d=r.selection.getSelectionRangeTopNodes(),f=null==c?void 0:c.getNodeName();d.pop();for(var p=[],h=s.getEndPoint(c);h.length;)p.unshift(h),h=h.prev();if(f===a)if(n=s.createElementFragment(s.filterSelectionNodes(d),s.createDocumentFragment()),(0,o.default)(p).call(p,function(e){return n.append(e.elems[0])}),this.selectionRangeElem.set(n),null!==(e=c.children())&&void 0!==e&&e.length){var m=c.children();s.insertBefore(m,n,m.elems[0])}else c.elems[0].append(n);else{var g=s.filterSelectionNodes(d);g.push.apply(g,p),n=s.createElementFragment(g,s.createElement(u)),this.selectionRangeElem.set(n),l.default(n).insertBefore(c),(null===(t=c.children())||void 0===t||!t.length)&&c.remove()}},t}(u.ListHandle);t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(58),o=n(47),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.range=n,i}return i.__extends(t,e),t.prototype.exec=function(){var e=this.options,t=e.editor,n=e.listTarget,i=t.selection.getSelectionRangeTopNodes(),r=o.createElementFragment(o.filterSelectionNodes(i),o.createElement(n));this.selectionRangeElem.set(r),this.range.insertNode(r)},t}(r.ListHandle);t.default=a},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(27));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(24)),s=l.__importDefault(n(3)),c=l.__importDefault(n(379)),d=function(e){function t(t){var n=this,i=s.default('<div class="w-e-menu" data-title="行高">\n <i class="w-e-icon-row-height"></i>\n </div>'),r={width:100,title:"设置行高",type:"list",list:new c.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=e.call(this,i,t,r)||this}return l.__extends(t,e),t.prototype.command=function(e){var t=this.editor;t.selection.restoreSelection();var n=s.default(t.selection.getSelectionContainerElem());if(n.elems.length){if(n&&t.$textElem.equal(n)){for(var i=!1,r=s.default(t.selection.getSelectionStartElem()).elems[0],o=s.default(t.selection.getSelectionEndElem()).elems[0],a=this.getDom(r),l=this.getDom(o),u=n.elems[0].children,c=0;c<u.length;c++){var d=u[c];if("P"===s.default(d).getNodeName()&&(d===a&&(i=!0),i&&(s.default(d).css("line-height",e),d===l)))return void(i=!1)}return void t.selection.createRangeByElems(r,o)}var f=n.elems[0],p=this.getDom(f);"P"===s.default(p).getNodeName()&&(s.default(p).css("line-height",e),t.selection.createRangeByElems(p,p))}},t.prototype.getDom=function(e){var t=s.default(e).elems[0];if(!t.parentNode)return t;function n(e,t){var i=s.default(e.parentNode);return t.$textElem.equal(i)?e:n(i.elems[0],t)}return t=n(t,this.editor)},t.prototype.styleProcessing=function(e){var t="";return(0,o.default)(e).call(e,function(e){""!==e&&-1===(0,a.default)(e).call(e,"line-height")&&(t=t+e+";")}),t},t.prototype.setRange=function(e,t){var n=this.editor,i=window.getSelection?window.getSelection():document.getSelection();null==i||i.removeAllRanges();var r=document.createRange(),o=e,a=t;r.setStart(o,0),r.setEnd(a,1),null==i||i.addRange(r),n.selection.saveRange(),null==i||i.removeAllRanges(),n.selection.restoreSelection()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(!t||!e.$textElem.equal(t)){var n=s.default(e.selection.getSelectionStartElem());if(0!==n.length){var i=(n=this.getDom(n.elems[0])).getAttribute("style")?n.getAttribute("style"):"";i&&-1!==(0,a.default)(i).call(i,"line-height")?this.active():this.unActive()}}},t}(u.default);t.default=d},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),l=function(){function e(e,t){var n=this;this.itemList=[{$elem:a.default("<span>"+e.i18next.t("默认")+"</span>"),value:""}],(0,o.default)(t).call(t,function(e){n.itemList.push({$elem:a.default("<span>"+e+"</span>"),value:e})})}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="撤销">\n <i class="w-e-icon-undo"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();if(null!=t&&t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},t}(i.__importDefault(n(23)).default);t.default=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="恢复">\n <i class="w-e-icon-redo"></i>\n </div>');return e.call(this,n,t)||this}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();if(null!=t&&t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},t}(i.__importDefault(n(23)).default);t.default=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(38)),o=i.__importDefault(n(3)),a=i.__importDefault(n(383)),l=i.__importDefault(n(33)),u=i.__importDefault(n(392)),s=function(e){function t(t){var n=this,i=o.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return n=e.call(this,i,t)||this,u.default(t),n}return i.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel()},t.prototype.createPanel=function(){var e=a.default(this.editor);new l.default(this,e).create()},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=s},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(384));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3));n(389);var s=a.__importDefault(n(391));function c(e){return e>0&&(0,o.default)(e)}function d(e){var t=new s.default(e),n=l.getRandom("w-col-id"),i=l.getRandom("w-row-id"),r=l.getRandom("btn-link"),o="menus.panelMenus.table.",a=function(t){return e.i18next.t(t)},d=[{title:a(o+"插入表格"),tpl:'<div>\n <div class="w-e-table">\n <span>'+a("创建")+'</span>\n <input id="'+i+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+a(o+"行")+'</span>\n <input id="'+n+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+(a(o+"列")+a(o+"的")+a(o+"表格"))+'</span>\n </div>\n <div class="w-e-button-container">\n <button type="button" id="'+r+'" class="right">'+a("插入")+"</button>\n </div>\n </div>",events:[{selector:"#"+r,type:"click",fn:function(){var r=Number(u.default("#"+n).val()),o=Number(u.default("#"+i).val());return c(o)&&c(r)?(t.createAction(o,r),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],f={width:330,height:0,tabs:[]};return f.tabs.push(d[0]),f}t.default=d},function(e,t,n){e.exports=n(385)},function(e,t,n){var i=n(386);e.exports=i},function(e,t,n){n(387);var i=n(9);e.exports=i.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},function(e,t,n){var i=n(13),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){var i=n(20),r=n(390);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(7),o=i.__importDefault(n(3)),a=function(){function e(e){this.editor=e}return e.prototype.createAction=function(e,t){var n=this.editor,i=o.default(n.selection.getSelectionContainerElem()),r=o.default(i.elems[0]).parentUntilEditor("UL",n),a=o.default(i.elems[0]).parentUntilEditor("OL",n);if(!r&&!a){var l=this.createTableHtml(e,t);n.cmd.do("insertHTML",l)}},e.prototype.createTableHtml=function(e,t){for(var n="",i="",o=0;o<e;o++){i="";for(var a=0;a<t;a++)i+=0===o?"<th></th>":"<td></td>";n=n+"<tr>"+i+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table>"+r.EMPTY_P},e}();t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(393)),r=n(400);function o(e){i.default(e),r.bindEventKeyboardEvent(e),r.bindClickEvent(e)}t.default=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39)),a=i.__importDefault(n(394)),l=i.__importDefault(n(399)),u=n(7);function s(e){var t;function n(n){var i=new l.default(e),s="menus.panelMenus.table.",d=function(t,n){return void 0===n&&(n=s),e.i18next.t(n+t)},p=[{$elem:r.default("<span>"+d("删除表格")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u.EMPTY_P),!0}},{$elem:r.default("<span>"+d("添加行")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var l=Number(i.getCurrentRowIndex(t.elems[0],o)),u=i.getTableHtml(t.elems[0]),s=i.getTableHtml(a.default.ProcessingRow(r.default(u),l).elems[0]);return s=f(t,s),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",s),!0}},{$elem:r.default("<span>"+d("删除行")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var l=Number(i.getCurrentRowIndex(t.elems[0],o)),s=i.getTableHtml(t.elems[0]),d=a.default.DeleteRow(r.default(s),l).elems[0].children[0].children.length,p="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),p=f(t,p=0===d?u.EMPTY_P:i.getTableHtml(a.default.DeleteRow(r.default(s),l).elems[0])),e.cmd.do("insertHTML",p),!0}},{$elem:r.default("<span>"+d("添加列")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getCurrentColIndex(n.elems[0]),l=i.getTableHtml(t.elems[0]),u=i.getTableHtml(a.default.ProcessingCol(r.default(l),o).elems[0]);return u=f(t,u),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u),!0}},{$elem:r.default("<span>"+d("删除列")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getCurrentColIndex(n.elems[0]),l=i.getTableHtml(t.elems[0]),s=a.default.DeleteCol(r.default(l),o),d=s.elems[0].children[0].children[0].children.length,p="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),p=f(t,p=0===d?u.EMPTY_P:i.getTableHtml(s.elems[0])),e.cmd.do("insertHTML",p),!0}},{$elem:r.default("<span>"+d("设置表头")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var l=Number(i.getCurrentRowIndex(t.elems[0],o));0!==l&&(l=0);var u=i.getTableHtml(t.elems[0]),s=i.getTableHtml(a.default.setTheHeader(r.default(u),l,"th").elems[0]);return s=f(t,s),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",s),!0}},{$elem:r.default("<span>"+d("取消表头")+"</span>"),onClick:function(e,t){var n=r.default(e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var l=Number(i.getCurrentRowIndex(t.elems[0],o));0!==l&&(l=0);var u=i.getTableHtml(t.elems[0]),s=i.getTableHtml(a.default.setTheHeader(r.default(u),l,"td").elems[0]);return s=f(t,s),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",s),!0}}];(t=new o.default(e,n,p)).create()}function i(){t&&(t.remove(),t=null)}return{showTableTooltip:n,hideTableTooltip:i}}function c(e){var t=e.selection.getSelectionStartElem(),n=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==n?void 0:n.elems[0])}function d(e){var t=s(e),n=t.showTableTooltip,i=t.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}function f(e,t){var n=e.elems[0].nextSibling;return(!n||"<br>"===n.innerHTML)&&(t+=""+u.EMPTY_P),t}t.default=d},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(45)),a=i(n(91)),l=i(n(4)),u=i(n(138));(0,r.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3));function c(e,t){for(var n=g(e),i=(0,o.default)(Array.prototype).apply(n.children),r=i[0].children.length,l=document.createElement("tr"),u=0;u<r;u++){var c=document.createElement("td");l.appendChild(c)}return(0,a.default)(i).call(i,t+1,0,l),m(n,i),s.default(n.parentNode)}function d(e,t){for(var n=g(e),i=(0,o.default)(Array.prototype).apply(n.children),r=function(e){var n,r=[];for((0,l.default)(n=(0,u.default)(i[e].children)).call(n,function(e){r.push(e)});0!==i[e].children.length;)i[e].removeChild(i[e].children[0]);var o="TH"!==s.default(r[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,a.default)(r).call(r,t+1,0,o);for(var c=0;c<r.length;c++)i[e].appendChild(r[c])},c=0;c<i.length;c++)r(c);return m(n,i),s.default(n.parentNode)}function f(e,t){var n=g(e),i=(0,o.default)(Array.prototype).apply(n.children);return(0,a.default)(i).call(i,t,1),m(n,i),s.default(n.parentNode)}function p(e,t){for(var n=g(e),i=(0,o.default)(Array.prototype).apply(n.children),r=function(e){var n,r=[];for((0,l.default)(n=(0,u.default)(i[e].children)).call(n,function(e){r.push(e)});0!==i[e].children.length;)i[e].removeChild(i[e].children[0]);(0,a.default)(r).call(r,t,1);for(var o=0;o<r.length;o++)i[e].appendChild(r[o])},c=0;c<i.length;c++)r(c);return m(n,i),s.default(n.parentNode)}function h(e,t,n){for(var i=g(e),r=(0,o.default)(Array.prototype).apply(i.children),c=r[t].children,d=document.createElement("tr"),f=function(e){var t,i=document.createElement(n),r=c[e];(0,l.default)(t=(0,u.default)(r.childNodes)).call(t,function(e){i.appendChild(e)}),d.appendChild(i)},p=0;p<c.length;p++)f(p);return(0,a.default)(r).call(r,t,1,d),m(i,r),s.default(i.parentNode)}function m(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n<t.length;n++)e.appendChild(t[n])}function g(e){var t=e.elems[0].children[0];return"COLGROUP"===t.nodeName&&(t=e.elems[0].children[e.elems[0].children.length-1]),t}t.default={ProcessingRow:c,ProcessingCol:d,DeleteRow:f,DeleteCol:p,setTheHeader:h}},function(e,t,n){var i=n(396);e.exports=i},function(e,t,n){n(50),n(397);var i=n(9);e.exports=i.Array.from},function(e,t,n){var i=n(5),r=n(398),o=!n(115)(function(e){Array.from(e)});i({target:"Array",stat:!0,forced:o},{from:r})},function(e,t,n){var i=n(40),r=n(31),o=n(114),a=n(112),l=n(35),u=n(69),s=n(113);e.exports=function(e){var t,n,c,d,f,p,h=r(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,_=void 0!==v,y=s(h),b=0;if(_&&(v=i(v,g>2?arguments[2]:void 0,2)),null==y||m==Array&&a(y))for(n=new m(t=l(h.length));t>b;b++)p=_?v(h[b],b):h[b],u(n,b,p);else for(f=(d=y.call(h)).next,n=new m;!(c=f.call(d)).done;b++)p=_?o(d,v,[c.value,b],!0):c.value,u(n,b,p);return n.length=b,n}},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(138));(0,r.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=function(){function e(e){this.editor=e}return e.prototype.getRowNode=function(e){var t,n=l.default(e).elems[0];return n.parentNode&&(n=null===(t=l.default(n).parentUntil("TR",n))||void 0===t?void 0:t.elems[0]),n},e.prototype.getCurrentRowIndex=function(e,t){var n,i=0,r=e.children[0];return"COLGROUP"===r.nodeName&&(r=e.children[e.children.length-1]),(0,o.default)(n=(0,a.default)(r.children)).call(n,function(e,n){e===t&&(i=n)}),i},e.prototype.getCurrentColIndex=function(e){var t,n,i=0,r="TD"===l.default(e).getNodeName()||"TH"===l.default(e).getNodeName()?e:null===(n=l.default(e).parentUntil("TD",e))||void 0===n?void 0:n.elems[0],u=l.default(r).parent();return(0,o.default)(t=(0,a.default)(u.elems[0].children)).call(t,function(e,t){e===r&&(i=t)}),i},e.prototype.getTableHtml=function(e){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+l.default(e).html()+"</table>"},e}();t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var i=n(2).__importDefault(n(3));function r(e){if(!e.length)return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML}function o(e){function t(t,n){if(n.detail>=3){var r=window.getSelection();if(r){var o=r.focusNode,a=r.anchorNode,l=i.default(null==a?void 0:a.parentElement);if(!t.isContain(i.default(o))){var u="TD"===l.elems[0].tagName?l:l.parentUntilEditor("td",e);if(u){var s=e.selection.getRange();null==s||s.setEnd(u.elems[0],u.elems[0].childNodes.length),e.selection.restoreSelection()}}}}}e.txt.eventHooks.tableClickEvents.push(t)}function a(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push(function(t){e.selection.saveRange();var i=n.getSelectionContainerElem();if(i){var o=i.getNodeTop(e),a=o.length&&o.prev().length?o.prev():null;if(a&&"TABLE"===a.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode){var l=o.next();!!l.length&&r(o)&&(o.remove(),e.selection.setRangeToElem(l.elems[0])),t.preventDefault()}}})}t.bindClickEvent=o,t.bindEventKeyboardEvent=a},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var a=n(2),l=a.__importDefault(n(38)),u=a.__importDefault(n(3)),s=n(6),c=a.__importDefault(n(402)),d=a.__importDefault(n(139)),f=a.__importDefault(n(33)),p=a.__importDefault(n(403));function h(e,t){return t?(t=n(t=i(t)),t=s.replaceSpecialSymbol(t)):t;function n(e){var t=e.match(/<pre[\s|\S]+?\/pre>/g);return null===t||(0,o.default)(t).call(t,function(t){e=e.replace(t,t.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))}),e}function i(e){var t,n=e.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!n||!n.length)return e;for(var r=(0,o.default)(t=s.deepClone(n)).call(t,function(e){return(e=e.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")}),a=0;a<n.length;a++)e=e.replace(n[a],r[a]);return i(e)}}t.formatCodeHtml=h;var m=function(e){function t(t){var n=this,i=u.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return n=e.call(this,i,t)||this,p.default(t),n}return a.__extends(t,e),t.prototype.insertLineCode=function(e){var t=this.editor,n=u.default("<code>"+e+"</code>");t.cmd.do("insertElem",n),t.selection.createRangeByElem(n,!1),t.selection.restoreSelection()},t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},t.prototype.createPanel=function(e,t){var n=c.default(this.editor,e,t);new f.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;d.default(e)?this.active():this.unActive()},t}(l.default);t.default=m},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(26));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3)),s=a.__importDefault(n(139)),c=n(7);function d(e,t,n){var i,r=l.getRandom("input-iframe"),a=l.getRandom("select"),d=l.getRandom("btn-ok");function f(t,n){var i;s.default(e)&&p(),(null===(i=e.selection.getSelectionStartElem())||void 0===i?void 0:i.elems[0].innerHTML)&&e.cmd.do("insertHTML",c.EMPTY_P);var r=n.replace(/</g,"&lt;").replace(/>/g,"&gt;");e.highlight&&(r=e.highlight.highlightAuto(r).value),e.cmd.do("insertHTML",'<pre><code class="'+t+'">'+r+"</code></pre>");var o=e.selection.getSelectionStartElem(),a=null==o?void 0:o.getNodeTop(e);0===(null==a?void 0:a.getNextSibling().elems.length)&&u.default(c.EMPTY_P).insertAfter(a)}function p(){if(s.default(e)){var t=e.selection.getSelectionStartElem(),n=null==t?void 0:t.getNodeTop(e);!n||(e.selection.createRangeByElem(n),e.selection.restoreSelection())}}var h=function(t){return e.i18next.t(t)};return{width:500,height:0,tabs:[{title:h("menus.panelMenus.code.插入代码"),tpl:'<div>\n <select name="" id="'+a+'">\n '+(0,o.default)(i=e.config.languageType).call(i,function(e){return"<option "+(n==e?"selected":"")+' value ="'+e+'">'+e+"</option>"})+'\n </select>\n <textarea id="'+r+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+t.replace(/&quot;/g,'"')+'</textarea>\n <div class="w-e-button-container">\n <button type="button" id="'+d+'" class="right">'+(s.default(e)?h("修改"):h("插入"))+"</button>\n </div>\n </div>",events:[{selector:"#"+d,type:"click",fn:function(){var t=document.getElementById(r),n=u.default("#"+a).val(),i=t.value;if(i)return!s.default(e)&&(f(n,i),!0)}}]}]}}t.default=d},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(404)),o=i.__importDefault(n(405));function a(e){r.default(e),o.default(e)}t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39));function a(e){var t;function n(n){var i="menus.panelMenus.code.",a=function(t,n){return void 0===n&&(n=i),e.i18next.t(n+t)},l=[{$elem:r.default("<span>"+a("删除代码")+"</span>"),onClick:function(e,t){return t.remove(),!0}}];(t=new o.default(e,n,l)).create()}function i(){t&&(t.remove(),t=null)}return{showCodeTooltip:n,hideCodeTooltip:i}}function l(e){var t=a(e),n=t.showCodeTooltip,i=t.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t.createShowHideFn=a,t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(7),o=i.__importDefault(n(3));function a(e){var t=e.$textElem,n=e.selection,i=e.txt.eventHooks.keydownEvents;i.push(function(e){var i;if(40===e.keyCode){var a=n.getSelectionContainerElem(),l=null===(i=t.children())||void 0===i?void 0:i.last();if("XMP"===(null==a?void 0:a.elems[0].tagName)&&"PRE"===(null==l?void 0:l.elems[0].tagName)){var u=o.default(r.EMPTY_P);t.append(u)}}}),i.push(function(i){e.selection.saveRange();var a=n.getSelectionContainerElem();if(a){var l=a.getNodeTop(e),u=null==l?void 0:l.prev(),s=null==l?void 0:l.getNextSibling();if(u.length&&"PRE"===(null==u?void 0:u.getNodeName())&&0===s.length&&0===n.getCursorPos()&&8===i.keyCode){var c=o.default(r.EMPTY_P);t.append(c)}}})}t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(23)),o=i.__importDefault(n(3)),a=i.__importDefault(n(407)),l=n(6),u=n(7),s=function(e){function t(t){var n=this,i=o.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return n=e.call(this,i,t)||this,a.default(t),n}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getRange(),n=e.selection.getSelectionContainerElem();if(null!=n&&n.length){var i=o.default(n.elems[0]),r=i.parentUntil("TABLE",n.elems[0]),a=i.children();"CODE"!==i.getNodeName()&&(r&&"TABLE"===o.default(r.elems[0]).getNodeName()||a&&0!==a.length&&"IMG"===o.default(a.elems[0]).getNodeName()&&(null==t||!t.collapsed)||this.createSplitLine())}},t.prototype.createSplitLine=function(){var e="<hr/>"+u.EMPTY_P;l.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd.do("insertHTML",e)},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(408));function r(e){i.default(e)}t.default=r},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),o=i.__importDefault(n(39));function a(e){var t;function n(n){var i=[{$elem:r.default("<span>"+e.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(t=new o.default(e,n,i)).create()}function i(){t&&(t.remove(),t=null)}return{showSplitLineTooltip:n,hideSplitLineTooltip:i}}function l(e){var t=a(e),n=t.showSplitLineTooltip,i=t.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t.default=l},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(23)),s=n(98),c=a.__importDefault(n(415)),d=a.__importDefault(n(140)),f=function(e){function t(t){var n=this,i=l.default('<div class="w-e-menu" data-title="待办事项">\n <i class="w-e-icon-checkbox-checked"></i>\n </div>');return n=e.call(this,i,t)||this,c.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;s.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},t.prototype.tryChangeActive=function(){s.isAllTodo(this.editor)?this.active():this.unActive()},t.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,o.default)(t).call(t,function(t){var n;if("P"===(null==t?void 0:t.getNodeName())){var i=d.default(t).getTodo(),r=null===(n=i.children())||void 0===n?void 0:n.getNode();i.insertAfter(t),e.selection.moveCursor(r),t.remove()}}),this.tryChangeActive()},t.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,o.default)(t).call(t,function(t){var n,i,r,o=null===(i=null===(n=t.childNodes())||void 0===n?void 0:n.childNodes())||void 0===i?void 0:i.clone(!0),a=l.default("<p></p>");a.append(o),a.insertAfter(t),null===(r=a.childNodes())||void 0===r||r.get(0).remove(),e.selection.moveCursor(a.getNode()),t.remove()})},t}(u.default);t.default=f},function(e,t,n){e.exports=n(411)},function(e,t,n){var i=n(412);e.exports=i},function(e,t,n){var i=n(413),r=Array.prototype;e.exports=function(e){var t=e.every;return e===r||e instanceof Array&&t===r.every?i:t}},function(e,t,n){n(414);var i=n(15);e.exports=i("Array").every},function(e,t,n){var i=n(5),r=n(32).every,o=n(67),a=n(22),l=o("every"),u=a("every");i({target:"Array",proto:!0,forced:!l||!u},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(98),s=a.__importDefault(n(140)),c=n(98),d=n(7);function f(e){function t(t){var n,i;if(u.isAllTodo(e)){t.preventDefault();var r=e.selection,a=r.getSelectionRangeTopNodes()[0],f=null===(n=a.childNodes())||void 0===n?void 0:n.get(0),p=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,h=r.getRange();if(null==h||!h.collapsed){var m=null==h?void 0:h.commonAncestorContainer.childNodes,g=null==h?void 0:h.startContainer,v=null==h?void 0:h.endContainer,_=null==h?void 0:h.startOffset,y=null==h?void 0:h.endOffset,b=0,D=0,A=[];null==m||(0,o.default)(m).call(m,function(e,t){e.contains(g)&&(b=t),e.contains(v)&&(D=t)}),D-b>1&&(null==m||(0,o.default)(m).call(m,function(e,t){t<=b||t>=D||A.push(e)}),(0,o.default)(A).call(A,function(e){e.remove()})),c.dealTextNode(g,_),c.dealTextNode(v,y,!1),e.selection.moveCursor(v,0)}if(""===a.text()){var x=l.default(d.EMPTY_P);return x.insertAfter(a),r.moveCursor(x.getNode()),void a.remove()}var w=r.getCursorPos(),C=u.getCursorNextNode(null==f?void 0:f.getNode(),p,w),E=s.default(l.default(C)),k=E.getInputContainer(),F=k.parent().getNode(),S=E.getTodo(),B=k.getNode().nextSibling;""===(null==f?void 0:f.text())&&(null==f||f.append(l.default("<br>"))),S.insertAfter(a),B&&""!==(null==B?void 0:B.textContent)?r.moveCursor(F):("BR"!==(null==B?void 0:B.nodeName)&&l.default("<br>").insertAfter(k),r.moveCursor(F,1))}}function n(t){var n,i;if(u.isAllTodo(e)){var r,a=e.selection,s=a.getSelectionRangeTopNodes()[0],c=null===(n=s.childNodes())||void 0===n?void 0:n.getNode(),f=l.default("<p></p>"),p=f.getNode(),h=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,m=a.getCursorPos(),g=h.previousSibling;if(""===s.text()){t.preventDefault();var v=l.default(d.EMPTY_P);return v.insertAfter(s),s.remove(),void a.moveCursor(v.getNode(),0)}"SPAN"===(null==g?void 0:g.nodeName)&&"INPUT"===g.childNodes[0].nodeName&&0===m&&(t.preventDefault(),null==c||(0,o.default)(r=c.childNodes).call(r,function(e,t){0!==t&&p.appendChild(e.cloneNode(!0))}),f.insertAfter(s),s.remove())}}function i(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&c.isTodo(t)&&""===t.text()&&(l.default(d.EMPTY_P).insertAfter(t),t.remove())}function r(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))}e.txt.eventHooks.enterDownEvents.push(t),e.txt.eventHooks.deleteUpEvents.push(i),e.txt.eventHooks.deleteDownEvents.push(n),e.txt.eventHooks.clickEvents.push(r)}t.default=f},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var i=n(2),r=i.__importDefault(n(3)),o=n(6),a=n(7),l=i.__importDefault(n(130)),u={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function s(e){var t,n,i=e.toolbarSelector,s=r.default(i),c=e.textSelector,d=e.config.height,f=e.i18next,p=r.default("<div></div>"),h=r.default("<div></div>"),m=null;null==c?(n=s.children(),s.append(p).append(h),p.css("background-color",u.toolbarBgColor).css("border",u.border).css("border-bottom",u.toolbarBottomBorder),h.css("border",u.border).css("border-top","none").css("height",d+"px")):(s.append(p),m=r.default(c).children(),r.default(c).append(h),n=h.children()),(t=r.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var g,v=e.config.placeholder;(g=v!==l.default.placeholder?r.default("<div>"+v+"</div>"):r.default("<div>"+f.t(v)+"</div>")).addClass("placeholder"),n&&n.length?(t.append(n),g.hide()):t.append(r.default(a.EMPTY_P)),m&&m.length&&(t.append(m),g.hide()),h.append(t),h.append(g),p.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),h.addClass("w-e-text-container"),h.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var _=o.getRandom("toolbar-elem");p.attr("id",_);var y=o.getRandom("text-elem");t.attr("id",y);var b=h.getBoundingClientRect().height;b!==t.getBoundingClientRect().height&&t.css("min-height",b+"px"),e.$toolbarElem=p,e.$textContainerElem=h,e.$textElem=t,e.toolbarElemId=_,e.textElemId=y}function c(e){var t="data-we-id",n=/^wangEditor-\d+$/,i=e.textSelector,o=e.toolbarSelector,a={bar:r.default("<div></div>"),text:r.default("<div></div>")};if(null==o)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(a.bar=r.default(o),!a.bar.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(a.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(i){if(a.text=r.default(i),!a.text.elems.length)throw new Error("无效的节点选择器:"+i);if(n.test(a.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}a.bar.attr(t,e.id),a.text.attr(t,e.id),e.beforeDestroy(function(){a.bar.removeAttr(t),a.text.removeAttr(t)})}t.default=s,t.selectorValidator=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(3)),r=n(7);function o(e,t){var n=e.$textElem,a=n.children();if(!a||!a.length)return n.append(i.default(r.EMPTY_P)),void o(e);var l=a.last();if(t){var u=l.html().toLowerCase(),s=l.getNodeName();if("<br>"!==u&&"<br/>"!==u||"P"!==s)return n.append(i.default(r.EMPTY_P)),void o(e)}e.selection.createRangeByElem(l,!1,!0),e.config.focus?e.selection.restoreSelection():e.selection.clearWindowSelectionRange()}t.default=o},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e){u(e),s(e),c(e)}function u(e){e.txt.eventHooks.changeEvents.push(function(){var t=e.config.onchange;if(t){var n=e.txt.html()||"";e.isFocus=!0,t(n)}e.txt.togglePlaceholder()})}function s(e){function t(t){var n=t.target,i=a.default(n),r=e.$textElem,o=e.$toolbarElem,l=r.isContain(i),u=o.isContain(i),s=o.elems[0]==t.target;if(l)e.isFocus||f(e),e.isFocus=!0;else{if(u&&!s||!e.isFocus)return;d(e),e.isFocus=!1}}e.isFocus=!1,document.activeElement===e.$textElem.elems[0]&&e.config.focus&&(f(e),e.isFocus=!0),a.default(document).on("click",t),e.beforeDestroy(function(){a.default(document).off("click",t)})}function c(e){e.$textElem.on("compositionstart",function(){e.isComposing=!0,e.txt.togglePlaceholder()}).on("compositionend",function(){e.isComposing=!1,e.txt.togglePlaceholder()})}function d(e){var t,n=e.config.onblur,i=e.txt.html()||"";(0,o.default)(t=e.txt.eventHooks.onBlurEvents).call(t,function(e){return e()}),n(i)}function f(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=l},function(e,t,n){function i(e){var t=e.config,n=t.lang,i=t.languages;if(null==e.i18next)e.i18next={t:function(e){var t=e.split(".");return t[t.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:i})}catch(r){throw new Error("i18next:"+r)}}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var a=n(2).__importDefault(n(3));n(421);var l="w-e-icon-fullscreen",u="w-e-icon-fullscreen_exit",s="w-e-full-screen-editor";t.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,r=(0,o.default)(i).call(i,"i."+l),c=e.config;r.removeClass(l),r.addClass(u),t.addClass(s),t.css("z-index",c.zIndexFullScreen);var d=i.getBoundingClientRect();n.css("height","calc(100% - "+d.height+"px)")},t.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,r=(0,o.default)(i).call(i,"i."+u),c=e.config;r.removeClass(u),r.addClass(l),t.removeClass(s),t.css("z-index","auto"),n.css("height",c.height+"px")};var c=function(e){if(!e.textSelector&&e.config.showFullScreen){var n=e.$toolbarElem,i=a.default('<div class="w-e-menu" data-title="全屏">\n <i class="'+l+'"></i>\n </div>');i.on("click",function(n){var r;(0,o.default)(r=a.default(n.currentTarget)).call(r,"i").hasClass(l)?(i.attr("data-title","取消全屏"),t.setFullScreen(e)):(i.attr("data-title","全屏"),t.setUnFullScreen(e))}),n.append(i)}};t.default=c},function(e,t,n){var i=n(20),r=n(422);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0});var a=function(e,t){var n,i=e.isEnable?e.$textElem:(0,o.default)(n=e.$textContainerElem).call(n,".w-e-content-mantle"),r=(0,o.default)(i).call(i,"[id='"+t+"']").getOffsetData().top;i.scrollTop(r)};t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(129)),r={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},o=function(){function e(){this.tier=r,this.baseZIndex=i.default.zIndex}return e.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},e.prototype.init=function(e){this.baseZIndex==i.default.zIndex&&(this.baseZIndex=e.config.zIndex)},e}();t.default=o},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(70)),a=i(n(4));(0,r.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(426)),s=n(6),c=n(7);function d(e,t){return(0,o.default)(e).call(e,function(e){var n=e.type,i=e.target,r=e.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==r||i!=t)})}var f=function(e){function t(t){var n=e.call(this,function(e,i){var r;if(e=d(e,i.target),(r=n.data).push.apply(r,e),t.isCompatibleMode)n.asyncSave();else if(!t.isComposing)return n.asyncSave()})||this;return n.editor=t,n.data=[],n.asyncSave=c.EMPTY_FN,n}return l.__extends(t,e),t.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},t.prototype.emit=function(){var e;(0,a.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,function(e){return e()})},t.prototype.observe=function(){var t=this;e.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=s.debounce(function(){t.save()},n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){t.asyncSave()})},t}(u.default);t.default=f},function(e,t,n){var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}return(0,i.default)(e.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},e.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},e.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},e}();t.default=r},function(e,t,n){var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=n(2),o=r.__importDefault(n(428)),a=r.__importDefault(n(435)),l=r.__importDefault(n(436)),u=function(){function e(e){this.editor=e,this.content=new o.default(e),this.scroll=new a.default(e),this.range=new l.default(e)}return(0,i.default)(e.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),e.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},e.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},e.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e}();t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(429)),o=i.__importDefault(n(433)),a=function(){function e(e){this.editor=e}return e.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new o.default(this.editor):this.cache=new r.default(this.editor),this.cache.observe()},e.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},e.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},e.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},e}();t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(99)),o=i.__importDefault(n(431)),a=n(432),l=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n}return i.__extends(t,e),t.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.compile=function(e){return this.save(o.default(e)),this},t.prototype.revoke=function(){return e.prototype.revoke.call(this,function(e){a.revoke(e)})},t.prototype.restore=function(){return e.prototype.restore.call(this,function(e){a.restore(e)})},t}(r.default);t.default=l},function(e,t,n){var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0;var r=function(){function e(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}return e.prototype.resetMax=function(e){e=Math.abs(e),!this.reset&&!isNaN(e)&&(this.max=e,this.reset=!0)},(0,i.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},e.prototype.outstack=function(){return this.data.shift()},e.prototype.clear=function(){return this.data.length=0,this},e}();t.CeilStack=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(27));(0,r.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var l=n(6);function u(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function s(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function c(e){var t={};return e.addedNodes.length&&(t.add=l.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=l.toArray(e.removedNodes)),t}function d(e){return e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target}}t.compileType=u,t.compileValue=s,t.complieNodes=c,t.compliePosition=d;var f=["UL","OL","H1","H2","H3","H4","H5","H6"];function p(e){var t=[],n=!1,i=[];return(0,o.default)(e).call(e,function(e,r){var o={type:u(e.type),target:e.target,attr:e.attributeName||"",value:s(e)||"",oldValue:e.oldValue||"",nodes:c(e),position:d(e)};if(t.push(o),l.UA.isFirefox){if(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType){var p=e.addedNodes[0],m={type:"node",target:p,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:p}};-1!=(0,a.default)(f).call(f,p.nodeName)?(m.nodes.add=l.toArray(p.childNodes),t.push(m)):3==n.nodeType?(h(p,i)&&(m.nodes.add=l.toArray(p.childNodes)),t.push(m)):-1==(0,a.default)(f).call(f,e.target.nodeName)&&h(p,i)&&(m.nodes.add=l.toArray(p.childNodes),t.push(m))}"node"==o.type&&1==e.removedNodes.length?(n=e.removedNodes[0],i.push(n)):(n=!1,i.length=0)}}),t}function h(e,t){for(var n=0,i=t.length-1;i>0&&e.contains(t[i]);i--)n++;return n}t.default=p},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(4)),a=i(n(94));function l(e,t){var n=e.position.target;switch(e.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,o.default)(t).call(t,function(t){e.target.insertBefore(t,n)})):(0,o.default)(t).call(t,function(t){e.target.appendChild(t)});break;case"after":(0,o.default)(t).call(t,function(t){e.target.insertBefore(t,n)});break;default:(0,o.default)(t).call(t,function(e){n.appendChild(e)})}}function u(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var i=n[t],r=i[0],u=i[1];"add"===r?(0,o.default)(u).call(u,function(t){e.target.removeChild(t)}):l(e,u)}}function s(e){var t=e.target;null==e.oldValue?t.removeAttribute(e.attr):t.setAttribute(e.attr,e.oldValue)}function c(e){e.target.textContent=e.oldValue}(0,r.default)(t,"__esModule",{value:!0}),t.restore=t.revoke=void 0;var d={node:u,text:c,attr:s};function f(e){for(var t=e.length-1;t>-1;t--){var n=e[t];d[n.type](n)}}function p(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var i=n[t],r=i[0],u=i[1];"add"===r?l(e,u):(0,o.default)(u).call(u,function(e){e.parentNode.removeChild(e)})}}function h(e){e.target.textContent=e.value}function m(e){e.target.setAttribute(e.attr,e.value)}t.revoke=f;var g={node:p,text:h,attr:m};function v(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];g[i.type](i)}}t.restore=v},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(434),r=function(){function e(e){this.editor=e,this.data=new i.TailChain}return e.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},e.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},e.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},e.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},e}();t.default=r},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(91));(0,r.default)(t,"__esModule",{value:!0}),t.TailChain=void 0;var a=function(){function e(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return e.prototype.resetMax=function(e){(e=Math.abs(e))&&(this.max=e)},(0,r.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.insertLast=function(e){var t;for(this.isRe&&((0,o.default)(t=this.data).call(t,this.point+1),this.isRe=!1),this.data.push(e);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},e.prototype.current=function(){return this.data[this.point]},e.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},e.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},e}();t.TailChain=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.last=0,n.target=t.$textElem.elems[0],n}return i.__extends(t,e),t.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){e.last=e.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.save=function(){return e.prototype.save.call(this,[this.last,this.target.scrollTop]),this},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,function(e){t.target.scrollTop=e[0]})},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,function(e){t.target.scrollTop=e[1]})},t}(i.__importDefault(n(99)).default);t.default=r},function(e,t,n){var i=n(0)(n(1));(0,i.default)(t,"__esModule",{value:!0});var r=n(2),o=r.__importDefault(n(99)),a=r.__importDefault(n(3)),l=n(6);function u(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var s=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.lastRange=u(document.createRange()),n.root=t.$textElem.elems[0],n.updateLastRange=l.debounce(function(){n.lastRange=u(n.rangeHandle)},t.config.onchangeTimeout),n}return r.__extends(t,e),(0,i.default)(t.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),t.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;(e.root===t.commonAncestorContainer||e.root.contains(t.commonAncestorContainer))&&(e.editor.isComposing||e.updateLastRange())}function n(t){("Backspace"==t.key||"Delete"==t.key)&&e.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a.default(document).on("selectionchange",t),this.editor.beforeDestroy(function(){a.default(document).off("selectionchange",t)}),e.editor.$textElem.on("keydown",n)},t.prototype.save=function(){var t=u(this.rangeHandle);return e.prototype.save.call(this,[this.lastRange,t]),this.lastRange=t,this},t.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(n){return!1}return!1},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,function(e){t.set(e[0])})},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,function(e){t.set(e[1])})},t}(o.default);t.default=s},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(29));(0,r.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e){var t,n,i=!1;function r(){if(!i){e.$textElem.hide();var r=e.zIndex.get("textContainer"),o=e.txt.html();t=a.default('<div class="w-e-content-mantle" style="z-index:'+r+'">\n <div class="w-e-content-preview w-e-text">'+o+"</div>\n </div>"),e.$textContainerElem.append(t);var l=e.zIndex.get("menu");n=a.default('<div class="w-e-menue-mantle" style="z-index:'+l+'"></div>'),e.$toolbarElem.append(n),i=!0,e.isEnable=!1}}function l(){!i||(t.remove(),n.remove(),e.$textElem.show(),i=!1,e.isEnable=!0)}return e.txt.eventHooks.changeEvents.push(function(){i&&(0,o.default)(t).call(t,".w-e-content-preview").html(e.$textElem.html())}),{disable:r,enable:l}}n(438),t.default=l},function(e,t,n){var i=n(20),r=n(439);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=function(){function e(e){var t=this;this.editor=e;var n=function(){document.activeElement===e.$textElem.elems[0]&&t.emit()};window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",n)})}return e.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;if(t){var n=this.editor.selection;n.saveRange(),n.isSelectionEmpty()||t({text:n.getSelectionText(),html:null===(e=n.getSelectionContainerElem())||void 0===e?void 0:e.elems[0].innerHTML,selection:n})}},e}();t.default=i},function(e,t,n){var i=n(0),r=i(n(1)),o=i(n(128)),a=i(n(94)),l=i(n(4));(0,r.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2).__importDefault(n(87)),s=n(6);function c(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e],n[e]=t}function d(e){var t=(0,o.default)({},s.deepClone(u.default.globalPluginsFunctionList),s.deepClone(e.pluginsFunctionList)),n=(0,a.default)(t);(0,l.default)(n).call(n,function(t){t[0];var n=t[1],i=n.intention,r=n.config;i(e,r)})}t.registerPlugin=c,t.default=d},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}]).default}(gm);var vm=mm(gm.exports),_m=1,ym=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bm=b({name:"fcEditor",props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:_m++}},watch:{disabled:function(){this.enable()},modelValue:function(e){e!==this.editor.txt.html()&&this.editor.txt.html(e||"")}},methods:{enable:function(){this.disabled?this.editor.disable():this.editor.enable()},result:function(){this.$emit("update:modelValue",this.editor.txt.html())}},mounted:function(){var e=this;this.$nextTick(function(){e.editor=new vm("#editor".concat(e.uni)),e.editor.config.zIndex=2,e.editor.config.focus=!1,e.editor.config.autoFocus=!1,e.config&&ym(e.editor.config,e.config),e.init&&e.init(e.editor),e.editor.create(),e.enable(),e.editor.txt.html(e.modelValue)})},render:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fm(Object(n),!0).forEach(function(t){hm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.$attrs);return delete e.id,x("div",V(e,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}}),Dm=function(e,t,n){ru.component(e,n||t),iu.component(e,t)};ru.component("draggable",tu),ru.component("DragTool",gf),ru.component("DragBox",Uf),ru.component("Validate",dp),ru.component("Struct",cd),ru.component("HtmlEditor",Df),ru.component("FetchConfig",kf),ru.component("FnEditor",Au),ru.component("FnInput",wf),ru.component("Required",hp),ru.component("TableOptions",Dp),ru.component("TreeOptions",Fp),ru.component("TableFormColumn",qp),ru.component("EventConfig",zu),ru.component("ColorInput",th),ru.component("SizeInput",Jp),ru.component("StyleConfig",dm),ru.component("LanguageInput",op),ru.component("ConfigItem",Rf),ru.component("FieldInput",If),ru.component("FnConfig",Hf),ru.component("FcRow",vf),ru.component("ValueInput",gp),Dm("FcEditor",bm),Dm("FcTitle",Gp),Dm("SignaturePad",Wp),Dm("TableForm",Np,Rp),Dm("FcTable",Jf,Kf);df.install=function(e){e.component("FcDesigner",df)},df.makeOptionsRule=Si,df.copyTextToClipboard=Gi,df.getInjectArg=Ui,df.localeOptions=Pi,df.localeProps=ji,df.makeRequiredRule=ki,df.makeTreeOptions=Fi,df.makeTreeOptionsRule=Bi,df.toJSON=Oi,df.formCreate=iu,df.designerForm=ru,df.component=Dm,df.useLocale=uu,df.addMenu=function(e,t){Array.isArray(e)||(e=[e]),t?nu.unshift.apply(nu,g(e)):nu.push.apply(nu,g(e))},df.addDragRule=function(e,t){Array.isArray(e)||(e=[e]),t?ko.unshift.apply(ko,g(e)):ko.push.apply(ko,g(e))},df.t=lu,df.utils={copyTextToClipboard:Gi,getInjectArg:Ui,localeOptions:Pi,localeProps:ji,makeOptionsRule:Si,makeRequiredRule:ki,makeTreeOptions:Fi,makeTreeOptionsRule:Bi,toJSON:Oi};(function(e,t){for(var n=e.split("."),i=t.split("."),r=Math.min(n.length,i.length),o=0;o<r;o++){var a=parseInt(n[o],10)-parseInt(i[o],10);if(a>0)return 1;if(a<0)return-1}n.length===i.length||(n.length,i.length)})("3.2.24",iu.version),df.version="3.3.1",("undefined"==typeof window?"undefined":y(window))<"u"&&(window.FcDesigner=df);i("default",Object.assign({name:"FormGenerator"},{__name:"index",setup:function(e){var t=C(null),n={fieldReadonly:!1};return function(e,i){return P(),G(U(df),{ref_key:"designer",ref:t,config:n,height:"calc(100vh - 160px)"},null,512)}}}))}}})}();