538 lines
36 KiB
JavaScript
538 lines
36 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-2d226555"], { e7e2: function(t, e, n) {
|
|
var o, i;
|
|
/**!
|
|
* Sortable
|
|
* @author RubaXa <trash@rubaxa.org>
|
|
* @author owenm <owen23355@gmail.com>
|
|
* @license MIT
|
|
*/
|
|
(function(r) {
|
|
"use strict";
|
|
o = r, i = "function" === typeof o ? o.call(e, n, e, t) : o, void 0 === i || (t.exports = i);
|
|
})((function() {
|
|
"use strict";
|
|
if ("undefined" === typeof window || !window.document) return function() {
|
|
throw new Error("Sortable.js requires a window with a document");
|
|
};
|
|
var t2, e2, n2, o2, i2, r, a, l, s, c, h, d, u, f, p, v, g, m, b, w, _, y, D, T, S, C, E = [], x = false, N = false, M = false, k = [], P = false, X = false, Y = [], A = /\s+/g, I = "Sortable" + (/* @__PURE__ */ new Date()).getTime(), B = window, O = B.document, H = B.parseInt, R = B.setTimeout, L = B.jQuery || B.Zepto, W = B.Polymer, F = { capture: false, passive: false }, z = !!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i), j = !!navigator.userAgent.match(/Edge/i), U = !!navigator.userAgent.match(/firefox/i), V = !(!navigator.userAgent.match(/safari/i) || navigator.userAgent.match(/chrome/i) || navigator.userAgent.match(/android/i)), q = !!navigator.userAgent.match(/iP(ad|od|hone)/i), G = q, J = j || z ? "cssFloat" : "float", K = "draggable" in O.createElement("div"), Z = (function() {
|
|
if (z) return false;
|
|
var t3 = O.createElement("x");
|
|
return t3.style.cssText = "pointer-events:auto", "auto" === t3.style.pointerEvents;
|
|
})(), Q = false, $ = false, tt = Math.abs, et = Math.min, nt = Math.max, ot = [], it = function(t3, e3) {
|
|
var n3 = Nt(t3), o3 = H(n3.width) - H(n3.paddingLeft) - H(n3.paddingRight) - H(n3.borderLeftWidth) - H(n3.borderRightWidth), i3 = It(t3, 0, e3), r2 = It(t3, 1, e3), a2 = i3 && Nt(i3), l2 = r2 && Nt(r2), s2 = a2 && H(a2.marginLeft) + H(a2.marginRight) + Kt(i3).width, c2 = l2 && H(l2.marginLeft) + H(l2.marginRight) + Kt(r2).width;
|
|
if ("flex" === n3.display) return "column" === n3.flexDirection || "column-reverse" === n3.flexDirection ? "vertical" : "horizontal";
|
|
if ("grid" === n3.display) return n3.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
if (i3 && "none" !== a2.float) {
|
|
var h2 = "left" === a2.float ? "left" : "right";
|
|
return !r2 || "both" !== l2.clear && l2.clear !== h2 ? "horizontal" : "vertical";
|
|
}
|
|
return i3 && ("block" === a2.display || "flex" === a2.display || "table" === a2.display || "grid" === a2.display || s2 >= o3 && "none" === n3[J] || r2 && "none" === n3[J] && s2 + c2 > o3) ? "vertical" : "horizontal";
|
|
}, rt = function(t3, e3) {
|
|
for (var n3 = 0; n3 < k.length; n3++) if (!Bt(k[n3])) {
|
|
var o3 = Kt(k[n3]), i3 = k[n3][I].options.emptyInsertThreshold, r2 = t3 >= o3.left - i3 && t3 <= o3.right + i3, a2 = e3 >= o3.top - i3 && e3 <= o3.bottom + i3;
|
|
if (r2 && a2) return k[n3];
|
|
}
|
|
}, at = function(t3, e3, n3, o3, i3) {
|
|
var r2 = Kt(n3), a2 = "vertical" === o3 ? r2.left : r2.top, l2 = "vertical" === o3 ? r2.right : r2.bottom, s2 = "vertical" === o3 ? t3 : e3;
|
|
return a2 < s2 && s2 < l2;
|
|
}, lt = function(e3, n3, o3) {
|
|
var i3 = e3 === t2 && C || Kt(e3), r2 = n3 === t2 && C || Kt(n3), a2 = "vertical" === o3 ? i3.left : i3.top, l2 = "vertical" === o3 ? i3.right : i3.bottom, s2 = "vertical" === o3 ? i3.width : i3.height, c2 = "vertical" === o3 ? r2.left : r2.top, h2 = "vertical" === o3 ? r2.right : r2.bottom, d2 = "vertical" === o3 ? r2.width : r2.height;
|
|
return a2 === c2 || l2 === h2 || a2 + s2 / 2 === c2 + d2 / 2;
|
|
}, st = function(t3, e3) {
|
|
if (!t3 || !t3.getBoundingClientRect) return ct();
|
|
var n3 = t3, o3 = false;
|
|
do {
|
|
if (n3.clientWidth < n3.scrollWidth || n3.clientHeight < n3.scrollHeight) {
|
|
var i3 = Nt(n3);
|
|
if (n3.clientWidth < n3.scrollWidth && ("auto" == i3.overflowX || "scroll" == i3.overflowX) || n3.clientHeight < n3.scrollHeight && ("auto" == i3.overflowY || "scroll" == i3.overflowY)) {
|
|
if (!n3 || !n3.getBoundingClientRect || n3 === O.body) return ct();
|
|
if (o3 || e3) return n3;
|
|
o3 = true;
|
|
}
|
|
}
|
|
} while (n3 = n3.parentNode);
|
|
return ct();
|
|
}, ct = function() {
|
|
return z ? O.documentElement : O.scrollingElement;
|
|
}, ht = function(t3, e3, n3) {
|
|
t3.scrollLeft += e3, t3.scrollTop += n3;
|
|
}, dt = zt((function(t3, e3, n3, o3) {
|
|
if (e3.scroll) {
|
|
var i3 = n3 ? n3[I] : window, r2 = e3.scrollSensitivity, a2 = e3.scrollSpeed, h2 = t3.clientX, d2 = t3.clientY, u2 = ct(), f2 = false;
|
|
s !== n3 && (ut(), l = e3.scroll, c = e3.scrollFn, true === l && (l = st(n3, true), s = l));
|
|
var p2 = 0, v2 = l;
|
|
do {
|
|
var g2, m2, w2, _2, y2, D2, T2, S2, C2, N2 = v2, M2 = Kt(N2), k2 = M2.top, P2 = M2.bottom, X2 = M2.left, Y2 = M2.right, A2 = M2.width, B2 = M2.height;
|
|
if (g2 = N2.scrollWidth, m2 = N2.scrollHeight, w2 = Nt(N2), S2 = N2.scrollLeft, C2 = N2.scrollTop, N2 === u2 ? (D2 = A2 < g2 && ("auto" === w2.overflowX || "scroll" === w2.overflowX || "visible" === w2.overflowX), T2 = B2 < m2 && ("auto" === w2.overflowY || "scroll" === w2.overflowY || "visible" === w2.overflowY)) : (D2 = A2 < g2 && ("auto" === w2.overflowX || "scroll" === w2.overflowX), T2 = B2 < m2 && ("auto" === w2.overflowY || "scroll" === w2.overflowY)), _2 = D2 && (tt(Y2 - h2) <= r2 && S2 + A2 < g2) - (tt(X2 - h2) <= r2 && !!S2), y2 = T2 && (tt(P2 - d2) <= r2 && C2 + B2 < m2) - (tt(k2 - d2) <= r2 && !!C2), !E[p2]) for (var O2 = 0; O2 <= p2; O2++) E[O2] || (E[O2] = {});
|
|
E[p2].vx == _2 && E[p2].vy == y2 && E[p2].el === N2 || (E[p2].el = N2, E[p2].vx = _2, E[p2].vy = y2, clearInterval(E[p2].pid), !N2 || 0 == _2 && 0 == y2 || (f2 = true, E[p2].pid = setInterval(function() {
|
|
o3 && 0 === this.layer && (yt.active._emulateDragOver(true), yt.active._onTouchMove(b, true));
|
|
var e4 = E[this.layer].vy ? E[this.layer].vy * a2 : 0, n4 = E[this.layer].vx ? E[this.layer].vx * a2 : 0;
|
|
"function" === typeof c && "continue" !== c.call(i3, n4, e4, t3, b, E[this.layer].el) || ht(E[this.layer].el, n4, e4);
|
|
}.bind({ layer: p2 }), 24))), p2++;
|
|
} while (e3.bubbleScroll && v2 !== u2 && (v2 = st(v2, false)));
|
|
x = f2;
|
|
}
|
|
}), 30), ut = function() {
|
|
E.forEach((function(t3) {
|
|
clearInterval(t3.pid);
|
|
})), E = [];
|
|
}, ft = function(t3) {
|
|
function e3(t4, n4) {
|
|
return function(o4, i3, r2, a2) {
|
|
var l2 = o4.options.group.name && i3.options.group.name && o4.options.group.name === i3.options.group.name;
|
|
if (null == t4 && (n4 || l2)) return true;
|
|
if (null == t4 || false === t4) return false;
|
|
if (n4 && "clone" === t4) return t4;
|
|
if ("function" === typeof t4) return e3(t4(o4, i3, r2, a2), n4)(o4, i3, r2, a2);
|
|
var s2 = (n4 ? o4 : i3).options.group.name;
|
|
return true === t4 || "string" === typeof t4 && t4 === s2 || t4.join && t4.indexOf(s2) > -1;
|
|
};
|
|
}
|
|
var n3 = {}, o3 = t3.group;
|
|
o3 && "object" == typeof o3 || (o3 = { name: o3 }), n3.name = o3.name, n3.checkPull = e3(o3.pull, true), n3.checkPut = e3(o3.put), n3.revertClone = o3.revertClone, t3.group = n3;
|
|
}, pt = function(e3) {
|
|
t2 && t2.parentNode && t2.parentNode[I] && t2.parentNode[I]._computeIsAligned(e3);
|
|
}, vt = function(t3, e3) {
|
|
var n3 = e3;
|
|
while (!n3[I]) n3 = n3.parentNode;
|
|
return t3 === n3;
|
|
}, gt = function(t3, e3, n3) {
|
|
var o3 = t3.parentNode;
|
|
while (o3 && !o3[I]) o3 = o3.parentNode;
|
|
o3 && o3[I][n3](Ut(e3, { artificialBubble: true }));
|
|
}, mt = function() {
|
|
!Z && n2 && Nt(n2, "display", "none");
|
|
}, bt = function() {
|
|
!Z && n2 && Nt(n2, "display", "");
|
|
};
|
|
O.addEventListener("click", (function(t3) {
|
|
if (M) return t3.preventDefault(), t3.stopPropagation && t3.stopPropagation(), t3.stopImmediatePropagation && t3.stopImmediatePropagation(), M = false, false;
|
|
}), true);
|
|
var wt, _t = function(e3) {
|
|
if (e3 = e3.touches ? e3.touches[0] : e3, t2) {
|
|
var n3 = rt(e3.clientX, e3.clientY);
|
|
n3 && n3[I]._onDragOver({ clientX: e3.clientX, clientY: e3.clientY, target: n3, rootEl: n3 });
|
|
}
|
|
};
|
|
function yt(t3, e3) {
|
|
if (!t3 || !t3.nodeType || 1 !== t3.nodeType) throw "Sortable: `el` must be HTMLElement, not " + {}.toString.call(t3);
|
|
this.el = t3, this.options = e3 = Ut({}, e3), t3[I] = this;
|
|
var n3 = { group: null, sort: true, disabled: false, store: null, handle: null, scroll: true, scrollSensitivity: 30, scrollSpeed: 10, bubbleScroll: true, draggable: /[uo]l/i.test(t3.nodeName) ? ">li" : ">*", swapThreshold: 1, invertSwap: false, invertedSwapThreshold: null, removeCloneOnHide: true, direction: function() {
|
|
return it(t3, this.options);
|
|
}, ghostClass: "sortable-ghost", chosenClass: "sortable-chosen", dragClass: "sortable-drag", ignore: "a, img", filter: null, preventOnFilter: true, animation: 0, easing: null, setData: function(t4, e4) {
|
|
t4.setData("Text", e4.textContent);
|
|
}, dropBubble: false, dragoverBubble: false, dataIdAttr: "data-id", delay: 0, touchStartThreshold: H(window.devicePixelRatio, 10) || 1, forceFallback: false, fallbackClass: "sortable-fallback", fallbackOnBody: false, fallbackTolerance: 0, fallbackOffset: { x: 0, y: 0 }, supportPointer: false !== yt.supportPointer && ("PointerEvent" in window || window.navigator && "msPointerEnabled" in window.navigator), emptyInsertThreshold: 5 };
|
|
for (var o3 in n3) !(o3 in e3) && (e3[o3] = n3[o3]);
|
|
for (var i3 in ft(e3), this) "_" === i3.charAt(0) && "function" === typeof this[i3] && (this[i3] = this[i3].bind(this));
|
|
this.nativeDraggable = !e3.forceFallback && K, this.nativeDraggable && (this.options.touchStartThreshold = 1), e3.supportPointer ? Ct(t3, "pointerdown", this._onTapStart) : (Ct(t3, "mousedown", this._onTapStart), Ct(t3, "touchstart", this._onTapStart)), this.nativeDraggable && (Ct(t3, "dragover", this), Ct(t3, "dragenter", this)), k.push(this.el), e3.store && e3.store.get && this.sort(e3.store.get(this) || []);
|
|
}
|
|
function Dt(t3, e3, n3, o3) {
|
|
if (t3) {
|
|
n3 = n3 || O;
|
|
do {
|
|
if (null != e3 && (">" === e3[0] && t3.parentNode === n3 && Ft(t3, e3.substring(1)) || Ft(t3, e3)) || o3 && t3 === n3) return t3;
|
|
if (t3 === n3) break;
|
|
} while (t3 = Tt(t3));
|
|
}
|
|
return null;
|
|
}
|
|
function Tt(t3) {
|
|
return t3.host && t3 !== O && t3.host.nodeType ? t3.host : t3.parentNode;
|
|
}
|
|
function St(t3) {
|
|
t3.dataTransfer && (t3.dataTransfer.dropEffect = "move"), t3.cancelable && t3.preventDefault();
|
|
}
|
|
function Ct(t3, e3, n3) {
|
|
t3.addEventListener(e3, n3, F);
|
|
}
|
|
function Et(t3, e3, n3) {
|
|
t3.removeEventListener(e3, n3, F);
|
|
}
|
|
function xt(t3, e3, n3) {
|
|
if (t3 && e3) if (t3.classList) t3.classList[n3 ? "add" : "remove"](e3);
|
|
else {
|
|
var o3 = (" " + t3.className + " ").replace(A, " ").replace(" " + e3 + " ", " ");
|
|
t3.className = (o3 + (n3 ? " " + e3 : "")).replace(A, " ");
|
|
}
|
|
}
|
|
function Nt(t3, e3, n3) {
|
|
var o3 = t3 && t3.style;
|
|
if (o3) {
|
|
if (void 0 === n3) return O.defaultView && O.defaultView.getComputedStyle ? n3 = O.defaultView.getComputedStyle(t3, "") : t3.currentStyle && (n3 = t3.currentStyle), void 0 === e3 ? n3 : n3[e3];
|
|
e3 in o3 || -1 !== e3.indexOf("webkit") || (e3 = "-webkit-" + e3), o3[e3] = n3 + ("string" === typeof n3 ? "" : "px");
|
|
}
|
|
}
|
|
function Mt(t3) {
|
|
var e3 = "";
|
|
do {
|
|
var n3 = Nt(t3, "transform");
|
|
n3 && "none" !== n3 && (e3 = n3 + " " + e3);
|
|
} while (t3 = t3.parentNode);
|
|
return window.DOMMatrix ? new DOMMatrix(e3) : window.WebKitCSSMatrix ? new WebKitCSSMatrix(e3) : window.CSSMatrix ? new CSSMatrix(e3) : void 0;
|
|
}
|
|
function kt(t3, e3, n3) {
|
|
if (t3) {
|
|
var o3 = t3.getElementsByTagName(e3), i3 = 0, r2 = o3.length;
|
|
if (n3) for (; i3 < r2; i3++) n3(o3[i3], i3);
|
|
return o3;
|
|
}
|
|
return [];
|
|
}
|
|
function Pt(t3, e3, n3, i3, r2, a2, l2, s2, c2) {
|
|
t3 = t3 || e3[I];
|
|
var h2, d2 = t3.options, u2 = "on" + n3.charAt(0).toUpperCase() + n3.substr(1);
|
|
!window.CustomEvent || z || j ? (h2 = O.createEvent("Event"), h2.initEvent(n3, true, true)) : h2 = new CustomEvent(n3, { bubbles: true, cancelable: true }), h2.to = r2 || e3, h2.from = a2 || e3, h2.item = i3 || e3, h2.clone = o2, h2.oldIndex = l2, h2.newIndex = s2, h2.originalEvent = c2, h2.pullMode = f ? f.lastPutMode : void 0, e3 && e3.dispatchEvent(h2), d2[u2] && d2[u2].call(t3, h2);
|
|
}
|
|
function Xt(t3, e3, n3, o3, i3, r2, a2, l2) {
|
|
var s2, c2, h2 = t3[I], d2 = h2.options.onMove;
|
|
return !window.CustomEvent || z || j ? (s2 = O.createEvent("Event"), s2.initEvent("move", true, true)) : s2 = new CustomEvent("move", { bubbles: true, cancelable: true }), s2.to = e3, s2.from = t3, s2.dragged = n3, s2.draggedRect = o3, s2.related = i3 || e3, s2.relatedRect = r2 || Kt(e3), s2.willInsertAfter = l2, s2.originalEvent = a2, t3.dispatchEvent(s2), d2 && (c2 = d2.call(h2, s2, a2)), c2;
|
|
}
|
|
function Yt(t3) {
|
|
t3.draggable = false;
|
|
}
|
|
function At() {
|
|
Q = false;
|
|
}
|
|
function It(e3, o3, i3) {
|
|
var r2 = 0, a2 = 0, l2 = e3.children;
|
|
while (a2 < l2.length) {
|
|
if ("none" !== l2[a2].style.display && l2[a2] !== n2 && l2[a2] !== t2 && Dt(l2[a2], i3.draggable, e3, false)) {
|
|
if (r2 === o3) return l2[a2];
|
|
r2++;
|
|
}
|
|
a2++;
|
|
}
|
|
return null;
|
|
}
|
|
function Bt(t3) {
|
|
var e3 = t3.lastElementChild;
|
|
while (e3 && (e3 === n2 || "none" === e3.style.display)) e3 = e3.previousElementSibling;
|
|
return e3 || null;
|
|
}
|
|
function Ot(t3, e3, n3) {
|
|
var o3 = Kt(Bt(n3)), i3 = "vertical" === e3 ? t3.clientY : t3.clientX, r2 = "vertical" === e3 ? t3.clientX : t3.clientY, a2 = "vertical" === e3 ? o3.bottom : o3.right, l2 = "vertical" === e3 ? o3.left : o3.top, s2 = "vertical" === e3 ? o3.right : o3.bottom, c2 = 10;
|
|
return "vertical" === e3 ? r2 > s2 + c2 || r2 <= s2 && i3 > a2 && r2 >= l2 : i3 > a2 && r2 > l2 || i3 <= a2 && r2 > s2 + c2;
|
|
}
|
|
function Ht(e3, n3, o3, i3, r2, a2, l2) {
|
|
var s2 = Kt(n3), c2 = "vertical" === o3 ? e3.clientY : e3.clientX, h2 = "vertical" === o3 ? s2.height : s2.width, d2 = "vertical" === o3 ? s2.top : s2.left, u2 = "vertical" === o3 ? s2.bottom : s2.right, f2 = Kt(t2), p2 = false;
|
|
if (!a2) {
|
|
if (l2 && T < h2 * i3) if (!P && (1 === y ? c2 > d2 + h2 * r2 / 2 : c2 < u2 - h2 * r2 / 2) && (P = true), P) p2 = true;
|
|
else {
|
|
"vertical" === o3 ? f2.top : f2.left, "vertical" === o3 ? f2.bottom : f2.right;
|
|
if (1 === y ? c2 < d2 + T : c2 > u2 - T) return -1 * y;
|
|
}
|
|
else if (c2 > d2 + h2 * (1 - i3) / 2 && c2 < u2 - h2 * (1 - i3) / 2) return Rt(n3);
|
|
}
|
|
return p2 = p2 || a2, p2 && (c2 < d2 + h2 * r2 / 2 || c2 > u2 - h2 * r2 / 2) ? c2 > d2 + h2 / 2 ? 1 : -1 : 0;
|
|
}
|
|
function Rt(e3) {
|
|
var n3 = Wt(t2), o3 = Wt(e3);
|
|
return n3 < o3 ? 1 : -1;
|
|
}
|
|
function Lt(t3) {
|
|
var e3 = t3.tagName + t3.className + t3.src + t3.href + t3.textContent, n3 = e3.length, o3 = 0;
|
|
while (n3--) o3 += e3.charCodeAt(n3);
|
|
return o3.toString(36);
|
|
}
|
|
function Wt(t3, e3) {
|
|
var n3 = 0;
|
|
if (!t3 || !t3.parentNode) return -1;
|
|
while (t3 && (t3 = t3.previousElementSibling)) "TEMPLATE" !== t3.nodeName.toUpperCase() && t3 !== o2 && n3++;
|
|
return n3;
|
|
}
|
|
function Ft(t3, e3) {
|
|
if (t3) try {
|
|
if (t3.matches) return t3.matches(e3);
|
|
if (t3.msMatchesSelector) return t3.msMatchesSelector(e3);
|
|
if (t3.webkitMatchesSelector) return t3.webkitMatchesSelector(e3);
|
|
} catch (n3) {
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
function zt(t3, e3) {
|
|
return function() {
|
|
if (!wt) {
|
|
var n3 = arguments, o3 = this;
|
|
wt = R((function() {
|
|
1 === n3.length ? t3.call(o3, n3[0]) : t3.apply(o3, n3), wt = void 0;
|
|
}), e3);
|
|
}
|
|
};
|
|
}
|
|
function jt() {
|
|
clearTimeout(wt), wt = void 0;
|
|
}
|
|
function Ut(t3, e3) {
|
|
if (t3 && e3) for (var n3 in e3) e3.hasOwnProperty(n3) && (t3[n3] = e3[n3]);
|
|
return t3;
|
|
}
|
|
function Vt(t3) {
|
|
return W && W.dom ? W.dom(t3).cloneNode(true) : L ? L(t3).clone(true)[0] : t3.cloneNode(true);
|
|
}
|
|
function qt(t3) {
|
|
ot.length = 0;
|
|
var e3 = t3.getElementsByTagName("input"), n3 = e3.length;
|
|
while (n3--) {
|
|
var o3 = e3[n3];
|
|
o3.checked && ot.push(o3);
|
|
}
|
|
}
|
|
function Gt(t3) {
|
|
return R(t3, 0);
|
|
}
|
|
function Jt(t3) {
|
|
return clearTimeout(t3);
|
|
}
|
|
function Kt(t3, e3, n3, o3) {
|
|
if (t3.getBoundingClientRect || t3 === B) {
|
|
var i3, r2, a2, l2, s2, c2, h2;
|
|
if (t3 !== B && t3 !== ct() ? (i3 = t3.getBoundingClientRect(), r2 = i3.top, a2 = i3.left, l2 = i3.bottom, s2 = i3.right, c2 = i3.height, h2 = i3.width) : (r2 = 0, a2 = 0, l2 = window.innerHeight, s2 = window.innerWidth, c2 = window.innerHeight, h2 = window.innerWidth), o3 && t3 !== B && (n3 = n3 || t3.parentNode, !z)) do {
|
|
if (n3 && n3.getBoundingClientRect && "none" !== Nt(n3, "transform")) {
|
|
var d2 = n3.getBoundingClientRect();
|
|
r2 -= d2.top + H(Nt(n3, "border-top-width")), a2 -= d2.left + H(Nt(n3, "border-left-width")), l2 = r2 + i3.height, s2 = a2 + i3.width;
|
|
break;
|
|
}
|
|
} while (n3 = n3.parentNode);
|
|
if (e3 && t3 !== B) {
|
|
var u2 = Mt(n3 || t3), f2 = u2 && u2.a, p2 = u2 && u2.d;
|
|
u2 && (r2 /= p2, a2 /= f2, h2 /= f2, c2 /= p2, l2 = r2 + c2, s2 = a2 + h2);
|
|
}
|
|
return { top: r2, left: a2, bottom: l2, right: s2, width: h2, height: c2 };
|
|
}
|
|
}
|
|
function Zt(t3, e3) {
|
|
var n3 = st(t3, true), o3 = Kt(t3)[e3];
|
|
while (n3) {
|
|
var i3, r2 = Kt(n3)[e3];
|
|
if (i3 = "top" === e3 || "left" === e3 ? o3 >= r2 : o3 <= r2, !i3) return n3;
|
|
if (n3 === ct()) break;
|
|
n3 = st(n3, false);
|
|
}
|
|
return false;
|
|
}
|
|
function Qt(t3) {
|
|
var e3 = 0, n3 = 0, o3 = ct();
|
|
if (t3) do {
|
|
var i3 = Mt(t3), r2 = i3.a, a2 = i3.d;
|
|
e3 += t3.scrollLeft * r2, n3 += t3.scrollTop * a2;
|
|
} while (t3 !== o3 && (t3 = t3.parentNode));
|
|
return [e3, n3];
|
|
}
|
|
return Ct(O, "dragover", _t), Ct(O, "mousemove", _t), Ct(O, "touchmove", _t), yt.prototype = { constructor: yt, _computeIsAligned: function(e3) {
|
|
var o3;
|
|
if (n2 && !Z ? (mt(), o3 = O.elementFromPoint(e3.clientX, e3.clientY), bt()) : o3 = e3.target, o3 = Dt(o3, this.options.draggable, this.el, false), !$ && t2 && t2.parentNode === this.el) {
|
|
for (var i3 = this.el.children, r2 = 0; r2 < i3.length; r2++) Dt(i3[r2], this.options.draggable, this.el, false) && i3[r2] !== o3 && (i3[r2].sortableMouseAligned = at(e3.clientX, e3.clientY, i3[r2], this._getDirection(e3, null), this.options));
|
|
Dt(o3, this.options.draggable, this.el, true) || (_ = null), $ = true, R((function() {
|
|
$ = false;
|
|
}), 30);
|
|
}
|
|
}, _getDirection: function(e3, n3) {
|
|
return "function" === typeof this.options.direction ? this.options.direction.call(this, e3, n3, t2) : this.options.direction;
|
|
}, _onTapStart: function(e3) {
|
|
if (e3.cancelable) {
|
|
var n3, o3 = this, i3 = this.el, r2 = this.options, l2 = r2.preventOnFilter, s2 = e3.type, c2 = e3.touches && e3.touches[0], h2 = (c2 || e3).target, d2 = e3.target.shadowRoot && (e3.path && e3.path[0] || e3.composedPath && e3.composedPath()[0]) || h2, u2 = r2.filter;
|
|
if (qt(i3), (!z || e3.artificialBubble || vt(i3, h2)) && !t2 && !(/mousedown|pointerdown/.test(s2) && 0 !== e3.button || r2.disabled) && !d2.isContentEditable) if (h2 = Dt(h2, r2.draggable, i3, false), h2) {
|
|
if (a !== h2) {
|
|
if (n3 = Wt(h2, r2.draggable), "function" === typeof u2) {
|
|
if (u2.call(this, e3, h2, this)) return Pt(o3, d2, "filter", h2, i3, i3, n3), void (l2 && e3.cancelable && e3.preventDefault());
|
|
} else if (u2 && (u2 = u2.split(",").some((function(t3) {
|
|
if (t3 = Dt(d2, t3.trim(), i3, false), t3) return Pt(o3, t3, "filter", h2, i3, i3, n3), true;
|
|
})), u2)) return void (l2 && e3.cancelable && e3.preventDefault());
|
|
r2.handle && !Dt(d2, r2.handle, i3, false) || this._prepareDragStart(e3, c2, h2, n3);
|
|
}
|
|
} else z && gt(i3, e3, "_onTapStart");
|
|
}
|
|
}, _handleAutoScroll: function(e3, n3) {
|
|
if (t2 && this.options.scroll) {
|
|
var o3 = e3.clientX, i3 = e3.clientY, r2 = O.elementFromPoint(o3, i3), a2 = this;
|
|
if (n3 || j || z || V) {
|
|
dt(e3, a2.options, r2, n3);
|
|
var l2 = st(r2, true);
|
|
!x || p && o3 === v && i3 === g || (p && clearInterval(p), p = setInterval((function() {
|
|
if (t2) {
|
|
var r3 = st(O.elementFromPoint(o3, i3), true);
|
|
r3 !== l2 && (l2 = r3, ut(), dt(e3, a2.options, l2, n3));
|
|
}
|
|
}), 10), v = o3, g = i3);
|
|
} else {
|
|
if (!a2.options.bubbleScroll || st(r2, true) === ct()) return void ut();
|
|
dt(e3, a2.options, st(r2, false), false);
|
|
}
|
|
}
|
|
}, _prepareDragStart: function(n3, o3, l2, s2) {
|
|
var c2, d2 = this, f2 = d2.el, p2 = d2.options, v2 = f2.ownerDocument;
|
|
l2 && !t2 && l2.parentNode === f2 && (i2 = f2, t2 = l2, e2 = t2.parentNode, r = t2.nextSibling, a = l2, u = p2.group, h = s2, m = { target: t2, clientX: (o3 || n3).clientX, clientY: (o3 || n3).clientY }, this._lastX = (o3 || n3).clientX, this._lastY = (o3 || n3).clientY, t2.style["will-change"] = "all", t2.style.transition = "", t2.style.transform = "", c2 = function() {
|
|
d2._disableDelayedDragEvents(), !U && d2.nativeDraggable && (t2.draggable = true), d2._triggerDragStart(n3, o3), Pt(d2, i2, "choose", t2, i2, i2, h), xt(t2, p2.chosenClass, true);
|
|
}, p2.ignore.split(",").forEach((function(e3) {
|
|
kt(t2, e3.trim(), Yt);
|
|
})), p2.supportPointer ? Ct(v2, "pointerup", d2._onDrop) : (Ct(v2, "mouseup", d2._onDrop), Ct(v2, "touchend", d2._onDrop), Ct(v2, "touchcancel", d2._onDrop)), U && this.nativeDraggable && (this.options.touchStartThreshold = 4, t2.draggable = true), !p2.delay || this.nativeDraggable && (j || z) ? c2() : (Ct(v2, "mouseup", d2._disableDelayedDrag), Ct(v2, "touchend", d2._disableDelayedDrag), Ct(v2, "touchcancel", d2._disableDelayedDrag), Ct(v2, "mousemove", d2._delayedDragTouchMoveHandler), Ct(v2, "touchmove", d2._delayedDragTouchMoveHandler), p2.supportPointer && Ct(v2, "pointermove", d2._delayedDragTouchMoveHandler), d2._dragStartTimer = R(c2, p2.delay)));
|
|
}, _delayedDragTouchMoveHandler: function(t3) {
|
|
var e3 = t3.touches ? t3.touches[0] : t3;
|
|
nt(tt(e3.clientX - this._lastX), tt(e3.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
}, _disableDelayedDrag: function() {
|
|
t2 && Yt(t2), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
}, _disableDelayedDragEvents: function() {
|
|
var t3 = this.el.ownerDocument;
|
|
Et(t3, "mouseup", this._disableDelayedDrag), Et(t3, "touchend", this._disableDelayedDrag), Et(t3, "touchcancel", this._disableDelayedDrag), Et(t3, "mousemove", this._delayedDragTouchMoveHandler), Et(t3, "touchmove", this._delayedDragTouchMoveHandler), Et(t3, "pointermove", this._delayedDragTouchMoveHandler);
|
|
}, _triggerDragStart: function(e3, n3) {
|
|
n3 = n3 || ("touch" == e3.pointerType ? e3 : null), !this.nativeDraggable || n3 ? this.options.supportPointer ? Ct(O, "pointermove", this._onTouchMove) : Ct(O, n3 ? "touchmove" : "mousemove", this._onTouchMove) : (Ct(t2, "dragend", this), Ct(i2, "dragstart", this._onDragStart));
|
|
try {
|
|
O.selection ? Gt((function() {
|
|
O.selection.empty();
|
|
})) : window.getSelection().removeAllRanges();
|
|
} catch (o3) {
|
|
}
|
|
}, _dragStarted: function(e3, n3) {
|
|
if (N = false, i2 && t2) {
|
|
this.nativeDraggable && (Ct(O, "dragover", this._handleAutoScroll), Ct(O, "dragover", pt));
|
|
var o3 = this.options;
|
|
!e3 && xt(t2, o3.dragClass, false), xt(t2, o3.ghostClass, true), Nt(t2, "transform", ""), yt.active = this, e3 && this._appendGhost(), Pt(this, i2, "start", t2, i2, i2, h, void 0, n3);
|
|
} else this._nulling();
|
|
}, _emulateDragOver: function(e3) {
|
|
if (b) {
|
|
if (this._lastX === b.clientX && this._lastY === b.clientY && !e3) return;
|
|
this._lastX = b.clientX, this._lastY = b.clientY, mt();
|
|
var n3 = O.elementFromPoint(b.clientX, b.clientY), o3 = n3;
|
|
while (n3 && n3.shadowRoot) n3 = n3.shadowRoot.elementFromPoint(b.clientX, b.clientY), o3 = n3;
|
|
if (o3) do {
|
|
var i3;
|
|
if (o3[I]) {
|
|
if (i3 = o3[I]._onDragOver({ clientX: b.clientX, clientY: b.clientY, target: n3, rootEl: o3 }), i3 && !this.options.dragoverBubble) break;
|
|
}
|
|
n3 = o3;
|
|
} while (o3 = o3.parentNode);
|
|
t2.parentNode[I]._computeIsAligned(b), bt();
|
|
}
|
|
}, _onTouchMove: function(t3, e3) {
|
|
if (m) {
|
|
var o3 = this.options, i3 = o3.fallbackTolerance, r2 = o3.fallbackOffset, a2 = t3.touches ? t3.touches[0] : t3, l2 = n2 && Mt(n2), s2 = n2 && l2 && l2.a, c2 = n2 && l2 && l2.d, h2 = G && S && Qt(S), d2 = (a2.clientX - m.clientX + r2.x) / (s2 || 1) + (h2 ? h2[0] - Y[0] : 0) / (s2 || 1), u2 = (a2.clientY - m.clientY + r2.y) / (c2 || 1) + (h2 ? h2[1] - Y[1] : 0) / (c2 || 1), f2 = t3.touches ? "translate3d(" + d2 + "px," + u2 + "px,0)" : "translate(" + d2 + "px," + u2 + "px)";
|
|
if (!yt.active && !N) {
|
|
if (i3 && et(tt(a2.clientX - this._lastX), tt(a2.clientY - this._lastY)) < i3) return;
|
|
this._onDragStart(t3, true);
|
|
}
|
|
!e3 && this._handleAutoScroll(a2, true), w = true, b = a2, Nt(n2, "webkitTransform", f2), Nt(n2, "mozTransform", f2), Nt(n2, "msTransform", f2), Nt(n2, "transform", f2), t3.cancelable && t3.preventDefault();
|
|
}
|
|
}, _appendGhost: function() {
|
|
if (!n2) {
|
|
var e3 = this.options.fallbackOnBody ? O.body : i2, o3 = Kt(t2, true, e3, !G), r2 = (Nt(t2), this.options);
|
|
if (G) {
|
|
S = e3;
|
|
while ("static" === Nt(S, "position") && "none" === Nt(S, "transform") && S !== O) S = S.parentNode;
|
|
if (S !== O) {
|
|
var a2 = Kt(S, true);
|
|
o3.top -= a2.top, o3.left -= a2.left;
|
|
}
|
|
S !== O.body && S !== O.documentElement ? (S === O && (S = ct()), o3.top += S.scrollTop, o3.left += S.scrollLeft) : S = ct(), Y = Qt(S);
|
|
}
|
|
n2 = t2.cloneNode(true), xt(n2, r2.ghostClass, false), xt(n2, r2.fallbackClass, true), xt(n2, r2.dragClass, true), Nt(n2, "box-sizing", "border-box"), Nt(n2, "margin", 0), Nt(n2, "top", o3.top), Nt(n2, "left", o3.left), Nt(n2, "width", o3.width), Nt(n2, "height", o3.height), Nt(n2, "opacity", "0.8"), Nt(n2, "position", G ? "absolute" : "fixed"), Nt(n2, "zIndex", "100000"), Nt(n2, "pointerEvents", "none"), e3.appendChild(n2);
|
|
}
|
|
}, _onDragStart: function(e3, n3) {
|
|
var r2 = this, a2 = e3.dataTransfer, l2 = r2.options;
|
|
o2 = Vt(t2), o2.draggable = false, o2.style["will-change"] = "", this._hideClone(), xt(o2, r2.options.chosenClass, false), r2._cloneId = Gt((function() {
|
|
r2.options.removeCloneOnHide || i2.insertBefore(o2, t2), Pt(r2, i2, "clone", t2);
|
|
})), !n3 && xt(t2, l2.dragClass, true), n3 ? (M = true, r2._loopId = setInterval(r2._emulateDragOver, 50)) : (Et(O, "mouseup", r2._onDrop), Et(O, "touchend", r2._onDrop), Et(O, "touchcancel", r2._onDrop), a2 && (a2.effectAllowed = "move", l2.setData && l2.setData.call(r2, a2, t2)), Ct(O, "drop", r2), Nt(t2, "transform", "translateZ(0)")), N = true, r2._dragStartId = Gt(r2._dragStarted.bind(r2, n3, e3)), Ct(O, "selectstart", r2), V && Nt(O.body, "user-select", "none");
|
|
}, _onDragOver: function(n3) {
|
|
var o3, a2, l2, s2 = this.el, c2 = n3.target, d2 = this.options, p2 = d2.group, v2 = yt.active, g2 = u === p2, m2 = d2.sort, b2 = this;
|
|
if (!Q && (!z || n3.rootEl || n3.artificialBubble || vt(s2, c2))) {
|
|
if (void 0 !== n3.preventDefault && n3.cancelable && n3.preventDefault(), w = true, c2 = Dt(c2, d2.draggable, s2, true), Dt(n3.target, null, t2, true) || c2.animated) return j2(false);
|
|
if (c2 !== t2 && (M = false), v2 && !d2.disabled && (g2 ? m2 || (l2 = !i2.contains(t2)) : f === this || (this.lastPutMode = u.checkPull(this, v2, t2, n3)) && p2.checkPut(this, v2, t2, n3))) {
|
|
var S2 = this._getDirection(n3, c2);
|
|
if (o3 = Kt(t2), l2) return this._hideClone(), e2 = i2, r ? i2.insertBefore(t2, r) : i2.appendChild(t2), j2(true);
|
|
var E2 = Bt(s2);
|
|
if (!E2 || Ot(n3, S2, s2) && !E2.animated) {
|
|
if (E2 && s2 === n3.target && (c2 = E2), c2 && (a2 = Kt(c2)), g2 ? v2._hideClone() : v2._showClone(this), false !== Xt(i2, s2, t2, o3, c2, a2, n3, !!c2)) return s2.appendChild(t2), e2 = s2, C = null, U2(), j2(true);
|
|
} else if (c2 && c2 !== t2 && c2.parentNode === s2) {
|
|
var x2, N2 = 0, k2 = c2.sortableMouseAligned, Y2 = t2.parentNode !== s2, A2 = "vertical" === S2 ? "top" : "left", B2 = Zt(c2, "top") || Zt(t2, "top"), H2 = B2 ? B2.scrollTop : void 0;
|
|
if (_ !== c2 && (D = null, x2 = Kt(c2)[A2], P = false), lt(t2, c2, S2) && k2 || Y2 || B2 || d2.invertSwap || "insert" === D || "swap" === D ? ("swap" !== D && (X = d2.invertSwap || Y2), N2 = Ht(n3, c2, S2, d2.swapThreshold, null == d2.invertedSwapThreshold ? d2.swapThreshold : d2.invertedSwapThreshold, X, _ === c2), D = "swap") : (N2 = Rt(c2), D = "insert"), 0 === N2) return j2(false);
|
|
C = null, _ = c2, y = N2, a2 = Kt(c2);
|
|
var L2 = c2.nextElementSibling, W2 = false;
|
|
W2 = 1 === N2;
|
|
var F2 = Xt(i2, s2, t2, o3, c2, a2, n3, W2);
|
|
if (false !== F2) return 1 !== F2 && -1 !== F2 || (W2 = 1 === F2), Q = true, R(At, 30), g2 ? v2._hideClone() : v2._showClone(this), W2 && !L2 ? s2.appendChild(t2) : c2.parentNode.insertBefore(t2, W2 ? L2 : c2), B2 && ht(B2, 0, H2 - B2.scrollTop), e2 = t2.parentNode, void 0 === x2 || X || (T = tt(x2 - Kt(c2)[A2])), U2(), j2(true);
|
|
}
|
|
if (s2.contains(t2)) return j2(false);
|
|
}
|
|
return z && !n3.rootEl && gt(s2, n3, "_onDragOver"), false;
|
|
}
|
|
function j2(e3) {
|
|
return e3 && (g2 ? v2._hideClone() : v2._showClone(b2), v2 && (xt(t2, f ? f.options.ghostClass : v2.options.ghostClass, false), xt(t2, d2.ghostClass, true)), f !== b2 && b2 !== yt.active ? f = b2 : b2 === yt.active && (f = null), o3 && b2._animate(o3, t2), c2 && a2 && b2._animate(a2, c2)), (c2 === t2 && !t2.animated || c2 === s2 && !c2.animated) && (_ = null), d2.dragoverBubble || n3.rootEl || c2 === O || (b2._handleAutoScroll(n3), t2.parentNode[I]._computeIsAligned(n3)), !d2.dragoverBubble && n3.stopPropagation && n3.stopPropagation(), true;
|
|
}
|
|
function U2() {
|
|
Pt(b2, i2, "change", c2, s2, i2, h, Wt(t2, d2.draggable), n3);
|
|
}
|
|
}, _animate: function(e3, n3) {
|
|
var o3 = this.options.animation;
|
|
if (o3) {
|
|
var i3 = Kt(n3);
|
|
if (n3 === t2 && (C = i3), 1 === e3.nodeType && (e3 = Kt(e3)), e3.left + e3.width / 2 !== i3.left + i3.width / 2 || e3.top + e3.height / 2 !== i3.top + i3.height / 2) {
|
|
var r2 = Mt(this.el), a2 = r2 && r2.a, l2 = r2 && r2.d;
|
|
Nt(n3, "transition", "none"), Nt(n3, "transform", "translate3d(" + (e3.left - i3.left) / (a2 || 1) + "px," + (e3.top - i3.top) / (l2 || 1) + "px,0)"), n3.offsetWidth, Nt(n3, "transition", "transform " + o3 + "ms" + (this.options.easing ? " " + this.options.easing : "")), Nt(n3, "transform", "translate3d(0,0,0)");
|
|
}
|
|
"number" === typeof n3.animated && clearTimeout(n3.animated), n3.animated = R((function() {
|
|
Nt(n3, "transition", ""), Nt(n3, "transform", ""), n3.animated = false;
|
|
}), o3);
|
|
}
|
|
}, _offUpEvents: function() {
|
|
var t3 = this.el.ownerDocument;
|
|
Et(O, "touchmove", this._onTouchMove), Et(O, "pointermove", this._onTouchMove), Et(t3, "mouseup", this._onDrop), Et(t3, "touchend", this._onDrop), Et(t3, "pointerup", this._onDrop), Et(t3, "touchcancel", this._onDrop), Et(O, "selectstart", this);
|
|
}, _onDrop: function(a2) {
|
|
var l2 = this.el, s2 = this.options;
|
|
N = false, x = false, X = false, P = false, clearInterval(this._loopId), clearInterval(p), ut(), jt(), clearTimeout(this._dragStartTimer), Jt(this._cloneId), Jt(this._dragStartId), Et(O, "mousemove", this._onTouchMove), this.nativeDraggable && (Et(O, "drop", this), Et(l2, "dragstart", this._onDragStart), Et(O, "dragover", this._handleAutoScroll), Et(O, "dragover", pt)), V && Nt(O.body, "user-select", ""), this._offUpEvents(), a2 && (w && (a2.cancelable && a2.preventDefault(), !s2.dropBubble && a2.stopPropagation()), n2 && n2.parentNode && n2.parentNode.removeChild(n2), (i2 === e2 || f && "clone" !== f.lastPutMode) && o2 && o2.parentNode && o2.parentNode.removeChild(o2), t2 && (this.nativeDraggable && Et(t2, "dragend", this), Yt(t2), t2.style["will-change"] = "", xt(t2, f ? f.options.ghostClass : this.options.ghostClass, false), xt(t2, this.options.chosenClass, false), Pt(this, i2, "unchoose", t2, e2, i2, h, null, a2), i2 !== e2 ? (d = Wt(t2, s2.draggable), d >= 0 && (Pt(null, e2, "add", t2, e2, i2, h, d, a2), Pt(this, i2, "remove", t2, e2, i2, h, d, a2), Pt(null, e2, "sort", t2, e2, i2, h, d, a2), Pt(this, i2, "sort", t2, e2, i2, h, d, a2)), f && f.save()) : t2.nextSibling !== r && (d = Wt(t2, s2.draggable), d >= 0 && (Pt(this, i2, "update", t2, e2, i2, h, d, a2), Pt(this, i2, "sort", t2, e2, i2, h, d, a2))), yt.active && (null != d && -1 !== d || (d = h), Pt(this, i2, "end", t2, e2, i2, h, d, a2), this.save()))), this._nulling();
|
|
}, _nulling: function() {
|
|
i2 = t2 = e2 = n2 = r = o2 = a = l = s = E.length = p = v = g = m = b = w = d = h = _ = y = C = f = u = yt.active = null, ot.forEach((function(t3) {
|
|
t3.checked = true;
|
|
})), ot.length = 0;
|
|
}, handleEvent: function(e3) {
|
|
switch (e3.type) {
|
|
case "drop":
|
|
case "dragend":
|
|
this._onDrop(e3);
|
|
break;
|
|
case "dragenter":
|
|
case "dragover":
|
|
t2 && (this._onDragOver(e3), St(e3));
|
|
break;
|
|
case "selectstart":
|
|
e3.preventDefault();
|
|
break;
|
|
}
|
|
}, toArray: function() {
|
|
for (var t3, e3 = [], n3 = this.el.children, o3 = 0, i3 = n3.length, r2 = this.options; o3 < i3; o3++) t3 = n3[o3], Dt(t3, r2.draggable, this.el, false) && e3.push(t3.getAttribute(r2.dataIdAttr) || Lt(t3));
|
|
return e3;
|
|
}, sort: function(t3) {
|
|
var e3 = {}, n3 = this.el;
|
|
this.toArray().forEach((function(t4, o3) {
|
|
var i3 = n3.children[o3];
|
|
Dt(i3, this.options.draggable, n3, false) && (e3[t4] = i3);
|
|
}), this), t3.forEach((function(t4) {
|
|
e3[t4] && (n3.removeChild(e3[t4]), n3.appendChild(e3[t4]));
|
|
}));
|
|
}, save: function() {
|
|
var t3 = this.options.store;
|
|
t3 && t3.set && t3.set(this);
|
|
}, closest: function(t3, e3) {
|
|
return Dt(t3, e3 || this.options.draggable, this.el, false);
|
|
}, option: function(t3, e3) {
|
|
var n3 = this.options;
|
|
if (void 0 === e3) return n3[t3];
|
|
n3[t3] = e3, "group" === t3 && ft(n3);
|
|
}, destroy: function() {
|
|
var t3 = this.el;
|
|
t3[I] = null, Et(t3, "mousedown", this._onTapStart), Et(t3, "touchstart", this._onTapStart), Et(t3, "pointerdown", this._onTapStart), this.nativeDraggable && (Et(t3, "dragover", this), Et(t3, "dragenter", this)), Array.prototype.forEach.call(t3.querySelectorAll("[draggable]"), (function(t4) {
|
|
t4.removeAttribute("draggable");
|
|
})), this._onDrop(), k.splice(k.indexOf(this.el), 1), this.el = t3 = null;
|
|
}, _hideClone: function() {
|
|
o2.cloneHidden || (Nt(o2, "display", "none"), o2.cloneHidden = true, o2.parentNode && this.options.removeCloneOnHide && o2.parentNode.removeChild(o2));
|
|
}, _showClone: function(e3) {
|
|
"clone" === e3.lastPutMode ? o2.cloneHidden && (i2.contains(t2) && !this.options.group.revertClone ? i2.insertBefore(o2, t2) : r ? i2.insertBefore(o2, r) : i2.appendChild(o2), this.options.group.revertClone && this._animate(t2, o2), Nt(o2, "display", ""), o2.cloneHidden = false) : this._hideClone();
|
|
} }, Ct(O, "touchmove", (function(t3) {
|
|
(yt.active || N) && t3.cancelable && t3.preventDefault();
|
|
})), yt.utils = { on: Ct, off: Et, css: Nt, find: kt, is: function(t3, e3) {
|
|
return !!Dt(t3, e3, t3, false);
|
|
}, extend: Ut, throttle: zt, closest: Dt, toggleClass: xt, clone: Vt, index: Wt, nextTick: Gt, cancelNextTick: Jt, detectDirection: it, getChild: It }, yt.create = function(t3, e3) {
|
|
return new yt(t3, e3);
|
|
}, yt.version = "1.8.4", yt;
|
|
}));
|
|
} }]);
|