Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !function(e, t) {
- function n(e) {
- var t = e.length, n = ct.type(e);
- return ct.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e)
- }
- function r(e) {
- var t = Nt[e] = {};
- return ct.each(e.match(pt) || [], function(e, n) {
- t[n] = !0
- }), t
- }
- function i(e, n, r, i) {
- if (ct.acceptData(e)) {
- var o, a, s = ct.expando, l = e.nodeType, u = l ? ct.cache : e, c = l ? e[s] : e[s] && s;
- if (c && u[c] && (i || u[c].data) || r !== t || "string" != typeof n)
- return c || (c = l ? e[s] = tt.pop() || ct.guid++ : s), u[c] || (u[c] = l ? {} : {toJSON: ct.noop}), ("object" == typeof n || "function" == typeof n) && (i ? u[c] = ct.extend(u[c], n) : u[c].data = ct.extend(u[c].data, n)), a = u[c], i || (a.data || (a.data = {}), a = a.data), r !== t && (a[ct.camelCase(n)] = r), "string" == typeof n ? (o = a[n], null == o && (o = a[ct.camelCase(n)])) : o = a, o
- }
- }
- function o(e, t, n) {
- if (ct.acceptData(e)) {
- var r, i, o = e.nodeType, a = o ? ct.cache : e, l = o ? e[ct.expando] : ct.expando;
- if (a[l]) {
- if (t && (r = n ? a[l] : a[l].data)) {
- ct.isArray(t) ? t = t.concat(ct.map(t, ct.camelCase)) : t in r ? t = [t] : (t = ct.camelCase(t), t = t in r ? [t] : t.split(" ")), i = t.length;
- for (; i--; )
- delete r[t[i]];
- if (n ? !s(r) : !ct.isEmptyObject(r))
- return
- }
- (n || (delete a[l].data, s(a[l]))) && (o ? ct.cleanData([e], !0) : ct.support.deleteExpando || a != a.window ? delete a[l] : a[l] = null)
- }
- }
- }
- function a(e, n, r) {
- if (r === t && 1 === e.nodeType) {
- var i = "data-" + n.replace(Et, "-$1").toLowerCase();
- if (r = e.getAttribute(i), "string" == typeof r) {
- try {
- r = "true" === r ? !0 : "false" === r ? !1 : "null" === r ? null : +r + "" === r ? +r : St.test(r) ? ct.parseJSON(r) : r
- } catch (o) {
- }
- ct.data(e, n, r)
- } else
- r = t
- }
- return r
- }
- function s(e) {
- var t;
- for (t in e)
- if (("data" !== t || !ct.isEmptyObject(e[t])) && "toJSON" !== t)
- return !1;
- return !0
- }
- function l() {
- return !0
- }
- function u() {
- return !1
- }
- function c() {
- try {
- return G.activeElement
- } catch (e) {
- }
- }
- function f(e, t) {
- do
- e = e[t];
- while (e && 1 !== e.nodeType);
- return e
- }
- function p(e, t, n) {
- if (ct.isFunction(t))
- return ct.grep(e, function(e, r) {
- return !!t.call(e, r, e) !== n
- });
- if (t.nodeType)
- return ct.grep(e, function(e) {
- return e === t !== n
- });
- if ("string" == typeof t) {
- if (Wt.test(t))
- return ct.filter(t, e, n);
- t = ct.filter(t, e)
- }
- return ct.grep(e, function(e) {
- return ct.inArray(e, t) >= 0 !== n
- })
- }
- function d(e) {
- var t = Ut.split("|"), n = e.createDocumentFragment();
- if (n.createElement)
- for (; t.length; )
- n.createElement(t.pop());
- return n
- }
- function h(e, t) {
- return ct.nodeName(e, "table") && ct.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e
- }
- function m(e) {
- return e.type = (null !== ct.find.attr(e, "type")) + "/" + e.type, e
- }
- function g(e) {
- var t = on.exec(e.type);
- return t ? e.type = t[1] : e.removeAttribute("type"), e
- }
- function y(e, t) {
- for (var n, r = 0; null != (n = e[r]); r++)
- ct._data(n, "globalEval", !t || ct._data(t[r], "globalEval"))
- }
- function v(e, t) {
- if (1 === t.nodeType && ct.hasData(e)) {
- var n, r, i, o = ct._data(e), a = ct._data(t, o), s = o.events;
- if (s) {
- delete a.handle, a.events = {};
- for (n in s)
- for (r = 0, i = s[n].length; i > r; r++)
- ct.event.add(t, n, s[n][r])
- }
- a.data && (a.data = ct.extend({}, a.data))
- }
- }
- function b(e, t) {
- var n, r, i;
- if (1 === t.nodeType) {
- if (n = t.nodeName.toLowerCase(), !ct.support.noCloneEvent && t[ct.expando]) {
- i = ct._data(t);
- for (r in i.events)
- ct.removeEvent(t, r, i.handle);
- t.removeAttribute(ct.expando)
- }
- "script" === n && t.text !== e.text ? (m(t).text = e.text, g(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), ct.support.html5Clone && e.innerHTML && !ct.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && tn.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue)
- }
- }
- function x(e, n) {
- var r, i, o = 0, a = typeof e.getElementsByTagName !== J ? e.getElementsByTagName(n || "*") : typeof e.querySelectorAll !== J ? e.querySelectorAll(n || "*") : t;
- if (!a)
- for (a = [], r = e.childNodes || e; null != (i = r[o]); o++)
- !n || ct.nodeName(i, n) ? a.push(i) : ct.merge(a, x(i, n));
- return n === t || n && ct.nodeName(e, n) ? ct.merge([e], a) : a
- }
- function w(e) {
- tn.test(e.type) && (e.defaultChecked = e.checked)
- }
- function T(e, t) {
- if (t in e)
- return t;
- for (var n = t.charAt(0).toUpperCase() + t.slice(1), r = t, i = Nn.length; i--; )
- if (t = Nn[i] + n, t in e)
- return t;
- return r
- }
- function k(e, t) {
- return e = t || e, "none" === ct.css(e, "display") || !ct.contains(e.ownerDocument, e)
- }
- function C(e, t) {
- for (var n, r, i, o = [], a = 0, s = e.length; s > a; a++)
- r = e[a], r.style && (o[a] = ct._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && k(r) && (o[a] = ct._data(r, "olddisplay", j(r.nodeName)))) : o[a] || (i = k(r), (n && "none" !== n || !i) && ct._data(r, "olddisplay", i ? n : ct.css(r, "display"))));
- for (a = 0; s > a; a++)
- r = e[a], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
- return e
- }
- function N(e, t, n) {
- var r = vn.exec(t);
- return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
- }
- function S(e, t, n, r, i) {
- for (var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0, a = 0; 4 > o; o += 2)
- "margin" === n && (a += ct.css(e, n + Cn[o], !0, i)), r ? ("content" === n && (a -= ct.css(e, "padding" + Cn[o], !0, i)), "margin" !== n && (a -= ct.css(e, "border" + Cn[o] + "Width", !0, i))) : (a += ct.css(e, "padding" + Cn[o], !0, i), "padding" !== n && (a += ct.css(e, "border" + Cn[o] + "Width", !0, i)));
- return a
- }
- function E(e, t, n) {
- var r = !0, i = "width" === t ? e.offsetWidth : e.offsetHeight, o = fn(e), a = ct.support.boxSizing && "border-box" === ct.css(e, "boxSizing", !1, o);
- if (0 >= i || null == i) {
- if (i = pn(e, t, o), (0 > i || null == i) && (i = e.style[t]), bn.test(i))
- return i;
- r = a && (ct.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0
- }
- return i + S(e, t, n || (a ? "border" : "content"), r, o) + "px"
- }
- function j(e) {
- var t = G, n = wn[e];
- return n || (n = A(e, t), "none" !== n && n || (cn = (cn || ct("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (cn[0].contentWindow || cn[0].contentDocument).document, t.write("<!doctype html><html><body>"), t.close(), n = A(e, t), cn.detach()), wn[e] = n), n
- }
- function A(e, t) {
- var n = ct(t.createElement(e)).appendTo(t.body), r = ct.css(n[0], "display");
- return n.remove(), r
- }
- function D(e, t, n, r) {
- var i;
- if (ct.isArray(t))
- ct.each(t, function(t, i) {
- n || En.test(e) ? r(e, i) : D(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
- });
- else if (n || "object" !== ct.type(t))
- r(e, t);
- else
- for (i in t)
- D(e + "[" + i + "]", t[i], n, r)
- }
- function L(e) {
- return function(t, n) {
- "string" != typeof t && (n = t, t = "*");
- var r, i = 0, o = t.toLowerCase().match(pt) || [];
- if (ct.isFunction(n))
- for (; r = o[i++]; )
- "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
- }
- }
- function H(e, t, n, r) {
- function i(s) {
- var l;
- return o[s] = !0, ct.each(e[s] || [], function(e, s) {
- var u = s(t, n, r);
- return "string" != typeof u || a || o[u] ? a ? !(l = u) : void 0 : (t.dataTypes.unshift(u), i(u), !1)
- }), l
- }
- var o = {}, a = e === zn;
- return i(t.dataTypes[0]) || !o["*"] && i("*")
- }
- function $(e, n) {
- var r, i, o = ct.ajaxSettings.flatOptions || {};
- for (i in n)
- n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
- return r && ct.extend(!0, e, r), e
- }
- function q(e, n, r) {
- for (var i, o, a, s, l = e.contents, u = e.dataTypes; "*" === u[0]; )
- u.shift(), o === t && (o = e.mimeType || n.getResponseHeader("Content-Type"));
- if (o)
- for (s in l)
- if (l[s] && l[s].test(o)) {
- u.unshift(s);
- break
- }
- if (u[0] in r)
- a = u[0];
- else {
- for (s in r) {
- if (!u[0] || e.converters[s + " " + u[0]]) {
- a = s;
- break
- }
- i || (i = s)
- }
- a = a || i
- }
- return a ? (a !== u[0] && u.unshift(a), r[a]) : void 0
- }
- function _(e, t, n, r) {
- var i, o, a, s, l, u = {}, c = e.dataTypes.slice();
- if (c[1])
- for (a in e.converters)
- u[a.toLowerCase()] = e.converters[a];
- for (o = c.shift(); o; )
- if (e.responseFields[o] && (n[e.responseFields[o]] = t), !l && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), l = o, o = c.shift())
- if ("*" === o)
- o = l;
- else if ("*" !== l && l !== o) {
- if (a = u[l + " " + o] || u["* " + o], !a)
- for (i in u)
- if (s = i.split(" "), s[1] === o && (a = u[l + " " + s[0]] || u["* " + s[0]])) {
- a === !0 ? a = u[i] : u[i] !== !0 && (o = s[0], c.unshift(s[1]));
- break
- }
- if (a !== !0)
- if (a && e["throws"])
- t = a(t);
- else
- try {
- t = a(t)
- } catch (f) {
- return {state: "parsererror",error: a ? f : "No conversion from " + l + " to " + o}
- }
- }
- return {state: "success",data: t}
- }
- function F() {
- try {
- return new e.XMLHttpRequest
- } catch (t) {
- }
- }
- function O() {
- try {
- return new e.ActiveXObject("Microsoft.XMLHTTP")
- } catch (t) {
- }
- }
- function M() {
- return setTimeout(function() {
- Zn = t
- }), Zn = ct.now()
- }
- function B(e, t, n) {
- for (var r, i = (or[t] || []).concat(or["*"]), o = 0, a = i.length; a > o; o++)
- if (r = i[o].call(n, t, e))
- return r
- }
- function R(e, t, n) {
- var r, i, o = 0, a = ir.length, s = ct.Deferred().always(function() {
- delete l.elem
- }), l = function() {
- if (i)
- return !1;
- for (var t = Zn || M(), n = Math.max(0, u.startTime + u.duration - t), r = n / u.duration || 0, o = 1 - r, a = 0, l = u.tweens.length; l > a; a++)
- u.tweens[a].run(o);
- return s.notifyWith(e, [u, o, n]), 1 > o && l ? n : (s.resolveWith(e, [u]), !1)
- }, u = s.promise({elem: e,props: ct.extend({}, t),opts: ct.extend(!0, {specialEasing: {}}, n),originalProperties: t,originalOptions: n,startTime: Zn || M(),duration: n.duration,tweens: [],createTween: function(t, n) {
- var r = ct.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing);
- return u.tweens.push(r), r
- },stop: function(t) {
- var n = 0, r = t ? u.tweens.length : 0;
- if (i)
- return this;
- for (i = !0; r > n; n++)
- u.tweens[n].run(1);
- return t ? s.resolveWith(e, [u, t]) : s.rejectWith(e, [u, t]), this
- }}), c = u.props;
- for (P(c, u.opts.specialEasing); a > o; o++)
- if (r = ir[o].call(u, e, c, u.opts))
- return r;
- return ct.map(c, B, u), ct.isFunction(u.opts.start) && u.opts.start.call(e, u), ct.fx.timer(ct.extend(l, {elem: e,anim: u,queue: u.opts.queue})), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always)
- }
- function P(e, t) {
- var n, r, i, o, a;
- for (n in e)
- if (r = ct.camelCase(n), i = t[r], o = e[n], ct.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), a = ct.cssHooks[r], a && "expand" in a) {
- o = a.expand(o), delete e[r];
- for (n in o)
- n in e || (e[n] = o[n], t[n] = i)
- } else
- t[r] = i
- }
- function W(e, t, n) {
- var r, i, o, a, s, l, u = this, c = {}, f = e.style, p = e.nodeType && k(e), d = ct._data(e, "fxshow");
- n.queue || (s = ct._queueHooks(e, "fx"), null == s.unqueued && (s.unqueued = 0, l = s.empty.fire, s.empty.fire = function() {
- s.unqueued || l()
- }), s.unqueued++, u.always(function() {
- u.always(function() {
- s.unqueued--, ct.queue(e, "fx").length || s.empty.fire()
- })
- })), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [f.overflow, f.overflowX, f.overflowY], "inline" === ct.css(e, "display") && "none" === ct.css(e, "float") && (ct.support.inlineBlockNeedsLayout && "inline" !== j(e.nodeName) ? f.zoom = 1 : f.display = "inline-block")), n.overflow && (f.overflow = "hidden", ct.support.shrinkWrapBlocks || u.always(function() {
- f.overflow = n.overflow[0], f.overflowX = n.overflow[1], f.overflowY = n.overflow[2]
- }));
- for (r in t)
- if (i = t[r], tr.exec(i)) {
- if (delete t[r], o = o || "toggle" === i, i === (p ? "hide" : "show"))
- continue;
- c[r] = d && d[r] || ct.style(e, r)
- }
- if (!ct.isEmptyObject(c)) {
- d ? "hidden" in d && (p = d.hidden) : d = ct._data(e, "fxshow", {}), o && (d.hidden = !p), p ? ct(e).show() : u.done(function() {
- ct(e).hide()
- }), u.done(function() {
- var t;
- ct._removeData(e, "fxshow");
- for (t in c)
- ct.style(e, t, c[t])
- });
- for (r in c)
- a = B(p ? d[r] : 0, r, u), r in d || (d[r] = a.start, p && (a.end = a.start, a.start = "width" === r || "height" === r ? 1 : 0))
- }
- }
- function I(e, t, n, r, i) {
- return new I.prototype.init(e, t, n, r, i)
- }
- function z(e, t) {
- var n, r = {height: e}, i = 0;
- for (t = t ? 1 : 0; 4 > i; i += 2 - t)
- n = Cn[i], r["margin" + n] = r["padding" + n] = e;
- return t && (r.opacity = r.width = e), r
- }
- function X(e) {
- return ct.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1
- }
- var U, V, J = typeof t, Y = e.location, G = e.document, K = G.documentElement, Q = e.jQuery, Z = e.$, et = {}, tt = [], nt = "1.10.2", rt = tt.concat, it = tt.push, ot = tt.slice, at = tt.indexOf, st = et.toString, lt = et.hasOwnProperty, ut = nt.trim, ct = function(e, t) {
- return new ct.fn.init(e, t, V)
- }, ft = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, pt = /\S+/g, dt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ht = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, mt = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, gt = /^[\],:{}\s]*$/, yt = /(?:^|:|,)(?:\s*\[)+/g, vt = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, bt = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, xt = /^-ms-/, wt = /-([\da-z])/gi, Tt = function(e, t) {
- return t.toUpperCase()
- }, kt = function(e) {
- (G.addEventListener || "load" === e.type || "complete" === G.readyState) && (Ct(), ct.ready())
- }, Ct = function() {
- G.addEventListener ? (G.removeEventListener("DOMContentLoaded", kt, !1), e.removeEventListener("load", kt, !1)) : (G.detachEvent("onreadystatechange", kt), e.detachEvent("onload", kt))
- };
- ct.fn = ct.prototype = {jquery: nt,constructor: ct,init: function(e, n, r) {
- var i, o;
- if (!e)
- return this;
- if ("string" == typeof e) {
- if (i = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : ht.exec(e), !i || !i[1] && n)
- return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e);
- if (i[1]) {
- if (n = n instanceof ct ? n[0] : n, ct.merge(this, ct.parseHTML(i[1], n && n.nodeType ? n.ownerDocument || n : G, !0)), mt.test(i[1]) && ct.isPlainObject(n))
- for (i in n)
- ct.isFunction(this[i]) ? this[i](n[i]) : this.attr(i, n[i]);
- return this
- }
- if (o = G.getElementById(i[2]), o && o.parentNode) {
- if (o.id !== i[2])
- return r.find(e);
- this.length = 1, this[0] = o
- }
- return this.context = G, this.selector = e, this
- }
- return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : ct.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), ct.makeArray(e, this))
- },selector: "",length: 0,toArray: function() {
- return ot.call(this)
- },get: function(e) {
- return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e]
- },pushStack: function(e) {
- var t = ct.merge(this.constructor(), e);
- return t.prevObject = this, t.context = this.context, t
- },each: function(e, t) {
- return ct.each(this, e, t)
- },ready: function(e) {
- return ct.ready.promise().done(e), this
- },slice: function() {
- return this.pushStack(ot.apply(this, arguments))
- },first: function() {
- return this.eq(0)
- },last: function() {
- return this.eq(-1)
- },eq: function(e) {
- var t = this.length, n = +e + (0 > e ? t : 0);
- return this.pushStack(n >= 0 && t > n ? [this[n]] : [])
- },map: function(e) {
- return this.pushStack(ct.map(this, function(t, n) {
- return e.call(t, n, t)
- }))
- },end: function() {
- return this.prevObject || this.constructor(null)
- },push: it,sort: [].sort,splice: [].splice}, ct.fn.init.prototype = ct.fn, ct.extend = ct.fn.extend = function() {
- var e, n, r, i, o, a, s = arguments[0] || {}, l = 1, u = arguments.length, c = !1;
- for ("boolean" == typeof s && (c = s, s = arguments[1] || {}, l = 2), "object" == typeof s || ct.isFunction(s) || (s = {}), u === l && (s = this, --l); u > l; l++)
- if (null != (o = arguments[l]))
- for (i in o)
- e = s[i], r = o[i], s !== r && (c && r && (ct.isPlainObject(r) || (n = ct.isArray(r))) ? (n ? (n = !1, a = e && ct.isArray(e) ? e : []) : a = e && ct.isPlainObject(e) ? e : {}, s[i] = ct.extend(c, a, r)) : r !== t && (s[i] = r));
- return s
- }, ct.extend({expando: "jQuery" + (nt + Math.random()).replace(/\D/g, ""),noConflict: function(t) {
- return e.$ === ct && (e.$ = Z), t && e.jQuery === ct && (e.jQuery = Q), ct
- },isReady: !1,readyWait: 1,holdReady: function(e) {
- e ? ct.readyWait++ : ct.ready(!0)
- },ready: function(e) {
- if (e === !0 ? !--ct.readyWait : !ct.isReady) {
- if (!G.body)
- return setTimeout(ct.ready);
- ct.isReady = !0, e !== !0 && --ct.readyWait > 0 || (U.resolveWith(G, [ct]), ct.fn.trigger && ct(G).trigger("ready").off("ready"))
- }
- },isFunction: function(e) {
- return "function" === ct.type(e)
- },isArray: Array.isArray || function(e) {
- return "array" === ct.type(e)
- },isWindow: function(e) {
- return null != e && e == e.window
- },isNumeric: function(e) {
- return !isNaN(parseFloat(e)) && isFinite(e)
- },type: function(e) {
- return null == e ? String(e) : "object" == typeof e || "function" == typeof e ? et[st.call(e)] || "object" : typeof e
- },isPlainObject: function(e) {
- var n;
- if (!e || "object" !== ct.type(e) || e.nodeType || ct.isWindow(e))
- return !1;
- try {
- if (e.constructor && !lt.call(e, "constructor") && !lt.call(e.constructor.prototype, "isPrototypeOf"))
- return !1
- } catch (r) {
- return !1
- }
- if (ct.support.ownLast)
- for (n in e)
- return lt.call(e, n);
- for (n in e)
- ;
- return n === t || lt.call(e, n)
- },isEmptyObject: function(e) {
- var t;
- for (t in e)
- return !1;
- return !0
- },error: function(e) {
- throw new Error(e)
- },parseHTML: function(e, t, n) {
- if (!e || "string" != typeof e)
- return null;
- "boolean" == typeof t && (n = t, t = !1), t = t || G;
- var r = mt.exec(e), i = !n && [];
- return r ? [t.createElement(r[1])] : (r = ct.buildFragment([e], t, i), i && ct(i).remove(), ct.merge([], r.childNodes))
- },parseJSON: function(t) {
- return e.JSON && e.JSON.parse ? e.JSON.parse(t) : null === t ? t : "string" == typeof t && (t = ct.trim(t), t && gt.test(t.replace(vt, "@").replace(bt, "]").replace(yt, ""))) ? new Function("return " + t)() : (ct.error("Invalid JSON: " + t), void 0)
- },parseXML: function(n) {
- var r, i;
- if (!n || "string" != typeof n)
- return null;
- try {
- e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n))
- } catch (o) {
- r = t
- }
- return r && r.documentElement && !r.getElementsByTagName("parsererror").length || ct.error("Invalid XML: " + n), r
- },noop: function() {
- },globalEval: function(t) {
- t && ct.trim(t) && (e.execScript || function(t) {
- e.eval.call(e, t)
- })(t)
- },camelCase: function(e) {
- return e.replace(xt, "ms-").replace(wt, Tt)
- },nodeName: function(e, t) {
- return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
- },each: function(e, t, r) {
- var i, o = 0, a = e.length, s = n(e);
- if (r) {
- if (s)
- for (; a > o && (i = t.apply(e[o], r), i !== !1); o++)
- ;
- else
- for (o in e)
- if (i = t.apply(e[o], r), i === !1)
- break
- } else if (s)
- for (; a > o && (i = t.call(e[o], o, e[o]), i !== !1); o++)
- ;
- else
- for (o in e)
- if (i = t.call(e[o], o, e[o]), i === !1)
- break;
- return e
- },trim: ut && !ut.call(" ") ? function(e) {
- return null == e ? "" : ut.call(e)
- } : function(e) {
- return null == e ? "" : (e + "").replace(dt, "")
- },makeArray: function(e, t) {
- var r = t || [];
- return null != e && (n(Object(e)) ? ct.merge(r, "string" == typeof e ? [e] : e) : it.call(r, e)), r
- },inArray: function(e, t, n) {
- var r;
- if (t) {
- if (at)
- return at.call(t, e, n);
- for (r = t.length, n = n ? 0 > n ? Math.max(0, r + n) : n : 0; r > n; n++)
- if (n in t && t[n] === e)
- return n
- }
- return -1
- },merge: function(e, n) {
- var r = n.length, i = e.length, o = 0;
- if ("number" == typeof r)
- for (; r > o; o++)
- e[i++] = n[o];
- else
- for (; n[o] !== t; )
- e[i++] = n[o++];
- return e.length = i, e
- },grep: function(e, t, n) {
- var r, i = [], o = 0, a = e.length;
- for (n = !!n; a > o; o++)
- r = !!t(e[o], o), n !== r && i.push(e[o]);
- return i
- },map: function(e, t, r) {
- var i, o = 0, a = e.length, s = n(e), l = [];
- if (s)
- for (; a > o; o++)
- i = t(e[o], o, r), null != i && (l[l.length] = i);
- else
- for (o in e)
- i = t(e[o], o, r), null != i && (l[l.length] = i);
- return rt.apply([], l)
- },guid: 1,proxy: function(e, n) {
- var r, i, o;
- return "string" == typeof n && (o = e[n], n = e, e = o), ct.isFunction(e) ? (r = ot.call(arguments, 2), i = function() {
- return e.apply(n || this, r.concat(ot.call(arguments)))
- }, i.guid = e.guid = e.guid || ct.guid++, i) : t
- },access: function(e, n, r, i, o, a, s) {
- var l = 0, u = e.length, c = null == r;
- if ("object" === ct.type(r)) {
- o = !0;
- for (l in r)
- ct.access(e, n, l, r[l], !0, a, s)
- } else if (i !== t && (o = !0, ct.isFunction(i) || (s = !0), c && (s ? (n.call(e, i), n = null) : (c = n, n = function(e, t, n) {
- return c.call(ct(e), n)
- })), n))
- for (; u > l; l++)
- n(e[l], r, s ? i : i.call(e[l], l, n(e[l], r)));
- return o ? e : c ? n.call(e) : u ? n(e[0], r) : a
- },now: function() {
- return (new Date).getTime()
- },swap: function(e, t, n, r) {
- var i, o, a = {};
- for (o in t)
- a[o] = e.style[o], e.style[o] = t[o];
- i = n.apply(e, r || []);
- for (o in t)
- e.style[o] = a[o];
- return i
- }}), ct.ready.promise = function(t) {
- if (!U)
- if (U = ct.Deferred(), "complete" === G.readyState)
- setTimeout(ct.ready);
- else if (G.addEventListener)
- G.addEventListener("DOMContentLoaded", kt, !1), e.addEventListener("load", kt, !1);
- else {
- G.attachEvent("onreadystatechange", kt), e.attachEvent("onload", kt);
- var n = !1;
- try {
- n = null == e.frameElement && G.documentElement
- } catch (r) {
- }
- n && n.doScroll && !function i() {
- if (!ct.isReady) {
- try {
- n.doScroll("left")
- } catch (e) {
- return setTimeout(i, 50)
- }
- Ct(), ct.ready()
- }
- }()
- }
- return U.promise(t)
- }, ct.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) {
- et["[object " + t + "]"] = t.toLowerCase()
- }), V = ct(G), function(e, t) {
- function n(e, t, n, r) {
- var i, o, a, s, l, u, c, f, h, m;
- if ((t ? t.ownerDocument || t : R) !== H && L(t), t = t || H, n = n || [], !e || "string" != typeof e)
- return n;
- if (1 !== (s = t.nodeType) && 9 !== s)
- return [];
- if (q && !r) {
- if (i = bt.exec(e))
- if (a = i[1]) {
- if (9 === s) {
- if (o = t.getElementById(a), !o || !o.parentNode)
- return n;
- if (o.id === a)
- return n.push(o), n
- } else if (t.ownerDocument && (o = t.ownerDocument.getElementById(a)) && M(t, o) && o.id === a)
- return n.push(o), n
- } else {
- if (i[2])
- return et.apply(n, t.getElementsByTagName(e)), n;
- if ((a = i[3]) && k.getElementsByClassName && t.getElementsByClassName)
- return et.apply(n, t.getElementsByClassName(a)), n
- }
- if (k.qsa && (!_ || !_.test(e))) {
- if (f = c = B, h = t, m = 9 === s && e, 1 === s && "object" !== t.nodeName.toLowerCase()) {
- for (u = p(e), (c = t.getAttribute("id")) ? f = c.replace(Tt, "\\$&") : t.setAttribute("id", f), f = "[id='" + f + "'] ", l = u.length; l--; )
- u[l] = f + d(u[l]);
- h = dt.test(e) && t.parentNode || t, m = u.join(",")
- }
- if (m)
- try {
- return et.apply(n, h.querySelectorAll(m)), n
- } catch (g) {
- }finally {
- c || t.removeAttribute("id")
- }
- }
- }
- return w(e.replace(ut, "$1"), t, n, r)
- }
- function r() {
- function e(n, r) {
- return t.push(n += " ") > N.cacheLength && delete e[t.shift()], e[n] = r
- }
- var t = [];
- return e
- }
- function i(e) {
- return e[B] = !0, e
- }
- function o(e) {
- var t = H.createElement("div");
- try {
- return !!e(t)
- } catch (n) {
- return !1
- }finally {
- t.parentNode && t.parentNode.removeChild(t), t = null
- }
- }
- function a(e, t) {
- for (var n = e.split("|"), r = e.length; r--; )
- N.attrHandle[n[r]] = t
- }
- function s(e, t) {
- var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || Y) - (~e.sourceIndex || Y);
- if (r)
- return r;
- if (n)
- for (; n = n.nextSibling; )
- if (n === t)
- return -1;
- return e ? 1 : -1
- }
- function l(e) {
- return function(t) {
- var n = t.nodeName.toLowerCase();
- return "input" === n && t.type === e
- }
- }
- function u(e) {
- return function(t) {
- var n = t.nodeName.toLowerCase();
- return ("input" === n || "button" === n) && t.type === e
- }
- }
- function c(e) {
- return i(function(t) {
- return t = +t, i(function(n, r) {
- for (var i, o = e([], n.length, t), a = o.length; a--; )
- n[i = o[a]] && (n[i] = !(r[i] = n[i]))
- })
- })
- }
- function f() {
- }
- function p(e, t) {
- var r, i, o, a, s, l, u, c = z[e + " "];
- if (c)
- return t ? 0 : c.slice(0);
- for (s = e, l = [], u = N.preFilter; s; ) {
- (!r || (i = ft.exec(s))) && (i && (s = s.slice(i[0].length) || s), l.push(o = [])), r = !1, (i = pt.exec(s)) && (r = i.shift(), o.push({value: r,type: i[0].replace(ut, " ")}), s = s.slice(r.length));
- for (a in N.filter)
- !(i = yt[a].exec(s)) || u[a] && !(i = u[a](i)) || (r = i.shift(), o.push({value: r,type: a,matches: i}), s = s.slice(r.length));
- if (!r)
- break
- }
- return t ? s.length : s ? n.error(e) : z(e, l).slice(0)
- }
- function d(e) {
- for (var t = 0, n = e.length, r = ""; n > t; t++)
- r += e[t].value;
- return r
- }
- function h(e, t, n) {
- var r = t.dir, i = n && "parentNode" === r, o = W++;
- return t.first ? function(t, n, o) {
- for (; t = t[r]; )
- if (1 === t.nodeType || i)
- return e(t, n, o)
- } : function(t, n, a) {
- var s, l, u, c = P + " " + o;
- if (a) {
- for (; t = t[r]; )
- if ((1 === t.nodeType || i) && e(t, n, a))
- return !0
- } else
- for (; t = t[r]; )
- if (1 === t.nodeType || i)
- if (u = t[B] || (t[B] = {}), (l = u[r]) && l[0] === c) {
- if ((s = l[1]) === !0 || s === C)
- return s === !0
- } else if (l = u[r] = [c], l[1] = e(t, n, a) || C, l[1] === !0)
- return !0
- }
- }
- function m(e) {
- return e.length > 1 ? function(t, n, r) {
- for (var i = e.length; i--; )
- if (!e[i](t, n, r))
- return !1;
- return !0
- } : e[0]
- }
- function g(e, t, n, r, i) {
- for (var o, a = [], s = 0, l = e.length, u = null != t; l > s; s++)
- (o = e[s]) && (!n || n(o, r, i)) && (a.push(o), u && t.push(s));
- return a
- }
- function y(e, t, n, r, o, a) {
- return r && !r[B] && (r = y(r)), o && !o[B] && (o = y(o, a)), i(function(i, a, s, l) {
- var u, c, f, p = [], d = [], h = a.length, m = i || x(t || "*", s.nodeType ? [s] : s, []), y = !e || !i && t ? m : g(m, p, e, s, l), v = n ? o || (i ? e : h || r) ? [] : a : y;
- if (n && n(y, v, s, l), r)
- for (u = g(v, d), r(u, [], s, l), c = u.length; c--; )
- (f = u[c]) && (v[d[c]] = !(y[d[c]] = f));
- if (i) {
- if (o || e) {
- if (o) {
- for (u = [], c = v.length; c--; )
- (f = v[c]) && u.push(y[c] = f);
- o(null, v = [], u, l)
- }
- for (c = v.length; c--; )
- (f = v[c]) && (u = o ? nt.call(i, f) : p[c]) > -1 && (i[u] = !(a[u] = f))
- }
- } else
- v = g(v === a ? v.splice(h, v.length) : v), o ? o(null, a, v, l) : et.apply(a, v)
- })
- }
- function v(e) {
- for (var t, n, r, i = e.length, o = N.relative[e[0].type], a = o || N.relative[" "], s = o ? 1 : 0, l = h(function(e) {
- return e === t
- }, a, !0), u = h(function(e) {
- return nt.call(t, e) > -1
- }, a, !0), c = [function(e, n, r) {
- return !o && (r || n !== A) || ((t = n).nodeType ? l(e, n, r) : u(e, n, r))
- }]; i > s; s++)
- if (n = N.relative[e[s].type])
- c = [h(m(c), n)];
- else {
- if (n = N.filter[e[s].type].apply(null, e[s].matches), n[B]) {
- for (r = ++s; i > r && !N.relative[e[r].type]; r++)
- ;
- return y(s > 1 && m(c), s > 1 && d(e.slice(0, s - 1).concat({value: " " === e[s - 2].type ? "*" : ""})).replace(ut, "$1"), n, r > s && v(e.slice(s, r)), i > r && v(e = e.slice(r)), i > r && d(e))
- }
- c.push(n)
- }
- return m(c)
- }
- function b(e, t) {
- var r = 0, o = t.length > 0, a = e.length > 0, s = function(i, s, l, u, c) {
- var f, p, d, h = [], m = 0, y = "0", v = i && [], b = null != c, x = A, w = i || a && N.find.TAG("*", c && s.parentNode || s), T = P += null == x ? 1 : Math.random() || .1;
- for (b && (A = s !== H && s, C = r); null != (f = w[y]); y++) {
- if (a && f) {
- for (p = 0; d = e[p++]; )
- if (d(f, s, l)) {
- u.push(f);
- break
- }
- b && (P = T, C = ++r)
- }
- o && ((f = !d && f) && m--, i && v.push(f))
- }
- if (m += y, o && y !== m) {
- for (p = 0; d = t[p++]; )
- d(v, h, s, l);
- if (i) {
- if (m > 0)
- for (; y--; )
- v[y] || h[y] || (h[y] = Q.call(u));
- h = g(h)
- }
- et.apply(u, h), b && !i && h.length > 0 && m + t.length > 1 && n.uniqueSort(u)
- }
- return b && (P = T, A = x), v
- };
- return o ? i(s) : s
- }
- function x(e, t, r) {
- for (var i = 0, o = t.length; o > i; i++)
- n(e, t[i], r);
- return r
- }
- function w(e, t, n, r) {
- var i, o, a, s, l, u = p(e);
- if (!r && 1 === u.length) {
- if (o = u[0] = u[0].slice(0), o.length > 2 && "ID" === (a = o[0]).type && k.getById && 9 === t.nodeType && q && N.relative[o[1].type]) {
- if (t = (N.find.ID(a.matches[0].replace(kt, Ct), t) || [])[0], !t)
- return n;
- e = e.slice(o.shift().value.length)
- }
- for (i = yt.needsContext.test(e) ? 0 : o.length; i-- && (a = o[i], !N.relative[s = a.type]); )
- if ((l = N.find[s]) && (r = l(a.matches[0].replace(kt, Ct), dt.test(o[0].type) && t.parentNode || t))) {
- if (o.splice(i, 1), e = r.length && d(o), !e)
- return et.apply(n, r), n;
- break
- }
- }
- return j(e, u)(r, t, !q, n, dt.test(e)), n
- }
- var T, k, C, N, S, E, j, A, D, L, H, $, q, _, F, O, M, B = "sizzle" + -new Date, R = e.document, P = 0, W = 0, I = r(), z = r(), X = r(), U = !1, V = function(e, t) {
- return e === t ? (U = !0, 0) : 0
- }, J = typeof t, Y = 1 << 31, G = {}.hasOwnProperty, K = [], Q = K.pop, Z = K.push, et = K.push, tt = K.slice, nt = K.indexOf || function(e) {
- for (var t = 0, n = this.length; n > t; t++)
- if (this[t] === e)
- return t;
- return -1
- }, rt = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", it = "[\\x20\\t\\r\\n\\f]", ot = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", at = ot.replace("w", "w#"), st = "\\[" + it + "*(" + ot + ")" + it + "*(?:([*^$|!~]?=)" + it + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + at + ")|)|)" + it + "*\\]", lt = ":(" + ot + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + st.replace(3, 8) + ")*)|.*)\\)|)", ut = new RegExp("^" + it + "+|((?:^|[^\\\\])(?:\\\\.)*)" + it + "+$", "g"), ft = new RegExp("^" + it + "*," + it + "*"), pt = new RegExp("^" + it + "*([>+~]|" + it + ")" + it + "*"), dt = new RegExp(it + "*[+~]"), ht = new RegExp("=" + it + "*([^\\]'\"]*)" + it + "*\\]", "g"), mt = new RegExp(lt), gt = new RegExp("^" + at + "$"), yt = {ID: new RegExp("^#(" + ot + ")"),CLASS: new RegExp("^\\.(" + ot + ")"),TAG: new RegExp("^(" + ot.replace("w", "w*") + ")"),ATTR: new RegExp("^" + st),PSEUDO: new RegExp("^" + lt),CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + it + "*(even|odd|(([+-]|)(\\d*)n|)" + it + "*(?:([+-]|)" + it + "*(\\d+)|))" + it + "*\\)|)", "i"),bool: new RegExp("^(?:" + rt + ")$", "i"),needsContext: new RegExp("^" + it + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + it + "*((?:-\\d)?\\d*)" + it + "*\\)|)(?=[^-]|$)", "i")}, vt = /^[^{]+\{\s*\[native \w/, bt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, xt = /^(?:input|select|textarea|button)$/i, wt = /^h\d$/i, Tt = /'|\\/g, kt = new RegExp("\\\\([\\da-f]{1,6}" + it + "?|(" + it + ")|.)", "ig"), Ct = function(e, t, n) {
- var r = "0x" + t - 65536;
- return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r)
- };
- try {
- et.apply(K = tt.call(R.childNodes), R.childNodes), K[R.childNodes.length].nodeType
- } catch (Nt) {
- et = {apply: K.length ? function(e, t) {
- Z.apply(e, tt.call(t))
- } : function(e, t) {
- for (var n = e.length, r = 0; e[n++] = t[r++]; )
- ;
- e.length = n - 1
- }}
- }
- E = n.isXML = function(e) {
- var t = e && (e.ownerDocument || e).documentElement;
- return t ? "HTML" !== t.nodeName : !1
- }, k = n.support = {}, L = n.setDocument = function(e) {
- var t = e ? e.ownerDocument || e : R, n = t.defaultView;
- return t !== H && 9 === t.nodeType && t.documentElement ? (H = t, $ = t.documentElement, q = !E(t), n && n.attachEvent && n !== n.top && n.attachEvent("onbeforeunload", function() {
- L()
- }), k.attributes = o(function(e) {
- return e.className = "i", !e.getAttribute("className")
- }), k.getElementsByTagName = o(function(e) {
- return e.appendChild(t.createComment("")), !e.getElementsByTagName("*").length
- }), k.getElementsByClassName = o(function(e) {
- return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length
- }), k.getById = o(function(e) {
- return $.appendChild(e).id = B, !t.getElementsByName || !t.getElementsByName(B).length
- }), k.getById ? (N.find.ID = function(e, t) {
- if (typeof t.getElementById !== J && q) {
- var n = t.getElementById(e);
- return n && n.parentNode ? [n] : []
- }
- }, N.filter.ID = function(e) {
- var t = e.replace(kt, Ct);
- return function(e) {
- return e.getAttribute("id") === t
- }
- }) : (delete N.find.ID, N.filter.ID = function(e) {
- var t = e.replace(kt, Ct);
- return function(e) {
- var n = typeof e.getAttributeNode !== J && e.getAttributeNode("id");
- return n && n.value === t
- }
- }), N.find.TAG = k.getElementsByTagName ? function(e, t) {
- return typeof t.getElementsByTagName !== J ? t.getElementsByTagName(e) : void 0
- } : function(e, t) {
- var n, r = [], i = 0, o = t.getElementsByTagName(e);
- if ("*" === e) {
- for (; n = o[i++]; )
- 1 === n.nodeType && r.push(n);
- return r
- }
- return o
- }, N.find.CLASS = k.getElementsByClassName && function(e, t) {
- return typeof t.getElementsByClassName !== J && q ? t.getElementsByClassName(e) : void 0
- }, F = [], _ = [], (k.qsa = vt.test(t.querySelectorAll)) && (o(function(e) {
- e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || _.push("\\[" + it + "*(?:value|" + rt + ")"), e.querySelectorAll(":checked").length || _.push(":checked")
- }), o(function(e) {
- var n = t.createElement("input");
- n.setAttribute("type", "hidden"), e.appendChild(n).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && _.push("[*^$]=" + it + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || _.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), _.push(",.*:")
- })), (k.matchesSelector = vt.test(O = $.webkitMatchesSelector || $.mozMatchesSelector || $.oMatchesSelector || $.msMatchesSelector)) && o(function(e) {
- k.disconnectedMatch = O.call(e, "div"), O.call(e, "[s!='']:x"), F.push("!=", lt)
- }), _ = _.length && new RegExp(_.join("|")), F = F.length && new RegExp(F.join("|")), M = vt.test($.contains) || $.compareDocumentPosition ? function(e, t) {
- var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode;
- return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
- } : function(e, t) {
- if (t)
- for (; t = t.parentNode; )
- if (t === e)
- return !0;
- return !1
- }, V = $.compareDocumentPosition ? function(e, n) {
- if (e === n)
- return U = !0, 0;
- var r = n.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(n);
- return r ? 1 & r || !k.sortDetached && n.compareDocumentPosition(e) === r ? e === t || M(R, e) ? -1 : n === t || M(R, n) ? 1 : D ? nt.call(D, e) - nt.call(D, n) : 0 : 4 & r ? -1 : 1 : e.compareDocumentPosition ? -1 : 1
- } : function(e, n) {
- var r, i = 0, o = e.parentNode, a = n.parentNode, l = [e], u = [n];
- if (e === n)
- return U = !0, 0;
- if (!o || !a)
- return e === t ? -1 : n === t ? 1 : o ? -1 : a ? 1 : D ? nt.call(D, e) - nt.call(D, n) : 0;
- if (o === a)
- return s(e, n);
- for (r = e; r = r.parentNode; )
- l.unshift(r);
- for (r = n; r = r.parentNode; )
- u.unshift(r);
- for (; l[i] === u[i]; )
- i++;
- return i ? s(l[i], u[i]) : l[i] === R ? -1 : u[i] === R ? 1 : 0
- }, t) : H
- }, n.matches = function(e, t) {
- return n(e, null, null, t)
- }, n.matchesSelector = function(e, t) {
- if ((e.ownerDocument || e) !== H && L(e), t = t.replace(ht, "='$1']"), !(!k.matchesSelector || !q || F && F.test(t) || _ && _.test(t)))
- try {
- var r = O.call(e, t);
- if (r || k.disconnectedMatch || e.document && 11 !== e.document.nodeType)
- return r
- } catch (i) {
- }
- return n(t, H, null, [e]).length > 0
- }, n.contains = function(e, t) {
- return (e.ownerDocument || e) !== H && L(e), M(e, t)
- }, n.attr = function(e, n) {
- (e.ownerDocument || e) !== H && L(e);
- var r = N.attrHandle[n.toLowerCase()], i = r && G.call(N.attrHandle, n.toLowerCase()) ? r(e, n, !q) : t;
- return i === t ? k.attributes || !q ? e.getAttribute(n) : (i = e.getAttributeNode(n)) && i.specified ? i.value : null : i
- }, n.error = function(e) {
- throw new Error("Syntax error, unrecognized expression: " + e)
- }, n.uniqueSort = function(e) {
- var t, n = [], r = 0, i = 0;
- if (U = !k.detectDuplicates, D = !k.sortStable && e.slice(0), e.sort(V), U) {
- for (; t = e[i++]; )
- t === e[i] && (r = n.push(i));
- for (; r--; )
- e.splice(n[r], 1)
- }
- return e
- }, S = n.getText = function(e) {
- var t, n = "", r = 0, i = e.nodeType;
- if (i) {
- if (1 === i || 9 === i || 11 === i) {
- if ("string" == typeof e.textContent)
- return e.textContent;
- for (e = e.firstChild; e; e = e.nextSibling)
- n += S(e)
- } else if (3 === i || 4 === i)
- return e.nodeValue
- } else
- for (; t = e[r]; r++)
- n += S(t);
- return n
- }, N = n.selectors = {cacheLength: 50,createPseudo: i,match: yt,attrHandle: {},find: {},relative: {">": {dir: "parentNode",first: !0}," ": {dir: "parentNode"},"+": {dir: "previousSibling",first: !0},"~": {dir: "previousSibling"}},preFilter: {ATTR: function(e) {
- return e[1] = e[1].replace(kt, Ct), e[3] = (e[4] || e[5] || "").replace(kt, Ct), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
- },CHILD: function(e) {
- return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || n.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && n.error(e[0]), e
- },PSEUDO: function(e) {
- var n, r = !e[5] && e[2];
- return yt.CHILD.test(e[0]) ? null : (e[3] && e[4] !== t ? e[2] = e[4] : r && mt.test(r) && (n = p(r, !0)) && (n = r.indexOf(")", r.length - n) - r.length) && (e[0] = e[0].slice(0, n), e[2] = r.slice(0, n)), e.slice(0, 3))
- }},filter: {TAG: function(e) {
- var t = e.replace(kt, Ct).toLowerCase();
- return "*" === e ? function() {
- return !0
- } : function(e) {
- return e.nodeName && e.nodeName.toLowerCase() === t
- }
- },CLASS: function(e) {
- var t = I[e + " "];
- return t || (t = new RegExp("(^|" + it + ")" + e + "(" + it + "|$)")) && I(e, function(e) {
- return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== J && e.getAttribute("class") || "")
- })
- },ATTR: function(e, t, r) {
- return function(i) {
- var o = n.attr(i, e);
- return null == o ? "!=" === t : t ? (o += "", "=" === t ? o === r : "!=" === t ? o !== r : "^=" === t ? r && 0 === o.indexOf(r) : "*=" === t ? r && o.indexOf(r) > -1 : "$=" === t ? r && o.slice(-r.length) === r : "~=" === t ? (" " + o + " ").indexOf(r) > -1 : "|=" === t ? o === r || o.slice(0, r.length + 1) === r + "-" : !1) : !0
- }
- },CHILD: function(e, t, n, r, i) {
- var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t;
- return 1 === r && 0 === i ? function(e) {
- return !!e.parentNode
- } : function(t, n, l) {
- var u, c, f, p, d, h, m = o !== a ? "nextSibling" : "previousSibling", g = t.parentNode, y = s && t.nodeName.toLowerCase(), v = !l && !s;
- if (g) {
- if (o) {
- for (; m; ) {
- for (f = t; f = f[m]; )
- if (s ? f.nodeName.toLowerCase() === y : 1 === f.nodeType)
- return !1;
- h = m = "only" === e && !h && "nextSibling"
- }
- return !0
- }
- if (h = [a ? g.firstChild : g.lastChild], a && v) {
- for (c = g[B] || (g[B] = {}), u = c[e] || [], d = u[0] === P && u[1], p = u[0] === P && u[2], f = d && g.childNodes[d]; f = ++d && f && f[m] || (p = d = 0) || h.pop(); )
- if (1 === f.nodeType && ++p && f === t) {
- c[e] = [P, d, p];
- break
- }
- } else if (v && (u = (t[B] || (t[B] = {}))[e]) && u[0] === P)
- p = u[1];
- else
- for (; (f = ++d && f && f[m] || (p = d = 0) || h.pop()) && ((s ? f.nodeName.toLowerCase() !== y : 1 !== f.nodeType) || !++p || (v && ((f[B] || (f[B] = {}))[e] = [P, p]), f !== t)); )
- ;
- return p -= i, p === r || 0 === p % r && p / r >= 0
- }
- }
- },PSEUDO: function(e, t) {
- var r, o = N.pseudos[e] || N.setFilters[e.toLowerCase()] || n.error("unsupported pseudo: " + e);
- return o[B] ? o(t) : o.length > 1 ? (r = [e, e, "", t], N.setFilters.hasOwnProperty(e.toLowerCase()) ? i(function(e, n) {
- for (var r, i = o(e, t), a = i.length; a--; )
- r = nt.call(e, i[a]), e[r] = !(n[r] = i[a])
- }) : function(e) {
- return o(e, 0, r)
- }) : o
- }},pseudos: {not: i(function(e) {
- var t = [], n = [], r = j(e.replace(ut, "$1"));
- return r[B] ? i(function(e, t, n, i) {
- for (var o, a = r(e, null, i, []), s = e.length; s--; )
- (o = a[s]) && (e[s] = !(t[s] = o))
- }) : function(e, i, o) {
- return t[0] = e, r(t, null, o, n), !n.pop()
- }
- }),has: i(function(e) {
- return function(t) {
- return n(e, t).length > 0
- }
- }),contains: i(function(e) {
- return function(t) {
- return (t.textContent || t.innerText || S(t)).indexOf(e) > -1
- }
- }),lang: i(function(e) {
- return gt.test(e || "") || n.error("unsupported lang: " + e), e = e.replace(kt, Ct).toLowerCase(), function(t) {
- var n;
- do
- if (n = q ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang"))
- return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-");
- while ((t = t.parentNode) && 1 === t.nodeType);
- return !1
- }
- }),target: function(t) {
- var n = e.location && e.location.hash;
- return n && n.slice(1) === t.id
- },root: function(e) {
- return e === $
- },focus: function(e) {
- return e === H.activeElement && (!H.hasFocus || H.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
- },enabled: function(e) {
- return e.disabled === !1
- },disabled: function(e) {
- return e.disabled === !0
- },checked: function(e) {
- var t = e.nodeName.toLowerCase();
- return "input" === t && !!e.checked || "option" === t && !!e.selected
- },selected: function(e) {
- return e.parentNode && e.parentNode.selectedIndex, e.selected === !0
- },empty: function(e) {
- for (e = e.firstChild; e; e = e.nextSibling)
- if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType)
- return !1;
- return !0
- },parent: function(e) {
- return !N.pseudos.empty(e)
- },header: function(e) {
- return wt.test(e.nodeName)
- },input: function(e) {
- return xt.test(e.nodeName)
- },button: function(e) {
- var t = e.nodeName.toLowerCase();
- return "input" === t && "button" === e.type || "button" === t
- },text: function(e) {
- var t;
- return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type)
- },first: c(function() {
- return [0]
- }),last: c(function(e, t) {
- return [t - 1]
- }),eq: c(function(e, t, n) {
- return [0 > n ? n + t : n]
- }),even: c(function(e, t) {
- for (var n = 0; t > n; n += 2)
- e.push(n);
- return e
- }),odd: c(function(e, t) {
- for (var n = 1; t > n; n += 2)
- e.push(n);
- return e
- }),lt: c(function(e, t, n) {
- for (var r = 0 > n ? n + t : n; --r >= 0; )
- e.push(r);
- return e
- }),gt: c(function(e, t, n) {
- for (var r = 0 > n ? n + t : n; ++r < t; )
- e.push(r);
- return e
- })}}, N.pseudos.nth = N.pseudos.eq;
- for (T in {radio: !0,checkbox: !0,file: !0,password: !0,image: !0})
- N.pseudos[T] = l(T);
- for (T in {submit: !0,reset: !0})
- N.pseudos[T] = u(T);
- f.prototype = N.filters = N.pseudos, N.setFilters = new f, j = n.compile = function(e, t) {
- var n, r = [], i = [], o = X[e + " "];
- if (!o) {
- for (t || (t = p(e)), n = t.length; n--; )
- o = v(t[n]), o[B] ? r.push(o) : i.push(o);
- o = X(e, b(i, r))
- }
- return o
- }, k.sortStable = B.split("").sort(V).join("") === B, k.detectDuplicates = U, L(), k.sortDetached = o(function(e) {
- return 1 & e.compareDocumentPosition(H.createElement("div"))
- }), o(function(e) {
- return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href")
- }) || a("type|href|height|width", function(e, t, n) {
- return n ? void 0 : e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2)
- }), k.attributes && o(function(e) {
- return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
- }) || a("value", function(e, t, n) {
- return n || "input" !== e.nodeName.toLowerCase() ? void 0 : e.defaultValue
- }), o(function(e) {
- return null == e.getAttribute("disabled")
- }) || a(rt, function(e, t, n) {
- var r;
- return n ? void 0 : (r = e.getAttributeNode(t)) && r.specified ? r.value : e[t] === !0 ? t.toLowerCase() : null
- }), ct.find = n, ct.expr = n.selectors, ct.expr[":"] = ct.expr.pseudos, ct.unique = n.uniqueSort, ct.text = n.getText, ct.isXMLDoc = n.isXML, ct.contains = n.contains
- }(e);
- var Nt = {};
- ct.Callbacks = function(e) {
- e = "string" == typeof e ? Nt[e] || r(e) : ct.extend({}, e);
- var n, i, o, a, s, l, u = [], c = !e.once && [], f = function(t) {
- for (i = e.memory && t, o = !0, s = l || 0, l = 0, a = u.length, n = !0; u && a > s; s++)
- if (u[s].apply(t[0], t[1]) === !1 && e.stopOnFalse) {
- i = !1;
- break
- }
- n = !1, u && (c ? c.length && f(c.shift()) : i ? u = [] : p.disable())
- }, p = {add: function() {
- if (u) {
- var t = u.length;
- !function r(t) {
- ct.each(t, function(t, n) {
- var i = ct.type(n);
- "function" === i ? e.unique && p.has(n) || u.push(n) : n && n.length && "string" !== i && r(n)
- })
- }(arguments), n ? a = u.length : i && (l = t, f(i))
- }
- return this
- },remove: function() {
- return u && ct.each(arguments, function(e, t) {
- for (var r; (r = ct.inArray(t, u, r)) > -1; )
- u.splice(r, 1), n && (a >= r && a--, s >= r && s--)
- }), this
- },has: function(e) {
- return e ? ct.inArray(e, u) > -1 : !(!u || !u.length)
- },empty: function() {
- return u = [], a = 0, this
- },disable: function() {
- return u = c = i = t, this
- },disabled: function() {
- return !u
- },lock: function() {
- return c = t, i || p.disable(), this
- },locked: function() {
- return !c
- },fireWith: function(e, t) {
- return !u || o && !c || (t = t || [], t = [e, t.slice ? t.slice() : t], n ? c.push(t) : f(t)), this
- },fire: function() {
- return p.fireWith(this, arguments), this
- },fired: function() {
- return !!o
- }};
- return p
- }, ct.extend({Deferred: function(e) {
- var t = [["resolve", "done", ct.Callbacks("once memory"), "resolved"], ["reject", "fail", ct.Callbacks("once memory"), "rejected"], ["notify", "progress", ct.Callbacks("memory")]], n = "pending", r = {state: function() {
- return n
- },always: function() {
- return i.done(arguments).fail(arguments), this
- },then: function() {
- var e = arguments;
- return ct.Deferred(function(n) {
- ct.each(t, function(t, o) {
- var a = o[0], s = ct.isFunction(e[t]) && e[t];
- i[o[1]](function() {
- var e = s && s.apply(this, arguments);
- e && ct.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[a + "With"](this === r ? n.promise() : this, s ? [e] : arguments)
- })
- }), e = null
- }).promise()
- },promise: function(e) {
- return null != e ? ct.extend(e, r) : r
- }}, i = {};
- return r.pipe = r.then, ct.each(t, function(e, o) {
- var a = o[2], s = o[3];
- r[o[1]] = a.add, s && a.add(function() {
- n = s
- }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function() {
- return i[o[0] + "With"](this === i ? r : this, arguments), this
- }, i[o[0] + "With"] = a.fireWith
- }), r.promise(i), e && e.call(i, i), i
- },when: function(e) {
- var t, n, r, i = 0, o = ot.call(arguments), a = o.length, s = 1 !== a || e && ct.isFunction(e.promise) ? a : 0, l = 1 === s ? e : ct.Deferred(), u = function(e, n, r) {
- return function(i) {
- n[e] = this, r[e] = arguments.length > 1 ? ot.call(arguments) : i, r === t ? l.notifyWith(n, r) : --s || l.resolveWith(n, r)
- }
- };
- if (a > 1)
- for (t = new Array(a), n = new Array(a), r = new Array(a); a > i; i++)
- o[i] && ct.isFunction(o[i].promise) ? o[i].promise().done(u(i, r, o)).fail(l.reject).progress(u(i, n, t)) : --s;
- return s || l.resolveWith(r, o), l.promise()
- }}), ct.support = function(t) {
- var n, r, i, o, a, s, l, u, c, f = G.createElement("div");
- if (f.setAttribute("className", "t"), f.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = f.getElementsByTagName("*") || [], r = f.getElementsByTagName("a")[0], !r || !r.style || !n.length)
- return t;
- o = G.createElement("select"), s = o.appendChild(G.createElement("option")), i = f.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t.getSetAttribute = "t" !== f.className, t.leadingWhitespace = 3 === f.firstChild.nodeType, t.tbody = !f.getElementsByTagName("tbody").length, t.htmlSerialize = !!f.getElementsByTagName("link").length, t.style = /top/.test(r.getAttribute("style")), t.hrefNormalized = "/a" === r.getAttribute("href"), t.opacity = /^0.5/.test(r.style.opacity), t.cssFloat = !!r.style.cssFloat, t.checkOn = !!i.value, t.optSelected = s.selected, t.enctype = !!G.createElement("form").enctype, t.html5Clone = "<:nav></:nav>" !== G.createElement("nav").cloneNode(!0).outerHTML, t.inlineBlockNeedsLayout = !1, t.shrinkWrapBlocks = !1, t.pixelPosition = !1, t.deleteExpando = !0, t.noCloneEvent = !0, t.reliableMarginRight = !0, t.boxSizingReliable = !0, i.checked = !0, t.noCloneChecked = i.cloneNode(!0).checked, o.disabled = !0, t.optDisabled = !s.disabled;
- try {
- delete f.test
- } catch (p) {
- t.deleteExpando = !1
- }
- i = G.createElement("input"), i.setAttribute("value", ""), t.input = "" === i.getAttribute("value"), i.value = "t", i.setAttribute("type", "radio"), t.radioValue = "t" === i.value, i.setAttribute("checked", "t"), i.setAttribute("name", "t"), a = G.createDocumentFragment(), a.appendChild(i), t.appendChecked = i.checked, t.checkClone = a.cloneNode(!0).cloneNode(!0).lastChild.checked, f.attachEvent && (f.attachEvent("onclick", function() {
- t.noCloneEvent = !1
- }), f.cloneNode(!0).click());
- for (c in {submit: !0,change: !0,focusin: !0})
- f.setAttribute(l = "on" + c, "t"), t[c + "Bubbles"] = l in e || f.attributes[l].expando === !1;
- f.style.backgroundClip = "content-box", f.cloneNode(!0).style.backgroundClip = "", t.clearCloneStyle = "content-box" === f.style.backgroundClip;
- for (c in ct(t))
- break;
- return t.ownLast = "0" !== c, ct(function() {
- var n, r, i, o = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", a = G.getElementsByTagName("body")[0];
- a && (n = G.createElement("div"), n.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", a.appendChild(n).appendChild(f), f.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", i = f.getElementsByTagName("td"), i[0].style.cssText = "padding:0;margin:0;border:0;display:none", u = 0 === i[0].offsetHeight, i[0].style.display = "", i[1].style.display = "none", t.reliableHiddenOffsets = u && 0 === i[0].offsetHeight, f.innerHTML = "", f.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", ct.swap(a, null != a.style.zoom ? {zoom: 1} : {}, function() {
- t.boxSizing = 4 === f.offsetWidth
- }), e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(f, null) || {}).top, t.boxSizingReliable = "4px" === (e.getComputedStyle(f, null) || {width: "4px"}).width, r = f.appendChild(G.createElement("div")), r.style.cssText = f.style.cssText = o, r.style.marginRight = r.style.width = "0", f.style.width = "1px", t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)), typeof f.style.zoom !== J && (f.innerHTML = "", f.style.cssText = o + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = 3 === f.offsetWidth, f.style.display = "block", f.innerHTML = "<div></div>", f.firstChild.style.width = "5px", t.shrinkWrapBlocks = 3 !== f.offsetWidth, t.inlineBlockNeedsLayout && (a.style.zoom = 1)), a.removeChild(n), n = f = i = r = null)
- }), n = o = a = s = r = i = null, t
- }({});
- var St = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, Et = /([A-Z])/g;
- ct.extend({cache: {},noData: {applet: !0,embed: !0,object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData: function(e) {
- return e = e.nodeType ? ct.cache[e[ct.expando]] : e[ct.expando], !!e && !s(e)
- },data: function(e, t, n) {
- return i(e, t, n)
- },removeData: function(e, t) {
- return o(e, t)
- },_data: function(e, t, n) {
- return i(e, t, n, !0)
- },_removeData: function(e, t) {
- return o(e, t, !0)
- },acceptData: function(e) {
- if (e.nodeType && 1 !== e.nodeType && 9 !== e.nodeType)
- return !1;
- var t = e.nodeName && ct.noData[e.nodeName.toLowerCase()];
- return !t || t !== !0 && e.getAttribute("classid") === t
- }}), ct.fn.extend({data: function(e, n) {
- var r, i, o = null, s = 0, l = this[0];
- if (e === t) {
- if (this.length && (o = ct.data(l), 1 === l.nodeType && !ct._data(l, "parsedAttrs"))) {
- for (r = l.attributes; s < r.length; s++)
- i = r[s].name, 0 === i.indexOf("data-") && (i = ct.camelCase(i.slice(5)), a(l, i, o[i]));
- ct._data(l, "parsedAttrs", !0)
- }
- return o
- }
- return "object" == typeof e ? this.each(function() {
- ct.data(this, e)
- }) : arguments.length > 1 ? this.each(function() {
- ct.data(this, e, n)
- }) : l ? a(l, e, ct.data(l, e)) : null
- },removeData: function(e) {
- return this.each(function() {
- ct.removeData(this, e)
- })
- }}), ct.extend({queue: function(e, t, n) {
- var r;
- return e ? (t = (t || "fx") + "queue", r = ct._data(e, t), n && (!r || ct.isArray(n) ? r = ct._data(e, t, ct.makeArray(n)) : r.push(n)), r || []) : void 0
- },dequeue: function(e, t) {
- t = t || "fx";
- var n = ct.queue(e, t), r = n.length, i = n.shift(), o = ct._queueHooks(e, t), a = function() {
- ct.dequeue(e, t)
- };
- "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire()
- },_queueHooks: function(e, t) {
- var n = t + "queueHooks";
- return ct._data(e, n) || ct._data(e, n, {empty: ct.Callbacks("once memory").add(function() {
- ct._removeData(e, t + "queue"), ct._removeData(e, n)
- })})
- }}), ct.fn.extend({queue: function(e, n) {
- var r = 2;
- return "string" != typeof e && (n = e, e = "fx", r--), arguments.length < r ? ct.queue(this[0], e) : n === t ? this : this.each(function() {
- var t = ct.queue(this, e, n);
- ct._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && ct.dequeue(this, e)
- })
- },dequeue: function(e) {
- return this.each(function() {
- ct.dequeue(this, e)
- })
- },delay: function(e, t) {
- return e = ct.fx ? ct.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function(t, n) {
- var r = setTimeout(t, e);
- n.stop = function() {
- clearTimeout(r)
- }
- })
- },clearQueue: function(e) {
- return this.queue(e || "fx", [])
- },promise: function(e, n) {
- var r, i = 1, o = ct.Deferred(), a = this, s = this.length, l = function() {
- --i || o.resolveWith(a, [a])
- };
- for ("string" != typeof e && (n = e, e = t), e = e || "fx"; s--; )
- r = ct._data(a[s], e + "queueHooks"), r && r.empty && (i++, r.empty.add(l));
- return l(), o.promise(n)
- }});
- var jt, At, Dt = /[\t\r\n\f]/g, Lt = /\r/g, Ht = /^(?:input|select|textarea|button|object)$/i, $t = /^(?:a|area)$/i, qt = /^(?:checked|selected)$/i, _t = ct.support.getSetAttribute, Ft = ct.support.input;
- ct.fn.extend({attr: function(e, t) {
- return ct.access(this, ct.attr, e, t, arguments.length > 1)
- },removeAttr: function(e) {
- return this.each(function() {
- ct.removeAttr(this, e)
- })
- },prop: function(e, t) {
- return ct.access(this, ct.prop, e, t, arguments.length > 1)
- },removeProp: function(e) {
- return e = ct.propFix[e] || e, this.each(function() {
- try {
- this[e] = t, delete this[e]
- } catch (n) {
- }
- })
- },addClass: function(e) {
- var t, n, r, i, o, a = 0, s = this.length, l = "string" == typeof e && e;
- if (ct.isFunction(e))
- return this.each(function(t) {
- ct(this).addClass(e.call(this, t, this.className))
- });
- if (l)
- for (t = (e || "").match(pt) || []; s > a; a++)
- if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(Dt, " ") : " ")) {
- for (o = 0; i = t[o++]; )
- r.indexOf(" " + i + " ") < 0 && (r += i + " ");
- n.className = ct.trim(r)
- }
- return this
- },removeClass: function(e) {
- var t, n, r, i, o, a = 0, s = this.length, l = 0 === arguments.length || "string" == typeof e && e;
- if (ct.isFunction(e))
- return this.each(function(t) {
- ct(this).removeClass(e.call(this, t, this.className))
- });
- if (l)
- for (t = (e || "").match(pt) || []; s > a; a++)
- if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(Dt, " ") : "")) {
- for (o = 0; i = t[o++]; )
- for (; r.indexOf(" " + i + " ") >= 0; )
- r = r.replace(" " + i + " ", " ");
- n.className = e ? ct.trim(r) : ""
- }
- return this
- },toggleClass: function(e, t) {
- var n = typeof e;
- return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : ct.isFunction(e) ? this.each(function(n) {
- ct(this).toggleClass(e.call(this, n, this.className, t), t)
- }) : this.each(function() {
- if ("string" === n)
- for (var t, r = 0, i = ct(this), o = e.match(pt) || []; t = o[r++]; )
- i.hasClass(t) ? i.removeClass(t) : i.addClass(t);
- else
- (n === J || "boolean" === n) && (this.className && ct._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : ct._data(this, "__className__") || "")
- })
- },hasClass: function(e) {
- for (var t = " " + e + " ", n = 0, r = this.length; r > n; n++)
- if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(Dt, " ").indexOf(t) >= 0)
- return !0;
- return !1
- },val: function(e) {
- var n, r, i, o = this[0];
- {
- if (arguments.length)
- return i = ct.isFunction(e), this.each(function(n) {
- var o;
- 1 === this.nodeType && (o = i ? e.call(this, n, ct(this).val()) : e, null == o ? o = "" : "number" == typeof o ? o += "" : ct.isArray(o) && (o = ct.map(o, function(e) {
- return null == e ? "" : e + ""
- })), r = ct.valHooks[this.type] || ct.valHooks[this.nodeName.toLowerCase()], r && "set" in r && r.set(this, o, "value") !== t || (this.value = o))
- });
- if (o)
- return r = ct.valHooks[o.type] || ct.valHooks[o.nodeName.toLowerCase()], r && "get" in r && (n = r.get(o, "value")) !== t ? n : (n = o.value, "string" == typeof n ? n.replace(Lt, "") : null == n ? "" : n)
- }
- }}), ct.extend({valHooks: {option: {get: function(e) {
- var t = ct.find.attr(e, "value");
- return null != t ? t : e.text
- }},select: {get: function(e) {
- for (var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || 0 > i, a = o ? null : [], s = o ? i + 1 : r.length, l = 0 > i ? s : o ? i : 0; s > l; l++)
- if (n = r[l], !(!n.selected && l !== i || (ct.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && ct.nodeName(n.parentNode, "optgroup"))) {
- if (t = ct(n).val(), o)
- return t;
- a.push(t)
- }
- return a
- },set: function(e, t) {
- for (var n, r, i = e.options, o = ct.makeArray(t), a = i.length; a--; )
- r = i[a], (r.selected = ct.inArray(ct(r).val(), o) >= 0) && (n = !0);
- return n || (e.selectedIndex = -1), o
- }}},attr: function(e, n, r) {
- var i, o, a = e.nodeType;
- if (e && 3 !== a && 8 !== a && 2 !== a)
- return typeof e.getAttribute === J ? ct.prop(e, n, r) : (1 === a && ct.isXMLDoc(e) || (n = n.toLowerCase(), i = ct.attrHooks[n] || (ct.expr.match.bool.test(n) ? At : jt)), r === t ? i && "get" in i && null !== (o = i.get(e, n)) ? o : (o = ct.find.attr(e, n), null == o ? t : o) : null !== r ? i && "set" in i && (o = i.set(e, r, n)) !== t ? o : (e.setAttribute(n, r + ""), r) : (ct.removeAttr(e, n), void 0))
- },removeAttr: function(e, t) {
- var n, r, i = 0, o = t && t.match(pt);
- if (o && 1 === e.nodeType)
- for (; n = o[i++]; )
- r = ct.propFix[n] || n, ct.expr.match.bool.test(n) ? Ft && _t || !qt.test(n) ? e[r] = !1 : e[ct.camelCase("default-" + n)] = e[r] = !1 : ct.attr(e, n, ""), e.removeAttribute(_t ? n : r)
- },attrHooks: {type: {set: function(e, t) {
- if (!ct.support.radioValue && "radio" === t && ct.nodeName(e, "input")) {
- var n = e.value;
- return e.setAttribute("type", t), n && (e.value = n), t
- }
- }}},propFix: {"for": "htmlFor","class": "className"},prop: function(e, n, r) {
- var i, o, a, s = e.nodeType;
- if (e && 3 !== s && 8 !== s && 2 !== s)
- return a = 1 !== s || !ct.isXMLDoc(e), a && (n = ct.propFix[n] || n, o = ct.propHooks[n]), r !== t ? o && "set" in o && (i = o.set(e, r, n)) !== t ? i : e[n] = r : o && "get" in o && null !== (i = o.get(e, n)) ? i : e[n]
- },propHooks: {tabIndex: {get: function(e) {
- var t = ct.find.attr(e, "tabindex");
- return t ? parseInt(t, 10) : Ht.test(e.nodeName) || $t.test(e.nodeName) && e.href ? 0 : -1
- }}}}), At = {set: function(e, t, n) {
- return t === !1 ? ct.removeAttr(e, n) : Ft && _t || !qt.test(n) ? e.setAttribute(!_t && ct.propFix[n] || n, n) : e[ct.camelCase("default-" + n)] = e[n] = !0, n
- }}, ct.each(ct.expr.match.bool.source.match(/\w+/g), function(e, n) {
- var r = ct.expr.attrHandle[n] || ct.find.attr;
- ct.expr.attrHandle[n] = Ft && _t || !qt.test(n) ? function(e, n, i) {
- var o = ct.expr.attrHandle[n], a = i ? t : (ct.expr.attrHandle[n] = t) != r(e, n, i) ? n.toLowerCase() : null;
- return ct.expr.attrHandle[n] = o, a
- } : function(e, n, r) {
- return r ? t : e[ct.camelCase("default-" + n)] ? n.toLowerCase() : null
- }
- }), Ft && _t || (ct.attrHooks.value = {set: function(e, t, n) {
- return ct.nodeName(e, "input") ? (e.defaultValue = t, void 0) : jt && jt.set(e, t, n)
- }}), _t || (jt = {set: function(e, n, r) {
- var i = e.getAttributeNode(r);
- return i || e.setAttributeNode(i = e.ownerDocument.createAttribute(r)), i.value = n += "", "value" === r || n === e.getAttribute(r) ? n : t
- }}, ct.expr.attrHandle.id = ct.expr.attrHandle.name = ct.expr.attrHandle.coords = function(e, n, r) {
- var i;
- return r ? t : (i = e.getAttributeNode(n)) && "" !== i.value ? i.value : null
- }, ct.valHooks.button = {get: function(e, n) {
- var r = e.getAttributeNode(n);
- return r && r.specified ? r.value : t
- },set: jt.set}, ct.attrHooks.contenteditable = {set: function(e, t, n) {
- jt.set(e, "" === t ? !1 : t, n)
- }}, ct.each(["width", "height"], function(e, t) {
- ct.attrHooks[t] = {set: function(e, n) {
- return "" === n ? (e.setAttribute(t, "auto"), n) : void 0
- }}
- })), ct.support.hrefNormalized || ct.each(["href", "src"], function(e, t) {
- ct.propHooks[t] = {get: function(e) {
- return e.getAttribute(t, 4)
- }}
- }), ct.support.style || (ct.attrHooks.style = {get: function(e) {
- return e.style.cssText || t
- },set: function(e, t) {
- return e.style.cssText = t + ""
- }}), ct.support.optSelected || (ct.propHooks.selected = {get: function(e) {
- var t = e.parentNode;
- return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null
- }}), ct.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
- ct.propFix[this.toLowerCase()] = this
- }), ct.support.enctype || (ct.propFix.enctype = "encoding"), ct.each(["radio", "checkbox"], function() {
- ct.valHooks[this] = {set: function(e, t) {
- return ct.isArray(t) ? e.checked = ct.inArray(ct(e).val(), t) >= 0 : void 0
- }}, ct.support.checkOn || (ct.valHooks[this].get = function(e) {
- return null === e.getAttribute("value") ? "on" : e.value
- })
- });
- var Ot = /^(?:input|select|textarea)$/i, Mt = /^key/, Bt = /^(?:mouse|contextmenu)|click/, Rt = /^(?:focusinfocus|focusoutblur)$/, Pt = /^([^.]*)(?:\.(.+)|)$/;
- ct.event = {global: {},add: function(e, n, r, i, o) {
- var a, s, l, u, c, f, p, d, h, m, g, y = ct._data(e);
- if (y) {
- for (r.handler && (u = r, r = u.handler, o = u.selector), r.guid || (r.guid = ct.guid++), (s = y.events) || (s = y.events = {}), (f = y.handle) || (f = y.handle = function(e) {
- return typeof ct === J || e && ct.event.triggered === e.type ? t : ct.event.dispatch.apply(f.elem, arguments)
- }, f.elem = e), n = (n || "").match(pt) || [""], l = n.length; l--; )
- a = Pt.exec(n[l]) || [], h = g = a[1], m = (a[2] || "").split(".").sort(), h && (c = ct.event.special[h] || {}, h = (o ? c.delegateType : c.bindType) || h, c = ct.event.special[h] || {}, p = ct.extend({type: h,origType: g,data: i,handler: r,guid: r.guid,selector: o,needsContext: o && ct.expr.match.needsContext.test(o),namespace: m.join(".")}, u), (d = s[h]) || (d = s[h] = [], d.delegateCount = 0, c.setup && c.setup.call(e, i, m, f) !== !1 || (e.addEventListener ? e.addEventListener(h, f, !1) : e.attachEvent && e.attachEvent("on" + h, f))), c.add && (c.add.call(e, p), p.handler.guid || (p.handler.guid = r.guid)), o ? d.splice(d.delegateCount++, 0, p) : d.push(p), ct.event.global[h] = !0);
- e = null
- }
- },remove: function(e, t, n, r, i) {
- var o, a, s, l, u, c, f, p, d, h, m, g = ct.hasData(e) && ct._data(e);
- if (g && (c = g.events)) {
- for (t = (t || "").match(pt) || [""], u = t.length; u--; )
- if (s = Pt.exec(t[u]) || [], d = m = s[1], h = (s[2] || "").split(".").sort(), d) {
- for (f = ct.event.special[d] || {}, d = (r ? f.delegateType : f.bindType) || d, p = c[d] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), l = o = p.length; o--; )
- a = p[o], !i && m !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (p.splice(o, 1), a.selector && p.delegateCount--, f.remove && f.remove.call(e, a));
- l && !p.length && (f.teardown && f.teardown.call(e, h, g.handle) !== !1 || ct.removeEvent(e, d, g.handle), delete c[d])
- } else
- for (d in c)
- ct.event.remove(e, d + t[u], n, r, !0);
- ct.isEmptyObject(c) && (delete g.handle, ct._removeData(e, "events"))
- }
- },trigger: function(n, r, i, o) {
- var a, s, l, u, c, f, p, d = [i || G], h = lt.call(n, "type") ? n.type : n, m = lt.call(n, "namespace") ? n.namespace.split(".") : [];
- if (l = f = i = i || G, 3 !== i.nodeType && 8 !== i.nodeType && !Rt.test(h + ct.event.triggered) && (h.indexOf(".") >= 0 && (m = h.split("."), h = m.shift(), m.sort()), s = h.indexOf(":") < 0 && "on" + h, n = n[ct.expando] ? n : new ct.Event(h, "object" == typeof n && n), n.isTrigger = o ? 2 : 3, n.namespace = m.join("."), n.namespace_re = n.namespace ? new RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, n.result = t, n.target || (n.target = i), r = null == r ? [n] : ct.makeArray(r, [n]), c = ct.event.special[h] || {}, o || !c.trigger || c.trigger.apply(i, r) !== !1)) {
- if (!o && !c.noBubble && !ct.isWindow(i)) {
- for (u = c.delegateType || h, Rt.test(u + h) || (l = l.parentNode); l; l = l.parentNode)
- d.push(l), f = l;
- f === (i.ownerDocument || G) && d.push(f.defaultView || f.parentWindow || e)
- }
- for (p = 0; (l = d[p++]) && !n.isPropagationStopped(); )
- n.type = p > 1 ? u : c.bindType || h, a = (ct._data(l, "events") || {})[n.type] && ct._data(l, "handle"), a && a.apply(l, r), a = s && l[s], a && ct.acceptData(l) && a.apply && a.apply(l, r) === !1 && n.preventDefault();
- if (n.type = h, !o && !n.isDefaultPrevented() && (!c._default || c._default.apply(d.pop(), r) === !1) && ct.acceptData(i) && s && i[h] && !ct.isWindow(i)) {
- f = i[s], f && (i[s] = null), ct.event.triggered = h;
- try {
- i[h]()
- } catch (g) {
- }
- ct.event.triggered = t, f && (i[s] = f)
- }
- return n.result
- }
- },dispatch: function(e) {
- e = ct.event.fix(e);
- var n, r, i, o, a, s = [], l = ot.call(arguments), u = (ct._data(this, "events") || {})[e.type] || [], c = ct.event.special[e.type] || {};
- if (l[0] = e, e.delegateTarget = this, !c.preDispatch || c.preDispatch.call(this, e) !== !1) {
- for (s = ct.event.handlers.call(this, e, u), n = 0; (o = s[n++]) && !e.isPropagationStopped(); )
- for (e.currentTarget = o.elem, a = 0; (i = o.handlers[a++]) && !e.isImmediatePropagationStopped(); )
- (!e.namespace_re || e.namespace_re.test(i.namespace)) && (e.handleObj = i, e.data = i.data, r = ((ct.event.special[i.origType] || {}).handle || i.handler).apply(o.elem, l), r !== t && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()));
- return c.postDispatch && c.postDispatch.call(this, e), e.result
- }
- },handlers: function(e, n) {
- var r, i, o, a, s = [], l = n.delegateCount, u = e.target;
- if (l && u.nodeType && (!e.button || "click" !== e.type))
- for (; u != this; u = u.parentNode || this)
- if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {
- for (o = [], a = 0; l > a; a++)
- i = n[a], r = i.selector + " ", o[r] === t && (o[r] = i.needsContext ? ct(r, this).index(u) >= 0 : ct.find(r, this, null, [u]).length), o[r] && o.push(i);
- o.length && s.push({elem: u,handlers: o})
- }
- return l < n.length && s.push({elem: this,handlers: n.slice(l)}), s
- },fix: function(e) {
- if (e[ct.expando])
- return e;
- var t, n, r, i = e.type, o = e, a = this.fixHooks[i];
- for (a || (this.fixHooks[i] = a = Bt.test(i) ? this.mouseHooks : Mt.test(i) ? this.keyHooks : {}), r = a.props ? this.props.concat(a.props) : this.props, e = new ct.Event(o), t = r.length; t--; )
- n = r[t], e[n] = o[n];
- return e.target || (e.target = o.srcElement || G), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, a.filter ? a.filter(e, o) : e
- },props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks: {},keyHooks: {props: "char charCode key keyCode".split(" "),filter: function(e, t) {
- return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e
- }},mouseHooks: {props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter: function(e, n) {
- var r, i, o, a = n.button, s = n.fromElement;
- return null == e.pageX && null != n.clientX && (i = e.target.ownerDocument || G, o = i.documentElement, r = i.body, e.pageX = n.clientX + (o && o.scrollLeft || r && r.scrollLeft || 0) - (o && o.clientLeft || r && r.clientLeft || 0), e.pageY = n.clientY + (o && o.scrollTop || r && r.scrollTop || 0) - (o && o.clientTop || r && r.clientTop || 0)), !e.relatedTarget && s && (e.relatedTarget = s === e.target ? n.toElement : s), e.which || a === t || (e.which = 1 & a ? 1 : 2 & a ? 3 : 4 & a ? 2 : 0), e
- }},special: {load: {noBubble: !0},focus: {trigger: function() {
- if (this !== c() && this.focus)
- try {
- return this.focus(), !1
- } catch (e) {
- }
- },delegateType: "focusin"},blur: {trigger: function() {
- return this === c() && this.blur ? (this.blur(), !1) : void 0
- },delegateType: "focusout"},click: {trigger: function() {
- return ct.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : void 0
- },_default: function(e) {
- return ct.nodeName(e.target, "a")
- }},beforeunload: {postDispatch: function(e) {
- e.result !== t && (e.originalEvent.returnValue = e.result)
- }}},simulate: function(e, t, n, r) {
- var i = ct.extend(new ct.Event, n, {type: e,isSimulated: !0,originalEvent: {}});
- r ? ct.event.trigger(i, null, t) : ct.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault()
- }}, ct.removeEvent = G.removeEventListener ? function(e, t, n) {
- e.removeEventListener && e.removeEventListener(t, n, !1)
- } : function(e, t, n) {
- var r = "on" + t;
- e.detachEvent && (typeof e[r] === J && (e[r] = null), e.detachEvent(r, n))
- }, ct.Event = function(e, t) {
- return this instanceof ct.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? l : u) : this.type = e, t && ct.extend(this, t), this.timeStamp = e && e.timeStamp || ct.now(), this[ct.expando] = !0, void 0) : new ct.Event(e, t)
- }, ct.Event.prototype = {isDefaultPrevented: u,isPropagationStopped: u,isImmediatePropagationStopped: u,preventDefault: function() {
- var e = this.originalEvent;
- this.isDefaultPrevented = l, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)
- },stopPropagation: function() {
- var e = this.originalEvent;
- this.isPropagationStopped = l, e && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0)
- },stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = l, this.stopPropagation()
- }}, ct.each({mouseenter: "mouseover",mouseleave: "mouseout"}, function(e, t) {
- ct.event.special[e] = {delegateType: t,bindType: t,handle: function(e) {
- var n, r = this, i = e.relatedTarget, o = e.handleObj;
- return (!i || i !== r && !ct.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n
- }}
- }), ct.support.submitBubbles || (ct.event.special.submit = {setup: function() {
- return ct.nodeName(this, "form") ? !1 : (ct.event.add(this, "click._submit keypress._submit", function(e) {
- var n = e.target, r = ct.nodeName(n, "input") || ct.nodeName(n, "button") ? n.form : t;
- r && !ct._data(r, "submitBubbles") && (ct.event.add(r, "submit._submit", function(e) {
- e._submit_bubble = !0
- }), ct._data(r, "submitBubbles", !0))
- }), void 0)
- },postDispatch: function(e) {
- e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && ct.event.simulate("submit", this.parentNode, e, !0))
- },teardown: function() {
- return ct.nodeName(this, "form") ? !1 : (ct.event.remove(this, "._submit"), void 0)
- }}), ct.support.changeBubbles || (ct.event.special.change = {setup: function() {
- return Ot.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (ct.event.add(this, "propertychange._change", function(e) {
- "checked" === e.originalEvent.propertyName && (this._just_changed = !0)
- }), ct.event.add(this, "click._change", function(e) {
- this._just_changed && !e.isTrigger && (this._just_changed = !1), ct.event.simulate("change", this, e, !0)
- })), !1) : (ct.event.add(this, "beforeactivate._change", function(e) {
- var t = e.target;
- Ot.test(t.nodeName) && !ct._data(t, "changeBubbles") && (ct.event.add(t, "change._change", function(e) {
- !this.parentNode || e.isSimulated || e.isTrigger || ct.event.simulate("change", this.parentNode, e, !0)
- }), ct._data(t, "changeBubbles", !0))
- }), void 0)
- },handle: function(e) {
- var t = e.target;
- return this !== t || e.isSimulated || e.isTrigger || "radio" !== t.type && "checkbox" !== t.type ? e.handleObj.handler.apply(this, arguments) : void 0
- },teardown: function() {
- return ct.event.remove(this, "._change"), !Ot.test(this.nodeName)
- }}), ct.support.focusinBubbles || ct.each({focus: "focusin",blur: "focusout"}, function(e, t) {
- var n = 0, r = function(e) {
- ct.event.simulate(t, e.target, ct.event.fix(e), !0)
- };
- ct.event.special[t] = {setup: function() {
- 0 === n++ && G.addEventListener(e, r, !0)
- },teardown: function() {
- 0 === --n && G.removeEventListener(e, r, !0)
- }}
- }), ct.fn.extend({on: function(e, n, r, i, o) {
- var a, s;
- if ("object" == typeof e) {
- "string" != typeof n && (r = r || n, n = t);
- for (a in e)
- this.on(a, n, r, e[a], o);
- return this
- }
- if (null == r && null == i ? (i = n, r = n = t) : null == i && ("string" == typeof n ? (i = r, r = t) : (i = r, r = n, n = t)), i === !1)
- i = u;
- else if (!i)
- return this;
- return 1 === o && (s = i, i = function(e) {
- return ct().off(e), s.apply(this, arguments)
- }, i.guid = s.guid || (s.guid = ct.guid++)), this.each(function() {
- ct.event.add(this, e, i, r, n)
- })
- },one: function(e, t, n, r) {
- return this.on(e, t, n, r, 1)
- },off: function(e, n, r) {
- var i, o;
- if (e && e.preventDefault && e.handleObj)
- return i = e.handleObj, ct(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
- if ("object" == typeof e) {
- for (o in e)
- this.off(o, n, e[o]);
- return this
- }
- return (n === !1 || "function" == typeof n) && (r = n, n = t), r === !1 && (r = u), this.each(function() {
- ct.event.remove(this, e, r, n)
- })
- },trigger: function(e, t) {
- return this.each(function() {
- ct.event.trigger(e, t, this)
- })
- },triggerHandler: function(e, t) {
- var n = this[0];
- return n ? ct.event.trigger(e, t, n, !0) : void 0
- }});
- var Wt = /^.[^:#\[\.,]*$/, It = /^(?:parents|prev(?:Until|All))/, zt = ct.expr.match.needsContext, Xt = {children: !0,contents: !0,next: !0,prev: !0};
- ct.fn.extend({find: function(e) {
- var t, n = [], r = this, i = r.length;
- if ("string" != typeof e)
- return this.pushStack(ct(e).filter(function() {
- for (t = 0; i > t; t++)
- if (ct.contains(r[t], this))
- return !0
- }));
- for (t = 0; i > t; t++)
- ct.find(e, r[t], n);
- return n = this.pushStack(i > 1 ? ct.unique(n) : n), n.selector = this.selector ? this.selector + " " + e : e, n
- },has: function(e) {
- var t, n = ct(e, this), r = n.length;
- return this.filter(function() {
- for (t = 0; r > t; t++)
- if (ct.contains(this, n[t]))
- return !0
- })
- },not: function(e) {
- return this.pushStack(p(this, e || [], !0))
- },filter: function(e) {
- return this.pushStack(p(this, e || [], !1))
- },is: function(e) {
- return !!p(this, "string" == typeof e && zt.test(e) ? ct(e) : e || [], !1).length
- },closest: function(e, t) {
- for (var n, r = 0, i = this.length, o = [], a = zt.test(e) || "string" != typeof e ? ct(e, t || this.context) : 0; i > r; r++)
- for (n = this[r]; n && n !== t; n = n.parentNode)
- if (n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && ct.find.matchesSelector(n, e))) {
- n = o.push(n);
- break
- }
- return this.pushStack(o.length > 1 ? ct.unique(o) : o)
- },index: function(e) {
- return e ? "string" == typeof e ? ct.inArray(this[0], ct(e)) : ct.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
- },add: function(e, t) {
- var n = "string" == typeof e ? ct(e, t) : ct.makeArray(e && e.nodeType ? [e] : e), r = ct.merge(this.get(), n);
- return this.pushStack(ct.unique(r))
- },addBack: function(e) {
- return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
- }}), ct.each({parent: function(e) {
- var t = e.parentNode;
- return t && 11 !== t.nodeType ? t : null
- },parents: function(e) {
- return ct.dir(e, "parentNode")
- },parentsUntil: function(e, t, n) {
- return ct.dir(e, "parentNode", n)
- },next: function(e) {
- return f(e, "nextSibling")
- },prev: function(e) {
- return f(e, "previousSibling")
- },nextAll: function(e) {
- return ct.dir(e, "nextSibling")
- },prevAll: function(e) {
- return ct.dir(e, "previousSibling")
- },nextUntil: function(e, t, n) {
- return ct.dir(e, "nextSibling", n)
- },prevUntil: function(e, t, n) {
- return ct.dir(e, "previousSibling", n)
- },siblings: function(e) {
- return ct.sibling((e.parentNode || {}).firstChild, e)
- },children: function(e) {
- return ct.sibling(e.firstChild)
- },contents: function(e) {
- return ct.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : ct.merge([], e.childNodes)
- }}, function(e, t) {
- ct.fn[e] = function(n, r) {
- var i = ct.map(this, t, n);
- return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = ct.filter(r, i)), this.length > 1 && (Xt[e] || (i = ct.unique(i)), It.test(e) && (i = i.reverse())), this.pushStack(i)
- }
- }), ct.extend({filter: function(e, t, n) {
- var r = t[0];
- return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? ct.find.matchesSelector(r, e) ? [r] : [] : ct.find.matches(e, ct.grep(t, function(e) {
- return 1 === e.nodeType
- }))
- },dir: function(e, n, r) {
- for (var i = [], o = e[n]; o && 9 !== o.nodeType && (r === t || 1 !== o.nodeType || !ct(o).is(r)); )
- 1 === o.nodeType && i.push(o), o = o[n];
- return i
- },sibling: function(e, t) {
- for (var n = []; e; e = e.nextSibling)
- 1 === e.nodeType && e !== t && n.push(e);
- return n
- }});
- var Ut = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", Vt = / jQuery\d+="(?:null|\d+)"/g, Jt = new RegExp("<(?:" + Ut + ")[\\s/>]", "i"), Yt = /^\s+/, Gt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, Kt = /<([\w:]+)/, Qt = /<tbody/i, Zt = /<|&#?\w+;/, en = /<(?:script|style|link)/i, tn = /^(?:checkbox|radio)$/i, nn = /checked\s*(?:[^=]|=\s*.checked.)/i, rn = /^$|\/(?:java|ecma)script/i, on = /^true\/(.*)/, an = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, sn = {option: [1, "<select multiple='multiple'>", "</select>"],legend: [1, "<fieldset>", "</fieldset>"],area: [1, "<map>", "</map>"],param: [1, "<object>", "</object>"],thead: [1, "<table>", "</table>"],tr: [2, "<table><tbody>", "</tbody></table>"],col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],_default: ct.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]}, ln = d(G), un = ln.appendChild(G.createElement("div"));
- sn.optgroup = sn.option, sn.tbody = sn.tfoot = sn.colgroup = sn.caption = sn.thead, sn.th = sn.td, ct.fn.extend({text: function(e) {
- return ct.access(this, function(e) {
- return e === t ? ct.text(this) : this.empty().append((this[0] && this[0].ownerDocument || G).createTextNode(e))
- }, null, e, arguments.length)
- },append: function() {
- return this.domManip(arguments, function(e) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var t = h(this, e);
- t.appendChild(e)
- }
- })
- },prepend: function() {
- return this.domManip(arguments, function(e) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var t = h(this, e);
- t.insertBefore(e, t.firstChild)
- }
- })
- },before: function() {
- return this.domManip(arguments, function(e) {
- this.parentNode && this.parentNode.insertBefore(e, this)
- })
- },after: function() {
- return this.domManip(arguments, function(e) {
- this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)
- })
- },remove: function(e, t) {
- for (var n, r = e ? ct.filter(e, this) : this, i = 0; null != (n = r[i]); i++)
- t || 1 !== n.nodeType || ct.cleanData(x(n)), n.parentNode && (t && ct.contains(n.ownerDocument, n) && y(x(n, "script")), n.parentNode.removeChild(n));
- return this
- },empty: function() {
- for (var e, t = 0; null != (e = this[t]); t++) {
- for (1 === e.nodeType && ct.cleanData(x(e, !1)); e.firstChild; )
- e.removeChild(e.firstChild);
- e.options && ct.nodeName(e, "select") && (e.options.length = 0)
- }
- return this
- },clone: function(e, t) {
- return e = null == e ? !1 : e, t = null == t ? e : t, this.map(function() {
- return ct.clone(this, e, t)
- })
- },html: function(e) {
- return ct.access(this, function(e) {
- var n = this[0] || {}, r = 0, i = this.length;
- if (e === t)
- return 1 === n.nodeType ? n.innerHTML.replace(Vt, "") : t;
- if (!("string" != typeof e || en.test(e) || !ct.support.htmlSerialize && Jt.test(e) || !ct.support.leadingWhitespace && Yt.test(e) || sn[(Kt.exec(e) || ["", ""])[1].toLowerCase()])) {
- e = e.replace(Gt, "<$1></$2>");
- try {
- for (; i > r; r++)
- n = this[r] || {}, 1 === n.nodeType && (ct.cleanData(x(n, !1)), n.innerHTML = e);
- n = 0
- } catch (o) {
- }
- }
- n && this.empty().append(e)
- }, null, e, arguments.length)
- },replaceWith: function() {
- var e = ct.map(this, function(e) {
- return [e.nextSibling, e.parentNode]
- }), t = 0;
- return this.domManip(arguments, function(n) {
- var r = e[t++], i = e[t++];
- i && (r && r.parentNode !== i && (r = this.nextSibling), ct(this).remove(), i.insertBefore(n, r))
- }, !0), t ? this : this.remove()
- },detach: function(e) {
- return this.remove(e, !0)
- },domManip: function(e, t, n) {
- e = rt.apply([], e);
- var r, i, o, a, s, l, u = 0, c = this.length, f = this, p = c - 1, d = e[0], h = ct.isFunction(d);
- if (h || !(1 >= c || "string" != typeof d || ct.support.checkClone) && nn.test(d))
- return this.each(function(r) {
- var i = f.eq(r);
- h && (e[0] = d.call(this, r, i.html())), i.domManip(e, t, n)
- });
- if (c && (l = ct.buildFragment(e, this[0].ownerDocument, !1, !n && this), r = l.firstChild, 1 === l.childNodes.length && (l = r), r)) {
- for (a = ct.map(x(l, "script"), m), o = a.length; c > u; u++)
- i = l, u !== p && (i = ct.clone(i, !0, !0), o && ct.merge(a, x(i, "script"))), t.call(this[u], i, u);
- if (o)
- for (s = a[a.length - 1].ownerDocument, ct.map(a, g), u = 0; o > u; u++)
- i = a[u], rn.test(i.type || "") && !ct._data(i, "globalEval") && ct.contains(s, i) && (i.src ? ct._evalUrl(i.src) : ct.globalEval((i.text || i.textContent || i.innerHTML || "").replace(an, "")));
- l = r = null
- }
- return this
- }}), ct.each({appendTo: "append",prependTo: "prepend",insertBefore: "before",insertAfter: "after",replaceAll: "replaceWith"}, function(e, t) {
- ct.fn[e] = function(e) {
- for (var n, r = 0, i = [], o = ct(e), a = o.length - 1; a >= r; r++)
- n = r === a ? this : this.clone(!0), ct(o[r])[t](n), it.apply(i, n.get());
- return this.pushStack(i)
- }
- }), ct.extend({clone: function(e, t, n) {
- var r, i, o, a, s, l = ct.contains(e.ownerDocument, e);
- if (ct.support.html5Clone || ct.isXMLDoc(e) || !Jt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (un.innerHTML = e.outerHTML, un.removeChild(o = un.firstChild)), !(ct.support.noCloneEvent && ct.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || ct.isXMLDoc(e)))
- for (r = x(o), s = x(e), a = 0; null != (i = s[a]); ++a)
- r[a] && b(i, r[a]);
- if (t)
- if (n)
- for (s = s || x(e), r = r || x(o), a = 0; null != (i = s[a]); a++)
- v(i, r[a]);
- else
- v(e, o);
- return r = x(o, "script"), r.length > 0 && y(r, !l && x(e, "script")), r = s = i = null, o
- },buildFragment: function(e, t, n, r) {
- for (var i, o, a, s, l, u, c, f = e.length, p = d(t), h = [], m = 0; f > m; m++)
- if (o = e[m], o || 0 === o)
- if ("object" === ct.type(o))
- ct.merge(h, o.nodeType ? [o] : o);
- else if (Zt.test(o)) {
- for (s = s || p.appendChild(t.createElement("div")), l = (Kt.exec(o) || ["", ""])[1].toLowerCase(), c = sn[l] || sn._default, s.innerHTML = c[1] + o.replace(Gt, "<$1></$2>") + c[2], i = c[0]; i--; )
- s = s.lastChild;
- if (!ct.support.leadingWhitespace && Yt.test(o) && h.push(t.createTextNode(Yt.exec(o)[0])), !ct.support.tbody)
- for (o = "table" !== l || Qt.test(o) ? "<table>" !== c[1] || Qt.test(o) ? 0 : s : s.firstChild, i = o && o.childNodes.length; i--; )
- ct.nodeName(u = o.childNodes[i], "tbody") && !u.childNodes.length && o.removeChild(u);
- for (ct.merge(h, s.childNodes), s.textContent = ""; s.firstChild; )
- s.removeChild(s.firstChild);
- s = p.lastChild
- } else
- h.push(t.createTextNode(o));
- for (s && p.removeChild(s), ct.support.appendChecked || ct.grep(x(h, "input"), w), m = 0; o = h[m++]; )
- if ((!r || -1 === ct.inArray(o, r)) && (a = ct.contains(o.ownerDocument, o), s = x(p.appendChild(o), "script"), a && y(s), n))
- for (i = 0; o = s[i++]; )
- rn.test(o.type || "") && n.push(o);
- return s = null, p
- },cleanData: function(e, t) {
- for (var n, r, i, o, a = 0, s = ct.expando, l = ct.cache, u = ct.support.deleteExpando, c = ct.event.special; null != (n = e[a]); a++)
- if ((t || ct.acceptData(n)) && (i = n[s], o = i && l[i])) {
- if (o.events)
- for (r in o.events)
- c[r] ? ct.event.remove(n, r) : ct.removeEvent(n, r, o.handle);
- l[i] && (delete l[i], u ? delete n[s] : typeof n.removeAttribute !== J ? n.removeAttribute(s) : n[s] = null, tt.push(i))
- }
- },_evalUrl: function(e) {
- return ct.ajax({url: e,type: "GET",dataType: "script",async: !1,global: !1,"throws": !0})
- }}), ct.fn.extend({wrapAll: function(e) {
- if (ct.isFunction(e))
- return this.each(function(t) {
- ct(this).wrapAll(e.call(this, t))
- });
- if (this[0]) {
- var t = ct(e, this[0].ownerDocument).eq(0).clone(!0);
- this[0].parentNode && t.insertBefore(this[0]), t.map(function() {
- for (var e = this; e.firstChild && 1 === e.firstChild.nodeType; )
- e = e.firstChild;
- return e
- }).append(this)
- }
- return this
- },wrapInner: function(e) {
- return ct.isFunction(e) ? this.each(function(t) {
- ct(this).wrapInner(e.call(this, t))
- }) : this.each(function() {
- var t = ct(this), n = t.contents();
- n.length ? n.wrapAll(e) : t.append(e)
- })
- },wrap: function(e) {
- var t = ct.isFunction(e);
- return this.each(function(n) {
- ct(this).wrapAll(t ? e.call(this, n) : e)
- })
- },unwrap: function() {
- return this.parent().each(function() {
- ct.nodeName(this, "body") || ct(this).replaceWith(this.childNodes)
- }).end()
- }});
- var cn, fn, pn, dn = /alpha\([^)]*\)/i, hn = /opacity\s*=\s*([^)]*)/, mn = /^(top|right|bottom|left)$/, gn = /^(none|table(?!-c[ea]).+)/, yn = /^margin/, vn = new RegExp("^(" + ft + ")(.*)$", "i"), bn = new RegExp("^(" + ft + ")(?!px)[a-z%]+$", "i"), xn = new RegExp("^([+-])=(" + ft + ")", "i"), wn = {BODY: "block"}, Tn = {position: "absolute",visibility: "hidden",display: "block"}, kn = {letterSpacing: 0,fontWeight: 400}, Cn = ["Top", "Right", "Bottom", "Left"], Nn = ["Webkit", "O", "Moz", "ms"];
- ct.fn.extend({css: function(e, n) {
- return ct.access(this, function(e, n, r) {
- var i, o, a = {}, s = 0;
- if (ct.isArray(n)) {
- for (o = fn(e), i = n.length; i > s; s++)
- a[n[s]] = ct.css(e, n[s], !1, o);
- return a
- }
- return r !== t ? ct.style(e, n, r) : ct.css(e, n)
- }, e, n, arguments.length > 1)
- },show: function() {
- return C(this, !0)
- },hide: function() {
- return C(this)
- },toggle: function(e) {
- return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
- k(this) ? ct(this).show() : ct(this).hide()
- })
- }}), ct.extend({cssHooks: {opacity: {get: function(e, t) {
- if (t) {
- var n = pn(e, "opacity");
- return "" === n ? "1" : n
- }
- }}},cssNumber: {columnCount: !0,fillOpacity: !0,fontWeight: !0,lineHeight: !0,opacity: !0,order: !0,orphans: !0,widows: !0,zIndex: !0,zoom: !0},cssProps: {"float": ct.support.cssFloat ? "cssFloat" : "styleFloat"},style: function(e, n, r, i) {
- if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
- var o, a, s, l = ct.camelCase(n), u = e.style;
- if (n = ct.cssProps[l] || (ct.cssProps[l] = T(u, l)), s = ct.cssHooks[n] || ct.cssHooks[l], r === t)
- return s && "get" in s && (o = s.get(e, !1, i)) !== t ? o : u[n];
- if (a = typeof r, "string" === a && (o = xn.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(ct.css(e, n)), a = "number"), !(null == r || "number" === a && isNaN(r) || ("number" !== a || ct.cssNumber[l] || (r += "px"), ct.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (u[n] = "inherit"), s && "set" in s && (r = s.set(e, r, i)) === t)))
- try {
- u[n] = r
- } catch (c) {
- }
- }
- },css: function(e, n, r, i) {
- var o, a, s, l = ct.camelCase(n);
- return n = ct.cssProps[l] || (ct.cssProps[l] = T(e.style, l)), s = ct.cssHooks[n] || ct.cssHooks[l], s && "get" in s && (a = s.get(e, !0, r)), a === t && (a = pn(e, n, i)), "normal" === a && n in kn && (a = kn[n]), "" === r || r ? (o = parseFloat(a), r === !0 || ct.isNumeric(o) ? o || 0 : a) : a
- }}), e.getComputedStyle ? (fn = function(t) {
- return e.getComputedStyle(t, null)
- }, pn = function(e, n, r) {
- var i, o, a, s = r || fn(e), l = s ? s.getPropertyValue(n) || s[n] : t, u = e.style;
- return s && ("" !== l || ct.contains(e.ownerDocument, e) || (l = ct.style(e, n)), bn.test(l) && yn.test(n) && (i = u.width, o = u.minWidth, a = u.maxWidth, u.minWidth = u.maxWidth = u.width = l, l = s.width, u.width = i, u.minWidth = o, u.maxWidth = a)), l
- }) : G.documentElement.currentStyle && (fn = function(e) {
- return e.currentStyle
- }, pn = function(e, n, r) {
- var i, o, a, s = r || fn(e), l = s ? s[n] : t, u = e.style;
- return null == l && u && u[n] && (l = u[n]), bn.test(l) && !mn.test(n) && (i = u.left, o = e.runtimeStyle, a = o && o.left, a && (o.left = e.currentStyle.left), u.left = "fontSize" === n ? "1em" : l, l = u.pixelLeft + "px", u.left = i, a && (o.left = a)), "" === l ? "auto" : l
- }), ct.each(["height", "width"], function(e, t) {
- ct.cssHooks[t] = {get: function(e, n, r) {
- return n ? 0 === e.offsetWidth && gn.test(ct.css(e, "display")) ? ct.swap(e, Tn, function() {
- return E(e, t, r)
- }) : E(e, t, r) : void 0
- },set: function(e, n, r) {
- var i = r && fn(e);
- return N(e, n, r ? S(e, t, r, ct.support.boxSizing && "border-box" === ct.css(e, "boxSizing", !1, i), i) : 0)
- }}
- }), ct.support.opacity || (ct.cssHooks.opacity = {get: function(e, t) {
- return hn.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""
- },set: function(e, t) {
- var n = e.style, r = e.currentStyle, i = ct.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "", o = r && r.filter || n.filter || "";
- n.zoom = 1, (t >= 1 || "" === t) && "" === ct.trim(o.replace(dn, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = dn.test(o) ? o.replace(dn, i) : o + " " + i)
- }}), ct(function() {
- ct.support.reliableMarginRight || (ct.cssHooks.marginRight = {get: function(e, t) {
- return t ? ct.swap(e, {display: "inline-block"}, pn, [e, "marginRight"]) : void 0
- }}), !ct.support.pixelPosition && ct.fn.position && ct.each(["top", "left"], function(e, t) {
- ct.cssHooks[t] = {get: function(e, n) {
- return n ? (n = pn(e, t), bn.test(n) ? ct(e).position()[t] + "px" : n) : void 0
- }}
- })
- }), ct.expr && ct.expr.filters && (ct.expr.filters.hidden = function(e) {
- return e.offsetWidth <= 0 && e.offsetHeight <= 0 || !ct.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || ct.css(e, "display"))
- }, ct.expr.filters.visible = function(e) {
- return !ct.expr.filters.hidden(e)
- }), ct.each({margin: "",padding: "",border: "Width"}, function(e, t) {
- ct.cssHooks[e + t] = {expand: function(n) {
- for (var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; 4 > r; r++)
- i[e + Cn[r] + t] = o[r] || o[r - 2] || o[0];
- return i
- }}, yn.test(e) || (ct.cssHooks[e + t].set = N)
- });
- var Sn = /%20/g, En = /\[\]$/, jn = /\r?\n/g, An = /^(?:submit|button|image|reset|file)$/i, Dn = /^(?:input|select|textarea|keygen)/i;
- ct.fn.extend({serialize: function() {
- return ct.param(this.serializeArray())
- },serializeArray: function() {
- return this.map(function() {
- var e = ct.prop(this, "elements");
- return e ? ct.makeArray(e) : this
- }).filter(function() {
- var e = this.type;
- return this.name && !ct(this).is(":disabled") && Dn.test(this.nodeName) && !An.test(e) && (this.checked || !tn.test(e))
- }).map(function(e, t) {
- var n = ct(this).val();
- return null == n ? null : ct.isArray(n) ? ct.map(n, function(e) {
- return {name: t.name,value: e.replace(jn, "\r\n")}
- }) : {name: t.name,value: n.replace(jn, "\r\n")}
- }).get()
- }}), ct.param = function(e, n) {
- var r, i = [], o = function(e, t) {
- t = ct.isFunction(t) ? t() : null == t ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
- };
- if (n === t && (n = ct.ajaxSettings && ct.ajaxSettings.traditional), ct.isArray(e) || e.jquery && !ct.isPlainObject(e))
- ct.each(e, function() {
- o(this.name, this.value)
- });
- else
- for (r in e)
- D(r, e[r], n, o);
- return i.join("&").replace(Sn, "+")
- }, ct.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) {
- ct.fn[t] = function(e, n) {
- return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
- }
- }), ct.fn.extend({hover: function(e, t) {
- return this.mouseenter(e).mouseleave(t || e)
- },bind: function(e, t, n) {
- return this.on(e, null, t, n)
- },unbind: function(e, t) {
- return this.off(e, null, t)
- },delegate: function(e, t, n, r) {
- return this.on(t, e, n, r)
- },undelegate: function(e, t, n) {
- return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
- }});
- var Ln, Hn, $n = ct.now(), qn = /\?/, _n = /#.*$/, Fn = /([?&])_=[^&]*/, On = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, Mn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Bn = /^(?:GET|HEAD)$/, Rn = /^\/\//, Pn = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, Wn = ct.fn.load, In = {}, zn = {}, Xn = "*/".concat("*");
- try {
- Hn = Y.href
- } catch (Un) {
- Hn = G.createElement("a"), Hn.href = "", Hn = Hn.href
- }
- Ln = Pn.exec(Hn.toLowerCase()) || [], ct.fn.load = function(e, n, r) {
- if ("string" != typeof e && Wn)
- return Wn.apply(this, arguments);
- var i, o, a, s = this, l = e.indexOf(" ");
- return l >= 0 && (i = e.slice(l, e.length), e = e.slice(0, l)), ct.isFunction(n) ? (r = n, n = t) : n && "object" == typeof n && (a = "POST"), s.length > 0 && ct.ajax({url: e,type: a,dataType: "html",data: n}).done(function(e) {
- o = arguments, s.html(i ? ct("<div>").append(ct.parseHTML(e)).find(i) : e)
- }).complete(r && function(e, t) {
- s.each(r, o || [e.responseText, t, e])
- }), this
- }, ct.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
- ct.fn[t] = function(e) {
- return this.on(t, e)
- }
- }), ct.extend({active: 0,lastModified: {},etag: {},ajaxSettings: {url: Hn,type: "GET",isLocal: Mn.test(Ln[1]),global: !0,processData: !0,async: !0,contentType: "application/x-www-form-urlencoded; charset=UTF-8",accepts: {"*": Xn,text: "text/plain",html: "text/html",xml: "application/xml, text/xml",json: "application/json, text/javascript"},contents: {xml: /xml/,html: /html/,json: /json/},responseFields: {xml: "responseXML",text: "responseText",json: "responseJSON"},converters: {"* text": String,"text html": !0,"text json": ct.parseJSON,"text xml": ct.parseXML},flatOptions: {url: !0,context: !0}},ajaxSetup: function(e, t) {
- return t ? $($(e, ct.ajaxSettings), t) : $(ct.ajaxSettings, e)
- },ajaxPrefilter: L(In),ajaxTransport: L(zn),ajax: function(e, n) {
- function r(e, n, r, i) {
- var o, f, v, b, w, k = n;
- 2 !== x && (x = 2, l && clearTimeout(l), c = t, s = i || "", T.readyState = e > 0 ? 4 : 0, o = e >= 200 && 300 > e || 304 === e, r && (b = q(p, T, r)), b = _(p, b, T, o), o ? (p.ifModified && (w = T.getResponseHeader("Last-Modified"), w && (ct.lastModified[a] = w), w = T.getResponseHeader("etag"), w && (ct.etag[a] = w)), 204 === e || "HEAD" === p.type ? k = "nocontent" : 304 === e ? k = "notmodified" : (k = b.state, f = b.data, v = b.error, o = !v)) : (v = k, (e || !k) && (k = "error", 0 > e && (e = 0))), T.status = e, T.statusText = (n || k) + "", o ? m.resolveWith(d, [f, k, T]) : m.rejectWith(d, [T, k, v]), T.statusCode(y), y = t, u && h.trigger(o ? "ajaxSuccess" : "ajaxError", [T, p, o ? f : v]), g.fireWith(d, [T, k]), u && (h.trigger("ajaxComplete", [T, p]), --ct.active || ct.event.trigger("ajaxStop")))
- }
- "object" == typeof e && (n = e, e = t), n = n || {};
- var i, o, a, s, l, u, c, f, p = ct.ajaxSetup({}, n), d = p.context || p, h = p.context && (d.nodeType || d.jquery) ? ct(d) : ct.event, m = ct.Deferred(), g = ct.Callbacks("once memory"), y = p.statusCode || {}, v = {}, b = {}, x = 0, w = "canceled", T = {readyState: 0,getResponseHeader: function(e) {
- var t;
- if (2 === x) {
- if (!f)
- for (f = {}; t = On.exec(s); )
- f[t[1].toLowerCase()] = t[2];
- t = f[e.toLowerCase()]
- }
- return null == t ? null : t
- },getAllResponseHeaders: function() {
- return 2 === x ? s : null
- },setRequestHeader: function(e, t) {
- var n = e.toLowerCase();
- return x || (e = b[n] = b[n] || e, v[e] = t), this
- },overrideMimeType: function(e) {
- return x || (p.mimeType = e), this
- },statusCode: function(e) {
- var t;
- if (e)
- if (2 > x)
- for (t in e)
- y[t] = [y[t], e[t]];
- else
- T.always(e[T.status]);
- return this
- },abort: function(e) {
- var t = e || w;
- return c && c.abort(t), r(0, t), this
- }};
- if (m.promise(T).complete = g.add, T.success = T.done, T.error = T.fail, p.url = ((e || p.url || Hn) + "").replace(_n, "").replace(Rn, Ln[1] + "//"), p.type = n.method || n.type || p.method || p.type, p.dataTypes = ct.trim(p.dataType || "*").toLowerCase().match(pt) || [""], null == p.crossDomain && (i = Pn.exec(p.url.toLowerCase()), p.crossDomain = !(!i || i[1] === Ln[1] && i[2] === Ln[2] && (i[3] || ("http:" === i[1] ? "80" : "443")) === (Ln[3] || ("http:" === Ln[1] ? "80" : "443")))), p.data && p.processData && "string" != typeof p.data && (p.data = ct.param(p.data, p.traditional)), H(In, p, n, T), 2 === x)
- return T;
- u = p.global, u && 0 === ct.active++ && ct.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !Bn.test(p.type), a = p.url, p.hasContent || (p.data && (a = p.url += (qn.test(a) ? "&" : "?") + p.data, delete p.data), p.cache === !1 && (p.url = Fn.test(a) ? a.replace(Fn, "$1_=" + $n++) : a + (qn.test(a) ? "&" : "?") + "_=" + $n++)), p.ifModified && (ct.lastModified[a] && T.setRequestHeader("If-Modified-Since", ct.lastModified[a]), ct.etag[a] && T.setRequestHeader("If-None-Match", ct.etag[a])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && T.setRequestHeader("Content-Type", p.contentType), T.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Xn + "; q=0.01" : "") : p.accepts["*"]);
- for (o in p.headers)
- T.setRequestHeader(o, p.headers[o]);
- if (p.beforeSend && (p.beforeSend.call(d, T, p) === !1 || 2 === x))
- return T.abort();
- w = "abort";
- for (o in {success: 1,error: 1,complete: 1})
- T[o](p[o]);
- if (c = H(zn, p, n, T)) {
- T.readyState = 1, u && h.trigger("ajaxSend", [T, p]), p.async && p.timeout > 0 && (l = setTimeout(function() {
- T.abort("timeout")
- }, p.timeout));
- try {
- x = 1, c.send(v, r)
- } catch (k) {
- if (!(2 > x))
- throw k;
- r(-1, k)
- }
- } else
- r(-1, "No Transport");
- return T
- },getJSON: function(e, t, n) {
- return ct.get(e, t, n, "json")
- },getScript: function(e, n) {
- return ct.get(e, t, n, "script")
- }}), ct.each(["get", "post"], function(e, n) {
- ct[n] = function(e, r, i, o) {
- return ct.isFunction(r) && (o = o || i, i = r, r = t), ct.ajax({url: e,type: n,dataType: o,data: r,success: i})
- }
- }), ct.ajaxSetup({accepts: {script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents: {script: /(?:java|ecma)script/},converters: {"text script": function(e) {
- return ct.globalEval(e), e
- }}}), ct.ajaxPrefilter("script", function(e) {
- e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1)
- }), ct.ajaxTransport("script", function(e) {
- if (e.crossDomain) {
- var n, r = G.head || ct("head")[0] || G.documentElement;
- return {send: function(t, i) {
- n = G.createElement("script"), n.async = !0, e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function(e, t) {
- (t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n), n = null, t || i(200, "success"))
- }, r.insertBefore(n, r.firstChild)
- },abort: function() {
- n && n.onload(t, !0)
- }}
- }
- });
- var Vn = [], Jn = /(=)\?(?=&|$)|\?\?/;
- ct.ajaxSetup({jsonp: "callback",jsonpCallback: function() {
- var e = Vn.pop() || ct.expando + "_" + $n++;
- return this[e] = !0, e
- }}), ct.ajaxPrefilter("json jsonp", function(n, r, i) {
- var o, a, s, l = n.jsonp !== !1 && (Jn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Jn.test(n.data) && "data");
- return l || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = ct.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, l ? n[l] = n[l].replace(Jn, "$1" + o) : n.jsonp !== !1 && (n.url += (qn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o), n.converters["script json"] = function() {
- return s || ct.error(o + " was not called"), s[0]
- }, n.dataTypes[0] = "json", a = e[o], e[o] = function() {
- s = arguments
- }, i.always(function() {
- e[o] = a, n[o] && (n.jsonpCallback = r.jsonpCallback, Vn.push(o)), s && ct.isFunction(a) && a(s[0]), s = a = t
- }), "script") : void 0
- });
- var Yn, Gn, Kn = 0, Qn = e.ActiveXObject && function() {
- var e;
- for (e in Yn)
- Yn[e](t, !0)
- };
- ct.ajaxSettings.xhr = e.ActiveXObject ? function() {
- return !this.isLocal && F() || O()
- } : F, Gn = ct.ajaxSettings.xhr(), ct.support.cors = !!Gn && "withCredentials" in Gn, Gn = ct.support.ajax = !!Gn, Gn && ct.ajaxTransport(function(n) {
- if (!n.crossDomain || ct.support.cors) {
- var r;
- return {send: function(i, o) {
- var a, s, l = n.xhr();
- if (n.username ? l.open(n.type, n.url, n.async, n.username, n.password) : l.open(n.type, n.url, n.async), n.xhrFields)
- for (s in n.xhrFields)
- l[s] = n.xhrFields[s];
- n.mimeType && l.overrideMimeType && l.overrideMimeType(n.mimeType), n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
- try {
- for (s in i)
- l.setRequestHeader(s, i[s])
- } catch (u) {
- }
- l.send(n.hasContent && n.data || null), r = function(e, i) {
- var s, u, c, f;
- try {
- if (r && (i || 4 === l.readyState))
- if (r = t, a && (l.onreadystatechange = ct.noop, Qn && delete Yn[a]), i)
- 4 !== l.readyState && l.abort();
- else {
- f = {}, s = l.status, u = l.getAllResponseHeaders(), "string" == typeof l.responseText && (f.text = l.responseText);
- try {
- c = l.statusText
- } catch (p) {
- c = ""
- }
- s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = f.text ? 200 : 404
- }
- } catch (d) {
- i || o(-1, d)
- }
- f && o(s, c, f, u)
- }, n.async ? 4 === l.readyState ? setTimeout(r) : (a = ++Kn, Qn && (Yn || (Yn = {}, ct(e).unload(Qn)), Yn[a] = r), l.onreadystatechange = r) : r()
- },abort: function() {
- r && r(t, !0)
- }}
- }
- });
- var Zn, er, tr = /^(?:toggle|show|hide)$/, nr = new RegExp("^(?:([+-])=|)(" + ft + ")([a-z%]*)$", "i"), rr = /queueHooks$/, ir = [W], or = {"*": [function(e, t) {
- var n = this.createTween(e, t), r = n.cur(), i = nr.exec(t), o = i && i[3] || (ct.cssNumber[e] ? "" : "px"), a = (ct.cssNumber[e] || "px" !== o && +r) && nr.exec(ct.css(n.elem, e)), s = 1, l = 20;
- if (a && a[3] !== o) {
- o = o || a[3], i = i || [], a = +r || 1;
- do
- s = s || ".5", a /= s, ct.style(n.elem, e, a + o);
- while (s !== (s = n.cur() / r) && 1 !== s && --l)
- }
- return i && (a = n.start = +a || +r || 0, n.unit = o, n.end = i[1] ? a + (i[1] + 1) * i[2] : +i[2]), n
- }]};
- ct.Animation = ct.extend(R, {tweener: function(e, t) {
- ct.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" ");
- for (var n, r = 0, i = e.length; i > r; r++)
- n = e[r], or[n] = or[n] || [], or[n].unshift(t)
- },prefilter: function(e, t) {
- t ? ir.unshift(e) : ir.push(e)
- }}), ct.Tween = I, I.prototype = {constructor: I,init: function(e, t, n, r, i, o) {
- this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (ct.cssNumber[n] ? "" : "px")
- },cur: function() {
- var e = I.propHooks[this.prop];
- return e && e.get ? e.get(this) : I.propHooks._default.get(this)
- },run: function(e) {
- var t, n = I.propHooks[this.prop];
- return this.pos = t = this.options.duration ? ct.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : I.propHooks._default.set(this), this
- }}, I.prototype.init.prototype = I.prototype, I.propHooks = {_default: {get: function(e) {
- var t;
- return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = ct.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop]
- },set: function(e) {
- ct.fx.step[e.prop] ? ct.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[ct.cssProps[e.prop]] || ct.cssHooks[e.prop]) ? ct.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
- }}}, I.propHooks.scrollTop = I.propHooks.scrollLeft = {set: function(e) {
- e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
- }}, ct.each(["toggle", "show", "hide"], function(e, t) {
- var n = ct.fn[t];
- ct.fn[t] = function(e, r, i) {
- return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(z(t, !0), e, r, i)
- }
- }), ct.fn.extend({fadeTo: function(e, t, n, r) {
- return this.filter(k).css("opacity", 0).show().end().animate({opacity: t}, e, n, r)
- },animate: function(e, t, n, r) {
- var i = ct.isEmptyObject(e), o = ct.speed(t, n, r), a = function() {
- var t = R(this, ct.extend({}, e), o);
- (i || ct._data(this, "finish")) && t.stop(!0)
- };
- return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
- },stop: function(e, n, r) {
- var i = function(e) {
- var t = e.stop;
- delete e.stop, t(r)
- };
- return "string" != typeof e && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function() {
- var t = !0, n = null != e && e + "queueHooks", o = ct.timers, a = ct._data(this);
- if (n)
- a[n] && a[n].stop && i(a[n]);
- else
- for (n in a)
- a[n] && a[n].stop && rr.test(n) && i(a[n]);
- for (n = o.length; n--; )
- o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r), t = !1, o.splice(n, 1));
- (t || !r) && ct.dequeue(this, e)
- })
- },finish: function(e) {
- return e !== !1 && (e = e || "fx"), this.each(function() {
- var t, n = ct._data(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = ct.timers, a = r ? r.length : 0;
- for (n.finish = !0, ct.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--; )
- o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
- for (t = 0; a > t; t++)
- r[t] && r[t].finish && r[t].finish.call(this);
- delete n.finish
- })
- }}), ct.each({slideDown: z("show"),slideUp: z("hide"),slideToggle: z("toggle"),fadeIn: {opacity: "show"},fadeOut: {opacity: "hide"},fadeToggle: {opacity: "toggle"}}, function(e, t) {
- ct.fn[e] = function(e, n, r) {
- return this.animate(t, e, n, r)
- }
- }), ct.speed = function(e, t, n) {
- var r = e && "object" == typeof e ? ct.extend({}, e) : {complete: n || !n && t || ct.isFunction(e) && e,duration: e,easing: n && t || t && !ct.isFunction(t) && t};
- return r.duration = ct.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in ct.fx.speeds ? ct.fx.speeds[r.duration] : ct.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function() {
- ct.isFunction(r.old) && r.old.call(this), r.queue && ct.dequeue(this, r.queue)
- }, r
- }, ct.easing = {linear: function(e) {
- return e
- },swing: function(e) {
- return .5 - Math.cos(e * Math.PI) / 2
- }}, ct.timers = [], ct.fx = I.prototype.init, ct.fx.tick = function() {
- var e, n = ct.timers, r = 0;
- for (Zn = ct.now(); r < n.length; r++)
- e = n[r], e() || n[r] !== e || n.splice(r--, 1);
- n.length || ct.fx.stop(), Zn = t
- }, ct.fx.timer = function(e) {
- e() && ct.timers.push(e) && ct.fx.start()
- }, ct.fx.interval = 13, ct.fx.start = function() {
- er || (er = setInterval(ct.fx.tick, ct.fx.interval))
- }, ct.fx.stop = function() {
- clearInterval(er), er = null
- }, ct.fx.speeds = {slow: 600,fast: 200,_default: 400}, ct.fx.step = {}, ct.expr && ct.expr.filters && (ct.expr.filters.animated = function(e) {
- return ct.grep(ct.timers, function(t) {
- return e === t.elem
- }).length
- }), ct.fn.offset = function(e) {
- if (arguments.length)
- return e === t ? this : this.each(function(t) {
- ct.offset.setOffset(this, e, t)
- });
- var n, r, i = {top: 0,left: 0}, o = this[0], a = o && o.ownerDocument;
- if (a)
- return n = a.documentElement, ct.contains(n, o) ? (typeof o.getBoundingClientRect !== J && (i = o.getBoundingClientRect()), r = X(a), {top: i.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0),left: i.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0)}) : i
- }, ct.offset = {setOffset: function(e, t, n) {
- var r = ct.css(e, "position");
- "static" === r && (e.style.position = "relative");
- var i, o, a = ct(e), s = a.offset(), l = ct.css(e, "top"), u = ct.css(e, "left"), c = ("absolute" === r || "fixed" === r) && ct.inArray("auto", [l, u]) > -1, f = {}, p = {};
- c ? (p = a.position(), i = p.top, o = p.left) : (i = parseFloat(l) || 0, o = parseFloat(u) || 0), ct.isFunction(t) && (t = t.call(e, n, s)), null != t.top && (f.top = t.top - s.top + i), null != t.left && (f.left = t.left - s.left + o), "using" in t ? t.using.call(e, f) : a.css(f)
- }}, ct.fn.extend({position: function() {
- if (this[0]) {
- var e, t, n = {top: 0,left: 0}, r = this[0];
- return "fixed" === ct.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), ct.nodeName(e[0], "html") || (n = e.offset()), n.top += ct.css(e[0], "borderTopWidth", !0), n.left += ct.css(e[0], "borderLeftWidth", !0)), {top: t.top - n.top - ct.css(r, "marginTop", !0),left: t.left - n.left - ct.css(r, "marginLeft", !0)}
- }
- },offsetParent: function() {
- return this.map(function() {
- for (var e = this.offsetParent || K; e && !ct.nodeName(e, "html") && "static" === ct.css(e, "position"); )
- e = e.offsetParent;
- return e || K
- })
- }}), ct.each({scrollLeft: "pageXOffset",scrollTop: "pageYOffset"}, function(e, n) {
- var r = /Y/.test(n);
- ct.fn[e] = function(i) {
- return ct.access(this, function(e, i, o) {
- var a = X(e);
- return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? ct(a).scrollLeft() : o, r ? o : ct(a).scrollTop()) : e[i] = o, void 0)
- }, e, i, arguments.length, null)
- }
- }), ct.each({Height: "height",Width: "width"}, function(e, n) {
- ct.each({padding: "inner" + e,content: n,"": "outer" + e}, function(r, i) {
- ct.fn[i] = function(i, o) {
- var a = arguments.length && (r || "boolean" != typeof i), s = r || (i === !0 || o === !0 ? "margin" : "border");
- return ct.access(this, function(n, r, i) {
- var o;
- return ct.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement, Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? ct.css(n, r, s) : ct.style(n, r, i, s)
- }, n, a ? i : t, a, null)
- }
- })
- }), ct.fn.size = function() {
- return this.length
- }, ct.fn.andSelf = ct.fn.addBack, "object" == typeof module && module && "object" == typeof module.exports ? module.exports = ct : (e.jQuery = e.$ = ct, "function" == typeof define && define.amd && define("jquery", [], function() {
- return ct
- }))
- }(window), function(e, t) {
- e.rails !== t && e.error("jquery-ujs has already been loaded!");
- var n, r = e(document);
- e.rails = n = {linkClickSelector: "a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",buttonClickSelector: "button[data-remote]",inputChangeSelector: "select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector: "form",formInputClickSelector: "form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector: "input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector: "input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector: "input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector: "input[type=file]",linkDisableSelector: "a[data-disable-with]",CSRFProtection: function(t) {
- var n = e('meta[name="csrf-token"]').attr("content");
- n && t.setRequestHeader("X-CSRF-Token", n)
- },fire: function(t, n, r) {
- var i = e.Event(n);
- return t.trigger(i, r), i.result !== !1
- },confirm: function(e) {
- return confirm(e)
- },ajax: function(t) {
- return e.ajax(t)
- },href: function(e) {
- return e.attr("href")
- },handleRemote: function(r) {
- var i, o, a, s, l, u, c, f;
- if (n.fire(r, "ajax:before")) {
- if (s = r.data("cross-domain"), l = s === t ? null : s, u = r.data("with-credentials") || null, c = r.data("type") || e.ajaxSettings && e.ajaxSettings.dataType, r.is("form")) {
- i = r.attr("method"), o = r.attr("action"), a = r.serializeArray();
- var p = r.data("ujs:submit-button");
- p && (a.push(p), r.data("ujs:submit-button", null))
- } else
- r.is(n.inputChangeSelector) ? (i = r.data("method"), o = r.data("url"), a = r.serialize(), r.data("params") && (a = a + "&" + r.data("params"))) : r.is(n.buttonClickSelector) ? (i = r.data("method") || "get", o = r.data("url"), a = r.serialize(), r.data("params") && (a = a + "&" + r.data("params"))) : (i = r.data("method"), o = n.href(r), a = r.data("params") || null);
- f = {type: i || "GET",data: a,dataType: c,beforeSend: function(e, i) {
- return i.dataType === t && e.setRequestHeader("accept", "*/*;q=0.5, " + i.accepts.script), n.fire(r, "ajax:beforeSend", [e, i])
- },success: function(e, t, n) {
- r.trigger("ajax:success", [e, t, n])
- },complete: function(e, t) {
- r.trigger("ajax:complete", [e, t])
- },error: function(e, t, n) {
- r.trigger("ajax:error", [e, t, n])
- },crossDomain: l}, u && (f.xhrFields = {withCredentials: u}), o && (f.url = o);
- var d = n.ajax(f);
- return r.trigger("ajax:send", d), d
- }
- return !1
- },handleMethod: function(r) {
- var i = n.href(r), o = r.data("method"), a = r.attr("target"), s = e("meta[name=csrf-token]").attr("content"), l = e("meta[name=csrf-param]").attr("content"), u = e('<form method="post" action="' + i + '"></form>'), c = '<input name="_method" value="' + o + '" type="hidden" />';
- l !== t && s !== t && (c += '<input name="' + l + '" value="' + s + '" type="hidden" />'), a && u.attr("target", a), u.hide().append(c).appendTo("body"), u.submit()
- },disableFormElements: function(t) {
- t.find(n.disableSelector).each(function() {
- var t = e(this), n = t.is("button") ? "html" : "val";
- t.data("ujs:enable-with", t[n]()), t[n](t.data("disable-with")), t.prop("disabled", !0)
- })
- },enableFormElements: function(t) {
- t.find(n.enableSelector).each(function() {
- var t = e(this), n = t.is("button") ? "html" : "val";
- t.data("ujs:enable-with") && t[n](t.data("ujs:enable-with")), t.prop("disabled", !1)
- })
- },allowAction: function(e) {
- var t, r = e.data("confirm"), i = !1;
- return r ? (n.fire(e, "confirm") && (i = n.confirm(r), t = n.fire(e, "confirm:complete", [i])), i && t) : !0
- },blankInputs: function(t, n, r) {
- var i, o, a = e(), s = n || "input,textarea", l = t.find(s);
- return l.each(function() {
- if (i = e(this), o = i.is("input[type=checkbox],input[type=radio]") ? i.is(":checked") : i.val(), !o == !r) {
- if (i.is("input[type=radio]") && l.filter('input[type=radio]:checked[name="' + i.attr("name") + '"]').length)
- return !0;
- a = a.add(i)
- }
- }), a.length ? a : !1
- },nonBlankInputs: function(e, t) {
- return n.blankInputs(e, t, !0)
- },stopEverything: function(t) {
- return e(t.target).trigger("ujs:everythingStopped"), t.stopImmediatePropagation(), !1
- },disableElement: function(e) {
- e.data("ujs:enable-with", e.html()), e.html(e.data("disable-with")), e.bind("click.railsDisable", function(e) {
- return n.stopEverything(e)
- })
- },enableElement: function(e) {
- e.data("ujs:enable-with") !== t && (e.html(e.data("ujs:enable-with")), e.removeData("ujs:enable-with")), e.unbind("click.railsDisable")
- }}, n.fire(r, "rails:attachBindings") && (e.ajaxPrefilter(function(e, t, r) {
- e.crossDomain || n.CSRFProtection(r)
- }), r.delegate(n.linkDisableSelector, "ajax:complete", function() {
- n.enableElement(e(this))
- }), r.delegate(n.linkClickSelector, "click.rails", function(r) {
- var i = e(this), o = i.data("method"), a = i.data("params");
- if (!n.allowAction(i))
- return n.stopEverything(r);
- if (i.is(n.linkDisableSelector) && n.disableElement(i), i.data("remote") !== t) {
- if (!(!r.metaKey && !r.ctrlKey || o && "GET" !== o || a))
- return !0;
- var s = n.handleRemote(i);
- return s === !1 ? n.enableElement(i) : s.error(function() {
- n.enableElement(i)
- }), !1
- }
- return i.data("method") ? (n.handleMethod(i), !1) : void 0
- }), r.delegate(n.buttonClickSelector, "click.rails", function(t) {
- var r = e(this);
- return n.allowAction(r) ? (n.handleRemote(r), !1) : n.stopEverything(t)
- }), r.delegate(n.inputChangeSelector, "change.rails", function(t) {
- var r = e(this);
- return n.allowAction(r) ? (n.handleRemote(r), !1) : n.stopEverything(t)
- }), r.delegate(n.formSubmitSelector, "submit.rails", function(r) {
- var i = e(this), o = i.data("remote") !== t, a = n.blankInputs(i, n.requiredInputSelector), s = n.nonBlankInputs(i, n.fileInputSelector);
- if (!n.allowAction(i))
- return n.stopEverything(r);
- if (a && i.attr("novalidate") == t && n.fire(i, "ajax:aborted:required", [a]))
- return n.stopEverything(r);
- if (o) {
- if (s) {
- setTimeout(function() {
- n.disableFormElements(i)
- }, 13);
- var l = n.fire(i, "ajax:aborted:file", [s]);
- return l || setTimeout(function() {
- n.enableFormElements(i)
- }, 13), l
- }
- return n.handleRemote(i), !1
- }
- setTimeout(function() {
- n.disableFormElements(i)
- }, 13)
- }), r.delegate(n.formInputClickSelector, "click.rails", function(t) {
- var r = e(this);
- if (!n.allowAction(r))
- return n.stopEverything(t);
- var i = r.attr("name"), o = i ? {name: i,value: r.val()} : null;
- r.closest("form").data("ujs:submit-button", o)
- }), r.delegate(n.formSubmitSelector, "ajax:beforeSend.rails", function(t) {
- this == t.target && n.disableFormElements(e(this))
- }), r.delegate(n.formSubmitSelector, "ajax:complete.rails", function(t) {
- this == t.target && n.enableFormElements(e(this))
- }), e(function() {
- var t = e("meta[name=csrf-token]").attr("content"), n = e("meta[name=csrf-param]").attr("content");
- e('form input[name="' + n + '"]').val(t)
- }))
- }(jQuery), function(e) {
- function t(e, t) {
- return "function" == typeof e ? e.call(t) : e
- }
- function n(e) {
- for (; e = e.parentNode; )
- if (e == document)
- return !0;
- return !1
- }
- function r(t, n) {
- this.$element = e(t), this.options = n, this.enabled = !0, this.fixTitle()
- }
- r.prototype = {show: function() {
- var n = this.getTitle();
- if (n && this.enabled) {
- var r = this.tip();
- r.find(".tipsy-inner")[this.options.html ? "html" : "text"](n), r[0].className = "tipsy", r.remove().css({top: 0,left: 0,visibility: "hidden",display: "block"}).prependTo(document.body);
- var i, o = e.extend({}, this.$element.offset(), {width: this.$element[0].offsetWidth,height: this.$element[0].offsetHeight}), a = r[0].offsetWidth, s = r[0].offsetHeight, l = t(this.options.gravity, this.$element[0]);
- switch (l.charAt(0)) {
- case "n":
- i = {top: o.top + o.height + this.options.offset,left: o.left + o.width / 2 - a / 2};
- break;
- case "s":
- i = {top: o.top - s - this.options.offset,left: o.left + o.width / 2 - a / 2};
- break;
- case "e":
- i = {top: o.top + o.height / 2 - s / 2,left: o.left - a - this.options.offset};
- break;
- case "w":
- i = {top: o.top + o.height / 2 - s / 2,left: o.left + o.width + this.options.offset}
- }
- 2 == l.length && (i.left = "w" == l.charAt(1) ? o.left + o.width / 2 - 15 : o.left + o.width / 2 - a + 15), r.css(i).addClass("tipsy-" + l), r.find(".tipsy-arrow")[0].className = "tipsy-arrow tipsy-arrow-" + l.charAt(0), this.options.className && r.addClass(t(this.options.className, this.$element[0])), this.options.fade ? r.stop().css({opacity: 0,display: "block",visibility: "visible"}).animate({opacity: this.options.opacity}) : r.css({visibility: "visible",opacity: this.options.opacity})
- }
- },hide: function() {
- this.options.fade ? this.tip().stop().fadeOut(function() {
- e(this).remove()
- }) : this.tip().remove()
- },fixTitle: function() {
- var e = this.$element;
- (e.attr("title") || "string" != typeof e.attr("original-title")) && e.attr("original-title", e.attr("title") || "").removeAttr("title")
- },getTitle: function() {
- var e, t = this.$element, n = this.options;
- this.fixTitle();
- var e, n = this.options;
- return "string" == typeof n.title ? e = t.attr("title" == n.title ? "original-title" : n.title) : "function" == typeof n.title && (e = n.title.call(t[0])), e = ("" + e).replace(/(^\s*|\s*$)/, ""), e || n.fallback
- },tip: function() {
- return this.$tip || (this.$tip = e('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'), this.$tip.data("tipsy-pointee", this.$element[0])), this.$tip
- },validate: function() {
- this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null)
- },enable: function() {
- this.enabled = !0
- },disable: function() {
- this.enabled = !1
- },toggleEnabled: function() {
- this.enabled = !this.enabled
- }}, e.fn.tipsy = function(t) {
- function n(n) {
- var i = e.data(n, "tipsy");
- return i || (i = new r(n, e.fn.tipsy.elementOptions(n, t)), e.data(n, "tipsy", i)), i
- }
- function i() {
- var e = n(this);
- e.hoverState = "in", 0 == t.delayIn ? e.show() : (e.fixTitle(), setTimeout(function() {
- "in" == e.hoverState && e.show()
- }, t.delayIn))
- }
- function o() {
- var e = n(this);
- e.hoverState = "out", 0 == t.delayOut ? e.hide() : setTimeout(function() {
- "out" == e.hoverState && e.hide()
- }, t.delayOut)
- }
- if (t === !0)
- return this.data("tipsy");
- if ("string" == typeof t) {
- var a = this.data("tipsy");
- return a && a[t](), this
- }
- if (t = e.extend({}, e.fn.tipsy.defaults, t), t.live || this.each(function() {
- n(this)
- }), "manual" != t.trigger) {
- var s = t.live ? "live" : "bind", l = "hover" == t.trigger ? "mouseenter" : "focus", u = "hover" == t.trigger ? "mouseleave" : "blur";
- this[s](l, i)[s](u, o)
- }
- return this
- }, e.fn.tipsy.defaults = {className: null,delayIn: 0,delayOut: 0,fade: !1,fallback: "",gravity: "n",html: !1,live: !1,offset: 0,opacity: .8,title: "title",trigger: "hover"}, e.fn.tipsy.revalidate = function() {
- e(".tipsy").each(function() {
- var t = e.data(this, "tipsy-pointee");
- t && n(t) || e(this).remove()
- })
- }, e.fn.tipsy.elementOptions = function(t, n) {
- return e.metadata ? e.extend({}, n, e(t).metadata()) : n
- }, e.fn.tipsy.autoNS = function() {
- return e(this).offset().top > e(document).scrollTop() + e(window).height() / 2 ? "s" : "n"
- }, e.fn.tipsy.autoWE = function() {
- return e(this).offset().left > e(document).scrollLeft() + e(window).width() / 2 ? "e" : "w"
- }, e.fn.tipsy.autoBounds = function(t, n) {
- return function() {
- var r = {ns: n[0],ew: n.length > 1 ? n[1] : !1}, i = e(document).scrollTop() + t, o = e(document).scrollLeft() + t, a = e(this);
- return a.offset().top < i && (r.ns = "n"), a.offset().left < o && (r.ew = "w"), e(window).width() + e(document).scrollLeft() - a.offset().left < t && (r.ew = "e"), e(window).height() + e(document).scrollTop() - a.offset().top < t && (r.ns = "s"), r.ns + (r.ew ? r.ew : "")
- }
- }
- }(jQuery), function() {
- var e, t, n, r, i, o, a;
- i = null, t = function() {
- return null != i ? i : $("#peek").data("request-id")
- }, r = function() {
- return $("#peek").length
- }, a = function(e) {
- var n, r;
- for (n in e.data)
- for (r in e.data[n])
- $("[data-defer-to=" + n + "-" + r + "]").text(e.data[n][r]);
- return $(document).trigger("peek:render", [t(), e])
- }, n = function() {
- return $("#peek .peek-tooltip, #peek .tooltip").each(function() {
- var e, t;
- return e = $(this), t = e.hasClass("rightwards") || e.hasClass("leftwards") ? $.fn.tipsy.autoWE : $.fn.tipsy.autoNS, e.tipsy({gravity: t})
- })
- }, o = function(e) {
- var t;
- if (!$(e.target).is(":input"))
- return 96 !== e.which || e.metaKey ? void 0 : (t = $("#peek"), t.hasClass("disabled") ? (t.removeClass("disabled"), document.cookie = "peek=true; path=/") : (t.addClass("disabled"), document.cookie = "peek=false; path=/"))
- }, e = function() {
- return $.ajax("/peek/results", {data: {request_id: t()},success: function(e) {
- return a(e)
- },error: function() {
- }})
- }, $(document).on("keypress", o), $(document).on("peek:update", n), $(document).on("peek:update", e), $(document).on("pjax:end", function(e, t) {
- return null != t && (i = t.getResponseHeader("X-Request-Id")), r() ? $(this).trigger("peek:update") : void 0
- }), $(document).on("page:change", function() {
- return r() ? $(this).trigger("peek:update") : void 0
- }), $(function() {
- return r() ? $(this).trigger("peek:update") : void 0
- })
- }.call(this), function() {
- var e, t, n, r;
- e = function() {
- function e(e) {
- var t, n;
- null == e && (e = {}), this.el = $("#peek-view-performance-bar .performance-bar");
- for (t in e)
- n = e[t], this[t] = n;
- null == this.width && (this.width = this.el.width()), null == this.timing && (this.timing = window.performance.timing)
- }
- return e.prototype.appInfo = null, e.prototype.width = null, e.formatTime = function(e) {
- return e >= 1e3 ? "" + (e / 1e3).toFixed(3) + "s" : "" + e.toFixed(0) + "ms"
- }, e.prototype.render = function(e) {
- var t, n;
- return null == e && (e = 0), this.el.empty(), this.addBar("frontend", "#90d35b", "domLoading", "domInteractive"), n = this.timing.responseEnd - this.timing.requestStart, e && n >= e ? (t = n - e, this.addBar("latency / receiving", "#f1faff", this.timing.requestStart + e, this.timing.requestStart + e + t), this.addBar("app", "#90afcf", this.timing.requestStart, this.timing.requestStart + e, this.appInfo)) : this.addBar("backend", "#c1d7ee", "requestStart", "responseEnd"), this.addBar("tcp / ssl", "#45688e", "connectStart", "connectEnd"), this.addBar("redirect", "#0c365e", "redirectStart", "redirectEnd"), this.addBar("dns", "#082541", "domainLookupStart", "domainLookupEnd"), this.el
- }, e.prototype.isLoaded = function() {
- return this.timing.domInteractive
- }, e.prototype.start = function() {
- return this.timing.navigationStart
- }, e.prototype.end = function() {
- return this.timing.domInteractive
- }, e.prototype.total = function() {
- return this.end() - this.start()
- }, e.prototype.addBar = function(t, n, r, i) {
- var o, a, s, l, u, c;
- return "string" == typeof r && (r = this.timing[r]), "string" == typeof i && (i = this.timing[i]), null != r && null != i ? (l = i - r, s = r - this.start(), a = this.mapH(s), c = this.mapH(l), u = "" + t + ": " + e.formatTime(l), o = $("<li></li>", {title: u,"class": "peek-tooltip"}), o.css({width: "" + c + "px",left: "" + a + "px",background: n}), o.tipsy({gravity: $.fn.tipsy.autoNS}), this.el.append(o)) : void 0
- }, e.prototype.mapH = function(e) {
- return e * (this.width / this.total())
- }, e
- }(), n = function() {
- var t, n, i, o;
- return n = $("#peek-server_response_time"), o = Math.round(1e3 * n.data("time")), t = new e, t.render(o), i = $("<span>", {"class": "peek-tooltip",title: "Total navigation time for this page."}).text(e.formatTime(t.total())), i.tipsy({gravity: $.fn.tipsy.autoNS}), r(i)
- }, r = function(e) {
- return $("#serverstats").html(e)
- }, t = null, $(document).on("pjax:start page:fetch", function(e) {
- return t = e.timeStamp
- }), $(document).on("pjax:end page:change", function(n, i) {
- var o, a, s;
- return o = n.timeStamp, s = o - t, a = i ? parseInt(i.getResponseHeader("X-Runtime")) : 0, setTimeout(function() {
- var n, i, l, u;
- return i = (new Date).getTime(), n = new e({timing: {requestStart: t,responseEnd: o,domLoading: o,domInteractive: i},isLoaded: function() {
- return !0
- },start: function() {
- return t
- },end: function() {
- return i
- }}), n.render(a), u = null != $.fn.pjax ? "PJAX" : "Turbolinks", l = $("<span>", {"class": "peek-tooltip",title: "" + u + " navigation time"}).text(e.formatTime(s)), l.tipsy({gravity: $.fn.tipsy.autoNS}), r(l), t = null
- }, 0)
- }), $(function() {
- return window.performance ? n() : $("#peek-view-performance-bar").remove()
- })
- }.call(this), function() {
- $(document).on("click", ".js-tabbed-pages .js-tabbed-tab", function(e) {
- var t, n;
- return e.preventDefault(), t = $(e.currentTarget).closest(".js-tabbed-pages"), n = $(e.currentTarget).attr("data-page"), t.find(".js-tabbed-tab").filter(".selected").removeClass("selected"), t.find(".js-tabbed-page").filter(".selected").removeClass("selected"), t.find("[data-page='" + n + "']").addClass("selected")
- })
- }.call(this), function() {
- $(document).ready(function() {
- return $(".js-doc-version-switcher").on("change", function() {
- var e, t;
- return t = $(this).val(), e = window.location.pathname.split("/"), e[2] = t, window.location.pathname = e.join("/")
- })
- })
- }.call(this), function() {
- }.call(this), function(e) {
- e.fn.extend({leanModal: function(t) {
- function n(t) {
- e("#lean_overlay").fadeOut(200), e(t).css({display: "none"})
- }
- var r = {top: 100,overlay: .5,closeButton: null}, i = e("<div id='lean_overlay'></div>");
- return e("body").append(i), t = e.extend(r, t), this.each(function() {
- var r = t;
- e(this).click(function(t) {
- var i = e(this).attr("href");
- e("#lean_overlay").click(function() {
- n(i)
- }), e(r.closeButton).click(function() {
- n(i)
- }), e(i).outerHeight();
- var o = e(i).outerWidth();
- e("#lean_overlay").css({display: "block",opacity: 0}), e("#lean_overlay").fadeTo(200, r.overlay), e(i).css({display: "block",position: "fixed",opacity: 0,"z-index": 11e3,left: "50%","margin-left": -(o / 2) + "px",top: r.top + "px"}), e(i).fadeTo(200, 1), t.preventDefault()
- })
- })
- }})
- }(jQuery), function() {
- $(document).ready(function() {
- return $("#show-flag").leanModal().on("click", function() {
- return $("#flag-modal textarea").focus(), null
- }), $("#flag-modal").on("keydown", function(e) {
- var t, n;
- switch (t = e.keyCode, n = e.metaKey, t) {
- case 13:
- n && $("#flag-modal form").submit();
- break;
- case 27:
- $("#lean_overlay").click()
- }
- return null
- })
- })
- }.call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement