Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
public
/
app-assets
/
vendors
/
noUiSlider
/
Filename :
nouislider.min.js
back
Copy
! function () { function t(t) { return t.split("").reverse().join("") } function e(t, e, n) { if ((t[e] || t[n]) && t[e] === t[n]) throw Error(e) } function n(e, n, r, i, o, s, a, l, u, c, p, f) { a = f; var d, h = p = ""; return s && (f = s(f)), !("number" != typeof f || !isFinite(f)) && (e && 0 === parseFloat(f.toFixed(e)) && (f = 0), 0 > f && (d = !0, f = Math.abs(f)), e && (s = Math.pow(10, e), f = (Math.round(f * s) / s).toFixed(e)), -1 !== (f = f.toString()).indexOf(".") && (f = (e = f.split("."))[0], r && (p = r + e[1])), n && (f = t((f = t(f).match(/.{1,3}/g)).join(t(n)))), d && l && (h += l), i && (h += i), d && u && (h += u), h = h + f + p, o && (h += o), c && (h = c(h, a)), h) } function r(t, e, n, r, i, o, s, a, l, u, c, p) { var f; return t = "", c && (p = c(p)), !(!p || "string" != typeof p) && (a && p.substring(0, a.length) === a && (p = p.replace(a, ""), f = !0), r && p.substring(0, r.length) === r && (p = p.replace(r, "")), l && p.substring(0, l.length) === l && (p = p.replace(l, ""), f = !0), i && p.slice(-1 * i.length) === i && (p = p.slice(0, -1 * i.length)), e && (p = p.split(e).join("")), n && (p = p.replace(n, ".")), f && (t += "-"), t = Number((t + p).replace(/[^0-9\.\-.]/g, "")), s && (t = s(t)), !("number" != typeof t || !isFinite(t)) && t) } function i(t, e, n) { var r, i = []; for (r = 0; r < o.length; r += 1) i.push(t[o[r]]); return i.push(n), e.apply("", i) } var o = "decimals thousand mark prefix postfix encoder decoder negativeBefore negative edit undo".split(" "); window.wNumb = function t(s) { if (!(this instanceof t)) return new t(s); "object" == typeof s && (s = function (t) { var n, r, i, s = {}; for (n = 0; n < o.length; n += 1) r = o[n], i = t[r], void 0 === i ? s[r] = "negative" !== r || s.negativeBefore ? "mark" === r && "." !== s.thousand && "." : "-" : "decimals" === r ? 0 < i && 8 > i && (s[r] = i) : "encoder" === r || "decoder" === r || "edit" === r || "undo" === r ? "function" == typeof i && (s[r] = i) : "string" == typeof i && (s[r] = i); return e(s, "mark", "thousand"), e(s, "prefix", "negative"), e(s, "prefix", "negativeBefore"), s }(s), this.to = function (t) { return i(s, n, t) }, this.from = function (t) { return i(s, r, t) }) } }(), function (t) { "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? module.exports = t() : window.noUiSlider = t() }(function () { "use strict"; function t(t, e) { var n = document.createElement("div"); return o(n, e), t.appendChild(n), n } function e(t) { return "number" == typeof t && !isNaN(t) && isFinite(t) } function n(t, e, n) { n > 0 && (o(t, e), setTimeout(function () { s(t, e) }, n)) } function r(t) { return Array.isArray(t) ? t : [t] } function i(t) { var e = (t = String(t)).split("."); return e.length > 1 ? e[1].length : 0 } function o(t, e) { t.classList ? t.classList.add(e) : t.className += " " + e } function s(t, e) { t.classList ? t.classList.remove(e) : t.className = t.className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)", "gi"), " ") } function a() { var t = void 0 !== window.pageXOffset, e = "CSS1Compat" === (document.compatMode || ""); return { x: t ? window.pageXOffset : e ? document.documentElement.scrollLeft : document.body.scrollLeft, y: t ? window.pageYOffset : e ? document.documentElement.scrollTop : document.body.scrollTop } } function l(t, e) { return 100 / (e - t) } function u(t, e) { return 100 * e / (t[1] - t[0]) } function c(t, e) { for (var n = 1; t >= e[n];) n += 1; return n } function p(t, e, n) { if (n >= t.slice(-1)[0]) return 100; var r, i, o, s, a, p, f = c(n, t); return r = t[f - 1], i = t[f], o = e[f - 1], s = e[f], o + (p = n, u(a = [r, i], a[0] < 0 ? p + Math.abs(a[0]) : p - a[0]) / l(o, s)) } function f(t, e, n, r) { if (100 === r) return r; var i, o, s, a, l = c(r, t); return n ? r - (i = t[l - 1]) > ((o = t[l]) - i) / 2 ? o : i : e[l - 1] ? t[l - 1] + (s = r - t[l - 1], a = e[l - 1], Math.round(s / a) * a) : r } function d(t, n, r) { var i; if ("number" == typeof n && (n = [n]), "[object Array]" !== Object.prototype.toString.call(n)) throw new Error("noUiSlider: 'range' contains invalid value."); if (!e(i = "min" === t ? 0 : "max" === t ? 100 : parseFloat(t)) || !e(n[0])) throw new Error("noUiSlider: 'range' value isn't numeric."); r.xPct.push(i), r.xVal.push(n[0]), i ? r.xSteps.push(!isNaN(n[1]) && n[1]) : isNaN(n[1]) || (r.xSteps[0] = n[1]), r.xHighestCompleteStep.push(0) } function h(t, e, n) { if (!e) return !0; n.xSteps[t] = u([n.xVal[t], n.xVal[t + 1]], e) / l(n.xPct[t], n.xPct[t + 1]); var r = (n.xVal[t + 1] - n.xVal[t]) / n.xNumSteps[t], i = Math.ceil(Number(r.toFixed(3)) - 1), o = n.xVal[t] + n.xNumSteps[t] * i; n.xHighestCompleteStep[t] = o } function m(t, e, n, r) { this.xPct = [], this.xVal = [], this.xSteps = [r || !1], this.xNumSteps = [!1], this.xHighestCompleteStep = [], this.snap = e, this.direction = n; var i, o = []; for (i in t) t.hasOwnProperty(i) && o.push([t[i], i]); for (o.length && "object" == typeof o[0][0] ? o.sort(function (t, e) { return t[0][0] - e[0][0] }) : o.sort(function (t, e) { return t[0] - e[0] }), i = 0; i < o.length; i++) d(o[i][1], o[i][0], this); for (this.xNumSteps = this.xSteps.slice(0), i = 0; i < this.xNumSteps.length; i++) h(i, this.xNumSteps[i], this) } m.prototype.getMargin = function (t) { var e = this.xNumSteps[0]; if (e && t / e % 1 != 0) throw new Error("noUiSlider: 'limit', 'margin' and 'padding' must be divisible by step."); return 2 === this.xPct.length && u(this.xVal, t) }, m.prototype.toStepping = function (t) { return t = p(this.xVal, this.xPct, t) }, m.prototype.fromStepping = function (t) { return function (t, e, n) { if (n >= 100) return t.slice(-1)[0]; var r, i, o, s, a, u = c(n, e); return r = t[u - 1], i = t[u], o = e[u - 1], s = e[u], a = [r, i], (n - o) * l(o, s) * (a[1] - a[0]) / 100 + a[0] }(this.xVal, this.xPct, t) }, m.prototype.getStep = function (t) { return t = f(this.xPct, this.xSteps, this.snap, t) }, m.prototype.getNearbySteps = function (t) { var e = c(t, this.xPct); return { stepBefore: { startValue: this.xVal[e - 2], step: this.xNumSteps[e - 2], highestStep: this.xHighestCompleteStep[e - 2] }, thisStep: { startValue: this.xVal[e - 1], step: this.xNumSteps[e - 1], highestStep: this.xHighestCompleteStep[e - 1] }, stepAfter: { startValue: this.xVal[e - 0], step: this.xNumSteps[e - 0], highestStep: this.xHighestCompleteStep[e - 0] } } }, m.prototype.countStepDecimals = function () { var t = this.xNumSteps.map(i); return Math.max.apply(null, t) }, m.prototype.convert = function (t) { return this.getStep(this.toStepping(t)) }; var g = { to: function (t) { return void 0 !== t && t.toFixed(2) }, from: Number }; function v(t, n) { if (!e(n)) throw new Error("noUiSlider: 'step' is not numeric."); t.singleStep = n } function b(t, e) { if ("object" != typeof e || Array.isArray(e)) throw new Error("noUiSlider: 'range' is not an object."); if (void 0 === e.min || void 0 === e.max) throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'."); if (e.min === e.max) throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal."); t.spectrum = new m(e, t.snap, t.dir, t.singleStep) } function w(t, e) { if (e = r(e), !Array.isArray(e) || !e.length) throw new Error("noUiSlider: 'start' option is incorrect."); t.handles = e.length, t.start = e } function S(t, e) { if (t.snap = e, "boolean" != typeof e) throw new Error("noUiSlider: 'snap' option must be a boolean.") } function x(t, e) { if (t.animate = e, "boolean" != typeof e) throw new Error("noUiSlider: 'animate' option must be a boolean.") } function y(t, e) { if (t.animationDuration = e, "number" != typeof e) throw new Error("noUiSlider: 'animationDuration' option must be a number.") } function E(t, e) { var n, r = [!1]; if ("lower" === e ? e = [!0, !1] : "upper" === e && (e = [!1, !0]), !0 === e || !1 === e) { for (n = 1; n < t.handles; n++) r.push(e); r.push(!1) } else { if (!Array.isArray(e) || !e.length || e.length !== t.handles + 1) throw new Error("noUiSlider: 'connect' option doesn't match handle count."); r = e } t.connect = r } function C(t, e) { switch (e) { case "horizontal": t.ort = 0; break; case "vertical": t.ort = 1; break; default: throw new Error("noUiSlider: 'orientation' option is invalid.") } } function N(t, n) { if (!e(n)) throw new Error("noUiSlider: 'margin' option must be numeric."); if (0 !== n && (t.margin = t.spectrum.getMargin(n), !t.margin)) throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.") } function U(t, n) { if (!e(n)) throw new Error("noUiSlider: 'limit' option must be numeric."); if (t.limit = t.spectrum.getMargin(n), !t.limit || t.handles < 2) throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.") } function M(t, n) { if (!e(n)) throw new Error("noUiSlider: 'padding' option must be numeric."); if (0 !== n) { if (t.padding = t.spectrum.getMargin(n), !t.padding) throw new Error("noUiSlider: 'padding' option is only supported on linear sliders."); if (t.padding < 0) throw new Error("noUiSlider: 'padding' option must be a positive number."); if (t.padding >= 50) throw new Error("noUiSlider: 'padding' option must be less than half the range.") } } function P(t, e) { switch (e) { case "ltr": t.dir = 0; break; case "rtl": t.dir = 1; break; default: throw new Error("noUiSlider: 'direction' option was not recognized.") } } function k(t, e) { if ("string" != typeof e) throw new Error("noUiSlider: 'behaviour' must be a string containing options."); var n = e.indexOf("tap") >= 0, r = e.indexOf("drag") >= 0, i = e.indexOf("fixed") >= 0, o = e.indexOf("snap") >= 0, s = e.indexOf("hover") >= 0; if (i) { if (2 !== t.handles) throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles"); N(t, t.start[1] - t.start[0]) } t.events = { tap: n || o, drag: r, fixed: i, snap: o, hover: s } } function O(t, e) { if (!1 !== e) if (!0 === e) { t.tooltips = []; for (var n = 0; n < t.handles; n++) t.tooltips.push(!0) } else { if (t.tooltips = r(e), t.tooltips.length !== t.handles) throw new Error("noUiSlider: must pass a formatter for all handles."); t.tooltips.forEach(function (t) { if ("boolean" != typeof t && ("object" != typeof t || "function" != typeof t.to)) throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.") }) } } function V(t, e) { if (t.format = e, "function" == typeof e.to && "function" == typeof e.from) return !0; throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.") } function A(t, e) { if (void 0 !== e && "string" != typeof e && !1 !== e) throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`."); t.cssPrefix = e } function L(t, e) { if (void 0 !== e && "object" != typeof e) throw new Error("noUiSlider: 'cssClasses' must be an object."); if ("string" == typeof t.cssPrefix) { t.cssClasses = {}; for (var n in e) e.hasOwnProperty(n) && (t.cssClasses[n] = t.cssPrefix + e[n]) } else t.cssClasses = e } function F(t, e) { if (!0 !== e && !1 !== e) throw new Error("noUiSlider: 'useRequestAnimationFrame' option should be true (default) or false."); t.useRequestAnimationFrame = e } function j(t) { var e = { margin: 0, limit: 0, padding: 0, animate: !0, animationDuration: 300, format: g }, n = { step: { r: !1, t: v }, start: { r: !0, t: w }, connect: { r: !0, t: E }, direction: { r: !0, t: P }, snap: { r: !1, t: S }, animate: { r: !1, t: x }, animationDuration: { r: !1, t: y }, range: { r: !0, t: b }, orientation: { r: !1, t: C }, margin: { r: !1, t: N }, limit: { r: !1, t: U }, padding: { r: !1, t: M }, behaviour: { r: !0, t: k }, format: { r: !1, t: V }, tooltips: { r: !1, t: O }, cssPrefix: { r: !1, t: A }, cssClasses: { r: !1, t: L }, useRequestAnimationFrame: { r: !1, t: F } }, r = { connect: !1, direction: "ltr", behaviour: "tap", orientation: "horizontal", cssPrefix: "noUi-", cssClasses: { target: "target", base: "base", origin: "origin", handle: "handle", handleTouchArea: "handle-touch-area", handleLower: "handle-lower", handleUpper: "handle-upper", horizontal: "horizontal", vertical: "vertical", background: "background", connect: "connect", ltr: "ltr", rtl: "rtl", draggable: "draggable", drag: "state-drag", tap: "state-tap", active: "active", tooltip: "tooltip", pips: "pips", pipsHorizontal: "pips-horizontal", pipsVertical: "pips-vertical", marker: "marker", markerHorizontal: "marker-horizontal", markerVertical: "marker-vertical", markerNormal: "marker-normal", markerLarge: "marker-large", markerSub: "marker-sub", value: "value", valueHorizontal: "value-horizontal", valueVertical: "value-vertical", valueNormal: "value-normal", valueLarge: "value-large", valueSub: "value-sub" }, useRequestAnimationFrame: !0 }; Object.keys(n).forEach(function (i) { if (void 0 === t[i] && void 0 === r[i]) { if (n[i].r) throw new Error("noUiSlider: '" + i + "' is required."); return !0 } n[i].t(e, void 0 === t[i] ? r[i] : t[i]) }), e.pips = t.pips; var i = [ ["left", "top"], ["right", "bottom"] ]; return e.style = i[e.dir][e.ort], e.styleOposite = i[e.dir ? 0 : 1][e.ort], e } function z(e, i, l) { var u, c, p, f, d, h, m, g = window.navigator.pointerEnabled ? { start: "pointerdown", move: "pointermove", end: "pointerup" } : window.navigator.msPointerEnabled ? { start: "MSPointerDown", move: "MSPointerMove", end: "MSPointerUp" } : { start: "mousedown touchstart", move: "mousemove touchmove", end: "mouseup touchend" }, v = e, b = [], w = [], S = !1, x = i.spectrum, y = [], E = {}; function C(e, n) { return !!n && t(e, i.cssClasses.connect) } function N(e, n) { return !!i.tooltips[n] && t(e.firstChild, i.cssClasses.tooltip) } function U(t, e, n) { var r = document.createElement("div"), s = "", a = [i.cssClasses.valueNormal, i.cssClasses.valueLarge, i.cssClasses.valueSub], l = [i.cssClasses.markerNormal, i.cssClasses.markerLarge, i.cssClasses.markerSub], u = [i.cssClasses.valueHorizontal, i.cssClasses.valueVertical], c = [i.cssClasses.markerHorizontal, i.cssClasses.markerVertical]; function p(t, e, n) { return 'class="' + (r = n[1], s = (o = e) === i.cssClasses.value, p = s ? a : l, o + " " + (s ? u : c)[i.ort] + " " + p[r]) + '" style="' + i.style + ": " + t + '%"'; var r, o, s, p } return o(r, i.cssClasses.pips), o(r, 0 === i.ort ? i.cssClasses.pipsHorizontal : i.cssClasses.pipsVertical), Object.keys(t).forEach(function (r) { var o, a; o = r, (a = t[r])[1] = a[1] && e ? e(a[0], a[1]) : a[1], s += "<div " + p(o, i.cssClasses.marker, a) + "></div>", a[1] && (s += "<div " + p(o, i.cssClasses.value, a) + ">" + n.to(a[0]) + "</div>") }), r.innerHTML = s, r } function M(t) { var e, n, r, i, o, s, a, l, u, c, p = t.mode, f = t.density || 1, d = t.filter || !1, h = function (t, e, n) { if ("range" === t || "steps" === t) return x.xVal; if ("count" === t) { var r, i = 100 / (e - 1), o = 0; for (e = []; (r = o++ * i) <= 100;) e.push(r); t = "positions" } return "positions" === t ? e.map(function (t) { return x.fromStepping(n ? x.getStep(t) : t) }) : "values" === t ? n ? e.map(function (t) { return x.fromStepping(x.getStep(x.toStepping(t))) }) : e : void 0 }(p, t.values || !1, t.stepped || !1), m = (e = f, n = p, r = h, o = {}, s = x.xVal[0], a = x.xVal[x.xVal.length - 1], l = !1, u = !1, c = 0, i = r.slice().sort(function (t, e) { return t - e }), (r = i.filter(function (t) { return !this[t] && (this[t] = !0) }, {}))[0] !== s && (r.unshift(s), l = !0), r[r.length - 1] !== a && (r.push(a), u = !0), r.forEach(function (t, i) { var s, a, p, f, d, h, m, g, v, b = t, w = r[i + 1]; if ("steps" === n && (s = x.xNumSteps[i]), s || (s = w - b), !1 !== b && void 0 !== w) for (s = Math.max(s, 1e-7), a = b; a <= w; a = (a + s).toFixed(7) / 1) { for (m = (d = (f = x.toStepping(a)) - c) / e, v = d / (g = Math.round(m)), p = 1; p <= g; p += 1) o[(c + p * v).toFixed(5)] = ["x", 0]; h = r.indexOf(a) > -1 ? 1 : "steps" === n ? 2 : 0, !i && l && (h = 0), a === w && u || (o[f.toFixed(5)] = [a, h]), c = f } }), o), g = t.format || { to: Math.round }; return v.appendChild(U(m, d, g)) } function P() { var t = u.getBoundingClientRect(), e = "offset" + ["Width", "Height"][i.ort]; return 0 === i.ort ? t.width || u[e] : t.height || u[e] } function k(t, e, n, r) { var o = function (e) { return !v.hasAttribute("disabled") && (o = v, s = i.cssClasses.tap, (o.classList ? !o.classList.contains(s) : !new RegExp("\\b" + s + "\\b").test(o.className)) && (!!(e = function (t, e) { t.preventDefault(); var n, r, i = 0 === t.type.indexOf("touch"), o = 0 === t.type.indexOf("mouse"), s = 0 === t.type.indexOf("pointer"); 0 === t.type.indexOf("MSPointer") && (s = !0); if (i) { if (t.touches.length > 1) return !1; n = t.changedTouches[0].pageX, r = t.changedTouches[0].pageY } e = e || a(), (o || s) && (n = t.clientX + e.x, r = t.clientY + e.y); return t.pageOffset = e, t.points = [n, r], t.cursor = o || s, t }(e, r.pageOffset)) && (!(t === g.start && void 0 !== e.buttons && e.buttons > 1) && ((!r.hover || !e.buttons) && (e.calcPoint = e.points[i.ort], void n(e, r)))))); var o, s }, s = []; return t.split(" ").forEach(function (t) { e.addEventListener(t, o, !1), s.push([t, o]) }), s } function O(t) { var e, n, r, o, s, l = 100 * (t - (e = u, n = i.ort, r = e.getBoundingClientRect(), o = e.ownerDocument.documentElement, s = a(), /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (s.x = 0), n ? r.top + s.y - o.clientTop : r.left + s.x - o.clientLeft)) / P(); return i.dir ? 100 - l : l } function V(t, e, n, r) { var i = n.slice(), o = [!t, t], s = [t, !t]; r = r.slice(), t && r.reverse(), r.length > 1 ? r.forEach(function (t, n) { var r = q(i, t, i[t] + e, o[n], s[n]); !1 === r ? e = 0 : (e = r - i[t], i[t] = r) }) : o = s = [!0]; var a = !1; r.forEach(function (t, r) { a = X(t, n[t] + e, o[r], s[r]) || a }), a && r.forEach(function (t) { A("update", t), A("slide", t) }) } function A(t, e, n) { Object.keys(E).forEach(function (r) { var o = r.split(".")[0]; t === o && E[r].forEach(function (t) { t.call(f, y.map(i.format.to), e, y.slice(), n || !1, b.slice()) }) }) } function L(t, e) { "mouseout" === t.type && "HTML" === t.target.nodeName && null === t.relatedTarget && z(t, e) } function F(t, e) { if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === t.buttons && 0 !== e.buttonsProperty) return z(t, e); var n = (i.dir ? -1 : 1) * (t.calcPoint - e.startCalcPoint); V(n > 0, 100 * n / e.baseSize, e.locations, e.handleNumbers) } function z(t, e) { S && (s(S, i.cssClasses.active), S = !1), t.cursor && (document.body.style.cursor = "", document.body.removeEventListener("selectstart", document.body.noUiListener)), document.documentElement.noUiListeners.forEach(function (t) { document.documentElement.removeEventListener(t[0], t[1]) }), s(v, i.cssClasses.drag), B(), e.handleNumbers.forEach(function (t) { A("set", t), A("change", t), A("end", t) }) } function H(t, e) { if (1 === e.handleNumbers.length) { var n = c[e.handleNumbers[0]]; if (n.hasAttribute("disabled")) return !1; o(S = n.children[0], i.cssClasses.active) } t.preventDefault(), t.stopPropagation(); var r = k(g.move, document.documentElement, F, { startCalcPoint: t.calcPoint, baseSize: P(), pageOffset: t.pageOffset, handleNumbers: e.handleNumbers, buttonsProperty: t.buttons, locations: b.slice() }), s = k(g.end, document.documentElement, z, { handleNumbers: e.handleNumbers }), a = k("mouseout", document.documentElement, L, { handleNumbers: e.handleNumbers }); if (document.documentElement.noUiListeners = r.concat(s, a), t.cursor) { document.body.style.cursor = getComputedStyle(t.target).cursor, c.length > 1 && o(v, i.cssClasses.drag); var l = function () { return !1 }; document.body.noUiListener = l, document.body.addEventListener("selectstart", l, !1) } e.handleNumbers.forEach(function (t) { A("start", t) }) } function D(t) { t.stopPropagation(); var e, r, o, s = O(t.calcPoint), a = (e = s, r = 100, o = !1, c.forEach(function (t, n) { if (!t.hasAttribute("disabled")) { var i = Math.abs(b[n] - e); i < r && (o = n, r = i) } }), o); if (!1 === a) return !1; i.events.snap || n(v, i.cssClasses.tap, i.animationDuration), X(a, s, !0, !0), B(), A("slide", a, !0), A("set", a, !0), A("change", a, !0), A("update", a, !0), i.events.snap && H(t, { handleNumbers: [a] }) } function T(t) { var e = O(t.calcPoint), n = x.getStep(e), r = x.fromStepping(n); Object.keys(E).forEach(function (t) { "hover" === t.split(".")[0] && E[t].forEach(function (t) { t.call(f, r) }) }) } function q(t, e, n, r, o) { var s; return c.length > 1 && (r && e > 0 && (n = Math.max(n, t[e - 1] + i.margin)), o && e < c.length - 1 && (n = Math.min(n, t[e + 1] - i.margin))), c.length > 1 && i.limit && (r && e > 0 && (n = Math.min(n, t[e - 1] + i.limit)), o && e < c.length - 1 && (n = Math.max(n, t[e + 1] - i.limit))), i.padding && (0 === e && (n = Math.max(n, i.padding)), e === c.length - 1 && (n = Math.min(n, 100 - i.padding))), n = x.getStep(n), s = n, (n = Math.max(Math.min(s, 100), 0)) !== t[e] && n } function R(t) { return t + "%" } function B() { w.forEach(function (t) { var e = b[t] > 50 ? -1 : 1, n = 3 + (c.length + e * t); c[t].childNodes[0].style.zIndex = n }) } function X(t, e, n, r) { return !1 !== (e = q(b, t, e, n, r)) && (function (t, e) { b[t] = e, y[t] = x.fromStepping(e); var n = function () { c[t].style[i.style] = R(e), Y(t), Y(t + 1) }; window.requestAnimationFrame && i.useRequestAnimationFrame ? window.requestAnimationFrame(n) : n() }(t, e), !0) } function Y(t) { if (p[t]) { var e = 0, n = 100; 0 !== t && (e = b[t - 1]), t !== p.length - 1 && (n = b[t]), p[t].style[i.style] = R(e), p[t].style[i.styleOposite] = R(100 - n) } } function I(t, e) { null !== t && !1 !== t && ("number" == typeof t && (t = String(t)), !1 === (t = i.format.from(t)) || isNaN(t) || X(e, x.toStepping(t), !1, !1)) } function _(t, e) { var o = r(t), s = void 0 === b[0]; e = void 0 === e || !!e, o.forEach(I), i.animate && !s && n(v, i.cssClasses.tap, i.animationDuration), w.forEach(function (t) { X(t, b[t], !0, !1) }), B(), w.forEach(function (t) { A("update", t), null !== o[t] && e && A("set", t) }) } function W() { var t = y.map(i.format.to); return 1 === t.length ? t[0] : t } function $(t, e) { E[t] = E[t] || [], E[t].push(e), "update" === t.split(".")[0] && c.forEach(function (t, e) { A("update", e) }) } if (v.noUiSlider) throw new Error("Slider was already initialized."); return o(d = v, i.cssClasses.target), 0 === i.dir ? o(d, i.cssClasses.ltr) : o(d, i.cssClasses.rtl), 0 === i.ort ? o(d, i.cssClasses.horizontal) : o(d, i.cssClasses.vertical), u = t(d, i.cssClasses.base), function (e, n) { c = [], (p = []).push(C(n, e[0])); for (var r = 0; r < i.handles; r++) c.push((s = r, l = void 0, a = t(n, i.cssClasses.origin), t(l = t(a, i.cssClasses.handle), i.cssClasses.handleTouchArea), l.setAttribute("data-handle", s), 0 === s ? o(l, i.cssClasses.handleLower) : s === i.handles - 1 && o(l, i.cssClasses.handleUpper), a)), w[r] = r, p.push(C(n, e[r + 1])); var s, a, l }(i.connect, u), f = { destroy: function () { for (var t in i.cssClasses) i.cssClasses.hasOwnProperty(t) && s(v, i.cssClasses[t]); for (; v.firstChild;) v.removeChild(v.firstChild); delete v.noUiSlider }, steps: function () { return b.map(function (t, e) { var n = x.getNearbySteps(t), r = y[e], i = n.thisStep.step, o = null; !1 !== i && r + i > n.stepAfter.startValue && (i = n.stepAfter.startValue - r), o = r > n.thisStep.startValue ? n.thisStep.step : !1 !== n.stepBefore.step && r - n.stepBefore.highestStep, 100 === t ? i = null : 0 === t && (o = null); var s = x.countStepDecimals(); return null !== i && !1 !== i && (i = Number(i.toFixed(s))), null !== o && !1 !== o && (o = Number(o.toFixed(s))), [o, i] }) }, on: $, off: function (t) { var e = t && t.split(".")[0], n = e && t.substring(e.length); Object.keys(E).forEach(function (t) { var r = t.split(".")[0], i = t.substring(r.length); e && e !== r || n && n !== i || delete E[t] }) }, get: W, set: _, reset: function (t) { _(i.start, t) }, __moveHandles: function (t, e, n) { V(t, e, b, n) }, options: l, updateOptions: function (t, e) { var n = W(), r = ["margin", "limit", "padding", "range", "animate", "snap", "step", "format"]; r.forEach(function (e) { void 0 !== t[e] && (l[e] = t[e]) }); var o = j(l); r.forEach(function (e) { void 0 !== t[e] && (i[e] = o[e]) }), o.spectrum.direction = x.direction, x = o.spectrum, i.margin = o.margin, i.limit = o.limit, i.padding = o.padding, b = [], _(t.start || n, e) }, target: v, pips: M }, (h = i.events).fixed || c.forEach(function (t, e) { k(g.start, t.children[0], H, { handleNumbers: [e] }) }), h.tap && k(g.start, u, D, {}), h.hover && k(g.move, u, T, { hover: !0 }), h.drag && p.forEach(function (t, e) { if (!1 !== t && 0 !== e && e !== p.length - 1) { var n = c[e - 1], r = c[e], s = [t]; o(t, i.cssClasses.draggable), h.fixed && (s.push(n.children[0]), s.push(r.children[0])), s.forEach(function (t) { k(g.start, t, H, { handles: [n, r], handleNumbers: [e - 1, e] }) }) } }), _(i.start), i.pips && M(i.pips), i.tooltips && (m = c.map(N), $("update", function (t, e, n) { if (m[e]) { var r = t[e]; !0 !== i.tooltips[e] && (r = i.tooltips[e].to(n[e])), m[e].innerHTML = "<span>" + r + "</span>" } })), f } return { create: function (t, e) { if (!t.nodeName) throw new Error("noUiSlider.create requires a single element."); void 0 === e.tooltips && (e.tooltips = !0); var n = z(t, j(e), e); return t.noUiSlider = n, n } } });