Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
static /
adminsortable2 /
js /
Delete
Unzip
Name
Size
Permission
Date
Action
adminsortable2.js
113.53
KB
-rw-r--r--
2026-06-24 16:29
adminsortable2.min.js
49.09
KB
-rw-r--r--
2026-06-24 16:29
Save
Rename
"use strict";(()=>{function Tt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),t.push.apply(t,n)}return t}function Z(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(t),!0).forEach(function(n){Qt(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Tt(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Ke(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ke=function(e){return typeof e}:Ke=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(o)}function Qt(o,e,t){return e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function z(){return z=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n])}return o},z.apply(this,arguments)}function en(o,e){if(o==null)return{};var t={},n=Object.keys(o),i,r;for(r=0;r<n.length;r++)i=n[r],!(e.indexOf(i)>=0)&&(t[i]=o[i]);return t}function tn(o,e){if(o==null)return{};var t=en(o,e),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i<r.length;i++)n=r[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(o,n)&&(t[n]=o[n])}return t}function nn(o){return on(o)||rn(o)||an(o)||ln()}function on(o){if(Array.isArray(o))return ht(o)}function rn(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function an(o,e){if(o){if(typeof o=="string")return ht(o,e);var t=Object.prototype.toString.call(o).slice(8,-1);if(t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set")return Array.from(o);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ht(o,e)}}function ht(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=o[t];return n}function ln(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sn="1.15.2";function ee(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var te=ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Be=ee(/Edge/i),It=ee(/firefox/i),Ne=ee(/safari/i)&&!ee(/chrome/i)&&!ee(/android/i),Bt=ee(/iP(ad|od|hone)/i),Ft=ee(/chrome/i)&&ee(/android/i),Lt={capture:!1,passive:!1};function E(o,e,t){o.addEventListener(e,t,!te&&Lt)}function y(o,e,t){o.removeEventListener(e,t,!te&&Lt)}function Je(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function un(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function W(o,e,t,n){if(o){t=t||document;do{if(e!=null&&(e[0]===">"?o.parentNode===t&&Je(o,e):Je(o,e))||n&&o===t)return o;if(o===t)break}while(o=un(o))}return null}var At=/\s+/g;function x(o,e,t){if(o&&e)if(o.classList)o.classList[t?"add":"remove"](e);else{var n=(" "+o.className+" ").replace(At," ").replace(" "+e+" "," ");o.className=(n+(t?" "+e:"")).replace(At," ")}}function h(o,e,t){var n=o&&o.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(t=o.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function he(o,e){var t="";if(typeof o=="string")t=o;else do{var n=h(o,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(o=o.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function Xt(o,e,t){if(o){var n=o.getElementsByTagName(e),i=0,r=n.length;if(t)for(;i<r;i++)t(n[i],i);return n}return[]}function J(){var o=document.scrollingElement;return o||document.documentElement}function C(o,e,t,n,i){if(!(!o.getBoundingClientRect&&o!==window)){var r,a,l,s,u,f,d;if(o!==window&&o.parentNode&&o!==J()?(r=o.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,f=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||t)&&o!==window&&(i=i||o.parentNode,!te))do if(i&&i.getBoundingClientRect&&(h(i,"transform")!=="none"||t&&h(i,"position")!=="static")){var p=i.getBoundingClientRect();a-=p.top+parseInt(h(i,"border-top-width")),l-=p.left+parseInt(h(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(n&&o!==window){var w=he(i||o),b=w&&w.a,S=w&&w.d;w&&(a/=S,l/=b,d/=b,f/=S,s=a+f,u=l+d)}return{top:a,left:l,bottom:s,right:u,width:d,height:f}}}function Ot(o,e,t){for(var n=ae(o,!0),i=C(o)[e];n;){var r=C(n)[t],a=void 0;if(t==="top"||t==="left"?a=i>=r:a=i<=r,!a)return n;if(n===J())break;n=ae(n,!1)}return!1}function ye(o,e,t,n){for(var i=0,r=0,a=o.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==g.ghost&&(n||a[r]!==g.dragged)&&W(a[r],t.draggable,o,!1)){if(i===e)return a[r];i++}r++}return null}function bt(o,e){for(var t=o.lastElementChild;t&&(t===g.ghost||h(t,"display")==="none"||e&&!Je(t,e));)t=t.previousElementSibling;return t||null}function N(o,e){var t=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==g.clone&&(!e||Je(o,e))&&t++;return t}function Mt(o){var e=0,t=0,n=J();if(o)do{var i=he(o),r=i.a,a=i.d;e+=o.scrollLeft*r,t+=o.scrollTop*a}while(o!==n&&(o=o.parentNode));return[e,t]}function cn(o,e){for(var t in o)if(o.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===o[t][n])return Number(t)}return-1}function ae(o,e){if(!o||!o.getBoundingClientRect)return J();var t=o,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=h(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return J();if(n||e)return t;n=!0}}while(t=t.parentNode);return J()}function dn(o,e){if(o&&e)for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);return o}function ot(o,e){return Math.round(o.top)===Math.round(e.top)&&Math.round(o.left)===Math.round(e.left)&&Math.round(o.height)===Math.round(e.height)&&Math.round(o.width)===Math.round(e.width)}var Pe;function Yt(o,e){return function(){if(!Pe){var t=arguments,n=this;t.length===1?o.call(n,t[0]):o.apply(n,t),Pe=setTimeout(function(){Pe=void 0},e)}}}function fn(){clearTimeout(Pe),Pe=void 0}function qt(o,e,t){o.scrollLeft+=e,o.scrollTop+=t}function yt(o){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(o).cloneNode(!0):t?t(o).clone(!0)[0]:o.cloneNode(!0)}function xt(o,e){h(o,"position","absolute"),h(o,"top",e.top),h(o,"left",e.left),h(o,"width",e.width),h(o,"height",e.height)}function it(o){h(o,"position",""),h(o,"top",""),h(o,"left",""),h(o,"width",""),h(o,"height","")}function Gt(o,e,t){var n={};return Array.from(o.children).forEach(function(i){var r,a,l,s;if(!(!W(i,e.draggable,o,!1)||i.animated||i===t)){var u=C(i);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,u.left),n.top=Math.min((a=n.top)!==null&&a!==void 0?a:1/0,u.top),n.right=Math.max((l=n.right)!==null&&l!==void 0?l:-1/0,u.right),n.bottom=Math.max((s=n.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var H="Sortable"+new Date().getTime();function hn(){var o=[],e;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(h(i,"display")==="none"||i===g.ghost)){o.push({target:i,rect:C(i)});var r=Z({},o[o.length-1].rect);if(i.thisAnimationDuration){var a=he(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(n){o.push(n)},removeAnimationState:function(n){o.splice(cn(o,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var r=!1,a=0;o.forEach(function(l){var s=0,u=l.target,f=u.fromRect,d=C(u),p=u.prevFromRect,w=u.prevToRect,b=l.rect,S=he(u,!0);S&&(d.top-=S.f,d.left-=S.e),u.toRect=d,u.thisAnimationDuration&&ot(p,d)&&!ot(f,d)&&(b.top-d.top)/(b.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(s=gn(b,p,w,i.options)),ot(d,f)||(u.prevFromRect=f,u.prevToRect=d,s||(s=i.options.animation),i.animate(u,b,d,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof n=="function"&&n()},a):typeof n=="function"&&n(),o=[]},animate:function(n,i,r,a){if(a){h(n,"transition",""),h(n,"transform","");var l=he(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-r.left)/(s||1),d=(i.top-r.top)/(u||1);n.animatingX=!!f,n.animatingY=!!d,h(n,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=pn(n),h(n,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),h(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){h(n,"transition",""),h(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},a)}}}}function pn(o){return o.offsetWidth}function gn(o,e,t,n){return Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var pe=[],rt={initializeByDefault:!0},Fe={mount:function(e){for(var t in rt)rt.hasOwnProperty(t)&&!(t in e)&&(e[t]=rt[t]);pe.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),pe.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";pe.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][r]&&t[a.pluginName][r](Z({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](Z({sortable:t},n)))})},initializePlugins:function(e,t,n,i){pe.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,t,e.options);u.sortable=e,u.options=e.options,e[s]=u,z(n,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,t){var n={};return pe.forEach(function(i){typeof i.eventProperties=="function"&&z(n,i.eventProperties.call(t[i.pluginName],e))}),n},modifyOption:function(e,t,n){var i;return pe.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(i=r.optionListeners[t].call(e[r.pluginName],n))}),i}};function Ae(o){var e=o.sortable,t=o.rootEl,n=o.name,i=o.targetEl,r=o.cloneEl,a=o.toEl,l=o.fromEl,s=o.oldIndex,u=o.newIndex,f=o.oldDraggableIndex,d=o.newDraggableIndex,p=o.originalEvent,w=o.putSortable,b=o.extraEventProperties;if(e=e||t&&t[H],!!e){var S,O=e.options,j="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!te&&!Be?S=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(n,!0,!0)),S.to=a||t,S.from=l||t,S.item=i||t,S.clone=r,S.oldIndex=s,S.newIndex=u,S.oldDraggableIndex=f,S.newDraggableIndex=d,S.originalEvent=p,S.pullMode=w?w.lastPutMode:void 0;var P=Z(Z({},b),Fe.getEventProperties(n,e));for(var F in P)S[F]=P[F];t&&t.dispatchEvent(S),O[j]&&O[j].call(e,S)}}var mn=["evt"],L=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=tn(n,mn);Fe.pluginEvent.bind(g)(e,t,Z({dragEl:c,parentEl:A,ghostEl:v,rootEl:T,nextEl:fe,lastDownEl:$e,cloneEl:I,cloneHidden:re,dragStarted:Oe,putSortable:k,activeSortable:g.active,originalEvent:i,oldIndex:be,oldDraggableIndex:ke,newIndex:G,newDraggableIndex:ie,hideGhostForTarget:$t,unhideGhostForTarget:zt,cloneNowHidden:function(){re=!0},cloneNowShown:function(){re=!1},dispatchSortableEvent:function(l){B({sortable:t,name:l,originalEvent:i})}},r))};function B(o){Ae(Z({putSortable:k,cloneEl:I,targetEl:c,rootEl:T,oldIndex:be,oldDraggableIndex:ke,newIndex:G,newDraggableIndex:ie},o))}var c,A,v,T,fe,$e,I,re,be,G,ke,ie,Xe,k,ve=!1,Ze=!1,Qe=[],ce,K,at,lt,Nt,Pt,Oe,ge,Re,He=!1,Ye=!1,ze,R,st=[],pt=!1,et=[],nt=typeof document<"u",qe=Bt,kt=Be||te?"cssFloat":"float",vn=nt&&!Ft&&!Bt&&"draggable"in document.createElement("div"),jt=function(){if(nt){if(te)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Wt=function(e,t){var n=h(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=ye(e,0,t),a=ye(e,1,t),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+C(r).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&n[kt]==="none"||a&&n[kt]==="none"&&u+f>i)?"vertical":"horizontal"},bn=function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,a=n?e.width:e.height,l=n?t.left:t.top,s=n?t.right:t.bottom,u=n?t.width:t.height;return i===l||r===s||i+a/2===l+u/2},yn=function(e,t){var n;return Qe.some(function(i){var r=i[H].options.emptyInsertThreshold;if(!(!r||bt(i))){var a=C(i),l=e>=a.left-r&&e<=a.right+r,s=t>=a.top-r&&t<=a.bottom+r;if(l&&s)return n=i}}),n},Kt=function(e){function t(r,a){return function(l,s,u,f){var d=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||d))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return t(r(l,s,u,f),a)(l,s,u,f);var p=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},i=e.group;(!i||Ke(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},$t=function(){!jt&&v&&h(v,"display","none")},zt=function(){!jt&&v&&h(v,"display","")};nt&&!Ft&&document.addEventListener("click",function(o){if(Ze)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Ze=!1,!1},!0);var de=function(e){if(c){e=e.touches?e.touches[0]:e;var t=yn(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[H]._onDragOver(n)}}},En=function(e){c&&c.parentNode[H]._isOutsideThisEl(e.target)};function g(o,e){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=e=z({},e),o[H]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Wt(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.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:g.supportPointer!==!1&&"PointerEvent"in window&&!Ne,emptyInsertThreshold:5};Fe.initializePlugins(this,o,t);for(var n in t)!(n in e)&&(e[n]=t[n]);Kt(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:vn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?E(o,"pointerdown",this._onTapStart):(E(o,"mousedown",this._onTapStart),E(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(o,"dragover",this),E(o,"dragenter",this)),Qe.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),z(this,hn())}g.prototype={constructor:g,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ge=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(An(n),!c&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ne&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=W(s,i.draggable,n,!1),!(s&&s.animated)&&$e!==s)){if(be=N(s),ke=N(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){B({sortable:t,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),L("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=W(u,d.trim(),n,!1),d)return B({sortable:t,rootEl:d,name:"filter",targetEl:s,fromEl:n,toEl:n}),L("filter",t,{evt:e}),!0}),f)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!W(u,i.handle,n,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,t,n){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(n&&!c&&n.parentNode===r){var u=C(n);if(T=r,c=n,A=c.parentNode,fe=c.nextSibling,$e=n,Xe=a.group,g.dragged=c,ce={target:c,clientX:(t||e).clientX,clientY:(t||e).clientY},Nt=ce.clientX-u.left,Pt=ce.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,c.style["will-change"]="all",s=function(){if(L("delayEnded",i,{evt:e}),g.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!It&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(e,t),B({sortable:i,name:"choose",originalEvent:e}),x(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){Xt(c,f.trim(),ut)}),E(l,"dragover",de),E(l,"mousemove",de),E(l,"touchmove",de),E(l,"mouseup",i._onDrop),E(l,"touchend",i._onDrop),E(l,"touchcancel",i._onDrop),It&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),L("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Be||te))){if(g.eventCanceled){this._onDrop();return}E(l,"mouseup",i._disableDelayedDrag),E(l,"touchend",i._disableDelayedDrag),E(l,"touchcancel",i._disableDelayedDrag),E(l,"mousemove",i._delayedDragTouchMoveHandler),E(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&E(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&ut(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._disableDelayedDrag),y(e,"touchend",this._disableDelayedDrag),y(e,"touchcancel",this._disableDelayedDrag),y(e,"mousemove",this._delayedDragTouchMoveHandler),y(e,"touchmove",this._delayedDragTouchMoveHandler),y(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?E(document,"pointermove",this._onTouchMove):t?E(document,"touchmove",this._onTouchMove):E(document,"mousemove",this._onTouchMove):(E(c,"dragend",this),E(T,"dragstart",this._onDragStart));try{document.selection?Ue(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(ve=!1,T&&c){L("dragStarted",this,{evt:t}),this.nativeDraggable&&E(document,"dragover",En);var n=this.options;!e&&x(c,n.dragClass,!1),x(c,n.ghostClass,!0),g.active=this,e&&this._appendGhost(),B({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(K){this._lastX=K.clientX,this._lastY=K.clientY,$t();for(var e=document.elementFromPoint(K.clientX,K.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(K.clientX,K.clientY),e!==t);)t=e;if(c.parentNode[H]._isOutsideThisEl(e),t)do{if(t[H]){var n=void 0;if(n=t[H]._onDragOver({clientX:K.clientX,clientY:K.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zt()}},_onTouchMove:function(e){if(ce){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=v&&he(v,!0),l=v&&a&&a.a,s=v&&a&&a.d,u=qe&&R&&Mt(R),f=(r.clientX-ce.clientX+i.x)/(l||1)+(u?u[0]-st[0]:0)/(l||1),d=(r.clientY-ce.clientY+i.y)/(s||1)+(u?u[1]-st[1]:0)/(s||1);if(!g.active&&!ve){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(v){a?(a.e+=f-(at||0),a.f+=d-(lt||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");h(v,"webkitTransform",p),h(v,"mozTransform",p),h(v,"msTransform",p),h(v,"transform",p),at=f,lt=d,K=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!v){var e=this.options.fallbackOnBody?document.body:T,t=C(c,!0,qe,!0,e),n=this.options;if(qe){for(R=e;h(R,"position")==="static"&&h(R,"transform")==="none"&&R!==document;)R=R.parentNode;R!==document.body&&R!==document.documentElement?(R===document&&(R=J()),t.top+=R.scrollTop,t.left+=R.scrollLeft):R=J(),st=Mt(R)}v=c.cloneNode(!0),x(v,n.ghostClass,!1),x(v,n.fallbackClass,!0),x(v,n.dragClass,!0),h(v,"transition",""),h(v,"transform",""),h(v,"box-sizing","border-box"),h(v,"margin",0),h(v,"top",t.top),h(v,"left",t.left),h(v,"width",t.width),h(v,"height",t.height),h(v,"opacity","0.8"),h(v,"position",qe?"absolute":"fixed"),h(v,"zIndex","100000"),h(v,"pointerEvents","none"),g.ghost=v,e.appendChild(v),h(v,"transform-origin",Nt/parseInt(v.style.width)*100+"% "+Pt/parseInt(v.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;if(L("dragStart",this,{evt:e}),g.eventCanceled){this._onDrop();return}L("setupClone",this),g.eventCanceled||(I=yt(c),I.removeAttribute("id"),I.draggable=!1,I.style["will-change"]="",this._hideClone(),x(I,this.options.chosenClass,!1),g.clone=I),n.cloneId=Ue(function(){L("clone",n),!g.eventCanceled&&(n.options.removeCloneOnHide||T.insertBefore(I,c),n._hideClone(),B({sortable:n,name:"clone"}))}),!t&&x(c,r.dragClass,!0),t?(Ze=!0,n._loopId=setInterval(n._emulateDragOver,50)):(y(document,"mouseup",n._onDrop),y(document,"touchend",n._onDrop),y(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,c)),E(document,"drop",n),h(c,"transform","translateZ(0)")),ve=!0,n._dragStartId=Ue(n._dragStarted.bind(n,t,e)),E(document,"selectstart",n),Oe=!0,Ne&&h(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,i,r,a,l=this.options,s=l.group,u=g.active,f=Xe===s,d=l.sort,p=k||u,w,b=this,S=!1;if(pt)return;function O(_e,Jt){L(_e,b,Z({evt:e,isOwner:f,axis:w?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:d,fromSortable:p,target:n,completed:P,onMove:function(Ct,Zt){return Ge(T,t,c,i,Ct,C(Ct),e,Zt)},changed:F},Jt))}function j(){O("dragOverAnimationCapture"),b.captureAnimationState(),b!==p&&p.captureAnimationState()}function P(_e){return O("dragOverCompleted",{insertion:_e}),_e&&(f?u._hideClone():u._showClone(b),b!==p&&(x(c,k?k.options.ghostClass:u.options.ghostClass,!1),x(c,l.ghostClass,!0)),k!==b&&b!==g.active?k=b:b===g.active&&k&&(k=null),p===b&&(b._ignoreWhileAnimating=n),b.animateAll(function(){O("dragOverAnimationComplete"),b._ignoreWhileAnimating=null}),b!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===c&&!c.animated||n===t&&!n.animated)&&(ge=null),!l.dragoverBubble&&!e.rootEl&&n!==document&&(c.parentNode[H]._isOutsideThisEl(e.target),!_e&&de(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),S=!0}function F(){G=N(c),ie=N(c,l.draggable),B({sortable:b,name:"change",toEl:t,newIndex:G,newDraggableIndex:ie,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=W(n,l.draggable,t,!0),O("dragOver"),g.eventCanceled)return S;if(c.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||b._ignoreWhileAnimating===n)return P(!1);if(Ze=!1,u&&!l.disabled&&(f?d||(a=A!==T):k===this||(this.lastPutMode=Xe.checkPull(this,u,c,e))&&s.checkPut(this,u,c,e))){if(w=this._getDirection(e,n)==="vertical",i=C(c),O("dragOverValid"),g.eventCanceled)return S;if(a)return A=T,j(),this._hideClone(),O("revert"),g.eventCanceled||(fe?T.insertBefore(c,fe):T.appendChild(c)),P(!0);var D=bt(t,l.draggable);if(!D||_n(e,w,this)&&!D.animated){if(D===c)return P(!1);if(D&&t===e.target&&(n=D),n&&(r=C(n)),Ge(T,t,c,i,n,r,e,!!n)!==!1)return j(),D&&D.nextSibling?t.insertBefore(c,D.nextSibling):t.appendChild(c),A=t,F(),P(!0)}else if(D&&Dn(e,w,this)){var U=ye(t,0,l,!0);if(U===c)return P(!1);if(n=U,r=C(n),Ge(T,t,c,i,n,r,e,!1)!==!1)return j(),t.insertBefore(c,U),A=t,F(),P(!0)}else if(n.parentNode===t){r=C(n);var V=0,se,Ee=c.parentNode!==t,Y=!bn(c.animated&&c.toRect||i,n.animated&&n.toRect||r,w),we=w?"top":"left",ne=Ot(n,"top","top")||Ot(c,"top","top"),Se=ne?ne.scrollTop:void 0;ge!==n&&(se=r[we],He=!1,Ye=!Y&&l.invertSwap||Ee),V=Cn(e,n,r,w,Y?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Ye,ge===n);var Q;if(V!==0){var ue=N(c);do ue-=V,Q=A.children[ue];while(Q&&(h(Q,"display")==="none"||Q===v))}if(V===0||Q===n)return P(!1);ge=n,Re=V;var De=n.nextElementSibling,oe=!1;oe=V===1;var Le=Ge(T,t,c,i,n,r,e,oe);if(Le!==!1)return(Le===1||Le===-1)&&(oe=Le===1),pt=!0,setTimeout(Sn,30),j(),oe&&!De?t.appendChild(c):n.parentNode.insertBefore(c,oe?De:n),ne&&qt(ne,0,Se-ne.scrollTop),A=c.parentNode,se!==void 0&&!Ye&&(ze=Math.abs(se-C(n)[we])),F(),P(!0)}if(t.contains(c))return P(!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",de),y(document,"mousemove",de),y(document,"touchmove",de)},_offUpEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._onDrop),y(e,"touchend",this._onDrop),y(e,"pointerup",this._onDrop),y(e,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(G=N(c),ie=N(c,n.draggable),L("drop",this,{evt:e}),A=c&&c.parentNode,G=N(c),ie=N(c,n.draggable),g.eventCanceled){this._nulling();return}ve=!1,Ye=!1,He=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gt(this.cloneId),gt(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ne&&h(document.body,"user-select",""),h(c,"transform",""),e&&(Oe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),v&&v.parentNode&&v.parentNode.removeChild(v),(T===A||k&&k.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),c&&(this.nativeDraggable&&y(c,"dragend",this),ut(c),c.style["will-change"]="",Oe&&!ve&&x(c,k?k.options.ghostClass:this.options.ghostClass,!1),x(c,this.options.chosenClass,!1),B({sortable:this,name:"unchoose",toEl:A,newIndex:null,newDraggableIndex:null,originalEvent:e}),T!==A?(G>=0&&(B({rootEl:A,name:"add",toEl:A,fromEl:T,originalEvent:e}),B({sortable:this,name:"remove",toEl:A,originalEvent:e}),B({rootEl:A,name:"sort",toEl:A,fromEl:T,originalEvent:e}),B({sortable:this,name:"sort",toEl:A,originalEvent:e})),k&&k.save()):G!==be&&G>=0&&(B({sortable:this,name:"update",toEl:A,originalEvent:e}),B({sortable:this,name:"sort",toEl:A,originalEvent:e})),g.active&&((G==null||G===-1)&&(G=be,ie=ke),B({sortable:this,name:"end",toEl:A,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){L("nulling",this),T=c=A=v=fe=I=$e=re=ce=K=Oe=G=ie=be=ke=ge=Re=k=Xe=g.dragged=g.ghost=g.clone=g.active=null,et.forEach(function(e){e.checked=!0}),et.length=at=lt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),wn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,i=0,r=n.length,a=this.options;i<r;i++)t=n[i],W(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||In(t));return e},sort:function(e,t){var n={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];W(l,this.options.draggable,i,!1)&&(n[r]=l)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(i.removeChild(n[r]),i.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return W(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var i=Fe.modifyOption(this,e,t);typeof i<"u"?n[e]=i:n[e]=t,e==="group"&&Kt(n)},destroy:function(){L("destroy",this);var e=this.el;e[H]=null,y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart),y(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Qe.splice(Qe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(L("hideClone",this),g.eventCanceled)return;h(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),re=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(re){if(L("showClone",this),g.eventCanceled)return;c.parentNode==T&&!this.options.group.revertClone?T.insertBefore(I,c):fe?T.insertBefore(I,fe):T.appendChild(I),this.options.group.revertClone&&this.animate(c,I),h(I,"display",""),re=!1}}};function wn(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function Ge(o,e,t,n,i,r,a,l){var s,u=o[H],f=u.options.onMove,d;return window.CustomEvent&&!te&&!Be?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=o,s.dragged=t,s.draggedRect=n,s.related=i||e,s.relatedRect=r||C(e),s.willInsertAfter=l,s.originalEvent=a,o.dispatchEvent(s),f&&(d=f.call(u,s,a)),d}function ut(o){o.draggable=!1}function Sn(){pt=!1}function Dn(o,e,t){var n=C(ye(t.el,0,t.options,!0)),i=Gt(t.el,t.options,v),r=10;return e?o.clientX<i.left-r||o.clientY<n.top&&o.clientX<n.right:o.clientY<i.top-r||o.clientY<n.bottom&&o.clientX<n.left}function _n(o,e,t){var n=C(bt(t.el,t.options.draggable)),i=Gt(t.el,t.options,v),r=10;return e?o.clientX>i.right+r||o.clientY>n.bottom&&o.clientX>n.left:o.clientY>i.bottom+r||o.clientX>n.right&&o.clientY>n.top}function Cn(o,e,t,n,i,r,a,l){var s=n?o.clientY:o.clientX,u=n?t.height:t.width,f=n?t.top:t.left,d=n?t.bottom:t.right,p=!1;if(!a){if(l&&ze<u*i){if(!He&&(Re===1?s>f+u*r/2:s<d-u*r/2)&&(He=!0),He)p=!0;else if(Re===1?s<f+ze:s>d-ze)return-Re}else if(s>f+u*(1-i)/2&&s<d-u*(1-i)/2)return Tn(e)}return p=p||a,p&&(s<f+u*r/2||s>d-u*r/2)?s>f+u/2?1:-1:0}function Tn(o){return N(c)<N(o)?1:-1}function In(o){for(var e=o.tagName+o.className+o.src+o.href+o.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function An(o){et.length=0;for(var e=o.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&et.push(n)}}function Ue(o){return setTimeout(o,0)}function gt(o){return clearTimeout(o)}nt&&E(document,"touchmove",function(o){(g.active||ve)&&o.cancelable&&o.preventDefault()});g.utils={on:E,off:y,css:h,find:Xt,is:function(e,t){return!!W(e,t,e,!1)},extend:dn,throttle:Yt,closest:W,toggleClass:x,clone:yt,index:N,nextTick:Ue,cancelNextTick:gt,detectDirection:Wt,getChild:ye};g.get=function(o){return o[H]};g.mount=function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(g.utils=Z(Z({},g.utils),n.utils)),Fe.mount(n)})};g.create=function(o,e){return new g(o,e)};g.version=sn;var M=[],Me,mt,vt=!1,ct,dt,tt,xe;function On(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return o.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):this.options.supportPointer?E(document,"pointermove",this._handleFallbackAutoScroll):n.touches?E(document,"touchmove",this._handleFallbackAutoScroll):E(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),Rt(),Ve(),fn()},nulling:function(){tt=mt=Me=vt=xe=ct=dt=null,M.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(r,a);if(tt=t,n||this.options.forceAutoScrollFallback||Be||te||Ne){ft(t,this.options,l,n);var s=ae(l,!0);vt&&(!xe||r!==ct||a!==dt)&&(xe&&Rt(),xe=setInterval(function(){var u=ae(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Ve()),ft(t,i.options,u,n)},10),ct=r,dt=a)}else{if(!this.options.bubbleScroll||ae(l,!0)===J()){Ve();return}ft(t,this.options,ae(l,!1),!1)}}},z(o,{pluginName:"scroll",initializeByDefault:!0})}function Ve(){M.forEach(function(o){clearInterval(o.pid)}),M=[]}function Rt(){clearInterval(xe)}var ft=Yt(function(o,e,t,n){if(e.scroll){var i=(o.touches?o.touches[0]:o).clientX,r=(o.touches?o.touches[0]:o).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=J(),u=!1,f;mt!==t&&(mt=t,Ve(),Me=e.scroll,f=e.scrollFn,Me===!0&&(Me=ae(t,!0)));var d=0,p=Me;do{var w=p,b=C(w),S=b.top,O=b.bottom,j=b.left,P=b.right,F=b.width,D=b.height,U=void 0,V=void 0,se=w.scrollWidth,Ee=w.scrollHeight,Y=h(w),we=w.scrollLeft,ne=w.scrollTop;w===s?(U=F<se&&(Y.overflowX==="auto"||Y.overflowX==="scroll"||Y.overflowX==="visible"),V=D<Ee&&(Y.overflowY==="auto"||Y.overflowY==="scroll"||Y.overflowY==="visible")):(U=F<se&&(Y.overflowX==="auto"||Y.overflowX==="scroll"),V=D<Ee&&(Y.overflowY==="auto"||Y.overflowY==="scroll"));var Se=U&&(Math.abs(P-i)<=a&&we+F<se)-(Math.abs(j-i)<=a&&!!we),Q=V&&(Math.abs(O-r)<=a&&ne+D<Ee)-(Math.abs(S-r)<=a&&!!ne);if(!M[d])for(var ue=0;ue<=d;ue++)M[ue]||(M[ue]={});(M[d].vx!=Se||M[d].vy!=Q||M[d].el!==w)&&(M[d].el=w,M[d].vx=Se,M[d].vy=Q,clearInterval(M[d].pid),(Se!=0||Q!=0)&&(u=!0,M[d].pid=setInterval((function(){n&&this.layer===0&&g.active._onTouchMove(tt);var De=M[this.layer].vy?M[this.layer].vy*l:0,oe=M[this.layer].vx?M[this.layer].vx*l:0;typeof f=="function"&&f.call(g.dragged.parentNode[H],oe,De,o,tt,M[this.layer].el)!=="continue"||qt(M[this.layer].el,oe,De)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==s&&(p=ae(p,!1)));vt=u}},30),Ut=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var u=n||r;l();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(d)&&(a("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function Et(){}Et.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=ye(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ut};z(Et,{pluginName:"revertOnSpill"});function wt(){}wt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:Ut};z(wt,{pluginName:"removeOnSpill"});var m=[],q=[],Ce,$,Te=!1,X=!1,me=!1,_,Ie,je;function Vt(){function o(e){for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?E(document,"pointerup",this._deselectMultiDrag):(E(document,"mouseup",this._deselectMultiDrag),E(document,"touchend",this._deselectMultiDrag))),E(document,"keydown",this._checkKeyDown),E(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(i,r){var a="";m.length&&$===e?m.forEach(function(l,s){a+=(s?", ":"")+l.textContent}):a=r.textContent,i.setData("Text",a)}}}return o.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var n=t.dragEl;_=n},delayEnded:function(){this.isMultiDrag=~m.indexOf(_)},setupClone:function(t){var n=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var r=0;r<m.length;r++)q.push(yt(m[r])),q[r].sortableIndex=m[r].sortableIndex,q[r].draggable=!1,q[r].style["will-change"]="",x(q[r],this.options.selectedClass,!1),m[r]===_&&x(q[r],this.options.chosenClass,!1);n._hideClone(),i()}},clone:function(t){var n=t.sortable,i=t.rootEl,r=t.dispatchSortableEvent,a=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||m.length&&$===n&&(Ht(!0,i),r("clone"),a()))},showClone:function(t){var n=t.cloneNowShown,i=t.rootEl,r=t.cancel;this.isMultiDrag&&(Ht(!1,i),q.forEach(function(a){h(a,"display","")}),n(),je=!1,r())},hideClone:function(t){var n=this,i=t.sortable,r=t.cloneNowHidden,a=t.cancel;this.isMultiDrag&&(q.forEach(function(l){h(l,"display","none"),n.options.removeCloneOnHide&&l.parentNode&&l.parentNode.removeChild(l)}),r(),je=!0,a())},dragStartGlobal:function(t){var n=t.sortable;!this.isMultiDrag&&$&&$.multiDrag._deselectMultiDrag(),m.forEach(function(i){i.sortableIndex=N(i)}),m=m.sort(function(i,r){return i.sortableIndex-r.sortableIndex}),me=!0},dragStarted:function(t){var n=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){m.forEach(function(a){a!==_&&h(a,"position","absolute")});var r=C(_,!1,!0,!0);m.forEach(function(a){a!==_&&xt(a,r)}),X=!0,Te=!0}i.animateAll(function(){X=!1,Te=!1,n.options.animation&&m.forEach(function(a){it(a)}),n.options.sort&&We()})}},dragOver:function(t){var n=t.target,i=t.completed,r=t.cancel;X&&~m.indexOf(n)&&(i(!1),r())},revert:function(t){var n=t.fromSortable,i=t.rootEl,r=t.sortable,a=t.dragRect;m.length>1&&(m.forEach(function(l){r.addAnimationState({target:l,rect:X?C(l):a}),it(l),l.fromRect=a,n.removeAnimationState(l)}),X=!1,Mn(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var n=t.sortable,i=t.isOwner,r=t.insertion,a=t.activeSortable,l=t.parentEl,s=t.putSortable,u=this.options;if(r){if(i&&a._hideClone(),Te=!1,u.animation&&m.length>1&&(X||!i&&!a.options.sort&&!s)){var f=C(_,!1,!0,!0);m.forEach(function(p){p!==_&&(xt(p,f),l.appendChild(p))}),X=!0}if(!i)if(X||We(),m.length>1){var d=je;a._showClone(n),a.options.animation&&!je&&d&&q.forEach(function(p){a.addAnimationState({target:p,rect:Ie}),p.fromRect=Ie,p.thisAnimationDuration=null})}else a._showClone(n)}},dragOverAnimationCapture:function(t){var n=t.dragRect,i=t.isOwner,r=t.activeSortable;if(m.forEach(function(l){l.thisAnimationDuration=null}),r.options.animation&&!i&&r.multiDrag.isMultiDrag){Ie=z({},n);var a=he(_,!0);Ie.top-=a.f,Ie.left-=a.e}},dragOverAnimationComplete:function(){X&&(X=!1,We())},drop:function(t){var n=t.originalEvent,i=t.rootEl,r=t.parentEl,a=t.sortable,l=t.dispatchSortableEvent,s=t.oldIndex,u=t.putSortable,f=u||this.sortable;if(n){var d=this.options,p=r.children;if(!me)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(_,d.selectedClass,!~m.indexOf(_)),~m.indexOf(_))m.splice(m.indexOf(_),1),Ce=null,Ae({sortable:a,rootEl:i,name:"deselect",targetEl:_,originalEvent:n});else{if(m.push(_),Ae({sortable:a,rootEl:i,name:"select",targetEl:_,originalEvent:n}),n.shiftKey&&Ce&&a.el.contains(Ce)){var w=N(Ce),b=N(_);if(~w&&~b&&w!==b){var S,O;for(b>w?(O=w,S=b):(O=b,S=w+1);O<S;O++)~m.indexOf(p[O])||(x(p[O],d.selectedClass,!0),m.push(p[O]),Ae({sortable:a,rootEl:i,name:"select",targetEl:p[O],originalEvent:n}))}}else Ce=_;$=f}if(me&&this.isMultiDrag){if(X=!1,(r[H].options.sort||r!==i)&&m.length>1){var j=C(_),P=N(_,":not(."+this.options.selectedClass+")");if(!Te&&d.animation&&(_.thisAnimationDuration=null),f.captureAnimationState(),!Te&&(d.animation&&(_.fromRect=j,m.forEach(function(D){if(D.thisAnimationDuration=null,D!==_){var U=X?C(D):j;D.fromRect=U,f.addAnimationState({target:D,rect:U})}})),We(),m.forEach(function(D){p[P]?r.insertBefore(D,p[P]):r.appendChild(D),P++}),s===N(_))){var F=!1;m.forEach(function(D){if(D.sortableIndex!==N(D)){F=!0;return}}),F&&(l("update"),l("sort"))}m.forEach(function(D){it(D)}),f.animateAll()}$=f}(i===r||u&&u.lastPutMode!=="clone")&&q.forEach(function(D){D.parentNode&&D.parentNode.removeChild(D)})}},nullingGlobal:function(){this.isMultiDrag=me=!1,q.length=0},destroyGlobal:function(){this._deselectMultiDrag(),y(document,"pointerup",this._deselectMultiDrag),y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(typeof me<"u"&&me)&&$===this.sortable&&!(t&&W(t.target,this.options.draggable,this.sortable.el,!1))&&!(t&&t.button!==0))for(;m.length;){var n=m[0];x(n,this.options.selectedClass,!1),m.shift(),Ae({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},z(o,{pluginName:"multiDrag",utils:{select:function(t){var n=t.parentNode[H];!n||!n.options.multiDrag||~m.indexOf(t)||($&&$!==n&&($.multiDrag._deselectMultiDrag(),$=n),x(t,n.options.selectedClass,!0),m.push(t))},deselect:function(t){var n=t.parentNode[H],i=m.indexOf(t);!n||!n.options.multiDrag||!~i||(x(t,n.options.selectedClass,!1),m.splice(i,1))}},eventProperties:function(){var t=this,n=[],i=[];return m.forEach(function(r){n.push({multiDragElement:r,index:r.sortableIndex});var a;X&&r!==_?a=-1:X?a=N(r,":not(."+t.options.selectedClass+")"):a=N(r),i.push({multiDragElement:r,index:a})}),{items:nn(m),clones:[].concat(q),oldIndicies:n,newIndicies:i}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),t==="ctrl"?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Mn(o,e){m.forEach(function(t,n){var i=e.children[t.sortableIndex+(o?Number(n):0)];i?e.insertBefore(t,i):e.appendChild(t)})}function Ht(o,e){q.forEach(function(t,n){var i=e.children[t.sortableIndex+(o?Number(n):0)];i?e.insertBefore(t,i):e.appendChild(t)})}function We(){m.forEach(function(o){o!==_&&o.parentNode&&o.parentNode.removeChild(o)})}g.mount(new On);g.mount(wt,Et);var le=g;le.mount(new Vt);var St=class{constructor(e,t){this.tableBody=e.querySelector("tbody"),this.config=t,this.sortable=le.create(this.tableBody,{animation:150,handle:".handle",draggable:"tr",selectedClass:"selected",multiDrag:!0,onStart:i=>this.onStart(i),onEnd:i=>this.onEnd(i)}),this.observer=new MutationObserver(i=>this.selectActionChanged(i)),this.tableBody.querySelectorAll("tr").forEach(i=>this.observer.observe(i,{attributes:!0}))}selectActionChanged(e){for(let t of e)if(t.type==="attributes"&&t.attributeName==="class"){let n=t.target;n.classList.contains("selected")?le.utils.select(n):le.utils.deselect(n)}}async onStart(e){var i,r,a,l;e.oldIndex;let t=(r=(i=this.tableBody.querySelector("tr:first-child"))==null?void 0:i.querySelector(".handle"))==null?void 0:r.getAttribute("order"),n=(l=(a=this.tableBody.querySelector("tr:last-child"))==null?void 0:a.querySelector(".handle"))==null?void 0:l.getAttribute("order");t&&n&&(this.firstOrder=parseInt(t),this.orderDirection=parseInt(n)>this.firstOrder?1:-1)}async onEnd(e){var s,u,f;if(typeof e.newIndex!="number"||typeof e.oldIndex!="number"||typeof this.firstOrder!="number"||typeof this.orderDirection!="number"||!(e.item instanceof HTMLTableRowElement))return;let t,n;if(e.items.length===0)if(e.newIndex<e.oldIndex)t=e.newIndex,n=e.oldIndex;else if(e.newIndex>e.oldIndex)t=e.oldIndex,n=e.newIndex;else return;else t=this.tableBody.querySelectorAll("tr").length,n=0,e.oldIndicies.forEach(d=>{t=Math.min(t,d.index),n=Math.max(n,d.index)}),e.newIndicies.forEach(d=>{t=Math.min(t,d.index),n=Math.max(n,d.index)});let i=this.tableBody.querySelectorAll(`tr:nth-child(n+${t+1}):nth-child(-n+${n+1})`);if(i.length===0)return;let r;if(t===0)r=this.firstOrder;else{if(r=(s=this.tableBody.querySelector(`tr:nth-child(${t}) .handle`))==null?void 0:s.getAttribute("order"),!r)return;r=parseInt(r)+this.orderDirection}let a=new Map;for(let d of i){let p=(u=d.querySelector(".handle"))==null?void 0:u.getAttribute("pk");p&&((f=d.querySelector(".handle"))==null||f.setAttribute("order",String(r)),a.set(p,r),r+=this.orderDirection)}let l=await fetch(this.config.update_url,{method:"POST",headers:this.headers,body:JSON.stringify({updatedItems:Array.from(a.entries())})});l.status===200?this.resetActions():console.error(`The server responded: ${l.statusText}`)}resetActions(){if(!window.hasOwnProperty("Actions"))return;let e=this.tableBody.querySelectorAll("tr input.action-select");e.forEach(n=>{let i=n.closest("tr");le.utils.deselect(i),i==null||i.classList.remove("selected"),n.checked=!1});let t=document.getElementById("action-toggle");t instanceof HTMLInputElement&&(t.checked=!1),window.Actions(e)}get headers(){var n;let e=new Headers;e.append("Accept","application/json"),e.append("Content-Type","application/json");let t=(n=this.tableBody.closest("form"))==null?void 0:n.querySelector('input[name="csrfmiddlewaretoken"]');return t&&e.append("X-CSRFToken",t.value),e}},Dt=class{constructor(e,t){e.setAttribute("novalidate","novalidate"),this.selectElement=e.querySelector('select[name="action"]'),this.config=t,this.selectElement.addEventListener("change",()=>this.actionChanged()),this.stepInput=document.getElementById("changelist-form-step"),this.stepInput.setAttribute("min","1");let n=Math.max(this.config.total_pages-this.config.current_page,this.config.current_page);this.stepInput.setAttribute("max",`${n}`),this.stepInput.value="1",this.pageInput=document.getElementById("changelist-form-page"),this.pageInput.setAttribute("min","1"),this.pageInput.setAttribute("max",`${this.config.total_pages}`),this.pageInput.value=`${this.config.current_page}`}actionChanged(){var e;switch(this.pageInput.style.display=this.stepInput.style.display="none",(e=this.selectElement)==null?void 0:e.value){case"move_to_exact_page":this.pageInput.style.display="inline-block";break;case"move_to_forward_page":this.stepInput.style.display="inline-block";break;case"move_to_back_page":this.stepInput.style.display="inline-block";break;case"move_to_first_page":this.pageInput.value="1";break;case"move_to_last_page":this.pageInput.value=`${this.config.total_pages+1}`;break;default:break}}},_t=class{constructor(e){this.reversed=e.classList.contains("reversed");let t=e.querySelector("table tbody");t?(this.itemSelectors="tr.has_original",this.sortable=le.create(t,{animation:150,handle:"td.original p",draggable:"tr",onEnd:n=>this.onEnd(),onMove:n=>this.onMove(n)})):(this.itemSelectors=".inline-related.has_original",this.sortable=le.create(e,{animation:150,handle:"h3",draggable:".inline-related.has_original",onEnd:n=>this.onEnd()})),e.querySelectorAll(".inline-related .sort i.move-begin").forEach(n=>n.addEventListener("click",i=>this.move(i.target,"begin"))),e.querySelectorAll(".inline-related .sort i.move-end").forEach(n=>n.addEventListener("click",i=>this.move(i.target,"end")))}onEnd(){let e=this.sortable.el.querySelectorAll(this.itemSelectors);this.reversed?e.forEach((t,n)=>{let i=t.querySelector("input._reorder_");i.value=`${e.length-n}`}):e.forEach((t,n)=>{let i=t.querySelector("input._reorder_");i.value=`${n+1}`})}onMove(e){return e.related.classList.contains("has_original")}move(e,t){if(!(e instanceof HTMLElement))return;let n=e.closest(this.itemSelectors);if(!n)return;let i=this.sortable.el.querySelectorAll(this.itemSelectors);i.length<2||(t==="begin"?i[0].insertAdjacentElement("beforebegin",n):i[i.length-1].insertAdjacentElement("afterend",n),this.onEnd())}};window.addEventListener("load",o=>{let e=document.getElementById("admin_sortable2_config");if(e instanceof HTMLScriptElement&&e.textContent){let t=JSON.parse(e.textContent),n=document.getElementById("result_list");n instanceof HTMLTableElement&&new St(n,t);let i=document.getElementById("changelist-form");i&&new Dt(i,t)}for(let t of document.querySelectorAll("fieldset.sortable"))new _t(t)});})(); /*! Bundled license information: sortablejs/modular/sortable.esm.js: (**! * Sortable 1.15.2 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT *) */