UNPKG

krco

Version:

基于arco-design-vue的配置化表格表单组件

6 lines 132 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("./index-DtuiioFw.cjs"),Xo=new WeakMap,No=new ResizeObserver(t=>{for(const l of t){const o=Xo.get(l.target);o&&o({width:l.borderBoxSize[0].inlineSize,height:l.borderBoxSize[0].blockSize})}}),Sl={install(t){t.directive("resize",{mounted(l,o){Xo.set(l,o.value),No.observe(l)},unmounted(l){No.unobserve(l)}})}},Ie=t=>(t.install=l=>{const o=t.name||t.__name;l.component(o,t)},t),Vl=(t,l)=>{const o={};if((l.type==="input"||l.type===void 0)&&(o.allowClear=!0,o.placeholder=`请输入${l.label}`),l.type==="input-password"){const n=A.deepCopy(l);return delete n.type,{...o,...n,msg:null}}return l.type==="input-number"&&(o.placeholder=`请输入${l.label}`),l.type==="textarea"&&(o.allowClear=!0,o.showWordLimit=l.showWordLimit??!0,o.placeholder=`请输入${l.label}`),l.type==="select"&&(o.allowClear=!0,o.placeholder=`请选择${l.label}`,o.options=[],o.options=t[l.field]||l.dicData),l.type==="cascader"&&(o.allowClear=!0,o.placeholder=`请选择${l.label}`,o.options=t[l.field]||l.dicData),l.type==="radio"&&(o.options=t[l.field]||l.dicData),l.type==="radio-group"&&(o.options=t[l.field]||l.dicData),l.type==="checkbox-group"&&(o.options=t[l.field]||l.dicData),l.type==="checkbox"&&(o.options=t[l.field]||l.dicData),l.type==="date-picker"&&(o.placeholder="请选择日期"),l.type==="time-picker"&&(o.allowClear=!0,o.placeholder="请选择时间"),{...o,...l,msg:null,field:null,type:null,onChange:(...n)=>{l.onChange&&l.onChange(...n)}}},xl={key:0,class:"form-plus-left-bot"},Nl=e.defineComponent({name:"aFormPlus",__name:"main",props:e.mergeModels({menuRight:{type:Boolean,default:!1},option:{},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["submit","reset","form-change"],["update:modelValue"]),setup(t,{expose:l,emit:o}){const n=e.useSlots(),r=e.useAttrs(),i=t,a=A.defaultFormOption,d=e.useModel(t,"modelValue"),c=e.ref(null),h=o,u=e.reactive({}),s=e.reactive({submit:!1,reset:!1});function b(){s.submit=!1}const y=({values:f,errors:g})=>{g===void 0&&(s.submit=!0,h("submit",f,b))};function D(){c.value.resetFields(),c.value.clearValidate(),h("reset")}function _(f){return i.option.disabled??f??!1}function E(f,g){h("form-change",f,g,b)}l(new Proxy({},{get(f,g){var N;return g==="reset"?D:g==="done"?b:(N=c.value)==null?void 0:N[g]},has(f,g){return g==="reset"||g==="done"||g in c.value}}));function $(f){return A.validataNull(f.bind)?Reflect.get(d.value,f.field):W(d.value,f.bind)}function L(f,g){A.validataNull(f.bind)?Reflect.set(d.value,f.field,g):(d[f.field]=g,J(d.value,f.bind,g))}const W=(f,g)=>g.split(".").reduce((N,z)=>N&&N[z],f),J=(f,g,N)=>{const z=g.split("."),M=z.pop(),R=z.reduce((p,m)=>p[m]=p[m]||{},f);R[M]=N},j=(f,g)=>{const N={};if((g.type==="input"||g.type===void 0)&&(N.allowClear=!0,N.placeholder=`请输入${g.label}`),g.type==="input-password"){const z=A.deepCopy(g);return delete z.type,{...N,...z,msg:null}}return g.type==="input-number"&&(N.placeholder=`请输入${g.label}`),g.type==="textarea"&&(N.allowClear=!0,N.showWordLimit=g.showWordLimit??!0,N.placeholder=`请输入${g.label}`),g.type==="select"&&(N.allowClear=!0,N.placeholder=`请选择${g.label}`,N.options=[],N.options=f[g.field]||g.dicData),g.type==="cascader"&&(N.allowClear=!0,N.placeholder=`请选择${g.label}`,N.options=f[g.field]||g.dicData),g.type==="radio"&&(N.options=f[g.field]||g.dicData),g.type==="radio-group"&&(N.options=f[g.field]||g.dicData),g.type==="checkbox-group"&&(N.options=f[g.field]||g.dicData),g.type==="checkbox"&&(N.options=f[g.field]||g.dicData),g.type==="date-picker"&&(N.placeholder="请选择日期"),g.type==="time-picker"&&(N.allowClear=!0,N.placeholder="请选择时间"),{...N,...g,msg:null,field:null,type:null}},G=e.ref(!1);function ie(f){G.value=f.width<300}return(f,g)=>{const N=e.resolveComponent("icon-question-circle-fill"),z=e.resolveComponent("a-tooltip"),M=e.resolveComponent("a-form-item"),R=e.resolveComponent("a-col"),p=e.resolveComponent("a-row"),m=e.resolveComponent("a-button"),T=e.resolveComponent("a-space"),V=e.resolveComponent("a-form"),k=e.resolveDirective("resize");return e.withDirectives((e.openBlock(),e.createBlock(V,e.mergeProps({ref_key:"formRef",ref:c,"auto-label-width":f.option.autoLabelWidth??e.unref(a).autoLabelWidth,layout:f.option.layout??e.unref(a).layout??"horizontal",scrollToFirstError:f.option.scrollToFirstError??e.unref(a).scrollToFirstError,size:f.option.size??e.unref(a).size,"label-align":f.option.labelAlign??e.unref(a).labelAlign,model:d.value,onSubmit:y,disabled:f.disabled},e.unref(r)),{default:e.withCtx(()=>[e.createVNode(p,{class:"form-row__container",justify:f.option.justify??e.unref(a).justify,align:f.option.align??e.unref(a).align,wrap:f.option.wrap??e.unref(a).wrap,cols:24,fill:"",gutter:f.option.gutter||e.unref(a).gutter,colGap:f.option.colGap??e.unref(a).colGap,rowGap:f.option.rowGap??e.unref(a).rowGap},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.option.columns,v=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:v.field},[v.display??!0?(e.openBlock(),e.createBlock(R,{key:0,style:e.normalizeStyle({marginTop:f.option.marginTop??e.unref(a).marginTop}),span:G.value?24:v.span??f.option.span??e.unref(a).span,offset:v.offset??0,order:v.order??0},{default:e.withCtx(()=>[e.createVNode(M,e.normalizeProps({[(s.submit?"":"disabled")||""]:_(v.disabled),label:v.label,tooltip:v.tooltip,help:v.help,extra:v.extra,"label-component":v.labelComponent,"hide-label":v.hideLabel,"hide-asterisk":v.hideAsterisk,"content-flex":v.contentFlex,feedback:v.feedback,"label-col-style":{paddingRight:"6px",paddingLeft:"2px"},field:v.bind??v.field,rules:v.rules}),e.createSlots({default:e.withCtx(()=>[e.unref(n)[v.field]?e.renderSlot(f.$slots,v.field,{key:0,item:v,size:f.option.size??e.unref(a).size},void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.component?v.component:`a-${v.type||"input"}`),e.mergeProps({key:1,style:{width:v.type==="switch"?"":"100%"},size:f.option.size??e.unref(a).size,disabled:f.option.detail??v.disabled??!1,modelValue:$(v),"onUpdate:modelValue":B=>L(v,B),visibility:v.visibility,"onUpdate:visibility":B=>v.visibility=B,ref_for:!0},j(u,v),{onChange:B=>E(B,v)}),null,16,["style","size","disabled","modelValue","onUpdate:modelValue","visibility","onUpdate:visibility","onChange"]))]),_:2},[e.unref(n)[v.field+"Label"]?{name:"label",fn:e.withCtx(()=>[e.renderSlot(f.$slots,v.field+"Label",{},void 0,!0)]),key:"0"}:void 0,e.unref(n)[v.field+"Label"]?void 0:{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.label)+" ",1),v.helpIconText?(e.openBlock(),e.createBlock(z,{key:0,content:v.helpIconText},{default:e.withCtx(()=>[e.createVNode(N,{size:f.option.size??e.unref(a).size},null,8,["size"])]),_:2},1032,["content"])):e.createCommentVNode("",!0)]),key:"1"},e.unref(n)[v.field+"Help"]||v.help?{name:"help",fn:e.withCtx(()=>[e.renderSlot(f.$slots,v.field+"Help",{},void 0,!0),e.createElementVNode("span",null,e.toDisplayString(v.help),1)]),key:"2"}:void 0,e.unref(n)[v.field+"Extra"]||v.extra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(f.$slots,v.field+"Extra",{},void 0,!0),e.createElementVNode("span",null,e.toDisplayString(v.extra),1)]),key:"3"}:void 0]),1040,["label","tooltip","help","extra","label-component","hide-label","hide-asterisk","content-flex","feedback","field","rules"])]),_:2},1032,["style","span","offset","order"])):e.createCommentVNode("",!0)],64))),128))]),_:3},8,["justify","align","wrap","gutter","colGap","rowGap"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.option.groups,v=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(v.display,e.openBlock(),e.createBlock(p,{key:0,style:e.normalizeStyle(f.option.groupContainerStyle??{})},{default:e.withCtx(()=>[e.createVNode(R,{span:24},{default:e.withCtx(()=>[!e.unref(n)[v.field+"GroupHeader"]&&!e.unref(A.validataNull)(v.label)?(e.openBlock(),e.createElementBlock("div",xl,e.toDisplayString(v.label),1)):e.renderSlot(f.$slots,v.field+"GroupHeader",{key:1,label:v.label,record:v},void 0,!0)]),_:2},1024),e.createVNode(p,{style:e.normalizeStyle([{width:"100%"},f.option.groupColStyle??{}]),gutter:v.gutter??f.option.gutter??0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.columns,B=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:B.field},[B.display??!0?(e.openBlock(),e.createBlock(R,{key:0,span:G.value?24:B.span??f.option.span??e.unref(a).span,offset:B.offset??0,order:B.order??100},{default:e.withCtx(()=>[e.createVNode(M,e.normalizeProps({"label-col-style":{width:"100px"},[(s.submit?"":"disabled")||""]:_(B.disabled),label:B.label,tooltip:B.tooltip,help:B.help,extra:B.extra,"label-component":B.labelComponent,"hide-label":B.hideLabel,"hide-asterisk":B.hideAsterisk,"content-flex":B.contentFlex,feedback:B.feedback,field:B.field,rules:B.rules}),e.createSlots({default:e.withCtx(()=>[e.unref(n)[B.field]?e.renderSlot(f.$slots,B.field,{key:0,item:B,size:f.option.size??e.unref(a).size},void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.component?B.component:`a-${B.type||"input"}`),e.mergeProps({key:1,style:{width:B.type==="switch"?"":"100%"},size:f.option.size??e.unref(a).size,disabled:f.option.detail??B.disabled??!1,modelValue:$(B),"onUpdate:modelValue":Q=>L(B,Q),visibility:B.visibility,"onUpdate:visibility":Q=>B.visibility=Q,ref_for:!0},j(u,B),{onChange:Q=>E(Q,B)}),null,16,["style","size","disabled","modelValue","onUpdate:modelValue","visibility","onUpdate:visibility","onChange"]))]),_:2},[e.unref(n)[B.field+"Label"]?{name:"label",fn:e.withCtx(()=>[e.renderSlot(f.$slots,B.field+"Label",{},void 0,!0)]),key:"0"}:void 0,e.unref(n)[B.field+"Label"]?void 0:{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label)+" ",1),B.helpIconText?(e.openBlock(),e.createBlock(z,{key:0,content:B.helpIconText},{default:e.withCtx(()=>[e.createVNode(N,{size:f.option.size??e.unref(a).size},null,8,["size"])]),_:2},1032,["content"])):e.createCommentVNode("",!0)]),key:"1"},e.unref(n)[B.field+"Help"]||B.help?{name:"help",fn:e.withCtx(()=>[e.renderSlot(f.$slots,B.field+"Help",{},void 0,!0),e.createElementVNode("span",null,e.toDisplayString(B.help),1)]),key:"2"}:void 0,e.unref(n)[B.field+"Extra"]||B.extra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(f.$slots,B.field+"Extra",{},void 0,!0),e.createElementVNode("span",null,e.toDisplayString(B.extra),1)]),key:"3"}:void 0]),1040,["label","tooltip","help","extra","label-component","hide-label","hide-asterisk","content-flex","feedback","field","rules"])]),_:2},1032,["span","offset","order"])):e.createCommentVNode("",!0)],64))),128))]),_:2},1032,["style","gutter"])]),_:2},1032,["style"]))],64))),256)),!f.option.search&&f.option.detail!==!0?(e.openBlock(),e.createBlock(p,{key:0,class:e.normalizeClass({formMenuContainer:f.option.menu??!f.option.detail??!0})},{default:e.withCtx(()=>[f.option.menu??!f.option.detail??!0?(e.openBlock(),e.createBlock(R,{key:0,order:1e4,span:f.option.menuSpan??24,style:e.normalizeStyle({textAlign:f.option.menuAlign??"center"})},{default:e.withCtx(()=>[e.unref(n).menu?e.renderSlot(f.$slots,"menu",{key:0,size:f.option.size??e.unref(a).size,loading:s.submit},void 0,!0):e.createCommentVNode("",!0),e.createVNode(T,{wrap:""},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"menuLeft",{size:f.option.size??e.unref(a).size,loading:s.submit},void 0,!0),e.renderSlot(f.$slots,"suffix",{loading:s.submit},()=>[f.option.menuBtn??f.option.submitBtn??!0?(e.openBlock(),e.createBlock(m,{key:0,size:f.option.size??e.unref(a).size,type:"primary",loading:s.submit,"html-type":"submit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.option.submitBtnText??e.unref(a).submitBtnText),1)]),_:1},8,["size","loading"])):e.createCommentVNode("",!0),f.option.menuBtn??f.option.resetBtn??!0?(e.openBlock(),e.createBlock(m,{key:1,size:f.option.size??e.unref(a).size,onClick:g[0]||(g[0]=v=>D())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.option.resetBtnText??e.unref(a).resetBtnText),1)]),_:1},8,["size"])):e.createCommentVNode("",!0)],!0),e.renderSlot(f.$slots,"menuright",{size:f.option.size??e.unref(a).size,loading:s.submit},void 0,!0)]),_:3})]),_:3},8,["span","style"])):e.createCommentVNode("",!0)]),_:3},8,["class"])):e.createCommentVNode("",!0)]),_:3},16,["auto-label-width","layout","scrollToFirstError","size","label-align","model","disabled"])),[[k,ie]])}}}),Lt=A._export_sfc(Nl,[["__scopeId","data-v-fd095a4f"]]),qo=Ie(Lt),zl=e.defineComponent({__name:"FormModel",props:e.mergeModels({title:{type:String,default:""},option:{type:Object,default:()=>({})}},{visible:{default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(t){const l=e.ref({}),o=t,n=e.useModel(t,"visible"),r=e.computed(()=>{let c=A.deepCopy(o.option);return Object.assign(c,{menu:!0})}),i=e.ref(!1);function a(c,h){h()}function d(){n.value=!1}return(c,h)=>{const u=e.resolveComponent("aFormPlus"),s=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(s,{visible:n.value,"onUpdate:visible":h[1]||(h[1]=b=>n.value=b),title:o.title,footer:!1,width:i.value?"280px":"60vw","render-to-body":!1,"popup-container":"form-create-render",onBeforeClose:d},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=b=>l.value=b),option:r.value,onSubmit:a},null,8,["modelValue","option"])]),_:1},8,["visible","title","width"])}}}),Dl={style:{height:"60vh"}},El=e.defineComponent({__name:"JsonModel",props:e.mergeModels({title:{type:String,default:""},type:{type:String,default:""},option:{type:Object,default:()=>({})}},{visible:{default:!1},visibleModifiers:{}}),emits:e.mergeModels(["importJson"],["update:visible"]),setup(t,{emit:l}){const o=t,n=e.ref({});e.onMounted(()=>{o.type==="export"&&(n.value=A.deepCopy(o.option))});const r=l,i=e.computed(()=>o.type==="export"),a=e.useModel(t,"visible");function d(){var c;try{Object.keys(n.value).length>0&&((c=n.value)!=null&&c.columns)&&r("importJson",n.value)}catch{}a.value=!1}return(c,h)=>{const u=e.resolveComponent("JsonEditor"),s=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(s,{visible:a.value,"onUpdate:visible":h[1]||(h[1]=b=>a.value=b),title:i.value?"生成Json":"导入Json",footer:!i.value,width:"60vw","hide-cancel":!0,onOk:d,"unmount-on-close":!0,"render-to-body":i.value,"popup-container":"form-create-render"},{default:e.withCtx(()=>[e.createElementVNode("div",Dl,[e.createVNode(u,{style:{height:"60vh"},modelValue:n.value,"onUpdate:modelValue":h[0]||(h[0]=b=>n.value=b)},null,8,["modelValue"])])]),_:1},8,["visible","title","footer","render-to-body"])}}}),Go=[{label:"基础组件",list:[{label:"输入框",icon:"biaodanzujian-shurukuang",type:"input"},{label:"数字输入框",icon:"shuzishurukuang",type:"input-number"},{label:"验证码",icon:"shuzishurukuang",type:"verification-code"},{label:"标签输入框",icon:"shuzishurukuang",type:"input-tag"},{label:"多行输入框",icon:"duohangshurukuang",type:"textarea"},{label:"下拉框",icon:"jilian",type:"select"},{label:"单选",icon:"danxuankuang-xuanzhong",type:"radio-group"},{label:"复选框",icon:"duoxuan_xuanzhong",type:"checkbox-group"},{label:"评分",icon:"pingfen",type:"rate"}]},{label:"时间组件",list:[{label:"日期选择",icon:"shijianxuanzeqi1",type:"date-picker"},{label:"日期范围",icon:"shijianfanweixuanze",type:"range-picker"},{label:"时间选择",icon:"shijianxuanzeqi1",type:"time-picker"},{label:"周",icon:"shijianxuanzeqi1",type:"week-picker"},{label:"月份",icon:"shijianxuanzeqi1",type:"month-picker"},{label:"年份",icon:"shijianxuanzeqi1",type:"year-picker"},{label:"季度",icon:"shijianxuanzeqi1",type:"quarter-picker"}]},{label:"高级组件",list:[{label:"文件上传",icon:"fujianshangchuan",type:"upload"},{label:"颜色选择器",icon:"yansexuanzeqi",type:"color-picker"}]}],Tl={input:{label:"输入框"},"verification-code":{label:"验证码",span:24},"text-plus":{hideLabel:!0},"radio-group":{dicData:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},"checkbox-group":{dicData:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]}};function zo(t){return Tl[t]??{}}const Ml=t=>{Array.isArray(t)&&t.forEach(l=>{l.list&&Go.push(l)})};var Ol=Object.defineProperty,$t=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,Do=(t,l,o)=>l in t?Ol(t,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[l]=o,qe=(t,l)=>{for(var o in l||(l={}))Jo.call(l,o)&&Do(t,o,l[o]);if($t)for(var o of $t(l))Ko.call(l,o)&&Do(t,o,l[o]);return t},Zo=(t,l)=>{var o={};for(var n in t)Jo.call(t,n)&&l.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&$t)for(var n of $t(t))l.indexOf(n)<0&&Ko.call(t,n)&&(o[n]=t[n]);return o};function Eo(t,l,o){return o>=0&&o<t.length&&t.splice(o,0,t.splice(l,1)[0]),t}function $l(t){return t.replace(/-(\w)/g,(l,o)=>o?o.toUpperCase():"")}function Pl(t){return Object.keys(t).reduce((l,o)=>(typeof t[o]<"u"&&(l[$l(o)]=t[o]),l),{})}function To(t,l){return Array.isArray(t)&&t.splice(l,1),t}function Mo(t,l,o){return Array.isArray(t)&&t.splice(l,0,o),t}function Il(t){return typeof t>"u"}function Al(t){return typeof t=="string"}function Oo(t,l,o){const n=t.children[o];t.insertBefore(l,n)}function Ut(t){t.parentNode&&t.parentNode.removeChild(t)}function Rl(t,l=document){var o;let n=null;return typeof(l==null?void 0:l.querySelector)=="function"?n=(o=l==null?void 0:l.querySelector)==null?void 0:o.call(l,t):n=document.querySelector(t),n||(`${t}`,void 0),n}function Fl(t,l,o=null){return function(...n){return t.apply(o,n),l.apply(o,n)}}function Ll(t,l){const o=qe({},t);return Object.keys(l).forEach(n=>{o[n]?o[n]=Fl(t[n],l[n]):o[n]=l[n]}),o}function jl(t){return t instanceof HTMLElement}function $o(t,l){Object.keys(t).forEach(o=>{l(o,t[o])})}function Ul(t){return t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97)}const Wl=Object.assign;/**! * Sortable 1.15.2 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */function Po(t,l){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);l&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),o.push.apply(o,n)}return o}function Ne(t){for(var l=1;l<arguments.length;l++){var o=arguments[l]!=null?arguments[l]:{};l%2?Po(Object(o),!0).forEach(function(n){Hl(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Po(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Dt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dt=function(l){return typeof l}:Dt=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Dt(t)}function Hl(t,l,o){return l in t?Object.defineProperty(t,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[l]=o,t}function De(){return De=Object.assign||function(t){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},De.apply(this,arguments)}function Yl(t,l){if(t==null)return{};var o={},n=Object.keys(t),r,i;for(i=0;i<n.length;i++)r=n[i],!(l.indexOf(r)>=0)&&(o[r]=t[r]);return o}function Xl(t,l){if(t==null)return{};var o=Yl(t,l),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],!(l.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var ql="1.15.2";function ze(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Ee=ze(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ut=ze(/Edge/i),Io=ze(/firefox/i),nt=ze(/safari/i)&&!ze(/chrome/i)&&!ze(/android/i),Qo=ze(/iP(ad|od|hone)/i),el=ze(/chrome/i)&&ze(/android/i),tl={capture:!1,passive:!1};function q(t,l,o){t.addEventListener(l,o,!Ee&&tl)}function Y(t,l,o){t.removeEventListener(l,o,!Ee&&tl)}function Pt(t,l){if(l){if(l[0]===">"&&(l=l.substring(1)),t)try{if(t.matches)return t.matches(l);if(t.msMatchesSelector)return t.msMatchesSelector(l);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(l)}catch{return!1}return!1}}function Gl(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function _e(t,l,o,n){if(t){o=o||document;do{if(l!=null&&(l[0]===">"?t.parentNode===o&&Pt(t,l):Pt(t,l))||n&&t===o)return t;if(t===o)break}while(t=Gl(t))}return null}var Ao=/\s+/g;function be(t,l,o){if(t&&l)if(t.classList)t.classList[o?"add":"remove"](l);else{var n=(" "+t.className+" ").replace(Ao," ").replace(" "+l+" "," ");t.className=(n+(o?" "+l:"")).replace(Ao," ")}}function P(t,l,o){var n=t&&t.style;if(n){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),l===void 0?o:o[l];!(l in n)&&l.indexOf("webkit")===-1&&(l="-webkit-"+l),n[l]=o+(typeof o=="string"?"":"px")}}function Je(t,l){var o="";if(typeof t=="string")o=t;else do{var n=P(t,"transform");n&&n!=="none"&&(o=n+" "+o)}while(!l&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function ol(t,l,o){if(t){var n=t.getElementsByTagName(l),r=0,i=n.length;if(o)for(;r<i;r++)o(n[r],r);return n}return[]}function xe(){var t=document.scrollingElement;return t||document.documentElement}function se(t,l,o,n,r){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,d,c,h,u,s;if(t!==window&&t.parentNode&&t!==xe()?(i=t.getBoundingClientRect(),a=i.top,d=i.left,c=i.bottom,h=i.right,u=i.height,s=i.width):(a=0,d=0,c=window.innerHeight,h=window.innerWidth,u=window.innerHeight,s=window.innerWidth),(l||o)&&t!==window&&(r=r||t.parentNode,!Ee))do if(r&&r.getBoundingClientRect&&(P(r,"transform")!=="none"||o&&P(r,"position")!=="static")){var b=r.getBoundingClientRect();a-=b.top+parseInt(P(r,"border-top-width")),d-=b.left+parseInt(P(r,"border-left-width")),c=a+i.height,h=d+i.width;break}while(r=r.parentNode);if(n&&t!==window){var y=Je(r||t),D=y&&y.a,_=y&&y.d;y&&(a/=_,d/=D,s/=D,u/=_,c=a+u,h=d+s)}return{top:a,left:d,bottom:c,right:h,width:s,height:u}}}function Ro(t,l,o){for(var n=Pe(t,!0),r=se(t)[l];n;){var i=se(n)[o],a=void 0;if(a=r>=i,!a)return n;if(n===xe())break;n=Pe(n,!1)}return!1}function Ke(t,l,o,n){for(var r=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==I.ghost&&(n||a[i]!==I.dragged)&&_e(a[i],o.draggable,t,!1)){if(r===l)return a[i];r++}i++}return null}function no(t,l){for(var o=t.lastElementChild;o&&(o===I.ghost||P(o,"display")==="none"||l&&!Pt(o,l));)o=o.previousElementSibling;return o||null}function Ce(t,l){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==I.clone&&(!l||Pt(t,l))&&o++;return o}function Fo(t){var l=0,o=0,n=xe();if(t)do{var r=Je(t),i=r.a,a=r.d;l+=t.scrollLeft*i,o+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[l,o]}function Jl(t,l){for(var o in t)if(t.hasOwnProperty(o)){for(var n in l)if(l.hasOwnProperty(n)&&l[n]===t[o][n])return Number(o)}return-1}function Pe(t,l){if(!t||!t.getBoundingClientRect)return xe();var o=t,n=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=P(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return xe();if(n||l)return o;n=!0}}while(o=o.parentNode);return xe()}function Kl(t,l){if(t&&l)for(var o in l)l.hasOwnProperty(o)&&(t[o]=l[o]);return t}function Wt(t,l){return Math.round(t.top)===Math.round(l.top)&&Math.round(t.left)===Math.round(l.left)&&Math.round(t.height)===Math.round(l.height)&&Math.round(t.width)===Math.round(l.width)}var at;function ll(t,l){return function(){if(!at){var o=arguments,n=this;o.length===1?t.call(n,o[0]):t.apply(n,o),at=setTimeout(function(){at=void 0},l)}}}function Zl(){clearTimeout(at),at=void 0}function nl(t,l,o){t.scrollLeft+=l,t.scrollTop+=o}function al(t){var l=window.Polymer,o=window.jQuery||window.Zepto;return l&&l.dom?l.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}function il(t,l,o){var n={};return Array.from(t.children).forEach(function(r){var i,a,d,c;if(!(!_e(r,l.draggable,t,!1)||r.animated||r===o)){var h=se(r);n.left=Math.min((i=n.left)!==null&&i!==void 0?i:1/0,h.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,h.top),n.right=Math.max((d=n.right)!==null&&d!==void 0?d:-1/0,h.right),n.bottom=Math.max((c=n.bottom)!==null&&c!==void 0?c:-1/0,h.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var ye="Sortable"+new Date().getTime();function Ql(){var t=[],l;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(P(n,"display")==="none"||n===I.ghost)){t.push({target:n,rect:se(n)});var r=Ne({},t[t.length-1].rect);if(n.thisAnimationDuration){var i=Je(n,!0);i&&(r.top-=i.f,r.left-=i.e)}n.fromRect=r}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Jl(t,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(l),typeof o=="function"&&o();return}var r=!1,i=0;t.forEach(function(a){var d=0,c=a.target,h=c.fromRect,u=se(c),s=c.prevFromRect,b=c.prevToRect,y=a.rect,D=Je(c,!0);D&&(u.top-=D.f,u.left-=D.e),c.toRect=u,c.thisAnimationDuration&&Wt(s,u)&&!Wt(h,u)&&(y.top-u.top)/(y.left-u.left)===(h.top-u.top)/(h.left-u.left)&&(d=tn(y,s,b,n.options)),Wt(u,h)||(c.prevFromRect=h,c.prevToRect=u,d||(d=n.options.animation),n.animate(c,y,u,d)),d&&(r=!0,i=Math.max(i,d),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},d),c.thisAnimationDuration=d)}),clearTimeout(l),r?l=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),t=[]},animate:function(o,n,r,i){if(i){P(o,"transition",""),P(o,"transform","");var a=Je(this.el),d=a&&a.a,c=a&&a.d,h=(n.left-r.left)/(d||1),u=(n.top-r.top)/(c||1);o.animatingX=!!h,o.animatingY=!!u,P(o,"transform","translate3d("+h+"px,"+u+"px,0)"),this.forRepaintDummy=en(o),P(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),P(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){P(o,"transition",""),P(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function en(t){return t.offsetWidth}function tn(t,l,o,n){return Math.sqrt(Math.pow(l.top-t.top,2)+Math.pow(l.left-t.left,2))/Math.sqrt(Math.pow(l.top-o.top,2)+Math.pow(l.left-o.left,2))*n.animation}var He=[],Ht={initializeByDefault:!0},dt={mount:function(t){for(var l in Ht)Ht.hasOwnProperty(l)&&!(l in t)&&(t[l]=Ht[l]);He.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),He.push(t)},pluginEvent:function(t,l,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=t+"Global";He.forEach(function(i){l[i.pluginName]&&(l[i.pluginName][r]&&l[i.pluginName][r](Ne({sortable:l},o)),l.options[i.pluginName]&&l[i.pluginName][t]&&l[i.pluginName][t](Ne({sortable:l},o)))})},initializePlugins:function(t,l,o,n){He.forEach(function(a){var d=a.pluginName;if(!(!t.options[d]&&!a.initializeByDefault)){var c=new a(t,l,t.options);c.sortable=t,c.options=t.options,t[d]=c,De(o,c.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i<"u"&&(t.options[r]=i)}},getEventProperties:function(t,l){var o={};return He.forEach(function(n){typeof n.eventProperties=="function"&&De(o,n.eventProperties.call(l[n.pluginName],t))}),o},modifyOption:function(t,l,o){var n;return He.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[l]=="function"&&(n=r.optionListeners[l].call(t[r.pluginName],o))}),n}};function on(t){var l=t.sortable,o=t.rootEl,n=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,d=t.fromEl,c=t.oldIndex,h=t.newIndex,u=t.oldDraggableIndex,s=t.newDraggableIndex,b=t.originalEvent,y=t.putSortable,D=t.extraEventProperties;if(l=l||o&&o[ye],!!l){var _,E=l.options,$="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Ee&&!ut?_=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(n,!0,!0)),_.to=a||o,_.from=d||o,_.item=r||o,_.clone=i,_.oldIndex=c,_.newIndex=h,_.oldDraggableIndex=u,_.newDraggableIndex=s,_.originalEvent=b,_.pullMode=y?y.lastPutMode:void 0;var L=Ne(Ne({},D),dt.getEventProperties(n,l));for(var W in L)_[W]=L[W];o&&o.dispatchEvent(_),E[$]&&E[$].call(l,_)}}var ln=["evt"],ve=function(t,l){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,r=Xl(o,ln);dt.pluginEvent.bind(I)(t,l,Ne({dragEl:w,parentEl:ae,ghostEl:F,rootEl:le,nextEl:Ue,lastDownEl:Et,cloneEl:ne,cloneHidden:$e,dragStarted:tt,putSortable:de,activeSortable:I.active,originalEvent:n,oldIndex:Ge,oldDraggableIndex:it,newIndex:ge,newDraggableIndex:Oe,hideGhostForTarget:dl,unhideGhostForTarget:cl,cloneNowHidden:function(){$e=!0},cloneNowShown:function(){$e=!1},dispatchSortableEvent:function(i){me({sortable:l,name:i,originalEvent:n})}},r))};function me(t){on(Ne({putSortable:de,cloneEl:ne,targetEl:w,rootEl:le,oldIndex:Ge,oldDraggableIndex:it,newIndex:ge,newDraggableIndex:Oe},t))}var w,ae,F,le,Ue,Et,ne,$e,Ge,ge,it,Oe,St,de,Xe=!1,It=!1,At=[],Le,we,Yt,Xt,Lo,jo,tt,Ye,rt,st=!1,Vt=!1,Tt,pe,qt=[],Qt=!1,Rt=[],jt=typeof document<"u",xt=Qo,Uo=ut||Ee?"cssFloat":"float",nn=jt&&!el&&!Qo&&"draggable"in document.createElement("div"),rl=function(){if(jt){if(Ee)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),sl=function(t,l){var o=P(t),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Ke(t,0,l),i=Ke(t,1,l),a=r&&P(r),d=i&&P(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+se(r).width,h=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+se(i).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return i&&(d.clear==="both"||d.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=n&&o[Uo]==="none"||i&&o[Uo]==="none"&&c+h>n)?"vertical":"horizontal"},an=function(t,l,o){var n=o?t.left:t.top,r=o?t.right:t.bottom,i=o?t.width:t.height,a=o?l.left:l.top,d=o?l.right:l.bottom,c=o?l.width:l.height;return n===a||r===d||n+i/2===a+c/2},rn=function(t,l){var o;return At.some(function(n){var r=n[ye].options.emptyInsertThreshold;if(!(!r||no(n))){var i=se(n),a=t>=i.left-r&&t<=i.right+r,d=l>=i.top-r&&l<=i.bottom+r;if(a&&d)return o=n}}),o},ul=function(t){function l(r,i){return function(a,d,c,h){var u=a.options.group.name&&d.options.group.name&&a.options.group.name===d.options.group.name;if(r==null&&(i||u))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return l(r(a,d,c,h),i)(a,d,c,h);var s=(i?a:d).options.group.name;return r===!0||typeof r=="string"&&r===s||r.join&&r.indexOf(s)>-1}}var o={},n=t.group;(!n||Dt(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=l(n.pull,!0),o.checkPut=l(n.put),o.revertClone=n.revertClone,t.group=o},dl=function(){!rl&&F&&P(F,"display","none")},cl=function(){!rl&&F&&P(F,"display","")};jt&&!el&&document.addEventListener("click",function(t){if(It)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),It=!1,!1},!0);var je=function(t){if(w){t=t.touches?t.touches[0]:t;var l=rn(t.clientX,t.clientY);if(l){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=l,o.preventDefault=void 0,o.stopPropagation=void 0,l[ye]._onDragOver(o)}}},sn=function(t){w&&w.parentNode[ye]._isOutsideThisEl(t.target)};function I(t,l){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=l=De({},l),t[ye]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return sl(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.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:I.supportPointer!==!1&&"PointerEvent"in window&&!nt,emptyInsertThreshold:5};dt.initializePlugins(this,t,o);for(var n in o)!(n in l)&&(l[n]=o[n]);ul(l);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=l.forceFallback?!1:nn,this.nativeDraggable&&(this.options.touchStartThreshold=1),l.supportPointer?q(t,"pointerdown",this._onTapStart):(q(t,"mousedown",this._onTapStart),q(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(q(t,"dragover",this),q(t,"dragenter",this)),At.push(this.el),l.store&&l.store.get&&this.sort(l.store.get(this)||[]),De(this,Ql())}I.prototype={constructor:I,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ye=null)},_getDirection:function(t,l){return typeof this.options.direction=="function"?this.options.direction.call(this,t,l,w):this.options.direction},_onTapStart:function(t){if(t.cancelable){var l=this,o=this.el,n=this.options,r=n.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,d=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||d,h=n.filter;if(vn(o),!w&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&nt&&d&&d.tagName.toUpperCase()==="SELECT")&&(d=_e(d,n.draggable,o,!1),!(d&&d.animated)&&Et!==d)){if(Ge=Ce(d),it=Ce(d,n.draggable),typeof h=="function"){if(h.call(this,t,d,this)){me({sortable:l,rootEl:c,name:"filter",targetEl:d,toEl:o,fromEl:o}),ve("filter",l,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(u){if(u=_e(c,u.trim(),o,!1),u)return me({sortable:l,rootEl:u,name:"filter",targetEl:d,fromEl:o,toEl:o}),ve("filter",l,{evt:t}),!0}),h)){r&&t.cancelable&&t.preventDefault();return}n.handle&&!_e(c,n.handle,o,!1)||this._prepareDragStart(t,a,d)}}},_prepareDragStart:function(t,l,o){var n=this,r=n.el,i=n.options,a=r.ownerDocument,d;if(o&&!w&&o.parentNode===r){var c=se(o);if(le=r,w=o,ae=w.parentNode,Ue=w.nextSibling,Et=o,St=i.group,I.dragged=w,Le={target:w,clientX:(l||t).clientX,clientY:(l||t).clientY},Lo=Le.clientX-c.left,jo=Le.clientY-c.top,this._lastX=(l||t).clientX,this._lastY=(l||t).clientY,w.style["will-change"]="all",d=function(){if(ve("delayEnded",n,{evt:t}),I.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Io&&n.nativeDraggable&&(w.draggable=!0),n._triggerDragStart(t,l),me({sortable:n,name:"choose",originalEvent:t}),be(w,i.chosenClass,!0)},i.ignore.split(",").forEach(function(h){ol(w,h.trim(),Gt)}),q(a,"dragover",je),q(a,"mousemove",je),q(a,"touchmove",je),q(a,"mouseup",n._onDrop),q(a,"touchend",n._onDrop),q(a,"touchcancel",n._onDrop),Io&&this.nativeDraggable&&(this.options.touchStartThreshold=4,w.draggable=!0),ve("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||l)&&(!this.nativeDraggable||!(ut||Ee))){if(I.eventCanceled){this._onDrop();return}q(a,"mouseup",n._disableDelayedDrag),q(a,"touchend",n._disableDelayedDrag),q(a,"touchcancel",n._disableDelayedDrag),q(a,"mousemove",n._delayedDragTouchMoveHandler),q(a,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&q(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(d,i.delay)}else d()}},_delayedDragTouchMoveHandler:function(t){var l=t.touches?t.touches[0]:t;Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){w&&Gt(w),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Y(t,"mouseup",this._disableDelayedDrag),Y(t,"touchend",this._disableDelayedDrag),Y(t,"touchcancel",this._disableDelayedDrag),Y(t,"mousemove",this._delayedDragTouchMoveHandler),Y(t,"touchmove",this._delayedDragTouchMoveHandler),Y(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,l){l=l||t.pointerType=="touch"&&t,!this.nativeDraggable||l?this.options.supportPointer?q(document,"pointermove",this._onTouchMove):l?q(document,"touchmove",this._onTouchMove):q(document,"mousemove",this._onTouchMove):(q(w,"dragend",this),q(le,"dragstart",this._onDragStart));try{document.selection?Mt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,l){if(Xe=!1,le&&w){ve("dragStarted",this,{evt:l}),this.nativeDraggable&&q(document,"dragover",sn);var o=this.options;!t&&be(w,o.dragClass,!1),be(w,o.ghostClass,!0),I.active=this,t&&this._appendGhost(),me({sortable:this,name:"start",originalEvent:l})}else this._nulling()},_emulateDragOver:function(){if(we){this._lastX=we.clientX,this._lastY=we.clientY,dl();for(var t=document.elementFromPoint(we.clientX,we.clientY),l=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(we.clientX,we.clientY),t!==l);)l=t;if(w.parentNode[ye]._isOutsideThisEl(t),l)do{if(l[ye]){var o=void 0;if(o=l[ye]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:t,rootEl:l}),o&&!this.options.dragoverBubble)break}t=l}while(l=l.parentNode);cl()}},_onTouchMove:function(t){if(Le){var l=this.options,o=l.fallbackTolerance,n=l.fallbackOffset,r=t.touches?t.touches[0]:t,i=F&&Je(F,!0),a=F&&i&&i.a,d=F&&i&&i.d,c=xt&&pe&&Fo(pe),h=(r.clientX-Le.clientX+n.x)/(a||1)+(c?c[0]-qt[0]:0)/(a||1),u=(r.clientY-Le.clientY+n.y)/(d||1)+(c?c[1]-qt[1]:0)/(d||1);if(!I.active&&!Xe){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(F){i?(i.e+=h-(Yt||0),i.f+=u-(Xt||0)):i={a:1,b:0,c:0,d:1,e:h,f:u};var s="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");P(F,"webkitTransform",s),P(F,"mozTransform",s),P(F,"msTransform",s),P(F,"transform",s),Yt=h,Xt=u,we=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!F){var t=this.options.fallbackOnBody?document.body:le,l=se(w,!0,xt,!0,t),o=this.options;if(xt){for(pe=t;P(pe,"position")==="static"&&P(pe,"transform")==="none"&&pe!==document;)pe=pe.parentNode;pe!==document.body&&pe!==document.documentElement?(pe===document&&(pe=xe()),l.top+=pe.scrollTop,l.left+=pe.scrollLeft):pe=xe(),qt=Fo(pe)}F=w.cloneNode(!0),be(F,o.ghostClass,!1),be(F,o.fallbackClass,!0),be(F,o.dragClass,!0),P(F,"transition",""),P(F,"transform",""),P(F,"box-sizing","border-box"),P(F,"margin",0),P(F,"top",l.top),P(F,"left",l.left),P(F,"width",l.width),P(F,"height",l.height),P(F,"opacity","0.8"),P(F,"position",xt?"absolute":"fixed"),P(F,"zIndex","100000"),P(F,"pointerEvents","none"),I.ghost=F,t.appendChild(F),P(F,"transform-origin",Lo/parseInt(F.style.width)*100+"% "+jo/parseInt(F.style.height)*100+"%")}},_onDragStart:function(t,l){var o=this,n=t.dataTransfer,r=o.options;if(ve("dragStart",this,{evt:t}),I.eventCanceled){this._onDrop();return}ve("setupClone",this),I.eventCanceled||(ne=al(w),ne.removeAttribute("id"),ne.draggable=!1,ne.style["will-change"]="",this._hideClone(),be(ne,this.options.chosenClass,!1),I.clone=ne),o.cloneId=Mt(function(){ve("clone",o),!I.eventCanceled&&(o.options.removeCloneOnHide||le.insertBefore(ne,w),o._hideClone(),me({sortable:o,name:"clone"}))}),!l&&be(w,r.dragClass,!0),l?(It=!0,o._loopId=setInterval(o._emulateDragOver,50)):(Y(document,"mouseup",o._onDrop),Y(document,"touchend",o._onDrop),Y(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,w)),q(document,"drop",o),P(w,"transform","translateZ(0)")),Xe=!0,o._dragStartId=Mt(o._dragStarted.bind(o,l,t)),q(document,"selectstart",o),tt=!0,nt&&P(document.body,"user-select","none")},_onDragOver:function(t){var l=this.el,o=t.target,n,r,i,a=this.options,d=a.group,c=I.active,h=St===d,u=a.sort,s=de||c,b,y=this,D=!1;if(Qt)return;function _(V,k){ve(V,y,Ne({evt:t,isOwner:h,axis:b?"vertical":"horizontal",revert:i,dragRect:n,targetRect:r,canSort:u,fromSortable:s,target:o,completed:$,onMove:function(v,B){return Nt(le,l,w,n,v,se(v),t,B)},changed:L},k))}function E(){_("dragOverAnimationCapture"),y.captureAnimationState(),y!==s&&s.captureAnimationState()}function $(V){return _("dragOverCompleted",{insertion:V}),V&&(h?c._hideClone():c._showClone(y),y!==s&&(be(w,de?de.options.ghostClass:c.options.ghostClass,!1),be(w,a.ghostClass,!0)),de!==y&&y!==I.active?de=y:y===I.active&&de&&(de=null),s===y&&(y._ignoreWhileAnimating=o),y.animateAll(function(){_("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(o===w&&!w.animated||o===l&&!o.animated)&&(Ye=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(w.parentNode[ye]._isOutsideThisEl(t.target),!V&&je(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),D=!0}function L(){ge=Ce(w),Oe=Ce(w,a.draggable),me({sortable:y,name:"change",toEl:l,newIndex:ge,newDraggableIndex:Oe,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=_e(o,a.draggable,l,!0),_("dragOver"),I.eventCanceled)return D;if(w.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||y._ignoreWhileAnimating===o)return $(!1);if(It=!1,c&&!a.disabled&&(h?u||(i=ae!==le):de===this||(this.lastPutMode=St.checkPull(this,c,w,t))&&d.checkPut(this,c,w,t))){if(b=this._getDirection(t,o)==="vertical",n=se(w),_("dragOverValid"),I.eventCanceled)return D;if(i)return ae=le,E(),this._hideClone(),_("revert"),I.eventCanceled||(Ue?le.insertBefore(w,Ue):le.appendChild(w)),$(!0);var W=no(l,a.draggable);if(!W||pn(t,b,this)&&!W.animated){if(W===w)return $(!1);if(W&&l===t.target&&(o=W),o&&(r=se(o)),Nt(le,l,w,n,o,r,t,!!o)!==!1)return E(),W&&W.nextSibling?l.insertBefore(w,W.nextSibling):l.appendChild(w),ae=l,L(),$(!0)}else if(W&&cn(t,b,this)){var J=Ke(l,0,a,!0);if(J===w)return $(!1);if(o=J,r=se(o),Nt(le,l,w,n,o,r,t,!1)!==!1)return E(),l.insertBefore(w,J),ae=l,L(),$(!0)}else if(o.parentNode===l){r=se(o);var j=0,G,ie=w.parentNode!==l,f=!an(w.animated&&w.toRect||n,o.animated&&o.toRect||r,b),g=b?"top":"left",N=Ro(o,"top","top")||Ro(w,"top","top"),z=N?N.scrollTop:void 0;Ye!==o&&(G=r[g],st=!1,Vt=!f&&a.invertSwap||ie),j=fn(t,o,r,b,f?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Vt,Ye===o);var M;if(j!==0){var R=Ce(w);do R-=j,M=ae.children[R];while(M&&(P(M,"display")==="none"||M===F))}if(j===0||M===o)return $(!1);Ye=o,rt=j;var p=o.nextElementSibling,m=!1;m=j===1;var T=Nt(le,l,w,n,o,r,t,m);if(T!==!1)return(T===1||T===-1)&&(m=T===1),Qt=!0,setTimeout(dn,30),E(),m&&!p?l.appendChild(w):o.parentNode.insertBefore(w,m?p:o),N&&nl(N,0,z-N.scrollTop),ae=w.parentNode,G!==void 0&&!Vt&&(Tt=Math.abs(G-se(o)[g])),L(),$(!0)}if(l.contains(w))return $(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Y(document,"mousemove",this._onTouchMove),Y(document,"touchmove",this._onTouchMove),Y(document,"pointermove",this._onTouchMove),Y(document,"dragover",je),Y(document,"mousemove",je),Y(document,"touchmove",je)},_offUpEvents:function(){var t=this.el.ownerDocument;Y(t,"mouseup",this._onDrop),Y(t,"touchend",this._onDrop),Y(t,"pointerup",this._onDrop),Y(t,"touchcancel",this._onDrop),Y(document,"selectstart",this)},_onDrop:function(t){var l=this.el,o=this.options;if(ge=Ce(w),Oe=Ce(w,o.draggable),ve("drop",this,{evt:t}),ae=w&&w.parentNode,ge=Ce(w),Oe=Ce(w,o.draggable),I.eventCanceled){this._nulling();return}Xe=!1,Vt=!1,st=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),eo(this.cloneId),eo(this._dragStartId),this.nativeDraggable&&(Y(document,"drop",this),Y(l,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),nt&&P(document.body,"user-select",""),P(w,"transform",""),t&&(tt&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),F&&F.parentNode&&F.parentNode.removeChild(F),(le===ae||de&&de.lastPutMode!=="clone")&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),w&&(this.nativeDraggable&&Y(w,"dragend",this),Gt(w),w.style["will-change"]="",tt&&!Xe&&be(w,de?de.options.ghostClass:this.options.ghostClass,!1),be(w,this.options.chosenClass,!1),me({sortable:this,name:"unchoose",toEl:ae,newIndex:null,newDraggableIndex:null,originalEvent:t}),le!==ae?(ge>=0&&(me({rootEl:ae,name:"add",toEl:ae,fromEl:le,originalEvent:t}),me({sortable:this,name:"remove",toEl:ae,originalEvent:t}),me({rootEl:ae,name:"sort",toEl:ae,fromEl:le,originalEvent:t}),me({sortable:this,name:"sort",toEl:ae,originalEvent:t})),de&&de.save()):ge!==Ge&&ge>=0&&(me({sortable:this,name:"update",toEl:ae,originalEvent:t}),me({sortable:this,name:"sort",toEl:ae,originalEvent:t})),I.active&&((ge==null||ge===-1)&&(ge=Ge,Oe=it),me({sortable:this,name:"end",toEl:ae,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ve("nulling",this),le=w=ae=F=Ue=ne=Et=$e=Le=we=tt=ge=Oe=Ge=it=Ye=rt=de=St=I.dragged=I.ghost=I.clone=I.active=null,Rt.forEach(function(t){t.checked=!0}),Rt.length=Yt=Xt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":w&&(this._onDragOver(t),un(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],l,o=this.el.children,n=0,r=o.length,i=this.options;n<r;n++)l=o[n],_e(l,i.draggable,this.el,!1)&&t.push(l.getAttribute(i.dataIdAttr)||hn(l));return t},sort:function(t,l){var o={},n=this.el;this.toArray().forEach(function(r,i){var a=n.children[i];_e(a,this.options.draggable,n,!1)&&(o[r]=a)},this),l&&this.captureAnimationState(),t.forEach(function(r){o[r]&&(n.removeChild(o[r]),n.appendChild(o[r]))}),l&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,l){return _e(t,l||this.options.draggable,this.el,!1)},option:function(t,l){var o=this.options;if(l===void 0)return o[t];var n=dt.modifyOption(this,t,l);typeof n<"u"?o[t]=n:o[t]=l,t==="group"&&ul(o)},destroy:function(){ve("destroy",this);var t=this.el;t[ye]=null,Y(t,"mousedown",this._onTapStart),Y(t,"touchstart",this._onTapStart),Y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Y(t,"dragover",this),Y(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(l){l.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),At.splice(At.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!$e){if(ve("hideClone",this),I.eventCanceled)return;P(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),$e=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if($e){if(ve("showClone",this),I.eventCanceled)return;w.parentNode==le&&!this.options.group.revertClone?le.insertBefore(ne,w):Ue?le.insertBefore(ne,Ue):le.appendChild(ne),this.options.group.revertClone&&this.animate(w,ne),P(ne,"display",""),$e=!1}}};function un(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Nt(t,l,o,n,r,i,a,d){var c,h=t[ye],u=h.options.onMove,s;return window.CustomEvent&&!Ee&&!ut?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=l,c.from=t,c.dragged=o,c.draggedRect=n,c.related=r||l,c.relatedRect=i||se(l),c.willInsertAfter=d,c.originalEvent=a,t.dispatchEvent(c),u&&(s=u.call(h,c,a)),s}function Gt(t){t.draggable=!1}function dn(){Qt=!1}function cn(t,l,o){var n=se(Ke(o.el,0,o.options,!0)),r=il(o.el,o.options,F),i=10;return l?t.clientX<r.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-i||t.clientY<n.bottom&&t.clientX<n.left}function pn(t,l,o){var n=se(no(o.el,o.options.draggable)),r=il(o.el,o.options,F),i=10;return l?t.clientX>r.right+i||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+i||t.clientX>n.right&&t.clientY>n.top}function fn(t,l,o,n,r,i,a,d){var c=n?t.clientY:t.clientX,h=n?o.height:o.width,u=n?o.top:o.left,s=n?o.bottom:o.right,b=!1;if(!a){if(d&&Tt<h*r){if(!st&&(rt===1?c>u+h*i/2:c<s-h*i/2)&&(st=!0),st)b=!0;else if(rt===1?c<u+Tt:c>s-Tt)return-rt}else if(c>u+h*(1-r)/2&&c<s-h*(1-r)/2)return mn(l)}return b=b||a,b&&(c<u+h*i/2||c>s-h*i/2)?c>u+h/2?1:-1:0}function mn(t){return Ce(w)<Ce(t)?1:-1}function hn(t){for(var l=t.tagName+t.className+t.src+t.href+t.textContent,o=l.length,n=0;o--;)n+=l.charCodeAt(o);return n.toString(36)}function vn(t){Rt.length=0;for(var l=t.getElementsByTagName("input"),o=l.length;o--;){var n=l[o];n.checked&&Rt.push(n)}}function Mt(t){return setTimeout(t,0)}function eo(t){return clearTimeout(t)}jt&&q(document,"touchmove",function(t){(I.active||Xe)&&t.cancelable&&t.preventDefault()});I.utils={on:q,off:Y,css:P,find:ol,is:function(t,l){return!!_e(t,l,t,!1)},extend:Kl,throttle:ll,closest:_e,toggleClass:be,clone:al,index:Ce,nextTick:Mt,cancelNextTick:eo,detectDirection:sl,getChild:Ke};I.get=function(t){return t[ye]};I.mount=function(){for(var t=arguments.length,l=new Array(t),o=0;o<t;o++)l[o]=arguments[o];l[0].constructor===Array&&(l=l[0]),l.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.