1534 lines
1.6 MiB
JavaScript
1534 lines
1.6 MiB
JavaScript
|
/*!
|
|||
|
* 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('.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:5}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-
|
|||
|
(function(Ct,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("element-plus"),require("@form-create/element-ui")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","@form-create/element-ui"],n):(Ct=typeof globalThis<"u"?globalThis:Ct||self,n(Ct.FcDesigner={},Ct.Vue,Ct.ElementPlus,Ct.formCreate))})(this,function(Ct,n,oi,M0){"use strict";var g5=Object.defineProperty;var v5=(Ct,n,oi)=>n in Ct?g5(Ct,n,{enumerable:!0,configurable:!0,writable:!0,value:oi}):Ct[n]=oi;var Nt=(Ct,n,oi)=>(v5(Ct,typeof n!="symbol"?n+"":n,oi),oi);const Pa=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(M0),ct={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&&!ct.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=>{ct[e]=function(t){return ct.type(t,e)}});function ai(e,t){return{}.hasOwnProperty.call(e,t)}function Tr(e,t,r){e[t]=r}function Qs(e,t={},r){let o=!1;for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){let l=t[i];if((o=Array.isArray(l))||ct.Object(l)){let d=e[i]===void 0;if(o)o=!1,d&&Tr(e,i,[]);else if(l._clone&&r!==void 0)if(r)l=l.getRule(),d&&Tr(e,i,{});else{Tr(e,i,l._clone());continue}else d&&Tr(e,i,{});e[i]=Qs(e[i],l,r)}else Tr(e,i,l),ct.Undef(l)||(ct.Undef(l.__json)||(e[i].__json=l.__json),ct.Undef(l.__origin)||(e[i].__origin=l.__origin))}return r!==void 0&&Array.isArray(e)?e.filter(i=>!i||!i.__ctrl):e}function at(e){return Qs({},{value:e}).value}function P0(e,t,r){return`[form-create ${e}]: ${t}`+(r?`
|
|||
|
|
|||
|
rule: `+JSON.stringify(r.getRule?r.getRule():r):"")}function L0(e,t){console.error(P0("err",e,t))}const ip="[[FORM-CREATE-PREFIX-",rp="-FORM-CREATE-SUFFIX]]";function Js(e){return new Function("return "+e)()}function Nr(e,t){if(e&&ct.String(e)&&e.length>4){let r=e.trim(),o=!1;try{if(r.indexOf(rp)>0&&r.indexOf(ip)===0)r=r.replace(rp,"").replace(ip,""),o=!0;else if(r.indexOf("$FN:")===0)r=r.substring(4),o=!0;else if(r.indexOf("$EXEC:")===0)r=r.substring(6),o=!0;else if(r.indexOf("$GLOBAL:")===0){const l=r.substring(8);return r=function(...d){const c=d[0].api.getGlobalEvent(l);if(c)return c.call(this,...d)},r.__json=e,r.__inject=!0,r}else{if(r.indexOf("$FNX:")===0)return r=Js("function($inject){"+r.substring(5)+"}"),r.__json=e,r.__inject=!0,r;(!t&&r.indexOf("function ")===0&&r!=="function "||!t&&r.indexOf("function(")===0&&r!=="function(")&&(o=!0)}if(!o)return e;let i;try{i=Js(r)}catch{i=Js("function "+r)}return i.__json=e,i}catch(i){L0(`\u89E3\u6790\u5931\u8D25:${r}
|
|||
|
|
|||
|
err: ${i}`);return}}return e}function Xs(e){const t=e.replace(/(-[a-z])/g,function(r){return r.replace("-","").toLocaleUpperCase()});return La(t)}function La(e){return e.replace(e[0],e[0].toLowerCase())}const op={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",iskey:"\u662F\u5426\u4E3B\u952E",fieldtype:"\u5B57\u6BB5\u7C7B\u578B",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",tableName:"\u81EA\u5B9A\u4E49\u540D\u79F0",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\u5FE
|
|||
|
<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 H0(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 W0(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 G0(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 qs(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function b5(e){}function Yn(e,t,r,o=[]){t.id||(t.id=1),r&&r--;for(let i=0;i<3;i++){const l={[t.label]:e+r*10+(i+1),[t.value]:""+t.id++};r&&Yn(e+(i+1)+"-",t,r,l.children=[]),o.push(l)}return o}function ed(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 Fi(e,t,r,o){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"+Vr(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{column:[{label:"label",key:r||"label"},{value:!0,label:"value",key:o||"value"}],keyValue:r||"label"}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{type:"button"},control:l}}function Pn(e,t,r){const o=[{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"+Vr(t).replace(".",">"),title:r||e("props.options"),_fc_important_prop:!0,wrap:{show:!1}}]}];return{type:"radio",title:r||e("props.options"),field:"_optionType",value:2,options:o,props:{type:"button"},control:i}}function Or(e,t,r,o){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"+Vr(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{columns:{label:r,value:o},keyValue:r}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{type:"button"},control:l}}function Vr(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&&ap[t[1].toLowerCase()]?ap[t[1].toLowerCase()](e):e},ap={object:function(e){var t=[];for(var r in e)!ai(e,r)||t.push(En(r)+": "+(e[r]!=null?En(e[r]):"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,r=[];t<e.length;t++)r[t]=e[t]!=null?En(e[t]):"null";return"["+r.join(", ")+"]"},string:function(e){for(var t=e.split(""),r=0;r<t.length;r++){var o=t[r];o>=" "?o==="\\"?t[r]="\\\\":o==='"'&&(t[r]='\\"'):t[r]=o===`
|
|||
|
`?"\\n":o==="\r"?"\\r":o===" "?"\\t":o==="\b"?"\\b":o==="\f"?"\\f":(o=o.charCodeAt(),"\\u00"+(o>15?1:0)+o%16)}return'"'+t.join("")+'"'}},lp=function(e){if(e&&typeof e=="object"){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];(Array.isArray(r)||ct.Object(r))&&lp(r),ct.String(r)&&(e[t]=Nr(r))}}return e};function Br(e,t,r){t=(t||"").split(".");let o=0,i=t.length;for(;e!=null&&o<i;)e=e[t[o++]];return o&&o===i&&e!==void 0?e:r}const K0=e=>(t,r)=>Y0(t,r,n.unref(e)),Y0=(e,t,r)=>Br(r,e,"").replace(/\{(\w+)\}/g,(o,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),Q0=e=>{const t=n.computed(()=>n.unref(e).name),r=n.computed(()=>Vr(Xs(t.value||""))),o=n.isRef(e)?e:n.ref(e);return{lang:t,name:r,locale:o,t:K0(e)}},td=e=>Q0(n.computed(()=>(n.isRef(e)?e.value:e)||op)),it=(e,t,r)=>t.map(o=>(o.label=e((r||"props")+"."+(o.label||o.value))||o.label,o)),Be=(e,t,r)=>r.map(o=>(o.field==="formCreate$required"?o.title=e("validate.required")||o.title:o.field&&o.field!=="_optionType"&&(o.title=e("com."+t+"."+o.field)||o.title),o.type==="template"&&ct.trueArray(o.children)&&(o.children=Be(e,t,o.children)),o)),nd=e=>{const t=[];return e&&e.forEach(r=>{if(!r._fc_drag_skip)if(r._fc_drag_tag){const o={id:r.__fc__.id,rule:r,children:nd(r.children)};o.children.length||delete o.children,t.push(o)}else t.push(...nd(r.children))}),t},sp=e=>{const t=r=>{const o=[];return r&&r.forEach(i=>{i._fc_drag_skip||(i.field?(i.children=t(i.children||[]),i.children.length||delete i.children,o.push(i)):o.push(...t(i.children||[])))}),o};return t(e)},dp=e=>{const t=r=>{const o=[];return r&&r.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,o.push(l)}else o.push(...t(i.children))}),o};return t(e)};function nn(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 li(e){return["",null,void 0].indexOf(e)!==-1}function cp(e){return e.replace(/[\ .*+?^${}()|[\]\\]/g,"\\$&")}function J0(e,t){const r=e.split("."),o=t.split("."),i=Math.min(r.length,o.length);for(var l=0;l<i;l++){var d=parseInt(r[l],10)-parseInt(o[l],10);if(d>0)return 1;if(d<0)return-1}return r.length===o.length?0:r.length<o.length?-1:1}function si(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")}Zs("\u5DF2\u590D\u5236!","success"),document.body.removeChild(t)}function za(e){return e.filter((t,r)=>e.indexOf(t)===r)}let X0=0;function We(){const e=370+ ++X0;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+e.toString(36)+"c"}function Z0(e,t){return function(r,o,i){const l={...r||{}};Object.keys(l).forEach(d=>{li(l[d])&&delete l[d]}),i.getRule(e).props.info=Object.keys(l).length>0?t("struct.configured"):""}}function up({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:"input",field:">tableName",value:"",title:e("form.tableName")},{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:"labe
|
|||
|
const file = $inject.args[1];
|
|||
|
|
|||
|
file.url = res.data.url;`}}},props(e,{t}){return Be(t,vd+".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:[nn(t)],name:"beforeUpload"}},{type:"FnInput",field:"beforeRemove",props:{body:!0,button:!0,fnx:!0,args:[nn(t)],name:"beforeRemove"}},{type:"FnInput",field:"onSuccess",warning:t("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[nn(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}}])}},Fb="\u7A7F\u68AD\u6846",yd="elTransfer",Mb={menu:"main",icon:"icon-transfer",label:Fb,name:yd,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:yd,field:We(),title:e("com.elTransfer.name"),info:"",$required:!1,props:{data:Yn(e("props.option"),{label:"label",value:"key"},1)}}},props(e,{t}){return Be(t,yd+".props",[Fi(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}}])}},Pb="\u6811\u5F62\u63A7\u4EF6",bd="tree",Lb={menu:"main",icon:"icon-tree",label:Pb,name:bd,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:bd,field:We(),title:e("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:Yn(e("props.option"),{label:"label",value:"id"},3)}}},props(e,{t}){return Be(t,bd+".props",[Or(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"}])}},jb="\u63D0\u793A",wd="elAlert",zb={menu:"aide",icon:"icon-alert",label:jb,name:wd,event:["close"],rule({t:e}){return{type:wd,props:{title:e("com.elAlert.name"),description:e("com.elAlert.description"),type:"success",effect:"dark"},children:[]}},props(e,{t}){return B
|
|||
|
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((h,y)=>(h[y.slot]||(h[y.slot]=[]),h[y.slot].push(y),delete y.slot,h),{}),{row:r,col:o,style:i,class:l,layout:d}=e.props.rule,c={},u=[];d.forEach(h=>{const y=h.row||1,C=h.col||1,S=`${h.top}:${h.left}`;c[S]={row:y,col:C};for(let w=0;w<y;w++)for(let E=0;E<C;E++){if(w===0&&w===E)continue;const _=`${h.top+w}:${h.left+E}`;t[_]&&(t[S]=(t[S]||[]).concat(t[_]),delete t[_]),u.push(_)}});const m=[];for(let h=0;h<r;h++){const y=[];for(let C=0;C<o;C++){const S=`${h}:${C}`;if(u.indexOf(S)>-1)continue;const w=t[S];y.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})}m.push({type:"tr",children:y})}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:m}]}]}}},rule(){return{type:Rd,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(e,{t}){return Be(t,Rd+".props",[{type:"switch",field:"border",value:!0},{type:"switch",field:"mini"},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},A1="\u8868\u683C\u8868\u5355",$d="tableForm",S1={menu:"subform",icon:"icon-table-form",label:A1,name:$d,input:!0,mask:!1,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(r=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:r.label,required:r.required||!1,width:r.style.width||"",color:r.style.color||""},children:r.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(r=>({label:r.props.label,required:r.props.required,style:{width:r.props.width,color:r.props.color},rule:r.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:$d,field:We(),title:e("com.tableForm.name"),info:"",props:{},children:[]}},props(e,{t}){return Be(t,$d+".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}}])}},x1="\u8868\u683C\u8868\u5355Pro",k1="tableFormPro",Ap=e=>e.map(t=>{let r=t.children||[];const o=r.filter(i=>i._fc_drag_tag==="tableFormColumn2");return o.length>0&&(r=Ap(o)),{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},[o.length?"children":"rule"]:r}}),Sp=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?Sp(t.children):t.rule||[]})),T1={menu:"subform",icon:"icon-table-form",label:x1,name:k1,input:!0,mask:!1,subForm:"array",languageKey:["add","delete","operation","dataEmpty"],event:["change","add","delete","handleClick"],children:"tableFormColumn2",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},loadRule(e){e.props||(e.props={}),e.children=Sp(e.props.columns||[]),delete e.props.columns},parseRule(e){e.props.columns=Ap(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 r=function(o){return Be(t,"tableForm.props",o)};return Be(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"}}]},Q1={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"}]},J1={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"}]},X1={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"}]},Z1="\u6570\u636E\u8868\u683C",Ya="dataTable",q1=()=>[],ew=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}]`}}}]}},tw={menu:"main",icon:"icon-data-table",label:Z1,name:Ya,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:r,page:o,index:i,selection:l,data:d}=e.props,c=[];["column","button","index","globalDataKey","fetch","page"].forEach(m=>{delete e.props[m]}),t.forEach(m=>{const h=ew(m),y={type:"elTableColumn",props:{label:m.label,prop:m.prop,width:m.width,align:m.align,className:m.className,fixed:m.fixed,sortable:m.sortable},_sfc:{attr:{"#default":"scope"}}};h&&(y.children=[h]),c.push(y)}),r&&r.open===!0&&r.column&&c.push({type:"elTableColumn",props:{label:r.label||"\u64CD\u4F5C",fixed:r.fixed===void 0?"right":r.fixed,width:r.width||"100px"},_sfc:{attr:{"#default":"scope"}},children:r.column.map(m=>{const h=m.prop||[],y={type:"elButton",props:{type:m.type,size:m.size},_sfc:{content:m.name}};return h.forEach(C=>{y.props[C]=!0}),y})}),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(o&&o.open===!0){const m=o.props&&o.props.pageSize||20;o.props&&delete o.props.pageSize,u.push({type:"elPagination",class:o.position||"right",_fc_id:e._fc_id,props:{layout:"prev, pager, next",...o.props||{}},_sfc:{prop:{total:(d||[]).length,currentPage:1,pageSize:m}}})}return{type:"div",class:"_fc-data-table",children:u}}},rule(){return{type:Ya,native:!0,props:{height:"500px",button:{},data:q1(),column:[]}}},props(e,{t}){const r=function(i){return Be(t,Ya+".props",i)},o=r([{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 Be(t,Ya+".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"},...o]},{value:2,rule:[{type:"FetchConfig",field:"fetch"},...o]},{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:r([{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:r([{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:{show:!1},field:"page>props>background"}])}]},{type:"input",field:"rowKey"},{type:"input",field:"emptyText"},{type:"SizeInput",field:"height"},{type:"switch",field:"showSummary"},{type:"switch",field:"selection"},{type:"switch",field:"index"},{type:"switch",field:"stripe"},{type:"switch",field:"border"},{type:"switch",field:"defaultExpand
|
|||
|
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:Np,props:{}}},props(){return[]}},cw="\u56FE\u7247",Ld="elImage",uw={menu:"aide",icon:"icon-image",label:cw,name:Ld,inline:!0,rule(){return{type:Ld,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Be(t,Ld+".props",[{type:"input",field:"src"},{type:"TableOptions",field:"previewSrcList",props:{column:[{label:t("com.elImage.props.src"),key:"value"}],valueType:"string"}}])}},fw={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")}]}},pw="\u8868\u5355\u9879",jd="elFormItem",hw={menu:"container",icon:"icon-form-item",label:pw,name:jd,drag:!0,mask:!1,event:!1,rule({t:e}){return{type:jd,props:{label:e("com.elFormItem.name")},children:[]}},props(e,{t}){return Be(t,jd+".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"}])}])}},mw="\u97F3\u9891\u64AD\u653E\u5668",zd="audioBox",gw={menu:"aide",icon:"icon-audio",label:mw,name:zd,mask:!1,event:["pause","play","ended"],rule(){return{type:zd,props:{src:"https://static.form-create.com/res/demo.mp3",type:"audio/mpeg"}}},props(e,{t}){return Be(t,zd+".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")}])}},vw="\u89C6\u9891\u64AD\u653E\u5668",Ud="videoBox",yw={menu:"aide",icon:"icon-video",label:vw,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  \u683C\u5F0F
|
|||
|
|
|||
|
\`\`\`
|
|||
|

|
|||
|

|
|||
|
\`\`\`
|
|||
|
|
|||
|
### \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}}]}},Lw="\u7EDF\u8BA1\u680F",Xa="elStatistic",Rp=[ob,lb,db,Dw,Vw,ub,tb,ib,pb,mb,Eb,vp,bb,vb,bp,Cb,Sb,Rb,Ib,Mb,Lb,d1,Mw,Xb,tw,Iw,Tw,L1,{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 Be(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"}])}},qb,t1,v1,S1,T1,$1,I1,B1,R1,D1,ow,lw,hw,zb,Qb,u1,Rw,Hb,C1,{menu:"aide",icon:"icon-statistic",label:Lw,name:Xa,inline:!0,easySlots:["prefix","suffix"],rule({t:e}){return{type:Xa,props:{value:99e3,title:e("com."+Xa+".name")}}},props(e,{t}){return Be(t,Xa+".props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"prefix"},{type:"input",field:"suffix"}])}},Vb,z1,H1,G1,uw,gw,yw,ww,_w,Aw,xw,Pw,{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 Be(t,"lineChart.props",[Pn(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 Be(t,"lineChart.props",[Pn(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 Be(t,"lineChart.props",[Pn(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 Be(t,"lineChart.props",[Pn(t,"props.config",t("com.lineChart.data")),{type:"FnInput",field:"loadOptions",props:{body:!0,button:!0,fnx:!0,args:[nn(t)],name:"loadOptions"}}])}},kb,E1,dw,fw,F1,M1,Kb,Wb,i1,o1,m1,nw,iw,Q1,J1,X1,K1,Y1,Tb,Db,l1,p1,b1];function jw(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 $p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$p(Object(r),!0).forEach(function(o){zw(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Za(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Za=function(t){return typeof t}:Za=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(e)}function zw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _i(){return _i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_i.apply(this,arguments)}function Uw(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Hw(e,t){if(e==null)return{};var r=Uw(e,t),o,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)o=l[i],!(t.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,o)||(r[o]=e[o]))}return r}var Ww="1.14.0";function Ei(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ai=Ei(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Oo=Ei(/Edge/i),Ip=Ei(/firefox/i),Vo=Ei(/safari/i)&&!Ei(/chrome/i)&&!Ei(/android/i),Fp=Ei(/iP(ad|od|hone)/i),Gw=Ei(/chrome/i)&&Ei(/android/i),Mp={capture:!1,passive:!1};function _t(e,t,r){e.addEventListener(t,r,!Ai&&Mp)}function gt(e,t,r){e.removeEventListener(t,r,!Ai&&Mp)}function qa(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 Kw(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ci(e,t,r,o){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&qa(e,t):qa(e,t))||o&&e===r)return e;if(e===r)break}while(e=Kw(e))}return null}var Pp=/\s+/g;function On(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Pp," ").replace(" "+t+" "," ");e.className=(o+(r?" "+t:"")).replace(Pp," ")}}function lt(e,t,r){var o=e&&e.style;if(o){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=r+(typeof r=="string"?"":"px")}}function Rr(e,t){var r="";if(typeof e=="string")r=e;else do{var o=lt(e,"transform");o&&o!=="none"&&(r=o+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function Lp(e,t,r){if(e){var o=e.getElementsByTagName(t),i=0,l=o.length;if(r)for(;i<l;i++)r(o[i],i);return o}return[]}function ui(){var e=document.scrollingElement;return e||document.documentElement}function Yt(e,t,r,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var l,d,c,u,m,h,y;if(e!==window&&e.parentNode&&e!==ui()?(l=e.getBoundingClientRect(),d=l.top,c=l.left,u=l.bottom,m=l.right,h=l.height,y=l.width):(d=0,c=0,u=window.innerHeight,m=window.innerWidth,h=window.innerHeight,y=window.innerWidth),(t||r)&&e!==window&&(i=i||e.parentNode,!Ai))do if(i&&i.getBoundingClientRect&&(lt(i,"transform")!=="none"||r&<(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,m=c+l.width;break}while(i=i.parentNode);if(o&&e!==window){var S=Rr(i||e),w=S&&S.a,E=S&&S.d;S&&
|
|||
|
|
|||
|
b`.split(/\n/).length!=3?function(a){for(var s=0,p=[],f=a.length;s<=f;){var v=a.indexOf(`
|
|||
|
`,s);v==-1&&(v=a.length);var O=a.slice(s,a.charAt(v-1)=="\r"?v-1:v),M=O.indexOf("\r");M!=-1?(p.push(O.slice(0,M)),s+=M+1):(p.push(O),s=v+1)}return p}:function(a){return a.split(/\r\n?|\n/)},Gi=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},mi=function(){var a=R("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),gi=null;function gs(a){if(gi!=null)return gi;var s=H(a,R("span","x")),p=s.getBoundingClientRect(),f=$(s,0,1).getBoundingClientRect();return gi=Math.abs(p.left-f.left)>1}var ei={},Ki={};function vs(a,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),ei[a]=s}function lo(a,s){Ki[a]=s}function Tn(a){if(typeof a=="string"&&Ki.hasOwnProperty(a))a=Ki[a];else if(a&&typeof a.name=="string"&&Ki.hasOwnProperty(a.name)){var s=Ki[a.name];typeof s=="string"&&(s={name:s}),a=fe(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=ei[s.name];if(!p)return Ti(a,"text/plain");var f=p(a,s);if(Yi.hasOwnProperty(s.name)){var v=Yi[s.name];for(var O in v)!v.hasOwnProperty(O)||(f.hasOwnProperty(O)&&(f["_"+O]=f[O]),f[O]=v[O])}if(f.name=s.name,s.helperType&&(f.helperType=s.helperType),s.modeProps)for(var M in s.modeProps)f[M]=s.modeProps[M];return f}var Yi={};function ys(a,s){var p=Yi.hasOwnProperty(a)?Yi[a]:Yi[a]={};ce(s,p)}function Ni(a,s){if(s===!0)return s;if(a.copyState)return a.copyState(s);var p={};for(var f in s){var v=s[f];v instanceof Array&&(v=v.concat([])),p[f]=v}return p}function Qi(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 ua(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=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},It.prototype.match=function(a,s,p){if(typeof a=="string"){var f=function(M){return p?M.toLowerCase():M},v=this.string.substr(this.pos,a.length);if(f(v)==f(a))return s!==!1&&(this.pos+=a.length),!0}else{var O=this.string.slice(this.pos).match(a);return O&&O.index>0?null:(O&&s!==!1&&(this.pos+=O[0].length),O)}},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.
|
|||
|
`?(Te=ne.appendChild(R("span",ve[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Te.setAttribute("cm-text",ve[0]),a.col+=1):(Te=a.cm.options.specialCharPlaceholder(ve[0]),Te.setAttribute("cm-text",ve[0]),u&&m<9?ne.appendChild(R("span",[Te])):ne.appendChild(Te),a.col+=1);a.map.push(a.pos,a.pos+1,Te),a.pos++}}if(a.trailingSpace=j.charCodeAt(s.length-1)==32,p||f||v||Z||O||M){var Ue=p||"";f&&(Ue+=f),v&&(Ue+=v);var Fe=R("span",[ne],Ue,O);if(M)for(var Ge in M)M.hasOwnProperty(Ge)&&Ge!="style"&&Ge!="class"&&Fe.setAttribute(Ge,M[Ge]);return a.content.appendChild(Fe)}a.content.appendChild(ne)}}function IL(a,s){if(a.length>1&&!/ /.test(a))return a;for(var p=s,f="",v=0;v<a.length;v++){var O=a.charAt(v);O==" "&&p&&(v==a.length-1||a.charCodeAt(v+1)==32)&&(O="\xA0"),f+=O,p=O==" "}return f}function FL(a,s){return function(p,f,v,O,M,j,K){v=v?v+" cm-force-border":"cm-force-border";for(var Z=p.pos,ne=Z+f.length;;){for(var re=void 0,ve=0;ve<s.length&&(re=s[ve],!(re.to>Z&&re.from<=Z));ve++);if(re.to>=ne)return a(p,f,v,O,M,j,K);a(p,f.slice(0,re.to-Z),v,O,null,j,K),O=null,f=f.slice(re.to-Z),Z=re.to}}}function iy(a,s,p,f){var v=!f&&p.widgetNode;v&&a.map.push(a.pos,a.pos+s,v),!f&&a.cm.display.input.needsContentAttribute&&(v||(v=a.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",p.id)),v&&(a.cm.display.input.setUneditable(v),a.content.appendChild(v)),a.pos+=s,a.trailingSpace=!1}function ML(a,s,p){var f=a.markedSpans,v=a.text,O=0;if(!f){for(var M=1;M<p.length;M+=2)s.addToken(s,v.slice(O,O=p[M]),ty(p[M+1],s.cm.options));return}for(var j=v.length,K=0,Z=1,ne="",re,ve,me=0,Ae,Te,Oe,Ie,Ue;;){if(me==K){Ae=Te=Oe=ve="",Ue=null,Ie=null,me=1/0;for(var Fe=[],Ge=void 0,nt=0;nt<f.length;++nt){var qe=f[nt],pt=qe.marker;if(pt.type=="bookmark"&&qe.from==K&&pt.widgetNode)Fe.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,Te=""),pt.className&&(Ae+=" "+pt.className),pt.css&&(ve=(ve?ve+";":"")+pt.css),pt.startStyle&&qe.from==K&&(Oe+=" "+pt.startStyle),pt.endStyle&&qe.to==me&&(Ge||(Ge=[])).push(pt.endStyle,qe.to),pt.title&&((Ue||(Ue={})).title=pt.title),pt.attributes)for(var kt in pt.attributes)(Ue||(Ue={}))[kt]=pt.attributes[kt];pt.collapsed&&(!Ie||hf(Ie.marker,pt)<0)&&(Ie=qe)}else qe.from>K&&me>qe.from&&(me=qe.from)}if(Ge)for(var qt=0;qt<Ge.length;qt+=2)Ge[qt+1]==me&&(Te+=" "+Ge[qt]);if(!Ie||Ie.from==K)for(var Rt=0;Rt<Fe.length;++Rt)iy(s,0,Fe[Rt]);if(Ie&&(Ie.from||0)==K){if(iy(s,(Ie.to==null?j+1:Ie.to)-K,Ie.marker,Ie.from==null),Ie.to==null)return;Ie.to==K&&(Ie=!1)}}if(K>=j)break;for(var Dn=Math.min(j,me);;){if(ne){var wn=K+ne.length;if(!Ie){var jt=wn>Dn?ne.slice(0,Dn-K):ne;s.addToken(s,jt,re?re+Ae:Ae,Oe,K+jt.length==me?Te:"",ve,Ue)}if(wn>=Dn){ne=ne.slice(Dn-K),K=Dn;break}K=wn,Oe=""}ne=v.slice(O,O=p[Z++]),re=ty(p[Z++],s.cm.options)}}}function ry(a,s,p){this.line=s,this.rest=NL(s),this.size=this.rest?bt(he(this.rest))-p+1:1,this.node=this.text=null,this.hidden=Ji(a,s)}function Ss(a,s,p){for(var f=[],v,O=s;O<p;O=v){var M=new ry(a.doc,Je(a.doc,O),O);v=O+M.size,f.push(M)}return f}var uo=null;function PL(a){uo?uo.ops.push(a):a.ownsGroup=uo={ops:[a],delayedCallbacks:[]}}function LL(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 v=a.ops[f];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(p<s.length)}function jL(a,s){var p=a.ownsGroup;if(!!p)try{LL(p)}finally{uo=null,s(p)}}var ha=null;function Jt(a,s){var p=Xe(a,s);if(!!p.length){var f=Array.prototype.slice.call(arguments,2),v;uo?v=uo.delayedCallbacks:ha?v=ha:(v=ha=[],setTimeout(zL,0));for(var O=function(j){v.push(function(){return p[j].apply(null,f)})},M=0;M<p.length;++M)O(M)}}function zL(){var a=ha;ha=null;for(var s=0;s<a.length;++s)a[s]()}function oy(a,s,p,f){for(var v=0;v<s.changes.length;v++){var O=s.changes[v];O=="text"?HL(a,s):O=="gutter"?ly(a,s,p,f):O=="class"?yf(a,s):O=="widget"&&WL(a,s,f)}s.changes=null}function ma(a){return a
|
|||
|
top: `+Ge+"px; width: "+(nt==null?K-Fe:nt)+`px;
|
|||
|
height: `+(qe-Ge)+"px"))}function re(Fe,Ge,nt){var qe=Je(v,Fe),pt=qe.text.length,kt,qt;function Rt(jt,Cn){return Ts(a,ue(Fe,jt),"div",qe,Cn)}function Dn(jt,Cn,tn){var Kt=_y(a,qe,null,jt),zt=Cn=="ltr"==(tn=="after")?"left":"right",Ft=tn=="after"?Kt.begin:Kt.end-(/\s/.test(qe.text.charAt(Kt.end-1))?2:1);return Rt(Ft,zt)[zt]}var wn=tt(qe,v.direction);return mt(wn,Ge||0,nt==null?pt:nt,function(jt,Cn,tn,Kt){var zt=tn=="ltr",Ft=Rt(jt,zt?"left":"right"),_n=Rt(Cn-1,zt?"right":"left"),ko=Ge==null&&jt==0,rr=nt==null&&Cn==pt,ln=Kt==0,Ci=!wn||Kt==wn.length-1;if(_n.top-Ft.top<=3){var en=(Z?ko:rr)&&ln,tp=(Z?rr:ko)&&Ci,Ii=en?j:(zt?Ft:_n).left,xr=tp?K:(zt?_n:Ft).right;ne(Ii,Ft.top,xr-Ii,Ft.bottom)}else{var kr,fn,To,np;zt?(kr=Z&&ko&&ln?j:Ft.left,fn=Z?K:Dn(jt,tn,"before"),To=Z?j:Dn(Cn,tn,"after"),np=Z&&rr&&Ci?K:_n.right):(kr=Z?Dn(jt,tn,"before"):j,fn=!Z&&ko&&ln?K:Ft.right,To=!Z&&rr&&Ci?j:_n.left,np=Z?Dn(Cn,tn,"after"):K),ne(kr,Ft.top,fn-kr,Ft.bottom),Ft.bottom<_n.top&&ne(j,Ft.bottom,null,_n.top),ne(To,_n.top,np-To,_n.bottom)}(!kt||Ds(Ft,kt)<0)&&(kt=Ft),Ds(_n,kt)<0&&(kt=_n),(!qt||Ds(Ft,qt)<0)&&(qt=Ft),Ds(_n,qt)<0&&(qt=_n)}),{start:kt,end:qt}}var ve=s.from(),me=s.to();if(ve.line==me.line)re(ve.line,ve.ch,me.ch);else{var Ae=Je(v,ve.line),Te=Je(v,me.line),Oe=ti(Ae)==ti(Te),Ie=re(ve.line,ve.ch,Oe?Ae.text.length+1:null).end,Ue=re(me.line,Oe?0:null,me.ch).start;Oe&&(Ie.top<Ue.top-2?(ne(Ie.right,Ie.top,null,Ie.bottom),ne(j,Ue.top,Ue.left,Ue.bottom)):ne(Ie.right,Ie.top,Ue.left-Ie.right,Ie.bottom)),Ie.bottom<Ue.top&&ne(j,Ie.bottom,null,Ue.top)}p.appendChild(O)}function Df(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()||mo(a),s.cursorDiv.style.visibility=(p=!p)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function xy(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||Vf(a))}function Of(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&mo(a))},100)}function Vf(a,s){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Qe(a,"focus",a,s),a.state.focused=!0,Q(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),h&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Df(a))}function mo(a,s){a.state.delayingBlurEvent||(a.state.focused&&(Qe(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 Os(a){for(var s=a.display,p=s.lineDiv.offsetTop,f=Math.max(0,s.scroller.getBoundingClientRect().top),v=s.lineDiv.getBoundingClientRect().top,O=0,M=0;M<s.view.length;M++){var j=s.view[M],K=a.options.lineWrapping,Z=void 0,ne=0;if(!j.hidden){if(v+=j.line.height,u&&m<8){var re=j.node.offsetTop+j.node.offsetHeight;Z=re-p,p=re}else{var ve=j.node.getBoundingClientRect();Z=ve.bottom-ve.top,!K&&j.text.firstChild&&(ne=j.text.firstChild.getBoundingClientRect().right-ve.left-1)}var me=j.line.height-Z;if((me>.005||me<-.005)&&(v<f&&(O-=me),Kn(j.line,Z),ky(j.line),j.rest))for(var Ae=0;Ae<j.rest.length;Ae++)ky(j.rest[Ae]);if(ne>a.display.sizerWidth){var Te=Math.ceil(ne/ho(a.display));Te>a.display.maxLineLength&&(a.display.maxLineLength=Te,a.display.maxLine=j.line,a.display.maxLineChanged=!0)}}}Math.abs(O)>2&&(s.scroller.scrollTop+=O)}function ky(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 Vs(a,s,p){var f=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;f=Math.floor(f-xs(a));var v=p&&p.bottom!=null?p.bottom:f+a.wrapper.clientHeight,O=vi(s,f),M=vi(s,v);if(p&&p.ensure){var j=p.ensure.from.line,K=p.ensure.to.line;j<O?(O=j,M=vi(s,Vi(Je(s,j))+a.wrapper.clientHeight)):Math.min(K,s.last
|
|||
|
top: `+(s.top-p.viewOffset-xs(a.display))+`px;
|
|||
|
height: `+(s.bottom-s.top+bi(a)+p.barHeight)+`px;
|
|||
|
left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");a.display.lineSpace.appendChild(M),M.scrollIntoView(v),a.display.lineSpace.removeChild(M)}}}function o8(a,s,p,f){f==null&&(f=0);var v;!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 O=0;O<5;O++){var M=!1,j=ni(a,s),K=!p||p==s?j:ni(a,p);v={left:Math.min(j.left,K.left),top:Math.min(j.top,K.top)-f,right:Math.max(j.left,K.left),bottom:Math.max(j.bottom,K.bottom)+f};var Z=Bf(a,v),ne=a.doc.scrollTop,re=a.doc.scrollLeft;if(Z.scrollTop!=null&&(wa(a,Z.scrollTop),Math.abs(a.doc.scrollTop-ne)>1&&(M=!0)),Z.scrollLeft!=null&&(_r(a,Z.scrollLeft),Math.abs(a.doc.scrollLeft-re)>1&&(M=!0)),!M)break}return v}function a8(a,s){var p=Bf(a,s);p.scrollTop!=null&&wa(a,p.scrollTop),p.scrollLeft!=null&&_r(a,p.scrollLeft)}function Bf(a,s){var p=a.display,f=po(a.display);s.top<0&&(s.top=0);var v=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,O=wf(a),M={};s.bottom-s.top>O&&(s.bottom=s.top+O);var j=a.doc.height+bf(p),K=s.top<f,Z=s.bottom>j-f;if(s.top<v)M.scrollTop=K?0:s.top;else if(s.bottom>v+O){var ne=Math.min(s.top,(Z?j:s.bottom)-O);ne!=v&&(M.scrollTop=ne)}var re=a.options.fixedGutter?0:p.gutters.offsetWidth,ve=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-re,me=yr(a)-p.gutters.offsetWidth,Ae=s.right-s.left>me;return Ae&&(s.right=s.left+me),s.left<10?M.scrollLeft=0:s.left<ve?M.scrollLeft=Math.max(0,s.left+re-(Ae?0:10)):s.right>me+ve-3&&(M.scrollLeft=s.right+(Ae?0:10)-me),M}function Rf(a,s){s!=null&&(Bs(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+s)}function go(a){Bs(a);var s=a.getCursor();a.curOp.scrollToPos={from:s,to:s,margin:a.options.cursorScrollMargin}}function ba(a,s,p){(s!=null||p!=null)&&Bs(a),s!=null&&(a.curOp.scrollLeft=s),p!=null&&(a.curOp.scrollTop=p)}function l8(a,s){Bs(a),a.curOp.scrollToPos=s}function Bs(a){var s=a.curOp.scrollToPos;if(s){a.curOp.scrollToPos=null;var p=wy(a,s.from),f=wy(a,s.to);Ty(a,p,f,s.margin)}}function Ty(a,s,p,f){var v=Bf(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});ba(a,v.scrollLeft,v.scrollTop)}function wa(a,s){Math.abs(a.doc.scrollTop-s)<2||(i||If(a,{top:s}),Ny(a,s,!0),i&&If(a),Ea(a,100))}function Ny(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 _r(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,Ry(a),a.display.scroller.scrollLeft!=s&&(a.display.scroller.scrollLeft=s),a.display.scrollbars.setScrollLeft(s))}function Ca(a){var s=a.display,p=s.gutters.offsetWidth,f=Math.round(a.doc.height+bf(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+bi(a)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:p}}var Er=function(a,s,p){this.cm=p;var f=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");f.tabIndex=v.tabIndex=-1,a(f),a(v),Ce(f,"scroll",function(){f.clientHeight&&s(f.scrollTop,"vertical")}),Ce(v,"scroll",function(){v.clientWidth&&s(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Er.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 v=a.viewHeight-(s?f:0);this
|
|||
|
`},setDirection:Zt(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(s){return s.order=null}),this.cm&&E8(this.cm))})}),bn.prototype.eachLine=bn.prototype.iter;var u0=0;function I8(a){var s=this;if(f0(s),!(dt(s,a)||Bi(s.display,a))){yt(a),u&&(u0=+new Date);var p=wr(s,a,!0),f=a.dataTransfer.files;if(!(!p||s.isReadOnly()))if(f&&f.length&&window.FileReader&&window.File)for(var v=f.length,O=Array(v),M=0,j=function(){++M==v&&Xt(s,function(){p=ot(s.doc,p);var me={from:p,to:p,text:s.doc.splitLines(O.filter(function(Ae){return Ae!=null}).join(s.doc.lineSeparator())),origin:"paste"};wo(s.doc,me),Jy(s.doc,qi(ot(s.doc,p),ot(s.doc,er(me))))})()},K=function(me,Ae){if(s.options.allowDropFileTypes&&se(s.options.allowDropFileTypes,me.type)==-1){j();return}var Te=new FileReader;Te.onerror=function(){return j()},Te.onload=function(){var Oe=Te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Oe)){j();return}O[Ae]=Oe,j()},Te.readAsText(me)},Z=0;Z<f.length;Z++)K(f[Z],Z);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 re;if(s.state.draggingText&&!s.state.draggingText.copy&&(re=s.listSelections()),Ps(s.doc,qi(p,p)),re)for(var ve=0;ve<re.length;++ve)Co(s.doc,"",re[ve].anchor,re[ve].head,"drag");s.replaceSelection(ne,"around","paste"),s.display.input.focus()}}catch{}}}}function F8(a,s){if(u&&(!a.state.draggingText||+new Date-u0<100)){qn(s);return}if(!(dt(a,s)||Bi(a.display,s))&&(s.dataTransfer.setData("Text",a.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!E)){var p=R("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 M8(a,s){var p=wr(a,s);if(!!p){var f=document.createDocumentFragment();Nf(a,p,f),a.display.dragCursor||(a.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),H(a.display.dragCursor,f)}}function f0(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function p0(a){if(!!document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),p=[],f=0;f<s.length;f++){var v=s[f].CodeMirror;v&&p.push(v)}p.length&&p[0].operation(function(){for(var O=0;O<p.length;O++)a(p[O])})}}var h0=!1;function P8(){h0||(L8(),h0=!0)}function L8(){var a;Ce(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,p0(j8)},100))}),Ce(window,"blur",function(){return p0(mo)})}function j8(a){var s=a.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,a.setSize()}for(var ir={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"},Va=0;Va<10;Va++)ir[Va+48]=ir[Va+96]=String(Va);for(var zs=65;zs<=90;zs++)ir[zs]=String.fromCharCode(zs);for(var Ba=1;Ba<=12;Ba++)ir[Ba+111]=ir[Ba+63235]="F"+Ba;var $i={};$i.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"},$i.pcDefault={"Ctrl-A":"selectAl
|
|||
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function y0(a,s){var p=Je(a.doc,s),f=ti(p);return f!=p&&(s=bt(f)),Yf(!0,a,f,s,1)}function W8(a,s){var p=Je(a.doc,s),f=TL(p);return f!=p&&(s=bt(f)),Yf(!0,a,p,s,-1)}function b0(a,s){var p=y0(a,s.line),f=Je(a.doc,p.line),v=tt(f,a.doc.direction);if(!v||v[0].level==0){var O=Math.max(p.ch,f.text.search(/\S/)),M=s.line==p.line&&s.ch<=O&&s.ch;return ue(p.line,M?0:O,p.sticky)}return p}function Hs(a,s,p){if(typeof s=="string"&&(s=Ra[s],!s))return!1;a.display.input.ensurePolled();var f=a.display.shift,v=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),p&&(a.display.shift=!1),v=s(a)!=ye}finally{a.display.shift=f,a.state.suppressEdits=!1}return v}function G8(a,s,p){for(var f=0;f<a.state.keyMaps.length;f++){var v=Eo(s,a.state.keyMaps[f],p,a);if(v)return v}return a.options.extraKeys&&Eo(s,a.options.extraKeys,p,a)||Eo(s,a.options.keyMap,p,a)}var K8=new pe;function $a(a,s,p,f){var v=a.state.keySeq;if(v){if(m0(s))return"handled";if(/\'$/.test(s)?a.state.keySeq=null:K8.set(50,function(){a.state.keySeq==v&&(a.state.keySeq=null,a.display.input.reset())}),w0(a,v+" "+s,p,f))return!0}return w0(a,s,p,f)}function w0(a,s,p,f){var v=G8(a,s,f);return v=="multi"&&(a.state.keySeq=s),v=="handled"&&Jt(a,"keyHandled",a,s,p),(v=="handled"||v=="multi")&&(yt(p),Df(a)),!!v}function C0(a,s){var p=v0(s,!0);return p?s.shiftKey&&!a.state.keySeq?$a(a,"Shift-"+p,s,function(f){return Hs(a,f,!0)})||$a(a,p,s,function(f){if(typeof f=="string"?/^go[A-Z]/.test(f):f.motion)return Hs(a,f)}):$a(a,p,s,function(f){return Hs(a,f)}):!1}function Y8(a,s,p){return $a(a,"'"+p+"'",s,function(f){return Hs(a,f,!0)})}var Qf=null;function _0(a){var s=this;if(!(a.target&&a.target!=s.display.input.getField())&&(s.curOp.focus=J(X(s)),!dt(s,a))){u&&m<11&&a.keyCode==27&&(a.returnValue=!1);var p=a.keyCode;s.display.shift=p==16||a.shiftKey;var f=C0(s,a);w&&(Qf=f?p:null,!f&&p==88&&!mi&&(N?a.metaKey:a.ctrlKey)&&s.replaceSelection("",null,"cut")),i&&!N&&!f&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),p==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&Q8(s)}}function Q8(a){var s=a.display.lineDiv;Q(s,"CodeMirror-crosshair");function p(f){(f.keyCode==18||!f.altKey)&&(L(s,"CodeMirror-crosshair"),Ye(document,"keyup",p),Ye(document,"mouseover",p))}Ce(document,"keyup",p),Ce(document,"mouseover",p)}function E0(a){a.keyCode==16&&(this.doc.sel.shift=!1),dt(this,a)}function A0(a){var s=this;if(!(a.target&&a.target!=s.display.input.getField())&&!(Bi(s.display,a)||dt(s,a)||a.ctrlKey&&!a.altKey||N&&a.metaKey)){var p=a.keyCode,f=a.charCode;if(w&&p==Qf){Qf=null,yt(a);return}if(!(w&&(!a.which||a.which<10)&&C0(s,a))){var v=String.fromCharCode(f==null?p:f);v!="\b"&&(Y8(s,a,v)||s.display.input.onKeyPress(a))}}}var J8=400,Jf=function(a,s,p){this.time=a,this.pos=s,this.button=p};Jf.prototype.compare=function(a,s,p){return this.time+J8>a&&Ee(s,this.pos)==0&&p==this.button};var Ia,Fa;function X8(a,s){var p=+new Date;return Fa&&Fa.compare(p,a,s)?(Ia=Fa=null,"triple"):Ia&&Ia.compare(p,a,s)?(Fa=new Jf(p,a,s),Ia=null,"double"):(Ia=new Jf(p,a,s),Fa=null,"single")}function S0(a){var s=this,p=s.display;if(!(dt(s,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,Bi(p,a)){h||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!Xf(s,a)){var f=wr(s,a),v=da(a),O=f?X8(f,v):"single";le(s).focus(),v==1&&s.state.selectingText&&s.state.selectingText(a),!(f&&Z8(s,v,f,O,a))&&(v==1?f?e5(s,f,O,a):vn(a)==p.scroller&&yt(a):v==2?(f&&Ms(s.doc,f),setTimeout(function(){return p.input.focus()},20)):v==3&&(T?s.display.input.onContextMenu(a):Of(s)))}}}function Z8(a,s,p,f,v){var O="Click";return f=="double"?O="Double"+O:f=="triple"&&(O="Triple"+O),O=(s==1?"Left":s==2?"Middle":"Right")+O,$a(a,g0(O,v),v,function(M){if(typeof M=="string"&&(M=Ra[M]),!M)return!1;var j=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),j=M(a,p)!=ye}finally{a.state.suppressEdits=!1}return j})}function q8(a,s,p){var f=a.getOption("configureMouse"),v=f?f(a,s,p):{};if(v
|
|||
|
`)==s){if(f.ranges.length%ri.text.length==0){Z=[];for(var ne=0;ne<ri.text.length;ne++)Z.push(O.splitLines(ri.text[ne]))}}else K.length==f.ranges.length&&a.options.pasteLinesPerSelection&&(Z=Se(K,function(Ie){return[Ie]}));for(var re=a.curOp.updateInput,ve=f.ranges.length-1;ve>=0;ve--){var me=f.ranges[ve],Ae=me.from(),Te=me.to();me.empty()&&(p&&p>0?Ae=ue(Ae.line,Ae.ch-p):a.state.overwrite&&!j?Te=ue(Te.line,Math.min(Je(O,Te.line).text.length,Te.ch+he(K).length)):j&&ri&&ri.lineWise&&ri.text.join(`
|
|||
|
`)==K.join(`
|
|||
|
`)&&(Ae=Te=ue(Ae.line,0)));var Oe={from:Ae,to:Te,text:Z?Z[ve%Z.length]:K,origin:v||(j?"paste":a.state.cutIncoming>M?"cut":"+input")};wo(a.doc,Oe),Jt(a,"inputRead",a,Oe)}s&&!j&&V0(a,s),go(a),a.curOp.updateInput<2&&(a.curOp.updateInput=re),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function O0(a,s){var p=a.clipboardData&&a.clipboardData.getData("Text");if(p)return a.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Nn(s,function(){return qf(s,p,0,null,"paste")}),!0}function V0(a,s){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,f=p.ranges.length-1;f>=0;f--){var v=p.ranges[f];if(!(v.head.ch>100||f&&p.ranges[f-1].head.line==v.head.line)){var O=a.getModeAt(v.head),M=!1;if(O.electricChars){for(var j=0;j<O.electricChars.length;j++)if(s.indexOf(O.electricChars.charAt(j))>-1){M=Ma(a,v.head.line,"smart");break}}else O.electricInput&&O.electricInput.test(Je(a.doc,v.head.line).text.slice(0,v.head.ch))&&(M=Ma(a,v.head.line,"smart"));M&&Jt(a,"electricInput",a,v.head.line)}}}function B0(a){for(var s=[],p=[],f=0;f<a.doc.sel.ranges.length;f++){var v=a.doc.sel.ranges[f].head.line,O={anchor:ue(v,0),head:ue(v+1,0)};p.push(O),s.push(a.getRange(O.anchor,O.head))}return{text:s,ranges:p}}function R0(a,s,p,f){a.setAttribute("autocorrect",p?"":"off"),a.setAttribute("autocapitalize",f?"":"off"),a.setAttribute("spellcheck",!!s)}function $0(){var a=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=R("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return h?a.style.width="1000px":a.setAttribute("wrap","off"),b&&(a.style.border="1px solid black"),R0(a),s}function d5(a){var s=a.optionHandlers,p=a.helpers={};a.prototype={constructor:a,focus:function(){le(this).focus(),this.display.input.focus()},setOption:function(f,v){var O=this.options,M=O[f];O[f]==v&&f!="mode"||(O[f]=v,s.hasOwnProperty(f)&&Xt(this,s[f])(this,v,M),Qe(this,"optionChange",this,f))},getOption:function(f){return this.options[f]},getDoc:function(){return this.doc},addKeyMap:function(f,v){this.state.keyMaps[v?"push":"unshift"](Us(f))},removeKeyMap:function(f){for(var v=this.state.keyMaps,O=0;O<v.length;++O)if(v[O]==f||v[O].name==f)return v.splice(O,1),!0},addOverlay:un(function(f,v){var O=f.token?f:a.getMode(this.options,f);if(O.startState)throw new Error("Overlays may not be stateful.");Pe(this.state.overlays,{mode:O,modeSpec:f,opaque:v&&v.opaque,priority:v&&v.priority||0},function(M){return M.priority}),this.state.modeGen++,yn(this)}),removeOverlay:un(function(f){for(var v=this.state.overlays,O=0;O<v.length;++O){var M=v[O].modeSpec;if(M==f||typeof f=="string"&&M.name==f){v.splice(O,1),this.state.modeGen++,yn(this);return}}}),indentLine:un(function(f,v,O){typeof v!="string"&&typeof v!="number"&&(v==null?v=this.options.smartIndent?"smart":"prev":v=v?"add":"subtract"),te(this.doc,f)&&Ma(this,f,v,O)}),indentSelection:un(function(f){for(var v=this.doc.sel.ranges,O=-1,M=0;M<v.length;M++){var j=v[M];if(j.empty())j.head.line>O&&(Ma(this,j.head.line,f,!0),O=j.head.line,M==this.doc.sel.primIndex&&go(this));else{var K=j.from(),Z=j.to(),ne=Math.max(O,K.line);O=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var re=ne;re<O;++re)Ma(this,re,f);var ve=this.doc.sel.ranges;K.ch==0&&v.length==ve.length&&ve[M].from().ch>0&&Wf(this.doc,M,new wt(K,ve[M].to()),D)}}}),getTokenAt:function(f,v){return Hv(this,f,v)},getLineTokens:function(f,v){return Hv(this,ue(f),v,!0)},getTokenTypeAt:function(f){f=ot(this.doc,f);var v=jv(this,Je(this.doc,f.line)),O=0,M=(v.length-1)/2,j=f.ch,K;if(j==0)K=v[2];else for(;;){var Z=O+M>>1;if((Z?v[Z*2-1]:0)>=j)M=Z;else if(v[Z*2+1]<j)O=Z+1;else{K=v[Z*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 v=this.doc.mode;return v.innerMode?a.innerMode(v,this.getTokenAt(f).state).mode:v},getHelper:function(f,v){return this.getHelpers(f,v)[0]},getHelpers:function(f,v){var O=[];if(!p.hasOwnProperty(v))return O;var M=p[v],j=this.getModeAt(f);if(typeof
|
|||
|
`,Oe=He(Te,me)?"w":ve&&Te==`
|
|||
|
`?"n":!ve||/\s/.test(Te)?null:"p";if(ve&&!Ae&&!Oe&&(Oe="s"),re&&re!=Oe){p<0&&(p=1,ne(),s.sticky="after");break}if(Oe&&(re=Oe),p>0&&!ne(!Ae))break}var Ie=Ls(a,s,O,M,!0);return rt(O,Ie)&&(Ie.hitSide=!0),Ie}function I0(a,s,p,f){var v=a.doc,O=s.left,M;if(f=="page"){var j=Math.min(a.display.wrapper.clientHeight,le(a).innerHeight||v(a).documentElement.clientHeight),K=Math.max(j-.5*po(a.display),3);M=(p>0?s.bottom:s.top)+p*K}else f=="line"&&(M=p>0?s.bottom+3:s.top-3);for(var Z;Z=Af(a,O,M),!!Z.outside;){if(p<0?M<=0:M>=v.height){Z.hitSide=!0;break}M+=p*5}return Z}var At=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};At.prototype.init=function(a){var s=this,p=this,f=p.cm,v=p.div=a.lineDiv;v.contentEditable=!0,R0(v,f.options.spellcheck,f.options.autocorrect,f.options.autocapitalize);function O(j){for(var K=j.target;K;K=K.parentNode){if(K==v)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(K.className))break}return!1}Ce(v,"paste",function(j){!O(j)||dt(f,j)||O0(j,f)||m<=11&&setTimeout(Xt(f,function(){return s.updateFromDOM()}),20)}),Ce(v,"compositionstart",function(j){s.composing={data:j.data,done:!1}}),Ce(v,"compositionupdate",function(j){s.composing||(s.composing={data:j.data,done:!1})}),Ce(v,"compositionend",function(j){s.composing&&(j.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),Ce(v,"touchstart",function(){return p.forceCompositionEnd()}),Ce(v,"input",function(){s.composing||s.readFromDOMSoon()});function M(j){if(!(!O(j)||dt(f,j))){if(f.somethingSelected())Gs({lineWise:!1,text:f.getSelections()}),j.type=="cut"&&f.replaceSelection("",null,"cut");else if(f.options.lineWiseCopyCut){var K=B0(f);Gs({lineWise:!0,text:K.text}),j.type=="cut"&&f.operation(function(){f.setSelections(K.ranges,0,D),f.replaceSelection("",null,"cut")})}else return;if(j.clipboardData){j.clipboardData.clearData();var Z=ri.text.join(`
|
|||
|
`);if(j.clipboardData.setData("Text",Z),j.clipboardData.getData("Text")==Z){j.preventDefault();return}}var ne=$0(),re=ne.firstChild;f.display.lineSpace.insertBefore(ne,f.display.lineSpace.firstChild),re.value=ri.text.join(`
|
|||
|
`);var ve=J(v.ownerDocument);ie(re),setTimeout(function(){f.display.lineSpace.removeChild(ne),ve.focus(),ve==v&&p.showPrimarySelection()},50)}}Ce(v,"copy",M),Ce(v,"cut",M)},At.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},At.prototype.prepareSelection=function(){var a=Sy(this.cm,!1);return a.focus=J(this.div.ownerDocument)==this.div,a},At.prototype.showSelection=function(a,s){!a||!this.cm.display.view.length||((a.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(a))},At.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},At.prototype.showPrimarySelection=function(){var a=this.getSelection(),s=this.cm,p=s.doc.sel.primary(),f=p.from(),v=p.to();if(s.display.viewTo==s.display.viewFrom||f.line>=s.display.viewTo||v.line<s.display.viewFrom){a.removeAllRanges();return}var O=Ks(s,a.anchorNode,a.anchorOffset),M=Ks(s,a.focusNode,a.focusOffset);if(!(O&&!O.bad&&M&&!M.bad&&Ee(Gt(O,M),f)==0&&Ee(vt(O,M),v)==0)){var j=s.display.view,K=f.line>=s.display.viewFrom&&F0(s,f)||{node:j[0].measure.map[2],offset:0},Z=v.line<s.display.viewTo&&F0(s,v);if(!Z){var ne=j[j.length-1].measure,re=ne.maps?ne.maps[ne.maps.length-1]:ne.map;Z={node:re[re.length-1],offset:re[re.length-2]-re[re.length-3]}}if(!K||!Z){a.removeAllRanges();return}var ve=a.rangeCount&&a.getRangeAt(0),me;try{me=$(K.node,K.offset,Z.offset,Z.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)),ve&&a.anchorNode==null?a.addRange(ve):i&&this.startGracePeriod()),this.rememberSelection()}},At.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)},At.prototype.showMultipleSelections=function(a){H(this.cm.display.cursorDiv,a.cursors),H(this.cm.display.selectionDiv,a.selection)},At.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},At.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var s=a.getRangeAt(0).commonAncestorContainer;return A(this.div,s)},At.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||J(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},At.prototype.blur=function(){this.div.blur()},At.prototype.getField=function(){return this.div},At.prototype.supportsTouch=function(){return!0},At.prototype.receivedFocus=function(){var a=this,s=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):Nn(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)},At.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},At.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&&c5(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=Ks(s,a.anchorNode,a.anchorOffset),f=Ks(s,a.focusNode,a.focusOffset);p&&f&&Nn(s,function(){an(s.doc,qi(p,f),D),(p.bad||f.bad)&&(s.curOp.selectionChanged=!0)})}}},At.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(),v=p.to();if(f.ch==0&&f.line>a.firstLine()&&(f=ue(f.li
|
|||
|
`),ie(v))}else return;M.type=="cut"&&(f.state.cutIncoming=+new Date)}}Ce(v,"cut",O),Ce(v,"copy",O),Ce(a.scroller,"paste",function(M){if(!(Bi(a,M)||dt(f,M))){if(!v.dispatchEvent){f.state.pasteIncoming=+new Date,p.focus();return}var j=new Event("paste");j.clipboardData=M.clipboardData,v.dispatchEvent(j)}}),Ce(a.lineSpace,"selectstart",function(M){Bi(a,M)||yt(M)}),Ce(v,"compositionstart",function(){var M=f.getCursor("from");p.composing&&p.composing.range.clear(),p.composing={start:M,range:f.markText(M,f.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(v,"compositionend",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},Lt.prototype.createField=function(a){this.wrapper=$0(),this.textarea=this.wrapper.firstChild},Lt.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Lt.prototype.prepareSelection=function(){var a=this.cm,s=a.display,p=a.doc,f=Sy(a);if(a.options.moveInputWithCursor){var v=ni(a,p.sel.primary().head,"div"),O=s.wrapper.getBoundingClientRect(),M=s.lineDiv.getBoundingClientRect();f.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,v.top+M.top-O.top)),f.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,v.left+M.left-O.left))}return f},Lt.prototype.showSelection=function(a){var s=this.cm,p=s.display;H(p.cursorDiv,a.cursors),H(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Lt.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&&ie(this.textarea),u&&m>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value="",u&&m>=9&&(this.hasSelection=null))}},Lt.prototype.getField=function(){return this.textarea},Lt.prototype.supportsTouch=function(){return!1},Lt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!k||J(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Lt.prototype.blur=function(){this.textarea.blur()},Lt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Lt.prototype.receivedFocus=function(){this.slowPoll()},Lt.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Lt.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)},Lt.prototype.poll=function(){var a=this,s=this.cm,p=this.textarea,f=this.prevInput;if(this.contextMenuPending||!s.state.focused||Gi(p)&&!f&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var v=p.value;if(v==f&&!s.somethingSelected())return!1;if(u&&m>=9&&this.hasSelection===v||N&&/[\uf700-\uf7ff]/.test(v))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var O=v.charCodeAt(0);if(O==8203&&!f&&(f="\u200B"),O==8666)return this.reset(),this.cm.execCommand("undo")}for(var M=0,j=Math.min(f.length,v.length);M<j&&f.charCodeAt(M)==v.charCodeAt(M);)++M;return Nn(s,function(){qf(s,v.slice(M),f.length-M,null,a.composing?"*compose":null),v.length>1e3||v.indexOf(`
|
|||
|
`)>-1?p.value=a.prevInput="":a.prevInput=v,a.composing&&(a.composing.range.clear(),a.composing.range=s.markText(a.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Lt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Lt.prototype.onKeyPress=function(){u&&m>=9&&(this.hasSelection=null),this.fastPoll()},Lt.prototype.onContextMenu=function(a){var s=this,p=s.cm,f=p.display,v=s.textarea;s.contextMenuPending&&s.contextMenuPending();var O=wr(p,a),M=f.scroller.scrollTop;if(!O||w)return;var j=p.options.resetSelectionOnContextMenu;j&&p.doc.sel.contains(O)==-1&&Xt(p,an)(p.doc,qi(O),D);var K=v.style.cssText,Z=s.wrapper.style.cssText,ne=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",v.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 re;h&&(re=v.ownerDocument.defaultView.scrollY),f.input.focus(),h&&v.ownerDocument.defaultView.scrollTo(null,re),f.input.reset(),p.somethingSelected()||(v.value=s.prevInput=" "),s.contextMenuPending=me,f.selForContextMenu=p.doc.sel,clearTimeout(f.detectingSelectAll);function ve(){if(v.selectionStart!=null){var Te=p.somethingSelected(),Oe="\u200B"+(Te?v.value:"");v.value="\u21DA",v.value=Oe,s.prevInput=Te?"":"\u200B",v.selectionStart=1,v.selectionEnd=Oe.length,f.selForContextMenu=p.doc.sel}}function me(){if(s.contextMenuPending==me&&(s.contextMenuPending=!1,s.wrapper.style.cssText=Z,v.style.cssText=K,u&&m<9&&f.scrollbars.setScrollTop(f.scroller.scrollTop=M),v.selectionStart!=null)){(!u||u&&m<9)&&ve();var Te=0,Oe=function(){f.selForContextMenu==p.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&s.prevInput=="\u200B"?Xt(p,t0)(p):Te++<10?f.detectingSelectAll=setTimeout(Oe,500):(f.selForContextMenu=null,f.input.reset())};f.detectingSelectAll=setTimeout(Oe,200)}}if(u&&m>=9&&ve(),T){qn(a);var Ae=function(){Ye(window,"mouseup",Ae),setTimeout(me,20)};Ce(window,"mouseup",Ae)}else setTimeout(me,50)},Lt.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Lt.prototype.setUneditable=function(){},Lt.prototype.needsContentAttribute=!1;function p5(a,s){if(s=s?ce(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=J(a.ownerDocument);s.autofocus=p==a||a.getAttribute("autofocus")!=null&&p==document.body}function f(){a.value=j.getValue()}var v;if(a.form&&(Ce(a.form,"submit",f),!s.leaveSubmitMethodAlone)){var O=a.form;v=O.submit;try{var M=O.submit=function(){f(),O.submit=v,O.submit(),O.submit=M}}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&&(Ye(a.form,"submit",f),!s.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=v))}},a.style.display="none";var j=Ot(function(K){return a.parentNode.insertBefore(K,a.nextSibling)},s);return j}function h5(a){a.off=Ye,a.on=Ce,a.wheelEventPixels=C8,a.Doc=bn,a.splitLines=ca,a.countColumn=de,a.findColumn=q,a.isWordChar=we,a.Pass=ye,a.signal=Qe,a.Line=co,a.changeEnd=er,a.scrollbarModel=Oy,a.Pos=ue,a.cmpPos=Ee,a.modes=ei,a.mimeModes=Ki,a.resolveMode=Tn,a.getMode=Ti,a.modeExtensions=Yi,a.extendMode=ys,a.copyState=Ni,a.startState=ua,a.innerMode=Qi,a.commands=Ra,a.keyMap=$i,a.keyName=v0,a.isModifierKey=m0,a.lookupKey=Eo,a.normalizeKeyMap=U8,a.StringStream=It,a.SharedTextMarker=Oa,a.TextMarker=nr,a.LineWidget=Da,a.e_preventDefault=yt,a.e_stopPropagation=Wn,a.e_stop=qn,a.addClass=Q,a.contains=A,a.rmClass=L,a.keyNames=ir}o5(Ot),d5(Ot);var m5="iter insert remove copy getEditor constructor".split(" ");for(var Ys in bn.prototype)bn.prototype.hasOwnProperty(Ys)&&se(m5,Ys)<0&&(Ot.prototype[Ys]=function(a){return function(){return a.apply(this.doc,arguments)}}(bn.prototype[Ys]));return Tt(bn),Ot.inputStyles={textarea:Lt,contenteditable:At},Ot.defineMode=function(a){!Ot.defaults.mode&&a!="null"&&(Ot.defaults.mode=a),vs.apply(this,arguments)},Ot.defineMIME=lo,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=p5,h5(Ot),Ot.version="6.65.7",Ot})}(yc)),yc.exports}var Si=zr();(function(e,t){(function(r){r(zr())})(function(r){r.defineMode("javascript",function(o,i){var l=o.indentUnit,d=i.statementIndent,c=i.jsonld,u=i.json||c,m=i.trackScope!==!1,h=i.typescript,y=i.wordCharacters||/[\w$\xa1-\uffff]/,C=function(){function te(Gt){return{type:Gt,style:"keyword"}}var ae=te("keyword a"),ue=te("keyword b"),Ee=te("keyword c"),rt=te("keyword d"),ht=te("operator"),vt={type:"atom",style:"atom"};return{if:t
|
|||
|
`+e+`
|
|||
|
}`)()}catch(r){return console.error(r),sn(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+e:this.fn=WC+t+GC}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("{"),r=e.lastIndexOf("}");return t===-1||r===-1||t>=r?e:e.slice(t+1,r).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(Si(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,r)=>{r.keyCode===32&&r.ctrlKey&&Si.showHint(t,Si.hint.javascript)}),this.editor.on("change",()=>{this.visible=!0}),this.editor})}}}),YC={class:"_fd-fn"},QC={class:"_fd-fn-tip"},JC={class:"cm-keyword"},XC={key:0},ZC={class:"_fd-fn-arg"},qC={ref:"editor",class:"_fd-fn-editor"};function e_(e,t,r,o,i,l){const d=n.resolveComponent("el-table-column"),c=n.resolveComponent("el-table"),u=n.resolveComponent("el-popover"),m=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",YC,[n.createElementVNode("div",QC,[t[2]||(t[2]=n.createElementVNode("div",{class:"_fd-fn-ind"},null,-1)),n.createElementVNode("div",JC,[n.createElementVNode("span",null,[n.createTextVNode("function "+n.toDisplayString(e.name)+"(",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.argList,(h,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createTextVNode(n.toDisplayString(y>0?", ":""),1),h.type==="string"?(n.openBlock(),n.createElementBlock("span",XC,n.toDisplayString(h.name),1)):(n.openBlock(),n.createBlock(u,{key:1,placement:"top-start",width:400,"hide-after":0,trigger:"click",title:h.name,content:h.info||""},{reference:n.withCtx(()=>[n.createElementVNode("span",ZC,[n.createTextVNode(n.toDisplayString(h.name),1),t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-question"},null,-1))])]),default:n.withCtx(()=>[h.columns?(n.openBlock(),n.createBlock(c,{key:0,data:h.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",qC,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(m,{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 xi=De(KC,[["render",e_]]),_4="",t_=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(){}}),n_={class:"_fd-cdi-input"};function i_(e,t,r,o,i,l){const d=n.resolveComponent("el-cascader"),c=n.resolveComponent("el-input-number"),u=n.resolveComponent("el-option"),m=n.resolveComponent("el-select"),h=n.resolveComponent("el-switch"),y=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",n_,[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 kh(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 r=e[t],o=typeof r;o!=="object"&&o!=="function"||Object.isFrozen(r)||kh(r)}),e}class Th{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Nh(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function zi(e,...t){const r=Object.create(null);for(const o in e)r[o]=e[o];return t.forEach(o=>{for(const i in o)r[i]=o[i]}),r}const Dh=e=>!!e.scope;class SE{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=Nh(t)}openNode(t){if(!Dh(t))return;const r=((o,{prefix:i})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const l=o.split(".");return[`${i}${l.shift()}`,...l.map((d,c)=>`${d}${"_".repeat(c+1)}`)].join(" ")}return`${i}${o}`})(t.scope,{prefix:this.classPrefix});this.span(r)}closeNode(t){Dh(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Oh=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Cc{constructor(){this.rootNode=Oh(),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 r=Oh({scope:t});this.add(r),this.stack.push(r)}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,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(o=>this._walk(t,o)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{Cc._collapse(r)}))}}class xE extends Cc{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,r){const o=t.root;r&&(o.scope="language:"+r),this.add(o)}toHTML(){return new SE(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function zo(e){return e?typeof e=="string"?e:e.source:null}function Vh(e){return sr("(?=",e,")")}function kE(e){return sr("(?:",e,")*")}function TE(e){return sr("(?:",e,")?")}function sr(...e){return e.map(t=>zo(t)).join("")}function _c(...e){return"("+((r=>{const o=r[r.length-1];return typeof o=="object"&&o.constructor===Object?(r.splice(r.length-1,1),o):{}})(e).capture?"":"?:")+e.map(r=>zo(r)).join("|")+")"}function Bh(e){return RegExp(e.toString()+"|").exec("").length-1}const NE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ec(e,{joinWith:t}){let r=0;return e.map(o=>{r+=1;const i=r;let l=zo(o),d="";for(;l.length>0;){const c=NE.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]==="("&&r++)}return d}).map(o=>`(${o})`).join(t)}const Rh="[a-zA-Z]\\w*",Ac="[a-zA-Z_]\\w*",$h="\\b\\d+(\\.\\d+)?",Ih="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Fh="\\b(0b[01]+)",Uo={begin:"\\\\[\\s\\S]",relevance:0},DE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Uo]},OE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Uo]},Cl=(e,t,r={})=>{const o=zi({scope:"comment",begin:e,end:t,contains:[]},r);o.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=_c("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 o.contains.push({begin:sr(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),o},VE=Cl("//","$"),BE=Cl("
|
|||
|
https://github.com/highlightjs/highlight.js/issues/2277`),F=x,V=k),N===void 0&&(N=!0);const I={code:V,language:F};b("before:highlight",I);const P=I.result?I.result:h(I.language,I.code,N);return P.code=I.code,b("after:highlight",P),P}function h(x,k,N,V){const F=Object.create(null);function I(){if(!G.keywords)return X.addText(le);let se=0;G.keywordPatternRe.lastIndex=0;let ge=G.keywordPatternRe.exec(le),ye="";for(;ge;){ye+=le.substring(se,ge.index);const W=A.case_insensitive?ge[0].toLowerCase():ge[0],Y=(D=W,G.keywords[D]);if(Y){const[q,ee]=Y;if(X.addText(ye),ye="",F[W]=(F[W]||0)+1,F[W]<=7&&(be+=ee),q.startsWith("_"))ye+=ge[0];else{const oe=A.classNameAliases[q]||q;T(ge[0],oe)}}else ye+=ge[0];se=G.keywordPatternRe.lastIndex,ge=G.keywordPatternRe.exec(le)}var D;ye+=le.substring(se),X.addText(ye)}function P(){G.subLanguage!=null?(()=>{if(le==="")return;let se=null;if(typeof G.subLanguage=="string"){if(!t[G.subLanguage])return X.addText(le);se=h(G.subLanguage,le,!0,ie[G.subLanguage]),ie[G.subLanguage]=se._top}else se=y(le,G.subLanguage.length?G.subLanguage:null);G.relevance>0&&(be+=se.relevance),X.__addSublanguage(se._emitter,se.language)})():I(),le=""}function T(se,ge){se!==""&&(X.startScope(ge),X.addText(se),X.endScope())}function B(se,ge){let ye=1;const D=ge.length-1;for(;ye<=D;){if(!se._emit[ye]){ye++;continue}const W=A.classNameAliases[se[ye]]||se[ye],Y=ge[ye];W?T(Y,W):(le=Y,I(),le=""),ye++}}function L(se,ge){return se.scope&&typeof se.scope=="string"&&X.openNode(A.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(T(le,A.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),le=""):se.beginScope._multi&&(B(se.beginScope,ge),le="")),G=Object.create(se,{parent:{value:G}}),G}function U(se,ge,ye){let D=((W,Y)=>{const q=W&&W.exec(Y);return q&&q.index===0})(se.endRe,ye);if(D){if(se["on:end"]){const W=new Th(se);se["on:end"](ge,W),W.isMatchIgnored&&(D=!1)}if(D){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return U(se.parent,ge,ye)}function H(se){return G.matcher.regexIndex===0?(le+=se[0],1):(pe=!0,0)}function R(se){const ge=se[0],ye=k.substring(se.index),D=U(G,se,ye);if(!D)return Hh;const W=G;G.endScope&&G.endScope._wrap?(P(),T(ge,G.endScope._wrap)):G.endScope&&G.endScope._multi?(P(),B(G.endScope,se)):W.skip?le+=ge:(W.returnEnd||W.excludeEnd||(le+=ge),P(),W.excludeEnd&&(le=ge));do G.scope&&X.closeNode(),G.skip||G.subLanguage||(be+=G.relevance),G=G.parent;while(G!==D.parent);return D.starts&&L(D.starts,se),W.returnEnd?0:ge.length}let z={};function $(se,ge){const ye=ge&&ge[0];if(le+=se,ye==null)return P(),0;if(z.type==="begin"&&ge.type==="end"&&z.index===ge.index&&ye===""){if(le+=k.slice(ge.index,ge.index+1),!i){const D=Error(`0 width match regex (${x})`);throw D.languageName=x,D.badRule=z.rule,D}return 1}if(z=ge,ge.type==="begin")return(D=>{const W=D[0],Y=D.rule,q=new Th(Y),ee=[Y.__beforeBegin,Y["on:begin"]];for(const oe of ee)if(oe&&(oe(D,q),q.isMatchIgnored))return H(W);return Y.skip?le+=W:(Y.excludeBegin&&(le+=W),P(),Y.returnBegin||Y.excludeBegin||(le=W)),L(Y,D),Y.returnBegin?0:W.length})(ge);if(ge.type==="illegal"&&!N){const D=Error('Illegal lexeme "'+ye+'" for mode "'+(G.scope||"<unnamed>")+'"');throw D.mode=G,D}if(ge.type==="end"){const D=R(ge);if(D!==Hh)return D}if(ge.type==="illegal"&&ye==="")return 1;if(de>1e5&&de>3*ge.index)throw Error("potential infinite loop, way more iterations than matches");return le+=ye,ye.length}const A=E(x);if(!A)throw dr(l.replace("{}",x)),Error('Unknown language: "'+x+'"');const J=GE(A);let Q="",G=V||J;const ie={},X=new c.__emitter(c);(()=>{const se=[];for(let ge=G;ge!==A;ge=ge.parent)ge.scope&&se.unshift(ge.scope);se.forEach(ge=>X.openNode(ge))})();let le="",be=0,ce=0,de=0,pe=!1;try{if(A.__emitTokens)A.__emitTokens(k,X);else{for(G.matcher.considerAll();;){de++,pe?pe=!1:G.matcher.considerAll(),G.matcher.lastIndex=ce;const se=G.matcher.exec(k);if(!se)break;const ge=$(k.substring(ce,se.index),se);ce=se.index+ge}$(k.substring(ce))}return X.finalize(),Q=X.toHTML(),{language:x,value:Q,relevance:be,illegal:!1,_emitter:X,_top:G}}catch(se){
|
|||
|
`);i!==-1?this.__character_count=o.length-i:this.__character_count+=o.length},e.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},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 o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function t(o,i){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),i=i||"",o.indent_level>0&&(i=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}t.prototype.get_indent_size=function(o,i){var l=this.__base_string_length;return i=i||0,o<0&&(l=0),l+=o*this.__indent_size,l+=i,l},t.prototype.get_indent_string=function(o,i){var l=this.__base_string;return i=i||0,o<0&&(o=0,l=""),i+=o*this.__indent_size,this.__ensure_cache(i),l+=this.__cache[i],l},t.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var o=this.__cache.length,i=0,l="";this.__indent_size&&o>=this.__indent_size&&(i=Math.floor(o/this.__indent_size),o-=i*this.__indent_size,l=new Array(i+1).join(this.__indent_string)),o&&(l+=new Array(o+1).join(" ")),this.__cache.push(l)};function r(o,i){this.__indent_cache=new t(o,i),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.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 r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(o,i){return this.__indent_cache.get_indent_string(o,i)},r.prototype.get_indent_size=function(o,i){return this.__indent_cache.get_indent_size(o,i)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(o){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 o!==`
|
|||
|
`&&(l=l.replace(/[\n]/g,o)),l},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(o,i){return o=o||0,i=i||0,this.next_line.set_indent(o,i),this.__lines.length>1?(this.current_line.set_indent(o,i),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(o){for(var i=0;i<o.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.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(" "))},r.prototype.remove_indent=function(o){for(var i=this.__lines.length;o<i;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&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},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(o,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(o)!==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--}},kc.Output=r,kc}var Nc={},Jh;function Xh(){if(Jh)return Nc;Jh=1;function e(t,r,o,i){this.type=t,this.text=r,this.comments_before=null,this.newlines=o||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Nc.Token=e,Nc}var Dc={},Zh;function qh(){return Zh||(Zh=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\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")}(Dc)),Dc}var Oc={},Go={},em;function Vc(){if(em)return Go;em=1;function e(o,i){this.raw_options=t(o,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(o,i){var l=this.raw_options[o],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(o,i){var l=this.raw_options[o],d=l===void 0?!!i:!!l;return d},e.prototype._get_characters=function(o,i){var l=this.raw_options[o],d=i||"";return typeof l=="string"&&(d=l.replace(/\\r/,"\r").replace(/\\n/,`
|
|||
|
`).replace(/\\t/," ")),d},e.prototype._get_number=function(o,i){var l=this.raw_options[o];i=parseInt(i,10),isNaN(i)&&(i=0);var d=parseInt(l,10);return isNaN(d)&&(d=i),d},e.prototype._get_selection=function(o,i,l){var d=this._get_selection_list(o,i,l);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
|
|||
|
`+i+`
|
|||
|
You passed in: '`+this.raw_options[o]+"'");return d[0]},e.prototype._get_selection_list=function(o,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(o,l);if(!this._is_valid_selection(d,i))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
|
|||
|
`+i+`
|
|||
|
You passed in: '`+this.raw_options[o]+"'");return d},e.prototype._is_valid_selection=function(o,i){return o.length&&i.length&&!o.some(function(l){return i.indexOf(l)===-1})};function t(o,i){var l={};o=r(o);var d;for(d in o)d!==i&&(l[d]=o[d]);if(i&&o[i])for(d in o[i])l[d]=o[i][d];return l}function r(o){var i={},l;for(l in o){var d=l.replace(/-/g,"_");i[d]=o[l]}return i}return Go.Options=e,Go.normalizeOpts=r,Go.mergeOpts=t,Go}var tm;function nm(){if(tm)return Oc;tm=1;var e=Vc().Options,t=["before-newline","after-newline","preserve-newline"];function r(o){e.call(this,o,"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 r.prototype=new e,Oc.Options=r,Oc}var Gr={},Bc={},im;function Rc(){if(im)return Bc;im=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(r){this.__input=r||"",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 r=null;return this.hasNext()&&(r=this.__input.charAt(this.__position),this.__position+=1),r},t.prototype.peek=function(r){var o=null;return r=r||0,r+=this.__position,r>=0&&r<this.__input_length&&(o=this.__input.charAt(r)),o},t.prototype.__match=function(r,o){r.lastIndex=o;var i=r.exec(this.__input);return i&&!(e&&r.sticky)&&i.index!==o&&(i=null),i},t.prototype.test=function(r,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(r,o):!1},t.prototype.testChar=function(r,o){var i=this.peek(o);return r.lastIndex=0,i!==null&&r.test(i)},t.prototype.match=function(r){var o=this.__match(r,this.__position);return o?this.__position+=o[0].length:o=null,o},t.prototype.read=function(r,o,i){var l="",d;return r&&(d=this.match(r),d&&(l+=d[0])),o&&(d||!r)&&(l+=this.readUntil(o,i)),l},t.prototype.readUntil=function(r,o){var i="",l=this.__position;r.lastIndex=this.__position;var d=r.exec(this.__input);return d?(l=d.index,o&&(l+=d[0].length)):l=this.__input_length,i=this.__input.substring(this.__position,l),this.__position=l,i},t.prototype.readUntilAfter=function(r){return this.readUntil(r,!0)},t.prototype.get_regexp=function(r,o){var i=null,l="g";return o&&e&&(l="y"),typeof r=="string"&&r!==""?i=new RegExp(r,l):r&&(i=new RegExp(r.source,l)),i},t.prototype.get_literal_regexp=function(r){return RegExp(r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(r){var o=this.__position,i=this.readUntilAfter(r);return this.__position=o,i},t.prototype.lookBack=
|
|||
|
`),!(V.type===u.DOT||V.type===u.RESERVED&&(V.text==="set"||V.text==="get"))&&b.test(F)?(F==="in"||F==="of")&&(V.type===u.WORD||V.type===u.STRING)?this._create_token(u.OPERATOR,F):this._create_token(u.RESERVED,F):this._create_token(u.WORD,F);if(F=this.__patterns.number.read(),F!=="")return this._create_token(u.WORD,F)},k.prototype._read_singles=function(V){var F=null;return V==="("||V==="["?F=this._create_token(u.START_EXPR,V):V===")"||V==="]"?F=this._create_token(u.END_EXPR,V):V==="{"?F=this._create_token(u.START_BLOCK,V):V==="}"?F=this._create_token(u.END_BLOCK,V):V===";"?F=this._create_token(u.SEMICOLON,V):V==="."&&C.test(this._input.peek(1))?F=this._create_token(u.DOT,V):V===","&&(F=this._create_token(u.COMMA,V)),F&&this._input.next(),F},k.prototype._read_pair=function(V,F){var I=null;return V==="#"&&F==="{"&&(I=this._create_token(u.START_BLOCK,V+F)),I&&(this._input.next(),this._input.next()),I},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 F="";if(V==="#"){if(this._is_first_token()&&(F=this.__patterns.shebang.read(),F))return this._create_token(u.UNKNOWN,F.trim()+`
|
|||
|
`);if(F=this.__patterns.include.read(),F)return this._create_token(u.UNKNOWN,F.trim()+`
|
|||
|
`);V=this._input.next();var I="#";if(this._input.hasNext()&&this._input.testChar(y)){do V=this._input.next(),I+=V;while(this._input.hasNext()&&V!=="#"&&V!=="=");return V==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(I+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(I+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,I)}this._input.back()}else if(V==="<"&&this._is_first_token()){if(F=this.__patterns.html_comment_start.read(),F){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)F+=this._input.next();return x=!0,this._create_token(u.COMMENT,F)}}else if(x&&V==="-"&&(F=this.__patterns.html_comment_end.read(),F))return x=!1,this._create_token(u.COMMENT,F);return null},k.prototype._read_comment=function(V){var F=null;if(V==="/"){var I="";if(this._input.peek(1)==="*"){I=this.__patterns.block_comment.read();var P=m.get_directives(I);P&&P.ignore==="start"&&(I+=m.readIgnored(this._input)),I=I.replace(i.allLineBreaks,`
|
|||
|
`),F=this._create_token(u.BLOCK_COMMENT,I),F.directives=P}else this._input.peek(1)==="/"&&(I=this.__patterns.comment.read(),F=this._create_token(u.COMMENT,I))}return F},k.prototype._read_string=function(V){if(V==="`"||V==="'"||V==='"'){var F=this._input.next();return this.has_char_escapes=!1,V==="`"?F+=this._read_string_recursive("`",!0,"${"):F+=this._read_string_recursive(V),this.has_char_escapes&&this._options.unescape_strings&&(F=N(F)),this._input.peek()===V&&(F+=this._input.next()),F=F.replace(i.allLineBreaks,`
|
|||
|
`),this._create_token(u.STRING,F)}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,F){if(V==="/"&&this._allow_regexp_or_xml(F)){for(var I=this._input.next(),P=!1,T=!1;this._input.hasNext()&&(P||T||this._input.peek()!==V)&&!this._input.testChar(i.newline);)I+=this._input.peek(),P?P=!1:(P=this._input.peek()==="\\",this._input.peek()==="["?T=!0:this._input.peek()==="]"&&(T=!1)),this._input.next();return this._input.peek()===V&&(I+=this._input.next(),I+=this._input.read(i.identifier)),this._create_token(u.STRING,I)}return null},k.prototype._read_xml=function(V,F){if(this._options.e4x&&V==="<"&&this._allow_regexp_or_xml(F)){var I="",P=this.__patterns.xml.read_match();if(P){for(var T=P[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),B=T.indexOf("{")===0,L=0;P;){var U=!!P[1],H=P[2],R=!!P[P.length-1]||H.slice(0,8)==="![CDATA[";if(!R&&(H===T||B&&H.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(U?--L:++L),I+=P[0],L<=0)break;P=this.__patterns.xml.read_match()}return P||(I+=this._input.match(/[\s\S]*/g)[0]),I=I.replace(i.allLineBreaks,`
|
|||
|
`),this._create_token(u.STRING,I)}}return null};function N(V){for(var F="",I=0,P=new e(V),T=null;P.hasNext();)if(T=P.match(/([\s]|[^\\]|\\\\)+/g),T&&(F+=T[0]),P.peek()==="\\"){if(P.next(),P.peek()==="x")T=P.match(/x([0-9A-Fa-f]{2})/g);else if(P.peek()==="u")T=P.match(/u([0-9A-Fa-f]{4})/g),T||(T=P.match(/u\{([0-9A-Fa-f]+)\}/g));else{F+="\\",P.hasNext()&&(F+=P.next());continue}if(!T||(I=parseInt(T[1],16),I>126&&I<=255&&T[0].indexOf("x")===0))return V;I>=0&&I<32||I>1114111?F+="\\"+T[0]:I===34||I===39||I===92?F+="\\"+String.fromCharCode(I):F+=String.fromCharCode(I)}return F}return k.prototype._read_string_recursive=function(V,F,I){var P,T;V==="'"?T=this.__patterns.single_quote:V==='"'?T=this.__patterns.double_quote:V==="`"?T=this.__patterns.template_text:V==="}"&&(T=this.__patterns.template_expression);for(var B=T.read(),L="";this._input.hasNext();){if(L=this._input.next(),L===V||!F&&i.newline.test(L)){this._input.back();break}else L==="\\"&&this._input.hasNext()?(P=this._input.peek(),P==="x"||P==="u"?this.has_char_escapes=!0:P==="\r"&&this._input.peek(1)===`
|
|||
|
`&&this._input.next(),L+=this._input.next()):I&&(I==="${"&&L==="$"&&this._input.peek()==="{"&&(L+=this._input.next()),I===L&&(V==="`"?L+=this._read_string_recursive("}",F,"`"):L+=this._read_string_recursive("`",F,"${"),this._input.hasNext()&&(L+=this._input.next())));L+=T.read(),B+=L}return B},Gr.Tokenizer=k,Gr.TOKEN=u,Gr.positionable_operators=S.slice(),Gr.line_starters=_.slice(),Gr}var fm;function gA(){if(fm)return xc;fm=1;var e=Tc().Output,t=Xh().Token,r=qh(),o=nm().Options,i=Tl().Tokenizer,l=Tl().line_starters,d=Tl().positionable_operators,c=Tl().TOKEN;function u(T,B){return B.indexOf(T)!==-1}function m(T){return T.replace(/^\s+/g,"")}function h(T){for(var B={},L=0;L<T.length;L++)B[T[L].replace(/-/g,"_")]=T[L];return B}function y(T,B){return T&&T.type===c.RESERVED&&T.text===B}function C(T,B){return T&&T.type===c.RESERVED&&u(T.text,B)}var S=["case","return","do","if","throw","else","await","break","continue","async"],w=["before-newline","after-newline","preserve-newline"],E=h(w),_=[E.before_newline,E.preserve_newline],g={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(T,B){B.multiline_frame||B.mode===g.ForInitializer||B.mode===g.Conditional||T.remove_indent(B.start_line_index)}function x(T){T=T.replace(r.allLineBreaks,`
|
|||
|
`);for(var B=[],L=T.indexOf(`
|
|||
|
`);L!==-1;)B.push(T.substring(0,L)),T=T.substring(L+1),L=T.indexOf(`
|
|||
|
`);return T.length&&B.push(T),B}function k(T){return T===g.ArrayLiteral}function N(T){return u(T,[g.Expression,g.ForInitializer,g.Conditional])}function V(T,B){for(var L=0;L<T.length;L++){var U=T[L].trim();if(U.charAt(0)!==B)return!1}return!0}function F(T,B){for(var L=0,U=T.length,H;L<U;L++)if(H=T[L],H&&H.indexOf(B)!==0)return!1;return!0}function I(T,B){B=B||{},this._source_text=T||"",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 o(B)}I.prototype.create_flags=function(T,B){var L=0;T&&(L=T.indentation_level,!this._output.just_added_newline()&&T.line_indent_level>L&&(L=T.line_indent_level));var U={mode:B,parent:T,last_token:T?T.last_token:new t(c.START_BLOCK,""),last_word:T?T.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:T?T.line_indent_level:L,start_line_index:this._output.get_line_number(),ternary_depth:0};return U},I.prototype._reset=function(T){var B=T.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,B),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g.BlockStatement);var L=new i(T,this._options);return this._tokens=L.tokenize(),T},I.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T,B=this._reset(this._source_text),L=this._options.eol;this._options.eol==="auto"&&(L=`
|
|||
|
`,B&&r.lineBreak.test(B||"")&&(L=B.match(r.lineBreak)[0]));for(var U=this._tokens.next();U;)this.handle_token(U),this._last_last_text=this._flags.last_token.text,this._flags.last_token=U,U=this._tokens.next();return T=this._output.get_code(L),T},I.prototype.handle_token=function(T,B){T.type===c.START_EXPR?this.handle_start_expr(T):T.type===c.END_EXPR?this.handle_end_expr(T):T.type===c.START_BLOCK?this.handle_start_block(T):T.type===c.END_BLOCK?this.handle_end_block(T):T.type===c.WORD?this.handle_word(T):T.type===c.RESERVED?this.handle_word(T):T.type===c.SEMICOLON?this.handle_semicolon(T):T.type===c.STRING?this.handle_string(T):T.type===c.EQUALS?this.handle_equals(T):T.type===c.OPERATOR?this.handle_operator(T):T.type===c.COMMA?this.handle_comma(T):T.type===c.BLOCK_COMMENT?this.handle_block_comment(T,B):T.type===c.COMMENT?this.handle_comment(T,B):T.type===c.DOT?this.handle_dot(T):T.type===c.EOF?this.handle_eof(T):T.type===c.UNKNOWN?this.handle_unknown(T,B):this.handle_unknown(T,B)},I.prototype.handle_whitespace_and_comments=function(T,B){var L=T.newlines,U=this._options.keep_array_indentation&&k(this._flags.mode);if(T.comments_before)for(var H=T.comments_before.next();H;)this.handle_whitespace_and_comments(H,B),this.handle_token(H,B),H=T.comments_before.next();if(U)for(var R=0;R<L;R+=1)this.print_newline(R>0,B);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,B);for(var z=1;z<L;z+=1)this.print_newline(!0,B)}};var P=["async","break","continue","return","throw","yield"];return I.prototype.allow_wrap_or_preserved_newline=function(T,B){if(B=B===void 0?!1:B,!this._output.just_added_newline()){var L=this._options.preserve_newlines&&T.newlines||B,U=u(this._flags.last_token.text,d)||u(T.text,d);if(U){var H=u(this._flags.last_token.text,d)&&u(this._options.operator_position,_)||u(T.text,d);L=L&&H}if(L)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(C(this._flags.last_token,P))return;this._output.set_wrap_point()}}},I.prototype.print_newline=function(T,B){if(!B&&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&&y(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(T)&&(this._flags.multiline_frame=!0)},I.prototype.print_token_line_indentation=function(T){this._output.just_added_newline()&&(this._options.keep_array_indentation&&T.newlines&&(T.text==="["||k(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(T.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))},I.prototype.print_token=function(T){if(this._output.raw){this._output.add_raw_token(T);return}if(this._options.comma_first&&T.previous&&T.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var B=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(B),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(T),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(T),this._output.non_breaking_space=!0,this._output.add_token(T.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},I.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.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,B)},I.prototype.handle_eof=function(T){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T)},xc.Beautifier=I,xc}var pm;function vA(){if(pm)return Al.exports;pm=1;var e=gA().Beautifier,t=nm().Options;function r(o,i){var l=new e(o,i);return l.beautify()}return Al.exports=r,Al.exports.defaultOptions=function(){return new t},Al.exports}var Nl={exports:{}},jc={},zc={},hm;function mm(){if(hm)return zc;hm=1;var e=Vc().Options;function t(r){e.call(this,r,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var o=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||o;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,zc.Options=t,zc}var gm;function yA(){if(gm)return jc;gm=1;var e=mm().Options,t=Tc().Output,r=Rc().InputScanner,o=Pc().Directives,i=new o(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,m=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,h=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(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 y.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},y.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},y.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},y.prototype.print_string=function(C){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(C)},y.prototype.preserveSingleSpace=function(C){C&&(this._output.space_before_token=!0)},y.prototype.indent=function(){this._indentLevel++},y.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},y.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 r(C),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var E=0,_=!1,g=!1,b=!1,x=!1,k=!1,N=this._ch,V=!1,F,I,P;F=this._input.read(u),I=F!=="",P=N,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),N=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var T=this._input.read(m),B=i.get_directives(T);B&&B.ignore==="start"&&(T+=i.readIgnored(this._input)),this.print_string(T),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(h)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(I),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(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var U=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);U.match(/[ :]$/)&&(U=this.eatString(": ").replace(/\s+$/,""),this.print_string(U),this._output.space_before_token=!0),E===0&&U.indexOf(":")!==-1?(g=!0,this.indent()):U in this.NESTED_AT_RULE?(this._nestedLevel+=1,U in this.CONDITIONAL_GROUP_RULE&&(b=!0)):E===0&&!g&&(x=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")g&&(g=!1,this.outdent()),x=!1,b?(b=!1,_=this._indentLevel>=this._nestedLevel):_=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&_&&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)):(P==="("?this._output.space_before_token=!1:P!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),P==="{"&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),_=!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 H=0;H<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;H++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[H])){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 R=P==='"'||P==="'";this.preserveSingleSpace(R||I),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 A=this._output.get_code(S);return A},jc.Beautifier=y,jc}var vm;function bA(){if(vm)return Nl.exports;vm=1;var e=yA().Beautifier,t=mm().Options;function r(o,i){var l=new e(o,i);return l.beautify()}return Nl.exports=r,Nl.exports.defaultOptions=function(){return new t},Nl.exports}var Dl={exports:{}},Uc={},Hc={},ym;function bm(){if(ym)return Hc;ym=1;var e=Vc().Options;function t(r){e.call(this,r,"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,Hc.Options=t,Hc}var Ol={},wm;function Cm(){if(wm)return Ol;wm=1;var e=kl().Tokenizer,t=kl().TOKEN,r=Pc().Directives,o=cm().TemplatablePattern,i=xl().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 r(/<\!--/,/-->/),c=function(u,m){e.call(this,u,m),this._current_tag_name="";var h=new o(this._input).read_options(this._options),y=new i(this._input);if(this.__patterns={word:h.until(/[\n\r\t <]/),word_control_flow_close_excluded:h.until(/[\n\r\t <}]/),single_quote:h.until_after(/'/),double_quote:h.until_after(/"/),attribute:h.until(/[\n\r\t =>]|\/>/),element_name:h.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.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=y.matching(C).until_after(C)}}
|
|||
|
`,_&&i.test(_)&&(g=_.match(i)[0])),_=_.replace(l,`
|
|||
|
`);var b=_.match(/^[\t ]*/)[0],x={text:"",type:""},k=new S(this._options),N=new d(this._options,b),V=new r(_,this._options).tokenize();this._tag_stack=new y(N);for(var F=null,I=V.next();I.type!==o.EOF;)I.type===o.TAG_OPEN||I.type===o.COMMENT?(F=this._handle_tag_open(N,I,k,x,V),k=F):I.type===o.ATTRIBUTE||I.type===o.EQUALS||I.type===o.VALUE||I.type===o.TEXT&&!k.tag_complete?F=this._handle_inside_tag(N,I,k,x):I.type===o.TAG_CLOSE?F=this._handle_tag_close(N,I,k):I.type===o.TEXT?F=this._handle_text(N,I,k):I.type===o.CONTROL_FLOW_OPEN?F=this._handle_control_flow_open(N,I):I.type===o.CONTROL_FLOW_CLOSE?F=this._handle_control_flow_close(N,I):N.add_raw_token(I),x=F,I=V.next();var P=N._output.get_code(g);return P},C.prototype._handle_control_flow_open=function(_,g){var b={text:g.text,type:g.type};return _.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),g.newlines?_.print_preserved_newlines(g):_.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.print_token(g),_.indent(),b},C.prototype._handle_control_flow_close=function(_,g){var b={text:g.text,type:g.type};return _.deindent(),g.newlines?_.print_preserved_newlines(g):_.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.print_token(g),b},C.prototype._handle_tag_close=function(_,g,b){var x={text:g.text,type:g.type};return _.alignment_size=0,b.tag_complete=!0,_.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.is_unformatted?_.add_raw_token(g):(b.tag_start_char==="<"&&(_.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&_.print_newline(!1)),_.print_token(g)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(_.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&_.set_wrap_point(),x},C.prototype._handle_inside_tag=function(_,g,b,x){var k=b.has_wrapped_attrs,N={text:g.text,type:g.type};return _.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.is_unformatted?_.add_raw_token(g):b.tag_start_char==="{"&&g.type===o.TEXT?_.print_preserved_newlines(g)?(g.newlines=0,_.add_raw_token(g)):_.print_token(g):(g.type===o.ATTRIBUTE?_.set_space_before_token(!0):(g.type===o.EQUALS||g.type===o.VALUE&&g.previous.type===o.EQUALS)&&_.set_space_before_token(!1),g.type===o.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(_.traverse_whitespace(g),k=k||g.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(x.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(_.print_newline(!1),k=!0)),_.print_token(g),k=k||_.previous_token_wrapped(),b.has_wrapped_attrs=k),N},C.prototype._handle_text=function(_,g,b){var x={text:g.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(_,g,b):b.is_unformatted||b.is_content_unformatted?_.add_raw_token(g):(_.traverse_whitespace(g),_.print_token(g)),x},C.prototype._print_custom_beatifier_text=function(_,g,b){var x=this;if(g.text!==""){var k=g.text,N,V=1,F="",I="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?N=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?N=this._css_beautify:b.custom_beautifier_name==="html"&&(N=function(H,R){var z=new C(H,R,x._js_beautify,x._css_beautify);return z.beautify()}),this._options.indent_scripts==="keep"?V=0:this._options.indent_scripts==="separate"&&(V=-_.indent_level);var P=_.get_full_indent(V);if(k=k.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&k[0]==="<"&&k.match(/^(<!--|<!\[CDATA\[)/)){var T=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(k);if(!T){_.add_raw_token(g);return}F=P+T[1]+`
|
|||
|
`,k=T[4],T[5]&&(I=P+T[5]),k=k.replace(/\n[ \t]*$/,""),(T[2]||T[3].indexOf(`
|
|||
|
`)!==-1)&&(T=T[3].match(/[ \t]+$/),T&&(g.whitespace_before=T[0]))}if(k)if(N){var B=function(){this.eol=`
|
|||
|
`};B.prototype=this._options.raw_options;var L=new B;k=N(P+k,L)}else{var U=g.whitespace_before;U&&(k=k.replace(new RegExp(`
|
|||
|
(`+U+")?","g"),`
|
|||
|
`)),k=P+k.replace(/\n/g,`
|
|||
|
`+P)}F&&(k?k=F+k+`
|
|||
|
`+I:k=F+I),_.print_newline(!1),k&&(g.text=k,g.whitespace_before="",g.newlines=0,_.add_raw_token(g),_.print_newline(!0))}},C.prototype._handle_tag_open=function(_,g,b,x,k){var N=this._get_tag_open_token(g);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&g.type===o.TAG_OPEN&&!N.is_start_tag?(_.add_raw_token(g),N.start_tag_token=this._tag_stack.try_pop(N.tag_name)):(_.traverse_whitespace(g),this._set_tag_position(_,g,N,b,x),N.is_inline_element||_.set_wrap_point(),_.print_token(g)),N.is_start_tag&&this._is_wrap_attributes_force){var V=0,F;do F=k.peek(V),F.type===o.ATTRIBUTE&&(N.attr_count+=1),V+=1;while(F.type!==o.EOF&&F.type!==o.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(N.alignment_size=g.text.length+1),!N.tag_complete&&!N.is_unformatted&&(_.alignment_size=N.alignment_size),N};var S=function(_,g,b){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="",!b)this.tag_complete=!0;else{var x;this.tag_start_char=b.text[0],this.text=b.text,this.tag_start_char==="<"?(x=b.text.match(/^<([^\s>]*)/),this.tag_check=x?x[1]:""):(x=b.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=x?x[1]:"",(b.text.startsWith("{{#>")||b.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&b.next!==null?this.tag_check=b.next.text.split(" ")[0]:this.tag_check=b.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),b.type===o.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||b.closed&&b.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==="{"&&(!_.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(k)))}};C.prototype._get_tag_open_token=function(_){var g=new S(this._options,this._tag_stack.get_parser_token(),_);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||m(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&&m(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&m(g.tag_check,this._options.content_unformatted),g.is_inline_element=m(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(_,g,b,x,k){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||_.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=u(b.tag_check,g)))),m(b.tag_check,this._options.extra_liners)&&(_.print_newline(!1),_._output.just_added_blankline()||_.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var N=_.current_line_has_match(/{{#if/);N||_.print_newline(!1)}b.tag_name==="!--"&&k.type===o.TAG_CLOSE&&x.is_end_tag&&b.text.indexOf(`
|
|||
|
`)===-1||(b.is_inline_element||b.is_unformatted||_.print_newline(!1),this._calcluate_parent_multiline(_,b))}else if(b.is_end_tag){var V=!1;V=b.start_tag_token&&b.start_tag_token.multiline_content,V=V||!b.is_inline_element&&!(x.is_inline_element||x.is_unformatted)&&!(k.type===o.TAG_CLOSE&&b.start_tag_token===x)&&k.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(V=!1),V&&_.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(k.type!=="TK_CONTENT"||b.is_content_unformatted)&&_.print_newline(!1),this._calcluate_parent_multiline(_,b)},C.prototype._calcluate_parent_multiline=function(_,g){g.parent&&_._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(_){var g=null;if(!(_.is_empty_element||!_.is_start_tag||!_.parent)){if(_.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(_.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(_.tag_name==="dd"||_.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(_.parent.tag_name==="p"&&w.indexOf(_.tag_name)!==-1){var b=_.parent.parent;(!b||E.indexOf(b.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else _.tag_name==="rp"||_.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):_.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):_.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):_.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):_.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):_.tag_name==="tbody"||_.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"])):_.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"])):(_.tag_name==="th"||_.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 _.parent=this._tag_stack.get_parser_token(),g}},Uc.Beautifier=C,Uc}var Em;function CA(){if(Em)return Dl.exports;Em=1;var e=wA().Beautifier,t=bm().Options;function r(o,i,l,d){var c=new e(o,i,l,d);return c.beautify()}return Dl.exports=r,Dl.exports.defaultOptions=function(){return new t},Dl.exports}var Am;function _A(){if(Am)return Wo;Am=1;var e=vA(),t=bA(),r=CA();function o(i,l,d,c){return d=d||e,c=c||t,r(i,l,d,c)}return o.defaultOptions=r.defaultOptions,Wo.js=e,Wo.css=t,Wo.html=o,Wo}(function(e){function t(r,o,i){var l=function(d,c){return r.js_beautify(d,c)};return l.js=r.js_beautify,l.css=o.css_beautify,l.html=i.html_beautify,l.js_beautify=r.js_beautify,l.css_beautify=o.css_beautify,l.html_beautify=i.html_beautify,l}(function(r){var o=_A();o.js_beautify=o.js,o.css_beautify=o.css,o.html_beautify=o.html,r.exports=t(o,o,o)})(e)})(Yh);const Kr=Yh.exports;function EA(e){const t={};return Object.values(e.import).forEach(r=>{t[r.name]=r.path}),` import { defineComponent } from "vue";
|
|||
|
${Object.keys(t).map(r=>`import ${r} from '${t[r]}';`).join(`
|
|||
|
`)}
|
|||
|
export default defineComponent({
|
|||
|
name: "FcTemplate",
|
|||
|
components: {
|
|||
|
${Object.keys(t).join(",")}
|
|||
|
},
|
|||
|
props: {},
|
|||
|
data() {
|
|||
|
return ${En(e.data)}
|
|||
|
},
|
|||
|
methods: ${En(e.methods)}
|
|||
|
});
|
|||
|
`}function AA(e){const t={};return Object.values(e.import).forEach(r=>{t[r.name]=r.path}),` import { ref } from "vue";
|
|||
|
${Object.keys(t).map(r=>`import ${r} from '${t[r]}';`).join(`
|
|||
|
`)}
|
|||
|
${Object.keys(e.data).map(r=>`const ${r} = ref(${En(e.data[r])})`).join(`
|
|||
|
`)}
|
|||
|
${Object.keys(e.methods).map(r=>En(e.methods[r])).join(`
|
|||
|
`)}
|
|||
|
`}function Wc(e,t){const r=[];return e&&e.forEach(o=>{if(!(o&&o._menu&&o._menu.sfc===!1))if(typeof o=="string")r.push(o);else if(o._fc_drag_tag){const i={...o,children:Wc(o.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,r.push(i)}else r.push(...Wc(o.children,["DragBox","DragTool"].indexOf(o.type)>-1?o.slot||t:""))}),r}function SA(e,t,r,o){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 _=d.join(".");return _&&(_+="."),_}function u(_,g){return g?`<${_.type}${m(_)}>${g}</${_.type}>`:`<${_.type}${m(_)}/>`}function m(_){const g=_.props||{},b=_._sfc||{};let x=[];if(_.class&&x.push(`class="${Array.isArray(_.class)?_.class.join(" "):_.class}"`),_.slot&&_.slot!=="default"&&x.push("#"+_.slot),Object.keys(g).forEach(N=>{const V=g[N];if(V&&typeof V=="object"){const F=_._fc_id?_._fc_id+"_"+N:N;l.data[F]=V,x.push(`:${N}="${F}"`)}else if(V!=null&&V!==""&&typeof V!="function"){let F=typeof V=="string"?"":":";F+=`${N}="${V}"`,x.push(F)}}),_.field){let N=_.value;const V={array:[],string:"",number:0};if(_.value==null){const F=r[_._fc_drag_tag];F&&Array.isArray(F.validate)&&ai(V,F.validate[0])&&(N=V[F.validate[0]])}l.data.formData[_.field]=N,b.vModel!==!1&&x.push(`v-model${b.modelField?":"+b.modelField:""}="formData.${c()}${_.field}"`)}if(_.style){const N=xA(_.style||"");N&&x.push(`style="${N}"`)}b.attr&&Object.keys(b.attr).forEach(N=>{x.push(`${N}="${b.attr[N]}"`)}),b.prop&&Object.keys(b.prop).forEach(N=>{const V=_._fc_id+"_"+N;l.data[V]=b.prop[N],x.push(`:${N}="${V}"`)}),b.flag&&b.flag.forEach(N=>{x.push(N)});let k=x.join(" ");return k&&(k=" "+k.trim()),k}function h(_){return _?_.map(g=>{var F,I,P;let b="";const x=g._menu;let k=at(g),N;if(x&&x.sfc){let T;if(typeof x.sfc=="object"?(T=x.sfc.handle,x.sfc.style&&(l.style[x.name]=x.sfc.style),x.sfc.import&&(l.import[x.name]=x.sfc.import)):T=x.sfc,T){const B=T(k,{transition:h,scope:l,getParentFieldStr:c})||k;typeof B=="string"?N=B:k=B}}const V=k.native!==!1&&(k.field||k.title);return N||(k._sfc&&k._sfc.parentField&&d.push(k.parentField),k._sfc&&k._sfc.content?b=`${k._sfc.content}`:k.children&&(b=`
|
|||
|
`+h(k.children)+`
|
|||
|
`),i&&i[k.type]&&(k.type=Xs(i[k.type])),N=u(k,b),k._sfc&&k._sfc.parentField&&d.pop()),V&&((F=k==null?void 0:k.wrap)==null?void 0:F.show)!==!1&&(N=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:(I=k==null?void 0:k.wrap)==null?void 0:I.style,class:(P=k==null?void 0:k.wrap)==null?void 0:P.class},`
|
|||
|
`+N+`
|
|||
|
`)),N}).join(`
|
|||
|
`):""}e=Wc(e);const y=[];t.submitBtn.show&&y.push({type:"elButton",props:{type:"primary"},_sfc:{attr:{"@click":"submit"},content:t.submitBtn.innerText||"\u63D0\u4EA4"}}),t.resetBtn.show&&y.push({type:"elButton",props:{type:"default"},_sfc:{attr:{"@click":"reset"},content:t.resetBtn.innerText||"\u91CD\u7F6E"}}),y.length&&e.push({type:"elFormItem",children:y});const C=h([{type:"template",children:[{type:"elForm",props:t.form||{},children:e,_sfc:{attr:{ref:"form",":model":"formData"},flag:["@submit.prevent"]}}]}]);t.formData&&ml(l.data.formData,t.formData);const S=Kr.html(C,{indent_size:2,indent_char:" ",indent_scripts:"separate",jslint_happy:!1}),w=Kr.js(o?EA(l):AA(l),{indent_size:2,indent_char:" ",indent_scripts:"separate"}),E=Kr.css(Object.values(l.style).join(`
|
|||
|
`),{indent_size:2,indent_char:" ",indent_scripts:"separate"});return`${S}
|
|||
|
<script${o?"":" setup"}>
|
|||
|
${w}
|
|||
|
<\/script>
|
|||
|
<style>
|
|||
|
${E}
|
|||
|
</style>
|
|||
|
`}function xA(e){return!e||typeof e=="string"?e||"":Object.keys(e).reduce((t,r)=>(e[r]!=null&&e[r]!==""&&t.push(Ho(r)+":"+e[r]+";"),t),[]).join("")}const B4="",kA=n.defineComponent({name:"SubList",components:{fcDraggable:Lr,VNode:xh,ConfigItem:Rn},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 r=this.activeRule.children.splice(e,1);this.activeRule.children.splice(t,0,r[0]),this.activeRule.key=We()}}}),TA={class:"_fc-sublist"},NA={class:"_fc-r-title"},DA=["onClick"],OA=["onClick"];function VA(e,t,r,o,i,l){const d=n.resolveComponent("VNode"),c=n.resolveComponent("ConfigItem"),u=n.resolveComponent("fcDraggable");return n.openBlock(),n.createElementBlock("div",TA,[n.createElementVNode("p",NA,[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]=m=>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:m,index:h})=>[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."+m._menu.name+".name")||e.activeRule._menu.label)+" "+(h+1)),1)]),default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-copy",onClick:y=>e.toolHandle(m,"copy")},null,8,DA),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:y=>e.toolHandle(m,"delete")},null,8,OA)]),_:2},[e.activeRule._menu.subRender?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{fn:()=>e.subRender(e.activeRule._menu.subRender,e.activeRule,m)},null,8,["fn"])]),key:"0"}:void 0]),1024)]),_:1},8,["onEnd","list"])])}const BA=De(kA,[["render",VA]]),R4="",RA=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()}}}),$A={key:0,class:"_fc-r-tools-bar"},IA={class:"_fc-r-tools"},FA=["onClick"];function MA(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip");return e.tools.length>2?(n.openBlock(),n.createElementBlock("div",$A,[n.createElementVNode("div",IA,[(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,FA)]),_: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 PA=De(RA,[["render",MA]]),$4="",LA=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(r=>{let o="";t[r].style&&Object.keys(t[r].style).forEach(i=>{o+=Ho(i)+":"+t[r].style[i]+";"}),t[r].content&&(o+=t[r].content+";"),o&&(e+=`.${r}{${o}}`)}),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)}}),dk={class:"_fd-gcc"},ck={class:"_fd-gcc-method"},uk={class:"_fd-label"},fk=["onClick"],pk={class:"_fd-gcc-method"},hk={key:0,class:"_fd-label"},mk=["onClick"];function gk(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),m=n.resolveComponent("el-header"),h=n.resolveComponent("el-menu-item"),y=n.resolveComponent("el-input"),C=n.resolveComponent("el-menu"),S=n.resolveComponent("el-main"),w=n.resolveComponent("el-container"),E=n.resolveComponent("el-aside"),_=n.resolveComponent("StyleEditor"),g=n.resolveComponent("StyleConfig"),b=n.resolveComponent("el-form"),x=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",dk,[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(m,{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(h,{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",ck,[n.createElementVNode("span",uk,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(":"),r=d.substring(0,i).trim().toLowerCase(),o=d.substring(i+1).trim(),!(!r||t[r]&&_T[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},ig=Symbol("internals");function Qo(e){return e&&String(e).trim().toLowerCase()}function Ml(e){return e===!1||e==null?e:xe.isArray(e)?e.map(Ml):String(e)}function AT(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const ST=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tu(e,t,r,o,i){if(xe.isFunction(o))return o.call(this,t,r);if(i&&(t=r),!!xe.isString(t)){if(xe.isString(o))return t.indexOf(o)!==-1;if(xe.isRegExp(o))return o.test(t)}}function xT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function kT(e,t){const r=xe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(i,l,d){return this[o].call(this,t,i,l,d)},configurable:!0})})}class Pl{constructor(t){t&&this.set(t)}set(t,r,o){const i=this;function l(c,u,m){const h=Qo(u);if(!h)throw new Error("header name must be a non-empty string");const y=xe.findKey(i,h);(!y||i[y]===void 0||m===!0||m===void 0&&i[y]!==!1)&&(i[y||u]=Ml(c))}const d=(c,u)=>xe.forEach(c,(m,h)=>l(m,h,u));if(xe.isPlainObject(t)||t instanceof this.constructor)d(t,r);else if(xe.isString(t)&&(t=t.trim())&&!ST(t))d(ET(t),r);else if(xe.isObject(t)&&xe.isIterable(t)){let c={},u,m;for(const h of t){if(!xe.isArray(h))throw TypeError("Object iterator must return a key-value pair");c[m=h[0]]=(u=c[m])?xe.isArray(u)?[...u,h[1]]:[u,h[1]]:h[1]}d(c,r)}else t!=null&&l(r,t,o);return this}get(t,r){if(t=Qo(t),t){const o=xe.findKey(this,t);if(o){const i=this[o];if(!r)return i;if(r===!0)return AT(i);if(xe.isFunction(r))return r.call(this,i,o);if(xe.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Qo(t),t){const o=xe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||tu(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let i=!1;function l(d){if(d=Qo(d),d){const c=xe.findKey(o,d);c&&(!r||tu(o,o[c],c,r))&&(delete o[c],i=!0)}}return xe.isArray(t)?t.forEach(l):l(t),i}clear(t){const r=Object.keys(this);let o=r.length,i=!1;for(;o--;){const l=r[o];(!t||tu(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const r=this,o={};return xe.forEach(this,(i,l)=>{const d=xe.findKey(o,l);if(d){r[d]=Ml(i),delete r[l];return}const c=t?xT(l):String(l).trim();c!==l&&delete r[l],r[c]=Ml(i),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return xe.forEach(this,(o,i)=>{o!=null&&o!==!1&&(r[i]=t&&xe.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const o=new this(t);return r.forEach(i=>o.set(i)),o}static accessor(t){const o=(this[ig]=this[ig]={accessors:{}}).accessors,i=this.prototype;function l(d){const c=Qo(d);o[c]||(kT(i,d),o[c]=!0)}return xe.isArray(t)?t.forEach(l):l(t),this}}Pl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xe.reduceDescriptors(Pl.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}}),xe.freezeMethods(Pl);const Zn=Pl;function nu(e,t){const r=this||eu,o=t||r,i=Zn.from(o.headers);let l=o.data;return xe.forEach(e,function(c){l=c.call(r,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function rg(e){return!!(e&&e.__CANCEL__)}function Xr(e,t,r){ft.call(this,e==null?"canceled":e,ft.ERR_CANCELED,t,r),this.name="CanceledError"}xe.inherits(Xr,ft,{__CANCEL__:!0});function og(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new ft("Request failed with status code "+r.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function TT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function NT(e,t){e=e||10;const r=new Array(e),o=new Array(e);let i=0,l=0,d;return t=t!==void 0?t:1e3,function(u){const m=Date.now(),h=o[l];d||(d=m),r[i]=u,o[i]=m;let y=l,C=0;for(;y!==i;)C+=r[y++],y=y%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),m-d<t)return;const S=h&&m-h;return S?Math.round(C*1e3/S):void 0}}function DT(e,t){let r=0,o=1e3/t,i,l;const d=(m,h=Date.now())=>{r=h,i=null,l&&(clearTimeout(l),l=null),e.apply(null,m)};return[(...m)=>{const h=Date.now(),y=h-r;y>=o?d(m,h):(i=m,l||(l=setTimeout(()=>{l=null,d(i)},o-y)))},()=>i&&d(i)]}const Ll=(e,t,r=3)=>{let o=0;const i=NT(50,250);return DT(l=>{const d=l.loaded,c=l.lengthComputable?l.total:void 0,u=d-o,m=i(u),h=d<=c;o=d;const y={loaded:d,total:c,progress:c?d/c:void 0,bytes:u,rate:m||void 0,estimated:m&&c&&h?(c-d)/m:void 0,event:l,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(y)},r)},ag=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},lg=e=>(...t)=>xe.asap(()=>e(...t)),OT=cn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,cn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(cn.origin),cn.navigator&&/(msie|trident)/i.test(cn.navigator.userAgent)):()=>!0,VT=cn.hasStandardBrowserEnv?{write(e,t,r,o,i,l){const d=[e+"="+encodeURIComponent(t)];xe.isNumber(r)&&d.push("expires="+new Date(r).toGMTString()),xe.isString(o)&&d.push("path="+o),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 BT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sg(e,t,r){let o=!BT(t);return e&&(o||r==!1)?RT(e,t):t}const dg=e=>e instanceof Zn?{...e}:e;function ur(e,t){t=t||{};const r={};function o(m,h,y,C){return xe.isPlainObject(m)&&xe.isPlainObject(h)?xe.merge.call({caseless:C},m,h):xe.isPlainObject(h)?xe.merge({},h):xe.isArray(h)?h.slice():h}function i(m,h,y,C){if(xe.isUndefined(h)){if(!xe.isUndefined(m))return o(void 0,m,y,C)}else return o(m,h,y,C)}function l(m,h){if(!xe.isUndefined(h))return o(void 0,h)}function d(m,h){if(xe.isUndefined(h)){if(!xe.isUndefined(m))return o(void 0,m)}else return o(void 0,h)}function c(m,h,y){if(y in t)return o(m,h);if(y in e)return o(void 0,m)}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(mg).join(`
|
|||
|
`):" "+mg(l[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return o},adapters:ru};function ou(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xr(null,e)}function vg(e){return ou(e),e.headers=Zn.from(e.headers),e.data=nu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gg.getAdapter(e.adapter||eu.adapter)(e).then(function(o){return ou(e),o.data=nu.call(e,e.transformResponse,o),o.headers=Zn.from(o.headers),o},function(o){return rg(o)||(ou(e),o&&o.response&&(o.response.data=nu.call(e,e.transformResponse,o.response),o.response.headers=Zn.from(o.response.headers))),Promise.reject(o)})}const yg="1.9.0",Ul={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ul[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const bg={};Ul.transitional=function(t,r,o){function i(l,d){return"[Axios v"+yg+"] Transitional option '"+l+"'"+d+(o?". "+o:"")}return(l,d,c)=>{if(t===!1)throw new ft(i(d," has been removed"+(r?" in "+r:"")),ft.ERR_DEPRECATED);return r&&!bg[d]&&(bg[d]=!0,console.warn(i(d," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,d,c):!0}},Ul.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function WT(e,t,r){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const l=o[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(r!==!0)throw new ft("Unknown option "+l,ft.ERR_BAD_OPTION)}}const Hl={assertOptions:WT,validators:Ul},fi=Hl.validators;class Wl{constructor(t){this.defaults=t||{},this.interceptors={request:new eg,response:new eg}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{o.stack?l&&!String(o.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|||
|
`+l):o.stack=l}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ur(this.defaults,r);const{transitional:o,paramsSerializer:i,headers:l}=r;o!==void 0&&Hl.assertOptions(o,{silentJSONParsing:fi.transitional(fi.boolean),forcedJSONParsing:fi.transitional(fi.boolean),clarifyTimeoutError:fi.transitional(fi.boolean)},!1),i!=null&&(xe.isFunction(i)?r.paramsSerializer={serialize:i}:Hl.assertOptions(i,{encode:fi.function,serialize:fi.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Hl.assertOptions(r,{baseUrl:fi.spelling("baseURL"),withXsrfToken:fi.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=l&&xe.merge(l.common,l[r.method]);l&&xe.forEach(["delete","get","head","post","put","patch","common"],w=>{delete l[w]}),r.headers=Zn.concat(d,l);const c=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(u=u&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const m=[];this.interceptors.response.forEach(function(E){m.push(E.fulfilled,E.rejected)});let h,y=0,C;if(!u){const w=[vg.bind(this),void 0];for(w.unshift.apply(w,c),w.push.apply(w,m),C=w.length,h=Promise.resolve(r);y<C;)h=h.then(w[y++],w[y++]);return h}C=c.length;let S=r;for(y=0;y<C;){const w=c[y++],E=c[y++];try{S=w(S)}catch(_){E.call(this,_);break}}try{h=vg.call(this,S)}catch(w){return Promise.reject(w)}for(y=0,C=m.length;y<C;)h=h.then(m[y++],m[y++]);return h}getUri(t){t=ur(this.defaults,t);const r=sg(t.baseURL,t.url,t.allowAbsoluteUrls);return qm(r,t.params,t.paramsSerializer)}}xe.forEach(["delete","get","head","options"],function(t){Wl.prototype[t]=function(r,o){return this.request(ur(o||{},{method:t,url:r,data:(o||{}).data}))}}),xe.forEach(["post","put","patch"],function(t){function r(o){return function(l,d,c){return this.request(ur(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:d}))}}Wl.prototype[t]=r(),Wl.prototype[t+"Form"]=r(!0)});const Gl=Wl;class au{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const o=this;this.promise.then(i=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](i);o._listeners=null}),this.promise.then=i=>{let l;const d=new Promise(c=>{o.subscribe(c),l=c}).then(i);return d.cancel=function(){o.unsubscribe(l)},d},t(function(l,d,c){o.reason||(o.reason=new Xr(l,d,c),r(o.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new au(function(i){t=i}),cancel:t}}}const GT=au;function KT(e){return function(r){return e.apply(null,r)}}function YT(e){return xe.isObject(e)&&e.isAxiosError===!0}const lu={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
|
|||
|
`+D.style),A.formOptions.language||(A.formOptions.language={}),D.language&&Object.keys(D.language).forEach(W=>{A.formOptions.language[W]={...A.formOptions.language[W]||{},...D.language[W]}}),D.languageKey){const W=X.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]);D.languageKey.forEach(Y=>{W.forEach(({value:q})=>{A.formOptions.language[q]||(A.formOptions.language[q]={}),A.formOptions.language[q][Y]||(A.formOptions.language[q][Y]="")})})}},updateOptionsValue(){const D={};A.oldOptionsKeys.forEach(Y=>{D[Y]=void 0});const W={...D,...A.formOptions.form};Object.keys(A.formOptions).forEach(Y=>{const q=A.formOptions[Y];W[">"+Y]=q,typeof q=="object"&&Object.keys(q).forEach(ee=>{W[Y+">"+ee]=q[ee]})}),A.form.value=W},setGlobalEvent(D){A.formOptions.globalEvent={...A.formOptions.globalEvent||{},...D},X.updateOptionsValue()},setGlobalData(D){A.formOptions.globalData={...A.formOptions.globalData||{},...D},X.updateOptionsValue()},setGlobalClass(D){A.formOptions.globalClass={...A.formOptions.globalClass||{},...D},X.updateOptionsValue()},setGlobalVariable(D){A.formOptions.globalVariable={...A.formOptions.globalVariable||{},...D},X.updateOptionsValue()},tidyRule(D){var Y;["control","computed","on","hidden","display"].forEach(q=>{D[q]!=null&&(D["_"+q]=D[q],delete D[q])}),(Y=D.effect)!=null&&Y.loadData&&(D._loadData=D.effect.loadData,delete D.effect.loadData),D.$loadData&&(D._loadData=D.$loadData,delete D.$loadData)},loadRule(D,W,Y){const q=[];return D.forEach(ee=>{if(ct.String(ee))return q.push(ee);if(ee._fc_drag_skip)return;let oe=A.dragRuleList[ee._fc_drag_tag]||A.dragRuleList[ee.type];if(oe||(oe=jw(ee),ee._fc_drag_tag="_"),Y&&(ee._fc_template=Y),oe&&oe.loadRule&&oe.loadRule(ee),ee.children=X.loadRule(ee.children||[],oe,Y),oe){const he=ee.slot;let Se;W&&W.slot&&he&&he!=="default"&&(Se=X.getSlotConfig(W,he,oe)),delete ee.slot,ee=X.makeRule(Se||oe,ee),he&&(ee.slot=he)}else X.tidyRule(ee);q.push(ee)}),q},parseRule(D,W){return[...D].reduce((Y,q)=>{let ee=W;if(ct.String(q))return Y.push(q),Y;if(q.type==="DragBox")return Y.push(...X.parseRule(q.children,ee||q.slot)),Y;if(q.type==="DragTool"){if(ee=q.slot||W,q=q.children[0],ct.String(q))return Y.push(q),Y;if(q.type==="DragBox")return Y.push(...X.parseRule(q.children,ee||q.slot)),Y}return!q||q._fc_drag_skip||(q={...q},ee&&ee!=="default"&&(q.slot=ee),q.children&&q.children.length&&(q.children=X.parseRule(q.children)),delete q.key,delete q.component,delete q._fc_page_tag,q._menu&&(q._menu.parseRule&&q._menu.parseRule(q),delete q._menu),q._fc_drag_tag==="_"&&delete q._fc_drag_tag,["control","computed","on","hidden","display"].forEach(he=>{q["_"+he]!=null&&q["_"+he]!==""&&(q[he]=q["_"+he]),delete q["_"+he]}),q.slot||delete q.slot,q._loadData&&(q.$loadData=q._loadData,delete q._loadData),q.props&&Object.keys(q.props).forEach(he=>{const Se=q.props[he];li(Se)&&delete q.props[he]}),q.props&&q.props.key&&(q.key=q.props.key),[q.wrap,q.title,q.info,q].forEach(he=>{he&&Object.keys(he).filter(Se=>Se.indexOf("__")===0||he[Se]===""||Array.isArray(he[Se])&&he[Se].length===0||ct.Object(he[Se])&&Object.keys(he[Se]).length===0).forEach(Se=>{delete he[Se]})}),Y.push(q)),Y},[])},fields(){return A.dragForm.api.all().map(D=>D.field).filter(D=>!!D)},getTitle(D){var W,Y,q;return(((q=(Y=(W=D==null?void 0:D.__fc__)==null?void 0:W.refRule)==null?void 0:Y.__$title)==null?void 0:q.value)||D.title||"").trim()||D.props&&D.props.label||z("com."+(D._menu&&D._menu.name)+".name")||D._menu&&D._menu.label||D.type},baseChange(D,W,Y,q){X.handleChange("",D,W,Y,q)},formOptChange(D,W){A.form.value[D]=W,D.indexOf(">")===-1&&(D="form>"+D);let Y=A.formOptions;const q=D.split(">"),ee=q.pop();q.forEach(oe=>{oe&&(Y[oe]||(Y[oe]={}),Y=Y[oe])}),Y[ee]=W},propRemoveField(D,W,Y){var q,ee,oe;if(A.activeRule&&Y[A.activeRule._fc_id]===A.activeRule){X.unWatchActiveRule();const he=D;A.dragForm.api.sync(A.activeRule),D.indexOf("__")!==0&&(D==="formCreateChild"?delete A.activeRule.children[0]:D.indexOf("formCreate")===0||D.indexOf(">")>0?(D.indexOf("formCreate")<0&&(D="props>"+D),G(D,({source:Se,fi
|
|||
|
`)[0])!=null?i:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=n.markRaw(Si(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)?(sn(this.t("struct.errorMsg")),!1):(this.visible=!1,e!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),KN={class:"_fd-html-editor"},YN={key:0,ref:"editor"};function QN(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",KN,[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",YN,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const JN=De(GN,[["render",QN]]),_6="",XN=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(at(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 r=t&&t.__fc__&&t.__fc__.parent;for(;r;)if(r.rule._menu&&["array","object"].indexOf(r.rule._menu.subForm)>-1){const o=this.findChildrenById(e,r.rule.field)||e;o.length&&(e=o);break}else r=r.parent}return e},removeLeafNodes(e){if(!Array.isArray(e)||e.length===0)return e;function t(r){return r.filter(o=>o.children&&o.children.length>0?(o.children=t(o.children),!0):!1)}return t(e)},findChildrenById(e,t){if(!Array.isArray(e))return null;for(const r of e){if(r.value===t)return r.children||[];if(r.children){const o=this.findChildrenById(r.children,t);if(o!==null)return o}}return null},copy(){si(this.modelValue)},getSubChildren(){let e=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return e=ct.trueArray(e)?e:this.designer.setupState.children,e},getSubFieldChildren(){const e=this.getSubChildren(),t=[],r=o=>(o&&o.forEach(i=>{i&&i._fc_drag_tag&&i.field?t.push({...i,children:[]}):i&&i.children&&r(i.children)}),t);return r(e)},checkValue(){const e=this.oldValue;cp(e);let t=(this.value||"").replace(/[\s\ ]/g,"");if(t)if(/^[a-zA-Z]/.test(t)){if(e!==t){const r=t.indexOf(".")>-1;if(r&&(t=t.replaceAll(".","_")),this.getSubFieldChildren().filter(o=>o.field===t).length>0)return sn(this.t("computed.fieldExist",{label:t})),e;if(r)return t}}else return sn(this.t("computed.fieldChar")),e;else return sn(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
|
|||
|
`}return mt%2&&He>0?$e.substring(0,$e.length-mt-1)+Array(mt+1).join("\u2580"):$e.substring(0,$e.length-1)}(W);D-=1,W=W===void 0?2*D:W;var Y,q,ee,oe,he=ie.getModuleCount()*D+2*W,Se=W,Pe=he-W,Le=Array(D+1).join("\u2588\u2588"),fe=Array(D+1).join(" "),ke="",we="";for(Y=0;Y<he;Y+=1){for(ee=Math.floor((Y-Se)/D),we="",q=0;q<he;q+=1)oe=1,Se<=q&&q<Pe&&Se<=Y&&Y<Pe&&ie.isDark(ee,Math.floor((q-Se)/D))&&(oe=0),we+=oe?Le:fe;for(ee=0;ee<D;ee+=1)ke+=we+`
|
|||
|
`}return ke.substring(0,ke.length-1)},ie.renderTo2dContext=function(D,W){W=W||2;for(var Y=ie.getModuleCount(),q=0;q<Y;q++)for(var ee=0;ee<Y;ee++)D.fillStyle=ie.isDark(q,ee)?"black":"white",D.fillRect(q*W,ee*W,W,W)},ie};y.stringToBytes=(y.stringToBytesFuncs={default:function(H){for(var R=[],z=0;z<H.length;z+=1){var $=H.charCodeAt(z);R.push(255&$)}return R}}).default,y.createStringToBytes=function(H,R){var z=function(){for(var A=L(H),J=function(){var be=A.read();if(be==-1)throw"eof";return be},Q=0,G={};;){var ie=A.read();if(ie==-1)break;var X=J(),le=J()<<8|J();G[String.fromCharCode(ie<<8|X)]=le,Q+=1}if(Q!=R)throw Q+" != "+R;return G}(),$="?".charCodeAt(0);return function(A){for(var J=[],Q=0;Q<A.length;Q+=1){var G=A.charCodeAt(Q);if(G<128)J.push(G);else{var ie=z[A.charAt(Q)];typeof ie=="number"?(255&ie)==ie?J.push(ie):(J.push(ie>>>8),J.push(255&ie)):J.push($)}}return J}};var C,S,w,E,_,g={L:1,M:0,Q:3,H:2},b=(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,_=function(H){for(var R=0;H!=0;)R+=1,H>>>=1;return R},(E={}).getBCHTypeInfo=function(H){for(var R=H<<10;_(R)-_(S)>=0;)R^=S<<_(R)-_(S);return 21522^(H<<10|R)},E.getBCHTypeNumber=function(H){for(var R=H<<12;_(R)-_(w)>=0;)R^=w<<_(R)-_(w);return H<<12|R},E.getPatternPosition=function(H){return C[H-1]},E.getMaskFunction=function(H){switch(H){case 0:return function(R,z){return(R+z)%2==0};case 1:return function(R,z){return R%2==0};case 2:return function(R,z){return z%3==0};case 3:return function(R,z){return(R+z)%3==0};case 4:return function(R,z){return(Math.floor(R/2)+Math.floor(z/3))%2==0};case 5:return function(R,z){return R*z%2+R*z%3==0};case 6:return function(R,z){return(R*z%2+R*z%3)%2==0};case 7:return function(R,z){return(R*z%3+(R+z)%2)%2==0};default:throw"bad maskPattern:"+H}},E.getErrorCorrectPolynomial=function(H){for(var R=k([1],0),z=0;z<H;z+=1)R=R.multiply(k([1,x.gexp(z)],0));return R},E.getLengthInBits=function(H,R){if(1<=R&&R<10)switch(H){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+H}else if(R<27)switch(H){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+H}else{if(!(R<41))throw"type:"+R;switch(H){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+H}}},E.getLostPoint=function(H){for(var R=H.getModuleCount(),z=0,$=0;$<R;$+=1)for(var A=0;A<R;A+=1){for(var J=0,Q=H.isDark($,A),G=-1;G<=1;G+=1)if(!($+G<0||R<=$+G))for(var ie=-1;ie<=1;ie+=1)A+ie<0||R<=A+ie||G==0&&ie==0||Q==H.isDark($+G,A+ie)&&(J+=1);J>5&&(z+=3+J-5)}for($=0;$<R-1;$+=1)for(A=0;A<R-1;A+=1){var X=0;H.isDark($,A)&&(X+=1),H.isDark($+1,A)&&(X+=1),H.isDark($,A+1)&&(X+=1),H.isDark($+1,A+1)&&(X+=1),X!=0&&X!=4||(z+=3)}for($=0;$<R;$+=1)for(A=0;A<R-6;A+=1)H.isDark($,A)&&!H.isDark($,A+1)&&H.isDark($,A+2)&&H.isDark($,A+3)&&H.isDark($,A+4)&&!H.isDark($,A+5)&&H.isDark($,A+6)&&(z+=40);for(A=0;A<R;A+=1)for($=0;$<R-6;$+=1)H.isDark($,A)&&!H.isDark($+1,A)&&H.isDark($+2,A)&&H.isDark($+3,A)&&H.isDark($+4,A)&&!H.isDark($+5,A)&&H.isDark($+6,A)&&(z+=40);var le=0;for(A=0;A<R;A+=1)for($=0;$<R;$+=1)H.isDark($,A)&&(le+=1);return z+Math.abs(100*le/R/R-50)/5*10},E),x=function(){for(var H=new Array(256),R=new Array(256),z=0;z<8;z+=1)H[z]=1<<z;for(z=8;z<256;z+=1)H[z]=H[z-4]^H[z-5]^H[z-6]^H[z-8];for(z=0;z<255;z+=1)R[H[z]]=z;return{glog:function($){if($<1)throw"glog("+$+")";return R[$]},gexp:function($){for(;$<0;)$+=255;for(;$>=256;)$-=255;return H[$]}}}();function k(H,R){if(H.length===void 0)throw H.length+"/"+R;var z=function(){for(var A=0;A<H.length&&H[A]==0;)A+=
|
|||
|
${new this._window.XMLSerializer().serializeToString(A)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(Q):new Blob([Q],{type:J})}return new Promise(Q=>{const G=A;if("toBuffer"in G)if(J==="image/png")Q(G.toBuffer(J));else if(J==="image/jpeg")Q(G.toBuffer(J));else{if(J!=="application/pdf")throw Error("Unsupported extension");Q(G.toBuffer(J))}else"toBlob"in G&&G.toBlob(Q,J,1)})}async download($){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let A="png",J="qr";typeof $=="string"?(A=$,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof $=="object"&&$!==null&&($.name&&(J=$.name),$.extension&&(A=$.extension));const Q=await this._getElement(A);if(Q)if(A.toLowerCase()==="svg"){let G=new XMLSerializer().serializeToString(Q);G=`<?xml version="1.0" standalone="no"?>\r
|
|||
|
`+G,u(`data:${U(A)};charset=utf-8,${encodeURIComponent(G)}`,`${J}.svg`)}else u(Q.toDataURL(U(A)),`${J}.${A}`)}}const R=H})(),l.default})())})(vv);const L3=FC(vv.exports),j3=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 L3(e)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),z3={class:"_fc-qrcode",ref:"qr"};function U3(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",z3,null,512)}const H3=De(j3,[["render",U3]]),cj="",W3=n.defineComponent({name:"FcCity",props:{modelValue:Array,clearable:Boolean,disabled:Boolean,filter:Function,level:{type:Number,default:3},api:String},emits:["update:modelValue","change"],data(){return{value:{p:"",c:"",a:""},oldValue:"",province:[]}},watch:{modelValue:{handler(e){JSON.stringify(e)!==this.oldValue&&this.updateValue()},deep:!0}},computed:{city(){if(this.value.p){for(let e=0;e<this.province.length;e++)if(this.province[e].n===this.value.p)return this.province[e].d}return[]},area(){var e;if(this.value.c){for(let t=0;t<this.city.length;t++)if(this.city[t].n===this.value.c)return((e=this.city[t])==null?void 0:e.d)||[]}return[]}},methods:{updateValue(){var t,r,o;const e=JSON.stringify(this.modelValue);e!==JSON.stringify(this.oldValue)&&(this.value={p:((t=this.modelValue)==null?void 0:t[0])||"",c:((r=this.modelValue)==null?void 0:r[1])||"",a:((o=this.modelValue)==null?void 0:o[2])||""}),this.oldValue=e},changeProvince(e){this.value.p=e,this.value.c="",this.value.a=""},changeCity(e){this.value.c=e,this.value.a=""},onInput(){let e=[];this.value.p&&(e=[this.value.p,this.value.c,this.value.a].filter(t=>!!t),this.level<3&&e.length!==this.level||this.level>2&&(e.length<2||e.length===2&&this.area.length))||(this.oldValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e))},loadData(e){return fetch(e).then(t=>t.json()).then(t=>{this.province=n.markRaw(this.filter?this.filter(t)||[]:t)})}},created(){this.api?this.loadData(this.api):this.loadData("https://unpkg.com/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://cdn.jsdelivr.net/npm/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://npm.onmicrosoft.cn/@province-city-china/level/level.min.json")})})},mounted(){this.updateValue()}}),G3={class:"_fc-city"};function K3(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",G3,[n.createVNode(c,{disabled:e.disabled,clearable:e.clearable,modelValue:e.value.p,"onUpdate:modelValue":e.changeProvince,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.province,u=>(n.openBlock(),n.createBlock(d,{label:u.n,value:u.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onUpdate:modelValue","onChange"]),e.level>1&&e.city.length?(n.openBlock(),n.createBlock(c,{key:0,disabled:e.disabled,clearable:e.clearable,modelValue:e.value.c,"onUpdate:modelValue":e.changeCity,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.city,u=>(n.openBlock(),n.createBlock(d,{label:u.n,value:u.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onUpdate:modelValue","onChange"])):n.createCommentVNode("",!0),e.level>2&&e.area.length?(n.openBlock(),n.createBlock(c,{key:1,disabled:e.disabled,clearable:e.clearable,modelValue:e.value.a,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value.a=u),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.cr
|
|||
|
]`).replace("lheading",wv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},dP=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cP=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ev=/^( {2,}|\\)\n(?!\s*$)/,uP=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ss=/[\p{P}\p{S}]/u,nf=/[\s\p{P}\p{S}]/u,Av=/[^\s\p{P}\p{S}]/u,fP=Et(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,nf).getRegex(),Sv=/(?!~)[\p{P}\p{S}]/u,pP=/(?!~)[\s\p{P}\p{S}]/u,hP=/(?:[^\s\p{P}\p{S}]|~)/u,mP=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,xv=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,gP=Et(xv,"u").replace(/punct/g,ss).getRegex(),vP=Et(xv,"u").replace(/punct/g,Sv).getRegex(),kv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",yP=Et(kv,"gu").replace(/notPunctSpace/g,Av).replace(/punctSpace/g,nf).replace(/punct/g,ss).getRegex(),bP=Et(kv,"gu").replace(/notPunctSpace/g,hP).replace(/punctSpace/g,pP).replace(/punct/g,Sv).getRegex(),wP=Et("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Av).replace(/punctSpace/g,nf).replace(/punct/g,ss).getRegex(),CP=Et(/\\(punct)/,"gu").replace(/punct/g,ss).getRegex(),_P=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(),EP=Et(ef).replace("(?:-->|$)","-->").getRegex(),AP=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",EP).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ds=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,SP=Et(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ds).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Tv=Et(/^!?\[(label)\]\[(ref)\]/).replace("label",ds).replace("ref",qu).getRegex(),Nv=Et(/^!?\[(ref)\](?:\[\])?/).replace("ref",qu).getRegex(),xP=Et("reflink|nolink(?!\\()","g").replace("reflink",Tv).replace("nolink",Nv).getRegex(),rf={_backpedal:ra,anyPunctuation:CP,autolink:_P,blockSkip:mP,br:Ev,code:cP,del:ra,emStrongLDelim:gP,emStrongRDelimAst:yP,emStrongRDelimUnd:wP,escape:dP,link:SP,nolink:Nv,punctuation:fP,reflink:Tv,reflinkSearch:xP,tag:AP,text:uP,url:ra},kP={...rf,link:Et(/^!?\[(label)\]\((.*?)\)/).replace("label",ds).getRegex(),reflink:Et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ds).getRegex()},of={...rf,emStrongRDelimAst:bP,emStrongLDelim:vP,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.!#$%&'*+\/=?_`{\|}~-]+@)))/},TP={...of,br:Et(Ev).replace("{2,}","*").getRegex(),text:Et(of.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},cs={normal:tf,gfm:lP,pedantic:sP},aa={normal:rf,gfm:of,breaks:TP,pedantic:kP},NP={"&":"&","<":"<",">":">",'"':""","'":"'"},Dv=e=>NP[e];fun
|
|||
|
`).map(l=>{const d=l.match(r.other.beginningSpace);if(d===null)return l;const[c]=d;return c.length>=i.length?l.slice(i.length):l}).join(`
|
|||
|
`)}class us{constructor(t){Nt(this,"options");Nt(this,"rules");Nt(this,"lexer");this.options=t||gr}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const o=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?o:la(o,`
|
|||
|
`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const o=r[0],i=OP(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){const i=la(o,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(o=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:la(r[0],`
|
|||
|
`)}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){let o=la(r[0],`
|
|||
|
`).split(`
|
|||
|
`),i="",l="";const d=[];for(;o.length>0;){let c=!1;const u=[];let m;for(m=0;m<o.length;m++)if(this.rules.other.blockquoteStart.test(o[m]))u.push(o[m]),c=!0;else if(!c)u.push(o[m]);else break;o=o.slice(m);const h=u.join(`
|
|||
|
`),y=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|||
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|||
|
${h}`:h,l=l?`${l}
|
|||
|
${y}`:y;const C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,d,!0),this.lexer.state.top=C,o.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+`
|
|||
|
`+o.join(`
|
|||
|
`),_=this.blockquote(E);d[d.length-1]=_,i=i.substring(0,i.length-w.raw.length)+_.raw,l=l.substring(0,l.length-w.text.length)+_.text;break}else if((S==null?void 0:S.type)==="list"){const w=S,E=w.raw+`
|
|||
|
`+o.join(`
|
|||
|
`),_=this.list(E);d[d.length-1]=_,i=i.substring(0,i.length-S.raw.length)+_.raw,l=l.substring(0,l.length-w.raw.length)+_.raw,o=E.substring(d.at(-1).raw.length).split(`
|
|||
|
`);continue}}return{type:"blockquote",raw:i,tokens:d,text:l}}}list(t){let r=this.rules.block.list.exec(t);if(r){let o=r[1].trim();const i=o.length>1,l={type:"list",raw:"",ordered:i,start:i?+o.slice(0,-1):"",loose:!1,items:[]};o=i?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=i?o:"[*+-]");const d=this.rules.other.listItemRegex(o);let c=!1;for(;t;){let m=!1,h="",y="";if(!(r=d.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let C=r[2].split(`
|
|||
|
`,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),S=t.split(`
|
|||
|
`,1)[0],w=!C.trim(),E=0;if(this.options.pedantic?(E=2,y=C.trimStart()):w?E=r[1].length+1:(E=r[2].search(this.rules.other.nonSpaceChar),E=E>4?1:E,y=C.slice(E),E+=r[1].length),w&&this.rules.other.blankLine.test(S)&&(h+=S+`
|
|||
|
`,t=t.substring(S.length+1),m=!0),!m){const b=this.rules.other.nextBulletRegex(E),x=this.rules.other.hrRegex(E),k=this.rules.other.fencesBeginRegex(E),N=this.rules.other.headingBeginRegex(E),V=this.rules.other.htmlBeginRegex(E);for(;t;){const F=t.split(`
|
|||
|
`,1)[0];let I;if(S=F,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),I=S):I=S.replace(this.rules.other.tabCharGlobal," "),k.test(S)||N.test(S)||V.test(S)||b.test(S)||x.test(S))break;if(I.search(this.rules.other.nonSpaceChar)>=E||!S.trim())y+=`
|
|||
|
`+I.slice(E);else{if(w||C.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(C)||N.test(C)||x.test(C))break;y+=`
|
|||
|
`+S}!w&&!S.trim()&&(w=!0),h+=F+`
|
|||
|
`,t=t.substring(F.length+1),C=I.slice(E)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0));let _=null,g;this.options.gfm&&(_=this.rules.other.listIsTask.exec(y),_&&(g=_[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),l.items.push({type:"list_item",raw:h,task:!!_,checked:g,loose:!1,text:y,tokens:[]}),l.raw+=h}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 m=0;m<l.items.length;m++)if(this.lexer.state.top=!1,l.items[m].tokens=this.lexer.blockTokens(l.items[m].text,[]),!l.loose){const h=l.items[m].tokens.filter(C=>C.type==="space"),y=h.length>0&&h.some(C=>this.rules.other.anyLine.test(C.raw));l.loose=y}if(l.loose)for(let m=0;m<l.items.length;m++)l.items[m].loose=!0;return l}}html(t){const r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){const r=this.rules.block.def.exec(t);if(r){const o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:r[0],href:i,title:l}}}table(t){var c;const r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;const o=Vv(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|||
|
`):[],d={type:"table",raw:r[0],header:[],align:[],rows:[]};if(o.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<o.length;u++)d.header.push({text:o[u],tokens:this.lexer.inline(o[u]),header:!0,align:d.align[u]});for(const u of l)d.rows.push(Vv(u,d.header.length).map((m,h)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:d.align[h]})));return d}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const o=r[1].charAt(r[1].length-1)===`
|
|||
|
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;const d=la(o.slice(0,-1),"\\");if((o.length-d.length)%2===0)return}else{const d=DP(r[2],"()");if(d===-2)return;if(d>-1){const u=(r[0].indexOf("!")===0?5:4)+r[1].length+d;r[2]=r[2].substring(0,d),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],l="";if(this.options.pedantic){const d=this.rules.other.pedanticHrefTitle.exec(i);d&&(i=d[1],l=d[3])}else l=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?i=i.slice(1):i=i.slice(1,-1)),Bv(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let o;if((o=this.rules.inline.reflink.exec(t))||(o=this.rules.inline.nolink.exec(t))){const i=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=r[i.toLowerCase()];if(!l){const d=o[0].charAt(0);return{type:"text",raw:d,text:d}}return Bv(o,l,o[0],this.lexer,this.rules)}}emStrong(t,r,o=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&o.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!o||this.rules.inline.punctuation.exec(o)){const d=[...i[0]].length-1;let c,u,m=d,h=0;const y=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,r=r.slice(-1*t.length+d);(i=y.exec(r))!=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]){m+=u;continue}else if((i[5]||i[6])&&d%3&&!((d+u)%3)){h+=u;continue}if(m-=u,m>0)continue;u=Math.min(u,u+m+h);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 r=this.rules.inline.code.exec(t);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(o),l=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return i&&l&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){const r=this.rules.inline.autolink.exec(t);if(r){let o,i;return r[2]==="@"?(o=r[1],i="mailto:"+o):(o=r[1],i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(t){var o,i;let r;if(r=this.rules.inline.url.exec(t)){let l,d;if(r[2]==="@")l=r[0],d="mailto:"+l;else{let c;do c=r[0],r[0]=(i=(o=this.rules.inline._backpedal.exec(r[0]))==null?void 0:o[0])!=null?i:"";while(c!==r[0]);l=r[0],r[1]==="www."?d="http://"+r[0]:d=r[0]}return{type:"link",raw:r[0],text:l,href:d,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(t){const r=this.rules.inline.text.exec(t);if(r){const o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],t
|
|||
|
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const o=this.inlineQueue[r];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],o=!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(m=>(c=m.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);const m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
|
|||
|
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=`
|
|||
|
`+c.raw,m.text+=`
|
|||
|
`+c.text,this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=`
|
|||
|
`+c.raw,m.text+=`
|
|||
|
`+c.raw,this.inlineQueue.at(-1).src=m.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),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let u=t;if((d=this.options.extensions)!=null&&d.startBlock){let m=1/0;const h=t.slice(1);let y;this.options.extensions.startBlock.forEach(C=>{y=C.call({lexer:this},h),typeof y=="number"&&y>=0&&(m=Math.min(m,y))}),m<1/0&&m>=0&&(u=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){const m=r.at(-1);o&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=`
|
|||
|
`+c.raw,m.text+=`
|
|||
|
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c),o=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=`
|
|||
|
`+c.raw,m.text+=`
|
|||
|
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){const m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,m;let o=t,i=null;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,i.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,d="";for(;t;){l||(d=""),l=!1;let h;if((u=(c=this.options.extensions)==null?void 0:c.inline)!=null&&u.some(C=>(h=C.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);const C=r.at(-1);h.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=h.raw,C.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,o,d)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let y=t;if((m=this.options.extensions)!=null&&m.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&&(y=t.substring(0,C+1))}if(h=this.tokenizer.inlineText(y)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(d=h.raw.slice(-1)),l=!0;const C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=h.raw,C.text+=h.text):r.push(h);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 r}}class fs{constructor(t){Nt(this,"options");Nt(this,"parser");this.options=t||gr}space(t){return""}code({text:t,lang:r,escaped:o}){var d;const i=(d=(r||"").match(mn.notSpaceStart))==null?void 0:d[0],l=t.replace(mn.endingNewline,"")+`
|
|||
|
`;return i?'<pre><code class="language-'+hi(i)+'">'+(o?l:hi(l,!0))+`</code></pre>
|
|||
|
`:"<pre><code>"+(o?l:hi(l,!0))+`</code></pre>
|
|||
|
`}blockquote({tokens:t}){return`<blockquote>
|
|||
|
${this.parser.parse(t)}</blockquote>
|
|||
|
`}html({text:t}){return t}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|||
|
`}hr(t){return`<hr>
|
|||
|
`}list(t){const r=t.ordered,o=t.start;let i="";for(let c=0;c<t.items.length;c++){const u=t.items[c];i+=this.listitem(u)}const l=r?"ol":"ul",d=r&&o!==1?' start="'+o+'"':"";return"<"+l+d+`>
|
|||
|
`+i+"</"+l+`>
|
|||
|
`}listitem(t){var o;let r="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((o=t.tokens[0])==null?void 0:o.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+" "+hi(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|||
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|||
|
`}table(t){let r="",o="";for(let l=0;l<t.header.length;l++)o+=this.tablecell(t.header[l]);r+=this.tablerow({text:o});let i="";for(let l=0;l<t.rows.length;l++){const d=t.rows[l];o="";for(let c=0;c<d.length;c++)o+=this.tablecell(d[c]);i+=this.tablerow({text:o})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|||
|
<thead>
|
|||
|
`+r+`</thead>
|
|||
|
`+i+`</table>
|
|||
|
`}tablerow({text:t}){return`<tr>
|
|||
|
${t}</tr>
|
|||
|
`}tablecell(t){const r=this.parser.parseInline(t.tokens),o=t.header?"th":"td";return(t.align?`<${o} align="${t.align}">`:`<${o}>`)+r+`</${o}>
|
|||
|
`}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>${hi(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:o}){const i=this.parser.parseInline(o),l=Ov(t);if(l===null)return i;t=l;let d='<a href="'+t+'"';return r&&(d+=' title="'+hi(r)+'"'),d+=">"+i+"</a>",d}image({href:t,title:r,text:o,tokens:i}){i&&(o=this.parser.parseInline(i,this.parser.textRenderer));const l=Ov(t);if(l===null)return hi(o);t=l;let d=`<img src="${t}" alt="${o}"`;return r&&(d+=` title="${hi(r)}"`),d+=">",d}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:hi(t.text)}}class af{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 Hn{constructor(t){Nt(this,"options");Nt(this,"renderer");Nt(this,"textRenderer");this.options=t||gr,this.options.renderer=this.options.renderer||new fs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new af}static parse(t,r){return new Hn(r).parse(t)}static parseInline(t,r){return new Hn(r).parseInline(t)}parse(t,r=!0){var i,l;let o="";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 m=c,h=this.options.extensions.renderers[m.type].call({parser:this},m);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(m.type)){o+=h||"";continue}}const u=c;switch(u.type){case"space":{o+=this.renderer.space(u);continue}case"hr":{o+=this.renderer.hr(u);continue}case"heading":{o+=this.renderer.heading(u);continue}case"code":{o+=this.renderer.code(u);continue}case"table":{o+=this.renderer.table(u);continue}case"blockquote":{o+=this.renderer.blockquote(u);continue}case"list":{o+=this.renderer.list(u);continue}case"html":{o+=this.renderer.html(u);continue}case"paragraph":{o+=this.renderer.paragraph(u);continue}case"text":{let m=u,h=this.renderer.text(m);for(;d+1<t.length&&t[d+1].type==="text";)m=t[++d],h+=`
|
|||
|
`+this.renderer.text(m);r?o+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):o+=h;continue}default:{const m='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return o}parseInline(t,r=this.renderer){var i,l;let o="";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 m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){o+=m||"";continue}}const u=c;switch(u.type){case"escape":{o+=r.text(u);break}case"html":{o+=r.html(u);break}case"link":{o+=r.link(u);break}case"image":{o+=r.image(u);break}case"strong":{o+=r.strong(u);break}case"em":{o+=r.em(u);break}case"codespan":{o+=r.codespan(u);break}case"br":{o+=r.br(u);break}case"del":{o+=r.del(u);break}case"text":{o+=r.text(u);break}default:{const m='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return o}}class sa{constructor(t){Nt(this,"options");Nt(this,"block");this.options=t||gr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Un.lex:Un.lexInline}provideParser(){return this.block?Hn.parse:Hn.parseInline}}Nt(sa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Rv{constructor(...t){Nt(this,"defaults",Ju());Nt(this,"options",this.setOptions);Nt(this,"parse",this.parseMarkdown(!0));Nt(this,"parseInline",this.parseMarkdown(!1));Nt(this,"Parser",Hn);Nt(this,"Renderer",fs);Nt(this,"TextRenderer",af);Nt(this,"Lexer",Un);Nt(this,"Tokenizer",us);Nt(this,"Hooks",sa);this.use(...t)}walkTokens(t,r){var i,l;let o=[];for(const d of t)switch(o=o.concat(r.call(this,d)),d.type){case"table":{const c=d;for(const u of c.header)o=o.concat(this.walkTokens(u.tokens,r));for(const u of c.rows)for(const m of u)o=o.concat(this.walkTokens(m.tokens,r));break}case"list":{const c=d;o=o.concat(this.walkTokens(c.items,r));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 m=c[u].flat(1/0);o=o.concat(this.walkTokens(m,r))}):c.tokens&&(o=o.concat(this.walkTokens(c.tokens,r)))}}return o}use(...t){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(o=>{const i={...o};if(i.async=this.defaults.async||i.async||!1,o.extensions&&(o.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){const d=r.renderers[l.name];d?r.renderers[l.name]=function(...c){let u=l.renderer.apply(this,c);return u===!1&&(u=d.apply(this,c)),u}:r.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=r[l.level];d?d.unshift(l.tokenizer):r[l.level]=[l.tokenizer],l.start&&(l.level==="block"?r.startBlock?r.startBlock.push(l.start):r.startBlock=[l.start]:l.level==="inline"&&(r.startInline?r.startInline.push(l.start):r.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(r.childTokens[l.name]=l.childTokens)}),i.extensions=r),o.renderer){const l=this.defaults.renderer||new fs(this.defaults);for(const d in o.renderer){if(!(d in l))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;const c=d,u=o.renderer[c],m=l[c];l[c]=(...h)=>{let y=u.apply(l,h);return y===!1&&(y=m.apply(l,h)),y||""}}i.renderer=l}if(o.tokenizer){const l=this.defaults.tokenizer||new us(this.defaults);for(const d in o.tokenizer){if(!(d in l))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;const c=d,u=o.tokenizer[c],m=l[c];l[c]=(...h)=>{let y=u.apply(l,h);return y===!1&&(y=m.apply(l,h)),y}}i.tokenizer=l}if(o.hooks){const l=this.defaults.hooks||new sa;for(const d in o.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>"+hi(o.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(o);throw o}}}const vr=new Rv;function St(e,t){return vr.parse(e,t)}St.options=St.setOptions=function(e){return vr.setOptions(e),St.defaults=vr.defaults,yv(St.defaults),St},St.getDefaults=Ju,St.defaults=gr,St.use=function(...e){return vr.use(...e),St.defaults=vr.defaults,yv(St.defaults),St},St.walkTokens=function(e,t){return vr.walkTokens(e,t)},St.parseInline=vr.parseInline,St.Parser=Hn,St.parser=Hn.parse,St.Renderer=fs,St.TextRenderer=af,St.Lexer=Un,St.lexer=Un.lex,St.Tokenizer=us,St.Hooks=sa,St.parse=St,St.options,St.setOptions,St.use,St.walkTokens,St.parseInline,Hn.parse,Un.lex;const pj="",VP=n.defineComponent({name:"FcMarkdown",data(){return{marked:n.markRaw(new Rv),html:""}},props:{content:String},watch:{content:{handler(){this.html=this.marked.parse(this.content||"")},immediate:!0}}}),BP=["innerHTML"];function RP(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:"_fc-markdown",innerHTML:e.html},null,8,BP)}const $P=De(VP,[["render",RP]]);/*!
|
|||
|
* Signature Pad v5.0.7 | https://github.com/szimek/signature_pad
|
|||
|
* (c) 2025 Szymon Nowak | Released under the MIT license
|
|||
|
*/class ps{constructor(t,r,o,i){if(isNaN(t)||isNaN(r))throw new Error(`Point is invalid: (${t}, ${r})`);this.x=+t,this.y=+r,this.pressure=o||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 lf{static fromPoints(t,r){const o=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new lf(t[1],o,i,t[2],r.start,r.end)}static calculateControlPoints(t,r,o){const i=t.x-r.x,l=t.y-r.y,d=r.x-o.x,c=r.y-o.y,u={x:(t.x+r.x)/2,y:(t.y+r.y)/2},m={x:(r.x+o.x)/2,y:(r.y+o.y)/2},h=Math.sqrt(i*i+l*l),y=Math.sqrt(d*d+c*c),C=u.x-m.x,S=u.y-m.y,w=h+y==0?0:y/(h+y),E={x:m.x+C*w,y:m.y+S*w},_=r.x-E.x,g=r.y-E.y;return{c1:new ps(u.x+_,u.y+g),c2:new ps(m.x+_,m.y+g)}}constructor(t,r,o,i,l,d){this.startPoint=t,this.control2=r,this.control1=o,this.endPoint=i,this.startWidth=l,this.endWidth=d}length(){let r=0,o,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 m=c-o,h=u-i;r+=Math.sqrt(m*m+h*h)}o=c,i=u}return r}point(t,r,o,i,l){return r*(1-t)*(1-t)*(1-t)+3*o*(1-t)*(1-t)*t+3*i*(1-t)*t*t+l*t*t*t}}class IP{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,r,o){this._et.addEventListener(t,r,o)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,r,o){this._et.removeEventListener(t,r,o)}}function FP(e,t=250){let r=0,o=null,i,l,d;const c=()=>{r=Date.now(),o=null,i=e.apply(l,d),o||(l=null,d=[])};return function(...m){const h=Date.now(),y=t-(h-r);return l=this,d=m,y<=0||y>t?(o&&(clearTimeout(o),o=null),r=h,i=e.apply(l,d),o||(l=null,d=[])):o||(o=window.setTimeout(c,y)),i}}class hs extends IP{constructor(t,r={}){var o,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=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle=(o=r.throttle)!==null&&o!==void 0?o:16,this.minDistance=(i=r.minDistance)!==null&&i!==void 0?i:5,this.dotSize=r.dotSize||0,this.penColor=r.penColor||"black",this.backgroundColo
|
|||
|
* @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 r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function lL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$v(Object(r),!0).forEach(function(o){sL(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Qt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qt=function(t){return typeof t}:Qt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function sL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iv={exports:{}};(function(e,t){(function(o,i){e.exports=i()})(window,function(){return function(r){var o={};function i(l){if(o[l])return o[l].exports;var d=o[l]={i:l,l:!1,exports:{}};return r[l].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=r,i.c=o,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&&Qt(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(m){return l[m]}.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(r,o){function i(l){return l&&l.__esModule?l:{default:l}}r.exports=i},function(r,o,i){r.exports=i(142)},function(r,o,i){i.r(o),i.d(o,"__extends",function(){return d}),i.d(o,"__assign",function(){return c}),i.d(o,"__rest",function(){return u}),i.d(o,"__decorate",function(){return m}),i.d(o,"__param",function(){return h}),i.d(o,"__metadata",function(){return y}),i.d(o,"__awaiter",function(){return C}),i.d(o,"__generator",function(){return S}),i.d(o,"__createBinding",function(){return w}),i.d(o,"__exportStar",function(){return E}),i.d(o,"__values",function(){return _}),i.d(o,"__read",function(){return g}),i.d(o,"__spread",function(){return b}),i.d(o,"__spreadArrays",function(){return x}),i.d(o,"__spreadArray",function(){return k}),i.d(o,"__await",function(){return N}),i.d(o,"__asyncGenerator",function(){return V}),i.d(o,"__asyncDelegator",function(){return F}),i.d(o,"__asyncValues",function(){return I}),i.d(o,"__makeTemplateObject",function(){return P}),i.d(o,"__importStar",function(){return B}),i.d(o,"__importDefault",function(){return L}),i.d(o,"__classPrivateFieldGet",function(){return U}),i.d(o,"__classPrivateFieldSet",function(){return H});/*! *****************************************************************************
|
|||
|
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(z,$){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,J){A.__proto__=J}||function(A,J){for(var Q in J)Object.prototype.hasOwnProperty.call(J,Q)&&(A[Q]=J[Q])},l(z,$)};function d(R,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");l(R,z);function $(){this.constructor=R}R.prototype=z===null?Object.create(z):($.prototype=z.prototype,new $)}var c=function(){return c=Object.assign||function($){for(var A,J=1,Q=arguments.length;J<Q;J++){A=arguments[J];for(var G in A)Object.prototype.hasOwnProperty.call(A,G)&&($[G]=A[G])}return $},c.apply(this,arguments)};function u(R,z){var $={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&z.indexOf(A)<0&&($[A]=R[A]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,A=Object.getOwnPropertySymbols(R);J<A.length;J++)z.indexOf(A[J])<0&&Object.prototype.propertyIsEnumerable.call(R,A[J])&&($[A[J]]=R[A[J]]);return $}function m(R,z,$,A){var J=arguments.length,Q=J<3?z:A===null?A=Object.getOwnPropertyDescriptor(z,$):A,G;if((typeof Reflect>"u"?"undefined":Qt(Reflect))==="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(R,z,$,A);else for(var ie=R.length-1;ie>=0;ie--)(G=R[ie])&&(Q=(J<3?G(Q):J>3?G(z,$,Q):G(z,$))||Q);return J>3&&Q&&Object.defineProperty(z,$,Q),Q}function h(R,z){return function($,A){z($,A,R)}}function y(R,z){if((typeof Reflect>"u"?"undefined":Qt(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(R,z)}function C(R,z,$,A){function J(Q){return Q instanceof $?Q:new $(function(G){G(Q)})}return new($||($=Promise))(function(Q,G){function ie(be){try{le(A.next(be))}catch(ce){G(ce)}}function X(be){try{le(A.throw(be))}catch(ce){G(ce)}}function le(be){be.done?Q(be.value):J(be.value).then(ie,X)}le((A=A.apply(R,z||[])).next())})}function S(R,z){var $={label:0,sent:function(){if(Q[0]&1)throw Q[1];return Q[1]},trys:[],ops:[]},A,J,Q,G;return G={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function ie(le){return function(be){return X([le,be])}}function X(le){if(A)throw new TypeError("Generator is already executing.");for(;$;)try{if(A=1,J&&(Q=le[0]&2?J.return:le[0]?J.throw||((Q=J.return)&&Q.call(J),0):J.next)&&!(Q=Q.call(J,le[1])).done)return Q;switch(J=0,Q&&(le=[le[0]&2,Q.value]),le[0]){case 0:case 1:Q=le;break;case 4:return $.label++,{value:le[1],done:!1};case 5:$.label++,J=le[1],le=[0];continue;case 7:le=$.ops.pop(),$.trys.pop();continue;default:if(Q=$.trys,!(Q=Q.length>0&&Q[Q.length-1])&&(le[0]===6||le[0]===2)){$=0;continue}if(le[0]===3&&(!Q||le[1]>Q[0]&&le[1]<Q[3])){$.label=le[1];break}if(le[0]===6&&$.label<Q[1]){$.label=Q[1],Q=le;break}if(Q&&$.label<Q[2]){$.label=Q[2],$.ops.push(le);break}Q[2]&&$.ops.pop(),$.trys.pop();continue}le=z.call(R,$)}catch(be){le=[6,be],J=0}finally{A=Q=0}if(le[0]&5)throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}}var w=Object.create?function(R,z,$,A){A===void 0&&(A=$),Object.defineProperty(R,A,{enumerable:!0,get:function(){return z[$]}})}:function(R,z,$,A){A===void 0&&(A=$),R[A]=z[$]};function E(R,z){for(var $ in R)$!=="default"&&!Object.prototype.hasOwnProperty.call(z,$)&&w(z,R,$)}function _(R){var z=typeof Symbol=="function"&&Symbol.iterator,$=z&&R[z],A=0;if($)return $.call(R);if(R&&typeof R.length=="number")return{next:function(){return R&&A>=R.length&&(R=void 0),{value:R&&R[A++],done:!R}}};throw new TypeError(z?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(R,z){var $=typeof Symbol=="function"&&R[Symbol.iterator];if(!$)return R;var A=$.call(R),J,Q=[],G;try{for(;(z===void 0||z-- >0)&&!(J=A.next()).done;)Q.push(J.value)}catch(ie){G={error:ie}}finally{try{J&&!J.done&&($=A.return)&&$.call(A)}finally{if(G)throw G.error}}return Q}function b(){for(var R=[],z=0;z<arguments.length;z++)R=R.concat(g(arguments[z]));return R}function x(){for(var R=0,z=0,$=arguments.length;z<$;z++)R+=arguments[z].length;for(var A=Array(R)
|
|||
|
/mg`,"")).call(H);(0,C.default)(R).call(R,"<")===0?L=k(R):L=V(R)}var z=L.length;if(!z)return this;for(var $=0;$<z;$++)this.elems.push(L[$]);this.length=z}}return(0,d.default)(T.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),T.prototype.forEach=function(B){for(var L=0;L<this.length;L++){var U=this.elems[L],H=B.call(U,U,L);if(H===!1)break}return this},T.prototype.clone=function(B){var L;B===void 0&&(B=!1);var U=[];return(0,u.default)(L=this.elems).call(L,function(H){U.push(H.cloneNode(!!B))}),P(U)},T.prototype.get=function(B){B===void 0&&(B=0);var L=this.length;return B>=L&&(B=B%L),P(this.elems[B])},T.prototype.first=function(){return this.get(0)},T.prototype.last=function(){var B=this.length;return this.get(B-1)},T.prototype.on=function(B,L,U){var H;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(H=this).call(H,function(R){if(!L){R.addEventListener(B,U);return}var z=function(A){var J=A.target;J.matches(L)&&U.call(J,A)};R.addEventListener(B,z),x.push({elem:R,selector:L,fn:U,agentFn:z})})):this},T.prototype.off=function(B,L,U){var H;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(H=this).call(H,function(R){if(L){for(var z=-1,$=0;$<x.length;$++){var A=x[$];if(A.selector===L&&A.fn===U&&A.elem===R){z=$;break}}if(z!==-1){var J=(0,S.default)(x).call(x,z,1)[0].agentFn;R.removeEventListener(B,J)}}else R.removeEventListener(B,U)})):this},T.prototype.attr=function(B,L){var U;return L==null?this.elems[0].getAttribute(B)||"":(0,u.default)(U=this).call(U,function(H){H.setAttribute(B,L)})},T.prototype.removeAttr=function(B){var L;(0,u.default)(L=this).call(L,function(U){U.removeAttribute(B)})},T.prototype.addClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(U.className){var H=U.className.split(/\s/);H=(0,w.default)(H).call(H,function(R){return!!(0,h.default)(R).call(R)}),(0,C.default)(H).call(H,B)<0&&H.push(B),U.className=H.join(" ")}else U.className=B}):this},T.prototype.removeClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(!!U.className){var H=U.className.split(/\s/);H=(0,w.default)(H).call(H,function(R){return R=(0,h.default)(R).call(R),!(!R||R===B)}),U.className=H.join(" ")}}):this},T.prototype.hasClass=function(B){if(!B)return!1;var L=this.elems[0];if(!L.className)return!1;var U=L.className.split(/\s/);return(0,E.default)(U).call(U,B)},T.prototype.css=function(B,L){var U,H;return L==""?H="":H=B+":"+L+";",(0,u.default)(U=this).call(U,function(R){var z,$=(0,h.default)(z=R.getAttribute("style")||"").call(z);if($){var A=F($);A=(0,m.default)(A).call(A,function(J){return(0,C.default)(J).call(J,B)===0?H:J}),H!=""&&(0,C.default)(A).call(A,H)<0&&A.push(H),H==""&&(A=F(A)),R.setAttribute("style",A.join("; "))}else R.setAttribute("style",H)})},T.prototype.getBoundingClientRect=function(){var B=this.elems[0];return B.getBoundingClientRect()},T.prototype.show=function(){return this.css("display","block")},T.prototype.hide=function(){return this.css("display","none")},T.prototype.children=function(){var B=this.elems[0];return B?P(B.children):null},T.prototype.childNodes=function(){var B=this.elems[0];return B?P(B.childNodes):null},T.prototype.replaceChildAll=function(B){for(var L=this.getNode(),U=this.elems[0];U.hasChildNodes();)L.firstChild&&U.removeChild(L.firstChild);this.append(B)},T.prototype.append=function(B){var L;return(0,u.default)(L=this).call(L,function(U){(0,u.default)(B).call(B,function(H){U.appendChild(H)})})},T.prototype.remove=function(){var B;return(0,u.default)(B=this).call(B,function(L){if(L.remove)L.remove();else{var U=L.parentElement;U&&U.removeChild(L)}})},T.prototype.isContain=function(B){var L=this.elems[0],U=B.elems[0];return L.contains(U)},T.prototype.getNodeName=function(){var B=this.elems[0];return B.nodeName},T.prototype.getNode=function(B){B===void 0&&(B=0);var L;return L=this.elems[B],L},T.prototype.find=function(B){var L=this.elems[0];return P(L.querySelectorAll(B))},T.prototype.text=function(B){if(B){var U;return(0,u.default)(U=this).call(U,function(H){H.innerHTML=B})}else{var L=this.elems[0];return
|
|||
|
`)}}();function S(b,x,k,N){var V=k?"":N.media?"@media ".concat(N.media," {").concat(N.css,"}"):N.css;if(b.styleSheet)b.styleSheet.cssText=C(x,V);else{var F=document.createTextNode(V),I=b.childNodes;I[x]&&b.removeChild(I[x]),I.length?b.insertBefore(F,I[x]):b.appendChild(F)}}function w(b,x,k){var N=k.css,V=k.media,F=k.sourceMap;if(V?b.setAttribute("media",V):b.removeAttribute("media"),F&&typeof btoa<"u"&&(N+=`
|
|||
|
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(F))))," */")),b.styleSheet)b.styleSheet.cssText=N;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(N))}}var E=null,_=0;function g(b,x){var k,N,V;if(x.singleton){var F=_++;k=E||(E=h(x)),N=S.bind(null,k,F,!1),V=S.bind(null,k,F,!0)}else k=h(x),N=w.bind(null,k,x),V=function(){y(k)};return N(b),function(P){if(P){if(P.css===b.css&&P.media===b.media&&P.sourceMap===b.sourceMap)return;N(b=P)}else V()}}r.exports=function(b,x){x=x||{},!x.singleton&&typeof x.singleton!="boolean"&&(x.singleton=l()),b=b||[];var k=m(b,x);return function(V){if(V=V||[],Object.prototype.toString.call(V)==="[object Array]"){for(var F=0;F<k.length;F++){var I=k[F],P=u(I);c[P].references--}for(var T=m(V,x),B=0;B<k.length;B++){var L=k[B],U=u(L);c[U].references===0&&(c[U].updater(),c.splice(U,1))}k=T}}}},function(r,o,i){r.exports=function(c){var u=[];return u.toString=function(){return this.map(function(h){var y=l(h,c);return h[2]?"@media ".concat(h[2]," {").concat(y,"}"):y}).join("")},u.i=function(m,h,y){typeof m=="string"&&(m=[[null,m,""]]);var C={};if(y)for(var S=0;S<this.length;S++){var w=this[S][0];w!=null&&(C[w]=!0)}for(var E=0;E<m.length;E++){var _=[].concat(m[E]);y&&C[_[0]]||(h&&(_[2]?_[2]="".concat(h," and ").concat(_[2]):_[2]=h),u.push(_))}},u};function l(c,u){var m=c[1]||"",h=c[3];if(!h)return m;if(u&&typeof btoa=="function"){var y=d(h),C=h.sources.map(function(S){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(S," */")});return[m].concat(C).concat([y]).join(`
|
|||
|
`)}return[m].join(`
|
|||
|
`)}function d(c){var u=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),m="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u);return"/*# ".concat(m," */")}},function(r,o,i){var l=i(14),d=i(11),c=i(16),u=Object.defineProperty,m={},h=function(C){throw C};r.exports=function(y,C){if(c(m,y))return m[y];C||(C={});var S=[][y],w=c(C,"ACCESSORS")?C.ACCESSORS:!1,E=c(C,0)?C[0]:h,_=c(C,1)?C[1]:void 0;return m[y]=!!S&&!d(function(){if(w&&!l)return!0;var g={length:-1};w?u(g,1,{enumerable:!0,get:h}):g[1]=1,S.call(g,E,_)})}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(95)),m=function(h){c.__extends(y,h);function y(C,S){return h.call(this,C,S)||this}return y}(u.default);o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(46));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(3)),y=m.__importDefault(i(95)),C=m.__importDefault(i(134)),S=function(w){m.__extends(E,w);function E(_,g,b){var x=w.call(this,_,g)||this;b.title=g.i18next.t("menus.dropListMenu."+b.title);var k=g.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(k!==""&&b.type==="list"){var N;(0,c.default)(N=b.list).call(N,function(F){var I=F.$elem,P=h.default(I.children());if(P.length>0){var T=P==null?void 0:P.getNodeName();T&&T==="I"&&I.addClass(k)}})}var V=new C.default(x,b);return x.dropList=V,_.on("click",function(){var F;g.selection.getRange()!=null&&(_.css("z-index",g.zIndex.get("menu")),(0,c.default)(F=g.txt.eventHooks.dropListMenuHoverEvents).call(F,function(I){return I()}),V.show())}).on("mouseleave",function(){_.css("z-index","auto"),V.hideTimeoutId=(0,u.default)(function(){V.hide()})}),x}return E}(y.default);o.default=S},function(r,o,i){var l=i(13);r.exports=function(d){if(!l(d))throw TypeError(String(d)+" is not an object");return d}},function(r,o,i){r.exports=i(188)},function(r,o,i){r.exports=i(201)},function(r,o,i){r.exports=i(213)},function(r,o,i){r.exports=i(283)},function(r,o,i){var l=i(72),d=i(49);r.exports=function(c){return l(d(c))}},function(r,o,i){var l=i(49);r.exports=function(d){return Object(l(d))}},function(r,o,i){var l=i(40),d=i(72),c=i(31),u=i(35),m=i(88),h=[].push,y=function(S){var w=S==1,E=S==2,_=S==3,g=S==4,b=S==6,x=S==5||b;return function(k,N,V,F){for(var I=c(k),P=d(I),T=l(N,V,3),B=u(P.length),L=0,U=F||m,H=w?U(k,B):E?U(k,0):void 0,R,z;B>L;L++)if((x||L in P)&&(R=P[L],z=T(R,L,I),S)){if(w)H[L]=z;else if(z)switch(S){case 3:return!0;case 5:return R;case 6:return L;case 2:h.call(H,R)}else if(g)return!1}return b?-1:_||g?g:H}};r.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6)}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(29)),m=l(i(132));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),y=h.__importDefault(i(3)),C=i(7),S=function(){function w(E,_){this.menu=E,this.conf=_,this.$container=y.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,_=this.menu;if(!w.createdMenus.has(_)){var g=this.conf,b=this.$container,x=g.width||300,k=_.editor.$toolbarElem.getBoundingClientRect(),N=_.$elem.getBoundingClientRect(),V=k.height+k.top-N.top,F=(k.width-x)/2+k.left-N.left,I=300;Math.abs(F)>I&&(N.left<document.documentElement.clientWidth/2?F=-N.width/2:F=-x+N.width/2),b.css("width",x+"px").css("margin-top",V+"px").css("margin-left",F+"px").css("z-index",_.editor.zIndex.get("panel"));var P=y.default('<i class="w-e-icon-close w-e-panel-close"></i>');b.append(P),P.on("click",function(){E.remove()});var T=y.default('<ul class="w-e-panel-tab-title"></ul>'),B=y.default('<div class="w-e-panel-tab-content"></div>');b.append(T).append(B);var L=g.height;L&&B.css("height",L+"px").css("overflow-y","auto");var U=g.tabs||[],H=[],R=[];(0,c.default)(U).call(U,function($,A){if(!!$){var J=$.title||"",Q=$.tpl||"",G=y.default('<li class="w-e-item">'+J+"</li>");T.append(G);var i
|
|||
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(r,o,i){var l=i(60),d=i(18),c=i(48);r.exports=function(u,m,h){var y=l(m);y in u?d.f(u,y,c(0,h)):u[y]=h}},function(r,o,i){r.exports=i(209)},function(r,o,i){var l=i(14),d=i(59),c=i(48),u=i(30),m=i(60),h=i(16),y=i(100),C=Object.getOwnPropertyDescriptor;o.f=l?C:function(w,E){if(w=u(w),E=m(E,!0),y)try{return C(w,E)}catch{}if(h(w,E))return c(!d.f.call(w,E),w[E])}},function(r,o,i){var l=i(11),d=i(34),c="".split;r.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return d(u)=="String"?c.call(u,""):Object(u)}:Object},function(r,o,i){var l=i(8),d=i(13),c=l.document,u=d(c)&&d(c.createElement);r.exports=function(m){return u?c.createElement(m):{}}},function(r,o,i){var l=i(43),d=i(103);(r.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(r,o,i){var l=i(5),d=i(167),c=i(105),u=i(171),m=i(37),h=i(19),y=i(53),C=i(10),S=i(43),w=i(44),E=i(104),_=E.IteratorPrototype,g=E.BUGGY_SAFARI_ITERATORS,b=C("iterator"),x="keys",k="values",N="entries",V=function(){return this};r.exports=function(F,I,P,T,B,L,U){d(P,I,T);var H=function(be){if(be===B&&J)return J;if(!g&&be in $)return $[be];switch(be){case x:return function(){return new P(this,be)};case k:return function(){return new P(this,be)};case N:return function(){return new P(this,be)}}return function(){return new P(this)}},R=I+" Iterator",z=!1,$=F.prototype,A=$[b]||$["@@iterator"]||B&&$[B],J=!g&&A||H(B),Q=I=="Array"&&$.entries||A,G,ie,X;if(Q&&(G=c(Q.call(new F)),_!==Object.prototype&&G.next&&(!S&&c(G)!==_&&(u?u(G,_):typeof G[b]!="function"&&h(G,b,V)),m(G,R,!0,!0),S&&(w[R]=V))),B==k&&A&&A.name!==k&&(z=!0,J=function(){return A.call(this)}),(!S||U)&&$[b]!==J&&h($,b,J),w[I]=J,B)if(ie={values:H(k),keys:L?J:H(x),entries:H(N)},U)for(X in ie)(g||z||!(X in $))&&y($,X,ie[X]);else l({target:I,proto:!0,forced:g||z},ie);return ie}},function(r,o,i){var l=i(11);r.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},function(r,o,i){var l=i(25),d=i(169),c=i(80),u=i(51),m=i(108),h=i(73),y=i(63),C=">",S="<",w="prototype",E="script",_=y("IE_PROTO"),g=function(){},b=function(I){return S+E+C+I+S+"/"+E+C},x=function(I){I.write(b("")),I.close();var P=I.parentWindow.Object;return I=null,P},k=function(){var I=h("iframe"),P="java"+E+":",T;return I.style.display="none",m.appendChild(I),I.src=String(P),T=I.contentWindow.document,T.open(),T.write(b("document.F=Object")),T.close(),T.F},N,V=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch{}V=N?x(N):k();for(var I=c.length;I--;)delete V[w][c[I]];return V()};u[_]=!0,r.exports=Object.create||function(I,P){var T;return I!==null?(g[w]=l(I),T=new g,g[w]=null,T[_]=I):T=V(),P===void 0?T:d(T,P)}},function(r,o,i){var l=i(30),d=i(35),c=i(79),u=function(h){return function(y,C,S){var w=l(y),E=d(w.length),_=c(S,E),g;if(h&&C!=C){for(;E>_;)if(g=w[_++],g!=g)return!0}else for(;E>_;_++)if((h||_ in w)&&w[_]===C)return h||_||0;return!h&&-1}};r.exports={includes:u(!0),indexOf:u(!1)}},function(r,o,i){var l=i(62),d=Math.max,c=Math.min;r.exports=function(u,m){var h=l(u);return h<0?d(h+m,0):c(h,m)}},function(r,o){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,o,i){var l=i(10),d=l("toStringTag"),c={};c[d]="z",r.exports=String(c)==="[object z]"},function(r,o){r.exports=function(){}},function(r,o){r.exports=function(i,l,d){if(!(i instanceof l))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return i}},function(r,o,i){var l=i(36);r.exports=l("navigator","userAgent")||""},function(r,o,i){var l=i(41),d=function(u){var m,h;this.promise=new u(function(y,C){if(m!==void 0||h!==void 0)throw TypeError("Bad Promise constructor");m=y,h=C}),this.resolve=l(m),this.reject=l(h)};r.exports.f=function(c){return new d(c)}},function(r,o,i){var l=i(8),d=i(84),c=l.process,u=c&&c.versions,m=u&&u.v8,h,y;m?
|
|||
|
`+Q.join(`
|
|||
|
`),"warning");return}if(J.length===0){x.customAlert(N("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(J.length>T){x.customAlert(N("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+T+N("\u5F20\u56FE\u7247"),"warning");return}if(A&&typeof A=="function"){var G;A(J,(0,c.default)(G=this.insertImg).call(G,this));return}var ie=new FormData;if((0,u.default)(J).call(J,function(ce,de){var pe=B||ce.name;J.length>1&&(pe=pe+(de+1)),ie.append(pe,ce)}),V){var X=V.split("#");V=X[0];var le=X[1]||"";(0,u.default)(y).call(y,L,function(ce,de){U&&((0,m.default)(V).call(V,"?")>0?V+="&":V+="?",V=V+ce+"="+de),ie.append(ce,de)}),le&&(V+="#"+le);var be=C.default(V,{timeout:z,formData:ie,headers:H,withCredentials:!!$,beforeSend:function(de){if(R.before)return R.before(de,b,J)},onTimeout:function(de){x.customAlert(N("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),R.timeout&&R.timeout(de,b)},onProgress:function(de,pe){var se=new S.default(b);pe.lengthComputable&&(de=pe.loaded/pe.total,se.show(de))},onError:function(de){x.customAlert(N("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",N("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+N("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+de.status),R.error&&R.error(de,b)},onFail:function(de,pe){x.customAlert(N("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",N("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+N("\u8FD4\u56DE\u7ED3\u679C")+": ")+pe),R.fail&&R.fail(de,b,pe)},onSuccess:function(de,pe){if(R.customInsert){var se;R.customInsert((0,c.default)(se=g.insertImg).call(se,g),pe,b);return}if(pe.errno!="0"){x.customAlert(N("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",N("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+N("\u8FD4\u56DE\u7ED3\u679C")+" errno="+pe.errno),R.fail&&R.fail(de,b,pe);return}var ge=pe.data;(0,u.default)(ge).call(ge,function(ye){typeof ye=="string"?g.insertImg(ye):g.insertImg(ye.url,ye.alt,ye.href)}),R.success&&R.success(de,b,pe)}});typeof be=="string"&&x.customAlert(be,"error");return}F&&y.arrForEach(_,function(ce){var de=g,pe=new FileReader;pe.readAsDataURL(ce),pe.onload=function(){if(!!this.result){var se=this.result.toString();de.insertImg(se,se)}}})}}},E}();o.default=w},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(410)),u=l(i(4)),m=l(i(45));(0,d.default)(o,"__esModule",{value:!0}),o.dealTextNode=o.isAllTodo=o.isTodo=o.getCursorNextNode=void 0;function h(E){return E.length?E.attr("class")==="w-e-todo":!1}o.isTodo=h;function y(E){var _=E.selection.getSelectionRangeTopNodes();if(_.length!==0)return(0,c.default)(_).call(_,function(g){return h(g)})}o.isAllTodo=y;function C(E,_,g){var b;if(!!E.hasChildNodes()){var x=E.cloneNode(),k=!1;_.nodeValue===""&&(k=!0);var N=[];return(0,u.default)(b=E.childNodes).call(b,function(V){if(!S(V,_)&&k&&(x.appendChild(V.cloneNode(!0)),V.nodeName!=="BR"&&N.push(V)),S(V,_)){if(V.nodeType===1){var F=C(V,_,g);F&&F.textContent!==""&&(x==null||x.appendChild(F))}if(V.nodeType===3&&_.isEqualNode(V)){var I=w(V,g);x.textContent=I}k=!0}}),(0,u.default)(N).call(N,function(V){var F=V;F.remove()}),x}}o.getCursorNextNode=C;function S(E,_){return E.nodeType===3?E.nodeValue===_.nodeValue:E.contains(_)}function w(E,_,g){g===void 0&&(g=!0);var b=E.nodeValue,x=b==null?void 0:(0,m.default)(b).call(b,0,_);if(b=b==null?void 0:(0,m.default)(b).call(b,_),!g){var k=b;b=x,x=k}return E.nodeValue=x,b}o.dealTextNode=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(430),u=function(){function m(h){this.maxSize=h,this.isRe=!1,this.data=new c.CeilStack(h),this.revokeData=new c.CeilStack(h)}return(0,d.default)(m.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),m.prototype.resetMaxSize=function(h){this.data.resetMax(h),this.revokeData.resetMax(h)},m.prototype.save=function(h){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(h),this},m.prototype.revoke=function(h){!this.isRe&&(this.isRe=!0);var y=this.data.outstack();return y?(this.revokeData.instack(y),h(y),!0):!1},m.prototype.restore=function(h
|
|||
|
<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>
|
|||
|
`+_.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>
|
|||
|
`+_.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
|
|||
|
<p>`),value:C.OrderedList}],clickHandler:function(N){g.command(N)}};return g=w.call(this,b,_,x)||this,g}return E.prototype.command=function(_){var g=this.editor,b=g.selection.getSelectionContainerElem();b!==void 0&&(this.handleSelectionRangeNodes(_),this.tryChangeActive())},E.prototype.validator=function(_,g,b){return!(!_.length||!g.length||b.equal(_)||b.equal(g))},E.prototype.handleSelectionRangeNodes=function(_){var g=this.editor,b=g.selection,x=_.toLowerCase(),k=b.getSelectionContainerElem(),N=b.getSelectionStartElem().getNodeTop(g),V=b.getSelectionEndElem().getNodeTop(g);if(!!this.validator(N,V,g.$textElem)){var F=b.getRange(),I=F==null?void 0:F.collapsed;g.$textElem.equal(k)||(k=k.getNodeTop(g));var P={editor:g,listType:_,listTarget:x,$selectionElem:k,$startElem:N,$endElem:V},T;this.isOrderElem(k)?T=y.ClassType.Wrap:this.isOrderElem(N)&&this.isOrderElem(V)?T=y.ClassType.Join:this.isOrderElem(N)?T=y.ClassType.StartJoin:this.isOrderElem(V)?T=y.ClassType.EndJoin:T=y.ClassType.Other;var B=new y.default(y.createListHandle(T,P,F));h.updateRange(g,B.getSelectionRangeElem(),!!I)}},E.prototype.isOrderElem=function(_){var g=_.getNodeName();return g===C.OrderedList||g===C.UnorderedList},E.prototype.tryChangeActive=function(){},E}(m.default);o.default=S},function(r,o,i){r.exports=i(395)},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u){var m=u.selection.getSelectionContainerElem();return m!=null&&m.length?!!(m.getNodeName()=="CODE"||m.getNodeName()=="PRE"||m.parent().getNodeName()=="CODE"||m.parent().getNodeName()=="PRE"||/hljs/.test(m.parent().attr("class"))):!1}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(o,"__esModule",{value:!0}),o.todo=void 0;var u=i(2),m=u.__importDefault(i(3)),h=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=m.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}();o.todo=h;function y(C){var S=new h(C);return S.init(),S}o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__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),o);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}o.default=u.default},function(r,o,i){var l=i(143);r.exports=l},function(r,o,i){i(144);var l=i(9),d=l.Object,c=r.exports=function(m,h,y){return d.defineProperty(m,h,y)};d.defineProperty.sham&&(c.sham=!0)},function(r,o,i){var l=i(5),d=i(14),c=i(18);l({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:c.f})},function(r,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{(typeof window>"u"?"undefined":Qt(window))==="object"&&(i=window)}r.exports=i},function(r,o,i){var l=i(20),d=i(147);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.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;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(149);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21),d=i(150),c=i(151);o=l(!1);var u=d(c);o.push([r.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";
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){r.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(r,o,i){i.r(o),o.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;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(155);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.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;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(157);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.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;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(159);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.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;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(161));Element.prototype.matches||(Element.prototype.matches=function(c){var u=this.ownerDocument.querySelectorAll(c),m=u.length;for(m;m>=0&&u.item(m)!==this;m--);return m>-1}),d.default||(window.Promise=d.default)},function(r,o,i){r.exports=i(162)},function(r,o,i){var l=i(163);r.exports=l},function(r,o,i){i(61),i(50),i(54),i(175),i(178),i(179);var l=i(9);r.exports=l.Promise},function(r,o,i){var l=i(62),d=i(49),c=function(m){return function(h,y){var C=String(d(h)),S=l(y),w=C.length,E,_;return S<0||S>=w?m?"":void 0:(E=C.charCodeAt(S),E<55296||E>56319||S+1===w||(_=C.charCodeAt(S+1))<56320||_>57343?m?C.charAt(S):E:m?C.slice(S,S+2):(E-55296<<10)+(_-56320)+65536)}};r.exports={codeAt:c(!1),charAt:c(!0)}},function(r,o,i){var l=i(8),d=i(102),c=l.WeakMap;r.exports=typeof c=="function"&&/native code/.test(d(c))},function(r,o,i){var l=i(8),d=i(19);r.exports=function(c,u){try{d(l,c,u)}catch{l[c]=u}return u}},function(r,o,i){var l=i(104).IteratorPrototype,d=i(77),c=i(48),u=i(37),m=i(44),h=function(){return this};r.exports=function(y,C,S){var w=C+" Iterator";return y.prototype=d(l,{next:c(1,S)}),u(y,w,!1,!0),m[w]=h,y}},function(r,o,i){var l=i(11);r.exports=!l(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(r,o,i){var l=i(14),d=i(18),c=i(25),u=i(52);r.exports=l?Object.defineProperties:function(h,y){c(h);for(var C=u(y),S=C.length,w=0,E;S>w;)d.f(h,E=C[w++],y[E]);return h}},function(r,o,i){var l=i(81),d=i(65);r.exports=l?{}.toString:function(){return"[object "+d(this)+"]"}},function(r,o,i){var l=i(25),d=i(172);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(u,[]),c=u instanceof Array}catch{}return function(y,C){return l(y),d(C),c?m.call(y,C):y.__proto__=C,y}}():void 0)},function(r,o,i){var l=i(13);r.exports=function(d){if(!l(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},function(r,o,i){var l=i(30),d=i(82),c=i(44),u=i(42),m=i(75),h="Array Iterator",y=u.set,C=u.getterFor(h);r.exports=m(Array,"Array",function(S,w){y(this,{type:h,target:l(S),index:0,kind:w})},function(){var S=C(this),w=S.target,E=S.kind,_=S.index++;return!w||_>=w.length?(S.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:_,done:!1}:E=="values"?{value:w[_],done:!1}:{value:[_,w[_]],done:!1}},"values"),c.Arguments=c.Array,d("keys"),d("values"),d("entries")},function(r,o){r.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(r,o,i){var l=i(5),d=i(43),c=i(8),u=i(36),m=i(109),h=i(53),y=i(110),C=i(37),S=i(111),w=i(13),E=i(41),_=i(83),g=i(34),b=i(102),x=i(66),k=i(115),N=i(116),V=i(117).set,F=i(176),I=i(119),P=i(177),T=i(85),B=i(120),L=i(42),U=i(101),H=i(10),R=i(86),z=H("species"),$="Promise",A=L.get,J=L.set,Q=L.getterFor($),G=m,ie=c.TypeError,X=c.document,le=c.process,be=u("fetch"),ce=T.f,de=ce,pe=g(le)=="process",se=!!(X&&X.createEvent&&c.dispatchEvent),ge="unhandledrejection",ye="rejectionhandled",D=0,W=1,Y=2,q=1,ee=2,oe,he,Se,Pe,Le=U($,function(){var Ze=b(G)!==String(G);if(!Ze&&(R===66||!pe&&typeof PromiseRejectionEvent!="function")||d&&!G.prototype.finally)return!0;if(R>=51&&/native code/.test(G))return!1;var Ne=G.resolve(1),Me=function(Ce){Ce(function(){},function(){})},tt=Ne.constructor={};return tt[z]=Me,!(Ne.then(function(){})instanceof Me)}),fe=Le||!k(function(Ze){G.all(Ze).catch(function(){})}),ke=function(Ne){var Me;return w(Ne)&&typeof(Me=Ne.then)=="function"?Me:!1},we=function(Ne,Me,tt){if(!Me.notified){Me.notified=!0;var $e=Me.reactions;F(functi
|
|||
|
`).replace(/<[^>]+>/gm,"");return b}function w(g){var b;if(g==="")return!1;var x=document.createElement("div");return x.innerHTML=g,((b=x.firstChild)===null||b===void 0?void 0:b.nodeName)==="P"}function E(g){if(!(g!=null&&g.length))return!1;var b=g.elems[0];return b.nodeName==="P"&&b.innerHTML==="<br>"}function _(g,b){function x(k){var N=g.config,V=N.pasteFilterStyle,F=N.pasteIgnoreImg,I=N.pasteTextHandle,P=m.getPasteHtml(k,V,F),T=m.getPasteText(k);T=T.replace(/\n/gm,"<br>");var B=g.selection.getSelectionContainerElem();if(!!B){var L=B==null?void 0:B.getNodeName(),U=B==null?void 0:B.getNodeTop(g),H="";if(U.elems[0]&&(H=U==null?void 0:U.getNodeName()),L==="CODE"||H==="PRE"){I&&h.isFunction(I)&&(T=""+(I(T)||"")),g.cmd.do("insertHTML",S(T));return}if(y.urlRegex.test(T)&&V){I&&h.isFunction(I)&&(T=""+(I(T)||""));var R=T.replace(y.urlRegex,function(X){return'<a href="'+X+'" target="_blank">'+X+"</a>"}),z=g.selection.getRange(),$=document.createElement("div"),A=document.createDocumentFragment();if($.innerHTML=R,z==null)return;for(;$.childNodes.length;)A.append($.childNodes[0]);var J=A.querySelectorAll("a");(0,u.default)(J).call(J,function(X){X.innerText=X.href}),z.insertNode&&(z.deleteContents(),z.insertNode(A)),g.selection.clearWindowSelectionRange();return}if(!!P)try{I&&h.isFunction(I)&&(P=""+(I(P)||""));var Q=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(P);if(Q&&V)g.cmd.do("insertHTML",""+C(T));else{var G=C(P);if(w(G)){var ie=g.$textElem;if(g.cmd.do("insertHTML",G),ie.equal(B)){g.selection.createEmptyRange();return}E(U)&&U.remove()}else g.cmd.do("insertHTML",G)}}catch{I&&h.isFunction(I)&&(T=""+(I(T)||"")),g.cmd.do("insertHTML",""+C(T))}}}b.push(x)}o.default=_},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17)),u=l(i(4)),m=l(i(28));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),y=i(293),C=h.__importDefault(i(297));function S(b){var x=/<span>.*?<\/span>/gi,k=/<span>(.*?)<\/span>/;return b.replace(x,function(N){var V=N.match(k);return V==null?"":V[1]})}function w(b,x){var k;return b=(0,c.default)(k=b.toLowerCase()).call(k),!!(y.IGNORE_TAGS.has(b)||x&&b==="img")}function E(b,x){var k="";k="<"+b;var N=[];(0,u.default)(x).call(x,function(F){N.push(F.name+'="'+F.value+'"')}),N.length>0&&(k=k+" "+N.join(" "));var V=y.EMPTY_TAGS.has(b);return k=k+(V?"/":"")+">",k}function _(b){return"</"+b+">"}function g(b,x,k){x===void 0&&(x=!0),k===void 0&&(k=!1);var N=[],V="";function F(B){B=(0,c.default)(B).call(B),B&&(y.EMPTY_TAGS.has(B)||(V=B))}function I(){V=""}var P=new C.default;P.parse(b,{startElement:function(L,U){if(F(L),!w(L,k)){var H=y.NECESSARY_ATTRS.get(L)||[],R=[];(0,u.default)(U).call(U,function($){var A=$.name;if(A==="style"){x||R.push($);return}(0,m.default)(H).call(H,A)!==!1&&R.push($)});var z=E(L,R);N.push(z)}},characters:function(L){!L||w(V,k)||N.push(L)},endElement:function(L){if(!w(L,k)){var U=_(L);N.push(U),I()}},comment:function(L){F(L)}});var T=N.join("");return T=S(T),T}o.default=g},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(132)),u=l(i(121));(0,d.default)(o,"__esModule",{value:!0}),o.TOP_LEVEL_TAGS=o.EMPTY_TAGS=o.NECESSARY_ATTRS=o.IGNORE_TAGS=void 0,o.IGNORE_TAGS=new c.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),o.NECESSARY_ATTRS=new u.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),o.EMPTY_TAGS=new c.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),o.TOP_LEVEL_TAGS=new c.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(r,o,i){var l=i(295);r.exports=l},function(r,o,i){i(296),i(61),i(50),i(54);var l=i(9);r.exports=l.Set},function(r,o,i){var l=i(122),d=i(124);r.exports=l("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(r,o){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>`);T.css("visibility","hidden"),F.append(T),T.css("z-index",V.zIndex.get("tooltip"));var B=0;function L(){B&&clearTimeout(B)}function U(){L(),T.css("visibility","hidden")}F.on("mouseover",function(H){var R=H.target,z=x.default(R),$,A;if(z.isContain(F)){U();return}if(z.parentUntil(".w-e-droplist")!=null)U();else if(z.attr("data-title"))$=z.attr("data-title"),A=z;else{var J=z.parentUntil(".w-e-menu");J!=null&&($=J.attr("data-title"),A=J)}if($&&A){L();var Q=A.getOffsetData();T.text(V.i18next.t("menus.title."+$));var G=T.getOffsetData(),ie=Q.left+Q.width/2-G.width/2;T.css("left",ie+"px"),P==="up"?T.css("top",Q.top-G.height-8+"px"):P==="down"&&T.css("top",Q.top+Q.height+8+"px"),B=(0,w.default)(function(){T.css("visibility","visible")},200)}else U()}).on("mouseleave",function(){U()})},N.prototype._addToToolbar=function(){var V,F=this.editor,I=F.$toolbarElem;(0,y.default)(V=this.menuList).call(V,function(P){var T=P.$elem;T&&I.append(T)})},N.prototype.menuFind=function(V){for(var F=this.menuList,I=0,P=F.length;I<P;I++)if(F[I].key===V)return F[I];return F[0]},N.prototype.changeActive=function(){var V;(0,y.default)(V=this.menuList).call(V,function(F){var I;(0,w.default)((0,E.default)(I=F.tryChangeActive).call(I,F),100)})},N}();o.default=k},function(r,o,i){r.exports=i(303)},function(r,o,i){var l=i(304);r.exports=l},function(r,o,i){i(305);var l=i(9);r.exports=l.Object.keys},function(r,o,i){var l=i(5),d=i(31),c=i(52),u=i(11),m=u(function(){c(1)});l({target:"Object",stat:!0,forced:m},{keys:function(y){return c(d(y))}})},function(r,o,i){var l=i(307);r.exports=l},function(r,o,i){i(308);var l=i(9);r.exports=l.Object.entries},function(r,o,i){var l=i(5),d=i(309).entries;l({target:"Object",stat:!0},{entries:function(u){return d(u)}})},function(r,o,i){var l=i(14),d=i(52),c=i(30),u=i(59).f,m=function(y){return function(C){for(var S=c(C),w=d(S),E=w.length,_=0,g=[],b;E>_;)b=w[_++],(!l||u.call(S,b))&&g.push(y?[b,S[b]]:S[b]);return g}};r.exports={entries:m(!0),values:m(!1)}},function(r,o,i){var l=i(311);r.exports=l},function(r,o,i){var l=i(312),d=Array.prototype;r.exports=function(c){var u=c.some;return c===d||c instanceof Array&&u===d.some?l:u}},function(r,o,i){i(313);var l=i(15);r.exports=l("Array").some},function(r,o,i){var l=i(5),d=i(32).some,c=i(67),u=i(22),m=c("some"),h=u("some");l({target:"Array",proto:!0,forced:!m||!h},{some:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(315)),m=c.__importDefault(i(316)),h=c.__importDefault(i(321)),y=c.__importDefault(i(326)),C=c.__importDefault(i(327)),S=c.__importDefault(i(328)),w=c.__importDefault(i(329)),E=c.__importDefault(i(331)),_=c.__importDefault(i(333)),g=c.__importDefault(i(334)),b=c.__importDefault(i(337)),x=c.__importDefault(i(338)),k=c.__importDefault(i(339)),N=c.__importDefault(i(350)),V=c.__importDefault(i(365)),F=c.__importDefault(i(369)),I=c.__importDefault(i(137)),P=c.__importDefault(i(378)),T=c.__importDefault(i(380)),B=c.__importDefault(i(381)),L=c.__importDefault(i(382)),U=c.__importDefault(i(401)),H=c.__importDefault(i(406)),R=c.__importDefault(i(409));o.default={bold:u.default,head:m.default,italic:y.default,link:h.default,underline:C.default,strikeThrough:S.default,fontName:w.default,fontSize:E.default,justify:_.default,quote:g.default,backColor:b.default,foreColor:x.default,video:k.default,image:N.default,indent:V.default,emoticon:F.default,list:I.default,lineHeight:P.default,undo:T.default,redo:B.default,table:L.default,code:U.default,splitLine:H.default,todo:R.default}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),m=c.__importDefault(i(3)),h=function(y){c.__extends(C,y);function C(S){var w=this,E=m.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
|
|||
|
<i class="w-e-icon-bold"></i>
|
|||
|
</div>`);return w=y.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);o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(27)),u=l(i(29)),m=l(i(4)),h=l(i(317)),y=l(i(28));(0,d.default)(o,"__esModule",{value:!0});var C=i(2),S=C.__importDefault(i(24)),w=C.__importDefault(i(3)),E=i(6),_=i(7),g=function(b){C.__extends(x,b);function x(k){var N=this,V=w.default('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),F={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(T){N.command(T)}};N=b.call(this,V,k,F)||this;var I=k.config.onCatalogChange;return I&&(N.oldCatalogs=[],N.addListenerCatalog(),N.getCatalogs()),N}return x.prototype.command=function(k){var N=this.editor,V=N.selection.getSelectionContainerElem();if(V&&N.$textElem.equal(V))this.setMultilineHead(k);else{var F;if((0,c.default)(F=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(F,w.default(V).getNodeName())>-1)return;N.cmd.do("formatBlock",k)}k!=="<p>"&&this.addUidForSelectionElem()},x.prototype.addUidForSelectionElem=function(){var k=this.editor,N=k.selection.getSelectionContainerElem(),V=E.getRandomCode();w.default(N).attr("id",V)},x.prototype.addListenerCatalog=function(){var k=this,N=this.editor;N.txt.eventHooks.changeEvents.push(function(){k.getCatalogs()})},x.prototype.getCatalogs=function(){var k=this.editor,N=this.editor.$textElem,V=k.config.onCatalogChange,F=(0,u.default)(N).call(N,"h1,h2,h3,h4,h5"),I=[];(0,m.default)(F).call(F,function(P,T){var B=w.default(P),L=B.attr("id"),U=B.getNodeName(),H=B.text();L||(L=E.getRandomCode(),B.attr("id",L)),H&&I.push({tag:U,id:L,text:H})}),(0,h.default)(this.oldCatalogs)!==(0,h.default)(I)&&(this.oldCatalogs=I,V&&V(I))},x.prototype.setMultilineHead=function(k){var N=this,V,F,I=this.editor,P=I.selection,T=(V=P.getSelectionContainerElem())===null||V===void 0?void 0:V.elems[0],B=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=w.default(P.getSelectionStartElem()),U=w.default(P.getSelectionEndElem());U.elems[0].outerHTML===w.default(_.EMPTY_P).elems[0].outerHTML&&!U.elems[0].nextSibling&&(U=U.prev());var H=[];H.push(L.getNodeTop(I));var R=[],z=(F=P.getRange())===null||F===void 0?void 0:F.commonAncestorContainer.childNodes;z==null||(0,m.default)(z).call(z,function(J,Q){J===H[0].getNode()&&R.push(Q),J===U.getNodeTop(I).getNode()&&R.push(Q)});for(var $=0;H[$].getNode()!==U.getNodeTop(I).getNode();){if(!H[$].elems[0])return;var A=w.default(H[$].next().getNode());H.push(A),$++}H==null||(0,m.default)(H).call(H,function(J,Q){if(!N.hasTag(J,B)){var G=w.default(k),ie=J.parent().getNode();G.html(""+J.html()),ie.insertBefore(G.getNode(),J.getNode()),J.remove()}}),P.createRangeByElems(T.children[R[0]],T.children[R[1]])},x.prototype.hasTag=function(k,N){var V=this,F;if(!k)return!1;if((0,y.default)(N).call(N,k==null?void 0:k.getNodeName()))return!0;var I=!1;return(F=k.children())===null||F===void 0||(0,m.default)(F).call(F,function(P){I=V.hasTag(w.default(P),N)}),I},x.prototype.tryChangeActive=function(){var k=this.editor,N=/^h/i,V=k.cmd.queryCommandValue("formatBlock");N.test(V)?this.active():this.unActive()},x}(S.default);o.default=g},function(r,o,i){r.exports=i(318)},function(r,o,i){var l=i(319);r.exports=l},function(r,o,i){i(320);var l=i(9);l.JSON||(l.JSON={stringify:JSON.stringify}),r.exports=function(c,u,m){return l.JSON.stringify.apply(null,arguments)}},function(r,o,i){var l=i(5),d=i(36),c=i(11),u
|
|||
|
<input
|
|||
|
id="`+k+`"
|
|||
|
type="text"
|
|||
|
class="block"
|
|||
|
placeholder="`+_.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
|
|||
|
</td>
|
|||
|
<input
|
|||
|
id="`+x+`"
|
|||
|
type="text"
|
|||
|
class="block"
|
|||
|
placeholder="`+_.i18next.t("\u5982")+` https://..."/>
|
|||
|
</td>
|
|||
|
<div class="w-e-button-container">
|
|||
|
<button type="button" id="`+N+`" class="right">
|
|||
|
`+_.i18next.t("\u63D2\u5165")+`
|
|||
|
</button>
|
|||
|
<button type="button" id="`+V+'" class="gray right" style="display:'+F+`">
|
|||
|
`+_.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
|
|||
|
</button>
|
|||
|
</div>
|
|||
|
</div>`,events:[{selector:"#"+N,type:"click",fn:function(){var R,z,$,A,J,Q=_.selection.getSelectionContainerElem(),G=Q==null?void 0:Q.elems[0];_.selection.restoreSelection();var ie=_.selection.getSelectionRangeTopNodes()[0].getNode(),X=window.getSelection(),le=C.default("#"+x),be=C.default("#"+k),ce=(0,u.default)(R=le.val()).call(R),de=(0,u.default)(z=be.val()).call(z),pe="";X&&!(X!=null&&X.isCollapsed)&&(pe=(A=w.insertHtml(X,ie))===null||A===void 0?void 0:(0,u.default)(A).call(A));var se=pe==null?void 0:pe.replace(/<.*?>/g,""),ge=(J=se==null?void 0:se.length)!==null&&J!==void 0?J:0;if(ge<=de.length){var ye=de.substring(0,ge),D=de.substring(ge);se===ye&&(de=se+D)}if(!!ce&&(de||(de=ce),!!L(de,ce))){if((G==null?void 0:G.nodeName)==="A")return G.setAttribute("href",ce),G.innerText=de,!0;if((G==null?void 0:G.nodeName)!=="A"&&(0,c.default)($=S.EXTRA_TAG).call($,G.nodeName)){var W=S.getParentNodeA(Q);if(W)return W.setAttribute("href",ce),G.innerText=de,!0}return T(de,ce),!0}},bindEnter:!0},{selector:"#"+V,type:"click",fn:function(){return B(),!0}}]}],setLinkValue:function(R,z){var $="",A="",J;z==="text"&&($="#"+k,A=g),z==="link"&&($="#"+x,A=b),J=(0,m.default)(R).call(R,$).elems[0],J.value=A}};return U}o.default=E},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0}),o.insertHtml=o.createPartHtml=o.makeHtmlString=o.getTopNode=void 0;function u(w,E){var _=w,g=w;do{if(_.textContent===E)break;g=_,_.parentNode&&(_=_==null?void 0:_.parentNode)}while((_==null?void 0:_.nodeName)!=="P");return g}o.getTopNode=u;function m(w,E){var _=w.nodeName,g="";if(w.nodeType===3||/^(h|H)[1-6]$/.test(_))return E;if(w.nodeType===1){var b=w.getAttribute("style"),x=w.getAttribute("face"),k=w.getAttribute("color");b&&(g=g+(' style="'+b+'"')),x&&(g=g+(' face="'+x+'"')),k&&(g=g+(' color="'+k+'"'))}return _=_.toLowerCase(),"<"+_+g+">"+E+"</"+_+">"}o.makeHtmlString=m;function h(w,E,_,g){var b,x=(b=E.textContent)===null||b===void 0?void 0:b.substring(_,g),k=E,N="";do N=m(k,x!=null?x:""),x=N,k=k==null?void 0:k.parentElement;while(k&&k.textContent!==w);return N}o.createPartHtml=h;function y(w,E){var _,g,b,x,k,N=w.anchorNode,V=w.focusNode,F=w.anchorOffset,I=w.focusOffset,P=(_=E.textContent)!==null&&_!==void 0?_:"",T=C(E),B="",L="",U="",H="",R=N,z=V,$=N;if(N!=null&&N.isEqualNode(V!=null?V:null)){var A=h(P,N,F,I);return A=S(T,A),A}for(N&&(L=h(P,N,F!=null?F:0)),V&&(H=h(P,V,0,I)),N&&(R=u(N,P)),V&&(z=u(V,P)),$=(g=R==null?void 0:R.nextSibling)!==null&&g!==void 0?g:N;!($!=null&&$.isEqualNode(z!=null?z:null));){var J=$==null?void 0:$.nodeName;if(J==="#text")U=U+($==null?void 0:$.textContent);else{var Q=(x=(b=$==null?void 0:$.firstChild)===null||b===void 0?void 0:b.parentElement)===null||x===void 0?void 0:x.innerHTML;$&&(U=U+m($,Q!=null?Q:""))}var G=(k=$==null?void 0:$.nextSibling)!==null&&k!==void 0?k:$;if(G===$)break;$=G}return B=""+L+U+H,B=S(T,B),B}o.insertHtml=y;function C(w){for(var E,_=(E=w.textContent)!==null&&E!==void 0?E:"",g=[];(w==null?void 0:w.textContent)===_;)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(_){E=m(_,E)}),E}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(325));function m(h){u.default(h)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(28));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=u.__importDefault(i(39)),y=i(96);function C(w){var E;function _(b){var x=[{$elem:m.default("<span>"+w.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(N,V){var F=V.attr("href");return window.open(F,"_target"),!0}},{$elem:m.default("<span>"+w.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(N,V){var F,I;N.selection.createRangeByElem(V),N.selection.restoreSelection();var P=V.childNodes();if((P==null?void 0:P.getNodeName())==="IMG"){var T=(I=(F=N.selection.getSelectionContainerElem())===null||F===void 0?void 0:F.children())===null||I===void 0?void
|
|||
|
src=`+(T==null?void 0:T.getAttribute("src"))+`
|
|||
|
style=`+(T==null?void 0:T.getAttribute("style"))+">")}else{var B,L=V.elems[0],U=L.innerHTML,H=L.parentElement;H&&(0,c.default)(B=y.EXTRA_TAG).call(B,H.nodeName)?H.innerHTML=U:N.cmd.do("insertHTML","<span>"+U+"</span>")}return!0}}];E=new h.default(w,b,x),E.create()}function g(){E&&(E.remove(),E=null)}return{showLinkTooltip:_,hideLinkTooltip:g}}function S(w){var E=C(w),_=E.showLinkTooltip,g=E.hideLinkTooltip;w.txt.eventHooks.linkClickEvents.push(_),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)}o.default=S},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),m=c.__importDefault(i(3)),h=function(y){c.__extends(C,y);function C(S){var w=this,E=m.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
|
|||
|
<i class="w-e-icon-italic"></i>
|
|||
|
</div>`);return w=y.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);o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),m=c.__importDefault(i(3)),h=function(y){c.__extends(C,y);function C(S){var w=this,E=m.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
|
|||
|
<i class="w-e-icon-underline"></i>
|
|||
|
</div>`);return w=y.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);o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),m=c.__importDefault(i(3)),h=function(y){c.__extends(C,y);function C(S){var w=this,E=m.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
|
|||
|
<i class="w-e-icon-strikethrough"></i>
|
|||
|
</div>`);return w=y.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);o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(24)),m=c.__importDefault(i(3)),h=c.__importDefault(i(330)),y=function(C){c.__extends(S,C);function S(w){var E=this,_=m.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
|
|||
|
<i class="w-e-icon-font"></i>
|
|||
|
</div>`),g=new h.default(w.config.fontNames),b={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:g.getItemList(),clickHandler:function(k){E.command(k)}};return E=C.call(this,_,w,b)||this,E}return S.prototype.command=function(w){var E,_=this.editor,g=_.selection.isSelectionEmpty(),b=(E=_.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];if(b!=null){var x=(b==null?void 0:b.nodeName.toLowerCase())!=="p",k=(b==null?void 0:b.getAttribute("face"))===w;if(g){if(x&&!k){var N=_.selection.getSelectionRangeTopNodes();_.selection.createRangeByElem(N[0]),_.selection.moveCursor(N[0].elems[0])}_.selection.setRangeToElem(b),_.selection.createEmptyRange()}_.cmd.do("fontName",w),g&&(_.selection.collapseRange(),_.selection.restoreSelection())}},S.prototype.tryChangeActive=function(){},S}(u.default);o.default=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=function(){function y(C){var S=this;this.itemList=[],(0,c.default)(C).call(C,function(w){var E=typeof w=="string"?w:w.value,_=typeof w=="string"?w:w.name;S.itemList.push({$elem:m.default(`<p style="font-family:'`+E+`'">`+_+"</p>"),value:_})})}return y.prototype.getItemList=function(){return this.itemList},y}();o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(24)),m=c.__importDefault(i(3)),h=c.__importDefault(i(332)),y=function(C){c.__extends(S,C);function S(w){var E=this,_=m.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
|
|||
|
<i class="w-e-icon-text-heigh"></i>
|
|||
|
</div>`),g=new h.default(w.config.fontSizes),b={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:g.getItemList(),clickHandler:function(k){E.command(k)}};return E=C.call(this,_,w,b)||this,E}return S.prototype.command=function(w){var E,_=this.editor,g=_.selection.isSelectionEmpty(),b=(E=_.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];b!=null&&(_.cmd.do("fontSize",w),g&&(_.selection.collapseRange(),_.selection.restoreSelection()))},S.prototype.tryChangeActive=function(){},S}(u.default);o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),m=function(){function h(y){this.itemList=[];for(var C in y){var S=y[C];this.itemList.push({$elem:u.default('<p style="font-size:'+C+'">'+S.name+"</p>"),value:S.value})}}return h.prototype.getItemList=function(){return this.itemList},h}();o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(24)),y=m.__importDefault(i(3)),C=["LI"],S=["BLOCKQUOTE"],w=function(E){m.__extends(_,E);function _(g){var b=this,x=y.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:y.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:y.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:y.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:y.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){b.command(V)}};return b=E.call(this,x,g,k)||this,b}return _.prototype.command=function(g){var b=this.editor,x=b.selection,k=x.getSelectionContainerElem();x.saveRange();var N=b.selection.getSelectionRangeTopNodes();if(k!=null&&k.length)if(this.isSpecialNode(k,N[0])||this.isSpecialTopNode(N[0])){var V=this.getSpecialNodeUntilTop(k,N[0]);if(V==null)return;y.default(V).css("text-align",g)}else(0,c.default)(N).call(N,function(F){F.css("text-align",g)});x.restoreSelection()},_.prototype.getSpecialNodeUntilTop=function(g,b){for(var x=g.elems[0],k=b.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},_.prototype.isSpecialNode=function(g,b){var x=this.getSpecialNodeUntilTop(g,b);return x==null?!1:(0,u.default)(C).call(C,x.nodeName)!==-1},_.prototype.isSpecialTopNode=function(g){var b;return g==null?!1:(0,u.default)(S).call(S,(b=g.elems[0])===null||b===void 0?void 0:b.nodeName)!==-1},_.prototype.tryChangeActive=function(){},_}(h.default);o.default=w},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=u.__importDefault(i(23)),y=u.__importDefault(i(335)),C=u.__importDefault(i(336)),S=i(7),w=function(E){u.__extends(_,E);function _(g){var b=this,x=m.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
|
|||
|
<i class="w-e-icon-quotes-left"></i>
|
|||
|
</div>`);return b=E.call(this,x,g)||this,y.default(g),b}return _.prototype.clickHandler=function(){var g,b,x=this.editor,k=x.selection.isSelectionEmpty(),N=x.selection.getSelectionRangeTopNodes(),V=N[N.length-1],F=this.getTopNodeName();if(F==="BLOCKQUOTE"){var I=m.default(V.childNodes()),P=I.length,T=V;(0,c.default)(I).call(I,function(H){var R=m.default(H);R.insertAfter(T),T=R}),V.remove(),x.selection.moveCursor(I.elems[P-1]),this.tryChangeActive()}else{var B=C.default(N);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]),N=x.selection.getSelectionRangeTopNodes(),B=C.default(N),V.append(B)}else B.insertAfter(V);this.delSelectNode(N);var U=(b=B.childNodes())===null||b===void 0?void 0:b.last().getNode();if(U==null)return;U.textContent?x.selection.moveCursor(U):x.selection.moveCursor(U,0),this.tryChangeActive(),m.default(S.EMPTY_P).insertAfter(B);return}k&&(x.selection.collapseRange(),x.selection.restoreSelection())},_.prototype.tryChangeActive=function(){var g,b=this.editor,x=(g=b.selection.getSelectionRangeTopNodes()[0])===null||g===void 0?void 0:g.getNodeName();x==="BLOCKQUOTE"?this.active():this.unActive()},_.prototype.getTopNodeName=function(){var g=this.editor,b=g.selection.getSelectionRangeTopNodes()[0],x=b==null?void 0:b.getNodeName();return x},_.prototype.delSelectNode=function(g){(0,c.default)(g).call(g,function(b){b.remove()})},_}(h.default);o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(7),m=c.__importDefault(i(3));function h(y){function C(S){var w,E=y.selection.getSelectionContainerElem(),_=y.selection.getSelectionRangeTopNodes()[0];if((_==null?void 0:_.getNodeName())==="BLOCKQUOTE"){if(E.getNodeName()==="BLOCKQUOTE"){var g=(w=E.childNodes())===null||w===void 0?void 0:w.getNode();y.selection.moveCursor(g)}if(E.text()===""){S.preventDefault(),E.remove();var b=m.default(u.EMPTY_P);b.insertAfter(_),y.selection.moveCursor(b.getNode(),0)}_.text()===""&&_.remove()}}y.txt.eventHooks.enterDownEvents.push(C)}o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3));function h(y){var C=m.default("<blockquote></blockquote>");return(0,c.default)(y).call(y,function(S){C.append(S.clone(!0))}),C}o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(24)),h=u.__importDefault(i(3)),y=i(6),C=function(S){u.__extends(w,S);function w(E){var _,g=this,b=h.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)(_=E.config.colors).call(_,function(k){return{$elem:h.default('<i style="color:'+k+';" class="w-e-icon-paint-brush"></i>'),value:k}}),clickHandler:function(N){g.command(N)}};return g=S.call(this,b,E,x)||this,g}return w.prototype.command=function(E){var _,g=this.editor,b=g.selection.isSelectionEmpty(),x=(_=g.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];if(x!=null){var k=(x==null?void 0:x.nodeName.toLowerCase())!=="p",N=x==null?void 0:x.style.backgroundColor,V=y.hexToRgb(E)===N;if(b){if(k&&!V){var F=g.selection.getSelectionRangeTopNodes();g.selection.createRangeByElem(F[0]),g.selection.moveCursor(F[0].elems[0])}g.selection.createEmptyRange()}g.cmd.do("backColor",E),b&&(g.selection.collapseRange(),g.selection.restoreSelection())}},w.prototype.tryChangeActive=function(){},w}(m.default);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(24)),h=u.__importDefault(i(3)),y=function(C){u.__extends(S,C);function S(w){var E,_=this,g=h.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
|
|||
|
<i class="w-e-icon-pencil2"></i>
|
|||
|
</div>`),b={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,c.default)(E=w.config.colors).call(E,function(x){return{$elem:h.default('<i style="color:'+x+';" class="w-e-icon-pencil2"></i>'),value:x}}),clickHandler:function(k){_.command(k)}};return _=C.call(this,g,w,b)||this,_}return S.prototype.command=function(w){var E,_=this.editor,g=_.selection.isSelectionEmpty(),b=(E=_.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];if(b!=null){var x=_.selection.getSelectionText();if(b.nodeName==="A"&&b.textContent===x){var k=h.default("<span>​</span>").getNode();b.appendChild(k)}_.cmd.do("foreColor",w),g&&(_.selection.collapseRange(),_.selection.restoreSelection())}},S.prototype.tryChangeActive=function(){},S}(m.default);o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(33)),h=c.__importDefault(i(38)),y=c.__importDefault(i(340)),C=c.__importDefault(i(346)),S=function(w){c.__extends(E,w);function E(_){var g=this,b=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(_),g}return E.prototype.clickHandler=function(){this.createPanel("")},E.prototype.createPanel=function(_){var g=y.default(this.editor,_),b=new m.default(this,g);b.create()},E.prototype.tryChangeActive=function(){},E}(h.default);o.default=S},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=i(6),h=u.__importDefault(i(3)),y=u.__importDefault(i(341)),C=i(7);function S(w,E){var _=w.config,g=new y.default(w),b=m.getRandom("input-iframe"),x=m.getRandom("btn-ok"),k=m.getRandom("input-upload"),N=m.getRandom("btn-local-ok");function V(T){w.cmd.do("insertHTML",T+C.EMPTY_P),w.config.onlineVideoCallback(T)}function F(T){var B=w.config.onlineVideoCheck(T);return B===!0?!0:(typeof B=="string"&&w.config.customAlert(B,"error"),!1)}var I=[{title:w.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
|
|||
|
<div id="`+N+`" 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:"#"+N,type:"click",fn:function(){var B=h.default("#"+k),L=B.elems[0];if(L)L.click();else return!0}},{selector:"#"+k,type:"change",fn:function(){var B=h.default("#"+k),L=B.elems[0];if(!L)return!0;var U=L.files;return U.length&&g.uploadVideo(U),!0}}]},{title:w.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
|
|||
|
<input
|
|||
|
id="`+b+`"
|
|||
|
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 B,L=h.default("#"+b),U=(0,c.default)(B=L.val()).call(B);if(!!U&&!!F(U))return V(U),!0},bindEnter:!0}]}],P={width:300,height:0,tabs:[]};return window.FileReader&&(_.uploadVideoServer||_.customUploadVideo)&&P.tabs.push(I[0]),_.showLinkVideo&&P.tabs.push(I[1]),P}o.default=S},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(133)),u=l(i(57)),m=l(i(4)),h=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var y=i(2),C=i(6),S=y.__importDefault(i(135)),w=y.__importDefault(i(136)),E=i(7),_=i(6),g=function(){function b(x){this.editor=x}return b.prototype.uploadVideo=function(x){var k=this;if(!!x.length){var N=this.editor,V=N.config,F="validate.",I=function(se){return N.i18next.t(F+se)},P=V.uploadVideoServer,T=V.uploadVideoMaxSize,B=T/1024,L=V.uploadVideoName,U=V.uploadVideoParams,H=V.uploadVideoParamsWithUrl,R=V.uploadVideoHeaders,z=V.uploadVideoHooks,$=V.uploadVideoTimeout,A=V.withVideoCredentials,J=V.customUploadVideo,Q=V.uploadVideoAccept,G=[],ie=[];if(C.arrForEach(x,function(pe){var se=pe.name,ge=pe.size/1024/1024;if(!(!se||!ge)){if(!(Q instanceof Array)){ie.push("\u3010"+Q+"\u3011"+I("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,c.default)(Q).call(Q,function(ye){return ye===se.split(".")[se.split(".").length-1]})){ie.push("\u3010"+se+"\u3011"+I("\u4E0D\u662F\u89C6\u9891"));return}if(B<ge){ie.push("\u3010"+se+"\u3011"+I("\u5927\u4E8E")+" "+B+"M");return}G.push(pe)}}),ie.length){V.customAlert(I("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
|
|||
|
`+ie.join(`
|
|||
|
`),"warning");return}if(G.length===0){V.customAlert(I("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(J&&typeof J=="function"){var X;J(G,(0,u.default)(X=this.insertVideo).call(X,this));return}var le=new FormData;if((0,m.default)(G).call(G,function(pe,se){var ge=L||pe.name;G.length>1&&(ge=ge+(se+1)),le.append(ge,pe)}),P){var be=P.split("#");P=be[0];var ce=be[1]||"";(0,m.default)(C).call(C,U,function(pe,se){H&&((0,h.default)(P).call(P,"?")>0?P+="&":P+="?",P=P+pe+"="+se),le.append(pe,se)}),ce&&(P+="#"+ce);var de=S.default(P,{timeout:$,formData:le,headers:R,withCredentials:!!A,beforeSend:function(se){if(z.before)return z.before(se,N,G)},onTimeout:function(se){V.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),z.timeout&&z.timeout(se,N)},onProgress:function(se,ge){var ye=new w.default(N);ge.lengthComputable&&(se=ge.loaded/ge.total,ye.show(se))},onError:function(se){V.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+I("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+se.status),z.error&&z.error(se,N)},onFail:function(se,ge){V.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+": ")+ge),z.fail&&z.fail(se,N,ge)},onSuccess:function(se,ge){if(z.customInsert){var ye;z.customInsert((0,u.default)(ye=k.insertVideo).call(ye,k),ge,N);return}if(ge.errno!="0"){V.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+" errno="+ge.errno),z.fail&&z.fail(se,N,ge);return}var D=ge.data;k.insertVideo(D.url),z.success&&z.success(se,N,ge)}});typeof de=="string"&&V.customAlert(de,"error")}}},b.prototype.insertVideo=function(x){var k=this.editor,N=k.config,V="validate.",F=function(T,B){return B===void 0&&(B=V),k.i18next.t(B+T)};if(!N.customInsertVideo)_.UA.isFirefox?k.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+x+'" controls="controls" style="max-width:100%"></video></p><p>​</p>'):k.cmd.do("insertHTML",'<video src="'+x+'" controls="controls" style="max-width:100%"></video>'+E.EMPTY_P);else{N.customInsertVideo(x);return}var I=document.createElement("video");I.onload=function(){I=null},I.onerror=function(){N.customAlert(F("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+F("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+F("\u89C6\u9891\u94FE\u63A5")+' "'+x+'"\uFF0C'+F("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),I=null},I.onabort=function(){return I=null},I.src=x},b}();o.default=g},function(r,o,i){r.exports=i(343)},function(r,o,i){var l=i(344);r.exports=l},function(r,o,i){i(345);var l=i(9);r.exports=l.Date.now},function(r,o,i){var l=i(5);l({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(347)),m=c.__importDefault(i(349));function h(y){u.default(y),m.default(y)}o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(39)),h=c.__importDefault(i(348));function y(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(N,V){return V.remove(),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(N,V){return V.attr("width","100%"),V.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(N,V){return V.attr("width","50%"),V.removeAttr("height"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(N,V){return V.attr("width","30%"),V.removeAttr("height"),!0}},{$elem:u.default("<span>"+E("\u91CD\u7F6E")+"</span>"),onClick:function(N,V){return V.removeAttr("width"),V.removeAttr("height"),!0}},{$elem:u.default("<span>"+E("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(N,V){return h.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(),b.append(x),x}function w(g,b,x){var k=g.getBoundingClientRect(),N=x.getBoundingClientRect(),V=N.width.toFixed(2),F=N.height.toFixed(2);(0,c.default)(b).call(b,".w-e-img-drag-show-size").text(V+"px * "+F+"px"),C(b,(0,u.default)(V),(0,u.default)(F),N.left-k.left,N.top-k.top),b.show()}function E(g){var b=g.$textContainerElem,x,k=S(g,b);function N(I,P){I.on("click",function(T){T.stopPropagation()}),I.on("mousedown",".w-e-img-drag-rb",function(T){if(T.preventDefault(),!x)return;var B=T.clientX,L=T.clientY,U=P.getBoundingClientRect(),H=x.getBoundingClientRect(),R=H.width,z=H.height,$=H.left-U.left,A=H.top-U.top,J=R/z,Q=R,G=z,ie=h.default(document);function X(){ie.off("mousemove",le),ie.off("mouseup",be)}function le(ce){ce.stopPropagation(),ce.preventDefault(),Q=R+(ce.clientX-B),G=z+(ce.clientY-L),Q/G!=J&&(G=Q/J),Q=(0,u.default)(Q.toFixed(2)),G=(0,u.default)(G.toFixed(2)),(0,c.default)(I).call(I,".w-e-img-drag-show-size").text(Q.toFixed(2).replace(".00","")+"px * "+G.toFixed(2).replace(".00","")+"px"),C(I,Q,G,$,A)}ie.on("mousemove",le);function be(){x.attr("width",Q+""),x.attr("height",G+"");var ce=x.getBoundingClientRect();C(I,Q,G,ce.left-U.left,ce.top-U.top),X()}ie.on("mouseup",be),ie.on("mouseleave",X)})}function V(I){if(y.UA.isIE())return!1;I&&(x=I,w(b,k,x))}function F(){(0,c.default)(b).call(b,".w-e-img-drag-mask").hide()}return N(k,b),h.default(document).on("click",F),g.beforeDestroy(function(){h.default(document).off("click",F)}),{showDrag:V,hideDrag:F}}o.createShowHideFn=E;function _(g){var b=E(g),x=b.showDrag,k=b.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)}o.default=_},function(r,o,i){r.exports=i(356)},function(r,o,i){var l=i(357);r.exports=l},function(r,o,i){i(358);var l=i(9);r.exports=l.parseFloat},function(r,o,i){var l=i(5),d=i(359);l({global:!0,forced:parseFloat!=d},{parseFloat:d})},function(r,o,i){var l=i(8),d=i(90).trim,c=i(68),u=l.parseFloat,m=1/u(c+"-0")!==-1/0;r.exports=m?function(y){var C=d(String(y)),S=u(C);return S===0&&C.charAt(0)=="-"?-0:S}:u},function(r,o,i){var l=i(20),d=i(361);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.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;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(39));function h(C){var S,w=function(b,x){return x===void 0&&(x=""),C.i18next.t(x+b)};function E(g){var b=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(k,N){return k.selection.createRangeByElem(N),k.selection.restoreSelection(),k.cmd.do("delete"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(k,N){return N.attr("width","30%"),N.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(k,N){return N.attr("width","50%"),N.removeAttr("height"),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(k,N){return N.attr("width","100%"),N.removeAttr("height"),!0}}];b.push({$elem:u.default("<span>"+w("\u91CD\u7F6E")+"</span>"),onClick:function(k,N){return N.removeAttr("width"),N.removeAttr("height"),!0}}),g.attr("data-href")&&b.push({$elem:u.default("<span>"+w("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(k,N){var V=N.attr("data-href");return V&&(V=decodeURIComponent(V),window.open(V,"_target")),!0}}),S=new m.default(C,g,b),S.create()}function _(){S&&(S.remove(),S=null)}return{showImgTooltip:E,hideImgTooltip:_}}o.createShowHideFn=h;function y(C){var S=h(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)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u){var m=u.txt,h=u.selection,y=m.eventHooks.keydownEvents;y.push(function(C){var S=h.getSelectionContainerElem(),w=h.getRange();if(!(!w||!S||C.keyCode!==8||!h.isSelectionEmpty())){var E=w.startContainer,_=w.startOffset,g=null;if(_===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[_-1]);if(!!g){for(var b=g;b.childNodes.length;)b=b.childNodes[b.childNodes.length-1];b instanceof HTMLElement&&b.tagName==="IMG"&&(b.remove(),C.preventDefault())}}})}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26)),u=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(3)),y=i(6),C=m.__importDefault(i(97));function S(w){var E,_=w.config,g=new C.default(w),b=y.getRandom("up-trigger-id"),x=y.getRandom("up-file-id"),k=y.getRandom("input-link-url"),N=y.getRandom("input-link-url-alt"),V=y.getRandom("input-link-url-href"),F=y.getRandom("btn-link"),I="menus.panelMenus.image.",P=function(J,Q){return Q===void 0&&(Q=I),w.i18next.t(Q+J)};function T(A,J,Q){var G=_.linkImgCheck(A);return G===!0?!0:(typeof G=="string"&&_.customAlert(G,"error"),!1)}var B=_.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,c.default)(E=_.uploadImgAccept).call(E,function(A){return"image/"+A}).join(","),U=function(J,Q,G){return'<div class="'+J+'" data-title="'+G+`">
|
|||
|
<div id="`+b+`" class="w-e-up-btn">
|
|||
|
<i class="`+Q+`"></i>
|
|||
|
</div>
|
|||
|
<div style="display:none;">
|
|||
|
<input id="`+x+'" type="file" '+B+' accept="'+L+`"/>
|
|||
|
</div>
|
|||
|
</div>`},H=[{selector:"#"+b,type:"click",fn:function(){var J=_.uploadImgFromMedia;if(J&&typeof J=="function")return J(),!0;var Q=h.default("#"+x),G=Q.elems[0];if(G)G.click();else return!0}},{selector:"#"+x,type:"change",fn:function(){var J=h.default("#"+x),Q=J.elems[0];if(!Q)return!0;var G=Q.files;return G!=null&&G.length&&g.uploadImg(G),Q&&(Q.value=""),!0}}],R=[`<input
|
|||
|
id="`+k+`"
|
|||
|
type="text"
|
|||
|
class="block"
|
|||
|
placeholder="`+P("\u56FE\u7247\u5730\u5740")+'"/>'];_.showLinkImgAlt&&R.push(`
|
|||
|
<input
|
|||
|
id="`+N+`"
|
|||
|
type="text"
|
|||
|
class="block"
|
|||
|
placeholder="`+P("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),_.showLinkImgHref&&R.push(`
|
|||
|
<input
|
|||
|
id="`+V+`"
|
|||
|
type="text"
|
|||
|
class="block"
|
|||
|
placeholder="`+P("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var z=[{title:P("\u4E0A\u4F20\u56FE\u7247"),tpl:U("w-e-up-img-container","w-e-icon-upload2",""),events:H},{title:P("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
|
|||
|
`+R.join("")+`
|
|||
|
<div class="w-e-button-container">
|
|||
|
<button type="button" id="`+F+'" class="right">'+P("\u63D2\u5165","")+`</button>
|
|||
|
</div>
|
|||
|
</div>`,events:[{selector:"#"+F,type:"click",fn:function(){var J,Q=h.default("#"+k),G=(0,u.default)(J=Q.val()).call(J);if(!!G){var ie;if(_.showLinkImgAlt){var X;ie=(0,u.default)(X=h.default("#"+N).val()).call(X)}var le;if(_.showLinkImgHref){var be;le=(0,u.default)(be=h.default("#"+V).val()).call(be)}if(!!T(G))return g.insertImg(G,ie,le),!0}},bindEnter:!0}]}],$={width:300,height:0,tabs:[],onlyUploadConf:{$elem:h.default(U("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:H}};return window.FileReader&&(_.uploadImgShowBase64||_.uploadImgServer||_.customUploadImg||_.uploadImgFromMedia)&&$.tabs.push(z[0]),_.showLinkImg&&($.tabs.push(z[1]),$.onlyUploadConf=void 0),$}o.default=S},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=u.__importDefault(i(24)),y=u.__importDefault(i(366)),C=function(S){u.__extends(w,S);function w(E){var _=this,g=m.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
|
|||
|
<i class="w-e-icon-indent-increase"></i>
|
|||
|
</div>`),b={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:m.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:m.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){_.command(k)}};return _=S.call(this,g,E,b)||this,_}return w.prototype.command=function(E){var _=this.editor,g=_.selection.getSelectionContainerElem();if(g&&_.$textElem.equal(g)){var b=_.selection.getSelectionRangeTopNodes();b.length>0&&(0,c.default)(b).call(b,function(x){y.default(m.default(x),E,_)})}else g&&g.length>0&&(0,c.default)(g).call(g,function(x){y.default(m.default(x),E,_)});_.selection.restoreSelection(),this.tryChangeActive()},w.prototype.tryChangeActive=function(){var E=this.editor,_=E.selection.getSelectionStartElem(),g=m.default(_).getNodeTop(E);g.length<=0||(g.elems[0].style.paddingLeft!=""?this.active():this.unActive())},w}(h.default);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45)),u=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(367)),y=m.__importDefault(i(368)),C=/^(\d+)(\w+)$/,S=/^(\d+)%$/;function w(_){var g=_.config.indentation;if(typeof g=="string"){if(C.test(g)){var b,x=(0,c.default)(b=(0,u.default)(g).call(g).match(C)).call(b,1,3),k=x[0],N=x[1];return{value:Number(k),unit:N}}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(_,g,b){var x=_.getNodeTop(b),k=/^(P|H[0-9]*)$/;k.test(x.getNodeName())&&(g==="increase"?h.default(x,w(b)):g==="decrease"&&y.default(x,w(b)))}o.default=E},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45));(0,d.default)(o,"__esModule",{value:!0});function u(m,h){var y=m.elems[0];if(y.style.paddingLeft==="")m.css("padding-left",h.value+h.unit);else{var C=y.style.paddingLeft,S=(0,c.default)(C).call(C,0,C.length-h.unit.length),w=Number(S)+h.value;m.css("padding-left",""+w+h.unit)}}o.default=u},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45));(0,d.default)(o,"__esModule",{value:!0});function u(m,h){var y=m.elems[0];if(y.style.paddingLeft!==""){var C=y.style.paddingLeft,S=(0,c.default)(C).call(C,0,C.length-h.unit.length),w=Number(S)-h.value;w>0?m.css("padding-left",""+w+h.unit):m.css("padding-left","")}}o.default=u},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(38)),h=c.__importDefault(i(33)),y=c.__importDefault(i(370)),C=function(S){c.__extends(w,S);function w(E){var _=this,g=u.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
|
|||
|
<i class="w-e-icon-happy"></i>
|
|||
|
</div>`);return _=S.call(this,g,E)||this,_}return w.prototype.createPanel=function(){var E=y.default(this.editor),_=new h.default(this,E);_.create()},w.prototype.clickHandler=function(){this.createPanel()},w.prototype.tryChangeActive=function(){},w}(m.default);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26)),u=l(i(70)),m=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),y=h.__importDefault(i(3));function C(S){var w=S.config.emotions;function E(b){var x=[];if(b.type=="image"){var k;x=(0,c.default)(k=b.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 N;x=(0,c.default)(N=b.content).call(N,function(V){return'<span class="eleImg" title="'+V+'">'+V+"</span>"})}return x.join("").replace(/ /g,"")}var _=(0,c.default)(w).call(w,function(b){return{title:S.i18next.t("menus.panelMenus.emoticon."+b.title),tpl:"<div>"+E(b)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(k){var N=y.default(k.target),V=N.getNodeName(),F;if(V==="IMG"){var I;F=(0,m.default)(I=N.parent().html()).call(I)}else F="<span>"+N.html()+"</span>";return S.cmd.do("insertHTML",F),!0}}]}}),g={width:300,height:230,tabs:_};return g}o.default=C},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createListHandle=o.ClassType=void 0;var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(372)),h=c.__importDefault(i(374)),y=c.__importDefault(i(375)),C=c.__importDefault(i(376)),S=c.__importDefault(i(377)),w;(function(b){b.Wrap="WrapListHandle",b.Join="JoinListHandle",b.StartJoin="StartJoinListHandle",b.EndJoin="EndJoinListHandle",b.Other="OtherListHandle"})(w=o.ClassType||(o.ClassType={}));var E={WrapListHandle:m.default,JoinListHandle:h.default,StartJoinListHandle:y.default,EndJoinListHandle:C.default,OtherListHandle:S.default};function _(b,x,k){if(b===w.Other&&k===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return b!==w.Other?new E[b](x):new E[b](x,k)}o.createListHandle=_;var g=function(){function b(x){this.handle=x,this.handle.exec()}return b.prototype.getSelectionRangeElem=function(){return u.default(this.handle.selectionRangeElem.get())},b}();o.default=g},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=i(58),y=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,_=E.listType,g=E.listTarget,b=E.$selectionElem,x=E.$startElem,k=E.$endElem,N,V=[],F=b==null?void 0:b.getNodeName(),I=x.prior,P=k.prior;if(!x.prior&&!k.prior||!(I!=null&&I.prev().length)&&!(P!=null&&P.next().length)){var T;(0,c.default)(T=b==null?void 0:b.children()).call(T,function($){V.push(m.default($))}),F===_?N=y.createElementFragment(V,y.createDocumentFragment(),"p"):(N=y.createElement(g),(0,c.default)(V).call(V,function($){N.appendChild($.elems[0])})),this.selectionRangeElem.set(N),y.insertBefore(b,N,b.elems[0]),b.remove()}else{for(var B=I;B.length;)V.push(B),P!=null&&P.equal(B)?B=m.default(void 0):B=B.next();var L=I.prev(),U=P.next();if(F===_?N=y.createElementFragment(V,y.createDocumentFragment(),"p"):(N=y.createElement(g),(0,c.default)(V).call(V,function($){N.append($.elems[0])})),L.length&&U.length){for(var H=[];U.length;)H.push(U),U=U.next();var R=y.createElement(F);(0,c.default)(H).call(H,function($){R.append($.elems[0])}),m.default(R).insertAfter(b),this.selectionRangeElem.set(N);var z=b.next();z.length?y.insertBefore(b,N,z.elems[0]):b.parent().elems[0].append(N)}else if(!L.length)this.selectionRangeElem.set(N),y.insertBefore(b,N,b.elems[0]);else{this.selectionRangeElem.set(N);var z=b.next();z.length?y.insertBefore(b,N,z.elems[0]):b.parent().elems[0].append(N)}}},w}(h.ListHandle);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=function(){function m(){this._element=null}return m.prototype.set=function(h){if(h instanceof DocumentFragment){var y,C=[];(0,c.default)(y=h.childNodes).call(y,function(S){C.push(S)}),h=C}this._element=h},m.prototype.get=function(){return this._element},m.prototype.clear=function(){this._element=null},m}();o.default=u},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=i(58),y=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,_,g,b,x,k,N,V=this.options,F=V.editor,I=V.listType,P=V.listTarget,T=V.$startElem,B=V.$endElem,L,U=F.selection.getSelectionRangeTopNodes(),H=T==null?void 0:T.getNodeName(),R=B==nul
|
|||
|
<i class="w-e-icon-row-height"></i>
|
|||
|
</div>`),x=new C.default(_,_.config.lineHeights),k={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:x.getItemList(),clickHandler:function(V){_.selection.saveRange(),g.command(V)}};return g=w.call(this,b,_,k)||this,g}return E.prototype.command=function(_){var g=this.editor;g.selection.restoreSelection();var b=y.default(g.selection.getSelectionContainerElem());if(!!b.elems.length){if(b&&g.$textElem.equal(b)){for(var x=!1,k=y.default(g.selection.getSelectionStartElem()).elems[0],N=y.default(g.selection.getSelectionEndElem()).elems[0],V=this.getDom(k),F=this.getDom(N),I=b.elems[0].children,P=0;P<I.length;P++){var T=I[P];if(y.default(T).getNodeName()==="P"&&(T===V&&(x=!0),x&&(y.default(T).css("line-height",_),T===F))){x=!1;return}}g.selection.createRangeByElems(k,N);return}var B=b.elems[0],L=this.getDom(B);y.default(L).getNodeName()==="P"&&(y.default(L).css("line-height",_),g.selection.createRangeByElems(L,L))}},E.prototype.getDom=function(_){var g=y.default(_).elems[0];if(!g.parentNode)return g;function b(x,k){var N=y.default(x.parentNode);return k.$textElem.equal(N)?x:b(N.elems[0],k)}return g=b(g,this.editor),g},E.prototype.styleProcessing=function(_){var g="";return(0,c.default)(_).call(_,function(b){b!==""&&(0,u.default)(b).call(b,"line-height")===-1&&(g=g+b+";")}),g},E.prototype.setRange=function(_,g){var b=this.editor,x=window.getSelection?window.getSelection():document.getSelection();x==null||x.removeAllRanges();var k=document.createRange(),N=_,V=g;k.setStart(N,0),k.setEnd(V,1),x==null||x.addRange(k),b.selection.saveRange(),x==null||x.removeAllRanges(),b.selection.restoreSelection()},E.prototype.tryChangeActive=function(){var _=this.editor,g=_.selection.getSelectionContainerElem();if(!(g&&_.$textElem.equal(g))){var b=y.default(_.selection.getSelectionStartElem());if(b.length!==0){b=this.getDom(b.elems[0]);var x=b.getAttribute("style")?b.getAttribute("style"):"";x&&(0,u.default)(x).call(x,"line-height")!==-1?this.active():this.unActive()}}},E}(h.default);o.default=S},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=function(){function y(C,S){var w=this;this.itemList=[{$elem:m.default("<span>"+C.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,c.default)(S).call(S,function(E){w.itemList.push({$elem:m.default("<span>"+E+"</span>"),value:E})})}return y.prototype.getItemList=function(){return this.itemList},y}();o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(23)),h=function(y){c.__extends(C,y);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=y.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}(m.default);o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(23)),h=function(y){c.__extends(C,y);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=y.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}(m.default);o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(38)),m=c.__importDefault(i(3)),h=c.__importDefault(i(383)),y=c.__importDefault(i(33)),C=c.__importDefault(i(392)),S=function(w){c.__extends(E,w);function E(_){var g=this,b=m.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(_),g}return E.prototype.clickHandler=function(){this.createPanel()},E.prototype.createPanel=function(){var _=h.default(this.editor),g=new y.default(this,_);g.create()},E.prototype.tryChangeActive=function(){},E}(u.default);o.default=S},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(384));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=i(6),h=u.__importDefault(i(3));i(389);var y=u.__importDefault(i(391));function C(w){return w>0&&(0,c.default)(w)}function S(w){var E=new y.default(w),_=m.getRandom("w-col-id"),g=m.getRandom("w-row-id"),b=m.getRandom("btn-link"),x="menus.panelMenus.table.",k=function(I){return w.i18next.t(I)},N=[{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="`+_+`" 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="`+b+'" class="right">'+k("\u63D2\u5165")+`</button>
|
|||
|
</div>
|
|||
|
</div>`,events:[{selector:"#"+b,type:"click",fn:function(){var I=Number(h.default("#"+_).val()),P=Number(h.default("#"+g).val());return C(P)&&C(I)?(E.createAction(P,I),!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(N[0]),V}o.default=S},function(r,o,i){r.exports=i(385)},function(r,o,i){var l=i(386);r.exports=l},function(r,o,i){i(387);var l=i(9);r.exports=l.Number.isInteger},function(r,o,i){var l=i(5),d=i(388);l({target:"Number",stat:!0},{isInteger:d})},function(r,o,i){var l=i(13),d=Math.floor;r.exports=function(u){return!l(u)&&isFinite(u)&&d(u)===u}},function(r,o,i){var l=i(20),d=i(390);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-table {
|
|||
|
display: flex;
|
|||
|
}
|
|||
|
.w-e-table .w-e-table-input {
|
|||
|
width: 40px;
|
|||
|
text-align: center!important;
|
|||
|
margin: 0 5px;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(7),m=c.__importDefault(i(3)),h=function(){function y(C){this.editor=C}return y.prototype.createAction=function(C,S){var w=this.editor,E=m.default(w.selection.getSelectionContainerElem()),_=m.default(E.elems[0]).parentUntilEditor("UL",w),g=m.default(E.elems[0]).parentUntilEditor("OL",w);if(!(_||g)){var b=this.createTableHtml(C,S);w.cmd.do("insertHTML",b)}},y.prototype.createTableHtml=function(C,S){for(var w="",E="",_=0;_<C;_++){E="";for(var g=0;g<S;g++)_===0?E=E+"<th></th>":E=E+"<td></td>";w=w+"<tr>"+E+"</tr>"}var b='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+w+("</tbody></table>"+u.EMPTY_P);return b},y}();o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(393)),m=i(400);function h(y){u.default(y),m.bindEventKeyboardEvent(y),m.bindClickEvent(y)}o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(39)),h=c.__importDefault(i(394)),y=c.__importDefault(i(399)),C=i(7);function S(g){var b;function x(N){var V=new y.default(g),F="menus.panelMenus.table.",I=function(B,L){return L===void 0&&(L=F),g.i18next.t(L+B)},P=[{$elem:u.default("<span>"+I("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function(B,L){return B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",C.EMPTY_P),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u884C")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=V.getRowNode(H.elems[0]);if(!R)return!0;var z=Number(V.getCurrentRowIndex(L.elems[0],R)),$=V.getTableHtml(L.elems[0]),A=V.getTableHtml(h.default.ProcessingRow(u.default($),z).elems[0]);return A=_(L,A),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",A),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u884C")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=V.getRowNode(H.elems[0]);if(!R)return!0;var z=Number(V.getCurrentRowIndex(L.elems[0],R)),$=V.getTableHtml(L.elems[0]),A=h.default.DeleteRow(u.default($),z).elems[0].children[0].children.length,J="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),A===0?J=C.EMPTY_P:J=V.getTableHtml(h.default.DeleteRow(u.default($),z).elems[0]),J=_(L,J),B.cmd.do("insertHTML",J),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u5217")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=V.getCurrentColIndex(H.elems[0]),z=V.getTableHtml(L.elems[0]),$=V.getTableHtml(h.default.ProcessingCol(u.default(z),R).elems[0]);return $=_(L,$),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",$),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u5217")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=V.getCurrentColIndex(H.elems[0]),z=V.getTableHtml(L.elems[0]),$=h.default.DeleteCol(u.default(z),R),A=$.elems[0].children[0].children[0].children.length,J="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),A===0?J=C.EMPTY_P:J=V.getTableHtml($.elems[0]),J=_(L,J),B.cmd.do("insertHTML",J),!0}},{$elem:u.default("<span>"+I("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=V.getRowNode(H.elems[0]);if(!R)return!0;var z=Number(V.getCurrentRowIndex(L.elems[0],R));z!==0&&(z=0);var $=V.getTableHtml(L.elems[0]),A=V.getTableHtml(h.default.setTheHeader(u.default($),z,"th").elems[0]);return A=_(L,A),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",A),!0}},{$elem:u.default("<span>"+I("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function(B,L){var U=u.default(B.selection.getSelectionStartElem()),H=V.getRowNode(U.elems[0]);if(!H)return!0;var
|
|||
|
`).replace(/<br>/g,""))}),V}function N(V){var F,I=V.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!I||!I.length)return V;for(var P=(0,c.default)(F=y.deepClone(I)).call(F,function(B){return B=B.replace(/<span\sclass="hljs[^>]+>/,""),B.replace(/<\/span>/,"")}),T=0;T<I.length;T++)V=V.replace(I[T],P[T]);return N(V)}}o.formatCodeHtml=_;var g=function(b){u.__extends(x,b);function x(k){var N=this,V=h.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return N=b.call(this,V,k)||this,E.default(k),N}return x.prototype.insertLineCode=function(k){var N=this.editor,V=h.default("<code>"+k+"</code>");N.cmd.do("insertElem",V),N.selection.createRangeByElem(V,!1),N.selection.restoreSelection()},x.prototype.clickHandler=function(){var k=this.editor,N=k.selection.getSelectionText();this.isActive||(k.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(N))},x.prototype.createPanel=function(k,N){var V=C.default(this.editor,k,N),F=new w.default(this,V);F.create()},x.prototype.tryChangeActive=function(){var k=this.editor;S.default(k)?this.active():this.unActive()},x}(m.default);o.default=g},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=i(6),h=u.__importDefault(i(3)),y=u.__importDefault(i(139)),C=i(7);function S(w,E,_){var g,b=m.getRandom("input-iframe"),x=m.getRandom("select"),k=m.getRandom("btn-ok");function N(P,T){var B,L=y.default(w);L&&V();var U=(B=w.selection.getSelectionStartElem())===null||B===void 0?void 0:B.elems[0].innerHTML;U&&w.cmd.do("insertHTML",C.EMPTY_P);var H=T.replace(/</g,"<").replace(/>/g,">");w.highlight&&(H=w.highlight.highlightAuto(H).value),w.cmd.do("insertHTML",'<pre><code class="'+P+'">'+H+"</code></pre>");var R=w.selection.getSelectionStartElem(),z=R==null?void 0:R.getNodeTop(w);(z==null?void 0:z.getNextSibling().elems.length)===0&&h.default(C.EMPTY_P).insertAfter(z)}function V(){if(!!y.default(w)){var P=w.selection.getSelectionStartElem(),T=P==null?void 0:P.getNodeTop(w);!T||(w.selection.createRangeByElem(T),w.selection.restoreSelection())}}var F=function(T){return w.i18next.t(T)},I={width:500,height:0,tabs:[{title:F("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
|
|||
|
<select name="" id="`+x+`">
|
|||
|
`+(0,c.default)(g=w.config.languageType).call(g,function(P){return"<option "+(_==P?"selected":"")+' value ="'+P+'">'+P+"</option>"})+`
|
|||
|
</select>
|
|||
|
<textarea id="`+b+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+E.replace(/"/g,'"')+`</textarea>
|
|||
|
<div class="w-e-button-container">
|
|||
|
<button type="button" id="`+k+'" class="right">'+(y.default(w)?F("\u4FEE\u6539"):F("\u63D2\u5165"))+`</button>
|
|||
|
</div>
|
|||
|
</div>`,events:[{selector:"#"+k,type:"click",fn:function(){var T=document.getElementById(b),B=h.default("#"+x),L=B.val(),U=T.value;if(!!U)return y.default(w)?!1:(N(L,U),!0)}}]}]};return I}o.default=S},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(404)),m=c.__importDefault(i(405));function h(y){u.default(y),m.default(y)}o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(39));function h(C){var S;function w(_){var g="menus.panelMenus.code.",b=function(N,V){return V===void 0&&(V=g),C.i18next.t(V+N)},x=[{$elem:u.default("<span>"+b("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(N,V){return V.remove(),!0}}];S=new m.default(C,_,x),S.create()}function E(){S&&(S.remove(),S=null)}return{showCodeTooltip:w,hideCodeTooltip:E}}o.createShowHideFn=h;function y(C){var S=h(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)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(7),m=c.__importDefault(i(3));function h(y){var C=y.$textElem,S=y.selection,w=y.txt,E=w.eventHooks.keydownEvents;E.push(function(_){var g;if(_.keyCode===40){var b=S.getSelectionContainerElem(),x=(g=C.children())===null||g===void 0?void 0:g.last();if((b==null?void 0:b.elems[0].tagName)==="XMP"&&(x==null?void 0:x.elems[0].tagName)==="PRE"){var k=m.default(u.EMPTY_P);C.append(k)}}}),E.push(function(_){y.selection.saveRange();var g=S.getSelectionContainerElem();if(g){var b=g.getNodeTop(y),x=b==null?void 0:b.prev(),k=b==null?void 0:b.getNextSibling();if(x.length&&(x==null?void 0:x.getNodeName())==="PRE"&&k.length===0&&S.getCursorPos()===0&&_.keyCode===8){var N=m.default(u.EMPTY_P);C.append(N)}}})}o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),m=c.__importDefault(i(3)),h=c.__importDefault(i(407)),y=i(6),C=i(7),S=function(w){c.__extends(E,w);function E(_){var g=this,b=m.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,h.default(_),g}return E.prototype.clickHandler=function(){var _=this.editor,g=_.selection.getRange(),b=_.selection.getSelectionContainerElem();if(!!(b!=null&&b.length)){var x=m.default(b.elems[0]),k=x.parentUntil("TABLE",b.elems[0]),N=x.children();x.getNodeName()!=="CODE"&&(k&&m.default(k.elems[0]).getNodeName()==="TABLE"||N&&N.length!==0&&m.default(N.elems[0]).getNodeName()==="IMG"&&!(g!=null&&g.collapsed)||this.createSplitLine())}},E.prototype.createSplitLine=function(){var _="<hr/>"+C.EMPTY_P;y.UA.isFirefox&&(_="<hr/><p></p>"),this.editor.cmd.do("insertHTML",_)},E.prototype.tryChangeActive=function(){},E}(u.default);o.default=S},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(408));function m(h){u.default(h)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(39));function h(C){var S;function w(_){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 m.default(C,_,g),S.create()}function E(){S&&(S.remove(),S=null)}return{showSplitLineTooltip:w,hideSplitLineTooltip:E}}function y(C){var S=h(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)}o.default=y},function(r,o,i){var l=i(0),
|
|||
|
<i class="w-e-icon-checkbox-checked"></i>
|
|||
|
</div>`);return b=E.call(this,x,g)||this,C.default(g),b}return _.prototype.clickHandler=function(){var g=this.editor;y.isAllTodo(g)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},_.prototype.tryChangeActive=function(){y.isAllTodo(this.editor)?this.active():this.unActive()},_.prototype.setTodo=function(){var g=this.editor,b=g.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(x){var k,N=x==null?void 0:x.getNodeName();if(N==="P"){var V=S.default(x),F=V.getTodo(),I=(k=F.children())===null||k===void 0?void 0:k.getNode();F.insertAfter(x),g.selection.moveCursor(I),x.remove()}}),this.tryChangeActive()},_.prototype.cancelTodo=function(){var g=this.editor,b=g.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(x){var k,N,V,F=(N=(k=x.childNodes())===null||k===void 0?void 0:k.childNodes())===null||N===void 0?void 0:N.clone(!0),I=m.default("<p></p>");I.append(F),I.insertAfter(x),(V=I.childNodes())===null||V===void 0||V.get(0).remove(),g.selection.moveCursor(I.getNode()),x.remove()})},_}(h.default);o.default=w},function(r,o,i){r.exports=i(411)},function(r,o,i){var l=i(412);r.exports=l},function(r,o,i){var l=i(413),d=Array.prototype;r.exports=function(c){var u=c.every;return c===d||c instanceof Array&&u===d.every?l:u}},function(r,o,i){i(414);var l=i(15);r.exports=l("Array").every},function(r,o,i){var l=i(5),d=i(32).every,c=i(67),u=i(22),m=c("every"),h=u("every");l({target:"Array",proto:!0,forced:!m||!h},{every:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(3)),h=i(98),y=u.__importDefault(i(140)),C=i(98),S=i(7);function w(E){function _(k){var N,V;if(h.isAllTodo(E)){k.preventDefault();var F=E.selection,I=F.getSelectionRangeTopNodes()[0],P=(N=I.childNodes())===null||N===void 0?void 0:N.get(0),T=(V=window.getSelection())===null||V===void 0?void 0:V.anchorNode,B=F.getRange();if(!(B!=null&&B.collapsed)){var L=B==null?void 0:B.commonAncestorContainer.childNodes,U=B==null?void 0:B.startContainer,H=B==null?void 0:B.endContainer,R=B==null?void 0:B.startOffset,z=B==null?void 0:B.endOffset,$=0,A=0,J=[];L==null||(0,c.default)(L).call(L,function(se,ge){se.contains(U)&&($=ge),se.contains(H)&&(A=ge)}),A-$>1&&(L==null||(0,c.default)(L).call(L,function(se,ge){ge<=$||ge>=A||J.push(se)}),(0,c.default)(J).call(J,function(se){se.remove()})),C.dealTextNode(U,R),C.dealTextNode(H,z,!1),E.selection.moveCursor(H,0)}if(I.text()===""){var Q=m.default(S.EMPTY_P);Q.insertAfter(I),F.moveCursor(Q.getNode()),I.remove();return}var G=F.getCursorPos(),ie=h.getCursorNextNode(P==null?void 0:P.getNode(),T,G),X=y.default(m.default(ie)),le=X.getInputContainer(),be=le.parent().getNode(),ce=X.getTodo(),de=le.getNode().nextSibling;if((P==null?void 0:P.text())===""&&(P==null||P.append(m.default("<br>"))),ce.insertAfter(I),!de||(de==null?void 0:de.textContent)===""){if((de==null?void 0:de.nodeName)!=="BR"){var pe=m.default("<br>");pe.insertAfter(le)}F.moveCursor(be,1)}else F.moveCursor(be)}}function g(k){var N,V;if(h.isAllTodo(E)){var F=E.selection,I=F.getSelectionRangeTopNodes()[0],P=(N=I.childNodes())===null||N===void 0?void 0:N.getNode(),T=m.default("<p></p>"),B=T.getNode(),L=(V=window.getSelection())===null||V===void 0?void 0:V.anchorNode,U=F.getCursorPos(),H=L.previousSibling;if(I.text()===""){k.preventDefault();var R=m.default(S.EMPTY_P);R.insertAfter(I),I.remove(),F.moveCursor(R.getNode(),0);return}if((H==null?void 0:H.nodeName)==="SPAN"&&H.childNodes[0].nodeName==="INPUT"&&U===0){var z;k.preventDefault(),P==null||(0,c.default)(z=P.childNodes).call(z,function($,A){A!==0&&B.appendChild($.cloneNode(!0))}),T.insertAfter(I),I.remove()}}}function b(){var k=E.selection,N=k.getSelectionRangeTopNodes()[0];N&&C.isTodo(N)&&N.text()===""&&(m.default(S.EMPTY_P).insertAfter(N),N.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.eventHo
|
|||
|
<i class="`+h+`"></i>
|
|||
|
</div>`);g.on("click",function(b){var x,k=(0,c.default)(x=m.default(b.currentTarget)).call(x,"i");k.hasClass(h)?(g.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),o.setFullScreen(E)):(g.attr("data-title","\u5168\u5C4F"),o.setUnFullScreen(E))}),_.append(g)}};o.default=S},function(r,o,i){var l=i(20),d=i(422);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-full-screen-editor {
|
|||
|
position: fixed;
|
|||
|
width: 100%!important;
|
|||
|
height: 100%!important;
|
|||
|
left: 0;
|
|||
|
top: 0;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(o,"__esModule",{value:!0});var u=function(h,y){var C,S=h.isEnable?h.$textElem:(0,c.default)(C=h.$textContainerElem).call(C,".w-e-content-mantle"),w=(0,c.default)(S).call(S,"[id='"+y+"']"),E=w.getOffsetData().top;S.scrollTop(E)};o.default=u},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(129)),m={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},h=function(){function y(){this.tier=m,this.baseZIndex=u.default.zIndex}return y.prototype.get=function(C){return C&&this.tier[C]?this.baseZIndex+this.tier[C]:this.baseZIndex},y.prototype.init=function(C){this.baseZIndex==u.default.zIndex&&(this.baseZIndex=C.config.zIndex)},y}();o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(70)),u=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(426)),y=i(6),C=i(7);function S(E,_){return(0,c.default)(E).call(E,function(g){var b=g.type,x=g.target,k=g.attributeName;return b!="attributes"||b=="attributes"&&(k=="contenteditable"||x!=_)})}var w=function(E){m.__extends(_,E);function _(g){var b=E.call(this,function(x,k){var N;if(x=S(x,k.target),(N=b.data).push.apply(N,x),g.isCompatibleMode)b.asyncSave();else if(!g.isComposing)return b.asyncSave()})||this;return b.editor=g,b.data=[],b.asyncSave=C.EMPTY_FN,b}return _.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},_.prototype.emit=function(){var g;(0,u.default)(g=this.editor.txt.eventHooks.changeEvents).call(g,function(b){return b()})},_.prototype.observe=function(){var g=this;E.prototype.observe.call(this,this.editor.$textElem.elems[0]);var b=this.editor.config.onchangeTimeout;this.asyncSave=y.debounce(function(){g.save()},b),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){g.asyncSave()})},_}(h.default);o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=function(){function u(m,h){var y=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(C){m(C,y)},this.observer=new MutationObserver(this.callback),h&&(this.options=h)}return(0,d.default)(u.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),u.prototype.observe=function(m){this.node instanceof Node||(this.node=m,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 m=this.observer.takeRecords();m.length&&this.callback(m),this.observer.disconnect()},u}();o.default=c},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(428)),m=c.__importDefault(i(435)),h=c.__importDefault(i(436)),y=function(){function C(S){this.editor=S,this.content=new u.default(S),this.scroll=new m.default(S),this.range=new h.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}();o.default=y},function(r,o,i){var
|
|||
|
<div class="w-e-content-preview w-e-text">`+b+`</div>
|
|||
|
</div>`),y.$textContainerElem.append(S);var x=y.zIndex.get("menu");w=m.default('<div class="w-e-menue-mantle" style="z-index:'+x+'"></div>'),y.$toolbarElem.append(w),C=!0,y.isEnable=!1}}function _(){!C||(S.remove(),w.remove(),y.$textElem.show(),C=!1,y.isEnable=!0)}return{disable:E,enable:_}}o.default=h},function(r,o,i){var l=i(20),d=i(439);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.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;
|
|||
|
}
|
|||
|
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=function(){function u(m){var h=this;this.editor=m;var y=function(){var S=document.activeElement;S===m.$textElem.elems[0]&&h.emit()};window.document.addEventListener("selectionchange",y),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",y)})}return u.prototype.emit=function(){var m,h=this.editor.config.onSelectionChange;if(h){var y=this.editor.selection;y.saveRange(),y.isSelectionEmpty()||h({text:y.getSelectionText(),html:(m=y.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0].innerHTML,selection:y})}},u}();o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(128)),u=l(i(94)),m=l(i(4));(0,d.default)(o,"__esModule",{value:!0}),o.registerPlugin=void 0;var h=i(2),y=h.__importDefault(i(87)),C=i(6);function S(E,_,g){if(!E)throw new TypeError("name is not define");if(!_)throw new TypeError("options is not define");if(!_.intention)throw new TypeError("options.intention is not define");if(_.intention&&typeof _.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]=_}o.registerPlugin=S;function w(E){var _=(0,c.default)({},C.deepClone(y.default.globalPluginsFunctionList),C.deepClone(E.pluginsFunctionList)),g=(0,u.default)(_);(0,m.default)(g).call(g,function(b){var x=b[0],k=b[1];console.info("plugin "+x+" initializing");var N=k.intention,V=k.config;N(E,V),console.info("plugin "+x+" initialization complete")})}o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0})}]).default})})(Iv);var cL=dL(Iv.exports),uL="fcEditor",fL=1,pL=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var o in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hL=n.defineComponent({name:uL,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:fL++}},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 cL("#editor".concat(t.uni)),t.editor.config.zIndex=2,t.editor.config.focus=!1,t.editor.config.autoFocus=!1,t.config&&pL(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=lL({},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(r){r(zr())})(function(r){r.defineSimpleMode=function(C,S){r.defineMode(C,function(w){return r.simpleMode(w,S)})},r.simpleMode=function(C,S){o(S,"start");var w={},E=S.meta||{},_=!1;for(var g in S)if(g!=E&&S.hasOwnProperty(g))for(var b=w[g]=[],x=S[g],k=0;k<x.length;k++){var N=x[k];b.push(new d(N,S)),(N.indent||N.dedent)&&(_=!0)}var V={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:_?[]:null}},copyState:function(I){var P={state:I.state,pending:I.pending,local:I.local,localState:null,indent:I.indent&&I.indent.slice(0)};I.localState&&(P.localState=r.copyState(I.local.mode,I.localState)),I.stack&&(P.stack=I.stack.slice(0));for(var T=I.persistentStates;T;T=T.next)P.persistentStates={mode:T.mode,spec:T.spec,state:T.state==I.localState?P.localState:r.copyState(T.mode,T.state),next:P.persistentStates};return P},token:c(w,C),innerMode:function(I){return I.local&&{mode:I.local.mode,state:I.localState}},indent:y(w,E)};if(E)for(var F in E)E.hasOwnProperty(F)&&(V[F]=E[F]);return V};function o(C,S){if(!C.hasOwnProperty(S))throw new Error("Undefined state "+S+" in simple mode")}
|