").appendTo(i),
u = i.uniqueId().attr("id");
return (
this._addClass(r, "ui-tooltip-content"),
this._addClass(i, "ui-tooltip", "ui-widget ui-widget-content"),
i.appendTo(this._appendTo(t)),
(this.tooltips[u] = { element: t, tooltip: i })
);
},
_find: function (n) {
var t = n.data("ui-tooltip-id");
return t ? this.tooltips[t] : null;
},
_removeTooltip: function (n) {
n.remove();
delete this.tooltips[n.attr("id")];
},
_appendTo: function (n) {
var t = n.closest(".ui-front, dialog");
return t.length || (t = this.document[0].body), t;
},
_destroy: function () {
var t = this;
n.each(this.tooltips, function (i, r) {
var f = n.Event("blur"),
u = r.element;
f.target = f.currentTarget = u[0];
t.close(f, !0);
n("#" + i).remove();
u.data("ui-tooltip-title") &&
(u.attr("title") || u.attr("title", u.data("ui-tooltip-title")),
u.removeData("ui-tooltip-title"));
});
this.liveRegion.remove();
},
});
n.uiBackCompat !== !1 &&
n.widget("ui.tooltip", n.ui.tooltip, {
options: { tooltipClass: null },
_tooltip: function () {
var n = this._superApply(arguments);
return (
this.options.tooltipClass &&
n.tooltip.addClass(this.options.tooltipClass),
n
);
},
});
n.ui.tooltip;
var e = "ui-effects-",
s = "ui-effects-style",
h = "ui-effects-animated",
p = n;
(n.effects = { effect: {} }),
(function (n, t) {
function f(n, t, i) {
var r = h[t.type] || {};
return null == n
? i || !t.def
? null
: t.def
: ((n = r.floor ? ~~n : parseFloat(n)),
isNaN(n)
? t.def
: r.mod
? (n + r.mod) % r.mod
: 0 > n
? 0
: n > r.max
? r.max
: n);
}
function s(f) {
var o = i(),
s = (o._rgba = []);
return (
(f = f.toLowerCase()),
r(v, function (n, i) {
var r,
h = i.re.exec(f),
c = h && i.parse(h),
e = i.space || "rgba";
return c
? ((r = o[e](c)),
(o[u[e].cache] = r[u[e].cache]),
(s = o._rgba = r._rgba),
!1)
: t;
}),
s.length
? ("0,0,0,0" === s.join() && n.extend(s, e.transparent), o)
: e[f]
);
}
function o(n, t, i) {
return (
(i = (i + 1) % 1),
1 > 6 * i
? n + 6 * (t - n) * i
: 1 > 2 * i
? t
: 2 > 3 * i
? n + 6 * (t - n) * (2 / 3 - i)
: n
);
}
var e,
a = /^([\-+])=\s*(\d+\.?\d*)/,
v = [
{
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
parse: function (n) {
return [n[1], n[2], n[3], n[4]];
},
},
{
re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
parse: function (n) {
return [2.55 * n[1], 2.55 * n[2], 2.55 * n[3], n[4]];
},
},
{
re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
parse: function (n) {
return [
parseInt(n[1], 16),
parseInt(n[2], 16),
parseInt(n[3], 16),
];
},
},
{
re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
parse: function (n) {
return [
parseInt(n[1] + n[1], 16),
parseInt(n[2] + n[2], 16),
parseInt(n[3] + n[3], 16),
];
},
},
{
re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
space: "hsla",
parse: function (n) {
return [n[1], n[2] / 100, n[3] / 100, n[4]];
},
},
],
i = (n.Color = function (t, i, r, u) {
return new n.Color.fn.parse(t, i, r, u);
}),
u = {
rgba: {
props: {
red: { idx: 0, type: "byte" },
green: { idx: 1, type: "byte" },
blue: { idx: 2, type: "byte" },
},
},
hsla: {
props: {
hue: { idx: 0, type: "degrees" },
saturation: { idx: 1, type: "percent" },
lightness: { idx: 2, type: "percent" },
},
},
},
h = {
byte: { floor: !0, max: 255 },
percent: { max: 1 },
degrees: { mod: 360, floor: !0 },
},
c = (i.support = {}),
l = n("
")[0],
r = n.each;
l.style.cssText = "background-color:rgba(1,1,1,.5)";
c.rgba = l.style.backgroundColor.indexOf("rgba") > -1;
r(u, function (n, t) {
t.cache = "_" + n;
t.props.alpha = { idx: 3, type: "percent", def: 1 };
});
i.fn = n.extend(i.prototype, {
parse: function (o, h, c, l) {
if (o === t) return (this._rgba = [null, null, null, null]), this;
(o.jquery || o.nodeType) && ((o = n(o).css(h)), (h = t));
var a = this,
v = n.type(o),
y = (this._rgba = []);
return (
h !== t && ((o = [o, h, c, l]), (v = "array")),
"string" === v
? this.parse(s(o) || e._default)
: "array" === v
? (r(u.rgba.props, function (n, t) {
y[t.idx] = f(o[t.idx], t);
}),
this)
: "object" === v
? (o instanceof i
? r(u, function (n, t) {
o[t.cache] && (a[t.cache] = o[t.cache].slice());
})
: r(u, function (t, i) {
var u = i.cache;
r(i.props, function (n, t) {
if (!a[u] && i.to) {
if ("alpha" === n || null == o[n]) return;
a[u] = i.to(a._rgba);
}
a[u][t.idx] = f(o[n], t, !0);
});
a[u] &&
0 > n.inArray(null, a[u].slice(0, 3)) &&
((a[u][3] = 1), i.from && (a._rgba = i.from(a[u])));
}),
this)
: t
);
},
is: function (n) {
var o = i(n),
f = !0,
e = this;
return (
r(u, function (n, i) {
var s,
u = o[i.cache];
return (
u &&
((s = e[i.cache] || (i.to && i.to(e._rgba)) || []),
r(i.props, function (n, i) {
return null != u[i.idx] ? (f = u[i.idx] === s[i.idx]) : t;
})),
f
);
}),
f
);
},
_space: function () {
var n = [],
t = this;
return (
r(u, function (i, r) {
t[r.cache] && n.push(i);
}),
n.pop()
);
},
transition: function (n, t) {
var e = i(n),
c = e._space(),
o = u[c],
l = 0 === this.alpha() ? i("transparent") : this,
a = l[o.cache] || o.to(l._rgba),
s = a.slice();
return (
(e = e[o.cache]),
r(o.props, function (n, i) {
var c = i.idx,
r = a[c],
u = e[c],
o = h[i.type] || {};
null !== u &&
(null === r
? (s[c] = u)
: (o.mod &&
(u - r > o.mod / 2
? (r += o.mod)
: r - u > o.mod / 2 && (r -= o.mod)),
(s[c] = f((u - r) * t + r, i))));
}),
this[c](s)
);
},
blend: function (t) {
if (1 === this._rgba[3]) return this;
var r = this._rgba.slice(),
u = r.pop(),
f = i(t)._rgba;
return i(
n.map(r, function (n, t) {
return (1 - u) * f[t] + u * n;
})
);
},
toRgbaString: function () {
var i = "rgba(",
t = n.map(this._rgba, function (n, t) {
return null == n ? (t > 2 ? 1 : 0) : n;
});
return 1 === t[3] && (t.pop(), (i = "rgb(")), i + t.join() + ")";
},
toHslaString: function () {
var i = "hsla(",
t = n.map(this.hsla(), function (n, t) {
return (
null == n && (n = t > 2 ? 1 : 0),
t && 3 > t && (n = Math.round(100 * n) + "%"),
n
);
});
return 1 === t[3] && (t.pop(), (i = "hsl(")), i + t.join() + ")";
},
toHexString: function (t) {
var i = this._rgba.slice(),
r = i.pop();
return (
t && i.push(~~(255 * r)),
"#" +
n
.map(i, function (n) {
return (
(n = (n || 0).toString(16)), 1 === n.length ? "0" + n : n
);
})
.join("")
);
},
toString: function () {
return 0 === this._rgba[3] ? "transparent" : this.toRgbaString();
},
});
i.fn.parse.prototype = i.fn;
u.hsla.to = function (n) {
if (null == n[0] || null == n[1] || null == n[2])
return [null, null, null, n[3]];
var s,
h,
i = n[0] / 255,
r = n[1] / 255,
f = n[2] / 255,
c = n[3],
u = Math.max(i, r, f),
e = Math.min(i, r, f),
t = u - e,
o = u + e,
l = 0.5 * o;
return (
(s =
e === u
? 0
: i === u
? (60 * (r - f)) / t + 360
: r === u
? (60 * (f - i)) / t + 120
: (60 * (i - r)) / t + 240),
(h = 0 === t ? 0 : 0.5 >= l ? t / o : t / (2 - o)),
[Math.round(s) % 360, h, l, null == c ? 1 : c]
);
};
u.hsla.from = function (n) {
if (null == n[0] || null == n[1] || null == n[2])
return [null, null, null, n[3]];
var r = n[0] / 360,
u = n[1],
t = n[2],
e = n[3],
i = 0.5 >= t ? t * (1 + u) : t + u - t * u,
f = 2 * t - i;
return [
Math.round(255 * o(f, i, r + 1 / 3)),
Math.round(255 * o(f, i, r)),
Math.round(255 * o(f, i, r - 1 / 3)),
e,
];
};
r(u, function (u, e) {
var s = e.props,
o = e.cache,
h = e.to,
c = e.from;
i.fn[u] = function (u) {
if ((h && !this[o] && (this[o] = h(this._rgba)), u === t))
return this[o].slice();
var l,
a = n.type(u),
v = "array" === a || "object" === a ? u : arguments,
e = this[o].slice();
return (
r(s, function (n, t) {
var i = v["object" === a ? n : t.idx];
null == i && (i = e[t.idx]);
e[t.idx] = f(i, t);
}),
c ? ((l = i(c(e))), (l[o] = e), l) : i(e)
);
};
r(s, function (t, r) {
i.fn[t] ||
(i.fn[t] = function (i) {
var f,
e = n.type(i),
h = "alpha" === t ? (this._hsla ? "hsla" : "rgba") : u,
o = this[h](),
s = o[r.idx];
return "undefined" === e
? s
: ("function" === e && ((i = i.call(this, s)), (e = n.type(i))),
null == i && r.empty
? this
: ("string" === e &&
((f = a.exec(i)),
f &&
(i = s + parseFloat(f[2]) * ("+" === f[1] ? 1 : -1))),
(o[r.idx] = i),
this[h](o)));
});
});
});
i.hook = function (t) {
var u = t.split(" ");
r(u, function (t, r) {
n.cssHooks[r] = {
set: function (t, u) {
var o,
f,
e = "";
if (
"transparent" !== u &&
("string" !== n.type(u) || (o = s(u)))
) {
if (((u = i(o || u)), !c.rgba && 1 !== u._rgba[3])) {
for (
f = "backgroundColor" === r ? t.parentNode : t;
("" === e || "transparent" === e) && f && f.style;
)
try {
e = n.css(f, "backgroundColor");
f = f.parentNode;
} catch (h) {}
u = u.blend(e && "transparent" !== e ? e : "_default");
}
u = u.toRgbaString();
}
try {
t.style[r] = u;
} catch (h) {}
},
};
n.fx.step[r] = function (t) {
t.colorInit ||
((t.start = i(t.elem, r)),
(t.end = i(t.end)),
(t.colorInit = !0));
n.cssHooks[r].set(t.elem, t.start.transition(t.end, t.pos));
};
});
};
i.hook(
"backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"
);
n.cssHooks.borderColor = {
expand: function (n) {
var t = {};
return (
r(["Top", "Right", "Bottom", "Left"], function (i, r) {
t["border" + r + "Color"] = n;
}),
t
);
},
};
e = n.Color.names = {
aqua: "#00ffff",
black: "#000000",
blue: "#0000ff",
fuchsia: "#ff00ff",
gray: "#808080",
green: "#008000",
lime: "#00ff00",
maroon: "#800000",
navy: "#000080",
olive: "#808000",
purple: "#800080",
red: "#ff0000",
silver: "#c0c0c0",
teal: "#008080",
white: "#ffffff",
yellow: "#ffff00",
transparent: [null, null, null, 0],
_default: "#ffffff",
};
})(p),
(function () {
function t(t) {
var r,
u,
i = t.ownerDocument.defaultView
? t.ownerDocument.defaultView.getComputedStyle(t, null)
: t.currentStyle,
f = {};
if (i && i.length && i[0] && i[i[0]])
for (u = i.length; u--; )
(r = i[u]), "string" == typeof i[r] && (f[n.camelCase(r)] = i[r]);
else for (r in i) "string" == typeof i[r] && (f[r] = i[r]);
return f;
}
function i(t, i) {
var r,
f,
e = {};
for (r in i)
(f = i[r]),
t[r] !== f &&
(u[r] || ((n.fx.step[r] || !isNaN(parseFloat(f))) && (e[r] = f)));
return e;
}
var r = ["add", "remove", "toggle"],
u = {
border: 1,
borderBottom: 1,
borderColor: 1,
borderLeft: 1,
borderRight: 1,
borderTop: 1,
borderWidth: 1,
margin: 1,
padding: 1,
};
n.each(
[
"borderLeftStyle",
"borderRightStyle",
"borderBottomStyle",
"borderTopStyle",
],
function (t, i) {
n.fx.step[i] = function (n) {
(("none" === n.end || n.setAttr) && (1 !== n.pos || n.setAttr)) ||
(p.style(n.elem, i, n.end), (n.setAttr = !0));
};
}
);
n.fn.addBack ||
(n.fn.addBack = function (n) {
return this.add(
null == n ? this.prevObject : this.prevObject.filter(n)
);
});
n.effects.animateClass = function (u, f, e, o) {
var s = n.speed(f, e, o);
return this.queue(function () {
var o,
e = n(this),
h = e.attr("class") || "",
f = s.children ? e.find("*").addBack() : e;
f = f.map(function () {
var i = n(this);
return { el: i, start: t(this) };
});
o = function () {
n.each(r, function (n, t) {
u[t] && e[t + "Class"](u[t]);
});
};
o();
f = f.map(function () {
return (
(this.end = t(this.el[0])),
(this.diff = i(this.start, this.end)),
this
);
});
e.attr("class", h);
f = f.map(function () {
var i = this,
t = n.Deferred(),
r = n.extend({}, s, {
queue: !1,
complete: function () {
t.resolve(i);
},
});
return this.el.animate(this.diff, r), t.promise();
});
n.when.apply(n, f.get()).done(function () {
o();
n.each(arguments, function () {
var t = this.el;
n.each(this.diff, function (n) {
t.css(n, "");
});
});
s.complete.call(e[0]);
});
});
};
n.fn.extend({
addClass: (function (t) {
return function (i, r, u, f) {
return r
? n.effects.animateClass.call(this, { add: i }, r, u, f)
: t.apply(this, arguments);
};
})(n.fn.addClass),
removeClass: (function (t) {
return function (i, r, u, f) {
return arguments.length > 1
? n.effects.animateClass.call(this, { remove: i }, r, u, f)
: t.apply(this, arguments);
};
})(n.fn.removeClass),
toggleClass: (function (t) {
return function (i, r, u, f, e) {
return "boolean" == typeof r || void 0 === r
? u
? n.effects.animateClass.call(
this,
r ? { add: i } : { remove: i },
u,
f,
e
)
: t.apply(this, arguments)
: n.effects.animateClass.call(this, { toggle: i }, r, u, f);
};
})(n.fn.toggleClass),
switchClass: function (t, i, r, u, f) {
return n.effects.animateClass.call(
this,
{ add: i, remove: t },
r,
u,
f
);
},
});
})(),
(function () {
function t(t, i, r, u) {
return (
n.isPlainObject(t) && ((i = t), (t = t.effect)),
(t = { effect: t }),
null == i && (i = {}),
n.isFunction(i) && ((u = i), (r = null), (i = {})),
("number" == typeof i || n.fx.speeds[i]) &&
((u = r), (r = i), (i = {})),
n.isFunction(r) && ((u = r), (r = null)),
i && n.extend(t, i),
(r = r || i.duration),
(t.duration = n.fx.off
? 0
: "number" == typeof r
? r
: r in n.fx.speeds
? n.fx.speeds[r]
: n.fx.speeds._default),
(t.complete = u || i.complete),
t
);
}
function i(t) {
return !t || "number" == typeof t || n.fx.speeds[t]
? !0
: "string" != typeof t || n.effects.effect[t]
? n.isFunction(t)
? !0
: "object" != typeof t || t.effect
? !1
: !0
: !0;
}
function r(n, t) {
var r = t.outerWidth(),
u = t.outerHeight(),
i =
/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(
n
) || ["", 0, r, u, 0];
return {
top: parseFloat(i[1]) || 0,
right: "auto" === i[2] ? r : parseFloat(i[2]),
bottom: "auto" === i[3] ? u : parseFloat(i[3]),
left: parseFloat(i[4]) || 0,
};
}
n.expr &&
n.expr.filters &&
n.expr.filters.animated &&
(n.expr.filters.animated = (function (t) {
return function (i) {
return !!n(i).data(h) || t(i);
};
})(n.expr.filters.animated));
n.uiBackCompat !== !1 &&
n.extend(n.effects, {
save: function (n, t) {
for (var i = 0, r = t.length; r > i; i++)
null !== t[i] && n.data(e + t[i], n[0].style[t[i]]);
},
restore: function (n, t) {
for (var r, i = 0, u = t.length; u > i; i++)
null !== t[i] && ((r = n.data(e + t[i])), n.css(t[i], r));
},
setMode: function (n, t) {
return "toggle" === t && (t = n.is(":hidden") ? "show" : "hide"), t;
},
createWrapper: function (t) {
if (t.parent().is(".ui-effects-wrapper")) return t.parent();
var i = {
width: t.outerWidth(!0),
height: t.outerHeight(!0),
float: t.css("float"),
},
u = n("
")
.addClass("ui-effects-wrapper")
.css({
fontSize: "100%",
background: "transparent",
border: "none",
margin: 0,
padding: 0,
}),
f = { width: t.width(), height: t.height() },
r = document.activeElement;
try {
r.id;
} catch (e) {
r = document.body;
}
return (
t.wrap(u),
(t[0] === r || n.contains(t[0], r)) && n(r).trigger("focus"),
(u = t.parent()),
"static" === t.css("position")
? (u.css({ position: "relative" }),
t.css({ position: "relative" }))
: (n.extend(i, {
position: t.css("position"),
zIndex: t.css("z-index"),
}),
n.each(["top", "left", "bottom", "right"], function (n, r) {
i[r] = t.css(r);
isNaN(parseInt(i[r], 10)) && (i[r] = "auto");
}),
t.css({
position: "relative",
top: 0,
left: 0,
right: "auto",
bottom: "auto",
})),
t.css(f),
u.css(i).show()
);
},
removeWrapper: function (t) {
var i = document.activeElement;
return (
t.parent().is(".ui-effects-wrapper") &&
(t.parent().replaceWith(t),
(t[0] === i || n.contains(t[0], i)) && n(i).trigger("focus")),
t
);
},
});
n.extend(n.effects, {
version: "1.12.1",
define: function (t, i, r) {
return (
r || ((r = i), (i = "effect")),
(n.effects.effect[t] = r),
(n.effects.effect[t].mode = i),
r
);
},
scaledDimensions: function (n, t, i) {
if (0 === t)
return { height: 0, width: 0, outerHeight: 0, outerWidth: 0 };
var r = "horizontal" !== i ? (t || 100) / 100 : 1,
u = "vertical" !== i ? (t || 100) / 100 : 1;
return {
height: n.height() * u,
width: n.width() * r,
outerHeight: n.outerHeight() * u,
outerWidth: n.outerWidth() * r,
};
},
clipToBox: function (n) {
return {
width: n.clip.right - n.clip.left,
height: n.clip.bottom - n.clip.top,
left: n.clip.left,
top: n.clip.top,
};
},
unshift: function (n, t, i) {
var r = n.queue();
t > 1 && r.splice.apply(r, [1, 0].concat(r.splice(t, i)));
n.dequeue();
},
saveStyle: function (n) {
n.data(s, n[0].style.cssText);
},
restoreStyle: function (n) {
n[0].style.cssText = n.data(s) || "";
n.removeData(s);
},
mode: function (n, t) {
var i = n.is(":hidden");
return (
"toggle" === t && (t = i ? "show" : "hide"),
(i ? "hide" === t : "show" === t) && (t = "none"),
t
);
},
getBaseline: function (n, t) {
var i, r;
switch (n[0]) {
case "top":
i = 0;
break;
case "middle":
i = 0.5;
break;
case "bottom":
i = 1;
break;
default:
i = n[0] / t.height;
}
switch (n[1]) {
case "left":
r = 0;
break;
case "center":
r = 0.5;
break;
case "right":
r = 1;
break;
default:
r = n[1] / t.width;
}
return { x: r, y: i };
},
createPlaceholder: function (t) {
var i,
r = t.css("position"),
u = t.position();
return (
t
.css({
marginTop: t.css("marginTop"),
marginBottom: t.css("marginBottom"),
marginLeft: t.css("marginLeft"),
marginRight: t.css("marginRight"),
})
.outerWidth(t.outerWidth())
.outerHeight(t.outerHeight()),
/^(static|relative)/.test(r) &&
((r = "absolute"),
(i = n("<" + t[0].nodeName + ">")
.insertAfter(t)
.css({
display: /^(inline|ruby)/.test(t.css("display"))
? "inline-block"
: "block",
visibility: "hidden",
marginTop: t.css("marginTop"),
marginBottom: t.css("marginBottom"),
marginLeft: t.css("marginLeft"),
marginRight: t.css("marginRight"),
float: t.css("float"),
})
.outerWidth(t.outerWidth())
.outerHeight(t.outerHeight())
.addClass("ui-effects-placeholder")),
t.data(e + "placeholder", i)),
t.css({ position: r, left: u.left, top: u.top }),
i
);
},
removePlaceholder: function (n) {
var t = e + "placeholder",
i = n.data(t);
i && (i.remove(), n.removeData(t));
},
cleanUp: function (t) {
n.effects.restoreStyle(t);
n.effects.removePlaceholder(t);
},
setTransition: function (t, i, r, u) {
return (
(u = u || {}),
n.each(i, function (n, i) {
var f = t.cssUnit(i);
f[0] > 0 && (u[i] = f[0] * r + f[1]);
}),
u
);
},
});
n.fn.extend({
effect: function () {
function o(t) {
function c() {
o.removeData(h);
n.effects.cleanUp(o);
"hide" === i.mode && o.hide();
s();
}
function s() {
n.isFunction(f) && f.call(o[0]);
n.isFunction(t) && t();
}
var o = n(this);
i.mode = l.shift();
n.uiBackCompat === !1 || u
? "none" === i.mode
? (o[r](), s())
: e.call(o[0], i, c)
: (o.is(":hidden") ? "hide" === r : "show" === r)
? (o[r](), s())
: e.call(o[0], i, s);
}
var i = t.apply(this, arguments),
e = n.effects.effect[i.effect],
u = e.mode,
s = i.queue,
c = s || "fx",
f = i.complete,
r = i.mode,
l = [],
a = function (t) {
var f = n(this),
i = n.effects.mode(f, r) || u;
f.data(h, !0);
l.push(i);
u && ("show" === i || (i === u && "hide" === i)) && f.show();
(u && "none" === i) || n.effects.saveStyle(f);
n.isFunction(t) && t();
};
return n.fx.off || !e
? r
? this[r](i.duration, f)
: this.each(function () {
f && f.call(this);
})
: s === !1
? this.each(a).each(o)
: this.queue(c, a).queue(c, o);
},
show: (function (n) {
return function (r) {
if (i(r)) return n.apply(this, arguments);
var u = t.apply(this, arguments);
return (u.mode = "show"), this.effect.call(this, u);
};
})(n.fn.show),
hide: (function (n) {
return function (r) {
if (i(r)) return n.apply(this, arguments);
var u = t.apply(this, arguments);
return (u.mode = "hide"), this.effect.call(this, u);
};
})(n.fn.hide),
toggle: (function (n) {
return function (r) {
if (i(r) || "boolean" == typeof r) return n.apply(this, arguments);
var u = t.apply(this, arguments);
return (u.mode = "toggle"), this.effect.call(this, u);
};
})(n.fn.toggle),
cssUnit: function (t) {
var i = this.css(t),
r = [];
return (
n.each(["em", "px", "%", "pt"], function (n, t) {
i.indexOf(t) > 0 && (r = [parseFloat(i), t]);
}),
r
);
},
cssClip: function (n) {
return n
? this.css(
"clip",
"rect(" +
n.top +
"px " +
n.right +
"px " +
n.bottom +
"px " +
n.left +
"px)"
)
: r(this.css("clip"), this);
},
transfer: function (t, i) {
var u = n(this),
r = n(t.to),
f = "fixed" === r.css("position"),
e = n("body"),
o = f ? e.scrollTop() : 0,
s = f ? e.scrollLeft() : 0,
h = r.offset(),
l = {
top: h.top - o,
left: h.left - s,
height: r.innerHeight(),
width: r.innerWidth(),
},
c = u.offset(),
a = n("
")
.appendTo("body")
.addClass(t.className)
.css({
top: c.top - o,
left: c.left - s,
height: u.innerHeight(),
width: u.innerWidth(),
position: f ? "fixed" : "absolute",
})
.animate(l, t.duration, t.easing, function () {
a.remove();
n.isFunction(i) && i();
});
},
});
n.fx.step.clip = function (t) {
t.clipInit ||
((t.start = n(t.elem).cssClip()),
"string" == typeof t.end && (t.end = r(t.end, t.elem)),
(t.clipInit = !0));
n(t.elem).cssClip({
top: t.pos * (t.end.top - t.start.top) + t.start.top,
right: t.pos * (t.end.right - t.start.right) + t.start.right,
bottom: t.pos * (t.end.bottom - t.start.bottom) + t.start.bottom,
left: t.pos * (t.end.left - t.start.left) + t.start.left,
});
};
})(),
(function () {
var t = {};
n.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function (n, i) {
t[i] = function (t) {
return Math.pow(t, n + 2);
};
});
n.extend(t, {
Sine: function (n) {
return 1 - Math.cos((n * Math.PI) / 2);
},
Circ: function (n) {
return 1 - Math.sqrt(1 - n * n);
},
Elastic: function (n) {
return 0 === n || 1 === n
? n
: -Math.pow(2, 8 * (n - 1)) *
Math.sin(((80 * (n - 1) - 7.5) * Math.PI) / 15);
},
Back: function (n) {
return n * n * (3 * n - 2);
},
Bounce: function (n) {
for (var t, i = 4; ((t = Math.pow(2, --i)) - 1) / 11 > n; );
return (
1 / Math.pow(4, 3 - i) - 7.5625 * Math.pow((3 * t - 2) / 22 - n, 2)
);
},
});
n.each(t, function (t, i) {
n.easing["easeIn" + t] = i;
n.easing["easeOut" + t] = function (n) {
return 1 - i(1 - n);
};
n.easing["easeInOut" + t] = function (n) {
return 0.5 > n ? i(2 * n) / 2 : 1 - i(-2 * n + 2) / 2;
};
});
})();
w = n.effects;
n.effects.define("blind", "hide", function (t, i) {
var e = {
up: ["bottom", "top"],
vertical: ["bottom", "top"],
down: ["top", "bottom"],
left: ["right", "left"],
horizontal: ["right", "left"],
right: ["left", "right"],
},
u = n(this),
o = t.direction || "up",
s = u.cssClip(),
r = { clip: n.extend({}, s) },
f = n.effects.createPlaceholder(u);
r.clip[e[o][0]] = r.clip[e[o][1]];
"show" === t.mode &&
(u.cssClip(r.clip), f && f.css(n.effects.clipToBox(r)), (r.clip = s));
f && f.animate(n.effects.clipToBox(r), t.duration, t.easing);
u.animate(r, {
queue: !1,
duration: t.duration,
easing: t.easing,
complete: i,
});
});
n.effects.define("bounce", function (t, i) {
var e,
o,
a,
u = n(this),
p = t.mode,
s = "hide" === p,
w = "show" === p,
h = t.direction || "up",
r = t.distance,
v = t.times || 5,
b = 2 * v + (w || s ? 1 : 0),
c = t.duration / b,
l = t.easing,
f = "up" === h || "down" === h ? "top" : "left",
y = "up" === h || "left" === h,
k = 0,
d = u.queue().length;
for (
n.effects.createPlaceholder(u),
a = u.css(f),
r || (r = u["top" === f ? "outerHeight" : "outerWidth"]() / 3),
w &&
((o = { opacity: 1 }),
(o[f] = a),
u
.css("opacity", 0)
.css(f, y ? 2 * -r : 2 * r)
.animate(o, c, l)),
s && (r /= Math.pow(2, v - 1)),
o = {},
o[f] = a;
v > k;
k++
)
(e = {}),
(e[f] = (y ? "-=" : "+=") + r),
u.animate(e, c, l).animate(o, c, l),
(r = s ? 2 * r : r / 2);
s &&
((e = { opacity: 0 }),
(e[f] = (y ? "-=" : "+=") + r),
u.animate(e, c, l));
u.queue(i);
n.effects.unshift(u, d, b + 1);
});
n.effects.define("clip", "hide", function (t, i) {
var r,
u = {},
f = n(this),
e = t.direction || "vertical",
o = "both" === e,
s = o || "horizontal" === e,
h = o || "vertical" === e;
r = f.cssClip();
u.clip = {
top: h ? (r.bottom - r.top) / 2 : r.top,
right: s ? (r.right - r.left) / 2 : r.right,
bottom: h ? (r.bottom - r.top) / 2 : r.bottom,
left: s ? (r.right - r.left) / 2 : r.left,
};
n.effects.createPlaceholder(f);
"show" === t.mode && (f.cssClip(u.clip), (u.clip = r));
f.animate(u, {
queue: !1,
duration: t.duration,
easing: t.easing,
complete: i,
});
});
n.effects.define("drop", "hide", function (t, i) {
var e,
u = n(this),
h = t.mode,
c = "show" === h,
f = t.direction || "left",
o = "up" === f || "down" === f ? "top" : "left",
s = "up" === f || "left" === f ? "-=" : "+=",
l = "+=" === s ? "-=" : "+=",
r = { opacity: 0 };
n.effects.createPlaceholder(u);
e = t.distance || u["top" === o ? "outerHeight" : "outerWidth"](!0) / 2;
r[o] = s + e;
c && (u.css(r), (r[o] = l + e), (r.opacity = 1));
u.animate(r, {
queue: !1,
duration: t.duration,
easing: t.easing,
complete: i,
});
});
n.effects.define("explode", "hide", function (t, i) {
function b() {
p.push(this);
p.length === e * c && k();
}
function k() {
o.css({ visibility: "visible" });
n(p).remove();
i();
}
for (
var u,
l,
a,
v,
y,
e = t.pieces ? Math.round(Math.sqrt(t.pieces)) : 3,
c = e,
o = n(this),
d = t.mode,
f = "show" === d,
w = o.show().css("visibility", "hidden").offset(),
s = Math.ceil(o.outerWidth() / c),
h = Math.ceil(o.outerHeight() / e),
p = [],
r = 0;
e > r;
r++
)
for (a = w.top + r * h, y = r - (e - 1) / 2, u = 0; c > u; u++)
(l = w.left + u * s),
(v = u - (c - 1) / 2),
o
.clone()
.appendTo("body")
.wrap("
")
.css({
position: "absolute",
visibility: "visible",
left: -u * s,
top: -r * h,
})
.parent()
.addClass("ui-effects-explode")
.css({
position: "absolute",
overflow: "hidden",
width: s,
height: h,
left: l + (f ? v * s : 0),
top: a + (f ? y * h : 0),
opacity: f ? 0 : 1,
})
.animate(
{
left: l + (f ? 0 : v * s),
top: a + (f ? 0 : y * h),
opacity: f ? 1 : 0,
},
t.duration || 500,
t.easing,
b
);
});
n.effects.define("fade", "toggle", function (t, i) {
var r = "show" === t.mode;
n(this)
.css("opacity", r ? 0 : 1)
.animate(
{ opacity: r ? 1 : 0 },
{ queue: !1, duration: t.duration, easing: t.easing, complete: i }
);
});
n.effects.define("fold", "hide", function (t, i) {
var u = n(this),
l = t.mode,
v = "show" === l,
y = "hide" === l,
o = t.size || 15,
a = /([0-9]+)%/.exec(o),
p = !!t.horizFirst,
f = p ? ["right", "bottom"] : ["bottom", "right"],
s = t.duration / 2,
h = n.effects.createPlaceholder(u),
e = u.cssClip(),
c = { clip: n.extend({}, e) },
r = { clip: n.extend({}, e) },
w = [e[f[0]], e[f[1]]],
b = u.queue().length;
a && (o = (parseInt(a[1], 10) / 100) * w[y ? 0 : 1]);
c.clip[f[0]] = o;
r.clip[f[0]] = o;
r.clip[f[1]] = 0;
v && (u.cssClip(r.clip), h && h.css(n.effects.clipToBox(r)), (r.clip = e));
u.queue(function (i) {
h &&
h
.animate(n.effects.clipToBox(c), s, t.easing)
.animate(n.effects.clipToBox(r), s, t.easing);
i();
})
.animate(c, s, t.easing)
.animate(r, s, t.easing)
.queue(i);
n.effects.unshift(u, b, 4);
});
n.effects.define("highlight", "show", function (t, i) {
var r = n(this),
u = { backgroundColor: r.css("backgroundColor") };
"hide" === t.mode && (u.opacity = 0);
n.effects.saveStyle(r);
r.css({
backgroundImage: "none",
backgroundColor: t.color || "#ffff99",
}).animate(u, {
queue: !1,
duration: t.duration,
easing: t.easing,
complete: i,
});
});
n.effects.define("size", function (t, i) {
var l,
r,
p,
u = n(this),
v = ["fontSize"],
s = [
"borderTopWidth",
"borderBottomWidth",
"paddingTop",
"paddingBottom",
],
h = [
"borderLeftWidth",
"borderRightWidth",
"paddingLeft",
"paddingRight",
],
w = t.mode,
y = "effect" !== w,
c = t.scale || "both",
b = t.origin || ["middle", "center"],
k = u.css("position"),
a = u.position(),
o = n.effects.scaledDimensions(u),
f = t.from || o,
e = t.to || n.effects.scaledDimensions(u, 0);
n.effects.createPlaceholder(u);
"show" === w && ((p = f), (f = e), (e = p));
r = {
from: { y: f.height / o.height, x: f.width / o.width },
to: { y: e.height / o.height, x: e.width / o.width },
};
("box" === c || "both" === c) &&
(r.from.y !== r.to.y &&
((f = n.effects.setTransition(u, s, r.from.y, f)),
(e = n.effects.setTransition(u, s, r.to.y, e))),
r.from.x !== r.to.x &&
((f = n.effects.setTransition(u, h, r.from.x, f)),
(e = n.effects.setTransition(u, h, r.to.x, e))));
("content" === c || "both" === c) &&
r.from.y !== r.to.y &&
((f = n.effects.setTransition(u, v, r.from.y, f)),
(e = n.effects.setTransition(u, v, r.to.y, e)));
b &&
((l = n.effects.getBaseline(b, o)),
(f.top = (o.outerHeight - f.outerHeight) * l.y + a.top),
(f.left = (o.outerWidth - f.outerWidth) * l.x + a.left),
(e.top = (o.outerHeight - e.outerHeight) * l.y + a.top),
(e.left = (o.outerWidth - e.outerWidth) * l.x + a.left));
u.css(f);
("content" === c || "both" === c) &&
((s = s.concat(["marginTop", "marginBottom"]).concat(v)),
(h = h.concat(["marginLeft", "marginRight"])),
u.find("*[width]").each(function () {
var i = n(this),
u = n.effects.scaledDimensions(i),
f = {
height: u.height * r.from.y,
width: u.width * r.from.x,
outerHeight: u.outerHeight * r.from.y,
outerWidth: u.outerWidth * r.from.x,
},
e = {
height: u.height * r.to.y,
width: u.width * r.to.x,
outerHeight: u.height * r.to.y,
outerWidth: u.width * r.to.x,
};
r.from.y !== r.to.y &&
((f = n.effects.setTransition(i, s, r.from.y, f)),
(e = n.effects.setTransition(i, s, r.to.y, e)));
r.from.x !== r.to.x &&
((f = n.effects.setTransition(i, h, r.from.x, f)),
(e = n.effects.setTransition(i, h, r.to.x, e)));
y && n.effects.saveStyle(i);
i.css(f);
i.animate(e, t.duration, t.easing, function () {
y && n.effects.restoreStyle(i);
});
}));
u.animate(e, {
queue: !1,
duration: t.duration,
easing: t.easing,
complete: function () {
var t = u.offset();
0 === e.opacity && u.css("opacity", f.opacity);
y ||
(u.css("position", "static" === k ? "relative" : k).offset(t),
n.effects.saveStyle(u));
i();
},
});
});
n.effects.define("scale", function (t, i) {
var u = n(this),
f = t.mode,
e =
parseInt(t.percent, 10) ||
(0 === parseInt(t.percent, 10) ? 0 : "effect" !== f ? 0 : 100),
r = n.extend(
!0,
{
from: n.effects.scaledDimensions(u),
to: n.effects.scaledDimensions(u, e, t.direction || "both"),
origin: t.origin || ["middle", "center"],
},
t
);
t.fade && ((r.from.opacity = 1), (r.to.opacity = 0));
n.effects.effect.size.call(this, r, i);
});
n.effects.define("puff", "hide", function (t, i) {
var r = n.extend(!0, {}, t, {
fade: !0,
percent: parseInt(t.percent, 10) || 150,
});
n.effects.effect.scale.call(this, r, i);
});
n.effects.define("pulsate", "show", function (t, i) {
var r = n(this),
e = t.mode,
o = "show" === e,
c = "hide" === e,
l = o || c,
f = 2 * (t.times || 5) + (l ? 1 : 0),
s = t.duration / f,
u = 0,
h = 1,
a = r.queue().length;
for (
(o || !r.is(":visible")) && (r.css("opacity", 0).show(), (u = 1));
f > h;
h++
)
r.animate({ opacity: u }, s, t.easing), (u = 1 - u);
r.animate({ opacity: u }, s, t.easing);
r.queue(i);
n.effects.unshift(r, a, f + 1);
});
n.effects.define("shake", function (t, i) {
var l = 1,
r = n(this),
f = t.direction || "left",
e = t.distance || 20,
a = t.times || 3,
v = 2 * a + 1,
u = Math.round(t.duration / v),
o = "up" === f || "down" === f ? "top" : "left",
s = "up" === f || "left" === f,
h = {},
c = {},
y = {},
p = r.queue().length;
for (
n.effects.createPlaceholder(r),
h[o] = (s ? "-=" : "+=") + e,
c[o] = (s ? "+=" : "-=") + 2 * e,
y[o] = (s ? "-=" : "+=") + 2 * e,
r.animate(h, u, t.easing);
a > l;
l++
)
r.animate(c, u, t.easing).animate(y, u, t.easing);
r.animate(c, u, t.easing)
.animate(h, u / 2, t.easing)
.queue(i);
n.effects.unshift(r, p, v + 1);
});
n.effects.define("slide", "show", function (t, i) {
var s,
o,
u = n(this),
h = {
up: ["bottom", "top"],
down: ["top", "bottom"],
left: ["right", "left"],
right: ["left", "right"],
},
c = t.mode,
f = t.direction || "left",
e = "up" === f || "down" === f ? "top" : "left",
l = "up" === f || "left" === f,
a = t.distance || u["top" === e ? "outerHeight" : "outerWidth"](!0),
r = {};
n.effects.createPlaceholder(u);
s = u.cssClip();
o = u.position()[e];
r[e] = (l ? -1 : 1) * a + o;
r.clip = u.cssClip();
r.clip[h[f][1]] = r.clip[h[f][0]];
"show" === c &&
(u.cssClip(r.clip), u.css(e, r[e]), (r.clip = s), (r[e] = o));
u.animate(r, {
queue: !1,
duration: t.duration,
easing: t.easing,
complete: i,
});
});
n.uiBackCompat !== !1 &&
(w = n.effects.define("transfer", function (t, i) {
n(this).transfer(t, i);
}));
});
jQuery(function () {
init();
initToolkit();
setFakeContainer();
initPromotionsLandingHeight();
initSmallBanner();
initAOS();
initCounterUp();
responsive();
});
$(window).on("resize", function () {
var n = $(".container").css("margin-left");
$(".section1").css("padding-left", n);
$(".section4").css("padding-left", n);
$(".listingVar5 .listingInfos").css("padding-left", n);
$(".timeline .blockHead").css("padding-left", n);
$(".menu").css("padding-left", n);
$(".timeline .owl-item:first-child").css("padding-left", n);
$(".listingItemLI.aos-init").each(function () {
$(this).addClass("fixopacity");
});
setInterval(function () {
$(".fp-section").length != 0 &&
($(".section.active").hasClass("darkbg")
? $(".navBar").removeClass("dark")
: $(".navBar").addClass("dark"));
}, 10);
$(
".listingVar3 .listingHolder .listingItemLI .listingItem .listingInfos"
).matchHeight();
responsive();
});