window.VT=window.VT||{},VT.AppSortable=function(a,b){function c(b,c){b!==r&&(r=b,a.dispatchEvent(new CustomEvent("sortableUpdate",{detail:f(c),bubbles:!0})))}function d(){i(),o=null,p=null,r=-1}function f(a){var b={data:a.detail.data,index:r,placeholder:o,setPlaceholder:function(a){g(a),b.placeholder=o},originalEvent:a};return b}function g(a){p===a||(p=a,i(),o=p.cloneNode(!0),o.classList.add("-placeholder"),o.removeAttribute("data-key"))}function h(b){o&&a.children[b]!==o&&(o.parentNode===a&&a.removeChild(o),a.insertBefore(o,a.children[b]))}function i(){o&&o.parentNode&&o.parentNode.removeChild(o)}function j(b){for(var c,d=0,e=a.children.length;d