=0)&&Object.prototype.propertyIsEnumerable.call(u,s)&&(a[s]=u[s])}return a}var Oh="1.15.1";function fn(u){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(u)}var dn=fn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xi=fn(/Edge/i),hf=fn(/firefox/i),pi=fn(/safari/i)&&!fn(/chrome/i)&&!fn(/android/i),wf=fn(/iP(ad|od|hone)/i),Sf=fn(/chrome/i)&&fn(/android/i),kf={capture:!1,passive:!1};function Le(u,o,a){u.addEventListener(o,a,!dn&&kf)}function Ce(u,o,a){u.removeEventListener(o,a,!dn&&kf)}function Do(u,o){if(o){if(o[0]===">"&&(o=o.substring(1)),u)try{if(u.matches)return u.matches(o);if(u.msMatchesSelector)return u.msMatchesSelector(o);if(u.webkitMatchesSelector)return u.webkitMatchesSelector(o)}catch(a){return!1}return!1}}function Ih(u){return u.host&&u!==document&&u.host.nodeType?u.host:u.parentNode}function Vt(u,o,a,s){if(u){a=a||document;do{if(o!=null&&(o[0]===">"?u.parentNode===a&&Do(u,o):Do(u,o))||s&&u===a)return u;if(u===a)break}while(u=Ih(u))}return null}var pf=/\s+/g;function Ft(u,o,a){if(u&&o)if(u.classList)u.classList[a?"add":"remove"](o);else{var s=(" "+u.className+" ").replace(pf," ").replace(" "+o+" "," ");u.className=(s+(a?" "+o:"")).replace(pf," ")}}function fe(u,o,a){var s=u&&u.style;if(s){if(a===void 0)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(u,""):u.currentStyle&&(a=u.currentStyle),o===void 0?a:a[o];!(o in s)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),s[o]=a+(typeof a=="string"?"":"px")}}function kr(u,o){var a="";if(typeof u=="string")a=u;else do{var s=fe(u,"transform");s&&s!=="none"&&(a=s+" "+a)}while(!o&&(u=u.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(a)}function Cf(u,o,a){if(u){var s=u.getElementsByTagName(o),c=0,p=s.length;if(a)for(;c=p:g=c<=p,!g)return s;if(s===en())break;s=Dn(s,!1)}return!1}function Cr(u,o,a,s){for(var c=0,p=0,g=u.children;p2&&arguments[2]!==void 0?arguments[2]:{},c=s.evt,p=Nh(s,_h);bi.pluginEvent.bind(de)(o,a,tn({dragEl:$,parentEl:Ye,ghostEl:ve,rootEl:Re,nextEl:jn,lastDownEl:ko,cloneEl:Ge,cloneHidden:Ln,dragStarted:ci,putSortable:ct,activeSortable:de.active,originalEvent:c,oldIndex:Sr,oldDraggableIndex:mi,newIndex:Ht,newDraggableIndex:En,hideGhostForTarget:Of,unhideGhostForTarget:If,cloneNowHidden:function(){Ln=!0},cloneNowShown:function(){Ln=!1},dispatchSortableEvent:function(v){Ct({sortable:a,name:v,originalEvent:c})}},p))};function Ct(u){zh(tn({putSortable:ct,cloneEl:Ge,targetEl:$,rootEl:Re,oldIndex:Sr,oldDraggableIndex:mi,newIndex:Ht,newDraggableIndex:En},u))}var $,Ye,ve,Re,jn,ko,Ge,Ln,Sr,Ht,mi,En,yo,ct,wr=!1,To=!1,Mo=[],qn,Xt,Sl,kl,vf,yf,ci,br,vi,yi=!1,xo=!1,Co,gt,Cl=[],Ml=!1,Ao=[],Oo=typeof document!="undefined",bo=wf,xf=xi||dn?"cssFloat":"float",Gh=Oo&&!Sf&&!wf&&"draggable"in document.createElement("div"),Mf=function(){if(Oo){if(dn)return!1;var u=document.createElement("x");return u.style.cssText="pointer-events:auto",u.style.pointerEvents==="auto"}}(),Af=function(o,a){var s=fe(o),c=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),p=Cr(o,0,a),g=Cr(o,1,a),v=p&&fe(p),b=g&&fe(g),w=v&&parseInt(v.marginLeft)+parseInt(v.marginRight)+Ze(p).width,L=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+Ze(g).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(p&&v.float&&v.float!=="none"){var N=v.float==="left"?"left":"right";return g&&(b.clear==="both"||b.clear===N)?"vertical":"horizontal"}return p&&(v.display==="block"||v.display==="flex"||v.display==="table"||v.display==="grid"||w>=c&&s[xf]==="none"||g&&s[xf]==="none"&&w+L>c)?"vertical":"horizontal"},Uh=function(o,a,s){var c=s?o.left:o.top,p=s?o.right:o.bottom,g=s?o.width:o.height,v=s?a.left:a.top,b=s?a.right:a.bottom,w=s?a.width:a.height;return c===v||p===b||c+g/2===v+w/2},qh=function(o,a){var s;return Mo.some(function(c){var p=c[Pt].options.emptyInsertThreshold;if(!(!p||Il(c))){var g=Ze(c),v=o>=g.left-p&&o<=g.right+p,b=a>=g.top-p&&a<=g.bottom+p;if(v&&b)return s=c}}),s},Nf=function(o){function a(p,g){return function(v,b,w,L){var N=v.options.group.name&&b.options.group.name&&v.options.group.name===b.options.group.name;if(p==null&&(g||N))return!0;if(p==null||p===!1)return!1;if(g&&p==="clone")return p;if(typeof p=="function")return a(p(v,b,w,L),g)(v,b,w,L);var A=(g?v:b).options.group.name;return p===!0||typeof p=="string"&&p===A||p.join&&p.indexOf(A)>-1}}var s={},c=o.group;(!c||So(c)!="object")&&(c={name:c}),s.name=c.name,s.checkPull=a(c.pull,!0),s.checkPut=a(c.put),s.revertClone=c.revertClone,o.group=s},Of=function(){!Mf&&ve&&fe(ve,"display","none")},If=function(){!Mf&&ve&&fe(ve,"display","")};Oo&&!Sf&&document.addEventListener("click",function(u){if(To)return u.preventDefault(),u.stopPropagation&&u.stopPropagation(),u.stopImmediatePropagation&&u.stopImmediatePropagation(),To=!1,!1},!0);var Yn=function(o){if($){o=o.touches?o.touches[0]:o;var a=qh(o.clientX,o.clientY);if(a){var s={};for(var c in o)o.hasOwnProperty(c)&&(s[c]=o[c]);s.target=s.rootEl=a,s.preventDefault=void 0,s.stopPropagation=void 0,a[Pt]._onDragOver(s)}}},Yh=function(o){$&&$.parentNode[Pt]._isOutsideThisEl(o.target)};function de(u,o){if(!(u&&u.nodeType&&u.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(u));this.el=u,this.options=o=cn({},o),u[Pt]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(u.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Af(u,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(g,v){g.setData("Text",v.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:de.supportPointer!==!1&&"PointerEvent"in window&&!pi,emptyInsertThreshold:5};bi.initializePlugins(this,u,a);for(var s in a)!(s in o)&&(o[s]=a[s]);Nf(o);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=o.forceFallback?!1:Gh,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?Le(u,"pointerdown",this._onTapStart):(Le(u,"mousedown",this._onTapStart),Le(u,"touchstart",this._onTapStart)),this.nativeDraggable&&(Le(u,"dragover",this),Le(u,"dragenter",this)),Mo.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),cn(this,Bh())}de.prototype={constructor:de,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(br=null)},_getDirection:function(o,a){return typeof this.options.direction=="function"?this.options.direction.call(this,o,a,$):this.options.direction},_onTapStart:function(o){if(o.cancelable){var a=this,s=this.el,c=this.options,p=c.preventOnFilter,g=o.type,v=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,b=(v||o).target,w=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||b,L=c.filter;if(Vh(s),!$&&!(/mousedown|pointerdown/.test(g)&&o.button!==0||c.disabled)&&!w.isContentEditable&&!(!this.nativeDraggable&&pi&&b&&b.tagName.toUpperCase()==="SELECT")&&(b=Vt(b,c.draggable,s,!1),!(b&&b.animated)&&ko!==b)){if(Sr=Rt(b),mi=Rt(b,c.draggable),typeof L=="function"){if(L.call(this,o,b,this)){Ct({sortable:a,rootEl:w,name:"filter",targetEl:b,toEl:s,fromEl:s}),At("filter",a,{evt:o}),p&&o.cancelable&&o.preventDefault();return}}else if(L&&(L=L.split(",").some(function(N){if(N=Vt(w,N.trim(),s,!1),N)return Ct({sortable:a,rootEl:N,name:"filter",targetEl:b,fromEl:s,toEl:s}),At("filter",a,{evt:o}),!0}),L)){p&&o.cancelable&&o.preventDefault();return}c.handle&&!Vt(w,c.handle,s,!1)||this._prepareDragStart(o,v,b)}}},_prepareDragStart:function(o,a,s){var c=this,p=c.el,g=c.options,v=p.ownerDocument,b;if(s&&!$&&s.parentNode===p){var w=Ze(s);if(Re=p,$=s,Ye=$.parentNode,jn=$.nextSibling,ko=s,yo=g.group,de.dragged=$,qn={target:$,clientX:(a||o).clientX,clientY:(a||o).clientY},vf=qn.clientX-w.left,yf=qn.clientY-w.top,this._lastX=(a||o).clientX,this._lastY=(a||o).clientY,$.style["will-change"]="all",b=function(){if(At("delayEnded",c,{evt:o}),de.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!hf&&c.nativeDraggable&&($.draggable=!0),c._triggerDragStart(o,a),Ct({sortable:c,name:"choose",originalEvent:o}),Ft($,g.chosenClass,!0)},g.ignore.split(",").forEach(function(L){Cf($,L.trim(),El)}),Le(v,"dragover",Yn),Le(v,"mousemove",Yn),Le(v,"touchmove",Yn),Le(v,"mouseup",c._onDrop),Le(v,"touchend",c._onDrop),Le(v,"touchcancel",c._onDrop),hf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$.draggable=!0),At("delayStart",this,{evt:o}),g.delay&&(!g.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(xi||dn))){if(de.eventCanceled){this._onDrop();return}Le(v,"mouseup",c._disableDelayedDrag),Le(v,"touchend",c._disableDelayedDrag),Le(v,"touchcancel",c._disableDelayedDrag),Le(v,"mousemove",c._delayedDragTouchMoveHandler),Le(v,"touchmove",c._delayedDragTouchMoveHandler),g.supportPointer&&Le(v,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(b,g.delay)}else b()}},_delayedDragTouchMoveHandler:function(o){var a=o.touches?o.touches[0]:o;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){$&&El($),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;Ce(o,"mouseup",this._disableDelayedDrag),Ce(o,"touchend",this._disableDelayedDrag),Ce(o,"touchcancel",this._disableDelayedDrag),Ce(o,"mousemove",this._delayedDragTouchMoveHandler),Ce(o,"touchmove",this._delayedDragTouchMoveHandler),Ce(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,a){a=a||o.pointerType=="touch"&&o,!this.nativeDraggable||a?this.options.supportPointer?Le(document,"pointermove",this._onTouchMove):a?Le(document,"touchmove",this._onTouchMove):Le(document,"mousemove",this._onTouchMove):(Le($,"dragend",this),Le(Re,"dragstart",this._onDragStart));try{document.selection?Eo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(s){}},_dragStarted:function(o,a){if(wr=!1,Re&&$){At("dragStarted",this,{evt:a}),this.nativeDraggable&&Le(document,"dragover",Yh);var s=this.options;!o&&Ft($,s.dragClass,!1),Ft($,s.ghostClass,!0),de.active=this,o&&this._appendGhost(),Ct({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Xt){this._lastX=Xt.clientX,this._lastY=Xt.clientY,Of();for(var o=document.elementFromPoint(Xt.clientX,Xt.clientY),a=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(Xt.clientX,Xt.clientY),o!==a);)a=o;if($.parentNode[Pt]._isOutsideThisEl(o),a)do{if(a[Pt]){var s=void 0;if(s=a[Pt]._onDragOver({clientX:Xt.clientX,clientY:Xt.clientY,target:o,rootEl:a}),s&&!this.options.dragoverBubble)break}o=a}while(a=a.parentNode);If()}},_onTouchMove:function(o){if(qn){var a=this.options,s=a.fallbackTolerance,c=a.fallbackOffset,p=o.touches?o.touches[0]:o,g=ve&&kr(ve,!0),v=ve&&g&&g.a,b=ve&&g&&g.d,w=bo&>&&mf(gt),L=(p.clientX-qn.clientX+c.x)/(v||1)+(w?w[0]-Cl[0]:0)/(v||1),N=(p.clientY-qn.clientY+c.y)/(b||1)+(w?w[1]-Cl[1]:0)/(b||1);if(!de.active&&!wr){if(s&&Math.max(Math.abs(p.clientX-this._lastX),Math.abs(p.clientY-this._lastY))=0&&(Ct({rootEl:Ye,name:"add",toEl:Ye,fromEl:Re,originalEvent:o}),Ct({sortable:this,name:"remove",toEl:Ye,originalEvent:o}),Ct({rootEl:Ye,name:"sort",toEl:Ye,fromEl:Re,originalEvent:o}),Ct({sortable:this,name:"sort",toEl:Ye,originalEvent:o})),ct&&ct.save()):Ht!==Sr&&Ht>=0&&(Ct({sortable:this,name:"update",toEl:Ye,originalEvent:o}),Ct({sortable:this,name:"sort",toEl:Ye,originalEvent:o})),de.active&&((Ht==null||Ht===-1)&&(Ht=Sr,En=mi),Ct({sortable:this,name:"end",toEl:Ye,originalEvent:o}),this.save()))),this._nulling()},_nulling:function(){At("nulling",this),Re=$=Ye=ve=jn=Ge=ko=Ln=qn=Xt=ci=Ht=En=Sr=mi=br=vi=ct=yo=de.dragged=de.ghost=de.clone=de.active=null,Ao.forEach(function(o){o.checked=!0}),Ao.length=Sl=kl=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":$&&(this._onDragOver(o),jh(o));break;case"selectstart":o.preventDefault();break}},toArray:function(){for(var o=[],a,s=this.el.children,c=0,p=s.length,g=this.options;cc.right+p||u.clientY>s.bottom&&u.clientX>s.left:u.clientY>c.bottom+p||u.clientX>s.right&&u.clientY>s.top}function Qh(u,o,a,s,c,p,g,v){var b=s?u.clientY:u.clientX,w=s?a.height:a.width,L=s?a.top:a.left,N=s?a.bottom:a.right,A=!1;if(!g){if(v&&CoL+w*p/2:bN-Co)return-vi}else if(b>L+w*(1-c)/2&&bN-w*p/2)?b>L+w/2?1:-1:0}function Zh(u){return Rt($)