!function(a){"use strict";"function"==typeofdefine&&define.amd?define(a):"undefined"!=typeofmodule&&"undefined"!=typeofmodule.exports?module.exports=a():"undefined"!=typeofPackage?Sortable=a():window.Sortable=a()}(function(){"use strict";functiona(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=t({},b),a[Q]=this;varc={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0}};for(vardinc)!(dinb)&&(b[d]=c[d]);ba(b);for(vareinthis)"_"===e.charAt(0)&&"function"==typeofthis[e]&&(this[e]=this[e].bind(this));this.nativeDraggable=!b.forceFallback&&W,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),_.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}functionb(a){y&&y.state!==a&&(i(y,"display",a?"none":""),!a&&y.state&&z.insertBefore(y,v),y.state=a)}functionc(a,b,c){if(a){c=c||S;doif(">*"===b&&a.parentNode===c||r(a,b))returna;while(a=d(a))}returnnull}functiond(a){varb=a.host;returnb&&b.nodeType?b:a.parentNode}functione(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}functionf(a,b,c){a.addEventListener(b,c,!1)}functiong(a,b,c){a.removeEventListener(b,c,!1)}functionh(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{vard=(" "+a.className+" ").replace(P," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(P," ")}}functioni(a,b,c){vard=a&&a.style;if(d){if(void0===c)returnS.defaultView&&S.defaultView.getComputedStyle?c=S.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void0===b?c:c[b];bind||(b="-webkit-"+b),d[b]=c+("string"==typeofc?"":"px")}}functionj(a,b,c){if(a){vard=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;e<f;e++)c(d[e],e);returnd}return[]}functionk(a,b,c,d,e,f,g){a=a||b[Q];varh=S.createEvent("Event"),i=a.options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=y,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}functionl(a,b,c,d,e,f,g){varh,i,j=a[Q],k=j.options.onMove;returnh=S.createEvent("Event"),h.initEvent("move",!0,!0),h.to=b,h.from=a,h.dragged=c,h.draggedRect=d,h.related=e||b,h.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(h),k&&(i=k.call(j,h,g)),i}functionm(a){a.draggable=!1}functionn(){Y=!1}functiono(a,b){varc=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}functionp(a){for(varb=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);returnd.toString(36)}functionq(a,b){varc=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"===a.nodeName.toUpperCase()||">*"!==b&&!r(a,b)||c++;returnc}functionr(a,b){if(a){b=b.split(".");varc=b.shift().toUpperCase(),d=newRegExp("\\s("+b.join("|")+")(?=\\s)","g");return!(""!==c&&a.nodeName.toUpperCase()!=c||b.length&&((" "+a.className+" ").match(d)||[]).length!=b.length)}return!1}functions(a,b){varc,d;returnfunction(){void0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void0},b))}}functiont(a,b){if(a&&b)for(varcinb)b.hasOwnProperty(c)&&(a[c]=b[c]);returna}functionu(a){returnU?U(a).clone(!0)[0]:V&&V.dom?V.dom(a).cloneNode(!0):a.cloneNode(!0)}if("undefined"==typeofwindow||!window.document)returnfunction(){thrownewError("Sortable.js requires a window with a document")};varv,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O={},P=/\s+/g,Q="Sortable"+(newDate).getTime(),R=w