gis-bi/core/core-frontend/src/fcDesignerPro/index.umd.js

1549 lines
1.7 MiB
JavaScript
Raw Normal View History

2025-05-20 11:03:25 +08:00
/*!
* FormCreate商业版可视化表单设计器-让表单设计更简单
* fc-designer-pro v5.7.0
* (c) 2018-2025 FormCreate Team https://form-create.com/
* license 仅限于被授权主体个人企业或组织使用
*/
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-step-form .van-step{line-height:1.4;text-align:left}._fc-popup.van-popup{display:flex;height:100%;padding-bottom:110px;padding-top:50px}._fc-popup-title{color:#333;font-size:16px;left:0;position:absolute;text-align:center;top:16px;width:100%}._fc-popup-content{display:flex;flex:1;overflow:auto}._fc-popup-footer{bottom:0;left:0;padding:10px;position:absolute;right:0}._fc-data-table{width:100%}._fc-data-table .el-table{--el-table-header-bg-color:#e8eefc}._fc-data-table .el-pagination{display:flex;margin-top:10px}._fc-data-table .el-pagination.left{justify-content:flex-start}._fc-data-table .el-pagination.center{justify-content:center}._fc-data-table .el-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .el-image{height:60px;max-width:150px}._fc-table{overflow:auto}._fc-table>table{border-bottom:1px solid #ebeef5;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}._fc-table-form{color:var(--fc-text-color-2);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;font-weight:500;height:40px}._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-table-form-v2{color:var(--fc-text-color-2);overflow:auto;width:100%}._fc-table-form-v2 .is-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2 .form-create td .el-form-item{margin-bottom:1px}._fc-table-form-v2 .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form-v2 .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-table-form-v2 .el-form-item__label{display:none!important}._fc-tf-pro-handle{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:12px}._fc-table-form-v2 .el-cascader,._fc-table-form-v2 .el-date-editor,._fc-table-form-v2 .el-input-number,._fc-table-form-v2 .el-select,._fc-table-form-v2 .el-slider{width:100%}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .el-form-item{margin-bottom:1px}._fc-infinite-table-form .form-create .el-form-i
(function(gt,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("element-plus"),require("@form-create/element-ui"),require("@form-create/vant"),require("vant")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","@form-create/element-ui","@form-create/vant","vant"],n):(gt=typeof globalThis<"u"?globalThis:gt||self,n(gt.FcDesigner={},gt.Vue,gt.ElementPlus,gt.formCreate,gt.formCreateMobile,gt.vant))})(this,function(gt,n,ai,Ab,xb,kb){"use strict";var H5=Object.defineProperty;var W5=(gt,n,ai)=>n in gt?H5(gt,n,{enumerable:!0,configurable:!0,writable:!0,value:ai}):gt[n]=ai;var Dt=(gt,n,ai)=>(W5(gt,typeof n!="symbol"?n+"":n,ai),ai);const mp=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Ua=mp(Ab),At=mp(xb),dt={type(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef(e){return e==null},Element(e){return typeof e=="object"&&e!==null&&e.nodeType===1&&!dt.Object(e)},trueArray(e){return Array.isArray(e)&&e.length>0},Function(e){const t=this.getType(e);return t==="Function"||t==="AsyncFunction"},getType(e){const t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(e=>{dt[e]=function(t){return dt.type(t,e)}});function li(e,t){return{}.hasOwnProperty.call(e,t)}function Do(e,t,o){e[t]=o}function td(e,t={},o){let r=!1;for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){let l=t[i];if((r=Array.isArray(l))||dt.Object(l)){let d=e[i]===void 0;if(r)r=!1,d&&Do(e,i,[]);else if(l._clone&&o!==void 0)if(o)l=l.getRule(),d&&Do(e,i,{});else{Do(e,i,l._clone());continue}else d&&Do(e,i,{});e[i]=td(e[i],l,o)}else Do(e,i,l),dt.Undef(l)||(dt.Undef(l.__json)||(e[i].__json=l.__json),dt.Undef(l.__origin)||(e[i].__origin=l.__origin))}return o!==void 0&&Array.isArray(e)?e.filter(i=>!i||!i.__ctrl):e}function ot(e){return td({},{value:e}).value}function Nb(e,t,o){return`[form-create ${e}]: ${t}`+(o?`
rule: `+JSON.stringify(o.getRule?o.getRule():o):"")}function Tb(e,t){console.error(Nb("err",e,t))}const gp="[[FORM-CREATE-PREFIX-",yp="-FORM-CREATE-SUFFIX]]";function nd(e){return new Function("return "+e)()}function Vo(e,t){if(e&&dt.String(e)&&e.length>4){let o=e.trim(),r=!1;try{if(o.indexOf(yp)>0&&o.indexOf(gp)===0)o=o.replace(yp,"").replace(gp,""),r=!0;else if(o.indexOf("$FN:")===0)o=o.substring(4),r=!0;else if(o.indexOf("$EXEC:")===0)o=o.substring(6),r=!0;else if(o.indexOf("$GLOBAL:")===0){const l=o.substring(8);return o=function(...d){const c=d[0].api.getGlobalEvent(l);if(c)return c.call(this,...d)},o.__json=e,o.__inject=!0,o}else{if(o.indexOf("$FNX:")===0)return o=nd("function($inject){"+o.substring(5)+"}"),o.__json=e,o.__inject=!0,o;(!t&&o.indexOf("function ")===0&&o!=="function "||!t&&o.indexOf("function(")===0&&o!=="function(")&&(r=!0)}if(!r)return e;let i;try{i=nd(o)}catch{i=nd("function "+o)}return i.__json=e,i}catch(i){Tb(`\u89E3\u6790\u5931\u8D25:${o}
err: ${i}`);return}}return e}function id(e){const t=e.replace(/(-[a-z])/g,function(o){return o.replace("-","").toLocaleUpperCase()});return Ha(t)}function Ha(e){return e.replace(e[0],e[0].toLowerCase())}const vp={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",info:"\u63D0\u793A\u4FE1\u606F",ignore:"\u5FFD\u7565\u5B57\u6BB5",native:"\u662F\u5426\u663E\u793A\u6807\u9898",control:"\u7EC4\u4EF6\u8054\u52A8",labelShow:"\u662F\u5426\u663E\u793A",labelPosition:"\u6807\u7B7E\u7684\u4F4D\u7F6E",labelStyle:"\u6807\u7B7E\u7684\u6837\u5F0F",labelSuffix:"\u6807\u7B7E\u7684\u540E\u7F00",formItem:"\u914D\u7F6E\u8868\u5355\u9879",formItemSpan:"\u7EC4\u4EF6\u5BBD\u5EA6",row:"\u6574\u884C",globalEvent:"\u5168\u5C40\u4E8B\u4EF6",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90",globalClass:"\u5168\u5C40\u6837\u5F0F",globalConfig:"\u5168\u5C40\u914D\u7F6E",size:"\u8868\u5355\u7684\u5C3A\u5BF8",event:"\u8868\u5355\u4E8B\u4EF6",labelWidth:"\u6807\u7B7E\u7684\u5BBD\u5EA6",hideRequiredAsterisk:"\u9690\u85CF\u5FC5\u586B\u5B57\u6BB5\u7684\u6807\u7B7E\u65C1\u8FB9\u7684\u7EA2\u8272\u661F\u53F7",formItemMarginBottom:"\u8868\u5355\u9879\u7684\u4E0B\u8FB9\u8DDD",showMessage:"\u663E\u793A\u6821\u9A8C\u9519\u8BEF\u4FE1\u606F",inlineMessage:"\u4EE5\u884C\u5185\u5F62\u5F0F\u5C55\u793A\u6821\u9A8C\u4FE1\u606F",submitBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u63D0\u4EA4\u6309\u94AE",resetBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u91CD\u7F6E\u6309\u94AE",appendChild:"\u6DFB\u52A0\u5B50\u7EA7",formMode:"\u8868\u5355\u6A21\u5F0F",formName:"\u8868\u5355\u540D\u79F0",ignoreHiddenFields:"\u63D0\u4EA4\u8868\u5355\u65F6\u5FFD\u7565\u88AB\u9690\u85CF\u7684\u5B57\u6BB5",previewMode:"\u9605\u8BFB\u6A21\u5F0F",componentMode:"\u751F\u6210\u7EC4\u4EF6",sfcMode:"\u751F\u6210SFC",document:"\u5E2E\u52A9\u6587\u6863",controlDocument:"\u9700\u8981\u66F4\u8BE6\u7EC6\u7684\u914D\u7F6E\u65B9\u6CD5\uFF1F\u8BF7\u67E5\u770B{doc}",onSubmit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",onReset:"\u8868\u5355\u91CD\u7F6E\u540E\u89E6\u53D1",onCreated:"\u8868\u5355\u7EC4\u4EF6\u521D\u59CB\u5316\u5B8C\u6BD5\u540E\u89E6\u53D1",onMounted:"\u8868\u5355\u7EC4\u4EF6\u6E32\u67D3\u5B8C\u6BD5\u540E\u89E6\u53D1",onReload:"\u8868\u5355\u6E32\u67D3\u89C4\u5219\u91CD\u8F7D\u540E\u89E6\u53D1",onChange:"\u8868\u5355\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",beforeSubmit:"\u8868\u5355\u9A8C\u8BC1\u901A\u8FC7\u65F6\u89E6\u53D1",beforeFetch:"\u8FDC\u7A0B\u6570\u636E\u8BF7\u6C42\u53D1\u9001\u524D\u89E6\u53D1"},ai:{name:"\u667A\u80FD\u8868\u5355\u52A9\u7406",info:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u667A\u80FD\u8868\u5355\u52A9\u624B\uFF01\u6211\u53EF\u4EE5\u5E2E\u52A9\u60A8\u5FEB\u901F\u751F\u6210\u548C\u4FEE\u6539\u8868\u5355\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u9AD8\u6548\u5730\u5B8C\u6210\u8868\u5355\u8BBE\u8BA1\u3002",try:"\u4F60\u53EF\u4EE5\u8BD5\u7740\u95EE\u6211",change:"\u6362\u4E00\u6362",loading:"\u6B63\u5728\u6839\u636E\u60A8\u7684\u9700\u6C42\u5236\u4F5C\u8868\u5355\uFF0C\u8BF7\u7A0D\u5019...",fail:"\u5236\u4F5C\u8868\u5355\u65F6\u9047\u5230\u95EE\u9898\uFF0C\u8BF7\u5C1D\u8BD5\u8C03\u6574\u5185\u5BB9\u3002",success:"\u5DF2\u5904\u7406\u5B8C\u6BD5\uFF01",placeholder:"\u8BF7\u63CF\u8FF0\u60A8\u7684\u9700\u6C42"},warning:{name:"\u7EC4\u4EF6\u7684\u552F\u4E00\u6807\u8BC6\uFF0C\u7528\u4E8E\u83B7\u53D6\u548C\u4FEE\u6539\u8BE5\u7EC4\u4EF6\u7684\u914D\u7F6E\u89C4\u5219\u3002\u901A\u8FC7\u8BE5\u6807\u8BC6\u53EF\u4EE5\u7CBE\u786E\u5B9A\u4F4D\u7EC4\u4EF6\uFF0C\u5B9E\u73B0\u5BF9\u7EC4\u4EF6\u5C5E\u6027\u548C\u884C\u4E3A\u7684\u63A7\u5236\u3002",field:"\u7EC4\u4EF6\u5BF9\u5E94\u7684\u5B57\u6BB5\u540D\u7528\u4E8E\u4E0E\u7EC4\u4EF6\u7684\u6570\u636E\u8FDB\u884C\u7ED1\u5B9A\u3002\u5B57\u6BB5\u540D\u9700\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u4EE5\u786E\u4FDD\u80FD\u591F\u6B63\u786E\u8BC6\u522B\u3002",formList:"\u7528\u4E8E\u7BA1\u7406\u548C\u5207\u6362\u8868\u5355\u6A21\u677F\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u4E1A\u52A1\u573A\u666F\u4E2D\u5FEB\u901F\u5207\u6362\u548C\u914D\u7F6E\u8868\u5355\u3002",fetch:"\u8FDC\u7A0B\u6570\u636E\u901A\u8FC7\u8FDC\u7A0B\
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script>
import formCreate from "@form-create/element-ui";
export default {
components: {
formCreate: formCreate.$form()
},
data () {
const option = formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
//option.preview = true;
return {
formData: {},
fapi: null,
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
option: option
}
},
methods: {
onSubmit (formData) {
//todo \u63D0\u4EA4\u8868\u5355
}
}
}
<\/script>`}function Bb(e,t){return`<template>
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script setup>
import {ref} from "vue";
import formCreate from "@form-create/element-ui";
const option = ref(formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const rule = ref(formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const fapi = ref(null);
const formData = ref({});
const onSubmit = (formData) => {
//todo \u63D0\u4EA4\u8868\u5355
}
<\/script>`}function Rb(e,t){return`<template>
<form-create-mobile
driver="elm"
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create-mobile>
</template>
<script>
import formCreate from "@form-create/vant";
export default {
components: {
formCreateMobile: formCreate.$form()
},
data () {
const option = formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
//option.preview = true;
return {
formData: {},
fapi: null,
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
option: option
}
},
methods: {
onSubmit (formData) {
//todo \u63D0\u4EA4\u8868\u5355
}
}
}
<\/script>`}function $b(e,t){return`<template>
<form-create-mobile
driver="elm"
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create-mobile>
</template>
<script setup>
import {ref} from "vue";
import formCreateMobile from "@form-create/vant";
const option = ref(formCreateMobile.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const rule = ref(formCreateMobile.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const fapi = ref(null);
const formData = ref({});
const onSubmit = (formData) => {
//todo \u63D0\u4EA4\u8868\u5355
}
<\/script>`}function rd(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function G5(e){}function Qn(e,t,o,r=[]){t.id||(t.id=1),o&&o--;for(let i=0;i<3;i++){const l={[t.label]:e+o*10+(i+1),[t.value]:""+t.id++};o&&Qn(e+(i+1)+"-",t,o,l.children=[]),r.push(l)}return r}function ad(e){return[{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateNative",_fc_important_prop:!1,col:{show:!1},wrap:{show:!1},value:!1,props:{activeValue:!1,inactiveValue:!0}},{type:"input",field:"formCreateTitle",title:e("form.title"),_fc_license:"KrrSN2KlZ2tanmqEGlAE",_fc_important_prop:!1,col:{show:!1},slot:"append"},{type:"select",field:"formCreateWrap>class",title:e("form.labelPosition"),_fc_important_prop:!1,col:{show:!1},slot:"append",options:it(e,[{value:"fc-wrap-top",label:"top"},{value:"fc-wrap-left",label:"left"},{value:"fc-wrap-right",label:"right"}])},{type:"SizeInput",field:"formCreateWrap>labelWidth",_fc_important_prop:!1,col:{show:!1},value:"",slot:"append",title:e("form.labelWidth")},{type:"SizeInput",field:"formCreateWrap>style>marginBottom",_fc_important_prop:!1,col:{show:!1},value:"",slot:"append",title:e("form.formItemMarginBottom")}]}]}function Pi(e,t,o,r){const i=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],l=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TableOptions",field:"formCreate"+Ro(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{column:[{label:"label",key:o||"label"},{value:!0,label:"value",key:r||"value"}],keyValue:o||"label"}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{type:"button"},control:l}}function Ln(e,t,o){const r=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],i=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"Struct",field:"formCreate"+Ro(t).replace(".",">"),title:o||e("props.options"),_fc_important_prop:!0,wrap:{show:!1}}]}];return{type:"radio",title:o||e("props.options"),field:"_optionType",value:2,options:r,props:{type:"button"},control:i}}function Bo(e,t,o,r){const i=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],l=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TreeOptions",field:"formCreate"+Ro(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{columns:{label:o,value:r},keyValue:o}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{type:"button"},control:l}}function Ro(e){return e.replace(e[0],e[0].toLocaleUpperCase())}const En=function(e){const t=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(e));return t&&bp[t[1].toLowerCase()]?bp[t[1].toLowerCase()](e):e},bp={object:function(e){var t=[];for(var o in e)!li(e,o)||t.push(En(o)+": "+(e[o]!=null?En(e[o]):"null"));return`{
`+t.join(`,
`)+`
}`},function:function(e){e=""+e;var t=/^ *([\w]+) *\(/.exec(e);return t&&t[1]!=="function"?"function "+e:e},array:function(e){for(var t=0,o=[];t<e.length;t++)o[t]=e[t]!=null?En(e[t]):"null";return"["+o.join(", ")+"]"},string:function(e){for(var t=e.split(""),o=0;o<t.length;o++){var r=t[o];r>=" "?r==="\\"?t[o]="\\\\":r==='"'&&(t[o]='\\"'):t[o]=r===`
`?"\\n":r==="\r"?"\\r":r===" "?"\\t":r==="\b"?"\\b":r==="\f"?"\\f":(r=r.charCodeAt(),"\\u00"+(r>15?1:0)+r%16)}return'"'+t.join("")+'"'}},wp=function(e){if(e&&typeof e=="object"){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let o=e[t];(Array.isArray(o)||dt.Object(o))&&wp(o),dt.String(o)&&(e[t]=Vo(o))}}return e};function $o(e,t,o){t=(t||"").split(".");let r=0,i=t.length;for(;e!=null&&r<i;)e=e[t[r++]];return r&&r===i&&e!==void 0?e:o}const Fb=e=>(t,o)=>Ib(t,o,n.unref(e)),Ib=(e,t,o)=>$o(o,e,"").replace(/\{(\w+)\}/g,(r,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),Pb=e=>{const t=n.computed(()=>n.unref(e).name),o=n.computed(()=>Ro(id(t.value||""))),r=n.isRef(e)?e:n.ref(e);return{lang:t,name:o,locale:r,t:Fb(e)}},ld=e=>Pb(n.computed(()=>(n.isRef(e)?e.value:e)||vp)),it=(e,t,o)=>t.map(r=>(r.label=e((o||"props")+"."+(r.label||r.value))||r.label,r)),$e=(e,t,o)=>o.map(r=>(r.field==="formCreate$required"?r.title=e("validate.required")||r.title:r.field&&r.field!=="_optionType"&&(r.title=e("com."+t+"."+r.field)||r.title),r.type==="template"&&dt.trueArray(r.children)&&(r.children=$e(e,t,r.children)),r)),sd=e=>{const t=[];return e&&e.forEach(o=>{if(!o._fc_drag_skip)if(o._fc_drag_tag){const r={id:o.__fc__.id,rule:o,children:sd(o.children)};r.children.length||delete r.children,t.push(r)}else t.push(...sd(o.children))}),t},Cp=e=>{const t=o=>{const r=[];return o&&o.forEach(i=>{i._fc_drag_skip||(i.field?(i.children=t(i.children||[]),i.children.length||delete i.children,r.push(i)):r.push(...t(i.children||[])))}),r};return t(e)},_p=e=>{const t=o=>{const r=[];return o&&o.forEach(i=>{if(typeof i=="object")if(i._fc_drag_tag){const l={_fc_id:i._fc_id,_fc_drag_tag:i._fc_drag_tag==="_"?void 0:i._fc_drag_tag,type:i.type,field:i.field,title:i.title,name:i.name,slot:i.slot,props:{...i.props||{}},children:t(i.children||[])};i.children&&typeof i.children[0]=="string"&&(l.content=i.children[0]),l.children.length||delete l.children,r.push(l)}else r.push(...t(i.children))}),r};return t(e)};function rn(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 si(e){return["",null,void 0].indexOf(e)!==-1}function Ep(e){return e.replace(/[\ .*+?^${}()|[\]\\]/g,"\\$&")}function Mb(e,t){const o=e.split("."),r=t.split("."),i=Math.min(o.length,r.length);for(var l=0;l<i;l++){var d=parseInt(o[l],10)-parseInt(r[l],10);if(d>0)return 1;if(d<0)return-1}return o.length===r.length?0:o.length<r.length?-1:1}function di(e){const 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{console.log("Oops, unable to copy")}od("\u5DF2\u590D\u5236!","success"),document.body.removeChild(t)}function Ga(e){return e.filter((t,o)=>e.indexOf(t)===o)}let Lb=0;function We(){const e=370+ ++Lb;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+e.toString(36)+"c"}function jb(e,t){return function(o,r,i){const l={...o||{}};Object.keys(l).forEach(d=>{si(l[d])&&delete l[d]}),i.getRule(e).props.info=Object.keys(l).length>0?t("struct.configured"):""}}function Sp({t:e}){const t=We();return[{type:"input",field:">formName",value:"",title:e("form.formName")},{type:"radio",field:"labelPosition",value:"left",title:e("form.labelPosition"),options:it(e,[{value:"left",label:"left"},{value:"right",label:"right"},{value:"top",label:"top"}])},{type:"radio",field:"size",value:"small",title:e("form.size"),options:it(e,[{value:"large",label:"large"},{value:"default",label:"default"},{value:"small",label:"small"}])},{type:"input",field:"labelSuffix",value:"",title:e("form.labelSuffix"),style:{width:"150px"}},{type:"SizeInput",field:"labelWidth",value:"125px",title:e("form.labelWidth")},{type:"SizeInput",f
const file = $inject.args[1];
file.url = res.data.url;`}}},props(e,{t}){return $e(t,Ed+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:it(t,[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}])},{type:"switch",field:"multiple"},{type:"input",field:"name"},{type:"PromptInput",field:"accept",props:{options:[{label:t("props.image"),value:"image/*"},{label:t("props.document"),value:".pdf,.doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{label:t("props.video"),value:"video/*"},{label:t("props.audio"),value:"audio/*"}]}},{type:"input",field:"action"},{type:"FnInput",field:"beforeUpload",props:{body:!0,button:!0,fnx:!0,args:[rn(t)],name:"beforeUpload"}},{type:"FnInput",field:"beforeRemove",props:{body:!0,button:!0,fnx:!0,args:[rn(t)],name:"beforeRemove"}},{type:"FnInput",field:"onSuccess",warning:t("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[rn(t)],name:"onSuccess"}},{type:"TableOptions",field:"headers",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"TableOptions",field:"data",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"withCredentials"},{type:"switch",field:"autoUpload",value:!0},{type:"inputNumber",field:"limit",props:{min:0}}])}},x1="\u7A7F\u68AD\u6846",Sd="elTransfer",k1={menu:"main",icon:"icon-transfer",label:x1,name:Sd,input:!0,event:["change","leftCheckChange","rightCheckChange"],validate:["array"],condition:function(e){return{type:"select",options:e.props.data?e.props.data.map(t=>({label:t.label,value:t.key})):[]}},rule({t:e}){return{type:Sd,field:We(),title:e("com.elTransfer.name"),info:"",$required:!1,props:{data:Qn(e("props.option"),{label:"label",value:"key"},1)}}},props(e,{t}){return $e(t,Sd+".props",[Pi(t,"props.data","label","key"),{type:"switch",field:"filterable"},{type:"input",field:"filterPlaceholder"},{type:"select",field:"targetOrder",warning:t("com.elTransfer.props.targetOrderInfo"),options:[{label:"original",value:"original"},{label:"push",value:"push"},{label:"unshift",value:"unshift"}]},{type:"TableOptions",field:"titles",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2}},{type:"TableOptions",field:"buttonTexts",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2}}])}},N1="\u6811\u5F62\u63A7\u4EF6",Ad="tree",T1={menu:"main",icon:"icon-tree",label:N1,name:Ad,input:!0,event:["nodeClick","nodeContextmenu","checkChange","check","currentChange","nodeExpand","nodeCollapse","nodeDragStart","nodeDragEnter","nodeDragLeave","nodeDragOver","nodeDragEnd","nodeDrop"],validate:["string","number","array"],condition:function(e){return{type:"cascader",options:e.props.data||[],props:{props:{checkStrictly:!0,emitPath:!1,value:"id"}}}},sfc(e){e.type="elTree",e._sfc.modelField="defaultCheckedKeys"},rule({t:e}){return{type:Ad,field:We(),title:e("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:Qn(e("props.option"),{label:"label",value:"id"},3)}}},props(e,{t}){return $e(t,Ad+".props",[Bo(t,"props.data","label","id"),{type:"input",field:"emptyText"},{type:"TableOptions",field:"props",props:{column:[{label:t("props.key"),key:"label"},{label:t("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"}])}},D1="\u63D0\u793A",xd="elAlert",V1={menu:"aide",icon:"icon-alert",label:D1,name:xd,event:["close"],rule({t:e}){return{type:xd,props:{title:e("com.elAlert.name"),description:e("com.elAlert.description"),type:"success",effect:"dark"},children:[]}},props(e,{t}){return $
overflow: auto;
}
._fc-table > table {
width: 100%;
height: 100%;
overflow: hidden;
table-layout: fixed;
border: 1px solid #EBEEF5;
border-bottom: 0 none;
border-right: 0 none;
}
._fc-table tr {
min-height: 50px;
}
._fc-table td {
padding: 5px;
min-height: 50px;
min-width: 80px;
position: relative;
box-sizing: border-box;
overflow-wrap: break-word;
overflow: hidden;
border: 0 none;
border-right: 1px solid #EBEEF5;
border-bottom: 1px solid #EBEEF5;
}`,handle(e){const t=(e.children||[]).reduce((m,v)=>(m[v.slot]||(m[v.slot]=[]),m[v.slot].push(v),delete v.slot,m),{}),{row:o,col:r,style:i,class:l,layout:d}=e.props.rule,c={},u=[];d.forEach(m=>{const v=m.row||1,C=m.col||1,S=`${m.top}:${m.left}`;c[S]={row:v,col:C};for(let w=0;w<v;w++)for(let E=0;E<C;E++){if(w===0&&w===E)continue;const b=`${m.top+w}:${m.left+E}`;t[b]&&(t[S]=(t[S]||[]).concat(t[b]),delete t[b]),u.push(b)}});const h=[];for(let m=0;m<o;m++){const v=[];for(let C=0;C<r;C++){const S=`${m}:${C}`;if(u.indexOf(S)>-1)continue;const w=t[S];v.push({type:"td",props:{rowspan:""+(c[S]?c[S].row:1),colspan:""+(c[S]?c[S].col:1)},style:i[S],class:l[S],children:w})}h.push({type:"tr",children:v})}return{type:"elCol",props:{span:24},style:e.style,class:e.class,children:[{type:"div",class:"_fc-table",children:[{type:"table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:h}]}]}}},rule(){return{type:Ld,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(e,{t}){return $e(t,Ld+".props",[{type:"switch",field:"border",value:!0},{type:"switch",field:"mini"},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},pw="\u8868\u683C\u8868\u5355",jd="tableForm",hw={menu:"subform",icon:"icon-table-form",label:pw,name:jd,input:!0,mask:!1,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("el-input"),{size:"small",modelValue:r.props.label,"onUpdate:modelValue":i=>{r.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(o=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:o.label,required:o.required||!1,width:o.style.width||"",color:o.style.color||""},children:o.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(o=>({label:o.props.label,required:o.props.required,style:{width:o.props.width,color:o.props.color},rule:o.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:jd,field:We(),title:e("com.tableForm.name"),info:"",props:{},children:[]}},props(e,{t}){return $e(t,jd+".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}}])}},mw="\u8868\u683C\u8868\u5355Pro",gw="tableFormPro",Ip=e=>e.map(t=>{let o=t.children||[];const r=o.filter(i=>i._fc_drag_tag==="tableFormColumn2");return r.length>0&&(o=Ip(r)),{header:t.props.header,label:t.props.label,fixed:t.props.fixed,required:t.props.required,hidden:t.props.hidden,style:{width:t.props.width,color:t.props.color},[r.length?"children":"rule"]:o}}),Pp=e=>e.map(t=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn2",props:{header:t.header,label:t.label,fixed:t.fixed,required:t.required||!1,hidden:t.hidden||!1,width:t.style.width||"",color:t.style.color||""},children:t.children?Pp(t.children):t.rule||[]})),yw={menu:"subform",icon:"icon-table-form",label:mw,name:gw,input:!0,mask:!1,subForm:"array",languageKey:["add","delete","operation","dataEmpty"],event:["change","add","delete","handleClick"],children:"tableFormColumn2",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("el-input"),{size:"small",modelValue:r.props.label,"onUpdate:modelValue":i=>{r.props.label=i}})}]},loadRule(e){e.props||(e.props={}),e.children=Pp(e.props.columns||[]),delete e.props.columns},parseRule(e){e.props.columns=Ip(e.children||[]),e.children=[]},sfc:!1,rule({t:e}){return{type:"tableFormPro",field:We(),title:e("com.tableFormPro.name"),info:"",props:{button:{open:!0,column:[{key:"delete",name:"\u5220\u9664",type:"danger",size:"small",prop:["link"]}]}},children:[]}},props(e,{t}){const o=function(r){return $e(t,"tableForm.props",r)};return $e(t,"tableForm.props",[{type:"ConfigItem",props:{label:t("com.dataTable.props.button")},col:{show:!0},children:[{
callback();}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:""}],_fc_template:"duration",_fc_id:"id_Fhqtm50itwf6bgc",name:"ref_Fzsym50itwf6bhc",display:!0,hidden:!1},{type:"select",field:"F730m50itwf6bcc",title:"\u5F00\u59CB\u65F6\u95F4\u6BB5",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fnj8m50itwf6bkc",name:"ref_Fyjym50itwf6blc",display:!0,hidden:!1,wrap:{title:!1},style:{marginLeft:"10px",width:"150px"}}]},{type:"fcInlineForm",_fc_id:"id_Fxbnm50iw4ttccc",name:"ref_Fhwmm50iw4ttcdc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fv92m50itwf6bdc",title:"\u7ED3\u675F\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){let startTime = this.api.getValue('Fz0um50itwf6bbc');
if(startTime && value && Date.parse(startTime) > Date.parse(value)) {
callback(false);
return;
}
callback()}-FORM-CREATE-SUFFIX]]`,mode:"min",message:"\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u7ED3\u675F\u65F6\u95F4"}],_fc_template:"duration",_fc_id:"id_Fu8im50itwf6bqc",name:"ref_Fy17m50itwf6brc",display:!0,hidden:!1},{type:"select",field:"Fx9gm50itwf6bec",title:"\u7ED3\u675F\u65F6\u95F4\u6BB5",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fxrxm50itwf6buc",name:"ref_Fehcm50itwf6bvc",display:!0,hidden:!1,wrap:{title:!1},style:{marginLeft:"10px",width:"150px"}}]},{type:"fcInlineForm",_fc_id:"id_Ffb0m50j0g8vcec",name:"ref_Ftpym50j0g8vcfc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"inputNumber",field:"F5q8m50itwf6bfc",title:"\u65F6\u957F",$required:!1,props:{controls:!1},_fc_drag_tag:"inputNumber",_fc_template:"duration",_fc_id:"id_Fo5cm50itwf7c0c",name:"ref_Fnnvm50itwf7c1c",display:!0,hidden:!1,computed:{value:"MAX(IF(Fz0um50itwf6bbc && Fv92m50itwf6bdc && TIMESTAMP(Fv92m50itwf6bdc) > TIMESTAMP(Fz0um50itwf6bbc), DIFFDAYS(Fz0um50itwf6bbc, Fv92m50itwf6bdc), 0) + IF(Fx9gm50itwf6bec && F730m50itwf6bcc, Fx9gm50itwf6bec - F730m50itwf6bcc + 0.5, 0), 0);"}},{type:"div",native:!0,children:["\u5929"],_fc_drag_tag:"text",_fc_template:"duration",_fc_id:"id_Fatsm50itwf7c4c",name:"ref_Fh2rm50itwf7c5c",display:!0,hidden:!1,style:{marginTop:"5px",marginLeft:"10px"}}],style:{alignItems:"flex-start"}}]},Pw={menu:"template",name:"col3",label:"\u4E09\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},Mw={menu:"template",name:"col4",label:"\u56DB\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},Lw={menu:"template",name:"table43",label:"\u56DB\u884C\u4E09\u5217\u8868\u683C",autoField:!1,template:[{type:"fcTable",props:{rule:{row:4,col:3,style:{},class:{},layout:[]}},display:!0,hidden:!1,_fc_drag_tag:"fcTable"}]},jw="\u6570\u636E\u8868\u683C",Za="dataTable",zw=()=>{const e=[];for(let t=0;t<30;t++)e.push({date:"2016-05-12",name:"Tom "+(10+t),state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036"});return e},Uw=e=>{if(e.format==="tag")return{type:"elTag",props:{disableTransitions:!0},_sfc:{content:`{{scope.row.${e.prop}}}`}};if(e.format==="image")return{type:"div",class:"_fc-data-table-img-list",children:[{type:"template",children:[{type:"el-image",props:{previewTeleported:!0,fit:"cover"},_sfc:{attr:{":initialIndex":"i",":src":"src",":previewSrcList":`Array.isArray(scope.row.${e.prop}) ? scope.row.${e.prop} : [scope.row.${e.prop}]`}}}],_sfc:{attr:{"v-for":`(src, i) in Array.isArray(scope.row.${e.prop}) ? scope.row.${e.prop} : [scope.row.${e.prop}]`}}}]}},Hw={menu:"main",icon:"icon-data-table",label:jw,name:Za,languageKey:["operation"],event:["cellMouseEnter","cellMouseLeave","handleClick","rowClick","rowDblclick","headerClick","filterChange","expandChange","sortChange","selectionChange"],sfc:{style:`._fc-data-table {
width: 100%;
}
._fc-data-table .el-table {
--el-table-header-bg-color: #e8eefc;
}
._fc-data-table .el-pagination {
display: flex;
margin-top: 10px;
}
._fc-data-table .el-pagination.left {
justify-content: flex-start;
}
._fc-data-table .el-pagination.left {
justify-content: center;
}
._fc-data-table .el-pagination.right {
justify-content: flex-end;
}
._fc-data-table ._fc-data-table-img-list .el-image {
max-width: 150px;
height: 60px;
}`,handle(e){const{column:t,button:o,page:r,index:i,selection:l,data:d}=e.props,c=[];["column","button","index","globalDataKey","fetch","page"].forEach(h=>{delete e.props[h]}),t.forEach(h=>{const m=Uw(h),v={type:"elTableColumn",props:{label:h.label,prop:h.prop,width:h.width,align:h.align,className:h.className,fixed:h.fixed,sortable:h.sortable},_sfc:{attr:{"#default":"scope"}}};m&&(v.children=[m]),c.push(v)}),o&&o.open===!0&&o.column&&c.push({type:"elTableColumn",props:{label:o.label||"\u64CD\u4F5C",fixed:o.fixed===void 0?"right":o.fixed,width:o.width||"100px"},_sfc:{attr:{"#default":"scope"}},children:o.column.map(h=>{const m=h.prop||[],v={type:"elButton",props:{type:h.type,size:h.size},_sfc:{content:h.name}};return m.forEach(C=>{v.props[C]=!0}),v})}),l&&c.unshift({type:"elTableColumn",props:{type:"selection",width:"50px"}}),i&&c.unshift({type:"elTableColumn",props:{type:"index",width:"50px"}});const u=[{type:"elTable",props:{data:[],...e.props},_fc_id:e._fc_id,children:c}];if(r&&r.open===!0){const h=r.props&&r.props.pageSize||20;r.props&&delete r.props.pageSize,u.push({type:"elPagination",class:r.position||"right",_fc_id:e._fc_id,props:{layout:"prev, pager, next",...r.props||{}},_sfc:{prop:{total:(d||[]).length,currentPage:1,pageSize:h}}})}return{type:"div",class:"_fc-data-table",children:u}}},rule(){return{type:Za,native:!0,props:{height:"500px",button:{},data:zw(),column:[{format:"default",prop:"date",label:"Date",width:"150"},{format:"default",prop:"name",label:"Name",width:"120"},{format:"default",prop:"state",label:"State",width:"120"},{format:"default",prop:"city",label:"City",width:"320"},{format:"default",prop:"address",label:"Address",width:"600"},{format:"default",prop:"zip",label:"Zip",width:"120"}]}}},props(e,{t}){const o=function(i){return $e(t,Za+".props",i)},r=o([{type:"input",field:"page>totalField",value:"count"},{type:"input",field:"page>dataField",value:"list"},{type:"input",field:"page>orderField",value:"order"},{type:"input",field:"page>orderByField",value:"orderBy"},{type:"input",field:"page>pageField",value:"page"},{type:"input",field:"page>pageSizeField",value:"limit"}]);return $e(t,Za+".props",[{type:"radio",field:"_optionType",value:0,options:[{label:t("fetch.optionsType.struct"),value:0},{label:t("fetch.optionsType.fetch"),value:2},{label:t("fetch.optionsType.global"),value:1}],props:{type:"button"},control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"globalDataKey"},...r]},{value:2,rule:[{type:"FetchConfig",field:"fetch"},...r]},{value:0,rule:[{type:"Struct",title:t("com.dataTable.props._optionType"),field:"data",_fc_important_prop:!0,props:{validate(i){return!i||Array.isArray(i)}}}]}]},{type:"TableColumnConfig",field:"column",_fc_important_prop:!0},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"ConfigItem",props:{label:t("com.dataTable.props.button")},col:{show:!0},children:[{type:"HideConfig",title:t("com.dataTable.props.button"),wrap:{show:!1},col:{show:!1},field:"button>open"},{type:"template",slot:"append",children:o([{type:"TableButtonConfig",col:{show:!1},field:"button>column"},{type:"input",col:{show:!1},field:"button>label",value:"\u64CD\u4F5C"},{type:"select",col:{show:!1},field:"button>fixed",options:[{label:t("com.dataTable.fixed.default"),value:!1},{label:t("com.dataTable.fixed.left"),value:"left"},{label:t("com.dataTable.fixed.right"),value:"right"}],value:"right"},{type:"SizeInput",col:{show:!1},field:"button>width",value:"100px"}])}]},{type:"ConfigItem",props:{label:t("com.dataTable.props.page")},col:{show:!0},children:[{type:"HideConfig",wrap:{show:!1},col:{show:!1},title:t("com.dataTable.props.page"),field:"page>open"},{type:"template",slot:"append",children:o([{type:"select",field:"page>position",value:"right",col:{show:!1},options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",col:{show:!1},field:"page>props>pageSize",value:20},{type:"switch",col:{show:!1},field:"page>props>small"},{type:"switch",col
display: inline-flex;
vertical-align: middle;
}
._fc-line-form .el-select, ._fc-line-form .el-slider {
width: 220px;
}`,handle(e){return{type:"div",class:"_fc-line-form",children:e.children}}},rule(){return{type:zp,props:{}}},props(){return[]}},qw="\u56FE\u7247",Gd="elImage",eC={menu:"aide",icon:"icon-image",label:qw,name:Gd,inline:!0,rule(){return{type:Gd,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(e,{t}){return $e(t,Gd+".props",[{type:"input",field:"src"},{type:"TableOptions",field:"previewSrcList",props:{column:[{label:t("com.elImage.props.src"),key:"value"}],valueType:"string"}}])}},tC={menu:"layout",icon:"icon-flex",name:"fcFlex2",label:"\u76D2\u5B50\u5E03\u5C40",drag:!0,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},actions:[{label:"com.fcFlex2.horizontal",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="center":e.style.justifyContent="center"}},{label:"com.fcFlex2.vertical",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.alignItems="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.justifyContent="center":e.style.alignItems="center"}},{label:"com.fcFlex2.left",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-start"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-start":e.style.justifyContent="flex-start"}},{label:"com.fcFlex2.right",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-end"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-end":e.style.justifyContent="flex-end"}},{label:"com.fcFlex2.reset",handler(e){e.style?(delete e.style.flexDirection,delete e.style.justifyContent,delete e.style.alignContent,delete e.style.flexWrap,delete e.style.alignItems,e.style.display="flex"):e.style={}}}],rule(){return{type:"fcCell",style:{display:"block",width:"100%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")},{type:"SizeInput",field:"formCreateStyle>height",title:t("style.height")}]}},nC="\u8868\u5355\u9879",Kd="elFormItem",iC={menu:"container",icon:"icon-form-item",label:nC,name:Kd,drag:!0,mask:!1,event:!1,rule({t:e}){return{type:Kd,props:{label:e("com.elFormItem.name")},children:[]}},props(e,{t}){return $e(t,Kd+".props",[{type:"input",field:"label"},{type:"SizeInput",field:"labelWidth"},{type:"select",field:"formCreateClass",title:t("form.labelPosition"),options:it(t,[{value:"fc-wrap-top",label:"top"},{value:"fc-wrap-left",label:"left"},{value:"fc-wrap-right",label:"right"}])},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},oC="\u97F3\u9891\u64AD\u653E\u5668",Yd="audioBox",rC={menu:"aide",icon:"icon-audio",label:oC,name:Yd,mask:!1,event:["pause","play","ended"],rule(){return{type:Yd,props:{src:"https://static.form-create.com/res/demo.mp3",type:"audio/mpeg"}}},props(e,{t}){return $e(t,Yd+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"MP3",value:"audio/mpeg"},{label:"OGG",value:"audio/ogg"},{label:"AAC",value:"audio/aac"},{label:"WAV",value:"audio/wav"},{label:"WMA",value:"audio/x-ms-wma"},{label:"WEBA",value:"audio/webm"},{label:"FLAC",value:"audio/flac"},{label:"ALAC",value:"audio/x-alac"},{label:"AMR",value:"audio/amr"},{label:"MIDI",value:"audio/midi"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"loop"},{type:"switch",field:"muted"},{type:"switch",field:"controls"},{type:"select",field:"preload",options:it(t,[{label:"auto",value:"auto"},{label:"metadata",value:"metadata"},{label:"none",value:"none"}],"com.audioBox.preloadOpt")}])}},aC="\u89C6\u9891\u64AD\u653E\u5668",Qd="videoBox",lC={menu:"aide",icon:"icon-video",label:aC,name:
\u4F7F\u7528 # \u53F7\u521B\u5EFA\u6807\u9898
\`\`\`
# \u4E00\u7EA7\u6807\u9898
## \u4E8C\u7EA7\u6807\u9898
### \u4E09\u7EA7\u6807\u9898
\`\`\`
### \u7C97\u4F53
\u4F7F\u7528 ** \u5305\u56F4\u6587\u672C
\`\`\`
**\u7C97\u4F53\u6587\u672C**
\`\`\`
### \u659C\u4F53
\u4F7F\u7528 * \u5305\u56F4\u6587\u672C
\`\`\`
*\u659C\u4F53\u6587\u672C*
\`\`\`
### \u5220\u9664\u7EBF
\u4F7F\u7528 ~~ \u5305\u56F4\u6587\u672C
\`\`\`
~~\u5220\u9664\u7EBF\u6587\u672C~~
\`\`\`
### \u94FE\u63A5
\u4F7F\u7528 [\u6587\u672C](\u94FE\u63A5) \u683C\u5F0F
\`\`\`
[\u94FE\u63A5\u6587\u672C](https://example.com)
\`\`\`
### \u56FE\u7247
\u4F7F\u7528 ![\u63CF\u8FF0|\u5BBD\u5EA6x\u9AD8\u5EA6](\u56FE\u7247\u94FE\u63A5) \u683C\u5F0F
\`\`\`
![\u56FE\u7247\u56FA\u5B9A|400x300](https://example.com/image.jpg)
![\u56FE\u7247](https://example.com/image.jpg)
\`\`\`
### \u4EE3\u7801\u5757
\u4F7F\u7528 \`\`\` \u5305\u56F4\u4EE3\u7801
\`\`\`\`
\`\`\`js
function hello() {
console.log('Hello');
}
\`\`\`
\`\`\`\`
### \u884C\u5185\u4EE3\u7801
\u4F7F\u7528 \` \u5305\u56F4\u4EE3\u7801
\`\`\`
\`\u884C\u5185\u4EE3\u7801\`
\`\`\`
### \u5F15\u7528
\u4F7F\u7528 > \u5F00\u59CB\u5F15\u7528
\`\`\`
> \u8FD9\u662F\u4E00\u6BB5\u5F15\u7528\u6587\u672C
\`\`\`
### \u65E0\u5E8F\u5217\u8868
\u4F7F\u7528 - \u5F00\u59CB\u5217\u8868\u9879
\`\`\`
- \u9879\u76EE1
- \u9879\u76EE2
- \u9879\u76EE3
\`\`\`
### \u6709\u5E8F\u5217\u8868
\u4F7F\u7528 1. \u5F00\u59CB\u5217\u8868\u9879
\`\`\`
1. \u7B2C\u4E00\u9879
2. \u7B2C\u4E8C\u9879
3. \u7B2C\u4E09\u9879
\`\`\`
### \u8868\u683C
\u4F7F\u7528 | \u5206\u9694\u5217
\`\`\`
| \u5DE6\u5BF9\u9F50 | \u5C45\u4E2D\u5BF9\u9F50 | \u53F3\u5BF9\u9F50 |
|:-------|:-------:|-------:|
| \u6570\u636E1 | \u6570\u636E2 | \u6570\u636E3 |
\`\`\`
### \u6C34\u5E73\u5206\u5272\u7EBF
\u4F7F\u7528 --- \u521B\u5EFA\u5206\u5272\u7EBF
\`\`\`
---
\`\`\`
### \u5F3A\u5236\u6362\u884C
\u4F7F\u7528 <br/> \u6807\u7B7E\u5B9E\u73B0\u591A\u6B21\u6362\u884C
\`\`\`
\u7B2C\u4E00\u884C<br/><br/>\u7B2C\u4E09\u884C
\`\`\`
`}}},props(e,{t}){return[{type:"HtmlEditor",field:"content",title:t("props.content"),props:{text:!0}}]}},TC="\u7EDF\u8BA1\u680F",tl="elStatistic",Kp=[Yb,Jb,Zb,bC,CC,e1,Hb,Gb,n1,o1,f1,Dp,s1,a1,Op,c1,h1,E1,A1,k1,T1,Z1,kC,L1,Hw,AC,yC,Tw,{menu:"main",icon:"icon-data-select",label:"\u5B50\u8868\u5355\u9009\u62E9\u5668",name:"fcDataSelect",drag:!0,input:!0,mask:!1,subForm:"scope",slot:[{name:"search",type:"fcInlineForm"},{name:"table",type:"dataTable"}],event:["change","clear"],validate:["object","array"],parseRule(e){e.children.forEach(t=>{t.slot==="search"?(delete t.slot,e.props.searchRule=t):t.slot==="table"&&(delete t.slot,e.props.tableRule=t)}),delete e.children},loadRule(e){e.children=[e.props.searchRule,e.props.tableRule],e.children[0].slot="search",e.children[1].slot="table",delete e.props.searchRule,delete e.props.tableRule},rule({t:e}){return{type:"fcDataSelect",field:We(),title:e("com.fcDataSelect.name"),info:"",$required:!1,props:{title:e("com.select.title"),labelKey:"name",valueKey:"name"}}},props(e,{t}){return $e(t,"select.props",[{type:"input",field:"title"},{type:"input",field:"labelKey",value:"label"},{type:"input",field:"valueKey",value:"value"},{type:"switch",field:"autoLoad"},{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"}])}},z1,H1,aw,hw,yw,Sw,Aw,_w,Ew,bw,Yw,Jw,iC,V1,P1,ew,EC,B1,cw,{menu:"aide",icon:"icon-statistic",label:TC,name:tl,inline:!0,easySlots:["prefix","suffix"],rule({t:e}){return{type:tl,props:{value:99e3,title:e("com."+tl+".name")}}},props(e,{t}){return $e(t,tl+".props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"prefix"},{type:"input",field:"suffix"}])}},C1,Vw,Bw,$w,eC,rC,lC,dC,uC,pC,mC,NC,{menu:"chart",icon:"icon-chart-line",label:"\u6298\u7EBF\u56FE",name:"lineChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"line",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return $e(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-area",label:"\u4F53\u79EF\u56FE",name:"areaChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"area",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return $e(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-bar",label:"\u67F1\u72B6\u56FE",name:"barChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"bar",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]}]}}}},props(e,{t}){return $e(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"ColorInput",field
const downloadJson = $inject.args[0]?.downloadJson;
const themeJson = $inject.args[0]?.themeJson;
const waterMarkText = 'ECHARTS';
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
canvas.width = canvas.height = 100;
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.globalAlpha = 0.08;
ctx.font = '20px';
ctx.translate(50, 50);
ctx.rotate(-Math.PI / 4);
ctx.fillText(waterMarkText, 0, 0);
return {
backgroundColor: {
type: 'pattern',
image: canvas,
repeat: 'repeat'
},
tooltip: {},
title: [
{
text: '\u5728\u7EBF\u6784\u5EFA',
subtext: '\u603B\u8BA1 ' + builderJson.all,
left: '25%',
textAlign: 'center'
},
{
text: '\u5404\u7248\u672C\u4E0B\u8F7D',
subtext:
'\u603B\u8BA1 ' +
Object.keys(downloadJson).reduce(function (all, key) {
return all + downloadJson[key];
}, 0),
left: '75%',
textAlign: 'center'
},
{
text: '\u4E3B\u9898\u4E0B\u8F7D',
subtext:
'\u603B\u8BA1 ' +
Object.keys(themeJson).reduce(function (all, key) {
return all + themeJson[key];
}, 0),
left: '75%',
top: '50%',
textAlign: 'center'
}
],
grid: [
{
top: 50,
width: '50%',
bottom: '45%',
left: 10,
containLabel: true
},
{
top: '55%',
width: '50%',
bottom: 0,
left: 10,
containLabel: true
}
],
xAxis: [
{
type: 'value',
max: builderJson.all,
splitLine: {
show: false
}
},
{
type: 'value',
max: builderJson.all,
gridIndex: 1,
splitLine: {
show: false
}
}
],
yAxis: [
{
type: 'category',
data: Object.keys(builderJson.charts),
axisLabel: {
interval: 0,
rotate: 30
},
splitLine: {
show: false
}
},
{
gridIndex: 1,
type: 'category',
data: Object.keys(builderJson.components),
axisLabel: {
interval: 0,
rotate: 30
},
splitLine: {
show: false
}
}
],
series: [
{
type: 'bar',
stack: 'chart',
z: 3,
label: {
position: 'right',
show: true
},
data: Object.keys(builderJson.charts).map(function (key) {
return builderJson.charts[key];
})
},
{
type: 'bar',
stack: 'chart',
silent: true,
itemStyle: {
color: '#eee'
},
data: Object.keys(builderJson.charts).map(function (key) {
return builderJson.all - builderJson.charts[key];
})
},
{
type: 'bar',
stack: 'component',
xAxisIndex: 1,
yAxisIndex: 1,
z: 3,
label: {
position: 'right',
show: true
},
data: Object.keys(builderJson.components).map(function (key) {
return builderJson.components[key];
})
},
{
type: 'bar',
stack: 'component',
silent: true,
xAxisIndex: 1,
yAxisIndex: 1,
itemStyle: {
color: '#eee'
},
data: Object.keys(builderJson.components).map(function (key) {
return builderJson.all - builderJson.components[key];
})
},
{
type: 'pie',
radius: [0, '30%'],
center: ['75%', '25%'],
data: Object.keys(downloadJson).map(function (key) {
return {
name: key.replace('.js', ''),
value: downloadJson[key]
};
})
},
{
type: 'pie',
radius: [0, '30%'],
center: ['75%', '75%'],
data: Object.keys(themeJson).map(function (key) {
return {
name: key.replace('.js', ''),
value: themeJson[key]
};
})
}
]
};`}}},props(e,{t}){return $e(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"FnInput",field:"loadOptions",props:{body:!0,button:!0,fnx:!0,args:[rn(t)],name:"loadOptions"}}])}},g1,fw,Zw,tC,xw,kw,F1,R1,G1,Y1,ow,Ww,Gw,Pw,Mw,Lw,Fw,Iw,y1,b1,J1,nw,sw];function DC(e){return{icon:e.field?"icon-input":"icon-cell",label:e.field||e.type,name:"_",mask:!0,handleBtn:["delete"],rule(){return e},props(){return[]}}}/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Yp(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function ci(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Yp(Object(o),!0).forEach(function(r){VC(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Yp(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function nl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nl=function(t){return typeof t}:nl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function VC(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ei(){return Ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ei.apply(this,arguments)}function OC(e,t){if(e==null)return{};var o={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(o[i]=e[i]);return o}function BC(e,t){if(e==null)return{};var o=OC(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}var RC="1.14.0";function Si(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ai=Si(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Br=Si(/Edge/i),Qp=Si(/firefox/i),Rr=Si(/safari/i)&&!Si(/chrome/i)&&!Si(/android/i),Jp=Si(/iP(ad|od|hone)/i),$C=Si(/chrome/i)&&Si(/android/i),Xp={capture:!1,passive:!1};function _t(e,t,o){e.addEventListener(t,o,!Ai&&Xp)}function yt(e,t,o){e.removeEventListener(t,o,!Ai&&Xp)}function il(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{return!1}return!1}}function FC(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ui(e,t,o,r){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&il(e,t):il(e,t))||r&&e===o)return e;if(e===o)break}while(e=FC(e))}return null}var Zp=/\s+/g;function On(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Zp," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(Zp," ")}}function lt(e,t,o){var r=e&&e.style;if(r){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),t===void 0?o:o[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=o+(typeof o=="string"?"":"px")}}function Fo(e,t){var o="";if(typeof e=="string")o=e;else do{var r=lt(e,"transform");r&&r!=="none"&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function qp(e,t,o){if(e){var r=e.getElementsByTagName(t),i=0,l=r.length;if(o)for(;i<l;i++)o(r[i],i);return r}return[]}function fi(){var e=document.scrollingElement;return e||document.documentElement}function Qt(e,t,o,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var l,d,c,u,h,m,v;if(e!==window&&e.parentNode&&e!==fi()?(l=e.getBoundingClientRect(),d=l.top,c=l.left,u=l.bottom,h=l.right,m=l.height,v=l.width):(d=0,c=0,u=window.innerHeight,h=window.innerWidth,m=window.innerHeight,v=window.innerWidth),(t||o)&&e!==window&&(i=i||e.parentNode,!Ai))do if(i&&i.getBoundingClientRect&&(lt(i,"transform")!=="none"||o&&lt(i,"position")!=="static")){var C=i.getBoundingClientRect();d-=C.top+parseInt(lt(i,"border-top-width")),c-=C.left+parseInt(lt(i,"border-left-width")),u=d+l.height,h=c+l.width;break}while(i=i.parentNode);if(r&&e!==window){var S=Fo(i||e),w=S&&S.a,E=S&&S.d;S&&
* @form-create/component-elm-select v3.2.18
* (c) 2018-2025 xaboy
* Github https://github.com/xaboy/form-create with select
* Released under the MIT License.
*/function Oh(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function B_(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Oh(Object(o),!0).forEach(function(r){R_(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Oh(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function bl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bl=function(t){return typeof t}:bl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(e)}function R_(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function $_(e,t){return Object.keys(e).reduce(function(o,r){return(!t||t.indexOf(r)===-1)&&(o[r]=e[r]),o},{})}var wl={type:function(t,o){return Object.prototype.toString.call(t)==="[object "+o+"]"},Undef:function(t){return t==null},Element:function(t){return bl(t)==="object"&&t!==null&&t.nodeType===1&&!wl.Object(t)},trueArray:function(t){return Array.isArray(t)&&t.length>0},Function:function(t){var o=this.getType(t);return o==="Function"||o==="AsyncFunction"},getType:function(t){var o=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(o)[1]},empty:function(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(function(e){wl[e]=function(t){return wl.type(t,e)}});function F_(e,t){return{}.hasOwnProperty.call(e,t)}var I_="fcSelect",P_=n.defineComponent({name:I_,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},type:String},emits:["update:modelValue","fc.el"],setup:function(t){var o=n.toRef(t.formCreateInject,"options",[]),r=n.toRef(t,"modelValue"),i=function(){return Array.isArray(o.value)?o.value:[]};return{options:i,value:r}},render:function(){var t=this,o,r,i=function(u,h){return n.createVNode(n.resolveComponent("ElOption"),n.mergeProps(u,{key:""+h+"-"+u.value}),null)},l=function(u,h){return n.createVNode(n.resolveComponent("ElOptionGroup"),{label:u.label,key:""+h+"-"+u.label},{default:function(){return[wl.trueArray(u.options)&&u.options.map(function(v,C){return i(v,C)})]}})},d=this.options();return n.createVNode(n.resolveComponent("ElSelect"),n.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(u){return t.$emit("update:modelValue",u)},ref:"el"}),B_({default:function(){return[d.map(function(u,h){return F_(u||"","options")?l(u,h):i(u,h)}),(o=(r=t.$slots).default)===null||o===void 0?void 0:o.call(r)]}},$_(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}});/*!
* @form-create/component-elm-tree v3.2.18
* (c) 2018-2025 xaboy
* Github https://github.com/xaboy/form-create with tree
* Released under the MIT License.
*/function M_(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}var L_="fcTree",j_=n.defineComponent({name:L_,inheritAttrs:!1,formCreateParser:{mergeProp:function(t){var o=t.prop.props;o.nodeKey||(o.nodeKey="id"),o.props||(o.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(){if(!!this.$refs.tree){var t;this.type==="selected"?t=this.$refs.tree.getCurrentKey():t=this.$refs.tree.getCheckedKeys(),this.$emit("update:modelValue",t)}},setValue:function(){if(!!this.$refs.tree){var t=this.type;t==="selected"?this.$refs.tree.setCurrentKey(this.modelValue):this.$refs.tree.setCheckedKeys(M_(this.modelValue))}}},render:function(){return n.createVNode(n.resolveComponent("ElTree"),n.mergeProps(this.$attrs,{ref:"tree",onCheck:this.updateValue,onNodeClick:this.updateValue}),this.$slots)},mounted:function(){this.setValue(),this.$emit("fc.el",this.$refs.tree)}});/*!
* @form-create/component-elm-upload v3.2.18
* (c) 2018-2025 xaboy
* Github https://github.com/xaboy/form-create with upload
* Released under the MIT License.
*/function Bh(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function Ac(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Bh(Object(o),!0).forEach(function(r){z_(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Bh(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Cl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cl=function(t){return typeof t}:Cl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function z_(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _l(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function U_(e,t){return Object.keys(e).reduce(function(o,r){return(!t||t.indexOf(r)===-1)&&(o[r]=e[r]),o},{})}function H_(e,t){t===void 0&&(t={});var o=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",o==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var W_="._fc-upload{width:100%}._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}";H_(W_);var Rh={name:"IconUpload"},G_={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K_=n.createElementVNode("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),Y_=[K_];function Q_(e,t,o,r,i,l){return n.openBlock(),n.createElementBlock("svg",G_,Y_)}Rh.render=Q_;function $h(e,t){return Cl(e)==="object"?e:{url:e,is_string:!0,name:J_(e),uid:t}}function Fh(e){return Ac(Ac({},e),{},{file:e,value:e})}function J_(e){return(""+e).split("/").pop()}var X_="fcUpload",Z_=n.defineComponent({name:X_,inheritAttrs:!1,formCreateParser:{toFormValue:function(t){return _l(t)},toValue:function(t,o){return o.prop.props.limit===1?t[0]||"":t}},props:{previewMask:void 0,onPreview:Function,httpRequest:Function,modalTitle:String,listType: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=_l(this.modelValue).map($h).map(Fh)},watch:{modelValue:function(t){this.fileList=_l(t).map($h).map(Fh)}},methods:{handlePreview:function(t){this.onPreview?this.onPreview.apply(this,arguments):this.listType==="text"?window.open(t.url):(this.previewImage=t.url,this.previewVisible=!0)},update:function(t){var o=t.map(function(r){return r.is_string?r.url:r.value||r.url}).filter(function(r){return r!==void 0});this.$emit("update:modelValue",o)},handleCancel:function(){this.previewVisible=!1},handleChange:function(t,o){this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),t.status==="success"&&this.update(o)},handleRemove:function(t,o){this.$emit.apply(this,["remove"].concat(Array.prototype.slice.call(arguments))),this.update(o)},doHttpRequest:function(t){if(this.httpRequest)return this.httpRequest(t);t.source="upload",this.formCreateInject.api.fetch(t)}},render:function(){var t,o,r=this,i=_l(this.modelValue).length;return n.createVNode("div",{class:"_fc-upload"},[n.createVNode(n.resolveComponent("ElUpload"),n.mergeProps({key:i},this.$attrs,{listType:this.listType||"picture-card",class:{"_fc-exceed":this.$attrs.limit?this.$attrs.limit<=i:!1},onPreview:this.handlePreview,onChange:this.handleChange,onRemove:this.handleRemove,httpRequest:this.doHttpRequest,fileList:this.fileList,ref:"upload"}),Ac({default:function(){return[((t=(o=r.$slot
* Signature Pad v5.0.7 | https://github.com/szimek/signature_pad
* (c) 2025 Szymon Nowak | Released under the MIT license
*/class Sl{constructor(t,o,r,i){if(isNaN(t)||isNaN(o))throw new Error(`Point is invalid: (${t}, ${o})`);this.x=+t,this.y=+o,this.pressure=r||0,this.time=i||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class Nc{static fromPoints(t,o){const r=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Nc(t[1],r,i,t[2],o.start,o.end)}static calculateControlPoints(t,o,r){const i=t.x-o.x,l=t.y-o.y,d=o.x-r.x,c=o.y-r.y,u={x:(t.x+o.x)/2,y:(t.y+o.y)/2},h={x:(o.x+r.x)/2,y:(o.y+r.y)/2},m=Math.sqrt(i*i+l*l),v=Math.sqrt(d*d+c*c),C=u.x-h.x,S=u.y-h.y,w=m+v==0?0:v/(m+v),E={x:h.x+C*w,y:h.y+S*w},b=o.x-E.x,g=o.y-E.y;return{c1:new Sl(u.x+b,u.y+g),c2:new Sl(h.x+b,h.y+g)}}constructor(t,o,r,i,l,d){this.startPoint=t,this.control2=o,this.control1=r,this.endPoint=i,this.startWidth=l,this.endWidth=d}length(){let o=0,r,i;for(let l=0;l<=10;l+=1){const d=l/10,c=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(l>0){const h=c-r,m=u-i;o+=Math.sqrt(h*h+m*m)}r=c,i=u}return o}point(t,o,r,i,l){return o*(1-t)*(1-t)*(1-t)+3*r*(1-t)*(1-t)*t+3*i*(1-t)*t*t+l*t*t*t}}class FE{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,o,r){this._et.addEventListener(t,o,r)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,o,r){this._et.removeEventListener(t,o,r)}}function IE(e,t=250){let o=0,r=null,i,l,d;const c=()=>{o=Date.now(),r=null,i=e.apply(l,d),r||(l=null,d=[])};return function(...h){const m=Date.now(),v=t-(m-o);return l=this,d=h,v<=0||v>t?(r&&(clearTimeout(r),r=null),o=m,i=e.apply(l,d),r||(l=null,d=[])):r||(r=window.setTimeout(c,v)),i}}class Hr extends FE{constructor(t,o={}){var r,i,l;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=d=>{!this._isLeftButtonPressed(d,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(d))},this._handleMouseMove=d=>{if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))},this._handleMouseUp=d=>{this._isLeftButtonPressed(d)||this._strokeEnd(this._pointerEventToSignatureEvent(d))},this._handleTouchStart=d=>{d.targetTouches.length!==1||this._drawingStroke||(d.cancelable&&d.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(d)))},this._handleTouchMove=d=>{if(d.targetTouches.length===1){if(d.cancelable&&d.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(d))}},this._handleTouchEnd=d=>{d.targetTouches.length===0&&(d.cancelable&&d.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(d)))},this._handlePointerDown=d=>{!d.isPrimary||!this._isLeftButtonPressed(d)||this._drawingStroke||(d.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(d)))},this._handlePointerMove=d=>{if(!!d.isPrimary){if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}d.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))}},this._handlePointerUp=d=>{!d.isPrimary||this._isLeftButtonPressed(d)||(d.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(d)))},this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle=(r=o.throttle)!==null&&r!==void 0?r:16,this.minDistance=(i=o.minDistance)!==null&&i!==void 0?i:5,this.dotSize=o.dotSize||0,this.penColor=o.penColor||"black",this.backgroundColo
]`).replace("lheading",qh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,nm=/^( {2,}|\\)\n(?!\s*$)/,fS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xl=/[\p{P}\p{S}]/u,Fc=/[\s\p{P}\p{S}]/u,im=/[^\s\p{P}\p{S}]/u,pS=Et(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Fc).getRegex(),om=/(?!~)[\p{P}\p{S}]/u,hS=/(?!~)[\s\p{P}\p{S}]/u,mS=/(?:[^\s\p{P}\p{S}]|~)/u,gS=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,rm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,yS=Et(rm,"u").replace(/punct/g,xl).getRegex(),vS=Et(rm,"u").replace(/punct/g,om).getRegex(),am="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bS=Et(am,"gu").replace(/notPunctSpace/g,im).replace(/punctSpace/g,Fc).replace(/punct/g,xl).getRegex(),wS=Et(am,"gu").replace(/notPunctSpace/g,mS).replace(/punctSpace/g,hS).replace(/punct/g,om).getRegex(),CS=Et("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,im).replace(/punctSpace/g,Fc).replace(/punct/g,xl).getRegex(),_S=Et(/\\(punct)/,"gu").replace(/punct/g,xl).getRegex(),ES=Et(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),SS=Et(Rc).replace("(?:-->|$)","-->").getRegex(),AS=Et("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",SS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kl=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xS=Et(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",kl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lm=Et(/^!?\[(label)\]\[(ref)\]/).replace("label",kl).replace("ref",Bc).getRegex(),sm=Et(/^!?\[(ref)\](?:\[\])?/).replace("ref",Bc).getRegex(),kS=Et("reflink|nolink(?!\\()","g").replace("reflink",lm).replace("nolink",sm).getRegex(),Ic={_backpedal:Wr,anyPunctuation:_S,autolink:ES,blockSkip:gS,br:nm,code:uS,del:Wr,emStrongLDelim:yS,emStrongRDelimAst:bS,emStrongRDelimUnd:CS,escape:cS,link:xS,nolink:sm,punctuation:pS,reflink:lm,reflinkSearch:kS,tag:AS,text:fS,url:Wr},NS={...Ic,link:Et(/^!?\[(label)\]\((.*?)\)/).replace("label",kl).getRegex(),reflink:Et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kl).getRegex()},Pc={...Ic,emStrongRDelimAst:wS,emStrongLDelim:vS,url:Et(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},TS={...Pc,br:Et(nm).replace("{2,}","*").getRegex(),text:Et(Pc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Nl={normal:$c,gfm:sS,pedantic:dS},Kr={normal:Ic,gfm:Pc,breaks:TS,pedantic:NS},DS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},dm=e=>DS[e];fun
`).map(l=>{const d=l.match(o.other.beginningSpace);if(d===null)return l;const[c]=d;return c.length>=i.length?l.slice(i.length):l}).join(`
`)}class Tl{constructor(t){Dt(this,"options");Dt(this,"rules");Dt(this,"lexer");this.options=t||co}space(t){const o=this.rules.block.newline.exec(t);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(t){const o=this.rules.block.code.exec(t);if(o){const r=o[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Yr(r,`
`)}}}fences(t){const o=this.rules.block.fences.exec(t);if(o){const r=o[0],i=OS(r,o[3]||"",this.rules);return{type:"code",raw:r,lang:o[2]?o[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):o[2],text:i}}}heading(t){const o=this.rules.block.heading.exec(t);if(o){let r=o[2].trim();if(this.rules.other.endingHash.test(r)){const i=Yr(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const o=this.rules.block.hr.exec(t);if(o)return{type:"hr",raw:Yr(o[0],`
`)}}blockquote(t){const o=this.rules.block.blockquote.exec(t);if(o){let r=Yr(o[0],`
`).split(`
`),i="",l="";const d=[];for(;r.length>0;){let c=!1;const u=[];let h;for(h=0;h<r.length;h++)if(this.rules.other.blockquoteStart.test(r[h]))u.push(r[h]),c=!0;else if(!c)u.push(r[h]);else break;r=r.slice(h);const m=u.join(`
`),v=m.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${m}`:m,l=l?`${l}
${v}`:v;const C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,d,!0),this.lexer.state.top=C,r.length===0)break;const S=d.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){const w=S,E=w.raw+`
`+r.join(`
`),b=this.blockquote(E);d[d.length-1]=b,i=i.substring(0,i.length-w.raw.length)+b.raw,l=l.substring(0,l.length-w.text.length)+b.text;break}else if((S==null?void 0:S.type)==="list"){const w=S,E=w.raw+`
`+r.join(`
`),b=this.list(E);d[d.length-1]=b,i=i.substring(0,i.length-S.raw.length)+b.raw,l=l.substring(0,l.length-w.raw.length)+b.raw,r=E.substring(d.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:d,text:l}}}list(t){let o=this.rules.block.list.exec(t);if(o){let r=o[1].trim();const i=r.length>1,l={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const d=this.rules.other.listItemRegex(r);let c=!1;for(;t;){let h=!1,m="",v="";if(!(o=d.exec(t))||this.rules.block.hr.test(t))break;m=o[0],t=t.substring(m.length);let C=o[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),S=t.split(`
`,1)[0],w=!C.trim(),E=0;if(this.options.pedantic?(E=2,v=C.trimStart()):w?E=o[1].length+1:(E=o[2].search(this.rules.other.nonSpaceChar),E=E>4?1:E,v=C.slice(E),E+=o[1].length),w&&this.rules.other.blankLine.test(S)&&(m+=S+`
`,t=t.substring(S.length+1),h=!0),!h){const _=this.rules.other.nextBulletRegex(E),x=this.rules.other.hrRegex(E),k=this.rules.other.fencesBeginRegex(E),T=this.rules.other.headingBeginRegex(E),V=this.rules.other.htmlBeginRegex(E);for(;t;){const I=t.split(`
`,1)[0];let F;if(S=I,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),F=S):F=S.replace(this.rules.other.tabCharGlobal," "),k.test(S)||T.test(S)||V.test(S)||_.test(S)||x.test(S))break;if(F.search(this.rules.other.nonSpaceChar)>=E||!S.trim())v+=`
`+F.slice(E);else{if(w||C.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(C)||T.test(C)||x.test(C))break;v+=`
`+S}!w&&!S.trim()&&(w=!0),m+=I+`
`,t=t.substring(I.length+1),C=F.slice(E)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(c=!0));let b=null,g;this.options.gfm&&(b=this.rules.other.listIsTask.exec(v),b&&(g=b[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),l.items.push({type:"list_item",raw:m,task:!!b,checked:g,loose:!1,text:v,tokens:[]}),l.raw+=m}const u=l.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let h=0;h<l.items.length;h++)if(this.lexer.state.top=!1,l.items[h].tokens=this.lexer.blockTokens(l.items[h].text,[]),!l.loose){const m=l.items[h].tokens.filter(C=>C.type==="space"),v=m.length>0&&m.some(C=>this.rules.other.anyLine.test(C.raw));l.loose=v}if(l.loose)for(let h=0;h<l.items.length;h++)l.items[h].loose=!0;return l}}html(t){const o=this.rules.block.html.exec(t);if(o)return{type:"html",block:!0,raw:o[0],pre:o[1]==="pre"||o[1]==="script"||o[1]==="style",text:o[0]}}def(t){const o=this.rules.block.def.exec(t);if(o){const r=o[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=o[2]?o[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):o[3];return{type:"def",tag:r,raw:o[0],href:i,title:l}}}table(t){var c;const o=this.rules.block.table.exec(t);if(!o||!this.rules.other.tableDelimiter.test(o[2]))return;const r=um(o[1]),i=o[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(c=o[3])!=null&&c.trim()?o[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],d={type:"table",raw:o[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const u of i)this.rules.other.tableAlignRight.test(u)?d.align.push("right"):this.rules.other.tableAlignCenter.test(u)?d.align.push("center"):this.rules.other.tableAlignLeft.test(u)?d.align.push("left"):d.align.push(null);for(let u=0;u<r.length;u++)d.header.push({text:r[u],tokens:this.lexer.inline(r[u]),header:!0,align:d.align[u]});for(const u of l)d.rows.push(um(u,d.header.length).map((h,m)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:d.align[m]})));return d}}lheading(t){const o=this.rules.block.lheading.exec(t);if(o)return{type:"heading",raw:o[0],depth:o[2].charAt(0)==="="?1:2,text:o[1],tokens:this.lexer.inline(o[1])}}paragraph(t){const o=this.rules.block.paragraph.exec(t);if(o){const r=o[1].charAt(o[1].length-1)===`
`?o[1].slice(0,-1):o[1];return{type:"paragraph",raw:o[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const o=this.rules.block.text.exec(t);if(o)return{type:"text",raw:o[0],text:o[0],tokens:this.lexer.inline(o[0])}}escape(t){const o=this.rules.inline.escape.exec(t);if(o)return{type:"escape",raw:o[0],text:o[1]}}tag(t){const o=this.rules.inline.tag.exec(t);if(o)return!this.lexer.state.inLink&&this.rules.other.startATag.test(o[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(t){const o=this.rules.inline.link.exec(t);if(o){const r=o[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const d=Yr(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{const d=VS(o[2],"()");if(d===-2)return;if(d>-1){const u=(o[0].indexOf("!")===0?5:4)+o[1].length+d;o[2]=o[2].substring(0,d),o[0]=o[0].substring(0,u).trim(),o[3]=""}}let i=o[2],l="";if(this.options.pedantic){const d=this.rules.other.pedanticHrefTitle.exec(i);d&&(i=d[1],l=d[3])}else l=o[3]?o[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),fm(o,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},o[0],this.lexer,this.rules)}}reflink(t,o){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=o[i.toLowerCase()];if(!l){const d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return fm(r,l,r[0],this.lexer,this.rules)}}emStrong(t,o,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const d=[...i[0]].length-1;let c,u,h=d,m=0;const v=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,o=o.slice(-1*t.length+d);(i=v.exec(o))!=null;){if(c=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!c)continue;if(u=[...c].length,i[3]||i[4]){h+=u;continue}else if((i[5]||i[6])&&d%3&&!((d+u)%3)){m+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+m);const C=[...i[0]][0].length,S=t.slice(0,d+i.index+C+u);if(Math.min(d,u)%2){const E=S.slice(1,-1);return{type:"em",raw:S,text:E,tokens:this.lexer.inlineTokens(E)}}const w=S.slice(2,-2);return{type:"strong",raw:S,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const o=this.rules.inline.code.exec(t);if(o){let r=o[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),l=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&l&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:o[0],text:r}}}br(t){const o=this.rules.inline.br.exec(t);if(o)return{type:"br",raw:o[0]}}del(t){const o=this.rules.inline.del.exec(t);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(t){const o=this.rules.inline.autolink.exec(t);if(o){let r,i;return o[2]==="@"?(r=o[1],i="mailto:"+r):(r=o[1],i=r),{type:"link",raw:o[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r,i;let o;if(o=this.rules.inline.url.exec(t)){let l,d;if(o[2]==="@")l=o[0],d="mailto:"+l;else{let c;do c=o[0],o[0]=(i=(r=this.rules.inline._backpedal.exec(o[0]))==null?void 0:r[0])!=null?i:"";while(c!==o[0]);l=o[0],o[1]==="www."?d="http://"+o[0]:d=o[0]}return{type:"link",raw:o[0],text:l,href:d,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(t){const o=this.rules.inline.text.exec(t);if(o){const r=this.lexer.state.inRawBlock;return{type:"text",raw:o[0],t
`),this.blockTokens(t,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){const r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,o=[],r=!1){var i,l,d;for(this.options.pedantic&&(t=t.replace(mn.tabCharGlobal," ").replace(mn.spaceLine,""));t;){let c;if((l=(i=this.options.extensions)==null?void 0:i.block)!=null&&l.some(h=>(c=h.call({lexer:this},t,o))?(t=t.substring(c.raw.length),o.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);const h=o.at(-1);c.raw.length===1&&h!==void 0?h.raw+=`
`:o.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);const h=o.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
`+c.raw,h.text+=`
`+c.text,this.inlineQueue.at(-1).src=h.text):o.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),o.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),o.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),o.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),o.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),o.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),o.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);const h=o.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
`+c.raw,h.text+=`
`+c.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title});continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),o.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),o.push(c);continue}let u=t;if((d=this.options.extensions)!=null&&d.startBlock){let h=1/0;const m=t.slice(1);let v;this.options.extensions.startBlock.forEach(C=>{v=C.call({lexer:this},m),typeof v=="number"&&v>=0&&(h=Math.min(h,v))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){const h=o.at(-1);r&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=`
`+c.raw,h.text+=`
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):o.push(c),r=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);const h=o.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=`
`+c.raw,h.text+=`
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):o.push(c);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,o}inline(t,o=[]){return this.inlineQueue.push({src:t,tokens:o}),o}inlineTokens(t,o=[]){var c,u,h;let r=t,i=null;if(this.tokens.links){const m=Object.keys(this.tokens.links);if(m.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)m.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,d="";for(;t;){l||(d=""),l=!1;let m;if((u=(c=this.options.extensions)==null?void 0:c.inline)!=null&&u.some(C=>(m=C.call({lexer:this},t,o))?(t=t.substring(m.raw.length),o.push(m),!0):!1))continue;if(m=this.tokenizer.escape(t)){t=t.substring(m.raw.length),o.push(m);continue}if(m=this.tokenizer.tag(t)){t=t.substring(m.raw.length),o.push(m);continue}if(m=this.tokenizer.link(t)){t=t.substring(m.raw.length),o.push(m);continue}if(m=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(m.raw.length);const C=o.at(-1);m.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=m.raw,C.text+=m.text):o.push(m);continue}if(m=this.tokenizer.emStrong(t,r,d)){t=t.substring(m.raw.length),o.push(m);continue}if(m=this.tokenizer.codespan(t)){t=t.substring(m.raw.length),o.push(m);continue}if(m=this.tokenizer.br(t)){t=t.substring(m.raw.length),o.push(m);continue}if(m=this.tokenizer.del(t)){t=t.substring(m.raw.length),o.push(m);continue}if(m=this.tokenizer.autolink(t)){t=t.substring(m.raw.length),o.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(t))){t=t.substring(m.raw.length),o.push(m);continue}let v=t;if((h=this.options.extensions)!=null&&h.startInline){let C=1/0;const S=t.slice(1);let w;this.options.extensions.startInline.forEach(E=>{w=E.call({lexer:this},S),typeof w=="number"&&w>=0&&(C=Math.min(C,w))}),C<1/0&&C>=0&&(v=t.substring(0,C+1))}if(m=this.tokenizer.inlineText(v)){t=t.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(d=m.raw.slice(-1)),l=!0;const C=o.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=m.raw,C.text+=m.text):o.push(m);continue}if(t){const C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return o}}class Dl{constructor(t){Dt(this,"options");Dt(this,"parser");this.options=t||co}space(t){return""}code({text:t,lang:o,escaped:r}){var d;const i=(d=(o||"").match(mn.notSpaceStart))==null?void 0:d[0],l=t.replace(mn.endingNewline,"")+`
`;return i?'<pre><code class="language-'+pi(i)+'">'+(r?l:pi(l,!0))+`</code></pre>
`:"<pre><code>"+(r?l:pi(l,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}heading({tokens:t,depth:o}){return`<h${o}>${this.parser.parseInline(t)}</h${o}>
`}hr(t){return`<hr>
`}list(t){const o=t.ordered,r=t.start;let i="";for(let c=0;c<t.items.length;c++){const u=t.items[c];i+=this.listitem(u)}const l=o?"ol":"ul",d=o&&r!==1?' start="'+r+'"':"";return"<"+l+d+`>
`+i+"</"+l+`>
`}listitem(t){var r;let o="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+pi(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):o+=i+" "}return o+=this.parser.parse(t.tokens,!!t.loose),`<li>${o}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let o="",r="";for(let l=0;l<t.header.length;l++)r+=this.tablecell(t.header[l]);o+=this.tablerow({text:r});let i="";for(let l=0;l<t.rows.length;l++){const d=t.rows[l];r="";for(let c=0;c<d.length;c++)r+=this.tablecell(d[c]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+o+`</thead>
`+i+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){const o=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+o+`</${r}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${pi(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:o,tokens:r}){const i=this.parser.parseInline(r),l=cm(t);if(l===null)return i;t=l;let d='<a href="'+t+'"';return o&&(d+=' title="'+pi(o)+'"'),d+=">"+i+"</a>",d}image({href:t,title:o,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));const l=cm(t);if(l===null)return pi(r);t=l;let d=`<img src="${t}" alt="${r}"`;return o&&(d+=` title="${pi(o)}"`),d+=">",d}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:pi(t.text)}}class Mc{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Un{constructor(t){Dt(this,"options");Dt(this,"renderer");Dt(this,"textRenderer");this.options=t||co,this.options.renderer=this.options.renderer||new Dl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Mc}static parse(t,o){return new Un(o).parse(t)}static parseInline(t,o){return new Un(o).parseInline(t)}parse(t,o=!0){var i,l;let r="";for(let d=0;d<t.length;d++){const c=t[d];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[c.type]){const h=c,m=this.options.extensions.renderers[h.type].call({parser:this},h);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){r+=m||"";continue}}const u=c;switch(u.type){case"space":{r+=this.renderer.space(u);continue}case"hr":{r+=this.renderer.hr(u);continue}case"heading":{r+=this.renderer.heading(u);continue}case"code":{r+=this.renderer.code(u);continue}case"table":{r+=this.renderer.table(u);continue}case"blockquote":{r+=this.renderer.blockquote(u);continue}case"list":{r+=this.renderer.list(u);continue}case"html":{r+=this.renderer.html(u);continue}case"paragraph":{r+=this.renderer.paragraph(u);continue}case"text":{let h=u,m=this.renderer.text(h);for(;d+1<t.length&&t[d+1].type==="text";)h=t[++d],m+=`
`+this.renderer.text(h);o?r+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):r+=m;continue}default:{const h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return r}parseInline(t,o=this.renderer){var i,l;let r="";for(let d=0;d<t.length;d++){const c=t[d];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[c.type]){const h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){r+=h||"";continue}}const u=c;switch(u.type){case"escape":{r+=o.text(u);break}case"html":{r+=o.html(u);break}case"link":{r+=o.link(u);break}case"image":{r+=o.image(u);break}case"strong":{r+=o.strong(u);break}case"em":{r+=o.em(u);break}case"codespan":{r+=o.codespan(u);break}case"br":{r+=o.br(u);break}case"del":{r+=o.del(u);break}case"text":{r+=o.text(u);break}default:{const h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return r}}class Qr{constructor(t){Dt(this,"options");Dt(this,"block");this.options=t||co}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?zn.lex:zn.lexInline}provideParser(){return this.block?Un.parse:Un.parseInline}}Dt(Qr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class pm{constructor(...t){Dt(this,"defaults",Dc());Dt(this,"options",this.setOptions);Dt(this,"parse",this.parseMarkdown(!0));Dt(this,"parseInline",this.parseMarkdown(!1));Dt(this,"Parser",Un);Dt(this,"Renderer",Dl);Dt(this,"TextRenderer",Mc);Dt(this,"Lexer",zn);Dt(this,"Tokenizer",Tl);Dt(this,"Hooks",Qr);this.use(...t)}walkTokens(t,o){var i,l;let r=[];for(const d of t)switch(r=r.concat(o.call(this,d)),d.type){case"table":{const c=d;for(const u of c.header)r=r.concat(this.walkTokens(u.tokens,o));for(const u of c.rows)for(const h of u)r=r.concat(this.walkTokens(h.tokens,o));break}case"list":{const c=d;r=r.concat(this.walkTokens(c.items,o));break}default:{const c=d;(l=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&l[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{const h=c[u].flat(1/0);r=r.concat(this.walkTokens(h,o))}):c.tokens&&(r=r.concat(this.walkTokens(c.tokens,o)))}}return r}use(...t){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){const d=o.renderers[l.name];d?o.renderers[l.name]=function(...c){let u=l.renderer.apply(this,c);return u===!1&&(u=d.apply(this,c)),u}:o.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const d=o[l.level];d?d.unshift(l.tokenizer):o[l.level]=[l.tokenizer],l.start&&(l.level==="block"?o.startBlock?o.startBlock.push(l.start):o.startBlock=[l.start]:l.level==="inline"&&(o.startInline?o.startInline.push(l.start):o.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(o.childTokens[l.name]=l.childTokens)}),i.extensions=o),r.renderer){const l=this.defaults.renderer||new Dl(this.defaults);for(const d in r.renderer){if(!(d in l))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;const c=d,u=r.renderer[c],h=l[c];l[c]=(...m)=>{let v=u.apply(l,m);return v===!1&&(v=h.apply(l,m)),v||""}}i.renderer=l}if(r.tokenizer){const l=this.defaults.tokenizer||new Tl(this.defaults);for(const d in r.tokenizer){if(!(d in l))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;const c=d,u=r.tokenizer[c],h=l[c];l[c]=(...m)=>{let v=u.apply(l,m);return v===!1&&(v=h.apply(l,m)),v}}i.tokenizer=l}if(r.hooks){const l=this.defaults.hooks||new Qr;for(const d in r.hooks){if(!(d in l))throw new Error(`hook '${d}' does not e
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+pi(r.message+"",!0)+"</pre>";return o?Promise.resolve(i):i}if(o)return Promise.reject(r);throw r}}}const uo=new pm;function xt(e,t){return uo.parse(e,t)}xt.options=xt.setOptions=function(e){return uo.setOptions(e),xt.defaults=uo.defaults,Xh(xt.defaults),xt},xt.getDefaults=Dc,xt.defaults=co,xt.use=function(...e){return uo.use(...e),xt.defaults=uo.defaults,Xh(xt.defaults),xt},xt.walkTokens=function(e,t){return uo.walkTokens(e,t)},xt.parseInline=uo.parseInline,xt.Parser=Un,xt.parser=Un.parse,xt.Renderer=Dl,xt.TextRenderer=Mc,xt.Lexer=zn,xt.lexer=zn.lex,xt.Tokenizer=Tl,xt.Hooks=Qr,xt.parse=xt,xt.options,xt.setOptions,xt.use,xt.walkTokens,xt.parseInline,Un.parse,zn.lex;const lj="",BS=n.defineComponent({name:"FcMarkdown",data(){return{marked:n.markRaw(new pm),html:""}},props:{content:String},watch:{content:{handler(){this.html=this.marked.parse(this.content||"")},immediate:!0}}}),RS=["innerHTML"];function $S(e,t,o,r,i,l){return n.openBlock(),n.createElementBlock("div",{class:"_fc-markdown",innerHTML:e.html},null,8,RS)}const hm=De(BS,[["render",$S]]),sj="",FS=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object},computed:{formOptions(){const e={...this.options};return this.preview&&(e.preview=this.preview),e}},data(){return{visible:!1,max:this.$attrs.fullscreen||!1,fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(e){this.$nextTick(()=>{this.visible=!0,this.value=ot(e||this.modelValue||this.formData||{}),this.formRule=ot(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),IS={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"36px"}};function PS(e,t,o,r,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-dialog"},e.$attrs,{fullscreen:e.max,modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=u=>e.visible=u),destroyOnClose:""}),n.createSlots({default:n.withCtx(()=>[e.$attrs.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",IS,[e.max?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-page-min",onClick:t[0]||(t[0]=u=>e.max=!1)})):(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-page-max",onClick:t[1]||(t[1]=u=>e.max=!0)}))])),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.formOptions,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[2]||(t[2]=u=>e.fapi=u),"model-value":e.value,subForm:!1,onChange:e.formChange,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),_:2},[e.footer!==!1?{name:"footer",fn:n.withCtx(()=>[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["fullscreen","modelValue"])}const mm=De(FS,[["render",PS]]),MS=e=>e!==null&&typeof e=="object",LS=e=>e!=null;function Lc(e){if(!LS(e))return e;if(Array.isArray(e))return e.map(t=>Lc(t));if(MS(e)){const t={};return Object.keys(e).forEach(o=>{t[o]=Lc(e[o])}),t}retur
`}return ht%2&&Ue>0?Fe.substring(0,Fe.length-ht-1)+Array(ht+1).join("\u2580"):Fe.substring(0,Fe.length-1)}(X);j-=1,X=X===void 0?2*j:X;var Z,te,re,Ee,we=Y.getModuleCount()*j+2*X,Te=X,Je=we-X,Be=Array(j+1).join("\u2588\u2588"),ge=Array(j+1).join(" "),ke="",Ce="";for(Z=0;Z<we;Z+=1){for(re=Math.floor((Z-Te)/j),Ce="",te=0;te<we;te+=1)Ee=1,Te<=te&&te<Je&&Te<=Z&&Z<Je&&Y.isDark(re,Math.floor((te-Te)/j))&&(Ee=0),Ce+=Ee?Be:ge;for(re=0;re<j;re+=1)ke+=Ce+`
`}return ke.substring(0,ke.length-1)},Y.renderTo2dContext=function(j,X){X=X||2;for(var Z=Y.getModuleCount(),te=0;te<Z;te++)for(var re=0;re<Z;re++)j.fillStyle=Y.isDark(te,re)?"black":"white",j.fillRect(te*X,re*X,X,X)},Y};v.stringToBytes=(v.stringToBytesFuncs={default:function(W){for(var B=[],U=0;U<W.length;U+=1){var A=W.charCodeAt(U);B.push(255&A)}return B}}).default,v.createStringToBytes=function(W,B){var U=function(){for(var $=L(W),Q=function(){var be=$.read();if(be==-1)throw"eof";return be},J=0,G={};;){var Y=$.read();if(Y==-1)break;var ce=Q(),le=Q()<<8|Q();G[String.fromCharCode(Y<<8|ce)]=le,J+=1}if(J!=B)throw J+" != "+B;return G}(),A="?".charCodeAt(0);return function($){for(var Q=[],J=0;J<$.length;J+=1){var G=$.charCodeAt(J);if(G<128)Q.push(G);else{var Y=U[$.charAt(J)];typeof Y=="number"?(255&Y)==Y?Q.push(Y):(Q.push(Y>>>8),Q.push(255&Y)):Q.push(A)}}return Q}};var C,S,w,E,b,g={L:1,M:0,Q:3,H:2},_=(C=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],S=1335,w=7973,b=function(W){for(var B=0;W!=0;)B+=1,W>>>=1;return B},(E={}).getBCHTypeInfo=function(W){for(var B=W<<10;b(B)-b(S)>=0;)B^=S<<b(B)-b(S);return 21522^(W<<10|B)},E.getBCHTypeNumber=function(W){for(var B=W<<12;b(B)-b(w)>=0;)B^=w<<b(B)-b(w);return W<<12|B},E.getPatternPosition=function(W){return C[W-1]},E.getMaskFunction=function(W){switch(W){case 0:return function(B,U){return(B+U)%2==0};case 1:return function(B,U){return B%2==0};case 2:return function(B,U){return U%3==0};case 3:return function(B,U){return(B+U)%3==0};case 4:return function(B,U){return(Math.floor(B/2)+Math.floor(U/3))%2==0};case 5:return function(B,U){return B*U%2+B*U%3==0};case 6:return function(B,U){return(B*U%2+B*U%3)%2==0};case 7:return function(B,U){return(B*U%3+(B+U)%2)%2==0};default:throw"bad maskPattern:"+W}},E.getErrorCorrectPolynomial=function(W){for(var B=k([1],0),U=0;U<W;U+=1)B=B.multiply(k([1,x.gexp(U)],0));return B},E.getLengthInBits=function(W,B){if(1<=B&&B<10)switch(W){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+W}else if(B<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+W}else{if(!(B<41))throw"type:"+B;switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+W}}},E.getLostPoint=function(W){for(var B=W.getModuleCount(),U=0,A=0;A<B;A+=1)for(var $=0;$<B;$+=1){for(var Q=0,J=W.isDark(A,$),G=-1;G<=1;G+=1)if(!(A+G<0||B<=A+G))for(var Y=-1;Y<=1;Y+=1)$+Y<0||B<=$+Y||G==0&&Y==0||J==W.isDark(A+G,$+Y)&&(Q+=1);Q>5&&(U+=3+Q-5)}for(A=0;A<B-1;A+=1)for($=0;$<B-1;$+=1){var ce=0;W.isDark(A,$)&&(ce+=1),W.isDark(A+1,$)&&(ce+=1),W.isDark(A,$+1)&&(ce+=1),W.isDark(A+1,$+1)&&(ce+=1),ce!=0&&ce!=4||(U+=3)}for(A=0;A<B;A+=1)for($=0;$<B-6;$+=1)W.isDark(A,$)&&!W.isDark(A,$+1)&&W.isDark(A,$+2)&&W.isDark(A,$+3)&&W.isDark(A,$+4)&&!W.isDark(A,$+5)&&W.isDark(A,$+6)&&(U+=40);for($=0;$<B;$+=1)for(A=0;A<B-6;A+=1)W.isDark(A,$)&&!W.isDark(A+1,$)&&W.isDark(A+2,$)&&W.isDark(A+3,$)&&W.isDark(A+4,$)&&!W.isDark(A+5,$)&&W.isDark(A+6,$)&&(U+=40);var le=0;for($=0;$<B;$+=1)for(A=0;A<B;A+=1)W.isDark(A,$)&&(le+=1);return U+Math.abs(100*le/B/B-50)/5*10},E),x=function(){for(var W=new Array(256),B=new Array(256),U=0;U<8;U+=1)W[U]=1<<U;for(U=8;U<256;U+=1)W[U]=W[U-4]^W[U-5]^W[U-6]^W[U-8];for(U=0;U<255;U+=1)B[W[U]]=U;return{glog:function(A){if(A<1)throw"glog("+A+")";return B[A]},gexp:function(A){for(;A<0;)A+=255;for(;A>=256;)A-=255;return W[A]}}}();function k(W,B){if(W.length===void 0)throw W.length+"/"+B;var U=function(){for(var $=0;$<W.length&&W[$]==0;)$+=1;for(v
${new this._window.XMLSerializer().serializeToString($)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(J):new Blob([J],{type:Q})}return new Promise(J=>{const G=$;if("toBuffer"in G)if(Q==="image/png")J(G.toBuffer(Q));else if(Q==="image/jpeg")J(G.toBuffer(Q));else{if(Q!=="application/pdf")throw Error("Unsupported extension");J(G.toBuffer(Q))}else"toBlob"in G&&G.toBlob(J,Q,1)})}async download(A){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let $="png",Q="qr";typeof A=="string"?($=A,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof A=="object"&&A!==null&&(A.name&&(Q=A.name),A.extension&&($=A.extension));const J=await this._getElement($);if(J)if($.toLowerCase()==="svg"){let G=new XMLSerializer().serializeToString(J);G=`<?xml version="1.0" standalone="no"?>\r
`+G,u(`data:${H($)};charset=utf-8,${encodeURIComponent(G)}`,`${Q}.svg`)}else u(J.toDataURL(H($)),`${Q}.${$}`)}}const B=W})(),l.default})())})(ag);const IT=x_(ag.exports),PT=n.defineComponent({name:"QrCodeBox",data(){return{qrcode:null}},props:{data:String,image:String,width:Number,height:Number,circleType:String,circleColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e={dotsOptions:{}};Object.keys(this.$props).forEach(t=>{this.$props[t]!=null&&this.$props[t]!==""&&(e[t]=this.$props[t])}),delete e.formCreateInject,e.circleType&&(e.dotsOptions.type=e.circleType),e.circleColor&&(e.dotsOptions.color=e.circleColor),delete e.circleColor,delete e.circleType,this.$nextTick(()=>{this.qrcode?this.qrcode.update(e):(this.qrcode=n.markRaw(new IT(e)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),MT={class:"_fc-qrcode",ref:"qr"};function LT(e,t,o,r,i,l){return n.openBlock(),n.createElementBlock("div",MT,null,512)}const lg=De(PT,[["render",LT]]),fj="",pj="",sg={date:"YYYY-MM-DD",month:"YYYY-MM",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"};function jT(e){return e/20+"em"}function zT(e){var t;!((t=e.wrap)!=null&&t.class)||(e.wrap.class==="fc-wrap-top"?(e.wrap.labelAlign="top",delete e.wrap.class):e.wrap.class==="fc-wrap-left"?(e.wrap.labelAlign="left",delete e.wrap.class):e.wrap.class==="fc-wrap-right"&&(e.wrap.labelAlign="right",delete e.wrap.class))}const dg=function(e,t,o,r){const i=r||{};return t.forEach(l=>{e.indexOf(l[o||"id"])>-1&&e.splice(e.indexOf(l[o||"id"]),1,l[i.label||"label"]||l.text),dt.trueArray(l[i.children||"children"])&&dg(e,l[i.children||"children"],o,r)}),e},UT=function(e,t){return t.forEach(o=>{e.indexOf(o.value)>-1&&(e[e.indexOf(o.value)]=o.label||o.text)}),e};function ku(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function cg(e){Object.keys(jt).forEach(t=>{e.setFormula(t,jt[t])}),Sc(e),e.register("behavior",Dh),e.register("easySlots",Ur),e.extendApi(t=>({message(o){kb.showNotify({type:"warning",...o||{}})}})),e.setDriver("elm",{defaultPreview(t,o){let r=t.rule.value;const i=t.$render.vNode.h,l=t.type,d=t.$handle.subForm[t.id],c=t.prop.readMode;if(c===!1||c==="custom"||!t.input||t.rule.subForm||(Array.isArray(d)?d.length:d)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","upload","fcDialog","fcDrawer","fcPopup"].indexOf(t.trueType)>-1)return t.parser.render(o,t);if(["radio","select","checkbox"].indexOf(l)>-1)r=UT([...ku(r)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(l)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(l==="cascader")r=[...ku(r)],Array.isArray(r[0])||(r=[r]),r=r.map(u=>dg(u,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else{if(l==="fcEditor"||c==="html")return i("div",{innerHTML:r});if(l==="uploader"||c==="image")return r=ku(r),i("div",{class:"_fc-upload"},r.map(function(u){return i("div",{class:"_fc-upload-preview"},[i("van-image",{src:u,fit:"cover"})])}));if(l==="signaturePad"&&r)return i("van-image",{src:r,fit:"cover",style:{height:"90px"}});(typeof r=="boolean"||l==="switch")&&(r=r?"\u662F":"\u5426")}return i("span",{class:"_fc-read-view"},[""+(r==null?"":r)])},updateWrap(t){var r,i;let o=(i=(r=t.prop)==null?void 0:r.wrap)==null?void 0:i.style;t.prop.col&&t.prop.col.span&&(t.prop.col.span=24),o&&(o=Array.isArray(o)?o:[o],o.forEach(l=>{delete l.marginBottom})),zT(t.prop)},updateOptions(t){var o,r,i;((o=t.form)==null?void 0:o.labelWidth)&&t.form.labelWidth.indexOf("px")>-1&&(t.form.labelWidth=jT(parseInt(t.form.labelWidth))),(r=t.form)!=null&&r.labelPosition&&(t.form.labelAlign=t.form.labelPosition,delete t.form.labelPosition),(i=t.form)!=null&&i.hideRequiredAsterisk&&(t.form.colon=t.form.hideRequiredAsterisk,delete t.form.hideRequiredAsterisk)},parsers:{inputNumber:{mergeProp(t){t.prop.component="vanStepper";const o=t.prop.props;o.decimalLength=o.precision,o.integer=
b`.split(/\n/).length!=3?function(a){for(var s=0,p=[],f=a.length;s<=f;){var y=a.indexOf(`
`,s);y==-1&&(y=a.length);var D=a.slice(s,a.charAt(y-1)=="\r"?y-1:y),P=D.indexOf("\r");P!=-1?(p.push(D.slice(0,P)),s+=P+1):(p.push(D),s=y+1)}return p}:function(a){return a.split(/\r\n?|\n/)},Ki=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch{return!1}}:function(a){var s;try{s=a.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=a?!1:s.compareEndPoints("StartToEnd",s)!=0},gi=function(){var a=B("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),yi=null;function _s(a){if(yi!=null)return yi;var s=W(a,B("span","x")),p=s.getBoundingClientRect(),f=A(s,0,1).getBoundingClientRect();return yi=Math.abs(p.left-f.left)>1}var ti={},Yi={};function Es(a,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),ti[a]=s}function cr(a,s){Yi[a]=s}function Tn(a){if(typeof a=="string"&&Yi.hasOwnProperty(a))a=Yi[a];else if(a&&typeof a.name=="string"&&Yi.hasOwnProperty(a.name)){var s=Yi[a.name];typeof s=="string"&&(s={name:s}),a=ge(s,a),a.name=s.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Tn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Tn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Ti(a,s){s=Tn(s);var p=ti[s.name];if(!p)return Ti(a,"text/plain");var f=p(a,s);if(Qi.hasOwnProperty(s.name)){var y=Qi[s.name];for(var D in y)!y.hasOwnProperty(D)||(f.hasOwnProperty(D)&&(f["_"+D]=f[D]),f[D]=y[D])}if(f.name=s.name,s.helperType&&(f.helperType=s.helperType),s.modeProps)for(var P in s.modeProps)f[P]=s.modeProps[P];return f}var Qi={};function Ss(a,s){var p=Qi.hasOwnProperty(a)?Qi[a]:Qi[a]={};fe(s,p)}function Di(a,s){if(s===!0)return s;if(a.copyState)return a.copyState(s);var p={};for(var f in s){var y=s[f];y instanceof Array&&(y=y.concat([])),p[f]=y}return p}function Ji(a,s){for(var p;a.innerMode&&(p=a.innerMode(s),!(!p||p.mode==a));)s=p.state,a=p.mode;return p||{mode:a,state:s}}function ma(a,s,p){return a.startState?a.startState(s,p):!0}var It=function(a,s,p){this.pos=this.start=0,this.string=a,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.prototype.eat=function(a){var s=this.string.charAt(this.pos),p;if(typeof a=="string"?p=s==a:p=s&&(a.test?a.test(s):a(s)),p)return++this.pos,s},It.prototype.eatWhile=function(a){for(var s=this.pos;this.eat(a););return this.pos>s},It.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(a){var s=this.string.indexOf(a,this.pos);if(s>-1)return this.pos=s,!0},It.prototype.backUp=function(a){this.pos-=a},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=se(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?se(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return se(this.string,null,this.tabSize)-(this.lineStart?se(this.string,this.lineStart,this.tabSize):0)},It.prototype.match=function(a,s,p){if(typeof a=="string"){var f=function(P){return p?P.toLowerCase():P},y=this.string.substr(this.pos,a.length);if(f(y)==f(a))return s!==!1&&(this.pos+=a.length),!0}else{var D=this.string.slice(this.pos).match(a);return D&&D.index>0?null:(D&&s!==!1&&(this.pos+=D[0].length),D)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(a,s){this.lineStart+=a;try{return s()}finally{this.lineStart-=a}},It.prototype.lookAhead=function(a){var s=this.lineOracle;return s&&s.lookAhead(a)},It.
`?(Ne=ne.appendChild(B("span",ye[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",ye[0]),a.col+=1):(Ne=a.cm.options.specialCharPlaceholder(ye[0]),Ne.setAttribute("cm-text",ye[0]),u&&h<9?ne.appendChild(B("span",[Ne])):ne.appendChild(Ne),a.col+=1);a.map.push(a.pos,a.pos+1,Ne),a.pos++}}if(a.trailingSpace=z.charCodeAt(s.length-1)==32,p||f||y||q||D||P){var He=p||"";f&&(He+=f),y&&(He+=y);var Pe=B("span",[ne],He,D);if(P)for(var Ge in P)P.hasOwnProperty(Ge)&&Ge!="style"&&Ge!="class"&&Pe.setAttribute(Ge,P[Ge]);return a.content.appendChild(Pe)}a.content.appendChild(ne)}}function c4(a,s){if(a.length>1&&!/ /.test(a))return a;for(var p=s,f="",y=0;y<a.length;y++){var D=a.charAt(y);D==" "&&p&&(y==a.length-1||a.charCodeAt(y+1)==32)&&(D="\xA0"),f+=D,p=D==" "}return f}function u4(a,s){return function(p,f,y,D,P,z,K){y=y?y+" cm-force-border":"cm-force-border";for(var q=p.pos,ne=q+f.length;;){for(var ie=void 0,ye=0;ye<s.length&&(ie=s[ye],!(ie.to>q&&ie.from<=q));ye++);if(ie.to>=ne)return a(p,f,y,D,P,z,K);a(p,f.slice(0,ie.to-q),y,D,null,z,K),D=null,f=f.slice(ie.to-q),q=ie.to}}}function Hv(a,s,p,f){var y=!f&&p.widgetNode;y&&a.map.push(a.pos,a.pos+s,y),!f&&a.cm.display.input.needsContentAttribute&&(y||(y=a.content.appendChild(document.createElement("span"))),y.setAttribute("cm-marker",p.id)),y&&(a.cm.display.input.setUneditable(y),a.content.appendChild(y)),a.pos+=s,a.trailingSpace=!1}function f4(a,s,p){var f=a.markedSpans,y=a.text,D=0;if(!f){for(var P=1;P<p.length;P+=2)s.addToken(s,y.slice(D,D=p[P]),zv(p[P+1],s.cm.options));return}for(var z=y.length,K=0,q=1,ne="",ie,ye,me=0,Ae,Ne,Oe,Ie,He;;){if(me==K){Ae=Ne=Oe=ye="",He=null,Ie=null,me=1/0;for(var Pe=[],Ge=void 0,tt=0;tt<f.length;++tt){var qe=f[tt],pt=qe.marker;if(pt.type=="bookmark"&&qe.from==K&&pt.widgetNode)Pe.push(pt);else if(qe.from<=K&&(qe.to==null||qe.to>K||pt.collapsed&&qe.to==K&&qe.from==K)){if(qe.to!=null&&qe.to!=K&&me>qe.to&&(me=qe.to,Ne=""),pt.className&&(Ae+=" "+pt.className),pt.css&&(ye=(ye?ye+";":"")+pt.css),pt.startStyle&&qe.from==K&&(Oe+=" "+pt.startStyle),pt.endStyle&&qe.to==me&&(Ge||(Ge=[])).push(pt.endStyle,qe.to),pt.title&&((He||(He={})).title=pt.title),pt.attributes)for(var Nt in pt.attributes)(He||(He={}))[Nt]=pt.attributes[Nt];pt.collapsed&&(!Ie||xf(Ie.marker,pt)<0)&&(Ie=qe)}else qe.from>K&&me>qe.from&&(me=qe.from)}if(Ge)for(var en=0;en<Ge.length;en+=2)Ge[en+1]==me&&(Ne+=" "+Ge[en]);if(!Ie||Ie.from==K)for(var $t=0;$t<Pe.length;++$t)Hv(s,0,Pe[$t]);if(Ie&&(Ie.from||0)==K){if(Hv(s,(Ie.to==null?z+1:Ie.to)-K,Ie.marker,Ie.from==null),Ie.to==null)return;Ie.to==K&&(Ie=!1)}}if(K>=z)break;for(var Vn=Math.min(z,me);;){if(ne){var wn=K+ne.length;if(!Ie){var Ut=wn>Vn?ne.slice(0,Vn-K):ne;s.addToken(s,Ut,ie?ie+Ae:Ae,Oe,K+Ut.length==me?Ne:"",ye,He)}if(wn>=Vn){ne=ne.slice(Vn-K),K=Vn;break}K=wn,Oe=""}ne=y.slice(D,D=p[q++]),ie=zv(p[q++],s.cm.options)}}}function Wv(a,s,p){this.line=s,this.rest=i4(s),this.size=this.rest?wt(we(this.rest))-p+1:1,this.node=this.text=null,this.hidden=Xi(a,s)}function Vs(a,s,p){for(var f=[],y,D=s;D<p;D=y){var P=new Wv(a.doc,Qe(a.doc,D),D);y=D+P.size,f.push(P)}return f}var pr=null;function p4(a){pr?pr.ops.push(a):a.ownsGroup=pr={ops:[a],delayedCallbacks:[]}}function h4(a){var s=a.delayedCallbacks,p=0;do{for(;p<s.length;p++)s[p].call(null);for(var f=0;f<a.ops.length;f++){var y=a.ops[f];if(y.cursorActivityHandlers)for(;y.cursorActivityCalled<y.cursorActivityHandlers.length;)y.cursorActivityHandlers[y.cursorActivityCalled++].call(null,y.cm)}}while(p<s.length)}function m4(a,s){var p=a.ownsGroup;if(!!p)try{h4(p)}finally{pr=null,s(p)}}var va=null;function Xt(a,s){var p=Xe(a,s);if(!!p.length){var f=Array.prototype.slice.call(arguments,2),y;pr?y=pr.delayedCallbacks:va?y=va:(y=va=[],setTimeout(g4,0));for(var D=function(z){y.push(function(){return p[z].apply(null,f)})},P=0;P<p.length;++P)D(P)}}function g4(){var a=va;va=null;for(var s=0;s<a.length;++s)a[s]()}function Gv(a,s,p,f){for(var y=0;y<s.changes.length;y++){var D=s.changes[y];D=="text"?v4(a,s):D=="gutter"?Yv(a,s,p,f):D=="class"?Df(a,s):D=="widget"&&b4(a,s,f)}s.changes=null}function ba(a){return a
top: `+Ge+"px; width: "+(tt==null?K-Pe:tt)+`px;
height: `+(qe-Ge)+"px"))}function ie(Pe,Ge,tt){var qe=Qe(y,Pe),pt=qe.text.length,Nt,en;function $t(Ut,Cn){return Rs(a,ue(Pe,Ut),"div",qe,Cn)}function Vn(Ut,Cn,on){var Yt=d0(a,qe,null,Ut),Ht=Cn=="ltr"==(on=="after")?"left":"right",Pt=on=="after"?Yt.begin:Yt.end-(/\s/.test(qe.text.charAt(Yt.end-1))?2:1);return $t(Pt,Ht)[Ht]}var wn=et(qe,y.direction);return ht(wn,Ge||0,tt==null?pt:tt,function(Ut,Cn,on,Yt){var Ht=on=="ltr",Pt=$t(Ut,Ht?"left":"right"),_n=$t(Cn-1,Ht?"right":"left"),Tr=Ge==null&&Ut==0,ro=tt==null&&Cn==pt,sn=Yt==0,_i=!wn||Yt==wn.length-1;if(_n.top-Pt.top<=3){var tn=(q?Tr:ro)&&sn,pp=(q?ro:Tr)&&_i,Ii=tn?z:(Ht?Pt:_n).left,No=pp?K:(Ht?_n:Pt).right;ne(Ii,Pt.top,No-Ii,Pt.bottom)}else{var To,pn,Dr,hp;Ht?(To=q&&Tr&&sn?z:Pt.left,pn=q?K:Vn(Ut,on,"before"),Dr=q?z:Vn(Cn,on,"after"),hp=q&&ro&&_i?K:_n.right):(To=q?Vn(Ut,on,"before"):z,pn=!q&&Tr&&sn?K:Pt.right,Dr=!q&&ro&&_i?z:_n.left,hp=q?Vn(Cn,on,"after"):K),ne(To,Pt.top,pn-To,Pt.bottom),Pt.bottom<_n.top&&ne(z,Pt.bottom,null,_n.top),ne(Dr,_n.top,hp-Dr,_n.bottom)}(!Nt||Fs(Pt,Nt)<0)&&(Nt=Pt),Fs(_n,Nt)<0&&(Nt=_n),(!en||Fs(Pt,en)<0)&&(en=Pt),Fs(_n,en)<0&&(en=_n)}),{start:Nt,end:en}}var ye=s.from(),me=s.to();if(ye.line==me.line)ie(ye.line,ye.ch,me.ch);else{var Ae=Qe(y,ye.line),Ne=Qe(y,me.line),Oe=ni(Ae)==ni(Ne),Ie=ie(ye.line,ye.ch,Oe?Ae.text.length+1:null).end,He=ie(me.line,Oe?0:null,me.ch).start;Oe&&(Ie.top<He.top-2?(ne(Ie.right,Ie.top,null,Ie.bottom),ne(z,He.top,He.left,He.bottom)):ne(Ie.right,Ie.top,He.left-Ie.right,Ie.bottom)),Ie.bottom<He.top&&ne(z,Ie.bottom,null,He.top)}p.appendChild(D)}function zf(a){if(!!a.state.focused){var s=a.display;clearInterval(s.blinker);var p=!0;s.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?s.blinker=setInterval(function(){a.hasFocus()||yr(a),s.cursorDiv.style.visibility=(p=!p)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function p0(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||Hf(a))}function Uf(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&yr(a))},100)}function Hf(a,s){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ye(a,"focus",a,s),a.state.focused=!0,J(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),m&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),zf(a))}function yr(a,s){a.state.delayingBlurEvent||(a.state.focused&&(Ye(a,"blur",a,s),a.state.focused=!1,L(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Is(a){for(var s=a.display,p=s.lineDiv.offsetTop,f=Math.max(0,s.scroller.getBoundingClientRect().top),y=s.lineDiv.getBoundingClientRect().top,D=0,P=0;P<s.view.length;P++){var z=s.view[P],K=a.options.lineWrapping,q=void 0,ne=0;if(!z.hidden){if(y+=z.line.height,u&&h<8){var ie=z.node.offsetTop+z.node.offsetHeight;q=ie-p,p=ie}else{var ye=z.node.getBoundingClientRect();q=ye.bottom-ye.top,!K&&z.text.firstChild&&(ne=z.text.firstChild.getBoundingClientRect().right-ye.left-1)}var me=z.line.height-q;if((me>.005||me<-.005)&&(y<f&&(D-=me),Yn(z.line,q),h0(z.line),z.rest))for(var Ae=0;Ae<z.rest.length;Ae++)h0(z.rest[Ae]);if(ne>a.display.sizerWidth){var Ne=Math.ceil(ne/gr(a.display));Ne>a.display.maxLineLength&&(a.display.maxLineLength=Ne,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}Math.abs(D)>2&&(s.scroller.scrollTop+=D)}function h0(a){if(a.widgets)for(var s=0;s<a.widgets.length;++s){var p=a.widgets[s],f=p.node.parentNode;f&&(p.height=f.offsetHeight)}}function Ps(a,s,p){var f=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;f=Math.floor(f-Os(a));var y=p&&p.bottom!=null?p.bottom:f+a.wrapper.clientHeight,D=vi(s,f),P=vi(s,y);if(p&&p.ensure){var z=p.ensure.from.line,K=p.ensure.to.line;z<D?(D=z,P=vi(s,Bi(Qe(s,z))+a.wrapper.clientHeight)):Math.min(K,s.last
top: `+(s.top-p.viewOffset-Os(a.display))+`px;
height: `+(s.bottom-s.top+wi(a)+p.barHeight)+`px;
left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");a.display.lineSpace.appendChild(P),P.scrollIntoView(y),a.display.lineSpace.removeChild(P)}}}function B4(a,s,p,f){f==null&&(f=0);var y;!a.options.lineWrapping&&s==p&&(p=s.sticky=="before"?ue(s.line,s.ch+1,"before"):s,s=s.ch?ue(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var D=0;D<5;D++){var P=!1,z=ii(a,s),K=!p||p==s?z:ii(a,p);y={left:Math.min(z.left,K.left),top:Math.min(z.top,K.top)-f,right:Math.max(z.left,K.left),bottom:Math.max(z.bottom,K.bottom)+f};var q=Wf(a,y),ne=a.doc.scrollTop,ie=a.doc.scrollLeft;if(q.scrollTop!=null&&(Sa(a,q.scrollTop),Math.abs(a.doc.scrollTop-ne)>1&&(P=!0)),q.scrollLeft!=null&&(So(a,q.scrollLeft),Math.abs(a.doc.scrollLeft-ie)>1&&(P=!0)),!P)break}return y}function R4(a,s){var p=Wf(a,s);p.scrollTop!=null&&Sa(a,p.scrollTop),p.scrollLeft!=null&&So(a,p.scrollLeft)}function Wf(a,s){var p=a.display,f=mr(a.display);s.top<0&&(s.top=0);var y=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,D=Of(a),P={};s.bottom-s.top>D&&(s.bottom=s.top+D);var z=a.doc.height+Vf(p),K=s.top<f,q=s.bottom>z-f;if(s.top<y)P.scrollTop=K?0:s.top;else if(s.bottom>y+D){var ne=Math.min(s.top,(q?z:s.bottom)-D);ne!=y&&(P.scrollTop=ne)}var ie=a.options.fixedGutter?0:p.gutters.offsetWidth,ye=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-ie,me=wo(a)-p.gutters.offsetWidth,Ae=s.right-s.left>me;return Ae&&(s.right=s.left+me),s.left<10?P.scrollLeft=0:s.left<ye?P.scrollLeft=Math.max(0,s.left+ie-(Ae?0:10)):s.right>me+ye-3&&(P.scrollLeft=s.right+(Ae?0:10)-me),P}function Gf(a,s){s!=null&&(Ms(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+s)}function vr(a){Ms(a);var s=a.getCursor();a.curOp.scrollToPos={from:s,to:s,margin:a.options.cursorScrollMargin}}function Ea(a,s,p){(s!=null||p!=null)&&Ms(a),s!=null&&(a.curOp.scrollLeft=s),p!=null&&(a.curOp.scrollTop=p)}function $4(a,s){Ms(a),a.curOp.scrollToPos=s}function Ms(a){var s=a.curOp.scrollToPos;if(s){a.curOp.scrollToPos=null;var p=l0(a,s.from),f=l0(a,s.to);m0(a,p,f,s.margin)}}function m0(a,s,p,f){var y=Wf(a,{left:Math.min(s.left,p.left),top:Math.min(s.top,p.top)-f,right:Math.max(s.right,p.right),bottom:Math.max(s.bottom,p.bottom)+f});Ea(a,y.scrollLeft,y.scrollTop)}function Sa(a,s){Math.abs(a.doc.scrollTop-s)<2||(i||Yf(a,{top:s}),g0(a,s,!0),i&&Yf(a),ka(a,100))}function g0(a,s,p){s=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,s)),!(a.display.scroller.scrollTop==s&&!p)&&(a.doc.scrollTop=s,a.display.scrollbars.setScrollTop(s),a.display.scroller.scrollTop!=s&&(a.display.scroller.scrollTop=s))}function So(a,s,p,f){s=Math.max(0,Math.min(s,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?s==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-s)<2)&&!f)&&(a.doc.scrollLeft=s,C0(a),a.display.scroller.scrollLeft!=s&&(a.display.scroller.scrollLeft=s),a.display.scrollbars.setScrollLeft(s))}function Aa(a){var s=a.display,p=s.gutters.offsetWidth,f=Math.round(a.doc.height+Vf(a.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:f,scrollHeight:f+wi(a)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:p}}var Ao=function(a,s,p){this.cm=p;var f=this.vert=B("div",[B("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),y=this.horiz=B("div",[B("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");f.tabIndex=y.tabIndex=-1,a(f),a(y),_e(f,"scroll",function(){f.clientHeight&&s(f.scrollTop,"vertical")}),_e(y,"scroll",function(){y.clientWidth&&s(y.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ao.prototype.update=function(a){var s=a.scrollWidth>a.clientWidth+1,p=a.scrollHeight>a.clientHeight+1,f=a.nativeBarWidth;if(p){this.vert.style.display="block",this.vert.style.bottom=s?f+"px":"0";var y=a.viewHeight-(s?f:0);this
`},setDirection:qt(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(s){return s.order=null}),this.cm&&X4(this.cm))})}),bn.prototype.eachLine=bn.prototype.iter;var Z0=0;function c5(a){var s=this;if(q0(s),!(ct(s,a)||Ri(s.display,a))){bt(a),u&&(Z0=+new Date);var p=_o(s,a,!0),f=a.dataTransfer.files;if(!(!p||s.isReadOnly()))if(f&&f.length&&window.FileReader&&window.File)for(var y=f.length,D=Array(y),P=0,z=function(){++P==y&&Zt(s,function(){p=at(s.doc,p);var me={from:p,to:p,text:s.doc.splitLines(D.filter(function(Ae){return Ae!=null}).join(s.doc.lineSeparator())),origin:"paste"};_r(s.doc,me),I0(s.doc,eo(at(s.doc,p),at(s.doc,to(me))))})()},K=function(me,Ae){if(s.options.allowDropFileTypes&&ae(s.options.allowDropFileTypes,me.type)==-1){z();return}var Ne=new FileReader;Ne.onerror=function(){return z()},Ne.onload=function(){var Oe=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Oe)){z();return}D[Ae]=Oe,z()},Ne.readAsText(me)},q=0;q<f.length;q++)K(f[q],q);else{if(s.state.draggingText&&s.doc.sel.contains(p)>-1){s.state.draggingText(a),setTimeout(function(){return s.display.input.focus()},20);return}try{var ne=a.dataTransfer.getData("Text");if(ne){var ie;if(s.state.draggingText&&!s.state.draggingText.copy&&(ie=s.listSelections()),Ws(s.doc,eo(p,p)),ie)for(var ye=0;ye<ie.length;++ye)Er(s.doc,"",ie[ye].anchor,ie[ye].head,"drag");s.replaceSelection(ne,"around","paste"),s.display.input.focus()}}catch{}}}}function u5(a,s){if(u&&(!a.state.draggingText||+new Date-Z0<100)){ei(s);return}if(!(ct(a,s)||Ri(a.display,s))&&(s.dataTransfer.setData("Text",a.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!E)){var p=B("img",null,null,"position: fixed; left: 0; top: 0;");p.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",w&&(p.width=p.height=1,a.display.wrapper.appendChild(p),p._top=p.offsetTop),s.dataTransfer.setDragImage(p,0,0),w&&p.parentNode.removeChild(p)}}function f5(a,s){var p=_o(a,s);if(!!p){var f=document.createDocumentFragment();jf(a,p,f),a.display.dragCursor||(a.display.dragCursor=B("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),W(a.display.dragCursor,f)}}function q0(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function eb(a){if(!!document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),p=[],f=0;f<s.length;f++){var y=s[f].CodeMirror;y&&p.push(y)}p.length&&p[0].operation(function(){for(var D=0;D<p.length;D++)a(p[D])})}}var tb=!1;function p5(){tb||(h5(),tb=!0)}function h5(){var a;_e(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,eb(m5)},100))}),_e(window,"blur",function(){return eb(yr)})}function m5(a){var s=a.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,a.setSize()}for(var oo={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"},Fa=0;Fa<10;Fa++)oo[Fa+48]=oo[Fa+96]=String(Fa);for(var Ys=65;Ys<=90;Ys++)oo[Ys]=String.fromCharCode(Ys);for(var Ia=1;Ia<=12;Ia++)oo[Ia+111]=oo[Ia+63235]="F"+Ia;var Fi={};Fi.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"},Fi.pcDefault={"Ctrl-A":"selectAl
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function rb(a,s){var p=Qe(a.doc,s),f=ni(p);return f!=p&&(s=wt(f)),ap(!0,a,f,s,1)}function b5(a,s){var p=Qe(a.doc,s),f=n4(p);return f!=p&&(s=wt(f)),ap(!0,a,p,s,-1)}function ab(a,s){var p=rb(a,s.line),f=Qe(a.doc,p.line),y=et(f,a.doc.direction);if(!y||y[0].level==0){var D=Math.max(p.ch,f.text.search(/\S/)),P=s.line==p.line&&s.ch<=D&&s.ch;return ue(p.line,P?0:D,p.sticky)}return p}function Js(a,s,p){if(typeof s=="string"&&(s=Pa[s],!s))return!1;a.display.input.ensurePolled();var f=a.display.shift,y=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),p&&(a.display.shift=!1),y=s(a)!=R}finally{a.display.shift=f,a.state.suppressEdits=!1}return y}function w5(a,s,p){for(var f=0;f<a.state.keyMaps.length;f++){var y=Ar(s,a.state.keyMaps[f],p,a);if(y)return y}return a.options.extraKeys&&Ar(s,a.options.extraKeys,p,a)||Ar(s,a.options.keyMap,p,a)}var C5=new pe;function Ma(a,s,p,f){var y=a.state.keySeq;if(y){if(nb(s))return"handled";if(/\'$/.test(s)?a.state.keySeq=null:C5.set(50,function(){a.state.keySeq==y&&(a.state.keySeq=null,a.display.input.reset())}),lb(a,y+" "+s,p,f))return!0}return lb(a,s,p,f)}function lb(a,s,p,f){var y=w5(a,s,f);return y=="multi"&&(a.state.keySeq=s),y=="handled"&&Xt(a,"keyHandled",a,s,p),(y=="handled"||y=="multi")&&(bt(p),zf(a)),!!y}function sb(a,s){var p=ob(s,!0);return p?s.shiftKey&&!a.state.keySeq?Ma(a,"Shift-"+p,s,function(f){return Js(a,f,!0)})||Ma(a,p,s,function(f){if(typeof f=="string"?/^go[A-Z]/.test(f):f.motion)return Js(a,f)}):Ma(a,p,s,function(f){return Js(a,f)}):!1}function _5(a,s,p){return Ma(a,"'"+p+"'",s,function(f){return Js(a,f,!0)})}var lp=null;function db(a){var s=this;if(!(a.target&&a.target!=s.display.input.getField())&&(s.curOp.focus=Q(ce(s)),!ct(s,a))){u&&h<11&&a.keyCode==27&&(a.returnValue=!1);var p=a.keyCode;s.display.shift=p==16||a.shiftKey;var f=sb(s,a);w&&(lp=f?p:null,!f&&p==88&&!gi&&(T?a.metaKey:a.ctrlKey)&&s.replaceSelection("",null,"cut")),i&&!T&&!f&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),p==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&E5(s)}}function E5(a){var s=a.display.lineDiv;J(s,"CodeMirror-crosshair");function p(f){(f.keyCode==18||!f.altKey)&&(L(s,"CodeMirror-crosshair"),Ke(document,"keyup",p),Ke(document,"mouseover",p))}_e(document,"keyup",p),_e(document,"mouseover",p)}function cb(a){a.keyCode==16&&(this.doc.sel.shift=!1),ct(this,a)}function ub(a){var s=this;if(!(a.target&&a.target!=s.display.input.getField())&&!(Ri(s.display,a)||ct(s,a)||a.ctrlKey&&!a.altKey||T&&a.metaKey)){var p=a.keyCode,f=a.charCode;if(w&&p==lp){lp=null,bt(a);return}if(!(w&&(!a.which||a.which<10)&&sb(s,a))){var y=String.fromCharCode(f==null?p:f);y!="\b"&&(_5(s,a,y)||s.display.input.onKeyPress(a))}}}var S5=400,sp=function(a,s,p){this.time=a,this.pos=s,this.button=p};sp.prototype.compare=function(a,s,p){return this.time+S5>a&&Se(s,this.pos)==0&&p==this.button};var La,ja;function A5(a,s){var p=+new Date;return ja&&ja.compare(p,a,s)?(La=ja=null,"triple"):La&&La.compare(p,a,s)?(ja=new sp(p,a,s),La=null,"double"):(La=new sp(p,a,s),ja=null,"single")}function fb(a){var s=this,p=s.display;if(!(ct(s,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,Ri(p,a)){m||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!dp(s,a)){var f=_o(s,a),y=pa(a),D=f?A5(f,y):"single";le(s).focus(),y==1&&s.state.selectingText&&s.state.selectingText(a),!(f&&x5(s,y,f,D,a))&&(y==1?f?N5(s,f,D,a):yn(a)==p.scroller&&bt(a):y==2?(f&&Hs(s.doc,f),setTimeout(function(){return p.input.focus()},20)):y==3&&(N?s.display.input.onContextMenu(a):Uf(s)))}}}function x5(a,s,p,f,y){var D="Click";return f=="double"?D="Double"+D:f=="triple"&&(D="Triple"+D),D=(s==1?"Left":s==2?"Middle":"Right")+D,Ma(a,ib(D,y),y,function(P){if(typeof P=="string"&&(P=Pa[P]),!P)return!1;var z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),z=P(a,p)!=R}finally{a.state.suppressEdits=!1}return z})}function k5(a,s,p){var f=a.getOption("configureMouse"),y=f?f(a,s,p):{};if(y.
`)==s){if(f.ranges.length%ri.text.length==0){q=[];for(var ne=0;ne<ri.text.length;ne++)q.push(D.splitLines(ri.text[ne]))}}else K.length==f.ranges.length&&a.options.pasteLinesPerSelection&&(q=Te(K,function(Ie){return[Ie]}));for(var ie=a.curOp.updateInput,ye=f.ranges.length-1;ye>=0;ye--){var me=f.ranges[ye],Ae=me.from(),Ne=me.to();me.empty()&&(p&&p>0?Ae=ue(Ae.line,Ae.ch-p):a.state.overwrite&&!z?Ne=ue(Ne.line,Math.min(Qe(D,Ne.line).text.length,Ne.ch+we(K).length)):z&&ri&&ri.lineWise&&ri.text.join(`
`)==K.join(`
`)&&(Ae=Ne=ue(Ae.line,0)));var Oe={from:Ae,to:Ne,text:q?q[ye%q.length]:K,origin:y||(z?"paste":a.state.cutIncoming>P?"cut":"+input")};_r(a.doc,Oe),Xt(a,"inputRead",a,Oe)}s&&!z&&bb(a,s),vr(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ie),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function vb(a,s){var p=a.clipboardData&&a.clipboardData.getData("Text");if(p)return a.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Dn(s,function(){return up(s,p,0,null,"paste")}),!0}function bb(a,s){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,f=p.ranges.length-1;f>=0;f--){var y=p.ranges[f];if(!(y.head.ch>100||f&&p.ranges[f-1].head.line==y.head.line)){var D=a.getModeAt(y.head),P=!1;if(D.electricChars){for(var z=0;z<D.electricChars.length;z++)if(s.indexOf(D.electricChars.charAt(z))>-1){P=za(a,y.head.line,"smart");break}}else D.electricInput&&D.electricInput.test(Qe(a.doc,y.head.line).text.slice(0,y.head.ch))&&(P=za(a,y.head.line,"smart"));P&&Xt(a,"electricInput",a,y.head.line)}}}function wb(a){for(var s=[],p=[],f=0;f<a.doc.sel.ranges.length;f++){var y=a.doc.sel.ranges[f].head.line,D={anchor:ue(y,0),head:ue(y+1,0)};p.push(D),s.push(a.getRange(D.anchor,D.head))}return{text:s,ranges:p}}function Cb(a,s,p,f){a.setAttribute("autocorrect",p?"":"off"),a.setAttribute("autocapitalize",f?"":"off"),a.setAttribute("spellcheck",!!s)}function _b(){var a=B("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=B("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?a.style.width="1000px":a.setAttribute("wrap","off"),_&&(a.style.border="1px solid black"),Cb(a),s}function I5(a){var s=a.optionHandlers,p=a.helpers={};a.prototype={constructor:a,focus:function(){le(this).focus(),this.display.input.focus()},setOption:function(f,y){var D=this.options,P=D[f];D[f]==y&&f!="mode"||(D[f]=y,s.hasOwnProperty(f)&&Zt(this,s[f])(this,y,P),Ye(this,"optionChange",this,f))},getOption:function(f){return this.options[f]},getDoc:function(){return this.doc},addKeyMap:function(f,y){this.state.keyMaps[y?"push":"unshift"](Qs(f))},removeKeyMap:function(f){for(var y=this.state.keyMaps,D=0;D<y.length;++D)if(y[D]==f||y[D].name==f)return y.splice(D,1),!0},addOverlay:fn(function(f,y){var D=f.token?f:a.getMode(this.options,f);if(D.startState)throw new Error("Overlays may not be stateful.");Je(this.state.overlays,{mode:D,modeSpec:f,opaque:y&&y.opaque,priority:y&&y.priority||0},function(P){return P.priority}),this.state.modeGen++,vn(this)}),removeOverlay:fn(function(f){for(var y=this.state.overlays,D=0;D<y.length;++D){var P=y[D].modeSpec;if(P==f||typeof f=="string"&&P.name==f){y.splice(D,1),this.state.modeGen++,vn(this);return}}}),indentLine:fn(function(f,y,D){typeof y!="string"&&typeof y!="number"&&(y==null?y=this.options.smartIndent?"smart":"prev":y=y?"add":"subtract"),ee(this.doc,f)&&za(this,f,y,D)}),indentSelection:fn(function(f){for(var y=this.doc.sel.ranges,D=-1,P=0;P<y.length;P++){var z=y[P];if(z.empty())z.head.line>D&&(za(this,z.head.line,f,!0),D=z.head.line,P==this.doc.sel.primIndex&&vr(this));else{var K=z.from(),q=z.to(),ne=Math.max(D,K.line);D=Math.min(this.lastLine(),q.line-(q.ch?0:1))+1;for(var ie=ne;ie<D;++ie)za(this,ie,f);var ye=this.doc.sel.ranges;K.ch==0&&y.length==ye.length&&ye[P].from().ch>0&&ip(this.doc,P,new Ct(K,ye[P].to()),j)}}}),getTokenAt:function(f,y){return Vv(this,f,y)},getLineTokens:function(f,y){return Vv(this,ue(f),y,!0)},getTokenTypeAt:function(f){f=at(this.doc,f);var y=Nv(this,Qe(this.doc,f.line)),D=0,P=(y.length-1)/2,z=f.ch,K;if(z==0)K=y[2];else for(;;){var q=D+P>>1;if((q?y[q*2-1]:0)>=z)P=q;else if(y[q*2+1]<z)D=q+1;else{K=y[q*2+2];break}}var ne=K?K.indexOf("overlay "):-1;return ne<0?K:ne==0?null:K.slice(0,ne-1)},getModeAt:function(f){var y=this.doc.mode;return y.innerMode?a.innerMode(y,this.getTokenAt(f).state).mode:y},getHelper:function(f,y){return this.getHelpers(f,y)[0]},getHelpers:function(f,y){var D=[];if(!p.hasOwnProperty(y))return D;var P=p[y],z=this.getModeAt(f);if(typeof
`,Oe=Ue(Ne,me)?"w":ye&&Ne==`
`?"n":!ye||/\s/.test(Ne)?null:"p";if(ye&&!Ae&&!Oe&&(Oe="s"),ie&&ie!=Oe){p<0&&(p=1,ne(),s.sticky="after");break}if(Oe&&(ie=Oe),p>0&&!ne(!Ae))break}var Ie=Gs(a,s,D,P,!0);return rt(D,Ie)&&(Ie.hitSide=!0),Ie}function Eb(a,s,p,f){var y=a.doc,D=s.left,P;if(f=="page"){var z=Math.min(a.display.wrapper.clientHeight,le(a).innerHeight||y(a).documentElement.clientHeight),K=Math.max(z-.5*mr(a.display),3);P=(p>0?s.bottom:s.top)+p*K}else f=="line"&&(P=p>0?s.bottom+3:s.top-3);for(var q;q=Ff(a,D,P),!!q.outside;){if(p<0?P<=0:P>=y.height){q.hitSide=!0;break}P+=p*5}return q}var St=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};St.prototype.init=function(a){var s=this,p=this,f=p.cm,y=p.div=a.lineDiv;y.contentEditable=!0,Cb(y,f.options.spellcheck,f.options.autocorrect,f.options.autocapitalize);function D(z){for(var K=z.target;K;K=K.parentNode){if(K==y)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(K.className))break}return!1}_e(y,"paste",function(z){!D(z)||ct(f,z)||vb(z,f)||h<=11&&setTimeout(Zt(f,function(){return s.updateFromDOM()}),20)}),_e(y,"compositionstart",function(z){s.composing={data:z.data,done:!1}}),_e(y,"compositionupdate",function(z){s.composing||(s.composing={data:z.data,done:!1})}),_e(y,"compositionend",function(z){s.composing&&(z.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),_e(y,"touchstart",function(){return p.forceCompositionEnd()}),_e(y,"input",function(){s.composing||s.readFromDOMSoon()});function P(z){if(!(!D(z)||ct(f,z))){if(f.somethingSelected())Zs({lineWise:!1,text:f.getSelections()}),z.type=="cut"&&f.replaceSelection("",null,"cut");else if(f.options.lineWiseCopyCut){var K=wb(f);Zs({lineWise:!0,text:K.text}),z.type=="cut"&&f.operation(function(){f.setSelections(K.ranges,0,j),f.replaceSelection("",null,"cut")})}else return;if(z.clipboardData){z.clipboardData.clearData();var q=ri.text.join(`
`);if(z.clipboardData.setData("Text",q),z.clipboardData.getData("Text")==q){z.preventDefault();return}}var ne=_b(),ie=ne.firstChild;f.display.lineSpace.insertBefore(ne,f.display.lineSpace.firstChild),ie.value=ri.text.join(`
`);var ye=Q(y.ownerDocument);Y(ie),setTimeout(function(){f.display.lineSpace.removeChild(ne),ye.focus(),ye==y&&p.showPrimarySelection()},50)}}_e(y,"copy",P),_e(y,"cut",P)},St.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var a=f0(this.cm,!1);return a.focus=Q(this.div.ownerDocument)==this.div,a},St.prototype.showSelection=function(a,s){!a||!this.cm.display.view.length||((a.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(a))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.prototype.showPrimarySelection=function(){var a=this.getSelection(),s=this.cm,p=s.doc.sel.primary(),f=p.from(),y=p.to();if(s.display.viewTo==s.display.viewFrom||f.line>=s.display.viewTo||y.line<s.display.viewFrom){a.removeAllRanges();return}var D=qs(s,a.anchorNode,a.anchorOffset),P=qs(s,a.focusNode,a.focusOffset);if(!(D&&!D.bad&&P&&!P.bad&&Se(Kt(D,P),f)==0&&Se(vt(D,P),y)==0)){var z=s.display.view,K=f.line>=s.display.viewFrom&&Sb(s,f)||{node:z[0].measure.map[2],offset:0},q=y.line<s.display.viewTo&&Sb(s,y);if(!q){var ne=z[z.length-1].measure,ie=ne.maps?ne.maps[ne.maps.length-1]:ne.map;q={node:ie[ie.length-1],offset:ie[ie.length-2]-ie[ie.length-3]}}if(!K||!q){a.removeAllRanges();return}var ye=a.rangeCount&&a.getRangeAt(0),me;try{me=A(K.node,K.offset,q.offset,q.node)}catch{}me&&(!i&&s.state.focused?(a.collapse(K.node,K.offset),me.collapsed||(a.removeAllRanges(),a.addRange(me))):(a.removeAllRanges(),a.addRange(me)),ye&&a.anchorNode==null?a.addRange(ye):i&&this.startGracePeriod()),this.rememberSelection()}},St.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},St.prototype.showMultipleSelections=function(a){W(this.cm.display.cursorDiv,a.cursors),W(this.cm.display.selectionDiv,a.selection)},St.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},St.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var s=a.getRangeAt(0).commonAncestorContainer;return $(this.div,s)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Q(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var a=this,s=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):Dn(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function p(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},St.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),s=this.cm;if(x&&C&&this.cm.display.gutterSpecs.length&&P5(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=qs(s,a.anchorNode,a.anchorOffset),f=qs(s,a.focusNode,a.focusOffset);p&&f&&Dn(s,function(){ln(s.doc,eo(p,f),j),(p.bad||f.bad)&&(s.curOp.selectionChanged=!0)})}}},St.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,s=a.display,p=a.doc.sel.primary(),f=p.from(),y=p.to();if(f.ch==0&&f.line>a.firstLine()&&(f=ue(f.lin
`),Y(y))}else return;P.type=="cut"&&(f.state.cutIncoming=+new Date)}}_e(y,"cut",D),_e(y,"copy",D),_e(a.scroller,"paste",function(P){if(!(Ri(a,P)||ct(f,P))){if(!y.dispatchEvent){f.state.pasteIncoming=+new Date,p.focus();return}var z=new Event("paste");z.clipboardData=P.clipboardData,y.dispatchEvent(z)}}),_e(a.lineSpace,"selectstart",function(P){Ri(a,P)||bt(P)}),_e(y,"compositionstart",function(){var P=f.getCursor("from");p.composing&&p.composing.range.clear(),p.composing={start:P,range:f.markText(P,f.getCursor("to"),{className:"CodeMirror-composing"})}}),_e(y,"compositionend",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},zt.prototype.createField=function(a){this.wrapper=_b(),this.textarea=this.wrapper.firstChild},zt.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var a=this.cm,s=a.display,p=a.doc,f=f0(a);if(a.options.moveInputWithCursor){var y=ii(a,p.sel.primary().head,"div"),D=s.wrapper.getBoundingClientRect(),P=s.lineDiv.getBoundingClientRect();f.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,y.top+P.top-D.top)),f.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,y.left+P.left-D.left))}return f},zt.prototype.showSelection=function(a){var s=this.cm,p=s.display;W(p.cursorDiv,a.cursors),W(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},zt.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var s=this.cm;if(s.somethingSelected()){this.prevInput="";var p=s.getSelection();this.textarea.value=p,s.state.focused&&Y(this.textarea),u&&h>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value="",u&&h>=9&&(this.hasSelection=null))}},zt.prototype.getField=function(){return this.textarea},zt.prototype.supportsTouch=function(){return!1},zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!k||Q(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},zt.prototype.blur=function(){this.textarea.blur()},zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zt.prototype.receivedFocus=function(){this.slowPoll()},zt.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},zt.prototype.fastPoll=function(){var a=!1,s=this;s.pollingFast=!0;function p(){var f=s.poll();!f&&!a?(a=!0,s.polling.set(60,p)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,p)},zt.prototype.poll=function(){var a=this,s=this.cm,p=this.textarea,f=this.prevInput;if(this.contextMenuPending||!s.state.focused||Ki(p)&&!f&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var y=p.value;if(y==f&&!s.somethingSelected())return!1;if(u&&h>=9&&this.hasSelection===y||T&&/[\uf700-\uf7ff]/.test(y))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var D=y.charCodeAt(0);if(D==8203&&!f&&(f="\u200B"),D==8666)return this.reset(),this.cm.execCommand("undo")}for(var P=0,z=Math.min(f.length,y.length);P<z&&f.charCodeAt(P)==y.charCodeAt(P);)++P;return Dn(s,function(){up(s,y.slice(P),f.length-P,null,a.composing?"*compose":null),y.length>1e3||y.indexOf(`
`)>-1?p.value=a.prevInput="":a.prevInput=y,a.composing&&(a.composing.range.clear(),a.composing.range=s.markText(a.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zt.prototype.onKeyPress=function(){u&&h>=9&&(this.hasSelection=null),this.fastPoll()},zt.prototype.onContextMenu=function(a){var s=this,p=s.cm,f=p.display,y=s.textarea;s.contextMenuPending&&s.contextMenuPending();var D=_o(p,a),P=f.scroller.scrollTop;if(!D||w)return;var z=p.options.resetSelectionOnContextMenu;z&&p.doc.sel.contains(D)==-1&&Zt(p,ln)(p.doc,eo(D),j);var K=y.style.cssText,q=s.wrapper.style.cssText,ne=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",y.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-ne.top-5)+"px; left: "+(a.clientX-ne.left-5)+`px;
z-index: 1000; background: `+(u?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ie;m&&(ie=y.ownerDocument.defaultView.scrollY),f.input.focus(),m&&y.ownerDocument.defaultView.scrollTo(null,ie),f.input.reset(),p.somethingSelected()||(y.value=s.prevInput=" "),s.contextMenuPending=me,f.selForContextMenu=p.doc.sel,clearTimeout(f.detectingSelectAll);function ye(){if(y.selectionStart!=null){var Ne=p.somethingSelected(),Oe="\u200B"+(Ne?y.value:"");y.value="\u21DA",y.value=Oe,s.prevInput=Ne?"":"\u200B",y.selectionStart=1,y.selectionEnd=Oe.length,f.selForContextMenu=p.doc.sel}}function me(){if(s.contextMenuPending==me&&(s.contextMenuPending=!1,s.wrapper.style.cssText=q,y.style.cssText=K,u&&h<9&&f.scrollbars.setScrollTop(f.scroller.scrollTop=P),y.selectionStart!=null)){(!u||u&&h<9)&&ye();var Ne=0,Oe=function(){f.selForContextMenu==p.doc.sel&&y.selectionStart==0&&y.selectionEnd>0&&s.prevInput=="\u200B"?Zt(p,z0)(p):Ne++<10?f.detectingSelectAll=setTimeout(Oe,500):(f.selForContextMenu=null,f.input.reset())};f.detectingSelectAll=setTimeout(Oe,200)}}if(u&&h>=9&&ye(),N){ei(a);var Ae=function(){Ke(window,"mouseup",Ae),setTimeout(me,20)};_e(window,"mouseup",Ae)}else setTimeout(me,50)},zt.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},zt.prototype.setUneditable=function(){},zt.prototype.needsContentAttribute=!1;function j5(a,s){if(s=s?fe(s):{},s.value=a.value,!s.tabindex&&a.tabIndex&&(s.tabindex=a.tabIndex),!s.placeholder&&a.placeholder&&(s.placeholder=a.placeholder),s.autofocus==null){var p=Q(a.ownerDocument);s.autofocus=p==a||a.getAttribute("autofocus")!=null&&p==document.body}function f(){a.value=z.getValue()}var y;if(a.form&&(_e(a.form,"submit",f),!s.leaveSubmitMethodAlone)){var D=a.form;y=D.submit;try{var P=D.submit=function(){f(),D.submit=y,D.submit(),D.submit=P}}catch{}}s.finishInit=function(K){K.save=f,K.getTextArea=function(){return a},K.toTextArea=function(){K.toTextArea=isNaN,f(),a.parentNode.removeChild(K.getWrapperElement()),a.style.display="",a.form&&(Ke(a.form,"submit",f),!s.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=y))}},a.style.display="none";var z=Ot(function(K){return a.parentNode.insertBefore(K,a.nextSibling)},s);return z}function z5(a){a.off=Ke,a.on=_e,a.wheelEventPixels=Q4,a.Doc=bn,a.splitLines=ha,a.countColumn=se,a.findColumn=te,a.isWordChar=Ce,a.Pass=R,a.signal=Ye,a.Line=fr,a.changeEnd=to,a.scrollbarModel=v0,a.Pos=ue,a.cmpPos=Se,a.modes=ti,a.mimeModes=Yi,a.resolveMode=Tn,a.getMode=Ti,a.modeExtensions=Qi,a.extendMode=Ss,a.copyState=Di,a.startState=ma,a.innerMode=Ji,a.commands=Pa,a.keyMap=Fi,a.keyName=ob,a.isModifierKey=nb,a.lookupKey=Ar,a.normalizeKeyMap=y5,a.StringStream=It,a.SharedTextMarker=$a,a.TextMarker=io,a.LineWidget=Ra,a.e_preventDefault=bt,a.e_stopPropagation=Gn,a.e_stop=ei,a.addClass=J,a.contains=$,a.rmClass=L,a.keyNames=oo}B5(Ot),I5(Ot);var U5="iter insert remove copy getEditor constructor".split(" ");for(var ed in bn.prototype)bn.prototype.hasOwnProperty(ed)&&ae(U5,ed)<0&&(Ot.prototype[ed]=function(a){return function(){return a.apply(this.doc,arguments)}}(bn.prototype[ed]));return Tt(bn),Ot.inputStyles={textarea:zt,contenteditable:St},Ot.defineMode=function(a){!Ot.defaults.mode&&a!="null"&&(Ot.defaults.mode=a),Es.apply(this,arguments)},Ot.defineMIME=cr,Ot.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Ot.defineMIME("text/plain","null"),Ot.defineExtension=function(a,s){Ot.prototype[a]=s},Ot.defineDocExtension=function(a,s){bn.prototype[a]=s},Ot.fromTextArea=j5,z5(Ot),Ot.version="6.65.7",Ot})}(Tu)),Tu.exports}var ki=qo();(function(e,t){(function(o){o(qo())})(function(o){o.defineMode("javascript",function(r,i){var l=r.indentUnit,d=i.statementIndent,c=i.jsonld,u=i.json||c,h=i.trackScope!==!1,m=i.typescript,v=i.wordCharacters||/[\w$\xa1-\uffff]/,C=function(){function ee(Kt){return{type:Kt,style:"keyword"}}var oe=ee("keyword a"),ue=ee("keyword b"),Se=ee("keyword c"),rt=ee("keyword d"),mt=ee("operator"),vt={type:"atom",style:"atom"};return{if:e
`+e+`
}`)()}catch(o){return console.error(o),dn(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+e:this.fn=nD+t+iD}return this.submit(),!0},submit(){this.$emit("update:modelValue",this.fn),this.$emit("change",this.fn),this.value=this.fn,this.visible=!1},trimString(e){const t=e.indexOf("{"),o=e.lastIndexOf("}");return t===-1||o===-1||t>=o?e:e.slice(t+1,o).replace(/^\n+|\n+$/g,"")},tidyValue(){let e=this.modelValue||"";return e.__json&&(e=e.__json),this.fnx&&typeof e=="string"&&e.indexOf("$FNX:")===0&&(e=e.slice(5)),typeof e=="function"?e=this.trimString(En(e)).trim():this.body||(e=this.trimString(e).trim()),this.value=e,e},load(){this.$nextTick(()=>{let e=this.tidyValue();this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:{name:"javascript",globalVars:!0},extraKeys:{"Ctrl-Space":"autocomplete"},line:!0,tabSize:2,lineWrapping:!0,value:e})),this.editor.on("inputRead",(t,o)=>{o.keyCode===32&&o.ctrlKey&&ki.showHint(t,ki.hint.javascript)}),this.editor.on("change",()=>{this.visible=!0}),this.editor})}}}),rD={class:"_fd-fn"},aD={class:"_fd-fn-tip"},lD={class:"cm-keyword"},sD={key:0},dD={class:"_fd-fn-arg"},cD={ref:"editor",class:"_fd-fn-editor"};function uD(e,t,o,r,i,l){const d=n.resolveComponent("el-table-column"),c=n.resolveComponent("el-table"),u=n.resolveComponent("el-popover"),h=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",rD,[n.createElementVNode("div",aD,[t[2]||(t[2]=n.createElementVNode("div",{class:"_fd-fn-ind"},null,-1)),n.createElementVNode("div",lD,[n.createElementVNode("span",null,[n.createTextVNode("function "+n.toDisplayString(e.name)+"(",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.argList,(m,v)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createTextVNode(n.toDisplayString(v>0?", ":""),1),m.type==="string"?(n.openBlock(),n.createElementBlock("span",sD,n.toDisplayString(m.name),1)):(n.openBlock(),n.createBlock(u,{key:1,placement:"top-start",width:400,"hide-after":0,trigger:"click",title:m.name,content:m.info||""},{reference:n.withCtx(()=>[n.createElementVNode("span",dD,[n.createTextVNode(n.toDisplayString(m.name),1),t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-question"},null,-1))])]),default:n.withCtx(()=>[m.columns?(n.openBlock(),n.createBlock(c,{key:0,data:m.columns,border:""},{default:n.withCtx(()=>[n.createVNode(d,{width:"120",property:"label",label:e.t("props.field")},null,8,["label"]),n.createVNode(d,{property:"info",label:e.t("event.info")},null,8,["label"]),n.createVNode(d,{width:"80",property:"type",label:e.t("event.type")},null,8,["label"])]),_:2},1032,["data"])):n.createCommentVNode("",!0)]),_:2},1032,["title","content"]))],64))),256)),t[1]||(t[1]=n.createTextVNode(") {"))])])]),n.createElementVNode("div",cD,null,512),t[3]||(t[3]=n.createElementVNode("div",{class:"_fd-fn-tip"},[n.createElementVNode("div",{class:"_fd-fn-ind"}),n.createElementVNode("div",{class:"cm-keyword"},"}")],-1)),e.visible&&e.button?(n.openBlock(),n.createBlock(h,{key:0,type:"primary",size:"small",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)])}const Ni=De(oD,[["render",uD]]),wj="",fD=n.defineComponent({name:"ConditionInput",inject:["designer"],emits:["update:modelValue","change"],props:{type:String,options:Array,props:Object,modelValue:[String,Number,Array,Object,Boolean]},watch:{modelValue(){this.value=this.modelValue||void 0}},data(){return{value:this.modelValue||void 0}},methods:{onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}},created(){}}),pD={class:"_fd-cdi-input"};function hD(e,t,o,r,i,l){const d=n.resolveComponent("el-cascader"),c=n.resolveComponent("el-input-number"),u=n.resolveComponent("el-option"),h=n.resolveComponent("el-select"),m=n.resolveComponent("el-switch"),v=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",pD,[e.type==="cascader"?(n.openBlock(),n.createBlock(d,n.mergeProps({key:0,size:"default",props:{checkStrictly:!0,emitPath:!1}
Highlight.js v11.9.0 (git: b7ec4bfafc)
(c) 2006-2024 undefined and other contributors
License: BSD-3-Clause
*/function Cg(e){return e instanceof Map?e.clear=e.delete=e.set=()=>{throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()=>{throw Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const o=e[t],r=typeof o;r!=="object"&&r!=="function"||Object.isFrozen(o)||Cg(o)}),e}class _g{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Eg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Wi(e,...t){const o=Object.create(null);for(const r in e)o[r]=e[r];return t.forEach(r=>{for(const i in r)o[i]=r[i]}),o}const Sg=e=>!!e.scope;class FV{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=Eg(t)}openNode(t){if(!Sg(t))return;const o=((r,{prefix:i})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const l=r.split(".");return[`${i}${l.shift()}`,...l.map((d,c)=>`${d}${"_".repeat(c+1)}`)].join(" ")}return`${i}${r}`})(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){Sg(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Ag=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Ou{constructor(){this.rootNode=Ag(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const o=Ag({scope:t});this.add(o),this.stack.push(o)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(r=>this._walk(t,r)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{Ou._collapse(o)}))}}class IV extends Ou{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){const r=t.root;o&&(r.scope="language:"+o),this.add(r)}toHTML(){return new FV(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ra(e){return e?typeof e=="string"?e:e.source:null}function xg(e){return go("(?=",e,")")}function PV(e){return go("(?:",e,")*")}function MV(e){return go("(?:",e,")?")}function go(...e){return e.map(t=>ra(t)).join("")}function Bu(...e){return"("+((o=>{const r=o[o.length-1];return typeof r=="object"&&r.constructor===Object?(o.splice(o.length-1,1),r):{}})(e).capture?"":"?:")+e.map(o=>ra(o)).join("|")+")"}function kg(e){return RegExp(e.toString()+"|").exec("").length-1}const LV=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ru(e,{joinWith:t}){let o=0;return e.map(r=>{o+=1;const i=o;let l=ra(r),d="";for(;l.length>0;){const c=LV.exec(l);if(!c){d+=l;break}d+=l.substring(0,c.index),l=l.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?d+="\\"+(Number(c[1])+i):(d+=c[0],c[0]==="("&&o++)}return d}).map(r=>`(${r})`).join(t)}const Ng="[a-zA-Z]\\w*",$u="[a-zA-Z_]\\w*",Tg="\\b\\d+(\\.\\d+)?",Dg="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Vg="\\b(0b[01]+)",aa={begin:"\\\\[\\s\\S]",relevance:0},jV={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[aa]},zV={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[aa]},Ql=(e,t,o={})=>{const r=Wi({scope:"comment",begin:e,end:t,contains:[]},o);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Bu("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 r.contains.push({begin:go(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},UV=Ql("//","$"),HV=Ql("
https://github.com/highlightjs/highlight.js/issues/2277`),I=x,V=k),T===void 0&&(T=!0);const F={code:V,language:I};_("before:highlight",F);const M=F.result?F.result:m(F.language,F.code,T);return M.code=F.code,_("after:highlight",M),M}function m(x,k,T,V){const I=Object.create(null);function F(){if(!G.keywords)return ce.addText(le);let ae=0;G.keywordPatternRe.lastIndex=0;let he=G.keywordPatternRe.exec(le),R="";for(;he;){R+=le.substring(ae,he.index);const X=$.case_insensitive?he[0].toLowerCase():he[0],Z=(j=X,G.keywords[j]);if(Z){const[te,re]=Z;if(ce.addText(R),R="",I[X]=(I[X]||0)+1,I[X]<=7&&(be+=re),te.startsWith("_"))R+=he[0];else{const Ee=$.classNameAliases[te]||te;N(he[0],Ee)}}else R+=he[0];ae=G.keywordPatternRe.lastIndex,he=G.keywordPatternRe.exec(le)}var j;R+=le.substring(ae),ce.addText(R)}function M(){G.subLanguage!=null?(()=>{if(le==="")return;let ae=null;if(typeof G.subLanguage=="string"){if(!t[G.subLanguage])return ce.addText(le);ae=m(G.subLanguage,le,!0,Y[G.subLanguage]),Y[G.subLanguage]=ae._top}else ae=v(le,G.subLanguage.length?G.subLanguage:null);G.relevance>0&&(be+=ae.relevance),ce.__addSublanguage(ae._emitter,ae.language)})():F(),le=""}function N(ae,he){ae!==""&&(ce.startScope(he),ce.addText(ae),ce.endScope())}function O(ae,he){let R=1;const j=he.length-1;for(;R<=j;){if(!ae._emit[R]){R++;continue}const X=$.classNameAliases[ae[R]]||ae[R],Z=he[R];X?N(Z,X):(le=Z,F(),le=""),R++}}function L(ae,he){return ae.scope&&typeof ae.scope=="string"&&ce.openNode($.classNameAliases[ae.scope]||ae.scope),ae.beginScope&&(ae.beginScope._wrap?(N(le,$.classNameAliases[ae.beginScope._wrap]||ae.beginScope._wrap),le=""):ae.beginScope._multi&&(O(ae.beginScope,he),le="")),G=Object.create(ae,{parent:{value:G}}),G}function H(ae,he,R){let j=((X,Z)=>{const te=X&&X.exec(Z);return te&&te.index===0})(ae.endRe,R);if(j){if(ae["on:end"]){const X=new _g(ae);ae["on:end"](he,X),X.isMatchIgnored&&(j=!1)}if(j){for(;ae.endsParent&&ae.parent;)ae=ae.parent;return ae}}if(ae.endsWithParent)return H(ae.parent,he,R)}function W(ae){return G.matcher.regexIndex===0?(le+=ae[0],1):(pe=!0,0)}function B(ae){const he=ae[0],R=k.substring(ae.index),j=H(G,ae,R);if(!j)return Pg;const X=G;G.endScope&&G.endScope._wrap?(M(),N(he,G.endScope._wrap)):G.endScope&&G.endScope._multi?(M(),O(G.endScope,ae)):X.skip?le+=he:(X.returnEnd||X.excludeEnd||(le+=he),M(),X.excludeEnd&&(le=he));do G.scope&&ce.closeNode(),G.skip||G.subLanguage||(be+=G.relevance),G=G.parent;while(G!==j.parent);return j.starts&&L(j.starts,ae),X.returnEnd?0:he.length}let U={};function A(ae,he){const R=he&&he[0];if(le+=ae,R==null)return M(),0;if(U.type==="begin"&&he.type==="end"&&U.index===he.index&&R===""){if(le+=k.slice(he.index,he.index+1),!i){const j=Error(`0 width match regex (${x})`);throw j.languageName=x,j.badRule=U.rule,j}return 1}if(U=he,he.type==="begin")return(j=>{const X=j[0],Z=j.rule,te=new _g(Z),re=[Z.__beforeBegin,Z["on:begin"]];for(const Ee of re)if(Ee&&(Ee(j,te),te.isMatchIgnored))return W(X);return Z.skip?le+=X:(Z.excludeBegin&&(le+=X),M(),Z.returnBegin||Z.excludeBegin||(le=X)),L(Z,j),Z.returnBegin?0:X.length})(he);if(he.type==="illegal"&&!T){const j=Error('Illegal lexeme "'+R+'" for mode "'+(G.scope||"<unnamed>")+'"');throw j.mode=G,j}if(he.type==="end"){const j=B(he);if(j!==Pg)return j}if(he.type==="illegal"&&R==="")return 1;if(se>1e5&&se>3*he.index)throw Error("potential infinite loop, way more iterations than matches");return le+=R,R.length}const $=E(x);if(!$)throw yo(l.replace("{}",x)),Error('Unknown language: "'+x+'"');const Q=iO($);let J="",G=V||Q;const Y={},ce=new c.__emitter(c);(()=>{const ae=[];for(let he=G;he!==$;he=he.parent)he.scope&&ae.unshift(he.scope);ae.forEach(he=>ce.openNode(he))})();let le="",be=0,fe=0,se=0,pe=!1;try{if($.__emitTokens)$.__emitTokens(k,ce);else{for(G.matcher.considerAll();;){se++,pe?pe=!1:G.matcher.considerAll(),G.matcher.lastIndex=fe;const ae=G.matcher.exec(k);if(!ae)break;const he=A(k.substring(fe,ae.index),ae);fe=ae.index+he}A(k.substring(fe))}return ce.finalize(),J=ce.toHTML(),{language:x,value:J,relevance:be,illegal:!1,_emitter:ce,_top:G}}catch(ae){if(ae
`);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},e.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},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 r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function t(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}t.prototype.get_indent_size=function(r,i){var l=this.__base_string_length;return i=i||0,r<0&&(l=0),l+=r*this.__indent_size,l+=i,l},t.prototype.get_indent_string=function(r,i){var l=this.__base_string;return i=i||0,r<0&&(r=0,l=""),i+=r*this.__indent_size,this.__ensure_cache(i),l+=this.__cache[i],l},t.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var r=this.__cache.length,i=0,l="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,l=new Array(i+1).join(this.__indent_string)),r&&(l+=new Array(r+1).join(" ")),this.__cache.push(l)};function o(r,i){this.__indent_cache=new t(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.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 o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},o.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var l=this.__lines.join(`
`);return r!==`
`&&(l=l.replace(/[\n]/g,r)),l},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},o.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(" "))},o.prototype.remove_indent=function(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&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},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(r,i){for(var l=this.__lines.length-2;l>=0;){var d=this.__lines[l];if(d.is_empty())break;if(d.item(0).indexOf(r)!==0&&d.item(-1)!==i){this.__lines.splice(l+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}l--}},Pu.Output=o,Pu}var Lu={},Hg;function Wg(){if(Hg)return Lu;Hg=1;function e(t,o,r,i){this.type=t,this.text=o,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Lu.Token=e,Lu}var ju={},Gg;function Kg(){return Gg||(Gg=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\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-\\u0e4
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(ju)),ju}var zu={},da={},Yg;function Uu(){if(Yg)return da;Yg=1;function e(r,i){this.raw_options=t(r,i),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",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(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"])}e.prototype._get_array=function(r,i){var l=this.raw_options[r],d=i||[];return typeof l=="object"?l!==null&&typeof l.concat=="function"&&(d=l.concat()):typeof l=="string"&&(d=l.split(/[^a-zA-Z0-9_\/\-]+/)),d},e.prototype._get_boolean=function(r,i){var l=this.raw_options[r],d=l===void 0?!!i:!!l;return d},e.prototype._get_characters=function(r,i){var l=this.raw_options[r],d=i||"";return typeof l=="string"&&(d=l.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},e.prototype._get_number=function(r,i){var l=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var d=parseInt(l,10);return isNaN(d)&&(d=i),d},e.prototype._get_selection=function(r,i,l){var d=this._get_selection_list(r,i,l);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return d[0]},e.prototype._get_selection_list=function(r,i,l){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(l=l||[i[0]],!this._is_valid_selection(l,i))throw new Error("Invalid Default Value!");var d=this._get_array(r,l);if(!this._is_valid_selection(d,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return d},e.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(l){return i.indexOf(l)===-1})};function t(r,i){var l={};r=o(r);var d;for(d in r)d!==i&&(l[d]=r[d]);if(i&&r[i])for(d in r[i])l[d]=r[i][d];return l}function o(r){var i={},l;for(l in r){var d=l.replace(/-/g,"_");i[d]=r[l]}return i}return da.Options=e,da.normalizeOpts=o,da.mergeOpts=t,da}var Qg;function Jg(){if(Qg)return zu;Qg=1;var e=Uu().Options,t=["before-newline","after-newline","preserve-newline"];function o(r){e.call(this,r,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var l=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<l.length;d++)l[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=l[d];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 o.prototype=new e,zu.Options=o,zu}var ir={},Hu={},Xg;function Wu(){if(Xg)return Hu;Xg=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(o){this.__input=o||"",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 o=null;return this.hasNext()&&(o=this.__input.charAt(this.__position),this.__position+=1),o},t.prototype.peek=function(o){var r=null;return o=o||0,o+=this.__position,o>=0&&o<this.__input_length&&(r=this.__input.charAt(o)),r},t.prototype.__match=function(o,r){o.lastIndex=r;var i=o.exec(this.__input);return i&&!(e&&o.sticky)&&i.index!==r&&(i=null),i},t.prototype.test=function(o,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(o,r):!1},t.prototype.testChar=function(o,r){var i=this.peek(r);return o.lastIndex=0,i!==null&&o.test(i)},t.prototype.match=function(o){var r=this.__match(o,this.__position);return r?this.__position+=r[0].length:r=null,r},t.prototype.read=function(o,r,i){var l="",d;return o&&(d=this.match(o),d&&(l+=d[0])),r&&(d||!o)&&(l+=this.readUntil(r,i)),l},t.prototype.readUntil=function(o,r){var i="",l=this.__position;o.lastIndex=this.__position;var d=o.exec(this.__input);return d?(l=d.index,r&&(l+=d[0].length)):l=this.__input_length,i=this.__input.substring(this.__position,l),this.__position=l,i},t.prototype.readUntilAfter=function(o){return this.readUntil(o,!0)},t.prototype.get_regexp=function(o,r){var i=null,l="g";return r&&e&&(l="y"),typeof o=="string"&&o!==""?i=new RegExp(o,l):o&&(i=new RegExp(o.source,l)),i},t.prototype.get_literal_regexp=function(o){return RegExp(o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(o){var r=this.__position,i=this.readUntilAfter(o);return this.__position=r,i},t.prototype.lookBack=
`),!(V.type===u.DOT||V.type===u.RESERVED&&(V.text==="set"||V.text==="get"))&&_.test(I)?(I==="in"||I==="of")&&(V.type===u.WORD||V.type===u.STRING)?this._create_token(u.OPERATOR,I):this._create_token(u.RESERVED,I):this._create_token(u.WORD,I);if(I=this.__patterns.number.read(),I!=="")return this._create_token(u.WORD,I)},k.prototype._read_singles=function(V){var I=null;return V==="("||V==="["?I=this._create_token(u.START_EXPR,V):V===")"||V==="]"?I=this._create_token(u.END_EXPR,V):V==="{"?I=this._create_token(u.START_BLOCK,V):V==="}"?I=this._create_token(u.END_BLOCK,V):V===";"?I=this._create_token(u.SEMICOLON,V):V==="."&&C.test(this._input.peek(1))?I=this._create_token(u.DOT,V):V===","&&(I=this._create_token(u.COMMA,V)),I&&this._input.next(),I},k.prototype._read_pair=function(V,I){var F=null;return V==="#"&&I==="{"&&(F=this._create_token(u.START_BLOCK,V+I)),F&&(this._input.next(),this._input.next()),F},k.prototype._read_punctuation=function(){var V=this.__patterns.punct.read();if(V!=="")return V==="="?this._create_token(u.EQUALS,V):V==="?."?this._create_token(u.DOT,V):this._create_token(u.OPERATOR,V)},k.prototype._read_non_javascript=function(V){var I="";if(V==="#"){if(this._is_first_token()&&(I=this.__patterns.shebang.read(),I))return this._create_token(u.UNKNOWN,I.trim()+`
`);if(I=this.__patterns.include.read(),I)return this._create_token(u.UNKNOWN,I.trim()+`
`);V=this._input.next();var F="#";if(this._input.hasNext()&&this._input.testChar(v)){do V=this._input.next(),F+=V;while(this._input.hasNext()&&V!=="#"&&V!=="=");return V==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(F+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(F+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,F)}this._input.back()}else if(V==="<"&&this._is_first_token()){if(I=this.__patterns.html_comment_start.read(),I){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)I+=this._input.next();return x=!0,this._create_token(u.COMMENT,I)}}else if(x&&V==="-"&&(I=this.__patterns.html_comment_end.read(),I))return x=!1,this._create_token(u.COMMENT,I);return null},k.prototype._read_comment=function(V){var I=null;if(V==="/"){var F="";if(this._input.peek(1)==="*"){F=this.__patterns.block_comment.read();var M=h.get_directives(F);M&&M.ignore==="start"&&(F+=h.readIgnored(this._input)),F=F.replace(i.allLineBreaks,`
`),I=this._create_token(u.BLOCK_COMMENT,F),I.directives=M}else this._input.peek(1)==="/"&&(F=this.__patterns.comment.read(),I=this._create_token(u.COMMENT,F))}return I},k.prototype._read_string=function(V){if(V==="`"||V==="'"||V==='"'){var I=this._input.next();return this.has_char_escapes=!1,V==="`"?I+=this._read_string_recursive("`",!0,"${"):I+=this._read_string_recursive(V),this.has_char_escapes&&this._options.unescape_strings&&(I=T(I)),this._input.peek()===V&&(I+=this._input.next()),I=I.replace(i.allLineBreaks,`
`),this._create_token(u.STRING,I)}return null},k.prototype._allow_regexp_or_xml=function(V){return V.type===u.RESERVED&&c(V.text,["return","case","throw","else","do","typeof","yield"])||V.type===u.END_EXPR&&V.text===")"&&V.opened.previous.type===u.RESERVED&&c(V.opened.previous.text,["if","while","for"])||c(V.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},k.prototype._read_regexp=function(V,I){if(V==="/"&&this._allow_regexp_or_xml(I)){for(var F=this._input.next(),M=!1,N=!1;this._input.hasNext()&&(M||N||this._input.peek()!==V)&&!this._input.testChar(i.newline);)F+=this._input.peek(),M?M=!1:(M=this._input.peek()==="\\",this._input.peek()==="["?N=!0:this._input.peek()==="]"&&(N=!1)),this._input.next();return this._input.peek()===V&&(F+=this._input.next(),F+=this._input.read(i.identifier)),this._create_token(u.STRING,F)}return null},k.prototype._read_xml=function(V,I){if(this._options.e4x&&V==="<"&&this._allow_regexp_or_xml(I)){var F="",M=this.__patterns.xml.read_match();if(M){for(var N=M[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),O=N.indexOf("{")===0,L=0;M;){var H=!!M[1],W=M[2],B=!!M[M.length-1]||W.slice(0,8)==="![CDATA[";if(!B&&(W===N||O&&W.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(H?--L:++L),F+=M[0],L<=0)break;M=this.__patterns.xml.read_match()}return M||(F+=this._input.match(/[\s\S]*/g)[0]),F=F.replace(i.allLineBreaks,`
`),this._create_token(u.STRING,F)}}return null};function T(V){for(var I="",F=0,M=new e(V),N=null;M.hasNext();)if(N=M.match(/([\s]|[^\\]|\\\\)+/g),N&&(I+=N[0]),M.peek()==="\\"){if(M.next(),M.peek()==="x")N=M.match(/x([0-9A-Fa-f]{2})/g);else if(M.peek()==="u")N=M.match(/u([0-9A-Fa-f]{4})/g),N||(N=M.match(/u\{([0-9A-Fa-f]+)\}/g));else{I+="\\",M.hasNext()&&(I+=M.next());continue}if(!N||(F=parseInt(N[1],16),F>126&&F<=255&&N[0].indexOf("x")===0))return V;F>=0&&F<32||F>1114111?I+="\\"+N[0]:F===34||F===39||F===92?I+="\\"+String.fromCharCode(F):I+=String.fromCharCode(F)}return I}return k.prototype._read_string_recursive=function(V,I,F){var M,N;V==="'"?N=this.__patterns.single_quote:V==='"'?N=this.__patterns.double_quote:V==="`"?N=this.__patterns.template_text:V==="}"&&(N=this.__patterns.template_expression);for(var O=N.read(),L="";this._input.hasNext();){if(L=this._input.next(),L===V||!I&&i.newline.test(L)){this._input.back();break}else L==="\\"&&this._input.hasNext()?(M=this._input.peek(),M==="x"||M==="u"?this.has_char_escapes=!0:M==="\r"&&this._input.peek(1)===`
`&&this._input.next(),L+=this._input.next()):F&&(F==="${"&&L==="$"&&this._input.peek()==="{"&&(L+=this._input.next()),F===L&&(V==="`"?L+=this._read_string_recursive("}",I,"`"):L+=this._read_string_recursive("`",I,"${"),this._input.hasNext()&&(L+=this._input.next())));L+=N.read(),O+=L}return O},ir.Tokenizer=k,ir.TOKEN=u,ir.positionable_operators=S.slice(),ir.line_starters=b.slice(),ir}var ay;function kO(){if(ay)return Iu;ay=1;var e=Mu().Output,t=Wg().Token,o=Kg(),r=Jg().Options,i=ns().Tokenizer,l=ns().line_starters,d=ns().positionable_operators,c=ns().TOKEN;function u(N,O){return O.indexOf(N)!==-1}function h(N){return N.replace(/^\s+/g,"")}function m(N){for(var O={},L=0;L<N.length;L++)O[N[L].replace(/-/g,"_")]=N[L];return O}function v(N,O){return N&&N.type===c.RESERVED&&N.text===O}function C(N,O){return N&&N.type===c.RESERVED&&u(N.text,O)}var S=["case","return","do","if","throw","else","await","break","continue","async"],w=["before-newline","after-newline","preserve-newline"],E=m(w),b=[E.before_newline,E.preserve_newline],g={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function _(N,O){O.multiline_frame||O.mode===g.ForInitializer||O.mode===g.Conditional||N.remove_indent(O.start_line_index)}function x(N){N=N.replace(o.allLineBreaks,`
`);for(var O=[],L=N.indexOf(`
`);L!==-1;)O.push(N.substring(0,L)),N=N.substring(L+1),L=N.indexOf(`
`);return N.length&&O.push(N),O}function k(N){return N===g.ArrayLiteral}function T(N){return u(N,[g.Expression,g.ForInitializer,g.Conditional])}function V(N,O){for(var L=0;L<N.length;L++){var H=N[L].trim();if(H.charAt(0)!==O)return!1}return!0}function I(N,O){for(var L=0,H=N.length,W;L<H;L++)if(W=N[L],W&&W.indexOf(O)!==0)return!1;return!0}function F(N,O){O=O||{},this._source_text=N||"",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 r(O)}F.prototype.create_flags=function(N,O){var L=0;N&&(L=N.indentation_level,!this._output.just_added_newline()&&N.line_indent_level>L&&(L=N.line_indent_level));var H={mode:O,parent:N,last_token:N?N.last_token:new t(c.START_BLOCK,""),last_word:N?N.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:L,alignment:0,line_indent_level:N?N.line_indent_level:L,start_line_index:this._output.get_line_number(),ternary_depth:0};return H},F.prototype._reset=function(N){var O=N.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,O),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g.BlockStatement);var L=new i(N,this._options);return this._tokens=L.tokenize(),N},F.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N,O=this._reset(this._source_text),L=this._options.eol;this._options.eol==="auto"&&(L=`
`,O&&o.lineBreak.test(O||"")&&(L=O.match(o.lineBreak)[0]));for(var H=this._tokens.next();H;)this.handle_token(H),this._last_last_text=this._flags.last_token.text,this._flags.last_token=H,H=this._tokens.next();return N=this._output.get_code(L),N},F.prototype.handle_token=function(N,O){N.type===c.START_EXPR?this.handle_start_expr(N):N.type===c.END_EXPR?this.handle_end_expr(N):N.type===c.START_BLOCK?this.handle_start_block(N):N.type===c.END_BLOCK?this.handle_end_block(N):N.type===c.WORD?this.handle_word(N):N.type===c.RESERVED?this.handle_word(N):N.type===c.SEMICOLON?this.handle_semicolon(N):N.type===c.STRING?this.handle_string(N):N.type===c.EQUALS?this.handle_equals(N):N.type===c.OPERATOR?this.handle_operator(N):N.type===c.COMMA?this.handle_comma(N):N.type===c.BLOCK_COMMENT?this.handle_block_comment(N,O):N.type===c.COMMENT?this.handle_comment(N,O):N.type===c.DOT?this.handle_dot(N):N.type===c.EOF?this.handle_eof(N):N.type===c.UNKNOWN?this.handle_unknown(N,O):this.handle_unknown(N,O)},F.prototype.handle_whitespace_and_comments=function(N,O){var L=N.newlines,H=this._options.keep_array_indentation&&k(this._flags.mode);if(N.comments_before)for(var W=N.comments_before.next();W;)this.handle_whitespace_and_comments(W,O),this.handle_token(W,O),W=N.comments_before.next();if(H)for(var B=0;B<L;B+=1)this.print_newline(B>0,O);else if(this._options.max_preserve_newlines&&L>this._options.max_preserve_newlines&&(L=this._options.max_preserve_newlines),this._options.preserve_newlines&&L>1){this.print_newline(!1,O);for(var U=1;U<L;U+=1)this.print_newline(!0,O)}};var M=["async","break","continue","return","throw","yield"];return F.prototype.allow_wrap_or_preserved_newline=function(N,O){if(O=O===void 0?!1:O,!this._output.just_added_newline()){var L=this._options.preserve_newlines&&N.newlines||O,H=u(this._flags.last_token.text,d)||u(N.text,d);if(H){var W=u(this._flags.last_token.text,d)&&u(this._options.operator_position,b)||u(N.text,d);L=L&&W}if(L)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(C(this._flags.last_token,M))return;this._output.set_wrap_point()}}},F.prototype.print_newline=function(N,O){if(!O&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var L=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&v(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(N)&&(this._flags.multiline_frame=!0)},F.prototype.print_token_line_indentation=function(N){this._output.just_added_newline()&&(this._options.keep_array_indentation&&N.newlines&&(N.text==="["||k(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(N.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))},F.prototype.print_token=function(N){if(this._output.raw){this._output.add_raw_token(N);return}if(this._options.comma_first&&N.previous&&N.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var O=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(O),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(N),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(N),this._output.non_breaking_space=!0,this._output.add_token(N.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},F.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.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
`&&this.print_newline(!1,O)},F.prototype.handle_eof=function(N){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N)},Iu.Beautifier=F,Iu}var ly;function NO(){if(ly)return Zl.exports;ly=1;var e=kO().Beautifier,t=Jg().Options;function o(r,i){var l=new e(r,i);return l.beautify()}return Zl.exports=o,Zl.exports.defaultOptions=function(){return new t},Zl.exports}var is={exports:{}},Zu={},qu={},sy;function dy(){if(sy)return qu;sy=1;var e=Uu().Options;function t(o){e.call(this,o,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l<i.length;l++)i[l]!=="expand"?this.brace_style="collapse":this.brace_style=i[l]}return t.prototype=new e,qu.Options=t,qu}var cy;function TO(){if(cy)return Zu;cy=1;var e=dy().Options,t=Mu().Output,o=Wu().InputScanner,r=Ju().Directives,i=new r(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,h=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,m=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(C,S){this._source_text=C||"",this._options=new e(S),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 v.prototype.eatString=function(C){var S="";for(this._ch=this._input.next();this._ch;){if(S+=this._ch,this._ch==="\\")S+=this._input.next();else if(C.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return S},v.prototype.eatWhitespace=function(C){for(var S=c.test(this._input.peek()),w=0;c.test(this._input.peek());)this._ch=this._input.next(),C&&this._ch===`
`&&(w===0||w<this._options.max_preserve_newlines)&&(w++,this._output.add_new_line(!0));return S},v.prototype.foundNestedPseudoClass=function(){for(var C=0,S=1,w=this._input.peek(S);w;){if(w==="{")return!0;if(w==="(")C+=1;else if(w===")"){if(C===0)return!1;C-=1}else if(w===";"||w==="}")return!1;S++,w=this._input.peek(S)}return!1},v.prototype.print_string=function(C){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(C)},v.prototype.preserveSingleSpace=function(C){C&&(this._output.space_before_token=!0)},v.prototype.indent=function(){this._indentLevel++},v.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var C=this._source_text,S=this._options.eol;S==="auto"&&(S=`
`,C&&l.test(C||"")&&(S=C.match(l)[0])),C=C.replace(d,`
`);var w=C.match(/^[\t ]*/)[0];this._output=new t(this._options,w),this._input=new o(C),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var E=0,b=!1,g=!1,_=!1,x=!1,k=!1,T=this._ch,V=!1,I,F,M;I=this._input.read(u),F=I!=="",M=T,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),T=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var N=this._input.read(h),O=i.get_directives(N);O&&O.ignore==="start"&&(N+=i.readIgnored(this._input)),this.print_string(N),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(m)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(F),this.print_string(this._ch);var L=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);L.match(/[ :]$/)&&(L=this.eatString(": ").replace(/\s+$/,""),this.print_string(L),this._output.space_before_token=!0),E===0&&L.indexOf(":")!==-1&&(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 H=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);H.match(/[ :]$/)&&(H=this.eatString(": ").replace(/\s+$/,""),this.print_string(H),this._output.space_before_token=!0),E===0&&H.indexOf(":")!==-1?(g=!0,this.indent()):H in this.NESTED_AT_RULE?(this._nestedLevel+=1,H in this.CONDITIONAL_GROUP_RULE&&(_=!0)):E===0&&!g&&(x=!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()),x=!1,_?(_=!1,b=this._indentLevel>=this._nestedLevel):b=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&b&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(M==="("?this._output.space_before_token=!1:M!==","&&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(),M==="{"&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),b=!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),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var W=0;W<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;W++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[W])){V=!0;break}(b||_)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!x&&E===0?(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var B=M==='"'||M==="'";this.preserveSingleSpace(B||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")V=!1,E===0?(g&&(this.outdent(),g=!1),x=!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(),E++,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(")")),E&&(E--,this.outd
`&&V&&this._output.add_new_line()}var $=this._output.get_code(S);return $},Zu.Beautifier=v,Zu}var uy;function DO(){if(uy)return is.exports;uy=1;var e=TO().Beautifier,t=dy().Options;function o(r,i){var l=new e(r,i);return l.beautify()}return is.exports=o,is.exports.defaultOptions=function(){return new t},is.exports}var os={exports:{}},ef={},tf={},fy;function py(){if(fy)return tf;fy=1;var e=Uu().Options;function t(o){e.call(this,o,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(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,tf.Options=t,tf}var rs={},hy;function my(){if(hy)return rs;hy=1;var e=ts().Tokenizer,t=ts().TOKEN,o=Ju().Directives,r=oy().TemplatablePattern,i=es().Pattern,l={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},d=new o(/<\!--/,/-->/),c=function(u,h){e.call(this,u,h),this._current_tag_name="";var m=new r(this._input).read_options(this._options),v=new i(this._input);if(this.__patterns={word:m.until(/[\n\r\t <]/),word_control_flow_close_excluded:m.until(/[\n\r\t <}]/),single_quote:m.until_after(/'/),double_quote:m.until_after(/"/),attribute:m.until(/[\n\r\t =>]|\/>/),element_name:m.until(/[\n\r\t >\/]/),angular_control_flow_start:v.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(/<!--/).until_after(/-->/),cdata:v.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:v.starting_with(/<!\[/).until_after(/]>/),processing:v.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 C=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(C).until_after(C)}}
`,b&&i.test(b)&&(g=b.match(i)[0])),b=b.replace(l,`
`);var _=b.match(/^[\t ]*/)[0],x={text:"",type:""},k=new S(this._options),T=new d(this._options,_),V=new o(b,this._options).tokenize();this._tag_stack=new v(T);for(var I=null,F=V.next();F.type!==r.EOF;)F.type===r.TAG_OPEN||F.type===r.COMMENT?(I=this._handle_tag_open(T,F,k,x,V),k=I):F.type===r.ATTRIBUTE||F.type===r.EQUALS||F.type===r.VALUE||F.type===r.TEXT&&!k.tag_complete?I=this._handle_inside_tag(T,F,k,x):F.type===r.TAG_CLOSE?I=this._handle_tag_close(T,F,k):F.type===r.TEXT?I=this._handle_text(T,F,k):F.type===r.CONTROL_FLOW_OPEN?I=this._handle_control_flow_open(T,F):F.type===r.CONTROL_FLOW_CLOSE?I=this._handle_control_flow_close(T,F):T.add_raw_token(F),x=I,F=V.next();var M=T._output.get_code(g);return M},C.prototype._handle_control_flow_open=function(b,g){var _={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),b.indent(),_},C.prototype._handle_control_flow_close=function(b,g){var _={text:g.text,type:g.type};return b.deindent(),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),_},C.prototype._handle_tag_close=function(b,g,_){var x={text:g.text,type:g.type};return b.alignment_size=0,_.tag_complete=!0,b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):(_.tag_start_char==="<"&&(b.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&_.has_wrapped_attrs&&b.print_newline(!1)),b.print_token(g)),_.indent_content&&!(_.is_unformatted||_.is_content_unformatted)&&(b.indent(),_.indent_content=!1),!_.is_inline_element&&!(_.is_unformatted||_.is_content_unformatted)&&b.set_wrap_point(),x},C.prototype._handle_inside_tag=function(b,g,_,x){var k=_.has_wrapped_attrs,T={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):_.tag_start_char==="{"&&g.type===r.TEXT?b.print_preserved_newlines(g)?(g.newlines=0,b.add_raw_token(g)):b.print_token(g):(g.type===r.ATTRIBUTE?b.set_space_before_token(!0):(g.type===r.EQUALS||g.type===r.VALUE&&g.previous.type===r.EQUALS)&&b.set_space_before_token(!1),g.type===r.ATTRIBUTE&&_.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(b.traverse_whitespace(g),k=k||g.newlines!==0),this._is_wrap_attributes_force&&_.attr_count>=this._options.wrap_attributes_min_attrs&&(x.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(b.print_newline(!1),k=!0)),b.print_token(g),k=k||b.previous_token_wrapped(),_.has_wrapped_attrs=k),T},C.prototype._handle_text=function(b,g,_){var x={text:g.text,type:"TK_CONTENT"};return _.custom_beautifier_name?this._print_custom_beatifier_text(b,g,_):_.is_unformatted||_.is_content_unformatted?b.add_raw_token(g):(b.traverse_whitespace(g),b.print_token(g)),x},C.prototype._print_custom_beatifier_text=function(b,g,_){var x=this;if(g.text!==""){var k=g.text,T,V=1,I="",F="";_.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?T=this._js_beautify:_.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?T=this._css_beautify:_.custom_beautifier_name==="html"&&(T=function(W,B){var U=new C(W,B,x._js_beautify,x._css_beautify);return U.beautify()}),this._options.indent_scripts==="keep"?V=0:this._options.indent_scripts==="separate"&&(V=-b.indent_level);var M=b.get_full_indent(V);if(k=k.replace(/\n[ \t]*$/,""),_.custom_beautifier_name!=="html"&&k[0]==="<"&&k.match(/^(<!--|<!\[CDATA\[)/)){var N=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(k);if(!N){b.add_raw_token(g);return}I=M+N[1]+`
`,k=N[4],N[5]&&(F=M+N[5]),k=k.replace(/\n[ \t]*$/,""),(N[2]||N[3].indexOf(`
`)!==-1)&&(N=N[3].match(/[ \t]+$/),N&&(g.whitespace_before=N[0]))}if(k)if(T){var O=function(){this.eol=`
`};O.prototype=this._options.raw_options;var L=new O;k=T(M+k,L)}else{var H=g.whitespace_before;H&&(k=k.replace(new RegExp(`
(`+H+")?","g"),`
`)),k=M+k.replace(/\n/g,`
`+M)}I&&(k?k=I+k+`
`+F:k=I+F),b.print_newline(!1),k&&(g.text=k,g.whitespace_before="",g.newlines=0,b.add_raw_token(g),b.print_newline(!0))}},C.prototype._handle_tag_open=function(b,g,_,x,k){var T=this._get_tag_open_token(g);if((_.is_unformatted||_.is_content_unformatted)&&!_.is_empty_element&&g.type===r.TAG_OPEN&&!T.is_start_tag?(b.add_raw_token(g),T.start_tag_token=this._tag_stack.try_pop(T.tag_name)):(b.traverse_whitespace(g),this._set_tag_position(b,g,T,_,x),T.is_inline_element||b.set_wrap_point(),b.print_token(g)),T.is_start_tag&&this._is_wrap_attributes_force){var V=0,I;do I=k.peek(V),I.type===r.ATTRIBUTE&&(T.attr_count+=1),V+=1;while(I.type!==r.EOF&&I.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(T.alignment_size=g.text.length+1),!T.tag_complete&&!T.is_unformatted&&(b.alignment_size=T.alignment_size),T};var S=function(b,g,_){if(this.parent=g||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="",!_)this.tag_complete=!0;else{var x;this.tag_start_char=_.text[0],this.text=_.text,this.tag_start_char==="<"?(x=_.text.match(/^<([^\s>]*)/),this.tag_check=x?x[1]:""):(x=_.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=x?x[1]:"",(_.text.startsWith("{{#>")||_.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&_.next!==null?this.tag_check=_.next.text.split(" ")[0]:this.tag_check=_.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),_.type===r.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||_.closed&&_.closed.text==="/>";var k=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(k=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!b.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(k)))}};C.prototype._get_tag_open_token=function(b){var g=new S(this._options,this._tag_stack.get_parser_token(),b);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||h(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&h(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&h(g.tag_check,this._options.content_unformatted),g.is_inline_element=h(g.tag_name,this._options.inline)||this._options.inline_custom_elements&&g.tag_name.includes("-")||g.tag_start_char==="{",g},C.prototype._set_tag_position=function(b,g,_,x,k){if(_.is_empty_element||(_.is_end_tag?_.start_tag_token=this._tag_stack.try_pop(_.tag_name):(this._do_optional_end_element(_)&&(_.is_inline_element||b.print_newline(!1)),this._tag_stack.record_tag(_),(_.tag_name==="script"||_.tag_name==="style")&&!(_.is_unformatted||_.is_content_unformatted)&&(_.custom_beautifier_name=u(_.tag_check,g)))),h(_.tag_check,this._options.extra_liners)&&(b.print_newline(!1),b._output.just_added_blankline()||b.print_newline(!0)),_.is_empty_element){if(_.tag_start_char==="{"&&_.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_.indent_content=!0;var T=b.current_line_has_match(/{{#if/);T||b.print_newline(!1)}_.tag_name==="!--"&&k.type===r.TAG_CLOSE&&x.is_end_tag&&_.text.indexOf(`
`)===-1||(_.is_inline_element||_.is_unformatted||b.print_newline(!1),this._calcluate_parent_multiline(b,_))}else if(_.is_end_tag){var V=!1;V=_.start_tag_token&&_.start_tag_token.multiline_content,V=V||!_.is_inline_element&&!(x.is_inline_element||x.is_unformatted)&&!(k.type===r.TAG_CLOSE&&_.start_tag_token===x)&&k.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(V=!1),V&&b.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(k.type!=="TK_CONTENT"||_.is_content_unformatted)&&b.print_newline(!1),this._calcluate_parent_multiline(b,_)},C.prototype._calcluate_parent_multiline=function(b,g){g.parent&&b._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var w=["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"],E=["a","audio","del","ins","map","noscript","video"];return C.prototype._do_optional_end_element=function(b){var g=null;if(!(b.is_empty_element||!b.is_start_tag||!b.parent)){if(b.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(b.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(b.tag_name==="dd"||b.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(b.parent.tag_name==="p"&&w.indexOf(b.tag_name)!==-1){var _=b.parent.parent;(!_||E.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else b.tag_name==="rp"||b.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):b.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):b.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):b.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):b.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):b.tag_name==="tbody"||b.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):b.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(b.tag_name==="th"||b.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return b.parent=this._tag_stack.get_parser_token(),g}},ef.Beautifier=C,ef}var yy;function OO(){if(yy)return os.exports;yy=1;var e=VO().Beautifier,t=py().Options;function o(r,i,l,d){var c=new e(r,i,l,d);return c.beautify()}return os.exports=o,os.exports.defaultOptions=function(){return new t},os.exports}var vy;function BO(){if(vy)return sa;vy=1;var e=NO(),t=DO(),o=OO();function r(i,l,d,c){return d=d||e,c=c||t,o(i,l,d,c)}return r.defaultOptions=o.defaultOptions,sa.js=e,sa.css=t,sa.html=r,sa}(function(e){function t(o,r,i){var l=function(d,c){return o.js_beautify(d,c)};return l.js=o.js_beautify,l.css=r.css_beautify,l.html=i.html_beautify,l.js_beautify=o.js_beautify,l.css_beautify=r.css_beautify,l.html_beautify=i.html_beautify,l}(function(o){var r=BO();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,o.exports=t(r,r,r)})(e)})(zg);const or=zg.exports;function RO(e){const t={};return Object.values(e.import).forEach(o=>{t[o.name]=o.path}),` import { defineComponent } from "vue";
${Object.keys(t).map(o=>`import ${o} from '${t[o]}';`).join(`
`)}
export default defineComponent({
name: "FcTemplate",
components: {
${Object.keys(t).join(",")}
},
props: {},
data() {
return ${En(e.data)}
},
methods: ${En(e.methods)}
});
`}function $O(e){const t={};return Object.values(e.import).forEach(o=>{t[o.name]=o.path}),` import { ref } from "vue";
${Object.keys(t).map(o=>`import ${o} from '${t[o]}';`).join(`
`)}
${Object.keys(e.data).map(o=>`const ${o} = ref(${En(e.data[o])})`).join(`
`)}
${Object.keys(e.methods).map(o=>En(e.methods[o])).join(`
`)}
`}function nf(e,t){const o=[];return e&&e.forEach(r=>{if(!(r&&r._menu&&r._menu.sfc===!1))if(typeof r=="string")o.push(r);else if(r._fc_drag_tag){const i={...r,children:nf(r.children),_sfc:{}};t&&(i.slot=t),i.children.length?typeof i.children[0]=="string"&&(i._sfc.content=i.children[0],delete i.children):delete i.children,o.push(i)}else o.push(...nf(r.children,["DragBox","DragTool"].indexOf(r.type)>-1?r.slot||t:""))}),o}function FO(e,t,o,r){const i=e[0]?e[0].__fc__.vNode.aliasMap:void 0,l={style:{},import:{},data:{formData:{}},methods:{submit(){this.$refs.form.validate().then(()=>{})},reset(){this.$refs.form.resetFields()}}},d=[];function c(){let b=d.join(".");return b&&(b+="."),b}function u(b,g){return g?`<${b.type}${h(b)}>${g}</${b.type}>`:`<${b.type}${h(b)}/>`}function h(b){const g=b.props||{},_=b._sfc||{};let x=[];if(b.class&&x.push(`class="${Array.isArray(b.class)?b.class.join(" "):b.class}"`),b.slot&&b.slot!=="default"&&x.push("#"+b.slot),Object.keys(g).forEach(T=>{const V=g[T];if(V&&typeof V=="object"){const I=b._fc_id?b._fc_id+"_"+T:T;l.data[I]=V,x.push(`:${T}="${I}"`)}else if(V!=null&&V!==""&&typeof V!="function"){let I=typeof V=="string"?"":":";I+=`${T}="${V}"`,x.push(I)}}),b.field){let T=b.value;const V={array:[],string:"",number:0};if(b.value==null){const I=o[b._fc_drag_tag];I&&Array.isArray(I.validate)&&li(V,I.validate[0])&&(T=V[I.validate[0]])}l.data.formData[b.field]=T,_.vModel!==!1&&x.push(`v-model${_.modelField?":"+_.modelField:""}="formData.${c()}${b.field}"`)}if(b.style){const T=IO(b.style||"");T&&x.push(`style="${T}"`)}_.attr&&Object.keys(_.attr).forEach(T=>{x.push(`${T}="${_.attr[T]}"`)}),_.prop&&Object.keys(_.prop).forEach(T=>{const V=b._fc_id+"_"+T;l.data[V]=_.prop[T],x.push(`:${T}="${V}"`)}),_.flag&&_.flag.forEach(T=>{x.push(T)});let k=x.join(" ");return k&&(k=" "+k.trim()),k}function m(b){return b?b.map(g=>{var I,F,M;let _="";const x=g._menu;let k=ot(g),T;if(x&&x.sfc){let N;if(typeof x.sfc=="object"?(N=x.sfc.handle,x.sfc.style&&(l.style[x.name]=x.sfc.style),x.sfc.import&&(l.import[x.name]=x.sfc.import)):N=x.sfc,N){const O=N(k,{transition:m,scope:l,getParentFieldStr:c})||k;typeof O=="string"?T=O:k=O}}const V=k.native!==!1&&(k.field||k.title);return T||(k._sfc&&k._sfc.parentField&&d.push(k.parentField),k._sfc&&k._sfc.content?_=`${k._sfc.content}`:k.children&&(_=`
`+m(k.children)+`
`),i&&i[k.type]&&(k.type=id(i[k.type])),T=u(k,_),k._sfc&&k._sfc.parentField&&d.pop()),V&&((I=k==null?void 0:k.wrap)==null?void 0:I.show)!==!1&&(T=u({type:"elFormItem",props:{labelWidth:k.title?void 0:"0px",...k.wrap||{},prop:c()+k.field,label:k.title,required:k.$required===!0?!0:void 0},style:(F=k==null?void 0:k.wrap)==null?void 0:F.style,class:(M=k==null?void 0:k.wrap)==null?void 0:M.class},`
`+T+`
`)),T}).join(`
`):""}e=nf(e);const v=[];t.submitBtn.show&&v.push({type:"elButton",props:{type:"primary"},_sfc:{attr:{"@click":"submit"},content:t.submitBtn.innerText||"\u63D0\u4EA4"}}),t.resetBtn.show&&v.push({type:"elButton",props:{type:"default"},_sfc:{attr:{"@click":"reset"},content:t.resetBtn.innerText||"\u91CD\u7F6E"}}),v.length&&e.push({type:"elFormItem",children:v});const C=m([{type:"template",children:[{type:"elForm",props:t.form||{},children:e,_sfc:{attr:{ref:"form",":model":"formData"},flag:["@submit.prevent"]}}]}]);t.formData&&vl(l.data.formData,t.formData);const S=or.html(C,{indent_size:2,indent_char:" ",indent_scripts:"separate",jslint_happy:!1}),w=or.js(r?RO(l):$O(l),{indent_size:2,indent_char:" ",indent_scripts:"separate"}),E=or.css(Object.values(l.style).join(`
`),{indent_size:2,indent_char:" ",indent_scripts:"separate"});return`${S}
<script${r?"":" setup"}>
${w}
<\/script>
<style>
${E}
</style>
`}function IO(e){return!e||typeof e=="string"?e||"":Object.keys(e).reduce((t,o)=>(e[o]!=null&&e[o]!==""&&t.push(la(o)+":"+e[o]+";"),t),[]).join("")}const Vj="",PO=n.defineComponent({name:"SubList",components:{fcDraggable:zo,VNode:wg,ConfigItem:In},inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRuleChildren(){return this.designer.setupState.activeRuleChildren},activeRule(){return this.designer.setupState.activeRule}},methods:{toolHandle(...e){this.designer.setupState.toolHandle(...e)},subRender(...e){return this.designer.setupState.subRender(...e)},end({oldIndex:e,newIndex:t}){if(e===t)return;const o=this.activeRule.children.splice(e,1);this.activeRule.children.splice(t,0,o[0]),this.activeRule.key=We()}}}),MO={class:"_fc-sublist"},LO={class:"_fc-r-title"},jO=["onClick"],zO=["onClick"];function UO(e,t,o,r,i,l){const d=n.resolveComponent("VNode"),c=n.resolveComponent("ConfigItem"),u=n.resolveComponent("fcDraggable");return n.openBlock(),n.createElementBlock("div",MO,[n.createElementVNode("p",LO,[n.createElementVNode("span",null,n.toDisplayString(e.t("designer.sublist")),1),n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:t[0]||(t[0]=h=>e.toolHandle(e.activeRule,"addChild"))})]),n.createVNode(u,{group:{name:"sub",pull:"clone",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",onEnd:e.end,list:e.activeRuleChildren},{item:n.withCtx(({element:h,index:m})=>[n.createVNode(c,null,n.createSlots({label:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString((e.t("com."+h._menu.name+".name")||e.activeRule._menu.label)+" "+(m+1)),1)]),default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-copy",onClick:v=>e.toolHandle(h,"copy")},null,8,jO),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:v=>e.toolHandle(h,"delete")},null,8,zO)]),_:2},[e.activeRule._menu.subRender?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{fn:()=>e.subRender(e.activeRule._menu.subRender,e.activeRule,h)},null,8,["fn"])]),key:"0"}:void 0]),1024)]),_:1},8,["onEnd","list"])])}const HO=De(PO,[["render",UO]]),Oj="",WO=n.defineComponent({name:"ToolsBar",inject:["designer"],computed:{t(){return this.designer.setupState.t},tools(){const e=this.designer.setupState,t=[];return!e.activeRule&&!e.customForm.config||(e.baseForm.isShow&&t.push({label:this.t("designer.rule"),icon:"base"}),(e.propsForm.isShow||e.customForm.isShow&&e.customForm.propsShow)&&t.push({label:this.t("designer.props"),icon:"props"}),e.advancedForm.isShow&&t.push({label:this.t("designer.advanced"),icon:"advanced"}),e.styleForm.isShow&&t.push({label:this.t("designer.style"),icon:"style"}),e.eventShow&&t.push({label:this.t("designer.event"),icon:"event"}),e.validateForm.isShow&&t.push({label:this.t("designer.validate"),icon:"validate"})),t}},methods:{onClick(e){document.querySelector(`#_fd-config-${e}`).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})},clearActiveRule(){this.designer.setupState.clearActiveRule()}}}),GO={key:0,class:"_fc-r-tools-bar"},KO={class:"_fc-r-tools"},YO=["onClick"];function QO(e,t,o,r,i,l){const d=n.resolveComponent("el-tooltip");return e.tools.length>2?(n.openBlock(),n.createElementBlock("div",GO,[n.createElementVNode("div",KO,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tools,c=>(n.openBlock(),n.createBlock(d,{key:c.icon,effect:"dark",content:c.label,placement:"bottom",persistent:"","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-r-tool",onClick:u=>e.onClick(c.icon)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",`icon-config-${c.icon}`])},null,2)],8,YO)]),_:2},1032,["content"]))),128)),n.createElementVNode("div",{class:"_fc-r-tools-close _fc-r-tool",onClick:t[0]||(t[0]=(...c)=>e.clearActiveRule&&e.clearActiveRule(...c))},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add2"},null,-1)]))])])):n.createCommentVNode("",!0)}const JO=De(WO,[["render",QO]]),Bj="",XO=n.defineComponent({name:"ConfigTit
display:flex;
}
._demo2{
display:flex;
}`,this.activeStyle=!0,this.activeIdx=""},active(e){this.activeStyle=!1,this.activeIdx!==e&&(this.handle=this.value[e].style||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="cls_"+We();this.value[t]={label:e,style:{}},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){this.activeStyle?(this.$refs.editor.save(),this.designer.setupState.formOptions.style=this.content,this.activeStyle=!1):(this.value[this.activeIdx].style=this.handle,this.activeIdx="")},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){(this.activeIdx||this.activeStyle)&&this.save(),this.$emit("update:modelValue",{...this.value}),this.visible=!1},updateGlobalStyle(){let e="";const t=this.modelValue||{};Object.keys(t).forEach(o=>{let r="";t[o].style&&Object.keys(t[o].style).forEach(i=>{r+=la(i)+":"+t[o].style[i]+";"}),t[o].content&&(r+=t[o].content+";"),r&&(e+=`.${o}{${r}}`)}),e&&(this.styleEl.innerHTML=e)}},created(){this.styleEl=n.markRaw(document.createElement("style")),this.styleEl.type="text/css",document.head.appendChild(this.styleEl),this.updateGlobalStyle()},unmounted(){document.head.removeChild(this.styleEl)}}),w$={class:"_fd-gcc"},C$={class:"_fd-gcc-method"},_$={class:"_fd-label"},E$=["onClick"],S$={class:"_fd-gcc-method"},A$={key:0,class:"_fd-label"},x$=["onClick"];function k$(e,t,o,r,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),h=n.resolveComponent("el-header"),m=n.resolveComponent("el-menu-item"),v=n.resolveComponent("el-input"),C=n.resolveComponent("el-menu"),S=n.resolveComponent("el-main"),w=n.resolveComponent("el-container"),E=n.resolveComponent("el-aside"),b=n.resolveComponent("StyleEditor"),g=n.resolveComponent("StyleConfig"),_=n.resolveComponent("el-form"),x=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",w$,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:e.open,size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.title")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(x,{class:"_fd-gcc-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[8]||(t[8]=k=>e.visible=k),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"700px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalClass"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalClass")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[7]||(t[7]=k=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"255px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-l"},{default:n.withCtx(()=>[n.createVNode(h,{class:"_fd-gcc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(m,{class:n.normalizeClass({"is-active":e.activeStyle,"_fd-gcc-default":!0})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gcc-title",onClick:t[0]||(t[0]=n.withModifiers((...k)=>e.changeStyle&&e.changeStyle(...k),["stop"]))},[n.createElementVNode("div",C$,[n.createElementVNode("span",_$,n.toDisplayString(e.t("form.globalClass")),1)])])]),_:1},8,["class"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(k
`).forEach(function(d){i=d.indexOf(":"),o=d.substring(0,i).trim().toLowerCase(),r=d.substring(i+1).trim(),!(!o||t[o]&&BI[o])&&(o==="set-cookie"?t[o]?t[o].push(r):t[o]=[r]:t[o]=t[o]?t[o]+", "+r:r)}),t},Xy=Symbol("internals");function fa(e){return e&&String(e).trim().toLowerCase()}function fs(e){return e===!1||e==null?e:xe.isArray(e)?e.map(fs):String(e)}function $I(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=o.exec(e);)t[r[1]]=r[2];return t}const FI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pf(e,t,o,r,i){if(xe.isFunction(r))return r.call(this,t,o);if(i&&(t=o),!!xe.isString(t)){if(xe.isString(r))return t.indexOf(r)!==-1;if(xe.isRegExp(r))return r.test(t)}}function II(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,r)=>o.toUpperCase()+r)}function PI(e,t){const o=xe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+o,{value:function(i,l,d){return this[r].call(this,t,i,l,d)},configurable:!0})})}class ps{constructor(t){t&&this.set(t)}set(t,o,r){const i=this;function l(c,u,h){const m=fa(u);if(!m)throw new Error("header name must be a non-empty string");const v=xe.findKey(i,m);(!v||i[v]===void 0||h===!0||h===void 0&&i[v]!==!1)&&(i[v||u]=fs(c))}const d=(c,u)=>xe.forEach(c,(h,m)=>l(h,m,u));if(xe.isPlainObject(t)||t instanceof this.constructor)d(t,o);else if(xe.isString(t)&&(t=t.trim())&&!FI(t))d(RI(t),o);else if(xe.isObject(t)&&xe.isIterable(t)){let c={},u,h;for(const m of t){if(!xe.isArray(m))throw TypeError("Object iterator must return a key-value pair");c[h=m[0]]=(u=c[h])?xe.isArray(u)?[...u,m[1]]:[u,m[1]]:m[1]}d(c,o)}else t!=null&&l(o,t,r);return this}get(t,o){if(t=fa(t),t){const r=xe.findKey(this,t);if(r){const i=this[r];if(!o)return i;if(o===!0)return $I(i);if(xe.isFunction(o))return o.call(this,i,r);if(xe.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=fa(t),t){const r=xe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!o||pf(this,this[r],r,o)))}return!1}delete(t,o){const r=this;let i=!1;function l(d){if(d=fa(d),d){const c=xe.findKey(r,d);c&&(!o||pf(r,r[c],c,o))&&(delete r[c],i=!0)}}return xe.isArray(t)?t.forEach(l):l(t),i}clear(t){const o=Object.keys(this);let r=o.length,i=!1;for(;r--;){const l=o[r];(!t||pf(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const o=this,r={};return xe.forEach(this,(i,l)=>{const d=xe.findKey(r,l);if(d){o[d]=fs(i),delete o[l];return}const c=t?II(l):String(l).trim();c!==l&&delete o[l],o[c]=fs(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return xe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(o[i]=t&&xe.isArray(r)?r.join(", "):r)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const r=new this(t);return o.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Xy]=this[Xy]={accessors:{}}).accessors,i=this.prototype;function l(d){const c=fa(d);r[c]||(PI(i,d),r[c]=!0)}return xe.isArray(t)?t.forEach(l):l(t),this}}ps.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xe.reduceDescriptors(ps.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[o]=r}}}),xe.freezeMethods(ps);const qn=ps;function hf(e,t){const o=this||ff,r=t||o,i=qn.from(r.headers);let l=r.data;return xe.forEach(e,function(c){l=c.call(o,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function Zy(e){return!!(e&&e.__CANCEL__)}function sr(e,t,o){ft.call(this,e==null?"canceled":e,ft.ERR_CANCELED,t,o),this.name="CanceledError"}xe.inherits(sr,ft,{__CANCEL__:!0});function qy(e,t,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?e(o):t(new ft("Request failed with status code "+o.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function MI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LI(e,t){e=e||10;const o=new Array(e),r=new Array(e);let i=0,l=0,d;return t=t!==void 0?t:1e3,function(u){const h=Date.now(),m=r[l];d||(d=h),o[i]=u,r[i]=h;let v=l,C=0;for(;v!==i;)C+=o[v++],v=v%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),h-d<t)return;const S=m&&h-m;return S?Math.round(C*1e3/S):void 0}}function jI(e,t){let o=0,r=1e3/t,i,l;const d=(h,m=Date.now())=>{o=m,i=null,l&&(clearTimeout(l),l=null),e.apply(null,h)};return[(...h)=>{const m=Date.now(),v=m-o;v>=r?d(h,m):(i=h,l||(l=setTimeout(()=>{l=null,d(i)},r-v)))},()=>i&&d(i)]}const hs=(e,t,o=3)=>{let r=0;const i=LI(50,250);return jI(l=>{const d=l.loaded,c=l.lengthComputable?l.total:void 0,u=d-r,h=i(u),m=d<=c;r=d;const v={loaded:d,total:c,progress:c?d/c:void 0,bytes:u,rate:h||void 0,estimated:h&&c&&m?(c-d)/h:void 0,event:l,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(v)},o)},ev=(e,t)=>{const o=e!=null;return[r=>t[0]({lengthComputable:o,total:e,loaded:r}),t[1]]},tv=e=>(...t)=>xe.asap(()=>e(...t)),zI=un.hasStandardBrowserEnv?((e,t)=>o=>(o=new URL(o,un.origin),e.protocol===o.protocol&&e.host===o.host&&(t||e.port===o.port)))(new URL(un.origin),un.navigator&&/(msie|trident)/i.test(un.navigator.userAgent)):()=>!0,UI=un.hasStandardBrowserEnv?{write(e,t,o,r,i,l){const d=[e+"="+encodeURIComponent(t)];xe.isNumber(o)&&d.push("expires="+new Date(o).toGMTString()),xe.isString(r)&&d.push("path="+r),xe.isString(i)&&d.push("domain="+i),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function HI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WI(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function nv(e,t,o){let r=!HI(t);return e&&(r||o==!1)?WI(e,t):t}const iv=e=>e instanceof qn?{...e}:e;function bo(e,t){t=t||{};const o={};function r(h,m,v,C){return xe.isPlainObject(h)&&xe.isPlainObject(m)?xe.merge.call({caseless:C},h,m):xe.isPlainObject(m)?xe.merge({},m):xe.isArray(m)?m.slice():m}function i(h,m,v,C){if(xe.isUndefined(m)){if(!xe.isUndefined(h))return r(void 0,h,v,C)}else return r(h,m,v,C)}function l(h,m){if(!xe.isUndefined(m))return r(void 0,m)}function d(h,m){if(xe.isUndefined(m)){if(!xe.isUndefined(h))return r(void 0,h)}else return r(void 0,m)}function c(h,m,v){if(v in t)return r(h,m);if(v in e)return r(void 0,h)}const u={url:l,method:l,data:l,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transpo
`+l.map(dv).join(`
`):" "+dv(l[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r},adapters:gf};function yf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sr(null,e)}function uv(e){return yf(e),e.headers=qn.from(e.headers),e.data=hf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cv.getAdapter(e.adapter||ff.adapter)(e).then(function(r){return yf(e),r.data=hf.call(e,e.transformResponse,r),r.headers=qn.from(r.headers),r},function(r){return Zy(r)||(yf(e),r&&r.response&&(r.response.data=hf.call(e,e.transformResponse,r.response),r.response.headers=qn.from(r.response.headers))),Promise.reject(r)})}const fv="1.9.0",ys={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ys[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pv={};ys.transitional=function(t,o,r){function i(l,d){return"[Axios v"+fv+"] Transitional option '"+l+"'"+d+(r?". "+r:"")}return(l,d,c)=>{if(t===!1)throw new ft(i(d," has been removed"+(o?" in "+o:"")),ft.ERR_DEPRECATED);return o&&!pv[d]&&(pv[d]=!0,console.warn(i(d," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(l,d,c):!0}},ys.spelling=function(t){return(o,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function nP(e,t,o){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],d=t[l];if(d){const c=e[l],u=c===void 0||d(c,l,e);if(u!==!0)throw new ft("option "+l+" must be "+u,ft.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new ft("Unknown option "+l,ft.ERR_BAD_OPTION)}}const vs={assertOptions:nP,validators:ys},mi=vs.validators;class bs{constructor(t){this.defaults=t||{},this.interceptors={request:new Yy,response:new Yy}}async request(t,o){try{return await this._request(t,o)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+l):r.stack=l}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=bo(this.defaults,o);const{transitional:r,paramsSerializer:i,headers:l}=o;r!==void 0&&vs.assertOptions(r,{silentJSONParsing:mi.transitional(mi.boolean),forcedJSONParsing:mi.transitional(mi.boolean),clarifyTimeoutError:mi.transitional(mi.boolean)},!1),i!=null&&(xe.isFunction(i)?o.paramsSerializer={serialize:i}:vs.assertOptions(i,{encode:mi.function,serialize:mi.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),vs.assertOptions(o,{baseUrl:mi.spelling("baseURL"),withXsrfToken:mi.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let d=l&&xe.merge(l.common,l[o.method]);l&&xe.forEach(["delete","get","head","post","put","patch","common"],w=>{delete l[w]}),o.headers=qn.concat(d,l);const c=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(o)===!1||(u=u&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let m,v=0,C;if(!u){const w=[uv.bind(this),void 0];for(w.unshift.apply(w,c),w.push.apply(w,h),C=w.length,m=Promise.resolve(o);v<C;)m=m.then(w[v++],w[v++]);return m}C=c.length;let S=o;for(v=0;v<C;){const w=c[v++],E=c[v++];try{S=w(S)}catch(b){E.call(this,b);break}}try{m=uv.call(this,S)}catch(w){return Promise.reject(w)}for(v=0,C=h.length;v<C;)m=m.then(h[v++],h[v++]);return m}getUri(t){t=bo(this.defaults,t);const o=nv(t.baseURL,t.url,t.allowAbsoluteUrls);return Ky(o,t.params,t.paramsSerializer)}}xe.forEach(["delete","get","head","options"],function(t){bs.prototype[t]=function(o,r){return this.request(bo(r||{},{method:t,url:o,data:(r||{}).data}))}}),xe.forEach(["post","put","patch"],function(t){function o(r){return function(l,d,c){return this.request(bo(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:d}))}}bs.prototype[t]=o(),bs.prototype[t+"Form"]=o(!0)});const ws=bs;class vf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const r=this;this.promise.then(i=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const d=new Promise(c=>{r.subscribe(c),l=c}).then(i);return d.cancel=function(){r.unsubscribe(l)},d},t(function(l,d,c){r.reason||(r.reason=new sr(l,d,c),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const t=new AbortController,o=r=>{t.abort(r)};return this.subscribe(o),t.signal.unsubscribe=()=>this.unsubscribe(o),t.signal}static source(){let t;return{token:new vf(function(i){t=i}),cancel:t}}}const iP=vf;function oP(e){return function(o){return e.apply(null,o)}}function rP(e){return xe.isObject(e)&&e.isAxiosError===!0}const bf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,R
`+R.style),A.formOptions.language||(A.formOptions.language={}),R.language&&Object.keys(R.language).forEach(j=>{A.formOptions.language[j]={...A.formOptions.language[j]||{},...R.language[j]}}),R.languageKey){const j=Y.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]);R.languageKey.forEach(X=>{j.forEach(({value:Z})=>{A.formOptions.language[Z]||(A.formOptions.language[Z]={}),A.formOptions.language[Z][X]||(A.formOptions.language[Z][X]="")})})}},updateOptionsValue(){const R={};A.oldOptionsKeys.forEach(X=>{R[X]=void 0});const j={...R,...A.formOptions.form};Object.keys(A.formOptions).forEach(X=>{const Z=A.formOptions[X];j[">"+X]=Z,typeof Z=="object"&&Object.keys(Z).forEach(te=>{j[X+">"+te]=Z[te]})}),A.form.value=j},setGlobalEvent(R){A.formOptions.globalEvent={...A.formOptions.globalEvent||{},...R},Y.updateOptionsValue()},setGlobalData(R){A.formOptions.globalData={...A.formOptions.globalData||{},...R},Y.updateOptionsValue()},setGlobalClass(R){A.formOptions.globalClass={...A.formOptions.globalClass||{},...R},Y.updateOptionsValue()},setGlobalVariable(R){A.formOptions.globalVariable={...A.formOptions.globalVariable||{},...R},Y.updateOptionsValue()},tidyRule(R){var X;["control","computed","on","hidden","display"].forEach(Z=>{R[Z]!=null&&(R["_"+Z]=R[Z],delete R[Z])}),(X=R.effect)!=null&&X.loadData&&(R._loadData=R.effect.loadData,delete R.effect.loadData),R.$loadData&&(R._loadData=R.$loadData,delete R.$loadData)},loadRule(R,j,X){const Z=[];return R.forEach(te=>{if(dt.String(te))return Z.push(te);if(te._fc_drag_skip)return;let re=A.dragRuleList[te._fc_drag_tag]||A.dragRuleList[te.type];if(re||(re=DC(te),te._fc_drag_tag="_"),X&&(te._fc_template=X),re&&re.loadRule&&re.loadRule(te),te.children=Y.loadRule(te.children||[],re,X),re){const Ee=te.slot;let we;j&&j.slot&&Ee&&Ee!=="default"&&(we=Y.getSlotConfig(j,Ee,re)),delete te.slot,te=Y.makeRule(we||re,te),Ee&&(te.slot=Ee)}else Y.tidyRule(te);Z.push(te)}),Z},parseRule(R,j){return[...R].reduce((X,Z)=>{let te=j;if(dt.String(Z))return X.push(Z),X;if(Z.type==="DragBox")return X.push(...Y.parseRule(Z.children,te||Z.slot)),X;if(Z.type==="DragTool"){if(te=Z.slot||j,Z=Z.children[0],dt.String(Z))return X.push(Z),X;if(Z.type==="DragBox")return X.push(...Y.parseRule(Z.children,te||Z.slot)),X}return!Z||Z._fc_drag_skip||(Z={...Z},te&&te!=="default"&&(Z.slot=te),Z.children&&Z.children.length&&(Z.children=Y.parseRule(Z.children)),delete Z.key,delete Z.component,delete Z._fc_page_tag,Z._menu&&(Z._menu.parseRule&&Z._menu.parseRule(Z),delete Z._menu),Z._fc_drag_tag==="_"&&delete Z._fc_drag_tag,["control","computed","on","hidden","display"].forEach(Ee=>{Z["_"+Ee]!=null&&Z["_"+Ee]!==""&&(Z[Ee]=Z["_"+Ee]),delete Z["_"+Ee]}),Z.slot||delete Z.slot,Z._loadData&&(Z.$loadData=Z._loadData,delete Z._loadData),Z.props&&Object.keys(Z.props).forEach(Ee=>{const we=Z.props[Ee];si(we)&&delete Z.props[Ee]}),Z.props&&Z.props.key&&(Z.key=Z.props.key),[Z.wrap,Z.title,Z.info,Z].forEach(Ee=>{Ee&&Object.keys(Ee).filter(we=>we.indexOf("__")===0||Ee[we]===""||Array.isArray(Ee[we])&&Ee[we].length===0||dt.Object(Ee[we])&&Object.keys(Ee[we]).length===0).forEach(we=>{delete Ee[we]})}),X.push(Z)),X},[])},fields(){return A.dragForm.api.all().map(R=>R.field).filter(R=>!!R)},getTitle(R){var j,X,Z;return(((Z=(X=(j=R==null?void 0:R.__fc__)==null?void 0:j.refRule)==null?void 0:X.__$title)==null?void 0:Z.value)||R.title||"").trim()||R.props&&R.props.label||B("com."+(R._menu&&R._menu.name)+".name")||R._menu&&R._menu.label||R.type},baseChange(R,j,X,Z){Y.handleChange("",R,j,X,Z)},formOptChange(R,j){A.form.value[R]=j,R.indexOf(">")===-1&&(R="form>"+R);let X=A.formOptions;const Z=R.split(">"),te=Z.pop();Z.forEach(re=>{re&&(X[re]||(X[re]={}),X=X[re])}),X[te]=j},propRemoveField(R,j,X){var Z,te,re;if(A.activeRule&&X[A.activeRule._fc_id]===A.activeRule){Y.unWatchActiveRule();const Ee=R;A.dragForm.api.sync(A.activeRule),R.indexOf("__")!==0&&(R==="formCreateChild"?delete A.activeRule.children[0]:R.indexOf("formCreate")===0||R.indexOf(">")>0?(R.indexOf("formCreate")<0&&(R="props>"+R),J(R,({source:we,fi
`)[0])!=null?i:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:"xml",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:this.modelValue||""}))})},onOk(){const e=this.editor.getValue();return!this.text&&this.validateXML(e)?(dn(this.t("struct.errorMsg")),!1):(this.visible=!1,e!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),sM={class:"_fd-html-editor"},dM={key:0,ref:"editor"};function cM(e,t,o,r,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",sM,[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=u=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1}),n.createVNode(c,{class:"_fd-html-editor-con",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[2]||(t[2]=u=>e.visible=u),"close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[1]||(t[1]=u=>e.visible=!1),size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",dM,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const uM=De(lM,[["render",cM]]),wz="",fM=n.defineComponent({name:"FieldInput",inject:["designer"],emits:["update:modelValue"],props:{modelValue:String,disabled:Boolean},computed:{fieldList(){if(this.key)return this.getFieldList()},subformFieldList(){const e=this.designer.setupState.fieldList||[],t=this.fieldLeafSelectable?e:this.removeLeafNodes(ot(e));return t.length?t:e},fieldReadonly(){return this.designer.setupState.fieldReadonly},isSubform(){return this.activeRule&&this.activeRule._menu.subForm},activeRule(){return this.designer.setupState.activeRule},relationField(){return this.designer.props.config.relationField},fieldLeafSelectable(){return this.designer.props.config.fieldLeafSelectable!==!1},t(){return this.designer.setupState.t}},data(){return{value:this.modelValue||"",oldValue:"",key:1,activeNode:null}},watch:{modelValue(e){this.value=e}},methods:{getFieldList(){let e=this.designer.setupState.fieldList||[];if(this.relationField===!1)return e;if(this.isSubform)e=this.subformFieldList;else{const t=this.activeRule;let o=t&&t.__fc__&&t.__fc__.parent;for(;o;)if(o.rule._menu&&["array","object"].indexOf(o.rule._menu.subForm)>-1){const r=this.findChildrenById(e,o.rule.field)||e;r.length&&(e=r);break}else o=o.parent}return e},removeLeafNodes(e){if(!Array.isArray(e)||e.length===0)return e;function t(o){return o.filter(r=>r.children&&r.children.length>0?(r.children=t(r.children),!0):!1)}return t(e)},findChildrenById(e,t){if(!Array.isArray(e))return null;for(const o of e){if(o.value===t)return o.children||[];if(o.children){const r=this.findChildrenById(o.children,t);if(r!==null)return r}}return null},copy(){di(this.modelValue)},getSubChildren(){let e=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return e=dt.trueArray(e)?e:this.designer.setupState.children,e},getSubFieldChildren(){const e=this.getSubChildren(),t=[],o=r=>(r&&r.forEach(i=>{i&&i._fc_drag_tag&&i.field?t.push({...i,children:[]}):i&&i.children&&o(i.children)}),t);return o(e)},checkValue(){const e=this.oldValue;Ep(e);let t=(this.value||"").replace(/[\s\ ]/g,"");if(t)if(/^[a-zA-Z]/.test(t)){if(e!==t){const o=t.indexOf(".")>-1;if(o&&(t=t.replaceAll(".","_")),this.getSubFieldChildren().filter(r=>r.field===t).length>0)return dn(this.t("computed.fieldExist",{label:t})),e;if(o)return t}}else return dn(this.t("computed.fieldChar")),e;else return dn(this.t("computed.fieldEmpty")),e;return this.oldValue="",t},onFocus(){this.oldValue=this.value},makeField(){this.oldValue=this.value,this.value=We(),this.onInput()},updateRule(e){const
* @form-create/component-wangeditor v3.2.14
* (c) 2018-2024 xaboy
* Github https://github.com/xaboy/form-create with wangeditor
* Released under the MIT License.
*/function _v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function $8(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?_v(Object(o),!0).forEach(function(r){F8(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_v(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Jt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jt=function(t){return typeof t}:Jt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function F8(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function I8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ev={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(window,function(){return function(o){var r={};function i(l){if(r[l])return r[l].exports;var d=r[l]={i:l,l:!1,exports:{}};return o[l].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=o,i.c=r,i.d=function(l,d,c){i.o(l,d)||Object.defineProperty(l,d,{enumerable:!0,get:c})},i.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},i.t=function(l,d){if(d&1&&(l=i(l)),d&8||d&4&&Jt(l)==="object"&&l&&l.__esModule)return l;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:l}),d&2&&typeof l!="string")for(var u in l)i.d(c,u,function(h){return l[h]}.bind(null,u));return c},i.n=function(l){var d=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(d,"a",d),d},i.o=function(l,d){return Object.prototype.hasOwnProperty.call(l,d)},i.p="",i(i.s=141)}([function(o,r){function i(l){return l&&l.__esModule?l:{default:l}}o.exports=i},function(o,r,i){o.exports=i(142)},function(o,r,i){i.r(r),i.d(r,"__extends",function(){return d}),i.d(r,"__assign",function(){return c}),i.d(r,"__rest",function(){return u}),i.d(r,"__decorate",function(){return h}),i.d(r,"__param",function(){return m}),i.d(r,"__metadata",function(){return v}),i.d(r,"__awaiter",function(){return C}),i.d(r,"__generator",function(){return S}),i.d(r,"__createBinding",function(){return w}),i.d(r,"__exportStar",function(){return E}),i.d(r,"__values",function(){return b}),i.d(r,"__read",function(){return g}),i.d(r,"__spread",function(){return _}),i.d(r,"__spreadArrays",function(){return x}),i.d(r,"__spreadArray",function(){return k}),i.d(r,"__await",function(){return T}),i.d(r,"__asyncGenerator",function(){return V}),i.d(r,"__asyncDelegator",function(){return I}),i.d(r,"__asyncValues",function(){return F}),i.d(r,"__makeTemplateObject",function(){return M}),i.d(r,"__importStar",function(){return O}),i.d(r,"__importDefault",function(){return L}),i.d(r,"__classPrivateFieldGet",function(){return H}),i.d(r,"__classPrivateFieldSet",function(){return W});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var l=function(U,A){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,Q){$.__proto__=Q}||function($,Q){for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&($[J]=Q[J])},l(U,A)};function d(B,U){if(typeof U!="function"&&U!==null)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");l(B,U);function A(){this.constructor=B}B.prototype=U===null?Object.create(U):(A.prototype=U.prototype,new A)}var c=function(){return c=Object.assign||function(A){for(var $,Q=1,J=arguments.length;Q<J;Q++){$=arguments[Q];for(var G in $)Object.prototype.hasOwnProperty.call($,G)&&(A[G]=$[G])}return A},c.apply(this,arguments)};function u(B,U){var A={};for(var $ in B)Object.prototype.hasOwnProperty.call(B,$)&&U.indexOf($)<0&&(A[$]=B[$]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,$=Object.getOwnPropertySymbols(B);Q<$.length;Q++)U.indexOf($[Q])<0&&Object.prototype.propertyIsEnumerable.call(B,$[Q])&&(A[$[Q]]=B[$[Q]]);return A}function h(B,U,A,$){var Q=arguments.length,J=Q<3?U:$===null?$=Object.getOwnPropertyDescriptor(U,A):$,G;if((typeof Reflect>"u"?"undefined":Jt(Reflect))==="object"&&typeof Reflect.decorate=="function")J=Reflect.decorate(B,U,A,$);else for(var Y=B.length-1;Y>=0;Y--)(G=B[Y])&&(J=(Q<3?G(J):Q>3?G(U,A,J):G(U,A))||J);return Q>3&&J&&Object.defineProperty(U,A,J),J}function m(B,U){return function(A,$){U(A,$,B)}}function v(B,U){if((typeof Reflect>"u"?"undefined":Jt(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(B,U)}function C(B,U,A,$){function Q(J){return J instanceof A?J:new A(function(G){G(J)})}return new(A||(A=Promise))(function(J,G){function Y(be){try{le($.next(be))}catch(fe){G(fe)}}function ce(be){try{le($.throw(be))}catch(fe){G(fe)}}function le(be){be.done?J(be.value):Q(be.value).then(Y,ce)}le(($=$.apply(B,U||[])).next())})}function S(B,U){var A={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},$,Q,J,G;return G={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function Y(le){return function(be){return ce([le,be])}}function ce(le){if($)throw new TypeError("Generator is already executing.");for(;A;)try{if($=1,Q&&(J=le[0]&2?Q.return:le[0]?Q.throw||((J=Q.return)&&J.call(Q),0):Q.next)&&!(J=J.call(Q,le[1])).done)return J;switch(Q=0,J&&(le=[le[0]&2,J.value]),le[0]){case 0:case 1:J=le;break;case 4:return A.label++,{value:le[1],done:!1};case 5:A.label++,Q=le[1],le=[0];continue;case 7:le=A.ops.pop(),A.trys.pop();continue;default:if(J=A.trys,!(J=J.length>0&&J[J.length-1])&&(le[0]===6||le[0]===2)){A=0;continue}if(le[0]===3&&(!J||le[1]>J[0]&&le[1]<J[3])){A.label=le[1];break}if(le[0]===6&&A.label<J[1]){A.label=J[1],J=le;break}if(J&&A.label<J[2]){A.label=J[2],A.ops.push(le);break}J[2]&&A.ops.pop(),A.trys.pop();continue}le=U.call(B,A)}catch(be){le=[6,be],Q=0}finally{$=J=0}if(le[0]&5)throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}}var w=Object.create?function(B,U,A,$){$===void 0&&($=A),Object.defineProperty(B,$,{enumerable:!0,get:function(){return U[A]}})}:function(B,U,A,$){$===void 0&&($=A),B[$]=U[A]};function E(B,U){for(var A in B)A!=="default"&&!Object.prototype.hasOwnProperty.call(U,A)&&w(U,B,A)}function b(B){var U=typeof Symbol=="function"&&Symbol.iterator,A=U&&B[U],$=0;if(A)return A.call(B);if(B&&typeof B.length=="number")return{next:function(){return B&&$>=B.length&&(B=void 0),{value:B&&B[$++],done:!B}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(B,U){var A=typeof Symbol=="function"&&B[Symbol.iterator];if(!A)return B;var $=A.call(B),Q,J=[],G;try{for(;(U===void 0||U-- >0)&&!(Q=$.next()).done;)J.push(Q.value)}catch(Y){G={error:Y}}finally{try{Q&&!Q.done&&(A=$.return)&&A.call($)}finally{if(G)throw G.error}}return J}function _(){for(var B=[],U=0;U<arguments.length;U++)B=B.concat(g(arguments[U]));return B}function x(){for(var B=0,U=0,A=arguments.length;U<A;U++)B+=arguments[U].length;for(var $=Array(B),Q=0,U=0
/mg`,"")).call(W);(0,C.default)(B).call(B,"<")===0?L=k(B):L=V(B)}var U=L.length;if(!U)return this;for(var A=0;A<U;A++)this.elems.push(L[A]);this.length=U}}return(0,d.default)(N.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),N.prototype.forEach=function(O){for(var L=0;L<this.length;L++){var H=this.elems[L],W=O.call(H,H,L);if(W===!1)break}return this},N.prototype.clone=function(O){var L;O===void 0&&(O=!1);var H=[];return(0,u.default)(L=this.elems).call(L,function(W){H.push(W.cloneNode(!!O))}),M(H)},N.prototype.get=function(O){O===void 0&&(O=0);var L=this.length;return O>=L&&(O=O%L),M(this.elems[O])},N.prototype.first=function(){return this.get(0)},N.prototype.last=function(){var O=this.length;return this.get(O-1)},N.prototype.on=function(O,L,H){var W;return O?(typeof L=="function"&&(H=L,L=""),(0,u.default)(W=this).call(W,function(B){if(!L){B.addEventListener(O,H);return}var U=function($){var Q=$.target;Q.matches(L)&&H.call(Q,$)};B.addEventListener(O,U),x.push({elem:B,selector:L,fn:H,agentFn:U})})):this},N.prototype.off=function(O,L,H){var W;return O?(typeof L=="function"&&(H=L,L=""),(0,u.default)(W=this).call(W,function(B){if(L){for(var U=-1,A=0;A<x.length;A++){var $=x[A];if($.selector===L&&$.fn===H&&$.elem===B){U=A;break}}if(U!==-1){var Q=(0,S.default)(x).call(x,U,1)[0].agentFn;B.removeEventListener(O,Q)}}else B.removeEventListener(O,H)})):this},N.prototype.attr=function(O,L){var H;return L==null?this.elems[0].getAttribute(O)||"":(0,u.default)(H=this).call(H,function(W){W.setAttribute(O,L)})},N.prototype.removeAttr=function(O){var L;(0,u.default)(L=this).call(L,function(H){H.removeAttribute(O)})},N.prototype.addClass=function(O){var L;return O?(0,u.default)(L=this).call(L,function(H){if(H.className){var W=H.className.split(/\s/);W=(0,w.default)(W).call(W,function(B){return!!(0,m.default)(B).call(B)}),(0,C.default)(W).call(W,O)<0&&W.push(O),H.className=W.join(" ")}else H.className=O}):this},N.prototype.removeClass=function(O){var L;return O?(0,u.default)(L=this).call(L,function(H){if(!!H.className){var W=H.className.split(/\s/);W=(0,w.default)(W).call(W,function(B){return B=(0,m.default)(B).call(B),!(!B||B===O)}),H.className=W.join(" ")}}):this},N.prototype.hasClass=function(O){if(!O)return!1;var L=this.elems[0];if(!L.className)return!1;var H=L.className.split(/\s/);return(0,E.default)(H).call(H,O)},N.prototype.css=function(O,L){var H,W;return L==""?W="":W=O+":"+L+";",(0,u.default)(H=this).call(H,function(B){var U,A=(0,m.default)(U=B.getAttribute("style")||"").call(U);if(A){var $=I(A);$=(0,h.default)($).call($,function(Q){return(0,C.default)(Q).call(Q,O)===0?W:Q}),W!=""&&(0,C.default)($).call($,W)<0&&$.push(W),W==""&&($=I($)),B.setAttribute("style",$.join("; "))}else B.setAttribute("style",W)})},N.prototype.getBoundingClientRect=function(){var O=this.elems[0];return O.getBoundingClientRect()},N.prototype.show=function(){return this.css("display","block")},N.prototype.hide=function(){return this.css("display","none")},N.prototype.children=function(){var O=this.elems[0];return O?M(O.children):null},N.prototype.childNodes=function(){var O=this.elems[0];return O?M(O.childNodes):null},N.prototype.replaceChildAll=function(O){for(var L=this.getNode(),H=this.elems[0];H.hasChildNodes();)L.firstChild&&H.removeChild(L.firstChild);this.append(O)},N.prototype.append=function(O){var L;return(0,u.default)(L=this).call(L,function(H){(0,u.default)(O).call(O,function(W){H.appendChild(W)})})},N.prototype.remove=function(){var O;return(0,u.default)(O=this).call(O,function(L){if(L.remove)L.remove();else{var H=L.parentElement;H&&H.removeChild(L)}})},N.prototype.isContain=function(O){var L=this.elems[0],H=O.elems[0];return L.contains(H)},N.prototype.getNodeName=function(){var O=this.elems[0];return O.nodeName},N.prototype.getNode=function(O){O===void 0&&(O=0);var L;return L=this.elems[O],L},N.prototype.find=function(O){var L=this.elems[0];return M(L.querySelectorAll(O))},N.prototype.text=function(O){if(O){var H;return(0,u.default)(H=this).call(H,function(W){W.innerHTML=O})}else{var L=this.elems[0];return
`)}}();function S(_,x,k,T){var V=k?"":T.media?"@media ".concat(T.media," {").concat(T.css,"}"):T.css;if(_.styleSheet)_.styleSheet.cssText=C(x,V);else{var I=document.createTextNode(V),F=_.childNodes;F[x]&&_.removeChild(F[x]),F.length?_.insertBefore(I,F[x]):_.appendChild(I)}}function w(_,x,k){var T=k.css,V=k.media,I=k.sourceMap;if(V?_.setAttribute("media",V):_.removeAttribute("media"),I&&typeof btoa<"u"&&(T+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(I))))," */")),_.styleSheet)_.styleSheet.cssText=T;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(T))}}var E=null,b=0;function g(_,x){var k,T,V;if(x.singleton){var I=b++;k=E||(E=m(x)),T=S.bind(null,k,I,!1),V=S.bind(null,k,I,!0)}else k=m(x),T=w.bind(null,k,x),V=function(){v(k)};return T(_),function(M){if(M){if(M.css===_.css&&M.media===_.media&&M.sourceMap===_.sourceMap)return;T(_=M)}else V()}}o.exports=function(_,x){x=x||{},!x.singleton&&typeof x.singleton!="boolean"&&(x.singleton=l()),_=_||[];var k=h(_,x);return function(V){if(V=V||[],Object.prototype.toString.call(V)==="[object Array]"){for(var I=0;I<k.length;I++){var F=k[I],M=u(F);c[M].references--}for(var N=h(V,x),O=0;O<k.length;O++){var L=k[O],H=u(L);c[H].references===0&&(c[H].updater(),c.splice(H,1))}k=N}}}},function(o,r,i){o.exports=function(c){var u=[];return u.toString=function(){return this.map(function(m){var v=l(m,c);return m[2]?"@media ".concat(m[2]," {").concat(v,"}"):v}).join("")},u.i=function(h,m,v){typeof h=="string"&&(h=[[null,h,""]]);var C={};if(v)for(var S=0;S<this.length;S++){var w=this[S][0];w!=null&&(C[w]=!0)}for(var E=0;E<h.length;E++){var b=[].concat(h[E]);v&&C[b[0]]||(m&&(b[2]?b[2]="".concat(m," and ").concat(b[2]):b[2]=m),u.push(b))}},u};function l(c,u){var h=c[1]||"",m=c[3];if(!m)return h;if(u&&typeof btoa=="function"){var v=d(m),C=m.sources.map(function(S){return"/*# sourceURL=".concat(m.sourceRoot||"").concat(S," */")});return[h].concat(C).concat([v]).join(`
`)}return[h].join(`
`)}function d(c){var u=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),h="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u);return"/*# ".concat(h," */")}},function(o,r,i){var l=i(14),d=i(11),c=i(16),u=Object.defineProperty,h={},m=function(C){throw C};o.exports=function(v,C){if(c(h,v))return h[v];C||(C={});var S=[][v],w=c(C,"ACCESSORS")?C.ACCESSORS:!1,E=c(C,0)?C[0]:m,b=c(C,1)?C[1]:void 0;return h[v]=!!S&&!d(function(){if(w&&!l)return!0;var g={length:-1};w?u(g,1,{enumerable:!0,get:m}):g[1]=1,S.call(g,E,b)})}},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(95)),h=function(m){c.__extends(v,m);function v(C,S){return m.call(this,C,S)||this}return v}(u.default);r.default=h},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(46));(0,d.default)(r,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),v=h.__importDefault(i(95)),C=h.__importDefault(i(134)),S=function(w){h.__extends(E,w);function E(b,g,_){var x=w.call(this,b,g)||this;_.title=g.i18next.t("menus.dropListMenu."+_.title);var k=g.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(k!==""&&_.type==="list"){var T;(0,c.default)(T=_.list).call(T,function(I){var F=I.$elem,M=m.default(F.children());if(M.length>0){var N=M==null?void 0:M.getNodeName();N&&N==="I"&&F.addClass(k)}})}var V=new C.default(x,_);return x.dropList=V,b.on("click",function(){var I;g.selection.getRange()!=null&&(b.css("z-index",g.zIndex.get("menu")),(0,c.default)(I=g.txt.eventHooks.dropListMenuHoverEvents).call(I,function(F){return F()}),V.show())}).on("mouseleave",function(){b.css("z-index","auto"),V.hideTimeoutId=(0,u.default)(function(){V.hide()})}),x}return E}(v.default);r.default=S},function(o,r,i){var l=i(13);o.exports=function(d){if(!l(d))throw TypeError(String(d)+" is not an object");return d}},function(o,r,i){o.exports=i(188)},function(o,r,i){o.exports=i(201)},function(o,r,i){o.exports=i(213)},function(o,r,i){o.exports=i(283)},function(o,r,i){var l=i(72),d=i(49);o.exports=function(c){return l(d(c))}},function(o,r,i){var l=i(49);o.exports=function(d){return Object(l(d))}},function(o,r,i){var l=i(40),d=i(72),c=i(31),u=i(35),h=i(88),m=[].push,v=function(S){var w=S==1,E=S==2,b=S==3,g=S==4,_=S==6,x=S==5||_;return function(k,T,V,I){for(var F=c(k),M=d(F),N=l(T,V,3),O=u(M.length),L=0,H=I||h,W=w?H(k,O):E?H(k,0):void 0,B,U;O>L;L++)if((x||L in M)&&(B=M[L],U=N(B,L,F),S)){if(w)W[L]=U;else if(U)switch(S){case 3:return!0;case 5:return B;case 6:return L;case 2:m.call(W,B)}else if(g)return!1}return _?-1:b||g?g:W}};o.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(29)),h=l(i(132));(0,d.default)(r,"__esModule",{value:!0});var m=i(2),v=m.__importDefault(i(3)),C=i(7),S=function(){function w(E,b){this.menu=E,this.conf=b,this.$container=v.default('<div class="w-e-panel-container"></div>');var g=E.editor;g.txt.eventHooks.clickEvents.push(w.hideCurAllPanels),g.txt.eventHooks.toolbarClickEvents.push(w.hideCurAllPanels),g.txt.eventHooks.dropListMenuHoverEvents.push(w.hideCurAllPanels)}return w.prototype.create=function(){var E=this,b=this.menu;if(!w.createdMenus.has(b)){var g=this.conf,_=this.$container,x=g.width||300,k=b.editor.$toolbarElem.getBoundingClientRect(),T=b.$elem.getBoundingClientRect(),V=k.height+k.top-T.top,I=(k.width-x)/2+k.left-T.left,F=300;Math.abs(I)>F&&(T.left<document.documentElement.clientWidth/2?I=-T.width/2:I=-x+T.width/2),_.css("width",x+"px").css("margin-top",V+"px").css("margin-left",I+"px").css("z-index",b.editor.zIndex.get("panel"));var M=v.default('<i class="w-e-icon-close w-e-panel-close"></i>');_.append(M),M.on("click",function(){E.remove()});var N=v.default('<ul class="w-e-panel-tab-title"></ul>'),O=v.default('<div class="w-e-panel-tab-content"></div>');_.append(N).append(O);var L=g.height;L&&O.css("height",L+"px").css("overflow-y","auto");var H=g.tabs||[],W=[],B=[];(0,c.default)(H).call(H,function(A,$){if(!!A){var Q=A.title||"",J=A.tpl||"",G=v.default('<li class="w-e-item">'+Q+"</li>");N.append(G);var Y
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(o,r,i){var l=i(60),d=i(18),c=i(48);o.exports=function(u,h,m){var v=l(h);v in u?d.f(u,v,c(0,m)):u[v]=m}},function(o,r,i){o.exports=i(209)},function(o,r,i){var l=i(14),d=i(59),c=i(48),u=i(30),h=i(60),m=i(16),v=i(100),C=Object.getOwnPropertyDescriptor;r.f=l?C:function(w,E){if(w=u(w),E=h(E,!0),v)try{return C(w,E)}catch{}if(m(w,E))return c(!d.f.call(w,E),w[E])}},function(o,r,i){var l=i(11),d=i(34),c="".split;o.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return d(u)=="String"?c.call(u,""):Object(u)}:Object},function(o,r,i){var l=i(8),d=i(13),c=l.document,u=d(c)&&d(c.createElement);o.exports=function(h){return u?c.createElement(h):{}}},function(o,r,i){var l=i(43),d=i(103);(o.exports=function(c,u){return d[c]||(d[c]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.4",mode:l?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(o,r,i){var l=i(5),d=i(167),c=i(105),u=i(171),h=i(37),m=i(19),v=i(53),C=i(10),S=i(43),w=i(44),E=i(104),b=E.IteratorPrototype,g=E.BUGGY_SAFARI_ITERATORS,_=C("iterator"),x="keys",k="values",T="entries",V=function(){return this};o.exports=function(I,F,M,N,O,L,H){d(M,F,N);var W=function(be){if(be===O&&Q)return Q;if(!g&&be in A)return A[be];switch(be){case x:return function(){return new M(this,be)};case k:return function(){return new M(this,be)};case T:return function(){return new M(this,be)}}return function(){return new M(this)}},B=F+" Iterator",U=!1,A=I.prototype,$=A[_]||A["@@iterator"]||O&&A[O],Q=!g&&$||W(O),J=F=="Array"&&A.entries||$,G,Y,ce;if(J&&(G=c(J.call(new I)),b!==Object.prototype&&G.next&&(!S&&c(G)!==b&&(u?u(G,b):typeof G[_]!="function"&&m(G,_,V)),h(G,B,!0,!0),S&&(w[B]=V))),O==k&&$&&$.name!==k&&(U=!0,Q=function(){return $.call(this)}),(!S||H)&&A[_]!==Q&&m(A,_,Q),w[F]=Q,O)if(Y={values:W(k),keys:L?Q:W(x),entries:W(T)},H)for(ce in Y)(g||U||!(ce in A))&&v(A,ce,Y[ce]);else l({target:F,proto:!0,forced:g||U},Y);return Y}},function(o,r,i){var l=i(11);o.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},function(o,r,i){var l=i(25),d=i(169),c=i(80),u=i(51),h=i(108),m=i(73),v=i(63),C=">",S="<",w="prototype",E="script",b=v("IE_PROTO"),g=function(){},_=function(F){return S+E+C+F+S+"/"+E+C},x=function(F){F.write(_("")),F.close();var M=F.parentWindow.Object;return F=null,M},k=function(){var F=m("iframe"),M="java"+E+":",N;return F.style.display="none",h.appendChild(F),F.src=String(M),N=F.contentWindow.document,N.open(),N.write(_("document.F=Object")),N.close(),N.F},T,V=function(){try{T=document.domain&&new ActiveXObject("htmlfile")}catch{}V=T?x(T):k();for(var F=c.length;F--;)delete V[w][c[F]];return V()};u[b]=!0,o.exports=Object.create||function(F,M){var N;return F!==null?(g[w]=l(F),N=new g,g[w]=null,N[b]=F):N=V(),M===void 0?N:d(N,M)}},function(o,r,i){var l=i(30),d=i(35),c=i(79),u=function(m){return function(v,C,S){var w=l(v),E=d(w.length),b=c(S,E),g;if(m&&C!=C){for(;E>b;)if(g=w[b++],g!=g)return!0}else for(;E>b;b++)if((m||b in w)&&w[b]===C)return m||b||0;return!m&&-1}};o.exports={includes:u(!0),indexOf:u(!1)}},function(o,r,i){var l=i(62),d=Math.max,c=Math.min;o.exports=function(u,h){var m=l(u);return m<0?d(m+h,0):c(m,h)}},function(o,r){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,r,i){var l=i(10),d=l("toStringTag"),c={};c[d]="z",o.exports=String(c)==="[object z]"},function(o,r){o.exports=function(){}},function(o,r){o.exports=function(i,l,d){if(!(i instanceof l))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return i}},function(o,r,i){var l=i(36);o.exports=l("navigator","userAgent")||""},function(o,r,i){var l=i(41),d=function(u){var h,m;this.promise=new u(function(v,C){if(h!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");h=v,m=C}),this.resolve=l(h),this.reject=l(m)};o.exports.f=function(c){return new d(c)}},function(o,r,i){var l=i(8),d=i(84),c=l.process,u=c&&c.versions,h=u&&u.v8,m,v;h?(
`+J.join(`
`),"warning");return}if(Q.length===0){x.customAlert(T("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Q.length>N){x.customAlert(T("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+N+T("\u5F20\u56FE\u7247"),"warning");return}if($&&typeof $=="function"){var G;$(Q,(0,c.default)(G=this.insertImg).call(G,this));return}var Y=new FormData;if((0,u.default)(Q).call(Q,function(fe,se){var pe=O||fe.name;Q.length>1&&(pe=pe+(se+1)),Y.append(pe,fe)}),V){var ce=V.split("#");V=ce[0];var le=ce[1]||"";(0,u.default)(v).call(v,L,function(fe,se){H&&((0,h.default)(V).call(V,"?")>0?V+="&":V+="?",V=V+fe+"="+se),Y.append(fe,se)}),le&&(V+="#"+le);var be=C.default(V,{timeout:U,formData:Y,headers:W,withCredentials:!!A,beforeSend:function(se){if(B.before)return B.before(se,_,Q)},onTimeout:function(se){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),B.timeout&&B.timeout(se,_)},onProgress:function(se,pe){var ae=new S.default(_);pe.lengthComputable&&(se=pe.loaded/pe.total,ae.show(se))},onError:function(se){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",T("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+T("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+se.status),B.error&&B.error(se,_)},onFail:function(se,pe){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",T("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+T("\u8FD4\u56DE\u7ED3\u679C")+": ")+pe),B.fail&&B.fail(se,_,pe)},onSuccess:function(se,pe){if(B.customInsert){var ae;B.customInsert((0,c.default)(ae=g.insertImg).call(ae,g),pe,_);return}if(pe.errno!="0"){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",T("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+T("\u8FD4\u56DE\u7ED3\u679C")+" errno="+pe.errno),B.fail&&B.fail(se,_,pe);return}var he=pe.data;(0,u.default)(he).call(he,function(R){typeof R=="string"?g.insertImg(R):g.insertImg(R.url,R.alt,R.href)}),B.success&&B.success(se,_,pe)}});typeof be=="string"&&x.customAlert(be,"error");return}I&&v.arrForEach(b,function(fe){var se=g,pe=new FileReader;pe.readAsDataURL(fe),pe.onload=function(){if(!!this.result){var ae=this.result.toString();se.insertImg(ae,ae)}}})}}},E}();r.default=w},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(410)),u=l(i(4)),h=l(i(45));(0,d.default)(r,"__esModule",{value:!0}),r.dealTextNode=r.isAllTodo=r.isTodo=r.getCursorNextNode=void 0;function m(E){return E.length?E.attr("class")==="w-e-todo":!1}r.isTodo=m;function v(E){var b=E.selection.getSelectionRangeTopNodes();if(b.length!==0)return(0,c.default)(b).call(b,function(g){return m(g)})}r.isAllTodo=v;function C(E,b,g){var _;if(!!E.hasChildNodes()){var x=E.cloneNode(),k=!1;b.nodeValue===""&&(k=!0);var T=[];return(0,u.default)(_=E.childNodes).call(_,function(V){if(!S(V,b)&&k&&(x.appendChild(V.cloneNode(!0)),V.nodeName!=="BR"&&T.push(V)),S(V,b)){if(V.nodeType===1){var I=C(V,b,g);I&&I.textContent!==""&&(x==null||x.appendChild(I))}if(V.nodeType===3&&b.isEqualNode(V)){var F=w(V,g);x.textContent=F}k=!0}}),(0,u.default)(T).call(T,function(V){var I=V;I.remove()}),x}}r.getCursorNextNode=C;function S(E,b){return E.nodeType===3?E.nodeValue===b.nodeValue:E.contains(b)}function w(E,b,g){g===void 0&&(g=!0);var _=E.nodeValue,x=_==null?void 0:(0,h.default)(_).call(_,0,b);if(_=_==null?void 0:(0,h.default)(_).call(_,b),!g){var k=_;_=x,x=k}return E.nodeValue=x,_}r.dealTextNode=w},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(430),u=function(){function h(m){this.maxSize=m,this.isRe=!1,this.data=new c.CeilStack(m),this.revokeData=new c.CeilStack(m)}return(0,d.default)(h.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),h.prototype.resetMaxSize=function(m){this.data.resetMax(m),this.revokeData.resetMax(m)},h.prototype.save=function(m){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(m),this},h.prototype.revoke=function(m){!this.isRe&&(this.isRe=!0);var v=this.data.outstack();return v?(this.revokeData.instack(v),m(v),!0):!1},h.prototype.restore=function(m){!this
<i class="w-e-icon-list2"></i>
</div>`),x={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:u.default(`
<p>
<i class="w-e-icon-list2 w-e-drop-list-item"></i>
`+b.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
<p>`),value:C.UnorderedList},{$elem:u.default(`<p>
<i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
`+b.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
<p>`),value:C.OrderedList}],clickHandler:function(T){g.command(T)}};return g=w.call(this,_,b,x)||this,g}return E.prototype.command=function(b){var g=this.editor,_=g.selection.getSelectionContainerElem();_!==void 0&&(this.handleSelectionRangeNodes(b),this.tryChangeActive())},E.prototype.validator=function(b,g,_){return!(!b.length||!g.length||_.equal(b)||_.equal(g))},E.prototype.handleSelectionRangeNodes=function(b){var g=this.editor,_=g.selection,x=b.toLowerCase(),k=_.getSelectionContainerElem(),T=_.getSelectionStartElem().getNodeTop(g),V=_.getSelectionEndElem().getNodeTop(g);if(!!this.validator(T,V,g.$textElem)){var I=_.getRange(),F=I==null?void 0:I.collapsed;g.$textElem.equal(k)||(k=k.getNodeTop(g));var M={editor:g,listType:b,listTarget:x,$selectionElem:k,$startElem:T,$endElem:V},N;this.isOrderElem(k)?N=v.ClassType.Wrap:this.isOrderElem(T)&&this.isOrderElem(V)?N=v.ClassType.Join:this.isOrderElem(T)?N=v.ClassType.StartJoin:this.isOrderElem(V)?N=v.ClassType.EndJoin:N=v.ClassType.Other;var O=new v.default(v.createListHandle(N,M,I));m.updateRange(g,O.getSelectionRangeElem(),!!F)}},E.prototype.isOrderElem=function(b){var g=b.getNodeName();return g===C.OrderedList||g===C.UnorderedList},E.prototype.tryChangeActive=function(){},E}(h.default);r.default=S},function(o,r,i){o.exports=i(395)},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});function c(u){var h=u.selection.getSelectionContainerElem();return h!=null&&h.length?!!(h.getNodeName()=="CODE"||h.getNodeName()=="PRE"||h.parent().getNodeName()=="CODE"||h.parent().getNodeName()=="PRE"||/hljs/.test(h.parent().attr("class"))):!1}r.default=c},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(r,"__esModule",{value:!0}),r.todo=void 0;var u=i(2),h=u.__importDefault(i(3)),m=function(){function C(S){var w;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=h.default(this.template),this.$child=(w=S==null?void 0:S.childNodes())===null||w===void 0?void 0:w.clone(!0)}return C.prototype.init=function(){var S=this.$child,w=this.getInputContainer();S&&S.insertAfter(w)},C.prototype.getInput=function(){var S=this.$todo,w=(0,c.default)(S).call(S,"input");return w},C.prototype.getInputContainer=function(){var S=this.getInput().parent();return S},C.prototype.getTodo=function(){return this.$todo},C}();r.todo=m;function v(C){var S=new m(C);return S.init(),S}r.default=v},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2);i(146),i(148),i(152),i(154),i(156),i(158),i(160);var u=c.__importDefault(i(87));c.__exportStar(i(442),r);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}r.default=u.default},function(o,r,i){var l=i(143);o.exports=l},function(o,r,i){i(144);var l=i(9),d=l.Object,c=o.exports=function(h,m,v){return d.defineProperty(h,m,v)};d.defineProperty.sham&&(c.sham=!0)},function(o,r,i){var l=i(5),d=i(14),c=i(18);l({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:c.f})},function(o,r){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{(typeof window>"u"?"undefined":Jt(window))==="object"&&(i=window)}o.exports=i},function(o,r,i){var l=i(20),d=i(147);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-toolbar,
.w-e-text-container,
.w-e-menu-panel {
padding: 0;
margin: 0;
box-sizing: border-box;
background-color: #fff;
/*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/
/*\u5206\u5272\u7EBF\u6837\u5F0F*/
}
.w-e-toolbar h1,
.w-e-text-container h1,
.w-e-menu-panel h1 {
font-size: 32px !important;
}
.w-e-toolbar h2,
.w-e-text-container h2,
.w-e-menu-panel h2 {
font-size: 24px !important;
}
.w-e-toolbar h3,
.w-e-text-container h3,
.w-e-menu-panel h3 {
font-size: 18.72px !important;
}
.w-e-toolbar h4,
.w-e-text-container h4,
.w-e-menu-panel h4 {
font-size: 16px !important;
}
.w-e-toolbar h5,
.w-e-text-container h5,
.w-e-menu-panel h5 {
font-size: 13.28px !important;
}
.w-e-toolbar p,
.w-e-text-container p,
.w-e-menu-panel p {
font-size: 16px !important;
}
.w-e-toolbar .eleImg,
.w-e-text-container .eleImg,
.w-e-menu-panel .eleImg {
cursor: pointer;
display: inline-block;
font-size: 18px;
padding: 0 3px;
}
.w-e-toolbar *,
.w-e-text-container *,
.w-e-menu-panel * {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.w-e-toolbar hr,
.w-e-text-container hr,
.w-e-menu-panel hr {
cursor: pointer;
display: block;
height: 0px;
border: 0;
border-top: 3px solid #ccc;
margin: 20px 0;
}
.w-e-clear-fix:after {
content: "";
display: table;
clear: both;
}
.w-e-drop-list-item {
position: relative;
top: 1px;
padding-right: 7px;
color: #333 !important;
}
.w-e-drop-list-tl {
padding-left: 10px;
text-align: left;
}
`,""]),o.exports=r},function(o,r,i){var l=i(20),d=i(149);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21),d=i(150),c=i(151);r=l(!1);var u=d(c);r.push([o.i,`@font-face {
font-family: 'w-e-icon';
src: url(`+u+`) format('truetype');
font-weight: normal;
font-style: normal;
}
[class^="w-e-icon-"],
[class*=" w-e-icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'w-e-icon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.w-e-icon-close:before {
content: "\\f00d";
}
.w-e-icon-upload2:before {
content: "\\e9c6";
}
.w-e-icon-trash-o:before {
content: "\\f014";
}
.w-e-icon-header:before {
content: "\\f1dc";
}
.w-e-icon-pencil2:before {
content: "\\e906";
}
.w-e-icon-paint-brush:before {
content: "\\f1fc";
}
.w-e-icon-image:before {
content: "\\e90d";
}
.w-e-icon-play:before {
content: "\\e912";
}
.w-e-icon-location:before {
content: "\\e947";
}
.w-e-icon-undo:before {
content: "\\e965";
}
.w-e-icon-redo:before {
content: "\\e966";
}
.w-e-icon-quotes-left:before {
content: "\\e977";
}
.w-e-icon-list-numbered:before {
content: "\\e9b9";
}
.w-e-icon-list2:before {
content: "\\e9bb";
}
.w-e-icon-link:before {
content: "\\e9cb";
}
.w-e-icon-happy:before {
content: "\\e9df";
}
.w-e-icon-bold:before {
content: "\\ea62";
}
.w-e-icon-underline:before {
content: "\\ea63";
}
.w-e-icon-italic:before {
content: "\\ea64";
}
.w-e-icon-strikethrough:before {
content: "\\ea65";
}
.w-e-icon-table2:before {
content: "\\ea71";
}
.w-e-icon-paragraph-left:before {
content: "\\ea77";
}
.w-e-icon-paragraph-center:before {
content: "\\ea78";
}
.w-e-icon-paragraph-right:before {
content: "\\ea79";
}
.w-e-icon-paragraph-justify:before {
content: "\\ea7a";
}
.w-e-icon-terminal:before {
content: "\\f120";
}
.w-e-icon-page-break:before {
content: "\\ea68";
}
.w-e-icon-cancel-circle:before {
content: "\\ea0d";
}
.w-e-icon-font:before {
content: "\\ea5c";
}
.w-e-icon-text-heigh:before {
content: "\\ea5f";
}
.w-e-icon-paint-format:before {
content: "\\e90c";
}
.w-e-icon-indent-increase:before {
content: "\\ea7b";
}
.w-e-icon-indent-decrease:before {
content: "\\ea7c";
}
.w-e-icon-row-height:before {
content: "\\e9be";
}
.w-e-icon-fullscreen_exit:before {
content: "\\e900";
}
.w-e-icon-fullscreen:before {
content: "\\e901";
}
.w-e-icon-split-line:before {
content: "\\ea0b";
}
.w-e-icon-checkbox-checked:before {
content: "\\ea52";
}
`,""]),o.exports=r},function(o,r,i){o.exports=function(l,d){return d||(d={}),l=l&&l.__esModule?l.default:l,typeof l!="string"?l:(/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),d.hash&&(l+=d.hash),/["'() \t\n]/.test(l)||d.needQuotes?'"'.concat(l.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):l)}},function(o,r,i){i.r(r),r.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+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8P
display: flex;
padding: 0 6px;
flex-wrap: wrap;
position: relative;
/* \u5355\u4E2A\u83DC\u5355 */
}
.w-e-toolbar .w-e-menu {
position: relative;
display: flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
}
.w-e-toolbar .w-e-menu i {
color: #999;
}
.w-e-toolbar .w-e-menu:hover {
background-color: #F6F6F6;
}
.w-e-toolbar .w-e-menu:hover i {
color: #333;
}
.w-e-toolbar .w-e-active i {
color: #1e88e5;
}
.w-e-toolbar .w-e-active:hover i {
color: #1e88e5;
}
.w-e-menu-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-menu-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-item-wrapper {
font-size: 14px;
margin: 0 5px;
}
`,""]),o.exports=r},function(o,r,i){var l=i(20),d=i(155);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-text-container {
position: relative;
height: 100%;
}
.w-e-text-container .w-e-progress {
position: absolute;
background-color: #1e88e5;
top: 0;
left: 0;
height: 1px;
}
.w-e-text-container .placeholder {
color: #D4D4D4;
position: absolute;
font-size: 11pt;
line-height: 22px;
left: 10px;
top: 10px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: -1;
}
.w-e-text {
padding: 0 10px;
overflow-y: auto;
}
.w-e-text p,
.w-e-text h1,
.w-e-text h2,
.w-e-text h3,
.w-e-text h4,
.w-e-text h5,
.w-e-text table,
.w-e-text pre {
margin: 10px 0;
line-height: 1.5;
}
.w-e-text ul,
.w-e-text ol {
margin: 10px 0 10px 20px;
}
.w-e-text blockquote {
display: block;
border-left: 8px solid #d0e5f2;
padding: 5px 10px;
margin: 10px 0;
line-height: 1.4;
font-size: 100%;
background-color: #f1f1f1;
}
.w-e-text code {
display: inline-block;
background-color: #f1f1f1;
border-radius: 3px;
padding: 3px 5px;
margin: 0 3px;
}
.w-e-text pre code {
display: block;
}
.w-e-text table {
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
}
.w-e-text table td,
.w-e-text table th {
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
padding: 3px 5px;
min-height: 30px;
height: 30px;
}
.w-e-text table th {
border-bottom: 2px solid #ccc;
text-align: center;
background-color: #f1f1f1;
}
.w-e-text:focus {
outline: none;
}
.w-e-text img {
cursor: pointer;
}
.w-e-text img:hover {
box-shadow: 0 0 5px #333;
}
.w-e-text .w-e-todo {
margin: 0 0 0 20px;
}
.w-e-text .w-e-todo li {
list-style: none;
font-size: 1em;
}
.w-e-text .w-e-todo li span:nth-child(1) {
position: relative;
left: -18px;
}
.w-e-text .w-e-todo li span:nth-child(1) input {
position: absolute;
margin-right: 3px;
}
.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
top: 50%;
margin-top: -6px;
}
.w-e-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-item-wrapper {
cursor: pointer;
font-size: 14px;
margin: 0 5px;
}
.w-e-tooltip-item-wrapper:hover {
color: #ccc;
text-decoration: underline;
}
`,""]),o.exports=r},function(o,r,i){var l=i(20),d=i(157);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-menu .w-e-panel-container {
position: absolute;
top: 0;
left: 50%;
border: 1px solid #ccc;
border-top: 0;
box-shadow: 1px 1px 2px #ccc;
color: #333;
background-color: #fff;
text-align: left;
/* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */
/* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-close {
position: absolute;
right: 0;
top: 0;
padding: 5px;
margin: 2px 5px 0 0;
cursor: pointer;
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-close:hover {
color: #333;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title {
list-style: none;
display: flex;
font-size: 14px;
margin: 2px 10px 0 10px;
border-bottom: 1px solid #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
padding: 3px 5px;
color: #999;
cursor: pointer;
margin: 0 3px;
position: relative;
top: 1px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
color: #333;
border-bottom: 1px solid #333;
cursor: default;
font-weight: 700;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content {
padding: 10px 15px 10px 15px;
font-size: 16px;
/* \u8F93\u5165\u6846\u7684\u6837\u5F0F */
/* \u6309\u94AE\u7684\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
outline: none;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
width: 100%;
border: 1px solid #ccc;
padding: 5px;
margin-top: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
border-color: #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
border: none;
border-bottom: 1px solid #ccc;
font-size: 14px;
height: 20px;
color: #333;
text-align: left;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
width: 30px;
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
display: block;
width: 100%;
margin: 10px 0;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
border-bottom: 2px solid #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
font-size: 14px;
color: #1e88e5;
border: none;
padding: 5px 10px;
background-color: #fff;
cursor: pointer;
border-radius: 3px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
float: left;
margin-right: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
float: right;
margin-left: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
color: #c24f4a;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
background-color: #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
content: "";
display: table;
clear: both;
}
.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
cursor: pointer;
font-size: 18px;
padding: 0 3px;
display: inline-block;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container,
.w-e-menu .w-e-panel-container .w-e-up-video-container {
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
display: inline-block;
color: #999;
cursor: pointer;
font-size: 60px;
line-height: 1;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
color: #333;
}
`,""]),o.exports=r},function(o,r,i){var l=i(20),d=i(159);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-toolbar .w-e-droplist {
position: absolute;
left: 0;
top: 0;
background-color: #fff;
border: 1px solid #f1f1f1;
border-right-color: #ccc;
border-bottom-color: #ccc;
}
.w-e-toolbar .w-e-droplist .w-e-dp-title {
text-align: center;
color: #999;
line-height: 2;
border-bottom: 1px solid #f1f1f1;
font-size: 13px;
}
.w-e-toolbar .w-e-droplist ul.w-e-list {
list-style: none;
line-height: 1;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
color: #333;
padding: 5px 0;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
background-color: #f1f1f1;
}
.w-e-toolbar .w-e-droplist ul.w-e-block {
list-style: none;
text-align: left;
padding: 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
display: inline-block;
padding: 3px 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
background-color: #f1f1f1;
}
`,""]),o.exports=r},function(o,r,i){var l=i(0),d=l(i(161));Element.prototype.matches||(Element.prototype.matches=function(c){var u=this.ownerDocument.querySelectorAll(c),h=u.length;for(h;h>=0&&u.item(h)!==this;h--);return h>-1}),d.default||(window.Promise=d.default)},function(o,r,i){o.exports=i(162)},function(o,r,i){var l=i(163);o.exports=l},function(o,r,i){i(61),i(50),i(54),i(175),i(178),i(179);var l=i(9);o.exports=l.Promise},function(o,r,i){var l=i(62),d=i(49),c=function(h){return function(m,v){var C=String(d(m)),S=l(v),w=C.length,E,b;return S<0||S>=w?h?"":void 0:(E=C.charCodeAt(S),E<55296||E>56319||S+1===w||(b=C.charCodeAt(S+1))<56320||b>57343?h?C.charAt(S):E:h?C.slice(S,S+2):(E-55296<<10)+(b-56320)+65536)}};o.exports={codeAt:c(!1),charAt:c(!0)}},function(o,r,i){var l=i(8),d=i(102),c=l.WeakMap;o.exports=typeof c=="function"&&/native code/.test(d(c))},function(o,r,i){var l=i(8),d=i(19);o.exports=function(c,u){try{d(l,c,u)}catch{l[c]=u}return u}},function(o,r,i){var l=i(104).IteratorPrototype,d=i(77),c=i(48),u=i(37),h=i(44),m=function(){return this};o.exports=function(v,C,S){var w=C+" Iterator";return v.prototype=d(l,{next:c(1,S)}),u(v,w,!1,!0),h[w]=m,v}},function(o,r,i){var l=i(11);o.exports=!l(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(o,r,i){var l=i(14),d=i(18),c=i(25),u=i(52);o.exports=l?Object.defineProperties:function(m,v){c(m);for(var C=u(v),S=C.length,w=0,E;S>w;)d.f(m,E=C[w++],v[E]);return m}},function(o,r,i){var l=i(81),d=i(65);o.exports=l?{}.toString:function(){return"[object "+d(this)+"]"}},function(o,r,i){var l=i(25),d=i(172);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},h;try{h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,h.call(u,[]),c=u instanceof Array}catch{}return function(v,C){return l(v),d(C),c?h.call(v,C):v.__proto__=C,v}}():void 0)},function(o,r,i){var l=i(13);o.exports=function(d){if(!l(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},function(o,r,i){var l=i(30),d=i(82),c=i(44),u=i(42),h=i(75),m="Array Iterator",v=u.set,C=u.getterFor(m);o.exports=h(Array,"Array",function(S,w){v(this,{type:m,target:l(S),index:0,kind:w})},function(){var S=C(this),w=S.target,E=S.kind,b=S.index++;return!w||b>=w.length?(S.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:b,done:!1}:E=="values"?{value:w[b],done:!1}:{value:[b,w[b]],done:!1}},"values"),c.Arguments=c.Array,d("keys"),d("values"),d("entries")},function(o,r){o.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(o,r,i){var l=i(5),d=i(43),c=i(8),u=i(36),h=i(109),m=i(53),v=i(110),C=i(37),S=i(111),w=i(13),E=i(41),b=i(83),g=i(34),_=i(102),x=i(66),k=i(115),T=i(116),V=i(117).set,I=i(176),F=i(119),M=i(177),N=i(85),O=i(120),L=i(42),H=i(101),W=i(10),B=i(86),U=W("species"),A="Promise",$=L.get,Q=L.set,J=L.getterFor(A),G=h,Y=c.TypeError,ce=c.document,le=c.process,be=u("fetch"),fe=N.f,se=fe,pe=g(le)=="process",ae=!!(ce&&ce.createEvent&&c.dispatchEvent),he="unhandledrejection",R="rejectionhandled",j=0,X=1,Z=2,te=1,re=2,Ee,we,Te,Je,Be=H(A,function(){var Ze=_(G)!==String(G);if(!Ze&&(B===66||!pe&&typeof PromiseRejectionEvent!="function")||d&&!G.prototype.finally)return!0;if(B>=51&&/native code/.test(G))return!1;var Re=G.resolve(1),Me=function(_e){_e(function(){},function(){})},et=Re.constructor={};return et[U]=Me,!(Re.then(function(){})instanceof Me)}),ge=Be||!k(function(Ze){G.all(Ze).catch(function(){})}),ke=function(Re){var Me;return w(Re)&&typeof(Me=Re.then)=="function"?Me:!1},Ce=function(Re,Me,et){if(!Me.notified){Me.notified=!0;var Fe=Me.reactions;I(func
`).replace(/<[^>]+>/gm,"");return _}function w(g){var _;if(g==="")return!1;var x=document.createElement("div");return x.innerHTML=g,((_=x.firstChild)===null||_===void 0?void 0:_.nodeName)==="P"}function E(g){if(!(g!=null&&g.length))return!1;var _=g.elems[0];return _.nodeName==="P"&&_.innerHTML==="<br>"}function b(g,_){function x(k){var T=g.config,V=T.pasteFilterStyle,I=T.pasteIgnoreImg,F=T.pasteTextHandle,M=h.getPasteHtml(k,V,I),N=h.getPasteText(k);N=N.replace(/\n/gm,"<br>");var O=g.selection.getSelectionContainerElem();if(!!O){var L=O==null?void 0:O.getNodeName(),H=O==null?void 0:O.getNodeTop(g),W="";if(H.elems[0]&&(W=H==null?void 0:H.getNodeName()),L==="CODE"||W==="PRE"){F&&m.isFunction(F)&&(N=""+(F(N)||"")),g.cmd.do("insertHTML",S(N));return}if(v.urlRegex.test(N)&&V){F&&m.isFunction(F)&&(N=""+(F(N)||""));var B=N.replace(v.urlRegex,function(ce){return'<a href="'+ce+'" target="_blank">'+ce+"</a>"}),U=g.selection.getRange(),A=document.createElement("div"),$=document.createDocumentFragment();if(A.innerHTML=B,U==null)return;for(;A.childNodes.length;)$.append(A.childNodes[0]);var Q=$.querySelectorAll("a");(0,u.default)(Q).call(Q,function(ce){ce.innerText=ce.href}),U.insertNode&&(U.deleteContents(),U.insertNode($)),g.selection.clearWindowSelectionRange();return}if(!!M)try{F&&m.isFunction(F)&&(M=""+(F(M)||""));var J=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(M);if(J&&V)g.cmd.do("insertHTML",""+C(N));else{var G=C(M);if(w(G)){var Y=g.$textElem;if(g.cmd.do("insertHTML",G),Y.equal(O)){g.selection.createEmptyRange();return}E(H)&&H.remove()}else g.cmd.do("insertHTML",G)}}catch{F&&m.isFunction(F)&&(N=""+(F(N)||"")),g.cmd.do("insertHTML",""+C(N))}}}_.push(x)}r.default=b},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(17)),u=l(i(4)),h=l(i(28));(0,d.default)(r,"__esModule",{value:!0});var m=i(2),v=i(293),C=m.__importDefault(i(297));function S(_){var x=/<span>.*?<\/span>/gi,k=/<span>(.*?)<\/span>/;return _.replace(x,function(T){var V=T.match(k);return V==null?"":V[1]})}function w(_,x){var k;return _=(0,c.default)(k=_.toLowerCase()).call(k),!!(v.IGNORE_TAGS.has(_)||x&&_==="img")}function E(_,x){var k="";k="<"+_;var T=[];(0,u.default)(x).call(x,function(I){T.push(I.name+'="'+I.value+'"')}),T.length>0&&(k=k+" "+T.join(" "));var V=v.EMPTY_TAGS.has(_);return k=k+(V?"/":"")+">",k}function b(_){return"</"+_+">"}function g(_,x,k){x===void 0&&(x=!0),k===void 0&&(k=!1);var T=[],V="";function I(O){O=(0,c.default)(O).call(O),O&&(v.EMPTY_TAGS.has(O)||(V=O))}function F(){V=""}var M=new C.default;M.parse(_,{startElement:function(L,H){if(I(L),!w(L,k)){var W=v.NECESSARY_ATTRS.get(L)||[],B=[];(0,u.default)(H).call(H,function(A){var $=A.name;if($==="style"){x||B.push(A);return}(0,h.default)(W).call(W,$)!==!1&&B.push(A)});var U=E(L,B);T.push(U)}},characters:function(L){!L||w(V,k)||T.push(L)},endElement:function(L){if(!w(L,k)){var H=b(L);T.push(H),F()}},comment:function(L){I(L)}});var N=T.join("");return N=S(N),N}r.default=g},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(132)),u=l(i(121));(0,d.default)(r,"__esModule",{value:!0}),r.TOP_LEVEL_TAGS=r.EMPTY_TAGS=r.NECESSARY_ATTRS=r.IGNORE_TAGS=void 0,r.IGNORE_TAGS=new c.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),r.NECESSARY_ATTRS=new u.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),r.EMPTY_TAGS=new c.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),r.TOP_LEVEL_TAGS=new c.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(o,r,i){var l=i(295);o.exports=l},function(o,r,i){i(296),i(61),i(50),i(54);var l=i(9);o.exports=l.Set},function(o,r,i){var l=i(122),d=i(124);o.exports=l("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(o,r){function i(){}i.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\'
<div class="w-e-menu-tooltip-item-wrapper">
<div></div>
</div>
</div>`);N.css("visibility","hidden"),I.append(N),N.css("z-index",V.zIndex.get("tooltip"));var O=0;function L(){O&&clearTimeout(O)}function H(){L(),N.css("visibility","hidden")}I.on("mouseover",function(W){var B=W.target,U=x.default(B),A,$;if(U.isContain(I)){H();return}if(U.parentUntil(".w-e-droplist")!=null)H();else if(U.attr("data-title"))A=U.attr("data-title"),$=U;else{var Q=U.parentUntil(".w-e-menu");Q!=null&&(A=Q.attr("data-title"),$=Q)}if(A&&$){L();var J=$.getOffsetData();N.text(V.i18next.t("menus.title."+A));var G=N.getOffsetData(),Y=J.left+J.width/2-G.width/2;N.css("left",Y+"px"),M==="up"?N.css("top",J.top-G.height-8+"px"):M==="down"&&N.css("top",J.top+J.height+8+"px"),O=(0,w.default)(function(){N.css("visibility","visible")},200)}else H()}).on("mouseleave",function(){H()})},T.prototype._addToToolbar=function(){var V,I=this.editor,F=I.$toolbarElem;(0,v.default)(V=this.menuList).call(V,function(M){var N=M.$elem;N&&F.append(N)})},T.prototype.menuFind=function(V){for(var I=this.menuList,F=0,M=I.length;F<M;F++)if(I[F].key===V)return I[F];return I[0]},T.prototype.changeActive=function(){var V;(0,v.default)(V=this.menuList).call(V,function(I){var F;(0,w.default)((0,E.default)(F=I.tryChangeActive).call(F,I),100)})},T}();r.default=k},function(o,r,i){o.exports=i(303)},function(o,r,i){var l=i(304);o.exports=l},function(o,r,i){i(305);var l=i(9);o.exports=l.Object.keys},function(o,r,i){var l=i(5),d=i(31),c=i(52),u=i(11),h=u(function(){c(1)});l({target:"Object",stat:!0,forced:h},{keys:function(v){return c(d(v))}})},function(o,r,i){var l=i(307);o.exports=l},function(o,r,i){i(308);var l=i(9);o.exports=l.Object.entries},function(o,r,i){var l=i(5),d=i(309).entries;l({target:"Object",stat:!0},{entries:function(u){return d(u)}})},function(o,r,i){var l=i(14),d=i(52),c=i(30),u=i(59).f,h=function(v){return function(C){for(var S=c(C),w=d(S),E=w.length,b=0,g=[],_;E>b;)_=w[b++],(!l||u.call(S,_))&&g.push(v?[_,S[_]]:S[_]);return g}};o.exports={entries:h(!0),values:h(!1)}},function(o,r,i){var l=i(311);o.exports=l},function(o,r,i){var l=i(312),d=Array.prototype;o.exports=function(c){var u=c.some;return c===d||c instanceof Array&&u===d.some?l:u}},function(o,r,i){i(313);var l=i(15);o.exports=l("Array").some},function(o,r,i){var l=i(5),d=i(32).some,c=i(67),u=i(22),h=c("some"),m=u("some");l({target:"Array",proto:!0,forced:!h||!m},{some:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(315)),h=c.__importDefault(i(316)),m=c.__importDefault(i(321)),v=c.__importDefault(i(326)),C=c.__importDefault(i(327)),S=c.__importDefault(i(328)),w=c.__importDefault(i(329)),E=c.__importDefault(i(331)),b=c.__importDefault(i(333)),g=c.__importDefault(i(334)),_=c.__importDefault(i(337)),x=c.__importDefault(i(338)),k=c.__importDefault(i(339)),T=c.__importDefault(i(350)),V=c.__importDefault(i(365)),I=c.__importDefault(i(369)),F=c.__importDefault(i(137)),M=c.__importDefault(i(378)),N=c.__importDefault(i(380)),O=c.__importDefault(i(381)),L=c.__importDefault(i(382)),H=c.__importDefault(i(401)),W=c.__importDefault(i(406)),B=c.__importDefault(i(409));r.default={bold:u.default,head:h.default,italic:v.default,link:m.default,underline:C.default,strikeThrough:S.default,fontName:w.default,fontSize:E.default,justify:b.default,quote:g.default,backColor:_.default,foreColor:x.default,video:k.default,image:T.default,indent:V.default,emoticon:I.default,list:F.default,lineHeight:M.default,undo:N.default,redo:O.default,table:L.default,code:H.default,splitLine:W.default,todo:B.default}},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(v){c.__extends(C,v);function C(S){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
<i class="w-e-icon-bold"></i>
</div>`);return w=v.call(this,E,S)||this,w}return C.prototype.clickHandler=function(){var S=this.editor,w=S.selection.isSelectionEmpty();w&&S.selection.createEmptyRange(),S.cmd.do("bold"),w&&(S.selection.collapseRange(),S.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var S=this.editor;S.cmd.queryCommandState("bold")?this.active():this.unActive()},C}(u.default);r.default=m},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(27)),u=l(i(29)),h=l(i(4)),m=l(i(317)),v=l(i(28));(0,d.default)(r,"__esModule",{value:!0});var C=i(2),S=C.__importDefault(i(24)),w=C.__importDefault(i(3)),E=i(6),b=i(7),g=function(_){C.__extends(x,_);function x(k){var T=this,V=w.default('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),I={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:w.default("<h1>H1</h1>"),value:"<h1>"},{$elem:w.default("<h2>H2</h2>"),value:"<h2>"},{$elem:w.default("<h3>H3</h3>"),value:"<h3>"},{$elem:w.default("<h4>H4</h4>"),value:"<h4>"},{$elem:w.default("<h5>H5</h5>"),value:"<h5>"},{$elem:w.default("<p>"+k.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],clickHandler:function(N){T.command(N)}};T=_.call(this,V,k,I)||this;var F=k.config.onCatalogChange;return F&&(T.oldCatalogs=[],T.addListenerCatalog(),T.getCatalogs()),T}return x.prototype.command=function(k){var T=this.editor,V=T.selection.getSelectionContainerElem();if(V&&T.$textElem.equal(V))this.setMultilineHead(k);else{var I;if((0,c.default)(I=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(I,w.default(V).getNodeName())>-1)return;T.cmd.do("formatBlock",k)}k!=="<p>"&&this.addUidForSelectionElem()},x.prototype.addUidForSelectionElem=function(){var k=this.editor,T=k.selection.getSelectionContainerElem(),V=E.getRandomCode();w.default(T).attr("id",V)},x.prototype.addListenerCatalog=function(){var k=this,T=this.editor;T.txt.eventHooks.changeEvents.push(function(){k.getCatalogs()})},x.prototype.getCatalogs=function(){var k=this.editor,T=this.editor.$textElem,V=k.config.onCatalogChange,I=(0,u.default)(T).call(T,"h1,h2,h3,h4,h5"),F=[];(0,h.default)(I).call(I,function(M,N){var O=w.default(M),L=O.attr("id"),H=O.getNodeName(),W=O.text();L||(L=E.getRandomCode(),O.attr("id",L)),W&&F.push({tag:H,id:L,text:W})}),(0,m.default)(this.oldCatalogs)!==(0,m.default)(F)&&(this.oldCatalogs=F,V&&V(F))},x.prototype.setMultilineHead=function(k){var T=this,V,I,F=this.editor,M=F.selection,N=(V=M.getSelectionContainerElem())===null||V===void 0?void 0:V.elems[0],O=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=w.default(M.getSelectionStartElem()),H=w.default(M.getSelectionEndElem());H.elems[0].outerHTML===w.default(b.EMPTY_P).elems[0].outerHTML&&!H.elems[0].nextSibling&&(H=H.prev());var W=[];W.push(L.getNodeTop(F));var B=[],U=(I=M.getRange())===null||I===void 0?void 0:I.commonAncestorContainer.childNodes;U==null||(0,h.default)(U).call(U,function(Q,J){Q===W[0].getNode()&&B.push(J),Q===H.getNodeTop(F).getNode()&&B.push(J)});for(var A=0;W[A].getNode()!==H.getNodeTop(F).getNode();){if(!W[A].elems[0])return;var $=w.default(W[A].next().getNode());W.push($),A++}W==null||(0,h.default)(W).call(W,function(Q,J){if(!T.hasTag(Q,O)){var G=w.default(k),Y=Q.parent().getNode();G.html(""+Q.html()),Y.insertBefore(G.getNode(),Q.getNode()),Q.remove()}}),M.createRangeByElems(N.children[B[0]],N.children[B[1]])},x.prototype.hasTag=function(k,T){var V=this,I;if(!k)return!1;if((0,v.default)(T).call(T,k==null?void 0:k.getNodeName()))return!0;var F=!1;return(I=k.children())===null||I===void 0||(0,h.default)(I).call(I,function(M){F=V.hasTag(w.default(M),T)}),F},x.prototype.tryChangeActive=function(){var k=this.editor,T=/^h/i,V=k.cmd.queryCommandValue("formatBlock");T.test(V)?this.active():this.unActive()},x}(S.default);r.default=g},function(o,r,i){o.exports=i(318)},function(o,r,i){var l=i(319);o.exports=l},function(o,r,i){i(320);var l=i(9);l.JSON||(l.JSON={stringify:JSON.stringify}),o.exports=function(c,u,h){return l.JSON.stringify.apply(null,arguments)}},function(o,r,i){var l=i(5),d=i(36),c=i(11),u=d
<input
id="`+k+`"
type="text"
class="block"
placeholder="`+b.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
</td>
<input
id="`+x+`"
type="text"
class="block"
placeholder="`+b.i18next.t("\u5982")+` https://..."/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+T+`" class="right">
`+b.i18next.t("\u63D2\u5165")+`
</button>
<button type="button" id="`+V+'" class="gray right" style="display:'+I+`">
`+b.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
</button>
</div>
</div>`,events:[{selector:"#"+T,type:"click",fn:function(){var B,U,A,$,Q,J=b.selection.getSelectionContainerElem(),G=J==null?void 0:J.elems[0];b.selection.restoreSelection();var Y=b.selection.getSelectionRangeTopNodes()[0].getNode(),ce=window.getSelection(),le=C.default("#"+x),be=C.default("#"+k),fe=(0,u.default)(B=le.val()).call(B),se=(0,u.default)(U=be.val()).call(U),pe="";ce&&!(ce!=null&&ce.isCollapsed)&&(pe=($=w.insertHtml(ce,Y))===null||$===void 0?void 0:(0,u.default)($).call($));var ae=pe==null?void 0:pe.replace(/<.*?>/g,""),he=(Q=ae==null?void 0:ae.length)!==null&&Q!==void 0?Q:0;if(he<=se.length){var R=se.substring(0,he),j=se.substring(he);ae===R&&(se=ae+j)}if(!!fe&&(se||(se=fe),!!L(se,fe))){if((G==null?void 0:G.nodeName)==="A")return G.setAttribute("href",fe),G.innerText=se,!0;if((G==null?void 0:G.nodeName)!=="A"&&(0,c.default)(A=S.EXTRA_TAG).call(A,G.nodeName)){var X=S.getParentNodeA(J);if(X)return X.setAttribute("href",fe),G.innerText=se,!0}return N(se,fe),!0}},bindEnter:!0},{selector:"#"+V,type:"click",fn:function(){return O(),!0}}]}],setLinkValue:function(B,U){var A="",$="",Q;U==="text"&&(A="#"+k,$=g),U==="link"&&(A="#"+x,$=_),Q=(0,h.default)(B).call(B,A).elems[0],Q.value=$}};return H}r.default=E},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0}),r.insertHtml=r.createPartHtml=r.makeHtmlString=r.getTopNode=void 0;function u(w,E){var b=w,g=w;do{if(b.textContent===E)break;g=b,b.parentNode&&(b=b==null?void 0:b.parentNode)}while((b==null?void 0:b.nodeName)!=="P");return g}r.getTopNode=u;function h(w,E){var b=w.nodeName,g="";if(w.nodeType===3||/^(h|H)[1-6]$/.test(b))return E;if(w.nodeType===1){var _=w.getAttribute("style"),x=w.getAttribute("face"),k=w.getAttribute("color");_&&(g=g+(' style="'+_+'"')),x&&(g=g+(' face="'+x+'"')),k&&(g=g+(' color="'+k+'"'))}return b=b.toLowerCase(),"<"+b+g+">"+E+"</"+b+">"}r.makeHtmlString=h;function m(w,E,b,g){var _,x=(_=E.textContent)===null||_===void 0?void 0:_.substring(b,g),k=E,T="";do T=h(k,x!=null?x:""),x=T,k=k==null?void 0:k.parentElement;while(k&&k.textContent!==w);return T}r.createPartHtml=m;function v(w,E){var b,g,_,x,k,T=w.anchorNode,V=w.focusNode,I=w.anchorOffset,F=w.focusOffset,M=(b=E.textContent)!==null&&b!==void 0?b:"",N=C(E),O="",L="",H="",W="",B=T,U=V,A=T;if(T!=null&&T.isEqualNode(V!=null?V:null)){var $=m(M,T,I,F);return $=S(N,$),$}for(T&&(L=m(M,T,I!=null?I:0)),V&&(W=m(M,V,0,F)),T&&(B=u(T,M)),V&&(U=u(V,M)),A=(g=B==null?void 0:B.nextSibling)!==null&&g!==void 0?g:T;!(A!=null&&A.isEqualNode(U!=null?U:null));){var Q=A==null?void 0:A.nodeName;if(Q==="#text")H=H+(A==null?void 0:A.textContent);else{var J=(x=(_=A==null?void 0:A.firstChild)===null||_===void 0?void 0:_.parentElement)===null||x===void 0?void 0:x.innerHTML;A&&(H=H+h(A,J!=null?J:""))}var G=(k=A==null?void 0:A.nextSibling)!==null&&k!==void 0?k:A;if(G===A)break;A=G}return O=""+L+H+W,O=S(N,O),O}r.insertHtml=v;function C(w){for(var E,b=(E=w.textContent)!==null&&E!==void 0?E:"",g=[];(w==null?void 0:w.textContent)===b;)w.nodeName!=="P"&&w.nodeName!=="TABLE"&&g.push(w),w=w.childNodes[0];return g}function S(w,E){return(0,c.default)(w).call(w,function(b){E=h(b,E)}),E}},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(325));function h(m){u.default(m)}r.default=h},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(28));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=u.__importDefault(i(39)),v=i(96);function C(w){var E;function b(_){var x=[{$elem:h.default("<span>"+w.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(T,V){var I=V.attr("href");return window.open(I,"_target"),!0}},{$elem:h.default("<span>"+w.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(T,V){var I,F;T.selection.createRangeByElem(V),T.selection.restoreSelection();var M=V.childNodes();if((M==null?void 0:M.getNodeName())==="IMG"){var N=(F=(I=T.selection.getSelectionContainerElem())===null||I===void 0?void 0:I.children())===null||F===void 0?voi
src=`+(N==null?void 0:N.getAttribute("src"))+`
style=`+(N==null?void 0:N.getAttribute("style"))+">")}else{var O,L=V.elems[0],H=L.innerHTML,W=L.parentElement;W&&(0,c.default)(O=v.EXTRA_TAG).call(O,W.nodeName)?W.innerHTML=H:T.cmd.do("insertHTML","<span>"+H+"</span>")}return!0}}];E=new m.default(w,_,x),E.create()}function g(){E&&(E.remove(),E=null)}return{showLinkTooltip:b,hideLinkTooltip:g}}function S(w){var E=C(w),b=E.showLinkTooltip,g=E.hideLinkTooltip;w.txt.eventHooks.linkClickEvents.push(b),w.txt.eventHooks.clickEvents.push(g),w.txt.eventHooks.keyupEvents.push(g),w.txt.eventHooks.toolbarClickEvents.push(g),w.txt.eventHooks.menuClickEvents.push(g),w.txt.eventHooks.textScrollEvents.push(g)}r.default=S},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(v){c.__extends(C,v);function C(S){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
<i class="w-e-icon-italic"></i>
</div>`);return w=v.call(this,E,S)||this,w}return C.prototype.clickHandler=function(){var S=this.editor,w=S.selection.isSelectionEmpty();w&&S.selection.createEmptyRange(),S.cmd.do("italic"),w&&(S.selection.collapseRange(),S.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var S=this.editor;S.cmd.queryCommandState("italic")?this.active():this.unActive()},C}(u.default);r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(v){c.__extends(C,v);function C(S){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
<i class="w-e-icon-underline"></i>
</div>`);return w=v.call(this,E,S)||this,w}return C.prototype.clickHandler=function(){var S=this.editor,w=S.selection.isSelectionEmpty();w&&S.selection.createEmptyRange(),S.cmd.do("underline"),w&&(S.selection.collapseRange(),S.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var S=this.editor;S.cmd.queryCommandState("underline")?this.active():this.unActive()},C}(u.default);r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(v){c.__extends(C,v);function C(S){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
<i class="w-e-icon-strikethrough"></i>
</div>`);return w=v.call(this,E,S)||this,w}return C.prototype.clickHandler=function(){var S=this.editor,w=S.selection.isSelectionEmpty();w&&S.selection.createEmptyRange(),S.cmd.do("strikeThrough"),w&&(S.selection.collapseRange(),S.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var S=this.editor;S.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},C}(u.default);r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(24)),h=c.__importDefault(i(3)),m=c.__importDefault(i(330)),v=function(C){c.__extends(S,C);function S(w){var E=this,b=h.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
<i class="w-e-icon-font"></i>
</div>`),g=new m.default(w.config.fontNames),_={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:g.getItemList(),clickHandler:function(k){E.command(k)}};return E=C.call(this,b,w,_)||this,E}return S.prototype.command=function(w){var E,b=this.editor,g=b.selection.isSelectionEmpty(),_=(E=b.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];if(_!=null){var x=(_==null?void 0:_.nodeName.toLowerCase())!=="p",k=(_==null?void 0:_.getAttribute("face"))===w;if(g){if(x&&!k){var T=b.selection.getSelectionRangeTopNodes();b.selection.createRangeByElem(T[0]),b.selection.moveCursor(T[0].elems[0])}b.selection.setRangeToElem(_),b.selection.createEmptyRange()}b.cmd.do("fontName",w),g&&(b.selection.collapseRange(),b.selection.restoreSelection())}},S.prototype.tryChangeActive=function(){},S}(u.default);r.default=v},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=function(){function v(C){var S=this;this.itemList=[],(0,c.default)(C).call(C,function(w){var E=typeof w=="string"?w:w.value,b=typeof w=="string"?w:w.name;S.itemList.push({$elem:h.default(`<p style="font-family:'`+E+`'">`+b+"</p>"),value:b})})}return v.prototype.getItemList=function(){return this.itemList},v}();r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(24)),h=c.__importDefault(i(3)),m=c.__importDefault(i(332)),v=function(C){c.__extends(S,C);function S(w){var E=this,b=h.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
<i class="w-e-icon-text-heigh"></i>
</div>`),g=new m.default(w.config.fontSizes),_={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:g.getItemList(),clickHandler:function(k){E.command(k)}};return E=C.call(this,b,w,_)||this,E}return S.prototype.command=function(w){var E,b=this.editor,g=b.selection.isSelectionEmpty(),_=(E=b.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];_!=null&&(b.cmd.do("fontSize",w),g&&(b.selection.collapseRange(),b.selection.restoreSelection()))},S.prototype.tryChangeActive=function(){},S}(u.default);r.default=v},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=function(){function m(v){this.itemList=[];for(var C in v){var S=v[C];this.itemList.push({$elem:u.default('<p style="font-size:'+C+'">'+S.name+"</p>"),value:S.value})}}return m.prototype.getItemList=function(){return this.itemList},m}();r.default=h},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(27));(0,d.default)(r,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(24)),v=h.__importDefault(i(3)),C=["LI"],S=["BLOCKQUOTE"],w=function(E){h.__extends(b,E);function b(g){var _=this,x=v.default('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),k={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:v.default(`<p>
<i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`
</p>`),value:"left"},{$elem:v.default(`<p>
<i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`
</p>`),value:"center"},{$elem:v.default(`<p>
<i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`
</p>`),value:"right"},{$elem:v.default(`<p>
<i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`
</p>`),value:"justify"}],clickHandler:function(V){_.command(V)}};return _=E.call(this,x,g,k)||this,_}return b.prototype.command=function(g){var _=this.editor,x=_.selection,k=x.getSelectionContainerElem();x.saveRange();var T=_.selection.getSelectionRangeTopNodes();if(k!=null&&k.length)if(this.isSpecialNode(k,T[0])||this.isSpecialTopNode(T[0])){var V=this.getSpecialNodeUntilTop(k,T[0]);if(V==null)return;v.default(V).css("text-align",g)}else(0,c.default)(T).call(T,function(I){I.css("text-align",g)});x.restoreSelection()},b.prototype.getSpecialNodeUntilTop=function(g,_){for(var x=g.elems[0],k=_.elems[0];x!=null;){if((0,u.default)(C).call(C,x==null?void 0:x.nodeName)!==-1||x.parentNode===k)return x;x=x.parentNode}return x},b.prototype.isSpecialNode=function(g,_){var x=this.getSpecialNodeUntilTop(g,_);return x==null?!1:(0,u.default)(C).call(C,x.nodeName)!==-1},b.prototype.isSpecialTopNode=function(g){var _;return g==null?!1:(0,u.default)(S).call(S,(_=g.elems[0])===null||_===void 0?void 0:_.nodeName)!==-1},b.prototype.tryChangeActive=function(){},b}(m.default);r.default=w},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=u.__importDefault(i(23)),v=u.__importDefault(i(335)),C=u.__importDefault(i(336)),S=i(7),w=function(E){u.__extends(b,E);function b(g){var _=this,x=h.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
<i class="w-e-icon-quotes-left"></i>
</div>`);return _=E.call(this,x,g)||this,v.default(g),_}return b.prototype.clickHandler=function(){var g,_,x=this.editor,k=x.selection.isSelectionEmpty(),T=x.selection.getSelectionRangeTopNodes(),V=T[T.length-1],I=this.getTopNodeName();if(I==="BLOCKQUOTE"){var F=h.default(V.childNodes()),M=F.length,N=V;(0,c.default)(F).call(F,function(W){var B=h.default(W);B.insertAfter(N),N=B}),V.remove(),x.selection.moveCursor(F.elems[M-1]),this.tryChangeActive()}else{var O=C.default(T);if(x.$textElem.equal(V)){var L=(g=x.selection.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0];x.selection.createRangeByElems(L.children[0],L.children[0]),T=x.selection.getSelectionRangeTopNodes(),O=C.default(T),V.append(O)}else O.insertAfter(V);this.delSelectNode(T);var H=(_=O.childNodes())===null||_===void 0?void 0:_.last().getNode();if(H==null)return;H.textContent?x.selection.moveCursor(H):x.selection.moveCursor(H,0),this.tryChangeActive(),h.default(S.EMPTY_P).insertAfter(O);return}k&&(x.selection.collapseRange(),x.selection.restoreSelection())},b.prototype.tryChangeActive=function(){var g,_=this.editor,x=(g=_.selection.getSelectionRangeTopNodes()[0])===null||g===void 0?void 0:g.getNodeName();x==="BLOCKQUOTE"?this.active():this.unActive()},b.prototype.getTopNodeName=function(){var g=this.editor,_=g.selection.getSelectionRangeTopNodes()[0],x=_==null?void 0:_.getNodeName();return x},b.prototype.delSelectNode=function(g){(0,c.default)(g).call(g,function(_){_.remove()})},b}(m.default);r.default=w},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=i(7),h=c.__importDefault(i(3));function m(v){function C(S){var w,E=v.selection.getSelectionContainerElem(),b=v.selection.getSelectionRangeTopNodes()[0];if((b==null?void 0:b.getNodeName())==="BLOCKQUOTE"){if(E.getNodeName()==="BLOCKQUOTE"){var g=(w=E.childNodes())===null||w===void 0?void 0:w.getNode();v.selection.moveCursor(g)}if(E.text()===""){S.preventDefault(),E.remove();var _=h.default(u.EMPTY_P);_.insertAfter(b),v.selection.moveCursor(_.getNode(),0)}b.text()===""&&b.remove()}}v.txt.eventHooks.enterDownEvents.push(C)}r.default=m},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3));function m(v){var C=h.default("<blockquote></blockquote>");return(0,c.default)(v).call(v,function(S){C.append(S.clone(!0))}),C}r.default=m},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(24)),m=u.__importDefault(i(3)),v=i(6),C=function(S){u.__extends(w,S);function w(E){var b,g=this,_=m.default(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
<i class="w-e-icon-paint-brush"></i>
</div>`),x={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,c.default)(b=E.config.colors).call(b,function(k){return{$elem:m.default('<i style="color:'+k+';" class="w-e-icon-paint-brush"></i>'),value:k}}),clickHandler:function(T){g.command(T)}};return g=S.call(this,_,E,x)||this,g}return w.prototype.command=function(E){var b,g=this.editor,_=g.selection.isSelectionEmpty(),x=(b=g.selection.getSelectionContainerElem())===null||b===void 0?void 0:b.elems[0];if(x!=null){var k=(x==null?void 0:x.nodeName.toLowerCase())!=="p",T=x==null?void 0:x.style.backgroundColor,V=v.hexToRgb(E)===T;if(_){if(k&&!V){var I=g.selection.getSelectionRangeTopNodes();g.selection.createRangeByElem(I[0]),g.selection.moveCursor(I[0].elems[0])}g.selection.createEmptyRange()}g.cmd.do("backColor",E),_&&(g.selection.collapseRange(),g.selection.restoreSelection())}},w.prototype.tryChangeActive=function(){},w}(h.default);r.default=C},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(24)),m=u.__importDefault(i(3)),v=function(C){u.__extends(S,C);function S(w){var E,b=this,g=m.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
<i class="w-e-icon-pencil2"></i>
</div>`),_={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,c.default)(E=w.config.colors).call(E,function(x){return{$elem:m.default('<i style="color:'+x+';" class="w-e-icon-pencil2"></i>'),value:x}}),clickHandler:function(k){b.command(k)}};return b=C.call(this,g,w,_)||this,b}return S.prototype.command=function(w){var E,b=this.editor,g=b.selection.isSelectionEmpty(),_=(E=b.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];if(_!=null){var x=b.selection.getSelectionText();if(_.nodeName==="A"&&_.textContent===x){var k=m.default("<span>&#8203;</span>").getNode();_.appendChild(k)}b.cmd.do("foreColor",w),g&&(b.selection.collapseRange(),b.selection.restoreSelection())}},S.prototype.tryChangeActive=function(){},S}(h.default);r.default=v},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(33)),m=c.__importDefault(i(38)),v=c.__importDefault(i(340)),C=c.__importDefault(i(346)),S=function(w){c.__extends(E,w);function E(b){var g=this,_=u.default(`<div class="w-e-menu" data-title="\u89C6\u9891">
<i class="w-e-icon-play"></i>
</div>`);return g=w.call(this,_,b)||this,C.default(b),g}return E.prototype.clickHandler=function(){this.createPanel("")},E.prototype.createPanel=function(b){var g=v.default(this.editor,b),_=new h.default(this,g);_.create()},E.prototype.tryChangeActive=function(){},E}(m.default);r.default=S},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(17));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=i(6),m=u.__importDefault(i(3)),v=u.__importDefault(i(341)),C=i(7);function S(w,E){var b=w.config,g=new v.default(w),_=h.getRandom("input-iframe"),x=h.getRandom("btn-ok"),k=h.getRandom("input-upload"),T=h.getRandom("btn-local-ok");function V(N){w.cmd.do("insertHTML",N+C.EMPTY_P),w.config.onlineVideoCallback(N)}function I(N){var O=w.config.onlineVideoCheck(N);return O===!0?!0:(typeof O=="string"&&w.config.customAlert(O,"error"),!1)}var F=[{title:w.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
<div id="`+T+`" class="w-e-up-btn">
<i class="w-e-icon-upload2"></i>
</div>
<div style="display:none;">
<input id="`+k+`" type="file" accept="video/*"/>
</div>
</div>`,events:[{selector:"#"+T,type:"click",fn:function(){var O=m.default("#"+k),L=O.elems[0];if(L)L.click();else return!0}},{selector:"#"+k,type:"change",fn:function(){var O=m.default("#"+k),L=O.elems[0];if(!L)return!0;var H=L.files;return H.length&&g.uploadVideo(H),!0}}]},{title:w.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
<input
id="`+_+`"
type="text"
class="block"
placeholder="`+w.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+x+`" class="right">
`+w.i18next.t("\u63D2\u5165")+`
</button>
</div>
</div>`,events:[{selector:"#"+x,type:"click",fn:function(){var O,L=m.default("#"+_),H=(0,c.default)(O=L.val()).call(O);if(!!H&&!!I(H))return V(H),!0},bindEnter:!0}]}],M={width:300,height:0,tabs:[]};return window.FileReader&&(b.uploadVideoServer||b.customUploadVideo)&&M.tabs.push(F[0]),b.showLinkVideo&&M.tabs.push(F[1]),M}r.default=S},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(133)),u=l(i(57)),h=l(i(4)),m=l(i(27));(0,d.default)(r,"__esModule",{value:!0});var v=i(2),C=i(6),S=v.__importDefault(i(135)),w=v.__importDefault(i(136)),E=i(7),b=i(6),g=function(){function _(x){this.editor=x}return _.prototype.uploadVideo=function(x){var k=this;if(!!x.length){var T=this.editor,V=T.config,I="validate.",F=function(ae){return T.i18next.t(I+ae)},M=V.uploadVideoServer,N=V.uploadVideoMaxSize,O=N/1024,L=V.uploadVideoName,H=V.uploadVideoParams,W=V.uploadVideoParamsWithUrl,B=V.uploadVideoHeaders,U=V.uploadVideoHooks,A=V.uploadVideoTimeout,$=V.withVideoCredentials,Q=V.customUploadVideo,J=V.uploadVideoAccept,G=[],Y=[];if(C.arrForEach(x,function(pe){var ae=pe.name,he=pe.size/1024/1024;if(!(!ae||!he)){if(!(J instanceof Array)){Y.push("\u3010"+J+"\u3011"+F("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,c.default)(J).call(J,function(R){return R===ae.split(".")[ae.split(".").length-1]})){Y.push("\u3010"+ae+"\u3011"+F("\u4E0D\u662F\u89C6\u9891"));return}if(O<he){Y.push("\u3010"+ae+"\u3011"+F("\u5927\u4E8E")+" "+O+"M");return}G.push(pe)}}),Y.length){V.customAlert(F("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+Y.join(`
`),"warning");return}if(G.length===0){V.customAlert(F("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Q&&typeof Q=="function"){var ce;Q(G,(0,u.default)(ce=this.insertVideo).call(ce,this));return}var le=new FormData;if((0,h.default)(G).call(G,function(pe,ae){var he=L||pe.name;G.length>1&&(he=he+(ae+1)),le.append(he,pe)}),M){var be=M.split("#");M=be[0];var fe=be[1]||"";(0,h.default)(C).call(C,H,function(pe,ae){W&&((0,m.default)(M).call(M,"?")>0?M+="&":M+="?",M=M+pe+"="+ae),le.append(pe,ae)}),fe&&(M+="#"+fe);var se=S.default(M,{timeout:A,formData:le,headers:B,withCredentials:!!$,beforeSend:function(ae){if(U.before)return U.before(ae,T,G)},onTimeout:function(ae){V.customAlert(F("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),U.timeout&&U.timeout(ae,T)},onProgress:function(ae,he){var R=new w.default(T);he.lengthComputable&&(ae=he.loaded/he.total,R.show(ae))},onError:function(ae){V.customAlert(F("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",F("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+F("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+ae.status),U.error&&U.error(ae,T)},onFail:function(ae,he){V.customAlert(F("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",F("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+F("\u8FD4\u56DE\u7ED3\u679C")+": ")+he),U.fail&&U.fail(ae,T,he)},onSuccess:function(ae,he){if(U.customInsert){var R;U.customInsert((0,u.default)(R=k.insertVideo).call(R,k),he,T);return}if(he.errno!="0"){V.customAlert(F("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",F("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+F("\u8FD4\u56DE\u7ED3\u679C")+" errno="+he.errno),U.fail&&U.fail(ae,T,he);return}var j=he.data;k.insertVideo(j.url),U.success&&U.success(ae,T,he)}});typeof se=="string"&&V.customAlert(se,"error")}}},_.prototype.insertVideo=function(x){var k=this.editor,T=k.config,V="validate.",I=function(N,O){return O===void 0&&(O=V),k.i18next.t(O+N)};if(!T.customInsertVideo)b.UA.isFirefox?k.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+x+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):k.cmd.do("insertHTML",'<video src="'+x+'" controls="controls" style="max-width:100%"></video>'+E.EMPTY_P);else{T.customInsertVideo(x);return}var F=document.createElement("video");F.onload=function(){F=null},F.onerror=function(){T.customAlert(I("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+I("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+I("\u89C6\u9891\u94FE\u63A5")+' "'+x+'"\uFF0C'+I("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),F=null},F.onabort=function(){return F=null},F.src=x},_}();r.default=g},function(o,r,i){o.exports=i(343)},function(o,r,i){var l=i(344);o.exports=l},function(o,r,i){i(345);var l=i(9);o.exports=l.Date.now},function(o,r,i){var l=i(5);l({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(347)),h=c.__importDefault(i(349));function m(v){u.default(v),h.default(v)}r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39)),m=c.__importDefault(i(348));function v(S){var w,E=function(x,k){return k===void 0&&(k=""),S.i18next.t(k+x)};function b(_){var x=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(T,V){return V.remove(),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(T,V){return V.attr("width","100%"),V.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(T,V){return V.attr("width","50%"),V.removeAttr("height"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(T,V){return V.attr("width","30%"),V.removeAttr("height"),!0}},{$elem:u.default("<span>"+E("\u91CD\u7F6E")+"</span>"),onClick:function(T,V){return V.removeAttr("width"),V.removeAttr("height"),!0}},{$elem:u.default("<span>"+E("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(T,V){return m.default(V,"left"),!0}},{
<div class="w-e-img-drag-show-size"></div>
<div class="w-e-img-drag-rb"></div>
</div>`);return x.hide(),_.append(x),x}function w(g,_,x){var k=g.getBoundingClientRect(),T=x.getBoundingClientRect(),V=T.width.toFixed(2),I=T.height.toFixed(2);(0,c.default)(_).call(_,".w-e-img-drag-show-size").text(V+"px * "+I+"px"),C(_,(0,u.default)(V),(0,u.default)(I),T.left-k.left,T.top-k.top),_.show()}function E(g){var _=g.$textContainerElem,x,k=S(g,_);function T(F,M){F.on("click",function(N){N.stopPropagation()}),F.on("mousedown",".w-e-img-drag-rb",function(N){if(N.preventDefault(),!x)return;var O=N.clientX,L=N.clientY,H=M.getBoundingClientRect(),W=x.getBoundingClientRect(),B=W.width,U=W.height,A=W.left-H.left,$=W.top-H.top,Q=B/U,J=B,G=U,Y=m.default(document);function ce(){Y.off("mousemove",le),Y.off("mouseup",be)}function le(fe){fe.stopPropagation(),fe.preventDefault(),J=B+(fe.clientX-O),G=U+(fe.clientY-L),J/G!=Q&&(G=J/Q),J=(0,u.default)(J.toFixed(2)),G=(0,u.default)(G.toFixed(2)),(0,c.default)(F).call(F,".w-e-img-drag-show-size").text(J.toFixed(2).replace(".00","")+"px * "+G.toFixed(2).replace(".00","")+"px"),C(F,J,G,A,$)}Y.on("mousemove",le);function be(){x.attr("width",J+""),x.attr("height",G+"");var fe=x.getBoundingClientRect();C(F,J,G,fe.left-H.left,fe.top-H.top),ce()}Y.on("mouseup",be),Y.on("mouseleave",ce)})}function V(F){if(v.UA.isIE())return!1;F&&(x=F,w(_,k,x))}function I(){(0,c.default)(_).call(_,".w-e-img-drag-mask").hide()}return T(k,_),m.default(document).on("click",I),g.beforeDestroy(function(){m.default(document).off("click",I)}),{showDrag:V,hideDrag:I}}r.createShowHideFn=E;function b(g){var _=E(g),x=_.showDrag,k=_.hideDrag;g.txt.eventHooks.imgClickEvents.push(x),g.txt.eventHooks.textScrollEvents.push(k),g.txt.eventHooks.keyupEvents.push(k),g.txt.eventHooks.toolbarClickEvents.push(k),g.txt.eventHooks.menuClickEvents.push(k),g.txt.eventHooks.changeEvents.push(k)}r.default=b},function(o,r,i){o.exports=i(356)},function(o,r,i){var l=i(357);o.exports=l},function(o,r,i){i(358);var l=i(9);o.exports=l.parseFloat},function(o,r,i){var l=i(5),d=i(359);l({global:!0,forced:parseFloat!=d},{parseFloat:d})},function(o,r,i){var l=i(8),d=i(90).trim,c=i(68),u=l.parseFloat,h=1/u(c+"-0")!==-1/0;o.exports=h?function(v){var C=d(String(v)),S=u(C);return S===0&&C.charAt(0)=="-"?-0:S}:u},function(o,r,i){var l=i(20),d=i(361);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-text-container {
overflow: hidden;
}
.w-e-img-drag-mask {
position: absolute;
z-index: 1;
border: 1px dashed #ccc;
box-sizing: border-box;
}
.w-e-img-drag-mask .w-e-img-drag-rb {
position: absolute;
right: -5px;
bottom: -5px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #ccc;
cursor: se-resize;
}
.w-e-img-drag-mask .w-e-img-drag-show-size {
min-width: 110px;
height: 22px;
line-height: 22px;
font-size: 14px;
color: #999;
position: absolute;
left: 0;
top: 0;
background-color: #999;
color: #fff;
border-radius: 2px;
padding: 0 5px;
}
`,""]),o.exports=r},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39));function m(C){var S,w=function(_,x){return x===void 0&&(x=""),C.i18next.t(x+_)};function E(g){var _=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(k,T){return k.selection.createRangeByElem(T),k.selection.restoreSelection(),k.cmd.do("delete"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(k,T){return T.attr("width","30%"),T.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(k,T){return T.attr("width","50%"),T.removeAttr("height"),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(k,T){return T.attr("width","100%"),T.removeAttr("height"),!0}}];_.push({$elem:u.default("<span>"+w("\u91CD\u7F6E")+"</span>"),onClick:function(k,T){return T.removeAttr("width"),T.removeAttr("height"),!0}}),g.attr("data-href")&&_.push({$elem:u.default("<span>"+w("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(k,T){var V=T.attr("data-href");return V&&(V=decodeURIComponent(V),window.open(V,"_target")),!0}}),S=new h.default(C,g,_),S.create()}function b(){S&&(S.remove(),S=null)}return{showImgTooltip:E,hideImgTooltip:b}}r.createShowHideFn=m;function v(C){var S=m(C),w=S.showImgTooltip,E=S.hideImgTooltip;C.txt.eventHooks.imgClickEvents.push(w),C.txt.eventHooks.clickEvents.push(E),C.txt.eventHooks.keyupEvents.push(E),C.txt.eventHooks.toolbarClickEvents.push(E),C.txt.eventHooks.menuClickEvents.push(E),C.txt.eventHooks.textScrollEvents.push(E),C.txt.eventHooks.imgDragBarMouseDownEvents.push(E),C.txt.eventHooks.changeEvents.push(E)}r.default=v},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});function c(u){var h=u.txt,m=u.selection,v=h.eventHooks.keydownEvents;v.push(function(C){var S=m.getSelectionContainerElem(),w=m.getRange();if(!(!w||!S||C.keyCode!==8||!m.isSelectionEmpty())){var E=w.startContainer,b=w.startOffset,g=null;if(b===0)for(;E!==S.elems[0]&&S.elems[0].contains(E)&&E.parentNode&&!g;){if(E.previousSibling){g=E.previousSibling;break}E=E.parentNode}else E.nodeType!==3&&(g=E.childNodes[b-1]);if(!!g){for(var _=g;_.childNodes.length;)_=_.childNodes[_.childNodes.length-1];_ instanceof HTMLElement&&_.tagName==="IMG"&&(_.remove(),C.preventDefault())}}})}r.default=c},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(26)),u=l(i(17));(0,d.default)(r,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),v=i(6),C=h.__importDefault(i(97));function S(w){var E,b=w.config,g=new C.default(w),_=v.getRandom("up-trigger-id"),x=v.getRandom("up-file-id"),k=v.getRandom("input-link-url"),T=v.getRandom("input-link-url-alt"),V=v.getRandom("input-link-url-href"),I=v.getRandom("btn-link"),F="menus.panelMenus.image.",M=function(Q,J){return J===void 0&&(J=F),w.i18next.t(J+Q)};function N($,Q,J){var G=b.linkImgCheck($);return G===!0?!0:(typeof G=="string"&&b.customAlert(G,"error"),!1)}var O=b.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,c.default)(E=b.uploadImgAccept).call(E,function($){return"image/"+$}).join(","),H=function(Q,J,G){return'<div class="'+Q+'" data-title="'+G+`">
<div id="`+_+`" class="w-e-up-btn">
<i class="`+J+`"></i>
</div>
<div style="display:none;">
<input id="`+x+'" type="file" '+O+' accept="'+L+`"/>
</div>
</div>`},W=[{selector:"#"+_,type:"click",fn:function(){var Q=b.uploadImgFromMedia;if(Q&&typeof Q=="function")return Q(),!0;var J=m.default("#"+x),G=J.elems[0];if(G)G.click();else return!0}},{selector:"#"+x,type:"change",fn:function(){var Q=m.default("#"+x),J=Q.elems[0];if(!J)return!0;var G=J.files;return G!=null&&G.length&&g.uploadImg(G),J&&(J.value=""),!0}}],B=[`<input
id="`+k+`"
type="text"
class="block"
placeholder="`+M("\u56FE\u7247\u5730\u5740")+'"/>'];b.showLinkImgAlt&&B.push(`
<input
id="`+T+`"
type="text"
class="block"
placeholder="`+M("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),b.showLinkImgHref&&B.push(`
<input
id="`+V+`"
type="text"
class="block"
placeholder="`+M("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var U=[{title:M("\u4E0A\u4F20\u56FE\u7247"),tpl:H("w-e-up-img-container","w-e-icon-upload2",""),events:W},{title:M("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
`+B.join("")+`
<div class="w-e-button-container">
<button type="button" id="`+I+'" class="right">'+M("\u63D2\u5165","")+`</button>
</div>
</div>`,events:[{selector:"#"+I,type:"click",fn:function(){var Q,J=m.default("#"+k),G=(0,u.default)(Q=J.val()).call(Q);if(!!G){var Y;if(b.showLinkImgAlt){var ce;Y=(0,u.default)(ce=m.default("#"+T).val()).call(ce)}var le;if(b.showLinkImgHref){var be;le=(0,u.default)(be=m.default("#"+V).val()).call(be)}if(!!N(G))return g.insertImg(G,Y,le),!0}},bindEnter:!0}]}],A={width:300,height:0,tabs:[],onlyUploadConf:{$elem:m.default(H("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:W}};return window.FileReader&&(b.uploadImgShowBase64||b.uploadImgServer||b.customUploadImg||b.uploadImgFromMedia)&&A.tabs.push(U[0]),b.showLinkImg&&(A.tabs.push(U[1]),A.onlyUploadConf=void 0),A}r.default=S},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=u.__importDefault(i(24)),v=u.__importDefault(i(366)),C=function(S){u.__extends(w,S);function w(E){var b=this,g=h.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
<i class="w-e-icon-indent-increase"></i>
</div>`),_={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:h.default(`<p>
<i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
`+E.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
<p>`),value:"increase"},{$elem:h.default(`<p>
<i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
`+E.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
<p>`),value:"decrease"}],clickHandler:function(k){b.command(k)}};return b=S.call(this,g,E,_)||this,b}return w.prototype.command=function(E){var b=this.editor,g=b.selection.getSelectionContainerElem();if(g&&b.$textElem.equal(g)){var _=b.selection.getSelectionRangeTopNodes();_.length>0&&(0,c.default)(_).call(_,function(x){v.default(h.default(x),E,b)})}else g&&g.length>0&&(0,c.default)(g).call(g,function(x){v.default(h.default(x),E,b)});b.selection.restoreSelection(),this.tryChangeActive()},w.prototype.tryChangeActive=function(){var E=this.editor,b=E.selection.getSelectionStartElem(),g=h.default(b).getNodeTop(E);g.length<=0||(g.elems[0].style.paddingLeft!=""?this.active():this.unActive())},w}(m.default);r.default=C},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(45)),u=l(i(17));(0,d.default)(r,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(367)),v=h.__importDefault(i(368)),C=/^(\d+)(\w+)$/,S=/^(\d+)%$/;function w(b){var g=b.config.indentation;if(typeof g=="string"){if(C.test(g)){var _,x=(0,c.default)(_=(0,u.default)(g).call(g).match(C)).call(_,1,3),k=x[0],T=x[1];return{value:Number(k),unit:T}}else if(S.test(g))return{value:Number((0,u.default)(g).call(g).match(S)[1]),unit:"%"}}else if(g.value!==void 0&&g.unit)return g;return{value:2,unit:"em"}}function E(b,g,_){var x=b.getNodeTop(_),k=/^(P|H[0-9]*)$/;k.test(x.getNodeName())&&(g==="increase"?m.default(x,w(_)):g==="decrease"&&v.default(x,w(_)))}r.default=E},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(45));(0,d.default)(r,"__esModule",{value:!0});function u(h,m){var v=h.elems[0];if(v.style.paddingLeft==="")h.css("padding-left",m.value+m.unit);else{var C=v.style.paddingLeft,S=(0,c.default)(C).call(C,0,C.length-m.unit.length),w=Number(S)+m.value;h.css("padding-left",""+w+m.unit)}}r.default=u},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(45));(0,d.default)(r,"__esModule",{value:!0});function u(h,m){var v=h.elems[0];if(v.style.paddingLeft!==""){var C=v.style.paddingLeft,S=(0,c.default)(C).call(C,0,C.length-m.unit.length),w=Number(S)-m.value;w>0?h.css("padding-left",""+w+m.unit):h.css("padding-left","")}}r.default=u},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(38)),m=c.__importDefault(i(33)),v=c.__importDefault(i(370)),C=function(S){c.__extends(w,S);function w(E){var b=this,g=u.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
<i class="w-e-icon-happy"></i>
</div>`);return b=S.call(this,g,E)||this,b}return w.prototype.createPanel=function(){var E=v.default(this.editor),b=new m.default(this,E);b.create()},w.prototype.clickHandler=function(){this.createPanel()},w.prototype.tryChangeActive=function(){},w}(h.default);r.default=C},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(26)),u=l(i(70)),h=l(i(17));(0,d.default)(r,"__esModule",{value:!0});var m=i(2),v=m.__importDefault(i(3));function C(S){var w=S.config.emotions;function E(_){var x=[];if(_.type=="image"){var k;x=(0,c.default)(k=_.content).call(k,function(V){return typeof V=="string"?"":'<span title="'+V.alt+`">
<img class="eleImg" data-emoji="`+V.alt+'" style src="'+V.src+'" alt="['+V.alt+`]">
</span>`}),x=(0,u.default)(x).call(x,function(V){return V!==""})}else{var T;x=(0,c.default)(T=_.content).call(T,function(V){return'<span class="eleImg" title="'+V+'">'+V+"</span>"})}return x.join("").replace(/&nbsp;/g,"")}var b=(0,c.default)(w).call(w,function(_){return{title:S.i18next.t("menus.panelMenus.emoticon."+_.title),tpl:"<div>"+E(_)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(k){var T=v.default(k.target),V=T.getNodeName(),I;if(V==="IMG"){var F;I=(0,h.default)(F=T.parent().html()).call(F)}else I="<span>"+T.html()+"</span>";return S.cmd.do("insertHTML",I),!0}}]}}),g={width:300,height:230,tabs:b};return g}r.default=C},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createListHandle=r.ClassType=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(372)),m=c.__importDefault(i(374)),v=c.__importDefault(i(375)),C=c.__importDefault(i(376)),S=c.__importDefault(i(377)),w;(function(_){_.Wrap="WrapListHandle",_.Join="JoinListHandle",_.StartJoin="StartJoinListHandle",_.EndJoin="EndJoinListHandle",_.Other="OtherListHandle"})(w=r.ClassType||(r.ClassType={}));var E={WrapListHandle:h.default,JoinListHandle:m.default,StartJoinListHandle:v.default,EndJoinListHandle:C.default,OtherListHandle:S.default};function b(_,x,k){if(_===w.Other&&k===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return _!==w.Other?new E[_](x):new E[_](x,k)}r.createListHandle=b;var g=function(){function _(x){this.handle=x,this.handle.exec()}return _.prototype.getSelectionRangeElem=function(){return u.default(this.handle.selectionRangeElem.get())},_}();r.default=g},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(58),v=i(47),C=function(S){u.__extends(w,S);function w(E){return S.call(this,E)||this}return w.prototype.exec=function(){var E=this.options,b=E.listType,g=E.listTarget,_=E.$selectionElem,x=E.$startElem,k=E.$endElem,T,V=[],I=_==null?void 0:_.getNodeName(),F=x.prior,M=k.prior;if(!x.prior&&!k.prior||!(F!=null&&F.prev().length)&&!(M!=null&&M.next().length)){var N;(0,c.default)(N=_==null?void 0:_.children()).call(N,function(A){V.push(h.default(A))}),I===b?T=v.createElementFragment(V,v.createDocumentFragment(),"p"):(T=v.createElement(g),(0,c.default)(V).call(V,function(A){T.appendChild(A.elems[0])})),this.selectionRangeElem.set(T),v.insertBefore(_,T,_.elems[0]),_.remove()}else{for(var O=F;O.length;)V.push(O),M!=null&&M.equal(O)?O=h.default(void 0):O=O.next();var L=F.prev(),H=M.next();if(I===b?T=v.createElementFragment(V,v.createDocumentFragment(),"p"):(T=v.createElement(g),(0,c.default)(V).call(V,function(A){T.append(A.elems[0])})),L.length&&H.length){for(var W=[];H.length;)W.push(H),H=H.next();var B=v.createElement(I);(0,c.default)(W).call(W,function(A){B.append(A.elems[0])}),h.default(B).insertAfter(_),this.selectionRangeElem.set(T);var U=_.next();U.length?v.insertBefore(_,T,U.elems[0]):_.parent().elems[0].append(T)}else if(!L.length)this.selectionRangeElem.set(T),v.insertBefore(_,T,_.elems[0]);else{this.selectionRangeElem.set(T);var U=_.next();U.length?v.insertBefore(_,T,U.elems[0]):_.parent().elems[0].append(T)}}},w}(m.ListHandle);r.default=C},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=function(){function h(){this._element=null}return h.prototype.set=function(m){if(m instanceof DocumentFragment){var v,C=[];(0,c.default)(v=m.childNodes).call(v,function(S){C.push(S)}),m=C}this._element=m},h.prototype.get=function(){return this._element},h.prototype.clear=function(){this._element=null},h}();r.default=u},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(58),v=i(47),C=function(S){u.__extends(w,S);function w(E){return S.call(this,E)||this}return w.prototype.exec=function(){var E,b,g,_,x,k,T,V=this.options,I=V.editor,F=V.listType,M=V.listTarget,N=V.$startElem,O=V.$endElem,L,H=I.selection.getSelectionRangeTopNodes(),W=N==null?void 0:N.getNodeName(),B=O==nul
<i class="w-e-icon-row-height"></i>
</div>`),x=new C.default(b,b.config.lineHeights),k={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:x.getItemList(),clickHandler:function(V){b.selection.saveRange(),g.command(V)}};return g=w.call(this,_,b,k)||this,g}return E.prototype.command=function(b){var g=this.editor;g.selection.restoreSelection();var _=v.default(g.selection.getSelectionContainerElem());if(!!_.elems.length){if(_&&g.$textElem.equal(_)){for(var x=!1,k=v.default(g.selection.getSelectionStartElem()).elems[0],T=v.default(g.selection.getSelectionEndElem()).elems[0],V=this.getDom(k),I=this.getDom(T),F=_.elems[0].children,M=0;M<F.length;M++){var N=F[M];if(v.default(N).getNodeName()==="P"&&(N===V&&(x=!0),x&&(v.default(N).css("line-height",b),N===I))){x=!1;return}}g.selection.createRangeByElems(k,T);return}var O=_.elems[0],L=this.getDom(O);v.default(L).getNodeName()==="P"&&(v.default(L).css("line-height",b),g.selection.createRangeByElems(L,L))}},E.prototype.getDom=function(b){var g=v.default(b).elems[0];if(!g.parentNode)return g;function _(x,k){var T=v.default(x.parentNode);return k.$textElem.equal(T)?x:_(T.elems[0],k)}return g=_(g,this.editor),g},E.prototype.styleProcessing=function(b){var g="";return(0,c.default)(b).call(b,function(_){_!==""&&(0,u.default)(_).call(_,"line-height")===-1&&(g=g+_+";")}),g},E.prototype.setRange=function(b,g){var _=this.editor,x=window.getSelection?window.getSelection():document.getSelection();x==null||x.removeAllRanges();var k=document.createRange(),T=b,V=g;k.setStart(T,0),k.setEnd(V,1),x==null||x.addRange(k),_.selection.saveRange(),x==null||x.removeAllRanges(),_.selection.restoreSelection()},E.prototype.tryChangeActive=function(){var b=this.editor,g=b.selection.getSelectionContainerElem();if(!(g&&b.$textElem.equal(g))){var _=v.default(b.selection.getSelectionStartElem());if(_.length!==0){_=this.getDom(_.elems[0]);var x=_.getAttribute("style")?_.getAttribute("style"):"";x&&(0,u.default)(x).call(x,"line-height")!==-1?this.active():this.unActive()}}},E}(m.default);r.default=S},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=function(){function v(C,S){var w=this;this.itemList=[{$elem:h.default("<span>"+C.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,c.default)(S).call(S,function(E){w.itemList.push({$elem:h.default("<span>"+E+"</span>"),value:E})})}return v.prototype.getItemList=function(){return this.itemList},v}();r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(23)),m=function(v){c.__extends(C,v);function C(S){var w=this,E=u.default(`<div class="w-e-menu" data-title="\u64A4\u9500">
<i class="w-e-icon-undo"></i>
</div>`);return w=v.call(this,E,S)||this,w}return C.prototype.clickHandler=function(){var S=this.editor;S.history.revoke();var w=S.$textElem.children();if(!!(w!=null&&w.length)){var E=w.last();S.selection.createRangeByElem(E,!1,!0),S.selection.restoreSelection()}},C.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},C}(h.default);r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(23)),m=function(v){c.__extends(C,v);function C(S){var w=this,E=u.default(`<div class="w-e-menu" data-title="\u6062\u590D">
<i class="w-e-icon-redo"></i>
</div>`);return w=v.call(this,E,S)||this,w}return C.prototype.clickHandler=function(){var S=this.editor;S.history.restore();var w=S.$textElem.children();if(!!(w!=null&&w.length)){var E=w.last();S.selection.createRangeByElem(E,!1,!0),S.selection.restoreSelection()}},C.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},C}(h.default);r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(38)),h=c.__importDefault(i(3)),m=c.__importDefault(i(383)),v=c.__importDefault(i(33)),C=c.__importDefault(i(392)),S=function(w){c.__extends(E,w);function E(b){var g=this,_=h.default('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');return g=w.call(this,_,b)||this,C.default(b),g}return E.prototype.clickHandler=function(){this.createPanel()},E.prototype.createPanel=function(){var b=m.default(this.editor),g=new v.default(this,b);g.create()},E.prototype.tryChangeActive=function(){},E}(u.default);r.default=S},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(384));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=i(6),m=u.__importDefault(i(3));i(389);var v=u.__importDefault(i(391));function C(w){return w>0&&(0,c.default)(w)}function S(w){var E=new v.default(w),b=h.getRandom("w-col-id"),g=h.getRandom("w-row-id"),_=h.getRandom("btn-link"),x="menus.panelMenus.table.",k=function(F){return w.i18next.t(F)},T=[{title:k(x+"\u63D2\u5165\u8868\u683C"),tpl:`<div>
<div class="w-e-table">
<span>`+k("\u521B\u5EFA")+`</span>
<input id="`+g+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+k(x+"\u884C")+`</span>
<input id="`+b+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+(k(x+"\u5217")+k(x+"\u7684")+k(x+"\u8868\u683C"))+`</span>
</div>
<div class="w-e-button-container">
<button type="button" id="`+_+'" class="right">'+k("\u63D2\u5165")+`</button>
</div>
</div>`,events:[{selector:"#"+_,type:"click",fn:function(){var F=Number(m.default("#"+b).val()),M=Number(m.default("#"+g).val());return C(M)&&C(F)?(E.createAction(M,F),!0):(w.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],V={width:330,height:0,tabs:[]};return V.tabs.push(T[0]),V}r.default=S},function(o,r,i){o.exports=i(385)},function(o,r,i){var l=i(386);o.exports=l},function(o,r,i){i(387);var l=i(9);o.exports=l.Number.isInteger},function(o,r,i){var l=i(5),d=i(388);l({target:"Number",stat:!0},{isInteger:d})},function(o,r,i){var l=i(13),d=Math.floor;o.exports=function(u){return!l(u)&&isFinite(u)&&d(u)===u}},function(o,r,i){var l=i(20),d=i(390);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-table {
display: flex;
}
.w-e-table .w-e-table-input {
width: 40px;
text-align: center!important;
margin: 0 5px;
}
`,""]),o.exports=r},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=i(7),h=c.__importDefault(i(3)),m=function(){function v(C){this.editor=C}return v.prototype.createAction=function(C,S){var w=this.editor,E=h.default(w.selection.getSelectionContainerElem()),b=h.default(E.elems[0]).parentUntilEditor("UL",w),g=h.default(E.elems[0]).parentUntilEditor("OL",w);if(!(b||g)){var _=this.createTableHtml(C,S);w.cmd.do("insertHTML",_)}},v.prototype.createTableHtml=function(C,S){for(var w="",E="",b=0;b<C;b++){E="";for(var g=0;g<S;g++)b===0?E=E+"<th></th>":E=E+"<td></td>";w=w+"<tr>"+E+"</tr>"}var _='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+w+("</tbody></table>"+u.EMPTY_P);return _},v}();r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(393)),h=i(400);function m(v){u.default(v),h.bindEventKeyboardEvent(v),h.bindClickEvent(v)}r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39)),m=c.__importDefault(i(394)),v=c.__importDefault(i(399)),C=i(7);function S(g){var _;function x(T){var V=new v.default(g),I="menus.panelMenus.table.",F=function(O,L){return L===void 0&&(L=I),g.i18next.t(L+O)},M=[{$elem:u.default("<span>"+F("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function(O,L){return O.selection.createRangeByElem(L),O.selection.restoreSelection(),O.cmd.do("insertHTML",C.EMPTY_P),!0}},{$elem:u.default("<span>"+F("\u6DFB\u52A0\u884C")+"</span>"),onClick:function(O,L){var H=w(O);if(H)return!0;var W=u.default(O.selection.getSelectionStartElem()),B=V.getRowNode(W.elems[0]);if(!B)return!0;var U=Number(V.getCurrentRowIndex(L.elems[0],B)),A=V.getTableHtml(L.elems[0]),$=V.getTableHtml(m.default.ProcessingRow(u.default(A),U).elems[0]);return $=b(L,$),O.selection.createRangeByElem(L),O.selection.restoreSelection(),O.cmd.do("insertHTML",$),!0}},{$elem:u.default("<span>"+F("\u5220\u9664\u884C")+"</span>"),onClick:function(O,L){var H=w(O);if(H)return!0;var W=u.default(O.selection.getSelectionStartElem()),B=V.getRowNode(W.elems[0]);if(!B)return!0;var U=Number(V.getCurrentRowIndex(L.elems[0],B)),A=V.getTableHtml(L.elems[0]),$=m.default.DeleteRow(u.default(A),U).elems[0].children[0].children.length,Q="";return O.selection.createRangeByElem(L),O.selection.restoreSelection(),$===0?Q=C.EMPTY_P:Q=V.getTableHtml(m.default.DeleteRow(u.default(A),U).elems[0]),Q=b(L,Q),O.cmd.do("insertHTML",Q),!0}},{$elem:u.default("<span>"+F("\u6DFB\u52A0\u5217")+"</span>"),onClick:function(O,L){var H=w(O);if(H)return!0;var W=u.default(O.selection.getSelectionStartElem()),B=V.getCurrentColIndex(W.elems[0]),U=V.getTableHtml(L.elems[0]),A=V.getTableHtml(m.default.ProcessingCol(u.default(U),B).elems[0]);return A=b(L,A),O.selection.createRangeByElem(L),O.selection.restoreSelection(),O.cmd.do("insertHTML",A),!0}},{$elem:u.default("<span>"+F("\u5220\u9664\u5217")+"</span>"),onClick:function(O,L){var H=w(O);if(H)return!0;var W=u.default(O.selection.getSelectionStartElem()),B=V.getCurrentColIndex(W.elems[0]),U=V.getTableHtml(L.elems[0]),A=m.default.DeleteCol(u.default(U),B),$=A.elems[0].children[0].children[0].children.length,Q="";return O.selection.createRangeByElem(L),O.selection.restoreSelection(),$===0?Q=C.EMPTY_P:Q=V.getTableHtml(A.elems[0]),Q=b(L,Q),O.cmd.do("insertHTML",Q),!0}},{$elem:u.default("<span>"+F("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function(O,L){var H=w(O);if(H)return!0;var W=u.default(O.selection.getSelectionStartElem()),B=V.getRowNode(W.elems[0]);if(!B)return!0;var U=Number(V.getCurrentRowIndex(L.elems[0],B));U!==0&&(U=0);var A=V.getTableHtml(L.elems[0]),$=V.getTableHtml(m.default.setTheHeader(u.default(A),U,"th").elems[0]);return $=b(L,$),O.selection.createRangeByElem(L),O.selection.restoreSelection(),O.cmd.do("insertHTML",$),!0}},{$elem:u.default("<span>"+F("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function(O,L){var H=u.default(O.selection.getSelectionStartElem()),W=V.getRowNode(H.elems[0]);if(!W)return!0;var
`).replace(/<br>/g,""))}),V}function T(V){var I,F=V.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!F||!F.length)return V;for(var M=(0,c.default)(I=v.deepClone(F)).call(I,function(O){return O=O.replace(/<span\sclass="hljs[^>]+>/,""),O.replace(/<\/span>/,"")}),N=0;N<F.length;N++)V=V.replace(F[N],M[N]);return T(V)}}r.formatCodeHtml=b;var g=function(_){u.__extends(x,_);function x(k){var T=this,V=m.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return T=_.call(this,V,k)||this,E.default(k),T}return x.prototype.insertLineCode=function(k){var T=this.editor,V=m.default("<code>"+k+"</code>");T.cmd.do("insertElem",V),T.selection.createRangeByElem(V,!1),T.selection.restoreSelection()},x.prototype.clickHandler=function(){var k=this.editor,T=k.selection.getSelectionText();this.isActive||(k.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(T))},x.prototype.createPanel=function(k,T){var V=C.default(this.editor,k,T),I=new w.default(this,V);I.create()},x.prototype.tryChangeActive=function(){var k=this.editor;S.default(k)?this.active():this.unActive()},x}(h.default);r.default=g},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=i(6),m=u.__importDefault(i(3)),v=u.__importDefault(i(139)),C=i(7);function S(w,E,b){var g,_=h.getRandom("input-iframe"),x=h.getRandom("select"),k=h.getRandom("btn-ok");function T(M,N){var O,L=v.default(w);L&&V();var H=(O=w.selection.getSelectionStartElem())===null||O===void 0?void 0:O.elems[0].innerHTML;H&&w.cmd.do("insertHTML",C.EMPTY_P);var W=N.replace(/</g,"&lt;").replace(/>/g,"&gt;");w.highlight&&(W=w.highlight.highlightAuto(W).value),w.cmd.do("insertHTML",'<pre><code class="'+M+'">'+W+"</code></pre>");var B=w.selection.getSelectionStartElem(),U=B==null?void 0:B.getNodeTop(w);(U==null?void 0:U.getNextSibling().elems.length)===0&&m.default(C.EMPTY_P).insertAfter(U)}function V(){if(!!v.default(w)){var M=w.selection.getSelectionStartElem(),N=M==null?void 0:M.getNodeTop(w);!N||(w.selection.createRangeByElem(N),w.selection.restoreSelection())}}var I=function(N){return w.i18next.t(N)},F={width:500,height:0,tabs:[{title:I("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
<select name="" id="`+x+`">
`+(0,c.default)(g=w.config.languageType).call(g,function(M){return"<option "+(b==M?"selected":"")+' value ="'+M+'">'+M+"</option>"})+`
</select>
<textarea id="`+_+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+E.replace(/&quot;/g,'"')+`</textarea>
<div class="w-e-button-container">
<button type="button" id="`+k+'" class="right">'+(v.default(w)?I("\u4FEE\u6539"):I("\u63D2\u5165"))+`</button>
</div>
</div>`,events:[{selector:"#"+k,type:"click",fn:function(){var N=document.getElementById(_),O=m.default("#"+x),L=O.val(),H=N.value;if(!!H)return v.default(w)?!1:(T(L,H),!0)}}]}]};return F}r.default=S},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(404)),h=c.__importDefault(i(405));function m(v){u.default(v),h.default(v)}r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39));function m(C){var S;function w(b){var g="menus.panelMenus.code.",_=function(T,V){return V===void 0&&(V=g),C.i18next.t(V+T)},x=[{$elem:u.default("<span>"+_("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(T,V){return V.remove(),!0}}];S=new h.default(C,b,x),S.create()}function E(){S&&(S.remove(),S=null)}return{showCodeTooltip:w,hideCodeTooltip:E}}r.createShowHideFn=m;function v(C){var S=m(C),w=S.showCodeTooltip,E=S.hideCodeTooltip;C.txt.eventHooks.codeClickEvents.push(w),C.txt.eventHooks.clickEvents.push(E),C.txt.eventHooks.toolbarClickEvents.push(E),C.txt.eventHooks.menuClickEvents.push(E),C.txt.eventHooks.textScrollEvents.push(E)}r.default=v},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=i(7),h=c.__importDefault(i(3));function m(v){var C=v.$textElem,S=v.selection,w=v.txt,E=w.eventHooks.keydownEvents;E.push(function(b){var g;if(b.keyCode===40){var _=S.getSelectionContainerElem(),x=(g=C.children())===null||g===void 0?void 0:g.last();if((_==null?void 0:_.elems[0].tagName)==="XMP"&&(x==null?void 0:x.elems[0].tagName)==="PRE"){var k=h.default(u.EMPTY_P);C.append(k)}}}),E.push(function(b){v.selection.saveRange();var g=S.getSelectionContainerElem();if(g){var _=g.getNodeTop(v),x=_==null?void 0:_.prev(),k=_==null?void 0:_.getNextSibling();if(x.length&&(x==null?void 0:x.getNodeName())==="PRE"&&k.length===0&&S.getCursorPos()===0&&b.keyCode===8){var T=h.default(u.EMPTY_P);C.append(T)}}})}r.default=m},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=c.__importDefault(i(407)),v=i(6),C=i(7),S=function(w){c.__extends(E,w);function E(b){var g=this,_=h.default('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');return g=w.call(this,_,b)||this,m.default(b),g}return E.prototype.clickHandler=function(){var b=this.editor,g=b.selection.getRange(),_=b.selection.getSelectionContainerElem();if(!!(_!=null&&_.length)){var x=h.default(_.elems[0]),k=x.parentUntil("TABLE",_.elems[0]),T=x.children();x.getNodeName()!=="CODE"&&(k&&h.default(k.elems[0]).getNodeName()==="TABLE"||T&&T.length!==0&&h.default(T.elems[0]).getNodeName()==="IMG"&&!(g!=null&&g.collapsed)||this.createSplitLine())}},E.prototype.createSplitLine=function(){var b="<hr/>"+C.EMPTY_P;v.UA.isFirefox&&(b="<hr/><p></p>"),this.editor.cmd.do("insertHTML",b)},E.prototype.tryChangeActive=function(){},E}(u.default);r.default=S},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(408));function h(m){u.default(m)}r.default=h},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39));function m(C){var S;function w(b){var g=[{$elem:u.default("<span>"+C.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),onClick:function(x,k){return x.selection.createRangeByElem(k),x.selection.restoreSelection(),x.cmd.do("delete"),!0}}];S=new h.default(C,b,g),S.create()}function E(){S&&(S.remove(),S=null)}return{showSplitLineTooltip:w,hideSplitLineTooltip:E}}function v(C){var S=m(C),w=S.showSplitLineTooltip,E=S.hideSplitLineTooltip;C.txt.eventHooks.splitLineEvents.push(w),C.txt.eventHooks.clickEvents.push(E),C.txt.eventHooks.keyupEvents.push(E),C.txt.eventHooks.toolbarClickEvents.push(E),C.txt.eventHooks.menuClickEvents.push(E),C.txt.eventHooks.textScrollEvents.push(E)}r.default=v},function(o,r,i){var l=i(0),
<i class="w-e-icon-checkbox-checked"></i>
</div>`);return _=E.call(this,x,g)||this,C.default(g),_}return b.prototype.clickHandler=function(){var g=this.editor;v.isAllTodo(g)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},b.prototype.tryChangeActive=function(){v.isAllTodo(this.editor)?this.active():this.unActive()},b.prototype.setTodo=function(){var g=this.editor,_=g.selection.getSelectionRangeTopNodes();(0,c.default)(_).call(_,function(x){var k,T=x==null?void 0:x.getNodeName();if(T==="P"){var V=S.default(x),I=V.getTodo(),F=(k=I.children())===null||k===void 0?void 0:k.getNode();I.insertAfter(x),g.selection.moveCursor(F),x.remove()}}),this.tryChangeActive()},b.prototype.cancelTodo=function(){var g=this.editor,_=g.selection.getSelectionRangeTopNodes();(0,c.default)(_).call(_,function(x){var k,T,V,I=(T=(k=x.childNodes())===null||k===void 0?void 0:k.childNodes())===null||T===void 0?void 0:T.clone(!0),F=h.default("<p></p>");F.append(I),F.insertAfter(x),(V=F.childNodes())===null||V===void 0||V.get(0).remove(),g.selection.moveCursor(F.getNode()),x.remove()})},b}(m.default);r.default=w},function(o,r,i){o.exports=i(411)},function(o,r,i){var l=i(412);o.exports=l},function(o,r,i){var l=i(413),d=Array.prototype;o.exports=function(c){var u=c.every;return c===d||c instanceof Array&&u===d.every?l:u}},function(o,r,i){i(414);var l=i(15);o.exports=l("Array").every},function(o,r,i){var l=i(5),d=i(32).every,c=i(67),u=i(22),h=c("every"),m=u("every");l({target:"Array",proto:!0,forced:!h||!m},{every:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(98),v=u.__importDefault(i(140)),C=i(98),S=i(7);function w(E){function b(k){var T,V;if(m.isAllTodo(E)){k.preventDefault();var I=E.selection,F=I.getSelectionRangeTopNodes()[0],M=(T=F.childNodes())===null||T===void 0?void 0:T.get(0),N=(V=window.getSelection())===null||V===void 0?void 0:V.anchorNode,O=I.getRange();if(!(O!=null&&O.collapsed)){var L=O==null?void 0:O.commonAncestorContainer.childNodes,H=O==null?void 0:O.startContainer,W=O==null?void 0:O.endContainer,B=O==null?void 0:O.startOffset,U=O==null?void 0:O.endOffset,A=0,$=0,Q=[];L==null||(0,c.default)(L).call(L,function(ae,he){ae.contains(H)&&(A=he),ae.contains(W)&&($=he)}),$-A>1&&(L==null||(0,c.default)(L).call(L,function(ae,he){he<=A||he>=$||Q.push(ae)}),(0,c.default)(Q).call(Q,function(ae){ae.remove()})),C.dealTextNode(H,B),C.dealTextNode(W,U,!1),E.selection.moveCursor(W,0)}if(F.text()===""){var J=h.default(S.EMPTY_P);J.insertAfter(F),I.moveCursor(J.getNode()),F.remove();return}var G=I.getCursorPos(),Y=m.getCursorNextNode(M==null?void 0:M.getNode(),N,G),ce=v.default(h.default(Y)),le=ce.getInputContainer(),be=le.parent().getNode(),fe=ce.getTodo(),se=le.getNode().nextSibling;if((M==null?void 0:M.text())===""&&(M==null||M.append(h.default("<br>"))),fe.insertAfter(F),!se||(se==null?void 0:se.textContent)===""){if((se==null?void 0:se.nodeName)!=="BR"){var pe=h.default("<br>");pe.insertAfter(le)}I.moveCursor(be,1)}else I.moveCursor(be)}}function g(k){var T,V;if(m.isAllTodo(E)){var I=E.selection,F=I.getSelectionRangeTopNodes()[0],M=(T=F.childNodes())===null||T===void 0?void 0:T.getNode(),N=h.default("<p></p>"),O=N.getNode(),L=(V=window.getSelection())===null||V===void 0?void 0:V.anchorNode,H=I.getCursorPos(),W=L.previousSibling;if(F.text()===""){k.preventDefault();var B=h.default(S.EMPTY_P);B.insertAfter(F),F.remove(),I.moveCursor(B.getNode(),0);return}if((W==null?void 0:W.nodeName)==="SPAN"&&W.childNodes[0].nodeName==="INPUT"&&H===0){var U;k.preventDefault(),M==null||(0,c.default)(U=M.childNodes).call(U,function(A,$){$!==0&&O.appendChild(A.cloneNode(!0))}),N.insertAfter(F),F.remove()}}}function _(){var k=E.selection,T=k.getSelectionRangeTopNodes()[0];T&&C.isTodo(T)&&T.text()===""&&(h.default(S.EMPTY_P).insertAfter(T),T.remove())}function x(k){k&&k.target instanceof HTMLInputElement&&k.target.type==="checkbox"&&(k.target.checked?k.target.setAttribute("checked","true"):k.target.removeAttribute("checked"))}E.txt.eventH
<i class="`+m+`"></i>
</div>`);g.on("click",function(_){var x,k=(0,c.default)(x=h.default(_.currentTarget)).call(x,"i");k.hasClass(m)?(g.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),r.setFullScreen(E)):(g.attr("data-title","\u5168\u5C4F"),r.setUnFullScreen(E))}),b.append(g)}};r.default=S},function(o,r,i){var l=i(20),d=i(422);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-full-screen-editor {
position: fixed;
width: 100%!important;
height: 100%!important;
left: 0;
top: 0;
}
`,""]),o.exports=r},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(r,"__esModule",{value:!0});var u=function(m,v){var C,S=m.isEnable?m.$textElem:(0,c.default)(C=m.$textContainerElem).call(C,".w-e-content-mantle"),w=(0,c.default)(S).call(S,"[id='"+v+"']"),E=w.getOffsetData().top;S.scrollTop(E)};r.default=u},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(129)),h={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},m=function(){function v(){this.tier=h,this.baseZIndex=u.default.zIndex}return v.prototype.get=function(C){return C&&this.tier[C]?this.baseZIndex+this.tier[C]:this.baseZIndex},v.prototype.init=function(C){this.baseZIndex==u.default.zIndex&&(this.baseZIndex=C.config.zIndex)},v}();r.default=m},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(70)),u=l(i(4));(0,d.default)(r,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(426)),v=i(6),C=i(7);function S(E,b){return(0,c.default)(E).call(E,function(g){var _=g.type,x=g.target,k=g.attributeName;return _!="attributes"||_=="attributes"&&(k=="contenteditable"||x!=b)})}var w=function(E){h.__extends(b,E);function b(g){var _=E.call(this,function(x,k){var T;if(x=S(x,k.target),(T=_.data).push.apply(T,x),g.isCompatibleMode)_.asyncSave();else if(!g.isComposing)return _.asyncSave()})||this;return _.editor=g,_.data=[],_.asyncSave=C.EMPTY_FN,_}return b.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},b.prototype.emit=function(){var g;(0,u.default)(g=this.editor.txt.eventHooks.changeEvents).call(g,function(_){return _()})},b.prototype.observe=function(){var g=this;E.prototype.observe.call(this,this.editor.$textElem.elems[0]);var _=this.editor.config.onchangeTimeout;this.asyncSave=v.debounce(function(){g.save()},_),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){g.asyncSave()})},b}(m.default);r.default=w},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function u(h,m){var v=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(C){h(C,v)},this.observer=new MutationObserver(this.callback),m&&(this.options=m)}return(0,d.default)(u.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),u.prototype.observe=function(h){this.node instanceof Node||(this.node=h,this.connect())},u.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("\u8FD8\u672A\u521D\u59CB\u5316\u7ED1\u5B9A\uFF0C\u8BF7\u60A8\u5148\u7ED1\u5B9A\u6709\u6548\u7684 Node \u8282\u70B9")},u.prototype.disconnect=function(){var h=this.observer.takeRecords();h.length&&this.callback(h),this.observer.disconnect()},u}();r.default=c},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(428)),h=c.__importDefault(i(435)),m=c.__importDefault(i(436)),v=function(){function C(S){this.editor=S,this.content=new u.default(S),this.scroll=new h.default(S),this.range=new m.default(S)}return(0,d.default)(C.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),C.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},C.prototype.save=function(S){S.length&&(this.content.save(S),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},C.prototype.revoke=function(){this.editor.change.disconnect();var S=this.content.revoke();S&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),S&&this.editor.change.emit()},C.prototype.restore=function(){this.editor.change.disconnect();var S=this.content.restore();S&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),S&&this.editor.change.emit()},C}();r.default=v},function(o,r,i){var
<div class="w-e-content-preview w-e-text">`+_+`</div>
</div>`),v.$textContainerElem.append(S);var x=v.zIndex.get("menu");w=h.default('<div class="w-e-menue-mantle" style="z-index:'+x+'"></div>'),v.$toolbarElem.append(w),C=!0,v.isEnable=!1}}function b(){!C||(S.remove(),w.remove(),v.$textElem.show(),C=!1,v.isEnable=!0)}return{disable:E,enable:b}}r.default=m},function(o,r,i){var l=i(20),d=i(439);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),o.exports=d.locals||{}},function(o,r,i){var l=i(21);r=l(!1),r.push([o.i,`.w-e-content-mantle {
width: 100%;
height: 100%;
overflow-y: auto;
}
.w-e-content-mantle .w-e-content-preview {
width: 100%;
min-height: 100%;
padding: 0 10px;
line-height: 1.5;
}
.w-e-content-mantle .w-e-content-preview img {
cursor: default;
}
.w-e-content-mantle .w-e-content-preview img:hover {
box-shadow: none;
}
.w-e-menue-mantle {
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
}
`,""]),o.exports=r},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function u(h){var m=this;this.editor=h;var v=function(){var S=document.activeElement;S===h.$textElem.elems[0]&&m.emit()};window.document.addEventListener("selectionchange",v),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",v)})}return u.prototype.emit=function(){var h,m=this.editor.config.onSelectionChange;if(m){var v=this.editor.selection;v.saveRange(),v.isSelectionEmpty()||m({text:v.getSelectionText(),html:(h=v.getSelectionContainerElem())===null||h===void 0?void 0:h.elems[0].innerHTML,selection:v})}},u}();r.default=c},function(o,r,i){var l=i(0),d=l(i(1)),c=l(i(128)),u=l(i(94)),h=l(i(4));(0,d.default)(r,"__esModule",{value:!0}),r.registerPlugin=void 0;var m=i(2),v=m.__importDefault(i(87)),C=i(6);function S(E,b,g){if(!E)throw new TypeError("name is not define");if(!b)throw new TypeError("options is not define");if(!b.intention)throw new TypeError("options.intention is not define");if(b.intention&&typeof b.intention!="function")throw new TypeError("options.intention is not function");g[E]&&console.warn("plugin "+E+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),g[E]=b}r.registerPlugin=S;function w(E){var b=(0,c.default)({},C.deepClone(v.default.globalPluginsFunctionList),C.deepClone(E.pluginsFunctionList)),g=(0,u.default)(b);(0,h.default)(g).call(g,function(_){var x=_[0],k=_[1];console.info("plugin "+x+" initializing");var T=k.intention,V=k.config;T(E,V),console.info("plugin "+x+" initialization complete")})}r.default=w},function(o,r,i){var l=i(0),d=l(i(1));(0,d.default)(r,"__esModule",{value:!0})}]).default})})(Ev);var P8=I8(Ev.exports),M8="fcEditor",L8=1,j8=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var r in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},z8=n.defineComponent({name:M8,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:L8++}},watch:{disabled:function(){this.enable()},modelValue:function(t){t!==this.editor.txt.html()&&this.editor.txt.html(t||"")}},methods:{enable:function(){this.disabled?this.editor.disable():this.editor.enable()},result:function(){this.$emit("update:modelValue",this.editor.txt.html())}},mounted:function(){var t=this;this.$nextTick(function(){t.editor=new P8("#editor".concat(t.uni)),t.editor.config.zIndex=2,t.editor.config.focus=!1,t.editor.config.autoFocus=!1,t.config&&j8(t.editor.config,t.config),t.init&&t.init(t.editor),t.editor.create(),t.enable(),t.editor.txt.html(t.modelValue)})},render:function(){var t=$8({},this.$attrs);return delete t.id,n.createVNode("div",n.mergeProps(t,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}});(function(e,t){(function(o){o(qo())})(function(o){o.defineSimpleMode=function(C,S){o.defineMode(C,function(w){return o.simpleMode(w,S)})},o.simpleMode=function(C,S){r(S,"start");var w={},E=S.meta||{},b=!1;for(var g in S)if(g!=E&&S.hasOwnProperty(g))for(var _=w[g]=[],x=S[g],k=0;k<x.length;k++){var T=x[k];_.push(new d(T,S)),(T.indent||T.dedent)&&(b=!0)}var V={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:b?[]:null}},copyState:function(F){var M={state:F.state,pending:F.pending,local:F.local,localState:null,indent:F.indent&&F.indent.slice(0)};F.localState&&(M.localState=o.copyState(F.local.mode,F.localState)),F.stack&&(M.stack=F.stack.slice(0));for(var N=F.persistentStates;N;N=N.next)M.persistentStates={mode:N.mode,spec:N.spec,state:N.state==F.localState?M.localState:o.copyState(N.mode,N.state),next:M.persistentStates};return M},token:c(w,C),innerMode:function(F){return F.local&&{mode:F.local.mode,state:F.localState}},indent:v(w,E)};if(E)for(var I in E)E.hasOwnProperty(I)&&(V[I]=E[I]);return V};function r(C,S){if(!C.hasOwnProperty(S))throw new Error("Undefined state "+S+" in simple mode")}