1534 lines
1.6 MiB
1534 lines
1.6 MiB
/*!
|
||
* 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-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{background:#fff;border:1px solid silver;border-radius:3px;box-shadow:2px 3px 5px #0003;font-family:monospace;font-size:90%;list-style:none;margin:0;max-height:20em;overflow:hidden;overflow-y:auto;padding:2px;position:absolute;z-index:1}.CodeMirror-hint{border-radius:2px;color:#000;cursor:pointer;margin:0;padding:0 4px;white-space:pre}li.CodeMirror-hint-active{background:#08f;color:#fff}._fd-fn{display:flex;flex-direction:column;height:100%;position:relative;width:100%}._fd-fn .el-button{bottom:3px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;position:absolute;right:5px}._fd-fn-editor{display:flex;flex:1;overflow:auto;width:100%}._fd-fn-editor .CodeMirror{height:100%;width:100%}._fd-fn-tip{background:var(--fc-bg-color-2);color:var(--fc-text-color-1);direction:ltr;font-family:monospace}._fd-fn-tip .cm-keyword{color:#708;line-height:24px;overflow-x:auto;white-space:nowrap}._fd-fn-tip .cm-keyword::-webkit-scrollbar{background-color:transparent;height:0;width:0}._fd-fn-ind{background-color:var(--fc-bg-color-3);border-right:1px solid var(--fc-line-color-2);display:inline-block;float:left;height:24px;margin-right:4px;width:29px}._fd-fn-arg{cursor:pointer;text-decoration:underline}._fd-fn-arg i{color:var(--fc-style-color-1);font-size:12px}._fd-cdi-input>div{width:100%}._fd-pattern-input{width:100%}._fd-pattern-input .el-input-group__append{padding:0 10px}._fd-pattern-input .fc-icon{cursor:pointer}._fd-pattern-popper .el-dropdown__list{height:350px;overflow:auto}.el-tree._fd-rule-select{min-width:200px}._fd-rule-select .el-tree-node:has(._fd-rule-select-node){border-bottom-style:solid;border-bottom:1px dashed var(--fc-line-color-3);padding-bottom:5px}._fd-rule-select .el-tree-node:has(._fd-rule-select-node)>.el-tree-node__content>.el-checkbox{display:none}._fd-rule-select .el-tree-node:has(._fd-rule-select-node)>.el-tree-node__content>.el-select-dropdown__item{padding-right:20px}._fd-rule-select-node{display:flex;justify-content:space-between}._fd-rule-select-node>div{color:#61affe}._fd-rule-select-node>span{font-size:12px}._fd-value-input .el-input__validateIcon{display:none}._fd-value-input .el-select,._fd-value-input .el-select__wrapper{height:100%}._fd-warning-pop{max-width:400px}._fd-warning-text{cursor:help;text-decoration:underline;text-decoration-style:dashed}._fd-variable-btn{align-items:center;background:var(--fc-style-bg-color-1);border-radius:5px;color:var(--fc-style-color-1);cursor:pointer;display:flex;font-size:12px;margin-left:6px;padding:2px 6px}._fd-variable-con .el-main{padding:0}._fd-variable-l,._fd-variable-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-variable-r{margin-left:10px}._fd-variable-l .el-header,._fd-variable-r .el-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;height:40px}._fd-variable-r .el-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:13px;margin-left:2px}._fd-variable-r .el-main{padding:10px}._fd-variable-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-bottom:6px;padding:8px 13px;position:relative}._fd-variable-node{align-items:center;color:var(--fc-text-color-1);display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-variable-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:40px;padding:0 20px}._fd-variable-top ._fd-variable-item-label{color:#fca130}._fd-variable-item-label{font-size:13px;margin-right:18px;width:198px}._fd-variable-item .el-input{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-variable-item.active,._fd-variable-item.active ._fd-variable-item-label,._fd-variable-item.active input{color:var(--fc-style-color-1)}._fd-variable-item.active .el-input{--el-input-icon-color:var(--fc-style-color-1)}._fd-variable-item input{text-align:center}._fd-variable-item .el-input .el-input__wrapper{box-shadow:none}._fd-variable-pop.el-popover.el-popper{height:400px;padding:0}._fd-variable-pop-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-variable-pop .el-header{align-items:center;background-color:var(--fc-bg-color-2);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 10px}._fd-variable-pop .el-main{padding:10px}._fd-variable-pop .el-tree-node__content>.el-tree-node__expand-icon{padding:3px}._fd-variable-pop .el-input-group__append{background:var(--fc-style-color-1);color:#fff;cursor:pointer;padding:0;width:60px}._fd-variable-pop .el-input-group__append div{text-align:center;width:100%}._fd-variable-pop-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-pop-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-cdg-input{display:flex;flex-direction:column}._fd-cdg-btns{margin-left:30px;margin-top:10px}._fd-cdg-btns .el-button{color:var(--fc-text-color-2)}._fd-cdg-item{display:flex}._fd-cdg-item .el-select{background-color:var(--fc-bg-color-2)}._fd-cdg-and{display:flex;flex-shrink:0;position:relative;width:100px}._fd-cdg-and>.el-select{left:-5px;margin-top:-16px;position:absolute;top:50%;width:80px;z-index:1}._fd-cdg-and:before{background-color:var(--fc-line-color-2);bottom:1px;content:"";left:30px;margin-bottom:16px;margin-top:14px;position:absolute;top:1px;width:1px}._fd-cdg-options{display:flex;flex-direction:column}._fd-cdg-option{align-items:center;display:flex;position:relative}._fd-cdg-field{width:208px}._fd-cdg-variable{height:32px;width:208px}._fd-cdg-term{width:104px}._fd-cdg-option>._fd-cfg-value{align-items:center;display:flex;width:208px}._fd-cdg-option>.fc-icon{color:var(--fc-text-color-2);cursor:pointer;margin-left:10px}._fd-cdg-option>.fc-icon.disabled{cursor:not-allowed}._fd-cdg-option>._fd-cfg-value>div{width:100%}._fd-cdg-option>.el-input+.el-select,._fd-cdg-option>.el-select+.el-input,._fd-cdg-option>.el-select+.el-select,._fd-cfg-value,._fd-cfg-value .el-checkbox{margin-left:10px}._fd-cdg-option:before{background-color:var(--fc-line-color-2);content:"";height:1px;left:-70px;margin-top:-1px;position:absolute;top:50%;width:105px}._fd-cdg-option.is-group{border:1px dashed #ccd3db;padding:14px}._fd-cdg-option.is-group>.fc-icon{font-size:18px;position:absolute;right:-10px;top:-10px;transform:rotate(45deg);z-index:1}._fd-cdg-option.is-group:before{margin-top:-17px}._fd-cdg-option+._fd-cdg-option{margin-top:16px}._fd-computed,._fd-computed .el-badge{width:100%}._fd-computed .el-button{font-weight:400;width:100%}._fd-comp-con,._fd-comp-condition{height:500px}._fd-comp-condition .el-main{padding:20px 5px}._fd-comp-con .el-tree>.el-tree-node{color:var(--fc-text-color-1);font-size:13px;font-weight:500;margin:1px;padding:14px}._fd-comp-con .el-tree>.el-tree-node+.el-tree-node{border-top:1px solid var(--fc-line-color-3)}._fd-comp-con .el-tree-node{font-weight:400}._fd-comp-con .el-tree-node__content{margin-top:5px}._fd-comp-dialog .el-dialog__body{padding:0 10px}._fd-comp-dialog .el-tabs__header{margin-bottom:0}._fd-comp-con .el-main{padding:0}._fd-comp-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-comp-head{align-items:center;border-bottom:1px solid var(--fc-line-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;font-weight:500;height:38px;padding:5px 15px}._fd-comp-r>.el-main,._fd-comp-script{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-comp-script{width:100%}._fd-comp-r>.el-main{flex-direction:column}._fd-comp-info{background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);height:90px;line-height:20px;margin:10px;padding:15px}._fd-comp-con .CodeMirror{height:100%;width:100%}._fd-comp-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-comp-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-comp-node ._group{color:#61affe;font-weight:700;margin-right:5px}._fd-comp-node ._subform{color:#fca130;font-weight:700;margin-right:5px}._fd-comp-node.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-comp-node.disabled ._fd-comp-id{background-color:#999}._fd-comp-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;font-weight:500;height:20px;line-height:20px;text-align:center;width:20px}._fd-comp-dialog .el-aside{border:1px solid var(--fc-line-color-3);border-right:0;width:300px}._fd-comp-title{color:var(--fc-text-color-1);font-weight:500;margin-bottom:15px;padding-left:5px;position:relative}._fd-comp-title:before{background-color:var(--fc-style-color-1);content:" ";display:inline-block;height:1em;left:-5px;position:absolute;top:3px;width:3px}._fd-comp-script .CodeMirror pre.CodeMirror-line{line-height:26px}._fd-comp-linkage{align-items:center;display:flex;font-size:12px}._fd-comp-linkage>._fd-rule-select{display:inline-block;margin:0 6px;width:120px}._fd-event .el-button{font-weight:400;width:100%}._fd-event .el-badge,._fd-menu{width:100%}._fd-menu{box-sizing:border-box;display:flex;flex-direction:column}._fd-menu-item{border:1px solid transparent;border-bottom:1px dashed var(--fc-line-color-3);padding:0 15px}._fd-menu-item.is-active{border:1px solid var(--fc-style-color-1)}._fd-menu-item.is-active ._fd-event-title i{color:var(--fc-style-color-1)}._fd-event-dialog .el-tabs__header{margin:0}._fd-event-select{align-items:center;display:flex;margin-left:15px;margin-top:15px}._fd-event-select .el-select{width:240px}._fd-event-con .el-main{padding:0}._fd-event-l,._fd-event-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-event-dropdown .el-dropdown-menu{max-height:500px;overflow:auto}._fd-event-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-event-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-event-r{border-left:0}._fd-event-r ._fd-event-head{justify-content:flex-end}._fd-event-l>.el-main,._fd-event-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-event-r>.el-main{flex-direction:column}._fd-event-r>.el-main.is-behavior{flex-direction:unset}._fd-event-item{display:flex;flex-direction:column;font-size:14px;justify-content:center;max-width:250px;overflow:hidden;white-space:pre-wrap}._fd-event-item ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-event-l .el-menu-item.is-active ._fd-event-title i{color:var(--fc-style-color-1)}._fd-event-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-event-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-event-method>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-event-method>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:var(--fc-text-color-1);margin-left:10px}._fd-event-title{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 0;width:100%}._fd-event-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-event-title .el-input{width:200px}._fd-event-title .el-input__wrapper{box-shadow:none}._fd-event-con .CodeMirror{height:100%;width:100%}._fd-event-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-event-behaviors{width:100%}._fd-event-behavior{background:var(--fc-bg-color-3);border-radius:5px;box-sizing:border-box;cursor:pointer;font-size:12px;margin-bottom:12px;padding:12px;width:100%}._fd-event-behavior.is-active{background:var(--fc-style-color-1)}._fd-event-behavior.is-active ._fd-event-behavior-info,._fd-event-behavior.is-active ._fd-event-behavior-label{color:#fff}._fd-event-behavior-label{color:var(--fc-text-color-2);display:flex;justify-content:space-between}._fd-event-behavior-label>div{display:flex}._fd-event-behavior-info{color:var(--fc-text-color-3);margin-left:16px}._fd-event-behavior-list{border-right:1px solid var(--fc-line-color-3);height:100%;padding:15px}._fd-event-behavior-list .el-menu-item,._fd-event-behavior-list .el-sub-menu__title{height:30px}._fd-event-behavior-list .el-menu{border-right:0}._fd-event-behavior-list .el-menu-item.is-active{background:var(--fc-style-color-1);color:#fff}._fd-event-behavior-list .el-menu-item,._fd-event-behavior-list .el-sub-menu__title{border-radius:6px!important;margin-bottom:4px}._fd-event-con ._fd-event-behavior-con{padding:15px}._fd-event-con .form-create .form-create .el-form-item{margin-bottom:18px}._fd-event-con .el-form ._fd-form-item-warning{color:var(--fc-text-color-3);font-size:12px;font-weight:400;line-height:17px;margin-top:6px}._fd-event-behavior-title{color:var(--fc-text-color-1);font-size:13px;font-weight:500;margin-bottom:12px}._fd-event-behavior-title>div{color:var(--fc-text-color-3);font-size:12px;font-weight:400}._fd-config-item{color:var(--fc-text-color-2);display:flex;flex-direction:column;font-size:12px;margin-bottom:10px;width:100%}._fd-ci-head{justify-content:space-between}._fd-ci-head,._fd-ci-label{align-items:center;display:flex}._fd-ci-label{color:var(--fc-text-color-1);font-size:12px}._fd-ci-con{align-items:center;display:flex;justify-content:flex-end;min-width:150px}._fd-ci-label.is-arrow{cursor:pointer}._fd-ci-append{background:var(--fc-bg-color-2);display:flex;flex-direction:column;margin:5px 3px 3px;padding:4px}._fd-ci-label i{font-size:12px;font-weight:600}._fd-ci-label i.down{transform:rotate(-180deg)}._fd-ci-info{font-size:12px;padding-right:5px}._fd-page-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);box-sizing:content-box;cursor:pointer;display:flex;flex-direction:row;font-size:12px;height:30px;justify-content:space-between;margin:0 12px;padding:12px 0}._fd-page-item.active ._fd-page-label{color:var(--fc-style-color-1)}._fd-page-btns{display:flex}._fd-page-label{color:var(--fc-text-color-1);font-weight:600}._fd-page-label .fc-icon{font-size:12px;margin-left:5px}._fd-page-id{align-items:center;color:var(--fc-text-color-3);display:flex;font-weight:400}._fd-page-id .fc-icon{margin-left:5px}._fd-page-id .fc-icon:hover,._fd-page-input .el-button{color:var(--fc-style-color-1)}._fd-page-input .el-button{font-size:12px;font-weight:400;margin-left:12px;margin-top:12px}._fd-page-input .el-button .fc-icon{font-size:12px;margin-left:5px}._fd-page-del{align-items:center;background-color:var(--fc-style-bg-color-3);border-radius:25px;display:flex;height:24px;justify-content:center;margin-left:4px;width:24px}._fd-page-del .fc-icon{color:var(--fc-style-color-3);font-size:14px}._fd-page-copy{align-items:center;background-color:var(--fc-style-bg-color-1);border-radius:25px;display:flex;height:24px;justify-content:center;width:24px}._fd-page-copy .fc-icon{color:var(--fc-style-color-1);font-size:14px}._fc-sublist ._fc-r-title{align-items:center;display:flex;justify-content:space-between}._fc-sublist .fc-icon{cursor:pointer}._fc-sublist ._fd-config-item+._fd-config-item{margin-top:8px}._fc-r-tools-bar{height:30px}._fc-r-tools-close{color:var(--fc-text-color-2);position:absolute;right:5px;transform:rotate(45deg)}._fc-r-tools{border-top:1px solid var(--fc-line-color-3);left:0;padding:0 10px;position:absolute;right:0}._fc-r-tool,._fc-r-tools{align-items:center;display:flex}._fc-r-tool{cursor:pointer;height:28px;justify-content:center;width:28px}._fc-r-tool:hover{color:var(--fc-style-color-1)}._fc-r-tool .fc-icon{font-size:22px}._fc-r-tools-close .fc-icon{font-size:18px}._fd-config-title{align-items:center;display:flex;font-size:14px;margin:26px 0 16px;padding-left:10px;position:relative}._fd-config-title:before{background-color:var(--fc-style-color-1);content:" ";display:block;height:20px;left:0;position:absolute;width:2px}._fd-type-select{cursor:pointer}._fd-type-select.is-disabled{cursor:default}._fd-type-select .fc-icon{font-size:14px}._fd-type-select-pop{max-height:500px;overflow:auto}._fd-type-select-pop .fc-icon{font-size:14px}._fc-field-tree .el-tree-node__content{color:var(--fc-text-color-1);display:flex;flex:1}._fc-field-tree .el-tree-node__content:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fc-field-tree ._fc-field-drag{display:flex;flex:1;flex-direction:column}._fc-field-tree .fc-icon{font-size:18px;margin-right:5px}._fc-field-tree .icon-folder{color:var(--fc-style-color-1)}._fc-field-node-label{align-items:center;display:flex;user-select:none}._fc-l ._fc-form-tree .el-tree-node__content{color:var(--fc-text-color-1);display:flex;flex:1;height:auto;padding:5px 0}._fc-form-tree .el-tree-node__content:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fc-form-tree .fc-icon{color:var(--fc-style-color-1);font-size:18px;margin-right:5px}._fc-form-tree .icon-folder{color:#ffba00}._fc-form-node{display:flex;flex-direction:row;justify-content:space-between;padding-right:12px;width:100%}._fc-form-node-label{align-items:flex-start;display:flex;user-select:none;white-space:normal}._fc-form-node-info{color:var(--fc-text-color-2);font-size:12px}._fd-gec,._fd-gec .el-badge{width:100%}._fd-gec .el-button{font-weight:400;width:100%}._fd-gec-con .el-main{padding:0}._fd-gec-l,._fd-gec-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gec-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gec-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gec-r{border-left:0}._fd-gec-r ._fd-gec-head{justify-content:flex-end}._fd-gec-l>.el-main,._fd-gec-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gec-r>.el-main{flex-direction:column}._fd-gec-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gec-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-gec-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gec-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-gec-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gec-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gec-title .el-input{width:200px}._fd-gec-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gec-title .el-input__wrapper{box-shadow:none}._fd-gec-con .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fd-gec-con .CodeMirror{height:100%;width:100%}._fd-gec-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-struct-editor{flex:1;width:100%}._fd-struct-editor>div{height:100%}._fd-gfc,._fd-gfc .el-badge{width:100%}._fd-gfc .el-button{font-weight:400;width:100%}._fd-gfc-dialog .el-tabs__header{margin-bottom:0}._fd-gfc-dialog .form-create{margin-top:15px}._fd-gfc-dialog ._fc-tabs{display:flex;height:100%}._fd-gfc-dialog ._fc-tabs .el-tabs__content{display:flex;flex:1;overflow:auto}._fd-gfc-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-gfc-con .el-main{padding:0}._fd-gfc-l,._fd-gfc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gfc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gfc-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gfc-r{border-left:0}._fd-gfc-r ._fd-gfc-head{justify-content:flex-end}._fd-gfc-l>.el-main,._fd-gfc-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gfc-r>.el-main{flex-direction:column}._fd-gfc-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gfc-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-gfc-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gfc-method{color:#702c71;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:100%}._fd-gfc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gfc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gfc-title .el-input{width:200px}._fd-gfc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gfc-title .el-input__wrapper{box-shadow:none}._fd-gfc-title .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fd-gfc-con .CodeMirror{height:100%;width:100%}._fd-gfc-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-size-input{align-items:center;display:flex}._fd-size-input .el-input-number--small{width:122px}._fd-size-input .el-button{font-size:12px;margin-left:3px;padding:5px;width:25px}._fd-box-size-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-box-size-input .el-radio-group{width:100%}._fd-box-size-input .el-radio-button__inner{padding:4px;width:100%}._fd-box-size-input .el-radio-button{flex:1}._fd-box-size-input ._fd-size-input .el-input-number--small{width:100%}._fd-color-input{width:150px}._fd-color-input .el-input .el-color-picker{margin:0}._fd-color-input .el-input .el-input-group__append{padding:0;width:24px}._fd-color-input .el-input .el-color-picker__trigger{border-left:0;border-radius:0 3px 3px 0}._fd-border-input{display:flex;height:110px;justify-content:center;width:100%}._fd-border-input ._fd-bi-left{align-items:center;display:flex;flex-direction:column;height:115px;justify-content:center;width:115px}._fd-border-input ._fd-bi-right{display:flex;flex-direction:column;justify-content:space-around;padding:5px;width:140px}._fd-border-input ._fd-bi-right ._fd-color-input{width:140px}._fd-bi-opt{align-items:center;display:flex;height:100%;width:100%}._fd-bi-opt ._line{width:100%}._fd-bi-opt .solid{border:1px solid #000}._fd-bi-opt .dashed{border:1px dashed #000}._fd-bi-opt .dotted{border:1px dotted #000}._fd-bi-opt .double{border:1px double #000}._fd-border-input ._fd-bil-row{display:flex;height:38px;justify-content:center}._fd-border-input ._fd-bil-col{align-items:center;cursor:pointer;display:flex;font-size:16px;height:22px;justify-content:center;margin:8px;width:22px}._fd-border-input ._fd-bil-col.active{color:var(--fc-style-color-1);outline:1px dashed var(--fc-style-color-1)}.line-box{box-sizing:border-box;height:20px;padding:1px;width:150px}.line-box-con{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAD5JREFUOE9jZGBg+M+AChjR+HjlQYqHgQFoXibNS+gBBjKMpDAZHAaQ5GQGBgYUV4+mA7QAgaYokgJ14NMBAK1TIAlUJpxYAAAAAElFTkSuQmCC);height:100%;opacity:.3;width:100%}._fd-radius-input{display:flex;flex-direction:column;width:100%}._fd-radius-con{display:flex;flex-wrap:wrap}._fd-radius-item{box-sizing:border-box;padding:5px 0;width:50%}._fd-radius-item,._fd-radius-item ._fd-radius-icon{align-items:center;display:flex;justify-content:center}._fd-radius-item ._fd-radius-icon{height:24px;width:24px}._fd-radius-item ._fd-size-input .el-input-number--small{width:70px}._fd-font-input{display:flex;justify-content:center;padding:0 5px}._fd-fi-box{overflow:hidden;width:150px}._fd-font-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-font-input .el-form--inline .el-form-item{margin:0;padding:0}._fd-font-input ._fd-size-input .el-input-number--small{width:100%}._fd-display-input{display:flex;flex-direction:column}._fd-display-input .el-radio-button__inner{padding:4px;width:100%}._fd-display-input .el-radio-button{flex:1}._fd-display-input .is-active i{color:#fff}._fd-display-input .el-radio-button__inner{color:var(--fc-text-color-1)}._fd-display-con{display:flex;flex-wrap:wrap}._fd-display-con.rotate-flag .rotate{display:inline-block;transform:rotate(-90deg)}._fd-display-con.column .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.row-reverse .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column-reverse .icon-justify-flexstart:before,._fd-display-con.row-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.column-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(180deg)}._fd-display-raw{display:flex;flex-direction:column;margin-bottom:5px;width:100%}._fd-shadow-content{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding:0 5px}._fd-sc-form .fc-icon{font-size:12px}._fd-shadow-content .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-shadow-content .el-form-item{display:grid!important;margin:0!important}._fd-shadow-content .el-input__wrapper{flex:1}._fd-shadow-content ._fd-sc-box{border:1px solid #ccc;border-radius:5px;cursor:pointer;height:250px;overflow:hidden;position:relative;width:250px}._fd-shadow-content ._fd-sc-box .spot{border-radius:100%;height:0;position:absolute;width:0}._fd-shadow-content ._fd-sc-box .spot-id{background:#1989fa;border-radius:100%;height:10px;left:-5px;position:absolute;top:-5px;width:10px;z-index:1}._fd-shadow-content ._fd-sc-box.down .spot-id{box-shadow:1px 1px 10px 2px #1989fa}._fd-shadow-content ._fd-sc-box .center-spot{background:#1989fa;border-radius:100%;height:0;left:125px;position:absolute;top:125px;width:0}._fd-shadow-content ._fd-sc-box .x-hr{background:#ccc;height:1px;position:absolute;top:125px;width:100%}._fd-shadow-content ._fd-sc-box .y-hr{background:#ccc;height:100%;left:125px;position:absolute;width:1px}._fd-shadow-content .el-select__placeholder{text-align:center}._fd-shadow-content .el-input-group__append{padding:0;width:55px}._fd-shadow-content ._fd-color-input,._fd-shadow-content .el-input{width:100%}._fd-shadow-content ._fd-sc-right{margin-top:10px}._fd-shadow-content ._fd-sc-radio{width:100%}._fd-shadow-content ._fd-sc-radio .el-radio-button{display:flex;flex:1}._fd-shadow-content ._fd-sc-radio .el-radio-button__inner{width:100%}._fd-shadow-input ._fd-ci-con{width:150px}._fd-shadow-input :focus-visible{outline:0 none}._fd-si-input .el-input-group__append{display:inline-flex;padding:0;width:24px}._fd-si-input .el-input__wrapper{flex:1}._fd-shadow-input ._fd-ci-con .fc-icon{cursor:pointer}._td-table-opt{width:100%}._td-table-opt .icon-delete{cursor:pointer}._td-table-opt .el-table{z-index:1}._td-table-opt-handle{align-items:center;display:flex;justify-content:space-between;padding-right:5px}._fd-box-space-input{color:#000}._fd-box-space-input ._margin,._fd-box-space-input ._padding{background-color:#f2cea5;box-sizing:border-box;height:180px;padding:40px 55px;position:relative;width:100%}._fd-box-space-input ._margin,html.dark ._fd-box-space-input ._padding{background-color:#a9855c}._fd-box-space-input ._margin{background-color:#c6cf92;height:100px;width:100%}._fd-box-space-input ._fd-input{background-color:unset;border:0;display:inline-block;font-size:12px;height:20px;margin:0;max-width:40px;outline:0 none;padding:0;text-align:center;text-decoration:underline;width:30%}._fd-box-space-input ._fd-input:focus,._fd-box-space-input ._fd-input:hover{background-color:var(--fc-bg-color-3);color:var(--fc-text-color-1);opacity:.9}._fd-box-space-input ._fd-left,._fd-box-space-input ._fd-right{left:7px;margin-top:-10px;position:absolute;top:50%}._fd-box-space-input ._fd-bottom,._fd-box-space-input ._fd-top{left:50%;margin-left:-20px;position:absolute;top:5px}._fd-box-space-input ._fd-bottom{bottom:15px;top:unset}._fd-box-space-input ._fd-right{left:unset;right:2px}._fd-box-space-input ._box{align-items:center;background-color:#94b5c0;display:flex;height:100%;justify-content:center;width:100%}._fd-box-space-input ._margin-title,._fd-box-space-input ._padding-title{left:4px;position:absolute;top:2px}._fd-box-space-input ._fd-help{align-items:center;color:var(--fc-text-color-3);display:flex;position:absolute;right:5px;top:5px}._fd-box-space-input ._padding .fc-icon{color:var(--fc-text-color-1);cursor:pointer;font-size:12px}._fd-box-space-input ._padding .fc-icon+.fc-icon{margin-left:2px}._fd-box-space-input .fc-icon.active{color:var(--fc-style-color-1)}._fd-box-space-input ._fd-x{margin:0 5px}._fd-style-config{display:flex;flex-direction:column;width:100%}._fd-opacity-input ._fd-ci-con{align-items:center;display:flex;justify-content:space-between;width:150px}._fd-opacity-input ._fd-ci-con>span{width:32px}._fd-opacity-input .el-slider{flex:1;margin-right:15px}._fd-style-editor{flex:1;width:100%}._fd-style-editor .CodeMirror,._fd-style-editor>div{height:100%}._fd-gcc,._fd-gcc .el-badge{width:100%}._fd-gcc .el-button{font-weight:400;width:100%}._fd-gcc-con .el-main{padding:0}._fd-gcc-l,._fd-gcc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gcc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gcc-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gcc-r{border-left:0}._fd-gcc-r ._fd-gcc-head{justify-content:flex-end}._fd-gcc-l>.el-main,._fd-gcc-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gcc-r>.el-main{flex-direction:column;padding:20px}._fd-gcc-r>.el-main._fd-gcc-style{padding:0}._fd-gcc-r .el-form-item{margin-bottom:10px!important}._fd-gcc-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gcc-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-style-color-1)}._fd-gcc-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gcc-default.is-active ._fd-label{color:var(--fc-style-color-1);margin-top:0}._fd-gcc-method{color:#923b76;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:175px}._fd-gcc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-gcc-method span+._fd-label{margin-top:4px}._fd-gcc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gcc-title .el-input{width:160px}._fd-gcc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gcc-title .el-input__wrapper{box-shadow:none}._fd-gcc-con .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fd-gvc,._fd-gvc .el-badge{width:100%}._fd-gvc .el-button{font-weight:400;width:100%}._fd-gvc-con .el-main{padding:0}._fd-gvc-l,._fd-gvc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gvc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gvc-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gvc-r{border-left:0}._fd-gvc-r ._fd-gvc-head{justify-content:flex-end}._fd-gvc-l>.el-main,._fd-gvc-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gvc-r>.el-main{flex-direction:column;padding:0}._fd-gvc-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gvc-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-gvc-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gvc-method{color:#923b76;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:175px}._fd-gvc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gvc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gvc-title .el-input{width:160px}._fd-gvc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gvc-title .el-input__wrapper{box-shadow:none}._fd-gvc-con .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fc-json-preview{color:var(--fc-text-color-1);display:flex;width:100%}._fc-json-preview .CodeMirror{font-size:12px;height:100%}._fd-struct,._fd-struct .el-badge{width:100%}._fd-struct .el-button{font-weight:400;width:100%}._fd-struct-dialog .CodeMirror{height:500px}._fd-struct-dialog .el-dialog__body{padding:0}._fd-props-input{flex:1;text-align:right}._fd-props-input .fc-icon{cursor:pointer}._fd-lc-body,._fd-lc-header{padding:0 12px}._fd-lc-body{overflow:auto}._fd-lc-header{display:flex;justify-content:flex-end;margin-bottom:12px}._fd-language-config .el-table__cell{height:34px}._fd-lc-handle{align-items:center;cursor:pointer;display:flex;justify-content:space-between}._fd-slots-config .el-input{margin-left:5px;min-width:170px;width:170px}._fd-slots-config .el-select{width:60px}._fd-slots-config .el-select input,._fd-slots-config .fc-icon{cursor:pointer}._fd-slots-config .el-input-group__append{padding:0 5px}._fd-slots-icons{grid-gap:10px;display:grid;grid-template-columns:repeat(13,1fr);width:100%}._fd-slots-icon{color:var(--fc-text-color-1);cursor:pointer;text-align:center}._fd-slots-config-pop{max-height:320px;overflow:auto}._fd-quick-layout-content{grid-column-gap:10px;display:grid;grid-template-columns:repeat(4,1fr);width:100%}._fd-quick-layout-content>div{cursor:pointer;display:flex;flex-direction:column;font-size:12px;text-align:center}._fd-quick-layout-content>div:hover{color:var(--fc-style-color-1)}._fd-quick-layout-content i{font-size:24px}._fd-print .el-button{font-weight:400;width:100%}._fd-print-con .el-main{padding:0}._fd-print-l,._fd-print-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-print-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-print-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-print-r{border-left:0}._fd-print-r ._fd-print-head{justify-content:flex-end}._fd-print-l>.el-main,._fd-print-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:column;min-width:0;padding:10px;width:100%}._fd-print-l .el-form .el-radio-button__inner,._fd-print-l .el-form .el-radio-group{width:100%}._fd-print-l .el-form .el-radio-button{flex:1}._fd-print-r>.el-main{flex-direction:column;padding:20px;position:relative}._fd-print-form{box-sizing:border-box;padding:2px}._fd-print-form .el-input__wrapper,._fd-print-form .el-select__wrapper,._fd-print-form .el-textarea__inner{border:1px solid var(--el-input-border-color,var(--el-border-color));box-shadow:none!important}._fd-print-form .el-select__placeholder{position:unset!important;top:unset!important;transform:unset!important}._fd-print-form .is-disabled .el-input__wrapper{background-color:unset!important}._fd-print-form .is-disabled .el-input__inner{color:unset!important}._fd-print-form-word .el-input__wrapper,._fd-print-form-word .el-select__wrapper,._fd-print-form-word .el-textarea__inner{border:none!important;border-color:inherit!important;border-radius:0!important}._fd-print-form-word .el-input-number__decrease,._fd-print-form-word .el-input-number__increase{display:none!important}._fd-print-form-word ._fc-read-view{border-bottom:1px solid var(--el-input-border-color,var(--el-border-color))!important;border-color:inherit!important;display:block;height:1.5em;line-height:1.5em;padding:0 4px;width:100%}._fd-print-page-line{border-bottom:1px dashed var(--fc-line-color-3);box-sizing:border-box;color:var(--fc-text-color-3);font-size:12px;height:1px;left:0;line-height:2em;padding-left:4px;position:absolute;right:0;z-index:1}._fd-ai-chat{box-sizing:border-box;display:flex;flex-direction:column;font-size:12px;height:100%;padding:12px}._fd-ai-chat-header{border:1px solid var(--fc-line-color-3);border-radius:6px}._fd-ai-chat-prompt{display:flex;justify-content:space-between;padding:8px 12px 10px}._fd-ai-chat-prompt .fc-icon{font-size:12px;margin-right:2px}._fd-ai-chat-refresh{color:var(--fc-style-color-1);cursor:pointer}._fd-ai-chat-question{align-items:center;background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);cursor:pointer;display:flex;justify-content:space-between;margin:0 12px 12px;padding:7px 10px}._fd-ai-chat-question+._fd-ai-chat-question{margin-top:6px}._fd-ai-chat-question .fc-icon{margin-left:12px}._fd-ai-chat-question .icon-down:before{display:inline-block;transform:rotate(-90deg)}._fd-ai-chat-history{display:flex;flex:1;flex-direction:column;margin-top:12px;overflow:auto}._fd-ai-chat-history-chat{align-items:flex-end;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-chat>div{background:var(--fc-style-bg-color-1);border-radius:6px 0 6px 6px;color:var(--fc-style-color-1);max-width:70%;padding:10px;white-space:pre-wrap}._fd-ai-chat-history-status{align-items:flex-start;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-status>div{background:var(--fc-bg-color-2);border-radius:0 6px 6px;color:var(--fc-text-color-2);max-width:70%;overflow:hidden;padding:10px;position:relative}._fd-ai-chat-history-status>div>div{align-items:center;display:flex;position:relative;z-index:1}._fd-ai-chat-history-status.loading>div:after{animation:b 3s linear infinite;background:linear-gradient(0deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%);bottom:-2px;content:"";filter:blur(5px);left:-2px;padding:1px;position:absolute;right:-2px;top:-2px}._fd-ai-chat-history-status.loading>div{border-radius:0 6px 6px;padding:1px}._fd-ai-chat-history-status.loading>div>div{background-color:var(--fc-bg-color-1);border-radius:0 6px 6px;padding:7px 10px}._fd-ai-chat-history-status.success>div{background:var(--fc-style-bg-color-2);color:var(--fc-style-color-2)}._fd-ai-chat-history-status .fc-icon{background:var(--fc-style-color-2);border-radius:15px;color:#fff;font-size:14px;height:15px;margin-right:5px;text-align:center;width:15px}._fd-ai-chat-history-status.fail>div{background:var(--fc-style-bg-color-3);color:var(--fc-style-color-3)}._fd-ai-chat-history-status.fail .fc-icon{background:var(--fc-style-color-3)}._fd-ai-chat-input{border-radius:6px;margin-top:12px;position:relative;width:100%}._fd-ai-chat-clear{margin-bottom:6px;text-align:right}._fd-ai-chat-clear .el-button{margin-right:2px;padding:0}._fd-ai-chat-clear .fc-icon{font-size:13px}._fd-ai-chat-input .el-textarea{box-sizing:border-box;height:120px;padding:1px;position:relative}._fd-ai-chat-input .el-textarea:before{background:linear-gradient(135deg,var(--fc-style-color-1),var(--fc-style-color-4));border-radius:6px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}._fd-ai-chat-input .el-textarea__inner{background:var(--fc-bg-color-1);border-radius:6px;box-shadow:none;height:100%;resize:none}._fd-ai-chat-input>.fc-icon{align-items:center;background:var(--fc-style-color-1);border-radius:15px;bottom:12px;color:#fff;cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;position:absolute;right:12px;text-align:center;width:20px}._fd-ai-chat-input .icon-suspend{background:linear-gradient(90deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%)}._fd-ai-chat-input .disabled{background:var(--fc-text-color-3)}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.m-title{align-items:center;color:#1f2329;flex-direction:row;font-weight:500;height:28px;justify-content:space-between;padding-top:8px;width:100%}.m-title,.tree-row-item{display:flex;font-size:12px;font-style:normal;line-height:20px}.tree-row-item{font-weight:400;overflow-x:hidden;padding-right:11px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}._fd-drag-tool{word-wrap:break-word;box-sizing:border-box;display:block;min-height:20px;min-width:0;outline:1px dashed var(--fc-tool-border-color);overflow:hidden;padding:2px;position:relative;word-break:break-all;z-index:0}._fd-drag-tool ._fd-drag-tool{margin:2px;max-height:calc(100% - 7px);max-width:calc(100% - 4px)}._fd-drag-tool.is-inline{display:inline-block}._fd-drag-tool.is-inside{height:inherit;width:inherit}._fd-drag-tool:hover{outline-color:var(--fc-style-color-1);outline-style:solid;z-index:1}._fd-drag-tool:has(._fd-drag-tool:hover){outline-style:dashed}._fd-drag-tool:not(.active):hover>div>._fd-drag-btn{display:flex!important;opacity:.7}._fd-drag-tool:has(._fd-drag-tool:not(.active):hover,._fd-drag-tool.active:hover)>div>._fd-drag-btn{display:none!important}._fd-drag-tool:has(._fd-drag-tool){padding:2px}._fd-drag-tool+._fd-drag-tool{margin-top:5px}._fd-drag-tool.active{min-height:36px;min-width:80px;outline:2px solid var(--fc-style-color-1)!important;z-index:2}._fd-drag-tool.active>div>._fd-drag-btn{display:flex}._fd-drag-tool._fd-drop-hover ._fd-drag-box{padding-bottom:15px!important;padding-top:15px!important}._fd-drag-tool._fd-drop-hover:hover{outline:1px dashed var(--fc-tool-border-color)}._fd-drag-tool ._fd-drag-btn{display:none}._fd-drag-r{padding:0 2px 2px 0;right:0;top:calc(100% - 20px)}._fd-drag-l,._fd-drag-r{position:absolute;z-index:4}._fd-drag-l{left:0;top:0}._fd-drag-btn{align-items:center;background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;width:18px}._fd-drag-btn .el-dropdown{color:#fff}._fd-drag-btn+._fd-drag-btn{margin-left:2px}._fd-drag-danger{background-color:var(--fc-style-color-3)}._fd-drag-btn i{font-size:14px}._fd-drag-hidden,._fd-drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:3}._fd-drag-hidden{align-items:center;background:rgba(51,51,51,.7);color:#fff;display:flex;font-size:14px;justify-content:center}._fd-drag-tool.active ._fd-drag-hidden,._fd-drag-tool:has(._fd-drag-tool.active) ._fd-drag-hidden,._fd-drag-tool:hover ._fd-drag-hidden{display:none}._fd-drag-hidden .fc-icon{margin-right:5px}._fd-html-editor{width:100%}._fd-html-editor>.el-button{font-weight:400;width:100%}._fd-html-editor-con .CodeMirror{height:450px}._fd-html-editor-con .CodeMirror-line{font-size:13px!important;line-height:16px!important}._fd-html-editor-con .CodeMirror-lint-tooltip{z-index:1!important}._fd-html-editor-con .el-dialog__body{padding:0 20px}._fd-field-input{position:relative;width:100%}._fd-field-input>.fc-icon{color:#a8abb2;cursor:pointer;height:24px;position:absolute;right:28px;text-align:center;top:1px;width:24px;z-index:1}._fd-field-input .el-input-group__append{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-field-popper .el-tree-node__content{color:#333;padding:2px 0}._fd-field-popper .el-select-dropdown__list>.el-select-dropdown__item{border-bottom:1px solid var(--fc-line-color-3);box-sizing:border-box;height:26px;padding-left:15px}._fd-list-input{width:100%}._fd-list-input .el-input-group__append{padding:0 10px}._fd-list-input .fc-icon{cursor:pointer}._fd-fetch-config,._fd-fetch-config .el-badge{width:100%}._fd-fetch-config .el-button{font-weight:400;width:100%}._fd-fetch-dialog .el-tabs__header{margin-bottom:0}._fd-fetch-dialog .form-create{margin-top:15px}._fd-fetch-dialog ._fc-tabs{display:flex}._fd-fetch-dialog ._fc-tabs .el-tabs__content{display:flex;flex:1;overflow:auto}._fd-fetch-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-fetch-con .el-main{padding:0}._fd-fetch-con .CodeMirror{height:100%;width:100%}._fd-fetch-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-table-column-config,._fd-table-column-config .el-badge{width:100%}._fd-table-column-config .el-button{font-weight:400;width:100%}._fd-tcc-dialog .flex{display:flex;width:100%}._fd-tcc-dialog .el-dialog__body{height:500px;overflow:auto}._fd-tcc-dialog ._fd-fn{height:100%}._fd-tcc-table .fc-icon{cursor:pointer}._fd-tcc-table .fc-icon+.fc-icon{margin-left:4px}._fd-tcc-table .cell{align-items:center;display:flex;flex-direction:row}._fd-tcc-table .el-table__indent{padding-left:8px!important}.TableColumnConfigTree .el-tree-node__content{height:35px}._fd-table-button-config,._fd-table-button-config .el-badge{width:100%}._fd-table-button-config .el-button{font-weight:400;width:100%}._fd-tcb-dialog .el-dialog__body{height:500px;overflow:auto}._fd-tcb-btn{cursor:pointer;display:flex}._fc-data-table{width:100%}._fc-data-table .el-table{--el-table-header-bg-color:#e8eefc}._fc-data-table .el-pagination{display:flex;margin-top:10px}._fc-data-table .el-pagination.left{justify-content:flex-start}._fc-data-table .el-pagination.center{justify-content:center}._fc-data-table .el-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .el-image{height:60px;max-width:150px}._fd-fn-list,._fd-fn-list .el-badge{width:100%}._fd-fn-list .el-button{font-weight:400;width:100%}._fd-fn-list-con .el-main{padding:0}._fd-fn-list-l,._fd-fn-list-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-fn-list-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-fn-list-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-fn-list-r{border-left:0}._fd-fn-list-r ._fd-fn-list-head{justify-content:flex-end}._fd-fn-list-l>.el-main,._fd-fn-list-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-fn-list-r>.el-main{flex-direction:column}._fd-fn-list-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-fn-list-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-fn-list-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-fn-list-method{display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;line-height:1em;overflow:hidden;padding:10px 20px 10px 0;position:relative;white-space:pre-wrap;width:100%}._fd-fn-list-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-fn-list-method ._fd-dot{background:#00c050;border-radius:15px;display:block;height:6px;margin-top:-3px;position:absolute;right:16px;top:50%;width:6px}._fd-fn-list-method-info>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-fn-list-method-info>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:var(--fc-text-color-1);margin-left:10px}._fd-fn-list-con .CodeMirror{height:100%;width:100%}._fd-fn-list-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-fn-input,._fd-fn-input .el-badge{width:100%}._fd-fn-input .el-button{font-weight:400;width:100%}._fd-fn-input-dialog .CodeMirror-lint-tooltip{z-index:1!important}._fd-fn-input-dialog .el-dialog__body{height:500px;padding:0}._fd-gfs{align-items:center;display:flex;width:100%}._fd-gfs .el-select{width:190px}._fd-gfs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gfs-handle .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-gfs-handle .icon-refresh.disabled{color:#a9abb2;cursor:not-allowed}._fd-gfs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-gcs{align-items:center;display:flex;width:100%}._fd-gcs .el-select{width:190px}._fd-gcs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gcs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-fetch-table{width:100%}._fd-fetch-table .el-button>span{font-size:12px;font-weight:400}._fd-fetch-table-con{border:1px solid var(--fc-line-color-3);border-bottom:0;display:flex;flex:1;flex-direction:column;height:100%}._fd-fetch-table-con .el-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;height:30px;padding-left:12px}._fd-fetch-table-row{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:34px;padding:0 10px 4px}._fd-fetch-table-row>.fc-icon{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;margin-left:12px;margin-top:4px;width:24px}._fd-fetch-table-row .el-input{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-fetch-table-key{margin-right:15px;width:calc(40% - 20px)}._fd-table-view{overflow:auto}._fd-table-view-cell{background:var(--fc-bg-color-1);border:1px inset rgba(0,0,0,.1);height:100%;min-height:50px}._fd-table-view-cell>._fd-drag-tool{border:0;height:100%;margin:0;max-height:100%;max-width:100%;min-width:unset;width:100%}._fd-table-view-btn{flex-direction:column;padding:0}._fd-table-view-btn .fc-icon{color:#fff;font-size:16px;width:18px}._fd-table-view-icon{color:#fff;display:flex;height:100%;justify-content:center;margin-top:1px;width:100%}._fd-table-view>table{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fd-table-view tr{min-height:50px}._fd-table-view td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-height:50px;min-width:80px;overflow-wrap:break-word;padding:0;position:relative;white-space:nowrap}._fd-tableCell-drag{height:100%}._fd-table-view.is-mini td{min-height:12px;padding:0}._fd-table-view.is-mini .el-form-item{margin:0;padding:0}._fc-table{overflow:auto}._fc-table>table{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table.is-mini td{min-height:12px;padding:0}._fc-table.is-mini .el-form-item{margin:0;padding:0}._fd-value{color:var(--fc-text-color-3);white-space:nowrap}._fd-json-container{--fc-json-mask:" ";display:flex;flex:1;flex-direction:column;flex-wrap:wrap;justify-content:center;min-height:20px;position:relative}._fd-json-container ._fd-dialog,._fd-json-container ._fd-drawer,._fd-json-container ._fd-popup{display:none}._fc-line-form{align-items:flex-start;display:flex;flex-flow:wrap;width:100%}.form-create-m ._fc-line-form{display:flex;flex-wrap:wrap}.form-create ._fc-line-form ._fc-line-form,.form-create ._fc-line-form ._fd-drag-item,.form-create ._fc-line-form ._fd-drag-tool,.form-create ._fc-line-form .el-col-24{display:inline-flex;flex:initial;flex:unset!important;flex-wrap:wrap;max-width:100%;width:auto!important}._fc-m-con .form-create ._fc-line-form>.el-col-24{width:100%!important}._fc-line-form .el-form-item{display:inline-flex;vertical-align:middle}._fc-line-form .el-select,._fc-line-form .el-slider{width:220px}._fd-language-list{max-height:320px;overflow:auto;padding-top:70px}._fd-language-input .el-input-group__append{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-language-input.is-variable input{color:var(--fc-style-color-1)}._fd-language-header,._fd-language-item{border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 12px}._fd-language-header{background-color:var(--fc-bg-color-1);color:var(--fc-text-color-1);flex-direction:column;font-weight:500;left:0;overflow:auto;padding-top:10px;position:absolute;right:0;top:0}._fd-language-item>div,._fd-language-name>div{flex:1;font-size:12px;min-width:70px;padding:5px}._fd-language-title{margin:6px 0}._fd-language-title .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:14px}._fd-language-name{display:flex}._fd-language-name>div{color:var(--fc-text-color-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fd-language-item{cursor:pointer}._fd-language-item:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-language-popover{padding:0!important}._fd-validate{display:flex;flex-direction:column;width:100%}._fd-validate-btn{font-weight:400;width:100%}._fd-validate-pop .el-dropdown-menu__item{width:248px}._fd-validate-item{border-bottom:1px dashed var(--fc-line-color-3);margin-bottom:10px}._fd-validate-item .el-col-12:first-child{padding-right:5px}._fd-validate-item .el-col-12+.el-col-12{padding-left:5px}._fd-validate-item .el-input-number{width:100%}._fd-validate-title{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px}._fd-validate-title>div{align-items:center;display:flex}._fd-validate-title>div>span{background:var(--fc-bg-color-3);border-radius:15px;font-size:12px;height:16px;line-height:16px;margin-right:5px;text-align:center;width:16px}._fd-validate-title i{cursor:pointer}._fd-validate-title i:hover{color:var(--fc-style-color-3)}._fd-validate .append-msg{cursor:pointer}._fd-validate .el-input-group__append{padding:0 10px}._fd-required{align-items:center;display:flex;width:100%}._fd-required .el-input{margin-left:15px}._fd-required .el-switch{height:28px}._fd-tree-opt ._fd-tree-opt-btn{background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:19px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}._fd-tree-opt-node{align-items:center;display:flex}._fd-tree-opt-first{margin-right:5px;width:60px}._fd-tree-opt-last{width:165px}._fd-tree-opt-last._label{width:175px}._fd-tree-opt-last._label .el-input-group__append{width:65px}._fd-tree-opt ._fd-tree-opt-danger{background-color:var(--fc-style-color-3);border-radius:0 2px 2px 0}._fd-tree-opt .el-tree-node__content{height:28px;margin-bottom:3px}._fd-tree-opt .el-input__inner{border-right:0}._fd-tree-opt .el-input-group__append{background:var(--fc-bg-color-1);padding-left:1px;padding-right:2px;width:90px}._fc-step-form{width:100%}._fc-step-form>.el-steps{margin-bottom:20px}._fc-step-form .el-step .el-step__head{line-height:1.4}._fd-step-form{width:100%}._fd-step-form .el-step{cursor:pointer}._fd-step-form>.el-steps{margin-bottom:20px}._fd-step-form .el-step .el-step__head{line-height:1.4}._fd-table-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);width:100%}._fc-child-empty,._fd-table-form{min-height:130px}._fd-tf-wrap{display:flex;overflow:auto}._fd-tf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px;overflow:auto}._fd-ntable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-ntable-sub .el-form-item__label,._fd-ntable-sub .van-field__label{display:none}._fd-ntable-form ._fc-child-empty{min-height:130px}._fd-ntf-wrap{display:flex;overflow:auto}._fd-ntf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-ntable-sub ._title{background-color:var(--fc-bg-color-3);border-radius:8px 8px 0 0;color:#65676b;display:inline-block;font-size:12px;height:20px;line-height:1em;margin-left:2px;padding:6px 8px 0;text-align:center}._fd-ntable-sub>._fd-drag-tool{margin-top:0}._fc-nested-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-nested-table-form .form-create .el-form-item{margin-bottom:1px}._fc-nested-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-nested-table-form .el-form-item__label,._fc-nested-table-form .van-field__label{display:none!important}._fc-nested-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-ntf-table ._fc-ntf-head-idx,._fc-ntf-table ._fc-ntf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-ntf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-ntf-sub-idx{width:30px}._fc-ntf-btn,._fc-ntf-edit{min-width:70px;text-align:center;width:70px}._fc-ntf-btn .fc-icon{cursor:pointer}._fc-nested-table-form._fc-disabled ._fc-ntf-btn .fc-icon,._fc-nested-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-ntf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-ntf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-ntf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-ntf-table tr{min-height:50px}._fc-ntf-table ._fc-read-view{text-align:center;width:100%}._fc-ntf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-ntf-table td+td{border-left:1px solid #ebeef5}._fc-ntf-table .el-cascader,._fc-ntf-table .el-date-editor,._fc-ntf-table .el-input-number,._fc-ntf-table .el-select,._fc-ntf-table .el-slider{width:100%}._fc-nested-table-form ._fc-ntf-sub{background-color:#fafafa}._fc-ntf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-ntf-sub ._fc-tf-table{border:0}._fc-ntf-idx+._fc-ntf-idx,._fc-ntf-sub-idx+._fc-ntf-head-idx{border-left:0}._fc-ntf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fd-itable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-itable-form ._fc-child-empty{min-height:130px}._fd-itf-wrap{display:flex;overflow:auto}._fd-itf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .el-form-item{margin-bottom:1px}._fc-infinite-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-infinite-table-form .el-form-item__label,._fc-infinite-table-form .van-field__label{display:none!important}._fc-infinite-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-itf-table ._fc-itf-head-idx,._fc-itf-table ._fc-itf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-itf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-itf-sub-idx{width:30px}._fc-itf-btn,._fc-itf-edit{min-width:70px;text-align:center;width:70px}._fc-itf-btn .fc-icon{cursor:pointer}._fc-infinite-table-form._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-itf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-itf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-itf-table ._fc-itf-table>thead{display:none}._fc-itf-table ._fc-itf-table{border-right:0}._fc-itf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-itf-table tr{min-height:50px}._fc-itf-table ._fc-read-view{text-align:center;width:100%}._fc-itf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-itf-table td+td{border-left:1px solid #ebeef5}._fc-itf-table .el-cascader,._fc-itf-table .el-date-editor,._fc-itf-table .el-input-number,._fc-itf-table .el-select,._fc-itf-table .el-slider{width:100%}._fc-infinite-table-form ._fc-itf-sub{padding:5px 0 5px 10px}._fc-itf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-itf-sub ._fc-tf-table{border:0}._fc-itf-idx+._fc-itf-idx,._fc-itf-sub-idx+._fc-itf-head-idx{border-left:0}._fc-itf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-table-form .form-create td .el-form-item{margin-bottom:1px}._fc-table-form .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .el-cascader,._fc-tf-table .el-date-editor,._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2{color:var(--fc-text-color-2);overflow:auto;width:100%}._fc-table-form-v2 .is-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2 .form-create td .el-form-item{margin-bottom:1px}._fc-table-form-v2 .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form-v2 .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-table-form-v2 .el-form-item__label{display:none!important}._fc-tf-pro-handle{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:12px}._fc-table-form-v2 .el-cascader,._fc-table-form-v2 .el-date-editor,._fc-table-form-v2 .el-input-number,._fc-table-form-v2 .el-select,._fc-table-form-v2 .el-slider{width:100%}._fd-tf-col ._fd-tf-con .el-form-item{margin-bottom:1px!important}._fd-tf-col{display:flex;flex-direction:column;flex-shrink:0;flex-wrap:wrap;width:180px}._fd-tf-con .el-form-item__label,._fd-tf-con .van-field__label{display:none!important}._fd-tf-con{display:flex;flex:1;width:100%}._fd-tf-con .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fd-tf-title{align-items:center;border-bottom:1px solid #ebeef5;display:flex;height:40px;margin-bottom:0;padding-left:5px}._fd-tf-required{color:#f56c6c;margin-right:4px}._fd-tf-con ._fc-l-item{display:flex;flex-shrink:0;margin-top:4px;width:100%}._fd-tf-con ._fc-l-item>*{display:none!important}._fd-tf-con .el-cascader,._fd-tf-con .el-date-editor,._fd-tf-con .el-input-number,._fd-tf-con .el-select,._fd-tf-con .el-slider{width:100%}._fd-tf-col:has(._fd-tf-col){width:auto!important}._fd-tf-con>._fd-tableFormColumn2-drag:has(._fd-tf-col){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important}._fd-tf-con>._fd-tableFormColumn2-drag:has(._fd-tf-col)>._fd-drag-item{flex:unset}._fd-step-form-item>._fd-drag-tool{min-height:200px}._fd-dialog.el-dialog{margin:10px;width:calc(100% - 20px)}._fd-dialog .el-dialog__headerbtn{align-items:center;color:var(--el-color-info);display:flex;justify-content:center}._fd-dialog .el-dialog__headerbtn:hover .fc-icon{color:var(--el-color-primary)}._fd-dialog .el-dialog__body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-dialog-height) - 125px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fc-dialog .el-dialog__headerbtn{align-items:center;color:var(--el-color-info);display:flex;justify-content:center}._fc-dialog .el-dialog__headerbtn:hover .fc-icon{color:var(--el-color-primary)}._fd-drawer.el-drawer{box-shadow:unset;width:100%}._fd-drawer .el-drawer__header{border-bottom:1px solid var(--fc-line-color-3);color:#333;font-size:15px;font-weight:600;margin-bottom:0;padding:14px 24px 14px 20px}._fd-drawer .el-drawer__body{padding:12px}._fd-drawer .el-drawer__close-btn{color:#909399;font-size:14px}._fd-drawer .el-drawer__footer{box-shadow:0 -2px 4px #0000000d;padding:10px 0;text-align:center}._fd-drawer .el-drawer__body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-drawer-height) - 105px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fc-drawer .el-drawer__header{border-bottom:1px solid var(--fc-line-color-3);color:#333;font-size:15px;font-weight:600;margin-bottom:0;padding:14px 24px 14px 20px}._fc-drawer .el-drawer__body{padding:10px 24px 50px}._fc-drawer .el-drawer__close-btn{color:#909399;font-size:14px}._fc-drawer .el-drawer__footer{background:var(--fc-bg-color-1);bottom:0;box-shadow:0 -2px 4px #0000000d;left:0;padding:10px 0;position:absolute;right:0;text-align:center;width:100%;z-index:1}._fc-cell{display:inline-block}._fc-cell .el-cascader,._fc-cell .el-date-editor,._fc-cell .el-input-number,._fc-cell .el-select,._fc-cell .el-slider{width:100%}._fd-cell{display:inline-block}._fd-cell.is-new{width:100%!important}._fd-cell>div{box-sizing:border-box}._fd-cell>div>._fd-drag-tool.is-inline,._fd-cell>div>._fd-drag-tool>._fd-drag-box{align-content:var(--fc-cell-alignContent)!important;align-items:var(--fc-cell-alignItems)!important;display:var(--fc-cell-display)!important;flex-direction:var(--fc-cell-flexDirection)!important;flex-wrap:var(--fc-cell-flexWrap)!important;justify-content:var(--fc-cell-justifyContent)!important}._fd-cell>div>._fd-drag-item:has(>._fd-drag-tool>.el-col-24,>.el-col-24),._fd-cell>div>._fd-drag-tool>._fd-drag-box>._fd-drag-item:has(>._fd-drag-tool>.el-col-24,>.el-col-24){flex:none}._fd-cell .el-cascader,._fd-cell .el-date-editor,._fd-cell .el-input-number,._fd-cell .el-select,._fd-cell .el-slider,._fd-row{width:100%}._fd-hide-config{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex}._fd-hide-config .fc-icon{margin-right:3px}._fd-hide-config.active{color:var(--fc-style-color-1)}._fd-hide-config.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-span-input{width:100%}._fd-span-input .el-radio-button__inner{line-height:16px;padding:4px;width:100%}._fd-span-input .el-radio-button{flex:1}._fc-video-box,._fc-iframe-box{width:100%}._fc-city .el-select{width:150px}.form-create-m ._fc-city,.form-create-m ._fc-city .el-select{width:100%}.form-create ._fc-city .el-select+.el-select{margin-left:12px}._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-markdown{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-wrap:break-word;color-scheme:light;font-size:16px;line-height:1.5;margin:0;width:100%}._fc-markdown details,._fc-markdown figcaption,._fc-markdown figure{display:block}._fc-markdown summary{display:list-item}._fc-markdown [hidden]{display:none!important}._fc-markdown a{background-color:transparent;color:#0969da;text-decoration:none}._fc-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._fc-markdown b,._fc-markdown strong{font-weight:600}._fc-markdown dfn{font-style:italic}._fc-markdown h1{border-bottom:1px solid #d1d9e0b3;font-size:2em;font-weight:600;margin:.67em 0;padding-bottom:.3em}._fc-markdown mark{background-color:#fff8c5;color:#1f2328}._fc-markdown small{font-size:90%}._fc-markdown sub,._fc-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._fc-markdown sub{bottom:-.25em}._fc-markdown sup{top:-.5em}._fc-markdown img{border-style:none;box-sizing:content-box;max-width:100%}._fc-markdown code,._fc-markdown kbd,._fc-markdown pre,._fc-markdown samp{font-family:monospace;font-size:1em}._fc-markdown figure{margin:1em 2.5rem}._fc-markdown hr{background:transparent;background-color:#d1d9e0;border:0;box-sizing:content-box;height:.25em;margin:1.5rem 0;overflow:hidden;padding:0}._fc-markdown input{font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible}._fc-markdown [type=button],._fc-markdown [type=reset],._fc-markdown [type=submit]{-webkit-appearance:button;appearance:button}._fc-markdown [type=checkbox],._fc-markdown [type=radio]{box-sizing:border-box;padding:0}._fc-markdown [type=number]::-webkit-inner-spin-button,._fc-markdown [type=number]::-webkit-outer-spin-button{height:auto}._fc-markdown [type=search]::-webkit-search-cancel-button,._fc-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}._fc-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}._fc-markdown ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}._fc-markdown a:hover{text-decoration:underline}._fc-markdown ::placeholder{color:#59636e;opacity:1}._fc-markdown hr:after,._fc-markdown hr:before{content:"";display:table}._fc-markdown hr:after{clear:both}._fc-markdown table{border-collapse:collapse;border-spacing:0;display:block;font-variant:tabular-nums;max-width:100%;overflow:auto;width:max-content}._fc-markdown td,._fc-markdown th{padding:0}._fc-markdown details summary{cursor:pointer}._fc-markdown [role=button]:focus,._fc-markdown a:focus,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=radio]:focus{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown input[type=checkbox]:focus:not(:focus-visible),._fc-markdown input[type=radio]:focus:not(:focus-visible){outline:1px solid transparent}._fc-markdown [role=button]:focus-visible,._fc-markdown a:focus-visible,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus-visible{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown a:not([class]):focus,._fc-markdown a:not([class]):focus-visible,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus,._fc-markdown input[type=radio]:focus-visible{outline-offset:0}._fc-markdown kbd{background-color:#f6f8fa;border:1px solid #d1d9e0b3;border-radius:6px;box-shadow:inset 0 -1px #d1d9e0b3;color:#1f2328;display:inline-block;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;padding:.25rem;vertical-align:middle}._fc-markdown h1,._fc-markdown h2,._fc-markdown h3,._fc-markdown h4,._fc-markdown h5,._fc-markdown h6{font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem}._fc-markdown h2{border-bottom:1px solid #d1d9e0b3;font-size:1.5em;font-weight:600;padding-bottom:.3em}._fc-markdown h3{font-size:1.25em;font-weight:600}._fc-markdown h4{font-size:1em;font-weight:600}._fc-markdown h5{font-size:.875em;font-weight:600}._fc-markdown h6{color:#59636e;font-size:.85em;font-weight:600}._fc-markdown p{margin-bottom:10px;margin-top:0}._fc-markdown blockquote{border-left:.25em solid #d1d9e0;color:#59636e;margin:0;padding:0 1em}._fc-markdown ol,._fc-markdown ul{margin-bottom:0;margin-top:0;padding-left:2em}._fc-markdown ol ol,._fc-markdown ul ol{list-style-type:lower-roman}._fc-markdown ol ol ol,._fc-markdown ol ul ol,._fc-markdown ul ol ol,._fc-markdown ul ul ol{list-style-type:lower-alpha}._fc-markdown dd{margin-left:0}._fc-markdown code,._fc-markdown pre,._fc-markdown samp,._fc-markdown tt{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}._fc-markdown pre{word-wrap:normal;margin-bottom:0;margin-top:0}._fc-markdown input::-webkit-inner-spin-button,._fc-markdown input::-webkit-outer-spin-button{appearance:none;margin:0}._fc-markdown:after,._fc-markdown:before{content:"";display:table}._fc-markdown:after{clear:both}._fc-markdown>:first-child{margin-top:0!important}._fc-markdown>:last-child{margin-bottom:0!important}._fc-markdown a:not([href]){color:inherit;text-decoration:none}._fc-markdown blockquote,._fc-markdown details,._fc-markdown dl,._fc-markdown ol,._fc-markdown p,._fc-markdown pre,._fc-markdown table,._fc-markdown ul{margin-bottom:1rem;margin-top:0}._fc-markdown blockquote>:first-child{margin-top:0}._fc-markdown blockquote>:last-child{margin-bottom:0}._fc-markdown h1:hover .anchor,._fc-markdown h2:hover .anchor,._fc-markdown h3:hover .anchor,._fc-markdown h4:hover .anchor,._fc-markdown h5:hover .anchor,._fc-markdown h6:hover .anchor{text-decoration:none}._fc-markdown h1 code,._fc-markdown h1 tt,._fc-markdown h2 code,._fc-markdown h2 tt,._fc-markdown h3 code,._fc-markdown h3 tt,._fc-markdown h4 code,._fc-markdown h4 tt,._fc-markdown h5 code,._fc-markdown h5 tt,._fc-markdown h6 code,._fc-markdown h6 tt{font-size:inherit;padding:0 .2em}._fc-markdown summary h1,._fc-markdown summary h2,._fc-markdown summary h3,._fc-markdown summary h4,._fc-markdown summary h5,._fc-markdown summary h6{display:inline-block}._fc-markdown summary h1,._fc-markdown summary h2{border-bottom:0;padding-bottom:0}._fc-markdown ol.no-list,._fc-markdown ul.no-list{list-style-type:none;padding:0}._fc-markdown ol[type="a s"]{list-style-type:lower-alpha}._fc-markdown ol[type="A s"]{list-style-type:upper-alpha}._fc-markdown ol[type="i s"]{list-style-type:lower-roman}._fc-markdown ol[type="I s"]{list-style-type:upper-roman}._fc-markdown div>ol:not([type]),._fc-markdown ol[type="1"]{list-style-type:decimal}._fc-markdown ol ol,._fc-markdown ol ul,._fc-markdown ul ol,._fc-markdown ul ul{margin-bottom:0;margin-top:0}._fc-markdown li>p{margin-top:1rem}._fc-markdown li+li{margin-top:.25em}._fc-markdown dl{padding:0}._fc-markdown dl dt{font-size:1em;font-style:italic;font-weight:600;margin-top:1rem;padding:0}._fc-markdown dl dd{margin-bottom:1rem;padding:0 1rem}._fc-markdown table th{font-weight:600}._fc-markdown table td,._fc-markdown table th{border:1px solid #d1d9e0;padding:6px 13px}._fc-markdown table td>:last-child{margin-bottom:0}._fc-markdown table tr{background-color:#fff;border-top:1px solid #d1d9e0b3}._fc-markdown table tr:nth-child(2n){background-color:#f6f8fa}._fc-markdown table img{background-color:transparent}._fc-markdown img[align=right]{padding-left:20px}._fc-markdown img[align=left]{padding-right:20px}._fc-markdown .emoji{background-color:transparent;max-width:none;vertical-align:text-top}._fc-markdown span.frame{display:block;overflow:hidden}._fc-markdown span.frame>span{border:1px solid #d1d9e0;display:block;float:left;margin:13px 0 0;overflow:hidden;padding:7px;width:auto}._fc-markdown span.frame span img{display:block;float:left}._fc-markdown span.frame span span{clear:both;color:#1f2328;display:block;padding:5px 0 0}._fc-markdown span.align-center{clear:both;display:block;overflow:hidden}._fc-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}._fc-markdown span.align-center span img{margin:0 auto;text-align:center}._fc-markdown span.align-right{clear:both;display:block;overflow:hidden}._fc-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}._fc-markdown span.align-right span img{margin:0;text-align:right}._fc-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}._fc-markdown span.float-left span{margin:13px 0 0}._fc-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}._fc-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}._fc-markdown code,._fc-markdown tt{background-color:#818b981f;border-radius:6px;font-size:85%;margin:0;padding:.2em .4em;white-space:break-spaces}._fc-markdown code br,._fc-markdown tt br{display:none}._fc-markdown del code{text-decoration:inherit}._fc-markdown samp{font-size:85%}._fc-markdown pre code{font-size:100%}._fc-markdown pre>code{background:transparent;border:0;margin:0;padding:0;white-space:pre;word-break:normal}._fc-markdown .highlight{margin-bottom:1rem}._fc-markdown .highlight pre{margin-bottom:0;word-break:normal}._fc-markdown .highlight pre,._fc-markdown pre{background-color:#f6f8fa;border-radius:6px;color:#1f2328;font-size:85%;line-height:1.45;overflow:auto;padding:1rem}._fc-markdown pre code,._fc-markdown pre tt{word-wrap:normal;background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0}._fc-markdown [data-footnote-ref]:before{content:"["}._fc-markdown [data-footnote-ref]:after{content:"]"}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown button:focus:not(:focus-visible),._fc-markdown summary:focus:not(:focus-visible){box-shadow:none;outline:none}._fc-markdown [tabindex="0"]:focus:not(:focus-visible),._fc-markdown details-dialog:focus:not(:focus-visible){outline:none}._fc-markdown g-emoji{display:inline-block;font-family:Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;min-width:1ch;vertical-align:-.075em}._fc-markdown g-emoji img{height:1em;width:1em}._fc-markdown .task-list-item{list-style-type:none}._fc-markdown .task-list-item label{font-weight:400}._fc-markdown .task-list-item.enabled label{cursor:pointer}._fc-markdown .task-list-item+.task-list-item{margin-top:.25rem}._fc-markdown .task-list-item .handle{display:none}._fc-markdown .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}._fc-markdown ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-markdown ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-signature-btn{cursor:pointer}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-signature-btn i{font-size:14px}._fc-signature-dialog .el-dialog__body{text-align:center}._fc-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px}._fd-data-select{width:100%}._fd-data-select>.el-dialog{margin:10px;width:calc(100% - 20px)}._fc-data-select-pop{display:none!important}._fc-data-select{width:100%}._fc-echarts{height:300px;width:100%}:root{--fc-drag-empty:"\\62d6\\62fd\\5de6\\4fa7\\5217\\8868\\4e2d\\7684\\7ec4\\4ef6\\5230\\6b64\\5904";--fc-child-empty:"\\70b9\\51fb\\53f3\\4e0b\\89d2 \\e789 \\6309\\94ae\\6dfb\\52a0\\4e00\\5217";--fc-text-color-1:#262626;--fc-text-color-2:#666;--fc-text-color-3:#aaa;--fc-bg-color-1:#fff;--fc-bg-color-2:#f5f5f5;--fc-bg-color-3:#ececec;--fc-line-color-1:#ddd;--fc-line-color-2:#d9d9d9;--fc-line-color-3:#ececec;--fc-style-color-1:#2e73ff;--fc-style-bg-color-1:rgba(46,115,255,.05);--fc-style-color-2:#00c050;--fc-style-bg-color-2:rgba(0,192,80,.05);--fc-style-color-3:#ff2e2e;--fc-style-bg-color-3:rgba(255,46,46,.05);--fc-style-color-4:#4efdb7;--fc-style-bg-color-4:rgba(78,253,183,.05);--fc-grid-line-color:rgba(0,0,0,.05)}html.dark{--fc-text-color-1:#e5eaf3;--fc-text-color-2:#cfd3dc;--fc-text-color-3:#6c6e72;--fc-bg-color-1:#0a0a0a;--fc-bg-color-2:#191919;--fc-bg-color-3:#2b2b2c;--fc-line-color-1:#393a3c;--fc-line-color-2:#636466;--fc-line-color-3:#2b2b2c;--fc-grid-line-color:hsla(0,0%,100%,.15)}._fc-designer,._fd-config-dialog{--el-color-primary:#2e73ff;--el-color-primary-light-3:#69f;--el-color-primary-light-5:#9bf;--el-color-primary-light-7:#ccdfff;--el-color-primary-light-8:#e0ebff;--el-color-primary-light-9:#ccdfff;--el-color-primary-dark-2:#265fcc;--el-color-success:#00c050;--el-color-success-light-3:#4ddb82;--el-color-success-light-5:#80e6a3;--el-color-success-light-7:#b3f1c5;--el-color-success-light-8:#ccf6d5;--el-color-success-light-9:#e6fae6;--el-color-success-dark-2:#00a046;--el-color-danger:#ff2e2e;--el-color-danger-light-3:#f66;--el-color-danger-light-5:#f99;--el-color-danger-light-7:#fcc;--el-color-danger-light-8:#ffd9d9;--el-color-danger-light-9:#ffe6e6;--el-color-danger-dark-2:#cc2626;--el-menu-hover-bg-color:var(--el-color-primary-light-9)}._fc-designer .el-button--primary,._fd-config-dialog .el-button--primary{--el-button-bg-color:var(--el-color-primary);--el-button-text-color:var(--el-color-white);--el-button-border-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--primary.is-plain,._fd-config-dialog .el-button--primary.is-plain{--el-button-bg-color:var(--el-color-primary-light-8);--el-button-text-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--primary.is-link,._fd-config-dialog .el-button--primary.is-link{--el-button-text-color:var(--el-color-primary)}._fc-designer .el-button--success,._fd-config-dialog .el-button--success{--el-button-bg-color:var(--el-color-success);--el-button-text-color:var(--el-color-white);--el-button-border-color:var(--el-color-success);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2)}._fc-designer .el-button--success.is-plain,._fd-config-dialog .el-button--success.is-plain{--el-button-bg-color:var(--el-color-success-light-8);--el-button-text-color:var(--el-color-success);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--success.is-link,._fd-config-dialog .el-button--success.is-link{--el-button-text-color:var(--el-color-success)}._fc-designer .el-button--danger,._fd-config-dialog .el-button--danger{--el-button-bg-color:var(--el-color-danger);--el-button-text-color:var(--el-color-white);--el-button-border-color:var(--el-color-danger);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2)}._fc-designer .el-button--danger.is-plain,._fd-config-dialog .el-button--danger.is-plain{--el-button-bg-color:var(--el-color-danger-light-8);--el-button-text-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--danger.is-link,._fd-config-dialog .el-button--danger.is-link{--el-button-text-color:var(--el-color-danger)}._fd-plain-button{border-color:var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-designer .CodeMirror-gutters,._fd-config-dialog .CodeMirror-gutters{background-color:var(--fc-bg-color-3);border-right-color:var(--fc-line-color-2)}._fc-designer .CodeMirror-scroll,._fd-config-dialog .CodeMirror-scroll{background-color:var(--fc-bg-color-2);caret-color:var(--fc-text-color-1);color:var(--fc-text-color-1)}._fd-config-dialog .CodeMirror-scroll{background-color:var(--el-bg-color)}._fc-designer{--fc-tool-border-color:var(--fc-line-color-1);background-color:var(--fc-bg-color-1);cursor:default;height:100%;min-height:500px;overflow:hidden;position:relative}._fc-designer>.el-main{bottom:0;left:0;padding:0;position:absolute;right:0;top:0}._fc-l-menu{border-right:1px solid var(--fc-line-color-3);border-top:1px solid var(--fc-line-color-3);flex-direction:column}._fc-l-menu,._fc-l-menu-item{align-items:center;display:flex}._fc-l-menu-item{box-sizing:border-box;cursor:pointer;height:40px;justify-content:center;width:100%}._fc-l-menu-item.active{color:var(--fc-style-color-1)}._fc-l-menu-form{border-bottom:1px solid var(--fc-line-color-3)}._fc-l-menu-item i{font-size:22px}._fc-l-menu-item i:hover{color:var(--fc-style-color-1)}._fc-l-menu-item .el-badge__content{--el-badge-size:15px;--el-badge-padding:4px;background-color:var(--fc-style-color-1)}._fc-l-label{color:var(--fc-text-color-1);font-size:14px;font-weight:500;line-height:17px;margin-top:5px;padding:10px 12px}._fc-l-info{color:var(--fc-text-color-3);font-size:12px;font-style:normal;font-weight:400;line-height:17px;text-align:left}._fc-l-global,._fc-l-info{padding:0 12px}._fc-l-global ._fc-l-label{font-size:12px;font-weight:400;margin-bottom:8px;margin-top:14px;padding:0}._fc-m .form-create>.el-row>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative;width:100%}._fc-m .form-create .el-col-24._fd-drag-box{align-content:flex-start;display:flex;flex-direction:row;flex-wrap:wrap}._fc-m .form-create ._fc-field-node,._fc-m .form-create ._fc-l-item,._fc-m .form-create-m ._fc-field-node,._fc-m .form-create-m ._fc-l-item{align-items:center;background:var(--fc-bg-color-2);border:1px dashed #000;border-radius:4px;color:var(--fc-text-color-1);display:flex!important;height:30px;justify-content:center;margin:5px 0;overflow:hidden;padding-bottom:0;transition:all .3s ease;width:calc(100% - 2px)}._fc-m .form-create ._fc-l-item.is-inline,._fc-m .form-create-m ._fc-l-item.is-inline{box-sizing:border-box;display:inline-flex!important;vertical-align:top;width:100px}._fc-m .form-create ._fc-field-node .fc-icon,._fc-m .form-create ._fc-l-item ._fc-l-icon,._fc-m .form-create-m ._fc-field-node .fc-icon,._fc-m .form-create-m ._fc-l-item ._fc-l-icon{display:inline-block!important;font-size:21px;padding:0 4px}._fc-m .form-create ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create ._fc-l-item ._fc-l-name,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create-m ._fc-l-item ._fc-l-name{display:inline-block!important;font-size:12px}._fc-m .form-create ._fc-field-node ._fc-field-node-label,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label{align-items:center;display:flex!important}._fc-l,._fc-m,._fc-r{border-top:1px solid var(--fc-line-color-3);box-sizing:border-box;overflow:unset;position:relative}._fc-l-close,._fc-l-open,._fc-r-close,._fc-r-open{align-items:center;background:var(--fc-bg-color-1);border-radius:0 5px 5px 0;cursor:pointer;display:flex;height:46px;justify-content:center;position:absolute;right:-12px;top:50%;width:12px;z-index:1}._fc-l-open{left:0;right:unset}._fc-r-close{left:-12px;right:unset}._fc-r-close,._fc-r-open{border-radius:5px 0 0 5px}._fc-r-open{right:0}._fc-l-close>i,._fc-r-open>i{display:block;font-size:9px;transform:rotate(-90deg)}._fc-l-open>i,._fc-r-close>i{display:block;font-size:9px;transform:rotate(90deg)}._fc-r-tab-props{padding:0 20px}._fc-r-title{color:var(--fc-text-color-1);font-size:12px;margin:15px 0 5px}._fc-r-config{display:grid;grid-template-areas:"a" "b" "c" "d" "e" "f" "g";grid-template-columns:280px}._fc-r-name-input .el-input-group__append{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fc-r-name-input .icon-group{cursor:pointer}._fc-r-name-input .icon-group:hover{color:var(--fc-style-color-1)}._fc-r .el-main{padding-bottom:100px}._fc-l>.el-container{height:100%}._fc-l .el-main{padding:0}._fc-l .el-tree-node__label{color:#333;font-weight:400;padding:3px}._fc-l .el-tree-node__content{height:30px;margin:5px 5px 0}._fc-l .el-tree-node__content>.el-tree-node__expand-icon{color:#333}._fc-l .el-tree-node__expand-icon.is-leaf{color:transparent}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fc-loading{animation:a 2s linear infinite}._fc-struct-tree{color:var(--fc-text-color-1)}._fc-tree-node{align-items:center;display:flex;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fc-struct-tree .el-tree-node__content:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)!important}._fc-tree-node.active,._fc-tree-node.active .icon-more{color:var(--fc-style-color-1)}._fc-tree-label{align-items:center;display:flex}._fc-tree-label>i{font-weight:400;margin-right:2px}._fc-tree-more{align-items:center;display:flex;padding:0 15px}._fc-tree-more .icon-more{font-weight:700}._fc-l-tabs,._fc-r-tabs{border-bottom:1px solid var(--fc-line-color-3);padding:0 10px;position:relative;width:100%}._fc-l-tab,._fc-r-tab{box-sizing:border-box;color:var(--fc-text-color-1);cursor:pointer;display:inline-block;font-size:14px;font-weight:400;height:40px;line-height:40px;list-style:none;margin:0 10px;position:relative;text-align:center}._fc-l ._fc-l-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-l-group{border:1px solid var(--fc-line-color-2);margin:12px;padding:0;user-select:none}._fc-l-group ._fc-l-list{align-items:stretch;display:grid;grid-template-columns:repeat(3,1fr)}._fc-l-group.is-template ._fc-l-list{grid-column-gap:5px;align-items:stretch;display:grid;grid-template-columns:repeat(2,1fr);padding:0 7px}._fc-l-group.is-template ._fc-l-item{background:var(--fc-bg-color-2);height:30px;line-height:28px;margin-bottom:5px;overflow:hidden;padding-bottom:0;text-overflow:ellipsis;white-space:nowrap}._fc-l-group.is-template ._fc-l-item:hover{background:var(--fc-style-color-1)}._fc-l-title{align-items:center;cursor:pointer;display:flex;font-weight:600;justify-content:space-between;margin:0;padding:12px}._fc-l-title,._fc-l-title i{font-size:14px}._fc-l-title i.down{transform:rotate(90deg)}._fc-l-item{background:var(--fc-bg-color-1);color:var(--fc-text-color-1);cursor:pointer;display:inline-block;line-height:1;padding-bottom:10px;text-align:center;transition:all .2s ease}._fc-l-item i{display:inline-block;font-size:21px}._fc-l-item ._fc-l-name{font-size:12px}._fc-l-item ._fc-l-icon{padding:10px 5px 12px}._fc-l-item:hover{background:var(--fc-style-color-1);color:#fff}._fc-m-tools{border:1px solid var(--fc-line-color-3);border-top:0;height:40px;justify-content:space-between;padding:0 10px;white-space:nowrap}._fc-m-tools,._fc-m-tools-l,._fc-m-tools-r{align-items:center;display:flex}._fc-m-tools-r{overflow:auto}._fc-m-menus{display:flex;flex-direction:row}._fc-m-menus .fc-icon{cursor:pointer;width:18px}._fc-m-menus .fc-icon.active{color:var(--fc-style-color-1)}._fc-m-menus>*+*{margin-left:5px}._fc-m-tools .line{background:var(--fc-line-color-3);height:24px;margin:0 10px;width:1px}._fc-m-tools .el-button{align-items:center;border-radius:5px;display:flex;padding:5px 10px}._fc-m-tools .el-button>span{align-items:center;display:inline-flex;justify-content:center}._fc-m-tools .el-button+.el-button,._fc-m-tools .el-dropdown{margin-left:10px}._fc-m-tools ._fd-m-extend{background-color:var(--fc-bg-color-3);border-color:var(--fc-line-color-1);border-radius:5px;color:#666;padding:5px}._fc-m-tools ._fd-m-extend .fc-icon{margin-right:0}._fc-m-tools ._fd-input-btn{align-items:center;display:flex;font-size:12px;justify-content:space-between}._fc-m-tools ._fd-input-btn .icon-check{color:#67c23a;font-size:18px}._fc-m-tools-r .fc-icon{font-size:14px;margin-right:2px}._fc-m-tools-l .fc-icon{cursor:pointer;font-size:18px}._fc-m-tools-l .fc-icon+.fc-icon{margin-left:10px}._fc-m-tools-l .fc-icon.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fc-r .el-tabs__nav-wrap:after{background-color:var(--fc-bg-color-3);height:1px}._fc-r .el-button,._fc-r .el-checkbox,._fc-r .el-radio-button__inner,._fc-r .el-table__cell .cell{font-weight:400}._fc-r ._fc-r-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-m-con{background:var(--fc-bg-color-2);padding:20px;position:relative}._fc-m-drag.mobile,._fc-m-drag.pad{border:10px solid #000;border-radius:25px}._fc-m-drag{box-sizing:border-box;margin:0 auto;overflow:auto;padding:2px}._fc-m-drag._fc-grid-line{--van-cell-background:transparent;background-image:linear-gradient(to right,var(--fc-grid-line-color) 1px,transparent 1px),linear-gradient(to bottom,var(--fc-grid-line-color) 1px,transparent 1px);background-repeat:repeat;background-size:16px 16px}._fc-m-input{padding:5px 5px 80px}._fc-m-input-handle{background:var(--fc-bg-color-1);bottom:0;box-shadow:0 2px 10px #0000000d;left:0;margin:20px;padding:12px;position:absolute;right:0;text-align:center;z-index:3}._fc-m-input-handle>.el-button{font-size:13px}._fc-m-drag.mobile{width:400px}._fc-m-drag.pad{width:770px}._fc-m-drag,.draggable-drag{background-color:var(--fc-bg-color-1);height:100%;position:relative}._fc-m-drag>form,._fc-m-drag>form>.el-row,._fc-m-drag>form>.van-row{height:100%}._fc-m-drag>form>.el-row>._fd-drag-tool,._fc-m-drag>form>.van-row>._fd-drag-tool{width:100%}._fd-fcDialog-drag,._fd-fcDrawer-drag{padding:3px}._fc-m-drag>form>.van-row{flex-direction:column}._fc-m-drag .el-tree{width:100%}._fd-drag-box{height:100%;min-height:80px;transition:padding-bottom,padding-top .3s ease;width:100%}._fd-drag-box ._fd-drag-box{outline:1px dashed var(--fc-line-color-1)}._fd-drag-tool>._fd-drag-box{outline:none}._fd-drag-box>div[data-draggable]{margin-bottom:1px}._fc-r ._fc-group-container+._fc-group-container{margin-top:20px}._fc-r ._fc-group-container{margin:0;padding:10px}._fc-r ._fc-group-handle{right:15px}._fc-r .el-form-item{margin-bottom:10px!important}._fc-r .el-form-item__label{color:var(--fc-text-color-1)}.cm-fc-field,.cm-fc-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;display:inline-block;line-height:1.5em;padding:0 8px}.cm-fc-id{background-color:#df2121}.CodeMirror-widget+.CodeMirror-widget{margin-left:5px}._fc-tabs .el-tabs__item{font-weight:400}._fc-tabs .el-tabs__nav-scroll{padding:0 15px}._fc-tabs .el-tab-pane{width:100%}._fc-tabs .el-tabs__nav-wrap:after{height:1px}.form-create .fc-none{display:none}._fc-child-empty,._fd-draggable-drag.drag-holder,._fd-elCard-drag.drag-holder,._fd-elCollapseItem-drag.drag-holder,._fd-elTabPane-drag.drag-holder,._fd-elTooltip-drag.drag-holder,._fd-fcDialog-drag.drag-holder,._fd-fcDrawer-drag.drag-holder,._fd-fcInlineForm-drag.drag-holder,._fd-group-drag.drag-holder,._fd-stepFormItem-drag.drag-holder,._fd-subForm-drag.drag-holder,._fd-tableFormColumn-drag.drag-holder,._fd-tableFormColumn2-drag.drag-holder{background:var(--fc-bg-color-2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAAMCAMAAABBazFtAAAA1VBMVEX///8uLi5wcHBDQ0P7+/v4+PhaWlpNTU3x8fHR0dH9/f1dXV0jIyPb29ucnJxSUlJLS0s7Ozvm5ubOzs5hYWH19fXIyMh9fX0+Pj5WVlbu7u6vr69ra2s1NTXj4+O8vLx0dHTX19fDw8OOjo6Hh4d5eXlISEg4ODi5ubkyMjLU1NSjo6Ofn5/r6+u0tLSLi4sWFharq6uEhITFxcXAwMCnp6eBgYGxsbFmZmbz8/OXl5eTk5MAAAANDQ23t7ccHBzd3d3Hx8cqKiro6OjKysrf39+QkJAsSMNaAAAFiElEQVRIx+WV17aaUBRFF016BymiiFLECrZrN5ry/58UjrnGkfKSPOQl0+E+e6Asz9SN4Gc+sCCEZOlx+AmX+7WTAFYAuOaJ8JmC38HiRyT2cVQCrNdBTiLl15TZ7HUW+8r7NRXhHr+hI7/TYQVB0DtNkcDbEMZFPJZEXe/Uuq7TIGgaqa9O3fJVfGHHDjBKAZgcCOP82zZ1vfUlCAIPwN4E1yUGu9aDISCrjrVwyvMNoBB/+fLlCMROFc/pbmW9UhrcdrvtBU1JAKzoj48XvI9d9hj51RHDGqzO8xcgXQBYvgGIed5LeF7Hk4+2vTsMI9u27Ip5UInCiSonueddOVfVFmknDH1gEUW+GUVbsBRFVVVTZupUsZDlbQcfD7Td71d0fxVT1PlKNUxs+Va04mRcADikjeGcbF4kjHSgVJ04mH+QwO7v+9rcbCqg25nBr20WrxQAn6PdKYrMIjqAw4C2DLBA8LnrUvW46WZlHJrq4gC4+fRdczr9yNwysu0ndts5LqL2J9g77AMJcMSOA9Q+TVccO1gsUkaWKUBcrfr91coG3CH5NSMO4Zj6FGKoOdiUyjCO75fYAkSF+xZMT7UWwxsFwFGz5rjJIvEIy54O3AfBfIgG7XpSViYsHSjqWmXQ8EohWKpyU/1a5VCwD81jjeBGWfxzTCd9TFIAXPjUVHzmdvXPL03F68qB712hThJPTpJkqg5LPqvp0Yji1G7a/vRGTS4cGenjsSksYNw0bS0Dq+Zb7vjq+9CqajlWJbil0kxld9xo+mFr/UEtgN0SlxnonTRbE1ZEs5Ll41nhKxX1KYHpbr4A3aNzKAyGObxSCAYd5RGTlTbo20PTsBDo8uZ85u+TgSF/yAWo/HZgGAnDXO9MwKqiuKtFZj3DEwp5Mk+bZZAFVZZRfDaQBJ8dp90oZdd0L+wOla0vrmTZP518WR7caJ73/TtPt5GdWnuxuDlApzjw3ax/Zmemo8/nc15sNJ1Ri7nyETayZN05SLKGqR4EMoimovZG29z1wRXnPDkeCwtgMD8w6AzxSiEYg2aamSNtI86IZmgC/EAV+FzgLaALOjcMw22692uzl9EnJzO72eSluZKlgblRACnX0KNcIA7OLY+/Mv4n0XP6ZkzVugi4/Hab74F9r+eUjNPr7Ve6efHC9lCZLMtICq+Wt8Hmra13Oh2DaM6Y1of0zRE5DrsaW5Z10W8DXaLpVrQ5meyyA4ZTqvfRvfYB7qwzE59ovlLkqhIMuk/TO4e3wZVEczgFCrpKnEnWAsnbM9a6hZemtaXqGdfzjBpP7jsB0upCNNcRUz78XQZ0QovpGhh48839YAiw+JGmxXkP4LaZpi09DlvLdNeBt+RDMrS4lAEa2mTclEazlfqtD7PTHE2KIUEbAuhHi4VCNNUWZy7X8ak5laWAN8UXsHIAmETzlUIwBNmetVTaBrRRo7lxAQrmaCmcLkRuE4o+FZJu/vmhOUuZbTE3tsrgdW2OHigA+3lIpSXdiHxUZDmhJ3kbGA4FtThW1lpZQdOaT18PqC+km5YrwHQBjMnQphi39GIjAe0MAN1oRp+44Is+NS3Y58kkjU4keTweJxB1aAvONFdUEOzJlg/FbNMN0w7wmSeaz5Sn5jI3mN7Obm4th2BeNLeWxIAZ1XxQfsD+5IxpqnvgwJ1l96GJQaYy86Vq4jvl4gEFUQmOAthJGSLxenHY71xYrjBtxtlOl9OeRf6mgd5soDadBiSfAIZoJjtcyvUotyFkW+CTB4lnBNg0sBuqGC0Q01stTkYevsHfp5h+5vwsF6GlQGHpjewm3QrAm0Y0XymElvCoSvi5/44mviGP6A3aAdxJbL6x7iIHOwXeNf1+MWf6Cv4M6W/eIuGfIr0vz/Xx+J/4CrqNrFdzXxZoAAAAAElFTkSuQmCC);background-size:0;min-height:90px;position:relative}._fc-child-empty:after,._fd-draggable-drag.drag-holder:after,._fd-elCard-drag.drag-holder:after,._fd-elCollapseItem-drag.drag-holder:after,._fd-elTabPane-drag.drag-holder:after,._fd-elTooltip-drag.drag-holder:after,._fd-fcDialog-drag.drag-holder:after,._fd-fcDrawer-drag.drag-holder:after,._fd-fcInlineForm-drag.drag-holder:after,._fd-group-drag.drag-holder:after,._fd-stepFormItem-drag.drag-holder:after,._fd-subForm-drag.drag-holder:after,._fd-tableFormColumn-drag.drag-holder:after,._fd-tableFormColumn2-drag.drag-holder:after{align-items:center;bottom:0;color:var(--fc-text-color-3);content:var(--fc-drag-empty);display:flex;font-size:12px;justify-content:center;left:0;position:absolute;right:0;top:0}._fc-designer ._fc-m-drag ._fd-draggable-drag{overflow:auto;padding:2px 2px 100px}._fc-m-drag._fd-drop-hover ._fd-draggable-drag{padding-top:20px}._fd-draggable-drag.drag-holder{background-color:var(--fc-bg-color-1)}._fd-draggable-drag.drag-holder:after{font-size:16px}._fd-drag-item{width:100%}._fd-drag-item.is-inline{display:inline;vertical-align:top;width:auto}._fd-drag-item.is-inline>div{vertical-align:top}._fc-child-empty:after{content:var(--fc-child-empty);font-family:fc-icon!important}.fc-configured{color:var(--fc-text-color-3);margin-left:5px}._fc-manage-text{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fc-message-tip{background-color:var(--fc-bg-color-1);border-color:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:9px 13px;top:16px;z-index:4}._fc-message-tip>.el-icon{font-size:18px}._fc-message-tip .el-message__content{color:var(--fc-text-color-1);font-size:14px}._fd-preview-copy{align-items:center;background:var(--fc-style-bg-color-1);border-radius:10px;color:var(--fc-style-color-1);cursor:pointer;display:flex;height:28px;justify-content:center;position:absolute;right:35px;top:65px;width:28px}._fd-preview-dialog{border-radius:6px;min-height:40%;padding-top:0}._fd-preview-dialog>.el-dialog__header{float:right;position:absolute;right:0;top:0;z-index:2}._fd-preview-code{margin-top:0;max-height:510px;overflow:auto}._fd-preview-tabs .el-tabs__nav-wrap:after{background-color:var(--fc-line-color-3);height:1px}._fd-preview-tabs .el-tabs__item{height:46px}._fd-preview-code>code{white-space:pre-wrap}._fd-preview-device{align-items:center;display:flex;position:absolute;right:50px;top:9px}._fd-preview-device>div{align-items:center;border-radius:3px;cursor:pointer;height:28px;margin-right:10px;width:76px}._fd-preview-device>div,._fd-preview-mobile{display:flex;justify-content:center}._fd-preview-mobile>div{border:6px solid #000;border-radius:24px;box-sizing:border-box;height:70vh;overflow:auto;width:350px}._fd-preview-device>div.active{background:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-row-line{background:var(--fc-line-color-3);height:1px;margin:10px 0;width:100%}.CodeMirror-hints{z-index:5}.fc-wrap-right .el-form-item__label{justify-content:flex-end}.fc-wrap-left .el-form-item__label{justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.el-form--large .fc-wrap-top.el-form-item .el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item .el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item .el-form-item__label{line-height:20px;margin-bottom:4px}._fd-slot-empty{align-items:center;background:var(--fc-bg-color-2);color:var(--fc-text-color-3);display:flex;flex-direction:row;font-size:12px;justify-content:center;min-height:90px;position:relative;width:100%}.form-create-m ._fd-slot-empty{flex-direction:column}._fd-slot-empty>span{color:var(--fc-text-color-2)}._fd-drag-item:has(>._fd-drag-tool>.el-col,>.el-col){transition:all .3s}._fd-drag-item:has(>._fd-drag-tool>.el-col-1,>.el-col-1){flex:0 0 4.1666666667%;max-width:4.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-2,>.el-col-2){flex:0 0 8.3333333333%;max-width:8.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-3,>.el-col-3){flex:0 0 12.5%;max-width:12.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-4,>.el-col-4){flex:0 0 16.6666666667%;max-width:16.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-5,>.el-col-5){flex:0 0 20.8333333333%;max-width:20.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-6,>.el-col-6){flex:0 0 25%;max-width:25%}._fd-drag-item:has(>._fd-drag-tool>.el-col-7,>.el-col-7){flex:0 0 29.1666666667%;max-width:29.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-8,>.el-col-8){flex:0 0 33.3333333333%;max-width:33.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-9,>.el-col-9){flex:0 0 37.5%;max-width:37.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-10,>.el-col-10){flex:0 0 41.6666666667%;max-width:41.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-11,>.el-col-11){flex:0 0 45.8333333333%;max-width:45.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-12,>.el-col-12){flex:0 0 50%;max-width:50%}._fd-drag-item:has(>._fd-drag-tool>.el-col-13,>.el-col-13){flex:0 0 54.1666666667%;max-width:54.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-14,>.el-col-14){flex:0 0 58.3333333333%;max-width:58.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-15,>.el-col-15){flex:0 0 62.5%;max-width:62.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-16,>.el-col-16){flex:0 0 66.6666666667%;max-width:66.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-17,>.el-col-17){flex:0 0 70.8333333333%;max-width:70.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-18,>.el-col-18){flex:0 0 75%;max-width:75%}._fd-drag-item:has(>._fd-drag-tool>.el-col-19,>.el-col-19){flex:0 0 79.1666666667%;max-width:79.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-20,>.el-col-20){flex:0 0 83.3333333333%;max-width:83.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-21,>.el-col-21){flex:0 0 87.5%;max-width:87.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-22,>.el-col-22){flex:0 0 91.6666666667%;max-width:91.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-23,>.el-col-23){flex:0 0 95.8333333333%;max-width:95.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-24,>.el-col-24){flex:0 0 100%;max-width:100%}._fd-drag-item>._fd-drag-tool>.el-col,._fd-drag-item>.el-col{flex:0 0 100%;max-width:100%}.fc-icon[class*=icon-chart-]{background-color:var(--fc-bg-color-2);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAABsCAYAAAEEfdn9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABcKADAAQAAAABAAAAbAAAAACUwJ3TAAA5qklEQVR4Ae1dB5wURdavnpkNwLLkICAZFpaogpKUoBgQUBARRMCACUVPBfXUO/XzPM/Tk/PEjApyEhRFEeEIShZUQFhWYBElSFxQCcKmmenv/3qmmu6e7p7pCTu7ULW/2a7w6lXVv1+/elVdVc1YOXUS1bvDg3JLJ/Xf9JK0Pdl5XGYV9jM2ThsvSyyPfto4o98s3ciH8nBe/Grks2ng4M3GOJ5v08BBah08nIgYSTLL4mHtdXO/G/Jq/HLpQ/Vz7tBGK5XALftQZmyoNq9ZhXlG4sX9Lr/7aNsF05VgztU3zEn7o97MDnM/abdpwODcdotmtud0WlCo8h3mzslSK05EPJJn4Nf2X8wayP3aK1U2Z8CQVe0/n52lzStJ7F4msVNMZhX9aBXCW5FvO+W14iW7i7Ozlk+cRZVs/8UnXXL6D9rKngMXjWv/+RyKmEVRpqKioVW8hCD/adN+vvBv3VHpHjs7P9+JUNCmUaUprDSCsZHaNDNePD+BIfnZ7zys8NBKgsz+SnEq4pQBxAp/tOYVxRP8ZwzztKbfPrGa/E2+e2Qdj6OrVmy08dxvxY+nm12NPNWKmxFHE0caxyqfXZrTPBGJihVTbbz2AdLGJ8qvIk5yh0Iy8PtDcrFCyNnb2kJRsddxu+42xKkawngrtXSJ8OsQx4N0Mz1Msp+lmxTWB49yG208VZb/gg3XJifUr6u4WUl5PR+6juJRwedlmb2hpSHx0HYK2rRE+1VRoScdaC+hAlFB0ruKy1r+r4+D3ndR+XeD/sBFYg9XPtzxdwpAvy7WpYnAGYaAZGXllQUL0AprqlvIw2nUDvQA8p+REeJ/MMbZhUF/AedFVyNt7lUjX87rfZ/OPCAav8SG0lWrCJSHk5iQWqNEo+PWXIhx5GKroevbmOZ1sXv8/oAdRA8954ky1sMKVCsMnjxJZ+BpDTYiwIP/DC4fqsTwqFqFIilDu7lzJmkJQirME/2sOy8A1y2wc7J5EvqBK6GhWqJAH1mH2spb8dMaVZUPdbqZ8+JXAoisQ+50FeeR2qtRdHglTtXYUpEK45XX5gFEyogKdXZThwZLUUVdy4/z0uVFoOk3j68xxlFYKxVKxXmEttU8oxXzir9mnyIaszycH+ehvVrx09IY/Wb8wiJuZBIuHE8L0K4sABAfB7GoHh9OkXFREVdkz8UqMT87aXY7XR6W6fey4xq2f0GeFaBdHkz7TZOWcK+COFWaHiLI0i1UIsza1rzknP5DVtITbag0JT9Dlfb4WYbXy0Zz+tK6KhXHv1fw5H/GC4U6U40s2eWrDaNLpyKJjhpD1/XXDlpP19J2qqi4XOw9FP4eKunTVsJMawTTb6drhWPNH3Z72EbZq80l/JYIoHMrn1NwVi0q68ahKuJWDYgkHs/pXCMdFJTp5JeR7mwLRwQ4N4sUpWmCUDTgyi72vTpJRwa1xEai733C7WedYX1ruzldiUh3l7jY2GDketTpax2BIcCVtiFaCZpZQJSQM+C6b2TJX9WYJ3N/l5FN1j3yrTGewsDoO/SEmeQnvmR6kp+cVi/rAOeVs6pIIHvofy3zlKKa72QvfPufoVT6GIxAzuMxKHctyuwC/TZtx0V/684nJHk6XflN9wNhNIwmfcZQr4j4CygdcVvBQ5mioDB3OQMGca/u2mDjfV1q7Omti6MAtUXypeW0mz+zq0umYgPOJ7FGuQMGLUK6DkCezsGmsORhjc77bE5nngYBUp0OcDUWHg6i9u5o07X+9vPmPKUNQ3qH8zCAncH92ivxr7H3ssG/NljySc3dVww40mhhHiTe2+HzObqZMp4HDbqX+/k1GLcdT0dD5N2I+BDAqf78ZvF8dMV9U+aCtHHk17YX7ZgP06cWaDu7ZbZbm2bMpw37fWxRYNAakHZtmg5w3IhRkLa6qDzLzO80qiTtaF0ihqE4B/ea5kJNnRWopsTBSF75BhvuUcbn9TfdZTpO5zxsnzrU184BMHXUaEdnTEO7+mmE05isC9vWT0cpAqWKgHIDrebfrGpSmqaXVR3KazyetlAHFdKP6z26QpdVC6WKPYZ30pwThb0eFmId8PQz4RoCuOxjEqb5JlKHRADgeg/00/V2jeU3R0uTM2Do/3jHq40nPwea9B78WygMiyATN/oVl1f/DteYt7yHdZ0m+p5zZTe71tBR0A1IQ0PHmXU+HNSUU7U8rZe8NRt5fyEA2837UDc1aQSKaAhw/JS5XTKd0LsbijbmKv9hHeAKWNQmL2sF4FUzjICGWrn9tFV6uuHc2jgdE2oKadOMfn7DzPgYac+EsA5wapAixW6AZjClYCLpXovH0niSbJ5fC7TZE8TpxFUgEBUCis4sy2bhmVY3PMXClSYCITrcaeGwLsgySdXl82MySmJ/18WJgIJARIBzO9usUwPY7UKwdKFTlMMDzk1Dnh/hFfDX0XaqPE17pfqY1UVLQ37ib4zThu3KOdRidr1DWbOmSX7P4XbzZwzT5rPy8/L4DKXbW2FV2/nTb9PSRwS4NoPRb1dpI602zCuH6xTwuJmHw/HjNz9S0LVlav14AgfTJJ2Z46YqpckubwMe1lpUxny8/tp4n6eghzZMfh3gPFO4RmuZYJXMbIRVlWK1+ESbh8rBk3ExGpxP/mB4IsK6tYDaPBxoY5ydpFM7UL+Qt1HEA/U0XcqkA1diF2H80UrysakUTz8z0Dlu2rpxf07/ofPbz/uwHw/rAOeRTq5Y4x2qUsIw4De0oOr2ChWOtlRtcspWmLkzPf14k0I7FjTtgNHv67hpPn4jrIBH/XT87fgGhef0nLjMvgHY31AeAprfDDselGZ4+aB7e2UJOGdudke1BYZL19Jq/Tn9r1+Kx7Uezy97iqScfsO2uYsqf9524fvjtbTkD4I82SWxMRTG9W6zdRCUpnWcvzbOys+FB5pmMW5mX6KDUeCiNz+QYqXc3KuHT2v7xYyQRXlanj4X+46HuXDxsCXgnCDcFRUaCjAwNg11WHvxNdZP7Dam0GNOYFc61nI83Vh3caVFvtSTl4cDh4PN+dFNgH8yfmOgjixfMvCngOezehqM5ZOqANjKEwLgJiOdygpxBKqFWvnRSBwz4GhoHUiaqUNDO0JSQgCnx5w3btOAQf+IBGzTAgKRiuTZpEedZJROO0YAvBvo1RfaCOe4/KGzrHrAse4bS0j3kLjSCp/UE+fsoUIA2mKAesxsLs9KWpTKAXEzx8GmNKt3mMZ8ThpvzGtbRyNxlGGA+yuyqv0F6mvqdIBjguozrhtaLn9BXUMGwLfh8RVOIFD+EFDktixPEJU/SO1rDPUmXGkiYAk4RljX4HdlaVYGbz/etTCvSrUaiSzMFHCyW9FwN1YdtTDasPGqDPjPw+91zg+d+lRYQt1jsUY4r7J81QGOBtfhAMNieY5XnMfxcLgrwBtOI0crOpJi0NRBeh8aycHcnIZflzMdbMJDBzhMv0P4rQuO4JThtELkYUvpauawGt8N1dNAmwakZ9AwfVvve00HJS4fOw8juM4EMGi3AvwLya/cWGwn0/I60/w6wIOSPEXbSAIfG056W0n5piuGTznUaqZEQ3ySXMqLp6MWDW5aLZ00GZNM3bX8yI8bpGzKIj/Sh2klm+/do7Qz0ekAVxoo6xfXQ/poBGXqTtbaVMnnLrzwUPNZSyCxWIjCniVCv5ut4uBj/kM5C0HLQFEpwZuDgdb32rQz3R8COADeg0YX8IaDYAT5sRD+HR7Hr5UOdzippHnTldkxdLJVKAwem91upq6P5vRmV5q84jOTZulnWpxuaO+B1YBH3Iuf6rD8rCJAL9KqATURHu28COiUGTtI+xCoIeFMENABTmADtAoAeYmWFtbLW9pwzH5MkuExyCc+NEnmKayq+NGBLkaU8tTEXEYZZaADnOqIzrEA/9QNj4moN02Scb7GSTIeL64CAYGAQEAgEA4BdfTtdIY2HGNjOj+vQZRjRMY+LHCzx8cqleMGG1A4gcCZi0CIER5tU2nK0F+sbASi+ccirITRHQJix5dPutjR8DTtLBePi/aKOtbDfMV+u/yYuRuLtV1zMCF0wI4u0jSaVsUgZG+k9FZ0wGw60pQ971Y0dvHxxNGunHik8TOGtPM/Nff0HVh/41jblbpUdtwEvMSL0x2C/QFJNryWq6Di0ehYeEA4cpA/DfM9tJy5GDdbtzaSAPX5AkvVaEoJQk578mdEWyZtw1Q3qGEYD34lmNawXLQaSTmo841OFIOB5ypDOKJgXq8Hh2DdpzIbbJVBkj2H2ix4r7fbmxGxgjPywjT/OtjOlXk87gUth1LX+1D8kYaL5+LHUgqrv5e96J1/cFrj1VrAJXY1bkJdygAgdwNQ3VyWkVEs4dLSJpAt9TiT4Nu8+hDgj0lQIHTjMLM8HvGNgoAeQPt7OW0X5v668+l/aOtU8LzTuOgSNCngOy7Fx972uZntImG78ksLN6xE/AG46GQlpaDWa9X39v64+r4e+ftafdDhRK0NT8rukhay5K2T22/kFqq33dEyZu3CPbgK9+jf6sDQjMgQV5L+2y15fe49kPXVpKmGJCWoq7SWADf+JXpsNE73BGniY/Zqux4js0iPujHmMwsDwEy06VLFRCDVjNNSSDNAwNdi8vkVaq+/hHWHuXXELH9EcRI7HzfpfIUWHqNDWVUgmMcovsSNbcaM5aO3m+Xzspqu1MBJeqjfSmM+q7AddmZ5Uk7WfjX7yzf/Y5ZmjCuqtDdt26XjqLdTXOaBLiPo/HI8uPNQx5fpCB6siy5u9M2jqSk4Hccr4UUpdvLyB+J4vbXTcMr8ARzY3ivIwvZCwm1HUDdveB/TdD/1xebOUsDNyU8fEcTTta96eFxcr/7Ibflw5SoaLwgFDrRajQOtalL9Ed+F54Vwqy63341TsEGnK0XE1E4JSxMYu4j4KDoD//BA8dMUa+PGjoOwMGh7Ml8cvYSgnQu+tBMDiHckLlLhJl5a4ab200OIvqcthLg/pfNF/5KbNcM4ZTVwfBvw/pOWQmOnxQIs/m8qS75z8nrfPzxr6ctRm3hKWehla29XTiCmoOqgMAqxZLmDGmHwaG6nIaUUgzEJj8N6YnPTQtlV0phnIw2YUljt/exF7yq25a6OL3U41nDlhzy9xu7Lrm2w6Z6IhQ4CSrsxwjqig5wfg7kyjRNDONyIuwLhiM3B4Lac8TR45XysrhDMvVZppvF41aqNV3o2+XTvRqYdpYOv2ruj/g9TXPM1T1/3Y7fHlUUFhZX2PoCo8AIu46xuSf9VAOJl51xu1snssA2ep0wIOGkwXiEnV7zj3gNw1deidnk39x/2od9VpDzpmfu6D2+yfvwGosfeqOkl6b+PgqCP4vmxj3UZ9rHeycOJukKgq2gfCAgHubWBi7P/0P6DwuUAf0cDf7tNKeDVXOkM/eyqQLekL50O3rbLr6cOhMBzMHq2VuAX/p7iqF7QZ2O4buvKhIDb1tAmEV0ino3IXLt5M0P7N2TFxr8biQMEfGu7hbPauIpSI+ZpVrJiBpklJDgOqv/LcEVAeOLmwGqH0lZIWTwd2G3D4F7pEbDYsRlmtB5HL9cBZf0Kwf8C15edlGcp4FY3ysqciGVaMOq8cbxhaJd6VLoTAMsKLYRXmbkoK/WJRz2wufcnqLBbIR8BF8X9VvNyHuIqEBAICAQEAuUEAdWCEougnN0xvpjHWS5BXdoICBMlDOKYCnuHT4eFIRXJZRABRwKOgYyyURa70gZTW2h6D/Ovd5fBdoWtEure044IQj0lKNg9MHpXXwTZ5RFpZQ8By1kUbVWxUGgsFgy5zeY7Mf/qweA2MI/tUk4ZWq7NG0d/fwhlE9ThVbyYjWoqT3kdnhLYJkq2WXBQfiNmjNbzeiKOdp1fSGE8/RfioT7GCTmNuJYfBCwFHNqrK25uJ6UpwXVheClxBcItSLyQ/hyE5Cho/qs218/aI6k9hV0pWC1XEm4aPpATi5M8XnyQGzzn0tdxVH7wkBZFOXSE5DzqbvJ6/2lEYcbuvxJNvc139Ki186rD5Ld1EpsJwT0PdSKppsU8ryv0OEIB8dNRBhawsfXwK1t3aQsvfU0RYeHKOQKmAk7nZ0CYW0CgluImp6GNtPbYzFXlb+Jo3tztY+kQlpZYIdcSL3lvQYaIds9iIp9239KXMFUH7xZoUjrg7A3EK7tkKfHcTXfM+bH74xBwqZgLN8ykG/FG06qOJNTDIMChTsbXPOgjEx62DeV1BhidfDI7QVum8aDq3q4q9QvlIGLKOAKmAk4mAASV9tf3pvpDiOmFKOk/S0cCAds84CAtEKiIXgsbV8O1Xvafdml/nFsTPQPnRq/MJ6I+L+A6sMJv2Qxfn9at4bYVbl6l4LqJYFD92goWCsn4U96cRb2AmTMV1zKHgKmAUy1JaCCnihaDsL3JNbVZC0D3tTYeJsd2CE1Ubl/Lme2arJuwHrZ9PxjB/TweNjV4CEVfDcNUjT8mr/EBs3pTG1MhInPSELAUcKoRhHoThLsDXZVX9x7WFsKmaPVgugeatQ6WKz4KDd4NcYEtVDJbSOl2DvmeQnpLK4GC2XEMD0oBzKUC4oPyO9JVOIGAEwTsBVxmKyDctPgln6YDsf5XRw/h9yJtn2KvBmY3vobibhVJBSCwT9nRwT45At6TIxum2nESaWczAjqBNQUiOMCDyULfVrB2QZMENNusiZKXovRAJsVb9SBiUGkCVjmMwn0UTiAgEBAICAQEAgIBgYBAQCAgEChFBNRxo1gu6wx1vlxW4Fa2cRODTGf3R1CXMwSEgJezGyaq6wwBIeDO8BLU5QyB8C96EtwgvAXtibelD0VSDF7WDIyETtAIBDgCcRNwvOmsyJnitf4p7g93xdEAo/HKX1nNF46WNizEdG6gtgBa2x5mzYyybJixVXiwaJ1NzA4HFbXGIrKIT8myKxBrecIeHWyZX2YbMLsw3DK9jCXQ6bz52R/WO5g14yuqmttbcUXb+R/cHkk14yLgtP7E72KnV/u52GdYgLUnkgokhUZifVDn/0DgPsLC7yfM6gABugBCEFhjLrE/42F4zowu0jjgQ0eMdcUBPY3xQC+INF8i6NC2l/DQRu3yet83srjC4av9nqI2kt+d7/Kl59bacc3zdX4csj9qppqMOLPd7fWw5cC8FkW7XfpvyPk8py6hVaDN1vylU8bh809osoZ4k26D42ZHvAxbTteflRfSmggicHO74t4qO3pQ9vUAoJ0xG2goPSDcjBXHQbh7knBTOdhQ0Rw3r6qxTMdhCQIQpcN6f+XMQCfZfZ4/3DkDrl9BglVY+Zcn/J7C87CTJBUHbDbwpfxx5cHWHyylNDpD3AlfE9oeXjc2uwSF2yRdjfqp6zPr1ICFJ+kCDk1yO350wmvYn8fLjlq0I6JoPEm4KWxKkFg5WBIH3M0mjcEZQPhz4e8TDC9BvUIeAE4byRUPy1UQbmUbH6d3ebGTKEYHk/DFGFlEnH1np+cvpDO/6ezvcJnogHyc3PtNODqzdNyLRsDrHbM0q7jcfiPetkqjeFMThWxPPOW3aDI6KlSTr8x4IbitsL58plIhif0IAekPMDcjnBrUGNdgG5J66CN2Mw2D1H/vpAHYnN0FvcKPMM9+pXzK6QM+Vt+UhwR8ZfaeaVpkkdtJKURGGj0VCTed863lIPlSfqx8+Pyn628bsem3+qtq/9Zg6XUlFQ6P5TQ4lroqnRHu9PBNaNtFnEekVzJX7GhNBRyzGgMgEA/zjBgYbYNwrObheF5/7vZkzz+qbTOdRXHJruNt58+4KdbyIHR1sDtIEV7Y1buhUZXzrUk7Q8gDg7XTwu2DIdQGG48BgUPnZxnIdSNmhmizSAGMrwpWHPAAZWCA3QZ1+cGKJlx87lU3vu93+RyZO+2/mBXxTJQ/rdilE25ZKunw+SdtqV5QgkPJ1Kl3dHj1uluHv4yol/N6PnBDYZVd/6fUGztdc66+YQ7KG6SEw/0jLJwjHo6ruQYPmyuOBKeqbR8tu4tNNRFMirg4CNshPKRTIeQ0c3K5linie2GwuUyJk9laPACjTxssWkpnfjxUocIt4ZMwMjvIOeH01D6kPGhfKB62lhiItoG59DFPD3d1FVX+zpeRf284umjTcy+/UZm1UPJjcwsJN2TwbvRQU4HRTorHVx0Ok52LmbP5Wcsn9tvZ+fmfjp+z9gNKw33Npq9EpJ1sUERhOwccHqWNvFau5i+XEm7cdLQiC4mnup0VDkL+dwhRT97Y/e0mNyc/eqYDAPZFpN2mCDcnCF5zrxo+1RAVVRDlDAD/IaiHTqPh4RoLob8HgtMXZlM9J8zrbL9JZzo4yRsJLX2dgdORuUGfLEEbXqdpYD5QVfADEerej0xb+sSJ5EtTP3uS1+shRdg5H8urZD3WwSkNL6acrFHpnG1DTxh/tbcMtZ25cSTgO3o+MoBGyvz3c+dnYp8fll3xUtSW2BkTDrR6r8nhJl98QdNdlIabQwOVVVq6I02/rEHt9KUUdsnr+dB12jQbf4pJmoQHiAS4UTCtPoREOVjIhNZRVI29FzsadLtLMr6ItAD67Ainlfyen8nv94V+vQJCrZxyptCSyedi1dp/MfN6nhdaPLJBumTzOUcoJnzy8Tuzn3IqAi/M5Gpqg5vQKVF+hk5U6yTooxhdpBP2MRajZj/UYna9/JZz/0cRNN11uNGiBbV2X35EJYBnW5977ijK2K+OCxpuunW+Nt3GPwyIdIFAF0KgV8C+LkD4mhB6nJwF4PbCjLHVPiH5TCKsttyZkDqKKqmY349nyDjc8f8wVhkL8+kZCLTqIMyj0MZxiPiEIiEctEn9S3gvpbATB7afAbMHneSJhNaRgEfCsCzTQJhr0nytto77O7y+GgKujgHw8aSlmNtVTAVorj3t533UV0sfkV9m6bhhl9vZlOAzGEIzGaZRIeeJhyE7moEWBK0B52F1RS+11yrNLN4nlbRCXZSp1Lo7BtGpCmu0wo223Yv0cdCgf9e+yQBdQLiDec14m8b52Zvg6UzAYf+HwyvpAk52HQZbjk0daAof7MAPTcEyiTzR8OsqJMyBJOl4h7mfdCYThMKbBg7e2GzNExdrXxykn2rwbNaSV943YRW3KGi8MdBak3BjL8ID0Tlaxhig6ex6Mz7g/4pZvFVch3mzbeuDepPmpi/DTQPvEOd0ilBhIOHziTKO6YvQ4b0ImS62LukCDuHuCJBq2tYyxsSTtTZV+rnjC98G2LgKOsz9WLl5bZa90+aHXrf9gNtUQSvcTTdOuLDynm7HYiw2ouzQ2gmbBYmoAtESyYGlGJAvmhWNi0MvMwa90fcQ8orhGNKkAIQ77PgtjPyHK6Z8pFc63OGk25cOAZeKIdwdea09x6t7M/d3u5GHaV0F2bSlJdy83PJ4hdbuS7941x1Cfh56tJV2fPFE0VTvKjsanpZ0DY4nEe88Eu/wNTVlxsRYEh0Tl3vlqM89voq7Wi1+Y5Ix3UkYbRnthD5etO5S/sJavOptxYc0uZLmYndCNq6BRq+H32ZMqf6DXoy5rTKaxJsKOAr4DF2F6vhbzJbLX/hse88JanzTb59QbFo8ybrDfpB/j0oUziOzzzVFhaNOSHrb/70/PiGMS4kpxiNbSqmo0i0GA0/I1ptqoVEYQ6YCTgxJyFXGGg8JuSaoeo1CriYIj0AgiQgkW3kmsemi6LMBASHgZ8NdFm0UCAgEBAICAYFAuUMAY8OAEyc0cSQiu/KTrSKjFlTJQkDY4MlCXpRbKggIAQ8Ds3a/ZhhSkVwGERACbnNT8Io1jfZr4qXX7TZkIqkMI+BYwPEyqQO1Bxkr4ManluG2xVQ1Em68Gg7sTBEnasWEZTIzOxJwCPQoVPYSXmGsArxTWcPMI8rTlTa5Wjj6oK0q3Pi4MtaYDLAgFdFlHIGIBJy0GTT3OAh0FWN7cJDNpRB8dUWeMb0MhlvSTnqs3/iEjgQz1o96JhzMsykYvw3CHfEudCMvEU4+AmEFHALcEWJwh11VIfg16AFI5IBMecDwKUO7eoRLg2C/jd/nKp1bf2QDCTcOn9lI6VjFtgXCHbrdTM0sPOUBAVsBx0E2o2GC6HZYIDyINCCWLIbkLaEd4hJrEq+GYzX7hVQH4geTYQ/OEVH2RtIGBidlUA9EdUYexbzCTqAH4JdRVzda8S7x0go3Un4AzSCKF658I2C5mpA0pm6/hAuDLhyzxptbLLENEIQPEP6dx9EVwtQf0rIXZ2fM0cbb+aEtb8bevgyUp1uPjUMXH0Lv0Bp5pypLeFEpvs0MIq9sO7Pjy9NUexrb3CDodLaH3+NjC5UZEpl1h6BfhofpVYUewg275fROcc5EXMslApYCDo0W2MMnsdoQiOcgzD2MLYQ2HwHhWAMhXA+N/hP2V67Cp76PO97E5EIOGX9G52c3hBjJKo2cqXrDeGBv/xXtOQ9kj+IhVRxtdwLvUQi+jwhFuOHfDLohOA6pPtqhCjna9YHkZb8Fcor/5QkB3E8TB5sbGrUvDomoAeH4ChQhwq3mkllXCPoFEI75EPQMaO/e+N1Jh8CoNGE80M7vQ8QDGhS0NGglkyJoVuhyu70VVlFE+omGTysJmA1BPRvqiAwBVGQWoh41RJOR8g0eUGV7FMrKgVkyhGjwyfLKWlqlXdoI4S83CJhrcJxD6PMpx2S1gvDuh/A2CtOidMWkwT/uIFSaEI8NvdKhOoWZux7zFFde2GbhlMcUCpk9ySkheA9A606kMBj2bLt4+l34fn0JT4eQHvb4WaHuSAM1MbwHD9cYlDEdJlV5mgkK3zBBoSBgrmU1B0JCuMMe1g7BU45fUDGl8yoicHl97h9VWOXnv2P7UIY37dh1OQOGLKdsEDj1rBDMSX8ZjMvDw/YWtGsuhLKFyl5m+RDu42rYxIMe4RrwVHoEumKc0F1LhgdICLcWkDPIby7gmgbCRFEOf9FEhXghILqToaBqFUENITREFGbsCWjsYDzOwqtLXmjTDtDMT2EvaH+YHzn46WY0MLPyloGVCAoETBEwN1FACuHaBU3XmHJBi+dITH+IO8VbOeQ9YJWmjXd50zcGvhSgjQ34MfORiZmNi/AE/oiYFQaKRYZwVEE6uvlEzRz1Yamxt/fgBhvu+yEqZiJTmUTAUoNDoE8LlYvNQO23W7UApkMBT3M5OFe73fwZwzDdd4rnbbDhwYvI75VZVRwIlIqeoBqFodF/RS9xF7yYncRpVjF+L4d4kvOmnNKdrV3sOa4LB6jE//KMgKUGh2lyjDcM57/S4YqfwNZWjuvi8RDsGnhCNoL2U2j5QJoU2fdfyBaG0GbhCDWavtM5j8SOIv0AhPkEdR9BtxT07XhAXAUCkSBgqcEpMwTYh5ctS8iPgZw6L0xhchDsX/Eq/1zye2Qcig6HI3Yj+sARCTfRWzmkz4ZwL7RKF/ECgUgQsBVwmAlfYw54KwS9CoStvhVDKNnraSYDJyxtxlxyRNODVrxEvEAgnghYmihUCARWWXiElyH14Fc0uVXh/hJQudkyq/RkxuMU0nlYIag6DIJXU6DZ6ifn/dT9aTWen9QF84g+8KQ6TEvuUQPCU64Q0Nx263qTFrdODaTgzWeZdcpreZOTutzeDJ/ZSV3BXmhbmW2QqFjECNiaKBFzEYQCgTKKgBDwMnpjRLUEAgIBgYBAQCAgEBAICAQEAgIBgYBAQCAgEBAICAQEAqWFAFYz6V2iz5jVlxb/kPHMV9Ge+GMcC0dxf2JBL/F5xf1JPMaxlGC8P+ItTyxoirwCAYGAQCCJCAgFnkTwRdECAYGAQCAWBIQCjwU9kVcgIBAQCCQRgYi2OiSxfqVSNPbuvI2CLol3YT43uwj7iI7Gm29Z44czxTK8LvZHWatXWawPtogNxAk/KcmoG86lKMFLr7nJKPtsKvNQi9n1DraePlfye/Jdfs/+lMLqK6sc7PFV3S3Dfok3DmVKgeNstWoQsKHKYSiGluIEoAKcrP8BtjKrh68YSKIOYje1G0cDxN1JhTigtkwhjCb62RXAeSK2zm7Fbzg2mhZH03DAVR35X0DeHiXYp4j79j2GczfhlKiwR6BFU57TPNhw2x6K8hLI0skUL5uBzlQ9B9Apr3jSA7dG2At5bzx5RsoLZb8asmoh0syC7jQCKSxFLmZdoJP6Qm90wfNUB5u306GfOivnR7rwn8mVZVdJZZ+rpJkvY9/Fhc1nPXaoOR3+y/xQ6FOzvnr5Bdore5ppdL6ypV78rA4UtOkX27DhuQKsvFqwIvZE19SzOxcE7WJo2ddx4gG3/triCJDNeKifgLR9FAk6yreMPOw25HsQvHTby8HnPEjj8xjNTEjmkSGQn25oywXoSFjwww0Z6GBux1dBvkLnlfTj+HCY1es4kP5WYFgxEszjSFPgSsH9L4kjxzCsCjN3pu+64MURxRWP9JfdxdlhyHXJki91S+qpmvMarx//QfrxJsnvfPHFGogUfSuhhWKiwFohESPLRXvyhq4R5gFXSfpvt+T2G3kLHQHfetFbd8SiyMuWAjdvcMJjYaVNxY3IxL0w7TyiqoCfrXV7DIftRsUotkywQjtBwCajfRVMOUnsb4gfC8U7GNa47is0nB6y2g5K52X64IUSB6A07heMYO7nylGfpKFKoBf2Dgxu1gedFH3lxtThHvdBQlsYArNxSFvMlo9pIRFEKiMUGVhK7M8RkMeTZJLuOP14ctbwOth6RoP8pp9OgsK2vBcacksvKfyiyvuz83o9+DARQaFvrf3ztffW3Tp8r2WmBCTguegKTf0OWOsMlngU5fMU9IAiz625p++19TeO1Z88H2EBQoEDKCio5bhJyyPELDKyZGgybc3wiS1Yo1OgvPUfYZHZVnQs98OangILoh5lUa4yW4vr26j2ixRH89olHvYsEq800XZeKPsXoYTeI1pikAwHrY1qsqtQfuMIq1DbncLuhqL/FPUvVUWgw8eHT6mlsC2od6lJCXD6LpGFbe854ZqCzB34hEViJg2pQzjU4sMvDzX/0FvhePPHzI7p0mEchwCMn4/w/LRP8F1yHWm4eK67uPpl0cyRO1XgPdAjUW9k6vBAXRvJ2W6mmUVkXBCAYmrhd7NpYEbvE7RuJw6NvIlGBfj2C7neEEz60tazSoj+Sex23N8RUCxuTDuk4Wp0KzCXPEF5MWtgbiSMRxh1uYxb1SjuCJTQNphB2/EtGx86l4GwZus4LQdHHlPNB6HT/gnNUz626pRHrPQ425DOpf02Vj5O8qO9CXGKxd3849n4JItygL9ZIS5/6saMQ+e/0OS7R9aZpRvjdnZ+vtMfdTZM8LuKOxrTcPc8BVV2/BPfOPpz7R3XDUmURQ7ZWATl3Sik/ARFHGk890ko8DFO2TtS4Jisr2HyUKtl4mts1WksW95cbr8Rb/s8py6Jpt4pBTXfyl789r+iyRvvPDRHLXuggKG8Nbz3oVMdgftyAMpb5yCgs3FP50JJTsdtC3xQwDg3i4+IYfrhQShOReFAeSfF4YGqiTr2gBLvgQ4qZqsfo4pmwOQufAB4ZrJWCuX2u3EyhtEXJxJQzLOubDt/umPFEEmdtl8yfnBB1Z+eM6OVZNfRyge6jG2ybsJ6bTo633RgvgFxm3A/h1Ma7ukkTMP1Rfhi6Jf8oKK/gdJ2dnrhghPnrH1Nlvy6L65Qh0EW+fFa6//ccsWL9FGOuDkYDveDWakpb6q4z1MY2llF0CLDIx1BjjORRFJUQnQtc8V/biy6isCAJssOH6RD/qdgqdyF8AJY27vxcFg6WOz0qaMhENquIKLRFalH6Gz2BuJfwUvjGMCxLDbhCaj7ecCA2nQclvpshENehCE+xeVlI9HAfZgVTwFO9K1jar/qELcVHZ3tcfgqsUNPxd+z3j9Ra2NCFXjFoy2mOaxWROR5ve+9ubDyvj+bEacfb/Rk1rJ/z+RpkKUH0VkOALADMYI7gXuhe6GJ0cG93DAE3lVAT0bFx4j/T7ADuCiv15+GFWbufprz5FfqQFCXzKylk6bwuJivMrtaGac5ZCSnwHDCx93r5A3dh5/tR2scsrYkT6gCP9xkQa0D2VPfxIA8ZKgr+VL2NFv719sq/pqtflfNspYiwTkCMnsjOFWiy7u/3eTmRxotmOYqqbS67cL3x/NEKKk18GfD0q2OB+w3nRbjRJqrP63Yta37uHtKMvLHItrlKc78pM3/ppo+0JpsCfXi4ac5/Svwq6QpqCqUxxi0Kw9KYrEm/rTXF3g5C6VRqq7pmidX5PS/frfs8ibE2oNd8kvTr59eHu9G5Tf+rA6U96NmfDP3dxnZZN0j3wYNgim4Jy/BCHgJ2L+EUY+lw4vouli9dBD34Bjkryd+9HLqHoTvQ0c7kjqEnZ2e//l4vbUhHRLVBXVaUHvXNYcsC3CQgLrXUMp3kIdIMT23KBrF73Zj+SEUv8PiFPKEKvDfG37VTXYXtTGrGOJrHmz2yXlNf81WPpBjRlNacRV/bzn1j2rbMlGeo1UoLtl1vMqBznNKq56xlHOw1fSG+S3m/FeWvEpn6ks7MWDTgEFXZe7vPrLJ+vE0pFUcBPc37je77rzwH51P1Fk3EUPYWtp0b+rxwTlXD81qu+S/Q1xFqTCi4uJugvJtgYd7F6aBdqNTOQjGejUrsYqo8+UorYFdiaDJwsOVhY5qMXjk2dGWZlr6icav4hPftyWizPQT505JBN/8Vh9PAN8QHUfTiaS8qcygQZBluFuh1ZHZMEzjPYWPfg2Csj6oI/Ar69Zf5cYE8d7S9/a3SiocuUNHh+KoTlDgqkFiSHcUhMxtQl26O8oULbHMdkervKnIhCrwaNtU2vmCVsry0i63NMrLbzq37sHs9/8ru3znhpSHF0LH66+ekVt3/frWSyeNdJ+qYWoknWj4dZXdbV59wZdyqmcID8aK0o81fjZr+cRZJmmxRkEPYO5bxk9inUhzc60BPwwlNRhxOcjUF7wupuWEyJT0XbLB1RSfRdyAMkDodxe0N6tGtf09PqZ44DsWneRgbGwZjM7X1LKE0r4dyn28cgdl9iUU5lYznrjPtGGM+H4AOZhMZeQ3+9SowJnfUxh4h2PGxGEc3iX9Ddb/AofZoiOX2TPOpfh0UUKBn8bijPIdabys+v62r0FxlzTTNoxeLlU83vxvJ6v8+Ax0YAVK87kLL8i9bMyWSr+3HN985fOfc/q8PveOLqy072EIWIicuL2VFjbZ8MBjlQ5ekJQt9NEob94uKI50KJmboBwOQHF8Cl7ajisFSr4N5l/PAz1NxazFLyFz4Gp9gh4ovXHGuGjCqDttOEmYa//FRzTisXTA9DVg+hqUd4gDtmMQOUFrmWOT1SvoUE0dWPwG2t488ZwfRu/CL6Hzy5CNn/ES6FbstHyXl5uIK+TvL7D2V8bCO+TBjIVZuc2LFyyYZ2tcmvXHjdsFwVSVZbzKPlHn28ydnV6cIrtL9FNXsuuP6vsuvuXcDX/KCZb1+ZbLb328JP33Ubzsk9W2v5jTfwjewEsy5mUb8nh+xdkO+6vt736/hgdPKpdXKIdz8LDejQ5qL+5FXTRCeR4QL1ziEKAXy6edjfV9mqj0fXg+V6MD6oZ5+dlQtMp+iXjVAvxOoJO9HiOKnbHyFAocCMIqcGktglhBjSQ/lYkbGFd3su76jF3nT3xLr7ylwsxDnW5v8s1jytyktsDsRe8+ixfNbx1o+84cPqcdMtWChLSCuhOzlk2cLHnT4lxjbW2S6Jft58+TWLMzrmjI/G203BUrf2rgTcnvviTuig0HLl6+/goasv5boaN/HcIfkyLHyOQ4+NyHToEWDMTFCQUeFxjLBhOazmg3f8awgqrbK/zU9emX8XJ2etO1Ty6zq12tnVcdxq9HXp/7R+Fl2uOc1u2r8HXdrbeNr/nzpSTEyXEyjiKQlIcoOeVTqVQH4eKKAC13xYvJI1De5cJhRLYNctCbRmYYqXeHEn4Icqkf4Vq1BC8pYc1PhPJeoIzs4mwCOVLg6D0P2pWPN8mHtOkpRVUPFlg1DPHpBXX1y37oSFKLuTBigzkp23SbomyTMAe30SezNNwYyFXiHW6mj8q0mveLtQYVjrYsaLvgg5AXPXZ8cTra+1D8Hx1s+UnbJt8++p0dbWmlQeAfKu2RUWm1zaycRM9dm5Up4pwhQFMryLHaiVzieU+Yc6TAUelv8FBZvkAw1rPJ2se/Qc0t6Y2tovMpwN/6BUyCdgHSZhc8PLud3BRj3Z2EqSc2W6PthEciaEnxlxXlnYj2CZ4CgTMNgXIyiDnTYBftEQgIBAQCsSMgFHjsGAoOAgGBgEAgKQgIBZ4U2EWhAgGBgEBAICAQEAgIBAQCAgGBgEBAICAQEAiULwRoQYTOdXhQbqmLKGeBTS9J27VVFu3RopF8v/H+JL9GogYCgfKLgJgDL7/3TtRcICAQOMsREAr8LBeAWJuPnWlpOBbgHexMc7RxKNZyRX6BgEBA+Z5v6cCATToVeUl0FgL3i2v5RIAUN06QeRe7Y+lwrB7YxPUQFHkerteVzxaJWgsEyh8CznZiOmwfPeT42sSlPj9rxlLYPpePfUIsEJeOTZVjXG521FfEFtCHdh2yFuRJQoC+aejzsNdx7EA3wxbhPHTLo3Hcwu9JqpooViBw1iGQEAWOc0U6ujysG05ZdkN5Wzp8gqiq5GHDiQQKYSsOIlkGpZ+gDfOW1TgrEqgzhbVMX1IZid8+dKLXOvkSiPIxWg97w+tRvjOpxWwbvnM4WvkwsPEsBS2V8AsEBAJxRyBuChzWWB2cpnwlpkcyoYwZro4c8reG5m6NQ57oI7tf4aCnHx0xKCPEfpfyPb3LYYlWxJTCKkwdJffzXRIbCb06AfckTQNRfZ+PfQeL+QXUc7ImPsSLlyQVfBJ7E4r7Im0i7tdWv4fdTIo7WV+q19ZH+AUCZyMCMSlwsuqgcC/Dtakyq22ntGV2MQ5I9+Ms3E/tgMaXMFKRfmXwl+/BMYxWn2Wy45OsNCjEC6HcapIxCuXXEx3Zdjo+szTrgxFNTyjs51BmDZNyixFHGJObgE5mFGp3LTpN3bcwFcXN2FtQ3hcGSAP/0ZAtGCndjOsxfNFdOIGAQCCJCESlwGmKxBOcIoHytnYu1hIKrRcIUoMqrB8UxvN47tcgnIv4IuvMSkptL+ZVMVcuY7j/PTTiGnQANpMyYbiFSaYXrbKHNYHSPQIFqD/q1iyvxJai+coh7zhmsj+NGtDewLm/RE/YpBVJ23o9cHdRxYO3IaKy5Evdji93/6Xx9w9sNGMZQ1xLYPsS8rcIeUMss3UYGUzANwr3E38A+CDad2ewrDrofNfA/wrqO4kUNzrMt9EXdw6mBy4y+wHvKm6maRe7W67LIwICAYFAQhGISoHjuyw7MLddDKV1LpTGuVBcyrcVlZpKrAGU2GVQChlBpR3SACiYrkjvirzFUJqLoBB2hRAFIzBvewxz6b+A10Go+xR0BeGUvhUr23jUoxYOmB+mdA+kAXFeN+JW2mWCpX0dPs7azy2zDVZTPpuvGP2x7C5SD3+X3cUtj527YlZe1V1PZS19eYYdf0dpEisBfQM1j8z2ANfxUMibKA7KW3WIe0nysWnorD6l0QIlgHYc7sk4k0FULvLeQqMgKG/mKmEVij266RiFL3gWQB4Scm/UiguPQEAgoEMgYgUO68vtL8aaXxc75aUPK8hsCzhtgbImZZeF8L/ga6FwDzEBldiQf8ibCqXRXyGX2VoogL9Cgfyis7KDigdTNfQZDwlpmVIKO+nz6j5EG8LbaQTadTjFB8vTzRrCWv0VytvqSzQtUede+KVguudrKLf/EgRWzlOS8V2JRoEH6XwZv2dtsMoTVTy+rwccO0LRdgZGygcZ7G4DtRedVXe0YyzKw3cw9Q5t2uzBh10VxR1khLhW3hTWF7fC1AG3z/AZqj2miSJSICAQiDsCEStwUphQoD1hsTXX1sLtYi5Mo9yFZ9zqudaSW/sl1gV8JkKJvwelURMdQkYIMSZfoeB/lLzsfyFpcYiA8i4Em+1QQiEOyqkhlPp8UtxKIrQZ6nofKW+MJEYgz7qQTIjIXjT5OVye29vh1dbFFY7UqXyga26t3Zfrlk2Cx3X41UMnlQulutSMT6RxXHlHSo9O9DUo8xm4zkEdzsF93ASYb8M02QncB+EEAgKBMoxAxAqc2gALdWWxS6/AMZVC6m4JFNvlsbYT87L7ocQbW/GhuXCphK2AwomLkz1F0g+XjXnFl/pH31CG0okqe3vc3njDg99TGpR3Z1V5G4jRqXVHlKLAQUfz6I8h7noN2cF6G+95DAp/mSZO9UJPfqzoSpOOQyWKwAMFfC4w/Ds6lGpGcijow4h/EPULWacdjOuF3pE+Kud0AZGxKBEWCAgESgkBR6qQpk6QQVFohvpth3KIabkclI8fVt8OA19dEDTroLxP6SJjCGy+4qaF5sqbmMqVjzVYOXPHxY/0oxApWfx7GF7tPC+pvBcxB/5ykKY5vrb9vUF5U1JdzOW/C4z+Q4GEORc7HxhdiNFLC+MP8d2gmbPtyi7t1TJ2dRFpAgGBQHgEHFngxA5zvmtgpbWFpRyYSgiWgSmEJVBQDRE8/UIzmBbJBRYiKW+Td2iB3FCAhXhR+K1iqUbCMAyNN/M3j+z2nROGjHnTTjTiNLBUP4P/M3ofgJpWpGkGKErVYcqhsRow9zQxj05e7N7zJmUXpxwNsdjTCmvn18+5o1yuxU8emqJkgUDpIuBYgWOlhg9b4r/GnHBPbVUx+pfxNw9DeO3UgZbE1g/lb/+lZ6wIgfUf4yTD6Sp4jlf3Zu7rNvp4/dUfINZ0JOL2pa9uteS113kuUtyYMhpT4lXXUeOtKtsTVOwMndASjBCeBg5P8jya615MQQ3HKKbMuO09J1xTUGXHP80qdAKRRen5tzb99onVZukiTiAgEEg+Ao4VOFUZyjsH89EdaCs8bwJewPl9xezf2EL/BMVhuC7JKWwErOZsvBTLhKFaBdMNmZheqAIrmvwVeV5cj+Hl2z/oRSHmiQeCr9HQzkfENg19LN4e6CyegJKd2mT9+Bls/fjWh7I+rH+03srLvanHW0uy+1TaH/VXNv72kWVub4ZuRFDiwxy8rEyh8I0wVNECbWWgzKcjTD8Gi9yFdqmdTllS3to6C79AQCBQPhGISoFTU2Fpr8BlYNBf4C9k09zBNdpQ4plQXjdCeadAwR2ABjtAdFCapy9BP0VAaf+sXLEEDfleQx5alVFXIaZ/MspCZDwcRhA/Q8kuwuqZjaif4urkDd2H33vh+AeV8RRdVVT1HJpbq7xDU0WMQEAgIBCIDYGoFbjsZbtp+gD2ZSqOn5rtCu61hD7rgA0flzipFubTm0KJ01LEGVB6x5D3Iyjw5rhehXj6wk6gA3DC1IIWc/j7kfQSV94WZCJaICAQEAiUeQSiVuDUMijqebBkceZgYMoE18GIVraWO2158KXoKMwhfwMl+y2mindgzvm1khLmgRIXLgIEgNMp4GjpMHWkW8Hj9qXqwsaMLm9FXTo6vRLztwXBnD6ki3tlhFGEBQIJQyAmBa4o72DVgkvQAuuZY6muZkqCNg9BKenmoWNhfabnxXuHxdCfWVbtRD+rc81WPbsYEZb0OmIE8J7jJ1xeMcarYaG8VSiERyBQGgiUoTURpdFcUYZAQCAgEDhzEBAK/My5l6IlAgGBwFmGgFDgZ9kNF80VCAgEBAICAYGAQEAgIBAQCAgEBAICAYGAQCAaBP4f7gEVmIzBYlQAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:164px;border-radius:3px;display:inline-block;height:21px;width:21px}.fc-icon.icon-chart-bar{background-position:-2px -2px}.fc-icon.icon-chart-stripe{background-position:-25px -2px}.fc-icon.icon-chart-line{background-position:-48px -2px}.fc-icon.icon-chart-area{background-position:-71px -2px}.fc-icon.icon-chart-funnel{background-position:-95px -2px}.fc-icon.icon-chart-gauge{background-position:-118px -2px}.fc-icon.icon-chart-pie{background-position:-141px -2px}.fc-icon.icon-chart-radar{background-position:-2px -25px}.fc-icon.icon-chart-scatter{background-position:-25px -25px}.fc-icon.icon-chart-custom{background-position:-48px -25px}.fd-theme-purple,.fd-theme-purple ._fc-designer,.fd-theme-purple ._fd-config-dialog{--fc-style-color-1:#884cff;--fc-style-bg-color-1:rgba(136,76,255,.05);--el-color-primary:#884cff;--el-color-primary-light-3:#a47fff;--el-color-primary-light-5:#b599ff;--el-color-primary-light-7:#c6b3ff;--el-color-primary-light-8:#d1c2ff;--el-color-primary-light-9:#e1d6ff;--el-color-primary-dark-2:#6e3acc;--fc-style-color-4:#e000ff;--fc-style-bg-color-4:rgba(224,0,255,.05)}.fd-theme-orange,.fd-theme-orange ._fc-designer,.fd-theme-orange ._fd-config-dialog{--fc-style-color-1:#f27024;--fc-style-bg-color-1:rgba(242,112,36,.05);--el-color-primary:#f27024;--el-color-primary-light-3:#ff9a59;--el-color-primary-light-5:#ffb380;--el-color-primary-light-7:#fc9;--el-color-primary-light-8:#ffd6b3;--el-color-primary-light-9:#ffe6cc;--el-color-primary-dark-2:#c25a1d;--fc-style-color-4:#ffb600;--fc-style-bg-color-4:rgba(255,182,0,.05)}.fd-theme-pink,.fd-theme-pink ._fc-designer,.fd-theme-pink ._fd-config-dialog{--fc-style-color-1:#fe679a;--fc-style-bg-color-1:rgba(254,103,154,.05);--el-color-primary:#fe679a;--el-color-primary-light-3:#ff96b3;--el-color-primary-light-5:#ffb3c8;--el-color-primary-light-7:#ffd1dc;--el-color-primary-light-8:#ffdce5;--el-color-primary-light-9:#ffe6ed;--el-color-primary-dark-2:#cb517a;--fc-style-color-4:#bd2bff;--fc-style-bg-color-4:rgba(189,43,255,.05)}.fd-theme-green,.fd-theme-green ._fc-designer,.fd-theme-green ._fd-config-dialog{--fc-style-color-1:#18bf82;--fc-style-bg-color-1:rgba(24,191,130,.05);--el-color-primary:#18bf82;--el-color-primary-light-3:#4fd8a1;--el-color-primary-light-5:#80e6bb;--el-color-primary-light-7:#b3f1d6;--el-color-primary-light-8:#c6f5e0;--el-color-primary-light-9:#d9f9eb;--el-color-primary-dark-2:#149566;--fc-style-color-4:#e2ff00;--fc-style-bg-color-4:rgba(226,255,0,.05)}.fd-theme-green ._fc-designer .el-button--success.is-plain,.fd-theme-green ._fd-config-dialog .el-button--success.is-plain{--el-button-bg-color:#fef1e9;--el-button-text-color:#f27024;--el-button-border-color:#f9b892;--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:#f27024;--el-button-hover-border-color:#f27024;--el-button-active-bg-color:#c65e21;--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:#c65e21}._fc-upload-preview{border-radius:5px;display:inline-block;height:120px;overflow:hidden;width:120px}.form-create.is-preview ._fc-upload .el-icon--close,.form-create.is-preview ._fc-upload .el-icon--close-tip,.form-create.is-preview ._fc-upload .el-upload{display:none!important}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAAFEEAAsAAAAAoPAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA8FUuIY21hcAAAAYgAAAP7AAAKGJ2RrB1nbHlmAAAFhAAAQ/kAAIgow5ZWYGhlYWQAAEmAAAAALwAAADYrnfY1aGhlYQAASbAAAAAeAAAAJAfeBJ5obXR4AABJ0AAAAF0AAAJ4jxAAAGxvY2EAAEowAAABPgAAAT5fhjx4bWF4cAAAS3AAAAAfAAAAIAHCAPxuYW1lAABLkAAAAUUAAAJb1Yvg7HBvc3QAAEzYAAAELAAABq340wMHeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFRZZzAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnjG8mMzc8L+BgYH5DgOQZGBEUcQEAICVDRp4nO3WZXOVVxiF4fsAhUpq1N3d3agBJQ3u7u7u7u7BIfVSo+7u7u58XMO/oGtndforemauTN53MnNmdp61ng0cAjS0y60RNNhHxb9R2eu3lfr3DTm8/n2jymw/V3EoDWgk1FLV2n+g9uBB8FNztVJNnv77VPzXVRxD00qz+m8Zx3gmMJFJTGaKv3kq05jODGYyi9nMYS7zmM8CFrKIxSxhKctYzgpWsorVnMsazmMt61jPBjayic3Ucg7ncwFb2MqFnM02LmI7O9jJLnazhzqu5Cqu5hrO4Fqu42Ku5wZu5CZu5hZu5RJuoxm3cwd3chd3cynNaUFL7qEV1dxLDa1pQ1va0Z4OdKQTl9GZLj6VrnSjOz3oSS9604e+9KM/AxjIIAYzhKEMYzgjGMkVjGI0YxjLWZzJyZzCqZzG6ZzECZxIE47jeJ/pYT7lxhzh8zqSozjap3YsTctJl/9CpTH/f6rKjyZj/32qK1MXZX7VPDxjqEV42jyl4blDrcITiKrDs4hqwlOJWofnE7WJkhG1Dc8saheeXtQ+PMeoQ3iiUcfwbKNO4SlHncPzjrqEJx91DWcAdQunAXUP5wL1CCcE9QxnBfUKpwb1DucH9QknCfUNZwr1C6cL9Q/nDA0IJw4NDGcPDQqnEA0O5xENCScTDQ1nFA0LpxUND+cWjQgnGI0MZxmNCqcajQ7nG40JJx2NDWcejQunH40P9wCaEG4ENDHcDWhSuCXQ5HBfoCnh5kBTwx2CpoXbBE0P9wqaEW4YNDPcNWhWuHXQ7HD/oDnhJkJzw52E5kX9DM8P9xRaEG4stDDcXWhRuMXQ4nCfoSXhZkNLwx2HloXbDi0P9x5aEW5AtDLchWhVuBXR6nA/ojXhpkRrw52J1oXbE60P9yjaEG5UtDHcrWhTuGXR5nDfotpw86It4Q5GW8NtjLYFJd/bg5LvHUHJ985wa6NdQcn67qBkfU+401FdUHJ/X1Byf39Qcv9AUHL/YFBy/1BQcv9wUHL/SFBy/2hQcr83vDfQY0HpgMeD0gFPRNnBejIoffBUUPpgX1D64Omg9MEzQemDZ4PSB88FpQ+eD0ofvBCUPngxKH3wUlD64OWg9MErQemDV4PSB68FpQ9eD0ofvBGUPngzKH3wVlD64O2g9ME7QemDd8MbE70XlG54Pyjd8EFQuuHDoHTDR+Ediz4Ob1v0SXjvok/DGxh9Ft7F6PPwVkZfhPcz+jK8qdFX4Z2Nvg5vb/RNeI+jb8MbHX0X3u3o+/CWRz+E9z36Mcr9Sj+F7wDo5/BtAP0SZfvp1/ANAf0Wviug38O3BvRH+P6A/gzfJNBf4TsF+jt8u0D7o9z9DtQGlX8AZj1A2gB4nL29CWAbxdkwvDOr1UoraXWuVrJ1ryXZli1bt287sU3iXE6AhBzk5ko4c5T7PgqlXC2EQikBCg3QchYCoQVajtK3tNCWu/SjLUc52r6F9oWWt402/zOzK1ly4tjt1/+zR3PP7M75nDPLGBj4Y6/ATzNuRmF6mHGGQdkQkpweESnRWBoVnPkBlOOiMSPEeXPRbBFiElwYDaKc7OSVZMGOlA4kgc9Zime9QYj22pEx1oESxV5UyBfx35tHm8GoLs1Ff1ZdSiajoD+DrY7whx/Kt5tMnXyBb4Zfp8mEzhVdPmRgi4jDRcyyXjd+qnmkWd0FFhi0EqyhjKLuorWsVDJLuSef5EzqsybTHWcaDGfeAVX0mZBb/AixhmGMh7HxI9HNMDaG2fcpewVrZTxME3MIM4c5jDmcWcesZ05kTmLOZM5iLp3Uenzg1iezIRxESiGfUPSUXiQpenacc/eirJTxpFCskMkXagOlXIYElAwJ9KKpAmxLQ7qxMd2gDnuaAnbwoyfUYbvHY0dPiB7P7SRyyGNXhyEgZrPueKPD0Rh3Px75KELMLcRcF41EokdG4G8V8eHToBZ1GCySEz0BlVdrQE/YPa+S6GyWBMmThuyBJg96gtRc/jmp5DJi3Rmp+YNpY6j2J8vwjIWxM4w7KtF/5FTo/3bWt/dD8sPrL7jrAryUWOu1GNZHpp4AdbzJXs4mmCRTYIrMIMzAiVGhoxFE8I4pVMhli/1I63KI0rscQRSMkAyDUYTh8ZJhiSLF480W84mYUc56YXiMUCYBY1OEkXRG4zAiUAGMCJSVagNsJJgJBDJBRXFIkqP8Q2IrihZ37EjYi67xhkfUq9CufKgtHG4L2b3hsFc9hdjoAojfqj7je8NXNXh1IBP4EH4jXvuHdi+1RvSowZdJqZefUf8MLlR2NFT0LK2ozxseVd97w8f5wBylOQxjrva1zMSZDqaT6WP6mTFmHrMMekmCPuHpBJWi1WkIfYfJTMZK1Enarc1dvnY+SlMGMKO+bnNj6PkW9fXKDMOHVnzqLrRSfR81wIT5TeS4yCSD3h1y2tSXRM8sOttayIRFLcRfvo/UwPpmlTfDix0qeq4mc+kbVYvOqTfYU9lmxspITB7WKINiIvKEUHYA5dOIjyXyxazXY2RjIpY8shf+S8Xa/0I+jdlEEv4LMDPIavbwRt6Ig6mxVGpsGbFSsHEcAnvH6Lnr8yuGjskl7C4p0BgNKYGI3GCz59efN5LPzGktzDnrq2fOLbbM7cQnpeYeMdbaOnbE3NT/ZEezYNC9hXXnjV520erFLV6z1e6RAyElnkplssUSVFso80p6ZGztuvnnzpt37vx1a8dG0kxDdQztsNt6mAiMYh5m/SxmCbMUxnEDs5E5mTmFOZs5h/kSczlzPfM15nbmDuYB5kHmCbIW6ueyrEi5ZO30jU+XYfoayBRw0ingzPfiiYRaP19boq64uzZQWwR92xMMetS9UjAoffb++9cLeQEMXkrC6l6SBrE7hJwARv30QHlRRGgTwFxbcdoFMNcKPxTAXCv8QABTn8ZaK3UjgxScVanoKweMVX9XeSQyeIJDlXf5iqDeKwjoMEF7gGa+qtX/Ve1p6ntCSagaxlgdYwJPm2CEe5iRGcJUAhycFAQ481EoQLc9p6w4c9rcPyggLZdD8IesxZVFMNdcs3RpfCgeH2KtdQXAmgWQs1rskpD6AJRaHCqsOmFVAV3Rp/4pPrhgMF6z35B2JJlmfabOZhbNsDWwFc0Q3B28XWfiN8rNK+PwdxaxzibWNK26b2hPvOaPqYNVpD1dMx0TXjZ6w4hPJHkRJ9N4AHll3hgCt1RMI+NBX/znJSEZx/Z8pNeS7gslslzz3AUNN3Bmfyzm44yN+fQ0jdguJkYsqCS2vRVsEU1C36LhsCM42xnzm81+Z0NabKCwU2uTBDAhwWSZHMDPIWYB7CRbD4TJ4P3ah6ZEVeoCiCI8dD5CVRWQW4HDGlzG1wFSQbGMCpAgWEsFwfCoX4h8GCFmJzVriMFOkhWKPUcgRGN743PPiZIkPgeFJiMsdTgPqVB9iOA1Z0Wi0chZBHKgNpLxOaiE4C7PQcFZHrFSHVPTV5V1mQH4OQDw8whm1b+xPukErgRkSIGugAB0hOz1EPQ3kR9ExSyXk5Rplm0wFAp+GAoGQ7cTX9ZkGjT5nMRSL7333pku34q7I/h4KPR40GTym4ZMTp950OzpY3QcnyULwQpQB9wSNIqsvygd3WI2jLweHhnhxdMY3rtkRnwJbYngX0ci5XgE/dOq2C6xWtWzzdZbBY/diPxYQLer17jPQCePkd7HP7dav2hTrOo5JjaKjaLbcpdoRiPqdRf40Unk8Rz0/1/ZL7M2Jga9vhB2kSMAWyTwqFQM4xJAo1JOg07wDh2INyaSBEShCSgP63AyiK8B8Mkqyvd1m/tOUTT880WHlbO5BdPHDsc/fiyGWDf6QmpJf9TrUQJNjQGvHGiIBxS3HB1Y3FZqGUqNLZ+XGmrpmpcaaGsbSKF33Tb1kZWANly/CVmsLuwS1bfNdu4Mk/n6E0x2J4fOt7lRa6x/SapUSKdiEdltt7vlSKytvVCCx8TU1kR2/LD2BW1tC9oPG89+P5wiFWv9oM1DMhYKrNgFk0dDR9sOtmy5ASR7s6UBFMKA2sSSsBfxIkqjTyLod5GICuPRra8sDeHSkLfyfWTxEKzLU/6v3qtGs6uKBrvDZsTcnBtGYl35AC9LxgJZUfh1iuQNQwUTlMAsjTbQqJC/bkQb5o4ZeWy2O4zr12fCoU6L0eYDOkCjJ9/T4UYKcNUcU5rpCnMq7km/g6+e/z311JsXLz4tkxnPZtPz5uH3CJ24WacTryd0Yjambqb5r49l16jb0RX1v/1hQxLed8YQjpM8XlgveSB2Dw4NyisJzYMGfJZbBOEWi2+6hT3r/NdsNtPxRp/xeJNNXz9vsruATvLA+s0yvcxc8pZkXVD0NkYQ3jxZHLKOLhN/nsTyGioB7YBWyDGjtlDYoldW0gjoBmUAYWbbhrVdPT1daze8X/FsW3vHmjV3/ODQxR2dnR2LD12XIvjvMmKlkl1di7q6ksc+2rskd/n1l+eW9D7KJuoKU8/omjuevGMNKfxDUktXamwpwb7BGiqNl8Cov0brDu/q6+s6fB0ZB0znTj9+gq4Nxk1WhZOuCmf+2Z2ob+dO9dmd+HFikxAdt3fwMWyIIfSRwHihRyYov9rdGgfGUn0pMA2kMfjVEPGnnu9U/Z2d6INOKI9o/66F/m2g/Yq8Iu5AsB0RVJmsLVwsoSJmZAdqsaNQyvELoNp+IQQCHt4kAG3DJpzq645UCNl/Wb6Z0HF44y8FE+8JBCDVqdX/Eh0/OruATvUYAZgCMdML61ZkAafAJaBhByGNF1lANVivDGF2HVmzvyHW5bmrbvzi4VLnCVd//YLFvNPGiRIyrfn69+67qN931G177hmU2ISWNeDp6bYsPP9r156Ydx164ULW6kHIa1+98xhf34UPPnrTOnH4kCsAKLK0v2/H/8WYoL8d8F5srhSVc6zCunNu5Mw50UX/3NaL3L3b/nFm27GGY5F4Av5xeesd38LXqCeisPo2+mp5K76K0cYL6tqGf0T9NsYP/ZigaykPGMks2PEZdy1x4axDL/6NlCs7juwAo2xXwCDv1CH8ow51bTqNbusoP67AHx45eJghPTFNWxYxKwFrOPZgbfrPplzZkYa/DmVUAfOTNIQ60gcMpDsgqAX+1Ybv1xGmKfuhvt3R2kAdRhmtb8MHHWCgfuqqa5V9Chh0m+ZOvG79a2hjYtjvXer3B2ctCL2yA1/W0VE+vUPBtypKed1+XVGZr1vxrw8+X6sUrLOOjv43Uq7ObMxmN2Y0G4nZDdmqgVAlAWz8Zua3GTDqlZqLth08TGEDtOUd/AiFX+2A1x4xQwgmIl4qlqScU2cdkB1J4wwAXMgBcqUBFx5204JCiB6AG0sTsxJgyjsSs+LxWQl8fHkHbKchfDzY5Q8dCW+yIY3u80WjvrflaFT+QrIDNSNvSnJYvK02P7rrNNM8m68d74ay6n1aHehQcIdTIfU+UhM6NJQ62iEb2y3yO6ihKyqr75OKUIMcnZdrCQbdzS6LIwAIiuLKiA2DLfrc+EBv/2LmyJliG4BqSp4chPIKAYu5bEk2KjECSCmLSYkVSBB24azMA0Tx6BxIduVBukAdSrgRNjlCJ+XnLip1SLFcd6Rfzm68eMlQRGoINjSlB6wtdj9q8Phc03TCt441WVhLOnTMrJOGHI2Nspy++MiFx4yG/K2BppLPEXSnkk6D6KS0+pPsn9hhoANbmFFmKbOa2cKczZzHfFnnDUpV3qDeF9Fq/2QKWm8omSRpcwq2fc3VYJNTIW6O1SAW4RxBDxDOEZ8r5eRcSZFyxdIALuQTScqj0NENmDIpVEjKSimb04JJpYC/oS6nbbtLXa71ID5eazuJ9RIOaVMTsW+wS5K9tZXY42QiqY+TCbA2eUjCPuZoXjV3ICbYJKvbYRUtTsEh++0mwWR0x3b4Mz9xc2bBarbZfHi33pfDlb6t9PWw1ru/kMJSWQQLDP4rWOoHUflteJz8jhxd9Ehr6yOPIITsXpvdb+Akn9uK8bGc1WlFqLNveBxZHOBDLRUe9n+zV7NuphHoygHA6I9iToIROAv6/2oK7WVAE+UoXWMiTkaNFK8vUhKasG2BCEElIleIQgcCEs4rRJxSAFOKhhGvdCDFjpTkIIpmKbpnR4Qa0tZmCkEuwsjzErookeTpmGQp7ueeNGoEY0V3ukMstCLX2k1Q+/IdhLLuaXnxRasLovFRFjd2WNUfxjJshOP6uHb4cajHsJDLGGxjNq6DW8ghQ8olWFgDNhgNBrNgD9idGzhufabTYrZK/y21/CTVaRGMJusVTll2qq8RGzWqnyIr6w5Il8IDulvV0ylPGJFXwOtaemY7reVvWNwsgl69EnKwWeUZLsHdy4FJcOwbvKGlxcC/wfrtraKBRayB48QWp8/Icm9wF3Ugg9FpM/cNHZHgDF5IflB2rnX4fI61Trk0i+71gNs9BbjX/ryscYDjJ/7HOVp1EqD4AIJBpCjkIAJSrcTGKCs6Vf4LxalT2F7+S7xQiGM72OVx1rz37+uak8nmi5PNzcmLiG88cl44fF5E/YO5QbjhBt5pt7C8cdUqs4FjE6m5qfInYIHBDrBG8/HyJ/F8Po4d8fxjo8+SSio/9eRwJBJeJrCmM8/iWN7mtBvHxnivhSF0Ww0NNMyMwD66BPaRmcIRSlx4ZQoziE1JjkRSAbqDzMka4CzVBg4uG9xqDkckKRI2z+XlBpmfWx+8I4LWAbF7a6TiTkNTvWi3mhpjDWab3WqzWe02c0Os0WS1W0TRchLhYVyui7V0vPhb+CMmwHRT+QppU4UhS1sU1aipHCxc2BplnVurRKdPVLTEXgRUl+oMmcdNdrPZbho3h2IhU/kDLYT9ptArrqAZ5bWw+jNzUAkRRzSDgejQr6EsjmjJ5d+R0uY5WmiOOYQ/ctrNdviJLpdIPXYgT5x2k90FP2fVo75RTa4W0ObCm+wL+62X/8AqYZX0ovb2RWnVmF6YBoPU8r7m7u5mjMAuH8aye8vrqrN+5nOb0fnud+uySBNQyRITJTiiU0HkNyW++tVMBv8+my3fq2FfqE3DyVirLre8KKNuz2TQFZmKS+nUff9gf4g/h/lBOBtkMw4hEScmCEad/ycjuvMOaGLMaKHiI1wu7OYspsuNHGdzuvhxT0AaF4Ie4XLBrl4keswOl8OMnzE73HYBKD38OcL85bwLvJxxsXopZYKesVjwBIUvWVCZ9dghqxnMbbdp7jM2IPn0uQz9skvnNwUmYc0cFQ/Gk1wWQLjz6uvQyuuuU3ddx8rh0lhSPQWhr0jNYSdr3QGRkLjjOXV7cqwURiuQM9wsoSu0vniT/SHMlQ5thtRzJAoEh9DwCcrDo+w7KpyD+QCIBU8glAydhzoQleUWccPWjRoTYePvN6zr6vaIJ5PWzjcX84ce/v1FC1rbjJmO8SVrREkyip4dNqvQYLvLInomMSC2UTJ4zYJ5zS3WfHbxoY+PL2pPe4Keb3vE3xU5f6OV62fdls8Ja5j20ZvsL6ENPiYGex/j1tCl3CR8yY+SVPYM45igCFF1T5DIsPej6tqGZj/f1Ywsn6kGbb6jf8Bk3wVzvQs/3d0rerYLZJiE7fCO27UR2+5BH6lXx/OjlblO5v7HaOvn+fjKlfG8utkjbiezQthOugPKwwTZTl9fn/tP6GNMaJkgmftTz/l4ZVU4dHLkbG3yq/5sFr8PC+K0yZN+h7YatPH+jH2WRfCULMPEc0XC/krE7MhJuC6SMwm2B5ATbtLML2q4CK9gr9HCXy54AsK4FPAsFgJk0qtftXsEu5vMeegSh437CzZdTpLG0emEh69eNk5KXC7s9YjPaH13662EF/mM1UPZRu4q/LIxMpMGLGyQmQ+Y2HJmBXM0czHzFeZmZifzbeY7zKPMHuZZghdTyTgVZ7QgDT8rFtiKoENPqTBfiaCD7HAE/edqAVgdhVuqCgFgA2Q1EiKZINxsoDQ0RDpLNosk2RpiJJZsHNB9OvkxCKsgEZ+ZgJ69YkKejl8vb3ba8DLRE5uG7XurH630+9VdfvSEf6MfzEa/z+dvCieSIZffaUeszcL7XOFEIuzy2Z1Gg9Pml0yikectAB1s1tstViv18Tb1Xv+9Pt+9/lobDX1UeexHH1HtAby7Tiqjs5ErYpkTfX7yeL8v69/o8230q+c297XYLTaErbzB3tzfDMCJM4hmR1pgjZyJNyO7R7R5bYLNYhDm++FvPik9j1gwBywaP4uNMyEmzKSYNqYL4PcocxvzFvM+83FFm2R/vR19kdejKVP2fLxIkG/Cf4e5P0CHkBKSgCOEkCzB7ieJECPCpIJ8ZOhhCsCORwdc2+hg/BPETRYS+VJhAJF6iL5USeYlL2wmfIYniyhDZRsSVXAgG2umVCA7ailTIhznDLw3lE5m9M1WJhOOTLIqjxd/u4VwwBV1G8GBdu/WMCNnBC0EfOmhSOSX1KwlBm2xBgVA6C02i9GAhaC1WbRyCLts2C5hlsWSHdtcGHFWsdkWtCCOs9qsQBhYgrYEyWh0OScyOl1GknG4yZAIIIxRIGGIIiMvJ2WeVwzxIIkLxg2K0SQlvTxfDLe19be1hQRRlESRbWoeafnxj5UsvLZDycwiqNwn0Iz7ibjvAYKiUetynoXXNZhMBgM2s0aZD9kxZ7R5MJZE1hmFt/FghCQbZ8T2EC/zBnhnkptDgoH3ktyOINBv8LYOxQGvDv6gnbWHTCEPslgDKQOy+mzI0Bq0WpAbGTmnk+PdlRS/FUigAEkxcnY7ZxxtGyDinawo2e2SSPZjij9+UI+LIH3XjdZOszq+FYq//DKSXn5ZPUzBL8Vi5bRScfE3y4/jkfLjMUWJ4S8psZjCVHhiL+EfMWZdnwSeQYhMBYjLeNWH6h6xabMUfjmM2jZ5wVGDMdYUi+39PIYTYa96NdriDe8EsvgT7JDC8DT4q8LHH+qyh9JM5Q5UrFginBRdHTBfD9tLPT2ldUTMsHbthJhBfU4ICFvfJqjQPwSy4c9AsKA+LAhb3yHI0P8KUCJQkelo70xwWCKFmhn2ylK2hgWBDWSaBoWrGOgE7plX7753vOXJlvF7t85h50yDqJ6v9m3dip5V//Dcc5RX8An7IDtEZfYtTCtThB4dZtYypzHnz0xmTzBsd63EOVobYOs5d7AL5QoKRbvyiZwGZoqlnERBk+KlzK8EX9k5WJdOmX4c6Wn3+dp7IthZ/jiRh63EqdGmlr2fPU+mH0qTqfhxpht2sVAp4LFG8g67/Zc3CJl2Z6j0fHtfvl1OWnE8nDa3W5fnBnoKjbFodzTKWqB6VQHC19fWG0ZvhXvb/KOFuKoQAhi9FS+cN4oGlM2x2GZFs9WLB3PxREPOZ/XGXc4Wb4s/EnZFF+V6V3Z73FxbX9thq8dGFyeaepVYb5zyYmDCnssK+/F15xJJax13Wp5ZAFGaFnkJPWvRN/ASUXTEC0OfhsOfhgZDu8Ph3aE5oZPC4ZNCszXdQHWnAWgsFrk5syxzf/+nwWMxWM3cyehM9Yv4mVA4HNpNFHYervrwoSZBMJWXWmWzYMHHlm8UBIw5GTaZ/up8/r4+n49mrpyh/gpdqSImoAKwDIqI8FKOcqQAJ2cJoCJMO0Kwy2Q2DCKegCUijid6AEV3lsrdwU+WMVQmeaFcBachRA5BcGDmBDRexgF5Gm83yRKLjKID6EvBZrVYsZErWBzYaR0Z4tsDBqVgYq2yxPM2p0k09A1bYFe2LrGzbq+v0+yENpnsRpvbnO4wY+S2GR3meJOZxmTaTBi5pll+A43+pMkuIJNosvq8nhZekpBo4awudW8wgTCbjlklo0WyeByWzxASBc7qRN3CrEBEfcVsamuzsQi5Gs3FksliFF2s2Nmpx/TkaAzDuHT9iui08qLjmO06BXZA/JGdEjLUrfe6SVyqW/x1eEptypYoOheA/oVRvCpyXjR6XmRfBJ0bjaoXRirubwlYLf8IkiDDrSRwa/SuSOSuKKJqxPjZiuav+pluE0WBrZE9ETDqjSTuyGoAko6MPhqJPBrV5+4n7E2shXHoekp07hKZdA30INsV1fSogSB1rCJx857jj9/z2uqV+WIxv3L1CasWLmhrb29bsHB3xaO+F0Wz4dWehG3m+D2v7tlcLKxY/caRKwvFWe1t8xftXji/LZ1um79w96L5be3qK+QtJ3SQydqqjF+8Rj+IqXuLOhwxXrP6uChh5NJ1h6pyZxiBXG0AHRVDwVhMfTf2WYzlAfD+bwy/A/NVfYbM3Lzq7IiZUD9Qe+8R0HslsdgE2WivIl5U/q0+x6OjapOSY/NxtJVUVqmUuEyFf/O9uvZkKXU+o5bI2haibSA5GqDat1RfbIOCAoqivqd8pmgNUPC7ZEd/Fpb934AgC3o85+mknOfAr36/R1TfpQyMIFU3f1ejf0lI13N4g71Lf/cA4E3dk6WNk0VVChFUA3EZrXC7YWsj2AbZs3YUfloAg+8hIvnnifX973y7/BbGl/FmM18+3cp9zWD4msHEJgrqsfk8urEAaNCxUjgsoRuJHval6Izyuyw7TzDGefM8nmNPZC3sCSzWZaNP4if20yebGZ4xSdH2gH42PBWfGCBy+cF8Af7yL9c5+PFWfTDARX3gjgBwfZYC1754YbCgfl4oIFNhskt55J/iP1IeAtGlIPhkEOgowv3LUH2TGt0KrupjZxiH1s5r60+l+tvQFfPABv/n00bgp0KUMAhrjnor0aFKpcKaA0GNbNAcpooP147JDOWANRyx6foc/Rr6LD7jftbh9kswnx2A7Y0xmyj2rInEiN5Wnu59xsrmBwutWNn+0ojoa1cyFkqUqV6bpyhPk45T2zas27Jl3Ybfb1y7devajVsXXlFolj0eublwxU3g9UqSF7yoKHr0TAhLja6adI84dRKbaPAfcdwR/gbdGW2QXZIrBD+5ocarPuUR81quPGdzYk9gIkfQ8+HBEjWdoH2fwt5shZ40E14rkO9I5pMlfMYDatsD+Nj7l9+/nPhT38XHPHDE/UdU6ZW7YJW2AuZP6BXCYFRyysS496MBTKZGQaqfG3E54+WRMZlJlFARvWlzIZcNPUeIUfSJkkGERW4iQgZHC1Exa8HHyLKsEktGN3nxp8jd4NLo1ozyY5PdZHaY8I91eQQhYkU9O6CTN8k6rrob/+GAeEM9nuCcMlBHTpZqoc3NEfw6gPSWSNVFCwA6PhxBv4ggHnz/G3mWAvE/UNB/IqGw0VgFzF8cUT+HEqbIpL0uxaSpjvFSgsvMZH0hhVeAnFIAZ+SUQk4TYfIwV3kqFqbCygJMeIWQKCmgV7KcJnYvUXaZrBBuMVkiHooa5IwHXaOq/zBHdklxST4QCCH7cSe3Oi0Wo8XpEuyNdld3l91kt1usPrNfzHbZkaMhme2KBFLdjXbUyZptfquXt0cyNp7rME6zxNUX0u++u2zFimXv+uwtVmhKY7PDx7FH9RtMkpM3pIwhc+5032BXbySYkLyixW4RpIUJp8kVp/PzdXY77AkpoPyWUwkC+R+k5zM0hQtArpOUT96BnITH5CUrmmgUEwQeUlnKgyLrnHfSjCzsAYS9RNhRGnspYeRxyKW0DcxpirvMFsSJzoY1D7OiuHud3ykaEbKanNHmQwY641ajw2TpnjM014IsYfOhN3710LQdWeYOzelpXmawcrIBGU4zWA0vgevlrAY24mzyK1YeIYtJPdXg9gVDJ8/DBsP8k0NBn8eArjAJCCHeqjQ0W43LhEzAZ0Tqd0MJ4cjhgWWdLQiNI84fyKhfOBYqdEPFV3HI8AdwoaxB08WD+bYHzwEYxLjTsFS9shlpyq4INrsLzEbO6ZVNaDlabvJ6HUajSb3cpljRP01e2WHkTepdkGA0OrxekmDTeeRQ5/dxGLAjASAbgWoLCUzjFXfOrc1NZ+3cFFHd5DzI3IxVJyaynSLNPmHu8aPxRBId+6VrSz4R6B1ZtplDTkleMN9t9XgsVmvMNTzfjTbHCrPmp5p6FigeNGgUnCPNrbNcZn7AhJoHUFp9aetpp21F6Yi76LTwpnjea/cYDJcs5oSAbOZ6+BbL8K3hw8fGU/FsICBZ3aVjcl6rnNFh4Jv4d4yPaWd66PmpLAUKHmOFX6NBHYpzi9gT0lSJ8YTyxoSuaM3BK5w/bMlYf/fwSPfA2OI7Fo8NdI8Md/ePLTlscHb/sX39x/XNPntW/3H9fcf2zx6ksr0jF6bbF6UbyUHGIrHw75oiXYWzjj2z2BVVlGhX8cxjzyp0RZpGGxuWHbXsqCMaAoGGI8CzrKFxKy1NrVG9NFh6234E+3oAMJIxbeUQNqtGu0KTZGihojURSNgw0hIJxwPyUUYvtFzrDsnDJ4kiOSKbC3jjxaysSfGSgDuieHZkGTRn1kBXbymb6Zk9d+zQxWP9PSNrf5VxSdAoX6vY6RuOty9qD3/p8MXz+npmpzON0BGzh1ye3k51rxAQ8Bm6cK98mYCvyLadUUhthFbKUiKbbgg2RaEzcoM7Du8UW31QoeTKBMLQcYnhv9N+yvfP7Uwn20h34B6bTxDKlxpdLhvH8fh0IajLqL9PxzkJ8OJgo0xU6Kvn52oHGEv6mPb0w5gumQtjOrunb97iw2MDHQ3aGCxqr4xgw5Qj+GhDx0AsfYABq667K3Bax+e1M29MnZ6cMqEOqysXSTl0oLibMsdlwFxJjm8dRw5rrZg3D68inuNIFAm1Zz7PgAl6PicxYA29iRpqQ1U94wfws4yd6hFqQkrYT7UDpFwVdt3gd33ssi5nWbTM5d/7kd+Fn3L50d9ud/lty7Hf1aeoVzkbGpxoK0NgJOAppx7gfMnMcdADix7qaOC3NbxDHdBV3J9WB6h6w9OAoqilCJoPUH13JPJ8NPo8wG4/EPYfTKcWcTJBAR7UGOsaQVzR5f1tdcyisJekYTeZxyxi1jAbJulGRg8wVu4ptSJnOtpXdqxPp9d3oDvcjY3uDcQ6/JBDvgoxEK/+Kb0hDeZiEr3e09joOeyQQ3CBeNbrOdExmpppwP0hifnQHej/GTLrKqhnaC6Nphn6foZMtSEdb/8O5beFofW9Bx5HFKUs1SihcpJUiterL7RSJYWGWJtG/qphzUUnqK9QGrgNaOaNbxDvG5QOPl+9hcavp6H9OVvlnxESO+h53BOQqAwYPJq2QIWP8QwboXMwV6PFcyJzzkz5hZMHov6QF1c7Nes0lOPTlGSbDoK0nRDt6IjujKbT0Z07TTabaafZZlMjynKlatBbkY6OyE6aj6SaST42Qnrkb3r3CDrj72+U8SfE81vS0QIpVYime6zmAqm4YLZaiQKw+jmx59A0mqtHSyO5dPrhJZ3XOjyznmMlgtvS00lOGHByXl1SKFOL8k9ybG6CQUr6oY5B+sh/2z1WE2cwS2478Zo5lpfd0/A1y09brTxnMSmoVXFbbIC0WnhFfU1xVc6LfMo+q991QE6KH0rbgWfEMZbSiHCGAYZAEwpFrzyA47oWU52AkU2Ee9p9U8lItg4P9Ha0XHnzOYHIvKal6ebk/Bv6/evPV99vaPP72xqSXV1Jm9vd4HazVn9bT0RNaD2D3gSLyAQSFNd+M1541+9rO2F4jrhu3hFdgaB1jivaMXx013UNbbk2f9eirkFSR4NbPyPztRq+V3BaLYihws4CGDSuuWp8dBQ/ni9/ks9jR77ibt77MMNUzuDsqK9/ak34JNT/UJ5Um0dvatVfMWXt2n5zDdRNZHky00jovwqni0gNNW5XRXPjrzsJL2snenwn8agS1LsTfpeFvepKb5iMQtiLdnnDO/c+zC4g9RM6+j32QdgbgnQvowx/Po2pSDpENBPlyikXimiTaMCNSjQJ8FESk0QdypEblgYyzr45Iw3bQl6pd/Hi4KqOVaktpywNBlvQttZt2w4PRVq312TbHpSk3vHx0KoO9JoSNWebO8PNZtm/Pbh4cY8khY7sOLI1GDp8y5ZWtC0VCR++bVvL9rps44t7PR7IVoXb30ffrDkfVIGMJzfjvc3NZUMzuo0qhLlof/6cjpWNEaE/A1TaVmK6mFHmEHrHxHqAZOS8PeyNbqWKIQHSyx0khP5/yPnSuBRvjUvUQrvqAou9TakmL7XK3/xPZsOvS3q0pJvJXvW6//scOv73C/SLunH4F/r75albUxs4f9o3qeBot9I7NJphT1zIHMOcxnyZuUnbGYneD5444NyL+EkgTInXHoOu3jxSn2n/mvCBa0LT1nQj0ZEmejP36cej70f3Ec2Z+ymG8E39bpj7tGPX991H1KGIpS6qK0c89QX1ApPLsVaiq3N/tYx2hJqWuV+/yuN+eAnyHvVJ6k6av6L6Q2uoLamXgOeR8jUpjHYnz5tA0xHdAoXpoOcal9J1eTbzJRiZO5mHptA3cPPaoWCqhpNM2JGuFg8Z4oRDokUnS4qkJ0ChuCLp4kySS9FiaYpb06qXpRykcCSQK1ApJ/nxUk4vE9VYMjE9NwD8JF+tfrDqQi4crh6p/H1F6aFkQaLHLWKbR7IjS++llnjUxHX2OFjJimys1WNw9HRyfKzpxR+wPCvmOqzcoKWsPmkd4GzpnAhxCD2JMMfa5syxsRx+yNqREw1G9gfIMqheDxHoScxjSHyeG7BCRqPBWuxEC8kzbaz2TI/bk0ze7+jOGOAxAmuVfmSANEtTjIf3OJCqRfk8xBYTigHFE10GZPKzNpeBi3s4U2vabE63mjhPwmBw2V5w5bJOg7PRxI8fZTQeNc6bGiGYzbncrc1uJJgxuEgmkb72di+/cXwWSXCk223YbJ7HL9po8qbbZdYVrHkYi/jTOE+cg+pZ8ihTImvWH6/pPL7JngzzpnKXCqFR9rsjhdx7g6ZknbIlcq6k/BGxMbjwezCHo7lc+be5issmIEcTzfF/5GhXuYn15LLZXNmfzeWy2nvcyi5g1/1fvYfdryh+NUJs9Ds1gn5Xfq+I/lQsqp5ixWXXKf69e0gOdq5f6du7h724CH977yF2BX94muKsccBZ11dlrLp2KnmNQaSf6qHqmOQFeYWSXiUd5lcUAzDFDotxgstXTi4ABkIE/b2Y4sJG9DVNbvcWECJEQ9lEtpG3NOXNvf8rep7mnYRbYXzmXqoIuI+zOSVWIvGaFvPT90A88tghweFhE1TT+S26PzHkuOreh4HIoeF9EMZoxCPe+zTPcTaXy/g0OfvqwR4rYkTPs3UJViNN2MeQzYWcuX2W/RXbT3F4b04mqgtSjnKGqFISUdmVclk9VLmxjJc8mp6eJkIMwk4AbSdYEG5C6GzOyC//o4273mC4nrP9cTlmsYE92yAYIMG0/I8YsWbDDo7bYbT94QiTkTubFdhudL3R+sflPIS0fFABIvm0Ov6ESCUsYidSoXoW6brVT1M+8RiVYsCA1Usx8mTgpKRci9PjHEcuc6gZywlFXFTMot+LLo8NvVwhvgToeTNCFdKMqOXgbwmCevrEwFFxLrpMCLAJJDW6UYUKeVmAkmanGb9cwf4JOSAIQSjtoGPktu3TtHXvgeKMxtvdp7IP4X8ABGYqqGaU7u+EfKTEI1AdUZkqVZIhKSVKKA9j4oD+PRmduWzenNY2X8Q3eOIs9fITBGxmrVHLfTaMbfhPJo6zSxJ/clvrnHnL3iHnjt6ZdeLg8ULIwlks0By3TeObGRi8G/BsG+PUV2q0skaJbhW7ya/s/VTx4+vKJ+Dr9r7G/nDvEN6t+Mt7sQFWntrV2qfJmFT22yxmQgC1hrQzIgRpqODsIgB9QKCVqpRaGzaiWSQ7ISFKsziLJXIShIpJbmk+RPbNSX6bSJsejOSsg9Zc5Lsk8J3vCHar2fCd7naIQfd9m4/kLS35hziz1c7ipnC4Kd9U/mtTHidCoQTON2GxKT9gt5T/arZjBYchDlLKb0dYbDdj0WLX94onYV65AB9LT2j0SUoxjcmLD2BOIuQrjIamo1HIeeitNzkRxwuE0IXRwvI2osQ3ig45++ZvnNc0P3LaTeqntz7gDaFvbSWa+yOHnLXzG+c2LYB4ZIH4sAZfti255qiEsn5s/PRZy+4aCXn3lAUCG7dCdDy2Ye74abOX3TUa9u6h+ry6Xj5PNdqJvlw7k2EKTDdgb7MYpkReEl6HiJW0q0FyhOrWJCg8grSS/ovrv+ik3/ODmxtQ36bTtqxf1z9gY0dZ5Jw798StF6r7Rskfu2C0vGETioHZrNmnrxgtbNo5ypYKq448ZdMm8bzNx/YNsOiIzZv3bNr02KZNhc2bx0erfxWa5S38EuMleC9ZhXIIi5gn+n3QoQPYTZTnK1rzWaJNn8SGgZMXO3tW5w3d63vUYHZ5ty02N8MvOutVS8hyRqsQlizDlrBwrcWCf5k7ss846+jtG3rZ9OKjVg/b5mybrf7YArks3hDkslwrhC1Vmej3KZ4VZAanwqkSFcIeMBwpR6UcXqlyBphsnZULWBLYs40McncXlQ4Tz9qNJzl9vpjfZ5rX0lz0+vNtacngLok2VLRZvG2WhkUHRDC+i+QmUgzdlm4dywZjnc1Bv9GdCQfCDkfA63YnbUq6f+7EOYendJ5GETDFMcAVZ8TV2F8XNU6cyjkdCgLqeFtsjGhATilkHIY9bu1ackDhNCFgOU1ALUKARARJRBB+alm5Kha7SpmOtaEeJZBynoBwmkU4XQg8XB/s11Vw9TPeV7FRqjda0qUfOl8KH+SuSk7T2/NorSZtlclMo9JU/eaSWBJ2W0A4qV7jAJLx5y0jzXJLKaQ6QqUWuXmkBX2iOnQheDarniwIc+YI7kbzWjOYxs/qg0cBQMdF7G2gto2NEH61I1RsleXWYoiKwYcqMnJS3+tCgzB3rrnRLawRaB2TwsciLNnUC2wO1mtD50HdOp/zeZ0/V+G1LwGc5wvMJXV3Rk5JW8lTCs1nUnpG1Ntt2r2R3wsQJ/C975GDzd9zSNIVMTRXUdQ9sQ/J2KpnT5EN3R/sDIL5nu5oCWCxCRLUs4N3VHJUCq0lmrl3xNRHYzE0FlNn6Tn0/CNaxST3yJQpE+cftT0rrcG2/XYtIhu0A6wIkWOObBp1AJrB7q/wPdVGNie/qsfIdXYUbWMZ9Nvk7ASrDCYyovvkp4Ww0HqGJeSlG9fwgTe4sczSfNZmO3T9EG6evWikjeM6hg9Tn7JYoKRE98VhS0ij999kX6U8NQLrvUwDQOsYk4AWOaMAKaJOpcDKfFKBXxx+uQJYTvi5ndqVmewr5dWjuOG4L5/R8s1NJ7V8Dd1wc8uO6N0t5+9s+QJbXo3Xlt/HDfic8up7jsUNI6r59JbbTmy5PgOZ/gSZkA2yofmQ7/bR8vuV/etGdjalFWQmzCSJXrqbSB61PkvSJcqjEirJdpbcsZt0k0NC4Mq6+4Ej5cBH2O3HONrs5bsdji+P46HF5R9t6Tyl2LVpU1fu5E1/jA0OxkLDg3/2tbX5pI421monOdugCCnZZk8tLv9gMTrrlMwpV27q7j5uw2A3XjsYiw32JmIb2mRfW0ujT5fBfxWfS05WucnA1gjg4S23WJus/4PurIjfe62KTf3Yih63Wj9Fd5o5jsree2025LSSowoUlv8PeyvLVO+K1bicYf2WKDIitMuTRLmn5gfj04G0X7KSh71l76f4BXL1zOn3xO7J7YrdGd0ZuyVxi7Lzyjtjd155S+yWL96p7MKZ8jU4o4roryyz91PWOljeegdk/8Eu5c5f7lRueQGyqY0QaAJPBFy8CvKfMqiK5H2ddecH9j8zfiRzHLMJ9ptTmQtnfi52aq39OpVeogNY8fNTJZTqoFX0YFpri8mJ8ueJLiZqp3vO5bF5MTDfP5DzPWVMAYP/QrRf4rq06te69kucYP3o11RLvz9G9PN1o46R6snv3DqPvga/s18/LvtP9BpLT45Wzlv3InpxB2s9iCZ6eYnWF0QltY28p/cok8HstqgPadRsuVXwBP/Vti8+mve6LYhK4VKAEzBVHdzvQrtl/Ra0UZg1WyawlQmYvf8JD3e0ALO8EEWZEj0XVoMgyrmsvH8sISoOlLfIesLaQY6wGq/40K+rbcnnz9j7ESuTX/n1Pg6xLGc3dnRyDoHr43iDkZthHJsgFZc/qTxCIwTrpFWqOqJ+bwSV+g02zsBxnZ2cxc71G1C5PoIr93FWI2s0dnQYLXYjPAvpeh+34tNh1wgzbUQjGFXO1OtH7aEHqa5KRd4an1qP5a7hrbNnbx1WXx/eMgyG3G+cOTwDBrVkiat+a4QkXEpTacpGYuHTZm/9IikJ1lDm8KNIHFhDB4ytvWs8pZ9CPIQ5lDmMWcusY05gtjPnMpcR7aP6caeXXO83PXpZp9YUQkjWnUyZ+oxiXQCRm1+I2E67AYb0SNWHbn6uejpU/Kh6fHPi/OhzF0VM5GIA98rIiZEDGvV2FFV/S6hr4mp3EFR9+KceceIA6qz6urX7pMs3QwHIjGeL7gs1zcOKdRFVSZwz5G50XTSL3k9wwZDJ7hLNNfcoegGekztXlk1w8Q92epevWSdpJGKvtlC4Ax8Hbjn4edo7NvDYyJr9poULjXaHxWAwbuAtnAWhA53N1fjrU52F/ekG3ms2mKAmjjNY7Q5ugwmhPZPP0066x3SE2cgcxZwC+8o5MKMun+GeOunouqghsUqVNeimJIN+o4FOItGtlWJ3pZlNuoPf7LFGdGW1mZKlswtQP7eYca8xmxXFaDDYHE6johAaQFEIZQF2w4bI7ZFJZhrNlsUuMUM1diuPcjW6M6JLfUEgNRqdDivHGSce4Abb/Csy7d4g1qn0OpCJ+5wdTBRwR+1U8YHOr0y+dbHuJsIqyMLM5j2bN+95dfUKcoplxerjV9y4YsWNDy2cT06wzF+4MhNsDoJxkoez1s17Xnl0M8n22uoVheKs5V//7o0rSLaHSf5bpWCwJRjcql37X5X5P1l3Z/PMoWwdPhE5yNHH8jhr2vv5hbGHY2AItE0R8pZqyVLyNp+okLeJ/FWj6rv0tKrGf/ipjgcUZ6iNQqTUPD0/TbVAw4htP8iLnWIOStisviFEhS8asdHuchpPmEaHYqeAXQGLeqcVWe/l3U4LNpq+rNOXB8b91szszYmc3j3D3ZleGCwinZD0HhSXUzeNjp4feyY2yaj/6Dca+zmbhecttmmanNr7IV5AEKCdVQsd0290GfsNLGcxnskLHK7wi3ZDHwSBAtxUoap1prISj5EhKZaIajLRqSRnhlhRkxGkEcE+9O02hYxJJUZVhw7y+YaoTlBjgIDoiUBH4O14iS01q2fYxBtcNpsruAi2nmarpREZ7bzg4rpMfpHfgbbxbje/D7M44EPnExq4fDWxYzGNtMVbgp0BRzAp/QYvgl336a7kl1J9Jtsd7lzeHWQb0Y+T3ewokCn/xbMmvmBixSh/i998gdmPUPOvzdI6r/3PhCr+M6GXO4N/1gj1P0vJoGNk0j3vlXtuZ7zayH9c/0bGDO6NpTfRtMzaM2uaHe8fQ+cO/UYdJhdvoyf0u18q94NPfrspcM8SRUAUciNctDDNnd5frF4LPO113a9qFwqTq4Nn6WfuqF7oT2Zy9mHKKyXrAnXyte1R/Fo0Wm6NRi+JRC6JopbIFyNgwL2ERJXvq6Tjn9DTjK/XfttEfYPgHTrt8qIuYySjXGJ6mfnaN3Imy/dgBz1AHNrvsJqU2/+bJJDvXXLmTKUfBUFB9X+Q7W4a0UMjHlFXol2ojfgvIdapxxyjfXrkbXpSzbEPyHW0IQRhmj3sDY3sY3mS7g2FSDg8ug+N1IfPr89OhkOk7f2BTrPUU7xHMquZzczxzOkzo2Dq9VmnDLB1qh7yQUJsJNLT5vO19UTKf6n46ig7dWsMuRRF/XNssrupIPqCPpFahSn8MyBg7iBw7JaJPbNBJGUDflH03yMSe7JXl1GTO38leg5pEHrycIaJV88c9aOcVMFM2bq7SagP9g6iVQhTppCDn0ysXEHhciXiU/gkTSkRf4HdVdn0R7XXXTGx75MrhcRl+fyyvK+70H0nauhPsNlV4dCqLPveVSt3BDVIEQySlgbxVyb8JEV9cenSt1avfiv13e+m3nrkkbe++c23Hkm+1foQzBe5Zg+MA40zcd/OMcxWZhtzHnM+cwVzzQHu3tFuhKqinkQyHdWUZyWCNRE40YFQlp65KGgTgMAMgCo18mvtGq147Xwq1J1pndm3DYiaXrIO+akNZGqRN3KV2QTLpoGQPEdTqgQwSbyEBt2NbgiU7z9I2tWVS9orLurfH7V9c9asjsiaaHRNJBf5UYSYiG6zVqjnaI1kusTqwogESf00sPfDg6U+Sio4vnrZ3XFVy6u+rtCvKBiJDnikecIwzKRvgdTqth/+b2i3c1NiQhN07sFB4scR1AAd934ENWu7u2avorj+dBerk/Y9R3uA0pay+pzWWain8p0EfA20swZ7rnx9im5F4OMVDdfXMRhNVaxOS//ssXPmzTtnbP78rrVdYOZvmF9aXwIzf76esKNyEg9fM3bOdeeMDXWtO2Vd15Du0KhPtNsIzTUwXNPB72XmwEpbWcHJaN9rX8fSWQh83YWv+gYdrQOidQGZ6JTKJbmULCX5kiIn+TCuDcmVz5Ft3Eig+cbn1NcpVK/5MFQFvGpmdGhI/WnQ7Q4Gmq1NxiZOsTafWB/EdwM+pu7SvkKGVgJOQLCIXZUPj610xwP28hXalwjIMGXLC1CHpChSkI85k0lnjA/WhSr6L49V78efSsI53e34tZwi14SEs+LZuobcVvPkYdptNYetm3vGnDlnXE2sOfmVhcLKTcSawZU1K+accQ0pBdZoftVxq/L5lZtX5pnabxEQGWczUJsz+iIdwSXjOi6ZTJIFQARu+5HdVw6h7MQngZJeIpDbb4kM7f0D60WEJ1g9C7IL/1U/U1Cis28V5WNtAoxg27/Ac5h0wEM6QNz+pwik3MR5cnnijLnpYHfzXEPQnMcIcvPQffdRh1j33X03WlAbuk7/jNtDBfIFtrawxvddqdOyu3S+70pKy+6KF0ph72aCb232hnvWnhz2biLVbCKBG2sDqKR90c2rOfoZ5l+xf2dT+plDel1kuKJlHdY+NUAYUtrHVzRql94JRn52qopP9GEwIbdwMlEcxMk0SuLDHKZ1nGR7zS6bectNZhOOY4svJP7A0mB9Ugz5LBA2CV+38GbZ/ppVMq4ztxqWiJ2h3Rd53CwKf9Nf9JtvD3N2F3/RI41pkY3wzqesdhzG7mDQcr3Zb3vFHnBh/igeDFDJ9ldsfvP1lmDQDVns1qc84uo7GhWu4Xx3vtG8e6kNWwxLdzcWPPz5DYawr8IDf4f9gG0B7OcIOl+2MmcxFzMMF0sqiWT1v0RuFq9840Xy0mPBCV4kbQZfzlsiBzDJ2s3J3hJducmCXpQe05S1+9hkLwtrt5jGxpLHCysYpgl4YC2TmVProTMIm+ISm8k0xwM+JzvbbEo2XX7EmtXHrTyk0+/C/tH28VQy6BU4TkCmptsM24JGk+AMDwCIcge8ja5Ot83b2j9/2aJFc7eEFKOx2+7xhqLNtwdTgMW1hnpCLSEwN8APhVLBuzU3tDTcEgy2BkMGY6M35g94jEedsH7V0nMDYbtzrGtpe87IXjOagrnNea0Bi6/dvmjMPSxAzXl3M4dZxJudnSehZHJ+Z69obfAdMzx/yeoVbtkTcMmoF5oeaoXfF4H2hmcEBz2hEDiziRMK3QwOPLtC1z+p8zZm+l0WyvrTlbU0ye7BOUTvC0Hh8cd1Tb9XIPCqMA1X4l1BeOIJcl7S5eRfEQQoU9ENJvgzkdoqNV89XAN45Y3MN5mHK++v0asHutNv5pc2szLRdCEbTyknSyEqxydHsmVeSepXNNJ5RrUpIYtXO3RKJie9308/W+qh4CZfmjglUwojkl/i9e+kFkp0+6q2P66Lms4kfLUj629+vs4o2BcHjHEOGb2c8SuRNOISRski2q2uqNfqTi1McwkOG0ySzSQarVYpZPU2f5CSQyF5GbFSnoaGFr//Sm42F+e4ZsMIcehQEBqTPLxCIGiny0afrrsu+gLu4gZHQ6vCcZxBEi22SzguFuU4URDsvMHECfaueFPEyFmMZsxZedbIGniTPRxoQr7A8UGfL3h8wNcW6YuASbDbtnDckxw+dRtxavj3Fcp6huesOGfOKUuKE4gecuLKSWgggHxAGPGEOCocHHX8eddr1/687wj4odMe2A5/06CLx6g59ELmevVva2LXI2FNrEtt6rsX9Z/Vx1T5rbfVwOrJN45MAa3NSEYsks0YHKt+otMVLLV6yZHOSR+/e6S9PH8heiCtjiMrcRZPB77L2/DudHk+mo8ehNzqp+iBdnUxpe0n5CW1d1MdxWxnvsBcwFzIXDUzCcoM7z91V3h6/1ZV00leprjJNKtzoGZcShPK7KBCGXB1htYOUgKsw7XrSaFeLTegrO2NOypV7yBoam3uynWmMDc8M+rvq5mbmG8wdzF3M7v/3/f9lJoFtTWh2s8oOf+DI6Tuqhw0QSsJ5q/RAR51p/86P5jf+Ef9YMZJd5bvJffjhfYQ858crxWV8WrWHoaYkPr7YBA1gkM+yFfROdT0Fzw131icKW1R913Aic5GWWyYlra4nvCbPozdrii3x2ZAURwd+zwG5nNdYZDbj2bv+TdodXlmFLnaXaHIX6AXy8MWRXY0jRRBf4Ydrm6HuoCQdN01hDcz+fsDFR7DwhneMFPHA6rjCdNrDqEgPcUYmuYTqh9H0DnQjIsiEXJ1XQTzVtMSo2DAhiUGq4WfBlSo+wjFfjYhWtWrl5isvMUK5bBBoDTdX9kXWcLlJndpDdS2KsmTowYEYUnWtY3eSFAi6uEHaCO7NFqKgvnJoD3lmP1cpBjFka4oXlne5Q2GpJ+7xJ4Bi934shQKqSaq9KO+HGNt0a6o2gwWGrCz4qxwPoJ+C6FDwpLaLIVt/f0WHJbQG96QqmoXzE7gX+FJfJ9TmXOZS5lrmPv1lvjRfwQB03At7bofj3ZJh363lYZteQEH1e/2KMkaJrX/pceQQnEtySPn4FVkiV6l049I7ty/gnp9pSnNGjoNiOWdomABJDq13GuxGDIGZDB5LWYjsqQija2vGiCP4ZFMZ+eGTCbjpicO7zb4Oc6PELKZOYPcZBMkg0HSP9XxMTIj036I1+ejzzTX/KlnBJsMBqPRZBKMZj4oB5vc5gaRM1g4E+JYCy+Y/HJjstfwdwOYnv7DensP68805hvBHGnoMMQMR/Iw85oM5DpL9wkQ7jBU7+J4FWj5ijxjUPtS1P4X6h04rubYjEafU04sSyhXom8EYCVXkfoVYMaeRqhlSobffeONuJt4HiNREFJ/yaIBjAcwf4OB5w03sBsggNBEGP8lLJUvpR/SO0MKj5TvxDdPjpAhuwH3syzbZDREDLyCWfUBGjeA9ThjE2Y1nspv2ZfZKOzhaco/Y8yoOltlRK/ERcV8nDLKyF2v9KSN9qUPRKbfAXhEOaomf4/6fHtGLZcWetxAuJcaO92ITZZ53u2xIVb0mFFR4HlBLZs9jR6z+rzA/0rpicV6RokVsxOwZPfFYuhZVEwuLKllKK8+n4S62MTJ+2weNyn7vFa2TCpCRbNHfFcvD9aIozHcaI91xvSx/QL+DFZtA9DbROPoMIZxT1BtifyEbi7Aq+qFStqp75r7lRL5OCIZNX9dwldONzqdNpiZpwuNHtxLbAEst7n8IrpOS+LVE3UP8tbEQSb1MxQiBdS3zQE3ug6FeKeTaGCo75DKtpwO1J/V6TKebnY3lt84XXA3QtWeRgGquZY3GGxOp1E9wah7PqqJg/xWFCZZoSZ3AF2LwrQqJ0/DjI773q5/d71WjreYyrUIH+vUuq8yTuZH1X1BSZ5hXD3qNPWl3xFyN81Gep3N+DheRb9+vp1+ofxC9TIEfUAiXqcRYfWPSNovoryJ4keoH7b7Z6ou+f75Rr3qvvEv1wZ2BqUN5Hlg9S7eqT8cknvH8VBI5QAF+ic4BAVCLaTmKh70fI0+Y+WrrtPKAglfMgo/pGs1sqnK5dLlv1TlbUSUR1gBVMlh+yiaM4LmaHcXsAtmIJwbreRVHyNqhpru99vsW6ynTr7cQ/Q36mTLdUoaztoROxDiIVPJXMzIS7qsSqYbHtk/Cvqul1zRhbPd3eUXuy7M7clm9+TIaVH8lXAuDEa9P5wPhfLhuxzycXYvlh3Hue2cs+L3iKyHoIKql5wtRX/IqXIuhz7K7WNqiqIlEDhmv5JGrUadD/7Tmjsq6ttbdzftedVLE14gUA/dRWAPOpfEkBRG511+wt5A7+5tP6Dek9YjNbK7XEVul8CWzY9t3vwYVV4iV/GeILouIF8kOt/d6L6ACKUucE++qPdnJLLRfX5NNl0u8xTeR9vkYXyTv5hcc2n7F5pg62/aW25CW17fmPtjfsPrV68wLJ8fb2qK44fLL1x5Jc6pu/72N32/vAFggqMer/+X7yWuOz1SaTFpSrGw8sgTVi7S7hxe9PAiTcVrkfr7iHZJceRtKs6LbH7slcc2k8y0A4bqMhNPWn2ZZLyNFCFF9Xf/BD9SN7frbzqJ132Ts663El1busCgZs1VQ01sbzy+90dNeH2Xel9XFzq06/Au1Qief3SpnwCKFGeY/w8acz5TAAAAeJxjYGRgYADifx656fH8Nl8ZuFkYQOCJfaQMgv6/gIWBOQHI5WBgAokCABA7CQsAeJxjYGRgYG7438AQw1LPAAQsDAyMDKhgHgBUCwOGAAB4nGNhYGBgwYYdcIgTwjB99gTUOCCpdcAijgtjMwNdHF2NPQ47bNDU2BBwHyE3GhPpB3si1GBzBwgb4PAXrvBFjwd7PHGDbFY9FrvtcahFdy8DA6Y/0dQBAAt/GYkAAAAAAAAAAHYBHgFAAdQCSAK2A6gEDAR0BN4FdAXyBjQGuAcoB4IH1AhGCF4IhAi0CP4JJAmKCg4KVAp8CuILYgviDKINcg4EDooPCg9kD5oP8BAgEIIQ4hEYEWQSZhOqE94UEhRsFLgVaBXUFqIXMheCF+oYSBicGQQZZhmwGlAaahq+GxIbuhxKHHQc6B1WHdweMB56HqQfCh+MH+YgiiDsIWYhliHEIfQiViJsIzAjdiRAJVwloCXkJm4mzic4J3gnnCf6KE4osCj0KVYp1CpaKworbiu2LAwsNCyMLTAtrC5SLqwvXC/YMJAw5jE0MYoyDDKcMu4zPDOONAY0rjUeNhI2hjbQN2Q3yDgQOLI5Ljn4Ok47PDueO/Q8rD2QPew+RD6yPw4/9kByQORBckIUQmxC6EMQQ1JDfEPaRBQAAHicY2BkYGCYx/CBQYoBBJiAmAsIGRj+g/kMADK6Ar8AeJxdkc1OwkAUhc/IjxESF5q4cDVuiImhBZbsDAnsWeC6lCk/aTvNdCBh5dP4BD6BT+AT6Ev4Ah7K1QTazJ3vnLn3zk0L4AbfUDg+t1xHVrikOvIF+V64Rn4QrpMfhRtoIxRu0h8Kt/CEZ+E2O6bsoOpXVB28Citc4034gvwuXCN/CNfJn8IN3OFLuEn/R7iFmVLCbXTUy8iZyJuFnu/1OrZ5YnOfxN0DTs1ym0ZOlGwz48q1zXU/6IkzMblxfy3K3XLgfaITZzM9Zi+TplYXzm5M7IOV98UwDBPxg9hmGMHBIIJnXEBjjj3jGjEsciRV9NxjdP/dKXOX2PJDRaw+PTtVM2Y6lNQHpdFHgN5ZzoQ5eZV3PkWJHe8Z0D1MoLkcKzLSWOYynCElaxTV2YZOTD/Aqqoq+JNDvslZflDdnf0CPF1o6QAAAHicbVSHlts2ELw5kRQlnc9xzum9Vyax7PTee+89ELGi4AMJGgClU3rvvVfnV7OgpOT8XvSeCAK7AGZnZ7i2vrb49df+/3cU6+ggQowEXaTooY8BNrAHm9iL47APx2ML+3ECTsRJOBmn4FSchtNxBs7EWTgb5+BcnIfzcQEuxEW4GJfgUlyGy5HhClyJq3AAQxzEIVyNa3AtrsP1uAE34ibcjFtwK27D7bgDd+Iu3I17cC/uw/14AA/iITyMR/AoHsPjeAJP4ik8jWfwLJ7D83gBL+IlvIxX8Cpeg8AIOSQIYxSYQOEwtqFRooJBjSOwcPBoMMUMO5jjdbyBN/EW3sY7eBfv4X18gA/xET7GJ/gUn+FzfIEv8RW+xjf4Ft/he/yAH/ETfsYv+BW/4Xf8gT/xF47i77W0FHZbmlk1kMKLzJGm3PcKq2SmVUVxbVXlo1z5eapNLrwyVXLE5kZSqqq68ZmSiRpbUVIsGqlMf2xsmZUc17FXXlPkVFF1hZSWnOs5z0c4r/LuSLSnxFMlySRiyrfbrmtcTZXszoStVFVEjieppTHvnQzXhermRjdldXA5HlqOw+V4INFibhrfc1SUVHmS3TAw5t4CrBdFx4vRRm6qsSoymnKUMVGdBdiJ0wzGJlIJbYqtww0DHc8zV4uchDVNJZOm1kbIKDf1vO9VSZkVVUGpF2474xr3H7NnRH5GVCWqrI31A75YU3vRwcESwEg4Ol5oZkh5Kl3mvCWfT3YvjTXtMAtxPqF8OxKNN2kuNK8IuyrD+bmmvcuJkFNR5SRXwdqa2m1yO8hTliubaxruOWaaLGb7pbLceyYrs2ZmmRvraEMqVzOpLYxIWlHsWa2MWA/bUVBNTFL5YRSeodEZN2NrlaWqIKM2d4VwytXxNoqC7DaPTezQnHr8z3JtHHVrhqFoNgi3ZxWjEnUyNpqbNGh1tiig14ZDMAqrvTYU2IsUXxmrUhS0b9WZkMsqtH5ztZIHpdi9/7Zu0YOY4WwP41JVjYtZRc0wKo2lKLymmrve8KmdWsikNCOlKa15npVih9Omq5mqUi4hCwpbr/MoLHaXck6skKpxAyemLAqlNcn0SEOudZjLrdE6DKr2XUfet27g1MRNBPOWToVVQU+dObmNxRpTyJmhI9QPj6U2uRta1I53zhTXxR4bBYIGXCYt/R5zSxo2sCbLXhdWpq3aRmaHteZyEUwxarw3Vb/9SrRKjgu2RN2VKjjYRoHXDUkLyFyDiya+1EkQhbFxa78oUMrMODczVsaBANNhrSWL3keWQccM19hkgSs67JiMqilHZOPWUv3/TLTLT8MoeDHijCr1tMPdJdH1xmiv6shp41PPXLgxWXZ/0ZvxPTZ896LAQdye02uFO1FaRvw27PBja5cLg1EDxn6b1qpu367wQkJra/8AhSEfTQ==) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-data-select:before{content:"\\e6dd"}.icon-markdown:before{content:"\\e893"}.icon-grid-line:before{content:"\\e600"}.icon-print:before{content:"\\e6de"}.icon-city:before{content:"\\e64b"}.icon-location:before{content:"\\e6d4"}.icon-qrcode:before{content:"\\e6ce"}.icon-input-id:before{content:"\\e6d1"}.icon-iframe:before{content:"\\e6d2"}.icon-audio:before{content:"\\e6d3"}.icon-form-model:before{content:"\\e6d5"}.icon-title:before{content:"\\e6d6"}.icon-sign:before{content:"\\e6d7"}.icon-address:before{content:"\\e6d8"}.icon-statistic:before{content:"\\e6d9"}.icon-barcode:before{content:"\\e6da"}.icon-video:before{content:"\\e6db"}.icon-avatar:before{content:"\\e6dc"}.icon-suspend:before{content:"\\e6cf"}.icon-warning:before{content:"\\e6d0"}.icon-send:before{content:"\\e6cc"}.icon-refresh2:before{content:"\\e6cd"}.icon-ai:before{content:"\\e6cb"}.icon-ai.bright{-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text}.icon-column4:before{content:"\\e6c7"}.icon-column3:before{content:"\\e6c6"}.icon-column2:before{content:"\\e6c8"}.icon-column1:before{content:"\\e6c9"}.icon-layout:before{content:"\\e6ca"}.icon-segmented:before{content:"\\e682"}.icon-mention:before{content:"\\e6c5"}.icon-input-tag:before{content:"\\e6c4"}.icon-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-alignitems-flexstart:before{content:"\\e67f";display:inline-block;transform:rotate(180deg)}.icon-align-center:before{content:"\\e6a5";display:inline-block;transform:rotate(90deg)}.icon-align-flexstart:before{content:"\\e6a4";display:inline-block;transform:rotate(90deg)}.icon-align-spacearound:before{content:"\\e670";display:inline-block;transform:rotate(-90deg)}.icon-align-spacebetween:before{content:"\\e695";display:inline-block;transform:rotate(-90deg)}.icon-align-stretch:before{content:"\\e6a7";display:inline-block;transform:rotate(-90deg)}.icon-align-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(-90deg)}.icon-justify-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(180deg)}.icon-direction-row:before{content:"\\e68b";display:inline-block;transform:rotate(180deg)}.icon-direction-column:before{content:"\\e68b";display:inline-block;transform:rotate(-90deg)}.icon-direction-columnreverse:before{content:"\\e68b";display:inline-block;transform:rotate(90deg)}.icon-arrow:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-cell:before{content:"\\e654"}.icon-table:before{content:"\\eb0a"}.icon-next-step:before{content:"\\e6b4";display:inline-block;transform:rotateY(180deg)}.icon-grid:before{content:"\\e65c";display:inline-block;transform:rotate(90deg)}.icon-alignitems-stretch:before{content:"\\e67e"}.icon-alignitems-flexend:before{content:"\\e67f"}.icon-check:before{content:"\\e680"}.icon-auto:before{content:"\\e681"}.icon-config-event:before{content:"\\e66e"}.icon-calendar:before{content:"\\e683"}.icon-config-style:before{content:"\\e684"}.icon-copy:before{content:"\\e676"}.icon-config-advanced:before{content:"\\e686"}.icon-config-props:before{content:"\\e687"}.icon-delete-circle2:before{content:"\\e688"}.icon-delete-circle:before,.icon-delete2:before{content:"\\e689"}.icon-delete:before{content:"\\e68a"}.icon-direction-rowreverse:before{content:"\\e68b"}.icon-display-flex:before{content:"\\e68c"}.icon-dialog:before{content:"\\e66f"}.icon-drag:before{content:"\\e68e"}.icon-display-block:before{content:"\\e68f"}.icon-data:before{content:"\\e690"}.icon-edit2:before{content:"\\e691"}.icon-edit:before{content:"\\e692"}.icon-add-col:before{content:"\\e693"}.icon-display-inlineblock:before{content:"\\e694"}.icon-config-base:before{content:"\\e6bf"}.icon-config-validate:before{content:"\\e696"}.icon-down:before{content:"\\e697"}.icon-display-inline:before{content:"\\e698"}.icon-eye:before{content:"\\e699"}.icon-eye-close:before{content:"\\e69a"}.icon-import:before{content:"\\e6a6"}.icon-preview:before{content:"\\e69b"}.icon-flex-nowrap:before{content:"\\e69c"}.icon-folder:before{content:"\\e69d"}.icon-form-circle:before{content:"\\e69e"}.icon-flex-wrap:before{content:"\\e69f"}.icon-form:before{content:"\\e6a0"}.icon-form-item:before{content:"\\e6a1"}.icon-icon:before{content:"\\e6a2"}.icon-image:before{content:"\\e6a3"}.icon-justify-flexstart:before{content:"\\e6a4"}.icon-justify-center:before{content:"\\e6a5"}.icon-justify-spacearound:before{content:"\\e670"}.icon-justify-stretch:before{content:"\\e6a7"}.icon-link2:before{content:"\\e6a8"}.icon-justify-spacebetween:before{content:"\\e695"}.icon-minus:before{content:"\\e6aa"}.icon-menu2:before{content:"\\e6ab"}.icon-more:before{content:"\\e6ac"}.icon-menu:before{content:"\\e6ad"}.icon-language:before{content:"\\e6ae"}.icon-pad:before{content:"\\e6af"}.icon-mobile:before{content:"\\e6b0"}.icon-page-max:before{content:"\\e6b1"}.icon-move:before{content:"\\e6b2"}.icon-page-min:before{content:"\\e6b3"}.icon-pre-step:before{content:"\\e6b4"}.icon-pc:before{content:"\\e6b5"}.icon-page:before{content:"\\e6b6"}.icon-refresh:before{content:"\\e6b7"}.icon-radius:before{content:"\\e6b8"}.icon-save-filled:before{content:"\\e6b9"}.icon-question:before{content:"\\e6ba"}.icon-scroll:before{content:"\\e6bb"}.icon-script:before{content:"\\e6bc"}.icon-setting:before{content:"\\e6bd"}.icon-save-online:before,.icon-save:before{content:"\\e6be"}.icon-task-add:before{content:"\\e68d"}.icon-shadow:before{content:"\\e6c0"}.icon-variable:before{content:"\\e6c1"}.icon-yes:before{content:"\\e6c2"}.icon-shadow-inset:before{content:"\\e6c3"}.icon-date:before{content:"\\e642"}.icon-date-range:before{content:"\\e643"}.icon-collapse:before{content:"\\e644"}.icon-slider:before{content:"\\e665"}.icon-switch:before{content:"\\e646"}.icon-subform:before{content:"\\e647"}.icon-time-range:before{content:"\\e685"}.icon-tree-select:before{content:"\\e649"}.icon-value:before{content:"\\e64a"}.icon-table-form3:before{content:"\\e6a9"}.icon-alert:before{content:"\\e64c"}.icon-card:before{content:"\\e64d"}.icon-checkbox:before{content:"\\e64e"}.icon-cascader:before{content:"\\e64f"}.icon-button:before{content:"\\e650"}.icon-data-table:before{content:"\\e651"}.icon-group:before{content:"\\e652"}.icon-divider:before{content:"\\e653"}.icon-flex:before{content:"\\e654"}.icon-descriptions:before{content:"\\e655"}.icon-html:before{content:"\\e656"}.icon-editor:before{content:"\\e657"}.icon-input:before{content:"\\e658"}.icon-link:before{content:"\\e659"}.icon-password:before{content:"\\e65a"}.icon-radio:before{content:"\\e65b"}.icon-row:before{content:"\\e65c"}.icon-inline:before{content:"\\e65d"}.icon-rate:before{content:"\\e65e"}.icon-color:before{content:"\\e65f"}.icon-select:before{content:"\\e660"}.icon-json:before{content:"\\e661"}.icon-number:before{content:"\\e662"}.icon-space:before{content:"\\e664"}.icon-step-form:before{content:"\\e663"}.icon-table-form:before{content:"\\e666"}.icon-table-form2:before{content:"\\e667"}.icon-time:before{content:"\\e668"}.icon-span:before{content:"\\e669"}.icon-textarea:before{content:"\\e66a"}.icon-tooltip:before{content:"\\e66b"}.icon-slot:before{content:"\\e66c"}.icon-transfer:before{content:"\\e66d"}.icon-upload:before{content:"\\e673"}.icon-tag:before{content:"\\e671"}.icon-watermark:before{content:"\\e672"}.icon-tab:before{content:"\\e674"}.icon-tree:before{content:"\\e675"}.icon-table:before{content:"\\e677"}.icon-add-child:before{content:"\\e678"}.icon-add2:before{content:"\\e679"}.icon-add:before{content:"\\e67a"}.icon-alignitems-baseline:before{content:"\\e67b"}.icon-add-circle:before{content:"\\e67c"}.icon-alignitems-center:before{content:"\\e67d"}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-subst,.hljs-title{color:#000;font-weight:400}.hljs-title.function_{color:#7a7a43}.hljs-code,.hljs-comment,.hljs-quote{color:#8c8c8c;font-style:italic}.hljs-meta{color:#9e880d}.hljs-section{color:#871094}.hljs-built_in,.hljs-keyword,.hljs-literal,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag,.hljs-symbol,.hljs-template-tag,.hljs-type,.hljs-variable.language_{color:#0033b3}.hljs-attr,.hljs-property{color:#871094}.hljs-attribute{color:#174ad4}.hljs-number{color:#1750eb}.hljs-regexp{color:#264eff}.hljs-link{color:#006dcc;text-decoration:underline}.hljs-meta .hljs-string,.hljs-string{color:#067d17}.hljs-char.escape_{color:#0037a6}.hljs-doctag{text-decoration:underline}.hljs-template-variable{color:#248f8f}.hljs-addition{background:#bee6be}.hljs-deletion{background:#d6d6d6}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
||
(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\u5FEB\u901F\u5207\u6362\u548C\u914D\u7F6E\u8868\u5355\u3002",fetch:"\u8FDC\u7A0B\u6570\u636E\u901A\u8FC7\u8FDC\u7A0B\u8BF7\u6C42\u52A0\u8F7D\u7EC4\u4EF6\u7684\u914D\u7F6E\u9879\u3002\u914D\u7F6E\u8BF7\u6C42\u53C2\u6570\u540E\uFF0C\u7EC4\u4EF6\u4F1A\u81EA\u52A8\u53D1\u8D77\u8BF7\u6C42\uFF0C\u83B7\u53D6\u8FDC\u7A0B\u6570\u636E\u5E76\u6839\u636E\u8FD4\u56DE\u7684\u7ED3\u679C\u66F4\u65B0\u7EC4\u4EF6\u3002",fetchQuery:"\u5B9A\u4E49\u8BF7\u6C42\u7684 GET \u53C2\u6570\uFF0C\u901A\u8FC7 URL \u4F20\u9012\u6570\u636E\u3002",fetchData:"\u5B9A\u4E49\u8BF7\u6C42\u7684 POST \u53C2\u6570\uFF0C\u901A\u8FC7\u8BF7\u6C42\u4F53\u4F20\u9012\u6570\u636E\u3002",fetchDataType:"\u9009\u62E9\u8BF7\u6C42\u4F53\u7684\u6570\u636E\u7C7B\u578B\uFF0C\u786E\u4FDD\u6570\u636E\u683C\u5F0F\u6B63\u786E\u3002",beforeFetch:"\u5728\u8BF7\u6C42\u53D1\u9001\u524D\uFF0C\u53EF\u901A\u8FC7\u5904\u7406\u51FD\u6570\u4FEE\u6539\u8BF7\u6C42\u53C2\u6570\uFF1B\u82E5\u9700\u7EC8\u6B62\u8BF7\u6C42\uFF0C\u76F4\u63A5\u8FD4\u56DE false \u6216\u4E00\u4E2A\u62D2\u7EDD\u7684 Promise\u3002",fetchParse:"\u8BF7\u6C42\u8FD4\u56DE\u540E\uFF0C\u53EF\u4EE5\u901A\u8FC7\u5904\u7406\u51FD\u6570\u5BF9\u8FD4\u56DE\u7684\u7ED3\u679C\u8FDB\u884C\u5904\u7406\uFF0C\u5C06\u7ED3\u679C\u8F6C\u6362\u4E3A\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u548C\u7ED3\u6784\u3002",language:"\u7BA1\u7406\u9875\u9762\u7684\u591A\u8BED\u8A00\u6570\u636E\uFF0C\u5728\u7EC4\u4EF6\u4E2D\u914D\u7F6E\u4E0D\u540C\u8BED\u8A00\u7684\u6587\u672C\uFF0C\u652F\u6301\u4E00\u952E\u5207\u6362\u8BED\u8A00\u4F53\u7CFB\uFF0C\u4FBF\u4E8E\u5728\u591A\u8BED\u8A00\u73AF\u5883\u4E0B\u4F7F\u7528\u548C\u5C55\u793A\u5185\u5BB9\u3002",variable:"\u4ECE\u53D8\u91CF\u8BFB\u53D6\u914D\u7F6E\u9879\u7684\u503C\uFF0C\u652F\u6301\u901A\u8FC7\u53D8\u91CF\uFF08\u5982 Cookie\u3001localStorage\u3001\u5168\u5C40\u53D8\u91CF\u548C\u5916\u90E8\u6570\u636E\u6E90\u7B49\uFF09\u8BBE\u7F6E\u914D\u7F6E\u9879\u3002\u5F53\u5173\u8054\u7684\u53D8\u91CF\u53D8\u5316\u65F6\uFF0C\u914D\u7F6E\u9879\u4F1A\u540C\u6B65\u66F4\u65B0\u3002",variableInfo:"\u8BF7\u5728\u53D8\u91CF\u5217\u8868\u4E2D\u9009\u62E9\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u60A8\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u683C\u5F0F\u8BBF\u95EE\u5BF9\u8C61\u4E2D\u7684\u5C5E\u6027\u503C\u3002",pageManage:"\u8BBE\u8BA1\u8868\u5355\u4E2D\u7684\u5B50\u5F39\u7A97\uFF0C\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u5F39\u7A97\u663E\u793A\uFF0C\u4FBF\u4E8E\u5728\u8868\u5355\u4E2D\u52A8\u6001\u5C55\u793A\u4FE1\u606F\u6216\u8FDB\u884C\u4EA4\u4E92\u64CD\u4F5C\u3002",globalConfig:"\u7BA1\u7406\u5168\u5C40\u4E8B\u4EF6\u3001\u6837\u5F0F\u3001\u6570\u636E\u548C\u53D8\u91CF\uFF0C\u7528\u4E8E\u5728\u4E0D\u540C\u7EC4\u4EF6\u95F4\u8FDB\u884C\u6570\u636E\u5171\u4EAB\u548C\u4E8B\u4EF6\u5904\u7406\u3002",globalClass:"\u63D0\u4F9B\u5B9A\u4E49\u5168\u5C40\u6837\u5F0F\u548C Class \u7684\u529F\u80FD\uFF0C\u7528\u6237\u53EF\u4EE5\u5728\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u9009\u62E9\u5E76\u5E94\u7528\u8FD9\u4E9B\u9884\u5B9A\u4E49\u7684 Class\uFF0C\u4EE5\u5B9E\u73B0\u7EDF\u4E00\u7684\u6837\u5F0F\u7BA1\u7406\u3002",globalEvent:"\u5168\u5C40\u4E8B\u4EF6\u7528\u4E8E\u5B9A\u4E49\u7EC4\u4EF6\u4E8B\u4EF6\uFF0C\u4F9B\u7EC4\u4EF6\u8FDB\u884C\u914D\u7F6E\u548C\u9009\u62E9\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u7EC4\u4EF6\u4E2D\u7EDF\u4E00\u4F7F\u7528\u9884\u8BBE\u4E8B\u4EF6\uFF0C\u7B80\u5316\u4E8B\u4EF6\u7684\u7BA1\u7406\u548C\u5206\u53D1\u3002",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90\u7528\u4E8E\u5B9A\u4E49\u5E38\u7528\u7684\u6570\u636E\u6E90\uFF0C\u652F\u6301\u9759\u6001\u6570\u636E\u548C\u8FDC\u7A0B\u6570\u636E\u3002\u8BE5\u6570\u636E\u6E90\u53EF\u5728\u5404\u79CD\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u4F7F\u7528\uFF0C\u65B9\u4FBF\u7EDF\u4E00\u7BA1\u7406\u548C\u8C03\u7528\u6570\u636E\u3002",globalVariable:"\u5168\u5C40\u53D8\u91CF\u4E2D\u53EF\u4EE5\u5B9A\u4E49\u8BA1\u7B97\u5C5E\u6027\uFF0C\u901A\u8FC7\u8868\u5355\u6570\u636E\u548C\u5916\u90E8\u6570\u636E\u8FD4\u56DE\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u3002\u5173\u8054\u6570\u636E\u53D8\u5316\u65F6\uFF0C\u8BA1\u7B97\u5C5E\u6027\u4F1A\u81EA\u52A8\u66F4\u65B0\uFF0C\u53EF\u4EE5\u5728\u7ED1\u5B9A\u53D8\u91CF\u6A21\u5757\u548C\u4E8B\u4EF6\u4E2D\u4F7F\u7528\u3002",ignore:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u6392\u9664\u8BE5\u7EC4\u4EF6\u7684\u5B57\u6BB5\uFF0C\u4E0D\u4F1A\u5C06\u5176\u5305\u542B\u5728\u63D0\u4EA4\u7684\u6570\u636E\u4E2D\u3002",ignoreHiddenFields:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u8FC7\u6EE4\u6389\u88AB\u9690\u85CF\u7684\u7EC4\u4EF6\u5B57\u6BB5\uFF0C\u786E\u4FDD\u4EC5\u63D0\u4EA4\u53EF\u89C1\u7684\u5B57\u6BB5\u6570\u636E\u3002",behaviorIgnoreError:"\u5982\u679C\u52A8\u4F5C\u6267\u884C\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF\uFF0C\u662F\u5426\u7EE7\u7EED\u6267\u884C\u540E\u7EED\u7684\u52A8\u4F5C\u3002",behaviorExpression:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u52A8\u4F5C\u624D\u4F1A\u88AB\u6267\u884C\u3002",behaviorStopPropagation:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u4F1A\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u7684\u6267\u884C\u3002",computedCondition:"\u901A\u8FC7\u5B9A\u4E49\u6761\u4EF6\uFF0C\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u4F1A\u6839\u636E\u6761\u4EF6\u662F\u5426\u6210\u7ACB\u81EA\u52A8\u8C03\u6574\u3002",computedFormula:"\u901A\u8FC7\u516C\u5F0F\u548C\u8868\u5355\u6570\u636E\uFF0C\u52A8\u6001\u8BA1\u7B97\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u3002"},computed:{value:{title:"\u6570\u636E\u8054\u52A8",btn:"\u8BBE\u7F6E\u6570\u636E\u8054\u52A8",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u503C"},hidden:{title:"\u9690\u85CF\u6761\u4EF6",btn:"\u8BBE\u7F6E\u9690\u85CF\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u9690\u85CF\u6761\u4EF6"},required:{title:"\u5FC5\u586B\u6761\u4EF6",btn:"\u8BBE\u7F6E\u5FC5\u586B\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u5FC5\u586B\u6761\u4EF6"},disabled:{title:"\u7981\u7528\u6761\u4EF6",btn:"\u8BBE\u7F6E\u7981\u7528\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u7981\u7528\u6761\u4EF6"},formulas:{"==":"\u7B49\u4E8E","!=":"\u4E0D\u7B49\u4E8E",on:"\u5305\u542B",notOn:"\u4E0D\u5305\u542B",empty:"\u4E3A\u7A7A",notEmpty:"\u4E0D\u4E3A\u7A7A",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",">":"\u5927\u4E8E",">=":"\u5927\u4E8E\u7B49\u4E8E","<":"\u5C0F\u4E8E","<=":"\u5C0F\u4E8E\u7B49\u4E8E"},variable:{attr:"\u5C5E\u6027\u5217\u8868",bind:"\u7ED1\u5B9A\u53D8\u91CF",list:"\u53D8\u91CF\u5217\u8868",btn:"\u8BBE\u7F6E\u53D8\u91CF",title:"\u5168\u5C40\u53D8\u91CF",create:"\u521B\u5EFA\u53D8\u91CF",placeholder:"\u8BF7\u8F93\u5165\u53D8\u91CF\u7684\u63CF\u8FF0\u4FE1\u606F"},linkage:{trigger:"\u89E6\u53D1\u4EE5\u4E0B\u8054\u52A8",info:["\u5F53\u524D\u7EC4\u4EF6\u8054\u52A8\u663E\u793A","\u7684\u503C"]},name:"\u8BA1\u7B97\u516C\u5F0F",setting:"\u8BBE\u7F6E\u6761\u4EF6",invert:"\u6761\u4EF6\u6210\u7ACB\u540E\u7EC4\u4EF6\u72B6\u6001",condition:"\u903B\u8F91\u6761\u4EF6",addCondition:"\u6DFB\u52A0\u6761\u4EF6",addGroup:"\u6DFB\u52A0\u6761\u4EF6\u7EC4",form:"\u5F53\u524D\u8868\u5355",subform:"\u5B50\u8868\u5355",formula:"\u51FD\u6570\u516C\u5F0F",formulaInfo:"\u51FD\u6570\u8BF4\u660E",formulaExample:"\u51FD\u6570\u793A\u4F8B",fieldUsed:"\u3010{label}\u3011\u5728\u8BA1\u7B97\u516C\u5F0F\u4E2D\u88AB\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u5BF9\u5E94\u516C\u5F0F",fieldExist:"\u3010{label}\u3011\u5B57\u6BB5\u5DF2\u5B58\u5728",fieldEmpty:"\u5B57\u6BB5\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fieldChar:"\u5B57\u6BB5\u540D\u79F0\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934"},validate:{type:"\u5B57\u6BB5\u7C7B\u578B",typePlaceholder:"\u8BF7\u9009\u62E9",trigger:"\u89E6\u53D1\u65B9\u5F0F",mode:"\u9A8C\u8BC1\u65B9\u5F0F",modes:{required:"\u5FC5\u586B",notRequired:"\u975E\u5FC5\u586B",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",validator:"\u81EA\u5B9A\u4E49\u9A8C\u8BC1",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",len:"\u957F\u5EA6"},types:{string:"\u6587\u672C",boolean:"\u5E03\u5C14",array:"\u591A\u9009",number:"\u6570\u5B57",integer:"\u6574\u6570",float:"\u5C0F\u6570",object:"\u5408\u96C6",date:"\u65E5\u671F",url:"URL\u94FE\u63A5",email:"\u90AE\u7BB1\u5730\u5740"},message:"\u9519\u8BEF\u4FE1\u606F",auto:"\u81EA\u52A8\u83B7\u53D6",autoRequired:"\u8BF7\u8F93\u5165{title}",autoMode:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684{title}",requiredPlaceholder:"\u8BF7\u8F93\u5165\u63D0\u793A\u8BED",required:"\u662F\u5426\u5FC5\u586B",rule:"\u9A8C\u8BC1\u89C4\u5219"},tableOptions:{handle:"\u64CD\u4F5C",add:"\u6DFB\u52A0",empty1:"\u70B9\u51FB\u53F3\u4E0B\u89D2",empty2:"\u6309\u94AE\u6DFB\u52A0\u4E00\u5217",rmCol:"\u5220\u9664\u5F53\u524D\u5217",rmRow:"\u5220\u9664\u5F53\u524D\u884C",splitRow:"\u62C6\u5206\u6210\u884C",splitCol:"\u62C6\u5206\u6210\u5217",mergeBottom:"\u5411\u4E0B\u5408\u5E76",mergeRight:"\u5411\u53F3\u5408\u5E76",addTop:"\u6DFB\u52A0\u4E0A\u5217",addBottom:"\u6DFB\u52A0\u4E0B\u5217",addLeft:"\u6DFB\u52A0\u5DE6\u5217",addRight:"\u6DFB\u52A0\u53F3\u5217",keyValue:"\u952E\u503C\u5BF9"},struct:{title:"\u7F16\u8F91\u6570\u636E",only:"\u3010{label}\u3011\u53EA\u5141\u8BB8\u6DFB\u52A0\u4E00\u4E2A",errorMsg:"\u8F93\u5165\u7684\u5185\u5BB9\u8BED\u6CD5\u9519\u8BEF",configured:"\u5DF2\u914D\u7F6E",configuredData:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6570\u636E\u6E90",configuredEvent:"\u5DF2\u914D\u7F6E {num} \u4E2A\u4E8B\u4EF6"},class:{title:"\u8BBE\u7F6E\u6837\u5F0F",create:"\u521B\u5EFA\u6837\u5F0F",placeholder:"\u8BF7\u8F93\u5165\u6837\u5F0F\u7684\u63CF\u8FF0\u4FE1\u606F",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u6837\u5F0F",configured:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6837\u5F0F"},event:{title:"\u8BBE\u7F6E\u4E8B\u4EF6",create:"\u521B\u5EFA\u4E8B\u4EF6",list:"\u4E8B\u4EF6\u5217\u8868",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u7684\u540D\u79F0",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u4E8B\u4EF6",type:"\u7C7B\u578B",info:"\u8BF4\u660E",action:"\u7F16\u8F91\u884C\u4E3A",inject:{api:"\u5F53\u524D\u8868\u5355\u7684api",rule:"\u5F53\u524D\u8868\u5355\u7684\u751F\u6210\u89C4\u5219",self:"\u7EC4\u4EF6\u7684\u751F\u6210\u89C4\u5219",option:"\u8868\u5355\u7684\u914D\u7F6E",args:"\u4E8B\u4EF6\u7684\u539F\u59CB\u53C2\u6570"}},eventInfo:{blur:"\u5931\u53BB\u7126\u70B9\u65F6\u89E6\u53D1",focus:"\u83B7\u5F97\u7126\u70B9\u65F6\u89E6\u53D1",change:"\u5F53\u7ED1\u5B9A\u503C\u53D8\u5316\u65F6\u89E6\u53D1",input:"\u5728\u503C\u6539\u53D8\u65F6\u89E6\u53D1",clear:"\u5728\u70B9\u51FB\u6E05\u7A7A\u6309\u94AE\u65F6\u89E6\u53D1",close:"\u5173\u95ED\u7EC4\u4EF6\u65F6\u89E6\u53D1",click:"\u70B9\u51FB\u7EC4\u4EF6\u65F6\u89E6\u53D1",add:"\u589E\u52A0\u65F6\u89E6\u53D1",delete:"\u5220\u9664\u65F6\u89E6\u53D1",remove:"\u5220\u9664\u65F6\u89E6\u53D1",visibleChange:"\u4E0B\u62C9\u6846\u51FA\u73B0/\u9690\u85CF\u65F6\u89E6\u53D1",calendarChange:"\u5728\u65E5\u5386\u6240\u9009\u65E5\u671F\u66F4\u6539\u65F6\u89E6\u53D1",panelChange:"\u5F53\u65E5\u671F\u9762\u677F\u6539\u53D8\u65F6\u89E6\u53D1",open:"\u6253\u5F00\u7684\u56DE\u8C03",opened:"\u6253\u5F00\u52A8\u753B\u7ED3\u675F\u65F6\u7684\u56DE\u8C03",closed:"\u5173\u95ED\u52A8\u753B\u7ED3\u675F\u65F6\u7684\u56DE\u8C03",openAutoFocus:"\u8F93\u5165\u7126\u70B9\u805A\u7126\u5728\u5185\u5BB9\u65F6\u7684\u56DE\u8C03",closeAutoFocus:"\u8F93\u5165\u7126\u70B9\u4ECE\u5185\u5BB9\u5931\u7126\u65F6\u7684\u56DE\u8C03",submit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",confirm:"\u70B9\u51FB\u786E\u8BA4\u6309\u94AE\u65F6\u89E6\u53D1",validateFail:"\u8868\u5355\u9A8C\u8BC1\u5931\u8D25\u65F6\u89E6\u53D1",beforeLoad:"\u521D\u59CB\u5316\u4E4B\u524D\u89E6\u53D1",loaded:"\u521D\u59CB\u5316\u5B8C\u6210\u4E4B\u540E\u89E6\u53D1",hook_load:"\u7EC4\u4EF6\u89C4\u5219\u52A0\u8F7D\u540E\u89E6\u53D1",hook_mounted:"\u7EC4\u4EF6\u6302\u8F7D\u540E\u89E6\u53D1",hook_deleted:"\u7EC4\u4EF6\u89C4\u5219\u88AB\u79FB\u9664\u540E\u89E6\u53D1",hook_watch:"\u7EC4\u4EF6\u89C4\u5219\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_value:"\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_hidden:"\u7EC4\u4EF6\u663E\u793A\u72B6\u6001\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1"},fetch:{info:"\u5B9A\u4E49\u8BF7\u6C42\u65F6\uFF0C\u652F\u6301\u901A\u8FC7\u53CC\u5927\u62EC\u53F7\u8BED\u6CD5\uFF08\u5982 {{token}}\uFF09\u4F7F\u7528\u53D8\u91CF\u3002\u5728\u63A5\u53E3\u8BF7\u6C42\u65F6\u4F1A\u81EA\u52A8\u8BFB\u53D6\u8FD9\u4E9B\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u8BBF\u95EE\u5BF9\u8C61\u7684\u5C5E\u6027\u503C\u3002",title:"\u8BBE\u7F6E\u6570\u636E\u6E90",create:"\u521B\u5EFA\u6570\u636E\u6E90",config:"\u8BF7\u6C42\u914D\u7F6E",action:"\u8BF7\u6C42\u94FE\u63A5",actionRequired:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u7684\u63CF\u8FF0\u4FE1\u606F",method:"\u8BF7\u6C42\u65B9\u5F0F",data:"\u9644\u5E26\u6570\u636E",dataType:"\u6570\u636E\u7C7B\u578B",headers:"\u8BF7\u6C42\u5934\u90E8",query:"\u8BF7\u6C42\u53C2\u6570",parse:"\u6570\u636E\u5904\u7406",response:"\u63A5\u53E3\u8FD4\u56DE\u7684\u6570\u636E",onError:"\u9519\u8BEF\u5904\u7406",beforeFetch:"\u524D\u7F6E\u5904\u7406",remote:"\u8FDC\u7A0B\u6570\u636E",static:"\u9759\u6001\u6570\u636E",optionsType:{fetch:"\u8FDC\u7A0B\u6570\u636E",global:"\u5168\u5C40\u6570\u636E\u6E90",struct:"\u9759\u6001\u6570\u636E"}},style:{width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",minWidth:"\u6700\u5C0F\u5BBD",minHeight:"\u6700\u5C0F\u9AD8",maxWidth:"\u6700\u5927\u5BBD",maxHeight:"\u6700\u5927\u9AD8",color:"\u989C\u8272",backgroundColor:"\u80CC\u666F\u8272",margin:"\u5916\u8FB9\u8DDD",padding:"\u5185\u8FB9\u8DDD",borderRadius:"\u5706\u89D2",border:"\u8FB9\u6846",solid:"\u5B9E\u7EBF",dashed:"\u865A\u7EBF",dotted:"\u70B9\u72B6\u865A\u7EBF",double:"\u53CC\u5B9E\u7EBF",opacity:"\u900F\u660E\u5EA6",scale:"\u7F29\u653E",overflow:{name:"\u6EA2\u51FA",visible:"\u53EF\u89C1",hidden:"\u9690\u85CF",scroll:"\u6EDA\u52A8",auto:"\u6EA2\u51FA\u540E\u81EA\u52A8\u6EDA\u52A8"},shadow:{name:"\u9634\u5F71",x:"x\u8F74\u504F\u79FB\u91CF",y:"y\u8F74\u504F\u79FB\u91CF",vague:"\u6A21\u7CCA\u534A\u5F84",extend:"\u6269\u6563\u534A\u5F84",inset:"\u5411\u5185",external:"\u5411\u5916",mode:"\u6A21\u5F0F",classic:"\u7ECF\u5178",flat:"\u6241\u5E73",solid:"\u7ACB\u4F53"},display:{name:"\u5E03\u5C40",block:"\u533A\u5757","inline-block":"\u884C\u5185\u533A\u5757",inline:"\u884C\u5185\u6587\u672C",flex:"\u5F39\u6027\u76D2\u5B50"},flexDirection:{name:"\u4E3B\u8F74\u7684\u65B9\u5411",row:"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u5DE6\u7AEF","row-reverse":"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u53F3\u7AEF",column:"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0A\u6CBF","column-reverse":"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0B\u6CBF"},flexWrap:{name:"\u662F\u5426\u6362\u884C",nowrap:"\u4E0D\u6362\u884C",wrap:"\u6362\u884C"},justifyContent:{name:"\u4E3B\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u5DE6\u5BF9\u9F50","flex-end":"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D","space-between":"\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u5B50\u5143\u7D20\u4E24\u4FA7\u7684\u95F4\u9694\u76F8\u7B49","space-evenly":"\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4E3B\u8F74\u4E0A"},alignItems:{name:"\u5B50\u5143\u7D20\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50",baseline:"\u6CBF\u7B2C\u4E00\u884C\u6587\u5B57\u7684\u57FA\u7EBF\u5BF9\u9F50",stretch:"\u6EE1\u6574\u4E2A\u5BB9\u5668\u7684\u9AD8\u5EA6"},alignContent:{name:"\u591A\u884C\u5B50\u5143\u7D20\u5728\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4E0E\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50","space-between":"\u4E0E\u4EA4\u53C9\u8F74\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u591A\u884C\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4EA4\u53C9\u8F74",stretch:"\u8F74\u7EBF\u5360\u6EE1\u6574\u4E2A\u4EA4\u53C9\u8F74"},font:{name:"\u5B57\u4F53",size:"\u5927\u5C0F",align:"\u5BF9\u9F50\u65B9\u5F0F",height:"\u884C\u9AD8",spacing:"\u5B57\u95F4\u8DDD",preview:"\u6837\u5F0F\u9884\u89C8"},decoration:{name:"\u4FEE\u9970",underline:"\u4E0B\u5212\u7EBF","line-through":"\u5220\u9664\u7EBF",overline:"\u4E0A\u5212\u7EBF"},weight:{name:"\u7C97\u7EC6",300:"\u7EC6\u4F53",400:"\u5E38\u89C4\u4F53",500:"\u4E2D\u9ED1\u4F53",700:"\u4E2D\u7C97\u4F53"}},designer:{component:"\u7EC4\u4EF6\u914D\u7F6E",id:"\u552F\u4E00\u503C",name:"\u7F16\u53F7",type:"\u7EC4\u4EF6\u7C7B\u578B",form:"\u8868\u5355\u914D\u7F6E",json:"\u6E32\u67D3\u89C4\u5219",style:"\u6837\u5F0F\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",advanced:"\u9AD8\u7EA7\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",slots:"\u63D2\u69FD\u914D\u7F6E",customProps:"\u81EA\u5B9A\u4E49\u5C5E\u6027\u914D\u7F6E",validate:"\u9A8C\u8BC1\u914D\u7F6E",event:"\u4E8B\u4EF6\u914D\u7F6E",clearWarn:"\u6E05\u7A7A\u540E\u5C06\u4E0D\u80FD\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6E05\u7A7A\u5417\uFF1F",childEmpty:"\u70B9\u51FB\u53F3\u4E0B\u89D2 \\e789 \u6309\u94AE\u6DFB\u52A0\u4E00\u5217",dragEmpty:"\u62D6\u62FD\u5DE6\u4FA7\u5217\u8868\u4E2D\u7684\u7EC4\u4EF6\u5230\u6B64\u5904",unload:"\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417?",sublist:"\u5B50\u8282\u70B9\u5217\u8868",formList:"\u8868\u5355\u5217\u8868",comList:"\u7EC4\u4EF6\u5217\u8868",addPage:"\u6DFB\u52A0\u6A21\u5757",pageManage:"\u6A21\u5757\u7BA1\u7406",gridLine:"\u8F85\u52A9\u7EBF",main:"\u4E3B\u4F53",layout:"\u5FEB\u901F\u5E03\u5C40",col1:"\u4E00\u5217",col2:"\u4E24\u5217",col3:"\u4E09\u5217",col4:"\u56DB\u5217",print:{title:"\u6253\u5370\u8868\u5355",config:"\u8BBE\u7F6E\u6253\u5370",left:"\u5DE6\u8FB9\u8DDD",right:"\u53F3\u8FB9\u8DDD",top:"\u4E0A\u8FB9\u8DDD",bottom:"\u4E0B\u8FB9\u8DDD",defaultStyle:"\u9ED8\u8BA4\u6837\u5F0F",wordStyle:"\u6587\u6863\u6837\u5F0F",export:"\u5BFC\u51FA PDF"}},menu:{template:"\u6A21\u677F",main:"\u57FA\u7840\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6",component:"\u7EC4\u4EF6",subform:"\u5B50\u8868\u5355\u7EC4\u4EF6",container:"\u5BB9\u5668\u7EC4\u4EF6",chart:"\u56FE\u8868\u7EC4\u4EF6",tree:"\u5927\u7EB2"},formula:{math:"\u6570\u5B57\u5904\u7406",string:"\u6587\u672C\u5904\u7406",date:"\u65F6\u95F4\u5904\u7406",collection:"\u5408\u96C6\u5904\u7406",condition:"\u903B\u8F91\u5904\u7406",ADD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u52A0\u7684\u503C",SUB:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u51CF\u7684\u503C",MUL:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u4E58\u7684\u503C",DIV:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u9664\u7684\u503C",SUM:"\u83B7\u53D6\u5408\u96C6\u4E2D\u6570\u503C\u7684\u603B\u548C",MAX:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5927\u503C",MIN:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5C0F\u503C",ABS:"\u83B7\u53D6\u6570\u5B57\u7684\u7EDD\u5BF9\u503C",AVG:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u7684\u5E73\u5747\u503C",POWER:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E58\u5E42",RAND:"\u83B7\u53D6\u4E00\u4E2A\u5927\u4E8E\u7B49\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u968F\u673A\u6570",PI:"\u83B7\u53D6\u5706\u5468\u7387",ROUND:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u56DB\u820D\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570",SQRT:"\u83B7\u53D6\u4E00\u4E2A\u6570\u5B57\u7684\u6B63\u5E73\u65B9\u6839",NOW:"\u83B7\u53D6\u5F53\u524D\u7684\u65F6\u95F4",TODAY:"\u83B7\u53D6\u4ECA\u5929\u7684\u65E5\u671F",YEAR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",MONTH:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",DAY:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",HOUR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5C0F\u65F6\u6570",MINUTE:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5206\u949F\u6570",SECOND:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u79D2\u6570",DIFFDAYS:"\u83B7\u53D6\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570",DIFFHOURS:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5C0F\u65F6\u6570,\u4FDD\u7559\u4E24\u4F4D\u5C0F\u6570",DIFFMINUTES:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5206\u949F\u6570",ADDYEAR:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",ADDMONTH:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",ADDDAY:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",ADDWEEK:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5468\u6570",ADDHOUR:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u6570",ADDMINUTE:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u6570",ADDSECOND:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u79D2\u6570",SUBYEAR:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",SUBMONTH:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",SUBDAY:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",SUBWEEK:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5468\u6570",SUBHOUR:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u6570",SUBMINUTE:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u6570",SUBSECOND:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u79D2\u6570",TIMESTAMP:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u65F6\u95F4\u6233",STARTSWITH:"\u68C0\u67E5\u5B57\u7B26\u4E32\u662F\u5426\u4EE5\u6307\u5B9A\u5B57\u7B26\u4E32\u5F00\u5934",EMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u7A7A",NOTEMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E0D\u4E3A\u7A7A",LEN:"\u83B7\u53D6\u6307\u5B9A\u5408\u96C6\u7684\u957F\u5EA6",MOD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u7684\u4F59\u6570",FLOOR:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0B\u53D6\u6574\u7684\u503C",CEIL:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0A\u53D6\u6574\u7684\u503C",FIXED:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u4FDD\u7559\u6307\u5B9A\u4F4D\u6570\u7684\u5C0F\u6570",ISNUMBER:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u6570\u5B57",TONUMBER:"\u5C06\u53C2\u6570\u8F6C\u6362\u4E3A\u6570\u5B57",SLICELEFT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u5F00\u5934\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",SLICERIGHT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u7ED3\u5C3E\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",TOLOWER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5927\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5C0F\u5199\u5B57\u6BCD",TOUPPER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5C0F\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5927\u5199\u5B57\u6BCD",INCLUDES:"\u68C0\u67E5\u5B57\u7B26\u4E32\u4E2D\u662F\u5426\u5305\u542B\u6307\u5B9A\u5B57\u7B26\u4E32",REPLACE:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u53EA\u66FF\u6362\u5339\u914D\u5230\u7684\u7B2C\u4E00\u4E2A",REPLACEALL:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u66FF\u6362\u6240\u6709\u5339\u914D\u5230\u7684",TRIM:"\u5C06\u5B57\u7B26\u4E32\u524D\u540E\u7684\u7A7A\u683C\u5220\u9664",TOCHINSESAMOUNT:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E2D\u6587\u5927\u5199\u91D1\u989D",UNION:"\u5C06\u5408\u96C6/\u53C2\u6570\u4E2D\u7684\u503C\u53BB\u91CD,\u8FD4\u56DE\u53BB\u91CD\u540E\u7684\u5408\u96C6",INTERSECTIONSET:"\u83B7\u53D6\u4E24\u4E2A\u96C6\u5408\u7684\u4EA4\u96C6",LIST:"\u83B7\u53D6\u6240\u6709\u53C2\u6570\u7EC4\u6210\u7684\u96C6\u5408",AND:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u5E76\u4E14"\u94FE\u63A5,\u5F53\u6240\u6709\u8868\u8FBE\u5F0F\u5747\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',OR:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u6216"\u94FE\u63A5,\u5F53\u6709\u4E00\u4E2A\u8868\u8FBE\u5F0F\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',IF:"\u68C0\u67E5\u4E00\u4E2A\u6761\u4EF6\u80FD\u5426\u6EE1\u8DB3,\u5982\u679C\u6EE1\u8DB3\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570\uFF0C\u5426\u5219\u8FD4\u56DE\u7B2C\u4E09\u4E2A\u53C2\u6570",IN:"\u68C0\u67E5\u7B2C\u4E8C\u4E2A\u53C2\u6570\u662F\u5426\u5728\u5408\u96C6\u4E2D",DEFAULT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u53C2\u6570,\u5982\u679C\u4E3A\u7A7A\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570,\u5426\u5219\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u53C2\u6570",CASE:"\u68C0\u67E5\u662F\u5426\u6EE1\u8DB3\u4E00\u4E2A\u6216\u591A\u4E2A\u6761\u4EF6\uFF0C\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u6EE1\u8DB3\u6761\u4EF6\u7684\u503C",COLUMN:"\u83B7\u53D6\u5B50\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5\u5E76\u8FD4\u56DE\u5408\u96C6",VALUE:"\u83B7\u53D6\u5206\u7EC4\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5",CONCAT:"\u5C06\u6240\u6709\u53C2\u6570\u62FC\u63A5,\u8FD4\u56DE\u62FC\u63A5\u540E\u7684\u5B57\u7B26\u4E32",FALSE:"\u8FD4\u56DE\u903B\u8F91\u503C false",TRUE:"\u8FD4\u56DE\u903B\u8F91\u503C true",NOT:"\u83B7\u53D6\u67D0\u4E2A\u903B\u8F91\u503C\u7684\u76F8\u53CD\u503C",EQ:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u76F8\u7B49",NE:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u4E0D\u76F8\u7B49",GE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",GT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u53E6\u4E00\u4E2A\u503C",LE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",LT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u53E6\u4E00\u4E2A\u503C"},language:{name:"\u56FD\u9645\u5316\u914D\u7F6E",add:"\u65B0\u589E\u8BCD\u6761",batchRemove:"\u6279\u91CF\u5220\u9664",select:"\u9009\u62E9\u591A\u8BED\u8A00"},props:{circle:"\u5706\u5F62",square:"\u6B63\u65B9\u5F62",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",document:"\u6587\u6863",size:"\u5C3A\u5BF8",info:"\u63D0\u793A",success:"\u6210\u529F",error:"\u5931\u8D25",warning:"\u8B66\u544A",primary:"\u91CD\u8981",danger:"\u5371\u9669",form:"\u8868\u5355",subform:"\u5B50\u8868\u5355",other:"\u5176\u4ED6",model:"\u5F39\u7A97",field:"\u6570\u636E\u96C6",variable:"\u53D8\u91CF",disabled:"\u7981\u7528",enable:"\u542F\u7528",time:"\u65F6\u95F4",email:"\u90AE\u7BB1",number:"\u6570\u5B57",globalData:"\u5168\u5C40\u6570\u636E",mobile:"\u79FB\u52A8\u7AEF",reactive:"\u54CD\u5E94\u5F0F",pc:"\u7535\u8111\u7AEF",title:"\u6807\u9898",content:"\u5185\u5BB9",collection:"\u5408\u96C6",group:"\u5206\u7EC4",custom:"\u81EA\u5B9A\u4E49",change:"\u6539\u53D8",blur:"\u5931\u53BB\u7126\u70B9",preview:"\u9884\u89C8",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",close:"\u5173\u95ED",ok:"\u786E\u5B9A",save:"\u4FDD\u5B58",refresh:"\u5237\u65B0",submit:"\u63D0\u4EA4",reset:"\u91CD\u7F6E",copy:"\u590D\u5236",delete:"\u5220\u9664",hide:"\u9690\u85CF",show:"\u663E\u793A",position:"\u4F4D\u7F6E",render:"\u6E32\u67D3",large:"\u5927",default:"\u9ED8\u8BA4",small:"\u5C0F",always:"\u5E38\u663E",never:"\u4E0D\u663E\u793A",hover:"\u60AC\u6D6E",click:"\u70B9\u51FB",button:"\u6309\u94AE",year:"\u5E74\u4EFD",month:"\u6708\u4EFD",date:"\u65E5\u671F",dates:"\u65E5\u671F\u591A\u9009",week:"\u4E00\u5468",datetime:"\u65E5\u671F\u65F6\u95F4","datetime-local":"\u65E5\u671F\u65F6\u95F4",datetimerange:"\u65E5\u671F\u65F6\u95F4\u533A\u95F4",daterange:"\u65E5\u671F\u533A\u95F4",monthrange:"\u6708\u4EFD\u533A\u95F4",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",top:"\u9876\u90E8",bottom:"\u5E95\u90E8",text:"\u6587\u5B57",icon:"\u56FE\u6807",picture:"\u56FE\u7247","picture-card":"\u5361\u7247",center:"\u5C45\u4E2D",vertical:"\u7AD6\u5411",horizontal:"\u6A2A\u5411",manage:"\u7BA1\u7406",key:"\u952E\u540D",name:"\u540D\u79F0",value:"\u503C",inputData:"\u9ED8\u8BA4\u503C",append:"\u63D2\u5165",options:"\u9009\u9879\u6570\u636E",option:"\u9009\u9879",callback:"\u56DE\u8C03",mode:"\u6A21\u5F0F",style:"\u6837\u5F0F",print:"\u6253\u5370",_self:"\u5F53\u524D\u7A97\u53E3",_blank:"\u65B0\u7684\u7A97\u53E3",_parent:"\u7236\u7EA7\u7A97\u53E3",_top:"\u9876\u7EA7\u7A97\u53E3"},slots:{prefix:"\u5934\u90E8\u5185\u5BB9",suffix:"\u5C3E\u90E8\u5185\u5BB9",prepend:"\u524D\u7F6E\u5185\u5BB9",append:"\u540E\u7F6E\u5185\u5BB9"},behavior:{add:"\u6DFB\u52A0\u52A8\u4F5C",props:{id:"\u9009\u62E9\u7EC4\u4EF6",status:"\u72B6\u6001",compute:"\u6761\u4EF6",static:"\u9759\u6001",formula:"\u8868\u8FBE\u5F0F",setFormula:"\u914D\u7F6E\u8868\u8FBE\u5F0F",continue:"\u7EE7\u7EED\u6267\u884C\u52A8\u4F5C",stop:"\u4E2D\u65AD\u6267\u884C\u52A8\u4F5C",break:"\u8DF3\u8FC7\u5F53\u524D\u52A8\u4F5C",model:"\u9009\u62E9\u5F39\u7A97",fetch:"\u914D\u7F6E\u8BF7\u6C42",response:"\u8BF7\u6C42\u7ED3\u679C",callback:"\u81EA\u5B9A\u4E49JS",ignoreError:"\u6267\u884C\u5F02\u5E38",expression:"\u6267\u884C\u6761\u4EF6",stopPropagation:"\u963B\u65AD\u6761\u4EF6",execute:"\u6267\u884C\u52A8\u4F5C",info:"\u52A8\u4F5C\u8BF4\u660E"},openModel:{name:"\u6253\u5F00\u5F39\u7A97",info:"\u6253\u5F00\u6240\u9009\u7684\u5F39\u7A97"},closeModel:{name:"\u5173\u95ED\u5F39\u7A97",info:"\u5173\u95ED\u5F53\u524D\u5F39\u7A97"},hidden:{name:"\u7EC4\u4EF6\u53EF\u89C1\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u663E\u793A/\u9690\u85CF"},disabled:{name:"\u7EC4\u4EF6\u53EF\u7528\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u542F\u7528/\u7981\u7528"},resetFields:{name:"\u91CD\u7F6E\u8868\u5355",info:"\u91CD\u7F6E\u8868\u5355\u6570\u636E"},clearFields:{name:"\u6E05\u7A7A\u8868\u5355",info:"\u6E05\u7A7A\u8868\u5355\u6570\u636E"},validate:{name:"\u6821\u9A8C\u8868\u5355",info:"\u5BF9\u6574\u4E2A\u8868\u5355\u7684\u5185\u5BB9\u8FDB\u884C\u6821\u9A8C"},validateFields:{name:"\u6821\u9A8C\u8868\u5355\u9879",info:"\u6821\u9A8C\u6240\u9009\u7684\u7684\u8868\u5355\u9879"},setValue:{name:"\u8868\u5355\u8D4B\u503C",info:"\u4FEE\u6539\u8868\u5355\u7684\u6570\u636E"},fetch:{name:"\u53D1\u9001\u8BF7\u6C42",info:"\u914D\u7F6E\u5E76\u53D1\u9001API\u8BF7\u6C42",props:{append:"\u8FFD\u52A0\u8868\u5355\u6570\u636E"},warning:{append:"\u5F00\u542F\u540E\uFF0C\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u81EA\u52A8\u8FFD\u52A0\u5230\u8868\u5355\u7684\u6570\u636E\u4E2D\u3002",response:"\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u6682\u5B58\u5230\u6307\u5B9A\u7684\u53D8\u91CF\u4E2D\u3002"}},copy:{name:"\u590D\u5236\u5185\u5BB9",info:"\u590D\u5236\u6587\u672C\u5185\u5BB9\u81F3\u7C98\u8D34\u677F"},callback:{name:"\u81EA\u5B9A\u4E49\u64CD\u4F5C",info:"\u901A\u8FC7JavaScript\u81EA\u5B9A\u4E49\u52A8\u4F5C\u903B\u8F91"},message:{name:"\u6D88\u606F\u63D0\u9192",info:"\u5F39\u51FA\u6D88\u606F\u63D0\u9192",props:{type:"\u7C7B\u578B",message:"\u63D0\u793A\u4FE1\u606F",duration:"\u6301\u7EED\u65F6\u95F4(ms)",showClose:"\u663E\u793A\u5173\u95ED\u6309\u94AE"}},submit:{name:"\u63D0\u4EA4\u8868\u5355",info:"\u624B\u52A8\u63D0\u4EA4\u8868\u5355\u5E76\u89E6\u53D1\u8868\u5355\u63D0\u4EA4\u4E8B\u4EF6"}},com:{cascader:{name:"\u7EA7\u8054\u9009\u62E9\u5668",event:{expandChange:"\u5F53\u5C55\u5F00\u8282\u70B9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",removeTag:"\u5728\u591A\u9009\u6A21\u5F0F\u4E0B\uFF0C\u79FB\u9664Tag\u65F6\u89E6\u53D1"},props:{props:"\u914D\u7F6E\u9009\u9879",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u652F\u6301\u6E05\u7A7A\u9009\u9879",showAllLevels:"\u8F93\u5165\u6846\u4E2D\u662F\u5426\u663E\u793A\u9009\u4E2D\u503C\u7684\u5B8C\u6574\u8DEF\u5F84",collapseTags:"\u591A\u9009\u6A21\u5F0F\u4E0B\u662F\u5426\u6298\u53E0Tag",collapseTagsTooltip:"\u5F53\u9F20\u6807\u60AC\u505C\u4E8E\u6298\u53E0\u6807\u7B7E\u7684\u6587\u672C\u65F6\uFF0C\u662F\u5426\u663E\u793A\u6240\u6709\u9009\u4E2D\u7684\u6807\u7B7E",separator:"\u9009\u9879\u5206\u9694\u7B26",filterable:"\u8BE5\u9009\u9879\u662F\u5426\u53EF\u4EE5\u88AB\u641C\u7D22",tagType:"\u6807\u7B7E\u7C7B\u578B"},propsOpt:{multiple:"\u662F\u5426\u591A\u9009",expandTrigger:"\u6B21\u7EA7\u83DC\u5355\u7684\u5C55\u5F00\u65B9\u5F0F",checkStrictly:"\u662F\u5426\u4E25\u683C\u7684\u9075\u5B88\u7236\u5B50\u8282\u70B9\u4E0D\u4E92\u76F8\u5173\u8054",emitPath:"\u5728\u9009\u4E2D\u8282\u70B9\u6539\u53D8\u65F6\uFF0C\u662F\u5426\u8FD4\u56DE\u7531\u8BE5\u8282\u70B9\u6240\u5728\u7684\u5404\u7EA7\u83DC\u5355\u7684\u503C\u6240\u7EC4\u6210\u7684\u6570\u7EC4",value:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",label:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",children:"\u6307\u5B9A\u9009\u9879\u7684\u5B50\u9009\u9879\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",disabled:"\u6307\u5B9A\u9009\u9879\u7684\u7981\u7528\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",leaf:"\u6307\u5B9A\u9009\u9879\u7684\u53F6\u5B50\u8282\u70B9\u7684\u6807\u5FD7\u4F4D\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C"}},checkbox:{name:"\u591A\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",type:"\u6309\u94AE\u7C7B\u578B",disabled:"\u662F\u5426\u7981\u7528",min:"\u53EF\u88AB\u52FE\u9009\u7684\u6700\u5C0F\u6570\u91CF",max:"\u53EF\u88AB\u52FE\u9009\u7684\u6700\u5927\u6570\u91CF",textColor:"\u5F53\u6309\u94AE\u4E3A\u6D3B\u8DC3\u72B6\u6001\u65F6\u7684\u5B57\u4F53\u989C\u8272",fill:"\u5F53\u6309\u94AE\u4E3A\u6D3B\u8DC3\u72B6\u6001\u65F6\u7684\u8FB9\u6846\u548C\u80CC\u666F\u989C\u8272"}},col:{name:"\u5E03\u5C40\u683C\u5B50",info:"\u901A\u8FC7\u54CD\u5E94\u5F0F\u914D\u7F6E\u591A\u7AEF\u5E03\u5C40\uFF0C\u79FB\u52A8\u7AEF\u4F1A\u81EA\u52A8\u5E94\u7528\u7B2C\u4E00\u4E2A",props:{span:"\u6805\u683C\u5360\u636E\u7684\u5217\u6570",offset:"\u6805\u683C\u5DE6\u4FA7\u7684\u95F4\u9694\u683C\u6570",push:"\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570",pull:"\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570"}},colorPicker:{name:"\u989C\u8272\u9009\u62E9\u5668",event:{activeChange:"\u9762\u677F\u4E2D\u5F53\u524D\u663E\u793A\u7684\u989C\u8272\u53D1\u751F\u6539\u53D8\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",showAlpha:"\u662F\u5426\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9",colorFormat:"\u989C\u8272\u7684\u683C\u5F0F",predefine:"\u9884\u5B9A\u4E49\u989C\u8272"}},datePicker:{name:"\u65E5\u671F",props:{pickerOptions:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",readonly:"\u5B8C\u5168\u53EA\u8BFB",disabled:"\u7981\u7528",type:"\u663E\u793A\u7C7B\u578B",editable:"\u6587\u672C\u6846\u53EF\u8F93\u5165",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",format:"\u663E\u793A\u5728\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",align:"\u5BF9\u9F50\u65B9\u5F0F",rangeSeparator:"\u9009\u62E9\u8303\u56F4\u65F6\u7684\u5206\u9694\u7B26",unlinkPanels:"\u5728\u8303\u56F4\u9009\u62E9\u5668\u91CC\u53D6\u6D88\u4E24\u4E2A\u65E5\u671F\u9762\u677F\u4E4B\u95F4\u7684\u8054\u52A8"}},dateRange:{name:"\u65E5\u671F\u533A\u95F4"},timeRange:{name:"\u65F6\u95F4\u533A\u95F4"},elAlert:{name:"\u63D0\u793A",description:"\u8BF4\u660E\u6587\u5B57",props:{title:"\u6807\u9898",type:"\u4E3B\u9898",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",center:"\u6587\u5B57\u662F\u5426\u5C45\u4E2D",closeText:"\u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C",showIcon:"\u662F\u5426\u663E\u793A\u56FE\u6807",effect:"\u9009\u62E9\u63D0\u4F9B\u7684\u4E3B\u9898"}},elButton:{name:"\u6309\u94AE",props:{formCreateChild:"\u5185\u5BB9",size:"\u5C3A\u5BF8",type:"\u7C7B\u578B",plain:"\u662F\u5426\u6734\u7D20\u6309\u94AE",round:"\u662F\u5426\u5706\u89D2\u6309\u94AE",circle:"\u662F\u5426\u5706\u5F62\u6309\u94AE",loading:"\u662F\u5426\u52A0\u8F7D\u4E2D\u72B6\u6001",disabled:"\u662F\u5426\u7981\u7528\u72B6\u6001"}},elCard:{name:"\u5361\u7247",props:{header:"\u6807\u9898",shadow:"\u9634\u5F71\u663E\u793A\u65F6\u673A"}},elCollapse:{name:"\u6298\u53E0\u9762\u677F",event:{change:"\u5207\u6362\u5F53\u524D\u6D3B\u52A8\u9762\u677F\uFF0C\u5728\u624B\u98CE\u7434\u6A21\u5F0F\u4E0B\u5176\u7C7B\u578B\u662Fstring\uFF0C\u5728\u5176\u4ED6\u6A21\u5F0F\u4E0B\u662Farray"},props:{accordion:"\u662F\u5426\u624B\u98CE\u7434\u6A21\u5F0F"}},elCollapseItem:{name:"\u9762\u677F",props:{title:"\u9762\u677F\u6807\u9898",name:"\u552F\u4E00\u6807\u5FD7\u7B26",disabled:"\u662F\u5426\u7981\u7528"}},elDescriptions:{name:"\u63CF\u8FF0\u5217\u8868",props:{title:"\u6807\u9898\u6587\u672C\uFF0C\u663E\u793A\u5728\u5DE6\u4E0A\u65B9",extra:"\u64CD\u4F5C\u533A\u6587\u672C\uFF0C\u663E\u793A\u5728\u53F3\u4E0A\u65B9",column:"\u4E00\u884C\u4E2D\u8868\u683C\u7684\u6570\u91CF",border:"\u662F\u5426\u5E26\u6709\u8FB9\u6846",direction:"\u6392\u5217\u7684\u65B9\u5411",size:"\u5217\u8868\u7684\u5C3A\u5BF8"}},elDescriptionsItem:{name:"\u63CF\u8FF0\u683C\u5B50",props:{label:"\u6807\u7B7E\u6587\u672C",__child:"\u5185\u5BB9",span:"\u5217\u7684\u6570\u91CF",width:"\u5217\u7684\u5BBD\u5EA6\uFF0C\u4E0D\u540C\u884C\u76F8\u540C\u5217\u7684\u5BBD\u5EA6\u6309\u6700\u5927\u503C\u8BBE\u5B9A\uFF08\u5982\u65E0 border \uFF0C\u5BBD\u5EA6\u5305\u542B\u6807\u7B7E\u4E0E\u5185\u5BB9",minWidth:"\u5217\u7684\u6700\u5C0F\u5BBD\u5EA6",align:"\u5217\u7684\u5185\u5BB9\u5BF9\u9F50\u65B9\u5F0F\uFF08\u5982\u65E0 border\uFF0C\u5BF9\u6807\u7B7E\u548C\u5185\u5BB9\u5747\u751F\u6548\uFF09",labelAlign:"\u5217\u7684\u6807\u7B7E\u5BF9\u9F50\u65B9\u5F0F\uFF0C\u82E5\u4E0D\u8BBE\u7F6E\u8BE5\u9879\uFF0C\u5219\u4F7F\u7528\u5185\u5BB9\u7684\u5BF9\u9F50\u65B9\u5F0F\uFF08\u5982\u65E0 border\uFF0C\u8BF7\u4F7F\u7528 align \u53C2\u6570\uFF09",className:"\u5217\u7684\u5185\u5BB9\u81EA\u5B9A\u4E49\u7C7B\u540D"}},elDivider:{name:"\u5206\u5272\u7EBF",props:{direction:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",formCreateChild:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848",contentPosition:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E"}},elTabPane:{name:"\u9009\u9879\u5361",props:{label:"\u9009\u9879\u5361\u6807\u9898",disabled:"\u662F\u5426\u7981\u7528",name:"\u9009\u9879\u5361\u7684\u6807\u8BC6\u7B26",lazy:"\u6807\u7B7E\u662F\u5426\u5EF6\u8FDF\u6E32\u67D3"}},elTabs:{name:"\u6807\u7B7E\u9875",event:{tabClick:"tab \u88AB\u9009\u4E2D\u65F6\u89E6\u53D1",tabChange:"activeName \u6539\u53D8\u65F6\u89E6\u53D1",tabRemove:"\u70B9\u51FB tab \u79FB\u9664\u6309\u94AE\u65F6\u89E6\u53D1",tabAdd:"\u70B9\u51FB tab \u65B0\u589E\u6309\u94AE\u65F6\u89E6\u53D1",edit:"\u70B9\u51FB tab \u7684\u65B0\u589E\u6216\u79FB\u9664\u6309\u94AE\u540E\u89E6\u53D1"},props:{type:"\u98CE\u683C\u7C7B\u578B",closable:"\u6807\u7B7E\u662F\u5426\u53EF\u5173\u95ED",tabPosition:"\u9009\u9879\u5361\u6240\u5728\u4F4D\u7F6E",stretch:"\u6807\u7B7E\u7684\u5BBD\u5EA6\u662F\u5426\u81EA\u6491\u5F00"}},elTag:{name:"\u6807\u7B7E",props:{formCreateChild:"\u6807\u7B7E\u5185\u5BB9",type:"\u6807\u7B7E\u7684\u7C7B\u578B",size:"\u6807\u7B7E\u7684\u5C3A\u5BF8",effect:"\u6807\u7B7E\u7684\u4E3B\u9898",closable:"\u662F\u5426\u53EF\u5173\u95ED",disableTransitions:"\u662F\u5426\u7981\u7528\u6E10\u53D8\u52A8\u753B",hit:"\u662F\u5426\u6709\u8FB9\u6846\u63CF\u8FB9",round:"\u662F\u5426\u4E3A\u5706\u5F62",color:"\u80CC\u666F\u8272"}},elTransfer:{name:"\u7A7F\u68AD\u6846",event:{leftCheckChange:"\u5DE6\u4FA7\u5217\u8868\u5143\u7D20\u88AB\u7528\u6237\u9009\u4E2D / \u53D6\u6D88\u9009\u4E2D\u65F6\u89E6\u53D1",rightCheckChange:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u88AB\u7528\u6237\u9009\u4E2D / \u53D6\u6D88\u9009\u4E2D\u65F6\u89E6\u53D1"},props:{filterable:"\u662F\u5426\u53EF\u641C\u7D22",filterPlaceholder:"\u641C\u7D22\u6846\u5360\u4F4D\u7B26",targetOrder:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u7684\u6392\u5E8F\u7B56\u7565",targetOrderInfo:"\u82E5\u4E3A original\uFF0C\u5219\u4FDD\u6301\u4E0E\u6570\u636E\u76F8\u540C\u7684\u987A\u5E8F\uFF1B\u82E5\u4E3A push\uFF0C\u5219\u65B0\u52A0\u5165\u7684\u5143\u7D20\u6392\u5728\u6700\u540E\uFF1B\u82E5\u4E3A unshift\uFF0C\u5219\u65B0\u52A0\u5165\u7684\u5143\u7D20\u6392\u5728\u6700\u524D",titles:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898",buttonTexts:"\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u6848",props:"\u6570\u636E\u6E90\u7684\u5B57\u6BB5\u522B\u540D"}},elTreeSelect:{name:"\u6811\u5F62\u9009\u62E9",event:{removeTag:"\u591A\u9009\u6A21\u5F0F\u4E0B\u79FB\u9664tag\u65F6\u89E6\u53D1"},props:{multiple:"\u662F\u5426\u591A\u9009",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",collapseTags:"\u591A\u9009\u65F6\u662F\u5426\u5C06\u9009\u4E2D\u503C\u6309\u6587\u5B57\u7684\u5F62\u5F0F\u5C55\u793A",multipleLimit:"\u591A\u9009\u65F6\u7528\u6237\u6700\u591A\u53EF\u4EE5\u9009\u62E9\u7684\u9879\u76EE\u6570\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",placeholder:"\u5360\u4F4D\u7B26",props:"\u914D\u7F6E\u9009\u9879",checkStrictly:"\u5728\u663E\u793A\u590D\u9009\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u4E25\u683C\u7684\u9075\u5FAA\u7236\u5B50\u4E0D\u4E92\u76F8\u5173\u8054\u7684\u505A\u6CD5",renderAfterExpand:"\u662F\u5426\u5728\u7B2C\u4E00\u6B21\u5C55\u5F00\u67D0\u4E2A\u6811\u8282\u70B9\u540E\u624D\u6E32\u67D3\u5176\u5B50\u8282\u70B9",defaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9",expandOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9",checkOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9",nodeKey:"\u6BCF\u4E2A\u6811\u8282\u70B9\u7528\u6765\u4F5C\u4E3A\u552F\u4E00\u6807\u8BC6\u7684\u5C5E\u6027\uFF0C\u6574\u68F5\u6811\u5E94\u8BE5\u662F\u552F\u4E00\u7684"}},elLink:{name:"\u94FE\u63A5",props:{formCreateChild:"\u5185\u5BB9",href:"\u8DF3\u8F6C\u94FE\u63A5",type:"\u7C7B\u578B",underline:"\u662F\u5426\u663E\u793A\u4E0B\u5212\u7EBF",disabled:"\u662F\u5426\u7981\u7528",target:"\u6253\u5F00\u65B9\u5F0F"}},elWatermark:{name:"\u6C34\u5370",props:{content:"\u6C34\u5370\u6587\u672C\u5185\u5BB9",image:"\u6C34\u5370\u56FE\u7247\uFF0C\u5EFA\u8BAE\u4F7F\u7528 2x \u6216 3x \u56FE\u50CF",width:"\u6C34\u5370\u7684\u5BBD\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u5BBD\u5EA6",height:"\u6C34\u5370\u7684\u9AD8\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u9AD8\u5EA6",rotate:"\u6C34\u5370\u7684\u65CB\u8F6C\u89D2\u5EA6, \u5355\u4F4D \xB0",zIndex:"\u6C34\u5370\u5143\u7D20\u7684z-index\u503C",gap:"\u6C34\u5370\u4E4B\u95F4\u7684\u95F4\u8DDD"}},elTooltip:{name:"\u6587\u5B57\u63D0\u793A",props:{content:"\u663E\u793A\u7684\u5185\u5BB9",disabled:"\u662F\u5426\u7981\u7528",rawContent:"\u5185\u5BB9\u662F\u5426\u4F5C\u4E3A HTML \u5B57\u7B26\u4E32\u5904\u7406",enterable:"\u9F20\u6807\u662F\u5426\u53EF\u8FDB\u5165\u5230 Tooltip \u4E2D",effect:"\u4E3B\u9898",placement:"Tooltip \u7EC4\u4EF6\u51FA\u73B0\u7684\u4F4D\u7F6E",trigger:"\u5982\u4F55\u89E6\u53D1 Tooltip",offset:"\u51FA\u73B0\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF",showAfter:"\u5728\u89E6\u53D1\u540E\u591A\u4E45\u663E\u793A\u5185\u5BB9\uFF0C\u5355\u4F4D\u6BEB\u79D2",hideAfter:"\u5EF6\u8FDF\u5173\u95ED\uFF0C\u5355\u4F4D\u6BEB\u79D2",autoClose:"\u51FA\u73B0\u540E\u81EA\u52A8\u9690\u85CF\u5EF6\u65F6\uFF0C\u5355\u4F4D\u6BEB\u79D2"}},elImage:{name:"\u56FE\u7247",props:{src:"\u56FE\u7247\u94FE\u63A5",previewSrcList:"\u9884\u89C8\u56FE\u7247\u5217\u8868"}},elAvatar:{name:"\u5934\u50CF\u6846",props:{src:"\u56FE\u7247\u94FE\u63A5",shape:"\u5F62\u72B6",size:"\u5C3A\u5BF8"}},elMention:{name:"\u63D0\u53CA",event:{search:"\u6309\u4E0B\u89E6\u53D1\u5B57\u6BB5\u65F6\u89E6\u53D1",select:"\u5F53\u7528\u6237\u9009\u62E9\u9009\u9879\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",whole:"\u5F53\u9000\u683C\u952E\u88AB\u6309\u4E0B\u505A\u5220\u9664\u64CD\u4F5C\u65F6\uFF0C\u662F\u5426\u5C06\u63D0\u53CA\u90E8\u5206\u4F5C\u4E3A\u6574\u4F53\u5220\u9664",checkIsWhole:"\u5F53\u9000\u683C\u952E\u88AB\u6309\u4E0B\u505A\u5220\u9664\u64CD\u4F5C\u65F6\uFF0C\u68C0\u67E5\u662F\u5426\u5C06\u63D0\u53CA\u90E8\u5206\u4F5C\u4E3A\u6574\u4F53\u5220\u9664",filterOption:"\u7B5B\u9009\u5668\u9009\u9879\u903B\u8F91"}},elSegmented:{name:"\u5206\u6BB5\u63A7\u5236\u5668",props:{size:"\u5C3A\u5BF8",block:"\u6491\u6EE1\u7236\u5143\u7D20\u5BBD\u5EA6",disabled:"\u662F\u5426\u7981\u7528"}},elFormItem:{name:"\u8868\u5355\u9879",props:{label:"\u6807\u7B7E\u6587\u672C",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",size:"\u5C3A\u5BF8"}},elStatistic:{name:"\u7EDF\u8BA1\u680F",props:{value:"\u6570\u503C",title:"\u6807\u9898",prefix:"\u6570\u503C\u7684\u524D\u7F00",suffix:"\u6570\u503C\u7684\u540E\u7F00"}},fcTitle:{name:"\u6807\u9898",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",align:"\u5BF9\u9F50\u65B9\u5F0F"}},fcId:{name:"\u552F\u4E00\u503C",props:{prefix:"\u524D\u7F00"}},fcCity:{name:"\u7701\u5E02\u533A\u9009\u62E9\u5668",props:{api:"\u6570\u636E\u94FE\u63A5 URI",level:"\u7C7B\u578B",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",filter:"\u6570\u636E\u8FC7\u6EE4,\u8FD4\u56DE\u53EF\u9009\u62E9\u6570\u636E"}},fcCell:{name:"\u683C\u5B50"},fcEditor:{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},fcFlex:{name:"\u76D2\u5B50\u5E03\u5C40"},fcFlex2:{name:"\u76D2\u5B50\u5E03\u5C40",horizontal:"\u6C34\u5E73\u5C45\u4E2D",vertical:"\u5782\u76F4\u5C45\u4E2D",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",reset:"\u91CD\u7F6E\u5E03\u5C40"},fcRow:{name:"\u6805\u683C\u5E03\u5C40",props:{gutter:"\u6805\u683C\u95F4\u9694",type:"flex\u5E03\u5C40\u6A21\u5F0F",justify:"flex\u5E03\u5C40\u4E0B\u7684\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",align:"flex\u5E03\u5C40\u4E0B\u7684\u5782\u76F4\u6392\u5217\u65B9\u5F0F"}},fcDialog:{name:"\u5F39\u51FA\u6846",props:{title:"\u6807\u9898",width:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",fullscreen:"\u662F\u5426\u4E3A\u5168\u5C4F",modal:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",beforeClose:"\u5173\u95ED\u524D\u7684\u56DE\u8C03"}},fcDrawer:{name:"\u62BD\u5C49",props:{title:"\u6807\u9898",size:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",direction:"\u6253\u5F00\u7684\u65B9\u5411",modal:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",beforeClose:"\u5173\u95ED\u524D\u7684\u56DE\u8C03"},directionType:{ltr:"\u5DE6\u4FA7",rtl:"\u53F3\u4FA7"}},fcTable:{name:"\u8868\u683C\u5E03\u5C40",props:{mini:"\u7D27\u51D1\u6A21\u5F0F",border:"\u662F\u5426\u663E\u793A\u8FB9\u6846",borderColor:"\u8FB9\u6846\u989C\u8272",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6"}},fcTableGrid:{name:"\u683C\u5B50"},fcValue:{name:"\u8BA1\u7B97\u516C\u5F0F",empty:"\u5728\u53F3\u4FA7\u914D\u7F6E\u4E2D\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"},fcSlot:{name:"\u63D2\u69FD\u533A\u57DF",empty:"\u901A\u8FC7\u5B9A\u4E49\u63D2\u69FD {tag} \u586B\u5145\u533A\u57DF",props:{name:"\u63D2\u69FD\u540D\u79F0"}},fcJson:{name:"\u52A8\u6001\u533A\u57DF",empty:"\u901A\u8FC7\u52A0\u8F7D {tag} \u89C4\u5219\u586B\u5145\u533A\u57DF",props:{_loadType:"JSON \u89C4\u5219",type:"\u7C7B\u578B"}},lineChart:{name:"\u6298\u7EBF\u56FE",data:"\u56FE\u8868\u6570\u636E",pieTypeOpt:{pie:"\u5706\u5F62",doughnut:"\u73AF\u5F62","half-doughnut":"\u534A\u73AF\u5F62"},funnelSortOpt:{descending:"\u5012\u5E8F",ascending:"\u6B63\u5E8F"},props:{title:"\u56FE\u8868\u7684\u540D\u79F0",subtitle:"\u56FE\u8868\u7684\u7B80\u4ECB",valueFormat:"\u683C\u5F0F\u5316\u6570\u503C\u663E\u793A",stack:"\u591A\u5217\u6570\u636E\u65F6\u662F\u5426\u5806\u53E0",smooth:"\u7EBF\u6761\u662F\u5426\u5E73\u6ED1\u8FC7\u6E21",showLegend:"\u662F\u5426\u663E\u793A\u6807\u8BB0",showSeriesLabel:"\u662F\u5426\u663E\u793A\u6570\u503C",barBackgroundColor:"\u67F1\u72B6\u7684\u80CC\u666F\u8272",funnelSort:"\u6392\u5E8F\u65B9\u5F0F",pieType:"\u5F62\u72B6",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",value:"\u6570\u503C",indicator:"\u6307\u793A\u5668",loadOptions:"\u521D\u59CB\u5316"}},areaChart:{name:"\u4F53\u79EF\u56FE"},barChart:{name:"\u67F1\u72B6\u56FE"},customChart:{name:"\u81EA\u5B9A\u4E49\u56FE\u8868"},funnelChart:{name:"\u6F0F\u6597\u56FE"},gaugeChart:{name:"\u4EEA\u8868\u76D8"},pieChart:{name:"\u997C\u56FE"},radarChart:{name:"\u96F7\u8FBE\u56FE"},scatterChart:{name:"\u6563\u70B9\u56FE"},stripeChart:{name:"\u6761\u5F62\u56FE"},fcInlineForm:{name:"\u884C\u5185\u5E03\u5C40"},group:{name:"\u5B50\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001",expand:"\u8BBE\u7F6E\u9ED8\u8BA4\u5C55\u5F00\u51E0\u9879",button:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",sortBtn:"\u662F\u5426\u663E\u793A\u6392\u5E8F\u6309\u94AE",min:"\u8BBE\u7F6E\u6700\u5C0F\u6DFB\u52A0\u51E0\u9879",max:"\u8BBE\u7F6E\u6700\u591A\u6DFB\u52A0\u51E0\u9879"}},html:{name:"HTML",props:{formCreateChild:"\u5185\u5BB9"}},input:{name:"\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB"}},inputNumber:{name:"\u6570\u5B57\u8F93\u5165\u6846",props:{precision:"\u6570\u503C\u7CBE\u5EA6",min:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503C",max:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503C",step:"\u8BA1\u6570\u5668\u6B65\u957F",stepStrictly:"\u662F\u5426\u53EA\u80FD\u8F93\u5165 step \u7684\u500D\u6570",disabled:"\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668",controls:"\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AE",controlsPosition:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"}},password:{name:"\u5BC6\u7801\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"}},radio:{name:"\u5355\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",disabled:"\u662F\u5426\u7981\u7528",type:"\u6309\u94AE\u5F62\u5F0F",textColor:"\u6309\u94AE\u5F62\u5F0F\u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272",fill:"\u6309\u94AE\u5F62\u5F0F\u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}},rate:{name:"\u8BC4\u5206",props:{max:"\u6700\u5927\u5206\u503C",disabled:"\u662F\u5426\u7981\u7528",allowHalf:"\u662F\u5426\u5141\u8BB8\u534A\u9009",voidColor:"\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u989C\u8272",disabledVoidColor:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u989C\u8272",voidIconClass:"\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u7C7B\u540D",disabledVoidIconClass:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u7C7B\u540D",showScore:"\u662F\u5426\u663E\u793A\u5F53\u524D\u5206\u6570",textColor:"\u8F85\u52A9\u6587\u5B57\u7684\u989C\u8272",scoreTemplate:"\u5206\u6570\u663E\u793A\u6A21\u677F"}},fcDataSelect:{name:"\u5B50\u8868\u5355\u9009\u62E9\u5668"},select:{name:"\u9009\u62E9\u5668",title:"\u8BF7\u9009\u62E9",emptyText:"\u62D6\u62FD\u7EC4\u4EF6\u914D\u7F6E\u641C\u7D22\u6761\u4EF6",event:{removeTag:"\u591A\u9009\u6A21\u5F0F\u4E0B\u79FB\u9664tag\u65F6\u89E6\u53D1"},props:{title:"\u6807\u9898",valueKey:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",labelKey:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",autoLoad:"\u81EA\u52A8\u89E6\u53D1\u641C\u7D22",multiple:"\u662F\u5426\u591A\u9009",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",collapseTags:"\u591A\u9009\u65F6\u662F\u5426\u5C06\u9009\u4E2D\u503C\u6309\u6587\u5B57\u7684\u5F62\u5F0F\u5C55\u793A",multipleLimit:"\u591A\u9009\u65F6\u7528\u6237\u6700\u591A\u53EF\u4EE5\u9009\u62E9\u7684\u9879\u76EE\u6570\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",placeholder:"\u5360\u4F4D\u7B26",filterable:"\u662F\u5426\u53EF\u641C\u7D22",allowCreate:"\u662F\u5426\u5141\u8BB8\u7528\u6237\u521B\u5EFA\u65B0\u6761\u76EE",noMatchText:"\u641C\u7D22\u6761\u4EF6\u65E0\u5339\u914D\u65F6\u663E\u793A\u7684\u6587\u5B57",noDataText:"\u9009\u9879\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u6587\u5B57",reserveKeyword:"\u591A\u9009\u4E14\u53EF\u641C\u7D22\u65F6\uFF0C\u662F\u5426\u5728\u9009\u4E2D\u4E00\u4E2A\u9009\u9879\u540E\u4FDD\u7559\u5F53\u524D\u7684\u641C\u7D22\u5173\u952E\u8BCD",defaultFirstOption:"\u5728\u8F93\u5165\u6846\u6309\u4E0B\u56DE\u8F66\uFF0C\u9009\u62E9\u7B2C\u4E00\u4E2A\u5339\u914D\u9879",remote:"\u5176\u4E2D\u7684\u9009\u9879\u662F\u5426\u4ECE\u670D\u52A1\u5668\u8FDC\u7A0B\u52A0\u8F7D",remoteMethod:"\u81EA\u5B9A\u4E49\u8FDC\u7A0B\u641C\u7D22\u65B9\u6CD5"}},slider:{name:"\u6ED1\u5757",props:{min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",disabled:"\u662F\u5426\u7981\u7528",step:"\u6B65\u957F",showInput:"\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\uFF0C\u4EC5\u5728\u975E\u8303\u56F4\u9009\u62E9\u65F6\u6709\u6548",showInputControls:"\u5728\u663E\u793A\u8F93\u5165\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\u7684\u63A7\u5236\u6309\u94AE",showStops:"\u662F\u5426\u663E\u793A\u95F4\u65AD\u70B9",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u6A21\u5F0F",height:"Slider \u9AD8\u5EA6\uFF0C\u7AD6\u5411\u6A21\u5F0F\u65F6\u5FC5\u586B"}},space:{name:"\u95F4\u8DDD"},stepForm:{name:"\u5206\u6B65\u8868\u5355",event:{next:"\u70B9\u51FB\u4E0B\u4E00\u6B65\u6309\u94AE\u65F6\u89E6\u53D1"},props:{submitBtn:"\u663E\u793A\u63D0\u4EA4\u6309\u94AE",autoValidate:"\u8FDB\u5165\u4E0B\u4E00\u6B65\u524D\u81EA\u52A8\u9A8C\u8BC1\u8868\u5355","stepsProps>alignCenter":"\u8FDB\u884C\u5C45\u4E2D\u5BF9\u9F50","stepsProps>simple":"\u662F\u5426\u5E94\u7528\u7B80\u6D01\u98CE\u683C"}},stepFormItem:{name:"\u6B65\u9AA4\u6761",props:{title:"\u6807\u9898",description:"\u63CF\u8FF0\u6587\u6848"}},subForm:{name:"\u5206\u7EC4",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001"}},switch:{name:"\u5F00\u5173",slots:{"active-action":"\u6253\u5F00\u65F6\u7684\u5185\u5BB9","inactive-action":"\u5173\u95ED\u65F6\u7684\u5185\u5BB9"},props:{disabled:"\u662F\u5426\u7981\u7528",width:"\u5BBD\u5EA6\uFF08px\uFF09",activeText:"\u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",inactiveText:"\u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",activeValue:"\u6253\u5F00\u65F6\u7684\u503C",inactiveValue:"\u5173\u95ED\u65F6\u7684\u503C",activeColor:"\u6253\u5F00\u65F6\u7684\u80CC\u666F\u8272",inactiveColor:"\u5173\u95ED\u65F6\u7684\u80CC\u666F\u8272"}},tableForm:{name:"\u8868\u683C\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",filterEmptyColumn:"\u662F\u5426\u8FC7\u6EE4\u7A7A\u884C\u7684\u6570\u636E",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",min:"\u6700\u5C11\u6DFB\u52A0\u51E0\u884C",size:"\u5C3A\u5BF8",emptyText:"\u7A7A\u6570\u636E\u65F6\u663E\u793A\u7684\u6587\u672C\u5185\u5BB9",height:"\u9AD8\u5EA6",showIndex:"\u663E\u793A\u884C\u53F7",stripe:"\u663E\u793A\u6591\u9A6C\u7EB9",border:"\u8FB9\u6846",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875",addable:"\u5141\u8BB8\u65B0\u589E",deletable:"\u5141\u8BB8\u5220\u9664",newColumn:"\u9ED8\u8BA4\u663E\u793A\u65B0\u884C","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>small":"\u4F7F\u7528\u5C0F\u578B\u5206\u9875\u6837\u5F0F","page>props>background":"\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272"}},tableFormPro:{name:"\u8868\u683C\u8868\u5355Pro",event:{handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6"}},nestedTableForm:{name:"\u5D4C\u5957\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",nestedMax:"\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},infiniteTableForm:{name:"\u65E0\u9650\u7EA7\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",childrenField:"\u8BBE\u7F6E\u5B50\u7EA7\u7684\u5B57\u6BB5\u540D",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",layerMax:"\u6700\u591A\u6DFB\u52A0\u51E0\u5C42\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},nestedSubTableForm:{name:"\u5B50\u8868\u683C\u8868\u5355"},tableFormColumn:{name:"\u8868\u683C\u683C\u5B50",label:"\u81EA\u5B9A\u4E49\u540D\u79F0",props:{label:"\u6807\u9898",header:"\u8868\u5934",fixed:"\u4F4D\u7F6E",width:"\u5BBD\u5EA6",color:"\u989C\u8272",hidden:"\u662F\u5426\u9690\u85CF",required:"\u662F\u5426\u663E\u793A\u5FC5\u586B\u661F\u53F7"}},tableFormColumn2:{name:"\u8868\u683C\u683C\u5B50",header:"\u914D\u7F6E\u5F53\u524D\u5217\u7684\u8868\u5934\u540D\u79F0\uFF0C\u91CD\u590D\u7684\u8868\u5934\u5C06\u81EA\u52A8\u5408\u5E76\u3002"},dataTable:{name:"\u6570\u636E\u8868\u683C",handle:"\u7981\u7528\u903B\u8F91",click:"\u70B9\u51FB\u4E8B\u4EF6",filter:"\u7B5B\u9009",header:"\u8868\u5934",event:{cellMouseEnter:"\u5F53\u5355\u5143\u683C hover \u8FDB\u5165\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",cellMouseLeave:"\u5F53\u5355\u5143\u683C hover \u9000\u51FA\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",rowClick:"\u5F53\u67D0\u4E00\u884C\u88AB\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",rowDblclick:"\u5F53\u67D0\u4E00\u884C\u88AB\u53CC\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",headerClick:"\u5F53\u67D0\u4E00\u5217\u7684\u8868\u5934\u88AB\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",filterChange:"\u7B5B\u9009\u6761\u4EF6\u53D8\u5316\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",expandChange:"\u5F53\u7528\u6237\u5BF9\u67D0\u4E00\u884C\u5C55\u5F00\u6216\u8005\u5173\u95ED\u7684\u65F6\u5019\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",sortChange:"\u5F53\u8868\u683C\u7684\u6392\u5E8F\u6761\u4EF6\u53D1\u751F\u53D8\u5316\u7684\u65F6\u5019\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",selectionChange:"\u5F53\u9009\u62E9\u9879\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1"},button:{title:"\u64CD\u4F5C\u6309\u94AE",btn:"\u914D\u7F6E\u64CD\u4F5C\u6309\u94AE",link:"\u6587\u5B57",round:"\u5706\u89D2",plain:"\u6734\u7D20",disabled:"\u7981\u7528"},column:{title:"\u5217\u8868\u7BA1\u7406",btn:"\u914D\u7F6E\u8868\u683C\u5217\u8868",prop:"\u5B57\u6BB5\u540D\u79F0",sort:"\u6392\u5E8F"},format:{default:"\u5E38\u89C4",tag:"\u6807\u7B7E",image:"\u56FE\u7247",custom:"\u81EA\u5B9A\u4E49"},fixed:{default:"\u5E38\u89C4",left:"\u5DE6\u60AC\u6D6E",right:"\u53F3\u60AC\u6D6E"},sortable:{disabled:"\u4E0D\u6392\u5E8F",default:"\u5E38\u89C4\u6392\u5E8F",custom:"\u63A5\u53E3\u6392\u5E8F"},props:{_optionType:"\u8868\u683C\u6570\u636E","page>totalField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u603B\u6761\u76EE\u6570\u7684\u5B57\u6BB5\u540D\u79F0","page>dataField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u5217\u8868\u6570\u636E\u7684\u5B57\u6BB5\u540D\u79F0","page>orderField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u7684\u53C2\u6570\u540D\u79F0","page>orderByField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u65B9\u5F0F\u7684\u53C2\u6570\u540D\u79F0","page>pageField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u9875\u7801\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)","page>pageSizeField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6761\u76EE\u6570\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)",column:"\u8868\u683C\u7BA1\u7406",showSummary:"\u662F\u5426\u5728\u8868\u5C3E\u663E\u793A\u5408\u8BA1\u884C",selection:"\u662F\u5426\u663E\u793A\u591A\u9009\u6846",size:"\u5C3A\u5BF8",rowKey:"\u884C\u6570\u636E\u7684Key",emptyText:"\u7A7A\u6570\u636E\u65F6\u663E\u793A\u7684\u6587\u672C\u5185\u5BB9",height:"\u9AD8\u5EA6",index:"\u663E\u793A\u884C\u53F7",stripe:"\u663E\u793A\u6591\u9A6C\u7EB9",border:"\u8FB9\u6846",defaultExpandAll:"\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u884C",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>position":"\u4F4D\u7F6E","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>small":"\u4F7F\u7528\u5C0F\u578B\u5206\u9875\u6837\u5F0F","page>props>background":"\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272"},requiredName:"\u8BF7\u8F93\u5165\u6309\u94AE\u540D\u79F0",requiredKey:"\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u8BC6",requiredLabel:"\u8BF7\u8F93\u5165\u6807\u9898",requiredRender:"\u8BF7\u8F93\u5165\u6E32\u67D3\u51FD\u6570"},text:{name:"\u6587\u5B57",props:{formCreateChild:"\u5185\u5BB9"}},textarea:{name:"\u591A\u884C\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",showWordLimit:"\u662F\u5426\u663E\u793A\u7EDF\u8BA1\u5B57\u6570",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",rows:"\u8F93\u5165\u6846\u884C\u6570",autosize:"\u9AD8\u5EA6\u662F\u5426\u81EA\u9002\u5E94"}},timePicker:{name:"\u65F6\u95F4","HH:mm:ss":"\u65F6:\u5206:\u79D2","HH:mm":"\u65F6:\u5206",props:{__format:"\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",pickerOptions:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",readonly:"\u5B8C\u5168\u53EA\u8BFB",disabled:"\u7981\u7528",editable:"\u6587\u672C\u6846\u53EF\u8F93\u5165",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",isRange:"\u662F\u5426\u4E3A\u65F6\u95F4\u8303\u56F4\u9009\u62E9",arrowControl:"\u662F\u5426\u4F7F\u7528\u7BAD\u5934\u8FDB\u884C\u65F6\u95F4\u9009\u62E9",align:"\u5BF9\u9F50\u65B9\u5F0F"}},tree:{name:"\u6811\u5F62\u63A7\u4EF6",event:{nodeClick:"\u5F53\u8282\u70B9\u88AB\u70B9\u51FB\u7684\u65F6\u5019\u89E6\u53D1",nodeContextmenu:"\u5F53\u67D0\u4E00\u8282\u70B9\u88AB\u9F20\u6807\u53F3\u952E\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",checkChange:"\u5F53\u590D\u9009\u6846\u88AB\u70B9\u51FB\u7684\u65F6\u5019\u89E6\u53D1",check:"\u70B9\u51FB\u8282\u70B9\u590D\u9009\u6846\u4E4B\u540E\u89E6\u53D1",currentChange:"\u5F53\u524D\u9009\u4E2D\u8282\u70B9\u53D8\u5316\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeExpand:"\u8282\u70B9\u88AB\u5C55\u5F00\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeCollapse:"\u8282\u70B9\u88AB\u5173\u95ED\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragStart:"\u8282\u70B9\u5F00\u59CB\u62D6\u62FD\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragEnter:"\u62D6\u62FD\u8FDB\u5165\u5176\u4ED6\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragLeave:"\u62D6\u62FD\u79BB\u5F00\u67D0\u4E2A\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragOver:"\u5728\u62D6\u62FD\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6\uFF08\u7C7B\u4F3C\u6D4F\u89C8\u5668\u7684 mouseover \u4E8B\u4EF6\uFF09",nodeDragEnd:"\u62D6\u62FD\u7ED3\u675F\u65F6\uFF08\u53EF\u80FD\u672A\u6210\u529F\uFF09\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDrop:"\u62D6\u62FD\u6210\u529F\u5B8C\u6210\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6"},props:{emptyText:"\u5185\u5BB9\u4E3A\u7A7A\u7684\u65F6\u5019\u5C55\u793A\u7684\u6587\u672C",props:"\u914D\u7F6E\u9009\u9879",renderAfterExpand:"\u662F\u5426\u5728\u7B2C\u4E00\u6B21\u5C55\u5F00\u67D0\u4E2A\u6811\u8282\u70B9\u540E\u624D\u6E32\u67D3\u5176\u5B50\u8282\u70B9",defaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9",expandOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\uFF0C\u5982\u679C\u4E3A false\uFF0C\u5219\u53EA\u6709\u70B9\u7BAD\u5934\u56FE\u6807\u7684\u65F6\u5019\u624D\u4F1A\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\u3002",checkOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9",autoExpandParent:"\u5C55\u5F00\u5B50\u8282\u70B9\u7684\u65F6\u5019\u662F\u5426\u81EA\u52A8\u5C55\u5F00\u7236\u8282\u70B9",checkStrictly:"\u5728\u663E\u793A\u590D\u9009\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u4E25\u683C\u7684\u9075\u5FAA\u7236\u5B50\u4E0D\u4E92\u76F8\u5173\u8054\u7684\u505A\u6CD5",accordion:"\u662F\u5426\u6BCF\u6B21\u53EA\u6253\u5F00\u4E00\u4E2A\u540C\u7EA7\u6811\u8282\u70B9\u5C55\u5F00",indent:"\u76F8\u90BB\u7EA7\u8282\u70B9\u95F4\u7684\u6C34\u5E73\u7F29\u8FDB(px)",nodeKey:"\u6BCF\u4E2A\u6811\u8282\u70B9\u7528\u6765\u4F5C\u4E3A\u552F\u4E00\u6807\u8BC6\u7684\u5C5E\u6027\uFF0C\u6574\u68F5\u6811\u5E94\u8BE5\u662F\u552F\u4E00\u7684"}},upload:{name:"\u4E0A\u4F20",info:"\u4E0A\u4F20\u6210\u529F\u540E\uFF0C\u5C06\u63A5\u53E3\u8FD4\u56DE\u7684 URL \u8D4B\u503C\u7ED9 file.url\uFF0C\u6216\u5C06\u8FD4\u56DE\u7ED3\u679C\u8D4B\u503C\u7ED9 file.value\uFF0C\u4EE5\u4FBF\u5728\u540E\u7EED\u7684\u8868\u5355\u63D0\u4EA4\u65F6\u83B7\u53D6\u8FD9\u4E9B\u6570\u636E\u3002",event:{remove:"\u6587\u4EF6\u5217\u8868\u79FB\u9664\u6587\u4EF6\u65F6\u89E6\u53D1",preview:"\u70B9\u51FB\u6587\u4EF6\u5217\u8868\u4E2D\u5DF2\u4E0A\u4F20\u7684\u6587\u4EF6\u65F6\u89E6\u53D1",error:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\u65F6\u89E6\u53D1",progress:"\u6587\u4EF6\u4E0A\u4F20\u65F6\u89E6\u53D1",exceed:"\u5F53\u8D85\u51FA\u9650\u5236\u65F6\u89E6\u53D1"},slots:{tip:"\u8BF4\u660E"},props:{listType:"\u4E0A\u4F20\u7C7B\u578B",multiple:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",action:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)",beforeUpload:"\u4E0A\u4F20\u6587\u4EF6\u4E4B\u524D\u89E6\u53D1",onSuccess:"\u4E0A\u4F20\u6210\u529F\u65F6\u89E6\u53D1",beforeRemove:"\u5220\u9664\u6587\u4EF6\u4E4B\u524D\u89E6\u53D1",headers:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",data:"\u4E0A\u4F20\u65F6\u9644\u5E26\u7684\u989D\u5916\u53C2\u6570",name:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D",withCredentials:"\u652F\u6301\u53D1\u9001 cookie \u51ED\u8BC1\u4FE1\u606F",accept:"\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B",autoUpload:"\u662F\u5426\u5728\u9009\u53D6\u6587\u4EF6\u540E\u7ACB\u5373\u8FDB\u884C\u4E0A\u4F20",disabled:"\u662F\u5426\u7981\u7528",limit:"\u6700\u5927\u5141\u8BB8\u4E0A\u4F20\u4E2A\u6570"}},audioBox:{name:"\u97F3\u9891\u64AD\u653E\u5668",preloadOpt:{auto:"\u81EA\u52A8",metadata:"\u5143\u6570\u636E",none:"\u7981\u6B62"},event:{pause:"\u97F3\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u97F3\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u97F3\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u97F3\u9891\u5730\u5740",type:"\u97F3\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",muted:"\u662F\u5426\u9759\u97F3",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",preload:"\u9884\u52A0\u8F7D"}},barCodeBox:{name:"\u6761\u5F62\u7801",props:{value:"\u5185\u5BB9",format:"\u6761\u5F62\u7801\u7684\u7C7B\u578B",width:"\u5355\u4E2A\u6761\u5F62\u7684\u5BBD\u5EA6",height:"\u6761\u5F62\u7801\u7684\u9AD8\u5EA6",displayValue:"\u662F\u5426\u663E\u793A\u5185\u5BB9",fontSize:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5927\u5C0F",textPosition:"\u8BBE\u7F6E\u6587\u5B57\u7684\u4F4D\u7F6E",textAlign:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5BF9\u9F50\u65B9\u5F0F",textMargin:"\u8BBE\u7F6E\u6587\u5B57\u7684\u8FB9\u8DDD",background:"\u6761\u5F62\u7801\u7684\u80CC\u666F\u8272",lineColor:"\u7EBF\u6761\u7684\u989C\u8272"}},iframeBox:{name:"\u5185\u5D4C\u9875\u9762",event:{load:"\u9875\u9762\u52A0\u8F7D\u5B8C\u6210\u540E\u89E6\u53D1"},loadingOpt:{eager:"\u7ACB\u5373\u52A0\u8F7D",lazy:"\u5EF6\u8FDF\u52A0\u8F7D"},props:{src:"\u9875\u9762\u94FE\u63A5",loading:"\u52A0\u8F7D\u65B9\u5F0F"}},qrCodeBox:{name:"\u4E8C\u7EF4\u7801",circleTypeOpt:{square:"\u6B63\u65B9\u5F62",dots:"\u70B9\u72B6",rounded:"\u5706\u5F62",classy:"\u7ECF\u5178"},props:{data:"\u5185\u5BB9",image:"\u4E2D\u5FC3\u7684\u56FE\u7247\u94FE\u63A5",width:"\u4E8C\u7EF4\u7801\u7684\u5BBD\u5EA6",height:"\u4E8C\u7EF4\u7801\u7684\u9AD8\u5EA6",circleType:"\u70B9\u7684\u7C7B\u578B",circleColor:"\u70B9\u7684\u989C\u8272"}},signaturePad:{name:"\u624B\u5199\u7B7E\u540D",props:{penColor:"\u7EBF\u6761\u7684\u989C\u8272"}},videoBox:{name:"\u89C6\u9891\u64AD\u653E\u5668",event:{error:"\u89C6\u9891\u52A0\u8F7D\u5931\u8D25\u65F6\u89E6\u53D1",pause:"\u89C6\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u89C6\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u89C6\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u89C6\u9891\u5730\u5740",type:"\u89C6\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",isLive:"\u662F\u5426\u662F\u76F4\u64AD",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",withCredentials:"\u662F\u5426\u643A\u5E26\u51ED\u8BC1"}}},tmp:{duration:"\u65F6\u957F",chineseAmount:"\u91D1\u989D",col3:"\u4E09\u5217\u6805\u683C",col4:"\u56DB\u5217\u6805\u683C",table43:"4x3\u8868\u683C"}},Zs=(e,t)=>oi.ElMessage({message:e,type:t||"info",customClass:"_fc-message-tip"}),sn=e=>Zs(e,"error"),ja=function(e,t,r,o){const i=o||{};return t.forEach(l=>{e.indexOf(l[r||"id"])>-1&&e.splice(e.indexOf(l[r||"id"]),1,l[i.label||"label"]),ct.trueArray(l[i.children||"children"])&&ja(e,l[i.children||"children"],r,o)}),e},j0=function(e,t){return t.forEach(r=>{e.indexOf(r.value)>-1&&(e[e.indexOf(r.value)]=r.label)}),e};function Dr(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function z0(e,t){let r=t.rule.value;const o=t.$render.vNode.h,i=t.type,l=t.$handle.subForm[t.id],d=t.prop.readMode;if(t.prop.title.title&&t.prop.title.title.trim()&&(t.prop.title.title+="\uFF1A"),d===!1||d==="custom"||!t.input||t.rule.subForm||(Array.isArray(l)?l.length:l)||["fcGroup","fcSubForm","tableForm","tableFormPro","fcJson","stepForm","nestedTableForm","infiniteTableForm","fcUpload","fcDialog","fcDrawer","fcPopup"].indexOf(t.trueType)>-1)return t.trueType==="fcUpload"&&(t.prop.props.disabled=!0),t.parser.render(e,t);if(["radio","select","checkbox"].indexOf(i)>-1)r=j0([...Dr(r)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(i)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(i==="cascader")r=[...Dr(r)],Array.isArray(r[0])||(r=[r]),r=r.map(c=>ja(c,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value",t.prop.props.props).join("/")).join(", ");else if(i==="elTransfer"){const c=[...Dr(r)];r=ja(c,t.prop.props.data||t.prop.props.formCreateInject.options||[],"key").join(", ")}else if(i==="fcDataSelect")r=[...Dr(r)].map(u=>u[t.prop.props.labelKey||"label"]).join(", ");else if(["tree","elTreeSelect"].indexOf(i)>-1){const c=t.prop.props.data||t.prop.props.formCreateInject.options||[];r=ja([...Dr(r)],c,i==="elTreeSelect"?"value":"id").join(", ")}else{if(i==="fcEditor"||d==="html")return o("div",{innerHTML:r});if(d==="image")return r=Dr(r),o("div",{class:"_fc-upload"},r.map(function(c){return o("div",{class:"_fc-upload-preview"},[o("el-image",{src:(c==null?void 0:c.url)||c,previewSrcList:r.map(u=>(u==null?void 0:u.url)||u),previewTeleported:!0,fit:"cover"})])}));if((i==="switch"||i==="el-switch")&&(t.prop.props.activeValue!=null||t.prop.props.inactiveValue!=null))r=t.prop.props.activeValue===r?"\u662F":"\u5426";else{if(i==="signaturePad"&&r)return o("el-image",{src:r,previewTeleported:!0,fit:"cover",style:{height:"90px"}});typeof r=="boolean"&&(r=r?"\u662F":"\u5426")}}return o("span",{class:"_fc-read-view"},[""+(r==null?"":r)])}function U0(e,t){return`<template>
|
||
<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:"labelWidth",value:"125px",title:e("form.labelWidth")},{type:"SizeInput",field:"wrap>style>marginBottom",value:"",title:e("form.formItemMarginBottom")},{type:"switch",field:"hideRequiredAsterisk",value:!1,title:e("form.hideRequiredAsterisk")},{type:"switch",field:"showMessage",value:!0,title:e("form.showMessage")},{type:"switch",field:"inlineMessage",value:!1,title:e("form.inlineMessage")},{type:"switch",field:"_submitBtn>show",value:!0,title:e("form.submitBtn")},{type:"switch",field:"_resetBtn>show",value:!1,title:e("form.resetBtn")},{type:"switch",field:">ignoreHiddenFields",value:!1,title:e("form.ignoreHiddenFields"),warning:e("warning.ignoreHiddenFields")},{type:"ConfigItem",col:{show:!0},name:t,style:"margin-bottom: 10px",props:{label:e("form.labelStyle"),info:""},children:[{type:"StyleConfig",field:"title>style",wrap:{show:!1},value:{},slot:"append",update:Z0(t,e)}]},{type:"FnConfig",field:">_event",value:{},col:{show:!0},props:{eventConfig:[{name:"onSubmit",info:e("form.onSubmit"),args:["formData","api"]},{name:"onReset",info:e("form.onReset"),args:["api"]},{name:"onCreated",info:e("form.onCreated"),args:["api"]},{name:"onMounted",info:e("form.onMounted"),args:["api"]},{name:"onReload",info:e("form.onReload"),args:["api"]},{name:"onChange",info:e("form.onChange"),args:["field","value","options"]},{name:"beforeSubmit",info:e("form.beforeSubmit"),args:["formData","data"]},{name:"beforeFetch",info:e("form.beforeFetch"),args:["config","data"]}]},title:e("form.event")}]}function No({t:e}){return[{type:"ConfigItem",col:{show:!0},style:"margin-bottom: 10px",name:"iskey",props:{label:e("form.iskey"),warning:e("warning.iskey")},children:[{type:"switch",field:"iskey",value:!1,wrap:{show:!1},col:{show:!1}}]},{type:"FieldInput",field:"field",value:"",title:e("form.field"),warning:e("warning.field")},{type:"LanguageInput",field:"title",value:"",title:e("form.title")},{type:"Input",field:"fieldtype",value:"",title:e("form.fieldtype")},{type:"LanguageInput",field:"info",value:"",title:e("form.info")},{type:"SpanInput",field:"formCreateCol>span",title:e("form.formItemSpan")},{type:"ConfigItem",col:{show:!0},style:"margin-bottom: 10px",name:"ignoreConfig",props:{label:e("form.ignore"),warning:e("warning.ignore")},children:[{type:"switch",field:"ignore",value:!1,wrap:{show:!1},col:{show:!1}}]},{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateWrap>title",col:{show:!1},wrap:{show:!1},value:!0},{type:"select",field:"formCreateWrap>class",title:e("form.labelPosition"),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",col:{show:!1},value:"",slot:"append",title:e("form.labelWidth")},{type:"SizeInput",field:"formCreateWrap>style>marginBottom",col:{show:!1},value:"",slot:"append",title:e("form.formItemMarginBottom")}]},{type:"Struct",field:"_control",name:"control",value:[],title:e("form.control"),warning:e("form.controlDocument",{doc:'<a target="_blank" href="https://pro.form-create.com/doc/control" style="color: inherit;text-decoration: underline;">'+e("form.document")+"</a>"}),props:{defaultValue:[],validate(t){return Array.isArray(t)?t.length?!t.some(({rule:r})=>!Array.isArray(r)):!0:!1}}}]}function fp({t:e}){return[{type:"input",title:"ID",field:"id",wrap:{labelWidth:"45px"}},{type:"GlobalClassSelect",title:"Class",field:"class",wrap:{labelWidth:"45px"}},{type:"StyleConfig",field:"style",title:"",value:{}}]}function pp({t:e}){return[{type:"ComputedConfig",field:"value",value:"",props:{type:"linkage",btn:e("computed.value.btn"),title:e("computed.value.title"),name:e("computed.value.name")},title:e("computed.value.title")},{type:"ComputedConfig",field:"hidden",value:"",props:{btn:e("computed.hidden.btn"),title:e("computed.hidden.title"),name:e("computed.hidden.name"),invertLabel:e("props.show"),validLabel:e("props.hide")},title:e("computed.hidden.title")},{type:"ComputedConfig",field:"$required",value:"",props:{btn:e("computed.required.btn"),title:e("computed.required.title"),name:e("computed.required.name"),invertLabel:e("validate.modes.notRequired"),validLabel:e("validate.modes.required")},title:e("computed.required.title")},{type:"ComputedConfig",field:"props.disabled",value:"",props:{btn:e("computed.disabled.btn"),title:e("computed.disabled.title"),name:e("computed.disabled.name"),invertLabel:e("props.enable"),validLabel:e("props.disabled")},title:e("computed.disabled.title")}]}function hp({t:e}){return[{type:"Required",field:"$required",title:e("validate.required")},{type:"validate",field:"validate",title:e("validate.rule"),value:[]}]}function q0(e){e=e||new Map;const t={$on(r,o){const i=e.get(r);i&&i.push(o)||e.set(r,[o])},$once(r,o){o._once=!0,t.$on(r,o)},$off(r,o){const i=e.get(r);i&&i.splice(i.indexOf(o)>>>0,1)},$emit(r,...o){(e.get(r)||[]).slice().map(i=>{i._once&&(t.$off(r,i),delete i._once),i(...o)}),(e.get("*")||[]).slice().map(i=>{i(r,o)})}};return t}const eb="\u5355\u9009\u6846",id="radio",tb={menu:"main",icon:"icon-radio",label:eb,name:id,input:!0,event:["change"],validate:["string","number"],condition:{type:"select",options:"options"},sfc(e){e.type="elRadioGroup",e.children=(e.options||[]).map(t=>({type:e.props.type==="button"?"elRadioButton":"elRadio",props:{label:t.value,value:t.value},_sfc:{content:t.label}})),delete e.props.type},rule({t:e}){return{type:id,field:We(),title:e("com.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Yn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Be(t,id+".props",[Fi(t,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},nb="\u591A\u9009\u6846",rd="checkbox",ib={menu:"main",icon:"icon-checkbox",label:nb,name:rd,input:!0,event:["change"],validate:["array"],condition:{type:"select",options:"options"},sfc(e){e.type="elCheckboxGroup",e.children=(e.options||[]).map(t=>({type:e.props.type==="button"?"elCheckboxButton":"elCheckbox",props:{label:t.value,value:t.value},_sfc:{content:t.label}})),delete e.props.type},rule({t:e}){return{type:rd,field:We(),title:e("com.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Yn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Be(t,rd+".props",[Fi(t,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{field:"min",type:"inputNumber",props:{min:0}},{field:"max",type:"inputNumber",props:{min:0}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},rb="\u8F93\u5165\u6846",od="input",ob={menu:"main",icon:"icon-input",label:rb,name:od,input:!0,easySlots:["prefix","suffix","prepend","append"],event:["blur","focus","change","input","clear"],validate:["string","url","email"],rule({t:e}){return{type:od,field:We(),title:e("com.input.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,od+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"select",field:"type",options:it(t,[{label:"text",value:"text"},{label:"number",value:"number"},{label:"time",value:"time"},{label:"date",value:"date"},{label:"month",value:"month"},{label:"datetime-local",value:"datetime-local"}])},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},ab="\u591A\u884C\u8F93\u5165\u6846",mp="textarea",lb={menu:"main",icon:"icon-textarea",label:ab,name:mp,input:!0,event:["blur","focus","change","input"],validate:["string"],rule({t:e}){return{type:"input",field:We(),title:e("com.textarea.name"),info:"",$required:!1,props:{type:"textarea"}}},props(e,{t}){return Be(t,mp+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"switch",field:"showWordLimit"},{type:"input",field:"placeholder"},{type:"inputNumber",field:"rows",props:{min:0}},{type:"switch",field:"autosize"}])}},sb="\u5BC6\u7801\u8F93\u5165\u6846",gp="password",db={menu:"main",icon:"icon-password",label:sb,name:gp,input:!0,easySlots:["prefix","suffix","prepend","append"],event:["blur","focus","change","input","clear"],validate:["string"],rule({t:e}){return{type:"input",field:We(),title:e("com.password.name"),info:"",$required:!1,props:{type:"password"}}},props(e,{t}){return Be(t,gp+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},cb="\u8BA1\u6570\u5668",ad="inputNumber",ub={menu:"main",icon:"icon-number",label:cb,name:ad,input:!0,easySlots:["prefix","suffix"],event:["blur","focus","change"],validate:["number","integer","float"],condition:"number",rule({t:e}){return{type:ad,field:We(),title:e("com.inputNumber.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,ad+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"},{type:"inputNumber",title:"precision",field:"precision"},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"stepStrictly"},{type:"switch",field:"controls",value:!0},{type:"select",field:"controlsPosition",options:it(t,[{label:"default",value:""},{label:"right",value:"right"}])},{type:"input",field:"placeholder"}])}},fb="\u9009\u62E9\u5668",ld="select",pb={menu:"main",icon:"icon-select",label:fb,name:ld,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],condition:{type:"select",options:"options"},sfc(e){e.type="elSelect",e.children=(e.options||[]).map(t=>({type:"elOption",props:{label:t.label,value:t.value}}))},rule({t:e}){return{type:ld,field:We(),title:e("com.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Yn(e("props.option"),{label:"label",value:"value"},1)}},watch:{multiple({rule:e}){e.key=We()}},props(e,{t}){return Be(t,ld+".props",[Fi(t,"options"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"filterable"},{type:"switch",field:"remote"},{type:"FnInput",field:"remoteMethod",props:{body:!0,button:!0,fnx:!0,name:"remoteMethod",args:[nn(t)]}},{type:"switch",field:"allowCreate"},{type:"input",field:"noMatchText"},{type:"input",field:"noDataText"},{type:"switch",field:"reserveKeyword"},{type:"switch",field:"defaultFirstOption"}])}},hb="\u5F00\u5173",sd="switch",mb={menu:"main",icon:"icon-switch",label:hb,name:sd,input:!0,easySlots:["active-action","inactive-action"],event:["change"],condition:function(e){return{type:"switch",props:{activeValue:e.props.activeValue,inactiveValue:e.props.inactiveValue,activeText:e.props.activeText,inactiveText:e.props.inactiveText}}},rule({t:e}){return{type:sd,field:We(),title:e("com.switch.name"),info:"",$required:!1,props:{activeValue:!0,inactiveValue:!1}}},props(e,{t}){return Be(t,sd+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"width",props:{min:0}},{type:"input",field:"activeText"},{type:"input",field:"inactiveText"},{type:"ValueInput",field:"activeValue"},{type:"ValueInput",field:"inactiveValue"},{type:"ColorInput",field:"activeColor"},{type:"ColorInput",field:"inactiveColor"}])}},gb="\u6ED1\u5757",dd="slider",vb={menu:"main",icon:"icon-slider",label:gb,name:dd,input:!0,event:["change","input"],validate:["number","array"],condition:"number",rule({t:e}){return{type:dd,field:We(),title:e("com.slider.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,dd+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"range"},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"showInput"},{type:"switch",field:"showInputControls",value:!0},{type:"switch",field:"showStops"},{type:"switch",field:"vertical"},{type:"input",field:"height"}])}},yb="\u65F6\u95F4",Do="timePicker",vp={menu:"main",icon:"icon-time",label:yb,name:Do,input:!0,event:["change","blur","focus","visibleChange"],sfc(e){e.props.valueFormat||(e.props.valueFormat="HH:mm:ss")},rule({t:e}){return{type:Do,field:We(),title:e("com.timePicker.name"),info:"",$required:!1,props:{}}},watch:{isRange({rule:e}){e.key=We()},__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e}},attrs:{format({rule:e}){return e.props.format||""}},props(e,{t}){return Be(t,Do+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"isRange"},{type:"switch",field:"clearable",value:!0},{type:"select",field:"__format",options:[{label:t("com."+Do+".HH:mm:ss"),value:"HH:mm:ss"},{label:t("com."+Do+".HH:mm"),value:"HH:mm"}]},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},bb={menu:"main",icon:"icon-time-range",label:"\u65F6\u95F4\u533A\u95F4",name:"timeRange",input:!0,event:["change","blur","focus","visibleChange"],sfc:vp.sfc,rule({t:e}){return{type:"timePicker",field:We(),title:e("com.timeRange.name"),info:"",$required:!1,props:{isRange:!0}}},watch:{__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e}},attrs:{format({rule:e}){return e.props.format||""}},props(e,{t}){return Be(t,"timePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable",value:!0},{type:"select",field:"__format",options:[{label:t("com.timePicker.HH:mm:ss"),value:"HH:mm:ss"},{label:t("com.timePicker.HH:mm"),value:"HH:mm"}]},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},wb="\u65E5\u671F",cd="datePicker",yp={date:"YYYY-MM-DD",month:"YYYY-MM",datetime:"YYYY-MM-DD HH:mm:ss",timerange:"HH:mm:ss",daterange:"YYYY-MM-DD",monthrange:"YYYY-MM",datetimerange:"YYYY-MM-DD HH:mm:ss",year:"YYYY"},bp={menu:"main",icon:"icon-date",label:wb,name:cd,input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],sfc(e){e.props.valueFormat||(e.props.valueFormat=yp[e.props.type]||yp.date)},rule({t:e}){return{type:cd,field:We(),title:e("com.datePicker.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,cd+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:it(t,[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}])},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},Cb={menu:"main",icon:"icon-date-range",label:"\u65E5\u671F\u533A\u95F4",name:"dateRange",input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],sfc:bp.sfc,rule({t:e}){return{type:"datePicker",field:We(),title:e("com.dateRange.name"),info:"",$required:!1,props:{type:"datetimerange"}}},props(e,{t}){return Be(t,"datePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:it(t,[{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}])},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},_b="\u8BC4\u5206",ud="rate",Eb={menu:"main",icon:"icon-rate",label:_b,name:ud,input:!0,event:["change"],validate:["number"],condition:"number",rule({t:e}){return{type:ud,field:We(),title:e("com.rate.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,ud+".props",[{type:"inputNumber",field:"max",props:{min:0}},{type:"switch",field:"disabled"},{type:"switch",field:"allowHalf"},{type:"ColorInput",field:"voidColor"},{type:"ColorInput",field:"disabledVoidColor"},{type:"input",field:"voidIconClass"},{type:"input",field:"disabledVoidIconClass"},{type:"switch",field:"showScore"},{type:"ColorInput",field:"textColor"},{type:"input",field:"scoreTemplate"}])}},Ab="\u989C\u8272\u9009\u62E9\u5668",fd="colorPicker",Sb={menu:"main",icon:"icon-color",label:Ab,name:fd,input:!0,event:["change","activeChange","focus","blur"],validate:["string"],condition:"color",rule({t:e}){return{type:fd,field:We(),title:e("com.colorPicker.name"),info:"",$required:!1,props:{predefine:["#c9e6fc","#c3f2f2","#c2f1d2","#fef6c6","#ffe5c2","#fdcac2","#fadcce","#dec2fa","#ccd2f1","#2196f3","#08c9c9","#00c344","#fad714","#ff9300","#f52222","#eb2f96","#800080","#7500ea","#2d46c4","#000000","#333333","#5a5a5a","#757575","#9e9e9e","#bdbdbd","#dddddd","#f5f5f5","#ffffff"]}}},props(e,{t}){return Be(t,fd+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"showAlpha"},{type:"select",field:"colorFormat",options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},{type:"tableOptions",field:"predefine",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string"}}])}},xb="\u6805\u683C\u5E03\u5C40",pd="fcRow",kb={menu:"layout",icon:"icon-row",label:xb,name:pd,mask:!1,children:"col",childrenLen:2,subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("style.width"),vnode:t(r("el-slider"),{size:"small",min:0,max:24,modelValue:o.props.span,"onUpdate:modelValue":i=>{o.props.span=i}})}]},sfc(e){e.type="elRow"},rule(){return{type:pd,props:{},children:[]}},props(e,{t}){return Be(t,pd+".props",[{type:"inputNumber",field:"gutter",props:{min:0}},{type:"switch",field:"type",props:{activeValue:"flex",inactiveValue:"default"}},{type:"select",field:"justify",options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}]},{type:"select",field:"align",options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}]}])}},hd="col",wp={xs:"<768px",sm:"\u2265768px",md:"\u2265992px",lg:"\u22651200px",xl:"\u22651920px"},Tb={name:hd,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule(){return{type:hd,props:{span:12},children:[]}},props(e,{t}){return Be(t,hd+".props",[{type:"slider",field:"span",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",props:{min:0,max:24}},{type:"slider",field:"push",props:{min:0,max:24}},{type:"slider",field:"pull",props:{min:0,max:24}},{type:"ConfigItem",props:{label:t("props.reactive"),warning:t("com.col.info")},children:[{type:"elTabs",style:{width:"100%"},slot:"append",children:Object.keys(wp).map(r=>({type:"elTabPane",props:{label:wp[r]},style:"padding:0 10px;",children:[{type:"slider",field:r+">span",title:t("com.col.props.span"),value:12,props:{min:0,max:24}},{type:"slider",field:r+">offset",title:t("com.col.props.offset"),props:{min:0,max:24}},{type:"slider",field:r+">push",title:t("com.col.props.push"),props:{min:0,max:24}},{type:"slider",field:r+">pull",title:t("com.col.props.pull"),props:{min:0,max:24}}]}))}]}])}},Nb="\u9009\u9879\u5361",md="elTabPane",Db={label:Nb,name:md,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule({t:e}){return{type:md,props:{label:e("com.elTabPane.name")},children:[]}},props(e,{t}){return Be(t,md+".props",[{type:"input",field:"label"},{type:"switch",field:"disabled"},{type:"input",field:"name"},{type:"switch",field:"lazy"}])}},Ob="\u5206\u5272\u7EBF",gd="elDivider",Vb={menu:"aide",icon:"icon-divider",label:Ob,name:gd,rule({t:e}){return{type:gd,props:{},children:[e("com.elDivider.name")]}},props(e,{t}){return Be(t,gd+".props",[{type:"select",field:"direction",options:it(t,[{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}])},{type:"input",field:"formCreateChild"},{type:"select",field:"contentPosition",options:it(t,[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}])}])}},Bb="\u7EA7\u8054\u9009\u62E9\u5668",Ua="cascader",Rb={menu:"main",icon:"icon-cascader",label:Bb,name:Ua,input:!0,event:["change","expandChange","blur","focus","visibleChange","removeTag"],validate:["string","number","array"],condition(e){return{type:"cascader",options:"props.options",props:{props:e.props&&e.props.props||{}}}},rule({t:e}){return{type:Ua,field:We(),title:e("com.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:Yn(e("props.option"),{label:"label",value:"value"},3)}}},props(e,{t}){return Be(t,Ua+".props",[Or(t,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"input",field:"placeholder"},{type:"Object",field:"props",props:{rule:Be(t,Ua+".propsOpt",[{type:"switch",field:"multiple"},{type:"select",field:"expandTrigger",options:it(t,[{label:"click",value:"click"},{label:"hover",value:"hover"}])},{type:"switch",field:"checkStrictly"},{type:"switch",field:"emitPath",value:!0},{type:"input",field:"value",value:"value"},{type:"input",field:"label",value:"label"},{type:"input",field:"children",value:"children"},{type:"input",field:"disabled",value:"disabled"},{type:"input",field:"leaf"}])}},{type:"switch",field:"showAllLevels",value:!0},{type:"switch",field:"collapseTags"},{type:"switch",field:"collapseTagsTooltip"},{type:"input",field:"separator"},{type:"switch",field:"filterable"},{type:"select",field:"tagType",options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]}])}},$b="\u4E0A\u4F20",vd="upload",Ib={menu:"main",icon:"icon-upload",label:$b,name:vd,input:!0,easySlots:[{value:"tip",type:"text"}],event:["change","remove","preview","error","progress","exceed"],languageKey:["clickToUpload"],validate:["array"],sfc(e){e.type="elUpload",e.props.listType||(e.props.listType="picture-card"),e._sfc.modelField="fileList"},rule({t:e}){return{type:vd,field:We(),title:e("com.upload.name"),info:"",$required:!1,props:{action:"/",onSuccess:`$FNX:const res = $inject.args[0];
|
||
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 Be(t,wd+".props",[{type:"input",field:"title"},{type:"select",field:"type",options:[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}]},{type:"input",field:"description"},{type:"switch",field:"closable",value:!0},{type:"switch",field:"center",value:!0},{type:"input",field:"closeText"},{type:"switch",field:"showIcon"},{type:"select",field:"effect",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]}])}},Ub="\u6587\u5B57",Cp="text",Hb={menu:"aide",icon:"icon-span",label:Ub,name:Cp,inline:!0,rule({t:e}){return{type:"div",title:"",style:{whiteSpace:"pre-line"},children:[e("com.text.name")]}},props(e,{t}){return Be(t,Cp+".props",[{type:"input",field:"formCreateChild",props:{type:"textarea"}}])}},Wb={menu:"layout",icon:"icon-space",label:"\u95F4\u8DDD",name:"space",rule(){return{type:"div",wrap:{show:!1},native:!0,style:{width:"100%",height:"20px"},children:[]}},props(){return[]}},Gb="\u6807\u7B7E\u9875",Cd="elTabs",Kb={menu:"layout",icon:"icon-tab",label:Gb,name:Cd,mask:!1,event:["tabClick","tabChange","tabRemove","tabAdd","edit"],children:"elTabPane",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}})}]},rule(){return{type:Cd,style:{width:"100%"},props:{modelValue:"0"},sync:["modelValue"],children:[]}},props(e,{t}){return Be(t,Cd+".props",[{type:"select",field:"type",options:[{label:"card",value:"card"},{label:"border-card",value:"border-card"}]},{type:"switch",field:"closable"},{type:"select",field:"tabPosition",options:it(t,[{label:"top",value:"top"},{label:"right",value:"right"},{label:"left",value:"left"}])},{type:"switch",field:"stretch"}])}},Yb="\u6309\u94AE",_d="elButton",Qb={menu:"aide",icon:"icon-button",label:Yb,name:_d,mask:!0,inline:!0,easySlots:[{value:"icon",type:"icon"}],event:["click"],rule({t:e}){return{type:_d,props:{},children:[e("com.elButton.name")]}},props(e,{t}){return Be(t,_d+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"type",options:it(t,[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}])},{type:"switch",field:"plain"},{type:"switch",field:"round"},{type:"switch",field:"circle"},{type:"switch",field:"loading"},{type:"switch",field:"disabled"}])}},Jb="\u5BCC\u6587\u672C\u6846",Ed="fcEditor",Xb={menu:"main",icon:"icon-editor",label:Jb,name:Ed,input:!0,event:["change"],validate:["string"],rule({t:e}){return{type:Ed,field:We(),title:e("com.fcEditor.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,Ed+".props",[{type:"switch",field:"disabled"}])}},Zb="\u5B50\u8868\u5355",_p="group",qb={menu:"subform",icon:"icon-subform",label:Zb,name:_p,input:!0,inside:!1,drag:!0,dragBtn:!0,mask:!1,event:["change"],subForm:"array",loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="group",delete e.children,delete e.props.mode},sfc:!1,rule({t:e}){return{type:"fcRow",field:We(),title:e("com.group.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Be(t,_p+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"button",value:!0},{type:"switch",field:"sortBtn",value:!0},{type:"inputNumber",field:"expand"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},e1="\u5206\u7EC4",Ep="subForm",t1={menu:"subform",icon:"icon-group",label:e1,name:Ep,input:!0,inside:!1,drag:!0,dragBtn:!0,mask:!1,subForm:"object",event:["change"],loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="subForm",delete e.children},sfc(e,{getParentFieldStr:t}){return{type:"elFormItem",props:{prop:t()+e.field,label:e.title,required:e.$required===!0?!0:void 0},col:{show:!0},_sfc:{parentField:e.field},_fc_id:e._fc_id,children:[{type:"elRow",class:e.class,style:e.style,children:e.children}]}},rule({t:e}){return{type:"fcRow",field:We(),title:e("com.subForm.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Be(t,Ep+".props",[{type:"switch",field:"disabled"}])}},n1="\u5361\u7247",Ad="elCard",i1={menu:"layout",icon:"icon-card",label:n1,name:Ad,drag:!0,inside:!1,mask:!1,rule({t:e}){return{type:Ad,props:{header:e("com.elCard.props.header")},style:{width:"100%"},children:[]}},props(e,{t}){return Be(t,Ad+".props",[{type:"input",field:"header"},{type:"select",field:"shadow",value:"always",options:it(t,[{label:"always",value:"always"},{label:"never",value:"never"},{label:"hover",value:"hover"}])}])}},r1="\u6298\u53E0\u9762\u677F",Sd="elCollapse",o1={menu:"layout",icon:"icon-collapse",label:r1,name:Sd,mask:!1,children:"elCollapseItem",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.title,"onUpdate:modelValue":i=>{o.props.title=i}})}]},event:["change"],rule(){return{type:Sd,props:{modelValue:[]},sync:["modelValue"],style:{width:"100%"},children:[]}},props(e,{t}){return Be(t,Sd+".props",[{type:"switch",field:"accordion"}])}},a1="\u9762\u677F",xd="elCollapseItem",l1={icon:"icon-cell",label:a1,name:xd,drag:!0,dragBtn:!1,inside:!0,mask:!1,easySlots:[{value:"icon",type:"icon"}],rule({t:e}){return{type:xd,props:{title:e("com.elCollapseItem.name"),name:We()},style:{},children:[]}},props(e,{t}){return Be(t,xd+".props",[{type:"input",field:"title"},{type:"input",field:"name"},{type:"switch",field:"disabled"}])}},s1="\u6811\u5F62\u9009\u62E9",kd="elTreeSelect",d1={menu:"main",icon:"icon-tree-select",label:s1,name:kd,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],condition:function(e){return{type:"cascader",options:e.props.data||[],props:{props:{checkStrictly:!0,emitPath:!1}}}},rule({t:e}){return{type:kd,field:We(),title:e("com.elTreeSelect.name"),info:"",effect:{fetch:""},$required:!1,props:{nodeKey:"value",showCheckbox:!0,data:Yn(e("props.option"),{label:"label",value:"value"},3)}}},watch:{multiple({rule:e}){e.key=We()}},props(e,{t}){return Be(t,kd+".props",[Or(t,"props.data","label","value"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"TableOptions",field:"props",props:{column:[{label: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:"checkStrictly"},{type:"input",field:"nodeKey"}])}},c1="\u6807\u7B7E",Td="elTag",u1={menu:"aide",icon:"icon-tag",label:c1,name:Td,mask:!0,inline:!0,event:["click","close"],rule({t:e}){return{type:Td,title:"",children:[e("com.elTag.name")]}},props(e,{t}){return Be(t,Td+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"type",options:it(t,[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}])},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"effect",options:[{label:"dark",value:"dark"},{label:"light",value:"light"},{label:"plain",value:"plain"}]},{type:"switch",field:"closable"},{type:"switch",field:"disableTransitions"},{type:"switch",field:"hit"},{type:"switch",field:"round"},{type:"ColorInput",field:"color"}])}},f1="\u63CF\u8FF0\u683C\u5B50",Nd="elDescriptionsItem",p1={icon:"icon-cell",label:f1,name:Nd,dragBtn:!1,inside:!0,mask:!1,rule({t:e}){return{type:Nd,props:{label:e("props.title")},children:[e("props.content")]}},watch:{__child({value:e,rule:t}){t.children[0].children[0]=e}},attrs:{child({rule:e}){return e.children[0].children[0]||""}},props(e,{t}){return Be(t,Nd+".props",[{type:"input",field:"label"},{type:"input",field:"__child",_fc_important_prop:"formCreateChild"},{type:"inputNumber",field:"span"},{type:"input",field:"width"},{type:"input",field:"minWidth"},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"select",field:"labelAlign",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"className"}])}},h1="\u63CF\u8FF0\u5217\u8868",Dd="elDescriptions",m1={menu:"layout",icon:"icon-descriptions",label:h1,name:Dd,mask:!1,rule(){return{type:Dd,props:{border:!0},style:{width:"100%"},children:[]}},children:"elDescriptionsItem",childrenLen:2,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}})}]},props(e,{t}){return Be(t,Dd+".props",[{type:"input",field:"title",value:""},{type:"input",field:"extra",value:""},{type:"inputNumber",field:"column",value:3,props:{min:0}},{type:"switch",field:"border"},{type:"select",field:"direction",options:it(t,[{label:"vertical",value:"vertical"},{label:"horizontal",value:"horizontal"}])},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},g1="\u5206\u6B65\u8868\u5355",Od="stepForm",v1={menu:"subform",icon:"icon-step-form",label:g1,name:Od,input:!0,mask:!1,languageKey:["prevStep","nextStep","submit"],event:["change","submit","next"],subForm:"object",children:"stepFormItem",childrenLen:2,subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.title,"onUpdate:modelValue":i=>{o.props.title=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.steps||{};e.children=t.map(r=>({type:"stepFormItem",_fc_drag_tag:"stepFormItem",props:{title:r.props.title,description:r.props.description},children:r.rule})),delete e.props.steps},parseRule(e){const t=e.children||[];e.props.steps=t.map(r=>({props:r.props,rule:r.children})),e.children=[]},sfc:!1,rule(){return{type:Od,field:We(),title:"",info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Be(t,Od+".props",[{type:"switch",field:"submitBtn",value:!0},{type:"switch",field:"autoValidate"},{type:"switch",field:"stepsProps>alignCenter"},{type:"switch",field:"stepsProps>simple"}])}},y1="\u6B65\u9AA4\u6761",Vd="stepFormItem",b1={icon:"icon-cell",label:y1,name:Vd,aide:!0,drag:!0,dragBtn:!1,inside:!0,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:Vd,props:{title:e("com.stepFormItem.props.title"),description:""},children:[]}},props(e,{t}){return Be(t,Vd+".props",[{type:"input",field:"title",value:""},{type:"input",field:"description",value:""}])}},w1="HTML",Bd="html",C1={menu:"aide",icon:"icon-html",label:w1,name:Bd,sfc(e){e.type="div"},rule(){return{type:Bd,title:"",style:{display:"block",width:"100%"},children:['<div style="color:#2E73FF;display:flex;align-items:center;"><img style="width:20px;height:20px;display:inline-block;"src="https://static.form-create.com/example.png"data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGaADAAQAAAABAAAAGQAAAABY85deAAABuElEQVQ4Ee2UTYtBYRTH595BIu8hoYSNfAFJVrKxsFA+gg9laycLG7KQHUo+gRAhRaHI+8v8ZOYu7jTNTM1iauZZnOc8/+c8/3PP/5yu0G63n35oiT/Ec6f55/qemL9VL8VkMimVSo9iUqlUuVze7Xay2mw222w2A4zFYl6v93ELUiwW8YPBoNForNfrCqfTSUS1Wk0mkxaLRalUxuNxu92ey+XC4bDb7a7Van6/fzQardfrbrcrcS0WC4PBQEAoFBIE4XA4KCA2m81YvV6PjUQiEOE8lkqlikajxN1uN2yr1TqdTuTj9nK54Oh0OlG8iw6JXHuXy/VK87ZpNBqTycSJHGq1ejgc4q9WKz7qLeR1F7PZbD6fl6EfHSmw3+9zi8rvs4qZTCadTn/0WIb7fD6EOx6PlCy74iiv8X2EhFyvV6vVqtVqm82mw+GQcMm5c223WywSSCgIGi+XSwQGPJ/P4/G41+vhUOZ8Pqfj+/2e6aG55CBms9k8JxKJx3x1Oh2Px4PS0+m0UCgQgUMC6qpUKoPBgIHiZSAQoH0Iz9CQD5D+gjcaDeH/Xyh14yvON2biU7q/wPUCZDXIe9hWJkQAAAAASUVORK5CYII="/><span style="font-size:16px;">HTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTML</span></div>']}},props(e,{t}){return Be(t,Bd+".props",[{type:"HtmlEditor",field:"formCreateChild"}])}},_1="\u8868\u683C\u5E03\u5C40",Rd="fcTable",E1={menu:"layout",icon:"icon-table",label:_1,name:Rd,inside:!1,mask:!1,sfc:{style:`._fc-table {
|
||
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:[{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:"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:"switch",field:"disabled"},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"input",field:"emptyText"},{type:"switch",field:"stripe"},{type:"switch",field:"border"},{type:"switch",field:"showIndex"},{type:"switch",field:"addable",value:!0},{type:"switch",field:"deletable",value:!0},{type:"switch",field:"newColumn"},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"SizeInput",field:"height"},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}}])}},N1="\u65E0\u9650\u7EA7\u8868\u5355",Ha="infiniteTableForm",D1={menu:"subform",icon:"icon-table-form3",label:N1,name:Ha,input:!0,mask:!1,subForm:"array",languageKey:["add","operation"],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:Ha,field:We(),title:e("com."+Ha+".name"),info:"",props:{},children:[]}},props(e,{t}){return Be(t,Ha+".props",[{type:"switch",field:"disabled"},{type:"input",field:"childrenField",value:"children"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"layerMax",props:{min:0}}])}},O1="\u5D4C\u5957\u8868\u5355",Wa="nestedTableForm",V1=e=>e.map(t=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:t.label,required:t.required||!1,width:t.style.width||"",color:t.style.color||""},children:t.rule||[]})),B1={menu:"subform",icon:"icon-table-form2",label:O1,name:Wa,input:!0,mask:!1,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],slot:["default",{name:"nested",type:"nestedSubTableForm"}],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||[],r=e.props.nested||[];e.children=V1(t),e.children.push({type:"TableForm",_fc_drag_tag:"nestedSubTableForm",field:e.props.nestedField,props:{columns:r},slot:"nested"}),delete e.props.nestedField,delete e.props.columns,delete e.props.nested},parseRule(e){const t=e.children||[];e.props.columns=[],t.forEach(r=>{if(r.slot==="nested"){e.props.nested=r.props.columns,e.props.nestedField=r.field;return}e.props.columns.push({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:Wa,field:We(),title:e("com."+Wa+".name"),info:"",props:{},children:[]}},props(e,{t}){return Be(t,Wa+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"nestedMax",props:{min:0}}])}},R1={icon:"icon-table-form",label:"\u5B50\u8868\u683C\u8868\u5355",name:"nestedSubTableForm",aide:!0,mask:!1,validate:!1,style:!1,advanced:!1,variable:!1,subForm:"array",hiddenBaseField:["title","info","labelConfig","formCreate_computed>hidden","formCreate_computed>value","_control"],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=[]},rule(){return{type:"TableForm",field:We(),title:"",info:"",props:{},children:[]}},props(){return[]}},Id="tableFormColumn",$1={icon:"icon-cell",name:Id,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:Id,props:{label:e("com.tableFormColumn.label"),width:"auto"},children:[]}},props(e,{t}){return Be(t,Id+".props",[{type:"input",field:"label"},{type:"switch",field:"required"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},xp="tableFormColumn2",I1={icon:"icon-cell",name:xp,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,advanced:!1,variable:!1,children:"tableFormColumn2",childrenLen:0,checkDrag({toRule:e}){return!(e.children[0].children.length>0&&e.children[0].children.some(t=>t._config.name==="tableFormColumn2"))},rule({t:e}){return{type:xp,props:{label:e("com.tableFormColumn.label"),width:"auto"},children:[]}},props(e,{t}){return Be(t,"tableFormColumn.props",[{type:"input",field:"label"},{type:"select",field:"fixed",options:[!1,"left","right"].map(r=>({label:t("com.dataTable.fixed."+(r||"default")),value:r}))},{type:"switch",field:"required"},{type:"switch",field:"hidden"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},F1={icon:"icon-flex",label:"\u76D2\u5B50\u5E03\u5C40",name:"fcFlex",mask:!1,children:"fcCell",childrenLen:2,subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("style.width"),vnode:t(r("SizeInput"),{size:"small",modelValue:o.style&&o.style.width||"","onUpdate:modelValue":i=>{o.style||(o.style={}),o.style.width=i}})},{label:e("style.height"),vnode:t(r("SizeInput"),{size:"small",modelValue:o.style&&o.style.height||"auto","onUpdate:modelValue":i=>{o.style||(o.style={}),o.style.height=i}})}]},sfc(e){e.type="elRow"},rule(){return{type:"fcRow",props:{},children:[]}},props(){return[]}},kp="fcCell",M1={name:kp,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},rule(){return{type:kp,style:{display:"block",width:"50%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")}]}},P1="\u8BA1\u7B97\u516C\u5F0F",Tp="fcValue",L1={menu:"main",icon:"icon-value",label:P1,name:Tp,input:!0,event:["change"],validate:!1,sfc(e,{getParentFieldStr:t}){e.type="div",e._sfc.content=`{{formData.${t()}${e.field}}}`,e._sfc.vModel=!1},rule({t:e}){return{type:Tp,field:We(),title:e("com.fcValue.name"),info:"",props:{}}},props(){return[]}},j1="\u94FE\u63A5",Fd="elLink",z1={menu:"aide",icon:"icon-link",label:j1,name:Fd,inline:!0,easySlots:[{value:"icon",type:"icon"}],rule({t:e}){return{type:Fd,title:"",children:[e("com.elLink.name")]}},props(e,{t}){return Be(t,Fd+".props",[{type:"input",field:"href"},{type:"input",field:"formCreateChild"},{type:"select",field:"target",options:it(t,[{label:"_self",value:"_self"},{label:"_blank",value:"_blank"},{label:"_parent",value:"_parent"},{label:"_top",value:"_top"}])},{type:"switch",field:"underline",value:!0},{type:"switch",field:"disabled"},{type:"select",field:"type",options:it(t,[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"},{label:"default",value:"default"}])}])}},U1="\u6587\u5B57\u63D0\u793A",Ga="elTooltip",H1={menu:"aide",icon:"icon-tooltip",label:U1,name:Ga,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:Ga,props:{content:e("com."+Ga+".name")},children:[]}},props(e,{t}){return Be(t,Ga+".props",[{type:"input",field:"content",props:{type:"textarea"}},{type:"switch",field:"disabled"},{type:"switch",field:"rawContent"},{type:"switch",field:"enterable",value:!0},{type:"select",field:"effect",value:"dark",options:[{label:"dark",value:"dark"},{label:"light",value:"light"}]},{type:"select",field:"placement",value:"bottom",options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},{type:"select",field:"trigger",value:"hover",options:[{label:"hover",value:"hover"},{label:"click",value:"click"},{label:"focus",value:"focus"},{label:"contextmenu",value:"contextmenu"}]},{type:"inputNumber",field:"offset"},{type:"inputNumber",field:"showAfter",props:{min:0}},{type:"inputNumber",field:"hideAfter",props:{min:0}},{type:"inputNumber",field:"autoClose",props:{min:0}}])}},W1="\u6C34\u5370",Ka="elWatermark",G1={menu:"aide",icon:"icon-watermark",label:W1,name:Ka,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:Ka,style:{width:"100%"},props:{content:e("com."+Ka+".name")},children:[]}},props(e,{t}){return Be(t,Ka+".props",[{type:"input",field:"content"},{type:"input",field:"image"},{type:"inputNumber",field:"width",props:{min:0},value:120},{type:"inputNumber",field:"height",props:{min:0},value:64},{type:"inputNumber",field:"rotate",value:-22},{type:"inputNumber",field:"zIndex",props:{min:0}},{type:"TableOptions",field:"gap",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2},value:[100,100]}])}},K1={menu:"template",name:"chineseAmount",label:"\u91D1\u989D",autoField:!0,template:[{type:"inputNumber",field:"Fgtxlugfgbdvb5c",title:"\u91D1\u989D",info:"",$required:!1,display:!0,hidden:!1,_fc_drag_tag:"inputNumber"},{type:"fcValue",field:"Fvr1lugfgd3yb7c",title:" ",info:"",display:!0,hidden:!1,_fc_drag_tag:"fcValue",style:{color:"#999999"},computed:{value:'"\u5927\u5199: " + TOCHINSESAMOUNT(Fgtxlugfgbdvb5c || 0)'}}]},Y1={menu:"template",name:"duration",label:"\u65F6\u957F",autoField:!0,template:[{type:"fcInlineForm",_fc_id:"id_Founm50iu5kocac",name:"ref_Fqrpm50iu5kocbc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fz0um50itwf6bbc",title:"\u5F00\u59CB\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){this.api.validateField('Fv92m50itwf6bdc');
|
||
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:"defaultExpandAll"}])}},Qa="fcDialog",nw={name:Qa,icon:"icon-dialog",label:"\u5F39\u51FA\u6846",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,input:!0,subForm:"object",hiddenBaseField:["title","info","formCreateCol>span","labelConfig","_control"],languageKey:["close","ok"],event:["confirm","submit","validateFail","open","opened","close","closed","openAutoFocus","closeAutoFocus"],container:{formDataField:"value",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],e.native==null&&(e.native=!0),e.ignore==null&&(e.ignore=!0),delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:Qa,props:{title:e("com."+Qa+".name")},native:!0,ignore:!0,children:[]}},props(e,{t}){return Be(t,Qa+".props",[{type:"input",field:"formCreateProps>title",title:"\u6807\u9898"},{type:"SizeInput",field:"width",value:"50%"},{type:"switch",field:"fullscreen"},{type:"switch",field:"preview",title:t("form.previewMode")},{type:"switch",field:"modal",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0},{type:"FnInput",field:"beforeClose",props:{body:!0,button:!0,fnx:!0,name:"beforeClose",args:[nn(t)]}}])}},Ja="fcDrawer",iw={name:Ja,icon:"icon-dialog",label:"\u62BD\u5C49",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,input:!0,subForm:"object",hiddenBaseField:["title","info","formCreateCol>span","labelConfig","_control"],languageKey:["close","ok"],event:["confirm","submit","validateFail","open","opened","close","closed","openAutoFocus","closeAutoFocus"],container:{formDataField:"value",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],e.native==null&&(e.native=!0),e.ignore==null&&(e.ignore=!0),delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:Ja,props:{title:e("com."+Ja+".name")},native:!0,ignore:!0,children:[]}},props(e,{t}){return Be(t,Ja+".props",[{type:"input",field:"formCreateProps>title",title:"\u6807\u9898"},{type:"SizeInput",field:"size",value:"30%"},{type:"select",field:"direction",options:it(t,[{label:"ltr",value:"ltr"},{label:"rtl",value:"rtl"}],"com.fcDrawer.directionType"),value:"rtl"},{type:"switch",field:"preview",title:t("form.previewMode")},{type:"switch",field:"modal",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0},{type:"FnInput",field:"beforeClose",props:{body:!0,button:!0,fnx:!0,name:"beforeClose",args:[nn(t)]}}])}},rw="\u63D2\u69FD\u533A\u57DF",Md="fcSlot",ow={menu:"container",icon:"icon-slot",label:rw,name:Md,input:!0,mask:!0,style:!1,sfc:!1,rule(){return{type:Md,field:We(),title:"",native:!1,$required:!1,readMode:"custom",props:{name:"block_"+We()}}},props(e,{t}){return Be(t,Md+".props",[{type:"input",field:"name"}])}},aw="\u52A8\u6001\u533A\u57DF",Pd="fcJson",lw={menu:"container",icon:"icon-json",label:aw,name:Pd,input:!0,mask:!0,style:!1,sfc:!1,rule(){return{type:Pd,field:We(),props:{expand:1}}},props(e,{t}){return Be(t,Pd+".props",[{type:"radio",field:"_loadType",value:2,props:{type:"button"},options:[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:3},{label:t("fetch.optionsType.global"),value:1}],control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]},{value:2,rule:[{type:"Struct",field:"rule",title:t("com.fcJson.props._loadType"),_fc_important_prop:!0,wrap:{show:!1}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]}]},{type:"select",field:"type",options:it(t,[{label:t("props.default"),value:"default"},{label:t("com.group.name"),value:"array"},{label:t("com.subForm.name"),value:"object"}]),control:[{value:"array",method:"hidden",rule:Be(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"},{type:"switch",field:"button",ignore:"hidden",value:!0},{type:"switch",field:"sortBtn",ignore:"hidden",value:!0},{type:"inputNumber",field:"expand",ignore:"hidden"},{type:"inputNumber",field:"min",ignore:"hidden"},{type:"inputNumber",field:"max",ignore:"hidden"}])},{value:"object",method:"hidden",rule:Be(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"}])}]}])}},sw="\u5185\u8054\u5E03\u5C40",Np="fcInlineForm",dw={menu:"layout",icon:"icon-inline",label:sw,name:Np,denyDrag:{menu:["subform","layout"]},drag:!0,inside:!1,mask:!1,sfc:{style:`._fc-line-form .el-form-item {
|
||
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:Ud,mask:!1,event:["pause","play","ended","error"],rule(){return{type:Ud,props:{src:"",type:"mp4"}}},props(e,{t}){return Be(t,Ud+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"mp4",value:"mp4"},{label:"mpegts",value:"mpegts"},{label:"m2ts",value:"m2ts"},{label:"flv",value:"flv"},{label:"mse",value:"mse"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"controls",value:!0},{type:"switch",field:"isLive"},{type:"switch",field:"loop"},{type:"switch",field:"withCredentials",value:!0}])}},bw="\u5934\u50CF\u6846",Dp="elAvatar",ww={menu:"aide",icon:"icon-avatar",label:bw,name:Dp,mask:!0,inline:!0,event:[],rule(){return{type:Dp,props:{fit:"cover",src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Be(t,"elAvatar.props",[{type:"input",field:"src"},{type:"select",field:"shape",options:it(t,[{label:"circle",value:"circle"},{label:"square",value:"square"}])},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},Cw="\u6761\u5F62\u7801",Op="barCodeBox",_w={menu:"aide",icon:"icon-barcode",label:Cw,name:Op,mask:!0,inline:!0,event:[],rule(){return{type:Op,props:{value:"12345670",format:"CODE128"}}},props(e,{t}){return Be(t,"barCodeBox.props",[{type:"input",field:"value"},{type:"select",field:"format",options:[{label:"CODE39",value:"CODE39"},{label:"CODE128",value:"CODE128"},{label:"CODE128A",value:"CODE128A"},{label:"CODE128B",value:"CODE128B"},{label:"CODE128C",value:"CODE128C"},{label:"EAN13",value:"EAN13"},{label:"UPC",value:"UPC"},{label:"CODABAR",value:"CODABAR"}]},{type:"inputNumber",field:"width",value:2},{type:"inputNumber",field:"height",value:50},{type:"switch",field:"displayValue",value:!0},{type:"inputNumber",field:"fontSize",value:12},{type:"select",field:"textPosition",options:it(t,[{label:"top",value:"top"},{label:"bottom",value:"bottom"}])},{type:"select",field:"textAlign",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",field:"textMargin",value:2},{type:"ColorInput",field:"background"},{type:"ColorInput",field:"lineColor"}])}},Ew="\u5185\u5D4C\u7F51\u9875",Vp="iframeBox",Aw={menu:"aide",icon:"icon-iframe",label:Ew,name:Vp,mask:!0,event:["load"],rule(){return{type:Vp,props:{src:"https://github.com/xaboy/form-create"}}},props(e,{t}){return Be(t,"iframeBox.props",[{type:"input",field:"src"},{type:"select",field:"loading",value:"eager",options:it(t,[{label:"eager",value:"eager"},{label:"lazy",value:"lazy"}],"com.iframeBox.loadingOpt")}])}},Sw="\u4E8C\u7EF4\u7801",Hd="qrCodeBox",xw={menu:"aide",icon:"icon-qrcode",label:Sw,name:Hd,mask:!0,inline:!0,rule(){return{type:Hd,props:{data:"1234567890",width:150,height:150}}},props(e,{t}){return Be(t,Hd+".props",[{type:"input",field:"data"},{type:"input",field:"image"},{type:"inputNumber",field:"width"},{type:"inputNumber",field:"height"},{type:"select",field:"circleType",options:it(t,[{label:"square",value:"square"},{label:"dots",value:"dots"},{label:"rounded",value:"rounded"},{label:"classy",value:"classy"}],"com.qrCodeBox.circleTypeOpt")},{type:"ColorInput",field:"circleColor"}])}},kw="\u624B\u5199\u7B7E\u540D",Wd="signaturePad",Tw={menu:"main",icon:"icon-sign",label:kw,name:Wd,input:!0,mask:!0,languageKey:["signaturePadTip","signaturePadTitle","reset","ok"],event:["change","remove"],rule({t:e}){return{type:Wd,field:We(),title:e("com.signaturePad.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,Wd+".props",[{type:"ColorInput",field:"penColor"}])}},Nw="\u63D0\u53CA",Gd="elMention",Dw={menu:"main",icon:"icon-mention",label:Nw,name:Gd,input:!0,event:["search","select","blur","focus","change","input","clear"],validate:["string"],rule({t:e}){return{type:Gd,field:We(),title:e("com.elMention.name"),info:"",$required:!1,props:{options:[{label:"Fuphoenixes",value:"Fuphoenixes"},{label:"kooriookami",value:"kooriookami"},{label:"Jeremy",value:"Jeremy"},{label:"btea",value:"btea"}]}}},props(e,{t}){return Be(t,Gd+".props",[Fi(t,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"whole"},{type:"input",field:"placeholder"},{type:"select",field:"type",options:[{label:"input",value:"input"},{label:"textarea",value:"textarea"}]},{type:"FnInput",field:"checkIsWhole",props:{body:!0,button:!0,fnx:!0,args:[nn(t)],name:"checkIsWhole"}},{type:"FnInput",field:"filterOption",props:{body:!0,button:!0,fnx:!0,args:[nn(t)],name:"filterOption"}}])}},Ow="\u5206\u6BB5\u63A7\u5236\u5668",Kd="elSegmented",Vw={menu:"main",icon:"icon-segmented",label:Ow,name:Kd,input:!0,event:["change"],validate:["string","number"],rule(){return{type:Kd,field:We(),title:"",props:{options:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map(e=>({label:e,value:e}))}}},props(e,{t}){return Be(t,Kd+".props",[{type:"TableOptions",field:"options",title:t("props.options"),wrap:{show:!1},props:{column:[{label:"label",key:"label"},{value:!0,label:"value",key:"value"}],keyValue:"label"}},{type:"switch",field:"disabled"},{type:"switch",field:"block"},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},Bw="\u6807\u9898",Bp="fcTitle",Rw={menu:"aide",icon:"icon-title",label:Bw,name:Bp,event:[],rule({t:e}){return{type:"fcTitle",props:{title:e("props.title")}}},props(e,{t}){return Be(t,Bp+".props",[{type:"input",field:"title"},{type:"select",field:"size",value:"H2",options:[1,2,3,4,5,6].map(r=>({label:"H"+r,value:"h"+r}))},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},$w="\u552F\u4E00\u503C",Yd="fcId",Iw={menu:"main",icon:"icon-input-id",label:$w,name:Yd,input:!0,validate:!1,rule({t:e}){return{type:Yd,field:We(),title:e("com.fcId.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,Yd+".props",[{type:"input",field:"prefix"}])}},Fw="\u7701\u5E02\u533A\u9009\u62E9\u5668",Qd="fcCity",Mw={menu:"main",icon:"icon-city",label:Fw,name:Qd,input:!0,event:["change"],validate:["array"],rule({t:e}){return{type:Qd,field:We(),title:e("com.fcCity.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,Qd+".props",[{type:"select",field:"level",value:3,options:[{label:"\u7701\u4F1A",value:1},{label:"\u7701\u4F1A/\u57CE\u5E02",value:2},{label:"\u7701\u4F1A/\u57CE\u5E02/\u533A\u57DF",value:3}]},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"FnInput",field:"filter",props:{body:!0,button:!0,fnx:!0,args:[nn(t)],name:"filter"}},{type:"input",field:"api"}])}},Pw={menu:"aide",icon:"icon-markdown",label:"Markdown",name:"markdown",rule(){return{type:"FcMarkdown",native:!0,props:{content:`### \u6807\u9898
|
||
|
||
\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:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-stripe",label:"\u6761\u5F62\u56FE",name:"stripeChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"bar",stripe:!0,config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Direct2",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:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-pie",label:"\u997C\u56FE",name:"pieChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"pie",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Num"},{value:300,name:"Video Num"}]}}},props(e,{t}){return Be(t,"lineChart.props",[Pn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"pieType",options:it(t,[{label:"pie",value:"pie"},{label:"doughnut",value:"doughnut"},{label:"half-doughnut",value:"half-doughnut"}],"com.lineChart.pieTypeOpt")},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-funnel",label:"\u6F0F\u6597\u56FE",name:"funnelChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"funnel",data:[{value:60,name:"Visit"},{value:40,name:"Inquiry"},{value:20,name:"Order"},{value:80,name:"Click"},{value:100,name:"Show"}]}}},props(e,{t}){return Be(t,"lineChart.props",[Pn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"funnelSort",options:it(t,[{label:"descending",value:"descending"},{label:"ascending",value:"ascending"}],"com.lineChart.funnelSortOpt"),value:"descending"},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-gauge",label:"\u4EEA\u8868\u76D8",name:"gaugeChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"gauge",value:50}}},props(e,{t}){return Be(t,"lineChart.props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},{menu:"chart",icon:"icon-chart-radar",label:"\u96F7\u8FBE\u56FE",name:"radarChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"radar",indicator:[{name:"Sales",max:6500},{name:"Administration",max:16e3},{name:"Information Technology",max:3e4},{name:"Customer Support",max:38e3},{name:"Development",max:52e3},{name:"Marketing",max:25e3}],data:[{value:[4200,3e3,2e4,35e3,5e4,18e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,26e3,42e3,21e3],name:"Actual Spending"}]}}},props(e,{t}){return Be(t,"lineChart.props",[Pn(t,"props.data",t("com.lineChart.data")),{type:"TableOptions",field:"indicator",props:{column:[{label:t("props.name"),key:"name"},{label:t("com.lineChart.props.max"),key:"max"}]}},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-scatter",label:"\u6563\u70B9\u56FE",name:"scatterChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"scatter",data:[[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2]],[[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8]]]}}},props(e,{t}){return Be(t,"lineChart.props",[Pn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"}])}},{menu:"chart",icon:"icon-chart-custom",label:"\u81EA\u5B9A\u4E49\u56FE\u8868",name:"customChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",style:{height:"500px"},props:{type:"custom",config:{builderJson:{all:10887,charts:{map:3237,lines:2164,bar:7561,line:7778,pie:7355,scatter:2405,candlestick:1842,radar:2090,heatmap:1762,treemap:1593,graph:2060,boxplot:1537,parallel:1908,gauge:2107,funnel:1692,sankey:1568},components:{geo:2788,title:9575,legend:9400,tooltip:9466,grid:9266,markPoint:3419,markLine:2984,timeline:2739,dataZoom:2744,visualMap:2466,toolbox:3034,polar:1945},ie:9743},downloadJson:{"echarts.min.js":17365,"echarts.simple.min.js":4079,"echarts.common.min.js":6929,"echarts.js":14890},themeJson:{"dark.js":1594,"infographic.js":925,"shine.js":1608,"roma.js":721,"macarons.js":2179,"vintage.js":1982}},loadOptions:`$FNX:const builderJson = $inject.args[0]?.builderJson;
|
||
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&&(d/=E,c/=w,y/=w,h/=E,u=d+h,m=c+y)}return{top:d,left:c,bottom:u,right:m,width:y,height:h}}}function jp(e,t,r){for(var o=Mi(e,!0),i=Yt(e)[t];o;){var l=Yt(o)[r],d=void 0;if(r==="top"||r==="left"?d=i>=l:d=i<=l,!d)return o;if(o===ui())break;o=Mi(o,!1)}return!1}function $r(e,t,r,o){for(var i=0,l=0,d=e.children;l<d.length;){if(d[l].style.display!=="none"&&d[l]!==st.ghost&&(o||d[l]!==st.dragged)&&ci(d[l],r.draggable,e,!1)){if(i===t)return d[l];i++}l++}return null}function Jd(e,t){for(var r=e.lastElementChild;r&&(r===st.ghost||lt(r,"display")==="none"||t&&!qa(r,t));)r=r.previousElementSibling;return r||null}function Ln(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==st.clone&&(!t||qa(e,t))&&r++;return r}function zp(e){var t=0,r=0,o=ui();if(e)do{var i=Rr(e),l=i.a,d=i.d;t+=e.scrollLeft*l,r+=e.scrollTop*d}while(e!==o&&(e=e.parentNode));return[t,r]}function Yw(e,t){for(var r in e)if(!!e.hasOwnProperty(r)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[r][o])return Number(r)}return-1}function Mi(e,t){if(!e||!e.getBoundingClientRect)return ui();var r=e,o=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var i=lt(r);if(r.clientWidth<r.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return ui();if(o||t)return r;o=!0}}while(r=r.parentNode);return ui()}function Qw(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function Xd(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Bo;function Up(e,t){return function(){if(!Bo){var r=arguments,o=this;r.length===1?e.call(o,r[0]):e.apply(o,r),Bo=setTimeout(function(){Bo=void 0},t)}}}function Jw(){clearTimeout(Bo),Bo=void 0}function Hp(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function Wp(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}var Vn="Sortable"+new Date().getTime();function Xw(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(lt(i,"display")==="none"||i===st.ghost)){e.push({target:i,rect:Yt(i)});var l=di({},e[e.length-1].rect);if(i.thisAnimationDuration){var d=Rr(i,!0);d&&(l.top-=d.f,l.left-=d.e)}i.fromRect=l}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(Yw(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var l=!1,d=0;e.forEach(function(c){var u=0,m=c.target,h=m.fromRect,y=Yt(m),C=m.prevFromRect,S=m.prevToRect,w=c.rect,E=Rr(m,!0);E&&(y.top-=E.f,y.left-=E.e),m.toRect=y,m.thisAnimationDuration&&Xd(C,y)&&!Xd(h,y)&&(w.top-y.top)/(w.left-y.left)===(h.top-y.top)/(h.left-y.left)&&(u=qw(w,C,S,i.options)),Xd(y,h)||(m.prevFromRect=h,m.prevToRect=y,u||(u=i.options.animation),i.animate(m,w,y,u)),u&&(l=!0,d=Math.max(d,u),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},u),m.thisAnimationDuration=u)}),clearTimeout(t),l?t=setTimeout(function(){typeof o=="function"&&o()},d):typeof o=="function"&&o(),e=[]},animate:function(o,i,l,d){if(d){lt(o,"transition",""),lt(o,"transform","");var c=Rr(this.el),u=c&&c.a,m=c&&c.d,h=(i.left-l.left)/(u||1),y=(i.top-l.top)/(m||1);o.animatingX=!!h,o.animatingY=!!y,lt(o,"transform","translate3d("+h+"px,"+y+"px,0)"),this.forRepaintDummy=Zw(o),lt(o,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),lt(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){lt(o,"transition",""),lt(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},d)}}}}function Zw(e){return e.offsetWidth}function qw(e,t,r,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*o.animation}var Ir=[],Zd={initializeByDefault:!0},Ro={mount:function(t){for(var r in Zd)Zd.hasOwnProperty(r)&&!(r in t)&&(t[r]=Zd[r]);Ir.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ir.push(t)},pluginEvent:function(t,r,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var l=t+"Global";Ir.forEach(function(d){!r[d.pluginName]||(r[d.pluginName][l]&&r[d.pluginName][l](di({sortable:r},o)),r.options[d.pluginName]&&r[d.pluginName][t]&&r[d.pluginName][t](di({sortable:r},o)))})},initializePlugins:function(t,r,o,i){Ir.forEach(function(c){var u=c.pluginName;if(!(!t.options[u]&&!c.initializeByDefault)){var m=new c(t,r,t.options);m.sortable=t,m.options=t.options,t[u]=m,_i(o,m.defaults)}});for(var l in t.options)if(!!t.options.hasOwnProperty(l)){var d=this.modifyOption(t,l,t.options[l]);typeof d<"u"&&(t.options[l]=d)}},getEventProperties:function(t,r){var o={};return Ir.forEach(function(i){typeof i.eventProperties=="function"&&_i(o,i.eventProperties.call(r[i.pluginName],t))}),o},modifyOption:function(t,r,o){var i;return Ir.forEach(function(l){!t[l.pluginName]||l.optionListeners&&typeof l.optionListeners[r]=="function"&&(i=l.optionListeners[r].call(t[l.pluginName],o))}),i}};function eC(e){var t=e.sortable,r=e.rootEl,o=e.name,i=e.targetEl,l=e.cloneEl,d=e.toEl,c=e.fromEl,u=e.oldIndex,m=e.newIndex,h=e.oldDraggableIndex,y=e.newDraggableIndex,C=e.originalEvent,S=e.putSortable,w=e.extraEventProperties;if(t=t||r&&r[Vn],!!t){var E,_=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ai&&!Oo?E=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(o,!0,!0)),E.to=d||r,E.from=c||r,E.item=i||r,E.clone=l,E.oldIndex=u,E.newIndex=m,E.oldDraggableIndex=h,E.newDraggableIndex=y,E.originalEvent=C,E.pullMode=S?S.lastPutMode:void 0;var b=di(di({},w),Ro.getEventProperties(o,t));for(var x in b)E[x]=b[x];r&&r.dispatchEvent(E),_[g]&&_[g].call(t,E)}}var tC=["evt"],An=function(t,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,l=Hw(o,tC);Ro.pluginEvent.bind(st)(t,r,di({dragEl:ze,parentEl:Mt,ghostEl:ut,rootEl:Vt,nextEl:or,lastDownEl:el,cloneEl:Pt,cloneHidden:Pi,dragStarted:Io,putSortable:rn,activeSortable:st.active,originalEvent:i,oldIndex:Fr,oldDraggableIndex:$o,newIndex:Bn,newDraggableIndex:Li,hideGhostForTarget:Zp,unhideGhostForTarget:qp,cloneNowHidden:function(){Pi=!0},cloneNowShown:function(){Pi=!1},dispatchSortableEvent:function(c){pn({sortable:r,name:c,originalEvent:i})}},l))};function pn(e){eC(di({putSortable:rn,cloneEl:Pt,targetEl:ze,rootEl:Vt,oldIndex:Fr,oldDraggableIndex:$o,newIndex:Bn,newDraggableIndex:Li},e))}var ze,Mt,ut,Vt,or,el,Pt,Pi,Fr,Bn,$o,Li,tl,rn,Mr=!1,nl=!1,il=[],ar,Qn,qd,ec,Gp,Kp,Io,Pr,Fo,Mo=!1,rl=!1,ol,dn,tc=[],nc=!1,al=[],ll=typeof document<"u",sl=Fp,Yp=Oo||Ai?"cssFloat":"float",nC=ll&&!Gw&&!Fp&&"draggable"in document.createElement("div"),Qp=function(){if(!!ll){if(Ai)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Jp=function(t,r){var o=lt(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),l=$r(t,0,r),d=$r(t,1,r),c=l&<(l),u=d&<(d),m=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Yt(l).width,h=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Yt(d).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(l&&c.float&&c.float!=="none"){var y=c.float==="left"?"left":"right";return d&&(u.clear==="both"||u.clear===y)?"vertical":"horizontal"}return l&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||m>=i&&o[Yp]==="none"||d&&o[Yp]==="none"&&m+h>i)?"vertical":"horizontal"},iC=function(t,r,o){var i=o?t.left:t.top,l=o?t.right:t.bottom,d=o?t.width:t.height,c=o?r.left:r.top,u=o?r.right:r.bottom,m=o?r.width:r.height;return i===c||l===u||i+d/2===c+m/2},rC=function(t,r){var o;return il.some(function(i){var l=i[Vn].options.emptyInsertThreshold;if(!(!l||Jd(i))){var d=Yt(i),c=t>=d.left-l&&t<=d.right+l,u=r>=d.top-l&&r<=d.bottom+l;if(c&&u)return o=i}}),o},Xp=function(t){function r(l,d){return function(c,u,m,h){var y=c.options.group.name&&u.options.group.name&&c.options.group.name===u.options.group.name;if(l==null&&(d||y))return!0;if(l==null||l===!1)return!1;if(d&&l==="clone")return l;if(typeof l=="function")return r(l(c,u,m,h),d)(c,u,m,h);var C=(d?c:u).options.group.name;return l===!0||typeof l=="string"&&l===C||l.join&&l.indexOf(C)>-1}}var o={},i=t.group;(!i||Za(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=r(i.pull,!0),o.checkPut=r(i.put),o.revertClone=i.revertClone,t.group=o},Zp=function(){!Qp&&ut&<(ut,"display","none")},qp=function(){!Qp&&ut&<(ut,"display","")};ll&&document.addEventListener("click",function(e){if(nl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),nl=!1,!1},!0);var lr=function(t){if(ze){t=t.touches?t.touches[0]:t;var r=rC(t.clientX,t.clientY);if(r){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=r,o.preventDefault=void 0,o.stopPropagation=void 0,r[Vn]._onDragOver(o)}}},oC=function(t){ze&&ze.parentNode[Vn]._isOutsideThisEl(t.target)};function st(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=_i({},t),e[Vn]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Jp(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,c){d.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:st.supportPointer!==!1&&"PointerEvent"in window&&!Vo,emptyInsertThreshold:5};Ro.initializePlugins(this,e,r);for(var o in r)!(o in t)&&(t[o]=r[o]);Xp(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:nC,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_t(e,"pointerdown",this._onTapStart):(_t(e,"mousedown",this._onTapStart),_t(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_t(e,"dragover",this),_t(e,"dragenter",this)),il.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_i(this,Xw())}st.prototype={constructor:st,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Pr=null)},_getDirection:function(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,ze):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var r=this,o=this.el,i=this.options,l=i.preventOnFilter,d=t.type,c=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(c||t).target,m=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,h=i.filter;if(pC(o),!ze&&!(/mousedown|pointerdown/.test(d)&&t.button!==0||i.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&Vo&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ci(u,i.draggable,o,!1),!(u&&u.animated)&&el!==u)){if(Fr=Ln(u),$o=Ln(u,i.draggable),typeof h=="function"){if(h.call(this,t,u,this)){pn({sortable:r,rootEl:m,name:"filter",targetEl:u,toEl:o,fromEl:o}),An("filter",r,{evt:t}),l&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(y){if(y=ci(m,y.trim(),o,!1),y)return pn({sortable:r,rootEl:y,name:"filter",targetEl:u,fromEl:o,toEl:o}),An("filter",r,{evt:t}),!0}),h)){l&&t.cancelable&&t.preventDefault();return}i.handle&&!ci(m,i.handle,o,!1)||this._prepareDragStart(t,c,u)}}},_prepareDragStart:function(t,r,o){var i=this,l=i.el,d=i.options,c=l.ownerDocument,u;if(o&&!ze&&o.parentNode===l){var m=Yt(o);if(Vt=l,ze=o,Mt=ze.parentNode,or=ze.nextSibling,el=o,tl=d.group,st.dragged=ze,ar={target:ze,clientX:(r||t).clientX,clientY:(r||t).clientY},Gp=ar.clientX-m.left,Kp=ar.clientY-m.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,ze.style["will-change"]="all",u=function(){if(An("delayEnded",i,{evt:t}),st.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Ip&&i.nativeDraggable&&(ze.draggable=!0),i._triggerDragStart(t,r),pn({sortable:i,name:"choose",originalEvent:t}),On(ze,d.chosenClass,!0)},d.ignore.split(",").forEach(function(h){Lp(ze,h.trim(),ic)}),_t(c,"dragover",lr),_t(c,"mousemove",lr),_t(c,"touchmove",lr),_t(c,"mouseup",i._onDrop),_t(c,"touchend",i._onDrop),_t(c,"touchcancel",i._onDrop),Ip&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ze.draggable=!0),An("delayStart",this,{evt:t}),d.delay&&(!d.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Oo||Ai))){if(st.eventCanceled){this._onDrop();return}_t(c,"mouseup",i._disableDelayedDrag),_t(c,"touchend",i._disableDelayedDrag),_t(c,"touchcancel",i._disableDelayedDrag),_t(c,"mousemove",i._delayedDragTouchMoveHandler),_t(c,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&_t(c,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(u,d.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ze&&ic(ze),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;gt(t,"mouseup",this._disableDelayedDrag),gt(t,"touchend",this._disableDelayedDrag),gt(t,"touchcancel",this._disableDelayedDrag),gt(t,"mousemove",this._delayedDragTouchMoveHandler),gt(t,"touchmove",this._delayedDragTouchMoveHandler),gt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?_t(document,"pointermove",this._onTouchMove):r?_t(document,"touchmove",this._onTouchMove):_t(document,"mousemove",this._onTouchMove):(_t(ze,"dragend",this),_t(Vt,"dragstart",this._onDragStart));try{document.selection?cl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,r){if(Mr=!1,Vt&&ze){An("dragStarted",this,{evt:r}),this.nativeDraggable&&_t(document,"dragover",oC);var o=this.options;!t&&On(ze,o.dragClass,!1),On(ze,o.ghostClass,!0),st.active=this,t&&this._appendGhost(),pn({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(Qn){this._lastX=Qn.clientX,this._lastY=Qn.clientY,Zp();for(var t=document.elementFromPoint(Qn.clientX,Qn.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Qn.clientX,Qn.clientY),t!==r);)r=t;if(ze.parentNode[Vn]._isOutsideThisEl(t),r)do{if(r[Vn]){var o=void 0;if(o=r[Vn]._onDragOver({clientX:Qn.clientX,clientY:Qn.clientY,target:t,rootEl:r}),o&&!this.options.dragoverBubble)break}t=r}while(r=r.parentNode);qp()}},_onTouchMove:function(t){if(ar){var r=this.options,o=r.fallbackTolerance,i=r.fallbackOffset,l=t.touches?t.touches[0]:t,d=ut&&Rr(ut,!0),c=ut&&d&&d.a,u=ut&&d&&d.d,m=sl&&dn&&zp(dn),h=(l.clientX-ar.clientX+i.x)/(c||1)+(m?m[0]-tc[0]:0)/(c||1),y=(l.clientY-ar.clientY+i.y)/(u||1)+(m?m[1]-tc[1]:0)/(u||1);if(!st.active&&!Mr){if(o&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(ut){d?(d.e+=h-(qd||0),d.f+=y-(ec||0)):d={a:1,b:0,c:0,d:1,e:h,f:y};var C="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");lt(ut,"webkitTransform",C),lt(ut,"mozTransform",C),lt(ut,"msTransform",C),lt(ut,"transform",C),qd=h,ec=y,Qn=l}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ut){var t=this.options.fallbackOnBody?document.body:Vt,r=Yt(ze,!0,sl,!0,t),o=this.options;if(sl){for(dn=t;lt(dn,"position")==="static"&<(dn,"transform")==="none"&&dn!==document;)dn=dn.parentNode;dn!==document.body&&dn!==document.documentElement?(dn===document&&(dn=ui()),r.top+=dn.scrollTop,r.left+=dn.scrollLeft):dn=ui(),tc=zp(dn)}ut=ze.cloneNode(!0),On(ut,o.ghostClass,!1),On(ut,o.fallbackClass,!0),On(ut,o.dragClass,!0),lt(ut,"transition",""),lt(ut,"transform",""),lt(ut,"box-sizing","border-box"),lt(ut,"margin",0),lt(ut,"top",r.top),lt(ut,"left",r.left),lt(ut,"width",r.width),lt(ut,"height",r.height),lt(ut,"opacity","0.8"),lt(ut,"position",sl?"absolute":"fixed"),lt(ut,"zIndex","100000"),lt(ut,"pointerEvents","none"),st.ghost=ut,t.appendChild(ut),lt(ut,"transform-origin",Gp/parseInt(ut.style.width)*100+"% "+Kp/parseInt(ut.style.height)*100+"%")}},_onDragStart:function(t,r){var o=this,i=t.dataTransfer,l=o.options;if(An("dragStart",this,{evt:t}),st.eventCanceled){this._onDrop();return}An("setupClone",this),st.eventCanceled||(Pt=Wp(ze),Pt.draggable=!1,Pt.style["will-change"]="",this._hideClone(),On(Pt,this.options.chosenClass,!1),st.clone=Pt),o.cloneId=cl(function(){An("clone",o),!st.eventCanceled&&(o.options.removeCloneOnHide||Vt.insertBefore(Pt,ze),o._hideClone(),pn({sortable:o,name:"clone"}))}),!r&&On(ze,l.dragClass,!0),r?(nl=!0,o._loopId=setInterval(o._emulateDragOver,50)):(gt(document,"mouseup",o._onDrop),gt(document,"touchend",o._onDrop),gt(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",l.setData&&l.setData.call(o,i,ze)),_t(document,"drop",o),lt(ze,"transform","translateZ(0)")),Mr=!0,o._dragStartId=cl(o._dragStarted.bind(o,r,t)),_t(document,"selectstart",o),Io=!0,Vo&<(document.body,"user-select","none")},_onDragOver:function(t){var r=this.el,o=t.target,i,l,d,c=this.options,u=c.group,m=st.active,h=tl===u,y=c.sort,C=rn||m,S,w=this,E=!1;if(nc)return;function _(A,J){An(A,w,di({evt:t,isOwner:h,axis:S?"vertical":"horizontal",revert:d,dragRect:i,targetRect:l,canSort:y,fromSortable:C,target:o,completed:b,onMove:function(G,ie){return dl(Vt,r,ze,i,G,Yt(G),t,ie)},changed:x},J))}function g(){_("dragOverAnimationCapture"),w.captureAnimationState(),w!==C&&C.captureAnimationState()}function b(A){return _("dragOverCompleted",{insertion:A}),A&&(h?m._hideClone():m._showClone(w),w!==C&&(On(ze,rn?rn.options.ghostClass:m.options.ghostClass,!1),On(ze,c.ghostClass,!0)),rn!==w&&w!==st.active?rn=w:w===st.active&&rn&&(rn=null),C===w&&(w._ignoreWhileAnimating=o),w.animateAll(function(){_("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==C&&(C.animateAll(),C._ignoreWhileAnimating=null)),(o===ze&&!ze.animated||o===r&&!o.animated)&&(Pr=null),!c.dragoverBubble&&!t.rootEl&&o!==document&&(ze.parentNode[Vn]._isOutsideThisEl(t.target),!A&&lr(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),E=!0}function x(){Bn=Ln(ze),Li=Ln(ze,c.draggable),pn({sortable:w,name:"change",toEl:r,newIndex:Bn,newDraggableIndex:Li,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=ci(o,c.draggable,r,!0),_("dragOver"),st.eventCanceled)return E;if(ze.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||w._ignoreWhileAnimating===o)return b(!1);if(nl=!1,m&&!c.disabled&&(h?y||(d=Mt!==Vt):rn===this||(this.lastPutMode=tl.checkPull(this,m,ze,t))&&u.checkPut(this,m,ze,t))){if(S=this._getDirection(t,o)==="vertical",i=Yt(ze),_("dragOverValid"),st.eventCanceled)return E;if(d)return Mt=Vt,g(),this._hideClone(),_("revert"),st.eventCanceled||(or?Vt.insertBefore(ze,or):Vt.appendChild(ze)),b(!0);var k=Jd(r,c.draggable);if(!k||dC(t,S,this)&&!k.animated){if(k===ze)return b(!1);if(k&&r===t.target&&(o=k),o&&(l=Yt(o)),dl(Vt,r,ze,i,o,l,t,!!o)!==!1)return g(),r.appendChild(ze),Mt=r,x(),b(!0)}else if(k&&sC(t,S,this)){var N=$r(r,0,c,!0);if(N===ze)return b(!1);if(o=N,l=Yt(o),dl(Vt,r,ze,i,o,l,t,!1)!==!1)return g(),r.insertBefore(ze,N),Mt=r,x(),b(!0)}else if(o.parentNode===r){l=Yt(o);var V=0,F,I=ze.parentNode!==r,P=!iC(ze.animated&&ze.toRect||i,o.animated&&o.toRect||l,S),T=S?"top":"left",B=jp(o,"top","top")||jp(ze,"top","top"),L=B?B.scrollTop:void 0;Pr!==o&&(F=l[T],Mo=!1,rl=!P&&c.invertSwap||I),V=cC(t,o,l,S,P?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,rl,Pr===o);var U;if(V!==0){var H=Ln(ze);do H-=V,U=Mt.children[H];while(U&&(lt(U,"display")==="none"||U===ut))}if(V===0||U===o)return b(!1);Pr=o,Fo=V;var R=o.nextElementSibling,z=!1;z=V===1;var $=dl(Vt,r,ze,i,o,l,t,z);if($!==!1)return($===1||$===-1)&&(z=$===1),nc=!0,setTimeout(lC,30),g(),z&&!R?r.appendChild(ze):o.parentNode.insertBefore(ze,z?R:o),B&&Hp(B,0,L-B.scrollTop),Mt=ze.parentNode,F!==void 0&&!rl&&(ol=Math.abs(F-Yt(o)[T])),x(),b(!0)}if(r.contains(ze))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){gt(document,"mousemove",this._onTouchMove),gt(document,"touchmove",this._onTouchMove),gt(document,"pointermove",this._onTouchMove),gt(document,"dragover",lr),gt(document,"mousemove",lr),gt(document,"touchmove",lr)},_offUpEvents:function(){var t=this.el.ownerDocument;gt(t,"mouseup",this._onDrop),gt(t,"touchend",this._onDrop),gt(t,"pointerup",this._onDrop),gt(t,"touchcancel",this._onDrop),gt(document,"selectstart",this)},_onDrop:function(t){var r=this.el,o=this.options;if(Bn=Ln(ze),Li=Ln(ze,o.draggable),An("drop",this,{evt:t}),Mt=ze&&ze.parentNode,Bn=Ln(ze),Li=Ln(ze,o.draggable),st.eventCanceled){this._nulling();return}Mr=!1,rl=!1,Mo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),rc(this.cloneId),rc(this._dragStartId),this.nativeDraggable&&(gt(document,"drop",this),gt(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Vo&<(document.body,"user-select",""),lt(ze,"transform",""),t&&(Io&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),ut&&ut.parentNode&&ut.parentNode.removeChild(ut),(Vt===Mt||rn&&rn.lastPutMode!=="clone")&&Pt&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),ze&&(this.nativeDraggable&>(ze,"dragend",this),ic(ze),ze.style["will-change"]="",Io&&!Mr&&On(ze,rn?rn.options.ghostClass:this.options.ghostClass,!1),On(ze,this.options.chosenClass,!1),pn({sortable:this,name:"unchoose",toEl:Mt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Vt!==Mt?(Bn>=0&&(pn({rootEl:Mt,name:"add",toEl:Mt,fromEl:Vt,originalEvent:t}),pn({sortable:this,name:"remove",toEl:Mt,originalEvent:t}),pn({rootEl:Mt,name:"sort",toEl:Mt,fromEl:Vt,originalEvent:t}),pn({sortable:this,name:"sort",toEl:Mt,originalEvent:t})),rn&&rn.save()):Bn!==Fr&&Bn>=0&&(pn({sortable:this,name:"update",toEl:Mt,originalEvent:t}),pn({sortable:this,name:"sort",toEl:Mt,originalEvent:t})),st.active&&((Bn==null||Bn===-1)&&(Bn=Fr,Li=$o),pn({sortable:this,name:"end",toEl:Mt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){An("nulling",this),Vt=ze=Mt=ut=or=Pt=el=Pi=ar=Qn=Io=Bn=Li=Fr=$o=Pr=Fo=rn=tl=st.dragged=st.ghost=st.clone=st.active=null,al.forEach(function(t){t.checked=!0}),al.length=qd=ec=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ze&&(this._onDragOver(t),aC(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],r,o=this.el.children,i=0,l=o.length,d=this.options;i<l;i++)r=o[i],ci(r,d.draggable,this.el,!1)&&t.push(r.getAttribute(d.dataIdAttr)||fC(r));return t},sort:function(t,r){var o={},i=this.el;this.toArray().forEach(function(l,d){var c=i.children[d];ci(c,this.options.draggable,i,!1)&&(o[l]=c)},this),r&&this.captureAnimationState(),t.forEach(function(l){o[l]&&(i.removeChild(o[l]),i.appendChild(o[l]))}),r&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,r){return ci(t,r||this.options.draggable,this.el,!1)},option:function(t,r){var o=this.options;if(r===void 0)return o[t];var i=Ro.modifyOption(this,t,r);typeof i<"u"?o[t]=i:o[t]=r,t==="group"&&Xp(o)},destroy:function(){An("destroy",this);var t=this.el;t[Vn]=null,gt(t,"mousedown",this._onTapStart),gt(t,"touchstart",this._onTapStart),gt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(gt(t,"dragover",this),gt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),il.splice(il.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Pi){if(An("hideClone",this),st.eventCanceled)return;lt(Pt,"display","none"),this.options.removeCloneOnHide&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),Pi=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Pi){if(An("showClone",this),st.eventCanceled)return;ze.parentNode==Vt&&!this.options.group.revertClone?Vt.insertBefore(Pt,ze):or?Vt.insertBefore(Pt,or):Vt.appendChild(Pt),this.options.group.revertClone&&this.animate(ze,Pt),lt(Pt,"display",""),Pi=!1}}};function aC(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function dl(e,t,r,o,i,l,d,c){var u,m=e[Vn],h=m.options.onMove,y;return window.CustomEvent&&!Ai&&!Oo?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=r,u.draggedRect=o,u.related=i||t,u.relatedRect=l||Yt(t),u.willInsertAfter=c,u.originalEvent=d,e.dispatchEvent(u),h&&(y=h.call(m,u,d)),y}function ic(e){e.draggable=!1}function lC(){nc=!1}function sC(e,t,r){var o=Yt($r(r.el,0,r.options,!0)),i=10;return t?e.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}function dC(e,t,r){var o=Yt(Jd(r.el,r.options.draggable)),i=10;return t?e.clientX>o.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}function cC(e,t,r,o,i,l,d,c){var u=o?e.clientY:e.clientX,m=o?r.height:r.width,h=o?r.top:r.left,y=o?r.bottom:r.right,C=!1;if(!d){if(c&&ol<m*i){if(!Mo&&(Fo===1?u>h+m*l/2:u<y-m*l/2)&&(Mo=!0),Mo)C=!0;else if(Fo===1?u<h+ol:u>y-ol)return-Fo}else if(u>h+m*(1-i)/2&&u<y-m*(1-i)/2)return uC(t)}return C=C||d,C&&(u<h+m*l/2||u>y-m*l/2)?u>h+m/2?1:-1:0}function uC(e){return Ln(ze)<Ln(e)?1:-1}function fC(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,o=0;r--;)o+=t.charCodeAt(r);return o.toString(36)}function pC(e){al.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var o=t[r];o.checked&&al.push(o)}}function cl(e){return setTimeout(e,0)}function rc(e){return clearTimeout(e)}ll&&_t(document,"touchmove",function(e){(st.active||Mr)&&e.cancelable&&e.preventDefault()}),st.utils={on:_t,off:gt,css:lt,find:Lp,is:function(t,r){return!!ci(t,r,t,!1)},extend:Qw,throttle:Up,closest:ci,toggleClass:On,clone:Wp,index:Ln,nextTick:cl,cancelNextTick:rc,detectDirection:Jp,getChild:$r},st.get=function(e){return e[Vn]},st.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(st.utils=di(di({},st.utils),o.utils)),Ro.mount(o)})},st.create=function(e,t){return new st(e,t)},st.version=Ww;var Ut=[],Po,oc,ac=!1,lc,sc,ul,Lo;function hC(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var o=r.originalEvent;this.sortable.nativeDraggable?_t(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_t(document,"pointermove",this._handleFallbackAutoScroll):o.touches?_t(document,"touchmove",this._handleFallbackAutoScroll):_t(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var o=r.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?gt(document,"dragover",this._handleAutoScroll):(gt(document,"pointermove",this._handleFallbackAutoScroll),gt(document,"touchmove",this._handleFallbackAutoScroll),gt(document,"mousemove",this._handleFallbackAutoScroll)),eh(),fl(),Jw()},nulling:function(){ul=oc=Po=ac=Lo=lc=sc=null,Ut.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,o){var i=this,l=(r.touches?r.touches[0]:r).clientX,d=(r.touches?r.touches[0]:r).clientY,c=document.elementFromPoint(l,d);if(ul=r,o||this.options.forceAutoScrollFallback||Oo||Ai||Vo){dc(r,this.options,c,o);var u=Mi(c,!0);ac&&(!Lo||l!==lc||d!==sc)&&(Lo&&eh(),Lo=setInterval(function(){var m=Mi(document.elementFromPoint(l,d),!0);m!==u&&(u=m,fl()),dc(r,i.options,m,o)},10),lc=l,sc=d)}else{if(!this.options.bubbleScroll||Mi(c,!0)===ui()){fl();return}dc(r,this.options,Mi(c,!1),!1)}}},_i(e,{pluginName:"scroll",initializeByDefault:!0})}function fl(){Ut.forEach(function(e){clearInterval(e.pid)}),Ut=[]}function eh(){clearInterval(Lo)}var dc=Up(function(e,t,r,o){if(!!t.scroll){var i=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,c=t.scrollSpeed,u=ui(),m=!1,h;oc!==r&&(oc=r,fl(),Po=t.scroll,h=t.scrollFn,Po===!0&&(Po=Mi(r,!0)));var y=0,C=Po;do{var S=C,w=Yt(S),E=w.top,_=w.bottom,g=w.left,b=w.right,x=w.width,k=w.height,N=void 0,V=void 0,F=S.scrollWidth,I=S.scrollHeight,P=lt(S),T=S.scrollLeft,B=S.scrollTop;S===u?(N=x<F&&(P.overflowX==="auto"||P.overflowX==="scroll"||P.overflowX==="visible"),V=k<I&&(P.overflowY==="auto"||P.overflowY==="scroll"||P.overflowY==="visible")):(N=x<F&&(P.overflowX==="auto"||P.overflowX==="scroll"),V=k<I&&(P.overflowY==="auto"||P.overflowY==="scroll"));var L=N&&(Math.abs(b-i)<=d&&T+x<F)-(Math.abs(g-i)<=d&&!!T),U=V&&(Math.abs(_-l)<=d&&B+k<I)-(Math.abs(E-l)<=d&&!!B);if(!Ut[y])for(var H=0;H<=y;H++)Ut[H]||(Ut[H]={});(Ut[y].vx!=L||Ut[y].vy!=U||Ut[y].el!==S)&&(Ut[y].el=S,Ut[y].vx=L,Ut[y].vy=U,clearInterval(Ut[y].pid),(L!=0||U!=0)&&(m=!0,Ut[y].pid=setInterval(function(){o&&this.layer===0&&st.active._onTouchMove(ul);var R=Ut[this.layer].vy?Ut[this.layer].vy*c:0,z=Ut[this.layer].vx?Ut[this.layer].vx*c:0;typeof h=="function"&&h.call(st.dragged.parentNode[Vn],z,R,e,ul,Ut[this.layer].el)!=="continue"||Hp(Ut[this.layer].el,z,R)}.bind({layer:y}),24))),y++}while(t.bubbleScroll&&C!==u&&(C=Mi(C,!1)));ac=m}},30),th=function(t){var r=t.originalEvent,o=t.putSortable,i=t.dragEl,l=t.activeSortable,d=t.dispatchSortableEvent,c=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(!!r){var m=o||l;c();var h=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,y=document.elementFromPoint(h.clientX,h.clientY);u(),m&&!m.el.contains(y)&&(d("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function cc(){}cc.prototype={startIndex:null,dragStart:function(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function(t){var r=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=$r(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(r,i):this.sortable.el.appendChild(r),this.sortable.animateAll(),o&&o.animateAll()},drop:th},_i(cc,{pluginName:"revertOnSpill"});function uc(){}uc.prototype={onSpill:function(t){var r=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),i.animateAll()},drop:th},_i(uc,{pluginName:"removeOnSpill"}),st.mount(new hC),st.mount(uc,cc);function fc(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function nh(e,t,r){const o=r===0?e.children[0]:e.children[r-1].nextSibling;e.insertBefore(t,o)}function mC(){return typeof window<"u"?window.console:global.console}const gC=mC();function vC(e){const t=Object.create(null);return function(o){return t[o]||(t[o]=e(o))}}const yC=/-(\w)/g,bC=vC(e=>e.replace(yC,(t,r)=>r.toUpperCase())),ih=["Start","Add","Remove","Update","End"],rh=["Choose","Unchoose","Sort","Filter","Clone"],oh=["Move"],wC=[oh,ih,rh].flatMap(e=>e).map(e=>`on${e}`),pc={manage:oh,manageAndEmit:ih,emit:rh};function CC(e){return wC.indexOf(e)!==-1}const _C=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function EC(e){return _C.includes(e)}function AC(e){return["transition-group","TransitionGroup"].includes(e)}function ah(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function lh(e){return e.reduce((t,[r,o])=>(t[r]=o,t),{})}function SC({$attrs:e,componentData:t={}}){return{...lh(Object.entries(e).filter(([o,i])=>ah(o))),...t}}function xC({$attrs:e,callBackBuilder:t}){const r=lh(sh(e));Object.entries(t).forEach(([i,l])=>{pc[i].forEach(d=>{r[`on${d}`]=l(d)})});const o=`[data-draggable]${r.draggable||""}`;return{...r,draggable:o}}function sh(e){return Object.entries(e).filter(([t,r])=>!ah(t)).map(([t,r])=>[bC(t),r]).filter(([t,r])=>!CC(t))}const dh=({el:e})=>e,kC=(e,t)=>e.__draggable_context=t,ch=e=>e.__draggable_context;class TC{constructor({nodes:{header:t,default:r,footer:o},root:i,realList:l}){this.defaultNodes=r,this.children=[...t,...r,...o],this.externalComponent=i.externalComponent,this.rootTransition=i.transition,this.tag=i.tag,this.realList=l}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(t,r){const{tag:o,children:i,_isRootComponent:l}=this;return t(o,r,l?{default:()=>i}:i)}updated(){const{defaultNodes:t,realList:r}=this;t.forEach((o,i)=>{kC(dh(o),{element:r[i],index:i})})}getUnderlyingVm(t){return ch(t)}getVmIndexFromDomIndex(t,r){const{defaultNodes:o}=this,{length:i}=o,l=r.children,d=l.item(t);if(d===null)return i;const c=ch(d);if(c)return c.index;if(i===0)return 0;const u=dh(o[0]),m=[...l].findIndex(h=>h===u);return t<m?0:i}}function NC(e,t){const r=e[t];return r?r():[]}function DC({$slots:e,realList:t,getKey:r}){const o=t||[],[i,l]=["header","footer"].map(u=>NC(e,u)),{item:d}=e;if(!d)throw new Error("draggable element must have an item slot");const c=o.flatMap((u,m)=>d({element:u,index:m}).map(h=>(h.key=r(u),h.props={...h.props||{},"data-draggable":!0},h)));if(c.length!==o.length)throw new Error("Item slot must have only one child");return{header:i,footer:l,default:c}}function OC(e){const t=AC(e),r=!EC(e)&&!t;return{transition:t,externalComponent:r,tag:r?n.resolveComponent(e):t?n.TransitionGroup:e}}function VC({$slots:e,tag:t,realList:r,getKey:o}){const i=DC({$slots:e,realList:r,getKey:o}),l=OC(t);return new TC({nodes:i,root:l,realList:r})}function uh(e,t){n.nextTick(()=>this.$emit(e.toLowerCase(),t))}function fh(e){return(t,r)=>{if(this.realList!==null)return this[`onDrag${e}`](t,r)}}function BC(e){const t=fh.call(this,e);return(r,o)=>{t.call(this,r,o),uh.call(this,e,r)}}let hc=null;const RC={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},$C=["update:modelValue","change",...[...pc.manageAndEmit,...pc.emit].map(e=>e.toLowerCase())],Lr=n.defineComponent({name:"draggable",inheritAttrs:!1,props:RC,emits:$C,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:e,$attrs:t,tag:r,componentData:o,realList:i,getKey:l}=this,d=VC({$slots:e,tag:r,realList:i,getKey:l});this.componentStructure=d;const c=SC({$attrs:t,componentData:o});return d.render(n.h,c)}catch(e){return this.error=!0,n.h("pre",{style:{color:"red"}},e.stack)}},created(){this.list!==null&&this.modelValue!==null&&gC.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:e,$el:t,componentStructure:r}=this;r.updated();const o=xC({$attrs:e,callBackBuilder:{manageAndEmit:l=>BC.call(this,l),emit:l=>uh.bind(this,l),manage:l=>fh.call(this,l)}}),i=t.nodeType===1?t:t.parentElement;this._sortable=new st(i,o),this.targetDomElement=i,i.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:e}=this;return e||this.modelValue},getKey(){const{itemKey:e}=this;return typeof e=="function"?e:t=>t[e]}},watch:{$attrs:{handler(e){const{_sortable:t}=this;!t||sh(e).forEach(([r,o])=>{t.option(r,o)})},deep:!0}},methods:{getUnderlyingVm(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent(e){return e.__draggable_component__},emitChanges(e){n.nextTick(()=>this.$emit("change",e))},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const r=o=>o.splice(t,0,o.splice(e,1)[0]);this.alterList(r)},getRelatedContextFromMoveEvent({to:e,related:t}){const r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};const o=r.realList,i={list:o,component:r};return e!==t&&o?{...r.getUnderlyingVm(t)||{},...i}:i},getVmIndexFromDomIndex(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),hc=e.item},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;fc(e.item);const r=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(r,0,t);const o={element:t,newIndex:r};this.emitChanges({added:o})},onDragRemove(e){if(nh(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){fc(e.clone);return}const{index:t,element:r}=this.context;this.spliceList(t,1);const o={element:r,oldIndex:t};this.emitChanges({removed:o})},onDragUpdate(e){fc(e.item),nh(e.from,e.item,e.oldIndex);const t=this.context.index,r=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,r);const o={element:this.context.element,oldIndex:t,newIndex:r};this.emitChanges({moved:o})},computeFutureIndex(e,t){if(!e.element)return 0;const r=[...t.to.children].filter(d=>d.style.display!=="none"),o=r.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(o);return r.indexOf(hc)!==-1||!t.willInsertAfter?i:i+1},onDragMove(e,t){const{move:r,realList:o}=this;if(!r||!o)return!0;const i=this.getRelatedContextFromMoveEvent(e),l=this.computeFutureIndex(i,e),d={...this.context,futureIndex:l},c={...e,relatedContext:i,draggedContext:d};return r(c,t)},onDragEnd(){hc=null}}});function IC(){return[{name:"template",title:"\u6A21\u677F",list:[]},{name:"main",title:"\u57FA\u7840\u7EC4\u4EF6",list:[]},{name:"subform",title:"\u5B50\u8868\u5355\u7EC4\u4EF6",list:[]},{name:"container",title:"\u5BB9\u5668\u7EC4\u4EF6",list:[]},{name:"chart",title:"\u56FE\u8868\u7EC4\u4EF6",list:[]},{name:"aide",title:"\u8F85\u52A9\u7EC4\u4EF6",list:[]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[]}]}var mc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function FC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(mc,function(){var r=1e3,o=6e4,i=36e5,l="millisecond",d="second",c="minute",u="hour",m="day",h="week",y="month",C="quarter",S="year",w="date",E="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var R=["th","st","nd","rd"],z=H%100;return"["+H+(R[(z-20)%10]||R[z]||R[0])+"]"}},x=function(H,R,z){var $=String(H);return!$||$.length>=R?H:""+Array(R+1-$.length).join(z)+H},k={s:x,z:function(H){var R=-H.utcOffset(),z=Math.abs(R),$=Math.floor(z/60),A=z%60;return(R<=0?"+":"-")+x($,2,"0")+":"+x(A,2,"0")},m:function H(R,z){if(R.date()<z.date())return-H(z,R);var $=12*(z.year()-R.year())+(z.month()-R.month()),A=R.clone().add($,y),J=z-A<0,Q=R.clone().add($+(J?-1:1),y);return+(-($+(z-A)/(J?A-Q:Q-A))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:y,y:S,w:h,d:m,D:w,h:u,m:c,s:d,ms:l,Q:C}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},N="en",V={};V[N]=b;var F="$isDayjsObject",I=function(H){return H instanceof L||!(!H||!H[F])},P=function H(R,z,$){var A;if(!R)return N;if(typeof R=="string"){var J=R.toLowerCase();V[J]&&(A=J),z&&(V[J]=z,A=J);var Q=R.split("-");if(!A&&Q.length>1)return H(Q[0])}else{var G=R.name;V[G]=R,A=G}return!$&&A&&(N=A),A||!$&&N},T=function(H,R){if(I(H))return H.clone();var z=typeof R=="object"?R:{};return z.date=H,z.args=arguments,new L(z)},B=k;B.l=P,B.i=I,B.w=function(H,R){return T(H,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var L=function(){function H(z){this.$L=P(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[F]=!0}var R=H.prototype;return R.parse=function(z){this.$d=function($){var A=$.date,J=$.utc;if(A===null)return new Date(NaN);if(B.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var Q=A.match(_);if(Q){var G=Q[2]-1||0,ie=(Q[7]||"0").substring(0,3);return J?new Date(Date.UTC(Q[1],G,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,ie)):new Date(Q[1],G,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,ie)}}return new Date(A)}(z),this.init()},R.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},R.$utils=function(){return B},R.isValid=function(){return this.$d.toString()!==E},R.isSame=function(z,$){var A=T(z);return this.startOf($)<=A&&A<=this.endOf($)},R.isAfter=function(z,$){return T(z)<this.startOf($)},R.isBefore=function(z,$){return this.endOf($)<T(z)},R.$g=function(z,$,A){return B.u(z)?this[$]:this.set(A,z)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(z,$){var A=this,J=!!B.u($)||$,Q=B.p(z),G=function(se,ge){var ye=B.w(A.$u?Date.UTC(A.$y,ge,se):new Date(A.$y,ge,se),A);return J?ye:ye.endOf(m)},ie=function(se,ge){return B.w(A.toDate()[se].apply(A.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(ge)),A)},X=this.$W,le=this.$M,be=this.$D,ce="set"+(this.$u?"UTC":"");switch(Q){case S:return J?G(1,0):G(31,11);case y:return J?G(1,le):G(0,le+1);case h:var de=this.$locale().weekStart||0,pe=(X<de?X+7:X)-de;return G(J?be-pe:be+(6-pe),le);case m:case w:return ie(ce+"Hours",0);case u:return ie(ce+"Minutes",1);case c:return ie(ce+"Seconds",2);case d:return ie(ce+"Milliseconds",3);default:return this.clone()}},R.endOf=function(z){return this.startOf(z,!1)},R.$set=function(z,$){var A,J=B.p(z),Q="set"+(this.$u?"UTC":""),G=(A={},A[m]=Q+"Date",A[w]=Q+"Date",A[y]=Q+"Month",A[S]=Q+"FullYear",A[u]=Q+"Hours",A[c]=Q+"Minutes",A[d]=Q+"Seconds",A[l]=Q+"Milliseconds",A)[J],ie=J===m?this.$D+($-this.$W):$;if(J===y||J===S){var X=this.clone().set(w,1);X.$d[G](ie),X.init(),this.$d=X.set(w,Math.min(this.$D,X.daysInMonth())).$d}else G&&this.$d[G](ie);return this.init(),this},R.set=function(z,$){return this.clone().$set(z,$)},R.get=function(z){return this[B.p(z)]()},R.add=function(z,$){var A,J=this;z=Number(z);var Q=B.p($),G=function(le){var be=T(J);return B.w(be.date(be.date()+Math.round(le*z)),J)};if(Q===y)return this.set(y,this.$M+z);if(Q===S)return this.set(S,this.$y+z);if(Q===m)return G(1);if(Q===h)return G(7);var ie=(A={},A[c]=o,A[u]=i,A[d]=r,A)[Q]||1,X=this.$d.getTime()+z*ie;return B.w(X,this)},R.subtract=function(z,$){return this.add(-1*z,$)},R.format=function(z){var $=this,A=this.$locale();if(!this.isValid())return A.invalidDate||E;var J=z||"YYYY-MM-DDTHH:mm:ssZ",Q=B.z(this),G=this.$H,ie=this.$m,X=this.$M,le=A.weekdays,be=A.months,ce=A.meridiem,de=function(ge,ye,D,W){return ge&&(ge[ye]||ge($,J))||D[ye].slice(0,W)},pe=function(ge){return B.s(G%12||12,ge,"0")},se=ce||function(ge,ye,D){var W=ge<12?"AM":"PM";return D?W.toLowerCase():W};return J.replace(g,function(ge,ye){return ye||function(D){switch(D){case"YY":return String($.$y).slice(-2);case"YYYY":return B.s($.$y,4,"0");case"M":return X+1;case"MM":return B.s(X+1,2,"0");case"MMM":return de(A.monthsShort,X,be,3);case"MMMM":return de(be,X);case"D":return $.$D;case"DD":return B.s($.$D,2,"0");case"d":return String($.$W);case"dd":return de(A.weekdaysMin,$.$W,le,2);case"ddd":return de(A.weekdaysShort,$.$W,le,3);case"dddd":return le[$.$W];case"H":return String(G);case"HH":return B.s(G,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return se(G,ie,!0);case"A":return se(G,ie,!1);case"m":return String(ie);case"mm":return B.s(ie,2,"0");case"s":return String($.$s);case"ss":return B.s($.$s,2,"0");case"SSS":return B.s($.$ms,3,"0");case"Z":return Q}return null}(ge)||Q.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(z,$,A){var J,Q=this,G=B.p($),ie=T(z),X=(ie.utcOffset()-this.utcOffset())*o,le=this-ie,be=function(){return B.m(Q,ie)};switch(G){case S:J=be()/12;break;case y:J=be();break;case C:J=be()/3;break;case h:J=(le-X)/6048e5;break;case m:J=(le-X)/864e5;break;case u:J=le/i;break;case c:J=le/o;break;case d:J=le/r;break;default:J=le}return A?J:B.a(J)},R.daysInMonth=function(){return this.endOf(y).$D},R.$locale=function(){return V[this.$L]},R.locale=function(z,$){if(!z)return this.$L;var A=this.clone(),J=P(z,$,!0);return J&&(A.$L=J),A},R.clone=function(){return B.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},H}(),U=L.prototype;return T.prototype=U,[["$ms",l],["$s",d],["$m",c],["$H",u],["$W",m],["$M",y],["$y",S],["$D",w]].forEach(function(H){U[H[1]]=function(R){return this.$g(R,H[0],H[1])}}),T.extend=function(H,R){return H.$i||(H(R,L,T),H.$i=!0),T},T.locale=P,T.isDayjs=I,T.unix=function(H){return T(1e3*H)},T.en=V[N],T.Ls=V,T.p={},T})})(ph);const MC=ph.exports,jr={Add:(e,t)=>{let r,o,i;try{r=e.toString().split(".")[1].length}catch{r=0}try{o=t.toString().split(".")[1].length}catch{o=0}return i=Math.pow(10,Math.max(r,o)),(e*i+t*i)/i},Sub:(e,t)=>{let r,o,i;try{r=e.toString().split(".")[1].length}catch{r=0}try{o=t.toString().split(".")[1].length}catch{o=0}i=Math.pow(10,Math.max(r,o));let l=r>=o?r:o;return Number(((e*i-t*i)/i).toFixed(l))},Mul:(e,t)=>{let r=0,o=e.toString(),i=t.toString();try{r+=o.split(".")[1].length}catch{}try{r+=i.split(".")[1].length}catch{}return Number(o.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,r)},Div:(e,t)=>{let r=0,o=0;try{r=e.toString().split(".")[1].length}catch{}try{o=t.toString().split(".")[1].length}catch{}let i=Number(e.toString().replace(".","")),l=Number(t.toString().replace(".",""));return i/l*Math.pow(10,o-r)}},PC="YYYY-MM-DD HH:mm:ss",ji=(e,t)=>e==null?t:e,Ht={ADD:function(e,t){return jr.Add(ji(e,"0"),ji(t,"0"))},SUB:function(e,t){return jr.Sub(ji(e,"0"),ji(t,"0"))},MUL:function(e,t){return jr.Mul(ji(e,"0"),ji(t,"0"))},DIV:function(e,t){return jr.Div(ji(e,"0"),ji(t,"0"))},SUM:function(...e){return(e||[]).reduce((t,r)=>jr.Add(t,Array.isArray(r)?Ht.SUM(...r):r||0),0)},MAX:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.max(...t.map(r=>parseFloat(r)).filter(r=>!isNaN(r)))},MIN:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.min(...t.map(r=>parseFloat(r)).filter(r=>!isNaN(r)))},ABS:function(e){return parseFloat(Math.abs(e))||0},AVG:function(...e){const t=Array.isArray(e[0])?e[0]:e;return t.length?jr.Div(Ht.SUM(t),t.length):0},POWER:function(e,t){return Math.pow(parseFloat(e),parseFloat(t))},RAND:function(){return Math.random()},CEIL:function(e){return Math.ceil(parseFloat(e))||0},FLOOR:function(e){return Math.floor(parseFloat(e)||0)},FIXED:function(e,t){const r=Math.pow(10,t||0);return(Math.floor(parseFloat(e)*r)/r).toFixed(t||0)},ISNUMBER:function(e){return e===""||e===null?!1:!isNaN(Number(e))},PI:function(){return Number(Math.PI)},ROUND:function(e,t){return e=parseFloat(e),isNaN(e)?0:parseFloat(e.toFixed(parseFloat(t)||0))},SQRT:function(e){return Math.sqrt(parseFloat(e))||0},TONUMBER:function(e){return parseFloat(e)||0},MODIFYDATE:function(e,t,r,o){if(!e)return null;let i=MC(e);return t>0?i=i.add(t,r):t<0&&(i=i.subtract(-1*t,r)),i.format(o||PC)},ADDYEAR:function(e,t,r){return Ht.MODIFYDATE(e,Math.max(t,0),"y",r)},ADDMONTH:function(e,t,r){return Ht.MODIFYDATE(e,Math.max(t,0),"M",r)},ADDDAY:function(e,t,r){return Ht.MODIFYDATE(e,Math.max(t,0),"d",r)},ADDHOUR:function(e,t,r){return Ht.MODIFYDATE(e,Math.max(t,0),"h",r)},ADDMINUTE:function(e,t,r){return Ht.MODIFYDATE(e,Math.max(t,0),"m",r)},ADDSECOND:function(e,t,r){return Ht.MODIFYDATE(e,Math.max(t,0),"s",r)},ADDWEEK:function(e,t,r){return Ht.MODIFYDATE(e,Math.max(t,0),"w",r)},SUBYEAR:function(e,t,r){return t=Math.max(t,0),Ht.MODIFYDATE(e,t>0?-1*t:0,"y",r)},SUBMONTH:function(e,t,r){return t=Math.max(t,0),Ht.MODIFYDATE(e,t>0?-1*t:0,"M",r)},SUBDAY:function(e,t,r){return t=Math.max(t,0),Ht.MODIFYDATE(e,t>0?-1*t:0,"d",r)},SUBHOUR:function(e,t,r){return t=Math.max(t,0),Ht.MODIFYDATE(e,t>0?-1*t:0,"h",r)},SUBMINUTE:function(e,t,r){return t=Math.max(t,0),Ht.MODIFYDATE(e,t>0?-1*t:0,"m",r)},SUBSECOND:function(e,t,r){return t=Math.max(t,0),Ht.MODIFYDATE(e,t>0?-1*t:0,"s",r)},SUBWEEK:function(e,t,r){return t=Math.max(t,0),Ht.MODIFYDATE(e,t>0?-1*t:0,"w",r)},NOW:function(){const e=new Date,t=e.getFullYear(),r=("0"+(e.getMonth()+1)).slice(-2),o=("0"+e.getDate()).slice(-2),i=("0"+e.getHours()).slice(-2),l=("0"+e.getMinutes()).slice(-2),d=("0"+e.getSeconds()).slice(-2);return t+"-"+r+"-"+o+" "+i+":"+l+":"+d},TODAY:function(){const e=new Date,t=e.getFullYear(),r=("0"+(e.getMonth()+1)).slice(-2),o=("0"+e.getDate()).slice(-2);return t+"-"+r+"-"+o},YEAR:function(e){return e?new Date(e).getFullYear():null},MONTH:function(e){return e?new Date(e).getMonth()+1:null},DAY:function(e){return e?new Date(e).getDate():null},HOUR:function(e){return e?new Date(e).getHours():null},MINUTE:function(e){return e?new Date(e).getMinutes():null},SECOND:function(e){return e?new Date(e).getSeconds():null},DIFFDAYS:function(e,t){const r=new Date(e),o=new Date(t);return parseInt(Math.ceil(Math.abs(o.getTime()-r.getTime())/(1e3*60*60*24)))},DIFFHOURS:function(e,t){const r=new Date(e),o=new Date(t);return parseFloat(Math.abs(o.getTime()-r.getTime())/(1e3*60*60)).toFixed(2)},DIFFMINUTES:function(e,t){const r=new Date(e),o=new Date(t);return parseInt(Math.ceil(Math.abs(o.getTime()-r.getTime())/(1e3*60)))},TIMESTAMP:function(e){return Date.parse(e)},STARTSWITH:function(e,t){return(""+e).substring(0,(""+t).length)===t},EMPTY:function(e){return ct.empty(e)},NOTEMPTY:function(e){return!ct.empty(e)},LEN:function(e){return Array.isArray(e)?e.length:0},MOD:function(e,t){return e=parseFloat(e),t=parseFloat(t),!e||!t||isNaN(e)||isNaN(t)?0:e%t},SLICELEFT:function(e,t){return(""+e).slice(0,Number(t)||0)},SLICERIGHT:function(e,t){return(""+e).slice(Number(t)*-1)},TOLOWER:function(e){return(""+e).toLowerCase()},TOUPPER:function(e){return(""+e).toUpperCase()},INCLUDES:function(e,t){return(e||"").indexOf(t||"")},REPLACE:function(e,t,r){return(e||"").replace(t||"",r||"")},REPLACEALL:function(e,t,r){return(e||"").replaceAll(t||"",r||"")},TRIM:function(e){return(e||"").trim()},TOCHINSESAMOUNT:function(e){let t=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],r=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"],o=["","\u62FE","\u4F70","\u4EDF"],i=["\u89D2","\u5206"];function l(C){let S="",w="",E=0,_=!0;for(;C>0;){let g=C%10;g===0?_||(_=!0,w=t[g]+w):(_=!1,S=t[g],S+=o[E],w=S+w),E++,C=Math.floor(C/10)}return w}let d=0,c="",u="",m=!1;if(e===0)return t[0];let h=Math.floor(e),y=Math.round((e-h)*100);for(;h>0;){let C=h%1e4;m&&(u=t[0]+u),c=l(C),c+=C!==0?r[d]:r[0],u=c+u,m=C<1e3&&C>0,h=Math.floor(h/1e4),d++}return u&&(u+="\u5143"),y>0?(u+=t[Math.floor(y/10)]+i[0],y%10!==0&&(u+=t[y%10]+i[1])):u&&(u+="\u6574"),u},UNION:function(...e){return(Array.isArray(e[0])?e[0]:e).filter((r,o,i)=>i.indexOf(r)===o)},AND:function(...e){return!!e.reduce((t,r)=>t&&r,!0)},OR:function(...e){return!!e.reduce((t,r)=>t||r,!1)},IF:function(e,t=!0,r=!1){return e?t:r},DEFAULT:function(e,t){return ct.Undef(e)?t:e},CASE:function(...e){for(let t=0;t<e.length-1;t+=2)if(e[t])return e[t+1];return null},COLUMN:function(e,t){const r=[];return Array.isArray(e)&&e.forEach(function(o){Array.isArray(o)?r.push(...Ht.COLUMN(o,t)):o&&r.push(o[t])}),r},VALUE:function(e,t,r){const o=(""+t).split(".");let i=e;for(let l=0;l<o.length;l++)if(ai(i,o[l]))i=i[o[l]];else return r;return i},CONCAT:function(...e){return"".concat(...e)},INTERSECTIONSET:function(e,t){const r=[];for(let o=0;o<e.length;o++){const i=e[o];t.indexOf(i)!==-1&&r.indexOf(i)===-1&&r.push(i)}return r},LIST:function(...e){return e},IN:function(e,t){return(e||[]).indexOf(t)>-1},FALSE:function(){return!1},TRUE:function(){return!0},NOT:function(e){return!e},EQ:function(e,t){return e===t},GE:function(e,t){return e>=t},GT:function(e,t){return e>t},LE:function(e,t){return e<=t},LT:function(e,t){return e<t},NE:function(e,t){return e!==t}},gc={ADD:"ADD(1, 2) = 3",SUB:"SUB(10, 1) = 9",MUL:"MUL(2, 2) = 4",DIV:"DIV(10, 2) = 5",SUM:"SUM(1,2,3) = 6, SUM([5, 6, 7]) = 18",MAX:"MAX(1, 5, 10) = 10",MIN:"MIN(1, 5, 10) = 1",ABS:"ABS(-10) = 10, ABS(10) = 10",AVG:"AVG(2, 4, 6, 8) = 5",POWER:"POWER(2, 4) = 16",RAND:"RAND() = 0.75348173001531",PI:"PI() = 3.141592653589793",ROUND:"ROUND(3.149, 2) = 3.15, ROUND(3.149) = 3",SQRT:"SQRT(9) = 3",NOW:'NOW() = "2024-03-15 12:08:31"',TODAY:'TODAY() = "2024-03-15"',YEAR:'YEAR("2024-03-15 12:08:31") = 2024',MONTH:'MONTH("2024-03-15 12:08:31") = 3',DAY:'DAY("2024-03-15 12:08:31") = 15',HOUR:'HOUR("2024-03-15 12:08:31") = 12',MINUTE:'MINUTE("2024-03-15 12:08:31") = 8',SECOND:'SECOND("2024-03-15 12:08:31") = 31',TIMESTAMP:'TIMESTAMP("2024-03-15 12:08:31") = 1710475711000',ADDYEAR:'ADDYEAR("2024-03-15 12:08:31", 2) = 2026-03-15 12:08:31, ADDYEAR("2024-03-15 12:08:31", 3, "YYYY-MM-DD") = 2027-03-15',ADDMONTH:'ADDMONTH("2024-03-15 12:08:31", 2) = 2024-05-15 12:08:31, ADDMONTH("2024-03-15 12:08:31", 10, "YYYY-MM-DD") = 2025-01-15',ADDDAY:'ADDDAY("2024-03-15 12:08:31", 10) = 2024-03-25 12:08:31, ADDDAY("2024-03-15 12:08:31", 20, "YYYY-MM-DD") = 2024-04-04',ADDHOUR:'ADDHOUR("2024-03-15 12:08:31", 10) = 2024-03-15 22:08:31, ADDHOUR("2024-03-15 12:08:31", 20, "HH:mm:ss") = 08:08:31',ADDMINUTE:'ADDMINUTE("2024-03-15 12:08:31", 30) = 2024-03-15 12:38:31, ADDMINUTE("2024-03-15 12:08:31", 55, "HH:mm:ss") = 13:03:31',ADDSECOND:'ADDSECOND("2024-03-15 12:08:31", 20) = 2024-03-15 12:08:51, ADDSECOND("2024-03-15 12:08:31", 40, "HH:mm:ss") = 12:09:11',ADDWEEK:'ADDWEEK("2024-03-15 12:08:31", 2) = 2024-03-29 12:08:31, ADDWEEK("2024-03-15 12:08:31", 4, "YYYY-MM-DD") = 2024-04-12',SUBYEAR:'SUBYEAR("2024-03-15 12:08:31", 2) = 2022-03-15 12:08:31, SUBYEAR("2024-03-15 12:08:31", 3, "YYYY-MM-DD") = 2021-03-15',SUBMONTH:'SUBMONTH("2024-03-15 12:08:31", 2) = 2024-01-15 12:08:31, SUBMONTH("2024-03-15 12:08:31", 10, "YYYY-MM-DD") = 2023-05-15',SUBDAY:'SUBDAY("2024-03-15 12:08:31", 10) = 2024-03-05 12:08:31, SUBDAY("2024-03-15 12:08:31", 20, "YYYY-MM-DD") = 2024-02-24',SUBHOUR:'SUBHOUR("2024-03-15 12:08:31", 10) = 2024-03-15 02:08:31, SUBHOUR("2024-03-15 12:08:31", 20, "HH:mm:ss") = 16:08:31',SUBMINUTE:'SUBMINUTE("2024-03-15 12:08:31", 30) = 2024-03-15 11:38:31, SUBMINUTE("2024-03-15 12:08:31", 55, "HH:mm:ss") = 11:13:31',SUBSECOND:'SUBSECOND("2024-03-15 12:08:31", 20) = 2024-03-15 12:08:11, SUBSECOND("2024-03-15 12:08:31", 40, "HH:mm:ss") = 12:07:51',SUBWEEK:'SUBWEEK("2024-03-15 12:08:31", 2) = 2024-03-01 12:08:31, SUBWEEK("2024-03-15 12:08:31", 4, "YYYY-MM-DD") = 2024-02-16',DIFFDAYS:'DIFFDAYS("2024-01-15","2024-03-15") = 60',DIFFHOURS:'DIFFHOURS("2024-01-15 12:00:00", "2024-01-16 15:00:00") = 27, DIFFHOURS("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 0.5',DIFFMINUTES:'DIFFMINUTES("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 30',STARTSWITH:'STARTSWITH("ABCDEF","ABC") = true, STARTSWITH("ABCDEF","AD") = false',EMPTY:'EMPTY("") = true, EMPTY([]) = true, EMPTY("0") = false',NOTEMPTY:'NOTEMPTY("") = false, NOTEMPTY([]) = false, NOTEMPTY("0") = true',LEN:'LEN(["a", "b", "c"]) = 3',MOD:"MOD(10, 3) = 1",FLOOR:"FLOOR(1.93) = 1",CEIL:"CEIL(1.93) = 2",FIXED:"FIXED(1.93, 1) = 1.9",ISNUMBER:'ISNUMBER("2.34") = true, ISNUMBER("2.4e") = false',TONUMBER:'TONUMBER("1.5") = 1.5, TONUMBER("2.4e") = 2.4, TONUMBER("ABC") = 0',SLICELEFT:'SLICELEFT("ABCDE", 3) = "ABC"',SLICERIGHT:'SLICERIGHT("ABCDE", 3) = "CDE"',TOLOWER:'TOUPPER("ABCD") = "abcd"',TOUPPER:'TOUPPER("abcd") = "ABCD"',INCLUDES:'INCLUDES("ABCD", "BC") = 1, INCLUDES("ABCD", "E") = -1',REPLACE:'REPLACE("AbAc","A","1") = "1bAc"',REPLACEALL:'REPLACEALL("AbAc","A","1") = "1b1c"',TRIM:'TRIM("\\t\\n A BC \\t\\n") = "A BC"',TOCHINSESAMOUNT:'TOCHINSESAMOUNT(32.14) = "\u53C1\u62FE\u8D30\u5143\u58F9\u89D2\u8086\u5206"',UNION:"UNION(1, 3, 5, 1, 4, 3) = [1, 3, 5, 4], UNION([1, 2, 3, 1, 2, 3]) = [1, 2, 3]",INTERSECTIONSET:"INTERSECTIONSET([1, 3, 5], [1, 4, 3]) = [1, 3]",LIST:"LIST([1, 3, 5], [1, 4, 3]) = [[1, 3, 5], [1, 4, 3]]",AND:"AND(true, true) = true, AND(true, false) = false",OR:"OR(false, false) = false, OR(false, true) = true",IF:"IF(false, 1, 0) = 0, IF(true, 1, 0) = 1",IN:"IN([1,2,3,4], 4) = true, IN([1,2,3,4], 5) = false",DEFAULT:'DEFAULT("#FF7271", "#000") = "#FF7271", DEFAULT("", "#000") = "", DEFAULT(null, "#000") = "#000"',CASE:"CASE(IN([1,2,3,4], 5), 1, IN([1,2,3,4], 2), 2) = 2",COLUMN:'COLUMN([{key: 1}, {key: 2}, {key: 3}],"key") = [1, 2, 3], COLUMN([[{key: 1}, {key: 2}], [{key: 3}, {key: 4}]], "key") = [1, 2, 3, 4]',VALUE:'VALUE({key: 1}, "key", 2) = 1, VALUE({key: 1}, "value", 2) = 2, VALUE({list: {key: 1}}, "list.key") = 1',CONCAT:'CONCAT("ABC", "DEF") = "ABCDEF"',FALSE:"FALSE() = false",TRUE:"TRUE() = true",NOT:"NOT(true) = false, NOT(false) = true",EQ:'EQ(100, 100) = true, EQ(100, 90) = false, EQ(100, "100") = false',GE:"GE(100, 90) = true, GE(100, 100) = true, GE(100, 110) = false",GT:"GT(100, 90) = true, GT(100, 100) = false, GT(100, 110) = false",LE:"LE(100, 90) = false, LE(100, 100) = true, LE(100, 110) = true",LT:"LT(100, 90) = false, LT(100, 100) = false, LT(100, 110) = true",NE:'NE(100, 90) = true, NE(100, 100) = false, NE(100, "100") = true'},hh=[{key:"math",children:["TONUMBER","ADD","SUB","MUL","DIV","SUM","MAX","MIN","ABS","AVG","MOD","SQRT","POWER","RAND","PI","ROUND","FLOOR","CEIL","FIXED","TOCHINSESAMOUNT"]},{key:"string",children:["STARTSWITH","SLICELEFT","SLICERIGHT","TOLOWER","TOUPPER","INCLUDES","CONCAT","REPLACE","REPLACEALL","TRIM"]},{key:"date",children:["NOW","TODAY","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND","ADDYEAR","SUBYEAR","ADDMONTH","SUBMONTH","ADDWEEK","SUBWEEK","ADDDAY","SUBDAY","ADDHOUR","SUBHOUR","ADDMINUTE","SUBMINUTE","ADDSECOND","SUBSECOND","DIFFDAYS","DIFFHOURS","DIFFMINUTES","TIMESTAMP"]},{key:"collection",children:["IN","LEN","UNION","COLUMN","VALUE","INTERSECTIONSET","LIST"]},{key:"condition",children:["IF","AND","OR","CASE","NOT","EQ","NE","GE","GT","LE","LT","TRUE","FALSE","DEFAULT","EMPTY","NOTEMPTY","ISNUMBER"]}],LC=(e,t)=>{let r=[e];const o=t.split(".");let i=1;for(;o[i];){let l=[];r.forEach(d=>{Object.values(d.ctxs).forEach(c=>{if(c.rule._fc_id===o[i-1]){const u=d.subForm[c.id];l.push(...Array.isArray(u)?u:[u])}})}),r=l.map(d=>d.rule[0].__fc__.$handle),i++}return[r,o[i-1]]},pl=(e,t,r)=>{const o=e.vm.setupState.top.setupState.fc.$handle;let i=[e.$handle];e.$handle!==o&&i.push(o);let l=t;t.indexOf(".")>-1&&([i,l]=LC(o,t)),i.forEach(d=>{Object.values(d.ctxs).forEach(c=>{c.rule._fc_id===l&&r(c.rule,d.api)})})},vc={openModel(e,t){t.api.open(e.model)},closeModel(e,t){t.api.close(e.model)},hidden(e,t,r){const o=typeof e.id=="string"?[e.id]:e.id||[];let i=!!e.status;e.compute&&(i=!!r.$handle.compute(t.self.__fc__,e.formula)),o.forEach(l=>{pl(r,l,d=>{d.hidden=i})})},disabled(e,t,r){const o=typeof e.id=="string"?[e.id]:e.id||[];let i=!!e.status;e.compute&&(i=!!r.$handle.compute(t.self.__fc__,e.formula)),o.forEach(l=>{pl(r,l,d=>{d.props||(d.props={}),d.props.disabled=i})})},resetFields(e,t){t.api.top.resetFields()},clearFields(e,t){t.api.top.coverValue({})},validate(e,t){return t.api.top.validate()},validateFields(e,t,r){const o=typeof e.id=="string"?[e.id]:e.id||[],i=[];return o.forEach(l=>{pl(r,l,(d,c)=>{d.field&&i.push(c.validateField(d.field))})}),i.length?Promise.all(i):void 0},submit(e,t){return t.api.top.submit()},setValue(e,t,r){(e.formData||[]).forEach(o=>{let i=o.value;o.compute&&(i=r.$handle.compute(t.self.__fc__,o.formula)),pl(r,o.id,l=>{l.value=i})})},fetch(e,t){const{append:r,response:o,fetch:i}=e;return r&&(i.data={...t.api.formData(),...i.data||{}}),new Promise((l,d)=>{t.api.fetch(e.fetch).then(c=>{o&&t.api.setData(o,c),l(c)}).catch(c=>{d(c)})})},copy(e,t,r){let o=e.content||"";e.compute&&(o=r.$handle.compute(t.self.__fc__,e.formula)),si(o)},callback(e,t){return e.callback&&e.callback(t)},message(e){oi.ElMessage(e||{})}},mh=[{key:"model",children:["openModel","closeModel","message"]},{key:"form",children:["hidden","disabled","resetFields","clearFields","setValue","validate","validateFields","submit"]},{key:"other",children:["fetch","copy","callback"]}],gh={openModel(e){return[{type:"select",field:"model",$required:!0,options:e.pageData.filter(t=>!t.default).map(t=>{const r=t.main._menu;return{label:Br(t.main,t.config.labelField,"")||e.t("com."+r.name+".name")||r.label,value:t.main.name}})}]},message(e){return[{type:"radio",field:"type",value:"info",props:{type:"button"},options:it(e.t,["info","warning","success","error"].map(t=>({label:t,value:t})))},{type:"input",$required:!0,field:"message"},{type:"inputNumber",field:"duration",props:{precision:0,controlsPosition:"right"}},{type:"switch",field:"showClose"}]},hidden(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.show"),value:!1},{label:t("props.hide"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{btn:t("behavior.props.setFormula"),title:t("behavior.props.setFormula"),name:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]},disabled(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},validateFields(){return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}}]},setValue(e){const t=e.t;return[{type:"group",field:"formData",props:{expand:1,rule:[{type:"RuleSelect",field:"id",title:t("behavior.props.id"),$required:!0,props:{onlyField:!0}},{type:"radio",field:"compute",value:!1,title:t("behavior.props.compute"),options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"ValueInput",field:"value",title:t("props.value"),$required:!0}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",title:t("behavior.props.formula"),$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]}}]},fetch(){return[{type:"FetchConfig",field:"fetch",$required:!0},{type:"switch",field:"append",value:!1},{type:"input",field:"response",value:"res_"+We()}]},copy(e){const t=e.t;return[{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"input",field:"content",$required:!0,props:{type:"textarea"},options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},callback(e){return[{type:"FnInput",field:"callback",$required:!0,props:{name:"callback",args:[nn(e.t)]}}]}};function jC(e,t){return e.reduce((r,o)=>r.then(()=>o(t)),Promise.resolve())}const zC=function(e){return{name:"behavior",load(t,r){const o=t.getValue(),i={},l={};o&&Object.keys(o).forEach(d=>{if(Array.isArray(o[d])){const c=[];if(o[d].forEach(u=>{const{method:m,config:h,expression:y,stopPropagation:C,ignoreError:S}=u;c.push(w=>new Promise(E=>{if(y&&e.$handle.compute(r.__fc__,y)===!1){E();return}const _=(...b)=>{(!C||e.$handle.compute(r.__fc__,C)!==!0)&&E(...b)};let g;try{g=vc[m](h||{},w,e)}catch(b){console.error(b),S!==!1&&_();return}g&&g.then?g.then(_).catch(()=>{S!==!1&&_()}):_(g)}))}),c.length){const u=e.$handle.inject(r,function(m){jC(c,m)},r.inject||e.$handle.options.injectEvent);d.indexOf("hook_")>-1?l[d.replace("hook_","")]=u:i[d]=u}}}),t.getProp().on=i,t.getProp().hook=l}}},hl={name:"easySlots",load(e){const t=e.getValue(),r={};t&&Object.keys(t).forEach(o=>{r[o]=t[o].type==="icon"?{type:"i",class:"fc-icon iconfont "+t[o].value}:{type:"div",children:[""+(t[o].value||"")]}}),e.getProp().renderSlots=r}};hl.watch=hl.load;const UC=Object.assign||function(e){for(let t,r=1;r<arguments.length;r++)for(let o in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,o)&&Tr(e,o,t[o]);return e};function ml(){return UC.apply(this,arguments)}function HC(e){return typeof e!="object"||e===null?e:e instanceof Array?[...e]:{...e}}function vh(e){e.__proto__.setBehavior=t=>{ml(vc,t)},e.extendApi(t=>({open(r,...o){(t.el(r)||t.top.el(r)).open(...o)},close(r){r?(t.el(r)||t.top.el(r)).close():(t.top.bus.$emit("fc.closeDialog"),t!==t.top&&t.bus.$emit("fc.closeDialog"))}}))}function yh(e){e.extendApi(t=>({message(r){return oi.ElMessage(r||{})}}))}Pa.default.parser().preview=z0,Object.keys(Ht).forEach(e=>{Pa.default.setFormula(e,Ht[e])});const hn=Pa.default,je=Pa.default.factory();vh(hn),yh(hn),vh(je),yh(je),hn.register("behavior",zC),hn.register("easySlots",hl),je.register("easySlots",hl);let bh=null,gl=n.ref(null);function vl(...e){return bh(...e)}const wh=e=>{gl.value=e||op;const t=td(gl);return bh=t.t,t};wh();const b4="",w4="";var yc={exports:{}},Ch;function zr(){return Ch||(Ch=1,function(e,t){(function(r,o){e.exports=o()})(mc,function(){var r=navigator.userAgent,o=navigator.platform,i=/gecko\/\d/i.test(r),l=/MSIE \d/.test(r),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),c=/Edge\/(\d+)/.exec(r),u=l||d||c,m=u&&(l?document.documentMode||6:+(c||d)[1]),h=!c&&/WebKit\//.test(r),y=h&&/Qt\/\d+\.\d+/.test(r),C=!c&&/Chrome\/(\d+)/.exec(r),S=C&&+C[1],w=/Opera\//.test(r),E=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),g=/PhantomJS/.test(r),b=E&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),x=/Android/.test(r),k=b||x||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),N=b||/Mac/.test(o),V=/\bCrOS\b/.test(r),F=/win/i.test(o),I=w&&r.match(/Version\/(\d*\.\d*)/);I&&(I=Number(I[1])),I&&I>=15&&(w=!1,h=!0);var P=N&&(y||w&&(I==null||I<12.11)),T=i||u&&m>=9;function B(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var L=function(a,s){var p=a.className,f=B(s).exec(p);if(f){var v=p.slice(f.index+f[0].length);a.className=p.slice(0,f.index)+(v?f[1]+v:"")}};function U(a){for(var s=a.childNodes.length;s>0;--s)a.removeChild(a.firstChild);return a}function H(a,s){return U(a).appendChild(s)}function R(a,s,p,f){var v=document.createElement(a);if(p&&(v.className=p),f&&(v.style.cssText=f),typeof s=="string")v.appendChild(document.createTextNode(s));else if(s)for(var O=0;O<s.length;++O)v.appendChild(s[O]);return v}function z(a,s,p,f){var v=R(a,s,p,f);return v.setAttribute("role","presentation"),v}var $;document.createRange?$=function(a,s,p,f){var v=document.createRange();return v.setEnd(f||a,p),v.setStart(a,s),v}:$=function(a,s,p){var f=document.body.createTextRange();try{f.moveToElementText(a.parentNode)}catch{return f}return f.collapse(!0),f.moveEnd("character",p),f.moveStart("character",s),f};function A(a,s){if(s.nodeType==3&&(s=s.parentNode),a.contains)return a.contains(s);do if(s.nodeType==11&&(s=s.host),s==a)return!0;while(s=s.parentNode)}function J(a){var s;try{s=a.activeElement}catch{s=a.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Q(a,s){var p=a.className;B(s).test(p)||(a.className+=(p?" ":"")+s)}function G(a,s){for(var p=a.split(" "),f=0;f<p.length;f++)p[f]&&!B(p[f]).test(s)&&(s+=" "+p[f]);return s}var ie=function(a){a.select()};b?ie=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:u&&(ie=function(a){try{a.select()}catch{}});function X(a){return a.display.wrapper.ownerDocument}function le(a){return X(a).defaultView}function be(a){var s=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,s)}}function ce(a,s,p){s||(s={});for(var f in a)a.hasOwnProperty(f)&&(p!==!1||!s.hasOwnProperty(f))&&(s[f]=a[f]);return s}function de(a,s,p,f,v){s==null&&(s=a.search(/[^\s\u00a0]/),s==-1&&(s=a.length));for(var O=f||0,M=v||0;;){var j=a.indexOf(" ",O);if(j<0||j>=s)return M+(s-O);M+=j-O,M+=p-M%p,O=j+1}}var pe=function(){this.id=null,this.f=null,this.time=0,this.handler=be(this.onTimeout,this)};pe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},pe.prototype.set=function(a,s){this.f=s;var p=+new Date+a;(!this.id||p<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=p)};function se(a,s){for(var p=0;p<a.length;++p)if(a[p]==s)return p;return-1}var ge=50,ye={toString:function(){return"CodeMirror.Pass"}},D={scroll:!1},W={origin:"*mouse"},Y={origin:"+move"};function q(a,s,p){for(var f=0,v=0;;){var O=a.indexOf(" ",f);O==-1&&(O=a.length);var M=O-f;if(O==a.length||v+M>=s)return f+Math.min(M,s-v);if(v+=O-f,v+=p-v%p,f=O+1,v>=s)return f}}var ee=[""];function oe(a){for(;ee.length<=a;)ee.push(he(ee)+" ");return ee[a]}function he(a){return a[a.length-1]}function Se(a,s){for(var p=[],f=0;f<a.length;f++)p[f]=s(a[f],f);return p}function Pe(a,s,p){for(var f=0,v=p(s);f<a.length&&p(a[f])<=v;)f++;a.splice(f,0,s)}function Le(){}function fe(a,s){var p;return Object.create?p=Object.create(a):(Le.prototype=a,p=new Le),s&&ce(s,p),p}var ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function we(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ke.test(a))}function He(a,s){return s?s.source.indexOf("\\w")>-1&&we(a)?!0:s.test(a):we(a)}function et(a){for(var s in a)if(a.hasOwnProperty(s)&&a[s])return!1;return!0}var _e=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ve(a){return a.charCodeAt(0)>=768&&_e.test(a)}function Ke(a,s,p){for(;(p<0?s>0:s<a.length)&&Ve(a.charAt(s));)s+=p;return s}function Re(a,s,p){for(var f=s>p?-1:1;;){if(s==p)return s;var v=(s+p)/2,O=f<0?Math.ceil(v):Math.floor(v);if(O==s)return a(O)?s:p;a(O)?p=O:s=O+f}}function mt(a,s,p,f){if(!a)return f(s,p,"ltr",0);for(var v=!1,O=0;O<a.length;++O){var M=a[O];(M.from<p&&M.to>s||s==p&&M.to==s)&&(f(Math.max(M.from,s),Math.min(M.to,p),M.level==1?"rtl":"ltr",O),v=!0)}v||f(s,p,"ltr")}var Ze=null;function Ne(a,s,p){var f;Ze=null;for(var v=0;v<a.length;++v){var O=a[v];if(O.from<s&&O.to>s)return v;O.to==s&&(O.from!=O.to&&p=="before"?f=v:Ze=v),O.from==s&&(O.from!=O.to&&p!="before"?f=v:Ze=v)}return f!=null?f:Ze}var Me=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function p(Z){return Z<=247?a.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?s.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var f=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,O=/[LRr]/,M=/[Lb1n]/,j=/[1n]/;function K(Z,ne,re){this.level=Z,this.from=ne,this.to=re}return function(Z,ne){var re=ne=="ltr"?"L":"R";if(Z.length==0||ne=="ltr"&&!f.test(Z))return!1;for(var ve=Z.length,me=[],Ae=0;Ae<ve;++Ae)me.push(p(Z.charCodeAt(Ae)));for(var Te=0,Oe=re;Te<ve;++Te){var Ie=me[Te];Ie=="m"?me[Te]=Oe:Oe=Ie}for(var Ue=0,Fe=re;Ue<ve;++Ue){var Ge=me[Ue];Ge=="1"&&Fe=="r"?me[Ue]="n":O.test(Ge)&&(Fe=Ge,Ge=="r"&&(me[Ue]="R"))}for(var nt=1,qe=me[0];nt<ve-1;++nt){var pt=me[nt];pt=="+"&&qe=="1"&&me[nt+1]=="1"?me[nt]="1":pt==","&&qe==me[nt+1]&&(qe=="1"||qe=="n")&&(me[nt]=qe),qe=pt}for(var kt=0;kt<ve;++kt){var qt=me[kt];if(qt==",")me[kt]="N";else if(qt=="%"){var Rt=void 0;for(Rt=kt+1;Rt<ve&&me[Rt]=="%";++Rt);for(var Dn=kt&&me[kt-1]=="!"||Rt<ve&&me[Rt]=="1"?"1":"N",wn=kt;wn<Rt;++wn)me[wn]=Dn;kt=Rt-1}}for(var jt=0,Cn=re;jt<ve;++jt){var tn=me[jt];Cn=="L"&&tn=="1"?me[jt]="L":O.test(tn)&&(Cn=tn)}for(var Kt=0;Kt<ve;++Kt)if(v.test(me[Kt])){var zt=void 0;for(zt=Kt+1;zt<ve&&v.test(me[zt]);++zt);for(var Ft=(Kt?me[Kt-1]:re)=="L",_n=(zt<ve?me[zt]:re)=="L",ko=Ft==_n?Ft?"L":"R":re,rr=Kt;rr<zt;++rr)me[rr]=ko;Kt=zt-1}for(var ln=[],Ci,en=0;en<ve;)if(M.test(me[en])){var tp=en;for(++en;en<ve&&M.test(me[en]);++en);ln.push(new K(0,tp,en))}else{var Ii=en,xr=ln.length,kr=ne=="rtl"?1:0;for(++en;en<ve&&me[en]!="L";++en);for(var fn=Ii;fn<en;)if(j.test(me[fn])){Ii<fn&&(ln.splice(xr,0,new K(1,Ii,fn)),xr+=kr);var To=fn;for(++fn;fn<en&&j.test(me[fn]);++fn);ln.splice(xr,0,new K(2,To,fn)),xr+=kr,Ii=fn}else++fn;Ii<en&&ln.splice(xr,0,new K(1,Ii,en))}return ne=="ltr"&&(ln[0].level==1&&(Ci=Z.match(/^\s+/))&&(ln[0].from=Ci[0].length,ln.unshift(new K(0,0,Ci[0].length))),he(ln).level==1&&(Ci=Z.match(/\s+$/))&&(he(ln).to-=Ci[0].length,ln.push(new K(0,ve-Ci[0].length,ve)))),ne=="rtl"?ln.reverse():ln}}();function tt(a,s){var p=a.order;return p==null&&(p=a.order=Me(a.text,s)),p}var $e=[],Ce=function(a,s,p){if(a.addEventListener)a.addEventListener(s,p,!1);else if(a.attachEvent)a.attachEvent("on"+s,p);else{var f=a._handlers||(a._handlers={});f[s]=(f[s]||$e).concat(p)}};function Xe(a,s){return a._handlers&&a._handlers[s]||$e}function Ye(a,s,p){if(a.removeEventListener)a.removeEventListener(s,p,!1);else if(a.detachEvent)a.detachEvent("on"+s,p);else{var f=a._handlers,v=f&&f[s];if(v){var O=se(v,p);O>-1&&(f[s]=v.slice(0,O).concat(v.slice(O+1)))}}}function Qe(a,s){var p=Xe(a,s);if(!!p.length)for(var f=Array.prototype.slice.call(arguments,2),v=0;v<p.length;++v)p[v].apply(null,f)}function dt(a,s,p){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),Qe(a,p||s.type,a,s),Wi(s)||s.codemirrorIgnore}function gn(a){var s=a._handlers&&a._handlers.cursorActivity;if(!!s)for(var p=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),f=0;f<s.length;++f)se(p,s[f])==-1&&p.push(s[f])}function Bt(a,s){return Xe(a,s).length>0}function Tt(a){a.prototype.on=function(s,p){Ce(this,s,p)},a.prototype.off=function(s,p){Ye(this,s,p)}}function yt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Wn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Wi(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function qn(a){yt(a),Wn(a)}function vn(a){return a.target||a.srcElement}function da(a){var s=a.which;return s==null&&(a.button&1?s=1:a.button&2?s=3:a.button&4&&(s=2)),N&&a.ctrlKey&&s==1&&(s=3),s}var df=function(){if(u&&m<9)return!1;var a=R("div");return"draggable"in a||"dragDrop"in a}(),Gn;function cf(a){if(Gn==null){var s=R("span","\u200B");H(a,R("span",[s,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Gn=s.offsetWidth<=1&&s.offsetHeight>2&&!(u&&m<8))}var p=Gn?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return p.setAttribute("cm-text",""),p}var ao;function ms(a){if(ao!=null)return ao;var s=H(a,document.createTextNode("A\u062EA")),p=$(s,0,1).getBoundingClientRect(),f=$(s,1,2).getBoundingClientRect();return U(a),!p||p.left==p.right?!1:ao=f.right-p.right<3}var ca=`
|
||
|
||
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.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Je(a,s){if(s-=a.first,s<0||s>=a.size)throw new Error("There is no line "+(s+a.first)+" in the document.");for(var p=a;!p.lines;)for(var f=0;;++f){var v=p.children[f],O=v.chunkSize();if(s<O){p=v;break}s-=O}return p.lines[s]}function Di(a,s,p){var f=[],v=s.line;return a.iter(s.line,p.line+1,function(O){var M=O.text;v==p.line&&(M=M.slice(0,p.ch)),v==s.line&&(M=M.slice(s.ch)),f.push(M),++v}),f}function so(a,s,p){var f=[];return a.iter(s,p,function(v){f.push(v.text)}),f}function Kn(a,s){var p=s-a.height;if(p)for(var f=a;f;f=f.parent)f.height+=p}function bt(a){if(a.parent==null)return null;for(var s=a.parent,p=se(s.lines,a),f=s.parent;f;s=f,f=f.parent)for(var v=0;f.children[v]!=s;++v)p+=f.children[v].chunkSize();return p+s.first}function vi(a,s){var p=a.first;e:do{for(var f=0;f<a.children.length;++f){var v=a.children[f],O=v.height;if(s<O){a=v;continue e}s-=O,p+=v.chunkSize()}return p}while(!a.lines);for(var M=0;M<a.lines.length;++M){var j=a.lines[M],K=j.height;if(s<K)break;s-=K}return p+M}function te(a,s){return s>=a.first&&s<a.first+a.size}function ae(a,s){return String(a.lineNumberFormatter(s+a.firstLineNumber))}function ue(a,s,p){if(p===void 0&&(p=null),!(this instanceof ue))return new ue(a,s,p);this.line=a,this.ch=s,this.sticky=p}function Ee(a,s){return a.line-s.line||a.ch-s.ch}function rt(a,s){return a.sticky==s.sticky&&Ee(a,s)==0}function ht(a){return ue(a.line,a.ch)}function vt(a,s){return Ee(a,s)<0?s:a}function Gt(a,s){return Ee(a,s)<0?a:s}function Fn(a,s){return Math.max(a.first,Math.min(s,a.first+a.size-1))}function ot(a,s){if(s.line<a.first)return ue(a.first,0);var p=a.first+a.size-1;return s.line>p?ue(p,Je(a,p).text.length):vL(s,Je(a,s.line).text.length)}function vL(a,s){var p=a.ch;return p==null||p>s?ue(a.line,s):p<0?ue(a.line,0):a}function Pv(a,s){for(var p=[],f=0;f<s.length;f++)p[f]=ot(a,s[f]);return p}var bs=function(a,s){this.state=a,this.lookAhead=s},yi=function(a,s,p,f){this.state=s,this.doc=a,this.line=p,this.maxLookAhead=f||0,this.baseTokens=null,this.baseTokenPos=1};yi.prototype.lookAhead=function(a){var s=this.doc.getLine(this.line+a);return s!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),s},yi.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},yi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yi.fromSaved=function(a,s,p){return s instanceof bs?new yi(a,Ni(a.mode,s.state),p,s.lookAhead):new yi(a,Ni(a.mode,s),p)},yi.prototype.save=function(a){var s=a!==!1?Ni(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bs(s,this.maxLookAhead):s};function Lv(a,s,p,f){var v=[a.state.modeGen],O={};Gv(a,s.text,a.doc.mode,p,function(Z,ne){return v.push(Z,ne)},O,f);for(var M=p.state,j=function(Z){p.baseTokens=v;var ne=a.state.overlays[Z],re=1,ve=0;p.state=!0,Gv(a,s.text,ne.mode,p,function(me,Ae){for(var Te=re;ve<me;){var Oe=v[re];Oe>me&&v.splice(re,1,me,v[re+1],Oe),re+=2,ve=Math.min(me,Oe)}if(!!Ae)if(ne.opaque)v.splice(Te,re-Te,me,"overlay "+Ae),re=Te+2;else for(;Te<re;Te+=2){var Ie=v[Te+1];v[Te+1]=(Ie?Ie+" ":"")+"overlay "+Ae}},O),p.state=M,p.baseTokens=null,p.baseTokenPos=1},K=0;K<a.state.overlays.length;++K)j(K);return{styles:v,classes:O.bgClass||O.textClass?O:null}}function jv(a,s,p){if(!s.styles||s.styles[0]!=a.state.modeGen){var f=fa(a,bt(s)),v=s.text.length>a.options.maxHighlightLength&&Ni(a.doc.mode,f.state),O=Lv(a,s,f);v&&(f.state=v),s.stateAfter=f.save(!v),s.styles=O.styles,O.classes?s.styleClasses=O.classes:s.styleClasses&&(s.styleClasses=null),p===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return s.styles}function fa(a,s,p){var f=a.doc,v=a.display;if(!f.mode.startState)return new yi(f,!0,s);var O=yL(a,s,p),M=O>f.first&&Je(f,O-1).stateAfter,j=M?yi.fromSaved(f,M,O):new yi(f,ua(f.mode),O);return f.iter(O,s,function(K){uf(a,K.text,j);var Z=j.line;K.stateAfter=Z==s-1||Z%5==0||Z>=v.viewFrom&&Z<v.viewTo?j.save():null,j.nextLine()}),p&&(f.modeFrontier=j.line),j}function uf(a,s,p,f){var v=a.doc.mode,O=new It(s,a.options.tabSize,p);for(O.start=O.pos=f||0,s==""&&zv(v,p.state);!O.eol();)ff(v,O,p.state),O.start=O.pos}function zv(a,s){if(a.blankLine)return a.blankLine(s);if(!!a.innerMode){var p=Qi(a,s);if(p.mode.blankLine)return p.mode.blankLine(p.state)}}function ff(a,s,p,f){for(var v=0;v<10;v++){f&&(f[0]=Qi(a,p).mode);var O=a.token(s,p);if(s.pos>s.start)return O}throw new Error("Mode "+a.name+" failed to advance stream.")}var Uv=function(a,s,p){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=s||null,this.state=p};function Hv(a,s,p,f){var v=a.doc,O=v.mode,M;s=ot(v,s);var j=Je(v,s.line),K=fa(a,s.line,p),Z=new It(j.text,a.options.tabSize,K),ne;for(f&&(ne=[]);(f||Z.pos<s.ch)&&!Z.eol();)Z.start=Z.pos,M=ff(O,Z,K.state),f&&ne.push(new Uv(Z,M,Ni(v.mode,K.state)));return f?ne:new Uv(Z,M,K.state)}function Wv(a,s){if(a)for(;;){var p=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!p)break;a=a.slice(0,p.index)+a.slice(p.index+p[0].length);var f=p[1]?"bgClass":"textClass";s[f]==null?s[f]=p[2]:new RegExp("(?:^|\\s)"+p[2]+"(?:$|\\s)").test(s[f])||(s[f]+=" "+p[2])}return a}function Gv(a,s,p,f,v,O,M){var j=p.flattenSpans;j==null&&(j=a.options.flattenSpans);var K=0,Z=null,ne=new It(s,a.options.tabSize,f),re,ve=a.options.addModeClass&&[null];for(s==""&&Wv(zv(p,f.state),O);!ne.eol();){if(ne.pos>a.options.maxHighlightLength?(j=!1,M&&uf(a,s,f,ne.pos),ne.pos=s.length,re=null):re=Wv(ff(p,ne,f.state,ve),O),ve){var me=ve[0].name;me&&(re="m-"+(re?me+" "+re:me))}if(!j||Z!=re){for(;K<ne.start;)K=Math.min(ne.start,K+5e3),v(K,Z);Z=re}ne.start=ne.pos}for(;K<ne.pos;){var Ae=Math.min(ne.pos,K+5e3);v(Ae,Z),K=Ae}}function yL(a,s,p){for(var f,v,O=a.doc,M=p?-1:s-(a.doc.mode.innerMode?1e3:100),j=s;j>M;--j){if(j<=O.first)return O.first;var K=Je(O,j-1),Z=K.stateAfter;if(Z&&(!p||j+(Z instanceof bs?Z.lookAhead:0)<=O.modeFrontier))return j;var ne=de(K.text,null,a.options.tabSize);(v==null||f>ne)&&(v=j-1,f=ne)}return v}function bL(a,s){if(a.modeFrontier=Math.min(a.modeFrontier,s),!(a.highlightFrontier<s-10)){for(var p=a.first,f=s-1;f>p;f--){var v=Je(a,f).stateAfter;if(v&&(!(v instanceof bs)||f+v.lookAhead<s)){p=f+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,p)}}var Kv=!1,Oi=!1;function wL(){Kv=!0}function CL(){Oi=!0}function ws(a,s,p){this.marker=a,this.from=s,this.to=p}function pa(a,s){if(a)for(var p=0;p<a.length;++p){var f=a[p];if(f.marker==s)return f}}function _L(a,s){for(var p,f=0;f<a.length;++f)a[f]!=s&&(p||(p=[])).push(a[f]);return p}function EL(a,s,p){var f=p&&window.WeakSet&&(p.markedSpans||(p.markedSpans=new WeakSet));f&&a.markedSpans&&f.has(a.markedSpans)?a.markedSpans.push(s):(a.markedSpans=a.markedSpans?a.markedSpans.concat([s]):[s],f&&f.add(a.markedSpans)),s.marker.attachLine(a)}function AL(a,s,p){var f;if(a)for(var v=0;v<a.length;++v){var O=a[v],M=O.marker,j=O.from==null||(M.inclusiveLeft?O.from<=s:O.from<s);if(j||O.from==s&&M.type=="bookmark"&&(!p||!O.marker.insertLeft)){var K=O.to==null||(M.inclusiveRight?O.to>=s:O.to>s);(f||(f=[])).push(new ws(M,O.from,K?null:O.to))}}return f}function SL(a,s,p){var f;if(a)for(var v=0;v<a.length;++v){var O=a[v],M=O.marker,j=O.to==null||(M.inclusiveRight?O.to>=s:O.to>s);if(j||O.from==s&&M.type=="bookmark"&&(!p||O.marker.insertLeft)){var K=O.from==null||(M.inclusiveLeft?O.from<=s:O.from<s);(f||(f=[])).push(new ws(M,K?null:O.from-s,O.to==null?null:O.to-s))}}return f}function pf(a,s){if(s.full)return null;var p=te(a,s.from.line)&&Je(a,s.from.line).markedSpans,f=te(a,s.to.line)&&Je(a,s.to.line).markedSpans;if(!p&&!f)return null;var v=s.from.ch,O=s.to.ch,M=Ee(s.from,s.to)==0,j=AL(p,v,M),K=SL(f,O,M),Z=s.text.length==1,ne=he(s.text).length+(Z?v:0);if(j)for(var re=0;re<j.length;++re){var ve=j[re];if(ve.to==null){var me=pa(K,ve.marker);me?Z&&(ve.to=me.to==null?null:me.to+ne):ve.to=v}}if(K)for(var Ae=0;Ae<K.length;++Ae){var Te=K[Ae];if(Te.to!=null&&(Te.to+=ne),Te.from==null){var Oe=pa(j,Te.marker);Oe||(Te.from=ne,Z&&(j||(j=[])).push(Te))}else Te.from+=ne,Z&&(j||(j=[])).push(Te)}j&&(j=Yv(j)),K&&K!=j&&(K=Yv(K));var Ie=[j];if(!Z){var Ue=s.text.length-2,Fe;if(Ue>0&&j)for(var Ge=0;Ge<j.length;++Ge)j[Ge].to==null&&(Fe||(Fe=[])).push(new ws(j[Ge].marker,null,null));for(var nt=0;nt<Ue;++nt)Ie.push(Fe);Ie.push(K)}return Ie}function Yv(a){for(var s=0;s<a.length;++s){var p=a[s];p.from!=null&&p.from==p.to&&p.marker.clearWhenEmpty!==!1&&a.splice(s--,1)}return a.length?a:null}function xL(a,s,p){var f=null;if(a.iter(s.line,p.line+1,function(me){if(me.markedSpans)for(var Ae=0;Ae<me.markedSpans.length;++Ae){var Te=me.markedSpans[Ae].marker;Te.readOnly&&(!f||se(f,Te)==-1)&&(f||(f=[])).push(Te)}}),!f)return null;for(var v=[{from:s,to:p}],O=0;O<f.length;++O)for(var M=f[O],j=M.find(0),K=0;K<v.length;++K){var Z=v[K];if(!(Ee(Z.to,j.from)<0||Ee(Z.from,j.to)>0)){var ne=[K,1],re=Ee(Z.from,j.from),ve=Ee(Z.to,j.to);(re<0||!M.inclusiveLeft&&!re)&&ne.push({from:Z.from,to:j.from}),(ve>0||!M.inclusiveRight&&!ve)&&ne.push({from:j.to,to:Z.to}),v.splice.apply(v,ne),K+=ne.length-3}}return v}function Qv(a){var s=a.markedSpans;if(!!s){for(var p=0;p<s.length;++p)s[p].marker.detachLine(a);a.markedSpans=null}}function Jv(a,s){if(!!s){for(var p=0;p<s.length;++p)s[p].marker.attachLine(a);a.markedSpans=s}}function Cs(a){return a.inclusiveLeft?-1:0}function _s(a){return a.inclusiveRight?1:0}function hf(a,s){var p=a.lines.length-s.lines.length;if(p!=0)return p;var f=a.find(),v=s.find(),O=Ee(f.from,v.from)||Cs(a)-Cs(s);if(O)return-O;var M=Ee(f.to,v.to)||_s(a)-_s(s);return M||s.id-a.id}function Xv(a,s){var p=Oi&&a.markedSpans,f;if(p)for(var v=void 0,O=0;O<p.length;++O)v=p[O],v.marker.collapsed&&(s?v.from:v.to)==null&&(!f||hf(f,v.marker)<0)&&(f=v.marker);return f}function Zv(a){return Xv(a,!0)}function Es(a){return Xv(a,!1)}function kL(a,s){var p=Oi&&a.markedSpans,f;if(p)for(var v=0;v<p.length;++v){var O=p[v];O.marker.collapsed&&(O.from==null||O.from<s)&&(O.to==null||O.to>s)&&(!f||hf(f,O.marker)<0)&&(f=O.marker)}return f}function qv(a,s,p,f,v){var O=Je(a,s),M=Oi&&O.markedSpans;if(M)for(var j=0;j<M.length;++j){var K=M[j];if(!!K.marker.collapsed){var Z=K.marker.find(0),ne=Ee(Z.from,p)||Cs(K.marker)-Cs(v),re=Ee(Z.to,f)||_s(K.marker)-_s(v);if(!(ne>=0&&re<=0||ne<=0&&re>=0)&&(ne<=0&&(K.marker.inclusiveRight&&v.inclusiveLeft?Ee(Z.to,p)>=0:Ee(Z.to,p)>0)||ne>=0&&(K.marker.inclusiveRight&&v.inclusiveLeft?Ee(Z.from,f)<=0:Ee(Z.from,f)<0)))return!0}}}function ti(a){for(var s;s=Zv(a);)a=s.find(-1,!0).line;return a}function TL(a){for(var s;s=Es(a);)a=s.find(1,!0).line;return a}function NL(a){for(var s,p;s=Es(a);)a=s.find(1,!0).line,(p||(p=[])).push(a);return p}function mf(a,s){var p=Je(a,s),f=ti(p);return p==f?s:bt(f)}function ey(a,s){if(s>a.lastLine())return s;var p=Je(a,s),f;if(!Ji(a,p))return s;for(;f=Es(p);)p=f.find(1,!0).line;return bt(p)+1}function Ji(a,s){var p=Oi&&s.markedSpans;if(p){for(var f=void 0,v=0;v<p.length;++v)if(f=p[v],!!f.marker.collapsed){if(f.from==null)return!0;if(!f.marker.widgetNode&&f.from==0&&f.marker.inclusiveLeft&&gf(a,s,f))return!0}}}function gf(a,s,p){if(p.to==null){var f=p.marker.find(1,!0);return gf(a,f.line,pa(f.line.markedSpans,p.marker))}if(p.marker.inclusiveRight&&p.to==s.text.length)return!0;for(var v=void 0,O=0;O<s.markedSpans.length;++O)if(v=s.markedSpans[O],v.marker.collapsed&&!v.marker.widgetNode&&v.from==p.to&&(v.to==null||v.to!=p.from)&&(v.marker.inclusiveLeft||p.marker.inclusiveRight)&&gf(a,s,v))return!0}function Vi(a){a=ti(a);for(var s=0,p=a.parent,f=0;f<p.lines.length;++f){var v=p.lines[f];if(v==a)break;s+=v.height}for(var O=p.parent;O;p=O,O=p.parent)for(var M=0;M<O.children.length;++M){var j=O.children[M];if(j==p)break;s+=j.height}return s}function As(a){if(a.height==0)return 0;for(var s=a.text.length,p,f=a;p=Zv(f);){var v=p.find(0,!0);f=v.from.line,s+=v.from.ch-v.to.ch}for(f=a;p=Es(f);){var O=p.find(0,!0);s-=f.text.length-O.from.ch,f=O.to.line,s+=f.text.length-O.to.ch}return s}function vf(a){var s=a.display,p=a.doc;s.maxLine=Je(p,p.first),s.maxLineLength=As(s.maxLine),s.maxLineChanged=!0,p.iter(function(f){var v=As(f);v>s.maxLineLength&&(s.maxLineLength=v,s.maxLine=f)})}var co=function(a,s,p){this.text=a,Jv(this,s),this.height=p?p(this):1};co.prototype.lineNo=function(){return bt(this)},Tt(co);function DL(a,s,p,f){a.text=s,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Qv(a),Jv(a,p);var v=f?f(a):1;v!=a.height&&Kn(a,v)}function OL(a){a.parent=null,Qv(a)}var VL={},BL={};function ty(a,s){if(!a||/^\s*$/.test(a))return null;var p=s.addModeClass?BL:VL;return p[a]||(p[a]=a.replace(/\S+/g,"cm-$&"))}function ny(a,s){var p=z("span",null,null,h?"padding-right: .1px":null),f={pre:z("pre",[p],"CodeMirror-line"),content:p,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};s.measure={};for(var v=0;v<=(s.rest?s.rest.length:0);v++){var O=v?s.rest[v-1]:s.line,M=void 0;f.pos=0,f.addToken=$L,ms(a.display.measure)&&(M=tt(O,a.doc.direction))&&(f.addToken=FL(f.addToken,M)),f.map=[];var j=s!=a.display.externalMeasured&&bt(O);ML(O,f,jv(a,O,j)),O.styleClasses&&(O.styleClasses.bgClass&&(f.bgClass=G(O.styleClasses.bgClass,f.bgClass||"")),O.styleClasses.textClass&&(f.textClass=G(O.styleClasses.textClass,f.textClass||""))),f.map.length==0&&f.map.push(0,0,f.content.appendChild(cf(a.display.measure))),v==0?(s.measure.map=f.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(f.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(h){var K=f.content.lastChild;(/\bcm-tab\b/.test(K.className)||K.querySelector&&K.querySelector(".cm-tab"))&&(f.content.className="cm-tab-wrap-hack")}return Qe(a,"renderLine",a,s.line,f.pre),f.pre.className&&(f.textClass=G(f.pre.className,f.textClass||"")),f}function RL(a){var s=R("span","\u2022","cm-invalidchar");return s.title="\\u"+a.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function $L(a,s,p,f,v,O,M){if(!!s){var j=a.splitSpaces?IL(s,a.trailingSpace):s,K=a.cm.state.specialChars,Z=!1,ne;if(!K.test(s))a.col+=s.length,ne=document.createTextNode(j),a.map.push(a.pos,a.pos+s.length,ne),u&&m<9&&(Z=!0),a.pos+=s.length;else{ne=document.createDocumentFragment();for(var re=0;;){K.lastIndex=re;var ve=K.exec(s),me=ve?ve.index-re:s.length-re;if(me){var Ae=document.createTextNode(j.slice(re,re+me));u&&m<9?ne.appendChild(R("span",[Ae])):ne.appendChild(Ae),a.map.push(a.pos,a.pos+me,Ae),a.col+=me,a.pos+=me}if(!ve)break;re+=me+1;var Te=void 0;if(ve[0]==" "){var Oe=a.cm.options.tabSize,Ie=Oe-a.col%Oe;Te=ne.appendChild(R("span",oe(Ie),"cm-tab")),Te.setAttribute("role","presentation"),Te.setAttribute("cm-text"," "),a.col+=Ie}else ve[0]=="\r"||ve[0]==`
|
||
`?(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.node==a.text&&(a.node=R("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),u&&m<8&&(a.node.style.zIndex=2)),a.node}function UL(a,s){var p=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(p&&(p+=" CodeMirror-linebackground"),s.background)p?s.background.className=p:(s.background.parentNode.removeChild(s.background),s.background=null);else if(p){var f=ma(s);s.background=f.insertBefore(R("div",null,p),f.firstChild),a.display.input.setUneditable(s.background)}}function ay(a,s){var p=a.display.externalMeasured;return p&&p.line==s.line?(a.display.externalMeasured=null,s.measure=p.measure,p.built):ny(a,s)}function HL(a,s){var p=s.text.className,f=ay(a,s);s.text==s.node&&(s.node=f.pre),s.text.parentNode.replaceChild(f.pre,s.text),s.text=f.pre,f.bgClass!=s.bgClass||f.textClass!=s.textClass?(s.bgClass=f.bgClass,s.textClass=f.textClass,yf(a,s)):p&&(s.text.className=p)}function yf(a,s){UL(a,s),s.line.wrapClass?ma(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var p=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=p||""}function ly(a,s,p,f){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var v=ma(s);s.gutterBackground=R("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(a.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px; width: "+f.gutterTotalWidth+"px"),a.display.input.setUneditable(s.gutterBackground),v.insertBefore(s.gutterBackground,s.text)}var O=s.line.gutterMarkers;if(a.options.lineNumbers||O){var M=ma(s),j=s.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px");if(j.setAttribute("aria-hidden","true"),a.display.input.setUneditable(j),M.insertBefore(j,s.text),s.line.gutterClass&&(j.className+=" "+s.line.gutterClass),a.options.lineNumbers&&(!O||!O["CodeMirror-linenumbers"])&&(s.lineNumber=j.appendChild(R("div",ae(a.options,p),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+f.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),O)for(var K=0;K<a.display.gutterSpecs.length;++K){var Z=a.display.gutterSpecs[K].className,ne=O.hasOwnProperty(Z)&&O[Z];ne&&j.appendChild(R("div",[ne],"CodeMirror-gutter-elt","left: "+f.gutterLeft[Z]+"px; width: "+f.gutterWidth[Z]+"px"))}}}function WL(a,s,p){s.alignable&&(s.alignable=null);for(var f=B("CodeMirror-linewidget"),v=s.node.firstChild,O=void 0;v;v=O)O=v.nextSibling,f.test(v.className)&&s.node.removeChild(v);sy(a,s,p)}function GL(a,s,p,f){var v=ay(a,s);return s.text=s.node=v.pre,v.bgClass&&(s.bgClass=v.bgClass),v.textClass&&(s.textClass=v.textClass),yf(a,s),ly(a,s,p,f),sy(a,s,f),s.node}function sy(a,s,p){if(dy(a,s.line,s,p,!0),s.rest)for(var f=0;f<s.rest.length;f++)dy(a,s.rest[f],s,p,!1)}function dy(a,s,p,f,v){if(!!s.widgets)for(var O=ma(p),M=0,j=s.widgets;M<j.length;++M){var K=j[M],Z=R("div",[K.node],"CodeMirror-linewidget"+(K.className?" "+K.className:""));K.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),KL(K,Z,p,f),a.display.input.setUneditable(Z),v&&K.above?O.insertBefore(Z,p.gutter||p.text):O.appendChild(Z),Jt(K,"redraw")}}function KL(a,s,p,f){if(a.noHScroll){(p.alignable||(p.alignable=[])).push(s);var v=f.wrapperWidth;s.style.left=f.fixedPos+"px",a.coverGutter||(v-=f.gutterTotalWidth,s.style.paddingLeft=f.gutterTotalWidth+"px"),s.style.width=v+"px"}a.coverGutter&&(s.style.zIndex=5,s.style.position="relative",a.noHScroll||(s.style.marginLeft=-f.gutterTotalWidth+"px"))}function ga(a){if(a.height!=null)return a.height;var s=a.doc.cm;if(!s)return 0;if(!A(document.body,a.node)){var p="position: relative;";a.coverGutter&&(p+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),a.noHScroll&&(p+="width: "+s.display.wrapper.clientWidth+"px;"),H(s.display.measure,R("div",[a.node],null,p))}return a.height=a.node.parentNode.offsetHeight}function Bi(a,s){for(var p=vn(s);p!=a.wrapper;p=p.parentNode)if(!p||p.nodeType==1&&p.getAttribute("cm-ignore-events")=="true"||p.parentNode==a.sizer&&p!=a.mover)return!0}function xs(a){return a.lineSpace.offsetTop}function bf(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function cy(a){if(a.cachedPaddingH)return a.cachedPaddingH;var s=H(a.measure,R("pre","x","CodeMirror-line-like")),p=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,f={left:parseInt(p.paddingLeft),right:parseInt(p.paddingRight)};return!isNaN(f.left)&&!isNaN(f.right)&&(a.cachedPaddingH=f),f}function bi(a){return ge-a.display.nativeBarWidth}function yr(a){return a.display.scroller.clientWidth-bi(a)-a.display.barWidth}function wf(a){return a.display.scroller.clientHeight-bi(a)-a.display.barHeight}function YL(a,s,p){var f=a.options.lineWrapping,v=f&&yr(a);if(!s.measure.heights||f&&s.measure.width!=v){var O=s.measure.heights=[];if(f){s.measure.width=v;for(var M=s.text.firstChild.getClientRects(),j=0;j<M.length-1;j++){var K=M[j],Z=M[j+1];Math.abs(K.bottom-Z.bottom)>2&&O.push((K.bottom+Z.top)/2-p.top)}}O.push(p.bottom-p.top)}}function uy(a,s,p){if(a.line==s)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var f=0;f<a.rest.length;f++)if(a.rest[f]==s)return{map:a.measure.maps[f],cache:a.measure.caches[f]};for(var v=0;v<a.rest.length;v++)if(bt(a.rest[v])>p)return{map:a.measure.maps[v],cache:a.measure.caches[v],before:!0}}}function QL(a,s){s=ti(s);var p=bt(s),f=a.display.externalMeasured=new ry(a.doc,s,p);f.lineN=p;var v=f.built=ny(a,f);return f.text=v.pre,H(a.display.lineMeasure,v.pre),f}function fy(a,s,p,f){return wi(a,fo(a,s),p,f)}function Cf(a,s){if(s>=a.display.viewFrom&&s<a.display.viewTo)return a.display.view[Cr(a,s)];var p=a.display.externalMeasured;if(p&&s>=p.lineN&&s<p.lineN+p.size)return p}function fo(a,s){var p=bt(s),f=Cf(a,p);f&&!f.text?f=null:f&&f.changes&&(oy(a,f,p,xf(a)),a.curOp.forceUpdate=!0),f||(f=QL(a,s));var v=uy(f,s,p);return{line:s,view:f,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function wi(a,s,p,f,v){s.before&&(p=-1);var O=p+(f||""),M;return s.cache.hasOwnProperty(O)?M=s.cache[O]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(YL(a,s.view,s.rect),s.hasHeights=!0),M=XL(a,s,p,f),M.bogus||(s.cache[O]=M)),{left:M.left,right:M.right,top:v?M.rtop:M.top,bottom:v?M.rbottom:M.bottom}}var py={left:0,right:0,top:0,bottom:0};function hy(a,s,p){for(var f,v,O,M,j,K,Z=0;Z<a.length;Z+=3)if(j=a[Z],K=a[Z+1],s<j?(v=0,O=1,M="left"):s<K?(v=s-j,O=v+1):(Z==a.length-3||s==K&&a[Z+3]>s)&&(O=K-j,v=O-1,s>=K&&(M="right")),v!=null){if(f=a[Z+2],j==K&&p==(f.insertLeft?"left":"right")&&(M=p),p=="left"&&v==0)for(;Z&&a[Z-2]==a[Z-3]&&a[Z-1].insertLeft;)f=a[(Z-=3)+2],M="left";if(p=="right"&&v==K-j)for(;Z<a.length-3&&a[Z+3]==a[Z+4]&&!a[Z+5].insertLeft;)f=a[(Z+=3)+2],M="right";break}return{node:f,start:v,end:O,collapse:M,coverStart:j,coverEnd:K}}function JL(a,s){var p=py;if(s=="left")for(var f=0;f<a.length&&(p=a[f]).left==p.right;f++);else for(var v=a.length-1;v>=0&&(p=a[v]).left==p.right;v--);return p}function XL(a,s,p,f){var v=hy(s.map,p,f),O=v.node,M=v.start,j=v.end,K=v.collapse,Z;if(O.nodeType==3){for(var ne=0;ne<4;ne++){for(;M&&Ve(s.line.text.charAt(v.coverStart+M));)--M;for(;v.coverStart+j<v.coverEnd&&Ve(s.line.text.charAt(v.coverStart+j));)++j;if(u&&m<9&&M==0&&j==v.coverEnd-v.coverStart?Z=O.parentNode.getBoundingClientRect():Z=JL($(O,M,j).getClientRects(),f),Z.left||Z.right||M==0)break;j=M,M=M-1,K="right"}u&&m<11&&(Z=ZL(a.display.measure,Z))}else{M>0&&(K=f="right");var re;a.options.lineWrapping&&(re=O.getClientRects()).length>1?Z=re[f=="right"?re.length-1:0]:Z=O.getBoundingClientRect()}if(u&&m<9&&!M&&(!Z||!Z.left&&!Z.right)){var ve=O.parentNode.getClientRects()[0];ve?Z={left:ve.left,right:ve.left+ho(a.display),top:ve.top,bottom:ve.bottom}:Z=py}for(var me=Z.top-s.rect.top,Ae=Z.bottom-s.rect.top,Te=(me+Ae)/2,Oe=s.view.measure.heights,Ie=0;Ie<Oe.length-1&&!(Te<Oe[Ie]);Ie++);var Ue=Ie?Oe[Ie-1]:0,Fe=Oe[Ie],Ge={left:(K=="right"?Z.right:Z.left)-s.rect.left,right:(K=="left"?Z.left:Z.right)-s.rect.left,top:Ue,bottom:Fe};return!Z.left&&!Z.right&&(Ge.bogus=!0),a.options.singleCursorHeightPerLine||(Ge.rtop=me,Ge.rbottom=Ae),Ge}function ZL(a,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!gs(a))return s;var p=screen.logicalXDPI/screen.deviceXDPI,f=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*p,right:s.right*p,top:s.top*f,bottom:s.bottom*f}}function my(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var s=0;s<a.rest.length;s++)a.measure.caches[s]={}}function gy(a){a.display.externalMeasure=null,U(a.display.lineMeasure);for(var s=0;s<a.display.view.length;s++)my(a.display.view[s])}function va(a){gy(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function vy(a){return C&&x?-(a.body.getBoundingClientRect().left-parseInt(getComputedStyle(a.body).marginLeft)):a.defaultView.pageXOffset||(a.documentElement||a.body).scrollLeft}function yy(a){return C&&x?-(a.body.getBoundingClientRect().top-parseInt(getComputedStyle(a.body).marginTop)):a.defaultView.pageYOffset||(a.documentElement||a.body).scrollTop}function _f(a){var s=ti(a),p=s.widgets,f=0;if(p)for(var v=0;v<p.length;++v)p[v].above&&(f+=ga(p[v]));return f}function ks(a,s,p,f,v){if(!v){var O=_f(s);p.top+=O,p.bottom+=O}if(f=="line")return p;f||(f="local");var M=Vi(s);if(f=="local"?M+=xs(a.display):M-=a.display.viewOffset,f=="page"||f=="window"){var j=a.display.lineSpace.getBoundingClientRect();M+=j.top+(f=="window"?0:yy(X(a)));var K=j.left+(f=="window"?0:vy(X(a)));p.left+=K,p.right+=K}return p.top+=M,p.bottom+=M,p}function by(a,s,p){if(p=="div")return s;var f=s.left,v=s.top;if(p=="page")f-=vy(X(a)),v-=yy(X(a));else if(p=="local"||!p){var O=a.display.sizer.getBoundingClientRect();f+=O.left,v+=O.top}var M=a.display.lineSpace.getBoundingClientRect();return{left:f-M.left,top:v-M.top}}function Ts(a,s,p,f,v){return f||(f=Je(a.doc,s.line)),ks(a,f,fy(a,f,s.ch,v),p)}function ni(a,s,p,f,v,O){f=f||Je(a.doc,s.line),v||(v=fo(a,f));function M(Ae,Te){var Oe=wi(a,v,Ae,Te?"right":"left",O);return Te?Oe.left=Oe.right:Oe.right=Oe.left,ks(a,f,Oe,p)}var j=tt(f,a.doc.direction),K=s.ch,Z=s.sticky;if(K>=f.text.length?(K=f.text.length,Z="before"):K<=0&&(K=0,Z="after"),!j)return M(Z=="before"?K-1:K,Z=="before");function ne(Ae,Te,Oe){var Ie=j[Te],Ue=Ie.level==1;return M(Oe?Ae-1:Ae,Ue!=Oe)}var re=Ne(j,K,Z),ve=Ze,me=ne(K,re,Z=="before");return ve!=null&&(me.other=ne(K,ve,Z!="before")),me}function wy(a,s){var p=0;s=ot(a.doc,s),a.options.lineWrapping||(p=ho(a.display)*s.ch);var f=Je(a.doc,s.line),v=Vi(f)+xs(a.display);return{left:p,right:p,top:v,bottom:v+f.height}}function Ef(a,s,p,f,v){var O=ue(a,s,p);return O.xRel=v,f&&(O.outside=f),O}function Af(a,s,p){var f=a.doc;if(p+=a.display.viewOffset,p<0)return Ef(f.first,0,null,-1,-1);var v=vi(f,p),O=f.first+f.size-1;if(v>O)return Ef(f.first+f.size-1,Je(f,O).text.length,null,1,1);s<0&&(s=0);for(var M=Je(f,v);;){var j=qL(a,M,v,s,p),K=kL(M,j.ch+(j.xRel>0||j.outside>0?1:0));if(!K)return j;var Z=K.find(1);if(Z.line==v)return Z;M=Je(f,v=Z.line)}}function Cy(a,s,p,f){f-=_f(s);var v=s.text.length,O=Re(function(M){return wi(a,p,M-1).bottom<=f},v,0);return v=Re(function(M){return wi(a,p,M).top>f},O,v),{begin:O,end:v}}function _y(a,s,p,f){p||(p=fo(a,s));var v=ks(a,s,wi(a,p,f),"line").top;return Cy(a,s,p,v)}function Sf(a,s,p,f){return a.bottom<=p?!1:a.top>p?!0:(f?a.left:a.right)>s}function qL(a,s,p,f,v){v-=Vi(s);var O=fo(a,s),M=_f(s),j=0,K=s.text.length,Z=!0,ne=tt(s,a.doc.direction);if(ne){var re=(a.options.lineWrapping?t8:e8)(a,s,p,O,ne,f,v);Z=re.level!=1,j=Z?re.from:re.to-1,K=Z?re.to:re.from-1}var ve=null,me=null,Ae=Re(function(nt){var qe=wi(a,O,nt);return qe.top+=M,qe.bottom+=M,Sf(qe,f,v,!1)?(qe.top<=v&&qe.left<=f&&(ve=nt,me=qe),!0):!1},j,K),Te,Oe,Ie=!1;if(me){var Ue=f-me.left<me.right-f,Fe=Ue==Z;Ae=ve+(Fe?0:1),Oe=Fe?"after":"before",Te=Ue?me.left:me.right}else{!Z&&(Ae==K||Ae==j)&&Ae++,Oe=Ae==0?"after":Ae==s.text.length?"before":wi(a,O,Ae-(Z?1:0)).bottom+M<=v==Z?"after":"before";var Ge=ni(a,ue(p,Ae,Oe),"line",s,O);Te=Ge.left,Ie=v<Ge.top?-1:v>=Ge.bottom?1:0}return Ae=Ke(s.text,Ae,1),Ef(p,Ae,Oe,Ie,f-Te)}function e8(a,s,p,f,v,O,M){var j=Re(function(re){var ve=v[re],me=ve.level!=1;return Sf(ni(a,ue(p,me?ve.to:ve.from,me?"before":"after"),"line",s,f),O,M,!0)},0,v.length-1),K=v[j];if(j>0){var Z=K.level!=1,ne=ni(a,ue(p,Z?K.from:K.to,Z?"after":"before"),"line",s,f);Sf(ne,O,M,!0)&&ne.top>M&&(K=v[j-1])}return K}function t8(a,s,p,f,v,O,M){var j=Cy(a,s,f,M),K=j.begin,Z=j.end;/\s/.test(s.text.charAt(Z-1))&&Z--;for(var ne=null,re=null,ve=0;ve<v.length;ve++){var me=v[ve];if(!(me.from>=Z||me.to<=K)){var Ae=me.level!=1,Te=wi(a,f,Ae?Math.min(Z,me.to)-1:Math.max(K,me.from)).right,Oe=Te<O?O-Te+1e9:Te-O;(!ne||re>Oe)&&(ne=me,re=Oe)}}return ne||(ne=v[v.length-1]),ne.from<K&&(ne={from:K,to:ne.to,level:ne.level}),ne.to>Z&&(ne={from:ne.from,to:Z,level:ne.level}),ne}var br;function po(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(br==null){br=R("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)br.appendChild(document.createTextNode("x")),br.appendChild(R("br"));br.appendChild(document.createTextNode("x"))}H(a.measure,br);var p=br.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),U(a.measure),p||1}function ho(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var s=R("span","xxxxxxxxxx"),p=R("pre",[s],"CodeMirror-line-like");H(a.measure,p);var f=s.getBoundingClientRect(),v=(f.right-f.left)/10;return v>2&&(a.cachedCharWidth=v),v||10}function xf(a){for(var s=a.display,p={},f={},v=s.gutters.clientLeft,O=s.gutters.firstChild,M=0;O;O=O.nextSibling,++M){var j=a.display.gutterSpecs[M].className;p[j]=O.offsetLeft+O.clientLeft+v,f[j]=O.clientWidth}return{fixedPos:kf(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:p,gutterWidth:f,wrapperWidth:s.wrapper.clientWidth}}function kf(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Ey(a){var s=po(a.display),p=a.options.lineWrapping,f=p&&Math.max(5,a.display.scroller.clientWidth/ho(a.display)-3);return function(v){if(Ji(a.doc,v))return 0;var O=0;if(v.widgets)for(var M=0;M<v.widgets.length;M++)v.widgets[M].height&&(O+=v.widgets[M].height);return p?O+(Math.ceil(v.text.length/f)||1)*s:O+s}}function Tf(a){var s=a.doc,p=Ey(a);s.iter(function(f){var v=p(f);v!=f.height&&Kn(f,v)})}function wr(a,s,p,f){var v=a.display;if(!p&&vn(s).getAttribute("cm-not-content")=="true")return null;var O,M,j=v.lineSpace.getBoundingClientRect();try{O=s.clientX-j.left,M=s.clientY-j.top}catch{return null}var K=Af(a,O,M),Z;if(f&&K.xRel>0&&(Z=Je(a.doc,K.line).text).length==K.ch){var ne=de(Z,Z.length,a.options.tabSize)-Z.length;K=ue(K.line,Math.max(0,Math.round((O-cy(a.display).left)/ho(a.display))-ne))}return K}function Cr(a,s){if(s>=a.display.viewTo||(s-=a.display.viewFrom,s<0))return null;for(var p=a.display.view,f=0;f<p.length;f++)if(s-=p[f].size,s<0)return f}function yn(a,s,p,f){s==null&&(s=a.doc.first),p==null&&(p=a.doc.first+a.doc.size),f||(f=0);var v=a.display;if(f&&p<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>s)&&(v.updateLineNumbers=s),a.curOp.viewChanged=!0,s>=v.viewTo)Oi&&mf(a.doc,s)<v.viewTo&&Zi(a);else if(p<=v.viewFrom)Oi&&ey(a.doc,p+f)>v.viewFrom?Zi(a):(v.viewFrom+=f,v.viewTo+=f);else if(s<=v.viewFrom&&p>=v.viewTo)Zi(a);else if(s<=v.viewFrom){var O=Ns(a,p,p+f,1);O?(v.view=v.view.slice(O.index),v.viewFrom=O.lineN,v.viewTo+=f):Zi(a)}else if(p>=v.viewTo){var M=Ns(a,s,s,-1);M?(v.view=v.view.slice(0,M.index),v.viewTo=M.lineN):Zi(a)}else{var j=Ns(a,s,s,-1),K=Ns(a,p,p+f,1);j&&K?(v.view=v.view.slice(0,j.index).concat(Ss(a,j.lineN,K.lineN)).concat(v.view.slice(K.index)),v.viewTo+=f):Zi(a)}var Z=v.externalMeasured;Z&&(p<Z.lineN?Z.lineN+=f:s<Z.lineN+Z.size&&(v.externalMeasured=null))}function Xi(a,s,p){a.curOp.viewChanged=!0;var f=a.display,v=a.display.externalMeasured;if(v&&s>=v.lineN&&s<v.lineN+v.size&&(f.externalMeasured=null),!(s<f.viewFrom||s>=f.viewTo)){var O=f.view[Cr(a,s)];if(O.node!=null){var M=O.changes||(O.changes=[]);se(M,p)==-1&&M.push(p)}}}function Zi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ns(a,s,p,f){var v=Cr(a,s),O,M=a.display.view;if(!Oi||p==a.doc.first+a.doc.size)return{index:v,lineN:p};for(var j=a.display.viewFrom,K=0;K<v;K++)j+=M[K].size;if(j!=s){if(f>0){if(v==M.length-1)return null;O=j+M[v].size-s,v++}else O=j-s;s+=O,p+=O}for(;mf(a.doc,p)!=p;){if(v==(f<0?0:M.length-1))return null;p+=f*M[v-(f<0?1:0)].size,v+=f}return{index:v,lineN:p}}function n8(a,s,p){var f=a.display,v=f.view;v.length==0||s>=f.viewTo||p<=f.viewFrom?(f.view=Ss(a,s,p),f.viewFrom=s):(f.viewFrom>s?f.view=Ss(a,s,f.viewFrom).concat(f.view):f.viewFrom<s&&(f.view=f.view.slice(Cr(a,s))),f.viewFrom=s,f.viewTo<p?f.view=f.view.concat(Ss(a,f.viewTo,p)):f.viewTo>p&&(f.view=f.view.slice(0,Cr(a,p)))),f.viewTo=p}function Ay(a){for(var s=a.display.view,p=0,f=0;f<s.length;f++){var v=s[f];!v.hidden&&(!v.node||v.changes)&&++p}return p}function ya(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Sy(a,s){s===void 0&&(s=!0);var p=a.doc,f={},v=f.cursors=document.createDocumentFragment(),O=f.selection=document.createDocumentFragment(),M=a.options.$customCursor;M&&(s=!0);for(var j=0;j<p.sel.ranges.length;j++)if(!(!s&&j==p.sel.primIndex)){var K=p.sel.ranges[j];if(!(K.from().line>=a.display.viewTo||K.to().line<a.display.viewFrom)){var Z=K.empty();if(M){var ne=M(a,K);ne&&Nf(a,ne,v)}else(Z||a.options.showCursorWhenSelecting)&&Nf(a,K.head,v);Z||i8(a,K,O)}}return f}function Nf(a,s,p){var f=ni(a,s,"div",null,null,!a.options.singleCursorHeightPerLine),v=p.appendChild(R("div","\xA0","CodeMirror-cursor"));if(v.style.left=f.left+"px",v.style.top=f.top+"px",v.style.height=Math.max(0,f.bottom-f.top)*a.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(a.getWrapperElement().className)){var O=Ts(a,s,"div",null,null),M=O.right-O.left;v.style.width=(M>0?M:a.defaultCharWidth())+"px"}if(f.other){var j=p.appendChild(R("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));j.style.display="",j.style.left=f.other.left+"px",j.style.top=f.other.top+"px",j.style.height=(f.other.bottom-f.other.top)*.85+"px"}}function Ds(a,s){return a.top-s.top||a.left-s.left}function i8(a,s,p){var f=a.display,v=a.doc,O=document.createDocumentFragment(),M=cy(a.display),j=M.left,K=Math.max(f.sizerWidth,yr(a)-f.sizer.offsetLeft)-M.right,Z=v.direction=="ltr";function ne(Fe,Ge,nt,qe){Ge<0&&(Ge=0),Ge=Math.round(Ge),qe=Math.round(qe),O.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+Fe+`px;
|
||
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.lastLine())>=M&&(O=vi(s,Vi(Je(s,K))-a.wrapper.clientHeight),M=K)}return{from:O,to:Math.max(M,O+1)}}function r8(a,s){if(!dt(a,"scrollCursorIntoView")){var p=a.display,f=p.sizer.getBoundingClientRect(),v=null,O=p.wrapper.ownerDocument;if(s.top+f.top<0?v=!0:s.bottom+f.top>(O.defaultView.innerHeight||O.documentElement.clientHeight)&&(v=!1),v!=null&&!g){var M=R("div","\u200B",null,`position: absolute;
|
||
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.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+v)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=p?f+"px":"0",this.horiz.style.left=a.barLeft+"px";var O=a.viewWidth-a.barLeft-(p?f:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+O)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(f==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:p?f:0,bottom:s?f:0}},Er.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Er.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Er.prototype.zeroWidthHack=function(){var a=N&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new pe,this.disableVert=new pe},Er.prototype.enableZeroWidthBar=function(a,s,p){a.style.visibility="";function f(){var v=a.getBoundingClientRect(),O=p=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);O!=a?a.style.visibility="hidden":s.set(1e3,f)}s.set(1e3,f)},Er.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var _a=function(){};_a.prototype.update=function(){return{bottom:0,right:0}},_a.prototype.setScrollLeft=function(){},_a.prototype.setScrollTop=function(){},_a.prototype.clear=function(){};function vo(a,s){s||(s=Ca(a));var p=a.display.barWidth,f=a.display.barHeight;Dy(a,s);for(var v=0;v<4&&p!=a.display.barWidth||f!=a.display.barHeight;v++)p!=a.display.barWidth&&a.options.lineWrapping&&Os(a),Dy(a,Ca(a)),p=a.display.barWidth,f=a.display.barHeight}function Dy(a,s){var p=a.display,f=p.scrollbars.update(s);p.sizer.style.paddingRight=(p.barWidth=f.right)+"px",p.sizer.style.paddingBottom=(p.barHeight=f.bottom)+"px",p.heightForcer.style.borderBottom=f.bottom+"px solid transparent",f.right&&f.bottom?(p.scrollbarFiller.style.display="block",p.scrollbarFiller.style.height=f.bottom+"px",p.scrollbarFiller.style.width=f.right+"px"):p.scrollbarFiller.style.display="",f.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(p.gutterFiller.style.display="block",p.gutterFiller.style.height=f.bottom+"px",p.gutterFiller.style.width=s.gutterWidth+"px"):p.gutterFiller.style.display=""}var Oy={native:Er,null:_a};function Vy(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&L(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Oy[a.options.scrollbarStyle](function(s){a.display.wrapper.insertBefore(s,a.display.scrollbarFiller),Ce(s,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,p){p=="horizontal"?_r(a,s):wa(a,s)},a),a.display.scrollbars.addClass&&Q(a.display.wrapper,a.display.scrollbars.addClass)}var s8=0;function Ar(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++s8,markArrays:null},PL(a.curOp)}function Sr(a){var s=a.curOp;s&&jL(s,function(p){for(var f=0;f<p.ops.length;f++)p.ops[f].cm.curOp=null;d8(p)})}function d8(a){for(var s=a.ops,p=0;p<s.length;p++)c8(s[p]);for(var f=0;f<s.length;f++)u8(s[f]);for(var v=0;v<s.length;v++)f8(s[v]);for(var O=0;O<s.length;O++)p8(s[O]);for(var M=0;M<s.length;M++)h8(s[M])}function c8(a){var s=a.cm,p=s.display;g8(s),a.updateMaxLine&&vf(s),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<p.viewFrom||a.scrollToPos.to.line>=p.viewTo)||p.maxLineChanged&&s.options.lineWrapping,a.update=a.mustUpdate&&new Rs(s,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function u8(a){a.updatedDisplay=a.mustUpdate&&$f(a.cm,a.update)}function f8(a){var s=a.cm,p=s.display;a.updatedDisplay&&Os(s),a.barMeasure=Ca(s),p.maxLineChanged&&!s.options.lineWrapping&&(a.adjustWidthTo=fy(s,p.maxLine,p.maxLine.text.length).left+3,s.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(p.scroller.clientWidth,p.sizer.offsetLeft+a.adjustWidthTo+bi(s)+s.display.barWidth),a.maxScrollLeft=Math.max(0,p.sizer.offsetLeft+a.adjustWidthTo-yr(s))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=p.input.prepareSelection())}function p8(a){var s=a.cm;a.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<s.doc.scrollLeft&&_r(s,Math.min(s.display.scroller.scrollLeft,a.maxScrollLeft),!0),s.display.maxLineChanged=!1);var p=a.focus&&a.focus==J(X(s));a.preparedSelection&&s.display.input.showSelection(a.preparedSelection,p),(a.updatedDisplay||a.startHeight!=s.doc.height)&&vo(s,a.barMeasure),a.updatedDisplay&&Mf(s,a.barMeasure),a.selectionChanged&&Df(s),s.state.focused&&a.updateInput&&s.display.input.reset(a.typing),p&&xy(a.cm)}function h8(a){var s=a.cm,p=s.display,f=s.doc;if(a.updatedDisplay&&By(s,a.update),p.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(p.wheelStartX=p.wheelStartY=null),a.scrollTop!=null&&Ny(s,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&_r(s,a.scrollLeft,!0,!0),a.scrollToPos){var v=o8(s,ot(f,a.scrollToPos.from),ot(f,a.scrollToPos.to),a.scrollToPos.margin);r8(s,v)}var O=a.maybeHiddenMarkers,M=a.maybeUnhiddenMarkers;if(O)for(var j=0;j<O.length;++j)O[j].lines.length||Qe(O[j],"hide");if(M)for(var K=0;K<M.length;++K)M[K].lines.length&&Qe(M[K],"unhide");p.wrapper.offsetHeight&&(f.scrollTop=s.display.scroller.scrollTop),a.changeObjs&&Qe(s,"changes",s,a.changeObjs),a.update&&a.update.finish()}function Nn(a,s){if(a.curOp)return s();Ar(a);try{return s()}finally{Sr(a)}}function Xt(a,s){return function(){if(a.curOp)return s.apply(a,arguments);Ar(a);try{return s.apply(a,arguments)}finally{Sr(a)}}}function un(a){return function(){if(this.curOp)return a.apply(this,arguments);Ar(this);try{return a.apply(this,arguments)}finally{Sr(this)}}}function Zt(a){return function(){var s=this.cm;if(!s||s.curOp)return a.apply(this,arguments);Ar(s);try{return a.apply(this,arguments)}finally{Sr(s)}}}function Ea(a,s){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(s,be(m8,a))}function m8(a){var s=a.doc;if(!(s.highlightFrontier>=a.display.viewTo)){var p=+new Date+a.options.workTime,f=fa(a,s.highlightFrontier),v=[];s.iter(f.line,Math.min(s.first+s.size,a.display.viewTo+500),function(O){if(f.line>=a.display.viewFrom){var M=O.styles,j=O.text.length>a.options.maxHighlightLength?Ni(s.mode,f.state):null,K=Lv(a,O,f,!0);j&&(f.state=j),O.styles=K.styles;var Z=O.styleClasses,ne=K.classes;ne?O.styleClasses=ne:Z&&(O.styleClasses=null);for(var re=!M||M.length!=O.styles.length||Z!=ne&&(!Z||!ne||Z.bgClass!=ne.bgClass||Z.textClass!=ne.textClass),ve=0;!re&&ve<M.length;++ve)re=M[ve]!=O.styles[ve];re&&v.push(f.line),O.stateAfter=f.save(),f.nextLine()}else O.text.length<=a.options.maxHighlightLength&&uf(a,O.text,f),O.stateAfter=f.line%5==0?f.save():null,f.nextLine();if(+new Date>p)return Ea(a,a.options.workDelay),!0}),s.highlightFrontier=f.line,s.modeFrontier=Math.max(s.modeFrontier,f.line),v.length&&Nn(a,function(){for(var O=0;O<v.length;O++)Xi(a,v[O],"text")})}}var Rs=function(a,s,p){var f=a.display;this.viewport=s,this.visible=Vs(f,a.doc,s),this.editorIsHidden=!f.wrapper.offsetWidth,this.wrapperHeight=f.wrapper.clientHeight,this.wrapperWidth=f.wrapper.clientWidth,this.oldDisplayWidth=yr(a),this.force=p,this.dims=xf(a),this.events=[]};Rs.prototype.signal=function(a,s){Bt(a,s)&&this.events.push(arguments)},Rs.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Qe.apply(null,this.events[a])};function g8(a){var s=a.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=bi(a)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=bi(a)+"px",s.scrollbarsClipped=!0)}function v8(a){if(a.hasFocus())return null;var s=J(X(a));if(!s||!A(a.display.lineDiv,s))return null;var p={activeElt:s};if(window.getSelection){var f=le(a).getSelection();f.anchorNode&&f.extend&&A(a.display.lineDiv,f.anchorNode)&&(p.anchorNode=f.anchorNode,p.anchorOffset=f.anchorOffset,p.focusNode=f.focusNode,p.focusOffset=f.focusOffset)}return p}function y8(a){if(!(!a||!a.activeElt||a.activeElt==J(a.activeElt.ownerDocument))&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&A(document.body,a.anchorNode)&&A(document.body,a.focusNode))){var s=a.activeElt.ownerDocument,p=s.defaultView.getSelection(),f=s.createRange();f.setEnd(a.anchorNode,a.anchorOffset),f.collapse(!1),p.removeAllRanges(),p.addRange(f),p.extend(a.focusNode,a.focusOffset)}}function $f(a,s){var p=a.display,f=a.doc;if(s.editorIsHidden)return Zi(a),!1;if(!s.force&&s.visible.from>=p.viewFrom&&s.visible.to<=p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo)&&p.renderedView==p.view&&Ay(a)==0)return!1;$y(a)&&(Zi(a),s.dims=xf(a));var v=f.first+f.size,O=Math.max(s.visible.from-a.options.viewportMargin,f.first),M=Math.min(v,s.visible.to+a.options.viewportMargin);p.viewFrom<O&&O-p.viewFrom<20&&(O=Math.max(f.first,p.viewFrom)),p.viewTo>M&&p.viewTo-M<20&&(M=Math.min(v,p.viewTo)),Oi&&(O=mf(a.doc,O),M=ey(a.doc,M));var j=O!=p.viewFrom||M!=p.viewTo||p.lastWrapHeight!=s.wrapperHeight||p.lastWrapWidth!=s.wrapperWidth;n8(a,O,M),p.viewOffset=Vi(Je(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+"px";var K=Ay(a);if(!j&&K==0&&!s.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var Z=v8(a);return K>4&&(p.lineDiv.style.display="none"),b8(a,p.updateLineNumbers,s.dims),K>4&&(p.lineDiv.style.display=""),p.renderedView=p.view,y8(Z),U(p.cursorDiv),U(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,j&&(p.lastWrapHeight=s.wrapperHeight,p.lastWrapWidth=s.wrapperWidth,Ea(a,400)),p.updateLineNumbers=null,!0}function By(a,s){for(var p=s.viewport,f=!0;;f=!1){if(!f||!a.options.lineWrapping||s.oldDisplayWidth==yr(a)){if(p&&p.top!=null&&(p={top:Math.min(a.doc.height+bf(a.display)-wf(a),p.top)}),s.visible=Vs(a.display,a.doc,p),s.visible.from>=a.display.viewFrom&&s.visible.to<=a.display.viewTo)break}else f&&(s.visible=Vs(a.display,a.doc,p));if(!$f(a,s))break;Os(a);var v=Ca(a);ya(a),vo(a,v),Mf(a,v),s.force=!1}s.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(s.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function If(a,s){var p=new Rs(a,s);if($f(a,p)){Os(a),By(a,p);var f=Ca(a);ya(a),vo(a,f),Mf(a,f),p.finish()}}function b8(a,s,p){var f=a.display,v=a.options.lineNumbers,O=f.lineDiv,M=O.firstChild;function j(Ae){var Te=Ae.nextSibling;return h&&N&&a.display.currentWheelTarget==Ae?Ae.style.display="none":Ae.parentNode.removeChild(Ae),Te}for(var K=f.view,Z=f.viewFrom,ne=0;ne<K.length;ne++){var re=K[ne];if(!re.hidden)if(!re.node||re.node.parentNode!=O){var ve=GL(a,re,Z,p);O.insertBefore(ve,M)}else{for(;M!=re.node;)M=j(M);var me=v&&s!=null&&s<=Z&&re.lineNumber;re.changes&&(se(re.changes,"gutter")>-1&&(me=!1),oy(a,re,Z,p)),me&&(U(re.lineNumber),re.lineNumber.appendChild(document.createTextNode(ae(a.options,Z)))),M=re.node.nextSibling}Z+=re.size}for(;M;)M=j(M)}function Ff(a){var s=a.gutters.offsetWidth;a.sizer.style.marginLeft=s+"px",Jt(a,"gutterChanged",a)}function Mf(a,s){a.display.sizer.style.minHeight=s.docHeight+"px",a.display.heightForcer.style.top=s.docHeight+"px",a.display.gutters.style.height=s.docHeight+a.display.barHeight+bi(a)+"px"}function Ry(a){var s=a.display,p=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!a.options.fixedGutter))){for(var f=kf(s)-s.scroller.scrollLeft+a.doc.scrollLeft,v=s.gutters.offsetWidth,O=f+"px",M=0;M<p.length;M++)if(!p[M].hidden){a.options.fixedGutter&&(p[M].gutter&&(p[M].gutter.style.left=O),p[M].gutterBackground&&(p[M].gutterBackground.style.left=O));var j=p[M].alignable;if(j)for(var K=0;K<j.length;K++)j[K].style.left=O}a.options.fixedGutter&&(s.gutters.style.left=f+v+"px")}}function $y(a){if(!a.options.lineNumbers)return!1;var s=a.doc,p=ae(a.options,s.first+s.size-1),f=a.display;if(p.length!=f.lineNumChars){var v=f.measure.appendChild(R("div",[R("div",p)],"CodeMirror-linenumber CodeMirror-gutter-elt")),O=v.firstChild.offsetWidth,M=v.offsetWidth-O;return f.lineGutter.style.width="",f.lineNumInnerWidth=Math.max(O,f.lineGutter.offsetWidth-M)+1,f.lineNumWidth=f.lineNumInnerWidth+M,f.lineNumChars=f.lineNumInnerWidth?p.length:-1,f.lineGutter.style.width=f.lineNumWidth+"px",Ff(a.display),!0}return!1}function Pf(a,s){for(var p=[],f=!1,v=0;v<a.length;v++){var O=a[v],M=null;if(typeof O!="string"&&(M=O.style,O=O.className),O=="CodeMirror-linenumbers")if(s)f=!0;else continue;p.push({className:O,style:M})}return s&&!f&&p.push({className:"CodeMirror-linenumbers",style:null}),p}function Iy(a){var s=a.gutters,p=a.gutterSpecs;U(s),a.lineGutter=null;for(var f=0;f<p.length;++f){var v=p[f],O=v.className,M=v.style,j=s.appendChild(R("div",null,"CodeMirror-gutter "+O));M&&(j.style.cssText=M),O=="CodeMirror-linenumbers"&&(a.lineGutter=j,j.style.width=(a.lineNumWidth||1)+"px")}s.style.display=p.length?"":"none",Ff(a)}function Aa(a){Iy(a.display),yn(a),Ry(a)}function w8(a,s,p,f){var v=this;this.input=p,v.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=z("div",null,"CodeMirror-code"),v.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=R("div",null,"CodeMirror-cursors"),v.measure=R("div",null,"CodeMirror-measure"),v.lineMeasure=R("div",null,"CodeMirror-measure"),v.lineSpace=z("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var O=z("div",[v.lineSpace],"CodeMirror-lines");v.mover=R("div",[O],null,"position: relative"),v.sizer=R("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=R("div",null,null,"position: absolute; height: "+ge+"px; width: 1px;"),v.gutters=R("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=R("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=R("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),v.wrapper.setAttribute("translate","no"),u&&m<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!h&&!(i&&k)&&(v.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(v.wrapper):a(v.wrapper)),v.viewFrom=v.viewTo=s.first,v.reportedViewFrom=v.reportedViewTo=s.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=Pf(f.gutters,f.lineNumbers),Iy(v),p.init(v)}var $s=0,Ri=null;u?Ri=-.53:i?Ri=15:C?Ri=-.7:E&&(Ri=-1/3);function Fy(a){var s=a.wheelDeltaX,p=a.wheelDeltaY;return s==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(s=a.detail),p==null&&a.detail&&a.axis==a.VERTICAL_AXIS?p=a.detail:p==null&&(p=a.wheelDelta),{x:s,y:p}}function C8(a){var s=Fy(a);return s.x*=Ri,s.y*=Ri,s}function My(a,s){C&&S==102&&(a.display.chromeScrollHack==null?a.display.sizer.style.pointerEvents="none":clearTimeout(a.display.chromeScrollHack),a.display.chromeScrollHack=setTimeout(function(){a.display.chromeScrollHack=null,a.display.sizer.style.pointerEvents=""},100));var p=Fy(s),f=p.x,v=p.y,O=Ri;s.deltaMode===0&&(f=s.deltaX,v=s.deltaY,O=1);var M=a.display,j=M.scroller,K=j.scrollWidth>j.clientWidth,Z=j.scrollHeight>j.clientHeight;if(!!(f&&K||v&&Z)){if(v&&N&&h){e:for(var ne=s.target,re=M.view;ne!=j;ne=ne.parentNode)for(var ve=0;ve<re.length;ve++)if(re[ve].node==ne){a.display.currentWheelTarget=ne;break e}}if(f&&!i&&!w&&O!=null){v&&Z&&wa(a,Math.max(0,j.scrollTop+v*O)),_r(a,Math.max(0,j.scrollLeft+f*O)),(!v||v&&Z)&&yt(s),M.wheelStartX=null;return}if(v&&O!=null){var me=v*O,Ae=a.doc.scrollTop,Te=Ae+M.wrapper.clientHeight;me<0?Ae=Math.max(0,Ae+me-50):Te=Math.min(a.doc.height,Te+me+50),If(a,{top:Ae,bottom:Te})}$s<20&&s.deltaMode!==0&&(M.wheelStartX==null?(M.wheelStartX=j.scrollLeft,M.wheelStartY=j.scrollTop,M.wheelDX=f,M.wheelDY=v,setTimeout(function(){if(M.wheelStartX!=null){var Oe=j.scrollLeft-M.wheelStartX,Ie=j.scrollTop-M.wheelStartY,Ue=Ie&&M.wheelDY&&Ie/M.wheelDY||Oe&&M.wheelDX&&Oe/M.wheelDX;M.wheelStartX=M.wheelStartY=null,Ue&&(Ri=(Ri*$s+Ue)/($s+1),++$s)}},200)):(M.wheelDX+=f,M.wheelDY+=v))}}var Mn=function(a,s){this.ranges=a,this.primIndex=s};Mn.prototype.primary=function(){return this.ranges[this.primIndex]},Mn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var p=this.ranges[s],f=a.ranges[s];if(!rt(p.anchor,f.anchor)||!rt(p.head,f.head))return!1}return!0},Mn.prototype.deepCopy=function(){for(var a=[],s=0;s<this.ranges.length;s++)a[s]=new wt(ht(this.ranges[s].anchor),ht(this.ranges[s].head));return new Mn(a,this.primIndex)},Mn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Mn.prototype.contains=function(a,s){s||(s=a);for(var p=0;p<this.ranges.length;p++){var f=this.ranges[p];if(Ee(s,f.from())>=0&&Ee(a,f.to())<=0)return p}return-1};var wt=function(a,s){this.anchor=a,this.head=s};wt.prototype.from=function(){return Gt(this.anchor,this.head)},wt.prototype.to=function(){return vt(this.anchor,this.head)},wt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ii(a,s,p){var f=a&&a.options.selectionsMayTouch,v=s[p];s.sort(function(ve,me){return Ee(ve.from(),me.from())}),p=se(s,v);for(var O=1;O<s.length;O++){var M=s[O],j=s[O-1],K=Ee(j.to(),M.from());if(f&&!M.empty()?K>0:K>=0){var Z=Gt(j.from(),M.from()),ne=vt(j.to(),M.to()),re=j.empty()?M.from()==M.head:j.from()==j.head;O<=p&&--p,s.splice(--O,2,new wt(re?ne:Z,re?Z:ne))}}return new Mn(s,p)}function qi(a,s){return new Mn([new wt(a,s||a)],0)}function er(a){return a.text?ue(a.from.line+a.text.length-1,he(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Py(a,s){if(Ee(a,s.from)<0)return a;if(Ee(a,s.to)<=0)return er(s);var p=a.line+s.text.length-(s.to.line-s.from.line)-1,f=a.ch;return a.line==s.to.line&&(f+=er(s).ch-s.to.ch),ue(p,f)}function Lf(a,s){for(var p=[],f=0;f<a.sel.ranges.length;f++){var v=a.sel.ranges[f];p.push(new wt(Py(v.anchor,s),Py(v.head,s)))}return ii(a.cm,p,a.sel.primIndex)}function Ly(a,s,p){return a.line==s.line?ue(p.line,a.ch-s.ch+p.ch):ue(p.line+(a.line-s.line),a.ch)}function _8(a,s,p){for(var f=[],v=ue(a.first,0),O=v,M=0;M<s.length;M++){var j=s[M],K=Ly(j.from,v,O),Z=Ly(er(j),v,O);if(v=j.to,O=Z,p=="around"){var ne=a.sel.ranges[M],re=Ee(ne.head,ne.anchor)<0;f[M]=new wt(re?Z:K,re?K:Z)}else f[M]=new wt(K,K)}return new Mn(f,a.sel.primIndex)}function jf(a){a.doc.mode=Ti(a.options,a.doc.modeOption),Sa(a)}function Sa(a){a.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Ea(a,100),a.state.modeGen++,a.curOp&&yn(a)}function jy(a,s){return s.from.ch==0&&s.to.ch==0&&he(s.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function zf(a,s,p,f){function v(Ue){return p?p[Ue]:null}function O(Ue,Fe,Ge){DL(Ue,Fe,Ge,f),Jt(Ue,"change",Ue,s)}function M(Ue,Fe){for(var Ge=[],nt=Ue;nt<Fe;++nt)Ge.push(new co(Z[nt],v(nt),f));return Ge}var j=s.from,K=s.to,Z=s.text,ne=Je(a,j.line),re=Je(a,K.line),ve=he(Z),me=v(Z.length-1),Ae=K.line-j.line;if(s.full)a.insert(0,M(0,Z.length)),a.remove(Z.length,a.size-Z.length);else if(jy(a,s)){var Te=M(0,Z.length-1);O(re,re.text,me),Ae&&a.remove(j.line,Ae),Te.length&&a.insert(j.line,Te)}else if(ne==re)if(Z.length==1)O(ne,ne.text.slice(0,j.ch)+ve+ne.text.slice(K.ch),me);else{var Oe=M(1,Z.length-1);Oe.push(new co(ve+ne.text.slice(K.ch),me,f)),O(ne,ne.text.slice(0,j.ch)+Z[0],v(0)),a.insert(j.line+1,Oe)}else if(Z.length==1)O(ne,ne.text.slice(0,j.ch)+Z[0]+re.text.slice(K.ch),v(0)),a.remove(j.line+1,Ae);else{O(ne,ne.text.slice(0,j.ch)+Z[0],v(0)),O(re,ve+re.text.slice(K.ch),me);var Ie=M(1,Z.length-1);Ae>1&&a.remove(j.line+1,Ae-1),a.insert(j.line+1,Ie)}Jt(a,"change",a,s)}function tr(a,s,p){function f(v,O,M){if(v.linked)for(var j=0;j<v.linked.length;++j){var K=v.linked[j];if(K.doc!=O){var Z=M&&K.sharedHist;p&&!Z||(s(K.doc,Z),f(K.doc,v,Z))}}}f(a,null,!0)}function zy(a,s){if(s.cm)throw new Error("This document is already in use.");a.doc=s,s.cm=a,Tf(a),jf(a),Uy(a),a.options.direction=s.direction,a.options.lineWrapping||vf(a),a.options.mode=s.modeOption,yn(a)}function Uy(a){(a.doc.direction=="rtl"?Q:L)(a.display.lineDiv,"CodeMirror-rtl")}function E8(a){Nn(a,function(){Uy(a),yn(a)})}function Is(a){this.done=[],this.undone=[],this.undoDepth=a?a.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a?a.maxGeneration:1}function Uf(a,s){var p={from:ht(s.from),to:er(s),text:Di(a,s.from,s.to)};return Gy(a,p,s.from.line,s.to.line+1),tr(a,function(f){return Gy(f,p,s.from.line,s.to.line+1)},!0),p}function Hy(a){for(;a.length;){var s=he(a);if(s.ranges)a.pop();else break}}function A8(a,s){if(s)return Hy(a.done),he(a.done);if(a.done.length&&!he(a.done).ranges)return he(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),he(a.done)}function Wy(a,s,p,f){var v=a.history;v.undone.length=0;var O=+new Date,M,j;if((v.lastOp==f||v.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&v.lastModTime>O-(a.cm?a.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(M=A8(v,v.lastOp==f)))j=he(M.changes),Ee(s.from,s.to)==0&&Ee(s.from,j.to)==0?j.to=er(s):M.changes.push(Uf(a,s));else{var K=he(v.done);for((!K||!K.ranges)&&Fs(a.sel,v.done),M={changes:[Uf(a,s)],generation:v.generation},v.done.push(M);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(p),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=O,v.lastOp=v.lastSelOp=f,v.lastOrigin=v.lastSelOrigin=s.origin,j||Qe(a,"historyAdded")}function S8(a,s,p,f){var v=s.charAt(0);return v=="*"||v=="+"&&p.ranges.length==f.ranges.length&&p.somethingSelected()==f.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function x8(a,s,p,f){var v=a.history,O=f&&f.origin;p==v.lastSelOp||O&&v.lastSelOrigin==O&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==O||S8(a,O,he(v.done),s))?v.done[v.done.length-1]=s:Fs(s,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=O,v.lastSelOp=p,f&&f.clearRedo!==!1&&Hy(v.undone)}function Fs(a,s){var p=he(s);p&&p.ranges&&p.equals(a)||s.push(a)}function Gy(a,s,p,f){var v=s["spans_"+a.id],O=0;a.iter(Math.max(a.first,p),Math.min(a.first+a.size,f),function(M){M.markedSpans&&((v||(v=s["spans_"+a.id]={}))[O]=M.markedSpans),++O})}function k8(a){if(!a)return null;for(var s,p=0;p<a.length;++p)a[p].marker.explicitlyCleared?s||(s=a.slice(0,p)):s&&s.push(a[p]);return s?s.length?s:null:a}function T8(a,s){var p=s["spans_"+a.id];if(!p)return null;for(var f=[],v=0;v<s.text.length;++v)f.push(k8(p[v]));return f}function Ky(a,s){var p=T8(a,s),f=pf(a,s);if(!p)return f;if(!f)return p;for(var v=0;v<p.length;++v){var O=p[v],M=f[v];if(O&&M){e:for(var j=0;j<M.length;++j){for(var K=M[j],Z=0;Z<O.length;++Z)if(O[Z].marker==K.marker)continue e;O.push(K)}}else M&&(p[v]=M)}return p}function yo(a,s,p){for(var f=[],v=0;v<a.length;++v){var O=a[v];if(O.ranges){f.push(p?Mn.prototype.deepCopy.call(O):O);continue}var M=O.changes,j=[];f.push({changes:j});for(var K=0;K<M.length;++K){var Z=M[K],ne=void 0;if(j.push({from:Z.from,to:Z.to,text:Z.text}),s)for(var re in Z)(ne=re.match(/^spans_(\d+)$/))&&se(s,Number(ne[1]))>-1&&(he(j)[re]=Z[re],delete Z[re])}}return f}function Hf(a,s,p,f){if(f){var v=a.anchor;if(p){var O=Ee(s,v)<0;O!=Ee(p,v)<0?(v=s,s=p):O!=Ee(s,p)<0&&(s=p)}return new wt(v,s)}else return new wt(p||s,s)}function Ms(a,s,p,f,v){v==null&&(v=a.cm&&(a.cm.display.shift||a.extend)),an(a,new Mn([Hf(a.sel.primary(),s,p,v)],0),f)}function Yy(a,s,p){for(var f=[],v=a.cm&&(a.cm.display.shift||a.extend),O=0;O<a.sel.ranges.length;O++)f[O]=Hf(a.sel.ranges[O],s[O],null,v);var M=ii(a.cm,f,a.sel.primIndex);an(a,M,p)}function Wf(a,s,p,f){var v=a.sel.ranges.slice(0);v[s]=p,an(a,ii(a.cm,v,a.sel.primIndex),f)}function Qy(a,s,p,f){an(a,qi(s,p),f)}function N8(a,s,p){var f={ranges:s.ranges,update:function(v){this.ranges=[];for(var O=0;O<v.length;O++)this.ranges[O]=new wt(ot(a,v[O].anchor),ot(a,v[O].head))},origin:p&&p.origin};return Qe(a,"beforeSelectionChange",a,f),a.cm&&Qe(a.cm,"beforeSelectionChange",a.cm,f),f.ranges!=s.ranges?ii(a.cm,f.ranges,f.ranges.length-1):s}function Jy(a,s,p){var f=a.history.done,v=he(f);v&&v.ranges?(f[f.length-1]=s,Ps(a,s,p)):an(a,s,p)}function an(a,s,p){Ps(a,s,p),x8(a,a.sel,a.cm?a.cm.curOp.id:NaN,p)}function Ps(a,s,p){(Bt(a,"beforeSelectionChange")||a.cm&&Bt(a.cm,"beforeSelectionChange"))&&(s=N8(a,s,p));var f=p&&p.bias||(Ee(s.primary().head,a.sel.primary().head)<0?-1:1);Xy(a,qy(a,s,f,!0)),!(p&&p.scroll===!1)&&a.cm&&a.cm.getOption("readOnly")!="nocursor"&&go(a.cm)}function Xy(a,s){s.equals(a.sel)||(a.sel=s,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,gn(a.cm)),Jt(a,"cursorActivity",a))}function Zy(a){Xy(a,qy(a,a.sel,null,!1))}function qy(a,s,p,f){for(var v,O=0;O<s.ranges.length;O++){var M=s.ranges[O],j=s.ranges.length==a.sel.ranges.length&&a.sel.ranges[O],K=Ls(a,M.anchor,j&&j.anchor,p,f),Z=M.head==M.anchor?K:Ls(a,M.head,j&&j.head,p,f);(v||K!=M.anchor||Z!=M.head)&&(v||(v=s.ranges.slice(0,O)),v[O]=new wt(K,Z))}return v?ii(a.cm,v,s.primIndex):s}function bo(a,s,p,f,v){var O=Je(a,s.line);if(O.markedSpans)for(var M=0;M<O.markedSpans.length;++M){var j=O.markedSpans[M],K=j.marker,Z="selectLeft"in K?!K.selectLeft:K.inclusiveLeft,ne="selectRight"in K?!K.selectRight:K.inclusiveRight;if((j.from==null||(Z?j.from<=s.ch:j.from<s.ch))&&(j.to==null||(ne?j.to>=s.ch:j.to>s.ch))){if(v&&(Qe(K,"beforeCursorEnter"),K.explicitlyCleared))if(O.markedSpans){--M;continue}else break;if(!K.atomic)continue;if(p){var re=K.find(f<0?1:-1),ve=void 0;if((f<0?ne:Z)&&(re=e0(a,re,-f,re&&re.line==s.line?O:null)),re&&re.line==s.line&&(ve=Ee(re,p))&&(f<0?ve<0:ve>0))return bo(a,re,s,f,v)}var me=K.find(f<0?-1:1);return(f<0?Z:ne)&&(me=e0(a,me,f,me.line==s.line?O:null)),me?bo(a,me,s,f,v):null}}return s}function Ls(a,s,p,f,v){var O=f||1,M=bo(a,s,p,O,v)||!v&&bo(a,s,p,O,!0)||bo(a,s,p,-O,v)||!v&&bo(a,s,p,-O,!0);return M||(a.cantEdit=!0,ue(a.first,0))}function e0(a,s,p,f){return p<0&&s.ch==0?s.line>a.first?ot(a,ue(s.line-1)):null:p>0&&s.ch==(f||Je(a,s.line)).text.length?s.line<a.first+a.size-1?ue(s.line+1,0):null:new ue(s.line,s.ch+p)}function t0(a){a.setSelection(ue(a.firstLine(),0),ue(a.lastLine()),D)}function n0(a,s,p){var f={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return f.canceled=!0}};return p&&(f.update=function(v,O,M,j){v&&(f.from=ot(a,v)),O&&(f.to=ot(a,O)),M&&(f.text=M),j!==void 0&&(f.origin=j)}),Qe(a,"beforeChange",a,f),a.cm&&Qe(a.cm,"beforeChange",a.cm,f),f.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:f.from,to:f.to,text:f.text,origin:f.origin}}function wo(a,s,p){if(a.cm){if(!a.cm.curOp)return Xt(a.cm,wo)(a,s,p);if(a.cm.state.suppressEdits)return}if(!((Bt(a,"beforeChange")||a.cm&&Bt(a.cm,"beforeChange"))&&(s=n0(a,s,!0),!s))){var f=Kv&&!p&&xL(a,s.from,s.to);if(f)for(var v=f.length-1;v>=0;--v)i0(a,{from:f[v].from,to:f[v].to,text:v?[""]:s.text,origin:s.origin});else i0(a,s)}}function i0(a,s){if(!(s.text.length==1&&s.text[0]==""&&Ee(s.from,s.to)==0)){var p=Lf(a,s);Wy(a,s,p,a.cm?a.cm.curOp.id:NaN),xa(a,s,p,pf(a,s));var f=[];tr(a,function(v,O){!O&&se(f,v.history)==-1&&(l0(v.history,s),f.push(v.history)),xa(v,s,null,pf(v,s))})}}function js(a,s,p){var f=a.cm&&a.cm.state.suppressEdits;if(!(f&&!p)){for(var v=a.history,O,M=a.sel,j=s=="undo"?v.done:v.undone,K=s=="undo"?v.undone:v.done,Z=0;Z<j.length&&(O=j[Z],!(p?O.ranges&&!O.equals(a.sel):!O.ranges));Z++);if(Z!=j.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(O=j.pop(),O.ranges){if(Fs(O,K),p&&!O.equals(a.sel)){an(a,O,{clearRedo:!1});return}M=O}else if(f){j.push(O);return}else break;var ne=[];Fs(M,K),K.push({changes:ne,generation:v.generation}),v.generation=O.generation||++v.maxGeneration;for(var re=Bt(a,"beforeChange")||a.cm&&Bt(a.cm,"beforeChange"),ve=function(Te){var Oe=O.changes[Te];if(Oe.origin=s,re&&!n0(a,Oe,!1))return j.length=0,{};ne.push(Uf(a,Oe));var Ie=Te?Lf(a,Oe):he(j);xa(a,Oe,Ie,Ky(a,Oe)),!Te&&a.cm&&a.cm.scrollIntoView({from:Oe.from,to:er(Oe)});var Ue=[];tr(a,function(Fe,Ge){!Ge&&se(Ue,Fe.history)==-1&&(l0(Fe.history,Oe),Ue.push(Fe.history)),xa(Fe,Oe,null,Ky(Fe,Oe))})},me=O.changes.length-1;me>=0;--me){var Ae=ve(me);if(Ae)return Ae.v}}}}function r0(a,s){if(s!=0&&(a.first+=s,a.sel=new Mn(Se(a.sel.ranges,function(v){return new wt(ue(v.anchor.line+s,v.anchor.ch),ue(v.head.line+s,v.head.ch))}),a.sel.primIndex),a.cm)){yn(a.cm,a.first,a.first-s,s);for(var p=a.cm.display,f=p.viewFrom;f<p.viewTo;f++)Xi(a.cm,f,"gutter")}}function xa(a,s,p,f){if(a.cm&&!a.cm.curOp)return Xt(a.cm,xa)(a,s,p,f);if(s.to.line<a.first){r0(a,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>a.lastLine())){if(s.from.line<a.first){var v=s.text.length-1-(a.first-s.from.line);r0(a,v),s={from:ue(a.first,0),to:ue(s.to.line+v,s.to.ch),text:[he(s.text)],origin:s.origin}}var O=a.lastLine();s.to.line>O&&(s={from:s.from,to:ue(O,Je(a,O).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Di(a,s.from,s.to),p||(p=Lf(a,s)),a.cm?D8(a.cm,s,f):zf(a,s,f),Ps(a,p,D),a.cantEdit&&Ls(a,ue(a.firstLine(),0))&&(a.cantEdit=!1)}}function D8(a,s,p){var f=a.doc,v=a.display,O=s.from,M=s.to,j=!1,K=O.line;a.options.lineWrapping||(K=bt(ti(Je(f,O.line))),f.iter(K,M.line+1,function(me){if(me==v.maxLine)return j=!0,!0})),f.sel.contains(s.from,s.to)>-1&&gn(a),zf(f,s,p,Ey(a)),a.options.lineWrapping||(f.iter(K,O.line+s.text.length,function(me){var Ae=As(me);Ae>v.maxLineLength&&(v.maxLine=me,v.maxLineLength=Ae,v.maxLineChanged=!0,j=!1)}),j&&(a.curOp.updateMaxLine=!0)),bL(f,O.line),Ea(a,400);var Z=s.text.length-(M.line-O.line)-1;s.full?yn(a):O.line==M.line&&s.text.length==1&&!jy(a.doc,s)?Xi(a,O.line,"text"):yn(a,O.line,M.line+1,Z);var ne=Bt(a,"changes"),re=Bt(a,"change");if(re||ne){var ve={from:O,to:M,text:s.text,removed:s.removed,origin:s.origin};re&&Jt(a,"change",a,ve),ne&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(ve)}a.display.selForContextMenu=null}function Co(a,s,p,f,v){var O;f||(f=p),Ee(f,p)<0&&(O=[f,p],p=O[0],f=O[1]),typeof s=="string"&&(s=a.splitLines(s)),wo(a,{from:p,to:f,text:s,origin:v})}function o0(a,s,p,f){p<a.line?a.line+=f:s<a.line&&(a.line=s,a.ch=0)}function a0(a,s,p,f){for(var v=0;v<a.length;++v){var O=a[v],M=!0;if(O.ranges){O.copied||(O=a[v]=O.deepCopy(),O.copied=!0);for(var j=0;j<O.ranges.length;j++)o0(O.ranges[j].anchor,s,p,f),o0(O.ranges[j].head,s,p,f);continue}for(var K=0;K<O.changes.length;++K){var Z=O.changes[K];if(p<Z.from.line)Z.from=ue(Z.from.line+f,Z.from.ch),Z.to=ue(Z.to.line+f,Z.to.ch);else if(s<=Z.to.line){M=!1;break}}M||(a.splice(0,v+1),v=0)}}function l0(a,s){var p=s.from.line,f=s.to.line,v=s.text.length-(f-p)-1;a0(a.done,p,f,v),a0(a.undone,p,f,v)}function ka(a,s,p,f){var v=s,O=s;return typeof s=="number"?O=Je(a,Fn(a,s)):v=bt(s),v==null?null:(f(O,v)&&a.cm&&Xi(a.cm,v,p),O)}function Ta(a){this.lines=a,this.parent=null;for(var s=0,p=0;p<a.length;++p)a[p].parent=this,s+=a[p].height;this.height=s}Ta.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,s){for(var p=a,f=a+s;p<f;++p){var v=this.lines[p];this.height-=v.height,OL(v),Jt(v,"delete")}this.lines.splice(a,s)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,s,p){this.height+=p,this.lines=this.lines.slice(0,a).concat(s).concat(this.lines.slice(a));for(var f=0;f<s.length;++f)s[f].parent=this},iterN:function(a,s,p){for(var f=a+s;a<f;++a)if(p(this.lines[a]))return!0}};function Na(a){this.children=a;for(var s=0,p=0,f=0;f<a.length;++f){var v=a[f];s+=v.chunkSize(),p+=v.height,v.parent=this}this.size=s,this.height=p,this.parent=null}Na.prototype={chunkSize:function(){return this.size},removeInner:function(a,s){this.size-=s;for(var p=0;p<this.children.length;++p){var f=this.children[p],v=f.chunkSize();if(a<v){var O=Math.min(s,v-a),M=f.height;if(f.removeInner(a,O),this.height-=M-f.height,v==O&&(this.children.splice(p--,1),f.parent=null),(s-=O)==0)break;a=0}else a-=v}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof Ta))){var j=[];this.collapse(j),this.children=[new Ta(j)],this.children[0].parent=this}},collapse:function(a){for(var s=0;s<this.children.length;++s)this.children[s].collapse(a)},insertInner:function(a,s,p){this.size+=s.length,this.height+=p;for(var f=0;f<this.children.length;++f){var v=this.children[f],O=v.chunkSize();if(a<=O){if(v.insertInner(a,s,p),v.lines&&v.lines.length>50){for(var M=v.lines.length%25+25,j=M;j<v.lines.length;){var K=new Ta(v.lines.slice(j,j+=25));v.height-=K.height,this.children.splice(++f,0,K),K.parent=this}v.lines=v.lines.slice(0,M),this.maybeSpill()}break}a-=O}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var s=a.children.splice(a.children.length-5,5),p=new Na(s);if(a.parent){a.size-=p.size,a.height-=p.height;var v=se(a.parent.children,a);a.parent.children.splice(v+1,0,p)}else{var f=new Na(a.children);f.parent=a,a.children=[f,p],a=f}p.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,s,p){for(var f=0;f<this.children.length;++f){var v=this.children[f],O=v.chunkSize();if(a<O){var M=Math.min(s,O-a);if(v.iterN(a,M,p))return!0;if((s-=M)==0)break;a=0}else a-=O}}};var Da=function(a,s,p){if(p)for(var f in p)p.hasOwnProperty(f)&&(this[f]=p[f]);this.doc=a,this.node=s};Da.prototype.clear=function(){var a=this.doc.cm,s=this.line.widgets,p=this.line,f=bt(p);if(!(f==null||!s)){for(var v=0;v<s.length;++v)s[v]==this&&s.splice(v--,1);s.length||(p.widgets=null);var O=ga(this);Kn(p,Math.max(0,p.height-O)),a&&(Nn(a,function(){s0(a,p,-O),Xi(a,f,"widget")}),Jt(a,"lineWidgetCleared",a,this,f))}},Da.prototype.changed=function(){var a=this,s=this.height,p=this.doc.cm,f=this.line;this.height=null;var v=ga(this)-s;!v||(Ji(this.doc,f)||Kn(f,f.height+v),p&&Nn(p,function(){p.curOp.forceUpdate=!0,s0(p,f,v),Jt(p,"lineWidgetChanged",p,a,bt(f))}))},Tt(Da);function s0(a,s,p){Vi(s)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Rf(a,p)}function O8(a,s,p,f){var v=new Da(a,p,f),O=a.cm;return O&&v.noHScroll&&(O.display.alignWidgets=!0),ka(a,s,"widget",function(M){var j=M.widgets||(M.widgets=[]);if(v.insertAt==null?j.push(v):j.splice(Math.min(j.length,Math.max(0,v.insertAt)),0,v),v.line=M,O&&!Ji(a,M)){var K=Vi(M)<a.scrollTop;Kn(M,M.height+ga(v)),K&&Rf(O,v.height),O.curOp.forceUpdate=!0}return!0}),O&&Jt(O,"lineWidgetAdded",O,v,typeof s=="number"?s:bt(s)),v}var d0=0,nr=function(a,s){this.lines=[],this.type=s,this.doc=a,this.id=++d0};nr.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,s=a&&!a.curOp;if(s&&Ar(a),Bt(this,"clear")){var p=this.find();p&&Jt(this,"clear",p.from,p.to)}for(var f=null,v=null,O=0;O<this.lines.length;++O){var M=this.lines[O],j=pa(M.markedSpans,this);a&&!this.collapsed?Xi(a,bt(M),"text"):a&&(j.to!=null&&(v=bt(M)),j.from!=null&&(f=bt(M))),M.markedSpans=_L(M.markedSpans,j),j.from==null&&this.collapsed&&!Ji(this.doc,M)&&a&&Kn(M,po(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var K=0;K<this.lines.length;++K){var Z=ti(this.lines[K]),ne=As(Z);ne>a.display.maxLineLength&&(a.display.maxLine=Z,a.display.maxLineLength=ne,a.display.maxLineChanged=!0)}f!=null&&a&&this.collapsed&&yn(a,f,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Zy(a.doc)),a&&Jt(a,"markerCleared",a,this,f,v),s&&Sr(a),this.parent&&this.parent.clear()}},nr.prototype.find=function(a,s){a==null&&this.type=="bookmark"&&(a=1);for(var p,f,v=0;v<this.lines.length;++v){var O=this.lines[v],M=pa(O.markedSpans,this);if(M.from!=null&&(p=ue(s?O:bt(O),M.from),a==-1))return p;if(M.to!=null&&(f=ue(s?O:bt(O),M.to),a==1))return f}return p&&{from:p,to:f}},nr.prototype.changed=function(){var a=this,s=this.find(-1,!0),p=this,f=this.doc.cm;!s||!f||Nn(f,function(){var v=s.line,O=bt(s.line),M=Cf(f,O);if(M&&(my(M),f.curOp.selectionChanged=f.curOp.forceUpdate=!0),f.curOp.updateMaxLine=!0,!Ji(p.doc,v)&&p.height!=null){var j=p.height;p.height=null;var K=ga(p)-j;K&&Kn(v,v.height+K)}Jt(f,"markerChanged",f,a)})},nr.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||se(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},nr.prototype.detachLine=function(a){if(this.lines.splice(se(this.lines,a),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},Tt(nr);function _o(a,s,p,f,v){if(f&&f.shared)return V8(a,s,p,f,v);if(a.cm&&!a.cm.curOp)return Xt(a.cm,_o)(a,s,p,f,v);var O=new nr(a,v),M=Ee(s,p);if(f&&ce(f,O,!1),M>0||M==0&&O.clearWhenEmpty!==!1)return O;if(O.replacedWith&&(O.collapsed=!0,O.widgetNode=z("span",[O.replacedWith],"CodeMirror-widget"),f.handleMouseEvents||O.widgetNode.setAttribute("cm-ignore-events","true"),f.insertLeft&&(O.widgetNode.insertLeft=!0)),O.collapsed){if(qv(a,s.line,s,p,O)||s.line!=p.line&&qv(a,p.line,s,p,O))throw new Error("Inserting collapsed marker partially overlapping an existing one");CL()}O.addToHistory&&Wy(a,{from:s,to:p,origin:"markText"},a.sel,NaN);var j=s.line,K=a.cm,Z;if(a.iter(j,p.line+1,function(re){K&&O.collapsed&&!K.options.lineWrapping&&ti(re)==K.display.maxLine&&(Z=!0),O.collapsed&&j!=s.line&&Kn(re,0),EL(re,new ws(O,j==s.line?s.ch:null,j==p.line?p.ch:null),a.cm&&a.cm.curOp),++j}),O.collapsed&&a.iter(s.line,p.line+1,function(re){Ji(a,re)&&Kn(re,0)}),O.clearOnEnter&&Ce(O,"beforeCursorEnter",function(){return O.clear()}),O.readOnly&&(wL(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),O.collapsed&&(O.id=++d0,O.atomic=!0),K){if(Z&&(K.curOp.updateMaxLine=!0),O.collapsed)yn(K,s.line,p.line+1);else if(O.className||O.startStyle||O.endStyle||O.css||O.attributes||O.title)for(var ne=s.line;ne<=p.line;ne++)Xi(K,ne,"text");O.atomic&&Zy(K.doc),Jt(K,"markerAdded",K,O)}return O}var Oa=function(a,s){this.markers=a,this.primary=s;for(var p=0;p<a.length;++p)a[p].parent=this};Oa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Jt(this,"clear")}},Oa.prototype.find=function(a,s){return this.primary.find(a,s)},Tt(Oa);function V8(a,s,p,f,v){f=ce(f),f.shared=!1;var O=[_o(a,s,p,f,v)],M=O[0],j=f.widgetNode;return tr(a,function(K){j&&(f.widgetNode=j.cloneNode(!0)),O.push(_o(K,ot(K,s),ot(K,p),f,v));for(var Z=0;Z<K.linked.length;++Z)if(K.linked[Z].isParent)return;M=he(O)}),new Oa(O,M)}function c0(a){return a.findMarks(ue(a.first,0),a.clipPos(ue(a.lastLine())),function(s){return s.parent})}function B8(a,s){for(var p=0;p<s.length;p++){var f=s[p],v=f.find(),O=a.clipPos(v.from),M=a.clipPos(v.to);if(Ee(O,M)){var j=_o(a,O,M,f.primary,f.primary.type);f.markers.push(j),j.parent=f}}}function R8(a){for(var s=function(f){var v=a[f],O=[v.primary.doc];tr(v.primary.doc,function(K){return O.push(K)});for(var M=0;M<v.markers.length;M++){var j=v.markers[M];se(O,j.doc)==-1&&(j.parent=null,v.markers.splice(M--,1))}},p=0;p<a.length;p++)s(p)}var $8=0,bn=function(a,s,p,f,v){if(!(this instanceof bn))return new bn(a,s,p,f,v);p==null&&(p=0),Na.call(this,[new Ta([new co("",null)])]),this.first=p,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=p;var O=ue(p,0);this.sel=qi(O),this.history=new Is(null),this.id=++$8,this.modeOption=s,this.lineSep=f,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),zf(this,{from:O,to:O,text:a}),an(this,qi(O),D)};bn.prototype=fe(Na.prototype,{constructor:bn,iter:function(a,s,p){p?this.iterN(a-this.first,s-a,p):this.iterN(this.first,this.first+this.size,a)},insert:function(a,s){for(var p=0,f=0;f<s.length;++f)p+=s[f].height;this.insertInner(a-this.first,s,p)},remove:function(a,s){this.removeInner(a-this.first,s)},getValue:function(a){var s=so(this,this.first,this.first+this.size);return a===!1?s:s.join(a||this.lineSeparator())},setValue:Zt(function(a){var s=ue(this.first,0),p=this.first+this.size-1;wo(this,{from:s,to:ue(p,Je(this,p).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&ba(this.cm,0,0),an(this,qi(s),D)}),replaceRange:function(a,s,p,f){s=ot(this,s),p=p?ot(this,p):s,Co(this,a,s,p,f)},getRange:function(a,s,p){var f=Di(this,ot(this,a),ot(this,s));return p===!1?f:p===""?f.join(""):f.join(p||this.lineSeparator())},getLine:function(a){var s=this.getLineHandle(a);return s&&s.text},getLineHandle:function(a){if(te(this,a))return Je(this,a)},getLineNumber:function(a){return bt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Je(this,a)),ti(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return ot(this,a)},getCursor:function(a){var s=this.sel.primary(),p;return a==null||a=="head"?p=s.head:a=="anchor"?p=s.anchor:a=="end"||a=="to"||a===!1?p=s.to():p=s.from(),p},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zt(function(a,s,p){Qy(this,ot(this,typeof a=="number"?ue(a,s||0):a),null,p)}),setSelection:Zt(function(a,s,p){Qy(this,ot(this,a),ot(this,s||a),p)}),extendSelection:Zt(function(a,s,p){Ms(this,ot(this,a),s&&ot(this,s),p)}),extendSelections:Zt(function(a,s){Yy(this,Pv(this,a),s)}),extendSelectionsBy:Zt(function(a,s){var p=Se(this.sel.ranges,a);Yy(this,Pv(this,p),s)}),setSelections:Zt(function(a,s,p){if(!!a.length){for(var f=[],v=0;v<a.length;v++)f[v]=new wt(ot(this,a[v].anchor),ot(this,a[v].head||a[v].anchor));s==null&&(s=Math.min(a.length-1,this.sel.primIndex)),an(this,ii(this.cm,f,s),p)}}),addSelection:Zt(function(a,s,p){var f=this.sel.ranges.slice(0);f.push(new wt(ot(this,a),ot(this,s||a))),an(this,ii(this.cm,f,f.length-1),p)}),getSelection:function(a){for(var s=this.sel.ranges,p,f=0;f<s.length;f++){var v=Di(this,s[f].from(),s[f].to());p=p?p.concat(v):v}return a===!1?p:p.join(a||this.lineSeparator())},getSelections:function(a){for(var s=[],p=this.sel.ranges,f=0;f<p.length;f++){var v=Di(this,p[f].from(),p[f].to());a!==!1&&(v=v.join(a||this.lineSeparator())),s[f]=v}return s},replaceSelection:function(a,s,p){for(var f=[],v=0;v<this.sel.ranges.length;v++)f[v]=a;this.replaceSelections(f,s,p||"+input")},replaceSelections:Zt(function(a,s,p){for(var f=[],v=this.sel,O=0;O<v.ranges.length;O++){var M=v.ranges[O];f[O]={from:M.from(),to:M.to(),text:this.splitLines(a[O]),origin:p}}for(var j=s&&s!="end"&&_8(this,f,s),K=f.length-1;K>=0;K--)wo(this,f[K]);j?Jy(this,j):this.cm&&go(this.cm)}),undo:Zt(function(){js(this,"undo")}),redo:Zt(function(){js(this,"redo")}),undoSelection:Zt(function(){js(this,"undo",!0)}),redoSelection:Zt(function(){js(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,s=0,p=0,f=0;f<a.done.length;f++)a.done[f].ranges||++s;for(var v=0;v<a.undone.length;v++)a.undone[v].ranges||++p;return{undo:s,redo:p}},clearHistory:function(){var a=this;this.history=new Is(this.history),tr(this,function(s){return s.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:yo(this.history.done),undone:yo(this.history.undone)}},setHistory:function(a){var s=this.history=new Is(this.history);s.done=yo(a.done.slice(0),null,!0),s.undone=yo(a.undone.slice(0),null,!0)},setGutterMarker:Zt(function(a,s,p){return ka(this,a,"gutter",function(f){var v=f.gutterMarkers||(f.gutterMarkers={});return v[s]=p,!p&&et(v)&&(f.gutterMarkers=null),!0})}),clearGutter:Zt(function(a){var s=this;this.iter(function(p){p.gutterMarkers&&p.gutterMarkers[a]&&ka(s,p,"gutter",function(){return p.gutterMarkers[a]=null,et(p.gutterMarkers)&&(p.gutterMarkers=null),!0})})}),lineInfo:function(a){var s;if(typeof a=="number"){if(!te(this,a)||(s=a,a=Je(this,a),!a))return null}else if(s=bt(a),s==null)return null;return{line:s,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Zt(function(a,s,p){return ka(this,a,s=="gutter"?"gutter":"class",function(f){var v=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!f[v])f[v]=p;else{if(B(p).test(f[v]))return!1;f[v]+=" "+p}return!0})}),removeLineClass:Zt(function(a,s,p){return ka(this,a,s=="gutter"?"gutter":"class",function(f){var v=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",O=f[v];if(O)if(p==null)f[v]=null;else{var M=O.match(B(p));if(!M)return!1;var j=M.index+M[0].length;f[v]=O.slice(0,M.index)+(!M.index||j==O.length?"":" ")+O.slice(j)||null}else return!1;return!0})}),addLineWidget:Zt(function(a,s,p){return O8(this,a,s,p)}),removeLineWidget:function(a){a.clear()},markText:function(a,s,p){return _o(this,ot(this,a),ot(this,s),p,p&&p.type||"range")},setBookmark:function(a,s){var p={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return a=ot(this,a),_o(this,a,a,p,"bookmark")},findMarksAt:function(a){a=ot(this,a);var s=[],p=Je(this,a.line).markedSpans;if(p)for(var f=0;f<p.length;++f){var v=p[f];(v.from==null||v.from<=a.ch)&&(v.to==null||v.to>=a.ch)&&s.push(v.marker.parent||v.marker)}return s},findMarks:function(a,s,p){a=ot(this,a),s=ot(this,s);var f=[],v=a.line;return this.iter(a.line,s.line+1,function(O){var M=O.markedSpans;if(M)for(var j=0;j<M.length;j++){var K=M[j];!(K.to!=null&&v==a.line&&a.ch>=K.to||K.from==null&&v!=a.line||K.from!=null&&v==s.line&&K.from>=s.ch)&&(!p||p(K.marker))&&f.push(K.marker.parent||K.marker)}++v}),f},getAllMarks:function(){var a=[];return this.iter(function(s){var p=s.markedSpans;if(p)for(var f=0;f<p.length;++f)p[f].from!=null&&a.push(p[f].marker)}),a},posFromIndex:function(a){var s,p=this.first,f=this.lineSeparator().length;return this.iter(function(v){var O=v.text.length+f;if(O>a)return s=a,!0;a-=O,++p}),ot(this,ue(p,s))},indexFromPos:function(a){a=ot(this,a);var s=a.ch;if(a.line<this.first||a.ch<0)return 0;var p=this.lineSeparator().length;return this.iter(this.first,a.line,function(f){s+=f.text.length+p}),s},copy:function(a){var s=new bn(so(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,a&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(a){a||(a={});var s=this.first,p=this.first+this.size;a.from!=null&&a.from>s&&(s=a.from),a.to!=null&&a.to<p&&(p=a.to);var f=new bn(so(this,s,p),a.mode||this.modeOption,s,this.lineSep,this.direction);return a.sharedHist&&(f.history=this.history),(this.linked||(this.linked=[])).push({doc:f,sharedHist:a.sharedHist}),f.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],B8(f,c0(this)),f},unlinkDoc:function(a){if(a instanceof Ot&&(a=a.doc),this.linked)for(var s=0;s<this.linked.length;++s){var p=this.linked[s];if(p.doc==a){this.linked.splice(s,1),a.unlinkDoc(this),R8(c0(this));break}}if(a.history==this.history){var f=[a.id];tr(a,function(v){return f.push(v.id)},!0),a.history=new Is(null),a.history.done=yo(this.history.done,f),a.history.undone=yo(this.history.undone,f)}},iterLinkedDocs:function(a){tr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):ca(a)},lineSeparator:function(){return this.lineSep||`
|
||
`},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":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},$i.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},$i.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},$i.default=N?$i.macDefault:$i.pcDefault;function z8(a){var s=a.split(/-(?!$)/);a=s[s.length-1];for(var p,f,v,O,M=0;M<s.length-1;M++){var j=s[M];if(/^(cmd|meta|m)$/i.test(j))O=!0;else if(/^a(lt)?$/i.test(j))p=!0;else if(/^(c|ctrl|control)$/i.test(j))f=!0;else if(/^s(hift)?$/i.test(j))v=!0;else throw new Error("Unrecognized modifier name: "+j)}return p&&(a="Alt-"+a),f&&(a="Ctrl-"+a),O&&(a="Cmd-"+a),v&&(a="Shift-"+a),a}function U8(a){var s={};for(var p in a)if(a.hasOwnProperty(p)){var f=a[p];if(/^(name|fallthrough|(de|at)tach)$/.test(p))continue;if(f=="..."){delete a[p];continue}for(var v=Se(p.split(" "),z8),O=0;O<v.length;O++){var M=void 0,j=void 0;O==v.length-1?(j=v.join(" "),M=f):(j=v.slice(0,O+1).join(" "),M="...");var K=s[j];if(!K)s[j]=M;else if(K!=M)throw new Error("Inconsistent bindings for "+j)}delete a[p]}for(var Z in s)a[Z]=s[Z];return a}function Eo(a,s,p,f){s=Us(s);var v=s.call?s.call(a,f):s[a];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&p(v))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return Eo(a,s.fallthrough,p,f);for(var O=0;O<s.fallthrough.length;O++){var M=Eo(a,s.fallthrough[O],p,f);if(M)return M}}}function m0(a){var s=typeof a=="string"?a:ir[a.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function g0(a,s,p){var f=a;return s.altKey&&f!="Alt"&&(a="Alt-"+a),(P?s.metaKey:s.ctrlKey)&&f!="Ctrl"&&(a="Ctrl-"+a),(P?s.ctrlKey:s.metaKey)&&f!="Mod"&&(a="Cmd-"+a),!p&&s.shiftKey&&f!="Shift"&&(a="Shift-"+a),a}function v0(a,s){if(w&&a.keyCode==34&&a.char)return!1;var p=ir[a.keyCode];return p==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(p=a.code),g0(p,a,s))}function Us(a){return typeof a=="string"?$i[a]:a}function Ao(a,s){for(var p=a.doc.sel.ranges,f=[],v=0;v<p.length;v++){for(var O=s(p[v]);f.length&&Ee(O.from,he(f).to)<=0;){var M=f.pop();if(Ee(M.from,O.from)<0){O.from=M.from;break}}f.push(O)}Nn(a,function(){for(var j=f.length-1;j>=0;j--)Co(a.doc,"",f[j].from,f[j].to,"+delete");go(a)})}function Gf(a,s,p){var f=Ke(a.text,s+p,p);return f<0||f>a.text.length?null:f}function Kf(a,s,p){var f=Gf(a,s.ch,p);return f==null?null:new ue(s.line,f,p<0?"after":"before")}function Yf(a,s,p,f,v){if(a){s.doc.direction=="rtl"&&(v=-v);var O=tt(p,s.doc.direction);if(O){var M=v<0?he(O):O[0],j=v<0==(M.level==1),K=j?"after":"before",Z;if(M.level>0||s.doc.direction=="rtl"){var ne=fo(s,p);Z=v<0?p.text.length-1:0;var re=wi(s,ne,Z).top;Z=Re(function(ve){return wi(s,ne,ve).top==re},v<0==(M.level==1)?M.from:M.to-1,Z),K=="before"&&(Z=Gf(p,Z,1))}else Z=v<0?M.to:M.from;return new ue(f,Z,K)}}return new ue(f,v<0?p.text.length:0,v<0?"before":"after")}function H8(a,s,p,f){var v=tt(s,a.doc.direction);if(!v)return Kf(s,p,f);p.ch>=s.text.length?(p.ch=s.text.length,p.sticky="before"):p.ch<=0&&(p.ch=0,p.sticky="after");var O=Ne(v,p.ch,p.sticky),M=v[O];if(a.doc.direction=="ltr"&&M.level%2==0&&(f>0?M.to>p.ch:M.from<p.ch))return Kf(s,p,f);var j=function(Ie,Ue){return Gf(s,Ie instanceof ue?Ie.ch:Ie,Ue)},K,Z=function(Ie){return a.options.lineWrapping?(K=K||fo(a,s),_y(a,s,K,Ie)):{begin:0,end:s.text.length}},ne=Z(p.sticky=="before"?j(p,-1):p.ch);if(a.doc.direction=="rtl"||M.level==1){var re=M.level==1==f<0,ve=j(p,re?1:-1);if(ve!=null&&(re?ve<=M.to&&ve<=ne.end:ve>=M.from&&ve>=ne.begin)){var me=re?"before":"after";return new ue(p.line,ve,me)}}var Ae=function(Ie,Ue,Fe){for(var Ge=function(kt,qt){return qt?new ue(p.line,j(kt,1),"before"):new ue(p.line,kt,"after")};Ie>=0&&Ie<v.length;Ie+=Ue){var nt=v[Ie],qe=Ue>0==(nt.level!=1),pt=qe?Fe.begin:j(Fe.end,-1);if(nt.from<=pt&&pt<nt.to||(pt=qe?nt.from:j(nt.to,-1),Fe.begin<=pt&&pt<Fe.end))return Ge(pt,qe)}},Te=Ae(O+f,f,ne);if(Te)return Te;var Oe=f>0?ne.end:j(ne.begin,-1);return Oe!=null&&!(f>0&&Oe==s.text.length)&&(Te=Ae(f>0?0:v.length-1,f,Z(Oe)),Te)?Te:null}var Ra={selectAll:t0,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),D)},killLine:function(a){return Ao(a,function(s){if(s.empty()){var p=Je(a.doc,s.head.line).text.length;return s.head.ch==p&&s.head.line<a.lastLine()?{from:s.head,to:ue(s.head.line+1,0)}:{from:s.head,to:ue(s.head.line,p)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(a){return Ao(a,function(s){return{from:ue(s.from().line,0),to:ot(a.doc,ue(s.to().line+1,0))}})},delLineLeft:function(a){return Ao(a,function(s){return{from:ue(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(a){return Ao(a,function(s){var p=a.charCoords(s.head,"div").top+5,f=a.coordsChar({left:0,top:p},"div");return{from:f,to:s.from()}})},delWrappedLineRight:function(a){return Ao(a,function(s){var p=a.charCoords(s.head,"div").top+5,f=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div");return{from:s.from(),to:f}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ue(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ue(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(s){return y0(a,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(s){return b0(a,s.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(s){return W8(a,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(s){var p=a.cursorCoords(s.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div")},Y)},goLineLeft:function(a){return a.extendSelectionsBy(function(s){var p=a.cursorCoords(s.head,"div").top+5;return a.coordsChar({left:0,top:p},"div")},Y)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(s){var p=a.cursorCoords(s.head,"div").top+5,f=a.coordsChar({left:0,top:p},"div");return f.ch<a.getLine(f.line).search(/\S/)?b0(a,s.head):f},Y)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var s=[],p=a.listSelections(),f=a.options.tabSize,v=0;v<p.length;v++){var O=p[v].from(),M=de(a.getLine(O.line),O.ch,f);s.push(oe(f-M%f))}a.replaceSelections(s)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Nn(a,function(){for(var s=a.listSelections(),p=[],f=0;f<s.length;f++)if(!!s[f].empty()){var v=s[f].head,O=Je(a.doc,v.line).text;if(O){if(v.ch==O.length&&(v=new ue(v.line,v.ch-1)),v.ch>0)v=new ue(v.line,v.ch+1),a.replaceRange(O.charAt(v.ch-1)+O.charAt(v.ch-2),ue(v.line,v.ch-2),v,"+transpose");else if(v.line>a.doc.first){var M=Je(a.doc,v.line-1).text;M&&(v=new ue(v.line,1),a.replaceRange(O.charAt(0)+a.doc.lineSeparator()+M.charAt(M.length-1),ue(v.line-1,M.length-1),v,"+transpose"))}}p.push(new wt(v,v))}a.setSelections(p)})},newlineAndIndent:function(a){return Nn(a,function(){for(var s=a.listSelections(),p=s.length-1;p>=0;p--)a.replaceRange(a.doc.lineSeparator(),s[p].anchor,s[p].head,"+input");s=a.listSelections();for(var f=0;f<s.length;f++)a.indentLine(s[f].from().line,null,!0);go(a)})},openLine:function(a){return a.replaceSelection(`
|
||
`,"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.unit==null){var O=V?p.shiftKey&&p.metaKey:p.altKey;v.unit=O?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(v.extend==null||a.doc.extend)&&(v.extend=a.doc.extend||p.shiftKey),v.addNew==null&&(v.addNew=N?p.metaKey:p.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(N?p.altKey:p.ctrlKey)),v}function e5(a,s,p,f){u?setTimeout(be(xy,a),0):a.curOp.focus=J(X(a));var v=q8(a,p,f),O=a.doc.sel,M;a.options.dragDrop&&df&&!a.isReadOnly()&&p=="single"&&(M=O.contains(s))>-1&&(Ee((M=O.ranges[M]).from(),s)<0||s.xRel>0)&&(Ee(M.to(),s)>0||s.xRel<0)?t5(a,f,s,v):n5(a,f,s,v)}function t5(a,s,p,f){var v=a.display,O=!1,M=Xt(a,function(Z){h&&(v.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:Of(a)),Ye(v.wrapper.ownerDocument,"mouseup",M),Ye(v.wrapper.ownerDocument,"mousemove",j),Ye(v.scroller,"dragstart",K),Ye(v.scroller,"drop",M),O||(yt(Z),f.addNew||Ms(a.doc,p,null,null,f.extend),h&&!E||u&&m==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),j=function(Z){O=O||Math.abs(s.clientX-Z.clientX)+Math.abs(s.clientY-Z.clientY)>=10},K=function(){return O=!0};h&&(v.scroller.draggable=!0),a.state.draggingText=M,M.copy=!f.moveOnDrag,Ce(v.wrapper.ownerDocument,"mouseup",M),Ce(v.wrapper.ownerDocument,"mousemove",j),Ce(v.scroller,"dragstart",K),Ce(v.scroller,"drop",M),a.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function x0(a,s,p){if(p=="char")return new wt(s,s);if(p=="word")return a.findWordAt(s);if(p=="line")return new wt(ue(s.line,0),ot(a.doc,ue(s.line+1,0)));var f=p(a,s);return new wt(f.from,f.to)}function n5(a,s,p,f){u&&Of(a);var v=a.display,O=a.doc;yt(s);var M,j,K=O.sel,Z=K.ranges;if(f.addNew&&!f.extend?(j=O.sel.contains(p),j>-1?M=Z[j]:M=new wt(p,p)):(M=O.sel.primary(),j=O.sel.primIndex),f.unit=="rectangle")f.addNew||(M=new wt(p,p)),p=wr(a,s,!0,!0),j=-1;else{var ne=x0(a,p,f.unit);f.extend?M=Hf(M,ne.anchor,ne.head,f.extend):M=ne}f.addNew?j==-1?(j=Z.length,an(O,ii(a,Z.concat([M]),j),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[j].empty()&&f.unit=="char"&&!f.extend?(an(O,ii(a,Z.slice(0,j).concat(Z.slice(j+1)),0),{scroll:!1,origin:"*mouse"}),K=O.sel):Wf(O,j,M,W):(j=0,an(O,new Mn([M],0),W),K=O.sel);var re=p;function ve(Fe){if(Ee(re,Fe)!=0)if(re=Fe,f.unit=="rectangle"){for(var Ge=[],nt=a.options.tabSize,qe=de(Je(O,p.line).text,p.ch,nt),pt=de(Je(O,Fe.line).text,Fe.ch,nt),kt=Math.min(qe,pt),qt=Math.max(qe,pt),Rt=Math.min(p.line,Fe.line),Dn=Math.min(a.lastLine(),Math.max(p.line,Fe.line));Rt<=Dn;Rt++){var wn=Je(O,Rt).text,jt=q(wn,kt,nt);kt==qt?Ge.push(new wt(ue(Rt,jt),ue(Rt,jt))):wn.length>jt&&Ge.push(new wt(ue(Rt,jt),ue(Rt,q(wn,qt,nt))))}Ge.length||Ge.push(new wt(p,p)),an(O,ii(a,K.ranges.slice(0,j).concat(Ge),j),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Fe)}else{var Cn=M,tn=x0(a,Fe,f.unit),Kt=Cn.anchor,zt;Ee(tn.anchor,Kt)>0?(zt=tn.head,Kt=Gt(Cn.from(),tn.anchor)):(zt=tn.anchor,Kt=vt(Cn.to(),tn.head));var Ft=K.ranges.slice(0);Ft[j]=i5(a,new wt(ot(O,Kt),zt)),an(O,ii(a,Ft,j),W)}}var me=v.wrapper.getBoundingClientRect(),Ae=0;function Te(Fe){var Ge=++Ae,nt=wr(a,Fe,!0,f.unit=="rectangle");if(!!nt)if(Ee(nt,re)!=0){a.curOp.focus=J(X(a)),ve(nt);var qe=Vs(v,O);(nt.line>=qe.to||nt.line<qe.from)&&setTimeout(Xt(a,function(){Ae==Ge&&Te(Fe)}),150)}else{var pt=Fe.clientY<me.top?-20:Fe.clientY>me.bottom?20:0;pt&&setTimeout(Xt(a,function(){Ae==Ge&&(v.scroller.scrollTop+=pt,Te(Fe))}),50)}}function Oe(Fe){a.state.selectingText=!1,Ae=1/0,Fe&&(yt(Fe),v.input.focus()),Ye(v.wrapper.ownerDocument,"mousemove",Ie),Ye(v.wrapper.ownerDocument,"mouseup",Ue),O.history.lastSelOrigin=null}var Ie=Xt(a,function(Fe){Fe.buttons===0||!da(Fe)?Oe(Fe):Te(Fe)}),Ue=Xt(a,Oe);a.state.selectingText=Ue,Ce(v.wrapper.ownerDocument,"mousemove",Ie),Ce(v.wrapper.ownerDocument,"mouseup",Ue)}function i5(a,s){var p=s.anchor,f=s.head,v=Je(a.doc,p.line);if(Ee(p,f)==0&&p.sticky==f.sticky)return s;var O=tt(v);if(!O)return s;var M=Ne(O,p.ch,p.sticky),j=O[M];if(j.from!=p.ch&&j.to!=p.ch)return s;var K=M+(j.from==p.ch==(j.level!=1)?0:1);if(K==0||K==O.length)return s;var Z;if(f.line!=p.line)Z=(f.line-p.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ne=Ne(O,f.ch,f.sticky),re=ne-M||(f.ch-p.ch)*(j.level==1?-1:1);ne==K-1||ne==K?Z=re<0:Z=re>0}var ve=O[K+(Z?-1:0)],me=Z==(ve.level==1),Ae=me?ve.from:ve.to,Te=me?"after":"before";return p.ch==Ae&&p.sticky==Te?s:new wt(new ue(p.line,Ae,Te),f)}function k0(a,s,p,f){var v,O;if(s.touches)v=s.touches[0].clientX,O=s.touches[0].clientY;else try{v=s.clientX,O=s.clientY}catch{return!1}if(v>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;f&&yt(s);var M=a.display,j=M.lineDiv.getBoundingClientRect();if(O>j.bottom||!Bt(a,p))return Wi(s);O-=j.top-M.viewOffset;for(var K=0;K<a.display.gutterSpecs.length;++K){var Z=M.gutters.childNodes[K];if(Z&&Z.getBoundingClientRect().right>=v){var ne=vi(a.doc,O),re=a.display.gutterSpecs[K];return Qe(a,p,a,ne,re.className,s),Wi(s)}}}function Xf(a,s){return k0(a,s,"gutterClick",!0)}function T0(a,s){Bi(a.display,s)||r5(a,s)||dt(a,s,"contextmenu")||T||a.display.input.onContextMenu(s)}function r5(a,s){return Bt(a,"gutterContextMenu")?k0(a,s,"gutterContextMenu",!1):!1}function N0(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),va(a)}var So={toString:function(){return"CodeMirror.Init"}},D0={},Ws={};function o5(a){var s=a.optionHandlers;function p(f,v,O,M){a.defaults[f]=v,O&&(s[f]=M?function(j,K,Z){Z!=So&&O(j,K,Z)}:O)}a.defineOption=p,a.Init=So,p("value","",function(f,v){return f.setValue(v)},!0),p("mode",null,function(f,v){f.doc.modeOption=v,jf(f)},!0),p("indentUnit",2,jf,!0),p("indentWithTabs",!1),p("smartIndent",!0),p("tabSize",4,function(f){Sa(f),va(f),yn(f)},!0),p("lineSeparator",null,function(f,v){if(f.doc.lineSep=v,!!v){var O=[],M=f.doc.first;f.doc.iter(function(K){for(var Z=0;;){var ne=K.text.indexOf(v,Z);if(ne==-1)break;Z=ne+v.length,O.push(ue(M,ne))}M++});for(var j=O.length-1;j>=0;j--)Co(f.doc,v,O[j],ue(O[j].line,O[j].ch+v.length))}}),p("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(f,v,O){f.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),O!=So&&f.refresh()}),p("specialCharPlaceholder",RL,function(f){return f.refresh()},!0),p("electricChars",!0),p("inputStyle",k?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),p("spellcheck",!1,function(f,v){return f.getInputField().spellcheck=v},!0),p("autocorrect",!1,function(f,v){return f.getInputField().autocorrect=v},!0),p("autocapitalize",!1,function(f,v){return f.getInputField().autocapitalize=v},!0),p("rtlMoveVisually",!F),p("wholeLineUpdateBefore",!0),p("theme","default",function(f){N0(f),Aa(f)},!0),p("keyMap","default",function(f,v,O){var M=Us(v),j=O!=So&&Us(O);j&&j.detach&&j.detach(f,M),M.attach&&M.attach(f,j||null)}),p("extraKeys",null),p("configureMouse",null),p("lineWrapping",!1,l5,!0),p("gutters",[],function(f,v){f.display.gutterSpecs=Pf(v,f.options.lineNumbers),Aa(f)},!0),p("fixedGutter",!0,function(f,v){f.display.gutters.style.left=v?kf(f.display)+"px":"0",f.refresh()},!0),p("coverGutterNextToScrollbar",!1,function(f){return vo(f)},!0),p("scrollbarStyle","native",function(f){Vy(f),vo(f),f.display.scrollbars.setScrollTop(f.doc.scrollTop),f.display.scrollbars.setScrollLeft(f.doc.scrollLeft)},!0),p("lineNumbers",!1,function(f,v){f.display.gutterSpecs=Pf(f.options.gutters,v),Aa(f)},!0),p("firstLineNumber",1,Aa,!0),p("lineNumberFormatter",function(f){return f},Aa,!0),p("showCursorWhenSelecting",!1,ya,!0),p("resetSelectionOnContextMenu",!0),p("lineWiseCopyCut",!0),p("pasteLinesPerSelection",!0),p("selectionsMayTouch",!1),p("readOnly",!1,function(f,v){v=="nocursor"&&(mo(f),f.display.input.blur()),f.display.input.readOnlyChanged(v)}),p("screenReaderLabel",null,function(f,v){v=v===""?null:v,f.display.input.screenReaderLabelChanged(v)}),p("disableInput",!1,function(f,v){v||f.display.input.reset()},!0),p("dragDrop",!0,a5),p("allowDropFileTypes",null),p("cursorBlinkRate",530),p("cursorScrollMargin",0),p("cursorHeight",1,ya,!0),p("singleCursorHeightPerLine",!0,ya,!0),p("workTime",100),p("workDelay",100),p("flattenSpans",!0,Sa,!0),p("addModeClass",!1,Sa,!0),p("pollInterval",100),p("undoDepth",200,function(f,v){return f.doc.history.undoDepth=v}),p("historyEventDelay",1250),p("viewportMargin",10,function(f){return f.refresh()},!0),p("maxHighlightLength",1e4,Sa,!0),p("moveInputWithCursor",!0,function(f,v){v||f.display.input.resetPosition()}),p("tabindex",null,function(f,v){return f.display.input.getField().tabIndex=v||""}),p("autofocus",null),p("direction","ltr",function(f,v){return f.doc.setDirection(v)},!0),p("phrases",null)}function a5(a,s,p){var f=p&&p!=So;if(!s!=!f){var v=a.display.dragFunctions,O=s?Ce:Ye;O(a.display.scroller,"dragstart",v.start),O(a.display.scroller,"dragenter",v.enter),O(a.display.scroller,"dragover",v.over),O(a.display.scroller,"dragleave",v.leave),O(a.display.scroller,"drop",v.drop)}}function l5(a){a.options.lineWrapping?(Q(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(L(a.display.wrapper,"CodeMirror-wrap"),vf(a)),Tf(a),yn(a),va(a),setTimeout(function(){return vo(a)},100)}function Ot(a,s){var p=this;if(!(this instanceof Ot))return new Ot(a,s);this.options=s=s?ce(s):{},ce(D0,s,!1);var f=s.value;typeof f=="string"?f=new bn(f,s.mode,null,s.lineSeparator,s.direction):s.mode&&(f.modeOption=s.mode),this.doc=f;var v=new Ot.inputStyles[s.inputStyle](this),O=this.display=new w8(a,f,v,s);O.wrapper.CodeMirror=this,N0(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vy(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new pe,keySeq:null,specialChars:null},s.autofocus&&!k&&O.input.focus(),u&&m<11&&setTimeout(function(){return p.display.input.reset(!0)},20),s5(this),P8(),Ar(this),this.curOp.forceUpdate=!0,zy(this,f),s.autofocus&&!k||this.hasFocus()?setTimeout(function(){p.hasFocus()&&!p.state.focused&&Vf(p)},20):mo(this);for(var M in Ws)Ws.hasOwnProperty(M)&&Ws[M](this,s[M],So);$y(this),s.finishInit&&s.finishInit(this);for(var j=0;j<Zf.length;++j)Zf[j](this);Sr(this),h&&s.lineWrapping&&getComputedStyle(O.lineDiv).textRendering=="optimizelegibility"&&(O.lineDiv.style.textRendering="auto")}Ot.defaults=D0,Ot.optionHandlers=Ws;function s5(a){var s=a.display;Ce(s.scroller,"mousedown",Xt(a,S0)),u&&m<11?Ce(s.scroller,"dblclick",Xt(a,function(K){if(!dt(a,K)){var Z=wr(a,K);if(!(!Z||Xf(a,K)||Bi(a.display,K))){yt(K);var ne=a.findWordAt(Z);Ms(a.doc,ne.anchor,ne.head)}}})):Ce(s.scroller,"dblclick",function(K){return dt(a,K)||yt(K)}),Ce(s.scroller,"contextmenu",function(K){return T0(a,K)}),Ce(s.input.getField(),"contextmenu",function(K){s.scroller.contains(K.target)||T0(a,K)});var p,f={end:0};function v(){s.activeTouch&&(p=setTimeout(function(){return s.activeTouch=null},1e3),f=s.activeTouch,f.end=+new Date)}function O(K){if(K.touches.length!=1)return!1;var Z=K.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function M(K,Z){if(Z.left==null)return!0;var ne=Z.left-K.left,re=Z.top-K.top;return ne*ne+re*re>20*20}Ce(s.scroller,"touchstart",function(K){if(!dt(a,K)&&!O(K)&&!Xf(a,K)){s.input.ensurePolled(),clearTimeout(p);var Z=+new Date;s.activeTouch={start:Z,moved:!1,prev:Z-f.end<=300?f:null},K.touches.length==1&&(s.activeTouch.left=K.touches[0].pageX,s.activeTouch.top=K.touches[0].pageY)}}),Ce(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Ce(s.scroller,"touchend",function(K){var Z=s.activeTouch;if(Z&&!Bi(s,K)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var ne=a.coordsChar(s.activeTouch,"page"),re;!Z.prev||M(Z,Z.prev)?re=new wt(ne,ne):!Z.prev.prev||M(Z,Z.prev.prev)?re=a.findWordAt(ne):re=new wt(ue(ne.line,0),ot(a.doc,ue(ne.line+1,0))),a.setSelection(re.anchor,re.head),a.focus(),yt(K)}v()}),Ce(s.scroller,"touchcancel",v),Ce(s.scroller,"scroll",function(){s.scroller.clientHeight&&(wa(a,s.scroller.scrollTop),_r(a,s.scroller.scrollLeft,!0),Qe(a,"scroll",a))}),Ce(s.scroller,"mousewheel",function(K){return My(a,K)}),Ce(s.scroller,"DOMMouseScroll",function(K){return My(a,K)}),Ce(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(K){dt(a,K)||qn(K)},over:function(K){dt(a,K)||(M8(a,K),qn(K))},start:function(K){return F8(a,K)},drop:Xt(a,I8),leave:function(K){dt(a,K)||f0(a)}};var j=s.input.getField();Ce(j,"keyup",function(K){return E0.call(a,K)}),Ce(j,"keydown",Xt(a,_0)),Ce(j,"keypress",Xt(a,A0)),Ce(j,"focus",function(K){return Vf(a,K)}),Ce(j,"blur",function(K){return mo(a,K)})}var Zf=[];Ot.defineInitHook=function(a){return Zf.push(a)};function Ma(a,s,p,f){var v=a.doc,O;p==null&&(p="add"),p=="smart"&&(v.mode.indent?O=fa(a,s).state:p="prev");var M=a.options.tabSize,j=Je(v,s),K=de(j.text,null,M);j.stateAfter&&(j.stateAfter=null);var Z=j.text.match(/^\s*/)[0],ne;if(!f&&!/\S/.test(j.text))ne=0,p="not";else if(p=="smart"&&(ne=v.mode.indent(O,j.text.slice(Z.length),j.text),ne==ye||ne>150)){if(!f)return;p="prev"}p=="prev"?s>v.first?ne=de(Je(v,s-1).text,null,M):ne=0:p=="add"?ne=K+a.options.indentUnit:p=="subtract"?ne=K-a.options.indentUnit:typeof p=="number"&&(ne=K+p),ne=Math.max(0,ne);var re="",ve=0;if(a.options.indentWithTabs)for(var me=Math.floor(ne/M);me;--me)ve+=M,re+=" ";if(ve<ne&&(re+=oe(ne-ve)),re!=Z)return Co(v,re,ue(s,0),ue(s,Z.length),"+input"),j.stateAfter=null,!0;for(var Ae=0;Ae<v.sel.ranges.length;Ae++){var Te=v.sel.ranges[Ae];if(Te.head.line==s&&Te.head.ch<Z.length){var Oe=ue(s,Z.length);Wf(v,Ae,new wt(Oe,Oe));break}}}var ri=null;function Gs(a){ri=a}function qf(a,s,p,f,v){var O=a.doc;a.display.shift=!1,f||(f=O.sel);var M=+new Date-200,j=v=="paste"||a.state.pasteIncoming>M,K=ca(s),Z=null;if(j&&f.ranges.length>1)if(ri&&ri.text.join(`
|
||
`)==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 j[v]=="string")M[j[v]]&&O.push(M[j[v]]);else if(j[v])for(var K=0;K<j[v].length;K++){var Z=M[j[v][K]];Z&&O.push(Z)}else j.helperType&&M[j.helperType]?O.push(M[j.helperType]):M[j.name]&&O.push(M[j.name]);for(var ne=0;ne<M._global.length;ne++){var re=M._global[ne];re.pred(j,this)&&se(O,re.val)==-1&&O.push(re.val)}return O},getStateAfter:function(f,v){var O=this.doc;return f=Fn(O,f==null?O.first+O.size-1:f),fa(this,f+1,v).state},cursorCoords:function(f,v){var O,M=this.doc.sel.primary();return f==null?O=M.head:typeof f=="object"?O=ot(this.doc,f):O=f?M.from():M.to(),ni(this,O,v||"page")},charCoords:function(f,v){return Ts(this,ot(this.doc,f),v||"page")},coordsChar:function(f,v){return f=by(this,f,v||"page"),Af(this,f.left,f.top)},lineAtHeight:function(f,v){return f=by(this,{top:f,left:0},v||"page").top,vi(this.doc,f+this.display.viewOffset)},heightAtLine:function(f,v,O){var M=!1,j;if(typeof f=="number"){var K=this.doc.first+this.doc.size-1;f<this.doc.first?f=this.doc.first:f>K&&(f=K,M=!0),j=Je(this.doc,f)}else j=f;return ks(this,j,{top:0,left:0},v||"page",O||M).top+(M?this.doc.height-Vi(j):0)},defaultTextHeight:function(){return po(this.display)},defaultCharWidth:function(){return ho(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(f,v,O,M,j){var K=this.display;f=ni(this,ot(this.doc,f));var Z=f.bottom,ne=f.left;if(v.style.position="absolute",v.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(v),K.sizer.appendChild(v),M=="over")Z=f.top;else if(M=="above"||M=="near"){var re=Math.max(K.wrapper.clientHeight,this.doc.height),ve=Math.max(K.sizer.clientWidth,K.lineSpace.clientWidth);(M=="above"||f.bottom+v.offsetHeight>re)&&f.top>v.offsetHeight?Z=f.top-v.offsetHeight:f.bottom+v.offsetHeight<=re&&(Z=f.bottom),ne+v.offsetWidth>ve&&(ne=ve-v.offsetWidth)}v.style.top=Z+"px",v.style.left=v.style.right="",j=="right"?(ne=K.sizer.clientWidth-v.offsetWidth,v.style.right="0px"):(j=="left"?ne=0:j=="middle"&&(ne=(K.sizer.clientWidth-v.offsetWidth)/2),v.style.left=ne+"px"),O&&a8(this,{left:ne,top:Z,right:ne+v.offsetWidth,bottom:Z+v.offsetHeight})},triggerOnKeyDown:un(_0),triggerOnKeyPress:un(A0),triggerOnKeyUp:E0,triggerOnMouseDown:un(S0),execCommand:function(f){if(Ra.hasOwnProperty(f))return Ra[f].call(null,this)},triggerElectric:un(function(f){V0(this,f)}),findPosH:function(f,v,O,M){var j=1;v<0&&(j=-1,v=-v);for(var K=ot(this.doc,f),Z=0;Z<v&&(K=ep(this.doc,K,j,O,M),!K.hitSide);++Z);return K},moveH:un(function(f,v){var O=this;this.extendSelectionsBy(function(M){return O.display.shift||O.doc.extend||M.empty()?ep(O.doc,M.head,f,v,O.options.rtlMoveVisually):f<0?M.from():M.to()},Y)}),deleteH:un(function(f,v){var O=this.doc.sel,M=this.doc;O.somethingSelected()?M.replaceSelection("",null,"+delete"):Ao(this,function(j){var K=ep(M,j.head,f,v,!1);return f<0?{from:K,to:j.head}:{from:j.head,to:K}})}),findPosV:function(f,v,O,M){var j=1,K=M;v<0&&(j=-1,v=-v);for(var Z=ot(this.doc,f),ne=0;ne<v;++ne){var re=ni(this,Z,"div");if(K==null?K=re.left:re.left=K,Z=I0(this,re,j,O),Z.hitSide)break}return Z},moveV:un(function(f,v){var O=this,M=this.doc,j=[],K=!this.display.shift&&!M.extend&&M.sel.somethingSelected();if(M.extendSelectionsBy(function(ne){if(K)return f<0?ne.from():ne.to();var re=ni(O,ne.head,"div");ne.goalColumn!=null&&(re.left=ne.goalColumn),j.push(re.left);var ve=I0(O,re,f,v);return v=="page"&&ne==M.sel.primary()&&Rf(O,Ts(O,ve,"div").top-re.top),ve},Y),j.length)for(var Z=0;Z<M.sel.ranges.length;Z++)M.sel.ranges[Z].goalColumn=j[Z]}),findWordAt:function(f){var v=this.doc,O=Je(v,f.line).text,M=f.ch,j=f.ch;if(O){var K=this.getHelper(f,"wordChars");(f.sticky=="before"||j==O.length)&&M?--M:++j;for(var Z=O.charAt(M),ne=He(Z,K)?function(re){return He(re,K)}:/\s/.test(Z)?function(re){return/\s/.test(re)}:function(re){return!/\s/.test(re)&&!He(re)};M>0&&ne(O.charAt(M-1));)--M;for(;j<O.length&&ne(O.charAt(j));)++j}return new wt(ue(f.line,M),ue(f.line,j))},toggleOverwrite:function(f){f!=null&&f==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Q(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),Qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==J(X(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:un(function(f,v){ba(this,f,v)}),getScrollInfo:function(){var f=this.display.scroller;return{left:f.scrollLeft,top:f.scrollTop,height:f.scrollHeight-bi(this)-this.display.barHeight,width:f.scrollWidth-bi(this)-this.display.barWidth,clientHeight:wf(this),clientWidth:yr(this)}},scrollIntoView:un(function(f,v){f==null?(f={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof f=="number"?f={from:ue(f,0),to:null}:f.from==null&&(f={from:f,to:null}),f.to||(f.to=f.from),f.margin=v||0,f.from.line!=null?l8(this,f):Ty(this,f.from,f.to,f.margin)}),setSize:un(function(f,v){var O=this,M=function(K){return typeof K=="number"||/^\d+$/.test(String(K))?K+"px":K};f!=null&&(this.display.wrapper.style.width=M(f)),v!=null&&(this.display.wrapper.style.height=M(v)),this.options.lineWrapping&&gy(this);var j=this.display.viewFrom;this.doc.iter(j,this.display.viewTo,function(K){if(K.widgets){for(var Z=0;Z<K.widgets.length;Z++)if(K.widgets[Z].noHScroll){Xi(O,j,"widget");break}}++j}),this.curOp.forceUpdate=!0,Qe(this,"refresh",this)}),operation:function(f){return Nn(this,f)},startOperation:function(){return Ar(this)},endOperation:function(){return Sr(this)},refresh:un(function(){var f=this.display.cachedTextHeight;yn(this),this.curOp.forceUpdate=!0,va(this),ba(this,this.doc.scrollLeft,this.doc.scrollTop),Ff(this.display),(f==null||Math.abs(f-po(this.display))>.5||this.options.lineWrapping)&&Tf(this),Qe(this,"refresh",this)}),swapDoc:un(function(f){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),zy(this,f),va(this),this.display.input.reset(),ba(this,f.scrollLeft,f.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,v),v}),phrase:function(f){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,f)?v[f]:f},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Tt(a),a.registerHelper=function(f,v,O){p.hasOwnProperty(f)||(p[f]=a[f]={_global:[]}),p[f][v]=O},a.registerGlobalHelper=function(f,v,O,M){a.registerHelper(f,v,M),p[f]._global.push({pred:O,val:M})}}function ep(a,s,p,f,v){var O=s,M=p,j=Je(a,s.line),K=v&&a.direction=="rtl"?-p:p;function Z(){var Ue=s.line+K;return Ue<a.first||Ue>=a.first+a.size?!1:(s=new ue(Ue,s.ch,s.sticky),j=Je(a,Ue))}function ne(Ue){var Fe;if(f=="codepoint"){var Ge=j.text.charCodeAt(s.ch+(p>0?0:-1));if(isNaN(Ge))Fe=null;else{var nt=p>0?Ge>=55296&&Ge<56320:Ge>=56320&&Ge<57343;Fe=new ue(s.line,Math.max(0,Math.min(j.text.length,s.ch+p*(nt?2:1))),-p)}}else v?Fe=H8(a.cm,j,s,p):Fe=Kf(j,s,p);if(Fe==null)if(!Ue&&Z())s=Yf(v,a.cm,j,s.line,K);else return!1;else s=Fe;return!0}if(f=="char"||f=="codepoint")ne();else if(f=="column")ne(!0);else if(f=="word"||f=="group")for(var re=null,ve=f=="group",me=a.cm&&a.cm.getHelper(s,"wordChars"),Ae=!0;!(p<0&&!ne(!Ae));Ae=!1){var Te=j.text.charAt(s.ch)||`
|
||
`,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.line-1,Je(a.doc,f.line-1).length)),v.ch==Je(a.doc,v.line).text.length&&v.line<a.lastLine()&&(v=ue(v.line+1,0)),f.line<s.viewFrom||v.line>s.viewTo-1)return!1;var O,M,j;f.line==s.viewFrom||(O=Cr(a,f.line))==0?(M=bt(s.view[0].line),j=s.view[0].node):(M=bt(s.view[O].line),j=s.view[O-1].node.nextSibling);var K=Cr(a,v.line),Z,ne;if(K==s.view.length-1?(Z=s.viewTo-1,ne=s.lineDiv.lastChild):(Z=bt(s.view[K+1].line)-1,ne=s.view[K+1].node.previousSibling),!j)return!1;for(var re=a.doc.splitLines(u5(a,j,ne,M,Z)),ve=Di(a.doc,ue(M,0),ue(Z,Je(a.doc,Z).text.length));re.length>1&&ve.length>1;)if(he(re)==he(ve))re.pop(),ve.pop(),Z--;else if(re[0]==ve[0])re.shift(),ve.shift(),M++;else break;for(var me=0,Ae=0,Te=re[0],Oe=ve[0],Ie=Math.min(Te.length,Oe.length);me<Ie&&Te.charCodeAt(me)==Oe.charCodeAt(me);)++me;for(var Ue=he(re),Fe=he(ve),Ge=Math.min(Ue.length-(re.length==1?me:0),Fe.length-(ve.length==1?me:0));Ae<Ge&&Ue.charCodeAt(Ue.length-Ae-1)==Fe.charCodeAt(Fe.length-Ae-1);)++Ae;if(re.length==1&&ve.length==1&&M==f.line)for(;me&&me>f.ch&&Ue.charCodeAt(Ue.length-Ae-1)==Fe.charCodeAt(Fe.length-Ae-1);)me--,Ae++;re[re.length-1]=Ue.slice(0,Ue.length-Ae).replace(/^\u200b+/,""),re[0]=re[0].slice(me).replace(/\u200b+$/,"");var nt=ue(M,me),qe=ue(Z,ve.length?he(ve).length-Ae:0);if(re.length>1||re[0]||Ee(nt,qe))return Co(a.doc,re,nt,qe,"+input"),!0},At.prototype.ensurePolled=function(){this.forceCompositionEnd()},At.prototype.reset=function(){this.forceCompositionEnd()},At.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},At.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},At.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Nn(this.cm,function(){return yn(a.cm)})},At.prototype.setUneditable=function(a){a.contentEditable="false"},At.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Xt(this.cm,qf)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},At.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},At.prototype.onContextMenu=function(){},At.prototype.resetPosition=function(){},At.prototype.needsContentAttribute=!0;function F0(a,s){var p=Cf(a,s.line);if(!p||p.hidden)return null;var f=Je(a.doc,s.line),v=uy(p,f,s.line),O=tt(f,a.doc.direction),M="left";if(O){var j=Ne(O,s.ch);M=j%2?"right":"left"}var K=hy(v.map,s.ch,M);return K.offset=K.collapse=="right"?K.end:K.start,K}function c5(a){for(var s=a;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function xo(a,s){return s&&(a.bad=!0),a}function u5(a,s,p,f,v){var O="",M=!1,j=a.doc.lineSeparator(),K=!1;function Z(me){return function(Ae){return Ae.id==me}}function ne(){M&&(O+=j,K&&(O+=j),M=K=!1)}function re(me){me&&(ne(),O+=me)}function ve(me){if(me.nodeType==1){var Ae=me.getAttribute("cm-text");if(Ae){re(Ae);return}var Te=me.getAttribute("cm-marker"),Oe;if(Te){var Ie=a.findMarks(ue(f,0),ue(v+1,0),Z(+Te));Ie.length&&(Oe=Ie[0].find(0))&&re(Di(a.doc,Oe.from,Oe.to).join(j));return}if(me.getAttribute("contenteditable")=="false")return;var Ue=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;Ue&&ne();for(var Fe=0;Fe<me.childNodes.length;Fe++)ve(me.childNodes[Fe]);/^(pre|p)$/i.test(me.nodeName)&&(K=!0),Ue&&(M=!0)}else me.nodeType==3&&re(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ve(s),s!=p;)s=s.nextSibling,K=!1;return O}function Ks(a,s,p){var f;if(s==a.display.lineDiv){if(f=a.display.lineDiv.childNodes[p],!f)return xo(a.clipPos(ue(a.display.viewTo-1)),!0);s=null,p=0}else for(f=s;;f=f.parentNode){if(!f||f==a.display.lineDiv)return null;if(f.parentNode&&f.parentNode==a.display.lineDiv)break}for(var v=0;v<a.display.view.length;v++){var O=a.display.view[v];if(O.node==f)return f5(O,s,p)}}function f5(a,s,p){var f=a.text.firstChild,v=!1;if(!s||!A(f,s))return xo(ue(bt(a.line),0),!0);if(s==f&&(v=!0,s=f.childNodes[p],p=0,!s)){var O=a.rest?he(a.rest):a.line;return xo(ue(bt(O),O.text.length),v)}var M=s.nodeType==3?s:null,j=s;for(!M&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(M=s.firstChild,p&&(p=M.nodeValue.length));j.parentNode!=f;)j=j.parentNode;var K=a.measure,Z=K.maps;function ne(Oe,Ie,Ue){for(var Fe=-1;Fe<(Z?Z.length:0);Fe++)for(var Ge=Fe<0?K.map:Z[Fe],nt=0;nt<Ge.length;nt+=3){var qe=Ge[nt+2];if(qe==Oe||qe==Ie){var pt=bt(Fe<0?a.line:a.rest[Fe]),kt=Ge[nt]+Ue;return(Ue<0||qe!=Oe)&&(kt=Ge[nt+(Ue?1:0)]),ue(pt,kt)}}}var re=ne(M,j,p);if(re)return xo(re,v);for(var ve=j.nextSibling,me=M?M.nodeValue.length-p:0;ve;ve=ve.nextSibling){if(re=ne(ve,ve.firstChild,0),re)return xo(ue(re.line,re.ch-me),v);me+=ve.textContent.length}for(var Ae=j.previousSibling,Te=p;Ae;Ae=Ae.previousSibling){if(re=ne(Ae,Ae.firstChild,-1),re)return xo(ue(re.line,re.ch+Te),v);Te+=Ae.textContent.length}}var Lt=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new pe,this.hasSelection=!1,this.composing=null};Lt.prototype.init=function(a){var s=this,p=this,f=this.cm;this.createField(a);var v=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),b&&(v.style.width="0px"),Ce(v,"input",function(){u&&m>=9&&s.hasSelection&&(s.hasSelection=null),p.poll()}),Ce(v,"paste",function(M){dt(f,M)||O0(M,f)||(f.state.pasteIncoming=+new Date,p.fastPoll())});function O(M){if(!dt(f,M)){if(f.somethingSelected())Gs({lineWise:!1,text:f.getSelections()});else if(f.options.lineWiseCopyCut){var j=B0(f);Gs({lineWise:!0,text:j.text}),M.type=="cut"?f.setSelections(j.ranges,null,D):(p.prevInput="",v.value=j.text.join(`
|
||
`),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:te("if"),while:ae,with:ae,else:ue,do:ue,try:ue,finally:ue,return:rt,break:rt,continue:rt,new:te("new"),delete:Ee,void:Ee,throw:Ee,debugger:te("debugger"),var:te("var"),const:te("var"),let:te("var"),function:te("function"),catch:te("catch"),for:te("for"),switch:te("switch"),case:te("case"),default:te("default"),in:ht,typeof:ht,instanceof:ht,true:vt,false:vt,null:vt,undefined:vt,NaN:vt,Infinity:vt,this:te("this"),class:te("class"),super:te("atom"),yield:Ee,export:te("export"),import:te("import"),extends:Ee,await:Ee}}(),S=/[+\-*&%=<>!?|~^@]/,w=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function E(te){for(var ae=!1,ue,Ee=!1;(ue=te.next())!=null;){if(!ae){if(ue=="/"&&!Ee)return;ue=="["?Ee=!0:Ee&&ue=="]"&&(Ee=!1)}ae=!ae&&ue=="\\"}}var _,g;function b(te,ae,ue){return _=te,g=ue,ae}function x(te,ae){var ue=te.next();if(ue=='"'||ue=="'")return ae.tokenize=k(ue),ae.tokenize(te,ae);if(ue=="."&&te.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b("number","number");if(ue=="."&&te.match(".."))return b("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ue))return b(ue);if(ue=="="&&te.eat(">"))return b("=>","operator");if(ue=="0"&&te.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b("number","number");if(/\d/.test(ue))return te.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b("number","number");if(ue=="/")return te.eat("*")?(ae.tokenize=N,N(te,ae)):te.eat("/")?(te.skipToEnd(),b("comment","comment")):vi(te,ae,1)?(E(te),te.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b("regexp","string-2")):(te.eat("="),b("operator","operator",te.current()));if(ue=="`")return ae.tokenize=V,V(te,ae);if(ue=="#"&&te.peek()=="!")return te.skipToEnd(),b("meta","meta");if(ue=="#"&&te.eatWhile(y))return b("variable","property");if(ue=="<"&&te.match("!--")||ue=="-"&&te.match("->")&&!/\S/.test(te.string.slice(0,te.start)))return te.skipToEnd(),b("comment","comment");if(S.test(ue))return(ue!=">"||!ae.lexical||ae.lexical.type!=">")&&(te.eat("=")?(ue=="!"||ue=="=")&&te.eat("="):/[<>*+\-|&?]/.test(ue)&&(te.eat(ue),ue==">"&&te.eat(ue))),ue=="?"&&te.eat(".")?b("."):b("operator","operator",te.current());if(y.test(ue)){te.eatWhile(y);var Ee=te.current();if(ae.lastType!="."){if(C.propertyIsEnumerable(Ee)){var rt=C[Ee];return b(rt.type,rt.style,Ee)}if(Ee=="async"&&te.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b("async","keyword",Ee)}return b("variable","variable",Ee)}}function k(te){return function(ae,ue){var Ee=!1,rt;if(c&&ae.peek()=="@"&&ae.match(w))return ue.tokenize=x,b("jsonld-keyword","meta");for(;(rt=ae.next())!=null&&!(rt==te&&!Ee);)Ee=!Ee&&rt=="\\";return Ee||(ue.tokenize=x),b("string","string")}}function N(te,ae){for(var ue=!1,Ee;Ee=te.next();){if(Ee=="/"&&ue){ae.tokenize=x;break}ue=Ee=="*"}return b("comment","comment")}function V(te,ae){for(var ue=!1,Ee;(Ee=te.next())!=null;){if(!ue&&(Ee=="`"||Ee=="$"&&te.eat("{"))){ae.tokenize=x;break}ue=!ue&&Ee=="\\"}return b("quasi","string-2",te.current())}var F="([{}])";function I(te,ae){ae.fatArrowAt&&(ae.fatArrowAt=null);var ue=te.string.indexOf("=>",te.start);if(!(ue<0)){if(h){var Ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(te.string.slice(te.start,ue));Ee&&(ue=Ee.index)}for(var rt=0,ht=!1,vt=ue-1;vt>=0;--vt){var Gt=te.string.charAt(vt),Fn=F.indexOf(Gt);if(Fn>=0&&Fn<3){if(!rt){++vt;break}if(--rt==0){Gt=="("&&(ht=!0);break}}else if(Fn>=3&&Fn<6)++rt;else if(y.test(Gt))ht=!0;else if(/["'\/`]/.test(Gt))for(;;--vt){if(vt==0)return;var ot=te.string.charAt(vt-1);if(ot==Gt&&te.string.charAt(vt-2)!="\\"){vt--;break}}else if(ht&&!rt){++vt;break}}ht&&!rt&&(ae.fatArrowAt=vt)}}var P={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(te,ae,ue,Ee,rt,ht){this.indented=te,this.column=ae,this.type=ue,this.prev=rt,this.info=ht,Ee!=null&&(this.align=Ee)}function B(te,ae){if(!m)return!1;for(var ue=te.localVars;ue;ue=ue.next)if(ue.name==ae)return!0;for(var Ee=te.context;Ee;Ee=Ee.prev)for(var ue=Ee.vars;ue;ue=ue.next)if(ue.name==ae)return!0}function L(te,ae,ue,Ee,rt){var ht=te.cc;for(U.state=te,U.stream=rt,U.marked=null,U.cc=ht,U.style=ae,te.lexical.hasOwnProperty("align")||(te.lexical.align=!0);;){var vt=ht.length?ht.pop():u?ye:se;if(vt(ue,Ee)){for(;ht.length&&ht[ht.length-1].lex;)ht.pop()();return U.marked?U.marked:ue=="variable"&&B(te,Ee)?"variable-2":ae}}}var U={state:null,column:null,marked:null,cc:null};function H(){for(var te=arguments.length-1;te>=0;te--)U.cc.push(arguments[te])}function R(){return H.apply(null,arguments),!0}function z(te,ae){for(var ue=ae;ue;ue=ue.next)if(ue.name==te)return!0;return!1}function $(te){var ae=U.state;if(U.marked="def",!!m){if(ae.context){if(ae.lexical.info=="var"&&ae.context&&ae.context.block){var ue=A(te,ae.context);if(ue!=null){ae.context=ue;return}}else if(!z(te,ae.localVars)){ae.localVars=new G(te,ae.localVars);return}}i.globalVars&&!z(te,ae.globalVars)&&(ae.globalVars=new G(te,ae.globalVars))}}function A(te,ae){if(ae)if(ae.block){var ue=A(te,ae.prev);return ue?ue==ae.prev?ae:new Q(ue,ae.vars,!0):null}else return z(te,ae.vars)?ae:new Q(ae.prev,new G(te,ae.vars),!1);else return null}function J(te){return te=="public"||te=="private"||te=="protected"||te=="abstract"||te=="readonly"}function Q(te,ae,ue){this.prev=te,this.vars=ae,this.block=ue}function G(te,ae){this.name=te,this.next=ae}var ie=new G("this",new G("arguments",null));function X(){U.state.context=new Q(U.state.context,U.state.localVars,!1),U.state.localVars=ie}function le(){U.state.context=new Q(U.state.context,U.state.localVars,!0),U.state.localVars=null}X.lex=le.lex=!0;function be(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}be.lex=!0;function ce(te,ae){var ue=function(){var Ee=U.state,rt=Ee.indented;if(Ee.lexical.type=="stat")rt=Ee.lexical.indented;else for(var ht=Ee.lexical;ht&&ht.type==")"&&ht.align;ht=ht.prev)rt=ht.indented;Ee.lexical=new T(rt,U.stream.column(),te,null,Ee.lexical,ae)};return ue.lex=!0,ue}function de(){var te=U.state;te.lexical.prev&&(te.lexical.type==")"&&(te.indented=te.lexical.indented),te.lexical=te.lexical.prev)}de.lex=!0;function pe(te){function ae(ue){return ue==te?R():te==";"||ue=="}"||ue==")"||ue=="]"?H():R(ae)}return ae}function se(te,ae){return te=="var"?R(ce("vardef",ae),qn,pe(";"),de):te=="keyword a"?R(ce("form"),W,se,de):te=="keyword b"?R(ce("form"),se,de):te=="keyword d"?U.stream.match(/^\s*$/,!1)?R():R(ce("stat"),q,pe(";"),de):te=="debugger"?R(pe(";")):te=="{"?R(ce("}"),le,Ze,de,be):te==";"?R():te=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==de&&U.state.cc.pop()(),R(ce("form"),W,se,de,ao)):te=="function"?R(mi):te=="for"?R(ce("form"),le,ms,se,be,de):te=="class"||h&&ae=="interface"?(U.marked="keyword",R(ce("form",te=="class"?te:ae),vs,de)):te=="variable"?h&&ae=="declare"?(U.marked="keyword",R(se)):h&&(ae=="module"||ae=="enum"||ae=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",ae=="enum"?R(so):ae=="type"?R(gs,pe("operator"),Ce,pe(";")):R(ce("form"),vn,pe("{"),ce("}"),Ze,de,de)):h&&ae=="namespace"?(U.marked="keyword",R(ce("form"),ye,se,de)):h&&ae=="abstract"?(U.marked="keyword",R(se)):R(ce("stat"),He):te=="switch"?R(ce("form"),W,pe("{"),ce("}","switch"),le,Ze,de,de,be):te=="case"?R(ye,pe(":")):te=="default"?R(pe(":")):te=="catch"?R(ce("form"),X,ge,se,de,be):te=="export"?R(ce("stat"),Yi,de):te=="import"?R(ce("stat"),Ni,de):te=="async"?R(se):ae=="@"?R(ye,se):H(ce("stat"),ye,pe(";"),de)}function ge(te){if(te=="(")return R(ei,pe(")"))}function ye(te,ae){return Y(te,ae,!1)}function D(te,ae){return Y(te,ae,!0)}function W(te){return te!="("?H():R(ce(")"),q,pe(")"),de)}function Y(te,ae,ue){if(U.state.fatArrowAt==U.stream.start){var Ee=ue?Le:Pe;if(te=="(")return R(X,ce(")"),Re(ei,")"),de,pe("=>"),Ee,be);if(te=="variable")return H(X,vn,pe("=>"),Ee,be)}var rt=ue?oe:ee;return P.hasOwnProperty(te)?R(rt):te=="function"?R(mi,rt):te=="class"||h&&ae=="interface"?(U.marked="keyword",R(ce("form"),Ki,de)):te=="keyword c"||te=="async"?R(ue?D:ye):te=="("?R(ce(")"),q,pe(")"),de,rt):te=="operator"||te=="spread"?R(ue?D:ye):te=="["?R(ce("]"),Di,de,rt):te=="{"?mt(_e,"}",null,rt):te=="quasi"?H(he,rt):te=="new"?R(fe(ue)):R()}function q(te){return te.match(/[;\}\)\],]/)?H():H(ye)}function ee(te,ae){return te==","?R(q):oe(te,ae,!1)}function oe(te,ae,ue){var Ee=ue==!1?ee:oe,rt=ue==!1?ye:D;if(te=="=>")return R(X,ue?Le:Pe,be);if(te=="operator")return/\+\+|--/.test(ae)||h&&ae=="!"?R(Ee):h&&ae=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?R(ce(">"),Re(Ce,">"),de,Ee):ae=="?"?R(ye,pe(":"),rt):R(rt);if(te=="quasi")return H(he,Ee);if(te!=";"){if(te=="(")return mt(D,")","call",Ee);if(te==".")return R(et,Ee);if(te=="[")return R(ce("]"),q,pe("]"),de,Ee);if(h&&ae=="as")return U.marked="keyword",R(Ce,Ee);if(te=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),R(rt)}}function he(te,ae){return te!="quasi"?H():ae.slice(ae.length-2)!="${"?R(he):R(q,Se)}function Se(te){if(te=="}")return U.marked="string-2",U.state.tokenize=V,R(he)}function Pe(te){return I(U.stream,U.state),H(te=="{"?se:ye)}function Le(te){return I(U.stream,U.state),H(te=="{"?se:D)}function fe(te){return function(ae){return ae=="."?R(te?we:ke):ae=="variable"&&h?R(yt,te?oe:ee):H(te?D:ye)}}function ke(te,ae){if(ae=="target")return U.marked="keyword",R(ee)}function we(te,ae){if(ae=="target")return U.marked="keyword",R(oe)}function He(te){return te==":"?R(de,se):H(ee,pe(";"),de)}function et(te){if(te=="variable")return U.marked="property",R()}function _e(te,ae){if(te=="async")return U.marked="property",R(_e);if(te=="variable"||U.style=="keyword"){if(U.marked="property",ae=="get"||ae=="set")return R(Ve);var ue;return h&&U.state.fatArrowAt==U.stream.start&&(ue=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+ue[0].length),R(Ke)}else{if(te=="number"||te=="string")return U.marked=c?"property":U.style+" property",R(Ke);if(te=="jsonld-keyword")return R(Ke);if(h&&J(ae))return U.marked="keyword",R(_e);if(te=="[")return R(ye,Ne,pe("]"),Ke);if(te=="spread")return R(D,Ke);if(ae=="*")return U.marked="keyword",R(_e);if(te==":")return H(Ke)}}function Ve(te){return te!="variable"?H(Ke):(U.marked="property",R(mi))}function Ke(te){if(te==":")return R(D);if(te=="(")return H(mi)}function Re(te,ae,ue){function Ee(rt,ht){if(ue?ue.indexOf(rt)>-1:rt==","){var vt=U.state.lexical;return vt.info=="call"&&(vt.pos=(vt.pos||0)+1),R(function(Gt,Fn){return Gt==ae||Fn==ae?H():H(te)},Ee)}return rt==ae||ht==ae?R():ue&&ue.indexOf(";")>-1?H(te):R(pe(ae))}return function(rt,ht){return rt==ae||ht==ae?R():H(te,Ee)}}function mt(te,ae,ue){for(var Ee=3;Ee<arguments.length;Ee++)U.cc.push(arguments[Ee]);return R(ce(ae,ue),Re(te,ae),de)}function Ze(te){return te=="}"?R():H(se,Ze)}function Ne(te,ae){if(h){if(te==":")return R(Ce);if(ae=="?")return R(Ne)}}function Me(te,ae){if(h&&(te==":"||ae=="in"))return R(Ce)}function tt(te){if(h&&te==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?R(ye,$e,Ce):R(Ce)}function $e(te,ae){if(ae=="is")return U.marked="keyword",R()}function Ce(te,ae){if(ae=="keyof"||ae=="typeof"||ae=="infer"||ae=="readonly")return U.marked="keyword",R(ae=="typeof"?D:Ce);if(te=="variable"||ae=="void")return U.marked="type",R(Tt);if(ae=="|"||ae=="&")return R(Ce);if(te=="string"||te=="number"||te=="atom")return R(Tt);if(te=="[")return R(ce("]"),Re(Ce,"]",","),de,Tt);if(te=="{")return R(ce("}"),Ye,de,Tt);if(te=="(")return R(Re(Bt,")"),Xe,Tt);if(te=="<")return R(Re(Ce,">"),Ce);if(te=="quasi")return H(dt,Tt)}function Xe(te){if(te=="=>")return R(Ce)}function Ye(te){return te.match(/[\}\)\]]/)?R():te==","||te==";"?R(Ye):H(Qe,Ye)}function Qe(te,ae){if(te=="variable"||U.style=="keyword")return U.marked="property",R(Qe);if(ae=="?"||te=="number"||te=="string")return R(Qe);if(te==":")return R(Ce);if(te=="[")return R(pe("variable"),Me,pe("]"),Qe);if(te=="(")return H(gi,Qe);if(!te.match(/[;\}\)\],]/))return R()}function dt(te,ae){return te!="quasi"?H():ae.slice(ae.length-2)!="${"?R(dt):R(Ce,gn)}function gn(te){if(te=="}")return U.marked="string-2",U.state.tokenize=V,R(dt)}function Bt(te,ae){return te=="variable"&&U.stream.match(/^\s*[?:]/,!1)||ae=="?"?R(Bt):te==":"?R(Ce):te=="spread"?R(Bt):H(Ce)}function Tt(te,ae){if(ae=="<")return R(ce(">"),Re(Ce,">"),de,Tt);if(ae=="|"||te=="."||ae=="&")return R(Ce);if(te=="[")return R(Ce,pe("]"),Tt);if(ae=="extends"||ae=="implements")return U.marked="keyword",R(Ce);if(ae=="?")return R(Ce,pe(":"),Ce)}function yt(te,ae){if(ae=="<")return R(ce(">"),Re(Ce,">"),de,Tt)}function Wn(){return H(Ce,Wi)}function Wi(te,ae){if(ae=="=")return R(Ce)}function qn(te,ae){return ae=="enum"?(U.marked="keyword",R(so)):H(vn,Ne,Gn,cf)}function vn(te,ae){if(h&&J(ae))return U.marked="keyword",R(vn);if(te=="variable")return $(ae),R();if(te=="spread")return R(vn);if(te=="[")return mt(df,"]");if(te=="{")return mt(da,"}")}function da(te,ae){return te=="variable"&&!U.stream.match(/^\s*:/,!1)?($(ae),R(Gn)):(te=="variable"&&(U.marked="property"),te=="spread"?R(vn):te=="}"?H():te=="["?R(ye,pe("]"),pe(":"),da):R(pe(":"),vn,Gn))}function df(){return H(vn,Gn)}function Gn(te,ae){if(ae=="=")return R(D)}function cf(te){if(te==",")return R(qn)}function ao(te,ae){if(te=="keyword b"&&ae=="else")return R(ce("form","else"),se,de)}function ms(te,ae){if(ae=="await")return R(ms);if(te=="(")return R(ce(")"),ca,de)}function ca(te){return te=="var"?R(qn,Gi):te=="variable"?R(Gi):H(Gi)}function Gi(te,ae){return te==")"?R():te==";"?R(Gi):ae=="in"||ae=="of"?(U.marked="keyword",R(ye,Gi)):H(ye,Gi)}function mi(te,ae){if(ae=="*")return U.marked="keyword",R(mi);if(te=="variable")return $(ae),R(mi);if(te=="(")return R(X,ce(")"),Re(ei,")"),de,tt,se,be);if(h&&ae=="<")return R(ce(">"),Re(Wn,">"),de,mi)}function gi(te,ae){if(ae=="*")return U.marked="keyword",R(gi);if(te=="variable")return $(ae),R(gi);if(te=="(")return R(X,ce(")"),Re(ei,")"),de,tt,be);if(h&&ae=="<")return R(ce(">"),Re(Wn,">"),de,gi)}function gs(te,ae){if(te=="keyword"||te=="variable")return U.marked="type",R(gs);if(ae=="<")return R(ce(">"),Re(Wn,">"),de)}function ei(te,ae){return ae=="@"&&R(ye,ei),te=="spread"?R(ei):h&&J(ae)?(U.marked="keyword",R(ei)):h&&te=="this"?R(Ne,Gn):H(vn,Ne,Gn)}function Ki(te,ae){return te=="variable"?vs(te,ae):lo(te,ae)}function vs(te,ae){if(te=="variable")return $(ae),R(lo)}function lo(te,ae){if(ae=="<")return R(ce(">"),Re(Wn,">"),de,lo);if(ae=="extends"||ae=="implements"||h&&te==",")return ae=="implements"&&(U.marked="keyword"),R(h?Ce:ye,lo);if(te=="{")return R(ce("}"),Tn,de)}function Tn(te,ae){if(te=="async"||te=="variable"&&(ae=="static"||ae=="get"||ae=="set"||h&&J(ae))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",R(Tn);if(te=="variable"||U.style=="keyword")return U.marked="property",R(Ti,Tn);if(te=="number"||te=="string")return R(Ti,Tn);if(te=="[")return R(ye,Ne,pe("]"),Ti,Tn);if(ae=="*")return U.marked="keyword",R(Tn);if(h&&te=="(")return H(gi,Tn);if(te==";"||te==",")return R(Tn);if(te=="}")return R();if(ae=="@")return R(ye,Tn)}function Ti(te,ae){if(ae=="!"||ae=="?")return R(Ti);if(te==":")return R(Ce,Gn);if(ae=="=")return R(D);var ue=U.state.lexical.prev,Ee=ue&&ue.info=="interface";return H(Ee?gi:mi)}function Yi(te,ae){return ae=="*"?(U.marked="keyword",R(Je,pe(";"))):ae=="default"?(U.marked="keyword",R(ye,pe(";"))):te=="{"?R(Re(ys,"}"),Je,pe(";")):H(se)}function ys(te,ae){if(ae=="as")return U.marked="keyword",R(pe("variable"));if(te=="variable")return H(D,ys)}function Ni(te){return te=="string"?R():te=="("?H(ye):te=="."?H(ee):H(Qi,ua,Je)}function Qi(te,ae){return te=="{"?mt(Qi,"}"):(te=="variable"&&$(ae),ae=="*"&&(U.marked="keyword"),R(It))}function ua(te){if(te==",")return R(Qi,ua)}function It(te,ae){if(ae=="as")return U.marked="keyword",R(Qi)}function Je(te,ae){if(ae=="from")return U.marked="keyword",R(ye)}function Di(te){return te=="]"?R():H(Re(D,"]"))}function so(){return H(ce("form"),vn,pe("{"),ce("}"),Re(Kn,"}"),de,de)}function Kn(){return H(vn,Gn)}function bt(te,ae){return te.lastType=="operator"||te.lastType==","||S.test(ae.charAt(0))||/[,.]/.test(ae.charAt(0))}function vi(te,ae,ue){return ae.tokenize==x&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ae.lastType)||ae.lastType=="quasi"&&/\{\s*$/.test(te.string.slice(0,te.pos-(ue||0)))}return{startState:function(te){var ae={tokenize:x,lastType:"sof",cc:[],lexical:new T((te||0)-l,0,"block",!1),localVars:i.localVars,context:i.localVars&&new Q(null,null,!1),indented:te||0};return i.globalVars&&typeof i.globalVars=="object"&&(ae.globalVars=i.globalVars),ae},token:function(te,ae){if(te.sol()&&(ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!1),ae.indented=te.indentation(),I(te,ae)),ae.tokenize!=N&&te.eatSpace())return null;var ue=ae.tokenize(te,ae);return _=="comment"?ue:(ae.lastType=_=="operator"&&(g=="++"||g=="--")?"incdec":_,L(ae,ue,_,g,te))},indent:function(te,ae){if(te.tokenize==N||te.tokenize==V)return r.Pass;if(te.tokenize!=x)return 0;var ue=ae&&ae.charAt(0),Ee=te.lexical,rt;if(!/^\s*else\b/.test(ae))for(var ht=te.cc.length-1;ht>=0;--ht){var vt=te.cc[ht];if(vt==de)Ee=Ee.prev;else if(vt!=ao&&vt!=be)break}for(;(Ee.type=="stat"||Ee.type=="form")&&(ue=="}"||(rt=te.cc[te.cc.length-1])&&(rt==ee||rt==oe)&&!/^[,\.=+\-*:?[\(]/.test(ae));)Ee=Ee.prev;d&&Ee.type==")"&&Ee.prev.type=="stat"&&(Ee=Ee.prev);var Gt=Ee.type,Fn=ue==Gt;return Gt=="vardef"?Ee.indented+(te.lastType=="operator"||te.lastType==","?Ee.info.length+1:0):Gt=="form"&&ue=="{"?Ee.indented:Gt=="form"?Ee.indented+l:Gt=="stat"?Ee.indented+(bt(te,ae)?d||l:0):Ee.info=="switch"&&!Fn&&i.doubleIndentSwitch!=!1?Ee.indented+(/^(?:case|default)\b/.test(ae)?l:2*l):Ee.align?Ee.column+(Fn?0:1):Ee.indented+(Fn?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:vi,skipExpression:function(te){L(te,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})(),function(e,t){(function(r){r(zr())})(function(r){var o="CodeMirror-hint",i="CodeMirror-hint-active";r.showHint=function(g,b,x){if(!b)return g.showHint(x);x&&x.async&&(b.async=!0);var k={hint:b};if(x)for(var N in x)k[N]=x[N];return g.showHint(k)},r.defineExtension("showHint",function(g){g=u(this,this.getCursor("start"),g);var b=this.listSelections();if(!(b.length>1)){if(this.somethingSelected()){if(!g.hint.supportsSelection)return;for(var x=0;x<b.length;x++)if(b[x].head.line!=b[x].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var k=this.state.completionActive=new l(this,g);!k.options.hint||(r.signal(this,"startCompletion",this),k.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function l(g,b){if(this.cm=g,this.options=b,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var x=this;g.on("cursorActivity",this.activityFunc=function(){x.cursorActivity()})}}var d=window.requestAnimationFrame||function(g){return setTimeout(g,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;l.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(g,b){var x=g.list[b],k=this;this.cm.operation(function(){x.hint?x.hint(k.cm,g,x):k.cm.replaceRange(m(x),x.from||g.from,x.to||g.to,"complete"),r.signal(g,"pick",x),k.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var g=this.startPos;this.data&&(g=this.data.from);var b=this.cm.getCursor(),x=this.cm.getLine(b.line);if(b.line!=this.startPos.line||x.length-b.ch!=this.startLen-this.startPos.ch||b.ch<g.ch||this.cm.somethingSelected()||!b.ch||this.options.closeCharacters.test(x.charAt(b.ch-1)))this.close();else{var k=this;this.debounce=d(function(){k.update()}),this.widget&&this.widget.disable()}},update:function(g){if(this.tick!=null){var b=this,x=++this.tick;w(this.options.hint,this.cm,this.options,function(k){b.tick==x&&b.finishUpdate(k,g)})}},finishUpdate:function(g,b){this.data&&r.signal(this.data,"update");var x=this.widget&&this.widget.picked||b&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=g,g&&g.list.length&&(x&&g.list.length==1?this.pick(g,0):(this.widget=new C(this,g),r.signal(g,"shown")))}};function u(g,b,x){var k=g.options.hintOptions,N={};for(var V in _)N[V]=_[V];if(k)for(var V in k)k[V]!==void 0&&(N[V]=k[V]);if(x)for(var V in x)x[V]!==void 0&&(N[V]=x[V]);return N.hint.resolve&&(N.hint=N.hint.resolve(g,b)),N}function m(g){return typeof g=="string"?g:g.text}function h(g,b){var x={Up:function(){b.moveFocus(-1)},Down:function(){b.moveFocus(1)},PageUp:function(){b.moveFocus(-b.menuSize()+1,!0)},PageDown:function(){b.moveFocus(b.menuSize()-1,!0)},Home:function(){b.setFocus(0)},End:function(){b.setFocus(b.length-1)},Enter:b.pick,Tab:b.pick,Esc:b.close},k=/Mac/.test(navigator.platform);k&&(x["Ctrl-P"]=function(){b.moveFocus(-1)},x["Ctrl-N"]=function(){b.moveFocus(1)});var N=g.options.customKeys,V=N?{}:x;function F(T,B){var L;typeof B!="string"?L=function(U){return B(U,b)}:x.hasOwnProperty(B)?L=x[B]:L=B,V[T]=L}if(N)for(var I in N)N.hasOwnProperty(I)&&F(I,N[I]);var P=g.options.extraKeys;if(P)for(var I in P)P.hasOwnProperty(I)&&F(I,P[I]);return V}function y(g,b){for(;b&&b!=g;){if(b.nodeName.toUpperCase()==="LI"&&b.parentNode==g)return b;b=b.parentNode}}function C(g,b){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=g,this.data=b,this.picked=!1;var x=this,k=g.cm,N=k.getInputField().ownerDocument,V=N.defaultView||N.parentWindow,F=this.hints=N.createElement("ul");F.setAttribute("role","listbox"),F.setAttribute("aria-expanded","true"),F.id=this.id;var I=g.cm.options.theme;F.className="CodeMirror-hints "+I,this.selectedHint=b.selectedHint||0;for(var P=b.list,T=0;T<P.length;++T){var B=F.appendChild(N.createElement("li")),L=P[T],U=o+(T!=this.selectedHint?"":" "+i);L.className!=null&&(U=L.className+" "+U),B.className=U,T==this.selectedHint&&B.setAttribute("aria-selected","true"),B.id=this.id+"-"+T,B.setAttribute("role","option"),L.render?L.render(B,b,L):B.appendChild(N.createTextNode(L.displayText||m(L))),B.hintId=T}var H=g.options.container||N.body,R=k.cursorCoords(g.options.alignWithWord?b.from:null),z=R.left,$=R.bottom,A=!0,J=0,Q=0;if(H!==N.body){var G=["absolute","relative","fixed"].indexOf(V.getComputedStyle(H).position)!==-1,ie=G?H:H.offsetParent,X=ie.getBoundingClientRect(),le=N.body.getBoundingClientRect();J=X.left-le.left-ie.scrollLeft,Q=X.top-le.top-ie.scrollTop}F.style.left=z-J+"px",F.style.top=$-Q+"px";var be=V.innerWidth||Math.max(N.body.offsetWidth,N.documentElement.offsetWidth),ce=V.innerHeight||Math.max(N.body.offsetHeight,N.documentElement.offsetHeight);H.appendChild(F),k.getInputField().setAttribute("aria-autocomplete","list"),k.getInputField().setAttribute("aria-owns",this.id),k.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var de=g.options.moveOnOverlap?F.getBoundingClientRect():new DOMRect,pe=g.options.paddingForScrollbar?F.scrollHeight>F.clientHeight+1:!1,se;setTimeout(function(){se=k.getScrollInfo()});var ge=de.bottom-ce;if(ge>0){var ye=de.bottom-de.top,D=R.top-(R.bottom-de.top);if(D-ye>0)F.style.top=($=R.top-ye-Q)+"px",A=!1;else if(ye>ce){F.style.height=ce-5+"px",F.style.top=($=R.bottom-de.top-Q)+"px";var W=k.getCursor();b.from.ch!=W.ch&&(R=k.cursorCoords(W),F.style.left=(z=R.left-J)+"px",de=F.getBoundingClientRect())}}var Y=de.right-be;if(pe&&(Y+=k.display.nativeBarWidth),Y>0&&(de.right-de.left>be&&(F.style.width=be-5+"px",Y-=de.right-de.left-be),F.style.left=(z=Math.max(R.left-Y-J,0))+"px"),pe)for(var q=F.firstChild;q;q=q.nextSibling)q.style.paddingRight=k.display.nativeBarWidth+"px";if(k.addKeyMap(this.keyMap=h(g,{moveFocus:function(he,Se){x.changeActive(x.selectedHint+he,Se)},setFocus:function(he){x.changeActive(he)},menuSize:function(){return x.screenAmount()},length:P.length,close:function(){g.close()},pick:function(){x.pick()},data:b})),g.options.closeOnUnfocus){var ee;k.on("blur",this.onBlur=function(){ee=setTimeout(function(){g.close()},100)}),k.on("focus",this.onFocus=function(){clearTimeout(ee)})}k.on("scroll",this.onScroll=function(){var he=k.getScrollInfo(),Se=k.getWrapperElement().getBoundingClientRect();se||(se=k.getScrollInfo());var Pe=$+se.top-he.top,Le=Pe-(V.pageYOffset||(N.documentElement||N.body).scrollTop);if(A||(Le+=F.offsetHeight),Le<=Se.top||Le>=Se.bottom)return g.close();F.style.top=Pe+"px",F.style.left=z+se.left-he.left+"px"}),r.on(F,"dblclick",function(he){var Se=y(F,he.target||he.srcElement);Se&&Se.hintId!=null&&(x.changeActive(Se.hintId),x.pick())}),r.on(F,"click",function(he){var Se=y(F,he.target||he.srcElement);Se&&Se.hintId!=null&&(x.changeActive(Se.hintId),g.options.completeOnSingleClick&&x.pick())}),r.on(F,"mousedown",function(){setTimeout(function(){k.focus()},20)});var oe=this.getSelectedHintRange();return(oe.from!==0||oe.to!==0)&&this.scrollToActive(),r.signal(b,"select",P[this.selectedHint],F.childNodes[this.selectedHint]),!0}C.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var g=this.completion.cm.getInputField();g.removeAttribute("aria-activedescendant"),g.removeAttribute("aria-owns");var b=this.completion.cm;this.completion.options.closeOnUnfocus&&(b.off("blur",this.onBlur),b.off("focus",this.onFocus)),b.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var g=this;this.keyMap={Enter:function(){g.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(g,b){if(g>=this.data.list.length?g=b?this.data.list.length-1:0:g<0&&(g=b?0:this.data.list.length-1),this.selectedHint!=g){var x=this.hints.childNodes[this.selectedHint];x&&(x.className=x.className.replace(" "+i,""),x.removeAttribute("aria-selected")),x=this.hints.childNodes[this.selectedHint=g],x.className+=" "+i,x.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",x.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],x)}},scrollToActive:function(){var g=this.getSelectedHintRange(),b=this.hints.childNodes[g.from],x=this.hints.childNodes[g.to],k=this.hints.firstChild;b.offsetTop<this.hints.scrollTop?this.hints.scrollTop=b.offsetTop-k.offsetTop:x.offsetTop+x.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=x.offsetTop+x.offsetHeight-this.hints.clientHeight+k.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var g=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-g),to:Math.min(this.data.list.length-1,this.selectedHint+g)}}};function S(g,b){if(!g.somethingSelected())return b;for(var x=[],k=0;k<b.length;k++)b[k].supportsSelection&&x.push(b[k]);return x}function w(g,b,x,k){if(g.async)g(b,k,x);else{var N=g(b,x);N&&N.then?N.then(k):k(N)}}function E(g,b){var x=g.getHelpers(b,"hint"),k;if(x.length){var N=function(V,F,I){var P=S(V,x);function T(B){if(B==P.length)return F(null);w(P[B],V,I,function(L){L&&L.list.length>0?F(L):T(B+1)})}T(0)};return N.async=!0,N.supportsSelection=!0,N}else return(k=g.getHelper(g.getCursor(),"hintWords"))?function(V){return r.hint.fromList(V,{words:k})}:r.hint.anyword?function(V,F){return r.hint.anyword(V,F)}:function(){}}r.registerHelper("hint","auto",{resolve:E}),r.registerHelper("hint","fromList",function(g,b){var x=g.getCursor(),k=g.getTokenAt(x),N,V=r.Pos(x.line,k.start),F=x;k.start<x.ch&&/\w/.test(k.string.charAt(x.ch-k.start-1))?N=k.string.substr(0,x.ch-k.start):(N="",V=x);for(var I=[],P=0;P<b.words.length;P++){var T=b.words[P];T.slice(0,N.length)==N&&I.push(T)}if(I.length)return{list:I,from:V,to:F}}),r.commands.autocomplete=r.showHint;var _={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})}(),function(e,t){(function(r){r(zr())})(function(r){var o=r.Pos;function i(g,b){for(var x=0,k=g.length;x<k;++x)b(g[x])}function l(g,b){if(!Array.prototype.indexOf){for(var x=g.length;x--;)if(g[x]===b)return!0;return!1}return g.indexOf(b)!=-1}function d(g,b,x,k){var N=g.getCursor(),V=x(g,N);if(!/\b(?:string|comment)\b/.test(V.type)){var F=r.innerMode(g.getMode(),V.state);if(F.mode.helperType!=="json"){V.state=F.state,/^[\w$_]*$/.test(V.string)?V.end>N.ch&&(V.end=N.ch,V.string=V.string.slice(0,N.ch-V.start)):V={start:N.ch,end:N.ch,string:"",state:V.state,type:V.string=="."?"property":null};for(var I=V;I.type=="property";){if(I=x(g,o(N.line,I.start)),I.string!=".")return;if(I=x(g,o(N.line,I.start)),!P)var P=[];P.push(I)}return{list:_(V,P,b,k),from:o(N.line,V.start),to:o(N.line,V.end)}}}}function c(g,b){return d(g,S,function(x,k){return x.getTokenAt(k)},b)}r.registerHelper("hint","javascript",c);function u(g,b){var x=g.getTokenAt(b);return b.ch==x.start+1&&x.string.charAt(0)=="."?(x.end=x.start,x.string=".",x.type="property"):/^\.[\w$_]*$/.test(x.string)&&(x.type="property",x.start++,x.string=x.string.replace(/\./,"")),x}function m(g,b){return d(g,w,u,b)}r.registerHelper("hint","coffeescript",m);var h="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),y="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),C="prototype apply call bind".split(" "),S="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),w="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function E(g,b){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var x in g)b(x);else for(var k=g;k;k=Object.getPrototypeOf(k))Object.getOwnPropertyNames(k).forEach(b)}function _(g,b,x,k){var N=[],V=g.string,F=k&&k.globalScope||window;function I(R){R.lastIndexOf(V,0)==0&&!l(N,R)&&N.push(R)}function P(R){typeof R=="string"?i(h,I):R instanceof Array?i(y,I):R instanceof Function&&i(C,I),E(R,I)}if(b&&b.length){var T=b.pop(),B;for(T.type&&T.type.indexOf("variable")===0?(k&&k.additionalContext&&(B=k.additionalContext[T.string]),(!k||k.useGlobalScope!==!1)&&(B=B||F[T.string])):T.type=="string"?B="":T.type=="atom"?B=1:T.type=="function"&&(F.jQuery!=null&&(T.string=="$"||T.string=="jQuery")&&typeof F.jQuery=="function"?B=F.jQuery():F._!=null&&T.string=="_"&&typeof F._=="function"&&(B=F._()));B!=null&&b.length;)B=B[b.pop().string];B!=null&&P(B)}else{for(var L=g.state.localVars;L;L=L.next)I(L.name);for(var U=g.state.context;U;U=U.prev)for(var L=U.vars;L;L=L.next)I(L.name);for(var L=g.state.globalVars;L;L=L.next)I(L.name);if(k&&k.additionalContext!=null)for(var H in k.additionalContext)I(H);(!k||k.useGlobalScope!==!1)&&P(F),i(x,I)}return N}})}();const C4="",De=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},WC="[[FORM-CREATE-PREFIX-",GC="-FORM-CREATE-SUFFIX]]",KC=n.defineComponent({name:"FnEditor",emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,body:Boolean,button:Boolean,fnx:Boolean},inject:["designer"],data(){return{editor:null,fn:"",visible:!1,value:""}},watch:{modelValue(e){e!=this.value&&(!e||!e.__json||e.__json&&e.__json!=this.value)&&this.editor&&this.editor.setValue(this.tidyValue())}},computed:{t(){return this.designer.setupState.t},argStr(){return(this.args||[]).map(e=>typeof e=="string"?e:e.name).join(", ")},argList(){return this.args.map(e=>typeof e=="string"?{name:e,type:"string"}:e)}},mounted(){this.$nextTick(()=>{this.load()})},methods:{save(){const e=this.editor.getValue()||"";if(e.trim()==="")this.fn="";else{let t;try{t=new Function("return function ("+this.argStr+`){
|
||
`+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}},e.props||{},{options:e.options,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=C=>e.value=C),onChange:e.onInput}),null,16,["options","modelValue","onChange"])):e.type==="number"?(n.openBlock(),n.createBlock(c,n.mergeProps({key:1,size:"default"},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=C=>e.value=C),onChange:e.onInput}),null,16,["modelValue","onChange"])):e.type==="select"?(n.openBlock(),n.createBlock(m,n.mergeProps({key:2,size:"default",filterable:"","allow-create":"","default-first-option":""},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=C=>e.value=C),onChange:e.onInput}),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,C=>(n.openBlock(),n.createBlock(u,{label:C.label,value:C.value,key:C.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","onChange"])):e.type==="switch"?(n.openBlock(),n.createBlock(h,n.mergeProps({key:3,size:"default"},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[3]||(t[3]=C=>e.value=C),onChange:e.onInput}),null,16,["modelValue","onChange"])):(n.openBlock(),n.createBlock(y,n.mergeProps({key:4,size:"default"},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[4]||(t[4]=C=>e.value=C),onBlur:e.onInput}),null,16,["modelValue","onBlur"]))])}const r_=De(t_,[["render",i_]]),E4="",o_=n.defineComponent({name:"PatternInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String},data(){return{value:this.modelValue||"",options:[{label:"\u90AE\u7BB1",value:"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"},{label:"\u57DF\u540D",value:"^((http:\\/\\/)|(https:\\/\\/))?([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\\/)$"},{label:"\u624B\u673A\u53F7",value:"^(?:(?:\\+|00)86)?1[3-9]\\d{9}$"},{label:"\u5EA7\u673A\u7535\u8BDD",value:"^(?:(?:\\d{3}-)?\\d{8}|^(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^[1-9]\\d{5}(?:18|19|20)\\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\\d|30|31)\\d{3}[\\dXx]$"},{label:"\u94F6\u884C\u5361\u53F7",value:"^[1-9]\\d{9,29}$"},{label:"\u8F66\u724C\u53F7",value:"^[\u4EAC\u6D25\u6CAA\u6E1D\u5180\u8C6B\u4E91\u8FBD\u9ED1\u6E58\u7696\u9C81\u65B0\u82CF\u6D59\u8D63\u9102\u6842\u7518\u664B\u8499\u9655\u5409\u95FD\u8D35\u7CA4\u9752\u85CF\u5DDD\u5B81\u743C\u4F7F\u9886][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9\u6302\u5B66\u8B66\u6E2F\u6FB3]$"},{label:"\u4E2D\u6587",value:"^(?:[\\u3400-\\u4DB5\\u4E00-\\u9FEA\\uFA0E\\uFA0F\\uFA11\\uFA13\\uFA14\\uFA1F\\uFA21\\uFA23\\uFA24\\uFA27-\\uFA29]|[\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879][\\uDC00-\\uDFFF]|\\uD869[\\uDC00-\\uDED6\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0])+$"},{label:"\u6570\u5B57",value:"^\\d+$"},{label:"\u6574\u6570",value:"^(?:0|(?:-?[1-9]\\d*))$"},{label:"\u6B63\u6574\u6570",value:"^\\+?[1-9]\\d*$"},{label:"\u8D1F\u6574\u6570",value:"^-[1-9]\\d*$"},{label:"\u6D6E\u70B9\u6570",value:"^(-?[1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u6B63\u6D6E\u70B9\u6570",value:"^([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u8D1F\u6D6E\u70B9\u6570",value:"^-([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u82F1\u6587\u5B57\u6BCD",value:"^[a-zA-Z]+$"},{label:"\u6570\u5B57\u548C\u5B57\u6BCD",value:"^[A-Za-z0-9]+$"}]}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}}),a_={class:"_fd-pattern-input"};function l_(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown"),m=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",a_,[n.createVNode(m,{size:e.size,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=h=>e.value=h),onBlur:e.onInput,clearable:""},{append:n.withCtx(()=>[n.createVNode(u,{size:"default",trigger:"click","popper-class":"_fd-pattern-popper"},{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,h=>(n.openBlock(),n.createBlock(d,{key:h.value,onClick:y=>e.setValue(h.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["size","modelValue","onBlur"])])}const bc=De(o_,[["render",l_]]),A4="",s_=n.defineComponent({name:"RuleSelect",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[String,Number,Array],onlyField:Boolean,valueType:String,size:String,multiple:Boolean},computed:{activeRule(){return this.designer.setupState.activeRule},t(){return this.designer.setupState.t},tree(){var o,i,l;const e=this.designer.setupState.activePage;let t=[];e.default?t=this.getFields(this.designer.setupState.treeInfo):t=this.getFields(e.main.field&&e.main===this.activeRule?this.designer.setupState.treeInfo:this.designer.setupState.treeInfo[0].children);let r=(o=this.activeRule)==null?void 0:o.__fc__.parent;for(;r;)if(r.rule===e.main)r=void 0;else if(r.rule._menu&&["array","object","scope"].indexOf(r.rule._menu.subForm)>-1){const d=this.getFields(this.designer.setupState.findTree(r.rule._fc_id));d.length&&t.unshift({value:"___subform",disabled:!0,label:((l=(i=r.refRule)==null?void 0:i.__$title)==null?void 0:l.value)||r.rule.title||r.rule._menu.label,children:d}),r=void 0}else r=r.parent;return t}},methods:{getFields(e,t=[]){const r=[];return e.forEach(({rule:o,children:i})=>{var c,u,m;const l=[...t];o.field&&l.push(o);const d=["array","scope"].indexOf(o._menu.subForm)>-1?[]:this.getFields(i||[],l);if(!this.onlyField||this.onlyField&&o.field){const h={value:t.length?t.map(y=>y[this.valueType||"_fc_id"]).join(".")+"."+o[this.valueType||"_fc_id"]:o[this.valueType||"_fc_id"],label:(((m=(u=(c=o==null?void 0:o.__fc__)==null?void 0:c.refRule)==null?void 0:u.__$title)==null?void 0:m.value)||o.title||"").trim()||o.props&&o.props.label||this.t("com."+(o._menu&&o._menu.name)+".name")||o._menu&&o._menu.label||o.type,rule:o,parent:t};d.length&&(h.children=d),r.push(h)}else r.push(...d)}),r},input(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}}),d_={key:0,class:"_fd-rule-select-node"};function c_(e,t,r,o,i,l){const d=n.resolveComponent("el-tree-select");return n.openBlock(),n.createBlock(d,{class:"_fd-rule-select",modelValue:e.modelValue,"onUpdate:modelValue":e.input,size:e.size,multiple:e.multiple,checkStrictly:"",showCheckbox:e.multiple,data:e.tree},{default:n.withCtx(({data:c})=>[c.value==="___subform"?(n.openBlock(),n.createElementBlock("div",d_,[n.createElementVNode("div",null,n.toDisplayString(c.label),1),n.createElementVNode("span",null,n.toDisplayString(e.t("props.subform")),1)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(c.label),1)],64))]),_:1},8,["modelValue","onUpdate:modelValue","size","multiple","showCheckbox","data"])}const wc=De(s_,[["render",c_]]),S4="",u_=n.defineComponent({name:"ValueInput",emits:["update:modelValue","change","change-type","blur"],inject:["designer"],props:{modelValue:[String,Number,Boolean]},data(){return{type:"1",value:""}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue:{handler:function(e){typeof e=="number"?this.type="2":typeof e=="boolean"?this.type="3":this.type="1",this.value=e==null?"":""+e},immediate:!0},type(){this.updateValue(this.value),this.$emit("change-type",this.type)}},methods:{onBlur(...e){this.value!==this.toValue(this.modelValue)&&this.updateValue(this.value),this.$emit("blur",...e)},updateValue(e){const t=this.toValue(e);this.$emit("update:modelValue",t),this.$emit("change",t)},toValue(e){return this.type==="1"?""+e:this.type==="2"?parseFloat(e)||0:e==="true"}}});function f_(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(u,n.mergeProps({class:"_fd-value-input",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=m=>e.value=m),onBlur:e.onBlur},e.$attrs),n.createSlots({prepend:n.withCtx(()=>[n.createVNode(c,{modelValue:e.type,"onUpdate:modelValue":t[0]||(t[0]=m=>e.type=m),style:{width:"60px"}},{default:n.withCtx(()=>[n.createVNode(d,{label:e.t("validate.types.string"),value:"1"},null,8,["label"]),n.createVNode(d,{label:e.t("validate.types.number"),value:"2"},null,8,["label"]),n.createVNode(d,{label:e.t("validate.types.boolean"),value:"3"},null,8,["label"])]),_:1},8,["modelValue"])]),_:2},[e.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"append")]),key:"0"}:void 0]),1040,["modelValue","onBlur"])}const yl=De(u_,[["render",f_]]),x4="",p_=n.defineComponent({name:"Warning",props:{tooltip:String},data(){return{}}}),h_=["innerHTML"],m_={key:0,class:"_fd-warning-text"},g_={key:1,class:"fc-icon icon-question"};function v_(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip");return n.openBlock(),n.createBlock(d,{effect:"dark",placement:"top-start","popper-class":"_fd-warning-pop"},{content:n.withCtx(()=>[n.createElementVNode("span",{innerHTML:e.tooltip},null,8,h_)]),default:n.withCtx(()=>[e.$slots.default?(n.openBlock(),n.createElementBlock("span",m_,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("i",g_))]),_:3})}const Jn=De(p_,[["render",v_]]),k4="",y_=n.defineComponent({name:"VariableConfig",components:{Warning:Jn},emits:["submit","confirm"],props:{popover:Boolean},inject:["designer"],data(){return{visible:!1,activeIdx:0,variable:"",value:{},fields:[],expandedKeys:["$topForm","$cookie","$localStorage","$sessionStorage","$globalData","$var"]}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventNum(){return((this.activeRule||{})._loadData||[]).length},treeInfo(){var i,l,d,c,u,m;const e=this.toObject(this.designer.setupState.varList||[]),t=[{id:"$topForm",label:this.t("computed.form"),driver:!0,children:this.getFormTree(this.designer.setupState.treeInfo)},{id:"$cookie",label:"cookie"},{id:"$localStorage",label:"localStorage"},{id:"$sessionStorage",label:"sessionStorage"},{id:"$globalData",label:this.t("props.globalData"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalData||{}).map(h=>({label:this.designer.setupState.formOptions.globalData[h].label,id:h}))},{id:"$var",label:this.t("computed.variable.title"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalVariable||{}).map(h=>({label:this.designer.setupState.formOptions.globalVariable[h].label,id:h}))}],r=this.designer.setupState.activePage;!r.default&&r.main.field&&r.main!==this.activeRule&&(t[0].id="$scopeForm",t[0].children.length&&(t[0].children=t[0].children[0].children));let o=(i=this.activeRule)==null?void 0:i.__fc__.parent;for(;o;)if(o.rule===r.main)o=void 0;else if(o.rule._menu&&["array","object","scope"].indexOf(o.rule._menu.subForm)>-1){const h=this.getFormTree(this.designer.setupState.findTree(o.rule._fc_id));h.length&&t.unshift({id:"$form",driver:!0,label:((d=(l=o.refRule)==null?void 0:l.__$title)==null?void 0:d.value)||o.rule.title||o.rule._menu.label,children:h}),o=void 0}else o=o.parent;if(this.designer.setupState.getConfig("showLanguage")!==!1){let h=((c=this.designer.setupState.formOptions)==null?void 0:c.language)||{},y=h[((m=(u=this.designer.props)==null?void 0:u.locale)==null?void 0:m.name)||"zh-cn"]||h[Object.keys(h)[0]]||{};t.push({id:"$t",label:this.t("language.name"),driver:!0,children:Object.keys(y).map(C=>({label:y[C],id:C}))})}return e.$cookie&&(t[1]={...t[1],...e.$cookie}),e.$localStorage&&(t[2]={...t[2],...e.$localStorage}),e.$sessionStorage&&(t[3]={...t[3],...e.$sessionStorage}),e.$globalData&&e.$globalData.children&&(t[4].children=Object.values({...this.toObject(t[4].children),...this.toObject(e.$globalData.children||[])})),e.$var&&e.$var.children&&(t[5].children=Object.values({...this.toObject(t[5].children),...this.toObject(e.$var.children||[])})),delete e.$cookie,delete e.$localStorage,delete e.$sessionStorage,delete e.$globalData,delete e.$var,t.push(...Object.values(e)),t}},watch:{visible(e){e&&(this.updateFields(),this.activeIdx=0)}},methods:{openVariableConfig(){this.designer.setupState.openGlobalVariableDialog()},toObject(e){const t={};return e&&e.forEach(r=>{t[r.id]=r}),t},nodeClick(e,t){if((this.popover||this.fields[this.activeIdx])&&!e.driver){let r=e.id;for(t=t.parent;t.level>=1;)r=t.data.id+"."+r,t=t.parent;this.popover?this.variable=r:this.fields[this.activeIdx].value=r}},getTitle(e){var t,r,o;return(((o=(r=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:r.__$title)==null?void 0:o.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},getFormTree(e){const t=[];return e.forEach(({rule:r,children:o})=>{var l,d,c;const i=r.field&&(!r._menu||r._menu.subForm!=="object")?[]:this.getFormTree(o||[]);if(r.field){const u={id:r.field,label:((c=(d=(l=r==null?void 0:r.__fc__)==null?void 0:l.refRule)==null?void 0:d.__$title)==null?void 0:c.value)||r.title,rule:r};i.length&&(u.children=i),t.push(u)}else t.push(...i)}),t},tranField(e){return e.indexOf("formCreate")===0?e=La(e.replace("formCreate","")):e="props."+e,e.replaceAll(">",".")},updateFields(){const e=this.designer.setupState,t=[],r={};(e.activeRule._loadData||[]).forEach(l=>{r[l.to]=l.attr});const o=[];e.activeRule.field&&o.push({label:this.t("computed.value.name"),attach:!0,modify:!0,field:"value"});const i=e.propsForm.api.model();Object.keys(i).forEach(l=>{if(l&&(l[0]!=="_"||i[l]._fc_important_prop)&&i[l].title&&i[l]._fc_important_prop!==!1&&!i[l].hidden&&i[l].display!==!1){const d=typeof i[l]._fc_important_prop=="string"?i[l]._fc_important_prop:l;(i[l]._fc_important_prop===!0?o:t).push({label:i[l].title,modify:d==="formCreateChild",field:this.tranField(d)})}}),t.unshift(...o),t.forEach(l=>{l.value=r[l.field]||""}),this.fields=t},open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.activeIdx=e)},submit(){const e=[];this.fields.forEach(t=>{let r=(t.value||"").trim();if(r){const o={attr:r,to:t.field};t.modify&&(o.modify=!0),e.push(o)}}),this.designer.setupState.activeRule._loadData=e,this.visible=!1},confirm(){const e=(this.variable||"").trim();e&&(this.$emit("confirm",`{{${e}}}`),this.$refs.pop.hide(),this.variable="")}}}),b_={class:"_fd-variable"},w_={style:{width:"230px"}},C_={class:"_fd-variable-item-label"},__={class:"_fd-variable-info"};function E_(e,t,r,o,i,l){const d=n.resolveComponent("el-input"),c=n.resolveComponent("el-header"),u=n.resolveComponent("el-tree"),m=n.resolveComponent("el-main"),h=n.resolveComponent("el-container"),y=n.resolveComponent("el-popover"),C=n.resolveComponent("el-badge"),S=n.resolveComponent("Warning"),w=n.resolveComponent("el-aside"),E=n.resolveComponent("el-button"),_=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",b_,[e.popover?(n.openBlock(),n.createBlock(y,{key:0,ref:"pop",placement:"bottom",width:330,"hide-after":0,trigger:"click",persistent:!1,"popper-class":"_fd-variable-pop"},{reference:n.withCtx(()=>t[7]||(t[7]=[n.createElementVNode("i",{class:"fc-icon icon-variable",style:{cursor:"pointer"}},null,-1)])),default:n.withCtx(()=>[n.createVNode(h,{style:{height:"100%"}},{default:n.withCtx(()=>[n.createVNode(c,{height:"55px",class:"_fd-variable-pop-header"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",modelValue:e.variable,"onUpdate:modelValue":t[1]||(t[1]=g=>e.variable=g)},{prefix:n.withCtx(()=>t[8]||(t[8]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" }} ")])),append:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[0]||(t[0]=(...g)=>e.confirm&&e.confirm(...g))},n.toDisplayString(e.t("props.append")),1)]),_:1},8,["modelValue"]),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[2]||(t[2]=(...g)=>e.openVariableConfig&&e.openVariableConfig(...g))})]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(u,{ref:"treeRef",data:e.treeInfo,"default-expanded-keys":e.expandedKeys,"expand-on-click-node":!1,indent:10,"node-key":"id",onNodeClick:e.nodeClick},{default:n.withCtx(({node:g,data:b})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-pop-node",{disabled:b.disabled}])},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((b.label||"").trim()||(b.rule?e.getTitle(b.rule):b.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(b.id),1)],2)]),_:1},8,["data","default-expanded-keys","onNodeClick"])]),_:1})]),_:1})]),_:1},512)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(C,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-variable-btn",onClick:t[3]||(t[3]=(...g)=>e.open&&e.open(...g))},[t[10]||(t[10]=n.createElementVNode("i",{class:"fc-icon icon-variable"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind")),1)])]),_:1},8,["value","hidden"]),n.createVNode(_,{class:"_fd-variable-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=g=>e.visible=g),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind"))+" ",1),n.createVNode(S,{tooltip:e.t("warning.variable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(E,{size:"default",onClick:t[5]||(t[5]=g=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(E,{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(h,{class:"_fd-variable-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(h,{class:"_fd-variable-l"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createElementVNode("div",w_,n.toDisplayString(e.t("computed.variable.attr")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("computed.variable.bind")),1)]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fields,(g,b)=>(n.openBlock(),n.createElementBlock("div",{key:g.label,class:n.normalizeClass(["_fd-variable-item",{active:b===e.activeIdx,"_fd-variable-top":g.attach===!0}])},[n.createElementVNode("div",C_,n.toDisplayString(g.label),1),t[13]||(t[13]=n.createElementVNode("div",null,"=",-1)),n.createVNode(d,{modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,placeholder:"_",onFocus:x=>e.activeIdx=b,clearable:""},{prefix:n.withCtx(()=>t[11]||(t[11]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[12]||(t[12]=[n.createTextVNode(" }} ")])),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])],2))),128))]),_:1})]),_:1})]),_:1}),n.createVNode(w,{style:{width:"328px"}},{default:n.withCtx(()=>[n.createVNode(h,{class:"_fd-variable-r"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.list"))+" ",1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[4]||(t[4]=(...g)=>e.openVariableConfig&&e.openVariableConfig(...g))})]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[n.createElementVNode("div",__,n.toDisplayString(e.t("warning.variableInfo")),1),n.createVNode(u,{ref:"treeRef",data:e.treeInfo,"default-expanded-keys":e.expandedKeys,"expand-on-click-node":!1,"node-key":"id",indent:10,onNodeClick:e.nodeClick},{default:n.withCtx(({node:g,data:b})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-node",{disabled:b.disabled}])},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((b.label||"").trim()||(b.rule?e.getTitle(b.rule):b.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(b.id),1)],2)]),_:1},8,["data","default-expanded-keys","onNodeClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))])}const jo=De(y_,[["render",E_]]),T4="",Ur={input:["==","!=","on","notOn","empty","notEmpty","pattern"],select:["==","!=","on","notOn","empty","notEmpty"],switch:["==","!="],number:["==","!=",">",">=","<","<=","empty","notEmpty"]};Ur.cascader=Ur.select;const _h=n.defineComponent({name:"ConditionGroup",components:{VariableConfig:jo,ValueInput:yl,RuleSelect:wc,PatternInput:bc,ConditionInput:r_},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[Object,Array]},computed:{formulaLabel(){return["==","!=","on","notOn","empty","notEmpty","pattern",">",">=","<","<="].reduce((e,t)=>(e[t]=this.t("computed.formulas."+t),e),{})},activeRule(){return this.designer.setupState.activeRule},rules(){var r;let e=(r=this.activeRule)==null?void 0:r.__fc__.parent,t=[];for(;e;)if(e.rule._menu&&e.rule._menu.subForm){t=this.getFields(this.designer.setupState.findTree(e.rule._fc_id));break}else e=e.parent;return[...t,...this.getFields(this.designer.setupState.treeInfo)]},t(){return this.designer.setupState.t}},data(){return{mode:"AND",list:[],ConditionGroup:n.markRaw(_h)}},methods:{selectVar(e,t){e.field=t.slice(2,-2),this.changeField(e)},addItem(){this.list.push({type:"field"})},addItemGroup(){this.list.push({mode:"AND"})},removeItem(e){this.list.splice(e,1),this.onInput()},changeType(e){e.field="",e.input=null,e.formula=null},changeField(e){e.field?(e.condition="==",e.type==="field"?this.tidyItem(e):(e.input=!0,e.formula=Ur.select.map(t=>({label:this.formulaLabel[t],value:t})))):(e.input=null,e.formula=null),this.onInput()},getFields(e,t=[]){const r=[];return e.forEach(({rule:o,children:i})=>{const l=[...t];o.field&&l.push(o);const d=this.getFields(i||[],l);if(o.field){const c={field:o.field,value:t.length?t.map(u=>u.field).join(".")+"."+o.field:o.field,label:o.title,rule:o};r.push(c,...d)}else r.push(...d)}),r},tidyValue(){let e=this.modelValue;e&&(Array.isArray(e)&&(e={mode:"AND",group:e}),this.mode=e.mode==="OR"?"OR":"AND",this.list=(e.group||[]).map(t=>t.mode!=null?t:this.tidyItem({...t}))),this.list.length||this.list.push({type:"field"},{type:"field"})},tidyItem(e){return e.variable?(e.input=!0,e.field=e.variable,e.formula=Ur.select.map(t=>({label:this.formulaLabel[t],value:t})),e.type="variable",e):(e.type="field",this.rules.forEach(t=>{if(t.value===e.field||t.field===e.field){const r=t.rule._menu.condition,o=r?ct.Function(r)?r(t.rule):ct.String(r)?{type:r}:{...r}:{type:"input"};o.options&&(o.options=ct.String(o.options)?Br(t.rule.__fc__.prop,o.options):o.options),e.formula=(Ur[o.type]||Ur.input).map(i=>({label:this.formulaLabel[i],value:i})),e.var=!!e.compare,e.input=o}}),e)},onInput(){let e=[];this.list.forEach(t=>{if(t.field&&t.condition&&(t.compare||["empty","notEmpty"].indexOf(t.condition)>-1||t.value!=null&&t.value!=="")){const r={[t.type]:t.field,condition:t.condition};t.compare&&t.var?r.compare=t.compare:r.value=t.value,e.push(r)}else t.group&&e.push(t)}),e.length===1&&e[0].mode!=null?e=e[0]:e=e.length>0?{mode:this.mode,group:e}:void 0,!(!e&&(!this.modelValue||!this.modelValue.group))&&(this.$emit("update:modelValue",e),this.$emit("change",e))}},created(){this.tidyValue()}}),A_=_h,S_={class:"_fd-cdg-input"},x_={class:"_fd-cdg-item"},k_={class:"_fd-cdg-and"},T_={class:"_fd-cdg-options"},N_=["onClick"],D_={key:3,class:"_fd-cfg-value"},O_=["onClick"],V_={class:"_fd-cdg-btns"};function B_(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("ConditionGroup",!0),m=n.resolveComponent("VariableConfig"),h=n.resolveComponent("el-input"),y=n.resolveComponent("RuleSelect"),C=n.resolveComponent("ValueInput"),S=n.resolveComponent("PatternInput"),w=n.resolveComponent("ConditionInput"),E=n.resolveComponent("el-checkbox"),_=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",S_,[n.createElementVNode("div",x_,[n.createElementVNode("div",k_,[e.list.length>0?(n.openBlock(),n.createBlock(c,{key:0,size:"default",modelValue:e.mode,"onUpdate:modelValue":t[0]||(t[0]=g=>e.mode=g),onChange:e.onInput},{default:n.withCtx(()=>[n.createVNode(d,{label:"AND",value:"AND"}),n.createVNode(d,{label:"OR",value:"OR"})]),_:1},8,["modelValue","onChange"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",T_,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(g,b)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[g.mode!=null?(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option is-group",key:g.field+"a"+b+e.list.length},[n.createVNode(u,{modelValue:e.list[b],"onUpdate:modelValue":x=>e.list[b]=x,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-add-circle",{disabled:e.list.length===1}]),onClick:x=>e.removeItem(b)},null,10,N_)])):(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option",key:b},[n.createVNode(c,{style:{width:"85px"},size:"default",modelValue:g.type,"onUpdate:modelValue":x=>g.type=x,onChange:x=>e.changeType(g)},{default:n.withCtx(()=>[n.createVNode(d,{label:e.t("props.field"),value:"field"},null,8,["label"]),n.createVNode(d,{label:e.t("props.variable"),value:"variable"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),g.type==="variable"?(n.openBlock(),n.createBlock(h,{class:"_fd-cdg-variable",size:"default",modelValue:g.field,"onUpdate:modelValue":x=>g.field=x,clearable:"",onChange:x=>e.changeField(g),key:"variable"},{suffix:n.withCtx(()=>[n.createVNode(m,{popover:"",onConfirm:x=>e.selectVar(g,x)},null,8,["onConfirm"])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(y,{class:"_fd-cdg-field",size:"default",onlyField:"",valueType:"field",modelValue:g.field,"onUpdate:modelValue":x=>g.field=x,clearable:"",multiple:!1,onChange:x=>e.changeField(g),key:"field"},null,8,["modelValue","onUpdate:modelValue","onChange"])),g.formula?(n.openBlock(),n.createBlock(c,{key:2,class:"_fd-cdg-term",size:"default",modelValue:g.condition,"onUpdate:modelValue":x=>g.condition=x,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(g.formula,x=>(n.openBlock(),n.createBlock(d,{key:x.value,label:x.label,value:x.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):n.createCommentVNode("",!0),g.input&&["empty","notEmpty"].indexOf(g.condition)===-1?(n.openBlock(),n.createElementBlock("div",D_,[g.var?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-cdg-field",size:"default",onlyField:"",valueType:"field",modelValue:g.compare,"onUpdate:modelValue":x=>g.compare=x,clearable:"",multiple:!1,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):g.type==="variable"?(n.openBlock(),n.createBlock(C,{key:1,size:"default",modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):g.condition==="pattern"?(n.openBlock(),n.createBlock(S,{size:"default",key:g.field,modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(w,n.mergeProps({key:3,ref_for:!0},g.input,{key:g.field,modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,onChange:e.onInput}),null,16,["modelValue","onUpdate:modelValue","onChange"])),n.createVNode(E,{modelValue:g.var,"onUpdate:modelValue":x=>g.var=x,size:"default",label:e.t("props.field")},null,8,["modelValue","onUpdate:modelValue","label"])])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:x=>e.removeItem(b)},null,8,O_)]))],64))),256))])]),n.createElementVNode("div",V_,[n.createVNode(_,{link:"",type:"primary",onClick:e.addItem},{default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addCondition")),1)]),_:1},8,["onClick"]),n.createVNode(_,{link:"",type:"primary",onClick:e.addItemGroup},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addGroup")),1)]),_:1},8,["onClick"])])])}const R_=De(A_,[["render",B_]]),N4="",$_=n.defineComponent({name:"ComputedConfig",components:{Warning:Jn,RuleSelect:wc,ConditionGroup:R_},props:{modelValue:[String,Object,Array],type:String,title:String,name:String,btn:String,validLabel:String,invertLabel:String},inject:["designer"],data(){const e=(t,r,o,i=[])=>{const l=[];return t.forEach(({rule:d,children:c})=>{var y,C,S;const u=[...i];let m=o;d.field&&(u.push(d),m||(m=d.field===r&&this.type==="value"));const h=e(c||[],r,m,u);if(d.field){const w={value:d.field,label:((S=(C=(y=d==null?void 0:d.__fc__)==null?void 0:y.refRule)==null?void 0:C.__$title)==null?void 0:S.value)||d.title,rule:d,parent:i,formula:!0};h.length&&(w.children=h),l.push(w)}else l.push(...h)}),l};return{editor:null,visible:!1,expandedKeys:["_form","_formula","_subform"],err:"",status:"computed",value:"",condition:void 0,formulaInfo:"",formulaExample:"",oldValue:"",invert:!1,linkage:"",getFields:e}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},activeRule(){return this.designer.setupState.activeRule},treeInfo(){var i,l,d;let e=(i=this.activeRule)==null?void 0:i.__fc__.parent;const t=this.designer.setupState.activePage;let r=[];t.default?r=this.getFields(this.designer.setupState.treeInfo,this.activeRule.field):r=this.getFields(t.main.field&&t.main===this.activeRule?this.designer.setupState.treeInfo:this.designer.setupState.treeInfo[0].children,this.activeRule.field);const o=[{id:"_form",label:this.t("computed.form"),children:r},{id:"_formula",label:this.t("computed.formula"),children:hh.map(c=>({label:this.t("formula."+c.key),children:c.children.map(u=>({label:u,info:this.t("formula."+u),example:gc[u]||"",formula:!0}))}))}];for(;e;)if(e.rule===t.main)e=void 0;else if(e.rule._menu&&["array","object"].indexOf(e.rule._menu.subForm)>-1){const c=this.getFields(this.designer.setupState.findTree(e.rule._fc_id),this.activeRule.field);c.length&&o.unshift({id:"_subform",label:((d=(l=e==null?void 0:e.refRule)==null?void 0:l.__$title)==null?void 0:d.value)||e.rule.title||e.rule._menu.label,children:c}),e=void 0}else e=e.parent;return o}},watch:{visible(e){e&&this.update()},status(e){e==="computed"&&this.load()}},beforeUnmount(){document.querySelector("._fd-comp-script")&&document.querySelector("._fd-comp-script").removeEventListener("mouseover",this.spanOver)},methods:{update(){this.linkage="",this.type==="value"||this.modelValue&&ct.String(this.modelValue)?(this.status="computed",this.load(),this.condition=void 0):(this.status="condition",this.condition=this.modelValue?at(this.modelValue):void 0,this.condition&&(this.invert=this.condition.invert===!0,this.linkage=this.condition.linkage||""))},getTitle(e){var t,r,o;return(((o=(r=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:r.__$title)==null?void 0:o.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},setField(e){e.disabled!==!0&&this.markRule(`"${e.rule.field}"`,this.getTitle(e.rule),"id")},spanOver(e){if(e.target.classList.contains("cm-keyword")){const t=e.target.innerText.trim();this.formulaInfo=this.t("formula."+t)||"",this.formulaExample=gc[t]||""}},nodeOver(e){this.formulaInfo=e.info||"",this.formulaExample=e.example||""},markRule(e,t,r){const o=this.editor.getValue();if(o){const d=this.editor.getCursor().ch;[" ","(",",",")","{","}","[","]"].indexOf(o.substr(d-1,1))===-1&&this.editor.replaceRange(" ",this.editor.getCursor())}this.editor.replaceRange(e,this.editor.getCursor());const i=this.editor.getCursor(),l=document.createElement("span");l.innerText=t,l.classList.add("cm-fc-"+r),this.editor.markText({line:i.line,ch:i.ch-e.length},i,{replacedWith:l})},nodeClick(e){if(!(!e.formula||e.disabled===!0)){if(e.rule){const t=[],r=[];let o=!1;if(e.parent.forEach(i=>{i._menu&&i._menu.subForm==="array"&&(o=!0),t.push(i.field),r.push(this.getTitle(i))}),o)return this.setColumn(e);t.push(e.rule.field),r.push(this.getTitle(e.rule)),this.markRule(t.join("."),r.join("."),"field")}else this.editor.replaceRange(e.label+"()",this.editor.getCursor()),this.editor.moveH(-1,"char");this.editor.focus()}},setColumn(e){let t=!1;const r=[],o=[],i=[];e.parent.forEach(l=>{t?i.push(l):(t=l._menu&&l._menu.subForm==="array",r.push(l.field),o.push(this.getTitle(l)))}),i.push(e.rule),i.reverse().forEach(l=>{this.nodeClick({label:"COLUMN",formula:!0}),this.editor.replaceRange(",",this.editor.getCursor()),this.setField({rule:l}),this.editor.moveH(-1-l.field.length-2,"char")}),this.markRule(r.join("."),o.join("."),"field")},submit(){if(this.status==="computed"){const e=this.editor.getValue().trim();(this.oldValue!==e||!ct.String(this.modelValue))&&(this.oldValue=e,this.$emit("update:modelValue",e))}else{let e=this.condition?{...this.condition}:this.condition;e&&(this.type==="linkage"?this.linkage?e.linkage=this.linkage:e="":this.invert?e.invert=!0:delete e.invert),this.$emit("update:modelValue",e||"")}this.visible=!1},setValue(e){const t=this.designer.setupState.fields().map(cp);e=e.replace(new RegExp(`["'](${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])["']`,"g"),r=>"__var___"+r+"__var__"),e=e.replace(new RegExp(`(?<!__var___")(${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])`,"g"),r=>"__var___"+r+"__var__"),e.split("__var__").forEach(r=>{let o;if(r.indexOf("_")===0){r=r.slice(1);const i=["'",'"'].indexOf(r[0])>-1;i&&(r=r.slice(1).slice(0,-1));let l=0;if(r.indexOf(".")>-1){const d=r.split(".");r=d.pop(),l=d.length}if(o=this.designer.setupState.dragForm.api.all().filter(d=>d&&d.field===r)[0],o){if(i)this.setField({rule:o});else{const d=[o.field],c=[this.getTitle(o)];let u=o.__fc__.parent;for(;u&&l>0;)u.input&&(l--,d.unshift(u.rule.field),c.unshift(this.getTitle(u.rule))),u=u.parent;this.markRule(d.join("."),c.join("."),"field")}return}}this.editor.replaceRange(r,this.editor.getCursor())})},load(){this.value=ct.String(this.modelValue)?this.modelValue:"",this.oldValue=this.value,this.err=this.formulaInfo="",this.$nextTick(()=>{document.querySelector("._fd-comp-script").addEventListener("mouseover",this.spanOver),this.editor=n.markRaw(Si(this.$refs.editor,{lineNumbers:!0,mode:"fcComputedMode",line:!0,tabSize:2,lineWrapping:!0,value:"",extraKeys:{Enter:function(){return!1}}})),this.setValue(this.value||""),this.editor.on("beforeChange",(e,t)=>{if(t.origin==="paste"){const r=t.text[0]||"";r&&this.setValue(r),t.cancel()}}),this.editor})}}}),I_={class:"_fd-computed"},F_={class:"_fd-comp-title"},M_={class:"_fd-comp-title",style:{"margin-top":"30px"}},P_={class:"_fd-comp-linkage"},L_={class:"_fd-comp-title",style:{"margin-top":"30px"}},j_=["onMouseover"],z_={key:0,class:"_group"},U_={key:1,class:"_subform"},H_=["onClick"],W_={key:0,ref:"editor",class:"_fd-comp-script"},G_={key:0,class:"_fd-comp-info"},K_={key:0},Y_={key:1},Q_={key:2,style:{color:"#f56c6c"}};function J_(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-tab-pane"),h=n.resolveComponent("el-tabs"),y=n.resolveComponent("ConditionGroup"),C=n.resolveComponent("RuleSelect"),S=n.resolveComponent("el-radio"),w=n.resolveComponent("el-radio-group"),E=n.resolveComponent("el-main"),_=n.resolveComponent("el-container"),g=n.resolveComponent("el-tree"),b=n.resolveComponent("el-aside"),x=n.resolveComponent("el-header"),k=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",I_,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=N=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.btn||e.title),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(k,{class:"_fd-comp-dialog _fd-config-dialog",title:e.title,modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=N=>e.visible=N),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[5]||(t[5]=N=>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.submit,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.type!=="value"?(n.openBlock(),n.createBlock(h,{key:0,class:"_fd-preview-tabs",modelValue:e.status,"onUpdate:modelValue":t[1]||(t[1]=N=>e.status=N)},{default:n.withCtx(()=>[n.createVNode(m,{name:"condition"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.type==="linkage"?e.t("computed.value.title"):e.t("computed.condition"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.computedCondition")},null,8,["tooltip"])]),_:1}),n.createVNode(m,{name:"computed"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.name"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.computedFormula")},null,8,["tooltip"])]),_:1})]),_:1},8,["modelValue"])):n.createCommentVNode("",!0),e.status==="condition"?(n.openBlock(),n.createBlock(_,{key:1,class:"_fd-comp-condition"},{default:n.withCtx(()=>[n.createVNode(E,null,{default:n.withCtx(()=>[n.createElementVNode("div",F_,n.toDisplayString(e.t("computed.setting")),1),e.visible?(n.openBlock(),n.createBlock(y,{key:0,modelValue:e.condition,"onUpdate:modelValue":t[2]||(t[2]=N=>e.condition=N),ref:"condition"},null,8,["modelValue"])):n.createCommentVNode("",!0),e.type==="linkage"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",M_,n.toDisplayString(e.t("computed.linkage.trigger")),1),n.createElementVNode("div",P_,[n.createTextVNode(n.toDisplayString(e.t("computed.linkage.info.0"))+" ",1),n.createVNode(C,{modelValue:e.linkage,"onUpdate:modelValue":t[3]||(t[3]=N=>e.linkage=N),size:"small",onlyField:"",valueType:"field",clearable:""},null,8,["modelValue"]),n.createTextVNode(" "+n.toDisplayString(e.t("computed.linkage.info.1")),1)])],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("div",L_,n.toDisplayString(e.t("computed.invert")),1),n.createVNode(w,{modelValue:e.invert,"onUpdate:modelValue":t[4]||(t[4]=N=>e.invert=N)},{default:n.withCtx(()=>[n.createVNode(S,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.invertLabel),1)]),_:1}),n.createVNode(S,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.validLabel),1)]),_:1})]),_:1},8,["modelValue"])],64))]),_:1})]),_:1})):(n.openBlock(),n.createBlock(_,{key:2,class:"_fd-comp-con"},{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[n.createVNode(g,{ref:"treeRef",data:e.treeInfo,"default-expanded-keys":e.expandedKeys,"expand-on-click-node":!1,"node-key":"id",indent:10,onNodeClick:e.nodeClick},{default:n.withCtx(({node:N,data:V})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-comp-node",{disabled:V.disabled}]),onMouseover:F=>e.nodeOver(V)},[n.createElementVNode("div",null,[V.rule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[V.rule._menu.subForm==="object"?(n.openBlock(),n.createElementBlock("span",z_,"{ "+n.toDisplayString(e.t("props.group"))+" }",1)):n.createCommentVNode("",!0),V.rule._menu.subForm==="array"?(n.openBlock(),n.createElementBlock("span",U_,"[ "+n.toDisplayString(e.t("props.collection"))+" ]",1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(V.rule?e.getTitle(V.rule):(V.label||"").trim()),1)]),V.rule?(n.openBlock(),n.createElementBlock("span",{key:0,class:"_fd-comp-id",onClick:n.withModifiers(F=>e.setField(V),["stop"])}," ID ",8,H_)):n.createCommentVNode("",!0)],42,j_)]),_:1},8,["data","default-expanded-keys","onNodeClick"])]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-comp-r"},{default:n.withCtx(()=>[n.createVNode(x,{class:"_fd-comp-head",height:"40px"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.name||e.title),1)]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",W_,null,512)):n.createCommentVNode("",!0)]),_:1}),e.formulaInfo||e.err?(n.openBlock(),n.createElementBlock("div",G_,[e.formulaInfo?(n.openBlock(),n.createElementBlock("div",K_,n.toDisplayString(e.t("computed.formulaInfo"))+": "+n.toDisplayString(e.formulaInfo),1)):n.createCommentVNode("",!0),e.formulaExample?(n.openBlock(),n.createElementBlock("div",Y_,n.toDisplayString(e.t("computed.formulaExample"))+": "+n.toDisplayString(e.formulaExample),1)):n.createCommentVNode("",!0),e.err?(n.openBlock(),n.createElementBlock("div",Q_,n.toDisplayString(e.t("validate.message"))+": "+n.toDisplayString(e.err),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}))]),_:1},8,["title","modelValue"])])}const Eh=De($_,[["render",J_]]),D4="",bl="$FNX:",Ah=e=>ct.String(e)&&e.indexOf(bl)===0,X_=n.defineComponent({name:"EventConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],componentName:"",hook:{type:Boolean,default:!0},eventName:{type:Array,default:()=>[]}},inject:["designer"],components:{Warning:Jn,ComputedConfig:Eh,FnEditor:xi,fcDraggable:Lr,DragForm:je.$form()},data(){return{visible:!1,activeData:null,activeBehavior:null,val:null,defActive:"no",hookList:["hook_load","hook_mounted","hook_deleted","hook_watch","hook_value","hook_hidden"],event:[],cus:!1,cusValue:"",eventType:"fn",eventKey:"",eventStr:"",eventNum:0,id:0,form:{rule:[],options:{form:{labelPosition:"right",size:"small",labelWidth:"auto"},appendValue:!1,submitBtn:!1},api:{},formData:{}}}},computed:{useEventKeys(){const e={};return this.event.forEach(t=>{e[t.name]=!0}),Object.keys(e)},behaviorMenu(){const e=[];return mh.forEach(t=>{e.push({label:t.key,children:t.children.map(r=>({label:r,value:r}))})}),e},t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventInfo(){const e={};return this.eventName.forEach(t=>{e[t]=this.t("com."+this.componentName+".event."+t)||this.t("eventInfo."+t)||""}),this.hookList.forEach(t=>{e[t]=this.t("eventInfo."+t)||""}),e},globalEvent(){return this.designer.setupState.formOptions.globalEvent||{}},options(){return Object.keys(this.globalEvent).map(e=>({label:this.globalEvent[e].label,value:"$GLOBAL:"+e}))},fnArgs(){return[nn(this.t)]}},watch:{visible(e){e?this.init():(this.destroy(),this.closeCus())}},methods:{openConfig(){this.designer.setupState.openGlobalEventDialog()},addCus(){const e=this.cusValue&&this.cusValue.trim();e&&(this.closeCus(),this.add(e))},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},loadFnStr(e){if(Ah(e))return e.replace(bl,"");if(ct.Function(e)){const t=e.__json||"";return t?Ah(t)?t.replace(bl,""):t:""+e}else if(e&&e.indexOf("$GLOBAL:")===0)return e},parseBehavior(e){if(e.id=this.id++,e.method==="callback"){const t=this.loadFnStr(e.callback);t&&(e.callback=t)}return e},init(){const e=this.activeRule?at(this.activeRule.$behavior||{}):{},t=this.activeRule?{...this.activeRule.hook||{}}:{},r={...at(this.modelValue||{})};Object.keys(t).forEach(i=>{r["hook_"+i]=t[i]});const o=[];Object.keys(r).forEach(i=>{(Array.isArray(r[i])?r[i]:[r[i]]).forEach(d=>{const c={name:i,id:this.id++},u=this.loadFnStr(d);u&&(c.handle=u),c.behaviors=(e[i]||[]).map(this.parseBehavior),delete e[i],o.push(c)})}),Object.keys(e).forEach(i=>{o.push({name:i,id:this.id++,handle:"",behaviors:(e[i]||[]).map(this.parseBehavior)})}),this.event=o,this.eventNum=o.length},getValue(){const e={},t={},r={};let o=0;return this.event.forEach(i=>{let l=!1;if(i.handle){l=!0;let d=e;const c=i.handle.indexOf("$GLOBAL:")!==0?bl+i.handle:i.handle;i.name.indexOf("hook_")>-1?r[i.name.replace("hook_","")]=c:(d[i.name]||(d[i.name]=[]),d[i.name].push(c))}i.behaviors&&i.behaviors.length&&(l=!0,t[i.name]=i.behaviors.map(d=>(delete d.id,d))),l&&o++}),Object.keys(e).forEach(i=>{e[i]=e[i].length===1?e[i][0]:e[i]}),{on:e,behaviors:t,hooks:r,num:o}},add(e){this.event.push({name:e,id:this.id++,behaviors:[]}),this.activeData||this.edit(this.event.length-1)},edit(e){this.defActive!==this.event[e].id&&(this.destroy(),this.activeData=this.event[e],this.val=this.activeData.handle||"",this.eventType=this.val.indexOf("$GLOBAL:")===0?"event":"fn",this.eventType==="event"?(this.eventKey=this.val,this.eventStr=""):(this.eventStr=this.val,this.eventKey=""),this.defActive=this.activeData.id)},rm(e){this.event.splice(e,1),(this.activeData&&this.defActive===this.activeData.id||this.activeBehavior&&e===this.activeBehavior.pid)&&this.destroy()},save(){return new Promise(e=>{if(this.activeData){let t=this.eventKey;if(this.eventType!=="event"){if(!this.$refs.fn.save())return!1;t=this.eventStr}this.activeData.handle=t,this.destroy(),e()}else if(this.activeBehavior){const t=r=>{this.activeBehavior.config={...r||{}};const o={...this.activeBehavior},i=o.pid;Object.keys(o.config).length||delete o.config,delete o.pid,this.event[i].behaviors.forEach((l,d)=>{l.id===o.id&&(this.event[i].behaviors[d]=o)})};this.form.rule&&this.form.rule.length?this.form.api.validate().then(()=>{t(this.form.formData),this.destroy(),e()}).catch(()=>{}):(t(),this.destroy(),e())}else e()})},addBehavior(e){this.event[e].behaviors.push({method:"openModel",id:this.id++,ignoreError:!1,stopPropagation:"",expression:""}),!this.activeData&&!this.activeBehavior&&this.editBehavior(e,this.event[e].behaviors.length-1)},editBehavior(e,t){this.destroy(),this.activeBehavior=at(this.event[e].behaviors[t]),this.activeBehavior.pid=e,this.defActive=this.activeBehavior.id,this.updateBehaviorForm()},updateBehaviorForm(){let e=gh[this.activeBehavior.method];ct.Function(e)&&(e=e(this.designer.setupState));const t=r=>{r.field&&!r.title&&(r.title=this.t("behavior."+this.activeBehavior.method+".props."+r.field)||this.t("behavior.props."+r.field)||this.t("props."+r.field),r.warning=this.t("behavior."+this.activeBehavior.method+".warning."+r.field))};e?(this.form.rule=e.map(r=>(t(r),r.control&&r.control.forEach(o=>{o.rule&&o.rule.forEach(i=>{t(i)})}),r)),this.$nextTick(()=>{this.form.api.setValue(this.activeBehavior.config||{})})):this.clearBehaviorForm()},clearBehaviorForm(){this.form.rule=[],this.form.formData={}},rmBehavior(e,t){this.event[e].behaviors.splice(t,1),this.activeBehavior&&this.defActive===this.activeBehavior.id&&this.destroy()},handleSelect(e){this.activeBehavior.method!==e&&(this.activeBehavior.method=e,this.updateBehaviorForm())},destroy(){this.activeBehavior=null,this.activeData=null,this.val=null,this.defActive=null,this.clearBehaviorForm()},close(){this.destroy()},submit(){this.save().then(()=>{const{on:e,behaviors:t,num:r,hooks:o}=this.getValue();this.$emit("update:modelValue",e),this.activeRule.$behavior=t,this.activeRule.hook=o,this.visible=!1,this.eventNum=r})}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}},created(){this.init()}}),Z_={class:"_fd-event"},q_={class:"_fd-event-item"},eE={key:0,class:"_fd-label"},tE={class:"_fd-event-item"},nE={class:"_fd-label"},iE={class:"_fd-menu"},rE=["onClick"],oE={class:"_fd-event-method"},aE={key:0,class:"_fd-label"},lE=["onClick"],sE=["onClick"],dE={class:"_fd-event-behaviors"},cE=["onClick"],uE={class:"_fd-event-behavior-label"},fE=["onClick"],pE={class:"_fd-event-behavior-info"},hE={key:0,class:"_fd-menu-item",style:{"padding-left":"10px"}},mE={class:"_fd-event-title"},gE={class:"_fd-event-select"},vE={class:"_fd-event-behavior-title"},yE={class:"_fd-event-behavior-title"},bE={key:0,class:"_fd-event-behavior-title"},wE={class:"_fd-event-behavior-title"},CE={class:"_fd-form-item-warning"},_E={class:"_fd-form-item-warning"},EE={class:"_fd-form-item-warning"};function AE(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-dropdown-item"),m=n.resolveComponent("el-dropdown-menu"),h=n.resolveComponent("el-dropdown"),y=n.resolveComponent("el-header"),C=n.resolveComponent("el-tooltip"),S=n.resolveComponent("fcDraggable"),w=n.resolveComponent("el-input"),E=n.resolveComponent("el-main"),_=n.resolveComponent("el-container"),g=n.resolveComponent("el-aside"),b=n.resolveComponent("FnEditor"),x=n.resolveComponent("el-tab-pane"),k=n.resolveComponent("el-option"),N=n.resolveComponent("el-select"),V=n.resolveComponent("el-tabs"),F=n.resolveComponent("el-menu-item"),I=n.resolveComponent("el-sub-menu"),P=n.resolveComponent("el-menu"),T=n.resolveComponent("Warning"),B=n.resolveComponent("DragForm"),L=n.resolveComponent("el-radio-button"),U=n.resolveComponent("el-radio-group"),H=n.resolveComponent("el-form-item"),R=n.resolveComponent("ComputedConfig"),z=n.resolveComponent("el-form"),$=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",Z_,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",size:"small",onClick:t[0]||(t[0]=A=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),n.createVNode($,{class:"_fd-event-dialog _fd-config-dialog",title:e.t("event.title"),modelValue:e.visible,"onUpdate:modelValue":t[14]||(t[14]=A=>e.visible=A),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[13]||(t[13]=A=>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(_,{class:"_fd-event-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(g,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-event-l"},{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-event-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(h,{"popper-class":"_fd-event-dropdown",trigger:"click",size:"default",placement:"bottom-start"},{dropdown:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.eventName,A=>(n.openBlock(),n.createBlock(u,{key:A,onClick:J=>e.add(A),disabled:e.useEventKeys.indexOf(A)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",q_,[n.createElementVNode("span",null,n.toDisplayString(A),1),e.eventInfo[A]?(n.openBlock(),n.createElementBlock("span",eE,n.toDisplayString(e.eventInfo[A]),1)):n.createCommentVNode("",!0)])]),_:2},1032,["onClick","disabled"]))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hookList,(A,J)=>(n.openBlock(),n.createBlock(u,{divided:e.eventName.length>0&&!J,onClick:Q=>e.add(A),disabled:e.useEventKeys.indexOf(A)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",tE,[n.createElementVNode("div",null,n.toDisplayString(A),1),n.createElementVNode("span",nE,n.toDisplayString(e.eventInfo[A]),1)])]),_:2},1032,["divided","onClick","disabled"]))),256)),n.createVNode(u,{divided:e.eventName.length>0||e.hook,onClick:e.cusEvent},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(e.t("props.custom")),1)]),_:1},8,["divided","onClick"])]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.create")),1),t[15]||(t[15]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createElementVNode("div",iE,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(A,J)=>(n.openBlock(),n.createElementBlock("div",{key:A.id,class:n.normalizeClass(["_fd-menu-item",{"is-active":A.id===e.defActive}])},[n.createElementVNode("div",{class:"_fd-event-title",onClick:n.withModifiers(Q=>e.edit(J),["stop"])},[n.createElementVNode("div",oE,[n.createElementVNode("span",null,[t[16]||(t[16]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(A.name),1)]),e.eventInfo[A.name]?(n.openBlock(),n.createElementBlock("span",aE,n.toDisplayString(e.eventInfo[A.name]),1)):n.createCommentVNode("",!0)]),A.name!=="hook_load"?(n.openBlock(),n.createBlock(C,{key:0,effect:"dark",content:e.t("behavior.add"),placement:"top","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-task-add",onClick:n.withModifiers(Q=>e.addBehavior(J),["stop"])},null,8,lE)]),_:2},1032,["content"])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(Q=>e.rm(J),["stop"])},null,8,sE)],8,rE),n.createElementVNode("div",dE,[n.createVNode(S,{group:{name:"behavior",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",list:A.behaviors},{item:n.withCtx(({element:Q,index:G})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-event-behavior",{"is-active":Q.id===e.defActive}]),onClick:n.withModifiers(ie=>e.editBehavior(J,G),["stop"])},[n.createElementVNode("div",uE,[n.createElementVNode("div",null,[t[17]||(t[17]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString(e.t("behavior."+Q.method+".name")),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(ie=>e.rmBehavior(J,G),["stop"])},null,8,fE)]),n.createElementVNode("div",pE,n.toDisplayString(e.t("behavior."+Q.method+".info")||e.t("behavior."+Q.method+".name")),1)],10,cE)]),_:2},1032,["list"])])],2))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",hE,[n.createElementVNode("div",mE,[n.createVNode(w,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[1]||(t[1]=A=>e.cusValue=A),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...A)=>e.addCus&&e.addCus(...A),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...A)=>e.closeCus&&e.closeCus(...A),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-event-r"},{default:n.withCtx(()=>[e.activeData||e.activeBehavior?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-event-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(E,{key:1},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(V,{modelValue:e.eventType,"onUpdate:modelValue":t[7]||(t[7]=A=>e.eventType=A),class:"_fc-tabs",key:e.activeData.key},{default:n.withCtx(()=>[n.createVNode(x,{label:e.t("props.custom"),name:"fn",lazy:""},{default:n.withCtx(()=>[n.createVNode(b,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[4]||(t[4]=A=>e.eventStr=A),body:"",name:e.activeData.name,args:e.fnArgs,style:{height:"519px"}},null,8,["modelValue","name","args"])]),_:1},8,["label"]),n.createVNode(x,{label:e.t("form.globalEvent"),name:"event"},{default:n.withCtx(()=>[n.createElementVNode("div",gE,[n.createVNode(N,{modelValue:e.eventKey,"onUpdate:modelValue":t[5]||(t[5]=A=>e.eventKey=A),clearable:"",filterable:"",style:{width:"240px","margin-left":"15px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,A=>(n.openBlock(),n.createBlock(k,{key:A.value,label:A.label,value:A.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n.createElementVNode("span",{class:"_fc-manage-text",onClick:t[6]||(t[6]=(...A)=>e.openConfig&&e.openConfig(...A))},t[18]||(t[18]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])]),_:1},8,["label"])]),_:1},8,["modelValue"]))]),_:1})):n.createCommentVNode("",!0),e.activeBehavior?(n.openBlock(),n.createBlock(E,{key:2,class:"is-behavior"},{default:n.withCtx(()=>[n.createVNode(g,{width:"220px",class:"_fd-event-behavior-list"},{default:n.withCtx(()=>[n.createElementVNode("div",vE,n.toDisplayString(e.t("behavior.props.execute")),1),n.createVNode(P,{defaultActive:e.activeBehavior.method,onSelect:e.handleSelect},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.behaviorMenu,A=>(n.openBlock(),n.createBlock(I,{index:A.label},{title:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(e.t("props."+A.label)),1)]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(A.children,J=>(n.openBlock(),n.createBlock(F,{key:J.value,index:J.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior."+J.label+".name")),1)]),_:2},1032,["index"]))),128))]),_:2},1032,["index"]))),256))]),_:1},8,["defaultActive","onSelect"])]),_:1}),n.createVNode(E,{class:"_fd-event-behavior-con"},{default:n.withCtx(()=>[n.createElementVNode("div",yE,[n.createTextVNode(n.toDisplayString(e.t("behavior.props.info"))+" ",1),n.createElementVNode("div",null,n.toDisplayString(e.t("behavior."+e.activeBehavior.method+".info")||e.t("behavior."+e.activeBehavior.method+".name")),1)]),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createElementBlock("div",bE,n.toDisplayString(e.t("designer.rule")),1)):n.createCommentVNode("",!0),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createBlock(B,{key:1,rule:e.form.rule,option:e.form.options,modelValue:e.form.formData,"onUpdate:modelValue":t[8]||(t[8]=A=>e.form.formData=A),api:e.form.api,"onUpdate:api":t[9]||(t[9]=A=>e.form.api=A)},{title:n.withCtx(A=>[A.rule.warning?(n.openBlock(),n.createBlock(T,{key:0,tooltip:A.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(A.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(A.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","api"])):n.createCommentVNode("",!0),n.createElementVNode("div",wE,n.toDisplayString(e.t("designer.advanced")),1),n.createVNode(z,{size:"small",labelWidth:"auto"},{default:n.withCtx(()=>[n.createVNode(H,{label:e.t("behavior.props.ignoreError")},{default:n.withCtx(()=>[n.createVNode(U,{modelValue:e.activeBehavior.ignoreError,"onUpdate:modelValue":t[10]||(t[10]=A=>e.activeBehavior.ignoreError=A)},{default:n.withCtx(()=>[n.createVNode(L,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.continue")),1)]),_:1}),n.createVNode(L,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.stop")),1)]),_:1})]),_:1},8,["modelValue"]),n.createElementVNode("div",CE,n.toDisplayString(e.t("warning.behaviorIgnoreError")),1)]),_:1},8,["label"]),n.createVNode(H,{label:e.t("behavior.props.expression")},{default:n.withCtx(()=>[n.createVNode(R,{modelValue:e.activeBehavior.expression,"onUpdate:modelValue":t[11]||(t[11]=A=>e.activeBehavior.expression=A),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.break"),validLabel:e.t("behavior.props.continue")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",_E,n.toDisplayString(e.t("warning.behaviorExpression")),1)]),_:1},8,["label"]),n.createVNode(H,{label:e.t("behavior.props.stopPropagation")},{default:n.withCtx(()=>[n.createVNode(R,{modelValue:e.activeBehavior.stopPropagation,"onUpdate:modelValue":t[12]||(t[12]=A=>e.activeBehavior.stopPropagation=A),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.continue"),validLabel:e.t("behavior.props.stop")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",EE,n.toDisplayString(e.t("warning.behaviorStopPropagation")),1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const Sh=De(X_,[["render",AE]]),xh=n.defineComponent({name:"VNode",props:{fn:Function},render(){const e=this.fn();return Array.isArray(e)?n.h(n.Fragment,{},e):e}});function wl(e,t){var r=null;return function(...o){r!==null&&clearTimeout(r),r=setTimeout(()=>e.call(this,...o),t)}}/*!
|
||
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("/\\*","\\*/"),RE=Cl("#","$");var _l=Object.freeze({__proto__:null,APOS_STRING_MODE:DE,BACKSLASH_ESCAPE:Uo,BINARY_NUMBER_MODE:{scope:"number",begin:Fh,relevance:0},BINARY_NUMBER_RE:Fh,COMMENT:Cl,C_BLOCK_COMMENT_MODE:BE,C_LINE_COMMENT_MODE:VE,C_NUMBER_MODE:{scope:"number",begin:Ih,relevance:0},C_NUMBER_RE:Ih,END_SAME_AS_BEGIN:e=>Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}}),HASH_COMMENT_MODE:RE,IDENT_RE:Rh,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+Ac,relevance:0},NUMBER_MODE:{scope:"number",begin:$h,relevance:0},NUMBER_RE:$h,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:OE,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Uo,{begin:/\[/,end:/\]/,relevance:0,contains:[Uo]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=sr(t,/.*\b/,e.binary,/\b.*/)),zi({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,o)=>{r.index!==0&&o.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:Rh,relevance:0},UNDERSCORE_IDENT_RE:Ac,UNDERSCORE_TITLE_MODE:{scope:"title",begin:Ac,relevance:0}});function $E(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function IE(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function FE(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=$E,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ME(e,t){Array.isArray(e.illegal)&&(e.illegal=_c(...e.illegal))}function PE(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function LE(e,t){e.relevance===void 0&&(e.relevance=1)}const jE=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(o=>{delete e[o]}),e.keywords=r.keywords,e.begin=sr(r.beforeMatch,Vh(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},zE=["of","and","for","in","not","or","if","then","parent","list","value"],UE="keyword";function Mh(e,t,r=UE){const o=Object.create(null);return typeof e=="string"?i(r,e.split(" ")):Array.isArray(e)?i(r,e):Object.keys(e).forEach(l=>{Object.assign(o,Mh(e[l],t,l))}),o;function i(l,d){t&&(d=d.map(c=>c.toLowerCase())),d.forEach(c=>{const u=c.split("|");o[u[0]]=[l,HE(u[0],u[1])]})}}function HE(e,t){return t?Number(t):(r=>zE.includes(r.toLowerCase()))(e)?0:1}const Ph={},dr=e=>{console.error(e)},Lh=(e,...t)=>{console.log("WARN: "+e,...t)},Hr=(e,t)=>{Ph[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ph[`${e}/${t}`]=!0)},El=Error();function jh(e,t,{key:r}){let o=0;const i=e[r],l={},d={};for(let c=1;c<=t.length;c++)d[c+o]=i[c],l[c+o]=!0,o+=Bh(t[c-1]);e[r]=d,e[r]._emit=l,e[r]._multi=!0}function WE(e){(t=>{t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)})(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),(t=>{if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw dr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),El;if(typeof t.beginScope!="object"||t.beginScope===null)throw dr("beginScope must be object"),El;jh(t,t.begin,{key:"beginScope"}),t.begin=Ec(t.begin,{joinWith:""})}})(e),(t=>{if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw dr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),El;if(typeof t.endScope!="object"||t.endScope===null)throw dr("endScope must be object"),El;jh(t,t.end,{key:"endScope"}),t.end=Ec(t.end,{joinWith:""})}})(e)}function GE(e){function t(i,l){return RegExp(zo(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(l?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,l]),this.matchAt+=Bh(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(d=>d[1]);this.matcherRe=t(Ec(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(l);if(!d)return null;const c=d.findIndex((m,h)=>h>0&&m!==void 0),u=this.matchIndexes[c];return d.splice(0,c),Object.assign(d,u)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const d=new r;return this.rules.slice(l).forEach(([c,u])=>d.addRule(c,u)),d.compile(),this.multiRegexes[l]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,d){this.rules.push([l,d]),d.type==="begin"&&this.count++}exec(l){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let c=d.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=zi(e.classNameAliases||{}),function i(l,d){const c=l;if(l.isCompiled)return c;[IE,PE,WE,jE].forEach(m=>m(l,d)),e.compilerExtensions.forEach(m=>m(l,d)),l.__beforeBegin=null,[FE,ME,LE].forEach(m=>m(l,d)),l.isCompiled=!0;let u=null;return typeof l.keywords=="object"&&l.keywords.$pattern&&(l.keywords=Object.assign({},l.keywords),u=l.keywords.$pattern,delete l.keywords.$pattern),u=u||/\w+/,l.keywords&&(l.keywords=Mh(l.keywords,e.case_insensitive)),c.keywordPatternRe=t(u,!0),d&&(l.begin||(l.begin=/\B|\b/),c.beginRe=t(c.begin),l.end||l.endsWithParent||(l.end=/\B|\b/),l.end&&(c.endRe=t(c.end)),c.terminatorEnd=zo(c.end)||"",l.endsWithParent&&d.terminatorEnd&&(c.terminatorEnd+=(l.end?"|":"")+d.terminatorEnd)),l.illegal&&(c.illegalRe=t(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(m=>(h=>(h.variants&&!h.cachedVariants&&(h.cachedVariants=h.variants.map(y=>zi(h,{variants:null},y))),h.cachedVariants?h.cachedVariants:zh(h)?zi(h,{starts:h.starts?zi(h.starts):null}):Object.isFrozen(h)?zi(h):h))(m==="self"?l:m))),l.contains.forEach(m=>{i(m,c)}),l.starts&&i(l.starts,d),c.matcher=(m=>{const h=new o;return m.contains.forEach(y=>h.addRule(y.begin,{rule:y,type:"begin"})),m.terminatorEnd&&h.addRule(m.terminatorEnd,{type:"end"}),m.illegal&&h.addRule(m.illegal,{type:"illegal"}),h})(c),c}(e)}function zh(e){return!!e&&(e.endsWithParent||zh(e.starts))}class KE extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const Sc=Nh,Uh=zi,Hh=Symbol("nomatch"),Wh=e=>{const t=Object.create(null),r=Object.create(null),o=[];let i=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",d={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:xE};function u(x){return c.noHighlightRe.test(x)}function m(x,k,N){let V="",F="";typeof k=="object"?(V=x,N=k.ignoreIllegals,F=k.language):(Hr("10.7.0","highlight(lang, code, ...args) has been deprecated."),Hr("10.7.0",`Please use highlight(code, options) instead.
|
||
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){if(se.message&&se.message.includes("Illegal"))return{language:x,value:Sc(k),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:ce,context:k.slice(ce-100,ce+100),mode:se.mode,resultSoFar:Q},_emitter:X};if(i)return{language:x,value:Sc(k),illegal:!1,relevance:0,errorRaised:se,_emitter:X,_top:G};throw se}}function y(x,k){k=k||c.languages||Object.keys(t);const N=(B=>{const L={value:Sc(B),illegal:!1,relevance:0,_top:d,_emitter:new c.__emitter(c)};return L._emitter.addText(B),L})(x),V=k.filter(E).filter(g).map(B=>h(B,x,!1));V.unshift(N);const F=V.sort((B,L)=>{if(B.relevance!==L.relevance)return L.relevance-B.relevance;if(B.language&&L.language){if(E(B.language).supersetOf===L.language)return 1;if(E(L.language).supersetOf===B.language)return-1}return 0}),[I,P]=F,T=I;return T.secondBest=P,T}function C(x){let k=null;const N=(I=>{let P=I.className+" ";P+=I.parentNode?I.parentNode.className:"";const T=c.languageDetectRe.exec(P);if(T){const B=E(T[1]);return B||(Lh(l.replace("{}",T[1])),Lh("Falling back to no-highlight mode for this block.",I)),B?T[1]:"no-highlight"}return P.split(/\s+/).find(B=>u(B)||E(B))})(x);if(u(N))return;if(b("before:highlightElement",{el:x,language:N}),x.dataset.highlighted)return console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",x);if(x.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(x)),c.throwUnescapedHTML))throw new KE("One of your code blocks includes unescaped HTML.",x.innerHTML);k=x;const V=k.textContent,F=N?m(V,{language:N,ignoreIllegals:!0}):y(V);x.innerHTML=F.value,x.dataset.highlighted="yes",((I,P,T)=>{const B=P&&r[P]||T;I.classList.add("hljs"),I.classList.add("language-"+B)})(x,N,F.language),x.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(x.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),b("after:highlightElement",{el:x,result:F,text:V})}let S=!1;function w(){document.readyState!=="loading"?document.querySelectorAll(c.cssSelector).forEach(C):S=!0}function E(x){return x=(x||"").toLowerCase(),t[x]||t[r[x]]}function _(x,{languageName:k}){typeof x=="string"&&(x=[x]),x.forEach(N=>{r[N.toLowerCase()]=k})}function g(x){const k=E(x);return k&&!k.disableAutodetect}function b(x,k){const N=x;o.forEach(V=>{V[N]&&V[N](k)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",()=>{S&&w()},!1),Object.assign(e,{highlight:m,highlightAuto:y,highlightAll:w,highlightElement:C,highlightBlock:x=>(Hr("10.7.0","highlightBlock will be removed entirely in v12.0"),Hr("10.7.0","Please use highlightElement now."),C(x)),configure:x=>{c=Uh(c,x)},initHighlighting:()=>{w(),Hr("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:()=>{w(),Hr("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:(x,k)=>{let N=null;try{N=k(e)}catch(V){if(dr("Language definition for '{}' could not be registered.".replace("{}",x)),!i)throw V;dr(V),N=d}N.name||(N.name=x),t[x]=N,N.rawDefinition=k.bind(null,e),N.aliases&&_(N.aliases,{languageName:x})},unregisterLanguage:x=>{delete t[x];for(const k of Object.keys(r))r[k]===x&&delete r[k]},listLanguages:()=>Object.keys(t),getLanguage:E,registerAliases:_,autoDetection:g,inherit:Uh,addPlugin:x=>{(k=>{k["before:highlightBlock"]&&!k["before:highlightElement"]&&(k["before:highlightElement"]=N=>{k["before:highlightBlock"](Object.assign({block:N.el},N))}),k["after:highlightBlock"]&&!k["after:highlightElement"]&&(k["after:highlightElement"]=N=>{k["after:highlightBlock"](Object.assign({block:N.el},N))})})(x),o.push(x)},removePlugin:x=>{const k=o.indexOf(x);k!==-1&&o.splice(k,1)}}),e.debugMode=()=>{i=!1},e.safeMode=()=>{i=!0},e.versionString="11.9.0",e.regex={concat:sr,lookahead:Vh,either:_c,optional:TE,anyNumberOfTimes:kE};for(const x in _l)typeof _l[x]=="object"&&kh(_l[x]);return Object.assign(e,_l),e},Wr=Wh({});Wr.newInstance=()=>Wh({});/*! `xml` grammar compiled for Highlight.js 11.9.0 */var YE=(()=>e=>{const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(i,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,c,d,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,l,c,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})();/*! `javascript` grammar compiled for Highlight.js 11.9.0 */var QE=(()=>{const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],o=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],d=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],c=[].concat(l,o,i);return u=>{const m=u.regex,h=e,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,G)=>{const ie=Q[0].length+Q.index,X=Q.input[ie];if(X==="<"||X===",")return void G.ignoreMatch();let le;X===">"&&(((ce,{after:de})=>{const pe="</"+ce[0].slice(1);return ce.input.indexOf(pe,de)!==-1})(Q,{after:ie})||G.ignoreMatch());const be=Q.input.substring(ie);((le=be.match(/^\s*=/))||(le=be.match(/^\s+extends\s+/))&&le.index===0)&&G.ignoreMatch()}},C={$pattern:e,keyword:t,literal:r,built_in:c,"variable.language":d},S="[0-9](_?[0-9])*",w=`\\.(${S})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",_={className:"number",variants:[{begin:`(\\b(${E})((${w})|\\.)?|(${w}))[eE][+-]?(${S})\\b`},{begin:`\\b(${E})\\b((${w})\\b|\\.)?|(${w})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:C,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},x={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,g],subLanguage:"css"}},k={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,g]},V={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},F=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,b,x,k,N,{match:/\$\d+/},_];g.contains=F.concat({begin:/\{/,end:/\}/,keywords:C,contains:["self"].concat(F)});const I=[].concat(V,g.contains),P=I.concat([{begin:/\(/,end:/\)/,keywords:C,contains:["self"].concat(I)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:P},B={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,m.concat(h,"(",m.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...o,...i]}},U={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},H={match:m.concat(/\b/,(R=[...l,"super","import"],m.concat("(?!",R.join("|"),")")),h,m.lookahead(/\(/)),className:"title.function",relevance:0};var R;const z={begin:m.concat(/\./,m.lookahead(m.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},A="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(A)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:C,exports:{PARAMS_CONTAINS:P,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,b,x,k,N,V,{match:/\$\d+/},_,L,{className:"attr",begin:h+m.lookahead(":"),relevance:0},J,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[V,u.REGEXP_MODE,{className:"function",begin:A,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:P}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,u.inherit(u.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},H,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},B,$,{match:/\$[(.]/}]}}})();const O4="",JE=n.defineComponent({name:"ConfigItem",components:{Warning:Jn},props:{label:String,info:String,warning:String,appendBackground:String,arrow:{type:Boolean,default:!0},showAppend:Boolean},data(){return{visit:!1}}}),XE={class:"_fd-config-item"},ZE={class:"_fd-ci-head"},qE={key:0,class:"_fd-ci-con"},eA={key:1,class:"_fd-ci-info"};function tA(e,t,r,o,i,l){const d=n.resolveComponent("Warning");return n.openBlock(),n.createElementBlock("div",XE,[n.createElementVNode("div",ZE,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-ci-label",e.$slots.append&&e.arrow!==!1?"is-arrow":""]),onClick:t[0]||(t[0]=c=>e.visit=e.$slots.append&&e.arrow!==!1&&!e.visit)},[e.warning?(n.openBlock(),n.createBlock(d,{key:0,tooltip:e.warning},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"label",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)])]),_:3},8,["tooltip"])):n.renderSlot(e.$slots,"label",{key:1},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)]),e.$slots.append&&e.arrow!==!1?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["fc-icon icon-down",e.showAppend||e.visit?"down":""])},null,2)):n.createCommentVNode("",!0)],2),e.$slots.default||e.info?(n.openBlock(),n.createElementBlock("div",qE,[e.$slots.default?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("span",eA,n.toDisplayString(e.info),1))])):n.createCommentVNode("",!0)]),e.showAppend||e.visit?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-ci-append",style:n.normalizeStyle("background:"+e.appendBackground)},[n.renderSlot(e.$slots,"append")],4)):n.createCommentVNode("",!0)])}const Rn=De(JE,[["render",tA]]),V4="",nA=n.defineComponent({name:"PageInput",inject:["designer"],emits:["add","delete","change"],computed:{activePage(){return this.designer.setupState.activePage},pageData(){return this.designer.setupState.pageData},t(){return this.designer.setupState.t},containerList(){const e=this.designer.setupState.dragRuleList;return Object.keys(e).map(t=>{if(e[t].container)return e[t]}).filter(t=>!!t)}},methods:{copy(e){si(e)},getPageName(e){return this.t("com."+e.name+".name")||e.label},getPageLabel(e){return e.default?this.t("designer.main"):Br(e.main,e.config.labelField,"")||this.getPageName(e.main._menu)}}}),iA={class:"_fd-page-input"},rA=["onClick"],oA={class:"_fd-page-label"},aA={key:0,class:"fc-icon icon-yes"},lA={key:0,class:"_fd-page-id"},sA=["onClick"],dA={key:0,class:"_fd-page-btns"},cA=["onClick"],uA=["onClick"];function fA(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dropdown-item"),u=n.resolveComponent("el-dropdown-menu"),m=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",iA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,(h,y)=>(n.openBlock(),n.createElementBlock("div",{key:h.main?h.main.name:"",class:n.normalizeClass(["_fd-page-item",{active:h===e.activePage}]),onClick:C=>e.$emit("change",y)},[n.createElementVNode("div",null,[n.createElementVNode("div",oA,[n.createElementVNode("span",null,n.toDisplayString(e.getPageLabel(h)),1),h===e.activePage?(n.openBlock(),n.createElementBlock("i",aA)):n.createCommentVNode("",!0)]),h.main?(n.openBlock(),n.createElementBlock("div",lA,[n.createTextVNode(" ID\uFF1A"+n.toDisplayString(h.main.name)+" ",1),n.createElementVNode("i",{onClick:n.withModifiers(C=>e.copy(h.main.name),["stop"]),class:"fc-icon icon-group"},null,8,sA)])):n.createCommentVNode("",!0)]),h.default?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",dA,[n.createElementVNode("div",{class:"_fd-page-copy",onClick:n.withModifiers(C=>e.$emit("copy",y),["stop"])},t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]),8,cA),n.createElementVNode("div",{class:"_fd-page-del",onClick:n.withModifiers(C=>e.$emit("delete",y),["stop"])},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,uA)]))],10,rA))),128)),n.createVNode(m,{size:"default",trigger:"click"},{dropdown:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.containerList,h=>(n.openBlock(),n.createBlock(c,{key:h.name,onClick:y=>e.$emit("add",h.name)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.getPageName(h)),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.addPage")),1),t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))]),_:1})]),_:1})])}const pA=De(nA,[["render",fA]]);function Gh(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function Ho(e){let t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return t.indexOf("-")===0&&(t=t.substr(1)),t}function Kh(e,t,r){let o=e,i;return(t||"").split(".").forEach(l=>{i&&((!o[i]||typeof o[i]!="object")&&(o[i]={}),o=o[i]),i=l}),o[i]=r,o}var Yh={exports:{}},Wo={},Al={exports:{}},xc={},kc={},Qh;function Tc(){if(Qh)return kc;Qh=1;function e(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var o=new e(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},e.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},e.prototype.has_match=function(o){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(o))return!0;return!1},e.prototype.set_indent=function(o,i){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(o){this.__items.push(o);var i=o.lastIndexOf(`
|
||
`);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-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",l="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",d="(?:"+l+"|["+t+o+"])",c="(?:"+l+"|["+r+o+i+"])*";e.identifier=new RegExp(d+c,"g"),e.identifierStart=new RegExp(d),e.identifierMatch=new RegExp("(?:"+l+"|["+r+o+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
|
||
|`+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=function(r){var o=this.__position-1;return o>=r.length&&this.__input.substring(o-r.length,o).toLowerCase()===r},Bc.InputScanner=t,Bc}var Sl={},$c={},rm;function hA(){if(rm)return $c;rm=1;function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}return e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var r=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(r=this.__tokens[t]),r},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},$c.TokenStream=e,$c}var Ic={},Fc={},om;function xl(){if(om)return Fc;om=1;function e(t,r){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,r&&(this._starting_pattern=this._input.get_regexp(r._starting_pattern,!0),this._match_pattern=this._input.get_regexp(r._match_pattern,!0),this._until_pattern=this._input.get_regexp(r._until_pattern),this._until_after=r._until_after)}return e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return(!this._starting_pattern||t)&&(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var r=this._create();return r._until_after=!0,r._until_pattern=this._input.get_regexp(t),r._update(),r},e.prototype.until=function(t){var r=this._create();return r._until_after=!1,r._until_pattern=this._input.get_regexp(t),r._update(),r},e.prototype.starting_with=function(t){var r=this._create();return r._starting_pattern=this._input.get_regexp(t,!0),r._update(),r},e.prototype.matching=function(t){var r=this._create();return r._match_pattern=this._input.get_regexp(t,!0),r._update(),r},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},Fc.Pattern=e,Fc}var am;function mA(){if(am)return Ic;am=1;var e=xl().Pattern;function t(r,o){e.call(this,r,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(r,o){r+="\\t ",o+="\\n\\r",this._match_pattern=this._input.get_regexp("["+r+o+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+o+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var r=this._input.read(this._match_pattern);if(r===" ")this.whitespace_before_token=" ";else if(r){var o=this.__split(this._newline_regexp,r);this.newline_count=o.length-1,this.whitespace_before_token=o[this.newline_count]}return r},t.prototype.matching=function(r,o){var i=this._create();return i.__set_whitespace_patterns(r,o),i._update(),i},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(r,o){r.lastIndex=0;for(var i=0,l=[],d=r.exec(o);d;)l.push(o.substring(i,d.index)),i=d.index+d[0].length,d=r.exec(o);return i<o.length?l.push(o.substring(i,o.length)):l.push(""),l},Ic.WhitespacePattern=t,Ic}var lm;function kl(){if(lm)return Sl;lm=1;var e=Rc().InputScanner,t=Xh().Token,r=hA().TokenStream,o=mA().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(d,c){this._input=new e(d),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};return l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new r,this._reset();for(var d,c=new t(i.START,""),u=null,m=[],h=new r;c.type!==i.EOF;){for(d=this._get_next_token(c,u);this._is_comment(d);)h.add(d),d=this._get_next_token(c,u);h.isEmpty()||(d.comments_before=h,h=new r),d.parent=u,this._is_opening(d)?(m.push(u),u=d):u&&this._is_closing(d,u)&&(d.opened=u,u.closed=d,u=m.pop(),d.parent=u),d.previous=c,c.next=d,this.__tokens.add(d),c=d}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(d,c){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(i.RAW,u):this._create_token(i.EOF,"")},l.prototype._is_comment=function(d){return!1},l.prototype._is_opening=function(d){return!1},l.prototype._is_closing=function(d,c){return!1},l.prototype._create_token=function(d,c){var u=new t(d,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Sl.Tokenizer=l,Sl.TOKEN=i,Sl}var Mc={},sm;function Pc(){if(sm)return Mc;sm=1;function e(t,r){t=typeof t=="string"?t:t.source,r=typeof r=="string"?r:r.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+r,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+r,"g")}return e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var r={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(t);o;)r[o[1]]=o[2],o=this.__directive_pattern.exec(t);return r},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},Mc.Directives=e,Mc}var Lc={},dm;function cm(){if(dm)return Lc;dm=1;var e=xl().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function r(o,i){e.call(this,o,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var l=new e(o);this.__patterns={handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:l.starting_with(/{{{/).until_after(/}}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),php:l.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:l.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:l.starting_with(/{%/).until_after(/%}/),django_value:l.starting_with(/{{/).until_after(/}}/),django_comment:l.starting_with(/{#/).until_after(/#}/),smarty:l.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:l.starting_with(/{\*/).until_after(/\*}/),smarty_literal:l.starting_with(/{literal}/).until_after(/{\/literal}/)}}return r.prototype=new e,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(o){var i=this._create();return i._disabled[o]=!0,i._update(),i},r.prototype.read_options=function(o){var i=this._create();for(var l in t)i._disabled[l]=o.templating.indexOf(l)===-1;return i._update(),i},r.prototype.exclude=function(o){var i=this._create();return i._excluded[o]=!0,i._update(),i},r.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),o+=i,i=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},r.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},r.prototype._read_template=function(){var o="",i=this._input.peek();if(i==="<"){var l=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&l==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&l==="%"&&(o=o||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},Lc.TemplatablePattern=r,Lc}var um;function Tl(){if(um)return Gr;um=1;var e=Rc().InputScanner,t=kl().Tokenizer,r=kl().TOKEN,o=Pc().Directives,i=qh(),l=xl().Pattern,d=cm().TemplatablePattern;function c(V,F){return F.indexOf(V)!==-1}var u={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},m=new o(/\/\*/,/\*\//),h=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,y=/[0-9]/,C=/[^\d\.]/,S=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),w=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";w=w.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),w="\\?\\.(?!\\d) "+w,w=w.replace(/ /g,"|");var E=new RegExp(w),_="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),g=_.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+g.join("|")+")$"),x,k=function(V,F){t.call(this,V,F),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var I=new l(this._input),P=new d(this._input).read_options(this._options);this.__patterns={template:P,identifier:P.starting_with(i.identifier).matching(i.identifierMatch),number:I.matching(h),punct:I.matching(E),comment:I.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:I.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:I.matching(/<!--/),html_comment_end:I.matching(/-->/),include:I.starting_with(/#include/).until_after(i.lineBreak),shebang:I.starting_with(/#!/).until_after(i.lineBreak),xml:I.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:P.until(/['\\\n\r\u2028\u2029]/),double_quote:P.until(/["\\\n\r\u2028\u2029]/),template_text:P.until(/[`\\$]/),template_expression:P.until(/[`}\\]/)}};k.prototype=new t,k.prototype._is_comment=function(V){return V.type===u.COMMENT||V.type===u.BLOCK_COMMENT||V.type===u.UNKNOWN},k.prototype._is_opening=function(V){return V.type===u.START_BLOCK||V.type===u.START_EXPR},k.prototype._is_closing=function(V,F){return(V.type===u.END_BLOCK||V.type===u.END_EXPR)&&F&&(V.text==="]"&&F.text==="["||V.text===")"&&F.text==="("||V.text==="}"&&F.text==="{")},k.prototype._reset=function(){x=!1},k.prototype._get_next_token=function(V,F){var I=null;this._readWhitespace();var P=this._input.peek();return P===null?this._create_token(u.EOF,""):(I=I||this._read_non_javascript(P),I=I||this._read_string(P),I=I||this._read_pair(P,this._input.peek(1)),I=I||this._read_word(V),I=I||this._read_singles(P),I=I||this._read_comment(P),I=I||this._read_regexp(P,V),I=I||this._read_xml(P,V),I=I||this._read_punctuation(),I=I||this._create_token(u.UNKNOWN,this._input.next()),I)},k.prototype._read_word=function(V){var F;if(F=this.__patterns.identifier.read(),F!=="")return F=F.replace(i.allLineBreaks,`
|
||
`),!(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_level,this._flags.alignment))},I.prototype.set_mode=function(T){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,T),this._flags=this.create_flags(this._previous_flags,T),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},I.prototype.start_of_object_property=function(){return this._flags.parent.mode===g.ObjectLiteral&&this._flags.mode===g.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||C(this._flags.last_token,["get","set"]))},I.prototype.start_of_statement=function(T){var B=!1;return B=B||C(this._flags.last_token,["var","let","const"])&&T.type===c.WORD,B=B||y(this._flags.last_token,"do"),B=B||!(this._flags.parent.mode===g.ObjectLiteral&&this._flags.mode===g.Statement)&&C(this._flags.last_token,P)&&!T.newlines,B=B||y(this._flags.last_token,"else")&&!(y(T,"if")&&!T.comments_before),B=B||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===g.ForInitializer||this._previous_flags.mode===g.Conditional),B=B||this._flags.last_token.type===c.WORD&&this._flags.mode===g.BlockStatement&&!this._flags.in_case&&!(T.text==="--"||T.text==="++")&&this._last_last_text!=="function"&&T.type!==c.WORD&&T.type!==c.RESERVED,B=B||this._flags.mode===g.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||C(this._flags.last_token,["get","set"])),B?(this.set_mode(g.Statement),this.indent(),this.handle_whitespace_and_comments(T,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T,C(T,["do","for","if","while"])),!0):!1},I.prototype.handle_start_expr=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T);var B=g.Expression;if(T.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){C(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(T),this.set_mode(B),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}B=g.ArrayLiteral,k(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),u(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,B=g.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,B=g.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&T.whitespace_before===""?this._output.space_before_token=!1:(u(this._flags.last_token.text,l)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var L=this._tokens.peek(-3);if(this._options.space_after_named_function&&L){var U=this._tokens.peek(-4);C(L,["async","function"])||L.text==="*"&&C(U,["async","function"])?this._output.space_before_token=!0:this._flags.mode===g.ObjectLiteral?(L.text==="{"||L.text===","||L.text==="*"&&(U.text==="{"||U.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(T);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&u(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===c.START_BLOCK?this.print_newline():(this._flags.last_token.type===c.END_EXPR||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===c.COMMA)&&this.allow_wrap_or_preserved_newline(T,T.newlines),this.print_token(T),this.set_mode(B),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},I.prototype.handle_end_expr=function(T){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(T,T.text==="]"&&k(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===c.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(T),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===g.Conditional&&(this._previous_flags.mode=g.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},I.prototype.handle_start_block=function(T){this.handle_whitespace_and_comments(T);var B=this._tokens.peek(),L=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(g.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(g.BlockStatement):L&&(u(L.text,[":",","])&&u(B.type,[c.STRING,c.WORD,c.RESERVED])||u(B.text,["get","set","..."])&&u(L.type,[c.WORD,c.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(L.text,[":",","])?this.set_mode(g.BlockStatement):this.set_mode(g.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(g.BlockStatement):u(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||C(this._flags.last_token,["return","throw","import","default"])?this.set_mode(g.ObjectLiteral):this.set_mode(g.BlockStatement),this._flags.last_token&&C(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var U=!B.comments_before&&B.text==="}",H=U&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var R=0,z=null;this._flags.inline_frame=!0;do if(R+=1,z=this._tokens.peek(R-1),z.newlines){this._flags.inline_frame=!1;break}while(z.type!==c.EOF&&!(z.type===c.END_BLOCK&&z.opened===T))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(H||this._flags.last_token.type===c.EQUALS||C(this._flags.last_token,S)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(k(this._previous_flags.mode)&&(this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.COMMA)&&((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(T),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(u(this._flags.last_token.type,[c.START_BLOCK,c.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(T),this.indent(),!U&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},I.prototype.handle_end_block=function(T){for(this.handle_whitespace_and_comments(T);this._flags.mode===g.Statement;)this.restore_mode();var B=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!B?this._output.space_before_token=!0:this._options.brace_style==="expand"?B||this.print_newline():B||(k(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(T)},I.prototype.handle_word=function(T){if(T.type===c.RESERVED){if(u(T.text,["set","get"])&&this._flags.mode!==g.ObjectLiteral)T.type=c.WORD;else if(T.text==="import"&&u(this._tokens.peek().text,["(","."]))T.type=c.WORD;else if(u(T.text,["as","from"])&&!this._flags.import_block)T.type=c.WORD;else if(this._flags.mode===g.ObjectLiteral){var B=this._tokens.peek();B.text===":"&&(T.type=c.WORD)}}if(this.start_of_statement(T)?C(this._flags.last_token,["var","let","const"])&&T.type===c.WORD&&(this._flags.declaration_statement=!0):T.newlines&&!N(this._flags.mode)&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==c.EQUALS&&(this._options.preserve_newlines||!C(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(T),this.print_newline()):this.handle_whitespace_and_comments(T),this._flags.do_block&&!this._flags.do_while)if(y(T,"while")){this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&y(T,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&C(T,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(T),this._flags.in_case=!0;return}if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)&&!this.start_of_object_property()&&!(u(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===g.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(T),y(T,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&!this._output.just_added_blankline()&&!T.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?C(this._flags.last_token,["get","set","new","export"])||C(this._flags.last_token,P)?this._output.space_before_token=!0:y(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(N(this._flags.mode)||k(this._flags.mode))||this.print_newline(),this.print_token(T),this._flags.last_word=T.text;return}var L="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?L="SPACE":C(T,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines?L="NEWLINE":(L="SPACE",this._output.space_before_token=!0):L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===g.BlockStatement?L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&N(this._flags.mode)?L="SPACE":this._flags.last_token.type===c.STRING?L="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&u(this._last_last_text,["{",","]))?L="SPACE":this._flags.last_token.type===c.START_BLOCK?this._flags.inline_frame?L="SPACE":L="NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,L="NEWLINE"),C(T,l)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?L="SPACE":L="NEWLINE"),C(T,["else","catch","finally"]))if((!(this._flags.last_token.type===c.END_BLOCK&&this._previous_flags.mode===g.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var U=this._output.current_line;U.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else L==="NEWLINE"?C(this._flags.last_token,S)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&C(T,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?(this._flags.last_token.type!==c.START_EXPR||!C(T,["var","let","const"]))&&this._flags.last_token.text!==":"&&(y(T,"if")&&y(T.previous,"else")?this._output.space_before_token=!0:this.print_newline()):C(T,l)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&k(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():L==="SPACE"&&(this._output.space_before_token=!0);T.previous&&(T.previous.type===c.WORD||T.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(T),this._flags.last_word=T.text,T.type===c.RESERVED&&(T.text==="do"?this._flags.do_block=!0:T.text==="if"?this._flags.if_block=!0:T.text==="import"?this._flags.import_block=!0:this._flags.import_block&&y(T,"from")&&(this._flags.import_block=!1))},I.prototype.handle_semicolon=function(T){this.start_of_statement(T)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(T);for(var B=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&y(B,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(T)},I.prototype.handle_string=function(T){T.text.startsWith("`")&&T.newlines===0&&T.whitespace_before===""&&(T.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(T)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(T),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T):T.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(T.previous.text==="]"||T.previous.text===")")&&T.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(T)},I.prototype.handle_equals=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0},I.prototype.handle_comma=function(T){this.handle_whitespace_and_comments(T,!0),this.print_token(T),this._output.space_before_token=!0,this._flags.declaration_statement?(N(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(T)):this._flags.mode===g.ObjectLiteral||this._flags.mode===g.Statement&&this._flags.parent.mode===g.ObjectLiteral?(this._flags.mode===g.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(T)},I.prototype.handle_operator=function(T){var B=T.text==="*"&&(C(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),L=u(T.text,["-","+"])&&(u(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||u(this._flags.last_token.text,l)||this._flags.last_token.text===",");if(!this.start_of_statement(T)){var U=!B;this.handle_whitespace_and_comments(T,U)}if(T.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(T);return}if(T.text==="::"){this.print_token(T);return}if(u(T.text,["-","+"])&&this.start_of_object_property()){this.print_token(T);return}if(this._flags.last_token.type===c.OPERATOR&&u(this._options.operator_position,_)&&this.allow_wrap_or_preserved_newline(T),T.text===":"&&this._flags.in_case){this.print_token(T),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var H=!0,R=!0,z=!1;if(T.text===":"?this._flags.ternary_depth===0?H=!1:(this._flags.ternary_depth-=1,z=!0):T.text==="?"&&(this._flags.ternary_depth+=1),!L&&!B&&this._options.preserve_newlines&&u(T.text,d)){var $=T.text===":",A=$&&z,J=$&&!z;switch(this._options.operator_position){case E.before_newline:this._output.space_before_token=!J,this.print_token(T),(!$||A)&&this.allow_wrap_or_preserved_newline(T),this._output.space_before_token=!0;return;case E.after_newline:this._output.space_before_token=!0,!$||A?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(T):this._output.space_before_token=!1,this.print_token(T),this._output.space_before_token=!0;return;case E.preserve_newline:J||this.allow_wrap_or_preserved_newline(T),H=!(this._output.just_added_newline()||J),this._output.space_before_token=H,this.print_token(T),this._output.space_before_token=!0;return}}if(B){this.allow_wrap_or_preserved_newline(T),H=!1;var Q=this._tokens.peek();R=Q&&u(Q.type,[c.WORD,c.RESERVED])}else if(T.text==="...")this.allow_wrap_or_preserved_newline(T),H=this._flags.last_token.type===c.START_BLOCK,R=!1;else if(u(T.text,["--","++","!","~"])||L){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(T),H=!1,R=!1,T.newlines&&(T.text==="--"||T.text==="++"||T.text==="~")){var G=C(this._flags.last_token,S)&&T.newlines;G&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(G,!0)}this._flags.last_token.text===";"&&N(this._flags.mode)&&(H=!0),this._flags.last_token.type===c.RESERVED?H=!0:this._flags.last_token.type===c.END_EXPR?H=!(this._flags.last_token.text==="]"&&(T.text==="--"||T.text==="++")):this._flags.last_token.type===c.OPERATOR&&(H=u(T.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(T.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(R=!0)),(this._flags.mode===g.BlockStatement&&!this._flags.inline_frame||this._flags.mode===g.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||H,this.print_token(T),this._output.space_before_token=R},I.prototype.handle_block_comment=function(T,B){if(this._output.raw){this._output.add_raw_token(T),T.directives&&T.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(T.directives){this.print_newline(!1,B),this.print_token(T),T.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!r.newline.test(T.text)&&!T.newlines){this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0;return}else this.print_block_commment(T,B)},I.prototype.print_block_commment=function(T,B){var L=x(T.text),U,H=!1,R=!1,z=T.whitespace_before,$=z.length;if(this.print_newline(!1,B),this.print_token_line_indentation(T),this._output.add_token(L[0]),this.print_newline(!1,B),L.length>1){for(L=L.slice(1),H=V(L,"*"),R=F(L,z),H&&(this._flags.alignment=1),U=0;U<L.length;U++)H?(this.print_token_line_indentation(T),this._output.add_token(m(L[U]))):R&&L[U]?(this.print_token_line_indentation(T),this._output.add_token(L[U].substring($))):(this._output.current_line.set_indent(-1),this._output.add_token(L[U])),this.print_newline(!1,B);this._flags.alignment=0}},I.prototype.handle_comment=function(T,B){T.newlines?this.print_newline(!1,B):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(T),this.print_newline(!1,B)},I.prototype.handle_dot=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),C(this._flags.last_token,S)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(T,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(T)},I.prototype.handle_unknown=function(T,B){this.print_token(T),T.text[T.text.length-1]===`
|
||
`&&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.outdent()));else{var z=!1;this._input.lookBack("with")&&(z=!0),this.preserveSingleSpace(I||z),this.print_string(this._ch),g&&P==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),k=!0):(this.eatWhitespace(),E++,this.indent())}else if(this._ch===")")E&&(E--,this.outdent()),k&&this._input.peek()===";"&&this._options.selector_separator_newline&&(k=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!g||k)&&E===0&&!x?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!g&&E===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(I),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var $=P==='"'||P==="'";this.preserveSingleSpace($||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
||
`&&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)}};return c.prototype=new e,c.prototype._is_comment=function(u){return!1},c.prototype._is_opening=function(u){return u.type===l.TAG_OPEN||u.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(u,m){return u.type===l.TAG_CLOSE&&m&&((u.text===">"||u.text==="/>")&&m.text[0]==="<"||u.text==="}}"&&m.text[0]==="{"&&m.text[1]==="{")||u.type===l.CONTROL_FLOW_CLOSE&&u.text==="}"&&m.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(u,m){var h=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(l.EOF,""):(h=h||this._read_open_handlebars(y,m),h=h||this._read_attribute(y,u,m),h=h||this._read_close(y,m),h=h||this._read_script_and_style(y,u),h=h||this._read_control_flows(y,m),h=h||this._read_raw_content(y,u,m),h=h||this._read_content_word(y,m),h=h||this._read_comment_or_cdata(y),h=h||this._read_processing(y),h=h||this._read_open(y,m),h=h||this._create_token(l.UNKNOWN,this._input.next()),h)},c.prototype._read_comment_or_cdata=function(u){var m=null,h=null,y=null;if(u==="<"){var C=this._input.peek(1);C==="!"&&(h=this.__patterns.comment.read(),h?(y=d.get_directives(h),y&&y.ignore==="start"&&(h+=d.readIgnored(this._input))):h=this.__patterns.cdata.read()),h&&(m=this._create_token(l.COMMENT,h),m.directives=y)}return m},c.prototype._read_processing=function(u){var m=null,h=null,y=null;if(u==="<"){var C=this._input.peek(1);(C==="!"||C==="?")&&(h=this.__patterns.conditional_comment.read(),h=h||this.__patterns.processing.read()),h&&(m=this._create_token(l.COMMENT,h),m.directives=y)}return m},c.prototype._read_open=function(u,m){var h=null,y=null;return(!m||m.type===l.CONTROL_FLOW_OPEN)&&u==="<"&&(h=this._input.next(),this._input.peek()==="/"&&(h+=this._input.next()),h+=this.__patterns.element_name.read(),y=this._create_token(l.TAG_OPEN,h)),y},c.prototype._read_open_handlebars=function(u,m){var h=null,y=null;return(!m||m.type===l.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&u==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(h=this.__patterns.handlebars_comment.read(),h=h||this.__patterns.handlebars.read(),y=this._create_token(l.COMMENT,h)):(h=this.__patterns.handlebars_open.read(),y=this._create_token(l.TAG_OPEN,h))),y},c.prototype._read_control_flows=function(u,m){var h="",y=null;if(!this._options.templating.includes("angular"))return y;if(u==="@"){if(h=this.__patterns.angular_control_flow_start.read(),h==="")return y;for(var C=h.endsWith("(")?1:0,S=0;!(h.endsWith("{")&&C===S);){var w=this._input.next();if(w===null)break;w==="("?C++:w===")"&&S++,h+=w}y=this._create_token(l.CONTROL_FLOW_OPEN,h)}else u==="}"&&m&&m.type===l.CONTROL_FLOW_OPEN&&(h=this._input.next(),y=this._create_token(l.CONTROL_FLOW_CLOSE,h));return y},c.prototype._read_close=function(u,m){var h=null,y=null;return m&&m.type===l.TAG_OPEN&&(m.text[0]==="<"&&(u===">"||u==="/"&&this._input.peek(1)===">")?(h=this._input.next(),u==="/"&&(h+=this._input.next()),y=this._create_token(l.TAG_CLOSE,h)):m.text[0]==="{"&&u==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(l.TAG_CLOSE,"}}"))),y},c.prototype._read_attribute=function(u,m,h){var y=null,C="";if(h&&h.text[0]==="<")if(u==="=")y=this._create_token(l.EQUALS,this._input.next());else if(u==='"'||u==="'"){var S=this._input.next();u==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),y=this._create_token(l.VALUE,S)}else C=this.__patterns.attribute.read(),C&&(m.type===l.EQUALS?y=this._create_token(l.VALUE,C):y=this._create_token(l.ATTRIBUTE,C));return y},c.prototype._is_content_unformatted=function(u){return this._options.void_elements.indexOf(u)===-1&&(this._options.content_unformatted.indexOf(u)!==-1||this._options.unformatted.indexOf(u)!==-1)},c.prototype._read_raw_content=function(u,m,h){var y="";if(h&&h.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(m.type===l.TAG_CLOSE&&m.opened.text[0]==="<"&&m.text[0]!=="/"){var C=m.opened.text.substr(1).toLowerCase();this._is_content_unformatted(C)&&(y=this._input.readUntil(new RegExp("</"+C+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(l.TEXT,y):null},c.prototype._read_script_and_style=function(u,m){if(m.type===l.TAG_CLOSE&&m.opened.text[0]==="<"&&m.text[0]!=="/"){var h=m.opened.text.substr(1).toLowerCase();if(h==="script"||h==="style"){var y=this._read_comment_or_cdata(u);if(y)return y.type=l.TEXT,y;var C=this._input.readUntil(new RegExp("</"+h+"[\\n\\r\\t ]*?>","ig"));if(C)return this._create_token(l.TEXT,C)}}return null},c.prototype._read_content_word=function(u,m){var h="";return this._options.unformatted_content_delimiter&&u===this._options.unformatted_content_delimiter[0]&&(h=this.__patterns.unformatted_content_delimiter.read()),h||(h=m&&m.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),h?this._create_token(l.TEXT,h):null},Ol.Tokenizer=c,Ol.TOKEN=l,Ol}var _m;function wA(){if(_m)return Uc;_m=1;var e=bm().Options,t=Tc().Output,r=Cm().Tokenizer,o=Cm().TOKEN,i=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,d=function(_,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=_.max_preserve_newlines,this.preserve_newlines=_.preserve_newlines,this._output=new t(_,g)};d.prototype.current_line_has_match=function(_){return this._output.current_line.has_match(_)},d.prototype.set_space_before_token=function(_,g){this._output.space_before_token=_,this._output.non_breaking_space=g},d.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},d.prototype.add_raw_token=function(_){this._output.add_raw_token(_)},d.prototype.print_preserved_newlines=function(_){var g=0;_.type!==o.TEXT&&_.previous.type!==o.TEXT&&(g=_.newlines?1:0),this.preserve_newlines&&(g=_.newlines<this.max_preserve_newlines+1?_.newlines:this.max_preserve_newlines+1);for(var b=0;b<g;b++)this.print_newline(b>0);return g!==0},d.prototype.traverse_whitespace=function(_){return _.whitespace_before||_.newlines?(this.print_preserved_newlines(_)||(this._output.space_before_token=!0),!0):!1},d.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},d.prototype.print_newline=function(_){this._output.add_new_line(_)},d.prototype.print_token=function(_){_.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(_.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},d.prototype.get_full_indent=function(_){return _=this.indent_level+(_||0),_<1?"":this._output.get_indent_string(_)};var c=function(_){for(var g=null,b=_.next;b.type!==o.EOF&&_.closed!==b;){if(b.type===o.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===o.EQUALS&&b.next.next&&b.next.next.type===o.VALUE&&(g=b.next.next.text);break}b=b.next}return g},u=function(_,g){var b=null,x=null;return g.closed?(_==="script"?b="text/javascript":_==="style"&&(b="text/css"),b=c(g)||b,b.search("text/css")>-1?x="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?x="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?x="html":b.search(/test\/null/)>-1&&(x="null"),x):null};function m(_,g){return g.indexOf(_)!==-1}function h(_,g,b){this.parent=_||null,this.tag=g?g.tag_name:"",this.indent_level=b||0,this.parser_token=g||null}function y(_){this._printer=_,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(_){var g=new h(this._current_frame,_,this._printer.indent_level);this._current_frame=g},y.prototype._try_pop_frame=function(_){var g=null;return _&&(g=_.parser_token,this._printer.indent_level=_.indent_level,this._current_frame=_.parent),g},y.prototype._get_frame=function(_,g){for(var b=this._current_frame;b&&_.indexOf(b.tag)===-1;){if(g&&g.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},y.prototype.try_pop=function(_,g){var b=this._get_frame([_],g);return this._try_pop_frame(b)},y.prototype.indent_to_tag=function(_){var g=this._get_frame(_);g&&(this._printer.indent_level=g.indent_level)};function C(_,g,b,x){this._source_text=_||"",g=g||{},this._js_beautify=b,this._css_beautify=x,this._tag_stack=null;var k=new e(g,"html");this._options=k,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var _=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
|
||
`,_&&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:"ConfigTitle"}),jA={ref:"cell",class:"_fd-config-title"};function zA(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",jA,[n.renderSlot(e.$slots,"default")],512)}const Sm=De(LA,[["render",zA]]);var UA={name:"zh-cn",el:{breadcrumb:{label:"\u9762\u5305\u5C51"},colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A",defaultLabel:"\u989C\u8272\u9009\u62E9\u5668",description:"\u5F53\u524D\u989C\u8272 {color}\uFF0C\u6309 Enter \u952E\u9009\u62E9\u65B0\u989C\u8272",alphaLabel:"\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",dateTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u65E5\u671F",monthTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u6708\u4EFD",yearTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u5E74\u4EFD",selectedDate:"\u5DF2\u9009\u65E5\u671F",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},weeksFull:{sun:"\u661F\u671F\u65E5",mon:"\u661F\u671F\u4E00",tue:"\u661F\u671F\u4E8C",wed:"\u661F\u671F\u4E09",thu:"\u661F\u671F\u56DB",fri:"\u661F\u671F\u4E94",sat:"\u661F\u671F\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},inputNumber:{decrease:"\u51CF\u5C11\u6570\u503C",increase:"\u589E\u52A0\u6570\u503C"},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},dropdown:{toggleDropdown:"\u5207\u6362\u4E0B\u62C9\u9009\u9879"},mention:{loading:"\u52A0\u8F7D\u4E2D"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},dialog:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},drawer:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},upload:{deleteTip:"\u6309 Delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},slider:{defaultLabel:"\u6ED1\u5757\u4ECB\u4E8E {min} \u81F3 {max}",defaultRangeStartLabel:"\u9009\u62E9\u8D77\u59CB\u503C",defaultRangeEndLabel:"\u9009\u62E9\u7ED3\u675F\u503C"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tour:{next:"\u4E0B\u4E00\u6B65",previous:"\u4E0A\u4E00\u6B65",finish:"\u7ED3\u675F\u5BFC\u89C8"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},carousel:{leftArrow:"\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",rightArrow:"\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",indicator:"\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"}}};const I4="",HA=n.defineComponent({name:"TypeSelect",inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},customForm(){return this.designer.setupState.customForm},menus(){let e=[];const t=this.designer.setupState;if(this.activeRule){const r=this.activeRule._menu.name,o=t.getConfig("switchType",[]);if(o===!1)return e;let i=[];o.forEach(l=>{l.indexOf(r)>-1&&i.push(...l)}),i=i.filter((l,d)=>l!==r&&i.indexOf(l)===d),i.length?t.menuList.forEach(l=>{l.list.forEach(d=>{i.indexOf(d.name)>-1&&e.push(d)})}):t.menuList.forEach(l=>{l.name===this.activeRule._menu.menu&&l.list.forEach(d=>{d.name!==r&&e.push(d)})})}return e.filter(r=>this.designer.setupState.hiddenItem.indexOf(r.name)===-1)}},methods:{handleCommand(e){var d;let t=this.activeRule,r=this.activeRule;r._menu.inside||(r=r.__fc__.parent.rule);const o=r.__fc__.parent.rule.children,i=this.designer.setupState.makeRule(e);let l=i;i.type==="DragTool"&&(l=i.children[0]),l.field&&t.field?["title","info","field","validate","computed","control","$required","style"].forEach(c=>{l[c]=t[c]}):(d=t==null?void 0:t.computed)!=null&&d.hidden&&(l.computed={hidden:t.computed.hidden}),t.name&&(l.name=t.name),["name","wrap","class","id","control","on"].forEach(c=>{t[c]&&(l[c]=t[c])}),o.splice(o.indexOf(r),1,i),this.$nextTick(()=>{this.designer.setupState.triggerActive(l)})}}}),WA={key:0,class:"fc-icon icon-down"};function GA(e,t,r,o,i,l){const d=n.resolveComponent("el-tag"),c=n.resolveComponent("el-dropdown-item"),u=n.resolveComponent("el-dropdown-menu"),m=n.resolveComponent("el-dropdown");return n.openBlock(),n.createBlock(m,{class:"_fd-type-select",trigger:"click",size:"default","popper-class":"_fd-type-select-pop",disabled:!e.menus.length,onCommand:e.handleCommand},{dropdown:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menus,h=>(n.openBlock(),n.createBlock(c,{command:h,key:h.name},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",h.icon||"icon-input"])},null,2),n.createTextVNode(n.toDisplayString(e.t("com."+h.name+".name")||h.label),1)])]),_:2},1032,["command"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"success",effect:"plain","disable-transitions":""},{default:n.withCtx(()=>[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.t("com."+e.activeRule._menu.name+".name")||e.activeRule._menu.label)+" ",1),e.menus.length?(n.openBlock(),n.createElementBlock("i",WA)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(e.t("com."+e.customForm.config.name+".name")||e.customForm.config.label||e.customForm.config.name),1)],64))]),_:1})]),_:1},8,["disabled","onCommand"])}const KA=De(HA,[["render",GA]]),F4="",YA=n.defineComponent({name:"FieldList",inject:["designer"],props:{field:Array},components:{fcDraggable:Lr},methods:{nodeClick(e){if(e.rule||e.item){const t={...e};this.designer.setupState.clickField(t)}}}}),QA={class:"_fc-field-node"},JA={class:"_fc-field-node-label"},XA={key:1,class:"fc-icon icon-folder"},ZA={key:1,class:"_fc-field-node"},qA={class:"_fc-field-node-label"},eS={key:1,class:"fc-icon icon-folder"};function tS(e,t,r,o,i,l){const d=n.resolveComponent("fcDraggable"),c=n.resolveComponent("el-tree");return n.openBlock(),n.createBlock(c,{ref:"treeRef",class:"_fc-field-tree",data:e.field,"default-expand-all":"","expand-on-click-node":!1,indent:10,onNodeClick:e.nodeClick},{default:n.withCtx(({node:u,data:m})=>[m.rule||m.item?(n.openBlock(),n.createBlock(d,{key:0,group:{name:"default",pull:"clone",put:!1},sort:!1,list:[{...m,_field:!0}],itemKey:"label",class:"_fc-field-drag"},{item:n.withCtx(()=>[n.createElementVNode("div",QA,[n.createElementVNode("div",JA,[u.isLeaf?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fc-icon",m.icon||"icon-input"])},null,2)):(n.openBlock(),n.createElementBlock("i",XA)),n.createElementVNode("span",null,n.toDisplayString(m.label),1)])])]),_:2},1032,["list"])):(n.openBlock(),n.createElementBlock("div",ZA,[n.createElementVNode("div",qA,[u.isLeaf?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fc-icon",m.icon||"icon-input"])},null,2)):(n.openBlock(),n.createElementBlock("i",eS)),n.createElementVNode("span",null,n.toDisplayString(m.label),1)])]))]),_:1},8,["data","onNodeClick"])}const nS=De(YA,[["render",tS]]),iS=["props"],rS=["class","style","directives"],oS=["on","hook"],xm=(e,t={},r={})=>{const o=[...iS,...r.normal||[]],i=[...rS,...r.array||[]],l=[...oS,...r.functional||[]],d=r.props||[];return e.reduce((c,u)=>{for(const m in u)if(c[m])if(d.indexOf(m)>-1)c[m]=xm([u[m]],c[m]);else if(o.indexOf(m)>-1)c[m]={...c[m],...u[m]};else if(i.indexOf(m)>-1){const h=c[m]instanceof Array?c[m]:[c[m]],y=u[m]instanceof Array?u[m]:[u[m]];c[m]=[...h,...y]}else if(l.indexOf(m)>-1)for(const h in u[m])if(c[m][h]){const y=c[m][h]instanceof Array?c[m][h]:[c[m][h]],C=u[m][h]instanceof Array?u[m][h]:[u[m][h]];c[m][h]=[...y,...C]}else c[m][h]=u[m][h];else if(m==="hook")for(let h in u[m])c[m][h]?c[m][h]=aS(c[m][h],u[m][h]):c[m][h]=u[m][h];else c[m]=u[m];else o.indexOf(m)>-1||l.indexOf(m)>-1||d.indexOf(m)>-1?c[m]={...u[m]}:i.indexOf(m)>-1?c[m]=u[m]instanceof Array?[...u[m]]:typeof u[m]=="object"?{...u[m]}:u[m]:c[m]=u[m];return c},t)},aS=(e,t)=>function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)},M4="",lS=n.defineComponent({name:"FormList",inject:["designer"],props:{list:Array},data(){return{loading:!1,timerId:void 0,load:void 0}},methods:{loadConfig(e,t){this.designer.setupState.openInputData(!1),this.designer.setupState.pageData=[],this.designer.setupState.setOptions(e.options),this.designer.setupState.setRule(e.rule),this.designer.emit("switchForm",t)},starLoad(){this.loading||(this.load=oi.ElLoading.service({target:document.getElementsByClassName("_fc-m-drag")[0],lock:!0}),this.loading=!0,this.timerId=setTimeout(()=>{this.endLoad()},5e3))},endLoad(){this.loading=!1,this.load&&this.load.close(),this.timerId&&clearTimeout(this.timerId),this.load=void 0,this.timerId=void 0},nodeClick(e){if(this.loading)return;let t={rule:e.rule||[],options:e.options||{}};if(e.load){const r=e.load(e);if(r&&r.then){this.starLoad(),r.then(o=>{o.rule&&(t.rule=o.rule),o.options&&(t.options=o.options),this.loadConfig(t,e),this.endLoad()}).catch(o=>{this.endLoad()});return}else r&&(r.rule&&(t.rule=r.rule),r.options&&(t.options=r.options))}this.loadConfig(t,e)}}}),sS={class:"_fc-form-node"},dS={class:"_fc-form-node-label"},cS={key:0,class:"fc-icon icon-form"},uS={key:1,class:"fc-icon icon-folder"},fS={key:0,class:"_fc-form-node-info"},pS=["onClick"];function hS(e,t,r,o,i,l){const d=n.resolveComponent("el-tree");return n.openBlock(),n.createBlock(d,{ref:"treeRef",class:"_fc-form-tree",data:e.list,indent:5},{default:n.withCtx(({node:c,data:u})=>[n.createElementVNode("div",sS,[n.createElementVNode("div",dS,[c.isLeaf?(n.openBlock(),n.createElementBlock("i",cS)):(n.openBlock(),n.createElementBlock("i",uS)),n.createElementVNode("div",null,[n.createElementVNode("div",null,n.toDisplayString(u.label),1),u.info?(n.openBlock(),n.createElementBlock("span",fS,n.toDisplayString(u.info),1)):n.createCommentVNode("",!0)])]),c.isLeaf&&!u.disabled?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:n.withModifiers(m=>e.nodeClick(u),["stop"])},null,8,pS)):n.createCommentVNode("",!0)])]),_:1},8,["data"])}const mS=De(lS,[["render",hS]]),P4="",gS=n.defineComponent({name:"GlobalEventConfig",emits:["update:modelValue"],props:{modelValue:Object,eventName:Array},components:{Warning:Jn,FnEditor:xi},inject:["designer"],data(){return{visible:!1,activeIdx:"",event:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[nn(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.event=at(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.event[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="event_"+We();this.event[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){return this.$refs.data.save()?(this.event[this.activeIdx].handle=this.handle,this.activeIdx="",!0):!1},rm(e){delete this.event[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.event}),this.visible=!1)}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}}}),vS={class:"_fd-gec"},yS=["onClick"],bS={class:"_fd-gec-method"},wS={key:0,class:"_fd-label"},CS=["onClick"];function _S(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("FnEditor"),g=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",vS,[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("event.title")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(g,{class:"_fd-gec-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=b=>e.visible=b),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(u,{tooltip:e.t("warning.globalEvent")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[5]||(t[5]=b=>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-gec-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-l"},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-gec-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("event.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(b,x)=>(n.openBlock(),n.createBlock(h,{class:n.normalizeClass({"is-active":x===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gec-title",onClick:n.withModifiers(k=>e.active(x),["stop"])},[n.createElementVNode("div",bS,[n.createElementVNode("span",null,n.toDisplayString(x),1),b.label?(n.openBlock(),n.createElementBlock("span",wS,n.toDisplayString(b.label),1)):n.createCommentVNode("",!0)]),b.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(k=>e.rm(x),["stop"])},null,8,CS)):n.createCommentVNode("",!0)],8,yS)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(h,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gec-title",onClick:t[3]||(t[3]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(y,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[0]||(t[0]=b=>e.cusValue=b),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...b)=>e.addCus&&e.addCus(...b),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...b)=>e.closeCus&&e.closeCus(...b),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(m,{key:0,class:"_fd-gec-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(S,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(_,{modelValue:e.handle,"onUpdate:modelValue":t[4]||(t[4]=b=>e.handle=b),name:"handle",args:e.fnArgs,ref:"data"},null,8,["modelValue","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const km=De(gS,[["render",_S]]),L4="",ES=n.defineComponent({name:"StructEditor",props:{modelValue:[Object,Array,Function],format:Boolean,defaultValue:{require:!1}},emits:["blur","focus","update:modelValue"],inject:["designer"],data(){return{editor:null,visible:!1,err:!1,oldVal:null}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue(e){if(this.editor){const t=e?this.toJson(e):"";this.oldVal=t;const o=this.editor.getScrollInfo().top;this.editor.setValue(t),this.editor.scrollTo(0,o)}}},mounted(){this.$nextTick(()=>{this.load()})},methods:{toJson(e){return this.format?je.toJson(e,2):En(e)},load(){const e=this.modelValue?this.toJson(this.modelValue):"";this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(Si(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?Kr.js(e,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""})),this.editor.on("blur",()=>{this.$emit("blur")}),this.editor.on("focus",()=>{this.$emit("focus")})})},save(){const e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(r){return console.error(r),sn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(this.err=!0,!1):(this.visible=!1,this.toJson(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),AS={class:"_fd-struct-editor"},SS={ref:"editor"};function xS(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",AS,[n.createElementVNode("div",SS,null,512)])}const Gc=De(ES,[["render",xS]]),j4="",kS=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},r){t._start=r.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},r){const o=t.getRule("action");o.value=o.value.substring(0,o._start)+r+o.value.substring(o._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],TS=n.defineComponent({name:"GlobalFetchConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Jn,VariableConfig:jo,DragForm:je.$form(),FnEditor:xi,StructEditor:Gc},inject:["designer"],data(){return{visible:!1,activeIdx:"",list:{},cus:!1,cusValue:"",form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"small"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},types(){return{fetch:this.t("fetch.remote"),static:this.t("fetch.static")}},dataNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.list=at(this.modelValue||{}),this.activeIdx="")}},methods:{open(){this.visible=!0},active(e){if(this.activeIdx!==e){const t=this.list[e];this.form.rule=t.type==="static"?[]:kS(this.t),this.form.formData={...t},this.form.label=t.label,this.form.type=t.type,this.form.data=t.data,this.form.dataType=t.dataType,this.form.parse=t.parse||"",this.form.beforeFetch=t.beforeFetch||"",this.form.onError=t.onError||"",this.activeIdx=e}},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="data_"+We();this.list[t]={label:e,type:this.cus,data:[]},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(e){this.cus=e},saveData(){!this.$refs.data.save()||(this.list[this.activeIdx].data=this.form.data||[],this.activeIdx="")},save(){if(this.list[this.activeIdx].type==="static")return this.saveData();this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.beforeFetch&&!this.$refs.beforeFetch.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=je.parseFn(this.form.parse),e.beforeFetch=je.parseFn(this.form.beforeFetch),e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,this.list[this.activeIdx]=e,this.activeIdx="")}).catch(e=>{console.error(e),sn(e[Object.keys(e)[0]][0].message)})},rm(e){delete this.list[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){if(this.activeIdx)return sn(this.t("event.saveMsg"));this.$emit("update:modelValue",{...this.list}),this.visible=!1}}}),NS={class:"_fd-gfc"},DS=["onClick"],OS={class:"_fd-gfc-method"},VS={key:0,class:"_fd-label"},BS=["onClick"],RS={class:"_fd-gfc-info"};function $S(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-dropdown-item"),h=n.resolveComponent("el-dropdown-menu"),y=n.resolveComponent("el-dropdown"),C=n.resolveComponent("el-header"),S=n.resolveComponent("el-menu-item"),w=n.resolveComponent("el-input"),E=n.resolveComponent("el-menu"),_=n.resolveComponent("el-main"),g=n.resolveComponent("el-container"),b=n.resolveComponent("el-aside"),x=n.resolveComponent("DragForm"),k=n.resolveComponent("el-tab-pane"),N=n.resolveComponent("FnEditor"),V=n.resolveComponent("el-tabs"),F=n.resolveComponent("StructEditor"),I=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",NS,[n.createVNode(c,{value:e.dataNum,type:"warning",hidden:e.dataNum<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("fetch.title")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(I,{class:"_fd-gfc-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[11]||(t[11]=P=>e.visible=P),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalFetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalFetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[10]||(t[10]=P=>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(g,{class:"_fd-gfc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(b,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gfc-l"},{default:n.withCtx(()=>[n.createVNode(C,{class:"_fd-gfc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(y,{trigger:"click",size:"default"},{dropdown:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.types,(P,T)=>(n.openBlock(),n.createBlock(m,{key:T,onClick:B=>e.cusEvent(T)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(P),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.create")),1),t[12]||(t[12]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(E,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(P,T)=>(n.openBlock(),n.createBlock(S,{class:n.normalizeClass({"is-active":T===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gfc-title",onClick:n.withModifiers(B=>e.active(T),["stop"])},[n.createElementVNode("div",OS,[n.createElementVNode("span",null,n.toDisplayString(T),1),P.label?(n.openBlock(),n.createElementBlock("span",VS,n.toDisplayString(P.label),1)):n.createCommentVNode("",!0)]),P.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(B=>e.rm(T),["stop"])},null,8,BS)):n.createCommentVNode("",!0)],8,DS)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(S,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gfc-title",onClick:t[3]||(t[3]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(w,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[0]||(t[0]=P=>e.cusValue=P),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("fetch.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...P)=>e.addCus&&e.addCus(...P),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...P)=>e.closeCus&&e.closeCus(...P),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gfc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(C,{key:0,class:"_fd-gfc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(_,{key:e.activeIdx},{default:n.withCtx(()=>[e.list[e.activeIdx].type==="fetch"?(n.openBlock(),n.createBlock(V,{key:0,"model-value":"first",class:"_fc-tabs",style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(k,{label:e.t("fetch.config"),name:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",RS,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(x,{api:e.form.api,"onUpdate:api":t[4]||(t[4]=P=>e.form.api=P),modelValue:e.form.formData,"onUpdate:modelValue":t[5]||(t[5]=P=>e.form.formData=P),rule:e.form.rule,option:e.form.options},{title:n.withCtx(P=>[P.rule.warning?(n.openBlock(),n.createBlock(u,{key:0,tooltip:P.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(P.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(P.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["label"]),n.createVNode(k,{lazy:"",label:e.t("fetch.beforeFetch"),name:"second"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.beforeFetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.beforeFetch")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(N,{style:{height:"100%"},modelValue:e.form.beforeFetch,"onUpdate:modelValue":t[6]||(t[6]=P=>e.form.beforeFetch=P),name:"beforeFetch",args:["config","data"],ref:"beforeFetch"},null,8,["modelValue"])]),_:1},8,["label"]),n.createVNode(k,{lazy:"",name:"third"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(N,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[7]||(t[7]=P=>e.form.parse=P),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(k,{lazy:"",label:e.t("fetch.onError"),name:"fourth"},{default:n.withCtx(()=>[n.createVNode(N,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[8]||(t[8]=P=>e.form.onError=P),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})):(n.openBlock(),n.createBlock(F,{key:1,modelValue:e.form.data,"onUpdate:modelValue":t[9]||(t[9]=P=>e.form.data=P),ref:"data"},null,8,["modelValue"]))]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Tm=De(TS,[["render",$S]]),z4="",IS=n.defineComponent({name:"SizeInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String,size:String,unit:{type:Array,default:()=>["auto","px","%","vh","vw","em","rem"]},defaultUnit:{type:String,default:"px"}},watch:{modelValue(){this.parseValue()}},data(){return{idx:1,num:0,oldValue:this.modelValue||""}},methods:{parseValue(){this.modelValue!=="auto"?(this.idx=Math.max(this.unit.indexOf(this.defaultUnit),0),this.unit.forEach((e,t)=>{(this.modelValue||"").indexOf(e)>-1&&(this.idx=t)}),this.num=li(this.modelValue)?null:parseFloat(this.modelValue||0)):(this.idx=0,this.num=0)},submit(){this.oldValue=li(this.num)?"":""+this.num+this.unit[this.idx],this.$emit("update:modelValue",this.oldValue),this.$emit("change",this.oldValue)},changeType(e){if(e!==void 0){if(this.idx===e)return;this.idx=e}else this.idx++,this.idx>4&&(this.idx=0);this.unit[this.idx]==="auto"?(this.oldValue="auto",this.$emit("update:modelValue","auto"),this.$emit("change","auto")):this.submit()}},created(){this.parseValue()}}),FS={class:"_fd-size-input"};function MS(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-inputNumber"),u=n.resolveComponent("el-dropdown-item"),m=n.resolveComponent("el-dropdown-menu"),h=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",FS,[e.unit[e.idx]==="auto"?(n.openBlock(),n.createBlock(d,{key:0,size:e.size,style:{width:"150px"},onClick:t[0]||(t[0]=y=>e.changeType())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(c,{size:e.size,modelValue:e.num,"onUpdate:modelValue":t[1]||(t[1]=y=>e.num=y),onChange:e.submit,"controls-position":"right"},null,8,["size","modelValue","onChange"]),n.createVNode(h,{trigger:"click",size:"small"},{dropdown:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unit,(y,C)=>(n.openBlock(),n.createBlock(u,{key:y,onClick:S=>e.changeType(C)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(y),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{size:e.size},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])]),_:1})],64))])}const Yr=De(IS,[["render",MS]]),U4="",PS=n.defineComponent({name:"BoxSizeInput",components:{SizeInput:Yr,ConfigItem:Rn},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{overflow:[{value:"visible",icon:"icon-eye"},{value:"hidden",icon:"icon-eye-close"},{value:"scroll",icon:"icon-scroll"},{value:"auto",text:"Auto"}],keys:["width","height","minWidth","minHeight","maxWidth","maxHeight"],boxStyle:{width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""}}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""},this.modelValue&&Object.keys(this.boxStyle).forEach(e=>{this.modelValue[e]&&(this.boxStyle[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,r)=>(this.boxStyle[r]!==""&&(t[r]=this.boxStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},changeOverflow(e){this.boxStyle.overflow=this.boxStyle.overflow===e?"":e,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value}},created(){this.tidyValue()}}),LS={class:"_fd-box-size-input"},jS={key:0,style:{"font-size":"12px","line-height":"16px"}};function zS(e,t,r,o,i,l){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("el-form-item"),u=n.resolveComponent("el-radio-button"),m=n.resolveComponent("el-tooltip"),h=n.resolveComponent("el-radio-group"),y=n.resolveComponent("el-form"),C=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",LS,[n.createVNode(C,{label:e.t("props.size"),info:Object.keys(e.modelValue).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(y,{"label-position":"top",size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.keys,S=>(n.openBlock(),n.createBlock(c,{label:e.t("style."+S),key:S},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.boxStyle[S],"onUpdate:modelValue":w=>e.boxStyle[S]=w,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"]))),128)),n.createVNode(c,{label:e.t("style.overflow.name"),style:{"grid-column":"span 2"}},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.boxStyle.overflow},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.overflow,S=>(n.openBlock(),n.createBlock(m,{effect:"dark",content:e.t("style.overflow."+S.value),placement:"top",persistent:"","hide-after":0,key:S.value},{default:n.withCtx(()=>[n.createVNode(u,{label:S.value,value:S.value,onClick:w=>e.changeOverflow(S.value)},{default:n.withCtx(()=>[S.text?(n.openBlock(),n.createElementBlock("span",jS,"Auto ")):(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fc-icon",S.icon])},null,2))]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["label","info"])])}const US=De(PS,[["render",zS]]),H4="",HS=n.defineComponent({name:"ColorInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){return{value:this.modelValue||"",predefine:["#c9e6fc","#c3f2f2","#c2f1d2","#fef6c6","#ffe5c2","#fdcac2","#fadcce","#dec2fa","#ccd2f1","#2196f3","#08c9c9","#00c344","#fad714","#ff9300","#f52222","#eb2f96","#800080","#7500ea","#2d46c4","#000000","#333333","#5a5a5a","#757575","#9e9e9e","#bdbdbd","#dddddd","#f5f5f5","#ffffff"]}},methods:{},created(){}}),WS={class:"_fd-color-input"};function GS(e,t,r,o,i,l){const d=n.resolveComponent("el-color-picker"),c=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",WS,[n.createVNode(c,{clearable:"",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=u=>e.value=u)},{append:n.withCtx(()=>[n.createVNode(d,{"show-alpha":"","color-format":"hex",predefine:e.predefine,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u)},null,8,["predefine","modelValue"])]),_:1},8,["modelValue"])])}const Qr=De(HS,[["render",GS]]),W4="",KS=n.defineComponent({name:"BorderInput",components:{ColorInput:Qr,SizeInput:Yr,ConfigItem:Rn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue(),this.initCur()},active(){this.initCur()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=Ho(t)+": "+this.borderStyle[t]+";")},{}),e}},data(){const e=this.designer.setupState.t;return{t:e,active:"",borderStyle:{},curStyle:"",curColor:"",curWidth:"",lineType:["solid","dashed","dotted","double"].map(t=>({value:t,label:e("style."+t)})),position:["Top","Left","Bottom","Right"],type:["Style","Color","Width"],unwatch:null}},methods:{tidyValue(){const e=[];this.borderStyle={},["",...this.position].forEach(t=>{this.type.forEach(r=>{e.push("border"+t+r)})}),e.forEach(t=>{this.borderStyle[t]=this.modelValue[t]||""})},onInput(){const e=Object.keys(this.borderStyle).reduce((t,r)=>(this.borderStyle[r]!==""&&(t[r]=this.borderStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},pushCur(){this.borderStyle["border"+this.active+"Style"]=this.curStyle||"",this.borderStyle["border"+this.active+"Color"]=this.curColor||"",this.borderStyle["border"+this.active+"Width"]=this.curWidth||"",this.onInput()},initCur(){this.unwatch&&this.unwatch(),this.curStyle=this.borderStyle["border"+this.active+"Style"]||"",this.curColor=this.borderStyle["border"+this.active+"Color"]||"",this.curWidth=this.borderStyle["border"+this.active+"Width"]||"",this.unwatch=this.$watch(()=>[this.curStyle,this.curColor,this.curWidth],()=>{this.pushCur()})}},created(){this.tidyValue(),this.initCur()}}),YS={class:"_fd-border-input"},QS={class:"_fd-bi-left"},JS={class:"_fd-bil-row"},XS={class:"_fd-bil-row"},ZS={class:"_fd-bil-row"},qS={class:"_fd-bi-right"},ex={class:"_fd-bi-opt"};function tx(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("SizeInput"),m=n.resolveComponent("ColorInput"),h=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(h,{label:e.t("style.border")},{append:n.withCtx(()=>[n.createElementVNode("div",YS,[n.createElementVNode("div",QS,[n.createElementVNode("div",JS,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Top"?"active":""]),onClick:t[0]||(t[0]=y=>e.active="Top")},"\u2533 ",2)]),n.createElementVNode("div",XS,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Left"?"active":""]),onClick:t[1]||(t[1]=y=>e.active="Left")},"\u2523 ",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active===""?"active":""]),onClick:t[2]||(t[2]=y=>e.active="")},"\u254B",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Right"?"active":""]),onClick:t[3]||(t[3]=y=>e.active="Right")}," \u252B ",2)]),n.createElementVNode("div",ZS,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Bottom"?"active":""]),onClick:t[4]||(t[4]=y=>e.active="Bottom")},"\u253B ",2)])]),n.createElementVNode("div",qS,[n.createVNode(c,{modelValue:e.curStyle,"onUpdate:modelValue":t[5]||(t[5]=y=>e.curStyle=y),clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lineType,y=>(n.openBlock(),n.createBlock(d,{key:y.value,label:y.label,value:y.value},{default:n.withCtx(()=>[n.createElementVNode("div",ex,[n.createElementVNode("div",{class:n.normalizeClass(["_line",y.value])},null,2)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),n.createVNode(u,{modelValue:e.curWidth,"onUpdate:modelValue":t[6]||(t[6]=y=>e.curWidth=y)},null,8,["modelValue"]),n.createVNode(m,{modelValue:e.curColor,"onUpdate:modelValue":t[7]||(t[7]=y=>e.curColor=y)},null,8,["modelValue"])])])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"line-box",style:n.normalizeStyle(e.borderStyleStr)},t[8]||(t[8]=[n.createElementVNode("div",{class:"line-box-con"},null,-1)]),4)]),_:1},8,["label"])}const nx=De(KS,[["render",tx]]),G4="",ix=n.defineComponent({name:"RadiusInput",components:{ConfigItem:Rn,ColorInput:Qr,SizeInput:Yr},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(e){e!==this.oldValue&&this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{visit:!1,active:"",style:{com:"",left:"",right:"",top:"",bottom:""},unit:["px","%"],oldValue:""}},methods:{batch(){this.style.left=this.style.com,this.style.right=this.style.com,this.style.top=this.style.com,this.style.bottom=this.style.com,this.onInput()},tidyValue(){if(this.style={com:"",left:"",right:"",top:"",bottom:""},!this.modelValue)return;let e=(this.modelValue||"").split(" ").filter(t=>t!=="");e.length===1?e=[e[0],e[0],e[0],e[0]]:e.length===2?e=[e[0],e[1],e[0],e[1]]:e.length===3&&(e=[e[0],e[1],e[2],e[1]]),this.style.left=e[0],this.style.top=e[1],this.style.right=e[2],this.style.bottom=e[3],this.updateCom()},updateCom(){let e=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;this.style.com=e.replaceAll(this.style.left,"").trim()===""?this.style.left:""},onInput(){let e=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;`${this.style.left}${this.style.top}${this.style.right}${this.style.bottom}`.trim()===""?e="":this.updateCom(),this.oldValue=e,this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),rx={class:"_fd-radius-input"},ox={class:"_fd-radius-con"},ax={class:"_fd-radius-item"},lx={class:"_fd-radius-item"},sx={class:"_fd-radius-item"},dx={class:"_fd-radius-item"};function cx(e,t,r,o,i,l){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",rx,[n.createVNode(c,{label:e.t("style.borderRadius")},{append:n.withCtx(()=>[n.createElementVNode("div",ox,[n.createElementVNode("div",ax,[t[5]||(t[5]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(180deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.left,"onUpdate:modelValue":t[1]||(t[1]=u=>e.style.left=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",lx,[t[6]||(t[6]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(-90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.top,"onUpdate:modelValue":t[2]||(t[2]=u=>e.style.top=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",sx,[t[7]||(t[7]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.bottom,"onUpdate:modelValue":t[3]||(t[3]=u=>e.style.bottom=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",dx,[t[8]||(t[8]=n.createElementVNode("div",{class:"_fd-radius-icon"},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.right,"onUpdate:modelValue":t[4]||(t[4]=u=>e.style.right=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])])])]),default:n.withCtx(()=>[n.createVNode(d,{unit:e.unit,modelValue:e.style.com,"onUpdate:modelValue":t[0]||(t[0]=u=>e.style.com=u),onChange:e.batch},null,8,["unit","modelValue","onChange"])]),_:1},8,["label"])])}const ux=De(ix,[["render",cx]]),K4="",fx=n.defineComponent({name:"BorderInput",components:{ColorInput:Qr,SizeInput:Yr,ConfigItem:Rn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=Ho(t)+": "+this.borderStyle[t]+";")},{}),e},alignType(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},decorationType(){return["underline","line-through","overline"].map(e=>({label:this.t("style.decoration."+e),value:e}))},weightType(){return[300,400,500,700].map(e=>({label:this.t("style.weight."+e),value:e}))}},data(){return{t:this.designer.setupState.t,fontStyle:{fontSize:"",fontWeight:"",fontStyle:"",textDecoration:"",textAlign:"",lineHeight:"",letterSpacing:""}}},methods:{tidyValue(){Object.keys(this.fontStyle).forEach(e=>{this.fontStyle[e]=this.modelValue[e]||""})},onInput(){const e=Object.keys(this.fontStyle).reduce((t,r)=>(this.fontStyle[r]!==""&&(t[r]=this.fontStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),px={class:"_fd-font-input"};function hx(e,t,r,o,i,l){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("el-form-item"),u=n.resolveComponent("el-option"),m=n.resolveComponent("el-select"),h=n.resolveComponent("el-form"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(y,{label:e.t("style.font.name")},{append:n.withCtx(()=>[n.createElementVNode("div",px,[n.createVNode(h,{"label-width":"50px","label-position":"top",inline:"",size:"small"},{default:n.withCtx(()=>[n.createVNode(c,{label:e.t("style.font.size")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.fontSize,"onUpdate:modelValue":t[0]||(t[0]=C=>e.fontStyle.fontSize=C),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.weight.name")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.fontStyle.fontWeight,"onUpdate:modelValue":t[1]||(t[1]=C=>e.fontStyle.fontWeight=C),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.weightType,C=>(n.openBlock(),n.createBlock(u,{key:C.value,label:C.label,value:C.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontWeight:C.value})},n.toDisplayString(C.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.decoration.name")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.fontStyle.textDecoration,"onUpdate:modelValue":t[2]||(t[2]=C=>e.fontStyle.textDecoration=C),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.decorationType,C=>(n.openBlock(),n.createBlock(u,{key:C.value,label:C.label,value:C.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({textDecoration:C.value})},n.toDisplayString(C.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.align")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.fontStyle.textAlign,"onUpdate:modelValue":t[3]||(t[3]=C=>e.fontStyle.textAlign=C),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.alignType,C=>(n.openBlock(),n.createBlock(u,{key:C.value,label:C.label,value:C.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.height")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.lineHeight,"onUpdate:modelValue":t[4]||(t[4]=C=>e.fontStyle.lineHeight=C),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.spacing")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.letterSpacing,"onUpdate:modelValue":t[5]||(t[5]=C=>e.fontStyle.letterSpacing=C),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-fi-box",style:n.normalizeStyle(e.fontStyle)},n.toDisplayString(e.t("style.font.preview")),5)]),_:1},8,["label"])}const mx=De(fx,[["render",hx]]),Y4="",gx=n.defineComponent({name:"DisplayInput",components:{ConfigItem:Rn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:Object},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{style:{},displayOptions:[{value:"block",icon:"block"},{value:"inline-block",icon:"inlineblock"},{value:"inline",icon:"inline"},{value:"flex",icon:"flex"}],options:[{key:"flexDirection",items:[{value:"row",icon:"direction-row"},{value:"column",icon:"direction-column"},{value:"row-reverse",icon:"direction-rowreverse"},{value:"column-reverse",icon:"direction-columnreverse"}]},{key:"flexWrap",items:[{value:"nowrap",icon:"flex-nowrap",row:!0},{value:"wrap",icon:"flex-wrap",row:!0}]},{key:"alignContent",items:[{value:"center",icon:"align-center",row:!0},{value:"flex-start",icon:"align-flexstart",row:!0},{value:"flex-end",icon:"align-flexend",row:!0},{value:"space-around",icon:"align-spacearound",row:!0},{value:"space-between",icon:"align-spacebetween",row:!0},{value:"stretch",icon:"align-stretch",row:!0}]},{key:"justifyContent",items:[{value:"center",icon:"justify-center",row:!0},{value:"flex-start",icon:"justify-flexstart",row:!0},{value:"flex-end",icon:"justify-flexend",row:!0},{value:"space-between",icon:"justify-spacebetween",row:!0},{value:"space-around",icon:"justify-spacearound",row:!0},{value:"space-evenly",icon:"justify-stretch",row:!0}]},{key:"alignItems",items:[{value:"center",icon:"alignitems-center",row:!0},{value:"flex-start",icon:"alignitems-flexstart",row:!0},{value:"flex-end",icon:"alignitems-flexend",row:!0},{value:"stretch",icon:"alignitems-stretch",row:!0},{value:"baseline",icon:"alignitems-baseline"}]}]}},methods:{tidyValue(){this.style={display:"",flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""},this.modelValue&&Object.keys(this.style).forEach(e=>{this.modelValue[e]&&(this.style[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.style).reduce((t,r)=>(this.style[r]!==""&&(t[r]=this.style[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},radioClick(e,t){const r=this.style[e];this.style[e]===t.value?this.style[e]="":e==="display"&&t.value!=="flex"?this.style={display:t.value,flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""}:this.style[e]=t.value,this.style[e]!==r&&this.onInput()}},created(){this.tidyValue()}}),vx={class:"_fd-display-input"},yx={class:"_fd-display-raw"},bx={class:"_label"};function wx(e,t,r,o,i,l){const d=n.resolveComponent("el-radio-button"),c=n.resolveComponent("el-tooltip"),u=n.resolveComponent("el-radio-group"),m=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",vx,[n.createVNode(m,{label:e.t("style.display.name"),arrow:!1,showAppend:e.style.display==="flex"},{append:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-display-con",[e.style.flexDirection,["column","column-reverse"].indexOf(e.style.flexDirection)>-1?"rotate-flag":""]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,h=>(n.openBlock(),n.createElementBlock("div",yx,[n.createElementVNode("div",bx,n.toDisplayString(e.t("style."+h.key+".name"))+": ",1),n.createVNode(u,{"model-value":e.style[h.key],size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h.items,y=>(n.openBlock(),n.createBlock(c,{effect:"dark",content:e.t("style."+h.key+"."+y.value),placement:"top",persistent:"","hide-after":0,key:y.value},{default:n.withCtx(()=>[n.createVNode(d,{label:y.value,value:y.value,onClick:C=>e.radioClick(h.key,y)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(y.row?"rotate":"")},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+y.icon])},null,2)],2)]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:2},1032,["model-value"])]))),256))],2)]),default:n.withCtx(()=>[n.createVNode(u,{"model-value":e.style.display,size:"small",style:{width:"150px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.displayOptions,h=>(n.openBlock(),n.createBlock(c,{effect:"dark",content:e.t("style.display."+h.value),placement:"top",persistent:"","hide-after":0,key:h.value},{default:n.withCtx(()=>[n.createVNode(d,{label:h.value,value:h.value,onClick:y=>e.radioClick("display",h)},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-display-"+h.icon])},null,2)]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:1},8,["model-value"])]),_:1},8,["label","showAppend"])])}const Cx=De(gx,[["render",wx]]),Q4="",_x=n.defineComponent({name:"ShadowContent",components:{ColorInput:Qr},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String}},data(){return{max:24,boxSize:250,options:[{key:"external",icon:"shadow"},{key:"inset",icon:"shadow-inset"}],form:{color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"},units:["px","%","rem","em","vw","vh"],down:!1,position:{left:0,top:0}}},computed:{spotStyle(){return{left:this.position.left+"px",top:this.position.top+"px"}},t(){return this.designer.setupState.t}},watch:{position(e){this.form.x=parseInt(String((e.left-this.boxSize/2)/this.boxSize*this.max)),this.form.y=parseInt(String((e.top-this.boxSize/2)/this.boxSize*this.max));const t=this.max/2;this.form.x=this.form.x<0?Math.max(this.form.x,t*-1):Math.min(this.form.x,t),this.form.y=this.form.y<0?Math.max(this.form.y,t*-1):Math.min(this.form.y,t)},modelValue(e){this.initStyle(e)}},methods:{getMouseXY(e,t){if(this.down||t){const r=this.$refs.box.getBoundingClientRect();this.position={left:parseInt(String(e.clientX-r.x)),top:parseInt(String(e.clientY-r.y))}}},onMouseup(){this.down=!1,this.onInput()},onMousedown(e){this.getMouseXY(e,!0),this.down=!0},onInput(){const e=this.form;let t=`${e.x}${e.x_unit} ${e.y}${e.y_unit} ${e.vague}${e.vague_unit} ${e.extend}${e.extend_unit} ${e.color}`;`${e.x}${e.y}${e.vague}${e.extend}`.replaceAll("0","")===""?t="":e.type==="inset"&&(t+=" inset"),this.$emit("update:modelValue",t),this.$emit("change",t)},initStyle(e){(this.modelValue||"").indexOf(" inset")>-1&&(this.form.type="inset",e=e.replace(" inset",""));const t=e.split("rgba");let r,o;t.length>1?(r="rgba"+t[1].trim(),o=t[0].trim().split(" ")):(o=t[0].trim().split(" "),r=o.pop()),this.form.color=r||"#000",this.form.x=parseInt(o[0])||0,this.form.y=parseInt(o[1])||0,this.form.vague=parseInt(o[2])||0,this.form.extend=parseInt(o[3])||0;const i=l=>(l==null?void 0:l.replace(/[-\d.]/g,""))||"px";this.form.x_unit=i(o[0]),this.form.y_unit=i(o[1]),this.form.vague_unit=i(o[2]),this.form.extend_unit=i(o[3]),this.position.left=this.boxSize/2+this.form.x/this.max*this.boxSize||0,this.position.top=this.boxSize/2+this.form.y/this.max*this.boxSize||0}},mounted(){this.initStyle(this.modelValue)}}),Ex={class:"_fd-shadow-content"},Ax={class:"_fd-sc-right"};function Sx(e,t,r,o,i,l){const d=n.resolveComponent("el-radio-button"),c=n.resolveComponent("el-tooltip"),u=n.resolveComponent("el-radio-group"),m=n.resolveComponent("el-form-item"),h=n.resolveComponent("ColorInput"),y=n.resolveComponent("el-option"),C=n.resolveComponent("el-select"),S=n.resolveComponent("el-input"),w=n.resolveComponent("el-form");return n.openBlock(),n.createElementBlock("div",Ex,[n.createVNode(w,{"label-width":"50px","label-position":"top",inline:"",class:"_fd-sc-form",size:"small"},{default:n.withCtx(()=>[n.createVNode(m,{label:e.t("style.shadow.mode")},{default:n.withCtx(()=>[n.createVNode(u,{modelValue:e.form.type,"onUpdate:modelValue":t[0]||(t[0]=E=>e.form.type=E),onChange:e.onInput,size:"small",class:"_fd-sc-radio"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,E=>(n.openBlock(),n.createBlock(c,{key:E.key,effect:"dark",content:e.t("style.shadow."+E.key),placement:"top","hide-after":0,persistent:""},{default:n.withCtx(()=>[n.createVNode(d,{label:E.key,value:E.key},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+E.icon])},null,2)]),_:2},1032,["label","value"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.form.color,"onUpdate:modelValue":t[1]||(t[1]=E=>e.form.color=E),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.shadow.x")},{default:n.withCtx(()=>[n.createVNode(S,{modelValue:e.form.x,"onUpdate:modelValue":t[3]||(t[3]=E=>e.form.x=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.x_unit,"onUpdate:modelValue":t[2]||(t[2]=E=>e.form.x_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.shadow.y")},{default:n.withCtx(()=>[n.createVNode(S,{modelValue:e.form.y,"onUpdate:modelValue":t[5]||(t[5]=E=>e.form.y=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.y_unit,"onUpdate:modelValue":t[4]||(t[4]=E=>e.form.y_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.shadow.vague")},{default:n.withCtx(()=>[n.createVNode(S,{modelValue:e.form.vague,"onUpdate:modelValue":t[7]||(t[7]=E=>e.form.vague=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.vague_unit,"onUpdate:modelValue":t[6]||(t[6]=E=>e.form.vague_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.shadow.extend")},{default:n.withCtx(()=>[n.createVNode(S,{modelValue:e.form.extend,"onUpdate:modelValue":t[9]||(t[9]=E=>e.form.extend=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.extend_unit,"onUpdate:modelValue":t[8]||(t[8]=E=>e.form.extend_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1}),n.createElementVNode("div",Ax,[n.createElementVNode("div",{ref:"box",class:n.normalizeClass(["_fd-sc-box",e.down?"down":""]),onClick:t[10]||(t[10]=E=>e.getMouseXY(E,1)),onMousedown:t[11]||(t[11]=(...E)=>e.onMousedown&&e.onMousedown(...E)),onMouseup:t[12]||(t[12]=(...E)=>e.onMouseup&&e.onMouseup(...E)),onMousemove:t[13]||(t[13]=E=>e.getMouseXY(E,0))},[n.createElementVNode("span",{class:"spot",style:n.normalizeStyle(e.spotStyle)},t[14]||(t[14]=[n.createElementVNode("i",{class:"spot-id"},null,-1)]),4),t[15]||(t[15]=n.createElementVNode("span",{class:"center-spot"},null,-1)),t[16]||(t[16]=n.createElementVNode("div",{class:"x-hr"},null,-1)),t[17]||(t[17]=n.createElementVNode("div",{class:"y-hr"},null,-1))],34)])])}const xx=De(_x,[["render",Sx]]),J4="",kx=n.defineComponent({name:"ShadowInput",emits:["update:modelValue","change"],components:{ConfigItem:Rn,ShadowContent:xx},inject:["designer"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){const e=this.designer.setupState.t;return{t:e,options:[{label:e("style.shadow.classic"),value:"3px 5px 7px 2px #CBCBCBFF"},{label:e("style.shadow.flat"),value:"4px 4px 3px -2px #E7E5E5FF"},{label:e("style.shadow.solid"),value:"1px 2px 4px 2px #979797FF"}],value:this.modelValue||""}},methods:{changeValue(e){this.value=e}},created(){}}),Tx={class:"_fd-shadow-input"};function Nx(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown"),m=n.resolveComponent("el-input"),h=n.resolveComponent("ShadowContent"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",Tx,[n.createVNode(y,{label:e.t("style.shadow.name")},{append:n.withCtx(()=>[n.createVNode(h,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=C=>e.value=C)},null,8,["modelValue"])]),default:n.withCtx(()=>[n.createVNode(m,{clearable:"",modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=C=>e.value=C),class:"_fd-si-input"},{append:n.withCtx(()=>[n.createVNode(u,null,{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,C=>(n.openBlock(),n.createBlock(d,{onClick:S=>e.changeValue(C.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])])}const Dx=De(kx,[["render",Nx]]),X4="",Ox=n.defineComponent({name:"TableOptions",components:{ValueInput:yl},emits:["update:modelValue","change"],props:{modelValue:[Array,Object],column:{type:Array,default:()=>[{label:"label",key:"label"},{label:"value",key:"value"}]},valueType:String,keyValue:String,max:Number,size:String},inject:["designer"],watch:{modelValue(){this.value=this.tidyModelValue()}},computed:{t(){return this.designer.setupState.t},overColumn(){let e=this.column;if(this.checked){for(let t=0;t<e.length;t++)if(e[t].key===this.keyValue)return[e[t]]}return e}},data(){return{value:this.tidyModelValue(),checked:!1}},created(){this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.input()}))},methods:{isChecked(){for(let e=0;e<this.value.length;e++){const t=this.value[e],r=Object.keys(t),o=t[this.keyValue];for(let i=0;i<r.length;i++)if(o!==t[r[i]])return!1}return!0},tidyModelValue(){const e=this.modelValue;return this.valueType==="string"?(e||[]).map(t=>({value:""+t})):this.valueType==="object"?Object.keys(e||{}).map(t=>({label:t,value:e[t]})):[...e||[]].map(t=>HC(t))},tidyValue(){if(this.valueType==="object"){const e={};return this.value.forEach(t=>{t.label&&t.value&&(e[t.label]=t.value)}),e}else return this.value.map(e=>{if(this.valueType==="string")return e.value;if(this.checked){const t=e[this.keyValue];return this.column.reduce((r,o)=>(r[o.key]=t,r),{})}else return{...e}})},onInput(e){if(this.column.length===1&&e[this.column[0].key]==="")return;this.column.every(r=>r.required===!1?!0:["object","string"].indexOf(this.valueType)>-1?e[r.key]!==void 0&&e[r.key]!==""&&e[r.key]!==null:e[r.key]!==void 0)&&this.input()},input(){const e=this.tidyValue();this.$emit("update:modelValue",e),this.$emit("change",e)},add(){this.value.push(this.column.reduce((e,t)=>(e[t.key]="",e),{}))},del(e){this.value.splice(e,1),this.input()}}}),Vx={class:"_td-table-opt"},Bx=["onClick"],Rx={class:"_td-table-opt-handle"};function $x(e,t,r,o,i,l){const d=n.resolveComponent("ValueInput"),c=n.resolveComponent("el-input"),u=n.resolveComponent("el-table-column"),m=n.resolveComponent("el-table"),h=n.resolveComponent("el-button"),y=n.resolveComponent("el-checkbox");return n.openBlock(),n.createElementBlock("div",Vx,[(n.openBlock(),n.createBlock(m,{data:e.value,key:e.checked?"2":"1",border:"",size:e.size||"small",style:{width:"100%"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.overColumn,(C,S)=>(n.openBlock(),n.createBlock(u,{key:C.label+S,label:C.label},{default:n.withCtx(w=>[C.value?(n.openBlock(),n.createBlock(d,{key:0,size:e.size||"small",modelValue:w.row[C.key],"onUpdate:modelValue":E=>w.row[C.key]=E,onBlur:E=>e.onInput(w.row),onChangeType:E=>e.onInput(w.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur","onChangeType"])):(n.openBlock(),n.createBlock(c,{key:1,size:e.size||"small",modelValue:w.row[C.key],"onUpdate:modelValue":E=>w.row[C.key]=E,onBlur:E=>e.onInput(w.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur"]))]),_:2},1032,["label"]))),128)),n.createVNode(u,{width:"35",align:"center",fixed:"right"},{default:n.withCtx(C=>[n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:S=>e.del(C.$index)},null,8,Bx)]),_:1})]),_:1},8,["data","size"])),n.createElementVNode("div",Rx,[!e.max||e.max>e.value.length?(n.openBlock(),n.createBlock(h,{key:0,link:"",type:"primary",onClick:e.add},{default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.keyValue?(n.openBlock(),n.createBlock(y,{key:1,modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=C=>e.checked=C),label:e.t("tableOptions.keyValue")},null,8,["modelValue","label"])):n.createCommentVNode("",!0)])])}const Nm=De(Ox,[["render",$x]]),Z4="",Ix=n.defineComponent({name:"BoxSpaceInput",components:{ConfigItem:Rn},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{position:["Top","Right","Bottom","Left"],boxStyle:{margin:"",padding:"",marginLeft:"",marginRight:"",marginTop:"",marginBottom:"",paddingLeft:"",paddingRight:"",paddingTop:"",paddingBottom:""},marginLock:!1,paddingLock:!1}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={},["margin","padding"].forEach(e=>{this.boxStyle[e]=this.modelValue[e]||"",this.position.forEach(t=>{this.boxStyle[e+t]=this.tidySize(this.modelValue[e+t]||this.modelValue[e]||"")})})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,r)=>(this.boxStyle[r]!==""&&(t[r]=this.boxStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},tidySize(e){if(!/^(\d*\.?\d+)(px|rem|%|vh|vw|em)$/.test(e)){if(e==="auto")return e;const r=parseInt(e);return isNaN(r)?"":r+"px"}return e},setValue(e,t,r){const o=this.tidySize(r.target.value);e?this[e+"Lock"]?this.position.forEach(i=>{this.boxStyle[e+i]=o}):this.boxStyle[e+t]=o:this.boxStyle[t]=o,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value},clear(e){this.position.forEach(t=>{this.boxStyle[e+t]=""}),this.onInput()},lock(e){const t=e+"Lock";this[t]=!this[t]}},created(){this.tidyValue()}}),Fx={class:"_fd-box-space-input"},Mx={class:"_padding"},Px={class:"_padding-title"},Lx=["value"],jx=["value"],zx=["value"],Ux=["value"],Hx={class:"_fd-help"},Wx={class:"_margin"},Gx={class:"_margin-title"},Kx={class:"_fd-help"},Yx=["value"],Qx=["value"],Jx=["value"],Xx=["value"];function Zx(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",Fx,[n.createElementVNode("div",Mx,[n.createElementVNode("span",Px,n.toDisplayString(e.t("style.margin")),1),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.marginTop,type:"text",onBlur:t[0]||(t[0]=d=>e.setValue("margin","Top",d)),onInput:t[1]||(t[1]=d=>e.change("marginTop",d))},null,40,Lx),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.marginRight,type:"text",onBlur:t[2]||(t[2]=d=>e.setValue("margin","Right",d)),onInput:t[3]||(t[3]=d=>e.change("marginRight",d))},null,40,jx),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.marginBottom,type:"text",onBlur:t[4]||(t[4]=d=>e.setValue("margin","Bottom",d)),onInput:t[5]||(t[5]=d=>e.change("marginBottom",d))},null,40,zx),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.marginLeft,type:"text",onBlur:t[6]||(t[6]=d=>e.setValue("margin","Left",d)),onInput:t[7]||(t[7]=d=>e.change("marginLeft",d))},null,40,Ux),n.createElementVNode("div",Hx,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.marginLock?"active":""]),title:"lock",onClick:t[8]||(t[8]=d=>e.lock("margin"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[9]||(t[9]=d=>e.clear("margin"))})]),n.createElementVNode("div",Wx,[n.createElementVNode("span",Gx,n.toDisplayString(e.t("style.padding")),1),n.createElementVNode("div",Kx,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.paddingLock?"active":""]),title:"lock",onClick:t[10]||(t[10]=d=>e.lock("padding"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[11]||(t[11]=d=>e.clear("padding"))})]),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.paddingTop,type:"text",onBlur:t[12]||(t[12]=d=>e.setValue("padding","Top",d)),onInput:t[13]||(t[13]=d=>e.change("paddingTop",d))},null,40,Yx),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.paddingRight,type:"text",onBlur:t[14]||(t[14]=d=>e.setValue("padding","Right",d)),onInput:t[15]||(t[15]=d=>e.change("paddingRight",d))},null,40,Qx),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.paddingBottom,type:"text",onBlur:t[16]||(t[16]=d=>e.setValue("padding","Bottom",d)),onInput:t[17]||(t[17]=d=>e.change("paddingBottom",d))},null,40,Jx),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.paddingLeft,type:"text",onBlur:t[18]||(t[18]=d=>e.setValue("padding","Left",d)),onInput:t[19]||(t[19]=d=>e.change("paddingLeft",d))},null,40,Xx),t[20]||(t[20]=n.createElementVNode("div",{class:"_box"},null,-1))])])])}const qx=De(Ix,[["render",Zx]]),q4="",Dm=["display","flexDirection","flexWrap","alignContent","justifyContent","alignItems"],Om=["fontSize","fontWeight","fontStyle","textDecoration","textAlign","lineHeight","letterSpacing"],Vm=["height","width","minWidth","minHeight","maxWidth","maxHeight","overflow"],Bm=["color","backgroundColor","scale","borderRadius","boxShadow","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","padding","opacity","borderStyle","borderColor","borderWidth","borderTopStyle","borderTopColor","borderTopWidth","borderLeftStyle","borderLeftColor","borderLeftWidth","borderBottomStyle","borderBottomColor","borderBottomWidth","borderRightStyle","borderRightColor","borderRightWidth",...Dm,...Om,...Vm],ek=n.defineComponent({name:"StyleConfig",inject:["designer"],emits:["update:modelValue"],components:{BoxSpaceInput:qx,TableOptions:Nm,ColorInput:Qr,ConfigItem:Rn,DisplayInput:Cx,RadiusInput:ux,BoxSizeInput:US,BorderInput:nx,ShadowInput:Dx,FontInput:mx},props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue:{handler(){this.tidyStyle()},deep:!0}},data(){return{t:this.designer.setupState.t,formData:{},space:{},size:{},border:{},display:{},font:{},radius:"",backgroundColor:"",color:"",boxShadow:"",opacity:100,scale:100}},methods:{tidyStyle(){const e={...this.modelValue||{}},t={};Object.keys(e).forEach(u=>{const m=Xs(u);(["margin","padding"].indexOf(u)>-1||u.indexOf("margin")>-1||u.indexOf("padding")>-1)&&(t[m]=e[u])});const r={};Vm.forEach(u=>{e[u]&&(r[u]=e[u])}),this.radius=e.borderRadius||"",delete e.borderRadius;const o={};Object.keys(e).forEach(u=>{u.indexOf("border")===0&&(o[u]=e[u])});let i=li(e.opacity)?100:parseFloat(e.opacity)||0;i&&i<1&&(i=i*100);let l=e.scale;li(e.scale)?l=100:isNaN(Number(l))?l=parseFloat(l)||100:l=l>0?l*100:0;const d={};Dm.forEach(u=>{e[u]&&(d[u]=e[u])});const c={};Om.forEach(u=>{e[u]&&(c[u]=e[u])}),this.opacity=i,this.scale=l,this.size=r,this.space=t,this.border=o,this.display=d,this.font=c,this.boxShadow=e.boxShadow||"",this.color=e.color||"",this.backgroundColor=e.backgroundColor||"",Bm.forEach(u=>{delete e[u]}),this.formData=e},onInput(){let e={...this.formData},t={};Bm.forEach(o=>{if(e[o])t[o]=e[o],delete e[o];else{const i=Ho(o);e[i]&&(t[o]=e[i],delete e[i])}});const r={...e,color:this.color||"",backgroundColor:this.backgroundColor||"",opacity:this.opacity>=0&&this.opacity<100?this.opacity+"%":"",borderRadius:this.radius||"",boxShadow:this.boxShadow||"",scale:this.scale>=0&&this.scale!==100?this.scale+"%":"",...this.space,...this.size,...this.border,...this.display,...this.font,...t};Object.keys(r).forEach(o=>{li(r[o])&&delete r[o]}),this.$emit("update:modelValue",r)}},created(){this.tidyStyle()}}),tk={class:"_fd-style-config"};function nk(e,t,r,o,i,l){const d=n.resolveComponent("BoxSpaceInput"),c=n.resolveComponent("BoxSizeInput"),u=n.resolveComponent("DisplayInput"),m=n.resolveComponent("ColorInput"),h=n.resolveComponent("ConfigItem"),y=n.resolveComponent("BorderInput"),C=n.resolveComponent("RadiusInput"),S=n.resolveComponent("FontInput"),w=n.resolveComponent("ShadowInput"),E=n.resolveComponent("el-slider"),_=n.resolveComponent("TableOptions");return n.openBlock(),n.createElementBlock("div",tk,[n.createVNode(d,{modelValue:e.space,"onUpdate:modelValue":t[0]||(t[0]=g=>e.space=g),onChange:e.onInput,style:{"margin-bottom":"10px"}},null,8,["modelValue","onChange"]),n.createVNode(c,{modelValue:e.size,"onUpdate:modelValue":t[1]||(t[1]=g=>e.size=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(u,{modelValue:e.display,"onUpdate:modelValue":t[2]||(t[2]=g=>e.display=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(h,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.color,"onUpdate:modelValue":t[3]||(t[3]=g=>e.color=g),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.backgroundColor")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.backgroundColor,"onUpdate:modelValue":t[4]||(t[4]=g=>e.backgroundColor=g),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(y,{modelValue:e.border,"onUpdate:modelValue":t[5]||(t[5]=g=>e.border=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(C,{modelValue:e.radius,"onUpdate:modelValue":t[6]||(t[6]=g=>e.radius=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(S,{modelValue:e.font,"onUpdate:modelValue":t[7]||(t[7]=g=>e.font=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(w,{modelValue:e.boxShadow,"onUpdate:modelValue":t[8]||(t[8]=g=>e.boxShadow=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(h,{label:e.t("style.opacity"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(E,{"show-tooltip":!1,modelValue:e.opacity,"onUpdate:modelValue":t[9]||(t[9]=g=>e.opacity=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.opacity)+"%",1)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.scale"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(E,{min:80,max:120,"show-tooltip":!1,modelValue:e.scale,"onUpdate:modelValue":t[10]||(t[10]=g=>e.scale=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.scale)+"%",1)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("props.custom"),info:Object.keys(e.formData).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(_,n.mergeProps({modelValue:e.formData,"onUpdate:modelValue":t[11]||(t[11]=g=>e.formData=g),onChange:e.onInput},{column:[{label:e.t("props.key"),key:"label"},{label:e.t("props.value"),key:"value"}],valueType:"object"}),null,16,["modelValue","onChange"])]),_:1},8,["label","info"])])}const Rm=De(ek,[["render",nk]]);(function(e,t){(function(r){r(zr())})(function(r){r.defineMode("css",function(T,B){var L=B.inline;B.propertyKeywords||(B=r.resolveMode("text/css"));var U=T.indentUnit,H=B.tokenHooks,R=B.documentTypes||{},z=B.mediaTypes||{},$=B.mediaFeatures||{},A=B.mediaValueKeywords||{},J=B.propertyKeywords||{},Q=B.nonStandardPropertyKeywords||{},G=B.fontProperties||{},ie=B.counterDescriptors||{},X=B.colorKeywords||{},le=B.valueKeywords||{},be=B.allowNested,ce=B.lineComment,de=B.supportsAtComponent===!0,pe=T.highlightNonStandardPropertyKeywords!==!1,se,ge;function ye(fe,ke){return se=ke,fe}function D(fe,ke){var we=fe.next();if(H[we]){var He=H[we](fe,ke);if(He!==!1)return He}if(we=="@")return fe.eatWhile(/[\w\\\-]/),ye("def",fe.current());if(we=="="||(we=="~"||we=="|")&&fe.eat("="))return ye(null,"compare");if(we=='"'||we=="'")return ke.tokenize=W(we),ke.tokenize(fe,ke);if(we=="#")return fe.eatWhile(/[\w\\\-]/),ye("atom","hash");if(we=="!")return fe.match(/^\s*\w*/),ye("keyword","important");if(/\d/.test(we)||we=="."&&fe.eat(/\d/))return fe.eatWhile(/[\w.%]/),ye("number","unit");if(we==="-"){if(/[\d.]/.test(fe.peek()))return fe.eatWhile(/[\w.%]/),ye("number","unit");if(fe.match(/^-[\w\\\-]*/))return fe.eatWhile(/[\w\\\-]/),fe.match(/^\s*:/,!1)?ye("variable-2","variable-definition"):ye("variable-2","variable");if(fe.match(/^\w+-/))return ye("meta","meta")}else return/[,+>*\/]/.test(we)?ye(null,"select-op"):we=="."&&fe.match(/^-?[_a-z][_a-z0-9-]*/i)?ye("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(we)?ye(null,we):fe.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(fe.current())&&(ke.tokenize=Y),ye("variable callee","variable")):/[\w\\\-]/.test(we)?(fe.eatWhile(/[\w\\\-]/),ye("property","word")):ye(null,null)}function W(fe){return function(ke,we){for(var He=!1,et;(et=ke.next())!=null;){if(et==fe&&!He){fe==")"&&ke.backUp(1);break}He=!He&&et=="\\"}return(et==fe||!He&&fe!=")")&&(we.tokenize=null),ye("string","string")}}function Y(fe,ke){return fe.next(),fe.match(/^\s*[\"\')]/,!1)?ke.tokenize=null:ke.tokenize=W(")"),ye(null,"(")}function q(fe,ke,we){this.type=fe,this.indent=ke,this.prev=we}function ee(fe,ke,we,He){return fe.context=new q(we,ke.indentation()+(He===!1?0:U),fe.context),we}function oe(fe){return fe.context.prev&&(fe.context=fe.context.prev),fe.context.type}function he(fe,ke,we){return Le[we.context.type](fe,ke,we)}function Se(fe,ke,we,He){for(var et=He||1;et>0;et--)we.context=we.context.prev;return he(fe,ke,we)}function Pe(fe){var ke=fe.current().toLowerCase();le.hasOwnProperty(ke)?ge="atom":X.hasOwnProperty(ke)?ge="keyword":ge="variable"}var Le={};return Le.top=function(fe,ke,we){if(fe=="{")return ee(we,ke,"block");if(fe=="}"&&we.context.prev)return oe(we);if(de&&/@component/i.test(fe))return ee(we,ke,"atComponentBlock");if(/^@(-moz-)?document$/i.test(fe))return ee(we,ke,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(fe))return ee(we,ke,"atBlock");if(/^@(font-face|counter-style)/i.test(fe))return we.stateArg=fe,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(fe))return"keyframes";if(fe&&fe.charAt(0)=="@")return ee(we,ke,"at");if(fe=="hash")ge="builtin";else if(fe=="word")ge="tag";else{if(fe=="variable-definition")return"maybeprop";if(fe=="interpolation")return ee(we,ke,"interpolation");if(fe==":")return"pseudo";if(be&&fe=="(")return ee(we,ke,"parens")}return we.context.type},Le.block=function(fe,ke,we){if(fe=="word"){var He=ke.current().toLowerCase();return J.hasOwnProperty(He)?(ge="property","maybeprop"):Q.hasOwnProperty(He)?(ge=pe?"string-2":"property","maybeprop"):be?(ge=ke.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ge+=" error","maybeprop")}else return fe=="meta"?"block":!be&&(fe=="hash"||fe=="qualifier")?(ge="error","block"):Le.top(fe,ke,we)},Le.maybeprop=function(fe,ke,we){return fe==":"?ee(we,ke,"prop"):he(fe,ke,we)},Le.prop=function(fe,ke,we){if(fe==";")return oe(we);if(fe=="{"&&be)return ee(we,ke,"propBlock");if(fe=="}"||fe=="{")return Se(fe,ke,we);if(fe=="(")return ee(we,ke,"parens");if(fe=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ke.current()))ge+=" error";else if(fe=="word")Pe(ke);else if(fe=="interpolation")return ee(we,ke,"interpolation");return"prop"},Le.propBlock=function(fe,ke,we){return fe=="}"?oe(we):fe=="word"?(ge="property","maybeprop"):we.context.type},Le.parens=function(fe,ke,we){return fe=="{"||fe=="}"?Se(fe,ke,we):fe==")"?oe(we):fe=="("?ee(we,ke,"parens"):fe=="interpolation"?ee(we,ke,"interpolation"):(fe=="word"&&Pe(ke),"parens")},Le.pseudo=function(fe,ke,we){return fe=="meta"?"pseudo":fe=="word"?(ge="variable-3",we.context.type):he(fe,ke,we)},Le.documentTypes=function(fe,ke,we){return fe=="word"&&R.hasOwnProperty(ke.current())?(ge="tag",we.context.type):Le.atBlock(fe,ke,we)},Le.atBlock=function(fe,ke,we){if(fe=="(")return ee(we,ke,"atBlock_parens");if(fe=="}"||fe==";")return Se(fe,ke,we);if(fe=="{")return oe(we)&&ee(we,ke,be?"block":"top");if(fe=="interpolation")return ee(we,ke,"interpolation");if(fe=="word"){var He=ke.current().toLowerCase();He=="only"||He=="not"||He=="and"||He=="or"?ge="keyword":z.hasOwnProperty(He)?ge="attribute":$.hasOwnProperty(He)?ge="property":A.hasOwnProperty(He)?ge="keyword":J.hasOwnProperty(He)?ge="property":Q.hasOwnProperty(He)?ge=pe?"string-2":"property":le.hasOwnProperty(He)?ge="atom":X.hasOwnProperty(He)?ge="keyword":ge="error"}return we.context.type},Le.atComponentBlock=function(fe,ke,we){return fe=="}"?Se(fe,ke,we):fe=="{"?oe(we)&&ee(we,ke,be?"block":"top",!1):(fe=="word"&&(ge="error"),we.context.type)},Le.atBlock_parens=function(fe,ke,we){return fe==")"?oe(we):fe=="{"||fe=="}"?Se(fe,ke,we,2):Le.atBlock(fe,ke,we)},Le.restricted_atBlock_before=function(fe,ke,we){return fe=="{"?ee(we,ke,"restricted_atBlock"):fe=="word"&&we.stateArg=="@counter-style"?(ge="variable","restricted_atBlock_before"):he(fe,ke,we)},Le.restricted_atBlock=function(fe,ke,we){return fe=="}"?(we.stateArg=null,oe(we)):fe=="word"?(we.stateArg=="@font-face"&&!G.hasOwnProperty(ke.current().toLowerCase())||we.stateArg=="@counter-style"&&!ie.hasOwnProperty(ke.current().toLowerCase())?ge="error":ge="property","maybeprop"):"restricted_atBlock"},Le.keyframes=function(fe,ke,we){return fe=="word"?(ge="variable","keyframes"):fe=="{"?ee(we,ke,"top"):he(fe,ke,we)},Le.at=function(fe,ke,we){return fe==";"?oe(we):fe=="{"||fe=="}"?Se(fe,ke,we):(fe=="word"?ge="tag":fe=="hash"&&(ge="builtin"),"at")},Le.interpolation=function(fe,ke,we){return fe=="}"?oe(we):fe=="{"||fe==";"?Se(fe,ke,we):(fe=="word"?ge="variable":fe!="variable"&&fe!="("&&fe!=")"&&(ge="error"),"interpolation")},{startState:function(fe){return{tokenize:null,state:L?"block":"top",stateArg:null,context:new q(L?"block":"top",fe||0,null)}},token:function(fe,ke){if(!ke.tokenize&&fe.eatSpace())return null;var we=(ke.tokenize||D)(fe,ke);return we&&typeof we=="object"&&(se=we[1],we=we[0]),ge=we,se!="comment"&&(ke.state=Le[ke.state](se,fe,ke)),ge},indent:function(fe,ke){var we=fe.context,He=ke&&ke.charAt(0),et=we.indent;return we.type=="prop"&&(He=="}"||He==")")&&(we=we.prev),we.prev&&(He=="}"&&(we.type=="block"||we.type=="top"||we.type=="interpolation"||we.type=="restricted_atBlock")?(we=we.prev,et=we.indent):(He==")"&&(we.type=="parens"||we.type=="atBlock_parens")||He=="{"&&(we.type=="at"||we.type=="atBlock"))&&(et=Math.max(0,we.indent-U))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ce,fold:"brace"}});function o(T){for(var B={},L=0;L<T.length;++L)B[T[L].toLowerCase()]=!0;return B}var i=["domain","regexp","url","url-prefix"],l=o(i),d=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],c=o(d),u=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],m=o(u),h=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],y=o(h),C=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],S=o(C),w=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],E=o(w),_=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=o(_),b=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],x=o(b),k=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],N=o(k),V=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],F=o(V),I=i.concat(d).concat(u).concat(h).concat(C).concat(w).concat(k).concat(V);r.registerHelper("hintWords","css",I);function P(T,B){for(var L=!1,U;(U=T.next())!=null;){if(L&&U=="/"){B.tokenize=null;break}L=U=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:l,mediaTypes:c,mediaFeatures:m,mediaValueKeywords:y,propertyKeywords:S,nonStandardPropertyKeywords:E,fontProperties:g,counterDescriptors:x,colorKeywords:N,valueKeywords:F,tokenHooks:{"/":function(T,B){return T.eat("*")?(B.tokenize=P,P(T,B)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:c,mediaFeatures:m,mediaValueKeywords:y,propertyKeywords:S,nonStandardPropertyKeywords:E,colorKeywords:N,valueKeywords:F,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(T,B){return T.eat("/")?(T.skipToEnd(),["comment","comment"]):T.eat("*")?(B.tokenize=P,P(T,B)):["operator","operator"]},":":function(T){return T.match(/^\s*\{/,!1)?[null,null]:!1},$:function(T){return T.match(/^[\w-]+/),T.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(T){return T.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:c,mediaFeatures:m,mediaValueKeywords:y,propertyKeywords:S,nonStandardPropertyKeywords:E,colorKeywords:N,valueKeywords:F,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(T,B){return T.eat("/")?(T.skipToEnd(),["comment","comment"]):T.eat("*")?(B.tokenize=P,P(T,B)):["operator","operator"]},"@":function(T){return T.eat("{")?[null,"interpolation"]:T.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(T.eatWhile(/[\w\\\-]/),T.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:c,mediaFeatures:m,propertyKeywords:S,nonStandardPropertyKeywords:E,fontProperties:g,counterDescriptors:x,colorKeywords:N,valueKeywords:F,supportsAtComponent:!0,tokenHooks:{"/":function(T,B){return T.eat("*")?(B.tokenize=P,P(T,B)):!1}},name:"css",helperType:"gss"})})})();const e6="",ik=n.defineComponent({name:"StyleEditor",props:{modelValue:String},data(){return{editor:null,oldVal:null}},mounted(){this.$nextTick(()=>{this.load()})},methods:{load(){const e=this.modelValue;this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(Si(this.$refs.editor,{lineNumbers:!0,mode:"css",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?Kr.css(e,{indent_size:2,indent_char:" ",indent_scripts:"separate"}):""}))})},save(){const e=this.editor.getValue();return e!==this.oldVal&&this.$emit("update:modelValue",e),!0}}}),rk={class:"_fd-style-editor"},ok={ref:"editor"};function ak(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",rk,[n.createElementVNode("div",ok,null,512)])}const lk=De(ik,[["render",ak]]),t6="",sk=n.defineComponent({name:"GlobalClassConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Jn,StyleEditor:lk,StyleConfig:Rm},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:"",styleEl:null,content:"",activeStyle:!1}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[nn(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.value=at(this.modelValue||{}))},modelValue(){this.updateGlobalStyle()}},methods:{open(){this.visible=!0},changeStyle(){this.content=this.designer.setupState.formOptions.style||`#_demo1{
|
||
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,N)=>(n.openBlock(),n.createBlock(h,{class:n.normalizeClass({"is-active":N===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gcc-title",onClick:n.withModifiers(V=>e.active(N),["stop"])},[n.createElementVNode("div",pk,[n.createElementVNode("span",null,"."+n.toDisplayString(N),1),k.label?(n.openBlock(),n.createElementBlock("span",hk,n.toDisplayString(k.label),1)):n.createCommentVNode("",!0)]),k.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(V=>e.rm(N),["stop"])},null,8,mk)):n.createCommentVNode("",!0)],8,fk)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(h,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gcc-title",onClick:t[4]||(t[4]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(y,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[1]||(t[1]=k=>e.cusValue=k),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("class.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...k)=>e.addCus&&e.addCus(...k),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...k)=>e.closeCus&&e.closeCus(...k),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-r"},{default:n.withCtx(()=>[e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(m,{key:0,class:"_fd-gcc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(S,{key:e.activeIdx,class:n.normalizeClass(e.activeStyle?"_fd-gcc-style":"")},{default:n.withCtx(()=>[e.activeStyle?(n.openBlock(),n.createBlock(_,{key:0,ref:"editor",modelValue:e.content,"onUpdate:modelValue":t[5]||(t[5]=k=>e.content=k)},null,8,["modelValue"])):(n.openBlock(),n.createBlock(b,{key:1,size:"small"},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:e.handle,"onUpdate:modelValue":t[6]||(t[6]=k=>e.handle=k)},null,8,["modelValue"])]),_:1}))]),_:1},8,["class"])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const $m=De(sk,[["render",gk]]),n6="",vk=n.defineComponent({name:"GlobalVariableConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Jn,FnEditor:xi},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.activeIdx="",this.value=at(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.value[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="var_"+We();this.value[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){if(!this.$refs.editor.save())return!1;this.value[this.activeIdx].handle=this.handle,this.activeIdx=""},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.value}),this.visible=!1)}}}),yk={class:"_fd-gvc"},bk=["onClick"],wk={class:"_fd-gvc-method"},Ck={key:0,class:"_fd-label"},_k=["onClick"];function Ek(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("FnEditor"),g=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",yk,[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("computed.variable.btn")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(g,{class:"_fd-gvc-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=b=>e.visible=b),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.title"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalVariable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[5]||(t[5]=b=>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-gvc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"255px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-l"},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-gvc-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("computed.variable.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(b,x)=>(n.openBlock(),n.createBlock(h,{class:n.normalizeClass({"is-active":x===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gvc-title",onClick:n.withModifiers(k=>e.active(x),["stop"])},[n.createElementVNode("div",wk,[n.createElementVNode("span",null,n.toDisplayString(x),1),b.label?(n.openBlock(),n.createElementBlock("span",Ck,n.toDisplayString(b.label),1)):n.createCommentVNode("",!0)]),b.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(k=>e.rm(x),["stop"])},null,8,_k)):n.createCommentVNode("",!0)],8,bk)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(h,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gvc-title",onClick:t[3]||(t[3]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(y,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[0]||(t[0]=b=>e.cusValue=b),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("computed.variable.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...b)=>e.addCus&&e.addCus(...b),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...b)=>e.closeCus&&e.closeCus(...b),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(m,{key:0,class:"_fd-gvc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(S,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(_,{ref:"editor",modelValue:e.handle,"onUpdate:modelValue":t[4]||(t[4]=b=>e.handle=b),name:"handle",args:["get","api"]},null,8,["modelValue"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Im=De(vk,[["render",Ek]]),i6="",Ak=n.defineComponent({name:"JsonPreview",components:{StructEditor:Gc},inject:["designer"],data(){return{active:"rule",value:this.designer.setupState.getRule(),oldValue:""}},watch:{active(){this.updateValue()}},computed:{change(){return this.active==="rule"?this.designer.setupState.children:this.designer.setupState.formOptions},t(){return this.designer.setupState.t}},methods:{updateValue(){this.active==="rule"?this.value=this.designer.setupState.getRule():this.value=this.designer.setupState.getOptions()},handleFocus(){this.oldValue=je.toJson(this.value)},handleBlur(){let e;this.$refs.editor.save()&&(e=je.toJson(this.value))!==this.oldValue&&(this.active==="rule"?this.designer.setupState.setRule(e):this.designer.setupState.setOptions(this.value||{}))}},mounted(){this.$watch(()=>this.change,()=>{this.updateValue()},{deep:!0})}});function Sk(e,t,r,o,i,l){const d=n.resolveComponent("el-header"),c=n.resolveComponent("StructEditor"),u=n.resolveComponent("el-main"),m=n.resolveComponent("el-container");return n.openBlock(),n.createBlock(m,{class:"_fc-json-preview"},{default:n.withCtx(()=>[n.createVNode(d,{height:"40px",class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="rule"}]),onClick:t[0]||(t[0]=h=>e.active="rule")},n.toDisplayString(e.t("designer.json")),3),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="options"}]),onClick:t[1]||(t[1]=h=>e.active="options")},n.toDisplayString(e.t("designer.form")),3)]),_:1}),n.createVNode(u,{style:{padding:"8px"}},{default:n.withCtx(()=>[n.createVNode(c,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=h=>e.value=h),onBlur:e.handleBlur,onFocus:e.handleFocus,format:"",style:{height:"100%"}},null,8,["modelValue","onBlur","onFocus"])]),_:1})]),_:1})}const xk=De(Ak,[["render",Sk]]),r6="",kk=n.defineComponent({name:"Struct",emits:["update:modelValue"],props:{modelValue:[Object,Array,Function],title:String,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!ct.empty(this.modelValue)&&Object.keys(this.modelValue).length>0}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(e){e&&this.load()}},methods:{load(){const e=En(lp(this.modelValue?at(this.modelValue):this.defaultValue));this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(Si(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?Kr.js(e,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""}))})},onOk(){const e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(r){return console.error(r),sn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(sn(this.t("struct.errorMsg")),!1):(this.visible=!1,En(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),Tk={class:"_fd-struct"},Nk={key:0,ref:"editor"};function Dk(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",Tk,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[0]||(t[0]=m=>e.visible=!0)},[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1})])])]),_:3},8,["hidden"]),n.createVNode(u,{class:"_fd-struct-dialog _fd-config-dialog",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[2]||(t[2]=m=>e.visible=m),"destroy-on-close":"","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]=m=>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",Nk,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const Fm=De(kk,[["render",Dk]]),o6="",Ok=n.defineComponent({name:"PropsInput",components:{Struct:Fm},inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},props(){var r;const e=((r=this.activeRule._fc_store)==null?void 0:r.props_keys)||[],t={};return e.forEach(o=>{this.activeRule.props&&this.activeRule.props[o]!=null&&(t[o]=this.activeRule.props[o])}),t}},methods:{onInput(e){this.activeRule.props||(this.activeRule.props={}),this.activeRule._fc_store||(this.activeRule._fc_store={}),Object.keys(this.props).forEach(r=>{(e||{})[r]==null&&delete this.activeRule.props[r]}),ml(this.activeRule.props,e||{});const t=Object.keys(e||{});t.length?this.activeRule._fc_store.props_keys=t:delete this.activeRule._fc_store.props_keys}}});function Vk(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("Struct");return n.openBlock(),n.createBlock(c,{class:"_fd-props-input",modelValue:e.props,"onUpdate:modelValue":e.onInput,title:e.t("designer.customProps")},{default:n.withCtx(()=>[n.createVNode(d,{effect:"dark",content:e.t("designer.customProps"),placement:"top","hide-after":0},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1)])),_:1},8,["content"])]),_:1},8,["modelValue","onUpdate:modelValue","title"])}const Bk=De(Ok,[["render",Vk]]),a6="",Rk=n.defineComponent({name:"LanguageConfig",inject:["designer"],computed:{localeOptions(){return this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}])},t(){return this.designer.setupState.t}},data(){return{column:[],uni:0,selected:[]}},methods:{copy(e){si(e)},addColumn(){this.column.unshift({key:this.randomString(),input:!0})},saveColumn(e,t){e.input=t||!1;const r=this.designer.setupState.formOptions.language;this.localeOptions.forEach(o=>{r[o.value]||(r[o.value]={}),r[o.value][e.key]=e[o.value]})},rmColumn(e){const t=this.column[e];this.column.splice(e,1);const r=this.designer.setupState.formOptions.language;this.localeOptions.forEach(o=>{r[o.value]&&delete r[o.value][t.key]})},batchRmColumn(){this.selected.forEach(e=>{this.rmColumn(this.column.indexOf(e))}),this.selected=[]},selectionChange(e){this.selected=e},randomString(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t="";const r=e.length;for(let o=0;o<7;o++)t+=e.charAt(Math.floor(Math.random()*r));return e.charAt(this.uni++%26)+t}},mounted(){const e=this.designer.setupState.formOptions.language||{},t={};Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(o=>{t[o]||(t[o]={key:o}),t[o][r]=e[r][o]})}),this.column=Object.values(t)}}),$k={class:"_fd-language-config"},Ik={class:"_fc-l-label"},Fk={class:"_fc-l-info"},Mk={class:"_fd-lc-header"},Pk={class:"_fd-lc-body"},Lk={class:"_fd-lc-handle"},jk=["onClick"],zk=["onClick"],Uk=["onClick"],Hk=["onClick"];function Wk(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-table-column"),u=n.resolveComponent("el-input"),m=n.resolveComponent("el-table");return n.openBlock(),n.createElementBlock("div",$k,[n.createElementVNode("div",Ik,n.toDisplayString(e.t("language.name")),1),n.createElementVNode("div",Fk,n.toDisplayString(e.t("warning.language")),1),n.createElementVNode("div",Mk,[n.createVNode(d,{size:"small",onClick:e.addColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.add")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"danger",plain:"",disabled:!e.selected.length,onClick:e.batchRmColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.batchRemove")),1)]),_:1},8,["disabled","onClick"])]),n.createElementVNode("div",Pk,[n.createVNode(m,{data:e.column,size:"small",ref:"table",onSelectionChange:e.selectionChange,"row-key":"key"},{default:n.withCtx(()=>[n.createVNode(c,{type:"selection",width:"30px"}),n.createVNode(c,{prop:"key",label:"Key",width:"90px"}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeOptions,h=>(n.openBlock(),n.createBlock(c,{key:h.value,prop:h.value,label:h.label,"min-width":"100px"},{default:n.withCtx(y=>[y.row.input?(n.openBlock(),n.createBlock(u,{key:0,size:"small",modelValue:y.row[h.value],"onUpdate:modelValue":C=>y.row[h.value]=C,onBlur:C=>e.saveColumn(y.row,!0)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(y.row[h.value]||"-"),1)],64))]),_:2},1032,["prop","label"]))),128)),n.createVNode(c,{width:"75px",label:e.t("tableOptions.handle"),fixed:"right"},{default:n.withCtx(h=>[n.createElementVNode("div",Lk,[h.row.input?(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-check",onClick:y=>e.saveColumn(h.row)},null,8,zk)):(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:y=>h.row.input=!0},null,8,jk)),n.createElementVNode("i",{class:"fc-icon icon-group",onClick:y=>e.copy(h.row.key)},null,8,Uk),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:y=>e.rmColumn(h.$index)},null,8,Hk)])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])])])}const Gk=De(Rk,[["render",Wk]]),l6="",Kk=n.defineComponent({name:"SlotsConfig",inject:["designer"],components:{ConfigItem:Rn},data(){return{type:["icon","text"],easySlots:{}}},computed:{t(){return this.designer.setupState.t},slots(){var r,o;const e=((o=(r=this.designer.setupState)==null?void 0:r.activeRule)==null?void 0:o._menu)||{};return(e.easySlots||[]).map(i=>{if(typeof i=="string")return{value:i,label:this.t("com."+e.name+".slots."+i)||this.t("slots."+i)||this.t("props."+i)||i};{const l={...i};return l.label||(l.label=this.t("com."+e.name+".slots."+i.value)||this.t("slots."+i.value)||this.t("props."+i.value)||i.value),l}})},modelValue(){var e,t;return((t=(e=this.designer.setupState)==null?void 0:e.activeRule)==null?void 0:t.$easySlots)||{}},icons(){return za([...this.designer.setupState.getConfig("icons",[]),"icon-layout","icon-column1","icon-column2","icon-column3","icon-column4","icon-tab","icon-config-event","icon-step-form","icon-slider","icon-dialog","icon-justify-spacearound","icon-upload","icon-copy","icon-time-range","icon-task-add","icon-justify-spacebetween","icon-import","icon-config-base","icon-alignitems-stretch","icon-alignitems-flexend","icon-check","icon-auto","icon-calendar","icon-config-style","icon-config-advanced","icon-config-props","icon-delete-circle2","icon-delete-circle","icon-delete","icon-direction-rowreverse","icon-display-flex","icon-drag","icon-display-block","icon-data","icon-edit2","icon-edit","icon-add-col","icon-display-inlineblock","icon-config-validate","icon-down","icon-display-inline","icon-eye","icon-eye-close","icon-preview","icon-flex-nowrap","icon-folder","icon-form-circle","icon-flex-wrap","icon-form","icon-form-item","icon-icon","icon-image","icon-justify-flexstart","icon-justify-center","icon-justify-stretch","icon-link2","icon-minus","icon-menu2","icon-more","icon-menu","icon-language","icon-pad","icon-mobile","icon-page-max","icon-move","icon-page-min","icon-pre-step","icon-pc","icon-page","icon-refresh","icon-radius","icon-save-filled","icon-question","icon-scroll","icon-script","icon-setting","icon-save","icon-shadow","icon-variable","icon-yes","icon-shadow-inset","icon-date","icon-date-range","icon-collapse","icon-switch","icon-subform","icon-tree-select","icon-value","icon-alert","icon-card","icon-checkbox","icon-cascader","icon-button","icon-data-table","icon-group","icon-divider","icon-flex","icon-descriptions","icon-html","icon-editor","icon-input","icon-link","icon-password","icon-radio","icon-row","icon-inline","icon-rate","icon-color","icon-select","icon-json","icon-number","icon-space","icon-table-form","icon-table-form2","icon-time","icon-span","icon-textarea","icon-tooltip","icon-slot","icon-transfer","icon-tag","icon-watermark","icon-tree","icon-table","icon-add-child","icon-add2","icon-add","icon-alignitems-baseline","icon-add-circle","icon-alignitems-center"])}},watch:{modelValue:{handler:function(e){const t={};this.slots.forEach(({value:r,label:o,type:i})=>{e[r]?t[r]={...e[r]}:this.easySlots[r]?t[r]={type:this.easySlots[r].type}:t[r]={type:i||"icon",value:""},t[r].only=i,t[r].label=o}),this.easySlots=t},immediate:!0}},methods:{changeIcon(e,t,r){e.value=t,this.onChange(),this.$refs[r][0].hide()},changeType(e){e.value&&(e.value="",this.onChange())},onChange(){var e;if((e=this.designer.setupState)!=null&&e.activeRule){const t={};Object.keys(this.easySlots).forEach(r=>{this.easySlots[r].value&&(t[r]={...this.easySlots[r]},delete t[r].label,delete t[r].only)}),Object.keys(t).length===0?delete this.designer.setupState.activeRule.$easySlots:this.designer.setupState.activeRule.$easySlots=t,this.designer.setupState.activeRule.key=We()}}},mounted(){}}),Yk={class:"_fd-slots-config"},Qk={class:"_fd-slots-icons"},Jk=["onClick"];function Xk(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("el-popover"),m=n.resolveComponent("el-input"),h=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",Yk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.easySlots,(y,C)=>(n.openBlock(),n.createBlock(h,{label:y.label},{default:n.withCtx(()=>[n.createVNode(m,{size:"small",modelValue:y.value,"onUpdate:modelValue":S=>y.value=S,clearable:"",onBlur:e.onChange},n.createSlots({_:2},[y.only?void 0:{name:"prepend",fn:n.withCtx(()=>[n.createVNode(c,{size:"small",modelValue:y.type,"onUpdate:modelValue":S=>y.type=S,onChange:S=>e.changeType(y)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,S=>(n.openBlock(),n.createBlock(d,{label:e.t("props."+S),value:S},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),key:"0"},y.type==="icon"?{name:"append",fn:n.withCtx(()=>[n.createVNode(u,{ref_for:!0,ref:C,placement:"bottom","popper-class":"_fd-slots-config-pop",width:400,trigger:"click"},{reference:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1)])),default:n.withCtx(()=>[n.createElementVNode("div",Qk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.icons,S=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-slots-icon",onClick:w=>e.changeIcon(y,S,C)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon iconfont",S])},null,2)],8,Jk))),256))])]),_:2},1536)]),key:"1"}:void 0]),1032,["modelValue","onUpdate:modelValue","onBlur"])]),_:2},1032,["label"]))),256))])}const Zk=De(Kk,[["render",Xk]]),s6="",qk=n.defineComponent({name:"QuickLayout",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},layout(){return[{span:24,label:this.t("designer.col1")},{span:12,label:this.t("designer.col2")},{span:8,label:this.t("designer.col3")},{span:6,label:this.t("designer.col4")}]}},methods:{check(e){var r,o,i,l,d;if((r=e==null?void 0:e._menu)!=null&&r.subForm)return!1;let t=e.__fc__.parent;for(;t;){if(((i=(o=t.rule)==null?void 0:o._menu)==null?void 0:i.menu)==="layout"||((d=(l=t.rule)==null?void 0:l._menu)==null?void 0:d.subForm))return!1;t=t.parent}return!0},change(e){const t=this.designer.setupState.dragForm.api.model(),r=this.layout[e].span;let o=!1;Object.keys(t).forEach(i=>{(Array.isArray(t[i])?t[i]:[t[i]]).forEach(d=>{this.check(d)&&(d.col||(d.col={}),o=o||d.col.span!==r,d.col.span=r)})}),this.$refs.pop.hide(),o&&this.designer.setupState.addOperationRecord()}}}),e2={class:"_fd-quick-layout"},t2={class:"_fd-quick-layout-content"},n2=["onClick"];function i2(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-popover");return n.openBlock(),n.createElementBlock("div",e2,[n.createVNode(c,{ref:"pop",placement:"bottom",width:240,"hide-after":0,trigger:"click"},{reference:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{effect:"dark",content:e.t("designer.layout"),placement:"top","hide-after":0},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-layout"},null,-1)])),_:1},8,["content"])])]),default:n.withCtx(()=>[n.createElementVNode("div",t2,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,(u,m)=>(n.openBlock(),n.createElementBlock("div",{onClick:h=>e.change(m)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-column"+(m+1)])},null,2),n.createElementVNode("span",null,n.toDisplayString(u.label),1)],8,n2))),256))])]),_:1},512)])}const r2=De(qk,[["render",i2]]),on=function(){var e=function(){},t={},r={},o={};function i(h,y){h=h.push?h:[h];var C=[],S=h.length,w=S,E,_,g,b;for(E=function(x,k){k.length&&C.push(x),w--,w||y(C)};S--;){if(_=h[S],g=r[_],g){E(_,g);continue}b=o[_]=o[_]||[],b.push(E)}}function l(h,y){if(!!h){var C=o[h];if(r[h]=y,!!C)for(;C.length;)C[0](h,y),C.splice(0,1)}}function d(h,y){h.call&&(h={success:h}),y.length?(h.error||e)(y):(h.success||e)(h)}function c(h,y,C,S){var w=document,E=C.async,_=(C.numRetries||0)+1,g=C.before||e,b=h.replace(/[\?|#].*$/,""),x=h.replace(/^(css|img|module|nomodule)!/,""),k,N,V;if(S=S||0,/(^css!|\.css$)/.test(b))V=w.createElement("link"),V.rel="stylesheet",V.href=x,k="hideFocus"in V,k&&V.relList&&(k=0,V.rel="preload",V.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(b))V=w.createElement("img"),V.src=x;else if(V=w.createElement("script"),V.src=x,V.async=E===void 0?!0:E,N="noModule"in V,/^module!/.test(b)){if(!N)return y(h,"l");V.type="module"}else if(/^nomodule!/.test(b)&&N)return y(h,"l");V.onload=V.onerror=V.onbeforeload=function(F){var I=F.type[0];if(k)try{V.sheet.cssText.length||(I="e")}catch(P){P.code!=18&&(I="e")}if(I=="e"){if(S+=1,S<_)return c(h,y,C,S)}else if(V.rel=="preload"&&V.as=="style")return V.rel="stylesheet";y(h,I,F.defaultPrevented)},g(h,V)!==!1&&w.head.appendChild(V)}(function(){try{const h=window;h.formCreate||(h.formCreate={});const y=h.outerHeight-h.innerHeight<150&&h.outerWidth-h.innerWidth<150,C=Array.from(h.document.getElementsByTagName("script"));let S=!0;for(const w of C)if(w.src)if(w.src.indexOf("http")===0)S=S&&["localhost","127.","10.","192.","172."].every(E=>w.src.indexOf(E)===-1);else{S=!1;break}if(y&&S&&Math.random()<.1){const w=new Image,E=btoa(encodeURIComponent(h.location.host+", "+(h.formCreate.license||""))+", KrrSN2KlZ2tanmqEGlAE"),_=E.substr(2,8);w.src=atob("aHR0cHM6Ly9hcGkuZm9ybS1jcmVhdGUuY29tL2gucG5nP3U9")+(_.substr(2,3)+E.slice(0,10).split("").reverse().join("")+_.substr(3,2)+E.slice(10)).replace(/=/g,"")}}catch{}})();function u(h,y,C){h=h.push?h:[h];var S=h.length,w=S,E=[],_,g,b=!0;for(_=function(x,k,N){if(k=="e"&&(E.push(x),b=!1),k=="b")if(N)E.push(x);else return;S--,S||y(E,b)},g=0;g<w;g++)c(h[g],_,C)}function m(h,y,C){var S,w;if(y&&y.trim&&(S=y),w=(S?C:y)||{},S){if(S in t)throw"LoadJS";t[S]=!0}function E(_,g){u(h,function(b,x){d(w,b),_&&d({success:_,error:g},b),x&&l(S,b)},w)}if(w.returnPromise)return new Promise(E);E()}return m.ready=function(y,C){return i(y,function(S){d(C,S)}),m},m.done=function(y){l(y,[])},m.reset=function(y){y?(delete t[y],delete r[y]):(t={},r={},o={})},m.tryLoad=function(y,C){const S=y.shift();m(S,C,{returnPromise:!0}).catch(()=>{m.reset(C),y.length>0&&m.tryLoad(y,C)})},m.loadNpm=function(y,C){m.tryLoad(["https://unpkg.com/"+y,"https://cdn.jsdelivr.net/npm/"+y,"https://npm.onmicrosoft.cn/"+y],C)},m.isDefined=function(y){return y in t},m}(),d6="",o2=n.defineComponent({name:"PrintForm",components:{SizeInput:Yr,Warning:Jn,ViewForm:hn.$form()},inject:["designer"],data(){return{visible:!1,printing:!1,frame:null,rule:[],options:{},padding:["top","bottom","left","right"],formData:{type:"form",style:"default",left:20,right:20,top:20,bottom:20,width:780}}},computed:{t(){return this.designer.setupState.t}},watch:{visible(e){e?(this.rule=hn.parseJson(this.designer.setupState.getPreviewRule()),this.options=hn.parseJson(this.designer.setupState.getOptionsJson()),this.options.submitBtn=!1,this.options.resetBtn=!1):(this.printing=!1,this.frame&&(document.body.removeChild(this.frame),this.frame=null))},"formData.type":function(e){this.options.preview=e==="read"}},methods:{open(){this.visible=!0},disableImageSmoothing(e){e.imageSmoothingEnabled=!1,e.mozImageSmoothingEnabled=!1,e.webkitImageSmoothingEnabled=!1,e.msImageSmoothingEnabled=!1},print(e){this.printing=!0,on.ready(["html2canvas","jspdf"],()=>{window.html2canvas(this.$refs.form.$el,{allowTaint:!0,useCORS:!0}).then(t=>{const r=new window.jspdf.jsPDF({orientation:"p",unit:"pt",format:"a4"});this.disableImageSmoothing(t.getContext("2d"));const{left:o,right:i,top:l,bottom:d}=this.formData,c=r.internal.pageSize.getWidth(),u=r.internal.pageSize.getHeight(),m=c-o-i,h=u-l-d,y=t.height*m/t.width;if(y<=h)r.addImage(t.toDataURL("image/jpeg"),"JPEG",o,l,m,y);else{let C=y,S=0;const w=t.width*h/m;for(;C>0;){const E=document.createElement("canvas"),_=E.getContext("2d");this.disableImageSmoothing(_);const g=S*w,b=Math.min(w,t.height-g);E.width=t.width,E.height=b,_.drawImage(t,0,g,t.width,b,0,0,t.width,b);const x=b/t.height*y;r.addImage(E.toDataURL("image/jpeg"),"JPEG",o,l,m,x),C-=h,C>0&&(r.addPage(),S++)}}e?(this.printing=!1,window.open(URL.createObjectURL(r.output("blob")))):this.printPdf(r)}).catch(t=>{this.printing=!1})})},printPdf(e){if(!this.frame){const t=n.markRaw(document.createElement("iframe"));t.style.width="0",t.style.position="absolute",t.style.height="0",t.style.border="none",t.onload=function(){setTimeout(()=>{t.contentWindow.print()},100)},document.body.appendChild(t),this.frame=t}this.frame.src=URL.createObjectURL(e.output("blob")),this.printing=!1}},created(){window.html2canvas?on.done("html2canvas"):on.isDefined("html2canvas")||on.loadNpm("html2canvas@1.4.1/dist/html2canvas.min.js","html2canvas"),window.jspdf?on.done("jspdf"):on.isDefined("jspdf")||on.loadNpm("jspdf@3.0.1/dist/jspdf.umd.js","jspdf")}}),a2={class:"_fd-print"};function l2(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-header"),u=n.resolveComponent("el-radio-button"),m=n.resolveComponent("el-radio-group"),h=n.resolveComponent("el-form-item"),y=n.resolveComponent("el-input-number"),C=n.resolveComponent("el-form"),S=n.resolveComponent("el-main"),w=n.resolveComponent("el-container"),E=n.resolveComponent("el-aside"),_=n.resolveComponent("ViewForm"),g=n.resolveComponent("el-button"),b=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",a2,[n.createVNode(d,{effect:"dark",content:e.t("designer.print.title"),placement:"top","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-print",onClick:t[0]||(t[0]=(...x)=>e.open&&e.open(...x))})]),_:1},8,["content"]),n.createVNode(b,{class:"_fd-print-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[7]||(t[7]=x=>e.visible=x),"destroy-on-close":"","close-on-click-modal":!1,title:e.t("designer.print.title"),"append-to-body":"",width:"1080px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(g,{size:"default",onClick:t[4]||(t[4]=x=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(g,{size:"default",onClick:t[5]||(t[5]=x=>e.print(!0))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.export")),1)]),_:1}),n.createVNode(g,{type:"primary",size:"default",onClick:t[6]||(t[6]=x=>e.print(!1)),loading:e.printing},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.print")),1)]),_:1},8,["loading"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-print-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"255px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-print-l"},{default:n.withCtx(()=>[n.createVNode(c,{class:"_fd-print-head",height:"40px"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.config")),1)]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(C,{"label-position":"top",size:"small"},{default:n.withCtx(()=>[n.createVNode(h,{label:e.t("props.mode")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.formData.type,"onUpdate:modelValue":t[1]||(t[1]=x=>e.formData.type=x)},{default:n.withCtx(()=>[n.createVNode(u,{value:"form"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.formMode")),1)]),_:1}),n.createVNode(u,{value:"read"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.previewMode")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("props.style")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.formData.style,"onUpdate:modelValue":t[2]||(t[2]=x=>e.formData.style=x)},{default:n.withCtx(()=>[n.createVNode(u,{value:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.defaultStyle")),1)]),_:1}),n.createVNode(u,{value:"word"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.wordStyle")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.width")},{default:n.withCtx(()=>[n.createVNode(y,{min:300,"controls-position":"right",modelValue:e.formData.width,"onUpdate:modelValue":t[3]||(t[3]=x=>e.formData.width=x)},null,8,["modelValue"])]),_:1},8,["label"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.padding,x=>(n.openBlock(),n.createBlock(h,{key:x,label:e.t("designer.print."+x)},{default:n.withCtx(()=>[n.createVNode(y,{min:0,"controls-position":"right",modelValue:e.formData[x],"onUpdate:modelValue":k=>e.formData[x]=k},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-print-r"},{default:n.withCtx(()=>[n.createVNode(S,null,{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createBlock(_,{key:0,class:n.normalizeClass(["_fd-print-form",{"_fd-print-form-word":e.formData.style==="word"}]),ref:"form",rule:e.rule,option:e.options,style:n.normalizeStyle({width:e.formData.width>0?e.formData.width+"px":"100%"})},n.createSlots({_:2},[n.renderList(e.$slots,(x,k)=>({name:k,fn:n.withCtx(N=>[n.renderSlot(e.$slots,k,n.normalizeProps(n.guardReactiveProps(N!=null?N:{})))])}))]),1032,["class","rule","option","style"])):n.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})]),_:3})]),_:3},8,["modelValue","title"])])}const s2=De(o2,[["render",l2]]),c6="",d2=n.defineComponent({name:"AiChat",inject:["designer"],data(){return{message:"",page:0,limit:3,pageData:[],question:["\u751F\u6210\u4E00\u4E2A\u5C31\u8BCA\u6EE1\u610F\u5EA6\u95EE\u5377\u8868\u5355","\u521B\u5EFA\u4E00\u4E2A\u5EFA\u8BAE\u6536\u96C6\u8868\u5355\uFF0C\u5305\u542B\u8054\u7CFB\u4EBA\u3001\u8054\u7CFB\u90AE\u7BB1\u3001\u5206\u7C7B\u548C\u5EFA\u8BAE\u5185\u5BB9","\u8FFD\u52A0\u4E00\u4E2A\u7528\u6237\u4FE1\u606F\u8868\u5355",'\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E\u7EC4\u4EF6\uFF0C\u663E\u793A\u6587\u672C\u4E3A "Tag"',"\u5220\u9664\u5546\u54C1\u7B80\u4ECB\u5B57\u6BB5",'\u5F53\u5355\u9009\u6846\u9009\u62E9 "\u9009\u98791" \u65F6\uFF0C\u663E\u793A\u8F93\u5165\u6846\u7EC4\u4EF6',"\u8BBE\u7F6E\u8F93\u5165\u6846\u4E3A\u5FC5\u586B\uFF0C\u5E76\u9650\u5236\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E13","\u5546\u54C1\u4EF7\u683C\u5B57\u6BB5\u4F7F\u7528\u6570\u5B57\u8F93\u5165\u6846\u7EC4\u4EF6","\u7ED9\u8F93\u5165\u7C7B\u7EC4\u4EF6\u8865\u5145\u5360\u4F4D\u63D0\u793A\u6587\u672C\uFF08placeholder\uFF09"],chat:null,history:[]}},computed:{t(){return this.designer.setupState.t},api(){var e,t;return((t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.api)||"https://api.form-create.com/ai/v1/chat/form"},token(){var e,t;return(t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.token}},methods:{refresh(){this.page*this.limit<this.question.length?this.page++:this.page=1;const e=(this.page-1)*this.limit,t=e+this.limit;this.pageData=this.question.slice(e,t)},send(){const e=(this.message||"").trim();!e||(this.chat={message:e,status:"loading"},this.history.push(this.chat),this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})}),this.message="",this.fetch())},suspend(){this.chat.status="success",this.chat=null},fetch(){fetch(this.api,{method:"POST",headers:{Authorization:this.token,"Content-Type":"application/json"},body:JSON.stringify({ui:"element-plus",message:this.chat.message,rule:this.designer.setupState.getJson()})}).then(e=>{e.json().then(t=>{this.chat&&(t.status===200?(this.chat.status="success",this.designer.setupState.setRule(t.data.rule)):(this.chat.status="fail",t.message&&Zs(t.message)),this.chat=null)})}).catch(()=>{this.chat=null})},getHistory(){const e=localStorage.getItem("fc_ai_history");e&&(this.history=JSON.parse(e))},clear(){this.history=[],localStorage.removeItem("fc_ai_history")}},created(){this.getHistory(),this.refresh()},mounted(){this.$refs.chat&&this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})})},unmounted(){localStorage.setItem("fc_ai_history",JSON.stringify(this.history))}}),c2={class:"_fd-ai-chat"},u2={class:"_fd-ai-chat-header"},f2={class:"_fc-l-label"},p2={class:"_fc-l-info"},h2={class:"_fd-ai-chat-prompt"},m2=["onClick"],g2={class:"_fd-ai-chat-history"},v2={class:"_fd-ai-chat-history-chat"},y2={key:0},b2={key:1},w2={key:2},C2={class:"_fd-ai-chat-input"},_2={class:"_fd-ai-chat-clear"};function E2(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",c2,[n.createElementVNode("div",u2,[n.createElementVNode("div",f2,[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)),n.createTextVNode(" FormCreate "+n.toDisplayString(e.t("ai.name")),1)]),n.createElementVNode("div",p2,n.toDisplayString(e.t("ai.info")),1),n.createElementVNode("div",h2,[n.createElementVNode("span",null,n.toDisplayString(e.t("ai.try")),1),n.createElementVNode("span",{class:"_fd-ai-chat-refresh",onClick:t[0]||(t[0]=(...u)=>e.refresh&&e.refresh(...u))},[t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-refresh2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.change")),1)])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,u=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-ai-chat-question",onClick:m=>e.message=u},[n.createElementVNode("span",null,n.toDisplayString(u),1),t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))],8,m2))),256))]),n.createElementVNode("div",g2,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.history,(u,m)=>(n.openBlock(),n.createElementBlock("div",{key:m,class:"_fd-ai-chat-history-item",ref_for:!0,ref:"chat"},[n.createElementVNode("div",v2,[n.createElementVNode("div",null,n.toDisplayString(u.message),1)]),n.createElementVNode("div",{class:n.normalizeClass(["_fd-ai-chat-history-status",u.status||"success"])},[n.createElementVNode("div",null,[u.status==="loading"?(n.openBlock(),n.createElementBlock("div",y2,n.toDisplayString(e.t("ai.loading")),1)):u.status==="fail"?(n.openBlock(),n.createElementBlock("div",b2,[t[7]||(t[7]=n.createElementVNode("i",{class:"fc-icon icon-warning"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.fail")),1)])):(n.openBlock(),n.createElementBlock("div",w2,[t[8]||(t[8]=n.createElementVNode("i",{class:"fc-icon icon-yes"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.success")),1)]))])],2)],512))),128))]),n.createElementVNode("div",C2,[n.createElementVNode("div",_2,[n.createVNode(d,{size:"small",text:"",round:"",onClick:e.clear},{default:n.withCtx(()=>t[9]||(t[9]=[n.createElementVNode("i",{class:"fc-icon icon-delete2"},null,-1),n.createTextVNode(" \u6E05\u7A7A")])),_:1},8,["onClick"])]),n.createVNode(c,{type:"textarea",modelValue:e.message,"onUpdate:modelValue":t[1]||(t[1]=u=>e.message=u),placeholder:e.t("ai.placeholder"),resize:"none"},null,8,["modelValue","placeholder"]),e.chat&&e.chat.status==="loading"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fc-icon icon-suspend",onClick:t[2]||(t[2]=(...u)=>e.suspend&&e.suspend(...u))})):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["fc-icon icon-send",{disabled:!e.message||!e.message.trim()}]),onClick:t[3]||(t[3]=(...u)=>e.send&&e.send(...u))},null,2))])])}const A2=De(d2,[["render",E2]]);function Mm(e,t){return function(){return e.apply(t,arguments)}}const{toString:S2}=Object.prototype,{getPrototypeOf:Kc}=Object,{iterator:Vl,toStringTag:Pm}=Symbol,Bl=(e=>t=>{const r=S2.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Xn=e=>(e=e.toLowerCase(),t=>Bl(t)===e),Rl=e=>t=>typeof t===e,{isArray:Jr}=Array,Ko=Rl("undefined");function x2(e){return e!==null&&!Ko(e)&&e.constructor!==null&&!Ko(e.constructor)&&Sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lm=Xn("ArrayBuffer");function k2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lm(e.buffer),t}const T2=Rl("string"),Sn=Rl("function"),jm=Rl("number"),$l=e=>e!==null&&typeof e=="object",N2=e=>e===!0||e===!1,Il=e=>{if(Bl(e)!=="object")return!1;const t=Kc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pm in e)&&!(Vl in e)},D2=Xn("Date"),O2=Xn("File"),V2=Xn("Blob"),B2=Xn("FileList"),R2=e=>$l(e)&&Sn(e.pipe),$2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Sn(e.append)&&((t=Bl(e))==="formdata"||t==="object"&&Sn(e.toString)&&e.toString()==="[object FormData]"))},I2=Xn("URLSearchParams"),[F2,M2,P2,L2]=["ReadableStream","Request","Response","Headers"].map(Xn),j2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),Jr(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{const l=r?Object.getOwnPropertyNames(e):Object.keys(e),d=l.length;let c;for(o=0;o<d;o++)c=l[o],t.call(null,e[c],c,e)}}function zm(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,i;for(;o-- >0;)if(i=r[o],t===i.toLowerCase())return i;return null}const cr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Um=e=>!Ko(e)&&e!==cr;function Yc(){const{caseless:e}=Um(this)&&this||{},t={},r=(o,i)=>{const l=e&&zm(t,i)||i;Il(t[l])&&Il(o)?t[l]=Yc(t[l],o):Il(o)?t[l]=Yc({},o):Jr(o)?t[l]=o.slice():t[l]=o};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Yo(arguments[o],r);return t}const z2=(e,t,r,{allOwnKeys:o}={})=>(Yo(t,(i,l)=>{r&&Sn(i)?e[l]=Mm(i,r):e[l]=i},{allOwnKeys:o}),e),U2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),H2=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},W2=(e,t,r,o)=>{let i,l,d;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)d=i[l],(!o||o(d,e,t))&&!c[d]&&(t[d]=e[d],c[d]=!0);e=r!==!1&&Kc(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},G2=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},K2=e=>{if(!e)return null;if(Jr(e))return e;let t=e.length;if(!jm(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Y2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kc(Uint8Array)),Q2=(e,t)=>{const o=(e&&e[Vl]).call(e);let i;for(;(i=o.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},J2=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},X2=Xn("HTMLFormElement"),Z2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,i){return o.toUpperCase()+i}),Hm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),q2=Xn("RegExp"),Wm=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};Yo(r,(i,l)=>{let d;(d=t(i,l,e))!==!1&&(o[l]=d||i)}),Object.defineProperties(e,o)},eT=e=>{Wm(e,(t,r)=>{if(Sn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(!!Sn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},tT=(e,t)=>{const r={},o=i=>{i.forEach(l=>{r[l]=!0})};return Jr(e)?o(e):o(String(e).split(t)),r},nT=()=>{},iT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rT(e){return!!(e&&Sn(e.append)&&e[Pm]==="FormData"&&e[Vl])}const oT=e=>{const t=new Array(10),r=(o,i)=>{if($l(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const l=Jr(o)?[]:{};return Yo(o,(d,c)=>{const u=r(d,i+1);!Ko(u)&&(l[c]=u)}),t[i]=void 0,l}}return o};return r(e,0)},aT=Xn("AsyncFunction"),lT=e=>e&&($l(e)||Sn(e))&&Sn(e.then)&&Sn(e.catch),Gm=((e,t)=>e?setImmediate:t?((r,o)=>(cr.addEventListener("message",({source:i,data:l})=>{i===cr&&l===r&&o.length&&o.shift()()},!1),i=>{o.push(i),cr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Sn(cr.postMessage)),sT=typeof queueMicrotask<"u"?queueMicrotask.bind(cr):typeof process<"u"&&process.nextTick||Gm,xe={isArray:Jr,isArrayBuffer:Lm,isBuffer:x2,isFormData:$2,isArrayBufferView:k2,isString:T2,isNumber:jm,isBoolean:N2,isObject:$l,isPlainObject:Il,isReadableStream:F2,isRequest:M2,isResponse:P2,isHeaders:L2,isUndefined:Ko,isDate:D2,isFile:O2,isBlob:V2,isRegExp:q2,isFunction:Sn,isStream:R2,isURLSearchParams:I2,isTypedArray:Y2,isFileList:B2,forEach:Yo,merge:Yc,extend:z2,trim:j2,stripBOM:U2,inherits:H2,toFlatObject:W2,kindOf:Bl,kindOfTest:Xn,endsWith:G2,toArray:K2,forEachEntry:Q2,matchAll:J2,isHTMLForm:X2,hasOwnProperty:Hm,hasOwnProp:Hm,reduceDescriptors:Wm,freezeMethods:eT,toObjectSet:tT,toCamelCase:Z2,noop:nT,toFiniteNumber:iT,findKey:zm,global:cr,isContextDefined:Um,isSpecCompliantForm:rT,toJSONObject:oT,isAsyncFn:aT,isThenable:lT,setImmediate:Gm,asap:sT,isIterable:e=>e!=null&&Sn(e[Vl])};function ft(e,t,r,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status?i.status:null)}xe.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:xe.toJSONObject(this.config),code:this.code,status:this.status}}});const Km=ft.prototype,Ym={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ym[e]={value:e}}),Object.defineProperties(ft,Ym),Object.defineProperty(Km,"isAxiosError",{value:!0}),ft.from=(e,t,r,o,i,l)=>{const d=Object.create(Km);return xe.toFlatObject(e,d,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),ft.call(d,e.message,t,r,o,i),d.cause=e,d.name=e.name,l&&Object.assign(d,l),d};const dT=null;function Qc(e){return xe.isPlainObject(e)||xe.isArray(e)}function Qm(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function Jm(e,t,r){return e?e.concat(t).map(function(i,l){return i=Qm(i),!r&&l?"["+i+"]":i}).join(r?".":""):t}function cT(e){return xe.isArray(e)&&!e.some(Qc)}const uT=xe.toFlatObject(xe,{},null,function(t){return/^is[A-Z]/.test(t)});function Fl(e,t,r){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=xe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,_){return!xe.isUndefined(_[E])});const o=r.metaTokens,i=r.visitor||h,l=r.dots,d=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&xe.isSpecCompliantForm(t);if(!xe.isFunction(i))throw new TypeError("visitor must be a function");function m(w){if(w===null)return"";if(xe.isDate(w))return w.toISOString();if(!u&&xe.isBlob(w))throw new ft("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(w)||xe.isTypedArray(w)?u&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function h(w,E,_){let g=w;if(w&&!_&&typeof w=="object"){if(xe.endsWith(E,"{}"))E=o?E:E.slice(0,-2),w=JSON.stringify(w);else if(xe.isArray(w)&&cT(w)||(xe.isFileList(w)||xe.endsWith(E,"[]"))&&(g=xe.toArray(w)))return E=Qm(E),g.forEach(function(x,k){!(xe.isUndefined(x)||x===null)&&t.append(d===!0?Jm([E],k,l):d===null?E:E+"[]",m(x))}),!1}return Qc(w)?!0:(t.append(Jm(_,E,l),m(w)),!1)}const y=[],C=Object.assign(uT,{defaultVisitor:h,convertValue:m,isVisitable:Qc});function S(w,E){if(!xe.isUndefined(w)){if(y.indexOf(w)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(w),xe.forEach(w,function(g,b){(!(xe.isUndefined(g)||g===null)&&i.call(t,g,xe.isString(b)?b.trim():b,E,C))===!0&&S(g,E?E.concat(b):[b])}),y.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Xm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Jc(e,t){this._pairs=[],e&&Fl(e,this,t)}const Zm=Jc.prototype;Zm.append=function(t,r){this._pairs.push([t,r])},Zm.toString=function(t){const r=t?function(o){return t.call(this,o,Xm)}:Xm;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function fT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qm(e,t,r){if(!t)return e;const o=r&&r.encode||fT;xe.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let l;if(i?l=i(t,r):l=xe.isURLSearchParams(t)?t.toString():new Jc(t,r).toString(o),l){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class pT{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){xe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const eg=pT,tg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Jc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Xc=typeof window<"u"&&typeof document<"u",Zc=typeof navigator=="object"&&navigator||void 0,mT=Xc&&(!Zc||["ReactNative","NativeScript","NS"].indexOf(Zc.product)<0),gT=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vT=Xc&&window.location.href||"http://localhost",cn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xc,hasStandardBrowserWebWorkerEnv:gT,hasStandardBrowserEnv:mT,navigator:Zc,origin:vT},Symbol.toStringTag,{value:"Module"})),...hT};function yT(e,t){return Fl(e,new cn.classes.URLSearchParams,Object.assign({visitor:function(r,o,i,l){return cn.isNode&&xe.isBuffer(r)?(this.append(o,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function bT(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wT(e){const t={},r=Object.keys(e);let o;const i=r.length;let l;for(o=0;o<i;o++)l=r[o],t[l]=e[l];return t}function ng(e){function t(r,o,i,l){let d=r[l++];if(d==="__proto__")return!0;const c=Number.isFinite(+d),u=l>=r.length;return d=!d&&xe.isArray(i)?i.length:d,u?(xe.hasOwnProp(i,d)?i[d]=[i[d],o]:i[d]=o,!c):((!i[d]||!xe.isObject(i[d]))&&(i[d]=[]),t(r,o,i[d],l)&&xe.isArray(i[d])&&(i[d]=wT(i[d])),!c)}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const r={};return xe.forEachEntry(e,(o,i)=>{t(bT(o),i,r,0)}),r}return null}function CT(e,t,r){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const qc={transitional:tg,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",i=o.indexOf("application/json")>-1,l=xe.isObject(t);if(l&&xe.isHTMLForm(t)&&(t=new FormData(t)),xe.isFormData(t))return i?JSON.stringify(ng(t)):t;if(xe.isArrayBuffer(t)||xe.isBuffer(t)||xe.isStream(t)||xe.isFile(t)||xe.isBlob(t)||xe.isReadableStream(t))return t;if(xe.isArrayBufferView(t))return t.buffer;if(xe.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(l){if(o.indexOf("application/x-www-form-urlencoded")>-1)return yT(t,this.formSerializer).toString();if((c=xe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Fl(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(r.setContentType("application/json",!1),CT(t)):t}],transformResponse:[function(t){const r=this.transitional||qc.transitional,o=r&&r.forcedJSONParsing,i=this.responseType==="json";if(xe.isResponse(t)||xe.isReadableStream(t))return t;if(t&&xe.isString(t)&&(o&&!this.responseType||i)){const d=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(d)throw c.name==="SyntaxError"?ft.from(c,ft.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cn.classes.FormData,Blob:cn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xe.forEach(["delete","get","head","post","put","patch"],e=>{qc.headers[e]={}});const eu=qc,_T=xe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ET=e=>{const t={};let r,o,i;return e&&e.split(`
|
||
`).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,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:c,headers:(m,h,y)=>i(dg(m),dg(h),y,!0)};return xe.forEach(Object.keys(Object.assign({},e,t)),function(h){const y=u[h]||i,C=y(e[h],t[h],h);xe.isUndefined(C)&&y!==c||(r[h]=C)}),r}const cg=e=>{const t=ur({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:l,headers:d,auth:c}=t;t.headers=d=Zn.from(d),t.url=qm(sg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&d.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(xe.isFormData(r)){if(cn.hasStandardBrowserEnv||cn.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((u=d.getContentType())!==!1){const[m,...h]=u?u.split(";").map(y=>y.trim()).filter(Boolean):[];d.setContentType([m||"multipart/form-data",...h].join("; "))}}if(cn.hasStandardBrowserEnv&&(o&&xe.isFunction(o)&&(o=o(t)),o||o!==!1&&OT(t.url))){const m=i&&l&&VT.read(l);m&&d.set(i,m)}return t},$T=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,o){const i=cg(e);let l=i.data;const d=Zn.from(i.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:m}=i,h,y,C,S,w;function E(){S&&S(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function g(){if(!_)return;const x=Zn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:x,config:e,request:_};og(function(F){r(F),E()},function(F){o(F),E()},N),_=null}"onloadend"in _?_.onloadend=g:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(g)},_.onabort=function(){!_||(o(new ft("Request aborted",ft.ECONNABORTED,e,_)),_=null)},_.onerror=function(){o(new ft("Network Error",ft.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const N=i.transitional||tg;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),o(new ft(k,N.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,_)),_=null},l===void 0&&d.setContentType(null),"setRequestHeader"in _&&xe.forEach(d.toJSON(),function(k,N){_.setRequestHeader(N,k)}),xe.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),c&&c!=="json"&&(_.responseType=i.responseType),m&&([C,w]=Ll(m,!0),_.addEventListener("progress",C)),u&&_.upload&&([y,S]=Ll(u),_.upload.addEventListener("progress",y),_.upload.addEventListener("loadend",S)),(i.cancelToken||i.signal)&&(h=x=>{!_||(o(!x||x.type?new Xr(null,e,_):x),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const b=TT(i.url);if(b&&cn.protocols.indexOf(b)===-1){o(new ft("Unsupported protocol "+b+":",ft.ERR_BAD_REQUEST,e));return}_.send(l||null)})},IT=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,i;const l=function(m){if(!i){i=!0,c();const h=m instanceof Error?m:this.reason;o.abort(h instanceof ft?h:new Xr(h instanceof Error?h.message:h))}};let d=t&&setTimeout(()=>{d=null,l(new ft(`timeout ${t} of ms exceeded`,ft.ETIMEDOUT))},t);const c=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(l):m.removeEventListener("abort",l)}),e=null)};e.forEach(m=>m.addEventListener("abort",l));const{signal:u}=o;return u.unsubscribe=()=>xe.asap(c),u}},FT=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let o=0,i;for(;o<r;)i=o+t,yield e.slice(o,i),o=i},MT=async function*(e,t){for await(const r of PT(e))yield*FT(r,t)},PT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},ug=(e,t,r,o)=>{const i=MT(e,t);let l=0,d,c=u=>{d||(d=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:m,value:h}=await i.next();if(m){c(),u.close();return}let y=h.byteLength;if(r){let C=l+=y;r(C)}u.enqueue(new Uint8Array(h))}catch(m){throw c(m),m}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},jl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fg=jl&&typeof ReadableStream=="function",LT=jl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jT=fg&&pg(()=>{let e=!1;const t=new Request(cn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hg=64*1024,iu=fg&&pg(()=>xe.isReadableStream(new Response("").body)),zl={stream:iu&&(e=>e.body)};jl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!zl[t]&&(zl[t]=xe.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new ft(`Response type '${t}' is not supported`,ft.ERR_NOT_SUPPORT,o)})})})(new Response);const zT=async e=>{if(e==null)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e))return(await new Request(cn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(xe.isArrayBufferView(e)||xe.isArrayBuffer(e))return e.byteLength;if(xe.isURLSearchParams(e)&&(e=e+""),xe.isString(e))return(await LT(e)).byteLength},UT=async(e,t)=>{const r=xe.toFiniteNumber(e.getContentLength());return r==null?zT(t):r},ru={http:dT,xhr:$T,fetch:jl&&(async e=>{let{url:t,method:r,data:o,signal:i,cancelToken:l,timeout:d,onDownloadProgress:c,onUploadProgress:u,responseType:m,headers:h,withCredentials:y="same-origin",fetchOptions:C}=cg(e);m=m?(m+"").toLowerCase():"text";let S=IT([i,l&&l.toAbortSignal()],d),w;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let _;try{if(u&&jT&&r!=="get"&&r!=="head"&&(_=await UT(h,o))!==0){let N=new Request(t,{method:"POST",body:o,duplex:"half"}),V;if(xe.isFormData(o)&&(V=N.headers.get("content-type"))&&h.setContentType(V),N.body){const[F,I]=ag(_,Ll(lg(u)));o=ug(N.body,hg,F,I)}}xe.isString(y)||(y=y?"include":"omit");const g="credentials"in Request.prototype;w=new Request(t,{...C,signal:S,method:r.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:g?y:void 0});let b=await fetch(w);const x=iu&&(m==="stream"||m==="response");if(iu&&(c||x&&E)){const N={};["status","statusText","headers"].forEach(P=>{N[P]=b[P]});const V=xe.toFiniteNumber(b.headers.get("content-length")),[F,I]=c&&ag(V,Ll(lg(c),!0))||[];b=new Response(ug(b.body,hg,F,()=>{I&&I(),E&&E()}),N)}m=m||"text";let k=await zl[xe.findKey(zl,m)||"text"](b,e);return!x&&E&&E(),await new Promise((N,V)=>{og(N,V,{data:k,headers:Zn.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:w})})}catch(g){throw E&&E(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new ft("Network Error",ft.ERR_NETWORK,e,w),{cause:g.cause||g}):ft.from(g,g&&g.code,e,w)}})};xe.forEach(ru,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mg=e=>`- ${e}`,HT=e=>xe.isFunction(e)||e===null||e===!1,gg={getAdapter:e=>{e=xe.isArray(e)?e:[e];const{length:t}=e;let r,o;const i={};for(let l=0;l<t;l++){r=e[l];let d;if(o=r,!HT(r)&&(o=ru[(d=String(r)).toLowerCase()],o===void 0))throw new ft(`Unknown adapter '${d}'`);if(o)break;i[d||"#"+l]=o}if(!o){const l=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let d=t?l.length>1?`since :
|
||
`+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,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lu).forEach(([e,t])=>{lu[t]=e});const QT=lu;function wg(e){const t=new Gl(e),r=Mm(Gl.prototype.request,t);return xe.extend(r,Gl.prototype,t,{allOwnKeys:!0}),xe.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return wg(ur(e,i))},r}const Wt=wg(eu);Wt.Axios=Gl,Wt.CanceledError=Xr,Wt.CancelToken=GT,Wt.isCancel=rg,Wt.VERSION=yg,Wt.toFormData=Fl,Wt.AxiosError=ft,Wt.Cancel=Wt.CanceledError,Wt.all=function(t){return Promise.all(t)},Wt.spread=KT,Wt.isAxiosError=YT,Wt.mergeConfig=ur,Wt.AxiosHeaders=Zn,Wt.formToJSON=e=>ng(xe.isHTMLForm(e)?new FormData(e):e),Wt.getAdapter=gg.getAdapter,Wt.HttpStatusCode=QT,Wt.default=Wt;const Cg=Wt,b6="";Wr.registerLanguage("javascript",QE),Wr.registerLanguage("xml",YE);const JT=n.defineComponent({name:"FcDesigner",components:{AiChat:A2,SlotsConfig:Zk,Warning:Jn,QuickLayout:r2,PrintForm:s2,LanguageConfig:Gk,PropsInput:Bk,JsonPreview:xk,GlobalVariableConfig:Im,GlobalClassConfig:$m,GlobalEventConfig:km,GlobalFetchConfig:Tm,FormList:mS,FieldList:nS,TypeSelect:KA,ConfigTitle:Sm,VariableConfig:jo,ToolsBar:PA,SubList:BA,PageInput:pA,fcDraggable:Lr,DragForm:je.$form(),ViewForm:hn.$form(),DragFormMobile:je.$form(),ViewFormMobile:hn.$form(),EventConfig:Sh,ConfigItem:Rn,VNode:xh},props:{menu:Array,field:Array,appId:String,appUrl:String,list:Array,theme:String,height:[String,Number],config:{type:Object,default:()=>({})},mask:{type:Boolean,default:void 0},locale:Object,handle:Array},data(){return{}},emits:["active","create","copy","delete","drag","inputData","inputPageData","save","clear","switchForm","copyRule","pasteRule","sortUp","sortDown","changeDevice","previewSubmit","previewReset"],setup(e){var ce,de,pe,se,ge,ye;let t;t=!0;const{menu:r,height:o,mask:i,locale:l,handle:d}=n.toRefs(e),c=n.getCurrentInstance(),u=n.reactive({active:null});n.provide("fcx",u),n.provide("designer",c);const m=e.appUrl,h=n.toRef(e,"config",{}),y=n.toRef(e,"theme"),C=n.toRef(e,"field",[]),S=n.toRef(e,"list",[]),w=n.toRef(h.value,"baseRule",null),E=n.toRef(h.value,"componentRule",{}),_=n.toRef(h.value,"updateDefaultRule",{}),g=n.toRef(h.value,"validateRule",null),b=n.toRef(h.value,"formRule",null),x=n.computed(()=>{const D=o.value;return D?ct.Number(D)?`${D}px`:D:"100%"}),k=n.computed(()=>h.value.fieldReadonly!==!1),N=n.computed(()=>h.value.fieldList||[]),V=n.computed(()=>h.value.varList||[]),F=n.computed(()=>h.value.hiddenMenu||[]),I=n.computed(()=>h.value.hiddenItem||[]),P=n.computed(()=>h.value.hiddenDragMenu===!0),T=n.computed(()=>h.value.hiddenDragBtn===!0),B=n.computed(()=>c.refs.dragCon.clientHeight),L=n.computed(()=>{var D;return(((D=l.value)==null?void 0:D.name)||"zh-cn")==="zh-cn"?UA:null}),U=n.computed(()=>X.getConfig("showGridLine")!==!1||X.getConfig("showQuickLayout")!==!1||X.getConfig("showPrintBtn")!==!1),H=n.computed(()=>{const D=["base","advanced","props","slots","style","event","validate"];let W=h.value.configFormOrder?[...h.value.configFormOrder]:[],Y=[];return W.length?[...W,...D].forEach(q=>{Y.indexOf(q)===-1&&D.indexOf(q)>-1&&Y.push(q)}):Y=D,Y.map(q=>`"${q}"`).join(" ")});n.watch(y,(D,W)=>{W&&document.body.classList.remove("fd-theme-"+W),D&&document.body.classList.add("fd-theme-"+D)});let R=vl;l.value&&(R=td(l).t);const z=(...D)=>R(...D),$=(D,W,...Y)=>{if(W){if(ct.Function(W))return W(...Y);if(W.rule){let q=W.rule(...Y);return W.prepend?q=[...q,...D(...Y)]:W.append&&(q=[...D(...Y),...q]),q}}return D(...Y)},A=n.reactive({cacheProps:{},operation:{idx:-1,list:[]},modelValue:"",selectedNodeName:"",datasetData:[],datasetInfo:{},dsSelectProps:{label:"name",children:"children",value:"id",isLeaf:D=>{var W;return!((W=D.children)!=null&&W.length)}},fieldData:[],tableId:"",pageData:[],gridLine:!1,hiddenLeft:!1,hiddenRight:!1,moveRule:null,addRule:null,added:null,bus:q0(),device:((ce=h.value)==null?void 0:ce.device)||"pc",activeModule:"base",activeTab:"form",activeMenuTab:"menu",activePage:null,activeRule:null,children:n.ref([]),treeInfo:[],menuList:r.value||IC(),dragRuleList:{},eventShow:!1,unloadStatus:!1,previewStatus:"form",previewDevice:"pc",t:z,preview:{state:!1,rule:[],option:{},api:{}},inputForm:{state:!1,rule:[],option:{},api:{},data:{},key:""},dragForm:n.ref({rule:[],api:{}}),formOptions:{appUrl:m,datasetInfo:{}},oldOptionsKeys:[],form:{rule:$(up,b.value,{t:z}),api:{},option:{global:{input:((de=h.value)==null?void 0:de.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1},value:{form:{},submitBtn:!1}},baseForm:{isShow:!1,rule:$(No,w.value,{t:z}),api:{},value:{},options:{global:{input:((pe=h.value)==null?void 0:pe.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=A.activeRule,D.setValue(D.options.formData||{})}}},advancedForm:{isShow:!1,rule:pp({t:z}),api:{},value:{},options:{global:{input:((se=h.value)==null?void 0:se.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=A.activeRule,D.setValue(D.options.formData||{})}}},styleForm:{isShow:!1,rule:fp({t:z}),api:{},value:{},options:{form:{labelPosition:"left",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=A.activeRule,D.setValue(D.options.formData||{})}}},validateForm:{isShow:!1,rule:$(hp,g.value,{t:z}),api:{},value:[],options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=A.activeRule,D.setValue(D.options.formData||{})}}},propsForm:{isShow:!1,variable:!1,rule:[],api:{},value:{},options:{global:{input:((ge=h.value)==null?void 0:ge.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},inputNumber:{props:{controlsPosition:"right"}},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=A.activeRule,D.setValue(D.options.formData||{})}}},customForm:{isShow:!1,config:null,key:"",rule:[],api:{},options:{global:{input:((ye=h.value)==null?void 0:ye.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1}}}),J=n.computed(()=>{const D=A.activeRule;if(!D||!D._menu.children||D._fc_drag_tag===D._menu.children)return null;const W=A.dragRuleList[D._fc_drag_tag],Y=A.dragRuleList[D._menu.children];let q=D.children;return W.inside&&(q=q[0].children),Y.inside||(q=q.map(ee=>ee.children[0])),q.filter(ee=>ee._fc_drag_tag===Y.name)});n.watch(()=>A.preview.state,function(D){D||n.nextTick(()=>{A.previewStatus="form",A.preview.rule=A.preview.option=null})}),n.watch(()=>A.previewStatus,D=>{A.preview.rule&&(A.preview.option.preview=D==="preview")});let Q=null;const G=(D,W)=>{if(D[10]!==">"){if(D=D.replace("formCreate",""),!D)return;D=La(D)}else D=D.replace("formCreate>","");const Y=D.split(">"),q=Y.pop();let ee=A.activeRule;Y.forEach((oe,he)=>{he||(oe=La(oe)),ee[oe]||(ee[oe]={}),ee=ee[oe]}),W({source:ee,field:q})},ie=n.computed(()=>A.pageData.filter(D=>!D.default).length);n.watch(()=>l.value,D=>{R=D?td(l).t:vl,X.clearActiveRule();const W=A.form.api.formData&&A.form.api.formData(),Y=A.baseForm.api.formData&&A.baseForm.api.formData(),q=A.validateForm.api.formData&&A.validateForm.api.formData();A.validateForm.rule=$(hp,g.value,{t:z}),A.baseForm.rule=$(No,w.value,{t:z}),A.form.rule=$(up,b.value,{t:z}),A.styleForm.rule=fp({t:z}),A.advancedForm.rule=pp({t:z}),A.cacheProps={};const ee=A.activeRule;let oe=null;ee&&(oe=A.propsForm.api.formData&&A.propsForm.api.formData(),A.propsForm.rule=A.cacheProps[ee._fc_id]=X.getPropsRule(ee)),n.nextTick(()=>{W&&A.form.api.setValue(W),Y&&A.baseForm.api.setValue(Y),q&&A.validateForm.api.setValue(q),oe&&A.propsForm.api.setValue(oe)})}),n.watch(()=>h.value.license,D=>{hn.license=D,je.license=D,window&&window.formCreate&&(window.formCreate.license=D)},{immediate:!0});const X={dsClick(D){A.datasetInfo={},A.formOptions.datasetInfo={},A.datasetData.forEach(W=>{W.table_id==D&&(A.datasetInfo=W,A.formOptions.datasetInfo=W)}),X.onDatasetChange(A.datasetInfo)},onDatasetChange(D){let W="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MX0.i8pMPviPZoQyjXML3dLfLek4XML2acUf-x0K90u9KoY";if(localStorage.getItem("user.token")!=null&&localStorage.getItem("user.token")!=""){const q=JSON.parse(localStorage.getItem("user.token"));W=JSON.parse(q.v)}let Y=m;Y==null&&(Y=""),A.fieldData=[],window.globalvariableData=[],Cg.get(Y+"/datasetData/getFieldsByTableId",{headers:{"X-De-Token":W},params:{datasourceId:D.datasource_id,tablename:D.table_name}}).then(q=>{A.datasetInfo.keyfeilds=q.data.data.keyfeilds,A.formOptions.datasetInfo.keyfeilds=q.data.data.keyfeilds,window.globalvariableData=q.data.data.fields,q.data.data.fields.forEach(ee=>{ee.label=ee.name,ee.item="input",ee.iskey=ee.iskey,ee.fieldtype=ee.type,ee.maxlength=ee.size,ee.field=ee.field,ee.update={disabled:ee.iskey},A.fieldData.push(ee)})}).catch(q=>{console.error(" \u8BF7\u6C42\u51FA\u9519:",q)})},getInit(){A.formOptions.appUrl=m;let D=m;D==null&&(D="");let W="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MX0.i8pMPviPZoQyjXML3dLfLek4XML2acUf-x0K90u9KoY";if(localStorage.getItem("user.token")!=null&&localStorage.getItem("user.token")!=""){const Y=JSON.parse(localStorage.getItem("user.token"));W=JSON.parse(Y.v)}Cg.get(D+"/datasetData/getTablesByAppId",{headers:{"X-De-Token":W},params:{appid:e.appId}}).then(Y=>{A.datasetData=Y.data.data}).catch(Y=>{console.error(" \u8BF7\u6C42\u51FA\u9519:",Y)})},setDevice(D){A.device=D,c.emit("changeDevice",D)},initPage(){A.children=X.makeChildren([]),A.dragForm.rule=X.makeDragRule(A.children),A.operation=A.pageData[0]?A.pageData[0].operation:{idx:-1,list:[]},A.pageData=[{default:!0,rule:A.dragForm.rule,operation:A.operation}],A.activePage=A.pageData[0]},changePage(D){const W=A.pageData[D];if(A.activePage!==W){if(A.activePage){const Y=A.activePage;Y.rule=A.dragForm.rule,Y.operation=A.operation}W.operation||(W.operation={idx:-1,list:[]}),A.dragForm.rule=W.rule,W.default?A.children=W.rule[0].children:A.children=W.rule[0].children[0].children[0].children,A.activePage=W,A.operation=W.operation,A.preview.state=!1,A.inputForm.state=!1,X.clearActiveRule(),X.updateTree()}},deletePage(D){D&&(A.pageData[D]===A.activePage&&X.changePage(0),A.pageData.splice(D,1))},copyPage(D){if(D){const W=A.pageData[D],Y=at(A.pageData[D].rule)[0],q=Y.type==="DragTool"?Y.children[0]:Y;q.name="ref_"+We(),q._fc_id="id_"+We(),Kh(q,W.config.labelField,Br(q,W.config.labelField,"")+" Copy"),A.pageData.splice(D+1,0,{config:W.config,type:W.type,main:q,rule:[Y]})}},addPage(D){const W=X.makeRule(A.dragRuleList[D]);X.appendPage(D,W)},appendPage(D,W){const Y=W.type==="DragTool"?W.children[0]:W;A.pageData.push({config:A.dragRuleList[D].container,main:Y,type:D,rule:[W]})},openGlobalFetchDialog(){const D=c.refs.globalFetch;D&&D.open()},openGlobalClassDialog(){const D=c.refs.globalClass;D&&D.open()},openGlobalEventDialog(){const D=c.refs.globalEvent;D&&D.open()},openGlobalVariableDialog(){const D=c.refs.globalVariable;D&&D.open()},unWatchActiveRule(){Q&&Q(),Q=null},watchActiveRule(){X.unWatchActiveRule(),Q=n.watch(()=>A.activeRule,function(D){D&&X.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(D){return n.reactive({children:D}).children},addMenu(D){if(!D.name)return;let W=!0;A.menuList.forEach((Y,q)=>{Y.name===D.name&&(A.menuList[q]=D,W=!1)}),W&&(D.before?A.menuList.unshift(D):A.menuList.push(D))},removeMenu(D){[...A.menuList].forEach((W,Y)=>{W.name===D&&A.menuList.splice(Y,1)})},setMenuItem(D,W){A.menuList.forEach(Y=>{Y.name===D&&(Y.list=W)})},appendMenuItem(D,W){A.menuList.forEach(Y=>{Y.name===D&&Y.list.push(...Array.isArray(W)?W:[W])})},removeMenuItem(D){A.menuList.forEach(W=>{let Y;ct.String(D)?[...W.list].forEach((q,ee)=>{q.name===D&&W.list.splice(ee,1)}):(Y=W.list.indexOf(D))>-1&&W.list.splice(Y,1)})},addComponent(D){Array.isArray(D)?D.forEach(W=>{A.dragRuleList[W.name]=W,W.menu&&X.appendMenuItem(W.menu,W)}):(A.dragRuleList[D.name]=D,D.menu&&X.appendMenuItem(D.menu,D))},openInputData(D){A.inputForm.state=D===void 0?!A.inputForm.state:!!D,A.inputForm.state&&(A.inputForm.option=je.parseJson(X.getOptionsJson()),X.inputReset(),A.inputForm.option.appendValue=!1,A.inputForm.option.submitBtn.show=!1,A.inputForm.option.resetBtn.show=!1,X.clearActiveRule())},inputSave(){const D=A.inputForm.api.formData();Object.keys(D).forEach(Y=>{li(D[Y])&&delete D[Y]});const W=JSON.stringify(X.getPreviewFormData())!==JSON.stringify(D);A.activePage.default?(A.inputForm.data=D,c.emit("inputData",D)):(Kh(A.activePage.main,A.activePage.config.formDataField,D),c.emit("inputPageData",D)),A.inputForm.state=!1,W&&X.addOperationRecord()},inputClear(){X.inputReset({})},inputReset(D){A.inputForm.rule=je.parseJson(X.getPreviewRule()),A.inputForm.option.formData=D||at(X.getPreviewFormData()),A.inputForm.key=We()},setFormData(D){A.inputForm.data=D||{}},getFormData(){return A.inputForm.data},getParent(D){let W=D.__fc__.parent.rule;const Y=W._menu;return Y&&Y.inside&&(D=W,W=W.__fc__.parent.rule),{root:W,parent:D}},copyName(){si(A.activeRule.name)},updateName(){A.activeRule.name="ref_"+We()},makeDrag(D,W,Y,q,ee){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:{name:D===!0?"default":D,put(...oe){return X.dragPut(...oe)}},swapThreshold:W==="draggable"?.25:.8,ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"auto",itemKey:"_fc_id"}},tag:W},children:Y,slot:ee,on:q}},clearDragRule(){A.children.length=0,X.clearActiveRule(),X.addOperationRecord(),X.updateTree(),A.unloadStatus=!1,c.emit("clear")},makeDragRule(D){return X.makeChildren([X.makeDrag(!0,"draggable",D,{add:(W,Y)=>X.dragAdd(D,Y),end:(W,Y)=>X.dragEnd(D,Y),start:(W,Y)=>X.dragStart(D,Y),unchoose:(W,Y)=>X.dragUnchoose(D,Y)})])},handleSave(){c.emit("save",{rule:X.getJson(),options:X.getOptionsJson()})},getPreviewFormData(){return A.activePage.default?A.inputForm.data:Br(A.activePage.main,A.activePage.config.formDataField,{})||{}},getPreviewRule(){return A.activePage.default?X.getJson():je.toJson(X.parseRule(at(A.children)))},previewSubmit(...D){c.emit("previewSubmit",...D)},previewReset(...D){c.emit("previewReset",...D)},openPreview(){A.preview.state=!0,A.previewDevice=A.device==="mobile"?"mobile":"pc";const D=X.getPreviewRule(),W=X.getOptionsJson(),Y=X.getConfig("useTemplate",!1);A.preview.option=je.parseJson(W),A.activePage.default||(A.preview.option.formData=at(X.getPreviewFormData())),A.preview.rule=je.parseJson(D),A.preview.html=Wr.highlight(Y?U0(D,W):H0(D,W),{language:"xml"}).value,A.preview.mobileHtml=Wr.highlight(Y?W0(D,W):G0(D,W),{language:"xml"}).value,A.preview.sfc=Wr.highlight(SA(A.children,A.preview.option,A.dragRuleList,Y),{language:"xml"}).value},copyCode(){si(this.$refs.previewCode.innerText)},getPageRule(){return X.parseRule(at(A.children))},getPageJson(){return je.toJson(X.getPageRule())},getRule(){let D;if(A.pageData.length>1){const W=[];A.pageData.map(Y=>{Y.default?D=X.parseRule(at(Y.rule)):W.push(X.parseRule(at(Y.rule))[0])}),D.push(...W)}else D=X.getPageRule();return D},getJson(){return je.toJson(X.getRule())},getOption(){var Y;const D=at(A.formOptions);["onReset","onSubmit","beforeSubmit","onCreated","onMounted","onReload","onChange","beforeFetch"].forEach(q=>{delete D[q]}),Object.keys(D._event||{}).forEach(q=>{D._event[q]&&(D[q]=D._event[q])}),D.style||delete D.style,delete D._event,D.submitBtn=D._submitBtn,D.resetBtn=D._resetBtn,D.resetBtn.innerText=z("props.reset"),D.submitBtn.innerText=z("props.submit");const W=at(A.inputForm.data);return Object.keys(W).length>0&&(D.formData=W),(Y=D==null?void 0:D.wrap)!=null&&Y.style&&(D.wrap.style.marginBottom||delete D.wrap.style.marginBottom,Object.keys(D.wrap.style).length||delete D.wrap.style,Object.keys(D.wrap).length||delete D.wrap),D.language&&Object.keys(D.language).forEach(q=>{Object.keys(D.language[q]).forEach(ee=>{D.language[q][ee]||delete D.language[q][ee]}),Object.keys(D.language[q]).length||delete D.language[q]}),Object.keys(D).forEach(q=>{Object.keys(D[q]).length||delete D[q]}),delete D._submitBtn,delete D._resetBtn,D},subRender(D,W,Y){const q=D({h:n.h,resolveComponent:n.resolveComponent,rule:W,subRule:Y,t:z});return Array.isArray(q)?q.map(ee=>n.h(Rn,{label:ee.label},()=>ee.vnode)):q},getOptions(){return X.getOption()},getOptionsJson(){return je.toJson([X.getOption()]).slice(1).slice(0,-1)},setRule(D,W){D||(D=[]),!W&&X.initPage();const Y=X.loadRule(ct.String(D)?je.parseJson(D):at(D)),q=[];Y.forEach(ee=>{ee._fc_page_tag?W||X.appendPage(ee._fc_page_tag,ee):q.push(ee)}),A.children.length=0,A.children.push(...q),X.clearActiveRule(),W||(X.addOperationRecord(),!q.length&&A.pageData.length>1&&X.changePage(1)),X.updateTree()},setBaseRuleConfig(D,W){w.value={rule:D,append:W},A.baseForm.rule=$(No,w.value,{t:z})},setComponentRuleConfig(D,W,Y){E.value[D]={rule:W,append:Y},A.cacheProps={};const q=A.activeRule;if(q){const ee=A.propsForm.api.formData&&A.propsForm.api.formData();A.propsForm.rule=A.cacheProps[q._fc_id]=$(q._menu.props,E.value&&E.value[q._menu.name],q,{t:z,api:A.dragForm.api}),n.nextTick(()=>{ee&&A.propsForm.api.setValue(ee)})}},setValidateRuleConfig(D,W){g.value={rule:D,append:W},A.validateForm.rule=$(No,g.value,{t:z})},setFormRuleConfig(D,W){b.value={rule:D,append:W},A.form.rule=$(No,b.value,{t:z})},clearActiveRule(){A.activeRule=null,A.customForm.config=null,A.activeTab="form",u.active=""},setOption(D){D.datasetInfo&&D.datasetInfo.table_id&&(A.tableId=D.datasetInfo.table_id,X.dsClick(A.tableId));const W=at(X.getConfig("formOptions",{})),Y=W.form||{};delete W.form;let q={...W,...ct.String(D)?JSON.parse(D):at(D||{})};q.form={inline:!1,hideRequiredAsterisk:!1,labelPosition:"right",size:"default",labelWidth:"125px",...Y,...q.form||{}},q._event={onReset:q.onReset||"",onSubmit:q.onSubmit||"",onCreated:q.onCreated||"",onMounted:q.onMounted||"",onReload:q.onReload||"",beforeSubmit:q.beforeSubmit||"",onChange:q.onChange||"",beforeFetch:q.beforeFetch||""},ai(q,"globalEvent")||(q.globalEvent={}),q.appUrl=m||"",ai(q,"globalData")||(q.globalData={}),ai(q,"language")||(q.language={}),q._resetBtn=typeof q.resetBtn=="object"?q.resetBtn:{show:q.resetBtn===!0},q._submitBtn=typeof q.submitBtn=="object"?q.submitBtn:{show:q.submitBtn!==!1},q.submitBtn=q.resetBtn=!1,A.inputForm.data=q.formData||{},A.oldOptionsKeys=Object.keys(A.form.value),delete q.formData,A.formOptions=q,X.updateOptionsValue()},setOptions(D){X.setOption(D)},mergeOptions(D){if(["globalEvent","globalData","globalClass","globalVariable","form"].forEach(W=>{D[W]&&(A.formOptions[W]={...A.formOptions[W]||{},...D[W]})}),D.style&&(!A.formOptions.style||A.formOptions.style.indexOf(D.style)===-1)&&(A.formOptions.style=(A.formOptions.style||"")+`
|
||
`+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,field:Pe})=>{delete Se[Pe]})):delete A.activeRule.props[D]),X.watchActiveRule(),(oe=(ee=(q=A.activeRule._menu)==null?void 0:q.watch)==null?void 0:ee[he])==null||oe.call(ee,{field:he,value:void 0,api:Y,rule:A.activeRule,ctx:c})}},propChange(D,W,Y,q){X.handleChange("props",D,W,Y,q)},computedChange(D,W,Y,q){X.handleChange("_computed",D,W,Y,q)},styleChange(D,W,Y,q){if(A.customForm.config)return A.customForm.config.style.change(D,W);X.handleChange("",D,W,Y,q)},handleChange(D,W,Y,q,ee){var oe,he,Se;if(A.activeRule&&ee[A.activeRule._fc_id]===A.activeRule){X.unWatchActiveRule();const Pe=W;W.indexOf("__")!==0&&(W==="formCreateChild"?A.activeRule.children[0]=Y:W.indexOf("formCreate")===0||W.indexOf(">")>0?(W.indexOf("formCreate")<0&&(W=(D?D+">":"")+W),G(W,({source:Le,field:fe})=>{li(Y)?delete Le[fe]:Le[fe]=Y})):D&&li(Y)?delete A.activeRule[D][W]:(D?A.activeRule[D]:A.activeRule)[W]=Y),X.watchActiveRule(),(Se=(he=(oe=A.activeRule._menu)==null?void 0:oe.watch)==null?void 0:he[Pe])==null||Se.call(he,{field:Pe,value:Y,api:ee,rule:A.activeRule,ctx:c})}},validateChange(D,W,Y,q){!A.activeRule||A.validateForm.api[A.activeRule._fc_id]!==A.activeRule||(X.handleChange("",D,W,Y,q),A.dragForm.api.refreshValidate(),A.dragForm.api.nextTick(()=>{var ee;A.dragForm.api.clearValidateState((ee=A.activeRule)==null?void 0:ee.__fc__.id)}))},triggerActive(D){let W;if(ct.String(D)&&(D=X.findRule(D)),!!D&&(D._menu.inside?W=D.children[0]:W=D.__fc__.parent.rule,W&&W.type==="DragTool")){const Y=A.dragForm.api.el(W.__fc__.id);Y&&(u.active=Y.id,c.emit("active",D),X.toolActive(D))}},customFormChange(D,W){A.customForm.config&&A.customForm.config.change(D,W)},customActive(D){A.baseForm.isShow=!1,A.propsForm.isShow=!1,A.propsForm.variable=!1,A.advancedForm.isShow=!1,A.styleForm.isShow=!!D.style&&X.getConfig("showStyleForm")!==!1,A.eventShow=!1,A.validateForm.isShow=!1,A.activeRule=null,A.customForm.config=D,A.customForm.isShow=!0,A.customForm.propsShow=D.props&&X.getConfig("showPropsForm")!==!1,A.customForm.key=We(),A.customForm.rule=A.customForm.propsShow?D.props({t:z}):[],A.customForm.options.formData=D.formData,D.style&&(A.styleForm.value=D.style.formData||{}),n.nextTick(()=>{A.activeTab="props"})},getPropsRule(D){let W=$(D._menu.props,E.value&&E.value[D._menu.name],D,{t:z,api:A.dragForm.api});if(E.value&&E.value.default){const Y=E.value.default;W=$(()=>W,ct.Function(Y)?{rule:Y,append:!0}:Y,D,{t:z,api:A.dragForm.api})}return W},findRule(D){let W;const Y=q=>{q.forEach(ee=>{[ee.rule.field,ee.rule.name,ee.rule._fc_id].indexOf(D)>-1?W=ee.rule:ee.children&&Y(ee.children)})};return Y(A.treeInfo),W},toolActive(D){if(h.value.beforeActiveRule&&h.value.beforeActiveRule({rule:D})===!1)return;X.unWatchActiveRule(),A.customForm.isShow=!1,A.customForm.config=null,A.activeRule&&(delete A.propsForm.api[A.activeRule._fc_id],delete A.baseForm.api[A.activeRule._fc_id],delete A.validateForm.api[A.activeRule._fc_id],delete A.styleForm.api[A.activeRule._fc_id],delete A.advancedForm.api[A.activeRule._fc_id],delete A.dragForm.api.activeRule),A.activeRule=D,A.dragForm.api.activeRule=D,n.nextTick(()=>{A.activeTab="props",n.nextTick(()=>{A.propsForm.api[A.activeRule._fc_id]=A.activeRule,A.baseForm.api[A.activeRule._fc_id]=A.activeRule,A.validateForm.api[A.activeRule._fc_id]=A.activeRule,A.styleForm.api[A.activeRule._fc_id]=A.activeRule,A.advancedForm.api[A.activeRule._fc_id]=A.activeRule})}),A.cacheProps[D._fc_id]||(A.cacheProps[D._fc_id]=X.getPropsRule(D));const W=X.getConfig("hiddenItemConfig",{}),Y=X.getConfig("disabledItemConfig",{}),q=za([...(W==null?void 0:W.default)||[],...(W==null?void 0:W[D._menu.name])||[],...D._menu.hiddenBaseField||[]]),ee=za([...(Y==null?void 0:Y.default)||[],...(Y==null?void 0:Y[D._menu.name])||[]]);A.baseForm.api.disabled(!1),A.baseForm.api.hidden(!1),n.nextTick(()=>{A.baseForm.api.all().forEach(Se=>{(Se.name||Se.field)&&(Se.hidden=q.indexOf(Se.name)!==-1||q.indexOf(Se.field)!==-1)}),A.propsForm.api.hidden(!0,q)}),ee.length&&(A.baseForm.api.disabled(!0,ee),n.nextTick(()=>{A.propsForm.api.disabled(!0,ee)})),X.getConfig("showControl",!0)||A.baseForm.api.hidden(!0,"_control");const oe=ai(D,"field");A.advancedForm.api.hidden(!oe,["value","$required","props.disabled"]),A.baseForm.isShow=oe&&D.input!==!1&&X.getConfig("showBaseForm")!==!1,A.propsForm.isShow=A.cacheProps[D._fc_id].length>0&&X.getConfig("showPropsForm")!==!1,A.propsForm.variable=D._menu.variable!==!1&&X.getConfig("showVariable")!==!1,A.styleForm.isShow=D._menu.style!==!1&&X.getConfig("showStyleForm")!==!1,A.advancedForm.isShow=D._menu.advanced!==!1&&X.getConfig("showAdvancedForm")!==!1,A.eventShow=D._menu.event&&D._menu.event.length>0&&X.getConfig("showEventForm")!==!1;const he=X.getConfig("showValidateForm");A.validateForm.isShow=(A.baseForm.isShow&&he!==!1||he===!0)&&D._menu.validate!==!1,A.propsForm.rule=A.cacheProps[D._fc_id],X.updateRuleFormData(),X.watchActiveRule()},getConfig(D,W){return h.value&&ai(h.value,D)?h.value[D]:W},processObj(D,W,Y="",q=0,ee=3){return q>=ee||Object.keys(D).forEach(oe=>{const he=D[oe],Se=Y?`${Y}>${oe}`:oe;W[Se]=at(he),ct.Object(he)&&X.processObj(he,W,Se,q+1,ee)}),W},updateRuleFormData(){const D=A.activeRule;let W={formCreateChild:""+(D==null?void 0:D.children[0]),"formCreateWrap>title":!0,"formCreateWrap>labelWidth":"","formCreateWrap>class":"","formCreateCol>span":"","formCreateWrap>style>marginBottom":""};const Y=h.value.appendConfigData;ct.Function(Y)?W={...W,...Y(D)}:Array.isArray(Y)&&Y.forEach(oe=>{W[oe]=void 0}),Object.keys(D).forEach(oe=>{["effect","config","payload","id","type","_menu"].indexOf(oe)<0&&(W["formCreate"+Vr(oe)]=at(D[oe]))}),X.processObj(D.props||{},W),["props","effect","attrs","style","wrap","col"].forEach(oe=>{D[oe]&&typeof D[oe]=="object"&&X.processObj(D[oe]||{},W,"formCreate"+Vr(oe))});const q={};["value","hidden","$required","props.disabled"].forEach(oe=>{q[oe]=D._computed&&D._computed[oe]||""});const ee=D._menu.attrs||{};Object.keys(ee).forEach(oe=>{W["__"+oe]=ee[oe]({rule:D})}),D.props.maxlength!=null?W.maxlength=D.props.maxlength:W.maxlength=D.maxlength||null,A.propsForm.value=W,A.styleForm.value={style:D.style,class:D.class,id:D.id},A.advancedForm.value=q,A.baseForm.isShow&&(A.baseForm.value={field:D.field,title:D.title||"",fieldtype:D.fieldtype||"",info:D.info,ignore:D.ignore||!1,iskey:D.iskey||!1,_control:D._control,...W},A.validateForm.value={validate:D.validate?[...D.validate]:[],$required:W.formCreate$required},A.dragForm.api.refreshValidate(),A.dragForm.api.nextTick(()=>{A.dragForm.api.clearValidateState(D.__fc__.id)}))},dragStart(D){A.moveRule=D,A.added=!1},dragUnchoose(D,W){A.addRule={children:D,oldIndex:W.oldIndex}},clickMenu(D){X.dragMenu({menu:D,children:A.children,index:A.children.length})},clickField(D,W,Y,q){const ee={...D.update||{}};ee.title||(ee.title=D.label),D.field&&(ee.field=D.field),D.fieldtype&&(ee.fieldtype=D.fieldtype),D.maxlength&&(ee.maxlength=D.maxlength),D.rule?X.dragMenu({rule:D.rule,children:W||A.children,index:Y==null?A.children.length:Y,slot:q,update:ee}):D.item&&(A.dragRuleList[D.item]!=null&&D.iskey!=null&&(A.dragRuleList[D.item].iskey=D.iskey),X.dragMenu({menu:A.dragRuleList[D.item],children:W||A.children,index:Y==null?A.children.length:Y,slot:q,update:ee}))},checkOnly(D){let W=!1;return A.dragForm.api.all().forEach(Y=>{W=W||Y._fc_template===D.name||Y._menu&&Y._menu.name===D.name}),W&&sn(A.t("struct.only",{label:z("com."+D.name+".name")||D.label})),W},dragMenu({rule:D,menu:W,children:Y,index:q,slot:ee,update:oe}){if(A.inputForm.state||W&&W.only&&X.checkOnly(W))return;const he=fe=>{const ke=[];return fe.forEach(we=>{we._fc_page_tag?X.appendPage(we._fc_page_tag,we):ke.push(we)}),ke};X.handleAddBefore();const Se=W?A.dragRuleList[W.name]:null;c.emit("drag",{item:W,dragRule:Se,rule:D});let Pe=[];if(D)ct.String(D)?(D=X.batchReplaceUni(D),D=je.parseJson(D)):D=je.parseJson(X.batchReplaceUni(je.toJson(D))),Array.isArray(D)||(D=[D]),Pe=he(X.loadRule(D));else if(Se.template){let fe="";ct.Function(Se.template)?fe=je.toJson(Se.template({t:z})):Array.isArray(Se.template)?fe=je.toJson(Se.template):fe=""+Se.template,Se.autoField&&(fe=X.replaceTemplateField(fe)),fe=X.batchReplaceUni(fe),Pe=he(X.loadRule(je.parseJson(fe),null,W.name))}else Pe.push(X.makeRule(A.dragRuleList[Se.name]));ee&&Pe.forEach(fe=>{fe&&(fe.slot=ee)});const Le=Pe[0]&&Pe[0].type==="DragTool"?Pe[0].children[0]:Pe[0];oe&&X.mergeRule(Le,oe),Y.splice(q,0,...Pe),Se&&Se.formOptions&&X.mergeOptions(typeof Se.formOptions=="string"?je.parseJson(Se.formOptions):Se.formOptions),X.handleAddAfter(Se&&Se.template?{template:Pe}:{rule:Le}),Le&&X.getConfig("autoActive",!0)&&n.nextTick(()=>{X.triggerActive(Le)})},mergeRule(D,W){Object.keys(W).forEach(Y=>{Y==="required"?D.$required=!!W.required:Y==="disabled"?(D.props||(D.props={}),D.props.disabled=!!W.disabled):Y==="props"?D.props={...D.props||{},...at(W[Y])}:D[Y]=at(W[Y])})},replaceField(D){const W=["array","object"].indexOf(D._menu.subForm)>-1;let Y=X.parseRule(at([D]))[0];const q=X.getConfig("autoResetName")!==!1;return W&&(Y.field=We(),q&&(Y.name="ref_"+We())),Y=je.toJson(Y),W?Y=X.batchReplaceUni(Y):(Y=X.batchReplaceField(Y),q&&(Y=X.batchReplaceName(Y))),X.loadRule([je.parseJson(Y)])[0]},batchReplaceField(D){const W=/"field"\s*:\s*"(\w[\w\d]+)"/g,Y=[];return D=D.replace(W,(q,ee)=>{const oe=We();return Y.push({old:ee,key:oe}),`"field":"${oe}"`}).replace(/"computed"\s*:\s*(\{\s*(?:"[^"]*"\s*:\s*"(?:\\"|[^"])*"(?:,\s*)?)*\})/g,(q,ee)=>{const oe=JSON.parse(ee);return Y.forEach(he=>{Object.keys(oe).forEach(Se=>{oe[Se]=`${oe[Se]}`.replaceAll(he.old,he.key)})}),`"computed":${JSON.stringify(oe)}`}),X.batchReplaceUni(D)},replaceTemplateField(D){const W=/"field"\s*:\s*"(\w[\w\d]+)"/g;let Y;const q=[];for(;(Y=W.exec(D))!==null;)q.push({old:Y[1],key:We()});return q.forEach(ee=>{D=D.replaceAll(ee.old,ee.key)}),D},batchReplaceUni(D){const W=/"_fc_id"\s*:\s*"(\w[\w\d]+)"/g;return D=D.replace(W,()=>`"_fc_id":"id_${We()}"`),D},batchReplaceName(D){const W=/"name"\s*:\s*"ref_(\w[\w\d]+)"/g;return D=D.replace(W,()=>`"name":"ref_${We()}"`),D},getTrueRule(D){if(!!D){if(D._menu)return D._menu._get();if(D._config)return D._config._get()}},dragPut(D,W,Y){const q=X.getTrueRule(D.el.__rule__);if(!q)return!0;const ee=q._menu,oe=Y._fc_allow_drag||{};if(oe[q._fc_id]===void 0){const he=X.getTrueRule(Y._underlying_vm_),Se=Y._underlying_vm_.__fc__?Y._underlying_vm_._config||Y._underlying_vm_._menu:Y._underlying_vm_;oe[q._fc_id]=!(Se&&ee&&!X.checkDrag({menu:Se,toMenu:ee,rule:he,toRule:q})),Y._fc_allow_drag=oe}return Y._id&&clearTimeout(Y._id),Y._id=setTimeout(()=>{delete Y._fc_allow_drag},1500),Y._fc_allow_drag[q._fc_id]},checkDrag({menu:D,toMenu:W,rule:Y,toRule:q}){var ee,oe;return!(!X.checkAllowDrag(D,W)||q.children&&W.maxChildren&&W.maxChildren<=((oe=(ee=q.children[0])==null?void 0:ee.children)==null?void 0:oe.length)||D.checkDrag&&D.checkDrag({menu:D,toMenu:W,rule:Y,toRule:q,designer:c})===!1||W.checkDrag&&W.checkDrag({menu:D,toMenu:W,rule:Y,toRule:q,designer:c})===!1||h.value.checkDrag&&h.value.checkDrag({menu:D,toMenu:W,rule:Y,toRule:q})===!1)},checkAllowDrag(D,W){function Y(oe){return Array.isArray(oe)&&(oe={item:oe}),Gh(oe.item).indexOf(D.name)>-1?!0:Gh(oe.menu).indexOf(D.menu)>-1}const q=X.getConfig("allowDrag",{})[W.name],ee=X.getConfig("denyDrag",{})[W.name];return W.allowDrag&&Y(W.allowDrag)||q&&Y(q)?!0:W.allowDrag||q||W.denyDrag&&Y(W.denyDrag)?!1:!(ee&&Y(ee))},dragAdd(D,W,Y){delete W.item._fc_allow_drag;const q=W.newIndex,ee=W.item._underlying_vm_||W.item.__rule__;if(A.added=!0,!!ee)if(ee.__fc__){if(A.addRule){X.handleSortBefore();const oe=A.addRule.children.splice(A.addRule.children.indexOf(ee),1)[0];Y?oe.slot=Y:delete oe.slot,D.splice(q,0,oe),X.handleSortAfter({rule:oe})}}else ee._field?X.clickField(ee,D,q,Y):X.dragMenu({menu:ee,children:D,index:q,slot:Y})},dragEnd(D,{item:W,newIndex:Y,oldIndex:q},ee){if(delete W._fc_allow_drag,!A.added&&!(A.moveRule===D&&Y===q)){X.handleSortBefore();const oe=A.moveRule.splice(q,1);ee&&(oe[0].slot=ee),D.splice(Y,0,oe[0]),X.handleSortAfter({rule:oe[0]})}A.moveRule=null,A.addRule=null,A.added=!1,A.bus.$emit("dragEnd")},getSlotConfig(D,W,Y){let q={};return(D.slot||[]).forEach(ee=>{ee.name===W&&(q=ee.config||{})}),{...Y,dragBtn:!1,handleBtn:Y.children?["addChild"]:!1,...q}},makeRule(D,W){let Y=W||D.rule({t:z});D&&D.iskey&&(Y.iskey=D.iskey);const q=_.value&&_.value[D.name];if(!W&&q)if(typeof q=="function")try{q(Y)}catch(_e){console.error(_e)}else{let _e=at(q);delete _e.children,delete _e.component,Y=xm([Y,_e])}Y._menu=n.markRaw({...D}),Y._menu._get=()=>Y,Y._fc_id||(Y._fc_id="id_"+We()),!Y.name&&!D.aide&&(Y.name="ref_"+We()),D.component&&(Y.component=n.markRaw(D.component)),Y._computed||(Y._computed={}),Y.effect||(Y.effect={}),D.input&&!Y.field&&(Y.field=We()),Y.$easySlots||(Y.$easySlots={}),D.languageKey&&X.mergeOptions({languageKey:D.languageKey}),X.tidyRule(Y),Y.display=!0,Y.hidden=!1,Y._fc_drag_tag=D.name,D.container&&(Y._fc_page_tag=D.name);let ee=D.only===!0;if(!ee&&Y._fc_template){const _e=A.dragRuleList[Y._fc_template];ee=_e&&_e.only===!0}const oe=ct.trueArray(Y.children),he={},Se=[];(D.slot||[]).forEach(_e=>{typeof _e=="string"?Se.push(_e):(he[_e.name]=_e,Se.push(_e.name))});const Pe={default:[]};Se.map(_e=>{Pe[_e]=[]}),oe&&Y.children.forEach(_e=>{_e.slot?(Pe[_e.slot]||(Pe[_e.slot]=[]),Pe[_e.slot].push(_e)):Pe.default.push(_e)});const Le=(_e,Ve,Ke,Re)=>{const mt=X.makeDrag(_e,Ve,Ke,{end:(Ze,Ne)=>X.dragEnd(Ze.self.children,Ne),add:(Ze,Ne)=>X.dragAdd(Ze.self.children,Ne),start:(Ze,Ne)=>X.dragStart(Ze.self.children,Ne),unchoose:(Ze,Ne)=>X.dragUnchoose(Ze.self.children,Ne)},Re);return mt._config=Y._menu,mt};let fe;const ke=Y._menu?Y._menu.name:Y.type;if(Object.keys(Pe).forEach(_e=>{const Ve=_e==="default";if(!Ve||D.drag){let Ke;if(he[_e]&&!Ve){if(!W){const Re=A.dragRuleList[he[_e].type];Ke=X.makeRule({...Re,dragBtn:!1,handleBtn:Re.children?["addChild"]:!1,...he[_e].config||{}}),Ke.slot=_e}}else Ke=Le(!0,ke+(Ve?"":"-slot-"+_e),W?Pe[_e].map(Re=>(delete Re.slot,Re)):X.loadRule(Pe[_e]),_e);Ke&&(Pe[_e]=[Ke])}Ve&&D.drag&&(fe=Pe[_e][0])}),D.children&&!W&&!oe&&D.childrenLen!==0)for(let _e=0;_e<(D.childrenLen||1);_e++){const Ve=X.makeRule(A.dragRuleList[D.children]);(fe?fe.children:Pe.default).push(Ve)}const we=[];Se.indexOf("default")===-1&&(we.push(...Pe.default),delete Pe.default),Se.forEach(_e=>{we.push(...Pe[_e]),delete Pe[_e]}),Object.keys(Pe).forEach(_e=>{we.push(...Pe[_e])}),Y.children=we;const He=i.value!==void 0?i.value!==!1:D.mask!==!1;if(D.tool===!1)return Y;const et={dragBtn:D.dragBtn!==!1,inline:D.inline===!0,actions:D.actions?D.actions.map(_e=>_e.label):[],children:D.children,mask:He,inside:D.inside,hidden:Y._hidden===!0||Y._display===!1,handleBtn:D.handleBtn,only:ee};return D.inside?(Y.children=X.makeChildren([{type:"DragTool",props:et,inject:!0,on:{action({self:_e},Ve){const Ke=X.getParent(_e).parent;D.actions[Ve].handler(Ke),A.activeRule===Ke&&X.updateRuleFormData()},delete:({self:_e})=>{const Ve=X.getParent(_e).parent;X.handleRemoveBefore({parent:Ve,rule:Ve})!==!1&&(Ve.__fc__.rm(),c.emit("delete",Ve),A.activeRule===Ve&&X.clearActiveRule(),X.handleRemoveAfter({rule:Ve}))},create:({self:_e})=>{X.handleAddBefore();const Ve=X.getParent(_e);c.emit("create",Ve.parent);const Ke=X.makeRule(Ve.parent._menu);Ve.parent.slot&&(Ke.slot=Ve.parent.slot),Ve.root.children.splice(Ve.root.children.indexOf(Ve.parent)+1,0,Ke),X.handleAddAfter({rule:Ve.parent})},addChild:({self:_e})=>{X.handleAddBefore();const Ve=X.getParent(_e),Ke=Ve.parent._menu,Re=A.dragRuleList[Ke.children];if(!Re)return;const mt=X.makeRule(Re);(Ke.drag?Ve.parent.children[0]:Ve.parent).children[0].children.push(mt),X.handleAddAfter({rule:mt})},copy:({self:_e})=>{X.handleCopyBefore();const Ve=X.getParent(_e);c.emit("copy",Ve.parent);const Ke=X.replaceField(Ve.parent);Ve.root.children.splice(Ve.root.children.indexOf(Ve.parent)+1,0,Ke),X.handleCopyAfter({rule:Ve.parent})},active:({self:_e})=>{const Ve=X.getParent(_e);c.emit("active",Ve.parent),setTimeout(()=>{X.toolActive(Ve.parent)},10)}},_config:Y._menu,children:Y.children}]),Y):{type:"DragTool",props:et,_fc_page_tag:Y._fc_page_tag,inject:!0,display:!!Y.display,on:{action({self:_e},Ve){D.actions[Ve].handler(_e.children[0]),A.activeRule===_e.children[0]&&X.updateRuleFormData()},delete:({self:_e})=>{X.handleRemoveBefore({parent:_e,rule:_e.children[0]})!==!1&&(c.emit("delete",_e.children[0]),_e.__fc__.rm(),A.activeRule===_e.children[0]&&X.clearActiveRule(),X.handleRemoveAfter({rule:_e.children[0]}))},create:({self:_e})=>{X.handleAddBefore(),c.emit("create",_e.children[0]);const Ve=X.getParent(_e),Ke=X.makeRule(_e.children[0]._menu);Ve.parent.slot&&(Ke.slot=Ve.parent.slot),Ve.root.children.splice(Ve.root.children.indexOf(Ve.parent)+1,0,Ke),X.handleAddAfter({rule:Ke})},addChild:({self:_e})=>{X.handleAddBefore();const Ve=_e.children[0]._menu,Ke=A.dragRuleList[Ve.children];if(!Ke)return;const Re=X.makeRule(Ke);(Ve.drag?_e.children[0]:_e).children[0].children.push(Re),X.handleAddAfter({rule:Re})},copy:({self:_e})=>{X.handleCopyBefore(),c.emit("copy",_e.children[0]);const Ve=X.getParent(_e),Ke=X.replaceField(_e.children[0]);_e.slot&&(Ke.slot=_e.slot),Ve.root.children.splice(Ve.root.children.indexOf(Ve.parent)+1,0,Ke),X.handleCopyAfter({rule:_e.children[0]})},active:({self:_e})=>{c.emit("active",_e.children[0]),setTimeout(()=>{X.toolActive(_e.children[0])},10)}},_config:Y._menu,children:X.makeChildren([Y])}},toolHidden(D){const W=!(D._hidden!==void 0&&D._hidden);D._menu.inside?D.children[0].props.hidden=W:D.__fc__.parent.rule.props.hidden=W,D._hidden=W,W||(D._display=!0)},toolHandle(D,W){if(!D._fc_drag_tag||D._menu.tool===!1){D.__fc__.rm();return}let Y;D._menu.inside?Y=D.children[0].__fc__.exportEl:Y=D.__fc__.parent.exportEl,Y.$emit(W)},handleAddBefore(){},handleRemoveBefore({rule:D}){if(h.value.beforeRemoveRule&&h.value.beforeRemoveRule({rule:D})===!1)return!1},handleCopyBefore(){},handleSortBefore(){},addOperationRecord(){const D=X.getPageJson(),W=at(A.inputForm.data),Y=A.operation.list.slice(0,A.operation.idx+1);Y.push({rule:D,formData:W}),A.operation.list=Y,A.operation.idx=Y.length-1,A.unloadStatus=Y.length!==1},prevOperationRecord(){if(!A.operation.list[A.operation.idx-1])return;const D=A.operation.list[--A.operation.idx];X.useOperationRecord(D),X.clearActiveRule()},nextOperationRecord(){if(!A.operation.list[A.operation.idx+1])return;const D=A.operation.list[++A.operation.idx];X.useOperationRecord(D),X.clearActiveRule()},useOperationRecord(D){A.inputForm.data=D.formData,X.setRule(D.rule,!0)},handleAddAfter(){X.addOperationRecord(),X.updateTree()},handleRemoveAfter(){X.addOperationRecord(),X.updateTree()},handleCopyAfter(){X.addOperationRecord(),X.updateTree()},handleSortAfter(){X.addOperationRecord(),X.updateTree()},treeChange(D){X.triggerActive(D.rule)},getFormDescription(){return sp(X.getDescription())},getDescription(){return dp(A.dragForm.rule[0].children)},getSubFormDescription(D){let W=D.__fc__&&D.__fc__.parent;for(;W;){if(W.rule._menu&&["array","object"].indexOf(W.rule._menu.subForm)>-1)return sp(dp(W.rule.children));W=W.parent}return null},getSubFormChildren(D){let W=D.__fc__&&D.__fc__.parent;for(;W;){if(W.rule._menu&&["array","object"].indexOf(W.rule._menu.subForm)>-1)return W.rule.children||[];W=W.parent}return null},updateTree:wl(function(){n.nextTick(()=>{A.treeInfo=nd(A.dragForm.rule[0].children)})},300),findTree(D){let W;const Y=q=>{q.forEach(ee=>{ee.rule.field===D||ee.rule.name===D||ee.rule._fc_id===D?W=ee.children:ee.children&&Y(ee.children)})};return Y(A.treeInfo),W||[]},handleDragenter(D){A.bus.$emit("dragenter",D)},handleDragleave(D){A.bus.$emit("dragleave",D)},handleDrop(D){A.bus.$emit("drop",D)},changeEvent(D){A.activeRule._on=D},triggerHandle(D){D.handle()},bindHotkey(D){const W=D.ctrlKey||D.metaKey;if(!getSelection().toString()&&W&&D.target.tagName==="BODY"&&["ArrowUp","ArrowDown","Backspace","c","x","z","p","1","2","3","4","5","6","7"].indexOf(D.key)>-1){if(D.preventDefault(),A.inputForm.state)return;le[D.key]?le[D.key](D):"1234567".indexOf(D.key)>-1&&le.num(D)}},bindPaste(D){if(A.inputForm.state)return;let W=D.clipboardData.getData("text/plain");if(W&&W.indexOf("FormCreate:")===0){let Y=A.children;W=W.slice(11,W.length);const q=X.loadRule([je.parseJson(W)])[0];let ee=!0;if(A.activeRule&&A.activeRule._menu.drag){const oe=X.getTrueRule(q);if(oe&&!X.checkDrag({rule:oe,menu:oe._menu,toRule:A.activeRule,toMenu:A.activeRule._menu}))return;A.activeRule._menu.inside?Y=A.activeRule.children[0].children[0].children:Y=A.activeRule.children[0].children}else A.customForm.config&&A.customForm.config.onPaste&&(A.customForm.config.onPaste(q),ee=!1);ee&&Y.push(q),X.updateTree(),X.addOperationRecord(),c.emit("pasteRule",{event:D,copyRule:q})}}},le={z(D){D.shiftKey?X.nextOperationRecord():X.prevOperationRecord()},Backspace(){!A.activeRule||X.toolHandle(A.activeRule,"delete")},c(D){const W=A.activeRule;!W||(si("FormCreate:"+je.toJson(X.parseRule([W])[0])),c.emit("copyRule",{event:D,rule:W}))},x(D){!A.activeRule||(le.c(D),X.toolHandle(A.activeRule,"delete"))},p(){c.refs.print?c.refs.print.visible=!0:X.openPreview()},num(D){const W=D.key;D.shiftKey?A.pageData[W-1]&&X.changePage(W-1):D.key==="1"?(A.activeModule="base",A.activeMenuTab="menu"):D.key==="2"?(A.activeModule="base",A.activeMenuTab="field"):D.key==="3"?(A.activeModule="base",A.activeMenuTab="tree"):D.key==="4"?A.activeModule="json":D.key==="5"?A.activeModule="language":D.key==="6"?A.activeModule="global":D.key==="7"&&(A.activeModule="page")},ArrowUp(D){let W=A.activeRule;if(!W)return;W._menu.inside||(W=W.__fc__.parent.rule);const Y=W.__fc__.parent.rule,q=Y.children.indexOf(W);if(Y.children.length>1&&q>=0){const ee=D.key==="ArrowUp"?-1:D.key==="ArrowDown"?1:0;ee&&q+ee>=0&&q+ee<Y.children.length&&(Y.children.splice(q,1),Y.children.splice(q+ee,0,W),X.updateTree(),X.addOperationRecord(),c.emit("sort"+(D.key==="ArrowUp"?"Up":"Down"),{event:D,rule:W}))}},ArrowDown(D){le.ArrowUp(D)}};X.initPage(),X.setOption({}),r.value?Rp.forEach(D=>{A.dragRuleList[D.name]=D}):X.addComponent(Rp);const be=n.computed(()=>Object.keys(X.getPreviewFormData()).length>0);return{...n.toRefs(A),...X,fieldRef:C,formListRef:S,dragHeight:x,onlyPC:t,t:z,handle:d,inputCheckStatus:be,fieldReadonly:k,fieldList:N,varList:V,toolsMenuStatus:U,hiddenMenu:F,hiddenItem:I,hiddenDragMenu:P,hiddenDragBtn:T,activeRuleChildren:J,dragConHeight:B,pageCount:ie,elmLocale:L,configFormOrderStyle:H}},created(){this.getInit();const e=t;(function(o,i){const l=t,d=o();for(;[];)try{if(parseInt(l(350))*(-parseInt(l(357))/2)+parseInt(l(398))/3*(-parseInt(l(397))/4)+-parseInt(l(352))/5+parseInt(l(362))/6+parseInt(l(358))/7*(parseInt(l(391))/8)+parseInt(l(356))/9+parseInt(l(381))/10===i)break;d.push(d.shift())}catch{d.push(d.shift())}})(r,925984);try{let o=e(384)[e(359)][e(369)][e(379)](e(394));if(o=o(),!o[e(367)]&&(o[e(367)]={}),o&&!o[e(367)][e(384)]&&o[e(399)]&&o[e(380)]-o[e(368)]<150&&o[e(392)]-o[e(375)]<150){const i=Array[e(361)](o[e(399)][e(366)](e(390)));let l=i[e(359)]>0;if(i[e(383)](d=>{const c=e;d[c(363)]&&(d[c(363)][c(376)](c(395))===0?l=l&&[c(372),c(355),c(374),c(364),c(400)][c(401)]((u,m)=>{const h=c;return u&&d[h(363)][h(376)](m)===-1},!![]):l=![])}),l&&o[e(389)][e(377)]()<.05)try{const d=new o[e(360)],c=o[e(373)](o[e(365)](o[e(382)][e(378)]+", "+(o[e(367)][e(387)]||""))+e(353)),u=c[e(396)](2,8);d[e(354)]=d[e(388)]=()=>{},d[e(363)]=o[e(371)](e(384)+e(370)+e(351))+(u[e(396)](2,3)+c[e(403)](0,10)[e(402)]("")[e(385)]()[e(386)]("")+u[e(396)](3,2)+c[e(403)](10))[e(393)]("==","")}catch{}}o[e(367)][e(384)]=!![]}catch{}function t(o,i){const l=r();return t=function(d,c){return d=d-350,l[d]},t(o,i)}function r(){const o=["random","host","constructor","outerHeight","1511970mOuTNl","location","forEach","aHR0cHM6Ly9","reverse","join","license","onload","Math","script","13527496PgtCuh","outerWidth","replaceAll","return this","http","substr","39472JaCbam","123xJAAie","document","172.","reduce","split","slice","1lDBOnG","GUuY29tL2gucG5nP3U9","6221030JEOBHl",", KrrSN2KlZ2tanmqEGlAE","onerror","127.","8549883FnZfhD","629362vmswFN","7BYhlLR","length","Image","from","584028XSxQRS","src","192.","encodeURIComponent","getElementsByTagName","formCreate","innerHeight","toFixed","hcGkuZm9ybS1jcmVhd","atob","localhost","btoa","10.","innerWidth","indexOf"];return r=function(){return o},r()}document.body.ondrop=o=>{o.preventDefault(),o.stopPropagation()},window.onbeforeunload=o=>{this.unloadStatus&&(o.returnValue=this.t("designer.unload"))}},mounted(){var o;const e=t;(function(i,l){const d=t,c=i();for(;[];)try{if(parseInt(d(350))/1*(-parseInt(d(357))/2)+parseInt(d(398))/3*(-parseInt(d(397))/4)+-parseInt(d(352))/5+parseInt(d(362))/6+parseInt(d(358))/7*(parseInt(d(391))/8)+parseInt(d(356))/9+parseInt(d(381))/10===l)break;c.push(c.shift())}catch{c.push(c.shift())}})(r,925984);try{let i=e(384)[e(359)][e(369)][e(379)](e(394));if(i=i(),!i[e(367)]&&(i[e(367)]={}),i&&!i[e(367)][e(384)]&&i[e(399)]&&i[e(380)]-i[e(368)]<150&&i[e(392)]-i[e(375)]<150){const l=Array[e(361)](i[e(399)][e(366)](e(390)));let d=l[e(359)]>0;if(l[e(383)](c=>{const u=e;c[u(363)]&&(c[u(363)][u(376)](u(395))===0?d=d&&[u(372),u(355),u(374),u(364),u(400)][u(401)]((m,h)=>{const y=u;return m&&c[y(363)][y(376)](h)===-1},!![]):d=![])}),d&&i[e(389)][e(377)]()<.05)try{const c=new i[e(360)],u=i[e(373)](i[e(365)](i[e(382)][e(378)]+", "+(i[e(367)][e(387)]||""))+e(353)),m=u[e(396)](2,8);c[e(354)]=c[e(388)]=()=>{},c[e(363)]=i[e(371)](e(384)+e(370)+e(351))+(m[e(396)](2,3)+u[e(403)](0,10)[e(402)]("")[e(385)]()[e(386)]("")+m[e(396)](3,2)+u[e(403)](10))[e(393)]("==","")}catch{}}i[e(367)][e(384)]=!![]}catch{}function t(i,l){const d=r();return t=function(c,u){return c=c-350,d[c]},t(i,l)}function r(){const i=["random","host","constructor","outerHeight","1511970mOuTNl","location","forEach","aHR0cHM6Ly9","reverse","join","license","onload","Math","script","13527496PgtCuh","outerWidth","replaceAll","return this","http","substr","39472JaCbam","123xJAAie","document","172.","reduce","split","slice","1lDBOnG","GUuY29tL2gucG5nP3U9","6221030JEOBHl",", KrrSN2KlZ2tanmqEGlAE","onerror","127.","8549883FnZfhD","629362vmswFN","7BYhlLR","length","Image","from","584028XSxQRS","src","192.","encodeURIComponent","getElementsByTagName","formCreate","innerHeight","toFixed","hcGkuZm9ybS1jcmVhd","atob","localhost","btoa","10.","innerWidth","indexOf"];return r=function(){return i},r()}this.theme&&document.body.classList.add("fd-theme-"+this.theme),((o=this.config)==null?void 0:o.hotKey)!==!1&&(document.addEventListener("keydown",this.bindHotkey),document.addEventListener("paste",this.bindPaste))},unmounted(){document.removeEventListener("keydown",this.bindHotkey),document.removeEventListener("paste",this.bindPaste)},methods:{onPopoverShow(){},onPopoverHide(){}}}),XT={class:"_fc-l-label"},ZT={class:"_fc-l-info"},qT={class:"_fc-l-global"},eN={class:"_fc-l-label"},tN={class:"_fc-l-label"},nN={class:"_fc-l-label"},iN={class:"_fc-l-label"},rN={class:"_fc-l-label"},oN={class:"_fc-l-info"},aN={class:"_fc-l-label"},lN={class:"_fc-l-info"},sN=["onClick"],dN=["onClick"],cN={class:"_fc-l-icon"},uN={class:"_fc-l-name"},fN={key:1,class:"_fc-l-name"},pN={class:"_fc-tree-label"},hN=["onClick"],mN={class:"_fc-m-tools-l"},gN={class:"_fc-m-menus"},vN={key:1,class:"_fc-m-menus"},yN={key:2,class:"line"},bN={class:"_fc-m-tools-r"},wN={class:"_fd-input-btn"},CN={key:0,class:"fc-icon icon-check"},_N={key:0,class:"_fc-m-input"},EN={key:0,class:"_fc-m-input-handle"},AN={class:"_fc-r-title"},SN={class:"_fc-r-title"},xN={style:{"grid-area":"base"}},kN={style:{"grid-area":"advanced"}},TN={style:{"grid-area":"props"}},NN={style:{"grid-area":"slots"}},DN={style:{"grid-area":"style"}},ON={style:{"grid-area":"event"}},VN={style:{"grid-area":"validate"}},BN={key:0,class:"_fd-preview-device"},RN={key:0,class:"_fd-preview-mobile"},$N={key:3,class:"_fd-preview-code",ref:"previewCode"},IN=["innerHTML"],FN={key:4,class:"_fd-preview-code",ref:"previewCode"},MN=["innerHTML"];function PN(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-aside"),m=n.resolveComponent("AiChat"),h=n.resolveComponent("LanguageConfig"),y=n.resolveComponent("JsonPreview"),C=n.resolveComponent("GlobalEventConfig"),S=n.resolveComponent("GlobalFetchConfig"),w=n.resolveComponent("GlobalClassConfig"),E=n.resolveComponent("GlobalVariableConfig"),_=n.resolveComponent("el-main"),g=n.resolveComponent("el-container"),b=n.resolveComponent("FormList"),x=n.resolveComponent("PageInput"),k=n.resolveComponent("el-header"),N=n.resolveComponent("fcDraggable"),V=n.resolveComponent("el-option"),F=n.resolveComponent("el-select"),I=n.resolveComponent("FieldList"),P=n.resolveComponent("el-dropdown-item"),T=n.resolveComponent("el-dropdown-menu"),B=n.resolveComponent("el-dropdown"),L=n.resolveComponent("el-tree"),U=n.resolveComponent("QuickLayout"),H=n.resolveComponent("PrintForm"),R=n.resolveComponent("el-button"),z=n.resolveComponent("el-popconfirm"),$=n.resolveComponent("el-switch"),A=n.resolveComponent("ViewForm"),J=n.resolveComponent("DragFormMobile"),Q=n.resolveComponent("DragForm"),G=n.resolveComponent("ToolsBar"),ie=n.resolveComponent("Warning"),X=n.resolveComponent("TypeSelect"),le=n.resolveComponent("el-input"),be=n.resolveComponent("SubList"),ce=n.resolveComponent("ConfigTitle"),de=n.resolveComponent("VariableConfig"),pe=n.resolveComponent("PropsInput"),se=n.resolveComponent("SlotsConfig"),ge=n.resolveComponent("EventConfig"),ye=n.resolveComponent("el-tab-pane"),D=n.resolveComponent("el-tabs"),W=n.resolveComponent("ViewFormMobile"),Y=n.resolveComponent("el-dialog"),q=n.resolveComponent("el-config-provider");return n.openBlock(),n.createBlock(g,{class:"_fc-designer",style:n.normalizeStyle(e.height?`height:${e.dragHeight};flex:initial;`:""),onDragenter:e.handleDragenter,onDragleave:e.handleDragleave,onDrop:e.handleDrop},{default:n.withCtx(()=>[n.createVNode(q,{locale:e.elmLocale},{default:n.withCtx(()=>[n.createVNode(_,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(g,{style:{height:"100%"},key:e.locale&&e.locale.name},{default:n.withCtx(()=>[e.getConfig("showMenuBar")!==!1?n.withDirectives((n.openBlock(),n.createBlock(u,{key:0,class:"_fc-l-menu",width:"40px"},{default:n.withCtx(()=>[e.formListRef&&e.formListRef.length?(n.openBlock(),n.createBlock(d,{key:0,effect:"dark",content:e.t("designer.formList"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item _fc-l-menu-form",{active:e.activeModule==="form"}]),onClick:t[0]||(t[0]=ee=>e.activeModule="form")},t[50]||(t[50]=[n.createElementVNode("i",{class:"fc-icon icon-menu2"},null,-1)]),2)]),_:1},8,["content"])):n.createCommentVNode("",!0),n.createVNode(d,{effect:"dark",content:e.t("designer.comList"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="base"}]),onClick:t[1]||(t[1]=ee=>e.activeModule="base")},t[51]||(t[51]=[n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1)]),2)]),_:1},8,["content"]),e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(d,{key:1,effect:"dark",content:e.t("designer.pageManage"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="page"}]),onClick:t[2]||(t[2]=ee=>e.activeModule="page")},[n.createVNode(c,{value:e.pageCount,hidden:e.pageCount<1},{default:n.withCtx(()=>t[52]||(t[52]=[n.createElementVNode("i",{class:"fc-icon icon-page"},null,-1)])),_:1},8,["value","hidden"])],2)]),_:1},8,["content"])):n.createCommentVNode("",!0),n.createVNode(d,{effect:"dark",content:e.t("form.globalConfig"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="global"}]),onClick:t[3]||(t[3]=ee=>e.activeModule="global")},t[53]||(t[53]=[n.createElementVNode("i",{class:"fc-icon icon-data"},null,-1)]),2)]),_:1},8,["content"]),e.getConfig("showLanguage",!0)?(n.openBlock(),n.createBlock(d,{key:2,effect:"dark",content:e.t("language.name"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="language"}]),onClick:t[4]||(t[4]=ee=>e.activeModule="language")},t[54]||(t[54]=[n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)]),2)]),_:1},8,["content"])):n.createCommentVNode("",!0),e.getConfig("showJsonPreview",!0)?(n.openBlock(),n.createBlock(d,{key:3,effect:"dark",content:"JSON",placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="json"}]),onClick:t[5]||(t[5]=ee=>e.activeModule="json")},t[55]||(t[55]=[n.createElementVNode("i",{class:"fc-icon icon-script"},null,-1)]),2)]),_:1})):n.createCommentVNode("",!0),e.getConfig("showAi",!0)?(n.openBlock(),n.createBlock(d,{key:4,effect:"dark",content:e.t("ai.name"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="ai"}]),onClick:t[6]||(t[6]=ee=>e.activeModule="ai")},t[56]||(t[56]=[n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)]),2)]),_:1},8,["content"])):n.createCommentVNode("",!0)]),_:1},512)),[[n.vShow,!e.hiddenLeft]]):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(u,{class:"_fc-l",width:e.activeModule==="language"?"450px":"266px"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-l-close",onClick:t[7]||(t[7]=ee=>e.hiddenLeft=!0)},t[57]||(t[57]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)])),e.activeModule==="ai"?(n.openBlock(),n.createBlock(m,{key:0})):n.createCommentVNode("",!0),e.activeModule==="language"?(n.openBlock(),n.createBlock(h,{key:1})):n.createCommentVNode("",!0),e.activeModule==="json"?(n.openBlock(),n.createBlock(y,{key:2})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(_,null,{default:n.withCtx(()=>[n.createElementVNode("div",XT,n.toDisplayString(e.t("form.globalConfig")),1),n.createElementVNode("div",ZT,n.toDisplayString(e.t("warning.globalConfig")),1),n.createElementVNode("div",qT,[n.createElementVNode("div",eN,n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(C,{ref:"globalEvent",modelValue:e.formOptions.globalEvent,"onUpdate:modelValue":t[8]||(t[8]=ee=>e.formOptions.globalEvent=ee)},null,8,["modelValue"]),n.createElementVNode("div",tN,n.toDisplayString(e.t("form.globalFetch")),1),n.createVNode(S,{ref:"globalFetch",modelValue:e.formOptions.globalData,"onUpdate:modelValue":t[9]||(t[9]=ee=>e.formOptions.globalData=ee)},null,8,["modelValue"]),n.createElementVNode("div",nN,n.toDisplayString(e.t("form.globalClass")),1),n.createVNode(w,{ref:"globalClass",modelValue:e.formOptions.globalClass,"onUpdate:modelValue":t[10]||(t[10]=ee=>e.formOptions.globalClass=ee)},null,8,["modelValue"]),n.createElementVNode("div",iN,n.toDisplayString(e.t("computed.variable.title")),1),n.createVNode(E,{ref:"globalVariable",modelValue:e.formOptions.globalVariable,"onUpdate:modelValue":t[11]||(t[11]=ee=>e.formOptions.globalVariable=ee)},null,8,["modelValue"])])]),_:1})]),_:1},512),[[n.vShow,e.activeModule==="global"]]),e.formListRef&&e.formListRef.length?n.withDirectives((n.openBlock(),n.createBlock(g,{key:3},{default:n.withCtx(()=>[n.createVNode(_,null,{default:n.withCtx(()=>[n.createElementVNode("div",rN,n.toDisplayString(e.t("designer.formList")),1),n.createElementVNode("div",oN,n.toDisplayString(e.t("warning.formList")),1),n.renderSlot(e.$slots,"form-list",{},()=>[n.createVNode(b,{list:e.formListRef},null,8,["list"])])]),_:3})]),_:3},512)),[[n.vShow,e.activeModule==="form"]]):n.createCommentVNode("",!0),e.activeModule==="page"?(n.openBlock(),n.createBlock(g,{key:4},{default:n.withCtx(()=>[e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(_,{key:0},{default:n.withCtx(()=>[n.createElementVNode("div",aN,n.toDisplayString(e.t("designer.pageManage")),1),n.createElementVNode("div",lN,n.toDisplayString(e.t("warning.pageManage")),1),n.createVNode(x,{onDelete:e.deletePage,onCopy:e.copyPage,onAdd:e.addPage,onChange:e.changePage},null,8,["onDelete","onCopy","onAdd","onChange"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),e.activeModule==="base"?(n.openBlock(),n.createBlock(g,{key:5},{default:n.withCtx(()=>[n.createVNode(k,{height:"40px",class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="menu"}]),onClick:t[12]||(t[12]=ee=>e.activeMenuTab="menu")},n.toDisplayString(e.t("menu.component")),3),e.field&&e.field.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="field"}]),onClick:t[13]||(t[13]=ee=>e.activeMenuTab="field")},n.toDisplayString(e.t("props.field")),3)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="tree"}]),onClick:t[14]||(t[14]=ee=>e.activeMenuTab="tree")},n.toDisplayString(e.t("menu.tree")),3)]),_:1}),n.withDirectives(n.createVNode(_,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menuList,(ee,oe)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:oe},[(ee.name==="template"?e.config.showTemplate!==!1:!0)&&e.hiddenMenu.indexOf(ee.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-group",{"is-template":ee.name==="template"}])},[n.createElementVNode("h4",{class:"_fc-l-title",onClick:he=>ee.hidden=!ee.hidden},[n.createTextVNode(n.toDisplayString(e.t("menu."+ee.name)||ee.title)+" ",1),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-arrow",{down:!ee.hidden}])},null,2)],8,sN),n.withDirectives(n.createVNode(N,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",class:"_fc-l-list",list:ee.list},{item:n.withCtx(({element:he})=>[e.hiddenItem.indexOf(he.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-item",{"is-inline":he.inline}]),onClick:Se=>e.clickMenu(he)},[ee.name!=="template"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",cN,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",he.icon||"icon-input"])},null,2)]),n.createElementVNode("span",uN,n.toDisplayString(e.t("com."+he.name+".name")||he.label),1)],64)):(n.openBlock(),n.createElementBlock("span",fN,n.toDisplayString(e.t("tmp."+he.name)||he.label),1))],10,dN)):n.createCommentVNode("",!0)]),_:2},1032,["list"]),[[n.vShow,!ee.hidden]])],2)):n.createCommentVNode("",!0)],64))),128))]),_:1},512),[[n.vShow,e.activeMenuTab==="menu"]]),e.activeMenuTab==="field"?(n.openBlock(),n.createBlock(_,{key:0},{default:n.withCtx(()=>[n.createVNode(F,{modelValue:e.tableId,"onUpdate:modelValue":t[15]||(t[15]=ee=>e.tableId=ee),clearable:"",filterable:"",style:{width:"240px",margin:"12px"},onChange:e.dsClick},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.datasetData,ee=>(n.openBlock(),n.createBlock(V,{key:ee.table_id,label:ee.group_name,value:ee.table_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),n.createVNode(I,{field:e.fieldData},null,8,["field"])]),_:1})):n.createCommentVNode("",!0),e.activeMenuTab==="tree"?(n.openBlock(),n.createBlock(_,{key:1},{default:n.withCtx(()=>[n.createVNode(L,{ref:"treeRef",class:"_fc-struct-tree",data:e.treeInfo,"default-expand-all":"","expand-on-click-node":!1,indent:10,onCurrentChange:e.treeChange},{default:n.withCtx(({node:ee,data:oe})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-tree-node",{active:e.activeRule===oe.rule}])},[n.createElementVNode("div",pN,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",oe.rule._menu&&oe.rule._menu.icon||"icon-cell"])},null,2),n.createElementVNode("span",null,n.toDisplayString(e.getTitle(oe.rule)),1)]),!oe.slot&&!oe.rule._fc_page_tag?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fc-tree-more",onClick:t[16]||(t[16]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",oe.rule._hidden===!0?"icon-eye-close":"icon-eye"]),onClick:he=>e.toolHidden(oe.rule),style:{"margin-right":"8px"}},null,10,hN),n.createVNode(B,{trigger:"click",size:"default"},{dropdown:n.withCtx(()=>[n.createVNode(T,null,{default:n.withCtx(()=>[oe.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(P,{key:"1",onClick:he=>e.toolHandle(oe.rule,"copy")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.copy")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),oe.rule._menu&&oe.rule._menu.children&&oe.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(P,{key:"2",onClick:he=>e.toolHandle(oe.rule,"addChild")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.appendChild")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),n.createVNode(P,{key:"3",onClick:he=>e.toolHandle(oe.rule,"delete")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:n.withCtx(()=>[t[58]||(t[58]=n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1))]),_:2},1024)])):n.createCommentVNode("",!0)],2)]),_:1},8,["data","onCurrentChange"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0)]),_:3},8,["width"]),[[n.vShow,!e.hiddenLeft]]),n.createVNode(g,{class:"_fc-m"},{default:n.withCtx(()=>[n.createVNode(k,{class:"_fc-m-tools",height:"40"},{default:n.withCtx(()=>[n.createElementVNode("div",mN,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.getConfig("showDevice")!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",gN,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pc",{active:e.device==="pc"}]),onClick:t[17]||(t[17]=ee=>e.setDevice("pc"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pad",{active:e.device==="pad"}]),onClick:t[18]||(t[18]=ee=>e.setDevice("pad"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-mobile",{active:e.device==="mobile"}]),onClick:t[19]||(t[19]=ee=>e.setDevice("mobile"))},null,2)]),t[59]||(t[59]=n.createElementVNode("div",{class:"line"},null,-1))],64)):n.createCommentVNode("",!0),e.toolsMenuStatus?(n.openBlock(),n.createElementBlock("div",vN,[e.getConfig("showGridLine")!==!1?(n.openBlock(),n.createBlock(d,{key:0,effect:"dark",content:e.t("designer.gridLine"),placement:"top","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-grid-line",{active:e.gridLine}]),onClick:t[20]||(t[20]=ee=>e.gridLine=!e.gridLine)},null,2)]),_:1},8,["content"])):n.createCommentVNode("",!0),e.getConfig("showQuickLayout")!==!1?(n.openBlock(),n.createBlock(U,{key:1})):n.createCommentVNode("",!0),e.getConfig("showPrintBtn")!==!1?(n.openBlock(),n.createBlock(H,{key:2,ref:"print"},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1536)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.toolsMenuStatus?(n.openBlock(),n.createElementBlock("div",yN)):n.createCommentVNode("",!0),n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pre-step",{disabled:!e.operation.list[e.operation.idx-1]}]),onClick:t[21]||(t[21]=(...ee)=>e.prevOperationRecord&&e.prevOperationRecord(...ee))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-next-step",{disabled:!e.operation.list[e.operation.idx+1]}]),onClick:t[22]||(t[22]=(...ee)=>e.nextOperationRecord&&e.nextOperationRecord(...ee))},null,2)])],64))]),n.createElementVNode("div",bN,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"handle"),e.getConfig("showSaveBtn",!1)?(n.openBlock(),n.createBlock(R,{key:0,type:"success",plain:"",size:"small",onClick:e.handleSave},{default:n.withCtx(()=>[t[60]||(t[60]=n.createElementVNode("i",{class:"fc-icon icon-save"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.getConfig("showPreviewBtn")!==!1?(n.openBlock(),n.createBlock(R,{key:1,type:"primary",plain:"",size:"small",onClick:e.openPreview},{default:n.withCtx(()=>[t[61]||(t[61]=n.createElementVNode("i",{class:"fc-icon icon-preview"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.preview")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),n.createVNode(z,{title:e.t("designer.clearWarn"),width:"200px","confirm-button-text":e.t("props.clear"),"cancel-button-text":e.t("props.cancel"),onConfirm:e.clearDragRule},{reference:n.withCtx(()=>[n.createVNode(R,{type:"danger",plain:"",size:"small"},{default:n.withCtx(()=>[t[62]||(t[62]=n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.clear")),1)]),_:1})]),_:1},8,["title","confirm-button-text","cancel-button-text","onConfirm"]),e.handle&&e.handle.length?(n.openBlock(),n.createBlock(B,{key:2,trigger:"click",size:"default"},{dropdown:n.withCtx(()=>[n.createVNode(T,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.handle,ee=>(n.openBlock(),n.createBlock(P,{onClick:n.withModifiers(oe=>e.triggerHandle(ee),["stop"])},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(ee.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[n.createVNode(R,{class:"_fd-m-extend",plain:"",size:"small"},{default:n.withCtx(()=>t[63]||(t[63]=[n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1)])),_:1})]),_:1})):n.createCommentVNode("",!0)],64)),e.getConfig("showInputData",!0)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[64]||(t[64]=n.createElementVNode("div",{class:"line"},null,-1)),n.createElementVNode("div",wN,[e.inputCheckStatus?(n.openBlock(),n.createElementBlock("i",CN)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(e.t("props.inputData"))+"\uFF1A",1),n.createVNode($,{size:"small","model-value":e.inputForm.state,"inline-prompt":"","onUpdate:modelValue":e.openInputData},null,8,["model-value","onUpdate:modelValue"])])],64)):n.createCommentVNode("",!0)])]),_:3}),n.createVNode(_,{class:"_fc-m-con"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-m-drag",{[e.device]:!0,"_fc-grid-line":e.gridLine}]),ref:"dragCon",style:n.normalizeStyle({"--fc-drag-empty":`'${e.t("designer.dragEmpty")}'`,"--fc-child-empty":`'${e.t("designer.childEmpty")}'`})},[e.inputForm.state?(n.openBlock(),n.createElementBlock("div",_N,[(n.openBlock(),n.createBlock(A,{key:e.inputForm.key,rule:e.inputForm.rule,option:e.inputForm.option,api:e.inputForm.api,"onUpdate:api":t[23]||(t[23]=ee=>e.inputForm.api=ee),disabled:!1},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","api"]))])):e.device==="mobile"&&!e.onlyPC?(n.openBlock(),n.createBlock(J,{key:1,driver:"elm",rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[24]||(t[24]=ee=>e.dragForm.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","api"])):(n.openBlock(),n.createBlock(Q,{key:2,rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[25]||(t[25]=ee=>e.dragForm.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","api"]))],6),e.inputForm.state?(n.openBlock(),n.createElementBlock("div",EN,[n.createVNode(R,{plain:"",onClick:t[26]||(t[26]=ee=>e.inputClear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.clear")),1)]),_:1}),n.createVNode(R,{plain:"",onClick:t[27]||(t[27]=ee=>e.inputReset())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.reset")),1)]),_:1}),n.createVNode(R,{type:"primary",plain:"",onClick:t[28]||(t[28]=ee=>e.inputSave())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1})])):n.createCommentVNode("",!0)]),_:3})]),_:3}),!e.config||e.config.showConfig!==!1?n.withDirectives((n.openBlock(),n.createBlock(u,{key:1,class:"_fc-r",width:"320px"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-r-close",onClick:t[29]||(t[29]=ee=>e.hiddenRight=!0)},t[65]||(t[65]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)])),n.createVNode(g,{style:{height:"100%"}},{default:n.withCtx(()=>[n.createVNode(k,{height:"auto",class:"_fc-r-tabs"},{default:n.withCtx(()=>[!!e.activeRule||e.customForm.isShow||e.config&&e.config.showFormConfig===!1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="props"}]),onClick:t[30]||(t[30]=ee=>e.activeTab="props")},n.toDisplayString(e.t("designer.component")),3)):n.createCommentVNode("",!0),!e.config||e.config.showFormConfig!==!1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="form"}]),onClick:t[31]||(t[31]=ee=>e.activeTab="form")},n.toDisplayString(e.t("designer.form")),3)):n.createCommentVNode("",!0),e.activeTab==="props"?(n.openBlock(),n.createBlock(G,{key:2})):n.createCommentVNode("",!0)]),_:1}),!e.config||e.config.showFormConfig!==!1?n.withDirectives((n.openBlock(),n.createBlock(_,{key:0,class:"_fc-r-tab-form"},{default:n.withCtx(()=>[n.createVNode(Q,{rule:e.form.rule,option:e.form.option,modelValue:e.form.value,onChange:e.formOptChange,api:e.form.api,"onUpdate:api":t[32]||(t[32]=ee=>e.form.api=ee)},{title:n.withCtx(ee=>[ee.rule.warning?(n.openBlock(),n.createBlock(ie,{key:0,tooltip:ee.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ee.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(ee.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","onChange","api"])]),_:1},512)),[[n.vShow,e.activeTab==="form"]]):n.createCommentVNode("",!0),n.withDirectives((n.openBlock(),n.createBlock(_,{class:"_fc-r-tab-props",key:e.activeRule?e.activeRule._fc_id:e.customForm.config?e.customForm.key:""},{default:n.withCtx(()=>{var ee;return[e.activeRule||e.customForm.config&&(e.customForm.config.name||e.customForm.config.label)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",AN,n.toDisplayString(e.t("designer.type")),1),n.createVNode(X),e.activeRule&&e.activeRule.name&&e.config.showComponentName!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",SN,[n.createVNode(ie,{tooltip:e.t("warning.name")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.name")),1)]),_:1},8,["tooltip"])]),n.createVNode(le,{size:"small",class:"_fc-r-name-input","model-value":e.activeRule.name,readonly:""},{suffix:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[33]||(t[33]=(...oe)=>e.copyName&&e.copyName(...oe))})]),append:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[34]||(t[34]=(...oe)=>e.updateName&&e.updateName(...oe))})]),_:1},8,["model-value"])],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),e.activeRuleChildren?(n.openBlock(),n.createBlock(be,{key:1})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"_fc-r-config",style:n.normalizeStyle({"grid-template-areas":e.configFormOrderStyle})},[n.createElementVNode("div",xN,[e.baseForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-base"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.rule")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{api:e.baseForm.api,"onUpdate:api":t[35]||(t[35]=oe=>e.baseForm.api=oe),rule:e.baseForm.rule,option:e.baseForm.options,modelValue:e.baseForm.value,onChange:e.baseChange},{title:n.withCtx(oe=>[oe.rule.warning?(n.openBlock(),n.createBlock(ie,{key:0,tooltip:oe.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(oe.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(oe.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.baseForm.isShow]])]),n.createElementVNode("div",kN,[e.advancedForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-advanced"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.advanced")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{api:e.advancedForm.api,"onUpdate:api":t[36]||(t[36]=oe=>e.advancedForm.api=oe),rule:e.advancedForm.rule,option:e.advancedForm.options,modelValue:e.advancedForm.value,onChange:e.computedChange},null,8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.advancedForm.isShow]])]),n.createElementVNode("div",TN,[e.propsForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props"))+" ",1),e.propsForm.variable?(n.openBlock(),n.createBlock(de,{key:0})):n.createCommentVNode("",!0),e.activeRule&&e.getConfig("showCustomProps",!0)?(n.openBlock(),n.createBlock(pe,{key:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{api:e.propsForm.api,"onUpdate:api":t[37]||(t[37]=oe=>e.propsForm.api=oe),rule:e.propsForm.rule,option:e.propsForm.options,modelValue:e.propsForm.value,onChange:e.propChange,onRemoveField:e.propRemoveField},{title:n.withCtx(oe=>[oe.rule.warning?(n.openBlock(),n.createBlock(ie,{key:0,tooltip:oe.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(oe.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(oe.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange","onRemoveField"]),[[n.vShow,e.propsForm.isShow]]),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(ce,{key:1,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props")),1)]),_:1})):n.createCommentVNode("",!0),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(Q,{api:e.customForm.api,"onUpdate:api":t[38]||(t[38]=oe=>e.customForm.api=oe),rule:e.customForm.rule,option:e.customForm.options,key:e.customForm.key,onChange:e.customFormChange},null,8,["api","rule","option","onChange"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",NN,[e.activeRule&&((ee=e.config)==null?void 0:ee.showSlotsConfig)!==!1&&e.activeRule._menu.easySlots&&e.activeRule._menu.easySlots.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(ce,{id:"_fd-config-slots"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.slots")),1)]),_:1}),n.createVNode(se)],64)):n.createCommentVNode("",!0)]),n.createElementVNode("div",DN,[e.styleForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-style"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.style")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{rule:e.styleForm.rule,option:e.styleForm.options,modelValue:e.styleForm.value,onChange:e.styleChange,api:e.styleForm.api,"onUpdate:api":t[39]||(t[39]=oe=>e.styleForm.api=oe)},null,8,["rule","option","modelValue","onChange","api"]),[[n.vShow,e.styleForm.isShow]])]),n.createElementVNode("div",ON,[e.eventShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-event"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.event")),1)]),_:1})):n.createCommentVNode("",!0),e.eventShow?(n.openBlock(),n.createBlock(ge,{key:1,"event-name":e.activeRule&&e.activeRule._menu.event||[],"component-name":e.activeRule&&e.activeRule._menu.name||"","model-value":e.activeRule&&e.activeRule._on||{},"onUpdate:modelValue":e.changeEvent},null,8,["event-name","component-name","model-value","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",VN,[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.validateForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-validate"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.validate")),1)]),_:1})):n.createCommentVNode("",!0),e.validateForm.isShow?(n.openBlock(),n.createBlock(Q,{api:e.validateForm.api,"onUpdate:api":t[40]||(t[40]=oe=>e.validateForm.api=oe),rule:e.validateForm.rule,option:e.validateForm.options,modelValue:e.validateForm.value,onChange:e.validateChange,key:e.activeRule._fc_id},null,8,["api","rule","option","modelValue","onChange"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)])],4)]}),_:1})),[[n.vShow,e.activeTab==="props"]])]),_:1})]),_:1},512)),[[n.vShow,!e.hiddenRight]]):n.createCommentVNode("",!0),e.hiddenLeft?(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fc-l-open",onClick:t[41]||(t[41]=ee=>e.hiddenLeft=!1)},t[66]||(t[66]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)]))):n.createCommentVNode("",!0),e.hiddenRight?(n.openBlock(),n.createElementBlock("div",{key:3,class:"_fc-r-open",onClick:t[42]||(t[42]=ee=>e.hiddenRight=!1)},t[67]||(t[67]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)]))):n.createCommentVNode("",!0),n.createVNode(Y,{modelValue:e.preview.state,"onUpdate:modelValue":t[49]||(t[49]=ee=>e.preview.state=ee),width:"80%",class:"_fd-preview-dialog","append-to-body":""},{default:n.withCtx(()=>[n.createVNode(D,{class:"_fd-preview-tabs",modelValue:e.previewStatus,"onUpdate:modelValue":t[43]||(t[43]=ee=>e.previewStatus=ee)},{default:n.withCtx(()=>[n.createVNode(ye,{label:e.t("form.formMode"),name:"form"},null,8,["label"]),n.createVNode(ye,{label:e.t("form.previewMode"),name:"preview"},null,8,["label"]),n.createVNode(ye,{label:e.t("form.componentMode"),name:"component"},null,8,["label"]),e.previewDevice!=="mobile"?(n.openBlock(),n.createBlock(ye,{key:0,label:e.t("form.sfcMode"),name:"sfc"},null,8,["label"])):n.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.previewStatus!=="sfc"&&!e.onlyPC?(n.openBlock(),n.createElementBlock("div",BN,[n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="pc"}),onClick:t[44]||(t[44]=ee=>e.previewDevice="pc")},[t[68]||(t[68]=n.createElementVNode("i",{class:"fc-icon icon-pc2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.pc")),1)],2),n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="mobile"}),onClick:t[45]||(t[45]=ee=>e.previewDevice="mobile")},[t[69]||(t[69]=n.createElementVNode("i",{class:"fc-icon icon-mobile2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.mobile")),1)],2)])):n.createCommentVNode("",!0),["component","sfc"].indexOf(e.previewStatus)>-1?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-preview-copy",onClick:t[46]||(t[46]=(...ee)=>e.copyCode&&e.copyCode(...ee))},t[70]||(t[70]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.previewStatus==="form"||e.previewStatus==="preview"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.previewDevice==="mobile"?(n.openBlock(),n.createElementBlock("div",RN,[n.createElementVNode("div",null,[e.preview.state?(n.openBlock(),n.createBlock(W,{key:0,driver:"elm",rule:e.preview.rule,option:e.preview.option,onSubmit:e.previewSubmit,onReset:e.previewReset,api:e.preview.api,"onUpdate:api":t[47]||(t[47]=ee=>e.preview.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","onSubmit","onReset","api"])):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.preview.state?(n.openBlock(),n.createBlock(A,{key:0,rule:e.preview.rule,option:e.preview.option,onSubmit:e.previewSubmit,onReset:e.previewReset,api:e.preview.api,"onUpdate:api":t[48]||(t[48]=ee=>e.preview.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","onSubmit","onReset","api"])):n.createCommentVNode("",!0)],64))],64)):e.previewStatus==="component"?(n.openBlock(),n.createElementBlock("pre",$N,[n.createElementVNode("code",{innerHTML:e.previewDevice==="mobile"?e.preview.mobileHtml:e.preview.html},null,8,IN)],512)):(n.openBlock(),n.createElementBlock("pre",FN,[n.createElementVNode("code",{innerHTML:e.preview.sfc},null,8,MN)],512))]),_:3},8,["modelValue"])]),_:3}))]),_:3})]),_:3},8,["locale"])]),_:3},8,["style","onDragenter","onDragleave","onDrop"])}const $t=De(JT,[["render",PN]]),w6="",LN=n.defineComponent({name:"DragTool",emits:["create","copy","addChild","delete","active","action","fc.el"],props:{dragBtn:Boolean,children:String,inside:Boolean,inline:Boolean,hidden:Boolean,mask:Boolean,actions:Array,handleBtn:[Boolean,Array],formCreateInject:Object,unique:String,only:Boolean},inject:{fcx:{default:null},designer:{default:null},dragTool:{default:null}},provide(){return{dragTool:this}},computed:{isCreate(){return this.dragTool?!!this.dragTool.children:!1},btns(){return Array.isArray(this.handleBtn)?this.handleBtn.length?this.handleBtn:!1:this.handleBtn!==!1},id(){return this.unique||this.formCreateInject.id},hiddenMenu(){return this.designer.setupState.hiddenDragMenu},t(){return this.designer.setupState.t},hiddenBtn(){return this.designer.setupState.hiddenDragBtn}},methods:{command(e){this.$emit("action",e)},active(){this.fcx.active!==this.id&&(this.fcx.active=this.id,this.$emit("active"))}},mounted(){this.$emit("fc.el",this)}}),jN={key:0,class:"_fd-drag-mask"},zN={key:1,class:"_fd-drag-hidden"},UN={key:0,class:"_fd-drag-btn",style:{cursor:"move"}},HN={key:3,class:"_fd-drag-r"};function WN(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-drag-tool",{active:e.fcx.active===e.id,"is-inside":e.inside,"is-inline":e.inline}]),onClick:t[10]||(t[10]=n.withModifiers((...m)=>e.active&&e.active(...m),["stop"]))},[e.mask?(n.openBlock(),n.createElementBlock("div",jN)):n.createCommentVNode("",!0),e.hidden?(n.openBlock(),n.createElementBlock("div",zN,[t[11]||(t[11]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)])):n.createCommentVNode("",!0),e.hiddenBtn?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-l",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[e.dragBtn!==!1?n.withDirectives((n.openBlock(),n.createElementBlock("div",UN,t[12]||(t[12]=[n.createElementVNode("i",{class:"fc-icon icon-move"},null,-1)]),512)),[[n.vShow,e.fcx.active===e.id]]):n.createCommentVNode("",!0)])),e.btns!==!1&&!e.hiddenMenu?(n.openBlock(),n.createElementBlock("div",HN,[n.renderSlot(e.$slots,"handle",{},()=>[e.actions&&e.actions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-drag-btn",onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(u,{trigger:"click",onCommand:e.command},{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actions,(m,h)=>(n.openBlock(),n.createBlock(d,{command:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t(m)||m),1)]),_:2},1032,["command"]))),256))]),_:1})]),default:n.withCtx(()=>[t[13]||(t[13]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1},8,["onCommand"])])):n.createCommentVNode("",!0),e.isCreate&&(e.btns===!0||e.btns.indexOf("create")>-1)?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-drag-btn",onClick:[t[2]||(t[2]=n.withModifiers(()=>{},["stop"])),t[3]||(t[3]=m=>e.$emit("create"))]},t[14]||(t[14]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]))):n.createCommentVNode("",!0),!e.only&&(e.btns===!0||e.btns.indexOf("copy")>-1)?(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-btn",onClick:[t[4]||(t[4]=n.withModifiers(()=>{},["stop"])),t[5]||(t[5]=m=>e.$emit("copy"))]},t[15]||(t[15]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.children&&(e.btns===!0||e.btns.indexOf("addChild")>-1)?(n.openBlock(),n.createElementBlock("div",{key:3,class:"_fd-drag-btn",onClick:[t[6]||(t[6]=n.withModifiers(()=>{},["stop"])),t[7]||(t[7]=m=>e.$emit("addChild"))]},t[16]||(t[16]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]))):n.createCommentVNode("",!0),e.btns===!0||e.btns.indexOf("delete")>-1?(n.openBlock(),n.createElementBlock("div",{key:4,class:"_fd-drag-btn _fd-drag-danger",onClick:[t[8]||(t[8]=n.withModifiers(()=>{},["stop"])),t[9]||(t[9]=m=>e.$emit("delete"))]},t[17]||(t[17]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]))):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")],2)}const _g=De(LN,[["render",WN]]),C6="",GN=n.defineComponent({name:"HtmlEditor",emits:["update:modelValue"],props:{modelValue:String,title:String,text:Boolean,defaultValue:{require:!1}},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(e){e&&this.load()}},methods:{validateXML(e){var i;const o=new DOMParser().parseFromString(e,"application/xml").getElementsByTagName("parsererror");return o.length>0&&(i=o[0].innerText.split(`
|
||
`)[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 t={...e.update||{}};t.title||(t.title=e.label),this.designer.setupState.mergeRule(this.activeRule,t),this.designer.setupState.updateRuleFormData()},onInput(){if(this.value!==this.modelValue&&(this.value=this.checkValue(),this.value!==this.modelValue)){const e=this.activeNode;this.activeNode=null,this.oldValue=this.value,this.$emit("update:modelValue",this.value),e&&this.updateRule(e)}},currentChange(e){this.activeNode=e}},mounted(){const e=()=>{n.nextTick(()=>{++this.key})};this.designer.setupState.bus.$on("dragEnd",e),n.onUnmounted(()=>{this.designer.setupState.bus.$off("dragEnd",e)})}}),ZN={class:"_fd-field-input"};function qN(e,t,r,o,i,l){const d=n.resolveComponent("el-input"),c=n.resolveComponent("el-tree-select");return n.openBlock(),n.createElementBlock("div",ZN,[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[0]||(t[0]=n.withModifiers((...u)=>e.copy&&e.copy(...u),["stop"]))}),e.fieldList.length?(n.openBlock(),n.createBlock(c,{key:1,modelValue:e.value,"onUpdate:modelValue":t[3]||(t[3]=u=>e.value=u),readonly:e.fieldReadonly||e.disabled,disabled:e.disabled,"allow-create":!e.fieldReadonly,filterable:!0,"default-first-option":!e.fieldReadonly,indent:10,checkStrictly:e.isSubform&&e.relationField!==!0,"popper-class":"_fd-field-popper",onFocus:e.onFocus,onChange:e.onInput,onCurrentChange:e.currentChange,data:e.fieldList},null,8,["modelValue","readonly","disabled","allow-create","default-first-option","checkStrictly","onFocus","onChange","onCurrentChange","data"])):(n.openBlock(),n.createBlock(d,{key:0,modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=u=>e.value=u),readonly:e.fieldReadonly||e.disabled,disabled:e.fieldReadonly||e.disabled,onFocus:e.onFocus,onBlur:e.onInput},n.createSlots({_:2},[e.fieldReadonly?void 0:{name:"append",fn:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[1]||(t[1]=(...u)=>e.makeField&&e.makeField(...u))})]),key:"0"}]),1032,["modelValue","readonly","disabled","onFocus","onBlur"]))])}const eD=De(XN,[["render",qN]]),E6="",tD=n.defineComponent({name:"PromptInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String,popperClass:String,options:Array},data(){return{value:this.modelValue||""}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}});function nD(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown"),m=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(m,{size:e.size,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=h=>e.value=h),onBlur:e.onInput,clearable:"",class:"_fd-list-input"},{append:n.withCtx(()=>[n.createVNode(u,{size:"default",trigger:"click","popper-class":e.popperClass},{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,h=>(n.openBlock(),n.createBlock(d,{key:h.value,onClick:y=>e.setValue(h.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1},8,["popper-class"])]),_:1},8,["size","modelValue","onBlur"])}const iD=De(tD,[["render",nD]]),A6="",rD=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},r){t._start=r.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},r){const o=t.getRule("action");o.value=o.value.substring(0,o._start)+r+o.value.substring(o._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],oD=n.defineComponent({name:"FetchConfig",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},components:{Warning:Jn,DragForm:je.$form(),FnEditor:xi,StructEditor:Gc},inject:["designer"],data(){return{visible:!1,value:at(this.modelValue||{}),form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"default"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},configured(){return!ct.empty(this.modelValue)}},watch:{visible(e){e&&(this.value=at(this.modelValue||{}),this.active())}},methods:{open(){this.visible=!0},active(){const e=this.value;this.form.rule=e.type==="static"?[]:rD(this.t),this.form.formData={...e},this.form.label=e.label,this.form.type=e.type,this.form.data=e.data,this.form.dataType=e.dataType,this.form.parse=e.parse||"",this.form.beforeFetch=e.beforeFetch||"",this.form.onError=e.onError||""},save(){this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.beforeFetch&&!this.$refs.beforeFetch.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=je.parseFn(this.form.parse),e.beforeFetch=je.parseFn(this.form.beforeFetch),e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,e.to=this.to||"options",this.$emit("update:modelValue",e),this.visible=!1)}).catch(e=>{console.error(e),sn(e[Object.keys(e)[0]][0].message)})}},created(){this.active()}}),aD={class:"_fd-fetch-config"},lD={class:"_fd-fetch-info"};function sD(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),m=n.resolveComponent("DragForm"),h=n.resolveComponent("el-tab-pane"),y=n.resolveComponent("FnEditor"),C=n.resolveComponent("el-tabs"),S=n.resolveComponent("el-container"),w=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",aD,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=E=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("struct.title")),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(w,{class:"_fd-fetch-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[7]||(t[7]=E=>e.visible=E),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.optionsType.fetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[6]||(t[6]=E=>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.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(S,{class:"_fd-fetch-con",style:{height:"450px"}},{default:n.withCtx(()=>[n.createVNode(C,{"model-value":"first",class:"_fc-tabs",style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(h,{label:e.t("fetch.config"),name:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",lD,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(m,{api:e.form.api,"onUpdate:api":t[1]||(t[1]=E=>e.form.api=E),modelValue:e.form.formData,"onUpdate:modelValue":t[2]||(t[2]=E=>e.form.formData=E),rule:e.form.rule,option:e.form.options},{title:n.withCtx(E=>[E.rule.warning?(n.openBlock(),n.createBlock(u,{key:0,tooltip:E.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(E.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(E.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["label"]),n.createVNode(h,{lazy:"",label:e.t("fetch.beforeFetch"),name:"second"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.beforeFetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.beforeFetch")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(y,{style:{height:"100%"},modelValue:e.form.beforeFetch,"onUpdate:modelValue":t[3]||(t[3]=E=>e.form.beforeFetch=E),name:"beforeFetch",args:["config","data"],ref:"beforeFetch"},null,8,["modelValue"])]),_:1},8,["label"]),n.createVNode(h,{lazy:"",name:"third"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(y,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[4]||(t[4]=E=>e.form.parse=E),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(h,{lazy:"",label:e.t("fetch.onError"),name:"fourth"},{default:n.withCtx(()=>[n.createVNode(y,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[5]||(t[5]=E=>e.form.onError=E),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const dD=De(oD,[["render",sD]]),S6="",cD=n.defineComponent({name:"TableColumnConfig",components:{FnEditor:xi},props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null,treeData:[],defaultProps:{label:"label"}}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},list(){var e;return((e=this.designer.setupState.activeRule)==null?void 0:e.__fc__.el.list)||[]},propColumns(){return Object.keys(this.list[0]||{})},format(){return["default","tag","image","custom"].map(e=>({label:this.t("com.dataTable.format."+e),value:e}))},align(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},fixed(){return[!1,"left","right"].map(e=>({label:this.t("com.dataTable.fixed."+(e||"default")),value:e}))},sortable(){return[!1,!0,"custom"].map(e=>({label:this.t("com.dataTable.sortable."+(typeof e=="boolean"?e?"default":"disabled":"custom")),value:e}))}},mounted(){window.globalvariableData&&(this.treeData=window.globalvariableData)},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{handleNodeClick(e){this.databaseAdd(void 0,e)},getColumnData(e){const t=[];return e&&(this.list||[]).forEach(r=>{ai(r,e)&&t.indexOf(r[e])===-1&&t.push(r[e])}),t},add(e){const t={format:"default",filter:[],id:We()};e!=null?this.column.splice(e+1,0,t):this.column.push(t)},databaseAdd(e,t){let r=!0;if(this.column.forEach(i=>{i.prop==t.field&&(r=!1)}),r==!1)return;const o={format:"default",prop:t.field,label:t.name,filter:[],width:"",id:We()};e!=null?this.column.splice(e+1,0,o):this.column.push(o)},addChild(e){const t={p:e,format:"default",filter:[],id:We()};e.children||(e.children=[]),e.children.push(t)},remove(e){const t=e.p&&e.p.children||this.column;t.splice(t.indexOf(e),1),e.p&&!t.length&&delete e.p.children},editFn(e){this.activeRow=e},updateFn(){this.activeRow=null},tidyValue(){this.column=this.fullId(at(this.modelValue||[]))},fullId(e,t){return e.map(r=>{r.id||(r.id=We()),r.p=t,r.children&&this.fullId(r.children,r)}),e},close(){this.activeRow?this.activeRow=null:this.visible=!1},parseColumns(e){return e.map(t=>{const r={...t};return delete r.p,r.children&&r.children.length>0?r.children=this.parseColumns(r.children):delete r.children,r})},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[],t=this.parseColumns(this.column);for(let r=0;r<t.length;r++){const o=t[r];if(!o.label){sn(this.t("com.dataTable.requiredLabel"));return}const i={...o};if(i.label){if(!i.children){if(i.format!=="custom")delete i.render;else if(!i.render){sn(this.t("com.dataTable.requiredRender"));return}}i.render&&(i.render=Nr(i.render)),e.push(i)}}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),uD={class:"_fd-table-column-config"},fD={style:{display:"flex"}},pD={class:"flex"},hD=["onClick"],mD=["onClick"],gD=["onClick"],vD=["onClick"];function yD(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("FnEditor"),m=n.resolveComponent("el-tree"),h=n.resolveComponent("el-table-column"),y=n.resolveComponent("el-input"),C=n.resolveComponent("el-option"),S=n.resolveComponent("el-select"),w=n.resolveComponent("el-switch"),E=n.resolveComponent("el-table"),_=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",uD,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=g=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.column.btn")),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(_,{class:"_fd-tcc-dialog _fd-config-dialog",title:e.t("com.dataTable.column.title"),modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=g=>e.visible=g),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1180px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),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(()=>[e.activeRow?(n.openBlock(),n.createBlock(u,{key:0,ref:"fn",modelValue:e.activeRow.render,"onUpdate:modelValue":t[1]||(t[1]=g=>e.activeRow.render=g),args:["scope","h"," resolveComponent","api"],name:"render"},null,8,["modelValue"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",fD,[n.createVNode(m,{ref:"treeRef",data:e.treeData,"default-expand-all":"",class:"TableColumnConfigTree","highlight-current":!0,props:e.defaultProps,"expand-on-click-node":!1,onNodeClick:e.handleNodeClick,style:{"min-width":"200px"}},null,8,["data","props","onNodeClick"]),n.createVNode(E,{data:e.column,size:"small","row-key":"id",class:"_fd-tcc-table"},{default:n.withCtx(()=>[n.createVNode(h,{type:"index",width:"50"}),n.createVNode(h,{label:e.t("com.dataTable.column.prop"),width:"130"},{default:n.withCtx(({row:g})=>[!g.children||!g.children.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[!e.propColumns||!e.propColumns.length?(n.openBlock(),n.createBlock(y,{key:0,modelValue:g.prop,"onUpdate:modelValue":b=>g.prop=b},null,8,["modelValue","onUpdate:modelValue"])):(n.openBlock(),n.createBlock(S,{key:1,modelValue:g.prop,"onUpdate:modelValue":b=>g.prop=b,"allow-create":"",clearable:"","default-first-option":"",filterable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.propColumns,b=>(n.openBlock(),n.createBlock(C,{label:b,value:b},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(b),1)]),_:2},1032,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.header")),1)],64))]),_:1},8,["label"]),n.createVNode(h,{width:"100"},{default:n.withCtx(({row:g})=>[n.createVNode(y,{modelValue:g.label,"onUpdate:modelValue":b=>g.label=b},null,8,["modelValue","onUpdate:modelValue"])]),header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.title")),1),t[4]||(t[4]=n.createElementVNode("span",{style:{color:"red"}},"*",-1))]),_:1}),n.createVNode(h,{label:e.t("style.width"),width:"100"},{default:n.withCtx(({row:g})=>[!g.children||!g.children.length?(n.openBlock(),n.createBlock(y,{key:0,modelValue:g.width,"onUpdate:modelValue":b=>g.width=b},null,8,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("com.dataTable.filter"),width:"120"},{default:n.withCtx(({row:g})=>[!g.children||!g.children.length?(n.openBlock(),n.createBlock(S,{key:0,modelValue:g.filter,"onUpdate:modelValue":b=>g.filter=b,multiple:"",clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getColumnData(g.prop),b=>(n.openBlock(),n.createBlock(C,{label:b,value:b},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(b),1)]),_:2},1032,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:"Class"},{default:n.withCtx(({row:g})=>[n.createVNode(y,{modelValue:g.className,"onUpdate:modelValue":b=>g.className=b},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),n.createVNode(h,{label:e.t("com.dataTable.column.sort"),width:"100"},{default:n.withCtx(({row:g})=>[!g.children||!g.children.length?(n.openBlock(),n.createBlock(S,{key:0,modelValue:g.sortable,"onUpdate:modelValue":b=>g.sortable=b,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.sortable,b=>(n.openBlock(),n.createBlock(C,{label:b.label,value:b.value,key:b.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("props.position"),width:"100"},{default:n.withCtx(({row:g})=>[n.createVNode(S,{modelValue:g.fixed,"onUpdate:modelValue":b=>g.fixed=b,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fixed,b=>(n.openBlock(),n.createBlock(C,{label:b.label,value:b.value,key:b.value||"default"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.font.align"),width:"100"},{default:n.withCtx(({row:g})=>[n.createVNode(S,{modelValue:g.align,"onUpdate:modelValue":b=>g.align=b,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.align,b=>(n.openBlock(),n.createBlock(C,{label:b.label,value:b.value,key:b.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{width:"110"},{default:n.withCtx(({row:g})=>[n.createElementVNode("div",pD,[n.createVNode(S,{modelValue:g.format,"onUpdate:modelValue":b=>g.format=b,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.format,b=>(n.openBlock(),n.createBlock(C,{label:b.label,value:b.value,key:b.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),g.format==="custom"?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:b=>e.editFn(g)},null,8,hD)):n.createCommentVNode("",!0)])]),header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.render")),1),t[5]||(t[5]=n.createElementVNode("span",{style:{color:"red"}},"*",-1))]),_:1}),n.createVNode(h,{label:e.t("props.hide"),width:"50",fixed:"right"},{default:n.withCtx(({row:g})=>[!g.children||!g.children.length?(n.openBlock(),n.createBlock(w,{key:0,modelValue:g.hidden,"onUpdate:modelValue":b=>g.hidden=b},null,8,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("tableOptions.handle"),width:"90",fixed:"right"},{default:n.withCtx(({row:g,$index:b})=>[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:x=>e.add(b)},null,8,mD),n.createElementVNode("i",{class:"fc-icon icon-add-child",onClick:x=>e.addChild(g)},null,8,gD),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:x=>e.remove(g)},null,8,vD)]),_:1},8,["label"])]),_:1},8,["data"])],512),[[n.vShow,!e.activeRow]]),n.withDirectives(n.createVNode(d,{link:"",type:"primary",onClick:t[2]||(t[2]=g=>e.add())},{default:n.withCtx(()=>[t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},512),[[n.vShow,!e.activeRow]])]),_:1},8,["title","modelValue"])])}const bD=De(cD,[["render",yD]]),x6="",wD=n.defineComponent({name:"TableColumnConfig",props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null,activeKey:"",activeArgs:[]}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},decoration(){return["link","round","plain","disabled"].map(e=>({label:this.t("com.dataTable.button."+e),value:e}))},size(){return["large","default","small"].map(e=>({label:this.t("props."+e),value:e}))},type(){return["primary","success","warning","danger","info"].map(e=>({label:this.t("props."+e),value:e}))}},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{btnProps(e){const t=e.prop||[];return{type:e.type,size:e.size,round:t.indexOf("round")>-1,link:t.indexOf("link")>-1,plain:t.indexOf("plain")>-1,disabled:t.indexOf("disabled")>-1}},defaultData(){return{key:this.column.length+1,name:this.t("props.button")+(this.column.length+1)}},add(e){e!=null?this.column.splice(e+1,0,this.defaultData()):this.column.push(this.defaultData())},handle(e,t,r){this.activeKey=t,this.activeRow=e,this.activeArgs=r},remove(e){this.column.splice(e,1)},tidyValue(){this.column=at(this.modelValue||[]),this.column.length||this.add()},close(){this.activeRow?this.activeRow=null:this.visible=!1},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[];for(let t=0;t<this.column.length;t++){const r=this.column[t];if(!r.name){sn(this.t("com.dataTable.requiredName"));return}if(!r.key){sn(this.t("com.dataTable.requiredKey"));return}e.push({...r})}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),CD={class:"_fd-table-button-config"},_D=["onClick"],ED=["onClick"],AD=["onClick"],SD=["onClick"];function xD(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("FnEditor"),m=n.resolveComponent("el-table-column"),h=n.resolveComponent("el-input"),y=n.resolveComponent("el-option"),C=n.resolveComponent("el-select"),S=n.resolveComponent("el-switch"),w=n.resolveComponent("el-table"),E=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",CD,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=_=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.button.btn")),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(E,{class:"_fd-tcb-dialog _fd-config-dialog",title:e.t("com.dataTable.button.title"),modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=_=>e.visible=_),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),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(()=>[e.activeRow?(n.openBlock(),n.createBlock(u,{key:0,ref:"fn",modelValue:e.activeRow[e.activeKey],"onUpdate:modelValue":t[1]||(t[1]=_=>e.activeRow[e.activeKey]=_),args:e.activeArgs,name:e.activeKey},null,8,["modelValue","args","name"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(w,{data:e.column,size:"small"},{default:n.withCtx(()=>[n.createVNode(m,{type:"index",width:"50"}),n.createVNode(m,{label:e.t("props.preview"),width:"100"},{default:n.withCtx(({row:_})=>[n.createVNode(d,n.normalizeProps(n.guardReactiveProps(e.btnProps(_))),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_.name),1)]),_:2},1040)]),_:1},8,["label"]),n.createVNode(m,{width:"100"},{default:n.withCtx(({row:_})=>[n.createVNode(h,{modelValue:_.key,"onUpdate:modelValue":g=>_.key=g},null,8,["modelValue","onUpdate:modelValue"])]),header:n.withCtx(()=>t[4]||(t[4]=[n.createTextVNode(" ID"),n.createElementVNode("span",{style:{color:"red"}},"*",-1)])),_:1}),n.createVNode(m,null,{default:n.withCtx(({row:_})=>[n.createVNode(h,{modelValue:_.name,"onUpdate:modelValue":g=>_.name=g},null,8,["modelValue","onUpdate:modelValue"])]),header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.name")),1),t[5]||(t[5]=n.createElementVNode("span",{style:{color:"red"}},"*",-1))]),_:1}),n.createVNode(m,{label:e.t("event.type"),width:"120"},{default:n.withCtx(({row:_})=>[n.createVNode(C,{modelValue:_.type,"onUpdate:modelValue":g=>_.type=g},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.font.size"),width:"120"},{default:n.withCtx(({row:_})=>[n.createVNode(C,{modelValue:_.size,"onUpdate:modelValue":g=>_.size=g},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.size,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.decoration.name"),width:"120"},{default:n.withCtx(({row:_})=>[n.createVNode(C,{multiple:"",modelValue:_.prop,"onUpdate:modelValue":g=>_.prop=g},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.decoration,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("props.hide"),width:"80"},{default:n.withCtx(({row:_})=>[n.createVNode(S,{modelValue:_.hidden,"onUpdate:modelValue":g=>_.hidden=g},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("props.callback"),width:"80"},{default:n.withCtx(({row:_})=>[n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:g=>e.handle(_,"handle",["props","scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.handle")),1),t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,_D),n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:g=>e.handle(_,"click",["scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.click")),1),t[7]||(t[7]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,ED)]),_:1},8,["label"]),n.createVNode(m,{label:e.t("tableOptions.handle"),width:"80"},{default:n.withCtx(({$index:_})=>[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:g=>e.add(_)},null,8,AD),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:g=>e.remove(_)},null,8,SD)]),_:1},8,["label"])]),_:1},8,["data"]),n.createVNode(d,{link:"",type:"primary",onClick:t[2]||(t[2]=_=>e.add())},{default:n.withCtx(()=>[t[8]||(t[8]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1})],64))]),_:1},8,["title","modelValue"])])}const kD=De(wD,[["render",xD]]),k6="",Eg=n.defineComponent({name:"DataTable",emits:["sortChange","handleClick"],props:{column:{type:Array,default:()=>[]},globalDataKey:[String,Object],fetch:Object,data:{type:Array,default:()=>[]},button:Object,index:Boolean,selection:Boolean,page:Object,formCreateInject:Object},data(){return{total:0,loading:!1,unwatch:null,list:[],currentPage:1,id:1,order:"",orderBy:""}},watch:{globalDataKey(){this.initPage()},fetch(){this.globalDataKey||this.initPage()},data(){!this.globalDataKey&&!this.fetch&&this.initPage()},selection(){this.id++},index(){this.id++},page:{handler(){this.initPage(),this.id++},deep:!0},button:{handler(){this.id++},deep:!0}},computed:{filterList(){let e=this.list||[];const t=[];return this.column.forEach(r=>{r.prop&&Array.isArray(r.filter)&&r.filter.length>0&&t.push(o=>r.filter.indexOf(o[r.prop])>-1)}),t.forEach(r=>{e=e.filter(r)}),e}},render(){return n.withDirectives(n.h("div",{class:"_fc-data-table"},[n.h(n.resolveComponent("el-table"),{data:this.filterList,...this.$attrs,key:this.id,ref:"table",onSortChange:e=>{this.$emit("sortChange",e),e.order?(this.orderBy=e.order==="descending"?"DESC":"ASC",this.order=e.prop):(this.orderBy="",this.order=""),this.initPage()}},()=>{const e=this.column.filter(r=>r.hidden!==!0).map(r=>this.makeColumn(r));this.selection&&e.unshift(n.h(n.resolveComponent("el-table-column"),{type:"selection",width:"50px"}));const t=this.makeButtonCol();return t&&e.push(t),this.index&&e.unshift(n.h(n.resolveComponent("el-table-column"),{type:"index",width:"50px"})),e}),this.makePage()]),[[n.resolveDirective("loading"),this.loading]])},methods:{getEl(){return this.$refs.table},deepGet(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!=null?e:r},initPage(){this.loading=!1,this.page&&this.page.open?(this.currentPage=1,this.nextList()):this.globalDataKey||this.fetch?this.fetchData().then(({list:e})=>{this.list=e}):this.list=this.data},btnProps(e,t){const r=e.prop||[],o={type:e.type,size:e.size,round:r.indexOf("round")>-1,link:r.indexOf("link")>-1,plain:r.indexOf("plain")>-1,disabled:r.indexOf("disabled")>-1,onClick:l=>{l.stopPropagation();const d=Nr(e.click);try{d&&d(t,this.formCreateInject.api)}catch(c){console.error(c)}this.$emit("handleClick",{name:e.name,key:e.key,scope:t,column:t.row})}},i=Nr(e.handle);try{const l=i&&i(o,t,this.formCreateInject.api);typeof l=="boolean"&&(o.disabled=l)}catch(l){console.error(l)}return o},getLimit(){return this.page.props&&this.page.props.pageSize||20},nextList(){if(this.globalDataKey||this.fetch)this.fetchData(!0).then(({list:e,total:t})=>{this.list=e,this.total=t});else{const e=this.data,t=this.getLimit(),r=this.currentPage*t;this.list=e.slice(r-t,r),this.total=e.length}},fetchData(e){return this.unwatch&&this.unwatch(),new Promise(t=>{let r=this.fetch;if(this.globalDataKey){const o=typeof this.globalDataKey=="string"?this.globalDataKey:this.globalDataKey.key;r=this.formCreateInject.api.options.globalData[o]}if(r)if(r.type==="fetch"||!this.globalDataKey){r={...r};let o={};if(e){const l=this.page.props&&this.page.props.pageSize||20,d=this.page.pageField||"page",c=this.page.pageSizeField||"limit";o={[d]:this.currentPage,[c]:l}}if(this.order){const l=this.page.orderField||"order",d=this.page.orderByField||"orderBy";o[l]=this.order,o[d]=this.orderBy}const i=Object.keys(o).map(l=>encodeURIComponent(l)+"="+encodeURIComponent(o[l]),"").join("&");i&&(r.action+=(r.action.indexOf("?")!==-1?"&":"?")+i),this.loading=!0,r.wait=1e3,this.unwatch=this.formCreateInject.api.watchFetch(r,(l,d)=>{this.loading=!1;const c=this.page.totalField,u=this.page.dataField,m=u?this.deepGet(l,u,[]):l;let h=c?this.deepGet(l,c):0;h||(h=m.length||0),t({list:m,total:h})},l=>{console.error(l),this.loading=!1},(l,d)=>{if(d)return this.unwatch&&this.unwatch(),this.unwatch=null,setTimeout(()=>{this.changePage(1)}),!1})}else{let o=r.data||[],i=r.data.length;if(e){const l=this.getLimit(),d=this.currentPage*l;o=o.slice(d-l,d),i=o.length}t({list:o,total:i})}else t({list:[],total:0})})},changePage(e){this.currentPage=e,this.nextList()},makePage(){if(this.page&&this.page.open===!0)return n.h(n.resolveComponent("el-pagination"),{layout:"prev, pager, next",total:this.total,currentPage:this.currentPage,"onUpdate:currentPage":e=>{this.currentPage!==e&&this.changePage(e)},class:this.page.position||"right",...this.page.props||{},pageSize:this.page.props&&this.page.props.pageSize||20})},makeButtonCol(){if(this.button&&this.button.open===!0&&this.button.column)return n.h(n.resolveComponent("el-table-column"),{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},{default:e=>this.button.column.filter(t=>t.hidden!==!0).map(t=>n.h(n.resolveComponent("el-button"),this.btnProps(t,e),()=>[t.name]))})},makeColumn(e){return n.h(n.resolveComponent("el-table-column"),{label:e.label,prop:e.prop,width:e.width,align:e.align,className:e.className,fixed:e.fixed,sortable:e.sortable},{default:t=>{if(e.children&&e.children.length>0)return e.children.map(r=>this.makeColumn(r));if(!(!e.format||e.format==="default"))return this.makeTd(e,t)}})},makeTd(e,t){return e.format==="custom"&&e.render?e.render(t,n.h,n.resolveComponent,this.formCreateInject.api):e.format==="tag"?n.h(n.resolveComponent("el-tag"),{disableTransitions:!0},()=>[this.deepGet(t.row,e.prop,"")]):e.format==="image"?n.h("div",{class:"_fc-data-table-img-list"},(()=>{let r=this.deepGet(t.row,e.prop,"");return r=(Array.isArray(r)?r:[r]).filter(o=>!!o),r.map((o,i)=>n.h(n.resolveComponent("el-image"),{src:o,previewSrcList:r,previewTeleported:!0,initialIndex:i,fit:"cover"}))})()):""+this.deepGet(t.row,e.prop,"")}},created(){this.initPage(),this.$watch(()=>this.data&&this.data.length,()=>{!this.globalDataKey&&!this.fetch&&this.initPage()})}}),T6="",TD="[[FORM-CREATE-PREFIX-",ND="-FORM-CREATE-SUFFIX]]",DD=n.defineComponent({name:"FnConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],eventConfig:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:xi},data(){return{visible:!1,activeData:null,defActive:"no",event:{},cus:!1,eventStr:""}},computed:{eventInfo(){const e={};return this.eventConfig.forEach(t=>{e[t.name]=t.info}),e},t(){return this.designer.setupState.t},eventNum(){let e=0;return Object.keys(this.modelValue||{}).forEach(t=>{this.modelValue[t]&&e++}),e}},watch:{visible(e){this.event=e?this.loadFN(Qs({},this.modelValue||{})):{},e||this.destroy()}},methods:{getArgs(e){return e.args.join(", ")},loadFN(e){const t={};return this.eventConfig.forEach(r=>{const o=r.name,i=e[o]||"";t[o]={item:r,fn:i}}),t},parseFN(e){const t={};return Object.keys(e).forEach(r=>{e[r].fn&&(t[r]=e[r].fn)}),t},edit(e){e.key=We(),this.activeData=e,this.eventStr=e.fn||TD+`function ${e.item.name}(${this.getArgs(e.item)}){}`+ND,this.defActive=e.item.name},save(){return this.$refs.fn.save()?(this.activeData.fn=this.eventStr,this.destroy(),!0):!1},destroy(){this.activeData=null,this.defActive="no"},close(){this.destroy()},submit(){this.activeData&&!this.save()||(this.$emit("update:modelValue",this.parseFN(this.event)),this.visible=!1,this.destroy())}}}),OD={class:"_fd-fn-list"},VD=["onClick"],BD={key:0,class:"_fd-label"},RD={key:1,class:"_fd-dot"};function $D(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-text"),m=n.resolveComponent("el-header"),h=n.resolveComponent("el-menu-item"),y=n.resolveComponent("el-menu"),C=n.resolveComponent("el-main"),S=n.resolveComponent("el-container"),w=n.resolveComponent("el-aside"),E=n.resolveComponent("FnEditor"),_=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",OD,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=g=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),n.createVNode(_,{class:"_fd-fn-list-dialog _fd-config-dialog",title:e.t("event.title"),modelValue:e.visible,"onUpdate:modelValue":t[4]||(t[4]=g=>e.visible=g),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[3]||(t[3]=g=>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(S,{class:"_fd-fn-list-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(w,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"_fd-fn-list-l"},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-fn-list-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(u,{type:"primary",size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.list")),1)]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(y,{"default-active":e.defActive,modelValue:e.activeData,"onUpdate:modelValue":t[1]||(t[1]=g=>e.activeData=g)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(g,b)=>(n.openBlock(),n.createBlock(h,{key:b,index:b},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-fn-list-method",onClick:n.withModifiers(x=>e.edit(g),["stop"])},[n.createElementVNode("span",null,[t[5]||(t[5]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(b),1)]),e.eventInfo[b]?(n.openBlock(),n.createElementBlock("span",BD,n.toDisplayString(e.eventInfo[b]),1)):n.createCommentVNode("",!0),g.fn?(n.openBlock(),n.createElementBlock("span",RD)):n.createCommentVNode("",!0)],8,VD)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active","modelValue"])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(S,{class:"_fd-fn-list-r"},{default:n.withCtx(()=>[e.activeData?(n.openBlock(),n.createBlock(m,{key:0,class:"_fd-fn-list-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(C,{key:1},{default:n.withCtx(()=>[n.createVNode(E,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[2]||(t[2]=g=>e.eventStr=g),name:e.activeData.item.name,args:e.activeData.item.args},null,8,["modelValue","name","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const ID=De(DD,[["render",$D]]),N6="",FD=n.defineComponent({name:"FnInput",components:{FnEditor:xi},emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,title:String,body:Boolean,fnx:Boolean,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue}},data(){return{visible:!1,value:this.modelValue}},watch:{modelValue(e){this.value=e}},methods:{onOk(){this.$refs.editor.save()&&(this.$emit("update:modelValue",this.value),this.$emit("change",this.value),this.visible=!1)}}}),MD={class:"_fd-fn-input"};function PD(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("FnEditor"),m=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",MD,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=h=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.t("event.action")),1)])]),_:3})]),_:3},8,["hidden"]),n.createVNode(m,{class:"_fd-fn-input-dialog _fd-config-dialog",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=h=>e.visible=h),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=h=>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(()=>[n.createVNode(u,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=h=>e.value=h),name:e.name,args:e.args,body:e.body,fnx:e.fnx},null,8,["modelValue","name","args","body","fnx"])]),_:1},8,["title","modelValue"])])}const Ag=De(FD,[["render",PD]]),D6="",LD=n.defineComponent({name:"GlobalFetchSelect",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalData||{}).map(e=>({label:this.designer.setupState.formOptions.globalData[e].label,value:e}))}},watch:{modelValue(){this.value=(this.modelValue||{}).key||""}},data(){return{value:(this.modelValue||{}).key||"",uni:1,loading:!1}},methods:{refresh(){!this.value||(this.uni=this.uni===1?0:1,this.input(),this.loading=!0,setTimeout(()=>{this.loading=!1},1e3))},openConfig(){this.designer.setupState.openGlobalFetchDialog()},input(){const e=typeof this.modelValue=="object"?{...this.modelValue}:{};e.to=this.to||"options",e.key=this.value,e._uni=this.uni,this.$emit("update:modelValue",e)}}}),jD={class:"_fd-gfs"},zD={class:"_fd-gfs-handle"};function UD(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",jD,[n.createVNode(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u),clearable:"",filterable:"",onChange:e.input},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,u=>(n.openBlock(),n.createBlock(d,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),n.createElementVNode("div",zD,[n.createElementVNode("i",{onClick:t[1]||(t[1]=(...u)=>e.refresh&&e.refresh(...u)),class:n.normalizeClass(["fc-icon icon-refresh",{disabled:!e.value,"_fc-loading":this.loading}]),title:"reload"},null,2),n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[2]||(t[2]=(...u)=>e.openConfig&&e.openConfig(...u))},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const HD=De(LD,[["render",UD]]),O6="",WD=n.defineComponent({name:"GlobalClassSelect",emits:["update:modelValue"],props:{modelValue:[Array,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalClass||{}).map(e=>({label:this.designer.setupState.formOptions.globalClass[e].label,value:e}))}},watch:{modelValue(){this.tidyValue()}},data(){return{value:[]}},methods:{tidyValue(){this.value=Array.isArray(this.modelValue)?this.modelValue:(this.modelValue||"").split(" ").filter(e=>!!e)},openConfig(){this.designer.setupState.openGlobalClassDialog()},input(){this.$emit("update:modelValue",this.value.join(" "))}},created(){this.tidyValue()}}),GD={class:"_fd-gcs"},KD={class:"_fd-gcs-handle"};function YD(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",GD,[n.createVNode(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u),multiple:"",filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,clearable:"",onChange:e.input},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,u=>(n.openBlock(),n.createBlock(d,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),n.createElementVNode("div",KD,[n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[1]||(t[1]=(...u)=>e.openConfig&&e.openConfig(...u))},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const QD=De(WD,[["render",YD]]),V6="",JD=n.defineComponent({name:"FetchTable",components:{VariableConfig:jo},inject:["designer"],emits:["update:modelValue"],props:{modelValue:Object},computed:{t(){return this.designer.setupState.t}},data(){return{value:[],active:null,start:null}},methods:{onConfirm(e,t,r){e===this.active?e[t]=(e[t]||"").substring(0,this.start)+r+(e[t]||"").substring(this.start):(e[t]+=r,this.active=null,this.start=null),this.submit()},onBlur(e,t){this.active=e,this.start=t.target.selectionStart,this.submit()},submit(){const e={};this.value.forEach(t=>{t.key&&t.value&&(e[t.key]=t.value)}),this.$emit("update:modelValue",e)},add(){this.value.push({})},rm(e){this.value.splice(e,1),this.submit()}},created(){const e=[];Object.keys(this.modelValue||{}).forEach(t=>{e.push({key:t,value:this.modelValue[t]})}),this.value=e}}),XD={class:"_fd-fetch-table"},ZD={style:{width:"40%"}},qD={class:"_fd-fetch-table-key"},eO=["onClick"];function tO(e,t,r,o,i,l){const d=n.resolveComponent("el-header"),c=n.resolveComponent("VariableConfig"),u=n.resolveComponent("el-input"),m=n.resolveComponent("el-main"),h=n.resolveComponent("el-container"),y=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",XD,[e.value.length>0?(n.openBlock(),n.createBlock(h,{key:0,class:"_fd-fetch-table-con"},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[n.createElementVNode("div",ZD,n.toDisplayString(e.t("props.key")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("props.value")),1)]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(C,S)=>(n.openBlock(),n.createElementBlock("div",{key:S,class:"_fd-fetch-table-row"},[n.createElementVNode("div",qD,[n.createVNode(u,{modelValue:C.key,"onUpdate:modelValue":w=>C.key=w,onBlur:w=>e.onBlur(C,w)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:w=>e.onConfirm(C,"key",w)},null,8,["onConfirm"])]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur"])]),n.createVNode(u,{modelValue:C.value,"onUpdate:modelValue":w=>C.value=w,onBlur:w=>e.onBlur(C,w)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:w=>e.onConfirm(C,"value",w)},null,8,["onConfirm"])]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur"]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:w=>e.rm(S)},null,8,eO)]))),128))]),_:1})]),_:1})):n.createCommentVNode("",!0),n.createVNode(y,{link:"",type:"primary",onClick:e.add},{default:n.withCtx(()=>[t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])])}const nO=De(JD,[["render",tO]]),Sg=n.defineComponent({name:"DragBox",props:["rule","tag","formCreateInject","list"],render(e){const t={...e.$props.rule.props,...e.$attrs};let r="_fd-"+e.$props.tag+"-drag _fd-drag-box";Object.keys(e.$slots).length||(r+=" drag-holder"),t.class=r,t.modelValue=e.$props.list||[...e.$props.formCreateInject.children];const o={};return e.$slots.default&&e.$slots.default().forEach(l=>{l.key&&(o[l.key]=l)}),n.h(Lr,t,{item:({element:i,index:l})=>{var u,m,h;let d="";(((u=i==null?void 0:i._menu)==null?void 0:u.inline)||((m=i==null?void 0:i._config)==null?void 0:m.inline))&&(d=" is-inline");const c=(h=i==null?void 0:i.__fc__)==null?void 0:h.key;if(c){let y=o["_"+i.slot];if(y?y.children.forEach(C=>{C.key===c+"fc"&&(y=C)}):y=o[c+"fc"],y)return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item"+d,key:c},y)}return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item",key:l},null)}})}}),B6="",iO=n.defineComponent({name:"FcTableView",props:{mini:Boolean,label:String,width:[Number,String],formCreateInject:Object,border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},inject:["designer"],components:{DragTool:_g,DragBox:Sg},watch:{rule:{handler(){this.initRule(),this.style=this.rule.style},immediate:!0}},data(){return{unique:{},style:{},dragProp:{rule:{props:{tag:"el-col",group:{name:"default",put:(e,...t)=>(e.el.__rule__=this.formCreateInject.rule,this.designer.setupState.dragPut(e,...t))},ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:"tableCell"},lattice:{},uni:{}}},computed:{t(){return this.designer.setupState.t},tableColor(){const e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{getUnique(e){return this.unique[e]||(this.unique[e]=We()),this.unique[e]},getSlotChildren(e){const t=[];return this.formCreateInject.children.forEach(r=>{e.indexOf(r.slot)>-1&&t.push(r)}),t},dragAdd(e,t){const r=this.designer.setupState,o=this.formCreateInject.children,i=`${t.pid}:${t.idx}`,l=e.item._underlying_vm_,d=r.addRule&&r.addRule.children===r.moveRule;d&&r.moveRule.splice(r.moveRule.indexOf(l),1);let c=0;const u="drag"+t.pid+t.idx;if(this.$refs[u][0].list.length){let m=this.$refs[u][0].list[e.newIndex?e.newIndex-1:0];c=o.indexOf(m)+(e.newIndex?1:0)}else if(o.length){const m=Object.keys(this.$refs);for(let h=m.indexOf(u)-1;h>=0;h--){if(!this.$refs[m[h]]||!this.$refs[m[h]].length)continue;const y=this.$refs[m[h]][0].list||[];if(y.length){c=o.indexOf(y[y.length-1])+1;break}}}e.newIndex=c,d?(l.slot=i,o.splice(e.newIndex,0,l),r.added=!0,r.handleSortAfter({rule:l})):r.dragAdd(o,e,`${t.pid}:${t.idx}`)},dragEnd(e,t){const r=this.designer.setupState,o=this.formCreateInject.children,i=e.item._underlying_vm_,l=o.indexOf(i);e.newIndex=l+(e.newIndex-e.oldIndex),e.oldIndex=l,r.dragEnd(this.formCreateInject.children,e,`${t.pid}:${t.idx}`)},dragStart(){this.designer.setupState.dragStart(this.formCreateInject.children)},dragUnchoose(e){this.designer.setupState.dragUnchoose(this.formCreateInject.children,e)},initRule(){const e=this.rule;e.style||(e.style={}),e.class||(e.class={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},active(e){const t=`${e.pid}:${e.idx}`;this.designer.setupState.customActive({name:"fcTableGrid",onPaste:r=>{r.slot=t,this.formCreateInject.children.push(r)},style:{formData:{style:this.rule.style[t]||{},class:this.rule.class[t]||""},change:(r,o)=>{this.rule[r][t]=o||{}}}})},command(e){this[e[0]](...e[1])},rmSlot(e,t){const r=Object.keys(e),o=this.formCreateInject.children;let i=0;[...o].forEach((l,d)=>{if(!l.slot)return;let c;t.indexOf(l.slot)>-1?(o.splice(d-i,1),i++):(c=r.indexOf(l.slot))>-1&&(l.slot=e[r[c]])}),t.forEach(l=>{delete this.style[l]}),this.loadRule()},rmRow(e){this.rule.row--;const t={},r=[];for(let l=e.pid;l<this.rule.row+1;l++)for(let d=0;d<this.rule.col;d++)l===e.pid?r.push(`${e.pid}:${d}`):t[`${l}:${d}`]=`${l-1}:${d}`;let o=0;const i=this.rule.layout;[...i].forEach((l,d)=>{l.top===e.pid&&(i.splice(d-o,1),o++)}),i.forEach(l=>{l.top>e.pid&&l.top--}),this.rmSlot(t,r)},rmCol(e){this.rule.col--;const t={},r=[];for(let l=0;l<this.rule.row;l++){for(let d=e.idx+1;d<this.rule.col+1;d++)t[`${l}:${d}`]=`${l}:${d-1}`;r.push(`${l}:${e.idx}`)}let o=0;const i=this.rule.layout;[...i].forEach((l,d)=>{l.left===e.idx&&(i.splice(d-o,1),o++)}),i.forEach(l=>{l.left>e.idx&&l.left--}),this.rmSlot(t,r)},splitRow(e){const t=e.data.layout,r=t.row;if(t.row=0,r>1)for(let o=1;o<r;o++)this.rule.layout.push({...t,top:t.top+o});this.loadRule()},splitCol(e){const t=e.data.layout,r=t.col;if(t.col=0,r>1)for(let o=1;o<r;o++)this.rule.layout.push({...t,left:t.left+o});this.loadRule()},makeMap(e){let t=[];for(let r=e.top;r<(e.row||e.top+1);r++)for(let o=e.left;o<(e.col||e.left+1);o++)t.push(`${r}:${o}`);return t},mergeRight(e){let t;if(e.data.layout){const o=(e.data.layout.col||1)+1;e.data.layout.col=o+e.idx>this.rule.col?this.rule.col-e.idx:o,t=e.data.layout}else t={top:e.pid,left:e.idx,col:2},this.rule.layout.push(t);const r=this.makeMap(t);this.formCreateInject.children.forEach(o=>{!o.slot||r.indexOf(o.slot)>-1&&(o.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},mergeBottom(e){let t;if(e.data.layout){const o=(e.data.layout.row||1)+1;e.data.layout.row=o+o.pid>this.rule.col?this.rule.col-e.pid:o,t=e.data.layout}else t={top:e.pid,left:e.idx,row:2},this.rule.layout.push(t);const r=this.makeMap(t);this.formCreateInject.children.forEach(o=>{!o.slot||r.indexOf(o.slot)>-1&&(o.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},addCol(e,t){if(this.rule.col++,this.rule.layout.forEach(r=>{r.left>(t?e.idx-1:e.idx)&&r.left++}),t||e.idx<this.rule.col-2){const r={};for(let i=0;i<this.rule.row;i++)for(let l=t?e.idx-1:e.idx+1;l<this.rule.col-1;l++)r[`${i}:${l}`]=`${i}:${l+1}`;const o=Object.keys(r);this.formCreateInject.children.forEach(i=>{let l;i.slot&&(l=o.indexOf(i.slot))>-1&&(i.slot=r[o[l]])}),o.forEach(i=>{this.style[i]&&(this.style[r[i]]=this.style[i],delete this.style[i])})}this.loadRule()},addRow(e,t){if(this.rule.row++,this.rule.layout.forEach(r=>{r.top>(t?e.pid-1:e.pid)&&r.top++}),t||e.pid<this.rule.row-2){const r={};for(let i=t?e.pid-1:e.pid+1;i<this.rule.row;i++)for(let l=0;l<this.rule.col;l++)r[`${i}:${l}`]=`${i+1}:${l}`;const o=Object.keys(r);this.formCreateInject.children.forEach(i=>{let l;i.slot&&(l=o.indexOf(i.slot))>-1&&(i.slot=r[o[l]])}),o.reverse().forEach(i=>{this.style[i]&&(this.style[r[i]]=this.style[i],delete this.style[i])})}this.loadRule()},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let o=0;o<t.row;o++){const i=[];e.push(i);for(let l=0;l<t.col;l++)i.push({rowspan:1,colspan:1,slot:[],show:!0,id:this.getUnique(`${o}${l}`)})}[...t.layout||[]].forEach((o,i)=>{if((!o.row||o.row<=0)&&(!o.col||o.col<=0)||!e[o.top]||!e[o.top][o.left]||!e[o.top][o.left].show){t.layout.splice(i,1);return}const l=e[o.top][o.left];l.layout=o;let d=1,c=1;if(o.col&&(d=o.col+o.left>t.col?t.col-o.left:o.col,l.colspan=d),o.row&&(c=o.row+o.top>t.row?t.row-o.top:o.row,l.rowspan=c),c&&d)for(let u=0;u<c;u++){const m=e[o.top+u];if(m)for(let h=0;h<d;h++)!h&&!u||(m[o.left+h]&&(m[o.left+h].show=!1),l.slot.push(`${o.top+u}:${o.left+h}`))}});const r=o=>!!(!o||o.layout||!o.show);e.forEach((o,i)=>{o.forEach((l,d)=>{let c=!1,u=!1;if(l.layout){const m=l.layout.col||1,h=l.layout.row||1;for(let y=0;y<m;y++)if(!e[i+h]||r(e[i+h][d+y])){u=!0;continue}for(let y=0;y<h;y++)if(!e[i+y]||r(e[i+y][d+m])){c=!0;continue}}else c=r(o[d+1]),u=e[i+1]?r(e[i+1][d]):!0;l.right=c,l.bottom=u})}),this.lattice=e,this.formCreateInject.rule.props.rule=t}},beforeMount(){this.loadRule()}}),rO={class:"_fd-table-view-cell"},oO=["onClick"],aO=["onClick"];function lO(e,t,r,o,i,l){const d=n.resolveComponent("DragBox"),c=n.resolveComponent("el-dropdown-item"),u=n.resolveComponent("el-dropdown-menu"),m=n.resolveComponent("el-dropdown"),h=n.resolveComponent("DragTool");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-table-view",{"is-mini":e.mini}])},[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(e.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.row,(y,C)=>(n.openBlock(),n.createElementBlock("tr",{key:C},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.col,(S,w)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.lattice[C][w].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:`${C}${w}`,ref_for:!0},e.lattice[C][w]?{colspan:e.lattice[C][w].colspan,rowspan:e.lattice[C][w].rowspan}:{},{style:[e.tableColor,e.style&&e.style[`${C}:${w}`]||{}],class:e.rule.class&&e.rule.class[`${C}:${w}`]||""}),[n.createElementVNode("div",rO,[n.createVNode(h,{"drag-btn":!1,"handle-btn":!0,onActive:E=>e.active({pid:C,idx:w}),unique:e.lattice[C][w].id},{handle:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:n.withModifiers(E=>e.addRow({pid:C,idx:w,data:e.lattice[C][w]},0),["stop"])},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-add-col"},null,-1)]),8,oO),n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:n.withModifiers(E=>e.addCol({pid:C,idx:w,data:e.lattice[C][w]},0),["stop"])},t[4]||(t[4]=[n.createElementVNode("i",{class:"fc-icon icon-add-col",style:{transform:"rotate(90deg)"}},null,-1)]),8,aO),n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:t[2]||(t[2]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(m,{trigger:"click",onCommand:e.command},{dropdown:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{command:["addCol",[{pid:C,idx:w,data:e.lattice[C][w]},1]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addLeft")),1)]),_:2},1032,["command"]),n.createVNode(c,{command:["addCol",[{pid:C,idx:w,data:e.lattice[C][w]},0]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addRight")),1)]),_:2},1032,["command"]),n.createVNode(c,{command:["addRow",[{pid:C,idx:w,data:e.lattice[C][w]},1]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addTop")),1)]),_:2},1032,["command"]),n.createVNode(c,{command:["addRow",[{pid:C,idx:w,data:e.lattice[C][w]},0]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addBottom")),1)]),_:2},1032,["command"]),n.createVNode(c,{divided:"",disabled:e.lattice[C][w].right,command:["mergeRight",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeRight")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{disabled:e.lattice[C][w].bottom,command:["mergeBottom",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeBottom")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{divided:"",disabled:!(e.lattice[C][w].layout&&e.lattice[C][w].layout.col>1),command:["splitCol",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitCol")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{disabled:!(e.lattice[C][w].layout&&e.lattice[C][w].layout.row>1),command:["splitRow",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitRow")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{divided:"",disabled:e.rule.col<2,command:["rmCol",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmCol")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{disabled:e.rule.row<2,command:["rmRow",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmRow")),1)]),_:2},1032,["disabled","command"])]),_:2},1024)]),default:n.withCtx(()=>[t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:2},1032,["onCommand"])])]),default:n.withCtx(()=>[n.createVNode(d,n.mergeProps({ref_for:!0},e.dragProp,{onAdd:E=>e.dragAdd(E,{pid:C,idx:w}),ref_for:!0,ref:"drag"+C+w,onEnd:E=>e.dragEnd(E,{pid:C,idx:w}),onStart:t[0]||(t[0]=E=>e.dragStart(E)),onUnchoose:t[1]||(t[1]=E=>e.dragUnchoose(E)),list:e.getSlotChildren([`${C}:${w}`,...e.lattice[C][w].slot])}),{default:n.withCtx(()=>[n.renderSlot(e.$slots,`${C}:${w}`)]),_:2},1040,["onAdd","onEnd","list"])]),_:2},1032,["onActive","unique"])])],16)):n.createCommentVNode("",!0)],64))),256))]))),128))],4)],2)}const sO=De(iO,[["render",lO]]),R6="",dO={name:"FcTable",props:{mini:Boolean,label:String,width:[Number,String],border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},watch:{rule:{handler(){this.initRule(),this.loadRule(),this.tdStyle=this.rule.style||{},this.tdClass=this.rule.class||{}},immediate:!0,deep:!0}},data(){return{tdStyle:{},tdClass:{},lattice:{}}},computed:{tableColor(){const e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{initRule(){const e=this.rule;e.style||(e.style={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let o=0;o<t.row;o++){const i=[];e.push(i);for(let l=0;l<t.col;l++)i.push({rowspan:1,colspan:1,slot:[],show:!0})}[...t.layout||[]].forEach((o,i)=>{if((!o.row||o.row<=0)&&(!o.col||o.col<=0)||!e[o.top]||!e[o.top][o.left]||!e[o.top][o.left].show){t.layout.splice(i,1);return}const l=e[o.top][o.left];l.layout=o;let d=1,c=1;if(o.col&&(d=o.col+o.left>t.col?t.col-o.left:o.col,l.colspan=d),o.row&&(c=o.row+o.top>t.row?t.row-o.top:o.row,l.rowspan=c),c&&d)for(let u=0;u<c;u++){const m=e[o.top+u];if(m)for(let h=0;h<d;h++)!h&&!u||(m[o.left+h]&&(m[o.left+h].show=!1),l.slot.push(`${o.top+u}:${o.left+h}`))}});const r=o=>!!(!o||o.layout||!o.show);e.forEach((o,i)=>{o.forEach((l,d)=>{let c=!1,u=!1;if(l.layout){const m=l.layout.col||1,h=l.layout.row||1;for(let y=0;y<m;y++)if(!e[i+h]||r(e[i+h][d+y])){u=!0;continue}for(let y=0;y<h;y++)if(!e[i+y]||r(e[i+y][d+m])){c=!0;continue}}else c=r(o[d+1]),u=e[i+1]?r(e[i+1][d]):!0;l.right=c,l.bottom=u})}),this.lattice=e}}};function cO(e,t,r,o,i,l){const d=n.resolveComponent("el-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-table",{"is-mini":r.mini}])},[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(l.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rule.row,(c,u)=>(n.openBlock(),n.createElementBlock("tr",{key:u},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rule.col,(m,h)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`${u}${h}`},[i.lattice[u][h].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:0,ref_for:!0},i.lattice[u][h]?{colspan:i.lattice[u][h].colspan,rowspan:i.lattice[u][h].rowspan}:{},{valign:"top",class:i.tdClass&&i.tdClass[`${u}:${h}`]||"",style:[l.tableColor,i.tdStyle&&i.tdStyle[`${u}:${h}`]||{}]}),[n.renderSlot(e.$slots,`${u}:${h}`),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.lattice[u][h].slot,y=>n.renderSlot(e.$slots,`${y}`)),256))],16)):n.createCommentVNode("",!0)],64))),128))]))),128))],4)],2)]),_:3})}const uO=De(dO,[["render",cO]]),$6="",fO=n.defineComponent({name:"FcValue",props:["modelValue"],inject:["designer"],watch:{modelValue(e){this.$emit("change",e)}},computed:{t(){return this.designer.setupState.t}}}),pO={class:"_fd-value"};function hO(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",pO,n.toDisplayString(e.t("com.fcValue.empty")),1)}const mO=De(fO,[["render",hO]]),gO=n.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(e){this.$emit("change",e)}}}),vO={class:"_fc-value"};function yO(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",vO,n.toDisplayString(e.modelValue),1)}const bO=De(gO,[["render",yO]]),wO=n.defineComponent({name:"FcSlot",inheritAttrs:!1,inject:["parentFC"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:r}=this.formCreateInject,o=e.__fc__.prop;return{rule:e,prop:o,preview:t,api:r,model:o.model||{}}}},render(){const e=this.getSlot();return n.createVNode(n.Fragment,{},e?[e(this.slotArg)]:[])},methods:{getSlot(){const e=t=>{if(t){let r=t.slots[this.slotName];return r||e(t.setupState.parent)}};return e(this.parentFC)}}}),CO=n.defineComponent({name:"FcSlotView",inheritAttrs:!1,inject:["parentFC","designer"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:r}=this.formCreateInject,o=e.__fc__.prop;return{rule:e,prop:o,preview:t,api:r,model:o.model||{}}}},render(){const e=this.getSlot();return e?n.createVNode(n.Fragment,{},[e(this.slotArg)]):n.createVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcSlot.empty",{tag:"<span><template #"+this.slotName+" /></span>"})})},methods:{getSlot(){const e=t=>{if(t){let r=t.slots[this.slotName];return r||e(t.setupState.parent)}};return e(this.parentFC)}}}),_O=n.defineComponent({name:"FcJson",inheritAttrs:!1,props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var e,t;if(this.rule)return this.type==="object"?n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":r=>{this.$emit("update:modelValue",r)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":r=>{this.$emit("update:modelValue",r)},sortBtn:this.sortBtn,min:this.min,max:this.max,expand:this.expand,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):n.createVNode(n.Fragment,{key:this.uni},[(t=(e=this.$slots)==null?void 0:e.default)==null?void 0:t.call(e)])},methods:{loadRule(){let e=at(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),I6="",EO=n.defineComponent({name:"FcJsonView",inheritAttrs:!1,inject:["designer"],props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var e,t;if(this.rule){let r=null;return this.type==="object"?r=n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":o=>{this.$emit("update:modelValue",o)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?r=n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":o=>{this.$emit("update:modelValue",o)},sortBtn:this.sortBtn,expand:1,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):r=n.createVNode(n.Fragment,{key:1},[(t=(e=this.$slots)==null?void 0:e.default)==null?void 0:t.call(e)]),n.createElementVNode("div",{key:this.uni,style:{"--fc-json-mask":`'${this.designer.setupState.t("com.fcJson.name")}'`},class:"_fd-json-container"},[r])}else return n.createElementVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcJson.empty",{tag:"<span>JSON</span>"})})},methods:{loadRule(){let e=at(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),F6="",AO=n.defineComponent({name:"fcInlineForm"}),SO={class:"_fc-line-form"};function xO(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",SO,[n.renderSlot(e.$slots,"default")])}const xg=De(AO,[["render",xO]]),M6="",kO=n.defineComponent({name:"LanguageInput",inject:["designer"],emits:["update:modelValue","blur","change"],props:{size:String,placeholder:String,modelValue:String,disabled:Boolean},computed:{isVar(){return!!(this.modelValue||"").match(/^\{\{\s*\$t\.(.+)\s*\}\}$/)},t(){return this.designer.setupState.t},showLanguage(){return this.designer.setupState.getConfig("showLanguage")},localeList(){var o,i;const e=this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]),t=[],r=((i=(o=this.designer.props)==null?void 0:o.locale)==null?void 0:i.name)||"zh-cn";return e.forEach(l=>{l.value===r?t.unshift(l):t.length<2&&t.push(l)}),t.length>2&&t.pop(),t},language(){const e=this.designer.setupState.formOptions.language||{},t={};return Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(o=>{t[o]||(t[o]={key:o}),t[o][r]=e[r][o]})}),Object.values(t)}},methods:{openConfig(){this.designer.setupState.activeModule="language"},clickLang(e){this.onInput(`{{$t.${e}}}`),this.$refs.pop.hide()},onInput(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},mounted(){}}),TO={class:"_fd-language-list"},NO={class:"_fd-language-header"},DO={class:"_fd-language-title"},OO={class:"_fd-language-name"},VO=["onClick"];function BO(e,t,r,o,i,l){const d=n.resolveComponent("el-popover"),c=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(c,{class:n.normalizeClass(["_fd-language-input",{"is-variable":e.isVar}]),placeholder:e.placeholder,disabled:e.disabled,modelValue:e.modelValue,"onUpdate:modelValue":e.onInput,onBlur:t[1]||(t[1]=u=>e.$emit("blur")),size:e.size||"small"},n.createSlots({_:2},[e.showLanguage!==!1?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{placement:"bottom-end",width:300,"hide-after":0,trigger:"click",ref:"pop","popper-class":"_fd-language-popover"},{reference:n.withCtx(()=>t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)])),default:n.withCtx(()=>[n.createElementVNode("div",TO,[n.createElementVNode("div",NO,[n.createElementVNode("div",DO,[n.createTextVNode(n.toDisplayString(e.t("language.select")),1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[0]||(t[0]=(...u)=>e.openConfig&&e.openConfig(...u))})]),n.createElementVNode("div",OO,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,u=>(n.openBlock(),n.createElementBlock("div",{key:u.value},n.toDisplayString(u.label),1))),128))])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.language,u=>(n.openBlock(),n.createElementBlock("div",{key:u.key,class:"_fd-language-item",onClick:m=>e.clickLang(u.key)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,m=>(n.openBlock(),n.createElementBlock("div",{key:m.value},n.toDisplayString(u[m.value]||"-"),1))),128))],8,VO))),128))])]),_:1},512)]),key:"0"}:void 0]),1032,["class","placeholder","disabled","modelValue","onUpdate:modelValue","size"])}const su=De(kO,[["render",BO]]),P6="",RO=n.defineComponent({name:"Validate",inject:["designer"],emits:["update:modelValue"],props:{modelValue:Array},components:{LanguageInput:su,FnInput:Ag,PatternInput:bc},watch:{modelValue(e){this.validate=this.parseValue(e||[])}},data(){return{validate:this.parseValue(this.modelValue||[])}},computed:{t(){return this.designer.setupState.t},modes(){const e=this.designer.setupState.activeRule;return e&&e._menu.subForm==="object"?{validator:this.t("validate.modes.validator")}:{min:this.t("validate.modes.min"),max:this.t("validate.modes.max"),len:this.t("validate.modes.len"),pattern:this.t("validate.modes.pattern"),validator:this.t("validate.modes.validator")}},triggers(){return it(this.t,[{label:"blur",value:"blur"},{label:"change",value:"change"},{label:"submit",value:"submit"}])}},methods:{handleCommand(e){this.validate.push({transform:new Function("val","this.type = val == null ? 'string' : (Array.isArray(val) ? 'array' : (typeof val)); return val;"),mode:e,trigger:"blur"})},autoMessage(e){const t=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&(e.message=this.t("validate.autoRequired",{title:t}),this.onInput())},getSpan(e){return["pattern","validator","required"].indexOf(e.mode)>-1?24:12},onInput:function(){this.$emit("update:modelValue",this.validate.map(e=>(e={...e},e.message||delete e.message,e)))},remove(e){this.validate.splice(e,1),this.onInput()},parseValue(e){return at(e.map(t=>(t.validator&&(t.mode="validator"),t.mode||Object.keys(t).forEach(r=>{["message","type","trigger","mode"].indexOf(r)<0&&(t.mode=r)}),t)))}}}),$O={class:"_fd-validate"},IO={class:"_fd-validate-item"},FO={class:"_fd-validate-title"},MO=["onClick"];function PO(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("el-form-item"),m=n.resolveComponent("el-col"),h=n.resolveComponent("PatternInput"),y=n.resolveComponent("FnInput"),C=n.resolveComponent("el-input-number"),S=n.resolveComponent("LanguageInput"),w=n.resolveComponent("el-row"),E=n.resolveComponent("el-button"),_=n.resolveComponent("el-dropdown-item"),g=n.resolveComponent("el-dropdown-menu"),b=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",$O,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.validate,(x,k)=>(n.openBlock(),n.createElementBlock("div",IO,[n.createElementVNode("div",FO,[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString(k+1),1),n.createTextVNode(" "+n.toDisplayString(e.modes[x.mode]),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:N=>e.remove(k)},null,8,MO)]),n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(m,{span:e.getSpan(x)},{default:n.withCtx(()=>[n.createVNode(u,{label:e.t("validate.mode")},{default:n.withCtx(()=>[n.createVNode(c,{modelValue:x.trigger,"onUpdate:modelValue":N=>x.trigger=N,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.triggers,N=>(n.openBlock(),n.createBlock(d,{key:N.value,label:N.label,value:N.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(m,{span:e.getSpan(x)},{default:n.withCtx(()=>[n.createVNode(u,{label:e.modes[x.mode]},{default:n.withCtx(()=>[x.mode==="pattern"?(n.openBlock(),n.createBlock(h,{key:0,modelValue:x[x.mode],"onUpdate:modelValue":N=>x[x.mode]=N,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):x.mode==="validator"?(n.openBlock(),n.createBlock(y,{key:1,modelValue:x[x.mode],"onUpdate:modelValue":N=>x[x.mode]=N,name:"validator",args:["rule","value","callback"],onChange:e.onInput},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.modes.validator")),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(C,{key:2,modelValue:x[x.mode],"onUpdate:modelValue":N=>x[x.mode]=N,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]))]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(m,{span:24},{default:n.withCtx(()=>[n.createVNode(u,{label:e.t("validate.message")},{default:n.withCtx(()=>[n.createVNode(S,{modelValue:x.message,"onUpdate:modelValue":N=>x.message=N,placeholder:e.t("validate.requiredPlaceholder"),onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024)]))),256)),n.createVNode(b,{trigger:"click",size:"default","popper-class":"_fd-validate-pop",onCommand:e.handleCommand},{dropdown:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modes,(x,k)=>(n.openBlock(),n.createBlock(_,{command:k,key:k},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(x),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(E,{class:"_fd-validate-btn _fd-plain-button",plain:"",size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.rule"))+" + ",1)]),_:1})]),_:1},8,["onCommand"])])}const LO=De(RO,[["render",PO]]),L6="",jO=n.defineComponent({name:"Required",components:{LanguageInput:su},emits:["update:modelValue"],props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(e){const t=ct.String(e);this.required=e===void 0?!1:t?!0:!!e,this.requiredMsg=t?e:""}},computed:{t(){return this.designer.setupState.t}},data(){const e=ct.String(this.modelValue);return{required:this.modelValue===void 0?!1:e?!0:!!this.modelValue,requiredMsg:e?this.modelValue:""}},methods:{update(){let e;this.required===!1?e=!1:e=this.requiredMsg||!0,this.$emit("update:modelValue",e)}}}),zO={class:"_fd-required"};function UO(e,t,r,o,i,l){const d=n.resolveComponent("el-switch"),c=n.resolveComponent("LanguageInput");return n.openBlock(),n.createElementBlock("div",zO,[n.createVNode(d,{modelValue:e.required,"onUpdate:modelValue":t[0]||(t[0]=u=>e.required=u)},null,8,["modelValue"]),e.required?(n.openBlock(),n.createBlock(c,{key:0,modelValue:e.requiredMsg,"onUpdate:modelValue":t[1]||(t[1]=u=>e.requiredMsg=u),placeholder:e.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):n.createCommentVNode("",!0)])}const HO=De(jO,[["render",UO]]),j6="",WO=n.defineComponent({name:"TreeOptions",components:{ValueInput:yl},emits:["update:modelValue"],props:{modelValue:Array,columns:Object,keyValue:String},inject:["designer"],data(){return{value:[...at(this.modelValue||[])],checked:!1}},computed:{t(){return this.designer.setupState.t},overColumns(){return this.columns?{label:this.columns.label||"label",value:this.columns.value||"value"}:{label:"label",value:"value"}}},created(){this.value.length||(this.value=[{}]),this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.change()}))},methods:{isChecked(){const e=t=>{for(let r=0;r<t.length;r++){const o=t[r];if(o[this.overColumns.label]!==o[this.overColumns.value]||o.children&&!e(o.children))return!1}return!0};return e(this.modelValue||[])},tidyValue(){const e=t=>{let r=[];return t.map(o=>{const i=o[this.keyValue],l={[this.overColumns.label]:i,[this.overColumns.value]:i};r.push(l),o.children&&(l.children=e(o.children))}),r};return this.checked&&this.keyValue?e(this.value):at(this.value)},change(){this.$emit("update:modelValue",this.tidyValue())},add(e){const t=e.parent;(t.data.children||t.data).push({})},append(e){e.children||(e.children=[]),e.children.push({})},remove(e,t){const r=e.parent;r.data.children?(r.data.children.splice(r.data.children.indexOf(t),1),r.data.children.length||delete r.data.children):r.data.splice(r.data.indexOf(t),1),this.change()}}}),GO={class:"_fd-tree-opt"},KO={class:"_fd-tree-opt-node"},YO=["onClick"],QO=["onClick"],JO=["onClick"],XO=["onClick"],ZO=["onClick"],qO=["onClick"];function eV(e,t,r,o,i,l){const d=n.resolveComponent("el-input"),c=n.resolveComponent("ValueInput"),u=n.resolveComponent("el-tree"),m=n.resolveComponent("el-checkbox");return n.openBlock(),n.createElementBlock("div",GO,[(n.openBlock(),n.createBlock(u,{data:e.value,"node-key":"index",key:e.checked?"1":"2",indent:5,"expand-on-click-node":!1},{default:n.withCtx(({node:h,data:y})=>[n.createElementVNode("div",KO,[e.checked?(n.openBlock(),n.createBlock(d,{key:1,class:"_fd-tree-opt-last _label",modelValue:y[e.keyValue],"onUpdate:modelValue":C=>y[e.keyValue]=C,onBlur:e.change},{append:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.add(h,y)},t[4]||(t[4]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,XO),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.append(y)},t[5]||(t[5]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,ZO),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:C=>e.remove(h,y)},t[6]||(t[6]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,qO)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{class:"_fd-tree-opt-first",modelValue:y[e.overColumns.label],"onUpdate:modelValue":C=>y[e.overColumns.label]=C,onBlur:e.change},null,8,["modelValue","onUpdate:modelValue","onBlur"]),n.createVNode(c,{class:"_fd-tree-opt-last",modelValue:y[e.overColumns.value],"onUpdate:modelValue":C=>y[e.overColumns.value]=C,onBlur:e.change,onChangeType:e.change},{append:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.add(h,y)},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,YO),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.append(y)},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,QO),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:C=>e.remove(h,y)},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,JO)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur","onChangeType"])],64))])]),_:1},8,["data"])),e.keyValue?(n.openBlock(),n.createBlock(m,{key:0,modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=h=>e.checked=h),label:e.t("tableOptions.keyValue")},null,8,["modelValue","label"])):n.createCommentVNode("",!0)])}const tV=De(WO,[["render",eV]]),z6="",kg=e=>{const t=[];return e.forEach(r=>{r.field&&t.push(r.field),r.children&&t.push(...kg(r.children))}),t},nV=n.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,submitBtn:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:n.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(e){this.setValue(e)}},methods:{init(){this.steps.forEach((e,t)=>{this.cacheRule[t]?this.cacheRule[t].display=t===this.active:this.cacheRule[t]={type:"FcRow",native:!0,display:t===this.active,children:e.rule}})},onPrev(){this.active--},validate(){return new Promise((e,t)=>{const r=kg(this.cacheRule[this.active].children);r.length>0?Promise.all(r.map(o=>this.subApi.validateField(o))).then(()=>{e()}).catch(o=>{t(o)}):e()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(e=>{}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const e=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{e()}).catch(t=>{this.$emit("validateFail",this.subApi)}):e()},addSubApi(e){this.subApi=e,this.$emit("itemMounted",e)},formData(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue(e){const t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))}},created(){this.init()}}),iV={class:"_fc-step-form"};function rV(e,t,r,o,i,l){const d=n.resolveComponent("el-step"),c=n.resolveComponent("el-steps"),u=n.resolveComponent("el-button"),m=n.resolveComponent("el-col"),h=n.resolveComponent("el-row");return n.openBlock(),n.createElementBlock("div",iV,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,y=>(n.openBlock(),n.createBlock(d,n.mergeProps({ref_for:!0},y.props),null,16))),256))]),_:1},16,["active"]),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.cacheRule,extendOption:!0,modelValue:e.modelValue,"onUpdate:api":e.addSubApi,onEmitEvent:e.$emit,"onUpdate:modelValue":e.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),n.createVNode(h,null,{default:n.withCtx(()=>[n.createVNode(m,{span:24,style:{display:"flex","justify-content":"flex-end","margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,onClick:e.onPrev},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:1,type:"primary",onClick:e.onNext},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.submitBtn!==!1&&e.active===e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:2,class:"fc-clock",type:"primary",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const oV=De(nV,[["render",rV]]),U6="",aV=n.defineComponent({name:"StepFormView",props:{stepsProps:Object,formCreateInject:Object},provide(){return{stepForm:this}},inject:["designer"],data(){return{active:void 0,activeId:void 0,stepItemRef:[],activeRef:void 0}},watch:{"stepItemRef.length"(){(!this.active||this.formCreateInject.children.indexOf(this.activeRef)===-1)&&(this.active=this.formCreateInject.children.length>0?0:-1)},active(e){this.activeRef=this.formCreateInject.children[e],this.activeId=this.activeRef?this.activeRef._fc_id:null}},methods:{onPrev(){this.active--,this.triggerActive()},onNext(){this.active++,this.triggerActive()},change(e){this.active=e,this.triggerActive()},triggerActive(){this.$nextTick(()=>{this.designer.setupState.triggerActive(this.activeRef)})}},created(){this.$watch(()=>[...this.formCreateInject.children],()=>{this.activeRef&&(this.active=this.formCreateInject.children.indexOf(this.activeRef))})}}),lV={class:"_fd-step-form"};function sV(e,t,r,o,i,l){const d=n.resolveComponent("el-step"),c=n.resolveComponent("el-steps"),u=n.resolveComponent("el-button"),m=n.resolveComponent("el-col"),h=n.resolveComponent("el-row");return n.openBlock(),n.createElementBlock("div",lV,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.formCreateInject.children,(y,C)=>(n.openBlock(),n.createBlock(d,{key:y._fc_id+C,onClick:n.withModifiers(S=>e.change(C),["stop"]),title:y.props.title,description:y.props.description},null,8,["onClick","title","description"]))),128))]),_:1},16,["active"]),n.renderSlot(e.$slots,"default"),n.createVNode(h,null,{default:n.withCtx(()=>[n.createVNode(m,{span:24,style:{display:"flex","justify-content":"flex-end",padding:"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,onClick:n.withModifiers(e.onPrev,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.stepItemRef.length-1?(n.openBlock(),n.createBlock(u,{key:1,type:"primary",onClick:n.withModifiers(e.onNext,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const dV=De(aV,[["render",sV]]),H6="",cV=n.defineComponent({name:"TableFormView",data(){return{}}}),uV={class:"_fd-table-form"},fV={key:0,class:"_fd-tf-wrap"},pV={key:1,class:"_fc-child-empty"};function hV(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",uV,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",fV,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",pV))])}const Tg=De(cV,[["render",hV]]),W6="",mV=n.defineComponent({name:"NestedTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),gV={class:"_fd-ntable-form"},vV={key:0,class:"_fd-ntf-wrap"},yV={key:1,class:"_fc-child-empty"},bV={key:2,class:"_fd-ntable-sub"},wV={class:"_title"};function CV(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",gV,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",vV,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",yV)),e.$slots.default?(n.openBlock(),n.createElementBlock("div",bV,[n.createElementVNode("div",wV,n.toDisplayString(e.t("com.nestedSubTableForm.name")),1),n.renderSlot(e.$slots,"nested")])):n.createCommentVNode("",!0)])}const _V=De(mV,[["render",CV]]),G6="",EV={name:"NestedTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},nested:Array,nestedField:String,columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,nestedMax:Number,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach(t=>{const r=t.children[1].children[0].props.colspan;t.children[1].children[0].props.colspan=e?r-1:r+1})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,r,o,i){i===!1&&this.updateValue()},updateValue(){const e=this.trs.map((r,o)=>({...this.modelValue[o]||{},...this.fapi.getChildrenFormData(r)})).filter(r=>{if(r==null)return!1;let o=!1;return Object.keys(r).forEach(i=>{o||(o=o||r[i]!==void 0&&r[i]!==""&&r[i]!==null&&(Array.isArray(r[i])?!!r[i].length:!0))}),o}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],r={type:"template",subRule:!0,children:[]};r.children.push(t),r.children.push({type:"tr",native:!0,display:!1,children:[{type:"td",native:!0,props:{colspan:t.children.length-(this.preview?1:0)},class:"_fc-ntf-sub",children:[{type:"TableForm",field:this.nestedField,value:[],props:{disabled:this.disabled,max:this.nestedMax||0,columns:at(this.nested),options:at(this.options)}}]}]}),this.trs.push(r),this.updateRaw(r),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),r=e.children[0];r.children[0].children[0].props.onClick=o=>{const i=o.self.children[0]==="-"?"+":"-";o.self.children=[i],this.trs[t].children[1].display=i==="-"},r.children[1].props.innerText=t+1,r.children[r.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-ntf-sub-idx"},{type:"th",native:!0,class:"_fc-ntf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-ntf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-ntf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(r=>{e.push({type:"th",native:!0,class:r.required?"_fc-ntf-head-required":"",style:r.style,props:{innerText:r.label||""}}),t.push({type:"td",native:!0,children:[...r.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-ntf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-ntf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-ntf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function AV(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-nested-table-form",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,onChange:l.formChange,disabled:r.disabled,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!r.max||r.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=c=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)],2)}const SV=De(EV,[["render",AV]]),K6="",xV=n.defineComponent({name:"InfiniteTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),kV={class:"_fd-itable-form"},TV={key:0,class:"_fd-itf-wrap"},NV={key:1,class:"_fc-child-empty"};function DV(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",kV,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",TV,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",NV))])}const OV=De(xV,[["render",DV]]),Y6="",VV={name:"InfiniteTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,layerMax:{type:Number,default:0},childrenField:String,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview},subField(){return this.childrenField||"children"}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach((t,r)=>{t.children[1]&&(t.children[1].children[0].props.colspan=this.rule[0].children[0].children[0].children.length-(e?1:0)),t.children[0].children[0].children[0].hidden=this.layerMax===1||e&&!(this.modelValue&&this.modelValue[r]&&Array.isArray(this.modelValue[r][this.subField])&&this.modelValue[r][this.subField].length>0)})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,r,o,i){i===!1&&this.updateValue()},updateValue(){const e=this.trs.map((r,o)=>{const i={...this.modelValue[o]||{},...this.fapi.getChildrenFormData(r)};return!ai(i,this.subField)&&this.modelValue[o]&&(i[this.subField]=this.modelValue[o][this.subField]),i[this.subField]==null&&delete i[this.subField],i}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],r={type:"template",subRule:!0,children:[]};r.children.push(t),this.trs.push(r),this.trs.forEach(o=>this.updateRaw(o)),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),r=e.children[0];r.children[0].children[0].hidden=this.layerMax===1||this.preview&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0),r.children[0].children[0].props.onClick=o=>{if(this.trs[t].children.length===1){if(this.disabled&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0))return;this.trs[t].children.push({type:"tr",native:!0,display:!0,children:[{type:"td",native:!0,props:{colspan:this.rule[0].children[0].children[0].children.length-(this.preview?1:0)},class:"_fc-itf-sub",children:[{type:"infiniteTableForm",field:this.subField,value:[...this.modelValue[t]&&this.modelValue[t][this.subField]||[]],props:{disabled:this.disabled,layerMax:this.layerMax===0?0:this.layerMax>1?this.layerMax-1:1,max:this.max||0,columns:at(this.columns),options:at(this.options)}}]}]})}const i=o.self.children[0]==="-"?"+":"-";o.self.children=[i],this.trs[t].children[1].display=i==="-"},r.children[1].props.innerText=t+1,r.children[r.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-itf-sub-idx"},{type:"th",native:!0,class:"_fc-itf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-itf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-itf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(r=>{e.push({type:"th",native:!0,class:r.required?"_fc-itf-head-required":"",style:r.style,props:{innerText:r.label||""}}),t.push({type:"td",native:!0,children:[...r.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-itf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-itf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-itf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function BV(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-infinite-table-form",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,onChange:l.formChange,disabled:r.disabled,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!r.max||r.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=c=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)],2)}const RV=De(VV,[["render",BV]]),Q6="",$V={name:"TableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},filterEmptyColumn:{type:Boolean,default:!0},deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(e){this.emptyRule.children[0].props.colspan=this.columns.length+(e?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",emptyRule:{type:"tr",_isEmpty:!0,native:!0,subRule:!0,children:[{type:"td",style:{textAlign:"center"},native:!0,subRule:!0,props:{colspan:this.columns.length+(this.formCreateInject.preview?1:2)},children:[this.formCreateInject.t("dataEmpty")||"\u6682\u65E0\u6570\u636E"]}]}}},methods:{formChange(){this.updateValue()},updateValue(){const e=this.trs.map((r,o)=>({...this.modelValue[o]||{},...this.fapi.getChildrenFormData(r)})).filter(r=>{if(!this.filterEmptyColumn)return!0;if(r==null)return!1;let o=!1;return Object.keys(r).forEach(i=>{o=o||r[i]!==void 0&&r[i]!==""&&r[i]!==null}),o}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length?this.clearEmpty():this.addEmpty(),this.modelValue.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.length&&this.trs.splice(0,this.trs.length),this.trs.push(this.emptyRule)},clearEmpty(){this.trs[0]&&this.trs[0]._isEmpty&&this.trs.splice(0,1)},delRaw(e){this.disabled||!this.deletable||this.min>0&&this.trs.length<=this.min||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addEmpty(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(t),this.updateRaw(t),e&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(e){const t=this.trs.indexOf(e);e.children[0].props.innerText=t+1,e.children[e.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(r=>{e.push({type:"th",native:!0,style:r.style,class:r.required?"_fc-tf-head-required":"",props:{innerText:r.label||""}}),t.push({type:"td",native:!0,children:[...r.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-tf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,subRule:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-tf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function IV(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-table-form",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,disabled:r.disabled,onChange:l.formChange,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),r.addable&&(!r.max||r.max>this.trs.length)?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=c=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)],2)}const FV=De($V,[["render",IV]]),J6="",MV={name:"TableFormPro",emits:["change","add","delete","update:modelValue","handleClick"],props:{formCreateInject:Object,height:[String,Number],modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},button:Object,page:Object,size:String,filterEmptyColumn:{type:Boolean,default:!0},newColumn:Boolean,deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},showIndex:Boolean,max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){const e=JSON.stringify(this.modelValue||[]);this.oldValue!==e&&(this.chunk=[[]],this.nowPage=1,this.updateTable(),this.oldValue=e)}}},computed:{total(){return this.chunk.reduce((e,t)=>(e+=t.length,e),0)},limit(){return!this.page||this.page.open!==!0?1e6:this.page.props&&this.page.props.pageSize||20},pageData(){return this.chunk[this.nowPage-1]}},data(){return{chunk:[[]],data:[],rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",nowPage:1,indexRule:{type:"el-table-column",props:{label:"#",type:"index",fixed:"left"}}}},methods:{paginateArray(){const e=this.modelValue||[],t=this.limit,r=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);r.push(i)}r.length&&r.forEach((o,i)=>{this.chunk[i]=[...this.chunk[i]||[],...o]}),this.nowPage>this.chunk.length&&(this.nowPage=this.chunk.length)},formChange(){this.updateValue()},updateValue(){this.trs.forEach((r,o)=>{ml(this.pageData[o],this.fapi.getChildrenFormData(r))});const e=at(this.chunk.reduce((r,o)=>[...r,...o],[]).filter(r=>{if(!this.filterEmptyColumn)return!0;if(r==null)return!1;let o=!1;return Object.keys(r).forEach(i=>{o=o||r[i]!==void 0&&r[i]!==""&&r[i]!==null}),o})),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},changePage(e){e!==this.nowPage&&(this.chunk[this.nowPage-1]=this.pageData,this.nowPage=e,this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),this.rule[0].children=this.trs)},updateTable(){this.paginateArray(),this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((e,t)=>{this.trs[t]||this.addRaw(),this.setRawData(t,e||{})}),this.rule[0].children=this.trs},delRaw(e){this.disabled||this.deletable===!1||this.min>0&&this.total<=this.min||(this.trs.splice(e,1),this.rule[1].props.data.splice(e,1),this.updateValue(),this.$emit("delete",e),this.oldValue="")},addRaw(e){if(!(e&&(this.disabled||this.addable===!1))){if(!e){const t=this.formCreateInject.form.parseJson(this.copy);this.trs.push(t);return}if(this.chunk[this.chunk.length-1].length>=this.limit)this.chunk.push([{}]);else if(e&&this.chunk[this.chunk.length-1].push({}),e&&this.nowPage===this.chunk.length){const t=this.formCreateInject.form.parseJson(this.copy);this.trs.push(t)}e&&(this.$emit("add",this.total),this.updateValue())}},btnProps(e,t){const r={...t};r.row=this.modelValue[t.$index]||{};const o=e.prop||[],i={type:e.type,size:e.size,round:o.indexOf("round")>-1,link:o.indexOf("link")>-1,plain:o.indexOf("plain")>-1,disabled:o.indexOf("disabled")>-1||this.disabled||e.key==="delete"&&this.deletable===!1,onClick:l=>{if(r.row=this.modelValue[t.$index]||{},l.stopPropagation(),e.key==="delete"){this.delRaw(t.$index);return}const d=Nr(e.click);try{d&&d(r,this.formCreateInject.api)}catch(c){console.error(c)}this.$emit("handleClick",{name:e.name,key:e.key,_scope:r,column:r.row})}};try{if(!this.disabled){const l=Nr(e.handle),d=l&&l(i,r,this.formCreateInject.api);typeof d=="boolean"&&(i.disabled=d)}}catch(l){console.error(l)}return i},processRule(e){let t=[];return e.forEach(r=>{r.children?t.push(...this.processRule(r.children)):(r._renderId=We(),t.push({type:"template",name:r._renderId,children:[...r.rule||[]]}))}),t},processColumns(e){return e.map((t,r)=>{var i;const o={type:"el-table-column",hidden:t.hidden===!0,props:{fixed:t.fixed||!1,width:((i=t==null?void 0:t.style)==null?void 0:i.width)||"auto",minWidth:120},renderSlots:{header(){var l;return n.h("span",{class:t.required?"is-required":"",style:{color:(l=t==null?void 0:t.style)==null?void 0:l.color}},t.label)}}};return t.children?o.children=this.processColumns(t.children):o.renderSlots.default=({$index:l})=>{var d,c,u,m,h,y,C,S;for(let w=0;w<((c=(d=this.rule[0])==null?void 0:d.children[l])==null?void 0:c.children.length);w++)if(((m=(u=this.rule[0])==null?void 0:u.children[l])==null?void 0:m.children[w].name)===t._renderId)return(S=(C=this.fapi.renderRule((y=(h=this.rule[0])==null?void 0:h.children[l])==null?void 0:y.children[w],void 0,!0))==null?void 0:C.default)==null?void 0:S.call(C)},o})},loadRule(){this.copy=this.formCreateInject.form.toJson({type:"template",name:"template",subRule:!0,children:this.processRule(this.columns)}),this.rule=[{type:"hidden",children:this.trs},{type:"elTable",style:{width:"100%"},key:1,props:{...this.$attrs,height:this.height,size:this.size,data:[]},children:[]}]}},created(){this.loadRule()},mounted(){const e=this.fapi.sync;this.fapi.sync=t=>{t.tableRenderUni=We(),e(t)},this.updateTable(),this.newColumn&&(!this.modelValue||!this.modelValue.length)&&this.addRaw(!0),this.$watch(()=>[...this.columns],t=>{this.rule[1].children.splice(this.rule[1].children.indexOf(this.indexRule)>-1?1:0,0,...this.processColumns(t)),this.rule[1].key++},{immediate:!0}),this.$watch(()=>this.showIndex,t=>{t===!1&&this.rule[1].children.indexOf(this.indexRule)>-1?this.rule[1].children.splice(0,1):t!==!1&&this.rule[1].children.indexOf(this.indexRule)===-1&&this.rule[1].children.unshift(this.indexRule)},{immediate:!0}),this.$watch(()=>this.formCreateInject.preview&&this.button&&this.button.column&&[{...this.button},...this.button.column],t=>{this.rule[1].children.forEach((r,o)=>{r._tableHandle&&this.rule[1].children.splice(o,1)}),!this.formCreateInject.preview&&this.button.open!==!1&&this.rule[1].children.push({type:"el-table-column",_tableHandle:!0,props:{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},renderSlots:{default:r=>this.button.column.filter(o=>o.hidden!==!0).map(o=>n.h(n.resolveComponent("el-button"),this.btnProps(o,r),()=>[o.key==="delete"&&this.formCreateInject.t("delete")||o.name]))}})},{immediate:!0})}},PV={class:"_fc-tf-pro-handle"};function LV(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-pagination");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-table-form-v2",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,disabled:r.disabled,onChange:l.formChange,api:i.fapi,"onUpdate:api":t[0]||(t[0]=u=>i.fapi=u),onEmitEvent:e.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),n.createElementVNode("div",PV,[n.createElementVNode("div",null,[(!r.max||r.max>l.total)&&r.addable!==!1&&r.disabled!==!0?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=u=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)]),r.page&&r.page.open===!0&&i.chunk.length>1?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0},r.page.props||{},{layout:"prev, pager, next",currentPage:i.nowPage,"onUpdate:currentPage":l.changePage,total:l.total,pageSize:l.limit}),null,16,["currentPage","onUpdate:currentPage","total","pageSize"])):n.createCommentVNode("",!0)])],2)}const jV=De(MV,[["render",LV]]),X6="",zV=n.defineComponent({name:"TableFormColumnView",props:{label:String,width:[Number,String],color:String,required:Boolean},computed:{colStyle(){const e=this.width,t={width:ct.Number(e)?`${e}px`:!e||e==="auto"?"180px":e};return this.color&&(t.color=this.color),t}},data(){return{}}}),UV={class:"_fd-tf-title"},HV={key:0,class:"_fd-tf-required"},WV={class:"_fd-tf-con"};function GV(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:"_fd-tf-col",style:n.normalizeStyle(e.colStyle)},[n.createElementVNode("div",UV,[e.required?(n.openBlock(),n.createElementBlock("span",HV,"*")):n.createCommentVNode("",!0),n.createTextVNode(n.toDisplayString(e.label||""),1)]),n.createElementVNode("div",WV,[n.renderSlot(e.$slots,"default")])],4)}const Ng=De(zV,[["render",GV]]),Z6="",KV=n.defineComponent({name:"StepFormItemView",props:{title:String,description:String,formCreateInject:Object},inject:["stepForm"],data(){return{}},created(){const e=this.stepForm.formCreateInject.children.indexOf(this.formCreateInject.rule);this.stepForm.stepItemRef.splice(e,0,this)},unmounted(){this.stepForm.stepItemRef.splice(this.stepForm.stepItemRef.indexOf(this),1)},methods:{}}),YV={class:"_fd-step-form-item"};function QV(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",YV,[n.withDirectives(n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")],512),[[n.vShow,e.stepForm.activeId===e.formCreateInject.rule._fc_id]])])}const JV=De(KV,[["render",QV]]),q6="",XV=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},fullscreen:Boolean},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),ZV={class:"el-dialog__header show-close"},qV={class:"el-dialog__title"},eB={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"48px"}},tB={class:"el-dialog__body"},nB={class:"el-dialog__footer"};function iB(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:"_fd-dialog el-dialog",style:n.normalizeStyle(`--fc-dialog-height:${e.dragConHeight-23}px;`)},[n.createElementVNode("header",ZV,[n.createElementVNode("span",qV,n.toDisplayString(e.title),1),e.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",eB,t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-page-max"},null,-1)]))),t[1]||(t[1]=n.createElementVNode("button",{class:"el-dialog__headerbtn",type:"button"},[n.createElementVNode("i",{class:"el-icon el-dialog__close"},[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})])])],-1))]),n.createElementVNode("div",tB,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("footer",nB,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})],64)):n.createCommentVNode("",!0)])],4)}const rB=De(XV,[["render",iB]]),ej="",oB=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object},computed:{formOptions(){const e={...this.options};return this.preview&&(e.preview=this.preview),e}},data(){return{visible:!1,max:this.$attrs.fullscreen||!1,fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(e){this.$nextTick(()=>{this.visible=!0,this.value=at(e||this.modelValue||this.formData||{}),this.formRule=at(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),aB={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"36px"}};function lB(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-dialog"},e.$attrs,{fullscreen:e.max,modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=u=>e.visible=u),destroyOnClose:""}),n.createSlots({default:n.withCtx(()=>[e.$attrs.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",aB,[e.max?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-page-min",onClick:t[0]||(t[0]=u=>e.max=!1)})):(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-page-max",onClick:t[1]||(t[1]=u=>e.max=!0)}))])),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.formOptions,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[2]||(t[2]=u=>e.fapi=u),"model-value":e.value,subForm:!1,onChange:e.formChange,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),_:2},[e.footer!==!1?{name:"footer",fn:n.withCtx(()=>[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["fullscreen","modelValue"])}const Dg=De(oB,[["render",lB]]),tj="",sB=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},size:String},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),dB={class:"el-drawer__header"},cB={key:0,class:"el-drawer__close-btn",type:"button"},uB={class:"el-drawer__body"},fB={class:"el-drawer__footer"};function pB(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:"el-drawer _fd-drawer",style:n.normalizeStyle(`--fc-drawer-height:${e.dragConHeight-23}px;`)},[t[2]||(t[2]=n.createElementVNode("span",{class:"el-drawer__sr-focus",tabindex:"-1"},null,-1)),n.createElementVNode("header",dB,[n.createElementVNode("span",null,n.toDisplayString(e.title),1),e.size!=="100%"?(n.openBlock(),n.createElementBlock("button",cB,t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-page-max"},null,-1)]))):n.createCommentVNode("",!0),t[1]||(t[1]=n.createElementVNode("button",{class:"el-drawer__close-btn",type:"button"},[n.createElementVNode("i",{class:"el-icon el-drawer__close"},[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})])])],-1))]),n.createElementVNode("div",uB,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("div",fB,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})],64)):n.createCommentVNode("",!0)])],4)}const hB=De(sB,[["render",pB]]),nj="",mB=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},size:[Number,String],title:String,rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object},computed:{formOptions(){const e={...this.options};return this.preview&&(e.preview=this.preview),e}},data(){return{visible:!1,max:this.size==="100%",fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(e){this.$nextTick(()=>{this.visible=!0,this.value=at(e||this.modelValue||this.formData||{}),this.formRule=at(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),gB={class:"el-drawer__title"},vB={key:0,class:"el-drawer__close-btn",type:"button"};function yB(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-drawer");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-drawer"},e.$attrs,{size:e.max?"100%":e.size,modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=u=>e.visible=u),destroyOnClose:""}),{header:n.withCtx(()=>[n.createElementVNode("span",gB,n.toDisplayString(e.title),1),e.size!=="100%"?(n.openBlock(),n.createElementBlock("button",vB,[e.max?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-page-min",onClick:t[0]||(t[0]=u=>e.max=!1)})):(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-page-max",onClick:t[1]||(t[1]=u=>e.max=!0)}))])):n.createCommentVNode("",!0)]),footer:n.withCtx(()=>[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])],64)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.formOptions,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[2]||(t[2]=u=>e.fapi=u),"model-value":e.value,subForm:!1,onChange:e.formChange,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),_:1},16,["size","modelValue"])}const bB=De(mB,[["render",yB]]),ij="",wB=n.defineComponent({name:"FcCell"}),CB={ref:"cell",class:"_fc-cell"};function _B(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",CB,[n.renderSlot(e.$slots,"default")],512)}const EB=De(wB,[["render",_B]]),rj="",AB=n.defineComponent({name:"FcCell",inheritAttrs:!1,data(){return{isNew:!1}},computed:{style(){const e=this.$attrs.style||{},t={"--fc-cell-display":e.display||"block","--fc-cell-flexDirection":e.flexDirection||"inherit","--fc-cell-flexWrap":e.flexWrap||"inherit","--fc-cell-alignContent":e.alignContent||"inherit","--fc-cell-justifyContent":e.justifyContent||"inherit","--fc-cell-alignItems":e.alignItems||"inherit"};return e.height&&(t.height=e.height||"auto"),e.width&&(t.width=e.width||"auto"),t}},mounted(){this.isNew=this.$el.parentNode.classList.contains("_fd-drag-item"),this.isNew&&this.$watch("$attrs.style.width",e=>{n.nextTick(()=>{this.$el.parentNode.style.width=e||"100%"})},{immediate:!0})}});function SB(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{ref:"cell",class:n.normalizeClass(["_fd-cell",{"is-new":e.isNew}]),style:n.normalizeStyle(e.style)},[n.createElementVNode("div",n.mergeProps(e.$attrs,{style:{height:"100%",width:"100%"}}),[n.renderSlot(e.$slots,"default")],16)],6)}const xB=De(AB,[["render",SB]]),oj="",kB=n.defineComponent({name:"fcRow",mounted(){}});function TB(e,t,r,o,i,l){const d=n.resolveComponent("el-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",n.mergeProps({class:["_fd-row el-row",{"_fc-child-empty":!e.$slots.default}]},e.$attrs),[n.renderSlot(e.$slots,"default")],16)]),_:3})}const NB=De(kB,[["render",TB]]),aj="",DB=n.defineComponent({name:"HideSwitch",props:{modelValue:[String,Boolean,Number],activeValue:{type:[String,Boolean,Number],default:!0},inactiveValue:{type:[String,Boolean,Number],default:!1},disabled:Boolean},events:["update:modelValue"],inject:["designer"],computed:{t(){return this.designer.setupState.t}},methods:{onInput(){this.disabled||this.$emit("update:modelValue",this.modelValue!==this.activeValue?this.activeValue:this.inactiveValue)}}});function OB(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-hide-config",{disabled:!!e.disabled,active:e.modelValue===e.activeValue}]),onClick:t[0]||(t[0]=(...d)=>e.onInput&&e.onInput(...d))},[e.modelValue===e.activeValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-eye"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.show")),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)],64))],2)}const VB=De(DB,[["render",OB]]),lj="",BB=n.defineComponent({name:"SpanInput",props:{modelValue:[Number,String]},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{layout:[{label:"1/4",value:6},{label:"1/3",value:8},{label:"1/2",value:12},{label:"2/3",value:16},{label:"3/4",value:18},{label:"\u6574\u884C",value:24}]}},methods:{onInput(e){this.$emit("update:modelValue",e===this.modelValue?"":e)}}});function RB(e,t,r,o,i,l){const d=n.resolveComponent("el-radio-button"),c=n.resolveComponent("el-radio-group");return n.openBlock(),n.createBlock(c,{modelValue:e.modelValue,class:"_fd-span-input"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,u=>(n.openBlock(),n.createBlock(d,{value:u.value,label:u.value,key:u.value,onClick:m=>e.onInput(u.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.value===24?e.t("form.row"):u.label),1)]),_:2},1032,["value","label","onClick"]))),128))]),_:1},8,["modelValue"])}const $B=De(BB,[["render",RB]]);function du(e,t,r){for(var o=[],i=Math.max(e.length,t.length),l=0,d=0;d<i||l;){var c=d<e.length?e[d]:0,u=d<t.length?t[d]:0,m=l+c+u;o.push(m%r),l=Math.floor(m/r),d++}return o}function Og(e,t,r){if(e<0)return null;if(e==0)return[];for(var o=[],i=t;e&1&&(o=du(o,i,r)),e=e>>1,e!==0;)i=du(i,i,r);return o}function IB(e,t){for(var r=e.split(""),o=[],i=r.length-1;i>=0;i--){var l=parseInt(r[i],t);if(isNaN(l))return null;o.push(l)}return o}function FB(e,t,r){var o=IB(e,t);if(o===null)return null;for(var i=[],l=[1],d=0;d<o.length;d++)o[d]&&(i=du(i,Og(o[d],l,r),r)),l=Og(t,l,r);for(var c="",d=i.length-1;d>=0;d--)c+=i[d].toString(r);return c}function MB(e){return e.substring(0,2)==="0x"&&(e=e.substring(2)),e=e.toLowerCase(),FB(e,16,10)}class PB{constructor(t){t=t||{},this.seq=0,this.mid=(t.mid||1)%1023,this.offset=t.offset||0,this.lastTime=0}generate(){const t=Date.now(),r=(t-this.offset).toString(2);this.lastTime==t?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=t;let o=this.seq.toString(2),i=this.mid.toString(2);for(;o.length<12;)o="0"+o;for(;i.length<10;)i="0"+i;const l=r+i+o;let d="";for(let c=l.length;c>0;c-=4)d=parseInt(l.substring(c-4,c),2).toString(16)+d;return MB(d)}}const LB=n.defineComponent({name:"FcId",props:["modelValue","prefix"],emits:["update:modelValue"],inject:{designer:{default:null}},data(){return{preview:"7379787000000000"}},watch:{modelValue:{handler:function(e){if(!e){const t=new PB({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+t.generate())}},immediate:!0}}});function jB(e,t,r,o,i,l){const d=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(d,{modelValue:e.designer?""+(e.prefix||"")+e.preview:e.modelValue,readonly:"",disabled:""},null,8,["modelValue"])}const zB=De(LB,[["render",jB]]),UB=n.defineComponent({name:"AudioBox",emits:["pause","play","ended"],data(){return{}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,loop:Boolean,preload:{type:String,default:"auto"},muted:Boolean}}),HB=["controls","autoplay","loop","preload","muted"],WB=["src","type"];function GB(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("audio",{key:e.src,controls:e.controls,autoplay:e.autoplay,loop:e.loop,preload:e.preload,muted:e.muted,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},[n.createElementVNode("source",{src:e.src,type:e.type},null,8,WB),t[3]||(t[3]=n.createTextVNode(" Your browser does not support the audio element. "))],40,HB)}const KB=De(UB,[["render",GB]]),sj="",YB=n.defineComponent({name:"VideoBox",emits:["pause","play","ended","error"],data(){return{player:null}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,isLive:Boolean,withCredentials:Boolean,loop:Boolean},watch:{src:{handler:function(){this.$nextTick(()=>{on.ready("mpegts",()=>{const e=this.$refs.video,t=window.mpegts.createPlayer({isLive:this.isLive,type:this.type,url:this.src});t.attachMediaElement(e),t.on("error",r=>{this.$emit("error",r)}),t.load(),this.autoplay&&t.play().catch(r=>{this.$emit("error",r)}),this.player=t})})},immediate:!0}},created(){window.mpegts?on.done("mpegts"):on.isDefined("mpegts")||on.loadNpm("mpegts.js@1.8.0/dist/mpegts.js","mpegts")}}),QB=["controls","loop"];function JB(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("video",{ref:"video",class:"_fc-video-box",controls:e.controls,loop:e.loop,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},null,40,QB)}const XB=De(YB,[["render",JB]]);var cu={},Kl={},xn={};Object.defineProperty(xn,"__esModule",{value:!0});function ZB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qB=function e(t,r){ZB(this,e),this.data=t,this.text=r.text||t,this.options=r};xn.default=qB,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.CODE39=void 0;var eR=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),tR=xn,nR=iR(tR);function iR(e){return e&&e.__esModule?e:{default:e}}function rR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function aR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var lR=function(e){aR(t,e);function t(r,o){return rR(this,t),r=r.toUpperCase(),o.mod43&&(r+=cR(uR(r))),oR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return eR(t,[{key:"encode",value:function(){for(var o=uu("*"),i=0;i<this.data.length;i++)o+=uu(this.data[i])+"0";return o+=uu("*"),{data:o,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),t}(nR.default),Vg=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],sR=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function uu(e){return dR(Bg(e))}function dR(e){return sR[e].toString(2)}function cR(e){return Vg[e]}function Bg(e){return Vg.indexOf(e)}function uR(e){for(var t=0,r=0;r<e.length;r++)t+=Bg(e[r]);return t=t%43,t}Kl.CODE39=lR;var pi={},fu={},Zr={},Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});var Jo;function pu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rg=Dt.SET_A=0,$g=Dt.SET_B=1,Ig=Dt.SET_C=2;Dt.SHIFT=98;var fR=Dt.START_A=103,pR=Dt.START_B=104,hR=Dt.START_C=105;Dt.MODULO=103,Dt.STOP=106,Dt.FNC1=207,Dt.SET_BY_CODE=(Jo={},pu(Jo,fR,Rg),pu(Jo,pR,$g),pu(Jo,hR,Ig),Jo),Dt.SWAP={101:Rg,100:$g,99:Ig},Dt.A_START_CHAR=String.fromCharCode(208),Dt.B_START_CHAR=String.fromCharCode(209),Dt.C_START_CHAR=String.fromCharCode(210),Dt.A_CHARS="[\0-_\xC8-\xCF]",Dt.B_CHARS="[ -\x7F\xC8-\xCF]",Dt.C_CHARS="(\xCF*[0-9]{2}\xCF*)",Dt.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(Zr,"__esModule",{value:!0});var mR=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),gR=xn,vR=yR(gR),$n=Dt;function yR(e){return e&&e.__esModule?e:{default:e}}function bR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function CR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _R=function(e){CR(t,e);function t(r,o){bR(this,t);var i=wR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.substring(1),o));return i.bytes=r.split("").map(function(l){return l.charCodeAt(0)}),i}return mR(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var o=this.bytes,i=o.shift()-105,l=$n.SET_BY_CODE[i];if(l===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&o.unshift($n.FNC1);var d=t.next(o,1,l);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(i)+d.result+t.getBar((d.checksum+i)%$n.MODULO)+t.getBar($n.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var o=this.options.ean128||!1;return typeof o=="string"&&(o=o.toLowerCase()==="true"),o}}],[{key:"getBar",value:function(o){return $n.BARS[o]?$n.BARS[o].toString():""}},{key:"correctIndex",value:function(o,i){if(i===$n.SET_A){var l=o.shift();return l<32?l+64:l-32}else return i===$n.SET_B?o.shift()-32:(o.shift()-48)*10+o.shift()-48}},{key:"next",value:function(o,i,l){if(!o.length)return{result:"",checksum:0};var d=void 0,c=void 0;if(o[0]>=200){c=o.shift()-105;var u=$n.SWAP[c];u!==void 0?d=t.next(o,i+1,u):((l===$n.SET_A||l===$n.SET_B)&&c===$n.SHIFT&&(o[0]=l===$n.SET_A?o[0]>95?o[0]-96:o[0]:o[0]<32?o[0]+96:o[0]),d=t.next(o,i+1,l))}else c=t.correctIndex(o,l),d=t.next(o,i+1,l);var m=t.getBar(c),h=c*i;return{result:m+d.result,checksum:h+d.checksum}}}]),t}(vR.default);Zr.default=_R;var hu={};Object.defineProperty(hu,"__esModule",{value:!0});var Ui=Dt,Fg=function(t){return t.match(new RegExp("^"+Ui.A_CHARS+"*"))[0].length},Mg=function(t){return t.match(new RegExp("^"+Ui.B_CHARS+"*"))[0].length},Pg=function(t){return t.match(new RegExp("^"+Ui.C_CHARS+"*"))[0]};function mu(e,t){var r=t?Ui.A_CHARS:Ui.B_CHARS,o=e.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+Lg(e.substring(o[1].length));var i=e.match(new RegExp("^"+r+"+"))[0];return i.length===e.length?e:i+String.fromCharCode(t?205:206)+mu(e.substring(i.length),!t)}function Lg(e){var t=Pg(e),r=t.length;if(r===e.length)return e;e=e.substring(r);var o=Fg(e)>=Mg(e);return t+String.fromCharCode(o?206:205)+mu(e,o)}hu.default=function(e){var t=void 0,r=Pg(e).length;if(r>=2)t=Ui.C_START_CHAR+Lg(e);else{var o=Fg(e)>Mg(e);t=(o?Ui.A_START_CHAR:Ui.B_START_CHAR)+mu(e,o)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,l){return String.fromCharCode(203)+l})},Object.defineProperty(fu,"__esModule",{value:!0});var ER=Zr,AR=jg(ER),SR=hu,xR=jg(SR);function jg(e){return e&&e.__esModule?e:{default:e}}function kR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function TR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var NR=function(e){TR(t,e);function t(r,o){if(kR(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var i=gu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,xR.default)(r),o));else var i=gu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return gu(i)}return t}(AR.default);fu.default=NR;var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var DR=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),OR=Zr,VR=BR(OR),zg=Dt;function BR(e){return e&&e.__esModule?e:{default:e}}function RR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $R(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function IR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var FR=function(e){IR(t,e);function t(r,o){return RR(this,t),$R(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,zg.A_START_CHAR+r,o))}return DR(t,[{key:"valid",value:function(){return new RegExp("^"+zg.A_CHARS+"+$").test(this.data)}}]),t}(VR.default);vu.default=FR;var yu={};Object.defineProperty(yu,"__esModule",{value:!0});var MR=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),PR=Zr,LR=jR(PR),Ug=Dt;function jR(e){return e&&e.__esModule?e:{default:e}}function zR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function HR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var WR=function(e){HR(t,e);function t(r,o){return zR(this,t),UR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Ug.B_START_CHAR+r,o))}return MR(t,[{key:"valid",value:function(){return new RegExp("^"+Ug.B_CHARS+"+$").test(this.data)}}]),t}(LR.default);yu.default=WR;var bu={};Object.defineProperty(bu,"__esModule",{value:!0});var GR=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),KR=Zr,YR=QR(KR),Hg=Dt;function QR(e){return e&&e.__esModule?e:{default:e}}function JR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ZR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var qR=function(e){ZR(t,e);function t(r,o){return JR(this,t),XR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Hg.C_START_CHAR+r,o))}return GR(t,[{key:"valid",value:function(){return new RegExp("^"+Hg.C_CHARS+"+$").test(this.data)}}]),t}(YR.default);bu.default=qR,Object.defineProperty(pi,"__esModule",{value:!0}),pi.CODE128C=pi.CODE128B=pi.CODE128A=pi.CODE128=void 0;var e$=fu,t$=Yl(e$),n$=vu,i$=Yl(n$),r$=yu,o$=Yl(r$),a$=bu,l$=Yl(a$);function Yl(e){return e&&e.__esModule?e:{default:e}}pi.CODE128=t$.default,pi.CODE128A=i$.default,pi.CODE128B=o$.default,pi.CODE128C=l$.default;var kn={},wu={},jn={};Object.defineProperty(jn,"__esModule",{value:!0}),jn.SIDE_BIN="101",jn.MIDDLE_BIN="01010",jn.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},jn.EAN2_STRUCTURE=["LL","LG","GL","GG"],jn.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],jn.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Ql={},fr={};Object.defineProperty(fr,"__esModule",{value:!0});var s$=jn,d$=function(t,r,o){var i=t.split("").map(function(d,c){return s$.BINARIES[r[c]]}).map(function(d,c){return d?d[t[c]]:""});if(o){var l=t.length-1;i=i.map(function(d,c){return c<l?d+o:d})}return i.join("")};fr.default=d$,Object.defineProperty(Ql,"__esModule",{value:!0});var c$=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),qr=jn,u$=fr,Wg=Gg(u$),f$=xn,p$=Gg(f$);function Gg(e){return e&&e.__esModule?e:{default:e}}function h$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function g$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v$=function(e){g$(t,e);function t(r,o){h$(this,t);var i=m$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.fontSize=!o.flat&&o.fontSize>o.width*10?o.width*10:o.fontSize,i.guardHeight=o.height+i.fontSize/2+o.textMargin,i}return c$(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(o,i){return this.text.substr(o,i)}},{key:"leftEncode",value:function(o,i){return(0,Wg.default)(o,i)}},{key:"rightText",value:function(o,i){return this.text.substr(o,i)}},{key:"rightEncode",value:function(o,i){return(0,Wg.default)(o,i)}},{key:"encodeGuarded",value:function(){var o={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:qr.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:o},{data:qr.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:o},{data:qr.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var o=[qr.SIDE_BIN,this.leftEncode(),qr.MIDDLE_BIN,this.rightEncode(),qr.SIDE_BIN];return{data:o.join(""),text:this.text}}}]),t}(p$.default);Ql.default=v$,Object.defineProperty(wu,"__esModule",{value:!0});var y$=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Xo=function e(t,r,o){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(i===void 0){var l=Object.getPrototypeOf(t);return l===null?void 0:e(l,r,o)}else{if("value"in i)return i.value;var d=i.get;return d===void 0?void 0:d.call(o)}},b$=jn,w$=Ql,C$=_$(w$);function _$(e){return e&&e.__esModule?e:{default:e}}function E$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function S$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Kg=function(t){var r=t.substr(0,12).split("").map(function(o){return+o}).reduce(function(o,i,l){return l%2?o+i*3:o+i},0);return(10-r%10)%10},x$=function(e){S$(t,e);function t(r,o){E$(this,t),r.search(/^[0-9]{12}$/)!==-1&&(r+=Kg(r));var i=A$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.lastChar=o.lastChar,i}return y$(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Kg(this.data)}},{key:"leftText",value:function(){return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var o=this.data.substr(1,6),i=b$.EAN13_STRUCTURE[this.data[0]];return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,o,i)}},{key:"rightText",value:function(){return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var o=this.data.substr(7,6);return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,o,"RRRRRR")}},{key:"encodeGuarded",value:function(){var o=Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(o.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(o.push({data:"00"}),o.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),o}}]),t}(C$.default);wu.default=x$;var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});var k$=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Jl=function e(t,r,o){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(i===void 0){var l=Object.getPrototypeOf(t);return l===null?void 0:e(l,r,o)}else{if("value"in i)return i.value;var d=i.get;return d===void 0?void 0:d.call(o)}},T$=Ql,N$=D$(T$);function D$(e){return e&&e.__esModule?e:{default:e}}function O$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function B$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Yg=function(t){var r=t.substr(0,7).split("").map(function(o){return+o}).reduce(function(o,i,l){return l%2?o+i:o+i*3},0);return(10-r%10)%10},R$=function(e){B$(t,e);function t(r,o){return O$(this,t),r.search(/^[0-9]{7}$/)!==-1&&(r+=Yg(r)),V$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return k$(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Yg(this.data)}},{key:"leftText",value:function(){return Jl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var o=this.data.substr(0,4);return Jl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,o,"LLLL")}},{key:"rightText",value:function(){return Jl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var o=this.data.substr(4,4);return Jl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,o,"RRRR")}}]),t}(N$.default);Cu.default=R$;var _u={};Object.defineProperty(_u,"__esModule",{value:!0});var $$=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),I$=jn,F$=fr,M$=Qg(F$),P$=xn,L$=Qg(P$);function Qg(e){return e&&e.__esModule?e:{default:e}}function j$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function U$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var H$=function(t){var r=t.split("").map(function(o){return+o}).reduce(function(o,i,l){return l%2?o+i*9:o+i*3},0);return r%10},W$=function(e){U$(t,e);function t(r,o){return j$(this,t),z$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return $$(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var o=I$.EAN5_STRUCTURE[H$(this.data)];return{data:"1011"+(0,M$.default)(this.data,o,"01"),text:this.text}}}]),t}(L$.default);_u.default=W$;var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var G$=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),K$=jn,Y$=fr,Q$=Jg(Y$),J$=xn,X$=Jg(J$);function Jg(e){return e&&e.__esModule?e:{default:e}}function Z$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function eI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var tI=function(e){eI(t,e);function t(r,o){return Z$(this,t),q$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return G$(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var o=K$.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,Q$.default)(this.data,o,"01"),text:this.text}}}]),t}(X$.default);Eu.default=tI;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});var nI=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();Zo.checksum=Au;var iI=fr,eo=Xg(iI),rI=xn,oI=Xg(rI);function Xg(e){return e&&e.__esModule?e:{default:e}}function aI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lI(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function sI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var dI=function(e){sI(t,e);function t(r,o){aI(this,t),r.search(/^[0-9]{11}$/)!==-1&&(r+=Au(r));var i=lI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.displayValue=o.displayValue,o.fontSize>o.width*10?i.fontSize=o.width*10:i.fontSize=o.fontSize,i.guardHeight=o.height+i.fontSize/2+o.textMargin,i}return nI(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Au(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var o="";return o+="101",o+=(0,eo.default)(this.data.substr(0,6),"LLLLLL"),o+="01010",o+=(0,eo.default)(this.data.substr(6,6),"RRRRRR"),o+="101",{data:o,text:this.text}}},{key:"guardedEncoding",value:function(){var o=[];return this.displayValue&&o.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),o.push({data:"101"+(0,eo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),o.push({data:(0,eo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),o.push({data:"01010",options:{height:this.guardHeight}}),o.push({data:(0,eo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),o.push({data:(0,eo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&o.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),o}}]),t}(oI.default);function Au(e){var t=0,r;for(r=1;r<11;r+=2)t+=parseInt(e[r]);for(r=0;r<11;r+=2)t+=parseInt(e[r])*3;return(10-t%10)%10}Zo.default=dI;var Su={};Object.defineProperty(Su,"__esModule",{value:!0});var cI=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),uI=fr,fI=Zg(uI),pI=xn,hI=Zg(pI),mI=Zo;function Zg(e){return e&&e.__esModule?e:{default:e}}function gI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function vI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yI=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],bI=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],wI=function(e){vI(t,e);function t(r,o){gI(this,t);var i=xu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));if(i.isValid=!1,r.search(/^[0-9]{6}$/)!==-1)i.middleDigits=r,i.upcA=qg(r,"0"),i.text=o.text||""+i.upcA[0]+r+i.upcA[i.upcA.length-1],i.isValid=!0;else if(r.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=r.substring(1,r.length-1),i.upcA=qg(i.middleDigits,r[0]),i.upcA[i.upcA.length-1]===r[r.length-1])i.isValid=!0;else return xu(i);else return xu(i);return i.displayValue=o.displayValue,o.fontSize>o.width*10?i.fontSize=o.width*10:i.fontSize=o.fontSize,i.guardHeight=o.height+i.fontSize/2+o.textMargin,i}return cI(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var o="";return o+="101",o+=this.encodeMiddleDigits(),o+="010101",{data:o,text:this.text}}},{key:"guardedEncoding",value:function(){var o=[];return this.displayValue&&o.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),o.push({data:"101",options:{height:this.guardHeight}}),o.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),o.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&o.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),o}},{key:"encodeMiddleDigits",value:function(){var o=this.upcA[0],i=this.upcA[this.upcA.length-1],l=bI[parseInt(i)][parseInt(o)];return(0,fI.default)(this.middleDigits,l)}}]),t}(hI.default);function qg(e,t){for(var r=parseInt(e[e.length-1]),o=yI[r],i="",l=0,d=0;d<o.length;d++){var c=o[d];c==="X"?i+=e[l++]:i+=c}return i=""+t+i,""+i+(0,mI.checksum)(i)}Su.default=wI,Object.defineProperty(kn,"__esModule",{value:!0}),kn.UPCE=kn.UPC=kn.EAN2=kn.EAN5=kn.EAN8=kn.EAN13=void 0;var CI=wu,_I=to(CI),EI=Cu,AI=to(EI),SI=_u,xI=to(SI),kI=Eu,TI=to(kI),NI=Zo,DI=to(NI),OI=Su,VI=to(OI);function to(e){return e&&e.__esModule?e:{default:e}}kn.EAN13=_I.default,kn.EAN8=AI.default,kn.EAN5=xI.default,kn.EAN2=TI.default,kn.UPC=DI.default,kn.UPCE=VI.default;var no={},Xl={},qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.START_BIN="1010",qo.END_BIN="11101",qo.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(Xl,"__esModule",{value:!0});var BI=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Zl=qo,RI=xn,$I=II(RI);function II(e){return e&&e.__esModule?e:{default:e}}function FI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MI(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function PI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var LI=function(e){PI(t,e);function t(){return FI(this,t),MI(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return BI(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var o=this,i=this.data.match(/.{2}/g).map(function(l){return o.encodePair(l)}).join("");return{data:Zl.START_BIN+i+Zl.END_BIN,text:this.text}}},{key:"encodePair",value:function(o){var i=Zl.BINARIES[o[1]];return Zl.BINARIES[o[0]].split("").map(function(l,d){return(l==="1"?"111":"1")+(i[d]==="1"?"000":"0")}).join("")}}]),t}($I.default);Xl.default=LI;var ku={};Object.defineProperty(ku,"__esModule",{value:!0});var jI=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),zI=Xl,UI=HI(zI);function HI(e){return e&&e.__esModule?e:{default:e}}function WI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GI(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function KI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ev=function(t){var r=t.substr(0,13).split("").map(function(o){return parseInt(o,10)}).reduce(function(o,i,l){return o+i*(3-l%2*2)},0);return Math.ceil(r/10)*10-r},YI=function(e){KI(t,e);function t(r,o){return WI(this,t),r.search(/^[0-9]{13}$/)!==-1&&(r+=ev(r)),GI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return jI(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===ev(this.data)}}]),t}(UI.default);ku.default=YI,Object.defineProperty(no,"__esModule",{value:!0}),no.ITF14=no.ITF=void 0;var QI=Xl,JI=tv(QI),XI=ku,ZI=tv(XI);function tv(e){return e&&e.__esModule?e:{default:e}}no.ITF=JI.default,no.ITF14=ZI.default;var zn={},pr={};Object.defineProperty(pr,"__esModule",{value:!0});var qI=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),eF=xn,tF=nF(eF);function nF(e){return e&&e.__esModule?e:{default:e}}function iF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rF(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function oF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var aF=function(e){oF(t,e);function t(r,o){return iF(this,t),rF(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return qI(t,[{key:"encode",value:function(){for(var o="110",i=0;i<this.data.length;i++){var l=parseInt(this.data[i]),d=l.toString(2);d=lF(d,4-d.length);for(var c=0;c<d.length;c++)o+=d[c]=="0"?"100":"110"}return o+="1001",{data:o,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t}(tF.default);function lF(e,t){for(var r=0;r<t;r++)e="0"+e;return e}pr.default=aF;var Tu={},hr={};Object.defineProperty(hr,"__esModule",{value:!0}),hr.mod10=sF,hr.mod11=dF;function sF(e){for(var t=0,r=0;r<e.length;r++){var o=parseInt(e[r]);(r+e.length)%2===0?t+=o:t+=o*2%10+Math.floor(o*2/10)}return(10-t%10)%10}function dF(e){for(var t=0,r=[2,3,4,5,6,7],o=0;o<e.length;o++){var i=parseInt(e[e.length-1-o]);t+=r[o%r.length]*i}return(11-t%11)%11}Object.defineProperty(Tu,"__esModule",{value:!0});var cF=pr,uF=pF(cF),fF=hr;function pF(e){return e&&e.__esModule?e:{default:e}}function hF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mF(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function gF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vF=function(e){gF(t,e);function t(r,o){return hF(this,t),mF(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r+(0,fF.mod10)(r),o))}return t}(uF.default);Tu.default=vF;var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var yF=pr,bF=CF(yF),wF=hr;function CF(e){return e&&e.__esModule?e:{default:e}}function _F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EF(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function AF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var SF=function(e){AF(t,e);function t(r,o){return _F(this,t),EF(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r+(0,wF.mod11)(r),o))}return t}(bF.default);Nu.default=SF;var Du={};Object.defineProperty(Du,"__esModule",{value:!0});var xF=pr,kF=TF(xF),nv=hr;function TF(e){return e&&e.__esModule?e:{default:e}}function NF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DF(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var VF=function(e){OF(t,e);function t(r,o){return NF(this,t),r+=(0,nv.mod10)(r),r+=(0,nv.mod10)(r),DF(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return t}(kF.default);Du.default=VF;var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});var BF=pr,RF=$F(BF),iv=hr;function $F(e){return e&&e.__esModule?e:{default:e}}function IF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FF(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function MF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var PF=function(e){MF(t,e);function t(r,o){return IF(this,t),r+=(0,iv.mod11)(r),r+=(0,iv.mod10)(r),FF(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return t}(RF.default);Ou.default=PF,Object.defineProperty(zn,"__esModule",{value:!0}),zn.MSI1110=zn.MSI1010=zn.MSI11=zn.MSI10=zn.MSI=void 0;var LF=pr,jF=ea(LF),zF=Tu,UF=ea(zF),HF=Nu,WF=ea(HF),GF=Du,KF=ea(GF),YF=Ou,QF=ea(YF);function ea(e){return e&&e.__esModule?e:{default:e}}zn.MSI=jF.default,zn.MSI10=UF.default,zn.MSI11=WF.default,zn.MSI1010=KF.default,zn.MSI1110=QF.default;var ql={};Object.defineProperty(ql,"__esModule",{value:!0}),ql.pharmacode=void 0;var JF=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),XF=xn,ZF=qF(XF);function qF(e){return e&&e.__esModule?e:{default:e}}function eM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tM(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function nM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var iM=function(e){nM(t,e);function t(r,o){eM(this,t);var i=tM(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.number=parseInt(r,10),i}return JF(t,[{key:"encode",value:function(){for(var o=this.number,i="";!isNaN(o)&&o!=0;)o%2===0?(i="11100"+i,o=(o-2)/2):(i="100"+i,o=(o-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(ZF.default);ql.pharmacode=iM;var es={};Object.defineProperty(es,"__esModule",{value:!0}),es.codabar=void 0;var rM=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),oM=xn,aM=lM(oM);function lM(e){return e&&e.__esModule?e:{default:e}}function sM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dM(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function cM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var uM=function(e){cM(t,e);function t(r,o){sM(this,t),r.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(r="A"+r+"A");var i=dM(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.toUpperCase(),o));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return rM(t,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var o=[],i=this.getEncodings(),l=0;l<this.data.length;l++)o.push(i[this.data.charAt(l)]),l!==this.data.length-1&&o.push("0");return{text:this.text,data:o.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(aM.default);es.codabar=uM;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.GenericBarcode=void 0;var fM=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),pM=xn,hM=mM(pM);function mM(e){return e&&e.__esModule?e:{default:e}}function gM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vM(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function yM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var bM=function(e){yM(t,e);function t(r,o){return gM(this,t),vM(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return fM(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(hM.default);ts.GenericBarcode=bM,Object.defineProperty(cu,"__esModule",{value:!0});var wM=Kl,ns=pi,io=kn,rv=no,ta=zn,CM=ql,_M=es,EM=ts;cu.default={CODE39:wM.CODE39,CODE128:ns.CODE128,CODE128A:ns.CODE128A,CODE128B:ns.CODE128B,CODE128C:ns.CODE128C,EAN13:io.EAN13,EAN8:io.EAN8,EAN5:io.EAN5,EAN2:io.EAN2,UPC:io.UPC,UPCE:io.UPCE,ITF14:rv.ITF14,ITF:rv.ITF,MSI:ta.MSI,MSI10:ta.MSI10,MSI11:ta.MSI11,MSI1010:ta.MSI1010,MSI1110:ta.MSI1110,pharmacode:CM.pharmacode,codabar:_M.codabar,GenericBarcode:EM.GenericBarcode};var ro={};Object.defineProperty(ro,"__esModule",{value:!0});var AM=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};ro.default=function(e,t){return AM({},e,t)};var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.default=SM;function SM(e){var t=[];function r(o){if(Array.isArray(o))for(var i=0;i<o.length;i++)r(o[i]);else o.text=o.text||"",o.data=o.data||"",t.push(o)}return r(e),t}var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.default=xM;function xM(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}var Ru={},$u={},is={};Object.defineProperty(is,"__esModule",{value:!0}),is.default=kM;function kM(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in t)t.hasOwnProperty(r)&&(r=t[r],typeof e[r]=="string"&&(e[r]=parseInt(e[r],10)));return typeof e.displayValue=="string"&&(e.displayValue=e.displayValue!="false"),e}var rs={};Object.defineProperty(rs,"__esModule",{value:!0});var TM={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};rs.default=TM,Object.defineProperty($u,"__esModule",{value:!0});var NM=is,DM=av(NM),OM=rs,ov=av(OM);function av(e){return e&&e.__esModule?e:{default:e}}function VM(e){var t={};for(var r in ov.default)ov.default.hasOwnProperty(r)&&(e.hasAttribute("jsbarcode-"+r.toLowerCase())&&(t[r]=e.getAttribute("jsbarcode-"+r.toLowerCase())),e.hasAttribute("data-"+r.toLowerCase())&&(t[r]=e.getAttribute("data-"+r.toLowerCase())));return t.value=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),t=(0,DM.default)(t),t}$u.default=VM;var Iu={},Fu={},In={};Object.defineProperty(In,"__esModule",{value:!0}),In.getTotalWidthOfEncodings=In.calculateEncodingAttributes=In.getBarcodePadding=In.getEncodingHeight=In.getMaximumHeightOfEncodings=void 0;var BM=ro,RM=$M(BM);function $M(e){return e&&e.__esModule?e:{default:e}}function lv(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function sv(e,t,r){if(r.displayValue&&t<e){if(r.textAlign=="center")return Math.floor((e-t)/2);if(r.textAlign=="left")return 0;if(r.textAlign=="right")return Math.floor(e-t)}return 0}function IM(e,t,r){for(var o=0;o<e.length;o++){var i=e[o],l=(0,RM.default)(t,i.options),d;l.displayValue?d=PM(i.text,l,r):d=0;var c=i.data.length*l.width;i.width=Math.ceil(Math.max(d,c)),i.height=lv(i,l),i.barcodePadding=sv(d,c,l)}}function FM(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].width;return t}function MM(e){for(var t=0,r=0;r<e.length;r++)e[r].height>t&&(t=e[r].height);return t}function PM(e,t,r){var o;if(r)o=r;else if(typeof document<"u")o=document.createElement("canvas").getContext("2d");else return 0;o.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var i=o.measureText(e);if(!i)return 0;var l=i.width;return l}In.getMaximumHeightOfEncodings=MM,In.getEncodingHeight=lv,In.getBarcodePadding=sv,In.calculateEncodingAttributes=IM,In.getTotalWidthOfEncodings=FM,Object.defineProperty(Fu,"__esModule",{value:!0});var LM=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),jM=ro,zM=UM(jM),Mu=In;function UM(e){return e&&e.__esModule?e:{default:e}}function HM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var WM=function(){function e(t,r,o){HM(this,e),this.canvas=t,this.encodings=r,this.options=o}return LM(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var r=0;r<this.encodings.length;r++){var o=(0,zM.default)(this.options,this.encodings[r].options);this.drawCanvasBarcode(o,this.encodings[r]),this.drawCanvasText(o,this.encodings[r]),this.moveCanvasDrawing(this.encodings[r])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var r=this.canvas.getContext("2d");r.save(),(0,Mu.calculateEncodingAttributes)(this.encodings,this.options,r);var o=(0,Mu.getTotalWidthOfEncodings)(this.encodings),i=(0,Mu.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=o+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,r.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(r.fillStyle=this.options.background,r.fillRect(0,0,this.canvas.width,this.canvas.height)),r.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(r,o){var i=this.canvas.getContext("2d"),l=o.data,d;r.textPosition=="top"?d=r.marginTop+r.fontSize+r.textMargin:d=r.marginTop,i.fillStyle=r.lineColor;for(var c=0;c<l.length;c++){var u=c*r.width+o.barcodePadding;l[c]==="1"?i.fillRect(u,d,r.width,r.height):l[c]&&i.fillRect(u,d,r.width,r.height*l[c])}}},{key:"drawCanvasText",value:function(r,o){var i=this.canvas.getContext("2d"),l=r.fontOptions+" "+r.fontSize+"px "+r.font;if(r.displayValue){var d,c;r.textPosition=="top"?c=r.marginTop+r.fontSize-r.textMargin:c=r.height+r.textMargin+r.marginTop+r.fontSize,i.font=l,r.textAlign=="left"||o.barcodePadding>0?(d=0,i.textAlign="left"):r.textAlign=="right"?(d=o.width-1,i.textAlign="right"):(d=o.width/2,i.textAlign="center"),i.fillText(o.text,d,c)}}},{key:"moveCanvasDrawing",value:function(r){var o=this.canvas.getContext("2d");o.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),e}();Fu.default=WM;var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});var GM=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),KM=ro,YM=QM(KM),Lu=In;function QM(e){return e&&e.__esModule?e:{default:e}}function JM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var os="http://www.w3.org/2000/svg",XM=function(){function e(t,r,o){JM(this,e),this.svg=t,this.encodings=r,this.options=o,this.document=o.xmlDocument||document}return GM(e,[{key:"render",value:function(){var r=this.options.marginLeft;this.prepareSVG();for(var o=0;o<this.encodings.length;o++){var i=this.encodings[o],l=(0,YM.default)(this.options,i.options),d=this.createGroup(r,l.marginTop,this.svg);this.setGroupOptions(d,l),this.drawSvgBarcode(d,l,i),this.drawSVGText(d,l,i),r+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,Lu.calculateEncodingAttributes)(this.encodings,this.options);var r=(0,Lu.getTotalWidthOfEncodings)(this.encodings),o=(0,Lu.getMaximumHeightOfEncodings)(this.encodings),i=r+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,o),this.options.background&&this.drawRect(0,0,i,o,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(r,o,i){var l=i.data,d;o.textPosition=="top"?d=o.fontSize+o.textMargin:d=0;for(var c=0,u=0,m=0;m<l.length;m++)u=m*o.width+i.barcodePadding,l[m]==="1"?c++:c>0&&(this.drawRect(u-o.width*c,d,o.width*c,o.height,r),c=0);c>0&&this.drawRect(u-o.width*(c-1),d,o.width*c,o.height,r)}},{key:"drawSVGText",value:function(r,o,i){var l=this.document.createElementNS(os,"text");if(o.displayValue){var d,c;l.setAttribute("style","font:"+o.fontOptions+" "+o.fontSize+"px "+o.font),o.textPosition=="top"?c=o.fontSize-o.textMargin:c=o.height+o.textMargin+o.fontSize,o.textAlign=="left"||i.barcodePadding>0?(d=0,l.setAttribute("text-anchor","start")):o.textAlign=="right"?(d=i.width-1,l.setAttribute("text-anchor","end")):(d=i.width/2,l.setAttribute("text-anchor","middle")),l.setAttribute("x",d),l.setAttribute("y",c),l.appendChild(this.document.createTextNode(i.text)),r.appendChild(l)}}},{key:"setSvgAttributes",value:function(r,o){var i=this.svg;i.setAttribute("width",r+"px"),i.setAttribute("height",o+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+r+" "+o),i.setAttribute("xmlns",os),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,o,i){var l=this.document.createElementNS(os,"g");return l.setAttribute("transform","translate("+r+", "+o+")"),i.appendChild(l),l}},{key:"setGroupOptions",value:function(r,o){r.setAttribute("style","fill:"+o.lineColor+";")}},{key:"drawRect",value:function(r,o,i,l,d){var c=this.document.createElementNS(os,"rect");return c.setAttribute("x",r),c.setAttribute("y",o),c.setAttribute("width",i),c.setAttribute("height",l),d.appendChild(c),c}}]),e}();Pu.default=XM;var ju={};Object.defineProperty(ju,"__esModule",{value:!0});var ZM=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();function qM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var e3=function(){function e(t,r,o){qM(this,e),this.object=t,this.encodings=r,this.options=o}return ZM(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();ju.default=e3,Object.defineProperty(Iu,"__esModule",{value:!0});var t3=Fu,n3=zu(t3),i3=Pu,r3=zu(i3),o3=ju,a3=zu(o3);function zu(e){return e&&e.__esModule?e:{default:e}}Iu.default={CanvasRenderer:n3.default,SVGRenderer:r3.default,ObjectRenderer:a3.default};var oo={};Object.defineProperty(oo,"__esModule",{value:!0});function Uu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Wu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l3=function(e){Wu(t,e);function t(r,o){Uu(this,t);var i=Hu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=r,i.input=o,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return t}(Error),s3=function(e){Wu(t,e);function t(){Uu(this,t);var r=Hu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.name="InvalidElementException",r.message="Not supported type to render on",r}return t}(Error),d3=function(e){Wu(t,e);function t(){Uu(this,t);var r=Hu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.name="NoElementException",r.message="No element to render on.",r}return t}(Error);oo.InvalidInputException=l3,oo.InvalidElementException=s3,oo.NoElementException=d3,Object.defineProperty(Ru,"__esModule",{value:!0});var c3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u3=$u,Gu=dv(u3),f3=Iu,na=dv(f3),p3=oo;function dv(e){return e&&e.__esModule?e:{default:e}}function Ku(e){if(typeof e=="string")return h3(e);if(Array.isArray(e)){for(var t=[],r=0;r<e.length;r++)t.push(Ku(e[r]));return t}else{if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLImageElement)return m3(e);if(e&&e.nodeName&&e.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&e instanceof SVGElement)return{element:e,options:(0,Gu.default)(e),renderer:na.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement)return{element:e,options:(0,Gu.default)(e),renderer:na.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:na.default.CanvasRenderer};if(e&&(typeof e>"u"?"undefined":c3(e))==="object"&&!e.nodeName)return{element:e,renderer:na.default.ObjectRenderer};throw new p3.InvalidElementException}}function h3(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var r=[],o=0;o<t.length;o++)r.push(Ku(t[o]));return r}}function m3(e){var t=document.createElement("canvas");return{element:t,options:(0,Gu.default)(e),renderer:na.default.CanvasRenderer,afterRender:function(){e.setAttribute("src",t.toDataURL())}}}Ru.default=Ku;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});var g3=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();function v3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y3=function(){function e(t){v3(this,e),this.api=t}return g3(e,[{key:"handleCatch",value:function(r){if(r.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw r.message;else throw r;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(r){try{var o=r.apply(void 0,arguments);return this.api._options.valid(!0),o}catch(i){return this.handleCatch(i),this.api}}}]),e}();Yu.default=y3;var b3=cu,mr=Hi(b3),w3=ro,ia=Hi(w3),C3=Vu,cv=Hi(C3),_3=Bu,uv=Hi(_3),E3=Ru,A3=Hi(E3),S3=is,x3=Hi(S3),k3=Yu,T3=Hi(k3),fv=oo,N3=rs,pv=Hi(N3);function Hi(e){return e&&e.__esModule?e:{default:e}}var ki=function(){},as=function(t,r,o){var i=new ki;if(typeof t>"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,A3.default)(t),i._encodings=[],i._options=pv.default,i._errorHandler=new T3.default(i),typeof r<"u"&&(o=o||{},o.format||(o.format=gv()),i.options(o)[o.format](r,o).render()),i};as.getModule=function(e){return mr.default[e]};for(var hv in mr.default)mr.default.hasOwnProperty(hv)&&D3(mr.default,hv);function D3(e,t){ki.prototype[t]=ki.prototype[t.toUpperCase()]=ki.prototype[t.toLowerCase()]=function(r,o){var i=this;return i._errorHandler.wrapBarcodeCall(function(){o.text=typeof o.text>"u"?void 0:""+o.text;var l=(0,ia.default)(i._options,o);l=(0,x3.default)(l);var d=e[t],c=mv(r,d,l);return i._encodings.push(c),i})}}function mv(e,t,r){e=""+e;var o=new t(e,r);if(!o.valid())throw new fv.InvalidInputException(o.constructor.name,e);var i=o.encode();i=(0,cv.default)(i);for(var l=0;l<i.length;l++)i[l].options=(0,ia.default)(r,i[l].options);return i}function gv(){return mr.default.CODE128?"CODE128":Object.keys(mr.default)[0]}ki.prototype.options=function(e){return this._options=(0,ia.default)(this._options,e),this},ki.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},ki.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var e;for(var t in this._renderProperties){e=this._renderProperties[t];var r=(0,ia.default)(this._options,e.options);r.format=="auto"&&(r.format=gv()),this._errorHandler.wrapBarcodeCall(function(){var o=r.value,i=mr.default[r.format.toUpperCase()],l=mv(o,i,r);Qu(e,l,r)})}}},ki.prototype.render=function(){if(!this._renderProperties)throw new fv.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)Qu(this._renderProperties[e],this._encodings,this._options);else Qu(this._renderProperties,this._encodings,this._options);return this},ki.prototype._defaults=pv.default;function Qu(e,t,r){t=(0,cv.default)(t);for(var o=0;o<t.length;o++)t[o].options=(0,ia.default)(r,t[o].options),(0,uv.default)(t[o].options);(0,uv.default)(r);var i=e.renderer,l=new i(e.element,t,r);l.render(),e.afterRender&&e.afterRender()}typeof window<"u"&&(window.JsBarcode=as),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(e,t){var r=[];return jQuery(this).each(function(){r.push(this)}),as(r,e,t)});var O3=as;const V3=n.defineComponent({name:"BarCodeBox",data(){return{}},props:{value:String,format:String,displayValue:{type:Boolean,default:!0},fontSize:Number,textPosition:String,textAlign:String,textMargin:Number,width:{type:Number,default:2},height:{type:Number,default:50},background:String,lineColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e=this.value,t={};Object.keys(this.$props).forEach(r=>{this.$props[r]!=null&&this.$props[r]!==""&&(t[r]=this.$props[r])}),delete t.value,delete t.formCreateInject,this.$nextTick(()=>{O3(this.$refs.bar,e||"",t)})},deep:!0,immediate:!0}}}),B3={class:"_fc-barcode",ref:"bar"};function R3(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("img",B3,null,512)}const $3=De(V3,[["render",R3]]),dj="",I3=n.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),F3=["src"];function M3(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("iframe",{class:"_fc-iframe-box",src:e.src,frameborder:"0",onLoad:t[0]||(t[0]=d=>e.$emit("load",d))},null,40,F3)}const P3=De(I3,[["render",M3]]);var vv={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(mc,()=>(()=>{var r={873:(d,c)=>{var u,m,h=function(){var y=function(H,R){var z=H,$=g[R],A=null,J=0,Q=null,G=[],ie={},X=function(D,W){A=function(Y){for(var q=new Array(Y),ee=0;ee<Y;ee+=1){q[ee]=new Array(Y);for(var oe=0;oe<Y;oe+=1)q[ee][oe]=null}return q}(J=4*z+17),le(0,0),le(J-7,0),le(0,J-7),ce(),be(),pe(D,W),z>=7&&de(D),Q==null&&(Q=ge(z,$,G)),se(Q,W)},le=function(D,W){for(var Y=-1;Y<=7;Y+=1)if(!(D+Y<=-1||J<=D+Y))for(var q=-1;q<=7;q+=1)W+q<=-1||J<=W+q||(A[D+Y][W+q]=0<=Y&&Y<=6&&(q==0||q==6)||0<=q&&q<=6&&(Y==0||Y==6)||2<=Y&&Y<=4&&2<=q&&q<=4)},be=function(){for(var D=8;D<J-8;D+=1)A[D][6]==null&&(A[D][6]=D%2==0);for(var W=8;W<J-8;W+=1)A[6][W]==null&&(A[6][W]=W%2==0)},ce=function(){for(var D=b.getPatternPosition(z),W=0;W<D.length;W+=1)for(var Y=0;Y<D.length;Y+=1){var q=D[W],ee=D[Y];if(A[q][ee]==null)for(var oe=-2;oe<=2;oe+=1)for(var he=-2;he<=2;he+=1)A[q+oe][ee+he]=oe==-2||oe==2||he==-2||he==2||oe==0&&he==0}},de=function(D){for(var W=b.getBCHTypeNumber(z),Y=0;Y<18;Y+=1){var q=!D&&(W>>Y&1)==1;A[Math.floor(Y/3)][Y%3+J-8-3]=q}for(Y=0;Y<18;Y+=1)q=!D&&(W>>Y&1)==1,A[Y%3+J-8-3][Math.floor(Y/3)]=q},pe=function(D,W){for(var Y=$<<3|W,q=b.getBCHTypeInfo(Y),ee=0;ee<15;ee+=1){var oe=!D&&(q>>ee&1)==1;ee<6?A[ee][8]=oe:ee<8?A[ee+1][8]=oe:A[J-15+ee][8]=oe}for(ee=0;ee<15;ee+=1)oe=!D&&(q>>ee&1)==1,ee<8?A[8][J-ee-1]=oe:ee<9?A[8][15-ee-1+1]=oe:A[8][15-ee-1]=oe;A[J-8][8]=!D},se=function(D,W){for(var Y=-1,q=J-1,ee=7,oe=0,he=b.getMaskFunction(W),Se=J-1;Se>0;Se-=2)for(Se==6&&(Se-=1);;){for(var Pe=0;Pe<2;Pe+=1)if(A[q][Se-Pe]==null){var Le=!1;oe<D.length&&(Le=(D[oe]>>>ee&1)==1),he(q,Se-Pe)&&(Le=!Le),A[q][Se-Pe]=Le,(ee-=1)==-1&&(oe+=1,ee=7)}if((q+=Y)<0||J<=q){q-=Y,Y=-Y;break}}},ge=function(D,W,Y){for(var q=N.getRSBlocks(D,W),ee=V(),oe=0;oe<Y.length;oe+=1){var he=Y[oe];ee.put(he.getMode(),4),ee.put(he.getLength(),b.getLengthInBits(he.getMode(),D)),he.write(ee)}var Se=0;for(oe=0;oe<q.length;oe+=1)Se+=q[oe].dataCount;if(ee.getLengthInBits()>8*Se)throw"code length overflow. ("+ee.getLengthInBits()+">"+8*Se+")";for(ee.getLengthInBits()+4<=8*Se&&ee.put(0,4);ee.getLengthInBits()%8!=0;)ee.putBit(!1);for(;!(ee.getLengthInBits()>=8*Se||(ee.put(236,8),ee.getLengthInBits()>=8*Se));)ee.put(17,8);return function(Pe,Le){for(var fe=0,ke=0,we=0,He=new Array(Le.length),et=new Array(Le.length),_e=0;_e<Le.length;_e+=1){var Ve=Le[_e].dataCount,Ke=Le[_e].totalCount-Ve;ke=Math.max(ke,Ve),we=Math.max(we,Ke),He[_e]=new Array(Ve);for(var Re=0;Re<He[_e].length;Re+=1)He[_e][Re]=255&Pe.getBuffer()[Re+fe];fe+=Ve;var mt=b.getErrorCorrectPolynomial(Ke),Ze=k(He[_e],mt.getLength()-1).mod(mt);for(et[_e]=new Array(mt.getLength()-1),Re=0;Re<et[_e].length;Re+=1){var Ne=Re+Ze.getLength()-et[_e].length;et[_e][Re]=Ne>=0?Ze.getAt(Ne):0}}var Me=0;for(Re=0;Re<Le.length;Re+=1)Me+=Le[Re].totalCount;var tt=new Array(Me),$e=0;for(Re=0;Re<ke;Re+=1)for(_e=0;_e<Le.length;_e+=1)Re<He[_e].length&&(tt[$e]=He[_e][Re],$e+=1);for(Re=0;Re<we;Re+=1)for(_e=0;_e<Le.length;_e+=1)Re<et[_e].length&&(tt[$e]=et[_e][Re],$e+=1);return tt}(ee,q)};ie.addData=function(D,W){var Y=null;switch(W=W||"Byte"){case"Numeric":Y=F(D);break;case"Alphanumeric":Y=I(D);break;case"Byte":Y=P(D);break;case"Kanji":Y=T(D);break;default:throw"mode:"+W}G.push(Y),Q=null},ie.isDark=function(D,W){if(D<0||J<=D||W<0||J<=W)throw D+","+W;return A[D][W]},ie.getModuleCount=function(){return J},ie.make=function(){if(z<1){for(var D=1;D<40;D++){for(var W=N.getRSBlocks(D,$),Y=V(),q=0;q<G.length;q++){var ee=G[q];Y.put(ee.getMode(),4),Y.put(ee.getLength(),b.getLengthInBits(ee.getMode(),D)),ee.write(Y)}var oe=0;for(q=0;q<W.length;q++)oe+=W[q].dataCount;if(Y.getLengthInBits()<=8*oe)break}z=D}X(!1,function(){for(var he=0,Se=0,Pe=0;Pe<8;Pe+=1){X(!0,Pe);var Le=b.getLostPoint(ie);(Pe==0||he>Le)&&(he=Le,Se=Pe)}return Se}())},ie.createTableTag=function(D,W){D=D||2;var Y="";Y+='<table style="',Y+=" border-width: 0px; border-style: none;",Y+=" border-collapse: collapse;",Y+=" padding: 0px; margin: "+(W=W===void 0?4*D:W)+"px;",Y+='">',Y+="<tbody>";for(var q=0;q<ie.getModuleCount();q+=1){Y+="<tr>";for(var ee=0;ee<ie.getModuleCount();ee+=1)Y+='<td style="',Y+=" border-width: 0px; border-style: none;",Y+=" border-collapse: collapse;",Y+=" padding: 0px; margin: 0px;",Y+=" width: "+D+"px;",Y+=" height: "+D+"px;",Y+=" background-color: ",Y+=ie.isDark(q,ee)?"#000000":"#ffffff",Y+=";",Y+='"/>';Y+="</tr>"}return(Y+="</tbody>")+"</table>"},ie.createSvgTag=function(D,W,Y,q){var ee={};typeof arguments[0]=="object"&&(D=(ee=arguments[0]).cellSize,W=ee.margin,Y=ee.alt,q=ee.title),D=D||2,W=W===void 0?4*D:W,(Y=typeof Y=="string"?{text:Y}:Y||{}).text=Y.text||null,Y.id=Y.text?Y.id||"qrcode-description":null,(q=typeof q=="string"?{text:q}:q||{}).text=q.text||null,q.id=q.text?q.id||"qrcode-title":null;var oe,he,Se,Pe,Le=ie.getModuleCount()*D+2*W,fe="";for(Pe="l"+D+",0 0,"+D+" -"+D+",0 0,-"+D+"z ",fe+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',fe+=ee.scalable?"":' width="'+Le+'px" height="'+Le+'px"',fe+=' viewBox="0 0 '+Le+" "+Le+'" ',fe+=' preserveAspectRatio="xMinYMin meet"',fe+=q.text||Y.text?' role="img" aria-labelledby="'+ye([q.id,Y.id].join(" ").trim())+'"':"",fe+=">",fe+=q.text?'<title id="'+ye(q.id)+'">'+ye(q.text)+"</title>":"",fe+=Y.text?'<description id="'+ye(Y.id)+'">'+ye(Y.text)+"</description>":"",fe+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',fe+='<path d="',he=0;he<ie.getModuleCount();he+=1)for(Se=he*D+W,oe=0;oe<ie.getModuleCount();oe+=1)ie.isDark(he,oe)&&(fe+="M"+(oe*D+W)+","+Se+Pe);return(fe+='" stroke="transparent" fill="black"/>')+"</svg>"},ie.createDataURL=function(D,W){D=D||2,W=W===void 0?4*D:W;var Y=ie.getModuleCount()*D+2*W,q=W,ee=Y-W;return U(Y,Y,function(oe,he){if(q<=oe&&oe<ee&&q<=he&&he<ee){var Se=Math.floor((oe-q)/D),Pe=Math.floor((he-q)/D);return ie.isDark(Pe,Se)?0:1}return 1})},ie.createImgTag=function(D,W,Y){D=D||2,W=W===void 0?4*D:W;var q=ie.getModuleCount()*D+2*W,ee="";return ee+="<img",ee+=' src="',ee+=ie.createDataURL(D,W),ee+='"',ee+=' width="',ee+=q,ee+='"',ee+=' height="',ee+=q,ee+='"',Y&&(ee+=' alt="',ee+=ye(Y),ee+='"'),ee+"/>"};var ye=function(D){for(var W="",Y=0;Y<D.length;Y+=1){var q=D.charAt(Y);switch(q){case"<":W+="<";break;case">":W+=">";break;case"&":W+="&";break;case'"':W+=""";break;default:W+=q}}return W};return ie.createASCII=function(D,W){if((D=D||1)<2)return function(He){He=He===void 0?2:He;var et,_e,Ve,Ke,Re,mt=1*ie.getModuleCount()+2*He,Ze=He,Ne=mt-He,Me={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},tt={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},$e="";for(et=0;et<mt;et+=2){for(Ve=Math.floor((et-Ze)/1),Ke=Math.floor((et+1-Ze)/1),_e=0;_e<mt;_e+=1)Re="\u2588",Ze<=_e&&_e<Ne&&Ze<=et&&et<Ne&&ie.isDark(Ve,Math.floor((_e-Ze)/1))&&(Re=" "),Ze<=_e&&_e<Ne&&Ze<=et+1&&et+1<Ne&&ie.isDark(Ke,Math.floor((_e-Ze)/1))?Re+=" ":Re+="\u2588",$e+=He<1&&et+1>=Ne?tt[Re]:Me[Re];$e+=`
|
||
`}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+=1;for(var J=new Array(H.length-A+R),Q=0;Q<H.length-A;Q+=1)J[Q]=H[Q+A];return J}(),$={getAt:function(A){return z[A]},getLength:function(){return z.length},multiply:function(A){for(var J=new Array($.getLength()+A.getLength()-1),Q=0;Q<$.getLength();Q+=1)for(var G=0;G<A.getLength();G+=1)J[Q+G]^=x.gexp(x.glog($.getAt(Q))+x.glog(A.getAt(G)));return k(J,0)},mod:function(A){if($.getLength()-A.getLength()<0)return $;for(var J=x.glog($.getAt(0))-x.glog(A.getAt(0)),Q=new Array($.getLength()),G=0;G<$.getLength();G+=1)Q[G]=$.getAt(G);for(G=0;G<A.getLength();G+=1)Q[G]^=x.gexp(x.glog(A.getAt(G))+J);return k(Q,0).mod(A)}};return $}var N=function(){var H=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],R=function($,A){var J={};return J.totalCount=$,J.dataCount=A,J},z={getRSBlocks:function($,A){var J=function(de,pe){switch(pe){case g.L:return H[4*(de-1)+0];case g.M:return H[4*(de-1)+1];case g.Q:return H[4*(de-1)+2];case g.H:return H[4*(de-1)+3];default:return}}($,A);if(J===void 0)throw"bad rs block @ typeNumber:"+$+"/errorCorrectionLevel:"+A;for(var Q=J.length/3,G=[],ie=0;ie<Q;ie+=1)for(var X=J[3*ie+0],le=J[3*ie+1],be=J[3*ie+2],ce=0;ce<X;ce+=1)G.push(R(le,be));return G}};return z}(),V=function(){var H=[],R=0,z={getBuffer:function(){return H},getAt:function($){var A=Math.floor($/8);return(H[A]>>>7-$%8&1)==1},put:function($,A){for(var J=0;J<A;J+=1)z.putBit(($>>>A-J-1&1)==1)},getLengthInBits:function(){return R},putBit:function($){var A=Math.floor(R/8);H.length<=A&&H.push(0),$&&(H[A]|=128>>>R%8),R+=1}};return z},F=function(H){var R=H,z={getMode:function(){return 1},getLength:function(J){return R.length},write:function(J){for(var Q=R,G=0;G+2<Q.length;)J.put($(Q.substring(G,G+3)),10),G+=3;G<Q.length&&(Q.length-G==1?J.put($(Q.substring(G,G+1)),4):Q.length-G==2&&J.put($(Q.substring(G,G+2)),7))}},$=function(J){for(var Q=0,G=0;G<J.length;G+=1)Q=10*Q+A(J.charAt(G));return Q},A=function(J){if("0"<=J&&J<="9")return J.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+J};return z},I=function(H){var R=H,z={getMode:function(){return 2},getLength:function(A){return R.length},write:function(A){for(var J=R,Q=0;Q+1<J.length;)A.put(45*$(J.charAt(Q))+$(J.charAt(Q+1)),11),Q+=2;Q<J.length&&A.put($(J.charAt(Q)),6)}},$=function(A){if("0"<=A&&A<="9")return A.charCodeAt(0)-"0".charCodeAt(0);if("A"<=A&&A<="Z")return A.charCodeAt(0)-"A".charCodeAt(0)+10;switch(A){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+A}};return z},P=function(H){var R=y.stringToBytes(H);return{getMode:function(){return 4},getLength:function(z){return R.length},write:function(z){for(var $=0;$<R.length;$+=1)z.put(R[$],8)}}},T=function(H){var R=y.stringToBytesFuncs.SJIS;if(!R)throw"sjis not supported.";(function(){var A=R("\u53CB");if(A.length!=2||(A[0]<<8|A[1])!=38726)throw"sjis not supported."})();var z=R(H),$={getMode:function(){return 8},getLength:function(A){return~~(z.length/2)},write:function(A){for(var J=z,Q=0;Q+1<J.length;){var G=(255&J[Q])<<8|255&J[Q+1];if(33088<=G&&G<=40956)G-=33088;else{if(!(57408<=G&&G<=60351))throw"illegal char at "+(Q+1)+"/"+G;G-=49472}G=192*(G>>>8&255)+(255&G),A.put(G,13),Q+=2}if(Q<J.length)throw"illegal char at "+(Q+1)}};return $},B=function(){var H=[],R={writeByte:function(z){H.push(255&z)},writeShort:function(z){R.writeByte(z),R.writeByte(z>>>8)},writeBytes:function(z,$,A){$=$||0,A=A||z.length;for(var J=0;J<A;J+=1)R.writeByte(z[J+$])},writeString:function(z){for(var $=0;$<z.length;$+=1)R.writeByte(z.charCodeAt($))},toByteArray:function(){return H},toString:function(){var z="";z+="[";for(var $=0;$<H.length;$+=1)$>0&&(z+=","),z+=H[$];return z+"]"}};return R},L=function(H){var R=H,z=0,$=0,A=0,J={read:function(){for(;A<8;){if(z>=R.length){if(A==0)return-1;throw"unexpected end of file./"+A}var G=R.charAt(z);if(z+=1,G=="=")return A=0,-1;G.match(/^\s$/)||($=$<<6|Q(G.charCodeAt(0)),A+=6)}var ie=$>>>A-8&255;return A-=8,ie}},Q=function(G){if(65<=G&&G<=90)return G-65;if(97<=G&&G<=122)return G-97+26;if(48<=G&&G<=57)return G-48+52;if(G==43)return 62;if(G==47)return 63;throw"c:"+G};return J},U=function(H,R,z){for(var $=function(le,be){var ce=le,de=be,pe=new Array(le*be),se={setPixel:function(D,W,Y){pe[W*ce+D]=Y},write:function(D){D.writeString("GIF87a"),D.writeShort(ce),D.writeShort(de),D.writeByte(128),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(255),D.writeByte(255),D.writeByte(255),D.writeString(","),D.writeShort(0),D.writeShort(0),D.writeShort(ce),D.writeShort(de),D.writeByte(0);var W=ge(2);D.writeByte(2);for(var Y=0;W.length-Y>255;)D.writeByte(255),D.writeBytes(W,Y,255),Y+=255;D.writeByte(W.length-Y),D.writeBytes(W,Y,W.length-Y),D.writeByte(0),D.writeString(";")}},ge=function(D){for(var W=1<<D,Y=1+(1<<D),q=D+1,ee=ye(),oe=0;oe<W;oe+=1)ee.add(String.fromCharCode(oe));ee.add(String.fromCharCode(W)),ee.add(String.fromCharCode(Y));var he,Se,Pe,Le=B(),fe=(he=Le,Se=0,Pe=0,{write:function(et,_e){if(et>>>_e!=0)throw"length over";for(;Se+_e>=8;)he.writeByte(255&(et<<Se|Pe)),_e-=8-Se,et>>>=8-Se,Pe=0,Se=0;Pe|=et<<Se,Se+=_e},flush:function(){Se>0&&he.writeByte(Pe)}});fe.write(W,q);var ke=0,we=String.fromCharCode(pe[ke]);for(ke+=1;ke<pe.length;){var He=String.fromCharCode(pe[ke]);ke+=1,ee.contains(we+He)?we+=He:(fe.write(ee.indexOf(we),q),ee.size()<4095&&(ee.size()==1<<q&&(q+=1),ee.add(we+He)),we=He)}return fe.write(ee.indexOf(we),q),fe.write(Y,q),fe.flush(),Le.toByteArray()},ye=function(){var D={},W=0,Y={add:function(q){if(Y.contains(q))throw"dup key:"+q;D[q]=W,W+=1},size:function(){return W},indexOf:function(q){return D[q]},contains:function(q){return D[q]!==void 0}};return Y};return se}(H,R),A=0;A<R;A+=1)for(var J=0;J<H;J+=1)$.setPixel(J,A,z(J,A));var Q=B();$.write(Q);for(var G=function(){var le=0,be=0,ce=0,de="",pe={},se=function(ye){de+=String.fromCharCode(ge(63&ye))},ge=function(ye){if(!(ye<0)){if(ye<26)return 65+ye;if(ye<52)return ye-26+97;if(ye<62)return ye-52+48;if(ye==62)return 43;if(ye==63)return 47}throw"n:"+ye};return pe.writeByte=function(ye){for(le=le<<8|255&ye,be+=8,ce+=1;be>=6;)se(le>>>be-6),be-=6},pe.flush=function(){if(be>0&&(se(le<<6-be),le=0,be=0),ce%3!=0)for(var ye=3-ce%3,D=0;D<ye;D+=1)de+="="},pe.toString=function(){return de},pe}(),ie=Q.toByteArray(),X=0;X<ie.length;X+=1)G.writeByte(ie[X]);return G.flush(),"data:image/gif;base64,"+G};return y}();h.stringToBytesFuncs["UTF-8"]=function(y){return function(C){for(var S=[],w=0;w<C.length;w++){var E=C.charCodeAt(w);E<128?S.push(E):E<2048?S.push(192|E>>6,128|63&E):E<55296||E>=57344?S.push(224|E>>12,128|E>>6&63,128|63&E):(w++,E=65536+((1023&E)<<10|1023&C.charCodeAt(w)),S.push(240|E>>18,128|E>>12&63,128|E>>6&63,128|63&E))}return S}(y)},(m=typeof(u=function(){return h})=="function"?u.apply(c,[]):u)===void 0||(d.exports=m)}},o={};function i(d){var c=o[d];if(c!==void 0)return c.exports;var u=o[d]={exports:{}};return r[d](u,u.exports,i),u.exports}i.n=d=>{var c=d&&d.__esModule?()=>d.default:()=>d;return i.d(c,{a:c}),c},i.d=(d,c)=>{for(var u in c)i.o(c,u)&&!i.o(d,u)&&Object.defineProperty(d,u,{enumerable:!0,get:c[u]})},i.o=(d,c)=>Object.prototype.hasOwnProperty.call(d,c);var l={};return(()=>{i.d(l,{default:()=>R});const d=z=>!!z&&typeof z=="object"&&!Array.isArray(z);function c(z,...$){if(!$.length)return z;const A=$.shift();return A!==void 0&&d(z)&&d(A)?(z=Object.assign({},z),Object.keys(A).forEach(J=>{const Q=z[J],G=A[J];Array.isArray(Q)&&Array.isArray(G)?z[J]=G:d(Q)&&d(G)?z[J]=c(Object.assign({},Q),G):z[J]=G}),c(z,...$)):z}function u(z,$){const A=document.createElement("a");A.download=$,A.href=z,document.body.appendChild(A),A.click(),document.body.removeChild(A)}const m={L:.07,M:.15,Q:.25,H:.3};class h{constructor({svg:$,type:A,window:J}){this._svg=$,this._type=A,this._window=J}draw($,A,J,Q){let G;switch(this._type){case"dots":G=this._drawDot;break;case"classy":G=this._drawClassy;break;case"classy-rounded":G=this._drawClassyRounded;break;case"rounded":G=this._drawRounded;break;case"extra-rounded":G=this._drawExtraRounded;break;default:G=this._drawSquare}G.call(this,{x:$,y:A,size:J,getNeighbor:Q})}_rotateFigure({x:$,y:A,size:J,rotation:Q=0,draw:G}){var ie;const X=$+J/2,le=A+J/2;G(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*Q/Math.PI},${X},${le})`)}_basicDot($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(J+A/2)),this._element.setAttribute("cy",String(Q+A/2)),this._element.setAttribute("r",String(A/2))}}))}_basicSquare($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(J)),this._element.setAttribute("y",String(Q)),this._element.setAttribute("width",String(A)),this._element.setAttribute("height",String(A))}}))}_basicSideRounded($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v ${A}h `+A/2+`a ${A/2} ${A/2}, 0, 0, 0, 0 ${-A}`)}}))}_basicCornerRounded($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v ${A}h ${A}v `+-A/2+`a ${A/2} ${A/2}, 0, 0, 0, ${-A/2} ${-A/2}`)}}))}_basicCornerExtraRounded($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v ${A}h ${A}a ${A} ${A}, 0, 0, 0, ${-A} ${-A}`)}}))}_basicCornersRounded($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v `+A/2+`a ${A/2} ${A/2}, 0, 0, 0, ${A/2} ${A/2}h `+A/2+"v "+-A/2+`a ${A/2} ${A/2}, 0, 0, 0, ${-A/2} ${-A/2}`)}}))}_drawDot({x:$,y:A,size:J}){this._basicDot({x:$,y:A,size:J,rotation:0})}_drawSquare({x:$,y:A,size:J}){this._basicSquare({x:$,y:A,size:J,rotation:0})}_drawRounded({x:$,y:A,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0,be=G+ie+X+le;if(be!==0)if(be>2||G&&ie||X&&le)this._basicSquare({x:$,y:A,size:J,rotation:0});else{if(be===2){let ce=0;return G&&X?ce=Math.PI/2:X&&ie?ce=Math.PI:ie&&le&&(ce=-Math.PI/2),void this._basicCornerRounded({x:$,y:A,size:J,rotation:ce})}if(be===1){let ce=0;return X?ce=Math.PI/2:ie?ce=Math.PI:le&&(ce=-Math.PI/2),void this._basicSideRounded({x:$,y:A,size:J,rotation:ce})}}else this._basicDot({x:$,y:A,size:J,rotation:0})}_drawExtraRounded({x:$,y:A,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0,be=G+ie+X+le;if(be!==0)if(be>2||G&&ie||X&&le)this._basicSquare({x:$,y:A,size:J,rotation:0});else{if(be===2){let ce=0;return G&&X?ce=Math.PI/2:X&&ie?ce=Math.PI:ie&&le&&(ce=-Math.PI/2),void this._basicCornerExtraRounded({x:$,y:A,size:J,rotation:ce})}if(be===1){let ce=0;return X?ce=Math.PI/2:ie?ce=Math.PI:le&&(ce=-Math.PI/2),void this._basicSideRounded({x:$,y:A,size:J,rotation:ce})}}else this._basicDot({x:$,y:A,size:J,rotation:0})}_drawClassy({x:$,y:A,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0;G+ie+X+le!==0?G||X?ie||le?this._basicSquare({x:$,y:A,size:J,rotation:0}):this._basicCornerRounded({x:$,y:A,size:J,rotation:Math.PI/2}):this._basicCornerRounded({x:$,y:A,size:J,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:A,size:J,rotation:Math.PI/2})}_drawClassyRounded({x:$,y:A,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0;G+ie+X+le!==0?G||X?ie||le?this._basicSquare({x:$,y:A,size:J,rotation:0}):this._basicCornerExtraRounded({x:$,y:A,size:J,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:$,y:A,size:J,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:A,size:J,rotation:Math.PI/2})}}const y={dot:"dot",square:"square",extraRounded:"extra-rounded"},C=Object.values(y);class S{constructor({svg:$,type:A,window:J}){this._svg=$,this._type=A,this._window=J}draw($,A,J,Q){let G;switch(this._type){case y.square:G=this._drawSquare;break;case y.extraRounded:G=this._drawExtraRounded;break;default:G=this._drawDot}G.call(this,{x:$,y:A,size:J,rotation:Q})}_rotateFigure({x:$,y:A,size:J,rotation:Q=0,draw:G}){var ie;const X=$+J/2,le=A+J/2;G(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*Q/Math.PI},${X},${le})`)}_basicDot($){const{size:A,x:J,y:Q}=$,G=A/7;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${J+A/2} ${Q}a ${A/2} ${A/2} 0 1 0 0.1 0zm 0 ${G}a ${A/2-G} ${A/2-G} 0 1 1 -0.1 0Z`)}}))}_basicSquare($){const{size:A,x:J,y:Q}=$,G=A/7;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${J} ${Q}v ${A}h ${A}v `+-A+`zM ${J+G} ${Q+G}h `+(A-2*G)+"v "+(A-2*G)+"h "+(2*G-A)+"z")}}))}_basicExtraRounded($){const{size:A,x:J,y:Q}=$,G=A/7;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${J} ${Q+2.5*G}v `+2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*G} ${2.5*G}h `+2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*G} ${2.5*-G}v `+-2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*-G} ${2.5*-G}h `+-2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*-G} ${2.5*G}M ${J+2.5*G} ${Q+G}h `+2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*G} ${1.5*G}v `+2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*-G} ${1.5*G}h `+-2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*-G} ${1.5*-G}v `+-2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*G} ${1.5*-G}`)}}))}_drawDot({x:$,y:A,size:J,rotation:Q}){this._basicDot({x:$,y:A,size:J,rotation:Q})}_drawSquare({x:$,y:A,size:J,rotation:Q}){this._basicSquare({x:$,y:A,size:J,rotation:Q})}_drawExtraRounded({x:$,y:A,size:J,rotation:Q}){this._basicExtraRounded({x:$,y:A,size:J,rotation:Q})}}const w={dot:"dot",square:"square"},E=Object.values(w);class _{constructor({svg:$,type:A,window:J}){this._svg=$,this._type=A,this._window=J}draw($,A,J,Q){let G;G=this._type===w.square?this._drawSquare:this._drawDot,G.call(this,{x:$,y:A,size:J,rotation:Q})}_rotateFigure({x:$,y:A,size:J,rotation:Q=0,draw:G}){var ie;const X=$+J/2,le=A+J/2;G(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*Q/Math.PI},${X},${le})`)}_basicDot($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(J+A/2)),this._element.setAttribute("cy",String(Q+A/2)),this._element.setAttribute("r",String(A/2))}}))}_basicSquare($){const{size:A,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(J)),this._element.setAttribute("y",String(Q)),this._element.setAttribute("width",String(A)),this._element.setAttribute("height",String(A))}}))}_drawDot({x:$,y:A,size:J,rotation:Q}){this._basicDot({x:$,y:A,size:J,rotation:Q})}_drawSquare({x:$,y:A,size:J,rotation:Q}){this._basicSquare({x:$,y:A,size:J,rotation:Q})}}const g="circle",b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],x=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class k{constructor($,A){this._roundSize=J=>this._options.dotsOptions.roundSize?Math.floor(J):J,this._window=A,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String($.width)),this._element.setAttribute("height",String($.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),$.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${$.width} ${$.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=$.image,this._instanceId=k.instanceCount++,this._options=$}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR($){const A=$.getModuleCount(),J=Math.min(this._options.width,this._options.height)-2*this._options.margin,Q=this._options.shape===g?J/Math.sqrt(2):J,G=this._roundSize(Q/A);let ie={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=$,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:X,qrOptions:le}=this._options,be=X.imageSize*m[le.errorCorrectionLevel],ce=Math.floor(be*A*A);ie=function({originalHeight:de,originalWidth:pe,maxHiddenDots:se,maxHiddenAxisDots:ge,dotSize:ye}){const D={x:0,y:0},W={x:0,y:0};if(de<=0||pe<=0||se<=0||ye<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const Y=de/pe;return D.x=Math.floor(Math.sqrt(se/Y)),D.x<=0&&(D.x=1),ge&&ge<D.x&&(D.x=ge),D.x%2==0&&D.x--,W.x=D.x*ye,D.y=1+2*Math.ceil((D.x*Y-1)/2),W.y=Math.round(W.x*Y),(D.y*D.x>se||ge&&ge<D.y)&&(ge&&ge<D.y?(D.y=ge,D.y%2==0&&D.x--):D.y-=2,W.y=D.y*ye,D.x=1+2*Math.ceil((D.y/Y-1)/2),W.x=Math.round(W.y/Y)),{height:W.y,width:W.x,hideYDots:D.y,hideXDots:D.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ce,maxHiddenAxisDots:A-14,dotSize:G})}this.drawBackground(),this.drawDots((X,le)=>{var be,ce,de,pe,se,ge;return!(this._options.imageOptions.hideBackgroundDots&&X>=(A-ie.hideYDots)/2&&X<(A+ie.hideYDots)/2&&le>=(A-ie.hideXDots)/2&&le<(A+ie.hideXDots)/2||((be=b[X])===null||be===void 0?void 0:be[le])||((ce=b[X-A+7])===null||ce===void 0?void 0:ce[le])||((de=b[X])===null||de===void 0?void 0:de[le-A+7])||((pe=x[X])===null||pe===void 0?void 0:pe[le])||((se=x[X-A+7])===null||se===void 0?void 0:se[le])||((ge=x[X])===null||ge===void 0?void 0:ge[le-A+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:ie.width,height:ie.height,count:A,dotSize:G})}drawBackground(){var $,A,J;const Q=this._element,G=this._options;if(Q){const ie=($=G.backgroundOptions)===null||$===void 0?void 0:$.gradient,X=(A=G.backgroundOptions)===null||A===void 0?void 0:A.color;let le=G.height,be=G.width;if(ie||X){const ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((J=G.backgroundOptions)===null||J===void 0)&&J.round&&(le=be=Math.min(G.width,G.height),ce.setAttribute("rx",String(le/2*G.backgroundOptions.round))),ce.setAttribute("x",String(this._roundSize((G.width-be)/2))),ce.setAttribute("y",String(this._roundSize((G.height-le)/2))),ce.setAttribute("width",String(be)),ce.setAttribute("height",String(le)),this._backgroundClipPath.appendChild(ce),this._createColor({options:ie,color:X,additionalRotation:0,x:0,y:0,height:G.height,width:G.width,name:`background-color-${this._instanceId}`})}}}drawDots($){var A,J;if(!this._qr)throw"QR code is not defined";const Q=this._options,G=this._qr.getModuleCount();if(G>Q.width||G>Q.height)throw"The canvas is too small.";const ie=Math.min(Q.width,Q.height)-2*Q.margin,X=Q.shape===g?ie/Math.sqrt(2):ie,le=this._roundSize(X/G),be=this._roundSize((Q.width-G*le)/2),ce=this._roundSize((Q.height-G*le)/2),de=new h({svg:this._element,type:Q.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(A=Q.dotsOptions)===null||A===void 0?void 0:A.gradient,color:Q.dotsOptions.color,additionalRotation:0,x:0,y:0,height:Q.height,width:Q.width,name:`dot-color-${this._instanceId}`});for(let pe=0;pe<G;pe++)for(let se=0;se<G;se++)$&&!$(pe,se)||!((J=this._qr)===null||J===void 0)&&J.isDark(pe,se)&&(de.draw(be+se*le,ce+pe*le,le,(ge,ye)=>!(se+ge<0||pe+ye<0||se+ge>=G||pe+ye>=G)&&!($&&!$(pe+ye,se+ge))&&!!this._qr&&this._qr.isDark(pe+ye,se+ge)),de._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(de._element));if(Q.shape===g){const pe=this._roundSize((ie/le-G)/2),se=G+2*pe,ge=be-pe*le,ye=ce-pe*le,D=[],W=this._roundSize(se/2);for(let Y=0;Y<se;Y++){D[Y]=[];for(let q=0;q<se;q++)Y>=pe-1&&Y<=se-pe&&q>=pe-1&&q<=se-pe||Math.sqrt((Y-W)*(Y-W)+(q-W)*(q-W))>W?D[Y][q]=0:D[Y][q]=this._qr.isDark(q-2*pe<0?q:q>=G?q-2*pe:q-pe,Y-2*pe<0?Y:Y>=G?Y-2*pe:Y-pe)?1:0}for(let Y=0;Y<se;Y++)for(let q=0;q<se;q++)D[Y][q]&&(de.draw(ge+q*le,ye+Y*le,le,(ee,oe)=>{var he;return!!(!((he=D[Y+oe])===null||he===void 0)&&he[q+ee])}),de._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(de._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const $=this._element,A=this._options;if(!$)throw"Element code is not defined";const J=this._qr.getModuleCount(),Q=Math.min(A.width,A.height)-2*A.margin,G=A.shape===g?Q/Math.sqrt(2):Q,ie=this._roundSize(G/J),X=7*ie,le=3*ie,be=this._roundSize((A.width-J*ie)/2),ce=this._roundSize((A.height-J*ie)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([de,pe,se])=>{var ge,ye,D,W,Y,q,ee,oe,he,Se,Pe,Le,fe,ke;const we=be+de*ie*(J-7),He=ce+pe*ie*(J-7);let et=this._dotsClipPath,_e=this._dotsClipPath;if((((ge=A.cornersSquareOptions)===null||ge===void 0?void 0:ge.gradient)||((ye=A.cornersSquareOptions)===null||ye===void 0?void 0:ye.color))&&(et=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),et.setAttribute("id",`clip-path-corners-square-color-${de}-${pe}-${this._instanceId}`),this._defs.appendChild(et),this._cornersSquareClipPath=this._cornersDotClipPath=_e=et,this._createColor({options:(D=A.cornersSquareOptions)===null||D===void 0?void 0:D.gradient,color:(W=A.cornersSquareOptions)===null||W===void 0?void 0:W.color,additionalRotation:se,x:we,y:He,height:X,width:X,name:`corners-square-color-${de}-${pe}-${this._instanceId}`})),((Y=A.cornersSquareOptions)===null||Y===void 0?void 0:Y.type)&&C.includes(A.cornersSquareOptions.type)){const Ve=new S({svg:this._element,type:A.cornersSquareOptions.type,window:this._window});Ve.draw(we,He,X,se),Ve._element&&et&&et.appendChild(Ve._element)}else{const Ve=new h({svg:this._element,type:((q=A.cornersSquareOptions)===null||q===void 0?void 0:q.type)||A.dotsOptions.type,window:this._window});for(let Ke=0;Ke<b.length;Ke++)for(let Re=0;Re<b[Ke].length;Re++)!((ee=b[Ke])===null||ee===void 0)&&ee[Re]&&(Ve.draw(we+Re*ie,He+Ke*ie,ie,(mt,Ze)=>{var Ne;return!!(!((Ne=b[Ke+Ze])===null||Ne===void 0)&&Ne[Re+mt])}),Ve._element&&et&&et.appendChild(Ve._element))}if((((oe=A.cornersDotOptions)===null||oe===void 0?void 0:oe.gradient)||((he=A.cornersDotOptions)===null||he===void 0?void 0:he.color))&&(_e=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),_e.setAttribute("id",`clip-path-corners-dot-color-${de}-${pe}-${this._instanceId}`),this._defs.appendChild(_e),this._cornersDotClipPath=_e,this._createColor({options:(Se=A.cornersDotOptions)===null||Se===void 0?void 0:Se.gradient,color:(Pe=A.cornersDotOptions)===null||Pe===void 0?void 0:Pe.color,additionalRotation:se,x:we+2*ie,y:He+2*ie,height:le,width:le,name:`corners-dot-color-${de}-${pe}-${this._instanceId}`})),((Le=A.cornersDotOptions)===null||Le===void 0?void 0:Le.type)&&E.includes(A.cornersDotOptions.type)){const Ve=new _({svg:this._element,type:A.cornersDotOptions.type,window:this._window});Ve.draw(we+2*ie,He+2*ie,le,se),Ve._element&&_e&&_e.appendChild(Ve._element)}else{const Ve=new h({svg:this._element,type:((fe=A.cornersDotOptions)===null||fe===void 0?void 0:fe.type)||A.dotsOptions.type,window:this._window});for(let Ke=0;Ke<x.length;Ke++)for(let Re=0;Re<x[Ke].length;Re++)!((ke=x[Ke])===null||ke===void 0)&&ke[Re]&&(Ve.draw(we+Re*ie,He+Ke*ie,ie,(mt,Ze)=>{var Ne;return!!(!((Ne=x[Ke+Ze])===null||Ne===void 0)&&Ne[Re+mt])}),Ve._element&&_e&&_e.appendChild(Ve._element))}})}loadImage(){return new Promise(($,A)=>{var J;const Q=this._options;if(!Q.image)return A("Image is not defined");if(!((J=Q.nodeCanvas)===null||J===void 0)&&J.loadImage)Q.nodeCanvas.loadImage(Q.image).then(G=>{var ie,X;if(this._image=G,this._options.imageOptions.saveAsBlob){const le=(ie=Q.nodeCanvas)===null||ie===void 0?void 0:ie.createCanvas(this._image.width,this._image.height);(X=le==null?void 0:le.getContext("2d"))===null||X===void 0||X.drawImage(G,0,0),this._imageUri=le==null?void 0:le.toDataURL()}$()}).catch(A);else{const G=new this._window.Image;typeof Q.imageOptions.crossOrigin=="string"&&(G.crossOrigin=Q.imageOptions.crossOrigin),this._image=G,G.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(ie,X){return new Promise(le=>{const be=new X.XMLHttpRequest;be.onload=function(){const ce=new X.FileReader;ce.onloadend=function(){le(ce.result)},ce.readAsDataURL(be.response)},be.open("GET",ie),be.responseType="blob",be.send()})}(Q.image||"",this._window)),$()},G.src=Q.image}})}async drawImage({width:$,height:A,count:J,dotSize:Q}){const G=this._options,ie=this._roundSize((G.width-J*Q)/2),X=this._roundSize((G.height-J*Q)/2),le=ie+this._roundSize(G.imageOptions.margin+(J*Q-$)/2),be=X+this._roundSize(G.imageOptions.margin+(J*Q-A)/2),ce=$-2*G.imageOptions.margin,de=A-2*G.imageOptions.margin,pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");pe.setAttribute("href",this._imageUri||""),pe.setAttribute("xlink:href",this._imageUri||""),pe.setAttribute("x",String(le)),pe.setAttribute("y",String(be)),pe.setAttribute("width",`${ce}px`),pe.setAttribute("height",`${de}px`),this._element.appendChild(pe)}_createColor({options:$,color:A,additionalRotation:J,x:Q,y:G,height:ie,width:X,name:le}){const be=X>ie?X:ie,ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ce.setAttribute("x",String(Q)),ce.setAttribute("y",String(G)),ce.setAttribute("height",String(ie)),ce.setAttribute("width",String(X)),ce.setAttribute("clip-path",`url('#clip-path-${le}')`),$){let de;if($.type==="radial")de=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),de.setAttribute("id",le),de.setAttribute("gradientUnits","userSpaceOnUse"),de.setAttribute("fx",String(Q+X/2)),de.setAttribute("fy",String(G+ie/2)),de.setAttribute("cx",String(Q+X/2)),de.setAttribute("cy",String(G+ie/2)),de.setAttribute("r",String(be/2));else{const pe=(($.rotation||0)+J)%(2*Math.PI),se=(pe+2*Math.PI)%(2*Math.PI);let ge=Q+X/2,ye=G+ie/2,D=Q+X/2,W=G+ie/2;se>=0&&se<=.25*Math.PI||se>1.75*Math.PI&&se<=2*Math.PI?(ge-=X/2,ye-=ie/2*Math.tan(pe),D+=X/2,W+=ie/2*Math.tan(pe)):se>.25*Math.PI&&se<=.75*Math.PI?(ye-=ie/2,ge-=X/2/Math.tan(pe),W+=ie/2,D+=X/2/Math.tan(pe)):se>.75*Math.PI&&se<=1.25*Math.PI?(ge+=X/2,ye+=ie/2*Math.tan(pe),D-=X/2,W-=ie/2*Math.tan(pe)):se>1.25*Math.PI&&se<=1.75*Math.PI&&(ye+=ie/2,ge+=X/2/Math.tan(pe),W-=ie/2,D-=X/2/Math.tan(pe)),de=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),de.setAttribute("id",le),de.setAttribute("gradientUnits","userSpaceOnUse"),de.setAttribute("x1",String(Math.round(ge))),de.setAttribute("y1",String(Math.round(ye))),de.setAttribute("x2",String(Math.round(D))),de.setAttribute("y2",String(Math.round(W)))}$.colorStops.forEach(({offset:pe,color:se})=>{const ge=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");ge.setAttribute("offset",100*pe+"%"),ge.setAttribute("stop-color",se),de.appendChild(ge)}),ce.setAttribute("fill",`url('#${le}')`),this._defs.appendChild(de)}else A&&ce.setAttribute("fill",A);this._element.appendChild(ce)}}k.instanceCount=0;const N=k,V="canvas",F={};for(let z=0;z<=40;z++)F[z]=z;const I={type:V,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:F[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function P(z){const $=Object.assign({},z);if(!$.colorStops||!$.colorStops.length)throw"Field 'colorStops' is required in gradient";return $.rotation?$.rotation=Number($.rotation):$.rotation=0,$.colorStops=$.colorStops.map(A=>Object.assign(Object.assign({},A),{offset:Number(A.offset)})),$}function T(z){const $=Object.assign({},z);return $.width=Number($.width),$.height=Number($.height),$.margin=Number($.margin),$.imageOptions=Object.assign(Object.assign({},$.imageOptions),{hideBackgroundDots:Boolean($.imageOptions.hideBackgroundDots),imageSize:Number($.imageOptions.imageSize),margin:Number($.imageOptions.margin)}),$.margin>Math.min($.width,$.height)&&($.margin=Math.min($.width,$.height)),$.dotsOptions=Object.assign({},$.dotsOptions),$.dotsOptions.gradient&&($.dotsOptions.gradient=P($.dotsOptions.gradient)),$.cornersSquareOptions&&($.cornersSquareOptions=Object.assign({},$.cornersSquareOptions),$.cornersSquareOptions.gradient&&($.cornersSquareOptions.gradient=P($.cornersSquareOptions.gradient))),$.cornersDotOptions&&($.cornersDotOptions=Object.assign({},$.cornersDotOptions),$.cornersDotOptions.gradient&&($.cornersDotOptions.gradient=P($.cornersDotOptions.gradient))),$.backgroundOptions&&($.backgroundOptions=Object.assign({},$.backgroundOptions),$.backgroundOptions.gradient&&($.backgroundOptions.gradient=P($.backgroundOptions.gradient))),$}var B=i(873),L=i.n(B);function U(z){if(!z)throw new Error("Extension must be defined");z[0]==="."&&(z=z.substring(1));const $={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[z.toLowerCase()];if(!$)throw new Error(`Extension "${z}" is not supported`);return $}class H{constructor($){$!=null&&$.jsdom?this._window=new $.jsdom("",{resources:"usable"}).window:this._window=window,this._options=$?T(c(I,$)):I,this.update()}static _clearContainer($){$&&($.innerHTML="")}_setupSvg(){if(!this._qr)return;const $=new N(this._options,this._window);this._svg=$.getElement(),this._svgDrawingPromise=$.drawQR(this._qr).then(()=>{var A;this._svg&&((A=this._extension)===null||A===void 0||A.call(this,$.getElement(),this._options))})}_setupCanvas(){var $,A;this._qr&&(!(($=this._options.nodeCanvas)===null||$===void 0)&&$.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(A=this._svgDrawingPromise)===null||A===void 0?void 0:A.then(()=>{var J;if(!this._svg)return;const Q=this._svg,G=new this._window.XMLSerializer().serializeToString(Q),ie=btoa(G),X=`data:${U("svg")};base64,${ie}`;if(!((J=this._options.nodeCanvas)===null||J===void 0)&&J.loadImage)return this._options.nodeCanvas.loadImage(X).then(le=>{var be,ce;le.width=this._options.width,le.height=this._options.height,(ce=(be=this._nodeCanvas)===null||be===void 0?void 0:be.getContext("2d"))===null||ce===void 0||ce.drawImage(le,0,0)});{const le=new this._window.Image;return new Promise(be=>{le.onload=()=>{var ce,de;(de=(ce=this._domCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||de===void 0||de.drawImage(le,0,0),be()},le.src=X})}}))}async _getElement($="png"){if(!this._qr)throw"QR code is empty";return $.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update($){H._clearContainer(this._container),this._options=$?T(c(this._options,$)):this._options,this._options.data&&(this._qr=L()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(A){switch(!0){case/^[0-9]*$/.test(A):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(A):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===V?this._setupCanvas():this._setupSvg(),this.append(this._container))}append($){if($){if(typeof $.appendChild!="function")throw"Container should be a single DOM node";this._options.type===V?this._domCanvas&&$.appendChild(this._domCanvas):this._svg&&$.appendChild(this._svg),this._container=$}}applyExtension($){if(!$)throw"Extension function should be defined.";this._extension=$,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData($="png"){if(!this._qr)throw"QR code is empty";const A=await this._getElement($),J=U($);if(!A)return null;if($.toLowerCase()==="svg"){const Q=`<?xml version="1.0" standalone="no"?>\r
|
||
${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.createElementBlock(n.Fragment,null,n.renderList(e.area,u=>(n.openBlock(),n.createBlock(d,{label:u.n,value:u.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onChange"])):n.createCommentVNode("",!0)])}const Y3=De(W3,[["render",K3]]),uj="",Q3=n.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function J3(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-title",e.size||"h2"]),style:n.normalizeStyle(e.textStyle)},n.toDisplayString(e.title),7)}const X3=De(Q3,[["render",J3]]);function Ju(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let gr=Ju();function yv(e){gr=e}const ra={exec:()=>null};function Et(e,t=""){let r=typeof e=="string"?e:e.source;const o={replace:(i,l)=>{let d=typeof l=="string"?l:l.source;return d=d.replace(mn.caret,"$1"),r=r.replace(i,d),o},getRegex:()=>new RegExp(r,t)};return o}const mn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Z3=/^(?:[ \t]*(?:\n|$))+/,q3=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,eP=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,oa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tP=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xu=/(?:[*+-]|\d{1,9}[.)])/,bv=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wv=Et(bv).replace(/bull/g,Xu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nP=Et(bv).replace(/bull/g,Xu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Zu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,iP=/^[^\n]+/,qu=/(?!\s*\])(?:\\.|[^\[\]\\])+/,rP=Et(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",qu).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),oP=Et(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xu).getRegex(),ls="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ef=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,aP=Et("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ef).replace("tag",ls).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Cv=Et(Zu).replace("hr",oa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ls).getRegex(),tf={blockquote:Et(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Cv).getRegex(),code:q3,def:rP,fences:eP,heading:tP,hr:oa,html:aP,lheading:wv,list:oP,newline:Z3,paragraph:Cv,table:ra,text:iP},_v=Et("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",oa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ls).getRegex(),lP={...tf,lheading:nP,table:_v,paragraph:Et(Zu).replace("hr",oa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_v).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ls).getRegex()},sP={...tf,html:Et(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ef).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ra,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Et(Zu).replace("hr",oa).replace("heading",` *#{1,6} *[^
|
||
]`).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];function hi(e,t){if(t){if(mn.escapeTest.test(e))return e.replace(mn.escapeReplace,Dv)}else if(mn.escapeTestNoEncode.test(e))return e.replace(mn.escapeReplaceNoEncode,Dv);return e}function Ov(e){try{e=encodeURI(e).replace(mn.percentDecode,"%")}catch{return null}return e}function Vv(e,t){var l;const r=e.replace(mn.findPipe,(d,c,u)=>{let m=!1,h=c;for(;--h>=0&&u[h]==="\\";)m=!m;return m?"|":" |"}),o=r.split(mn.splitPipe);let i=0;if(o[0].trim()||o.shift(),o.length>0&&!((l=o.at(-1))!=null&&l.trim())&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;i<o.length;i++)o[i]=o[i].trim().replace(mn.slashPipe,"|");return o}function la(e,t,r){const o=e.length;if(o===0)return"";let i=0;for(;i<o&&e.charAt(o-i-1)===t;)i++;return e.slice(0,o-i)}function DP(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let o=0;o<e.length;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return r>0?-2:-1}function Bv(e,t,r,o,i){const l=t.href,d=t.title||null,c=e[1].replace(i.other.outputLinkReplace,"$1");o.state.inLink=!0;const u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:l,title:d,text:c,tokens:o.inlineTokens(c)};return o.state.inLink=!1,u}function OP(e,t,r){const o=e.match(r.other.indentCodeCompensation);if(o===null)return t;const i=o[1];return t.split(`
|
||
`).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],text:r[0],escaped:o}}}}class Un{constructor(t){Nt(this,"tokens");Nt(this,"options");Nt(this,"state");Nt(this,"tokenizer");Nt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||gr,this.options.tokenizer=this.options.tokenizer||new us,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:mn,block:cs.normal,inline:aa.normal};this.options.pedantic?(r.block=cs.pedantic,r.inline=aa.pedantic):this.options.gfm&&(r.block=cs.gfm,this.options.breaks?r.inline=aa.breaks:r.inline=aa.gfm),this.tokenizer.rules=r}static get rules(){return{block:cs,inline:aa}}static lex(t,r){return new Un(r).lex(t)}static lexInline(t,r){return new Un(r).inlineTokens(t)}lex(t){t=t.replace(mn.carriageReturn,`
|
||
`),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 exist`);if(["options","block"].includes(d))continue;const c=d,u=o.hooks[c],m=l[c];sa.passThroughHooks.has(d)?l[c]=h=>{if(this.defaults.async)return Promise.resolve(u.call(l,h)).then(C=>m.call(l,C));const y=u.call(l,h);return m.call(l,y)}:l[c]=(...h)=>{let y=u.apply(l,h);return y===!1&&(y=m.apply(l,h)),y}}i.hooks=l}if(o.walkTokens){const l=this.defaults.walkTokens,d=o.walkTokens;i.walkTokens=function(c){let u=[];return u.push(d.call(this,c)),l&&(u=u.concat(l.call(this,c))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Un.lex(t,r!=null?r:this.defaults)}parser(t,r){return Hn.parse(t,r!=null?r:this.defaults)}parseMarkdown(t){return(o,i)=>{const l={...i},d={...this.defaults,...l},c=this.onError(!!d.silent,!!d.async);if(this.defaults.async===!0&&l.async===!1)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof o>"u"||o===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof o!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(o)+", string expected"));d.hooks&&(d.hooks.options=d,d.hooks.block=t);const u=d.hooks?d.hooks.provideLexer():t?Un.lex:Un.lexInline,m=d.hooks?d.hooks.provideParser():t?Hn.parse:Hn.parseInline;if(d.async)return Promise.resolve(d.hooks?d.hooks.preprocess(o):o).then(h=>u(h,d)).then(h=>d.hooks?d.hooks.processAllTokens(h):h).then(h=>d.walkTokens?Promise.all(this.walkTokens(h,d.walkTokens)).then(()=>h):h).then(h=>m(h,d)).then(h=>d.hooks?d.hooks.postprocess(h):h).catch(c);try{d.hooks&&(o=d.hooks.preprocess(o));let h=u(o,d);d.hooks&&(h=d.hooks.processAllTokens(h)),d.walkTokens&&this.walkTokens(h,d.walkTokens);let y=m(h,d);return d.hooks&&(y=d.hooks.postprocess(y)),y}catch(h){return c(h)}}}onError(t,r){return o=>{if(o.message+=`
|
||
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.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=r.compositeOperation||"source-over",this.canvasContextOptions=(l=r.canvasContextOptions)!==null&&l!==void 0?l:{},this._strokeMoveUpdate=this.throttle?FP(hs.prototype._strokeUpdate,this.throttle):hs.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:r}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,r.width,r.height),t.fillRect(0,0,r.width,r.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,r={}){return new Promise((o,i)=>{const l=new Image,d=r.ratio||window.devicePixelRatio||1,c=r.width||this.canvas.width/d,u=r.height||this.canvas.height/d,m=r.xOffset||0,h=r.yOffset||0;this._reset(this._getPointGroupOptions()),l.onload=()=>{this._ctx.drawImage(l,m,h,c,u),o()},l.onerror=y=>{i(y)},l.crossOrigin="anonymous",l.src=t,this._isEmpty=!1})}toDataURL(t="image/png",r){switch(t){case"image/svg+xml":return typeof r!="object"&&(r=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(r))}`;default:return typeof r!="number"&&(r=void 0),this.canvas.toDataURL(t,r)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var t;const r=window.document===this.canvas.ownerDocument?window:(t=this.canvas.ownerDocument.defaultView)!==null&&t!==void 0?t:this.canvas.ownerDocument;return{addEventListener:r.addEventListener.bind(r),removeEventListener:r.removeEventListener.bind(r)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:r=!0}={}){r&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,r){return r?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const r=t.changedTouches[0];return{event:t,type:t.type,x:r.clientX,y:r.clientY,pressure:r.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:o}=this._getListenerFunctions();switch(t.event.type){case"mousedown":o("mousemove",this._handleMouseMove),o("mouseup",this._handleMouseUp);break;case"touchstart":o("touchmove",this._handleTouchMove),o("touchend",this._handleTouchEnd);break;case"pointerdown":o("pointermove",this._handlePointerMove),o("pointerup",this._handlePointerUp);break}this._drawingStroke=!0;const i=this._getPointGroupOptions(),l=Object.assign(Object.assign({},i),{points:[]});this._data.push(l),this._reset(i),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const r=this._createPoint(t.x,t.y,t.pressure),o=this._data[this._data.length-1],i=o.points,l=i.length>0&&i[i.length-1],d=l?r.distanceTo(l)<=this.minDistance:!1,c=this._getPointGroupOptions(o);if(!l||!(l&&d)){const u=this._addPoint(r,c);l?u&&this._drawCurve(u,c):this._drawDot(r,c),i.push({time:r.time,x:r.x,y:r.y,pressure:r.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,r=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(r&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,r,o){const i=this.canvas.getBoundingClientRect();return new ps(t-i.left,r-i.top,o,new Date().getTime())}_addPoint(t,r){const{_lastPoints:o}=this;if(o.push(t),o.length>2){o.length===3&&o.unshift(o[0]);const i=this._calculateCurveWidths(o[1],o[2],r),l=lf.fromPoints(o,i);return o.shift(),l}return null}_calculateCurveWidths(t,r,o){const i=o.velocityFilterWeight*r.velocityFrom(t)+(1-o.velocityFilterWeight)*this._lastVelocity,l=this._strokeWidth(i,o),d={end:l,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=l,d}_strokeWidth(t,r){return Math.max(r.maxWidth/(t+1),r.minWidth)}_drawCurveSegment(t,r,o){const i=this._ctx;i.moveTo(t,r),i.arc(t,r,o,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,r){const o=this._ctx,i=t.endWidth-t.startWidth,l=Math.ceil(t.length())*2;o.beginPath(),o.fillStyle=r.penColor;for(let d=0;d<l;d+=1){const c=d/l,u=c*c,m=u*c,h=1-c,y=h*h,C=y*h;let S=C*t.startPoint.x;S+=3*y*c*t.control1.x,S+=3*h*u*t.control2.x,S+=m*t.endPoint.x;let w=C*t.startPoint.y;w+=3*y*c*t.control1.y,w+=3*h*u*t.control2.y,w+=m*t.endPoint.y;const E=Math.min(t.startWidth+m*i,r.maxWidth);this._drawCurveSegment(S,w,E)}o.closePath(),o.fill()}_drawDot(t,r){const o=this._ctx,i=r.dotSize>0?r.dotSize:(r.minWidth+r.maxWidth)/2;o.beginPath(),this._drawCurveSegment(t.x,t.y,i),o.closePath(),o.fillStyle=r.penColor,o.fill()}_fromData(t,r,o){for(const i of t){const{points:l}=i,d=this._getPointGroupOptions(i);if(l.length>1)for(let c=0;c<l.length;c+=1){const u=l[c],m=new ps(u.x,u.y,u.pressure,u.time);c===0&&this._reset(d);const h=this._addPoint(m,d);h&&r(h,d)}else this._reset(d),o(l[0],d)}}toSVG({includeBackgroundColor:t=!1}={}){const r=this._data,o=Math.max(window.devicePixelRatio||1,1),i=0,l=0,d=this.canvas.width/o,c=this.canvas.height/o,u=document.createElementNS("http://www.w3.org/2000/svg","svg");if(u.setAttribute("xmlns","http://www.w3.org/2000/svg"),u.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),u.setAttribute("viewBox",`${i} ${l} ${d} ${c}`),u.setAttribute("width",d.toString()),u.setAttribute("height",c.toString()),t&&this.backgroundColor){const m=document.createElement("rect");m.setAttribute("width","100%"),m.setAttribute("height","100%"),m.setAttribute("fill",this.backgroundColor),u.appendChild(m)}return this._fromData(r,(m,{penColor:h})=>{const y=document.createElement("path");if(!isNaN(m.control1.x)&&!isNaN(m.control1.y)&&!isNaN(m.control2.x)&&!isNaN(m.control2.y)){const C=`M ${m.startPoint.x.toFixed(3)},${m.startPoint.y.toFixed(3)} C ${m.control1.x.toFixed(3)},${m.control1.y.toFixed(3)} ${m.control2.x.toFixed(3)},${m.control2.y.toFixed(3)} ${m.endPoint.x.toFixed(3)},${m.endPoint.y.toFixed(3)}`;y.setAttribute("d",C),y.setAttribute("stroke-width",(m.endWidth*2.25).toFixed(3)),y.setAttribute("stroke",h),y.setAttribute("fill","none"),y.setAttribute("stroke-linecap","round"),u.appendChild(y)}},(m,{penColor:h,dotSize:y,minWidth:C,maxWidth:S})=>{const w=document.createElement("circle"),E=y>0?y:(C+S)/2;w.setAttribute("r",E.toString()),w.setAttribute("cx",m.x.toString()),w.setAttribute("cy",m.y.toString()),w.setAttribute("fill",h),u.appendChild(w)}),u.outerHTML}}const hj="",MP=n.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,formCreateInject:Object},watch:{visible(e){e?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=n.markRaw(new hs(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const e=this.signaturePad.toDataURL();this.updateValue(e),this.visible=!1},updateValue(e){this.$emit("update:modelValue",e),this.$emit("change",e)},remove(){this.updateValue(""),this.$emit("remove")}}}),PP={class:"_fc-signature"},LP={key:0,class:"_fc-signature-preview"},jP=["src"],zP={class:"_fc-signature-pad",ref:"pad",width:"600px",height:"270px"};function UP(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",PP,[e.modelValue?(n.openBlock(),n.createElementBlock("div",LP,[n.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:t[0]||(t[0]=(...u)=>e.remove&&e.remove(...u))}),n.createElementVNode("img",{src:e.modelValue,alt:"signature"},null,8,jP)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-signature-btn",onClick:t[1]||(t[1]=u=>e.visible=!0)},[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),n.createVNode(c,{class:"_fc-signature-dialog",title:e.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199",modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=u=>e.visible=u),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"640px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[2]||(t[2]=u=>e.clear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("reset")||"\u91CD\u7F6E"),1)]),_:1}),n.createVNode(d,{type:"primary",disabled:e.isEmpty,onClick:e.submit,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["disabled","onClick"])])]),default:n.withCtx(()=>[n.createElementVNode("canvas",zP,null,512)]),_:1},8,["title","modelValue"])])}const HP=De(MP,[["render",UP]]),mj="",WP=n.defineComponent({name:"FcDataSelectView",components:{FcInlineForm:xg,DataTable:Eg},inject:["designer"],props:{title:String,placeholder:String,multiple:Boolean,disabled:Boolean,multipleLimit:Number,valueKey:String,labelKey:String,clearable:Boolean},computed:{t(){return this.designer.setupState.t}},data(){return{visible:!0}},methods:{handleClick(e){e.stopPropagation(),this.visible=!this.visible}}}),GP={key:0,class:"el-dialog"},KP={class:"el-dialog__header show-close"},YP={class:"el-dialog__title"};function QP(e,t,r,o,i,l){const d=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",{class:"_fd-data-select",style:n.normalizeStyle({"--fc-drag-empty":`'${e.t("com.select.emptyText")}'`})},[n.createVNode(d,{onClickCapture:e.handleClick,disabled:e.disabled,placeholder:e.placeholder},null,8,["onClickCapture","disabled","placeholder"]),e.visible?(n.openBlock(),n.createElementBlock("div",GP,[n.createElementVNode("header",KP,[n.createElementVNode("span",YP,n.toDisplayString(e.title),1)]),n.renderSlot(e.$slots,"search"),n.renderSlot(e.$slots,"table")])):n.createCommentVNode("",!0)],4)}const JP=De(WP,[["render",QP]]),XP=e=>e!==null&&typeof e=="object",ZP=e=>e!=null;function sf(e){if(!ZP(e))return e;if(Array.isArray(e))return e.map(t=>sf(t));if(XP(e)){const t={};return Object.keys(e).forEach(r=>{t[r]=sf(e[r])}),t}return e}const gj="",qP=n.defineComponent({name:"FcDataSelect",components:{FcDialog:Dg},emits:["update:modelValue","change","clear"],props:{title:String,formCreateInject:Object,placeholder:String,multiple:Boolean,disabled:Boolean,multipleLimit:Number,valueKey:String,labelKey:String,clearable:Boolean,searchRule:Object,tableRule:Object,autoLoad:Boolean,modelValue:[Object,Array]},computed:{options(){return this.list.map(e=>({label:e[this.labelKey||"label"],value:e[this.valueKey||"value"]}))},selectValue(){const e=this.options.map(t=>t.value);return this.multiple===!0?e:e[0]},fapi(){var e,t;return(t=(e=this.$refs)==null?void 0:e.dialog)==null?void 0:t.fapi}},data(){return{list:[],visible:!1,formRule:[],load:wl(()=>{this.$refs.dialog.fapi.el(this.formRule[1].name).initPage()},500)}},watch:{modelValue:{handler(e){e?this.list=Array.isArray(e)?e:[e]:this.list=[]},immediate:!0}},methods:{getTableEl(){return this.$refs.dialog.fapi.el(this.formRule[1].name)},getDialogEl(){return this.$refs.dialog},formChange(){this.autoLoad&&this.load()},changeSelectValue(e){e==null?this.list=[]:this.list=this.list.filter(t=>e.indexOf(t[this.valueKey||"value"])!==-1),this.updateValue()},confirm(){const e=za([...this.list,...this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().getSelectionRows()]),t=e.map(r=>r[this.valueKey||"value"]);this.list=e.filter((r,o)=>t.indexOf(r[this.valueKey||"value"])===o),this.$refs.dialog.close(),this.updateValue()},tableRowClick(e){this.multiple?this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().toggleRowSelection(e):(this.list=[e],this.updateValue(),this.$refs.dialog.close())},updateValue(){this.multipleLimit>0&&this.list.length>this.multipleLimit&&(this.list=this.list.splice(0,this.multipleLimit));const e=this.list.map(t=>({[this.valueKey||"value"]:t[this.valueKey||"value"],[this.labelKey||"label"]:t[this.labelKey||"label"]}));this.$emit("update:modelValue",this.multiple?e:e[0]),this.$emit("change",this.multiple?e:e[0])},getFormRule(){const e=sf([this.searchRule,this.tableRule]);return e[1].on||(e[1].on={}),e[1].props||(e[1].props={}),this.multiple&&(e[1].props.rowKey||(e[1].props.rowKey=this.valueKey||"value"),e[1].name||(e[1].name=We())),e[1].props.selection=!0,e[1].on.rowClick?e[1].on.rowClick=[(...t)=>this.tableRowClick(...t),e[1].on.rowClick]:e[1].on.rowClick=(...t)=>this.tableRowClick(...t),e[1].on.selectionChange?e[1].on.selectionChange=[(...t)=>this.selectionChange(...t),e[1].on.selectionChange]:e[1].on.selectionChange=(...t)=>this.selectionChange(...t),e},selectionChange(e){this.multiple||this.tableRowClick(e[0])},handleClear(...e){this.$emit("clear",...e)},handleClick(e){this.disabled||!e||(this.visible=!0,this.formRule=this.getFormRule(),this.$refs.dialog.open())}}}),eL={class:"_fc-data-select"};function tL(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("FcDialog");return n.openBlock(),n.createElementBlock("div",eL,[n.createVNode(c,{disabled:e.disabled,placeholder:e.placeholder,multiple:e.multiple,multipleLimit:e.multipleLimit,clearable:e.clearable,"model-value":e.selectValue,"onUpdate:modelValue":e.changeSelectValue,"popper-class":"_fc-data-select-pop",onVisibleChange:e.handleClick,onClear:e.handleClear},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,m=>(n.openBlock(),n.createBlock(d,{key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["disabled","placeholder","multiple","multipleLimit","clearable","model-value","onUpdate:modelValue","onVisibleChange","onClear"]),n.createVNode(u,{ref:"dialog",formCreateInject:e.formCreateInject,rule:e.formRule,"onUpdate:modelValue":e.formChange,footer:e.multiple,title:e.title,width:"900px",onConfirm:e.confirm},null,8,["formCreateInject","rule","onUpdate:modelValue","footer","title","onConfirm"])])}const nL=De(qP,[["render",tL]]),vj="",iL=n.defineComponent({name:"FcEcharts",data(){return{chart:null,debounceLoad:wl(()=>{this.load()},600),debounceResize:wl(()=>{this.chart&&this.chart.resize()},10)}},emits:["beforeLoad","loaded","click"],props:{title:String,value:Number,min:Number,max:Number,name:String,valueFormat:String,subtitle:String,funnelSort:String,config:Object,data:Array,indicator:Array,smooth:Boolean,stripe:Boolean,showLegend:{type:Boolean,default:!0},loadOptions:{type:Function,default:()=>{}},showSeriesLabel:Boolean,type:String,pieType:String,stack:Boolean,barBackgroundColor:String},watch:{$props:{handler(){this.debounceLoad()},deep:!0}},methods:{getSeries(){var r;const e={type:"line",stack:this.stack?"Total":"",smooth:this.smooth,showBackground:!1,label:{show:this.showSeriesLabel,position:this.stripe?"inside":"top"}};this.type==="area"?(e.areaStyle={},e.emphasis={focus:"series"}):this.type==="bar"&&(e.type="bar",this.barBackgroundColor&&(e.showBackground=!0,e.backgroundStyle={color:this.barBackgroundColor}));let t=((r=this.config)==null?void 0:r.series)||[];return t.length?(typeof t[0]!="object"&&(t=[{data:t}]),t=t.map(o=>({...e,...o})),t):[]},getTooltip(){const e={trigger:"axis",valueFormat:void 0};return this.valueFormat&&(e.valueFormatter=t=>this.valueFormat?this.valueFormat.replaceAll("{value}",t):t),this.type==="bar"&&(e.axisPointer={type:"shadow"}),e},getAxis(){var e,t;return this.stripe?{yAxis:{type:"category",boundaryGap:this.type==="bar",data:((t=this.config)==null?void 0:t.category)||[]},xAxis:{type:"value"}}:{xAxis:{type:"category",boundaryGap:this.type==="bar",data:(e=this.config)==null?void 0:e.category},yAxis:{type:"value"}}},getDefOptions(){return{title:{text:this.title,subtext:this.subtitle},tooltip:this.getTooltip(),legend:{left:"right",show:this.showLegend},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},...this.getAxis(),series:this.getSeries()}},getPieOptions(){const e={radius:"50%",center:"50%",startAngle:0,avoidLabelOverlap:!0,labelLine:{show:!0},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}};return this.pieType==="doughnut"?(e.radius=["40%","70%"],e.avoidLabelOverlap=!1):this.pieType==="half-doughnut"&&(e.radius=["40%","70%"],e.center=["50%","70%"],e.startAngle=180,e.endAngle=360),{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{type:"pie",data:this.data,...e}]}},getGaugeOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"center"},series:[{name:"Pressure",type:"gauge",min:this.min||0,max:this.max||60,progress:{show:!0},detail:{valueAnimation:!0,formatter:"{value}"},data:[{value:this.value,name:this.name}]}]}},getRadarOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:this.showLegend},radar:{indicator:this.indicator},series:[{type:"radar",tooltip:{trigger:"item"},data:this.data}]}},getScatterOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:!0},xAxis:{scale:!0},yAxis:{scale:!0},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},series:(this.data||[]).map(e=>Array.isArray(e)?{type:"scatter",data:e}:{type:"scatter",...e})}},getFunnelOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{name:"Funnel",type:"funnel",left:"10%",top:"40px",bottom:"20px",width:"80%",min:0,max:Math.max(...(this.data||[]).map(e=>e.value)),minSize:"0%",maxSize:"100%",sort:this.funnelSort||"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{}},data:this.data}]}},load(){this.$nextTick(()=>{on.ready("echarts",()=>{this.chart=n.markRaw(window.echarts.init(this.$refs.chart)),this.chart.on("click",(...t)=>{this.$emit("click",...t)});let e;if(this.type==="pie")e=this.getPieOptions();else if(this.type==="funnel")e=this.getFunnelOptions();else if(this.type==="gauge")e=this.getGaugeOptions();else if(this.type==="radar")e=this.getRadarOptions();else if(this.type==="scatter")e=this.getScatterOptions();else if(this.type==="custom"){if(e=this.loadOptions(this.config,this.chart)||{},typeof e.then=="function"){e.then(t=>{this.$emit("beforeLoad",this.chart,t),this.chart.setOption(t),this.$emit("loaded",this.chart,t)});return}}else e=this.getDefOptions();this.$emit("beforeLoad",this.chart,e),this.chart.setOption(e),this.$emit("loaded",this.chart,e)})})}},created(){window.echarts?on.done("echarts"):on.isDefined("echarts")||on.loadNpm("echarts@5.6.0/dist/echarts.min.js","echarts")},mounted(){this.load(),window.addEventListener("resize",this.debounceResize)},unmounted(){window.removeEventListener("resize",this.debounceResize)}}),rL={class:"_fc-echarts",ref:"chart"};function oL(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",rL,null,512)}const aL=De(iL,[["render",oL]]);/*!
|
||
* @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),J=0,z=0;z<$;z++)for(var Q=arguments[z],G=0,ie=Q.length;G<ie;G++,J++)A[J]=Q[G];return A}function k(R,z){for(var $=0,A=z.length,J=R.length;$<A;$++,J++)R[J]=z[$];return R}function N(R){return this instanceof N?(this.v=R,this):new N(R)}function V(R,z,$){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A=$.apply(R,z||[]),J,Q=[];return J={},G("next"),G("throw"),G("return"),J[Symbol.asyncIterator]=function(){return this},J;function G(de){A[de]&&(J[de]=function(pe){return new Promise(function(se,ge){Q.push([de,pe,se,ge])>1||ie(de,pe)})})}function ie(de,pe){try{X(A[de](pe))}catch(se){ce(Q[0][3],se)}}function X(de){de.value instanceof N?Promise.resolve(de.value.v).then(le,be):ce(Q[0][2],de)}function le(de){ie("next",de)}function be(de){ie("throw",de)}function ce(de,pe){de(pe),Q.shift(),Q.length&&ie(Q[0][0],Q[0][1])}}function F(R){var z,$;return z={},A("next"),A("throw",function(J){throw J}),A("return"),z[Symbol.iterator]=function(){return this},z;function A(J,Q){z[J]=R[J]?function(G){return($=!$)?{value:N(R[J](G)),done:J==="return"}:Q?Q(G):G}:Q}}function I(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var z=R[Symbol.asyncIterator],$;return z?z.call(R):(R=typeof _=="function"?_(R):R[Symbol.iterator](),$={},A("next"),A("throw"),A("return"),$[Symbol.asyncIterator]=function(){return this},$);function A(Q){$[Q]=R[Q]&&function(G){return new Promise(function(ie,X){G=R[Q](G),J(ie,X,G.done,G.value)})}}function J(Q,G,ie,X){Promise.resolve(X).then(function(le){Q({value:le,done:ie})},G)}}function P(R,z){return Object.defineProperty?Object.defineProperty(R,"raw",{value:z}):R.raw=z,R}var T=Object.create?function(R,z){Object.defineProperty(R,"default",{enumerable:!0,value:z})}:function(R,z){R.default=z};function B(R){if(R&&R.__esModule)return R;var z={};if(R!=null)for(var $ in R)$!=="default"&&Object.prototype.hasOwnProperty.call(R,$)&&w(z,R,$);return T(z,R),z}function L(R){return R&&R.__esModule?R:{default:R}}function U(R,z){if(!z.has(R))throw new TypeError("attempted to get private field on non-instance");return z.get(R)}function H(R,z,$){if(!z.has(R))throw new TypeError("attempted to set private field on non-instance");return z.set(R,$),$}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(89)),u=l(i(4)),m=l(i(26)),h=l(i(17)),y=l(i(121)),C=l(i(27)),S=l(i(91)),w=l(i(70)),E=l(i(28)),_=l(i(57));(0,d.default)(o,"__esModule",{value:!0}),o.DomElement=void 0;var g=i(2),b=i(6),x=[];function k(T){var B=document.createElement("div");B.innerHTML=T;var L=B.children;return b.toArray(L)}function N(T){return T?T instanceof HTMLCollection||T instanceof NodeList:!1}function V(T){var B=document.querySelectorAll(T);return b.toArray(B)}function F(T){var B=[],L=[];return(0,c.default)(T)?B=T:B=T.split(";"),(0,u.default)(B).call(B,function(U){var H,R=(0,m.default)(H=U.split(":")).call(H,function(z){return(0,h.default)(z).call(z)});R.length===2&&L.push(R[0]+":"+R[1])}),L}var I=function(){function T(B){if(this.elems=[],this.length=this.elems.length,this.dataSource=new y.default,!!B){if(B instanceof T)return B;var L=[],U=B instanceof Node?B.nodeType:-1;if(this.selector=B,U===1||U===9)L=[B];else if(N(B))L=b.toArray(B);else if(B instanceof Array)L=B;else if(typeof B=="string"){var H,R=(0,h.default)(H=B.replace(`/
|
||
/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 L.innerHTML.replace(/<[^>]+>/g,function(){return""})}},T.prototype.html=function(B){var L=this.elems[0];return B?(L.innerHTML=B,this):L.innerHTML},T.prototype.val=function(){var B,L=this.elems[0];return(0,h.default)(B=L.value).call(B)},T.prototype.focus=function(){var B;return(0,u.default)(B=this).call(B,function(L){L.focus()})},T.prototype.prev=function(){var B=this.elems[0];return P(B.previousElementSibling)},T.prototype.next=function(){var B=this.elems[0];return P(B.nextElementSibling)},T.prototype.getNextSibling=function(){var B=this.elems[0];return P(B.nextSibling)},T.prototype.parent=function(){var B=this.elems[0];return P(B.parentElement)},T.prototype.parentUntil=function(B,L){var U=L||this.elems[0];if(U.nodeName==="BODY")return null;var H=U.parentElement;return H===null?null:H.matches(B)?P(H):this.parentUntil(B,H)},T.prototype.parentUntilEditor=function(B,L,U){var H=U||this.elems[0];if(P(H).equal(L.$textContainerElem)||P(H).equal(L.$toolbarElem))return null;var R=H.parentElement;return R===null?null:R.matches(B)?P(R):this.parentUntilEditor(B,L,R)},T.prototype.equal=function(B){return B instanceof T?this.elems[0]===B.elems[0]:B instanceof HTMLElement?this.elems[0]===B:!1},T.prototype.insertBefore=function(B){var L,U=P(B),H=U.elems[0];return H?(0,u.default)(L=this).call(L,function(R){var z=H.parentNode;z==null||z.insertBefore(R,H)}):this},T.prototype.insertAfter=function(B){var L,U=P(B),H=U.elems[0],R=H&&H.nextSibling;return H?(0,u.default)(L=this).call(L,function(z){var $=H.parentNode;R?$.insertBefore(z,R):$.appendChild(z)}):this},T.prototype.data=function(B,L){if(L!=null)this.dataSource.set(B,L);else return this.dataSource.get(B)},T.prototype.getNodeTop=function(B){if(this.length<1)return this;var L=this.parent();return B.$textElem.equal(this)||B.$textElem.equal(L)?this:(L.prior=this,L.getNodeTop(B))},T.prototype.getOffsetData=function(){var B=this.elems[0];return{top:B.offsetTop,left:B.offsetLeft,width:B.offsetWidth,height:B.offsetHeight,parent:B.offsetParent}},T.prototype.scrollTop=function(B){var L=this.elems[0];L.scrollTo({top:B})},T}();o.DomElement=I;function P(){for(var T=[],B=0;B<arguments.length;B++)T[B]=arguments[B];return new((0,_.default)(I).apply(I,g.__spreadArrays([void 0],T)))}o.default=P},function(r,o,i){r.exports=i(180)},function(r,o,i){var l=i(8),d=i(71).f,c=i(101),u=i(9),m=i(40),h=i(19),y=i(16),C=function(w){var E=function(g,b,x){if(this instanceof w){switch(arguments.length){case 0:return new w;case 1:return new w(g);case 2:return new w(g,b)}return new w(g,b,x)}return w.apply(this,arguments)};return E.prototype=w.prototype,E};r.exports=function(S,w){var E=S.target,_=S.global,g=S.stat,b=S.proto,x=_?l:g?l[E]:(l[E]||{}).prototype,k=_?u:u[E]||(u[E]={}),N=k.prototype,V,F,I,P,T,B,L,U,H;for(P in w)V=c(_?P:E+(g?".":"#")+P,S.forced),F=!V&&x&&y(x,P),B=k[P],F&&(S.noTargetGet?(H=d(x,P),L=H&&H.value):L=x[P]),T=F&&L?L:w[P],!(F&&Qt(B)===Qt(T))&&(S.bind&&F?U=m(T,l):S.wrap&&F?U=C(T):b&&typeof T=="function"?U=m(Function.call,T):U=T,(S.sham||T&&T.sham||B&&B.sham)&&h(U,"sham",!0),k[P]=U,b&&(I=E+"Prototype",y(u,I)||h(u,I,{}),u[I][P]=T,S.real&&N&&!N[P]&&h(N,P,T)))}},function(r,o,i){var l=i(0),d=l(i(92)),c=l(i(1)),u=l(i(256)),m=l(i(45)),h=l(i(46)),y=l(i(89)),C=l(i(26));(0,c.default)(o,"__esModule",{value:!0}),o.hexToRgb=o.getRandomCode=o.toArray=o.deepClone=o.isFunction=o.debounce=o.throttle=o.arrForEach=o.forEach=o.replaceSpecialSymbol=o.replaceHtmlSymbol=o.getRandom=o.UA=void 0;var S=i(2),w=function(){function B(){this._ua=navigator.userAgent;var L=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(L&&L[1]=="Edge"&&(0,u.default)(L[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return B.prototype.isIE=function(){return"ActiveXObject"in window},B.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},B}();o.UA=new w;function E(B){var L;return B===void 0&&(B=""),B+(0,m.default)(L=Math.random().toString()).call(L,2)}o.getRandom=E;function _(B){return B.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"<br/>")}o.replaceHtmlSymbol=_;function g(B){return B.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}o.replaceSpecialSymbol=g;function b(B,L){for(var U in B)if(Object.prototype.hasOwnProperty.call(B,U)){var H=L(U,B[U]);if(H===!1)break}}o.forEach=b;function x(B,L){var U,H,R,z=B.length||0;for(U=0;U<z&&(H=B[U],R=L.call(B,H,U),R!==!1);U++);}o.arrForEach=x;function k(B,L){L===void 0&&(L=200);var U=!1;return function(){for(var H=this,R=[],z=0;z<arguments.length;z++)R[z]=arguments[z];U||(U=!0,(0,h.default)(function(){U=!1,B.call.apply(B,S.__spreadArrays([H],R))},L))}}o.throttle=k;function N(B,L){L===void 0&&(L=200);var U=0;return function(){for(var H=this,R=[],z=0;z<arguments.length;z++)R[z]=arguments[z];U&&window.clearTimeout(U),U=(0,h.default)(function(){U=0,B.call.apply(B,S.__spreadArrays([H],R))},L)}}o.debounce=N;function V(B){return typeof B=="function"}o.isFunction=V;function F(B){if((0,d.default)(B)!=="object"||typeof B=="function"||B===null)return B;var L;(0,y.default)(B)&&(L=[]),(0,y.default)(B)||(L={});for(var U in B)Object.prototype.hasOwnProperty.call(B,U)&&(L[U]=F(B[U]));return L}o.deepClone=F;function I(B){return(0,m.default)(Array.prototype).call(B)}o.toArray=I;function P(){var B;return(0,m.default)(B=Math.random().toString(36)).call(B,-5)}o.getRandomCode=P;function T(B){var L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(B);if(L==null)return null;var U=(0,C.default)(L).call(L,function($){return(0,u.default)($,16)}),H=U[1],R=U[2],z=U[3];return"rgb("+H+", "+R+", "+z+")"}o.hexToRgb=T},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.EMPTY_P_REGEX=o.EMPTY_P_LAST_REGEX=o.EMPTY_P=o.urlRegex=o.EMPTY_FN=void 0;function c(){}o.EMPTY_FN=c,o.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/g,o.EMPTY_P='<p data-we-empty-p=""><br></p>',o.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,o.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(r,o,i){(function(l){var d=function(u){return u&&u.Math==Math&&u};r.exports=d((typeof globalThis>"u"?"undefined":Qt(globalThis))=="object"&&globalThis)||d((typeof window>"u"?"undefined":Qt(window))=="object"&&window)||d((typeof self>"u"?"undefined":Qt(self))=="object"&&self)||d(Qt(l)=="object"&&l)||Function("return this")()}).call(this,i(145))},function(r,o){r.exports={}},function(r,o,i){var l=i(8),d=i(74),c=i(16),u=i(64),m=i(76),h=i(106),y=d("wks"),C=l.Symbol,S=h?C:C&&C.withoutSetter||u;r.exports=function(w){return c(y,w)||(m&&c(C,w)?y[w]=C[w]:y[w]=S("Symbol."+w)),y[w]}},function(r,o){r.exports=function(i){try{return!!i()}catch{return!0}}},function(r,o,i){var l=i(9),d=i(16),c=i(93),u=i(18).f;r.exports=function(m){var h=l.Symbol||(l.Symbol={});d(h,m)||u(h,m,{value:c.f(m)})}},function(r,o){r.exports=function(i){return Qt(i)==="object"?i!==null:typeof i=="function"}},function(r,o,i){var l=i(11);r.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(r,o,i){var l=i(9);r.exports=function(d){return l[d+"Prototype"]}},function(r,o){var i={}.hasOwnProperty;r.exports=function(l,d){return i.call(l,d)}},function(r,o,i){r.exports=i(192)},function(r,o,i){var l=i(14),d=i(100),c=i(25),u=i(60),m=Object.defineProperty;o.f=l?m:function(y,C,S){if(c(y),C=u(C,!0),c(S),d)try{return m(y,C,S)}catch{}if("get"in S||"set"in S)throw TypeError("Accessors not supported");return"value"in S&&(y[C]=S.value),y}},function(r,o,i){var l=i(14),d=i(18),c=i(48);r.exports=l?function(u,m,h){return d.f(u,m,c(1,h))}:function(u,m,h){return u[m]=h,u}},function(r,o,i){var l=function(){var x;return function(){return typeof x>"u"&&(x=Boolean(window&&document&&document.all&&!window.atob)),x}}(),d=function(){var x={};return function(N){if(typeof x[N]>"u"){var V=document.querySelector(N);if(window.HTMLIFrameElement&&V instanceof window.HTMLIFrameElement)try{V=V.contentDocument.head}catch{V=null}x[N]=V}return x[N]}}(),c=[];function u(b){for(var x=-1,k=0;k<c.length;k++)if(c[k].identifier===b){x=k;break}return x}function m(b,x){for(var k={},N=[],V=0;V<b.length;V++){var F=b[V],I=x.base?F[0]+x.base:F[0],P=k[I]||0,T="".concat(I," ").concat(P);k[I]=P+1;var B=u(T),L={css:F[1],media:F[2],sourceMap:F[3]};B!==-1?(c[B].references++,c[B].updater(L)):c.push({identifier:T,updater:g(L,x),references:1}),N.push(T)}return N}function h(b){var x=document.createElement("style"),k=b.attributes||{};if(typeof k.nonce>"u"){var N=i.nc;N&&(k.nonce=N)}if(Object.keys(k).forEach(function(F){x.setAttribute(F,k[F])}),typeof b.insert=="function")b.insert(x);else{var V=d(b.insert||"head");if(!V)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");V.appendChild(x)}return x}function y(b){if(b.parentNode===null)return!1;b.parentNode.removeChild(b)}var C=function(){var x=[];return function(N,V){return x[N]=V,x.filter(Boolean).join(`
|
||
`)}}();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 ie=y.default(Q);B.append(ie),H.push(G),R.push(ie),A===0?(G.data("active",!0),G.addClass("w-e-active")):ie.hide(),G.on("click",function(){G.data("active")||((0,c.default)(H).call(H,function(X){X.data("active",!1),X.removeClass("w-e-active")}),(0,c.default)(R).call(R,function(X){X.hide()}),G.data("active",!0),G.addClass("w-e-active"),ie.show())})}}),b.on("click",function($){$.stopPropagation()}),_.$elem.append(b),g.setLinkValue&&g.setLinkValue(b,"text"),g.setLinkValue&&g.setLinkValue(b,"link"),(0,c.default)(U).call(U,function($,A){if(!!$){var J=$.events||[];(0,c.default)(J).call(J,function(Q){var G,ie=Q.selector,X=Q.type,le=Q.fn||C.EMPTY_FN,be=R[A],ce=(G=Q.bindEnter)!==null&&G!==void 0?G:!1,de=function(se){return h.__awaiter(E,void 0,void 0,function(){var ge;return h.__generator(this,function(ye){switch(ye.label){case 0:return se.stopPropagation(),[4,le(se)];case 1:return ge=ye.sent(),ge&&this.remove(),[2]}})})};(0,u.default)(be).call(be,ie).on(X,de),ce&&X==="click"&&be.on("keyup",function(pe){pe.keyCode==13&&de(pe)})})}});var z=(0,u.default)(b).call(b,"input[type=text],textarea");z.length&&z.get(0).focus(),w.hideCurAllPanels(),_.setPanel(this),w.createdMenus.add(_)}},w.prototype.remove=function(){var E=this.menu,_=this.$container;_&&_.remove(),w.createdMenus.delete(E)},w.hideCurAllPanels=function(){var E;w.createdMenus.size!==0&&(0,c.default)(E=w.createdMenus).call(E,function(_){var g=_.panel;g&&g.remove()})},w.createdMenus=new m.default,w}();o.default=S},function(r,o){var i={}.toString;r.exports=function(l){return i.call(l).slice(8,-1)}},function(r,o,i){var l=i(62),d=Math.min;r.exports=function(c){return c>0?d(l(c),9007199254740991):0}},function(r,o,i){var l=i(9),d=i(8),c=function(m){return typeof m=="function"?m:void 0};r.exports=function(u,m){return arguments.length<2?c(l[u])||c(d[u]):l[u]&&l[u][m]||d[u]&&d[u][m]}},function(r,o,i){var l=i(81),d=i(18).f,c=i(19),u=i(16),m=i(170),h=i(10),y=h("toStringTag");r.exports=function(C,S,w,E){if(C){var _=w?C:C.prototype;u(_,y)||d(_,y,{configurable:!0,value:S}),E&&!l&&c(_,"toString",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(95)),m=function(h){c.__extends(y,h);function y(C,S){return h.call(this,C,S)||this}return y.prototype.setPanel=function(C){this.panel=C},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(57));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(3)),y=function(){function C(S,w,E){this.editor=S,this.$targetElem=w,this.conf=E,this._show=!1,this._isInsertTextContainer=!1;var _=h.default("<div></div>");_.addClass("w-e-tooltip"),this.$container=_}return C.prototype.getPositionData=function(){var S=this.$container,w=0,E=0,_=20,g=document.documentElement.scrollTop,b=this.$targetElem.getBoundingClientRect(),x=this.editor.$textElem.getBoundingClientRect(),k=this.$targetElem.getOffsetData(),N=h.default(k.parent),V=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=N.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var F=N.getBoundingClientRect().height,I=k.top,P=k.left,T=k.height,B=I-V;B>_+5?(w=B-_-15,S.addClass("w-e-tooltip-up")):B+T+_<F?(w=B+T+10,S.addClass("w-e-tooltip-down")):(w=(B>0?B:0)+_+10,S.addClass("w-e-tooltip-down")),P<0?E=0:E=P}else b.top<_||b.top-x.top<_?(w=b.bottom+g+5,S.addClass("w-e-tooltip-down")):(w=b.top+g-_-15,S.addClass("w-e-tooltip-up")),b.left<0?E=0:E=b.left;return{top:w,left:E}},C.prototype.appendMenus=function(){var S=this,w=this.conf,E=this.editor,_=this.$targetElem,g=this.$container;(0,c.default)(w).call(w,function(b,x){var k=b.$elem,N=h.default("<div></div>");N.addClass("w-e-tooltip-item-wrapper "),N.append(k),g.append(N),k.on("click",function(V){V.preventDefault();var F=b.onClick(E,_);F&&S.remove()})})},C.prototype.create=function(){var S,w,E=this.editor,_=this.$container;this.appendMenus();var g=this.getPositionData(),b=g.top,x=g.left;_.css("top",b+"px"),_.css("left",x+"px"),_.css("z-index",E.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(_):h.default("body").append(_),this._show=!0,E.beforeDestroy((0,u.default)(S=this.remove).call(S,this)),E.txt.eventHooks.onBlurEvents.push((0,u.default)(w=this.remove).call(w,this))},C.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,d.default)(C.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),C}();o.default=y},function(r,o,i){var l=i(41);r.exports=function(d,c,u){if(l(d),c===void 0)return d;switch(u){case 0:return function(){return d.call(c)};case 1:return function(m){return d.call(c,m)};case 2:return function(m,h){return d.call(c,m,h)};case 3:return function(m,h,y){return d.call(c,m,h,y)}}return function(){return d.apply(c,arguments)}}},function(r,o){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},function(r,o,i){var l=i(165),d=i(8),c=i(13),u=i(19),m=i(16),h=i(63),y=i(51),C=d.WeakMap,S,w,E,_=function(I){return E(I)?w(I):S(I,{})},g=function(I){return function(P){var T;if(!c(P)||(T=w(P)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return T}};if(l){var b=new C,x=b.get,k=b.has,N=b.set;S=function(I,P){return N.call(b,I,P),P},w=function(I){return x.call(b,I)||{}},E=function(I){return k.call(b,I)}}else{var V=h("state");y[V]=!0,S=function(I,P){return u(I,V,P),P},w=function(I){return m(I,V)?I[V]:{}},E=function(I){return m(I,V)}}r.exports={set:S,get:w,has:E,enforce:_,getterFor:g}},function(r,o){r.exports=!0},function(r,o){r.exports={}},function(r,o,i){r.exports=i(261)},function(r,o,i){r.exports=i(265)},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0}),o.createElementFragment=o.createDocumentFragment=o.createElement=o.insertBefore=o.getEndPoint=o.getStartPoint=o.updateRange=o.filterSelectionNodes=void 0;var u=i(2),m=i(137),h=u.__importDefault(i(3));function y(x){var k=[];return(0,c.default)(x).call(x,function(N){var V=N.getNodeName();if(V!==m.ListType.OrderedList&&V!==m.ListType.UnorderedList)k.push(N);else if(N.prior)k.push(N.prior);else{var F=N.children();F==null||(0,c.default)(F).call(F,function(I){k.push(h.default(I))})}}),k}o.filterSelectionNodes=y;function C(x,k,N){var V=x.selection,F=document.createRange();k.length>1?(F.setStart(k.elems[0],0),F.setEnd(k.elems[k.length-1],k.elems[k.length-1].childNodes.length)):F.selectNodeContents(k.elems[0]),N&&F.collapse(!1),V.saveRange(F),V.restoreSelection()}o.updateRange=C;function S(x){var k;return x.prior?x.prior:h.default((k=x.children())===null||k===void 0?void 0:k.elems[0])}o.getStartPoint=S;function w(x){var k;return x.prior?x.prior:h.default((k=x.children())===null||k===void 0?void 0:k.last().elems[0])}o.getEndPoint=w;function E(x,k,N){N===void 0&&(N=null),x.parent().elems[0].insertBefore(k,N)}o.insertBefore=E;function _(x){return document.createElement(x)}o.createElement=_;function g(){return document.createDocumentFragment()}o.createDocumentFragment=g;function b(x,k,N){return N===void 0&&(N="li"),(0,c.default)(x).call(x,function(V){var F=_(N);F.innerHTML=V.html(),k.appendChild(F),V.remove()}),k}o.createElementFragment=b},function(r,o){r.exports=function(i,l){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:l}}},function(r,o){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(r,o,i){var l=i(164).charAt,d=i(42),c=i(75),u="String Iterator",m=d.set,h=d.getterFor(u);c(String,"String",function(y){m(this,{type:u,string:String(y),index:0})},function(){var C=h(this),S=C.string,w=C.index,E;return w>=S.length?{value:void 0,done:!0}:(E=l(S,w),C.index+=E.length,{value:E,done:!1})})},function(r,o){r.exports={}},function(r,o,i){var l=i(107),d=i(80);r.exports=Object.keys||function(u){return l(u,d)}},function(r,o,i){var l=i(19);r.exports=function(d,c,u,m){m&&m.enumerable?d[c]=u:l(d,c,u)}},function(r,o,i){i(173);var l=i(174),d=i(8),c=i(65),u=i(19),m=i(44),h=i(10),y=h("toStringTag");for(var C in l){var S=d[C],w=S&&S.prototype;w&&c(w)!==y&&u(w,y,C),m[C]=m.Array}},function(r,o,i){var l=i(34);r.exports=Array.isArray||function(c){return l(c)=="Array"}},function(r,o,i){var l=i(11),d=i(10),c=i(86),u=d("species");r.exports=function(m){return c>=51||!l(function(){var h=[],y=h.constructor={};return y[u]=function(){return{foo:1}},h[m](Boolean).foo!==1})}},function(r,o,i){r.exports=i(222)},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.ListHandle=void 0;var c=i(2),u=c.__importDefault(i(373)),m=function(){function h(y){this.options=y,this.selectionRangeElem=new u.default}return h}();o.ListHandle=m},function(r,o,i){var l={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,c=d&&!l.call({1:2},1);o.f=c?function(m){var h=d(this,m);return!!h&&h.enumerable}:l},function(r,o,i){var l=i(13);r.exports=function(d,c){if(!l(d))return d;var u,m;if(c&&typeof(u=d.toString)=="function"&&!l(m=u.call(d))||typeof(u=d.valueOf)=="function"&&!l(m=u.call(d))||!c&&typeof(u=d.toString)=="function"&&!l(m=u.call(d)))return m;throw TypeError("Can't convert object to primitive value")}},function(r,o){},function(r,o){var i=Math.ceil,l=Math.floor;r.exports=function(d){return isNaN(d=+d)?0:(d>0?l:i)(d)}},function(r,o,i){var l=i(74),d=i(64),c=l("keys");r.exports=function(u){return c[u]||(c[u]=d(u))}},function(r,o){var i=0,l=Math.random();r.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++i+l).toString(36)}},function(r,o,i){var l=i(81),d=i(34),c=i(10),u=c("toStringTag"),m=d(function(){return arguments}())=="Arguments",h=function(C,S){try{return C[S]}catch{}};r.exports=l?d:function(y){var C,S,w;return y===void 0?"Undefined":y===null?"Null":typeof(S=h(C=Object(y),u))=="string"?S:m?d(C):(w=d(C))=="Object"&&typeof C.callee=="function"?"Arguments":w}},function(r,o,i){var l=i(25),d=i(112),c=i(35),u=i(40),m=i(113),h=i(114),y=function(w,E){this.stopped=w,this.result=E},C=r.exports=function(S,w,E,_,g){var b=u(w,E,_?2:1),x,k,N,V,F,I,P;if(g)x=S;else{if(k=m(S),typeof k!="function")throw TypeError("Target is not iterable");if(d(k)){for(N=0,V=c(S.length);V>N;N++)if(F=_?b(l(P=S[N])[0],P[1]):b(S[N]),F&&F instanceof y)return F;return new y(!1)}x=k.call(S)}for(I=x.next;!(P=I.call(x)).done;)if(F=h(x,b,P.value,_),Qt(F)=="object"&&F&&F instanceof y)return F;return new y(!1)};C.stop=function(S){return new y(!0,S)}},function(r,o,i){var l=i(11);r.exports=function(d,c){var u=[][d];return!!u&&l(function(){u.call(null,c||function(){throw 1},1)})}},function(r,o){r.exports=`
|
||
\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?(h=m.split("."),y=h[0]+h[1]):d&&(h=d.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=d.match(/Chrome\/(\d+)/),h&&(y=h[1]))),r.exports=y&&+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=i(6),y=u.__importDefault(i(267)),C=u.__importDefault(i(280)),S=u.__importDefault(i(281)),w=u.__importDefault(i(282)),E=u.__importDefault(i(301)),_=u.__importStar(i(416)),g=u.__importDefault(i(417)),b=u.__importDefault(i(418)),x=u.__importDefault(i(419)),k=u.__importStar(i(420)),N=u.__importDefault(i(423)),V=u.__importDefault(i(424)),F=u.__importDefault(i(425)),I=u.__importDefault(i(427)),P=u.__importDefault(i(437)),T=u.__importDefault(i(440)),B=u.__importStar(i(441)),L=u.__importDefault(i(23)),U=u.__importDefault(i(134)),H=u.__importDefault(i(24)),R=u.__importDefault(i(33)),z=u.__importDefault(i(38)),$=u.__importDefault(i(39)),A=1,J=function(){function Q(G,ie){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+A++,this.toolbarSelector=G,this.textSelector=ie,_.selectorValidator(this),this.config=h.deepClone(y.default),this.$toolbarElem=m.default("<div></div>"),this.$textContainerElem=m.default("<div></div>"),this.$textElem=m.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new C.default(this),this.cmd=new S.default(this),this.txt=new w.default(this),this.menus=new E.default(this),this.zIndex=new V.default,this.change=new F.default(this),this.history=new I.default(this),this.onSelectionChange=new T.default(this);var X=P.default(this),le=X.disable,be=X.enable;this.disable=le,this.enable=be,this.isEnable=!0}return Q.prototype.initSelection=function(G){g.default(this,G)},Q.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),x.default(this),_.default(this),this.txt.init(),this.menus.init(),k.default(this),this.initSelection(!0),b.default(this),this.change.observe(),this.history.observe(),B.default(this)},Q.prototype.beforeDestroy=function(G){return this.beforeDestroyHooks.push(G),this},Q.prototype.destroy=function(){var G,ie=this;(0,c.default)(G=this.beforeDestroyHooks).call(G,function(X){return X.call(ie)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},Q.prototype.fullScreen=function(){k.setFullScreen(this)},Q.prototype.unFullScreen=function(){k.setUnFullScreen(this)},Q.prototype.scrollToHead=function(G){N.default(this,G)},Q.registerMenu=function(G,ie){!ie||typeof ie!="function"||(Q.globalCustomMenuConstructorList[G]=ie)},Q.prototype.registerPlugin=function(G,ie){B.registerPlugin(G,ie,this.pluginsFunctionList)},Q.registerPlugin=function(G,ie){B.registerPlugin(G,ie,Q.globalPluginsFunctionList)},Q.$=m.default,Q.BtnMenu=L.default,Q.DropList=U.default,Q.DropListMenu=H.default,Q.Panel=R.default,Q.PanelMenu=z.default,Q.Tooltip=$.default,Q.globalCustomMenuConstructorList={},Q.globalPluginsFunctionList={},Q}();o.default=J},function(r,o,i){var l=i(13),d=i(55),c=i(10),u=c("species");r.exports=function(m,h){var y;return d(m)&&(y=m.constructor,typeof y=="function"&&(y===Array||d(y.prototype))?y=void 0:l(y)&&(y=y[u],y===null&&(y=void 0))),new(y===void 0?Array:y)(h===0?0:h)}},function(r,o,i){r.exports=i(185)},function(r,o,i){var l=i(49),d=i(68),c="["+d+"]",u=RegExp("^"+c+c+"*"),m=RegExp(c+c+"*$"),h=function(C){return function(S){var w=String(l(S));return C&1&&(w=w.replace(u,"")),C&2&&(w=w.replace(m,"")),w}};r.exports={start:h(1),end:h(2),trim:h(3)}},function(r,o,i){r.exports=i(205)},function(r,o,i){var l=i(227),d=i(230);function c(u){return typeof d=="function"&&typeof l=="symbol"?r.exports=c=function(h){return typeof h}:r.exports=c=function(h){return h&&typeof d=="function"&&h.constructor===d&&h!==d.prototype?"symbol":typeof h},c(u)}r.exports=c},function(r,o,i){var l=i(10);o.f=l},function(r,o,i){r.exports=i(306)},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(33)),h=function(){function y(C,S){var w=this;this.$elem=C,this.editor=S,this._active=!1,C.on("click",function(E){var _;m.default.hideCurAllPanels(),(0,c.default)(_=S.txt.eventHooks.menuClickEvents).call(_,function(g){return g()}),E.stopPropagation(),S.selection.getRange()!=null&&w.clickHandler(E)})}return y.prototype.clickHandler=function(C){},y.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},y.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,d.default)(y.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),y}();o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(28));(0,d.default)(o,"__esModule",{value:!0}),o.getParentNodeA=o.EXTRA_TAG=void 0,o.EXTRA_TAG=["B","FONT","I","STRIKE"];function u(h){for(var y=h.elems[0];y&&(0,c.default)(C=o.EXTRA_TAG).call(C,y.nodeName);){var C;if(y=y.parentElement,y.nodeName==="A")return y}}o.getParentNodeA=u;function m(h){var y,C=h.selection.getSelectionContainerElem();if(!(!((y=C==null?void 0:C.elems)===null||y===void 0)&&y.length))return!1;if(C.getNodeName()==="A")return!0;var S=u(C);return!!(S&&S.nodeName==="A")}o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(57)),u=l(i(4)),m=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),y=i(6),C=h.__importDefault(i(135)),S=h.__importDefault(i(136)),w=function(){function E(_){this.editor=_}return E.prototype.insertImg=function(_,g,b){var x=this.editor,k=x.config,N="validate.",V=function(L,U){return U===void 0&&(U=N),x.i18next.t(U+L)},F=_.replace(/</g,"<").replace(/>/g,">");F=F.replace("'",'"');var I="";b&&(I=b.replace("'",'"'),I="data-href='"+encodeURIComponent(I)+"' ");var P="";g&&(P=g.replace(/</g,"<").replace(/>/g,">"),P=P.replace("'",'"'),P="alt='"+P+"' "),x.cmd.do("insertHTML","<img src='"+F+"' "+P+I+'style="max-width:100%;" contenteditable="false"/>'),k.linkImgCallback(_,g,b);var T=document.createElement("img");T.onload=function(){T=null},T.onerror=function(){k.customAlert(V("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+V("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+V("\u56FE\u7247\u94FE\u63A5")+' "'+_+'"\uFF0C'+V("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),T=null},T.onabort=function(){return T=null},T.src=_},E.prototype.uploadImg=function(_){var g=this;if(!!_.length){var b=this.editor,x=b.config,k="validate.",N=function(de){return b.i18next.t(k+de)},V=x.uploadImgServer,F=x.uploadImgShowBase64,I=x.uploadImgMaxSize,P=I/1024/1024,T=x.uploadImgMaxLength,B=x.uploadFileName,L=x.uploadImgParams,U=x.uploadImgParamsWithUrl,H=x.uploadImgHeaders,R=x.uploadImgHooks,z=x.uploadImgTimeout,$=x.withCredentials,A=x.customUploadImg;if(!(!A&&!V&&!F)){var J=[],Q=[];if(y.arrForEach(_,function(ce){if(!!ce){var de=ce.name||ce.type.replace("/","."),pe=ce.size;if(!(!de||!pe)){var se=b.config.uploadImgAccept.join("|"),ge=".("+se+")$",ye=new RegExp(ge,"i");if(ye.test(de)===!1){Q.push("\u3010"+de+"\u3011"+N("\u4E0D\u662F\u56FE\u7247"));return}if(I<pe){Q.push("\u3010"+de+"\u3011"+N("\u5927\u4E8E")+" "+P+"M");return}J.push(ce)}}}),Q.length){x.customAlert(N("\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
|
||
`+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){!this.isRe&&(this.isRe=!0);var y=this.revokeData.outstack();return y?(this.data.instack(y),h(y),!0):!1},m}();o.default=u},function(r,o,i){var l=i(14),d=i(11),c=i(73);r.exports=!l&&!d(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},function(r,o,i){var l=i(11),d=/#|\.prototype\./,c=function(S,w){var E=m[u(S)];return E==y?!0:E==h?!1:typeof w=="function"?l(w):!!w},u=c.normalize=function(C){return String(C).replace(d,".").toLowerCase()},m=c.data={},h=c.NATIVE="N",y=c.POLYFILL="P";r.exports=c},function(r,o,i){var l=i(103),d=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(c){return d.call(c)}),r.exports=l.inspectSource},function(r,o,i){var l=i(8),d=i(166),c="__core-js_shared__",u=l[c]||d(c,{});r.exports=u},function(r,o,i){var l=i(105),d=i(19),c=i(16),u=i(10),m=i(43),h=u("iterator"),y=!1,C=function(){return this},S,w,E;[].keys&&(E=[].keys(),"next"in E?(w=l(l(E)),w!==Object.prototype&&(S=w)):y=!0),S==null&&(S={}),!m&&!c(S,h)&&d(S,h,C),r.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:y}},function(r,o,i){var l=i(16),d=i(31),c=i(63),u=i(168),m=c("IE_PROTO"),h=Object.prototype;r.exports=u?Object.getPrototypeOf:function(y){return y=d(y),l(y,m)?y[m]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?h:null}},function(r,o,i){var l=i(76);r.exports=l&&!Symbol.sham&&Qt(Symbol.iterator)=="symbol"},function(r,o,i){var l=i(16),d=i(30),c=i(78).indexOf,u=i(51);r.exports=function(m,h){var y=d(m),C=0,S=[],w;for(w in y)!l(u,w)&&l(y,w)&&S.push(w);for(;h.length>C;)l(y,w=h[C++])&&(~c(S,w)||S.push(w));return S}},function(r,o,i){var l=i(36);r.exports=l("document","documentElement")},function(r,o,i){var l=i(8);r.exports=l.Promise},function(r,o,i){var l=i(53);r.exports=function(d,c,u){for(var m in c)u&&u.unsafe&&d[m]?d[m]=c[m]:l(d,m,c[m],u);return d}},function(r,o,i){var l=i(36),d=i(18),c=i(10),u=i(14),m=c("species");r.exports=function(h){var y=l(h),C=d.f;u&&y&&!y[m]&&C(y,m,{configurable:!0,get:function(){return this}})}},function(r,o,i){var l=i(10),d=i(44),c=l("iterator"),u=Array.prototype;r.exports=function(m){return m!==void 0&&(d.Array===m||u[c]===m)}},function(r,o,i){var l=i(65),d=i(44),c=i(10),u=c("iterator");r.exports=function(m){if(m!=null)return m[u]||m["@@iterator"]||d[l(m)]}},function(r,o,i){var l=i(25);r.exports=function(d,c,u,m){try{return m?c(l(u)[0],u[1]):c(u)}catch(y){var h=d.return;throw h!==void 0&&l(h.call(d)),y}}},function(r,o,i){var l=i(10),d=l("iterator"),c=!1;try{var u=0,m={next:function(){return{done:!!u++}},return:function(){c=!0}};m[d]=function(){return this},Array.from(m,function(){throw 2})}catch{}r.exports=function(h,y){if(!y&&!c)return!1;var C=!1;try{var S={};S[d]=function(){return{next:function(){return{done:C=!0}}}},h(S)}catch{}return C}},function(r,o,i){var l=i(25),d=i(41),c=i(10),u=c("species");r.exports=function(m,h){var y=l(m).constructor,C;return y===void 0||(C=l(y)[u])==null?h:d(C)}},function(r,o,i){var l=i(8),d=i(11),c=i(34),u=i(40),m=i(108),h=i(73),y=i(118),C=l.location,S=l.setImmediate,w=l.clearImmediate,E=l.process,_=l.MessageChannel,g=l.Dispatch,b=0,x={},k="onreadystatechange",N,V,F,I=function(U){if(x.hasOwnProperty(U)){var H=x[U];delete x[U],H()}},P=function(U){return function(){I(U)}},T=function(U){I(U.data)},B=function(U){l.postMessage(U+"",C.protocol+"//"+C.host)};(!S||!w)&&(S=function(U){for(var H=[],R=1;arguments.length>R;)H.push(arguments[R++]);return x[++b]=function(){(typeof U=="function"?U:Function(U)).apply(void 0,H)},N(b),b},w=function(U){delete x[U]},c(E)=="process"?N=function(U){E.nextTick(P(U))}:g&&g.now?N=function(U){g.now(P(U))}:_&&!y?(V=new _,F=V.port2,V.port1.onmessage=T,N=u(F.postMessage,F,1)):l.addEventListener&&typeof postMessage=="function"&&!l.importScripts&&!d(B)&&C.protocol!=="file:"?(N=B,l.addEventListener("message",T,!1)):k in h("script")?N=function(U){m.appendChild(h("script"))[k]=function(){m.removeChild(this),I(U)}}:N=function(U){setTimeout(P(U),0)}),r.exports={set:S,clear:w}},function(r,o,i){var l=i(84);r.exports=/(iphone|ipod|ipad).*applewebkit/i.test(l)},function(r,o,i){var l=i(25),d=i(13),c=i(85);r.exports=function(u,m){if(l(u),d(m)&&m.constructor===u)return m;var h=c.f(u),y=h.resolve;return y(m),h.promise}},function(r,o){r.exports=function(i){try{return{error:!1,value:i()}}catch(l){return{error:!0,value:l}}}},function(r,o,i){r.exports=i(197)},function(r,o,i){var l=i(5),d=i(8),c=i(123),u=i(11),m=i(19),h=i(66),y=i(83),C=i(13),S=i(37),w=i(18).f,E=i(32).forEach,_=i(14),g=i(42),b=g.set,x=g.getterFor;r.exports=function(k,N,V){var F=k.indexOf("Map")!==-1,I=k.indexOf("Weak")!==-1,P=F?"set":"add",T=d[k],B=T&&T.prototype,L={},U;if(!_||typeof T!="function"||!(I||B.forEach&&!u(function(){new T().entries().next()})))U=V.getConstructor(N,k,F,P),c.REQUIRED=!0;else{U=N(function(R,z){b(y(R,U,k),{type:k,collection:new T}),z!=null&&h(z,R[P],R,F)});var H=x(k);E(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(R){var z=R=="add"||R=="set";R in B&&!(I&&R=="clear")&&m(U.prototype,R,function($,A){var J=H(this).collection;if(!z&&I&&!C($))return R=="get"?void 0:!1;var Q=J[R]($===0?0:$,A);return z?this:Q})}),I||w(U.prototype,"size",{configurable:!0,get:function(){return H(this).collection.size}})}return S(U,k,!1,!0),L[k]=U,l({global:!0,forced:!0},L),I||V.setStrong(U,k,F),U}},function(r,o,i){var l=i(51),d=i(13),c=i(16),u=i(18).f,m=i(64),h=i(200),y=m("meta"),C=0,S=Object.isExtensible||function(){return!0},w=function(k){u(k,y,{value:{objectID:"O"+ ++C,weakData:{}}})},E=function(k,N){if(!d(k))return Qt(k)=="symbol"?k:(typeof k=="string"?"S":"P")+k;if(!c(k,y)){if(!S(k))return"F";if(!N)return"E";w(k)}return k[y].objectID},_=function(k,N){if(!c(k,y)){if(!S(k))return!0;if(!N)return!1;w(k)}return k[y].weakData},g=function(k){return h&&b.REQUIRED&&S(k)&&!c(k,y)&&w(k),k},b=r.exports={REQUIRED:!1,fastKey:E,getWeakData:_,onFreeze:g};l[y]=!0},function(r,o,i){var l=i(18).f,d=i(77),c=i(110),u=i(40),m=i(83),h=i(66),y=i(75),C=i(111),S=i(14),w=i(123).fastKey,E=i(42),_=E.set,g=E.getterFor;r.exports={getConstructor:function(x,k,N,V){var F=x(function(B,L){m(B,F,k),_(B,{type:k,index:d(null),first:void 0,last:void 0,size:0}),S||(B.size=0),L!=null&&h(L,B[V],B,N)}),I=g(k),P=function(L,U,H){var R=I(L),z=T(L,U),$,A;return z?z.value=H:(R.last=z={index:A=w(U,!0),key:U,value:H,previous:$=R.last,next:void 0,removed:!1},R.first||(R.first=z),$&&($.next=z),S?R.size++:L.size++,A!=="F"&&(R.index[A]=z)),L},T=function(L,U){var H=I(L),R=w(U),z;if(R!=="F")return H.index[R];for(z=H.first;z;z=z.next)if(z.key==U)return z};return c(F.prototype,{clear:function(){for(var L=this,U=I(L),H=U.index,R=U.first;R;)R.removed=!0,R.previous&&(R.previous=R.previous.next=void 0),delete H[R.index],R=R.next;U.first=U.last=void 0,S?U.size=0:L.size=0},delete:function(L){var U=this,H=I(U),R=T(U,L);if(R){var z=R.next,$=R.previous;delete H.index[R.index],R.removed=!0,$&&($.next=z),z&&(z.previous=$),H.first==R&&(H.first=z),H.last==R&&(H.last=$),S?H.size--:U.size--}return!!R},forEach:function(L){for(var U=I(this),H=u(L,arguments.length>1?arguments[1]:void 0,3),R;R=R?R.next:U.first;)for(H(R.value,R.key,this);R&&R.removed;)R=R.previous},has:function(L){return!!T(this,L)}}),c(F.prototype,N?{get:function(L){var U=T(this,L);return U&&U.value},set:function(L,U){return P(this,L===0?0:L,U)}}:{add:function(L){return P(this,L=L===0?0:L,L)}}),S&&l(F.prototype,"size",{get:function(){return I(this).size}}),F},setStrong:function(x,k,N){var V=k+" Iterator",F=g(k),I=g(V);y(x,k,function(P,T){_(this,{type:V,target:P,state:F(P),kind:T,last:void 0})},function(){for(var P=I(this),T=P.kind,B=P.last;B&&B.removed;)B=B.previous;return!P.target||!(P.last=B=B?B.next:P.state.first)?(P.target=void 0,{value:void 0,done:!0}):T=="keys"?{value:B.key,done:!1}:T=="values"?{value:B.value,done:!1}:{value:[B.key,B.value],done:!1}},N?"entries":"values",!N,!0),C(k)}}},function(r,o,i){var l=i(12);l("iterator")},function(r,o,i){var l=i(107),d=i(80),c=d.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(m){return l(m,c)}},function(r,o){o.f=Object.getOwnPropertySymbols},function(r,o,i){r.exports=i(268)},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={zIndex:1e4}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={focus:!0,height:300,placeholder:"\u8BF7\u8F93\u5165\u6B63\u6587",zIndexFullScreen:10002,showFullScreen:!0}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0}),o.getPasteImgs=o.getPasteHtml=o.getPasteText=void 0;var u=i(2),m=i(6),h=u.__importDefault(i(292));function y(w){var E=w.clipboardData,_="";return E==null?_=window.clipboardData&&window.clipboardData.getData("text"):_=E.getData("text/plain"),m.replaceHtmlSymbol(_)}o.getPasteText=y;function C(w,E,_){E===void 0&&(E=!0),_===void 0&&(_=!1);var g=w.clipboardData,b="";if(g&&(b=g.getData("text/html")),!b){var x=y(w);if(!x)return"";b="<p>"+x+"</p>"}return b=b.replace(/<(\d)/gm,function(k,N){return"<"+N}),b=b.replace(/<(\/?meta.*?)>/gim,""),b=h.default(b,E,_),b}o.getPasteHtml=C;function S(w){var E,_=[],g=y(w);if(g)return _;var b=(E=w.clipboardData)===null||E===void 0?void 0:E.items;return b&&(0,c.default)(m).call(m,b,function(x,k){var N=k.type;/image/i.test(N)&&_.push(k.getAsFile())}),_}o.getPasteImgs=S},function(r,o,i){r.exports=i(294)},function(r,o,i){r.exports=i(310)},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=i(7),C=function(){function S(w,E){var _=this;this.hideTimeoutId=0,this.menu=w,this.conf=E;var g=h.default('<div class="w-e-droplist"></div>'),b=h.default("<p>"+E.title+"</p>");b.addClass("w-e-dp-title"),g.append(b);var x=E.list||[],k=E.type||"list",N=E.clickHandler||y.EMPTY_FN,V=h.default('<ul class="'+(k==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,c.default)(x).call(x,function(F){var I=F.$elem,P=F.value,T=h.default('<li class="w-e-item"></li>');I&&(T.append(I),V.append(T),T.on("click",function(B){N(P),B.stopPropagation(),_.hideTimeoutId=(0,u.default)(function(){_.hide()})}))}),g.append(V),g.on("mouseleave",function(){_.hideTimeoutId=(0,u.default)(function(){_.hide()})}),this.$container=g,this.rendered=!1,this._show=!1}return S.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var w=this.menu,E=w.$elem,_=this.$container;if(!this._show){if(this.rendered)_.show();else{var g=E.getBoundingClientRect().height||0,b=this.conf.width||100;_.css("margin-top",g+"px").css("width",b+"px"),E.append(_),this.rendered=!0}this._show=!0}},S.prototype.hide=function(){var w=this.$container;!this._show||(w.hide(),this._show=!1)},(0,d.default)(S.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),S}();o.default=C},function(r,o,i){var l=i(0),d=l(i(92)),c=l(i(1)),u=l(i(4));(0,c.default)(o,"__esModule",{value:!0});var m=i(6);function h(y,C){var S=new XMLHttpRequest;if(S.open("POST",y),S.timeout=C.timeout||10*1e3,S.ontimeout=function(){console.error("wangEditor - \u8BF7\u6C42\u8D85\u65F6"),C.onTimeout&&C.onTimeout(S)},S.upload&&(S.upload.onprogress=function(E){var _=E.loaded/E.total;C.onProgress&&C.onProgress(_,E)}),C.headers&&(0,u.default)(m).call(m,C.headers,function(E,_){S.setRequestHeader(E,_)}),S.withCredentials=!!C.withCredentials,C.beforeSend){var w=C.beforeSend(S);if(w&&(0,d.default)(w)==="object"&&w.prevent)return w.msg}return S.onreadystatechange=function(){if(S.readyState===4){var E=S.status;if(!(E<200)&&!(E>=300&&E<400)){if(E>=400){console.error("wangEditor - XHR \u62A5\u9519\uFF0C\u72B6\u6001\u7801 "+E),C.onError&&C.onError(S);return}var _=S.responseText,g;if((0,d.default)(_)!=="object")try{g=JSON.parse(_)}catch{console.error("wangEditor - \u8FD4\u56DE\u7ED3\u679C\u4E0D\u662F JSON \u683C\u5F0F",_),C.onFail&&C.onFail(S,_);return}else g=_;C.onSuccess(S,g)}}},S.send(C.formData||null),S}o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(342)),u=l(i(46));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(3)),y=function(){function C(S){this.editor=S,this.$textContainer=S.$textContainerElem,this.$bar=h.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return C.prototype.show=function(S){var w=this;if(!this.isShow){this.isShow=!0;var E=this.$bar,_=this.$textContainer;_.append(E),(0,c.default)()-this.time>100&&S<=1&&(E.css("width",S*100+"%"),this.time=(0,c.default)());var g=this.timeoutId;g&&clearTimeout(g),this.timeoutId=(0,u.default)(function(){w.hide()},500)}},C.prototype.hide=function(){var S=this.$bar;S.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},C}();o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.ListType=void 0;var c=i(2),u=c.__importDefault(i(3)),m=c.__importDefault(i(24)),h=i(47),y=c.__importStar(i(371)),C;(function(w){w.OrderedList="OL",w.UnorderedList="UL"})(C=o.ListType||(o.ListType={}));var S=function(w){c.__extends(E,w);function E(_){var g=this,b=u.default(`<div class="w-e-menu" data-title="\u5E8F\u5217">
|
||
<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+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(r,o,i){var l=i(20),d=i(153);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 {
|
||
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(function(){for(var Ce=Me.value,Xe=Me.state==W,Ye=0;$e.length>Ye;){var Qe=$e[Ye++],dt=Xe?Qe.ok:Qe.fail,gn=Qe.resolve,Bt=Qe.reject,Tt=Qe.domain,yt,Wn,Wi;try{dt?(Xe||(Me.rejection===ee&&Ve(Ne,Me),Me.rejection=q),dt===!0?yt=Ce:(Tt&&Tt.enter(),yt=dt(Ce),Tt&&(Tt.exit(),Wi=!0)),yt===Qe.promise?Bt(ie("Promise-chain cycle")):(Wn=ke(yt))?Wn.call(yt,gn,Bt):gn(yt)):Bt(Ce)}catch(qn){Tt&&!Wi&&Tt.exit(),Bt(qn)}}Me.reactions=[],Me.notified=!1,tt&&!Me.rejection&&et(Ne,Me)})}},He=function(Ne,Me,tt){var $e,Ce;se?($e=X.createEvent("Event"),$e.promise=Me,$e.reason=tt,$e.initEvent(Ne,!1,!0),c.dispatchEvent($e)):$e={promise:Me,reason:tt},(Ce=c["on"+Ne])?Ce($e):Ne===ge&&P("Unhandled promise rejection",tt)},et=function(Ne,Me){V.call(c,function(){var tt=Me.value,$e=_e(Me),Ce;if($e&&(Ce=B(function(){pe?le.emit("unhandledRejection",tt,Ne):He(ge,Ne,tt)}),Me.rejection=pe||_e(Me)?ee:q,Ce.error))throw Ce.value})},_e=function(Ne){return Ne.rejection!==q&&!Ne.parent},Ve=function(Ne,Me){V.call(c,function(){pe?le.emit("rejectionHandled",Ne):He(ye,Ne,Me.value)})},Ke=function(Ne,Me,tt,$e){return function(Ce){Ne(Me,tt,Ce,$e)}},Re=function(Ne,Me,tt,$e){Me.done||(Me.done=!0,$e&&(Me=$e),Me.value=tt,Me.state=Y,we(Ne,Me,!0))},mt=function Ze(Ne,Me,tt,$e){if(!Me.done){Me.done=!0,$e&&(Me=$e);try{if(Ne===tt)throw ie("Promise can't be resolved itself");var Ce=ke(tt);Ce?F(function(){var Xe={done:!1};try{Ce.call(tt,Ke(Ze,Ne,Xe,Me),Ke(Re,Ne,Xe,Me))}catch(Ye){Re(Ne,Xe,Ye,Me)}}):(Me.value=tt,Me.state=W,we(Ne,Me,!1))}catch(Xe){Re(Ne,{done:!1},Xe,Me)}}};Le&&(G=function(Ne){_(this,G,$),E(Ne),oe.call(this);var Me=A(this);try{Ne(Ke(mt,this,Me),Ke(Re,this,Me))}catch(tt){Re(this,Me,tt)}},oe=function(Ne){J(this,{type:$,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:D,value:void 0})},oe.prototype=y(G.prototype,{then:function(Ne,Me){var tt=Q(this),$e=ce(N(this,G));return $e.ok=typeof Ne=="function"?Ne:!0,$e.fail=typeof Me=="function"&&Me,$e.domain=pe?le.domain:void 0,tt.parent=!0,tt.reactions.push($e),tt.state!=D&&we(this,tt,!1),$e.promise},catch:function(Ne){return this.then(void 0,Ne)}}),he=function(){var Ne=new oe,Me=A(Ne);this.promise=Ne,this.resolve=Ke(mt,Ne,Me),this.reject=Ke(Re,Ne,Me)},T.f=ce=function(Ne){return Ne===G||Ne===Se?new he(Ne):de(Ne)},!d&&typeof m=="function"&&(Pe=m.prototype.then,h(m.prototype,"then",function(Ne,Me){var tt=this;return new G(function($e,Ce){Pe.call(tt,$e,Ce)}).then(Ne,Me)},{unsafe:!0}),typeof be=="function"&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(Ne){return I(G,be.apply(c,arguments))}}))),l({global:!0,wrap:!0,forced:Le},{Promise:G}),C(G,$,!1,!0),S($),Se=u($),l({target:$,stat:!0,forced:Le},{reject:function(Ne){var Me=ce(this);return Me.reject.call(void 0,Ne),Me.promise}}),l({target:$,stat:!0,forced:d||Le},{resolve:function(Ne){return I(d&&this===Se?G:this,Ne)}}),l({target:$,stat:!0,forced:fe},{all:function(Ne){var Me=this,tt=ce(Me),$e=tt.resolve,Ce=tt.reject,Xe=B(function(){var Ye=E(Me.resolve),Qe=[],dt=0,gn=1;x(Ne,function(Bt){var Tt=dt++,yt=!1;Qe.push(void 0),gn++,Ye.call(Me,Bt).then(function(Wn){yt||(yt=!0,Qe[Tt]=Wn,--gn||$e(Qe))},Ce)}),--gn||$e(Qe)});return Xe.error&&Ce(Xe.value),tt.promise},race:function(Ne){var Me=this,tt=ce(Me),$e=tt.reject,Ce=B(function(){var Xe=E(Me.resolve);x(Ne,function(Ye){Xe.call(Me,Ye).then(tt.resolve,$e)})});return Ce.error&&$e(Ce.value),tt.promise}})},function(r,o,i){var l=i(8),d=i(71).f,c=i(34),u=i(117).set,m=i(118),h=l.MutationObserver||l.WebKitMutationObserver,y=l.process,C=l.Promise,S=c(y)=="process",w=d(l,"queueMicrotask"),E=w&&w.value,_,g,b,x,k,N,V,F;E||(_=function(){var P,T;for(S&&(P=y.domain)&&P.exit();g;){T=g.fn,g=g.next;try{T()}catch(B){throw g?x():b=void 0,B}}b=void 0,P&&P.enter()},S?x=function(){y.nextTick(_)}:h&&!m?(k=!0,N=document.createTextNode(""),new h(_).observe(N,{characterData:!0}),x=function(){N.data=k=!k}):C&&C.resolve?(V=C.resolve(void 0),F=V.then,x=function(){F.call(V,_)}):x=function(){u.call(l,_)}),r.exports=E||function(I){var P={fn:I,next:void 0};b&&(b.next=P),g||(g=P,x()),b=P}},function(r,o,i){var l=i(8);r.exports=function(d,c){var u=l.console;u&&u.error&&(arguments.length===1?u.error(d):u.error(d,c))}},function(r,o,i){var l=i(5),d=i(41),c=i(85),u=i(120),m=i(66);l({target:"Promise",stat:!0},{allSettled:function(y){var C=this,S=c.f(C),w=S.resolve,E=S.reject,_=u(function(){var g=d(C.resolve),b=[],x=0,k=1;m(y,function(N){var V=x++,F=!1;b.push(void 0),k++,g.call(C,N).then(function(I){F||(F=!0,b[V]={status:"fulfilled",value:I},--k||w(b))},function(I){F||(F=!0,b[V]={status:"rejected",reason:I},--k||w(b))})}),--k||w(b)});return _.error&&E(_.value),S.promise}})},function(r,o,i){var l=i(5),d=i(43),c=i(109),u=i(11),m=i(36),h=i(116),y=i(119),C=i(53),S=!!c&&u(function(){c.prototype.finally.call({then:function(){}},function(){})});l({target:"Promise",proto:!0,real:!0,forced:S},{finally:function(E){var _=h(this,m("Promise")),g=typeof E=="function";return this.then(g?function(b){return y(_,E()).then(function(){return b})}:E,g?function(b){return y(_,E()).then(function(){throw b})}:E)}}),!d&&typeof c=="function"&&!c.prototype.finally&&C(c.prototype,"finally",m("Promise").prototype.finally)},function(r,o,i){i(54);var l=i(181),d=i(65),c=Array.prototype,u={DOMTokenList:!0,NodeList:!0};r.exports=function(m){var h=m.forEach;return m===c||m instanceof Array&&h===c.forEach||u.hasOwnProperty(d(m))?l:h}},function(r,o,i){var l=i(182);r.exports=l},function(r,o,i){i(183);var l=i(15);r.exports=l("Array").forEach},function(r,o,i){var l=i(5),d=i(184);l({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},function(r,o,i){var l=i(32).forEach,d=i(67),c=i(22),u=d("forEach"),m=c("forEach");r.exports=!u||!m?function(y){return l(this,y,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(r,o,i){var l=i(186);r.exports=l},function(r,o,i){i(187);var l=i(9);r.exports=l.Array.isArray},function(r,o,i){var l=i(5),d=i(55);l({target:"Array",stat:!0},{isArray:d})},function(r,o,i){var l=i(189);r.exports=l},function(r,o,i){var l=i(190),d=Array.prototype;r.exports=function(c){var u=c.map;return c===d||c instanceof Array&&u===d.map?l:u}},function(r,o,i){i(191);var l=i(15);r.exports=l("Array").map},function(r,o,i){var l=i(5),d=i(32).map,c=i(56),u=i(22),m=c("map"),h=u("map");l({target:"Array",proto:!0,forced:!m||!h},{map:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(193);r.exports=l},function(r,o,i){var l=i(194),d=String.prototype;r.exports=function(c){var u=c.trim;return typeof c=="string"||c===d||c instanceof String&&u===d.trim?l:u}},function(r,o,i){i(195);var l=i(15);r.exports=l("String").trim},function(r,o,i){var l=i(5),d=i(90).trim,c=i(196);l({target:"String",proto:!0,forced:c("trim")},{trim:function(){return d(this)}})},function(r,o,i){var l=i(11),d=i(68),c="\u200B\x85\u180E";r.exports=function(u){return l(function(){return!!d[u]()||c[u]()!=c||d[u].name!==u})}},function(r,o,i){var l=i(198);r.exports=l},function(r,o,i){i(199),i(61),i(50),i(54);var l=i(9);r.exports=l.Map},function(r,o,i){var l=i(122),d=i(124);r.exports=l("Map",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(r,o,i){var l=i(11);r.exports=!l(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(r,o,i){var l=i(202);r.exports=l},function(r,o,i){var l=i(203),d=Array.prototype;r.exports=function(c){var u=c.indexOf;return c===d||c instanceof Array&&u===d.indexOf?l:u}},function(r,o,i){i(204);var l=i(15);r.exports=l("Array").indexOf},function(r,o,i){var l=i(5),d=i(78).indexOf,c=i(67),u=i(22),m=[].indexOf,h=!!m&&1/[1].indexOf(1,-0)<0,y=c("indexOf"),C=u("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:h||!y||!C},{indexOf:function(w){return h?m.apply(this,arguments)||0:d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(206);r.exports=l},function(r,o,i){var l=i(207),d=Array.prototype;r.exports=function(c){var u=c.splice;return c===d||c instanceof Array&&u===d.splice?l:u}},function(r,o,i){i(208);var l=i(15);r.exports=l("Array").splice},function(r,o,i){var l=i(5),d=i(79),c=i(62),u=i(35),m=i(31),h=i(88),y=i(69),C=i(56),S=i(22),w=C("splice"),E=S("splice",{ACCESSORS:!0,0:0,1:2}),_=Math.max,g=Math.min,b=9007199254740991,x="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!w||!E},{splice:function(N,V){var F=m(this),I=u(F.length),P=d(N,I),T=arguments.length,B,L,U,H,R,z;if(T===0?B=L=0:T===1?(B=0,L=I-P):(B=T-2,L=g(_(c(V),0),I-P)),I+B-L>b)throw TypeError(x);for(U=h(F,L),H=0;H<L;H++)R=P+H,R in F&&y(U,H,F[R]);if(U.length=L,B<L){for(H=P;H<I-L;H++)R=H+L,z=H+B,R in F?F[z]=F[R]:delete F[z];for(H=I;H>I-L+B;H--)delete F[H-1]}else if(B>L)for(H=I-L;H>P;H--)R=H+L-1,z=H+B-1,R in F?F[z]=F[R]:delete F[z];for(H=0;H<B;H++)F[H+P]=arguments[H+2];return F.length=I-L+B,U}})},function(r,o,i){var l=i(210);r.exports=l},function(r,o,i){var l=i(211),d=Array.prototype;r.exports=function(c){var u=c.filter;return c===d||c instanceof Array&&u===d.filter?l:u}},function(r,o,i){i(212);var l=i(15);r.exports=l("Array").filter},function(r,o,i){var l=i(5),d=i(32).filter,c=i(56),u=i(22),m=c("filter"),h=u("filter");l({target:"Array",proto:!0,forced:!m||!h},{filter:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(214);r.exports=l},function(r,o,i){var l=i(215),d=i(217),c=Array.prototype,u=String.prototype;r.exports=function(m){var h=m.includes;return m===c||m instanceof Array&&h===c.includes?l:typeof m=="string"||m===u||m instanceof String&&h===u.includes?d:h}},function(r,o,i){i(216);var l=i(15);r.exports=l("Array").includes},function(r,o,i){var l=i(5),d=i(78).includes,c=i(82),u=i(22),m=u("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:!m},{includes:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(r,o,i){i(218);var l=i(15);r.exports=l("String").includes},function(r,o,i){var l=i(5),d=i(219),c=i(49),u=i(221);l({target:"String",proto:!0,forced:!u("includes")},{includes:function(h){return!!~String(c(this)).indexOf(d(h),arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(220);r.exports=function(d){if(l(d))throw TypeError("The method doesn't accept regular expressions");return d}},function(r,o,i){var l=i(13),d=i(34),c=i(10),u=c("match");r.exports=function(m){var h;return l(m)&&((h=m[u])!==void 0?!!h:d(m)=="RegExp")}},function(r,o,i){var l=i(10),d=l("match");r.exports=function(c){var u=/./;try{"/./"[c](u)}catch{try{return u[d]=!1,"/./"[c](u)}catch{}}return!1}},function(r,o,i){var l=i(223);r.exports=l},function(r,o,i){var l=i(224),d=Function.prototype;r.exports=function(c){var u=c.bind;return c===d||c instanceof Function&&u===d.bind?l:u}},function(r,o,i){i(225);var l=i(15);r.exports=l("Function").bind},function(r,o,i){var l=i(5),d=i(226);l({target:"Function",proto:!0},{bind:d})},function(r,o,i){var l=i(41),d=i(13),c=[].slice,u={},m=function(y,C,S){if(!(C in u)){for(var w=[],E=0;E<C;E++)w[E]="a["+E+"]";u[C]=Function("C,a","return new C("+w.join(",")+")")}return u[C](y,S)};r.exports=Function.bind||function(y){var C=l(this),S=c.call(arguments,1),w=function(){var _=S.concat(c.call(arguments));return this instanceof w?m(C,_.length,_):C.apply(y,_)};return d(C.prototype)&&(w.prototype=C.prototype),w}},function(r,o,i){r.exports=i(228)},function(r,o,i){var l=i(229);r.exports=l},function(r,o,i){i(125),i(50),i(54);var l=i(93);r.exports=l.f("iterator")},function(r,o,i){r.exports=i(231)},function(r,o,i){var l=i(232);i(251),i(252),i(253),i(254),i(255),r.exports=l},function(r,o,i){i(233),i(61),i(234),i(236),i(237),i(238),i(239),i(125),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(248),i(249),i(250);var l=i(9);r.exports=l.Symbol},function(r,o,i){var l=i(5),d=i(11),c=i(55),u=i(13),m=i(31),h=i(35),y=i(69),C=i(88),S=i(56),w=i(10),E=i(86),_=w("isConcatSpreadable"),g=9007199254740991,b="Maximum allowed index exceeded",x=E>=51||!d(function(){var F=[];return F[_]=!1,F.concat()[0]!==F}),k=S("concat"),N=function(I){if(!u(I))return!1;var P=I[_];return P!==void 0?!!P:c(I)},V=!x||!k;l({target:"Array",proto:!0,forced:V},{concat:function(I){var P=m(this),T=C(P,0),B=0,L,U,H,R,z;for(L=-1,H=arguments.length;L<H;L++)if(z=L===-1?P:arguments[L],N(z)){if(R=h(z.length),B+R>g)throw TypeError(b);for(U=0;U<R;U++,B++)U in z&&y(T,B,z[U])}else{if(B>=g)throw TypeError(b);y(T,B++,z)}return T.length=B,T}})},function(r,o,i){var l=i(5),d=i(8),c=i(36),u=i(43),m=i(14),h=i(76),y=i(106),C=i(11),S=i(16),w=i(55),E=i(13),_=i(25),g=i(31),b=i(30),x=i(60),k=i(48),N=i(77),V=i(52),F=i(126),I=i(235),P=i(127),T=i(71),B=i(18),L=i(59),U=i(19),H=i(53),R=i(74),z=i(63),$=i(51),A=i(64),J=i(10),Q=i(93),G=i(12),ie=i(37),X=i(42),le=i(32).forEach,be=z("hidden"),ce="Symbol",de="prototype",pe=J("toPrimitive"),se=X.set,ge=X.getterFor(ce),ye=Object[de],D=d.Symbol,W=c("JSON","stringify"),Y=T.f,q=B.f,ee=I.f,oe=L.f,he=R("symbols"),Se=R("op-symbols"),Pe=R("string-to-symbol-registry"),Le=R("symbol-to-string-registry"),fe=R("wks"),ke=d.QObject,we=!ke||!ke[de]||!ke[de].findChild,He=m&&C(function(){return N(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a!=7})?function($e,Ce,Xe){var Ye=Y(ye,Ce);Ye&&delete ye[Ce],q($e,Ce,Xe),Ye&&$e!==ye&&q(ye,Ce,Ye)}:q,et=function(Ce,Xe){var Ye=he[Ce]=N(D[de]);return se(Ye,{type:ce,tag:Ce,description:Xe}),m||(Ye.description=Xe),Ye},_e=y?function($e){return Qt($e)=="symbol"}:function($e){return Object($e)instanceof D},Ve=function(Ce,Xe,Ye){Ce===ye&&Ve(Se,Xe,Ye),_(Ce);var Qe=x(Xe,!0);return _(Ye),S(he,Qe)?(Ye.enumerable?(S(Ce,be)&&Ce[be][Qe]&&(Ce[be][Qe]=!1),Ye=N(Ye,{enumerable:k(0,!1)})):(S(Ce,be)||q(Ce,be,k(1,{})),Ce[be][Qe]=!0),He(Ce,Qe,Ye)):q(Ce,Qe,Ye)},Ke=function(Ce,Xe){_(Ce);var Ye=b(Xe),Qe=V(Ye).concat(Me(Ye));return le(Qe,function(dt){(!m||mt.call(Ye,dt))&&Ve(Ce,dt,Ye[dt])}),Ce},Re=function(Ce,Xe){return Xe===void 0?N(Ce):Ke(N(Ce),Xe)},mt=function(Ce){var Xe=x(Ce,!0),Ye=oe.call(this,Xe);return this===ye&&S(he,Xe)&&!S(Se,Xe)?!1:Ye||!S(this,Xe)||!S(he,Xe)||S(this,be)&&this[be][Xe]?Ye:!0},Ze=function(Ce,Xe){var Ye=b(Ce),Qe=x(Xe,!0);if(!(Ye===ye&&S(he,Qe)&&!S(Se,Qe))){var dt=Y(Ye,Qe);return dt&&S(he,Qe)&&!(S(Ye,be)&&Ye[be][Qe])&&(dt.enumerable=!0),dt}},Ne=function(Ce){var Xe=ee(b(Ce)),Ye=[];return le(Xe,function(Qe){!S(he,Qe)&&!S($,Qe)&&Ye.push(Qe)}),Ye},Me=function(Ce){var Xe=Ce===ye,Ye=ee(Xe?Se:b(Ce)),Qe=[];return le(Ye,function(dt){S(he,dt)&&(!Xe||S(ye,dt))&&Qe.push(he[dt])}),Qe};if(h||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor");var Ce=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Xe=A(Ce),Ye=function Qe(dt){this===ye&&Qe.call(Se,dt),S(this,be)&&S(this[be],Xe)&&(this[be][Xe]=!1),He(this,Xe,k(1,dt))};return m&&we&&He(ye,Xe,{configurable:!0,set:Ye}),et(Xe,Ce)},H(D[de],"toString",function(){return ge(this).tag}),H(D,"withoutSetter",function($e){return et(A($e),$e)}),L.f=mt,B.f=Ve,T.f=Ze,F.f=I.f=Ne,P.f=Me,Q.f=function($e){return et(J($e),$e)},m&&(q(D[de],"description",{configurable:!0,get:function(){return ge(this).description}}),u||H(ye,"propertyIsEnumerable",mt,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:D}),le(V(fe),function($e){G($e)}),l({target:ce,stat:!0,forced:!h},{for:function(Ce){var Xe=String(Ce);if(S(Pe,Xe))return Pe[Xe];var Ye=D(Xe);return Pe[Xe]=Ye,Le[Ye]=Xe,Ye},keyFor:function(Ce){if(!_e(Ce))throw TypeError(Ce+" is not a symbol");if(S(Le,Ce))return Le[Ce]},useSetter:function(){we=!0},useSimple:function(){we=!1}}),l({target:"Object",stat:!0,forced:!h,sham:!m},{create:Re,defineProperty:Ve,defineProperties:Ke,getOwnPropertyDescriptor:Ze}),l({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ne,getOwnPropertySymbols:Me}),l({target:"Object",stat:!0,forced:C(function(){P.f(1)})},{getOwnPropertySymbols:function(Ce){return P.f(g(Ce))}}),W){var tt=!h||C(function(){var $e=D();return W([$e])!="[null]"||W({a:$e})!="{}"||W(Object($e))!="{}"});l({target:"JSON",stat:!0,forced:tt},{stringify:function(Ce,Xe,Ye){for(var Qe=[Ce],dt=1,gn;arguments.length>dt;)Qe.push(arguments[dt++]);if(gn=Xe,!(!E(Xe)&&Ce===void 0||_e(Ce)))return w(Xe)||(Xe=function(Tt,yt){if(typeof gn=="function"&&(yt=gn.call(this,Tt,yt)),!_e(yt))return yt}),Qe[1]=Xe,W.apply(null,Qe)}})}D[de][pe]||U(D[de],pe,D[de].valueOf),ie(D,ce),$[be]=!0},function(r,o,i){var l=i(30),d=i(126).f,c={}.toString,u=(typeof window>"u"?"undefined":Qt(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(y){try{return d(y)}catch{return u.slice()}};r.exports.f=function(y){return u&&c.call(y)=="[object Window]"?m(y):d(l(y))}},function(r,o,i){var l=i(12);l("asyncIterator")},function(r,o){},function(r,o,i){var l=i(12);l("hasInstance")},function(r,o,i){var l=i(12);l("isConcatSpreadable")},function(r,o,i){var l=i(12);l("match")},function(r,o,i){var l=i(12);l("matchAll")},function(r,o,i){var l=i(12);l("replace")},function(r,o,i){var l=i(12);l("search")},function(r,o,i){var l=i(12);l("species")},function(r,o,i){var l=i(12);l("split")},function(r,o,i){var l=i(12);l("toPrimitive")},function(r,o,i){var l=i(12);l("toStringTag")},function(r,o,i){var l=i(12);l("unscopables")},function(r,o,i){var l=i(37);l(Math,"Math",!0)},function(r,o,i){var l=i(8),d=i(37);d(l.JSON,"JSON",!0)},function(r,o,i){var l=i(12);l("asyncDispose")},function(r,o,i){var l=i(12);l("dispose")},function(r,o,i){var l=i(12);l("observable")},function(r,o,i){var l=i(12);l("patternMatch")},function(r,o,i){var l=i(12);l("replaceAll")},function(r,o,i){r.exports=i(257)},function(r,o,i){var l=i(258);r.exports=l},function(r,o,i){i(259);var l=i(9);r.exports=l.parseInt},function(r,o,i){var l=i(5),d=i(260);l({global:!0,forced:parseInt!=d},{parseInt:d})},function(r,o,i){var l=i(8),d=i(90).trim,c=i(68),u=l.parseInt,m=/^[+-]?0[Xx]/,h=u(c+"08")!==8||u(c+"0x16")!==22;r.exports=h?function(C,S){var w=d(String(C));return u(w,S>>>0||(m.test(w)?16:10))}:u},function(r,o,i){var l=i(262);r.exports=l},function(r,o,i){var l=i(263),d=Array.prototype;r.exports=function(c){var u=c.slice;return c===d||c instanceof Array&&u===d.slice?l:u}},function(r,o,i){i(264);var l=i(15);r.exports=l("Array").slice},function(r,o,i){var l=i(5),d=i(13),c=i(55),u=i(79),m=i(35),h=i(30),y=i(69),C=i(10),S=i(56),w=i(22),E=S("slice"),_=w("slice",{ACCESSORS:!0,0:0,1:2}),g=C("species"),b=[].slice,x=Math.max;l({target:"Array",proto:!0,forced:!E||!_},{slice:function(N,V){var F=h(this),I=m(F.length),P=u(N,I),T=u(V===void 0?I:V,I),B,L,U;if(c(F)&&(B=F.constructor,typeof B=="function"&&(B===Array||c(B.prototype))?B=void 0:d(B)&&(B=B[g],B===null&&(B=void 0)),B===Array||B===void 0))return b.call(F,P,T);for(L=new(B===void 0?Array:B)(x(T-P,0)),U=0;P<T;P++,U++)P in F&&y(L,U,F[P]);return L.length=U,L}})},function(r,o,i){i(266);var l=i(9);r.exports=l.setTimeout},function(r,o,i){var l=i(5),d=i(8),c=i(84),u=[].slice,m=/MSIE .\./.test(c),h=function(C){return function(S,w){var E=arguments.length>2,_=E?u.call(arguments,2):void 0;return C(E?function(){(typeof S=="function"?S:Function(S)).apply(this,_)}:S,w)}};l({global:!0,bind:!0,forced:m},{setTimeout:h(d.setTimeout),setInterval:h(d.setInterval)})},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(128));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=u.__importDefault(i(272)),h=u.__importDefault(i(273)),y=u.__importDefault(i(129)),C=u.__importDefault(i(274)),S=u.__importDefault(i(275)),w=u.__importDefault(i(276)),E=u.__importDefault(i(130)),_=u.__importDefault(i(277)),g=u.__importDefault(i(278)),b=u.__importDefault(i(279)),x=(0,c.default)({},m.default,h.default,y.default,S.default,C.default,w.default,E.default,_.default,g.default,b.default,{linkCheck:function(N,V){return!0}});o.default=x},function(r,o,i){var l=i(269);r.exports=l},function(r,o,i){i(270);var l=i(9);r.exports=l.Object.assign},function(r,o,i){var l=i(5),d=i(271);l({target:"Object",stat:!0,forced:Object.assign!==d},{assign:d})},function(r,o,i){var l=i(14),d=i(11),c=i(52),u=i(127),m=i(59),h=i(31),y=i(72),C=Object.assign,S=Object.defineProperty;r.exports=!C||d(function(){if(l&&C({b:1},C(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},E={},_=Symbol(),g="abcdefghijklmnopqrst";return w[_]=7,g.split("").forEach(function(b){E[b]=b}),C({},w)[_]!=7||c(C({},E)).join("")!=g})?function(E,_){for(var g=h(E),b=arguments.length,x=1,k=u.f,N=m.f;b>x;)for(var V=y(arguments[x++]),F=k?c(V).concat(k(V)):c(V),I=F.length,P=0,T;I>P;)T=F[P++],(!l||N.call(V,T))&&(g[T]=V[T]);return g}:C},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["\u9ED1\u4F53","\u4EFF\u5B8B","\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53","\u5B8B\u4F53","\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"\u3000\u3000\u3000\u3000",emotions:[{title:"\u8868\u60C5",type:"emoji",content:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463}".split(/\s/)},{title:"\u624B\u52BF",type:"emoji",content:"\u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(7);function u(m,h,y){window.alert(m),y&&console.error("wangEditor: "+y)}o.default={onchangeTimeout:200,onchange:null,onfocus:c.EMPTY_FN,onblur:c.EMPTY_FN,onCatalogChange:null,customAlert:u}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(u){return u}}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={styleWithCSS:!1}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(7);o.default={linkImgCheck:function(m,h,y){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:c.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5*1024*1024,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:10*1e3,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{\u91CD\u7F6E:"\u91CD\u7F6E",\u63D2\u5165:"\u63D2\u5165",\u9ED8\u8BA4:"\u9ED8\u8BA4",\u521B\u5EFA:"\u521B\u5EFA",\u4FEE\u6539:"\u4FEE\u6539",\u5982:"\u5982",\u8BF7\u8F93\u5165\u6B63\u6587:"\u8BF7\u8F93\u5165\u6B63\u6587",menus:{title:{\u6807\u9898:"\u6807\u9898",\u52A0\u7C97:"\u52A0\u7C97",\u5B57\u53F7:"\u5B57\u53F7",\u5B57\u4F53:"\u5B57\u4F53",\u659C\u4F53:"\u659C\u4F53",\u4E0B\u5212\u7EBF:"\u4E0B\u5212\u7EBF",\u5220\u9664\u7EBF:"\u5220\u9664\u7EBF",\u7F29\u8FDB:"\u7F29\u8FDB",\u884C\u9AD8:"\u884C\u9AD8",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u80CC\u666F\u8272:"\u80CC\u666F\u8272",\u94FE\u63A5:"\u94FE\u63A5",\u5E8F\u5217:"\u5E8F\u5217",\u5BF9\u9F50:"\u5BF9\u9F50",\u5F15\u7528:"\u5F15\u7528",\u8868\u60C5:"\u8868\u60C5",\u56FE\u7247:"\u56FE\u7247",\u89C6\u9891:"\u89C6\u9891",\u8868\u683C:"\u8868\u683C",\u4EE3\u7801:"\u4EE3\u7801",\u5206\u5272\u7EBF:"\u5206\u5272\u7EBF",\u6062\u590D:"\u6062\u590D",\u64A4\u9500:"\u64A4\u9500",\u5168\u5C4F:"\u5168\u5C4F",\u53D6\u6D88\u5168\u5C4F:"\u53D6\u6D88\u5168\u5C4F",\u5F85\u529E\u4E8B\u9879:"\u5F85\u529E\u4E8B\u9879"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"\u8BBE\u7F6E\u6807\u9898",\u80CC\u666F\u989C\u8272:"\u80CC\u666F\u989C\u8272",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u8BBE\u7F6E\u5B57\u53F7:"\u8BBE\u7F6E\u5B57\u53F7",\u8BBE\u7F6E\u5B57\u4F53:"\u8BBE\u7F6E\u5B57\u4F53",\u8BBE\u7F6E\u7F29\u8FDB:"\u8BBE\u7F6E\u7F29\u8FDB",\u5BF9\u9F50\u65B9\u5F0F:"\u5BF9\u9F50\u65B9\u5F0F",\u8BBE\u7F6E\u884C\u9AD8:"\u8BBE\u7F6E\u884C\u9AD8",\u5E8F\u5217:"\u5E8F\u5217",head:{\u6B63\u6587:"\u6B63\u6587"},indent:{\u589E\u52A0\u7F29\u8FDB:"\u589E\u52A0\u7F29\u8FDB",\u51CF\u5C11\u7F29\u8FDB:"\u51CF\u5C11\u7F29\u8FDB"},justify:{\u9760\u5DE6:"\u9760\u5DE6",\u5C45\u4E2D:"\u5C45\u4E2D",\u9760\u53F3:"\u9760\u53F3",\u4E24\u7AEF:"\u4E24\u7AEF"},list:{\u65E0\u5E8F\u5217\u8868:"\u65E0\u5E8F\u5217\u8868",\u6709\u5E8F\u5217\u8868:"\u6709\u5E8F\u5217\u8868"}},panelMenus:{emoticon:{\u9ED8\u8BA4:"\u9ED8\u8BA4",\u65B0\u6D6A:"\u65B0\u6D6A",emoji:"emoji",\u624B\u52BF:"\u624B\u52BF"},image:{\u4E0A\u4F20\u56FE\u7247:"\u4E0A\u4F20\u56FE\u7247",\u7F51\u7EDC\u56FE\u7247:"\u7F51\u7EDC\u56FE\u7247",\u56FE\u7247\u5730\u5740:"\u56FE\u7247\u5730\u5740",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"\u56FE\u7247\u6587\u5B57\u8BF4\u660E",\u8DF3\u8F6C\u94FE\u63A5:"\u8DF3\u8F6C\u94FE\u63A5"},link:{\u94FE\u63A5:"\u94FE\u63A5",\u94FE\u63A5\u6587\u5B57:"\u94FE\u63A5\u6587\u5B57",\u53D6\u6D88\u94FE\u63A5:"\u53D6\u6D88\u94FE\u63A5",\u67E5\u770B\u94FE\u63A5:"\u67E5\u770B\u94FE\u63A5"},video:{\u63D2\u5165\u89C6\u9891:"\u63D2\u5165\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891:"\u4E0A\u4F20\u89C6\u9891"},table:{\u884C:"\u884C",\u5217:"\u5217",\u7684:"\u7684",\u8868\u683C:"\u8868\u683C",\u6DFB\u52A0\u884C:"\u6DFB\u52A0\u884C",\u5220\u9664\u884C:"\u5220\u9664\u884C",\u6DFB\u52A0\u5217:"\u6DFB\u52A0\u5217",\u5220\u9664\u5217:"\u5220\u9664\u5217",\u8BBE\u7F6E\u8868\u5934:"\u8BBE\u7F6E\u8868\u5934",\u53D6\u6D88\u8868\u5934:"\u53D6\u6D88\u8868\u5934",\u63D2\u5165\u8868\u683C:"\u63D2\u5165\u8868\u683C",\u5220\u9664\u8868\u683C:"\u5220\u9664\u8868\u683C"},code:{\u5220\u9664\u4EE3\u7801:"\u5220\u9664\u4EE3\u7801",\u4FEE\u6539\u4EE3\u7801:"\u4FEE\u6539\u4EE3\u7801",\u63D2\u5165\u4EE3\u7801:"\u63D2\u5165\u4EE3\u7801"}}},validate:{\u5F20\u56FE\u7247:"\u5F20\u56FE\u7247",\u5927\u4E8E:"\u5927\u4E8E",\u56FE\u7247\u94FE\u63A5:"\u56FE\u7247\u94FE\u63A5",\u4E0D\u662F\u56FE\u7247:"\u4E0D\u662F\u56FE\u7247",\u8FD4\u56DE\u7ED3\u679C:"\u8FD4\u56DE\u7ED3\u679C",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"\u4E0A\u4F20\u56FE\u7247\u5931\u8D25",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"\u63D2\u5165\u56FE\u7247\u9519\u8BEF",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"\u4E00\u6B21\u6700\u591A\u4E0A\u4F20",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"\u63D2\u5165\u89C6\u9891\u9519\u8BEF",\u89C6\u9891\u94FE\u63A5:"\u89C6\u9891\u94FE\u63A5",\u4E0D\u662F\u89C6\u9891:"\u4E0D\u662F\u89C6\u9891",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7",\u4E2A\u89C6\u9891:"\u4E2A\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"\u4E0A\u4F20\u89C6\u9891\u5931\u8D25",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF"}}},en:{wangEditor:{\u91CD\u7F6E:"reset",\u63D2\u5165:"insert",\u9ED8\u8BA4:"default",\u521B\u5EFA:"create",\u4FEE\u6539:"edit",\u5982:"like",\u8BF7\u8F93\u5165\u6B63\u6587:"please enter the text",menus:{title:{\u6807\u9898:"head",\u52A0\u7C97:"bold",\u5B57\u53F7:"font size",\u5B57\u4F53:"font family",\u659C\u4F53:"italic",\u4E0B\u5212\u7EBF:"underline",\u5220\u9664\u7EBF:"strikethrough",\u7F29\u8FDB:"indent",\u884C\u9AD8:"line heihgt",\u6587\u5B57\u989C\u8272:"font color",\u80CC\u666F\u8272:"background",\u94FE\u63A5:"link",\u5E8F\u5217:"numbered list",\u5BF9\u9F50:"align",\u5F15\u7528:"quote",\u8868\u60C5:"emoticons",\u56FE\u7247:"image",\u89C6\u9891:"media",\u8868\u683C:"table",\u4EE3\u7801:"code",\u5206\u5272\u7EBF:"split line",\u6062\u590D:"redo",\u64A4\u9500:"undo",\u5168\u5C4F:"fullscreen",\u53D6\u6D88\u5168\u5C4F:"cancel fullscreen",\u5F85\u529E\u4E8B\u9879:"todo"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"title",\u80CC\u666F\u989C\u8272:"background",\u6587\u5B57\u989C\u8272:"font color",\u8BBE\u7F6E\u5B57\u53F7:"font size",\u8BBE\u7F6E\u5B57\u4F53:"font family",\u8BBE\u7F6E\u7F29\u8FDB:"indent",\u5BF9\u9F50\u65B9\u5F0F:"align",\u8BBE\u7F6E\u884C\u9AD8:"line heihgt",\u5E8F\u5217:"list",head:{\u6B63\u6587:"text"},indent:{\u589E\u52A0\u7F29\u8FDB:"indent",\u51CF\u5C11\u7F29\u8FDB:"outdent"},justify:{\u9760\u5DE6:"left",\u5C45\u4E2D:"center",\u9760\u53F3:"right",\u4E24\u7AEF:"justify"},list:{\u65E0\u5E8F\u5217\u8868:"unordered",\u6709\u5E8F\u5217\u8868:"ordered"}},panelMenus:{emoticon:{\u8868\u60C5:"emoji",\u624B\u52BF:"gesture"},image:{\u4E0A\u4F20\u56FE\u7247:"upload image",\u7F51\u7EDC\u56FE\u7247:"network image",\u56FE\u7247\u5730\u5740:"image link",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"image alt",\u8DF3\u8F6C\u94FE\u63A5:"hyperlink"},link:{\u94FE\u63A5:"link",\u94FE\u63A5\u6587\u5B57:"link text",\u53D6\u6D88\u94FE\u63A5:"unlink",\u67E5\u770B\u94FE\u63A5:"view links"},video:{\u63D2\u5165\u89C6\u9891:"insert video",\u4E0A\u4F20\u89C6\u9891:"upload local video"},table:{\u884C:"rows",\u5217:"columns",\u7684:" ",\u8868\u683C:"table",\u6DFB\u52A0\u884C:"insert row",\u5220\u9664\u884C:"delete row",\u6DFB\u52A0\u5217:"insert column",\u5220\u9664\u5217:"delete column",\u8BBE\u7F6E\u8868\u5934:"set header",\u53D6\u6D88\u8868\u5934:"cancel header",\u63D2\u5165\u8868\u683C:"insert table",\u5220\u9664\u8868\u683C:"delete table"},code:{\u5220\u9664\u4EE3\u7801:"delete code",\u4FEE\u6539\u4EE3\u7801:"edit code",\u63D2\u5165\u4EE3\u7801:"insert code"}}},validate:{\u5F20\u56FE\u7247:"images",\u5927\u4E8E:"greater than",\u56FE\u7247\u94FE\u63A5:"image link",\u4E0D\u662F\u56FE\u7247:"is not image",\u8FD4\u56DE\u7ED3\u679C:"return results",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"upload image timeout",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"upload image error",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"upload image failed",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"insert image error",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"once most at upload",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"download link failed",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"image validate failed",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"server return status",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload image return results error",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"please replace with a supported image type",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"the network picture you inserted is not recognized",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"the image link you just inserted did not pass the editor verification",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"insert video error",\u89C6\u9891\u94FE\u63A5:"video link",\u4E0D\u662F\u89C6\u9891:"is not video",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"video validate failed",\u4E2A\u89C6\u9891:"videos",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"upload video timeout",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"upload video error",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"upload video failed",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload video return results error"}}}}}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(6);function u(){return!!(c.UA.isIE()||c.UA.isOldEdge)}o.default={compatibleMode:u,historyMaxSize:30}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(7);o.default={onlineVideoCheck:function(m){return!0},onlineVideoCallback:c.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1*1024*1024*1024,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:1e3*60*60*2,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},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=u.__importDefault(i(3)),h=i(6),y=i(7),C=function(){function S(w){this._currentRange=null,this.editor=w}return S.prototype.getRange=function(){return this._currentRange},S.prototype.saveRange=function(w){if(w){this._currentRange=w;return}var E=window.getSelection();if(E.rangeCount!==0){var _=E.getRangeAt(0),g=this.getSelectionContainerElem(_);if(!!(g!=null&&g.length)&&!(g.attr("contenteditable")==="false"||g.parentUntil("[contenteditable=false]"))){var b=this.editor,x=b.$textElem;if(x.isContain(g)){if(x.elems[0]===g.elems[0]){var k;if((0,c.default)(k=x.html()).call(k)===y.EMPTY_P){var N=x.children(),V=N==null?void 0:N.last();b.selection.createRangeByElem(V,!0,!0),b.selection.restoreSelection()}}this._currentRange=_}}}},S.prototype.collapseRange=function(w){w===void 0&&(w=!1);var E=this._currentRange;E&&E.collapse(w)},S.prototype.getSelectionText=function(){var w=this._currentRange;return w?w.toString():""},S.prototype.getSelectionContainerElem=function(w){var E;E=w||this._currentRange;var _;if(E)return _=E.commonAncestorContainer,m.default(_.nodeType===1?_:_.parentNode)},S.prototype.getSelectionStartElem=function(w){var E;E=w||this._currentRange;var _;if(E)return _=E.startContainer,m.default(_.nodeType===1?_:_.parentNode)},S.prototype.getSelectionEndElem=function(w){var E;E=w||this._currentRange;var _;if(E)return _=E.endContainer,m.default(_.nodeType===1?_:_.parentNode)},S.prototype.isSelectionEmpty=function(){var w=this._currentRange;return!!(w&&w.startContainer&&w.startContainer===w.endContainer&&w.startOffset===w.endOffset)},S.prototype.restoreSelection=function(){var w=window.getSelection(),E=this._currentRange;w&&E&&(w.removeAllRanges(),w.addRange(E))},S.prototype.createEmptyRange=function(){var w=this.editor,E=this.getRange(),_;if(!!E&&!!this.isSelectionEmpty())try{h.UA.isWebkit()?(w.cmd.do("insertHTML","​"),E.setEnd(E.endContainer,E.endOffset+1),this.saveRange(E)):(_=m.default("<strong>​</strong>"),w.cmd.do("insertElem",_),this.createRangeByElem(_,!0))}catch{}},S.prototype.createRangeByElems=function(w,E){var _=window.getSelection?window.getSelection():document.getSelection();_==null||_.removeAllRanges();var g=document.createRange();g.setStart(w,0),g.setEnd(E,E.childNodes.length||1),this.saveRange(g),this.restoreSelection()},S.prototype.createRangeByElem=function(w,E,_){if(!!w.length){var g=w.elems[0],b=document.createRange();_?b.selectNodeContents(g):b.selectNode(g),E!=null&&(b.collapse(E),E||(this.saveRange(b),this.editor.selection.moveCursor(g))),this.saveRange(b)}},S.prototype.getSelectionRangeTopNodes=function(){var w,E,_,g=(w=this.getSelectionStartElem())===null||w===void 0?void 0:w.getNodeTop(this.editor),b=(E=this.getSelectionEndElem())===null||E===void 0?void 0:E.getNodeTop(this.editor);return _=this.recordSelectionNodes(m.default(g),m.default(b)),_},S.prototype.moveCursor=function(w,E){var _,g=this.getRange(),b=w.nodeType===3?(_=w.nodeValue)===null||_===void 0?void 0:_.length:w.childNodes.length;(h.UA.isFirefox||h.UA.isIE())&&b!==0&&(w.nodeType===3||w.childNodes[b-1].nodeName==="BR")&&(b=b-1);var x=E!=null?E:b;!g||w&&(g.setStart(w,x),g.setEnd(w,x),this.restoreSelection())},S.prototype.getCursorPos=function(){var w=window.getSelection();return w==null?void 0:w.anchorOffset},S.prototype.clearWindowSelectionRange=function(){var w=window.getSelection();w&&w.removeAllRanges()},S.prototype.recordSelectionNodes=function(w,E){var _=[],g=!0;try{for(var b=w,x=this.editor.$textElem;g;){var k=b==null?void 0:b.getNodeTop(this.editor);k.getNodeName()==="BODY"&&(g=!1),k.length>0&&(_.push(m.default(b)),(E==null?void 0:E.equal(k))||x.equal(k)?g=!1:b=k.getNextSibling())}}catch{g=!1}return _},S.prototype.setRangeToElem=function(w){var E=this.getRange();E==null||E.setStart(w,0),E==null||E.setEnd(w,0)},S}();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(3)),m=function(){function h(y){this.editor=y}return h.prototype.do=function(y,C){var S=this.editor;S.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var w=S.selection;if(!!w.getRange()){switch(w.restoreSelection(),y){case"insertHTML":this.insertHTML(C);break;case"insertElem":this.insertElem(C);break;default:this.execCommand(y,C);break}S.menus.changeActive(),w.saveRange(),w.restoreSelection()}},h.prototype.insertHTML=function(y){var C=this.editor,S=C.selection.getRange();if(S!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",y);else if(S.insertNode){if(S.deleteContents(),u.default(y).elems.length>0)S.insertNode(u.default(y).elems[0]);else{var w=document.createElement("p");w.appendChild(document.createTextNode(y)),S.insertNode(w)}C.selection.collapseRange()}}},h.prototype.insertElem=function(y){var C=this.editor,S=C.selection.getRange();S!=null&&S.insertNode&&(S.deleteContents(),S.insertNode(y.elems[0]))},h.prototype.execCommand=function(y,C){document.execCommand(y,!1,C)},h.prototype.queryCommandValue=function(y){return document.queryCommandValue(y)},h.prototype.queryCommandState=function(y){return document.queryCommandState(y)},h.prototype.queryCommandSupported=function(y){return document.queryCommandSupported(y)},h}();o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29)),u=l(i(4)),m=l(i(17)),h=l(i(27)),y=l(i(46));(0,d.default)(o,"__esModule",{value:!0});var C=i(2),S=C.__importDefault(i(3)),w=C.__importDefault(i(287)),E=i(6),_=C.__importDefault(i(299)),g=C.__importDefault(i(300)),b=i(7),x=function(){function k(N){this.editor=N,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return k.prototype.init=function(){this._saveRange(),this._bindEventHooks(),w.default(this)},k.prototype.togglePlaceholder=function(){var N,V=this.html(),F=(0,c.default)(N=this.editor.$textContainerElem).call(N,".placeholder");F.hide(),!this.editor.isComposing&&(!V||V===" ")&&F.show()},k.prototype.clear=function(){this.html(b.EMPTY_P)},k.prototype.html=function(N){var V=this.editor,F=V.$textElem;if(N==null){var I=F.html();I=I.replace(/\u200b/gm,""),I=I.replace(/<p><\/p>/gim,""),I=I.replace(b.EMPTY_P_LAST_REGEX,""),I=I.replace(b.EMPTY_P_REGEX,"<p>");var P=I.match(/<(img|br|hr|input)[^>]*>/gi);return P!==null&&(0,u.default)(P).call(P,function(T){T.match(/\/>/)||(I=I.replace(T,T.substring(0,T.length-1)+"/>"))}),I}N=(0,m.default)(N).call(N),N===""&&(N=b.EMPTY_P),(0,h.default)(N).call(N,"<")!==0&&(N="<p>"+N+"</p>"),F.html(N),V.initSelection()},k.prototype.setJSON=function(N){var V=g.default(N).children(),F=this.editor,I=F.$textElem;!V||I.replaceChildAll(V)},k.prototype.getJSON=function(){var N=this.editor,V=N.$textElem;return _.default(V)},k.prototype.text=function(N){var V=this.editor,F=V.$textElem;if(N==null){var I=F.text();return I=I.replace(/\u200b/gm,""),I}F.text("<p>"+N+"</p>"),V.initSelection()},k.prototype.append=function(N){var V=this.editor;(0,h.default)(N).call(N,"<")!==0&&(N="<p>"+N+"</p>"),this.html(this.html()+N),V.initSelection()},k.prototype._saveRange=function(){var N=this.editor,V=N.$textElem,F=S.default(document);function I(){N.selection.saveRange(),N.menus.changeActive()}V.on("keyup",I);function P(){I(),V.off("click",P)}V.on("click",P);function T(){I(),F.off("mouseup",T)}function B(){F.on("mouseup",T),V.off("mouseleave",B)}V.on("mousedown",function(){V.on("mouseleave",B)}),V.on("mouseup",function(L){V.off("mouseleave",B),(0,y.default)(function(){var U=N.selection,H=U.getRange();H!==null&&I()},0)})},k.prototype._bindEventHooks=function(){var N=this.editor,V=N.$textElem,F=this.eventHooks;V.on("click",function(P){var T=F.clickEvents;(0,u.default)(T).call(T,function(B){return B(P)})}),V.on("keyup",function(P){if(P.keyCode===13){var T=F.enterUpEvents;(0,u.default)(T).call(T,function(B){return B(P)})}}),V.on("keyup",function(P){var T=F.keyupEvents;(0,u.default)(T).call(T,function(B){return B(P)})}),V.on("keydown",function(P){var T=F.keydownEvents;(0,u.default)(T).call(T,function(B){return B(P)})}),V.on("keyup",function(P){if(!(P.keyCode!==8&&P.keyCode!==46)){var T=F.deleteUpEvents;(0,u.default)(T).call(T,function(B){return B(P)})}}),V.on("keydown",function(P){if(!(P.keyCode!==8&&P.keyCode!==46)){var T=F.deleteDownEvents;(0,u.default)(T).call(T,function(B){return B(P)})}}),V.on("paste",function(P){if(!E.UA.isIE()){P.preventDefault();var T=F.pasteEvents;(0,u.default)(T).call(T,function(B){return B(P)})}}),V.on("keydown",function(P){(N.isFocus||N.isCompatibleMode)&&(P.ctrlKey||P.metaKey)&&P.keyCode===90&&(P.preventDefault(),P.shiftKey?N.history.restore():N.history.revoke())}),V.on("keyup",function(P){if(P.keyCode===9){P.preventDefault();var T=F.tabUpEvents;(0,u.default)(T).call(T,function(B){return B(P)})}}),V.on("keydown",function(P){if(P.keyCode===9){P.preventDefault();var T=F.tabDownEvents;(0,u.default)(T).call(T,function(B){return B(P)})}}),V.on("scroll",E.throttle(function(P){var T=F.textScrollEvents;(0,u.default)(T).call(T,function(B){return B(P)})},100));function I(P){P.preventDefault()}S.default(document).on("dragleave",I).on("drop",I).on("dragenter",I).on("dragover",I),N.beforeDestroy(function(){S.default(document).off("dragleave",I).off("drop",I).off("dragenter",I).off("dragover",I)}),V.on("drop",function(P){P.preventDefault();var T=F.dropEvents;(0,u.default)(T).call(T,function(B){return B(P)})}),V.on("click",function(P){var T=null,B=P.target,L=S.default(B);if(L.getNodeName()==="A")T=L;else{var U=L.parentUntil("a");U!=null&&(T=U)}if(!!T){var H=F.linkClickEvents;(0,u.default)(H).call(H,function(R){return R(T)})}}),V.on("click",function(P){var T=null,B=P.target,L=S.default(B);if(L.getNodeName()==="IMG"&&!L.elems[0].getAttribute("data-emoji")&&(P.stopPropagation(),T=L),!!T){var U=F.imgClickEvents;(0,u.default)(U).call(U,function(H){return H(T)})}}),V.on("click",function(P){var T=null,B=P.target,L=S.default(B);if(L.getNodeName()==="PRE")T=L;else{var U=L.parentUntil("pre");U!==null&&(T=U)}if(!!T){var H=F.codeClickEvents;(0,u.default)(H).call(H,function(R){return R(T)})}}),V.on("click",function(P){var T=null,B=P.target,L=S.default(B);if(L.getNodeName()==="HR"&&(T=L),!!T){N.selection.createRangeByElem(T),N.selection.restoreSelection();var U=F.splitLineEvents;(0,u.default)(U).call(U,function(H){return H(T)})}}),N.$toolbarElem.on("click",function(P){var T=F.toolbarClickEvents;(0,u.default)(T).call(T,function(B){return B(P)})}),N.$textContainerElem.on("mousedown",function(P){var T=P.target,B=S.default(T);if(B.hasClass("w-e-img-drag-rb")){var L=F.imgDragBarMouseDownEvents;(0,u.default)(L).call(L,function(U){return U()})}}),V.on("click",function(P){var T=null,B=P.target;if(T=S.default(B).parentUntilEditor("TABLE",N,B),!!T){var L=F.tableClickEvents;(0,u.default)(L).call(L,function(U){return U(T,P)})}}),V.on("keydown",function(P){if(P.keyCode===13){var T=F.enterDownEvents;(0,u.default)(T).call(T,function(B){return B(P)})}}),V.on("click",function(P){var T=null,B=P.target,L=S.default(B);if(L.getNodeName()==="VIDEO"&&(P.stopPropagation(),T=L),!!T){var U=F.videoClickEvents;(0,u.default)(U).call(U,function(H){return H(T)})}})},k}();o.default=x},function(r,o,i){var l=i(284);r.exports=l},function(r,o,i){var l=i(285),d=Array.prototype;r.exports=function(c){var u=c.find;return c===d||c instanceof Array&&u===d.find?l:u}},function(r,o,i){i(286);var l=i(15);r.exports=l("Array").find},function(r,o,i){var l=i(5),d=i(32).find,c=i(82),u=i(22),m="find",h=!0,y=u(m);m in[]&&Array(1)[m](function(){h=!1}),l({target:"Array",proto:!0,forced:h||!y},{find:function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}}),c(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(288)),m=c.__importStar(i(289)),h=c.__importDefault(i(290)),y=c.__importDefault(i(291)),C=c.__importDefault(i(298));function S(w){var E=w.editor,_=w.eventHooks;u.default(E,_.enterUpEvents,_.enterDownEvents),m.default(E,_.deleteUpEvents,_.deleteDownEvents),m.cutToKeepP(E,_.keyupEvents),h.default(E,_.tabDownEvents),y.default(E,_.pasteEvents),C.default(E,_.imgClickEvents)}o.default=S},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),m=i(7),h=u.__importDefault(i(3));function y(C,S,w){function E(b){var x,k=h.default(m.EMPTY_P);if(k.insertBefore(b),(0,c.default)(x=b.html()).call(x,"<img")>=0){k.remove();return}C.selection.createRangeByElem(k,!0,!0),C.selection.restoreSelection(),b.remove()}function _(){var b=C.$textElem,x=C.selection.getSelectionContainerElem(),k=x.parent();if(k.html()==="<code><br></code>"){E(k);return}if(x.getNodeName()==="FONT"&&x.text()===""&&x.attr("face")==="monospace"){E(k);return}if(!!k.equal(b)){var N=x.getNodeName();N==="P"&&x.attr("data-we-empty-p")===null||x.text()||E(x)}}S.push(_);function g(b){var x;C.selection.saveRange((x=getSelection())===null||x===void 0?void 0:x.getRangeAt(0));var k=C.selection.getSelectionContainerElem();k.id===C.textElemId&&(b.preventDefault(),C.cmd.do("insertHTML","<p><br></p>"))}w.push(g)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17)),u=l(i(28));(0,d.default)(o,"__esModule",{value:!0}),o.cutToKeepP=void 0;var m=i(2),h=i(7),y=m.__importDefault(i(3));function C(w,E,_){function g(){var x=w.$textElem,k=w.$textElem.html(),N=w.$textElem.text(),V=(0,c.default)(k).call(k),F=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',h.EMPTY_P];if(/^\s*$/.test(N)&&(!V||(0,u.default)(F).call(F,V))){x.html(h.EMPTY_P);var I=x.getNode();w.selection.createRangeByElems(I.childNodes[0],I.childNodes[0]);var P=w.selection.getSelectionContainerElem();w.selection.restoreSelection(),w.selection.moveCursor(P.getNode(),0)}}E.push(g);function b(x){var k,N=w.$textElem,V=(0,c.default)(k=N.html().toLowerCase()).call(k);if(V===h.EMPTY_P){x.preventDefault();return}}_.push(b)}function S(w,E){function _(g){var b;if(g.keyCode===88){var x=w.$textElem,k=(0,c.default)(b=x.html().toLowerCase()).call(b);if(!k||k==="<br>"){var N=y.default(h.EMPTY_P);x.html(" "),x.append(N),w.selection.createRangeByElem(N,!1,!0),w.selection.restoreSelection(),w.selection.moveCursor(N.getNode(),0)}}}E.push(_)}o.cutToKeepP=S,o.default=C},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u,m){function h(){if(!!u.cmd.queryCommandSupported("insertHTML")){var y=u.selection.getSelectionContainerElem();if(!!y){var C=y.parent(),S=y.getNodeName(),w=C.getNodeName();S=="CODE"||w==="CODE"||w==="PRE"||/hljs/.test(w)?u.cmd.do("insertHTML",u.config.languageTab):u.cmd.do("insertHTML"," ")}}}m.push(h)}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17)),u=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var m=i(131),h=i(6),y=i(7);function C(g){var b,x=(0,c.default)(b=g.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(b),k=document.createElement("div");return k.innerHTML=x,k.innerHTML.replace(/<p><\/p>/gim,"")}function S(g){var b=g.replace(/<br>|<br\/>/gm,`
|
||
`).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*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(d,c){c&&(this.contentHandler=c);for(var u,m,h,y=!1,C=this;d.length>0;)d.substring(0,4)=="<!--"?(h=d.indexOf("-->"),h!=-1?(this.contentHandler.comment(d.substring(4,h)),d=d.substring(h+3),y=!1):y=!0):d.substring(0,2)=="</"?this.endTagRe.test(d)?(u=RegExp.lastMatch,m=RegExp.rightContext,u.replace(this.endTagRe,function(){return C.parseEndTag.apply(C,arguments)}),d=m,y=!1):y=!0:d.charAt(0)=="<"&&(this.startTagRe.test(d)?(u=RegExp.lastMatch,m=RegExp.rightContext,u.replace(this.startTagRe,function(){return C.parseStartTag.apply(C,arguments)}),d=m,y=!1):y=!0),y&&(h=d.indexOf("<"),h==-1?(this.contentHandler.characters(d),d=""):(this.contentHandler.characters(d.substring(0,h)),d=d.substring(h))),y=!0},parseStartTag:function(d,c,u){var m=this.parseAttributes(c,u);this.contentHandler.startElement(c,m)},parseEndTag:function(d,c){this.contentHandler.endElement(c)},parseAttributes:function(d,c){var u=this,m=[];return c.replace(this.attrRe,function(h,y,C,S,w,E,_,g){m.push(u.parseAttribute(d,h,y,C,S,w,E,_,g))}),m},parseAttribute:function(d,c,u){var m="";arguments[7]?m=arguments[8]:arguments[5]?m=arguments[6]:arguments[3]&&(m=arguments[4]);var h=!m&&!arguments[3];return{name:u,value:h?null:m}}},r.exports=i},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u,m){function h(y){u.selection.createRangeByElem(y),u.selection.restoreSelection()}m.push(h)}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=i(2),m=i(6),h=u.__importDefault(i(3));function y(C){var S=[],w=C.childNodes()||[];return(0,c.default)(w).call(w,function(E){var _,g=E.nodeType;if(g===3&&(_=E.textContent||"",_=m.replaceHtmlSymbol(_)),g===1){_={},_=_,_.tag=E.nodeName.toLowerCase();for(var b=[],x=E.attributes,k=x.length||0,N=0;N<k;N++){var V=x[N];b.push({name:V.name,value:V.value})}_.attrs=b,_.children=y(h.default(E))}_&&S.push(_)}),S}o.default=y},function(r,o,i){var l=i(0),d=l(i(92)),c=l(i(1)),u=l(i(4));(0,c.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(3));function y(C,S){S===void 0&&(S=document.createElement("div"));var w=S;return(0,u.default)(C).call(C,function(E){var _;if(typeof E=="string"&&(_=document.createTextNode(E)),(0,d.default)(E)==="object"){var g;_=document.createElement(E.tag),(0,u.default)(g=E.attrs).call(g,function(b){h.default(_).attr(b.name,b.value)}),E.children&&E.children.length>0&&y(E.children,_.getRootNode())}_&&w.appendChild(_)}),h.default(w)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(89)),u=l(i(70)),m=l(i(28)),h=l(i(302)),y=l(i(4)),C=l(i(94)),S=l(i(133)),w=l(i(46)),E=l(i(57));(0,d.default)(o,"__esModule",{value:!0});var _=i(2),g=_.__importDefault(i(87)),b=_.__importDefault(i(314)),x=_.__importDefault(i(3)),k=function(){function N(V){this.editor=V,this.menuList=[],this.constructorList=b.default}return N.prototype.extend=function(V,F){!F||typeof F!="function"||(this.constructorList[V]=F)},N.prototype.init=function(){var V,F,I=this,P=this.editor.config,T=P.excludeMenus;(0,c.default)(T)===!1&&(T=[]),P.menus=(0,u.default)(V=P.menus).call(V,function(A){return(0,m.default)(T).call(T,A)===!1});var B=(0,h.default)(g.default.globalCustomMenuConstructorList);B=(0,u.default)(B).call(B,function(A){return(0,m.default)(T).call(T,A)}),(0,y.default)(B).call(B,function(A){delete g.default.globalCustomMenuConstructorList[A]}),(0,y.default)(F=P.menus).call(F,function(A){var J=I.constructorList[A];I._initMenuList(A,J)});for(var L=0,U=(0,C.default)(g.default.globalCustomMenuConstructorList);L<U.length;L++){var H=U[L],R=H[0],z=H[1],$=z;this._initMenuList(R,$)}this._addToToolbar(),P.showMenuTooltips&&this._bindMenuTooltips()},N.prototype._initMenuList=function(V,F){var I;if(!(F==null||typeof F!="function"))if((0,S.default)(I=this.menuList).call(I,function(T){return T.key===V}))console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:"+V);else{var P=new F(this.editor);P.key=V,this.menuList.push(P)}},N.prototype._bindMenuTooltips=function(){var V=this.editor,F=V.$toolbarElem,I=V.config,P=I.menuTooltipPosition,T=x.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+P+`">
|
||
<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=d("JSON","stringify"),m=/[\uD800-\uDFFF]/g,h=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,C=function(E,_,g){var b=g.charAt(_-1),x=g.charAt(_+1);return h.test(E)&&!y.test(x)||y.test(E)&&!h.test(b)?"\\u"+E.charCodeAt(0).toString(16):E},S=c(function(){return u("\uDF06\uD834")!=='"\\udf06\\ud834"'||u("\uDEAD")!=='"\\udead"'});u&&l({target:"JSON",stat:!0,forced:S},{stringify:function(E,_,g){var b=u.apply(null,arguments);return typeof b=="string"?b.replace(m,C):b}})},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=u.__importDefault(i(38)),h=u.__importDefault(i(3)),y=u.__importDefault(i(322)),C=u.__importStar(i(96)),S=u.__importDefault(i(33)),w=u.__importDefault(i(324)),E=i(7),_=function(g){u.__extends(b,g);function b(x){var k=this,N=h.default('<div class="w-e-menu" data-title="\u94FE\u63A5"><i class="w-e-icon-link"></i></div>');return k=g.call(this,N,x)||this,w.default(x),k}return b.prototype.clickHandler=function(){var x=this.editor,k,N=x.selection.getSelectionContainerElem(),V=x.$textElem,F=V.html(),I=(0,c.default)(F).call(F);if(I===E.EMPTY_P){var P=V.children();x.selection.createRangeByElem(P,!0,!0),N=x.selection.getSelectionContainerElem()}if(!(N&&x.$textElem.equal(N)))if(this.isActive){var T="",B="";if(k=x.selection.getSelectionContainerElem(),!k)return;if(k.getNodeName()!=="A"){var L=C.getParentNodeA(k);k=h.default(L)}T=k.elems[0].innerText,B=k.attr("href"),this.createPanel(T,B)}else x.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(x.selection.getSelectionText(),"")},b.prototype.createPanel=function(x,k){var N=y.default(this.editor,x,k),V=new S.default(this,N);V.create()},b.prototype.tryChangeActive=function(){var x=this.editor;C.default(x)?this.active():this.unActive()},b}(m.default);o.default=_},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(28)),u=l(i(17)),m=l(i(29));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),y=i(6),C=h.__importDefault(i(3)),S=h.__importStar(i(96)),w=i(323);function E(_,g,b){var x=y.getRandom("input-link"),k=y.getRandom("input-text"),N=y.getRandom("btn-ok"),V=y.getRandom("btn-del"),F=S.default(_)?"inline-block":"none",I;function P(){if(!!S.default(_)){var H=_.selection.getSelectionContainerElem();!H||(_.selection.createRangeByElem(H),_.selection.restoreSelection(),I=H)}}function T(H,R){var z=H.replace(/</g,"<").replace(/>/g,">"),$=C.default('<a target="_blank">'+z+"</a>"),A=$.elems[0];A.innerText=H,A.href=R,S.default(_)&&P(),_.cmd.do("insertElem",$)}function B(){if(!!S.default(_))if(P(),I.getNodeName()==="A"){var H,R=I.elems[0],z=R.parentElement;z&&(0,c.default)(H=S.EXTRA_TAG).call(H,z.nodeName)?z.innerHTML=R.innerHTML:_.cmd.do("insertHTML","<span>"+R.innerHTML+"</span>")}else{var $=S.getParentNodeA(I),A=$.innerHTML;_.cmd.do("insertHTML","<span>"+A+"</span>")}}function L(H,R){var z=_.config.linkCheck(H,R);if(z!==void 0){if(z===!0)return!0;_.config.customAlert(z,"warning")}return!1}var U={width:300,height:0,tabs:[{title:_.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`<div>
|
||
<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 0:I.elems[0].children[0];N.cmd.do("insertHTML",`<img
|
||
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}},{$elem:u.default("<span>"+E("menus.justify.\u5C45\u4E2D")+"</span>"),onClick:function(N,V){return h.default(V,"center"),!0}},{$elem:u.default("<span>"+E("menus.justify.\u9760\u53F3")+"</span>"),onClick:function(N,V){return h.default(V,"right"),!0}}];w=new m.default(S,b,x),w.create()}function g(){w&&(w.remove(),w=null)}return{showVideoTooltip:_,hideVideoTooltip:g}}o.createShowHideFn=y;function C(S){var w=y(S),E=w.showVideoTooltip,_=w.hideVideoTooltip;S.txt.eventHooks.videoClickEvents.push(E),S.txt.eventHooks.clickEvents.push(_),S.txt.eventHooks.keyupEvents.push(_),S.txt.eventHooks.toolbarClickEvents.push(_),S.txt.eventHooks.menuClickEvents.push(_),S.txt.eventHooks.textScrollEvents.push(_),S.txt.eventHooks.changeEvents.push(_)}o.default=C},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));function h(C,S){var w=["P"],E=y(C,w);E&&m.default(E).css("text-align",S)}o.default=h;function y(C,S){for(var w,E=C.elems[0];E!=null;){if((0,c.default)(S).call(S,E==null?void 0:E.nodeName))return E;if(((w=E==null?void 0:E.parentNode)===null||w===void 0?void 0:w.nodeName)==="BODY")return null;E=E.parentNode}return E}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(6);function u(m){if(!!c.UA.isFirefox){var h=m.txt,y=m.selection,C=h.eventHooks.keydownEvents;C.push(function(S){var w=y.getSelectionContainerElem();if(w){var E=w.getNodeTop(m),_=E.length&&E.prev().length?E.prev():null;_&&_.attr("data-we-video-p")&&y.getCursorPos()===0&&S.keyCode===8&&_.remove()}})}}o.default=u},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(7),h=u.__importDefault(i(3)),y=u.__importDefault(i(33)),C=u.__importDefault(i(38)),S=u.__importDefault(i(351)),w=u.__importDefault(i(364)),E=function(_){u.__extends(g,_);function g(b){var x=this,k=h.default('<div class="w-e-menu" data-title="\u56FE\u7247"><i class="w-e-icon-image"></i></div>'),N=w.default(b);if(N.onlyUploadConf){var V;k=N.onlyUploadConf.$elem,(0,c.default)(V=N.onlyUploadConf.events).call(V,function(F){var I=F.type,P=F.fn||m.EMPTY_FN;k.on(I,function(T){T.stopPropagation(),P(T)})})}return x=_.call(this,k,b)||this,x.imgPanelConfig=N,S.default(b),x}return g.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},g.prototype.createPanel=function(){var b=this.imgPanelConfig,x=new y.default(this,b);this.setPanel(x),x.create()},g.prototype.tryChangeActive=function(){},g}(C.default);o.default=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(352)),m=c.__importDefault(i(353)),h=c.__importDefault(i(354)),y=c.__importDefault(i(362)),C=c.__importDefault(i(363));function S(w){u.default(w),m.default(w),h.default(w),y.default(w),C.default(w)}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=i(131),m=c.__importDefault(i(97));function h(w,E){var _=w.config,g=_.pasteFilterStyle,b=_.pasteIgnoreImg,x=u.getPasteHtml(E,g,b);if(x)return!0;var k=u.getPasteText(E);return!!k}function y(w,E){for(var _,g=((_=E.clipboardData)===null||_===void 0?void 0:_.types)||[],b=0;b<g.length;b++){var x=g[b];if(x==="Files")return!0}return!1}function C(w,E){if(!(!y(E,w)&&h(E,w))){var _=u.getPasteImgs(w);if(!!_.length){var g=new m.default(E);g.uploadImg(_)}}}function S(w){w.txt.eventHooks.pasteEvents.unshift(function(E){C(E,w)})}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(97));function m(h){function y(C){var S=C.dataTransfer&&C.dataTransfer.files;if(!(!S||!S.length)){var w=new u.default(h);w.uploadImg(S)}}h.txt.eventHooks.dropEvents.push(y)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29)),u=l(i(355));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var m=i(2),h=m.__importDefault(i(3));i(360);var y=i(6);function C(g,b,x,k,N){g.attr("style","width:"+b+"px; height:"+x+"px; left:"+k+"px; top:"+N+"px;")}function S(g,b){var x=h.default(`<div class="w-e-img-drag-mask">
|
||
<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==null?void 0:B.getNodeName();if(H===R)if(U.length>2)if(U.shift(),U.pop(),L=y.createElementFragment(y.filterSelectionNodes(U),y.createDocumentFragment()),H===I)(E=B.children())===null||E===void 0||(0,c.default)(E).call(E,function(ce){L.append(ce)}),B.remove(),this.selectionRangeElem.set(L),T.elems[0].append(L);else{for(var z=document.createDocumentFragment(),$=document.createDocumentFragment(),A=y.getStartPoint(T);A.length;){var J=A.elems[0];A=A.next(),z.append(J)}for(var Q=y.getEndPoint(B),G=[];Q.length;)G.unshift(Q.elems[0]),Q=Q.prev();(0,c.default)(G).call(G,function(ce){$.append(ce)});var ie=y.createElement(P);ie.append(z),ie.append(L),ie.append($),L=ie,this.selectionRangeElem.set(L),m.default(ie).insertAfter(T),!(!((_=T.children())===null||_===void 0)&&_.length)&&T.remove(),!(!((g=B.children())===null||g===void 0)&&g.length)&&B.remove()}else{U.length=0;for(var A=y.getStartPoint(T);A.length;)U.push(A),A=A.next();for(var Q=y.getEndPoint(B),G=[];Q.length;)G.unshift(Q),Q=Q.prev();U.push.apply(U,G),H===I?(L=y.createElementFragment(U,y.createDocumentFragment(),"p"),this.selectionRangeElem.set(L),y.insertBefore(T,L,B.elems[0])):(L=y.createElement(P),(0,c.default)(U).call(U,function(se){L.append(se.elems[0])}),this.selectionRangeElem.set(L),m.default(L).insertAfter(T)),!(!((b=T.children())===null||b===void 0)&&b.length)&&B.remove(),!(!((x=B.children())===null||x===void 0)&&x.length)&&B.remove()}else{for(var X=[],Q=y.getEndPoint(B);Q.length;)X.unshift(Q),Q=Q.prev();for(var le=[],A=y.getStartPoint(T);A.length;)le.push(A),A=A.next();if(L=y.createDocumentFragment(),U.shift(),U.pop(),(0,c.default)(le).call(le,function(pe){return L.append(pe.elems[0])}),L=y.createElementFragment(y.filterSelectionNodes(U),L),(0,c.default)(X).call(X,function(pe){return L.append(pe.elems[0])}),this.selectionRangeElem.set(L),H===I)T.elems[0].append(L),!(!((k=B.children())===null||k===void 0)&&k.length)&&B.remove();else if(!((N=B.children())===null||N===void 0)&&N.length){var be=B.children();y.insertBefore(be,L,be.elems[0])}else B.elems[0].append(L)}},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=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,g=_.editor,b=_.listType,x=_.listTarget,k=_.$startElem,N,V=g.selection.getSelectionRangeTopNodes(),F=k==null?void 0:k.getNodeName();V.shift();for(var I=[],P=y.getStartPoint(k);P.length;)I.push(P),P=P.next();F===b?(N=y.createDocumentFragment(),(0,c.default)(I).call(I,function(T){return N.append(T.elems[0])}),N=y.createElementFragment(y.filterSelectionNodes(V),N),this.selectionRangeElem.set(N),k.elems[0].append(N)):(N=y.createElement(x),(0,c.default)(I).call(I,function(T){return N.append(T.elems[0])}),N=y.createElementFragment(y.filterSelectionNodes(V),N),this.selectionRangeElem.set(N),m.default(N).insertAfter(k),!(!((E=k.children())===null||E===void 0)&&E.length)&&k.remove())},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=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=this.options,b=g.editor,x=g.listType,k=g.listTarget,N=g.$endElem,V,F=b.selection.getSelectionRangeTopNodes(),I=N==null?void 0:N.getNodeName();F.pop();for(var P=[],T=y.getEndPoint(N);T.length;)P.unshift(T),T=T.prev();if(I===x)if(V=y.createElementFragment(y.filterSelectionNodes(F),y.createDocumentFragment()),(0,c.default)(P).call(P,function(U){return V.append(U.elems[0])}),this.selectionRangeElem.set(V),!((E=N.children())===null||E===void 0)&&E.length){var B=N.children();y.insertBefore(B,V,B.elems[0])}else N.elems[0].append(V);else{var L=y.filterSelectionNodes(F);L.push.apply(L,P),V=y.createElementFragment(L,y.createElement(k)),this.selectionRangeElem.set(V),m.default(V).insertBefore(N),!(!((_=N.children())===null||_===void 0)&&_.length)&&N.remove()}},w}(h.ListHandle);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=i(58),m=i(47),h=function(y){c.__extends(C,y);function C(S,w){var E=y.call(this,S)||this;return E.range=w,E}return C.prototype.exec=function(){var S=this.options,w=S.editor,E=S.listTarget,_=w.selection.getSelectionRangeTopNodes(),g=m.createElementFragment(m.filterSelectionNodes(_),m.createElement(E));this.selectionRangeElem.set(g),this.range.insertNode(g)},C}(u.ListHandle);o.default=h},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=m.__importDefault(i(379)),S=function(w){m.__extends(E,w);function E(_){var g=this,b=y.default(`<div class="w-e-menu" data-title="\u884C\u9AD8">
|
||
<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 R=Number(V.getCurrentRowIndex(L.elems[0],H));R!==0&&(R=0);var z=V.getTableHtml(L.elems[0]),$=V.getTableHtml(h.default.setTheHeader(u.default(z),R,"td").elems[0]);return $=_(L,$),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",$),!0}}];b=new m.default(g,N,P),b.create()}function k(){b&&(b.remove(),b=null)}return{showTableTooltip:x,hideTableTooltip:k}}function w(g){var b=g.selection.getSelectionStartElem(),x=g.selection.getSelectionEndElem();return(b==null?void 0:b.elems[0])!==(x==null?void 0:x.elems[0])}function E(g){var b=S(g),x=b.showTableTooltip,k=b.hideTableTooltip;g.txt.eventHooks.tableClickEvents.push(x),g.txt.eventHooks.clickEvents.push(k),g.txt.eventHooks.keyupEvents.push(k),g.txt.eventHooks.toolbarClickEvents.push(k),g.txt.eventHooks.menuClickEvents.push(k),g.txt.eventHooks.textScrollEvents.push(k)}o.default=E;function _(g,b){var x=g.elems[0].nextSibling;return(!x||x.innerHTML==="<br>")&&(b+=""+C.EMPTY_P),b}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45)),u=l(i(91)),m=l(i(4)),h=l(i(138));(0,d.default)(o,"__esModule",{value:!0});var y=i(2),C=y.__importDefault(i(3));function S(k,N){for(var V=x(k),F=(0,c.default)(Array.prototype).apply(V.children),I=F[0].children.length,P=document.createElement("tr"),T=0;T<I;T++){var B=document.createElement("td");P.appendChild(B)}return(0,u.default)(F).call(F,N+1,0,P),b(V,F),C.default(V.parentNode)}function w(k,N){for(var V=x(k),F=(0,c.default)(Array.prototype).apply(V.children),I=function(B){var L,U=[];for((0,m.default)(L=(0,h.default)(F[B].children)).call(L,function(z){U.push(z)});F[B].children.length!==0;)F[B].removeChild(F[B].children[0]);var H=C.default(U[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,u.default)(U).call(U,N+1,0,H);for(var R=0;R<U.length;R++)F[B].appendChild(U[R])},P=0;P<F.length;P++)I(P);return b(V,F),C.default(V.parentNode)}function E(k,N){var V=x(k),F=(0,c.default)(Array.prototype).apply(V.children);return(0,u.default)(F).call(F,N,1),b(V,F),C.default(V.parentNode)}function _(k,N){for(var V=x(k),F=(0,c.default)(Array.prototype).apply(V.children),I=function(B){var L,U=[];for((0,m.default)(L=(0,h.default)(F[B].children)).call(L,function(R){U.push(R)});F[B].children.length!==0;)F[B].removeChild(F[B].children[0]);(0,u.default)(U).call(U,N,1);for(var H=0;H<U.length;H++)F[B].appendChild(U[H])},P=0;P<F.length;P++)I(P);return b(V,F),C.default(V.parentNode)}function g(k,N,V){for(var F=x(k),I=(0,c.default)(Array.prototype).apply(F.children),P=I[N].children,T=document.createElement("tr"),B=function(H){var R,z=document.createElement(V),$=P[H];(0,m.default)(R=(0,h.default)($.childNodes)).call(R,function(A){z.appendChild(A)}),T.appendChild(z)},L=0;L<P.length;L++)B(L);return(0,u.default)(I).call(I,N,1,T),b(F,I),C.default(F.parentNode)}function b(k,N){for(;k.children.length!==0;)k.removeChild(k.children[0]);for(var V=0;V<N.length;V++)k.appendChild(N[V])}function x(k){var N=k.elems[0].children[0];return N.nodeName==="COLGROUP"&&(N=k.elems[0].children[k.elems[0].children.length-1]),N}o.default={ProcessingRow:S,ProcessingCol:w,DeleteRow:E,DeleteCol:_,setTheHeader:g}},function(r,o,i){var l=i(396);r.exports=l},function(r,o,i){i(50),i(397);var l=i(9);r.exports=l.Array.from},function(r,o,i){var l=i(5),d=i(398),c=i(115),u=!c(function(m){Array.from(m)});l({target:"Array",stat:!0,forced:u},{from:d})},function(r,o,i){var l=i(40),d=i(31),c=i(114),u=i(112),m=i(35),h=i(69),y=i(113);r.exports=function(S){var w=d(S),E=typeof this=="function"?this:Array,_=arguments.length,g=_>1?arguments[1]:void 0,b=g!==void 0,x=y(w),k=0,N,V,F,I,P,T;if(b&&(g=l(g,_>2?arguments[2]:void 0,2)),x!=null&&!(E==Array&&u(x)))for(I=x.call(w),P=I.next,V=new E;!(F=P.call(I)).done;k++)T=b?c(I,g,[F.value,k],!0):F.value,h(V,k,T);else for(N=m(w.length),V=new E(N);N>k;k++)T=b?g(w[k],k):w[k],h(V,k,T);return V.length=k,V}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(138));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),h=m.__importDefault(i(3)),y=function(){function C(S){this.editor=S}return C.prototype.getRowNode=function(S){var w,E=h.default(S).elems[0];return E.parentNode&&(E=(w=h.default(E).parentUntil("TR",E))===null||w===void 0?void 0:w.elems[0]),E},C.prototype.getCurrentRowIndex=function(S,w){var E,_=0,g=S.children[0];return g.nodeName==="COLGROUP"&&(g=S.children[S.children.length-1]),(0,c.default)(E=(0,u.default)(g.children)).call(E,function(b,x){b===w&&(_=x)}),_},C.prototype.getCurrentColIndex=function(S){var w,E,_=0,g=h.default(S).getNodeName()==="TD"||h.default(S).getNodeName()==="TH"?S:(E=h.default(S).parentUntil("TD",S))===null||E===void 0?void 0:E.elems[0],b=h.default(g).parent();return(0,c.default)(w=(0,u.default)(b.elems[0].children)).call(w,function(x,k){x===g&&(_=k)}),_},C.prototype.getTableHtml=function(S){var w='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+h.default(S).html()+"</table>";return w},C}();o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.bindEventKeyboardEvent=o.bindClickEvent=void 0;var c=i(2),u=c.__importDefault(i(3));function m(C){if(!C.length)return!1;var S=C.elems[0];return S.nodeName==="P"&&S.innerHTML==="<br>"}function h(C){function S(w,E){if(E.detail>=3){var _=window.getSelection();if(_){var g=_.focusNode,b=_.anchorNode,x=u.default(b==null?void 0:b.parentElement);if(!w.isContain(u.default(g))){var k=x.elems[0].tagName==="TD"?x:x.parentUntilEditor("td",C);if(k){var N=C.selection.getRange();N==null||N.setEnd(k.elems[0],k.elems[0].childNodes.length),C.selection.restoreSelection()}}}}}C.txt.eventHooks.tableClickEvents.push(S)}o.bindClickEvent=h;function y(C){var S=C.txt,w=C.selection,E=S.eventHooks.keydownEvents;E.push(function(_){C.selection.saveRange();var g=w.getSelectionContainerElem();if(g){var b=g.getNodeTop(C),x=b.length&&b.prev().length?b.prev():null;if(x&&x.getNodeName()==="TABLE"&&w.isSelectionEmpty()&&w.getCursorPos()===0&&_.keyCode===8){var k=b.next(),N=!!k.length;N&&m(b)&&(b.remove(),C.selection.setRangeToElem(k.elems[0])),_.preventDefault()}}})}o.bindEventKeyboardEvent=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0}),o.formatCodeHtml=void 0;var u=i(2),m=u.__importDefault(i(38)),h=u.__importDefault(i(3)),y=i(6),C=u.__importDefault(i(402)),S=u.__importDefault(i(139)),w=u.__importDefault(i(33)),E=u.__importDefault(i(403));function _(b,x){if(!x)return x;return x=N(x),x=k(x),x=y.replaceSpecialSymbol(x),x;function k(V){var F=V.match(/<pre[\s|\S]+?\/pre>/g);return F===null||(0,c.default)(F).call(F,function(I){V=V.replace(I,I.replace(/<\/code><code>/g,`
|
||
`).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),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=i(98),C=u.__importDefault(i(415)),S=u.__importDefault(i(140)),w=function(E){u.__extends(_,E);function _(g){var b=this,x=m.default(`<div class="w-e-menu" data-title="\u5F85\u529E\u4E8B\u9879">
|
||
<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.eventHooks.enterDownEvents.push(_),E.txt.eventHooks.deleteUpEvents.push(b),E.txt.eventHooks.deleteDownEvents.push(g),E.txt.eventHooks.clickEvents.push(x)}o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.selectorValidator=void 0;var c=i(2),u=c.__importDefault(i(3)),m=i(6),h=i(7),y=c.__importDefault(i(130)),C={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function S(E){var _=E.toolbarSelector,g=u.default(_),b=E.textSelector,x=E.config,k=x.height,N=E.i18next,V=u.default("<div></div>"),F=u.default("<div></div>"),I,P,T=null;b==null?(P=g.children(),g.append(V).append(F),V.css("background-color",C.toolbarBgColor).css("border",C.border).css("border-bottom",C.toolbarBottomBorder),F.css("border",C.border).css("border-top","none").css("height",k+"px")):(g.append(V),T=u.default(b).children(),u.default(b).append(F),P=F.children()),I=u.default("<div></div>"),I.attr("contenteditable","true").css("width","100%").css("height","100%");var B,L=E.config.placeholder;L!==y.default.placeholder?B=u.default("<div>"+L+"</div>"):B=u.default("<div>"+N.t(L)+"</div>"),B.addClass("placeholder"),P&&P.length?(I.append(P),B.hide()):I.append(u.default(h.EMPTY_P)),T&&T.length&&(I.append(T),B.hide()),F.append(I),F.append(B),V.addClass("w-e-toolbar").css("z-index",E.zIndex.get("toolbar")),F.addClass("w-e-text-container"),F.css("z-index",E.zIndex.get()),I.addClass("w-e-text");var U=m.getRandom("toolbar-elem");V.attr("id",U);var H=m.getRandom("text-elem");I.attr("id",H);var R=F.getBoundingClientRect().height,z=I.getBoundingClientRect().height;R!==z&&I.css("min-height",R+"px"),E.$toolbarElem=V,E.$textContainerElem=F,E.$textElem=I,E.toolbarElemId=U,E.textElemId=H}o.default=S;function w(E){var _="data-we-id",g=/^wangEditor-\d+$/,b=E.textSelector,x=E.toolbarSelector,k={bar:u.default("<div></div>"),text:u.default("<div></div>")};if(x==null)throw new Error("\u9519\u8BEF\uFF1A\u521D\u59CB\u5316\u7F16\u8F91\u5668\u65F6\u5019\u672A\u4F20\u5165\u4EFB\u4F55\u53C2\u6570\uFF0C\u8BF7\u67E5\u9605\u6587\u6863");if(k.bar=u.default(x),!k.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+x);if(g.test(k.bar.attr(_)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668");if(b){if(k.text=u.default(b),!k.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+b);if(g.test(k.text.attr(_)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668")}k.bar.attr(_,E.id),k.text.attr(_,E.id),E.beforeDestroy(function(){k.bar.removeAttr(_),k.text.removeAttr(_)})}o.selectorValidator=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=c.__importDefault(i(3)),m=i(7);function h(y,C){var S=y.$textElem,w=S.children();if(!w||!w.length){S.append(u.default(m.EMPTY_P)),h(y);return}var E=w.last();if(C){var _=E.html().toLowerCase(),g=E.getNodeName();if(_!=="<br>"&&_!=="<br/>"||g!=="P"){S.append(u.default(m.EMPTY_P)),h(y);return}}y.selection.createRangeByElem(E,!1,!0),y.config.focus?y.selection.restoreSelection():y.selection.clearWindowSelectionRange()}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(_),C(_),S(_)}function y(_){_.txt.eventHooks.changeEvents.push(function(){var g=_.config.onchange;if(g){var b=_.txt.html()||"";_.isFocus=!0,g(b)}_.txt.togglePlaceholder()})}function C(_){_.isFocus=!1;function g(b){var x=b.target,k=m.default(x),N=_.$textElem,V=_.$toolbarElem,F=N.isContain(k),I=V.isContain(k),P=V.elems[0]==b.target;if(F)_.isFocus||E(_),_.isFocus=!0;else{if(I&&!P||!_.isFocus)return;w(_),_.isFocus=!1}}document.activeElement===_.$textElem.elems[0]&&_.config.focus&&(E(_),_.isFocus=!0),m.default(document).on("click",g),_.beforeDestroy(function(){m.default(document).off("click",g)})}function S(_){_.$textElem.on("compositionstart",function(){_.isComposing=!0,_.txt.togglePlaceholder()}).on("compositionend",function(){_.isComposing=!1,_.txt.togglePlaceholder()})}function w(_){var g,b=_.config,x=b.onblur,k=_.txt.html()||"";(0,c.default)(g=_.txt.eventHooks.onBlurEvents).call(g,function(N){return N()}),x(k)}function E(_){var g=_.config,b=g.onfocus,x=_.txt.html()||"";b(x)}o.default=h},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.config,h=m.lang,y=m.languages;if(u.i18next!=null){try{u.i18next.init({ns:"wangEditor",lng:h,defaultNS:"wangEditor",resources:y})}catch(C){throw new Error("i18next:"+C)}return}u.i18next={t:function(S){var w=S.split(".");return w[w.length-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.setUnFullScreen=o.setFullScreen=void 0;var u=i(2),m=u.__importDefault(i(3));i(421);var h="w-e-icon-fullscreen",y="w-e-icon-fullscreen_exit",C="w-e-full-screen-editor";o.setFullScreen=function(w){var E=m.default(w.toolbarSelector),_=w.$textContainerElem,g=w.$toolbarElem,b=(0,c.default)(g).call(g,"i."+h),x=w.config;b.removeClass(h),b.addClass(y),E.addClass(C),E.css("z-index",x.zIndexFullScreen);var k=g.getBoundingClientRect();_.css("height","calc(100% - "+k.height+"px)")},o.setUnFullScreen=function(w){var E=m.default(w.toolbarSelector),_=w.$textContainerElem,g=w.$toolbarElem,b=(0,c.default)(g).call(g,"i."+y),x=w.config;b.removeClass(y),b.addClass(h),E.removeClass(C),E.css("z-index","auto"),_.css("height",x.height+"px")};var S=function(E){if(!E.textSelector&&!!E.config.showFullScreen){var _=E.$toolbarElem,g=m.default(`<div class="w-e-menu" data-title="\u5168\u5C4F">
|
||
<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 l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(429)),m=c.__importDefault(i(433)),h=function(){function y(C){this.editor=C}return y.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new m.default(this.editor):this.cache=new u.default(this.editor),this.cache.observe()},y.prototype.save=function(C){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(C)},y.prototype.revoke=function(){var C;return(C=this.cache)===null||C===void 0?void 0:C.revoke()},y.prototype.restore=function(){var C;return(C=this.cache)===null||C===void 0?void 0:C.restore()},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(99)),m=c.__importDefault(i(431)),h=i(432),y=function(C){c.__extends(S,C);function S(w){var E=C.call(this,w.config.historyMaxSize)||this;return E.editor=w,E}return S.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},S.prototype.compile=function(w){return this.save(m.default(w)),this},S.prototype.revoke=function(){return C.prototype.revoke.call(this,function(w){h.revoke(w)})},S.prototype.restore=function(){return C.prototype.restore.call(this,function(w){h.restore(w)})},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}),o.CeilStack=void 0;var c=function(){function u(m){m===void 0&&(m=0),this.data=[],this.max=0,this.reset=!1,m=Math.abs(m),m&&(this.max=m)}return u.prototype.resetMax=function(m){m=Math.abs(m),!this.reset&&!isNaN(m)&&(this.max=m,this.reset=!0)},(0,d.default)(u.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),u.prototype.instack=function(m){return this.data.unshift(m),this.max&&this.size>this.max&&(this.data.length=this.max),this},u.prototype.outstack=function(){return this.data.shift()},u.prototype.clear=function(){return this.data.length=0,this},u}();o.CeilStack=c},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}),o.compliePosition=o.complieNodes=o.compileValue=o.compileType=void 0;var m=i(6);function h(g){switch(g){case"childList":return"node";case"attributes":return"attr";default:return"text"}}o.compileType=h;function y(g){switch(g.type){case"attributes":return g.target.getAttribute(g.attributeName)||"";case"characterData":return g.target.textContent;default:return""}}o.compileValue=y;function C(g){var b={};return g.addedNodes.length&&(b.add=m.toArray(g.addedNodes)),g.removedNodes.length&&(b.remove=m.toArray(g.removedNodes)),b}o.complieNodes=C;function S(g){var b;return g.previousSibling?b={type:"before",target:g.previousSibling}:g.nextSibling?b={type:"after",target:g.nextSibling}:b={type:"parent",target:g.target},b}o.compliePosition=S;var w=["UL","OL","H1","H2","H3","H4","H5","H6"];function E(g){var b=[],x=!1,k=[];return(0,c.default)(g).call(g,function(N,V){var F={type:h(N.type),target:N.target,attr:N.attributeName||"",value:y(N)||"",oldValue:N.oldValue||"",nodes:C(N),position:S(N)};if(b.push(F),!!m.UA.isFirefox){if(x&&N.addedNodes.length&&N.addedNodes[0].nodeType==1){var I=N.addedNodes[0],P={type:"node",target:I,attr:"",value:"",oldValue:"",nodes:{add:[x]},position:{type:"parent",target:I}};(0,u.default)(w).call(w,I.nodeName)!=-1?(P.nodes.add=m.toArray(I.childNodes),b.push(P)):x.nodeType==3?(_(I,k)&&(P.nodes.add=m.toArray(I.childNodes)),b.push(P)):(0,u.default)(w).call(w,N.target.nodeName)==-1&&_(I,k)&&(P.nodes.add=m.toArray(I.childNodes),b.push(P))}F.type=="node"&&N.removedNodes.length==1?(x=N.removedNodes[0],k.push(x)):(x=!1,k.length=0)}}),b}o.default=E;function _(g,b){for(var x=0,k=b.length-1;k>0&&g.contains(b[k]);k--)x++;return x}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(94));(0,d.default)(o,"__esModule",{value:!0}),o.restore=o.revoke=void 0;function m(k,N){var V=k.position.target;switch(k.position.type){case"before":V.nextSibling?(V=V.nextSibling,(0,c.default)(N).call(N,function(F){k.target.insertBefore(F,V)})):(0,c.default)(N).call(N,function(F){k.target.appendChild(F)});break;case"after":(0,c.default)(N).call(N,function(F){k.target.insertBefore(F,V)});break;default:(0,c.default)(N).call(N,function(F){V.appendChild(F)});break}}function h(k){for(var N=0,V=(0,u.default)(k.nodes);N<V.length;N++){var F=V[N],I=F[0],P=F[1];switch(I){case"add":(0,c.default)(P).call(P,function(T){k.target.removeChild(T)});break;default:{m(k,P);break}}}}function y(k){var N=k.target;k.oldValue==null?N.removeAttribute(k.attr):N.setAttribute(k.attr,k.oldValue)}function C(k){k.target.textContent=k.oldValue}var S={node:h,text:C,attr:y};function w(k){for(var N=k.length-1;N>-1;N--){var V=k[N];S[V.type](V)}}o.revoke=w;function E(k){for(var N=0,V=(0,u.default)(k.nodes);N<V.length;N++){var F=V[N],I=F[0],P=F[1];switch(I){case"add":{m(k,P);break}default:{(0,c.default)(P).call(P,function(T){T.parentNode.removeChild(T)});break}}}}function _(k){k.target.textContent=k.value}function g(k){k.target.setAttribute(k.attr,k.value)}var b={node:E,text:_,attr:g};function x(k){for(var N=0,V=k;N<V.length;N++){var F=V[N];b[F.type](F)}}o.restore=x},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(434),u=function(){function m(h){this.editor=h,this.data=new c.TailChain}return m.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},m.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},m.prototype.revoke=function(){var h=this.data.prev();return h?(this.editor.$textElem.html(h),!0):!1},m.prototype.restore=function(){var h=this.data.next();return h?(this.editor.$textElem.html(h),!0):!1},m}();o.default=u},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(91));(0,d.default)(o,"__esModule",{value:!0}),o.TailChain=void 0;var u=function(){function m(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return m.prototype.resetMax=function(h){h=Math.abs(h),h&&(this.max=h)},(0,d.default)(m.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),m.prototype.insertLast=function(h){if(this.isRe){var y;(0,c.default)(y=this.data).call(y,this.point+1),this.isRe=!1}for(this.data.push(h);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},m.prototype.current=function(){return this.data[this.point]},m.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},m.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},m}();o.TailChain=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(99)),m=function(h){c.__extends(y,h);function y(C){var S=h.call(this,C.config.historyMaxSize)||this;return S.editor=C,S.last=0,S.target=C.$textElem.elems[0],S}return y.prototype.observe=function(){var C=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){C.last=C.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},y.prototype.save=function(){return h.prototype.save.call(this,[this.last,this.target.scrollTop]),this},y.prototype.revoke=function(){var C=this;return h.prototype.revoke.call(this,function(S){C.target.scrollTop=S[0]})},y.prototype.restore=function(){var C=this;return h.prototype.restore.call(this,function(S){C.target.scrollTop=S[1]})},y}(u.default);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(99)),m=c.__importDefault(i(3)),h=i(6);function y(S){return{start:[S.startContainer,S.startOffset],end:[S.endContainer,S.endOffset],root:S.commonAncestorContainer,collapsed:S.collapsed}}var C=function(S){c.__extends(w,S);function w(E){var _=S.call(this,E.config.historyMaxSize)||this;return _.editor=E,_.lastRange=y(document.createRange()),_.root=E.$textElem.elems[0],_.updateLastRange=h.debounce(function(){_.lastRange=y(_.rangeHandle)},E.config.onchangeTimeout),_}return(0,d.default)(w.prototype,"rangeHandle",{get:function(){var _=document.getSelection();return _&&_.rangeCount?_.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),w.prototype.observe=function(){var E=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function _(){var b=E.rangeHandle;(E.root===b.commonAncestorContainer||E.root.contains(b.commonAncestorContainer))&&(E.editor.isComposing||E.updateLastRange())}function g(b){(b.key=="Backspace"||b.key=="Delete")&&E.updateLastRange()}m.default(document).on("selectionchange",_),this.editor.beforeDestroy(function(){m.default(document).off("selectionchange",_)}),E.editor.$textElem.on("keydown",g)},w.prototype.save=function(){var E=y(this.rangeHandle);return S.prototype.save.call(this,[this.lastRange,E]),this.lastRange=E,this},w.prototype.set=function(E){try{if(E){var _=this.rangeHandle;return _.setStart.apply(_,E.start),_.setEnd.apply(_,E.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},w.prototype.revoke=function(){var E=this;return S.prototype.revoke.call(this,function(_){E.set(_[0])})},w.prototype.restore=function(){var E=this;return S.prototype.restore.call(this,function(_){E.set(_[1])})},w}(u.default);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});var u=i(2),m=u.__importDefault(i(3));i(438);function h(y){var C=!1,S,w;y.txt.eventHooks.changeEvents.push(function(){C&&(0,c.default)(S).call(S,".w-e-content-preview").html(y.$textElem.html())});function E(){if(!C){y.$textElem.hide();var g=y.zIndex.get("textContainer"),b=y.txt.html();S=m.default('<div class="w-e-content-mantle" style="z-index:'+g+`">
|
||
<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")}function i(C,S){if(!C)return/(?:)/;var w="";return C instanceof RegExp?(C.ignoreCase&&(w="i"),C.unicode&&(w+="u"),C=C.source):C=String(C),new RegExp((S===!1?"":"^")+"(?:"+C+")",w)}function l(C){if(!C)return null;if(C.apply)return C;if(typeof C=="string")return C.replace(/\./g," ");for(var S=[],w=0;w<C.length;w++)S.push(C[w]&&C[w].replace(/\./g," "));return S}function d(C,S){(C.next||C.push)&&o(S,C.next||C.push),this.regex=i(C.regex),this.token=l(C.token),this.data=C}function c(C,S){return function(w,E){if(E.pending){var _=E.pending.shift();return E.pending.length==0&&(E.pending=null),w.pos+=_.text.length,_.token}if(E.local)if(E.local.end&&w.match(E.local.end)){var g=E.local.endToken||null;return E.local=E.localState=null,g}else{var g=E.local.mode.token(w,E.localState),b;return E.local.endScan&&(b=E.local.endScan.exec(w.current()))&&(w.pos=w.start+b.index),g}for(var x=C[E.state],k=0;k<x.length;k++){var N=x[k],V=(!N.data.sol||w.sol())&&w.match(N.regex);if(V){N.data.next?E.state=N.data.next:N.data.push?((E.stack||(E.stack=[])).push(E.state),E.state=N.data.push):N.data.pop&&E.stack&&E.stack.length&&(E.state=E.stack.pop()),N.data.mode&&m(S,E,N.data.mode,N.token),N.data.indent&&E.indent.push(w.indentation()+S.indentUnit),N.data.dedent&&E.indent.pop();var F=N.token;if(F&&F.apply&&(F=F(V)),V.length>2&&N.token&&typeof N.token!="string"){for(var I=2;I<V.length;I++)V[I]&&(E.pending||(E.pending=[])).push({text:V[I],token:N.token[I-1]});return w.backUp(V[0].length-(V[1]?V[1].length:0)),F[0]}else return F&&F.join?F[0]:F}}return w.next(),null}}function u(C,S){if(C===S)return!0;if(!C||typeof C!="object"||!S||typeof S!="object")return!1;var w=0;for(var E in C)if(C.hasOwnProperty(E)){if(!S.hasOwnProperty(E)||!u(C[E],S[E]))return!1;w++}for(var E in S)S.hasOwnProperty(E)&&w--;return w==0}function m(C,S,w,E){var _;if(w.persistent)for(var g=S.persistentStates;g&&!_;g=g.next)(w.spec?u(w.spec,g.spec):w.mode==g.mode)&&(_=g);var b=_?_.mode:w.mode||r.getMode(C,w.spec),x=_?_.state:r.startState(b);w.persistent&&!_&&(S.persistentStates={mode:b,spec:w.spec,state:x,next:S.persistentStates}),S.localState=x,S.local={mode:b,end:w.end&&i(w.end),endScan:w.end&&w.forceEnd!==!1&&i(w.end,!1),endToken:E&&E.join?E[E.length-1]:E}}function h(C,S){for(var w=0;w<S.length;w++)if(S[w]===C)return!0}function y(C,S){return function(w,E,_){if(w.local&&w.local.mode.indent)return w.local.mode.indent(w.localState,E,_);if(w.indent==null||w.local||S.dontIndentStates&&h(w.state,S.dontIndentStates)>-1)return r.Pass;var g=w.indent.length-1,b=C[w.state];e:for(;;){for(var x=0;x<b.length;x++){var k=b[x];if(k.data.dedent&&k.data.dedentIfLineStart!==!1){var N=k.regex.exec(E);if(N&&N[0]){g--,(k.next||k.push)&&(b=C[k.next||k.push]),E=E.slice(N[0].length);continue e}}}break}return g<0?0:w.indent[g]}}})})();const yj="",bj="",wj="",Cj="",_j="";Si.defineSimpleMode("fcComputedMode",{start:[{regex:/[a-zA-Z_]\w*/,token:"keyword"},{regex:/[a-z]+/,token:"def"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+]?(\d*\.)?\d+/,token:"number"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/[\(\),]/,token:"bracket"},{regex:/==/,token:"operator"},{regex:/=/,token:"operator"},{regex:/[!<>]=?/,token:"operator"},{regex:/&&|\|\|/,token:"operator"},{regex:/[\+\-\*\%\/]/,token:"builtin"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}]});const xt=(e,t,r)=>{je.component(e,r||t),hn.component(e,t)};je.component("draggable",Lr),je.component("DragTool",_g),je.component("DragBox",Sg),je.component("Validate",LO),je.component("Struct",Fm),je.component("HtmlEditor",JN),je.component("FnEditor",xi),je.component("ComputedConfig",Eh),je.component("Required",HO),je.component("TableOptions",Nm),je.component("TreeOptions",tV),je.component("TableFormColumn",Ng),je.component("TableFormColumn2",Ng),je.component("EventConfig",Sh),je.component("FetchConfig",dD),je.component("TableColumnConfig",bD),je.component("TableButtonConfig",kD),je.component("SizeInput",Yr),je.component("PatternInput",bc),je.component("StyleConfig",Rm),je.component("GlobalFetchConfig",Tm),je.component("GlobalFetchSelect",HD),je.component("GlobalEventConfig",km),je.component("GlobalClassConfig",$m),je.component("GlobalClassSelect",QD),je.component("GlobalVariableConfig",Im),je.component("FetchTable",nO),je.component("VariableConfig",jo),je.component("ColorInput",Qr),je.component("ConfigItem",Rn),je.component("ConfigTitle",Sm),je.component("FieldInput",eD),je.component("PromptInput",iD),je.component("ValueInput",yl),je.component("StepFormItem",JV),je.component("FcRow",NB),je.component("FnConfig",ID),je.component("FnInput",Ag),je.component("RuleSelect",wc),je.component("HideConfig",VB),je.component("SpanInput",$B),je.component("LanguageInput",su),xt("FcSlot",wO,CO),xt("FcJson",_O,EO),xt("DataTable",Eg),xt("FcEditor",hL),xt("fcInlineForm",xg),xt("FcCell",EB,xB),xt("TableForm",FV,Tg),xt("TableFormPro",jV,Tg),xt("StepForm",oV,dV),xt("FcValue",bO,mO),xt("FcTable",uO,sO),xt("NestedTableForm",SV,_V),xt("InfiniteTableForm",RV,OV),xt("FcDialog",Dg,rB),xt("FcDrawer",bB,hB),xt("AudioBox",KB),xt("VideoBox",XB),xt("BarCodeBox",$3),xt("IframeBox",P3),xt("QrCodeBox",H3),xt("SignaturePad",HP),xt("FcEcharts",aL),xt("FcTitle",X3),xt("FcCity",Y3),xt("FcId",zB),xt("FcMarkdown",$P),xt("fcDataSelect",nL,JP);const mL=function(e){(Array.isArray(e)?e:[e]).forEach(r=>{Ht[r.name]=r.handle,gc[r.name]=r.example,gl.value.formula[r.name]=r.info,hh.forEach(o=>{o.key===r.menu&&o.children.push(r.name),hn.setFormula(r.name,r.handle),je.setFormula(r.name,r.handle)})})},gL=function(e){(Array.isArray(e)?e:[e]).forEach(r=>{vc[r.name]=r.handle,gh[r.name]=r.rule,gl.value.behavior[r.name]={info:r.info,name:r.label},mh.forEach(o=>{o.key===r.menu&&o.children.push(r.name)})})},Fv=function(e){e.component("FcDesigner",$t)};$t.install=Fv,$t.makeOptionsRule=Fi,$t.formCreate=hn,$t.designerForm=je,$t.component=xt,$t.setFormula=mL,$t.setBehavior=gL,$t.useLocale=wh,$t.copyTextToClipboard=si,$t.getInjectArg=nn,$t.localeOptions=it,$t.localeProps=Be,$t.makeRequiredRule=qs,$t.makeTreeOptions=Yn,$t.makeTreeOptionsRule=Or,$t.makeTitleRule=ed,$t.makeDataRule=Pn,$t.toJSON=En,$t.loadjs=on,$t.t=vl,$t.utils={copyTextToClipboard:si,getInjectArg:nn,localeOptions:it,localeProps:Be,makeTitleRule:ed,makeOptionsRule:Fi,makeRequiredRule:qs,makeTreeOptions:Yn,makeTreeOptionsRule:Or,makeDataRule:Pn,toJSON:En};const Mv="3.2.22";J0(Mv,hn.version)===1&&console.error("Please use FormCreate version "+Mv+" or greater, see https://github.com/xaboy/form-create."),Ct.copyTextToClipboard=si,Ct.default=$t,Ct.designerForm=je,Ct.formCreate=hn,Ct.getInjectArg=nn,Ct.install=Fv,Ct.loadjs=on,Ct.localeOptions=it,Ct.localeProps=Be,Ct.makeDataRule=Pn,Ct.makeOptionsRule=Fi,Ct.makeRequiredRule=qs,Ct.makeTitleRule=ed,Ct.makeTreeOptions=Yn,Ct.makeTreeOptionsRule=Or,Ct.t=vl,Ct.toJSON=En,Object.defineProperties(Ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|