index.es-eda87b6c.js 609 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. import{du as FormCreate,d as defineComponent,bV as toRefs,al as getCurrentInstance,bW as provide,r as ref,b as computed,f as reactive,aP as watch,cy as markRaw,h,am as nextTick,aj as resolveComponent,i as createVNode,ai as mergeProps,a as unref,y as isRef,Z as TransitionGroup,o as openBlock,l as createBlock,w as withCtx,c as createElementBlock,F as Fragment,k as renderList,g as createBaseVNode,t as toDisplayString,W as normalizeClass,aF as renderSlot,j as createTextVNode,a2 as createCommentVNode,C as withDirectives,a1 as vShow,ar as normalizeStyle,aU as inject,aO as withModifiers,ac as pushScopeId,ad as popScopeId,__tla as __tla_0}from"./index-390579cd.js";let FcDesigner,__tla=Promise.all([(()=>{try{return __tla_0}catch{}})()]).then(async()=>{function form({t:r}){return[{type:"radio",field:"labelPosition",value:"left",title:r("form.labelPosition"),options:[{value:"right",label:"right"},{value:"left",label:"left"},{value:"top",label:"top"}]},{type:"radio",field:"size",value:"small",title:r("form.size"),options:[{value:"large",label:"large"},{value:"default",label:"default"},{value:"small",label:"small"}]},{type:"input",field:"labelWidth",value:"125px",title:r("form.labelWidth")},{type:"switch",field:"hideRequiredAsterisk",value:!1,title:r("form.hideRequiredAsterisk")},{type:"switch",field:"showMessage",value:!0,title:r("form.showMessage")},{type:"switch",field:"inlineMessage",value:!1,title:r("form.inlineMessage")},{type:"switch",field:"formCreateSubmitBtn",value:!0,title:r("form.submitBtn")},{type:"switch",field:"formCreateResetBtn",value:!1,title:r("form.resetBtn")}]}(function(){try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('._fc-designer{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-m .form-create ._fc-l-item{background:#2e73ff;height:10px;overflow:hidden;transition:all .3s ease;width:100%}._fc-l,._fc-m,._fc-r{border-top:1px solid #ececec;box-sizing:border-box}._fc-l-group{padding:0 12px}._fc-l-title{font-size:14px;font-weight:600;margin:18px 0 5px}._fc-l-item{background:#fff;color:#000;cursor:pointer;display:inline-block;height:70px;line-height:1;min-width:70px;text-align:center;transition:all .2s ease;width:33.33%}._fc-l-item i{display:inline-block;font-size:21px}._fc-l-item ._fc-l-name{font-size:12px}._fc-l-item ._fc-l-icon{padding:10px 5px 12px}._fc-l-item:hover{background:#2e73ff;color:#fff}._fc-m-tools{align-items:center;border:1px solid #ececec;border-top:0;display:flex;height:40px;justify-content:flex-end}._fc-m-tools button.el-button{align-items:center;display:flex;padding:5px 14px}._fc-m-tools .fc-icon{font-size:14px;margin-right:2px}._fc-r .el-tabs__nav-wrap:after{background-color:#ececec;height:1px}._fc-r ._fc-r-tabs{border-bottom:1px solid #ececec;display:flex;padding:0}._fc-r ._fc-r-tab{box-sizing:border-box;color:#303133;display:inline-block;flex:1;font-size:14px;font-weight:600;height:40px;line-height:40px;list-style:none;position:relative;text-align:center}._fc-r ._fc-r-tab.active{border-bottom:2px solid #409eff;color:#409eff}.drag-box{min-height:60px;width:100%}._fc-m-drag{box-sizing:border-box;overflow:auto;padding:2px}._fc-m-drag,.draggable-drag{background:#fff;height:100%;position:relative}._fc-m-drag>form,._fc-m-drag>form>.el-row{height:100%}.drag-tool{word-wrap:break-word;box-sizing:border-box;min-height:20px;outline:1px dashed #2e73ff;overflow:hidden;padding:2px;position:relative;word-break:break-all}.drag-tool .drag-tool{margin:5px}.drag-tool+.drag-tool{margin-top:5px}.drag-tool.active{outline:2px solid #2e73ff}.drag-tool.active>div>.drag-btn{display:flex}.drag-tool .drag-btn{display:none}.drag-r{bottom:2px;right:2px}.drag-l,.drag-r{position:absolute;z-index:2}.drag-l{left:0;top:0}.drag-btn{background-color:#2e73ff;color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}.drag-btn+.drag-btn{margin-left:2px}.drag-btn-danger{background-color:#ff2e2e}.drag-btn i{font-size:13px}.drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.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}._fc_struct{width:100%}._fc_struct .CodeMirror{height:450px}._fc_struct .CodeMirror-line{font-size:13px!important;line-height:16px!important}.CodeMirror-lint-tooltip{z-index:1!important}._fc_struct .el-dialog__body{padding:0 20px}._fc_err{color:red;float:left;text-align:left;width:65%}._fc_fetch .el-form-item__label{display:inline-block;float:left;padding-right:5px;text-align:right}._fc_fetch{background-color:#bfdaf7;padding:10px}._fc-validate .form-create .el-form-item{margin-bottom:22px!important}._fc-validate .append-msg{cursor:pointer}._fc-validate .el-input-group__append{padding:0 10px}._fc-required{align-items:center;display:flex}._fc-required .el-input{margin-left:15px}._fc-required .el-switch{height:28px}._fc_table_opt[data-v-ed69f8be]{width:100%}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAABVIAAsAAAAAIgwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY95kmJY21hcAAAAYAAAAEVAAADLrSidCRnbHlmAAACmAAAD74AABiY14gyPGhlYWQAABJYAAAALgAAADYcO5CZaGhlYQAAEogAAAAeAAAAJAfeBAJobXR4AAASqAAAABIAAAB8fGIAAGxvY2EAABK8AAAAQAAAAEBgbGZebWF4cAAAEvwAAAAdAAAAIAEzALZuYW1lAAATHAAAAUUAAAJtPlT+fXBvc3QAABRkAAAA4gAAAULN3M8heJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWacwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeFzyfwtzwv4EhhrmBoQEozAiSAwDydAzseJzt0kdOQ0EQhOH/OZFMTib5BCw4GpYRRgKZHC0yB2HFleoYUONiwSEY6bM0I3U/ubuAJlC3XWtA9UVFOZ9+rcbvdabH7w2ufJ9jkhot9XSggU400sf3N2hffR3qWEM9lvufU7lmgSVWWGPP9w022WKbHbruXXPfJi0m3HfKX5qhzawrKuZdtei6ZVeuunadjpu1+D/t8lMd/d66Zfrh2aJeeMqoH543OghPHh2Gd4AGMe5zHCUROglvCA2jJESnUZKjs/D+0Hl4k+givFN0Gd4uuoqSKF2HN45uovwz3YZTgO7CeUD3UVKph3BG0CicFvQYzg16CicIPYezhF7CqUKv4Xyht3DS0Hs4c+gj6PwAdVJxugAAAHicdTgLkBTlmf/3/9OP7Z7u6d7pnp6Z3ZnZmWZ7WJbdHXdeHggcLN4JaBFQHhE5SFCIRDfokSzxcWpSxGARAaGwSKQOAz7iXa4K75LgA59V1J13VrBMQsRIikqZWPjgEqty5yXd3Pd3z8wuSmp3vu/r7//+R3/vvwkQcuE8+w5TiEsIzIXmMJSLOkh5cGz85WF2i+kicxjmAD2z6EZKb1wULEQMM8vwufnWtfVnF62ndP2iZ2vLLMOCk3T12NhqgNVjM69M/ftVtzpDdeAcCpcNaDMyTxNCGOHgGfoA0UieDOLerV2L4XbCXBjNU0unpWFaa4A7F2peuYrDOtCng59u2cfYvi1wWYj91/OLr118RV/fFRGCs3sq9Xplz/VbKZ2gO+i+LVv2MrZ3y5Z9t+f7+uYsXr54TqHAUfCCd8udt3jsa6s+v5UfRwnPtI3+iThkJplD5pNFZBm5jmwiW8l9eEKuEyvlFPNgm5YoFVErJp7W4aoxW0c3uf7w15+HHFiiWyx5c1CD1aKNf4Lt2m7drRcdt+xKbtMpS81GShLxD6enbEsSB6HuVBvNuVD3ysMwCHZ1lD/h23tlF/4p4TDbgIH+SqXfPzatAlCZ9sYbyATboEsjHLxeGGBwpDuVNoLT3Q6kDfCC0/j72/n5+WAuKZnLzdKSkXzhvXwOQOxKqDpTLLOwslCxRYGCKMSVSlOJC7IoiIrVpH/CRe8zUgwq/cH2aE96NeKZyPePRpvCP6BAbEbuadxuRTKVMZZ3p6av/GPPE0/0vFKpvDKxYsUE5JKmqopUkhU7l1BeWQ4ii4sJgcV2xhjTDI2J6Iyx0Abj9CP0iavIF8hdqHe35NUaoR/WW95pc79soDMMAnLqOFLkxtEBuGi1iDqrc+2VGuhLsyEak/rrtcZoCm0ocqPUvJIomTpf3SmNgFdrNkYLkNLpCK4pWgWcpQNLP6/phvq8ZgIkVf9khHt6AAy1p38EYKSfVkIcXMkFYbncDdAtv6emKLW63isMAwyWgp2VxSNgpGUnlQFBFTQzryjbHSe7oGdIFCElN+W0IW0XRVmDm4y0ilucjXY6q5uQ0XTc5ky021l3OPghX0ndojqqohrIuw2NcfITd3jYfVHTTeVFNZlUg48Fqj+v7MqMpbPZalcPFaWqzIyCvFM0jS5ChI6eE6SA3v5X5JpWDE7xZIaPbS/nCmZuSbRSs2G0Ua95Erp954FxF0Vnx2GnalopZJrM9M+UawC1Mi2FGLjDnDFsjmkJ8ea9qmGoexXTVDrUIcUwlOB9/nibkTLohzh/6jr+N6cswN39PZQyVE3/Nhg2LqQl0HCcQqcMTvClYVYn32wO3zdJhvBd0RPM6P3qJvqMUDSL/RhpeUgAS0DJdqsuegXmoQJtsmo6D5BP+/udQsGhm/39dHOw/1SXbTCZfcAouKokbUT9pmS24hT9sOD4+6MZdLNTaPj7X/8EB5NKLDjPgEnfkG1DZhs/IaG/XwjYNxglKmYdl4ygaVDjqPAw2ZWj5BumxuZf4FPy2Fux2FuPRfDB47HY8QcjOL6X0r3jCIXd46swG25dxeHtNBIWTh9+7K2RjvCDx5ewh8a/8hBjD31ly57LWsIcctXRUH/3M4a6W0ZIP0aMJGLoYJKaBwhQc/Mo5jnUah4KNE/FBGY0UcKjpqpOqtkYQbmGN0K9UoKWdEgVUM/oJ/Mg5dCXTefAAdPRs2rSoMVthirI0zJPXq0OZNS0rBp00ZOZkq6Z23JiMimmbRaLCaIa60/cr6jKyTViWlxzUhaBCQfUafE4HE8sSyvXXKPIoj6UOXKbMZTKFFjuQCojyYKlHsix4tCQddvhzKAB4iwGIAjmf+n3KrYw7QVVfbm/S1WFB7t/HFdj6+QZRAzfexM9F8aJS6pkNplHSLJVBHh+5+HhRIHDMw96k1cWzKrpYLav1nnG57BaBwQm/iR8PEtn9Q0O9vknCoOYIAqKBqApdJaqaar/bvXV7c81luIPCpsffXTz5u3b6TkU8k/wKXRWYXAUhf0TXJjOwqnbghvgyMwdf1iR//YfVhSCY014uvlEs22zzfQYetZ09PimaY02TQeDs4aeLZXQRKLlpAQxB8W6V5JsrG2YOD04eM0oXCNZCWmiSxFU9jVZTsBrGX83jAJk6KEMxChZH/wwk4Fr10sJS9odA8Z2y5akHoPM449nMi9lUPClDG4vtfLM70g36SUeuYwsIMvJF3n8OVyFUzOM0Mo+VRPaldRkKTykx1N8AXj7wQsBz+E89dthGm80q1F+d6XouS3gMmmgkEjA5TP88zMuB8RU988n+dGSz8HnIyJ4+x5RnCPIALLwR1GWxbMRffYv0PS3ec2zfb+1IENcxWX8/8Pl6Hr/ENJURNo/CG8KQoXGhBvEGFuOM3v4KnlR3imLPdFayNklC72CHIJ2Tr6OngpzFO+KLg/zVNvRJvMU1j6MLRDLngCNPFgS15FXYxc99KVyuZR/nEM65h8Pf24+0RVL+O/kE0kwYHGXkewKftxldkkXYJGCCSr4iWJ0yfQXkxNTuap/PEfdXFKxdf+dXDIRx3kUi0jwTBcWcxPz+t8o+KwEzypU7jJDm1/4X3aYpUkO68oCsgR7qLVkI76gWHbRql53Y5rDbZbi6cFDgE+SWK6mmpWaN5c6aNBmo8wlxWiQ8YoyTEVMfui8WLg7hPMZAt7J5NnGe2LrGq9C9wMrFkJ6QfMuA48vCArIfYdif5/TleJIjgmbBitJOm/Rtv9esby5kt7yhezMLPRM721w0Du9ZxfH2ZmZf2zhpS2+CLHU3drDkDza96Ule5TYt8aGqBCz4lklPZBYVE2O2cPVAYOymFu5NX7v3OvzV191frc4DsNWT8/0HsjezXFv7xURmmP19pZ7e/dGqFWnxlt1auDS9meuyXuYuum22p08iO4oq2RdN+sf4pBu8L9LNx680+wx79RMU4Oq1o02EuiHHYn1WXeW/134l+BkKFBBUfwnF9UkEy1YJjU8hc6sPB2dS2s845fDGiSF9QgJTIFYJlNSFHalMFopGbtjbW103R3f4qgycsdYu+Jgkfo5pPuSDIE9wtscM8sB/Sm0xTkaqYzW2vJYrY4Ztm3g72ZT+5ifF0GrV9xMX0CtdWO8zMC8bBbN/uJkaS+bNYc3fXaksGTYAJr8kPUTdMIfp0/JcYC47K9EfEYz4nFD+yBucJ4Rpw/6p6k3gqNHIil6g5Xnm/vHOKRXTdKt2F1BnyJdaDeutct4lUhZUtFr1hrJKlIup4odyu1QEsqhgZF6jd5cLPoPF8FMIHEzYtomft/GHRH6VJiQ9fgFEhJx/WLkwyjCdu+zqdXrNSarV6Qhr/GZ6uU0eb5NWTz3hq0x2tmzphYtOliaWrSCgWeOiUmRyfLrsim8hhktqVDs3WZ0ShxtlgbrF9etH504IYHAZEd5W6LCKcQKSJS2au4O+jJSGupyALPIleiDksMrabJZ5oWVtW5d4b3AbHjMwnYfT4/Z3+7HMXy/1OxWHZk6BueXLFm/3rr66nXrXtyf8wD6e/bnXKBut7pfUfar8MnDvdO8LAIAz1AeVvCfzmvM6veCQ7MQwhlwc76fm4YTKcu5/jOKQiVFmQ9e9hLsyXsl7z0NUsIO4krsoNaSm8lX8Vb5A7RGGDTtyoVW6e/cUTBbcm6K91UW3g0jMXRhQZRat6LwTpMDkXt9lCawIk6h+ztTeaW8NC1hf9K6FIVn4DfXcHt7ihDeSl8FzUbj7dJ0tKAngm5rE9yau0T/yxOKriu78MnWgB4SVU6qExq+m38cjvLBYClnTaFhaFd7knoJ6mQl3O0VvqZeSfOxDYqGHqfQ4xP8CA9Fuw2I0ZwJfjrw1/JZym7OOTL1iAd0S8f/dXzY1u6M0PqLmKde7eGyIx2QfhW3xiUocBNGfvll+ptWjHvYrV/Oo2m0HeWT8d7h9Q+HFrNE9hniR3Sv6/q3utBtXIKi0zFN11z3dxE6FyF6vA6QTWj+WeAE3na0iPEcengJ/4OPPk20zv3P9J0w/m8gt5C7yXf4bW8ub6jCaxs6UKoZlpJU+7NFXQj5xXo1unijF+Bj635XLdpRvmgvINnFetHmA5zX8KZ4EnefeqssTPKESX/mTBt+DU8mbDsRrE7Y1OqVBZjgjVGwA3ul7wW/TNjBe45hAVjGF7mYE5dxMUxQ08NJv0xYELwLaTtkUCt4Uxb+h89HENyLrRL2F7P582y6Z3KEDuMKG/gCGxLW7Zx5OQf7LMPZx0e6bbt7A195oRTHzXFrDpxfOOGUuBW80pkDfovAXT7ucAmRO/W8gJHfJGNkKVlDvoSxT8BFrUaa431LDj71HUmwedczB4otXEVBwOov8EtWGP/1MIrtkC5PoWsNoRO49amhjnWaVTaEBTf4WXfWXJkuAhTTdANi1uf/FhsAGDKz3Rv9nXTcf4jeFphV1QDo4fDfOMhyIP5rmzSCn1V5oCCpP1HlMcdHmE5/kuZlMR1BKDn+ydZWlWyhYemmqVsR3LjR/w84uFHXeiChZeEinNUPmjZGOl4/Wvii+3IOK36D9ybhh8PwRpzU6TCtzaWjeYpFDaZ2JMlWwuS6CK/M7e5i8cjX7//639VG1yNaWwM2Gvxmsis5tJe/AYIkm3pt9vcO1yCcEU4cm38HPG4q73LZdxUzOIO6RTWSsKe/8Ge2lcWITfpJncwJv7OUvUHA2xe/EEZh1DTxfshtFH2NCCMiGX3eaj875SZaEu/Nn+bTY0sTzo60/rnnroNiBv4TFb0yyMhCXpRCsBt9P8cvHzmMg90ztfRCR585ayqT7rrRBOPGIf/nmWIxQweH/I9EGQVggksEO6Y8fK/JtdK8SKD1feCCz+5j/I278A1NTAdmGbsxdp9/GM43/cN0j3/LOPXGkVobyf+ZPYJ6sXjf1s+/BDS4Wkz8lSTsbEVHcMPg8Moct9ONB58wmd2F1hCWgbxAhmWCwKiNhL8lfAZLp7/HoP0VY48IMQG2dnUFO5XYV0F+6il+7TqdsKzEabl15l+zR1kf+tL0T/kRt0VYE8v1qYXW4RWRkqPnBOHc0aPvx2IfKEl9WzLXDRN6skN1s77W8PtHj54LbtKT26LR3jbR6snupS+F3336oq/LU3rqzkmQ4MeoNSg5jN769qOH3hZib31//iqAVfMXrKR01V8XBwcXDA7Sl+Q3Nt30piy/edOmNx6m1y9cuAZgzcKF1y+FoYVD+E/4t/4j7FfsBjI79EGecurV0QZ2eCXs9LBdsl1MRYnw62cqzDiYkpDktkEr1KtoBSRr7NRBUb+wWhaFe2Jq7B5BklcFmvSIIDwiaciWkB1vsUETD8bggbbMwVjs4KVlYgdFDYJV0QD5fyJtOt8AAHicY2BkYGAAYu+uxoJ4fpuvDNwsDCBwp0/ND0H/X8LCwBwD5HIwMIFEAQ3oCUMAAHicY2BkYGBu+N/AEMOSxAAELAwMjAyoQB4AULcC6gAAeJxjYWBgYKEFTiKsBgAs4gDfAAAAAAAAADwAhgFIAfwCdALAAxQDkAPuBDAExgUqBcgGCgZeBqQG8gdKB7IIlgjyCbAKWAqwCyQLPAt+C7wL9gxMeJxjYGRgYJBnWMXAxQACTEDMBWb/B/MZAB0PAeoAAAB4nGWPTU7DMBCFX/oHpBKqqGCH5AViASj9EatuWFRq911036ZOmyqJI8et1ANwHo7ACTgC3IA78EgnmzaWx9+8eWNPANzgBx6O3y33kT1cMjtyDRe4F65TfxBukF+Em2jjVbhF/U3YxzOmwm10YXmD17hi9oR3YQ8dfAjXcI1P4Tr1L+EG+Vu4iTv8CrfQ8erCPuZeV7iNRy/2x1YvnF6p5UHFockikzm/gple75KFrdLqnGtbxCZTg6BfSVOdaVvdU+zXQ+ciFVmTqgmrOkmMyq3Z6tAFG+fyUa8XiR6EJuVYY/62xgKOcQWFJQ6MMUIYZIjK6Og7VWb0r7FDwl57Vj3N53RbFNT/c4UBAvTPXFO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxtT9lywyAQQ6kxjnvfd5Mf2I/CsJ0wxYbB2Gn/vjB9rV72kLSaFRvxh178jx02OEEDiRYKHbbocYoznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzvsRU/aWjIH562i+eiyOTSU9aBoWHIOU0tuikveFgmbryF8t5S0dUGWklnRtIwDJ0VL9EHbItOz0ZZTS3PUhlsywYck61Ruac8pN5TCsSPrVmerdWbPpiTkpKf5s27Yuhwq46tCFoZZki2BpXdjibXFUycT4o8iN8ZQ75ZXOoqJV8dHSWNYWYhfJs5MYQAA) 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-add-child:before{content:"\\e789"}.icon-switch:before{content:"\\e77c"}.icon-tab:before{content:"\\e77b"}.icon-button:before{content:"\\e77e"}.icon-input:before{content:"\\e77f"}.icon-checkbox:before{content:"\\e780"}.icon-radio:before{content:"\\e781"}.icon-rate:before{content:"\\e782"}.icon-number:before{content:"\\e783"}.icon-upload:before{content:"\\e784"}.icon-cascader:before{content:"\\e785"}.icon-space:before{content:"\\e786"}.icon-color:before{content:"\\e787"}.icon-span:before{content:"\\e788"}.icon-alert:before{content:"\\e78a"}.icon-row:before{content:"\\e78b"}.icon-divider:before{content:"\\e78d"}.icon-select:before{content:"\\e78e"}.icon-transfer:before{content:"\\e78f"}.icon-editor:before{content:"\\e790"}.icon-slider:before{content:"\\e791"}.icon-tree:before{content:"\\e792"}.icon-date:before{content:"\\e793"}.icon-time:before{content:"\\e794"}.icon-delete:before{content:"\\e770"}.icon-copy:before{content:"\\e771"}.icon-import:before{content:"\\e773"}.icon-add:before{content:"\\e774"}.icon-preview:before{content:"\\e776"}.icon-move:before{content:"\\e777"}')),document.head.appendChild(r)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();const _export_sfc=(r,i)=>{const t=r.__vccOpts||r;for(const[s,c]of i)t[s]=c;return t},_sfc_main$8=defineComponent({name:"IconRefresh"}),_hoisted_1$6={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","data-v-029747aa":""},_hoisted_2$4=createBaseVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),_hoisted_3$4=[_hoisted_2$4];function _sfc_render$7(r,i,t,s,c,f){return openBlock(),createElementBlock("svg",_hoisted_1$6,_hoisted_3$4)}const IconRefresh=_export_sfc(_sfc_main$8,[["render",_sfc_render$7]]);function field({t:r}){return[{type:"input",field:"field",value:"",title:r("form.field")},{type:"input",field:"title",value:"",title:r("form.title")},{type:"input",field:"info",value:"",title:r("form.info")},{type:"Struct",field:"_control",value:[],title:r("form.control"),props:{defaultValue:[],validate:i=>!!Array.isArray(i)&&(!i.length||!i.some(({rule:t})=>!Array.isArray(t)))}},{type:"col",props:{span:24},children:[{type:"el-button",props:{type:"primary",size:"small"},inject:!0,on:{click({$f:i}){const t=i.activeRule;t&&(t.__fc__.updateKey(),t.value=void 0,t.__fc__.$api.sync(t))}},native:!0,children:[{type:"i",class:"fc-icon icon-delete"},r("form.clear")]},{type:"el-button",props:{type:"success",size:"small",icon:markRaw(IconRefresh)},inject:!0,on:{click({$f:i}){const t=i.activeRule;t&&(t.__fc__.updateKey(!0),t.__fc__.$api.sync(t))}},native:!0,children:[r("form.refresh")]}]}]}function validate(){return[{type:"validate",field:"validate",value:[]}]}function $set(r,i,t){r[i]=t}const is={type:(r,i)=>Object.prototype.toString.call(r)==="[object "+i+"]",Undef:r=>r==null,Element:r=>typeof r=="object"&&r!==null&&r.nodeType===1&&!is.Object(r),trueArray:r=>Array.isArray(r)&&r.length>0,Function(r){const i=this.getType(r);return i==="Function"||i==="AsyncFunction"},getType(r){const i=Object.prototype.toString.call(r);return/^\[object (.*)\]$/.exec(i)[1]},empty:r=>!!(r==null||Array.isArray(r)&&Array.isArray(r)&&!r.length)||typeof r=="string"&&!r};function hasProperty(r,i){return{}.hasOwnProperty.call(r,i)}function deepExtend(r,i={},t){let s=!1;for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let f=i[c];if((s=Array.isArray(f))||is.Object(f)){let d=r[c]===void 0;if(s)s=!1,d&&$set(r,c,[]);else if(f._clone&&t!==void 0){if(!t){$set(r,c,f._clone());continue}f=f.getRule(),d&&$set(r,c,{})}else d&&$set(r,c,{});r[c]=deepExtend(r[c],f,t)}else $set(r,c,f),is.Undef(f)||(is.Undef(f.__json)||(r[c].__json=f.__json),is.Undef(f.__origin)||(r[c].__origin=f.__origin))}return t!==void 0&&Array.isArray(r)?r.filter(c=>!c||!c.__ctrl):r}function deepCopy(r){return deepExtend({},{value:r}).value}function toCase(r){return lower(r.replace(/(-[a-z])/g,function(i){return i.replace("-","").toLocaleUpperCase()}))}function lower(r){return r.replace(r[0],r[0].toLowerCase())}["Date","Object","String","Boolean","Array","Number"].forEach(r=>{is[r]=function(i){return is.type(i,r)}});let id=0;function uniqueId(){return"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++id}`).toString(36)}function format(r,i,t){return`[form-create ${r}]: ${i}`+(t?`
  2. rule: `+JSON.stringify(t.getRule?t.getRule():t):"")}function err(r,i){console.error(format("err",r,i))}const PREFIX="[[FORM-CREATE-PREFIX-",SUFFIX="-FORM-CREATE-SUFFIX]]",$T="$FN:",$TX="$FNX:",FUNCTION="function";function makeFn(fn){return eval("("+FUNCTION+"(){return "+fn+" })()")}function parseFn(r,i){if(r&&is.String(r)&&r.length>4){let t=r.trim(),s=!1;try{if(t.indexOf(SUFFIX)>0&&t.indexOf(PREFIX)===0)t=t.replace(SUFFIX,"").replace(PREFIX,""),s=!0;else if(t.indexOf($T)===0)t=t.replace($T,""),s=!0;else{if(t.indexOf($TX)===0)return t=makeFn("function($inject){"+t.replace($TX,"")+"}"),t.__json=r,t.__inject=!0,t;!i&&t.indexOf(FUNCTION)===0&&t!==FUNCTION&&(s=!0)}if(!s)return r;const c=makeFn(t.indexOf(FUNCTION)===-1&&t.indexOf("(")!==0?FUNCTION+" "+t:t);return c.__json=r,c}catch(c){return void err(`\u89E3\u6790\u5931\u8D25:${t}
  3. err: ${c}`)}}return r}const ZhCn={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",info:"\u63D0\u793A\u4FE1\u606F",control:"\u8054\u52A8\u6570\u636E",clear:"\u6E05\u7A7A\u503C",refresh:"\u5237\u65B0",labelPosition:"\u6807\u7B7E\u4F4D\u7F6E",size:"\u8868\u5355\u5C3A\u5BF8",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",hideRequiredAsterisk:"\u9690\u85CF\u5FC5\u586B\u5B57\u6BB5\u7684\u6807\u7B7E\u65C1\u8FB9\u7684\u7EA2\u8272\u661F\u53F7",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",submit:"\u63D0\u4EA4",reset:"\u91CD\u7F6E"},validate:{type:"\u5B57\u6BB5\u7C7B\u578B",typePlaceholder:"\u8BF7\u9009\u62E9",trigger:"\u89E6\u53D1\u65B9\u5F0F",mode:"\u9A8C\u8BC1\u65B9\u5F0F",modes:{required:"\u5FC5\u586B",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",len:"\u957F\u5EA6"},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"},tableOptions:{handle:"\u64CD\u4F5C",add:"\u6DFB\u52A0"},struct:{title:"\u7F16\u8F91\u6570\u636E",submit:"\u786E \u5B9A",cancel:"\u53D6 \u6D88",error:"\u8F93\u5165\u5185\u5BB9\u683C\u5F0F\u6709\u8BEF"},fetch:{action:"\u63A5\u53E3",actionRequired:"\u8BF7\u6570\u636E\u63A5\u53E3",method:"\u8BF7\u6C42\u65B9\u5F0F",dataType:"\u63D0\u4EA4\u65B9\u5F0F",data:"\u9644\u5E26\u6570\u636E",headers:"header\u4FE1\u606F",parse:"\u89E3\u6790\u51FD\u6570",parseInfo:"\u89E3\u6790\u63A5\u53E3\u6570\u636E\uFF0C\u8FD4\u56DE\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u7ED3\u6784",parseValidate:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u89E3\u6790\u51FD\u6570"},designer:{preview:"\u9884 \u89C8",clear:"\u6E05 \u7A7A",clearConfirm:"\u6E05\u7A7A",clearCancel:"\u53D6\u6D88",clearConfirmTitle:"\u6E05\u7A7A\u540E\u5C06\u4E0D\u80FD\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6E05\u7A7A\u5417\uFF1F",config:{component:"\u7EC4\u4EF6\u914D\u7F6E",form:"\u8868\u5355\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",validate:"\u9A8C\u8BC1\u914D\u7F6E"}},menu:{main:"\u8868\u5355\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6"},props:{required:"\u662F\u5426\u5FC5\u586B",options:"\u9009\u9879\u6570\u636E",option:"\u9009\u9879",optionsType:{json:"JSON\u6570\u636E",fetch:"\u63A5\u53E3\u6570\u636E",struct:"\u9759\u6001\u6570\u636E"}},components:{radio:{name:"\u5355\u9009\u6846",props:{disabled:"\u662F\u5426\u7981\u7528",type:"\u6309\u94AE\u5F62\u5F0F",textColor:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272",fill:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}},checkbox:{name:"\u591A\u9009\u6846",props:{type:"\u6309\u94AE\u7C7B\u578B",disabled:"\u662F\u5426\u7981\u7528",min:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5C0F\u6570\u91CF",max:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5927\u6570\u91CF",textColor:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272",fill:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}},input:{name:"\u8F93\u5165\u6846",props:{type:"\u7C7B\u578B",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",showWordLimit:"\u662F\u5426\u663E\u793A\u8F93\u5165\u5B57\u6570\u7EDF\u8BA1",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u53EF\u6E05\u7A7A",showPassword:"\u662F\u5426\u663E\u793A\u5207\u6362\u5BC6\u7801\u56FE\u6807",disabled:"\u7981\u7528",prefixIcon:"\u8F93\u5165\u6846\u5934\u90E8\u56FE\u6807",suffixIcon:"\u8F93\u5165\u6846\u5C3E\u90E8\u56FE\u6807",rowInfo:'\u53EA\u5BF9 type="textarea" \u6709\u6548',rows:"\u8F93\u5165\u6846\u884C\u6570",autocomplete:"\u81EA\u52A8\u8865\u5168",readonly:"\u662F\u5426\u53EA\u8BFB",resize:"\u63A7\u5236\u662F\u5426\u80FD\u88AB\u7528\u6237\u7F29\u653E",autofocus:"\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"}},inputNumber:{name:"\u8BA1\u6570\u5668",props:{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\u9ED8\u8BA4 placeholder"}},select:{name:"\u9009\u62E9\u5668",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",autocomplete:"autocomplete \u5C5E\u6027",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",popperAppendToBody:"\u662F\u5426\u5C06\u5F39\u51FA\u6846\u63D2\u5165\u81F3 body \u5143\u7D20",automaticDropdown:"\u5BF9\u4E8E\u4E0D\u53EF\u641C\u7D22\u7684 Select\uFF0C\u662F\u5426\u5728\u8F93\u5165\u6846\u83B7\u5F97\u7126\u70B9\u540E\u81EA\u52A8\u5F39\u51FA\u9009\u9879\u83DC\u5355"}},switch:{name:"\u5F00\u5173",props:{disabled:"\u662F\u5426\u7981\u7528",width:"\u5BBD\u5EA6\uFF08px\uFF09",activeText:"switch \u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",inactiveText:"switch \u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",activeValue:"switch \u6253\u5F00\u65F6\u7684\u503C",inactiveValue:"switch \u5173\u95ED\u65F6\u7684\u503C",activeColor:"switch \u6253\u5F00\u65F6\u7684\u80CC\u666F\u8272",inactiveColor:"switch \u5173\u95ED\u65F6\u7684\u80CC\u666F\u8272"}},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"}},timePicker:{name:"\u65F6\u95F4\u9009\u62E9\u5668",props:{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\u5F00\u59CB\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",prefixIcon:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D",clearIcon:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}},datePicker:{name:"\u65E5\u671F\u9009\u62E9\u5668",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",prefixIcon:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D",clearIcon:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}},rate:{name:"\u8BC4\u5206",props:{max:"\u6700\u5927\u5206\u503C",disabled:"\u662F\u5426\u4E3A\u53EA\u8BFB",allowHalf:"\u662F\u5426\u5141\u8BB8\u534A\u9009",voidColor:"\u672A\u9009\u4E2D icon \u7684\u989C\u8272",disabledVoidColor:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u989C\u8272",voidIconClass:"\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D",disabledVoidIconClass:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D",showScore:"\u662F\u5426\u663E\u793A\u5F53\u524D\u5206\u6570\uFF0Cshow-score \u548C show-text \u4E0D\u80FD\u540C\u65F6\u4E3A\u771F",textColor:"\u8F85\u52A9\u6587\u5B57\u7684\u989C\u8272",scoreTemplate:"\u5206\u6570\u663E\u793A\u6A21\u677F"}},colorPicker:{name:"\u989C\u8272\u9009\u62E9\u5668",props:{disabled:"\u662F\u5426\u7981\u7528",showAlpha:"\u662F\u5426\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9",colorFormat:"\u989C\u8272\u7684\u683C\u5F0F"}},row:{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"}},col:{name:"\u683C\u5B50",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"}},tab:{name:"\u6807\u7B7E\u9875",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"}},"tab-pane":{name:"\u6807\u7B7E\u9875",props:{label:"\u9009\u9879\u5361\u6807\u9898",disabled:"\u662F\u5426\u7981\u7528",name:"\u4E0E\u9009\u9879\u5361\u7ED1\u5B9A\u503C value \u5BF9\u5E94\u7684\u6807\u8BC6\u7B26\uFF0C\u8868\u793A\u9009\u9879\u5361\u522B\u540D",lazy:"\u6807\u7B7E\u662F\u5426\u5EF6\u8FDF\u6E32\u67D3"}},"el-divider":{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"}},cascader:{name:"\u7EA7\u8054\u9009\u62E9\u5668",props:{props:"\u914D\u7F6E\u9009\u9879",size:"\u5C3A\u5BF8",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",separator:"\u9009\u9879\u5206\u9694\u7B26"}},upload:{name:"\u4E0A\u4F20",props:{uploadType:"\u4E0A\u4F20\u7C7B\u578B",action:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)",headers:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",multiple:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",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\uFF08thumbnail-mode \u6A21\u5F0F\u4E0B\u6B64\u53C2\u6570\u65E0\u6548\uFF09",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"}},"el-transfer":{name:"\u7A7F\u68AD\u6846",props:{data:"Transfer \u7684\u6570\u636E\u6E90",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",titles:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898",buttonTexts:"\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u6848",format:"\u5217\u8868\u9876\u90E8\u52FE\u9009\u72B6\u6001\u6587\u6848",props:"\u6570\u636E\u6E90\u7684\u5B57\u6BB5\u522B\u540D",leftDefaultChecked:"\u521D\u59CB\u72B6\u6001\u4E0B\u5DE6\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4",rightDefaultChecked:"\u521D\u59CB\u72B6\u6001\u4E0B\u53F3\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4"}},tree:{name:"\u6811\u5F62\u63A7\u4EF6",props:{emptyText:"\u5185\u5BB9\u4E3A\u7A7A\u7684\u65F6\u5019\u5C55\u793A\u7684\u6587\u672C",props:"\u914D\u7F6E\u9009\u9879\uFF0C\u5177\u4F53\u770B\u4E0B\u8868",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 \u9ED8\u8BA4\u503C\u4E3A true\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\uFF0C\u9ED8\u8BA4\u503C\u4E3A false\uFF0C\u5373\u53EA\u6709\u5728\u70B9\u51FB\u590D\u9009\u6846\u65F6\u624D\u4F1A\u9009\u4E2D\u8282\u70B9\u3002",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\uFF0C\u9ED8\u8BA4\u4E3A false",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\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20",iconClass:"\u81EA\u5B9A\u4E49\u6811\u8282\u70B9\u7684\u56FE\u6807",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"}},"el-alert":{name:"\u63D0\u793A",description:"description",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"}},span:{name:"\u6587\u5B57",props:{formCreateTitle:"\u6807\u9898",formCreateChild:"\u5185\u5BB9"}},div:{name:"\u95F4\u8DDD",props:{height:"\u9AD8\u5EA6"}},"el-button":{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",icon:"\u56FE\u6807\u7C7B\u540D"}},"fc-editor":{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}}}};function makeRequiredRule(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function makeOptionsRule(r,i,t){const s=[{label:r("props.optionsType.json"),value:0},{label:r("props.optionsType.fetch"),value:1}],c=[{value:0,rule:[{type:"Struct",field:"formCreate"+upper(i).replace(".",">"),props:{defaultValue:[]}}]},{value:1,rule:[{type:"Fetch",field:"formCreateEffect>fetch",props:{to:i}}]}];return t!==!1&&(s.splice(0,0,{label:r("props.optionsType.struct"),value:2}),c.push({value:2,rule:[{type:"TableOptions",field:"formCreate"+upper(i).replace(".",">"),props:{defaultValue:[]}}]})),{type:"radio",title:r("props.options"),field:"_optionType",value:t!==!1?2:0,options:s,props:{type:"button"},control:c}}function upper(r){return r.replace(r[0],r[0].toLocaleUpperCase())}const toJSON=function(r){const i=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(r));return i&&_toJSON[i[1].toLowerCase()]?_toJSON[i[1].toLowerCase()](r):r},_toJSON={object:function(r){var i=[];for(var t in r)!hasProperty(r,t)||i.push(toJSON(t)+": "+(r[t]!=null?toJSON(r[t]):"null"));return`{
  4. `+i.join(`,
  5. `)+`
  6. }`},function:function(r){var i=/^ *([\w]+) *\(/.exec(r);return i&&i[1]!=="function"?"function "+r:r},array:function(r){for(var i=0,t=[];i<r.length;i++)t[i]=r[i]!=null?toJSON(r[i]):"null";return"["+t.join(", ")+"]"},string:function(r){for(var i=r.split(""),t=0;t<i.length;t++){var s=i[t];s>=" "?s==="\\"?i[t]="\\\\":s==='"'&&(i[t]='\\"'):i[t]=s===`
  7. `?"\\n":s==="\r"?"\\r":s===" "?"\\t":s==="\b"?"\\b":s==="\f"?"\\f":"\\u00"+((s=s.charCodeAt())>15?1:0)+s%16}return'"'+i.join("")+'"'}},deepParseFn=function(r){for(let i in r)if(Object.prototype.hasOwnProperty.call(r,i)){let t=r[i];(Array.isArray(t)||is.Object(t))&&deepParseFn(t),is.String(t)&&(r[i]=parseFn(t))}return r};function get(r,i,t){let s=0,c=(i=(i||"").split(".")).length;for(;r!=null&&s<c;)r=r[i[s++]];return s&&s===c&&r!==void 0?r:t}const buildTranslator=r=>(i,t)=>translate(i,t,unref(r)),translate=(r,i,t)=>get(t,r,"").replace(/\{(\w+)\}/g,(s,c)=>{var f;return`${(f=i==null?void 0:i[c])!=null?f:`{${c}}`}`}),buildLocaleContext=r=>{const i=computed(()=>unref(r).name),t=computed(()=>upper(toCase(i.value||""))),s=isRef(r)?r:ref(r);return{lang:i,name:t,locale:s,t:buildTranslator(r)}},useLocale=r=>buildLocaleContext(computed(()=>r.value||ZhCn)),localeProps=(r,i,t)=>t.map(s=>(s.field==="formCreate$required"?s.title=r("props.required")||s.title:s.field&&s.field!=="_optionType"&&(s.title=r("components."+i+"."+s.field)||s.title),s)),label$n="\u5355\u9009\u6846",name$o="radio",radio={icon:"icon-radio",label:label$n,name:name$o,rule({t:r}){const i=r("props.option");return{type:name$o,field:uniqueId(),title:r("components.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:[1,2].map(t=>({label:i+t,value:t}))}},props:(r,{t:i})=>localeProps(i,name$o+".props",[makeRequiredRule(),makeOptionsRule(i,"options"),{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"type",title:"\u6309\u94AE\u5F62\u5F0F",props:{activeValue:"button",inactiveValue:"default"}},{type:"input",field:"textColor",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272"},{type:"input",field:"fill",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}])},label$m="\u591A\u9009\u6846",name$n="checkbox",checkbox={icon:"icon-checkbox",label:label$m,name:name$n,rule({t:r}){const i=r("props.option");return{type:name$n,field:uniqueId(),title:r("components.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:[1,2].map(t=>({label:i+t,value:t}))}},props:(r,{t:i})=>localeProps(i,name$n+".props",[makeRequiredRule(),makeOptionsRule(i,"options"),{type:"switch",field:"type",title:"\u6309\u94AE\u7C7B\u578B",props:{activeValue:"button",inactiveValue:"default"}},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"min",title:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5C0F\u6570\u91CF",props:{min:0}},{type:"inputNumber",field:"max",title:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5927\u6570\u91CF",props:{min:0}},{type:"input",field:"textColor",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272"},{type:"input",field:"fill",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}])},label$l="\u8F93\u5165\u6846",name$m="input",input={icon:"icon-input",label:label$l,name:name$m,rule:({t:r})=>({type:name$m,field:uniqueId(),title:r("components.input.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$m+".props",[makeRequiredRule(),{type:"select",field:"type",title:"\u7C7B\u578B",options:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"}]},{type:"inputNumber",field:"maxlength",title:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",props:{min:0}},{type:"inputNumber",field:"minlength",title:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",props:{min:0}},{type:"switch",field:"showWordLimit",title:"\u662F\u5426\u663E\u793A\u8F93\u5165\u5B57\u6570\u7EDF\u8BA1"},{type:"input",field:"placeholder",title:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"},{type:"switch",field:"clearable",title:"\u662F\u5426\u53EF\u6E05\u7A7A"},{type:"switch",field:"showPassword",title:"\u662F\u5426\u663E\u793A\u5207\u6362\u5BC6\u7801\u56FE\u6807"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"input",field:"prefixIcon",title:"\u8F93\u5165\u6846\u5934\u90E8\u56FE\u6807"},{type:"input",field:"suffixIcon",title:"\u8F93\u5165\u6846\u5C3E\u90E8\u56FE\u6807"},{type:"inputNumber",field:"rows",info:i("components.input.props.rowsInfo"),title:"\u8F93\u5165\u6846\u884C\u6570",props:{min:0}},{type:"select",field:"autocomplete",title:"\u81EA\u52A8\u8865\u5168",options:[{label:"on",value:"on"},{label:"off",value:"off"}]},{type:"switch",field:"readonly",title:"\u662F\u5426\u53EA\u8BFB"},{type:"select",field:"resize",title:"\u63A7\u5236\u662F\u5426\u80FD\u88AB\u7528\u6237\u7F29\u653E",options:[{label:"none",value:"none"},{label:"both",value:"both"},{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}]},{type:"switch",field:"autofocus",title:"\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"}])},label$k="\u8BA1\u6570\u5668",name$l="inputNumber",number={icon:"icon-number",label:label$k,name:name$l,rule:({t:r})=>({type:name$l,field:uniqueId(),title:r("components.inputNumber.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$l+".props",[makeRequiredRule(),{type:"inputNumber",field:"min",title:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503C"},{type:"inputNumber",field:"max",title:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503C"},{type:"inputNumber",field:"step",title:"\u8BA1\u6570\u5668\u6B65\u957F",props:{min:0}},{type:"switch",field:"stepStrictly",title:"\u662F\u5426\u53EA\u80FD\u8F93\u5165 step \u7684\u500D\u6570"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668"},{type:"switch",field:"controls",title:"\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AE",value:!0},{type:"select",field:"controlsPosition",title:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",options:[{label:"default",value:""},{label:"right",value:"right"}]},{type:"input",field:"placeholder",title:"\u8F93\u5165\u6846\u9ED8\u8BA4 placeholder"}])},label$j="\u9009\u62E9\u5668",name$k="select",select={icon:"icon-select",label:label$j,name:name$k,rule({t:r}){const i=r("props.option");return{type:name$k,field:uniqueId(),title:r("components.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:[1,2].map(t=>({label:i+t,value:t}))}},watch:{multiple({rule:r}){r.key=uniqueId()}},props:(r,{t:i})=>localeProps(i,name$k+".props",[makeRequiredRule(),makeOptionsRule(i,"options"),{type:"switch",field:"multiple",title:"\u662F\u5426\u591A\u9009"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"clearable",title:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879"},{type:"switch",field:"collapseTags",title:"\u591A\u9009\u65F6\u662F\u5426\u5C06\u9009\u4E2D\u503C\u6309\u6587\u5B57\u7684\u5F62\u5F0F\u5C55\u793A"},{type:"inputNumber",field:"multipleLimit",title:"\u591A\u9009\u65F6\u7528\u6237\u6700\u591A\u53EF\u4EE5\u9009\u62E9\u7684\u9879\u76EE\u6570\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",props:{min:0}},{type:"input",field:"autocomplete",title:"autocomplete \u5C5E\u6027"},{type:"input",field:"placeholder",title:"\u5360\u4F4D\u7B26"},{type:"switch",field:"filterable",title:"\u662F\u5426\u53EF\u641C\u7D22"},{type:"switch",field:"allowCreate",title:"\u662F\u5426\u5141\u8BB8\u7528\u6237\u521B\u5EFA\u65B0\u6761\u76EE"},{type:"input",field:"noMatchText",title:"\u641C\u7D22\u6761\u4EF6\u65E0\u5339\u914D\u65F6\u663E\u793A\u7684\u6587\u5B57"},{type:"switch",field:"remote",title:"\u5176\u4E2D\u7684\u9009\u9879\u662F\u5426\u4ECE\u670D\u52A1\u5668\u8FDC\u7A0B\u52A0\u8F7D"},{type:"Struct",field:"remoteMethod",title:"\u81EA\u5B9A\u4E49\u8FDC\u7A0B\u641C\u7D22\u65B9\u6CD5"},{type:"input",field:"noDataText",title:"\u9009\u9879\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u6587\u5B57"},{type:"switch",field:"reserveKeyword",title:"\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"},{type:"switch",field:"defaultFirstOption",title:"\u5728\u8F93\u5165\u6846\u6309\u4E0B\u56DE\u8F66\uFF0C\u9009\u62E9\u7B2C\u4E00\u4E2A\u5339\u914D\u9879"},{type:"switch",field:"popperAppendToBody",title:"\u662F\u5426\u5C06\u5F39\u51FA\u6846\u63D2\u5165\u81F3 body \u5143\u7D20",value:!0},{type:"switch",field:"automaticDropdown",title:"\u5BF9\u4E8E\u4E0D\u53EF\u641C\u7D22\u7684 Select\uFF0C\u662F\u5426\u5728\u8F93\u5165\u6846\u83B7\u5F97\u7126\u70B9\u540E\u81EA\u52A8\u5F39\u51FA\u9009\u9879\u83DC\u5355"}])},label$i="\u5F00\u5173",name$j="switch",_switch={icon:"icon-switch",label:label$i,name:name$j,rule:({t:r})=>({type:name$j,field:uniqueId(),title:r("components.switch.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$j+".props",[makeRequiredRule(),{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"width",title:"\u5BBD\u5EA6\uFF08px\uFF09",props:{min:0}},{type:"input",field:"activeText",title:"switch \u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0"},{type:"input",field:"inactiveText",title:"switch \u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0"},{type:"input",field:"activeValue",title:"switch \u6253\u5F00\u65F6\u7684\u503C"},{type:"input",field:"inactiveValue",title:"switch \u5173\u95ED\u65F6\u7684\u503C"},{type:"input",field:"activeColor",title:"switch \u6253\u5F00\u65F6\u7684\u80CC\u666F\u8272"},{type:"input",field:"inactiveColor",title:"switch \u5173\u95ED\u65F6\u7684\u80CC\u666F\u8272"}])},label$h="\u6ED1\u5757",name$i="slider",slider={icon:"icon-slider",label:label$h,name:name$i,rule:({t:r})=>({type:name$i,field:uniqueId(),title:r("components.slider.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$i+".props",[makeRequiredRule(),{type:"inputNumber",field:"min",title:"\u6700\u5C0F\u503C",props:{min:0}},{type:"inputNumber",field:"max",title:"\u6700\u5927\u503C",props:{min:0}},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"step",title:"\u6B65\u957F",props:{min:0}},{type:"switch",field:"showInput",title:"\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\uFF0C\u4EC5\u5728\u975E\u8303\u56F4\u9009\u62E9\u65F6\u6709\u6548"},{type:"switch",field:"showInputControls",title:"\u5728\u663E\u793A\u8F93\u5165\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\u7684\u63A7\u5236\u6309\u94AE",value:!0},{type:"switch",field:"showStops",title:"\u662F\u5426\u663E\u793A\u95F4\u65AD\u70B9"},{type:"switch",field:"range",title:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9"},{type:"switch",field:"vertical",title:"\u662F\u5426\u7AD6\u5411\u6A21\u5F0F"},{type:"input",field:"height",title:"Slider \u9AD8\u5EA6\uFF0C\u7AD6\u5411\u6A21\u5F0F\u65F6\u5FC5\u586B"}])},label$g="\u65F6\u95F4\u9009\u62E9\u5668",name$h="timePicker",time={icon:"icon-time",label:label$g,name:name$h,rule:({t:r})=>({type:name$h,field:uniqueId(),title:r("components.timePicker.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$h+".props",[makeRequiredRule(),{type:"Struct",field:"pickerOptions",title:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",props:{defaultValue:{}}},{type:"switch",field:"readonly",title:"\u5B8C\u5168\u53EA\u8BFB"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"switch",field:"editable",title:"\u6587\u672C\u6846\u53EF\u8F93\u5165",value:!0},{type:"switch",field:"clearable",title:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",value:!0},{type:"input",field:"placeholder",title:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"startPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"endPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"switch",field:"isRange",title:"\u662F\u5426\u4E3A\u65F6\u95F4\u8303\u56F4\u9009\u62E9"},{type:"switch",field:"arrowControl",title:"\u662F\u5426\u4F7F\u7528\u7BAD\u5934\u8FDB\u884C\u65F6\u95F4\u9009\u62E9"},{type:"select",field:"align",title:"\u5BF9\u9F50\u65B9\u5F0F",options:[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}]},{type:"input",field:"prefixIcon",title:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D"},{type:"input",field:"clearIcon",title:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}])},label$f="\u65E5\u671F\u9009\u62E9\u5668",name$g="datePicker",date={icon:"icon-date",label:label$f,name:name$g,rule:({t:r})=>({type:name$g,field:uniqueId(),title:r("components.datePicker.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$g+".props",[makeRequiredRule(),{type:"Struct",field:"pickerOptions",title:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",props:{defaultValue:{}}},{type:"switch",field:"readonly",title:"\u5B8C\u5168\u53EA\u8BFB"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"select",field:"type",title:"\u663E\u793A\u7C7B\u578B",options:[{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:"editable",title:"\u6587\u672C\u6846\u53EF\u8F93\u5165",value:!0},{type:"switch",field:"clearable",title:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",value:!0},{type:"input",field:"placeholder",title:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"startPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"endPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"format",title:"\u663E\u793A\u5728\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F"},{type:"select",field:"align",title:"\u5BF9\u9F50\u65B9\u5F0F",options:[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"},{label:"left",value:"left"}]},{type:"input",field:"rangeSeparator",title:"\u9009\u62E9\u8303\u56F4\u65F6\u7684\u5206\u9694\u7B26"},{type:"switch",field:"unlinkPanels",title:"\u5728\u8303\u56F4\u9009\u62E9\u5668\u91CC\u53D6\u6D88\u4E24\u4E2A\u65E5\u671F\u9762\u677F\u4E4B\u95F4\u7684\u8054\u52A8"},{type:"input",field:"prefixIcon",title:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D"},{type:"input",field:"clearIcon",title:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}])},label$e="\u8BC4\u5206",name$f="rate",rate={icon:"icon-rate",label:label$e,name:name$f,rule:({t:r})=>({type:name$f,field:uniqueId(),title:r("components.rate.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$f+".props",[makeRequiredRule(),{type:"inputNumber",field:"max",title:"\u6700\u5927\u5206\u503C",props:{min:0}},{type:"switch",field:"disabled",title:"\u662F\u5426\u4E3A\u53EA\u8BFB"},{type:"switch",field:"allowHalf",title:"\u662F\u5426\u5141\u8BB8\u534A\u9009"},{type:"input",field:"voidColor",title:"\u672A\u9009\u4E2D icon \u7684\u989C\u8272"},{type:"input",field:"disabledVoidColor",title:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u989C\u8272"},{type:"input",field:"voidIconClass",title:"\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D"},{type:"input",field:"disabledVoidIconClass",title:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D"},{type:"switch",field:"showScore",title:"\u662F\u5426\u663E\u793A\u5F53\u524D\u5206\u6570\uFF0Cshow-score \u548C show-text \u4E0D\u80FD\u540C\u65F6\u4E3A\u771F"},{type:"input",field:"textColor",title:"\u8F85\u52A9\u6587\u5B57\u7684\u989C\u8272"},{type:"input",field:"scoreTemplate",title:"\u5206\u6570\u663E\u793A\u6A21\u677F"}])},label$d="\u989C\u8272\u9009\u62E9\u5668",name$e="colorPicker",color={icon:"icon-color",label:label$d,name:name$e,rule:({t:r})=>({type:name$e,field:uniqueId(),title:r("components.colorPicker.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name$e+".props",[makeRequiredRule(),{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"showAlpha",title:"\u662F\u5426\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9"},{type:"select",field:"colorFormat",title:"\u989C\u8272\u7684\u683C\u5F0F",options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]}])},label$c="\u6805\u683C\u5E03\u5C40",name$d="row",row={icon:"icon-row",label:label$c,name:name$d,mask:!1,rule:()=>({type:"FcRow",props:{},children:[]}),children:"col",childrenLen:2,props:(r,{t:i})=>localeProps(i,name$d+".props",[{type:"inputNumber",field:"gutter",title:"\u6805\u683C\u95F4\u9694",props:{min:0}},{type:"switch",field:"type",title:"flex\u5E03\u5C40\u6A21\u5F0F",props:{activeValue:"flex",inactiveValue:"default"}},{type:"select",field:"justify",title:"flex \u5E03\u5C40\u4E0B\u7684\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",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",title:"flex \u5E03\u5C40\u4E0B\u7684\u5782\u76F4\u6392\u5217\u65B9\u5F0F",options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}]}])},name$c="col",col={name:name$c,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule:()=>({type:name$c,props:{span:12},children:[]}),props:(r,{t:i})=>localeProps(i,name$c+".props",[{type:"slider",field:"span",title:"\u6805\u683C\u5360\u636E\u7684\u5217\u6570",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",title:"\u6805\u683C\u5DE6\u4FA7\u7684\u95F4\u9694\u683C\u6570",props:{min:0,max:24}},{type:"slider",field:"push",title:"\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570",props:{min:0,max:24}},{type:"slider",field:"pull",title:"\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570",props:{min:0,max:24}}])},label$b="\u6807\u7B7E\u9875",name$b="tab-pane",tabPane={label:label$b,name:name$b,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule:({t:r})=>({type:"el-tab-pane",props:{label:r("components.el-transfer.name")},children:[]}),props:(r,{t:i})=>localeProps(i,name$b+".props",[{type:"input",field:"label",title:"\u9009\u9879\u5361\u6807\u9898"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"input",field:"name",title:"\u4E0E\u9009\u9879\u5361\u7ED1\u5B9A\u503C value \u5BF9\u5E94\u7684\u6807\u8BC6\u7B26\uFF0C\u8868\u793A\u9009\u9879\u5361\u522B\u540D"},{type:"switch",field:"lazy",title:"\u6807\u7B7E\u662F\u5426\u5EF6\u8FDF\u6E32\u67D3"}])},label$a="\u5206\u5272\u7EBF",name$a="el-divider",divider={icon:"icon-divider",label:label$a,name:name$a,rule:()=>({type:name$a,props:{},wrap:{show:!1},native:!1,children:[""]}),props:(r,{t:i})=>localeProps(i,name$a+".props",[{type:"select",field:"direction",title:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",options:[{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}]},{type:"input",field:"formCreateChild",title:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848"},{type:"select",field:"contentPosition",title:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E",options:[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}]}])},label$9="\u7EA7\u8054\u9009\u62E9\u5668",name$9="cascader",cascader={icon:"icon-cascader",label:label$9,name:name$9,rule({t:r}){const i=r("props.option");return{type:name$9,field:uniqueId(),title:r("components.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:[1,2].map(t=>({label:i+t,value:t,children:[]}))}}},props:(r,{t:i})=>localeProps(i,name$9+".props",[makeRequiredRule(),makeOptionsRule(i,"props.options",!1),{type:"Object",field:"props",title:"\u914D\u7F6E\u9009\u9879",props:{rule:localeProps(i,name$9+".propsOpt",[{type:"select",field:"expandTrigger",title:"\u6B21\u7EA7\u83DC\u5355\u7684\u5C55\u5F00\u65B9\u5F0F",options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]},{type:"switch",field:"multiple",title:"\u662F\u5426\u591A\u9009"},{type:"switch",field:"checkStrictly",title:"\u662F\u5426\u4E25\u683C\u7684\u9075\u5B88\u7236\u5B50\u8282\u70B9\u4E0D\u4E92\u76F8\u5173\u8054"},{type:"switch",field:"emitPath",title:"\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\uFF0C\u82E5\u8BBE\u7F6E false\uFF0C\u5219\u53EA\u8FD4\u56DE\u8BE5\u8282\u70B9\u7684\u503C",value:!0},{type:"input",field:"value",title:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"value"},{type:"input",field:"label",title:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"label"},{type:"input",field:"children",title:"\u6307\u5B9A\u9009\u9879\u7684\u5B50\u9009\u9879\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"children"},{type:"input",field:"disabled",title:"\u6307\u5B9A\u9009\u9879\u7684\u7981\u7528\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"disabled"},{type:"input",field:"leaf",title:"\u6307\u5B9A\u9009\u9879\u7684\u53F6\u5B50\u8282\u70B9\u7684\u6807\u5FD7\u4F4D\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C"}])}},{type:"select",field:"size",title:"\u5C3A\u5BF8",options:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}]},{type:"input",field:"placeholder",title:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"clearable",title:"\u662F\u5426\u652F\u6301\u6E05\u7A7A\u9009\u9879"},{type:"switch",field:"showAllLevels",title:"\u8F93\u5165\u6846\u4E2D\u662F\u5426\u663E\u793A\u9009\u4E2D\u503C\u7684\u5B8C\u6574\u8DEF\u5F84",value:!0},{type:"switch",field:"collapseTags",title:"\u591A\u9009\u6A21\u5F0F\u4E0B\u662F\u5426\u6298\u53E0Tag"},{type:"input",field:"separator",title:"\u9009\u9879\u5206\u9694\u7B26"}])},label$8="\u4E0A\u4F20",name$8="upload",upload={icon:"icon-upload",label:label$8,name:name$8,rule:({t:r})=>({type:name$8,field:uniqueId(),title:r("components.upload.name"),info:"",$required:!1,props:{action:"",onSuccess(i,t){t.url=i.data.url}}}),props:(r,{t:i})=>localeProps(i,name$8+".props",[makeRequiredRule(),{type:"select",field:"uploadType",title:"\u4E0A\u4F20\u7C7B\u578B",value:"image",options:[{label:"\u56FE\u7247",value:"image"},{label:"\u6587\u4EF6",value:"file"}]},{type:"input",field:"action",title:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)"},{type:"Struct",field:"headers",title:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",props:{defaultValue:{}}},{type:"switch",field:"multiple",title:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6"},{type:"Struct",field:"data",title:"\u4E0A\u4F20\u65F6\u9644\u5E26\u7684\u989D\u5916\u53C2\u6570",props:{defaultValue:{}}},{type:"input",field:"name",title:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D"},{type:"switch",field:"withCredentials",title:"\u652F\u6301\u53D1\u9001 cookie \u51ED\u8BC1\u4FE1\u606F"},{type:"input",field:"accept",title:"\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B\uFF08thumbnail-mode \u6A21\u5F0F\u4E0B\u6B64\u53C2\u6570\u65E0\u6548\uFF09"},{type:"switch",field:"autoUpload",title:"\u662F\u5426\u5728\u9009\u53D6\u6587\u4EF6\u540E\u7ACB\u5373\u8FDB\u884C\u4E0A\u4F20",value:!0},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"limit",title:"\u6700\u5927\u5141\u8BB8\u4E0A\u4F20\u4E2A\u6570",props:{min:0}}])},label$7="\u7A7F\u68AD\u6846",name$7="el-transfer",generateData=()=>{const r=[];for(let i=1;i<=15;i++)r.push({key:i,label:`\u5907\u9009\u9879 ${i}`,disabled:i%4==0});return r},transfer={icon:"icon-transfer",label:label$7,name:name$7,rule:({t:r})=>({type:name$7,field:uniqueId(),title:r("components.el-transfer.name"),info:"",$required:!1,props:{data:generateData()}}),props:(r,{t:i})=>localeProps(i,name$7+".props",[{type:"Struct",field:"data",title:"Transfer \u7684\u6570\u636E\u6E90",props:{defaultValue:[]}},{type:"switch",field:"filterable",title:"\u662F\u5426\u53EF\u641C\u7D22"},{type:"input",field:"filterPlaceholder",title:"\u641C\u7D22\u6846\u5360\u4F4D\u7B26"},{type:"select",field:"targetOrder",title:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u7684\u6392\u5E8F\u7B56\u7565",info:"\u82E5\u4E3A original\uFF0C\u5219\u4FDD\u6301\u4E0E\u6570\u636E\u6E90\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",options:[{label:"original",value:"original"},{label:"push",value:"push"},{label:"unshift",value:"unshift"}]},{type:"Struct",field:"titles",title:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898",props:{defaultValue:[]}},{type:"Struct",field:"buttonTexts",title:"\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u6848",props:{defaultValue:[]}},{type:"Struct",field:"format",title:"\u5217\u8868\u9876\u90E8\u52FE\u9009\u72B6\u6001\u6587\u6848",props:{defaultValue:{}}},{type:"Struct",field:"props",title:"\u6570\u636E\u6E90\u7684\u5B57\u6BB5\u522B\u540D",props:{defaultValue:{}}},{type:"Struct",field:"leftDefaultChecked",title:"\u521D\u59CB\u72B6\u6001\u4E0B\u5DE6\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4",props:{defaultValue:[]}},{type:"Struct",field:"rightDefaultChecked",title:"\u521D\u59CB\u72B6\u6001\u4E0B\u53F3\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4",props:{defaultValue:[]}}])},label$6="\u6811\u5F62\u63A7\u4EF6",name$6="tree",tree={icon:"icon-tree",label:label$6,name:name$6,rule({t:r}){const i=r("props.option");return{type:name$6,field:uniqueId(),title:r("components.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:[1,2].map(t=>({label:i+t,id:t,children:[]}))}}},props:(r,{t:i})=>localeProps(i,name$6+".props",[makeRequiredRule(),makeOptionsRule(i,"props.data",!1),{type:"input",field:"emptyText",title:"\u5185\u5BB9\u4E3A\u7A7A\u7684\u65F6\u5019\u5C55\u793A\u7684\u6587\u672C"},{type:"Struct",field:"props",title:"\u914D\u7F6E\u9009\u9879\uFF0C\u5177\u4F53\u770B\u4E0B\u8868",props:{defaultValue:{}}},{type:"switch",field:"renderAfterExpand",title:"\u662F\u5426\u5728\u7B2C\u4E00\u6B21\u5C55\u5F00\u67D0\u4E2A\u6811\u8282\u70B9\u540E\u624D\u6E32\u67D3\u5176\u5B50\u8282\u70B9",value:!0},{type:"switch",field:"defaultExpandAll",title:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9"},{type:"switch",field:"expandOnClickNode",title:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\uFF0C \u9ED8\u8BA4\u503C\u4E3A true\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",value:!0},{type:"switch",field:"checkOnClickNode",title:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9\uFF0C\u9ED8\u8BA4\u503C\u4E3A false\uFF0C\u5373\u53EA\u6709\u5728\u70B9\u51FB\u590D\u9009\u6846\u65F6\u624D\u4F1A\u9009\u4E2D\u8282\u70B9\u3002"},{type:"switch",field:"autoExpandParent",title:"\u5C55\u5F00\u5B50\u8282\u70B9\u7684\u65F6\u5019\u662F\u5426\u81EA\u52A8\u5C55\u5F00\u7236\u8282\u70B9",value:!0},{type:"switch",field:"checkStrictly",title:"\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\uFF0C\u9ED8\u8BA4\u4E3A false"},{type:"switch",field:"accordion",title:"\u662F\u5426\u6BCF\u6B21\u53EA\u6253\u5F00\u4E00\u4E2A\u540C\u7EA7\u6811\u8282\u70B9\u5C55\u5F00"},{type:"inputNumber",field:"indent",title:"\u76F8\u90BB\u7EA7\u8282\u70B9\u95F4\u7684\u6C34\u5E73\u7F29\u8FDB\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20"},{type:"input",field:"iconClass",title:"\u81EA\u5B9A\u4E49\u6811\u8282\u70B9\u7684\u56FE\u6807"},{type:"input",field:"nodeKey",title:"\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"}])},label$5="\u63D0\u793A",name$5="el-alert",alert={icon:"icon-alert",label:label$5,name:name$5,rule:({t:r})=>({type:name$5,props:{title:r("components.el-alert.name"),description:r("components.el-alert.description"),type:"success",effect:"dark"},children:[]}),props:(r,{t:i})=>localeProps(i,name$5+".props",[{type:"input",field:"title",title:"\u6807\u9898"},{type:"select",field:"type",title:"\u4E3B\u9898",options:[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}]},{type:"input",field:"description",title:"\u8F85\u52A9\u6027\u6587\u5B57"},{type:"switch",field:"closable",title:"\u662F\u5426\u53EF\u5173\u95ED",value:!0},{type:"switch",field:"center",title:"\u6587\u5B57\u662F\u5426\u5C45\u4E2D",value:!0},{type:"input",field:"closeText",title:"\u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C"},{type:"switch",field:"showIcon",title:"\u662F\u5426\u663E\u793A\u56FE\u6807"},{type:"select",field:"effect",title:"\u9009\u62E9\u63D0\u4F9B\u7684\u4E3B\u9898",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]}])},label$4="\u6587\u5B57",name$4="span",span={icon:"icon-span",label:label$4,name:name$4,rule:({t:r})=>({type:name$4,title:r("components.span.name"),native:!1,children:[r("components.span.name")]}),props:(r,{t:i})=>localeProps(i,name$4+".props",[{type:"input",field:"formCreateTitle",title:"title"},{type:"input",field:"formCreateChild",title:"\u5185\u5BB9",props:{type:"textarea"}}])},label$3="\u95F4\u8DDD",name$3="div",space={icon:"icon-space",label:label$3,name:name$3,rule:()=>({type:name$3,wrap:{show:!1},native:!1,style:{width:"100%",height:"20px"},children:[]}),props:(r,{t:i})=>[{type:"object",field:"formCreateStyle",native:!0,props:{rule:localeProps(i,name$3+".props",[{type:"input",field:"height",title:"height"}])}}]},label$2="\u6807\u7B7E\u9875",name$2="tab",tab={icon:"icon-tab",label:label$2,name:name$2,children:"tab-pane",mask:!1,rule:()=>({type:"el-tabs",style:"width:100%;",children:[]}),props:(r,{t:i})=>localeProps(i,name$2+".props",[{type:"select",field:"type",title:"\u98CE\u683C\u7C7B\u578B",options:[{label:"card",value:"card"},{label:"border-card",value:"border-card"}]},{type:"switch",field:"closable",title:"\u6807\u7B7E\u662F\u5426\u53EF\u5173\u95ED"},{type:"select",field:"tabPosition",title:"\u9009\u9879\u5361\u6240\u5728\u4F4D\u7F6E",options:[{label:"top",value:"top"},{label:"right",value:"right"},{label:"left",value:"left"}]},{type:"switch",field:"stretch",title:"\u6807\u7B7E\u7684\u5BBD\u5EA6\u662F\u5426\u81EA\u6491\u5F00"}])},label$1="\u6309\u94AE",name$1="el-button",button={icon:"icon-button",label:label$1,name:name$1,mask:!1,rule:({t:r})=>({type:name$1,props:{},children:[r("components.el-button.name")]}),props:(r,{t:i})=>localeProps(i,name$1+".props",[{type:"input",field:"formCreateChild",title:"\u5185\u5BB9"},{type:"select",field:"size",title:"\u5C3A\u5BF8",options:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}]},{type:"select",field:"type",title:"\u7C7B\u578B",options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{type:"switch",field:"plain",title:"\u662F\u5426\u6734\u7D20\u6309\u94AE"},{type:"switch",field:"round",title:"\u662F\u5426\u5706\u89D2\u6309\u94AE"},{type:"switch",field:"circle",title:"\u662F\u5426\u5706\u5F62\u6309\u94AE"},{type:"switch",field:"loading",title:"\u662F\u5426\u52A0\u8F7D\u4E2D\u72B6\u6001"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528\u72B6\u6001"},{type:"input",field:"icon",title:"\u56FE\u6807\u7C7B\u540D"}])},label="\u5BCC\u6587\u672C\u6846",name="fc-editor",editor={icon:"icon-editor",label,name,rule:({t:r})=>({type:name,field:uniqueId(),title:r("components.fc-editor.name"),info:"",$required:!1,props:{}}),props:(r,{t:i})=>localeProps(i,name+".props",[makeRequiredRule(),{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"}])},ruleList={[radio.name]:radio,[checkbox.name]:checkbox,[input.name]:input,[number.name]:number,[select.name]:select,[_switch.name]:_switch,[slider.name]:slider,[time.name]:time,[date.name]:date,[rate.name]:rate,[color.name]:color,[row.name]:row,[col.name]:col,[tab.name]:tab,[tabPane.name]:tabPane,[divider.name]:divider,[cascader.name]:cascader,[upload.name]:upload,[transfer.name]:transfer,[tree.name]:tree,[alert.name]:alert,[span.name]:span,[space.name]:space,[button.name]:button,[editor.name]:editor};function ownKeys$1(r,i){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);i&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,s)}return t}function _objectSpread2$1(r){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$1(Object(t),!0).forEach(function(s){_defineProperty$1(r,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(t,s))})}return r}function _typeof$1(r){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(r)}function _defineProperty$1(r,i,t){return i in r?Object.defineProperty(r,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[i]=t,r}function _extends$1(){return _extends$1=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},_extends$1.apply(this,arguments)}function _objectWithoutPropertiesLoose(r,i){if(r==null)return{};var t,s,c={},f=Object.keys(r);for(s=0;s<f.length;s++)t=f[s],!(i.indexOf(t)>=0)&&(c[t]=r[t]);return c}function _objectWithoutProperties(r,i){if(r==null)return{};var t,s,c=_objectWithoutPropertiesLoose(r,i);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(r);for(s=0;s<f.length;s++)t=f[s],!(i.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(r,t)||(c[t]=r[t]))}return c}var version="1.14.0";function userAgent(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(r,i,t){r.addEventListener(i,t,!IE11OrLess&&captureMode)}function off(r,i,t){r.removeEventListener(i,t,!IE11OrLess&&captureMode)}function matches(r,i){if(i){if(i[0]===">"&&(i=i.substring(1)),r)try{if(r.matches)return r.matches(i);if(r.msMatchesSelector)return r.msMatchesSelector(i);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(i)}catch{return!1}return!1}}function getParentOrHost(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function closest(r,i,t,s){if(r){t=t||document;do{if(i!=null&&(i[0]===">"?r.parentNode===t&&matches(r,i):matches(r,i))||s&&r===t)return r;if(r===t)break}while(r=getParentOrHost(r))}return null}var R_SPACE=/\s+/g,_throttleTimeout;function toggleClass(r,i,t){if(r&&i)if(r.classList)r.classList[t?"add":"remove"](i);else{var s=(" "+r.className+" ").replace(R_SPACE," ").replace(" "+i+" "," ");r.className=(s+(t?" "+i:"")).replace(R_SPACE," ")}}function css(r,i,t){var s=r&&r.style;if(s){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),i===void 0?t:t[i];!(i in s)&&i.indexOf("webkit")===-1&&(i="-webkit-"+i),s[i]=t+(typeof t=="string"?"":"px")}}function matrix(r,i){var t="";if(typeof r=="string")t=r;else do{var s=css(r,"transform");s&&s!=="none"&&(t=s+" "+t)}while(!i&&(r=r.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(t)}function find(r,i,t){if(r){var s=r.getElementsByTagName(i),c=0,f=s.length;if(t)for(;c<f;c++)t(s[c],c);return s}return[]}function getWindowScrollingElement(){return document.scrollingElement||document.documentElement}function getRect(r,i,t,s,c){if(r.getBoundingClientRect||r===window){var f,d,y,b,p,x,g;if(r!==window&&r.parentNode&&r!==getWindowScrollingElement()?(d=(f=r.getBoundingClientRect()).top,y=f.left,b=f.bottom,p=f.right,x=f.height,g=f.width):(d=0,y=0,b=window.innerHeight,p=window.innerWidth,x=window.innerHeight,g=window.innerWidth),(i||t)&&r!==window&&(c=c||r.parentNode,!IE11OrLess))do if(c&&c.getBoundingClientRect&&(css(c,"transform")!=="none"||t&&css(c,"position")!=="static")){var A=c.getBoundingClientRect();d-=A.top+parseInt(css(c,"border-top-width")),y-=A.left+parseInt(css(c,"border-left-width")),b=d+f.height,p=y+f.width;break}while(c=c.parentNode);if(s&&r!==window){var w=matrix(c||r),E=w&&w.a,_=w&&w.d;w&&(b=(d/=_)+(x/=_),p=(y/=E)+(g/=E))}return{top:d,left:y,bottom:b,right:p,width:g,height:x}}}function isScrolledPast(r,i,t){for(var s=getParentAutoScrollElement(r,!0),c=getRect(r)[i];s;){var f=getRect(s)[t];if(!(t==="top"||t==="left"?c>=f:c<=f))return s;if(s===getWindowScrollingElement())break;s=getParentAutoScrollElement(s,!1)}return!1}function getChild(r,i,t,s){for(var c=0,f=0,d=r.children;f<d.length;){if(d[f].style.display!=="none"&&d[f]!==Sortable.ghost&&(s||d[f]!==Sortable.dragged)&&closest(d[f],t.draggable,r,!1)){if(c===i)return d[f];c++}f++}return null}function lastChild(r,i){for(var t=r.lastElementChild;t&&(t===Sortable.ghost||css(t,"display")==="none"||i&&!matches(t,i));)t=t.previousElementSibling;return t||null}function index$1(r,i){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==Sortable.clone&&(!i||matches(r,i))&&t++;return t}function getRelativeScrollOffset(r){var i=0,t=0,s=getWindowScrollingElement();if(r)do{var c=matrix(r),f=c.a,d=c.d;i+=r.scrollLeft*f,t+=r.scrollTop*d}while(r!==s&&(r=r.parentNode));return[i,t]}function indexOfObject(r,i){for(var t in r)if(r.hasOwnProperty(t)){for(var s in i)if(i.hasOwnProperty(s)&&i[s]===r[t][s])return Number(t)}return-1}function getParentAutoScrollElement(r,i){if(!r||!r.getBoundingClientRect)return getWindowScrollingElement();var t=r,s=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var c=css(t);if(t.clientWidth<t.scrollWidth&&(c.overflowX=="auto"||c.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(c.overflowY=="auto"||c.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return getWindowScrollingElement();if(s||i)return t;s=!0}}while(t=t.parentNode);return getWindowScrollingElement()}function extend(r,i){if(r&&i)for(var t in i)i.hasOwnProperty(t)&&(r[t]=i[t]);return r}function isRectEqual(r,i){return Math.round(r.top)===Math.round(i.top)&&Math.round(r.left)===Math.round(i.left)&&Math.round(r.height)===Math.round(i.height)&&Math.round(r.width)===Math.round(i.width)}function throttle(r,i){return function(){if(!_throttleTimeout){var t=arguments;t.length===1?r.call(this,t[0]):r.apply(this,t),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},i)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(r,i,t){r.scrollLeft+=i,r.scrollTop+=t}function clone(r){var i=window.Polymer,t=window.jQuery||window.Zepto;return i&&i.dom?i.dom(r).cloneNode(!0):t?t(r).clone(!0)[0]:r.cloneNode(!0)}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var r,i=[];return{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(css(t,"display")!=="none"&&t!==Sortable.ghost){i.push({target:t,rect:getRect(t)});var s=_objectSpread2$1({},i[i.length-1].rect);if(t.thisAnimationDuration){var c=matrix(t,!0);c&&(s.top-=c.f,s.left-=c.e)}t.fromRect=s}})},addAnimationState:function(t){i.push(t)},removeAnimationState:function(t){i.splice(indexOfObject(i,{target:t}),1)},animateAll:function(t){var s=this;if(!this.options.animation)return clearTimeout(r),void(typeof t=="function"&&t());var c=!1,f=0;i.forEach(function(d){var y=0,b=d.target,p=b.fromRect,x=getRect(b),g=b.prevFromRect,A=b.prevToRect,w=d.rect,E=matrix(b,!0);E&&(x.top-=E.f,x.left-=E.e),b.toRect=x,b.thisAnimationDuration&&isRectEqual(g,x)&&!isRectEqual(p,x)&&(w.top-x.top)/(w.left-x.left)==(p.top-x.top)/(p.left-x.left)&&(y=calculateRealTime(w,g,A,s.options)),isRectEqual(x,p)||(b.prevFromRect=p,b.prevToRect=x,y||(y=s.options.animation),s.animate(b,w,x,y)),y&&(c=!0,f=Math.max(f,y),clearTimeout(b.animationResetTimer),b.animationResetTimer=setTimeout(function(){b.animationTime=0,b.prevFromRect=null,b.fromRect=null,b.prevToRect=null,b.thisAnimationDuration=null},y),b.thisAnimationDuration=y)}),clearTimeout(r),c?r=setTimeout(function(){typeof t=="function"&&t()},f):typeof t=="function"&&t(),i=[]},animate:function(t,s,c,f){if(f){css(t,"transition",""),css(t,"transform","");var d=matrix(this.el),y=d&&d.a,b=d&&d.d,p=(s.left-c.left)/(y||1),x=(s.top-c.top)/(b||1);t.animatingX=!!p,t.animatingY=!!x,css(t,"transform","translate3d("+p+"px,"+x+"px,0)"),this.forRepaintDummy=repaint(t),css(t,"transition","transform "+f+"ms"+(this.options.easing?" "+this.options.easing:"")),css(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){css(t,"transition",""),css(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},f)}}}}function repaint(r){return r.offsetWidth}function calculateRealTime(r,i,t,s){return Math.sqrt(Math.pow(i.top-r.top,2)+Math.pow(i.left-r.left,2))/Math.sqrt(Math.pow(i.top-t.top,2)+Math.pow(i.left-t.left,2))*s.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function(r){for(var i in defaults)defaults.hasOwnProperty(i)&&!(i in r)&&(r[i]=defaults[i]);plugins.forEach(function(t){if(t.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),plugins.push(r)},pluginEvent:function(r,i,t){var s=this;this.eventCanceled=!1,t.cancel=function(){s.eventCanceled=!0};var c=r+"Global";plugins.forEach(function(f){!i[f.pluginName]||(i[f.pluginName][c]&&i[f.pluginName][c](_objectSpread2$1({sortable:i},t)),i.options[f.pluginName]&&i[f.pluginName][r]&&i[f.pluginName][r](_objectSpread2$1({sortable:i},t)))})},initializePlugins:function(r,i,t,s){for(var c in plugins.forEach(function(d){var y=d.pluginName;if(r.options[y]||d.initializeByDefault){var b=new d(r,i,r.options);b.sortable=r,b.options=r.options,r[y]=b,_extends$1(t,b.defaults)}}),r.options)if(r.options.hasOwnProperty(c)){var f=this.modifyOption(r,c,r.options[c]);typeof f<"u"&&(r.options[c]=f)}},getEventProperties:function(r,i){var t={};return plugins.forEach(function(s){typeof s.eventProperties=="function"&&_extends$1(t,s.eventProperties.call(i[s.pluginName],r))}),t},modifyOption:function(r,i,t){var s;return plugins.forEach(function(c){!r[c.pluginName]||c.optionListeners&&typeof c.optionListeners[i]=="function"&&(s=c.optionListeners[i].call(r[c.pluginName],t))}),s}};function dispatchEvent(r){var i=r.sortable,t=r.rootEl,s=r.name,c=r.targetEl,f=r.cloneEl,d=r.toEl,y=r.fromEl,b=r.oldIndex,p=r.newIndex,x=r.oldDraggableIndex,g=r.newDraggableIndex,A=r.originalEvent,w=r.putSortable,E=r.extraEventProperties;if(i=i||t&&t[expando]){var _,D=i.options,C="on"+s.charAt(0).toUpperCase()+s.substr(1);!window.CustomEvent||IE11OrLess||Edge?(_=document.createEvent("Event")).initEvent(s,!0,!0):_=new CustomEvent(s,{bubbles:!0,cancelable:!0}),_.to=d||t,_.from=y||t,_.item=c||t,_.clone=f,_.oldIndex=b,_.newIndex=p,_.oldDraggableIndex=x,_.newDraggableIndex=g,_.originalEvent=A,_.pullMode=w?w.lastPutMode:void 0;var M=_objectSpread2$1(_objectSpread2$1({},E),PluginManager.getEventProperties(s,i));for(var T in M)_[T]=M[T];t&&t.dispatchEvent(_),D[C]&&D[C].call(i,_)}}var _excluded=["evt"],pluginEvent=function(r,i){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=t.evt,c=_objectWithoutProperties(t,_excluded);PluginManager.pluginEvent.bind(Sortable)(r,i,_objectSpread2$1({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:s,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(f){_dispatchEvent({sortable:i,name:f,originalEvent:s})}},c))};function _dispatchEvent(r){dispatchEvent(_objectSpread2$1({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},r))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),_detectDirection=function(r,i){var t=css(r),s=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),c=getChild(r,0,i),f=getChild(r,1,i),d=c&&css(c),y=f&&css(f),b=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+getRect(c).width,p=y&&parseInt(y.marginLeft)+parseInt(y.marginRight)+getRect(f).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&d.float&&d.float!=="none"){var x=d.float==="left"?"left":"right";return!f||y.clear!=="both"&&y.clear!==x?"horizontal":"vertical"}return c&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||b>=s&&t[CSSFloatProperty]==="none"||f&&t[CSSFloatProperty]==="none"&&b+p>s)?"vertical":"horizontal"},_dragElInRowColumn=function(r,i,t){var s=t?r.left:r.top,c=t?r.right:r.bottom,f=t?r.width:r.height,d=t?i.left:i.top,y=t?i.right:i.bottom,b=t?i.width:i.height;return s===d||c===y||s+f/2===d+b/2},_detectNearestEmptySortable=function(r,i){var t;return sortables.some(function(s){var c=s[expando].options.emptyInsertThreshold;if(c&&!lastChild(s)){var f=getRect(s),d=r>=f.left-c&&r<=f.right+c,y=i>=f.top-c&&i<=f.bottom+c;if(d&&y)return t=s}}),t},_prepareGroup=function(r){function i(c,f){return function(d,y,b,p){var x=d.options.group.name&&y.options.group.name&&d.options.group.name===y.options.group.name;if(c==null&&(f||x))return!0;if(c==null||c===!1)return!1;if(f&&c==="clone")return c;if(typeof c=="function")return i(c(d,y,b,p),f)(d,y,b,p);var g=(f?d:y).options.group.name;return c===!0||typeof c=="string"&&c===g||c.join&&c.indexOf(g)>-1}}var t={},s=r.group;(!s||_typeof$1(s)!="object")&&(s={name:s}),t.name=s.name,t.checkPull=i(s.pull,!0),t.checkPut=i(s.put),t.revertClone=s.revertClone,r.group=t},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",function(r){if(ignoreNextClick)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function(r){if(dragEl){r=r.touches?r.touches[0]:r;var i=_detectNearestEmptySortable(r.clientX,r.clientY);if(i){var t={};for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s]);t.target=t.rootEl=i,t.preventDefault=void 0,t.stopPropagation=void 0,i[expando]._onDragOver(t)}}},_checkOutsideTargetEl=function(r){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(r.target)};function Sortable(r,i){if(!r||!r.nodeType||r.nodeType!==1)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=i=_extends$1({},i),r[expando]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(f,d){f.setData("Text",d.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:Sortable.supportPointer!==!1&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};for(var s in PluginManager.initializePlugins(this,r,t),t)!(s in i)&&(i[s]=t[s]);for(var c in _prepareGroup(i),this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=!i.forceFallback&&supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?on(r,"pointerdown",this._onTapStart):(on(r,"mousedown",this._onTapStart),on(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(r,"dragover",this),on(r,"dragenter",this)),sortables.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),_extends$1(this,AnimationStateManager())}function _globalDragOver(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function _onMove(r,i,t,s,c,f,d,y){var b,p,x=r[expando],g=x.options.onMove;return!window.CustomEvent||IE11OrLess||Edge?(b=document.createEvent("Event")).initEvent("move",!0,!0):b=new CustomEvent("move",{bubbles:!0,cancelable:!0}),b.to=i,b.from=r,b.dragged=t,b.draggedRect=s,b.related=c||i,b.relatedRect=f||getRect(i),b.willInsertAfter=y,b.originalEvent=d,r.dispatchEvent(b),g&&(p=g.call(x,b,d)),p}function _disableDraggable(r){r.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(r,i,t){var s=getRect(getChild(t.el,0,t.options,!0));return i?r.clientX<s.left-10||r.clientY<s.top&&r.clientX<s.right:r.clientY<s.top-10||r.clientY<s.bottom&&r.clientX<s.left}function _ghostIsLast(r,i,t){var s=getRect(lastChild(t.el,t.options.draggable));return i?r.clientX>s.right+10||r.clientX<=s.right&&r.clientY>s.bottom&&r.clientX>=s.left:r.clientX>s.right&&r.clientY>s.top||r.clientX<=s.right&&r.clientY>s.bottom+10}function _getSwapDirection(r,i,t,s,c,f,d,y){var b=s?r.clientY:r.clientX,p=s?t.height:t.width,x=s?t.top:t.left,g=s?t.bottom:t.right,A=!1;if(!d){if(y&&targetMoveDistance<p*c){if(!pastFirstInvertThresh&&(lastDirection===1?b>x+p*f/2:b<g-p*f/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)A=!0;else if(lastDirection===1?b<x+targetMoveDistance:b>g-targetMoveDistance)return-lastDirection}else if(b>x+p*(1-c)/2&&b<g-p*(1-c)/2)return _getInsertDirection(i)}return(A=A||d)&&(b<x+p*f/2||b>g-p*f/2)?b>x+p/2?1:-1:0}function _getInsertDirection(r){return index$1(dragEl)<index$1(r)?1:-1}function _generateId(r){for(var i=r.tagName+r.className+r.src+r.href+r.textContent,t=i.length,s=0;t--;)s+=i.charCodeAt(t);return s.toString(36)}function _saveInputCheckedState(r){savedInputChecked.length=0;for(var i=r.getElementsByTagName("input"),t=i.length;t--;){var s=i[t];s.checked&&savedInputChecked.push(s)}}function _nextTick(r){return setTimeout(r,0)}function _cancelNextTick(r){return clearTimeout(r)}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(lastTarget=null)},_getDirection:function(r,i){return typeof this.options.direction=="function"?this.options.direction.call(this,r,i,dragEl):this.options.direction},_onTapStart:function(r){if(r.cancelable){var i=this,t=this.el,s=this.options,c=s.preventOnFilter,f=r.type,d=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,y=(d||r).target,b=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||y,p=s.filter;if(_saveInputCheckedState(t),!dragEl&&!(/mousedown|pointerdown/.test(f)&&r.button!==0||s.disabled)&&!b.isContentEditable&&(this.nativeDraggable||!Safari||!y||y.tagName.toUpperCase()!=="SELECT")&&!((y=closest(y,s.draggable,t,!1))&&y.animated||lastDownEl===y)){if(oldIndex=index$1(y),oldDraggableIndex=index$1(y,s.draggable),typeof p=="function"){if(p.call(this,r,y,this))return _dispatchEvent({sortable:i,rootEl:b,name:"filter",targetEl:y,toEl:t,fromEl:t}),pluginEvent("filter",i,{evt:r}),void(c&&r.cancelable&&r.preventDefault())}else if(p&&(p=p.split(",").some(function(x){if(x=closest(b,x.trim(),t,!1))return _dispatchEvent({sortable:i,rootEl:x,name:"filter",targetEl:y,fromEl:t,toEl:t}),pluginEvent("filter",i,{evt:r}),!0})))return void(c&&r.cancelable&&r.preventDefault());s.handle&&!closest(b,s.handle,t,!1)||this._prepareDragStart(r,d,y)}}},_prepareDragStart:function(r,i,t){var s,c=this,f=c.el,d=c.options,y=f.ownerDocument;if(t&&!dragEl&&t.parentNode===f){var b=getRect(t);if(rootEl=f,parentEl=(dragEl=t).parentNode,nextEl=dragEl.nextSibling,lastDownEl=t,activeGroup=d.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(i||r).clientX,clientY:(i||r).clientY},tapDistanceLeft=tapEvt.clientX-b.left,tapDistanceTop=tapEvt.clientY-b.top,this._lastX=(i||r).clientX,this._lastY=(i||r).clientY,dragEl.style["will-change"]="all",s=function(){pluginEvent("delayEnded",c,{evt:r}),Sortable.eventCanceled?c._onDrop():(c._disableDelayedDragEvents(),!FireFox&&c.nativeDraggable&&(dragEl.draggable=!0),c._triggerDragStart(r,i),_dispatchEvent({sortable:c,name:"choose",originalEvent:r}),toggleClass(dragEl,d.chosenClass,!0))},d.ignore.split(",").forEach(function(p){find(dragEl,p.trim(),_disableDraggable)}),on(y,"dragover",nearestEmptyInsertDetectEvent),on(y,"mousemove",nearestEmptyInsertDetectEvent),on(y,"touchmove",nearestEmptyInsertDetectEvent),on(y,"mouseup",c._onDrop),on(y,"touchend",c._onDrop),on(y,"touchcancel",c._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:r}),!d.delay||d.delayOnTouchOnly&&!i||this.nativeDraggable&&(Edge||IE11OrLess))s();else{if(Sortable.eventCanceled)return void this._onDrop();on(y,"mouseup",c._disableDelayedDrag),on(y,"touchend",c._disableDelayedDrag),on(y,"touchcancel",c._disableDelayedDrag),on(y,"mousemove",c._delayedDragTouchMoveHandler),on(y,"touchmove",c._delayedDragTouchMoveHandler),d.supportPointer&&on(y,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(s,d.delay)}}},_delayedDragTouchMoveHandler:function(r){var i=r.touches?r.touches[0]:r;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;off(r,"mouseup",this._disableDelayedDrag),off(r,"touchend",this._disableDelayedDrag),off(r,"touchcancel",this._disableDelayedDrag),off(r,"mousemove",this._delayedDragTouchMoveHandler),off(r,"touchmove",this._delayedDragTouchMoveHandler),off(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,i){i=i||r.pointerType=="touch"&&r,!this.nativeDraggable||i?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):on(document,i?"touchmove":"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,i){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:i}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var t=this.options;!r&&toggleClass(dragEl,t.dragClass,!1),toggleClass(dragEl,t.ghostClass,!0),Sortable.active=this,r&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var r=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),i=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY))!==i;)i=r;if(dragEl.parentNode[expando]._isOutsideThisEl(r),i)do{if(i[expando]&&i[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:r,rootEl:i})&&!this.options.dragoverBubble)break;r=i}while(i=i.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(r){if(tapEvt){var i=this.options,t=i.fallbackTolerance,s=i.fallbackOffset,c=r.touches?r.touches[0]:r,f=ghostEl&&matrix(ghostEl,!0),d=ghostEl&&f&&f.a,y=ghostEl&&f&&f.d,b=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),p=(c.clientX-tapEvt.clientX+s.x)/(d||1)+(b?b[0]-ghostRelativeParentInitialScroll[0]:0)/(d||1),x=(c.clientY-tapEvt.clientY+s.y)/(y||1)+(b?b[1]-ghostRelativeParentInitialScroll[1]:0)/(y||1);if(!Sortable.active&&!awaitingDragStarted){if(t&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(ghostEl){f?(f.e+=p-(lastDx||0),f.f+=x-(lastDy||0)):f={a:1,b:0,c:0,d:1,e:p,f:x};var g="matrix(".concat(f.a,",").concat(f.b,",").concat(f.c,",").concat(f.d,",").concat(f.e,",").concat(f.f,")");css(ghostEl,"webkitTransform",g),css(ghostEl,"mozTransform",g),css(ghostEl,"msTransform",g),css(ghostEl,"transform",g),lastDx=p,lastDy=x,touchEvt=c}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!ghostEl){var r=this.options.fallbackOnBody?document.body:rootEl,i=getRect(dragEl,!0,PositionGhostAbsolutely,!0,r),t=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=r;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),i.top+=ghostRelativeParent.scrollTop,i.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}toggleClass(ghostEl=dragEl.cloneNode(!0),t.ghostClass,!1),toggleClass(ghostEl,t.fallbackClass,!0),toggleClass(ghostEl,t.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",i.top),css(ghostEl,"left",i.left),css(ghostEl,"width",i.width),css(ghostEl,"height",i.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,r.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(r,i){var t=this,s=r.dataTransfer,c=t.options;pluginEvent("dragStart",this,{evt:r}),Sortable.eventCanceled?this._onDrop():(pluginEvent("setupClone",this),Sortable.eventCanceled||((cloneEl=clone(dragEl)).draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),t.cloneId=_nextTick(function(){pluginEvent("clone",t),!Sortable.eventCanceled&&(t.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),t._hideClone(),_dispatchEvent({sortable:t,name:"clone"}))}),!i&&toggleClass(dragEl,c.dragClass,!0),i?(ignoreNextClick=!0,t._loopId=setInterval(t._emulateDragOver,50)):(off(document,"mouseup",t._onDrop),off(document,"touchend",t._onDrop),off(document,"touchcancel",t._onDrop),s&&(s.effectAllowed="move",c.setData&&c.setData.call(t,s,dragEl)),on(document,"drop",t),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,t._dragStartId=_nextTick(t._dragStarted.bind(t,i,r)),on(document,"selectstart",t),moved=!0,Safari&&css(document.body,"user-select","none"))},_onDragOver:function(r){var i,t,s,c,f=this.el,d=r.target,y=this.options,b=y.group,p=Sortable.active,x=activeGroup===b,g=y.sort,A=putSortable||p,w=this,E=!1;if(!_silent){if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),d=closest(d,y.draggable,f,!0),z("dragOver"),Sortable.eventCanceled)return E;if(dragEl.contains(r.target)||d.animated&&d.animatingX&&d.animatingY||w._ignoreWhileAnimating===d)return G(!1);if(ignoreNextClick=!1,p&&!y.disabled&&(x?g||(s=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,p,dragEl,r))&&b.checkPut(this,p,dragEl,r))){if(c=this._getDirection(r,d)==="vertical",i=getRect(dragEl),z("dragOverValid"),Sortable.eventCanceled)return E;if(s)return parentEl=rootEl,U(),this._hideClone(),z("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),G(!0);var _=lastChild(f,y.draggable);if(!_||_ghostIsLast(r,c,this)&&!_.animated){if(_===dragEl)return G(!1);if(_&&f===r.target&&(d=_),d&&(t=getRect(d)),_onMove(rootEl,f,dragEl,i,d,t,r,!!d)!==!1)return U(),f.appendChild(dragEl),parentEl=f,J(),G(!0)}else if(_&&_ghostIsFirst(r,c,this)){var D=getChild(f,0,y,!0);if(D===dragEl)return G(!1);if(t=getRect(d=D),_onMove(rootEl,f,dragEl,i,d,t,r,!1)!==!1)return U(),f.insertBefore(dragEl,D),parentEl=f,J(),G(!0)}else if(d.parentNode===f){t=getRect(d);var C,M,T,N=dragEl.parentNode!==f,P=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||i,d.animated&&d.toRect||t,c),$=c?"top":"left",L=isScrolledPast(d,"top","top")||isScrolledPast(dragEl,"top","top"),F=L?L.scrollTop:void 0;if(lastTarget!==d&&(M=t[$],pastFirstInvertThresh=!1,isCircumstantialInvert=!P&&y.invertSwap||N),(C=_getSwapDirection(r,d,t,c,P?1:y.swapThreshold,y.invertedSwapThreshold==null?y.swapThreshold:y.invertedSwapThreshold,isCircumstantialInvert,lastTarget===d))!==0){var R=index$1(dragEl);do R-=C,T=parentEl.children[R];while(T&&(css(T,"display")==="none"||T===ghostEl))}if(C===0||T===d)return G(!1);lastTarget=d,lastDirection=C;var I=d.nextElementSibling,V=!1,j=_onMove(rootEl,f,dragEl,i,d,t,r,V=C===1);if(j!==!1)return(j===1||j===-1)&&(V=j===1),_silent=!0,setTimeout(_unsilent,30),U(),V&&!I?f.appendChild(dragEl):d.parentNode.insertBefore(dragEl,V?I:d),L&&scrollBy(L,0,F-L.scrollTop),parentEl=dragEl.parentNode,M!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(M-getRect(d)[$])),J(),G(!0)}if(f.contains(dragEl))return G(!1)}return!1}function z(q,ee){pluginEvent(q,w,_objectSpread2$1({evt:r,isOwner:x,axis:c?"vertical":"horizontal",revert:s,dragRect:i,targetRect:t,canSort:g,fromSortable:A,target:d,completed:G,onMove:function(te,ce){return _onMove(rootEl,f,dragEl,i,te,getRect(te),r,ce)},changed:J},ee))}function U(){z("dragOverAnimationCapture"),w.captureAnimationState(),w!==A&&A.captureAnimationState()}function G(q){return z("dragOverCompleted",{insertion:q}),q&&(x?p._hideClone():p._showClone(w),w!==A&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:p.options.ghostClass,!1),toggleClass(dragEl,y.ghostClass,!0)),putSortable!==w&&w!==Sortable.active?putSortable=w:w===Sortable.active&&putSortable&&(putSortable=null),A===w&&(w._ignoreWhileAnimating=d),w.animateAll(function(){z("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==A&&(A.animateAll(),A._ignoreWhileAnimating=null)),(d===dragEl&&!dragEl.animated||d===f&&!d.animated)&&(lastTarget=null),!y.dragoverBubble&&!r.rootEl&&d!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(r.target),!q&&nearestEmptyInsertDetectEvent(r)),!y.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),E=!0}function J(){newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,y.draggable),_dispatchEvent({sortable:w,name:"change",toEl:f,newIndex,newDraggableIndex,originalEvent:r})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var r=this.el.ownerDocument;off(r,"mouseup",this._onDrop),off(r,"touchend",this._onDrop),off(r,"pointerup",this._onDrop),off(r,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(r){var i=this.el,t=this.options;newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,t.draggable),pluginEvent("drop",this,{evt:r}),parentEl=dragEl&&dragEl.parentNode,newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,t.draggable),Sortable.eventCanceled||(awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),r&&(moved&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:r}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:r}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:r}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:r}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:r})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:r}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:r})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:r}),this.save())))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(r){r.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(r),_globalDragOver(r));break;case"selectstart":r.preventDefault()}},toArray:function(){for(var r,i=[],t=this.el.children,s=0,c=t.length,f=this.options;s<c;s++)closest(r=t[s],f.draggable,this.el,!1)&&i.push(r.getAttribute(f.dataIdAttr)||_generateId(r));return i},sort:function(r,i){var t={},s=this.el;this.toArray().forEach(function(c,f){var d=s.children[f];closest(d,this.options.draggable,s,!1)&&(t[c]=d)},this),i&&this.captureAnimationState(),r.forEach(function(c){t[c]&&(s.removeChild(t[c]),s.appendChild(t[c]))}),i&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,i){return closest(r,i||this.options.draggable,this.el,!1)},option:function(r,i){var t=this.options;if(i===void 0)return t[r];var s=PluginManager.modifyOption(this,r,i);t[r]=typeof s<"u"?s:i,r==="group"&&_prepareGroup(t)},destroy:function(){pluginEvent("destroy",this);var r=this.el;r[expando]=null,off(r,"mousedown",this._onTapStart),off(r,"touchstart",this._onTapStart),off(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(r,"dragover",this),off(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(r){if(r.lastPutMode==="clone"){if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode!=rootEl||this.options.group.revertClone?nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl):rootEl.insertBefore(cloneEl,dragEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}else this._hideClone()}},documentExists&&on(document,"touchmove",function(r){(Sortable.active||awaitingDragStarted)&&r.cancelable&&r.preventDefault()}),Sortable.utils={on,off,css,find,is:function(r,i){return!!closest(r,i,r,!1)},extend,throttle,closest,toggleClass,clone,index:index$1,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild},Sortable.get=function(r){return r[expando]},Sortable.mount=function(){for(var r=arguments.length,i=new Array(r),t=0;t<r;t++)i[t]=arguments[t];i[0].constructor===Array&&(i=i[0]),i.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(Sortable.utils=_objectSpread2$1(_objectSpread2$1({},Sortable.utils),s.utils)),PluginManager.mount(s)})},Sortable.create=function(r,i){return new Sortable(r,i)},Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function r(){for(var i in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this))}return r.prototype={dragStarted:function(i){var t=i.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):t.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var t=i.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,t){var s=this,c=(i.touches?i.touches[0]:i).clientX,f=(i.touches?i.touches[0]:i).clientY,d=document.elementFromPoint(c,f);if(touchEvt$1=i,t||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(i,this.options,d,t);var y=getParentAutoScrollElement(d,!0);scrolling&&(!pointerElemChangedInterval||c!==lastAutoScrollX||f!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var b=getParentAutoScrollElement(document.elementFromPoint(c,f),!0);b!==y&&(y=b,clearAutoScrolls()),autoScroll(i,s.options,b,t)},10),lastAutoScrollX=c,lastAutoScrollY=f)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(d,!0)===getWindowScrollingElement())return void clearAutoScrolls();autoScroll(i,this.options,getParentAutoScrollElement(d,!1),!1)}}},_extends$1(r,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(r){clearInterval(r.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(r,i,t,s){if(i.scroll){var c,f=(r.touches?r.touches[0]:r).clientX,d=(r.touches?r.touches[0]:r).clientY,y=i.scrollSensitivity,b=i.scrollSpeed,p=getWindowScrollingElement(),x=!1;scrollRootEl!==t&&(scrollRootEl=t,clearAutoScrolls(),scrollEl=i.scroll,c=i.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(t,!0)));var g=0,A=scrollEl;do{var w=A,E=getRect(w),_=E.top,D=E.bottom,C=E.left,M=E.right,T=E.width,N=E.height,P=void 0,$=void 0,L=w.scrollWidth,F=w.scrollHeight,R=css(w),I=w.scrollLeft,V=w.scrollTop;w===p?(P=T<L&&(R.overflowX==="auto"||R.overflowX==="scroll"||R.overflowX==="visible"),$=N<F&&(R.overflowY==="auto"||R.overflowY==="scroll"||R.overflowY==="visible")):(P=T<L&&(R.overflowX==="auto"||R.overflowX==="scroll"),$=N<F&&(R.overflowY==="auto"||R.overflowY==="scroll"));var j=P&&(Math.abs(M-f)<=y&&I+T<L)-(Math.abs(C-f)<=y&&!!I),z=$&&(Math.abs(D-d)<=y&&V+N<F)-(Math.abs(_-d)<=y&&!!V);if(!autoScrolls[g])for(var U=0;U<=g;U++)autoScrolls[U]||(autoScrolls[U]={});(autoScrolls[g].vx!=j||autoScrolls[g].vy!=z||autoScrolls[g].el!==w)&&(autoScrolls[g].el=w,autoScrolls[g].vx=j,autoScrolls[g].vy=z,clearInterval(autoScrolls[g].pid),(j!=0||z!=0)&&(x=!0,autoScrolls[g].pid=setInterval((function(){s&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var G=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*b:0,J=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*b:0;typeof c=="function"&&c.call(Sortable.dragged.parentNode[expando],J,G,r,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,J,G)}).bind({layer:g}),24))),g++}while(i.bubbleScroll&&A!==p&&(A=getParentAutoScrollElement(A,!1)));scrolling=x}},30),drop=function(r){var i=r.originalEvent,t=r.putSortable,s=r.dragEl,c=r.activeSortable,f=r.dispatchSortableEvent,d=r.hideGhostForTarget,y=r.unhideGhostForTarget;if(i){var b=t||c;d();var p=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,x=document.elementFromPoint(p.clientX,p.clientY);y(),b&&!b.el.contains(x)&&(f("spill"),this.onSpill({dragEl:s,putSortable:t}))}};function Revert(){}function Remove(){}function removeNode(r){r.parentElement!==null&&r.parentElement.removeChild(r)}function insertNodeAt(r,i,t){const s=t===0?r.children[0]:r.children[t-1].nextSibling;r.insertBefore(i,s)}function getConsole(){return typeof window<"u"?window.console:global.console}Revert.prototype={startIndex:null,dragStart:function(r){var i=r.oldDraggableIndex;this.startIndex=i},onSpill:function(r){var i=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var s=getChild(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(i,s):this.sortable.el.appendChild(i),this.sortable.animateAll(),t&&t.animateAll()},drop},_extends$1(Revert,{pluginName:"revertOnSpill"}),Remove.prototype={onSpill:function(r){var i=r.dragEl,t=r.putSortable||this.sortable;t.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),t.animateAll()},drop},_extends$1(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);const console$1=getConsole();function cached(r){const i=Object.create(null);return function(t){return i[t]||(i[t]=r(t))}}const regex=/-(\w)/g,camelize=cached(r=>r.replace(regex,(i,t)=>t.toUpperCase())),manageAndEmit$1=["Start","Add","Remove","Update","End"],emit$1=["Choose","Unchoose","Sort","Filter","Clone"],manage$1=["Move"],eventHandlerNames=[manage$1,manageAndEmit$1,emit$1].flatMap(r=>r).map(r=>`on${r}`),events={manage:manage$1,manageAndEmit:manageAndEmit$1,emit:emit$1};function isReadOnly(r){return eventHandlerNames.indexOf(r)!==-1}const tags=["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 isHtmlTag(r){return tags.includes(r)}function isTransition(r){return["transition-group","TransitionGroup"].includes(r)}function isHtmlAttribute(r){return["id","class","role","style"].includes(r)||r.startsWith("data-")||r.startsWith("aria-")||r.startsWith("on")}function project(r){return r.reduce((i,[t,s])=>(i[t]=s,i),{})}function getComponentAttributes({$attrs:r,componentData:i={}}){return{...project(Object.entries(r).filter(([t,s])=>isHtmlAttribute(t))),...i}}function createSortableOption({$attrs:r,callBackBuilder:i}){const t=project(getValidSortableEntries(r));Object.entries(i).forEach(([c,f])=>{events[c].forEach(d=>{t[`on${d}`]=f(d)})});const s=`[data-draggable]${t.draggable||""}`;return{...t,draggable:s}}function getValidSortableEntries(r){return Object.entries(r).filter(([i,t])=>!isHtmlAttribute(i)).map(([i,t])=>[camelize(i),t]).filter(([i,t])=>!isReadOnly(i))}const getHtmlElementFromNode=({el:r})=>r,addContext=(r,i)=>r.__draggable_context=i,getContext=r=>r.__draggable_context;class ComponentStructure{constructor({nodes:{header:i,default:t,footer:s},root:c,realList:f}){this.defaultNodes=t,this.children=[...i,...t,...s],this.externalComponent=c.externalComponent,this.rootTransition=c.transition,this.tag=c.tag,this.realList=f}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(i,t){const{tag:s,children:c,_isRootComponent:f}=this;return i(s,t,f?{default:()=>c}:c)}updated(){const{defaultNodes:i,realList:t}=this;i.forEach((s,c)=>{addContext(getHtmlElementFromNode(s),{element:t[c],index:c})})}getUnderlyingVm(i){return getContext(i)}getVmIndexFromDomIndex(i,t){const{defaultNodes:s}=this,{length:c}=s,f=t.children,d=f.item(i);if(d===null)return c;const y=getContext(d);if(y)return y.index;if(c===0)return 0;const b=getHtmlElementFromNode(s[0]);return i<[...f].findIndex(p=>p===b)?0:c}}function getSlot(r,i){const t=r[i];return t?t():[]}function computeNodes({$slots:r,realList:i,getKey:t}){const s=i||[],[c,f]=["header","footer"].map(b=>getSlot(r,b)),{item:d}=r;if(!d)throw new Error("draggable element must have an item slot");const y=s.flatMap((b,p)=>d({element:b,index:p}).map(x=>(x.key=t(b),x.props={...x.props||{},"data-draggable":!0},x)));if(y.length!==s.length)throw new Error("Item slot must have only one child");return{header:c,footer:f,default:y}}function getRootInformation(r){const i=isTransition(r),t=!isHtmlTag(r)&&!i;return{transition:i,externalComponent:t,tag:t?resolveComponent(r):i?TransitionGroup:r}}function computeComponentStructure({$slots:r,tag:i,realList:t,getKey:s}){const c=computeNodes({$slots:r,realList:t,getKey:s}),f=getRootInformation(i);return new ComponentStructure({nodes:c,root:f,realList:t})}function emit(r,i){nextTick(()=>this.$emit(r.toLowerCase(),i))}function manage(r){return(i,t)=>{if(this.realList!==null)return this[`onDrag${r}`](i,t)}}function manageAndEmit(r){const i=manage.call(this,r);return(t,s)=>{i.call(this,t,s),emit.call(this,r,t)}}let draggingElement=null;const props={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:r=>r},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},emits=["update:modelValue","change",...[...events.manageAndEmit,...events.emit].map(r=>r.toLowerCase())],draggableComponent=defineComponent({name:"draggable",inheritAttrs:!1,props,emits,data:()=>({error:!1}),render(){try{this.error=!1;const{$slots:r,$attrs:i,tag:t,componentData:s,realList:c,getKey:f}=this,d=computeComponentStructure({$slots:r,tag:t,realList:c,getKey:f});this.componentStructure=d;const y=getComponentAttributes({$attrs:i,componentData:s});return d.render(h,y)}catch(r){return this.error=!0,h("pre",{style:{color:"red"}},r.stack)}},created(){this.list!==null&&this.modelValue!==null&&console$1.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:r,$el:i,componentStructure:t}=this;t.updated();const s=createSortableOption({$attrs:r,callBackBuilder:{manageAndEmit:f=>manageAndEmit.call(this,f),emit:f=>emit.bind(this,f),manage:f=>manage.call(this,f)}}),c=i.nodeType===1?i:i.parentElement;this._sortable=new Sortable(c,s),this.targetDomElement=c,c.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:r}=this;return r||this.modelValue},getKey(){const{itemKey:r}=this;return typeof r=="function"?r:i=>i[r]}},watch:{$attrs:{handler(r){const{_sortable:i}=this;!i||getValidSortableEntries(r).forEach(([t,s])=>{i.option(t,s)})},deep:!0}},methods:{getUnderlyingVm(r){return this.componentStructure.getUnderlyingVm(r)||null},getUnderlyingPotencialDraggableComponent:r=>r.__draggable_component__,emitChanges(r){nextTick(()=>this.$emit("change",r))},alterList(r){if(this.list)return void r(this.list);const i=[...this.modelValue];r(i),this.$emit("update:modelValue",i)},spliceList(){this.alterList(r=>r.splice(...arguments))},updatePosition(r,i){this.alterList(t=>t.splice(i,0,t.splice(r,1)[0]))},getRelatedContextFromMoveEvent({to:r,related:i}){const t=this.getUnderlyingPotencialDraggableComponent(r);if(!t)return{component:t};const s=t.realList,c={list:s,component:t};return r!==i&&s?{...t.getUnderlyingVm(i)||{},...c}:c},getVmIndexFromDomIndex(r){return this.componentStructure.getVmIndexFromDomIndex(r,this.targetDomElement)},onDragStart(r){this.context=this.getUnderlyingVm(r.item),r.item._underlying_vm_=this.clone(this.context.element),draggingElement=r.item},onDragAdd(r){const i=r.item._underlying_vm_;if(i===void 0)return;removeNode(r.item);const t=this.getVmIndexFromDomIndex(r.newIndex);this.spliceList(t,0,i);const s={element:i,newIndex:t};this.emitChanges({added:s})},onDragRemove(r){if(insertNodeAt(this.$el,r.item,r.oldIndex),r.pullMode==="clone")return void removeNode(r.clone);const{index:i,element:t}=this.context;this.spliceList(i,1);const s={element:t,oldIndex:i};this.emitChanges({removed:s})},onDragUpdate(r){removeNode(r.item),insertNodeAt(r.from,r.item,r.oldIndex);const i=this.context.index,t=this.getVmIndexFromDomIndex(r.newIndex);this.updatePosition(i,t);const s={element:this.context.element,oldIndex:i,newIndex:t};this.emitChanges({moved:s})},computeFutureIndex(r,i){if(!r.element)return 0;const t=[...i.to.children].filter(f=>f.style.display!=="none"),s=t.indexOf(i.related),c=r.component.getVmIndexFromDomIndex(s);return t.indexOf(draggingElement)===-1&&i.willInsertAfter?c+1:c},onDragMove(r,i){const{move:t,realList:s}=this;if(!t||!s)return!0;const c=this.getRelatedContextFromMoveEvent(r),f=this.computeFutureIndex(c,r),d={...this.context,futureIndex:f};return t({...r,relatedContext:c,draggedContext:d},i)},onDragEnd(){draggingElement=null}}});function createMenu({t:r}){return[{name:"main",title:r("menu.main"),list:[input,number,radio,checkbox,select,_switch,time,date,slider,rate,color,cascader,upload,transfer,tree,editor]},{name:"aide",title:r("menu.aide"),list:[alert,button,span,divider]},{name:"layout",title:r("menu.layout"),list:[row,tab,space]}]}const viewForm=FormCreate,designerForm=FormCreate.factory(),_sfc_main$7=defineComponent({name:"FcDesigner",components:{draggable:draggableComponent,DragForm:designerForm.$form(),ViewForm:viewForm.$form()},props:["menu","height","config","mask","locale"],setup(r){const{menu:i,height:t,config:s,mask:c,locale:f}=toRefs(r),d=getCurrentInstance();provide("fcx",ref({active:null})),provide("designer",d);const y=computed(()=>{const g=t.value;return g?is.Number(g)?`${g}px`:g:"100%"}),b=useLocale(f).t,p=reactive({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"form",activeRule:null,children:ref([]),menuList:i.value||createMenu({t:b}),showBaseRule:!1,visible:{preview:!1},preview:{state:!1,rule:[],option:{}},dragForm:ref({rule:[],api:{}}),form:{rule:form({t:b}),api:{},option:{form:{labelPosition:"top",size:"small"},submitBtn:!1},value:{form:{inline:!1,hideRequiredAsterisk:!1,labelPosition:"right",size:"small",labelWidth:"125px",formCreateSubmitBtn:!0,formCreateResetBtn:!1},submitBtn:!1}},baseForm:{rule:field({t:b}),api:{},options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:g=>{g.activeRule=p.activeRule,g.setValue(g.options.formData||{})}}},validateForm:{rule:validate(),api:{},options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:g=>{g.activeRule=p.activeRule,g.setValue(g.options.formData||{})}}},propsForm:{rule:[],api:{},options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:g=>{g.activeRule=p.activeRule,g.setValue(g.options.formData||{})}}}});watch(()=>p.preview.state,function(g){g||nextTick(()=>{p.preview.rule=p.preview.option=null})}),watch(()=>f.value,()=>{const g=p.form.api.formData&&p.form.api.formData(),A=p.baseForm.api.formData&&p.baseForm.api.formData(),w=p.validateForm.api.formData&&p.validateForm.api.formData();p.validateForm.rule=validate(),p.baseForm.rule=field({t:b}),p.form.rule=form({t:b}),nextTick(()=>{g&&p.form.api.setValue(g),A&&p.baseForm.api.setValue(A),w&&p.validateForm.api.setValue(w)})});const x={makeChildren:g=>reactive({children:g}).children,addMenu(g){if(!g.name||!g.list)return;let A=!0;p.menuList.forEach((w,E)=>{w.name===g.name&&(p.menuList[E]=g,A=!1)}),A&&p.menuList.push(g)},removeMenu(g){[...p.menuList].forEach((A,w)=>{A.name===g&&p.menuList.splice(w,1)})},setMenuItem(g,A){p.menuList.forEach(w=>{w.name===g&&(w.list=A)})},appendMenuItem(g,A){p.menuList.forEach(w=>{w.name===g&&w.list.push(A)})},removeMenuItem(g){p.menuList.forEach(A=>{let w;is.String(g)?[...A.list].forEach((E,_)=>{E.name===g&&A.list.splice(_,1)}):(w=A.list.indexOf(g))>-1&&A.list.splice(w,1)})},addComponent(g){Array.isArray(g)?g.forEach(A=>{ruleList[A.name]=A}):ruleList[g.name]=g},getParent(g){let A=g.__fc__.parent.rule;const w=A.config;return w&&w.config.inside&&(g=A,A=A.__fc__.parent.rule),{root:A,parent:g}},makeDrag:(g,A,w,E)=>({type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:g===!0?"default":g,ghostClass:"ghost",animation:150,handle:"._fc-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:A},children:w,on:E}),clearDragRule(){x.setRule([])},makeDragRule:g=>x.makeChildren([x.makeDrag(!0,"draggable",g,{add:(A,w)=>x.dragAdd(g,w),end:(A,w)=>x.dragEnd(g,w),start:(A,w)=>x.dragStart(g,w),unchoose:(A,w)=>x.dragUnchoose(g,w)})]),previewFc(){p.preview.state=!0,p.preview.rule=x.getRule(),p.preview.option=x.getOption()},getRule:()=>x.parseRule(deepCopy(p.dragForm.api.rule[0].children)),getJson:()=>designerForm.toJson(x.getRule()),getOption(){const g=deepCopy(p.form.value);return g.submitBtn=g._submitBtn,g.resetBtn=g._resetBtn,typeof g.submitBtn=="object"?g.submitBtn.show=g.form.formCreateSubmitBtn:g.submitBtn={show:g.form.formCreateSubmitBtn,innerText:b("form.submit")},typeof g.resetBtn=="object"?g.resetBtn.show=g.form.formCreateResetBtn:g.resetBtn={show:g.form.formCreateResetBtn,innerText:b("form.reset")},delete g.form.formCreateSubmitBtn,delete g.form.formCreateResetBtn,delete g._submitBtn,delete g._resetBtn,g},getOptions(){x.getOption()},setRule(g){g||(g=[]),p.children=x.makeChildren(x.loadRule(is.String(g)?designerForm.parseJson(g):deepCopy(g))),x.clearActiveRule(),p.dragForm.rule=x.makeDragRule(p.children)},clearActiveRule(){p.activeRule=null,p.activeTab="form"},setOption(g){let A={...g};A.form.formCreateSubmitBtn=typeof A.submitBtn=="object"?A.submitBtn.show===void 0||!!A.submitBtn.show:!!A.submitBtn,A.form.formCreateResetBtn=typeof A.resetBtn=="object"?!!A.resetBtn.show:!!A.resetBtn,A._resetBtn=A.resetBtn,A.resetBtn=!1,A._submitBtn=A.submitBtn,A.submitBtn=!1,p.form.value=A},setOptions(g){x.setOption(g)},loadRule(g){const A=[];return g.forEach(w=>{if(is.String(w))return A.push(w);const E=ruleList[w._fc_drag_tag]||ruleList[w.type],_=w.children;if(w.children=[],w.control&&(w._control=w.control,delete w.control),E){if(w=x.makeRule(E,w),_){let D=w.children[0].children;E.drag&&(D=D[0].children),D.push(...x.loadRule(_))}}else _&&(w.children=x.loadRule(_));A.push(w)}),A},parseRule:g=>[...g].reduce((A,w)=>is.String(w)?(A.push(w),A):w.type==="DragBox"||w.type==="DragTool"&&(w=w.children[0]).type==="DragBox"?(A.push(...x.parseRule(w.children)),A):(w&&((w={...w}).children.length&&(w.children=x.parseRule(w.children)),delete w._id,delete w.key,w.config&&delete w.config.config,w.effect&&(delete w.effect._fc,delete w.effect._fc_tool),w._control&&(w.control=w._control,delete w._control),Object.keys(w).filter(E=>Array.isArray(w[E])&&w[E].length===0||is.Object(w[E])&&Object.keys(w[E]).length===0).forEach(E=>{delete w[E]}),A.push(w)),A),[]),baseChange(g,A,w,E){var _,D,C;p.activeRule&&E[p.activeRule._id]===p.activeRule&&(p.activeRule[g]=A,(C=(D=(_=p.activeRule.config.config)==null?void 0:_.watch)==null?void 0:D["$"+g])==null||C.call(D,{field:g,value:A,api:E,rule:p.activeRule}))},propRemoveField(g,A,w){var E,_,D;if(p.activeRule&&w[p.activeRule._id]===p.activeRule){const C=g;if(p.dragForm.api.sync(p.activeRule),g.indexOf("formCreate")===0){if(!(g=g.replace("formCreate","")))return;(g=lower(g)).indexOf("effect")===0&&g.indexOf(">")>-1?delete p.activeRule.effect[g.split(">")[1]]:g.indexOf("props")===0&&g.indexOf(">")>-1?delete p.activeRule.props[g.split(">")[1]]:g==="child"?delete p.activeRule.children[0]:g&&(p.activeRule[g]=void 0)}else delete p.activeRule.props[g];(D=(_=(E=p.activeRule.config.config)==null?void 0:E.watch)==null?void 0:_[C])==null||D.call(_,{field:C,value:void 0,api:w,rule:p.activeRule})}},propChange(g,A,w,E){var _,D,C;if(p.activeRule&&E[p.activeRule._id]===p.activeRule){const M=g;if(g.indexOf("formCreate")===0){if(!(g=g.replace("formCreate","")))return;(g=lower(g)).indexOf("effect")===0&&g.indexOf(">")>-1?p.activeRule.effect[g.split(">")[1]]=A:g.indexOf("props")===0&&g.indexOf(">")>-1?p.activeRule.props[g.split(">")[1]]=A:g==="child"?p.activeRule.children[0]=A:p.activeRule[g]=A}else p.activeRule.props[g]=A;(C=(D=(_=p.activeRule.config.config)==null?void 0:_.watch)==null?void 0:D[M])==null||C.call(D,{field:M,value:A,api:E,rule:p.activeRule})}},validateChange(g){!p.activeRule||p.validateForm.api[p.activeRule._id]!==p.activeRule||(p.activeRule.validate=g.validate||[],p.dragForm.api.refreshValidate(),p.dragForm.api.nextTick(()=>{p.dragForm.api.clearValidateState(p.activeRule.field)}))},toolActive(g){p.activeRule&&(delete p.propsForm.api[p.activeRule._id],delete p.baseForm.api[p.activeRule._id],delete p.validateForm.api[p.activeRule._id],delete p.dragForm.api.activeRule),p.activeRule=g,p.dragForm.api.activeRule=g,nextTick(()=>{p.activeTab="props",nextTick(()=>{p.propsForm.api[p.activeRule._id]=p.activeRule,p.baseForm.api[p.activeRule._id]=p.activeRule,p.validateForm.api[p.activeRule._id]=p.activeRule})}),p.cacheProps[g._id]||(p.cacheProps[g._id]=g.config.config.props(g,{t:b,api:p.dragForm.api})),p.propsForm.rule=p.cacheProps[g._id];const A={...g.props,formCreateChild:g.children[0]};Object.keys(g).forEach(w=>{["effect","config","payload","id","type"].indexOf(w)<0&&(A["formCreate"+upper(w)]=g[w])}),["props","effect"].forEach(w=>{g[w]&&Object.keys(g[w]).forEach(E=>{A["formCreate"+upper(w)+">"+E]=g[w][E]})}),p.propsForm.options.formData=A,p.showBaseRule=hasProperty(g,"field")&&g.input!==!1&&(!s.value||s.value.showBaseForm!==!1),p.showBaseRule&&(p.baseForm.options.formData={field:g.field,title:g.title||"",info:g.info,_control:g._control},p.validateForm.options.formData={validate:g.validate?[...g.validate]:[]})},dragStart(g){p.moveRule=g,p.added=!1},dragUnchoose(g,A){p.addRule={children:g,oldIndex:A.oldIndex}},dragAdd(g,A){const w=A.newIndex,E=A.item._underlying_vm_;if(!E||E.__fc__){if(p.addRule){const _=p.addRule.children.splice(p.addRule.oldIndex,1);g.splice(w,0,_[0])}}else{const _=x.makeRule(ruleList[E.name]);g.splice(w,0,_)}p.added=!0},dragEnd(g,{newIndex:A,oldIndex:w}){if(!p.added&&(p.moveRule!==g||A!==w)){const E=p.moveRule.splice(w,1);g.splice(A,0,E[0])}p.moveRule=null,p.addRule=null,p.added=!1},makeRule(g,A){const w=A||g.rule({t:b});let E;if(w.config={config:g},w.effect||(w.effect={}),w.effect._fc=!0,w._fc_drag_tag=g.name,g.drag&&w.children.push(E=x.makeDrag(g.drag,w.type,x.makeChildren([]),{end:(D,C)=>x.dragEnd(D.self.children,C),add:(D,C)=>x.dragAdd(D.self.children,C),start:(D,C)=>x.dragStart(D.self.children,C),unchoose:(D,C)=>x.dragUnchoose(D.self.children,C)})),g.children&&!A)for(let D=0;D<(g.childrenLen||1);D++){const C=x.makeRule(ruleList[g.children]);(E||w).children.push(C)}const _=c.value!==void 0?c.value!==!1:g.mask!==!1;return g.inside?(w.children=x.makeChildren([{type:"DragTool",props:{dragBtn:g.dragBtn!==!1,children:g.children,mask:_},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:D})=>{const C=x.getParent(D).parent;C.__fc__.rm(),d.emit("delete",C),x.clearActiveRule()},create:({self:D})=>{const C=x.getParent(D);d.emit("create",C.parent),C.root.children.splice(C.root.children.indexOf(C.parent)+1,0,x.makeRule(C.parent.config.config))},addChild:({self:D})=>{const C=x.getParent(D),M=C.parent.config.config,T=ruleList[M.children];!T||(M.drag?C.parent.children[0]:C.parent).children[0].children.push(x.makeRule(T))},copy:({self:D})=>{const C=x.getParent(D);d.emit("copy",C.parent),C.root.children.splice(C.root.children.indexOf(C.parent)+1,0,designerForm.copyRule(C.parent))},active:({self:D})=>{const C=x.getParent(D);d.emit("active",C.parent),x.toolActive(C.parent)}},children:w.children}]),w):{type:"DragTool",props:{dragBtn:g.dragBtn!==!1,children:g.children,mask:_},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:D})=>{d.emit("delete",D.children[0]),D.__fc__.rm(),x.clearActiveRule()},create:({self:D})=>{d.emit("create",D.children[0]);const C=x.getParent(D);C.root.children.splice(C.root.children.indexOf(C.parent)+1,0,x.makeRule(D.children[0].config.config))},addChild:({self:D})=>{const C=D.children[0].config.config,M=ruleList[C.children];!M||(C.drag?D.children[0]:D).children[0].children.push(x.makeRule(M))},copy:({self:D})=>{d.emit("copy",D.children[0]);const C=x.getParent(D);C.root.children.splice(C.root.children.indexOf(C.parent)+1,0,designerForm.copyRule(C.parent))},active:({self:D})=>{d.emit("active",D.children[0]),x.toolActive(D.children[0])}},children:x.makeChildren([w])}}};return p.dragForm.rule=x.makeDragRule(x.makeChildren(p.children)),{...toRefs(p),...x,dragHeight:y,t:b}},created(){document.body.ondrop=r=>{r.preventDefault(),r.stopPropagation()}}}),_hoisted_1$5={class:"_fc-l-title"},_hoisted_2$3={class:"_fc-l-item"},_hoisted_3$3={class:"_fc-l-icon"},_hoisted_4$2={class:"_fc-l-name"},_hoisted_5$1=createBaseVNode("i",{class:"fc-icon icon-preview"},null,-1),_hoisted_6$1=createBaseVNode("i",{class:"fc-icon icon-delete"},null,-1),_hoisted_7$1={class:"_fc-m-drag"};function _sfc_render$6(r,i,t,s,c,f){const d=resolveComponent("draggable"),y=resolveComponent("el-aside"),b=resolveComponent("el-button"),p=resolveComponent("el-popconfirm"),x=resolveComponent("el-header"),g=resolveComponent("DragForm"),A=resolveComponent("ElMain"),w=resolveComponent("ElContainer"),E=resolveComponent("ElDivider"),_=resolveComponent("ElAside"),D=resolveComponent("ViewForm"),C=resolveComponent("ElDialog");return openBlock(),createBlock(w,{class:"_fc-designer",style:normalizeStyle("height:"+r.dragHeight)},{default:withCtx(()=>[createVNode(A,null,{default:withCtx(()=>[createVNode(w,{style:{height:"100%"}},{default:withCtx(()=>[createVNode(y,{class:"_fc-l",width:"266px"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.menuList,(M,T)=>(openBlock(),createElementBlock("div",{key:T,class:"_fc-l-group"},[createBaseVNode("h4",_hoisted_1$5,toDisplayString(M.title),1),createVNode(d,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",list:M.list},{item:withCtx(({element:N})=>[createBaseVNode("div",_hoisted_2$3,[createBaseVNode("div",_hoisted_3$3,[createBaseVNode("i",{class:normalizeClass(["fc-icon",N.icon||"icon-input"])},null,2)]),createBaseVNode("span",_hoisted_4$2,toDisplayString(r.t("components."+N.name+".name")||N.label),1)])]),_:2},1032,["list"])]))),128))]),_:1}),createVNode(w,{class:"_fc-m"},{default:withCtx(()=>[createVNode(x,{class:"_fc-m-tools",height:"45"},{default:withCtx(()=>[renderSlot(r.$slots,"handle"),createVNode(b,{type:"primary",plain:"",round:"",size:"small",onClick:r.previewFc},{default:withCtx(()=>[_hoisted_5$1,createTextVNode(" "+toDisplayString(r.t("designer.preview")),1)]),_:1},8,["onClick"]),createVNode(p,{title:r.t("designer.clearConfirmTitle"),width:"200px","confirm-button-text":r.t("designer.clearConfirm"),"cancel-button-text":r.t("designer.clearCancel"),onConfirm:r.clearDragRule},{reference:withCtx(()=>[createVNode(b,{type:"danger",plain:"",round:"",size:"small"},{default:withCtx(()=>[_hoisted_6$1,createTextVNode(toDisplayString(r.t("designer.clear")),1)]),_:1})]),_:1},8,["title","confirm-button-text","cancel-button-text","onConfirm"])]),_:3}),createVNode(A,{style:{background:"#F5F5F5",padding:"20px"}},{default:withCtx(()=>[createBaseVNode("div",_hoisted_7$1,[createVNode(g,{rule:r.dragForm.rule,option:r.form.value,api:r.dragForm.api,"onUpdate:api":i[0]||(i[0]=M=>r.dragForm.api=M)},null,8,["rule","option","api"])])]),_:1})]),_:3}),r.config&&r.config.showConfig===!1?createCommentVNode("",!0):(openBlock(),createBlock(_,{key:0,class:"_fc-r",width:"320px"},{default:withCtx(()=>[createVNode(w,{style:{height:"100%"}},{default:withCtx(()=>[createVNode(x,{height:"40px",class:"_fc-r-tabs"},{default:withCtx(()=>[r.activeRule||r.config&&r.config.showFormConfig===!1?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["_fc-r-tab",{active:r.activeTab==="props"}]),onClick:i[1]||(i[1]=M=>r.activeTab="props")},toDisplayString(r.t("designer.config.component")),3)):createCommentVNode("",!0),r.config&&r.config.showFormConfig===!1?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["_fc-r-tab",{active:r.activeTab==="form"&&!!r.activeRule}]),onClick:i[2]||(i[2]=M=>r.activeTab="form")},toDisplayString(r.t("designer.config.form")),3))]),_:1}),r.config&&r.config.showFormConfig===!1?createCommentVNode("",!0):withDirectives((openBlock(),createBlock(A,{key:0},{default:withCtx(()=>[createVNode(g,{rule:r.form.rule,option:r.form.option,modelValue:r.form.value.form,"onUpdate:modelValue":i[3]||(i[3]=M=>r.form.value.form=M),api:r.form.api,"onUpdate:api":i[4]||(i[4]=M=>r.form.api=M)},null,8,["rule","option","modelValue","api"])]),_:1},512)),[[vShow,r.activeTab==="form"]]),withDirectives((openBlock(),createBlock(A,{style:{padding:"0 20px"},key:r.activeRule?r.activeRule._id:""},{default:withCtx(()=>[createBaseVNode("div",null,[r.showBaseRule?(openBlock(),createBlock(E,{key:0},{default:withCtx(()=>[createTextVNode(toDisplayString(r.t("designer.config.rule")),1)]),_:1})):createCommentVNode("",!0),withDirectives(createVNode(g,{api:r.baseForm.api,"onUpdate:api":i[5]||(i[5]=M=>r.baseForm.api=M),rule:r.baseForm.rule,option:r.baseForm.options,onChange:r.baseChange},null,8,["api","rule","option","onChange"]),[[vShow,r.showBaseRule]]),createVNode(E,null,{default:withCtx(()=>[createTextVNode(toDisplayString(r.t("designer.config.props")),1)]),_:1}),createVNode(g,{api:r.propsForm.api,"onUpdate:api":i[6]||(i[6]=M=>r.propsForm.api=M),rule:r.propsForm.rule,option:r.propsForm.options,onChange:r.propChange,onRemoveField:r.propRemoveField},null,8,["api","rule","option","onChange","onRemoveField"]),r.showBaseRule?(openBlock(),createBlock(E,{key:1},{default:withCtx(()=>[createTextVNode(toDisplayString(r.t("designer.config.validate")),1)]),_:1})):createCommentVNode("",!0),withDirectives(createVNode(g,{api:r.validateForm.api,"onUpdate:api":i[7]||(i[7]=M=>r.validateForm.api=M),rule:r.validateForm.rule,option:r.validateForm.options,"onUpdate:modelValue":r.validateChange},null,8,["api","rule","option","onUpdate:modelValue"]),[[vShow,r.showBaseRule]])])]),_:1})),[[vShow,r.activeTab==="props"]])]),_:1})]),_:1})),createVNode(C,{modelValue:r.preview.state,"onUpdate:modelValue":i[8]||(i[8]=M=>r.preview.state=M),width:"800px","append-to-body":""},{default:withCtx(()=>[r.preview.state?(openBlock(),createBlock(D,{key:0,rule:r.preview.rule,option:r.preview.option},null,8,["rule","option"])):createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:3})]),_:3})]),_:3},8,["style"])}FcDesigner=_export_sfc(_sfc_main$7,[["render",_sfc_render$6]]);let uni$1=1;const _sfc_main$6=defineComponent({name:"DragTool",props:["dragBtn","children","unique","mask"],setup(r){const{unique:i}=toRefs(r);return{id:computed(()=>i.value||uni$1++),state:inject("fcx")}},methods:{active(){this.state.active!==this.id&&(this.state.active=this.id,this.$emit("active"))}},beforeDestroy(){this.state={}}}),_hoisted_1$4={key:0,class:"drag-mask"},_hoisted_2$2={class:"drag-l"},_hoisted_3$2={key:0,class:"drag-btn _fc-drag-btn",style:{cursor:"move"}},_hoisted_4$1=createBaseVNode("i",{class:"fc-icon icon-move"},null,-1),_hoisted_5=[_hoisted_4$1],_hoisted_6={class:"drag-r"},_hoisted_7=createBaseVNode("i",{class:"fc-icon icon-add"},null,-1),_hoisted_8=[_hoisted_7],_hoisted_9=createBaseVNode("i",{class:"fc-icon icon-copy"},null,-1),_hoisted_10=[_hoisted_9],_hoisted_11=createBaseVNode("i",{class:"fc-icon icon-add-child"},null,-1),_hoisted_12=[_hoisted_11],_hoisted_13=createBaseVNode("i",{class:"fc-icon icon-delete"},null,-1),_hoisted_14=[_hoisted_13];function _sfc_render$5(r,i,t,s,c,f){return openBlock(),createElementBlock("div",{class:normalizeClass(["drag-tool",{active:r.state.active===r.id}]),onClick:i[4]||(i[4]=withModifiers((...d)=>r.active&&r.active(...d),["stop"]))},[r.mask?(openBlock(),createElementBlock("div",_hoisted_1$4)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$2,[r.state.active===r.id&&r.dragBtn!==!1?(openBlock(),createElementBlock("div",_hoisted_3$2,_hoisted_5)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_6,[createBaseVNode("div",{class:"drag-btn",onClick:i[0]||(i[0]=d=>r.$emit("create"))},_hoisted_8),createBaseVNode("div",{class:"drag-btn",onClick:i[1]||(i[1]=d=>r.$emit("copy"))},_hoisted_10),r.children?(openBlock(),createElementBlock("div",{key:0,class:"drag-btn",onClick:i[2]||(i[2]=d=>r.$emit("addChild"))},_hoisted_12)):createCommentVNode("",!0),createBaseVNode("div",{class:"drag-btn drag-btn-danger",onClick:i[3]||(i[3]=d=>r.$emit("delete"))},_hoisted_14)]),renderSlot(r.$slots,"default")],2)}const DragTool=_export_sfc(_sfc_main$6,[["render",_sfc_render$5]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},codemirror={exports:{}};codemirror.exports=function(){var r=navigator.userAgent,i=navigator.platform,t=/gecko\/\d/i.test(r),s=/MSIE \d/.test(r),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),f=/Edge\/(\d+)/.exec(r),d=s||c||f,y=d&&(s?document.documentMode||6:+(f||c)[1]),b=!f&&/WebKit\//.test(r),p=b&&/Qt\/\d+\.\d+/.test(r),x=!f&&/Chrome\/(\d+)/.exec(r),g=x&&+x[1],A=/Opera\//.test(r),w=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),_=/PhantomJS/.test(r),D=w&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),C=/Android/.test(r),M=D||C||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),T=D||/Mac/.test(i),N=/\bCrOS\b/.test(r),P=/win/i.test(i),$=A&&r.match(/Version\/(\d*\.\d*)/);$&&($=Number($[1])),$&&$>=15&&(A=!1,b=!0);var L=T&&(p||A&&($==null||$<12.11)),F=t||d&&y>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var I,V=function(e,n){var a=e.className,o=R(n).exec(a);if(o){var u=a.slice(o.index+o[0].length);e.className=a.slice(0,o.index)+(u?o[1]+u:"")}};function j(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function z(e,n){return j(e).appendChild(n)}function U(e,n,a,o){var u=document.createElement(e);if(a&&(u.className=a),o&&(u.style.cssText=o),typeof n=="string")u.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)u.appendChild(n[m]);return u}function G(e,n,a,o){var u=U(e,n,a,o);return u.setAttribute("role","presentation"),u}function J(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function q(e){var n;try{n=e.activeElement}catch{n=e.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function ee(e,n){var a=e.className;R(n).test(a)||(e.className+=(a?" ":"")+n)}function te(e,n){for(var a=e.split(" "),o=0;o<a.length;o++)a[o]&&!R(a[o]).test(n)&&(n+=" "+a[o]);return n}I=document.createRange?function(e,n,a,o){var u=document.createRange();return u.setEnd(o||e,a),u.setStart(e,n),u}:function(e,n,a){var o=document.body.createTextRange();try{o.moveToElementText(e.parentNode)}catch{return o}return o.collapse(!0),o.moveEnd("character",a),o.moveStart("character",n),o};var ce=function(e){e.select()};function be(e){return e.display.wrapper.ownerDocument}function pe(e){return be(e).defaultView}function oe(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function se(e,n,a){for(var o in n||(n={}),e)e.hasOwnProperty(o)&&(a!==!1||!n.hasOwnProperty(o))&&(n[o]=e[o]);return n}function re(e,n,a,o,u){n==null&&(n=e.search(/[^\s\u00a0]/))==-1&&(n=e.length);for(var m=o||0,S=u||0;;){var k=e.indexOf(" ",m);if(k<0||k>=n)return S+(n-m);S+=k-m,S+=a-S%a,m=k+1}}D?ce=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:d&&(ce=function(e){try{e.select()}catch{}});var he=function(){this.id=null,this.f=null,this.time=0,this.handler=oe(this.onTimeout,this)};function ke(e,n){for(var a=0;a<e.length;++a)if(e[a]==n)return a;return-1}he.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},he.prototype.set=function(e,n){this.f=n;var a=+new Date+e;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=a)};var Ne=50,Be={toString:function(){return"CodeMirror.Pass"}},Le={scroll:!1},Ct={origin:"*mouse"},st={origin:"+move"};function Ke(e,n,a){for(var o=0,u=0;;){var m=e.indexOf(" ",o);m==-1&&(m=e.length);var S=m-o;if(m==e.length||u+S>=n)return o+Math.min(S,n-u);if(u+=m-o,o=m+1,(u+=a-u%a)>=n)return o}}var ct=[""];function Mt(e){for(;ct.length<=e;)ct.push(Ie(ct)+" ");return ct[e]}function Ie(e){return e[e.length-1]}function dt(e,n){for(var a=[],o=0;o<e.length;o++)a[o]=n(e[o],o);return a}function Ht(e,n,a){for(var o=0,u=a(n);o<e.length&&a(e[o])<=u;)o++;e.splice(o,0,n)}function Et(){}function pn(e,n){var a;return Object.create?a=Object.create(e):(Et.prototype=e,a=new Et),n&&se(n,a),a}var qt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Tt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||qt.test(e))}function Nt(e,n){return n?!!(n.source.indexOf("\\w")>-1&&Tt(e))||n.test(e):Tt(e)}function Rt(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Kt=/[\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 ut(e){return e.charCodeAt(0)>=768&&Kt.test(e)}function Oe(e,n,a){for(;(a<0?n>0:n<e.length)&&ut(e.charAt(n));)n+=a;return n}function nt(e,n,a){for(var o=n>a?-1:1;;){if(n==a)return n;var u=(n+a)/2,m=o<0?Math.ceil(u):Math.floor(u);if(m==n)return e(m)?n:a;e(m)?a=m:n=m+o}}function It(e,n,a,o){if(!e)return o(n,a,"ltr",0);for(var u=!1,m=0;m<e.length;++m){var S=e[m];(S.from<a&&S.to>n||n==a&&S.to==n)&&(o(Math.max(S.from,n),Math.min(S.to,a),S.level==1?"rtl":"ltr",m),u=!0)}u||o(n,a,"ltr")}var we=null;function ve(e,n,a){var o;we=null;for(var u=0;u<e.length;++u){var m=e[u];if(m.from<n&&m.to>n)return u;m.to==n&&(m.from!=m.to&&a=="before"?o=u:we=u),m.from==n&&(m.from!=m.to&&a!="before"?o=u:we=u)}return o??we}var De=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(O){return O<=247?e.charAt(O):1424<=O&&O<=1524?"R":1536<=O&&O<=1785?n.charAt(O-1536):1774<=O&&O<=2220?"r":8192<=O&&O<=8203?"w":O==8204?"b":"L"}var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,S=/[Lb1n]/,k=/[1n]/;function B(O,W,Y){this.level=O,this.from=W,this.to=Y}return function(O,W){var Y=W=="ltr"?"L":"R";if(O.length==0||W=="ltr"&&!o.test(O))return!1;for(var K=O.length,X=[],ne=0;ne<K;++ne)X.push(a(O.charCodeAt(ne)));for(var le=0,fe=Y;le<K;++le){var ye=X[le];ye=="m"?X[le]=fe:fe=ye}for(var xe=0,me=Y;xe<K;++xe){var Ee=X[xe];Ee=="1"&&me=="r"?X[xe]="n":m.test(Ee)&&(me=Ee,Ee=="r"&&(X[xe]="R"))}for(var Ce=1,Se=X[0];Ce<K-1;++Ce){var Ue=X[Ce];Ue=="+"&&Se=="1"&&X[Ce+1]=="1"?X[Ce]="1":Ue==","&&Se==X[Ce+1]&&(Se=="1"||Se=="n")&&(X[Ce]=Se),Se=Ue}for(var Ve=0;Ve<K;++Ve){var kt=X[Ve];if(kt==",")X[Ve]="N";else if(kt=="%"){var Ye=void 0;for(Ye=Ve+1;Ye<K&&X[Ye]=="%";++Ye);for(var Ot=Ve&&X[Ve-1]=="!"||Ye<K&&X[Ye]=="1"?"1":"N",Dt=Ve;Dt<Ye;++Dt)X[Dt]=Ot;Ve=Ye-1}}for(var qe=0,wt=Y;qe<K;++qe){var gt=X[qe];wt=="L"&&gt=="1"?X[qe]="L":m.test(gt)&&(wt=gt)}for(var Ze=0;Ze<K;++Ze)if(u.test(X[Ze])){var Je=void 0;for(Je=Ze+1;Je<K&&u.test(X[Je]);++Je);for(var et=(Ze?X[Ze-1]:Y)=="L",xt=et==((Je<K?X[Je]:Y)=="L")?et?"L":"R":Y,En=Ze;En<Je;++En)X[En]=xt;Ze=Je-1}for(var Gt,ht=[],tt=0;tt<K;)if(S.test(X[tt])){var ci=tt;for(++tt;tt<K&&S.test(X[tt]);++tt);ht.push(new B(0,ci,tt))}else{var dn=tt,In=ht.length,Ln=W=="rtl"?1:0;for(++tt;tt<K&&X[tt]!="L";++tt);for(var vt=dn;vt<tt;)if(k.test(X[vt])){dn<vt&&(ht.splice(In,0,new B(1,dn,vt)),In+=Ln);var ir=vt;for(++vt;vt<tt&&k.test(X[vt]);++vt);ht.splice(In,0,new B(2,ir,vt)),In+=Ln,dn=vt}else++vt;dn<tt&&ht.splice(In,0,new B(1,dn,tt))}return W=="ltr"&&(ht[0].level==1&&(Gt=O.match(/^\s+/))&&(ht[0].from=Gt[0].length,ht.unshift(new B(0,0,Gt[0].length))),Ie(ht).level==1&&(Gt=O.match(/\s+$/))&&(Ie(ht).to-=Gt[0].length,ht.push(new B(0,K-Gt[0].length,K)))),W=="rtl"?ht.reverse():ht}}();function ae(e,n){var a=e.order;return a==null&&(a=e.order=De(e.text,n)),a}var de=[],ue=function(e,n,a){if(e.addEventListener)e.addEventListener(n,a,!1);else if(e.attachEvent)e.attachEvent("on"+n,a);else{var o=e._handlers||(e._handlers={});o[n]=(o[n]||de).concat(a)}};function Me(e,n){return e._handlers&&e._handlers[n]||de}function Te(e,n,a){if(e.removeEventListener)e.removeEventListener(n,a,!1);else if(e.detachEvent)e.detachEvent("on"+n,a);else{var o=e._handlers,u=o&&o[n];if(u){var m=ke(u,a);m>-1&&(o[n]=u.slice(0,m).concat(u.slice(m+1)))}}}function Pe(e,n){var a=Me(e,n);if(a.length)for(var o=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,o)}function He(e,n,a){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Pe(e,a||n.type,e,n),nn(n)||n.codemirrorIgnore}function rt(e){var n=e._handlers&&e._handlers.cursorActivity;if(n)for(var a=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),o=0;o<n.length;++o)ke(a,n[o])==-1&&a.push(n[o])}function ze(e,n){return Me(e,n).length>0}function _t(e){e.prototype.on=function(n,a){ue(this,n,a)},e.prototype.off=function(n,a){Te(this,n,a)}}function We(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function jt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function nn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==0}function ft(e){We(e),jt(e)}function Bn(e){return e.target||e.srcElement}function Pr(e){var n=e.which;return n==null&&(1&e.button?n=1:2&e.button?n=3:4&e.button&&(n=2)),T&&e.ctrlKey&&n==1&&(n=3),n}var Pt,lr,Fr=function(){if(d&&y<9)return!1;var e=U("div");return"draggable"in e||"dragDrop"in e}();function Or(e){if(Pt==null){var n=U("span","\u200B");z(e,U("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Pt=n.offsetWidth<=1&&n.offsetHeight>2&&!(d&&y<8))}var a=Pt?U("span","\u200B"):U("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}function yo(e){if(lr!=null)return lr;var n=z(e,document.createTextNode("A\u062EA")),a=I(n,0,1).getBoundingClientRect(),o=I(n,1,2).getBoundingClientRect();return j(e),!(!a||a.left==a.right)&&(lr=o.right-a.right<3)}var Xt,Ft=`
  8. b`.split(/\n/).length!=3?function(e){for(var n=0,a=[],o=e.length;n<=o;){var u=e.indexOf(`
  9. `,n);u==-1&&(u=e.length);var m=e.slice(n,e.charAt(u-1)=="\r"?u-1:u),S=m.indexOf("\r");S!=-1?(a.push(m.slice(0,S)),n+=S+1):(a.push(m),n=u+1)}return a}:function(e){return e.split(/\r\n?|\n/)},hn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch{}return!(!n||n.parentElement()!=e)&&n.compareEndPoints("StartToEnd",n)!=0},Hr="oncopy"in(Xt=U("div"))||(Xt.setAttribute("oncopy","return;"),typeof Xt.oncopy=="function"),$t=null;function Ao(e){if($t!=null)return $t;var n=z(e,U("span","x")),a=n.getBoundingClientRect(),o=I(n,0,1).getBoundingClientRect();return $t=Math.abs(a.left-o.left)>1}var Pn={},Vt={};function zt(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Pn[e]=n}function Fn(e,n){Vt[e]=n}function On(e){if(typeof e=="string"&&Vt.hasOwnProperty(e))e=Vt[e];else if(e&&typeof e.name=="string"&&Vt.hasOwnProperty(e.name)){var n=Vt[e.name];typeof n=="string"&&(n={name:n}),(e=pn(n,e)).name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return On("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return On("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Hn(e,n){n=On(n);var a=Pn[n.name];if(!a)return Hn(e,"text/plain");var o=a(e,n);if(mn.hasOwnProperty(n.name)){var u=mn[n.name];for(var m in u)!u.hasOwnProperty(m)||(o.hasOwnProperty(m)&&(o["_"+m]=o[m]),o[m]=u[m])}if(o.name=n.name,n.helperType&&(o.helperType=n.helperType),n.modeProps)for(var S in n.modeProps)o[S]=n.modeProps[S];return o}var mn={};function jn(e,n){se(n,mn.hasOwnProperty(e)?mn[e]:mn[e]={})}function Jt(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var a={};for(var o in n){var u=n[o];u instanceof Array&&(u=u.concat([])),a[o]=u}return a}function ar(e,n){for(var a;e.innerMode&&(a=e.innerMode(n))&&a.mode!=e;)n=a.state,e=a.mode;return a||{mode:e,state:n}}function $n(e,n,a){return!e.startState||e.startState(n,a)}var Ge=function(e,n,a){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};function _e(e,n){if((n-=e.first)<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var a=e;!a.lines;)for(var o=0;;++o){var u=a.children[o],m=u.chunkSize();if(n<m){a=u;break}n-=m}return a.lines[n]}function rn(e,n,a){var o=[],u=n.line;return e.iter(n.line,a.line+1,function(m){var S=m.text;u==a.line&&(S=S.slice(0,a.ch)),u==n.line&&(S=S.slice(n.ch)),o.push(S),++u}),o}function sr(e,n,a){var o=[];return e.iter(n,a,function(u){o.push(u.text)}),o}function Lt(e,n){var a=n-e.height;if(a)for(var o=e;o;o=o.parent)o.height+=a}function H(e){if(e.parent==null)return null;for(var n=e.parent,a=ke(n.lines,e),o=n.parent;o;n=o,o=o.parent)for(var u=0;o.children[u]!=n;++u)a+=o.children[u].chunkSize();return a+n.first}function Q(e,n){var a=e.first;e:do{for(var o=0;o<e.children.length;++o){var u=e.children[o],m=u.height;if(n<m){e=u;continue e}n-=m,a+=u.chunkSize()}return a}while(!e.lines);for(var S=0;S<e.lines.length;++S){var k=e.lines[S].height;if(n<k)break;n-=k}return a+S}function ie(e,n){return n>=e.first&&n<e.first+e.size}function Ae(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function Z(e,n,a){if(a===void 0&&(a=null),!(this instanceof Z))return new Z(e,n,a);this.line=e,this.ch=n,this.sticky=a}function ge(e,n){return e.line-n.line||e.ch-n.ch}function je(e,n){return e.sticky==n.sticky&&ge(e,n)==0}function ot(e){return Z(e.line,e.ch)}function yt(e,n){return ge(e,n)<0?n:e}function jr(e,n){return ge(e,n)<0?e:n}function fi(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function Re(e,n){if(n.line<e.first)return Z(e.first,0);var a=e.first+e.size-1;return n.line>a?Z(a,_e(e,a).text.length):fa(n,_e(e,n.line).text.length)}function fa(e,n){var a=e.ch;return a==null||a>n?Z(e.line,n):a<0?Z(e.line,0):e}function pi(e,n){for(var a=[],o=0;o<n.length;o++)a[o]=Re(e,n[o]);return a}Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ge.prototype.eat=function(e){var n=this.string.charAt(this.pos);if(typeof e=="string"?n==e:n&&(e.test?e.test(n):e(n)))return++this.pos,n},Ge.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},Ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},Ge.prototype.backUp=function(e){this.pos-=e},Ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.match=function(e,n,a){if(typeof e!="string"){var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&n!==!1&&(this.pos+=o[0].length),o)}var u=function(m){return a?m.toLowerCase():m};if(u(this.string.substr(this.pos,e.length))==u(e))return n!==!1&&(this.pos+=e.length),!0},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},Ge.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},Ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var $r=function(e,n){this.state=e,this.lookAhead=n},Zt=function(e,n,a,o){this.state=n,this.doc=e,this.line=a,this.maxLookAhead=o||0,this.baseTokens=null,this.baseTokenPos=1};function hi(e,n,a,o){var u=[e.state.modeGen],m={};bi(e,n.text,e.doc.mode,a,function(O,W){return u.push(O,W)},m,o);for(var S=a.state,k=function(O){a.baseTokens=u;var W=e.state.overlays[O],Y=1,K=0;a.state=!0,bi(e,n.text,W.mode,a,function(X,ne){for(var le=Y;K<X;){var fe=u[Y];fe>X&&u.splice(Y,1,X,u[Y+1],fe),Y+=2,K=Math.min(X,fe)}if(ne)if(W.opaque)u.splice(le,Y-le,X,"overlay "+ne),Y=le+2;else for(;le<Y;le+=2){var ye=u[le+1];u[le+1]=(ye?ye+" ":"")+"overlay "+ne}},m),a.state=S,a.baseTokens=null,a.baseTokenPos=1},B=0;B<e.state.overlays.length;++B)k(B);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function mi(e,n,a){if(!n.styles||n.styles[0]!=e.state.modeGen){var o=ur(e,H(n)),u=n.text.length>e.options.maxHighlightLength&&Jt(e.doc.mode,o.state),m=hi(e,n,o);u&&(o.state=u),n.stateAfter=o.save(!u),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function ur(e,n,a){var o=e.doc,u=e.display;if(!o.mode.startState)return new Zt(o,!0,n);var m=pa(e,n,a),S=m>o.first&&_e(o,m-1).stateAfter,k=S?Zt.fromSaved(o,S,m):new Zt(o,$n(o.mode),m);return o.iter(m,n,function(B){bo(e,B.text,k);var O=k.line;B.stateAfter=O==n-1||O%5==0||O>=u.viewFrom&&O<u.viewTo?k.save():null,k.nextLine()}),a&&(o.modeFrontier=k.line),k}function bo(e,n,a,o){var u=e.doc.mode,m=new Ge(n,e.options.tabSize,a);for(m.start=m.pos=o||0,n==""&&gi(u,a.state);!m.eol();)wo(u,m,a.state),m.start=m.pos}function gi(e,n){if(e.blankLine)return e.blankLine(n);if(e.innerMode){var a=ar(e,n);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function wo(e,n,a,o){for(var u=0;u<10;u++){o&&(o[0]=ar(e,a).mode);var m=e.token(n,a);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}Zt.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Zt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zt.fromSaved=function(e,n,a){return n instanceof $r?new Zt(e,Jt(e.mode,n.state),a,n.lookAhead):new Zt(e,Jt(e.mode,n),a)},Zt.prototype.save=function(e){var n=e!==!1?Jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new $r(n,this.maxLookAhead):n};var vi=function(e,n,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=a};function yi(e,n,a,o){var u,m,S=e.doc,k=S.mode,B=_e(S,(n=Re(S,n)).line),O=ur(e,n.line,a),W=new Ge(B.text,e.options.tabSize,O);for(o&&(m=[]);(o||W.pos<n.ch)&&!W.eol();)W.start=W.pos,u=wo(k,W,O.state),o&&m.push(new vi(W,u,Jt(S.mode,O.state)));return o?m:new vi(W,u,O.state)}function Ai(e,n){if(e)for(;;){var a=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;e=e.slice(0,a.index)+e.slice(a.index+a[0].length);var o=a[1]?"bgClass":"textClass";n[o]==null?n[o]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(n[o])||(n[o]+=" "+a[2])}return e}function bi(e,n,a,o,u,m,S){var k=a.flattenSpans;k==null&&(k=e.options.flattenSpans);var B,O=0,W=null,Y=new Ge(n,e.options.tabSize,o),K=e.options.addModeClass&&[null];for(n==""&&Ai(gi(a,o.state),m);!Y.eol();){if(Y.pos>e.options.maxHighlightLength?(k=!1,S&&bo(e,n,o,Y.pos),Y.pos=n.length,B=null):B=Ai(wo(a,Y,o.state,K),m),K){var X=K[0].name;X&&(B="m-"+(B?X+" "+B:X))}if(!k||W!=B){for(;O<Y.start;)u(O=Math.min(Y.start,O+5e3),W);W=B}Y.start=Y.pos}for(;O<Y.pos;){var ne=Math.min(Y.pos,O+5e3);u(ne,W),O=ne}}function pa(e,n,a){for(var o,u,m=e.doc,S=a?-1:n-(e.doc.mode.innerMode?1e3:100),k=n;k>S;--k){if(k<=m.first)return m.first;var B=_e(m,k-1),O=B.stateAfter;if(O&&(!a||k+(O instanceof $r?O.lookAhead:0)<=m.modeFrontier))return k;var W=re(B.text,null,e.options.tabSize);(u==null||o>W)&&(u=k-1,o=W)}return u}function ha(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var a=e.first,o=n-1;o>a;o--){var u=_e(e,o).stateAfter;if(u&&(!(u instanceof $r)||o+u.lookAhead<n)){a=o+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,a)}}var wi=!1,ln=!1;function ma(){wi=!0}function ga(){ln=!0}function Vr(e,n,a){this.marker=e,this.from=n,this.to=a}function cr(e,n){if(e)for(var a=0;a<e.length;++a){var o=e[a];if(o.marker==n)return o}}function va(e,n){for(var a,o=0;o<e.length;++o)e[o]!=n&&(a||(a=[])).push(e[o]);return a}function ya(e,n,a){var o=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));o&&e.markedSpans&&o.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],o&&o.add(e.markedSpans)),n.marker.attachLine(e)}function Aa(e,n,a){var o;if(e)for(var u=0;u<e.length;++u){var m=e[u],S=m.marker;if(m.from==null||(S.inclusiveLeft?m.from<=n:m.from<n)||m.from==n&&S.type=="bookmark"&&(!a||!m.marker.insertLeft)){var k=m.to==null||(S.inclusiveRight?m.to>=n:m.to>n);(o||(o=[])).push(new Vr(S,m.from,k?null:m.to))}}return o}function ba(e,n,a){var o;if(e)for(var u=0;u<e.length;++u){var m=e[u],S=m.marker;if(m.to==null||(S.inclusiveRight?m.to>=n:m.to>n)||m.from==n&&S.type=="bookmark"&&(!a||m.marker.insertLeft)){var k=m.from==null||(S.inclusiveLeft?m.from<=n:m.from<n);(o||(o=[])).push(new Vr(S,k?null:m.from-n,m.to==null?null:m.to-n))}}return o}function xo(e,n){if(n.full)return null;var a=ie(e,n.from.line)&&_e(e,n.from.line).markedSpans,o=ie(e,n.to.line)&&_e(e,n.to.line).markedSpans;if(!a&&!o)return null;var u=n.from.ch,m=n.to.ch,S=ge(n.from,n.to)==0,k=Aa(a,u,S),B=ba(o,m,S),O=n.text.length==1,W=Ie(n.text).length+(O?u:0);if(k)for(var Y=0;Y<k.length;++Y){var K=k[Y];if(K.to==null){var X=cr(B,K.marker);X?O&&(K.to=X.to==null?null:X.to+W):K.to=u}}if(B)for(var ne=0;ne<B.length;++ne){var le=B[ne];le.to!=null&&(le.to+=W),le.from==null?cr(k,le.marker)||(le.from=W,O&&(k||(k=[])).push(le)):(le.from+=W,O&&(k||(k=[])).push(le))}k&&(k=xi(k)),B&&B!=k&&(B=xi(B));var fe=[k];if(!O){var ye,xe=n.text.length-2;if(xe>0&&k)for(var me=0;me<k.length;++me)k[me].to==null&&(ye||(ye=[])).push(new Vr(k[me].marker,null,null));for(var Ee=0;Ee<xe;++Ee)fe.push(ye);fe.push(B)}return fe}function xi(e){for(var n=0;n<e.length;++n){var a=e[n];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function wa(e,n,a){var o=null;if(e.iter(n.line,a.line+1,function(X){if(X.markedSpans)for(var ne=0;ne<X.markedSpans.length;++ne){var le=X.markedSpans[ne].marker;le.readOnly&&(!o||ke(o,le)==-1)&&(o||(o=[])).push(le)}}),!o)return null;for(var u=[{from:n,to:a}],m=0;m<o.length;++m)for(var S=o[m],k=S.find(0),B=0;B<u.length;++B){var O=u[B];if(!(ge(O.to,k.from)<0||ge(O.from,k.to)>0)){var W=[B,1],Y=ge(O.from,k.from),K=ge(O.to,k.to);(Y<0||!S.inclusiveLeft&&!Y)&&W.push({from:O.from,to:k.from}),(K>0||!S.inclusiveRight&&!K)&&W.push({from:k.to,to:O.to}),u.splice.apply(u,W),B+=W.length-3}}return u}function Ci(e){var n=e.markedSpans;if(n){for(var a=0;a<n.length;++a)n[a].marker.detachLine(e);e.markedSpans=null}}function Ei(e,n){if(n){for(var a=0;a<n.length;++a)n[a].marker.attachLine(e);e.markedSpans=n}}function zr(e){return e.inclusiveLeft?-1:0}function Ur(e){return e.inclusiveRight?1:0}function Co(e,n){var a=e.lines.length-n.lines.length;if(a!=0)return a;var o=e.find(),u=n.find(),m=ge(o.from,u.from)||zr(e)-zr(n);return m?-m:ge(o.to,u.to)||Ur(e)-Ur(n)||n.id-e.id}function _i(e,n){var a,o=ln&&e.markedSpans;if(o)for(var u=void 0,m=0;m<o.length;++m)(u=o[m]).marker.collapsed&&(n?u.from:u.to)==null&&(!a||Co(a,u.marker)<0)&&(a=u.marker);return a}function Si(e){return _i(e,!0)}function Wr(e){return _i(e,!1)}function xa(e,n){var a,o=ln&&e.markedSpans;if(o)for(var u=0;u<o.length;++u){var m=o[u];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!a||Co(a,m.marker)<0)&&(a=m.marker)}return a}function ki(e,n,a,o,u){var m=_e(e,n),S=ln&&m.markedSpans;if(S)for(var k=0;k<S.length;++k){var B=S[k];if(B.marker.collapsed){var O=B.marker.find(0),W=ge(O.from,a)||zr(B.marker)-zr(u),Y=ge(O.to,o)||Ur(B.marker)-Ur(u);if(!(W>=0&&Y<=0||W<=0&&Y>=0)&&(W<=0&&(B.marker.inclusiveRight&&u.inclusiveLeft?ge(O.to,a)>=0:ge(O.to,a)>0)||W>=0&&(B.marker.inclusiveRight&&u.inclusiveLeft?ge(O.from,o)<=0:ge(O.from,o)<0)))return!0}}}function Ut(e){for(var n;n=Si(e);)e=n.find(-1,!0).line;return e}function Ca(e){for(var n;n=Wr(e);)e=n.find(1,!0).line;return e}function Ea(e){for(var n,a;n=Wr(e);)e=n.find(1,!0).line,(a||(a=[])).push(e);return a}function Eo(e,n){var a=_e(e,n),o=Ut(a);return a==o?n:H(o)}function Di(e,n){if(n>e.lastLine())return n;var a,o=_e(e,n);if(!gn(e,o))return n;for(;a=Wr(o);)o=a.find(1,!0).line;return H(o)+1}function gn(e,n){var a=ln&&n.markedSpans;if(a){for(var o=void 0,u=0;u<a.length;++u)if((o=a[u]).marker.collapsed&&(o.from==null||!o.marker.widgetNode&&o.from==0&&o.marker.inclusiveLeft&&_o(e,n,o)))return!0}}function _o(e,n,a){if(a.to==null){var o=a.marker.find(1,!0);return _o(e,o.line,cr(o.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==n.text.length)return!0;for(var u=void 0,m=0;m<n.markedSpans.length;++m)if((u=n.markedSpans[m]).marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&_o(e,n,u))return!0}function an(e){for(var n=0,a=(e=Ut(e)).parent,o=0;o<a.lines.length;++o){var u=a.lines[o];if(u==e)break;n+=u.height}for(var m=a.parent;m;m=(a=m).parent)for(var S=0;S<m.children.length;++S){var k=m.children[S];if(k==a)break;n+=k.height}return n}function Yr(e){if(e.height==0)return 0;for(var n,a=e.text.length,o=e;n=Si(o);){var u=n.find(0,!0);o=u.from.line,a+=u.from.ch-u.to.ch}for(o=e;n=Wr(o);){var m=n.find(0,!0);a-=o.text.length-m.from.ch,a+=(o=m.to.line).text.length-m.to.ch}return a}function So(e){var n=e.display,a=e.doc;n.maxLine=_e(a,a.first),n.maxLineLength=Yr(n.maxLine),n.maxLineChanged=!0,a.iter(function(o){var u=Yr(o);u>n.maxLineLength&&(n.maxLineLength=u,n.maxLine=o)})}var Vn=function(e,n,a){this.text=e,Ei(this,n),this.height=a?a(this):1};function _a(e,n,a,o){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ci(e),Ei(e,a);var u=o?o(e):1;u!=e.height&&Lt(e,u)}function Sa(e){e.parent=null,Ci(e)}Vn.prototype.lineNo=function(){return H(this)},_t(Vn);var ka={},Da={};function Mi(e,n){if(!e||/^\s*$/.test(e))return null;var a=n.addModeClass?Da:ka;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function Ti(e,n){var a=G("span",null,null,b?"padding-right: .1px":null),o={pre:G("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var u=0;u<=(n.rest?n.rest.length:0);u++){var m=u?n.rest[u-1]:n.line,S=void 0;o.pos=0,o.addToken=Ta,yo(e.display.measure)&&(S=ae(m,e.doc.direction))&&(o.addToken=Ra(o.addToken,S)),o.map=[],Ia(m,o,mi(e,m,n!=e.display.externalMeasured&&H(m))),m.styleClasses&&(m.styleClasses.bgClass&&(o.bgClass=te(m.styleClasses.bgClass,o.bgClass||"")),m.styleClasses.textClass&&(o.textClass=te(m.styleClasses.textClass,o.textClass||""))),o.map.length==0&&o.map.push(0,0,o.content.appendChild(Or(e.display.measure))),u==0?(n.measure.map=o.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(o.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(b){var k=o.content.lastChild;(/\bcm-tab\b/.test(k.className)||k.querySelector&&k.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return Pe(e,"renderLine",e,n.line,o.pre),o.pre.className&&(o.textClass=te(o.pre.className,o.textClass||"")),o}function Ma(e){var n=U("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ta(e,n,a,o,u,m,S){if(n){var k,B=e.splitSpaces?Na(n,e.trailingSpace):n,O=e.cm.state.specialChars,W=!1;if(O.test(n)){k=document.createDocumentFragment();for(var Y=0;;){O.lastIndex=Y;var K=O.exec(n),X=K?K.index-Y:n.length-Y;if(X){var ne=document.createTextNode(B.slice(Y,Y+X));d&&y<9?k.appendChild(U("span",[ne])):k.appendChild(ne),e.map.push(e.pos,e.pos+X,ne),e.col+=X,e.pos+=X}if(!K)break;Y+=X+1;var le=void 0;if(K[0]==" "){var fe=e.cm.options.tabSize,ye=fe-e.col%fe;(le=k.appendChild(U("span",Mt(ye),"cm-tab"))).setAttribute("role","presentation"),le.setAttribute("cm-text"," "),e.col+=ye}else K[0]=="\r"||K[0]==`
  10. `?((le=k.appendChild(U("span",K[0]=="\r"?"\u240D":"\u2424","cm-invalidchar"))).setAttribute("cm-text",K[0]),e.col+=1):((le=e.cm.options.specialCharPlaceholder(K[0])).setAttribute("cm-text",K[0]),d&&y<9?k.appendChild(U("span",[le])):k.appendChild(le),e.col+=1);e.map.push(e.pos,e.pos+1,le),e.pos++}}else e.col+=n.length,k=document.createTextNode(B),e.map.push(e.pos,e.pos+n.length,k),d&&y<9&&(W=!0),e.pos+=n.length;if(e.trailingSpace=B.charCodeAt(n.length-1)==32,a||o||u||W||m||S){var xe=a||"";o&&(xe+=o),u&&(xe+=u);var me=U("span",[k],xe,m);if(S)for(var Ee in S)S.hasOwnProperty(Ee)&&Ee!="style"&&Ee!="class"&&me.setAttribute(Ee,S[Ee]);return e.content.appendChild(me)}e.content.appendChild(k)}}function Na(e,n){if(e.length>1&&!/ /.test(e))return e;for(var a=n,o="",u=0;u<e.length;u++){var m=e.charAt(u);m==" "&&a&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(m="\xA0"),o+=m,a=m==" "}return o}function Ra(e,n){return function(a,o,u,m,S,k,B){u=u?u+" cm-force-border":"cm-force-border";for(var O=a.pos,W=O+o.length;;){for(var Y=void 0,K=0;K<n.length&&!((Y=n[K]).to>O&&Y.from<=O);K++);if(Y.to>=W)return e(a,o,u,m,S,k,B);e(a,o.slice(0,Y.to-O),u,m,null,k,B),m=null,o=o.slice(Y.to-O),O=Y.to}}}function Ni(e,n,a,o){var u=!o&&a.widgetNode;u&&e.map.push(e.pos,e.pos+n,u),!o&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=n,e.trailingSpace=!1}function Ia(e,n,a){var o=e.markedSpans,u=e.text,m=0;if(o)for(var S,k,B,O,W,Y,K,X=u.length,ne=0,le=1,fe="",ye=0;;){if(ye==ne){B=O=W=k="",K=null,Y=null,ye=1/0;for(var xe=[],me=void 0,Ee=0;Ee<o.length;++Ee){var Ce=o[Ee],Se=Ce.marker;if(Se.type=="bookmark"&&Ce.from==ne&&Se.widgetNode)xe.push(Se);else if(Ce.from<=ne&&(Ce.to==null||Ce.to>ne||Se.collapsed&&Ce.to==ne&&Ce.from==ne)){if(Ce.to!=null&&Ce.to!=ne&&ye>Ce.to&&(ye=Ce.to,O=""),Se.className&&(B+=" "+Se.className),Se.css&&(k=(k?k+";":"")+Se.css),Se.startStyle&&Ce.from==ne&&(W+=" "+Se.startStyle),Se.endStyle&&Ce.to==ye&&(me||(me=[])).push(Se.endStyle,Ce.to),Se.title&&((K||(K={})).title=Se.title),Se.attributes)for(var Ue in Se.attributes)(K||(K={}))[Ue]=Se.attributes[Ue];Se.collapsed&&(!Y||Co(Y.marker,Se)<0)&&(Y=Ce)}else Ce.from>ne&&ye>Ce.from&&(ye=Ce.from)}if(me)for(var Ve=0;Ve<me.length;Ve+=2)me[Ve+1]==ye&&(O+=" "+me[Ve]);if(!Y||Y.from==ne)for(var kt=0;kt<xe.length;++kt)Ni(n,0,xe[kt]);if(Y&&(Y.from||0)==ne){if(Ni(n,(Y.to==null?X+1:Y.to)-ne,Y.marker,Y.from==null),Y.to==null)return;Y.to==ne&&(Y=!1)}}if(ne>=X)break;for(var Ye=Math.min(X,ye);;){if(fe){var Ot=ne+fe.length;if(!Y){var Dt=Ot>Ye?fe.slice(0,Ye-ne):fe;n.addToken(n,Dt,S?S+B:B,W,ne+Dt.length==ye?O:"",k,K)}if(Ot>=Ye){fe=fe.slice(Ye-ne),ne=Ye;break}ne=Ot,W=""}fe=u.slice(m,m=a[le++]),S=Mi(a[le++],n.cm.options)}}else for(var qe=1;qe<a.length;qe+=2)n.addToken(n,u.slice(m,m=a[qe]),Mi(a[qe+1],n.cm.options))}function Ri(e,n,a){this.line=n,this.rest=Ea(n),this.size=this.rest?H(Ie(this.rest))-a+1:1,this.node=this.text=null,this.hidden=gn(e,n)}function Qr(e,n,a){for(var o,u=[],m=n;m<a;m=o){var S=new Ri(e.doc,_e(e.doc,m),m);o=m+S.size,u.push(S)}return u}var zn=null;function La(e){zn?zn.ops.push(e):e.ownsGroup=zn={ops:[e],delayedCallbacks:[]}}function Ba(e){var n=e.delayedCallbacks,a=0;do{for(;a<n.length;a++)n[a].call(null);for(var o=0;o<e.ops.length;o++){var u=e.ops[o];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<n.length)}function Pa(e,n){var a=e.ownsGroup;if(a)try{Ba(a)}finally{zn=null,n(a)}}var dr=null;function it(e,n){var a=Me(e,n);if(a.length){var o,u=Array.prototype.slice.call(arguments,2);zn?o=zn.delayedCallbacks:dr?o=dr:(o=dr=[],setTimeout(Fa,0));for(var m=function(k){o.push(function(){return a[k].apply(null,u)})},S=0;S<a.length;++S)m(S)}}function Fa(){var e=dr;dr=null;for(var n=0;n<e.length;++n)e[n]()}function Ii(e,n,a,o){for(var u=0;u<n.changes.length;u++){var m=n.changes[u];m=="text"?Ha(e,n):m=="gutter"?Bi(e,n,a,o):m=="class"?ko(e,n):m=="widget"&&ja(e,n,o)}n.changes=null}function fr(e){return e.node==e.text&&(e.node=U("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),d&&y<8&&(e.node.style.zIndex=2)),e.node}function Oa(e,n){var a=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),n.background)a?n.background.className=a:(n.background.parentNode.removeChild(n.background),n.background=null);else if(a){var o=fr(n);n.background=o.insertBefore(U("div",null,a),o.firstChild),e.display.input.setUneditable(n.background)}}function Li(e,n){var a=e.display.externalMeasured;return a&&a.line==n.line?(e.display.externalMeasured=null,n.measure=a.measure,a.built):Ti(e,n)}function Ha(e,n){var a=n.text.className,o=Li(e,n);n.text==n.node&&(n.node=o.pre),n.text.parentNode.replaceChild(o.pre,n.text),n.text=o.pre,o.bgClass!=n.bgClass||o.textClass!=n.textClass?(n.bgClass=o.bgClass,n.textClass=o.textClass,ko(e,n)):a&&(n.text.className=a)}function ko(e,n){Oa(e,n),n.line.wrapClass?fr(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var a=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=a||""}function Bi(e,n,a,o){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var u=fr(n);n.gutterBackground=U("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px; width: "+o.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),u.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var S=fr(n),k=n.gutter=U("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px");if(k.setAttribute("aria-hidden","true"),e.display.input.setUneditable(k),S.insertBefore(k,n.text),n.line.gutterClass&&(k.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=k.appendChild(U("div",Ae(e.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+o.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var B=0;B<e.display.gutterSpecs.length;++B){var O=e.display.gutterSpecs[B].className,W=m.hasOwnProperty(O)&&m[O];W&&k.appendChild(U("div",[W],"CodeMirror-gutter-elt","left: "+o.gutterLeft[O]+"px; width: "+o.gutterWidth[O]+"px"))}}}function ja(e,n,a){n.alignable&&(n.alignable=null);for(var o=R("CodeMirror-linewidget"),u=n.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,o.test(u.className)&&n.node.removeChild(u);Pi(e,n,a)}function $a(e,n,a,o){var u=Li(e,n);return n.text=n.node=u.pre,u.bgClass&&(n.bgClass=u.bgClass),u.textClass&&(n.textClass=u.textClass),ko(e,n),Bi(e,n,a,o),Pi(e,n,o),n.node}function Pi(e,n,a){if(Fi(e,n.line,n,a,!0),n.rest)for(var o=0;o<n.rest.length;o++)Fi(e,n.rest[o],n,a,!1)}function Fi(e,n,a,o,u){if(n.widgets)for(var m=fr(a),S=0,k=n.widgets;S<k.length;++S){var B=k[S],O=U("div",[B.node],"CodeMirror-linewidget"+(B.className?" "+B.className:""));B.handleMouseEvents||O.setAttribute("cm-ignore-events","true"),Va(B,O,a,o),e.display.input.setUneditable(O),u&&B.above?m.insertBefore(O,a.gutter||a.text):m.appendChild(O),it(B,"redraw")}}function Va(e,n,a,o){if(e.noHScroll){(a.alignable||(a.alignable=[])).push(n);var u=o.wrapperWidth;n.style.left=o.fixedPos+"px",e.coverGutter||(u-=o.gutterTotalWidth,n.style.paddingLeft=o.gutterTotalWidth+"px"),n.style.width=u+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-o.gutterTotalWidth+"px"))}function pr(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!J(document.body,e.node)){var a="position: relative;";e.coverGutter&&(a+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(a+="width: "+n.display.wrapper.clientWidth+"px;"),z(n.display.measure,U("div",[e.node],null,a))}return e.height=e.node.parentNode.offsetHeight}function sn(e,n){for(var a=Bn(n);a!=e.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==e.sizer&&a!=e.mover)return!0}function Gr(e){return e.lineSpace.offsetTop}function Do(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Oi(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=z(e.measure,U("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,o={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(o.left)&&!isNaN(o.right)&&(e.cachedPaddingH=o),o}function en(e){return Ne-e.display.nativeBarWidth}function _n(e){return e.display.scroller.clientWidth-en(e)-e.display.barWidth}function Mo(e){return e.display.scroller.clientHeight-en(e)-e.display.barHeight}function za(e,n,a){var o=e.options.lineWrapping,u=o&&_n(e);if(!n.measure.heights||o&&n.measure.width!=u){var m=n.measure.heights=[];if(o){n.measure.width=u;for(var S=n.text.firstChild.getClientRects(),k=0;k<S.length-1;k++){var B=S[k],O=S[k+1];Math.abs(B.bottom-O.bottom)>2&&m.push((B.bottom+O.top)/2-a.top)}}m.push(a.bottom-a.top)}}function Hi(e,n,a){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var o=0;o<e.rest.length;o++)if(e.rest[o]==n)return{map:e.measure.maps[o],cache:e.measure.caches[o]};for(var u=0;u<e.rest.length;u++)if(H(e.rest[u])>a)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}}function Ua(e,n){var a=H(n=Ut(n)),o=e.display.externalMeasured=new Ri(e.doc,n,a);o.lineN=a;var u=o.built=Ti(e,o);return o.text=u.pre,z(e.display.lineMeasure,u.pre),o}function ji(e,n,a,o){return tn(e,Un(e,n),a,o)}function To(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Dn(e,n)];var a=e.display.externalMeasured;return a&&n>=a.lineN&&n<a.lineN+a.size?a:void 0}function Un(e,n){var a=H(n),o=To(e,a);o&&!o.text?o=null:o&&o.changes&&(Ii(e,o,a,Bo(e)),e.curOp.forceUpdate=!0),o||(o=Ua(e,n));var u=Hi(o,n,a);return{line:n,view:o,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function tn(e,n,a,o,u){n.before&&(a=-1);var m,S=a+(o||"");return n.cache.hasOwnProperty(S)?m=n.cache[S]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(za(e,n.view,n.rect),n.hasHeights=!0),(m=Ya(e,n,a,o)).bogus||(n.cache[S]=m)),{left:m.left,right:m.right,top:u?m.rtop:m.top,bottom:u?m.rbottom:m.bottom}}var Sn,$i={left:0,right:0,top:0,bottom:0};function Vi(e,n,a){for(var o,u,m,S,k,B,O=0;O<e.length;O+=3)if(k=e[O],B=e[O+1],n<k?(u=0,m=1,S="left"):n<B?m=1+(u=n-k):(O==e.length-3||n==B&&e[O+3]>n)&&(u=(m=B-k)-1,n>=B&&(S="right")),u!=null){if(o=e[O+2],k==B&&a==(o.insertLeft?"left":"right")&&(S=a),a=="left"&&u==0)for(;O&&e[O-2]==e[O-3]&&e[O-1].insertLeft;)o=e[2+(O-=3)],S="left";if(a=="right"&&u==B-k)for(;O<e.length-3&&e[O+3]==e[O+4]&&!e[O+5].insertLeft;)o=e[(O+=3)+2],S="right";break}return{node:o,start:u,end:m,collapse:S,coverStart:k,coverEnd:B}}function Wa(e,n){var a=$i;if(n=="left")for(var o=0;o<e.length&&(a=e[o]).left==a.right;o++);else for(var u=e.length-1;u>=0&&(a=e[u]).left==a.right;u--);return a}function Ya(e,n,a,o){var u,m=Vi(n.map,a,o),S=m.node,k=m.start,B=m.end,O=m.collapse;if(S.nodeType==3){for(var W=0;W<4;W++){for(;k&&ut(n.line.text.charAt(m.coverStart+k));)--k;for(;m.coverStart+B<m.coverEnd&&ut(n.line.text.charAt(m.coverStart+B));)++B;if((u=d&&y<9&&k==0&&B==m.coverEnd-m.coverStart?S.parentNode.getBoundingClientRect():Wa(I(S,k,B).getClientRects(),o)).left||u.right||k==0)break;B=k,k-=1,O="right"}d&&y<11&&(u=Qa(e.display.measure,u))}else{var Y;k>0&&(O=o="right"),u=e.options.lineWrapping&&(Y=S.getClientRects()).length>1?Y[o=="right"?Y.length-1:0]:S.getBoundingClientRect()}if(d&&y<9&&!k&&(!u||!u.left&&!u.right)){var K=S.parentNode.getClientRects()[0];u=K?{left:K.left,right:K.left+Yn(e.display),top:K.top,bottom:K.bottom}:$i}for(var X=u.top-n.rect.top,ne=u.bottom-n.rect.top,le=(X+ne)/2,fe=n.view.measure.heights,ye=0;ye<fe.length-1&&!(le<fe[ye]);ye++);var xe=ye?fe[ye-1]:0,me=fe[ye],Ee={left:(O=="right"?u.right:u.left)-n.rect.left,right:(O=="left"?u.left:u.right)-n.rect.left,top:xe,bottom:me};return!u.left&&!u.right&&(Ee.bogus=!0),e.options.singleCursorHeightPerLine||(Ee.rtop=X,Ee.rbottom=ne),Ee}function Qa(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ao(e))return n;var a=screen.logicalXDPI/screen.deviceXDPI,o=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*a,right:n.right*a,top:n.top*o,bottom:n.bottom*o}}function zi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Ui(e){e.display.externalMeasure=null,j(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)zi(e.display.view[n])}function hr(e){Ui(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Wi(e){return x&&C?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Yi(e){return x&&C?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function No(e){var n=Ut(e).widgets,a=0;if(n)for(var o=0;o<n.length;++o)n[o].above&&(a+=pr(n[o]));return a}function qr(e,n,a,o,u){if(!u){var m=No(n);a.top+=m,a.bottom+=m}if(o=="line")return a;o||(o="local");var S=an(n);if(o=="local"?S+=Gr(e.display):S-=e.display.viewOffset,o=="page"||o=="window"){var k=e.display.lineSpace.getBoundingClientRect();S+=k.top+(o=="window"?0:Yi(be(e)));var B=k.left+(o=="window"?0:Wi(be(e)));a.left+=B,a.right+=B}return a.top+=S,a.bottom+=S,a}function Qi(e,n,a){if(a=="div")return n;var o=n.left,u=n.top;if(a=="page")o-=Wi(be(e)),u-=Yi(be(e));else if(a=="local"||!a){var m=e.display.sizer.getBoundingClientRect();o+=m.left,u+=m.top}var S=e.display.lineSpace.getBoundingClientRect();return{left:o-S.left,top:u-S.top}}function Kr(e,n,a,o,u){return o||(o=_e(e.doc,n.line)),qr(e,o,ji(e,o,n.ch,u),a)}function Wt(e,n,a,o,u,m){function S(ne,le){var fe=tn(e,u,ne,le?"right":"left",m);return le?fe.left=fe.right:fe.right=fe.left,qr(e,o,fe,a)}o=o||_e(e.doc,n.line),u||(u=Un(e,o));var k=ae(o,e.doc.direction),B=n.ch,O=n.sticky;if(B>=o.text.length?(B=o.text.length,O="before"):B<=0&&(B=0,O="after"),!k)return S(O=="before"?B-1:B,O=="before");function W(ne,le,fe){return S(fe?ne-1:ne,k[le].level==1!=fe)}var Y=ve(k,B,O),K=we,X=W(B,Y,O=="before");return K!=null&&(X.other=W(B,K,O!="before")),X}function Gi(e,n){var a=0;n=Re(e.doc,n),e.options.lineWrapping||(a=Yn(e.display)*n.ch);var o=_e(e.doc,n.line),u=an(o)+Gr(e.display);return{left:a,right:a,top:u,bottom:u+o.height}}function Ro(e,n,a,o,u){var m=Z(e,n,a);return m.xRel=u,o&&(m.outside=o),m}function Io(e,n,a){var o=e.doc;if((a+=e.display.viewOffset)<0)return Ro(o.first,0,null,-1,-1);var u=Q(o,a),m=o.first+o.size-1;if(u>m)return Ro(o.first+o.size-1,_e(o,m).text.length,null,1,1);n<0&&(n=0);for(var S=_e(o,u);;){var k=Ga(e,S,u,n,a),B=xa(S,k.ch+(k.xRel>0||k.outside>0?1:0));if(!B)return k;var O=B.find(1);if(O.line==u)return O;S=_e(o,u=O.line)}}function qi(e,n,a,o){o-=No(n);var u=n.text.length,m=nt(function(S){return tn(e,a,S-1).bottom<=o},u,0);return{begin:m,end:u=nt(function(S){return tn(e,a,S).top>o},m,u)}}function Ki(e,n,a,o){return a||(a=Un(e,n)),qi(e,n,a,qr(e,n,tn(e,a,o),"line").top)}function Lo(e,n,a,o){return!(e.bottom<=a)&&(e.top>a||(o?e.left:e.right)>n)}function Ga(e,n,a,o,u){u-=an(n);var m=Un(e,n),S=No(n),k=0,B=n.text.length,O=!0,W=ae(n,e.doc.direction);if(W){var Y=(e.options.lineWrapping?Ka:qa)(e,n,a,m,W,o,u);k=(O=Y.level!=1)?Y.from:Y.to-1,B=O?Y.to:Y.from-1}var K,X,ne=null,le=null,fe=nt(function(Ce){var Se=tn(e,m,Ce);return Se.top+=S,Se.bottom+=S,!!Lo(Se,o,u,!1)&&(Se.top<=u&&Se.left<=o&&(ne=Ce,le=Se),!0)},k,B),ye=!1;if(le){var xe=o-le.left<le.right-o,me=xe==O;fe=ne+(me?0:1),X=me?"after":"before",K=xe?le.left:le.right}else{!O&&(fe==B||fe==k)&&fe++,X=fe==0?"after":fe==n.text.length?"before":tn(e,m,fe-(O?1:0)).bottom+S<=u==O?"after":"before";var Ee=Wt(e,Z(a,fe,X),"line",n,m);K=Ee.left,ye=u<Ee.top?-1:u>=Ee.bottom?1:0}return Ro(a,fe=Oe(n.text,fe,1),X,ye,o-K)}function qa(e,n,a,o,u,m,S){var k=nt(function(Y){var K=u[Y],X=K.level!=1;return Lo(Wt(e,Z(a,X?K.to:K.from,X?"before":"after"),"line",n,o),m,S,!0)},0,u.length-1),B=u[k];if(k>0){var O=B.level!=1,W=Wt(e,Z(a,O?B.from:B.to,O?"after":"before"),"line",n,o);Lo(W,m,S,!0)&&W.top>S&&(B=u[k-1])}return B}function Ka(e,n,a,o,u,m,S){var k=qi(e,n,o,S),B=k.begin,O=k.end;/\s/.test(n.text.charAt(O-1))&&O--;for(var W=null,Y=null,K=0;K<u.length;K++){var X=u[K];if(!(X.from>=O||X.to<=B)){var ne=tn(e,o,X.level!=1?Math.min(O,X.to)-1:Math.max(B,X.from)).right,le=ne<m?m-ne+1e9:ne-m;(!W||Y>le)&&(W=X,Y=le)}}return W||(W=u[u.length-1]),W.from<B&&(W={from:B,to:W.to,level:W.level}),W.to>O&&(W={from:W.from,to:O,level:W.level}),W}function Wn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Sn==null){Sn=U("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Sn.appendChild(document.createTextNode("x")),Sn.appendChild(U("br"));Sn.appendChild(document.createTextNode("x"))}z(e.measure,Sn);var a=Sn.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),j(e.measure),a||1}function Yn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=U("span","xxxxxxxxxx"),a=U("pre",[n],"CodeMirror-line-like");z(e.measure,a);var o=n.getBoundingClientRect(),u=(o.right-o.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function Bo(e){for(var n=e.display,a={},o={},u=n.gutters.clientLeft,m=n.gutters.firstChild,S=0;m;m=m.nextSibling,++S){var k=e.display.gutterSpecs[S].className;a[k]=m.offsetLeft+m.clientLeft+u,o[k]=m.clientWidth}return{fixedPos:Po(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:a,gutterWidth:o,wrapperWidth:n.wrapper.clientWidth}}function Po(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Xi(e){var n=Wn(e.display),a=e.options.lineWrapping,o=a&&Math.max(5,e.display.scroller.clientWidth/Yn(e.display)-3);return function(u){if(gn(e.doc,u))return 0;var m=0;if(u.widgets)for(var S=0;S<u.widgets.length;S++)u.widgets[S].height&&(m+=u.widgets[S].height);return a?m+(Math.ceil(u.text.length/o)||1)*n:m+n}}function Fo(e){var n=e.doc,a=Xi(e);n.iter(function(o){var u=a(o);u!=o.height&&Lt(o,u)})}function kn(e,n,a,o){var u=e.display;if(!a&&Bn(n).getAttribute("cm-not-content")=="true")return null;var m,S,k=u.lineSpace.getBoundingClientRect();try{m=n.clientX-k.left,S=n.clientY-k.top}catch{return null}var B,O=Io(e,m,S);if(o&&O.xRel>0&&(B=_e(e.doc,O.line).text).length==O.ch){var W=re(B,B.length,e.options.tabSize)-B.length;O=Z(O.line,Math.max(0,Math.round((m-Oi(e.display).left)/Yn(e.display))-W))}return O}function Dn(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom)<0)return null;for(var a=e.display.view,o=0;o<a.length;o++)if((n-=a[o].size)<0)return o}function At(e,n,a,o){n==null&&(n=e.doc.first),a==null&&(a=e.doc.first+e.doc.size),o||(o=0);var u=e.display;if(o&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>n)&&(u.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=u.viewTo)ln&&Eo(e.doc,n)<u.viewTo&&yn(e);else if(a<=u.viewFrom)ln&&Di(e.doc,a+o)>u.viewFrom?yn(e):(u.viewFrom+=o,u.viewTo+=o);else if(n<=u.viewFrom&&a>=u.viewTo)yn(e);else if(n<=u.viewFrom){var m=Xr(e,a,a+o,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=o):yn(e)}else if(a>=u.viewTo){var S=Xr(e,n,n,-1);S?(u.view=u.view.slice(0,S.index),u.viewTo=S.lineN):yn(e)}else{var k=Xr(e,n,n,-1),B=Xr(e,a,a+o,1);k&&B?(u.view=u.view.slice(0,k.index).concat(Qr(e,k.lineN,B.lineN)).concat(u.view.slice(B.index)),u.viewTo+=o):yn(e)}var O=u.externalMeasured;O&&(a<O.lineN?O.lineN+=o:n<O.lineN+O.size&&(u.externalMeasured=null))}function vn(e,n,a){e.curOp.viewChanged=!0;var o=e.display,u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size&&(o.externalMeasured=null),!(n<o.viewFrom||n>=o.viewTo)){var m=o.view[Dn(e,n)];if(m.node!=null){var S=m.changes||(m.changes=[]);ke(S,a)==-1&&S.push(a)}}}function yn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Xr(e,n,a,o){var u,m=Dn(e,n),S=e.display.view;if(!ln||a==e.doc.first+e.doc.size)return{index:m,lineN:a};for(var k=e.display.viewFrom,B=0;B<m;B++)k+=S[B].size;if(k!=n){if(o>0){if(m==S.length-1)return null;u=k+S[m].size-n,m++}else u=k-n;n+=u,a+=u}for(;Eo(e.doc,a)!=a;){if(m==(o<0?0:S.length-1))return null;a+=o*S[m-(o<0?1:0)].size,m+=o}return{index:m,lineN:a}}function Xa(e,n,a){var o=e.display;o.view.length==0||n>=o.viewTo||a<=o.viewFrom?(o.view=Qr(e,n,a),o.viewFrom=n):(o.viewFrom>n?o.view=Qr(e,n,o.viewFrom).concat(o.view):o.viewFrom<n&&(o.view=o.view.slice(Dn(e,n))),o.viewFrom=n,o.viewTo<a?o.view=o.view.concat(Qr(e,o.viewTo,a)):o.viewTo>a&&(o.view=o.view.slice(0,Dn(e,a)))),o.viewTo=a}function Ji(e){for(var n=e.display.view,a=0,o=0;o<n.length;o++){var u=n[o];!u.hidden&&(!u.node||u.changes)&&++a}return a}function mr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Zi(e,n){n===void 0&&(n=!0);var a=e.doc,o={},u=o.cursors=document.createDocumentFragment(),m=o.selection=document.createDocumentFragment(),S=e.options.$customCursor;S&&(n=!0);for(var k=0;k<a.sel.ranges.length;k++)if(n||k!=a.sel.primIndex){var B=a.sel.ranges[k];if(!(B.from().line>=e.display.viewTo||B.to().line<e.display.viewFrom)){var O=B.empty();if(S){var W=S(e,B);W&&Oo(e,W,u)}else(O||e.options.showCursorWhenSelecting)&&Oo(e,B.head,u);O||Ja(e,B,m)}}return o}function Oo(e,n,a){var o=Wt(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),u=a.appendChild(U("div","\xA0","CodeMirror-cursor"));if(u.style.left=o.left+"px",u.style.top=o.top+"px",u.style.height=Math.max(0,o.bottom-o.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=Kr(e,n,"div",null,null),S=m.right-m.left;u.style.width=(S>0?S:e.defaultCharWidth())+"px"}if(o.other){var k=a.appendChild(U("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));k.style.display="",k.style.left=o.other.left+"px",k.style.top=o.other.top+"px",k.style.height=.85*(o.other.bottom-o.other.top)+"px"}}function Jr(e,n){return e.top-n.top||e.left-n.left}function Ja(e,n,a){var o=e.display,u=e.doc,m=document.createDocumentFragment(),S=Oi(e.display),k=S.left,B=Math.max(o.sizerWidth,_n(e)-o.sizer.offsetLeft)-S.right,O=u.direction=="ltr";function W(me,Ee,Ce,Se){Ee<0&&(Ee=0),Ee=Math.round(Ee),Se=Math.round(Se),m.appendChild(U("div",null,"CodeMirror-selected","position: absolute; left: "+me+`px;
  11. top: `+Ee+"px; width: "+(Ce??B-me)+`px;
  12. height: `+(Se-Ee)+"px"))}function Y(me,Ee,Ce){var Se,Ue,Ve=_e(u,me),kt=Ve.text.length;function Ye(qe,wt){return Kr(e,Z(me,qe),"div",Ve,wt)}function Ot(qe,wt,gt){var Ze=Ki(e,Ve,null,qe),Je=wt=="ltr"==(gt=="after")?"left":"right";return Ye(gt=="after"?Ze.begin:Ze.end-(/\s/.test(Ve.text.charAt(Ze.end-1))?2:1),Je)[Je]}var Dt=ae(Ve,u.direction);return It(Dt,Ee||0,Ce??kt,function(qe,wt,gt,Ze){var Je=gt=="ltr",et=Ye(qe,Je?"left":"right"),xt=Ye(wt-1,Je?"right":"left"),En=Ee==null&&qe==0,Gt=Ce==null&&wt==kt,ht=Ze==0,tt=!Dt||Ze==Dt.length-1;if(xt.top-et.top<=3){var ci=(O?Gt:En)&&tt,dn=(O?En:Gt)&&ht?k:(Je?et:xt).left,In=ci?B:(Je?xt:et).right;W(dn,et.top,In-dn,et.bottom)}else{var Ln,vt,ir,di;Je?(Ln=O&&En&&ht?k:et.left,vt=O?B:Ot(qe,gt,"before"),ir=O?k:Ot(wt,gt,"after"),di=O&&Gt&&tt?B:xt.right):(Ln=O?Ot(qe,gt,"before"):k,vt=!O&&En&&ht?B:et.right,ir=!O&&Gt&&tt?k:xt.left,di=O?Ot(wt,gt,"after"):B),W(Ln,et.top,vt-Ln,et.bottom),et.bottom<xt.top&&W(k,et.bottom,null,xt.top),W(ir,xt.top,di-ir,xt.bottom)}(!Se||Jr(et,Se)<0)&&(Se=et),Jr(xt,Se)<0&&(Se=xt),(!Ue||Jr(et,Ue)<0)&&(Ue=et),Jr(xt,Ue)<0&&(Ue=xt)}),{start:Se,end:Ue}}var K=n.from(),X=n.to();if(K.line==X.line)Y(K.line,K.ch,X.ch);else{var ne=_e(u,K.line),le=_e(u,X.line),fe=Ut(ne)==Ut(le),ye=Y(K.line,K.ch,fe?ne.text.length+1:null).end,xe=Y(X.line,fe?0:null,X.ch).start;fe&&(ye.top<xe.top-2?(W(ye.right,ye.top,null,ye.bottom),W(k,xe.top,xe.left,xe.bottom)):W(ye.right,ye.top,xe.left-ye.right,ye.bottom)),ye.bottom<xe.top&&W(k,ye.bottom,null,xe.top)}a.appendChild(m)}function Ho(e){if(e.state.focused){var n=e.display;clearInterval(n.blinker);var a=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||Qn(e),n.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function el(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||$o(e))}function jo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Qn(e))},100)}function $o(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Pe(e,"focus",e,n),e.state.focused=!0,ee(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),b&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ho(e))}function Qn(e,n){e.state.delayingBlurEvent||(e.state.focused&&(Pe(e,"blur",e,n),e.state.focused=!1,V(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Zr(e){for(var n=e.display,a=n.lineDiv.offsetTop,o=Math.max(0,n.scroller.getBoundingClientRect().top),u=n.lineDiv.getBoundingClientRect().top,m=0,S=0;S<n.view.length;S++){var k=n.view[S],B=e.options.lineWrapping,O=void 0,W=0;if(!k.hidden){if(u+=k.line.height,d&&y<8){var Y=k.node.offsetTop+k.node.offsetHeight;O=Y-a,a=Y}else{var K=k.node.getBoundingClientRect();O=K.bottom-K.top,!B&&k.text.firstChild&&(W=k.text.firstChild.getBoundingClientRect().right-K.left-1)}var X=k.line.height-O;if((X>.005||X<-.005)&&(u<o&&(m-=X),Lt(k.line,O),tl(k.line),k.rest))for(var ne=0;ne<k.rest.length;ne++)tl(k.rest[ne]);if(W>e.display.sizerWidth){var le=Math.ceil(W/Yn(e.display));le>e.display.maxLineLength&&(e.display.maxLineLength=le,e.display.maxLine=k.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(n.scroller.scrollTop+=m)}function tl(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var a=e.widgets[n],o=a.node.parentNode;o&&(a.height=o.offsetHeight)}}function eo(e,n,a){var o=a&&a.top!=null?Math.max(0,a.top):e.scroller.scrollTop;o=Math.floor(o-Gr(e));var u=a&&a.bottom!=null?a.bottom:o+e.wrapper.clientHeight,m=Q(n,o),S=Q(n,u);if(a&&a.ensure){var k=a.ensure.from.line,B=a.ensure.to.line;k<m?(m=k,S=Q(n,an(_e(n,k))+e.wrapper.clientHeight)):Math.min(B,n.lastLine())>=S&&(m=Q(n,an(_e(n,B))-e.wrapper.clientHeight),S=B)}return{from:m,to:Math.max(S,m+1)}}function Za(e,n){if(!He(e,"scrollCursorIntoView")){var a=e.display,o=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(n.top+o.top<0?u=!0:n.bottom+o.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!_){var S=U("div","\u200B",null,`position: absolute;
  13. top: `+(n.top-a.viewOffset-Gr(e.display))+`px;
  14. height: `+(n.bottom-n.top+en(e)+a.barHeight)+`px;
  15. left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(S),S.scrollIntoView(u),e.display.lineSpace.removeChild(S)}}}function es(e,n,a,o){var u;o==null&&(o=0),!e.options.lineWrapping&&n==a&&(a=n.sticky=="before"?Z(n.line,n.ch+1,"before"):n,n=n.ch?Z(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var S=!1,k=Wt(e,n),B=a&&a!=n?Wt(e,a):k,O=Vo(e,u={left:Math.min(k.left,B.left),top:Math.min(k.top,B.top)-o,right:Math.max(k.left,B.left),bottom:Math.max(k.bottom,B.bottom)+o}),W=e.doc.scrollTop,Y=e.doc.scrollLeft;if(O.scrollTop!=null&&(vr(e,O.scrollTop),Math.abs(e.doc.scrollTop-W)>1&&(S=!0)),O.scrollLeft!=null&&(Mn(e,O.scrollLeft),Math.abs(e.doc.scrollLeft-Y)>1&&(S=!0)),!S)break}return u}function ts(e,n){var a=Vo(e,n);a.scrollTop!=null&&vr(e,a.scrollTop),a.scrollLeft!=null&&Mn(e,a.scrollLeft)}function Vo(e,n){var a=e.display,o=Wn(e.display);n.top<0&&(n.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,m=Mo(e),S={};n.bottom-n.top>m&&(n.bottom=n.top+m);var k=e.doc.height+Do(a),B=n.top<o,O=n.bottom>k-o;if(n.top<u)S.scrollTop=B?0:n.top;else if(n.bottom>u+m){var W=Math.min(n.top,(O?k:n.bottom)-m);W!=u&&(S.scrollTop=W)}var Y=e.options.fixedGutter?0:a.gutters.offsetWidth,K=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-Y,X=_n(e)-a.gutters.offsetWidth,ne=n.right-n.left>X;return ne&&(n.right=n.left+X),n.left<10?S.scrollLeft=0:n.left<K?S.scrollLeft=Math.max(0,n.left+Y-(ne?0:10)):n.right>X+K-3&&(S.scrollLeft=n.right+(ne?0:10)-X),S}function zo(e,n){n!=null&&(to(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Gn(e){to(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function gr(e,n,a){(n!=null||a!=null)&&to(e),n!=null&&(e.curOp.scrollLeft=n),a!=null&&(e.curOp.scrollTop=a)}function ns(e,n){to(e),e.curOp.scrollToPos=n}function to(e){var n=e.curOp.scrollToPos;n&&(e.curOp.scrollToPos=null,nl(e,Gi(e,n.from),Gi(e,n.to),n.margin))}function nl(e,n,a,o){var u=Vo(e,{left:Math.min(n.left,a.left),top:Math.min(n.top,a.top)-o,right:Math.max(n.right,a.right),bottom:Math.max(n.bottom,a.bottom)+o});gr(e,u.scrollLeft,u.scrollTop)}function vr(e,n){Math.abs(e.doc.scrollTop-n)<2||(t||Wo(e,{top:n}),rl(e,n,!0),t&&Wo(e),br(e,100))}function rl(e,n,a){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),(e.display.scroller.scrollTop!=n||a)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Mn(e,n,a,o){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(!(a?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)||o)&&(e.doc.scrollLeft=n,sl(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function yr(e){var n=e.display,a=n.gutters.offsetWidth,o=Math.round(e.doc.height+Do(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?a:0,docHeight:o,scrollHeight:o+en(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:a}}var Tn=function(e,n,a){this.cm=a;var o=this.vert=U("div",[U("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=U("div",[U("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=u.tabIndex=-1,e(o),e(u),ue(o,"scroll",function(){o.clientHeight&&n(o.scrollTop,"vertical")}),ue(u,"scroll",function(){u.clientWidth&&n(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tn.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,o=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=n?o+"px":"0";var u=e.viewHeight-(n?o:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=a?o+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(a?o:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(o==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?o:0,bottom:n?o:0}},Tn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tn.prototype.zeroWidthHack=function(){var e=T&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new he,this.disableVert=new he},Tn.prototype.enableZeroWidthBar=function(e,n,a){function o(){var u=e.getBoundingClientRect();(a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1))!=e?e.style.visibility="hidden":n.set(1e3,o)}e.style.visibility="",n.set(1e3,o)},Tn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ar=function(){};function qn(e,n){n||(n=yr(e));var a=e.display.barWidth,o=e.display.barHeight;ol(e,n);for(var u=0;u<4&&a!=e.display.barWidth||o!=e.display.barHeight;u++)a!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),ol(e,yr(e)),a=e.display.barWidth,o=e.display.barHeight}function ol(e,n){var a=e.display,o=a.scrollbars.update(n);a.sizer.style.paddingRight=(a.barWidth=o.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=o.bottom)+"px",a.heightForcer.style.borderBottom=o.bottom+"px solid transparent",o.right&&o.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=o.bottom+"px",a.scrollbarFiller.style.width=o.right+"px"):a.scrollbarFiller.style.display="",o.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=o.bottom+"px",a.gutterFiller.style.width=n.gutterWidth+"px"):a.gutterFiller.style.display=""}Ar.prototype.update=function(){return{bottom:0,right:0}},Ar.prototype.setScrollLeft=function(){},Ar.prototype.setScrollTop=function(){},Ar.prototype.clear=function(){};var il={native:Tn,null:Ar};function ll(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&V(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new il[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),ue(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,a){a=="horizontal"?Mn(e,n):vr(e,n)},e),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)}var rs=0;function Nn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++rs,markArrays:null},La(e.curOp)}function Rn(e){var n=e.curOp;n&&Pa(n,function(a){for(var o=0;o<a.ops.length;o++)a.ops[o].cm.curOp=null;os(a)})}function os(e){for(var n=e.ops,a=0;a<n.length;a++)ls(n[a]);for(var o=0;o<n.length;o++)as(n[o]);for(var u=0;u<n.length;u++)ss(n[u]);for(var m=0;m<n.length;m++)us(n[m]);for(var S=0;S<n.length;S++)cs(n[S])}function ls(e){var n=e.cm,a=n.display;fs(n),e.updateMaxLine&&So(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<a.viewFrom||e.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new no(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function as(e){e.updatedDisplay=e.mustUpdate&&Uo(e.cm,e.update)}function ss(e){var n=e.cm,a=n.display;e.updatedDisplay&&Zr(n),e.barMeasure=yr(n),a.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=ji(n,a.maxLine,a.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+en(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-_n(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function us(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Mn(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var a=e.focus&&e.focus==q(be(n));e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,a),(e.updatedDisplay||e.startHeight!=n.doc.height)&&qn(n,e.barMeasure),e.updatedDisplay&&Qo(n,e.barMeasure),e.selectionChanged&&Ho(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),a&&el(e.cm)}function cs(e){var n=e.cm,a=n.display,o=n.doc;e.updatedDisplay&&al(n,e.update),a.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),e.scrollTop!=null&&rl(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Mn(n,e.scrollLeft,!0,!0),e.scrollToPos&&Za(n,es(n,Re(o,e.scrollToPos.from),Re(o,e.scrollToPos.to),e.scrollToPos.margin));var u=e.maybeHiddenMarkers,m=e.maybeUnhiddenMarkers;if(u)for(var S=0;S<u.length;++S)u[S].lines.length||Pe(u[S],"hide");if(m)for(var k=0;k<m.length;++k)m[k].lines.length&&Pe(m[k],"unhide");a.wrapper.offsetHeight&&(o.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Pe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function St(e,n){if(e.curOp)return n();Nn(e);try{return n()}finally{Rn(e)}}function lt(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Nn(e);try{return n.apply(e,arguments)}finally{Rn(e)}}}function mt(e){return function(){if(this.curOp)return e.apply(this,arguments);Nn(this);try{return e.apply(this,arguments)}finally{Rn(this)}}}function at(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Nn(n);try{return e.apply(this,arguments)}finally{Rn(n)}}}function br(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,oe(ds,e))}function ds(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var a=+new Date+e.options.workTime,o=ur(e,n.highlightFrontier),u=[];n.iter(o.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(o.line>=e.display.viewFrom){var S=m.styles,k=m.text.length>e.options.maxHighlightLength?Jt(n.mode,o.state):null,B=hi(e,m,o,!0);k&&(o.state=k),m.styles=B.styles;var O=m.styleClasses,W=B.classes;W?m.styleClasses=W:O&&(m.styleClasses=null);for(var Y=!S||S.length!=m.styles.length||O!=W&&(!O||!W||O.bgClass!=W.bgClass||O.textClass!=W.textClass),K=0;!Y&&K<S.length;++K)Y=S[K]!=m.styles[K];Y&&u.push(o.line),m.stateAfter=o.save(),o.nextLine()}else m.text.length<=e.options.maxHighlightLength&&bo(e,m.text,o),m.stateAfter=o.line%5==0?o.save():null,o.nextLine();if(+new Date>a)return br(e,e.options.workDelay),!0}),n.highlightFrontier=o.line,n.modeFrontier=Math.max(n.modeFrontier,o.line),u.length&&St(e,function(){for(var m=0;m<u.length;m++)vn(e,u[m],"text")})}}var no=function(e,n,a){var o=e.display;this.viewport=n,this.visible=eo(o,e.doc,n),this.editorIsHidden=!o.wrapper.offsetWidth,this.wrapperHeight=o.wrapper.clientHeight,this.wrapperWidth=o.wrapper.clientWidth,this.oldDisplayWidth=_n(e),this.force=a,this.dims=Bo(e),this.events=[]};function fs(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=en(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=en(e)+"px",n.scrollbarsClipped=!0)}function ps(e){if(e.hasFocus())return null;var n=q(be(e));if(!n||!J(e.display.lineDiv,n))return null;var a={activeElt:n};if(window.getSelection){var o=pe(e).getSelection();o.anchorNode&&o.extend&&J(e.display.lineDiv,o.anchorNode)&&(a.anchorNode=o.anchorNode,a.anchorOffset=o.anchorOffset,a.focusNode=o.focusNode,a.focusOffset=o.focusOffset)}return a}function hs(e){if(e&&e.activeElt&&e.activeElt!=q(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&J(document.body,e.anchorNode)&&J(document.body,e.focusNode))){var n=e.activeElt.ownerDocument,a=n.defaultView.getSelection(),o=n.createRange();o.setEnd(e.anchorNode,e.anchorOffset),o.collapse(!1),a.removeAllRanges(),a.addRange(o),a.extend(e.focusNode,e.focusOffset)}}function Uo(e,n){var a=e.display,o=e.doc;if(n.editorIsHidden)return yn(e),!1;if(!n.force&&n.visible.from>=a.viewFrom&&n.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Ji(e)==0)return!1;ul(e)&&(yn(e),n.dims=Bo(e));var u=o.first+o.size,m=Math.max(n.visible.from-e.options.viewportMargin,o.first),S=Math.min(u,n.visible.to+e.options.viewportMargin);a.viewFrom<m&&m-a.viewFrom<20&&(m=Math.max(o.first,a.viewFrom)),a.viewTo>S&&a.viewTo-S<20&&(S=Math.min(u,a.viewTo)),ln&&(m=Eo(e.doc,m),S=Di(e.doc,S));var k=m!=a.viewFrom||S!=a.viewTo||a.lastWrapHeight!=n.wrapperHeight||a.lastWrapWidth!=n.wrapperWidth;Xa(e,m,S),a.viewOffset=an(_e(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var B=Ji(e);if(!k&&B==0&&!n.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var O=ps(e);return B>4&&(a.lineDiv.style.display="none"),ms(e,a.updateLineNumbers,n.dims),B>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,hs(O),j(a.cursorDiv),j(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,k&&(a.lastWrapHeight=n.wrapperHeight,a.lastWrapWidth=n.wrapperWidth,br(e,400)),a.updateLineNumbers=null,!0}function al(e,n){for(var a=n.viewport,o=!0;;o=!1){if(o&&e.options.lineWrapping&&n.oldDisplayWidth!=_n(e))o&&(n.visible=eo(e.display,e.doc,a));else if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+Do(e.display)-Mo(e),a.top)}),n.visible=eo(e.display,e.doc,a),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break;if(!Uo(e,n))break;Zr(e);var u=yr(e);mr(e),qn(e,u),Qo(e,u),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Wo(e,n){var a=new no(e,n);if(Uo(e,a)){Zr(e),al(e,a);var o=yr(e);mr(e),qn(e,o),Qo(e,o),a.finish()}}function ms(e,n,a){var o=e.display,u=e.options.lineNumbers,m=o.lineDiv,S=m.firstChild;function k(ne){var le=ne.nextSibling;return b&&T&&e.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),le}for(var B=o.view,O=o.viewFrom,W=0;W<B.length;W++){var Y=B[W];if(!Y.hidden)if(Y.node&&Y.node.parentNode==m){for(;S!=Y.node;)S=k(S);var K=u&&n!=null&&n<=O&&Y.lineNumber;Y.changes&&(ke(Y.changes,"gutter")>-1&&(K=!1),Ii(e,Y,O,a)),K&&(j(Y.lineNumber),Y.lineNumber.appendChild(document.createTextNode(Ae(e.options,O)))),S=Y.node.nextSibling}else{var X=$a(e,Y,O,a);m.insertBefore(X,S)}O+=Y.size}for(;S;)S=k(S)}function Yo(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",it(e,"gutterChanged",e)}function Qo(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+en(e)+"px"}function sl(e){var n=e.display,a=n.view;if(n.alignWidgets||n.gutters.firstChild&&e.options.fixedGutter){for(var o=Po(n)-n.scroller.scrollLeft+e.doc.scrollLeft,u=n.gutters.offsetWidth,m=o+"px",S=0;S<a.length;S++)if(!a[S].hidden){e.options.fixedGutter&&(a[S].gutter&&(a[S].gutter.style.left=m),a[S].gutterBackground&&(a[S].gutterBackground.style.left=m));var k=a[S].alignable;if(k)for(var B=0;B<k.length;B++)k[B].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=o+u+"px")}}function ul(e){if(!e.options.lineNumbers)return!1;var n=e.doc,a=Ae(e.options,n.first+n.size-1),o=e.display;if(a.length!=o.lineNumChars){var u=o.measure.appendChild(U("div",[U("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=u.firstChild.offsetWidth,S=u.offsetWidth-m;return o.lineGutter.style.width="",o.lineNumInnerWidth=Math.max(m,o.lineGutter.offsetWidth-S)+1,o.lineNumWidth=o.lineNumInnerWidth+S,o.lineNumChars=o.lineNumInnerWidth?a.length:-1,o.lineGutter.style.width=o.lineNumWidth+"px",Yo(e.display),!0}return!1}function Go(e,n){for(var a=[],o=!1,u=0;u<e.length;u++){var m=e[u],S=null;if(typeof m!="string"&&(S=m.style,m=m.className),m=="CodeMirror-linenumbers"){if(!n)continue;o=!0}a.push({className:m,style:S})}return n&&!o&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function cl(e){var n=e.gutters,a=e.gutterSpecs;j(n),e.lineGutter=null;for(var o=0;o<a.length;++o){var u=a[o],m=u.className,S=u.style,k=n.appendChild(U("div",null,"CodeMirror-gutter "+m));S&&(k.style.cssText=S),m=="CodeMirror-linenumbers"&&(e.lineGutter=k,k.style.width=(e.lineNumWidth||1)+"px")}n.style.display=a.length?"":"none",Yo(e)}function wr(e){cl(e.display),At(e),sl(e)}function gs(e,n,a,o){var u=this;this.input=a,u.scrollbarFiller=U("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=U("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=G("div",null,"CodeMirror-code"),u.selectionDiv=U("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=U("div",null,"CodeMirror-cursors"),u.measure=U("div",null,"CodeMirror-measure"),u.lineMeasure=U("div",null,"CodeMirror-measure"),u.lineSpace=G("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=G("div",[u.lineSpace],"CodeMirror-lines");u.mover=U("div",[m],null,"position: relative"),u.sizer=U("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=U("div",null,null,"position: absolute; height: "+Ne+"px; width: 1px;"),u.gutters=U("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=U("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=U("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),x&&g>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),d&&y<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!b&&!(t&&M)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=n.first,u.reportedViewFrom=u.reportedViewTo=n.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Go(o.gutters,o.lineNumbers),cl(u),a.init(u)}no.prototype.signal=function(e,n){ze(e,n)&&this.events.push(arguments)},no.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Pe.apply(null,this.events[e])};var ro=0,un=null;function dl(e){var n=e.wheelDeltaX,a=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),a==null&&e.detail&&e.axis==e.VERTICAL_AXIS?a=e.detail:a==null&&(a=e.wheelDelta),{x:n,y:a}}function vs(e){var n=dl(e);return n.x*=un,n.y*=un,n}function fl(e,n){x&&g==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var a=dl(n),o=a.x,u=a.y,m=un;n.deltaMode===0&&(o=n.deltaX,u=n.deltaY,m=1);var S=e.display,k=S.scroller,B=k.scrollWidth>k.clientWidth,O=k.scrollHeight>k.clientHeight;if(o&&B||u&&O){if(u&&T&&b){e:for(var W=n.target,Y=S.view;W!=k;W=W.parentNode)for(var K=0;K<Y.length;K++)if(Y[K].node==W){e.display.currentWheelTarget=W;break e}}if(o&&!t&&!A&&m!=null)return u&&O&&vr(e,Math.max(0,k.scrollTop+u*m)),Mn(e,Math.max(0,k.scrollLeft+o*m)),(!u||u&&O)&&We(n),void(S.wheelStartX=null);if(u&&m!=null){var X=u*m,ne=e.doc.scrollTop,le=ne+S.wrapper.clientHeight;X<0?ne=Math.max(0,ne+X-50):le=Math.min(e.doc.height,le+X+50),Wo(e,{top:ne,bottom:le})}ro<20&&n.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=k.scrollLeft,S.wheelStartY=k.scrollTop,S.wheelDX=o,S.wheelDY=u,setTimeout(function(){if(S.wheelStartX!=null){var fe=k.scrollLeft-S.wheelStartX,ye=k.scrollTop-S.wheelStartY,xe=ye&&S.wheelDY&&ye/S.wheelDY||fe&&S.wheelDX&&fe/S.wheelDX;S.wheelStartX=S.wheelStartY=null,xe&&(un=(un*ro+xe)/(ro+1),++ro)}},200)):(S.wheelDX+=o,S.wheelDY+=u))}}d?un=-.53:t?un=15:x?un=-.7:w&&(un=-1/3);var Bt=function(e,n){this.ranges=e,this.primIndex=n};Bt.prototype.primary=function(){return this.ranges[this.primIndex]},Bt.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var a=this.ranges[n],o=e.ranges[n];if(!je(a.anchor,o.anchor)||!je(a.head,o.head))return!1}return!0},Bt.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new Fe(ot(this.ranges[n].anchor),ot(this.ranges[n].head));return new Bt(e,this.primIndex)},Bt.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Bt.prototype.contains=function(e,n){n||(n=e);for(var a=0;a<this.ranges.length;a++){var o=this.ranges[a];if(ge(n,o.from())>=0&&ge(e,o.to())<=0)return a}return-1};var Fe=function(e,n){this.anchor=e,this.head=n};function Yt(e,n,a){var o=e&&e.options.selectionsMayTouch,u=n[a];n.sort(function(K,X){return ge(K.from(),X.from())}),a=ke(n,u);for(var m=1;m<n.length;m++){var S=n[m],k=n[m-1],B=ge(k.to(),S.from());if(o&&!S.empty()?B>0:B>=0){var O=jr(k.from(),S.from()),W=yt(k.to(),S.to()),Y=k.empty()?S.from()==S.head:k.from()==k.head;m<=a&&--a,n.splice(--m,2,new Fe(Y?W:O,Y?O:W))}}return new Bt(n,a)}function An(e,n){return new Bt([new Fe(e,n||e)],0)}function bn(e){return e.text?Z(e.from.line+e.text.length-1,Ie(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function pl(e,n){if(ge(e,n.from)<0)return e;if(ge(e,n.to)<=0)return bn(n);var a=e.line+n.text.length-(n.to.line-n.from.line)-1,o=e.ch;return e.line==n.to.line&&(o+=bn(n).ch-n.to.ch),Z(a,o)}function qo(e,n){for(var a=[],o=0;o<e.sel.ranges.length;o++){var u=e.sel.ranges[o];a.push(new Fe(pl(u.anchor,n),pl(u.head,n)))}return Yt(e.cm,a,e.sel.primIndex)}function hl(e,n,a){return e.line==n.line?Z(a.line,e.ch-n.ch+a.ch):Z(a.line+(e.line-n.line),e.ch)}function ys(e,n,a){for(var o=[],u=Z(e.first,0),m=u,S=0;S<n.length;S++){var k=n[S],B=hl(k.from,u,m),O=hl(bn(k),u,m);if(u=k.to,m=O,a=="around"){var W=e.sel.ranges[S],Y=ge(W.head,W.anchor)<0;o[S]=new Fe(Y?O:B,Y?B:O)}else o[S]=new Fe(B,B)}return new Bt(o,e.sel.primIndex)}function Ko(e){e.doc.mode=Hn(e.options,e.doc.modeOption),xr(e)}function xr(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,br(e,100),e.state.modeGen++,e.curOp&&At(e)}function ml(e,n){return n.from.ch==0&&n.to.ch==0&&Ie(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Xo(e,n,a,o){function u(xe){return a?a[xe]:null}function m(xe,me,Ee){_a(xe,me,Ee,o),it(xe,"change",xe,n)}function S(xe,me){for(var Ee=[],Ce=xe;Ce<me;++Ce)Ee.push(new Vn(O[Ce],u(Ce),o));return Ee}var k=n.from,B=n.to,O=n.text,W=_e(e,k.line),Y=_e(e,B.line),K=Ie(O),X=u(O.length-1),ne=B.line-k.line;if(n.full)e.insert(0,S(0,O.length)),e.remove(O.length,e.size-O.length);else if(ml(e,n)){var le=S(0,O.length-1);m(Y,Y.text,X),ne&&e.remove(k.line,ne),le.length&&e.insert(k.line,le)}else if(W==Y)if(O.length==1)m(W,W.text.slice(0,k.ch)+K+W.text.slice(B.ch),X);else{var fe=S(1,O.length-1);fe.push(new Vn(K+W.text.slice(B.ch),X,o)),m(W,W.text.slice(0,k.ch)+O[0],u(0)),e.insert(k.line+1,fe)}else if(O.length==1)m(W,W.text.slice(0,k.ch)+O[0]+Y.text.slice(B.ch),u(0)),e.remove(k.line+1,ne);else{m(W,W.text.slice(0,k.ch)+O[0],u(0)),m(Y,K+Y.text.slice(B.ch),X);var ye=S(1,O.length-1);ne>1&&e.remove(k.line+1,ne-1),e.insert(k.line+1,ye)}it(e,"change",e,n)}function wn(e,n,a){function o(u,m,S){if(u.linked)for(var k=0;k<u.linked.length;++k){var B=u.linked[k];if(B.doc!=m){var O=S&&B.sharedHist;a&&!O||(n(B.doc,O),o(B.doc,u,O))}}}o(e,null,!0)}function gl(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,Fo(e),Ko(e),vl(e),e.options.direction=n.direction,e.options.lineWrapping||So(e),e.options.mode=n.modeOption,At(e)}function vl(e){(e.doc.direction=="rtl"?ee:V)(e.display.lineDiv,"CodeMirror-rtl")}function As(e){St(e,function(){vl(e),At(e)})}function oo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Jo(e,n){var a={from:ot(n.from),to:bn(n),text:rn(e,n.from,n.to)};return bl(e,a,n.from.line,n.to.line+1),wn(e,function(o){return bl(o,a,n.from.line,n.to.line+1)},!0),a}function yl(e){for(;e.length&&Ie(e).ranges;)e.pop()}function bs(e,n){return n?(yl(e.done),Ie(e.done)):e.done.length&&!Ie(e.done).ranges?Ie(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Ie(e.done)):void 0}function Al(e,n,a,o){var u=e.history;u.undone.length=0;var m,S,k=+new Date;if((u.lastOp==o||u.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&u.lastModTime>k-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(m=bs(u,u.lastOp==o)))S=Ie(m.changes),ge(n.from,n.to)==0&&ge(n.from,S.to)==0?S.to=bn(n):m.changes.push(Jo(e,n));else{var B=Ie(u.done);for((!B||!B.ranges)&&io(e.sel,u.done),m={changes:[Jo(e,n)],generation:u.generation},u.done.push(m);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=k,u.lastOp=u.lastSelOp=o,u.lastOrigin=u.lastSelOrigin=n.origin,S||Pe(e,"historyAdded")}function ws(e,n,a,o){var u=n.charAt(0);return u=="*"||u=="+"&&a.ranges.length==o.ranges.length&&a.somethingSelected()==o.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xs(e,n,a,o){var u=e.history,m=o&&o.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||ws(e,m,Ie(u.done),n))?u.done[u.done.length-1]=n:io(n,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,o&&o.clearRedo!==!1&&yl(u.undone)}function io(e,n){var a=Ie(n);a&&a.ranges&&a.equals(e)||n.push(e)}function bl(e,n,a,o){var u=n["spans_"+e.id],m=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,o),function(S){S.markedSpans&&((u||(u=n["spans_"+e.id]={}))[m]=S.markedSpans),++m})}function Cs(e){if(!e)return null;for(var n,a=0;a<e.length;++a)e[a].marker.explicitlyCleared?n||(n=e.slice(0,a)):n&&n.push(e[a]);return n?n.length?n:null:e}function Es(e,n){var a=n["spans_"+e.id];if(!a)return null;for(var o=[],u=0;u<n.text.length;++u)o.push(Cs(a[u]));return o}function wl(e,n){var a=Es(e,n),o=xo(e,n);if(!a)return o;if(!o)return a;for(var u=0;u<a.length;++u){var m=a[u],S=o[u];if(m&&S)e:for(var k=0;k<S.length;++k){for(var B=S[k],O=0;O<m.length;++O)if(m[O].marker==B.marker)continue e;m.push(B)}else S&&(a[u]=S)}return a}function Kn(e,n,a){for(var o=[],u=0;u<e.length;++u){var m=e[u];if(m.ranges)o.push(a?Bt.prototype.deepCopy.call(m):m);else{var S=m.changes,k=[];o.push({changes:k});for(var B=0;B<S.length;++B){var O=S[B],W=void 0;if(k.push({from:O.from,to:O.to,text:O.text}),n)for(var Y in O)(W=Y.match(/^spans_(\d+)$/))&&ke(n,Number(W[1]))>-1&&(Ie(k)[Y]=O[Y],delete O[Y])}}}return o}function Zo(e,n,a,o){if(o){var u=e.anchor;if(a){var m=ge(n,u)<0;m!=ge(a,u)<0?(u=n,n=a):m!=ge(n,a)<0&&(n=a)}return new Fe(u,n)}return new Fe(a||n,n)}function lo(e,n,a,o,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),pt(e,new Bt([Zo(e.sel.primary(),n,a,u)],0),o)}function xl(e,n,a){for(var o=[],u=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)o[m]=Zo(e.sel.ranges[m],n[m],null,u);pt(e,Yt(e.cm,o,e.sel.primIndex),a)}function ei(e,n,a,o){var u=e.sel.ranges.slice(0);u[n]=a,pt(e,Yt(e.cm,u,e.sel.primIndex),o)}function Cl(e,n,a,o){pt(e,An(n,a),o)}function _s(e,n,a){var o={ranges:n.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new Fe(Re(e,u[m].anchor),Re(e,u[m].head))},origin:a&&a.origin};return Pe(e,"beforeSelectionChange",e,o),e.cm&&Pe(e.cm,"beforeSelectionChange",e.cm,o),o.ranges!=n.ranges?Yt(e.cm,o.ranges,o.ranges.length-1):n}function El(e,n,a){var o=e.history.done,u=Ie(o);u&&u.ranges?(o[o.length-1]=n,ao(e,n,a)):pt(e,n,a)}function pt(e,n,a){ao(e,n,a),xs(e,e.sel,e.cm?e.cm.curOp.id:NaN,a)}function ao(e,n,a){(ze(e,"beforeSelectionChange")||e.cm&&ze(e.cm,"beforeSelectionChange"))&&(n=_s(e,n,a));var o=a&&a.bias||(ge(n.primary().head,e.sel.primary().head)<0?-1:1);_l(e,kl(e,n,o,!0)),(!a||a.scroll!==!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Gn(e.cm)}function _l(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,rt(e.cm)),it(e,"cursorActivity",e))}function Sl(e){_l(e,kl(e,e.sel,null,!1))}function kl(e,n,a,o){for(var u,m=0;m<n.ranges.length;m++){var S=n.ranges[m],k=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],B=so(e,S.anchor,k&&k.anchor,a,o),O=S.head==S.anchor?B:so(e,S.head,k&&k.head,a,o);(u||B!=S.anchor||O!=S.head)&&(u||(u=n.ranges.slice(0,m)),u[m]=new Fe(B,O))}return u?Yt(e.cm,u,n.primIndex):n}function Xn(e,n,a,o,u){var m=_e(e,n.line);if(m.markedSpans)for(var S=0;S<m.markedSpans.length;++S){var k=m.markedSpans[S],B=k.marker,O="selectLeft"in B?!B.selectLeft:B.inclusiveLeft,W="selectRight"in B?!B.selectRight:B.inclusiveRight;if((k.from==null||(O?k.from<=n.ch:k.from<n.ch))&&(k.to==null||(W?k.to>=n.ch:k.to>n.ch))){if(u&&(Pe(B,"beforeCursorEnter"),B.explicitlyCleared)){if(m.markedSpans){--S;continue}break}if(!B.atomic)continue;if(a){var Y=B.find(o<0?1:-1),K=void 0;if((o<0?W:O)&&(Y=Dl(e,Y,-o,Y&&Y.line==n.line?m:null)),Y&&Y.line==n.line&&(K=ge(Y,a))&&(o<0?K<0:K>0))return Xn(e,Y,n,o,u)}var X=B.find(o<0?-1:1);return(o<0?O:W)&&(X=Dl(e,X,o,X.line==n.line?m:null)),X?Xn(e,X,n,o,u):null}}return n}function so(e,n,a,o,u){var m=o||1;return Xn(e,n,a,m,u)||!u&&Xn(e,n,a,m,!0)||Xn(e,n,a,-m,u)||!u&&Xn(e,n,a,-m,!0)||(e.cantEdit=!0,Z(e.first,0))}function Dl(e,n,a,o){return a<0&&n.ch==0?n.line>e.first?Re(e,Z(n.line-1)):null:a>0&&n.ch==(o||_e(e,n.line)).text.length?n.line<e.first+e.size-1?Z(n.line+1,0):null:new Z(n.line,n.ch+a)}function Ml(e){e.setSelection(Z(e.firstLine(),0),Z(e.lastLine()),Le)}function Tl(e,n,a){var o={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return o.canceled=!0}};return a&&(o.update=function(u,m,S,k){u&&(o.from=Re(e,u)),m&&(o.to=Re(e,m)),S&&(o.text=S),k!==void 0&&(o.origin=k)}),Pe(e,"beforeChange",e,o),e.cm&&Pe(e.cm,"beforeChange",e.cm,o),o.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function Jn(e,n,a){if(e.cm){if(!e.cm.curOp)return lt(e.cm,Jn)(e,n,a);if(e.cm.state.suppressEdits)return}if(!(ze(e,"beforeChange")||e.cm&&ze(e.cm,"beforeChange"))||(n=Tl(e,n,!0))){var o=wi&&!a&&wa(e,n.from,n.to);if(o)for(var u=o.length-1;u>=0;--u)Nl(e,{from:o[u].from,to:o[u].to,text:u?[""]:n.text,origin:n.origin});else Nl(e,n)}}function Nl(e,n){if(n.text.length!=1||n.text[0]!=""||ge(n.from,n.to)!=0){var a=qo(e,n);Al(e,n,a,e.cm?e.cm.curOp.id:NaN),Cr(e,n,a,xo(e,n));var o=[];wn(e,function(u,m){!m&&ke(o,u.history)==-1&&(Bl(u.history,n),o.push(u.history)),Cr(u,n,null,xo(u,n))})}}function uo(e,n,a){var o=e.cm&&e.cm.state.suppressEdits;if(!o||a){for(var u,m=e.history,S=e.sel,k=n=="undo"?m.done:m.undone,B=n=="undo"?m.undone:m.done,O=0;O<k.length&&(u=k[O],!(a?u.ranges&&!u.equals(e.sel):!u.ranges));O++);if(O!=k.length){for(m.lastOrigin=m.lastSelOrigin=null;;){if(!(u=k.pop()).ranges){if(o)return void k.push(u);break}if(io(u,B),a&&!u.equals(e.sel))return void pt(e,u,{clearRedo:!1});S=u}var W=[];io(S,B),B.push({changes:W,generation:m.generation}),m.generation=u.generation||++m.maxGeneration;for(var Y=ze(e,"beforeChange")||e.cm&&ze(e.cm,"beforeChange"),K=function(le){var fe=u.changes[le];if(fe.origin=n,Y&&!Tl(e,fe,!1))return k.length=0,{};W.push(Jo(e,fe));var ye=le?qo(e,fe):Ie(k);Cr(e,fe,ye,wl(e,fe)),!le&&e.cm&&e.cm.scrollIntoView({from:fe.from,to:bn(fe)});var xe=[];wn(e,function(me,Ee){!Ee&&ke(xe,me.history)==-1&&(Bl(me.history,fe),xe.push(me.history)),Cr(me,fe,null,wl(me,fe))})},X=u.changes.length-1;X>=0;--X){var ne=K(X);if(ne)return ne.v}}}}function Rl(e,n){if(n!=0&&(e.first+=n,e.sel=new Bt(dt(e.sel.ranges,function(u){return new Fe(Z(u.anchor.line+n,u.anchor.ch),Z(u.head.line+n,u.head.ch))}),e.sel.primIndex),e.cm)){At(e.cm,e.first,e.first-n,n);for(var a=e.cm.display,o=a.viewFrom;o<a.viewTo;o++)vn(e.cm,o,"gutter")}}function Cr(e,n,a,o){if(e.cm&&!e.cm.curOp)return lt(e.cm,Cr)(e,n,a,o);if(n.to.line<e.first)Rl(e,n.text.length-1-(n.to.line-n.from.line));else if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var u=n.text.length-1-(e.first-n.from.line);Rl(e,u),n={from:Z(e.first,0),to:Z(n.to.line+u,n.to.ch),text:[Ie(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:Z(m,_e(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=rn(e,n.from,n.to),a||(a=qo(e,n)),e.cm?Ss(e.cm,n,o):Xo(e,n,o),ao(e,a,Le),e.cantEdit&&so(e,Z(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ss(e,n,a){var o=e.doc,u=e.display,m=n.from,S=n.to,k=!1,B=m.line;e.options.lineWrapping||(B=H(Ut(_e(o,m.line))),o.iter(B,S.line+1,function(X){if(X==u.maxLine)return k=!0,!0})),o.sel.contains(n.from,n.to)>-1&&rt(e),Xo(o,n,a,Xi(e)),e.options.lineWrapping||(o.iter(B,m.line+n.text.length,function(X){var ne=Yr(X);ne>u.maxLineLength&&(u.maxLine=X,u.maxLineLength=ne,u.maxLineChanged=!0,k=!1)}),k&&(e.curOp.updateMaxLine=!0)),ha(o,m.line),br(e,400);var O=n.text.length-(S.line-m.line)-1;n.full?At(e):m.line!=S.line||n.text.length!=1||ml(e.doc,n)?At(e,m.line,S.line+1,O):vn(e,m.line,"text");var W=ze(e,"changes"),Y=ze(e,"change");if(Y||W){var K={from:m,to:S,text:n.text,removed:n.removed,origin:n.origin};Y&&it(e,"change",e,K),W&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(K)}e.display.selForContextMenu=null}function Zn(e,n,a,o,u){var m;o||(o=a),ge(o,a)<0&&(a=(m=[o,a])[0],o=m[1]),typeof n=="string"&&(n=e.splitLines(n)),Jn(e,{from:a,to:o,text:n,origin:u})}function Il(e,n,a,o){a<e.line?e.line+=o:n<e.line&&(e.line=n,e.ch=0)}function Ll(e,n,a,o){for(var u=0;u<e.length;++u){var m=e[u],S=!0;if(m.ranges){m.copied||((m=e[u]=m.deepCopy()).copied=!0);for(var k=0;k<m.ranges.length;k++)Il(m.ranges[k].anchor,n,a,o),Il(m.ranges[k].head,n,a,o)}else{for(var B=0;B<m.changes.length;++B){var O=m.changes[B];if(a<O.from.line)O.from=Z(O.from.line+o,O.from.ch),O.to=Z(O.to.line+o,O.to.ch);else if(n<=O.to.line){S=!1;break}}S||(e.splice(0,u+1),u=0)}}}function Bl(e,n){var a=n.from.line,o=n.to.line,u=n.text.length-(o-a)-1;Ll(e.done,a,o,u),Ll(e.undone,a,o,u)}function Er(e,n,a,o){var u=n,m=n;return typeof n=="number"?m=_e(e,fi(e,n)):u=H(n),u==null?null:(o(m,u)&&e.cm&&vn(e.cm,u,a),m)}function _r(e){this.lines=e,this.parent=null;for(var n=0,a=0;a<e.length;++a)e[a].parent=this,n+=e[a].height;this.height=n}function Sr(e){this.children=e;for(var n=0,a=0,o=0;o<e.length;++o){var u=e[o];n+=u.chunkSize(),a+=u.height,u.parent=this}this.size=n,this.height=a,this.parent=null}Fe.prototype.from=function(){return jr(this.anchor,this.head)},Fe.prototype.to=function(){return yt(this.anchor,this.head)},Fe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},_r.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var a=e,o=e+n;a<o;++a){var u=this.lines[a];this.height-=u.height,Sa(u),it(u,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,a){this.height+=a,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var o=0;o<n.length;++o)n[o].parent=this},iterN:function(e,n,a){for(var o=e+n;e<o;++e)if(a(this.lines[e]))return!0}},Sr.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var a=0;a<this.children.length;++a){var o=this.children[a],u=o.chunkSize();if(e<u){var m=Math.min(n,u-e),S=o.height;if(o.removeInner(e,m),this.height-=S-o.height,u==m&&(this.children.splice(a--,1),o.parent=null),(n-=m)==0)break;e=0}else e-=u}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof _r))){var k=[];this.collapse(k),this.children=[new _r(k)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,a){this.size+=n.length,this.height+=a;for(var o=0;o<this.children.length;++o){var u=this.children[o],m=u.chunkSize();if(e<=m){if(u.insertInner(e,n,a),u.lines&&u.lines.length>50){for(var S=u.lines.length%25+25,k=S;k<u.lines.length;){var B=new _r(u.lines.slice(k,k+=25));u.height-=B.height,this.children.splice(++o,0,B),B.parent=this}u.lines=u.lines.slice(0,S),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=new Sr(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=n.size,e.height-=n.height;var a=ke(e.parent.children,e);e.parent.children.splice(a+1,0,n)}else{var o=new Sr(e.children);o.parent=e,e.children=[o,n],e=o}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,a){for(var o=0;o<this.children.length;++o){var u=this.children[o],m=u.chunkSize();if(e<m){var S=Math.min(n,m-e);if(u.iterN(e,S,a))return!0;if((n-=S)==0)break;e=0}else e-=m}}};var kr=function(e,n,a){if(a)for(var o in a)a.hasOwnProperty(o)&&(this[o]=a[o]);this.doc=e,this.node=n};function Pl(e,n,a){an(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&zo(e,a)}function ks(e,n,a,o){var u=new kr(e,a,o),m=e.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),Er(e,n,"widget",function(S){var k=S.widgets||(S.widgets=[]);if(u.insertAt==null?k.push(u):k.splice(Math.min(k.length,Math.max(0,u.insertAt)),0,u),u.line=S,m&&!gn(e,S)){var B=an(S)<e.scrollTop;Lt(S,S.height+pr(u)),B&&zo(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&it(m,"lineWidgetAdded",m,u,typeof n=="number"?n:H(n)),u}kr.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,a=this.line,o=H(a);if(o!=null&&n){for(var u=0;u<n.length;++u)n[u]==this&&n.splice(u--,1);n.length||(a.widgets=null);var m=pr(this);Lt(a,Math.max(0,a.height-m)),e&&(St(e,function(){Pl(e,a,-m),vn(e,o,"widget")}),it(e,"lineWidgetCleared",e,this,o))}},kr.prototype.changed=function(){var e=this,n=this.height,a=this.doc.cm,o=this.line;this.height=null;var u=pr(this)-n;!u||(gn(this.doc,o)||Lt(o,o.height+u),a&&St(a,function(){a.curOp.forceUpdate=!0,Pl(a,o,u),it(a,"lineWidgetChanged",a,e,H(o))}))},_t(kr);var Fl=0,xn=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Fl};function er(e,n,a,o,u){if(o&&o.shared)return Ds(e,n,a,o,u);if(e.cm&&!e.cm.curOp)return lt(e.cm,er)(e,n,a,o,u);var m=new xn(e,u),S=ge(n,a);if(o&&se(o,m,!1),S>0||S==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=G("span",[m.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(ki(e,n.line,n,a,m)||n.line!=a.line&&ki(e,a.line,n,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");ga()}m.addToHistory&&Al(e,{from:n,to:a,origin:"markText"},e.sel,NaN);var k,B=n.line,O=e.cm;if(e.iter(B,a.line+1,function(Y){O&&m.collapsed&&!O.options.lineWrapping&&Ut(Y)==O.display.maxLine&&(k=!0),m.collapsed&&B!=n.line&&Lt(Y,0),ya(Y,new Vr(m,B==n.line?n.ch:null,B==a.line?a.ch:null),e.cm&&e.cm.curOp),++B}),m.collapsed&&e.iter(n.line,a.line+1,function(Y){gn(e,Y)&&Lt(Y,0)}),m.clearOnEnter&&ue(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(ma(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Fl,m.atomic=!0),O){if(k&&(O.curOp.updateMaxLine=!0),m.collapsed)At(O,n.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var W=n.line;W<=a.line;W++)vn(O,W,"text");m.atomic&&Sl(O.doc),it(O,"markerAdded",O,m)}return m}xn.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Nn(e),ze(this,"clear")){var a=this.find();a&&it(this,"clear",a.from,a.to)}for(var o=null,u=null,m=0;m<this.lines.length;++m){var S=this.lines[m],k=cr(S.markedSpans,this);e&&!this.collapsed?vn(e,H(S),"text"):e&&(k.to!=null&&(u=H(S)),k.from!=null&&(o=H(S))),S.markedSpans=va(S.markedSpans,k),k.from==null&&this.collapsed&&!gn(this.doc,S)&&e&&Lt(S,Wn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var B=0;B<this.lines.length;++B){var O=Ut(this.lines[B]),W=Yr(O);W>e.display.maxLineLength&&(e.display.maxLine=O,e.display.maxLineLength=W,e.display.maxLineChanged=!0)}o!=null&&e&&this.collapsed&&At(e,o,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Sl(e.doc)),e&&it(e,"markerCleared",e,this,o,u),n&&Rn(e),this.parent&&this.parent.clear()}},xn.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var a,o,u=0;u<this.lines.length;++u){var m=this.lines[u],S=cr(m.markedSpans,this);if(S.from!=null&&(a=Z(n?m:H(m),S.from),e==-1))return a;if(S.to!=null&&(o=Z(n?m:H(m),S.to),e==1))return o}return a&&{from:a,to:o}},xn.prototype.changed=function(){var e=this,n=this.find(-1,!0),a=this,o=this.doc.cm;!n||!o||St(o,function(){var u=n.line,m=H(n.line),S=To(o,m);if(S&&(zi(S),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!gn(a.doc,u)&&a.height!=null){var k=a.height;a.height=null;var B=pr(a)-k;B&&Lt(u,u.height+B)}it(o,"markerChanged",o,e)})},xn.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||ke(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},xn.prototype.detachLine=function(e){if(this.lines.splice(ke(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},_t(xn);var Dr=function(e,n){this.markers=e,this.primary=n;for(var a=0;a<e.length;++a)e[a].parent=this};function Ds(e,n,a,o,u){(o=se(o)).shared=!1;var m=[er(e,n,a,o,u)],S=m[0],k=o.widgetNode;return wn(e,function(B){k&&(o.widgetNode=k.cloneNode(!0)),m.push(er(B,Re(B,n),Re(B,a),o,u));for(var O=0;O<B.linked.length;++O)if(B.linked[O].isParent)return;S=Ie(m)}),new Dr(m,S)}function Ol(e){return e.findMarks(Z(e.first,0),e.clipPos(Z(e.lastLine())),function(n){return n.parent})}function Ms(e,n){for(var a=0;a<n.length;a++){var o=n[a],u=o.find(),m=e.clipPos(u.from),S=e.clipPos(u.to);if(ge(m,S)){var k=er(e,m,S,o.primary,o.primary.type);o.markers.push(k),k.parent=o}}}function Ts(e){for(var n=function(o){var u=e[o],m=[u.primary.doc];wn(u.primary.doc,function(B){return m.push(B)});for(var S=0;S<u.markers.length;S++){var k=u.markers[S];ke(m,k.doc)==-1&&(k.parent=null,u.markers.splice(S--,1))}},a=0;a<e.length;a++)n(a)}Dr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();it(this,"clear")}},Dr.prototype.find=function(e,n){return this.primary.find(e,n)},_t(Dr);var Ns=0,bt=function(e,n,a,o,u){if(!(this instanceof bt))return new bt(e,n,a,o,u);a==null&&(a=0),Sr.call(this,[new _r([new Vn("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var m=Z(a,0);this.sel=An(m),this.history=new oo(null),this.id=++Ns,this.modeOption=n,this.lineSep=o,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Xo(this,{from:m,to:m,text:e}),pt(this,An(m),Le)};bt.prototype=pn(Sr.prototype,{constructor:bt,iter:function(e,n,a){a?this.iterN(e-this.first,n-e,a):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var a=0,o=0;o<n.length;++o)a+=n[o].height;this.insertInner(e-this.first,n,a)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=sr(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:at(function(e){var n=Z(this.first,0),a=this.first+this.size-1;Jn(this,{from:n,to:Z(a,_e(this,a).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&gr(this.cm,0,0),pt(this,An(n),Le)}),replaceRange:function(e,n,a,o){Zn(this,e,n=Re(this,n),a=a?Re(this,a):n,o)},getRange:function(e,n,a){var o=rn(this,Re(this,e),Re(this,n));return a===!1?o:a===""?o.join(""):o.join(a||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(ie(this,e))return _e(this,e)},getLineNumber:function(e){return H(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=_e(this,e)),Ut(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Re(this,e)},getCursor:function(e){var n=this.sel.primary();return e==null||e=="head"?n.head:e=="anchor"?n.anchor:e=="end"||e=="to"||e===!1?n.to():n.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:at(function(e,n,a){Cl(this,Re(this,typeof e=="number"?Z(e,n||0):e),null,a)}),setSelection:at(function(e,n,a){Cl(this,Re(this,e),Re(this,n||e),a)}),extendSelection:at(function(e,n,a){lo(this,Re(this,e),n&&Re(this,n),a)}),extendSelections:at(function(e,n){xl(this,pi(this,e),n)}),extendSelectionsBy:at(function(e,n){xl(this,pi(this,dt(this.sel.ranges,e)),n)}),setSelections:at(function(e,n,a){if(e.length){for(var o=[],u=0;u<e.length;u++)o[u]=new Fe(Re(this,e[u].anchor),Re(this,e[u].head||e[u].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),pt(this,Yt(this.cm,o,n),a)}}),addSelection:at(function(e,n,a){var o=this.sel.ranges.slice(0);o.push(new Fe(Re(this,e),Re(this,n||e))),pt(this,Yt(this.cm,o,o.length-1),a)}),getSelection:function(e){for(var n,a=this.sel.ranges,o=0;o<a.length;o++){var u=rn(this,a[o].from(),a[o].to());n=n?n.concat(u):u}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],a=this.sel.ranges,o=0;o<a.length;o++){var u=rn(this,a[o].from(),a[o].to());e!==!1&&(u=u.join(e||this.lineSeparator())),n[o]=u}return n},replaceSelection:function(e,n,a){for(var o=[],u=0;u<this.sel.ranges.length;u++)o[u]=e;this.replaceSelections(o,n,a||"+input")},replaceSelections:at(function(e,n,a){for(var o=[],u=this.sel,m=0;m<u.ranges.length;m++){var S=u.ranges[m];o[m]={from:S.from(),to:S.to(),text:this.splitLines(e[m]),origin:a}}for(var k=n&&n!="end"&&ys(this,o,n),B=o.length-1;B>=0;B--)Jn(this,o[B]);k?El(this,k):this.cm&&Gn(this.cm)}),undo:at(function(){uo(this,"undo")}),redo:at(function(){uo(this,"redo")}),undoSelection:at(function(){uo(this,"undo",!0)}),redoSelection:at(function(){uo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,a=0,o=0;o<e.done.length;o++)e.done[o].ranges||++n;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++a;return{undo:n,redo:a}},clearHistory:function(){var e=this;this.history=new oo(this.history),wn(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Kn(this.history.done),undone:Kn(this.history.undone)}},setHistory:function(e){var n=this.history=new oo(this.history);n.done=Kn(e.done.slice(0),null,!0),n.undone=Kn(e.undone.slice(0),null,!0)},setGutterMarker:at(function(e,n,a){return Er(this,e,"gutter",function(o){var u=o.gutterMarkers||(o.gutterMarkers={});return u[n]=a,!a&&Rt(u)&&(o.gutterMarkers=null),!0})}),clearGutter:at(function(e){var n=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[e]&&Er(n,a,"gutter",function(){return a.gutterMarkers[e]=null,Rt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!(ie(this,e)&&(n=e,e=_e(this,e))))return null}else if((n=H(e))==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:at(function(e,n,a){return Er(this,e,n=="gutter"?"gutter":"class",function(o){var u=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(o[u]){if(R(a).test(o[u]))return!1;o[u]+=" "+a}else o[u]=a;return!0})}),removeLineClass:at(function(e,n,a){return Er(this,e,n=="gutter"?"gutter":"class",function(o){var u=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=o[u];if(!m)return!1;if(a==null)o[u]=null;else{var S=m.match(R(a));if(!S)return!1;var k=S.index+S[0].length;o[u]=m.slice(0,S.index)+(S.index&&k!=m.length?" ":"")+m.slice(k)||null}return!0})}),addLineWidget:at(function(e,n,a){return ks(this,e,n,a)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,a){return er(this,Re(this,e),Re(this,n),a,a&&a.type||"range")},setBookmark:function(e,n){var a={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return er(this,e=Re(this,e),e,a,"bookmark")},findMarksAt:function(e){var n=[],a=_e(this,(e=Re(this,e)).line).markedSpans;if(a)for(var o=0;o<a.length;++o){var u=a[o];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&n.push(u.marker.parent||u.marker)}return n},findMarks:function(e,n,a){e=Re(this,e),n=Re(this,n);var o=[],u=e.line;return this.iter(e.line,n.line+1,function(m){var S=m.markedSpans;if(S)for(var k=0;k<S.length;k++){var B=S[k];!(B.to!=null&&u==e.line&&e.ch>=B.to||B.from==null&&u!=e.line||B.from!=null&&u==n.line&&B.from>=n.ch)&&(!a||a(B.marker))&&o.push(B.marker.parent||B.marker)}++u}),o},getAllMarks:function(){var e=[];return this.iter(function(n){var a=n.markedSpans;if(a)for(var o=0;o<a.length;++o)a[o].from!=null&&e.push(a[o].marker)}),e},posFromIndex:function(e){var n,a=this.first,o=this.lineSeparator().length;return this.iter(function(u){var m=u.text.length+o;if(m>e)return n=e,!0;e-=m,++a}),Re(this,Z(a,n))},indexFromPos:function(e){var n=(e=Re(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,e.line,function(o){n+=o.text.length+a}),n},copy:function(e){var n=new bt(sr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,a=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<a&&(a=e.to);var o=new bt(sr(this,n,a),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(o.history=this.history),(this.linked||(this.linked=[])).push({doc:o,sharedHist:e.sharedHist}),o.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ms(o,Ol(this)),o},unlinkDoc:function(e){if(e instanceof Qe&&(e=e.doc),this.linked){for(var n=0;n<this.linked.length;++n)if(this.linked[n].doc==e){this.linked.splice(n,1),e.unlinkDoc(this),Ts(Ol(this));break}}if(e.history==this.history){var a=[e.id];wn(e,function(o){return a.push(o.id)},!0),e.history=new oo(null),e.history.done=Kn(this.history.done,a),e.history.undone=Kn(this.history.undone,a)}},iterLinkedDocs:function(e){wn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ft(e)},lineSeparator:function(){return this.lineSep||`
  16. `},setDirection:at(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&As(this.cm))})}),bt.prototype.eachLine=bt.prototype.iter;var Hl=0;function Rs(e){var n=this;if(jl(n),!He(n,e)&&!sn(n.display,e)){We(e),d&&(Hl=+new Date);var a=kn(n,e,!0),o=e.dataTransfer.files;if(a&&!n.isReadOnly())if(o&&o.length&&window.FileReader&&window.File)for(var u=o.length,m=Array(u),S=0,k=function(){++S==u&&lt(n,function(){var X={from:a=Re(n.doc,a),to:a,text:n.doc.splitLines(m.filter(function(ne){return ne!=null}).join(n.doc.lineSeparator())),origin:"paste"};Jn(n.doc,X),El(n.doc,An(Re(n.doc,a),Re(n.doc,bn(X))))})()},B=function(X,ne){if(n.options.allowDropFileTypes&&ke(n.options.allowDropFileTypes,X.type)==-1)k();else{var le=new FileReader;le.onerror=function(){return k()},le.onload=function(){var fe=le.result;/[\x00-\x08\x0e-\x1f]{2}/.test(fe)||(m[ne]=fe),k()},le.readAsText(X)}},O=0;O<o.length;O++)B(o[O],O);else{if(n.state.draggingText&&n.doc.sel.contains(a)>-1)return n.state.draggingText(e),void setTimeout(function(){return n.display.input.focus()},20);try{var W=e.dataTransfer.getData("Text");if(W){var Y;if(n.state.draggingText&&!n.state.draggingText.copy&&(Y=n.listSelections()),ao(n.doc,An(a,a)),Y)for(var K=0;K<Y.length;++K)Zn(n.doc,"",Y[K].anchor,Y[K].head,"drag");n.replaceSelection(W,"around","paste"),n.display.input.focus()}}catch{}}}}function Is(e,n){if(d&&(!e.state.draggingText||+new Date-Hl<100))ft(n);else if(!He(e,n)&&!sn(e.display,n)&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!w)){var a=U("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",A&&(a.width=a.height=1,e.display.wrapper.appendChild(a),a._top=a.offsetTop),n.dataTransfer.setDragImage(a,0,0),A&&a.parentNode.removeChild(a)}}function Ls(e,n){var a=kn(e,n);if(a){var o=document.createDocumentFragment();Oo(e,a,o),e.display.dragCursor||(e.display.dragCursor=U("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),z(e.display.dragCursor,o)}}function jl(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function $l(e){if(document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),a=[],o=0;o<n.length;o++){var u=n[o].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var m=0;m<a.length;m++)e(a[m])})}}var Vl=!1;function Bs(){Vl||(Ps(),Vl=!0)}function Ps(){var e;ue(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,$l(Fs)},100))}),ue(window,"blur",function(){return $l(Qn)})}function Fs(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var Cn={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"},Mr=0;Mr<10;Mr++)Cn[Mr+48]=Cn[Mr+96]=String(Mr);for(var co=65;co<=90;co++)Cn[co]=String.fromCharCode(co);for(var Tr=1;Tr<=12;Tr++)Cn[Tr+111]=Cn[Tr+63235]="F"+Tr;var cn={};function Os(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var a,o,u,m,S=0;S<n.length-1;S++){var k=n[S];if(/^(cmd|meta|m)$/i.test(k))m=!0;else if(/^a(lt)?$/i.test(k))a=!0;else if(/^(c|ctrl|control)$/i.test(k))o=!0;else{if(!/^s(hift)?$/i.test(k))throw new Error("Unrecognized modifier name: "+k);u=!0}}return a&&(e="Alt-"+e),o&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function Hs(e){var n={};for(var a in e)if(e.hasOwnProperty(a)){var o=e[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(o=="..."){delete e[a];continue}for(var u=dt(a.split(" "),Os),m=0;m<u.length;m++){var S=void 0,k=void 0;m==u.length-1?(k=u.join(" "),S=o):(k=u.slice(0,m+1).join(" "),S="...");var B=n[k];if(B){if(B!=S)throw new Error("Inconsistent bindings for "+k)}else n[k]=S}delete e[a]}for(var O in n)e[O]=n[O];return e}function tr(e,n,a,o){var u=(n=fo(n)).call?n.call(e,o):n[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return tr(e,n.fallthrough,a,o);for(var m=0;m<n.fallthrough.length;m++){var S=tr(e,n.fallthrough[m],a,o);if(S)return S}}}function zl(e){var n=typeof e=="string"?e:Cn[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Ul(e,n,a){var o=e;return n.altKey&&o!="Alt"&&(e="Alt-"+e),(L?n.metaKey:n.ctrlKey)&&o!="Ctrl"&&(e="Ctrl-"+e),(L?n.ctrlKey:n.metaKey)&&o!="Mod"&&(e="Cmd-"+e),!a&&n.shiftKey&&o!="Shift"&&(e="Shift-"+e),e}function Wl(e,n){if(A&&e.keyCode==34&&e.char)return!1;var a=Cn[e.keyCode];return a!=null&&!e.altGraphKey&&(e.keyCode==3&&e.code&&(a=e.code),Ul(a,e,n))}function fo(e){return typeof e=="string"?cn[e]:e}function nr(e,n){for(var a=e.doc.sel.ranges,o=[],u=0;u<a.length;u++){for(var m=n(a[u]);o.length&&ge(m.from,Ie(o).to)<=0;){var S=o.pop();if(ge(S.from,m.from)<0){m.from=S.from;break}}o.push(m)}St(e,function(){for(var k=o.length-1;k>=0;k--)Zn(e.doc,"",o[k].from,o[k].to,"+delete");Gn(e)})}function ti(e,n,a){var o=Oe(e.text,n+a,a);return o<0||o>e.text.length?null:o}function ni(e,n,a){var o=ti(e,n.ch,a);return o==null?null:new Z(n.line,o,a<0?"after":"before")}function ri(e,n,a,o,u){if(e){n.doc.direction=="rtl"&&(u=-u);var m=ae(a,n.doc.direction);if(m){var S,k=u<0?Ie(m):m[0],B=u<0==(k.level==1)?"after":"before";if(k.level>0||n.doc.direction=="rtl"){var O=Un(n,a);S=u<0?a.text.length-1:0;var W=tn(n,O,S).top;S=nt(function(Y){return tn(n,O,Y).top==W},u<0==(k.level==1)?k.from:k.to-1,S),B=="before"&&(S=ti(a,S,1))}else S=u<0?k.to:k.from;return new Z(o,S,B)}}return new Z(o,u<0?a.text.length:0,u<0?"before":"after")}function js(e,n,a,o){var u=ae(n,e.doc.direction);if(!u)return ni(n,a,o);a.ch>=n.text.length?(a.ch=n.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var m=ve(u,a.ch,a.sticky),S=u[m];if(e.doc.direction=="ltr"&&S.level%2==0&&(o>0?S.to>a.ch:S.from<a.ch))return ni(n,a,o);var k,B=function(ye,xe){return ti(n,ye instanceof Z?ye.ch:ye,xe)},O=function(ye){return e.options.lineWrapping?(k=k||Un(e,n),Ki(e,n,k,ye)):{begin:0,end:n.text.length}},W=O(a.sticky=="before"?B(a,-1):a.ch);if(e.doc.direction=="rtl"||S.level==1){var Y=S.level==1==o<0,K=B(a,Y?1:-1);if(K!=null&&(Y?K<=S.to&&K<=W.end:K>=S.from&&K>=W.begin)){var X=Y?"before":"after";return new Z(a.line,K,X)}}var ne=function(ye,xe,me){for(var Ee=function(Ve,kt){return kt?new Z(a.line,B(Ve,1),"before"):new Z(a.line,Ve,"after")};ye>=0&&ye<u.length;ye+=xe){var Ce=u[ye],Se=xe>0==(Ce.level!=1),Ue=Se?me.begin:B(me.end,-1);if(Ce.from<=Ue&&Ue<Ce.to||(Ue=Se?Ce.from:B(Ce.to,-1),me.begin<=Ue&&Ue<me.end))return Ee(Ue,Se)}},le=ne(m+o,o,W);if(le)return le;var fe=o>0?W.end:B(W.begin,-1);return fe==null||o>0&&fe==n.text.length||!(le=ne(o>0?0:u.length-1,o,O(fe)))?null:le}cn.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"},cn.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"},cn.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"},cn.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"]},cn.default=T?cn.macDefault:cn.pcDefault;var Nr={selectAll:Ml,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Le)},killLine:function(e){return nr(e,function(n){if(n.empty()){var a=_e(e.doc,n.head.line).text.length;return n.head.ch==a&&n.head.line<e.lastLine()?{from:n.head,to:Z(n.head.line+1,0)}:{from:n.head,to:Z(n.head.line,a)}}return{from:n.from(),to:n.to()}})},deleteLine:function(e){return nr(e,function(n){return{from:Z(n.from().line,0),to:Re(e.doc,Z(n.to().line+1,0))}})},delLineLeft:function(e){return nr(e,function(n){return{from:Z(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return nr(e,function(n){var a=e.charCoords(n.head,"div").top+5;return{from:e.coordsChar({left:0,top:a},"div"),to:n.from()}})},delWrappedLineRight:function(e){return nr(e,function(n){var a=e.charCoords(n.head,"div").top+5,o=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div");return{from:n.from(),to:o}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(Z(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Z(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Yl(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Ql(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return $s(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var a=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div")},st)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var a=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:a},"div")},st)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var a=e.cursorCoords(n.head,"div").top+5,o=e.coordsChar({left:0,top:a},"div");return o.ch<e.getLine(o.line).search(/\S/)?Ql(e,n.head):o},st)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],a=e.listSelections(),o=e.options.tabSize,u=0;u<a.length;u++){var m=a[u].from(),S=re(e.getLine(m.line),m.ch,o);n.push(Mt(o-S%o))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return St(e,function(){for(var n=e.listSelections(),a=[],o=0;o<n.length;o++)if(n[o].empty()){var u=n[o].head,m=_e(e.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new Z(u.line,u.ch-1)),u.ch>0)u=new Z(u.line,u.ch+1),e.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),Z(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var S=_e(e.doc,u.line-1).text;S&&(u=new Z(u.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+S.charAt(S.length-1),Z(u.line-1,S.length-1),u,"+transpose"))}}a.push(new Fe(u,u))}e.setSelections(a)})},newlineAndIndent:function(e){return St(e,function(){for(var n=e.listSelections(),a=n.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),n[a].anchor,n[a].head,"+input");n=e.listSelections();for(var o=0;o<n.length;o++)e.indentLine(n[o].from().line,null,!0);Gn(e)})},openLine:function(e){return e.replaceSelection(`
  17. `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Yl(e,n){var a=_e(e.doc,n),o=Ut(a);return o!=a&&(n=H(o)),ri(!0,e,o,n,1)}function $s(e,n){var a=_e(e.doc,n),o=Ca(a);return o!=a&&(n=H(o)),ri(!0,e,a,n,-1)}function Ql(e,n){var a=Yl(e,n.line),o=_e(e.doc,a.line),u=ae(o,e.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,o.text.search(/\S/)),S=n.line==a.line&&n.ch<=m&&n.ch;return Z(a.line,S?0:m,a.sticky)}return a}function po(e,n,a){if(typeof n=="string"&&!(n=Nr[n]))return!1;e.display.input.ensurePolled();var o=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a&&(e.display.shift=!1),u=n(e)!=Be}finally{e.display.shift=o,e.state.suppressEdits=!1}return u}function Vs(e,n,a){for(var o=0;o<e.state.keyMaps.length;o++){var u=tr(n,e.state.keyMaps[o],a,e);if(u)return u}return e.options.extraKeys&&tr(n,e.options.extraKeys,a,e)||tr(n,e.options.keyMap,a,e)}var zs=new he;function Rr(e,n,a,o){var u=e.state.keySeq;if(u){if(zl(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:zs.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),Gl(e,u+" "+n,a,o))return!0}return Gl(e,n,a,o)}function Gl(e,n,a,o){var u=Vs(e,n,o);return u=="multi"&&(e.state.keySeq=n),u=="handled"&&it(e,"keyHandled",e,n,a),(u=="handled"||u=="multi")&&(We(a),Ho(e)),!!u}function ql(e,n){var a=Wl(n,!0);return!!a&&(n.shiftKey&&!e.state.keySeq?Rr(e,"Shift-"+a,n,function(o){return po(e,o,!0)})||Rr(e,a,n,function(o){if(typeof o=="string"?/^go[A-Z]/.test(o):o.motion)return po(e,o)}):Rr(e,a,n,function(o){return po(e,o)}))}function Us(e,n,a){return Rr(e,"'"+a+"'",n,function(o){return po(e,o,!0)})}var oi=null;function Kl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField()||(n.curOp.focus=q(be(n)),He(n,e)))){d&&y<11&&e.keyCode==27&&(e.returnValue=!1);var a=e.keyCode;n.display.shift=a==16||e.shiftKey;var o=ql(n,e);A&&(oi=o?a:null,!o&&a==88&&!Hr&&(T?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),t&&!T&&!o&&a==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Ws(n)}}function Ws(e){var n=e.display.lineDiv;function a(o){(o.keyCode==18||!o.altKey)&&(V(n,"CodeMirror-crosshair"),Te(document,"keyup",a),Te(document,"mouseover",a))}ee(n,"CodeMirror-crosshair"),ue(document,"keyup",a),ue(document,"mouseover",a)}function Xl(e){e.keyCode==16&&(this.doc.sel.shift=!1),He(this,e)}function Jl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField()||sn(n.display,e)||He(n,e)||e.ctrlKey&&!e.altKey||T&&e.metaKey)){var a=e.keyCode,o=e.charCode;if(A&&a==oi)return oi=null,void We(e);if(!A||e.which&&!(e.which<10)||!ql(n,e)){var u=String.fromCharCode(o??a);u!="\b"&&(Us(n,e,u)||n.display.input.onKeyPress(e))}}}var Ir,Lr,Ys=400,ii=function(e,n,a){this.time=e,this.pos=n,this.button=a};function Qs(e,n){var a=+new Date;return Lr&&Lr.compare(a,e,n)?(Ir=Lr=null,"triple"):Ir&&Ir.compare(a,e,n)?(Lr=new ii(a,e,n),Ir=null,"double"):(Ir=new ii(a,e,n),Lr=null,"single")}function Zl(e){var n=this,a=n.display;if(!(He(n,e)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=e.shiftKey,sn(a,e))return void(b||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100)));if(!li(n,e)){var o=kn(n,e),u=Pr(e),m=o?Qs(o,u):"single";pe(n).focus(),u==1&&n.state.selectingText&&n.state.selectingText(e),(!o||!Gs(n,u,o,m,e))&&(u==1?o?Ks(n,o,m,e):Bn(e)==a.scroller&&We(e):u==2?(o&&lo(n.doc,o),setTimeout(function(){return a.input.focus()},20)):u==3&&(F?n.display.input.onContextMenu(e):jo(n)))}}}function Gs(e,n,a,o,u){var m="Click";return o=="double"?m="Double"+m:o=="triple"&&(m="Triple"+m),Rr(e,Ul(m=(n==1?"Left":n==2?"Middle":"Right")+m,u),u,function(S){if(typeof S=="string"&&(S=Nr[S]),!S)return!1;var k=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),k=S(e,a)!=Be}finally{e.state.suppressEdits=!1}return k})}function qs(e,n,a){var o=e.getOption("configureMouse"),u=o?o(e,n,a):{};if(u.unit==null){var m=N?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=T?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(T?a.altKey:a.ctrlKey)),u}function Ks(e,n,a,o){d?setTimeout(oe(el,e),0):e.curOp.focus=q(be(e));var u,m=qs(e,a,o),S=e.doc.sel;e.options.dragDrop&&Fr&&!e.isReadOnly()&&a=="single"&&(u=S.contains(n))>-1&&(ge((u=S.ranges[u]).from(),n)<0||n.xRel>0)&&(ge(u.to(),n)>0||n.xRel<0)?Xs(e,o,n,m):Js(e,o,n,m)}function Xs(e,n,a,o){var u=e.display,m=!1,S=lt(e,function(O){b&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:jo(e)),Te(u.wrapper.ownerDocument,"mouseup",S),Te(u.wrapper.ownerDocument,"mousemove",k),Te(u.scroller,"dragstart",B),Te(u.scroller,"drop",S),m||(We(O),o.addNew||lo(e.doc,a,null,null,o.extend),b&&!w||d&&y==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),k=function(O){m=m||Math.abs(n.clientX-O.clientX)+Math.abs(n.clientY-O.clientY)>=10},B=function(){return m=!0};b&&(u.scroller.draggable=!0),e.state.draggingText=S,S.copy=!o.moveOnDrag,ue(u.wrapper.ownerDocument,"mouseup",S),ue(u.wrapper.ownerDocument,"mousemove",k),ue(u.scroller,"dragstart",B),ue(u.scroller,"drop",S),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function ea(e,n,a){if(a=="char")return new Fe(n,n);if(a=="word")return e.findWordAt(n);if(a=="line")return new Fe(Z(n.line,0),Re(e.doc,Z(n.line+1,0)));var o=a(e,n);return new Fe(o.from,o.to)}function Js(e,n,a,o){d&&jo(e);var u=e.display,m=e.doc;We(n);var S,k,B=m.sel,O=B.ranges;if(o.addNew&&!o.extend?(k=m.sel.contains(a),S=k>-1?O[k]:new Fe(a,a)):(S=m.sel.primary(),k=m.sel.primIndex),o.unit=="rectangle")o.addNew||(S=new Fe(a,a)),a=kn(e,n,!0,!0),k=-1;else{var W=ea(e,a,o.unit);S=o.extend?Zo(S,W.anchor,W.head,o.extend):W}o.addNew?k==-1?(k=O.length,pt(m,Yt(e,O.concat([S]),k),{scroll:!1,origin:"*mouse"})):O.length>1&&O[k].empty()&&o.unit=="char"&&!o.extend?(pt(m,Yt(e,O.slice(0,k).concat(O.slice(k+1)),0),{scroll:!1,origin:"*mouse"}),B=m.sel):ei(m,k,S,Ct):(k=0,pt(m,new Bt([S],0),Ct),B=m.sel);var Y=a;function K(me){if(ge(Y,me)!=0)if(Y=me,o.unit=="rectangle"){for(var Ee=[],Ce=e.options.tabSize,Se=re(_e(m,a.line).text,a.ch,Ce),Ue=re(_e(m,me.line).text,me.ch,Ce),Ve=Math.min(Se,Ue),kt=Math.max(Se,Ue),Ye=Math.min(a.line,me.line),Ot=Math.min(e.lastLine(),Math.max(a.line,me.line));Ye<=Ot;Ye++){var Dt=_e(m,Ye).text,qe=Ke(Dt,Ve,Ce);Ve==kt?Ee.push(new Fe(Z(Ye,qe),Z(Ye,qe))):Dt.length>qe&&Ee.push(new Fe(Z(Ye,qe),Z(Ye,Ke(Dt,kt,Ce))))}Ee.length||Ee.push(new Fe(a,a)),pt(m,Yt(e,B.ranges.slice(0,k).concat(Ee),k),{origin:"*mouse",scroll:!1}),e.scrollIntoView(me)}else{var wt,gt=S,Ze=ea(e,me,o.unit),Je=gt.anchor;ge(Ze.anchor,Je)>0?(wt=Ze.head,Je=jr(gt.from(),Ze.anchor)):(wt=Ze.anchor,Je=yt(gt.to(),Ze.head));var et=B.ranges.slice(0);et[k]=Zs(e,new Fe(Re(m,Je),wt)),pt(m,Yt(e,et,k),Ct)}}var X=u.wrapper.getBoundingClientRect(),ne=0;function le(me){var Ee=++ne,Ce=kn(e,me,!0,o.unit=="rectangle");if(Ce)if(ge(Ce,Y)!=0){e.curOp.focus=q(be(e)),K(Ce);var Se=eo(u,m);(Ce.line>=Se.to||Ce.line<Se.from)&&setTimeout(lt(e,function(){ne==Ee&&le(me)}),150)}else{var Ue=me.clientY<X.top?-20:me.clientY>X.bottom?20:0;Ue&&setTimeout(lt(e,function(){ne==Ee&&(u.scroller.scrollTop+=Ue,le(me))}),50)}}function fe(me){e.state.selectingText=!1,ne=1/0,me&&(We(me),u.input.focus()),Te(u.wrapper.ownerDocument,"mousemove",ye),Te(u.wrapper.ownerDocument,"mouseup",xe),m.history.lastSelOrigin=null}var ye=lt(e,function(me){me.buttons!==0&&Pr(me)?le(me):fe(me)}),xe=lt(e,fe);e.state.selectingText=xe,ue(u.wrapper.ownerDocument,"mousemove",ye),ue(u.wrapper.ownerDocument,"mouseup",xe)}function Zs(e,n){var a=n.anchor,o=n.head,u=_e(e.doc,a.line);if(ge(a,o)==0&&a.sticky==o.sticky)return n;var m=ae(u);if(!m)return n;var S=ve(m,a.ch,a.sticky),k=m[S];if(k.from!=a.ch&&k.to!=a.ch)return n;var B,O=S+(k.from==a.ch==(k.level!=1)?0:1);if(O==0||O==m.length)return n;if(o.line!=a.line)B=(o.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var W=ve(m,o.ch,o.sticky),Y=W-S||(o.ch-a.ch)*(k.level==1?-1:1);B=W==O-1||W==O?Y<0:Y>0}var K=m[O+(B?-1:0)],X=B==(K.level==1),ne=X?K.from:K.to,le=X?"after":"before";return a.ch==ne&&a.sticky==le?n:new Fe(new Z(a.line,ne,le),o)}function ta(e,n,a,o){var u,m;if(n.touches)u=n.touches[0].clientX,m=n.touches[0].clientY;else try{u=n.clientX,m=n.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;o&&We(n);var S=e.display,k=S.lineDiv.getBoundingClientRect();if(m>k.bottom||!ze(e,a))return nn(n);m-=k.top-S.viewOffset;for(var B=0;B<e.display.gutterSpecs.length;++B){var O=S.gutters.childNodes[B];if(O&&O.getBoundingClientRect().right>=u)return Pe(e,a,e,Q(e.doc,m),e.display.gutterSpecs[B].className,n),nn(n)}}function li(e,n){return ta(e,n,"gutterClick",!0)}function na(e,n){sn(e.display,n)||eu(e,n)||He(e,n,"contextmenu")||F||e.display.input.onContextMenu(n)}function eu(e,n){return!!ze(e,"gutterContextMenu")&&ta(e,n,"gutterContextMenu",!1)}function ra(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}ii.prototype.compare=function(e,n,a){return this.time+Ys>e&&ge(n,this.pos)==0&&a==this.button};var rr={toString:function(){return"CodeMirror.Init"}},oa={},ho={};function tu(e){var n=e.optionHandlers;function a(o,u,m,S){e.defaults[o]=u,m&&(n[o]=S?function(k,B,O){O!=rr&&m(k,B,O)}:m)}e.defineOption=a,e.Init=rr,a("value","",function(o,u){return o.setValue(u)},!0),a("mode",null,function(o,u){o.doc.modeOption=u,Ko(o)},!0),a("indentUnit",2,Ko,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(o){xr(o),hr(o),At(o)},!0),a("lineSeparator",null,function(o,u){if(o.doc.lineSep=u,u){var m=[],S=o.doc.first;o.doc.iter(function(B){for(var O=0;;){var W=B.text.indexOf(u,O);if(W==-1)break;O=W+u.length,m.push(Z(S,W))}S++});for(var k=m.length-1;k>=0;k--)Zn(o.doc,u,m[k],Z(m[k].line,m[k].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(o,u,m){o.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=rr&&o.refresh()}),a("specialCharPlaceholder",Ma,function(o){return o.refresh()},!0),a("electricChars",!0),a("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(o,u){return o.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(o,u){return o.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(o,u){return o.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!P),a("wholeLineUpdateBefore",!0),a("theme","default",function(o){ra(o),wr(o)},!0),a("keyMap","default",function(o,u,m){var S=fo(u),k=m!=rr&&fo(m);k&&k.detach&&k.detach(o,S),S.attach&&S.attach(o,k||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,ru,!0),a("gutters",[],function(o,u){o.display.gutterSpecs=Go(u,o.options.lineNumbers),wr(o)},!0),a("fixedGutter",!0,function(o,u){o.display.gutters.style.left=u?Po(o.display)+"px":"0",o.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(o){return qn(o)},!0),a("scrollbarStyle","native",function(o){ll(o),qn(o),o.display.scrollbars.setScrollTop(o.doc.scrollTop),o.display.scrollbars.setScrollLeft(o.doc.scrollLeft)},!0),a("lineNumbers",!1,function(o,u){o.display.gutterSpecs=Go(o.options.gutters,u),wr(o)},!0),a("firstLineNumber",1,wr,!0),a("lineNumberFormatter",function(o){return o},wr,!0),a("showCursorWhenSelecting",!1,mr,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(o,u){u=="nocursor"&&(Qn(o),o.display.input.blur()),o.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(o,u){u=u===""?null:u,o.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(o,u){u||o.display.input.reset()},!0),a("dragDrop",!0,nu),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,mr,!0),a("singleCursorHeightPerLine",!0,mr,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,xr,!0),a("addModeClass",!1,xr,!0),a("pollInterval",100),a("undoDepth",200,function(o,u){return o.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(o){return o.refresh()},!0),a("maxHighlightLength",1e4,xr,!0),a("moveInputWithCursor",!0,function(o,u){u||o.display.input.resetPosition()}),a("tabindex",null,function(o,u){return o.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(o,u){return o.doc.setDirection(u)},!0),a("phrases",null)}function nu(e,n,a){if(!n!=!(a&&a!=rr)){var o=e.display.dragFunctions,u=n?ue:Te;u(e.display.scroller,"dragstart",o.start),u(e.display.scroller,"dragenter",o.enter),u(e.display.scroller,"dragover",o.over),u(e.display.scroller,"dragleave",o.leave),u(e.display.scroller,"drop",o.drop)}}function ru(e){e.options.lineWrapping?(ee(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(V(e.display.wrapper,"CodeMirror-wrap"),So(e)),Fo(e),At(e),hr(e),setTimeout(function(){return qn(e)},100)}function Qe(e,n){var a=this;if(!(this instanceof Qe))return new Qe(e,n);this.options=n=n?se(n):{},se(oa,n,!1);var o=n.value;typeof o=="string"?o=new bt(o,n.mode,null,n.lineSeparator,n.direction):n.mode&&(o.modeOption=n.mode),this.doc=o;var u=new Qe.inputStyles[n.inputStyle](this),m=this.display=new gs(e,o,u,n);for(var S in m.wrapper.CodeMirror=this,ra(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ll(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 he,keySeq:null,specialChars:null},n.autofocus&&!M&&m.input.focus(),d&&y<11&&setTimeout(function(){return a.display.input.reset(!0)},20),ou(this),Bs(),Nn(this),this.curOp.forceUpdate=!0,gl(this,o),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&$o(a)},20):Qn(this),ho)ho.hasOwnProperty(S)&&ho[S](this,n[S],rr);ul(this),n.finishInit&&n.finishInit(this);for(var k=0;k<ai.length;++k)ai[k](this);Rn(this),b&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}function ou(e){var n=e.display;ue(n.scroller,"mousedown",lt(e,Zl)),ue(n.scroller,"dblclick",d&&y<11?lt(e,function(B){if(!He(e,B)){var O=kn(e,B);if(O&&!li(e,B)&&!sn(e.display,B)){We(B);var W=e.findWordAt(O);lo(e.doc,W.anchor,W.head)}}}):function(B){return He(e,B)||We(B)}),ue(n.scroller,"contextmenu",function(B){return na(e,B)}),ue(n.input.getField(),"contextmenu",function(B){n.scroller.contains(B.target)||na(e,B)});var a,o={end:0};function u(){n.activeTouch&&(a=setTimeout(function(){return n.activeTouch=null},1e3),(o=n.activeTouch).end=+new Date)}function m(B){if(B.touches.length!=1)return!1;var O=B.touches[0];return O.radiusX<=1&&O.radiusY<=1}function S(B,O){if(O.left==null)return!0;var W=O.left-B.left,Y=O.top-B.top;return W*W+Y*Y>400}ue(n.scroller,"touchstart",function(B){if(!He(e,B)&&!m(B)&&!li(e,B)){n.input.ensurePolled(),clearTimeout(a);var O=+new Date;n.activeTouch={start:O,moved:!1,prev:O-o.end<=300?o:null},B.touches.length==1&&(n.activeTouch.left=B.touches[0].pageX,n.activeTouch.top=B.touches[0].pageY)}}),ue(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),ue(n.scroller,"touchend",function(B){var O=n.activeTouch;if(O&&!sn(n,B)&&O.left!=null&&!O.moved&&new Date-O.start<300){var W,Y=e.coordsChar(n.activeTouch,"page");W=!O.prev||S(O,O.prev)?new Fe(Y,Y):!O.prev.prev||S(O,O.prev.prev)?e.findWordAt(Y):new Fe(Z(Y.line,0),Re(e.doc,Z(Y.line+1,0))),e.setSelection(W.anchor,W.head),e.focus(),We(B)}u()}),ue(n.scroller,"touchcancel",u),ue(n.scroller,"scroll",function(){n.scroller.clientHeight&&(vr(e,n.scroller.scrollTop),Mn(e,n.scroller.scrollLeft,!0),Pe(e,"scroll",e))}),ue(n.scroller,"mousewheel",function(B){return fl(e,B)}),ue(n.scroller,"DOMMouseScroll",function(B){return fl(e,B)}),ue(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(B){He(e,B)||ft(B)},over:function(B){He(e,B)||(Ls(e,B),ft(B))},start:function(B){return Is(e,B)},drop:lt(e,Rs),leave:function(B){He(e,B)||jl(e)}};var k=n.input.getField();ue(k,"keyup",function(B){return Xl.call(e,B)}),ue(k,"keydown",lt(e,Kl)),ue(k,"keypress",lt(e,Jl)),ue(k,"focus",function(B){return $o(e,B)}),ue(k,"blur",function(B){return Qn(e,B)})}Qe.defaults=oa,Qe.optionHandlers=ho;var ai=[];function Br(e,n,a,o){var u,m=e.doc;a==null&&(a="add"),a=="smart"&&(m.mode.indent?u=ur(e,n).state:a="prev");var S=e.options.tabSize,k=_e(m,n),B=re(k.text,null,S);k.stateAfter&&(k.stateAfter=null);var O,W=k.text.match(/^\s*/)[0];if(o||/\S/.test(k.text)){if(a=="smart"&&((O=m.mode.indent(u,k.text.slice(W.length),k.text))==Be||O>150)){if(!o)return;a="prev"}}else O=0,a="not";a=="prev"?O=n>m.first?re(_e(m,n-1).text,null,S):0:a=="add"?O=B+e.options.indentUnit:a=="subtract"?O=B-e.options.indentUnit:typeof a=="number"&&(O=B+a),O=Math.max(0,O);var Y="",K=0;if(e.options.indentWithTabs)for(var X=Math.floor(O/S);X;--X)K+=S,Y+=" ";if(K<O&&(Y+=Mt(O-K)),Y!=W)return Zn(m,Y,Z(n,0),Z(n,W.length),"+input"),k.stateAfter=null,!0;for(var ne=0;ne<m.sel.ranges.length;ne++){var le=m.sel.ranges[ne];if(le.head.line==n&&le.head.ch<W.length){var fe=Z(n,W.length);ei(m,ne,new Fe(fe,fe));break}}}Qe.defineInitHook=function(e){return ai.push(e)};var Qt=null;function mo(e){Qt=e}function si(e,n,a,o,u){var m=e.doc;e.display.shift=!1,o||(o=m.sel);var S=+new Date-200,k=u=="paste"||e.state.pasteIncoming>S,B=Ft(n),O=null;if(k&&o.ranges.length>1)if(Qt&&Qt.text.join(`
  18. `)==n){if(o.ranges.length%Qt.text.length==0){O=[];for(var W=0;W<Qt.text.length;W++)O.push(m.splitLines(Qt.text[W]))}}else B.length==o.ranges.length&&e.options.pasteLinesPerSelection&&(O=dt(B,function(ye){return[ye]}));for(var Y=e.curOp.updateInput,K=o.ranges.length-1;K>=0;K--){var X=o.ranges[K],ne=X.from(),le=X.to();X.empty()&&(a&&a>0?ne=Z(ne.line,ne.ch-a):e.state.overwrite&&!k?le=Z(le.line,Math.min(_e(m,le.line).text.length,le.ch+Ie(B).length)):k&&Qt&&Qt.lineWise&&Qt.text.join(`
  19. `)==B.join(`
  20. `)&&(ne=le=Z(ne.line,0)));var fe={from:ne,to:le,text:O?O[K%O.length]:B,origin:u||(k?"paste":e.state.cutIncoming>S?"cut":"+input")};Jn(e.doc,fe),it(e,"inputRead",e,fe)}n&&!k&&la(e,n),Gn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Y),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ia(e,n){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&n.hasFocus()&&St(n,function(){return si(n,a,0,null,"paste")}),!0}function la(e,n){if(e.options.electricChars&&e.options.smartIndent)for(var a=e.doc.sel,o=a.ranges.length-1;o>=0;o--){var u=a.ranges[o];if(!(u.head.ch>100||o&&a.ranges[o-1].head.line==u.head.line)){var m=e.getModeAt(u.head),S=!1;if(m.electricChars){for(var k=0;k<m.electricChars.length;k++)if(n.indexOf(m.electricChars.charAt(k))>-1){S=Br(e,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(_e(e.doc,u.head.line).text.slice(0,u.head.ch))&&(S=Br(e,u.head.line,"smart"));S&&it(e,"electricInput",e,u.head.line)}}}function aa(e){for(var n=[],a=[],o=0;o<e.doc.sel.ranges.length;o++){var u=e.doc.sel.ranges[o].head.line,m={anchor:Z(u,0),head:Z(u+1,0)};a.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:a}}function sa(e,n,a,o){e.setAttribute("autocorrect",a?"":"off"),e.setAttribute("autocapitalize",o?"":"off"),e.setAttribute("spellcheck",!!n)}function ua(){var e=U("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=U("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return b?e.style.width="1000px":e.setAttribute("wrap","off"),D&&(e.style.border="1px solid black"),sa(e),n}function iu(e){var n=e.optionHandlers,a=e.helpers={};e.prototype={constructor:e,focus:function(){pe(this).focus(),this.display.input.focus()},setOption:function(o,u){var m=this.options,S=m[o];m[o]==u&&o!="mode"||(m[o]=u,n.hasOwnProperty(o)&&lt(this,n[o])(this,u,S),Pe(this,"optionChange",this,o))},getOption:function(o){return this.options[o]},getDoc:function(){return this.doc},addKeyMap:function(o,u){this.state.keyMaps[u?"push":"unshift"](fo(o))},removeKeyMap:function(o){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==o||u[m].name==o)return u.splice(m,1),!0},addOverlay:mt(function(o,u){var m=o.token?o:e.getMode(this.options,o);if(m.startState)throw new Error("Overlays may not be stateful.");Ht(this.state.overlays,{mode:m,modeSpec:o,opaque:u&&u.opaque,priority:u&&u.priority||0},function(S){return S.priority}),this.state.modeGen++,At(this)}),removeOverlay:mt(function(o){for(var u=this.state.overlays,m=0;m<u.length;++m){var S=u[m].modeSpec;if(S==o||typeof o=="string"&&S.name==o)return u.splice(m,1),this.state.modeGen++,void At(this)}}),indentLine:mt(function(o,u,m){typeof u!="string"&&typeof u!="number"&&(u=u==null?this.options.smartIndent?"smart":"prev":u?"add":"subtract"),ie(this.doc,o)&&Br(this,o,u,m)}),indentSelection:mt(function(o){for(var u=this.doc.sel.ranges,m=-1,S=0;S<u.length;S++){var k=u[S];if(k.empty())k.head.line>m&&(Br(this,k.head.line,o,!0),m=k.head.line,S==this.doc.sel.primIndex&&Gn(this));else{var B=k.from(),O=k.to(),W=Math.max(m,B.line);m=Math.min(this.lastLine(),O.line-(O.ch?0:1))+1;for(var Y=W;Y<m;++Y)Br(this,Y,o);var K=this.doc.sel.ranges;B.ch==0&&u.length==K.length&&K[S].from().ch>0&&ei(this.doc,S,new Fe(B,K[S].to()),Le)}}}),getTokenAt:function(o,u){return yi(this,o,u)},getLineTokens:function(o,u){return yi(this,Z(o),u,!0)},getTokenTypeAt:function(o){o=Re(this.doc,o);var u,m=mi(this,_e(this.doc,o.line)),S=0,k=(m.length-1)/2,B=o.ch;if(B==0)u=m[2];else for(;;){var O=S+k>>1;if((O?m[2*O-1]:0)>=B)k=O;else{if(!(m[2*O+1]<B)){u=m[2*O+2];break}S=O+1}}var W=u?u.indexOf("overlay "):-1;return W<0?u:W==0?null:u.slice(0,W-1)},getModeAt:function(o){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(o).state).mode:u},getHelper:function(o,u){return this.getHelpers(o,u)[0]},getHelpers:function(o,u){var m=[];if(!a.hasOwnProperty(u))return m;var S=a[u],k=this.getModeAt(o);if(typeof k[u]=="string")S[k[u]]&&m.push(S[k[u]]);else if(k[u])for(var B=0;B<k[u].length;B++){var O=S[k[u][B]];O&&m.push(O)}else k.helperType&&S[k.helperType]?m.push(S[k.helperType]):S[k.name]&&m.push(S[k.name]);for(var W=0;W<S._global.length;W++){var Y=S._global[W];Y.pred(k,this)&&ke(m,Y.val)==-1&&m.push(Y.val)}return m},getStateAfter:function(o,u){var m=this.doc;return ur(this,(o=fi(m,o??m.first+m.size-1))+1,u).state},cursorCoords:function(o,u){var m=this.doc.sel.primary();return Wt(this,o==null?m.head:typeof o=="object"?Re(this.doc,o):o?m.from():m.to(),u||"page")},charCoords:function(o,u){return Kr(this,Re(this.doc,o),u||"page")},coordsChar:function(o,u){return Io(this,(o=Qi(this,o,u||"page")).left,o.top)},lineAtHeight:function(o,u){return o=Qi(this,{top:o,left:0},u||"page").top,Q(this.doc,o+this.display.viewOffset)},heightAtLine:function(o,u,m){var S,k=!1;if(typeof o=="number"){var B=this.doc.first+this.doc.size-1;o<this.doc.first?o=this.doc.first:o>B&&(o=B,k=!0),S=_e(this.doc,o)}else S=o;return qr(this,S,{top:0,left:0},u||"page",m||k).top+(k?this.doc.height-an(S):0)},defaultTextHeight:function(){return Wn(this.display)},defaultCharWidth:function(){return Yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(o,u,m,S,k){var B=this.display,O=(o=Wt(this,Re(this.doc,o))).bottom,W=o.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),B.sizer.appendChild(u),S=="over")O=o.top;else if(S=="above"||S=="near"){var Y=Math.max(B.wrapper.clientHeight,this.doc.height),K=Math.max(B.sizer.clientWidth,B.lineSpace.clientWidth);(S=="above"||o.bottom+u.offsetHeight>Y)&&o.top>u.offsetHeight?O=o.top-u.offsetHeight:o.bottom+u.offsetHeight<=Y&&(O=o.bottom),W+u.offsetWidth>K&&(W=K-u.offsetWidth)}u.style.top=O+"px",u.style.left=u.style.right="",k=="right"?(W=B.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(k=="left"?W=0:k=="middle"&&(W=(B.sizer.clientWidth-u.offsetWidth)/2),u.style.left=W+"px"),m&&ts(this,{left:W,top:O,right:W+u.offsetWidth,bottom:O+u.offsetHeight})},triggerOnKeyDown:mt(Kl),triggerOnKeyPress:mt(Jl),triggerOnKeyUp:Xl,triggerOnMouseDown:mt(Zl),execCommand:function(o){if(Nr.hasOwnProperty(o))return Nr[o].call(null,this)},triggerElectric:mt(function(o){la(this,o)}),findPosH:function(o,u,m,S){var k=1;u<0&&(k=-1,u=-u);for(var B=Re(this.doc,o),O=0;O<u&&!(B=ui(this.doc,B,k,m,S)).hitSide;++O);return B},moveH:mt(function(o,u){var m=this;this.extendSelectionsBy(function(S){return m.display.shift||m.doc.extend||S.empty()?ui(m.doc,S.head,o,u,m.options.rtlMoveVisually):o<0?S.from():S.to()},st)}),deleteH:mt(function(o,u){var m=this.doc.sel,S=this.doc;m.somethingSelected()?S.replaceSelection("",null,"+delete"):nr(this,function(k){var B=ui(S,k.head,o,u,!1);return o<0?{from:B,to:k.head}:{from:k.head,to:B}})}),findPosV:function(o,u,m,S){var k=1,B=S;u<0&&(k=-1,u=-u);for(var O=Re(this.doc,o),W=0;W<u;++W){var Y=Wt(this,O,"div");if(B==null?B=Y.left:Y.left=B,(O=ca(this,Y,k,m)).hitSide)break}return O},moveV:mt(function(o,u){var m=this,S=this.doc,k=[],B=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(W){if(B)return o<0?W.from():W.to();var Y=Wt(m,W.head,"div");W.goalColumn!=null&&(Y.left=W.goalColumn),k.push(Y.left);var K=ca(m,Y,o,u);return u=="page"&&W==S.sel.primary()&&zo(m,Kr(m,K,"div").top-Y.top),K},st),k.length)for(var O=0;O<S.sel.ranges.length;O++)S.sel.ranges[O].goalColumn=k[O]}),findWordAt:function(o){var u=_e(this.doc,o.line).text,m=o.ch,S=o.ch;if(u){var k=this.getHelper(o,"wordChars");o.sticky!="before"&&S!=u.length||!m?++S:--m;for(var B=u.charAt(m),O=Nt(B,k)?function(W){return Nt(W,k)}:/\s/.test(B)?function(W){return/\s/.test(W)}:function(W){return!/\s/.test(W)&&!Nt(W)};m>0&&O(u.charAt(m-1));)--m;for(;S<u.length&&O(u.charAt(S));)++S}return new Fe(Z(o.line,m),Z(o.line,S))},toggleOverwrite:function(o){o!=null&&o==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ee(this.display.cursorDiv,"CodeMirror-overwrite"):V(this.display.cursorDiv,"CodeMirror-overwrite"),Pe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==q(be(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:mt(function(o,u){gr(this,o,u)}),getScrollInfo:function(){var o=this.display.scroller;return{left:o.scrollLeft,top:o.scrollTop,height:o.scrollHeight-en(this)-this.display.barHeight,width:o.scrollWidth-en(this)-this.display.barWidth,clientHeight:Mo(this),clientWidth:_n(this)}},scrollIntoView:mt(function(o,u){o==null?(o={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof o=="number"?o={from:Z(o,0),to:null}:o.from==null&&(o={from:o,to:null}),o.to||(o.to=o.from),o.margin=u||0,o.from.line!=null?ns(this,o):nl(this,o.from,o.to,o.margin)}),setSize:mt(function(o,u){var m=this,S=function(B){return typeof B=="number"||/^\d+$/.test(String(B))?B+"px":B};o!=null&&(this.display.wrapper.style.width=S(o)),u!=null&&(this.display.wrapper.style.height=S(u)),this.options.lineWrapping&&Ui(this);var k=this.display.viewFrom;this.doc.iter(k,this.display.viewTo,function(B){if(B.widgets){for(var O=0;O<B.widgets.length;O++)if(B.widgets[O].noHScroll){vn(m,k,"widget");break}}++k}),this.curOp.forceUpdate=!0,Pe(this,"refresh",this)}),operation:function(o){return St(this,o)},startOperation:function(){return Nn(this)},endOperation:function(){return Rn(this)},refresh:mt(function(){var o=this.display.cachedTextHeight;At(this),this.curOp.forceUpdate=!0,hr(this),gr(this,this.doc.scrollLeft,this.doc.scrollTop),Yo(this.display),(o==null||Math.abs(o-Wn(this.display))>.5||this.options.lineWrapping)&&Fo(this),Pe(this,"refresh",this)}),swapDoc:mt(function(o){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),gl(this,o),hr(this),this.display.input.reset(),gr(this,o.scrollLeft,o.scrollTop),this.curOp.forceScroll=!0,it(this,"swapDoc",this,u),u}),phrase:function(o){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,o)?u[o]:o},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}},_t(e),e.registerHelper=function(o,u,m){a.hasOwnProperty(o)||(a[o]=e[o]={_global:[]}),a[o][u]=m},e.registerGlobalHelper=function(o,u,m,S){e.registerHelper(o,u,S),a[o]._global.push({pred:m,val:S})}}function ui(e,n,a,o,u){var m=n,S=a,k=_e(e,n.line),B=u&&e.direction=="rtl"?-a:a;function O(){var xe=n.line+B;return!(xe<e.first||xe>=e.first+e.size)&&(n=new Z(xe,n.ch,n.sticky),k=_e(e,xe))}function W(xe){var me;if(o=="codepoint"){var Ee=k.text.charCodeAt(n.ch+(a>0?0:-1));if(isNaN(Ee))me=null;else{var Ce=a>0?Ee>=55296&&Ee<56320:Ee>=56320&&Ee<57343;me=new Z(n.line,Math.max(0,Math.min(k.text.length,n.ch+a*(Ce?2:1))),-a)}}else me=u?js(e.cm,k,n,a):ni(k,n,a);if(me==null){if(xe||!O())return!1;n=ri(u,e.cm,k,n.line,B)}else n=me;return!0}if(o=="char"||o=="codepoint")W();else if(o=="column")W(!0);else if(o=="word"||o=="group")for(var Y=null,K=o=="group",X=e.cm&&e.cm.getHelper(n,"wordChars"),ne=!0;!(a<0)||W(!ne);ne=!1){var le=k.text.charAt(n.ch)||`
  21. `,fe=Nt(le,X)?"w":K&&le==`
  22. `?"n":!K||/\s/.test(le)?null:"p";if(K&&!ne&&!fe&&(fe="s"),Y&&Y!=fe){a<0&&(a=1,W(),n.sticky="after");break}if(fe&&(Y=fe),a>0&&!W(!ne))break}var ye=so(e,n,m,S,!0);return je(m,ye)&&(ye.hitSide=!0),ye}function ca(e,n,a,o){var u,m,S=e.doc,k=n.left;if(o=="page"){var B=Math.min(e.display.wrapper.clientHeight,pe(e).innerHeight||S(e).documentElement.clientHeight),O=Math.max(B-.5*Wn(e.display),3);u=(a>0?n.bottom:n.top)+a*O}else o=="line"&&(u=a>0?n.bottom+3:n.top-3);for(;(m=Io(e,k,u)).outside;){if(a<0?u<=0:u>=S.height){m.hitSide=!0;break}u+=5*a}return m}var $e=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function da(e,n){var a=To(e,n.line);if(!a||a.hidden)return null;var o=_e(e.doc,n.line),u=Hi(a,o,n.line),m=ae(o,e.doc.direction),S="left";m&&(S=ve(m,n.ch)%2?"right":"left");var k=Vi(u.map,n.ch,S);return k.offset=k.collapse=="right"?k.end:k.start,k}function lu(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function or(e,n){return n&&(e.bad=!0),e}function au(e,n,a,o,u){var m="",S=!1,k=e.doc.lineSeparator(),B=!1;function O(X){return function(ne){return ne.id==X}}function W(){S&&(m+=k,B&&(m+=k),S=B=!1)}function Y(X){X&&(W(),m+=X)}function K(X){if(X.nodeType==1){var ne=X.getAttribute("cm-text");if(ne)return void Y(ne);var le,fe=X.getAttribute("cm-marker");if(fe){var ye=e.findMarks(Z(o,0),Z(u+1,0),O(+fe));return void(ye.length&&(le=ye[0].find(0))&&Y(rn(e.doc,le.from,le.to).join(k)))}if(X.getAttribute("contenteditable")=="false")return;var xe=/^(pre|div|p|li|table|br)$/i.test(X.nodeName);if(!/^br$/i.test(X.nodeName)&&X.textContent.length==0)return;xe&&W();for(var me=0;me<X.childNodes.length;me++)K(X.childNodes[me]);/^(pre|p)$/i.test(X.nodeName)&&(B=!0),xe&&(S=!0)}else X.nodeType==3&&Y(X.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;K(n),n!=a;)n=n.nextSibling,B=!1;return m}function go(e,n,a){var o;if(n==e.display.lineDiv){if(!(o=e.display.lineDiv.childNodes[a]))return or(e.clipPos(Z(e.display.viewTo-1)),!0);n=null,a=0}else for(o=n;;o=o.parentNode){if(!o||o==e.display.lineDiv)return null;if(o.parentNode&&o.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var m=e.display.view[u];if(m.node==o)return su(m,n,a)}}function su(e,n,a){var o=e.text.firstChild,u=!1;if(!n||!J(o,n))return or(Z(H(e.line),0),!0);if(n==o&&(u=!0,n=o.childNodes[a],a=0,!n)){var m=e.rest?Ie(e.rest):e.line;return or(Z(H(m),m.text.length),u)}var S=n.nodeType==3?n:null,k=n;for(!S&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(S=n.firstChild,a&&(a=S.nodeValue.length));k.parentNode!=o;)k=k.parentNode;var B=e.measure,O=B.maps;function W(fe,ye,xe){for(var me=-1;me<(O?O.length:0);me++)for(var Ee=me<0?B.map:O[me],Ce=0;Ce<Ee.length;Ce+=3){var Se=Ee[Ce+2];if(Se==fe||Se==ye){var Ue=H(me<0?e.line:e.rest[me]),Ve=Ee[Ce]+xe;return(xe<0||Se!=fe)&&(Ve=Ee[Ce+(xe?1:0)]),Z(Ue,Ve)}}}var Y=W(S,k,a);if(Y)return or(Y,u);for(var K=k.nextSibling,X=S?S.nodeValue.length-a:0;K;K=K.nextSibling){if(Y=W(K,K.firstChild,0))return or(Z(Y.line,Y.ch-X),u);X+=K.textContent.length}for(var ne=k.previousSibling,le=a;ne;ne=ne.previousSibling){if(Y=W(ne,ne.firstChild,-1))return or(Z(Y.line,Y.ch+le),u);le+=ne.textContent.length}}$e.prototype.init=function(e){var n=this,a=this,o=a.cm,u=a.div=e.lineDiv;function m(k){for(var B=k.target;B;B=B.parentNode){if(B==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(B.className))break}return!1}function S(k){if(m(k)&&!He(o,k)){if(o.somethingSelected())mo({lineWise:!1,text:o.getSelections()}),k.type=="cut"&&o.replaceSelection("",null,"cut");else{if(!o.options.lineWiseCopyCut)return;var B=aa(o);mo({lineWise:!0,text:B.text}),k.type=="cut"&&o.operation(function(){o.setSelections(B.ranges,0,Le),o.replaceSelection("",null,"cut")})}if(k.clipboardData){k.clipboardData.clearData();var O=Qt.text.join(`
  23. `);if(k.clipboardData.setData("Text",O),k.clipboardData.getData("Text")==O)return void k.preventDefault()}var W=ua(),Y=W.firstChild;o.display.lineSpace.insertBefore(W,o.display.lineSpace.firstChild),Y.value=Qt.text.join(`
  24. `);var K=q(u.ownerDocument);ce(Y),setTimeout(function(){o.display.lineSpace.removeChild(W),K.focus(),K==u&&a.showPrimarySelection()},50)}}u.contentEditable=!0,sa(u,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize),ue(u,"paste",function(k){!m(k)||He(o,k)||ia(k,o)||y<=11&&setTimeout(lt(o,function(){return n.updateFromDOM()}),20)}),ue(u,"compositionstart",function(k){n.composing={data:k.data,done:!1}}),ue(u,"compositionupdate",function(k){n.composing||(n.composing={data:k.data,done:!1})}),ue(u,"compositionend",function(k){n.composing&&(k.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ue(u,"touchstart",function(){return a.forceCompositionEnd()}),ue(u,"input",function(){n.composing||n.readFromDOMSoon()}),ue(u,"copy",S),ue(u,"cut",S)},$e.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$e.prototype.prepareSelection=function(){var e=Zi(this.cm,!1);return e.focus=q(this.div.ownerDocument)==this.div,e},$e.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$e.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$e.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,a=n.doc.sel.primary(),o=a.from(),u=a.to();if(n.display.viewTo==n.display.viewFrom||o.line>=n.display.viewTo||u.line<n.display.viewFrom)e.removeAllRanges();else{var m=go(n,e.anchorNode,e.anchorOffset),S=go(n,e.focusNode,e.focusOffset);if(!m||m.bad||!S||S.bad||ge(jr(m,S),o)!=0||ge(yt(m,S),u)!=0){var k=n.display.view,B=o.line>=n.display.viewFrom&&da(n,o)||{node:k[0].measure.map[2],offset:0},O=u.line<n.display.viewTo&&da(n,u);if(!O){var W=k[k.length-1].measure,Y=W.maps?W.maps[W.maps.length-1]:W.map;O={node:Y[Y.length-1],offset:Y[Y.length-2]-Y[Y.length-3]}}if(!B||!O)return void e.removeAllRanges();var K,X=e.rangeCount&&e.getRangeAt(0);try{K=I(B.node,B.offset,O.offset,O.node)}catch{}K&&(!t&&n.state.focused?(e.collapse(B.node,B.offset),K.collapsed||(e.removeAllRanges(),e.addRange(K))):(e.removeAllRanges(),e.addRange(K)),X&&e.anchorNode==null?e.addRange(X):t&&this.startGracePeriod()),this.rememberSelection()}}},$e.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},$e.prototype.showMultipleSelections=function(e){z(this.cm.display.cursorDiv,e.cursors),z(this.cm.display.selectionDiv,e.selection)},$e.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$e.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return J(this.div,n)},$e.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||q(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},$e.prototype.blur=function(){this.div.blur()},$e.prototype.getField=function(){return this.div},$e.prototype.supportsTouch=function(){return!0},$e.prototype.receivedFocus=function(){var e=this,n=this;function a(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,a))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):St(this.cm,function(){return n.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,a)},$e.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$e.prototype.pollSelection=function(){if(this.readDOMTimeout==null&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),n=this.cm;if(C&&x&&this.cm.display.gutterSpecs.length&&lu(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var a=go(n,e.anchorNode,e.anchorOffset),o=go(n,e.focusNode,e.focusOffset);a&&o&&St(n,function(){pt(n.doc,An(a,o),Le),(a.bad||o.bad)&&(n.curOp.selectionChanged=!0)})}}},$e.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,n,a,o=this.cm,u=o.display,m=o.doc.sel.primary(),S=m.from(),k=m.to();if(S.ch==0&&S.line>o.firstLine()&&(S=Z(S.line-1,_e(o.doc,S.line-1).length)),k.ch==_e(o.doc,k.line).text.length&&k.line<o.lastLine()&&(k=Z(k.line+1,0)),S.line<u.viewFrom||k.line>u.viewTo-1)return!1;S.line==u.viewFrom||(e=Dn(o,S.line))==0?(n=H(u.view[0].line),a=u.view[0].node):(n=H(u.view[e].line),a=u.view[e-1].node.nextSibling);var B,O,W=Dn(o,k.line);if(W==u.view.length-1?(B=u.viewTo-1,O=u.lineDiv.lastChild):(B=H(u.view[W+1].line)-1,O=u.view[W+1].node.previousSibling),!a)return!1;for(var Y=o.doc.splitLines(au(o,a,O,n,B)),K=rn(o.doc,Z(n,0),Z(B,_e(o.doc,B).text.length));Y.length>1&&K.length>1;)if(Ie(Y)==Ie(K))Y.pop(),K.pop(),B--;else{if(Y[0]!=K[0])break;Y.shift(),K.shift(),n++}for(var X=0,ne=0,le=Y[0],fe=K[0],ye=Math.min(le.length,fe.length);X<ye&&le.charCodeAt(X)==fe.charCodeAt(X);)++X;for(var xe=Ie(Y),me=Ie(K),Ee=Math.min(xe.length-(Y.length==1?X:0),me.length-(K.length==1?X:0));ne<Ee&&xe.charCodeAt(xe.length-ne-1)==me.charCodeAt(me.length-ne-1);)++ne;if(Y.length==1&&K.length==1&&n==S.line)for(;X&&X>S.ch&&xe.charCodeAt(xe.length-ne-1)==me.charCodeAt(me.length-ne-1);)X--,ne++;Y[Y.length-1]=xe.slice(0,xe.length-ne).replace(/^\u200b+/,""),Y[0]=Y[0].slice(X).replace(/\u200b+$/,"");var Ce=Z(n,X),Se=Z(B,K.length?Ie(K).length-ne:0);return Y.length>1||Y[0]||ge(Ce,Se)?(Zn(o.doc,Y,Ce,Se,"+input"),!0):void 0},$e.prototype.ensurePolled=function(){this.forceCompositionEnd()},$e.prototype.reset=function(){this.forceCompositionEnd()},$e.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$e.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},$e.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&St(this.cm,function(){return At(e.cm)})},$e.prototype.setUneditable=function(e){e.contentEditable="false"},$e.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||lt(this.cm,si)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},$e.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},$e.prototype.onContextMenu=function(){},$e.prototype.resetPosition=function(){},$e.prototype.needsContentAttribute=!0;var Xe=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new he,this.hasSelection=!1,this.composing=null,this.resetting=!1};function uu(e,n){if((n=n?se(n):{}).value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var a=q(e.ownerDocument);n.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function o(){e.value=k.getValue()}var u;if(e.form&&(ue(e.form,"submit",o),!n.leaveSubmitMethodAlone)){var m=e.form;u=m.submit;try{var S=m.submit=function(){o(),m.submit=u,m.submit(),m.submit=S}}catch{}}n.finishInit=function(B){B.save=o,B.getTextArea=function(){return e},B.toTextArea=function(){B.toTextArea=isNaN,o(),e.parentNode.removeChild(B.getWrapperElement()),e.style.display="",e.form&&(Te(e.form,"submit",o),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var k=Qe(function(B){return e.parentNode.insertBefore(B,e.nextSibling)},n);return k}function cu(e){e.off=Te,e.on=ue,e.wheelEventPixels=vs,e.Doc=bt,e.splitLines=Ft,e.countColumn=re,e.findColumn=Ke,e.isWordChar=Tt,e.Pass=Be,e.signal=Pe,e.Line=Vn,e.changeEnd=bn,e.scrollbarModel=il,e.Pos=Z,e.cmpPos=ge,e.modes=Pn,e.mimeModes=Vt,e.resolveMode=On,e.getMode=Hn,e.modeExtensions=mn,e.extendMode=jn,e.copyState=Jt,e.startState=$n,e.innerMode=ar,e.commands=Nr,e.keyMap=cn,e.keyName=Wl,e.isModifierKey=zl,e.lookupKey=tr,e.normalizeKeyMap=Hs,e.StringStream=Ge,e.SharedTextMarker=Dr,e.TextMarker=xn,e.LineWidget=kr,e.e_preventDefault=We,e.e_stopPropagation=jt,e.e_stop=ft,e.addClass=ee,e.contains=J,e.rmClass=V,e.keyNames=Cn}Xe.prototype.init=function(e){var n=this,a=this,o=this.cm;this.createField(e);var u=this.textarea;function m(S){if(!He(o,S)){if(o.somethingSelected())mo({lineWise:!1,text:o.getSelections()});else{if(!o.options.lineWiseCopyCut)return;var k=aa(o);mo({lineWise:!0,text:k.text}),S.type=="cut"?o.setSelections(k.ranges,null,Le):(a.prevInput="",u.value=k.text.join(`
  25. `),ce(u))}S.type=="cut"&&(o.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),D&&(u.style.width="0px"),ue(u,"input",function(){d&&y>=9&&n.hasSelection&&(n.hasSelection=null),a.poll()}),ue(u,"paste",function(S){He(o,S)||ia(S,o)||(o.state.pasteIncoming=+new Date,a.fastPoll())}),ue(u,"cut",m),ue(u,"copy",m),ue(e.scroller,"paste",function(S){if(!sn(e,S)&&!He(o,S)){if(!u.dispatchEvent)return o.state.pasteIncoming=+new Date,void a.focus();var k=new Event("paste");k.clipboardData=S.clipboardData,u.dispatchEvent(k)}}),ue(e.lineSpace,"selectstart",function(S){sn(e,S)||We(S)}),ue(u,"compositionstart",function(){var S=o.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:S,range:o.markText(S,o.getCursor("to"),{className:"CodeMirror-composing"})}}),ue(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Xe.prototype.createField=function(e){this.wrapper=ua(),this.textarea=this.wrapper.firstChild},Xe.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Xe.prototype.prepareSelection=function(){var e=this.cm,n=e.display,a=e.doc,o=Zi(e);if(e.options.moveInputWithCursor){var u=Wt(e,a.sel.primary().head,"div"),m=n.wrapper.getBoundingClientRect(),S=n.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,u.top+S.top-m.top)),o.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,u.left+S.left-m.left))}return o},Xe.prototype.showSelection=function(e){var n=this.cm.display;z(n.cursorDiv,e.cursors),z(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Xe.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var n=this.cm;if(this.resetting=!0,n.somethingSelected()){this.prevInput="";var a=n.getSelection();this.textarea.value=a,n.state.focused&&ce(this.textarea),d&&y>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",d&&y>=9&&(this.hasSelection=null));this.resetting=!1}},Xe.prototype.getField=function(){return this.textarea},Xe.prototype.supportsTouch=function(){return!1},Xe.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||q(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Xe.prototype.blur=function(){this.textarea.blur()},Xe.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xe.prototype.receivedFocus=function(){this.slowPoll()},Xe.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Xe.prototype.fastPoll=function(){var e=!1,n=this;function a(){n.poll()||e?(n.pollingFast=!1,n.slowPoll()):(e=!0,n.polling.set(60,a))}n.pollingFast=!0,n.polling.set(20,a)},Xe.prototype.poll=function(){var e=this,n=this.cm,a=this.textarea,o=this.prevInput;if(this.contextMenuPending||this.resetting||!n.state.focused||hn(a)&&!o&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var u=a.value;if(u==o&&!n.somethingSelected())return!1;if(d&&y>=9&&this.hasSelection===u||T&&/[\uf700-\uf7ff]/.test(u))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!o&&(o="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,k=Math.min(o.length,u.length);S<k&&o.charCodeAt(S)==u.charCodeAt(S);)++S;return St(n,function(){si(n,u.slice(S),o.length-S,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
  26. `)>-1?a.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Xe.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xe.prototype.onKeyPress=function(){d&&y>=9&&(this.hasSelection=null),this.fastPoll()},Xe.prototype.onContextMenu=function(e){var n=this,a=n.cm,o=a.display,u=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=kn(a,e),S=o.scroller.scrollTop;if(m&&!A){a.options.resetSelectionOnContextMenu&&a.doc.sel.contains(m)==-1&&lt(a,pt)(a.doc,An(m),Le);var k,B=u.style.cssText,O=n.wrapper.style.cssText,W=n.wrapper.offsetParent.getBoundingClientRect();if(n.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
  27. top: `+(e.clientY-W.top-5)+"px; left: "+(e.clientX-W.left-5)+`px;
  28. z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
  29. outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`,b&&(k=u.ownerDocument.defaultView.scrollY),o.input.focus(),b&&u.ownerDocument.defaultView.scrollTo(null,k),o.input.reset(),a.somethingSelected()||(u.value=n.prevInput=" "),n.contextMenuPending=X,o.selForContextMenu=a.doc.sel,clearTimeout(o.detectingSelectAll),d&&y>=9&&K(),F){ft(e);var Y=function(){Te(window,"mouseup",Y),setTimeout(X,20)};ue(window,"mouseup",Y)}else setTimeout(X,50)}function K(){if(u.selectionStart!=null){var ne=a.somethingSelected(),le="\u200B"+(ne?u.value:"");u.value="\u21DA",u.value=le,n.prevInput=ne?"":"\u200B",u.selectionStart=1,u.selectionEnd=le.length,o.selForContextMenu=a.doc.sel}}function X(){if(n.contextMenuPending==X&&(n.contextMenuPending=!1,n.wrapper.style.cssText=O,u.style.cssText=B,d&&y<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=S),u.selectionStart!=null)){(!d||d&&y<9)&&K();var ne=0,le=function(){o.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&n.prevInput=="\u200B"?lt(a,Ml)(a):ne++<10?o.detectingSelectAll=setTimeout(le,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(le,200)}}},Xe.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Xe.prototype.setUneditable=function(){},Xe.prototype.needsContentAttribute=!1,tu(Qe),iu(Qe);var du="iter insert remove copy getEditor constructor".split(" ");for(var vo in bt.prototype)bt.prototype.hasOwnProperty(vo)&&ke(du,vo)<0&&(Qe.prototype[vo]=function(e){return function(){return e.apply(this.doc,arguments)}}(bt.prototype[vo]));return _t(bt),Qe.inputStyles={textarea:Xe,contenteditable:$e},Qe.defineMode=function(e){!Qe.defaults.mode&&e!="null"&&(Qe.defaults.mode=e),zt.apply(this,arguments)},Qe.defineMIME=Fn,Qe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qe.defineMIME("text/plain","null"),Qe.defineExtension=function(e,n){Qe.prototype[e]=n},Qe.defineDocExtension=function(e,n){bt.prototype[e]=n},Qe.fromTextArea=uu,cu(Qe),Qe.version="5.65.9",Qe}();const CodeMirror=codemirror.exports;var l;(l=codemirror.exports).defineMode("javascript",function(r,i){var t,s,c=r.indentUnit,f=i.statementIndent,d=i.jsonld,y=i.json||d,b=i.trackScope!==!1,p=i.typescript,x=i.wordCharacters||/[\w$\xa1-\uffff]/,g=function(){function H(ot){return{type:ot,style:"keyword"}}var Q=H("keyword a"),ie=H("keyword b"),Ae=H("keyword c"),Z=H("keyword d"),ge=H("operator"),je={type:"atom",style:"atom"};return{if:H("if"),while:Q,with:Q,else:ie,do:ie,try:ie,finally:ie,return:Z,break:Z,continue:Z,new:H("new"),delete:Ae,void:Ae,throw:Ae,debugger:H("debugger"),var:H("var"),const:H("var"),let:H("var"),function:H("function"),catch:H("catch"),for:H("for"),switch:H("switch"),case:H("case"),default:H("default"),in:ge,typeof:ge,instanceof:ge,true:je,false:je,null:je,undefined:je,NaN:je,Infinity:je,this:H("this"),class:H("class"),super:H("atom"),yield:Ae,export:H("export"),import:H("import"),extends:Ae,await:Ae}}(),A=/[+\-*&%=<>!?|~^@]/,w=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function E(H){for(var Q,ie=!1,Ae=!1;(Q=H.next())!=null;){if(!ie){if(Q=="/"&&!Ae)return;Q=="["?Ae=!0:Ae&&Q=="]"&&(Ae=!1)}ie=!ie&&Q=="\\"}}function _(H,Q,ie){return t=H,s=ie,Q}function D(H,Q){var ie=H.next();if(ie=='"'||ie=="'")return Q.tokenize=C(ie),Q.tokenize(H,Q);if(ie=="."&&H.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return _("number","number");if(ie=="."&&H.match(".."))return _("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ie))return _(ie);if(ie=="="&&H.eat(">"))return _("=>","operator");if(ie=="0"&&H.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return _("number","number");if(/\d/.test(ie))return H.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),_("number","number");if(ie=="/")return H.eat("*")?(Q.tokenize=M,M(H,Q)):H.eat("/")?(H.skipToEnd(),_("comment","comment")):Lt(H,Q,1)?(E(H),H.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),_("regexp","string-2")):(H.eat("="),_("operator","operator",H.current()));if(ie=="`")return Q.tokenize=T,T(H,Q);if(ie=="#"&&H.peek()=="!")return H.skipToEnd(),_("meta","meta");if(ie=="#"&&H.eatWhile(x))return _("variable","property");if(ie=="<"&&H.match("!--")||ie=="-"&&H.match("->")&&!/\S/.test(H.string.slice(0,H.start)))return H.skipToEnd(),_("comment","comment");if(A.test(ie))return(ie!=">"||!Q.lexical||Q.lexical.type!=">")&&(H.eat("=")?(ie=="!"||ie=="=")&&H.eat("="):/[<>*+\-|&?]/.test(ie)&&(H.eat(ie),ie==">"&&H.eat(ie))),ie=="?"&&H.eat(".")?_("."):_("operator","operator",H.current());if(x.test(ie)){H.eatWhile(x);var Ae=H.current();if(Q.lastType!="."){if(g.propertyIsEnumerable(Ae)){var Z=g[Ae];return _(Z.type,Z.style,Ae)}if(Ae=="async"&&H.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return _("async","keyword",Ae)}return _("variable","variable",Ae)}}function C(H){return function(Q,ie){var Ae,Z=!1;if(d&&Q.peek()=="@"&&Q.match(w))return ie.tokenize=D,_("jsonld-keyword","meta");for(;(Ae=Q.next())!=null&&(Ae!=H||Z);)Z=!Z&&Ae=="\\";return Z||(ie.tokenize=D),_("string","string")}}function M(H,Q){for(var ie,Ae=!1;ie=H.next();){if(ie=="/"&&Ae){Q.tokenize=D;break}Ae=ie=="*"}return _("comment","comment")}function T(H,Q){for(var ie,Ae=!1;(ie=H.next())!=null;){if(!Ae&&(ie=="`"||ie=="$"&&H.eat("{"))){Q.tokenize=D;break}Ae=!Ae&&ie=="\\"}return _("quasi","string-2",H.current())}var N="([{}])";function P(H,Q){Q.fatArrowAt&&(Q.fatArrowAt=null);var ie=H.string.indexOf("=>",H.start);if(!(ie<0)){if(p){var Ae=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(H.string.slice(H.start,ie));Ae&&(ie=Ae.index)}for(var Z=0,ge=!1,je=ie-1;je>=0;--je){var ot=H.string.charAt(je),yt=N.indexOf(ot);if(yt>=0&&yt<3){if(!Z){++je;break}if(--Z==0){ot=="("&&(ge=!0);break}}else if(yt>=3&&yt<6)++Z;else if(x.test(ot))ge=!0;else if(/["'\/`]/.test(ot))for(;;--je){if(je==0)return;if(H.string.charAt(je-1)==ot&&H.string.charAt(je-2)!="\\"){je--;break}}else if(ge&&!Z){++je;break}}ge&&!Z&&(Q.fatArrowAt=je)}}var $={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function L(H,Q,ie,Ae,Z,ge){this.indented=H,this.column=Q,this.type=ie,this.prev=Z,this.info=ge,Ae!=null&&(this.align=Ae)}function F(H,Q){if(!b)return!1;for(var ie=H.localVars;ie;ie=ie.next)if(ie.name==Q)return!0;for(var Ae=H.context;Ae;Ae=Ae.prev)for(ie=Ae.vars;ie;ie=ie.next)if(ie.name==Q)return!0}function R(H,Q,ie,Ae,Z){var ge=H.cc;for(I.state=H,I.stream=Z,I.marked=null,I.cc=ge,I.style=Q,H.lexical.hasOwnProperty("align")||(H.lexical.align=!0);;)if((ge.length?ge.pop():y?Ne:he)(ie,Ae)){for(;ge.length&&ge[ge.length-1].lex;)ge.pop()();return I.marked?I.marked:ie=="variable"&&F(H,Ae)?"variable-2":Q}}var I={state:null,column:null,marked:null,cc:null};function V(){for(var H=arguments.length-1;H>=0;H--)I.cc.push(arguments[H])}function j(){return V.apply(null,arguments),!0}function z(H,Q){for(var ie=Q;ie;ie=ie.next)if(ie.name==H)return!0;return!1}function U(H){var Q=I.state;if(I.marked="def",b){if(Q.context){if(Q.lexical.info=="var"&&Q.context&&Q.context.block){var ie=G(H,Q.context);if(ie!=null)return void(Q.context=ie)}else if(!z(H,Q.localVars))return void(Q.localVars=new ee(H,Q.localVars))}i.globalVars&&!z(H,Q.globalVars)&&(Q.globalVars=new ee(H,Q.globalVars))}}function G(H,Q){if(Q){if(Q.block){var ie=G(H,Q.prev);return ie?ie==Q.prev?Q:new q(ie,Q.vars,!0):null}return z(H,Q.vars)?Q:new q(Q.prev,new ee(H,Q.vars),!1)}return null}function J(H){return H=="public"||H=="private"||H=="protected"||H=="abstract"||H=="readonly"}function q(H,Q,ie){this.prev=H,this.vars=Q,this.block=ie}function ee(H,Q){this.name=H,this.next=Q}var te=new ee("this",new ee("arguments",null));function ce(){I.state.context=new q(I.state.context,I.state.localVars,!1),I.state.localVars=te}function be(){I.state.context=new q(I.state.context,I.state.localVars,!0),I.state.localVars=null}function pe(){I.state.localVars=I.state.context.vars,I.state.context=I.state.context.prev}function oe(H,Q){var ie=function(){var Ae=I.state,Z=Ae.indented;if(Ae.lexical.type=="stat")Z=Ae.lexical.indented;else for(var ge=Ae.lexical;ge&&ge.type==")"&&ge.align;ge=ge.prev)Z=ge.indented;Ae.lexical=new L(Z,I.stream.column(),H,null,Ae.lexical,Q)};return ie.lex=!0,ie}function se(){var H=I.state;H.lexical.prev&&(H.lexical.type==")"&&(H.indented=H.lexical.indented),H.lexical=H.lexical.prev)}function re(H){function Q(ie){return ie==H?j():H==";"||ie=="}"||ie==")"||ie=="]"?V():j(Q)}return Q}function he(H,Q){return H=="var"?j(oe("vardef",Q),nn,re(";"),se):H=="keyword a"?j(oe("form"),Le,he,se):H=="keyword b"?j(oe("form"),he,se):H=="keyword d"?I.stream.match(/^\s*$/,!1)?j():j(oe("stat"),st,re(";"),se):H=="debugger"?j(re(";")):H=="{"?j(oe("}"),be,It,se,pe):H==";"?j():H=="if"?(I.state.lexical.info=="else"&&I.state.cc[I.state.cc.length-1]==se&&I.state.cc.pop()(),j(oe("form"),Le,he,se,Fr)):H=="function"?j(Ft):H=="for"?j(oe("form"),be,Or,he,pe,se):H=="class"||p&&Q=="interface"?(I.marked="keyword",j(oe("form",H=="class"?H:Q),Pn,se)):H=="variable"?p&&Q=="declare"?(I.marked="keyword",j(he)):p&&(Q=="module"||Q=="enum"||Q=="type")&&I.stream.match(/^\s*\w/,!1)?(I.marked="keyword",Q=="enum"?j(_e):Q=="type"?j(Hr,re("operator"),de,re(";")):j(oe("form"),ft,re("{"),oe("}"),It,se,se)):p&&Q=="namespace"?(I.marked="keyword",j(oe("form"),Ne,he,se)):p&&Q=="abstract"?(I.marked="keyword",j(he)):j(oe("stat"),Tt):H=="switch"?j(oe("form"),Le,re("{"),oe("}","switch"),be,It,se,se,pe):H=="case"?j(Ne,re(":")):H=="default"?j(re(":")):H=="catch"?j(oe("form"),ce,ke,he,se,pe):H=="export"?j(oe("stat"),On,se):H=="import"?j(oe("stat"),mn,se):H=="async"?j(he):Q=="@"?j(Ne,he):V(oe("stat"),Ne,re(";"),se)}function ke(H){if(H=="(")return j($t,re(")"))}function Ne(H,Q){return Ct(H,Q,!1)}function Be(H,Q){return Ct(H,Q,!0)}function Le(H){return H!="("?V():j(oe(")"),st,re(")"),se)}function Ct(H,Q,ie){if(I.state.fatArrowAt==I.stream.start){var Ae=ie?Ht:dt;if(H=="(")return j(ce,oe(")"),Oe($t,")"),se,re("=>"),Ae,pe);if(H=="variable")return V(ce,ft,re("=>"),Ae,pe)}var Z=ie?ct:Ke;return $.hasOwnProperty(H)?j(Z):H=="function"?j(Ft,Z):H=="class"||p&&Q=="interface"?(I.marked="keyword",j(oe("form"),Ao,se)):H=="keyword c"||H=="async"?j(ie?Be:Ne):H=="("?j(oe(")"),st,re(")"),se,Z):H=="operator"||H=="spread"?j(ie?Be:Ne):H=="["?j(oe("]"),Ge,se,Z):H=="{"?nt(Rt,"}",null,Z):H=="quasi"?V(Mt,Z):H=="new"?j(Et(ie)):j()}function st(H){return H.match(/[;\}\)\],]/)?V():V(Ne)}function Ke(H,Q){return H==","?j(st):ct(H,Q,!1)}function ct(H,Q,ie){var Ae=ie==0?Ke:ct,Z=ie==0?Ne:Be;if(H=="=>")return j(ce,ie?Ht:dt,pe);if(H=="operator")return/\+\+|--/.test(Q)||p&&Q=="!"?j(Ae):p&&Q=="<"&&I.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?j(oe(">"),Oe(de,">"),se,Ae):Q=="?"?j(Ne,re(":"),Z):j(Z);if(H=="quasi")return V(Mt,Ae);if(H!=";"){if(H=="(")return nt(Be,")","call",Ae);if(H==".")return j(Nt,Ae);if(H=="[")return j(oe("]"),st,re("]"),se,Ae);if(p&&Q=="as")return I.marked="keyword",j(de,Ae);if(H=="regexp")return I.state.lastType=I.marked="operator",I.stream.backUp(I.stream.pos-I.stream.start-1),j(Z)}}function Mt(H,Q){return H!="quasi"?V():Q.slice(Q.length-2)!="${"?j(Mt):j(st,Ie)}function Ie(H){if(H=="}")return I.marked="string-2",I.state.tokenize=T,j(Mt)}function dt(H){return P(I.stream,I.state),V(H=="{"?he:Ne)}function Ht(H){return P(I.stream,I.state),V(H=="{"?he:Be)}function Et(H){return function(Q){return Q=="."?j(H?qt:pn):Q=="variable"&&p?j(_t,H?ct:Ke):V(H?Be:Ne)}}function pn(H,Q){if(Q=="target")return I.marked="keyword",j(Ke)}function qt(H,Q){if(Q=="target")return I.marked="keyword",j(ct)}function Tt(H){return H==":"?j(se,he):V(Ke,re(";"),se)}function Nt(H){if(H=="variable")return I.marked="property",j()}function Rt(H,Q){return H=="async"?(I.marked="property",j(Rt)):H=="variable"||I.style=="keyword"?(I.marked="property",Q=="get"||Q=="set"?j(Kt):(p&&I.state.fatArrowAt==I.stream.start&&(ie=I.stream.match(/^\s*:\s*/,!1))&&(I.state.fatArrowAt=I.stream.pos+ie[0].length),j(ut))):H=="number"||H=="string"?(I.marked=d?"property":I.style+" property",j(ut)):H=="jsonld-keyword"?j(ut):p&&J(Q)?(I.marked="keyword",j(Rt)):H=="["?j(Ne,we,re("]"),ut):H=="spread"?j(Be,ut):Q=="*"?(I.marked="keyword",j(Rt)):H==":"?V(ut):void 0;var ie}function Kt(H){return H!="variable"?V(ut):(I.marked="property",j(Ft))}function ut(H){return H==":"?j(Be):H=="("?V(Ft):void 0}function Oe(H,Q,ie){function Ae(Z,ge){if(ie?ie.indexOf(Z)>-1:Z==","){var je=I.state.lexical;return je.info=="call"&&(je.pos=(je.pos||0)+1),j(function(ot,yt){return ot==Q||yt==Q?V():V(H)},Ae)}return Z==Q||ge==Q?j():ie&&ie.indexOf(";")>-1?V(H):j(re(Q))}return function(Z,ge){return Z==Q||ge==Q?j():V(H,Ae)}}function nt(H,Q,ie){for(var Ae=3;Ae<arguments.length;Ae++)I.cc.push(arguments[Ae]);return j(oe(Q,ie),Oe(H,Q),se)}function It(H){return H=="}"?j():V(he,It)}function we(H,Q){if(p){if(H==":")return j(de);if(Q=="?")return j(we)}}function ve(H,Q){if(p&&(H==":"||Q=="in"))return j(de)}function De(H){if(p&&H==":")return I.stream.match(/^\s*\w+\s+is\b/,!1)?j(Ne,ae,de):j(de)}function ae(H,Q){if(Q=="is")return I.marked="keyword",j()}function de(H,Q){return Q=="keyof"||Q=="typeof"||Q=="infer"||Q=="readonly"?(I.marked="keyword",j(Q=="typeof"?Be:de)):H=="variable"||Q=="void"?(I.marked="type",j(ze)):Q=="|"||Q=="&"?j(de):H=="string"||H=="number"||H=="atom"?j(ze):H=="["?j(oe("]"),Oe(de,"]",","),se,ze):H=="{"?j(oe("}"),Me,se,ze):H=="("?j(Oe(rt,")"),ue,ze):H=="<"?j(Oe(de,">"),de):H=="quasi"?V(Pe,ze):void 0}function ue(H){if(H=="=>")return j(de)}function Me(H){return H.match(/[\}\)\]]/)?j():H==","||H==";"?j(Me):V(Te,Me)}function Te(H,Q){return H=="variable"||I.style=="keyword"?(I.marked="property",j(Te)):Q=="?"||H=="number"||H=="string"?j(Te):H==":"?j(de):H=="["?j(re("variable"),ve,re("]"),Te):H=="("?V(hn,Te):H.match(/[;\}\)\],]/)?void 0:j()}function Pe(H,Q){return H!="quasi"?V():Q.slice(Q.length-2)!="${"?j(Pe):j(de,He)}function He(H){if(H=="}")return I.marked="string-2",I.state.tokenize=T,j(Pe)}function rt(H,Q){return H=="variable"&&I.stream.match(/^\s*[?:]/,!1)||Q=="?"?j(rt):H==":"?j(de):H=="spread"?j(rt):V(de)}function ze(H,Q){return Q=="<"?j(oe(">"),Oe(de,">"),se,ze):Q=="|"||H=="."||Q=="&"?j(de):H=="["?j(de,re("]"),ze):Q=="extends"||Q=="implements"?(I.marked="keyword",j(de)):Q=="?"?j(de,re(":"),de):void 0}function _t(H,Q){if(Q=="<")return j(oe(">"),Oe(de,">"),se,ze)}function We(){return V(de,jt)}function jt(H,Q){if(Q=="=")return j(de)}function nn(H,Q){return Q=="enum"?(I.marked="keyword",j(_e)):V(ft,we,Pt,lr)}function ft(H,Q){return p&&J(Q)?(I.marked="keyword",j(ft)):H=="variable"?(U(Q),j()):H=="spread"?j(ft):H=="["?nt(Pr,"]"):H=="{"?nt(Bn,"}"):void 0}function Bn(H,Q){return H!="variable"||I.stream.match(/^\s*:/,!1)?(H=="variable"&&(I.marked="property"),H=="spread"?j(ft):H=="}"?V():H=="["?j(Ne,re("]"),re(":"),Bn):j(re(":"),ft,Pt)):(U(Q),j(Pt))}function Pr(){return V(ft,Pt)}function Pt(H,Q){if(Q=="=")return j(Be)}function lr(H){if(H==",")return j(nn)}function Fr(H,Q){if(H=="keyword b"&&Q=="else")return j(oe("form","else"),he,se)}function Or(H,Q){return Q=="await"?j(Or):H=="("?j(oe(")"),yo,se):void 0}function yo(H){return H=="var"?j(nn,Xt):H=="variable"?j(Xt):V(Xt)}function Xt(H,Q){return H==")"?j():H==";"?j(Xt):Q=="in"||Q=="of"?(I.marked="keyword",j(Ne,Xt)):V(Ne,Xt)}function Ft(H,Q){return Q=="*"?(I.marked="keyword",j(Ft)):H=="variable"?(U(Q),j(Ft)):H=="("?j(ce,oe(")"),Oe($t,")"),se,De,he,pe):p&&Q=="<"?j(oe(">"),Oe(We,">"),se,Ft):void 0}function hn(H,Q){return Q=="*"?(I.marked="keyword",j(hn)):H=="variable"?(U(Q),j(hn)):H=="("?j(ce,oe(")"),Oe($t,")"),se,De,pe):p&&Q=="<"?j(oe(">"),Oe(We,">"),se,hn):void 0}function Hr(H,Q){return H=="keyword"||H=="variable"?(I.marked="type",j(Hr)):Q=="<"?j(oe(">"),Oe(We,">"),se):void 0}function $t(H,Q){return Q=="@"&&j(Ne,$t),H=="spread"?j($t):p&&J(Q)?(I.marked="keyword",j($t)):p&&H=="this"?j(we,Pt):V(ft,we,Pt)}function Ao(H,Q){return H=="variable"?Pn(H,Q):Vt(H,Q)}function Pn(H,Q){if(H=="variable")return U(Q),j(Vt)}function Vt(H,Q){return Q=="<"?j(oe(">"),Oe(We,">"),se,Vt):Q=="extends"||Q=="implements"||p&&H==","?(Q=="implements"&&(I.marked="keyword"),j(p?de:Ne,Vt)):H=="{"?j(oe("}"),zt,se):void 0}function zt(H,Q){return H=="async"||H=="variable"&&(Q=="static"||Q=="get"||Q=="set"||p&&J(Q))&&I.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(I.marked="keyword",j(zt)):H=="variable"||I.style=="keyword"?(I.marked="property",j(Fn,zt)):H=="number"||H=="string"?j(Fn,zt):H=="["?j(Ne,we,re("]"),Fn,zt):Q=="*"?(I.marked="keyword",j(zt)):p&&H=="("?V(hn,zt):H==";"||H==","?j(zt):H=="}"?j():Q=="@"?j(Ne,zt):void 0}function Fn(H,Q){if(Q=="!"||Q=="?")return j(Fn);if(H==":")return j(de,Pt);if(Q=="=")return j(Be);var ie=I.state.lexical.prev;return V(ie&&ie.info=="interface"?hn:Ft)}function On(H,Q){return Q=="*"?(I.marked="keyword",j($n,re(";"))):Q=="default"?(I.marked="keyword",j(Ne,re(";"))):H=="{"?j(Oe(Hn,"}"),$n,re(";")):V(he)}function Hn(H,Q){return Q=="as"?(I.marked="keyword",j(re("variable"))):H=="variable"?V(Be,Hn):void 0}function mn(H){return H=="string"?j():H=="("?V(Ne):H=="."?V(Ke):V(jn,Jt,$n)}function jn(H,Q){return H=="{"?nt(jn,"}"):(H=="variable"&&U(Q),Q=="*"&&(I.marked="keyword"),j(ar))}function Jt(H){if(H==",")return j(jn,Jt)}function ar(H,Q){if(Q=="as")return I.marked="keyword",j(jn)}function $n(H,Q){if(Q=="from")return I.marked="keyword",j(Ne)}function Ge(H){return H=="]"?j():V(Oe(Be,"]"))}function _e(){return V(oe("form"),ft,re("{"),oe("}"),Oe(rn,"}"),se,se)}function rn(){return V(ft,Pt)}function sr(H,Q){return H.lastType=="operator"||H.lastType==","||A.test(Q.charAt(0))||/[,.]/.test(Q.charAt(0))}function Lt(H,Q,ie){return Q.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Q.lastType)||Q.lastType=="quasi"&&/\{\s*$/.test(H.string.slice(0,H.pos-(ie||0)))}return ce.lex=be.lex=!0,pe.lex=!0,se.lex=!0,{startState:function(H){var Q={tokenize:D,lastType:"sof",cc:[],lexical:new L((H||0)-c,0,"block",!1),localVars:i.localVars,context:i.localVars&&new q(null,null,!1),indented:H||0};return i.globalVars&&typeof i.globalVars=="object"&&(Q.globalVars=i.globalVars),Q},token:function(H,Q){if(H.sol()&&(Q.lexical.hasOwnProperty("align")||(Q.lexical.align=!1),Q.indented=H.indentation(),P(H,Q)),Q.tokenize!=M&&H.eatSpace())return null;var ie=Q.tokenize(H,Q);return t=="comment"?ie:(Q.lastType=t!="operator"||s!="++"&&s!="--"?t:"incdec",R(Q,ie,t,s,H))},indent:function(H,Q){if(H.tokenize==M||H.tokenize==T)return l.Pass;if(H.tokenize!=D)return 0;var ie,Ae=Q&&Q.charAt(0),Z=H.lexical;if(!/^\s*else\b/.test(Q))for(var ge=H.cc.length-1;ge>=0;--ge){var je=H.cc[ge];if(je==se)Z=Z.prev;else if(je!=Fr&&je!=pe)break}for(;(Z.type=="stat"||Z.type=="form")&&(Ae=="}"||(ie=H.cc[H.cc.length-1])&&(ie==Ke||ie==ct)&&!/^[,\.=+\-*:?[\(]/.test(Q));)Z=Z.prev;f&&Z.type==")"&&Z.prev.type=="stat"&&(Z=Z.prev);var ot=Z.type,yt=Ae==ot;return ot=="vardef"?Z.indented+(H.lastType=="operator"||H.lastType==","?Z.info.length+1:0):ot=="form"&&Ae=="{"?Z.indented:ot=="form"?Z.indented+c:ot=="stat"?Z.indented+(sr(H,Q)?f||c:0):Z.info!="switch"||yt||i.doubleIndentSwitch==0?Z.align?Z.column+(yt?0:1):Z.indented+(yt?0:c):Z.indented+(/^(?:case|default)\b/.test(Q)?c:2*c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:y?null:"/*",blockCommentEnd:y?null:"*/",blockCommentContinue:y?null:" * ",lineComment:y?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:y?"json":"javascript",jsonldMode:d,jsonMode:y,expressionAllowed:Lt,skipExpression:function(H){R(H,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0});const _sfc_main$5=defineComponent({name:"Struct",props:{modelValue:[Object,Array,Function],title:String,defaultValue:{require:!1},validate:Function},inject:["designer"],data(){return{editor:null,visible:!1,err:!1,oldVal:null,t:this.designer.setupState.t}},watch:{modelValue(){this.load()},visible(r){r?this.load():this.err=!1}},methods:{load(){const r=toJSON(this.modelValue?deepParseFn(deepCopy(this.modelValue)):this.defaultValue);this.oldVal=r,this.$nextTick(()=>{this.editor=CodeMirror(this.$refs.editor,{lineNumbers:!0,mode:"javascript",gutters:["CodeMirror-lint-markers"],lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:r||""})})},onOk(){const str=this.editor.getValue();let val;try{val=eval("(function (){return "+str+"}())")}catch(r){return void(this.err=` (${r})`)}this.validate&&this.validate(val)===!1?this.err=!0:(this.visible=!1,toJSON(val)!==this.oldVal&&this.$emit("update:modelValue",val))}}}),_hoisted_1$3={class:"_fc_struct"},_hoisted_2$1={key:0,ref:"editor"},_hoisted_3$1={class:"dialog-footer"},_hoisted_4={key:0,class:"_fc_err"};function _sfc_render$4(r,i,t,s,c,f){const d=resolveComponent("ElButton"),y=resolveComponent("ElDialog");return openBlock(),createElementBlock("div",_hoisted_1$3,[createVNode(d,{onClick:i[0]||(i[0]=b=>r.visible=!0),style:{width:"100%"}},{default:withCtx(()=>[createTextVNode(toDisplayString(r.title||r.t("struct.title")),1)]),_:1}),createVNode(y,{title:r.title||r.t("struct.title"),modelValue:r.visible,"onUpdate:modelValue":i[2]||(i[2]=b=>r.visible=b),"close-on-click-modal":!1,"append-to-body":""},{footer:withCtx(()=>[createBaseVNode("span",_hoisted_3$1,[r.err?(openBlock(),createElementBlock("span",_hoisted_4,toDisplayString(r.t("struct.error"))+toDisplayString(r.err!==!0?r.err:""),1)):createCommentVNode("",!0),createVNode(d,{onClick:i[1]||(i[1]=b=>r.visible=!1),size:"small"},{default:withCtx(()=>[createTextVNode(toDisplayString(r.t("struct.cancel")),1)]),_:1}),createVNode(d,{type:"primary",onClick:r.onOk,size:"small"},{default:withCtx(()=>[createTextVNode(toDisplayString(r.t("struct.submit")),1)]),_:1},8,["onClick"])])]),default:withCtx(()=>[r.visible?(openBlock(),createElementBlock("div",_hoisted_2$1,null,512)):createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const Struct=_export_sfc(_sfc_main$5,[["render",_sfc_render$4]]);function debounce(r,i){var t=null;return function(...s){t!==null&&clearTimeout(t),t=setTimeout(()=>r.call(this,...s),i)}}const _sfc_main$4=defineComponent({name:"Fetch",props:{modelValue:[Object,String],to:String},components:{DragForm:designerForm.$form()},inject:["designer"],computed:{formValue(){const r=this.modelValue;return r?is.String(r)?{action:r}:!r._parse&&r.parse?{...r,_parse:""+r.parse}:is.Function(r._parse)?{...r,_parse:""+r._parse}:r:{}}},data(){const r=this.designer.setupState.t;return{api:{},fetch:{},t:r,option:{form:{labelPosition:"right",size:"small",labelWidth:"90px"},submitBtn:!1},rule:[{type:"input",field:"action",title:r("fetch.action")+": ",validate:[{required:!0,message:r("fetch.actionRequired")}]},{type:"select",field:"method",title:r("fetch.method")+": ",value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],control:[{value:"POST",rule:[{type:"select",field:"dataType",title:r("fetch.dataType")+": ",value:"FormData",options:[{label:"FormData",value:"FormData"},{label:"JSON",value:"JSON"}]}]}]},{type:"Struct",field:"data",title:r("fetch.data")+": ",value:{},props:{defaultValue:{}}},{type:"Struct",field:"headers",title:r("fetch.headers")+": ",value:{},props:{defaultValue:{}}},{type:"input",field:"_parse",title:r("fetch.parse")+": ",info:r("fetch.parseInfo"),value:`function (res){
  30. return res.data;
  31. }`,props:{type:"textarea",rows:8},validate:[{validator:(i,t,s)=>{if(!t)return s();try{this.parseFn(t)}catch{return s(!1)}s()},message:r("fetch.parseValidate")}]}]}},methods:{parseFn(v){return eval(`(function () {
  32. return ${v}
  33. })()`)},_input(){this.api.submit(r=>{r.to=this.to||"options",r._parse&&(r.parse=this.parseFn(r._parse)),this.$emit("update:modelValue",r)})},input:debounce(function(){this._input()},1e3)},mounted(){this._input()}}),_hoisted_1$2={class:"_fc_fetch"};function _sfc_render$3(r,i,t,s,c,f){const d=resolveComponent("DragForm");return openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(d,{api:r.api,"onUpdate:api":i[0]||(i[0]=y=>r.api=y),modelValue:r.formValue,rule:r.rule,option:r.option,onChange:r.input},null,8,["api","modelValue","rule","option","onChange"])])}const Fetch=_export_sfc(_sfc_main$4,[["render",_sfc_render$3]]),_sfc_main$3=defineComponent({name:"Validate",inject:["designer"],props:{modelValue:Array},components:{DragForm:designerForm.$form()},watch:{modelValue(r){this.formValue=this.parseValue(r)}},data(){const r=this.designer.setupState.t;return{formValue:{},t:r,option:{form:{labelPosition:"top",size:"small",labelWidth:"90px"},submitBtn:!1,appendValue:!0,formData:this.parseValue(this.modelValue)},rule:[{type:"select",field:"type",value:"",title:r("validate.type"),options:[{value:"",label:r("validate.typePlaceholder")},{value:"string",label:"String"},{value:"array",label:"Array"},{value:"number",label:"Number"},{value:"integer",label:"Integer"},{value:"float",label:"Float"},{value:"object",label:"Object"},{value:"date",label:"Date"},{value:"url",label:"url"},{value:"hex",label:"hex"},{value:"email",label:"email"}],control:[{handle:i=>!!i,rule:[{type:"group",field:"validate",props:{expand:1,rule:[{type:"select",title:r("validate.trigger"),field:"trigger",value:"change",options:[{label:"change",value:"change"},{label:"submit",value:"submit"},{label:"blur",value:"blur"}]},{type:"hidden",field:"validator",value:void 0},{type:"select",title:r("validate.mode"),field:"mode",options:[{value:"required",label:r("validate.modes.required")},{value:"pattern",label:r("validate.modes.pattern")},{value:"min",label:r("validate.modes.min")},{value:"max",label:r("validate.modes.max")},{value:"len",label:r("validate.modes.len")}],value:"required",control:[{value:"required",rule:[{type:"hidden",field:"required",value:!0}]},{value:"pattern",rule:[{type:"input",field:"pattern",title:r("validate.modes.pattern")}]},{value:"min",rule:[{type:"inputNumber",field:"min",title:r("validate.modes.min")}]},{value:"max",rule:[{type:"inputNumber",field:"max",title:r("validate.modes.max")}]},{value:"len",rule:[{type:"inputNumber",field:"len",title:r("validate.modes.len")}]}]},{type:"input",title:r("validate.message"),field:"message",value:"",children:[{type:"span",slot:"append",inject:!0,class:"append-msg",on:{click:i=>{const t=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&i.api.setValue("message",r(i.api.form.mode!=="required"?"validate.autoMode":"validate.autoRequired",{title:t}))}},children:[r("validate.auto")]}]}]},value:[]}]}]}]}},methods:{onInput:function(r){let i=[];const{validate:t,type:s}=deepCopy(r);s&&(!t||!t.length)||(s&&(t.forEach(c=>{c.type=s}),i=[...t]),this.$emit("update:modelValue",i))},parseValue(r){let i={validate:r?[...r]:[],type:r.length?r[0].type||"string":void 0};return i.validate.forEach(t=>{t.mode||Object.keys(t).forEach(s=>{["message","type","trigger","mode"].indexOf(s)<0&&(t.mode=s)})}),i}}});function _sfc_render$2(r,i,t,s,c,f){const d=resolveComponent("DragForm");return openBlock(),createBlock(d,{class:"_fc-validate",rule:r.rule,option:r.option,modelValue:r.formValue,"onUpdate:modelValue":r.onInput},null,8,["rule","option","modelValue","onUpdate:modelValue"])}const Validate=_export_sfc(_sfc_main$3,[["render",_sfc_render$2]]),_sfc_main$2=defineComponent({name:"DragBox",props:["rule","tag","formCreateInject"],render(r){const i={...r.$props.rule.props,...r.$attrs};let t=i.tag+"-drag drag-box";Object.keys(r.$slots).length||(t+=" "+i.tag+"-holder"),i.class=t,i.modelValue=[...this.$props.formCreateInject.children];const s={};return r.$slots.default&&r.$slots.default().forEach(c=>{c.key&&(s[c.key]=c)}),h(resolveComponent("draggable"),i,{item:({element:c})=>h("div",{},s[c.__fc__.key+"fc"])})}}),_sfc_main$1=defineComponent({name:"Required",props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(r){const i=is.String(r);this.required=r!==void 0&&(!!i||!!r),this.requiredMsg=i?r:""}},data(){const r=is.String(this.modelValue);return{t:this.designer.setupState.t,required:this.modelValue!==void 0&&(!!r||!!this.modelValue),requiredMsg:r?this.modelValue:""}},methods:{update(){let r;r=this.required!==!1&&(this.requiredMsg||!0),this.$emit("update:modelValue",r)}}}),_hoisted_1$1={class:"_fc-required"};function _sfc_render$1(r,i,t,s,c,f){const d=resolveComponent("ElSwitch"),y=resolveComponent("ElInput");return openBlock(),createElementBlock("div",_hoisted_1$1,[createVNode(d,{modelValue:r.required,"onUpdate:modelValue":i[0]||(i[0]=b=>r.required=b)},null,8,["modelValue"]),r.required?(openBlock(),createBlock(y,{key:0,modelValue:r.requiredMsg,"onUpdate:modelValue":i[1]||(i[1]=b=>r.requiredMsg=b),placeholder:r.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):createCommentVNode("",!0)])}const Required=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),_sfc_main=defineComponent({name:"TableOptions",inheritAttrs:!1,props:{modelValue:[Object,Array,String]},inject:["designer"],data(){return{column:[{label:"label",key:"label"},{label:"value",key:"value"}],t:this.designer.setupState.t}},created(){Array.isArray(this.modelValue)||this.$emit("input",[])},methods:{onInput(r){r.label&&r.value&&this.input()},input(){this.$emit("update:modelValue",this.modelValue)},add(){this.modelValue.push(this.column.reduce((r,i)=>(r[i.key]="",r),{}))},del(r){this.modelValue.splice(r,1),this.input(this.modelValue)}}}),_withScopeId=r=>(pushScopeId("data-v-ed69f8be"),r=r(),popScopeId(),r),_hoisted_1={class:"_fc_table_opt"},_hoisted_2=["onClick"],_hoisted_3=_withScopeId(()=>createBaseVNode("i",{class:"fc-icon icon-add"},null,-1));function _sfc_render(r,i,t,s,c,f){const d=resolveComponent("el-input"),y=resolveComponent("el-table-column"),b=resolveComponent("el-table"),p=resolveComponent("el-button");return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(b,{data:r.modelValue,border:"",size:"small",style:{width:"100%"}},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.column,(x,g)=>(openBlock(),createBlock(y,{key:x.label+g,label:x.label},{default:withCtx(A=>[createVNode(d,{size:"small",modelValue:A.row[x.key]||"","onUpdate:modelValue":w=>(A.row[x.key]=w,r.onInput(A.row))},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),128)),createVNode(y,{"min-width":"50",align:"center",fixed:"right",label:r.t("tableOptions.handle")},{default:withCtx(x=>[createBaseVNode("i",{class:"fc-icon icon-delete",onClick:g=>r.del(x.$index)},null,8,_hoisted_2)]),_:1},8,["label"])]),_:1},8,["data"]),createVNode(p,{link:"",type:"primary",onClick:r.add},{default:withCtx(()=>[_hoisted_3,createTextVNode(" "+toDisplayString(r.t("tableOptions.add")),1)]),_:1},8,["onClick"])])}const TableOptions=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-ed69f8be"]]);function ownKeys(r,i){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);i&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,s)}return t}function _objectSpread2(r){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(t),!0).forEach(function(s){_defineProperty(r,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(t,s))})}return r}function _typeof(r){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(r)}function _defineProperty(r,i,t){return i in r?Object.defineProperty(r,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[i]=t,r}function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var wangEditor={exports:{}};wangEditor.exports=function(r){var i={};function t(s){if(i[s])return i[s].exports;var c=i[s]={i:s,l:!1,exports:{}};return r[s].call(c.exports,c,c.exports,t),c.l=!0,c.exports}return t.m=r,t.c=i,t.d=function(s,c,f){t.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:f})},t.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},t.t=function(s,c){if(1&c&&(s=t(s)),8&c||4&c&&_typeof(s)==="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(t.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&c&&typeof s!="string")for(var d in s)t.d(f,d,(function(y){return s[y]}).bind(null,d));return f},t.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return t.d(c,"a",c),c},t.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},t.p="",t(t.s=141)}([function(r,i){function t(s){return s&&s.__esModule?s:{default:s}}r.exports=t},function(r,i,t){r.exports=t(142)},function(r,i,t){t.r(i),t.d(i,"__extends",function(){return c}),t.d(i,"__assign",function(){return f}),t.d(i,"__rest",function(){return d}),t.d(i,"__decorate",function(){return y}),t.d(i,"__param",function(){return b}),t.d(i,"__metadata",function(){return p}),t.d(i,"__awaiter",function(){return x}),t.d(i,"__generator",function(){return g}),t.d(i,"__createBinding",function(){return A}),t.d(i,"__exportStar",function(){return w}),t.d(i,"__values",function(){return E}),t.d(i,"__read",function(){return _}),t.d(i,"__spread",function(){return D}),t.d(i,"__spreadArrays",function(){return C}),t.d(i,"__spreadArray",function(){return M}),t.d(i,"__await",function(){return T}),t.d(i,"__asyncGenerator",function(){return N}),t.d(i,"__asyncDelegator",function(){return P}),t.d(i,"__asyncValues",function(){return $}),t.d(i,"__makeTemplateObject",function(){return L}),t.d(i,"__importStar",function(){return R}),t.d(i,"__importDefault",function(){return I}),t.d(i,"__classPrivateFieldGet",function(){return V}),t.d(i,"__classPrivateFieldSet",function(){return j});var s=function(z,U){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,J){G.__proto__=J}||function(G,J){for(var q in J)Object.prototype.hasOwnProperty.call(J,q)&&(G[q]=J[q])})(z,U)};function c(z,U){if(typeof U!="function"&&U!==null)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");function G(){this.constructor=z}s(z,U),z.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}var f=function(){return f=Object.assign||function(z){for(var U,G=1,J=arguments.length;G<J;G++)for(var q in U=arguments[G])Object.prototype.hasOwnProperty.call(U,q)&&(z[q]=U[q]);return z},f.apply(this,arguments)};function d(z,U){var G={};for(var J in z)Object.prototype.hasOwnProperty.call(z,J)&&U.indexOf(J)<0&&(G[J]=z[J]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function"){var q=0;for(J=Object.getOwnPropertySymbols(z);q<J.length;q++)U.indexOf(J[q])<0&&Object.prototype.propertyIsEnumerable.call(z,J[q])&&(G[J[q]]=z[J[q]])}return G}function y(z,U,G,J){var q,ee=arguments.length,te=ee<3?U:J===null?J=Object.getOwnPropertyDescriptor(U,G):J;if((typeof Reflect>"u"?"undefined":_typeof(Reflect))==="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(z,U,G,J);else for(var ce=z.length-1;ce>=0;ce--)(q=z[ce])&&(te=(ee<3?q(te):ee>3?q(U,G,te):q(U,G))||te);return ee>3&&te&&Object.defineProperty(U,G,te),te}function b(z,U){return function(G,J){U(G,J,z)}}function p(z,U){if((typeof Reflect>"u"?"undefined":_typeof(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(z,U)}function x(z,U,G,J){function q(ee){return ee instanceof G?ee:new G(function(te){te(ee)})}return new(G||(G=Promise))(function(ee,te){function ce(oe){try{pe(J.next(oe))}catch(se){te(se)}}function be(oe){try{pe(J.throw(oe))}catch(se){te(se)}}function pe(oe){oe.done?ee(oe.value):q(oe.value).then(ce,be)}pe((J=J.apply(z,U||[])).next())})}function g(z,U){var G,J,q,ee,te={label:0,sent:function(){if(1&q[0])throw q[1];return q[1]},trys:[],ops:[]};return ee={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function ce(pe){return function(oe){return be([pe,oe])}}function be(pe){if(G)throw new TypeError("Generator is already executing.");for(;te;)try{if(G=1,J&&(q=2&pe[0]?J.return:pe[0]?J.throw||((q=J.return)&&q.call(J),0):J.next)&&!(q=q.call(J,pe[1])).done)return q;switch(J=0,q&&(pe=[2&pe[0],q.value]),pe[0]){case 0:case 1:q=pe;break;case 4:return te.label++,{value:pe[1],done:!1};case 5:te.label++,J=pe[1],pe=[0];continue;case 7:pe=te.ops.pop(),te.trys.pop();continue;default:if(!(q=(q=te.trys).length>0&&q[q.length-1])&&(pe[0]===6||pe[0]===2)){te=0;continue}if(pe[0]===3&&(!q||pe[1]>q[0]&&pe[1]<q[3])){te.label=pe[1];break}if(pe[0]===6&&te.label<q[1]){te.label=q[1],q=pe;break}if(q&&te.label<q[2]){te.label=q[2],te.ops.push(pe);break}q[2]&&te.ops.pop(),te.trys.pop();continue}pe=U.call(z,te)}catch(oe){pe=[6,oe],J=0}finally{G=q=0}if(5&pe[0])throw pe[1];return{value:pe[0]?pe[1]:void 0,done:!0}}}var A=Object.create?function(z,U,G,J){J===void 0&&(J=G),Object.defineProperty(z,J,{enumerable:!0,get:function(){return U[G]}})}:function(z,U,G,J){J===void 0&&(J=G),z[J]=U[G]};function w(z,U){for(var G in z)G!=="default"&&!Object.prototype.hasOwnProperty.call(U,G)&&A(U,z,G)}function E(z){var U=typeof Symbol=="function"&&Symbol.iterator,G=U&&z[U],J=0;if(G)return G.call(z);if(z&&typeof z.length=="number")return{next:function(){return z&&J>=z.length&&(z=void 0),{value:z&&z[J++],done:!z}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(z,U){var G=typeof Symbol=="function"&&z[Symbol.iterator];if(!G)return z;var J,q,ee=G.call(z),te=[];try{for(;(U===void 0||U-- >0)&&!(J=ee.next()).done;)te.push(J.value)}catch(ce){q={error:ce}}finally{try{J&&!J.done&&(G=ee.return)&&G.call(ee)}finally{if(q)throw q.error}}return te}function D(){for(var z=[],U=0;U<arguments.length;U++)z=z.concat(_(arguments[U]));return z}function C(){for(var z=0,U=0,G=arguments.length;U<G;U++)z+=arguments[U].length;var J=Array(z),q=0;for(U=0;U<G;U++)for(var ee=arguments[U],te=0,ce=ee.length;te<ce;te++,q++)J[q]=ee[te];return J}function M(z,U){for(var G=0,J=U.length,q=z.length;G<J;G++,q++)z[q]=U[G];return z}function T(z){return this instanceof T?(this.v=z,this):new T(z)}function N(z,U,G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,q=G.apply(z,U||[]),ee=[];return J={},te("next"),te("throw"),te("return"),J[Symbol.asyncIterator]=function(){return this},J;function te(re){q[re]&&(J[re]=function(he){return new Promise(function(ke,Ne){ee.push([re,he,ke,Ne])>1||ce(re,he)})})}function ce(re,he){try{be(q[re](he))}catch(ke){se(ee[0][3],ke)}}function be(re){re.value instanceof T?Promise.resolve(re.value.v).then(pe,oe):se(ee[0][2],re)}function pe(re){ce("next",re)}function oe(re){ce("throw",re)}function se(re,he){re(he),ee.shift(),ee.length&&ce(ee[0][0],ee[0][1])}}function P(z){var U,G;return U={},J("next"),J("throw",function(q){throw q}),J("return"),U[Symbol.iterator]=function(){return this},U;function J(q,ee){U[q]=z[q]?function(te){return(G=!G)?{value:T(z[q](te)),done:q==="return"}:ee?ee(te):te}:ee}}function $(z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,G=z[Symbol.asyncIterator];return G?G.call(z):(z=typeof E=="function"?E(z):z[Symbol.iterator](),U={},J("next"),J("throw"),J("return"),U[Symbol.asyncIterator]=function(){return this},U);function J(ee){U[ee]=z[ee]&&function(te){return new Promise(function(ce,be){q(ce,be,(te=z[ee](te)).done,te.value)})}}function q(ee,te,ce,be){Promise.resolve(be).then(function(pe){ee({value:pe,done:ce})},te)}}function L(z,U){return Object.defineProperty?Object.defineProperty(z,"raw",{value:U}):z.raw=U,z}var F=Object.create?function(z,U){Object.defineProperty(z,"default",{enumerable:!0,value:U})}:function(z,U){z.default=U};function R(z){if(z&&z.__esModule)return z;var U={};if(z!=null)for(var G in z)G!=="default"&&Object.prototype.hasOwnProperty.call(z,G)&&A(U,z,G);return F(U,z),U}function I(z){return z&&z.__esModule?z:{default:z}}function V(z,U){if(!U.has(z))throw new TypeError("attempted to get private field on non-instance");return U.get(z)}function j(z,U,G){if(!U.has(z))throw new TypeError("attempted to set private field on non-instance");return U.set(z,G),G}},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(89)),d=s(t(4)),y=s(t(26)),b=s(t(17)),p=s(t(120)),x=s(t(27)),g=s(t(91)),A=s(t(70)),w=s(t(44)),E=s(t(57));(0,c.default)(i,"__esModule",{value:!0}),i.DomElement=void 0;var _=t(2),D=t(6),C=[];function M(F){var R=document.createElement("div");R.innerHTML=F;var I=R.children;return D.toArray(I)}function T(F){return!!F&&(F instanceof HTMLCollection||F instanceof NodeList)}function N(F){var R=document.querySelectorAll(F);return D.toArray(R)}function P(F){var R=[],I=[];return R=(0,f.default)(F)?F:F.split(";"),(0,d.default)(R).call(R,function(V){var j,z=(0,y.default)(j=V.split(":")).call(j,function(U){return(0,b.default)(U).call(U)});z.length===2&&I.push(z[0]+":"+z[1])}),I}var $=function(){function F(R){if(this.elems=[],this.length=this.elems.length,this.dataSource=new p.default,R){if(R instanceof F)return R;var I=[],V=R instanceof Node?R.nodeType:-1;if(this.selector=R,V===1||V===9)I=[R];else if(T(R))I=D.toArray(R);else if(R instanceof Array)I=R;else if(typeof R=="string"){var j,z=(0,b.default)(j=R.replace(`/
  34. /mg`,"")).call(j);I=(0,x.default)(z).call(z,"<")===0?M(z):N(z)}var U=I.length;if(!U)return this;for(var G=0;G<U;G++)this.elems.push(I[G]);this.length=U}}return(0,c.default)(F.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),F.prototype.forEach=function(R){for(var I=0;I<this.length;I++){var V=this.elems[I];if(R.call(V,V,I)===!1)break}return this},F.prototype.clone=function(R){var I;R===void 0&&(R=!1);var V=[];return(0,d.default)(I=this.elems).call(I,function(j){V.push(j.cloneNode(!!R))}),L(V)},F.prototype.get=function(R){R===void 0&&(R=0);var I=this.length;return R>=I&&(R%=I),L(this.elems[R])},F.prototype.first=function(){return this.get(0)},F.prototype.last=function(){var R=this.length;return this.get(R-1)},F.prototype.on=function(R,I,V){var j;return R?(typeof I=="function"&&(V=I,I=""),(0,d.default)(j=this).call(j,function(z){if(I){var U=function(G){var J=G.target;J.matches(I)&&V.call(J,G)};z.addEventListener(R,U),C.push({elem:z,selector:I,fn:V,agentFn:U})}else z.addEventListener(R,V)})):this},F.prototype.off=function(R,I,V){var j;return R?(typeof I=="function"&&(V=I,I=""),(0,d.default)(j=this).call(j,function(z){if(I){for(var U=-1,G=0;G<C.length;G++){var J=C[G];if(J.selector===I&&J.fn===V&&J.elem===z){U=G;break}}if(U!==-1){var q=(0,g.default)(C).call(C,U,1)[0].agentFn;z.removeEventListener(R,q)}}else z.removeEventListener(R,V)})):this},F.prototype.attr=function(R,I){var V;return I==null?this.elems[0].getAttribute(R)||"":(0,d.default)(V=this).call(V,function(j){j.setAttribute(R,I)})},F.prototype.removeAttr=function(R){var I;(0,d.default)(I=this).call(I,function(V){V.removeAttribute(R)})},F.prototype.addClass=function(R){var I;return R?(0,d.default)(I=this).call(I,function(V){if(V.className){var j=V.className.split(/\s/);j=(0,A.default)(j).call(j,function(z){return!!(0,b.default)(z).call(z)}),(0,x.default)(j).call(j,R)<0&&j.push(R),V.className=j.join(" ")}else V.className=R}):this},F.prototype.removeClass=function(R){var I;return R?(0,d.default)(I=this).call(I,function(V){if(V.className){var j=V.className.split(/\s/);j=(0,A.default)(j).call(j,function(z){return!(!(z=(0,b.default)(z).call(z))||z===R)}),V.className=j.join(" ")}}):this},F.prototype.hasClass=function(R){if(!R)return!1;var I=this.elems[0];if(!I.className)return!1;var V=I.className.split(/\s/);return(0,w.default)(V).call(V,R)},F.prototype.css=function(R,I){var V,j;return j=I==""?"":R+":"+I+";",(0,d.default)(V=this).call(V,function(z){var U,G=(0,b.default)(U=z.getAttribute("style")||"").call(U);if(G){var J=P(G);J=(0,y.default)(J).call(J,function(q){return(0,x.default)(q).call(q,R)===0?j:q}),j!=""&&(0,x.default)(J).call(J,j)<0&&J.push(j),j==""&&(J=P(J)),z.setAttribute("style",J.join("; "))}else z.setAttribute("style",j)})},F.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},F.prototype.show=function(){return this.css("display","block")},F.prototype.hide=function(){return this.css("display","none")},F.prototype.children=function(){var R=this.elems[0];return R?L(R.children):null},F.prototype.childNodes=function(){var R=this.elems[0];return R?L(R.childNodes):null},F.prototype.replaceChildAll=function(R){for(var I=this.getNode(),V=this.elems[0];V.hasChildNodes();)I.firstChild&&V.removeChild(I.firstChild);this.append(R)},F.prototype.append=function(R){var I;return(0,d.default)(I=this).call(I,function(V){(0,d.default)(R).call(R,function(j){V.appendChild(j)})})},F.prototype.remove=function(){var R;return(0,d.default)(R=this).call(R,function(I){if(I.remove)I.remove();else{var V=I.parentElement;V&&V.removeChild(I)}})},F.prototype.isContain=function(R){var I=this.elems[0],V=R.elems[0];return I.contains(V)},F.prototype.getNodeName=function(){return this.elems[0].nodeName},F.prototype.getNode=function(R){return R===void 0&&(R=0),this.elems[R]},F.prototype.find=function(R){return L(this.elems[0].querySelectorAll(R))},F.prototype.text=function(R){var I;return R?(0,d.default)(I=this).call(I,function(V){V.innerHTML=R}):this.elems[0].innerHTML.replace(/<[^>]+>/g,function(){return""})},F.prototype.html=function(R){var I=this.elems[0];return R?(I.innerHTML=R,this):I.innerHTML},F.prototype.val=function(){var R,I=this.elems[0];return(0,b.default)(R=I.value).call(R)},F.prototype.focus=function(){var R;return(0,d.default)(R=this).call(R,function(I){I.focus()})},F.prototype.prev=function(){return L(this.elems[0].previousElementSibling)},F.prototype.next=function(){return L(this.elems[0].nextElementSibling)},F.prototype.getNextSibling=function(){return L(this.elems[0].nextSibling)},F.prototype.parent=function(){return L(this.elems[0].parentElement)},F.prototype.parentUntil=function(R,I){var V=I||this.elems[0];if(V.nodeName==="BODY")return null;var j=V.parentElement;return j===null?null:j.matches(R)?L(j):this.parentUntil(R,j)},F.prototype.parentUntilEditor=function(R,I,V){var j=V||this.elems[0];if(L(j).equal(I.$textContainerElem)||L(j).equal(I.$toolbarElem))return null;var z=j.parentElement;return z===null?null:z.matches(R)?L(z):this.parentUntilEditor(R,I,z)},F.prototype.equal=function(R){return R instanceof F?this.elems[0]===R.elems[0]:R instanceof HTMLElement&&this.elems[0]===R},F.prototype.insertBefore=function(R){var I,V=L(R).elems[0];return V?(0,d.default)(I=this).call(I,function(j){var z=V.parentNode;z==null||z.insertBefore(j,V)}):this},F.prototype.insertAfter=function(R){var I,V=L(R).elems[0],j=V&&V.nextSibling;return V?(0,d.default)(I=this).call(I,function(z){var U=V.parentNode;j?U.insertBefore(z,j):U.appendChild(z)}):this},F.prototype.data=function(R,I){if(I==null)return this.dataSource.get(R);this.dataSource.set(R,I)},F.prototype.getNodeTop=function(R){if(this.length<1)return this;var I=this.parent();return R.$textElem.equal(this)||R.$textElem.equal(I)?this:(I.prior=this,I.getNodeTop(R))},F.prototype.getOffsetData=function(){var R=this.elems[0];return{top:R.offsetTop,left:R.offsetLeft,width:R.offsetWidth,height:R.offsetHeight,parent:R.offsetParent}},F.prototype.scrollTop=function(R){this.elems[0].scrollTo({top:R})},F}();function L(){for(var F=[],R=0;R<arguments.length;R++)F[R]=arguments[R];return new((0,E.default)($).apply($,_.__spreadArrays([void 0],F)))}i.DomElement=$,i.default=L},function(r,i,t){r.exports=t(180)},function(r,i,t){var s=t(8),c=t(71).f,f=t(100),d=t(9),y=t(39),b=t(19),p=t(16),x=function(g){var A=function(w,E,_){if(this instanceof g){switch(arguments.length){case 0:return new g;case 1:return new g(w);case 2:return new g(w,E)}return new g(w,E,_)}return g.apply(this,arguments)};return A.prototype=g.prototype,A};r.exports=function(g,A){var w,E,_,D,C,M,T,N,P=g.target,$=g.global,L=g.stat,F=g.proto,R=$?s:L?s[P]:(s[P]||{}).prototype,I=$?d:d[P]||(d[P]={}),V=I.prototype;for(_ in A)w=!f($?_:P+(L?".":"#")+_,g.forced)&&R&&p(R,_),C=I[_],w&&(M=g.noTargetGet?(N=c(R,_))&&N.value:R[_]),D=w&&M?M:A[_],(!w||_typeof(C)!==_typeof(D))&&(T=g.bind&&w?y(D,s):g.wrap&&w?x(D):F&&typeof D=="function"?y(Function.call,D):D,(g.sham||D&&D.sham||C&&C.sham)&&b(T,"sham",!0),I[_]=T,F&&(p(d,E=P+"Prototype")||b(d,E,{}),d[E][_]=D,g.real&&V&&!V[_]&&b(V,_,D)))}},function(r,i,t){var s=t(0),c=s(t(92)),f=s(t(1)),d=s(t(256)),y=s(t(45)),b=s(t(46)),p=s(t(89)),x=s(t(26));(0,f.default)(i,"__esModule",{value:!0}),i.hexToRgb=i.getRandomCode=i.toArray=i.deepClone=i.isFunction=i.debounce=i.throttle=i.arrForEach=i.forEach=i.replaceSpecialSymbol=i.replaceHtmlSymbol=i.getRandom=i.UA=void 0;var g=t(2),A=function(){function R(){this._ua=navigator.userAgent;var I=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(I&&I[1]=="Edge"&&(0,d.default)(I[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return R.prototype.isIE=function(){return"ActiveXObject"in window},R.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},R}();function w(R){var I;return R===void 0&&(R=""),R+(0,y.default)(I=Math.random().toString()).call(I,2)}function E(R){return R.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}function _(R){return R.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')}function D(R,I){for(var V in R)if(Object.prototype.hasOwnProperty.call(R,V)&&I(V,R[V])===!1)break}function C(R,I){var V,j,z=R.length||0;for(V=0;V<z&&(j=R[V],I.call(R,j,V)!==!1);V++);}function M(R,I){I===void 0&&(I=200);var V=!1;return function(){for(var j=this,z=[],U=0;U<arguments.length;U++)z[U]=arguments[U];V||(V=!0,(0,b.default)(function(){V=!1,R.call.apply(R,g.__spreadArrays([j],z))},I))}}function T(R,I){I===void 0&&(I=200);var V=0;return function(){for(var j=this,z=[],U=0;U<arguments.length;U++)z[U]=arguments[U];V&&window.clearTimeout(V),V=(0,b.default)(function(){V=0,R.call.apply(R,g.__spreadArrays([j],z))},I)}}function N(R){return typeof R=="function"}function P(R){if((0,c.default)(R)!=="object"||typeof R=="function"||R===null)return R;var I;for(var V in(0,p.default)(R)&&(I=[]),(0,p.default)(R)||(I={}),R)Object.prototype.hasOwnProperty.call(R,V)&&(I[V]=P(R[V]));return I}function $(R){return(0,y.default)(Array.prototype).call(R)}function L(){var R;return(0,y.default)(R=Math.random().toString(36)).call(R,-5)}function F(R){var I=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(R);if(I==null)return null;var V=(0,x.default)(I).call(I,function(j){return(0,d.default)(j,16)});return"rgb("+V[1]+", "+V[2]+", "+V[3]+")"}i.UA=new A,i.getRandom=w,i.replaceHtmlSymbol=E,i.replaceSpecialSymbol=_,i.forEach=D,i.arrForEach=C,i.throttle=M,i.debounce=T,i.isFunction=N,i.deepClone=P,i.toArray=$,i.getRandomCode=L,i.hexToRgb=F},function(r,i,t){function s(){}(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.EMPTY_P_REGEX=i.EMPTY_P_LAST_REGEX=i.EMPTY_P=i.urlRegex=i.EMPTY_FN=void 0,i.EMPTY_FN=s,i.urlRegex=/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/,i.EMPTY_P='<p data-we-empty-p=""><br></p>',i.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,i.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(r,i,t){(function(s){var c=function(f){return f&&f.Math==Math&&f};r.exports=c((typeof globalThis>"u"?"undefined":_typeof(globalThis))=="object"&&globalThis)||c((typeof window>"u"?"undefined":_typeof(window))=="object"&&window)||c((typeof self>"u"?"undefined":_typeof(self))=="object"&&self)||c(_typeof(s)=="object"&&s)||Function("return this")()}).call(this,t(145))},function(r,i){r.exports={}},function(r,i,t){var s=t(8),c=t(74),f=t(16),d=t(64),y=t(76),b=t(105),p=c("wks"),x=s.Symbol,g=b?x:x&&x.withoutSetter||d;r.exports=function(A){return f(p,A)||(y&&f(x,A)?p[A]=x[A]:p[A]=g("Symbol."+A)),p[A]}},function(r,i){r.exports=function(t){try{return!!t()}catch{return!0}}},function(r,i,t){var s=t(9),c=t(16),f=t(93),d=t(18).f;r.exports=function(y){var b=s.Symbol||(s.Symbol={});c(b,y)||d(b,y,{value:f.f(y)})}},function(r,i){r.exports=function(t){return _typeof(t)==="object"?t!==null:typeof t=="function"}},function(r,i,t){var s=t(11);r.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(r,i,t){var s=t(9);r.exports=function(c){return s[c+"Prototype"]}},function(r,i){var t={}.hasOwnProperty;r.exports=function(s,c){return t.call(s,c)}},function(r,i,t){r.exports=t(192)},function(r,i,t){var s=t(14),c=t(99),f=t(25),d=t(60),y=Object.defineProperty;i.f=s?y:function(b,p,x){if(f(b),p=d(p,!0),f(x),c)try{return y(b,p,x)}catch{}if("get"in x||"set"in x)throw TypeError("Accessors not supported");return"value"in x&&(b[p]=x.value),b}},function(r,i,t){var s=t(14),c=t(18),f=t(48);r.exports=s?function(d,y,b){return c.f(d,y,f(1,b))}:function(d,y,b){return d[y]=b,d}},function(r,i,t){var s,c=function(){return typeof s>"u"&&(s=!!(window&&document&&document.all&&!window.atob)),s},f=function(){var C={};return function(M){if(typeof C[M]>"u"){var T=document.querySelector(M);if(window.HTMLIFrameElement&&T instanceof window.HTMLIFrameElement)try{T=T.contentDocument.head}catch{T=null}C[M]=T}return C[M]}}(),d=[];function y(C){for(var M=-1,T=0;T<d.length;T++)if(d[T].identifier===C){M=T;break}return M}function b(C,M){for(var T={},N=[],P=0;P<C.length;P++){var $=C[P],L=M.base?$[0]+M.base:$[0],F=T[L]||0,R="".concat(L," ").concat(F);T[L]=F+1;var I=y(R),V={css:$[1],media:$[2],sourceMap:$[3]};I!==-1?(d[I].references++,d[I].updater(V)):d.push({identifier:R,updater:D(V,M),references:1}),N.push(R)}return N}function p(C){var M=document.createElement("style"),T=C.attributes||{};if(typeof T.nonce>"u"){var N=t.nc;N&&(T.nonce=N)}if(Object.keys(T).forEach(function($){M.setAttribute($,T[$])}),typeof C.insert=="function")C.insert(M);else{var P=f(C.insert||"head");if(!P)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");P.appendChild(M)}return M}function x(C){if(C.parentNode===null)return!1;C.parentNode.removeChild(C)}var g=function(){var C=[];return function(M,T){return C[M]=T,C.filter(Boolean).join(`
  35. `)}}();function A(C,M,T,N){var P=T?"":N.media?"@media ".concat(N.media," {").concat(N.css,"}"):N.css;if(C.styleSheet)C.styleSheet.cssText=g(M,P);else{var $=document.createTextNode(P),L=C.childNodes;L[M]&&C.removeChild(L[M]),L.length?C.insertBefore($,L[M]):C.appendChild($)}}function w(C,M,T){var N=T.css,P=T.media,$=T.sourceMap;if(P?C.setAttribute("media",P):C.removeAttribute("media"),$&&typeof btoa<"u"&&(N+=`
  36. /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify($))))," */")),C.styleSheet)C.styleSheet.cssText=N;else{for(;C.firstChild;)C.removeChild(C.firstChild);C.appendChild(document.createTextNode(N))}}var E=null,_=0;function D(C,M){var T,N,P;if(M.singleton){var $=_++;T=E||(E=p(M)),N=A.bind(null,T,$,!1),P=A.bind(null,T,$,!0)}else T=p(M),N=w.bind(null,T,M),P=function(){x(T)};return N(C),function(L){if(L){if(L.css===C.css&&L.media===C.media&&L.sourceMap===C.sourceMap)return;N(C=L)}else P()}}r.exports=function(C,M){!(M=M||{}).singleton&&typeof M.singleton!="boolean"&&(M.singleton=c());var T=b(C=C||[],M);return function(N){if(N=N||[],Object.prototype.toString.call(N)==="[object Array]"){for(var P=0;P<T.length;P++){var $=y(T[P]);d[$].references--}for(var L=b(N,M),F=0;F<T.length;F++){var R=y(T[F]);d[R].references===0&&(d[R].updater(),d.splice(R,1))}T=L}}}},function(r,i,t){function s(f,d){var y=f[1]||"",b=f[3];if(!b)return y;if(d&&typeof btoa=="function"){var p=c(b),x=b.sources.map(function(g){return"/*# sourceURL=".concat(b.sourceRoot||"").concat(g," */")});return[y].concat(x).concat([p]).join(`
  37. `)}return[y].join(`
  38. `)}function c(f){var d=btoa(unescape(encodeURIComponent(JSON.stringify(f)))),y="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(d);return"/*# ".concat(y," */")}r.exports=function(f){var d=[];return d.toString=function(){return this.map(function(y){var b=s(y,f);return y[2]?"@media ".concat(y[2]," {").concat(b,"}"):b}).join("")},d.i=function(y,b,p){typeof y=="string"&&(y=[[null,y,""]]);var x={};if(p)for(var g=0;g<this.length;g++){var A=this[g][0];A!=null&&(x[A]=!0)}for(var w=0;w<y.length;w++){var E=[].concat(y[w]);p&&x[E[0]]||(b&&(E[2]?E[2]="".concat(b," and ").concat(E[2]):E[2]=b),d.push(E))}},d}},function(r,i,t){var s=t(14),c=t(11),f=t(16),d=Object.defineProperty,y={},b=function(p){throw p};r.exports=function(p,x){if(f(y,p))return y[p];x||(x={});var g=[][p],A=!!f(x,"ACCESSORS")&&x.ACCESSORS,w=f(x,0)?x[0]:b,E=f(x,1)?x[1]:void 0;return y[p]=!!g&&!c(function(){if(A&&!s)return!0;var _={length:-1};A?d(_,1,{enumerable:!0,get:b}):_[1]=1,g.call(_,w,E)})}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=function(f){function d(y,b){return f.call(this,y,b)||this}return s.__extends(d,f),d}(s.__importDefault(t(95)).default);i.default=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(46));(0,c.default)(i,"__esModule",{value:!0});var y=t(2),b=y.__importDefault(t(3)),p=y.__importDefault(t(95)),x=y.__importDefault(t(133)),g=function(A){function w(E,_,D){var C=A.call(this,E,_)||this;D.title=_.i18next.t("menus.dropListMenu."+D.title);var M,T=_.config.lang==="zh-CN"?"":"w-e-drop-list-tl";T!==""&&D.type==="list"&&(0,f.default)(M=D.list).call(M,function(P){var $=P.$elem,L=b.default($.children());if(L.length>0){var F=L==null?void 0:L.getNodeName();F&&F==="I"&&$.addClass(T)}});var N=new x.default(C,D);return C.dropList=N,E.on("click",function(){var P;_.selection.getRange()!=null&&(E.css("z-index",_.zIndex.get("menu")),(0,f.default)(P=_.txt.eventHooks.dropListMenuHoverEvents).call(P,function($){return $()}),N.show())}).on("mouseleave",function(){E.css("z-index","auto"),N.hideTimeoutId=(0,d.default)(function(){N.hide()})}),C}return y.__extends(w,A),w}(p.default);i.default=g},function(r,i,t){var s=t(13);r.exports=function(c){if(!s(c))throw TypeError(String(c)+" is not an object");return c}},function(r,i,t){r.exports=t(188)},function(r,i,t){r.exports=t(201)},function(r,i,t){var s=t(72),c=t(49);r.exports=function(f){return s(c(f))}},function(r,i,t){var s=t(49);r.exports=function(c){return Object(s(c))}},function(r,i,t){var s=t(39),c=t(72),f=t(29),d=t(34),y=t(88),b=[].push,p=function(x){var g=x==1,A=x==2,w=x==3,E=x==4,_=x==6,D=x==5||_;return function(C,M,T,N){for(var P,$,L=f(C),F=c(L),R=s(M,T,3),I=d(F.length),V=0,j=N||y,z=g?j(C,I):A?j(C,0):void 0;I>V;V++)if((D||V in F)&&($=R(P=F[V],V,L),x)){if(g)z[V]=$;else if($)switch(x){case 3:return!0;case 5:return P;case 6:return V;case 2:b.call(z,P)}else if(E)return!1}return _?-1:w||E?E:z}};r.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},function(r,i,t){r.exports=t(283)},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(31)),y=s(t(131));(0,c.default)(i,"__esModule",{value:!0});var b=t(2),p=b.__importDefault(t(3)),x=t(7),g=function(){function A(w,E){this.menu=w,this.conf=E,this.$container=p.default('<div class="w-e-panel-container"></div>');var _=w.editor;_.txt.eventHooks.clickEvents.push(A.hideCurAllPanels),_.txt.eventHooks.toolbarClickEvents.push(A.hideCurAllPanels),_.txt.eventHooks.dropListMenuHoverEvents.push(A.hideCurAllPanels)}return A.prototype.create=function(){var w=this,E=this.menu;if(!A.createdMenus.has(E)){var _=this.conf,D=this.$container,C=_.width||300,M=E.editor.$toolbarElem.getBoundingClientRect(),T=E.$elem.getBoundingClientRect(),N=M.height+M.top-T.top,P=(M.width-C)/2+M.left-T.left,$=300;Math.abs(P)>$&&(P=T.left<document.documentElement.clientWidth/2?-T.width/2:-C+T.width/2),D.css("width",C+"px").css("margin-top",N+"px").css("margin-left",P+"px").css("z-index",E.editor.zIndex.get("panel"));var L=p.default('<i class="w-e-icon-close w-e-panel-close"></i>');D.append(L),L.on("click",function(){w.remove()});var F=p.default('<ul class="w-e-panel-tab-title"></ul>'),R=p.default('<div class="w-e-panel-tab-content"></div>');D.append(F).append(R);var I=_.height;I&&R.css("height",I+"px").css("overflow-y","auto");var V=_.tabs||[],j=[],z=[];(0,f.default)(V).call(V,function(G,J){if(G){var q=G.title||"",ee=G.tpl||"",te=p.default('<li class="w-e-item">'+q+"</li>");F.append(te);var ce=p.default(ee);R.append(ce),j.push(te),z.push(ce),J===0?(te.data("active",!0),te.addClass("w-e-active")):ce.hide(),te.on("click",function(){te.data("active")||((0,f.default)(j).call(j,function(be){be.data("active",!1),be.removeClass("w-e-active")}),(0,f.default)(z).call(z,function(be){be.hide()}),te.data("active",!0),te.addClass("w-e-active"),ce.show())})}}),D.on("click",function(G){G.stopPropagation()}),E.$elem.append(D),(0,f.default)(V).call(V,function(G,J){if(G){var q=G.events||[];(0,f.default)(q).call(q,function(ee){var te,ce=ee.selector,be=ee.type,pe=ee.fn||x.EMPTY_FN,oe=z[J],se=(te=ee.bindEnter)!==null&&te!==void 0&&te,re=function(he){return b.__awaiter(w,void 0,void 0,function(){return b.__generator(this,function(ke){switch(ke.label){case 0:return he.stopPropagation(),[4,pe(he)];case 1:return ke.sent()&&this.remove(),[2]}})})};(0,d.default)(oe).call(oe,ce).on(be,re),se&&be==="click"&&oe.on("keyup",function(he){he.keyCode==13&&re(he)})})}});var U=(0,d.default)(D).call(D,"input[type=text],textarea");U.length&&U.get(0).focus(),A.hideCurAllPanels(),E.setPanel(this),A.createdMenus.add(E)}},A.prototype.remove=function(){var w=this.menu,E=this.$container;E&&E.remove(),A.createdMenus.delete(w)},A.hideCurAllPanels=function(){var w;A.createdMenus.size!==0&&(0,f.default)(w=A.createdMenus).call(w,function(E){var _=E.panel;_&&_.remove()})},A.createdMenus=new y.default,A}();i.default=g},function(r,i){var t={}.toString;r.exports=function(s){return t.call(s).slice(8,-1)}},function(r,i,t){var s=t(62),c=Math.min;r.exports=function(f){return f>0?c(s(f),9007199254740991):0}},function(r,i,t){var s=t(9),c=t(8),f=function(d){return typeof d=="function"?d:void 0};r.exports=function(d,y){return arguments.length<2?f(s[d])||f(c[d]):s[d]&&s[d][y]||c[d]&&c[d][y]}},function(r,i,t){var s=t(81),c=t(18).f,f=t(19),d=t(16),y=t(170),b=t(10)("toStringTag");r.exports=function(p,x,g,A){if(p){var w=g?p:p.prototype;d(w,b)||c(w,b,{configurable:!0,value:x}),A&&!s&&f(w,"toString",y)}}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=function(f){function d(y,b){return f.call(this,y,b)||this}return s.__extends(d,f),d.prototype.setPanel=function(y){this.panel=y},d}(s.__importDefault(t(95)).default);i.default=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(57));(0,c.default)(i,"__esModule",{value:!0});var y=t(2).__importDefault(t(3)),b=function(){function p(x,g,A){this.editor=x,this.$targetElem=g,this.conf=A,this._show=!1,this._isInsertTextContainer=!1;var w=y.default("<div></div>");w.addClass("w-e-tooltip"),this.$container=w}return p.prototype.getPositionData=function(){var x=this.$container,g=0,A=0,w=20,E=document.documentElement.scrollTop,_=this.$targetElem.getBoundingClientRect(),D=this.editor.$textElem.getBoundingClientRect(),C=this.$targetElem.getOffsetData(),M=y.default(C.parent),T=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=M.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var N=M.getBoundingClientRect().height,P=C.top,$=C.left,L=C.height,F=P-T;F>w+5?(g=F-w-15,x.addClass("w-e-tooltip-up")):F+L+w<N?(g=F+L+10,x.addClass("w-e-tooltip-down")):(g=(F>0?F:0)+w+10,x.addClass("w-e-tooltip-down")),A=$<0?0:$}else _.top<w||_.top-D.top<w?(g=_.bottom+E+5,x.addClass("w-e-tooltip-down")):(g=_.top+E-w-15,x.addClass("w-e-tooltip-up")),A=_.left<0?0:_.left;return{top:g,left:A}},p.prototype.appendMenus=function(){var x=this,g=this.conf,A=this.editor,w=this.$targetElem,E=this.$container;(0,f.default)(g).call(g,function(_,D){var C=_.$elem,M=y.default("<div></div>");M.addClass("w-e-tooltip-item-wrapper "),M.append(C),E.append(M),C.on("click",function(T){T.preventDefault(),_.onClick(A,w)&&x.remove()})})},p.prototype.create=function(){var x,g,A=this.editor,w=this.$container;this.appendMenus();var E=this.getPositionData(),_=E.top,D=E.left;w.css("top",_+"px"),w.css("left",D+"px"),w.css("z-index",A.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(w):y.default("body").append(w),this._show=!0,A.beforeDestroy((0,d.default)(x=this.remove).call(x,this)),A.txt.eventHooks.onBlurEvents.push((0,d.default)(g=this.remove).call(g,this))},p.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,c.default)(p.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),p}();i.default=b},function(r,i,t){var s=t(40);r.exports=function(c,f,d){if(s(c),f===void 0)return c;switch(d){case 0:return function(){return c.call(f)};case 1:return function(y){return c.call(f,y)};case 2:return function(y,b){return c.call(f,y,b)};case 3:return function(y,b,p){return c.call(f,y,b,p)}}return function(){return c.apply(f,arguments)}}},function(r,i){r.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},function(r,i,t){var s,c,f,d=t(165),y=t(8),b=t(13),p=t(19),x=t(16),g=t(63),A=t(51),w=y.WeakMap,E=function(P){return f(P)?c(P):s(P,{})},_=function(P){return function($){var L;if(!b($)||(L=c($)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return L}};if(d){var D=new w,C=D.get,M=D.has,T=D.set;s=function(P,$){return T.call(D,P,$),$},c=function(P){return C.call(D,P)||{}},f=function(P){return M.call(D,P)}}else{var N=g("state");A[N]=!0,s=function(P,$){return p(P,N,$),$},c=function(P){return x(P,N)?P[N]:{}},f=function(P){return x(P,N)}}r.exports={set:s,get:c,has:f,enforce:E,getterFor:_}},function(r,i){r.exports=!0},function(r,i){r.exports={}},function(r,i,t){r.exports=t(213)},function(r,i,t){r.exports=t(261)},function(r,i,t){r.exports=t(265)},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0}),i.createElementFragment=i.createDocumentFragment=i.createElement=i.insertBefore=i.getEndPoint=i.getStartPoint=i.updateRange=i.filterSelectionNodes=void 0;var d=t(2),y=t(137),b=d.__importDefault(t(3));function p(C){var M=[];return(0,f.default)(C).call(C,function(T){var N=T.getNodeName();if(N!==y.ListType.OrderedList&&N!==y.ListType.UnorderedList)M.push(T);else if(T.prior)M.push(T.prior);else{var P=T.children();P==null||(0,f.default)(P).call(P,function($){M.push(b.default($))})}}),M}function x(C,M,T){var N=C.selection,P=document.createRange();M.length>1?(P.setStart(M.elems[0],0),P.setEnd(M.elems[M.length-1],M.elems[M.length-1].childNodes.length)):P.selectNodeContents(M.elems[0]),T&&P.collapse(!1),N.saveRange(P),N.restoreSelection()}function g(C){var M;return C.prior?C.prior:b.default((M=C.children())===null||M===void 0?void 0:M.elems[0])}function A(C){var M;return C.prior?C.prior:b.default((M=C.children())===null||M===void 0?void 0:M.last().elems[0])}function w(C,M,T){T===void 0&&(T=null),C.parent().elems[0].insertBefore(M,T)}function E(C){return document.createElement(C)}function _(){return document.createDocumentFragment()}function D(C,M,T){return T===void 0&&(T="li"),(0,f.default)(C).call(C,function(N){var P=E(T);P.innerHTML=N.html(),M.appendChild(P),N.remove()}),M}i.filterSelectionNodes=p,i.updateRange=x,i.getStartPoint=g,i.getEndPoint=A,i.insertBefore=w,i.createElement=E,i.createDocumentFragment=_,i.createElementFragment=D},function(r,i){r.exports=function(t,s){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:s}}},function(r,i){r.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(r,i,t){var s=t(164).charAt,c=t(41),f=t(75),d="String Iterator",y=c.set,b=c.getterFor(d);f(String,"String",function(p){y(this,{type:d,string:String(p),index:0})},function(){var p,x=b(this),g=x.string,A=x.index;return A>=g.length?{value:void 0,done:!0}:(p=s(g,A),x.index+=p.length,{value:p,done:!1})})},function(r,i){r.exports={}},function(r,i,t){var s=t(106),c=t(80);r.exports=Object.keys||function(f){return s(f,c)}},function(r,i,t){var s=t(19);r.exports=function(c,f,d,y){y&&y.enumerable?c[f]=d:s(c,f,d)}},function(r,i,t){t(173);var s=t(174),c=t(8),f=t(65),d=t(19),y=t(43),b=t(10)("toStringTag");for(var p in s){var x=c[p],g=x&&x.prototype;g&&f(g)!==b&&d(g,b,p),y[p]=y.Array}},function(r,i,t){var s=t(33);r.exports=Array.isArray||function(c){return s(c)=="Array"}},function(r,i,t){var s=t(11),c=t(10),f=t(86),d=c("species");r.exports=function(y){return f>=51||!s(function(){var b=[];return(b.constructor={})[d]=function(){return{foo:1}},b[y](Boolean).foo!==1})}},function(r,i,t){r.exports=t(222)},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.ListHandle=void 0;var s=t(2).__importDefault(t(373)),c=function(){function f(d){this.options=d,this.selectionRangeElem=new s.default}return f}();i.ListHandle=c},function(r,i,t){var s={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f=c&&!s.call({1:2},1);i.f=f?function(d){var y=c(this,d);return!!y&&y.enumerable}:s},function(r,i,t){var s=t(13);r.exports=function(c,f){if(!s(c))return c;var d,y;if(f&&typeof(d=c.toString)=="function"&&!s(y=d.call(c))||typeof(d=c.valueOf)=="function"&&!s(y=d.call(c))||!f&&typeof(d=c.toString)=="function"&&!s(y=d.call(c)))return y;throw TypeError("Can't convert object to primitive value")}},function(r,i){},function(r,i){var t=Math.ceil,s=Math.floor;r.exports=function(c){return isNaN(c=+c)?0:(c>0?s:t)(c)}},function(r,i,t){var s=t(74),c=t(64),f=s("keys");r.exports=function(d){return f[d]||(f[d]=c(d))}},function(r,i){var t=0,s=Math.random();r.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++t+s).toString(36)}},function(r,i,t){var s=t(81),c=t(33),f=t(10)("toStringTag"),d=c(function(){return arguments}())=="Arguments",y=function(b,p){try{return b[p]}catch{}};r.exports=s?c:function(b){var p,x,g;return b===void 0?"Undefined":b===null?"Null":typeof(x=y(p=Object(b),f))=="string"?x:d?c(p):(g=c(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},function(r,i,t){var s=t(25),c=t(111),f=t(34),d=t(39),y=t(112),b=t(113),p=function(x,g){this.stopped=x,this.result=g};(r.exports=function(x,g,A,w,E){var _,D,C,M,T,N,P,$=d(g,A,w?2:1);if(E)_=x;else{if(typeof(D=y(x))!="function")throw TypeError("Target is not iterable");if(c(D)){for(C=0,M=f(x.length);M>C;C++)if((T=w?$(s(P=x[C])[0],P[1]):$(x[C]))&&T instanceof p)return T;return new p(!1)}_=D.call(x)}for(N=_.next;!(P=N.call(_)).done;)if(_typeof(T=b(_,$,P.value,w))=="object"&&T&&T instanceof p)return T;return new p(!1)}).stop=function(x){return new p(!0,x)}},function(r,i,t){var s=t(11);r.exports=function(c,f){var d=[][c];return!!d&&s(function(){d.call(null,f||function(){throw 1},1)})}},function(r,i){r.exports=`
  39. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(r,i,t){var s=t(60),c=t(18),f=t(48);r.exports=function(d,y,b){var p=s(y);p in d?c.f(d,p,f(0,b)):d[p]=b}},function(r,i,t){r.exports=t(209)},function(r,i,t){var s=t(14),c=t(59),f=t(48),d=t(28),y=t(60),b=t(16),p=t(99),x=Object.getOwnPropertyDescriptor;i.f=s?x:function(g,A){if(g=d(g),A=y(A,!0),p)try{return x(g,A)}catch{}if(b(g,A))return f(!c.f.call(g,A),g[A])}},function(r,i,t){var s=t(11),c=t(33),f="".split;r.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return c(d)=="String"?f.call(d,""):Object(d)}:Object},function(r,i,t){var s=t(8),c=t(13),f=s.document,d=c(f)&&c(f.createElement);r.exports=function(y){return d?f.createElement(y):{}}},function(r,i,t){var s=t(42),c=t(102);(r.exports=function(f,d){return c[f]||(c[f]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.4",mode:s?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(r,i,t){var s=t(5),c=t(167),f=t(104),d=t(171),y=t(36),b=t(19),p=t(53),x=t(10),g=t(42),A=t(43),w=t(103),E=w.IteratorPrototype,_=w.BUGGY_SAFARI_ITERATORS,D=x("iterator"),C="keys",M="values",T="entries",N=function(){return this};r.exports=function(P,$,L,F,R,I,V){c(L,$,F);var j,z,U,G=function(pe){if(pe===R&&ce)return ce;if(!_&&pe in ee)return ee[pe];switch(pe){case C:case M:case T:return function(){return new L(this,pe)}}return function(){return new L(this)}},J=$+" Iterator",q=!1,ee=P.prototype,te=ee[D]||ee["@@iterator"]||R&&ee[R],ce=!_&&te||G(R),be=$=="Array"&&ee.entries||te;if(be&&(j=f(be.call(new P)),E!==Object.prototype&&j.next&&(!g&&f(j)!==E&&(d?d(j,E):typeof j[D]!="function"&&b(j,D,N)),y(j,J,!0,!0),g&&(A[J]=N))),R==M&&te&&te.name!==M&&(q=!0,ce=function(){return te.call(this)}),(!g||V)&&ee[D]!==ce&&b(ee,D,ce),A[$]=ce,R)if(z={values:G(M),keys:I?ce:G(C),entries:G(T)},V)for(U in z)(_||q||!(U in ee))&&p(ee,U,z[U]);else s({target:$,proto:!0,forced:_||q},z);return z}},function(r,i,t){var s=t(11);r.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},function(r,i,t){var s,c=t(25),f=t(169),d=t(80),y=t(51),b=t(107),p=t(73),x=t(63),g=">",A="<",w="prototype",E="script",_=x("IE_PROTO"),D=function(){},C=function(P){return A+E+g+P+A+"/"+E+g},M=function(P){P.write(C("")),P.close();var $=P.parentWindow.Object;return P=null,$},T=function(){var P,$=p("iframe"),L="java"+E+":";return $.style.display="none",b.appendChild($),$.src=String(L),(P=$.contentWindow.document).open(),P.write(C("document.F=Object")),P.close(),P.F},N=function(){try{s=document.domain&&new ActiveXObject("htmlfile")}catch{}N=s?M(s):T();for(var P=d.length;P--;)delete N[w][d[P]];return N()};y[_]=!0,r.exports=Object.create||function(P,$){var L;return P!==null?(D[w]=c(P),L=new D,D[w]=null,L[_]=P):L=N(),$===void 0?L:f(L,$)}},function(r,i,t){var s=t(28),c=t(34),f=t(79),d=function(y){return function(b,p,x){var g,A=s(b),w=c(A.length),E=f(x,w);if(y&&p!=p){for(;w>E;)if((g=A[E++])!=g)return!0}else for(;w>E;E++)if((y||E in A)&&A[E]===p)return y||E||0;return!y&&-1}};r.exports={includes:d(!0),indexOf:d(!1)}},function(r,i,t){var s=t(62),c=Math.max,f=Math.min;r.exports=function(d,y){var b=s(d);return b<0?c(b+y,0):f(b,y)}},function(r,i){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,i,t){var s={};s[t(10)("toStringTag")]="z",r.exports=String(s)==="[object z]"},function(r,i){r.exports=function(){}},function(r,i){r.exports=function(t,s,c){if(!(t instanceof s))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return t}},function(r,i,t){var s=t(35);r.exports=s("navigator","userAgent")||""},function(r,i,t){var s=t(40),c=function(f){var d,y;this.promise=new f(function(b,p){if(d!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");d=b,y=p}),this.resolve=s(d),this.reject=s(y)};r.exports.f=function(f){return new c(f)}},function(r,i,t){var s,c,f=t(8),d=t(84),y=f.process,b=y&&y.versions,p=b&&b.v8;p?c=(s=p.split("."))[0]+s[1]:d&&(!(s=d.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=d.match(/Chrome\/(\d+)/))&&(c=s[1]),r.exports=c&&+c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=t(6),p=d.__importDefault(t(267)),x=d.__importDefault(t(280)),g=d.__importDefault(t(281)),A=d.__importDefault(t(282)),w=d.__importDefault(t(301)),E=d.__importStar(t(416)),_=d.__importDefault(t(417)),D=d.__importDefault(t(418)),C=d.__importDefault(t(419)),M=d.__importStar(t(420)),T=d.__importDefault(t(423)),N=d.__importDefault(t(424)),P=d.__importDefault(t(425)),$=d.__importDefault(t(427)),L=d.__importDefault(t(437)),F=d.__importDefault(t(440)),R=d.__importStar(t(441)),I=d.__importDefault(t(23)),V=d.__importDefault(t(133)),j=d.__importDefault(t(24)),z=d.__importDefault(t(32)),U=d.__importDefault(t(37)),G=d.__importDefault(t(38)),J=1,q=function(){function ee(te,ce){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+J++,this.toolbarSelector=te,this.textSelector=ce,E.selectorValidator(this),this.config=b.deepClone(p.default),this.$toolbarElem=y.default("<div></div>"),this.$textContainerElem=y.default("<div></div>"),this.$textElem=y.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new x.default(this),this.cmd=new g.default(this),this.txt=new A.default(this),this.menus=new w.default(this),this.zIndex=new N.default,this.change=new P.default(this),this.history=new $.default(this),this.onSelectionChange=new F.default(this);var be=L.default(this),pe=be.disable,oe=be.enable;this.disable=pe,this.enable=oe,this.isEnable=!0}return ee.prototype.initSelection=function(te){_.default(this,te)},ee.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),C.default(this),E.default(this),this.txt.init(),this.menus.init(),M.default(this),this.initSelection(!0),D.default(this),this.change.observe(),this.history.observe(),R.default(this)},ee.prototype.beforeDestroy=function(te){return this.beforeDestroyHooks.push(te),this},ee.prototype.destroy=function(){var te,ce=this;(0,f.default)(te=this.beforeDestroyHooks).call(te,function(be){return be.call(ce)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},ee.prototype.fullScreen=function(){M.setFullScreen(this)},ee.prototype.unFullScreen=function(){M.setUnFullScreen(this)},ee.prototype.scrollToHead=function(te){T.default(this,te)},ee.registerMenu=function(te,ce){!ce||typeof ce!="function"||(ee.globalCustomMenuConstructorList[te]=ce)},ee.prototype.registerPlugin=function(te,ce){R.registerPlugin(te,ce,this.pluginsFunctionList)},ee.registerPlugin=function(te,ce){R.registerPlugin(te,ce,ee.globalPluginsFunctionList)},ee.$=y.default,ee.BtnMenu=I.default,ee.DropList=V.default,ee.DropListMenu=j.default,ee.Panel=z.default,ee.PanelMenu=U.default,ee.Tooltip=G.default,ee.globalCustomMenuConstructorList={},ee.globalPluginsFunctionList={},ee}();i.default=q},function(r,i,t){var s=t(13),c=t(55),f=t(10)("species");r.exports=function(d,y){var b;return c(d)&&(typeof(b=d.constructor)!="function"||b!==Array&&!c(b.prototype)?s(b)&&(b=b[f])===null&&(b=void 0):b=void 0),new(b===void 0?Array:b)(y===0?0:y)}},function(r,i,t){r.exports=t(185)},function(r,i,t){var s=t(49),c="["+t(68)+"]",f=RegExp("^"+c+c+"*"),d=RegExp(c+c+"*$"),y=function(b){return function(p){var x=String(s(p));return 1&b&&(x=x.replace(f,"")),2&b&&(x=x.replace(d,"")),x}};r.exports={start:y(1),end:y(2),trim:y(3)}},function(r,i,t){r.exports=t(205)},function(r,i,t){var s=t(227),c=t(230);function f(d){return r.exports=f=typeof c=="function"&&typeof s=="symbol"?function(y){return typeof y}:function(y){return y&&typeof c=="function"&&y.constructor===c&&y!==c.prototype?"symbol":typeof y},f(d)}r.exports=f},function(r,i,t){var s=t(10);i.f=s},function(r,i,t){r.exports=t(306)},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(32)),y=function(){function b(p,x){var g=this;this.$elem=p,this.editor=x,this._active=!1,p.on("click",function(A){var w;d.default.hideCurAllPanels(),(0,f.default)(w=x.txt.eventHooks.menuClickEvents).call(w,function(E){return E()}),A.stopPropagation(),x.selection.getRange()!=null&&g.clickHandler(A)})}return b.prototype.clickHandler=function(p){},b.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},b.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,c.default)(b.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),b}();i.default=y},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(57)),d=s(t(4)),y=s(t(27));(0,c.default)(i,"__esModule",{value:!0});var b=t(2),p=t(6),x=b.__importDefault(t(135)),g=b.__importDefault(t(136)),A=function(){function w(E){this.editor=E}return w.prototype.insertImg=function(E,_,D){var C=this.editor,M=C.config,T="validate.",N=function(F,R){return R===void 0&&(R=T),C.i18next.t(R+F)},P=_?'alt="'+_+'" ':"",$=D?'data-href="'+encodeURIComponent(D)+'" ':"";C.cmd.do("insertHTML",'<img src="'+E+'" '+P+$+'style="max-width:100%;" contenteditable="false"/>'),M.linkImgCallback(E,_,D);var L=document.createElement("img");L.onload=function(){L=null},L.onerror=function(){M.customAlert(N("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+N("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+N("\u56FE\u7247\u94FE\u63A5")+' "'+E+'"\uFF0C'+N("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),L=null},L.onabort=function(){return L=null},L.src=E},w.prototype.uploadImg=function(E){var _=this;if(E.length){var D=this.editor,C=D.config,M="validate.",T=function(se){return D.i18next.t(M+se)},N=C.uploadImgServer,P=C.uploadImgShowBase64,$=C.uploadImgMaxSize,L=$/1024/1024,F=C.uploadImgMaxLength,R=C.uploadFileName,I=C.uploadImgParams,V=C.uploadImgParamsWithUrl,j=C.uploadImgHeaders,z=C.uploadImgHooks,U=C.uploadImgTimeout,G=C.withCredentials,J=C.customUploadImg;if(J||N||P){var q,ee=[],te=[];if(p.arrForEach(E,function(se){if(se){var re=se.name||se.type.replace("/","."),he=se.size;if(re&&he){var ke=D.config.uploadImgAccept.join("|");if(new RegExp(".("+ke+")$","i").test(re)===!1)return void te.push("\u3010"+re+"\u3011"+T("\u4E0D\u662F\u56FE\u7247"));if($<he)return void te.push("\u3010"+re+"\u3011"+T("\u5927\u4E8E")+" "+L+"M");ee.push(se)}}}),te.length)return void C.customAlert(T("\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
  40. `+te.join(`
  41. `),"warning");if(ee.length===0)return void C.customAlert(T("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");if(ee.length>F)return void C.customAlert(T("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+F+T("\u5F20\u56FE\u7247"),"warning");if(J&&typeof J=="function")return void J(ee,(0,f.default)(q=this.insertImg).call(q,this));var ce=new FormData;if((0,d.default)(ee).call(ee,function(se,re){var he=R||se.name;ee.length>1&&(he+=re+1),ce.append(he,se)}),N){var be=N.split("#");N=be[0];var pe=be[1]||"";(0,d.default)(p).call(p,I,function(se,re){V&&((0,y.default)(N).call(N,"?")>0?N+="&":N+="?",N=N+se+"="+re),ce.append(se,re)}),pe&&(N+="#"+pe);var oe=x.default(N,{timeout:U,formData:ce,headers:j,withCredentials:!!G,beforeSend:function(se){if(z.before)return z.before(se,D,ee)},onTimeout:function(se){C.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),z.timeout&&z.timeout(se,D)},onProgress:function(se,re){var he=new g.default(D);re.lengthComputable&&(se=re.loaded/re.total,he.show(se))},onError:function(se){C.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",T("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+T("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+se.status),z.error&&z.error(se,D)},onFail:function(se,re){C.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",T("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+T("\u8FD4\u56DE\u7ED3\u679C")+": "+re),z.fail&&z.fail(se,D,re)},onSuccess:function(se,re){if(z.customInsert){var he;z.customInsert((0,f.default)(he=_.insertImg).call(he,_),re,D)}else{if(re.errno!="0")return C.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",T("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+T("\u8FD4\u56DE\u7ED3\u679C")+" errno="+re.errno),void(z.fail&&z.fail(se,D,re));var ke=re.data;(0,d.default)(ke).call(ke,function(Ne){typeof Ne=="string"?_.insertImg(Ne):_.insertImg(Ne.url,Ne.alt,Ne.href)}),z.success&&z.success(se,D,re)}}});return void(typeof oe=="string"&&C.customAlert(oe,"error"))}P&&p.arrForEach(E,function(se){var re=_,he=new FileReader;he.readAsDataURL(se),he.onload=function(){if(this.result){var ke=this.result.toString();re.insertImg(ke,ke)}}})}}},w}();i.default=A},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(410)),d=s(t(4)),y=s(t(45));function b(w){return!!w.length&&w.attr("class")==="w-e-todo"}function p(w){var E=w.selection.getSelectionRangeTopNodes();if(E.length!==0)return(0,f.default)(E).call(E,function(_){return b(_)})}function x(w,E,_){var D;if(w.hasChildNodes()){var C=w.cloneNode(),M=!1;E.nodeValue===""&&(M=!0);var T=[];return(0,d.default)(D=w.childNodes).call(D,function(N){if(!g(N,E)&&M&&(C.appendChild(N.cloneNode(!0)),N.nodeName!=="BR"&&T.push(N)),g(N,E)){if(N.nodeType===1){var P=x(N,E,_);P&&P.textContent!==""&&(C==null||C.appendChild(P))}if(N.nodeType===3&&E.isEqualNode(N)){var $=A(N,_);C.textContent=$}M=!0}}),(0,d.default)(T).call(T,function(N){N.remove()}),C}}function g(w,E){return w.nodeType===3?w.nodeValue===E.nodeValue:w.contains(E)}function A(w,E,_){_===void 0&&(_=!0);var D=w.nodeValue,C=D==null?void 0:(0,y.default)(D).call(D,0,E);if(D=D==null?void 0:(0,y.default)(D).call(D,E),!_){var M=D;D=C,C=M}return w.nodeValue=C,D}(0,c.default)(i,"__esModule",{value:!0}),i.dealTextNode=i.isAllTodo=i.isTodo=i.getCursorNextNode=void 0,i.isTodo=b,i.isAllTodo=p,i.getCursorNextNode=x,i.dealTextNode=A},function(r,i,t){var s=t(0)(t(1));(0,s.default)(i,"__esModule",{value:!0});var c=t(430),f=function(){function d(y){this.maxSize=y,this.isRe=!1,this.data=new c.CeilStack(y),this.revokeData=new c.CeilStack(y)}return(0,s.default)(d.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),d.prototype.resetMaxSize=function(y){this.data.resetMax(y),this.revokeData.resetMax(y)},d.prototype.save=function(y){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(y),this},d.prototype.revoke=function(y){!this.isRe&&(this.isRe=!0);var b=this.data.outstack();return!!b&&(this.revokeData.instack(b),y(b),!0)},d.prototype.restore=function(y){!this.isRe&&(this.isRe=!0);var b=this.revokeData.outstack();return!!b&&(this.data.instack(b),y(b),!0)},d}();i.default=f},function(r,i,t){var s=t(14),c=t(11),f=t(73);r.exports=!s&&!c(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},function(r,i,t){var s=t(11),c=/#|\.prototype\./,f=function(x,g){var A=y[d(x)];return A==p||A!=b&&(typeof g=="function"?s(g):!!g)},d=f.normalize=function(x){return String(x).replace(c,".").toLowerCase()},y=f.data={},b=f.NATIVE="N",p=f.POLYFILL="P";r.exports=f},function(r,i,t){var s=t(102),c=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(f){return c.call(f)}),r.exports=s.inspectSource},function(r,i,t){var s=t(8),c=t(166),f="__core-js_shared__",d=s[f]||c(f,{});r.exports=d},function(r,i,t){var s,c,f,d=t(104),y=t(19),b=t(16),p=t(10),x=t(42),g=p("iterator"),A=!1,w=function(){return this};[].keys&&("next"in(f=[].keys())?(c=d(d(f)))!==Object.prototype&&(s=c):A=!0),s==null&&(s={}),!x&&!b(s,g)&&y(s,g,w),r.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:A}},function(r,i,t){var s=t(16),c=t(29),f=t(63),d=t(168),y=f("IE_PROTO"),b=Object.prototype;r.exports=d?Object.getPrototypeOf:function(p){return p=c(p),s(p,y)?p[y]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?b:null}},function(r,i,t){var s=t(76);r.exports=s&&!Symbol.sham&&_typeof(Symbol.iterator)=="symbol"},function(r,i,t){var s=t(16),c=t(28),f=t(78).indexOf,d=t(51);r.exports=function(y,b){var p,x=c(y),g=0,A=[];for(p in x)!s(d,p)&&s(x,p)&&A.push(p);for(;b.length>g;)s(x,p=b[g++])&&(~f(A,p)||A.push(p));return A}},function(r,i,t){var s=t(35);r.exports=s("document","documentElement")},function(r,i,t){var s=t(8);r.exports=s.Promise},function(r,i,t){var s=t(53);r.exports=function(c,f,d){for(var y in f)d&&d.unsafe&&c[y]?c[y]=f[y]:s(c,y,f[y],d);return c}},function(r,i,t){var s=t(35),c=t(18),f=t(10),d=t(14),y=f("species");r.exports=function(b){var p=s(b),x=c.f;d&&p&&!p[y]&&x(p,y,{configurable:!0,get:function(){return this}})}},function(r,i,t){var s=t(10),c=t(43),f=s("iterator"),d=Array.prototype;r.exports=function(y){return y!==void 0&&(c.Array===y||d[f]===y)}},function(r,i,t){var s=t(65),c=t(43),f=t(10)("iterator");r.exports=function(d){if(d!=null)return d[f]||d["@@iterator"]||c[s(d)]}},function(r,i,t){var s=t(25);r.exports=function(c,f,d,y){try{return y?f(s(d)[0],d[1]):f(d)}catch(p){var b=c.return;throw b!==void 0&&s(b.call(c)),p}}},function(r,i,t){var s=t(10)("iterator"),c=!1;try{var f=0,d={next:function(){return{done:!!f++}},return:function(){c=!0}};d[s]=function(){return this},Array.from(d,function(){throw 2})}catch{}r.exports=function(y,b){if(!b&&!c)return!1;var p=!1;try{var x={};x[s]=function(){return{next:function(){return{done:p=!0}}}},y(x)}catch{}return p}},function(r,i,t){var s=t(25),c=t(40),f=t(10)("species");r.exports=function(d,y){var b,p=s(d).constructor;return p===void 0||(b=s(p)[f])==null?y:c(b)}},function(r,i,t){var s,c,f,d=t(8),y=t(11),b=t(33),p=t(39),x=t(107),g=t(73),A=t(117),w=d.location,E=d.setImmediate,_=d.clearImmediate,D=d.process,C=d.MessageChannel,M=d.Dispatch,T=0,N={},P="onreadystatechange",$=function(I){if(N.hasOwnProperty(I)){var V=N[I];delete N[I],V()}},L=function(I){return function(){$(I)}},F=function(I){$(I.data)},R=function(I){d.postMessage(I+"",w.protocol+"//"+w.host)};(!E||!_)&&(E=function(I){for(var V=[],j=1;arguments.length>j;)V.push(arguments[j++]);return N[++T]=function(){(typeof I=="function"?I:Function(I)).apply(void 0,V)},s(T),T},_=function(I){delete N[I]},b(D)=="process"?s=function(I){D.nextTick(L(I))}:M&&M.now?s=function(I){M.now(L(I))}:C&&!A?(f=(c=new C).port2,c.port1.onmessage=F,s=p(f.postMessage,f,1)):!d.addEventListener||typeof postMessage!="function"||d.importScripts||y(R)||w.protocol==="file:"?s=P in g("script")?function(I){x.appendChild(g("script"))[P]=function(){x.removeChild(this),$(I)}}:function(I){setTimeout(L(I),0)}:(s=R,d.addEventListener("message",F,!1))),r.exports={set:E,clear:_}},function(r,i,t){var s=t(84);r.exports=/(iphone|ipod|ipad).*applewebkit/i.test(s)},function(r,i,t){var s=t(25),c=t(13),f=t(85);r.exports=function(d,y){if(s(d),c(y)&&y.constructor===d)return y;var b=f.f(d);return(0,b.resolve)(y),b.promise}},function(r,i){r.exports=function(t){try{return{error:!1,value:t()}}catch(s){return{error:!0,value:s}}}},function(r,i,t){r.exports=t(197)},function(r,i,t){var s=t(5),c=t(8),f=t(122),d=t(11),y=t(19),b=t(66),p=t(83),x=t(13),g=t(36),A=t(18).f,w=t(30).forEach,E=t(14),_=t(41),D=_.set,C=_.getterFor;r.exports=function(M,T,N){var P,$=M.indexOf("Map")!==-1,L=M.indexOf("Weak")!==-1,F=$?"set":"add",R=c[M],I=R&&R.prototype,V={};if(E&&typeof R=="function"&&(L||I.forEach&&!d(function(){new R().entries().next()}))){P=T(function(z,U){D(p(z,P,M),{type:M,collection:new R}),U!=null&&b(U,z[F],z,$)});var j=C(M);w(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(z){var U=z=="add"||z=="set";z in I&&(!L||z!="clear")&&y(P.prototype,z,function(G,J){var q=j(this).collection;if(!U&&L&&!x(G))return z=="get"&&void 0;var ee=q[z](G===0?0:G,J);return U?this:ee})}),L||A(P.prototype,"size",{configurable:!0,get:function(){return j(this).collection.size}})}else P=N.getConstructor(T,M,$,F),f.REQUIRED=!0;return g(P,M,!1,!0),V[M]=P,s({global:!0,forced:!0},V),L||N.setStrong(P,M,$),P}},function(r,i,t){var s=t(51),c=t(13),f=t(16),d=t(18).f,y=t(64),b=t(200),p=y("meta"),x=0,g=Object.isExtensible||function(){return!0},A=function(C){d(C,p,{value:{objectID:"O"+ ++x,weakData:{}}})},w=function(C,M){if(!c(C))return _typeof(C)=="symbol"?C:(typeof C=="string"?"S":"P")+C;if(!f(C,p)){if(!g(C))return"F";if(!M)return"E";A(C)}return C[p].objectID},E=function(C,M){if(!f(C,p)){if(!g(C))return!0;if(!M)return!1;A(C)}return C[p].weakData},_=function(C){return b&&D.REQUIRED&&g(C)&&!f(C,p)&&A(C),C},D=r.exports={REQUIRED:!1,fastKey:w,getWeakData:E,onFreeze:_};s[p]=!0},function(r,i,t){var s=t(18).f,c=t(77),f=t(109),d=t(39),y=t(83),b=t(66),p=t(75),x=t(110),g=t(14),A=t(122).fastKey,w=t(41),E=w.set,_=w.getterFor;r.exports={getConstructor:function(D,C,M,T){var N=D(function(F,R){y(F,N,C),E(F,{type:C,index:c(null),first:void 0,last:void 0,size:0}),g||(F.size=0),R!=null&&b(R,F[T],F,M)}),P=_(C),$=function(F,R,I){var V,j,z=P(F),U=L(F,R);return U?U.value=I:(z.last=U={index:j=A(R,!0),key:R,value:I,previous:V=z.last,next:void 0,removed:!1},z.first||(z.first=U),V&&(V.next=U),g?z.size++:F.size++,j!=="F"&&(z.index[j]=U)),F},L=function(F,R){var I,V=P(F),j=A(R);if(j!=="F")return V.index[j];for(I=V.first;I;I=I.next)if(I.key==R)return I};return f(N.prototype,{clear:function(){for(var F=this,R=P(F),I=R.index,V=R.first;V;)V.removed=!0,V.previous&&(V.previous=V.previous.next=void 0),delete I[V.index],V=V.next;R.first=R.last=void 0,g?R.size=0:F.size=0},delete:function(F){var R=this,I=P(R),V=L(R,F);if(V){var j=V.next,z=V.previous;delete I.index[V.index],V.removed=!0,z&&(z.next=j),j&&(j.previous=z),I.first==V&&(I.first=j),I.last==V&&(I.last=z),g?I.size--:R.size--}return!!V},forEach:function(F){for(var R,I=P(this),V=d(F,arguments.length>1?arguments[1]:void 0,3);R=R?R.next:I.first;)for(V(R.value,R.key,this);R&&R.removed;)R=R.previous},has:function(F){return!!L(this,F)}}),f(N.prototype,M?{get:function(F){var R=L(this,F);return R&&R.value},set:function(F,R){return $(this,F===0?0:F,R)}}:{add:function(F){return $(this,F=F===0?0:F,F)}}),g&&s(N.prototype,"size",{get:function(){return P(this).size}}),N},setStrong:function(D,C,M){var T=C+" Iterator",N=_(C),P=_(T);p(D,C,function($,L){E(this,{type:T,target:$,state:N($),kind:L,last:void 0})},function(){for(var $=P(this),L=$.kind,F=$.last;F&&F.removed;)F=F.previous;return $.target&&($.last=F=F?F.next:$.state.first)?L=="keys"?{value:F.key,done:!1}:L=="values"?{value:F.value,done:!1}:{value:[F.key,F.value],done:!1}:($.target=void 0,{value:void 0,done:!0})},M?"entries":"values",!M,!0),x(C)}}},function(r,i,t){t(12)("iterator")},function(r,i,t){var s=t(106),c=t(80).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(f){return s(f,c)}},function(r,i){i.f=Object.getOwnPropertySymbols},function(r,i,t){r.exports=t(268)},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default={zIndex:1e4}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default={focus:!0,height:300,placeholder:"\u8BF7\u8F93\u5165\u6B63\u6587",zIndexFullScreen:10002,showFullScreen:!0}},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0}),i.getPasteImgs=i.getPasteHtml=i.getPasteText=void 0;var d=t(2),y=t(6),b=d.__importDefault(t(292));function p(A){var w=A.clipboardData,E="";return E=w==null?window.clipboardData&&window.clipboardData.getData("text"):w.getData("text/plain"),y.replaceHtmlSymbol(E)}function x(A,w,E){w===void 0&&(w=!0),E===void 0&&(E=!1);var _=A.clipboardData,D="";if(_&&(D=_.getData("text/html")),!D){var C=p(A);if(!C)return"";D="<p>"+C+"</p>"}return D=(D=D.replace(/<(\d)/gm,function(M,T){return"&lt;"+T})).replace(/<(\/?meta.*?)>/gim,""),D=b.default(D,w,E)}function g(A){var w,E=[];if(p(A))return E;var _=(w=A.clipboardData)===null||w===void 0?void 0:w.items;return _&&(0,f.default)(y).call(y,_,function(D,C){var M=C.type;/image/i.test(M)&&E.push(C.getAsFile())}),E}i.getPasteText=p,i.getPasteHtml=x,i.getPasteImgs=g},function(r,i,t){r.exports=t(294)},function(r,i,t){r.exports=t(310)},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(46));(0,c.default)(i,"__esModule",{value:!0});var y=t(2).__importDefault(t(3)),b=t(7),p=function(){function x(g,A){var w=this;this.hideTimeoutId=0,this.menu=g,this.conf=A;var E=y.default('<div class="w-e-droplist"></div>'),_=y.default("<p>"+A.title+"</p>");_.addClass("w-e-dp-title"),E.append(_);var D=A.list||[],C=A.type||"list",M=A.clickHandler||b.EMPTY_FN,T=y.default('<ul class="'+(C==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,f.default)(D).call(D,function(N){var P=N.$elem,$=N.value,L=y.default('<li class="w-e-item"></li>');P&&(L.append(P),T.append(L),L.on("click",function(F){M($),F.stopPropagation(),w.hideTimeoutId=(0,d.default)(function(){w.hide()})}))}),E.append(T),E.on("mouseleave",function(){w.hideTimeoutId=(0,d.default)(function(){w.hide()})}),this.$container=E,this.rendered=!1,this._show=!1}return x.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var g=this.menu.$elem,A=this.$container;if(!this._show){if(this.rendered)A.show();else{var w=g.getBoundingClientRect().height||0,E=this.conf.width||100;A.css("margin-top",w+"px").css("width",E+"px"),g.append(A),this.rendered=!0}this._show=!0}},x.prototype.hide=function(){var g=this.$container;!this._show||(g.hide(),this._show=!1)},(0,c.default)(x.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),x}();i.default=p},function(r,i,t){function s(c){var f=c.selection.getSelectionContainerElem();return!(f==null||!f.length)&&f.getNodeName()==="A"}(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default=s},function(r,i,t){var s=t(0),c=s(t(92)),f=s(t(1)),d=s(t(4));(0,f.default)(i,"__esModule",{value:!0});var y=t(6);function b(p,x){var g=new XMLHttpRequest;if(g.open("POST",p),g.timeout=x.timeout||1e4,g.ontimeout=function(){console.error("wangEditor - \u8BF7\u6C42\u8D85\u65F6"),x.onTimeout&&x.onTimeout(g)},g.upload&&(g.upload.onprogress=function(w){var E=w.loaded/w.total;x.onProgress&&x.onProgress(E,w)}),x.headers&&(0,d.default)(y).call(y,x.headers,function(w,E){g.setRequestHeader(w,E)}),g.withCredentials=!!x.withCredentials,x.beforeSend){var A=x.beforeSend(g);if(A&&(0,c.default)(A)==="object"&&A.prevent)return A.msg}return g.onreadystatechange=function(){if(g.readyState===4){var w=g.status;if(!(w<200||w>=300&&w<400)){if(w>=400)return console.error("wangEditor - XHR \u62A5\u9519\uFF0C\u72B6\u6001\u7801 "+w),void(x.onError&&x.onError(g));var E,_=g.responseText;if((0,c.default)(_)!=="object")try{E=JSON.parse(_)}catch{return console.error("wangEditor - \u8FD4\u56DE\u7ED3\u679C\u4E0D\u662F JSON \u683C\u5F0F",_),void(x.onFail&&x.onFail(g,_))}else E=_;x.onSuccess(g,E)}}},g.send(x.formData||null),g}i.default=b},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(342)),d=s(t(46));(0,c.default)(i,"__esModule",{value:!0});var y=t(2).__importDefault(t(3)),b=function(){function p(x){this.editor=x,this.$textContainer=x.$textContainerElem,this.$bar=y.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return p.prototype.show=function(x){var g=this;if(!this.isShow){this.isShow=!0;var A=this.$bar;this.$textContainer.append(A),(0,f.default)()-this.time>100&&x<=1&&(A.css("width",100*x+"%"),this.time=(0,f.default)());var w=this.timeoutId;w&&clearTimeout(w),this.timeoutId=(0,d.default)(function(){g.hide()},500)}},p.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},p}();i.default=b},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.ListType=void 0;var s,c,f=t(2),d=f.__importDefault(t(3)),y=f.__importDefault(t(24)),b=t(47),p=f.__importStar(t(371));(c=s=i.ListType||(i.ListType={})).OrderedList="OL",c.UnorderedList="UL";var x=function(g){function A(w){var E=this,_=d.default(`<div class="w-e-menu" data-title="\u5E8F\u5217">
  42. <i class="w-e-icon-list2"></i>
  43. </div>`),D={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:d.default(`
  44. <p>
  45. <i class="w-e-icon-list2 w-e-drop-list-item"></i>
  46. `+w.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
  47. <p>`),value:s.UnorderedList},{$elem:d.default(`<p>
  48. <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
  49. `+w.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
  50. <p>`),value:s.OrderedList}],clickHandler:function(C){E.command(C)}};return E=g.call(this,_,w,D)||this}return f.__extends(A,g),A.prototype.command=function(w){this.editor.selection.getSelectionContainerElem()!==void 0&&(this.handleSelectionRangeNodes(w),this.tryChangeActive())},A.prototype.validator=function(w,E,_){return!(!w.length||!E.length||_.equal(w)||_.equal(E))},A.prototype.handleSelectionRangeNodes=function(w){var E=this.editor,_=E.selection,D=w.toLowerCase(),C=_.getSelectionContainerElem(),M=_.getSelectionStartElem().getNodeTop(E),T=_.getSelectionEndElem().getNodeTop(E);if(this.validator(M,T,E.$textElem)){var N=_.getRange(),P=N==null?void 0:N.collapsed;E.$textElem.equal(C)||(C=C.getNodeTop(E));var $,L={editor:E,listType:w,listTarget:D,$selectionElem:C,$startElem:M,$endElem:T};$=this.isOrderElem(C)?p.ClassType.Wrap:this.isOrderElem(M)&&this.isOrderElem(T)?p.ClassType.Join:this.isOrderElem(M)?p.ClassType.StartJoin:this.isOrderElem(T)?p.ClassType.EndJoin:p.ClassType.Other;var F=new p.default(p.createListHandle($,L,N));b.updateRange(E,F.getSelectionRangeElem(),!!P)}},A.prototype.isOrderElem=function(w){var E=w.getNodeName();return E===s.OrderedList||E===s.UnorderedList},A.prototype.tryChangeActive=function(){},A}(y.default);i.default=x},function(r,i,t){r.exports=t(395)},function(r,i,t){function s(c){var f=c.selection.getSelectionContainerElem();return!(f==null||!f.length||f.getNodeName()!="CODE"&&f.getNodeName()!="PRE"&&f.parent().getNodeName()!="CODE"&&f.parent().getNodeName()!="PRE"&&!/hljs/.test(f.parent().attr("class")))}(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default=s},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(31));(0,c.default)(i,"__esModule",{value:!0}),i.todo=void 0;var d=t(2).__importDefault(t(3)),y=function(){function p(x){var g;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=d.default(this.template),this.$child=(g=x==null?void 0:x.childNodes())===null||g===void 0?void 0:g.clone(!0)}return p.prototype.init=function(){var x=this.$child,g=this.getInputContainer();x&&x.insertAfter(g)},p.prototype.getInput=function(){var x=this.$todo;return(0,f.default)(x).call(x,"input")},p.prototype.getInputContainer=function(){return this.getInput().parent()},p.prototype.getTodo=function(){return this.$todo},p}();function b(p){var x=new y(p);return x.init(),x}i.todo=y,i.default=b},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2);t(146),t(148),t(152),t(154),t(156),t(158),t(160);var c=s.__importDefault(t(87));s.__exportStar(t(442),i),i.default=c.default},function(r,i,t){var s=t(143);r.exports=s},function(r,i,t){t(144);var s=t(9).Object,c=r.exports=function(f,d,y){return s.defineProperty(f,d,y)};s.defineProperty.sham&&(c.sham=!0)},function(r,i,t){var s=t(5),c=t(14);s({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperty:t(18).f})},function(r,i){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{(typeof window>"u"?"undefined":_typeof(window))==="object"&&(t=window)}r.exports=t},function(r,i,t){var s=t(20),c=t(147);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-toolbar,
  51. .w-e-text-container,
  52. .w-e-menu-panel {
  53. padding: 0;
  54. margin: 0;
  55. box-sizing: border-box;
  56. background-color: #fff;
  57. /*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/
  58. /*\u5206\u5272\u7EBF\u6837\u5F0F*/
  59. }
  60. .w-e-toolbar h1,
  61. .w-e-text-container h1,
  62. .w-e-menu-panel h1 {
  63. font-size: 32px !important;
  64. }
  65. .w-e-toolbar h2,
  66. .w-e-text-container h2,
  67. .w-e-menu-panel h2 {
  68. font-size: 24px !important;
  69. }
  70. .w-e-toolbar h3,
  71. .w-e-text-container h3,
  72. .w-e-menu-panel h3 {
  73. font-size: 18.72px !important;
  74. }
  75. .w-e-toolbar h4,
  76. .w-e-text-container h4,
  77. .w-e-menu-panel h4 {
  78. font-size: 16px !important;
  79. }
  80. .w-e-toolbar h5,
  81. .w-e-text-container h5,
  82. .w-e-menu-panel h5 {
  83. font-size: 13.28px !important;
  84. }
  85. .w-e-toolbar p,
  86. .w-e-text-container p,
  87. .w-e-menu-panel p {
  88. font-size: 16px !important;
  89. }
  90. .w-e-toolbar .eleImg,
  91. .w-e-text-container .eleImg,
  92. .w-e-menu-panel .eleImg {
  93. cursor: pointer;
  94. display: inline-block;
  95. font-size: 18px;
  96. padding: 0 3px;
  97. }
  98. .w-e-toolbar *,
  99. .w-e-text-container *,
  100. .w-e-menu-panel * {
  101. padding: 0;
  102. margin: 0;
  103. box-sizing: border-box;
  104. }
  105. .w-e-toolbar hr,
  106. .w-e-text-container hr,
  107. .w-e-menu-panel hr {
  108. cursor: pointer;
  109. display: block;
  110. height: 0px;
  111. border: 0;
  112. border-top: 3px solid #ccc;
  113. margin: 20px 0;
  114. }
  115. .w-e-clear-fix:after {
  116. content: "";
  117. display: table;
  118. clear: both;
  119. }
  120. .w-e-drop-list-item {
  121. position: relative;
  122. top: 1px;
  123. padding-right: 7px;
  124. color: #333 !important;
  125. }
  126. .w-e-drop-list-tl {
  127. padding-left: 10px;
  128. text-align: left;
  129. }
  130. `,""]),r.exports=i},function(r,i,t){var s=t(20),c=t(149);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){var s=t(21),c=t(150),f=t(151);i=s(!1);var d=c(f);i.push([r.i,`@font-face {
  131. font-family: 'w-e-icon';
  132. src: url(`+d+`) format('truetype');
  133. font-weight: normal;
  134. font-style: normal;
  135. }
  136. [class^="w-e-icon-"],
  137. [class*=" w-e-icon-"] {
  138. /* use !important to prevent issues with browser extensions that change fonts */
  139. font-family: 'w-e-icon' !important;
  140. speak: none;
  141. font-style: normal;
  142. font-weight: normal;
  143. font-variant: normal;
  144. text-transform: none;
  145. line-height: 1;
  146. /* Better Font Rendering =========== */
  147. -webkit-font-smoothing: antialiased;
  148. -moz-osx-font-smoothing: grayscale;
  149. }
  150. .w-e-icon-close:before {
  151. content: "\\f00d";
  152. }
  153. .w-e-icon-upload2:before {
  154. content: "\\e9c6";
  155. }
  156. .w-e-icon-trash-o:before {
  157. content: "\\f014";
  158. }
  159. .w-e-icon-header:before {
  160. content: "\\f1dc";
  161. }
  162. .w-e-icon-pencil2:before {
  163. content: "\\e906";
  164. }
  165. .w-e-icon-paint-brush:before {
  166. content: "\\f1fc";
  167. }
  168. .w-e-icon-image:before {
  169. content: "\\e90d";
  170. }
  171. .w-e-icon-play:before {
  172. content: "\\e912";
  173. }
  174. .w-e-icon-location:before {
  175. content: "\\e947";
  176. }
  177. .w-e-icon-undo:before {
  178. content: "\\e965";
  179. }
  180. .w-e-icon-redo:before {
  181. content: "\\e966";
  182. }
  183. .w-e-icon-quotes-left:before {
  184. content: "\\e977";
  185. }
  186. .w-e-icon-list-numbered:before {
  187. content: "\\e9b9";
  188. }
  189. .w-e-icon-list2:before {
  190. content: "\\e9bb";
  191. }
  192. .w-e-icon-link:before {
  193. content: "\\e9cb";
  194. }
  195. .w-e-icon-happy:before {
  196. content: "\\e9df";
  197. }
  198. .w-e-icon-bold:before {
  199. content: "\\ea62";
  200. }
  201. .w-e-icon-underline:before {
  202. content: "\\ea63";
  203. }
  204. .w-e-icon-italic:before {
  205. content: "\\ea64";
  206. }
  207. .w-e-icon-strikethrough:before {
  208. content: "\\ea65";
  209. }
  210. .w-e-icon-table2:before {
  211. content: "\\ea71";
  212. }
  213. .w-e-icon-paragraph-left:before {
  214. content: "\\ea77";
  215. }
  216. .w-e-icon-paragraph-center:before {
  217. content: "\\ea78";
  218. }
  219. .w-e-icon-paragraph-right:before {
  220. content: "\\ea79";
  221. }
  222. .w-e-icon-paragraph-justify:before {
  223. content: "\\ea7a";
  224. }
  225. .w-e-icon-terminal:before {
  226. content: "\\f120";
  227. }
  228. .w-e-icon-page-break:before {
  229. content: "\\ea68";
  230. }
  231. .w-e-icon-cancel-circle:before {
  232. content: "\\ea0d";
  233. }
  234. .w-e-icon-font:before {
  235. content: "\\ea5c";
  236. }
  237. .w-e-icon-text-heigh:before {
  238. content: "\\ea5f";
  239. }
  240. .w-e-icon-paint-format:before {
  241. content: "\\e90c";
  242. }
  243. .w-e-icon-indent-increase:before {
  244. content: "\\ea7b";
  245. }
  246. .w-e-icon-indent-decrease:before {
  247. content: "\\ea7c";
  248. }
  249. .w-e-icon-row-height:before {
  250. content: "\\e9be";
  251. }
  252. .w-e-icon-fullscreen_exit:before {
  253. content: "\\e900";
  254. }
  255. .w-e-icon-fullscreen:before {
  256. content: "\\e901";
  257. }
  258. .w-e-icon-split-line:before {
  259. content: "\\ea0b";
  260. }
  261. .w-e-icon-checkbox-checked:before {
  262. content: "\\ea52";
  263. }
  264. `,""]),r.exports=i},function(r,i,t){r.exports=function(s,c){return c||(c={}),typeof(s=s&&s.__esModule?s.default:s)!="string"?s:(/^['"].*['"]$/.test(s)&&(s=s.slice(1,-1)),c.hash&&(s+=c.hash),/["'() \t\n]/.test(s)||c.needQuotes?'"'.concat(s.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):s)}},function(r,i,t){t.r(i),i.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,i,t){var s=t(20),c=t(153);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-toolbar {
  265. display: flex;
  266. padding: 0 6px;
  267. flex-wrap: wrap;
  268. position: relative;
  269. /* \u5355\u4E2A\u83DC\u5355 */
  270. }
  271. .w-e-toolbar .w-e-menu {
  272. position: relative;
  273. display: flex;
  274. width: 40px;
  275. height: 40px;
  276. align-items: center;
  277. justify-content: center;
  278. text-align: center;
  279. cursor: pointer;
  280. }
  281. .w-e-toolbar .w-e-menu i {
  282. color: #999;
  283. }
  284. .w-e-toolbar .w-e-menu:hover {
  285. background-color: #F6F6F6;
  286. }
  287. .w-e-toolbar .w-e-menu:hover i {
  288. color: #333;
  289. }
  290. .w-e-toolbar .w-e-active i {
  291. color: #1e88e5;
  292. }
  293. .w-e-toolbar .w-e-active:hover i {
  294. color: #1e88e5;
  295. }
  296. .w-e-menu-tooltip {
  297. position: absolute;
  298. display: flex;
  299. color: #f1f1f1;
  300. background-color: rgba(0, 0, 0, 0.75);
  301. box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
  302. border-radius: 4px;
  303. padding: 4px 5px 6px;
  304. justify-content: center;
  305. align-items: center;
  306. }
  307. .w-e-menu-tooltip-up::after {
  308. content: "";
  309. position: absolute;
  310. top: 100%;
  311. left: 50%;
  312. margin-left: -5px;
  313. border: 5px solid rgba(0, 0, 0, 0);
  314. border-top-color: rgba(0, 0, 0, 0.73);
  315. }
  316. .w-e-menu-tooltip-down::after {
  317. content: "";
  318. position: absolute;
  319. bottom: 100%;
  320. left: 50%;
  321. margin-left: -5px;
  322. border: 5px solid rgba(0, 0, 0, 0);
  323. border-bottom-color: rgba(0, 0, 0, 0.73);
  324. }
  325. .w-e-menu-tooltip-item-wrapper {
  326. font-size: 14px;
  327. margin: 0 5px;
  328. }
  329. `,""]),r.exports=i},function(r,i,t){var s=t(20),c=t(155);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-text-container {
  330. position: relative;
  331. height: 100%;
  332. }
  333. .w-e-text-container .w-e-progress {
  334. position: absolute;
  335. background-color: #1e88e5;
  336. top: 0;
  337. left: 0;
  338. height: 1px;
  339. }
  340. .w-e-text-container .placeholder {
  341. color: #D4D4D4;
  342. position: absolute;
  343. font-size: 11pt;
  344. line-height: 22px;
  345. left: 10px;
  346. top: 10px;
  347. -webkit-user-select: none;
  348. -moz-user-select: none;
  349. -ms-user-select: none;
  350. user-select: none;
  351. z-index: -1;
  352. }
  353. .w-e-text {
  354. padding: 0 10px;
  355. overflow-y: auto;
  356. }
  357. .w-e-text p,
  358. .w-e-text h1,
  359. .w-e-text h2,
  360. .w-e-text h3,
  361. .w-e-text h4,
  362. .w-e-text h5,
  363. .w-e-text table,
  364. .w-e-text pre {
  365. margin: 10px 0;
  366. line-height: 1.5;
  367. }
  368. .w-e-text ul,
  369. .w-e-text ol {
  370. margin: 10px 0 10px 20px;
  371. }
  372. .w-e-text blockquote {
  373. display: block;
  374. border-left: 8px solid #d0e5f2;
  375. padding: 5px 10px;
  376. margin: 10px 0;
  377. line-height: 1.4;
  378. font-size: 100%;
  379. background-color: #f1f1f1;
  380. }
  381. .w-e-text code {
  382. display: inline-block;
  383. background-color: #f1f1f1;
  384. border-radius: 3px;
  385. padding: 3px 5px;
  386. margin: 0 3px;
  387. }
  388. .w-e-text pre code {
  389. display: block;
  390. }
  391. .w-e-text table {
  392. border-top: 1px solid #ccc;
  393. border-left: 1px solid #ccc;
  394. }
  395. .w-e-text table td,
  396. .w-e-text table th {
  397. border-bottom: 1px solid #ccc;
  398. border-right: 1px solid #ccc;
  399. padding: 3px 5px;
  400. min-height: 30px;
  401. height: 30px;
  402. }
  403. .w-e-text table th {
  404. border-bottom: 2px solid #ccc;
  405. text-align: center;
  406. background-color: #f1f1f1;
  407. }
  408. .w-e-text:focus {
  409. outline: none;
  410. }
  411. .w-e-text img {
  412. cursor: pointer;
  413. }
  414. .w-e-text img:hover {
  415. box-shadow: 0 0 5px #333;
  416. }
  417. .w-e-text .w-e-todo {
  418. margin: 0 0 0 20px;
  419. }
  420. .w-e-text .w-e-todo li {
  421. list-style: none;
  422. font-size: 1em;
  423. }
  424. .w-e-text .w-e-todo li span:nth-child(1) {
  425. position: relative;
  426. left: -18px;
  427. }
  428. .w-e-text .w-e-todo li span:nth-child(1) input {
  429. position: absolute;
  430. margin-right: 3px;
  431. }
  432. .w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
  433. top: 50%;
  434. margin-top: -6px;
  435. }
  436. .w-e-tooltip {
  437. position: absolute;
  438. display: flex;
  439. color: #f1f1f1;
  440. background-color: rgba(0, 0, 0, 0.75);
  441. box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
  442. border-radius: 4px;
  443. padding: 4px 5px 6px;
  444. justify-content: center;
  445. align-items: center;
  446. }
  447. .w-e-tooltip-up::after {
  448. content: "";
  449. position: absolute;
  450. top: 100%;
  451. left: 50%;
  452. margin-left: -5px;
  453. border: 5px solid rgba(0, 0, 0, 0);
  454. border-top-color: rgba(0, 0, 0, 0.73);
  455. }
  456. .w-e-tooltip-down::after {
  457. content: "";
  458. position: absolute;
  459. bottom: 100%;
  460. left: 50%;
  461. margin-left: -5px;
  462. border: 5px solid rgba(0, 0, 0, 0);
  463. border-bottom-color: rgba(0, 0, 0, 0.73);
  464. }
  465. .w-e-tooltip-item-wrapper {
  466. cursor: pointer;
  467. font-size: 14px;
  468. margin: 0 5px;
  469. }
  470. .w-e-tooltip-item-wrapper:hover {
  471. color: #ccc;
  472. text-decoration: underline;
  473. }
  474. `,""]),r.exports=i},function(r,i,t){var s=t(20),c=t(157);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-menu .w-e-panel-container {
  475. position: absolute;
  476. top: 0;
  477. left: 50%;
  478. border: 1px solid #ccc;
  479. border-top: 0;
  480. box-shadow: 1px 1px 2px #ccc;
  481. color: #333;
  482. background-color: #fff;
  483. text-align: left;
  484. /* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */
  485. /* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */
  486. }
  487. .w-e-menu .w-e-panel-container .w-e-panel-close {
  488. position: absolute;
  489. right: 0;
  490. top: 0;
  491. padding: 5px;
  492. margin: 2px 5px 0 0;
  493. cursor: pointer;
  494. color: #999;
  495. }
  496. .w-e-menu .w-e-panel-container .w-e-panel-close:hover {
  497. color: #333;
  498. }
  499. .w-e-menu .w-e-panel-container .w-e-panel-tab-title {
  500. list-style: none;
  501. display: flex;
  502. font-size: 14px;
  503. margin: 2px 10px 0 10px;
  504. border-bottom: 1px solid #f1f1f1;
  505. }
  506. .w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
  507. padding: 3px 5px;
  508. color: #999;
  509. cursor: pointer;
  510. margin: 0 3px;
  511. position: relative;
  512. top: 1px;
  513. }
  514. .w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
  515. color: #333;
  516. border-bottom: 1px solid #333;
  517. cursor: default;
  518. font-weight: 700;
  519. }
  520. .w-e-menu .w-e-panel-container .w-e-panel-tab-content {
  521. padding: 10px 15px 10px 15px;
  522. font-size: 16px;
  523. /* \u8F93\u5165\u6846\u7684\u6837\u5F0F */
  524. /* \u6309\u94AE\u7684\u6837\u5F0F */
  525. }
  526. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
  527. .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
  528. .w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
  529. outline: none;
  530. }
  531. .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
  532. width: 100%;
  533. border: 1px solid #ccc;
  534. padding: 5px;
  535. margin-top: 10px;
  536. }
  537. .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
  538. border-color: #1e88e5;
  539. }
  540. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
  541. border: none;
  542. border-bottom: 1px solid #ccc;
  543. font-size: 14px;
  544. height: 20px;
  545. color: #333;
  546. text-align: left;
  547. }
  548. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
  549. width: 30px;
  550. text-align: center;
  551. }
  552. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
  553. display: block;
  554. width: 100%;
  555. margin: 10px 0;
  556. }
  557. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
  558. border-bottom: 2px solid #1e88e5;
  559. }
  560. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
  561. font-size: 14px;
  562. color: #1e88e5;
  563. border: none;
  564. padding: 5px 10px;
  565. background-color: #fff;
  566. cursor: pointer;
  567. border-radius: 3px;
  568. }
  569. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
  570. float: left;
  571. margin-right: 10px;
  572. }
  573. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
  574. float: right;
  575. margin-left: 10px;
  576. }
  577. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
  578. color: #999;
  579. }
  580. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
  581. color: #c24f4a;
  582. }
  583. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
  584. background-color: #f1f1f1;
  585. }
  586. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
  587. content: "";
  588. display: table;
  589. clear: both;
  590. }
  591. .w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
  592. cursor: pointer;
  593. font-size: 18px;
  594. padding: 0 3px;
  595. display: inline-block;
  596. }
  597. .w-e-menu .w-e-panel-container .w-e-up-img-container,
  598. .w-e-menu .w-e-panel-container .w-e-up-video-container {
  599. text-align: center;
  600. }
  601. .w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
  602. .w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
  603. display: inline-block;
  604. color: #999;
  605. cursor: pointer;
  606. font-size: 60px;
  607. line-height: 1;
  608. }
  609. .w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
  610. .w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
  611. color: #333;
  612. }
  613. `,""]),r.exports=i},function(r,i,t){var s=t(20),c=t(159);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-toolbar .w-e-droplist {
  614. position: absolute;
  615. left: 0;
  616. top: 0;
  617. background-color: #fff;
  618. border: 1px solid #f1f1f1;
  619. border-right-color: #ccc;
  620. border-bottom-color: #ccc;
  621. }
  622. .w-e-toolbar .w-e-droplist .w-e-dp-title {
  623. text-align: center;
  624. color: #999;
  625. line-height: 2;
  626. border-bottom: 1px solid #f1f1f1;
  627. font-size: 13px;
  628. }
  629. .w-e-toolbar .w-e-droplist ul.w-e-list {
  630. list-style: none;
  631. line-height: 1;
  632. }
  633. .w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
  634. color: #333;
  635. padding: 5px 0;
  636. }
  637. .w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
  638. background-color: #f1f1f1;
  639. }
  640. .w-e-toolbar .w-e-droplist ul.w-e-block {
  641. list-style: none;
  642. text-align: left;
  643. padding: 5px;
  644. }
  645. .w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
  646. display: inline-block;
  647. padding: 3px 5px;
  648. }
  649. .w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
  650. background-color: #f1f1f1;
  651. }
  652. `,""]),r.exports=i},function(r,i,t){var s=t(0)(t(161));Element.prototype.matches||(Element.prototype.matches=function(c){for(var f=this.ownerDocument.querySelectorAll(c),d=f.length;d>=0&&f.item(d)!==this;d--);return d>-1}),s.default||(window.Promise=s.default)},function(r,i,t){r.exports=t(162)},function(r,i,t){var s=t(163);r.exports=s},function(r,i,t){t(61),t(50),t(54),t(175),t(178),t(179);var s=t(9);r.exports=s.Promise},function(r,i,t){var s=t(62),c=t(49),f=function(d){return function(y,b){var p,x,g=String(c(y)),A=s(b),w=g.length;return A<0||A>=w?d?"":void 0:(p=g.charCodeAt(A))<55296||p>56319||A+1===w||(x=g.charCodeAt(A+1))<56320||x>57343?d?g.charAt(A):p:d?g.slice(A,A+2):x-56320+(p-55296<<10)+65536}};r.exports={codeAt:f(!1),charAt:f(!0)}},function(r,i,t){var s=t(8),c=t(101),f=s.WeakMap;r.exports=typeof f=="function"&&/native code/.test(c(f))},function(r,i,t){var s=t(8),c=t(19);r.exports=function(f,d){try{c(s,f,d)}catch{s[f]=d}return d}},function(r,i,t){var s=t(103).IteratorPrototype,c=t(77),f=t(48),d=t(36),y=t(43),b=function(){return this};r.exports=function(p,x,g){var A=x+" Iterator";return p.prototype=c(s,{next:f(1,g)}),d(p,A,!1,!0),y[A]=b,p}},function(r,i,t){var s=t(11);r.exports=!s(function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype})},function(r,i,t){var s=t(14),c=t(18),f=t(25),d=t(52);r.exports=s?Object.defineProperties:function(y,b){f(y);for(var p,x=d(b),g=x.length,A=0;g>A;)c.f(y,p=x[A++],b[p]);return y}},function(r,i,t){var s=t(81),c=t(65);r.exports=s?{}.toString:function(){return"[object "+c(this)+"]"}},function(r,i,t){var s=t(25),c=t(172);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f,d=!1,y={};try{(f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(y,[]),d=y instanceof Array}catch{}return function(b,p){return s(b),c(p),d?f.call(b,p):b.__proto__=p,b}}():void 0)},function(r,i,t){var s=t(13);r.exports=function(c){if(!s(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}},function(r,i,t){var s=t(28),c=t(82),f=t(43),d=t(41),y=t(75),b="Array Iterator",p=d.set,x=d.getterFor(b);r.exports=y(Array,"Array",function(g,A){p(this,{type:b,target:s(g),index:0,kind:A})},function(){var g=x(this),A=g.target,w=g.kind,E=g.index++;return!A||E>=A.length?(g.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:E,done:!1}:w=="values"?{value:A[E],done:!1}:{value:[E,A[E]],done:!1}},"values"),f.Arguments=f.Array,c("keys"),c("values"),c("entries")},function(r,i){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,i,t){var s,c,f,d,y=t(5),b=t(42),p=t(8),x=t(35),g=t(108),A=t(53),w=t(109),E=t(36),_=t(110),D=t(13),C=t(40),M=t(83),T=t(33),N=t(101),P=t(66),$=t(114),L=t(115),F=t(116).set,R=t(176),I=t(118),V=t(177),j=t(85),z=t(119),U=t(41),G=t(100),J=t(10),q=t(86),ee=J("species"),te="Promise",ce=U.get,be=U.set,pe=U.getterFor(te),oe=g,se=p.TypeError,re=p.document,he=p.process,ke=x("fetch"),Ne=j.f,Be=Ne,Le=T(he)=="process",Ct=!!(re&&re.createEvent&&p.dispatchEvent),st="unhandledrejection",Ke="rejectionhandled",ct=0,Mt=1,Ie=2,dt=1,Ht=2,Et=G(te,function(){if(N(oe)===String(oe)&&(q===66||!Le&&typeof PromiseRejectionEvent!="function")||b&&!oe.prototype.finally)return!0;if(q>=51&&/native code/.test(oe))return!1;var we=oe.resolve(1),ve=function(De){De(function(){},function(){})};return(we.constructor={})[ee]=ve,!(we.then(function(){})instanceof ve)}),pn=Et||!$(function(we){oe.all(we).catch(function(){})}),qt=function(we){var ve;return!(!D(we)||typeof(ve=we.then)!="function")&&ve},Tt=function(we,ve,De){if(!ve.notified){ve.notified=!0;var ae=ve.reactions;R(function(){for(var de=ve.value,ue=ve.state==Mt,Me=0;ae.length>Me;){var Te,Pe,He,rt=ae[Me++],ze=ue?rt.ok:rt.fail,_t=rt.resolve,We=rt.reject,jt=rt.domain;try{ze?(ue||(ve.rejection===Ht&&ut(we,ve),ve.rejection=dt),ze===!0?Te=de:(jt&&jt.enter(),Te=ze(de),jt&&(jt.exit(),He=!0)),Te===rt.promise?We(se("Promise-chain cycle")):(Pe=qt(Te))?Pe.call(Te,_t,We):_t(Te)):We(de)}catch(nn){jt&&!He&&jt.exit(),We(nn)}}ve.reactions=[],ve.notified=!1,De&&!ve.rejection&&Rt(we,ve)})}},Nt=function(we,ve,De){var ae,de;Ct?((ae=re.createEvent("Event")).promise=ve,ae.reason=De,ae.initEvent(we,!1,!0),p.dispatchEvent(ae)):ae={promise:ve,reason:De},(de=p["on"+we])?de(ae):we===st&&V("Unhandled promise rejection",De)},Rt=function(we,ve){F.call(p,function(){var De,ae=ve.value;if(Kt(ve)&&(De=z(function(){Le?he.emit("unhandledRejection",ae,we):Nt(st,we,ae)}),ve.rejection=Le||Kt(ve)?Ht:dt,De.error))throw De.value})},Kt=function(we){return we.rejection!==dt&&!we.parent},ut=function(we,ve){F.call(p,function(){Le?he.emit("rejectionHandled",we):Nt(Ke,we,ve.value)})},Oe=function(we,ve,De,ae){return function(de){we(ve,De,de,ae)}},nt=function(we,ve,De,ae){ve.done||(ve.done=!0,ae&&(ve=ae),ve.value=De,ve.state=Ie,Tt(we,ve,!0))},It=function we(ve,De,ae,de){if(!De.done){De.done=!0,de&&(De=de);try{if(ve===ae)throw se("Promise can't be resolved itself");var ue=qt(ae);ue?R(function(){var Me={done:!1};try{ue.call(ae,Oe(we,ve,Me,De),Oe(nt,ve,Me,De))}catch(Te){nt(ve,Me,Te,De)}}):(De.value=ae,De.state=Mt,Tt(ve,De,!1))}catch(Me){nt(ve,{done:!1},Me,De)}}};Et&&(oe=function(we){M(this,oe,te),C(we),s.call(this);var ve=ce(this);try{we(Oe(It,this,ve),Oe(nt,this,ve))}catch(De){nt(this,ve,De)}},(s=function(we){be(this,{type:te,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:ct,value:void 0})}).prototype=w(oe.prototype,{then:function(we,ve){var De=pe(this),ae=Ne(L(this,oe));return ae.ok=typeof we!="function"||we,ae.fail=typeof ve=="function"&&ve,ae.domain=Le?he.domain:void 0,De.parent=!0,De.reactions.push(ae),De.state!=ct&&Tt(this,De,!1),ae.promise},catch:function(we){return this.then(void 0,we)}}),c=function(){var we=new s,ve=ce(we);this.promise=we,this.resolve=Oe(It,we,ve),this.reject=Oe(nt,we,ve)},j.f=Ne=function(we){return we===oe||we===f?new c(we):Be(we)},!b&&typeof g=="function"&&(d=g.prototype.then,A(g.prototype,"then",function(we,ve){var De=this;return new oe(function(ae,de){d.call(De,ae,de)}).then(we,ve)},{unsafe:!0}),typeof ke=="function"&&y({global:!0,enumerable:!0,forced:!0},{fetch:function(we){return I(oe,ke.apply(p,arguments))}}))),y({global:!0,wrap:!0,forced:Et},{Promise:oe}),E(oe,te,!1,!0),_(te),f=x(te),y({target:te,stat:!0,forced:Et},{reject:function(we){var ve=Ne(this);return ve.reject.call(void 0,we),ve.promise}}),y({target:te,stat:!0,forced:b||Et},{resolve:function(we){return I(b&&this===f?oe:this,we)}}),y({target:te,stat:!0,forced:pn},{all:function(we){var ve=this,De=Ne(ve),ae=De.resolve,de=De.reject,ue=z(function(){var Me=C(ve.resolve),Te=[],Pe=0,He=1;P(we,function(rt){var ze=Pe++,_t=!1;Te.push(void 0),He++,Me.call(ve,rt).then(function(We){_t||(_t=!0,Te[ze]=We,--He||ae(Te))},de)}),--He||ae(Te)});return ue.error&&de(ue.value),De.promise},race:function(we){var ve=this,De=Ne(ve),ae=De.reject,de=z(function(){var ue=C(ve.resolve);P(we,function(Me){ue.call(ve,Me).then(De.resolve,ae)})});return de.error&&ae(de.value),De.promise}})},function(r,i,t){var s,c,f,d,y,b,p,x,g=t(8),A=t(71).f,w=t(33),E=t(116).set,_=t(117),D=g.MutationObserver||g.WebKitMutationObserver,C=g.process,M=g.Promise,T=w(C)=="process",N=A(g,"queueMicrotask"),P=N&&N.value;P||(s=function(){var $,L;for(T&&($=C.domain)&&$.exit();c;){L=c.fn,c=c.next;try{L()}catch(F){throw c?d():f=void 0,F}}f=void 0,$&&$.enter()},T?d=function(){C.nextTick(s)}:D&&!_?(y=!0,b=document.createTextNode(""),new D(s).observe(b,{characterData:!0}),d=function(){b.data=y=!y}):M&&M.resolve?(p=M.resolve(void 0),x=p.then,d=function(){x.call(p,s)}):d=function(){E.call(g,s)}),r.exports=P||function($){var L={fn:$,next:void 0};f&&(f.next=L),c||(c=L,d()),f=L}},function(r,i,t){var s=t(8);r.exports=function(c,f){var d=s.console;d&&d.error&&(arguments.length===1?d.error(c):d.error(c,f))}},function(r,i,t){var s=t(5),c=t(40),f=t(85),d=t(119),y=t(66);s({target:"Promise",stat:!0},{allSettled:function(b){var p=this,x=f.f(p),g=x.resolve,A=x.reject,w=d(function(){var E=c(p.resolve),_=[],D=0,C=1;y(b,function(M){var T=D++,N=!1;_.push(void 0),C++,E.call(p,M).then(function(P){N||(N=!0,_[T]={status:"fulfilled",value:P},--C||g(_))},function(P){N||(N=!0,_[T]={status:"rejected",reason:P},--C||g(_))})}),--C||g(_)});return w.error&&A(w.value),x.promise}})},function(r,i,t){var s=t(5),c=t(42),f=t(108),d=t(11),y=t(35),b=t(115),p=t(118),x=t(53);s({target:"Promise",proto:!0,real:!0,forced:!!f&&d(function(){f.prototype.finally.call({then:function(){}},function(){})})},{finally:function(g){var A=b(this,y("Promise")),w=typeof g=="function";return this.then(w?function(E){return p(A,g()).then(function(){return E})}:g,w?function(E){return p(A,g()).then(function(){throw E})}:g)}}),!c&&typeof f=="function"&&!f.prototype.finally&&x(f.prototype,"finally",y("Promise").prototype.finally)},function(r,i,t){t(54);var s=t(181),c=t(65),f=Array.prototype,d={DOMTokenList:!0,NodeList:!0};r.exports=function(y){var b=y.forEach;return y===f||y instanceof Array&&b===f.forEach||d.hasOwnProperty(c(y))?s:b}},function(r,i,t){var s=t(182);r.exports=s},function(r,i,t){t(183);var s=t(15);r.exports=s("Array").forEach},function(r,i,t){var s=t(5),c=t(184);s({target:"Array",proto:!0,forced:[].forEach!=c},{forEach:c})},function(r,i,t){var s=t(30).forEach,c=t(67),f=t(22),d=c("forEach"),y=f("forEach");r.exports=d&&y?[].forEach:function(b){return s(this,b,arguments.length>1?arguments[1]:void 0)}},function(r,i,t){var s=t(186);r.exports=s},function(r,i,t){t(187);var s=t(9);r.exports=s.Array.isArray},function(r,i,t){t(5)({target:"Array",stat:!0},{isArray:t(55)})},function(r,i,t){var s=t(189);r.exports=s},function(r,i,t){var s=t(190),c=Array.prototype;r.exports=function(f){var d=f.map;return f===c||f instanceof Array&&d===c.map?s:d}},function(r,i,t){t(191);var s=t(15);r.exports=s("Array").map},function(r,i,t){var s=t(5),c=t(30).map,f=t(56),d=t(22),y=f("map"),b=d("map");s({target:"Array",proto:!0,forced:!y||!b},{map:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}})},function(r,i,t){var s=t(193);r.exports=s},function(r,i,t){var s=t(194),c=String.prototype;r.exports=function(f){var d=f.trim;return typeof f=="string"||f===c||f instanceof String&&d===c.trim?s:d}},function(r,i,t){t(195);var s=t(15);r.exports=s("String").trim},function(r,i,t){var s=t(5),c=t(90).trim;s({target:"String",proto:!0,forced:t(196)("trim")},{trim:function(){return c(this)}})},function(r,i,t){var s=t(11),c=t(68),f="\u200B\x85\u180E";r.exports=function(d){return s(function(){return!!c[d]()||f[d]()!=f||c[d].name!==d})}},function(r,i,t){var s=t(198);r.exports=s},function(r,i,t){t(199),t(61),t(50),t(54);var s=t(9);r.exports=s.Map},function(r,i,t){var s=t(121),c=t(123);r.exports=s("Map",function(f){return function(){return f(this,arguments.length?arguments[0]:void 0)}},c)},function(r,i,t){var s=t(11);r.exports=!s(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(r,i,t){var s=t(202);r.exports=s},function(r,i,t){var s=t(203),c=Array.prototype;r.exports=function(f){var d=f.indexOf;return f===c||f instanceof Array&&d===c.indexOf?s:d}},function(r,i,t){t(204);var s=t(15);r.exports=s("Array").indexOf},function(r,i,t){var s=t(5),c=t(78).indexOf,f=t(67),d=t(22),y=[].indexOf,b=!!y&&1/[1].indexOf(1,-0)<0,p=f("indexOf"),x=d("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:b||!p||!x},{indexOf:function(g){return b?y.apply(this,arguments)||0:c(this,g,arguments.length>1?arguments[1]:void 0)}})},function(r,i,t){var s=t(206);r.exports=s},function(r,i,t){var s=t(207),c=Array.prototype;r.exports=function(f){var d=f.splice;return f===c||f instanceof Array&&d===c.splice?s:d}},function(r,i,t){t(208);var s=t(15);r.exports=s("Array").splice},function(r,i,t){var s=t(5),c=t(79),f=t(62),d=t(34),y=t(29),b=t(88),p=t(69),x=t(56),g=t(22),A=x("splice"),w=g("splice",{ACCESSORS:!0,0:0,1:2}),E=Math.max,_=Math.min,D=9007199254740991,C="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!A||!w},{splice:function(M,T){var N,P,$,L,F,R,I=y(this),V=d(I.length),j=c(M,V),z=arguments.length;if(z===0?N=P=0:z===1?(N=0,P=V-j):(N=z-2,P=_(E(f(T),0),V-j)),V+N-P>D)throw TypeError(C);for($=b(I,P),L=0;L<P;L++)(F=j+L)in I&&p($,L,I[F]);if($.length=P,N<P){for(L=j;L<V-P;L++)R=L+N,(F=L+P)in I?I[R]=I[F]:delete I[R];for(L=V;L>V-P+N;L--)delete I[L-1]}else if(N>P)for(L=V-P;L>j;L--)R=L+N-1,(F=L+P-1)in I?I[R]=I[F]:delete I[R];for(L=0;L<N;L++)I[L+j]=arguments[L+2];return I.length=V-P+N,$}})},function(r,i,t){var s=t(210);r.exports=s},function(r,i,t){var s=t(211),c=Array.prototype;r.exports=function(f){var d=f.filter;return f===c||f instanceof Array&&d===c.filter?s:d}},function(r,i,t){t(212);var s=t(15);r.exports=s("Array").filter},function(r,i,t){var s=t(5),c=t(30).filter,f=t(56),d=t(22),y=f("filter"),b=d("filter");s({target:"Array",proto:!0,forced:!y||!b},{filter:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}})},function(r,i,t){var s=t(214);r.exports=s},function(r,i,t){var s=t(215),c=t(217),f=Array.prototype,d=String.prototype;r.exports=function(y){var b=y.includes;return y===f||y instanceof Array&&b===f.includes?s:typeof y=="string"||y===d||y instanceof String&&b===d.includes?c:b}},function(r,i,t){t(216);var s=t(15);r.exports=s("Array").includes},function(r,i,t){var s=t(5),c=t(78).includes,f=t(82);s({target:"Array",proto:!0,forced:!t(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(d){return c(this,d,arguments.length>1?arguments[1]:void 0)}}),f("includes")},function(r,i,t){t(218);var s=t(15);r.exports=s("String").includes},function(r,i,t){var s=t(5),c=t(219),f=t(49);s({target:"String",proto:!0,forced:!t(221)("includes")},{includes:function(d){return!!~String(f(this)).indexOf(c(d),arguments.length>1?arguments[1]:void 0)}})},function(r,i,t){var s=t(220);r.exports=function(c){if(s(c))throw TypeError("The method doesn't accept regular expressions");return c}},function(r,i,t){var s=t(13),c=t(33),f=t(10)("match");r.exports=function(d){var y;return s(d)&&((y=d[f])!==void 0?!!y:c(d)=="RegExp")}},function(r,i,t){var s=t(10)("match");r.exports=function(c){var f=/./;try{"/./"[c](f)}catch{try{return f[s]=!1,"/./"[c](f)}catch{}}return!1}},function(r,i,t){var s=t(223);r.exports=s},function(r,i,t){var s=t(224),c=Function.prototype;r.exports=function(f){var d=f.bind;return f===c||f instanceof Function&&d===c.bind?s:d}},function(r,i,t){t(225);var s=t(15);r.exports=s("Function").bind},function(r,i,t){t(5)({target:"Function",proto:!0},{bind:t(226)})},function(r,i,t){var s=t(40),c=t(13),f=[].slice,d={},y=function(b,p,x){if(!(p in d)){for(var g=[],A=0;A<p;A++)g[A]="a["+A+"]";d[p]=Function("C,a","return new C("+g.join(",")+")")}return d[p](b,x)};r.exports=Function.bind||function(b){var p=s(this),x=f.call(arguments,1),g=function(){var A=x.concat(f.call(arguments));return this instanceof g?y(p,A.length,A):p.apply(b,A)};return c(p.prototype)&&(g.prototype=p.prototype),g}},function(r,i,t){r.exports=t(228)},function(r,i,t){var s=t(229);r.exports=s},function(r,i,t){t(124),t(50),t(54);var s=t(93);r.exports=s.f("iterator")},function(r,i,t){r.exports=t(231)},function(r,i,t){var s=t(232);t(251),t(252),t(253),t(254),t(255),r.exports=s},function(r,i,t){t(233),t(61),t(234),t(236),t(237),t(238),t(239),t(124),t(240),t(241),t(242),t(243),t(244),t(245),t(246),t(247),t(248),t(249),t(250);var s=t(9);r.exports=s.Symbol},function(r,i,t){var s=t(5),c=t(11),f=t(55),d=t(13),y=t(29),b=t(34),p=t(69),x=t(88),g=t(56),A=t(10),w=t(86),E=A("isConcatSpreadable"),_=9007199254740991,D="Maximum allowed index exceeded",C=w>=51||!c(function(){var N=[];return N[E]=!1,N.concat()[0]!==N}),M=g("concat"),T=function(N){if(!d(N))return!1;var P=N[E];return P!==void 0?!!P:f(N)};s({target:"Array",proto:!0,forced:!C||!M},{concat:function(N){var P,$,L,F,R,I=y(this),V=x(I,0),j=0;for(P=-1,L=arguments.length;P<L;P++)if(T(R=P===-1?I:arguments[P])){if(j+(F=b(R.length))>_)throw TypeError(D);for($=0;$<F;$++,j++)$ in R&&p(V,j,R[$])}else{if(j>=_)throw TypeError(D);p(V,j++,R)}return V.length=j,V}})},function(r,i,t){var s=t(5),c=t(8),f=t(35),d=t(42),y=t(14),b=t(76),p=t(105),x=t(11),g=t(16),A=t(55),w=t(13),E=t(25),_=t(29),D=t(28),C=t(60),M=t(48),T=t(77),N=t(52),P=t(125),$=t(235),L=t(126),F=t(71),R=t(18),I=t(59),V=t(19),j=t(53),z=t(74),U=t(63),G=t(51),J=t(64),q=t(10),ee=t(93),te=t(12),ce=t(36),be=t(41),pe=t(30).forEach,oe=U("hidden"),se="Symbol",re="prototype",he=q("toPrimitive"),ke=be.set,Ne=be.getterFor(se),Be=Object[re],Le=c.Symbol,Ct=f("JSON","stringify"),st=F.f,Ke=R.f,ct=$.f,Mt=I.f,Ie=z("symbols"),dt=z("op-symbols"),Ht=z("string-to-symbol-registry"),Et=z("symbol-to-string-registry"),pn=z("wks"),qt=c.QObject,Tt=!qt||!qt[re]||!qt[re].findChild,Nt=y&&x(function(){return T(Ke({},"a",{get:function(){return Ke(this,"a",{value:7}).a}})).a!=7})?function(ae,de,ue){var Me=st(Be,de);Me&&delete Be[de],Ke(ae,de,ue),Me&&ae!==Be&&Ke(Be,de,Me)}:Ke,Rt=function(ae,de){var ue=Ie[ae]=T(Le[re]);return ke(ue,{type:se,tag:ae,description:de}),y||(ue.description=de),ue},Kt=p?function(ae){return _typeof(ae)=="symbol"}:function(ae){return Object(ae)instanceof Le},ut=function(ae,de,ue){ae===Be&&ut(dt,de,ue),E(ae);var Me=C(de,!0);return E(ue),g(Ie,Me)?(ue.enumerable?(g(ae,oe)&&ae[oe][Me]&&(ae[oe][Me]=!1),ue=T(ue,{enumerable:M(0,!1)})):(g(ae,oe)||Ke(ae,oe,M(1,{})),ae[oe][Me]=!0),Nt(ae,Me,ue)):Ke(ae,Me,ue)},Oe=function(ae,de){E(ae);var ue=D(de),Me=N(ue).concat(De(ue));return pe(Me,function(Te){(!y||It.call(ue,Te))&&ut(ae,Te,ue[Te])}),ae},nt=function(ae,de){return de===void 0?T(ae):Oe(T(ae),de)},It=function(ae){var de=C(ae,!0),ue=Mt.call(this,de);return!(this===Be&&g(Ie,de)&&!g(dt,de))&&(!(ue||!g(this,de)||!g(Ie,de)||g(this,oe)&&this[oe][de])||ue)},we=function(ae,de){var ue=D(ae),Me=C(de,!0);if(ue!==Be||!g(Ie,Me)||g(dt,Me)){var Te=st(ue,Me);return Te&&g(Ie,Me)&&!(g(ue,oe)&&ue[oe][Me])&&(Te.enumerable=!0),Te}},ve=function(ae){var de=ct(D(ae)),ue=[];return pe(de,function(Me){!g(Ie,Me)&&!g(G,Me)&&ue.push(Me)}),ue},De=function(ae){var de=ae===Be,ue=ct(de?dt:D(ae)),Me=[];return pe(ue,function(Te){g(Ie,Te)&&(!de||g(Be,Te))&&Me.push(Ie[Te])}),Me};b||(Le=function(){if(this instanceof Le)throw TypeError("Symbol is not a constructor");var ae=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,de=J(ae),ue=function Me(Te){this===Be&&Me.call(dt,Te),g(this,oe)&&g(this[oe],de)&&(this[oe][de]=!1),Nt(this,de,M(1,Te))};return y&&Tt&&Nt(Be,de,{configurable:!0,set:ue}),Rt(de,ae)},j(Le[re],"toString",function(){return Ne(this).tag}),j(Le,"withoutSetter",function(ae){return Rt(J(ae),ae)}),I.f=It,R.f=ut,F.f=we,P.f=$.f=ve,L.f=De,ee.f=function(ae){return Rt(q(ae),ae)},y&&(Ke(Le[re],"description",{configurable:!0,get:function(){return Ne(this).description}}),d||j(Be,"propertyIsEnumerable",It,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!b,sham:!b},{Symbol:Le}),pe(N(pn),function(ae){te(ae)}),s({target:se,stat:!0,forced:!b},{for:function(ae){var de=String(ae);if(g(Ht,de))return Ht[de];var ue=Le(de);return Ht[de]=ue,Et[ue]=de,ue},keyFor:function(ae){if(!Kt(ae))throw TypeError(ae+" is not a symbol");if(g(Et,ae))return Et[ae]},useSetter:function(){Tt=!0},useSimple:function(){Tt=!1}}),s({target:"Object",stat:!0,forced:!b,sham:!y},{create:nt,defineProperty:ut,defineProperties:Oe,getOwnPropertyDescriptor:we}),s({target:"Object",stat:!0,forced:!b},{getOwnPropertyNames:ve,getOwnPropertySymbols:De}),s({target:"Object",stat:!0,forced:x(function(){L.f(1)})},{getOwnPropertySymbols:function(ae){return L.f(_(ae))}}),Ct&&s({target:"JSON",stat:!0,forced:!b||x(function(){var ae=Le();return Ct([ae])!="[null]"||Ct({a:ae})!="{}"||Ct(Object(ae))!="{}"})},{stringify:function(ae,de,ue){for(var Me,Te=[ae],Pe=1;arguments.length>Pe;)Te.push(arguments[Pe++]);if(Me=de,(w(de)||ae!==void 0)&&!Kt(ae))return A(de)||(de=function(He,rt){if(typeof Me=="function"&&(rt=Me.call(this,He,rt)),!Kt(rt))return rt}),Te[1]=de,Ct.apply(null,Te)}}),Le[re][he]||V(Le[re],he,Le[re].valueOf),ce(Le,se),G[oe]=!0},function(r,i,t){var s=t(28),c=t(125).f,f={}.toString,d=(typeof window>"u"?"undefined":_typeof(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(b){try{return c(b)}catch{return d.slice()}};r.exports.f=function(b){return d&&f.call(b)=="[object Window]"?y(b):c(s(b))}},function(r,i,t){t(12)("asyncIterator")},function(r,i){},function(r,i,t){t(12)("hasInstance")},function(r,i,t){t(12)("isConcatSpreadable")},function(r,i,t){t(12)("match")},function(r,i,t){t(12)("matchAll")},function(r,i,t){t(12)("replace")},function(r,i,t){t(12)("search")},function(r,i,t){t(12)("species")},function(r,i,t){t(12)("split")},function(r,i,t){t(12)("toPrimitive")},function(r,i,t){t(12)("toStringTag")},function(r,i,t){t(12)("unscopables")},function(r,i,t){t(36)(Math,"Math",!0)},function(r,i,t){var s=t(8);t(36)(s.JSON,"JSON",!0)},function(r,i,t){t(12)("asyncDispose")},function(r,i,t){t(12)("dispose")},function(r,i,t){t(12)("observable")},function(r,i,t){t(12)("patternMatch")},function(r,i,t){t(12)("replaceAll")},function(r,i,t){r.exports=t(257)},function(r,i,t){var s=t(258);r.exports=s},function(r,i,t){t(259);var s=t(9);r.exports=s.parseInt},function(r,i,t){var s=t(5),c=t(260);s({global:!0,forced:parseInt!=c},{parseInt:c})},function(r,i,t){var s=t(8),c=t(90).trim,f=t(68),d=s.parseInt,y=/^[+-]?0[Xx]/,b=d(f+"08")!==8||d(f+"0x16")!==22;r.exports=b?function(p,x){var g=c(String(p));return d(g,x>>>0||(y.test(g)?16:10))}:d},function(r,i,t){var s=t(262);r.exports=s},function(r,i,t){var s=t(263),c=Array.prototype;r.exports=function(f){var d=f.slice;return f===c||f instanceof Array&&d===c.slice?s:d}},function(r,i,t){t(264);var s=t(15);r.exports=s("Array").slice},function(r,i,t){var s=t(5),c=t(13),f=t(55),d=t(79),y=t(34),b=t(28),p=t(69),x=t(10),g=t(56),A=t(22),w=g("slice"),E=A("slice",{ACCESSORS:!0,0:0,1:2}),_=x("species"),D=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!w||!E},{slice:function(M,T){var N,P,$,L=b(this),F=y(L.length),R=d(M,F),I=d(T===void 0?F:T,F);if(f(L)&&(typeof(N=L.constructor)!="function"||N!==Array&&!f(N.prototype)?c(N)&&(N=N[_])===null&&(N=void 0):N=void 0,N===Array||N===void 0))return D.call(L,R,I);for(P=new(N===void 0?Array:N)(C(I-R,0)),$=0;R<I;R++,$++)R in L&&p(P,$,L[R]);return P.length=$,P}})},function(r,i,t){t(266);var s=t(9);r.exports=s.setTimeout},function(r,i,t){var s=t(5),c=t(8),f=t(84),d=[].slice,y=function(b){return function(p,x){var g=arguments.length>2,A=g?d.call(arguments,2):void 0;return b(g?function(){(typeof p=="function"?p:Function(p)).apply(this,A)}:p,x)}};s({global:!0,bind:!0,forced:/MSIE .\./.test(f)},{setTimeout:y(c.setTimeout),setInterval:y(c.setInterval)})},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(127));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(272)),b=d.__importDefault(t(273)),p=d.__importDefault(t(128)),x=d.__importDefault(t(274)),g=d.__importDefault(t(275)),A=d.__importDefault(t(276)),w=d.__importDefault(t(129)),E=d.__importDefault(t(277)),_=d.__importDefault(t(278)),D=d.__importDefault(t(279)),C=(0,f.default)({},y.default,b.default,p.default,g.default,x.default,A.default,w.default,E.default,_.default,D.default,{linkCheck:function(M,T){return!0}});i.default=C},function(r,i,t){var s=t(269);r.exports=s},function(r,i,t){t(270);var s=t(9);r.exports=s.Object.assign},function(r,i,t){var s=t(5),c=t(271);s({target:"Object",stat:!0,forced:Object.assign!==c},{assign:c})},function(r,i,t){var s=t(14),c=t(11),f=t(52),d=t(126),y=t(59),b=t(29),p=t(72),x=Object.assign,g=Object.defineProperty;r.exports=!x||c(function(){if(s&&x({b:1},x(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var A={},w={},E=Symbol(),_="abcdefghijklmnopqrst";return A[E]=7,_.split("").forEach(function(D){w[D]=D}),x({},A)[E]!=7||f(x({},w)).join("")!=_})?function(A,w){for(var E=b(A),_=arguments.length,D=1,C=d.f,M=y.f;_>D;)for(var T,N=p(arguments[D++]),P=C?f(N).concat(C(N)):f(N),$=P.length,L=0;$>L;)T=P[L++],(!s||M.call(N,T))&&(E[T]=N[T]);return E}:x},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.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,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(7);function c(f,d,y){window.alert(f),y&&console.error("wangEditor: "+y)}i.default={onchangeTimeout:200,onchange:null,onfocus:s.EMPTY_FN,onblur:s.EMPTY_FN,onCatalogChange:null,customAlert:c}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(s){return s}}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default={styleWithCSS:!1}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(7);i.default={linkImgCheck:function(c,f,d){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:s.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.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:"undo",\u64A4\u9500:"redo",\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,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(6);function c(){return!(!s.UA.isIE()&&!s.UA.isOldEdge)}i.default={compatibleMode:c,historyMaxSize:30}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(7);i.default={onlineVideoCheck:function(c){return!0},onlineVideoCallback:s.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(3)),y=t(6),b=t(7),p=function(){function x(g){this._currentRange=null,this.editor=g}return x.prototype.getRange=function(){return this._currentRange},x.prototype.saveRange=function(g){if(g)this._currentRange=g;else{var A=window.getSelection();if(A.rangeCount!==0){var w=A.getRangeAt(0),E=this.getSelectionContainerElem(w);if(E!=null&&E.length&&E.attr("contenteditable")!=="false"&&!E.parentUntil("[contenteditable=false]")){var _=this.editor,D=_.$textElem;if(D.isContain(E)){var C;if(D.elems[0]===E.elems[0]&&(0,f.default)(C=D.html()).call(C)===b.EMPTY_P){var M=D.children(),T=M==null?void 0:M.last();_.selection.createRangeByElem(T,!0,!0),_.selection.restoreSelection()}this._currentRange=w}}}}},x.prototype.collapseRange=function(g){g===void 0&&(g=!1);var A=this._currentRange;A&&A.collapse(g)},x.prototype.getSelectionText=function(){var g=this._currentRange;return g?g.toString():""},x.prototype.getSelectionContainerElem=function(g){var A,w;if(A=g||this._currentRange)return w=A.commonAncestorContainer,d.default(w.nodeType===1?w:w.parentNode)},x.prototype.getSelectionStartElem=function(g){var A,w;if(A=g||this._currentRange)return w=A.startContainer,d.default(w.nodeType===1?w:w.parentNode)},x.prototype.getSelectionEndElem=function(g){var A,w;if(A=g||this._currentRange)return w=A.endContainer,d.default(w.nodeType===1?w:w.parentNode)},x.prototype.isSelectionEmpty=function(){var g=this._currentRange;return!(!g||!g.startContainer||g.startContainer!==g.endContainer||g.startOffset!==g.endOffset)},x.prototype.restoreSelection=function(){var g=window.getSelection(),A=this._currentRange;g&&A&&(g.removeAllRanges(),g.addRange(A))},x.prototype.createEmptyRange=function(){var g,A=this.editor,w=this.getRange();if(w&&this.isSelectionEmpty())try{y.UA.isWebkit()?(A.cmd.do("insertHTML","&#8203;"),w.setEnd(w.endContainer,w.endOffset+1),this.saveRange(w)):(g=d.default("<strong>&#8203;</strong>"),A.cmd.do("insertElem",g),this.createRangeByElem(g,!0))}catch{}},x.prototype.createRangeByElems=function(g,A){var w=window.getSelection?window.getSelection():document.getSelection();w==null||w.removeAllRanges();var E=document.createRange();E.setStart(g,0),E.setEnd(A,A.childNodes.length||1),this.saveRange(E),this.restoreSelection()},x.prototype.createRangeByElem=function(g,A,w){if(g.length){var E=g.elems[0],_=document.createRange();w?_.selectNodeContents(E):_.selectNode(E),A!=null&&(_.collapse(A),A||(this.saveRange(_),this.editor.selection.moveCursor(E))),this.saveRange(_)}},x.prototype.getSelectionRangeTopNodes=function(){var g,A,w=(g=this.getSelectionStartElem())===null||g===void 0?void 0:g.getNodeTop(this.editor),E=(A=this.getSelectionEndElem())===null||A===void 0?void 0:A.getNodeTop(this.editor);return this.recordSelectionNodes(d.default(w),d.default(E))},x.prototype.moveCursor=function(g,A){var w,E=this.getRange(),_=g.nodeType===3?(w=g.nodeValue)===null||w===void 0?void 0:w.length:g.childNodes.length;(y.UA.isFirefox||y.UA.isIE())&&_!==0&&(g.nodeType===3||g.childNodes[_-1].nodeName==="BR")&&(_-=1);var D=A??_;!E||g&&(E.setStart(g,D),E.setEnd(g,D),this.restoreSelection())},x.prototype.getCursorPos=function(){var g=window.getSelection();return g==null?void 0:g.anchorOffset},x.prototype.clearWindowSelectionRange=function(){var g=window.getSelection();g&&g.removeAllRanges()},x.prototype.recordSelectionNodes=function(g,A){var w=[],E=!0;try{for(var _=g,D=this.editor.$textElem;E;){var C=_==null?void 0:_.getNodeTop(this.editor);C.getNodeName()==="BODY"&&(E=!1),C.length>0&&(w.push(d.default(_)),A!=null&&A.equal(C)||D.equal(C)?E=!1:_=C.getNextSibling())}}catch{E=!1}return w},x.prototype.setRangeToElem=function(g){var A=this.getRange();A==null||A.setStart(g,0),A==null||A.setEnd(g,0)},x}();i.default=p},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(3)),c=function(){function f(d){this.editor=d}return f.prototype.do=function(d,y){var b=this.editor;b.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var p=b.selection;if(p.getRange()){switch(p.restoreSelection(),d){case"insertHTML":this.insertHTML(y);break;case"insertElem":this.insertElem(y);break;default:this.execCommand(d,y)}b.menus.changeActive(),p.saveRange(),p.restoreSelection()}},f.prototype.insertHTML=function(d){var y=this.editor,b=y.selection.getRange();if(b!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",d);else if(b.insertNode){if(b.deleteContents(),s.default(d).elems.length>0)b.insertNode(s.default(d).elems[0]);else{var p=document.createElement("p");p.appendChild(document.createTextNode(d)),b.insertNode(p)}y.selection.collapseRange()}}},f.prototype.insertElem=function(d){var y=this.editor.selection.getRange();y!=null&&y.insertNode&&(y.deleteContents(),y.insertNode(d.elems[0]))},f.prototype.execCommand=function(d,y){document.execCommand(d,!1,y)},f.prototype.queryCommandValue=function(d){return document.queryCommandValue(d)},f.prototype.queryCommandState=function(d){return document.queryCommandState(d)},f.prototype.queryCommandSupported=function(d){return document.queryCommandSupported(d)},f}();i.default=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(31)),d=s(t(4)),y=s(t(17)),b=s(t(27)),p=s(t(46));(0,c.default)(i,"__esModule",{value:!0});var x=t(2),g=x.__importDefault(t(3)),A=x.__importDefault(t(287)),w=t(6),E=x.__importDefault(t(299)),_=x.__importDefault(t(300)),D=t(7),C=function(){function M(T){this.editor=T,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 M.prototype.init=function(){this._saveRange(),this._bindEventHooks(),A.default(this)},M.prototype.togglePlaceholder=function(){var T,N=this.html(),P=(0,f.default)(T=this.editor.$textContainerElem).call(T,".placeholder");P.hide(),!this.editor.isComposing&&(!N||N===" ")&&P.show()},M.prototype.clear=function(){this.html(D.EMPTY_P)},M.prototype.html=function(T){var N=this.editor,P=N.$textElem;if(T==null){var $=P.html(),L=($=($=($=($=$.replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(D.EMPTY_P_LAST_REGEX,"")).replace(D.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi);return L!==null&&(0,d.default)(L).call(L,function(F){F.match(/\/>/)||($=$.replace(F,F.substring(0,F.length-1)+"/>"))}),$}(T=(0,y.default)(T).call(T))===""&&(T=D.EMPTY_P),(0,b.default)(T).call(T,"<")!==0&&(T="<p>"+T+"</p>"),P.html(T),N.initSelection()},M.prototype.setJSON=function(T){var N=_.default(T).children(),P=this.editor.$textElem;!N||P.replaceChildAll(N)},M.prototype.getJSON=function(){var T=this.editor.$textElem;return E.default(T)},M.prototype.text=function(T){var N=this.editor,P=N.$textElem;if(T==null){var $=P.text();return $=$.replace(/\u200b/gm,"")}P.text("<p>"+T+"</p>"),N.initSelection()},M.prototype.append=function(T){var N=this.editor;(0,b.default)(T).call(T,"<")!==0&&(T="<p>"+T+"</p>"),this.html(this.html()+T),N.initSelection()},M.prototype._saveRange=function(){var T=this.editor,N=T.$textElem,P=g.default(document);function $(){T.selection.saveRange(),T.menus.changeActive()}function L(){$(),N.off("click",L)}function F(){$(),P.off("mouseup",F)}function R(){P.on("mouseup",F),N.off("mouseleave",R)}N.on("keyup",$),N.on("click",L),N.on("mousedown",function(){N.on("mouseleave",R)}),N.on("mouseup",function(I){N.off("mouseleave",R),(0,p.default)(function(){T.selection.getRange()!==null&&$()},0)})},M.prototype._bindEventHooks=function(){var T=this.editor,N=T.$textElem,P=this.eventHooks;function $(L){L.preventDefault()}N.on("click",function(L){var F=P.clickEvents;(0,d.default)(F).call(F,function(R){return R(L)})}),N.on("keyup",function(L){if(L.keyCode===13){var F=P.enterUpEvents;(0,d.default)(F).call(F,function(R){return R(L)})}}),N.on("keyup",function(L){var F=P.keyupEvents;(0,d.default)(F).call(F,function(R){return R(L)})}),N.on("keydown",function(L){var F=P.keydownEvents;(0,d.default)(F).call(F,function(R){return R(L)})}),N.on("keyup",function(L){if(L.keyCode===8||L.keyCode===46){var F=P.deleteUpEvents;(0,d.default)(F).call(F,function(R){return R(L)})}}),N.on("keydown",function(L){if(L.keyCode===8||L.keyCode===46){var F=P.deleteDownEvents;(0,d.default)(F).call(F,function(R){return R(L)})}}),N.on("paste",function(L){if(!w.UA.isIE()){L.preventDefault();var F=P.pasteEvents;(0,d.default)(F).call(F,function(R){return R(L)})}}),N.on("keydown",function(L){(T.isFocus||T.isCompatibleMode)&&(L.ctrlKey||L.metaKey)&&L.keyCode===90&&(L.preventDefault(),L.shiftKey?T.history.restore():T.history.revoke())}),N.on("keyup",function(L){if(L.keyCode===9){L.preventDefault();var F=P.tabUpEvents;(0,d.default)(F).call(F,function(R){return R(L)})}}),N.on("keydown",function(L){if(L.keyCode===9){L.preventDefault();var F=P.tabDownEvents;(0,d.default)(F).call(F,function(R){return R(L)})}}),N.on("scroll",w.throttle(function(L){var F=P.textScrollEvents;(0,d.default)(F).call(F,function(R){return R(L)})},100)),g.default(document).on("dragleave",$).on("drop",$).on("dragenter",$).on("dragover",$),T.beforeDestroy(function(){g.default(document).off("dragleave",$).off("drop",$).off("dragenter",$).off("dragover",$)}),N.on("drop",function(L){L.preventDefault();var F=P.dropEvents;(0,d.default)(F).call(F,function(R){return R(L)})}),N.on("click",function(L){var F=null,R=L.target,I=g.default(R);if(I.getNodeName()==="A")F=I;else{var V=I.parentUntil("a");V!=null&&(F=V)}if(F){var j=P.linkClickEvents;(0,d.default)(j).call(j,function(z){return z(F)})}}),N.on("click",function(L){var F=null,R=L.target,I=g.default(R);if(I.getNodeName()==="IMG"&&!I.elems[0].getAttribute("data-emoji")&&(L.stopPropagation(),F=I),F){var V=P.imgClickEvents;(0,d.default)(V).call(V,function(j){return j(F)})}}),N.on("click",function(L){var F=null,R=L.target,I=g.default(R);if(I.getNodeName()==="PRE")F=I;else{var V=I.parentUntil("pre");V!==null&&(F=V)}if(F){var j=P.codeClickEvents;(0,d.default)(j).call(j,function(z){return z(F)})}}),N.on("click",function(L){var F=null,R=L.target,I=g.default(R);if(I.getNodeName()==="HR"&&(F=I),F){T.selection.createRangeByElem(F),T.selection.restoreSelection();var V=P.splitLineEvents;(0,d.default)(V).call(V,function(j){return j(F)})}}),T.$toolbarElem.on("click",function(L){var F=P.toolbarClickEvents;(0,d.default)(F).call(F,function(R){return R(L)})}),T.$textContainerElem.on("mousedown",function(L){var F=L.target;if(g.default(F).hasClass("w-e-img-drag-rb")){var R=P.imgDragBarMouseDownEvents;(0,d.default)(R).call(R,function(I){return I()})}}),N.on("click",function(L){var F=null,R=L.target;if(F=g.default(R).parentUntilEditor("TABLE",T,R)){var I=P.tableClickEvents;(0,d.default)(I).call(I,function(V){return V(F,L)})}}),N.on("keydown",function(L){if(L.keyCode===13){var F=P.enterDownEvents;(0,d.default)(F).call(F,function(R){return R(L)})}}),N.on("click",function(L){var F=null,R=L.target,I=g.default(R);if(I.getNodeName()==="VIDEO"&&(L.stopPropagation(),F=I),F){var V=P.videoClickEvents;(0,d.default)(V).call(V,function(j){return j(F)})}})},M}();i.default=C},function(r,i,t){var s=t(284);r.exports=s},function(r,i,t){var s=t(285),c=Array.prototype;r.exports=function(f){var d=f.find;return f===c||f instanceof Array&&d===c.find?s:d}},function(r,i,t){t(286);var s=t(15);r.exports=s("Array").find},function(r,i,t){var s=t(5),c=t(30).find,f=t(82),d=t(22),y="find",b=!0,p=d(y);y in[]&&Array(1)[y](function(){b=!1}),s({target:"Array",proto:!0,forced:b||!p},{find:function(x){return c(this,x,arguments.length>1?arguments[1]:void 0)}}),f(y)},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(288)),f=s.__importStar(t(289)),d=s.__importDefault(t(290)),y=s.__importDefault(t(291)),b=s.__importDefault(t(298));function p(x){var g=x.editor,A=x.eventHooks;c.default(g,A.enterUpEvents,A.enterDownEvents),f.default(g,A.deleteUpEvents,A.deleteDownEvents),f.cutToKeepP(g,A.keyupEvents),d.default(g,A.tabDownEvents),y.default(g,A.pasteEvents),b.default(g,A.imgClickEvents)}i.default=p},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(27));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=t(7),b=d.__importDefault(t(3));function p(x,g,A){function w(D){var C,M=b.default(y.EMPTY_P);M.insertBefore(D),(0,f.default)(C=D.html()).call(C,"<img")>=0?M.remove():(x.selection.createRangeByElem(M,!0,!0),x.selection.restoreSelection(),D.remove())}function E(){var D=x.$textElem,C=x.selection.getSelectionContainerElem(),M=C.parent();M.html()==="<code><br></code>"||C.getNodeName()==="FONT"&&C.text()===""&&C.attr("face")==="monospace"?w(M):M.equal(D)&&(C.getNodeName()==="P"&&C.attr("data-we-empty-p")===null||C.text()||w(C))}function _(D){var C;x.selection.saveRange((C=getSelection())===null||C===void 0?void 0:C.getRangeAt(0)),x.selection.getSelectionContainerElem().id===x.textElemId&&(D.preventDefault(),x.cmd.do("insertHTML","<p><br></p>"))}g.push(E),A.push(_)}i.default=p},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(17)),d=s(t(44));(0,c.default)(i,"__esModule",{value:!0}),i.cutToKeepP=void 0;var y=t(2),b=t(7),p=y.__importDefault(t(3));function x(A,w,E){function _(){var C=A.$textElem,M=A.$textElem.html(),T=A.$textElem.text(),N=(0,f.default)(M).call(M),P=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',b.EMPTY_P];/^\s*$/.test(T)&&(!N||(0,d.default)(P).call(P,N))&&(C.html(b.EMPTY_P),A.selection.createRangeByElem(C,!1,!0),A.selection.restoreSelection(),A.selection.moveCursor(C.getNode(),0))}function D(C){var M,T=A.$textElem;(0,f.default)(M=T.html().toLowerCase()).call(M)!==b.EMPTY_P||C.preventDefault()}w.push(_),E.push(D)}function g(A,w){function E(_){var D;if(_.keyCode===88){var C=A.$textElem,M=(0,f.default)(D=C.html().toLowerCase()).call(D);if(!M||M==="<br>"){var T=p.default(b.EMPTY_P);C.html(" "),C.append(T),A.selection.createRangeByElem(T,!1,!0),A.selection.restoreSelection(),A.selection.moveCursor(T.getNode(),0)}}}w.push(E)}i.cutToKeepP=g,i.default=x},function(r,i,t){function s(c,f){function d(){if(c.cmd.queryCommandSupported("insertHTML")){var y=c.selection.getSelectionContainerElem();if(y){var b=y.parent(),p=y.getNodeName(),x=b.getNodeName();p=="CODE"||x==="CODE"||x==="PRE"||/hljs/.test(x)?c.cmd.do("insertHTML",c.config.languageTab):c.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}f.push(d)}(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default=s},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var d=t(130),y=t(6),b=t(7);function p(E){var _,D=(0,f.default)(_=E.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(_),C=document.createElement("div");return C.innerHTML=D,C.innerHTML.replace(/<p><\/p>/gim,"")}function x(E){return E.replace(/<br>|<br\/>/gm,`
  653. `).replace(/<[^>]+>/gm,"")}function g(E){var _;if(E==="")return!1;var D=document.createElement("div");return D.innerHTML=E,((_=D.firstChild)===null||_===void 0?void 0:_.nodeName)==="P"}function A(E){if(E==null||!E.length)return!1;var _=E.elems[0];return _.nodeName==="P"&&_.innerHTML==="<br>"}function w(E,_){function D(C){var M=E.config,T=M.pasteFilterStyle,N=M.pasteIgnoreImg,P=M.pasteTextHandle,$=d.getPasteHtml(C,T,N),L=d.getPasteText(C);L=L.replace(/\n/gm,"<br>");var F=E.selection.getSelectionContainerElem();if(F){var R=F==null?void 0:F.getNodeName(),I=F==null?void 0:F.getNodeTop(E),V="";if(I.elems[0]&&(V=I==null?void 0:I.getNodeName()),R==="CODE"||V==="PRE")return P&&y.isFunction(P)&&(L=""+(P(L)||"")),void E.cmd.do("insertHTML",x(L));if(b.urlRegex.test(L)&&T){P&&y.isFunction(P)&&(L=""+(P(L)||""));var j=b.urlRegex.exec(L)[0],z=L.replace(b.urlRegex,"");return E.cmd.do("insertHTML",'<a href="'+j+'" target="_blank">'+j+"</a>"+z)}if($)try{if(P&&y.isFunction(P)&&($=""+(P($)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test($)&&T)E.cmd.do("insertHTML",""+p(L));else{var U=p($);if(g(U)){var G=E.$textElem;if(E.cmd.do("insertHTML",U),G.equal(F))return void E.selection.createEmptyRange();A(I)&&I.remove()}else/^<img [^>]*src=['"]([^'"]+)[^>]*>$/g.test(U)||E.cmd.do("insertHTML",U)}}catch{P&&y.isFunction(P)&&(L=""+(P(L)||"")),E.cmd.do("insertHTML",""+p(L))}}}_.push(D)}i.default=w},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(17)),d=s(t(4)),y=s(t(44));(0,c.default)(i,"__esModule",{value:!0});var b=t(2),p=t(293),x=b.__importDefault(t(297));function g(D){var C=/<span>.*?<\/span>/gi,M=/<span>(.*?)<\/span>/;return D.replace(C,function(T){var N=T.match(M);return N==null?"":N[1]})}function A(D,C){var M;return D=(0,f.default)(M=D.toLowerCase()).call(M),!!(p.IGNORE_TAGS.has(D)||C&&D==="img")}function w(D,C){var M="";M="<"+D;var T=[];return(0,d.default)(C).call(C,function(N){T.push(N.name+'="'+N.value+'"')}),T.length>0&&(M=M+" "+T.join(" ")),M=M+(p.EMPTY_TAGS.has(D)?"/":"")+">"}function E(D){return"</"+D+">"}function _(D,C,M){C===void 0&&(C=!0),M===void 0&&(M=!1);var T=[],N="";function P(F){(F=(0,f.default)(F).call(F))&&(p.EMPTY_TAGS.has(F)||(N=F))}function $(){N=""}new x.default().parse(D,{startElement:function(F,R){if(P(F),!A(F,M)){var I=p.NECESSARY_ATTRS.get(F)||[],V=[];(0,d.default)(R).call(R,function(z){var U=z.name;U!=="style"?(0,y.default)(I).call(I,U)!==!1&&V.push(z):C||V.push(z)});var j=w(F,V);T.push(j)}},characters:function(F){!F||A(N,M)||T.push(F)},endElement:function(F){if(!A(F,M)){var R=E(F);T.push(R),$()}},comment:function(F){P(F)}});var L=T.join("");return L=g(L)}i.default=_},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(131)),d=s(t(120));(0,c.default)(i,"__esModule",{value:!0}),i.TOP_LEVEL_TAGS=i.EMPTY_TAGS=i.NECESSARY_ATTRS=i.IGNORE_TAGS=void 0,i.IGNORE_TAGS=new f.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),i.NECESSARY_ATTRS=new d.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),i.EMPTY_TAGS=new f.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),i.TOP_LEVEL_TAGS=new f.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(r,i,t){var s=t(295);r.exports=s},function(r,i,t){t(296),t(61),t(50),t(54);var s=t(9);r.exports=s.Set},function(r,i,t){var s=t(121),c=t(123);r.exports=s("Set",function(f){return function(){return f(this,arguments.length?arguments[0]:void 0)}},c)},function(r,i){function t(){}t.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(s,c){c&&(this.contentHandler=c);for(var f,d,y,b=!1,p=this;s.length>0;)s.substring(0,4)=="<!--"?(y=s.indexOf("-->"))!=-1?(this.contentHandler.comment(s.substring(4,y)),s=s.substring(y+3),b=!1):b=!0:s.substring(0,2)=="</"?this.endTagRe.test(s)?(f=RegExp.lastMatch,d=RegExp.rightContext,f.replace(this.endTagRe,function(){return p.parseEndTag.apply(p,arguments)}),s=d,b=!1):b=!0:s.charAt(0)=="<"&&(this.startTagRe.test(s)?(f=RegExp.lastMatch,d=RegExp.rightContext,f.replace(this.startTagRe,function(){return p.parseStartTag.apply(p,arguments)}),s=d,b=!1):b=!0),b&&((y=s.indexOf("<"))==-1?(this.contentHandler.characters(s),s=""):(this.contentHandler.characters(s.substring(0,y)),s=s.substring(y))),b=!0},parseStartTag:function(s,c,f){var d=this.parseAttributes(c,f);this.contentHandler.startElement(c,d)},parseEndTag:function(s,c){this.contentHandler.endElement(c)},parseAttributes:function(s,c){var f=this,d=[];return c.replace(this.attrRe,function(y,b,p,x,g,A,w,E){d.push(f.parseAttribute(s,y,b,p,x,g,A,w,E))}),d},parseAttribute:function(s,c,f){var d="";return arguments[7]?d=arguments[8]:arguments[5]?d=arguments[6]:arguments[3]&&(d=arguments[4]),{name:f,value:d||arguments[3]?d:null}}},r.exports=t},function(r,i,t){function s(c,f){function d(y){c.selection.createRangeByElem(y),c.selection.restoreSelection()}f.push(d)}(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default=s},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=t(6),b=d.__importDefault(t(3));function p(x){var g=[],A=x.childNodes()||[];return(0,f.default)(A).call(A,function(w){var E,_=w.nodeType;if(_===3&&(E=w.textContent||"",E=y.replaceHtmlSymbol(E)),_===1){(E={}).tag=w.nodeName.toLowerCase();for(var D=[],C=w.attributes,M=C.length||0,T=0;T<M;T++){var N=C[T];D.push({name:N.name,value:N.value})}E.attrs=D,E.children=p(b.default(w))}E&&g.push(E)}),g}i.default=p},function(r,i,t){var s=t(0),c=s(t(92)),f=s(t(1)),d=s(t(4));(0,f.default)(i,"__esModule",{value:!0});var y=t(2).__importDefault(t(3));function b(p,x){x===void 0&&(x=document.createElement("div"));var g=x;return(0,d.default)(p).call(p,function(A){var w,E;typeof A=="string"&&(w=document.createTextNode(A)),(0,c.default)(A)==="object"&&(w=document.createElement(A.tag),(0,d.default)(E=A.attrs).call(E,function(_){y.default(w).attr(_.name,_.value)}),A.children&&A.children.length>0&&b(A.children,w.getRootNode())),w&&g.appendChild(w)}),y.default(g)}i.default=b},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(89)),d=s(t(70)),y=s(t(44)),b=s(t(302)),p=s(t(4)),x=s(t(94)),g=s(t(132)),A=s(t(46)),w=s(t(57));(0,c.default)(i,"__esModule",{value:!0});var E=t(2),_=E.__importDefault(t(87)),D=E.__importDefault(t(314)),C=E.__importDefault(t(3)),M=function(){function T(N){this.editor=N,this.menuList=[],this.constructorList=D.default}return T.prototype.extend=function(N,P){!P||typeof P!="function"||(this.constructorList[N]=P)},T.prototype.init=function(){var N,P,$=this,L=this.editor.config,F=L.excludeMenus;(0,f.default)(F)===!1&&(F=[]),L.menus=(0,d.default)(N=L.menus).call(N,function(G){return(0,y.default)(F).call(F,G)===!1});var R=(0,b.default)(_.default.globalCustomMenuConstructorList);R=(0,d.default)(R).call(R,function(G){return(0,y.default)(F).call(F,G)}),(0,p.default)(R).call(R,function(G){delete _.default.globalCustomMenuConstructorList[G]}),(0,p.default)(P=L.menus).call(P,function(G){var J=$.constructorList[G];$._initMenuList(G,J)});for(var I=0,V=(0,x.default)(_.default.globalCustomMenuConstructorList);I<V.length;I++){var j=V[I],z=j[0],U=j[1];this._initMenuList(z,U)}this._addToToolbar(),L.showMenuTooltips&&this._bindMenuTooltips()},T.prototype._initMenuList=function(N,P){var $;if(P!=null&&typeof P=="function")if((0,g.default)($=this.menuList).call($,function(F){return F.key===N}))console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:"+N);else{var L=new P(this.editor);L.key=N,this.menuList.push(L)}},T.prototype._bindMenuTooltips=function(){var N=this.editor,P=N.$toolbarElem,$=N.config.menuTooltipPosition,L=C.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+$+`">
  654. <div class="w-e-menu-tooltip-item-wrapper">
  655. <div></div>
  656. </div>
  657. </div>`);L.css("visibility","hidden"),P.append(L),L.css("z-index",N.zIndex.get("tooltip"));var F=0;function R(){F&&clearTimeout(F)}function I(){R(),L.css("visibility","hidden")}P.on("mouseover",function(V){var j,z,U=V.target,G=C.default(U);if(G.isContain(P))I();else{if(G.parentUntil(".w-e-droplist")!=null)I();else if(G.attr("data-title"))j=G.attr("data-title"),z=G;else{var J=G.parentUntil(".w-e-menu");J!=null&&(j=J.attr("data-title"),z=J)}if(j&&z){R();var q=z.getOffsetData();L.text(N.i18next.t("menus.title."+j));var ee=L.getOffsetData(),te=q.left+q.width/2-ee.width/2;L.css("left",te+"px"),$==="up"?L.css("top",q.top-ee.height-8+"px"):$==="down"&&L.css("top",q.top+q.height+8+"px"),F=(0,A.default)(function(){L.css("visibility","visible")},200)}else I()}}).on("mouseleave",function(){I()})},T.prototype._addToToolbar=function(){var N,P=this.editor.$toolbarElem;(0,p.default)(N=this.menuList).call(N,function($){var L=$.$elem;L&&P.append(L)})},T.prototype.menuFind=function(N){for(var P=this.menuList,$=0,L=P.length;$<L;$++)if(P[$].key===N)return P[$];return P[0]},T.prototype.changeActive=function(){var N;(0,p.default)(N=this.menuList).call(N,function(P){var $;(0,A.default)((0,w.default)($=P.tryChangeActive).call($,P),100)})},T}();i.default=M},function(r,i,t){r.exports=t(303)},function(r,i,t){var s=t(304);r.exports=s},function(r,i,t){t(305);var s=t(9);r.exports=s.Object.keys},function(r,i,t){var s=t(5),c=t(29),f=t(52);s({target:"Object",stat:!0,forced:t(11)(function(){f(1)})},{keys:function(d){return f(c(d))}})},function(r,i,t){var s=t(307);r.exports=s},function(r,i,t){t(308);var s=t(9);r.exports=s.Object.entries},function(r,i,t){var s=t(5),c=t(309).entries;s({target:"Object",stat:!0},{entries:function(f){return c(f)}})},function(r,i,t){var s=t(14),c=t(52),f=t(28),d=t(59).f,y=function(b){return function(p){for(var x,g=f(p),A=c(g),w=A.length,E=0,_=[];w>E;)x=A[E++],(!s||d.call(g,x))&&_.push(b?[x,g[x]]:g[x]);return _}};r.exports={entries:y(!0),values:y(!1)}},function(r,i,t){var s=t(311);r.exports=s},function(r,i,t){var s=t(312),c=Array.prototype;r.exports=function(f){var d=f.some;return f===c||f instanceof Array&&d===c.some?s:d}},function(r,i,t){t(313);var s=t(15);r.exports=s("Array").some},function(r,i,t){var s=t(5),c=t(30).some,f=t(67),d=t(22),y=f("some"),b=d("some");s({target:"Array",proto:!0,forced:!y||!b},{some:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}})},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(315)),f=s.__importDefault(t(316)),d=s.__importDefault(t(321)),y=s.__importDefault(t(326)),b=s.__importDefault(t(327)),p=s.__importDefault(t(328)),x=s.__importDefault(t(329)),g=s.__importDefault(t(331)),A=s.__importDefault(t(333)),w=s.__importDefault(t(334)),E=s.__importDefault(t(337)),_=s.__importDefault(t(338)),D=s.__importDefault(t(339)),C=s.__importDefault(t(350)),M=s.__importDefault(t(365)),T=s.__importDefault(t(369)),N=s.__importDefault(t(137)),P=s.__importDefault(t(378)),$=s.__importDefault(t(380)),L=s.__importDefault(t(381)),F=s.__importDefault(t(382)),R=s.__importDefault(t(401)),I=s.__importDefault(t(406)),V=s.__importDefault(t(409));i.default={bold:c.default,head:f.default,italic:y.default,link:d.default,underline:b.default,strikeThrough:p.default,fontName:x.default,fontSize:g.default,justify:A.default,quote:w.default,backColor:E.default,foreColor:_.default,video:D.default,image:C.default,indent:M.default,emoticon:T.default,list:N.default,lineHeight:P.default,undo:$.default,redo:L.default,table:F.default,code:R.default,splitLine:I.default,todo:V.default}},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(23)),f=s.__importDefault(t(3)),d=function(y){function b(p){var x=f.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
  658. <i class="w-e-icon-bold"></i>
  659. </div>`);return y.call(this,x,p)||this}return s.__extends(b,y),b.prototype.clickHandler=function(){var p=this.editor,x=p.selection.isSelectionEmpty();x&&p.selection.createEmptyRange(),p.cmd.do("bold"),x&&(p.selection.collapseRange(),p.selection.restoreSelection())},b.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},b}(c.default);i.default=d},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(27)),d=s(t(31)),y=s(t(4)),b=s(t(317)),p=s(t(44));(0,c.default)(i,"__esModule",{value:!0});var x=t(2),g=x.__importDefault(t(24)),A=x.__importDefault(t(3)),w=t(6),E=t(7),_=function(D){function C(M){var T=this,N=A.default('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),P={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:A.default("<h1>H1</h1>"),value:"<h1>"},{$elem:A.default("<h2>H2</h2>"),value:"<h2>"},{$elem:A.default("<h3>H3</h3>"),value:"<h3>"},{$elem:A.default("<h4>H4</h4>"),value:"<h4>"},{$elem:A.default("<h5>H5</h5>"),value:"<h5>"},{$elem:A.default("<p>"+M.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],clickHandler:function($){T.command($)}};return T=D.call(this,N,M,P)||this,M.config.onCatalogChange&&(T.oldCatalogs=[],T.addListenerCatalog(),T.getCatalogs()),T}return x.__extends(C,D),C.prototype.command=function(M){var T=this.editor,N=T.selection.getSelectionContainerElem();if(N&&T.$textElem.equal(N))this.setMultilineHead(M);else{var P;if((0,f.default)(P=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(P,A.default(N).getNodeName())>-1)return;T.cmd.do("formatBlock",M)}M!=="<p>"&&this.addUidForSelectionElem()},C.prototype.addUidForSelectionElem=function(){var M=this.editor.selection.getSelectionContainerElem(),T=w.getRandomCode();A.default(M).attr("id",T)},C.prototype.addListenerCatalog=function(){var M=this;this.editor.txt.eventHooks.changeEvents.push(function(){M.getCatalogs()})},C.prototype.getCatalogs=function(){var M=this.editor,T=this.editor.$textElem,N=M.config.onCatalogChange,P=(0,d.default)(T).call(T,"h1,h2,h3,h4,h5"),$=[];(0,y.default)(P).call(P,function(L,F){var R=A.default(L),I=R.attr("id"),V=R.getNodeName(),j=R.text();I||(I=w.getRandomCode(),R.attr("id",I)),j&&$.push({tag:V,id:I,text:j})}),(0,b.default)(this.oldCatalogs)!==(0,b.default)($)&&(this.oldCatalogs=$,N&&N($))},C.prototype.setMultilineHead=function(M){var T,N,P=this,$=this.editor,L=$.selection,F=(T=L.getSelectionContainerElem())===null||T===void 0?void 0:T.elems[0],R=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],I=A.default(L.getSelectionStartElem()),V=A.default(L.getSelectionEndElem());V.elems[0].outerHTML===A.default(E.EMPTY_P).elems[0].outerHTML&&!V.elems[0].nextSibling&&(V=V.prev());var j=[];j.push(I.getNodeTop($));var z=[],U=(N=L.getRange())===null||N===void 0?void 0:N.commonAncestorContainer.childNodes;U==null||(0,y.default)(U).call(U,function(q,ee){q===j[0].getNode()&&z.push(ee),q===V.getNodeTop($).getNode()&&z.push(ee)});for(var G=0;j[G].getNode()!==V.getNodeTop($).getNode();){if(!j[G].elems[0])return;var J=A.default(j[G].next().getNode());j.push(J),G++}j==null||(0,y.default)(j).call(j,function(q,ee){if(!P.hasTag(q,R)){var te=A.default(M),ce=q.parent().getNode();te.html(""+q.html()),ce.insertBefore(te.getNode(),q.getNode()),q.remove()}}),L.createRangeByElems(F.children[z[0]],F.children[z[1]])},C.prototype.hasTag=function(M,T){var N,P=this;if(!M)return!1;if((0,p.default)(T).call(T,M==null?void 0:M.getNodeName()))return!0;var $=!1;return(N=M.children())===null||N===void 0||(0,y.default)(N).call(N,function(L){$=P.hasTag(A.default(L),T)}),$},C.prototype.tryChangeActive=function(){var M=/^h/i,T=this.editor.cmd.queryCommandValue("formatBlock");M.test(T)?this.active():this.unActive()},C}(g.default);i.default=_},function(r,i,t){r.exports=t(318)},function(r,i,t){var s=t(319);r.exports=s},function(r,i,t){t(320);var s=t(9);s.JSON||(s.JSON={stringify:JSON.stringify}),r.exports=function(c,f,d){return s.JSON.stringify.apply(null,arguments)}},function(r,i,t){var s=t(5),c=t(35),f=t(11),d=c("JSON","stringify"),y=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,p=/^[\uDC00-\uDFFF]$/,x=function(A,w,E){var _=E.charAt(w-1),D=E.charAt(w+1);return b.test(A)&&!p.test(D)||p.test(A)&&!b.test(_)?"\\u"+A.charCodeAt(0).toString(16):A},g=f(function(){return d("\uDF06\uD834")!=='"\uDF06\uD834"'||d("\uDEAD")!=='"\uDEAD"'});d&&s({target:"JSON",stat:!0,forced:g},{stringify:function(A,w,E){var _=d.apply(null,arguments);return typeof _=="string"?_.replace(y,x):_}})},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(37)),b=d.__importDefault(t(3)),p=d.__importDefault(t(322)),x=d.__importDefault(t(134)),g=d.__importDefault(t(32)),A=d.__importDefault(t(324)),w=t(7),E=function(_){function D(C){var M=this,T=b.default('<div class="w-e-menu" data-title="\u94FE\u63A5"><i class="w-e-icon-link"></i></div>');return M=_.call(this,T,C)||this,A.default(C),M}return d.__extends(D,_),D.prototype.clickHandler=function(){var C,M=this.editor,T=M.selection.getSelectionContainerElem(),N=M.$textElem,P=N.html();if((0,f.default)(P).call(P)===w.EMPTY_P){var $=N.children();M.selection.createRangeByElem($,!0,!0),T=M.selection.getSelectionContainerElem()}if(!T||!M.$textElem.equal(T))if(this.isActive){if(!(C=M.selection.getSelectionContainerElem()))return;this.createPanel(C.text(),C.attr("href"))}else M.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(M.selection.getSelectionText(),"")},D.prototype.createPanel=function(C,M){var T=p.default(this.editor,C,M);new g.default(this,T).create()},D.prototype.tryChangeActive=function(){var C=this.editor;x.default(C)?this.active():this.unActive()},D}(y.default);i.default=E},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=t(6),b=d.__importDefault(t(3)),p=d.__importDefault(t(134)),x=t(323);function g(A,w,E){var _,D=y.getRandom("input-link"),C=y.getRandom("input-text"),M=y.getRandom("btn-ok"),T=y.getRandom("btn-del"),N=p.default(A)?"inline-block":"none";function P(){if(p.default(A)){var R=A.selection.getSelectionContainerElem();!R||(A.selection.createRangeByElem(R),A.selection.restoreSelection(),_=R)}}function $(R,I){var V=new RegExp(/(<\/*ul>)|(<\/*li>)|(<\/*ol>)/g);R=R.replace(V,""),p.default(A)&&P(),A.cmd.do("insertHTML",'<a href="'+I+'" target="_blank">'+R+"</a>")}function L(){if(p.default(A)){P();var R=_.text();A.cmd.do("insertHTML","<span>"+R+"</span>")}}function F(R,I){var V=A.config.linkCheck(R,I);if(V!==void 0){if(V===!0)return!0;A.config.customAlert(V,"warning")}return!1}return{width:300,height:0,tabs:[{title:A.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`<div>
  660. <input
  661. id="`+C+`"
  662. type="text"
  663. class="block"
  664. value="`+w+`"
  665. placeholder="`+A.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
  666. </td>
  667. <input
  668. id="`+D+`"
  669. type="text"
  670. class="block"
  671. value="`+E+`"
  672. placeholder="`+A.i18next.t("\u5982")+` https://..."/>
  673. </td>
  674. <div class="w-e-button-container">
  675. <button type="button" id="`+M+`" class="right">
  676. `+A.i18next.t("\u63D2\u5165")+`
  677. </button>
  678. <button type="button" id="`+T+'" class="gray right" style="display:'+N+`">
  679. `+A.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
  680. </button>
  681. </div>
  682. </div>`,events:[{selector:"#"+M,type:"click",fn:function(){var R,I,V,j;A.selection.restoreSelection();var z=A.selection.getSelectionRangeTopNodes()[0].getNode(),U=window.getSelection(),G=b.default("#"+D),J=b.default("#"+C),q=(0,f.default)(R=G.val()).call(R),ee=(0,f.default)(I=J.val()).call(I),te="";U&&(U==null||!U.isCollapsed)&&(te=(V=x.insertHtml(U,z))===null||V===void 0?void 0:(0,f.default)(V).call(V));var ce=te==null?void 0:te.replace(/<.*?>/g,""),be=(j=ce==null?void 0:ce.length)!==null&&j!==void 0?j:0;if(be<=ee.length){var pe=ee.substring(0,be),oe=ee.substring(be);ce===pe&&(ee=te+oe)}if(q&&(ee||(ee=q),F(ee,q)))return $(ee,q),!0},bindEnter:!0},{selector:"#"+T,type:"click",fn:function(){return L(),!0}}]}]}}i.default=g},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));function d(A,w){var E=A,_=A;do{if(E.textContent===w)break;_=E,E.parentNode&&(E=E==null?void 0:E.parentNode)}while((E==null?void 0:E.nodeName)!=="P");return _}function y(A,w){var E=A.nodeName,_="";if(A.nodeType===3||/^(h|H)[1-6]$/.test(E))return w;if(A.nodeType===1){var D=A.getAttribute("style"),C=A.getAttribute("face"),M=A.getAttribute("color");D&&(_=_+' style="'+D+'"'),C&&(_=_+' face="'+C+'"'),M&&(_=_+' color="'+M+'"')}return"<"+(E=E.toLowerCase())+_+">"+w+"</"+E+">"}function b(A,w,E,_){var D,C=(D=w.textContent)===null||D===void 0?void 0:D.substring(E,_),M=w,T="";do C=T=y(M,C??""),M=M==null?void 0:M.parentElement;while(M&&M.textContent!==A);return T}function p(A,w){var E,_,D,C,M,T=A.anchorNode,N=A.focusNode,P=A.anchorOffset,$=A.focusOffset,L=(E=w.textContent)!==null&&E!==void 0?E:"",F=x(w),R="",I="",V="",j=T,z=N,U=T;if(T!=null&&T.isEqualNode(N??null)){var G=b(L,T,P,$);return G=g(F,G)}for(T&&(R=b(L,T,P??0)),N&&(V=b(L,N,0,$)),T&&(j=d(T,L)),N&&(z=d(N,L)),U=(_=j==null?void 0:j.nextSibling)!==null&&_!==void 0?_:T;U==null||!U.isEqualNode(z??null);){if((U==null?void 0:U.nodeName)==="#text")I+=U==null?void 0:U.textContent;else{var J=(C=(D=U==null?void 0:U.firstChild)===null||D===void 0?void 0:D.parentElement)===null||C===void 0?void 0:C.innerHTML;U&&(I+=y(U,J??""))}var q=(M=U==null?void 0:U.nextSibling)!==null&&M!==void 0?M:U;if(q===U)break;U=q}return g(F,""+R+I+V)}function x(A){for(var w,E=(w=A.textContent)!==null&&w!==void 0?w:"",_=[];(A==null?void 0:A.textContent)===E;)A.nodeName!=="P"&&A.nodeName!=="TABLE"&&_.push(A),A=A.childNodes[0];return _}function g(A,w){return(0,f.default)(A).call(A,function(E){w=y(E,w)}),w}(0,c.default)(i,"__esModule",{value:!0}),i.insertHtml=i.createPartHtml=i.makeHtmlString=i.getTopNode=void 0,i.getTopNode=d,i.makeHtmlString=y,i.createPartHtml=b,i.insertHtml=p},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(325));function c(f){s.default(f)}i.default=c},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(38));function d(b){var p;function x(A){var w=[{$elem:c.default("<span>"+b.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(E,_){var D=_.attr("href");return window.open(D,"_target"),!0}},{$elem:c.default("<span>"+b.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(E,_){var D,C;E.selection.createRangeByElem(_),E.selection.restoreSelection();var M=_.childNodes();if((M==null?void 0:M.getNodeName())==="IMG"){var T=(C=(D=E.selection.getSelectionContainerElem())===null||D===void 0?void 0:D.children())===null||C===void 0?void 0:C.elems[0].children[0];E.cmd.do("insertHTML",`<img
  683. src=`+(T==null?void 0:T.getAttribute("src"))+`
  684. style=`+(T==null?void 0:T.getAttribute("style"))+">")}else{var N=_.text();E.cmd.do("insertHTML","<span>"+N+"</span>")}return!0}}];(p=new f.default(b,A,w)).create()}function g(){p&&(p.remove(),p=null)}return{showLinkTooltip:x,hideLinkTooltip:g}}function y(b){var p=d(b),x=p.showLinkTooltip,g=p.hideLinkTooltip;b.txt.eventHooks.linkClickEvents.push(x),b.txt.eventHooks.clickEvents.push(g),b.txt.eventHooks.keyupEvents.push(g),b.txt.eventHooks.toolbarClickEvents.push(g),b.txt.eventHooks.menuClickEvents.push(g),b.txt.eventHooks.textScrollEvents.push(g)}i.default=y},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(23)),f=s.__importDefault(t(3)),d=function(y){function b(p){var x=f.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
  685. <i class="w-e-icon-italic"></i>
  686. </div>`);return y.call(this,x,p)||this}return s.__extends(b,y),b.prototype.clickHandler=function(){var p=this.editor,x=p.selection.isSelectionEmpty();x&&p.selection.createEmptyRange(),p.cmd.do("italic"),x&&(p.selection.collapseRange(),p.selection.restoreSelection())},b.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},b}(c.default);i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(23)),f=s.__importDefault(t(3)),d=function(y){function b(p){var x=f.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
  687. <i class="w-e-icon-underline"></i>
  688. </div>`);return y.call(this,x,p)||this}return s.__extends(b,y),b.prototype.clickHandler=function(){var p=this.editor,x=p.selection.isSelectionEmpty();x&&p.selection.createEmptyRange(),p.cmd.do("underline"),x&&(p.selection.collapseRange(),p.selection.restoreSelection())},b.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},b}(c.default);i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(23)),f=s.__importDefault(t(3)),d=function(y){function b(p){var x=f.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
  689. <i class="w-e-icon-strikethrough"></i>
  690. </div>`);return y.call(this,x,p)||this}return s.__extends(b,y),b.prototype.clickHandler=function(){var p=this.editor,x=p.selection.isSelectionEmpty();x&&p.selection.createEmptyRange(),p.cmd.do("strikeThrough"),x&&(p.selection.collapseRange(),p.selection.restoreSelection())},b.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},b}(c.default);i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(24)),f=s.__importDefault(t(3)),d=s.__importDefault(t(330)),y=function(b){function p(x){var g=this,A=f.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
  691. <i class="w-e-icon-font"></i>
  692. </div>`),w={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:new d.default(x.config.fontNames).getItemList(),clickHandler:function(E){g.command(E)}};return g=b.call(this,A,x,w)||this}return s.__extends(p,b),p.prototype.command=function(x){var g,A=this.editor,w=A.selection.isSelectionEmpty(),E=(g=A.selection.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0];if(E!=null){var _=(E==null?void 0:E.nodeName.toLowerCase())!=="p",D=(E==null?void 0:E.getAttribute("face"))===x;if(w){if(_&&!D){var C=A.selection.getSelectionRangeTopNodes();A.selection.createRangeByElem(C[0]),A.selection.moveCursor(C[0].elems[0])}A.selection.setRangeToElem(E),A.selection.createEmptyRange()}A.cmd.do("fontName",x),w&&(A.selection.collapseRange(),A.selection.restoreSelection())}},p.prototype.tryChangeActive=function(){},p}(c.default);i.default=y},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(3)),y=function(){function b(p){var x=this;this.itemList=[],(0,f.default)(p).call(p,function(g){var A=typeof g=="string"?g:g.value,w=typeof g=="string"?g:g.name;x.itemList.push({$elem:d.default(`<p style="font-family:'`+A+`'">`+w+"</p>"),value:w})})}return b.prototype.getItemList=function(){return this.itemList},b}();i.default=y},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(24)),f=s.__importDefault(t(3)),d=s.__importDefault(t(332)),y=function(b){function p(x){var g=this,A=f.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
  693. <i class="w-e-icon-text-heigh"></i>
  694. </div>`),w={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:new d.default(x.config.fontSizes).getItemList(),clickHandler:function(E){g.command(E)}};return g=b.call(this,A,x,w)||this}return s.__extends(p,b),p.prototype.command=function(x){var g,A=this.editor,w=A.selection.isSelectionEmpty();((g=A.selection.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0])!=null&&(A.cmd.do("fontSize",x),w&&(A.selection.collapseRange(),A.selection.restoreSelection()))},p.prototype.tryChangeActive=function(){},p}(c.default);i.default=y},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(3)),c=function(){function f(d){for(var y in this.itemList=[],d){var b=d[y];this.itemList.push({$elem:s.default('<p style="font-size:'+y+'">'+b.name+"</p>"),value:b.value})}}return f.prototype.getItemList=function(){return this.itemList},f}();i.default=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(27));(0,c.default)(i,"__esModule",{value:!0});var y=t(2),b=y.__importDefault(t(24)),p=y.__importDefault(t(3)),x=["LI"],g=["UL","BLOCKQUOTE"],A=function(w){function E(_){var D=this,C=p.default('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),M={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:p.default(`<p>
  695. <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
  696. `+_.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`
  697. </p>`),value:"left"},{$elem:p.default(`<p>
  698. <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
  699. `+_.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`
  700. </p>`),value:"center"},{$elem:p.default(`<p>
  701. <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
  702. `+_.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`
  703. </p>`),value:"right"},{$elem:p.default(`<p>
  704. <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
  705. `+_.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`
  706. </p>`),value:"justify"}],clickHandler:function(T){D.command(T)}};return D=w.call(this,C,_,M)||this}return y.__extends(E,w),E.prototype.command=function(_){var D=this.editor,C=D.selection,M=C.getSelectionContainerElem();C.saveRange();var T=D.selection.getSelectionRangeTopNodes();if(M!=null&&M.length)if(this.isSpecialNode(M,T[0])||this.isSpecialTopNode(T[0])){var N=this.getSpecialNodeUntilTop(M,T[0]);if(N==null)return;p.default(N).css("text-align",_)}else(0,f.default)(T).call(T,function(P){P.css("text-align",_)});C.restoreSelection()},E.prototype.getSpecialNodeUntilTop=function(_,D){for(var C=_.elems[0],M=D.elems[0];C!=null;){if((0,d.default)(x).call(x,C==null?void 0:C.nodeName)!==-1||C.parentNode===M)return C;C=C.parentNode}return C},E.prototype.isSpecialNode=function(_,D){var C=this.getSpecialNodeUntilTop(_,D);return C!=null&&(0,d.default)(x).call(x,C.nodeName)!==-1},E.prototype.isSpecialTopNode=function(_){var D;return _!=null&&(0,d.default)(g).call(g,(D=_.elems[0])===null||D===void 0?void 0:D.nodeName)!==-1},E.prototype.tryChangeActive=function(){},E}(b.default);i.default=A},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=d.__importDefault(t(23)),p=d.__importDefault(t(335)),x=d.__importDefault(t(336)),g=t(7),A=function(w){function E(_){var D=this,C=y.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
  707. <i class="w-e-icon-quotes-left"></i>
  708. </div>`);return D=w.call(this,C,_)||this,p.default(_),D}return d.__extends(E,w),E.prototype.clickHandler=function(){var _,D,C=this.editor,M=C.selection.isSelectionEmpty(),T=C.selection.getSelectionRangeTopNodes(),N=T[T.length-1];if(this.getTopNodeName()!=="BLOCKQUOTE"){var P=x.default(T);if(C.$textElem.equal(N)){var $=(_=C.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];C.selection.createRangeByElems($.children[0],$.children[0]),T=C.selection.getSelectionRangeTopNodes(),P=x.default(T),N.append(P)}else P.insertAfter(N);this.delSelectNode(T);var L=(D=P.childNodes())===null||D===void 0?void 0:D.last().getNode();return L==null?void 0:(L.textContent?C.selection.moveCursor(L):C.selection.moveCursor(L,0),this.tryChangeActive(),void y.default(g.EMPTY_P).insertAfter(P))}var F=y.default(N.childNodes()),R=F.length,I=N;(0,f.default)(F).call(F,function(V){var j=y.default(V);j.insertAfter(I),I=j}),N.remove(),C.selection.moveCursor(F.elems[R-1]),this.tryChangeActive(),M&&(C.selection.collapseRange(),C.selection.restoreSelection())},E.prototype.tryChangeActive=function(){var _;((_=this.editor.selection.getSelectionRangeTopNodes()[0])===null||_===void 0?void 0:_.getNodeName())==="BLOCKQUOTE"?this.active():this.unActive()},E.prototype.getTopNodeName=function(){var _=this.editor.selection.getSelectionRangeTopNodes()[0];return _==null?void 0:_.getNodeName()},E.prototype.delSelectNode=function(_){(0,f.default)(_).call(_,function(D){D.remove()})},E}(b.default);i.default=A},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=t(7),f=s.__importDefault(t(3));function d(y){function b(p){var x,g=y.selection.getSelectionContainerElem(),A=y.selection.getSelectionRangeTopNodes()[0];if((A==null?void 0:A.getNodeName())==="BLOCKQUOTE"){if(g.getNodeName()==="BLOCKQUOTE"){var w=(x=g.childNodes())===null||x===void 0?void 0:x.getNode();y.selection.moveCursor(w)}if(g.text()===""){p.preventDefault(),g.remove();var E=f.default(c.EMPTY_P);E.insertAfter(A),y.selection.moveCursor(E.getNode(),0)}A.text()===""&&A.remove()}}y.txt.eventHooks.enterDownEvents.push(b)}i.default=d},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(3));function y(b){var p=d.default("<blockquote></blockquote>");return(0,f.default)(b).call(b,function(x){p.append(x.clone(!0))}),p}i.default=y},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(26));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(24)),b=d.__importDefault(t(3)),p=t(6),x=function(g){function A(w){var E,_=this,D=b.default(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
  709. <i class="w-e-icon-paint-brush"></i>
  710. </div>`),C={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,f.default)(E=w.config.colors).call(E,function(M){return{$elem:b.default('<i style="color:'+M+';" class="w-e-icon-paint-brush"></i>'),value:M}}),clickHandler:function(M){_.command(M)}};return _=g.call(this,D,w,C)||this}return d.__extends(A,g),A.prototype.command=function(w){var E,_=this.editor,D=_.selection.isSelectionEmpty(),C=(E=_.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];if(C!=null){var M=(C==null?void 0:C.nodeName.toLowerCase())!=="p",T=C==null?void 0:C.style.backgroundColor,N=p.hexToRgb(w)===T;if(D){if(M&&!N){var P=_.selection.getSelectionRangeTopNodes();_.selection.createRangeByElem(P[0]),_.selection.moveCursor(P[0].elems[0])}_.selection.createEmptyRange()}_.cmd.do("backColor",w),D&&(_.selection.collapseRange(),_.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(y.default);i.default=x},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(26));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(24)),b=d.__importDefault(t(3)),p=function(x){function g(A){var w,E=this,_=b.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
  711. <i class="w-e-icon-pencil2"></i>
  712. </div>`),D={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,f.default)(w=A.config.colors).call(w,function(C){return{$elem:b.default('<i style="color:'+C+';" class="w-e-icon-pencil2"></i>'),value:C}}),clickHandler:function(C){E.command(C)}};return E=x.call(this,_,A,D)||this}return d.__extends(g,x),g.prototype.command=function(A){var w,E=this.editor,_=E.selection.isSelectionEmpty(),D=(w=E.selection.getSelectionContainerElem())===null||w===void 0?void 0:w.elems[0];if(D!=null){var C=E.selection.getSelectionText();if(D.nodeName==="A"&&D.textContent===C){var M=b.default("<span>&#8203;</span>").getNode();D.appendChild(M)}E.cmd.do("foreColor",A),_&&(E.selection.collapseRange(),E.selection.restoreSelection())}},g.prototype.tryChangeActive=function(){},g}(y.default);i.default=p},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(32)),d=s.__importDefault(t(37)),y=s.__importDefault(t(340)),b=s.__importDefault(t(346)),p=function(x){function g(A){var w=this,E=c.default(`<div class="w-e-menu" data-title="\u89C6\u9891">
  713. <i class="w-e-icon-play"></i>
  714. </div>`);return w=x.call(this,E,A)||this,b.default(A),w}return s.__extends(g,x),g.prototype.clickHandler=function(){this.createPanel("")},g.prototype.createPanel=function(A){var w=y.default(this.editor,A);new f.default(this,w).create()},g.prototype.tryChangeActive=function(){},g}(d.default);i.default=p},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=t(6),b=d.__importDefault(t(3)),p=d.__importDefault(t(341)),x=t(7);function g(A,w){var E=A.config,_=new p.default(A),D=y.getRandom("input-iframe"),C=y.getRandom("btn-ok"),M=y.getRandom("input-upload"),T=y.getRandom("btn-local-ok");function N(F){A.cmd.do("insertHTML",F+x.EMPTY_P),A.config.onlineVideoCallback(F)}function P(F){var R=A.config.onlineVideoCheck(F);return R===!0||(typeof R=="string"&&A.config.customAlert(R,"error"),!1)}var $=[{title:A.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
  715. <div id="`+T+`" class="w-e-up-btn">
  716. <i class="w-e-icon-upload2"></i>
  717. </div>
  718. <div style="display:none;">
  719. <input id="`+M+`" type="file" accept="video/*"/>
  720. </div>
  721. </div>`,events:[{selector:"#"+T,type:"click",fn:function(){var F=b.default("#"+M).elems[0];if(!F)return!0;F.click()}},{selector:"#"+M,type:"change",fn:function(){var F=b.default("#"+M).elems[0];if(!F)return!0;var R=F.files;return R.length&&_.uploadVideo(R),!0}}]},{title:A.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
  722. <input
  723. id="`+D+`"
  724. type="text"
  725. class="block"
  726. placeholder="`+A.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
  727. </td>
  728. <div class="w-e-button-container">
  729. <button type="button" id="`+C+`" class="right">
  730. `+A.i18next.t("\u63D2\u5165")+`
  731. </button>
  732. </div>
  733. </div>`,events:[{selector:"#"+C,type:"click",fn:function(){var F,R=b.default("#"+D),I=(0,f.default)(F=R.val()).call(F);if(I&&P(I))return N(I),!0},bindEnter:!0}]}],L={width:300,height:0,tabs:[]};return window.FileReader&&(E.uploadVideoServer||E.customUploadVideo)&&L.tabs.push($[0]),E.showLinkVideo&&L.tabs.push($[1]),L}i.default=g},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(132)),d=s(t(57)),y=s(t(4)),b=s(t(27));(0,c.default)(i,"__esModule",{value:!0});var p=t(2),x=t(6),g=p.__importDefault(t(135)),A=p.__importDefault(t(136)),w=t(7),E=t(6),_=function(){function D(C){this.editor=C}return D.prototype.uploadVideo=function(C){var M=this;if(C.length){var T,N=this.editor,P=N.config,$="validate.",L=function(re){return N.i18next.t($+re)},F=P.uploadVideoServer,R=P.uploadVideoMaxSize/1024,I=P.uploadVideoName,V=P.uploadVideoParams,j=P.uploadVideoParamsWithUrl,z=P.uploadVideoHeaders,U=P.uploadVideoHooks,G=P.uploadVideoTimeout,J=P.withVideoCredentials,q=P.customUploadVideo,ee=P.uploadVideoAccept,te=[],ce=[];if(x.arrForEach(C,function(re){var he=re.name,ke=re.size/1024/1024;if(he&&ke){if(!(ee instanceof Array))return void ce.push("\u3010"+ee+"\u3011"+L("uploadVideoAccept \u4E0D\u662FArray"));if(!(0,f.default)(ee).call(ee,function(Ne){return Ne===he.split(".")[he.split(".").length-1]}))return void ce.push("\u3010"+he+"\u3011"+L("\u4E0D\u662F\u89C6\u9891"));if(R<ke)return void ce.push("\u3010"+he+"\u3011"+L("\u5927\u4E8E")+" "+R+"M");te.push(re)}}),ce.length)return void P.customAlert(L("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
  734. `+ce.join(`
  735. `),"warning");if(te.length===0)return void P.customAlert(L("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");if(q&&typeof q=="function")return void q(te,(0,d.default)(T=this.insertVideo).call(T,this));var be=new FormData;if((0,y.default)(te).call(te,function(re,he){var ke=I||re.name;te.length>1&&(ke+=he+1),be.append(ke,re)}),F){var pe=F.split("#");F=pe[0];var oe=pe[1]||"";(0,y.default)(x).call(x,V,function(re,he){j&&((0,b.default)(F).call(F,"?")>0?F+="&":F+="?",F=F+re+"="+he),be.append(re,he)}),oe&&(F+="#"+oe);var se=g.default(F,{timeout:G,formData:be,headers:z,withCredentials:!!J,beforeSend:function(re){if(U.before)return U.before(re,N,te)},onTimeout:function(re){P.customAlert(L("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),U.timeout&&U.timeout(re,N)},onProgress:function(re,he){var ke=new A.default(N);he.lengthComputable&&(re=he.loaded/he.total,ke.show(re))},onError:function(re){P.customAlert(L("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",L("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+L("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+re.status),U.error&&U.error(re,N)},onFail:function(re,he){P.customAlert(L("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",L("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+L("\u8FD4\u56DE\u7ED3\u679C")+": "+he),U.fail&&U.fail(re,N,he)},onSuccess:function(re,he){if(U.customInsert){var ke;U.customInsert((0,d.default)(ke=M.insertVideo).call(ke,M),he,N)}else{if(he.errno!="0")return P.customAlert(L("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",L("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+L("\u8FD4\u56DE\u7ED3\u679C")+" errno="+he.errno),void(U.fail&&U.fail(re,N,he));var Ne=he.data;M.insertVideo(Ne.url),U.success&&U.success(re,N,he)}}});typeof se=="string"&&P.customAlert(se,"error")}}},D.prototype.insertVideo=function(C){var M=this.editor,T=M.config,N="validate.",P=function(L,F){return F===void 0&&(F=N),M.i18next.t(F+L)};if(T.customInsertVideo)T.customInsertVideo(C);else{E.UA.isFirefox?M.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+C+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):M.cmd.do("insertHTML",'<video src="'+C+'" controls="controls" style="max-width:100%"></video>'+w.EMPTY_P);var $=document.createElement("video");$.onload=function(){$=null},$.onerror=function(){T.customAlert(P("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+P("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+P("\u89C6\u9891\u94FE\u63A5")+' "'+C+'"\uFF0C'+P("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),$=null},$.onabort=function(){return $=null},$.src=C}},D}();i.default=_},function(r,i,t){r.exports=t(343)},function(r,i,t){var s=t(344);r.exports=s},function(r,i,t){t(345);var s=t(9);r.exports=s.Date.now},function(r,i,t){t(5)({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(347)),f=s.__importDefault(t(349));function d(y){c.default(y),f.default(y)}i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(38)),d=s.__importDefault(t(348));function y(p){var x,g=function(E,_){return _===void 0&&(_=""),p.i18next.t(_+E)};function A(E){var _=[{$elem:c.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(D,C){return C.remove(),!0}},{$elem:c.default("<span>100%</span>"),onClick:function(D,C){return C.attr("width","100%"),C.removeAttr("height"),!0}},{$elem:c.default("<span>50%</span>"),onClick:function(D,C){return C.attr("width","50%"),C.removeAttr("height"),!0}},{$elem:c.default("<span>30%</span>"),onClick:function(D,C){return C.attr("width","30%"),C.removeAttr("height"),!0}},{$elem:c.default("<span>"+g("\u91CD\u7F6E")+"</span>"),onClick:function(D,C){return C.removeAttr("width"),C.removeAttr("height"),!0}},{$elem:c.default("<span>"+g("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(D,C){return d.default(C,"left"),!0}},{$elem:c.default("<span>"+g("menus.justify.\u5C45\u4E2D")+"</span>"),onClick:function(D,C){return d.default(C,"center"),!0}},{$elem:c.default("<span>"+g("menus.justify.\u9760\u53F3")+"</span>"),onClick:function(D,C){return d.default(C,"right"),!0}}];(x=new f.default(p,E,_)).create()}function w(){x&&(x.remove(),x=null)}return{showVideoTooltip:A,hideVideoTooltip:w}}function b(p){var x=y(p),g=x.showVideoTooltip,A=x.hideVideoTooltip;p.txt.eventHooks.videoClickEvents.push(g),p.txt.eventHooks.clickEvents.push(A),p.txt.eventHooks.keyupEvents.push(A),p.txt.eventHooks.toolbarClickEvents.push(A),p.txt.eventHooks.menuClickEvents.push(A),p.txt.eventHooks.textScrollEvents.push(A),p.txt.eventHooks.changeEvents.push(A)}i.createShowHideFn=y,i.default=b},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(44));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(3));function y(p,x){var g=b(p,["P"]);g&&d.default(g).css("text-align",x)}function b(p,x){for(var g,A=p.elems[0];A!=null;){if((0,f.default)(x).call(x,A==null?void 0:A.nodeName))return A;if(((g=A==null?void 0:A.parentNode)===null||g===void 0?void 0:g.nodeName)==="BODY")return null;A=A.parentNode}return A}i.default=y},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(6);function c(f){if(s.UA.isFirefox){var d=f.txt,y=f.selection;d.eventHooks.keydownEvents.push(function(b){var p=y.getSelectionContainerElem();if(p){var x=p.getNodeTop(f),g=x.length&&x.prev().length?x.prev():null;g&&g.attr("data-we-video-p")&&y.getCursorPos()===0&&b.keyCode===8&&g.remove()}})}}i.default=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(26));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=t(7),b=d.__importDefault(t(3)),p=d.__importDefault(t(32)),x=d.__importDefault(t(37)),g=d.__importDefault(t(351)),A=d.__importDefault(t(364)),w=function(E){function _(D){var C,M=this,T=b.default('<div class="w-e-menu" data-title="\u56FE\u7247"><i class="w-e-icon-image"></i></div>'),N=A.default(D);return N.onlyUploadConf&&(T=N.onlyUploadConf.$elem,(0,f.default)(C=N.onlyUploadConf.events).call(C,function(P){var $=P.type,L=P.fn||y.EMPTY_FN;T.on($,function(F){F.stopPropagation(),L(F)})})),(M=E.call(this,T,D)||this).imgPanelConfig=N,g.default(D),M}return d.__extends(_,E),_.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},_.prototype.createPanel=function(){var D=this.imgPanelConfig,C=new p.default(this,D);this.setPanel(C),C.create()},_.prototype.tryChangeActive=function(){},_}(x.default);i.default=w},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(352)),f=s.__importDefault(t(353)),d=s.__importDefault(t(354)),y=s.__importDefault(t(362)),b=s.__importDefault(t(363));function p(x){c.default(x),f.default(x),d.default(x),y.default(x),b.default(x)}i.default=p},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=t(130),f=s.__importDefault(t(96));function d(x,g){var A=x.config,w=A.pasteFilterStyle,E=A.pasteIgnoreImg;return!!c.getPasteHtml(g,w,E)||!!c.getPasteText(g)}function y(x,g){for(var A,w=((A=g.clipboardData)===null||A===void 0?void 0:A.types)||[],E=0;E<w.length;E++)if(w[E]==="Files")return!0;return!1}function b(x,g){if(y(g,x)||!d(g,x)){var A=c.getPasteImgs(x);A.length&&new f.default(g).uploadImg(A)}}function p(x){x.txt.eventHooks.pasteEvents.unshift(function(g){b(g,x)})}i.default=p},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(96));function c(f){function d(y){var b=y.dataTransfer&&y.dataTransfer.files;b&&b.length&&new s.default(f).uploadImg(b)}f.txt.eventHooks.dropEvents.push(d)}i.default=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(31)),d=s(t(355));(0,c.default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var y=t(2).__importDefault(t(3));t(360);var b=t(6);function p(E,_,D,C,M){E.attr("style","width:"+_+"px; height:"+D+"px; left:"+C+"px; top:"+M+"px;")}function x(E,_){var D=y.default(`<div class="w-e-img-drag-mask">
  736. <div class="w-e-img-drag-show-size"></div>
  737. <div class="w-e-img-drag-rb"></div>
  738. </div>`);return D.hide(),_.append(D),D}function g(E,_,D){var C=E.getBoundingClientRect(),M=D.getBoundingClientRect(),T=M.width.toFixed(2),N=M.height.toFixed(2);(0,f.default)(_).call(_,".w-e-img-drag-show-size").text(T+"px * "+N+"px"),p(_,(0,d.default)(T),(0,d.default)(N),M.left-C.left,M.top-C.top),_.show()}function A(E){var _,D=E.$textContainerElem,C=x(E,D);function M(P,$){P.on("click",function(L){L.stopPropagation()}),P.on("mousedown",".w-e-img-drag-rb",function(L){if(L.preventDefault(),_){var F=L.clientX,R=L.clientY,I=$.getBoundingClientRect(),V=_.getBoundingClientRect(),j=V.width,z=V.height,U=V.left-I.left,G=V.top-I.top,J=j/z,q=j,ee=z,te=y.default(document);te.on("mousemove",be),te.on("mouseup",pe),te.on("mouseleave",ce)}function ce(){te.off("mousemove",be),te.off("mouseup",pe)}function be(oe){oe.stopPropagation(),oe.preventDefault(),q=j+(oe.clientX-F),ee=z+(oe.clientY-R),q/ee!=J&&(ee=q/J),q=(0,d.default)(q.toFixed(2)),ee=(0,d.default)(ee.toFixed(2)),(0,f.default)(P).call(P,".w-e-img-drag-show-size").text(q.toFixed(2).replace(".00","")+"px * "+ee.toFixed(2).replace(".00","")+"px"),p(P,q,ee,U,G)}function pe(){_.attr("width",q+""),_.attr("height",ee+"");var oe=_.getBoundingClientRect();p(P,q,ee,oe.left-I.left,oe.top-I.top),ce()}})}function T(P){if(b.UA.isIE())return!1;P&&g(D,C,_=P)}function N(){(0,f.default)(D).call(D,".w-e-img-drag-mask").hide()}return M(C,D),y.default(document).on("click",N),E.beforeDestroy(function(){y.default(document).off("click",N)}),{showDrag:T,hideDrag:N}}function w(E){var _=A(E),D=_.showDrag,C=_.hideDrag;E.txt.eventHooks.imgClickEvents.push(D),E.txt.eventHooks.textScrollEvents.push(C),E.txt.eventHooks.keyupEvents.push(C),E.txt.eventHooks.toolbarClickEvents.push(C),E.txt.eventHooks.menuClickEvents.push(C),E.txt.eventHooks.changeEvents.push(C)}i.createShowHideFn=A,i.default=w},function(r,i,t){r.exports=t(356)},function(r,i,t){var s=t(357);r.exports=s},function(r,i,t){t(358);var s=t(9);r.exports=s.parseFloat},function(r,i,t){var s=t(5),c=t(359);s({global:!0,forced:parseFloat!=c},{parseFloat:c})},function(r,i,t){var s=t(8),c=t(90).trim,f=t(68),d=s.parseFloat,y=1/d(f+"-0")!=-1/0;r.exports=y?function(b){var p=c(String(b)),x=d(p);return x===0&&p.charAt(0)=="-"?-0:x}:d},function(r,i,t){var s=t(20),c=t(361);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-text-container {
  739. overflow: hidden;
  740. }
  741. .w-e-img-drag-mask {
  742. position: absolute;
  743. z-index: 1;
  744. border: 1px dashed #ccc;
  745. box-sizing: border-box;
  746. }
  747. .w-e-img-drag-mask .w-e-img-drag-rb {
  748. position: absolute;
  749. right: -5px;
  750. bottom: -5px;
  751. width: 16px;
  752. height: 16px;
  753. border-radius: 50%;
  754. background: #ccc;
  755. cursor: se-resize;
  756. }
  757. .w-e-img-drag-mask .w-e-img-drag-show-size {
  758. min-width: 110px;
  759. height: 22px;
  760. line-height: 22px;
  761. font-size: 14px;
  762. color: #999;
  763. position: absolute;
  764. left: 0;
  765. top: 0;
  766. background-color: #999;
  767. color: #fff;
  768. border-radius: 2px;
  769. padding: 0 5px;
  770. }
  771. `,""]),r.exports=i},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(38));function d(b){var p,x=function(w,E){return E===void 0&&(E=""),b.i18next.t(E+w)};function g(w){var E=[{$elem:c.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(_,D){return _.selection.createRangeByElem(D),_.selection.restoreSelection(),_.cmd.do("delete"),!0}},{$elem:c.default("<span>30%</span>"),onClick:function(_,D){return D.attr("width","30%"),D.removeAttr("height"),!0}},{$elem:c.default("<span>50%</span>"),onClick:function(_,D){return D.attr("width","50%"),D.removeAttr("height"),!0}},{$elem:c.default("<span>100%</span>"),onClick:function(_,D){return D.attr("width","100%"),D.removeAttr("height"),!0}}];E.push({$elem:c.default("<span>"+x("\u91CD\u7F6E")+"</span>"),onClick:function(_,D){return D.removeAttr("width"),D.removeAttr("height"),!0}}),w.attr("data-href")&&E.push({$elem:c.default("<span>"+x("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(_,D){var C=D.attr("data-href");return C&&(C=decodeURIComponent(C),window.open(C,"_target")),!0}}),(p=new f.default(b,w,E)).create()}function A(){p&&(p.remove(),p=null)}return{showImgTooltip:g,hideImgTooltip:A}}function y(b){var p=d(b),x=p.showImgTooltip,g=p.hideImgTooltip;b.txt.eventHooks.imgClickEvents.push(x),b.txt.eventHooks.clickEvents.push(g),b.txt.eventHooks.keyupEvents.push(g),b.txt.eventHooks.toolbarClickEvents.push(g),b.txt.eventHooks.menuClickEvents.push(g),b.txt.eventHooks.textScrollEvents.push(g),b.txt.eventHooks.imgDragBarMouseDownEvents.push(g),b.txt.eventHooks.changeEvents.push(g)}i.createShowHideFn=d,i.default=y},function(r,i,t){function s(c){var f=c.txt,d=c.selection;f.eventHooks.keydownEvents.push(function(y){var b=d.getSelectionContainerElem(),p=d.getRange();if(p&&b&&y.keyCode===8&&d.isSelectionEmpty()){var x=p.startContainer,g=p.startOffset,A=null;if(g===0)for(;x!==b.elems[0]&&b.elems[0].contains(x)&&x.parentNode&&!A;){if(x.previousSibling){A=x.previousSibling;break}x=x.parentNode}else x.nodeType!==3&&(A=x.childNodes[g-1]);if(A){for(var w=A;w.childNodes.length;)w=w.childNodes[w.childNodes.length-1];w instanceof HTMLElement&&w.tagName==="IMG"&&(w.remove(),y.preventDefault())}}})}(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default=s},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(26)),d=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var y=t(2),b=y.__importDefault(t(3)),p=t(6),x=y.__importDefault(t(96));function g(A){var w,E=A.config,_=new x.default(A),D=p.getRandom("up-trigger-id"),C=p.getRandom("up-file-id"),M=p.getRandom("input-link-url"),T=p.getRandom("input-link-url-alt"),N=p.getRandom("input-link-url-href"),P=p.getRandom("btn-link"),$="menus.panelMenus.image.",L=function(J,q){return q===void 0&&(q=$),A.i18next.t(q+J)};function F(J,q,ee){var te=E.linkImgCheck(J);return te===!0||(typeof te=="string"&&E.customAlert(te,"error"),!1)}var R=E.uploadImgMaxLength===1?"":'multiple="multiple"',I=(0,f.default)(w=E.uploadImgAccept).call(w,function(J){return"image/"+J}).join(","),V=function(J,q,ee){return'<div class="'+J+'" data-title="'+ee+`">
  772. <div id="`+D+`" class="w-e-up-btn">
  773. <i class="`+q+`"></i>
  774. </div>
  775. <div style="display:none;">
  776. <input id="`+C+'" type="file" '+R+' accept="'+I+`"/>
  777. </div>
  778. </div>`},j=[{selector:"#"+D,type:"click",fn:function(){var J=E.uploadImgFromMedia;if(J&&typeof J=="function")return J(),!0;var q=b.default("#"+C).elems[0];if(!q)return!0;q.click()}},{selector:"#"+C,type:"change",fn:function(){var J=b.default("#"+C).elems[0];if(!J)return!0;var q=J.files;return q!=null&&q.length&&_.uploadImg(q),J&&(J.value=""),!0}}],z=[`<input
  779. id="`+M+`"
  780. type="text"
  781. class="block"
  782. placeholder="`+L("\u56FE\u7247\u5730\u5740")+'"/>'];E.showLinkImgAlt&&z.push(`
  783. <input
  784. id="`+T+`"
  785. type="text"
  786. class="block"
  787. placeholder="`+L("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),E.showLinkImgHref&&z.push(`
  788. <input
  789. id="`+N+`"
  790. type="text"
  791. class="block"
  792. placeholder="`+L("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var U=[{title:L("\u4E0A\u4F20\u56FE\u7247"),tpl:V("w-e-up-img-container","w-e-icon-upload2",""),events:j},{title:L("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
  793. `+z.join("")+`
  794. <div class="w-e-button-container">
  795. <button type="button" id="`+P+'" class="right">'+L("\u63D2\u5165","")+`</button>
  796. </div>
  797. </div>`,events:[{selector:"#"+P,type:"click",fn:function(){var J,q,ee,te,ce,be=b.default("#"+M),pe=(0,d.default)(J=be.val()).call(J);if(pe&&(E.showLinkImgAlt&&(q=(0,d.default)(ee=b.default("#"+T).val()).call(ee)),E.showLinkImgHref&&(te=(0,d.default)(ce=b.default("#"+N).val()).call(ce)),F(pe)))return _.insertImg(pe,q,te),!0},bindEnter:!0}]}],G={width:300,height:0,tabs:[],onlyUploadConf:{$elem:b.default(V("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:j}};return window.FileReader&&(E.uploadImgShowBase64||E.uploadImgServer||E.customUploadImg||E.uploadImgFromMedia)&&G.tabs.push(U[0]),E.showLinkImg&&(G.tabs.push(U[1]),G.onlyUploadConf=void 0),G}i.default=g},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=d.__importDefault(t(24)),p=d.__importDefault(t(366)),x=function(g){function A(w){var E=this,_=y.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
  798. <i class="w-e-icon-indent-increase"></i>
  799. </div>`),D={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:y.default(`<p>
  800. <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
  801. `+w.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
  802. <p>`),value:"increase"},{$elem:y.default(`<p>
  803. <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
  804. `+w.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
  805. <p>`),value:"decrease"}],clickHandler:function(C){E.command(C)}};return E=g.call(this,_,w,D)||this}return d.__extends(A,g),A.prototype.command=function(w){var E=this.editor,_=E.selection.getSelectionContainerElem();if(_&&E.$textElem.equal(_)){var D=E.selection.getSelectionRangeTopNodes();D.length>0&&(0,f.default)(D).call(D,function(C){p.default(y.default(C),w,E)})}else _&&_.length>0&&(0,f.default)(_).call(_,function(C){p.default(y.default(C),w,E)});E.selection.restoreSelection(),this.tryChangeActive()},A.prototype.tryChangeActive=function(){var w=this.editor,E=w.selection.getSelectionStartElem(),_=y.default(E).getNodeTop(w);_.length<=0||(_.elems[0].style.paddingLeft!=""?this.active():this.unActive())},A}(b.default);i.default=x},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(45)),d=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var y=t(2),b=y.__importDefault(t(367)),p=y.__importDefault(t(368)),x=/^(\d+)(\w+)$/,g=/^(\d+)%$/;function A(E){var _=E.config.indentation;if(typeof _=="string"){if(x.test(_)){var D,C=(0,f.default)(D=(0,d.default)(_).call(_).match(x)).call(D,1,3),M=C[0],T=C[1];return{value:Number(M),unit:T}}if(g.test(_))return{value:Number((0,d.default)(_).call(_).match(g)[1]),unit:"%"}}else if(_.value!==void 0&&_.unit)return _;return{value:2,unit:"em"}}function w(E,_,D){var C=E.getNodeTop(D);/^(P|H[0-9]*)$/.test(C.getNodeName())&&(_==="increase"?b.default(C,A(D)):_==="decrease"&&p.default(C,A(D)))}i.default=w},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(45));function d(y,b){var p=y.elems[0];if(p.style.paddingLeft==="")y.css("padding-left",b.value+b.unit);else{var x=p.style.paddingLeft,g=(0,f.default)(x).call(x,0,x.length-b.unit.length),A=Number(g)+b.value;y.css("padding-left",""+A+b.unit)}}(0,c.default)(i,"__esModule",{value:!0}),i.default=d},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(45));function d(y,b){var p=y.elems[0];if(p.style.paddingLeft!==""){var x=p.style.paddingLeft,g=(0,f.default)(x).call(x,0,x.length-b.unit.length),A=Number(g)-b.value;A>0?y.css("padding-left",""+A+b.unit):y.css("padding-left","")}}(0,c.default)(i,"__esModule",{value:!0}),i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(37)),d=s.__importDefault(t(32)),y=s.__importDefault(t(370)),b=function(p){function x(g){var A=c.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
  806. <i class="w-e-icon-happy"></i>
  807. </div>`);return p.call(this,A,g)||this}return s.__extends(x,p),x.prototype.createPanel=function(){var g=y.default(this.editor);new d.default(this,g).create()},x.prototype.clickHandler=function(){this.createPanel()},x.prototype.tryChangeActive=function(){},x}(f.default);i.default=b},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(26)),d=s(t(70)),y=s(t(17));(0,c.default)(i,"__esModule",{value:!0});var b=t(2).__importDefault(t(3));function p(x){var g=x.config.emotions;function A(w){var E,_,D=[];return w.type=="image"?(D=(0,f.default)(E=w.content).call(E,function(C){return typeof C=="string"?"":'<span title="'+C.alt+`">
  808. <img class="eleImg" data-emoji="`+C.alt+'" style src="'+C.src+'" alt="['+C.alt+`]">
  809. </span>`}),D=(0,d.default)(D).call(D,function(C){return C!==""})):D=(0,f.default)(_=w.content).call(_,function(C){return'<span class="eleImg" title="'+C+'">'+C+"</span>"}),D.join("").replace(/&nbsp;/g,"")}return{width:300,height:230,tabs:(0,f.default)(g).call(g,function(w){return{title:x.i18next.t("menus.panelMenus.emoticon."+w.title),tpl:"<div>"+A(w)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(E){var _,D,C=b.default(E.target);return _=C.getNodeName()==="IMG"?(0,y.default)(D=C.parent().html()).call(D):"<span>"+C.html()+"</span>",x.cmd.do("insertHTML",_),!0}}]}})}}i.default=p},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.createListHandle=i.ClassType=void 0;var s,c,f=t(2),d=f.__importDefault(t(3)),y=f.__importDefault(t(372)),b=f.__importDefault(t(374)),p=f.__importDefault(t(375)),x=f.__importDefault(t(376)),g=f.__importDefault(t(377));(c=s=i.ClassType||(i.ClassType={})).Wrap="WrapListHandle",c.Join="JoinListHandle",c.StartJoin="StartJoinListHandle",c.EndJoin="EndJoinListHandle",c.Other="OtherListHandle";var A={WrapListHandle:y.default,JoinListHandle:b.default,StartJoinListHandle:p.default,EndJoinListHandle:x.default,OtherListHandle:g.default};function w(_,D,C){if(_===s.Other&&C===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return _!==s.Other?new A[_](D):new A[_](D,C)}i.createListHandle=w;var E=function(){function _(D){this.handle=D,this.handle.exec()}return _.prototype.getSelectionRangeElem=function(){return d.default(this.handle.selectionRangeElem.get())},_}();i.default=E},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=t(58),p=t(47),x=function(g){function A(w){return g.call(this,w)||this}return d.__extends(A,g),A.prototype.exec=function(){var w,E=this.options,_=E.listType,D=E.listTarget,C=E.$selectionElem,M=E.$startElem,T=E.$endElem,N=[],P=C==null?void 0:C.getNodeName(),$=M.prior,L=T.prior;if((M.prior||T.prior)&&($!=null&&$.prev().length||L!=null&&L.next().length)){for(var F=$;F.length;)N.push(F),F=L!=null&&L.equal(F)?y.default(void 0):F.next();var R=$.prev(),I=L.next();if(P===_?w=p.createElementFragment(N,p.createDocumentFragment(),"p"):(w=p.createElement(D),(0,f.default)(N).call(N,function(G){w.append(G.elems[0])})),R.length&&I.length){for(var V=[];I.length;)V.push(I),I=I.next();var j=p.createElement(P);(0,f.default)(V).call(V,function(G){j.append(G.elems[0])}),y.default(j).insertAfter(C),this.selectionRangeElem.set(w),(z=C.next()).length?p.insertBefore(C,w,z.elems[0]):C.parent().elems[0].append(w)}else if(R.length){var z;this.selectionRangeElem.set(w),(z=C.next()).length?p.insertBefore(C,w,z.elems[0]):C.parent().elems[0].append(w)}else this.selectionRangeElem.set(w),p.insertBefore(C,w,C.elems[0])}else{var U;(0,f.default)(U=C==null?void 0:C.children()).call(U,function(G){N.push(y.default(G))}),P===_?w=p.createElementFragment(N,p.createDocumentFragment(),"p"):(w=p.createElement(D),(0,f.default)(N).call(N,function(G){w.appendChild(G.elems[0])})),this.selectionRangeElem.set(w),p.insertBefore(C,w,C.elems[0]),C.remove()}},A}(b.ListHandle);i.default=x},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=function(){function y(){this._element=null}return y.prototype.set=function(b){if(b instanceof DocumentFragment){var p,x=[];(0,f.default)(p=b.childNodes).call(p,function(g){x.push(g)}),b=x}this._element=b},y.prototype.get=function(){return this._element},y.prototype.clear=function(){this._element=null},y}();i.default=d},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=t(58),p=t(47),x=function(g){function A(w){return g.call(this,w)||this}return d.__extends(A,g),A.prototype.exec=function(){var w,E,_,D,C,M,T,N,P=this.options,$=P.editor,L=P.listType,F=P.listTarget,R=P.$startElem,I=P.$endElem,V=$.selection.getSelectionRangeTopNodes(),j=R==null?void 0:R.getNodeName();if(j===(I==null?void 0:I.getNodeName()))if(V.length>2)if(V.shift(),V.pop(),N=p.createElementFragment(p.filterSelectionNodes(V),p.createDocumentFragment()),j===L)(w=I.children())===null||w===void 0||(0,f.default)(w).call(w,function(oe){N.append(oe)}),I.remove(),this.selectionRangeElem.set(N),R.elems[0].append(N);else{for(var z=document.createDocumentFragment(),U=document.createDocumentFragment(),G=p.getStartPoint(R);G.length;){var J=G.elems[0];G=G.next(),z.append(J)}for(var q=p.getEndPoint(I),ee=[];q.length;)ee.unshift(q.elems[0]),q=q.prev();(0,f.default)(ee).call(ee,function(oe){U.append(oe)});var te=p.createElement(F);te.append(z),te.append(N),te.append(U),N=te,this.selectionRangeElem.set(N),y.default(te).insertAfter(R),!((E=R.children())!==null&&E!==void 0&&E.length)&&R.remove(),((_=I.children())===null||_===void 0||!_.length)&&I.remove()}else{for(V.length=0,G=p.getStartPoint(R);G.length;)V.push(G),G=G.next();for(q=p.getEndPoint(I),ee=[];q.length;)ee.unshift(q),q=q.prev();V.push.apply(V,ee),j===L?(N=p.createElementFragment(V,p.createDocumentFragment(),"p"),this.selectionRangeElem.set(N),p.insertBefore(R,N,I.elems[0])):(N=p.createElement(F),(0,f.default)(V).call(V,function(oe){N.append(oe.elems[0])}),this.selectionRangeElem.set(N),y.default(N).insertAfter(R)),!((D=R.children())!==null&&D!==void 0&&D.length)&&I.remove(),((C=I.children())===null||C===void 0||!C.length)&&I.remove()}else{var ce=[];for(q=p.getEndPoint(I);q.length;)ce.unshift(q),q=q.prev();var be=[];for(G=p.getStartPoint(R);G.length;)be.push(G),G=G.next();if(N=p.createDocumentFragment(),V.shift(),V.pop(),(0,f.default)(be).call(be,function(oe){return N.append(oe.elems[0])}),N=p.createElementFragment(p.filterSelectionNodes(V),N),(0,f.default)(ce).call(ce,function(oe){return N.append(oe.elems[0])}),this.selectionRangeElem.set(N),j===L)R.elems[0].append(N),((M=I.children())===null||M===void 0||!M.length)&&I.remove();else if((T=I.children())!==null&&T!==void 0&&T.length){var pe=I.children();p.insertBefore(pe,N,pe.elems[0])}else I.elems[0].append(N)}},A}(b.ListHandle);i.default=x},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=t(58),p=t(47),x=function(g){function A(w){return g.call(this,w)||this}return d.__extends(A,g),A.prototype.exec=function(){var w,E,_=this.options,D=_.editor,C=_.listType,M=_.listTarget,T=_.$startElem,N=D.selection.getSelectionRangeTopNodes(),P=T==null?void 0:T.getNodeName();N.shift();for(var $=[],L=p.getStartPoint(T);L.length;)$.push(L),L=L.next();P===C?(E=p.createDocumentFragment(),(0,f.default)($).call($,function(F){return E.append(F.elems[0])}),E=p.createElementFragment(p.filterSelectionNodes(N),E),this.selectionRangeElem.set(E),T.elems[0].append(E)):(E=p.createElement(M),(0,f.default)($).call($,function(F){return E.append(F.elems[0])}),E=p.createElementFragment(p.filterSelectionNodes(N),E),this.selectionRangeElem.set(E),y.default(E).insertAfter(T),((w=T.children())===null||w===void 0||!w.length)&&T.remove())},A}(b.ListHandle);i.default=x},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=t(58),p=t(47),x=function(g){function A(w){return g.call(this,w)||this}return d.__extends(A,g),A.prototype.exec=function(){var w,E,_,D=this.options,C=D.editor,M=D.listType,T=D.listTarget,N=D.$endElem,P=C.selection.getSelectionRangeTopNodes(),$=N==null?void 0:N.getNodeName();P.pop();for(var L=[],F=p.getEndPoint(N);F.length;)L.unshift(F),F=F.prev();if($===M)if(_=p.createElementFragment(p.filterSelectionNodes(P),p.createDocumentFragment()),(0,f.default)(L).call(L,function(V){return _.append(V.elems[0])}),this.selectionRangeElem.set(_),(w=N.children())!==null&&w!==void 0&&w.length){var R=N.children();p.insertBefore(R,_,R.elems[0])}else N.elems[0].append(_);else{var I=p.filterSelectionNodes(P);I.push.apply(I,L),_=p.createElementFragment(I,p.createElement(T)),this.selectionRangeElem.set(_),y.default(_).insertBefore(N),((E=N.children())===null||E===void 0||!E.length)&&N.remove()}},A}(b.ListHandle);i.default=x},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=t(58),f=t(47),d=function(y){function b(p,x){var g=y.call(this,p)||this;return g.range=x,g}return s.__extends(b,y),b.prototype.exec=function(){var p=this.options,x=p.editor,g=p.listTarget,A=x.selection.getSelectionRangeTopNodes(),w=f.createElementFragment(f.filterSelectionNodes(A),f.createElement(g));this.selectionRangeElem.set(w),this.range.insertNode(w)},b}(c.ListHandle);i.default=d},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(27));(0,c.default)(i,"__esModule",{value:!0});var y=t(2),b=y.__importDefault(t(24)),p=y.__importDefault(t(3)),x=y.__importDefault(t(379)),g=t(6),A=function(w){function E(_){var D=this,C=p.default(`<div class="w-e-menu" data-title="\u884C\u9AD8">
  810. <i class="w-e-icon-row-height"></i>
  811. </div>`),M={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:new x.default(_,_.config.lineHeights).getItemList(),clickHandler:function(T){_.selection.saveRange(),D.command(T)}};return D=w.call(this,C,_,M)||this}return y.__extends(E,w),E.prototype.command=function(_){var D,C=this,M=window.getSelection?window.getSelection():document.getSelection(),T=["P"],N=this.editor,P="";N.selection.restoreSelection();var $=p.default(N.selection.getSelectionContainerElem());if($!=null&&$.length){var L=p.default(N.selection.getSelectionContainerElem()),F=p.default(N.selection.getSelectionStartElem()).elems[0],R="",I=[],V="";if($&&N.$textElem.equal($)){var j=g.UA.isIE(),z=[],U=[],G=[],J=p.default(N.selection.getSelectionStartElem()),q=p.default(N.selection.getSelectionEndElem()),ee=(D=N.selection.getRange())===null||D===void 0?void 0:D.commonAncestorContainer.childNodes;U.push(this.getDom(J.elems[0])),ee==null||(0,f.default)(ee).call(ee,function(oe,se){oe===C.getDom(J.elems[0])&&z.push(se),oe===C.getDom(q.elems[0])&&z.push(se)});var te=0,ce=void 0;for(G.push(this.getDom(J.elems[0]));U[te]!==this.getDom(q.elems[0]);)ce=p.default(U[te].nextElementSibling).elems[0],(0,d.default)(T).call(T,p.default(ce).getNodeName())!==-1&&G.push(ce),U.push(ce),te++;if(p.default(U[0]).getNodeName()!=="P"){te=0;for(var be=0;be<U.length;be++)if(p.default(U[be]).getNodeName()==="P"){te=be;break}if(te===0)return;for(var pe=0;pe!==te;)U.shift(),pe++}return this.setRange(U[0],U[U.length-1]),(0,f.default)(U).call(U,function(oe){R=oe.getAttribute("style"),I=R?R.split(";"):[],V=C.styleProcessing(I),p.default(oe).getNodeName()==="P"&&_&&(V+=_?"line-height:"+_+";":""),j?p.default(oe).css("line-height",_):P+="<"+p.default(oe).getNodeName().toLowerCase()+' style="'+V+'">'+oe.innerHTML+"</"+p.default(oe).getNodeName().toLowerCase()+">"}),P&&this.action(P,N),F=L.elems[0],void this.setRange(F.children[z[0]],F.children[z[1]])}if(F=this.getDom(F),(0,d.default)(T).call(T,p.default(F).getNodeName())!==-1){if(R=F.getAttribute("style"),I=R?R.split(";"):[],M==null||M.selectAllChildren(F),N.selection.saveRange(),!_)return void(R&&(V=this.styleProcessing(I),P=V===""?"<"+p.default(F).getNodeName().toLowerCase()+">"+F.innerHTML+"</"+p.default(F).getNodeName().toLowerCase()+">":"<"+p.default(F).getNodeName().toLowerCase()+' style="'+V+'">'+F.innerHTML+"</"+p.default(F).getNodeName().toLowerCase()+">",this.action(P,N)));V=R?this.styleProcessing(I)+"line-height:"+_+";":"line-height:"+_+";",P="<"+p.default(F).getNodeName().toLowerCase()+' style="'+V+'">'+F.innerHTML+"</"+p.default(F).getNodeName().toLowerCase()+">",p.default(F).getNodeName()==="BLOCKQUOTE"||g.UA.isIE()?p.default(F).css("line-height",_):this.action(P,N)}}},E.prototype.getDom=function(_){var D=p.default(_).elems[0];if(!D.parentNode)return D;function C(M,T){var N=p.default(M.parentNode);return T.$textElem.equal(N)?M:C(N.elems[0],T)}return D=C(D,this.editor)},E.prototype.action=function(_,D){D.cmd.do("insertHTML",_)},E.prototype.styleProcessing=function(_){var D="";return(0,f.default)(_).call(_,function(C){C!==""&&(0,d.default)(C).call(C,"line-height")===-1&&(D=D+C+";")}),D},E.prototype.setRange=function(_,D){var C=this.editor,M=window.getSelection?window.getSelection():document.getSelection();M==null||M.removeAllRanges();var T=document.createRange(),N=_,P=D;T.setStart(N,0),T.setEnd(P,1),M==null||M.addRange(T),C.selection.saveRange(),M==null||M.removeAllRanges(),C.selection.restoreSelection()},E.prototype.tryChangeActive=function(){var _=this.editor,D=_.selection.getSelectionContainerElem();if(!D||!_.$textElem.equal(D)){var C=p.default(_.selection.getSelectionStartElem());if(C.length!==0){var M=(C=this.getDom(C.elems[0])).getAttribute("style")?C.getAttribute("style"):"";M&&(0,d.default)(M).call(M,"line-height")!==-1?this.active():this.unActive()}}},E}(b.default);i.default=A},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(3)),y=function(){function b(p,x){var g=this;this.itemList=[{$elem:d.default("<span>"+p.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,f.default)(x).call(x,function(A){g.itemList.push({$elem:d.default("<span>"+A+"</span>"),value:A})})}return b.prototype.getItemList=function(){return this.itemList},b}();i.default=y},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(3)),f=function(d){function y(b){var p=c.default(`<div class="w-e-menu" data-title="\u64A4\u9500">
  812. <i class="w-e-icon-undo"></i>
  813. </div>`);return d.call(this,p,b)||this}return s.__extends(y,d),y.prototype.clickHandler=function(){var b=this.editor;b.history.revoke();var p=b.$textElem.children();if(p!=null&&p.length){var x=p.last();b.selection.createRangeByElem(x,!1,!0),b.selection.restoreSelection()}},y.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},y}(s.__importDefault(t(23)).default);i.default=f},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(3)),f=function(d){function y(b){var p=c.default(`<div class="w-e-menu" data-title="\u6062\u590D">
  814. <i class="w-e-icon-redo"></i>
  815. </div>`);return d.call(this,p,b)||this}return s.__extends(y,d),y.prototype.clickHandler=function(){var b=this.editor;b.history.restore();var p=b.$textElem.children();if(p!=null&&p.length){var x=p.last();b.selection.createRangeByElem(x,!1,!0),b.selection.restoreSelection()}},y.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},y}(s.__importDefault(t(23)).default);i.default=f},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(37)),f=s.__importDefault(t(3)),d=s.__importDefault(t(383)),y=s.__importDefault(t(32)),b=s.__importDefault(t(392)),p=function(x){function g(A){var w=this,E=f.default('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');return w=x.call(this,E,A)||this,b.default(A),w}return s.__extends(g,x),g.prototype.clickHandler=function(){this.createPanel()},g.prototype.createPanel=function(){var A=d.default(this.editor);new y.default(this,A).create()},g.prototype.tryChangeActive=function(){},g}(c.default);i.default=p},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(384));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=t(6),b=d.__importDefault(t(3));t(389);var p=d.__importDefault(t(391));function x(A){return A>0&&(0,f.default)(A)}function g(A){var w=new p.default(A),E=y.getRandom("w-col-id"),_=y.getRandom("w-row-id"),D=y.getRandom("btn-link"),C="menus.panelMenus.table.",M=function(P){return A.i18next.t(P)},T=[{title:M(C+"\u63D2\u5165\u8868\u683C"),tpl:`<div>
  816. <div class="w-e-table">
  817. <span>`+M("\u521B\u5EFA")+`</span>
  818. <input id="`+_+`" type="text" class="w-e-table-input" value="5"/></td>
  819. <span>`+M(C+"\u884C")+`</span>
  820. <input id="`+E+`" type="text" class="w-e-table-input" value="5"/></td>
  821. <span>`+(M(C+"\u5217")+M(C+"\u7684")+M(C+"\u8868\u683C"))+`</span>
  822. </div>
  823. <div class="w-e-button-container">
  824. <button type="button" id="`+D+'" class="right">'+M("\u63D2\u5165")+`</button>
  825. </div>
  826. </div>`,events:[{selector:"#"+D,type:"click",fn:function(){var P=Number(b.default("#"+E).val()),$=Number(b.default("#"+_).val());return x($)&&x(P)?(w.createAction($,P),!0):(A.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],N={width:330,height:0,tabs:[]};return N.tabs.push(T[0]),N}i.default=g},function(r,i,t){r.exports=t(385)},function(r,i,t){var s=t(386);r.exports=s},function(r,i,t){t(387);var s=t(9);r.exports=s.Number.isInteger},function(r,i,t){t(5)({target:"Number",stat:!0},{isInteger:t(388)})},function(r,i,t){var s=t(13),c=Math.floor;r.exports=function(f){return!s(f)&&isFinite(f)&&c(f)===f}},function(r,i,t){var s=t(20),c=t(390);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-table {
  827. display: flex;
  828. }
  829. .w-e-table .w-e-table-input {
  830. width: 40px;
  831. text-align: center!important;
  832. margin: 0 5px;
  833. }
  834. `,""]),r.exports=i},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=t(7),f=s.__importDefault(t(3)),d=function(){function y(b){this.editor=b}return y.prototype.createAction=function(b,p){var x=this.editor,g=f.default(x.selection.getSelectionContainerElem()),A=f.default(g.elems[0]).parentUntilEditor("UL",x),w=f.default(g.elems[0]).parentUntilEditor("OL",x);if(!A&&!w){var E=this.createTableHtml(b,p);x.cmd.do("insertHTML",E)}},y.prototype.createTableHtml=function(b,p){for(var x="",g="",A=0;A<b;A++){g="";for(var w=0;w<p;w++)g+=A===0?"<th></th>":"<td></td>";x=x+"<tr>"+g+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+x+"</tbody></table>"+c.EMPTY_P},y}();i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(393)),c=t(400);function f(d){s.default(d),c.bindEventKeyboardEvent(d),c.bindClickEvent(d)}i.default=f},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(38)),d=s.__importDefault(t(394)),y=s.__importDefault(t(399)),b=t(7);function p(w){var E;function _(C){var M=new y.default(w),T="menus.panelMenus.table.",N=function($,L){return L===void 0&&(L=T),w.i18next.t(L+$)},P=[{$elem:c.default("<span>"+N("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function($,L){return $.selection.createRangeByElem(L),$.selection.restoreSelection(),$.cmd.do("insertHTML",b.EMPTY_P),!0}},{$elem:c.default("<span>"+N("\u6DFB\u52A0\u884C")+"</span>"),onClick:function($,L){if(x($))return!0;var F=c.default($.selection.getSelectionStartElem()),R=M.getRowNode(F.elems[0]);if(!R)return!0;var I=Number(M.getCurrentRowIndex(L.elems[0],R)),V=M.getTableHtml(L.elems[0]),j=M.getTableHtml(d.default.ProcessingRow(c.default(V),I).elems[0]);return j=A(L,j),$.selection.createRangeByElem(L),$.selection.restoreSelection(),$.cmd.do("insertHTML",j),!0}},{$elem:c.default("<span>"+N("\u5220\u9664\u884C")+"</span>"),onClick:function($,L){if(x($))return!0;var F=c.default($.selection.getSelectionStartElem()),R=M.getRowNode(F.elems[0]);if(!R)return!0;var I=Number(M.getCurrentRowIndex(L.elems[0],R)),V=M.getTableHtml(L.elems[0]),j=d.default.DeleteRow(c.default(V),I).elems[0].children[0].children.length,z="";return $.selection.createRangeByElem(L),$.selection.restoreSelection(),z=A(L,z=j===0?b.EMPTY_P:M.getTableHtml(d.default.DeleteRow(c.default(V),I).elems[0])),$.cmd.do("insertHTML",z),!0}},{$elem:c.default("<span>"+N("\u6DFB\u52A0\u5217")+"</span>"),onClick:function($,L){if(x($))return!0;var F=c.default($.selection.getSelectionStartElem()),R=M.getCurrentColIndex(F.elems[0]),I=M.getTableHtml(L.elems[0]),V=M.getTableHtml(d.default.ProcessingCol(c.default(I),R).elems[0]);return V=A(L,V),$.selection.createRangeByElem(L),$.selection.restoreSelection(),$.cmd.do("insertHTML",V),!0}},{$elem:c.default("<span>"+N("\u5220\u9664\u5217")+"</span>"),onClick:function($,L){if(x($))return!0;var F=c.default($.selection.getSelectionStartElem()),R=M.getCurrentColIndex(F.elems[0]),I=M.getTableHtml(L.elems[0]),V=d.default.DeleteCol(c.default(I),R),j=V.elems[0].children[0].children[0].children.length,z="";return $.selection.createRangeByElem(L),$.selection.restoreSelection(),z=A(L,z=j===0?b.EMPTY_P:M.getTableHtml(V.elems[0])),$.cmd.do("insertHTML",z),!0}},{$elem:c.default("<span>"+N("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function($,L){if(x($))return!0;var F=c.default($.selection.getSelectionStartElem()),R=M.getRowNode(F.elems[0]);if(!R)return!0;var I=Number(M.getCurrentRowIndex(L.elems[0],R));I!==0&&(I=0);var V=M.getTableHtml(L.elems[0]),j=M.getTableHtml(d.default.setTheHeader(c.default(V),I,"th").elems[0]);return j=A(L,j),$.selection.createRangeByElem(L),$.selection.restoreSelection(),$.cmd.do("insertHTML",j),!0}},{$elem:c.default("<span>"+N("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function($,L){var F=c.default($.selection.getSelectionStartElem()),R=M.getRowNode(F.elems[0]);if(!R)return!0;var I=Number(M.getCurrentRowIndex(L.elems[0],R));I!==0&&(I=0);var V=M.getTableHtml(L.elems[0]),j=M.getTableHtml(d.default.setTheHeader(c.default(V),I,"td").elems[0]);return j=A(L,j),$.selection.createRangeByElem(L),$.selection.restoreSelection(),$.cmd.do("insertHTML",j),!0}}];(E=new f.default(w,C,P)).create()}function D(){E&&(E.remove(),E=null)}return{showTableTooltip:_,hideTableTooltip:D}}function x(w){var E=w.selection.getSelectionStartElem(),_=w.selection.getSelectionEndElem();return(E==null?void 0:E.elems[0])!==(_==null?void 0:_.elems[0])}function g(w){var E=p(w),_=E.showTableTooltip,D=E.hideTableTooltip;w.txt.eventHooks.tableClickEvents.push(_),w.txt.eventHooks.clickEvents.push(D),w.txt.eventHooks.keyupEvents.push(D),w.txt.eventHooks.toolbarClickEvents.push(D),w.txt.eventHooks.menuClickEvents.push(D),w.txt.eventHooks.textScrollEvents.push(D)}function A(w,E){var _=w.elems[0].nextSibling;return(!_||_.innerHTML==="<br>")&&(E+=""+b.EMPTY_P),E}i.default=g},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(45)),d=s(t(91)),y=s(t(4)),b=s(t(138));(0,c.default)(i,"__esModule",{value:!0});var p=t(2).__importDefault(t(3));function x(C,M){for(var T=D(C),N=(0,f.default)(Array.prototype).apply(T.children),P=N[0].children.length,$=document.createElement("tr"),L=0;L<P;L++){var F=document.createElement("td");$.appendChild(F)}return(0,d.default)(N).call(N,M+1,0,$),_(T,N),p.default(T.parentNode)}function g(C,M){for(var T=D(C),N=(0,f.default)(Array.prototype).apply(T.children),P=function(L){var F,R=[];for((0,y.default)(F=(0,b.default)(N[L].children)).call(F,function(j){R.push(j)});N[L].children.length!==0;)N[L].removeChild(N[L].children[0]);var I=p.default(R[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,d.default)(R).call(R,M+1,0,I);for(var V=0;V<R.length;V++)N[L].appendChild(R[V])},$=0;$<N.length;$++)P($);return _(T,N),p.default(T.parentNode)}function A(C,M){var T=D(C),N=(0,f.default)(Array.prototype).apply(T.children);return(0,d.default)(N).call(N,M,1),_(T,N),p.default(T.parentNode)}function w(C,M){for(var T=D(C),N=(0,f.default)(Array.prototype).apply(T.children),P=function(L){var F,R=[];for((0,y.default)(F=(0,b.default)(N[L].children)).call(F,function(V){R.push(V)});N[L].children.length!==0;)N[L].removeChild(N[L].children[0]);(0,d.default)(R).call(R,M,1);for(var I=0;I<R.length;I++)N[L].appendChild(R[I])},$=0;$<N.length;$++)P($);return _(T,N),p.default(T.parentNode)}function E(C,M,T){for(var N=D(C),P=(0,f.default)(Array.prototype).apply(N.children),$=P[M].children,L=document.createElement("tr"),F=function(I){var V,j=document.createElement(T),z=$[I];(0,y.default)(V=(0,b.default)(z.childNodes)).call(V,function(U){j.appendChild(U)}),L.appendChild(j)},R=0;R<$.length;R++)F(R);return(0,d.default)(P).call(P,M,1,L),_(N,P),p.default(N.parentNode)}function _(C,M){for(;C.children.length!==0;)C.removeChild(C.children[0]);for(var T=0;T<M.length;T++)C.appendChild(M[T])}function D(C){var M=C.elems[0].children[0];return M.nodeName==="COLGROUP"&&(M=C.elems[0].children[C.elems[0].children.length-1]),M}i.default={ProcessingRow:x,ProcessingCol:g,DeleteRow:A,DeleteCol:w,setTheHeader:E}},function(r,i,t){var s=t(396);r.exports=s},function(r,i,t){t(50),t(397);var s=t(9);r.exports=s.Array.from},function(r,i,t){var s=t(5),c=t(398);s({target:"Array",stat:!0,forced:!t(114)(function(f){Array.from(f)})},{from:c})},function(r,i,t){var s=t(39),c=t(29),f=t(113),d=t(111),y=t(34),b=t(69),p=t(112);r.exports=function(x){var g,A,w,E,_,D,C=c(x),M=typeof this=="function"?this:Array,T=arguments.length,N=T>1?arguments[1]:void 0,P=N!==void 0,$=p(C),L=0;if(P&&(N=s(N,T>2?arguments[2]:void 0,2)),$==null||M==Array&&d($))for(A=new M(g=y(C.length));g>L;L++)D=P?N(C[L],L):C[L],b(A,L,D);else for(_=(E=$.call(C)).next,A=new M;!(w=_.call(E)).done;L++)D=P?f(E,N,[w.value,L],!0):w.value,b(A,L,D);return A.length=L,A}},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(138));(0,c.default)(i,"__esModule",{value:!0});var y=t(2).__importDefault(t(3)),b=function(){function p(x){this.editor=x}return p.prototype.getRowNode=function(x){var g,A=y.default(x).elems[0];return A.parentNode&&(A=(g=y.default(A).parentUntil("TR",A))===null||g===void 0?void 0:g.elems[0]),A},p.prototype.getCurrentRowIndex=function(x,g){var A,w=0,E=x.children[0];return E.nodeName==="COLGROUP"&&(E=x.children[x.children.length-1]),(0,f.default)(A=(0,d.default)(E.children)).call(A,function(_,D){_===g&&(w=D)}),w},p.prototype.getCurrentColIndex=function(x){var g,A,w=0,E=y.default(x).getNodeName()==="TD"||y.default(x).getNodeName()==="TH"?x:(A=y.default(x).parentUntil("TD",x))===null||A===void 0?void 0:A.elems[0],_=y.default(E).parent();return(0,f.default)(g=(0,d.default)(_.elems[0].children)).call(g,function(D,C){D===E&&(w=C)}),w},p.prototype.getTableHtml=function(x){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+y.default(x).html()+"</table>"},p}();i.default=b},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.bindEventKeyboardEvent=i.bindClickEvent=void 0;var s=t(2).__importDefault(t(3));function c(y){if(!y.length)return!1;var b=y.elems[0];return b.nodeName==="P"&&b.innerHTML==="<br>"}function f(y){function b(p,x){if(x.detail>=3){var g=window.getSelection();if(g){var A=g.focusNode,w=g.anchorNode,E=s.default(w==null?void 0:w.parentElement);if(!p.isContain(s.default(A))){var _=E.elems[0].tagName==="TD"?E:E.parentUntilEditor("td",y);if(_){var D=y.selection.getRange();D==null||D.setEnd(_.elems[0],_.elems[0].childNodes.length),y.selection.restoreSelection()}}}}}y.txt.eventHooks.tableClickEvents.push(b)}function d(y){var b=y.txt,p=y.selection;b.eventHooks.keydownEvents.push(function(x){y.selection.saveRange();var g=p.getSelectionContainerElem();if(g){var A=g.getNodeTop(y),w=A.length&&A.prev().length?A.prev():null;if(w&&w.getNodeName()==="TABLE"&&p.isSelectionEmpty()&&p.getCursorPos()===0&&x.keyCode===8){var E=A.next();E.length&&c(A)&&(A.remove(),y.selection.setRangeToElem(E.elems[0])),x.preventDefault()}}})}i.bindClickEvent=f,i.bindEventKeyboardEvent=d},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(26));(0,c.default)(i,"__esModule",{value:!0}),i.formatCodeHtml=void 0;var d=t(2),y=d.__importDefault(t(37)),b=d.__importDefault(t(3)),p=t(6),x=d.__importDefault(t(402)),g=d.__importDefault(t(139)),A=d.__importDefault(t(32)),w=d.__importDefault(t(403));function E(D,C){return C&&(C=M(C=T(C)),C=p.replaceSpecialSymbol(C));function M(N){var P=N.match(/<pre[\s|\S]+?\/pre>/g);return P===null||(0,f.default)(P).call(P,function($){N=N.replace($,$.replace(/<\/code><code>/g,`
  835. `).replace(/<br>/g,""))}),N}function T(N){var P,$=N.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!$||!$.length)return N;for(var L=(0,f.default)(P=p.deepClone($)).call(P,function(R){return(R=R.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")}),F=0;F<$.length;F++)N=N.replace($[F],L[F]);return T(N)}}i.formatCodeHtml=E;var _=function(D){function C(M){var T=this,N=b.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return T=D.call(this,N,M)||this,w.default(M),T}return d.__extends(C,D),C.prototype.insertLineCode=function(M){var T=this.editor,N=b.default("<code>"+M+"</code>");T.cmd.do("insertElem",N),T.selection.createRangeByElem(N,!1),T.selection.restoreSelection()},C.prototype.clickHandler=function(){var M=this.editor,T=M.selection.getSelectionText();this.isActive||(M.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(T))},C.prototype.createPanel=function(M,T){var N=x.default(this.editor,M,T);new A.default(this,N).create()},C.prototype.tryChangeActive=function(){var M=this.editor;g.default(M)?this.active():this.unActive()},C}(y.default);i.default=_},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(26));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=t(6),b=d.__importDefault(t(3)),p=d.__importDefault(t(139)),x=t(7);function g(A,w,E){var _,D=y.getRandom("input-iframe"),C=y.getRandom("select"),M=y.getRandom("btn-ok");function T($){var L;p.default(A)&&N(),!((L=A.selection.getSelectionStartElem())===null||L===void 0)&&L.elems[0].innerHTML&&A.cmd.do("insertHTML",x.EMPTY_P),A.cmd.do("insertHTML",$);var F=A.selection.getSelectionStartElem(),R=F==null?void 0:F.getNodeTop(A);(R==null?void 0:R.getNextSibling().elems.length)===0&&b.default(x.EMPTY_P).insertAfter(R)}function N(){if(p.default(A)){var $=A.selection.getSelectionStartElem(),L=$==null?void 0:$.getNodeTop(A);!L||(A.selection.createRangeByElem(L),A.selection.restoreSelection())}}var P=function($){return A.i18next.t($)};return{width:500,height:0,tabs:[{title:P("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
  836. <select name="" id="`+C+`">
  837. `+(0,f.default)(_=A.config.languageType).call(_,function($){return"<option "+(E==$?"selected":"")+' value ="'+$+'">'+$+"</option>"})+`
  838. </select>
  839. <textarea id="`+D+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+w.replace(/&quot;/g,'"')+`</textarea>
  840. <div class="w-e-button-container">
  841. <button type="button" id="`+M+'" class="right">'+(p.default(A)?P("\u4FEE\u6539"):P("\u63D2\u5165"))+`</button>
  842. </div>
  843. </div>`,events:[{selector:"#"+M,type:"click",fn:function(){var $,L=document.getElementById(D),F=b.default("#"+C).val(),R=L.value;if($=A.highlight?A.highlight.highlightAuto(R).value:"<xmp>"+R+"</xmp>",R)return!p.default(A)&&(T('<pre><code class="'+F+'">'+$+"</code></pre>"),!0)}}]}]}}i.default=g},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(404)),f=s.__importDefault(t(405));function d(y){c.default(y),f.default(y)}i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(38));function d(b){var p;function x(A){var w="menus.panelMenus.code.",E=function(D,C){return C===void 0&&(C=w),b.i18next.t(C+D)},_=[{$elem:c.default("<span>"+E("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(D,C){return C.remove(),!0}}];(p=new f.default(b,A,_)).create()}function g(){p&&(p.remove(),p=null)}return{showCodeTooltip:x,hideCodeTooltip:g}}function y(b){var p=d(b),x=p.showCodeTooltip,g=p.hideCodeTooltip;b.txt.eventHooks.codeClickEvents.push(x),b.txt.eventHooks.clickEvents.push(g),b.txt.eventHooks.toolbarClickEvents.push(g),b.txt.eventHooks.menuClickEvents.push(g),b.txt.eventHooks.textScrollEvents.push(g)}i.createShowHideFn=d,i.default=y},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=t(7),f=s.__importDefault(t(3));function d(y){var b=y.$textElem,p=y.selection,x=y.txt.eventHooks.keydownEvents;x.push(function(g){var A;if(g.keyCode===40){var w=p.getSelectionContainerElem(),E=(A=b.children())===null||A===void 0?void 0:A.last();if((w==null?void 0:w.elems[0].tagName)==="XMP"&&(E==null?void 0:E.elems[0].tagName)==="PRE"){var _=f.default(c.EMPTY_P);b.append(_)}}}),x.push(function(g){y.selection.saveRange();var A=p.getSelectionContainerElem();if(A){var w=A.getNodeTop(y),E=w==null?void 0:w.prev(),_=w==null?void 0:w.getNextSibling();if(E.length&&(E==null?void 0:E.getNodeName())==="PRE"&&_.length===0&&p.getCursorPos()===0&&g.keyCode===8){var D=f.default(c.EMPTY_P);b.append(D)}}})}i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(23)),f=s.__importDefault(t(3)),d=s.__importDefault(t(407)),y=t(6),b=t(7),p=function(x){function g(A){var w=this,E=f.default('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');return w=x.call(this,E,A)||this,d.default(A),w}return s.__extends(g,x),g.prototype.clickHandler=function(){var A=this.editor,w=A.selection.getRange(),E=A.selection.getSelectionContainerElem();if(E!=null&&E.length){var _=f.default(E.elems[0]),D=_.parentUntil("TABLE",E.elems[0]),C=_.children();_.getNodeName()!=="CODE"&&(D&&f.default(D.elems[0]).getNodeName()==="TABLE"||C&&C.length!==0&&f.default(C.elems[0]).getNodeName()==="IMG"&&(w==null||!w.collapsed)||this.createSplitLine())}},g.prototype.createSplitLine=function(){var A="<hr/>"+b.EMPTY_P;y.UA.isFirefox&&(A="<hr/><p></p>"),this.editor.cmd.do("insertHTML",A)},g.prototype.tryChangeActive=function(){},g}(c.default);i.default=p},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(408));function c(f){s.default(f)}i.default=c},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(3)),f=s.__importDefault(t(38));function d(b){var p;function x(A){var w=[{$elem:c.default("<span>"+b.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),onClick:function(E,_){return E.selection.createRangeByElem(_),E.selection.restoreSelection(),E.cmd.do("delete"),!0}}];(p=new f.default(b,A,w)).create()}function g(){p&&(p.remove(),p=null)}return{showSplitLineTooltip:x,hideSplitLineTooltip:g}}function y(b){var p=d(b),x=p.showSplitLineTooltip,g=p.hideSplitLineTooltip;b.txt.eventHooks.splitLineEvents.push(x),b.txt.eventHooks.clickEvents.push(g),b.txt.eventHooks.keyupEvents.push(g),b.txt.eventHooks.toolbarClickEvents.push(g),b.txt.eventHooks.menuClickEvents.push(g),b.txt.eventHooks.textScrollEvents.push(g)}i.default=y},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=d.__importDefault(t(23)),p=t(97),x=d.__importDefault(t(415)),g=d.__importDefault(t(140)),A=function(w){function E(_){var D=this,C=y.default(`<div class="w-e-menu" data-title="\u5F85\u529E\u4E8B\u9879">
  844. <i class="w-e-icon-checkbox-checked"></i>
  845. </div>`);return D=w.call(this,C,_)||this,x.default(_),D}return d.__extends(E,w),E.prototype.clickHandler=function(){var _=this.editor;p.isAllTodo(_)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},E.prototype.tryChangeActive=function(){p.isAllTodo(this.editor)?this.active():this.unActive()},E.prototype.setTodo=function(){var _=this.editor,D=_.selection.getSelectionRangeTopNodes();(0,f.default)(D).call(D,function(C){var M;if((C==null?void 0:C.getNodeName())==="P"){var T=g.default(C).getTodo(),N=(M=T.children())===null||M===void 0?void 0:M.getNode();T.insertAfter(C),_.selection.moveCursor(N),C.remove()}}),this.tryChangeActive()},E.prototype.cancelTodo=function(){var _=this.editor,D=_.selection.getSelectionRangeTopNodes();(0,f.default)(D).call(D,function(C){var M,T,N,P=(T=(M=C.childNodes())===null||M===void 0?void 0:M.childNodes())===null||T===void 0?void 0:T.clone(!0),$=y.default("<p></p>");$.append(P),$.insertAfter(C),(N=$.childNodes())===null||N===void 0||N.get(0).remove(),_.selection.moveCursor($.getNode()),C.remove()})},E}(b.default);i.default=A},function(r,i,t){r.exports=t(411)},function(r,i,t){var s=t(412);r.exports=s},function(r,i,t){var s=t(413),c=Array.prototype;r.exports=function(f){var d=f.every;return f===c||f instanceof Array&&d===c.every?s:d}},function(r,i,t){t(414);var s=t(15);r.exports=s("Array").every},function(r,i,t){var s=t(5),c=t(30).every,f=t(67),d=t(22),y=f("every"),b=d("every");s({target:"Array",proto:!0,forced:!y||!b},{every:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}})},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2),y=d.__importDefault(t(3)),b=t(97),p=d.__importDefault(t(140)),x=t(97),g=t(7);function A(w){function E(M){var T,N;if(b.isAllTodo(w)){M.preventDefault();var P=w.selection,$=P.getSelectionRangeTopNodes()[0],L=(T=$.childNodes())===null||T===void 0?void 0:T.get(0),F=(N=window.getSelection())===null||N===void 0?void 0:N.anchorNode,R=P.getRange();if(R==null||!R.collapsed){var I=R==null?void 0:R.commonAncestorContainer.childNodes,V=R==null?void 0:R.startContainer,j=R==null?void 0:R.endContainer,z=R==null?void 0:R.startOffset,U=R==null?void 0:R.endOffset,G=0,J=0,q=[];I==null||(0,f.default)(I).call(I,function(he,ke){he.contains(V)&&(G=ke),he.contains(j)&&(J=ke)}),J-G>1&&(I==null||(0,f.default)(I).call(I,function(he,ke){ke<=G||ke>=J||q.push(he)}),(0,f.default)(q).call(q,function(he){he.remove()})),x.dealTextNode(V,z),x.dealTextNode(j,U,!1),w.selection.moveCursor(j,0)}if($.text()===""){var ee=y.default(g.EMPTY_P);return ee.insertAfter($),P.moveCursor(ee.getNode()),void $.remove()}var te=P.getCursorPos(),ce=b.getCursorNextNode(L==null?void 0:L.getNode(),F,te),be=p.default(y.default(ce)),pe=be.getInputContainer(),oe=pe.parent().getNode(),se=be.getTodo(),re=pe.getNode().nextSibling;(L==null?void 0:L.text())===""&&(L==null||L.append(y.default("<br>"))),se.insertAfter($),re&&(re==null?void 0:re.textContent)!==""?P.moveCursor(oe):((re==null?void 0:re.nodeName)!=="BR"&&y.default("<br>").insertAfter(pe),P.moveCursor(oe,1))}}function _(M){var T,N;if(b.isAllTodo(w)){var P,$=w.selection,L=$.getSelectionRangeTopNodes()[0],F=(T=L.childNodes())===null||T===void 0?void 0:T.getNode(),R=y.default("<p></p>"),I=R.getNode(),V=(N=window.getSelection())===null||N===void 0?void 0:N.anchorNode,j=$.getCursorPos(),z=V.previousSibling;if(L.text()===""){M.preventDefault();var U=y.default(g.EMPTY_P);return U.insertAfter(L),L.remove(),void $.moveCursor(U.getNode(),0)}(z==null?void 0:z.nodeName)==="SPAN"&&z.childNodes[0].nodeName==="INPUT"&&j===0&&(M.preventDefault(),F==null||(0,f.default)(P=F.childNodes).call(P,function(G,J){J!==0&&I.appendChild(G.cloneNode(!0))}),R.insertAfter(L),L.remove())}}function D(){var M=w.selection.getSelectionRangeTopNodes()[0];M&&x.isTodo(M)&&M.text()===""&&(y.default(g.EMPTY_P).insertAfter(M),M.remove())}function C(M){M&&M.target instanceof HTMLInputElement&&M.target.type==="checkbox"&&(M.target.checked?M.target.setAttribute("checked","true"):M.target.removeAttribute("checked"))}w.txt.eventHooks.enterDownEvents.push(E),w.txt.eventHooks.deleteUpEvents.push(D),w.txt.eventHooks.deleteDownEvents.push(_),w.txt.eventHooks.clickEvents.push(C)}i.default=A},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.selectorValidator=void 0;var s=t(2),c=s.__importDefault(t(3)),f=t(6),d=t(7),y=s.__importDefault(t(129)),b={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function p(g){var A,w,E=g.toolbarSelector,_=c.default(E),D=g.textSelector,C=g.config.height,M=g.i18next,T=c.default("<div></div>"),N=c.default("<div></div>"),P=null;D==null?(w=_.children(),_.append(T).append(N),T.css("background-color",b.toolbarBgColor).css("border",b.border).css("border-bottom",b.toolbarBottomBorder),N.css("border",b.border).css("border-top","none").css("height",C+"px")):(_.append(T),P=c.default(D).children(),c.default(D).append(N),w=N.children()),(A=c.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var $,L=g.config.placeholder;($=L!==y.default.placeholder?c.default("<div>"+L+"</div>"):c.default("<div>"+M.t(L)+"</div>")).addClass("placeholder"),w&&w.length?(A.append(w),$.hide()):A.append(c.default(d.EMPTY_P)),P&&P.length&&(A.append(P),$.hide()),N.append(A),N.append($),T.addClass("w-e-toolbar").css("z-index",g.zIndex.get("toolbar")),N.addClass("w-e-text-container"),N.css("z-index",g.zIndex.get()),A.addClass("w-e-text");var F=f.getRandom("toolbar-elem");T.attr("id",F);var R=f.getRandom("text-elem");A.attr("id",R);var I=N.getBoundingClientRect().height;I!==A.getBoundingClientRect().height&&A.css("min-height",I+"px"),g.$toolbarElem=T,g.$textContainerElem=N,g.$textElem=A,g.toolbarElemId=F,g.textElemId=R}function x(g){var A="data-we-id",w=/^wangEditor-\d+$/,E=g.textSelector,_=g.toolbarSelector,D={bar:c.default("<div></div>"),text:c.default("<div></div>")};if(_==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(D.bar=c.default(_),!D.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+_);if(w.test(D.bar.attr(A)))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(E){if(D.text=c.default(E),!D.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+E);if(w.test(D.text.attr(A)))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")}D.bar.attr(A,g.id),D.text.attr(A,g.id),g.beforeDestroy(function(){D.bar.removeAttr(A),D.text.removeAttr(A)})}i.default=p,i.selectorValidator=x},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(3)),c=t(7);function f(d,y){var b=d.$textElem,p=b.children();if(!p||!p.length)return b.append(s.default(c.EMPTY_P)),void f(d);var x=p.last();if(y){var g=x.html().toLowerCase(),A=x.getNodeName();if(g!=="<br>"&&g!=="<br/>"||A!=="P")return b.append(s.default(c.EMPTY_P)),void f(d)}d.selection.createRangeByElem(x,!1,!0),d.config.focus?d.selection.restoreSelection():d.selection.clearWindowSelectionRange()}i.default=f},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(3));function y(w){b(w),p(w),x(w)}function b(w){w.txt.eventHooks.changeEvents.push(function(){var E=w.config.onchange;if(E){var _=w.txt.html()||"";w.isFocus=!0,E(_)}w.txt.togglePlaceholder()})}function p(w){function E(_){var D=_.target,C=d.default(D),M=w.$textElem,T=w.$toolbarElem,N=M.isContain(C),P=T.isContain(C),$=T.elems[0]==_.target;if(N)w.isFocus||A(w),w.isFocus=!0;else{if(P&&!$||!w.isFocus)return;g(w),w.isFocus=!1}}w.isFocus=!1,document.activeElement===w.$textElem.elems[0]&&w.config.focus&&(A(w),w.isFocus=!0),d.default(document).on("click",E),w.beforeDestroy(function(){d.default(document).off("click",E)})}function x(w){w.$textElem.on("compositionstart",function(){w.isComposing=!0,w.txt.togglePlaceholder()}).on("compositionend",function(){w.isComposing=!1,w.txt.togglePlaceholder()})}function g(w){var E,_=w.config.onblur,D=w.txt.html()||"";(0,f.default)(E=w.txt.eventHooks.onBlurEvents).call(E,function(C){return C()}),_(D)}function A(w){(0,w.config.onfocus)(w.txt.html()||"")}i.default=y},function(r,i,t){function s(c){var f=c.config,d=f.lang,y=f.languages;if(c.i18next==null)c.i18next={t:function(b){var p=b.split(".");return p[p.length-1]}};else try{c.i18next.init({ns:"wangEditor",lng:d,defaultNS:"wangEditor",resources:y})}catch(b){throw new Error("i18next:"+b)}}(0,t(0)(t(1)).default)(i,"__esModule",{value:!0}),i.default=s},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(31));(0,c.default)(i,"__esModule",{value:!0}),i.setUnFullScreen=i.setFullScreen=void 0;var d=t(2).__importDefault(t(3));t(421);var y="w-e-icon-fullscreen",b="w-e-icon-fullscreen_exit",p="w-e-full-screen-editor";i.setFullScreen=function(g){var A=d.default(g.toolbarSelector),w=g.$textContainerElem,E=g.$toolbarElem,_=(0,f.default)(E).call(E,"i."+y),D=g.config;_.removeClass(y),_.addClass(b),A.addClass(p),A.css("z-index",D.zIndexFullScreen);var C=E.getBoundingClientRect();w.css("height","calc(100% - "+C.height+"px)")},i.setUnFullScreen=function(g){var A=d.default(g.toolbarSelector),w=g.$textContainerElem,E=g.$toolbarElem,_=(0,f.default)(E).call(E,"i."+b),D=g.config;_.removeClass(b),_.addClass(y),A.removeClass(p),A.css("z-index","auto"),w.css("height",D.height+"px")};var x=function(g){if(!g.textSelector&&g.config.showFullScreen){var A=g.$toolbarElem,w=d.default(`<div class="w-e-menu" data-title="\u5168\u5C4F">
  846. <i class="`+y+`"></i>
  847. </div>`);w.on("click",function(E){var _;(0,f.default)(_=d.default(E.currentTarget)).call(_,"i").hasClass(y)?(w.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),i.setFullScreen(g)):(w.attr("data-title","\u5168\u5C4F"),i.setUnFullScreen(g))}),A.append(w)}};i.default=x},function(r,i,t){var s=t(20),c=t(422);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-full-screen-editor {
  848. position: fixed;
  849. width: 100%!important;
  850. height: 100%!important;
  851. left: 0;
  852. top: 0;
  853. }
  854. `,""]),r.exports=i},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(31));(0,c.default)(i,"__esModule",{value:!0});var d=function(y,b){var p,x=y.isEnable?y.$textElem:(0,f.default)(p=y.$textContainerElem).call(p,".w-e-content-mantle"),g=(0,f.default)(x).call(x,"[id='"+b+"']").getOffsetData().top;x.scrollTop(g)};i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2).__importDefault(t(128)),c={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},f=function(){function d(){this.tier=c,this.baseZIndex=s.default.zIndex}return d.prototype.get=function(y){return y&&this.tier[y]?this.baseZIndex+this.tier[y]:this.baseZIndex},d.prototype.init=function(y){this.baseZIndex==s.default.zIndex&&(this.baseZIndex=y.config.zIndex)},d}();i.default=f},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(70)),d=s(t(4));(0,c.default)(i,"__esModule",{value:!0});var y=t(2),b=y.__importDefault(t(426)),p=t(6),x=t(7);function g(w,E){return(0,f.default)(w).call(w,function(_){var D=_.type,C=_.target,M=_.attributeName;return D!="attributes"||D=="attributes"&&(M=="contenteditable"||C!=E)})}var A=function(w){function E(_){var D=w.call(this,function(C,M){var T;if(C=g(C,M.target),(T=D.data).push.apply(T,C),_.isCompatibleMode)D.asyncSave();else if(!_.isComposing)return D.asyncSave()})||this;return D.editor=_,D.data=[],D.asyncSave=x.EMPTY_FN,D}return y.__extends(E,w),E.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},E.prototype.emit=function(){var _;(0,d.default)(_=this.editor.txt.eventHooks.changeEvents).call(_,function(D){return D()})},E.prototype.observe=function(){var _=this;w.prototype.observe.call(this,this.editor.$textElem.elems[0]);var D=this.editor.config.onchangeTimeout;this.asyncSave=p.debounce(function(){_.save()},D),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){_.asyncSave()})},E}(b.default);i.default=A},function(r,i,t){var s=t(0)(t(1));(0,s.default)(i,"__esModule",{value:!0});var c=function(){function f(d,y){var b=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(p){d(p,b)},this.observer=new MutationObserver(this.callback),y&&(this.options=y)}return(0,s.default)(f.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),f.prototype.observe=function(d){this.node instanceof Node||(this.node=d,this.connect())},f.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")},f.prototype.disconnect=function(){var d=this.observer.takeRecords();d.length&&this.callback(d),this.observer.disconnect()},f}();i.default=c},function(r,i,t){var s=t(0)(t(1));(0,s.default)(i,"__esModule",{value:!0});var c=t(2),f=c.__importDefault(t(428)),d=c.__importDefault(t(435)),y=c.__importDefault(t(436)),b=function(){function p(x){this.editor=x,this.content=new f.default(x),this.scroll=new d.default(x),this.range=new y.default(x)}return(0,s.default)(p.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),p.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},p.prototype.save=function(x){x.length&&(this.content.save(x),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},p.prototype.revoke=function(){this.editor.change.disconnect();var x=this.content.revoke();x&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),x&&this.editor.change.emit()},p.prototype.restore=function(){this.editor.change.disconnect();var x=this.content.restore();x&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),x&&this.editor.change.emit()},p}();i.default=b},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(429)),f=s.__importDefault(t(433)),d=function(){function y(b){this.editor=b}return y.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new f.default(this.editor):this.cache=new c.default(this.editor),this.cache.observe()},y.prototype.save=function(b){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(b)},y.prototype.revoke=function(){var b;return(b=this.cache)===null||b===void 0?void 0:b.revoke()},y.prototype.restore=function(){var b;return(b=this.cache)===null||b===void 0?void 0:b.restore()},y}();i.default=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=s.__importDefault(t(98)),f=s.__importDefault(t(431)),d=t(432),y=function(b){function p(x){var g=b.call(this,x.config.historyMaxSize)||this;return g.editor=x,g}return s.__extends(p,b),p.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},p.prototype.compile=function(x){return this.save(f.default(x)),this},p.prototype.revoke=function(){return b.prototype.revoke.call(this,function(x){d.revoke(x)})},p.prototype.restore=function(){return b.prototype.restore.call(this,function(x){d.restore(x)})},p}(c.default);i.default=y},function(r,i,t){var s=t(0)(t(1));(0,s.default)(i,"__esModule",{value:!0}),i.CeilStack=void 0;var c=function(){function f(d){d===void 0&&(d=0),this.data=[],this.max=0,this.reset=!1,(d=Math.abs(d))&&(this.max=d)}return f.prototype.resetMax=function(d){d=Math.abs(d),!this.reset&&!isNaN(d)&&(this.max=d,this.reset=!0)},(0,s.default)(f.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),f.prototype.instack=function(d){return this.data.unshift(d),this.max&&this.size>this.max&&(this.data.length=this.max),this},f.prototype.outstack=function(){return this.data.shift()},f.prototype.clear=function(){return this.data.length=0,this},f}();i.CeilStack=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(27));(0,c.default)(i,"__esModule",{value:!0}),i.compliePosition=i.complieNodes=i.compileValue=i.compileType=void 0;var y=t(6);function b(_){switch(_){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function p(_){switch(_.type){case"attributes":return _.target.getAttribute(_.attributeName)||"";case"characterData":return _.target.textContent;default:return""}}function x(_){var D={};return _.addedNodes.length&&(D.add=y.toArray(_.addedNodes)),_.removedNodes.length&&(D.remove=y.toArray(_.removedNodes)),D}function g(_){return _.previousSibling?{type:"before",target:_.previousSibling}:_.nextSibling?{type:"after",target:_.nextSibling}:{type:"parent",target:_.target}}i.compileType=b,i.compileValue=p,i.complieNodes=x,i.compliePosition=g;var A=["UL","OL","H1","H2","H3","H4","H5","H6"];function w(_){var D=[],C=!1,M=[];return(0,f.default)(_).call(_,function(T,N){var P={type:b(T.type),target:T.target,attr:T.attributeName||"",value:p(T)||"",oldValue:T.oldValue||"",nodes:x(T),position:g(T)};if(D.push(P),y.UA.isFirefox){if(C&&T.addedNodes.length&&T.addedNodes[0].nodeType==1){var $=T.addedNodes[0],L={type:"node",target:$,attr:"",value:"",oldValue:"",nodes:{add:[C]},position:{type:"parent",target:$}};(0,d.default)(A).call(A,$.nodeName)!=-1?(L.nodes.add=y.toArray($.childNodes),D.push(L)):C.nodeType==3?(E($,M)&&(L.nodes.add=y.toArray($.childNodes)),D.push(L)):(0,d.default)(A).call(A,T.target.nodeName)==-1&&E($,M)&&(L.nodes.add=y.toArray($.childNodes),D.push(L))}P.type=="node"&&T.removedNodes.length==1?(C=T.removedNodes[0],M.push(C)):(C=!1,M.length=0)}}),D}function E(_,D){for(var C=0,M=D.length-1;M>0&&_.contains(D[M]);M--)C++;return C}i.default=w},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(4)),d=s(t(94));function y(M,T){var N=M.position.target;switch(M.position.type){case"before":N.nextSibling?(N=N.nextSibling,(0,f.default)(T).call(T,function(P){M.target.insertBefore(P,N)})):(0,f.default)(T).call(T,function(P){M.target.appendChild(P)});break;case"after":(0,f.default)(T).call(T,function(P){M.target.insertBefore(P,N)});break;default:(0,f.default)(T).call(T,function(P){N.appendChild(P)})}}function b(M){for(var T=0,N=(0,d.default)(M.nodes);T<N.length;T++){var P=N[T],$=P[0],L=P[1];$==="add"?(0,f.default)(L).call(L,function(F){M.target.removeChild(F)}):y(M,L)}}function p(M){var T=M.target;M.oldValue==null?T.removeAttribute(M.attr):T.setAttribute(M.attr,M.oldValue)}function x(M){M.target.textContent=M.oldValue}(0,c.default)(i,"__esModule",{value:!0}),i.restore=i.revoke=void 0;var g={node:b,text:x,attr:p};function A(M){for(var T=M.length-1;T>-1;T--){var N=M[T];g[N.type](N)}}function w(M){for(var T=0,N=(0,d.default)(M.nodes);T<N.length;T++){var P=N[T],$=P[0],L=P[1];$==="add"?y(M,L):(0,f.default)(L).call(L,function(F){F.parentNode.removeChild(F)})}}function E(M){M.target.textContent=M.value}function _(M){M.target.setAttribute(M.attr,M.value)}i.revoke=A;var D={node:w,text:E,attr:_};function C(M){for(var T=0,N=M;T<N.length;T++){var P=N[T];D[P.type](P)}}i.restore=C},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(434),c=function(){function f(d){this.editor=d,this.data=new s.TailChain}return f.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},f.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},f.prototype.revoke=function(){var d=this.data.prev();return!!d&&(this.editor.$textElem.html(d),!0)},f.prototype.restore=function(){var d=this.data.next();return!!d&&(this.editor.$textElem.html(d),!0)},f}();i.default=c},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(91));(0,c.default)(i,"__esModule",{value:!0}),i.TailChain=void 0;var d=function(){function y(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return y.prototype.resetMax=function(b){(b=Math.abs(b))&&(this.max=b)},(0,c.default)(y.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),y.prototype.insertLast=function(b){var p;for(this.isRe&&((0,f.default)(p=this.data).call(p,this.point+1),this.isRe=!1),this.data.push(b);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},y.prototype.current=function(){return this.data[this.point]},y.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},y.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},y}();i.TailChain=d},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=t(2),c=function(f){function d(y){var b=f.call(this,y.config.historyMaxSize)||this;return b.editor=y,b.last=0,b.target=y.$textElem.elems[0],b}return s.__extends(d,f),d.prototype.observe=function(){var y=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){y.last=y.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},d.prototype.save=function(){return f.prototype.save.call(this,[this.last,this.target.scrollTop]),this},d.prototype.revoke=function(){var y=this;return f.prototype.revoke.call(this,function(b){y.target.scrollTop=b[0]})},d.prototype.restore=function(){var y=this;return f.prototype.restore.call(this,function(b){y.target.scrollTop=b[1]})},d}(s.__importDefault(t(98)).default);i.default=c},function(r,i,t){var s=t(0)(t(1));(0,s.default)(i,"__esModule",{value:!0});var c=t(2),f=c.__importDefault(t(98)),d=c.__importDefault(t(3)),y=t(6);function b(x){return{start:[x.startContainer,x.startOffset],end:[x.endContainer,x.endOffset],root:x.commonAncestorContainer,collapsed:x.collapsed}}var p=function(x){function g(A){var w=x.call(this,A.config.historyMaxSize)||this;return w.editor=A,w.lastRange=b(document.createRange()),w.root=A.$textElem.elems[0],w.updateLastRange=y.debounce(function(){w.lastRange=b(w.rangeHandle)},A.config.onchangeTimeout),w}return c.__extends(g,x),(0,s.default)(g.prototype,"rangeHandle",{get:function(){var A=document.getSelection();return A&&A.rangeCount?A.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),g.prototype.observe=function(){var A=this;function w(){var _=A.rangeHandle;(A.root===_.commonAncestorContainer||A.root.contains(_.commonAncestorContainer))&&(A.editor.isComposing||A.updateLastRange())}function E(_){(_.key=="Backspace"||_.key=="Delete")&&A.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),d.default(document).on("selectionchange",w),this.editor.beforeDestroy(function(){d.default(document).off("selectionchange",w)}),A.editor.$textElem.on("keydown",E)},g.prototype.save=function(){var A=b(this.rangeHandle);return x.prototype.save.call(this,[this.lastRange,A]),this.lastRange=A,this},g.prototype.set=function(A){try{if(A){var w=this.rangeHandle;return w.setStart.apply(w,A.start),w.setEnd.apply(w,A.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},g.prototype.revoke=function(){var A=this;return x.prototype.revoke.call(this,function(w){A.set(w[0])})},g.prototype.restore=function(){var A=this;return x.prototype.restore.call(this,function(w){A.set(w[1])})},g}(f.default);i.default=p},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(31));(0,c.default)(i,"__esModule",{value:!0});var d=t(2).__importDefault(t(3));function y(b){var p,x,g=!1;function A(){if(!g){b.$textElem.hide();var E=b.zIndex.get("textContainer"),_=b.txt.html();p=d.default('<div class="w-e-content-mantle" style="z-index:'+E+`">
  855. <div class="w-e-content-preview w-e-text">`+_+`</div>
  856. </div>`),b.$textContainerElem.append(p);var D=b.zIndex.get("menu");x=d.default('<div class="w-e-menue-mantle" style="z-index:'+D+'"></div>'),b.$toolbarElem.append(x),g=!0,b.isEnable=!1}}function w(){!g||(p.remove(),x.remove(),b.$textElem.show(),g=!1,b.isEnable=!0)}return b.txt.eventHooks.changeEvents.push(function(){g&&(0,f.default)(p).call(p,".w-e-content-preview").html(b.$textElem.html())}),{disable:A,enable:w}}t(438),i.default=y},function(r,i,t){var s=t(20),c=t(439);typeof(c=c.__esModule?c.default:c)=="string"&&(c=[[r.i,c,""]]);var f={insert:"head",singleton:!1};s(c,f),r.exports=c.locals||{}},function(r,i,t){(i=t(21)(!1)).push([r.i,`.w-e-content-mantle {
  857. width: 100%;
  858. height: 100%;
  859. overflow-y: auto;
  860. }
  861. .w-e-content-mantle .w-e-content-preview {
  862. width: 100%;
  863. min-height: 100%;
  864. padding: 0 10px;
  865. line-height: 1.5;
  866. }
  867. .w-e-content-mantle .w-e-content-preview img {
  868. cursor: default;
  869. }
  870. .w-e-content-mantle .w-e-content-preview img:hover {
  871. box-shadow: none;
  872. }
  873. .w-e-menue-mantle {
  874. position: absolute;
  875. height: 100%;
  876. width: 100%;
  877. top: 0;
  878. left: 0;
  879. }
  880. `,""]),r.exports=i},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0});var s=function(){function c(f){var d=this;this.editor=f;var y=function(){document.activeElement===f.$textElem.elems[0]&&d.emit()};window.document.addEventListener("selectionchange",y),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",y)})}return c.prototype.emit=function(){var f,d=this.editor.config.onSelectionChange;if(d){var y=this.editor.selection;y.saveRange(),y.isSelectionEmpty()||d({text:y.getSelectionText(),html:(f=y.getSelectionContainerElem())===null||f===void 0?void 0:f.elems[0].innerHTML,selection:y})}},c}();i.default=s},function(r,i,t){var s=t(0),c=s(t(1)),f=s(t(127)),d=s(t(94)),y=s(t(4));(0,c.default)(i,"__esModule",{value:!0}),i.registerPlugin=void 0;var b=t(2).__importDefault(t(87)),p=t(6);function x(A,w,E){if(!A)throw new TypeError("name is not define");if(!w)throw new TypeError("options is not define");if(!w.intention)throw new TypeError("options.intention is not define");if(w.intention&&typeof w.intention!="function")throw new TypeError("options.intention is not function");E[A]&&console.warn("plugin "+A+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),E[A]=w}function g(A){var w=(0,f.default)({},p.deepClone(b.default.globalPluginsFunctionList),p.deepClone(A.pluginsFunctionList)),E=(0,d.default)(w);(0,y.default)(E).call(E,function(_){var D=_[0],C=_[1];console.info("plugin "+D+" initializing");var M=C.intention,T=C.config;M(A,T),console.info("plugin "+D+" initialization complete")})}i.registerPlugin=x,i.default=g},function(r,i,t){(0,t(0)(t(1)).default)(i,"__esModule",{value:!0})}]).default;var WangEditor=getDefaultExportFromCjs(wangEditor.exports),NAME="fcEditor",uni=1,_extends=Object.assign||function(r){for(var i,t=1;t<arguments.length;t++)for(var s in i=arguments[t])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},FcEditor=defineComponent({name:NAME,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:uni++}},watch:{disabled:function(){this.enable()},modelValue:function(r){r!==this.editor.txt.html()&&this.editor.txt.html(r)}},methods:{enable:function(){this.disabled?this.editor.disable():this.editor.enable()},result:function(){this.$emit("update:modelValue",this.editor.txt.html())}},mounted:function(){var r=this;this.$nextTick(function(){r.editor=new WangEditor("#editor".concat(r.uni)),r.editor.config.zIndex=2,r.config&&_extends(r.editor.config,r.config),r.init&&r.init(r.editor),r.editor.create(),r.enable(),r.editor.txt.html(r.modelValue)})},render:function(){var r=_objectSpread2({},this.$attrs);return delete r.id,createVNode("div",mergeProps(r,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}});designerForm.component("draggable",draggableComponent),designerForm.component("DragTool",DragTool),designerForm.component("DragBox",_sfc_main$2),designerForm.component("Validate",Validate),designerForm.component("Struct",Struct),designerForm.component("Fetch",Fetch),designerForm.component("Required",Required),designerForm.component("TableOptions",TableOptions),designerForm.component("FcEditor",FcEditor),viewForm.component("FcEditor",FcEditor),designerForm.register("_fc",{init(r,i){i._id=uniqueId(),r.repeat&&(i.field=uniqueId()),r.value&&(i.effect._fc=!1)}}),designerForm.register("_fc_tool",{init(r,i){i.props.unique=uniqueId()}});const install=function(r){r.component("FcDesigner",FcDesigner)};FcDesigner.install=install,FcDesigner.makeOptionsRule=makeOptionsRule,FcDesigner.formCreate=viewForm,FcDesigner.designerForm=designerForm});export{FcDesigner as F,__tla};