tenghui-ui 2.5.12 → 2.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/tenghui-ui.es.js +531 -222
- package/dist/tenghui-ui.es.js.map +1 -1
- package/dist/tenghui-ui.umd.js +29 -29
- package/dist/tenghui-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/tenghui-ui.umd.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
var _f=Object.defineProperty,Of=Object.defineProperties;var Sf=Object.getOwnPropertyDescriptors;var So=Object.getOwnPropertySymbols;var Ef=Object.prototype.hasOwnProperty,xf=Object.prototype.propertyIsEnumerable;var Eo=(Ie,Te,Re)=>Te in Ie?_f(Ie,Te,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ie[Te]=Re,ve=(Ie,Te)=>{for(var Re in Te||(Te={}))Ef.call(Te,Re)&&Eo(Ie,Re,Te[Re]);if(So)for(var Re of So(Te))xf.call(Te,Re)&&Eo(Ie,Re,Te[Re]);return Ie},Ve=(Ie,Te)=>Of(Ie,Sf(Te));(function(Ie,Te){typeof exports=="object"&&typeof module!="undefined"?module.exports=Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(Ie=typeof globalThis!="undefined"?globalThis:Ie||self,Ie["tenghui-ui"]=Te(Ie.Vue))})(this,function(Ie){"use strict";function Te(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Re=Te(Ie),wf="",xo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},wo=[],Af="";function Se(e,r,n,t,o,i,s,d){var c=typeof e=="function"?e.options:e;r&&(c.render=r,c.staticRenderFns=n,c._compiled=!0),t&&(c.functional=!0),i&&(c._scopeId="data-v-"+i);var h;if(s?(h=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!a&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(a=__VUE_SSR_CONTEXT__),o&&o.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(s)},c._ssrRegister=h):o&&(h=d?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(c.functional){c._injectStyles=h;var f=c.render;c.render=function(u,v){return h.call(v),f(u,v)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,h):[h]}return{exports:e,options:c}}const Ao={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},Cr={};var To=Se(Ao,xo,wo,!1,Co,"183fe45a",null,null);function Co(e){for(let r in Cr)this[r]=Cr[r]}var Xt=function(){return To.exports}();Xt.install=e=>{e.component(Xt.name,Xt)};const kr=Xt;var ko=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(t){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(t){e.activePath=t},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(t,o){return[t.children?n("el-submenu",{attrs:{index:t.path||t.name}},[n("template",{slot:"title"},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(t.name))])]),e._l(t.children,function(i,s){return[i.children?n("el-submenu",{attrs:{index:i.path||i.name}},[n("template",{slot:"title"},[e._v(e._s(i.name))]),e._l(i.children,function(d,c){return n("el-menu-item",{key:d.name,attrs:{index:d.path||d.name}},[e._v(e._s(d.name))])})],2):n("el-menu-item",{attrs:{index:i.path||i.name}},[e._v(e._s(i.name))])]})],2):n("el-menu-item",{attrs:{index:t.path||t.name}},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.name))])])]})],2)],1)],1)},No=[],Tf="";const Io={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},Nr={};var Po=Se(Io,ko,No,!1,Lo,"0c59bf82",null,null);function Lo(e){for(let r in Nr)this[r]=Nr[r]}var Zt=function(){return Po.exports}();Zt.install=e=>{e.component(Zt.name,Zt)};const Ir=Zt;var Do=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(t,o){return n("div",{key:t.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===t.path,"admin-tab__chrome-tab--hover":e.hoverItem==t.path},on:{click:function(i){return e.handleToggle(t.path)},mouseenter:function(i){return e.itemEnter(t.path)},mouseleave:function(i){return e.itemLeave(t.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(t.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(t.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:t.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(t.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(i){return i.stopPropagation(),e.handleDeleteTab(t.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==t.path||e.currentTab.path===t.path}})])}),0)])])},$o=[],Cf="";const Ro={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const r="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?r:this.hoverItem==e?n:"#FFFFFF"}}},Pr={};var Mo=Se(Ro,Do,$o,!1,Fo,"355ab970",null,null);function Fo(e){for(let r in Pr)this[r]=Pr[r]}var Jt=function(){return Mo.exports}();Jt.install=e=>{e.component(Jt.name,Jt)};const Lr=Jt;var jo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(t){return e.handleOperation("theme",t)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(t){return n("el-dropdown-item",{key:t.value,attrs:{command:t.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:t.theme["@theme-color"]}}),n("span",[e._v(e._s(t.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("dropdown"),e._l(e.items,function(t){return n("el-dropdown-item",{key:t.command,attrs:{icon:t.icon,command:t.command||t.key}},[e._v(e._s(t.name))])}),n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],2)],1)],1)},Bo=[],kf="";const qo={name:"ComTool",props:{themes:{type:Array,default(){return[]}},items:{type:Array,default(){return[]}}},methods:{handleOperation(e,r){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,r);break}}}},Dr={};var Uo=Se(qo,jo,Bo,!1,Ho,"c39787c2",null,null);function Ho(e){for(let r in Dr)this[r]=Dr[r]}var Qt=function(){return Uo.exports}();Qt.install=e=>{e.component(Qt.name,Qt)};const $r=Qt;var Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mr(e){if(e.__esModule)return e;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),r}var Fr={exports:{}},jr={exports:{}};/*!
|
|
1
|
+
var Cf=Object.defineProperty,kf=Object.defineProperties;var If=Object.getOwnPropertyDescriptors;var xo=Object.getOwnPropertySymbols;var Nf=Object.prototype.hasOwnProperty,Pf=Object.prototype.propertyIsEnumerable;var wo=(Ne,Te,Re)=>Te in Ne?Cf(Ne,Te,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Te]=Re,ve=(Ne,Te)=>{for(var Re in Te||(Te={}))Nf.call(Te,Re)&&wo(Ne,Re,Te[Re]);if(xo)for(var Re of xo(Te))Pf.call(Te,Re)&&wo(Ne,Re,Te[Re]);return Ne},We=(Ne,Te)=>kf(Ne,If(Te));(function(Ne,Te){typeof exports=="object"&&typeof module!="undefined"?module.exports=Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(Ne=typeof globalThis!="undefined"?globalThis:Ne||self,Ne["tenghui-ui"]=Te(Ne.Vue))})(this,function(Ne){"use strict";function Te(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Re=Te(Ne),Lf="",Ao=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},To=[],Df="";function be(e,r,n,t,o,i,s,d){var c=typeof e=="function"?e.options:e;r&&(c.render=r,c.staticRenderFns=n,c._compiled=!0),t&&(c.functional=!0),i&&(c._scopeId="data-v-"+i);var h;if(s?(h=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!a&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(a=__VUE_SSR_CONTEXT__),o&&o.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(s)},c._ssrRegister=h):o&&(h=d?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(c.functional){c._injectStyles=h;var f=c.render;c.render=function(u,v){return h.call(v),f(u,v)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,h):[h]}return{exports:e,options:c}}const Co={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},kr={};var ko=be(Co,Ao,To,!1,Io,"183fe45a",null,null);function Io(e){for(let r in kr)this[r]=kr[r]}var Xt=function(){return ko.exports}();Xt.install=e=>{e.component(Xt.name,Xt)};const Ir=Xt;var No=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(t){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(t){e.activePath=t},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(t,o){return[t.children?n("el-submenu",{attrs:{index:t.path||t.name}},[n("template",{slot:"title"},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(t.name))])]),e._l(t.children,function(i,s){return[i.children?n("el-submenu",{attrs:{index:i.path||i.name}},[n("template",{slot:"title"},[e._v(e._s(i.name))]),e._l(i.children,function(d,c){return n("el-menu-item",{key:d.name,attrs:{index:d.path||d.name}},[e._v(e._s(d.name))])})],2):n("el-menu-item",{attrs:{index:i.path||i.name}},[e._v(e._s(i.name))])]})],2):n("el-menu-item",{attrs:{index:t.path||t.name}},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.name))])])]})],2)],1)],1)},Po=[],$f="";const Lo={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},Nr={};var Do=be(Lo,No,Po,!1,$o,"0c59bf82",null,null);function $o(e){for(let r in Nr)this[r]=Nr[r]}var Zt=function(){return Do.exports}();Zt.install=e=>{e.component(Zt.name,Zt)};const Pr=Zt;var Ro=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(t,o){return n("div",{key:t.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===t.path,"admin-tab__chrome-tab--hover":e.hoverItem==t.path},on:{click:function(i){return e.handleToggle(t.path)},mouseenter:function(i){return e.itemEnter(t.path)},mouseleave:function(i){return e.itemLeave(t.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(t.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(t.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:t.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(t.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(i){return i.stopPropagation(),e.handleDeleteTab(t.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==t.path||e.currentTab.path===t.path}})])}),0)])])},Mo=[],Rf="";const Fo={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const r="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?r:this.hoverItem==e?n:"#FFFFFF"}}},Lr={};var jo=be(Fo,Ro,Mo,!1,Bo,"355ab970",null,null);function Bo(e){for(let r in Lr)this[r]=Lr[r]}var Jt=function(){return jo.exports}();Jt.install=e=>{e.component(Jt.name,Jt)};const Dr=Jt;var qo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(t){return e.handleOperation("theme",t)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(t){return n("el-dropdown-item",{key:t.value,attrs:{command:t.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:t.theme["@theme-color"]}}),n("span",[e._v(e._s(t.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("dropdown"),e._l(e.items,function(t){return n("el-dropdown-item",{key:t.command,attrs:{icon:t.icon,command:t.command||t.key}},[e._v(e._s(t.name))])}),n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],2)],1)],1)},Uo=[],Mf="";const Ho={name:"ComTool",props:{themes:{type:Array,default(){return[]}},items:{type:Array,default(){return[]}}},methods:{handleOperation(e,r){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,r);break}}}},$r={};var zo=be(Ho,qo,Uo,!1,Wo,"c39787c2",null,null);function Wo(e){for(let r in $r)this[r]=$r[r]}var Qt=function(){return zo.exports}();Qt.install=e=>{e.component(Qt.name,Qt)};const Rr=Qt;var Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fr(e){if(e.__esModule)return e;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),r}var jr={exports:{}},Br={exports:{}};/*!
|
|
2
2
|
* Infinite Scroll v2.0.4
|
|
3
3
|
* measure size of elements
|
|
4
4
|
* MIT license
|
|
5
|
-
*/(function(e){(function(r,n){e.exports?e.exports=n():r.getSize=n()})(window,function(){function n(s){let d=parseFloat(s);return s.indexOf("%")==-1&&!isNaN(d)&&d}let t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function o(){let s={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return t.forEach(d=>{s[d]=0}),s}function i(s){if(typeof s=="string"&&(s=document.querySelector(s)),!(s&&typeof s=="object"&&s.nodeType))return;let c=getComputedStyle(s);if(c.display=="none")return o();let h={};h.width=s.offsetWidth,h.height=s.offsetHeight;let f=h.isBorderBox=c.boxSizing=="border-box";t.forEach(_=>{let
|
|
5
|
+
*/(function(e){(function(r,n){e.exports?e.exports=n():r.getSize=n()})(window,function(){function n(s){let d=parseFloat(s);return s.indexOf("%")==-1&&!isNaN(d)&&d}let t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function o(){let s={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return t.forEach(d=>{s[d]=0}),s}function i(s){if(typeof s=="string"&&(s=document.querySelector(s)),!(s&&typeof s=="object"&&s.nodeType))return;let c=getComputedStyle(s);if(c.display=="none")return o();let h={};h.width=s.offsetWidth,h.height=s.offsetHeight;let f=h.isBorderBox=c.boxSizing=="border-box";t.forEach(_=>{let g=c[_],O=parseFloat(g);h[_]=isNaN(O)?0:O});let l=h.paddingLeft+h.paddingRight,a=h.paddingTop+h.paddingBottom,u=h.marginLeft+h.marginRight,v=h.marginTop+h.marginBottom,p=h.borderLeftWidth+h.borderRightWidth,b=h.borderTopWidth+h.borderBottomWidth,m=n(c.width);m!==!1&&(h.width=m+(f?0:l+p));let y=n(c.height);return y!==!1&&(h.height=y+(f?0:a+b)),h.innerWidth=h.width-(l+p),h.innerHeight=h.height-(a+b),h.outerWidth=h.width+u,h.outerHeight=h.height+v,h}return i})})(Br);var qr={exports:{}},Ur={exports:{}};(function(e){(function(r,n){e.exports?e.exports=n():r.EvEmitter=n()})(typeof window!="undefined"?window:Ct,function(){function r(){}let n=r.prototype;return n.on=function(t,o){if(!t||!o)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(o)||s.push(o),this},n.once=function(t,o){if(!t||!o)return this;this.on(t,o);let i=this._onceEvents=this._onceEvents||{},s=i[t]=i[t]||{};return s[o]=!0,this},n.off=function(t,o){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(o);return s!=-1&&i.splice(s,1),this},n.emitEvent=function(t,o){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),o=o||[];let s=this._onceEvents&&this._onceEvents[t];for(let d of i)s&&s[d]&&(this.off(t,d),delete s[d]),d.apply(this,o);return this},n.allOff=function(){return delete this._events,delete this._onceEvents,this},r})})(Ur);/*!
|
|
6
6
|
* Unidragger v3.0.1
|
|
7
7
|
* Draggable base class
|
|
8
8
|
* MIT license
|
|
9
|
-
*/(function(e){(function(r,n){e.exports?e.exports=n(r,
|
|
9
|
+
*/(function(e){(function(r,n){e.exports?e.exports=n(r,Ur.exports):r.Unidragger=n(r,r.EvEmitter)})(typeof window!="undefined"?window:Ct,function(n,t){function o(){}let i=o.prototype=Object.create(t.prototype);i.handleEvent=function(f){let l="on"+f.type;this[l]&&this[l](f)};let s,d;"ontouchstart"in n?(s="touchstart",d=["touchmove","touchend","touchcancel"]):n.PointerEvent?(s="pointerdown",d=["pointermove","pointerup","pointercancel"]):(s="mousedown",d=["mousemove","mouseup"]),i.touchActionValue="none",i.bindHandles=function(){this._bindHandles("addEventListener",this.touchActionValue)},i.unbindHandles=function(){this._bindHandles("removeEventListener","")},i._bindHandles=function(f,l){this.handles.forEach(a=>{a[f](s,this),a[f]("click",this),n.PointerEvent&&(a.style.touchAction=l)})},i.bindActivePointerEvents=function(){d.forEach(f=>{n.addEventListener(f,this)})},i.unbindActivePointerEvents=function(){d.forEach(f=>{n.removeEventListener(f,this)})},i.withPointer=function(f,l){l.pointerId===this.pointerIdentifier&&this[f](l,l)},i.withTouch=function(f,l){let a;for(let u of l.changedTouches)u.identifier===this.pointerIdentifier&&(a=u);a&&this[f](l,a)},i.onmousedown=function(f){this.pointerDown(f,f)},i.ontouchstart=function(f){this.pointerDown(f,f.changedTouches[0])},i.onpointerdown=function(f){this.pointerDown(f,f)};const c=["TEXTAREA","INPUT","SELECT","OPTION"],h=["radio","checkbox","button","submit","image","file"];return i.pointerDown=function(f,l){let a=c.includes(f.target.nodeName),u=h.includes(f.target.type),v=!a||u;!(!this.isPointerDown&&!f.button&&v)||(this.isPointerDown=!0,this.pointerIdentifier=l.pointerId!==void 0?l.pointerId:l.identifier,this.pointerDownPointer={pageX:l.pageX,pageY:l.pageY},this.bindActivePointerEvents(),this.emitEvent("pointerDown",[f,l]))},i.onmousemove=function(f){this.pointerMove(f,f)},i.onpointermove=function(f){this.withPointer("pointerMove",f)},i.ontouchmove=function(f){this.withTouch("pointerMove",f)},i.pointerMove=function(f,l){let a={x:l.pageX-this.pointerDownPointer.pageX,y:l.pageY-this.pointerDownPointer.pageY};this.emitEvent("pointerMove",[f,l,a]),!this.isDragging&&this.hasDragStarted(a)&&this.dragStart(f,l),this.isDragging&&this.dragMove(f,l,a)},i.hasDragStarted=function(f){return Math.abs(f.x)>3||Math.abs(f.y)>3},i.dragStart=function(f,l){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent("dragStart",[f,l])},i.dragMove=function(f,l,a){this.emitEvent("dragMove",[f,l,a])},i.onmouseup=function(f){this.pointerUp(f,f)},i.onpointerup=function(f){this.withPointer("pointerUp",f)},i.ontouchend=function(f){this.withTouch("pointerUp",f)},i.pointerUp=function(f,l){this.pointerDone(),this.emitEvent("pointerUp",[f,l]),this.isDragging?this.dragEnd(f,l):this.staticClick(f,l)},i.dragEnd=function(f,l){this.isDragging=!1,setTimeout(()=>delete this.isPreventingClicks),this.emitEvent("dragEnd",[f,l])},i.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent("pointerDone")},i.onpointercancel=function(f){this.withPointer("pointerCancel",f)},i.ontouchcancel=function(f){this.withTouch("pointerCancel",f)},i.pointerCancel=function(f,l){this.pointerDone(),this.emitEvent("pointerCancel",[f,l])},i.onclick=function(f){this.isPreventingClicks&&f.preventDefault()},i.staticClick=function(f,l){let a=f.type==="mouseup";a&&this.isIgnoringMouseUp||(this.emitEvent("staticClick",[f,l]),a&&(this.isIgnoringMouseUp=!0,setTimeout(()=>{delete this.isIgnoringMouseUp},400)))},o})})(qr);/*!
|
|
10
10
|
* Draggabilly v3.0.0
|
|
11
11
|
* Make that shiz draggable
|
|
12
12
|
* https://draggabilly.desandro.com
|
|
13
13
|
* MIT license
|
|
14
|
-
*/(function(e){(function(r,n){e.exports?e.exports=n(r,jr.exports,Br.exports):r.Draggabilly=n(r,r.getSize,r.Unidragger)})(typeof window!="undefined"?window:Ct,function(n,t,o){function i(){}let s=n.jQuery;function d(v,p){this.element=typeof v=="string"?document.querySelector(v):v,s&&(this.$element=s(this.element)),this.options={},this.option(p),this._create()}let c=d.prototype=Object.create(o.prototype);c.option=function(v){this.options=ve(ve({},this.options),v)};const h=["relative","absolute","fixed"];c._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=ve({},this.position);let v=getComputedStyle(this.element);h.includes(v.position)||(this.element.style.position="relative"),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.setHandles(),this.enable()},c.setHandles=function(){let{handle:v}=this.options;typeof v=="string"?this.handles=this.element.querySelectorAll(v):typeof v=="object"&&v.length?this.handles=v:v instanceof HTMLElement?this.handles=[v]:this.handles=[this.element]};const f=["dragStart","dragMove","dragEnd"];let l=c.emitEvent;c.emitEvent=function(v,p){if(!this.isEnabled&&f.includes(v))return;l.call(this,v,p);let m=n.jQuery;if(!m||!this.$element)return;let g,_=p;p&&p[0]instanceof Event&&([g,..._]=p);let O=m.Event(g);O.type=v,this.$element.trigger(O,_)},c._getPosition=function(){let v=getComputedStyle(this.element),p=this._getPositionCoord(v.left,"width"),b=this._getPositionCoord(v.top,"height");this.position.x=isNaN(p)?0:p,this.position.y=isNaN(b)?0:b,this._addTransformPosition(v)},c._getPositionCoord=function(v,p){if(v.includes("%")){let b=t(this.element.parentNode);return b?parseFloat(v)/100*b[p]:0}return parseInt(v,10)},c._addTransformPosition=function(v){let p=v.transform;if(!p.startsWith("matrix"))return;let b=p.split(","),m=p.startsWith("matrix3d")?12:4,g=parseInt(b[m],10),_=parseInt(b[m+1],10);this.position.x+=g,this.position.y+=_},c.handlePointerDown=function(v,p){!this.isEnabled||(this.pointerDownPointer={pageX:p.pageX,pageY:p.pageY},v.preventDefault(),document.activeElement.blur(),this.bindActivePointerEvents(v),this.element.classList.add("is-pointer-down"))},c.handleDragStart=function(){!this.isEnabled||(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.animate())},c.measureContainment=function(){let v=this.getContainer();if(!v)return;let p=t(this.element),b=t(v),{borderLeftWidth:m,borderRightWidth:g,borderTopWidth:_,borderBottomWidth:y}=b,O=this.element.getBoundingClientRect(),k=v.getBoundingClientRect(),T=m+g,A=_+y,P=this.relativeStartPosition={x:O.left-(k.left+m),y:O.top-(k.top+_)};this.containSize={width:b.width-T-P.x-p.width,height:b.height-A-P.y-p.height}},c.getContainer=function(){let v=this.options.containment;return v?v instanceof HTMLElement?v:typeof v=="string"?document.querySelector(v):this.element.parentNode:void 0},c.handleDragMove=function(v,p,b){if(!this.isEnabled)return;let m=b.x,g=b.y,_=this.options.grid,y=_&&_[0],O=_&&_[1];m=a(m,y),g=a(g,O),m=this.containDrag("x",m,y),g=this.containDrag("y",g,O),m=this.options.axis=="y"?0:m,g=this.options.axis=="x"?0:g,this.position.x=this.startPosition.x+m,this.position.y=this.startPosition.y+g,this.dragPoint.x=m,this.dragPoint.y=g};function a(v,p,b){return p?(b=b||"round",Math[b](v/p)*p):v}c.containDrag=function(v,p,b){if(!this.options.containment)return p;let m=v=="x"?"width":"height",g=this.relativeStartPosition[v],_=a(-g,b,"ceil"),y=this.containSize[m];return y=a(y,b,"floor"),Math.max(_,Math.min(y,p))},c.handlePointerUp=function(){this.element.classList.remove("is-pointer-down")},c.handleDragEnd=function(){!this.isEnabled||(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"))},c.animate=function(){!this.isDragging||(this.positionDrag(),requestAnimationFrame(()=>this.animate()))},c.setLeftTop=function(){let{x:v,y:p}=this.position;this.element.style.left=`${v}px`,this.element.style.top=`${p}px`},c.positionDrag=function(){let{x:v,y:p}=this.dragPoint;this.element.style.transform=`translate3d(${v}px, ${p}px, 0)`},c.setPosition=function(v,p){this.position.x=v,this.position.y=p,this.setLeftTop()},c.enable=function(){this.isEnabled||(this.isEnabled=!0,this.bindHandles())},c.disable=function(){!this.isEnabled||(this.isEnabled=!1,this.isDragging&&this.dragEnd(),this.unbindHandles())};const u=["transform","left","top","position"];return c.destroy=function(){this.disable(),u.forEach(v=>{this.element.style[v]=""}),this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},c._init=i,s&&s.bridget&&s.bridget("draggabilly",d),d})})(Fr);var Ur=Fr.exports,zo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"","custom-class":"drag-dialog drag-dialog--"+e.dgFlagId,top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{"~opened":function(t){return e.handleBindDragEvent(t)},close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},Wo=[],Nf="";const Go={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1,dgFlagId:Math.ceil(Math.random()*1e3)}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},handleBindDragEvent(){new Ur(`.drag-dialog--${this.dgFlagId}`,{handle:".el-dialog__header"})}}},Hr={};var Ko=Se(Go,zo,Wo,!1,Vo,"68b35a11",null,null);function Vo(e){for(let r in Hr)this[r]=Hr[r]}var en=function(){return Ko.exports}();en.install=e=>{e.component(en.name,en)};const zr=en,Wr={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},Yo=Ve(ve({},Wr),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",size:"small"}),Xo=Ve(ve({},Wr),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),Zo={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:Xo,datetimerange:Yo,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",size:"small"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",size:"small"}};var Jo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-checkcell"},e._l(e.rows,function(t,o){return n("div",{key:t,staticClass:"row"},[n("div",{staticClass:"cell"},[o?n("span",[e._v(e._s(t))]):n("div",{staticClass:"ui-checkcell--fast"},[n("el-button",{attrs:{type:"text",size:"small"},on:{click:e.checkAll}},[e._v("\u53CD\u9009")])],1)]),e._l(e.cols,function(i,s){return n("div",{key:i+t,staticClass:"cell"},[o?n("div",{staticClass:"ui-checkcell--item",class:{"ui-active":e.modelForm.includes(o+"_"+s)},on:{click:function(d){return e.handleCheck(o,s)}}},[n("span",{staticClass:"el-icon-check"})]):n("span",[e._v(e._s(i))])])})],2)}),0)},Qo=[],Lf="";const ea={model:{prop:"model",event:"changes"},props:{model:{type:Array,default(){return[]}},cols:{type:Array,default(){return new Array(24).fill("").map((e,r)=>`${r}:00`)}},rows:{type:Array,default(){return["","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D","\u661F\u671F\u65E5"]}},disabled:{type:Boolean,default:!1}},data(){return{modelForm:this.model}},methods:{handleCheck(e,r){if(this.disabled)return;const n=`${e}_${r}`,t=this.modelForm.indexOf(n);t>-1?this.modelForm.splice(t,1):this.modelForm.push(n)},checkAll(){this.disabled||(this.modelForm=this.rows.reduce((e,r,n)=>(n&&this.cols.forEach((t,o)=>{this.modelForm.includes(`${n}_${o}`)||e.push(`${n}_${o}`)}),e),[]))}},watch:{modelForm(e){this.$emit("changes",e)},model(e){this.modelForm=e}}},Gr={};var ta=Se(ea,Jo,Qo,!1,na,"4cb7a998",null,null);function na(e){for(let r in Gr)this[r]=Gr[r]}var ra=function(){return ta.exports}(),ia=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"||e.type=="password"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="autocomplete"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-autocomplete",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{"fetch-suggestions":e.handleAutoQuerySearch},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-autocomplete",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":e.multiple?"ui-select__popper--"+e.itemFlag:""},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,class:{"flag-required":t.required},attrs:{value:t.value.toString(),disabled:t.disabled,label:t.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),e.refreshShow?n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},on:{"visible-change":e.visibleChange},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),disabled:t.disabled,label:t.label}})}),1):e._e()],1)]:e.type==="remoteselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{remote:"",filterable:"",loading:e.remoteLoading,"remote-method":e.remoteMethod,multiple:e.multiple,collapseTags:e.collapseTags,"reserve-keyword":e.reserveKeyword},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{disabled:t.disabled,value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,"filter-method":e.filterMethod,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),[e._t("empty")],2)],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:e.type==="datetimerangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:["date","month","year","years","monthrange"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="tree"?[n("el-select",{ref:"TreeSelect",attrs:{filterable:"","filter-method":e.handleTreeFilter},model:{value:e.treeCheck.value,callback:function(t){e.$set(e.treeCheck,"value",t)},expression:"treeCheck.value"}},[n("el-option",{staticStyle:{display:"none"},attrs:{label:e.treeCheck.label,value:e.treeCheck.value}}),n("el-tree",e._g(e._b({ref:"Tree",attrs:{data:e.options,"filter-node-method":e.handleTreeFilterNode},on:{"node-click":e.handleTreeClick},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,i=t.data;return[n("span",{staticClass:"custom-tree-node",class:{active:i[e.props.value||"value"]==e.treeCheck.value}},[n("span",[e._v(e._s(o[e.props.label||"label"]))])])]}}])},"el-tree",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="checkbox"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-checkbox-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-checkbox-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="checkcell"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("check-cell",e._g(e._b({ref:"checkcell",model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"check-cell",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))]:e.type==="upload"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-upload",e._g(e._b({ref:"UploadRef",attrs:{action:"#","list-type":e.uploadType,"http-request":e.handleUploadReqeust,"file-list":e.uploadFileList,limit:1,"on-exceed":function(){return e.$message.warning("\u8D85\u51FA\u53EF\u4E0A\u4F20\u6570\u91CF\uFF0C\u8BF7\u5220\u9664\u540E\u518D\u8BD5\uFF01")}},scopedSlots:e._u([{key:"file",fn:function(t){var o=t.file;return n("div",{},[e.uploadType=="picture-card"?[n("el-image",{ref:"UploadImage",attrs:{src:o.url,"preview-src-list":[o.url]}}),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(i){return e.handleUploadOperation("zoom",o)}}},[n("i",{staticClass:"el-icon-zoom-in"})]),n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(i){return e.handleUploadOperation("remove",o)}}},[n("i",{staticClass:"el-icon-delete"})])])]:e._e(),e.uploadType=="text"?[n("el-link",{on:{click:function(i){return e.handleOpenUploadFile(o)}}},[e._v(e._s(o.name||e.renderFileName(o.url)))]),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{on:{click:function(i){return e.handleUploadOperation("remove",o)}}},[n("i",{staticClass:"el-icon-delete el-icon-delete--text"})])])]:e.uploadType=="video"?[n("div",[e._t("preview",[n("video",{attrs:{width:"200",height:"130",controls:"",src:o.url}})])],2),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{on:{click:function(i){return e.handleUploadOperation("remove",o)}}},[n("i",{staticClass:"el-icon-delete el-icon-delete--text"})])])]:[n("el-link",{on:{click:function(i){return e.handleOpenUploadFile(o)}}},[e._v(e._s(o.name||"\u6587\u4EF6"))])]],2)}}])},"el-upload",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),[e.uploadType=="picture-card"?n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}):n("el-button",{attrs:{slot:"default",type:"primary",size:"mini"},slot:"default"},[e._v("\u4E0A\u4F20\u6587\u4EF6")])],1)]:e._e()],2)])},oa=[],Df="";const aa={components:{CheckCell:ra},inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteApi:{type:Function},remoteCreate:{type:Boolean,default:!0},remoteMethod:{type:Function,default(e){const r=this.$parent;r.remoteApi&&(r.remoteLoading=!0,r.remoteApi({keyword:e}).then(n=>{r.filterOptions=n.data,r.remoteLoading=!1}))}},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""},filterMethod:{type:Function},defaultTime:[Array,String],optionLimit:{type:Number,default:150},uploadApi:{type:Function},uploadType:{type:String,default:"picture-card"},fileOpenFn:{type:Function}},data(){let e=this.model;return["select","radio"].includes(this.type)&&(Array.isArray(this.model)?e=this.model.map(r=>r.toString()):(this.model||this.model===0)&&(e=this.model.toString())),{modelForm:e,bigOptions:[],staticOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[],modifyTime:0,remoteLoading:!1,treeCheck:{label:"",value:""},refreshShow:!0}},computed:{uploadFileList(){return this.modelForm?[{url:this.modelForm}]:[]},staticStyle(){return ve({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:r,value:n}=this.props;e=this.options.map((t,o)=>{const i={label:t,value:o};return{label:i[r],value:Number.isFinite(Number(i[n]))?i[n].toString():i[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([r,n])=>({label:n,value:Number.isFinite(Number(r))?r.toString():r}));else{let r=[];r.push(...this.options),e=r.map(n=>Ve(ve({},n),{label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,this.optionLimit);const e=this.selectOption.findIndex(r=>r.value==this.modelForm);e>=this.optionLimit&&(this.bigOptions.unshift(this.selectOption[e]),this.$nextTick().then(()=>{this.modelForm.splice(0,this.modelForm.length,...this.modelForm),this.handleRefreshItem()})),this.filterOptions=this.selectOption.slice(0),this.remoteCreate&&this.type=="remoteselect"&&this.remoteMethod()},methods:{renderFileName(e){return new URL(e).pathname.replace(/[\s\S]+\/+/g,"")},handleRefreshItem(){this.refreshShow=!1,this.$nextTick().then(()=>{this.refreshShow=!0})},handleUploadOperation(e,r){switch(e){case"zoom":this.$refs.UploadImage.clickHandler();break;case"remove":this.modelForm="",this.$refs.UploadRef.clearFiles();break}},handleOpenUploadFile(e){this.fileOpenFn?this.fileOpenFn(e):window.open(e.url)},handleUploadReqeust(e){if(!this.uploadApi)return this.$message.warning("\u7F3A\u5C11\u4E0A\u4F20API\uFF01");this.uploadApi(Ve(ve({},e),{headers:Object.entries(e.headers).length?e.headers:{"content-type":"multipart/form-data"}})).then(r=>{this.modelForm=r})},handleAutoQuerySearch(e,r){const n=e?this.selectOption.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):this.selectOption;r(n.map(t=>({label:t.label,value:t.label})))},bigFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,this.optionLimit):n=JSON.parse(JSON.stringify(this.selectOption.slice(0,this.optionLimit))),this.bigOptions=n},visibleChange(e){if(!e)this.bigFilterMethod("");else{const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&!this.bigOptions.find(n=>n.value==this.modelForm)&&this.bigOptions.unshift(this.selectOption[r])}},getComponentSlots(e){const r=["label"],n={};return Object.entries(e).forEach(([t,o])=>{r.includes(t)||(n[t]=o)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return Ve(ve({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:r}=this,t=this.getformItemConfig()[r]||Zo[r]||{};return ve(ve({},t),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const r=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=r&&r.querySelector(".ui-select__ope");n&&(n.style.width=`${r.offsetWidth-2}px`)},handleSelectCheck(e){e?(this.modelForm=this.filterOptions.map(r=>r.value),this.$emit("change",this.modelForm)):(this.modelForm=this.filterOptions.reduce((r,n)=>this.modelForm.includes(n.value)?r:[...r,n.value],[]),this.$emit("change",this.modelForm))},checkFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>e.split(",").some(o=>t.label.toLowerCase().indexOf(o.toLowerCase())>-1)):n=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=n},handleTreeClick(e,r){if(r.isLeaf){const{value:n="value"}=this.props;this.modelForm=e[n],this.treeCheck=Ve(ve({},e),{value:e[n]}),console.log(this.treeCheck,"this.treeCheck"),this.$refs.TreeSelect.blur()}},handleTreeFilter(e){console.log(e,"value"),console.log(this.$refs.Tree),this.$refs.Tree.filter(e)},handleTreeFilterNode(e,r){return e?r.label.toLowerCase().indexOf(e.toLowerCase())!==-1:!0}},watch:{modelForm(e){this.modifyTime=new Date().getTime(),this.$emit("changes",e)},model(e){let r=e;if(["select","radio"].includes(this.type)&&!this.multiple&&(e||e===0)&&(r=e.toString()),["bigselect"].includes(this.type)&&!this.multiple){const n=this.selectOption.findIndex(t=>t.value==e);n>=this.optionLimit&&!this.bigOptions.find(t=>t.value==e)&&(this.bigOptions.unshift(this.selectOption[n]),this.handleRefreshItem())}this.modelForm=r},selectOption(e){if(this.multiple)this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));else{this.bigOptions=e.slice(0,this.optionLimit);const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&this.bigOptions.unshift(this.selectOption[r]),this.filterOptions=e.slice(0)}}}},Kr={};var la=Se(aa,ia,oa,!1,sa,"c3302fac",null,null);function sa(e){for(let r in Kr)this[r]=Kr[r]}var tn=function(){return la.exports}();tn.install=e=>{e.component(tn.name,tn)};const Vr=tn;var ua=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[e._l(e.showItems,function(t,o){return[n(t.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:t.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:t.type=="text"?"primary":t.type,icon:t.icon}},"component",e.$attrs,!1),t.$listeners),[e._v(" "+e._s(t.$slots.default[0].text)+" ")])]})],2)},fa=[],$f="";const ca={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},Yr={};var da=Se(ca,ua,fa,!1,ha,"c24a1f4c",null,null);function ha(e){for(let r in Yr)this[r]=Yr[r]}var pa=function(){return da.exports}(),va=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},ma=[],Rf="";const ya={name:"ComOperation",components:{Items:pa},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},Xr={};var ga=Se(ya,va,ma,!1,ba,"3592f4b8",null,null);function ba(e){for(let r in Xr)this[r]=Xr[r]}var nn=function(){return ga.exports}();nn.install=e=>{e.component(nn.name,nn)};const Zr=nn;var Jr={exports:{}};/**!
|
|
14
|
+
*/(function(e){(function(r,n){e.exports?e.exports=n(r,Br.exports,qr.exports):r.Draggabilly=n(r,r.getSize,r.Unidragger)})(typeof window!="undefined"?window:Ct,function(n,t,o){function i(){}let s=n.jQuery;function d(v,p){this.element=typeof v=="string"?document.querySelector(v):v,s&&(this.$element=s(this.element)),this.options={},this.option(p),this._create()}let c=d.prototype=Object.create(o.prototype);c.option=function(v){this.options=ve(ve({},this.options),v)};const h=["relative","absolute","fixed"];c._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=ve({},this.position);let v=getComputedStyle(this.element);h.includes(v.position)||(this.element.style.position="relative"),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.setHandles(),this.enable()},c.setHandles=function(){let{handle:v}=this.options;typeof v=="string"?this.handles=this.element.querySelectorAll(v):typeof v=="object"&&v.length?this.handles=v:v instanceof HTMLElement?this.handles=[v]:this.handles=[this.element]};const f=["dragStart","dragMove","dragEnd"];let l=c.emitEvent;c.emitEvent=function(v,p){if(!this.isEnabled&&f.includes(v))return;l.call(this,v,p);let m=n.jQuery;if(!m||!this.$element)return;let y,_=p;p&&p[0]instanceof Event&&([y,..._]=p);let O=m.Event(y);O.type=v,this.$element.trigger(O,_)},c._getPosition=function(){let v=getComputedStyle(this.element),p=this._getPositionCoord(v.left,"width"),b=this._getPositionCoord(v.top,"height");this.position.x=isNaN(p)?0:p,this.position.y=isNaN(b)?0:b,this._addTransformPosition(v)},c._getPositionCoord=function(v,p){if(v.includes("%")){let b=t(this.element.parentNode);return b?parseFloat(v)/100*b[p]:0}return parseInt(v,10)},c._addTransformPosition=function(v){let p=v.transform;if(!p.startsWith("matrix"))return;let b=p.split(","),m=p.startsWith("matrix3d")?12:4,y=parseInt(b[m],10),_=parseInt(b[m+1],10);this.position.x+=y,this.position.y+=_},c.handlePointerDown=function(v,p){!this.isEnabled||(this.pointerDownPointer={pageX:p.pageX,pageY:p.pageY},v.preventDefault(),document.activeElement.blur(),this.bindActivePointerEvents(v),this.element.classList.add("is-pointer-down"))},c.handleDragStart=function(){!this.isEnabled||(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.animate())},c.measureContainment=function(){let v=this.getContainer();if(!v)return;let p=t(this.element),b=t(v),{borderLeftWidth:m,borderRightWidth:y,borderTopWidth:_,borderBottomWidth:g}=b,O=this.element.getBoundingClientRect(),k=v.getBoundingClientRect(),T=m+y,A=_+g,P=this.relativeStartPosition={x:O.left-(k.left+m),y:O.top-(k.top+_)};this.containSize={width:b.width-T-P.x-p.width,height:b.height-A-P.y-p.height}},c.getContainer=function(){let v=this.options.containment;return v?v instanceof HTMLElement?v:typeof v=="string"?document.querySelector(v):this.element.parentNode:void 0},c.handleDragMove=function(v,p,b){if(!this.isEnabled)return;let m=b.x,y=b.y,_=this.options.grid,g=_&&_[0],O=_&&_[1];m=a(m,g),y=a(y,O),m=this.containDrag("x",m,g),y=this.containDrag("y",y,O),m=this.options.axis=="y"?0:m,y=this.options.axis=="x"?0:y,this.position.x=this.startPosition.x+m,this.position.y=this.startPosition.y+y,this.dragPoint.x=m,this.dragPoint.y=y};function a(v,p,b){return p?(b=b||"round",Math[b](v/p)*p):v}c.containDrag=function(v,p,b){if(!this.options.containment)return p;let m=v=="x"?"width":"height",y=this.relativeStartPosition[v],_=a(-y,b,"ceil"),g=this.containSize[m];return g=a(g,b,"floor"),Math.max(_,Math.min(g,p))},c.handlePointerUp=function(){this.element.classList.remove("is-pointer-down")},c.handleDragEnd=function(){!this.isEnabled||(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"))},c.animate=function(){!this.isDragging||(this.positionDrag(),requestAnimationFrame(()=>this.animate()))},c.setLeftTop=function(){let{x:v,y:p}=this.position;this.element.style.left=`${v}px`,this.element.style.top=`${p}px`},c.positionDrag=function(){let{x:v,y:p}=this.dragPoint;this.element.style.transform=`translate3d(${v}px, ${p}px, 0)`},c.setPosition=function(v,p){this.position.x=v,this.position.y=p,this.setLeftTop()},c.enable=function(){this.isEnabled||(this.isEnabled=!0,this.bindHandles())},c.disable=function(){!this.isEnabled||(this.isEnabled=!1,this.isDragging&&this.dragEnd(),this.unbindHandles())};const u=["transform","left","top","position"];return c.destroy=function(){this.disable(),u.forEach(v=>{this.element.style[v]=""}),this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},c._init=i,s&&s.bridget&&s.bridget("draggabilly",d),d})})(jr);var Hr=jr.exports,Go=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"","custom-class":"drag-dialog drag-dialog--"+e.dgFlagId,top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{"~opened":function(t){return e.handleBindDragEvent(t)},close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},Ko=[],Ff="";const Vo={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1,dgFlagId:Math.ceil(Math.random()*1e3)}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},handleBindDragEvent(){new Hr(`.drag-dialog--${this.dgFlagId}`,{handle:".el-dialog__header"})}}},zr={};var Yo=be(Vo,Go,Ko,!1,Xo,"68b35a11",null,null);function Xo(e){for(let r in zr)this[r]=zr[r]}var en=function(){return Yo.exports}();en.install=e=>{e.component(en.name,en)};const Wr=en,Gr={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},Zo=We(ve({},Gr),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",size:"small"}),Jo=We(ve({},Gr),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),Qo={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:Jo,datetimerange:Zo,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",size:"small"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",size:"small"}};var ea=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-checkcell"},e._l(e.rows,function(t,o){return n("div",{key:t,staticClass:"row"},[n("div",{staticClass:"cell"},[o?n("span",[e._v(e._s(t))]):n("div",{staticClass:"ui-checkcell--fast"},[n("el-button",{attrs:{type:"text",size:"small"},on:{click:e.checkAll}},[e._v("\u53CD\u9009")])],1)]),e._l(e.cols,function(i,s){return n("div",{key:i+t,staticClass:"cell"},[o?n("div",{staticClass:"ui-checkcell--item",class:{"ui-active":e.modelForm.includes(o+"_"+s)},on:{click:function(d){return e.handleCheck(o,s)}}},[n("span",{staticClass:"el-icon-check"})]):n("span",[e._v(e._s(i))])])})],2)}),0)},ta=[],qf="";const na={model:{prop:"model",event:"changes"},props:{model:{type:Array,default(){return[]}},cols:{type:Array,default(){return new Array(24).fill("").map((e,r)=>`${r}:00`)}},rows:{type:Array,default(){return["","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D","\u661F\u671F\u65E5"]}},disabled:{type:Boolean,default:!1}},data(){return{modelForm:this.model}},methods:{handleCheck(e,r){if(this.disabled)return;const n=`${e}_${r}`,t=this.modelForm.indexOf(n);t>-1?this.modelForm.splice(t,1):this.modelForm.push(n)},checkAll(){this.disabled||(this.modelForm=this.rows.reduce((e,r,n)=>(n&&this.cols.forEach((t,o)=>{this.modelForm.includes(`${n}_${o}`)||e.push(`${n}_${o}`)}),e),[]))}},watch:{modelForm(e){this.$emit("changes",e)},model(e){this.modelForm=e}}},Kr={};var ra=be(na,ea,ta,!1,ia,"4cb7a998",null,null);function ia(e){for(let r in Kr)this[r]=Kr[r]}var oa=function(){return ra.exports}(),aa=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"||e.type=="password"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="autocomplete"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-autocomplete",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{"fetch-suggestions":e.handleAutoQuerySearch},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-autocomplete",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":e.multiple?"ui-select__popper--"+e.itemFlag:""},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,class:{"flag-required":t.required},attrs:{value:t.value.toString(),disabled:t.disabled,label:t.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),e.refreshShow?n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},on:{"visible-change":e.visibleChange},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),disabled:t.disabled,label:t.label}})}),1):e._e()],1)]:e.type==="remoteselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{remote:"",filterable:"",loading:e.remoteLoading,"remote-method":e.remoteMethod,multiple:e.multiple,collapseTags:e.collapseTags,"reserve-keyword":e.reserveKeyword},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{disabled:t.disabled,value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,"filter-method":e.filterMethod,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),[e._t("empty")],2)],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:e.type==="datetimerangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:["date","month","year","years","monthrange"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="tree"?[n("el-select",{ref:"TreeSelect",attrs:{filterable:"","filter-method":e.handleTreeFilter},model:{value:e.treeCheck.value,callback:function(t){e.$set(e.treeCheck,"value",t)},expression:"treeCheck.value"}},[n("el-option",{staticStyle:{display:"none"},attrs:{label:e.treeCheck.label,value:e.treeCheck.value}}),n("el-tree",e._g(e._b({ref:"Tree",attrs:{data:e.options,"filter-node-method":e.handleTreeFilterNode},on:{"node-click":e.handleTreeClick},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,i=t.data;return[n("span",{staticClass:"custom-tree-node",class:{active:i[e.props.value||"value"]==e.treeCheck.value}},[n("span",[e._v(e._s(o[e.props.label||"label"]))])])]}}])},"el-tree",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="checkbox"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-checkbox-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-checkbox-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="checkcell"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("check-cell",e._g(e._b({ref:"checkcell",model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"check-cell",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))]:e.type==="upload"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-upload",e._g(e._b({ref:"UploadRef",attrs:{action:"#","list-type":e.uploadType,"http-request":e.handleUploadReqeust,"file-list":e.uploadFileList,limit:1,"on-exceed":function(){return e.$message.warning("\u8D85\u51FA\u53EF\u4E0A\u4F20\u6570\u91CF\uFF0C\u8BF7\u5220\u9664\u540E\u518D\u8BD5\uFF01")}},scopedSlots:e._u([{key:"file",fn:function(t){var o=t.file;return n("div",{},[e.uploadType=="picture-card"?[n("el-image",{ref:"UploadImage",attrs:{src:o.url,"preview-src-list":[o.url]}}),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(i){return e.handleUploadOperation("zoom",o)}}},[n("i",{staticClass:"el-icon-zoom-in"})]),n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(i){return e.handleUploadOperation("remove",o)}}},[n("i",{staticClass:"el-icon-delete"})])])]:e._e(),e.uploadType=="text"?[n("el-link",{on:{click:function(i){return e.handleOpenUploadFile(o)}}},[e._v(e._s(o.name||e.renderFileName(o.url)))]),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{on:{click:function(i){return e.handleUploadOperation("remove",o)}}},[n("i",{staticClass:"el-icon-delete el-icon-delete--text"})])])]:e.uploadType=="video"?[n("div",[e._t("preview",[n("video",{attrs:{width:"200",height:"130",controls:"",src:o.url}})])],2),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{on:{click:function(i){return e.handleUploadOperation("remove",o)}}},[n("i",{staticClass:"el-icon-delete el-icon-delete--text"})])])]:[n("el-link",{on:{click:function(i){return e.handleOpenUploadFile(o)}}},[e._v(e._s(o.name||"\u6587\u4EF6"))])]],2)}}])},"el-upload",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),[e.uploadType=="picture-card"?n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}):n("el-button",{attrs:{slot:"default",type:"primary",size:"mini"},slot:"default"},[e._v("\u4E0A\u4F20\u6587\u4EF6")])],1)]:e._e()],2)])},la=[],Uf="";const sa={components:{CheckCell:oa},inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteApi:{type:Function},remoteCreate:{type:Boolean,default:!0},remoteMethod:{type:Function,default(e){const r=this.$parent;r.remoteApi&&(r.remoteLoading=!0,r.remoteApi({keyword:e}).then(n=>{r.filterOptions=n.data,r.remoteLoading=!1}))}},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""},filterMethod:{type:Function},defaultTime:[Array,String],optionLimit:{type:Number,default:150},uploadApi:{type:Function},uploadType:{type:String,default:"picture-card"},fileOpenFn:{type:Function}},data(){let e=this.model;return["select","radio"].includes(this.type)&&(Array.isArray(this.model)?e=this.model.map(r=>r.toString()):(this.model||this.model===0)&&(e=this.model.toString())),{modelForm:e,bigOptions:[],staticOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[],modifyTime:0,remoteLoading:!1,treeCheck:{label:"",value:""},refreshShow:!0}},computed:{uploadFileList(){return this.modelForm?[{url:this.modelForm}]:[]},staticStyle(){return ve({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:r,value:n}=this.props;e=this.options.map((t,o)=>{const i={label:t,value:o};return{label:i[r],value:Number.isFinite(Number(i[n]))?i[n].toString():i[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([r,n])=>({label:n,value:Number.isFinite(Number(r))?r.toString():r}));else{let r=[];r.push(...this.options),e=r.map(n=>We(ve({},n),{label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,this.optionLimit);const e=this.selectOption.findIndex(r=>r.value==this.modelForm);e>=this.optionLimit&&(this.bigOptions.unshift(this.selectOption[e]),this.$nextTick().then(()=>{this.modelForm.splice(0,this.modelForm.length,...this.modelForm),this.handleRefreshItem()})),this.filterOptions=this.selectOption.slice(0),this.remoteCreate&&this.type=="remoteselect"&&this.remoteMethod()},methods:{renderFileName(e){return new URL(e).pathname.replace(/[\s\S]+\/+/g,"")},handleRefreshItem(){this.refreshShow=!1,this.$nextTick().then(()=>{this.refreshShow=!0})},handleUploadOperation(e,r){switch(e){case"zoom":this.$refs.UploadImage.clickHandler();break;case"remove":this.modelForm="",this.$refs.UploadRef.clearFiles();break}},handleOpenUploadFile(e){this.fileOpenFn?this.fileOpenFn(e):window.open(e.url)},handleUploadReqeust(e){if(!this.uploadApi)return this.$message.warning("\u7F3A\u5C11\u4E0A\u4F20API\uFF01");this.uploadApi(We(ve({},e),{headers:Object.entries(e.headers).length?e.headers:{"content-type":"multipart/form-data"}})).then(r=>{this.modelForm=r})},handleAutoQuerySearch(e,r){const n=e?this.selectOption.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):this.selectOption;r(n.map(t=>({label:t.label,value:t.label})))},bigFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,this.optionLimit):n=JSON.parse(JSON.stringify(this.selectOption.slice(0,this.optionLimit))),this.bigOptions=n},visibleChange(e){if(!e)this.bigFilterMethod("");else{const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&!this.bigOptions.find(n=>n.value==this.modelForm)&&this.bigOptions.unshift(this.selectOption[r])}},getComponentSlots(e){const r=["label"],n={};return Object.entries(e).forEach(([t,o])=>{r.includes(t)||(n[t]=o)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return We(ve({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:r}=this,t=this.getformItemConfig()[r]||Qo[r]||{};return ve(ve({},t),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const r=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=r&&r.querySelector(".ui-select__ope");n&&(n.style.width=`${r.offsetWidth-2}px`)},handleSelectCheck(e){e?(this.modelForm=this.filterOptions.map(r=>r.value),this.$emit("change",this.modelForm)):(this.modelForm=this.filterOptions.reduce((r,n)=>this.modelForm.includes(n.value)?r:[...r,n.value],[]),this.$emit("change",this.modelForm))},checkFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>e.split(",").some(o=>t.label.toLowerCase().indexOf(o.toLowerCase())>-1)):n=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=n},handleTreeClick(e,r){if(r.isLeaf){const{value:n="value"}=this.props;this.modelForm=e[n],this.treeCheck=We(ve({},e),{value:e[n]}),console.log(this.treeCheck,"this.treeCheck"),this.$refs.TreeSelect.blur()}},handleTreeFilter(e){console.log(e,"value"),console.log(this.$refs.Tree),this.$refs.Tree.filter(e)},handleTreeFilterNode(e,r){return e?r.label.toLowerCase().indexOf(e.toLowerCase())!==-1:!0}},watch:{modelForm(e){this.modifyTime=new Date().getTime(),this.$emit("changes",e)},model(e){let r=e;if(["select","radio"].includes(this.type)&&!this.multiple&&(e||e===0)&&(r=e.toString()),["bigselect"].includes(this.type)&&!this.multiple){const n=this.selectOption.findIndex(t=>t.value==e);n>=this.optionLimit&&!this.bigOptions.find(t=>t.value==e)&&(this.bigOptions.unshift(this.selectOption[n]),this.handleRefreshItem())}this.modelForm=r},selectOption(e){if(this.multiple)this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));else{this.bigOptions=e.slice(0,this.optionLimit);const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&this.bigOptions.unshift(this.selectOption[r]),this.filterOptions=e.slice(0)}}}},Vr={};var ua=be(sa,aa,la,!1,fa,"c3302fac",null,null);function fa(e){for(let r in Vr)this[r]=Vr[r]}var tn=function(){return ua.exports}();tn.install=e=>{e.component(tn.name,tn)};const Yr=tn;var ca=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[e._l(e.showItems,function(t,o){return[n(t.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:t.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:t.type=="text"?"primary":t.type,icon:t.icon}},"component",e.$attrs,!1),t.$listeners),[e._v(" "+e._s(t.$slots.default[0].text)+" ")])]})],2)},da=[],Hf="";const ha={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},Xr={};var pa=be(ha,ca,da,!1,va,"c24a1f4c",null,null);function va(e){for(let r in Xr)this[r]=Xr[r]}var ma=function(){return pa.exports}(),ga=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},ya=[],zf="";const ba={name:"ComOperation",components:{Items:ma},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},Zr={};var _a=be(ba,ga,ya,!1,Oa,"3592f4b8",null,null);function Oa(e){for(let r in Zr)this[r]=Zr[r]}var nn=function(){return _a.exports}();nn.install=e=>{e.component(nn.name,nn)};const Jr=nn;var Qr={exports:{}};/**!
|
|
15
15
|
* Sortable 1.10.2
|
|
16
16
|
* @author RubaXa <trash@rubaxa.org>
|
|
17
17
|
* @author owenm <owen23355@gmail.com>
|
|
18
18
|
* @license MIT
|
|
19
|
-
*/function rn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rn=function(r){return typeof r}:rn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rn(e)}function _a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ue(){return Ue=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},Ue.apply(this,arguments)}function nt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{},t=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),t.forEach(function(o){_a(e,o,n[o])})}return e}function Oa(e,r){if(e==null)return{};var n={},t=Object.keys(e),o,i;for(i=0;i<t.length;i++)o=t[i],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Sa(e,r){if(e==null)return{};var n=Oa(e,r),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(n[t]=e[t]))}return n}function Ea(e){return xa(e)||wa(e)||Aa()}function xa(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function wa(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Aa(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Ta="1.10.2";function Je(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Qe=Je(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kt=Je(/Edge/i),Qr=Je(/firefox/i),Rn=Je(/safari/i)&&!Je(/chrome/i)&&!Je(/android/i),ei=Je(/iP(ad|od|hone)/i),Ca=Je(/chrome/i)&&Je(/android/i),ti={capture:!1,passive:!1};function fe(e,r,n){e.addEventListener(r,n,!Qe&&ti)}function ae(e,r,n){e.removeEventListener(r,n,!Qe&&ti)}function on(e,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch{return!1}return!1}}function ka(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function We(e,r,n,t){if(e){n=n||document;do{if(r!=null&&(r[0]===">"?e.parentNode===n&&on(e,r):on(e,r))||t&&e===n)return e;if(e===n)break}while(e=ka(e))}return null}var ni=/\s+/g;function me(e,r,n){if(e&&r)if(e.classList)e.classList[n?"add":"remove"](r);else{var t=(" "+e.className+" ").replace(ni," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(ni," ")}}function ee(e,r,n){var t=e&&e.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function ct(e,r){var n="";if(typeof e=="string")n=e;else do{var t=ee(e,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function ri(e,r,n){if(e){var t=e.getElementsByTagName(r),o=0,i=t.length;if(n)for(;o<i;o++)n(t[o],o);return t}return[]}function Ye(){var e=document.scrollingElement;return e||document.documentElement}function be(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,d,c,h,f,l;if(e!==window&&e!==Ye()?(i=e.getBoundingClientRect(),s=i.top,d=i.left,c=i.bottom,h=i.right,f=i.height,l=i.width):(s=0,d=0,c=window.innerHeight,h=window.innerWidth,f=window.innerHeight,l=window.innerWidth),(r||n)&&e!==window&&(o=o||e.parentNode,!Qe))do if(o&&o.getBoundingClientRect&&(ee(o,"transform")!=="none"||n&&ee(o,"position")!=="static")){var a=o.getBoundingClientRect();s-=a.top+parseInt(ee(o,"border-top-width")),d-=a.left+parseInt(ee(o,"border-left-width")),c=s+i.height,h=d+i.width;break}while(o=o.parentNode);if(t&&e!==window){var u=ct(o||e),v=u&&u.a,p=u&&u.d;u&&(s/=p,d/=v,l/=v,f/=p,c=s+f,h=d+l)}return{top:s,left:d,bottom:c,right:h,width:l,height:f}}}function ii(e,r,n){for(var t=rt(e,!0),o=be(e)[r];t;){var i=be(t)[n],s=void 0;if(n==="top"||n==="left"?s=o>=i:s=o<=i,!s)return t;if(t===Ye())break;t=rt(t,!1)}return!1}function an(e,r,n){for(var t=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==te.ghost&&i[o]!==te.dragged&&We(i[o],n.draggable,e,!1)){if(t===r)return i[o];t++}o++}return null}function Mn(e,r){for(var n=e.lastElementChild;n&&(n===te.ghost||ee(n,"display")==="none"||r&&!on(n,r));)n=n.previousElementSibling;return n||null}function _e(e,r){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==te.clone&&(!r||on(e,r))&&n++;return n}function oi(e){var r=0,n=0,t=Ye();if(e)do{var o=ct(e),i=o.a,s=o.d;r+=e.scrollLeft*i,n+=e.scrollTop*s}while(e!==t&&(e=e.parentNode));return[r,n]}function Na(e,r){for(var n in e)if(!!e.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===e[n][t])return Number(n)}return-1}function rt(e,r){if(!e||!e.getBoundingClientRect)return Ye();var n=e,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=ee(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ye();if(t||r)return n;t=!0}}while(n=n.parentNode);return Ye()}function Ia(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function Fn(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}var Nt;function ai(e,r){return function(){if(!Nt){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),Nt=setTimeout(function(){Nt=void 0},r)}}}function Pa(){clearTimeout(Nt),Nt=void 0}function li(e,r,n){e.scrollLeft+=r,e.scrollTop+=n}function jn(e){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function si(e,r){ee(e,"position","absolute"),ee(e,"top",r.top),ee(e,"left",r.left),ee(e,"width",r.width),ee(e,"height",r.height)}function Bn(e){ee(e,"position",""),ee(e,"top",""),ee(e,"left",""),ee(e,"width",""),ee(e,"height","")}var Pe="Sortable"+new Date().getTime();function La(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(ee(o,"display")==="none"||o===te.ghost)){e.push({target:o,rect:be(o)});var i=nt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=ct(o,!0);s&&(i.top-=s.f,i.left-=s.e)}o.fromRect=i}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Na(e,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var i=!1,s=0;e.forEach(function(d){var c=0,h=d.target,f=h.fromRect,l=be(h),a=h.prevFromRect,u=h.prevToRect,v=d.rect,p=ct(h,!0);p&&(l.top-=p.f,l.left-=p.e),h.toRect=l,h.thisAnimationDuration&&Fn(a,l)&&!Fn(f,l)&&(v.top-l.top)/(v.left-l.left)==(f.top-l.top)/(f.left-l.left)&&(c=$a(v,a,u,o.options)),Fn(l,f)||(h.prevFromRect=f,h.prevToRect=l,c||(c=o.options.animation),o.animate(h,v,l,c)),c&&(i=!0,s=Math.max(s,c),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},c),h.thisAnimationDuration=c)}),clearTimeout(r),i?r=setTimeout(function(){typeof t=="function"&&t()},s):typeof t=="function"&&t(),e=[]},animate:function(t,o,i,s){if(s){ee(t,"transition",""),ee(t,"transform","");var d=ct(this.el),c=d&&d.a,h=d&&d.d,f=(o.left-i.left)/(c||1),l=(o.top-i.top)/(h||1);t.animatingX=!!f,t.animatingY=!!l,ee(t,"transform","translate3d("+f+"px,"+l+"px,0)"),Da(t),ee(t,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),ee(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){ee(t,"transition",""),ee(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},s)}}}}function Da(e){return e.offsetWidth}function $a(e,r,n,t){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var It=[],qn={initializeByDefault:!0},Pt={mount:function(r){for(var n in qn)qn.hasOwnProperty(n)&&!(n in r)&&(r[n]=qn[n]);It.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";It.forEach(function(s){!n[s.pluginName]||(n[s.pluginName][i]&&n[s.pluginName][i](nt({sortable:n},t)),n.options[s.pluginName]&&n[s.pluginName][r]&&n[s.pluginName][r](nt({sortable:n},t)))})},initializePlugins:function(r,n,t,o){It.forEach(function(d){var c=d.pluginName;if(!(!r.options[c]&&!d.initializeByDefault)){var h=new d(r,n,r.options);h.sortable=r,h.options=r.options,r[c]=h,Ue(t,h.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var s=this.modifyOption(r,i,r.options[i]);typeof s!="undefined"&&(r.options[i]=s)}},getEventProperties:function(r,n){var t={};return It.forEach(function(o){typeof o.eventProperties=="function"&&Ue(t,o.eventProperties.call(n[o.pluginName],r))}),t},modifyOption:function(r,n,t){var o;return It.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function Lt(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,d=e.fromEl,c=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,l=e.newDraggableIndex,a=e.originalEvent,u=e.putSortable,v=e.extraEventProperties;if(r=r||n&&n[Pe],!!r){var p,b=r.options,m="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Qe&&!kt?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=s||n,p.from=d||n,p.item=o||n,p.clone=i,p.oldIndex=c,p.newIndex=h,p.oldDraggableIndex=f,p.newDraggableIndex=l,p.originalEvent=a,p.pullMode=u?u.lastPutMode:void 0;var g=nt({},v,Pt.getEventProperties(t,r));for(var _ in g)p[_]=g[_];n&&n.dispatchEvent(p),b[m]&&b[m].call(r,p)}}var Me=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=Sa(t,["evt"]);Pt.pluginEvent.bind(te)(r,n,nt({dragEl:X,parentEl:Ee,ghostEl:ie,rootEl:ye,nextEl:dt,lastDownEl:ln,cloneEl:Oe,cloneHidden:it,dragStarted:$t,putSortable:ke,activeSortable:te.active,originalEvent:o,oldIndex:yt,oldDraggableIndex:Dt,newIndex:je,newDraggableIndex:ot,hideGhostForTarget:vi,unhideGhostForTarget:mi,cloneNowHidden:function(){it=!0},cloneNowShown:function(){it=!1},dispatchSortableEvent:function(d){$e({sortable:n,name:d,originalEvent:o})}},i))};function $e(e){Lt(nt({putSortable:ke,cloneEl:Oe,targetEl:X,rootEl:ye,oldIndex:yt,oldDraggableIndex:Dt,newIndex:je,newDraggableIndex:ot},e))}var X,Ee,ie,ye,dt,ln,Oe,it,yt,je,Dt,ot,sn,ke,gt=!1,un=!1,fn=[],ht,Ge,Un,Hn,ui,fi,$t,bt,Rt,Mt=!1,cn=!1,dn,Le,zn=[],Wn=!1,hn=[],pn=typeof document!="undefined",vn=ei,ci=kt||Qe?"cssFloat":"float",Ra=pn&&!Ca&&!ei&&"draggable"in document.createElement("div"),di=function(){if(!!pn){if(Qe)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),hi=function(r,n){var t=ee(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=an(r,0,n),s=an(r,1,n),d=i&&ee(i),c=s&&ee(s),h=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+be(i).width,f=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+be(s).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(i&&d.float&&d.float!=="none"){var l=d.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===l)?"vertical":"horizontal"}return i&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||h>=o&&t[ci]==="none"||s&&t[ci]==="none"&&h+f>o)?"vertical":"horizontal"},Ma=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,s=t?r.width:r.height,d=t?n.left:n.top,c=t?n.right:n.bottom,h=t?n.width:n.height;return o===d||i===c||o+s/2===d+h/2},Fa=function(r,n){var t;return fn.some(function(o){if(!Mn(o)){var i=be(o),s=o[Pe].options.emptyInsertThreshold,d=r>=i.left-s&&r<=i.right+s,c=n>=i.top-s&&n<=i.bottom+s;if(s&&d&&c)return t=o}}),t},pi=function(r){function n(i,s){return function(d,c,h,f){var l=d.options.group.name&&c.options.group.name&&d.options.group.name===c.options.group.name;if(i==null&&(s||l))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(d,c,h,f),s)(d,c,h,f);var a=(s?d:c).options.group.name;return i===!0||typeof i=="string"&&i===a||i.join&&i.indexOf(a)>-1}}var t={},o=r.group;(!o||rn(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,r.group=t},vi=function(){!di&&ie&&ee(ie,"display","none")},mi=function(){!di&&ie&&ee(ie,"display","")};pn&&document.addEventListener("click",function(e){if(un)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),un=!1,!1},!0);var pt=function(r){if(X){r=r.touches?r.touches[0]:r;var n=Fa(r.clientX,r.clientY);if(n){var t={};for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[Pe]._onDragOver(t)}}},ja=function(r){X&&X.parentNode[Pe]._isOutsideThisEl(r.target)};function te(e,r){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=Ue({},r),e[Pe]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return hi(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,d){s.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:te.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Pt.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);pi(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:Ra,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?fe(e,"pointerdown",this._onTapStart):(fe(e,"mousedown",this._onTapStart),fe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(fe(e,"dragover",this),fe(e,"dragenter",this)),fn.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Ue(this,La())}te.prototype={constructor:te,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(bt=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,X):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,o=this.options,i=o.preventOnFilter,s=r.type,d=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(d||r).target,h=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,f=o.filter;if(Ga(t),!X&&!(/mousedown|pointerdown/.test(s)&&r.button!==0||o.disabled)&&!h.isContentEditable&&(c=We(c,o.draggable,t,!1),!(c&&c.animated)&&ln!==c)){if(yt=_e(c),Dt=_e(c,o.draggable),typeof f=="function"){if(f.call(this,r,c,this)){$e({sortable:n,rootEl:h,name:"filter",targetEl:c,toEl:t,fromEl:t}),Me("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(f&&(f=f.split(",").some(function(l){if(l=We(h,l.trim(),t,!1),l)return $e({sortable:n,rootEl:l,name:"filter",targetEl:c,fromEl:t,toEl:t}),Me("filter",n,{evt:r}),!0}),f)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!We(h,o.handle,t,!1)||this._prepareDragStart(r,d,c)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,s=o.options,d=i.ownerDocument,c;if(t&&!X&&t.parentNode===i){var h=be(t);if(ye=i,X=t,Ee=X.parentNode,dt=X.nextSibling,ln=t,sn=s.group,te.dragged=X,ht={target:X,clientX:(n||r).clientX,clientY:(n||r).clientY},ui=ht.clientX-h.left,fi=ht.clientY-h.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,X.style["will-change"]="all",c=function(){if(Me("delayEnded",o,{evt:r}),te.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Qr&&o.nativeDraggable&&(X.draggable=!0),o._triggerDragStart(r,n),$e({sortable:o,name:"choose",originalEvent:r}),me(X,s.chosenClass,!0)},s.ignore.split(",").forEach(function(f){ri(X,f.trim(),Kn)}),fe(d,"dragover",pt),fe(d,"mousemove",pt),fe(d,"touchmove",pt),fe(d,"mouseup",o._onDrop),fe(d,"touchend",o._onDrop),fe(d,"touchcancel",o._onDrop),Qr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),Me("delayStart",this,{evt:r}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(kt||Qe))){if(te.eventCanceled){this._onDrop();return}fe(d,"mouseup",o._disableDelayedDrag),fe(d,"touchend",o._disableDelayedDrag),fe(d,"touchcancel",o._disableDelayedDrag),fe(d,"mousemove",o._delayedDragTouchMoveHandler),fe(d,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&fe(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&Kn(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._disableDelayedDrag),ae(r,"touchend",this._disableDelayedDrag),ae(r,"touchcancel",this._disableDelayedDrag),ae(r,"mousemove",this._delayedDragTouchMoveHandler),ae(r,"touchmove",this._delayedDragTouchMoveHandler),ae(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?fe(document,"pointermove",this._onTouchMove):n?fe(document,"touchmove",this._onTouchMove):fe(document,"mousemove",this._onTouchMove):(fe(X,"dragend",this),fe(ye,"dragstart",this._onDragStart));try{document.selection?mn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(gt=!1,ye&&X){Me("dragStarted",this,{evt:n}),this.nativeDraggable&&fe(document,"dragover",ja);var t=this.options;!r&&me(X,t.dragClass,!1),me(X,t.ghostClass,!0),te.active=this,r&&this._appendGhost(),$e({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ge){this._lastX=Ge.clientX,this._lastY=Ge.clientY,vi();for(var r=document.elementFromPoint(Ge.clientX,Ge.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Ge.clientX,Ge.clientY),r!==n);)n=r;if(X.parentNode[Pe]._isOutsideThisEl(r),n)do{if(n[Pe]){var t=void 0;if(t=n[Pe]._onDragOver({clientX:Ge.clientX,clientY:Ge.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);mi()}},_onTouchMove:function(r){if(ht){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,i=r.touches?r.touches[0]:r,s=ie&&ct(ie,!0),d=ie&&s&&s.a,c=ie&&s&&s.d,h=vn&&Le&&oi(Le),f=(i.clientX-ht.clientX+o.x)/(d||1)+(h?h[0]-zn[0]:0)/(d||1),l=(i.clientY-ht.clientY+o.y)/(c||1)+(h?h[1]-zn[1]:0)/(c||1);if(!te.active&&!gt){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(ie){s?(s.e+=f-(Un||0),s.f+=l-(Hn||0)):s={a:1,b:0,c:0,d:1,e:f,f:l};var a="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ee(ie,"webkitTransform",a),ee(ie,"mozTransform",a),ee(ie,"msTransform",a),ee(ie,"transform",a),Un=f,Hn=l,Ge=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!ie){var r=this.options.fallbackOnBody?document.body:ye,n=be(X,!0,vn,!0,r),t=this.options;if(vn){for(Le=r;ee(Le,"position")==="static"&&ee(Le,"transform")==="none"&&Le!==document;)Le=Le.parentNode;Le!==document.body&&Le!==document.documentElement?(Le===document&&(Le=Ye()),n.top+=Le.scrollTop,n.left+=Le.scrollLeft):Le=Ye(),zn=oi(Le)}ie=X.cloneNode(!0),me(ie,t.ghostClass,!1),me(ie,t.fallbackClass,!0),me(ie,t.dragClass,!0),ee(ie,"transition",""),ee(ie,"transform",""),ee(ie,"box-sizing","border-box"),ee(ie,"margin",0),ee(ie,"top",n.top),ee(ie,"left",n.left),ee(ie,"width",n.width),ee(ie,"height",n.height),ee(ie,"opacity","0.8"),ee(ie,"position",vn?"absolute":"fixed"),ee(ie,"zIndex","100000"),ee(ie,"pointerEvents","none"),te.ghost=ie,r.appendChild(ie),ee(ie,"transform-origin",ui/parseInt(ie.style.width)*100+"% "+fi/parseInt(ie.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,o=r.dataTransfer,i=t.options;if(Me("dragStart",this,{evt:r}),te.eventCanceled){this._onDrop();return}Me("setupClone",this),te.eventCanceled||(Oe=jn(X),Oe.draggable=!1,Oe.style["will-change"]="",this._hideClone(),me(Oe,this.options.chosenClass,!1),te.clone=Oe),t.cloneId=mn(function(){Me("clone",t),!te.eventCanceled&&(t.options.removeCloneOnHide||ye.insertBefore(Oe,X),t._hideClone(),$e({sortable:t,name:"clone"}))}),!n&&me(X,i.dragClass,!0),n?(un=!0,t._loopId=setInterval(t._emulateDragOver,50)):(ae(document,"mouseup",t._onDrop),ae(document,"touchend",t._onDrop),ae(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,X)),fe(document,"drop",t),ee(X,"transform","translateZ(0)")),gt=!0,t._dragStartId=mn(t._dragStarted.bind(t,n,r)),fe(document,"selectstart",t),$t=!0,Rn&&ee(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,s,d=this.options,c=d.group,h=te.active,f=sn===c,l=d.sort,a=ke||h,u,v=this,p=!1;if(Wn)return;function b(U,G){Me(U,v,nt({evt:r,isOwner:f,axis:u?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:l,fromSortable:a,target:t,completed:g,onMove:function(R,E){return Gn(ye,n,X,o,R,be(R),r,E)},changed:_},G))}function m(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==a&&a.captureAnimationState()}function g(U){return b("dragOverCompleted",{insertion:U}),U&&(f?h._hideClone():h._showClone(v),v!==a&&(me(X,ke?ke.options.ghostClass:h.options.ghostClass,!1),me(X,d.ghostClass,!0)),ke!==v&&v!==te.active?ke=v:v===te.active&&ke&&(ke=null),a===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==a&&(a.animateAll(),a._ignoreWhileAnimating=null)),(t===X&&!X.animated||t===n&&!t.animated)&&(bt=null),!d.dragoverBubble&&!r.rootEl&&t!==document&&(X.parentNode[Pe]._isOutsideThisEl(r.target),!U&&pt(r)),!d.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function _(){je=_e(X),ot=_e(X,d.draggable),$e({sortable:v,name:"change",toEl:n,newIndex:je,newDraggableIndex:ot,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=We(t,d.draggable,n,!0),b("dragOver"),te.eventCanceled)return p;if(X.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return g(!1);if(un=!1,h&&!d.disabled&&(f?l||(s=!ye.contains(X)):ke===this||(this.lastPutMode=sn.checkPull(this,h,X,r))&&c.checkPut(this,h,X,r))){if(u=this._getDirection(r,t)==="vertical",o=be(X),b("dragOverValid"),te.eventCanceled)return p;if(s)return Ee=ye,m(),this._hideClone(),b("revert"),te.eventCanceled||(dt?ye.insertBefore(X,dt):ye.appendChild(X)),g(!0);var y=Mn(n,d.draggable);if(!y||Ua(r,u,this)&&!y.animated){if(y===X)return g(!1);if(y&&n===r.target&&(t=y),t&&(i=be(t)),Gn(ye,n,X,o,t,i,r,!!t)!==!1)return m(),n.appendChild(X),Ee=n,_(),g(!0)}else if(t.parentNode===n){i=be(t);var O=0,k,T=X.parentNode!==n,A=!Ma(X.animated&&X.toRect||o,t.animated&&t.toRect||i,u),P=u?"top":"left",x=ii(t,"top","top")||ii(X,"top","top"),S=x?x.scrollTop:void 0;bt!==t&&(k=i[P],Mt=!1,cn=!A&&d.invertSwap||T),O=Ha(r,t,i,u,A?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,cn,bt===t);var w;if(O!==0){var N=_e(X);do N-=O,w=Ee.children[N];while(w&&(ee(w,"display")==="none"||w===ie))}if(O===0||w===t)return g(!1);bt=t,Rt=O;var D=t.nextElementSibling,$=!1;$=O===1;var B=Gn(ye,n,X,o,t,i,r,$);if(B!==!1)return(B===1||B===-1)&&($=B===1),Wn=!0,setTimeout(qa,30),m(),$&&!D?n.appendChild(X):t.parentNode.insertBefore(X,$?D:t),x&&li(x,0,S-x.scrollTop),Ee=X.parentNode,k!==void 0&&!cn&&(dn=Math.abs(k-be(t)[P])),_(),g(!0)}if(n.contains(X))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ae(document,"mousemove",this._onTouchMove),ae(document,"touchmove",this._onTouchMove),ae(document,"pointermove",this._onTouchMove),ae(document,"dragover",pt),ae(document,"mousemove",pt),ae(document,"touchmove",pt)},_offUpEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._onDrop),ae(r,"touchend",this._onDrop),ae(r,"pointerup",this._onDrop),ae(r,"touchcancel",this._onDrop),ae(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(je=_e(X),ot=_e(X,t.draggable),Me("drop",this,{evt:r}),Ee=X&&X.parentNode,je=_e(X),ot=_e(X,t.draggable),te.eventCanceled){this._nulling();return}gt=!1,cn=!1,Mt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vn(this.cloneId),Vn(this._dragStartId),this.nativeDraggable&&(ae(document,"drop",this),ae(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Rn&&ee(document.body,"user-select",""),ee(X,"transform",""),r&&($t&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),ie&&ie.parentNode&&ie.parentNode.removeChild(ie),(ye===Ee||ke&&ke.lastPutMode!=="clone")&&Oe&&Oe.parentNode&&Oe.parentNode.removeChild(Oe),X&&(this.nativeDraggable&&ae(X,"dragend",this),Kn(X),X.style["will-change"]="",$t&&!gt&&me(X,ke?ke.options.ghostClass:this.options.ghostClass,!1),me(X,this.options.chosenClass,!1),$e({sortable:this,name:"unchoose",toEl:Ee,newIndex:null,newDraggableIndex:null,originalEvent:r}),ye!==Ee?(je>=0&&($e({rootEl:Ee,name:"add",toEl:Ee,fromEl:ye,originalEvent:r}),$e({sortable:this,name:"remove",toEl:Ee,originalEvent:r}),$e({rootEl:Ee,name:"sort",toEl:Ee,fromEl:ye,originalEvent:r}),$e({sortable:this,name:"sort",toEl:Ee,originalEvent:r})),ke&&ke.save()):je!==yt&&je>=0&&($e({sortable:this,name:"update",toEl:Ee,originalEvent:r}),$e({sortable:this,name:"sort",toEl:Ee,originalEvent:r})),te.active&&((je==null||je===-1)&&(je=yt,ot=Dt),$e({sortable:this,name:"end",toEl:Ee,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Me("nulling",this),ye=X=Ee=ie=dt=Oe=ln=it=ht=Ge=$t=je=ot=yt=Dt=bt=Rt=ke=sn=te.dragged=te.ghost=te.clone=te.active=null,hn.forEach(function(r){r.checked=!0}),hn.length=Un=Hn=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":X&&(this._onDragOver(r),Ba(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,o=0,i=t.length,s=this.options;o<i;o++)n=t[o],We(n,s.draggable,this.el,!1)&&r.push(n.getAttribute(s.dataIdAttr)||Wa(n));return r},sort:function(r){var n={},t=this.el;this.toArray().forEach(function(o,i){var s=t.children[i];We(s,this.options.draggable,t,!1)&&(n[o]=s)},this),r.forEach(function(o){n[o]&&(t.removeChild(n[o]),t.appendChild(n[o]))})},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return We(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var o=Pt.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&pi(t)},destroy:function(){Me("destroy",this);var r=this.el;r[Pe]=null,ae(r,"mousedown",this._onTapStart),ae(r,"touchstart",this._onTapStart),ae(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(ae(r,"dragover",this),ae(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),fn.splice(fn.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!it){if(Me("hideClone",this),te.eventCanceled)return;ee(Oe,"display","none"),this.options.removeCloneOnHide&&Oe.parentNode&&Oe.parentNode.removeChild(Oe),it=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(it){if(Me("showClone",this),te.eventCanceled)return;ye.contains(X)&&!this.options.group.revertClone?ye.insertBefore(Oe,X):dt?ye.insertBefore(Oe,dt):ye.appendChild(Oe),this.options.group.revertClone&&this.animate(X,Oe),ee(Oe,"display",""),it=!1}}};function Ba(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Gn(e,r,n,t,o,i,s,d){var c,h=e[Pe],f=h.options.onMove,l;return window.CustomEvent&&!Qe&&!kt?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=e,c.dragged=n,c.draggedRect=t,c.related=o||r,c.relatedRect=i||be(r),c.willInsertAfter=d,c.originalEvent=s,e.dispatchEvent(c),f&&(l=f.call(h,c,s)),l}function Kn(e){e.draggable=!1}function qa(){Wn=!1}function Ua(e,r,n){var t=be(Mn(n.el,n.options.draggable)),o=10;return r?e.clientX>t.right+o||e.clientX<=t.right&&e.clientY>t.bottom&&e.clientX>=t.left:e.clientX>t.right&&e.clientY>t.top||e.clientX<=t.right&&e.clientY>t.bottom+o}function Ha(e,r,n,t,o,i,s,d){var c=t?e.clientY:e.clientX,h=t?n.height:n.width,f=t?n.top:n.left,l=t?n.bottom:n.right,a=!1;if(!s){if(d&&dn<h*o){if(!Mt&&(Rt===1?c>f+h*i/2:c<l-h*i/2)&&(Mt=!0),Mt)a=!0;else if(Rt===1?c<f+dn:c>l-dn)return-Rt}else if(c>f+h*(1-o)/2&&c<l-h*(1-o)/2)return za(r)}return a=a||s,a&&(c<f+h*i/2||c>l-h*i/2)?c>f+h/2?1:-1:0}function za(e){return _e(X)<_e(e)?1:-1}function Wa(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function Ga(e){hn.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&hn.push(t)}}function mn(e){return setTimeout(e,0)}function Vn(e){return clearTimeout(e)}pn&&fe(document,"touchmove",function(e){(te.active||gt)&&e.cancelable&&e.preventDefault()}),te.utils={on:fe,off:ae,css:ee,find:ri,is:function(r,n){return!!We(r,n,r,!1)},extend:Ia,throttle:ai,closest:We,toggleClass:me,clone:jn,index:_e,nextTick:mn,cancelNextTick:Vn,detectDirection:hi,getChild:an},te.get=function(e){return e[Pe]},te.mount=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(te.utils=nt({},te.utils,t.utils)),Pt.mount(t)})},te.create=function(e,r){return new te(e,r)},te.version=Ta;var xe=[],Ft,Yn,Xn=!1,Zn,Jn,yn,jt;function Ka(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return e.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?fe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?fe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?fe(document,"touchmove",this._handleFallbackAutoScroll):fe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ae(document,"dragover",this._handleAutoScroll):(ae(document,"pointermove",this._handleFallbackAutoScroll),ae(document,"touchmove",this._handleFallbackAutoScroll),ae(document,"mousemove",this._handleFallbackAutoScroll)),yi(),gn(),Pa()},nulling:function(){yn=Yn=Ft=Xn=jt=Zn=Jn=null,xe.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,d=document.elementFromPoint(i,s);if(yn=n,t||kt||Qe||Rn){Qn(n,this.options,d,t);var c=rt(d,!0);Xn&&(!jt||i!==Zn||s!==Jn)&&(jt&&yi(),jt=setInterval(function(){var h=rt(document.elementFromPoint(i,s),!0);h!==c&&(c=h,gn()),Qn(n,o.options,h,t)},10),Zn=i,Jn=s)}else{if(!this.options.bubbleScroll||rt(d,!0)===Ye()){gn();return}Qn(n,this.options,rt(d,!1),!1)}}},Ue(e,{pluginName:"scroll",initializeByDefault:!0})}function gn(){xe.forEach(function(e){clearInterval(e.pid)}),xe=[]}function yi(){clearInterval(jt)}var Qn=ai(function(e,r,n,t){if(!!r.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=r.scrollSensitivity,d=r.scrollSpeed,c=Ye(),h=!1,f;Yn!==n&&(Yn=n,gn(),Ft=r.scroll,f=r.scrollFn,Ft===!0&&(Ft=rt(n,!0)));var l=0,a=Ft;do{var u=a,v=be(u),p=v.top,b=v.bottom,m=v.left,g=v.right,_=v.width,y=v.height,O=void 0,k=void 0,T=u.scrollWidth,A=u.scrollHeight,P=ee(u),x=u.scrollLeft,S=u.scrollTop;u===c?(O=_<T&&(P.overflowX==="auto"||P.overflowX==="scroll"||P.overflowX==="visible"),k=y<A&&(P.overflowY==="auto"||P.overflowY==="scroll"||P.overflowY==="visible")):(O=_<T&&(P.overflowX==="auto"||P.overflowX==="scroll"),k=y<A&&(P.overflowY==="auto"||P.overflowY==="scroll"));var w=O&&(Math.abs(g-o)<=s&&x+_<T)-(Math.abs(m-o)<=s&&!!x),N=k&&(Math.abs(b-i)<=s&&S+y<A)-(Math.abs(p-i)<=s&&!!S);if(!xe[l])for(var D=0;D<=l;D++)xe[D]||(xe[D]={});(xe[l].vx!=w||xe[l].vy!=N||xe[l].el!==u)&&(xe[l].el=u,xe[l].vx=w,xe[l].vy=N,clearInterval(xe[l].pid),(w!=0||N!=0)&&(h=!0,xe[l].pid=setInterval(function(){t&&this.layer===0&&te.active._onTouchMove(yn);var $=xe[this.layer].vy?xe[this.layer].vy*d:0,B=xe[this.layer].vx?xe[this.layer].vx*d:0;typeof f=="function"&&f.call(te.dragged.parentNode[Pe],B,$,e,yn,xe[this.layer].el)!=="continue"||li(xe[this.layer].el,B,$)}.bind({layer:l}),24))),l++}while(r.bubbleScroll&&a!==c&&(a=rt(a,!1)));Xn=h}},30),gi=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,s=r.dispatchSortableEvent,d=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var h=t||i;d();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,l=document.elementFromPoint(f.clientX,f.clientY);c(),h&&!h.el.contains(l)&&(s("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function er(){}er.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=an(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:gi},Ue(er,{pluginName:"revertOnSpill"});function tr(){}tr.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,o=t||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:gi},Ue(tr,{pluginName:"removeOnSpill"});var He;function Va(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var t=n.dragEl;He=t},dragOverValid:function(n){var t=n.completed,o=n.target,i=n.onMove,s=n.activeSortable,d=n.changed,c=n.cancel;if(!!s.options.swap){var h=this.sortable.el,f=this.options;if(o&&o!==h){var l=He;i(o)!==!1?(me(o,f.swapClass,!0),He=o):He=null,l&&l!==He&&me(l,f.swapClass,!1)}d(),t(!0),c()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,s=o||this.sortable,d=this.options;He&&me(He,d.swapClass,!1),He&&(d.swap||o&&o.options.swap)&&i!==He&&(s.captureAnimationState(),s!==t&&t.captureAnimationState(),Ya(i,He),s.animateAll(),s!==t&&t.animateAll())},nulling:function(){He=null}},Ue(e,{pluginName:"swap",eventProperties:function(){return{swapItem:He}}})}function Ya(e,r){var n=e.parentNode,t=r.parentNode,o,i;!n||!t||n.isEqualNode(r)||t.isEqualNode(e)||(o=_e(e),i=_e(r),n.isEqualNode(t)&&o<i&&i++,n.insertBefore(r,n.children[o]),t.insertBefore(e,t.children[i]))}var re=[],Be=[],Bt,Ke,qt=!1,qe=!1,_t=!1,pe,Ut,bn;function Xa(){function e(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?fe(document,"pointerup",this._deselectMultiDrag):(fe(document,"mouseup",this._deselectMultiDrag),fe(document,"touchend",this._deselectMultiDrag)),fe(document,"keydown",this._checkKeyDown),fe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,i){var s="";re.length&&Ke===r?re.forEach(function(d,c){s+=(c?", ":"")+d.textContent}):s=i.textContent,o.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;pe=t},delayEnded:function(){this.isMultiDrag=~re.indexOf(pe)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(!!this.isMultiDrag){for(var i=0;i<re.length;i++)Be.push(jn(re[i])),Be[i].sortableIndex=re[i].sortableIndex,Be[i].draggable=!1,Be[i].style["will-change"]="",me(Be[i],this.options.selectedClass,!1),re[i]===pe&&me(Be[i],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,i=n.dispatchSortableEvent,s=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||re.length&&Ke===t&&(bi(!0,o),i("clone"),s())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(bi(!1,o),Be.forEach(function(s){ee(s,"display","")}),t(),bn=!1,i())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,i=n.cancel;!this.isMultiDrag||(Be.forEach(function(s){ee(s,"display","none"),t.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),o(),bn=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ke&&Ke.multiDrag._deselectMultiDrag(),re.forEach(function(t){t.sortableIndex=_e(t)}),re=re.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),_t=!0},dragStarted:function(n){var t=this,o=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){re.forEach(function(s){s!==pe&&ee(s,"position","absolute")});var i=be(pe,!1,!0,!0);re.forEach(function(s){s!==pe&&si(s,i)}),qe=!0,qt=!0}o.animateAll(function(){qe=!1,qt=!1,t.options.animation&&re.forEach(function(s){Bn(s)}),t.options.sort&&_n()})}},dragOver:function(n){var t=n.target,o=n.completed,i=n.cancel;qe&&~re.indexOf(t)&&(o(!1),i())},revert:function(n){var t=n.fromSortable,o=n.rootEl,i=n.sortable,s=n.dragRect;re.length>1&&(re.forEach(function(d){i.addAnimationState({target:d,rect:qe?be(d):s}),Bn(d),d.fromRect=s,t.removeAnimationState(d)}),qe=!1,Za(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,s=n.activeSortable,d=n.parentEl,c=n.putSortable,h=this.options;if(i){if(o&&s._hideClone(),qt=!1,h.animation&&re.length>1&&(qe||!o&&!s.options.sort&&!c)){var f=be(pe,!1,!0,!0);re.forEach(function(a){a!==pe&&(si(a,f),d.appendChild(a))}),qe=!0}if(!o)if(qe||_n(),re.length>1){var l=bn;s._showClone(t),s.options.animation&&!bn&&l&&Be.forEach(function(a){s.addAnimationState({target:a,rect:Ut}),a.fromRect=Ut,a.thisAnimationDuration=null})}else s._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(re.forEach(function(d){d.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){Ut=Ue({},t);var s=ct(pe,!0);Ut.top-=s.f,Ut.left-=s.e}},dragOverAnimationComplete:function(){qe&&(qe=!1,_n())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,s=n.sortable,d=n.dispatchSortableEvent,c=n.oldIndex,h=n.putSortable,f=h||this.sortable;if(!!t){var l=this.options,a=i.children;if(!_t)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),me(pe,l.selectedClass,!~re.indexOf(pe)),~re.indexOf(pe))re.splice(re.indexOf(pe),1),Bt=null,Lt({sortable:s,rootEl:o,name:"deselect",targetEl:pe,originalEvt:t});else{if(re.push(pe),Lt({sortable:s,rootEl:o,name:"select",targetEl:pe,originalEvt:t}),t.shiftKey&&Bt&&s.el.contains(Bt)){var u=_e(Bt),v=_e(pe);if(~u&&~v&&u!==v){var p,b;for(v>u?(b=u,p=v):(b=v,p=u+1);b<p;b++)~re.indexOf(a[b])||(me(a[b],l.selectedClass,!0),re.push(a[b]),Lt({sortable:s,rootEl:o,name:"select",targetEl:a[b],originalEvt:t}))}}else Bt=pe;Ke=f}if(_t&&this.isMultiDrag){if((i[Pe].options.sort||i!==o)&&re.length>1){var m=be(pe),g=_e(pe,":not(."+this.options.selectedClass+")");if(!qt&&l.animation&&(pe.thisAnimationDuration=null),f.captureAnimationState(),!qt&&(l.animation&&(pe.fromRect=m,re.forEach(function(y){if(y.thisAnimationDuration=null,y!==pe){var O=qe?be(y):m;y.fromRect=O,f.addAnimationState({target:y,rect:O})}})),_n(),re.forEach(function(y){a[g]?i.insertBefore(y,a[g]):i.appendChild(y),g++}),c===_e(pe))){var _=!1;re.forEach(function(y){if(y.sortableIndex!==_e(y)){_=!0;return}}),_&&d("update")}re.forEach(function(y){Bn(y)}),f.animateAll()}Ke=f}(o===i||h&&h.lastPutMode!=="clone")&&Be.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},nullingGlobal:function(){this.isMultiDrag=_t=!1,Be.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ae(document,"pointerup",this._deselectMultiDrag),ae(document,"mouseup",this._deselectMultiDrag),ae(document,"touchend",this._deselectMultiDrag),ae(document,"keydown",this._checkKeyDown),ae(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof _t!="undefined"&&_t)&&Ke===this.sortable&&!(n&&We(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;re.length;){var t=re[0];me(t,this.options.selectedClass,!1),re.shift(),Lt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ue(e,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[Pe];!t||!t.options.multiDrag||~re.indexOf(n)||(Ke&&Ke!==t&&(Ke.multiDrag._deselectMultiDrag(),Ke=t),me(n,t.options.selectedClass,!0),re.push(n))},deselect:function(n){var t=n.parentNode[Pe],o=re.indexOf(n);!t||!t.options.multiDrag||!~o||(me(n,t.options.selectedClass,!1),re.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return re.forEach(function(i){t.push({multiDragElement:i,index:i.sortableIndex});var s;qe&&i!==pe?s=-1:qe?s=_e(i,":not(."+n.options.selectedClass+")"):s=_e(i),o.push({multiDragElement:i,index:s})}),{items:Ea(re),clones:[].concat(Be),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Za(e,r){re.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function bi(e,r){Be.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function _n(){re.forEach(function(e){e!==pe&&e.parentNode&&e.parentNode.removeChild(e)})}te.mount(new Ka),te.mount(tr,er);var Ja=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:te,MultiDrag:Xa,Sortable:te,Swap:Va}),Qa=Mr(Ja);(function(e,r){(function(t,o){e.exports=o(Qa)})(typeof self!="undefined"?self:Ct,function(n){return function(t){var o={};function i(s){if(o[s])return o[s].exports;var d=o[s]={i:s,l:!1,exports:{}};return t[s].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=t,i.c=o,i.d=function(s,d,c){i.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},i.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,d){if(d&1&&(s=i(s)),d&8||d&4&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var h in s)i.d(c,h,function(f){return s[f]}.bind(null,h));return c},i.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(d,"a",d),d},i.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var s=i("2d00"),d=i("5ca1"),c=i("2aba"),h=i("32e9"),f=i("84f2"),l=i("41a0"),a=i("7f20"),u=i("38fd"),v=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),b="@@iterator",m="keys",g="values",_=function(){return this};t.exports=function(y,O,k,T,A,P,x){l(k,O,T);var S=function(I){if(!p&&I in $)return $[I];switch(I){case m:return function(){return new k(this,I)};case g:return function(){return new k(this,I)}}return function(){return new k(this,I)}},w=O+" Iterator",N=A==g,D=!1,$=y.prototype,B=$[v]||$[b]||A&&$[A],U=B||S(A),G=A?N?S("entries"):U:void 0,q=O=="Array"&&$.entries||B,R,E,C;if(q&&(C=u(q.call(new y)),C!==Object.prototype&&C.next&&(a(C,w,!0),!s&&typeof C[v]!="function"&&h(C,v,_))),N&&B&&B.name!==g&&(D=!0,U=function(){return B.call(this)}),(!s||x)&&(p||D||!$[v])&&h($,v,U),f[O]=U,f[w]=_,A)if(R={values:N?U:S(g),keys:P?U:S(m),entries:G},x)for(E in R)E in $||c($,E,R[E]);else d(d.P+d.F*(p||D),O,R);return R}},"02f4":function(t,o,i){var s=i("4588"),d=i("be13");t.exports=function(c){return function(h,f){var l=String(d(h)),a=s(f),u=l.length,v,p;return a<0||a>=u?c?"":void 0:(v=l.charCodeAt(a),v<55296||v>56319||a+1===u||(p=l.charCodeAt(a+1))<56320||p>57343?c?l.charAt(a):v:c?l.slice(a,a+2):(v-55296<<10)+(p-56320)+65536)}}},"0390":function(t,o,i){var s=i("02f4")(!0);t.exports=function(d,c,h){return c+(h?s(d,c).length:1)}},"0bfb":function(t,o,i){var s=i("cb7c");t.exports=function(){var d=s(this),c="";return d.global&&(c+="g"),d.ignoreCase&&(c+="i"),d.multiline&&(c+="m"),d.unicode&&(c+="u"),d.sticky&&(c+="y"),c}},"0d58":function(t,o,i){var s=i("ce10"),d=i("e11e");t.exports=Object.keys||function(h){return s(h,d)}},"1495":function(t,o,i){var s=i("86cc"),d=i("cb7c"),c=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(f,l){d(f);for(var a=c(l),u=a.length,v=0,p;u>v;)s.f(f,p=a[v++],l[p]);return f}},"214f":function(t,o,i){i("b0c5");var s=i("2aba"),d=i("32e9"),c=i("79e5"),h=i("be13"),f=i("2b4c"),l=i("520a"),a=f("species"),u=!c(function(){var p=/./;return p.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(p,"$<a>")!=="7"}),v=function(){var p=/(?:)/,b=p.exec;p.exec=function(){return b.apply(this,arguments)};var m="ab".split(p);return m.length===2&&m[0]==="a"&&m[1]==="b"}();t.exports=function(p,b,m){var g=f(p),_=!c(function(){var P={};return P[g]=function(){return 7},""[p](P)!=7}),y=_?!c(function(){var P=!1,x=/a/;return x.exec=function(){return P=!0,null},p==="split"&&(x.constructor={},x.constructor[a]=function(){return x}),x[g](""),!P}):void 0;if(!_||!y||p==="replace"&&!u||p==="split"&&!v){var O=/./[g],k=m(h,g,""[p],function(x,S,w,N,D){return S.exec===l?_&&!D?{done:!0,value:O.call(S,w,N)}:{done:!0,value:x.call(w,S,N)}:{done:!1}}),T=k[0],A=k[1];s(String.prototype,p,T),d(RegExp.prototype,g,b==2?function(P,x){return A.call(P,this,x)}:function(P){return A.call(P,this)})}}},"230e":function(t,o,i){var s=i("d3f4"),d=i("7726").document,c=s(d)&&s(d.createElement);t.exports=function(h){return c?d.createElement(h):{}}},"23c6":function(t,o,i){var s=i("2d95"),d=i("2b4c")("toStringTag"),c=s(function(){return arguments}())=="Arguments",h=function(f,l){try{return f[l]}catch{}};t.exports=function(f){var l,a,u;return f===void 0?"Undefined":f===null?"Null":typeof(a=h(l=Object(f),d))=="string"?a:c?s(l):(u=s(l))=="Object"&&typeof l.callee=="function"?"Arguments":u}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var s=i("7726"),d=i("32e9"),c=i("69a8"),h=i("ca5a")("src"),f=i("fa5b"),l="toString",a=(""+f).split(l);i("8378").inspectSource=function(u){return f.call(u)},(t.exports=function(u,v,p,b){var m=typeof p=="function";m&&(c(p,"name")||d(p,"name",v)),u[v]!==p&&(m&&(c(p,h)||d(p,h,u[v]?""+u[v]:a.join(String(v)))),u===s?u[v]=p:b?u[v]?u[v]=p:d(u,v,p):(delete u[v],d(u,v,p)))})(Function.prototype,l,function(){return typeof this=="function"&&this[h]||f.call(this)})},"2aeb":function(t,o,i){var s=i("cb7c"),d=i("1495"),c=i("e11e"),h=i("613b")("IE_PROTO"),f=function(){},l="prototype",a=function(){var u=i("230e")("iframe"),v=c.length,p="<",b=">",m;for(u.style.display="none",i("fab2").appendChild(u),u.src="javascript:",m=u.contentWindow.document,m.open(),m.write(p+"script"+b+"document.F=Object"+p+"/script"+b),m.close(),a=m.F;v--;)delete a[l][c[v]];return a()};t.exports=Object.create||function(v,p){var b;return v!==null?(f[l]=s(v),b=new f,f[l]=null,b[h]=v):b=a(),p===void 0?b:d(b,p)}},"2b4c":function(t,o,i){var s=i("5537")("wks"),d=i("ca5a"),c=i("7726").Symbol,h=typeof c=="function",f=t.exports=function(l){return s[l]||(s[l]=h&&c[l]||(h?c:d)("Symbol."+l))};f.store=s},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var i={}.toString;t.exports=function(s){return i.call(s).slice(8,-1)}},"2fdb":function(t,o,i){var s=i("5ca1"),d=i("d2c8"),c="includes";s(s.P+s.F*i("5147")(c),"String",{includes:function(f){return!!~d(this,f,c).indexOf(f,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var s=i("86cc"),d=i("4630");t.exports=i("9e1e")?function(c,h,f){return s.f(c,h,d(1,f))}:function(c,h,f){return c[h]=f,c}},"38fd":function(t,o,i){var s=i("69a8"),d=i("4bf8"),c=i("613b")("IE_PROTO"),h=Object.prototype;t.exports=Object.getPrototypeOf||function(f){return f=d(f),s(f,c)?f[c]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?h:null}},"41a0":function(t,o,i){var s=i("2aeb"),d=i("4630"),c=i("7f20"),h={};i("32e9")(h,i("2b4c")("iterator"),function(){return this}),t.exports=function(f,l,a){f.prototype=s(h,{next:d(1,a)}),c(f,l+" Iterator")}},"456d":function(t,o,i){var s=i("4bf8"),d=i("0d58");i("5eda")("keys",function(){return function(h){return d(s(h))}})},"4588":function(t,o){var i=Math.ceil,s=Math.floor;t.exports=function(d){return isNaN(d=+d)?0:(d>0?s:i)(d)}},"4630":function(t,o){t.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"4bf8":function(t,o,i){var s=i("be13");t.exports=function(d){return Object(s(d))}},"5147":function(t,o,i){var s=i("2b4c")("match");t.exports=function(d){var c=/./;try{"/./"[d](c)}catch{try{return c[s]=!1,!"/./"[d](c)}catch{}}return!0}},"520a":function(t,o,i){var s=i("0bfb"),d=RegExp.prototype.exec,c=String.prototype.replace,h=d,f="lastIndex",l=function(){var v=/a/,p=/b*/g;return d.call(v,"a"),d.call(p,"a"),v[f]!==0||p[f]!==0}(),a=/()??/.exec("")[1]!==void 0,u=l||a;u&&(h=function(p){var b=this,m,g,_,y;return a&&(g=new RegExp("^"+b.source+"$(?!\\s)",s.call(b))),l&&(m=b[f]),_=d.call(b,p),l&&_&&(b[f]=b.global?_.index+_[0].length:m),a&&_&&_.length>1&&c.call(_[0],g,function(){for(y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(_[y]=void 0)}),_}),t.exports=h},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var s=i("8378"),d=i("7726"),c="__core-js_shared__",h=d[c]||(d[c]={});(t.exports=function(f,l){return h[f]||(h[f]=l!==void 0?l:{})})("versions",[]).push({version:s.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,i){var s=i("7726"),d=i("8378"),c=i("32e9"),h=i("2aba"),f=i("9b43"),l="prototype",a=function(u,v,p){var b=u&a.F,m=u&a.G,g=u&a.S,_=u&a.P,y=u&a.B,O=m?s:g?s[v]||(s[v]={}):(s[v]||{})[l],k=m?d:d[v]||(d[v]={}),T=k[l]||(k[l]={}),A,P,x,S;m&&(p=v);for(A in p)P=!b&&O&&O[A]!==void 0,x=(P?O:p)[A],S=y&&P?f(x,s):_&&typeof x=="function"?f(Function.call,x):x,O&&h(O,A,x,u&a.U),k[A]!=x&&c(k,A,S),_&&T[A]!=x&&(T[A]=x)};s.core=d,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"5eda":function(t,o,i){var s=i("5ca1"),d=i("8378"),c=i("79e5");t.exports=function(h,f){var l=(d.Object||{})[h]||Object[h],a={};a[h]=f(l),s(s.S+s.F*c(function(){l(1)}),"Object",a)}},"5f1b":function(t,o,i){var s=i("23c6"),d=RegExp.prototype.exec;t.exports=function(c,h){var f=c.exec;if(typeof f=="function"){var l=f.call(c,h);if(typeof l!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if(s(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return d.call(c,h)}},"613b":function(t,o,i){var s=i("5537")("keys"),d=i("ca5a");t.exports=function(c){return s[c]||(s[c]=d(c))}},"626a":function(t,o,i){var s=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return s(d)=="String"?d.split(""):Object(d)}},"6762":function(t,o,i){var s=i("5ca1"),d=i("c366")(!0);s(s.P,"Array",{includes:function(h){return d(this,h,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var s=i("626a"),d=i("be13");t.exports=function(c){return s(d(c))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(s,d){return i.call(s,d)}},"6a99":function(t,o,i){var s=i("d3f4");t.exports=function(d,c){if(!s(d))return d;var h,f;if(c&&typeof(h=d.toString)=="function"&&!s(f=h.call(d))||typeof(h=d.valueOf)=="function"&&!s(f=h.call(d))||!c&&typeof(h=d.toString)=="function"&&!s(f=h.call(d)))return f;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var s=i("0d58"),d=i("2621"),c=i("52a7"),h=i("4bf8"),f=i("626a"),l=Object.assign;t.exports=!l||i("79e5")(function(){var a={},u={},v=Symbol(),p="abcdefghijklmnopqrst";return a[v]=7,p.split("").forEach(function(b){u[b]=b}),l({},a)[v]!=7||Object.keys(l({},u)).join("")!=p})?function(u,v){for(var p=h(u),b=arguments.length,m=1,g=d.f,_=c.f;b>m;)for(var y=f(arguments[m++]),O=g?s(y).concat(g(y)):s(y),k=O.length,T=0,A;k>T;)_.call(y,A=O[T++])&&(p[A]=y[A]);return p}:l},"7726":function(t,o){var i=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(t,o,i){var s=i("4588"),d=Math.max,c=Math.min;t.exports=function(h,f){return h=s(h),h<0?d(h+f,0):c(h,f)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var s=i("86cc").f,d=i("69a8"),c=i("2b4c")("toStringTag");t.exports=function(h,f,l){h&&!d(h=l?h:h.prototype,c)&&s(h,c,{configurable:!0,value:f})}},"8378":function(t,o){var i=t.exports={version:"2.6.5"};typeof __e=="number"&&(__e=i)},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,i){var s=i("cb7c"),d=i("c69a"),c=i("6a99"),h=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(l,a,u){if(s(l),a=c(a,!0),s(u),d)try{return h(l,a,u)}catch{}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(l[a]=u.value),l}},"9b43":function(t,o,i){var s=i("d8e8");t.exports=function(d,c,h){if(s(d),c===void 0)return d;switch(h){case 1:return function(f){return d.call(c,f)};case 2:return function(f,l){return d.call(c,f,l)};case 3:return function(f,l,a){return d.call(c,f,l,a)}}return function(){return d.apply(c,arguments)}}},"9c6c":function(t,o,i){var s=i("2b4c")("unscopables"),d=Array.prototype;d[s]==null&&i("32e9")(d,s,{}),t.exports=function(c){d[s][c]=!0}},"9def":function(t,o,i){var s=i("4588"),d=Math.min;t.exports=function(c){return c>0?d(s(c),9007199254740991):0}},"9e1e":function(t,o,i){t.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(t,o){t.exports=n},a481:function(t,o,i){var s=i("cb7c"),d=i("4bf8"),c=i("9def"),h=i("4588"),f=i("0390"),l=i("5f1b"),a=Math.max,u=Math.min,v=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,m=function(g){return g===void 0?g:String(g)};i("214f")("replace",2,function(g,_,y,O){return[function(A,P){var x=g(this),S=A==null?void 0:A[_];return S!==void 0?S.call(A,x,P):y.call(String(x),A,P)},function(T,A){var P=O(y,T,this,A);if(P.done)return P.value;var x=s(T),S=String(this),w=typeof A=="function";w||(A=String(A));var N=x.global;if(N){var D=x.unicode;x.lastIndex=0}for(var $=[];;){var B=l(x,S);if(B===null||($.push(B),!N))break;var U=String(B[0]);U===""&&(x.lastIndex=f(S,c(x.lastIndex),D))}for(var G="",q=0,R=0;R<$.length;R++){B=$[R];for(var E=String(B[0]),C=a(u(h(B.index),S.length),0),I=[],F=1;F<B.length;F++)I.push(m(B[F]));var j=B.groups;if(w){var L=[E].concat(I,C,S);j!==void 0&&L.push(j);var M=String(A.apply(void 0,L))}else M=k(E,S,C,I,j,A);C>=q&&(G+=S.slice(q,C)+M,q=C+E.length)}return G+S.slice(q)}];function k(T,A,P,x,S,w){var N=P+T.length,D=x.length,$=b;return S!==void 0&&(S=d(S),$=p),y.call(w,$,function(B,U){var G;switch(U.charAt(0)){case"$":return"$";case"&":return T;case"`":return A.slice(0,P);case"'":return A.slice(N);case"<":G=S[U.slice(1,-1)];break;default:var q=+U;if(q===0)return B;if(q>D){var R=v(q/10);return R===0?B:R<=D?x[R-1]===void 0?U.charAt(1):x[R-1]+U.charAt(1):B}G=x[q-1]}return G===void 0?"":G})}})},aae3:function(t,o,i){var s=i("d3f4"),d=i("2d95"),c=i("2b4c")("match");t.exports=function(h){var f;return s(h)&&((f=h[c])!==void 0?!!f:d(h)=="RegExp")}},ac6a:function(t,o,i){for(var s=i("cadf"),d=i("0d58"),c=i("2aba"),h=i("7726"),f=i("32e9"),l=i("84f2"),a=i("2b4c"),u=a("iterator"),v=a("toStringTag"),p=l.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=d(b),g=0;g<m.length;g++){var _=m[g],y=b[_],O=h[_],k=O&&O.prototype,T;if(k&&(k[u]||f(k,u,p),k[v]||f(k,v,_),l[_]=p,y))for(T in s)k[T]||c(k,T,s[T],!0)}},b0c5:function(t,o,i){var s=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(t,o){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(t,o,i){var s=i("6821"),d=i("9def"),c=i("77f1");t.exports=function(h){return function(f,l,a){var u=s(f),v=d(u.length),p=c(a,v),b;if(h&&l!=l){for(;v>p;)if(b=u[p++],b!=b)return!0}else for(;v>p;p++)if((h||p in u)&&u[p]===l)return h||p||0;return!h&&-1}}},c649:function(t,o,i){(function(s){i.d(o,"c",function(){return u}),i.d(o,"a",function(){return l}),i.d(o,"b",function(){return c}),i.d(o,"d",function(){return a}),i("a481");function d(){return typeof window!="undefined"?window.console:s.console}var c=d();function h(v){var p=Object.create(null);return function(m){var g=p[m];return g||(p[m]=v(m))}}var f=/-(\w)/g,l=h(function(v){return v.replace(f,function(p,b){return b?b.toUpperCase():""})});function a(v){v.parentElement!==null&&v.parentElement.removeChild(v)}function u(v,p,b){var m=b===0?v.children[0]:v.children[b-1].nextSibling;v.insertBefore(p,m)}}).call(this,i("c8ba"))},c69a:function(t,o,i){t.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(t,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},ca5a:function(t,o){var i=0,s=Math.random();t.exports=function(d){return"Symbol(".concat(d===void 0?"":d,")_",(++i+s).toString(36))}},cadf:function(t,o,i){var s=i("9c6c"),d=i("d53b"),c=i("84f2"),h=i("6821");t.exports=i("01f9")(Array,"Array",function(f,l){this._t=h(f),this._i=0,this._k=l},function(){var f=this._t,l=this._k,a=this._i++;return!f||a>=f.length?(this._t=void 0,d(1)):l=="keys"?d(0,a):l=="values"?d(0,f[a]):d(0,[a,f[a]])},"values"),c.Arguments=c.Array,s("keys"),s("values"),s("entries")},cb7c:function(t,o,i){var s=i("d3f4");t.exports=function(d){if(!s(d))throw TypeError(d+" is not an object!");return d}},ce10:function(t,o,i){var s=i("69a8"),d=i("6821"),c=i("c366")(!1),h=i("613b")("IE_PROTO");t.exports=function(f,l){var a=d(f),u=0,v=[],p;for(p in a)p!=h&&s(a,p)&&v.push(p);for(;l.length>u;)s(a,p=l[u++])&&(~c(v,p)||v.push(p));return v}},d2c8:function(t,o,i){var s=i("aae3"),d=i("be13");t.exports=function(c,h,f){if(s(h))throw TypeError("String#"+f+" doesn't accept regex!");return String(d(c))}},d3f4:function(t,o){t.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(t,o){t.exports=function(i,s){return{value:s,done:!!i}}},d8e8:function(t,o){t.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(t,o){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,o,i){var s=i("5ca1"),d=i("9def"),c=i("d2c8"),h="startsWith",f=""[h];s(s.P+s.F*i("5147")(h),"String",{startsWith:function(a){var u=c(this,a,h),v=d(Math.min(arguments.length>1?arguments[1]:void 0,u.length)),p=String(a);return f?f.call(u,p,v):u.slice(v,v+p.length)===p}})},f6fd:function(t,o){(function(i){var s="currentScript",d=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(f){var c,h=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(f.stack)||[!1])[1];for(c in d)if(d[c].src==h||d[c].readyState=="interactive")return d[c];return null}}})})(document)},f751:function(t,o,i){var s=i("5ca1");s(s.S+s.F,"Object",{assign:i("7333")})},fa5b:function(t,o,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,o,i){var s=i("7726").document;t.exports=s&&s.documentElement},fb15:function(t,o,i){if(i.r(o),typeof window!="undefined"){i("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=s[1])}i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function d(E){if(Array.isArray(E))return E}function c(E,C){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(E)))){var I=[],F=!0,j=!1,L=void 0;try{for(var M=E[Symbol.iterator](),H;!(F=(H=M.next()).done)&&(I.push(H.value),!(C&&I.length===C));F=!0);}catch(z){j=!0,L=z}finally{try{!F&&M.return!=null&&M.return()}finally{if(j)throw L}}return I}}function h(E,C){(C==null||C>E.length)&&(C=E.length);for(var I=0,F=new Array(C);I<C;I++)F[I]=E[I];return F}function f(E,C){if(!!E){if(typeof E=="string")return h(E,C);var I=Object.prototype.toString.call(E).slice(8,-1);if(I==="Object"&&E.constructor&&(I=E.constructor.name),I==="Map"||I==="Set")return Array.from(E);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return h(E,C)}}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
|
+
*/function rn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rn=function(r){return typeof r}:rn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rn(e)}function Sa(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ue(){return Ue=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},Ue.apply(this,arguments)}function nt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{},t=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),t.forEach(function(o){Sa(e,o,n[o])})}return e}function Ea(e,r){if(e==null)return{};var n={},t=Object.keys(e),o,i;for(i=0;i<t.length;i++)o=t[i],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function xa(e,r){if(e==null)return{};var n=Ea(e,r),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(n[t]=e[t]))}return n}function wa(e){return Aa(e)||Ta(e)||Ca()}function Aa(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function Ta(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ca(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var ka="1.10.2";function Je(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Qe=Je(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kt=Je(/Edge/i),ei=Je(/firefox/i),Mn=Je(/safari/i)&&!Je(/chrome/i)&&!Je(/android/i),ti=Je(/iP(ad|od|hone)/i),Ia=Je(/chrome/i)&&Je(/android/i),ni={capture:!1,passive:!1};function fe(e,r,n){e.addEventListener(r,n,!Qe&&ni)}function ae(e,r,n){e.removeEventListener(r,n,!Qe&&ni)}function on(e,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch{return!1}return!1}}function Na(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ge(e,r,n,t){if(e){n=n||document;do{if(r!=null&&(r[0]===">"?e.parentNode===n&&on(e,r):on(e,r))||t&&e===n)return e;if(e===n)break}while(e=Na(e))}return null}var ri=/\s+/g;function me(e,r,n){if(e&&r)if(e.classList)e.classList[n?"add":"remove"](r);else{var t=(" "+e.className+" ").replace(ri," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(ri," ")}}function ee(e,r,n){var t=e&&e.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function ct(e,r){var n="";if(typeof e=="string")n=e;else do{var t=ee(e,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function ii(e,r,n){if(e){var t=e.getElementsByTagName(r),o=0,i=t.length;if(n)for(;o<i;o++)n(t[o],o);return t}return[]}function Ye(){var e=document.scrollingElement;return e||document.documentElement}function _e(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,d,c,h,f,l;if(e!==window&&e!==Ye()?(i=e.getBoundingClientRect(),s=i.top,d=i.left,c=i.bottom,h=i.right,f=i.height,l=i.width):(s=0,d=0,c=window.innerHeight,h=window.innerWidth,f=window.innerHeight,l=window.innerWidth),(r||n)&&e!==window&&(o=o||e.parentNode,!Qe))do if(o&&o.getBoundingClientRect&&(ee(o,"transform")!=="none"||n&&ee(o,"position")!=="static")){var a=o.getBoundingClientRect();s-=a.top+parseInt(ee(o,"border-top-width")),d-=a.left+parseInt(ee(o,"border-left-width")),c=s+i.height,h=d+i.width;break}while(o=o.parentNode);if(t&&e!==window){var u=ct(o||e),v=u&&u.a,p=u&&u.d;u&&(s/=p,d/=v,l/=v,f/=p,c=s+f,h=d+l)}return{top:s,left:d,bottom:c,right:h,width:l,height:f}}}function oi(e,r,n){for(var t=rt(e,!0),o=_e(e)[r];t;){var i=_e(t)[n],s=void 0;if(n==="top"||n==="left"?s=o>=i:s=o<=i,!s)return t;if(t===Ye())break;t=rt(t,!1)}return!1}function an(e,r,n){for(var t=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==te.ghost&&i[o]!==te.dragged&&Ge(i[o],n.draggable,e,!1)){if(t===r)return i[o];t++}o++}return null}function Fn(e,r){for(var n=e.lastElementChild;n&&(n===te.ghost||ee(n,"display")==="none"||r&&!on(n,r));)n=n.previousElementSibling;return n||null}function Oe(e,r){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==te.clone&&(!r||on(e,r))&&n++;return n}function ai(e){var r=0,n=0,t=Ye();if(e)do{var o=ct(e),i=o.a,s=o.d;r+=e.scrollLeft*i,n+=e.scrollTop*s}while(e!==t&&(e=e.parentNode));return[r,n]}function Pa(e,r){for(var n in e)if(!!e.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===e[n][t])return Number(n)}return-1}function rt(e,r){if(!e||!e.getBoundingClientRect)return Ye();var n=e,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=ee(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ye();if(t||r)return n;t=!0}}while(n=n.parentNode);return Ye()}function La(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function jn(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}var It;function li(e,r){return function(){if(!It){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),It=setTimeout(function(){It=void 0},r)}}}function Da(){clearTimeout(It),It=void 0}function si(e,r,n){e.scrollLeft+=r,e.scrollTop+=n}function Bn(e){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function ui(e,r){ee(e,"position","absolute"),ee(e,"top",r.top),ee(e,"left",r.left),ee(e,"width",r.width),ee(e,"height",r.height)}function qn(e){ee(e,"position",""),ee(e,"top",""),ee(e,"left",""),ee(e,"width",""),ee(e,"height","")}var Pe="Sortable"+new Date().getTime();function $a(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(ee(o,"display")==="none"||o===te.ghost)){e.push({target:o,rect:_e(o)});var i=nt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=ct(o,!0);s&&(i.top-=s.f,i.left-=s.e)}o.fromRect=i}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Pa(e,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var i=!1,s=0;e.forEach(function(d){var c=0,h=d.target,f=h.fromRect,l=_e(h),a=h.prevFromRect,u=h.prevToRect,v=d.rect,p=ct(h,!0);p&&(l.top-=p.f,l.left-=p.e),h.toRect=l,h.thisAnimationDuration&&jn(a,l)&&!jn(f,l)&&(v.top-l.top)/(v.left-l.left)==(f.top-l.top)/(f.left-l.left)&&(c=Ma(v,a,u,o.options)),jn(l,f)||(h.prevFromRect=f,h.prevToRect=l,c||(c=o.options.animation),o.animate(h,v,l,c)),c&&(i=!0,s=Math.max(s,c),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},c),h.thisAnimationDuration=c)}),clearTimeout(r),i?r=setTimeout(function(){typeof t=="function"&&t()},s):typeof t=="function"&&t(),e=[]},animate:function(t,o,i,s){if(s){ee(t,"transition",""),ee(t,"transform","");var d=ct(this.el),c=d&&d.a,h=d&&d.d,f=(o.left-i.left)/(c||1),l=(o.top-i.top)/(h||1);t.animatingX=!!f,t.animatingY=!!l,ee(t,"transform","translate3d("+f+"px,"+l+"px,0)"),Ra(t),ee(t,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),ee(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){ee(t,"transition",""),ee(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},s)}}}}function Ra(e){return e.offsetWidth}function Ma(e,r,n,t){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var Nt=[],Un={initializeByDefault:!0},Pt={mount:function(r){for(var n in Un)Un.hasOwnProperty(n)&&!(n in r)&&(r[n]=Un[n]);Nt.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";Nt.forEach(function(s){!n[s.pluginName]||(n[s.pluginName][i]&&n[s.pluginName][i](nt({sortable:n},t)),n.options[s.pluginName]&&n[s.pluginName][r]&&n[s.pluginName][r](nt({sortable:n},t)))})},initializePlugins:function(r,n,t,o){Nt.forEach(function(d){var c=d.pluginName;if(!(!r.options[c]&&!d.initializeByDefault)){var h=new d(r,n,r.options);h.sortable=r,h.options=r.options,r[c]=h,Ue(t,h.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var s=this.modifyOption(r,i,r.options[i]);typeof s!="undefined"&&(r.options[i]=s)}},getEventProperties:function(r,n){var t={};return Nt.forEach(function(o){typeof o.eventProperties=="function"&&Ue(t,o.eventProperties.call(n[o.pluginName],r))}),t},modifyOption:function(r,n,t){var o;return Nt.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function Lt(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,d=e.fromEl,c=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,l=e.newDraggableIndex,a=e.originalEvent,u=e.putSortable,v=e.extraEventProperties;if(r=r||n&&n[Pe],!!r){var p,b=r.options,m="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Qe&&!kt?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=s||n,p.from=d||n,p.item=o||n,p.clone=i,p.oldIndex=c,p.newIndex=h,p.oldDraggableIndex=f,p.newDraggableIndex=l,p.originalEvent=a,p.pullMode=u?u.lastPutMode:void 0;var y=nt({},v,Pt.getEventProperties(t,r));for(var _ in y)p[_]=y[_];n&&n.dispatchEvent(p),b[m]&&b[m].call(r,p)}}var Me=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=xa(t,["evt"]);Pt.pluginEvent.bind(te)(r,n,nt({dragEl:X,parentEl:Ee,ghostEl:ie,rootEl:ge,nextEl:dt,lastDownEl:ln,cloneEl:Se,cloneHidden:it,dragStarted:$t,putSortable:ke,activeSortable:te.active,originalEvent:o,oldIndex:gt,oldDraggableIndex:Dt,newIndex:je,newDraggableIndex:ot,hideGhostForTarget:mi,unhideGhostForTarget:gi,cloneNowHidden:function(){it=!0},cloneNowShown:function(){it=!1},dispatchSortableEvent:function(d){$e({sortable:n,name:d,originalEvent:o})}},i))};function $e(e){Lt(nt({putSortable:ke,cloneEl:Se,targetEl:X,rootEl:ge,oldIndex:gt,oldDraggableIndex:Dt,newIndex:je,newDraggableIndex:ot},e))}var X,Ee,ie,ge,dt,ln,Se,it,gt,je,Dt,ot,sn,ke,yt=!1,un=!1,fn=[],ht,Ke,Hn,zn,fi,ci,$t,bt,Rt,Mt=!1,cn=!1,dn,Le,Wn=[],Gn=!1,hn=[],pn=typeof document!="undefined",vn=ti,di=kt||Qe?"cssFloat":"float",Fa=pn&&!Ia&&!ti&&"draggable"in document.createElement("div"),hi=function(){if(!!pn){if(Qe)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),pi=function(r,n){var t=ee(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=an(r,0,n),s=an(r,1,n),d=i&&ee(i),c=s&&ee(s),h=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+_e(i).width,f=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+_e(s).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(i&&d.float&&d.float!=="none"){var l=d.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===l)?"vertical":"horizontal"}return i&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||h>=o&&t[di]==="none"||s&&t[di]==="none"&&h+f>o)?"vertical":"horizontal"},ja=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,s=t?r.width:r.height,d=t?n.left:n.top,c=t?n.right:n.bottom,h=t?n.width:n.height;return o===d||i===c||o+s/2===d+h/2},Ba=function(r,n){var t;return fn.some(function(o){if(!Fn(o)){var i=_e(o),s=o[Pe].options.emptyInsertThreshold,d=r>=i.left-s&&r<=i.right+s,c=n>=i.top-s&&n<=i.bottom+s;if(s&&d&&c)return t=o}}),t},vi=function(r){function n(i,s){return function(d,c,h,f){var l=d.options.group.name&&c.options.group.name&&d.options.group.name===c.options.group.name;if(i==null&&(s||l))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(d,c,h,f),s)(d,c,h,f);var a=(s?d:c).options.group.name;return i===!0||typeof i=="string"&&i===a||i.join&&i.indexOf(a)>-1}}var t={},o=r.group;(!o||rn(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,r.group=t},mi=function(){!hi&&ie&&ee(ie,"display","none")},gi=function(){!hi&&ie&&ee(ie,"display","")};pn&&document.addEventListener("click",function(e){if(un)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),un=!1,!1},!0);var pt=function(r){if(X){r=r.touches?r.touches[0]:r;var n=Ba(r.clientX,r.clientY);if(n){var t={};for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[Pe]._onDragOver(t)}}},qa=function(r){X&&X.parentNode[Pe]._isOutsideThisEl(r.target)};function te(e,r){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=Ue({},r),e[Pe]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return pi(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,d){s.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:te.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Pt.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);vi(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:Fa,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?fe(e,"pointerdown",this._onTapStart):(fe(e,"mousedown",this._onTapStart),fe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(fe(e,"dragover",this),fe(e,"dragenter",this)),fn.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Ue(this,$a())}te.prototype={constructor:te,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(bt=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,X):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,o=this.options,i=o.preventOnFilter,s=r.type,d=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(d||r).target,h=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,f=o.filter;if(Va(t),!X&&!(/mousedown|pointerdown/.test(s)&&r.button!==0||o.disabled)&&!h.isContentEditable&&(c=Ge(c,o.draggable,t,!1),!(c&&c.animated)&&ln!==c)){if(gt=Oe(c),Dt=Oe(c,o.draggable),typeof f=="function"){if(f.call(this,r,c,this)){$e({sortable:n,rootEl:h,name:"filter",targetEl:c,toEl:t,fromEl:t}),Me("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(f&&(f=f.split(",").some(function(l){if(l=Ge(h,l.trim(),t,!1),l)return $e({sortable:n,rootEl:l,name:"filter",targetEl:c,fromEl:t,toEl:t}),Me("filter",n,{evt:r}),!0}),f)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!Ge(h,o.handle,t,!1)||this._prepareDragStart(r,d,c)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,s=o.options,d=i.ownerDocument,c;if(t&&!X&&t.parentNode===i){var h=_e(t);if(ge=i,X=t,Ee=X.parentNode,dt=X.nextSibling,ln=t,sn=s.group,te.dragged=X,ht={target:X,clientX:(n||r).clientX,clientY:(n||r).clientY},fi=ht.clientX-h.left,ci=ht.clientY-h.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,X.style["will-change"]="all",c=function(){if(Me("delayEnded",o,{evt:r}),te.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!ei&&o.nativeDraggable&&(X.draggable=!0),o._triggerDragStart(r,n),$e({sortable:o,name:"choose",originalEvent:r}),me(X,s.chosenClass,!0)},s.ignore.split(",").forEach(function(f){ii(X,f.trim(),Vn)}),fe(d,"dragover",pt),fe(d,"mousemove",pt),fe(d,"touchmove",pt),fe(d,"mouseup",o._onDrop),fe(d,"touchend",o._onDrop),fe(d,"touchcancel",o._onDrop),ei&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),Me("delayStart",this,{evt:r}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(kt||Qe))){if(te.eventCanceled){this._onDrop();return}fe(d,"mouseup",o._disableDelayedDrag),fe(d,"touchend",o._disableDelayedDrag),fe(d,"touchcancel",o._disableDelayedDrag),fe(d,"mousemove",o._delayedDragTouchMoveHandler),fe(d,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&fe(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&Vn(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._disableDelayedDrag),ae(r,"touchend",this._disableDelayedDrag),ae(r,"touchcancel",this._disableDelayedDrag),ae(r,"mousemove",this._delayedDragTouchMoveHandler),ae(r,"touchmove",this._delayedDragTouchMoveHandler),ae(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?fe(document,"pointermove",this._onTouchMove):n?fe(document,"touchmove",this._onTouchMove):fe(document,"mousemove",this._onTouchMove):(fe(X,"dragend",this),fe(ge,"dragstart",this._onDragStart));try{document.selection?mn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(yt=!1,ge&&X){Me("dragStarted",this,{evt:n}),this.nativeDraggable&&fe(document,"dragover",qa);var t=this.options;!r&&me(X,t.dragClass,!1),me(X,t.ghostClass,!0),te.active=this,r&&this._appendGhost(),$e({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ke){this._lastX=Ke.clientX,this._lastY=Ke.clientY,mi();for(var r=document.elementFromPoint(Ke.clientX,Ke.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Ke.clientX,Ke.clientY),r!==n);)n=r;if(X.parentNode[Pe]._isOutsideThisEl(r),n)do{if(n[Pe]){var t=void 0;if(t=n[Pe]._onDragOver({clientX:Ke.clientX,clientY:Ke.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);gi()}},_onTouchMove:function(r){if(ht){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,i=r.touches?r.touches[0]:r,s=ie&&ct(ie,!0),d=ie&&s&&s.a,c=ie&&s&&s.d,h=vn&&Le&&ai(Le),f=(i.clientX-ht.clientX+o.x)/(d||1)+(h?h[0]-Wn[0]:0)/(d||1),l=(i.clientY-ht.clientY+o.y)/(c||1)+(h?h[1]-Wn[1]:0)/(c||1);if(!te.active&&!yt){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(ie){s?(s.e+=f-(Hn||0),s.f+=l-(zn||0)):s={a:1,b:0,c:0,d:1,e:f,f:l};var a="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ee(ie,"webkitTransform",a),ee(ie,"mozTransform",a),ee(ie,"msTransform",a),ee(ie,"transform",a),Hn=f,zn=l,Ke=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!ie){var r=this.options.fallbackOnBody?document.body:ge,n=_e(X,!0,vn,!0,r),t=this.options;if(vn){for(Le=r;ee(Le,"position")==="static"&&ee(Le,"transform")==="none"&&Le!==document;)Le=Le.parentNode;Le!==document.body&&Le!==document.documentElement?(Le===document&&(Le=Ye()),n.top+=Le.scrollTop,n.left+=Le.scrollLeft):Le=Ye(),Wn=ai(Le)}ie=X.cloneNode(!0),me(ie,t.ghostClass,!1),me(ie,t.fallbackClass,!0),me(ie,t.dragClass,!0),ee(ie,"transition",""),ee(ie,"transform",""),ee(ie,"box-sizing","border-box"),ee(ie,"margin",0),ee(ie,"top",n.top),ee(ie,"left",n.left),ee(ie,"width",n.width),ee(ie,"height",n.height),ee(ie,"opacity","0.8"),ee(ie,"position",vn?"absolute":"fixed"),ee(ie,"zIndex","100000"),ee(ie,"pointerEvents","none"),te.ghost=ie,r.appendChild(ie),ee(ie,"transform-origin",fi/parseInt(ie.style.width)*100+"% "+ci/parseInt(ie.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,o=r.dataTransfer,i=t.options;if(Me("dragStart",this,{evt:r}),te.eventCanceled){this._onDrop();return}Me("setupClone",this),te.eventCanceled||(Se=Bn(X),Se.draggable=!1,Se.style["will-change"]="",this._hideClone(),me(Se,this.options.chosenClass,!1),te.clone=Se),t.cloneId=mn(function(){Me("clone",t),!te.eventCanceled&&(t.options.removeCloneOnHide||ge.insertBefore(Se,X),t._hideClone(),$e({sortable:t,name:"clone"}))}),!n&&me(X,i.dragClass,!0),n?(un=!0,t._loopId=setInterval(t._emulateDragOver,50)):(ae(document,"mouseup",t._onDrop),ae(document,"touchend",t._onDrop),ae(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,X)),fe(document,"drop",t),ee(X,"transform","translateZ(0)")),yt=!0,t._dragStartId=mn(t._dragStarted.bind(t,n,r)),fe(document,"selectstart",t),$t=!0,Mn&&ee(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,s,d=this.options,c=d.group,h=te.active,f=sn===c,l=d.sort,a=ke||h,u,v=this,p=!1;if(Gn)return;function b(U,G){Me(U,v,nt({evt:r,isOwner:f,axis:u?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:l,fromSortable:a,target:t,completed:y,onMove:function(R,E){return Kn(ge,n,X,o,R,_e(R),r,E)},changed:_},G))}function m(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==a&&a.captureAnimationState()}function y(U){return b("dragOverCompleted",{insertion:U}),U&&(f?h._hideClone():h._showClone(v),v!==a&&(me(X,ke?ke.options.ghostClass:h.options.ghostClass,!1),me(X,d.ghostClass,!0)),ke!==v&&v!==te.active?ke=v:v===te.active&&ke&&(ke=null),a===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==a&&(a.animateAll(),a._ignoreWhileAnimating=null)),(t===X&&!X.animated||t===n&&!t.animated)&&(bt=null),!d.dragoverBubble&&!r.rootEl&&t!==document&&(X.parentNode[Pe]._isOutsideThisEl(r.target),!U&&pt(r)),!d.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function _(){je=Oe(X),ot=Oe(X,d.draggable),$e({sortable:v,name:"change",toEl:n,newIndex:je,newDraggableIndex:ot,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=Ge(t,d.draggable,n,!0),b("dragOver"),te.eventCanceled)return p;if(X.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return y(!1);if(un=!1,h&&!d.disabled&&(f?l||(s=!ge.contains(X)):ke===this||(this.lastPutMode=sn.checkPull(this,h,X,r))&&c.checkPut(this,h,X,r))){if(u=this._getDirection(r,t)==="vertical",o=_e(X),b("dragOverValid"),te.eventCanceled)return p;if(s)return Ee=ge,m(),this._hideClone(),b("revert"),te.eventCanceled||(dt?ge.insertBefore(X,dt):ge.appendChild(X)),y(!0);var g=Fn(n,d.draggable);if(!g||za(r,u,this)&&!g.animated){if(g===X)return y(!1);if(g&&n===r.target&&(t=g),t&&(i=_e(t)),Kn(ge,n,X,o,t,i,r,!!t)!==!1)return m(),n.appendChild(X),Ee=n,_(),y(!0)}else if(t.parentNode===n){i=_e(t);var O=0,k,T=X.parentNode!==n,A=!ja(X.animated&&X.toRect||o,t.animated&&t.toRect||i,u),P=u?"top":"left",x=oi(t,"top","top")||oi(X,"top","top"),S=x?x.scrollTop:void 0;bt!==t&&(k=i[P],Mt=!1,cn=!A&&d.invertSwap||T),O=Wa(r,t,i,u,A?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,cn,bt===t);var w;if(O!==0){var I=Oe(X);do I-=O,w=Ee.children[I];while(w&&(ee(w,"display")==="none"||w===ie))}if(O===0||w===t)return y(!1);bt=t,Rt=O;var D=t.nextElementSibling,$=!1;$=O===1;var B=Kn(ge,n,X,o,t,i,r,$);if(B!==!1)return(B===1||B===-1)&&($=B===1),Gn=!0,setTimeout(Ha,30),m(),$&&!D?n.appendChild(X):t.parentNode.insertBefore(X,$?D:t),x&&si(x,0,S-x.scrollTop),Ee=X.parentNode,k!==void 0&&!cn&&(dn=Math.abs(k-_e(t)[P])),_(),y(!0)}if(n.contains(X))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ae(document,"mousemove",this._onTouchMove),ae(document,"touchmove",this._onTouchMove),ae(document,"pointermove",this._onTouchMove),ae(document,"dragover",pt),ae(document,"mousemove",pt),ae(document,"touchmove",pt)},_offUpEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._onDrop),ae(r,"touchend",this._onDrop),ae(r,"pointerup",this._onDrop),ae(r,"touchcancel",this._onDrop),ae(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(je=Oe(X),ot=Oe(X,t.draggable),Me("drop",this,{evt:r}),Ee=X&&X.parentNode,je=Oe(X),ot=Oe(X,t.draggable),te.eventCanceled){this._nulling();return}yt=!1,cn=!1,Mt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yn(this.cloneId),Yn(this._dragStartId),this.nativeDraggable&&(ae(document,"drop",this),ae(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Mn&&ee(document.body,"user-select",""),ee(X,"transform",""),r&&($t&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),ie&&ie.parentNode&&ie.parentNode.removeChild(ie),(ge===Ee||ke&&ke.lastPutMode!=="clone")&&Se&&Se.parentNode&&Se.parentNode.removeChild(Se),X&&(this.nativeDraggable&&ae(X,"dragend",this),Vn(X),X.style["will-change"]="",$t&&!yt&&me(X,ke?ke.options.ghostClass:this.options.ghostClass,!1),me(X,this.options.chosenClass,!1),$e({sortable:this,name:"unchoose",toEl:Ee,newIndex:null,newDraggableIndex:null,originalEvent:r}),ge!==Ee?(je>=0&&($e({rootEl:Ee,name:"add",toEl:Ee,fromEl:ge,originalEvent:r}),$e({sortable:this,name:"remove",toEl:Ee,originalEvent:r}),$e({rootEl:Ee,name:"sort",toEl:Ee,fromEl:ge,originalEvent:r}),$e({sortable:this,name:"sort",toEl:Ee,originalEvent:r})),ke&&ke.save()):je!==gt&&je>=0&&($e({sortable:this,name:"update",toEl:Ee,originalEvent:r}),$e({sortable:this,name:"sort",toEl:Ee,originalEvent:r})),te.active&&((je==null||je===-1)&&(je=gt,ot=Dt),$e({sortable:this,name:"end",toEl:Ee,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Me("nulling",this),ge=X=Ee=ie=dt=Se=ln=it=ht=Ke=$t=je=ot=gt=Dt=bt=Rt=ke=sn=te.dragged=te.ghost=te.clone=te.active=null,hn.forEach(function(r){r.checked=!0}),hn.length=Hn=zn=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":X&&(this._onDragOver(r),Ua(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,o=0,i=t.length,s=this.options;o<i;o++)n=t[o],Ge(n,s.draggable,this.el,!1)&&r.push(n.getAttribute(s.dataIdAttr)||Ka(n));return r},sort:function(r){var n={},t=this.el;this.toArray().forEach(function(o,i){var s=t.children[i];Ge(s,this.options.draggable,t,!1)&&(n[o]=s)},this),r.forEach(function(o){n[o]&&(t.removeChild(n[o]),t.appendChild(n[o]))})},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return Ge(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var o=Pt.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&vi(t)},destroy:function(){Me("destroy",this);var r=this.el;r[Pe]=null,ae(r,"mousedown",this._onTapStart),ae(r,"touchstart",this._onTapStart),ae(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(ae(r,"dragover",this),ae(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),fn.splice(fn.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!it){if(Me("hideClone",this),te.eventCanceled)return;ee(Se,"display","none"),this.options.removeCloneOnHide&&Se.parentNode&&Se.parentNode.removeChild(Se),it=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(it){if(Me("showClone",this),te.eventCanceled)return;ge.contains(X)&&!this.options.group.revertClone?ge.insertBefore(Se,X):dt?ge.insertBefore(Se,dt):ge.appendChild(Se),this.options.group.revertClone&&this.animate(X,Se),ee(Se,"display",""),it=!1}}};function Ua(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Kn(e,r,n,t,o,i,s,d){var c,h=e[Pe],f=h.options.onMove,l;return window.CustomEvent&&!Qe&&!kt?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=e,c.dragged=n,c.draggedRect=t,c.related=o||r,c.relatedRect=i||_e(r),c.willInsertAfter=d,c.originalEvent=s,e.dispatchEvent(c),f&&(l=f.call(h,c,s)),l}function Vn(e){e.draggable=!1}function Ha(){Gn=!1}function za(e,r,n){var t=_e(Fn(n.el,n.options.draggable)),o=10;return r?e.clientX>t.right+o||e.clientX<=t.right&&e.clientY>t.bottom&&e.clientX>=t.left:e.clientX>t.right&&e.clientY>t.top||e.clientX<=t.right&&e.clientY>t.bottom+o}function Wa(e,r,n,t,o,i,s,d){var c=t?e.clientY:e.clientX,h=t?n.height:n.width,f=t?n.top:n.left,l=t?n.bottom:n.right,a=!1;if(!s){if(d&&dn<h*o){if(!Mt&&(Rt===1?c>f+h*i/2:c<l-h*i/2)&&(Mt=!0),Mt)a=!0;else if(Rt===1?c<f+dn:c>l-dn)return-Rt}else if(c>f+h*(1-o)/2&&c<l-h*(1-o)/2)return Ga(r)}return a=a||s,a&&(c<f+h*i/2||c>l-h*i/2)?c>f+h/2?1:-1:0}function Ga(e){return Oe(X)<Oe(e)?1:-1}function Ka(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function Va(e){hn.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&hn.push(t)}}function mn(e){return setTimeout(e,0)}function Yn(e){return clearTimeout(e)}pn&&fe(document,"touchmove",function(e){(te.active||yt)&&e.cancelable&&e.preventDefault()}),te.utils={on:fe,off:ae,css:ee,find:ii,is:function(r,n){return!!Ge(r,n,r,!1)},extend:La,throttle:li,closest:Ge,toggleClass:me,clone:Bn,index:Oe,nextTick:mn,cancelNextTick:Yn,detectDirection:pi,getChild:an},te.get=function(e){return e[Pe]},te.mount=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(te.utils=nt({},te.utils,t.utils)),Pt.mount(t)})},te.create=function(e,r){return new te(e,r)},te.version=ka;var xe=[],Ft,Xn,Zn=!1,Jn,Qn,gn,jt;function Ya(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return e.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?fe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?fe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?fe(document,"touchmove",this._handleFallbackAutoScroll):fe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ae(document,"dragover",this._handleAutoScroll):(ae(document,"pointermove",this._handleFallbackAutoScroll),ae(document,"touchmove",this._handleFallbackAutoScroll),ae(document,"mousemove",this._handleFallbackAutoScroll)),yi(),yn(),Da()},nulling:function(){gn=Xn=Ft=Zn=jt=Jn=Qn=null,xe.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,d=document.elementFromPoint(i,s);if(gn=n,t||kt||Qe||Mn){er(n,this.options,d,t);var c=rt(d,!0);Zn&&(!jt||i!==Jn||s!==Qn)&&(jt&&yi(),jt=setInterval(function(){var h=rt(document.elementFromPoint(i,s),!0);h!==c&&(c=h,yn()),er(n,o.options,h,t)},10),Jn=i,Qn=s)}else{if(!this.options.bubbleScroll||rt(d,!0)===Ye()){yn();return}er(n,this.options,rt(d,!1),!1)}}},Ue(e,{pluginName:"scroll",initializeByDefault:!0})}function yn(){xe.forEach(function(e){clearInterval(e.pid)}),xe=[]}function yi(){clearInterval(jt)}var er=li(function(e,r,n,t){if(!!r.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=r.scrollSensitivity,d=r.scrollSpeed,c=Ye(),h=!1,f;Xn!==n&&(Xn=n,yn(),Ft=r.scroll,f=r.scrollFn,Ft===!0&&(Ft=rt(n,!0)));var l=0,a=Ft;do{var u=a,v=_e(u),p=v.top,b=v.bottom,m=v.left,y=v.right,_=v.width,g=v.height,O=void 0,k=void 0,T=u.scrollWidth,A=u.scrollHeight,P=ee(u),x=u.scrollLeft,S=u.scrollTop;u===c?(O=_<T&&(P.overflowX==="auto"||P.overflowX==="scroll"||P.overflowX==="visible"),k=g<A&&(P.overflowY==="auto"||P.overflowY==="scroll"||P.overflowY==="visible")):(O=_<T&&(P.overflowX==="auto"||P.overflowX==="scroll"),k=g<A&&(P.overflowY==="auto"||P.overflowY==="scroll"));var w=O&&(Math.abs(y-o)<=s&&x+_<T)-(Math.abs(m-o)<=s&&!!x),I=k&&(Math.abs(b-i)<=s&&S+g<A)-(Math.abs(p-i)<=s&&!!S);if(!xe[l])for(var D=0;D<=l;D++)xe[D]||(xe[D]={});(xe[l].vx!=w||xe[l].vy!=I||xe[l].el!==u)&&(xe[l].el=u,xe[l].vx=w,xe[l].vy=I,clearInterval(xe[l].pid),(w!=0||I!=0)&&(h=!0,xe[l].pid=setInterval(function(){t&&this.layer===0&&te.active._onTouchMove(gn);var $=xe[this.layer].vy?xe[this.layer].vy*d:0,B=xe[this.layer].vx?xe[this.layer].vx*d:0;typeof f=="function"&&f.call(te.dragged.parentNode[Pe],B,$,e,gn,xe[this.layer].el)!=="continue"||si(xe[this.layer].el,B,$)}.bind({layer:l}),24))),l++}while(r.bubbleScroll&&a!==c&&(a=rt(a,!1)));Zn=h}},30),bi=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,s=r.dispatchSortableEvent,d=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var h=t||i;d();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,l=document.elementFromPoint(f.clientX,f.clientY);c(),h&&!h.el.contains(l)&&(s("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function tr(){}tr.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=an(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:bi},Ue(tr,{pluginName:"revertOnSpill"});function nr(){}nr.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,o=t||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:bi},Ue(nr,{pluginName:"removeOnSpill"});var He;function Xa(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var t=n.dragEl;He=t},dragOverValid:function(n){var t=n.completed,o=n.target,i=n.onMove,s=n.activeSortable,d=n.changed,c=n.cancel;if(!!s.options.swap){var h=this.sortable.el,f=this.options;if(o&&o!==h){var l=He;i(o)!==!1?(me(o,f.swapClass,!0),He=o):He=null,l&&l!==He&&me(l,f.swapClass,!1)}d(),t(!0),c()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,s=o||this.sortable,d=this.options;He&&me(He,d.swapClass,!1),He&&(d.swap||o&&o.options.swap)&&i!==He&&(s.captureAnimationState(),s!==t&&t.captureAnimationState(),Za(i,He),s.animateAll(),s!==t&&t.animateAll())},nulling:function(){He=null}},Ue(e,{pluginName:"swap",eventProperties:function(){return{swapItem:He}}})}function Za(e,r){var n=e.parentNode,t=r.parentNode,o,i;!n||!t||n.isEqualNode(r)||t.isEqualNode(e)||(o=Oe(e),i=Oe(r),n.isEqualNode(t)&&o<i&&i++,n.insertBefore(r,n.children[o]),t.insertBefore(e,t.children[i]))}var re=[],Be=[],Bt,Ve,qt=!1,qe=!1,_t=!1,pe,Ut,bn;function Ja(){function e(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?fe(document,"pointerup",this._deselectMultiDrag):(fe(document,"mouseup",this._deselectMultiDrag),fe(document,"touchend",this._deselectMultiDrag)),fe(document,"keydown",this._checkKeyDown),fe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,i){var s="";re.length&&Ve===r?re.forEach(function(d,c){s+=(c?", ":"")+d.textContent}):s=i.textContent,o.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;pe=t},delayEnded:function(){this.isMultiDrag=~re.indexOf(pe)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(!!this.isMultiDrag){for(var i=0;i<re.length;i++)Be.push(Bn(re[i])),Be[i].sortableIndex=re[i].sortableIndex,Be[i].draggable=!1,Be[i].style["will-change"]="",me(Be[i],this.options.selectedClass,!1),re[i]===pe&&me(Be[i],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,i=n.dispatchSortableEvent,s=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||re.length&&Ve===t&&(_i(!0,o),i("clone"),s())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(_i(!1,o),Be.forEach(function(s){ee(s,"display","")}),t(),bn=!1,i())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,i=n.cancel;!this.isMultiDrag||(Be.forEach(function(s){ee(s,"display","none"),t.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),o(),bn=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ve&&Ve.multiDrag._deselectMultiDrag(),re.forEach(function(t){t.sortableIndex=Oe(t)}),re=re.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),_t=!0},dragStarted:function(n){var t=this,o=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){re.forEach(function(s){s!==pe&&ee(s,"position","absolute")});var i=_e(pe,!1,!0,!0);re.forEach(function(s){s!==pe&&ui(s,i)}),qe=!0,qt=!0}o.animateAll(function(){qe=!1,qt=!1,t.options.animation&&re.forEach(function(s){qn(s)}),t.options.sort&&_n()})}},dragOver:function(n){var t=n.target,o=n.completed,i=n.cancel;qe&&~re.indexOf(t)&&(o(!1),i())},revert:function(n){var t=n.fromSortable,o=n.rootEl,i=n.sortable,s=n.dragRect;re.length>1&&(re.forEach(function(d){i.addAnimationState({target:d,rect:qe?_e(d):s}),qn(d),d.fromRect=s,t.removeAnimationState(d)}),qe=!1,Qa(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,s=n.activeSortable,d=n.parentEl,c=n.putSortable,h=this.options;if(i){if(o&&s._hideClone(),qt=!1,h.animation&&re.length>1&&(qe||!o&&!s.options.sort&&!c)){var f=_e(pe,!1,!0,!0);re.forEach(function(a){a!==pe&&(ui(a,f),d.appendChild(a))}),qe=!0}if(!o)if(qe||_n(),re.length>1){var l=bn;s._showClone(t),s.options.animation&&!bn&&l&&Be.forEach(function(a){s.addAnimationState({target:a,rect:Ut}),a.fromRect=Ut,a.thisAnimationDuration=null})}else s._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(re.forEach(function(d){d.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){Ut=Ue({},t);var s=ct(pe,!0);Ut.top-=s.f,Ut.left-=s.e}},dragOverAnimationComplete:function(){qe&&(qe=!1,_n())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,s=n.sortable,d=n.dispatchSortableEvent,c=n.oldIndex,h=n.putSortable,f=h||this.sortable;if(!!t){var l=this.options,a=i.children;if(!_t)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),me(pe,l.selectedClass,!~re.indexOf(pe)),~re.indexOf(pe))re.splice(re.indexOf(pe),1),Bt=null,Lt({sortable:s,rootEl:o,name:"deselect",targetEl:pe,originalEvt:t});else{if(re.push(pe),Lt({sortable:s,rootEl:o,name:"select",targetEl:pe,originalEvt:t}),t.shiftKey&&Bt&&s.el.contains(Bt)){var u=Oe(Bt),v=Oe(pe);if(~u&&~v&&u!==v){var p,b;for(v>u?(b=u,p=v):(b=v,p=u+1);b<p;b++)~re.indexOf(a[b])||(me(a[b],l.selectedClass,!0),re.push(a[b]),Lt({sortable:s,rootEl:o,name:"select",targetEl:a[b],originalEvt:t}))}}else Bt=pe;Ve=f}if(_t&&this.isMultiDrag){if((i[Pe].options.sort||i!==o)&&re.length>1){var m=_e(pe),y=Oe(pe,":not(."+this.options.selectedClass+")");if(!qt&&l.animation&&(pe.thisAnimationDuration=null),f.captureAnimationState(),!qt&&(l.animation&&(pe.fromRect=m,re.forEach(function(g){if(g.thisAnimationDuration=null,g!==pe){var O=qe?_e(g):m;g.fromRect=O,f.addAnimationState({target:g,rect:O})}})),_n(),re.forEach(function(g){a[y]?i.insertBefore(g,a[y]):i.appendChild(g),y++}),c===Oe(pe))){var _=!1;re.forEach(function(g){if(g.sortableIndex!==Oe(g)){_=!0;return}}),_&&d("update")}re.forEach(function(g){qn(g)}),f.animateAll()}Ve=f}(o===i||h&&h.lastPutMode!=="clone")&&Be.forEach(function(g){g.parentNode&&g.parentNode.removeChild(g)})}},nullingGlobal:function(){this.isMultiDrag=_t=!1,Be.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ae(document,"pointerup",this._deselectMultiDrag),ae(document,"mouseup",this._deselectMultiDrag),ae(document,"touchend",this._deselectMultiDrag),ae(document,"keydown",this._checkKeyDown),ae(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof _t!="undefined"&&_t)&&Ve===this.sortable&&!(n&&Ge(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;re.length;){var t=re[0];me(t,this.options.selectedClass,!1),re.shift(),Lt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ue(e,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[Pe];!t||!t.options.multiDrag||~re.indexOf(n)||(Ve&&Ve!==t&&(Ve.multiDrag._deselectMultiDrag(),Ve=t),me(n,t.options.selectedClass,!0),re.push(n))},deselect:function(n){var t=n.parentNode[Pe],o=re.indexOf(n);!t||!t.options.multiDrag||!~o||(me(n,t.options.selectedClass,!1),re.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return re.forEach(function(i){t.push({multiDragElement:i,index:i.sortableIndex});var s;qe&&i!==pe?s=-1:qe?s=Oe(i,":not(."+n.options.selectedClass+")"):s=Oe(i),o.push({multiDragElement:i,index:s})}),{items:wa(re),clones:[].concat(Be),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Qa(e,r){re.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function _i(e,r){Be.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function _n(){re.forEach(function(e){e!==pe&&e.parentNode&&e.parentNode.removeChild(e)})}te.mount(new Ya),te.mount(nr,tr);var el=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:te,MultiDrag:Ja,Sortable:te,Swap:Xa}),tl=Fr(el);(function(e,r){(function(t,o){e.exports=o(tl)})(typeof self!="undefined"?self:Ct,function(n){return function(t){var o={};function i(s){if(o[s])return o[s].exports;var d=o[s]={i:s,l:!1,exports:{}};return t[s].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=t,i.c=o,i.d=function(s,d,c){i.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},i.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,d){if(d&1&&(s=i(s)),d&8||d&4&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var h in s)i.d(c,h,function(f){return s[f]}.bind(null,h));return c},i.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(d,"a",d),d},i.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var s=i("2d00"),d=i("5ca1"),c=i("2aba"),h=i("32e9"),f=i("84f2"),l=i("41a0"),a=i("7f20"),u=i("38fd"),v=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),b="@@iterator",m="keys",y="values",_=function(){return this};t.exports=function(g,O,k,T,A,P,x){l(k,O,T);var S=function(N){if(!p&&N in $)return $[N];switch(N){case m:return function(){return new k(this,N)};case y:return function(){return new k(this,N)}}return function(){return new k(this,N)}},w=O+" Iterator",I=A==y,D=!1,$=g.prototype,B=$[v]||$[b]||A&&$[A],U=B||S(A),G=A?I?S("entries"):U:void 0,q=O=="Array"&&$.entries||B,R,E,C;if(q&&(C=u(q.call(new g)),C!==Object.prototype&&C.next&&(a(C,w,!0),!s&&typeof C[v]!="function"&&h(C,v,_))),I&&B&&B.name!==y&&(D=!0,U=function(){return B.call(this)}),(!s||x)&&(p||D||!$[v])&&h($,v,U),f[O]=U,f[w]=_,A)if(R={values:I?U:S(y),keys:P?U:S(m),entries:G},x)for(E in R)E in $||c($,E,R[E]);else d(d.P+d.F*(p||D),O,R);return R}},"02f4":function(t,o,i){var s=i("4588"),d=i("be13");t.exports=function(c){return function(h,f){var l=String(d(h)),a=s(f),u=l.length,v,p;return a<0||a>=u?c?"":void 0:(v=l.charCodeAt(a),v<55296||v>56319||a+1===u||(p=l.charCodeAt(a+1))<56320||p>57343?c?l.charAt(a):v:c?l.slice(a,a+2):(v-55296<<10)+(p-56320)+65536)}}},"0390":function(t,o,i){var s=i("02f4")(!0);t.exports=function(d,c,h){return c+(h?s(d,c).length:1)}},"0bfb":function(t,o,i){var s=i("cb7c");t.exports=function(){var d=s(this),c="";return d.global&&(c+="g"),d.ignoreCase&&(c+="i"),d.multiline&&(c+="m"),d.unicode&&(c+="u"),d.sticky&&(c+="y"),c}},"0d58":function(t,o,i){var s=i("ce10"),d=i("e11e");t.exports=Object.keys||function(h){return s(h,d)}},"1495":function(t,o,i){var s=i("86cc"),d=i("cb7c"),c=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(f,l){d(f);for(var a=c(l),u=a.length,v=0,p;u>v;)s.f(f,p=a[v++],l[p]);return f}},"214f":function(t,o,i){i("b0c5");var s=i("2aba"),d=i("32e9"),c=i("79e5"),h=i("be13"),f=i("2b4c"),l=i("520a"),a=f("species"),u=!c(function(){var p=/./;return p.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(p,"$<a>")!=="7"}),v=function(){var p=/(?:)/,b=p.exec;p.exec=function(){return b.apply(this,arguments)};var m="ab".split(p);return m.length===2&&m[0]==="a"&&m[1]==="b"}();t.exports=function(p,b,m){var y=f(p),_=!c(function(){var P={};return P[y]=function(){return 7},""[p](P)!=7}),g=_?!c(function(){var P=!1,x=/a/;return x.exec=function(){return P=!0,null},p==="split"&&(x.constructor={},x.constructor[a]=function(){return x}),x[y](""),!P}):void 0;if(!_||!g||p==="replace"&&!u||p==="split"&&!v){var O=/./[y],k=m(h,y,""[p],function(x,S,w,I,D){return S.exec===l?_&&!D?{done:!0,value:O.call(S,w,I)}:{done:!0,value:x.call(w,S,I)}:{done:!1}}),T=k[0],A=k[1];s(String.prototype,p,T),d(RegExp.prototype,y,b==2?function(P,x){return A.call(P,this,x)}:function(P){return A.call(P,this)})}}},"230e":function(t,o,i){var s=i("d3f4"),d=i("7726").document,c=s(d)&&s(d.createElement);t.exports=function(h){return c?d.createElement(h):{}}},"23c6":function(t,o,i){var s=i("2d95"),d=i("2b4c")("toStringTag"),c=s(function(){return arguments}())=="Arguments",h=function(f,l){try{return f[l]}catch{}};t.exports=function(f){var l,a,u;return f===void 0?"Undefined":f===null?"Null":typeof(a=h(l=Object(f),d))=="string"?a:c?s(l):(u=s(l))=="Object"&&typeof l.callee=="function"?"Arguments":u}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var s=i("7726"),d=i("32e9"),c=i("69a8"),h=i("ca5a")("src"),f=i("fa5b"),l="toString",a=(""+f).split(l);i("8378").inspectSource=function(u){return f.call(u)},(t.exports=function(u,v,p,b){var m=typeof p=="function";m&&(c(p,"name")||d(p,"name",v)),u[v]!==p&&(m&&(c(p,h)||d(p,h,u[v]?""+u[v]:a.join(String(v)))),u===s?u[v]=p:b?u[v]?u[v]=p:d(u,v,p):(delete u[v],d(u,v,p)))})(Function.prototype,l,function(){return typeof this=="function"&&this[h]||f.call(this)})},"2aeb":function(t,o,i){var s=i("cb7c"),d=i("1495"),c=i("e11e"),h=i("613b")("IE_PROTO"),f=function(){},l="prototype",a=function(){var u=i("230e")("iframe"),v=c.length,p="<",b=">",m;for(u.style.display="none",i("fab2").appendChild(u),u.src="javascript:",m=u.contentWindow.document,m.open(),m.write(p+"script"+b+"document.F=Object"+p+"/script"+b),m.close(),a=m.F;v--;)delete a[l][c[v]];return a()};t.exports=Object.create||function(v,p){var b;return v!==null?(f[l]=s(v),b=new f,f[l]=null,b[h]=v):b=a(),p===void 0?b:d(b,p)}},"2b4c":function(t,o,i){var s=i("5537")("wks"),d=i("ca5a"),c=i("7726").Symbol,h=typeof c=="function",f=t.exports=function(l){return s[l]||(s[l]=h&&c[l]||(h?c:d)("Symbol."+l))};f.store=s},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var i={}.toString;t.exports=function(s){return i.call(s).slice(8,-1)}},"2fdb":function(t,o,i){var s=i("5ca1"),d=i("d2c8"),c="includes";s(s.P+s.F*i("5147")(c),"String",{includes:function(f){return!!~d(this,f,c).indexOf(f,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var s=i("86cc"),d=i("4630");t.exports=i("9e1e")?function(c,h,f){return s.f(c,h,d(1,f))}:function(c,h,f){return c[h]=f,c}},"38fd":function(t,o,i){var s=i("69a8"),d=i("4bf8"),c=i("613b")("IE_PROTO"),h=Object.prototype;t.exports=Object.getPrototypeOf||function(f){return f=d(f),s(f,c)?f[c]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?h:null}},"41a0":function(t,o,i){var s=i("2aeb"),d=i("4630"),c=i("7f20"),h={};i("32e9")(h,i("2b4c")("iterator"),function(){return this}),t.exports=function(f,l,a){f.prototype=s(h,{next:d(1,a)}),c(f,l+" Iterator")}},"456d":function(t,o,i){var s=i("4bf8"),d=i("0d58");i("5eda")("keys",function(){return function(h){return d(s(h))}})},"4588":function(t,o){var i=Math.ceil,s=Math.floor;t.exports=function(d){return isNaN(d=+d)?0:(d>0?s:i)(d)}},"4630":function(t,o){t.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"4bf8":function(t,o,i){var s=i("be13");t.exports=function(d){return Object(s(d))}},"5147":function(t,o,i){var s=i("2b4c")("match");t.exports=function(d){var c=/./;try{"/./"[d](c)}catch{try{return c[s]=!1,!"/./"[d](c)}catch{}}return!0}},"520a":function(t,o,i){var s=i("0bfb"),d=RegExp.prototype.exec,c=String.prototype.replace,h=d,f="lastIndex",l=function(){var v=/a/,p=/b*/g;return d.call(v,"a"),d.call(p,"a"),v[f]!==0||p[f]!==0}(),a=/()??/.exec("")[1]!==void 0,u=l||a;u&&(h=function(p){var b=this,m,y,_,g;return a&&(y=new RegExp("^"+b.source+"$(?!\\s)",s.call(b))),l&&(m=b[f]),_=d.call(b,p),l&&_&&(b[f]=b.global?_.index+_[0].length:m),a&&_&&_.length>1&&c.call(_[0],y,function(){for(g=1;g<arguments.length-2;g++)arguments[g]===void 0&&(_[g]=void 0)}),_}),t.exports=h},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var s=i("8378"),d=i("7726"),c="__core-js_shared__",h=d[c]||(d[c]={});(t.exports=function(f,l){return h[f]||(h[f]=l!==void 0?l:{})})("versions",[]).push({version:s.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,i){var s=i("7726"),d=i("8378"),c=i("32e9"),h=i("2aba"),f=i("9b43"),l="prototype",a=function(u,v,p){var b=u&a.F,m=u&a.G,y=u&a.S,_=u&a.P,g=u&a.B,O=m?s:y?s[v]||(s[v]={}):(s[v]||{})[l],k=m?d:d[v]||(d[v]={}),T=k[l]||(k[l]={}),A,P,x,S;m&&(p=v);for(A in p)P=!b&&O&&O[A]!==void 0,x=(P?O:p)[A],S=g&&P?f(x,s):_&&typeof x=="function"?f(Function.call,x):x,O&&h(O,A,x,u&a.U),k[A]!=x&&c(k,A,S),_&&T[A]!=x&&(T[A]=x)};s.core=d,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"5eda":function(t,o,i){var s=i("5ca1"),d=i("8378"),c=i("79e5");t.exports=function(h,f){var l=(d.Object||{})[h]||Object[h],a={};a[h]=f(l),s(s.S+s.F*c(function(){l(1)}),"Object",a)}},"5f1b":function(t,o,i){var s=i("23c6"),d=RegExp.prototype.exec;t.exports=function(c,h){var f=c.exec;if(typeof f=="function"){var l=f.call(c,h);if(typeof l!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if(s(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return d.call(c,h)}},"613b":function(t,o,i){var s=i("5537")("keys"),d=i("ca5a");t.exports=function(c){return s[c]||(s[c]=d(c))}},"626a":function(t,o,i){var s=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return s(d)=="String"?d.split(""):Object(d)}},"6762":function(t,o,i){var s=i("5ca1"),d=i("c366")(!0);s(s.P,"Array",{includes:function(h){return d(this,h,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var s=i("626a"),d=i("be13");t.exports=function(c){return s(d(c))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(s,d){return i.call(s,d)}},"6a99":function(t,o,i){var s=i("d3f4");t.exports=function(d,c){if(!s(d))return d;var h,f;if(c&&typeof(h=d.toString)=="function"&&!s(f=h.call(d))||typeof(h=d.valueOf)=="function"&&!s(f=h.call(d))||!c&&typeof(h=d.toString)=="function"&&!s(f=h.call(d)))return f;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var s=i("0d58"),d=i("2621"),c=i("52a7"),h=i("4bf8"),f=i("626a"),l=Object.assign;t.exports=!l||i("79e5")(function(){var a={},u={},v=Symbol(),p="abcdefghijklmnopqrst";return a[v]=7,p.split("").forEach(function(b){u[b]=b}),l({},a)[v]!=7||Object.keys(l({},u)).join("")!=p})?function(u,v){for(var p=h(u),b=arguments.length,m=1,y=d.f,_=c.f;b>m;)for(var g=f(arguments[m++]),O=y?s(g).concat(y(g)):s(g),k=O.length,T=0,A;k>T;)_.call(g,A=O[T++])&&(p[A]=g[A]);return p}:l},"7726":function(t,o){var i=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(t,o,i){var s=i("4588"),d=Math.max,c=Math.min;t.exports=function(h,f){return h=s(h),h<0?d(h+f,0):c(h,f)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var s=i("86cc").f,d=i("69a8"),c=i("2b4c")("toStringTag");t.exports=function(h,f,l){h&&!d(h=l?h:h.prototype,c)&&s(h,c,{configurable:!0,value:f})}},"8378":function(t,o){var i=t.exports={version:"2.6.5"};typeof __e=="number"&&(__e=i)},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,i){var s=i("cb7c"),d=i("c69a"),c=i("6a99"),h=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(l,a,u){if(s(l),a=c(a,!0),s(u),d)try{return h(l,a,u)}catch{}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(l[a]=u.value),l}},"9b43":function(t,o,i){var s=i("d8e8");t.exports=function(d,c,h){if(s(d),c===void 0)return d;switch(h){case 1:return function(f){return d.call(c,f)};case 2:return function(f,l){return d.call(c,f,l)};case 3:return function(f,l,a){return d.call(c,f,l,a)}}return function(){return d.apply(c,arguments)}}},"9c6c":function(t,o,i){var s=i("2b4c")("unscopables"),d=Array.prototype;d[s]==null&&i("32e9")(d,s,{}),t.exports=function(c){d[s][c]=!0}},"9def":function(t,o,i){var s=i("4588"),d=Math.min;t.exports=function(c){return c>0?d(s(c),9007199254740991):0}},"9e1e":function(t,o,i){t.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(t,o){t.exports=n},a481:function(t,o,i){var s=i("cb7c"),d=i("4bf8"),c=i("9def"),h=i("4588"),f=i("0390"),l=i("5f1b"),a=Math.max,u=Math.min,v=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,m=function(y){return y===void 0?y:String(y)};i("214f")("replace",2,function(y,_,g,O){return[function(A,P){var x=y(this),S=A==null?void 0:A[_];return S!==void 0?S.call(A,x,P):g.call(String(x),A,P)},function(T,A){var P=O(g,T,this,A);if(P.done)return P.value;var x=s(T),S=String(this),w=typeof A=="function";w||(A=String(A));var I=x.global;if(I){var D=x.unicode;x.lastIndex=0}for(var $=[];;){var B=l(x,S);if(B===null||($.push(B),!I))break;var U=String(B[0]);U===""&&(x.lastIndex=f(S,c(x.lastIndex),D))}for(var G="",q=0,R=0;R<$.length;R++){B=$[R];for(var E=String(B[0]),C=a(u(h(B.index),S.length),0),N=[],F=1;F<B.length;F++)N.push(m(B[F]));var j=B.groups;if(w){var L=[E].concat(N,C,S);j!==void 0&&L.push(j);var M=String(A.apply(void 0,L))}else M=k(E,S,C,N,j,A);C>=q&&(G+=S.slice(q,C)+M,q=C+E.length)}return G+S.slice(q)}];function k(T,A,P,x,S,w){var I=P+T.length,D=x.length,$=b;return S!==void 0&&(S=d(S),$=p),g.call(w,$,function(B,U){var G;switch(U.charAt(0)){case"$":return"$";case"&":return T;case"`":return A.slice(0,P);case"'":return A.slice(I);case"<":G=S[U.slice(1,-1)];break;default:var q=+U;if(q===0)return B;if(q>D){var R=v(q/10);return R===0?B:R<=D?x[R-1]===void 0?U.charAt(1):x[R-1]+U.charAt(1):B}G=x[q-1]}return G===void 0?"":G})}})},aae3:function(t,o,i){var s=i("d3f4"),d=i("2d95"),c=i("2b4c")("match");t.exports=function(h){var f;return s(h)&&((f=h[c])!==void 0?!!f:d(h)=="RegExp")}},ac6a:function(t,o,i){for(var s=i("cadf"),d=i("0d58"),c=i("2aba"),h=i("7726"),f=i("32e9"),l=i("84f2"),a=i("2b4c"),u=a("iterator"),v=a("toStringTag"),p=l.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=d(b),y=0;y<m.length;y++){var _=m[y],g=b[_],O=h[_],k=O&&O.prototype,T;if(k&&(k[u]||f(k,u,p),k[v]||f(k,v,_),l[_]=p,g))for(T in s)k[T]||c(k,T,s[T],!0)}},b0c5:function(t,o,i){var s=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(t,o){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(t,o,i){var s=i("6821"),d=i("9def"),c=i("77f1");t.exports=function(h){return function(f,l,a){var u=s(f),v=d(u.length),p=c(a,v),b;if(h&&l!=l){for(;v>p;)if(b=u[p++],b!=b)return!0}else for(;v>p;p++)if((h||p in u)&&u[p]===l)return h||p||0;return!h&&-1}}},c649:function(t,o,i){(function(s){i.d(o,"c",function(){return u}),i.d(o,"a",function(){return l}),i.d(o,"b",function(){return c}),i.d(o,"d",function(){return a}),i("a481");function d(){return typeof window!="undefined"?window.console:s.console}var c=d();function h(v){var p=Object.create(null);return function(m){var y=p[m];return y||(p[m]=v(m))}}var f=/-(\w)/g,l=h(function(v){return v.replace(f,function(p,b){return b?b.toUpperCase():""})});function a(v){v.parentElement!==null&&v.parentElement.removeChild(v)}function u(v,p,b){var m=b===0?v.children[0]:v.children[b-1].nextSibling;v.insertBefore(p,m)}}).call(this,i("c8ba"))},c69a:function(t,o,i){t.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(t,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},ca5a:function(t,o){var i=0,s=Math.random();t.exports=function(d){return"Symbol(".concat(d===void 0?"":d,")_",(++i+s).toString(36))}},cadf:function(t,o,i){var s=i("9c6c"),d=i("d53b"),c=i("84f2"),h=i("6821");t.exports=i("01f9")(Array,"Array",function(f,l){this._t=h(f),this._i=0,this._k=l},function(){var f=this._t,l=this._k,a=this._i++;return!f||a>=f.length?(this._t=void 0,d(1)):l=="keys"?d(0,a):l=="values"?d(0,f[a]):d(0,[a,f[a]])},"values"),c.Arguments=c.Array,s("keys"),s("values"),s("entries")},cb7c:function(t,o,i){var s=i("d3f4");t.exports=function(d){if(!s(d))throw TypeError(d+" is not an object!");return d}},ce10:function(t,o,i){var s=i("69a8"),d=i("6821"),c=i("c366")(!1),h=i("613b")("IE_PROTO");t.exports=function(f,l){var a=d(f),u=0,v=[],p;for(p in a)p!=h&&s(a,p)&&v.push(p);for(;l.length>u;)s(a,p=l[u++])&&(~c(v,p)||v.push(p));return v}},d2c8:function(t,o,i){var s=i("aae3"),d=i("be13");t.exports=function(c,h,f){if(s(h))throw TypeError("String#"+f+" doesn't accept regex!");return String(d(c))}},d3f4:function(t,o){t.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(t,o){t.exports=function(i,s){return{value:s,done:!!i}}},d8e8:function(t,o){t.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(t,o){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,o,i){var s=i("5ca1"),d=i("9def"),c=i("d2c8"),h="startsWith",f=""[h];s(s.P+s.F*i("5147")(h),"String",{startsWith:function(a){var u=c(this,a,h),v=d(Math.min(arguments.length>1?arguments[1]:void 0,u.length)),p=String(a);return f?f.call(u,p,v):u.slice(v,v+p.length)===p}})},f6fd:function(t,o){(function(i){var s="currentScript",d=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(f){var c,h=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(f.stack)||[!1])[1];for(c in d)if(d[c].src==h||d[c].readyState=="interactive")return d[c];return null}}})})(document)},f751:function(t,o,i){var s=i("5ca1");s(s.S+s.F,"Object",{assign:i("7333")})},fa5b:function(t,o,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,o,i){var s=i("7726").document;t.exports=s&&s.documentElement},fb15:function(t,o,i){if(i.r(o),typeof window!="undefined"){i("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=s[1])}i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function d(E){if(Array.isArray(E))return E}function c(E,C){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(E)))){var N=[],F=!0,j=!1,L=void 0;try{for(var M=E[Symbol.iterator](),H;!(F=(H=M.next()).done)&&(N.push(H.value),!(C&&N.length===C));F=!0);}catch(z){j=!0,L=z}finally{try{!F&&M.return!=null&&M.return()}finally{if(j)throw L}}return N}}function h(E,C){(C==null||C>E.length)&&(C=E.length);for(var N=0,F=new Array(C);N<C;N++)F[N]=E[N];return F}function f(E,C){if(!!E){if(typeof E=="string")return h(E,C);var N=Object.prototype.toString.call(E).slice(8,-1);if(N==="Object"&&E.constructor&&(N=E.constructor.name),N==="Map"||N==="Set")return Array.from(E);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return h(E,C)}}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
20
20
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(E,C){return d(E)||c(E,C)||f(E,C)||l()}i("6762"),i("2fdb");function u(E){if(Array.isArray(E))return h(E)}function v(E){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(E))return Array.from(E)}function p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(E){return u(E)||v(E)||f(E)||p()}var m=i("a352"),g=i.n(m),_=i("c649");function y(E,C,I){return I===void 0||(E=E||{},E[C]=I),E}function O(E,C){return E.map(function(I){return I.elm}).indexOf(C)}function k(E,C,I,F){if(!E)return[];var j=E.map(function(H){return H.elm}),L=C.length-F,M=b(C).map(function(H,z){return z>=L?j.length:j.indexOf(H)});return I?M.filter(function(H){return H!==-1}):M}function T(E,C){var I=this;this.$nextTick(function(){return I.$emit(E.toLowerCase(),C)})}function A(E){var C=this;return function(I){C.realList!==null&&C["onDrag"+E](I),T.call(C,E,I)}}function P(E){return["transition-group","TransitionGroup"].includes(E)}function x(E){if(!E||E.length!==1)return!1;var C=a(E,1),I=C[0].componentOptions;return I?P(I.tag):!1}function S(E,C,I){return E[I]||(C[I]?C[I]():void 0)}function w(E,C,I){var F=0,j=0,L=S(C,I,"header");L&&(F=L.length,E=E?[].concat(b(L),b(E)):b(L));var M=S(C,I,"footer");return M&&(j=M.length,E=E?[].concat(b(E),b(M)):b(M)),{children:E,headerOffset:F,footerOffset:j}}function N(E,C){var I=null,F=function(V,Q){I=y(I,V,Q)},j=Object.keys(E).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,V){return z[V]=E[V],z},{});if(F("attrs",j),!C)return I;var L=C.on,M=C.props,H=C.attrs;return F("on",L),F("props",M),Object.assign(I.attrs,H),I}var D=["Start","Add","Remove","Update","End"],$=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(D,$).map(function(E){return"on"+E}),U=null,G={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(C){return C}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},q={name:"draggable",inheritAttrs:!1,props:G,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(C){var I=this.$slots.default;this.transitionMode=x(I);var F=w(I,this.$slots,this.$scopedSlots),j=F.children,L=F.headerOffset,M=F.footerOffset;this.headerOffset=L,this.footerOffset=M;var H=N(this.$attrs,this.componentData);return C(this.getTag(),H,j)},created:function(){this.list!==null&&this.value!==null&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var C=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var I={};D.forEach(function(L){I["on"+L]=A.call(C,L)}),$.forEach(function(L){I["on"+L]=T.bind(C,L)});var F=Object.keys(this.$attrs).reduce(function(L,M){return L[Object(_.a)(M)]=C.$attrs[M],L},{}),j=Object.assign({},this.options,F,I,{onMove:function(M,H){return C.onDragMove(M,H)}});!("draggable"in j)&&(j.draggable=">*"),this._sortable=new g.a(this.rootContainer,j),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(C){this.updateOptions(C)},deep:!0},$attrs:{handler:function(C){this.updateOptions(C)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var C=this._vnode.fnOptions;return C&&C.functional},getTag:function(){return this.tag||this.element},updateOptions:function(C){for(var I in C){var F=Object(_.a)(I);B.indexOf(F)===-1&&this._sortable.option(F,C[I])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var C=this.$slots.default;return this.transitionMode?C[0].child.$slots.default:C},computeIndexes:function(){var C=this;this.$nextTick(function(){C.visibleIndexes=k(C.getChildrenNodes(),C.rootContainer.children,C.transitionMode,C.footerOffset)})},getUnderlyingVm:function(C){var I=O(this.getChildrenNodes()||[],C);if(I===-1)return null;var F=this.realList[I];return{index:I,element:F}},getUnderlyingPotencialDraggableComponent:function(C){var I=C.__vue__;return!I||!I.$options||!P(I.$options._componentTag)?!("realList"in I)&&I.$children.length===1&&"realList"in I.$children[0]?I.$children[0]:I:I.$parent},emitChanges:function(C){var I=this;this.$nextTick(function(){I.$emit("change",C)})},alterList:function(C){if(this.list){C(this.list);return}var I=b(this.value);C(I),this.$emit("input",I)},spliceList:function(){var C=arguments,I=function(j){return j.splice.apply(j,b(C))};this.alterList(I)},updatePosition:function(C,I){var F=function(L){return L.splice(I,0,L.splice(C,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(C){var I=C.to,F=C.related,j=this.getUnderlyingPotencialDraggableComponent(I);if(!j)return{component:j};var L=j.realList,M={list:L,component:j};if(I!==F&&L&&j.getUnderlyingVm){var H=j.getUnderlyingVm(F);if(H)return Object.assign(H,M)}return M},getVmIndex:function(C){var I=this.visibleIndexes,F=I.length;return C>F-1?F:I[C]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(C){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var I=this.getChildrenNodes();I[C].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(C){this.context=this.getUnderlyingVm(C.item),C.item._underlying_vm_=this.clone(this.context.element),U=C.item},onDragAdd:function(C){var I=C.item._underlying_vm_;if(I!==void 0){Object(_.d)(C.item);var F=this.getVmIndex(C.newIndex);this.spliceList(F,0,I),this.computeIndexes();var j={element:I,newIndex:F};this.emitChanges({added:j})}},onDragRemove:function(C){if(Object(_.c)(this.rootContainer,C.item,C.oldIndex),C.pullMode==="clone"){Object(_.d)(C.clone);return}var I=this.context.index;this.spliceList(I,1);var F={element:this.context.element,oldIndex:I};this.resetTransitionData(I),this.emitChanges({removed:F})},onDragUpdate:function(C){Object(_.d)(C.item),Object(_.c)(C.from,C.item,C.oldIndex);var I=this.context.index,F=this.getVmIndex(C.newIndex);this.updatePosition(I,F);var j={element:this.context.element,oldIndex:I,newIndex:F};this.emitChanges({moved:j})},updateProperty:function(C,I){C.hasOwnProperty(I)&&(C[I]+=this.headerOffset)},computeFutureIndex:function(C,I){if(!C.element)return 0;var F=b(I.to.children).filter(function(H){return H.style.display!=="none"}),j=F.indexOf(I.related),L=C.component.getVmIndex(j),M=F.indexOf(U)!==-1;return M||!I.willInsertAfter?L:L+1},onDragMove:function(C,I){var F=this.move;if(!F||!this.realList)return!0;var j=this.getRelatedContextFromMoveEvent(C),L=this.context,M=this.computeFutureIndex(j,C);Object.assign(L,{futureIndex:M});var H=Object.assign({},C,{relatedContext:j,draggedContext:L});return F(H,I)},onDragEnd:function(){this.computeIndexes(),U=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var R=q;o.default=R}}).default})})(Jr);var _i=Rr(Jr.exports),el=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-record"},[n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",width:"600",offset:-172},model:{value:e.showPropover,callback:function(t){e.showPropover=t},expression:"showPropover"}},[n("div",{staticClass:"ui-record__list"},[n("div",{staticClass:"ui-record__saves"},e._l(e.recordData.saves,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.labels.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o,"saves")}}},[n("div",{staticStyle:{position:"absolute","z-index":"-1"}},[e.$refs["EditLabelTitle_"+o]&&e.$refs["EditLabelTitle_"+o][0]?n("el-popover",{ref:"EditLabelTitlePopover_"+o,refInFor:!0,attrs:{reference:e.$refs["EditLabelTitle_"+o][0],placement:"top",width:"160"}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",placeholder:"\u8BF7\u8F93\u5165\u7B5B\u9009\u6807\u9898"},model:{value:e.changeLabelTitleVal,callback:function(i){e.changeLabelTitleVal=i},expression:"changeLabelTitleVal"}}),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){e.$refs["EditLabelTitlePopover_"+o][0].doClose()}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfirmChangeLabelTitle(o)}}},[e._v("\u786E\u5B9A")])],1)],1):e._e()],1),n("div",[t.title?n("div",{staticClass:"ui-desc__title"},[n("span",[e._v(e._s(t.title))])]):n("div",{staticClass:"ui-desc__title"},e._l(t.labels,function(i,s){return n("span",{key:s},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0)]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u4FEE\u6539\u7B5B\u9009\u6807\u9898",placement:"top-start"}},[n("i",{ref:"EditLabelTitle_"+o,refInFor:!0,staticClass:"el-icon-edit ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleShowChangeLabelTitle(t)}}})]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u79FB\u9664\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-remove ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"saves")}}})])],1)}),0),n("div",{staticClass:"ui-record__temps"},e._l(e.recordData.temps,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o)}}},[n("div",{staticClass:"ui-desc__title"},e._l(t,function(i,s){return n("span",{key:s},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u6DFB\u52A0\u5230\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-circle-plus ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"temps")}}})])],1)}),0)]),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u7B5B\u9009\u5386\u53F2 "),n("i",{staticClass:"el-icon-caret-right"})])],1)],1)},tl=[],Mf="";const nl={props:{configKey:{type:String,default:""},current:{type:Array,default(){return[]}}},data(){return{showPropover:!1,recordData:{saves:[],temps:[]},changeLabelTitleShow:!1,changeLabelTitleVal:"",changeLabelTitleItem:{}}},async mounted(){setTimeout(async()=>{let e=await this.$parent.getConfigCache(`SaveRecord_${this.configKey}`);const r=Object.entries(e).length?e:{saves:[],temps:[]};r.saves[0]&&Array.isArray(r.saves[0])&&(r.saves=r.saves.map(n=>({labels:n,title:""}))),this.recordData=r},500)},methods:{handleOperation(e,r){if(r=="temps"){const n=this.recordData.temps[e];this.recordData.saves.unshift({labels:n,title:""}),this.$nextTick().then(()=>{this.$forceUpdate()})}else this.recordData.saves.splice(e,1);this.handelSaveRecord()},async handleShortcut(e,r,n){if(this.$parent.$children.forEach(t=>{const o=(e.labels||e).find(i=>i.label==t.label);if(o){Array.isArray(o.value)?t.staticOptions.splice(0,t.staticOptions.length,...o.value.map((i,s)=>({label:o.valueLabel[s],value:i}))):t.staticOptions.splice(0,t.staticOptions.length,{label:o.valueLabel,value:o.value}),t.modelForm=o.value;try{if(o.prependValue&&t.$slots.prepend){const i=t.$options.propsData.type&&["input","password"].includes(t.$options.propsData.type)?t.$children[0]:t.$children[0].$children[0];i.$options._componentTag=="com-form-item"?i.$emit("changes",o.prependValue):i.$emit("input",o.prependValue)}}catch(i){console.log(i)}}else t.label&&t.$el.style.display!=="none"&&(Array.isArray(t.modelForm)?t.modelForm=[]:typeof t.modelForm=="number"?t.modelForm=void 0:t.modelForm="")}),n=="saves"){const t=this.recordData.saves[r];this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(t[0])}else{const t=this.recordData.temps.splice(r,1);this.recordData.temps.unshift(...t),this.handelSaveRecord(),this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(t[0])}},handelSaveRecord(){this.recordData.temps.length>10&&this.recordData.temps.splice(10),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)},handleShowChangeLabelTitle(e){this.changeLabelTitleShow=!0,this.changeLabelTitleItem=e},handleConfirmChangeLabelTitle(e){this.changeLabelTitleItem.title=this.changeLabelTitleVal,this.changeLabelTitleVal="",this.$refs[`EditLabelTitlePopover_${e}`][0].doClose(),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)}},watch:{current:{handler(e){e.length&&this.recordData.temps.findIndex(n=>{const t=JSON.parse(JSON.stringify(n)).sort((i,s)=>i.label.localeCompare(s.label)),o=JSON.parse(JSON.stringify(e)).sort((i,s)=>i.label.localeCompare(s.label));return JSON.stringify(t)==JSON.stringify(o)})<0&&(this.recordData.temps.unshift(e),this.handelSaveRecord())},deep:!0}}},Oi={};var rl=Se(nl,el,tl,!1,il,"5783105a",null,null);function il(e){for(let r in Oi)this[r]=Oi[r]}var ol=function(){return rl.exports}();const al={props:{vnode:{type:[Object,Function],default:()=>{}}},data(){return{}},render(e){const r=this._props.vnode,n=r.$slots.prepend,t=r.$slots.append,o=r.$slots.label;return e(this._props.vnode.constructor,{on:r.$listeners,props:r.$options.propsData,attrs:r.$attrs,staticStyle:r.staticStyle,ref:r.ref},[n?[e("div",{slot:"prepend"},n)]:[],t?[e("div",{slot:"append"},t)]:[],o?[e("div",{slot:"label",class:"ui-item__label"},o)]:[]])}};let ll,sl;const Si={};var ul=Se(al,ll,sl,!1,fl,null,null,null);function fl(e){for(let r in Si)this[r]=Si[r]}var cl=function(){return ul.exports}();function dl(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,s=t.noLeading,d=s===void 0?!1:s,c=t.debounceMode,h=c===void 0?void 0:c,f,l=!1,a=0;function u(){f&&clearTimeout(f)}function v(b){var m=b||{},g=m.upcomingOnly,_=g===void 0?!1:g;u(),l=!_}function p(){for(var b=arguments.length,m=new Array(b),g=0;g<b;g++)m[g]=arguments[g];var _=this,y=Date.now()-a;if(l)return;function O(){a=Date.now(),r.apply(_,m)}function k(){f=void 0}!d&&h&&!f&&O(),u(),h===void 0&&y>e?d?(a=Date.now(),i||(f=setTimeout(h?k:O,e))):O():i!==!0&&(f=setTimeout(h?k:O,h===void 0?e-y:e))}return p.cancel=v,p}function On(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return dl(e,r,{debounceMode:i!==!1})}function Ei(e=0,r=!0,n=null){var d;const t=n?n.map(c=>document.querySelector(c)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const c=document.querySelector(".ui-pagination"),h=document.querySelector(".ui-container__header"),f=(h==null?void 0:h.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),l=document.querySelector(".ui-table__tab");o.push(...[(c==null?void 0:c.offsetHeight)||0,(h==null?void 0:h.offsetHeight)||0,(f==null?void 0:f.offsetHeight)||0,(l==null?void 0:l.offsetHeight)||0].filter(a=>!!a))}let i=e+o.reduce((c,h)=>c+h,0),s=navigator.userAgent;for(let c=0;c<t.length;c++){let h=t[c];if(!h||h.className.indexOf("ui-table")>-1)continue;i+=h.offsetHeight;let f,l,a=(d=document==null?void 0:document.defaultView)==null?void 0:d.getComputedStyle(h);if(s.indexOf("Firefox")>-1)l=parseInt(a["margin-top"])+parseInt(a["margin-bottom"]);else if(s.indexOf("compatible")>-1&&s.indexOf("MSIE")>-1&&!(s.indexOf("Opera")>-1)){let u=h.currentStyle;l=parseInt(u.marginTop)+parseInt(u.marginBottom)}else if(f=a.margin.split(" "),f.length==1)l=parseInt(f[0])*2;else{const[u,v,p,b]=f;l=parseInt(p)?parseInt(u)+parseInt(p):parseInt(u)}i=l+i}return i=window.innerHeight-i,i}function hl(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var pl=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSearch,expression:"loadSearch"}],ref:"Search",staticClass:"ui-search",style:{overflow:e.collspase?"hidden":"unset"}},[e.loadingConfig?n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-search--mask",attrs:{"element-loading-text":"\u52A0\u8F7D\u914D\u7F6E\u4E2D","element-loading-background":"rgba(255, 255, 255, 1)"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__main",class:{loaddone:e.loadingConfig==!1}},[e.useConfig?n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2):e._t("default"),!e.loadSearch&&e.useConfig?e._l(e.childItems,function(t,o){return n("DefaultItem",{key:o,ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})}):e._e()],2),n("div",{staticClass:"ui-search__diy"},[e._t("diy")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__footer"},[n("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")]),n("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small",icon:"el-icon-search",type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("\u67E5\u8BE2")]),n("div",{staticStyle:{"align-self":"flex-end"}},[e.showMore?n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover "+e.popoverClass,offset:-172,width:e.containerWidth}},[n("div",{staticClass:"ui-more__select"},[n("el-row",e._l(e.hideItems,function(t,o){return n("el-col",e._b({key:o},"el-col",Object.assign({},{span:4},t.$attrs,t.$options.propsData),!1),[!e.loadSearch&&e.useConfig?[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]:e.loadSearch?e._e():[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]],2)}),1)],1),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u66F4\u591A\u7B5B\u9009 "),n("i",{staticClass:"el-icon-caret-right"})])],1):e._e()],1),e.useConfig?n("el-button",{staticClass:"ui-search__button--more",attrs:{type:"text"},on:{click:e.handleShowConfig}},[e._v("\u7B5B\u9009\u914D\u7F6E "),n("i",{staticClass:"el-icon-setting"})]):e._e(),n("Record",{attrs:{"config-key":e.configKey,current:e.searchLoc}}),e._t("footer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache",attrs:{title:e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")}},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collspase,expression:"!collspase"}],staticClass:"ui-collspase--cache"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark","popper-class":"ui-search__cache__popper",placement:"bottom-start"},scopedSlots:e._u([{key:"content",fn:function(){return[n("p",{staticStyle:{"line-height":"18px"}},[e._v(e._s(e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")))])]},proxy:!0}])},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache"},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)])],1),n("div",{staticClass:"ui-collspase",class:{"ui-collspase--open":e.collspase},on:{click:function(t){e.collspase=!e.collspase}}},[n("span",{class:e.collspase?"el-icon-caret-top":"el-icon-caret-bottom"})]),n("el-drawer",{attrs:{title:"\u7B5B\u9009\u914D\u7F6E",direction:"btt",size:"100%",withHeader:!1,modal:!1,"modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content"},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t,o){return n("el-checkbox",{key:o,attrs:{border:"",label:t}})}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleResetField}},[e._v("\u91CD\u7F6E")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")])],1)])])],1)},vl=[],Ff="";const ml={name:"ComSearch",components:{draggable:_i,Record:ol,DefaultItem:cl},props:{searchCfg:{type:Array,default(){return[]}},flagId:{type:String,default:""},useConfig:{type:Boolean,default:!0},popoverClass:{type:String,default:""}},data(){return{containerWidth:"200px",hideItems:[],defaultVNode:[],defaultItems:[],showConfig:!1,checkItems:[],sortItems:[],loadSearch:!1,searchLoc:[],childItems:[],defaultChildItems:[],initLoad:!1,configKey:this.flagId||this.$route.path,handleWindowResize:null,waitTimeout:"",searchHeight:"",listenerSearchTimes:"",collspase:!0,showTip:!1,localConfig:null,loadingConfig:null}},computed:{showMore(){return!!this.hideItems.length},ConfigRefs(){return Object.entries(this.$refs).reduce((e,[r,n])=>{if(r.indexOf("Config_")>-1){const t=r.replace("Config_",""),o=n[0].$refs[t];return ve(ve({},e),o?{[t]:o.$refs[o.type]}:{})}},{})}},methods:{handleQuery(e){const r=(o,i)=>o?o instanceof Date?!1:Array.isArray(o)&&i=="inputrange"?!o[0]&&!o[1]:o instanceof Object?!Object.entries(o).length:!1:typeof o!="boolean";this.searchLoc=Array.isArray(e)?e:this.$children.reduce((o,i)=>{var s,d;if(i.label&&!r(i.modelForm,i.type)){let c;i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var a;return((a=[...i.selectOption,...i.staticOptions].find(u=>u.value==l))==null?void 0:a.label)||l}):c=((s=[...i.selectOption,...i.staticOptions].find(l=>l.value==i.modelForm))==null?void 0:s.label)||i.modelForm:Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var a;return((a=i.staticOptions.find(u=>u.value==l))==null?void 0:a.label)||l}):c=((d=i.staticOptions.find(l=>l.value==i.modelForm))==null?void 0:d.label)||i.modelForm;let h,f;if(i.$slots.prepend){const l=i.$slots.prepend[0].componentOptions.propsData;h=l.value||l.model,l.options&&(f=l.options[h])}return[...o,{label:i.label,value:i.modelForm,valueLabel:c,prependValue:h,prependLabel:f}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(ve({},t.defaultParams||{})):this.$emit("query")},handleReset(){const e=this.$parent.handleReset;e?e():this.$emit("reset")},waitRenderItem(){return new Promise(e=>{clearTimeout(this.waitTimeout);const r=this.$refs.Search.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");for(let n=0;n<r.length;n++)if(r[n].getBoundingClientRect().right>0)return e(!0);this.waitTimeout=setTimeout(async()=>{e(await this.waitRenderItem())},100)})},async handleLayoutItem(e=!1){await this.waitRenderItem();const r=this.$refs.Search,n=r.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");n.forEach(i=>i.className=i.className.replace("ui-form__item--hide",""));const{right:t}=r.getBoundingClientRect();this.containerWidth=r.offsetWidth-80,this.useConfig&&n.forEach(i=>{try{const s=i.__vue__.label||i.__vue__.$children[0].label;this.checkItems.includes(s)?i.style.display="block":i.style.display="none"}catch{console.log(i.__vue__,i)}});const o=[];n.forEach(i=>{const{right:s}=i.getBoundingClientRect();s>t&&(i.className=`${i.className} ui-form__item--hide`,o.push(i))}),e!==!0&&(this.useConfig?this.hideItems=o.map(i=>this.childItems.find((s,d)=>{const c=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return s.$options.propsData.label==c.propsData.label})).filter(i=>!!i):this.hideItems=this.$children.filter(i=>i.$el.className.indexOf("ui-form__item--hide")>-1),this.loadSearch=!1)},changeOptions(e){this.$parent.changeOptions(e)},handleShowConfig(){this.showConfig=!0},handleResetField(){this.loadingConfig=!0,this.checkItems=JSON.parse(JSON.stringify(this.defaultChildItems)),this.sortItems=JSON.parse(JSON.stringify(this.defaultChildItems));const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e),this.showConfig=!1,this.$nextTick(()=>{this.handleRenderConfig(),setTimeout(()=>{this.loadingConfig=!1},200)})},async handleRenderConfig(){const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e);const r=this.sortItems.map(n=>this.childItems.find(o=>o.$options.propsData.label==n));this.childItems=r,await this.$nextTick(),this.showConfig=!1,this.handleLayoutItem()},listenerSearchHeight(){this.searchHeight=this.$refs.Search.offsetHeight,this.listenerSearchTimes=setInterval(()=>{if(this.searchHeight!=this.$refs.Search.offsetHeight){this.searchHeight=this.$refs.Search.offsetHeight;const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}},200)},async setConfigCache(e,r){if(!this.$UICONFIG||!this.$UICONFIG.setCacheApi){localStorage.setItem(e,JSON.stringify(r));return}this.localConfig[e]=JSON.stringify(r),await this.$http.post(this.$UICONFIG.setCacheApi,{code:this.configKey,datas:this.localConfig})},async getConfigCache(e){if(!this.$UICONFIG||!this.$UICONFIG.getCacheApi)return this.loadingConfig=!1,JSON.parse(localStorage.getItem(e)||"{}");if(!this.localConfig){this.loadingConfig=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getCacheApi,{code:this.configKey});setTimeout(()=>{this.loadingConfig=!1},200),this.localConfig=Object.entries(r.data?r.data:r).length?r.data?r.data:r:{}}return JSON.parse(this.localConfig[e]||"{}")}},async mounted(){if(this.childItems=this.$slots.default.map(e=>({componentOptions:e.componentOptions,$attrs:e.componentInstance.$attrs,constructor:e.componentInstance.constructor,$listeners:e.componentInstance.$listeners,$options:e.componentInstance.$options,$scopedSlots:e.componentInstance.$scopedSlots,$slots:e.componentInstance.$slots,staticStyle:e.data.staticStyle,ref:e.data.ref})),this.initLoad=!0,await this.$nextTick(),this.useConfig){this.checkItems=this.childItems.map(r=>r.$options.propsData.label),this.sortItems=this.childItems.map(r=>r.$options.propsData.label),this.defaultChildItems=JSON.parse(JSON.stringify(this.checkItems)),this.handleLayoutItem();const e=await this.getConfigCache(`SearchCfg__${this.configKey}`);if(e.checkItems){await this.$nextTick();const r=this.sortItems.findIndex(n=>!e.sortItems.includes(n));if(r>-1){const n=this.sortItems[r];e.checkItems.push(n),e.sortItems.splice(r,0,n)}this.checkItems=e.checkItems.filter(n=>this.sortItems.includes(n)),this.sortItems=e.sortItems.filter(n=>this.sortItems.includes(n)),this.handleRenderConfig()}}else this.loadSearch=!1,this.handleLayoutItem();this.handleWindowResize=On(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await hl(300),this.listenerSearchHeight()},activated(){this.handleLayoutItem()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),clearInterval(this.listenerSearchTimes)},watch:{childItems(){this.loadSearch=!0,this.$nextTick().then(()=>{this.loadSearch=!1})},hideItems(e,r){r.length==e.length&&r.length==0||(this.loadSearch=!0,this.$nextTick().then(async()=>{this.loadSearch=!1,await this.$nextTick(),this.handleLayoutItem(!0)}))},collspase(){const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}}},xi={};var yl=Se(ml,pl,vl,!1,gl,"7ac36393",null,null);function gl(e){for(let r in xi)this[r]=xi[r]}var Sn=function(){return yl.exports}();Sn.install=e=>{e.component(Sn.name,Sn)};const wi=Sn;var bl=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),t=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Ai=typeof Symbol!="undefined"&&Symbol,_l=bl,Ol=function(){return typeof Ai!="function"||typeof Symbol!="function"||typeof Ai("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_l()},Sl="Function.prototype.bind called on incompatible ",nr=Array.prototype.slice,El=Object.prototype.toString,xl="[object Function]",wl=function(r){var n=this;if(typeof n!="function"||El.call(n)!==xl)throw new TypeError(Sl+n);for(var t=nr.call(arguments,1),o,i=function(){if(this instanceof o){var f=n.apply(this,t.concat(nr.call(arguments)));return Object(f)===f?f:this}else return n.apply(r,t.concat(nr.call(arguments)))},s=Math.max(0,n.length-t.length),d=[],c=0;c<s;c++)d.push("$"+c);if(o=Function("binder","return function ("+d.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var h=function(){};h.prototype=n.prototype,o.prototype=new h,h.prototype=null}return o},Al=wl,rr=Function.prototype.bind||Al,Tl=rr,Cl=Tl.call(Function.call,Object.prototype.hasOwnProperty),de,Ht=SyntaxError,Ti=Function,Ot=TypeError,ir=function(e){try{return Ti('"use strict"; return ('+e+").constructor;")()}catch{}},vt=Object.getOwnPropertyDescriptor;if(vt)try{vt({},"")}catch{vt=null}var or=function(){throw new Ot},kl=vt?function(){try{return arguments.callee,or}catch{try{return vt(arguments,"callee").get}catch{return or}}}():or,St=Ol(),at=Object.getPrototypeOf||function(e){return e.__proto__},Et={},Nl=typeof Uint8Array=="undefined"?de:at(Uint8Array),xt={"%AggregateError%":typeof AggregateError=="undefined"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?de:ArrayBuffer,"%ArrayIteratorPrototype%":St?at([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":Et,"%AsyncGenerator%":Et,"%AsyncGeneratorFunction%":Et,"%AsyncIteratorPrototype%":Et,"%Atomics%":typeof Atomics=="undefined"?de:Atomics,"%BigInt%":typeof BigInt=="undefined"?de:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?de:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?de:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?de:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?de:FinalizationRegistry,"%Function%":Ti,"%GeneratorFunction%":Et,"%Int8Array%":typeof Int8Array=="undefined"?de:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?de:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":St?at(at([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map=="undefined"?de:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!St?de:at(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?de:Promise,"%Proxy%":typeof Proxy=="undefined"?de:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?de:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?de:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!St?de:at(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":St?at(""[Symbol.iterator]()):de,"%Symbol%":St?Symbol:de,"%SyntaxError%":Ht,"%ThrowTypeError%":kl,"%TypedArray%":Nl,"%TypeError%":Ot,"%Uint8Array%":typeof Uint8Array=="undefined"?de:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?de:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?de:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?de:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?de:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?de:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?de:WeakSet},Il=function e(r){var n;if(r==="%AsyncFunction%")n=ir("async function () {}");else if(r==="%GeneratorFunction%")n=ir("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=ir("async function* () {}");else if(r==="%AsyncGenerator%"){var t=e("%AsyncGeneratorFunction%");t&&(n=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(n=at(o.prototype))}return xt[r]=n,n},Ci={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},En=rr,xn=Cl,Pl=En.call(Function.call,Array.prototype.concat),Ll=En.call(Function.apply,Array.prototype.splice),ki=En.call(Function.call,String.prototype.replace),wn=En.call(Function.call,String.prototype.slice),Dl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$l=/\\(\\)?/g,Rl=function(r){var n=wn(r,0,1),t=wn(r,-1);if(n==="%"&&t!=="%")throw new Ht("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new Ht("invalid intrinsic syntax, expected opening `%`");var o=[];return ki(r,Dl,function(i,s,d,c){o[o.length]=d?ki(c,$l,"$1"):s||i}),o},Ml=function(r,n){var t=r,o;if(xn(Ci,t)&&(o=Ci[t],t="%"+o[0]+"%"),xn(xt,t)){var i=xt[t];if(i===Et&&(i=Il(t)),typeof i=="undefined"&&!n)throw new Ot("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:i}}throw new Ht("intrinsic "+r+" does not exist!")},ar=function(r,n){if(typeof r!="string"||r.length===0)throw new Ot("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ot('"allowMissing" argument must be a boolean');var t=Rl(r),o=t.length>0?t[0]:"",i=Ml("%"+o+"%",n),s=i.name,d=i.value,c=!1,h=i.alias;h&&(o=h[0],Ll(t,Pl([0,1],h)));for(var f=1,l=!0;f<t.length;f+=1){var a=t[f],u=wn(a,0,1),v=wn(a,-1);if((u==='"'||u==="'"||u==="`"||v==='"'||v==="'"||v==="`")&&u!==v)throw new Ht("property names with quotes must have matching quotes");if((a==="constructor"||!l)&&(c=!0),o+="."+a,s="%"+o+"%",xn(xt,s))d=xt[s];else if(d!=null){if(!(a in d)){if(!n)throw new Ot("base intrinsic for "+r+" exists, but the property is not available.");return}if(vt&&f+1>=t.length){var p=vt(d,a);l=!!p,l&&"get"in p&&!("originalValue"in p.get)?d=p.get:d=d[a]}else l=xn(d,a),d=d[a];l&&!c&&(xt[s]=d)}}return d},Ni={exports:{}};(function(e){var r=rr,n=ar,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),s=n("%Object.getOwnPropertyDescriptor%",!0),d=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(d)try{d({},"a",{value:1})}catch{d=null}e.exports=function(l){var a=i(r,o,arguments);if(s&&d){var u=s(a,"length");u.configurable&&d(a,"length",{value:1+c(0,l.length-(arguments.length-1))})}return a};var h=function(){return i(r,t,arguments)};d?d(e.exports,"apply",{value:h}):e.exports.apply=h})(Ni);var Ii=ar,Pi=Ni.exports,Fl=Pi(Ii("String.prototype.indexOf")),jl=function(r,n){var t=Ii(r,!!n);return typeof t=="function"&&Fl(r,".prototype.")>-1?Pi(t):t},Bl={},ql=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Bl}),Ul=Mr(ql),lr=typeof Map=="function"&&Map.prototype,sr=Object.getOwnPropertyDescriptor&&lr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,An=lr&&sr&&typeof sr.get=="function"?sr.get:null,Hl=lr&&Map.prototype.forEach,ur=typeof Set=="function"&&Set.prototype,fr=Object.getOwnPropertyDescriptor&&ur?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Tn=ur&&fr&&typeof fr.get=="function"?fr.get:null,zl=ur&&Set.prototype.forEach,Wl=typeof WeakMap=="function"&&WeakMap.prototype,zt=Wl?WeakMap.prototype.has:null,Gl=typeof WeakSet=="function"&&WeakSet.prototype,Wt=Gl?WeakSet.prototype.has:null,Kl=typeof WeakRef=="function"&&WeakRef.prototype,Li=Kl?WeakRef.prototype.deref:null,Vl=Boolean.prototype.valueOf,Yl=Object.prototype.toString,Xl=Function.prototype.toString,Zl=String.prototype.match,cr=String.prototype.slice,lt=String.prototype.replace,Jl=String.prototype.toUpperCase,Di=String.prototype.toLowerCase,$i=RegExp.prototype.test,Ri=Array.prototype.concat,Xe=Array.prototype.join,Ql=Array.prototype.slice,Mi=Math.floor,dr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hr=Object.getOwnPropertySymbols,pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,wt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",De=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wt?"object":"symbol")?Symbol.toStringTag:null,Fi=Object.prototype.propertyIsEnumerable,ji=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Bi(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||$i.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Mi(-e):Mi(e);if(t!==e){var o=String(t),i=cr.call(r,o.length+1);return lt.call(o,n,"$&_")+"."+lt.call(lt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lt.call(r,n,"$&_")}var vr=Ul,qi=vr.custom,Ui=Wi(qi)?qi:null,es=function e(r,n,t,o){var i=n||{};if(st(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(st(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=st(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(st(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(st(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Ki(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var c=String(r);return d?Bi(r,c):c}if(typeof r=="bigint"){var h=String(r)+"n";return d?Bi(r,h):h}var f=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=f&&f>0&&typeof r=="object")return mr(r)?"[Array]":"[Object]";var l=gs(i,t);if(typeof o=="undefined")o=[];else if(Gi(o,r)>=0)return"[Circular]";function a(N,D,$){if(D&&(o=Ql.call(o),o.push(D)),$){var B={depth:i.depth};return st(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(N,B,t+1,o)}return e(N,i,t+1,o)}if(typeof r=="function"&&!zi(r)){var u=us(r),v=Cn(r,a);return"[Function"+(u?": "+u:" (anonymous)")+"]"+(v.length>0?" { "+Xe.call(v,", ")+" }":"")}if(Wi(r)){var p=wt?lt.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):pr.call(r);return typeof r=="object"&&!wt?Gt(p):p}if(vs(r)){for(var b="<"+Di.call(String(r.nodeName)),m=r.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+Hi(ts(m[g].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Di.call(String(r.nodeName))+">",b}if(mr(r)){if(r.length===0)return"[]";var _=Cn(r,a);return l&&!ys(_)?"["+gr(_,l)+"]":"[ "+Xe.call(_,", ")+" ]"}if(rs(r)){var y=Cn(r,a);return!("cause"in Error.prototype)&&"cause"in r&&!Fi.call(r,"cause")?"{ ["+String(r)+"] "+Xe.call(Ri.call("[cause]: "+a(r.cause),y),", ")+" }":y.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Xe.call(y,", ")+" }"}if(typeof r=="object"&&s){if(Ui&&typeof r[Ui]=="function"&&vr)return vr(r,{depth:f-t});if(s!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(fs(r)){var O=[];return Hl.call(r,function(N,D){O.push(a(D,r,!0)+" => "+a(N,r))}),Vi("Map",An.call(r),O,l)}if(hs(r)){var k=[];return zl.call(r,function(N){k.push(a(N,r))}),Vi("Set",Tn.call(r),k,l)}if(cs(r))return yr("WeakMap");if(ps(r))return yr("WeakSet");if(ds(r))return yr("WeakRef");if(os(r))return Gt(a(Number(r)));if(ls(r))return Gt(a(dr.call(r)));if(as(r))return Gt(Vl.call(r));if(is(r))return Gt(a(String(r)));if(!ns(r)&&!zi(r)){var T=Cn(r,a),A=ji?ji(r)===Object.prototype:r instanceof Object||r.constructor===Object,P=r instanceof Object?"":"null prototype",x=!A&&De&&Object(r)===r&&De in r?cr.call(ut(r),8,-1):P?"Object":"",S=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",w=S+(x||P?"["+Xe.call(Ri.call([],x||[],P||[]),": ")+"] ":"");return T.length===0?w+"{}":l?w+"{"+gr(T,l)+"}":w+"{ "+Xe.call(T,", ")+" }"}return String(r)};function Hi(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function ts(e){return lt.call(String(e),/"/g,""")}function mr(e){return ut(e)==="[object Array]"&&(!De||!(typeof e=="object"&&De in e))}function ns(e){return ut(e)==="[object Date]"&&(!De||!(typeof e=="object"&&De in e))}function zi(e){return ut(e)==="[object RegExp]"&&(!De||!(typeof e=="object"&&De in e))}function rs(e){return ut(e)==="[object Error]"&&(!De||!(typeof e=="object"&&De in e))}function is(e){return ut(e)==="[object String]"&&(!De||!(typeof e=="object"&&De in e))}function os(e){return ut(e)==="[object Number]"&&(!De||!(typeof e=="object"&&De in e))}function as(e){return ut(e)==="[object Boolean]"&&(!De||!(typeof e=="object"&&De in e))}function Wi(e){if(wt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!pr)return!1;try{return pr.call(e),!0}catch{}return!1}function ls(e){if(!e||typeof e!="object"||!dr)return!1;try{return dr.call(e),!0}catch{}return!1}var ss=Object.prototype.hasOwnProperty||function(e){return e in this};function st(e,r){return ss.call(e,r)}function ut(e){return Yl.call(e)}function us(e){if(e.name)return e.name;var r=Zl.call(Xl.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function Gi(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,t=e.length;n<t;n++)if(e[n]===r)return n;return-1}function fs(e){if(!An||!e||typeof e!="object")return!1;try{An.call(e);try{Tn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cs(e){if(!zt||!e||typeof e!="object")return!1;try{zt.call(e,zt);try{Wt.call(e,Wt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ds(e){if(!Li||!e||typeof e!="object")return!1;try{return Li.call(e),!0}catch{}return!1}function hs(e){if(!Tn||!e||typeof e!="object")return!1;try{Tn.call(e);try{An.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ps(e){if(!Wt||!e||typeof e!="object")return!1;try{Wt.call(e,Wt);try{zt.call(e,zt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function vs(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ki(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return Ki(cr.call(e,0,r.maxStringLength),r)+t}var o=lt.call(lt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ms);return Hi(o,"single",r)}function ms(e){var r=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return n?"\\"+n:"\\x"+(r<16?"0":"")+Jl.call(r.toString(16))}function Gt(e){return"Object("+e+")"}function yr(e){return e+" { ? }"}function Vi(e,r,n,t){var o=t?gr(n,t):Xe.call(n,", ");return e+" ("+r+") {"+o+"}"}function ys(e){for(var r=0;r<e.length;r++)if(Gi(e[r],`
|
|
22
|
-
`)>=0)return!1;return!0}function
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(E){return u(E)||v(E)||f(E)||p()}var m=i("a352"),y=i.n(m),_=i("c649");function g(E,C,N){return N===void 0||(E=E||{},E[C]=N),E}function O(E,C){return E.map(function(N){return N.elm}).indexOf(C)}function k(E,C,N,F){if(!E)return[];var j=E.map(function(H){return H.elm}),L=C.length-F,M=b(C).map(function(H,z){return z>=L?j.length:j.indexOf(H)});return N?M.filter(function(H){return H!==-1}):M}function T(E,C){var N=this;this.$nextTick(function(){return N.$emit(E.toLowerCase(),C)})}function A(E){var C=this;return function(N){C.realList!==null&&C["onDrag"+E](N),T.call(C,E,N)}}function P(E){return["transition-group","TransitionGroup"].includes(E)}function x(E){if(!E||E.length!==1)return!1;var C=a(E,1),N=C[0].componentOptions;return N?P(N.tag):!1}function S(E,C,N){return E[N]||(C[N]?C[N]():void 0)}function w(E,C,N){var F=0,j=0,L=S(C,N,"header");L&&(F=L.length,E=E?[].concat(b(L),b(E)):b(L));var M=S(C,N,"footer");return M&&(j=M.length,E=E?[].concat(b(E),b(M)):b(M)),{children:E,headerOffset:F,footerOffset:j}}function I(E,C){var N=null,F=function(V,Q){N=g(N,V,Q)},j=Object.keys(E).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,V){return z[V]=E[V],z},{});if(F("attrs",j),!C)return N;var L=C.on,M=C.props,H=C.attrs;return F("on",L),F("props",M),Object.assign(N.attrs,H),N}var D=["Start","Add","Remove","Update","End"],$=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(D,$).map(function(E){return"on"+E}),U=null,G={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(C){return C}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},q={name:"draggable",inheritAttrs:!1,props:G,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(C){var N=this.$slots.default;this.transitionMode=x(N);var F=w(N,this.$slots,this.$scopedSlots),j=F.children,L=F.headerOffset,M=F.footerOffset;this.headerOffset=L,this.footerOffset=M;var H=I(this.$attrs,this.componentData);return C(this.getTag(),H,j)},created:function(){this.list!==null&&this.value!==null&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var C=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var N={};D.forEach(function(L){N["on"+L]=A.call(C,L)}),$.forEach(function(L){N["on"+L]=T.bind(C,L)});var F=Object.keys(this.$attrs).reduce(function(L,M){return L[Object(_.a)(M)]=C.$attrs[M],L},{}),j=Object.assign({},this.options,F,N,{onMove:function(M,H){return C.onDragMove(M,H)}});!("draggable"in j)&&(j.draggable=">*"),this._sortable=new y.a(this.rootContainer,j),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(C){this.updateOptions(C)},deep:!0},$attrs:{handler:function(C){this.updateOptions(C)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var C=this._vnode.fnOptions;return C&&C.functional},getTag:function(){return this.tag||this.element},updateOptions:function(C){for(var N in C){var F=Object(_.a)(N);B.indexOf(F)===-1&&this._sortable.option(F,C[N])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var C=this.$slots.default;return this.transitionMode?C[0].child.$slots.default:C},computeIndexes:function(){var C=this;this.$nextTick(function(){C.visibleIndexes=k(C.getChildrenNodes(),C.rootContainer.children,C.transitionMode,C.footerOffset)})},getUnderlyingVm:function(C){var N=O(this.getChildrenNodes()||[],C);if(N===-1)return null;var F=this.realList[N];return{index:N,element:F}},getUnderlyingPotencialDraggableComponent:function(C){var N=C.__vue__;return!N||!N.$options||!P(N.$options._componentTag)?!("realList"in N)&&N.$children.length===1&&"realList"in N.$children[0]?N.$children[0]:N:N.$parent},emitChanges:function(C){var N=this;this.$nextTick(function(){N.$emit("change",C)})},alterList:function(C){if(this.list){C(this.list);return}var N=b(this.value);C(N),this.$emit("input",N)},spliceList:function(){var C=arguments,N=function(j){return j.splice.apply(j,b(C))};this.alterList(N)},updatePosition:function(C,N){var F=function(L){return L.splice(N,0,L.splice(C,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(C){var N=C.to,F=C.related,j=this.getUnderlyingPotencialDraggableComponent(N);if(!j)return{component:j};var L=j.realList,M={list:L,component:j};if(N!==F&&L&&j.getUnderlyingVm){var H=j.getUnderlyingVm(F);if(H)return Object.assign(H,M)}return M},getVmIndex:function(C){var N=this.visibleIndexes,F=N.length;return C>F-1?F:N[C]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(C){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var N=this.getChildrenNodes();N[C].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(C){this.context=this.getUnderlyingVm(C.item),C.item._underlying_vm_=this.clone(this.context.element),U=C.item},onDragAdd:function(C){var N=C.item._underlying_vm_;if(N!==void 0){Object(_.d)(C.item);var F=this.getVmIndex(C.newIndex);this.spliceList(F,0,N),this.computeIndexes();var j={element:N,newIndex:F};this.emitChanges({added:j})}},onDragRemove:function(C){if(Object(_.c)(this.rootContainer,C.item,C.oldIndex),C.pullMode==="clone"){Object(_.d)(C.clone);return}var N=this.context.index;this.spliceList(N,1);var F={element:this.context.element,oldIndex:N};this.resetTransitionData(N),this.emitChanges({removed:F})},onDragUpdate:function(C){Object(_.d)(C.item),Object(_.c)(C.from,C.item,C.oldIndex);var N=this.context.index,F=this.getVmIndex(C.newIndex);this.updatePosition(N,F);var j={element:this.context.element,oldIndex:N,newIndex:F};this.emitChanges({moved:j})},updateProperty:function(C,N){C.hasOwnProperty(N)&&(C[N]+=this.headerOffset)},computeFutureIndex:function(C,N){if(!C.element)return 0;var F=b(N.to.children).filter(function(H){return H.style.display!=="none"}),j=F.indexOf(N.related),L=C.component.getVmIndex(j),M=F.indexOf(U)!==-1;return M||!N.willInsertAfter?L:L+1},onDragMove:function(C,N){var F=this.move;if(!F||!this.realList)return!0;var j=this.getRelatedContextFromMoveEvent(C),L=this.context,M=this.computeFutureIndex(j,C);Object.assign(L,{futureIndex:M});var H=Object.assign({},C,{relatedContext:j,draggedContext:L});return F(H,N)},onDragEnd:function(){this.computeIndexes(),U=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var R=q;o.default=R}}).default})})(Qr);var Oi=Mr(Qr.exports),nl=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-record"},[n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",width:"600",offset:-172},model:{value:e.showPropover,callback:function(t){e.showPropover=t},expression:"showPropover"}},[n("div",{staticClass:"ui-record__list"},[n("div",{staticClass:"ui-record__saves"},e._l(e.recordData.saves,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.labels.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o,"saves")}}},[n("div",{staticStyle:{position:"absolute","z-index":"-1"}},[e.$refs["EditLabelTitle_"+o]&&e.$refs["EditLabelTitle_"+o][0]?n("el-popover",{ref:"EditLabelTitlePopover_"+o,refInFor:!0,attrs:{reference:e.$refs["EditLabelTitle_"+o][0],placement:"top",width:"160"}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",placeholder:"\u8BF7\u8F93\u5165\u7B5B\u9009\u6807\u9898"},model:{value:e.changeLabelTitleVal,callback:function(i){e.changeLabelTitleVal=i},expression:"changeLabelTitleVal"}}),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){e.$refs["EditLabelTitlePopover_"+o][0].doClose()}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfirmChangeLabelTitle(o)}}},[e._v("\u786E\u5B9A")])],1)],1):e._e()],1),n("div",[t.title?n("div",{staticClass:"ui-desc__title"},[n("span",[e._v(e._s(t.title))])]):n("div",{staticClass:"ui-desc__title"},e._l(t.labels,function(i,s){return n("span",{key:s},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0)]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u4FEE\u6539\u7B5B\u9009\u6807\u9898",placement:"top-start"}},[n("i",{ref:"EditLabelTitle_"+o,refInFor:!0,staticClass:"el-icon-edit ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleShowChangeLabelTitle(t)}}})]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u79FB\u9664\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-remove ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"saves")}}})])],1)}),0),n("div",{staticClass:"ui-record__temps"},e._l(e.recordData.temps,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o)}}},[n("div",{staticClass:"ui-desc__title"},e._l(t,function(i,s){return n("span",{key:s},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u6DFB\u52A0\u5230\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-circle-plus ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"temps")}}})])],1)}),0)]),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u7B5B\u9009\u5386\u53F2 "),n("i",{staticClass:"el-icon-caret-right"})])],1)],1)},rl=[],Wf="";const il={props:{configKey:{type:String,default:""},current:{type:Array,default(){return[]}}},data(){return{showPropover:!1,recordData:{saves:[],temps:[]},changeLabelTitleShow:!1,changeLabelTitleVal:"",changeLabelTitleItem:{}}},async mounted(){setTimeout(async()=>{let e=await this.$parent.getConfigCache(`SaveRecord_${this.configKey}`);const r=Object.entries(e).length?e:{saves:[],temps:[]};r.saves[0]&&Array.isArray(r.saves[0])&&(r.saves=r.saves.map(n=>({labels:n,title:""}))),this.recordData=r},500)},methods:{handleOperation(e,r){if(r=="temps"){const n=this.recordData.temps[e];this.recordData.saves.unshift({labels:n,title:""}),this.$nextTick().then(()=>{this.$forceUpdate()})}else this.recordData.saves.splice(e,1);this.handelSaveRecord()},async handleShortcut(e,r,n){if(this.$parent.$children.forEach(t=>{const o=(e.labels||e).find(i=>i.label==t.label);if(o){Array.isArray(o.value)?t.staticOptions.splice(0,t.staticOptions.length,...o.value.map((i,s)=>({label:o.valueLabel[s],value:i}))):t.staticOptions.splice(0,t.staticOptions.length,{label:o.valueLabel,value:o.value}),t.modelForm=o.value;try{if(o.prependValue&&t.$slots.prepend){const i=t.$options.propsData.type&&["input","password"].includes(t.$options.propsData.type)?t.$children[0]:t.$children[0].$children[0];i.$options._componentTag=="com-form-item"?i.$emit("changes",o.prependValue):i.$emit("input",o.prependValue)}}catch(i){console.log(i)}}else t.label&&t.$el.style.display!=="none"&&(Array.isArray(t.modelForm)?t.modelForm=[]:typeof t.modelForm=="number"?t.modelForm=void 0:t.modelForm="")}),n=="saves"){const t=this.recordData.saves[r];this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(t[0])}else{const t=this.recordData.temps.splice(r,1);this.recordData.temps.unshift(...t),this.handelSaveRecord(),this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(t[0])}},handelSaveRecord(){this.recordData.temps.length>10&&this.recordData.temps.splice(10),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)},handleShowChangeLabelTitle(e){this.changeLabelTitleShow=!0,this.changeLabelTitleItem=e},handleConfirmChangeLabelTitle(e){this.changeLabelTitleItem.title=this.changeLabelTitleVal,this.changeLabelTitleVal="",this.$refs[`EditLabelTitlePopover_${e}`][0].doClose(),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)}},watch:{current:{handler(e){e.length&&this.recordData.temps.findIndex(n=>{const t=JSON.parse(JSON.stringify(n)).sort((i,s)=>i.label.localeCompare(s.label)),o=JSON.parse(JSON.stringify(e)).sort((i,s)=>i.label.localeCompare(s.label));return JSON.stringify(t)==JSON.stringify(o)})<0&&(this.recordData.temps.unshift(e),this.handelSaveRecord())},deep:!0}}},Si={};var ol=be(il,nl,rl,!1,al,"5783105a",null,null);function al(e){for(let r in Si)this[r]=Si[r]}var ll=function(){return ol.exports}();const sl={props:{vnode:{type:[Object,Function],default:()=>{}}},data(){return{}},render(e){const r=this._props.vnode,n=r.$slots.prepend,t=r.$slots.append,o=r.$slots.label;return e(this._props.vnode.constructor,{on:r.$listeners,props:r.$options.propsData,attrs:r.$attrs,staticStyle:r.staticStyle,ref:r.ref},[n?[e("div",{slot:"prepend"},n)]:[],t?[e("div",{slot:"append"},t)]:[],o?[e("div",{slot:"label",class:"ui-item__label"},o)]:[]])}};let ul,fl;const Ei={};var cl=be(sl,ul,fl,!1,dl,null,null,null);function dl(e){for(let r in Ei)this[r]=Ei[r]}var hl=function(){return cl.exports}();function pl(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,s=t.noLeading,d=s===void 0?!1:s,c=t.debounceMode,h=c===void 0?void 0:c,f,l=!1,a=0;function u(){f&&clearTimeout(f)}function v(b){var m=b||{},y=m.upcomingOnly,_=y===void 0?!1:y;u(),l=!_}function p(){for(var b=arguments.length,m=new Array(b),y=0;y<b;y++)m[y]=arguments[y];var _=this,g=Date.now()-a;if(l)return;function O(){a=Date.now(),r.apply(_,m)}function k(){f=void 0}!d&&h&&!f&&O(),u(),h===void 0&&g>e?d?(a=Date.now(),i||(f=setTimeout(h?k:O,e))):O():i!==!0&&(f=setTimeout(h?k:O,h===void 0?e-g:e))}return p.cancel=v,p}function On(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return pl(e,r,{debounceMode:i!==!1})}function xi(e=0,r=!0,n=null){var d;const t=n?n.map(c=>document.querySelector(c)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const c=document.querySelector(".ui-pagination"),h=document.querySelector(".ui-container__header"),f=(h==null?void 0:h.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),l=document.querySelector(".ui-table__tab");o.push(...[(c==null?void 0:c.offsetHeight)||0,(h==null?void 0:h.offsetHeight)||0,(f==null?void 0:f.offsetHeight)||0,(l==null?void 0:l.offsetHeight)||0].filter(a=>!!a))}let i=e+o.reduce((c,h)=>c+h,0),s=navigator.userAgent;for(let c=0;c<t.length;c++){let h=t[c];if(!h||h.className.indexOf("ui-table")>-1)continue;i+=h.offsetHeight;let f,l,a=(d=document==null?void 0:document.defaultView)==null?void 0:d.getComputedStyle(h);if(s.indexOf("Firefox")>-1)l=parseInt(a["margin-top"])+parseInt(a["margin-bottom"]);else if(s.indexOf("compatible")>-1&&s.indexOf("MSIE")>-1&&!(s.indexOf("Opera")>-1)){let u=h.currentStyle;l=parseInt(u.marginTop)+parseInt(u.marginBottom)}else if(f=a.margin.split(" "),f.length==1)l=parseInt(f[0])*2;else{const[u,v,p,b]=f;l=parseInt(p)?parseInt(u)+parseInt(p):parseInt(u)}i=l+i}return i=window.innerHeight-i,i}function vl(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var ml=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSearch,expression:"loadSearch"}],ref:"Search",staticClass:"ui-search",style:{overflow:e.collspase?"hidden":"unset"}},[e.loadingConfig?n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-search--mask",attrs:{"element-loading-text":"\u52A0\u8F7D\u914D\u7F6E\u4E2D","element-loading-background":"rgba(255, 255, 255, 1)"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__main",class:{loaddone:e.loadingConfig==!1}},[e.useConfig?n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2):e._t("default"),!e.loadSearch&&e.useConfig?e._l(e.childItems,function(t,o){return n("DefaultItem",{key:o,ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})}):e._e()],2),n("div",{staticClass:"ui-search__diy"},[e._t("diy")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__footer"},[n("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")]),n("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small",icon:"el-icon-search",type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("\u67E5\u8BE2")]),n("div",{staticStyle:{"align-self":"flex-end"}},[e.showMore?n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover "+e.popoverClass,offset:-172,width:e.containerWidth}},[n("div",{staticClass:"ui-more__select"},[n("el-row",e._l(e.hideItems,function(t,o){return n("el-col",e._b({key:o},"el-col",Object.assign({},{span:4},t.$attrs,t.$options.propsData),!1),[!e.loadSearch&&e.useConfig?[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]:e.loadSearch?e._e():[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]],2)}),1)],1),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u66F4\u591A\u7B5B\u9009 "),n("i",{staticClass:"el-icon-caret-right"})])],1):e._e()],1),e.useConfig?n("el-button",{staticClass:"ui-search__button--more",attrs:{type:"text"},on:{click:e.handleShowConfig}},[e._v("\u7B5B\u9009\u914D\u7F6E "),n("i",{staticClass:"el-icon-setting"})]):e._e(),n("Record",{attrs:{"config-key":e.configKey,current:e.searchLoc}}),e._t("footer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache",attrs:{title:e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")}},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collspase,expression:"!collspase"}],staticClass:"ui-collspase--cache"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark","popper-class":"ui-search__cache__popper",placement:"bottom-start"},scopedSlots:e._u([{key:"content",fn:function(){return[n("p",{staticStyle:{"line-height":"18px"}},[e._v(e._s(e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")))])]},proxy:!0}])},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache"},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)])],1),n("div",{staticClass:"ui-collspase",class:{"ui-collspase--open":e.collspase},on:{click:function(t){e.collspase=!e.collspase}}},[n("span",{class:e.collspase?"el-icon-caret-top":"el-icon-caret-bottom"})]),n("el-drawer",{attrs:{title:"\u7B5B\u9009\u914D\u7F6E",direction:"btt",size:"100%",withHeader:!1,modal:!1,"modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content"},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t,o){return n("el-checkbox",{key:o,attrs:{border:"",label:t}})}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleResetField}},[e._v("\u91CD\u7F6E")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")])],1)])])],1)},gl=[],Gf="";const yl={name:"ComSearch",components:{draggable:Oi,Record:ll,DefaultItem:hl},props:{searchCfg:{type:Array,default(){return[]}},flagId:{type:String,default:""},useConfig:{type:Boolean,default:!0},popoverClass:{type:String,default:""}},data(){return{containerWidth:"200px",hideItems:[],defaultVNode:[],defaultItems:[],showConfig:!1,checkItems:[],sortItems:[],loadSearch:!1,searchLoc:[],childItems:[],defaultChildItems:[],initLoad:!1,configKey:this.flagId||this.$route.path,handleWindowResize:null,waitTimeout:"",searchHeight:"",listenerSearchTimes:"",collspase:!0,showTip:!1,localConfig:null,loadingConfig:null}},computed:{showMore(){return!!this.hideItems.length},ConfigRefs(){return Object.entries(this.$refs).reduce((e,[r,n])=>{if(r.indexOf("Config_")>-1){const t=r.replace("Config_",""),o=n[0].$refs[t];return ve(ve({},e),o?{[t]:o.$refs[o.type]}:{})}},{})}},methods:{handleQuery(e){const r=(o,i)=>o?o instanceof Date?!1:Array.isArray(o)&&i=="inputrange"?!o[0]&&!o[1]:o instanceof Object?!Object.entries(o).length:!1:typeof o!="boolean";this.searchLoc=Array.isArray(e)?e:this.$children.reduce((o,i)=>{var s,d;if(i.label&&!r(i.modelForm,i.type)){let c;i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var a;return((a=[...i.selectOption,...i.staticOptions].find(u=>u.value==l))==null?void 0:a.label)||l}):c=((s=[...i.selectOption,...i.staticOptions].find(l=>l.value==i.modelForm))==null?void 0:s.label)||i.modelForm:Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var a;return((a=i.staticOptions.find(u=>u.value==l))==null?void 0:a.label)||l}):c=((d=i.staticOptions.find(l=>l.value==i.modelForm))==null?void 0:d.label)||i.modelForm;let h,f;if(i.$slots.prepend){const l=i.$slots.prepend[0].componentOptions.propsData;h=l.value||l.model,l.options&&(f=l.options[h])}return[...o,{label:i.label,value:i.modelForm,valueLabel:c,prependValue:h,prependLabel:f}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(ve({},t.defaultParams||{})):this.$emit("query")},handleReset(){const e=this.$parent.handleReset;e?e():this.$emit("reset")},waitRenderItem(){return new Promise(e=>{clearTimeout(this.waitTimeout);const r=this.$refs.Search.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");for(let n=0;n<r.length;n++)if(r[n].getBoundingClientRect().right>0)return e(!0);this.waitTimeout=setTimeout(async()=>{e(await this.waitRenderItem())},100)})},async handleLayoutItem(e=!1){await this.waitRenderItem();const r=this.$refs.Search,n=r.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");n.forEach(i=>i.className=i.className.replace("ui-form__item--hide",""));const{right:t}=r.getBoundingClientRect();this.containerWidth=r.offsetWidth-80,this.useConfig&&n.forEach(i=>{try{const s=i.__vue__.label||i.__vue__.$children[0].label;this.checkItems.includes(s)?i.style.display="block":i.style.display="none"}catch{console.log(i.__vue__,i)}});const o=[];n.forEach(i=>{const{right:s}=i.getBoundingClientRect();s>t&&(i.className=`${i.className} ui-form__item--hide`,o.push(i))}),e!==!0&&(this.useConfig?this.hideItems=o.map(i=>this.childItems.find((s,d)=>{const c=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return s.$options.propsData.label==c.propsData.label})).filter(i=>!!i):this.hideItems=this.$children.filter(i=>i.$el.className.indexOf("ui-form__item--hide")>-1),this.loadSearch=!1)},changeOptions(e){this.$parent.changeOptions(e)},handleShowConfig(){this.showConfig=!0},handleResetField(){this.loadingConfig=!0,this.checkItems=JSON.parse(JSON.stringify(this.defaultChildItems)),this.sortItems=JSON.parse(JSON.stringify(this.defaultChildItems));const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e),this.showConfig=!1,this.$nextTick(()=>{this.handleRenderConfig(),setTimeout(()=>{this.loadingConfig=!1},200)})},async handleRenderConfig(){const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e);const r=this.sortItems.map(n=>this.childItems.find(o=>o.$options.propsData.label==n));this.childItems=r,await this.$nextTick(),this.showConfig=!1,this.handleLayoutItem()},listenerSearchHeight(){this.searchHeight=this.$refs.Search.offsetHeight,this.listenerSearchTimes=setInterval(()=>{if(this.searchHeight!=this.$refs.Search.offsetHeight){this.searchHeight=this.$refs.Search.offsetHeight;const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}},200)},async setConfigCache(e,r){if(!this.$UICONFIG||!this.$UICONFIG.setCacheApi){localStorage.setItem(e,JSON.stringify(r));return}this.localConfig[e]=JSON.stringify(r),await this.$http.post(this.$UICONFIG.setCacheApi,{code:this.configKey,datas:this.localConfig})},async getConfigCache(e){if(!this.$UICONFIG||!this.$UICONFIG.getCacheApi)return this.loadingConfig=!1,JSON.parse(localStorage.getItem(e)||"{}");if(!this.localConfig){this.loadingConfig=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getCacheApi,{code:this.configKey});setTimeout(()=>{this.loadingConfig=!1},200),this.localConfig=Object.entries(r.data?r.data:r).length?r.data?r.data:r:{}}return JSON.parse(this.localConfig[e]||"{}")}},async mounted(){if(this.childItems=this.$slots.default.map(e=>({componentOptions:e.componentOptions,$attrs:e.componentInstance.$attrs,constructor:e.componentInstance.constructor,$listeners:e.componentInstance.$listeners,$options:e.componentInstance.$options,$scopedSlots:e.componentInstance.$scopedSlots,$slots:e.componentInstance.$slots,staticStyle:e.data.staticStyle,ref:e.data.ref})),this.initLoad=!0,await this.$nextTick(),this.useConfig){this.checkItems=this.childItems.map(r=>r.$options.propsData.label),this.sortItems=this.childItems.map(r=>r.$options.propsData.label),this.defaultChildItems=JSON.parse(JSON.stringify(this.checkItems)),this.handleLayoutItem();const e=await this.getConfigCache(`SearchCfg__${this.configKey}`);if(e.checkItems){await this.$nextTick();const r=this.sortItems.findIndex(n=>!e.sortItems.includes(n));if(r>-1){const n=this.sortItems[r];e.checkItems.push(n),e.sortItems.splice(r,0,n)}this.checkItems=e.checkItems.filter(n=>this.sortItems.includes(n)),this.sortItems=e.sortItems.filter(n=>this.sortItems.includes(n)),this.handleRenderConfig()}}else this.loadSearch=!1,this.handleLayoutItem();this.handleWindowResize=On(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await vl(300),this.listenerSearchHeight()},activated(){this.handleLayoutItem()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),clearInterval(this.listenerSearchTimes)},watch:{childItems(){this.loadSearch=!0,this.$nextTick().then(()=>{this.loadSearch=!1})},hideItems(e,r){r.length==e.length&&r.length==0||(this.loadSearch=!0,this.$nextTick().then(async()=>{this.loadSearch=!1,await this.$nextTick(),this.handleLayoutItem(!0)}))},collspase(){const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}}},wi={};var bl=be(yl,ml,gl,!1,_l,"7ac36393",null,null);function _l(e){for(let r in wi)this[r]=wi[r]}var Sn=function(){return bl.exports}();Sn.install=e=>{e.component(Sn.name,Sn)};const Ai=Sn;var Ol=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),t=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Ti=typeof Symbol!="undefined"&&Symbol,Sl=Ol,El=function(){return typeof Ti!="function"||typeof Symbol!="function"||typeof Ti("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Sl()},xl="Function.prototype.bind called on incompatible ",rr=Array.prototype.slice,wl=Object.prototype.toString,Al="[object Function]",Tl=function(r){var n=this;if(typeof n!="function"||wl.call(n)!==Al)throw new TypeError(xl+n);for(var t=rr.call(arguments,1),o,i=function(){if(this instanceof o){var f=n.apply(this,t.concat(rr.call(arguments)));return Object(f)===f?f:this}else return n.apply(r,t.concat(rr.call(arguments)))},s=Math.max(0,n.length-t.length),d=[],c=0;c<s;c++)d.push("$"+c);if(o=Function("binder","return function ("+d.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var h=function(){};h.prototype=n.prototype,o.prototype=new h,h.prototype=null}return o},Cl=Tl,ir=Function.prototype.bind||Cl,kl=ir,Il=kl.call(Function.call,Object.prototype.hasOwnProperty),de,Ht=SyntaxError,Ci=Function,Ot=TypeError,or=function(e){try{return Ci('"use strict"; return ('+e+").constructor;")()}catch{}},vt=Object.getOwnPropertyDescriptor;if(vt)try{vt({},"")}catch{vt=null}var ar=function(){throw new Ot},Nl=vt?function(){try{return arguments.callee,ar}catch{try{return vt(arguments,"callee").get}catch{return ar}}}():ar,St=El(),at=Object.getPrototypeOf||function(e){return e.__proto__},Et={},Pl=typeof Uint8Array=="undefined"?de:at(Uint8Array),xt={"%AggregateError%":typeof AggregateError=="undefined"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?de:ArrayBuffer,"%ArrayIteratorPrototype%":St?at([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":Et,"%AsyncGenerator%":Et,"%AsyncGeneratorFunction%":Et,"%AsyncIteratorPrototype%":Et,"%Atomics%":typeof Atomics=="undefined"?de:Atomics,"%BigInt%":typeof BigInt=="undefined"?de:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?de:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?de:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?de:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?de:FinalizationRegistry,"%Function%":Ci,"%GeneratorFunction%":Et,"%Int8Array%":typeof Int8Array=="undefined"?de:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?de:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":St?at(at([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map=="undefined"?de:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!St?de:at(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?de:Promise,"%Proxy%":typeof Proxy=="undefined"?de:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?de:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?de:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!St?de:at(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":St?at(""[Symbol.iterator]()):de,"%Symbol%":St?Symbol:de,"%SyntaxError%":Ht,"%ThrowTypeError%":Nl,"%TypedArray%":Pl,"%TypeError%":Ot,"%Uint8Array%":typeof Uint8Array=="undefined"?de:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?de:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?de:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?de:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?de:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?de:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?de:WeakSet},Ll=function e(r){var n;if(r==="%AsyncFunction%")n=or("async function () {}");else if(r==="%GeneratorFunction%")n=or("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=or("async function* () {}");else if(r==="%AsyncGenerator%"){var t=e("%AsyncGeneratorFunction%");t&&(n=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(n=at(o.prototype))}return xt[r]=n,n},ki={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},En=ir,xn=Il,Dl=En.call(Function.call,Array.prototype.concat),$l=En.call(Function.apply,Array.prototype.splice),Ii=En.call(Function.call,String.prototype.replace),wn=En.call(Function.call,String.prototype.slice),Rl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ml=/\\(\\)?/g,Fl=function(r){var n=wn(r,0,1),t=wn(r,-1);if(n==="%"&&t!=="%")throw new Ht("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new Ht("invalid intrinsic syntax, expected opening `%`");var o=[];return Ii(r,Rl,function(i,s,d,c){o[o.length]=d?Ii(c,Ml,"$1"):s||i}),o},jl=function(r,n){var t=r,o;if(xn(ki,t)&&(o=ki[t],t="%"+o[0]+"%"),xn(xt,t)){var i=xt[t];if(i===Et&&(i=Ll(t)),typeof i=="undefined"&&!n)throw new Ot("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:i}}throw new Ht("intrinsic "+r+" does not exist!")},lr=function(r,n){if(typeof r!="string"||r.length===0)throw new Ot("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ot('"allowMissing" argument must be a boolean');var t=Fl(r),o=t.length>0?t[0]:"",i=jl("%"+o+"%",n),s=i.name,d=i.value,c=!1,h=i.alias;h&&(o=h[0],$l(t,Dl([0,1],h)));for(var f=1,l=!0;f<t.length;f+=1){var a=t[f],u=wn(a,0,1),v=wn(a,-1);if((u==='"'||u==="'"||u==="`"||v==='"'||v==="'"||v==="`")&&u!==v)throw new Ht("property names with quotes must have matching quotes");if((a==="constructor"||!l)&&(c=!0),o+="."+a,s="%"+o+"%",xn(xt,s))d=xt[s];else if(d!=null){if(!(a in d)){if(!n)throw new Ot("base intrinsic for "+r+" exists, but the property is not available.");return}if(vt&&f+1>=t.length){var p=vt(d,a);l=!!p,l&&"get"in p&&!("originalValue"in p.get)?d=p.get:d=d[a]}else l=xn(d,a),d=d[a];l&&!c&&(xt[s]=d)}}return d},Ni={exports:{}};(function(e){var r=ir,n=lr,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),s=n("%Object.getOwnPropertyDescriptor%",!0),d=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(d)try{d({},"a",{value:1})}catch{d=null}e.exports=function(l){var a=i(r,o,arguments);if(s&&d){var u=s(a,"length");u.configurable&&d(a,"length",{value:1+c(0,l.length-(arguments.length-1))})}return a};var h=function(){return i(r,t,arguments)};d?d(e.exports,"apply",{value:h}):e.exports.apply=h})(Ni);var Pi=lr,Li=Ni.exports,Bl=Li(Pi("String.prototype.indexOf")),ql=function(r,n){var t=Pi(r,!!n);return typeof t=="function"&&Bl(r,".prototype.")>-1?Li(t):t},Ul={},Hl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ul}),zl=Fr(Hl),sr=typeof Map=="function"&&Map.prototype,ur=Object.getOwnPropertyDescriptor&&sr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,An=sr&&ur&&typeof ur.get=="function"?ur.get:null,Wl=sr&&Map.prototype.forEach,fr=typeof Set=="function"&&Set.prototype,cr=Object.getOwnPropertyDescriptor&&fr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Tn=fr&&cr&&typeof cr.get=="function"?cr.get:null,Gl=fr&&Set.prototype.forEach,Kl=typeof WeakMap=="function"&&WeakMap.prototype,zt=Kl?WeakMap.prototype.has:null,Vl=typeof WeakSet=="function"&&WeakSet.prototype,Wt=Vl?WeakSet.prototype.has:null,Yl=typeof WeakRef=="function"&&WeakRef.prototype,Di=Yl?WeakRef.prototype.deref:null,Xl=Boolean.prototype.valueOf,Zl=Object.prototype.toString,Jl=Function.prototype.toString,Ql=String.prototype.match,dr=String.prototype.slice,lt=String.prototype.replace,es=String.prototype.toUpperCase,$i=String.prototype.toLowerCase,Ri=RegExp.prototype.test,Mi=Array.prototype.concat,Xe=Array.prototype.join,ts=Array.prototype.slice,Fi=Math.floor,hr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,pr=Object.getOwnPropertySymbols,vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,wt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",De=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wt?"object":"symbol")?Symbol.toStringTag:null,ji=Object.prototype.propertyIsEnumerable,Bi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function qi(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ri.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Fi(-e):Fi(e);if(t!==e){var o=String(t),i=dr.call(r,o.length+1);return lt.call(o,n,"$&_")+"."+lt.call(lt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lt.call(r,n,"$&_")}var mr=zl,Ui=mr.custom,Hi=Gi(Ui)?Ui:null,ns=function e(r,n,t,o){var i=n||{};if(st(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(st(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=st(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(st(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(st(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Vi(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var c=String(r);return d?qi(r,c):c}if(typeof r=="bigint"){var h=String(r)+"n";return d?qi(r,h):h}var f=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=f&&f>0&&typeof r=="object")return gr(r)?"[Array]":"[Object]";var l=_s(i,t);if(typeof o=="undefined")o=[];else if(Ki(o,r)>=0)return"[Circular]";function a(I,D,$){if(D&&(o=ts.call(o),o.push(D)),$){var B={depth:i.depth};return st(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(I,B,t+1,o)}return e(I,i,t+1,o)}if(typeof r=="function"&&!Wi(r)){var u=cs(r),v=Cn(r,a);return"[Function"+(u?": "+u:" (anonymous)")+"]"+(v.length>0?" { "+Xe.call(v,", ")+" }":"")}if(Gi(r)){var p=wt?lt.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):vr.call(r);return typeof r=="object"&&!wt?Gt(p):p}if(gs(r)){for(var b="<"+$i.call(String(r.nodeName)),m=r.attributes||[],y=0;y<m.length;y++)b+=" "+m[y].name+"="+zi(rs(m[y].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+$i.call(String(r.nodeName))+">",b}if(gr(r)){if(r.length===0)return"[]";var _=Cn(r,a);return l&&!bs(_)?"["+br(_,l)+"]":"[ "+Xe.call(_,", ")+" ]"}if(os(r)){var g=Cn(r,a);return!("cause"in Error.prototype)&&"cause"in r&&!ji.call(r,"cause")?"{ ["+String(r)+"] "+Xe.call(Mi.call("[cause]: "+a(r.cause),g),", ")+" }":g.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Xe.call(g,", ")+" }"}if(typeof r=="object"&&s){if(Hi&&typeof r[Hi]=="function"&&mr)return mr(r,{depth:f-t});if(s!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(ds(r)){var O=[];return Wl.call(r,function(I,D){O.push(a(D,r,!0)+" => "+a(I,r))}),Yi("Map",An.call(r),O,l)}if(vs(r)){var k=[];return Gl.call(r,function(I){k.push(a(I,r))}),Yi("Set",Tn.call(r),k,l)}if(hs(r))return yr("WeakMap");if(ms(r))return yr("WeakSet");if(ps(r))return yr("WeakRef");if(ls(r))return Gt(a(Number(r)));if(us(r))return Gt(a(hr.call(r)));if(ss(r))return Gt(Xl.call(r));if(as(r))return Gt(a(String(r)));if(!is(r)&&!Wi(r)){var T=Cn(r,a),A=Bi?Bi(r)===Object.prototype:r instanceof Object||r.constructor===Object,P=r instanceof Object?"":"null prototype",x=!A&&De&&Object(r)===r&&De in r?dr.call(ut(r),8,-1):P?"Object":"",S=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",w=S+(x||P?"["+Xe.call(Mi.call([],x||[],P||[]),": ")+"] ":"");return T.length===0?w+"{}":l?w+"{"+br(T,l)+"}":w+"{ "+Xe.call(T,", ")+" }"}return String(r)};function zi(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function rs(e){return lt.call(String(e),/"/g,""")}function gr(e){return ut(e)==="[object Array]"&&(!De||!(typeof e=="object"&&De in e))}function is(e){return ut(e)==="[object Date]"&&(!De||!(typeof e=="object"&&De in e))}function Wi(e){return ut(e)==="[object RegExp]"&&(!De||!(typeof e=="object"&&De in e))}function os(e){return ut(e)==="[object Error]"&&(!De||!(typeof e=="object"&&De in e))}function as(e){return ut(e)==="[object String]"&&(!De||!(typeof e=="object"&&De in e))}function ls(e){return ut(e)==="[object Number]"&&(!De||!(typeof e=="object"&&De in e))}function ss(e){return ut(e)==="[object Boolean]"&&(!De||!(typeof e=="object"&&De in e))}function Gi(e){if(wt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!vr)return!1;try{return vr.call(e),!0}catch{}return!1}function us(e){if(!e||typeof e!="object"||!hr)return!1;try{return hr.call(e),!0}catch{}return!1}var fs=Object.prototype.hasOwnProperty||function(e){return e in this};function st(e,r){return fs.call(e,r)}function ut(e){return Zl.call(e)}function cs(e){if(e.name)return e.name;var r=Ql.call(Jl.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function Ki(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,t=e.length;n<t;n++)if(e[n]===r)return n;return-1}function ds(e){if(!An||!e||typeof e!="object")return!1;try{An.call(e);try{Tn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function hs(e){if(!zt||!e||typeof e!="object")return!1;try{zt.call(e,zt);try{Wt.call(e,Wt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ps(e){if(!Di||!e||typeof e!="object")return!1;try{return Di.call(e),!0}catch{}return!1}function vs(e){if(!Tn||!e||typeof e!="object")return!1;try{Tn.call(e);try{An.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ms(e){if(!Wt||!e||typeof e!="object")return!1;try{Wt.call(e,Wt);try{zt.call(e,zt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function gs(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Vi(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return Vi(dr.call(e,0,r.maxStringLength),r)+t}var o=lt.call(lt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ys);return zi(o,"single",r)}function ys(e){var r=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return n?"\\"+n:"\\x"+(r<16?"0":"")+es.call(r.toString(16))}function Gt(e){return"Object("+e+")"}function yr(e){return e+" { ? }"}function Yi(e,r,n,t){var o=t?br(n,t):Xe.call(n,", ");return e+" ("+r+") {"+o+"}"}function bs(e){for(var r=0;r<e.length;r++)if(Ki(e[r],`
|
|
22
|
+
`)>=0)return!1;return!0}function _s(e,r){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Xe.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Xe.call(Array(r+1),n)}}function br(e,r){if(e.length===0)return"";var n=`
|
|
23
23
|
`+r.prev+r.base;return n+Xe.call(e,","+n)+`
|
|
24
|
-
`+r.prev}function Cn(e,r){var n=mr(e),t=[];if(n){t.length=e.length;for(var o=0;o<e.length;o++)t[o]=st(e,o)?r(e[o],e):""}var i=typeof hr=="function"?hr(e):[],s;if(wt){s={};for(var d=0;d<i.length;d++)s["$"+i[d]]=i[d]}for(var c in e)!st(e,c)||n&&String(Number(c))===c&&c<e.length||wt&&s["$"+c]instanceof Symbol||($i.call(/[^\w$]/,c)?t.push(r(c,e)+": "+r(e[c],e)):t.push(c+": "+r(e[c],e)));if(typeof hr=="function")for(var h=0;h<i.length;h++)Fi.call(e,i[h])&&t.push("["+r(i[h])+"]: "+r(e[i[h]],e));return t}var br=ar,At=jl,bs=es,_s=br("%TypeError%"),kn=br("%WeakMap%",!0),Nn=br("%Map%",!0),Os=At("WeakMap.prototype.get",!0),Ss=At("WeakMap.prototype.set",!0),Es=At("WeakMap.prototype.has",!0),xs=At("Map.prototype.get",!0),ws=At("Map.prototype.set",!0),As=At("Map.prototype.has",!0),_r=function(e,r){for(var n=e,t;(t=n.next)!==null;n=t)if(t.key===r)return n.next=t.next,t.next=e.next,e.next=t,t},Ts=function(e,r){var n=_r(e,r);return n&&n.value},Cs=function(e,r,n){var t=_r(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},ks=function(e,r){return!!_r(e,r)},Ns=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new _s("Side channel does not contain "+bs(i))},get:function(i){if(kn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Os(r,i)}else if(Nn){if(n)return xs(n,i)}else if(t)return Ts(t,i)},has:function(i){if(kn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Es(r,i)}else if(Nn){if(n)return As(n,i)}else if(t)return ks(t,i);return!1},set:function(i,s){kn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new kn),Ss(r,i,s)):Nn?(n||(n=new Nn),ws(n,i,s)):(t||(t={key:{},next:null}),Cs(t,i,s))}};return o},Is=String.prototype.replace,Ps=/%20/g,Or={RFC1738:"RFC1738",RFC3986:"RFC3986"},Sr={default:Or.RFC3986,formatters:{RFC1738:function(e){return Is.call(e,Ps,"+")},RFC3986:function(e){return String(e)}},RFC1738:Or.RFC1738,RFC3986:Or.RFC3986},Ls=Sr,Er=Object.prototype.hasOwnProperty,mt=Array.isArray,Ze=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),Ds=function(r){for(;r.length>1;){var n=r.pop(),t=n.obj[n.prop];if(mt(t)){for(var o=[],i=0;i<t.length;++i)typeof t[i]!="undefined"&&o.push(t[i]);n.obj[n.prop]=o}}},Yi=function(r,n){for(var t=n&&n.plainObjects?Object.create(null):{},o=0;o<r.length;++o)typeof r[o]!="undefined"&&(t[o]=r[o]);return t},$s=function e(r,n,t){if(!n)return r;if(typeof n!="object"){if(mt(r))r.push(n);else if(r&&typeof r=="object")(t&&(t.plainObjects||t.allowPrototypes)||!Er.call(Object.prototype,n))&&(r[n]=!0);else return[r,n];return r}if(!r||typeof r!="object")return[r].concat(n);var o=r;return mt(r)&&!mt(n)&&(o=Yi(r,t)),mt(r)&&mt(n)?(n.forEach(function(i,s){if(Er.call(r,s)){var d=r[s];d&&typeof d=="object"&&i&&typeof i=="object"?r[s]=e(d,i,t):r.push(i)}else r[s]=i}),r):Object.keys(n).reduce(function(i,s){var d=n[s];return Er.call(i,s)?i[s]=e(i[s],d,t):i[s]=d,i},o)},Rs=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},Ms=function(e,r,n){var t=e.replace(/\+/g," ");if(n==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},Fs=function(r,n,t,o,i){if(r.length===0)return r;var s=r;if(typeof r=="symbol"?s=Symbol.prototype.toString.call(r):typeof r!="string"&&(s=String(r)),t==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var d="",c=0;c<s.length;++c){var h=s.charCodeAt(c);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===Ls.RFC1738&&(h===40||h===41)){d+=s.charAt(c);continue}if(h<128){d=d+Ze[h];continue}if(h<2048){d=d+(Ze[192|h>>6]+Ze[128|h&63]);continue}if(h<55296||h>=57344){d=d+(Ze[224|h>>12]+Ze[128|h>>6&63]+Ze[128|h&63]);continue}c+=1,h=65536+((h&1023)<<10|s.charCodeAt(c)&1023),d+=Ze[240|h>>18]+Ze[128|h>>12&63]+Ze[128|h>>6&63]+Ze[128|h&63]}return d},js=function(r){for(var n=[{obj:{o:r},prop:"o"}],t=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],d=Object.keys(s),c=0;c<d.length;++c){var h=d[c],f=s[h];typeof f=="object"&&f!==null&&t.indexOf(f)===-1&&(n.push({obj:s,prop:h}),t.push(f))}return Ds(n),r},Bs=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},qs=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},Us=function(r,n){return[].concat(r,n)},Hs=function(r,n){if(mt(r)){for(var t=[],o=0;o<r.length;o+=1)t.push(n(r[o]));return t}return n(r)},Xi={arrayToObject:Yi,assign:Rs,combine:Us,compact:js,decode:Ms,encode:Fs,isBuffer:qs,isRegExp:Bs,maybeMap:Hs,merge:$s},Zi=Ns,xr=Xi,Kt=Sr,zs=Object.prototype.hasOwnProperty,Ji={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},et=Array.isArray,Ws=String.prototype.split,Gs=Array.prototype.push,Qi=function(e,r){Gs.apply(e,et(r)?r:[r])},Ks=Date.prototype.toISOString,eo=Kt.default,Ne={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:xr.encode,encodeValuesOnly:!1,format:eo,formatter:Kt.formatters[eo],indices:!1,serializeDate:function(r){return Ks.call(r)},skipNulls:!1,strictNullHandling:!1},Vs=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},wr={},Ys=function e(r,n,t,o,i,s,d,c,h,f,l,a,u,v,p,b){for(var m=r,g=b,_=0,y=!1;(g=g.get(wr))!==void 0&&!y;){var O=g.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");y=!0}typeof g.get(wr)=="undefined"&&(_=0)}if(typeof c=="function"?m=c(n,m):m instanceof Date?m=l(m):t==="comma"&&et(m)&&(m=xr.maybeMap(m,function(q){return q instanceof Date?l(q):q})),m===null){if(i)return d&&!v?d(n,Ne.encoder,p,"key",a):n;m=""}if(Vs(m)||xr.isBuffer(m)){if(d){var k=v?n:d(n,Ne.encoder,p,"key",a);if(t==="comma"&&v){for(var T=Ws.call(String(m),","),A="",P=0;P<T.length;++P)A+=(P===0?"":",")+u(d(T[P],Ne.encoder,p,"value",a));return[u(k)+(o&&et(m)&&T.length===1?"[]":"")+"="+A]}return[u(k)+"="+u(d(m,Ne.encoder,p,"value",a))]}return[u(n)+"="+u(String(m))]}var x=[];if(typeof m=="undefined")return x;var S;if(t==="comma"&&et(m))S=[{value:m.length>0?m.join(",")||null:void 0}];else if(et(c))S=c;else{var w=Object.keys(m);S=h?w.sort(h):w}for(var N=o&&et(m)&&m.length===1?n+"[]":n,D=0;D<S.length;++D){var $=S[D],B=typeof $=="object"&&typeof $.value!="undefined"?$.value:m[$];if(!(s&&B===null)){var U=et(m)?typeof t=="function"?t(N,$):N:N+(f?"."+$:"["+$+"]");b.set(r,_);var G=Zi();G.set(wr,b),Qi(x,e(B,U,t,o,i,s,d,c,h,f,l,a,u,v,p,G))}}return x},Xs=function(r){if(!r)return Ne;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=r.charset||Ne.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=Kt.default;if(typeof r.format!="undefined"){if(!zs.call(Kt.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=Kt.formatters[t],i=Ne.filter;return(typeof r.filter=="function"||et(r.filter))&&(i=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Ne.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Ne.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ne.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Ne.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Ne.encode,encoder:typeof r.encoder=="function"?r.encoder:Ne.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Ne.encodeValuesOnly,filter:i,format:t,formatter:o,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Ne.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Ne.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ne.strictNullHandling}},Zs=function(e,r){var n=e,t=Xs(r),o,i;typeof t.filter=="function"?(i=t.filter,n=i("",n)):et(t.filter)&&(i=t.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var d;r&&r.arrayFormat in Ji?d=r.arrayFormat:r&&"indices"in r?d=r.indices?"indices":"repeat":d="indices";var c=Ji[d];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=c==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var f=Zi(),l=0;l<o.length;++l){var a=o[l];t.skipNulls&&n[a]===null||Qi(s,Ys(n[a],a,c,h,t.strictNullHandling,t.skipNulls,t.encode?t.encoder:null,t.filter,t.sort,t.allowDots,t.serializeDate,t.format,t.formatter,t.encodeValuesOnly,t.charset,f))}var u=s.join(t.delimiter),v=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),u.length>0?v+u:""},Tt=Xi,Ar=Object.prototype.hasOwnProperty,Js=Array.isArray,Ce={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Tt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Qs=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},to=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},eu="utf8=%26%2310003%3B",tu="utf8=%E2%9C%93",nu=function(r,n){var t={},o=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),d=-1,c,h=n.charset;if(n.charsetSentinel)for(c=0;c<s.length;++c)s[c].indexOf("utf8=")===0&&(s[c]===tu?h="utf-8":s[c]===eu&&(h="iso-8859-1"),d=c,c=s.length);for(c=0;c<s.length;++c)if(c!==d){var f=s[c],l=f.indexOf("]="),a=l===-1?f.indexOf("="):l+1,u,v;a===-1?(u=n.decoder(f,Ce.decoder,h,"key"),v=n.strictNullHandling?null:""):(u=n.decoder(f.slice(0,a),Ce.decoder,h,"key"),v=Tt.maybeMap(to(f.slice(a+1),n),function(p){return n.decoder(p,Ce.decoder,h,"value")})),v&&n.interpretNumericEntities&&h==="iso-8859-1"&&(v=Qs(v)),f.indexOf("[]=")>-1&&(v=Js(v)?[v]:v),Ar.call(t,u)?t[u]=Tt.combine(t[u],v):t[u]=v}return t},ru=function(e,r,n,t){for(var o=t?r:to(r,n),i=e.length-1;i>=0;--i){var s,d=e[i];if(d==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,h=parseInt(c,10);!n.parseArrays&&c===""?s={0:o}:!isNaN(h)&&d!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=o):c!=="__proto__"&&(s[c]=o)}o=s}return o},iu=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,s=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,c=t.depth>0&&s.exec(i),h=c?i.slice(0,c.index):i,f=[];if(h){if(!t.plainObjects&&Ar.call(Object.prototype,h)&&!t.allowPrototypes)return;f.push(h)}for(var l=0;t.depth>0&&(c=d.exec(i))!==null&&l<t.depth;){if(l+=1,!t.plainObjects&&Ar.call(Object.prototype,c[1].slice(1,-1))&&!t.allowPrototypes)return;f.push(c[1])}return c&&f.push("["+i.slice(c.index)+"]"),ru(f,n,t,o)}},ou=function(r){if(!r)return Ce;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof r.charset=="undefined"?Ce.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?Ce.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Ce.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Ce.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Ce.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ce.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Ce.comma,decoder:typeof r.decoder=="function"?r.decoder:Ce.decoder,delimiter:typeof r.delimiter=="string"||Tt.isRegExp(r.delimiter)?r.delimiter:Ce.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Ce.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Ce.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Ce.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Ce.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ce.strictNullHandling}},au=function(e,r){var n=ou(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?nu(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),s=0;s<i.length;++s){var d=i[s],c=iu(d,t[d],n,typeof e=="string");o=Tt.merge(o,c,n)}return n.allowSparse===!0?o:Tt.compact(o)},lu=Zs,su=au,uu=Sr,fu={formats:uu,parse:su,stringify:lu};const no=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},cu=(e,r)=>{if(!no(e,r))return{};const n=e.split(r),[t,o]=n,[i,s]=o.split("?");let d=s?fu.parse(s):{};return{field:t,type:i,params:d}},du={functional:!0,props:{tableProp:{},row:{}},render:function(e,r){return e(...(t=>{const{tableProp:o,row:i}=t.props,{tablePreset:s}=t.parent.$UICONFIG,{separator:d,presetPropMap:c}=s,{field:h,type:f,params:l}=cu(o,d);return c[f](i,{field:h,params:l,h:e})})(r))}};var hu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table_config"},[n("span",{staticClass:"el-icon-s-operation",on:{click:e.handleShowConfig}}),n("el-drawer",{attrs:{title:"\u5217\u8868\u914D\u7F6E",direction:"rtl",size:"188px","modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content",style:{maxHeight:e.height}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t){return n("el-checkbox",{key:t.value,attrs:{border:"",label:t.value}},[e._v(e._s(t.label))])}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")])],1)])])],1)},pu=[],jf="";const vu={components:{draggable:_i},props:{tableName:{type:String,default:""},options:{type:Object,default(){return{}}}},data(){return{showConfig:!1,checkItems:[],sortItems:[],defaultOptions:{}}},computed:{configKey(){const e=document.querySelectorAll(".el-table");return`TableConfig_${this.tableName||this.$route.path}${e.length>1?"_child":""}`},height(){return`${parseInt(this.$parent.tableHeight)-30}px`},handleOptions(){const e=JSON.parse(JSON.stringify(this.options));return e.index&&delete e.index,e.rowLabelInx&&delete e.rowLabelInx,e}},methods:{handleInit(e=!0){let r=localStorage.getItem(this.configKey);r=r?JSON.parse(r):null,r?(this.sortItems=r.sortItems,this.checkItems=r.checkItems,e&&this.handleRenderConfig()):(this.sortItems=Object.entries(this.handleOptions).map(([n,t])=>({label:t,value:n})),this.checkItems=Object.keys(this.handleOptions))},handleShowConfig(){this.handleInit(!1),this.showConfig=!0},handleRenderConfig(){const e=this.sortItems.reduce((r,n)=>ve(ve({},r),this.checkItems.includes(n.value)?{[n.value]:n.label}:{}),{});this.$emit("change",e),this.showConfig=!1,this.handelSaveConfig(),localStorage.setItem(this.configKey)},handleReset(){this.sortItems=Object.entries(this.defaultOptions).map(([e,r])=>({label:r,value:e})),this.checkItems=Object.keys(this.defaultOptions)},handelSaveConfig(){this.$parent.setConfigCache(this.configKey,JSON.stringify({sortItems:this.sortItems,checkItems:this.checkItems}))}},created(){this.defaultOptions=JSON.parse(JSON.stringify(this.handleOptions)),this.handleInit()}},ro={};var mu=Se(vu,hu,pu,!1,yu,"448fe6fb",null,null);function yu(e){for(let r in ro)this[r]=ro[r]}var gu=function(){return mu.exports}(),bu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("com-dialog",{attrs:{visible:e.show,title:"\u6536\u85CF\u5217\u8868",width:"90vw","show-btn":!1},on:{"update:visible":function(t){e.show=t}}},[n("div",{staticClass:"ui-collect"},e._l(e.listData,function(t,o){return n("div",{key:o,staticClass:"ui-collect--item"},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("span",[e._v(e._s(o))]),n("el-switch",{staticStyle:{"margin-left":"10px"},attrs:{"active-color":"#13ce66"},on:{change:function(i){return e.handleChangeState(o,i)}},model:{value:e.enableList[o],callback:function(i){e.$set(e.enableList,o,i)},expression:"enableList[key]"}})],1),n("div",{staticClass:"ui-collect--tags"},e._l(t,function(i,s){return n("el-tag",{attrs:{closable:i.use_status==1},on:{close:function(d){return e.handleDelete(i,s)}}},[e._v(e._s(i.number))])}),1)])}),0)])},_u=[],Bf="";const Ou={data(){return{show:!1,enableList:{},listData:{}}},methods:{async handleOpen(){try{const e=await this.$UICONFIG.collectApi.list();if(e.code!=200)return this.$message.warning(e.msg||"\u67E5\u8BE2\u5931\u8D25\uFF01");this.listData=e.data,Object.entries(e.data).forEach(([r,n])=>{this.$set(this.enableList,r,n.length?n[0].use_status==2:!1)}),this.show=!0}catch(e){console.log(e),console.error("not collect api")}},async handleChangeState(e,r){if(!(await this.listData[e].map(o=>o.id)).length)return;const t=await this.$UICONFIG.collectApi[r?"on":"off"]({ids:this.listData[e].map(o=>o.id)});if(t.code!=200)return this.$message.warning(t.msg||"\u64CD\u4F5C\u5931\u8D25\uFF01");await this.handleOpen()},async handleDelete(e){const r=await this.$UICONFIG.collectApi.delete({ids:[e.id]});if(r.code!=200)return this.$message.warning(r.msg||"\u64CD\u4F5C\u5931\u8D25\uFF01");await this.handleOpen()}}},io={};var Su=Se(Ou,bu,_u,!1,Eu,"16010503",null,null);function Eu(e){for(let r in io)this[r]=io[r]}var xu=function(){return Su.exports}(),wu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table",class:{"remove-hover-css":!e.hoverStyle}},[n("div",{staticClass:"ui-table__tab",style:{height:e.showTab?"32px":"unset"}},[e._t("default",[e.tabList.length?n("el-tabs",{attrs:{type:"card",size:"mini"},on:{"tab-click":function(t){return e.$emit("tabChange",t)}},model:{value:e.checkTab,callback:function(t){e.checkTab=t},expression:"checkTab"}},e._l(e.tabList,function(t){return n("el-tab-pane",{key:t.value,attrs:{name:t.value},scopedSlots:e._u([{key:"label",fn:function(){return[n("el-badge",{attrs:{value:t.num,max:e.tabNumMax}},[n("span",[e._v(e._s(t.label))])])]},proxy:!0}],null,!0)})}),1):e._e(),e.showTab&&!e.tabList.length?n("div",{staticClass:"ui-tab--loading"},[n("i",{staticClass:"el-icon-loading"}),n("span",[e._v("\u52A0\u8F7D\u4E2D...")])]):e._e()]),n("div",{staticClass:"ui-top-right"},[e._t("top-right")],2),e.showConfig?n("ColumnConfig",{attrs:{tableName:e.tableName,options:e.useMaps},on:{change:e.handleMapChange}}):e._e()],2),n("el-table",e._g(e._b(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.renderLoading,expression:"renderLoading"}],ref:"myTable",attrs:{data:e.tableData,"span-method":e.spanMethod,"row-class-name":e.rowClassName},on:{select:e.manualSelectchange,"row-click":e.handleRowClick},scopedSlots:e._u([{key:"empty",fn:function(){return[e.autoHeight?e._e():n("div",[n("el-empty",{directives:[{name:"show",rawName:"v-show",value:!e.tableData.length,expression:"!tableData.length"}],attrs:{description:"\u6682\u65E0\u6570\u636E"}})],1)]},proxy:!0}])},"el-table",e._d({},[e.isBindHeight,e.tableHeight,e.isBindMaxHeight,e.maxHeight])),"el-table",Object.assign({},{highlightRow:!0,border:!0,stripe:!0},e.$attrs),!1),e.polyfillListeners(e.$listeners)),[e.showSelect?n("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectable}}):e._e(),e._t("column"),e._l(e.tableTitle,function(t,o){return n("el-table-column",{key:e.tableProps[o],attrs:{minWidth:e.tableColsMinWidth[o]||"60px",label:t,fixed:e.fixedMap[e.tableProps[o]],"render-header":typeof t=="function"?t:null,"show-overflow-tooltip":e.tooltips.includes(e.tableProps[o]),prop:e.tableProps[o],width:e.tableProps[o]==="index"?"60px":e.tableColsWidth[o]||"",sortable:e.getSortable(e.tableProps[o])},scopedSlots:e._u([{key:"header",fn:function(i){return[e._t(e.tableProps[o]+"Title",[n("span",[e._v(e._s(t))])],{row:t,$index:i.$index})]}},e.multiHeaderKey.includes(e.tableProps[o])?null:{key:"default",fn:function(i){return[e.isPresetProp(e.tableProps[o],e.$UICONFIG.tablePreset&&e.$UICONFIG.tablePreset.separator)?[n("table-preset-prop",{attrs:{tableProp:e.tableProps[o],row:i.row}})]:e._t(e.tableProps[o],[n("span",{class:{"text--number":e.tableProps[o]!="index"&&Number.isFinite(Number(i.row[e.tableProps[o]]))}},[e._v(e._s(e.tableProps[o]==="index"?e.changeTableInx(i.$index):i.row[e.tableProps[o]]))])],{row:i.row,$index:i.$index})]}}],null,!0)},[e.multiHeaderKey.includes(e.tableProps[o])?[e._t(e.tableProps[o])]:e._e()],2)})],2),e.showPage?n("div",{staticClass:"ui-pagination"},[n("div",{staticClass:"ui-summary--data"},[e._t("right_top"),e._t("summarydata")],2),e.isCollectionTable?n("div",{staticStyle:{"margin-right":"20px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddCollectRow}},[e._v("\u6DFB\u52A0\u6536\u85CF")]),n("el-button",{attrs:{type:"text"},on:{click:e.handleShowCollectList}},[e._v("\u6536\u85CF\u5217\u8868")])],1):e._e(),n("el-pagination",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPageTotal,expression:"loadingPageTotal"}],ref:"pageRef",attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":Number(e.pageData.offset),"page-sizes":e.defaultPageSizes,"page-size":Number(e.pageData.limit),total:Number(e.pageData.total)},on:{"size-change":function(t){return e.handlePageChange("limit",t)},"current-change":function(t){return e.handlePageChange("offset",t)}}})],1):e._e(),n("CollectionList",{ref:"CollectionList"})],1)},Au=[],qf="";const Tu={name:"ComTable",components:{ColumnConfig:gu,TablePresetProp:du,CollectionList:xu},props:{tableName:String,showSelect:{type:Boolean,default:!1},selectable:{type:Function,default(){return()=>{}}},isSingleSelection:{type:Boolean,default:!1},spanMethod:{type:Function},tableData:{type:Array,default(){return[]}},tableMap:{type:Object,default(){return{index:"\u5E8F\u53F7"}}},colsWidth:{type:[Array,Object],default(){return[]}},colsMinWidth:{type:[Array,Object],default(){return[]}},pageData:{type:Object,default(){return{}}},showPage:{type:Boolean,default:!0},height:{type:String,default:""},autoHeight:{type:Boolean,default:!1},maxHeight:{type:String,default:""},heightStatic:{type:Number,default:0},tabList:{type:Array,default(){return[]}},defaultTab:{type:[String,Number],default:""},showTab:{type:Boolean,default:!1},rowClassName:{type:Function,default({row:e}){}},tooltips:{type:Array,default(){return[]}},multiHeaderKey:{type:Array,default(){return[]}},showConfig:{type:Boolean,default:!0},sortables:{type:[Array,Object],default(){return[]}},fixedMap:{type:Object,default(){return{}}},hoverStyle:{type:Boolean,default:!0},pageSizes:{type:Array},tabNumMax:{type:Number,default:999},showCollect:{type:Boolean,default:!0}},data(){return{isPresetProp:no,defaultPageSizes:[20,50,100,200,500,1e3],tableHeight:"",checkTab:"",useMaps:{},renderLoading:!1,handleWindowResize:null,loadingPageTotal:!1,isInit:!1,isChild:!1}},computed:{tableTitle(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.values(this.useMaps)},tableProps(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.keys(this.useMaps)},tableColsWidth(){return Array.isArray(this.colsWidth)?this.colsWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsWidth[e]?`${parseInt(this.colsWidth[e])}px`:"")},tableColsMinWidth(){return Array.isArray(this.colsMinWidth)?this.colsMinWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsMinWidth[e]?`${parseInt(this.colsMinWidth[e])}px`:"")},isBindHeight(){return this.tableHeight?"height":""},isBindMaxHeight(){return this.maxHeight?"max-height":""},isCollectionTable(){return this.showCollect&&!this.isChildTable(this)&&this.$UICONFIG.collectApi}},methods:{handleShowCollectList(){this.$refs.CollectionList.handleOpen()},async handleAddCollectRow(){try{const e=this.$refs.myTable.selection;if(!e.length)return this.$message.warning("\u8BF7\u5148\u52FE\u9009\u5217\u8868\u6570\u636E\uFF01");const r=await this.$UICONFIG.collectApi.add({line_data:e.map(n=>JSON.stringify(n))});if(r.code!=200)return this.$message.error(r.msg||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.$message.success("\u64CD\u4F5C\u6210\u529F\uFF01")}catch{console.error("not collect api")}},changeTableInx(e){let r=parseInt(e)+1+"";return"0".repeat(4-r.length)+r},handleRefreshHeight(){!this.autoHeight&&!this.height?this.$nextTick().then(()=>{this.tableHeight=`${Ei()-this.heightStatic}px`,this.$refs.myTable&&this.$refs.myTable.doLayout()}):this.height&&(this.tableHeight=this.height,this.$refs.myTable&&this.$refs.myTable.doLayout())},handlePageChange(e="offset",r){if(e==="offset"){if(this.tempSize>this.pageData.total&&this.pageData.offset>1)return;this.$emit("pageChange",e,r)}else this.tempSize=r,this.$emit("pageChange",e,r)},polyfillListeners(e){const r={selectionChange:"selection-change"};return Object.entries(e).reduce((n,[t,o])=>{const i=r[t];return n[i||t]=o,n},{})},manualSelectchange(e,r){if(!this.isSingleSelection)return;const n=this.$refs.myTable;n.clearSelection(),this.$nextTick(()=>{n.toggleRowSelection(r,!0)})},handleMapChange(e){this.useMaps={},this.renderLoading=!0,this.$nextTick().then(()=>{this.useMaps=e,this.handleRefreshHeight(),setTimeout(()=>{this.renderLoading=!1},500)})},getSortable(e){const r=this.sortables;return Array.isArray(r)?r.includes(e):r[e]},handleRowClick(e,r,n){try{const t=n.target,o=t.parentElement.nodeName=="TR"?t.parentElement:t.parentElement.parentElement;if(this.showSelect&&o.firstChild.querySelector(".is-disabled"))return;t.className.indexOf("cell")>-1&&(this.isSingleSelection?this.manualSelectchange(null,e):e.id?this.tableData.filter(i=>i.id==e.id).forEach(i=>{this.$refs.myTable.toggleRowSelection(i)}):this.$refs.myTable.toggleRowSelection(e))}catch(t){console.log(t)}},bindTotalChangeEvent(){this.$UICONFIG.getPageTotalApi&&(console.log("bind total event"),this.$toChildren.$on("changePageTotal",async e=>{console.log(e,"totalId");try{this.loadingPageTotal=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getPageTotalApi,{id:e});this.pageData.total=r.data?r.data.total:r.total,this.loadingPageTotal=!1,this.$refs.pageRef.internalCurrentPage=Number(this.pageData.offset||0)}catch(r){console.log(r,"e"),this.loadingPageTotal=!1}}))},isChildTable(e){if(e=e||this,e.$parent)try{return e.$parent.$el.className.includes("ui-table")?!0:this.isChildTable(e.$parent)}catch{return console.log("error",this),!1}else return!1}},created(){var e;this.$UICONFIG||(this.$UICONFIG={tablePreset:{separator:"@",presetPropMap:{}},getPageTotalApi:""}),this.checkTab=this.defaultTab,this.defaultPageSizes=this.pageSizes||((e=this.$UICONFIG)==null?void 0:e.pageSizes)||[20,50,100,200,500,1e3],this.useMaps=JSON.parse(JSON.stringify(this.tableMap))},async mounted(){if(await this.$nextTick(),setTimeout(()=>{this.isInit=!0},1e3),this.isChild=this.isChildTable(),this.isChild?console.log("is child"):(console.log("is root"),this.bindTotalChangeEvent()),this.handleRefreshHeight(),this.isSingleSelection){const e=this.$refs.myTable.$el.querySelector(".el-table__header-wrapper .el-checkbox");e.style="display:none"}this.handleWindowResize=On(100,this.handleRefreshHeight),window.addEventListener("resize",this.handleWindowResize)},watch:{async useMaps(){await this.$nextTick(),this.handleRefreshHeight()},tableMap(e){this.useMaps=JSON.parse(JSON.stringify(e))},tableData(){this.handleRefreshHeight()}},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),this.isChild||this.$toChildren.$off("changePageTotal")},deactivated(){console.log("off"),this.isChild||this.$toChildren.$off("changePageTotal")},async activated(){this.handleRefreshHeight(),this.isInit&&(this.isChild||this.bindTotalChangeEvent())}},oo={};var Cu=Se(Tu,wu,Au,!1,ku,"130a66a0",null,null);function ku(e){for(let r in oo)this[r]=oo[r]}var In=function(){return Cu.exports}();In.install=e=>{e.component(In.name,In)};const ao=In;var Nu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.show?n("el-image",{ref:"imageRef",style:{width:e.sizeMain,height:e.sizeMain},attrs:{"scroll-container":".el-table__body-wrapper",fit:e.fit,src:e.srcMain,"preview-src-list":e.previewList,lazy:e.lazy},scopedSlots:e._u([{key:"placeholder",fn:function(){return[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-image--loading",style:{width:e.sizeMain,height:e.height}})]},proxy:!0},{key:"error",fn:function(){return[n("div",{staticClass:"ui-image--error",style:{width:e.sizeMain,height:e.height,lineHeight:e.height,fontSize:e.fontSize}},[n("i",{staticClass:"el-icon-picture-outline"})])]},proxy:!0}],null,!1,4245906892)}):e._e()},Iu=[],Uf="";const Pu={name:"ComImage",props:{fit:{type:String,default:"contain"},size:{type:String,default:""},src:{type:[String,Array],default(){return""}},previewSrcList:{type:Array,default(){return[]}},lazy:{type:Boolean,default:!1}},data(){return{height:"",show:!1}},computed:{previewList(){return this.previewSrcList.length?this.previewSrcList:Array.isArray(this.src)?this.src:[]},srcMain(){return Array.isArray(this.src)?this.src[0]:this.src},fontSize(){return`${parseInt(this.height)-30}px`},sizeMain(){return this.size?Number(this.size)?`${this.size}px`:this.size:"100%"}},async mounted(){setTimeout(async()=>{this.show=!0,await this.$nextTick(),this.height=`${this.$refs.imageRef.$el.offsetWidth}px`},300)}},lo={};var Lu=Se(Pu,Nu,Iu,!1,Du,"52e1ecf6",null,null);function Du(e){for(let r in lo)this[r]=lo[r]}var Pn=function(){return Lu.exports}();Pn.install=e=>{e.component(Pn.name,Pn)};const so=Pn;var $u=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-scrollbar",{staticClass:"ui-scrollbar",style:{height:e.setHeight,width:"100%"}},[e._t("default")],2)},Ru=[],Hf="";const Mu={name:"ComContainer",props:{staticClass:{type:Array,default(){return[]}},staticNum:{type:Number,default:0},height:{type:String,default:""}},data(){return{setHeight:"unset"}},methods:{handleRefreshHeight(){this.$nextTick().then(()=>{this.setHeight=this.height||`${Ei(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:On(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},uo={};var Fu=Se(Mu,$u,Ru,!1,ju,"c2fac2c4",null,null);function ju(e){for(let r in uo)this[r]=uo[r]}var Ln=function(){return Fu.exports}();Ln.install=e=>{e.component(Ln.name,Ln)};const fo=Ln;var co={exports:{}};/*!
|
|
24
|
+
`+r.prev}function Cn(e,r){var n=gr(e),t=[];if(n){t.length=e.length;for(var o=0;o<e.length;o++)t[o]=st(e,o)?r(e[o],e):""}var i=typeof pr=="function"?pr(e):[],s;if(wt){s={};for(var d=0;d<i.length;d++)s["$"+i[d]]=i[d]}for(var c in e)!st(e,c)||n&&String(Number(c))===c&&c<e.length||wt&&s["$"+c]instanceof Symbol||(Ri.call(/[^\w$]/,c)?t.push(r(c,e)+": "+r(e[c],e)):t.push(c+": "+r(e[c],e)));if(typeof pr=="function")for(var h=0;h<i.length;h++)ji.call(e,i[h])&&t.push("["+r(i[h])+"]: "+r(e[i[h]],e));return t}var _r=lr,At=ql,Os=ns,Ss=_r("%TypeError%"),kn=_r("%WeakMap%",!0),In=_r("%Map%",!0),Es=At("WeakMap.prototype.get",!0),xs=At("WeakMap.prototype.set",!0),ws=At("WeakMap.prototype.has",!0),As=At("Map.prototype.get",!0),Ts=At("Map.prototype.set",!0),Cs=At("Map.prototype.has",!0),Or=function(e,r){for(var n=e,t;(t=n.next)!==null;n=t)if(t.key===r)return n.next=t.next,t.next=e.next,e.next=t,t},ks=function(e,r){var n=Or(e,r);return n&&n.value},Is=function(e,r,n){var t=Or(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},Ns=function(e,r){return!!Or(e,r)},Ps=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new Ss("Side channel does not contain "+Os(i))},get:function(i){if(kn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Es(r,i)}else if(In){if(n)return As(n,i)}else if(t)return ks(t,i)},has:function(i){if(kn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return ws(r,i)}else if(In){if(n)return Cs(n,i)}else if(t)return Ns(t,i);return!1},set:function(i,s){kn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new kn),xs(r,i,s)):In?(n||(n=new In),Ts(n,i,s)):(t||(t={key:{},next:null}),Is(t,i,s))}};return o},Ls=String.prototype.replace,Ds=/%20/g,Sr={RFC1738:"RFC1738",RFC3986:"RFC3986"},Er={default:Sr.RFC3986,formatters:{RFC1738:function(e){return Ls.call(e,Ds,"+")},RFC3986:function(e){return String(e)}},RFC1738:Sr.RFC1738,RFC3986:Sr.RFC3986},$s=Er,xr=Object.prototype.hasOwnProperty,mt=Array.isArray,Ze=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),Rs=function(r){for(;r.length>1;){var n=r.pop(),t=n.obj[n.prop];if(mt(t)){for(var o=[],i=0;i<t.length;++i)typeof t[i]!="undefined"&&o.push(t[i]);n.obj[n.prop]=o}}},Xi=function(r,n){for(var t=n&&n.plainObjects?Object.create(null):{},o=0;o<r.length;++o)typeof r[o]!="undefined"&&(t[o]=r[o]);return t},Ms=function e(r,n,t){if(!n)return r;if(typeof n!="object"){if(mt(r))r.push(n);else if(r&&typeof r=="object")(t&&(t.plainObjects||t.allowPrototypes)||!xr.call(Object.prototype,n))&&(r[n]=!0);else return[r,n];return r}if(!r||typeof r!="object")return[r].concat(n);var o=r;return mt(r)&&!mt(n)&&(o=Xi(r,t)),mt(r)&&mt(n)?(n.forEach(function(i,s){if(xr.call(r,s)){var d=r[s];d&&typeof d=="object"&&i&&typeof i=="object"?r[s]=e(d,i,t):r.push(i)}else r[s]=i}),r):Object.keys(n).reduce(function(i,s){var d=n[s];return xr.call(i,s)?i[s]=e(i[s],d,t):i[s]=d,i},o)},Fs=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},js=function(e,r,n){var t=e.replace(/\+/g," ");if(n==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},Bs=function(r,n,t,o,i){if(r.length===0)return r;var s=r;if(typeof r=="symbol"?s=Symbol.prototype.toString.call(r):typeof r!="string"&&(s=String(r)),t==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var d="",c=0;c<s.length;++c){var h=s.charCodeAt(c);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===$s.RFC1738&&(h===40||h===41)){d+=s.charAt(c);continue}if(h<128){d=d+Ze[h];continue}if(h<2048){d=d+(Ze[192|h>>6]+Ze[128|h&63]);continue}if(h<55296||h>=57344){d=d+(Ze[224|h>>12]+Ze[128|h>>6&63]+Ze[128|h&63]);continue}c+=1,h=65536+((h&1023)<<10|s.charCodeAt(c)&1023),d+=Ze[240|h>>18]+Ze[128|h>>12&63]+Ze[128|h>>6&63]+Ze[128|h&63]}return d},qs=function(r){for(var n=[{obj:{o:r},prop:"o"}],t=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],d=Object.keys(s),c=0;c<d.length;++c){var h=d[c],f=s[h];typeof f=="object"&&f!==null&&t.indexOf(f)===-1&&(n.push({obj:s,prop:h}),t.push(f))}return Rs(n),r},Us=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},Hs=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},zs=function(r,n){return[].concat(r,n)},Ws=function(r,n){if(mt(r)){for(var t=[],o=0;o<r.length;o+=1)t.push(n(r[o]));return t}return n(r)},Zi={arrayToObject:Xi,assign:Fs,combine:zs,compact:qs,decode:js,encode:Bs,isBuffer:Hs,isRegExp:Us,maybeMap:Ws,merge:Ms},Ji=Ps,wr=Zi,Kt=Er,Gs=Object.prototype.hasOwnProperty,Qi={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},et=Array.isArray,Ks=String.prototype.split,Vs=Array.prototype.push,eo=function(e,r){Vs.apply(e,et(r)?r:[r])},Ys=Date.prototype.toISOString,to=Kt.default,Ie={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:wr.encode,encodeValuesOnly:!1,format:to,formatter:Kt.formatters[to],indices:!1,serializeDate:function(r){return Ys.call(r)},skipNulls:!1,strictNullHandling:!1},Xs=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},Ar={},Zs=function e(r,n,t,o,i,s,d,c,h,f,l,a,u,v,p,b){for(var m=r,y=b,_=0,g=!1;(y=y.get(Ar))!==void 0&&!g;){var O=y.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");g=!0}typeof y.get(Ar)=="undefined"&&(_=0)}if(typeof c=="function"?m=c(n,m):m instanceof Date?m=l(m):t==="comma"&&et(m)&&(m=wr.maybeMap(m,function(q){return q instanceof Date?l(q):q})),m===null){if(i)return d&&!v?d(n,Ie.encoder,p,"key",a):n;m=""}if(Xs(m)||wr.isBuffer(m)){if(d){var k=v?n:d(n,Ie.encoder,p,"key",a);if(t==="comma"&&v){for(var T=Ks.call(String(m),","),A="",P=0;P<T.length;++P)A+=(P===0?"":",")+u(d(T[P],Ie.encoder,p,"value",a));return[u(k)+(o&&et(m)&&T.length===1?"[]":"")+"="+A]}return[u(k)+"="+u(d(m,Ie.encoder,p,"value",a))]}return[u(n)+"="+u(String(m))]}var x=[];if(typeof m=="undefined")return x;var S;if(t==="comma"&&et(m))S=[{value:m.length>0?m.join(",")||null:void 0}];else if(et(c))S=c;else{var w=Object.keys(m);S=h?w.sort(h):w}for(var I=o&&et(m)&&m.length===1?n+"[]":n,D=0;D<S.length;++D){var $=S[D],B=typeof $=="object"&&typeof $.value!="undefined"?$.value:m[$];if(!(s&&B===null)){var U=et(m)?typeof t=="function"?t(I,$):I:I+(f?"."+$:"["+$+"]");b.set(r,_);var G=Ji();G.set(Ar,b),eo(x,e(B,U,t,o,i,s,d,c,h,f,l,a,u,v,p,G))}}return x},Js=function(r){if(!r)return Ie;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=r.charset||Ie.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=Kt.default;if(typeof r.format!="undefined"){if(!Gs.call(Kt.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=Kt.formatters[t],i=Ie.filter;return(typeof r.filter=="function"||et(r.filter))&&(i=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Ie.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Ie.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ie.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Ie.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Ie.encode,encoder:typeof r.encoder=="function"?r.encoder:Ie.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Ie.encodeValuesOnly,filter:i,format:t,formatter:o,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Ie.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Ie.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ie.strictNullHandling}},Qs=function(e,r){var n=e,t=Js(r),o,i;typeof t.filter=="function"?(i=t.filter,n=i("",n)):et(t.filter)&&(i=t.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var d;r&&r.arrayFormat in Qi?d=r.arrayFormat:r&&"indices"in r?d=r.indices?"indices":"repeat":d="indices";var c=Qi[d];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=c==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var f=Ji(),l=0;l<o.length;++l){var a=o[l];t.skipNulls&&n[a]===null||eo(s,Zs(n[a],a,c,h,t.strictNullHandling,t.skipNulls,t.encode?t.encoder:null,t.filter,t.sort,t.allowDots,t.serializeDate,t.format,t.formatter,t.encodeValuesOnly,t.charset,f))}var u=s.join(t.delimiter),v=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),u.length>0?v+u:""},Tt=Zi,Tr=Object.prototype.hasOwnProperty,eu=Array.isArray,Ce={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Tt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tu=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},no=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},nu="utf8=%26%2310003%3B",ru="utf8=%E2%9C%93",iu=function(r,n){var t={},o=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),d=-1,c,h=n.charset;if(n.charsetSentinel)for(c=0;c<s.length;++c)s[c].indexOf("utf8=")===0&&(s[c]===ru?h="utf-8":s[c]===nu&&(h="iso-8859-1"),d=c,c=s.length);for(c=0;c<s.length;++c)if(c!==d){var f=s[c],l=f.indexOf("]="),a=l===-1?f.indexOf("="):l+1,u,v;a===-1?(u=n.decoder(f,Ce.decoder,h,"key"),v=n.strictNullHandling?null:""):(u=n.decoder(f.slice(0,a),Ce.decoder,h,"key"),v=Tt.maybeMap(no(f.slice(a+1),n),function(p){return n.decoder(p,Ce.decoder,h,"value")})),v&&n.interpretNumericEntities&&h==="iso-8859-1"&&(v=tu(v)),f.indexOf("[]=")>-1&&(v=eu(v)?[v]:v),Tr.call(t,u)?t[u]=Tt.combine(t[u],v):t[u]=v}return t},ou=function(e,r,n,t){for(var o=t?r:no(r,n),i=e.length-1;i>=0;--i){var s,d=e[i];if(d==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,h=parseInt(c,10);!n.parseArrays&&c===""?s={0:o}:!isNaN(h)&&d!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=o):c!=="__proto__"&&(s[c]=o)}o=s}return o},au=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,s=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,c=t.depth>0&&s.exec(i),h=c?i.slice(0,c.index):i,f=[];if(h){if(!t.plainObjects&&Tr.call(Object.prototype,h)&&!t.allowPrototypes)return;f.push(h)}for(var l=0;t.depth>0&&(c=d.exec(i))!==null&&l<t.depth;){if(l+=1,!t.plainObjects&&Tr.call(Object.prototype,c[1].slice(1,-1))&&!t.allowPrototypes)return;f.push(c[1])}return c&&f.push("["+i.slice(c.index)+"]"),ou(f,n,t,o)}},lu=function(r){if(!r)return Ce;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof r.charset=="undefined"?Ce.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?Ce.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Ce.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Ce.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Ce.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ce.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Ce.comma,decoder:typeof r.decoder=="function"?r.decoder:Ce.decoder,delimiter:typeof r.delimiter=="string"||Tt.isRegExp(r.delimiter)?r.delimiter:Ce.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Ce.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Ce.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Ce.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Ce.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ce.strictNullHandling}},su=function(e,r){var n=lu(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?iu(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),s=0;s<i.length;++s){var d=i[s],c=au(d,t[d],n,typeof e=="string");o=Tt.merge(o,c,n)}return n.allowSparse===!0?o:Tt.compact(o)},uu=Qs,fu=su,cu=Er,du={formats:cu,parse:fu,stringify:uu};const ro=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},hu=(e,r)=>{if(!ro(e,r))return{};const n=e.split(r),[t,o]=n,[i,s]=o.split("?");let d=s?du.parse(s):{};return{field:t,type:i,params:d}},pu={functional:!0,props:{tableProp:{},row:{}},render:function(e,r){return e(...(t=>{const{tableProp:o,row:i}=t.props,{tablePreset:s}=t.parent.$UICONFIG,{separator:d,presetPropMap:c}=s,{field:h,type:f,params:l}=hu(o,d);return c[f](i,{field:h,params:l,h:e})})(r))}};var vu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table_config"},[n("span",{staticClass:"el-icon-s-operation",on:{click:e.handleShowConfig}}),n("el-drawer",{attrs:{title:"\u5217\u8868\u914D\u7F6E",direction:"rtl",size:"188px","modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content",style:{maxHeight:e.height}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t){return n("el-checkbox",{key:t.value,attrs:{border:"",label:t.value}},[e._v(e._s(t.label))])}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")])],1)])])],1)},mu=[],Kf="";const gu={components:{draggable:Oi},props:{tableName:{type:String,default:""},options:{type:Object,default(){return{}}}},data(){return{showConfig:!1,checkItems:[],sortItems:[],defaultOptions:{}}},computed:{configKey(){const e=document.querySelectorAll(".el-table");return`TableConfig_${this.tableName||this.$route.path}${e.length>1?"_child":""}`},height(){return`${parseInt(this.$parent.tableHeight)-30}px`},handleOptions(){const e=JSON.parse(JSON.stringify(this.options));return e.index&&delete e.index,e.rowLabelInx&&delete e.rowLabelInx,e}},methods:{handleInit(e=!0){let r=localStorage.getItem(this.configKey);r=r?JSON.parse(r):null,r?(this.sortItems=r.sortItems,this.checkItems=r.checkItems,e&&this.handleRenderConfig()):(this.sortItems=Object.entries(this.handleOptions).map(([n,t])=>({label:t,value:n})),this.checkItems=Object.keys(this.handleOptions))},handleShowConfig(){this.handleInit(!1),this.showConfig=!0},handleRenderConfig(){const e=this.sortItems.reduce((r,n)=>ve(ve({},r),this.checkItems.includes(n.value)?{[n.value]:n.label}:{}),{});this.$emit("change",e),this.showConfig=!1,this.handelSaveConfig(),localStorage.setItem(this.configKey)},handleReset(){this.sortItems=Object.entries(this.defaultOptions).map(([e,r])=>({label:r,value:e})),this.checkItems=Object.keys(this.defaultOptions)},handelSaveConfig(){this.$parent.setConfigCache(this.configKey,JSON.stringify({sortItems:this.sortItems,checkItems:this.checkItems}))}},created(){this.defaultOptions=JSON.parse(JSON.stringify(this.handleOptions)),this.handleInit()}},io={};var yu=be(gu,vu,mu,!1,bu,"448fe6fb",null,null);function bu(e){for(let r in io)this[r]=io[r]}var _u=function(){return yu.exports}(),Ou=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("com-dialog",{attrs:{visible:e.show,title:"\u6536\u85CF\u5217\u8868",width:"90vw","show-btn":!1},on:{"update:visible":function(t){e.show=t}}},[n("div",{staticClass:"ui-collect"},e._l(e.listData,function(t,o){return n("div",{key:o,staticClass:"ui-collect--item"},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("span",[e._v(e._s(o))]),n("el-switch",{staticStyle:{"margin-left":"10px"},attrs:{"active-color":"#13ce66"},on:{change:function(i){return e.handleChangeState(o,i)}},model:{value:e.enableList[o],callback:function(i){e.$set(e.enableList,o,i)},expression:"enableList[key]"}})],1),n("div",{staticClass:"ui-collect--tags"},e._l(t,function(i,s){return n("el-tag",{attrs:{closable:i.use_status==1},on:{close:function(d){return e.handleDelete(i,s)}}},[e._v(e._s(i.number))])}),1)])}),0)])},Su=[],Vf="";const Eu={data(){return{show:!1,enableList:{},listData:{}}},methods:{async handleOpen(){try{const e=await this.$UICONFIG.collectApi.list();if(e.code!=200)return this.$message.warning(e.msg||"\u67E5\u8BE2\u5931\u8D25\uFF01");this.listData=e.data,Object.entries(e.data).forEach(([r,n])=>{this.$set(this.enableList,r,n.length?n[0].use_status==2:!1)}),this.show=!0}catch(e){console.log(e),console.error("not collect api")}},async handleChangeState(e,r){if(!(await this.listData[e].map(o=>o.id)).length)return;const t=await this.$UICONFIG.collectApi[r?"on":"off"]({ids:this.listData[e].map(o=>o.id)});if(t.code!=200)return this.$message.warning(t.msg||"\u64CD\u4F5C\u5931\u8D25\uFF01");await this.handleOpen()},async handleDelete(e){const r=await this.$UICONFIG.collectApi.delete({ids:[e.id]});if(r.code!=200)return this.$message.warning(r.msg||"\u64CD\u4F5C\u5931\u8D25\uFF01");await this.handleOpen()}}},oo={};var xu=be(Eu,Ou,Su,!1,wu,"16010503",null,null);function wu(e){for(let r in oo)this[r]=oo[r]}var Au=function(){return xu.exports}(),Tu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table",class:{"remove-hover-css":!e.hoverStyle}},[n("div",{staticClass:"ui-table__tab",style:{height:e.showTab?"32px":"unset"}},[e._t("default",[e.tabList.length?n("el-tabs",{attrs:{type:"card",size:"mini"},on:{"tab-click":function(t){return e.$emit("tabChange",t)}},model:{value:e.checkTab,callback:function(t){e.checkTab=t},expression:"checkTab"}},e._l(e.tabList,function(t){return n("el-tab-pane",{key:t.value,attrs:{name:t.value},scopedSlots:e._u([{key:"label",fn:function(){return[n("el-badge",{attrs:{value:t.num,max:e.tabNumMax}},[n("span",[e._v(e._s(t.label))])])]},proxy:!0}],null,!0)})}),1):e._e(),e.showTab&&!e.tabList.length?n("div",{staticClass:"ui-tab--loading"},[n("i",{staticClass:"el-icon-loading"}),n("span",[e._v("\u52A0\u8F7D\u4E2D...")])]):e._e()]),n("div",{staticClass:"ui-top-right"},[e._t("top-right")],2),e.showConfig?n("ColumnConfig",{attrs:{tableName:e.tableName,options:e.useMaps},on:{change:e.handleMapChange}}):e._e()],2),n("el-table",e._g(e._b(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.renderLoading,expression:"renderLoading"}],ref:"myTable",attrs:{data:e.tableData,"span-method":e.spanMethod,"row-class-name":e.rowClassName},on:{select:e.manualSelectchange,"row-click":e.handleRowClick},scopedSlots:e._u([{key:"empty",fn:function(){return[e.autoHeight?e._e():n("div",[n("el-empty",{directives:[{name:"show",rawName:"v-show",value:!e.tableData.length,expression:"!tableData.length"}],attrs:{description:"\u6682\u65E0\u6570\u636E"}})],1)]},proxy:!0}])},"el-table",e._d({},[e.isBindHeight,e.tableHeight,e.isBindMaxHeight,e.maxHeight])),"el-table",Object.assign({},{highlightRow:!0,border:!0,stripe:!0},e.$attrs),!1),e.polyfillListeners(e.$listeners)),[e.showSelect?n("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectable}}):e._e(),e._t("column"),e._l(e.tableTitle,function(t,o){return n("el-table-column",{key:e.tableProps[o],attrs:{minWidth:e.tableColsMinWidth[o]||"60px",label:t,fixed:e.fixedMap[e.tableProps[o]],"render-header":typeof t=="function"?t:null,"show-overflow-tooltip":e.tooltips.includes(e.tableProps[o]),prop:e.tableProps[o],width:e.tableProps[o]==="index"?"60px":e.tableColsWidth[o]||"",sortable:e.getSortable(e.tableProps[o])},scopedSlots:e._u([{key:"header",fn:function(i){return[e._t(e.tableProps[o]+"Title",[n("span",[e._v(e._s(t))])],{row:t,$index:i.$index})]}},e.multiHeaderKey.includes(e.tableProps[o])?null:{key:"default",fn:function(i){return[e.isPresetProp(e.tableProps[o],e.$UICONFIG.tablePreset&&e.$UICONFIG.tablePreset.separator)?[n("table-preset-prop",{attrs:{tableProp:e.tableProps[o],row:i.row}})]:e._t(e.tableProps[o],[n("span",{class:{"text--number":e.tableProps[o]!="index"&&Number.isFinite(Number(i.row[e.tableProps[o]]))}},[e._v(e._s(e.tableProps[o]==="index"?e.changeTableInx(i.$index):i.row[e.tableProps[o]]))])],{row:i.row,$index:i.$index})]}}],null,!0)},[e.multiHeaderKey.includes(e.tableProps[o])?[e._t(e.tableProps[o])]:e._e()],2)})],2),e.showPage?n("div",{staticClass:"ui-pagination"},[n("div",{staticClass:"ui-summary--data"},[e._t("right_top"),e._t("summarydata")],2),e.isCollectionTable?n("div",{staticStyle:{"margin-right":"20px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddCollectRow}},[e._v("\u6DFB\u52A0\u6536\u85CF")]),n("el-button",{attrs:{type:"text"},on:{click:e.handleShowCollectList}},[e._v("\u6536\u85CF\u5217\u8868")])],1):e._e(),n("el-pagination",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPageTotal,expression:"loadingPageTotal"}],ref:"pageRef",attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":Number(e.pageData.offset),"page-sizes":e.defaultPageSizes,"page-size":Number(e.pageData.limit),total:Number(e.pageData.total)},on:{"size-change":function(t){return e.handlePageChange("limit",t)},"current-change":function(t){return e.handlePageChange("offset",t)}}})],1):e._e(),n("CollectionList",{ref:"CollectionList"})],1)},Cu=[],Yf="";const ku={name:"ComTable",components:{ColumnConfig:_u,TablePresetProp:pu,CollectionList:Au},props:{tableName:String,showSelect:{type:Boolean,default:!1},selectable:{type:Function,default(){return()=>{}}},isSingleSelection:{type:Boolean,default:!1},spanMethod:{type:Function},tableData:{type:Array,default(){return[]}},tableMap:{type:Object,default(){return{index:"\u5E8F\u53F7"}}},colsWidth:{type:[Array,Object],default(){return[]}},colsMinWidth:{type:[Array,Object],default(){return[]}},pageData:{type:Object,default(){return{}}},showPage:{type:Boolean,default:!0},height:{type:String,default:""},autoHeight:{type:Boolean,default:!1},maxHeight:{type:String,default:""},heightStatic:{type:Number,default:0},tabList:{type:Array,default(){return[]}},defaultTab:{type:[String,Number],default:""},showTab:{type:Boolean,default:!1},rowClassName:{type:Function,default({row:e}){}},tooltips:{type:Array,default(){return[]}},multiHeaderKey:{type:Array,default(){return[]}},showConfig:{type:Boolean,default:!0},sortables:{type:[Array,Object],default(){return[]}},fixedMap:{type:Object,default(){return{}}},hoverStyle:{type:Boolean,default:!0},pageSizes:{type:Array},tabNumMax:{type:Number,default:999},showCollect:{type:Boolean,default:!0}},data(){return{isPresetProp:ro,defaultPageSizes:[20,50,100,200,500,1e3],tableHeight:"",checkTab:"",useMaps:{},renderLoading:!1,handleWindowResize:null,loadingPageTotal:!1,isInit:!1,isChild:!1}},computed:{tableTitle(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.values(this.useMaps)},tableProps(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.keys(this.useMaps)},tableColsWidth(){return Array.isArray(this.colsWidth)?this.colsWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsWidth[e]?`${parseInt(this.colsWidth[e])}px`:"")},tableColsMinWidth(){return Array.isArray(this.colsMinWidth)?this.colsMinWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsMinWidth[e]?`${parseInt(this.colsMinWidth[e])}px`:"")},isBindHeight(){return this.tableHeight?"height":""},isBindMaxHeight(){return this.maxHeight?"max-height":""},isCollectionTable(){return this.showCollect&&!this.isChildTable(this)&&this.$UICONFIG.collectApi}},methods:{handleShowCollectList(){this.$refs.CollectionList.handleOpen()},async handleAddCollectRow(){try{const e=this.$refs.myTable.selection;if(!e.length)return this.$message.warning("\u8BF7\u5148\u52FE\u9009\u5217\u8868\u6570\u636E\uFF01");const r=await this.$UICONFIG.collectApi.add({line_data:e.map(n=>JSON.stringify(n))});if(r.code!=200)return this.$message.error(r.msg||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.$message.success("\u64CD\u4F5C\u6210\u529F\uFF01")}catch{console.error("not collect api")}},changeTableInx(e){let r=parseInt(e)+1+"";return"0".repeat(4-r.length)+r},handleRefreshHeight(){!this.autoHeight&&!this.height?this.$nextTick().then(()=>{this.tableHeight=`${xi()-this.heightStatic}px`,this.$refs.myTable&&this.$refs.myTable.doLayout()}):this.height&&(this.tableHeight=this.height,this.$refs.myTable&&this.$refs.myTable.doLayout())},handlePageChange(e="offset",r){if(e==="offset"){if(this.tempSize>this.pageData.total&&this.pageData.offset>1)return;this.$emit("pageChange",e,r)}else this.tempSize=r,this.$emit("pageChange",e,r)},polyfillListeners(e){const r={selectionChange:"selection-change"};return Object.entries(e).reduce((n,[t,o])=>{const i=r[t];return n[i||t]=o,n},{})},manualSelectchange(e,r){if(!this.isSingleSelection)return;const n=this.$refs.myTable;n.clearSelection(),this.$nextTick(()=>{n.toggleRowSelection(r,!0)})},handleMapChange(e){this.useMaps={},this.renderLoading=!0,this.$nextTick().then(()=>{this.useMaps=e,this.handleRefreshHeight(),setTimeout(()=>{this.renderLoading=!1},500)})},getSortable(e){const r=this.sortables;return Array.isArray(r)?r.includes(e):r[e]},handleRowClick(e,r,n){try{const t=n.target,o=t.parentElement.nodeName=="TR"?t.parentElement:t.parentElement.parentElement;if(this.showSelect&&o.firstChild.querySelector(".is-disabled"))return;t.className.indexOf("cell")>-1&&(this.isSingleSelection?this.manualSelectchange(null,e):e.id?this.tableData.filter(i=>i.id==e.id).forEach(i=>{this.$refs.myTable.toggleRowSelection(i)}):this.$refs.myTable.toggleRowSelection(e))}catch(t){console.log(t)}},bindTotalChangeEvent(){this.$UICONFIG.getPageTotalApi&&(console.log("bind total event"),this.$toChildren.$on("changePageTotal",async e=>{console.log(e,"totalId");try{this.loadingPageTotal=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getPageTotalApi,{id:e});this.pageData.total=r.data?r.data.total:r.total,this.loadingPageTotal=!1,this.$refs.pageRef.internalCurrentPage=Number(this.pageData.offset||0)}catch(r){console.log(r,"e"),this.loadingPageTotal=!1}}))},isChildTable(e){if(e=e||this,e.$parent)try{return e.$parent.$el.className.includes("ui-table")?!0:this.isChildTable(e.$parent)}catch{return console.log("error",this),!1}else return!1}},created(){var e;this.$UICONFIG||(this.$UICONFIG={tablePreset:{separator:"@",presetPropMap:{}},getPageTotalApi:""}),this.checkTab=this.defaultTab,this.defaultPageSizes=this.pageSizes||((e=this.$UICONFIG)==null?void 0:e.pageSizes)||[20,50,100,200,500,1e3],this.useMaps=JSON.parse(JSON.stringify(this.tableMap))},async mounted(){if(await this.$nextTick(),setTimeout(()=>{this.isInit=!0},1e3),this.isChild=this.isChildTable(),this.isChild?console.log("is child"):(console.log("is root"),this.bindTotalChangeEvent()),this.handleRefreshHeight(),this.isSingleSelection){const e=this.$refs.myTable.$el.querySelector(".el-table__header-wrapper .el-checkbox");e.style="display:none"}this.handleWindowResize=On(100,this.handleRefreshHeight),window.addEventListener("resize",this.handleWindowResize)},watch:{async useMaps(){await this.$nextTick(),this.handleRefreshHeight()},tableMap(e){this.useMaps=JSON.parse(JSON.stringify(e))},tableData(){this.handleRefreshHeight()}},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),this.isChild||this.$toChildren.$off("changePageTotal")},deactivated(){console.log("off"),this.isChild||this.$toChildren.$off("changePageTotal")},async activated(){this.handleRefreshHeight(),this.isInit&&(this.isChild||this.bindTotalChangeEvent())}},ao={};var Iu=be(ku,Tu,Cu,!1,Nu,"130a66a0",null,null);function Nu(e){for(let r in ao)this[r]=ao[r]}var Nn=function(){return Iu.exports}();Nn.install=e=>{e.component(Nn.name,Nn)};const lo=Nn;var Pu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.show?n("el-image",{ref:"imageRef",style:{width:e.sizeMain,height:e.sizeMain},attrs:{"scroll-container":".el-table__body-wrapper",fit:e.fit,src:e.srcMain,"preview-src-list":e.previewList,lazy:e.lazy},scopedSlots:e._u([{key:"placeholder",fn:function(){return[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-image--loading",style:{width:e.sizeMain,height:e.height}})]},proxy:!0},{key:"error",fn:function(){return[n("div",{staticClass:"ui-image--error",style:{width:e.sizeMain,height:e.height,lineHeight:e.height,fontSize:e.fontSize}},[n("i",{staticClass:"el-icon-picture-outline"})])]},proxy:!0}],null,!1,4245906892)}):e._e()},Lu=[],Xf="";const Du={name:"ComImage",props:{fit:{type:String,default:"contain"},size:{type:String,default:""},src:{type:[String,Array],default(){return""}},previewSrcList:{type:Array,default(){return[]}},lazy:{type:Boolean,default:!1}},data(){return{height:"",show:!1}},computed:{previewList(){return this.previewSrcList.length?this.previewSrcList:Array.isArray(this.src)?this.src:[]},srcMain(){return Array.isArray(this.src)?this.src[0]:this.src},fontSize(){return`${parseInt(this.height)-30}px`},sizeMain(){return this.size?Number(this.size)?`${this.size}px`:this.size:"100%"}},async mounted(){setTimeout(async()=>{this.show=!0,await this.$nextTick(),this.height=`${this.$refs.imageRef.$el.offsetWidth}px`},300)}},so={};var $u=be(Du,Pu,Lu,!1,Ru,"52e1ecf6",null,null);function Ru(e){for(let r in so)this[r]=so[r]}var Pn=function(){return $u.exports}();Pn.install=e=>{e.component(Pn.name,Pn)};const uo=Pn;var Mu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-scrollbar",{staticClass:"ui-scrollbar",style:{height:e.setHeight,width:"100%"}},[e._t("default")],2)},Fu=[],Zf="";const ju={name:"ComContainer",props:{staticClass:{type:Array,default(){return[]}},staticNum:{type:Number,default:0},height:{type:String,default:""}},data(){return{setHeight:"unset"}},methods:{handleRefreshHeight(){this.$nextTick().then(()=>{this.setHeight=this.height||`${xi(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:On(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},fo={};var Bu=be(ju,Mu,Fu,!1,qu,"c2fac2c4",null,null);function qu(e){for(let r in fo)this[r]=fo[r]}var Ln=function(){return Bu.exports}();Ln.install=e=>{e.component(Ln.name,Ln)};const co=Ln;var ho={exports:{}};/*!
|
|
25
25
|
* Quill Editor v1.3.7
|
|
26
26
|
* https://quilljs.com/
|
|
27
27
|
* Copyright (c) 2014, Jason Chen
|
|
28
28
|
* Copyright (c) 2013, salesforce.com
|
|
29
|
-
*/(function(e,r){(function(t,o){e.exports=o()})(typeof self!="undefined"?self:Ct,function(){return function(n){var t={};function o(i){if(t[i])return t[i].exports;var s=t[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=t,o.d=function(i,s,d){o.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:d})},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=109)}([function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(17),s=o(18),d=o(19),c=o(45),h=o(46),f=o(47),l=o(48),a=o(49),u=o(12),v=o(32),p=o(33),b=o(31),m=o(1),
|
|
30
|
-
`;for(var u=c.iterator(this.ops),v=new f,p=0;u.hasNext();){if(u.peekType()!=="insert")return;var b=u.peek(),m=c.length(b)-u.peekLength(),
|
|
31
|
-
`)){var U=a.default.create(P.blotName);this.parent.insertBefore(U,D===0?this:this.next),U.insertAt(0,$.slice(0,-1))}else s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,D,$,B)}}]),w}(a.default.Embed);A.scope=a.default.Scope.BLOCK_BLOT;var P=function(S){k(w,S);function w(
|
|
29
|
+
*/(function(e,r){(function(t,o){e.exports=o()})(typeof self!="undefined"?self:Ct,function(){return function(n){var t={};function o(i){if(t[i])return t[i].exports;var s=t[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=t,o.d=function(i,s,d){o.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:d})},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=109)}([function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(17),s=o(18),d=o(19),c=o(45),h=o(46),f=o(47),l=o(48),a=o(49),u=o(12),v=o(32),p=o(33),b=o(31),m=o(1),y={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:i.default,Format:s.default,Leaf:d.default,Embed:l.default,Scroll:c.default,Block:f.default,Inline:h.default,Text:a.default,Attributor:{Attribute:u.default,Class:v.default,Style:p.default,Store:b.default}};t.default=y},function(n,t,o){var i=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var _ in y)y.hasOwnProperty(_)&&(m[_]=y[_])};return function(m,y){b(m,y);function _(){this.constructor=m}m.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=function(b){i(m,b);function m(y){var _=this;return y="[Parchment] "+y,_=b.call(this,y)||this,_.message=y,_.name=_.constructor.name,_}return m}(Error);t.ParchmentError=s;var d={},c={},h={},f={};t.DATA_KEY="__blot";var l;(function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"})(l=t.Scope||(t.Scope={}));function a(b,m){var y=v(b);if(y==null)throw new s("Unable to create "+b+" blot");var _=y,g=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:_.create(m);return new _(g,m)}t.create=a;function u(b,m){return m===void 0&&(m=!1),b==null?null:b[t.DATA_KEY]!=null?b[t.DATA_KEY].blot:m?u(b.parentNode,m):null}t.find=u;function v(b,m){m===void 0&&(m=l.ANY);var y;if(typeof b=="string")y=f[b]||d[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)y=f.text;else if(typeof b=="number")b&l.LEVEL&l.BLOCK?y=f.block:b&l.LEVEL&l.INLINE&&(y=f.inline);else if(b instanceof HTMLElement){var _=(b.getAttribute("class")||"").split(/\s+/);for(var g in _)if(y=c[_[g]],y)break;y=y||h[b.tagName]}return y==null?null:m&l.LEVEL&y.scope&&m&l.TYPE&y.scope?y:null}t.query=v;function p(){for(var b=[],m=0;m<arguments.length;m++)b[m]=arguments[m];if(b.length>1)return b.map(function(g){return p(g)});var y=b[0];if(typeof y.blotName!="string"&&typeof y.attrName!="string")throw new s("Invalid definition");if(y.blotName==="abstract")throw new s("Cannot register abstract class");if(f[y.blotName||y.attrName]=y,typeof y.keyName=="string")d[y.keyName]=y;else if(y.className!=null&&(c[y.className]=y),y.tagName!=null){Array.isArray(y.tagName)?y.tagName=y.tagName.map(function(g){return g.toUpperCase()}):y.tagName=y.tagName.toUpperCase();var _=Array.isArray(y.tagName)?y.tagName:[y.tagName];_.forEach(function(g){(h[g]==null||y.className==null)&&(h[g]=y)})}return y}t.register=p},function(n,t,o){var i=o(51),s=o(11),d=o(3),c=o(20),h=String.fromCharCode(0),f=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};f.prototype.insert=function(l,a){var u={};return l.length===0?this:(u.insert=l,a!=null&&typeof a=="object"&&Object.keys(a).length>0&&(u.attributes=a),this.push(u))},f.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},f.prototype.retain=function(l,a){if(l<=0)return this;var u={retain:l};return a!=null&&typeof a=="object"&&Object.keys(a).length>0&&(u.attributes=a),this.push(u)},f.prototype.push=function(l){var a=this.ops.length,u=this.ops[a-1];if(l=d(!0,{},l),typeof u=="object"){if(typeof l.delete=="number"&&typeof u.delete=="number")return this.ops[a-1]={delete:u.delete+l.delete},this;if(typeof u.delete=="number"&&l.insert!=null&&(a-=1,u=this.ops[a-1],typeof u!="object"))return this.ops.unshift(l),this;if(s(l.attributes,u.attributes)){if(typeof l.insert=="string"&&typeof u.insert=="string")return this.ops[a-1]={insert:u.insert+l.insert},typeof l.attributes=="object"&&(this.ops[a-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof u.retain=="number")return this.ops[a-1]={retain:u.retain+l.retain},typeof l.attributes=="object"&&(this.ops[a-1].attributes=l.attributes),this}}return a===this.ops.length?this.ops.push(l):this.ops.splice(a,0,l),this},f.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},f.prototype.filter=function(l){return this.ops.filter(l)},f.prototype.forEach=function(l){this.ops.forEach(l)},f.prototype.map=function(l){return this.ops.map(l)},f.prototype.partition=function(l){var a=[],u=[];return this.forEach(function(v){var p=l(v)?a:u;p.push(v)}),[a,u]},f.prototype.reduce=function(l,a){return this.ops.reduce(l,a)},f.prototype.changeLength=function(){return this.reduce(function(l,a){return a.insert?l+c.length(a):a.delete?l-a.delete:l},0)},f.prototype.length=function(){return this.reduce(function(l,a){return l+c.length(a)},0)},f.prototype.slice=function(l,a){l=l||0,typeof a!="number"&&(a=1/0);for(var u=[],v=c.iterator(this.ops),p=0;p<a&&v.hasNext();){var b;p<l?b=v.next(l-p):(b=v.next(a-p),u.push(b)),p+=c.length(b)}return new f(u)},f.prototype.compose=function(l){var a=c.iterator(this.ops),u=c.iterator(l.ops),v=[],p=u.peek();if(p!=null&&typeof p.retain=="number"&&p.attributes==null){for(var b=p.retain;a.peekType()==="insert"&&a.peekLength()<=b;)b-=a.peekLength(),v.push(a.next());p.retain-b>0&&u.next(p.retain-b)}for(var m=new f(v);a.hasNext()||u.hasNext();)if(u.peekType()==="insert")m.push(u.next());else if(a.peekType()==="delete")m.push(a.next());else{var y=Math.min(a.peekLength(),u.peekLength()),_=a.next(y),g=u.next(y);if(typeof g.retain=="number"){var O={};typeof _.retain=="number"?O.retain=y:O.insert=_.insert;var k=c.attributes.compose(_.attributes,g.attributes,typeof _.retain=="number");if(k&&(O.attributes=k),m.push(O),!u.hasNext()&&s(m.ops[m.ops.length-1],O)){var T=new f(a.rest());return m.concat(T).chop()}}else typeof g.delete=="number"&&typeof _.retain=="number"&&m.push(g)}return m.chop()},f.prototype.concat=function(l){var a=new f(this.ops.slice());return l.ops.length>0&&(a.push(l.ops[0]),a.ops=a.ops.concat(l.ops.slice(1))),a},f.prototype.diff=function(l,a){if(this.ops===l.ops)return new f;var u=[this,l].map(function(y){return y.map(function(_){if(_.insert!=null)return typeof _.insert=="string"?_.insert:h;var g=y===l?"on":"with";throw new Error("diff() called "+g+" non-document")}).join("")}),v=new f,p=i(u[0],u[1],a),b=c.iterator(this.ops),m=c.iterator(l.ops);return p.forEach(function(y){for(var _=y[1].length;_>0;){var g=0;switch(y[0]){case i.INSERT:g=Math.min(m.peekLength(),_),v.push(m.next(g));break;case i.DELETE:g=Math.min(_,b.peekLength()),b.next(g),v.delete(g);break;case i.EQUAL:g=Math.min(b.peekLength(),m.peekLength(),_);var O=b.next(g),k=m.next(g);s(O.insert,k.insert)?v.retain(g,c.attributes.diff(O.attributes,k.attributes)):v.push(k).delete(g);break}_-=g}}),v.chop()},f.prototype.eachLine=function(l,a){a=a||`
|
|
30
|
+
`;for(var u=c.iterator(this.ops),v=new f,p=0;u.hasNext();){if(u.peekType()!=="insert")return;var b=u.peek(),m=c.length(b)-u.peekLength(),y=typeof b.insert=="string"?b.insert.indexOf(a,m)-m:-1;if(y<0)v.push(u.next());else if(y>0)v.push(u.next(y));else{if(l(v,u.next(1).attributes||{},p)===!1)return;p+=1,v=new f}}v.length()>0&&l(v,{},p)},f.prototype.transform=function(l,a){if(a=!!a,typeof l=="number")return this.transformPosition(l,a);for(var u=c.iterator(this.ops),v=c.iterator(l.ops),p=new f;u.hasNext()||v.hasNext();)if(u.peekType()==="insert"&&(a||v.peekType()!=="insert"))p.retain(c.length(u.next()));else if(v.peekType()==="insert")p.push(v.next());else{var b=Math.min(u.peekLength(),v.peekLength()),m=u.next(b),y=v.next(b);if(m.delete)continue;y.delete?p.push(y):p.retain(b,c.attributes.transform(m.attributes,y.attributes,a))}return p.chop()},f.prototype.transformPosition=function(l,a){a=!!a;for(var u=c.iterator(this.ops),v=0;u.hasNext()&&v<=l;){var p=u.peekLength(),b=u.peekType();if(u.next(),b==="delete"){l-=Math.min(p,l-v);continue}else b==="insert"&&(v<l||!a)&&(l+=p);v+=p}return l},n.exports=f},function(n,t){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=function(u){return typeof Array.isArray=="function"?Array.isArray(u):i.call(u)==="[object Array]"},h=function(u){if(!u||i.call(u)!=="[object Object]")return!1;var v=o.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&o.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!v&&!p)return!1;var b;for(b in u);return typeof b=="undefined"||o.call(u,b)},f=function(u,v){s&&v.name==="__proto__"?s(u,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):u[v.name]=v.newValue},l=function(u,v){if(v==="__proto__")if(o.call(u,v)){if(d)return d(u,v).value}else return;return u[v]};n.exports=function a(){var u,v,p,b,m,y,_=arguments[0],g=1,O=arguments.length,k=!1;for(typeof _=="boolean"&&(k=_,_=arguments[1]||{},g=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});g<O;++g)if(u=arguments[g],u!=null)for(v in u)p=l(_,v),b=l(u,v),_!==b&&(k&&b&&(h(b)||(m=c(b)))?(m?(m=!1,y=p&&c(p)?p:[]):y=p&&h(p)?p:{},f(_,{name:v,newValue:a(k,y,b)})):typeof b!="undefined"&&f(_,{name:v,newValue:b}));return _}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function S(w,I){for(var D=0;D<I.length;D++){var $=I[D];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(w,$.key,$)}}return function(w,I,D){return I&&S(w.prototype,I),D&&S(w,D),w}}(),s=function S(w,I,D){w===null&&(w=Function.prototype);var $=Object.getOwnPropertyDescriptor(w,I);if($===void 0){var B=Object.getPrototypeOf(w);return B===null?void 0:S(B,I,D)}else{if("value"in $)return $.value;var U=$.get;return U===void 0?void 0:U.call(D)}},d=o(3),c=_(d),h=o(2),f=_(h),l=o(0),a=_(l),u=o(16),v=_(u),p=o(6),b=_(p),m=o(7),y=_(m);function _(S){return S&&S.__esModule?S:{default:S}}function g(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function O(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function k(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var T=1,A=function(S){k(w,S);function w(){return g(this,w),O(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return i(w,[{key:"attach",value:function(){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(D,$){var B=a.default.query(D,a.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,$)}},{key:"formatAt",value:function(D,$,B,U){this.format(B,U)}},{key:"insertAt",value:function(D,$,B){if(typeof $=="string"&&$.endsWith(`
|
|
31
|
+
`)){var U=a.default.create(P.blotName);this.parent.insertBefore(U,D===0?this:this.next),U.insertAt(0,$.slice(0,-1))}else s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,D,$,B)}}]),w}(a.default.Embed);A.scope=a.default.Scope.BLOCK_BLOT;var P=function(S){k(w,S);function w(I){g(this,w);var D=O(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,I));return D.cache={},D}return i(w,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(D,$){return $.length()===0?D:D.insert($.value(),x($))},new f.default).insert(`
|
|
32
32
|
`,x(this))),this.cache.delta}},{key:"deleteAt",value:function(D,$){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,D,$),this.cache={}}},{key:"formatAt",value:function(D,$,B,U){$<=0||(a.default.query(B,a.default.Scope.BLOCK)?D+$===this.length()&&this.format(B,U):s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,D,Math.min($,this.length()-D-1),B,U),this.cache={})}},{key:"insertAt",value:function(D,$,B){if(B!=null)return s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,D,$,B);if($.length!==0){var U=$.split(`
|
|
33
|
-
`),G=U.shift();G.length>0&&(D<this.length()-1||this.children.tail==null?s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(D,this.length()-1),G):this.children.tail.insertAt(this.children.tail.length(),G),this.cache={});var q=this;U.reduce(function(R,E){return q=q.split(R,!0),q.insertAt(0,E),E.length},D+G.length)}}},{key:"insertBefore",value:function(D,$){var B=this.children.head;s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,D,$),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(D,$){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,D,$),this.cache={}}},{key:"optimize",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,D),this.cache={}}},{key:"path",value:function(D){return s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,D,!0)}},{key:"removeChild",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,D),this.cache={}}},{key:"split",value:function(D){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($&&(D===0||D>=this.length()-T)){var B=this.clone();return D===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var U=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,D,$);return this.cache={},U}}}]),w}(a.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[b.default,a.default.Embed,g.default];function x(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S==null||(typeof S.formats=="function"&&(w=(0,c.default)(w,S.formats())),S.parent==null||S.parent.blotName=="scroll"||S.parent.statics.scope!==S.statics.scope)?w:x(S.parent,w)}t.bubbleFormats=x,t.BlockEmbed=A,t.default=P},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},s=function(){function q(R,E){var C=[],I=!0,F=!1,j=void 0;try{for(var L=R[Symbol.iterator](),M;!(I=(M=L.next()).done)&&(C.push(M.value),!(E&&C.length===E));I=!0);}catch(H){F=!0,j=H}finally{try{!I&&L.return&&L.return()}finally{if(F)throw j}}return C}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return q(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function q(R,E){for(var C=0;C<E.length;C++){var I=E[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(R,I.key,I)}}return function(R,E,C){return E&&q(R.prototype,E),C&&q(R,C),R}}();o(50);var c=o(2),h=x(c),f=o(14),l=x(f),a=o(8),u=x(a),v=o(9),p=x(v),b=o(0),m=x(b),g=o(15),_=x(g),y=o(3),O=x(y),k=o(10),T=x(k),A=o(34),P=x(A);function x(q){return q&&q.__esModule?q:{default:q}}function S(q,R,E){return R in q?Object.defineProperty(q,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):q[R]=E,q}function w(q,R){if(!(q instanceof R))throw new TypeError("Cannot call a class as a function")}var N=(0,T.default)("quill"),D=function(){d(q,null,[{key:"debug",value:function(E){E===!0&&(E="log"),T.default.level(E)}},{key:"find",value:function(E){return E.__quill||m.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&N.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,C){var I=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var j=E.attrName||E.blotName;typeof j=="string"?this.register("formats/"+j,E,C):Object.keys(E).forEach(function(L){I.register(L,E[L],C)})}else this.imports[E]!=null&&!F&&N.warn("Overwriting "+E+" with",C),this.imports[E]=C,(E.startsWith("blots/")||E.startsWith("formats/"))&&C.blotName!=="abstract"?m.default.register(C):E.startsWith("modules")&&typeof C.register=="function"&&C.register()}}]);function q(R){var E=this,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,q),this.options=$(R,C),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",R);this.options.debug&&q.debug(this.options.debug);var I=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new _.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,function(j){j===u.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(j,L){var M=E.selection.lastRange,H=M&&M.length===0?M.index:void 0;B.call(E,function(){return E.editor.update(null,L,H)},j)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+I+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(q,[{key:"addContainer",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var I=E;E=document.createElement("div"),E.classList.add(I)}return this.container.insertBefore(E,C),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,C,I){var F=this,j=U(E,C,I),L=s(j,4);return E=L[0],C=L[1],I=L[3],B.call(this,function(){return F.editor.deleteText(E,C)},I,E,-1*C)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,C){var I=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;return B.call(this,function(){var j=I.getSelection(!0),L=new h.default;if(j==null)return L;if(m.default.query(E,m.default.Scope.BLOCK))L=I.editor.formatLine(j.index,j.length,S({},E,C));else{if(j.length===0)return I.selection.format(E,C),L;L=I.editor.formatText(j.index,j.length,S({},E,C))}return I.setSelection(j,u.default.sources.SILENT),L},F)}},{key:"formatLine",value:function(E,C,I,F,j){var L=this,M=void 0,H=U(E,C,I,F,j),z=s(H,4);return E=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatLine(E,C,M)},j,E,0)}},{key:"formatText",value:function(E,C,I,F,j){var L=this,M=void 0,H=U(E,C,I,F,j),z=s(H,4);return E=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatText(E,C,M)},j,E,0)}},{key:"getBounds",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=void 0;typeof E=="number"?I=this.selection.getBounds(E,C):I=this.selection.getBounds(E.index,E.length);var F=this.container.getBoundingClientRect();return{bottom:I.bottom-F.top,height:I.height,left:I.left-F.left,right:I.right-F.left,top:I.top-F.top,width:I.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,I=U(E,C),F=s(I,2);return E=F[0],C=F[1],this.editor.getContents(E,C)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,C):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,C)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,I=U(E,C),F=s(I,2);return E=F[0],C=F[1],this.editor.getText(E,C)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,C,I){var F=this,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return F.editor.insertEmbed(E,C,I)},j,E)}},{key:"insertText",value:function(E,C,I,F,j){var L=this,M=void 0,H=U(E,0,I,F,j),z=s(H,4);return E=z[0],M=z[2],j=z[3],B.call(this,function(){return L.editor.insertText(E,C,M)},j,E,C.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(E,C,I){this.clipboard.dangerouslyPasteHTML(E,C,I)}},{key:"removeFormat",value:function(E,C,I){var F=this,j=U(E,C,I),L=s(j,4);return E=L[0],C=L[1],I=L[3],B.call(this,function(){return F.editor.removeFormat(E,C)},I,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var C=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return B.call(this,function(){E=new h.default(E);var F=C.getLength(),j=C.editor.deleteText(0,F),L=C.editor.applyDelta(E),M=L.ops[L.ops.length-1];M!=null&&typeof M.insert=="string"&&M.insert[M.insert.length-1]===`
|
|
34
|
-
`&&(C.editor.deleteText(C.getLength()-1,1),L.delete(1));var H=j.compose(L);return H},I)}},{key:"setSelection",value:function(E,C,I){if(E==null)this.selection.setRange(null,C||q.sources.API);else{var F=U(E,C,I),j=s(F,4);E=j[0],C=j[1],I=j[3],this.selection.setRange(new g.Range(E,C),I),I!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API,I=new h.default().insert(E);return this.setContents(I,C)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,C=this.scroll.update(E);return this.selection.update(E),C}},{key:"updateContents",value:function(E){var C=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return B.call(this,function(){return E=new h.default(E),C.editor.applyDelta(E,I)},I,!0)}}]),q}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=u.default.events,D.sources=u.default.sources,D.version="1.3.7",D.imports={delta:h.default,parchment:m.default,"core/module":p.default,"core/theme":P.default};function $(q,R){if(R=(0,O.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===D.DEFAULTS.theme)R.theme=P.default;else if(R.theme=D.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var E=(0,O.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(j){F.modules[j]===!0&&(F.modules[j]={})})});var C=Object.keys(E.modules).concat(Object.keys(R.modules)),I=C.reduce(function(F,j){var L=D.import("modules/"+j);return L==null?N.error("Cannot load "+j+" module. Are you sure you registered it?"):F[j]=L.DEFAULTS||{},F},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,O.default)(!0,{},D.DEFAULTS,{modules:I},E,R),["bounds","container","scrollingContainer"].forEach(function(F){typeof R[F]=="string"&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,j){return R.modules[j]&&(F[j]=R.modules[j]),F},{}),R}function B(q,R,E,C){if(this.options.strict&&!this.isEnabled()&&R===u.default.sources.USER)return new h.default;var I=E==null?null:this.getSelection(),F=this.editor.delta,j=q();if(I!=null&&(E===!0&&(E=I.index),C==null?I=G(I,j,R):C!==0&&(I=G(I,E,C,R)),this.setSelection(I,u.default.sources.SILENT)),j.length()>0){var L,M=[u.default.events.TEXT_CHANGE,j,F,R];if((L=this.emitter).emit.apply(L,[u.default.events.EDITOR_CHANGE].concat(M)),R!==u.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,M)}}return j}function U(q,R,E,C,I){var F={};return typeof q.index=="number"&&typeof q.length=="number"?typeof R!="number"?(I=C,C=E,E=R,R=q.length,q=q.index):(R=q.length,q=q.index):typeof R!="number"&&(I=C,C=E,E=R,R=0),(typeof E=="undefined"?"undefined":i(E))==="object"?(F=E,I=C):typeof E=="string"&&(C!=null?F[E]=C:I=E),I=I||u.default.sources.API,[q,R,F,I]}function G(q,R,E,C){if(q==null)return null;var I=void 0,F=void 0;if(R instanceof h.default){var j=[q.index,q.index+q.length].map(function(z){return R.transformPosition(z,C!==u.default.sources.USER)}),L=s(j,2);I=L[0],F=L[1]}else{var M=[q.index,q.index+q.length].map(function(z){return z<R||z===R&&C===u.default.sources.USER?z:E>=0?z+E:Math.max(R,z+E)}),H=s(M,2);I=H[0],F=H[1]}return new g.Range(I,F-I)}t.expandConfig=$,t.overload=U,t.default=D},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var k=y.get;return k===void 0?void 0:k.call(_)}},d=o(7),c=l(d),h=o(0),f=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function a(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function u(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function v(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){v(m,b);function m(){return a(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"formatAt",value:function(_,y,O,k){if(m.compare(this.statics.blotName,O)<0&&f.default.query(O,f.default.Scope.BLOT)){var T=this.isolate(_,y);k&&T.wrap(O,k)}else s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,_,y,O,k)}},{key:"optimize",value:function(_){if(s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(_,y){var O=m.order.indexOf(_),k=m.order.indexOf(y);return O>=0||k>=0?O-k:_===y?0:_<y?-1:1}}]),m}(f.default.Inline);p.allowedChildren=[p,f.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default.Text);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function g(_,y){for(var O=0;O<y.length;O++){var k=y[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}return function(_,y,O){return y&&g(_.prototype,y),O&&g(_,O),_}}(),s=function g(_,y,O){_===null&&(_=Function.prototype);var k=Object.getOwnPropertyDescriptor(_,y);if(k===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:g(T,y,O)}else{if("value"in k)return k.value;var A=k.get;return A===void 0?void 0:A.call(O)}},d=o(54),c=l(d),h=o(10),f=l(h);function l(g){return g&&g.__esModule?g:{default:g}}function a(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function u(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function v(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(g,_):g.__proto__=_)}var p=(0,f.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(g){document.addEventListener(g,function(){for(var _=arguments.length,y=Array(_),O=0;O<_;O++)y[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var T;(T=k.__quill.emitter).handleDOM.apply(T,y)}})})});var m=function(g){v(_,g);function _(){a(this,_);var y=u(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return y.listeners={},y.on("error",p.error),y}return i(_,[{key:"emit",value:function(){p.log.apply(p,arguments),s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var k=arguments.length,T=Array(k>1?k-1:0),A=1;A<k;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(P){var x=P.node,S=P.handler;(O.target===x||x.contains(O.target))&&S.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,k,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:k,handler:T})}}]),_}(c.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function d(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,d),this.quill=c,this.options=h};s.DEFAULTS={},t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],s="warn";function d(h){if(i.indexOf(h)<=i.indexOf(s)){for(var f,l=arguments.length,a=Array(l>1?l-1:0),u=1;u<l;u++)a[u-1]=arguments[u];(f=console)[h].apply(f,a)}}function c(h){return i.reduce(function(f,l){return f[l]=d.bind(console,l,h),f},{})}d.level=c.level=function(h){s=h},t.default=c},function(n,t,o){var i=Array.prototype.slice,s=o(52),d=o(53),c=n.exports=function(a,u,v){return v||(v={}),a===u?!0:a instanceof Date&&u instanceof Date?a.getTime()===u.getTime():!a||!u||typeof a!="object"&&typeof u!="object"?v.strict?a===u:a==u:l(a,u,v)};function h(a){return a==null}function f(a){return!(!a||typeof a!="object"||typeof a.length!="number"||typeof a.copy!="function"||typeof a.slice!="function"||a.length>0&&typeof a[0]!="number")}function l(a,u,v){var p,b;if(h(a)||h(u)||a.prototype!==u.prototype)return!1;if(d(a))return d(u)?(a=i.call(a),u=i.call(u),c(a,u,v)):!1;if(f(a)){if(!f(u)||a.length!==u.length)return!1;for(p=0;p<a.length;p++)if(a[p]!==u[p])return!1;return!0}try{var m=s(a),g=s(u)}catch{return!1}if(m.length!=g.length)return!1;for(m.sort(),g.sort(),p=m.length-1;p>=0;p--)if(m[p]!=g[p])return!1;for(p=m.length-1;p>=0;p--)if(b=m[p],!c(a[b],u[b],v))return!1;return typeof a==typeof u}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function d(c,h,f){f===void 0&&(f={}),this.attrName=c,this.keyName=h;var l=i.Scope.TYPE&i.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&i.Scope.LEVEL|l:this.scope=i.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return d.keys=function(c){return[].map.call(c.attributes,function(h){return h.name})},d.prototype.add=function(c,h){return this.canAdd(c,h)?(c.setAttribute(this.keyName,h),!0):!1},d.prototype.canAdd=function(c,h){var f=i.query(c,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},d.prototype.remove=function(c){c.removeAttribute(this.keyName)},d.prototype.value=function(c){var h=c.getAttribute(this.keyName);return this.canAdd(c,h)&&h?h:""},d}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function A(P,x){var S=[],w=!0,N=!1,D=void 0;try{for(var $=P[Symbol.iterator](),B;!(w=(B=$.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(U){N=!0,D=U}finally{try{!w&&$.return&&$.return()}finally{if(N)throw D}}return S}return function(P,x){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(P,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(P,w.key,w)}}return function(P,x,S){return x&&A(P.prototype,x),S&&A(P,S),P}}(),d=function A(P,x,S){P===null&&(P=Function.prototype);var w=Object.getOwnPropertyDescriptor(P,x);if(w===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:A(N,x,S)}else{if("value"in w)return w.value;var D=w.get;return D===void 0?void 0:D.call(S)}},c=o(2),h=g(c),f=o(0),l=g(f),a=o(4),u=g(a),v=o(6),p=g(v),b=o(7),m=g(b);function g(A){return A&&A.__esModule?A:{default:A}}function _(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}function y(A,P){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:A}function O(A,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);A.prototype=Object.create(P&&P.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(A,P):A.__proto__=P)}var k=function(A){O(P,A);function P(){return _(this,P),y(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(p.default);k.blotName="code",k.tagName="CODE";var T=function(A){O(P,A);function P(){return _(this,P),y(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return s(P,[{key:"delta",value:function(){var S=this,w=this.domNode.textContent;return w.endsWith(`
|
|
33
|
+
`),G=U.shift();G.length>0&&(D<this.length()-1||this.children.tail==null?s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(D,this.length()-1),G):this.children.tail.insertAt(this.children.tail.length(),G),this.cache={});var q=this;U.reduce(function(R,E){return q=q.split(R,!0),q.insertAt(0,E),E.length},D+G.length)}}},{key:"insertBefore",value:function(D,$){var B=this.children.head;s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,D,$),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(D,$){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,D,$),this.cache={}}},{key:"optimize",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,D),this.cache={}}},{key:"path",value:function(D){return s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,D,!0)}},{key:"removeChild",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,D),this.cache={}}},{key:"split",value:function(D){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($&&(D===0||D>=this.length()-T)){var B=this.clone();return D===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var U=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,D,$);return this.cache={},U}}}]),w}(a.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[b.default,a.default.Embed,y.default];function x(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S==null||(typeof S.formats=="function"&&(w=(0,c.default)(w,S.formats())),S.parent==null||S.parent.blotName=="scroll"||S.parent.statics.scope!==S.statics.scope)?w:x(S.parent,w)}t.bubbleFormats=x,t.BlockEmbed=A,t.default=P},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},s=function(){function q(R,E){var C=[],N=!0,F=!1,j=void 0;try{for(var L=R[Symbol.iterator](),M;!(N=(M=L.next()).done)&&(C.push(M.value),!(E&&C.length===E));N=!0);}catch(H){F=!0,j=H}finally{try{!N&&L.return&&L.return()}finally{if(F)throw j}}return C}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return q(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function q(R,E){for(var C=0;C<E.length;C++){var N=E[C];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(R,N.key,N)}}return function(R,E,C){return E&&q(R.prototype,E),C&&q(R,C),R}}();o(50);var c=o(2),h=x(c),f=o(14),l=x(f),a=o(8),u=x(a),v=o(9),p=x(v),b=o(0),m=x(b),y=o(15),_=x(y),g=o(3),O=x(g),k=o(10),T=x(k),A=o(34),P=x(A);function x(q){return q&&q.__esModule?q:{default:q}}function S(q,R,E){return R in q?Object.defineProperty(q,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):q[R]=E,q}function w(q,R){if(!(q instanceof R))throw new TypeError("Cannot call a class as a function")}var I=(0,T.default)("quill"),D=function(){d(q,null,[{key:"debug",value:function(E){E===!0&&(E="log"),T.default.level(E)}},{key:"find",value:function(E){return E.__quill||m.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&I.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,C){var N=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var j=E.attrName||E.blotName;typeof j=="string"?this.register("formats/"+j,E,C):Object.keys(E).forEach(function(L){N.register(L,E[L],C)})}else this.imports[E]!=null&&!F&&I.warn("Overwriting "+E+" with",C),this.imports[E]=C,(E.startsWith("blots/")||E.startsWith("formats/"))&&C.blotName!=="abstract"?m.default.register(C):E.startsWith("modules")&&typeof C.register=="function"&&C.register()}}]);function q(R){var E=this,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,q),this.options=$(R,C),this.container=this.options.container,this.container==null)return I.error("Invalid Quill container",R);this.options.debug&&q.debug(this.options.debug);var N=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new _.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,function(j){j===u.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(j,L){var M=E.selection.lastRange,H=M&&M.length===0?M.index:void 0;B.call(E,function(){return E.editor.update(null,L,H)},j)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+N+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(q,[{key:"addContainer",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var N=E;E=document.createElement("div"),E.classList.add(N)}return this.container.insertBefore(E,C),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,C,N){var F=this,j=U(E,C,N),L=s(j,4);return E=L[0],C=L[1],N=L[3],B.call(this,function(){return F.editor.deleteText(E,C)},N,E,-1*C)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,C){var N=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;return B.call(this,function(){var j=N.getSelection(!0),L=new h.default;if(j==null)return L;if(m.default.query(E,m.default.Scope.BLOCK))L=N.editor.formatLine(j.index,j.length,S({},E,C));else{if(j.length===0)return N.selection.format(E,C),L;L=N.editor.formatText(j.index,j.length,S({},E,C))}return N.setSelection(j,u.default.sources.SILENT),L},F)}},{key:"formatLine",value:function(E,C,N,F,j){var L=this,M=void 0,H=U(E,C,N,F,j),z=s(H,4);return E=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatLine(E,C,M)},j,E,0)}},{key:"formatText",value:function(E,C,N,F,j){var L=this,M=void 0,H=U(E,C,N,F,j),z=s(H,4);return E=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatText(E,C,M)},j,E,0)}},{key:"getBounds",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=void 0;typeof E=="number"?N=this.selection.getBounds(E,C):N=this.selection.getBounds(E.index,E.length);var F=this.container.getBoundingClientRect();return{bottom:N.bottom-F.top,height:N.height,left:N.left-F.left,right:N.right-F.left,top:N.top-F.top,width:N.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,N=U(E,C),F=s(N,2);return E=F[0],C=F[1],this.editor.getContents(E,C)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,C):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,C)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,N=U(E,C),F=s(N,2);return E=F[0],C=F[1],this.editor.getText(E,C)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,C,N){var F=this,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return F.editor.insertEmbed(E,C,N)},j,E)}},{key:"insertText",value:function(E,C,N,F,j){var L=this,M=void 0,H=U(E,0,N,F,j),z=s(H,4);return E=z[0],M=z[2],j=z[3],B.call(this,function(){return L.editor.insertText(E,C,M)},j,E,C.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(E,C,N){this.clipboard.dangerouslyPasteHTML(E,C,N)}},{key:"removeFormat",value:function(E,C,N){var F=this,j=U(E,C,N),L=s(j,4);return E=L[0],C=L[1],N=L[3],B.call(this,function(){return F.editor.removeFormat(E,C)},N,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var C=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return B.call(this,function(){E=new h.default(E);var F=C.getLength(),j=C.editor.deleteText(0,F),L=C.editor.applyDelta(E),M=L.ops[L.ops.length-1];M!=null&&typeof M.insert=="string"&&M.insert[M.insert.length-1]===`
|
|
34
|
+
`&&(C.editor.deleteText(C.getLength()-1,1),L.delete(1));var H=j.compose(L);return H},N)}},{key:"setSelection",value:function(E,C,N){if(E==null)this.selection.setRange(null,C||q.sources.API);else{var F=U(E,C,N),j=s(F,4);E=j[0],C=j[1],N=j[3],this.selection.setRange(new y.Range(E,C),N),N!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API,N=new h.default().insert(E);return this.setContents(N,C)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,C=this.scroll.update(E);return this.selection.update(E),C}},{key:"updateContents",value:function(E){var C=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return B.call(this,function(){return E=new h.default(E),C.editor.applyDelta(E,N)},N,!0)}}]),q}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=u.default.events,D.sources=u.default.sources,D.version="1.3.7",D.imports={delta:h.default,parchment:m.default,"core/module":p.default,"core/theme":P.default};function $(q,R){if(R=(0,O.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===D.DEFAULTS.theme)R.theme=P.default;else if(R.theme=D.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var E=(0,O.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(j){F.modules[j]===!0&&(F.modules[j]={})})});var C=Object.keys(E.modules).concat(Object.keys(R.modules)),N=C.reduce(function(F,j){var L=D.import("modules/"+j);return L==null?I.error("Cannot load "+j+" module. Are you sure you registered it?"):F[j]=L.DEFAULTS||{},F},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,O.default)(!0,{},D.DEFAULTS,{modules:N},E,R),["bounds","container","scrollingContainer"].forEach(function(F){typeof R[F]=="string"&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,j){return R.modules[j]&&(F[j]=R.modules[j]),F},{}),R}function B(q,R,E,C){if(this.options.strict&&!this.isEnabled()&&R===u.default.sources.USER)return new h.default;var N=E==null?null:this.getSelection(),F=this.editor.delta,j=q();if(N!=null&&(E===!0&&(E=N.index),C==null?N=G(N,j,R):C!==0&&(N=G(N,E,C,R)),this.setSelection(N,u.default.sources.SILENT)),j.length()>0){var L,M=[u.default.events.TEXT_CHANGE,j,F,R];if((L=this.emitter).emit.apply(L,[u.default.events.EDITOR_CHANGE].concat(M)),R!==u.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,M)}}return j}function U(q,R,E,C,N){var F={};return typeof q.index=="number"&&typeof q.length=="number"?typeof R!="number"?(N=C,C=E,E=R,R=q.length,q=q.index):(R=q.length,q=q.index):typeof R!="number"&&(N=C,C=E,E=R,R=0),(typeof E=="undefined"?"undefined":i(E))==="object"?(F=E,N=C):typeof E=="string"&&(C!=null?F[E]=C:N=E),N=N||u.default.sources.API,[q,R,F,N]}function G(q,R,E,C){if(q==null)return null;var N=void 0,F=void 0;if(R instanceof h.default){var j=[q.index,q.index+q.length].map(function(z){return R.transformPosition(z,C!==u.default.sources.USER)}),L=s(j,2);N=L[0],F=L[1]}else{var M=[q.index,q.index+q.length].map(function(z){return z<R||z===R&&C===u.default.sources.USER?z:E>=0?z+E:Math.max(R,z+E)}),H=s(M,2);N=H[0],F=H[1]}return new y.Range(N,F-N)}t.expandConfig=$,t.overload=U,t.default=D},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(7),c=l(d),h=o(0),f=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function a(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function u(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function v(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){v(m,b);function m(){return a(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"formatAt",value:function(_,g,O,k){if(m.compare(this.statics.blotName,O)<0&&f.default.query(O,f.default.Scope.BLOT)){var T=this.isolate(_,g);k&&T.wrap(O,k)}else s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,_,g,O,k)}},{key:"optimize",value:function(_){if(s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var g=this.parent.isolate(this.offset(),this.length());this.moveChildren(g),g.wrap(this)}}}],[{key:"compare",value:function(_,g){var O=m.order.indexOf(_),k=m.order.indexOf(g);return O>=0||k>=0?O-k:_===g?0:_<g?-1:1}}]),m}(f.default.Inline);p.allowedChildren=[p,f.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default.Text);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function y(_,g){for(var O=0;O<g.length;O++){var k=g[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}return function(_,g,O){return g&&y(_.prototype,g),O&&y(_,O),_}}(),s=function y(_,g,O){_===null&&(_=Function.prototype);var k=Object.getOwnPropertyDescriptor(_,g);if(k===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:y(T,g,O)}else{if("value"in k)return k.value;var A=k.get;return A===void 0?void 0:A.call(O)}},d=o(54),c=l(d),h=o(10),f=l(h);function l(y){return y&&y.__esModule?y:{default:y}}function a(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function u(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function v(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var p=(0,f.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(y){document.addEventListener(y,function(){for(var _=arguments.length,g=Array(_),O=0;O<_;O++)g[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var T;(T=k.__quill.emitter).handleDOM.apply(T,g)}})})});var m=function(y){v(_,y);function _(){a(this,_);var g=u(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return g.listeners={},g.on("error",p.error),g}return i(_,[{key:"emit",value:function(){p.log.apply(p,arguments),s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var k=arguments.length,T=Array(k>1?k-1:0),A=1;A<k;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(P){var x=P.node,S=P.handler;(O.target===x||x.contains(O.target))&&S.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,k,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:k,handler:T})}}]),_}(c.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function d(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,d),this.quill=c,this.options=h};s.DEFAULTS={},t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],s="warn";function d(h){if(i.indexOf(h)<=i.indexOf(s)){for(var f,l=arguments.length,a=Array(l>1?l-1:0),u=1;u<l;u++)a[u-1]=arguments[u];(f=console)[h].apply(f,a)}}function c(h){return i.reduce(function(f,l){return f[l]=d.bind(console,l,h),f},{})}d.level=c.level=function(h){s=h},t.default=c},function(n,t,o){var i=Array.prototype.slice,s=o(52),d=o(53),c=n.exports=function(a,u,v){return v||(v={}),a===u?!0:a instanceof Date&&u instanceof Date?a.getTime()===u.getTime():!a||!u||typeof a!="object"&&typeof u!="object"?v.strict?a===u:a==u:l(a,u,v)};function h(a){return a==null}function f(a){return!(!a||typeof a!="object"||typeof a.length!="number"||typeof a.copy!="function"||typeof a.slice!="function"||a.length>0&&typeof a[0]!="number")}function l(a,u,v){var p,b;if(h(a)||h(u)||a.prototype!==u.prototype)return!1;if(d(a))return d(u)?(a=i.call(a),u=i.call(u),c(a,u,v)):!1;if(f(a)){if(!f(u)||a.length!==u.length)return!1;for(p=0;p<a.length;p++)if(a[p]!==u[p])return!1;return!0}try{var m=s(a),y=s(u)}catch{return!1}if(m.length!=y.length)return!1;for(m.sort(),y.sort(),p=m.length-1;p>=0;p--)if(m[p]!=y[p])return!1;for(p=m.length-1;p>=0;p--)if(b=m[p],!c(a[b],u[b],v))return!1;return typeof a==typeof u}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function d(c,h,f){f===void 0&&(f={}),this.attrName=c,this.keyName=h;var l=i.Scope.TYPE&i.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&i.Scope.LEVEL|l:this.scope=i.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return d.keys=function(c){return[].map.call(c.attributes,function(h){return h.name})},d.prototype.add=function(c,h){return this.canAdd(c,h)?(c.setAttribute(this.keyName,h),!0):!1},d.prototype.canAdd=function(c,h){var f=i.query(c,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},d.prototype.remove=function(c){c.removeAttribute(this.keyName)},d.prototype.value=function(c){var h=c.getAttribute(this.keyName);return this.canAdd(c,h)&&h?h:""},d}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function A(P,x){var S=[],w=!0,I=!1,D=void 0;try{for(var $=P[Symbol.iterator](),B;!(w=(B=$.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(U){I=!0,D=U}finally{try{!w&&$.return&&$.return()}finally{if(I)throw D}}return S}return function(P,x){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(P,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(P,w.key,w)}}return function(P,x,S){return x&&A(P.prototype,x),S&&A(P,S),P}}(),d=function A(P,x,S){P===null&&(P=Function.prototype);var w=Object.getOwnPropertyDescriptor(P,x);if(w===void 0){var I=Object.getPrototypeOf(P);return I===null?void 0:A(I,x,S)}else{if("value"in w)return w.value;var D=w.get;return D===void 0?void 0:D.call(S)}},c=o(2),h=y(c),f=o(0),l=y(f),a=o(4),u=y(a),v=o(6),p=y(v),b=o(7),m=y(b);function y(A){return A&&A.__esModule?A:{default:A}}function _(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}function g(A,P){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:A}function O(A,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);A.prototype=Object.create(P&&P.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(A,P):A.__proto__=P)}var k=function(A){O(P,A);function P(){return _(this,P),g(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(p.default);k.blotName="code",k.tagName="CODE";var T=function(A){O(P,A);function P(){return _(this,P),g(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return s(P,[{key:"delta",value:function(){var S=this,w=this.domNode.textContent;return w.endsWith(`
|
|
35
35
|
`)&&(w=w.slice(0,-1)),w.split(`
|
|
36
|
-
`).reduce(function(
|
|
37
|
-
`,S.formats())},new h.default)}},{key:"format",value:function(S,w){if(!(S===this.statics.blotName&&w)){var
|
|
36
|
+
`).reduce(function(I,D){return I.insert(D).insert(`
|
|
37
|
+
`,S.formats())},new h.default)}},{key:"format",value:function(S,w){if(!(S===this.statics.blotName&&w)){var I=this.descendant(m.default,this.length()-1),D=i(I,1),$=D[0];$!=null&&$.deleteAt($.length()-1,1),d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,S,w)}}},{key:"formatAt",value:function(S,w,I,D){if(w!==0&&!(l.default.query(I,l.default.Scope.BLOCK)==null||I===this.statics.blotName&&D===this.statics.formats(this.domNode))){var $=this.newlineIndex(S);if(!($<0||$>=S+w)){var B=this.newlineIndex(S,!0)+1,U=$-B+1,G=this.isolate(B,U),q=G.next;G.format(I,D),q instanceof P&&q.formatAt(0,S-B+w-U,I,D)}}}},{key:"insertAt",value:function(S,w,I){if(I==null){var D=this.descendant(m.default,S),$=i(D,2),B=$[0],U=$[1];B.insertAt(U,w)}}},{key:"length",value:function(){var S=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
38
38
|
`)?S:S+1}},{key:"newlineIndex",value:function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(w)return this.domNode.textContent.slice(0,S).lastIndexOf(`
|
|
39
|
-
`);var
|
|
40
|
-
`);return
|
|
39
|
+
`);var I=this.domNode.textContent.slice(S).indexOf(`
|
|
40
|
+
`);return I>-1?S+I:-1}},{key:"optimize",value:function(S){this.domNode.textContent.endsWith(`
|
|
41
41
|
`)||this.appendChild(l.default.create("text",`
|
|
42
|
-
`)),d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,S);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(S),w.moveChildren(this),w.remove())}},{key:"replace",value:function(S){d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,S),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var
|
|
43
|
-
`)&&
|
|
44
|
-
`)&&(
|
|
42
|
+
`)),d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,S);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(S),w.moveChildren(this),w.remove())}},{key:"replace",value:function(S){d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,S),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var I=l.default.find(w);I==null?w.parentNode.removeChild(w):I instanceof l.default.Embed?I.remove():I.unwrap()})}}],[{key:"create",value:function(S){var w=d(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,S);return w.setAttribute("spellcheck",!1),w}},{key:"formats",value:function(){return!0}}]),P}(u.default);T.blotName="code-block",T.tagName="PRE",T.TAB=" ",t.Code=k,t.default=T},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},s=function(){function q(R,E){var C=[],N=!0,F=!1,j=void 0;try{for(var L=R[Symbol.iterator](),M;!(N=(M=L.next()).done)&&(C.push(M.value),!(E&&C.length===E));N=!0);}catch(H){F=!0,j=H}finally{try{!N&&L.return&&L.return()}finally{if(F)throw j}}return C}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return q(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function q(R,E){for(var C=0;C<E.length;C++){var N=E[C];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(R,N.key,N)}}return function(R,E,C){return E&&q(R.prototype,E),C&&q(R,C),R}}(),c=o(2),h=w(c),f=o(20),l=w(f),a=o(0),u=w(a),v=o(13),p=w(v),b=o(24),m=w(b),y=o(4),_=w(y),g=o(16),O=w(g),k=o(21),T=w(k),A=o(11),P=w(A),x=o(3),S=w(x);function w(q){return q&&q.__esModule?q:{default:q}}function I(q,R,E){return R in q?Object.defineProperty(q,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):q[R]=E,q}function D(q,R){if(!(q instanceof R))throw new TypeError("Cannot call a class as a function")}var $=/^[ -~]*$/,B=function(){function q(R){D(this,q),this.scroll=R,this.delta=this.getDelta()}return d(q,[{key:"applyDelta",value:function(E){var C=this,N=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),E=G(E),E.reduce(function(j,L){var M=L.retain||L.delete||L.insert.length||1,H=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
|
|
43
|
+
`)&&N&&(N=!1,z=z.slice(0,-1)),j>=F&&!z.endsWith(`
|
|
44
|
+
`)&&(N=!0),C.scroll.insertAt(j,z);var V=C.scroll.line(j),Q=s(V,2),ne=Q[0],oe=Q[1],ce=(0,S.default)({},(0,y.bubbleFormats)(ne));if(ne instanceof _.default){var he=ne.descendant(u.default.Leaf,oe),Fe=s(he,1),Ae=Fe[0];ce=(0,S.default)(ce,(0,y.bubbleFormats)(Ae))}H=l.default.attributes.diff(ce,H)||{}}else if(i(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return j;C.scroll.insertAt(j,W,L.insert[W])}F+=M}return Object.keys(H).forEach(function(K){C.scroll.formatAt(j,M,K,H[K])}),j+M},0),E.reduce(function(j,L){return typeof L.delete=="number"?(C.scroll.deleteAt(j,L.delete),j):j+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,C){return this.scroll.deleteAt(E,C),this.update(new h.default().retain(E).delete(C))}},{key:"formatLine",value:function(E,C){var N=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(j){if(!(N.scroll.whitelist!=null&&!N.scroll.whitelist[j])){var L=N.scroll.lines(E,Math.max(C,1)),M=C;L.forEach(function(H){var z=H.length();if(!(H instanceof p.default))H.format(j,F[j]);else{var V=E-H.offset(N.scroll),Q=H.newlineIndex(V+M)-V+1;H.formatAt(V,Q,j,F[j])}M-=z})}}),this.scroll.optimize(),this.update(new h.default().retain(E).retain(C,(0,T.default)(F)))}},{key:"formatText",value:function(E,C){var N=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(j){N.scroll.formatAt(E,C,j,F[j])}),this.update(new h.default().retain(E).retain(C,(0,T.default)(F)))}},{key:"getContents",value:function(E,C){return this.delta.slice(E,E+C)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,C){return E.concat(C.delta())},new h.default)}},{key:"getFormat",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=[],F=[];C===0?this.scroll.path(E).forEach(function(L){var M=s(L,1),H=M[0];H instanceof _.default?N.push(H):H instanceof u.default.Leaf&&F.push(H)}):(N=this.scroll.lines(E,C),F=this.scroll.descendants(u.default.Leaf,E,C));var j=[N,F].map(function(L){if(L.length===0)return{};for(var M=(0,y.bubbleFormats)(L.shift());Object.keys(M).length>0;){var H=L.shift();if(H==null)return M;M=U((0,y.bubbleFormats)(H),M)}return M});return S.default.apply(S.default,j)}},{key:"getText",value:function(E,C){return this.getContents(E,C).filter(function(N){return typeof N.insert=="string"}).map(function(N){return N.insert}).join("")}},{key:"insertEmbed",value:function(E,C,N){return this.scroll.insertAt(E,C,N),this.update(new h.default().retain(E).insert(I({},C,N)))}},{key:"insertText",value:function(E,C){var N=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C=C.replace(/\r\n/g,`
|
|
45
45
|
`).replace(/\r/g,`
|
|
46
|
-
`),this.scroll.insertAt(E,C),Object.keys(F).forEach(function(j){
|
|
47
|
-
`));var V=this.getContents(E,C+H),Q=V.diff(new h.default().insert(
|
|
46
|
+
`),this.scroll.insertAt(E,C),Object.keys(F).forEach(function(j){N.scroll.formatAt(E,C.length,j,F[j])}),this.update(new h.default().retain(E).insert(C,(0,T.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return E.statics.blotName!==_.default.blotName||E.children.length>1?!1:E.children.head instanceof O.default}},{key:"removeFormat",value:function(E,C){var N=this.getText(E,C),F=this.scroll.line(E+C),j=s(F,2),L=j[0],M=j[1],H=0,z=new h.default;L!=null&&(L instanceof p.default?H=L.newlineIndex(M)-M+1:H=L.length()-M,z=L.delta().slice(M,M+H-1).insert(`
|
|
47
|
+
`));var V=this.getContents(E,C+H),Q=V.diff(new h.default().insert(N).concat(z)),ne=new h.default().retain(E).concat(Q);return this.applyDelta(ne)}},{key:"update",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(C.length===1&&C[0].type==="characterData"&&C[0].target.data.match($)&&u.default.find(C[0].target)){var j=u.default.find(C[0].target),L=(0,y.bubbleFormats)(j),M=j.offset(this.scroll),H=C[0].oldValue.replace(m.default.CONTENTS,""),z=new h.default().insert(H),V=new h.default().insert(j.value()),Q=new h.default().retain(M).concat(z.diff(V,N));E=Q.reduce(function(ne,oe){return oe.insert?ne.insert(oe.insert,L):ne.push(oe)},new h.default),this.delta=F.compose(E)}else this.delta=this.getDelta(),(!E||!(0,P.default)(F.compose(E),this.delta))&&(E=F.diff(this.delta,N));return E}}]),q}();function U(q,R){return Object.keys(R).reduce(function(E,C){return q[C]==null||(R[C]===q[C]?E[C]=R[C]:Array.isArray(R[C])?R[C].indexOf(q[C])<0&&(E[C]=R[C].concat([q[C]])):E[C]=[R[C],q[C]]),E},{})}function G(q){return q.reduce(function(R,E){if(E.insert===1){var C=(0,T.default)(E.attributes);return delete C.image,R.insert({image:E.attributes.image},C)}if(E.attributes!=null&&(E.attributes.list===!0||E.attributes.bullet===!0)&&(E=(0,T.default)(E),E.attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),typeof E.insert=="string"){var N=E.insert.replace(/\r\n/g,`
|
|
48
48
|
`).replace(/\r/g,`
|
|
49
|
-
`);return R.insert(I,E.attributes)}return R.push(E)},new h.default)}t.default=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function A(P,x){var S=[],w=!0,N=!1,D=void 0;try{for(var $=P[Symbol.iterator](),B;!(w=(B=$.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(U){N=!0,D=U}finally{try{!w&&$.return&&$.return()}finally{if(N)throw D}}return S}return function(P,x){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(P,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(P,w.key,w)}}return function(P,x,S){return x&&A(P.prototype,x),S&&A(P,S),P}}(),d=o(0),c=m(d),h=o(21),f=m(h),l=o(11),a=m(l),u=o(8),v=m(u),p=o(10),b=m(p);function m(A){return A&&A.__esModule?A:{default:A}}function g(A){if(Array.isArray(A)){for(var P=0,x=Array(A.length);P<A.length;P++)x[P]=A[P];return x}else return Array.from(A)}function _(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}var y=(0,b.default)("quill:selection"),O=function A(P){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,A),this.index=P,this.length=x},k=function(){function A(P,x){var S=this;_(this,A),this.emitter=x,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(w,N){w===v.default.events.TEXT_CHANGE&&N.length()>0&&S.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!S.hasFocus()){var w=S.getNativeRange();w!=null&&w.start.node!==S.cursor.textNode&&S.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(w,N){if(N.range){var D=N.range,$=D.startNode,B=D.startOffset,U=D.endNode,G=D.endOffset;S.setNativeRange($,B,U,G)}}),this.update(v.default.sources.SILENT)}return s(A,[{key:"handleComposition",value:function(){var x=this;this.root.addEventListener("compositionstart",function(){x.composing=!0}),this.root.addEventListener("compositionend",function(){if(x.composing=!1,x.cursor.parent){var S=x.cursor.restore();if(!S)return;setTimeout(function(){x.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var x=this;this.emitter.listenDOM("mousedown",document.body,function(){x.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){x.mouseDown=!1,x.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(x,S){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[x])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||c.default.query(x,c.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var N=c.default.find(w.start.node,!1);if(N==null)return;if(N instanceof c.default.Leaf){var D=N.split(w.start.offset);N.parent.insertBefore(this.cursor,D)}else N.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(x,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();x=Math.min(x,w-1),S=Math.min(x+S,w-1)-x;var N=void 0,D=this.scroll.leaf(x),$=i(D,2),B=$[0],U=$[1];if(B==null)return null;var G=B.position(U,!0),q=i(G,2);N=q[0],U=q[1];var R=document.createRange();if(S>0){R.setStart(N,U);var E=this.scroll.leaf(x+S),C=i(E,2);if(B=C[0],U=C[1],B==null)return null;var I=B.position(U,!0),F=i(I,2);return N=F[0],U=F[1],R.setEnd(N,U),R.getBoundingClientRect()}else{var j="left",L=void 0;return N instanceof Text?(U<N.data.length?(R.setStart(N,U),R.setEnd(N,U+1)):(R.setStart(N,U-1),R.setEnd(N,U),j="right"),L=R.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),U>0&&(j="right")),{bottom:L.top+L.height,height:L.height,left:L[j],right:L[j],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var x=document.getSelection();if(x==null||x.rangeCount<=0)return null;var S=x.getRangeAt(0);if(S==null)return null;var w=this.normalizeNative(S);return y.info("getNativeRange",w),w}},{key:"getRange",value:function(){var x=this.getNativeRange();if(x==null)return[null,null];var S=this.normalizedToRange(x);return[S,x]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(x){var S=this,w=[[x.start.node,x.start.offset]];x.native.collapsed||w.push([x.end.node,x.end.offset]);var N=w.map(function(B){var U=i(B,2),G=U[0],q=U[1],R=c.default.find(G,!0),E=R.offset(S.scroll);return q===0?E:R instanceof c.default.Container?E+R.length():E+R.index(G,q)}),D=Math.min(Math.max.apply(Math,g(N)),this.scroll.length()-1),$=Math.min.apply(Math,[D].concat(g(N)));return new O($,D-$)}},{key:"normalizeNative",value:function(x){if(!T(this.root,x.startContainer)||!x.collapsed&&!T(this.root,x.endContainer))return null;var S={start:{node:x.startContainer,offset:x.startOffset},end:{node:x.endContainer,offset:x.endOffset},native:x};return[S.start,S.end].forEach(function(w){for(var N=w.node,D=w.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>D)N=N.childNodes[D],D=0;else if(N.childNodes.length===D)N=N.lastChild,D=N instanceof Text?N.data.length:N.childNodes.length+1;else break;w.node=N,w.offset=D}),S}},{key:"rangeToNative",value:function(x){var S=this,w=x.collapsed?[x.index]:[x.index,x.index+x.length],N=[],D=this.scroll.length();return w.forEach(function($,B){$=Math.min(D-1,$);var U=void 0,G=S.scroll.leaf($),q=i(G,2),R=q[0],E=q[1],C=R.position(E,B!==0),I=i(C,2);U=I[0],E=I[1],N.push(U,E)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(x){var S=this.lastRange;if(S!=null){var w=this.getBounds(S.index,S.length);if(w!=null){var N=this.scroll.length()-1,D=this.scroll.line(Math.min(S.index,N)),$=i(D,1),B=$[0],U=B;if(S.length>0){var G=this.scroll.line(Math.min(S.index+S.length,N)),q=i(G,1);U=q[0]}if(!(B==null||U==null)){var R=x.getBoundingClientRect();w.top<R.top?x.scrollTop-=R.top-w.top:w.bottom>R.bottom&&(x.scrollTop+=w.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",x,S,w,N),!(x!=null&&(this.root.parentNode==null||x.parentNode==null||w.parentNode==null))){var $=document.getSelection();if($!=null)if(x!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||D||x!==B.startContainer||S!==B.startOffset||w!==B.endContainer||N!==B.endOffset){x.tagName=="BR"&&(S=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),w.tagName=="BR"&&(N=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var U=document.createRange();U.setStart(x,S),U.setEnd(w,N),$.removeAllRanges(),$.addRange(U)}}else $.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof S=="string"&&(w=S,S=!1),y.info("setRange",x),x!=null){var N=this.rangeToNative(x);this.setNativeRange.apply(this,g(N).concat([S]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,S=this.lastRange,w=this.getRange(),N=i(w,2),D=N[0],$=N[1];if(this.lastRange=D,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,a.default)(S,this.lastRange)){var B;!this.composing&&$!=null&&$.native.collapsed&&$.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[v.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(S),x];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(U)),x!==v.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,U)}}}}]),A}();function T(A,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),A.contains(P)}t.Range=O,t.default=k},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(0),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(m,g){m.children.length===0?s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,m,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(c.default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(44),d=o(30),c=o(1),h=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.build(),v}return a.prototype.appendChild=function(u){this.insertBefore(u)},a.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},a.prototype.build=function(){var u=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var p=f(v);u.insertBefore(p,u.children.head||void 0)}catch(b){if(b instanceof c.ParchmentError)return;throw b}})},a.prototype.deleteAt=function(u,v){if(u===0&&v===this.length())return this.remove();this.children.forEachAt(u,v,function(p,b,m){p.deleteAt(b,m)})},a.prototype.descendant=function(u,v){var p=this.children.find(v),b=p[0],m=p[1];return u.blotName==null&&u(b)||u.blotName!=null&&b instanceof u?[b,m]:b instanceof a?b.descendant(u,m):[null,-1]},a.prototype.descendants=function(u,v,p){v===void 0&&(v=0),p===void 0&&(p=Number.MAX_VALUE);var b=[],m=p;return this.children.forEachAt(v,p,function(g,_,y){(u.blotName==null&&u(g)||u.blotName!=null&&g instanceof u)&&b.push(g),g instanceof a&&(b=b.concat(g.descendants(u,_,m))),m-=y}),b},a.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),l.prototype.detach.call(this)},a.prototype.formatAt=function(u,v,p,b){this.children.forEachAt(u,v,function(m,g,_){m.formatAt(g,_,p,b)})},a.prototype.insertAt=function(u,v,p){var b=this.children.find(u),m=b[0],g=b[1];if(m)m.insertAt(g,v,p);else{var _=p==null?c.create("text",v):c.create(v,p);this.appendChild(_)}},a.prototype.insertBefore=function(u,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return u instanceof p}))throw new c.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,v)},a.prototype.length=function(){return this.children.reduce(function(u,v){return u+v.length()},0)},a.prototype.moveChildren=function(u,v){this.children.forEach(function(p){u.insertBefore(p,v)})},a.prototype.optimize=function(u){if(l.prototype.optimize.call(this,u),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.create(this.statics.defaultChild);this.appendChild(v),v.optimize(u)}else this.remove()},a.prototype.path=function(u,v){v===void 0&&(v=!1);var p=this.children.find(u,v),b=p[0],m=p[1],g=[[this,u]];return b instanceof a?g.concat(b.path(m,v)):(b!=null&&g.push([b,m]),g)},a.prototype.removeChild=function(u){this.children.remove(u)},a.prototype.replace=function(u){u instanceof a&&u.moveChildren(this),l.prototype.replace.call(this,u)},a.prototype.split=function(u,v){if(v===void 0&&(v=!1),!v){if(u===0)return this;if(u===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(u,this.length(),function(b,m,g){b=b.split(m,v),p.appendChild(b)}),p},a.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},a.prototype.update=function(u,v){var p=this,b=[],m=[];u.forEach(function(g){g.target===p.domNode&&g.type==="childList"&&(b.push.apply(b,g.addedNodes),m.push.apply(m,g.removedNodes))}),m.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=c.find(g);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===p.domNode)&&_.detach()}}),b.filter(function(g){return g.parentNode==p.domNode}).sort(function(g,_){return g===_?0:g.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var _=null;g.nextSibling!=null&&(_=c.find(g.nextSibling));var y=f(g);(y.next!=_||y.next==null)&&(y.parent!=null&&y.parent.removeChild(p),p.insertBefore(y,_||void 0))})},a}(d.default);function f(l){var a=c.find(l);if(a==null)try{a=c.create(l)}catch{a=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){a.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(a.domNode,l),a.attach()}return a}t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12),d=o(31),c=o(17),h=o(1),f=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.attributes=new d.default(v.domNode),v}return a.formats=function(u){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return u.tagName.toLowerCase()},a.prototype.format=function(u,v){var p=h.query(u);p instanceof s.default?this.attributes.attribute(p,v):v&&p!=null&&(u!==this.statics.blotName||this.formats()[u]!==v)&&this.replaceWith(u,v)},a.prototype.formats=function(){var u=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(u[this.statics.blotName]=v),u},a.prototype.replaceWith=function(u,v){var p=l.prototype.replaceWith.call(this,u,v);return this.attributes.copy(p),p},a.prototype.update=function(u,v){var p=this;l.prototype.update.call(this,u,v),u.some(function(b){return b.target===p.domNode&&b.type==="attributes"})&&this.attributes.build()},a.prototype.wrap=function(u,v){var p=l.prototype.wrap.call(this,u,v);return p instanceof a&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},a}(c.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(30),d=o(1),c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.value=function(l){return!0},f.prototype.index=function(l,a){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(a,1):-1},f.prototype.position=function(l,a){var u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(u+=1),[this.parent.domNode,u]},f.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},f.scope=d.Scope.INLINE_BLOT,f}(s.default);t.default=c},function(n,t,o){var i=o(11),s=o(3),d={attributes:{compose:function(h,f,l){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var a=s(!0,{},f);l||(a=Object.keys(a).reduce(function(v,p){return a[p]!=null&&(v[p]=a[p]),v},{}));for(var u in h)h[u]!==void 0&&f[u]===void 0&&(a[u]=h[u]);return Object.keys(a).length>0?a:void 0},diff:function(h,f){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var l=Object.keys(h).concat(Object.keys(f)).reduce(function(a,u){return i(h[u],f[u])||(a[u]=f[u]===void 0?null:f[u]),a},{});return Object.keys(l).length>0?l:void 0},transform:function(h,f,l){if(typeof h!="object")return f;if(typeof f=="object"){if(!l)return f;var a=Object.keys(f).reduce(function(u,v){return h[v]===void 0&&(u[v]=f[v]),u},{});return Object.keys(a).length>0?a:void 0}}},iterator:function(h){return new c(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function c(h){this.ops=h,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(h){h||(h=1/0);var f=this.ops[this.index];if(f){var l=this.offset,a=d.length(f);if(h>=a-l?(h=a-l,this.index+=1,this.offset=0):this.offset+=h,typeof f.delete=="number")return{delete:h};var u={};return f.attributes&&(u.attributes=f.attributes),typeof f.retain=="number"?u.retain=h:typeof f.insert=="string"?u.insert=f.insert.substr(l,h):u.insert=f.insert,u}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?d.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,f=this.index,l=this.next(),a=this.ops.slice(this.index);return this.offset=h,this.index=f,[l].concat(a)}else return[]},n.exports=d},function(n,t){var o=function(){function i(p,b){return b!=null&&p instanceof b}var s;try{s=Map}catch{s=function(){}}var d;try{d=Set}catch{d=function(){}}var c;try{c=Promise}catch{c=function(){}}function h(p,b,m,g,_){typeof b=="object"&&(m=b.depth,g=b.prototype,_=b.includeNonEnumerable,b=b.circular);var y=[],O=[],k=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof m=="undefined"&&(m=1/0);function T(A,P){if(A===null)return null;if(P===0)return A;var x,S;if(typeof A!="object")return A;if(i(A,s))x=new s;else if(i(A,d))x=new d;else if(i(A,c))x=new c(function(R,E){A.then(function(C){R(T(C,P-1))},function(C){E(T(C,P-1))})});else if(h.__isArray(A))x=[];else if(h.__isRegExp(A))x=new RegExp(A.source,v(A)),A.lastIndex&&(x.lastIndex=A.lastIndex);else if(h.__isDate(A))x=new Date(A.getTime());else{if(k&&Buffer.isBuffer(A))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(A.length):x=new Buffer(A.length),A.copy(x),x;i(A,Error)?x=Object.create(A):typeof g=="undefined"?(S=Object.getPrototypeOf(A),x=Object.create(S)):(x=Object.create(g),S=g)}if(b){var w=y.indexOf(A);if(w!=-1)return O[w];y.push(A),O.push(x)}i(A,s)&&A.forEach(function(R,E){var C=T(E,P-1),I=T(R,P-1);x.set(C,I)}),i(A,d)&&A.forEach(function(R){var E=T(R,P-1);x.add(E)});for(var N in A){var D;S&&(D=Object.getOwnPropertyDescriptor(S,N)),!(D&&D.set==null)&&(x[N]=T(A[N],P-1))}if(Object.getOwnPropertySymbols)for(var $=Object.getOwnPropertySymbols(A),N=0;N<$.length;N++){var B=$[N],U=Object.getOwnPropertyDescriptor(A,B);U&&!U.enumerable&&!_||(x[B]=T(A[B],P-1),U.enumerable||Object.defineProperty(x,B,{enumerable:!1}))}if(_)for(var G=Object.getOwnPropertyNames(A),N=0;N<G.length;N++){var q=G[N],U=Object.getOwnPropertyDescriptor(A,q);U&&U.enumerable||(x[q]=T(A[q],P-1),Object.defineProperty(x,q,{enumerable:!1}))}return x}return T(p,m)}h.clonePrototype=function(b){if(b===null)return null;var m=function(){};return m.prototype=b,new m};function f(p){return Object.prototype.toString.call(p)}h.__objToStr=f;function l(p){return typeof p=="object"&&f(p)==="[object Date]"}h.__isDate=l;function a(p){return typeof p=="object"&&f(p)==="[object Array]"}h.__isArray=a;function u(p){return typeof p=="object"&&f(p)==="[object RegExp]"}h.__isRegExp=u;function v(p){var b="";return p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),b}return h.__getRegExpFlags=v,h}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var N=[],D=!0,$=!1,B=void 0;try{for(var U=S[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(N.push(G.value),!(w&&N.length===w));D=!0);}catch(q){$=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if($)throw B}}return N}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function x(S,w){for(var N=0;N<w.length;N++){var D=w[N];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,N){return w&&x(S.prototype,w),N&&x(S,N),S}}(),d=function x(S,w,N){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var $=Object.getPrototypeOf(S);return $===null?void 0:x($,w,N)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(N)}},c=o(0),h=y(c),f=o(8),l=y(f),a=o(4),u=y(a),v=o(16),p=y(v),b=o(13),m=y(b),g=o(25),_=y(g);function y(x){return x&&x.__esModule?x:{default:x}}function O(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function k(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function T(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}function A(x){return x instanceof u.default||x instanceof a.BlockEmbed}var P=function(x){T(S,x);function S(w,N){O(this,S);var D=k(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w));return D.emitter=N.emitter,Array.isArray(N.whitelist)&&(D.whitelist=N.whitelist.reduce(function($,B){return $[B]=!0,$},{})),D.domNode.addEventListener("DOMNodeInserted",function(){}),D.optimize(),D.enable(),D}return s(S,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,D){var $=this.line(N),B=i($,2),U=B[0],G=B[1],q=this.line(N+D),R=i(q,1),E=R[0];if(d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"deleteAt",this).call(this,N,D),E!=null&&U!==E&&G>0){if(U instanceof a.BlockEmbed||E instanceof a.BlockEmbed){this.optimize();return}if(U instanceof m.default){var C=U.newlineIndex(U.length(),!0);if(C>-1&&(U=U.split(C+1),U===E)){this.optimize();return}}else if(E instanceof m.default){var I=E.newlineIndex(0);I>-1&&E.split(I+1)}var F=E.children.head instanceof p.default?null:E.children.head;U.moveChildren(E,F),U.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,D,$,B){this.whitelist!=null&&!this.whitelist[$]||(d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,N,D,$,B),this.optimize())}},{key:"insertAt",value:function(N,D,$){if(!($!=null&&this.whitelist!=null&&!this.whitelist[D])){if(N>=this.length())if($==null||h.default.query(D,h.default.Scope.BLOCK)==null){var B=h.default.create(this.statics.defaultChild);this.appendChild(B),$==null&&D.endsWith(`
|
|
50
|
-
`)&&(D=D.slice(0,-1)),B.insertAt(0,D,$)}else{var U=h.default.create(D,$);this.appendChild(U)}else d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertAt",this).call(this,
|
|
49
|
+
`);return R.insert(N,E.attributes)}return R.push(E)},new h.default)}t.default=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function A(P,x){var S=[],w=!0,I=!1,D=void 0;try{for(var $=P[Symbol.iterator](),B;!(w=(B=$.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(U){I=!0,D=U}finally{try{!w&&$.return&&$.return()}finally{if(I)throw D}}return S}return function(P,x){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(P,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(P,w.key,w)}}return function(P,x,S){return x&&A(P.prototype,x),S&&A(P,S),P}}(),d=o(0),c=m(d),h=o(21),f=m(h),l=o(11),a=m(l),u=o(8),v=m(u),p=o(10),b=m(p);function m(A){return A&&A.__esModule?A:{default:A}}function y(A){if(Array.isArray(A)){for(var P=0,x=Array(A.length);P<A.length;P++)x[P]=A[P];return x}else return Array.from(A)}function _(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}var g=(0,b.default)("quill:selection"),O=function A(P){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,A),this.index=P,this.length=x},k=function(){function A(P,x){var S=this;_(this,A),this.emitter=x,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(w,I){w===v.default.events.TEXT_CHANGE&&I.length()>0&&S.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!S.hasFocus()){var w=S.getNativeRange();w!=null&&w.start.node!==S.cursor.textNode&&S.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(w,I){if(I.range){var D=I.range,$=D.startNode,B=D.startOffset,U=D.endNode,G=D.endOffset;S.setNativeRange($,B,U,G)}}),this.update(v.default.sources.SILENT)}return s(A,[{key:"handleComposition",value:function(){var x=this;this.root.addEventListener("compositionstart",function(){x.composing=!0}),this.root.addEventListener("compositionend",function(){if(x.composing=!1,x.cursor.parent){var S=x.cursor.restore();if(!S)return;setTimeout(function(){x.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var x=this;this.emitter.listenDOM("mousedown",document.body,function(){x.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){x.mouseDown=!1,x.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(x,S){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[x])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||c.default.query(x,c.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var I=c.default.find(w.start.node,!1);if(I==null)return;if(I instanceof c.default.Leaf){var D=I.split(w.start.offset);I.parent.insertBefore(this.cursor,D)}else I.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(x,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();x=Math.min(x,w-1),S=Math.min(x+S,w-1)-x;var I=void 0,D=this.scroll.leaf(x),$=i(D,2),B=$[0],U=$[1];if(B==null)return null;var G=B.position(U,!0),q=i(G,2);I=q[0],U=q[1];var R=document.createRange();if(S>0){R.setStart(I,U);var E=this.scroll.leaf(x+S),C=i(E,2);if(B=C[0],U=C[1],B==null)return null;var N=B.position(U,!0),F=i(N,2);return I=F[0],U=F[1],R.setEnd(I,U),R.getBoundingClientRect()}else{var j="left",L=void 0;return I instanceof Text?(U<I.data.length?(R.setStart(I,U),R.setEnd(I,U+1)):(R.setStart(I,U-1),R.setEnd(I,U),j="right"),L=R.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),U>0&&(j="right")),{bottom:L.top+L.height,height:L.height,left:L[j],right:L[j],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var x=document.getSelection();if(x==null||x.rangeCount<=0)return null;var S=x.getRangeAt(0);if(S==null)return null;var w=this.normalizeNative(S);return g.info("getNativeRange",w),w}},{key:"getRange",value:function(){var x=this.getNativeRange();if(x==null)return[null,null];var S=this.normalizedToRange(x);return[S,x]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(x){var S=this,w=[[x.start.node,x.start.offset]];x.native.collapsed||w.push([x.end.node,x.end.offset]);var I=w.map(function(B){var U=i(B,2),G=U[0],q=U[1],R=c.default.find(G,!0),E=R.offset(S.scroll);return q===0?E:R instanceof c.default.Container?E+R.length():E+R.index(G,q)}),D=Math.min(Math.max.apply(Math,y(I)),this.scroll.length()-1),$=Math.min.apply(Math,[D].concat(y(I)));return new O($,D-$)}},{key:"normalizeNative",value:function(x){if(!T(this.root,x.startContainer)||!x.collapsed&&!T(this.root,x.endContainer))return null;var S={start:{node:x.startContainer,offset:x.startOffset},end:{node:x.endContainer,offset:x.endOffset},native:x};return[S.start,S.end].forEach(function(w){for(var I=w.node,D=w.offset;!(I instanceof Text)&&I.childNodes.length>0;)if(I.childNodes.length>D)I=I.childNodes[D],D=0;else if(I.childNodes.length===D)I=I.lastChild,D=I instanceof Text?I.data.length:I.childNodes.length+1;else break;w.node=I,w.offset=D}),S}},{key:"rangeToNative",value:function(x){var S=this,w=x.collapsed?[x.index]:[x.index,x.index+x.length],I=[],D=this.scroll.length();return w.forEach(function($,B){$=Math.min(D-1,$);var U=void 0,G=S.scroll.leaf($),q=i(G,2),R=q[0],E=q[1],C=R.position(E,B!==0),N=i(C,2);U=N[0],E=N[1],I.push(U,E)}),I.length<2&&(I=I.concat(I)),I}},{key:"scrollIntoView",value:function(x){var S=this.lastRange;if(S!=null){var w=this.getBounds(S.index,S.length);if(w!=null){var I=this.scroll.length()-1,D=this.scroll.line(Math.min(S.index,I)),$=i(D,1),B=$[0],U=B;if(S.length>0){var G=this.scroll.line(Math.min(S.index+S.length,I)),q=i(G,1);U=q[0]}if(!(B==null||U==null)){var R=x.getBoundingClientRect();w.top<R.top?x.scrollTop-=R.top-w.top:w.bottom>R.bottom&&(x.scrollTop+=w.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(g.info("setNativeRange",x,S,w,I),!(x!=null&&(this.root.parentNode==null||x.parentNode==null||w.parentNode==null))){var $=document.getSelection();if($!=null)if(x!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||D||x!==B.startContainer||S!==B.startOffset||w!==B.endContainer||I!==B.endOffset){x.tagName=="BR"&&(S=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),w.tagName=="BR"&&(I=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var U=document.createRange();U.setStart(x,S),U.setEnd(w,I),$.removeAllRanges(),$.addRange(U)}}else $.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof S=="string"&&(w=S,S=!1),g.info("setRange",x),x!=null){var I=this.rangeToNative(x);this.setNativeRange.apply(this,y(I).concat([S]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,S=this.lastRange,w=this.getRange(),I=i(w,2),D=I[0],$=I[1];if(this.lastRange=D,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,a.default)(S,this.lastRange)){var B;!this.composing&&$!=null&&$.native.collapsed&&$.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[v.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(S),x];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(U)),x!==v.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,U)}}}}]),A}();function T(A,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),A.contains(P)}t.Range=O,t.default=k},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(0),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(m,y){m.children.length===0?s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,m,y):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(c.default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(44),d=o(30),c=o(1),h=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.build(),v}return a.prototype.appendChild=function(u){this.insertBefore(u)},a.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},a.prototype.build=function(){var u=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var p=f(v);u.insertBefore(p,u.children.head||void 0)}catch(b){if(b instanceof c.ParchmentError)return;throw b}})},a.prototype.deleteAt=function(u,v){if(u===0&&v===this.length())return this.remove();this.children.forEachAt(u,v,function(p,b,m){p.deleteAt(b,m)})},a.prototype.descendant=function(u,v){var p=this.children.find(v),b=p[0],m=p[1];return u.blotName==null&&u(b)||u.blotName!=null&&b instanceof u?[b,m]:b instanceof a?b.descendant(u,m):[null,-1]},a.prototype.descendants=function(u,v,p){v===void 0&&(v=0),p===void 0&&(p=Number.MAX_VALUE);var b=[],m=p;return this.children.forEachAt(v,p,function(y,_,g){(u.blotName==null&&u(y)||u.blotName!=null&&y instanceof u)&&b.push(y),y instanceof a&&(b=b.concat(y.descendants(u,_,m))),m-=g}),b},a.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),l.prototype.detach.call(this)},a.prototype.formatAt=function(u,v,p,b){this.children.forEachAt(u,v,function(m,y,_){m.formatAt(y,_,p,b)})},a.prototype.insertAt=function(u,v,p){var b=this.children.find(u),m=b[0],y=b[1];if(m)m.insertAt(y,v,p);else{var _=p==null?c.create("text",v):c.create(v,p);this.appendChild(_)}},a.prototype.insertBefore=function(u,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return u instanceof p}))throw new c.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,v)},a.prototype.length=function(){return this.children.reduce(function(u,v){return u+v.length()},0)},a.prototype.moveChildren=function(u,v){this.children.forEach(function(p){u.insertBefore(p,v)})},a.prototype.optimize=function(u){if(l.prototype.optimize.call(this,u),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.create(this.statics.defaultChild);this.appendChild(v),v.optimize(u)}else this.remove()},a.prototype.path=function(u,v){v===void 0&&(v=!1);var p=this.children.find(u,v),b=p[0],m=p[1],y=[[this,u]];return b instanceof a?y.concat(b.path(m,v)):(b!=null&&y.push([b,m]),y)},a.prototype.removeChild=function(u){this.children.remove(u)},a.prototype.replace=function(u){u instanceof a&&u.moveChildren(this),l.prototype.replace.call(this,u)},a.prototype.split=function(u,v){if(v===void 0&&(v=!1),!v){if(u===0)return this;if(u===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(u,this.length(),function(b,m,y){b=b.split(m,v),p.appendChild(b)}),p},a.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},a.prototype.update=function(u,v){var p=this,b=[],m=[];u.forEach(function(y){y.target===p.domNode&&y.type==="childList"&&(b.push.apply(b,y.addedNodes),m.push.apply(m,y.removedNodes))}),m.forEach(function(y){if(!(y.parentNode!=null&&y.tagName!=="IFRAME"&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=c.find(y);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===p.domNode)&&_.detach()}}),b.filter(function(y){return y.parentNode==p.domNode}).sort(function(y,_){return y===_?0:y.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var _=null;y.nextSibling!=null&&(_=c.find(y.nextSibling));var g=f(y);(g.next!=_||g.next==null)&&(g.parent!=null&&g.parent.removeChild(p),p.insertBefore(g,_||void 0))})},a}(d.default);function f(l){var a=c.find(l);if(a==null)try{a=c.create(l)}catch{a=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){a.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(a.domNode,l),a.attach()}return a}t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12),d=o(31),c=o(17),h=o(1),f=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.attributes=new d.default(v.domNode),v}return a.formats=function(u){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return u.tagName.toLowerCase()},a.prototype.format=function(u,v){var p=h.query(u);p instanceof s.default?this.attributes.attribute(p,v):v&&p!=null&&(u!==this.statics.blotName||this.formats()[u]!==v)&&this.replaceWith(u,v)},a.prototype.formats=function(){var u=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(u[this.statics.blotName]=v),u},a.prototype.replaceWith=function(u,v){var p=l.prototype.replaceWith.call(this,u,v);return this.attributes.copy(p),p},a.prototype.update=function(u,v){var p=this;l.prototype.update.call(this,u,v),u.some(function(b){return b.target===p.domNode&&b.type==="attributes"})&&this.attributes.build()},a.prototype.wrap=function(u,v){var p=l.prototype.wrap.call(this,u,v);return p instanceof a&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},a}(c.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(30),d=o(1),c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.value=function(l){return!0},f.prototype.index=function(l,a){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(a,1):-1},f.prototype.position=function(l,a){var u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(u+=1),[this.parent.domNode,u]},f.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},f.scope=d.Scope.INLINE_BLOT,f}(s.default);t.default=c},function(n,t,o){var i=o(11),s=o(3),d={attributes:{compose:function(h,f,l){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var a=s(!0,{},f);l||(a=Object.keys(a).reduce(function(v,p){return a[p]!=null&&(v[p]=a[p]),v},{}));for(var u in h)h[u]!==void 0&&f[u]===void 0&&(a[u]=h[u]);return Object.keys(a).length>0?a:void 0},diff:function(h,f){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var l=Object.keys(h).concat(Object.keys(f)).reduce(function(a,u){return i(h[u],f[u])||(a[u]=f[u]===void 0?null:f[u]),a},{});return Object.keys(l).length>0?l:void 0},transform:function(h,f,l){if(typeof h!="object")return f;if(typeof f=="object"){if(!l)return f;var a=Object.keys(f).reduce(function(u,v){return h[v]===void 0&&(u[v]=f[v]),u},{});return Object.keys(a).length>0?a:void 0}}},iterator:function(h){return new c(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function c(h){this.ops=h,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(h){h||(h=1/0);var f=this.ops[this.index];if(f){var l=this.offset,a=d.length(f);if(h>=a-l?(h=a-l,this.index+=1,this.offset=0):this.offset+=h,typeof f.delete=="number")return{delete:h};var u={};return f.attributes&&(u.attributes=f.attributes),typeof f.retain=="number"?u.retain=h:typeof f.insert=="string"?u.insert=f.insert.substr(l,h):u.insert=f.insert,u}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?d.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,f=this.index,l=this.next(),a=this.ops.slice(this.index);return this.offset=h,this.index=f,[l].concat(a)}else return[]},n.exports=d},function(n,t){var o=function(){function i(p,b){return b!=null&&p instanceof b}var s;try{s=Map}catch{s=function(){}}var d;try{d=Set}catch{d=function(){}}var c;try{c=Promise}catch{c=function(){}}function h(p,b,m,y,_){typeof b=="object"&&(m=b.depth,y=b.prototype,_=b.includeNonEnumerable,b=b.circular);var g=[],O=[],k=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof m=="undefined"&&(m=1/0);function T(A,P){if(A===null)return null;if(P===0)return A;var x,S;if(typeof A!="object")return A;if(i(A,s))x=new s;else if(i(A,d))x=new d;else if(i(A,c))x=new c(function(R,E){A.then(function(C){R(T(C,P-1))},function(C){E(T(C,P-1))})});else if(h.__isArray(A))x=[];else if(h.__isRegExp(A))x=new RegExp(A.source,v(A)),A.lastIndex&&(x.lastIndex=A.lastIndex);else if(h.__isDate(A))x=new Date(A.getTime());else{if(k&&Buffer.isBuffer(A))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(A.length):x=new Buffer(A.length),A.copy(x),x;i(A,Error)?x=Object.create(A):typeof y=="undefined"?(S=Object.getPrototypeOf(A),x=Object.create(S)):(x=Object.create(y),S=y)}if(b){var w=g.indexOf(A);if(w!=-1)return O[w];g.push(A),O.push(x)}i(A,s)&&A.forEach(function(R,E){var C=T(E,P-1),N=T(R,P-1);x.set(C,N)}),i(A,d)&&A.forEach(function(R){var E=T(R,P-1);x.add(E)});for(var I in A){var D;S&&(D=Object.getOwnPropertyDescriptor(S,I)),!(D&&D.set==null)&&(x[I]=T(A[I],P-1))}if(Object.getOwnPropertySymbols)for(var $=Object.getOwnPropertySymbols(A),I=0;I<$.length;I++){var B=$[I],U=Object.getOwnPropertyDescriptor(A,B);U&&!U.enumerable&&!_||(x[B]=T(A[B],P-1),U.enumerable||Object.defineProperty(x,B,{enumerable:!1}))}if(_)for(var G=Object.getOwnPropertyNames(A),I=0;I<G.length;I++){var q=G[I],U=Object.getOwnPropertyDescriptor(A,q);U&&U.enumerable||(x[q]=T(A[q],P-1),Object.defineProperty(x,q,{enumerable:!1}))}return x}return T(p,m)}h.clonePrototype=function(b){if(b===null)return null;var m=function(){};return m.prototype=b,new m};function f(p){return Object.prototype.toString.call(p)}h.__objToStr=f;function l(p){return typeof p=="object"&&f(p)==="[object Date]"}h.__isDate=l;function a(p){return typeof p=="object"&&f(p)==="[object Array]"}h.__isArray=a;function u(p){return typeof p=="object"&&f(p)==="[object RegExp]"}h.__isRegExp=u;function v(p){var b="";return p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),b}return h.__getRegExpFlags=v,h}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var I=[],D=!0,$=!1,B=void 0;try{for(var U=S[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(I.push(G.value),!(w&&I.length===w));D=!0);}catch(q){$=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if($)throw B}}return I}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function x(S,w){for(var I=0;I<w.length;I++){var D=w[I];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,I){return w&&x(S.prototype,w),I&&x(S,I),S}}(),d=function x(S,w,I){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var $=Object.getPrototypeOf(S);return $===null?void 0:x($,w,I)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(I)}},c=o(0),h=g(c),f=o(8),l=g(f),a=o(4),u=g(a),v=o(16),p=g(v),b=o(13),m=g(b),y=o(25),_=g(y);function g(x){return x&&x.__esModule?x:{default:x}}function O(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function k(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function T(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}function A(x){return x instanceof u.default||x instanceof a.BlockEmbed}var P=function(x){T(S,x);function S(w,I){O(this,S);var D=k(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w));return D.emitter=I.emitter,Array.isArray(I.whitelist)&&(D.whitelist=I.whitelist.reduce(function($,B){return $[B]=!0,$},{})),D.domNode.addEventListener("DOMNodeInserted",function(){}),D.optimize(),D.enable(),D}return s(S,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(I,D){var $=this.line(I),B=i($,2),U=B[0],G=B[1],q=this.line(I+D),R=i(q,1),E=R[0];if(d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"deleteAt",this).call(this,I,D),E!=null&&U!==E&&G>0){if(U instanceof a.BlockEmbed||E instanceof a.BlockEmbed){this.optimize();return}if(U instanceof m.default){var C=U.newlineIndex(U.length(),!0);if(C>-1&&(U=U.split(C+1),U===E)){this.optimize();return}}else if(E instanceof m.default){var N=E.newlineIndex(0);N>-1&&E.split(N+1)}var F=E.children.head instanceof p.default?null:E.children.head;U.moveChildren(E,F),U.remove()}this.optimize()}},{key:"enable",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",I)}},{key:"formatAt",value:function(I,D,$,B){this.whitelist!=null&&!this.whitelist[$]||(d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,I,D,$,B),this.optimize())}},{key:"insertAt",value:function(I,D,$){if(!($!=null&&this.whitelist!=null&&!this.whitelist[D])){if(I>=this.length())if($==null||h.default.query(D,h.default.Scope.BLOCK)==null){var B=h.default.create(this.statics.defaultChild);this.appendChild(B),$==null&&D.endsWith(`
|
|
50
|
+
`)&&(D=D.slice(0,-1)),B.insertAt(0,D,$)}else{var U=h.default.create(D,$);this.appendChild(U)}else d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertAt",this).call(this,I,D,$);this.optimize()}}},{key:"insertBefore",value:function(I,D){if(I.statics.scope===h.default.Scope.INLINE_BLOT){var $=h.default.create(this.statics.defaultChild);$.appendChild(I),I=$}d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertBefore",this).call(this,I,D)}},{key:"leaf",value:function(I){return this.path(I).pop()||[null,-1]}},{key:"line",value:function(I){return I===this.length()?this.line(I-1):this.descendant(A,I)}},{key:"lines",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,$=function B(U,G,q){var R=[],E=q;return U.children.forEachAt(G,q,function(C,N,F){A(C)?R.push(C):C instanceof h.default.Container&&(R=R.concat(B(C,N,E))),E-=F}),R};return $(this,I,D)}},{key:"optimize",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,I,D),I.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,I,D))}},{key:"path",value:function(I){return d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"path",this).call(this,I).slice(1)}},{key:"update",value:function(I){if(this.batch!==!0){var D=l.default.sources.USER;typeof I=="string"&&(D=I),Array.isArray(I)||(I=this.observer.takeRecords()),I.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,D,I),d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"update",this).call(this,I.concat([])),I.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,D,I)}}}]),S}(h.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[u.default,a.BlockEmbed,_.default],t.default=P},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},s=function(){function L(M,H){var z=[],V=!0,Q=!1,ne=void 0;try{for(var oe=M[Symbol.iterator](),ce;!(V=(ce=oe.next()).done)&&(z.push(ce.value),!(H&&z.length===H));V=!0);}catch(he){Q=!0,ne=he}finally{try{!V&&oe.return&&oe.return()}finally{if(Q)throw ne}}return z}return function(M,H){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return L(M,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function L(M,H){for(var z=0;z<H.length;z++){var V=H[z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}return function(M,H,z){return H&&L(M.prototype,H),z&&L(M,z),M}}(),c=o(21),h=x(c),f=o(11),l=x(f),a=o(3),u=x(a),v=o(2),p=x(v),b=o(20),m=x(b),y=o(0),_=x(y),g=o(5),O=x(g),k=o(10),T=x(k),A=o(9),P=x(A);function x(L){return L&&L.__esModule?L:{default:L}}function S(L,M,H){return M in L?Object.defineProperty(L,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):L[M]=H,L}function w(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function I(L,M){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:L}function D(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(L,M):L.__proto__=M)}var $=(0,T.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",U=function(L){D(M,L),d(M,null,[{key:"match",value:function(z,V){return V=j(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Q){return!!V[Q]!==z[Q]&&V[Q]!==null})?!1:V.key===(z.which||z.keyCode)}}]);function M(H,z){w(this,M);var V=I(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H,z));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Q){Q==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||V.options.bindings[Q]&&V.addBinding(V.options.bindings[Q])}),V.addBinding({key:M.keys.ENTER,shiftKey:null},C),V.addBinding({key:M.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:M.keys.BACKSPACE},{collapsed:!0},q),V.addBinding({key:M.keys.DELETE},{collapsed:!0},R)):(V.addBinding({key:M.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),V.addBinding({key:M.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),V.addBinding({key:M.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:M.keys.DELETE},{collapsed:!1},E),V.addBinding({key:M.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),V.listen(),V}return d(M,[{key:"addBinding",value:function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=j(z);if(ne==null||ne.key==null)return $.warn("Attempted to add invalid keyboard binding",ne);typeof V=="function"&&(V={handler:V}),typeof Q=="function"&&(Q={handler:Q}),ne=(0,u.default)(ne,V,Q),this.bindings[ne.key]=this.bindings[ne.key]||[],this.bindings[ne.key].push(ne)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var Q=V.which||V.keyCode,ne=(z.bindings[Q]||[]).filter(function(we){return M.match(V,we)});if(ne.length!==0){var oe=z.quill.getSelection();if(!(oe==null||!z.quill.hasFocus())){var ce=z.quill.getLine(oe.index),he=s(ce,2),Fe=he[0],Ae=he[1],W=z.quill.getLeaf(oe.index),K=s(W,2),Z=K[0],J=K[1],Y=oe.length===0?[Z,J]:z.quill.getLeaf(oe.index+oe.length),le=s(Y,2),se=le[0],ue=le[1],ze=Z instanceof _.default.Text?Z.value().slice(0,J):"",tt=se instanceof _.default.Text?se.value().slice(ue):"",ye={collapsed:oe.length===0,empty:oe.length===0&&Fe.length()<=1,format:z.quill.getFormat(oe),offset:Ae,prefix:ze,suffix:tt},Tf=ne.some(function(we){if(we.collapsed!=null&&we.collapsed!==ye.collapsed||we.empty!=null&&we.empty!==ye.empty||we.offset!=null&&we.offset!==ye.offset)return!1;if(Array.isArray(we.format)){if(we.format.every(function(ft){return ye.format[ft]==null}))return!1}else if(i(we.format)==="object"&&!Object.keys(we.format).every(function(ft){return we.format[ft]===!0?ye.format[ft]!=null:we.format[ft]===!1?ye.format[ft]==null:(0,l.default)(we.format[ft],ye.format[ft])}))return!1;return we.prefix!=null&&!we.prefix.test(ye.prefix)||we.suffix!=null&&!we.suffix.test(ye.suffix)?!1:we.handler.call(z,oe,ye)!==!0});Tf&&V.preventDefault()}}}})}}]),M}(P.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(M,H){H.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(M){this.quill.deleteText(M.index-1,1,O.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(M){this.quill.history.cutoff();var H=new p.default().retain(M.index).delete(M.length).insert(" ");this.quill.updateContents(H,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index+1,O.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(M,H){this.quill.format("list",!1,O.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(M){var H=this.quill.getLine(M.index),z=s(H,2),V=z[0],Q=z[1],ne=(0,u.default)({},V.formats(),{list:"checked"}),oe=new p.default().retain(M.index).insert(`
|
|
51
51
|
`,ne).retain(V.length()-Q-1).retain(1,{list:"unchecked"});this.quill.updateContents(oe,O.default.sources.USER),this.quill.setSelection(M.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(M,H){var z=this.quill.getLine(M.index),V=s(z,2),Q=V[0],ne=V[1],oe=new p.default().retain(M.index).insert(`
|
|
52
52
|
`,H.format).retain(Q.length()-ne-1).retain(1,{header:null});this.quill.updateContents(oe,O.default.sources.USER),this.quill.setSelection(M.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(M,H){var z=H.prefix.length,V=this.quill.getLine(M.index),Q=s(V,2),ne=Q[0],oe=Q[1];if(oe>z)return!0;var ce=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":ce="unchecked";break;case"[x]":ce="checked";break;case"-":case"*":ce="bullet";break;default:ce="ordered"}this.quill.insertText(M.index," ",O.default.sources.USER),this.quill.history.cutoff();var he=new p.default().retain(M.index-oe).delete(z+1).retain(ne.length()-2-oe).retain(1,{list:ce});this.quill.updateContents(he,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index-z,O.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(M){var H=this.quill.getLine(M.index),z=s(H,2),V=z[0],Q=z[1],ne=new p.default().retain(M.index+V.length()-Q-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,O.default.sources.USER)}},"embed left":G(U.keys.LEFT,!1),"embed left shift":G(U.keys.LEFT,!0),"embed right":G(U.keys.RIGHT,!1),"embed right shift":G(U.keys.RIGHT,!0)}};function G(L,M){var H,z=L===U.keys.LEFT?"prefix":"suffix";return H={key:L,shiftKey:M,altKey:null},S(H,z,/^$/),S(H,"handler",function(Q){var ne=Q.index;L===U.keys.RIGHT&&(ne+=Q.length+1);var oe=this.quill.getLeaf(ne),ce=s(oe,1),he=ce[0];return he instanceof _.default.Embed?(L===U.keys.LEFT?M?this.quill.setSelection(Q.index-1,Q.length+1,O.default.sources.USER):this.quill.setSelection(Q.index-1,O.default.sources.USER):M?this.quill.setSelection(Q.index,Q.length+1,O.default.sources.USER):this.quill.setSelection(Q.index+Q.length+1,O.default.sources.USER),!1):!0}),H}function q(L,M){if(!(L.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(L.index),z=s(H,1),V=z[0],Q={};if(M.offset===0){var ne=this.quill.getLine(L.index-1),oe=s(ne,1),ce=oe[0];if(ce!=null&&ce.length()>1){var he=V.formats(),Fe=this.quill.getFormat(L.index-1,1);Q=m.default.attributes.diff(he,Fe)||{}}}var Ae=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(M.prefix)?2:1;this.quill.deleteText(L.index-Ae,Ae,O.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(L.index-Ae,Ae,Q,O.default.sources.USER),this.quill.focus()}}function R(L,M){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(M.suffix)?2:1;if(!(L.index>=this.quill.getLength()-H)){var z={},V=0,Q=this.quill.getLine(L.index),ne=s(Q,1),oe=ne[0];if(M.offset>=oe.length()-1){var ce=this.quill.getLine(L.index+1),he=s(ce,1),Fe=he[0];if(Fe){var Ae=oe.formats(),W=this.quill.getFormat(L.index,1);z=m.default.attributes.diff(Ae,W)||{},V=Fe.length()}}this.quill.deleteText(L.index,H,O.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+V-1,H,z,O.default.sources.USER)}}function E(L){var M=this.quill.getLines(L),H={};if(M.length>1){var z=M[0].formats(),V=M[M.length-1].formats();H=m.default.attributes.diff(V,z)||{}}this.quill.deleteText(L,O.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(L.index,1,H,O.default.sources.USER),this.quill.setSelection(L.index,O.default.sources.SILENT),this.quill.focus()}function C(L,M){var H=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys(M.format).reduce(function(V,Q){return _.default.query(Q,_.default.Scope.BLOCK)&&!Array.isArray(M.format[Q])&&(V[Q]=M.format[Q]),V},{});this.quill.insertText(L.index,`
|
|
53
|
-
`,z,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(M.format).forEach(function(V){z[V]==null&&(Array.isArray(M.format[V])||V!=="link"&&H.quill.format(V,M.format[V],O.default.sources.USER))})}function
|
|
54
|
-
`);he=0,K.forEach(function(Z,J){L?(ce.insertAt(Ae+he,z.TAB),he+=z.TAB.length,J===0?V+=z.TAB.length:Q+=z.TAB.length):Z.startsWith(z.TAB)&&(ce.deleteAt(Ae+he,z.TAB.length),he-=z.TAB.length,J===0?V-=z.TAB.length:Q-=z.TAB.length),he+=Z.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(V,Q,O.default.sources.SILENT)}}}}function F(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(L,!z.format[L],O.default.sources.USER)}}}function j(L){if(typeof L=="string"||typeof L=="number")return j({key:L});if((typeof L=="undefined"?"undefined":i(L))==="object"&&(L=(0,h.default)(L,!1)),typeof L.key=="string")if(U.keys[L.key.toUpperCase()]!=null)L.key=U.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[B]=L.shortKey,delete L.shortKey),L}t.default=U,t.SHORTKEY=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){var y=[],O=!0,k=!1,T=void 0;try{for(var A=g[Symbol.iterator](),P;!(O=(P=A.next()).done)&&(y.push(P.value),!(_&&y.length===_));O=!0);}catch(x){k=!0,T=x}finally{try{!O&&A.return&&A.return()}finally{if(k)throw T}}return y}return function(g,_){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return m(g,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:m(k,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},d=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),c=o(0),h=a(c),f=o(7),l=a(f);function a(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function v(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var b=function(m){p(g,m),d(g,null,[{key:"value",value:function(){}}]);function g(_,y){u(this,g);var O=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return O.selection=y,O.textNode=document.createTextNode(g.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return d(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,O){if(this._length!==0)return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,y,O);for(var k=this,T=0;k!=null&&k.statics.scope!==h.default.Scope.BLOCK_BLOT;)T+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=g.CONTENTS.length,k.optimize(),k.formatAt(T,g.CONTENTS.length,y,O),this._length=0)}},{key:"index",value:function(y,O){return y===this.textNode?0:s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,O=this.selection.getNativeRange(),k=void 0,T=void 0,A=void 0;if(O!=null&&O.start.node===y&&O.end.node===y){var P=[y,O.start.offset,O.end.offset];k=P[0],T=P[1],A=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var x=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof l.default?(k=this.next.domNode,this.next.insertAt(0,x),this.textNode.data=g.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),T!=null){var S=[T,A].map(function(N){return Math.max(0,Math.min(k.data.length,N-1))}),w=i(S,2);return T=w[0],A=w[1],{startNode:k,startOffset:T,endNode:k,endOffset:A}}}}},{key:"update",value:function(y,O){var k=this;if(y.some(function(A){return A.type==="characterData"&&A.target===k.textNode})){var T=this.restore();T&&(O.range=T)}}},{key:"value",value:function(){return""}}]),g}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=h(i),d=o(4),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default.Container);u.allowedChildren=[c.default,d.BlockEmbed,u],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var k=y.get;return k===void 0?void 0:k.call(_)}},d=o(0),c=h(d);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function l(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function a(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var u=function(b){a(m,b);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(_){var y=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,_);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):y}}]),m}(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),p=new u("color","color",{scope:c.default.Scope.INLINE});t.ColorAttributor=u,t.ColorClass=v,t.ColorStyle=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i=function(){function p(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),s=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},d=o(6),c=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function f(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var u=function(p){a(b,p);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"format",value:function(g,_){if(g!==this.statics.blotName||!_)return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,g,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(g){var _=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,g);return g=this.sanitize(g),_.setAttribute("href",g),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return v(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),b}(c.default);u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(p,b){var m=document.createElement("a");m.href=p;var g=m.href.slice(0,m.href.indexOf(":"));return b.indexOf(g)>-1}t.default=u,t.sanitize=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},s=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),d=o(23),c=l(d),h=o(107),f=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function a(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}var u=0;function v(b,m){b.setAttribute(m,b.getAttribute(m)!=="true")}var p=function(){function b(m){var g=this;a(this,b),this.select=m,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){g.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case c.default.keys.ENTER:g.togglePicker();break;case c.default.keys.ESCAPE:g.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var _=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),g.hasAttribute("value")&&y.setAttribute("data-value",g.getAttribute("value")),g.textContent&&y.setAttribute("data-label",g.textContent),y.addEventListener("click",function(){_.selectItem(y,!0)}),y.addEventListener("keydown",function(O){switch(O.keyCode){case c.default.keys.ENTER:_.selectItem(y,!0),O.preventDefault();break;case c.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=f.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(y){var O=g.buildItem(y);_.appendChild(O),y.selected===!0&&g.selectItem(O)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(_){g.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(g){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=this.container.querySelector(".ql-selected");if(g!==y&&(y!=null&&y.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),_))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":i(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var y=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),b}();t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=$(i),d=o(5),c=$(d),h=o(4),f=$(h),l=o(16),a=$(l),u=o(25),v=$(u),p=o(24),b=$(p),m=o(35),g=$(m),_=o(6),y=$(_),O=o(22),k=$(O),T=o(7),A=$(T),P=o(55),x=$(P),S=o(42),w=$(S),N=o(23),D=$(N);function $(B){return B&&B.__esModule?B:{default:B}}c.default.register({"blots/block":f.default,"blots/block/embed":h.BlockEmbed,"blots/break":a.default,"blots/container":v.default,"blots/cursor":b.default,"blots/embed":g.default,"blots/inline":y.default,"blots/scroll":k.default,"blots/text":A.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":D.default}),s.default.register(f.default,a.default,b.default,y.default,k.default,A.default),t.default=c.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function d(c){this.domNode=c,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(d.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),d.create=function(c){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?h=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?h=document.createElement(c):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},d.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},d.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return i.create(c)},d.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},d.prototype.deleteAt=function(c,h){var f=this.isolate(c,h);f.remove()},d.prototype.formatAt=function(c,h,f,l){var a=this.isolate(c,h);if(i.query(f,i.Scope.BLOT)!=null&&l)a.wrap(f,l);else if(i.query(f,i.Scope.ATTRIBUTE)!=null){var u=i.create(this.statics.scope);a.wrap(u),u.format(f,l)}},d.prototype.insertAt=function(c,h,f){var l=f==null?i.create("text",h):i.create(h,f),a=this.split(c);this.parent.insertBefore(l,a)},d.prototype.insertInto=function(c,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var f=null;c.children.insertBefore(this,h),h!=null&&(f=h.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=f)&&c.domNode.insertBefore(this.domNode,f),this.parent=c,this.attach()},d.prototype.isolate=function(c,h){var f=this.split(c);return f.split(h),f},d.prototype.length=function(){return 1},d.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},d.prototype.optimize=function(c){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},d.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},d.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},d.prototype.replaceWith=function(c,h){var f=typeof c=="string"?i.create(c,h):c;return f.replace(this),f},d.prototype.split=function(c,h){return c===0?this:this.next},d.prototype.update=function(c,h){},d.prototype.wrap=function(c,h){var f=typeof c=="string"?i.create(c,h):c;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},d.blotName="abstract",d}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),s=o(32),d=o(33),c=o(1),h=function(){function f(l){this.attributes={},this.domNode=l,this.build()}return f.prototype.attribute=function(l,a){a?l.add(this.domNode,a)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},f.prototype.build=function(){var l=this;this.attributes={};var a=i.default.keys(this.domNode),u=s.default.keys(this.domNode),v=d.default.keys(this.domNode);a.concat(u).concat(v).forEach(function(p){var b=c.query(p,c.Scope.ATTRIBUTE);b instanceof i.default&&(l.attributes[b.attrName]=b)})},f.prototype.copy=function(l){var a=this;Object.keys(this.attributes).forEach(function(u){var v=a.attributes[u].value(a.domNode);l.format(u,v)})},f.prototype.move=function(l){var a=this;this.copy(l),Object.keys(this.attributes).forEach(function(u){a.attributes[u].remove(a.domNode)}),this.attributes={}},f.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(a,u){return a[u]=l.attributes[u].value(l.domNode),a},{})},f}();t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function d(h,f){var l=h.getAttribute("class")||"";return l.split(/\s+/).filter(function(a){return a.indexOf(f+"-")===0})}var c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(a){return a.split("-").slice(0,-1).join("-")})},f.prototype.add=function(l,a){return this.canAdd(l,a)?(this.remove(l),l.classList.add(this.keyName+"-"+a),!0):!1},f.prototype.remove=function(l){var a=d(l,this.keyName);a.forEach(function(u){l.classList.remove(u)}),l.classList.length===0&&l.removeAttribute("class")},f.prototype.value=function(l){var a=d(l,this.keyName)[0]||"",u=a.slice(this.keyName.length+1);return this.canAdd(l,u)?u:""},f}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function d(h){var f=h.split("-"),l=f.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return f[0]+l}var c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(a){var u=a.split(":");return u[0].trim()})},f.prototype.add=function(l,a){return this.canAdd(l,a)?(l.style[d(this.keyName)]=a,!0):!1},f.prototype.remove=function(l){l.style[d(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},f.prototype.value=function(l){var a=l.style[d(this.keyName)];return this.canAdd(l,a)?a:""},f}(s.default);t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,f){for(var l=0;l<f.length;l++){var a=f[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,f,l){return f&&c(h.prototype,f),l&&c(h,l),h}}();function s(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(h,f){s(this,c),this.quill=h,this.options=f,this.modules={}}return i(c,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(l){f.modules[l]==null&&f.addModule(l)})}},{key:"addModule",value:function(f){var l=this.quill.constructor.import("modules/"+f);return this.modules[f]=new l(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),c}();d.DEFAULTS={modules:{}},d.themes={default:d},t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),s=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:m(k,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},d=o(0),c=l(d),h=o(7),f=l(h);function l(m){return m&&m.__esModule?m:{default:m}}function a(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function u(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function v(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var p="\uFEFF",b=function(m){v(g,m);function g(_){a(this,g);var y=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(O){y.contentNode.appendChild(O)}),y.leftGuard=document.createTextNode(p),y.rightGuard=document.createTextNode(p),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return i(g,[{key:"index",value:function(y,O){return y===this.leftGuard?0:y===this.rightGuard?1:s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"restore",value:function(y){var O=void 0,k=void 0,T=y.data.split(p).join("");if(y===this.leftGuard)if(this.prev instanceof f.default){var A=this.prev.length();this.prev.insertAt(A,T),O={startNode:this.prev.domNode,startOffset:A+T.length}}else k=document.createTextNode(T),this.parent.insertBefore(c.default.create(k),this),O={startNode:k,startOffset:T.length};else y===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,T),O={startNode:this.next.domNode,startOffset:T.length}):(k=document.createTextNode(T),this.parent.insertBefore(c.default.create(k),this.next),O={startNode:k,startOffset:T.length}));return y.data=p,O}},{key:"update",value:function(y,O){var k=this;y.forEach(function(T){if(T.type==="characterData"&&(T.target===k.leftGuard||T.target===k.rightGuard)){var A=k.restore(T.target);A&&(O.range=A)}})}}]),g}(c.default.Embed);t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i=o(0),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}var c={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new s.default.Attributor.Attribute("align","align",c),f=new s.default.Attributor.Class("align","ql-align",c),l=new s.default.Attributor.Style("align","text-align",c);t.AlignAttribute=h,t.AlignClass=f,t.AlignStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=o(0),s=c(i),d=o(26);function c(l){return l&&l.__esModule?l:{default:l}}var h=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),f=new d.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});t.BackgroundClass=h,t.BackgroundStyle=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=o(0),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}var c={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},h=new s.default.Attributor.Attribute("direction","dir",c),f=new s.default.Attributor.Class("direction","ql-direction",c),l=new s.default.Attributor.Style("direction","direction",c);t.DirectionAttribute=h,t.DirectionClass=f,t.DirectionStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),s=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:m(k,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},d=o(0),c=h(d);function h(m){return m&&m.__esModule?m:{default:m}}function f(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function l(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function a(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var u={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",u),p=function(m){a(g,m);function g(){return f(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"value",value:function(y){return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),g}(c.default.Attributor.Style),b=new p("font","font-family",u);t.FontStyle=b,t.FontClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=o(0),s=d(i);function d(f){return f&&f.__esModule?f:{default:f}}var c=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=c,t.SizeStyle=h},function(n,t,o){n.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{"1":o(92),"2":o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function _(y,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,k){return O&&_(y.prototype,O),k&&_(y,k),y}}(),s=o(0),d=a(s),c=o(5),h=a(c),f=o(9),l=a(f);function a(_){return _&&_.__esModule?_:{default:_}}function u(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function v(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function p(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var b=function(_){p(y,_);function y(O,k){u(this,y);var T=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,O,k));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(h.default.events.EDITOR_CHANGE,function(A,P,x,S){A!==h.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||S===h.default.sources.USER?T.record(P,x):T.transform(P))}),T.quill.keyboard.addBinding({key:"Z",shortKey:!0},T.undo.bind(T)),T.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},T.redo.bind(T)),/Win/i.test(navigator.platform)&&T.quill.keyboard.addBinding({key:"Y",shortKey:!0},T.redo.bind(T)),T}return i(y,[{key:"change",value:function(k,T){if(this.stack[k].length!==0){var A=this.stack[k].pop();this.stack[T].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[k],h.default.sources.USER),this.ignoreChange=!1;var P=g(A[k]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,T){if(k.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(T),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var x=this.stack.undo.pop();A=A.compose(x.undo),k=x.redo.compose(k)}else this.lastRecorded=P;this.stack.undo.push({redo:k,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(T){T.undo=k.transform(T.undo,!0),T.redo=k.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=k.transform(T.undo,!0),T.redo=k.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y}(l.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(_){var y=_.ops[_.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(`
|
|
55
|
-
`):y.attributes!=null?Object.keys(y.attributes).some(function(O){return d.default.query(O,d.default.Scope.BLOCK)!=null}):!1}function g(_){var y=_.reduce(function(k,T){return k+=T.delete||0,k},0),O=_.length()-y;return m(_)&&(O-=1),O}t.default=b,t.getLastChangeIndex=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function C(I,F){for(var j=0;j<F.length;j++){var L=F[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}return function(I,F,j){return F&&C(I.prototype,F),j&&C(I,j),I}}(),s=function C(I,F,j){I===null&&(I=Function.prototype);var L=Object.getOwnPropertyDescriptor(I,F);if(L===void 0){var M=Object.getPrototypeOf(I);return M===null?void 0:C(M,F,j)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(j)}},d=o(3),c=P(d),h=o(2),f=P(h),l=o(8),a=P(l),u=o(23),v=P(u),p=o(34),b=P(p),m=o(59),g=P(m),_=o(60),y=P(_),O=o(28),k=P(O),T=o(61),A=P(T);function P(C){return C&&C.__esModule?C:{default:C}}function x(C,I){if(!(C instanceof I))throw new TypeError("Cannot call a class as a function")}function S(C,I){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:C}function w(C,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);C.prototype=Object.create(I&&I.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(C,I):C.__proto__=I)}var N=[!1,"center","right","justify"],D=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$=[!1,"serif","monospace"],B=["1","2","3",!1],U=["small",!1,"large","huge"],G=function(C){w(I,C);function I(F,j){x(this,I);var L=S(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,F,j)),M=function H(z){if(!document.body.contains(F.root))return document.body.removeEventListener("click",H);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(V){V.container.contains(z.target)||V.close()})};return F.emitter.listenDOM("click",document.body,M),L}return i(I,[{key:"addModule",value:function(j){var L=s(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(j,L){j.forEach(function(M){var H=M.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),L[z]!=null))if(z==="direction")M.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")M.innerHTML=L[z];else{var V=M.value||"";V!=null&&L[z][V]&&(M.innerHTML=L[z][V])}})})}},{key:"buildPickers",value:function(j,L){var M=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&E(z,N),new y.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var V=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&E(z,D,V==="background"?"#ffffff":"#000000"),new g.default(z,L[V])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?E(z,$):z.classList.contains("ql-header")?E(z,B):z.classList.contains("ql-size")&&E(z,U)),new k.default(z)});var H=function(){M.pickers.forEach(function(V){V.update()})};this.quill.on(a.default.events.EDITOR_CHANGE,H)}}]),I}(b.default);G.DEFAULTS=(0,c.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var I=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var j=new FileReader;j.onload=function(L){var M=I.quill.getSelection(!0);I.quill.updateContents(new f.default().retain(M.index).delete(M.length).insert({image:L.target.result}),a.default.sources.USER),I.quill.setSelection(M.index+1,a.default.sources.SILENT),F.value=""},j.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(C){w(I,C);function I(F,j){x(this,I);var L=S(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,F,j));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(I,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(L){v.default.match(L,"enter")?(j.save(),L.preventDefault()):v.default.match(L,"escape")&&(j.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:j!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",j,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,a.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":j=R(j);case"formula":{if(!j)break;var M=this.quill.getSelection(!0);if(M!=null){var H=M.index+M.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),j,a.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",a.default.sources.USER),this.quill.setSelection(H+2,a.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),I}(A.default);function R(C){var I=C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return I?(I[1]||"https")+"://www.youtube.com/embed/"+I[2]+"?showinfo=0":(I=C.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(I[1]||"https")+"://player.vimeo.com/video/"+I[2]+"/":C}function E(C,I){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;I.forEach(function(j){var L=document.createElement("option");j===F?L.setAttribute("selected","selected"):L.setAttribute("value",j),C.appendChild(L)})}t.BaseTooltip=q,t.default=G},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var d=[],c=0;c<arguments.length;c++)d[c]=arguments[c];this.insertBefore(d[0],null),d.length>1&&this.append.apply(this,d.slice(1))},s.prototype.contains=function(d){for(var c,h=this.iterator();c=h();)if(c===d)return!0;return!1},s.prototype.insertBefore=function(d,c){!d||(d.next=c,c!=null?(d.prev=c.prev,c.prev!=null&&(c.prev.next=d),c.prev=d,c===this.head&&(this.head=d)):this.tail!=null?(this.tail.next=d,d.prev=this.tail,this.tail=d):(d.prev=null,this.head=this.tail=d),this.length+=1)},s.prototype.offset=function(d){for(var c=0,h=this.head;h!=null;){if(h===d)return c;c+=h.length(),h=h.next}return-1},s.prototype.remove=function(d){!this.contains(d)||(d.prev!=null&&(d.prev.next=d.next),d.next!=null&&(d.next.prev=d.prev),d===this.head&&(this.head=d.next),d===this.tail&&(this.tail=d.prev),this.length-=1)},s.prototype.iterator=function(d){return d===void 0&&(d=this.head),function(){var c=d;return d!=null&&(d=d.next),c}},s.prototype.find=function(d,c){c===void 0&&(c=!1);for(var h,f=this.iterator();h=f();){var l=h.length();if(d<l||c&&d===l&&(h.next==null||h.next.length()!==0))return[h,d];d-=l}return[null,0]},s.prototype.forEach=function(d){for(var c,h=this.iterator();c=h();)d(c)},s.prototype.forEachAt=function(d,c,h){if(!(c<=0))for(var f=this.find(d),l=f[0],a=f[1],u,v=d-a,p=this.iterator(l);(u=p())&&v<d+c;){var b=u.length();d>v?h(u,d-v,Math.min(c,v+b-d)):h(u,0,Math.min(b,d+c-v)),v+=b}},s.prototype.map=function(d){return this.reduce(function(c,h){return c.push(d(h)),c},[])},s.prototype.reduce=function(d,c){for(var h,f=this.iterator();h=f();)c=d(c,h);return c},s}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(17),d=o(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,f=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.scroll=v,v.observer=new MutationObserver(function(p){v.update(p)}),v.observer.observe(v.domNode,c),v.attach(),v}return a.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},a.prototype.deleteAt=function(u,v){this.update(),u===0&&v===this.length()?this.children.forEach(function(p){p.remove()}):l.prototype.deleteAt.call(this,u,v)},a.prototype.formatAt=function(u,v,p,b){this.update(),l.prototype.formatAt.call(this,u,v,p,b)},a.prototype.insertAt=function(u,v,p){this.update(),l.prototype.insertAt.call(this,u,v,p)},a.prototype.optimize=function(u,v){var p=this;u===void 0&&(u=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)u.push(b.pop());for(var m=function(O,k){k===void 0&&(k=!0),!(O==null||O===p)&&O.domNode.parentNode!=null&&(O.domNode[d.DATA_KEY].mutations==null&&(O.domNode[d.DATA_KEY].mutations=[]),k&&m(O.parent))},g=function(O){O.domNode[d.DATA_KEY]==null||O.domNode[d.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(g),O.optimize(v))},_=u,y=0;_.length>0;y+=1){if(y>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var k=d.find(O.target,!0);k!=null&&(k.domNode===O.target&&(O.type==="childList"?(m(d.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=d.find(T,!1);m(A,!1),A instanceof s.default&&A.children.forEach(function(P){m(P,!1)})})):O.type==="attributes"&&m(k.prev)),m(k))}),this.children.forEach(g),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)u.push(b.pop())}},a.prototype.update=function(u,v){var p=this;v===void 0&&(v={}),u=u||this.observer.takeRecords(),u.map(function(b){var m=d.find(b.target,!0);return m==null?null:m.domNode[d.DATA_KEY].mutations==null?(m.domNode[d.DATA_KEY].mutations=[b],m):(m.domNode[d.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===p||b.domNode[d.DATA_KEY]==null||b.update(b.domNode[d.DATA_KEY].mutations||[],v)}),this.domNode[d.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[d.DATA_KEY].mutations,v),this.optimize(u,v)},a.blotName="scroll",a.defaultChild="block",a.scope=d.Scope.BLOCK_BLOT,a.tagName="DIV",a}(s.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,a){l.__proto__=a}||function(l,a){for(var u in a)a.hasOwnProperty(u)&&(l[u]=a[u])};return function(l,a){f(l,a);function u(){this.constructor=l}l.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),d=o(1);function c(f,l){if(Object.keys(f).length!==Object.keys(l).length)return!1;for(var a in f)if(f[a]!==l[a])return!1;return!0}var h=function(f){i(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.formats=function(a){if(a.tagName!==l.tagName)return f.formats.call(this,a)},l.prototype.format=function(a,u){var v=this;a===this.statics.blotName&&!u?(this.children.forEach(function(p){p instanceof s.default||(p=p.wrap(l.blotName,!0)),v.attributes.copy(p)}),this.unwrap()):f.prototype.format.call(this,a,u)},l.prototype.formatAt=function(a,u,v,p){if(this.formats()[v]!=null||d.query(v,d.Scope.ATTRIBUTE)){var b=this.isolate(a,u);b.format(v,p)}else f.prototype.formatAt.call(this,a,u,v,p)},l.prototype.optimize=function(a){f.prototype.optimize.call(this,a);var u=this.formats();if(Object.keys(u).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&c(u,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=d.Scope.INLINE_BLOT,l.tagName="SPAN",l}(s.default);t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),d=o(1),c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.formats=function(l){var a=d.query(f.blotName).tagName;if(l.tagName!==a)return h.formats.call(this,l)},f.prototype.format=function(l,a){d.query(l,d.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!a?this.replaceWith(f.blotName):h.prototype.format.call(this,l,a))},f.prototype.formatAt=function(l,a,u,v){d.query(u,d.Scope.BLOCK)!=null?this.format(u,v):h.prototype.formatAt.call(this,l,a,u,v)},f.prototype.insertAt=function(l,a,u){if(u==null||d.query(a,d.Scope.INLINE)!=null)h.prototype.insertAt.call(this,l,a,u);else{var v=this.split(l),p=d.create(a,u);v.parent.insertBefore(p,v)}},f.prototype.update=function(l,a){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,l,a)},f.blotName="block",f.scope=d.Scope.BLOCK_BLOT,f.tagName="P",f}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){c(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),d=function(c){i(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.formats=function(f){},h.prototype.format=function(f,l){c.prototype.formatAt.call(this,0,this.length(),f,l)},h.prototype.formatAt=function(f,l,a,u){f===0&&l===this.length()?this.format(a,u):c.prototype.formatAt.call(this,f,l,a,u)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(s.default);t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),d=o(1),c=function(h){i(f,h);function f(l){var a=h.call(this,l)||this;return a.text=a.statics.value(a.domNode),a}return f.create=function(l){return document.createTextNode(l)},f.value=function(l){var a=l.data;return a.normalize&&(a=a.normalize()),a},f.prototype.deleteAt=function(l,a){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+a)},f.prototype.index=function(l,a){return this.domNode===l?a:-1},f.prototype.insertAt=function(l,a,u){u==null?(this.text=this.text.slice(0,l)+a+this.text.slice(l),this.domNode.data=this.text):h.prototype.insertAt.call(this,l,a,u)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(l){h.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(l,a){return[this.domNode,l]},f.prototype.split=function(l,a){if(a===void 0&&(a=!1),!a){if(l===0)return this;if(l===this.length())return this.next}var u=d.create(this.domNode.splitText(l));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},f.prototype.update=function(l,a){var u=this;l.some(function(v){return v.type==="characterData"&&v.target===u.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=d.Scope.INLINE_BLOT,f}(s.default);t.default=c},function(n,t,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(d,c){return arguments.length>1&&!this.contains(d)==!c?c:s.call(this,d)}}String.prototype.startsWith||(String.prototype.startsWith=function(d,c){return c=c||0,this.substr(c,d.length)===d}),String.prototype.endsWith||(String.prototype.endsWith=function(d,c){var h=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>h.length)&&(c=h.length),c-=d.length;var f=h.indexOf(d,c);return f!==-1&&f===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),f=h.length>>>0,l=arguments[1],a,u=0;u<f;u++)if(a=h[u],c.call(l,a,u,h))return a}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,t){var o=-1,i=1,s=0;function d(y,O,k){if(y==O)return y?[[s,y]]:[];(k<0||y.length<k)&&(k=null);var T=l(y,O),A=y.substring(0,T);y=y.substring(T),O=O.substring(T),T=a(y,O);var P=y.substring(y.length-T);y=y.substring(0,y.length-T),O=O.substring(0,O.length-T);var x=c(y,O);return A&&x.unshift([s,A]),P&&x.push([s,P]),v(x),k!=null&&(x=m(x,k)),x=g(x),x}function c(y,O){var k;if(!y)return[[i,O]];if(!O)return[[o,y]];var T=y.length>O.length?y:O,A=y.length>O.length?O:y,P=T.indexOf(A);if(P!=-1)return k=[[i,T.substring(0,P)],[s,A],[i,T.substring(P+A.length)]],y.length>O.length&&(k[0][0]=k[2][0]=o),k;if(A.length==1)return[[o,y],[i,O]];var x=u(y,O);if(x){var S=x[0],w=x[1],N=x[2],D=x[3],$=x[4],B=d(S,N),U=d(w,D);return B.concat([[s,$]],U)}return h(y,O)}function h(y,O){for(var k=y.length,T=O.length,A=Math.ceil((k+T)/2),P=A,x=2*A,S=new Array(x),w=new Array(x),N=0;N<x;N++)S[N]=-1,w[N]=-1;S[P+1]=0,w[P+1]=0;for(var D=k-T,$=D%2!=0,B=0,U=0,G=0,q=0,R=0;R<A;R++){for(var E=-R+B;E<=R-U;E+=2){var C=P+E,I;E==-R||E!=R&&S[C-1]<S[C+1]?I=S[C+1]:I=S[C-1]+1;for(var F=I-E;I<k&&F<T&&y.charAt(I)==O.charAt(F);)I++,F++;if(S[C]=I,I>k)U+=2;else if(F>T)B+=2;else if($){var j=P+D-E;if(j>=0&&j<x&&w[j]!=-1){var L=k-w[j];if(I>=L)return f(y,O,I,F)}}}for(var M=-R+G;M<=R-q;M+=2){var j=P+M,L;M==-R||M!=R&&w[j-1]<w[j+1]?L=w[j+1]:L=w[j-1]+1;for(var H=L-M;L<k&&H<T&&y.charAt(k-L-1)==O.charAt(T-H-1);)L++,H++;if(w[j]=L,L>k)q+=2;else if(H>T)G+=2;else if(!$){var C=P+D-M;if(C>=0&&C<x&&S[C]!=-1){var I=S[C],F=P+I-C;if(L=k-L,I>=L)return f(y,O,I,F)}}}}return[[o,y],[i,O]]}function f(y,O,k,T){var A=y.substring(0,k),P=O.substring(0,T),x=y.substring(k),S=O.substring(T),w=d(A,P),N=d(x,S);return w.concat(N)}function l(y,O){if(!y||!O||y.charAt(0)!=O.charAt(0))return 0;for(var k=0,T=Math.min(y.length,O.length),A=T,P=0;k<A;)y.substring(P,A)==O.substring(P,A)?(k=A,P=k):T=A,A=Math.floor((T-k)/2+k);return A}function a(y,O){if(!y||!O||y.charAt(y.length-1)!=O.charAt(O.length-1))return 0;for(var k=0,T=Math.min(y.length,O.length),A=T,P=0;k<A;)y.substring(y.length-A,y.length-P)==O.substring(O.length-A,O.length-P)?(k=A,P=k):T=A,A=Math.floor((T-k)/2+k);return A}function u(y,O){var k=y.length>O.length?y:O,T=y.length>O.length?O:y;if(k.length<4||T.length*2<k.length)return null;function A(U,G,q){for(var R=U.substring(q,q+Math.floor(U.length/4)),E=-1,C="",I,F,j,L;(E=G.indexOf(R,E+1))!=-1;){var M=l(U.substring(q),G.substring(E)),H=a(U.substring(0,q),G.substring(0,E));C.length<H+M&&(C=G.substring(E-H,E)+G.substring(E,E+M),I=U.substring(0,q-H),F=U.substring(q+M),j=G.substring(0,E-H),L=G.substring(E+M))}return C.length*2>=U.length?[I,F,j,L,C]:null}var P=A(k,T,Math.ceil(k.length/4)),x=A(k,T,Math.ceil(k.length/2)),S;if(!P&&!x)return null;x?P?S=P[4].length>x[4].length?P:x:S=x:S=P;var w,N,D,$;y.length>O.length?(w=S[0],N=S[1],D=S[2],$=S[3]):(D=S[0],$=S[1],w=S[2],N=S[3]);var B=S[4];return[w,N,D,$,B]}function v(y){y.push([s,""]);for(var O=0,k=0,T=0,A="",P="",x;O<y.length;)switch(y[O][0]){case i:T++,P+=y[O][1],O++;break;case o:k++,A+=y[O][1],O++;break;case s:k+T>1?(k!==0&&T!==0&&(x=l(P,A),x!==0&&(O-k-T>0&&y[O-k-T-1][0]==s?y[O-k-T-1][1]+=P.substring(0,x):(y.splice(0,0,[s,P.substring(0,x)]),O++),P=P.substring(x),A=A.substring(x)),x=a(P,A),x!==0&&(y[O][1]=P.substring(P.length-x)+y[O][1],P=P.substring(0,P.length-x),A=A.substring(0,A.length-x))),k===0?y.splice(O-T,k+T,[i,P]):T===0?y.splice(O-k,k+T,[o,A]):y.splice(O-k-T,k+T,[o,A],[i,P]),O=O-k-T+(k?1:0)+(T?1:0)+1):O!==0&&y[O-1][0]==s?(y[O-1][1]+=y[O][1],y.splice(O,1)):O++,T=0,k=0,A="",P="";break}y[y.length-1][1]===""&&y.pop();var S=!1;for(O=1;O<y.length-1;)y[O-1][0]==s&&y[O+1][0]==s&&(y[O][1].substring(y[O][1].length-y[O-1][1].length)==y[O-1][1]?(y[O][1]=y[O-1][1]+y[O][1].substring(0,y[O][1].length-y[O-1][1].length),y[O+1][1]=y[O-1][1]+y[O+1][1],y.splice(O-1,1),S=!0):y[O][1].substring(0,y[O+1][1].length)==y[O+1][1]&&(y[O-1][1]+=y[O+1][1],y[O][1]=y[O][1].substring(y[O+1][1].length)+y[O+1][1],y.splice(O+1,1),S=!0)),O++;S&&v(y)}var p=d;p.INSERT=i,p.DELETE=o,p.EQUAL=s,n.exports=p;function b(y,O){if(O===0)return[s,y];for(var k=0,T=0;T<y.length;T++){var A=y[T];if(A[0]===o||A[0]===s){var P=k+A[1].length;if(O===P)return[T+1,y];if(O<P){y=y.slice();var x=O-k,S=[A[0],A[1].slice(0,x)],w=[A[0],A[1].slice(x)];return y.splice(T,1,S,w),[T+1,y]}else k=P}}throw new Error("cursor_pos is out of bounds!")}function m(y,O){var k=b(y,O),T=k[1],A=k[0],P=T[A],x=T[A+1];if(P==null)return y;if(P[0]!==s)return y;if(x!=null&&P[1]+x[1]===x[1]+P[1])return T.splice(A,2,x,P),_(T,A,2);if(x!=null&&x[1].indexOf(P[1])===0){T.splice(A,2,[x[0],P[1]],[0,P[1]]);var S=x[1].slice(P[1].length);return S.length>0&&T.splice(A+2,0,[x[0],S]),_(T,A,3)}else return y}function g(y){for(var O=!1,k=function(x){return x.charCodeAt(0)>=56320&&x.charCodeAt(0)<=57343},T=function(x){return x.charCodeAt(x.length-1)>=55296&&x.charCodeAt(x.length-1)<=56319},A=2;A<y.length;A+=1)y[A-2][0]===s&&T(y[A-2][1])&&y[A-1][0]===o&&k(y[A-1][1])&&y[A][0]===i&&k(y[A][1])&&(O=!0,y[A-1][1]=y[A-2][1].slice(-1)+y[A-1][1],y[A][1]=y[A-2][1].slice(-1)+y[A][1],y[A-2][1]=y[A-2][1].slice(0,-1));if(!O)return y;for(var P=[],A=0;A<y.length;A+=1)y[A][1].length>0&&P.push(y[A]);return P}function _(y,O,k){for(var T=O+k-1;T>=0&&T>=O-1;T--)if(T+1<y.length){var A=y[T],P=y[T+1];A[0]===P[1]&&y.splice(T,2,[A[0],A[1]+P[1]])}return y}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var s=[];for(var d in i)s.push(d);return s}},function(n,t){var o=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=n.exports=o?i:s,t.supported=i;function i(d){return Object.prototype.toString.call(d)=="[object Arguments]"}t.unsupported=s;function s(d){return d&&typeof d=="object"&&typeof d.length=="number"&&Object.prototype.hasOwnProperty.call(d,"callee")&&!Object.prototype.propertyIsEnumerable.call(d,"callee")||!1}},function(n,t){var o=Object.prototype.hasOwnProperty,i="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(i=!1));function d(h,f,l){this.fn=h,this.context=f,this.once=l||!1}function c(){this._events=new s,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],l,a;if(this._eventsCount===0)return f;for(a in l=this._events)o.call(l,a)&&f.push(i?a.slice(1):a);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},c.prototype.listeners=function(f,l){var a=i?i+f:f,u=this._events[a];if(l)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var v=0,p=u.length,b=new Array(p);v<p;v++)b[v]=u[v].fn;return b},c.prototype.emit=function(f,l,a,u,v,p){var b=i?i+f:f;if(!this._events[b])return!1;var m=this._events[b],g=arguments.length,_,y;if(m.fn){switch(m.once&&this.removeListener(f,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,a),!0;case 4:return m.fn.call(m.context,l,a,u),!0;case 5:return m.fn.call(m.context,l,a,u,v),!0;case 6:return m.fn.call(m.context,l,a,u,v,p),!0}for(y=1,_=new Array(g-1);y<g;y++)_[y-1]=arguments[y];m.fn.apply(m.context,_)}else{var O=m.length,k;for(y=0;y<O;y++)switch(m[y].once&&this.removeListener(f,m[y].fn,void 0,!0),g){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,l);break;case 3:m[y].fn.call(m[y].context,l,a);break;case 4:m[y].fn.call(m[y].context,l,a,u);break;default:if(!_)for(k=1,_=new Array(g-1);k<g;k++)_[k-1]=arguments[k];m[y].fn.apply(m[y].context,_)}}return!0},c.prototype.on=function(f,l,a){var u=new d(l,a||this),v=i?i+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},c.prototype.once=function(f,l,a){var u=new d(l,a||this,!0),v=i?i+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},c.prototype.removeListener=function(f,l,a,u){var v=i?i+f:f;if(!this._events[v])return this;if(!l)return--this._eventsCount==0?this._events=new s:delete this._events[v],this;var p=this._events[v];if(p.fn)p.fn===l&&(!u||p.once)&&(!a||p.context===a)&&(--this._eventsCount==0?this._events=new s:delete this._events[v]);else{for(var b=0,m=[],g=p.length;b<g;b++)(p[b].fn!==l||u&&!p[b].once||a&&p[b].context!==a)&&m.push(p[b]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount==0?this._events=new s:delete this._events[v]}return this},c.prototype.removeAllListeners=function(f){var l;return f?(l=i?i+f:f,this._events[l]&&(--this._eventsCount==0?this._events=new s:delete this._events[l])):(this._events=new s,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=i,c.EventEmitter=c,typeof n!="undefined"&&(n.exports=c)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},s=function(){function W(K,Z){var J=[],Y=!0,le=!1,se=void 0;try{for(var ue=K[Symbol.iterator](),ze;!(Y=(ze=ue.next()).done)&&(J.push(ze.value),!(Z&&J.length===Z));Y=!0);}catch(tt){le=!0,se=tt}finally{try{!Y&&ue.return&&ue.return()}finally{if(le)throw se}}return J}return function(K,Z){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return W(K,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(K,Z){for(var J=0;J<Z.length;J++){var Y=Z[J];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(K,Y.key,Y)}}return function(K,Z,J){return Z&&W(K.prototype,Z),J&&W(K,J),K}}(),c=o(3),h=w(c),f=o(2),l=w(f),a=o(0),u=w(a),v=o(5),p=w(v),b=o(10),m=w(b),g=o(9),_=w(g),y=o(36),O=o(37),k=o(13),T=w(k),A=o(26),P=o(38),x=o(39),S=o(40);function w(W){return W&&W.__esModule?W:{default:W}}function N(W,K,Z){return K in W?Object.defineProperty(W,K,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[K]=Z,W}function D(W,K){if(!(W instanceof K))throw new TypeError("Cannot call a class as a function")}function $(W,K){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:W}function B(W,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);W.prototype=Object.create(K&&K.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(W,K):W.__proto__=K)}var U=(0,m.default)("quill:clipboard"),G="__ql-matcher",q=[[Node.TEXT_NODE,Ae],[Node.TEXT_NODE,ce],["br",Q],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,he],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,Fe],["li",oe],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",ne]],R=[y.AlignAttribute,P.DirectionAttribute].reduce(function(W,K){return W[K.keyName]=K,W},{}),E=[y.AlignStyle,O.BackgroundStyle,A.ColorStyle,P.DirectionStyle,x.FontStyle,S.SizeStyle].reduce(function(W,K){return W[K.keyName]=K,W},{}),C=function(W){B(K,W);function K(Z,J){D(this,K);var Y=$(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Z,J));return Y.quill.root.addEventListener("paste",Y.onPaste.bind(Y)),Y.container=Y.quill.addContainer("ql-clipboard"),Y.container.setAttribute("contenteditable",!0),Y.container.setAttribute("tabindex",-1),Y.matchers=[],q.concat(Y.options.matchers).forEach(function(le){var se=s(le,2),ue=se[0],ze=se[1];!J.matchVisual&&ze===he||Y.addMatcher(ue,ze)}),Y}return d(K,[{key:"addMatcher",value:function(J,Y){this.matchers.push([J,Y])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var Y=this.quill.getFormat(this.quill.selection.savedRange.index);if(Y[T.default.blotName]){var le=this.container.innerText;return this.container.innerHTML="",new l.default().insert(le,N({},T.default.blotName,Y[T.default.blotName]))}var se=this.prepareMatching(),ue=s(se,2),ze=ue[0],tt=ue[1],ge=M(this.container,ze,tt);return j(ge,`
|
|
56
|
-
`)&&
|
|
53
|
+
`,z,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(M.format).forEach(function(V){z[V]==null&&(Array.isArray(M.format[V])||V!=="link"&&H.quill.format(V,M.format[V],O.default.sources.USER))})}function N(L){return{key:U.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(H){var z=_.default.query("code-block"),V=H.index,Q=H.length,ne=this.quill.scroll.descendant(z,V),oe=s(ne,2),ce=oe[0],he=oe[1];if(ce!=null){var Fe=this.quill.getIndex(ce),Ae=ce.newlineIndex(he,!0)+1,W=ce.newlineIndex(Fe+he+Q),K=ce.domNode.textContent.slice(Ae,W).split(`
|
|
54
|
+
`);he=0,K.forEach(function(Z,J){L?(ce.insertAt(Ae+he,z.TAB),he+=z.TAB.length,J===0?V+=z.TAB.length:Q+=z.TAB.length):Z.startsWith(z.TAB)&&(ce.deleteAt(Ae+he,z.TAB.length),he-=z.TAB.length,J===0?V-=z.TAB.length:Q-=z.TAB.length),he+=Z.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(V,Q,O.default.sources.SILENT)}}}}function F(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(L,!z.format[L],O.default.sources.USER)}}}function j(L){if(typeof L=="string"||typeof L=="number")return j({key:L});if((typeof L=="undefined"?"undefined":i(L))==="object"&&(L=(0,h.default)(L,!1)),typeof L.key=="string")if(U.keys[L.key.toUpperCase()]!=null)L.key=U.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[B]=L.shortKey,delete L.shortKey),L}t.default=U,t.SHORTKEY=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(y,_){var g=[],O=!0,k=!1,T=void 0;try{for(var A=y[Symbol.iterator](),P;!(O=(P=A.next()).done)&&(g.push(P.value),!(_&&g.length===_));O=!0);}catch(x){k=!0,T=x}finally{try{!O&&A.return&&A.return()}finally{if(k)throw T}}return g}return function(y,_){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return m(y,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function m(y,_,g){y===null&&(y=Function.prototype);var O=Object.getOwnPropertyDescriptor(y,_);if(O===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,_,g)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(g)}},d=function(){function m(y,_){for(var g=0;g<_.length;g++){var O=_[g];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}return function(y,_,g){return _&&m(y.prototype,_),g&&m(y,g),y}}(),c=o(0),h=a(c),f=o(7),l=a(f);function a(m){return m&&m.__esModule?m:{default:m}}function u(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function v(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function p(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var b=function(m){p(y,m),d(y,null,[{key:"value",value:function(){}}]);function y(_,g){u(this,y);var O=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,_));return O.selection=g,O.textNode=document.createTextNode(y.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return d(y,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(g,O){if(this._length!==0)return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,g,O);for(var k=this,T=0;k!=null&&k.statics.scope!==h.default.Scope.BLOCK_BLOT;)T+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=y.CONTENTS.length,k.optimize(),k.formatAt(T,y.CONTENTS.length,g,O),this._length=0)}},{key:"index",value:function(g,O){return g===this.textNode?0:s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,g,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var g=this.textNode,O=this.selection.getNativeRange(),k=void 0,T=void 0,A=void 0;if(O!=null&&O.start.node===g&&O.end.node===g){var P=[g,O.start.offset,O.end.offset];k=P[0],T=P[1],A=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==y.CONTENTS){var x=this.textNode.data.split(y.CONTENTS).join("");this.next instanceof l.default?(k=this.next.domNode,this.next.insertAt(0,x),this.textNode.data=y.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(y.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),T!=null){var S=[T,A].map(function(I){return Math.max(0,Math.min(k.data.length,I-1))}),w=i(S,2);return T=w[0],A=w[1],{startNode:k,startOffset:T,endNode:k,endOffset:A}}}}},{key:"update",value:function(g,O){var k=this;if(g.some(function(A){return A.type==="characterData"&&A.target===k.textNode})){var T=this.restore();T&&(O.range=T)}}},{key:"value",value:function(){return""}}]),y}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=h(i),d=o(4),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default.Container);u.allowedChildren=[c.default,d.BlockEmbed,u],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(0),c=h(d);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function l(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function a(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var u=function(b){a(m,b);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(_){var g=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,_);return g.startsWith("rgb(")?(g=g.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+g.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):g}}]),m}(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),p=new u("color","color",{scope:c.default.Scope.INLINE});t.ColorAttributor=u,t.ColorClass=v,t.ColorStyle=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i=function(){function p(b,m){for(var y=0;y<m.length;y++){var _=m[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,y){return m&&p(b.prototype,m),y&&p(b,y),b}}(),s=function p(b,m,y){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var g=Object.getPrototypeOf(b);return g===null?void 0:p(g,m,y)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(y)}},d=o(6),c=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function f(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var u=function(p){a(b,p);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"format",value:function(y,_){if(y!==this.statics.blotName||!_)return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,y,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(y){var _=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,y);return y=this.sanitize(y),_.setAttribute("href",y),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(y){return y.getAttribute("href")}},{key:"sanitize",value:function(y){return v(y,this.PROTOCOL_WHITELIST)?y:this.SANITIZED_URL}}]),b}(c.default);u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(p,b){var m=document.createElement("a");m.href=p;var y=m.href.slice(0,m.href.indexOf(":"));return b.indexOf(y)>-1}t.default=u,t.sanitize=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},s=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),d=o(23),c=l(d),h=o(107),f=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function a(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}var u=0;function v(b,m){b.setAttribute(m,b.getAttribute(m)!=="true")}var p=function(){function b(m){var y=this;a(this,b),this.select=m,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){y.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case c.default.keys.ENTER:y.togglePicker();break;case c.default.keys.ESCAPE:y.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(y){var _=this,g=document.createElement("span");return g.tabIndex="0",g.setAttribute("role","button"),g.classList.add("ql-picker-item"),y.hasAttribute("value")&&g.setAttribute("data-value",y.getAttribute("value")),y.textContent&&g.setAttribute("data-label",y.textContent),g.addEventListener("click",function(){_.selectItem(g,!0)}),g.addEventListener("keydown",function(O){switch(O.keyCode){case c.default.keys.ENTER:_.selectItem(g,!0),O.preventDefault();break;case c.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),g}},{key:"buildLabel",value:function(){var y=document.createElement("span");return y.classList.add("ql-picker-label"),y.innerHTML=f.default,y.tabIndex="0",y.setAttribute("role","button"),y.setAttribute("aria-expanded","false"),this.container.appendChild(y),y}},{key:"buildOptions",value:function(){var y=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(g){var O=y.buildItem(g);_.appendChild(O),g.selected===!0&&y.selectItem(O)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var y=this;[].slice.call(this.select.attributes).forEach(function(_){y.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var y=this;this.close(),setTimeout(function(){return y.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=this.container.querySelector(".ql-selected");if(y!==g&&(g!=null&&g.classList.remove("ql-selected"),y!=null&&(y.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(y.parentNode.children,y),y.hasAttribute("data-value")?this.label.setAttribute("data-value",y.getAttribute("data-value")):this.label.removeAttribute("data-value"),y.hasAttribute("data-label")?this.label.setAttribute("data-label",y.getAttribute("data-label")):this.label.removeAttribute("data-label"),_))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":i(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var y=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];y=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var g=y!=null&&y!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",g)}}]),b}();t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=$(i),d=o(5),c=$(d),h=o(4),f=$(h),l=o(16),a=$(l),u=o(25),v=$(u),p=o(24),b=$(p),m=o(35),y=$(m),_=o(6),g=$(_),O=o(22),k=$(O),T=o(7),A=$(T),P=o(55),x=$(P),S=o(42),w=$(S),I=o(23),D=$(I);function $(B){return B&&B.__esModule?B:{default:B}}c.default.register({"blots/block":f.default,"blots/block/embed":h.BlockEmbed,"blots/break":a.default,"blots/container":v.default,"blots/cursor":b.default,"blots/embed":y.default,"blots/inline":g.default,"blots/scroll":k.default,"blots/text":A.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":D.default}),s.default.register(f.default,a.default,b.default,g.default,k.default,A.default),t.default=c.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function d(c){this.domNode=c,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(d.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),d.create=function(c){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?h=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?h=document.createElement(c):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},d.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},d.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return i.create(c)},d.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},d.prototype.deleteAt=function(c,h){var f=this.isolate(c,h);f.remove()},d.prototype.formatAt=function(c,h,f,l){var a=this.isolate(c,h);if(i.query(f,i.Scope.BLOT)!=null&&l)a.wrap(f,l);else if(i.query(f,i.Scope.ATTRIBUTE)!=null){var u=i.create(this.statics.scope);a.wrap(u),u.format(f,l)}},d.prototype.insertAt=function(c,h,f){var l=f==null?i.create("text",h):i.create(h,f),a=this.split(c);this.parent.insertBefore(l,a)},d.prototype.insertInto=function(c,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var f=null;c.children.insertBefore(this,h),h!=null&&(f=h.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=f)&&c.domNode.insertBefore(this.domNode,f),this.parent=c,this.attach()},d.prototype.isolate=function(c,h){var f=this.split(c);return f.split(h),f},d.prototype.length=function(){return 1},d.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},d.prototype.optimize=function(c){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},d.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},d.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},d.prototype.replaceWith=function(c,h){var f=typeof c=="string"?i.create(c,h):c;return f.replace(this),f},d.prototype.split=function(c,h){return c===0?this:this.next},d.prototype.update=function(c,h){},d.prototype.wrap=function(c,h){var f=typeof c=="string"?i.create(c,h):c;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},d.blotName="abstract",d}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),s=o(32),d=o(33),c=o(1),h=function(){function f(l){this.attributes={},this.domNode=l,this.build()}return f.prototype.attribute=function(l,a){a?l.add(this.domNode,a)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},f.prototype.build=function(){var l=this;this.attributes={};var a=i.default.keys(this.domNode),u=s.default.keys(this.domNode),v=d.default.keys(this.domNode);a.concat(u).concat(v).forEach(function(p){var b=c.query(p,c.Scope.ATTRIBUTE);b instanceof i.default&&(l.attributes[b.attrName]=b)})},f.prototype.copy=function(l){var a=this;Object.keys(this.attributes).forEach(function(u){var v=a.attributes[u].value(a.domNode);l.format(u,v)})},f.prototype.move=function(l){var a=this;this.copy(l),Object.keys(this.attributes).forEach(function(u){a.attributes[u].remove(a.domNode)}),this.attributes={}},f.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(a,u){return a[u]=l.attributes[u].value(l.domNode),a},{})},f}();t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function d(h,f){var l=h.getAttribute("class")||"";return l.split(/\s+/).filter(function(a){return a.indexOf(f+"-")===0})}var c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(a){return a.split("-").slice(0,-1).join("-")})},f.prototype.add=function(l,a){return this.canAdd(l,a)?(this.remove(l),l.classList.add(this.keyName+"-"+a),!0):!1},f.prototype.remove=function(l){var a=d(l,this.keyName);a.forEach(function(u){l.classList.remove(u)}),l.classList.length===0&&l.removeAttribute("class")},f.prototype.value=function(l){var a=d(l,this.keyName)[0]||"",u=a.slice(this.keyName.length+1);return this.canAdd(l,u)?u:""},f}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function d(h){var f=h.split("-"),l=f.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return f[0]+l}var c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(a){var u=a.split(":");return u[0].trim()})},f.prototype.add=function(l,a){return this.canAdd(l,a)?(l.style[d(this.keyName)]=a,!0):!1},f.prototype.remove=function(l){l.style[d(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},f.prototype.value=function(l){var a=l.style[d(this.keyName)];return this.canAdd(l,a)?a:""},f}(s.default);t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,f){for(var l=0;l<f.length;l++){var a=f[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,f,l){return f&&c(h.prototype,f),l&&c(h,l),h}}();function s(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(h,f){s(this,c),this.quill=h,this.options=f,this.modules={}}return i(c,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(l){f.modules[l]==null&&f.addModule(l)})}},{key:"addModule",value:function(f){var l=this.quill.constructor.import("modules/"+f);return this.modules[f]=new l(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),c}();d.DEFAULTS={modules:{}},d.themes={default:d},t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(y,_){for(var g=0;g<_.length;g++){var O=_[g];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}return function(y,_,g){return _&&m(y.prototype,_),g&&m(y,g),y}}(),s=function m(y,_,g){y===null&&(y=Function.prototype);var O=Object.getOwnPropertyDescriptor(y,_);if(O===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,_,g)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(g)}},d=o(0),c=l(d),h=o(7),f=l(h);function l(m){return m&&m.__esModule?m:{default:m}}function a(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function u(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function v(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p="\uFEFF",b=function(m){v(y,m);function y(_){a(this,y);var g=u(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,_));return g.contentNode=document.createElement("span"),g.contentNode.setAttribute("contenteditable",!1),[].slice.call(g.domNode.childNodes).forEach(function(O){g.contentNode.appendChild(O)}),g.leftGuard=document.createTextNode(p),g.rightGuard=document.createTextNode(p),g.domNode.appendChild(g.leftGuard),g.domNode.appendChild(g.contentNode),g.domNode.appendChild(g.rightGuard),g}return i(y,[{key:"index",value:function(g,O){return g===this.leftGuard?0:g===this.rightGuard?1:s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,g,O)}},{key:"restore",value:function(g){var O=void 0,k=void 0,T=g.data.split(p).join("");if(g===this.leftGuard)if(this.prev instanceof f.default){var A=this.prev.length();this.prev.insertAt(A,T),O={startNode:this.prev.domNode,startOffset:A+T.length}}else k=document.createTextNode(T),this.parent.insertBefore(c.default.create(k),this),O={startNode:k,startOffset:T.length};else g===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,T),O={startNode:this.next.domNode,startOffset:T.length}):(k=document.createTextNode(T),this.parent.insertBefore(c.default.create(k),this.next),O={startNode:k,startOffset:T.length}));return g.data=p,O}},{key:"update",value:function(g,O){var k=this;g.forEach(function(T){if(T.type==="characterData"&&(T.target===k.leftGuard||T.target===k.rightGuard)){var A=k.restore(T.target);A&&(O.range=A)}})}}]),y}(c.default.Embed);t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i=o(0),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}var c={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new s.default.Attributor.Attribute("align","align",c),f=new s.default.Attributor.Class("align","ql-align",c),l=new s.default.Attributor.Style("align","text-align",c);t.AlignAttribute=h,t.AlignClass=f,t.AlignStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=o(0),s=c(i),d=o(26);function c(l){return l&&l.__esModule?l:{default:l}}var h=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),f=new d.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});t.BackgroundClass=h,t.BackgroundStyle=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=o(0),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}var c={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},h=new s.default.Attributor.Attribute("direction","dir",c),f=new s.default.Attributor.Class("direction","ql-direction",c),l=new s.default.Attributor.Style("direction","direction",c);t.DirectionAttribute=h,t.DirectionClass=f,t.DirectionStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function m(y,_){for(var g=0;g<_.length;g++){var O=_[g];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}return function(y,_,g){return _&&m(y.prototype,_),g&&m(y,g),y}}(),s=function m(y,_,g){y===null&&(y=Function.prototype);var O=Object.getOwnPropertyDescriptor(y,_);if(O===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,_,g)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(g)}},d=o(0),c=h(d);function h(m){return m&&m.__esModule?m:{default:m}}function f(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function l(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function a(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var u={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",u),p=function(m){a(y,m);function y(){return f(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"value",value:function(g){return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,g).replace(/["']/g,"")}}]),y}(c.default.Attributor.Style),b=new p("font","font-family",u);t.FontStyle=b,t.FontClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=o(0),s=d(i);function d(f){return f&&f.__esModule?f:{default:f}}var c=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=c,t.SizeStyle=h},function(n,t,o){n.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{"1":o(92),"2":o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function _(g,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(g,T.key,T)}}return function(g,O,k){return O&&_(g.prototype,O),k&&_(g,k),g}}(),s=o(0),d=a(s),c=o(5),h=a(c),f=o(9),l=a(f);function a(_){return _&&_.__esModule?_:{default:_}}function u(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function v(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function p(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var b=function(_){p(g,_);function g(O,k){u(this,g);var T=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,O,k));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(h.default.events.EDITOR_CHANGE,function(A,P,x,S){A!==h.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||S===h.default.sources.USER?T.record(P,x):T.transform(P))}),T.quill.keyboard.addBinding({key:"Z",shortKey:!0},T.undo.bind(T)),T.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},T.redo.bind(T)),/Win/i.test(navigator.platform)&&T.quill.keyboard.addBinding({key:"Y",shortKey:!0},T.redo.bind(T)),T}return i(g,[{key:"change",value:function(k,T){if(this.stack[k].length!==0){var A=this.stack[k].pop();this.stack[T].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[k],h.default.sources.USER),this.ignoreChange=!1;var P=y(A[k]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,T){if(k.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(T),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var x=this.stack.undo.pop();A=A.compose(x.undo),k=x.redo.compose(k)}else this.lastRecorded=P;this.stack.undo.push({redo:k,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(T){T.undo=k.transform(T.undo,!0),T.redo=k.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=k.transform(T.undo,!0),T.redo=k.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),g}(l.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(_){var g=_.ops[_.ops.length-1];return g==null?!1:g.insert!=null?typeof g.insert=="string"&&g.insert.endsWith(`
|
|
55
|
+
`):g.attributes!=null?Object.keys(g.attributes).some(function(O){return d.default.query(O,d.default.Scope.BLOCK)!=null}):!1}function y(_){var g=_.reduce(function(k,T){return k+=T.delete||0,k},0),O=_.length()-g;return m(_)&&(O-=1),O}t.default=b,t.getLastChangeIndex=y},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function C(N,F){for(var j=0;j<F.length;j++){var L=F[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(N,L.key,L)}}return function(N,F,j){return F&&C(N.prototype,F),j&&C(N,j),N}}(),s=function C(N,F,j){N===null&&(N=Function.prototype);var L=Object.getOwnPropertyDescriptor(N,F);if(L===void 0){var M=Object.getPrototypeOf(N);return M===null?void 0:C(M,F,j)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(j)}},d=o(3),c=P(d),h=o(2),f=P(h),l=o(8),a=P(l),u=o(23),v=P(u),p=o(34),b=P(p),m=o(59),y=P(m),_=o(60),g=P(_),O=o(28),k=P(O),T=o(61),A=P(T);function P(C){return C&&C.__esModule?C:{default:C}}function x(C,N){if(!(C instanceof N))throw new TypeError("Cannot call a class as a function")}function S(C,N){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:C}function w(C,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);C.prototype=Object.create(N&&N.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(C,N):C.__proto__=N)}var I=[!1,"center","right","justify"],D=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$=[!1,"serif","monospace"],B=["1","2","3",!1],U=["small",!1,"large","huge"],G=function(C){w(N,C);function N(F,j){x(this,N);var L=S(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,F,j)),M=function H(z){if(!document.body.contains(F.root))return document.body.removeEventListener("click",H);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(V){V.container.contains(z.target)||V.close()})};return F.emitter.listenDOM("click",document.body,M),L}return i(N,[{key:"addModule",value:function(j){var L=s(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(j,L){j.forEach(function(M){var H=M.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),L[z]!=null))if(z==="direction")M.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")M.innerHTML=L[z];else{var V=M.value||"";V!=null&&L[z][V]&&(M.innerHTML=L[z][V])}})})}},{key:"buildPickers",value:function(j,L){var M=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&E(z,I),new g.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var V=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&E(z,D,V==="background"?"#ffffff":"#000000"),new y.default(z,L[V])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?E(z,$):z.classList.contains("ql-header")?E(z,B):z.classList.contains("ql-size")&&E(z,U)),new k.default(z)});var H=function(){M.pickers.forEach(function(V){V.update()})};this.quill.on(a.default.events.EDITOR_CHANGE,H)}}]),N}(b.default);G.DEFAULTS=(0,c.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var N=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var j=new FileReader;j.onload=function(L){var M=N.quill.getSelection(!0);N.quill.updateContents(new f.default().retain(M.index).delete(M.length).insert({image:L.target.result}),a.default.sources.USER),N.quill.setSelection(M.index+1,a.default.sources.SILENT),F.value=""},j.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(C){w(N,C);function N(F,j){x(this,N);var L=S(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,F,j));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(N,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(L){v.default.match(L,"enter")?(j.save(),L.preventDefault()):v.default.match(L,"escape")&&(j.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:j!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",j,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,a.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":j=R(j);case"formula":{if(!j)break;var M=this.quill.getSelection(!0);if(M!=null){var H=M.index+M.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),j,a.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",a.default.sources.USER),this.quill.setSelection(H+2,a.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),N}(A.default);function R(C){var N=C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return N?(N[1]||"https")+"://www.youtube.com/embed/"+N[2]+"?showinfo=0":(N=C.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(N[1]||"https")+"://player.vimeo.com/video/"+N[2]+"/":C}function E(C,N){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;N.forEach(function(j){var L=document.createElement("option");j===F?L.setAttribute("selected","selected"):L.setAttribute("value",j),C.appendChild(L)})}t.BaseTooltip=q,t.default=G},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var d=[],c=0;c<arguments.length;c++)d[c]=arguments[c];this.insertBefore(d[0],null),d.length>1&&this.append.apply(this,d.slice(1))},s.prototype.contains=function(d){for(var c,h=this.iterator();c=h();)if(c===d)return!0;return!1},s.prototype.insertBefore=function(d,c){!d||(d.next=c,c!=null?(d.prev=c.prev,c.prev!=null&&(c.prev.next=d),c.prev=d,c===this.head&&(this.head=d)):this.tail!=null?(this.tail.next=d,d.prev=this.tail,this.tail=d):(d.prev=null,this.head=this.tail=d),this.length+=1)},s.prototype.offset=function(d){for(var c=0,h=this.head;h!=null;){if(h===d)return c;c+=h.length(),h=h.next}return-1},s.prototype.remove=function(d){!this.contains(d)||(d.prev!=null&&(d.prev.next=d.next),d.next!=null&&(d.next.prev=d.prev),d===this.head&&(this.head=d.next),d===this.tail&&(this.tail=d.prev),this.length-=1)},s.prototype.iterator=function(d){return d===void 0&&(d=this.head),function(){var c=d;return d!=null&&(d=d.next),c}},s.prototype.find=function(d,c){c===void 0&&(c=!1);for(var h,f=this.iterator();h=f();){var l=h.length();if(d<l||c&&d===l&&(h.next==null||h.next.length()!==0))return[h,d];d-=l}return[null,0]},s.prototype.forEach=function(d){for(var c,h=this.iterator();c=h();)d(c)},s.prototype.forEachAt=function(d,c,h){if(!(c<=0))for(var f=this.find(d),l=f[0],a=f[1],u,v=d-a,p=this.iterator(l);(u=p())&&v<d+c;){var b=u.length();d>v?h(u,d-v,Math.min(c,v+b-d)):h(u,0,Math.min(b,d+c-v)),v+=b}},s.prototype.map=function(d){return this.reduce(function(c,h){return c.push(d(h)),c},[])},s.prototype.reduce=function(d,c){for(var h,f=this.iterator();h=f();)c=d(c,h);return c},s}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(17),d=o(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,f=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.scroll=v,v.observer=new MutationObserver(function(p){v.update(p)}),v.observer.observe(v.domNode,c),v.attach(),v}return a.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},a.prototype.deleteAt=function(u,v){this.update(),u===0&&v===this.length()?this.children.forEach(function(p){p.remove()}):l.prototype.deleteAt.call(this,u,v)},a.prototype.formatAt=function(u,v,p,b){this.update(),l.prototype.formatAt.call(this,u,v,p,b)},a.prototype.insertAt=function(u,v,p){this.update(),l.prototype.insertAt.call(this,u,v,p)},a.prototype.optimize=function(u,v){var p=this;u===void 0&&(u=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)u.push(b.pop());for(var m=function(O,k){k===void 0&&(k=!0),!(O==null||O===p)&&O.domNode.parentNode!=null&&(O.domNode[d.DATA_KEY].mutations==null&&(O.domNode[d.DATA_KEY].mutations=[]),k&&m(O.parent))},y=function(O){O.domNode[d.DATA_KEY]==null||O.domNode[d.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(y),O.optimize(v))},_=u,g=0;_.length>0;g+=1){if(g>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var k=d.find(O.target,!0);k!=null&&(k.domNode===O.target&&(O.type==="childList"?(m(d.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=d.find(T,!1);m(A,!1),A instanceof s.default&&A.children.forEach(function(P){m(P,!1)})})):O.type==="attributes"&&m(k.prev)),m(k))}),this.children.forEach(y),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)u.push(b.pop())}},a.prototype.update=function(u,v){var p=this;v===void 0&&(v={}),u=u||this.observer.takeRecords(),u.map(function(b){var m=d.find(b.target,!0);return m==null?null:m.domNode[d.DATA_KEY].mutations==null?(m.domNode[d.DATA_KEY].mutations=[b],m):(m.domNode[d.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===p||b.domNode[d.DATA_KEY]==null||b.update(b.domNode[d.DATA_KEY].mutations||[],v)}),this.domNode[d.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[d.DATA_KEY].mutations,v),this.optimize(u,v)},a.blotName="scroll",a.defaultChild="block",a.scope=d.Scope.BLOCK_BLOT,a.tagName="DIV",a}(s.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,a){l.__proto__=a}||function(l,a){for(var u in a)a.hasOwnProperty(u)&&(l[u]=a[u])};return function(l,a){f(l,a);function u(){this.constructor=l}l.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),d=o(1);function c(f,l){if(Object.keys(f).length!==Object.keys(l).length)return!1;for(var a in f)if(f[a]!==l[a])return!1;return!0}var h=function(f){i(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.formats=function(a){if(a.tagName!==l.tagName)return f.formats.call(this,a)},l.prototype.format=function(a,u){var v=this;a===this.statics.blotName&&!u?(this.children.forEach(function(p){p instanceof s.default||(p=p.wrap(l.blotName,!0)),v.attributes.copy(p)}),this.unwrap()):f.prototype.format.call(this,a,u)},l.prototype.formatAt=function(a,u,v,p){if(this.formats()[v]!=null||d.query(v,d.Scope.ATTRIBUTE)){var b=this.isolate(a,u);b.format(v,p)}else f.prototype.formatAt.call(this,a,u,v,p)},l.prototype.optimize=function(a){f.prototype.optimize.call(this,a);var u=this.formats();if(Object.keys(u).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&c(u,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=d.Scope.INLINE_BLOT,l.tagName="SPAN",l}(s.default);t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),d=o(1),c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.formats=function(l){var a=d.query(f.blotName).tagName;if(l.tagName!==a)return h.formats.call(this,l)},f.prototype.format=function(l,a){d.query(l,d.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!a?this.replaceWith(f.blotName):h.prototype.format.call(this,l,a))},f.prototype.formatAt=function(l,a,u,v){d.query(u,d.Scope.BLOCK)!=null?this.format(u,v):h.prototype.formatAt.call(this,l,a,u,v)},f.prototype.insertAt=function(l,a,u){if(u==null||d.query(a,d.Scope.INLINE)!=null)h.prototype.insertAt.call(this,l,a,u);else{var v=this.split(l),p=d.create(a,u);v.parent.insertBefore(p,v)}},f.prototype.update=function(l,a){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,l,a)},f.blotName="block",f.scope=d.Scope.BLOCK_BLOT,f.tagName="P",f}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){c(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),d=function(c){i(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.formats=function(f){},h.prototype.format=function(f,l){c.prototype.formatAt.call(this,0,this.length(),f,l)},h.prototype.formatAt=function(f,l,a,u){f===0&&l===this.length()?this.format(a,u):c.prototype.formatAt.call(this,f,l,a,u)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(s.default);t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),d=o(1),c=function(h){i(f,h);function f(l){var a=h.call(this,l)||this;return a.text=a.statics.value(a.domNode),a}return f.create=function(l){return document.createTextNode(l)},f.value=function(l){var a=l.data;return a.normalize&&(a=a.normalize()),a},f.prototype.deleteAt=function(l,a){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+a)},f.prototype.index=function(l,a){return this.domNode===l?a:-1},f.prototype.insertAt=function(l,a,u){u==null?(this.text=this.text.slice(0,l)+a+this.text.slice(l),this.domNode.data=this.text):h.prototype.insertAt.call(this,l,a,u)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(l){h.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(l,a){return[this.domNode,l]},f.prototype.split=function(l,a){if(a===void 0&&(a=!1),!a){if(l===0)return this;if(l===this.length())return this.next}var u=d.create(this.domNode.splitText(l));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},f.prototype.update=function(l,a){var u=this;l.some(function(v){return v.type==="characterData"&&v.target===u.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=d.Scope.INLINE_BLOT,f}(s.default);t.default=c},function(n,t,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(d,c){return arguments.length>1&&!this.contains(d)==!c?c:s.call(this,d)}}String.prototype.startsWith||(String.prototype.startsWith=function(d,c){return c=c||0,this.substr(c,d.length)===d}),String.prototype.endsWith||(String.prototype.endsWith=function(d,c){var h=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>h.length)&&(c=h.length),c-=d.length;var f=h.indexOf(d,c);return f!==-1&&f===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),f=h.length>>>0,l=arguments[1],a,u=0;u<f;u++)if(a=h[u],c.call(l,a,u,h))return a}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,t){var o=-1,i=1,s=0;function d(g,O,k){if(g==O)return g?[[s,g]]:[];(k<0||g.length<k)&&(k=null);var T=l(g,O),A=g.substring(0,T);g=g.substring(T),O=O.substring(T),T=a(g,O);var P=g.substring(g.length-T);g=g.substring(0,g.length-T),O=O.substring(0,O.length-T);var x=c(g,O);return A&&x.unshift([s,A]),P&&x.push([s,P]),v(x),k!=null&&(x=m(x,k)),x=y(x),x}function c(g,O){var k;if(!g)return[[i,O]];if(!O)return[[o,g]];var T=g.length>O.length?g:O,A=g.length>O.length?O:g,P=T.indexOf(A);if(P!=-1)return k=[[i,T.substring(0,P)],[s,A],[i,T.substring(P+A.length)]],g.length>O.length&&(k[0][0]=k[2][0]=o),k;if(A.length==1)return[[o,g],[i,O]];var x=u(g,O);if(x){var S=x[0],w=x[1],I=x[2],D=x[3],$=x[4],B=d(S,I),U=d(w,D);return B.concat([[s,$]],U)}return h(g,O)}function h(g,O){for(var k=g.length,T=O.length,A=Math.ceil((k+T)/2),P=A,x=2*A,S=new Array(x),w=new Array(x),I=0;I<x;I++)S[I]=-1,w[I]=-1;S[P+1]=0,w[P+1]=0;for(var D=k-T,$=D%2!=0,B=0,U=0,G=0,q=0,R=0;R<A;R++){for(var E=-R+B;E<=R-U;E+=2){var C=P+E,N;E==-R||E!=R&&S[C-1]<S[C+1]?N=S[C+1]:N=S[C-1]+1;for(var F=N-E;N<k&&F<T&&g.charAt(N)==O.charAt(F);)N++,F++;if(S[C]=N,N>k)U+=2;else if(F>T)B+=2;else if($){var j=P+D-E;if(j>=0&&j<x&&w[j]!=-1){var L=k-w[j];if(N>=L)return f(g,O,N,F)}}}for(var M=-R+G;M<=R-q;M+=2){var j=P+M,L;M==-R||M!=R&&w[j-1]<w[j+1]?L=w[j+1]:L=w[j-1]+1;for(var H=L-M;L<k&&H<T&&g.charAt(k-L-1)==O.charAt(T-H-1);)L++,H++;if(w[j]=L,L>k)q+=2;else if(H>T)G+=2;else if(!$){var C=P+D-M;if(C>=0&&C<x&&S[C]!=-1){var N=S[C],F=P+N-C;if(L=k-L,N>=L)return f(g,O,N,F)}}}}return[[o,g],[i,O]]}function f(g,O,k,T){var A=g.substring(0,k),P=O.substring(0,T),x=g.substring(k),S=O.substring(T),w=d(A,P),I=d(x,S);return w.concat(I)}function l(g,O){if(!g||!O||g.charAt(0)!=O.charAt(0))return 0;for(var k=0,T=Math.min(g.length,O.length),A=T,P=0;k<A;)g.substring(P,A)==O.substring(P,A)?(k=A,P=k):T=A,A=Math.floor((T-k)/2+k);return A}function a(g,O){if(!g||!O||g.charAt(g.length-1)!=O.charAt(O.length-1))return 0;for(var k=0,T=Math.min(g.length,O.length),A=T,P=0;k<A;)g.substring(g.length-A,g.length-P)==O.substring(O.length-A,O.length-P)?(k=A,P=k):T=A,A=Math.floor((T-k)/2+k);return A}function u(g,O){var k=g.length>O.length?g:O,T=g.length>O.length?O:g;if(k.length<4||T.length*2<k.length)return null;function A(U,G,q){for(var R=U.substring(q,q+Math.floor(U.length/4)),E=-1,C="",N,F,j,L;(E=G.indexOf(R,E+1))!=-1;){var M=l(U.substring(q),G.substring(E)),H=a(U.substring(0,q),G.substring(0,E));C.length<H+M&&(C=G.substring(E-H,E)+G.substring(E,E+M),N=U.substring(0,q-H),F=U.substring(q+M),j=G.substring(0,E-H),L=G.substring(E+M))}return C.length*2>=U.length?[N,F,j,L,C]:null}var P=A(k,T,Math.ceil(k.length/4)),x=A(k,T,Math.ceil(k.length/2)),S;if(!P&&!x)return null;x?P?S=P[4].length>x[4].length?P:x:S=x:S=P;var w,I,D,$;g.length>O.length?(w=S[0],I=S[1],D=S[2],$=S[3]):(D=S[0],$=S[1],w=S[2],I=S[3]);var B=S[4];return[w,I,D,$,B]}function v(g){g.push([s,""]);for(var O=0,k=0,T=0,A="",P="",x;O<g.length;)switch(g[O][0]){case i:T++,P+=g[O][1],O++;break;case o:k++,A+=g[O][1],O++;break;case s:k+T>1?(k!==0&&T!==0&&(x=l(P,A),x!==0&&(O-k-T>0&&g[O-k-T-1][0]==s?g[O-k-T-1][1]+=P.substring(0,x):(g.splice(0,0,[s,P.substring(0,x)]),O++),P=P.substring(x),A=A.substring(x)),x=a(P,A),x!==0&&(g[O][1]=P.substring(P.length-x)+g[O][1],P=P.substring(0,P.length-x),A=A.substring(0,A.length-x))),k===0?g.splice(O-T,k+T,[i,P]):T===0?g.splice(O-k,k+T,[o,A]):g.splice(O-k-T,k+T,[o,A],[i,P]),O=O-k-T+(k?1:0)+(T?1:0)+1):O!==0&&g[O-1][0]==s?(g[O-1][1]+=g[O][1],g.splice(O,1)):O++,T=0,k=0,A="",P="";break}g[g.length-1][1]===""&&g.pop();var S=!1;for(O=1;O<g.length-1;)g[O-1][0]==s&&g[O+1][0]==s&&(g[O][1].substring(g[O][1].length-g[O-1][1].length)==g[O-1][1]?(g[O][1]=g[O-1][1]+g[O][1].substring(0,g[O][1].length-g[O-1][1].length),g[O+1][1]=g[O-1][1]+g[O+1][1],g.splice(O-1,1),S=!0):g[O][1].substring(0,g[O+1][1].length)==g[O+1][1]&&(g[O-1][1]+=g[O+1][1],g[O][1]=g[O][1].substring(g[O+1][1].length)+g[O+1][1],g.splice(O+1,1),S=!0)),O++;S&&v(g)}var p=d;p.INSERT=i,p.DELETE=o,p.EQUAL=s,n.exports=p;function b(g,O){if(O===0)return[s,g];for(var k=0,T=0;T<g.length;T++){var A=g[T];if(A[0]===o||A[0]===s){var P=k+A[1].length;if(O===P)return[T+1,g];if(O<P){g=g.slice();var x=O-k,S=[A[0],A[1].slice(0,x)],w=[A[0],A[1].slice(x)];return g.splice(T,1,S,w),[T+1,g]}else k=P}}throw new Error("cursor_pos is out of bounds!")}function m(g,O){var k=b(g,O),T=k[1],A=k[0],P=T[A],x=T[A+1];if(P==null)return g;if(P[0]!==s)return g;if(x!=null&&P[1]+x[1]===x[1]+P[1])return T.splice(A,2,x,P),_(T,A,2);if(x!=null&&x[1].indexOf(P[1])===0){T.splice(A,2,[x[0],P[1]],[0,P[1]]);var S=x[1].slice(P[1].length);return S.length>0&&T.splice(A+2,0,[x[0],S]),_(T,A,3)}else return g}function y(g){for(var O=!1,k=function(x){return x.charCodeAt(0)>=56320&&x.charCodeAt(0)<=57343},T=function(x){return x.charCodeAt(x.length-1)>=55296&&x.charCodeAt(x.length-1)<=56319},A=2;A<g.length;A+=1)g[A-2][0]===s&&T(g[A-2][1])&&g[A-1][0]===o&&k(g[A-1][1])&&g[A][0]===i&&k(g[A][1])&&(O=!0,g[A-1][1]=g[A-2][1].slice(-1)+g[A-1][1],g[A][1]=g[A-2][1].slice(-1)+g[A][1],g[A-2][1]=g[A-2][1].slice(0,-1));if(!O)return g;for(var P=[],A=0;A<g.length;A+=1)g[A][1].length>0&&P.push(g[A]);return P}function _(g,O,k){for(var T=O+k-1;T>=0&&T>=O-1;T--)if(T+1<g.length){var A=g[T],P=g[T+1];A[0]===P[1]&&g.splice(T,2,[A[0],A[1]+P[1]])}return g}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var s=[];for(var d in i)s.push(d);return s}},function(n,t){var o=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=n.exports=o?i:s,t.supported=i;function i(d){return Object.prototype.toString.call(d)=="[object Arguments]"}t.unsupported=s;function s(d){return d&&typeof d=="object"&&typeof d.length=="number"&&Object.prototype.hasOwnProperty.call(d,"callee")&&!Object.prototype.propertyIsEnumerable.call(d,"callee")||!1}},function(n,t){var o=Object.prototype.hasOwnProperty,i="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(i=!1));function d(h,f,l){this.fn=h,this.context=f,this.once=l||!1}function c(){this._events=new s,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],l,a;if(this._eventsCount===0)return f;for(a in l=this._events)o.call(l,a)&&f.push(i?a.slice(1):a);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},c.prototype.listeners=function(f,l){var a=i?i+f:f,u=this._events[a];if(l)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var v=0,p=u.length,b=new Array(p);v<p;v++)b[v]=u[v].fn;return b},c.prototype.emit=function(f,l,a,u,v,p){var b=i?i+f:f;if(!this._events[b])return!1;var m=this._events[b],y=arguments.length,_,g;if(m.fn){switch(m.once&&this.removeListener(f,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,a),!0;case 4:return m.fn.call(m.context,l,a,u),!0;case 5:return m.fn.call(m.context,l,a,u,v),!0;case 6:return m.fn.call(m.context,l,a,u,v,p),!0}for(g=1,_=new Array(y-1);g<y;g++)_[g-1]=arguments[g];m.fn.apply(m.context,_)}else{var O=m.length,k;for(g=0;g<O;g++)switch(m[g].once&&this.removeListener(f,m[g].fn,void 0,!0),y){case 1:m[g].fn.call(m[g].context);break;case 2:m[g].fn.call(m[g].context,l);break;case 3:m[g].fn.call(m[g].context,l,a);break;case 4:m[g].fn.call(m[g].context,l,a,u);break;default:if(!_)for(k=1,_=new Array(y-1);k<y;k++)_[k-1]=arguments[k];m[g].fn.apply(m[g].context,_)}}return!0},c.prototype.on=function(f,l,a){var u=new d(l,a||this),v=i?i+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},c.prototype.once=function(f,l,a){var u=new d(l,a||this,!0),v=i?i+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},c.prototype.removeListener=function(f,l,a,u){var v=i?i+f:f;if(!this._events[v])return this;if(!l)return--this._eventsCount==0?this._events=new s:delete this._events[v],this;var p=this._events[v];if(p.fn)p.fn===l&&(!u||p.once)&&(!a||p.context===a)&&(--this._eventsCount==0?this._events=new s:delete this._events[v]);else{for(var b=0,m=[],y=p.length;b<y;b++)(p[b].fn!==l||u&&!p[b].once||a&&p[b].context!==a)&&m.push(p[b]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount==0?this._events=new s:delete this._events[v]}return this},c.prototype.removeAllListeners=function(f){var l;return f?(l=i?i+f:f,this._events[l]&&(--this._eventsCount==0?this._events=new s:delete this._events[l])):(this._events=new s,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=i,c.EventEmitter=c,typeof n!="undefined"&&(n.exports=c)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},s=function(){function W(K,Z){var J=[],Y=!0,le=!1,se=void 0;try{for(var ue=K[Symbol.iterator](),ze;!(Y=(ze=ue.next()).done)&&(J.push(ze.value),!(Z&&J.length===Z));Y=!0);}catch(tt){le=!0,se=tt}finally{try{!Y&&ue.return&&ue.return()}finally{if(le)throw se}}return J}return function(K,Z){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return W(K,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(K,Z){for(var J=0;J<Z.length;J++){var Y=Z[J];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(K,Y.key,Y)}}return function(K,Z,J){return Z&&W(K.prototype,Z),J&&W(K,J),K}}(),c=o(3),h=w(c),f=o(2),l=w(f),a=o(0),u=w(a),v=o(5),p=w(v),b=o(10),m=w(b),y=o(9),_=w(y),g=o(36),O=o(37),k=o(13),T=w(k),A=o(26),P=o(38),x=o(39),S=o(40);function w(W){return W&&W.__esModule?W:{default:W}}function I(W,K,Z){return K in W?Object.defineProperty(W,K,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[K]=Z,W}function D(W,K){if(!(W instanceof K))throw new TypeError("Cannot call a class as a function")}function $(W,K){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:W}function B(W,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);W.prototype=Object.create(K&&K.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(W,K):W.__proto__=K)}var U=(0,m.default)("quill:clipboard"),G="__ql-matcher",q=[[Node.TEXT_NODE,Ae],[Node.TEXT_NODE,ce],["br",Q],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,he],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,Fe],["li",oe],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",ne]],R=[g.AlignAttribute,P.DirectionAttribute].reduce(function(W,K){return W[K.keyName]=K,W},{}),E=[g.AlignStyle,O.BackgroundStyle,A.ColorStyle,P.DirectionStyle,x.FontStyle,S.SizeStyle].reduce(function(W,K){return W[K.keyName]=K,W},{}),C=function(W){B(K,W);function K(Z,J){D(this,K);var Y=$(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Z,J));return Y.quill.root.addEventListener("paste",Y.onPaste.bind(Y)),Y.container=Y.quill.addContainer("ql-clipboard"),Y.container.setAttribute("contenteditable",!0),Y.container.setAttribute("tabindex",-1),Y.matchers=[],q.concat(Y.options.matchers).forEach(function(le){var se=s(le,2),ue=se[0],ze=se[1];!J.matchVisual&&ze===he||Y.addMatcher(ue,ze)}),Y}return d(K,[{key:"addMatcher",value:function(J,Y){this.matchers.push([J,Y])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var Y=this.quill.getFormat(this.quill.selection.savedRange.index);if(Y[T.default.blotName]){var le=this.container.innerText;return this.container.innerHTML="",new l.default().insert(le,I({},T.default.blotName,Y[T.default.blotName]))}var se=this.prepareMatching(),ue=s(se,2),ze=ue[0],tt=ue[1],ye=M(this.container,ze,tt);return j(ye,`
|
|
56
|
+
`)&&ye.ops[ye.ops.length-1].attributes==null&&(ye=ye.compose(new l.default().retain(ye.length()-1).delete(1))),U.log("convert",this.container.innerHTML,ye),this.container.innerHTML="",ye}},{key:"dangerouslyPasteHTML",value:function(J,Y){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof J=="string")this.quill.setContents(this.convert(J),Y),this.quill.setSelection(0,p.default.sources.SILENT);else{var se=this.convert(Y);this.quill.updateContents(new l.default().retain(J).concat(se),le),this.quill.setSelection(J+se.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(J){var Y=this;if(!(J.defaultPrevented||!this.quill.isEnabled())){var le=this.quill.getSelection(),se=new l.default().retain(le.index),ue=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout(function(){se=se.concat(Y.convert()).delete(le.length),Y.quill.updateContents(se,p.default.sources.USER),Y.quill.setSelection(se.length()-le.length,p.default.sources.SILENT),Y.quill.scrollingContainer.scrollTop=ue,Y.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var J=this,Y=[],le=[];return this.matchers.forEach(function(se){var ue=s(se,2),ze=ue[0],tt=ue[1];switch(ze){case Node.TEXT_NODE:le.push(tt);break;case Node.ELEMENT_NODE:Y.push(tt);break;default:[].forEach.call(J.container.querySelectorAll(ze),function(ye){ye[G]=ye[G]||[],ye[G].push(tt)});break}}),[Y,le]}}]),K}(_.default);C.DEFAULTS={matchers:[],matchVisual:!0};function N(W,K,Z){return(typeof K=="undefined"?"undefined":i(K))==="object"?Object.keys(K).reduce(function(J,Y){return N(J,Y,K[Y])},W):W.reduce(function(J,Y){return Y.attributes&&Y.attributes[K]?J.push(Y):J.insert(Y.insert,(0,h.default)({},I({},K,Z),Y.attributes))},new l.default)}function F(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return W[K]||(W[K]=window.getComputedStyle(W))}function j(W,K){for(var Z="",J=W.ops.length-1;J>=0&&Z.length<K.length;--J){var Y=W.ops[J];if(typeof Y.insert!="string")break;Z=Y.insert+Z}return Z.slice(-1*K.length)===K}function L(W){if(W.childNodes.length===0)return!1;var K=F(W);return["block","list-item"].indexOf(K.display)>-1}function M(W,K,Z){return W.nodeType===W.TEXT_NODE?Z.reduce(function(J,Y){return Y(W,J)},new l.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(J,Y){var le=M(Y,K,Z);return Y.nodeType===W.ELEMENT_NODE&&(le=K.reduce(function(se,ue){return ue(Y,se)},le),le=(Y[G]||[]).reduce(function(se,ue){return ue(Y,se)},le)),J.concat(le)},new l.default):new l.default}function H(W,K,Z){return N(Z,W,!0)}function z(W,K){var Z=u.default.Attributor.Attribute.keys(W),J=u.default.Attributor.Class.keys(W),Y=u.default.Attributor.Style.keys(W),le={};return Z.concat(J).concat(Y).forEach(function(se){var ue=u.default.query(se,u.default.Scope.ATTRIBUTE);ue!=null&&(le[ue.attrName]=ue.value(W),le[ue.attrName])||(ue=R[se],ue!=null&&(ue.attrName===se||ue.keyName===se)&&(le[ue.attrName]=ue.value(W)||void 0),ue=E[se],ue!=null&&(ue.attrName===se||ue.keyName===se)&&(ue=E[se],le[ue.attrName]=ue.value(W)||void 0))}),Object.keys(le).length>0&&(K=N(K,le)),K}function V(W,K){var Z=u.default.query(W);if(Z==null)return K;if(Z.prototype instanceof u.default.Embed){var J={},Y=Z.value(W);Y!=null&&(J[Z.blotName]=Y,K=new l.default().insert(J,Z.formats(W)))}else typeof Z.formats=="function"&&(K=N(K,Z.blotName,Z.formats(W)));return K}function Q(W,K){return j(K,`
|
|
57
57
|
`)||K.insert(`
|
|
58
58
|
`),K}function ne(){return new l.default}function oe(W,K){var Z=u.default.query(W);if(Z==null||Z.blotName!=="list-item"||!j(K,`
|
|
59
59
|
`))return K;for(var J=-1,Y=W.parentNode;!Y.classList.contains("ql-clipboard");)(u.default.query(Y)||{}).blotName==="list"&&(J+=1),Y=Y.parentNode;return J<=0?K:K.compose(new l.default().retain(K.length()-1).retain(1,{indent:J}))}function ce(W,K){return j(K,`
|
|
@@ -61,5 +61,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
61
|
`),K}function he(W,K){if(L(W)&&W.nextElementSibling!=null&&!j(K,`
|
|
62
62
|
|
|
63
63
|
`)){var Z=W.offsetHeight+parseFloat(F(W).marginTop)+parseFloat(F(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+Z*1.5&&K.insert(`
|
|
64
|
-
`)}return K}function Fe(W,K){var Z={},J=W.style||{};return J.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),J.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=I(K,Z)),parseFloat(J.textIndent||0)>0&&(K=new l.default().insert(" ").concat(K)),K}function Ae(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!F(W.parentNode).whiteSpace.startsWith("pre")){var J=function(le,se){return se=se.replace(/[^\u00a0]/g,""),se.length<1&&le?" ":se};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,J.bind(J,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,J.bind(J,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,J.bind(J,!1)))}return K.insert(Z)}t.default=C,t.matchAttributor=z,t.matchBlot=V,t.matchNewline=ce,t.matchSpacing=he,t.matchText=Ae},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(6),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(m){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(c.default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function S(w,N){var D=[],$=!0,B=!1,U=void 0;try{for(var G=w[Symbol.iterator](),q;!($=(q=G.next()).done)&&(D.push(q.value),!(N&&D.length===N));$=!0);}catch(R){B=!0,U=R}finally{try{!$&&G.return&&G.return()}finally{if(B)throw U}}return D}return function(w,N){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return S(w,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(w,N){for(var D=0;D<N.length;D++){var $=N[D];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(w,$.key,$)}}return function(w,N,D){return N&&S(w.prototype,N),D&&S(w,D),w}}(),d=o(2),c=m(d),h=o(0),f=m(h),l=o(5),a=m(l),u=o(10),v=m(u),p=o(9),b=m(p);function m(S){return S&&S.__esModule?S:{default:S}}function g(S,w,N){return w in S?Object.defineProperty(S,w,{value:N,enumerable:!0,configurable:!0,writable:!0}):S[w]=N,S}function _(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function y(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function O(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var k=(0,v.default)("quill:toolbar"),T=function(S){O(w,S);function w(N,D){_(this,w);var $=y(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N,D));if(Array.isArray($.options.container)){var B=document.createElement("div");P(B,$.options.container),N.container.parentNode.insertBefore(B,N.container),$.container=B}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var U;return U=k.error("Container required for toolbar",$.options),y($,U)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(G){$.addHandler(G,$.options.handlers[G])}),[].forEach.call($.container.querySelectorAll("button, select"),function(G){$.attach(G)}),$.quill.on(a.default.events.EDITOR_CHANGE,function(G,q){G===a.default.events.SELECTION_CHANGE&&$.update(q)}),$.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var G=$.quill.selection.getRange(),q=i(G,1),R=q[0];$.update(R)}),$}return s(w,[{key:"addHandler",value:function(D,$){this.handlers[D]=$}},{key:"attach",value:function(D){var $=this,B=[].find.call(D.classList,function(G){return G.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),D.tagName==="BUTTON"&&D.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){k.warn("ignoring attaching to disabled format",B,D);return}if(f.default.query(B)==null){k.warn("ignoring attaching to nonexistent format",B,D);return}}var U=D.tagName==="SELECT"?"change":"click";D.addEventListener(U,function(G){var q=void 0;if(D.tagName==="SELECT"){if(D.selectedIndex<0)return;var R=D.options[D.selectedIndex];R.hasAttribute("selected")?q=!1:q=R.value||!1}else D.classList.contains("ql-active")?q=!1:q=D.value||!D.hasAttribute("value"),G.preventDefault();$.quill.focus();var E=$.quill.selection.getRange(),C=i(E,1),I=C[0];if($.handlers[B]!=null)$.handlers[B].call($,q);else if(f.default.query(B).prototype instanceof f.default.Embed){if(q=prompt("Enter "+B),!q)return;$.quill.updateContents(new c.default().retain(I.index).delete(I.length).insert(g({},B,q)),a.default.sources.USER)}else $.quill.format(B,q,a.default.sources.USER);$.update(I)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var $=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var U=i(B,2),G=U[0],q=U[1];if(q.tagName==="SELECT"){var R=void 0;if(D==null)R=null;else if($[G]==null)R=q.querySelector("option[selected]");else if(!Array.isArray($[G])){var E=$[G];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),R=q.querySelector('option[value="'+E+'"]')}R==null?(q.value="",q.selectedIndex=-1):R.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var C=$[G]===q.getAttribute("value")||$[G]!=null&&$[G].toString()===q.getAttribute("value")||$[G]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",C)}else q.classList.toggle("ql-active",$[G]!=null)})}}]),w}(b.default);T.DEFAULTS={};function A(S,w,N){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+w),N!=null&&(D.value=N),S.appendChild(D)}function P(S,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(N){var D=document.createElement("span");D.classList.add("ql-formats"),N.forEach(function($){if(typeof $=="string")A(D,$);else{var B=Object.keys($)[0],U=$[B];Array.isArray(U)?x(D,B,U):A(D,B,U)}}),S.appendChild(D)})}function x(S,w,N){var D=document.createElement("select");D.classList.add("ql-"+w),N.forEach(function($){var B=document.createElement("option");$!==!1?B.setAttribute("value",$):B.setAttribute("selected","selected"),D.appendChild(B)}),S.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var w=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function($){f.default.query($,f.default.Scope.INLINE)!=null&&w.quill.format($,!1)})}else this.quill.removeFormat(N,a.default.sources.USER)},direction:function(w){var N=this.quill.getFormat().align;w==="rtl"&&N==null?this.quill.format("align","right",a.default.sources.USER):!w&&N==="right"&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",w,a.default.sources.USER)},indent:function(w){var N=this.quill.getSelection(),D=this.quill.getFormat(N),$=parseInt(D.indent||0);if(w==="+1"||w==="-1"){var B=w==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",$+B,a.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,a.default.sources.USER)},list:function(w){var N=this.quill.getSelection(),D=this.quill.getFormat(N);w==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",w,a.default.sources.USER)}}},t.default=T,t.addControls=P},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(28),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){f(this,p);var g=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.label.innerHTML=m,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),g}return i(p,[{key:"buildItem",value:function(m){var g=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,m);return g.style.backgroundColor=m.getAttribute("value")||"",g}},{key:"selectItem",value:function(m,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g);var _=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=y:_.style.fill=y)}}]),p}(c.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(28),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){f(this,p);var g=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(p,[{key:"selectItem",value:function(m,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),p}(c.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,f){for(var l=0;l<f.length;l++){var a=f[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,f,l){return f&&c(h.prototype,f),l&&c(h,l),h}}();function s(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(h,f){var l=this;s(this,c),this.quill=h,this.boundsContainer=f||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var l=f.left+f.width/2-this.root.offsetWidth/2,a=f.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>u.right&&(p=u.right-v.right,this.root.style.left=l+p+"px"),v.left<u.left&&(p=u.left-v.left,this.root.style.left=l+p+"px"),v.bottom>u.bottom){var b=v.bottom-v.top,m=f.bottom-f.top+b;this.root.style.top=a-m+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var N=[],D=!0,$=!1,B=void 0;try{for(var U=S[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(N.push(G.value),!(w&&N.length===w));D=!0);}catch(q){$=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if($)throw B}}return N}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function x(S,w,N){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var $=Object.getPrototypeOf(S);return $===null?void 0:x($,w,N)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(N)}},d=function(){function x(S,w){for(var N=0;N<w.length;N++){var D=w[N];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,N){return w&&x(S.prototype,w),N&&x(S,N),S}}(),c=o(3),h=_(c),f=o(8),l=_(f),a=o(43),u=_(a),v=o(27),p=_(v),b=o(15),m=o(41),g=_(m);function _(x){return x&&x.__esModule?x:{default:x}}function y(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function O(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function k(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(x){k(S,x);function S(w,N){y(this,S),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=T);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,N));return D.quill.container.classList.add("ql-snow"),D}return d(S,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),g.default),this.tooltip=new P(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,$){N.handlers.link.call(N,!$.format.link)})}}]),S}(u.default);A.DEFAULTS=(0,h.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var w=this.quill.getSelection();if(w==null||w.length==0)return;var N=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var D=this.quill.theme.tooltip;D.edit("link",N)}else this.quill.format("link",!1)}}}}});var P=function(x){k(S,x);function S(w,N){y(this,S);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,N));return D.preview=D.root.querySelector("a.ql-preview"),D}return d(S,[{key:"listen",value:function(){var N=this;s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(N.linkRange!=null){var $=N.linkRange;N.restoreFocus(),N.quill.formatText($,"link",!1,l.default.sources.USER),delete N.linkRange}D.preventDefault(),N.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(D,$,B){if(D!=null){if(D.length===0&&B===l.default.sources.USER){var U=N.quill.scroll.descendant(p.default,D.index),G=i(U,2),q=G[0],R=G[1];if(q!=null){N.linkRange=new b.Range(D.index-R,q.length());var E=p.default.formats(q.domNode);N.preview.textContent=E,N.preview.setAttribute("href",E),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S}(a.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),s=Y(i),d=o(36),c=o(38),h=o(64),f=o(65),l=Y(f),a=o(66),u=Y(a),v=o(67),p=Y(v),b=o(37),m=o(26),g=o(39),_=o(40),y=o(56),O=Y(y),k=o(68),T=Y(k),A=o(27),P=Y(A),x=o(69),S=Y(x),w=o(70),N=Y(w),D=o(71),$=Y(D),B=o(72),U=Y(B),G=o(73),q=Y(G),R=o(13),E=Y(R),C=o(74),I=Y(C),F=o(75),j=Y(F),L=o(57),M=Y(L),H=o(41),z=Y(H),V=o(28),Q=Y(V),ne=o(59),oe=Y(ne),ce=o(60),he=Y(ce),Fe=o(61),Ae=Y(Fe),W=o(108),K=Y(W),Z=o(62),J=Y(Z);function Y(le){return le&&le.__esModule?le:{default:le}}s.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":d.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":d.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":d.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":R.Code,"formats/italic":T.default,"formats/link":P.default,"formats/script":S.default,"formats/strike":N.default,"formats/underline":$.default,"formats/image":U.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":I.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":J.default,"ui/icons":z.default,"ui/picker":Q.default,"ui/icon-picker":he.default,"ui/color-picker":oe.default,"ui/tooltip":Ae.default},!0),t.default=s.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),s=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},d=o(0),c=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function f(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var u=function(p){a(b,p);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(g,_){if(_==="+1"||_==="-1"){var y=this.value(g)||0;_=_==="+1"?y+1:y-1}return _===0?(this.remove(g),!0):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,g,_)}},{key:"canAdd",value:function(g,_){return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,_)||s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,parseInt(_))}},{key:"value",value:function(g){return parseInt(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,g))||void 0}}]),b}(c.default.Attributor.Class),v=new u("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function u(v,p){for(var b=0;b<p.length;b++){var m=p[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,p,b){return p&&u(v.prototype,p),b&&u(v,b),v}}(),s=o(4),d=c(s);function c(u){return u&&u.__esModule?u:{default:u}}function h(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}function f(u,v){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:u}function l(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(u,v):u.__proto__=v)}var a=function(u){l(v,u);function v(){return h(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(d.default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function y(O,k){for(var T=0;T<k.length;T++){var A=k[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,k,T){return k&&y(O.prototype,k),T&&y(O,T),O}}(),s=function y(O,k,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,k);if(A===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:y(P,k,T)}else{if("value"in A)return A.value;var x=A.get;return x===void 0?void 0:x.call(T)}},d=o(0),c=u(d),h=o(4),f=u(h),l=o(25),a=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function v(y,O,k){return O in y?Object.defineProperty(y,O,{value:k,enumerable:!0,configurable:!0,writable:!0}):y[O]=k,y}function p(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}function b(y,O){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:y}function m(y,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);y.prototype=Object.create(O&&O.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(y,O):y.__proto__=O)}var g=function(y){m(O,y);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(c.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(f.default);g.blotName="list-item",g.tagName="LI";var _=function(y){m(O,y),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",P=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&P.setAttribute("data-checked",T==="checked"),P}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(k){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k)),A=function(x){if(x.target.parentNode===k){var S=T.statics.formats(k),w=c.default.find(x.target);S==="checked"?w.format("list","unchecked"):S==="unchecked"&&w.format("list","checked")}};return k.addEventListener("touchstart",A),k.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof g)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var P=A==null?this.length():A.offset(this),x=this.split(P);x.parent.insertBefore(T,x)}}},{key:"optimize",value:function(T){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=c.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(a.default);_.blotName="list",_.scope=c.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[g],t.ListItem=g,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(6),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),p}(c.default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var k=y.get;return k===void 0?void 0:k.call(_)}},d=o(0),c=f(d),h=o(27);function f(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(c.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var k=y.get;return k===void 0?void 0:k.call(_)}},d=o(4),c=o(27),h=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(d.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(y,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,k){return O&&_(y.prototype,O),k&&_(y,k),y}}(),s=function _(y,O,k){y===null&&(y=Function.prototype);var T=Object.getOwnPropertyDescriptor(y,O);if(T===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:_(A,O,k)}else{if("value"in T)return T.value;var P=T.get;return P===void 0?void 0:P.call(k)}},d=o(35),c=u(d),h=o(5),f=u(h),l=o(9),a=u(l);function u(_){return _&&_.__esModule?_:{default:_}}function v(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function p(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function b(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var m=function(_){b(y,_);function y(){return v(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,null,[{key:"create",value:function(k){var T=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",k)),T}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),y}(c.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=function(_){b(y,_),i(y,null,[{key:"register",value:function(){f.default.register(m,!0)}}]);function y(){v(this,y);var O=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return y}(a.default);t.FormulaBlot=m,t.default=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function k(T,A){for(var P=0;P<A.length;P++){var x=A[P];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(T,x.key,x)}}return function(T,A,P){return A&&k(T.prototype,A),P&&k(T,P),T}}(),s=function k(T,A,P){T===null&&(T=Function.prototype);var x=Object.getOwnPropertyDescriptor(T,A);if(x===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:k(S,A,P)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(P)}},d=o(0),c=p(d),h=o(5),f=p(h),l=o(9),a=p(l),u=o(13),v=p(u);function p(k){return k&&k.__esModule?k:{default:k}}function b(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function m(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function g(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var _=function(k){g(T,k);function T(){return b(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var x=this.domNode.textContent;this.cachedText!==x&&((x.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(x),this.domNode.normalize(),this.attach()),this.cachedText=x)}}]),T}(v.default);_.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),O=function(k){g(T,k),i(T,null,[{key:"register",value:function(){f.default.register(y,!0),f.default.register(_,!0)}}]);function T(A,P){b(this,T);var x=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,P));if(typeof x.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return x.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){x.highlight(),S=null},x.options.interval)}),x.highlight(),x}return i(T,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(S){S.highlight(P.options.highlight)}),this.quill.update(f.default.sources.SILENT),x!=null&&this.quill.setSelection(x,f.default.sources.SILENT)}}}]),T}(a.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var T=window.hljs.highlightAuto(k);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=y,t.default=O},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,P,x){A===null&&(A=Function.prototype);var S=Object.getOwnPropertyDescriptor(A,P);if(S===void 0){var w=Object.getPrototypeOf(A);return w===null?void 0:T(w,P,x)}else{if("value"in S)return S.value;var N=S.get;return N===void 0?void 0:N.call(x)}},s=function(){function T(A,P){for(var x=0;x<P.length;x++){var S=P[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,P,x){return P&&T(A.prototype,P),x&&T(A,x),A}}(),d=o(3),c=b(d),h=o(8),f=b(h),l=o(43),a=b(l),u=o(15),v=o(41),p=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function g(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(P,x){m(this,A),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=y);var S=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,x));return S.quill.container.classList.add("ql-bubble"),S}return s(A,[{key:"extendToolbar",value:function(x){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(x.container),this.buildButtons([].slice.call(x.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(x.container.querySelectorAll("select")),p.default)}}]),A}(a.default);O.DEFAULTS=(0,c.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(T){_(A,T);function A(P,x){m(this,A);var S=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,x));return S.quill.on(f.default.events.EDITOR_CHANGE,function(w,N,D,$){if(w===f.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&$===f.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var B=S.quill.getLines(N.index,N.length);if(B.length===1)S.position(S.quill.getBounds(N));else{var U=B[B.length-1],G=S.quill.getIndex(U),q=Math.min(U.length()-1,N.index+N.length-G),R=S.quill.getBounds(new u.Range(G,q));S.position(R)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return s(A,[{key:"listen",value:function(){var x=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){x.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!x.root.classList.contains("ql-hidden")){var S=x.quill.getSelection();S!=null&&x.position(x.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(x){var S=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,x),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",S===0)return S;w.style.marginLeft=-1*S-w.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=k,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(co);var ho=Rr(co.exports),zf="",Wf="",Gf="",Bu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},qu=[],Kf="";const Uu={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model,composition:!1}},methods:{handleRenderInput:On(300,e=>{const r=e.handleGetVal();e.composition||(e.modelForm=r)}),handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new ho(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("inputtext",r),this.$emit("onBlur",r)}},handleInput(e,r,n){this.handleRenderInput(this)},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")},handleCompositionstart(){this.composition=!0},handleCompositionend(){this.composition=!1}},mounted(){this.quillRef=new ho(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),document.querySelector(".ql-editor").addEventListener("compositionstart",this.handleCompositionstart),document.querySelector(".ql-editor").addEventListener("compositionend",this.handleCompositionend),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){var e,r;(e=document.querySelector(".ql-editor"))==null||e.removeEventListener("compositionstart",this.handleCompositionstart),(r=document.querySelector(".ql-editor"))==null||r.removeEventListener("compositionend",this.handleCompositionend),this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e,r){this.modelForm!=e&&(this.modelForm=e,this.handleSetValue(e||""))},modelForm(e){this.$emit("inputtext",e)}}},po={};var Hu=Se(Uu,Bu,qu,!1,zu,"009bd892",null,null);function zu(e){for(let r in po)this[r]=po[r]}var Dn=function(){return Hu.exports}();Dn.install=e=>{e.component(Dn.name,Dn)};const vo=Dn;var Wu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[n("div",{staticStyle:{position:"fixed",border:"1px solid #4d6bfe","z-index":"99999",right:"10px","background-color":"#FFF",bottom:"100px","border-radius":"50%",height:"40px",width:"40px",display:"flex","justify-content":"center","align-items":"center"},attrs:{id:"deepseek"+e.idKey},on:{click:function(t){e.show=!0}}},[n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})])]),n("el-drawer",e._b({attrs:{title:"Deepseek",visible:e.show,size:"500px",modal:!1},on:{"update:visible":function(t){e.show=t}}},"el-drawer",e.$attrs,!1),[n("div",{staticStyle:{padding:"10px",height:"100%",display:"flex","flex-direction":"column"}},[n("div",{staticStyle:{flex:"1","border-bottom":"1px solid #f1f1f1",overflow:"auto","margin-bottom":"15px"}},e._l(e.messageList,function(t){return n("div",{key:t.id,staticClass:"chat--item",class:{"chat--ai":t.role!="user"}},[n("div",{staticClass:"chat--flag"},[t.role!="user"?n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})]):n("svg",{staticClass:"icon",attrs:{t:"1745995639969",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14790",width:"24",height:"24"}},[n("path",{attrs:{d:"M510.112324 1023.82403H168.810986C117.23585 1023.82403 72.075612 979.959569 72.075612 929.952164c0-114.604302 118.971552-283.631251 240.166721-341.221352a29.738889 29.738889 0 0 1 25.739576 53.622783l-0.175969 0.079987C228.672697 694.360657 131.537392 846.462514 131.537392 929.952164c0 17.357017 18.44483 34.378091 37.241599 34.378092h341.989221a29.738889 29.738889 0 1 1 0 59.477777l-0.687882-0.015997h0.031994z","p-id":"14791",fill:"#43bd85"}}),n("path",{attrs:{d:"M851.413663 1023.82403H509.456437a29.738889 29.738889 0 1 1 0-59.477777l0.687882 0.015997h-0.031995 341.301339c18.812767 0 37.241599-17.053069 37.241599-34.378091 0-83.505647-97.10331-235.591508-206.268547-287.518583a29.754886 29.754886 0 1 1 25.77157-53.638781l-0.175969-0.079986c121.211167 57.670088 240.182719 226.681039 240.182718 341.221353 0 50.007405-45.192233 93.871866-96.735373 93.871865zM514.55956 584.66751c-161.188296 0-292.333755-131.145459-292.333755-292.333755S353.371264 0 514.55956 0s292.36575 131.145459 292.36575 292.333755-131.177454 292.333755-292.36575 292.333755z m0-525.189733c-128.40993 0-232.855978 104.462046-232.855978 232.855978s104.462046 232.871975 232.855978 232.871975 232.855978-104.462046 232.855978-232.855978S642.953492 59.477777 514.55956 59.477777z","p-id":"14792",fill:"#43bd85"}}),n("path",{attrs:{d:"M347.004359 307.211198a14.877443 14.877443 0 0 1-14.877443-14.877443c0.127978-100.702692 81.729953-182.304666 182.416647-182.416647H515.02348a14.877443 14.877443 0 1 1 0 29.722891l-0.479917-0.015997h0.031994c-84.289513 0.111981-152.597772 68.404243-152.693755 152.693756v0.031994a14.877443 14.877443 0 0 1-14.861446 14.861446zM377.847058 352.387433v0.063989a15.037415 15.037415 0 1 1-15.021419-15.021418h0.047992a15.037415 15.037415 0 0 1 14.989424 14.973427z","p-id":"14793",fill:"#43bd85"}})])]),n("pre",{domProps:{textContent:e._s(t.content)}})])}),0),n("div",[n("div",{staticStyle:{"margin-bottom":"5px"}},[n("el-button",{attrs:{type:"primary",size:"mini",loading:e.loading},on:{click:e.handleSend}},[e._v(e._s(e.loading?"\u8BF7\u7A0D\u7B49":"\u53D1\u9001"))])],1),n("el-input",{attrs:{type:"textarea",placeholder:"\u6309Enter\u53EF\u53D1\u9001\u3002",readonly:e.loading},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSend(t)}},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1)])])],1)},Gu=[],Vf="";const Ku={name:"ComDeepseek",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"}},data(){return{show:!1,message:"",messageList:[],loading:!1,idKey:new Date().getTime()}},mounted(){new Ur(`#deepseek${this.idKey}`)},methods:{handleSend(){console.log(this.$UICONFIG,this.$http),this.messageList.push({content:this.message,role:"user",id:new Date().getTime()}),this.$nextTick().then(()=>{this.message=""}),this.loading=!0,this.$http.post(this.$UICONFIG.deepseekApi,{message:this.message}).then(e=>{if(e.code!=1)return this.$message.warning(e.mes||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.messageList.push(Ve(ve({},e.data),{id:new Date().getTime()})),this.loading=!1})},handleClose(){this.show=!1,this.$emit("close"),this.$emit("update:visible",!1)}}},mo={};var Vu=Se(Ku,Wu,Gu,!1,Yu,"4309f316",null,null);function Yu(e){for(let r in mo)this[r]=mo[r]}var $n=function(){return Vu.exports}();$n.install=e=>{e.component($n.name,$n)};const yo=$n;var Xu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},Zu=[];const Ju={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},go={};var Qu=Se(Ju,Xu,Zu,!1,ef,null,null,null);function ef(e){for(let r in go)this[r]=go[r]}var tf=function(){return Qu.exports}();const nf=Re.default.extend(tf);var rf={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),d=new nf({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:s,fullscreen:!1}});e.instance=d,e.mask=d.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},of=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},af=[],Xf="";const Vt={confirm:"confirm",cancel:"cancel"},lf={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=Ve(ve({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(Vt.cancel)},triggerCallBack(e){const r={[Vt.confirm]:"beforeConfirm",[Vt.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===Vt.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(Vt.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},bo={};var sf=Se(lf,of,af,!1,uf,null,null,null);function uf(e){for(let r in bo)this[r]=bo[r]}var ff=function(){return sf.exports}();const cf={title:"",items:[]},df=Re.default.extend(ff);let _o,Yt,Tr=[];const hf=()=>{Yt=new df({el:document.createElement("div")})},pf=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},vf=e=>{const r=pf(e.items);Object.entries(Ve(ve({},e),{formData:r})).forEach(([n,t])=>{Yt[n]=t}),document.body.appendChild(Yt.$el),Re.default.nextTick(()=>{Yt.visible=!0})},mf=()=>{Yt||hf(),Tr.length>0&&(_o=Tr.shift(),vf(_o))},yf=e=>new Promise((r,n)=>{Tr.push(Ve(ve(ve({},cf),e),{resolve:r,reject:n})),mf()}),gf=[kr,Ir,Lr,$r,zr,Vr,Zr,wi,ao,so,fo,vo,yo],Oo={version:"dev",install:(e,r={config:{}})=>{gf.forEach(o=>e.component(o.name,o));const n={tablePreset:{separator:"@",presetPropMap:{image(o,{field:i,params:s}){const d=o[i].split("|"),c=s.size||59;return["com-image",{attrs:{src:d,size:c,lazy:!0}}]},link(o,{field:i,params:s}){const d=o[i];let{target:c,href:h,type:f,underline:l}=s;return c=c||"_blank",h=o[h]||d,f=f||"primary",l=!!l,["el-link",{attrs:{target:c,href:h,type:f,underline:l}},d]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=ve(ve({},n),r.config),Object.entries(rf).forEach(([o,i])=>{e.directive(o,i)}),e.prototype.$formDialog=yf,e.prototype.$jump=(o,i="_blank")=>{window.open(o,i)};const t=new e;e.prototype.$toChildren=t},ComTemplate:kr,ComMenu:Ir,ComTabs:Lr,ComTool:$r,ComDialog:zr,ComFormItem:Vr,ComOperation:Zr,ComSearch:wi,ComTable:ao,ComImage:so,ComContainer:fo,ComEditor:vo,ComDeepseek:yo};try{Oo.version=require("../package.json").version}catch{console.log("no require")}return Oo});
|
|
64
|
+
`)}return K}function Fe(W,K){var Z={},J=W.style||{};return J.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),J.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=N(K,Z)),parseFloat(J.textIndent||0)>0&&(K=new l.default().insert(" ").concat(K)),K}function Ae(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!F(W.parentNode).whiteSpace.startsWith("pre")){var J=function(le,se){return se=se.replace(/[^\u00a0]/g,""),se.length<1&&le?" ":se};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,J.bind(J,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,J.bind(J,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,J.bind(J,!1)))}return K.insert(Z)}t.default=C,t.matchAttributor=z,t.matchBlot=V,t.matchNewline=ce,t.matchSpacing=he,t.matchText=Ae},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(6),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(m){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(c.default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function S(w,I){var D=[],$=!0,B=!1,U=void 0;try{for(var G=w[Symbol.iterator](),q;!($=(q=G.next()).done)&&(D.push(q.value),!(I&&D.length===I));$=!0);}catch(R){B=!0,U=R}finally{try{!$&&G.return&&G.return()}finally{if(B)throw U}}return D}return function(w,I){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return S(w,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(w,I){for(var D=0;D<I.length;D++){var $=I[D];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(w,$.key,$)}}return function(w,I,D){return I&&S(w.prototype,I),D&&S(w,D),w}}(),d=o(2),c=m(d),h=o(0),f=m(h),l=o(5),a=m(l),u=o(10),v=m(u),p=o(9),b=m(p);function m(S){return S&&S.__esModule?S:{default:S}}function y(S,w,I){return w in S?Object.defineProperty(S,w,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[w]=I,S}function _(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function g(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function O(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var k=(0,v.default)("quill:toolbar"),T=function(S){O(w,S);function w(I,D){_(this,w);var $=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,I,D));if(Array.isArray($.options.container)){var B=document.createElement("div");P(B,$.options.container),I.container.parentNode.insertBefore(B,I.container),$.container=B}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var U;return U=k.error("Container required for toolbar",$.options),g($,U)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(G){$.addHandler(G,$.options.handlers[G])}),[].forEach.call($.container.querySelectorAll("button, select"),function(G){$.attach(G)}),$.quill.on(a.default.events.EDITOR_CHANGE,function(G,q){G===a.default.events.SELECTION_CHANGE&&$.update(q)}),$.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var G=$.quill.selection.getRange(),q=i(G,1),R=q[0];$.update(R)}),$}return s(w,[{key:"addHandler",value:function(D,$){this.handlers[D]=$}},{key:"attach",value:function(D){var $=this,B=[].find.call(D.classList,function(G){return G.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),D.tagName==="BUTTON"&&D.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){k.warn("ignoring attaching to disabled format",B,D);return}if(f.default.query(B)==null){k.warn("ignoring attaching to nonexistent format",B,D);return}}var U=D.tagName==="SELECT"?"change":"click";D.addEventListener(U,function(G){var q=void 0;if(D.tagName==="SELECT"){if(D.selectedIndex<0)return;var R=D.options[D.selectedIndex];R.hasAttribute("selected")?q=!1:q=R.value||!1}else D.classList.contains("ql-active")?q=!1:q=D.value||!D.hasAttribute("value"),G.preventDefault();$.quill.focus();var E=$.quill.selection.getRange(),C=i(E,1),N=C[0];if($.handlers[B]!=null)$.handlers[B].call($,q);else if(f.default.query(B).prototype instanceof f.default.Embed){if(q=prompt("Enter "+B),!q)return;$.quill.updateContents(new c.default().retain(N.index).delete(N.length).insert(y({},B,q)),a.default.sources.USER)}else $.quill.format(B,q,a.default.sources.USER);$.update(N)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var $=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var U=i(B,2),G=U[0],q=U[1];if(q.tagName==="SELECT"){var R=void 0;if(D==null)R=null;else if($[G]==null)R=q.querySelector("option[selected]");else if(!Array.isArray($[G])){var E=$[G];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),R=q.querySelector('option[value="'+E+'"]')}R==null?(q.value="",q.selectedIndex=-1):R.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var C=$[G]===q.getAttribute("value")||$[G]!=null&&$[G].toString()===q.getAttribute("value")||$[G]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",C)}else q.classList.toggle("ql-active",$[G]!=null)})}}]),w}(b.default);T.DEFAULTS={};function A(S,w,I){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+w),I!=null&&(D.value=I),S.appendChild(D)}function P(S,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(I){var D=document.createElement("span");D.classList.add("ql-formats"),I.forEach(function($){if(typeof $=="string")A(D,$);else{var B=Object.keys($)[0],U=$[B];Array.isArray(U)?x(D,B,U):A(D,B,U)}}),S.appendChild(D)})}function x(S,w,I){var D=document.createElement("select");D.classList.add("ql-"+w),I.forEach(function($){var B=document.createElement("option");$!==!1?B.setAttribute("value",$):B.setAttribute("selected","selected"),D.appendChild(B)}),S.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var w=this,I=this.quill.getSelection();if(I!=null)if(I.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function($){f.default.query($,f.default.Scope.INLINE)!=null&&w.quill.format($,!1)})}else this.quill.removeFormat(I,a.default.sources.USER)},direction:function(w){var I=this.quill.getFormat().align;w==="rtl"&&I==null?this.quill.format("align","right",a.default.sources.USER):!w&&I==="right"&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",w,a.default.sources.USER)},indent:function(w){var I=this.quill.getSelection(),D=this.quill.getFormat(I),$=parseInt(D.indent||0);if(w==="+1"||w==="-1"){var B=w==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",$+B,a.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,a.default.sources.USER)},list:function(w){var I=this.quill.getSelection(),D=this.quill.getFormat(I);w==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",w,a.default.sources.USER)}}},t.default=T,t.addControls=P},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(28),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){f(this,p);var y=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return y.label.innerHTML=m,y.container.classList.add("ql-color-picker"),[].slice.call(y.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),y}return i(p,[{key:"buildItem",value:function(m){var y=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,m);return y.style.backgroundColor=m.getAttribute("value")||"",y}},{key:"selectItem",value:function(m,y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,y);var _=this.label.querySelector(".ql-color-label"),g=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=g:_.style.fill=g)}}]),p}(c.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(28),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){f(this,p);var y=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return y.container.classList.add("ql-icon-picker"),[].forEach.call(y.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),y.defaultItem=y.container.querySelector(".ql-selected"),y.selectItem(y.defaultItem),y}return i(p,[{key:"selectItem",value:function(m,y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,y),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),p}(c.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,f){for(var l=0;l<f.length;l++){var a=f[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,f,l){return f&&c(h.prototype,f),l&&c(h,l),h}}();function s(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(h,f){var l=this;s(this,c),this.quill=h,this.boundsContainer=f||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var l=f.left+f.width/2-this.root.offsetWidth/2,a=f.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>u.right&&(p=u.right-v.right,this.root.style.left=l+p+"px"),v.left<u.left&&(p=u.left-v.left,this.root.style.left=l+p+"px"),v.bottom>u.bottom){var b=v.bottom-v.top,m=f.bottom-f.top+b;this.root.style.top=a-m+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var I=[],D=!0,$=!1,B=void 0;try{for(var U=S[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(I.push(G.value),!(w&&I.length===w));D=!0);}catch(q){$=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if($)throw B}}return I}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function x(S,w,I){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var $=Object.getPrototypeOf(S);return $===null?void 0:x($,w,I)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(I)}},d=function(){function x(S,w){for(var I=0;I<w.length;I++){var D=w[I];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,I){return w&&x(S.prototype,w),I&&x(S,I),S}}(),c=o(3),h=_(c),f=o(8),l=_(f),a=o(43),u=_(a),v=o(27),p=_(v),b=o(15),m=o(41),y=_(m);function _(x){return x&&x.__esModule?x:{default:x}}function g(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function O(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function k(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(x){k(S,x);function S(w,I){g(this,S),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=T);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,I));return D.quill.container.classList.add("ql-snow"),D}return d(S,[{key:"extendToolbar",value:function(I){I.container.classList.add("ql-snow"),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),y.default),this.tooltip=new P(this.quill,this.options.bounds),I.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,$){I.handlers.link.call(I,!$.format.link)})}}]),S}(u.default);A.DEFAULTS=(0,h.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var w=this.quill.getSelection();if(w==null||w.length==0)return;var I=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(I)&&I.indexOf("mailto:")!==0&&(I="mailto:"+I);var D=this.quill.theme.tooltip;D.edit("link",I)}else this.quill.format("link",!1)}}}}});var P=function(x){k(S,x);function S(w,I){g(this,S);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,I));return D.preview=D.root.querySelector("a.ql-preview"),D}return d(S,[{key:"listen",value:function(){var I=this;s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){I.root.classList.contains("ql-editing")?I.save():I.edit("link",I.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(I.linkRange!=null){var $=I.linkRange;I.restoreFocus(),I.quill.formatText($,"link",!1,l.default.sources.USER),delete I.linkRange}D.preventDefault(),I.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(D,$,B){if(D!=null){if(D.length===0&&B===l.default.sources.USER){var U=I.quill.scroll.descendant(p.default,D.index),G=i(U,2),q=G[0],R=G[1];if(q!=null){I.linkRange=new b.Range(D.index-R,q.length());var E=p.default.formats(q.domNode);I.preview.textContent=E,I.preview.setAttribute("href",E),I.show(),I.position(I.quill.getBounds(I.linkRange));return}}else delete I.linkRange;I.hide()}})}},{key:"show",value:function(){s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S}(a.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),s=Y(i),d=o(36),c=o(38),h=o(64),f=o(65),l=Y(f),a=o(66),u=Y(a),v=o(67),p=Y(v),b=o(37),m=o(26),y=o(39),_=o(40),g=o(56),O=Y(g),k=o(68),T=Y(k),A=o(27),P=Y(A),x=o(69),S=Y(x),w=o(70),I=Y(w),D=o(71),$=Y(D),B=o(72),U=Y(B),G=o(73),q=Y(G),R=o(13),E=Y(R),C=o(74),N=Y(C),F=o(75),j=Y(F),L=o(57),M=Y(L),H=o(41),z=Y(H),V=o(28),Q=Y(V),ne=o(59),oe=Y(ne),ce=o(60),he=Y(ce),Fe=o(61),Ae=Y(Fe),W=o(108),K=Y(W),Z=o(62),J=Y(Z);function Y(le){return le&&le.__esModule?le:{default:le}}s.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":d.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":d.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":d.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":y.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":R.Code,"formats/italic":T.default,"formats/link":P.default,"formats/script":S.default,"formats/strike":I.default,"formats/underline":$.default,"formats/image":U.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":N.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":J.default,"ui/icons":z.default,"ui/picker":Q.default,"ui/icon-picker":he.default,"ui/color-picker":oe.default,"ui/tooltip":Ae.default},!0),t.default=s.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,m){for(var y=0;y<m.length;y++){var _=m[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,y){return m&&p(b.prototype,m),y&&p(b,y),b}}(),s=function p(b,m,y){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var g=Object.getPrototypeOf(b);return g===null?void 0:p(g,m,y)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(y)}},d=o(0),c=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function f(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var u=function(p){a(b,p);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(y,_){if(_==="+1"||_==="-1"){var g=this.value(y)||0;_=_==="+1"?g+1:g-1}return _===0?(this.remove(y),!0):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,y,_)}},{key:"canAdd",value:function(y,_){return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,_)||s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,parseInt(_))}},{key:"value",value:function(y){return parseInt(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,y))||void 0}}]),b}(c.default.Attributor.Class),v=new u("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function u(v,p){for(var b=0;b<p.length;b++){var m=p[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,p,b){return p&&u(v.prototype,p),b&&u(v,b),v}}(),s=o(4),d=c(s);function c(u){return u&&u.__esModule?u:{default:u}}function h(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}function f(u,v){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:u}function l(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(u,v):u.__proto__=v)}var a=function(u){l(v,u);function v(){return h(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(d.default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function g(O,k){for(var T=0;T<k.length;T++){var A=k[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,k,T){return k&&g(O.prototype,k),T&&g(O,T),O}}(),s=function g(O,k,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,k);if(A===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:g(P,k,T)}else{if("value"in A)return A.value;var x=A.get;return x===void 0?void 0:x.call(T)}},d=o(0),c=u(d),h=o(4),f=u(h),l=o(25),a=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function v(g,O,k){return O in g?Object.defineProperty(g,O,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[O]=k,g}function p(g,O){if(!(g instanceof O))throw new TypeError("Cannot call a class as a function")}function b(g,O){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:g}function m(g,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);g.prototype=Object.create(O&&O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(g,O):g.__proto__=O)}var y=function(g){m(O,g);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(c.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(f.default);y.blotName="list-item",y.tagName="LI";var _=function(g){m(O,g),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",P=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&P.setAttribute("data-checked",T==="checked"),P}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(k){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k)),A=function(x){if(x.target.parentNode===k){var S=T.statics.formats(k),w=c.default.find(x.target);S==="checked"?w.format("list","unchecked"):S==="unchecked"&&w.format("list","checked")}};return k.addEventListener("touchstart",A),k.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof y)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var P=A==null?this.length():A.offset(this),x=this.split(P);x.parent.insertBefore(T,x)}}},{key:"optimize",value:function(T){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=c.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(a.default);_.blotName="list",_.scope=c.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[y],t.ListItem=y,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(6),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),p}(c.default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(0),c=f(d),h=o(27);function f(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,g){v.indexOf(_)>-1?g?this.domNode.setAttribute(_,g):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,g)}}],[{key:"create",value:function(_){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&g.setAttribute("src",this.sanitize(_)),g}},{key:"formats",value:function(_){return v.reduce(function(g,O){return _.hasAttribute(O)&&(g[O]=_.getAttribute(O)),g},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(c.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(4),c=o(27),h=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,g){v.indexOf(_)>-1?g?this.domNode.setAttribute(_,g):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,g)}}],[{key:"create",value:function(_){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return g.setAttribute("frameborder","0"),g.setAttribute("allowfullscreen",!0),g.setAttribute("src",this.sanitize(_)),g}},{key:"formats",value:function(_){return v.reduce(function(g,O){return _.hasAttribute(O)&&(g[O]=_.getAttribute(O)),g},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(d.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(g,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(g,T.key,T)}}return function(g,O,k){return O&&_(g.prototype,O),k&&_(g,k),g}}(),s=function _(g,O,k){g===null&&(g=Function.prototype);var T=Object.getOwnPropertyDescriptor(g,O);if(T===void 0){var A=Object.getPrototypeOf(g);return A===null?void 0:_(A,O,k)}else{if("value"in T)return T.value;var P=T.get;return P===void 0?void 0:P.call(k)}},d=o(35),c=u(d),h=o(5),f=u(h),l=o(9),a=u(l);function u(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function p(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function b(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var m=function(_){b(g,_);function g(){return v(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,null,[{key:"create",value:function(k){var T=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",k)),T}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),g}(c.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var y=function(_){b(g,_),i(g,null,[{key:"register",value:function(){f.default.register(m,!0)}}]);function g(){v(this,g);var O=p(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return g}(a.default);t.FormulaBlot=m,t.default=y},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function k(T,A){for(var P=0;P<A.length;P++){var x=A[P];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(T,x.key,x)}}return function(T,A,P){return A&&k(T.prototype,A),P&&k(T,P),T}}(),s=function k(T,A,P){T===null&&(T=Function.prototype);var x=Object.getOwnPropertyDescriptor(T,A);if(x===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:k(S,A,P)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(P)}},d=o(0),c=p(d),h=o(5),f=p(h),l=o(9),a=p(l),u=o(13),v=p(u);function p(k){return k&&k.__esModule?k:{default:k}}function b(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function m(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function y(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var _=function(k){y(T,k);function T(){return b(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var x=this.domNode.textContent;this.cachedText!==x&&((x.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(x),this.domNode.normalize(),this.attach()),this.cachedText=x)}}]),T}(v.default);_.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),O=function(k){y(T,k),i(T,null,[{key:"register",value:function(){f.default.register(g,!0),f.default.register(_,!0)}}]);function T(A,P){b(this,T);var x=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,P));if(typeof x.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return x.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){x.highlight(),S=null},x.options.interval)}),x.highlight(),x}return i(T,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(S){S.highlight(P.options.highlight)}),this.quill.update(f.default.sources.SILENT),x!=null&&this.quill.setSelection(x,f.default.sources.SILENT)}}}]),T}(a.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var T=window.hljs.highlightAuto(k);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=g,t.default=O},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,P,x){A===null&&(A=Function.prototype);var S=Object.getOwnPropertyDescriptor(A,P);if(S===void 0){var w=Object.getPrototypeOf(A);return w===null?void 0:T(w,P,x)}else{if("value"in S)return S.value;var I=S.get;return I===void 0?void 0:I.call(x)}},s=function(){function T(A,P){for(var x=0;x<P.length;x++){var S=P[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,P,x){return P&&T(A.prototype,P),x&&T(A,x),A}}(),d=o(3),c=b(d),h=o(8),f=b(h),l=o(43),a=b(l),u=o(15),v=o(41),p=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function y(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(P,x){m(this,A),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=g);var S=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,x));return S.quill.container.classList.add("ql-bubble"),S}return s(A,[{key:"extendToolbar",value:function(x){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(x.container),this.buildButtons([].slice.call(x.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(x.container.querySelectorAll("select")),p.default)}}]),A}(a.default);O.DEFAULTS=(0,c.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(T){_(A,T);function A(P,x){m(this,A);var S=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,x));return S.quill.on(f.default.events.EDITOR_CHANGE,function(w,I,D,$){if(w===f.default.events.SELECTION_CHANGE)if(I!=null&&I.length>0&&$===f.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var B=S.quill.getLines(I.index,I.length);if(B.length===1)S.position(S.quill.getBounds(I));else{var U=B[B.length-1],G=S.quill.getIndex(U),q=Math.min(U.length()-1,I.index+I.length-G),R=S.quill.getBounds(new u.Range(G,q));S.position(R)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return s(A,[{key:"listen",value:function(){var x=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){x.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!x.root.classList.contains("ql-hidden")){var S=x.quill.getSelection();S!=null&&x.position(x.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(x){var S=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,x),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",S===0)return S;w.style.marginLeft=-1*S-w.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=k,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(ho);var po=Mr(ho.exports),Jf="",Qf="",ec="",Uu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},Hu=[],tc="";const zu={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model,composition:!1}},methods:{handleRenderInput:On(300,e=>{const r=e.handleGetVal();e.composition||(e.modelForm=r)}),handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new po(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("inputtext",r),this.$emit("onBlur",r)}},handleInput(e,r,n){this.handleRenderInput(this)},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")},handleCompositionstart(){this.composition=!0},handleCompositionend(){this.composition=!1}},mounted(){this.quillRef=new po(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),document.querySelector(".ql-editor").addEventListener("compositionstart",this.handleCompositionstart),document.querySelector(".ql-editor").addEventListener("compositionend",this.handleCompositionend),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){var e,r;(e=document.querySelector(".ql-editor"))==null||e.removeEventListener("compositionstart",this.handleCompositionstart),(r=document.querySelector(".ql-editor"))==null||r.removeEventListener("compositionend",this.handleCompositionend),this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e,r){this.modelForm!=e&&(this.modelForm=e,this.handleSetValue(e||""))},modelForm(e){this.$emit("inputtext",e)}}},vo={};var Wu=be(zu,Uu,Hu,!1,Gu,"009bd892",null,null);function Gu(e){for(let r in vo)this[r]=vo[r]}var Dn=function(){return Wu.exports}();Dn.install=e=>{e.component(Dn.name,Dn)};const mo=Dn;var Ku=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[n("div",{staticStyle:{position:"fixed",border:"1px solid #4d6bfe","z-index":"99999",right:"10px","background-color":"#FFF",bottom:"100px","border-radius":"50%",height:"40px",width:"40px",display:"flex","justify-content":"center","align-items":"center"},attrs:{id:"deepseek"+e.idKey},on:{click:function(t){e.show=!0}}},[n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})])]),n("el-drawer",e._b({attrs:{title:"Deepseek",visible:e.show,size:"500px",modal:!1},on:{"update:visible":function(t){e.show=t}}},"el-drawer",e.$attrs,!1),[n("div",{staticStyle:{padding:"10px",height:"100%",display:"flex","flex-direction":"column"}},[n("div",{staticStyle:{flex:"1","border-bottom":"1px solid #f1f1f1",overflow:"auto","margin-bottom":"15px"}},e._l(e.messageList,function(t){return n("div",{key:t.id,staticClass:"chat--item",class:{"chat--ai":t.role!="user"}},[n("div",{staticClass:"chat--flag"},[t.role!="user"?n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})]):n("svg",{staticClass:"icon",attrs:{t:"1745995639969",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14790",width:"24",height:"24"}},[n("path",{attrs:{d:"M510.112324 1023.82403H168.810986C117.23585 1023.82403 72.075612 979.959569 72.075612 929.952164c0-114.604302 118.971552-283.631251 240.166721-341.221352a29.738889 29.738889 0 0 1 25.739576 53.622783l-0.175969 0.079987C228.672697 694.360657 131.537392 846.462514 131.537392 929.952164c0 17.357017 18.44483 34.378091 37.241599 34.378092h341.989221a29.738889 29.738889 0 1 1 0 59.477777l-0.687882-0.015997h0.031994z","p-id":"14791",fill:"#43bd85"}}),n("path",{attrs:{d:"M851.413663 1023.82403H509.456437a29.738889 29.738889 0 1 1 0-59.477777l0.687882 0.015997h-0.031995 341.301339c18.812767 0 37.241599-17.053069 37.241599-34.378091 0-83.505647-97.10331-235.591508-206.268547-287.518583a29.754886 29.754886 0 1 1 25.77157-53.638781l-0.175969-0.079986c121.211167 57.670088 240.182719 226.681039 240.182718 341.221353 0 50.007405-45.192233 93.871866-96.735373 93.871865zM514.55956 584.66751c-161.188296 0-292.333755-131.145459-292.333755-292.333755S353.371264 0 514.55956 0s292.36575 131.145459 292.36575 292.333755-131.177454 292.333755-292.36575 292.333755z m0-525.189733c-128.40993 0-232.855978 104.462046-232.855978 232.855978s104.462046 232.871975 232.855978 232.871975 232.855978-104.462046 232.855978-232.855978S642.953492 59.477777 514.55956 59.477777z","p-id":"14792",fill:"#43bd85"}}),n("path",{attrs:{d:"M347.004359 307.211198a14.877443 14.877443 0 0 1-14.877443-14.877443c0.127978-100.702692 81.729953-182.304666 182.416647-182.416647H515.02348a14.877443 14.877443 0 1 1 0 29.722891l-0.479917-0.015997h0.031994c-84.289513 0.111981-152.597772 68.404243-152.693755 152.693756v0.031994a14.877443 14.877443 0 0 1-14.861446 14.861446zM377.847058 352.387433v0.063989a15.037415 15.037415 0 1 1-15.021419-15.021418h0.047992a15.037415 15.037415 0 0 1 14.989424 14.973427z","p-id":"14793",fill:"#43bd85"}})])]),n("pre",{domProps:{textContent:e._s(t.content)}})])}),0),n("div",[n("div",{staticStyle:{"margin-bottom":"5px"}},[n("el-button",{attrs:{type:"primary",size:"mini",loading:e.loading},on:{click:e.handleSend}},[e._v(e._s(e.loading?"\u8BF7\u7A0D\u7B49":"\u53D1\u9001"))])],1),n("el-input",{attrs:{type:"textarea",placeholder:"\u6309Enter\u53EF\u53D1\u9001\u3002",readonly:e.loading},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSend(t)}},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1)])])],1)},Vu=[],nc="";const Yu={name:"ComDeepseek",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"}},data(){return{show:!1,message:"",messageList:[],loading:!1,idKey:new Date().getTime()}},mounted(){new Hr(`#deepseek${this.idKey}`)},methods:{handleSend(){console.log(this.$UICONFIG,this.$http),this.messageList.push({content:this.message,role:"user",id:new Date().getTime()}),this.$nextTick().then(()=>{this.message=""}),this.loading=!0,this.$http.post(this.$UICONFIG.deepseekApi,{message:this.message}).then(e=>{if(e.code!=1)return this.$message.warning(e.mes||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.messageList.push(We(ve({},e.data),{id:new Date().getTime()})),this.loading=!1})},handleClose(){this.show=!1,this.$emit("close"),this.$emit("update:visible",!1)}}},go={};var Xu=be(Yu,Ku,Vu,!1,Zu,"4309f316",null,null);function Zu(e){for(let r in go)this[r]=go[r]}var $n=function(){return Xu.exports}();$n.install=e=>{e.component($n.name,$n)};const yo=$n;var Ju=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("com-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"static-num":100}},[n("div",{ref:"container",staticClass:"sku-comparison",attrs:{tabindex:"0"},on:{keydown:e.handleKeyDown}},[n("div",{staticClass:"header"},[n("div",{staticClass:"sku-info"},[n("div",{staticClass:"sku-code"},[e._v("SKU: "+e._s(e.currentGroup.sku))]),n("div",{staticClass:"image-counter"},[e._v(e._s(e.currentGroupIndex+1)+"/"+e._s(Object.keys(this.imageGroups).length))])]),n("div",{staticClass:"keyboard-hints"},[n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("\u2190")]),n("span",{staticClass:"desc"},[e._v("\u4E0A\u4E00\u5F20")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("\u2192")]),n("span",{staticClass:"desc"},[e._v("\u4E0B\u4E00\u5F20")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("Enter")]),n("span",{staticClass:"desc"},[e._v("\u786E\u8BA4")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("Backspace")]),n("span",{staticClass:"desc"},[e._v("\u9A73\u56DE")])])])]),n("div",{staticClass:"comparison-container"},[n("div",{staticClass:"original-section"},[n("div",{staticClass:"image-container"},[n("div",{staticClass:"image-header"},[n("div",{staticClass:"badge original"},[e._v("\u539F\u56FE")]),n("div",{staticClass:"image-title"},[e._v(e._s(e.currentGroup.title))])]),n("div",{staticClass:"image-content"},[e.currentGroup.image?n("img",{staticClass:"main-image",attrs:{src:e.currentGroup.image,alt:"\u539F\u56FE"},on:{error:e.handleImageError}}):e._e()])])]),n("div",{staticClass:"ai-main-section"},[n("div",{staticClass:"image-container"},[n("div",{staticClass:"image-header"},[n("div",{staticClass:"badge ai"},[e._v("AI\u5957\u56FE")]),n("div",{staticClass:"image-title"},[e._v(e._s(e.currentAiImage.image_type_name||"AI\u751F\u6210\u56FE\u7247"))])]),n("div",{staticClass:"image-content"},[e.currentAiImage.handle_image?n("img",{staticClass:"main-image",attrs:{src:e.currentAiImage.handle_image,alt:e.currentAiImage.image_type_name},on:{error:e.handleImageError}}):e._e()])])]),n("div",{staticClass:"thumbnail-section"},[n("div",{staticClass:"thumbnail-container"},[n("div",{staticClass:"thumbnail-header"},[n("div",{staticClass:"thumbnail-count"},[e._v("\u5171 "+e._s(e.aiImagesList.length)+" \u5F20")]),e.uniqueImageTypes.length>1?n("div",{staticClass:"filter-tabs"},e._l(e.uniqueImageTypes,function(t){return n("div",{key:t.value,staticClass:"filter-tab",class:{active:e.activeFilter===t.value},on:{click:function(o){return e.setFilter(t.value)}}},[e._v(" "+e._s(t.name)+" "),n("span",{staticClass:"tab-count"},[e._v(e._s(t.count))])])}),0):e._e()]),n("div",{staticClass:"thumbnail-grid"},e._l(e.filteredImages,function(t,o){return n("div",{key:t.task_id,staticClass:"thumbnail-item",class:{active:e.currentAiIndex===o,matched:e.matchedImages.includes(t.handle_image),rejected:e.rejectImages.includes(t.handle_image)},on:{click:function(i){return e.selectAiImage(o)},mouseenter:function(i){e.hoverThumbnail=o},mouseleave:function(i){e.hoverThumbnail=-1}}},[n("div",{staticClass:"thumbnail-image-container"},[n("img",{staticClass:"thumbnail-image",attrs:{src:t.handle_image,alt:t.image_type_name},on:{error:e.handleThumbnailError}}),t.status?n("div",{staticClass:"status-indicator"},[n("span",{staticClass:"status-icon",class:e.matchedImages.includes(t.handle_image)?"matched":"pending"},[e._v(" "+e._s(e.matchedImages.includes(t.handle_image)?"\u2713":"\u2717")+" ")])]):e._e(),e.currentAiIndex===o?n("div",{staticClass:"selected-indicator"},[n("div",{staticClass:"selected-border"})]):e._e(),e.hoverThumbnail===o?n("div",{staticClass:"thumbnail-overlay"},[n("div",{staticClass:"overlay-content"},[n("div",{staticClass:"overlay-title"},[e._v(e._s(t.image_type_name))])])]):e._e()])])}),0)])])]),e.showFeedback?n("div",{staticClass:"feedback-toast",class:e.feedbackType},[e._v(" "+e._s(e.feedbackMessage)+" ")]):e._e()])])},Qu=[],rc="";const ef={name:"ComAiImages",data(){return{loading:!0,sourceId:"",currentPid:null,currentGroupIndex:0,imageGroups:{},matchedImages:[],rejectImages:[],currentAiIndex:0,activeFilter:"all",showFeedback:!1,feedbackMessage:"",feedbackType:"",hoverThumbnail:-1}},computed:{currentAiImage(){return this.filteredImages[this.currentAiIndex]||{}},currentPidData(){return this.currentPid?Object.values(this.imageGroups[this.currentPid]):[]},currentGroup(){return this.currentPidData[this.currentGroupIndex]||{}},aiImagesList(){return this.currentGroup.tplGroupImages||[]},uniqueImageTypes(){const e={};this.aiImagesList.forEach(n=>{const t=n.image_type;e[t]||(e[t]={value:t,name:n.image_type_name,count:0}),e[t].count++});const r=Object.values(e);return r.unshift({value:"all",name:"\u5168\u90E8",count:this.aiImagesList.length}),r},filteredImages(){return this.activeFilter==="all"?this.aiImagesList:this.aiImagesList.filter(e=>e.image_type==this.activeFilter)}},watch:{},async created(){this.refreshData()},methods:{async refreshData(){var r,n;this.loading=!0;const e=await this.$http.post(this.$UICONFIG.getAiSourceList,{page:1});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u67E5\u8BE2\u5931\u8D25\uFF01");if(!((n=(r=e.data)==null?void 0:r.source_ids)==null?void 0:n.length))return this.$message.warning("\u65E0\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");this.sourceId=e.data.source_ids[0],this.processApiData()},async processApiData(){try{if(!this.sourceId)return;this.loading=!0;const e=await this.$http.post(this.$UICONFIG.getAiTplGroupApi,{sourceIds:[this.sourceId]});this.loading=!1;const r=Object.keys(e.data);if(r.length===0)return;this.currentPid=r[0],this.imageGroups=e.data;return}catch(e){console.error("\u5904\u7406API\u6570\u636E\u65F6\u51FA\u9519:",e)}},getMockData(){return{code:1,msg:"Success",data:{"3375":{"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg":{"6":[{task_id:3,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:6,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/c114a635c6e51f4d66161259ec6e75c8.png",group_task_id:2,image_type:6,image_type_name:"\u573A\u666F\u56FE"},{task_id:4,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:6,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/13ebf825aaa226702fbfdce7528f4048.png",group_task_id:2,image_type:6,image_type_name:"\u573A\u666F\u56FE"}],"1":[{task_id:5,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:1,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/a43334106f68787f3b224941e6a8ec75.jpeg",group_task_id:2,image_type:1,image_type_name:"\u529F\u80FD/\u7EC6\u8282\u56FE"}],"2":[{task_id:9,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:2,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/ed0c6979a5c704528662e6b3495dcff9.jpeg",group_task_id:2,image_type:2,image_type_name:"\u5C3A\u5BF8\u56FE"}]}}}}},handleKeyDown(e){switch(e.preventDefault(),e.key){case"ArrowLeft":this.prevAiImage();break;case"ArrowRight":this.nextAiImage();break;case"Enter":this.confirmMatch();break;case"Backspace":this.rejectMatch();break;case" ":e.preventDefault(),this.skipImage();break}},prevAiImage(){this.currentAiIndex>0&&this.currentAiIndex--},nextAiImage(){this.currentAiIndex<this.aiImagesList.length-1?this.currentAiIndex++:this.currentGroupIndex<Object.keys(this.imageGroups).length-1?(this.currentGroupIndex++,this.currentAiIndex=0):(this.currentGroupIndex=0,this.currentAiIndex=0,this.refreshData())},selectAiImage(e){this.currentAiIndex=e},setFilter(e){this.activeFilter=e,this.currentAiIndex=0},async confirmMatch(){if(!this.loading&&!this.matchedImages.includes(this.currentAiImage.handle_image)){this.loading=!0;const e=await this.$http.post(this.$UICONFIG.passAiTplGroupApi,{task_id:this.currentAiImage.task_id,handle_image:this.currentAiImage.handle_image});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.matchedImages.push(this.currentAiImage.handle_image),this.handleShowFeedback(`\u56FE\u7247 #${this.currentAiImage.task_id} \u5339\u914D\u6210\u529F\uFF01`,"success"),this.nextAiImage()}},async rejectMatch(){if(!this.loading&&!this.rejectImages.includes(this.currentAiImage.handle_image)){this.loading=!0;const e=await this.$http.post(this.$UICONFIG.rejectAiTplGroupApi,{task_id:this.currentAiImage.task_id,handle_image:this.currentAiImage.handle_image});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.rejectImages.push(this.currentAiImage.handle_image),this.handleShowFeedback(`\u56FE\u7247 #${this.currentAiImage.task_id} \u5DF2\u9A73\u56DE`,"error"),this.nextAiImage()}},skipImage(){this.nextAiImage()},handleShowFeedback(e,r="info"){this.feedbackMessage=e,this.feedbackType=r,this.showFeedback=!0,setTimeout(()=>{this.showFeedback=!1},1e3)},handleImageError(e){e.target.src=""},handleThumbnailError(e){e.target.src=""}}},bo={};var tf=be(ef,Ju,Qu,!1,nf,"4c4b59b0",null,null);function nf(e){for(let r in bo)this[r]=bo[r]}var Rn=function(){return tf.exports}();Rn.install=e=>{e.component(Rn.name,Rn)};const rf=Rn;var of=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},af=[];const lf={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},_o={};var sf=be(lf,of,af,!1,uf,null,null,null);function uf(e){for(let r in _o)this[r]=_o[r]}var ff=function(){return sf.exports}();const cf=Re.default.extend(ff);var df={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),d=new cf({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:s,fullscreen:!1}});e.instance=d,e.mask=d.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},hf=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},pf=[],oc="";const Vt={confirm:"confirm",cancel:"cancel"},vf={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=We(ve({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(Vt.cancel)},triggerCallBack(e){const r={[Vt.confirm]:"beforeConfirm",[Vt.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===Vt.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(Vt.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},Oo={};var mf=be(vf,hf,pf,!1,gf,null,null,null);function gf(e){for(let r in Oo)this[r]=Oo[r]}var yf=function(){return mf.exports}();const bf={title:"",items:[]},_f=Re.default.extend(yf);let So,Yt,Cr=[];const Of=()=>{Yt=new _f({el:document.createElement("div")})},Sf=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},Ef=e=>{const r=Sf(e.items);Object.entries(We(ve({},e),{formData:r})).forEach(([n,t])=>{Yt[n]=t}),document.body.appendChild(Yt.$el),Re.default.nextTick(()=>{Yt.visible=!0})},xf=()=>{Yt||Of(),Cr.length>0&&(So=Cr.shift(),Ef(So))},wf=e=>new Promise((r,n)=>{Cr.push(We(ve(ve({},bf),e),{resolve:r,reject:n})),xf()}),Af=[Ir,Pr,Dr,Rr,Wr,Yr,Jr,Ai,lo,uo,co,mo,yo,rf],Eo={version:"dev",install:(e,r={config:{}})=>{Af.forEach(o=>e.component(o.name,o));const n={tablePreset:{separator:"@",presetPropMap:{image(o,{field:i,params:s}){const d=o[i].split("|"),c=s.size||59;return["com-image",{attrs:{src:d,size:c,lazy:!0}}]},link(o,{field:i,params:s}){const d=o[i];let{target:c,href:h,type:f,underline:l}=s;return c=c||"_blank",h=o[h]||d,f=f||"primary",l=!!l,["el-link",{attrs:{target:c,href:h,type:f,underline:l}},d]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=ve(ve({},n),r.config),Object.entries(df).forEach(([o,i])=>{e.directive(o,i)}),e.prototype.$formDialog=wf,e.prototype.$jump=(o,i="_blank")=>{window.open(o,i)};const t=new e;e.prototype.$toChildren=t},ComTemplate:Ir,ComMenu:Pr,ComTabs:Dr,ComTool:Rr,ComDialog:Wr,ComFormItem:Yr,ComOperation:Jr,ComSearch:Ai,ComTable:lo,ComImage:uo,ComContainer:co,ComEditor:mo,ComDeepseek:yo};try{Eo.version=require("../package.json").version}catch{console.log("no require")}return Eo});
|
|
65
65
|
//# sourceMappingURL=tenghui-ui.umd.js.map
|