Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ! function(a, b) {
- function c() {
- var a = r.elements;
- return "string" == typeof a ? a.split(" ") : a
- }
- function d(a) {
- var b = q[a[o]];
- return b || (b = {}, p++, a[o] = p, q[p] = b), b
- }
- function e(a, c, e) {
- if (c || (c = b), j) return c.createElement(a);
- e || (e = d(c));
- var f;
- return f = e.cache[a] ? e.cache[a].cloneNode() : n.test(a) ? (e.cache[a] = e.createElem(a)).cloneNode() : e.createElem(a), f.canHaveChildren && !m.test(a) ? e.frag.appendChild(f) : f
- }
- function f(a, e) {
- if (a || (a = b), j) return a.createDocumentFragment();
- e = e || d(a);
- for (var f = e.frag.cloneNode(), g = 0, h = c(), i = h.length; i > g; g++) f.createElement(h[g]);
- return f
- }
- function g(a, b) {
- b.cache || (b.cache = {}, b.createElem = a.createElement, b.createFrag = a.createDocumentFragment, b.frag = b.createFrag()), a.createElement = function(c) {
- return r.shivMethods ? e(c, a, b) : b.createElem(c)
- }, a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + c().join().replace(/[\w\-]+/g, function(a) {
- return b.createElem(a), b.frag.createElement(a), 'c("' + a + '")'
- }) + ");return n}")(r, b.frag)
- }
- function h(a) {
- a || (a = b);
- var c = d(a);
- return j || g(a, c), a
- }
- var i, j, k = "3.6.2",
- l = a.optahtml5 || {},
- m = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,
- n = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,
- o = "_optahtml5shiv",
- p = 0,
- q = {};
- ! function() {
- try {
- var a = b.createElement("a");
- a.innerHTML = "<xyz></xyz>", i = "hidden" in a, j = 1 == a.childNodes.length || function() {
- b.createElement("a");
- var a = b.createDocumentFragment();
- return "undefined" == typeof a.cloneNode || "undefined" == typeof a.createDocumentFragment || "undefined" == typeof a.createElement
- }()
- } catch (c) {
- i = !0, j = !0
- }
- }();
- var r = {
- elements: l.elements || "opta",
- version: k,
- shivCSS: l.shivCSS !== !1,
- supportsUnknownElements: j,
- shivMethods: l.shivMethods !== !1,
- type: "default",
- shivDocument: h,
- createElement: e,
- createDocumentFragment: f
- };
- a.optahtml5 = r, h(b)
- }(this, document),
- function(a, b) {
- b(a)
- }("undefined" != typeof window ? window : this, function(a, b) {
- function c(a) {
- var b = a.length,
- c = ea.type(a);
- return "function" === c || ea.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a
- }
- function d(a, b, c) {
- if (ea.isFunction(b)) return ea.grep(a, function(a, d) {
- return !!b.call(a, d, a) !== c
- });
- if (b.nodeType) return ea.grep(a, function(a) {
- return a === b !== c
- });
- if ("string" == typeof b) {
- if (ma.test(b)) return ea.filter(b, a, c);
- b = ea.filter(b, a)
- }
- return ea.grep(a, function(a) {
- return ea.inArray(a, b) >= 0 !== c
- })
- }
- function e(a, b) {
- do a = a[b]; while (a && 1 !== a.nodeType);
- return a
- }
- function f(a) {
- var b = ua[a] = {};
- return ea.each(a.match(ta) || [], function(a, c) {
- b[c] = !0
- }), b
- }
- function g() {
- oa.addEventListener ? (oa.removeEventListener("DOMContentLoaded", h, !1), a.removeEventListener("load", h, !1)) : (oa.detachEvent("onreadystatechange", h), a.detachEvent("onload", h))
- }
- function h() {
- (oa.addEventListener || "load" === event.type || "complete" === oa.readyState) && (g(), ea.ready())
- }
- function i(a, b, c) {
- if (void 0 === c && 1 === a.nodeType) {
- var d = "data-" + b.replace(za, "-$1").toLowerCase();
- if (c = a.getAttribute(d), "string" == typeof c) {
- try {
- c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : ya.test(c) ? ea.parseJSON(c) : c
- } catch (e) {}
- ea.data(a, b, c)
- } else c = void 0
- }
- return c
- }
- function j(a) {
- var b;
- for (b in a)
- if (("data" !== b || !ea.isEmptyObject(a[b])) && "toJSON" !== b) return !1;
- return !0
- }
- function k(a, b, c, d) {
- if (ea.acceptData(a)) {
- var e, f, g = ea.expando,
- h = a.nodeType,
- i = h ? ea.cache : a,
- j = h ? a[g] : a[g] && g;
- if (j && i[j] && (d || i[j].data) || void 0 !== c || "string" != typeof b) return j || (j = h ? a[g] = W.pop() || ea.guid++ : g), i[j] || (i[j] = h ? {} : {
- toJSON: ea.noop
- }), ("object" == typeof b || "function" == typeof b) && (d ? i[j] = ea.extend(i[j], b) : i[j].data = ea.extend(i[j].data, b)), f = i[j], d || (f.data || (f.data = {}), f = f.data), void 0 !== c && (f[ea.camelCase(b)] = c), "string" == typeof b ? (e = f[b], null == e && (e = f[ea.camelCase(b)])) : e = f, e
- }
- }
- function l(a, b, c) {
- if (ea.acceptData(a)) {
- var d, e, f = a.nodeType,
- g = f ? ea.cache : a,
- h = f ? a[ea.expando] : ea.expando;
- if (g[h]) {
- if (b && (d = c ? g[h] : g[h].data)) {
- ea.isArray(b) ? b = b.concat(ea.map(b, ea.camelCase)) : b in d ? b = [b] : (b = ea.camelCase(b), b = b in d ? [b] : b.split(" ")), e = b.length;
- for (; e--;) delete d[b[e]];
- if (c ? !j(d) : !ea.isEmptyObject(d)) return
- }(c || (delete g[h].data, j(g[h]))) && (f ? ea.cleanData([a], !0) : ca.deleteExpando || g != g.window ? delete g[h] : g[h] = null)
- }
- }
- }
- function m() {
- return !0
- }
- function n() {
- return !1
- }
- function o() {
- try {
- return oa.activeElement
- } catch (a) {}
- }
- function p(a) {
- var b = Ka.split("|"),
- c = a.createDocumentFragment();
- if (c.createElement)
- for (; b.length;) c.createElement(b.pop());
- return c
- }
- function q(a, b) {
- var c, d, e = 0,
- f = typeof a.getElementsByTagName !== xa ? a.getElementsByTagName(b || "*") : typeof a.querySelectorAll !== xa ? a.querySelectorAll(b || "*") : void 0;
- if (!f)
- for (f = [], c = a.childNodes || a; null != (d = c[e]); e++) !b || ea.nodeName(d, b) ? f.push(d) : ea.merge(f, q(d, b));
- return void 0 === b || b && ea.nodeName(a, b) ? ea.merge([a], f) : f
- }
- function r(a) {
- Ea.test(a.type) && (a.defaultChecked = a.checked)
- }
- function s(a, b) {
- return ea.nodeName(a, "table") && ea.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a
- }
- function t(a) {
- return a.type = (null !== ea.find.attr(a, "type")) + "/" + a.type, a
- }
- function u(a) {
- var b = Va.exec(a.type);
- return b ? a.type = b[1] : a.removeAttribute("type"), a
- }
- function v(a, b) {
- for (var c, d = 0; null != (c = a[d]); d++) ea._data(c, "globalEval", !b || ea._data(b[d], "globalEval"))
- }
- function w(a, b) {
- if (1 === b.nodeType && ea.hasData(a)) {
- var c, d, e, f = ea._data(a),
- g = ea._data(b, f),
- h = f.events;
- if (h) {
- delete g.handle, g.events = {};
- for (c in h)
- for (d = 0, e = h[c].length; e > d; d++) ea.event.add(b, c, h[c][d])
- }
- g.data && (g.data = ea.extend({}, g.data))
- }
- }
- function x(a, b) {
- var c, d, e;
- if (1 === b.nodeType) {
- if (c = b.nodeName.toLowerCase(), !ca.noCloneEvent && b[ea.expando]) {
- e = ea._data(b);
- for (d in e.events) ea.removeEvent(b, d, e.handle);
- b.removeAttribute(ea.expando)
- }
- "script" === c && b.text !== a.text ? (t(b).text = a.text, u(b)) : "object" === c ? (b.parentNode && (b.outerHTML = a.outerHTML), ca.html5Clone && a.innerHTML && !ea.trim(b.innerHTML) && (b.innerHTML = a.innerHTML)) : "input" === c && Ea.test(a.type) ? (b.defaultChecked = b.checked = a.checked, b.value !== a.value && (b.value = a.value)) : "option" === c ? b.defaultSelected = b.selected = a.defaultSelected : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue)
- }
- }
- function y(b, c) {
- var d, e = ea(c.createElement(b)).appendTo(c.body),
- f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : ea.css(e[0], "display");
- return e.detach(), f
- }
- function z(a) {
- var b = oa,
- c = _a[a];
- return c || (c = y(a, b), "none" !== c && c || ($a = ($a || ea("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement), b = ($a[0].contentWindow || $a[0].contentDocument).document, b.write(), b.close(), c = y(a, b), $a.detach()), _a[a] = c), c
- }
- function A(a, b) {
- return {
- get: function() {
- var c = a();
- if (null != c) return c ? void delete this.get : (this.get = b).apply(this, arguments)
- }
- }
- }
- function B(a, b) {
- if (b in a) return b;
- for (var c = b.charAt(0).toUpperCase() + b.slice(1), d = b, e = mb.length; e--;)
- if (b = mb[e] + c, b in a) return b;
- return d
- }
- function C(a, b) {
- for (var c, d, e, f = [], g = 0, h = a.length; h > g; g++) d = a[g], d.style && (f[g] = ea._data(d, "olddisplay"), c = d.style.display, b ? (f[g] || "none" !== c || (d.style.display = ""), "" === d.style.display && Ca(d) && (f[g] = ea._data(d, "olddisplay", z(d.nodeName)))) : (e = Ca(d), (c && "none" !== c || !e) && ea._data(d, "olddisplay", e ? c : ea.css(d, "display"))));
- for (g = 0; h > g; g++) d = a[g], d.style && (b && "none" !== d.style.display && "" !== d.style.display || (d.style.display = b ? f[g] || "" : "none"));
- return a
- }
- function D(a, b, c) {
- var d = ib.exec(b);
- return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b
- }
- function E(a, b, c, d, e) {
- for (var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; 4 > f; f += 2) "margin" === c && (g += ea.css(a, c + Ba[f], !0, e)), d ? ("content" === c && (g -= ea.css(a, "padding" + Ba[f], !0, e)), "margin" !== c && (g -= ea.css(a, "border" + Ba[f] + "Width", !0, e))) : (g += ea.css(a, "padding" + Ba[f], !0, e), "padding" !== c && (g += ea.css(a, "border" + Ba[f] + "Width", !0, e)));
- return g
- }
- function F(a, b, c) {
- var d = !0,
- e = "width" === b ? a.offsetWidth : a.offsetHeight,
- f = ab(a),
- g = ca.boxSizing && "border-box" === ea.css(a, "boxSizing", !1, f);
- if (0 >= e || null == e) {
- if (e = bb(a, b, f), (0 > e || null == e) && (e = a.style[b]), db.test(e)) return e;
- d = g && (ca.boxSizingReliable() || e === a.style[b]), e = parseFloat(e) || 0
- }
- return e + E(a, b, c || (g ? "border" : "content"), d, f) + "px"
- }
- function G(a, b, c, d, e) {
- return new G.prototype.init(a, b, c, d, e)
- }
- function H() {
- return setTimeout(function() {
- nb = void 0
- }), nb = ea.now()
- }
- function I(a, b) {
- var c, d = {
- height: a
- },
- e = 0;
- for (b = b ? 1 : 0; 4 > e; e += 2 - b) c = Ba[e], d["margin" + c] = d["padding" + c] = a;
- return b && (d.opacity = d.width = a), d
- }
- function J(a, b, c) {
- for (var d, e = (tb[b] || []).concat(tb["*"]), f = 0, g = e.length; g > f; f++)
- if (d = e[f].call(c, b, a)) return d
- }
- function K(a, b, c) {
- var d, e, f, g, h, i, j, k, l = this,
- m = {},
- n = a.style,
- o = a.nodeType && Ca(a),
- p = ea._data(a, "fxshow");
- c.queue || (h = ea._queueHooks(a, "fx"), null == h.unqueued && (h.unqueued = 0, i = h.empty.fire, h.empty.fire = function() {
- h.unqueued || i()
- }), h.unqueued++, l.always(function() {
- l.always(function() {
- h.unqueued--, ea.queue(a, "fx").length || h.empty.fire()
- })
- })), 1 === a.nodeType && ("height" in b || "width" in b) && (c.overflow = [n.overflow, n.overflowX, n.overflowY], j = ea.css(a, "display"), k = "none" === j ? ea._data(a, "olddisplay") || z(a.nodeName) : j, "inline" === k && "none" === ea.css(a, "float") && (ca.inlineBlockNeedsLayout && "inline" !== z(a.nodeName) ? n.zoom = 1 : n.display = "inline-block")), c.overflow && (n.overflow = "hidden", ca.shrinkWrapBlocks() || l.always(function() {
- n.overflow = c.overflow[0], n.overflowX = c.overflow[1], n.overflowY = c.overflow[2]
- }));
- for (d in b)
- if (e = b[d], pb.exec(e)) {
- if (delete b[d], f = f || "toggle" === e, e === (o ? "hide" : "show")) {
- if ("show" !== e || !p || void 0 === p[d]) continue;
- o = !0
- }
- m[d] = p && p[d] || ea.style(a, d)
- } else j = void 0;
- if (ea.isEmptyObject(m)) "inline" === ("none" === j ? z(a.nodeName) : j) && (n.display = j);
- else {
- p ? "hidden" in p && (o = p.hidden) : p = ea._data(a, "fxshow", {}), f && (p.hidden = !o), o ? ea(a).show() : l.done(function() {
- ea(a).hide()
- }), l.done(function() {
- var b;
- ea._removeData(a, "fxshow");
- for (b in m) ea.style(a, b, m[b])
- });
- for (d in m) g = J(o ? p[d] : 0, d, l), d in p || (p[d] = g.start, o && (g.end = g.start, g.start = "width" === d || "height" === d ? 1 : 0))
- }
- }
- function L(a, b) {
- var c, d, e, f, g;
- for (c in a)
- if (d = ea.camelCase(c), e = b[d], f = a[c], ea.isArray(f) && (e = f[1], f = a[c] = f[0]), c !== d && (a[d] = f, delete a[c]), g = ea.cssHooks[d], g && "expand" in g) {
- f = g.expand(f), delete a[d];
- for (c in f) c in a || (a[c] = f[c], b[c] = e)
- } else b[d] = e
- }
- function M(a, b, c) {
- var d, e, f = 0,
- g = sb.length,
- h = ea.Deferred().always(function() {
- delete i.elem
- }),
- i = function() {
- if (e) return !1;
- for (var b = nb || H(), c = Math.max(0, j.startTime + j.duration - b), d = c / j.duration || 0, f = 1 - d, g = 0, i = j.tweens.length; i > g; g++) j.tweens[g].run(f);
- return h.notifyWith(a, [j, f, c]), 1 > f && i ? c : (h.resolveWith(a, [j]), !1)
- },
- j = h.promise({
- elem: a,
- props: ea.extend({}, b),
- opts: ea.extend(!0, {
- specialEasing: {}
- }, c),
- originalProperties: b,
- originalOptions: c,
- startTime: nb || H(),
- duration: c.duration,
- tweens: [],
- createTween: function(b, c) {
- var d = ea.Tween(a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing);
- return j.tweens.push(d), d
- },
- stop: function(b) {
- var c = 0,
- d = b ? j.tweens.length : 0;
- if (e) return this;
- for (e = !0; d > c; c++) j.tweens[c].run(1);
- return b ? h.resolveWith(a, [j, b]) : h.rejectWith(a, [j, b]), this
- }
- }),
- k = j.props;
- for (L(k, j.opts.specialEasing); g > f; f++)
- if (d = sb[f].call(j, a, k, j.opts)) return d;
- return ea.map(k, J, j), ea.isFunction(j.opts.start) && j.opts.start.call(a, j), ea.fx.timer(ea.extend(i, {
- elem: a,
- anim: j,
- queue: j.opts.queue
- })), j.progress(j.opts.progress).done(j.opts.done, j.opts.complete).fail(j.opts.fail).always(j.opts.always)
- }
- function N(a) {
- return function(b, c) {
- "string" != typeof b && (c = b, b = "*");
- var d, e = 0,
- f = b.toLowerCase().match(ta) || [];
- if (ea.isFunction(c))
- for (; d = f[e++];) "+" === d.charAt(0) ? (d = d.slice(1) || "*", (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c)
- }
- }
- function O(a, b, c, d) {
- function e(h) {
- var i;
- return f[h] = !0, ea.each(a[h] || [], function(a, h) {
- var j = h(b, c, d);
- return "string" != typeof j || g || f[j] ? g ? !(i = j) : void 0 : (b.dataTypes.unshift(j), e(j), !1)
- }), i
- }
- var f = {},
- g = a === Rb;
- return e(b.dataTypes[0]) || !f["*"] && e("*")
- }
- function P(a, b) {
- var c, d, e = ea.ajaxSettings.flatOptions || {};
- for (d in b) void 0 !== b[d] && ((e[d] ? a : c || (c = {}))[d] = b[d]);
- return c && ea.extend(!0, a, c), a
- }
- function Q(a, b, c) {
- for (var d, e, f, g, h = a.contents, i = a.dataTypes;
- "*" === i[0];) i.shift(), void 0 === e && (e = a.mimeType || b.getResponseHeader("Content-Type"));
- if (e)
- for (g in h)
- if (h[g] && h[g].test(e)) {
- i.unshift(g);
- break
- }
- if (i[0] in c) f = i[0];
- else {
- for (g in c) {
- if (!i[0] || a.converters[g + " " + i[0]]) {
- f = g;
- break
- }
- d || (d = g)
- }
- f = f || d
- }
- return f ? (f !== i[0] && i.unshift(f), c[f]) : void 0
- }
- function R(a, b, c, d) {
- var e, f, g, h, i, j = {},
- k = a.dataTypes.slice();
- if (k[1])
- for (g in a.converters) j[g.toLowerCase()] = a.converters[g];
- for (f = k.shift(); f;)
- if (a.responseFields[f] && (c[a.responseFields[f]] = b), !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), i = f, f = k.shift())
- if ("*" === f) f = i;
- else if ("*" !== i && i !== f) {
- if (g = j[i + " " + f] || j["* " + f], !g)
- for (e in j)
- if (h = e.split(" "), h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) {
- g === !0 ? g = j[e] : j[e] !== !0 && (f = h[0], k.unshift(h[1]));
- break
- }
- if (g !== !0)
- if (g && a["throws"]) b = g(b);
- else try {
- b = g(b)
- } catch (l) {
- return {
- state: "parsererror",
- error: g ? l : "No conversion from " + i + " to " + f
- }
- }
- }
- return {
- state: "success",
- data: b
- }
- }
- function S(a, b, c, d) {
- var e;
- if (ea.isArray(b)) ea.each(b, function(b, e) {
- c || Vb.test(a) ? d(a, e) : S(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d)
- });
- else if (c || "object" !== ea.type(b)) d(a, b);
- else
- for (e in b) S(a + "[" + e + "]", b[e], c, d)
- }
- function T() {
- try {
- return new a.XMLHttpRequest
- } catch (b) {}
- }
- function U() {
- try {
- return new a.ActiveXObject("Microsoft.XMLHTTP")
- } catch (b) {}
- }
- function V(a) {
- return ea.isWindow(a) ? a : 9 === a.nodeType ? a.defaultView || a.parentWindow : !1
- }
- var W = [],
- X = W.slice,
- Y = W.concat,
- Z = W.push,
- $ = W.indexOf,
- _ = {},
- aa = _.toString,
- ba = _.hasOwnProperty,
- ca = {},
- da = "1.11.2",
- ea = function(a, b) {
- return new ea.fn.init(a, b)
- },
- fa = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
- ga = /^-ms-/,
- ha = /-([\da-z])/gi,
- ia = function(a, b) {
- return b.toUpperCase()
- };
- ea.fn = ea.prototype = {
- jquery: da,
- constructor: ea,
- selector: "",
- length: 0,
- toArray: function() {
- return X.call(this)
- },
- get: function(a) {
- return null != a ? 0 > a ? this[a + this.length] : this[a] : X.call(this)
- },
- pushStack: function(a) {
- var b = ea.merge(this.constructor(), a);
- return b.prevObject = this, b.context = this.context, b
- },
- each: function(a, b) {
- return ea.each(this, a, b)
- },
- map: function(a) {
- return this.pushStack(ea.map(this, function(b, c) {
- return a.call(b, c, b)
- }))
- },
- slice: function() {
- return this.pushStack(X.apply(this, arguments))
- },
- first: function() {
- return this.eq(0)
- },
- last: function() {
- return this.eq(-1)
- },
- eq: function(a) {
- var b = this.length,
- c = +a + (0 > a ? b : 0);
- return this.pushStack(c >= 0 && b > c ? [this[c]] : [])
- },
- end: function() {
- return this.prevObject || this.constructor(null)
- },
- push: Z,
- sort: W.sort,
- splice: W.splice
- }, ea.extend = ea.fn.extend = function() {
- var a, b, c, d, e, f, g = arguments[0] || {},
- h = 1,
- i = arguments.length,
- j = !1;
- for ("boolean" == typeof g && (j = g, g = arguments[h] || {}, h++), "object" == typeof g || ea.isFunction(g) || (g = {}), h === i && (g = this, h--); i > h; h++)
- if (null != (e = arguments[h]))
- for (d in e) a = g[d], c = e[d], g !== c && (j && c && (ea.isPlainObject(c) || (b = ea.isArray(c))) ? (b ? (b = !1, f = a && ea.isArray(a) ? a : []) : f = a && ea.isPlainObject(a) ? a : {}, g[d] = ea.extend(j, f, c)) : void 0 !== c && (g[d] = c));
- return g
- }, ea.extend({
- expando: "jQuery" + (da + Math.random()).replace(/\D/g, ""),
- isReady: !0,
- error: function(a) {
- throw new Error(a)
- },
- noop: function() {},
- isFunction: function(a) {
- return "function" === ea.type(a)
- },
- isArray: Array.isArray || function(a) {
- return "array" === ea.type(a)
- },
- isWindow: function(a) {
- return null != a && a == a.window
- },
- isNumeric: function(a) {
- return !ea.isArray(a) && a - parseFloat(a) + 1 >= 0
- },
- isEmptyObject: function(a) {
- var b;
- for (b in a) return !1;
- return !0
- },
- isPlainObject: function(a) {
- var b;
- if (!a || "object" !== ea.type(a) || a.nodeType || ea.isWindow(a)) return !1;
- try {
- if (a.constructor && !ba.call(a, "constructor") && !ba.call(a.constructor.prototype, "isPrototypeOf")) return !1
- } catch (c) {
- return !1
- }
- if (ca.ownLast)
- for (b in a) return ba.call(a, b);
- for (b in a);
- return void 0 === b || ba.call(a, b)
- },
- type: function(a) {
- return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? _[aa.call(a)] || "object" : typeof a
- },
- globalEval: function(b) {
- b && ea.trim(b) && (a.execScript || function(b) {
- a.eval.call(a, b)
- })(b)
- },
- camelCase: function(a) {
- return a.replace(ga, "ms-").replace(ha, ia)
- },
- nodeName: function(a, b) {
- return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase()
- },
- each: function(a, b, d) {
- var e, f = 0,
- g = a.length,
- h = c(a);
- if (d) {
- if (h)
- for (; g > f && (e = b.apply(a[f], d), e !== !1); f++);
- else
- for (f in a)
- if (e = b.apply(a[f], d), e === !1) break
- } else if (h)
- for (; g > f && (e = b.call(a[f], f, a[f]), e !== !1); f++);
- else
- for (f in a)
- if (e = b.call(a[f], f, a[f]), e === !1) break; return a
- },
- trim: function(a) {
- return null == a ? "" : (a + "").replace(fa, "")
- },
- makeArray: function(a, b) {
- var d = b || [];
- return null != a && (c(Object(a)) ? ea.merge(d, "string" == typeof a ? [a] : a) : Z.call(d, a)), d
- },
- inArray: function(a, b, c) {
- var d;
- if (b) {
- if ($) return $.call(b, a, c);
- for (d = b.length, c = c ? 0 > c ? Math.max(0, d + c) : c : 0; d > c; c++)
- if (c in b && b[c] === a) return c
- }
- return -1
- },
- merge: function(a, b) {
- for (var c = +b.length, d = 0, e = a.length; c > d;) a[e++] = b[d++];
- if (c !== c)
- for (; void 0 !== b[d];) a[e++] = b[d++];
- return a.length = e, a
- },
- grep: function(a, b, c) {
- for (var d, e = [], f = 0, g = a.length, h = !c; g > f; f++) d = !b(a[f], f), d !== h && e.push(a[f]);
- return e
- },
- map: function(a, b, d) {
- var e, f = 0,
- g = a.length,
- h = c(a),
- i = [];
- if (h)
- for (; g > f; f++) e = b(a[f], f, d), null != e && i.push(e);
- else
- for (f in a) e = b(a[f], f, d), null != e && i.push(e);
- return Y.apply([], i)
- },
- guid: 1,
- proxy: function(a, b) {
- var c, d, e;
- return "string" == typeof b && (e = a[b], b = a, a = e), ea.isFunction(a) ? (c = X.call(arguments, 2), d = function() {
- return a.apply(b || this, c.concat(X.call(arguments)))
- }, d.guid = a.guid = a.guid || ea.guid++, d) : void 0
- },
- now: function() {
- return +new Date
- },
- support: ca
- }), ea.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(a, b) {
- _["[object " + b + "]"] = b.toLowerCase()
- });
- var ja = function(a) {
- function b(a, b, c, d) {
- var e, f, g, h, i, j, l, n, o, p;
- if ((b ? b.ownerDocument || b : O) !== G && F(b), b = b || G, c = c || [], h = b.nodeType, "string" != typeof a || !a || 1 !== h && 9 !== h && 11 !== h) return c;
- if (!d && I) {
- if (11 !== h && (e = sa.exec(a)))
- if (g = e[1]) {
- if (9 === h) {
- if (f = b.getElementById(g), !f || !f.parentNode) return c;
- if (f.id === g) return c.push(f), c
- } else if (b.ownerDocument && (f = b.ownerDocument.getElementById(g)) && M(b, f) && f.id === g) return c.push(f), c
- } else {
- if (e[2]) return $.apply(c, b.getElementsByTagName(a)), c;
- if ((g = e[3]) && v.getElementsByClassName) return $.apply(c, b.getElementsByClassName(g)), c
- }
- if (v.qsa && (!J || !J.test(a))) {
- if (n = l = N, o = b, p = 1 !== h && a, 1 === h && "object" !== b.nodeName.toLowerCase()) {
- for (j = z(a), (l = b.getAttribute("id")) ? n = l.replace(ua, "\\$&") : b.setAttribute("id", n), n = "[id='" + n + "'] ", i = j.length; i--;) j[i] = n + m(j[i]);
- o = ta.test(a) && k(b.parentNode) || b, p = j.join(",")
- }
- if (p) try {
- return $.apply(c, o.querySelectorAll(p)), c
- } catch (q) {} finally {
- l || b.removeAttribute("id")
- }
- }
- }
- return B(a.replace(ia, "$1"), b, c, d)
- }
- function c() {
- function a(c, d) {
- return b.push(c + " ") > w.cacheLength && delete a[b.shift()], a[c + " "] = d
- }
- var b = [];
- return a
- }
- function d(a) {
- return a[N] = !0, a
- }
- function e(a) {
- var b = G.createElement("div");
- try {
- return !!a(b)
- } catch (c) {
- return !1
- } finally {
- b.parentNode && b.parentNode.removeChild(b), b = null
- }
- }
- function f(a, b) {
- for (var c = a.split("|"), d = a.length; d--;) w.attrHandle[c[d]] = b
- }
- function g(a, b) {
- var c = b && a,
- d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || V) - (~a.sourceIndex || V);
- if (d) return d;
- if (c)
- for (; c = c.nextSibling;)
- if (c === b) return -1;
- return a ? 1 : -1
- }
- function h(a) {
- return function(b) {
- var c = b.nodeName.toLowerCase();
- return "input" === c && b.type === a
- }
- }
- function i(a) {
- return function(b) {
- var c = b.nodeName.toLowerCase();
- return ("input" === c || "button" === c) && b.type === a
- }
- }
- function j(a) {
- return d(function(b) {
- return b = +b, d(function(c, d) {
- for (var e, f = a([], c.length, b), g = f.length; g--;) c[e = f[g]] && (c[e] = !(d[e] = c[e]))
- })
- })
- }
- function k(a) {
- return a && "undefined" != typeof a.getElementsByTagName && a
- }
- function l() {}
- function m(a) {
- for (var b = 0, c = a.length, d = ""; c > b; b++) d += a[b].value;
- return d
- }
- function n(a, b, c) {
- var d = b.dir,
- e = c && "parentNode" === d,
- f = Q++;
- return b.first ? function(b, c, f) {
- for (; b = b[d];)
- if (1 === b.nodeType || e) return a(b, c, f)
- } : function(b, c, g) {
- var h, i, j = [P, f];
- if (g) {
- for (; b = b[d];)
- if ((1 === b.nodeType || e) && a(b, c, g)) return !0
- } else
- for (; b = b[d];)
- if (1 === b.nodeType || e) {
- if (i = b[N] || (b[N] = {}), (h = i[d]) && h[0] === P && h[1] === f) return j[2] = h[2];
- if (i[d] = j, j[2] = a(b, c, g)) return !0
- }
- }
- }
- function o(a) {
- return a.length > 1 ? function(b, c, d) {
- for (var e = a.length; e--;)
- if (!a[e](b, c, d)) return !1;
- return !0
- } : a[0]
- }
- function p(a, c, d) {
- for (var e = 0, f = c.length; f > e; e++) b(a, c[e], d);
- return d
- }
- function q(a, b, c, d, e) {
- for (var f, g = [], h = 0, i = a.length, j = null != b; i > h; h++)(f = a[h]) && (!c || c(f, d, e)) && (g.push(f), j && b.push(h));
- return g
- }
- function r(a, b, c, e, f, g) {
- return e && !e[N] && (e = r(e)), f && !f[N] && (f = r(f, g)), d(function(d, g, h, i) {
- var j, k, l, m = [],
- n = [],
- o = g.length,
- r = d || p(b || "*", h.nodeType ? [h] : h, []),
- s = !a || !d && b ? r : q(r, m, a, h, i),
- t = c ? f || (d ? a : o || e) ? [] : g : s;
- if (c && c(s, t, h, i), e)
- for (j = q(t, n), e(j, [], h, i), k = j.length; k--;)(l = j[k]) && (t[n[k]] = !(s[n[k]] = l));
- if (d) {
- if (f || a) {
- if (f) {
- for (j = [], k = t.length; k--;)(l = t[k]) && j.push(s[k] = l);
- f(null, t = [], j, i)
- }
- for (k = t.length; k--;)(l = t[k]) && (j = f ? aa(d, l) : m[k]) > -1 && (d[j] = !(g[j] = l))
- }
- } else t = q(t === g ? t.splice(o, t.length) : t), f ? f(null, g, t, i) : $.apply(g, t)
- })
- }
- function s(a) {
- for (var b, c, d, e = a.length, f = w.relative[a[0].type], g = f || w.relative[" "], h = f ? 1 : 0, i = n(function(a) {
- return a === b
- }, g, !0), j = n(function(a) {
- return aa(b, a) > -1
- }, g, !0), k = [function(a, c, d) {
- var e = !f && (d || c !== C) || ((b = c).nodeType ? i(a, c, d) : j(a, c, d));
- return b = null, e
- }]; e > h; h++)
- if (c = w.relative[a[h].type]) k = [n(o(k), c)];
- else {
- if (c = w.filter[a[h].type].apply(null, a[h].matches), c[N]) {
- for (d = ++h; e > d && !w.relative[a[d].type]; d++);
- return r(h > 1 && o(k), h > 1 && m(a.slice(0, h - 1).concat({
- value: " " === a[h - 2].type ? "*" : ""
- })).replace(ia, "$1"), c, d > h && s(a.slice(h, d)), e > d && s(a = a.slice(d)), e > d && m(a))
- }
- k.push(c)
- }
- return o(k)
- }
- function t(a, c) {
- var e = c.length > 0,
- f = a.length > 0,
- g = function(d, g, h, i, j) {
- var k, l, m, n = 0,
- o = "0",
- p = d && [],
- r = [],
- s = C,
- t = d || f && w.find.TAG("*", j),
- u = P += null == s ? 1 : Math.random() || .1,
- v = t.length;
- for (j && (C = g !== G && g); o !== v && null != (k = t[o]); o++) {
- if (f && k) {
- for (l = 0; m = a[l++];)
- if (m(k, g, h)) {
- i.push(k);
- break
- }
- j && (P = u)
- }
- e && ((k = !m && k) && n--, d && p.push(k))
- }
- if (n += o, e && o !== n) {
- for (l = 0; m = c[l++];) m(p, r, g, h);
- if (d) {
- if (n > 0)
- for (; o--;) p[o] || r[o] || (r[o] = Y.call(i));
- r = q(r)
- }
- $.apply(i, r), j && !d && r.length > 0 && n + c.length > 1 && b.uniqueSort(i)
- }
- return j && (P = u, C = s), p
- };
- return e ? d(g) : g
- }
- var u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N = "sizzle" + 1 * new Date,
- O = a.document,
- P = 0,
- Q = 0,
- R = c(),
- S = c(),
- T = c(),
- U = function(a, b) {
- return a === b && (E = !0), 0
- },
- V = 1 << 31,
- W = {}.hasOwnProperty,
- X = [],
- Y = X.pop,
- Z = X.push,
- $ = X.push,
- _ = X.slice,
- aa = function(a, b) {
- for (var c = 0, d = a.length; d > c; c++)
- if (a[c] === b) return c;
- return -1
- },
- ba = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
- ca = "[\\x20\\t\\r\\n\\f]",
- da = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
- ea = da.replace("w", "w#"),
- fa = "\\[" + ca + "*(" + da + ")(?:" + ca + "*([*^$|!~]?=)" + ca + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + ea + "))|)" + ca + "*\\]",
- ga = ":(" + da + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + fa + ")*)|.*)\\)|)",
- ha = new RegExp(ca + "+", "g"),
- ia = new RegExp("^" + ca + "+|((?:^|[^\\\\])(?:\\\\.)*)" + ca + "+$", "g"),
- ja = new RegExp("^" + ca + "*," + ca + "*"),
- ka = new RegExp("^" + ca + "*([>+~]|" + ca + ")" + ca + "*"),
- la = new RegExp("=" + ca + "*([^\\]'\"]*?)" + ca + "*\\]", "g"),
- ma = new RegExp(ga),
- na = new RegExp("^" + ea + "$"),
- oa = {
- ID: new RegExp("^#(" + da + ")"),
- CLASS: new RegExp("^\\.(" + da + ")"),
- TAG: new RegExp("^(" + da.replace("w", "w*") + ")"),
- ATTR: new RegExp("^" + fa),
- PSEUDO: new RegExp("^" + ga),
- CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + ca + "*(even|odd|(([+-]|)(\\d*)n|)" + ca + "*(?:([+-]|)" + ca + "*(\\d+)|))" + ca + "*\\)|)", "i"),
- bool: new RegExp("^(?:" + ba + ")$", "i"),
- needsContext: new RegExp("^" + ca + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + ca + "*((?:-\\d)?\\d*)" + ca + "*\\)|)(?=[^-]|$)", "i")
- },
- pa = /^(?:input|select|textarea|button)$/i,
- qa = /^h\d$/i,
- ra = /^[^{]+\{\s*\[native \w/,
- sa = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
- ta = /[+~]/,
- ua = /'|\\/g,
- va = new RegExp("\\\\([\\da-f]{1,6}" + ca + "?|(" + ca + ")|.)", "ig"),
- wa = function(a, b, c) {
- var d = "0x" + b - 65536;
- return d !== d || c ? b : 0 > d ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320)
- },
- xa = function() {
- F()
- };
- try {
- $.apply(X = _.call(O.childNodes), O.childNodes), X[O.childNodes.length].nodeType
- } catch (ya) {
- $ = {
- apply: X.length ? function(a, b) {
- Z.apply(a, _.call(b))
- } : function(a, b) {
- for (var c = a.length, d = 0; a[c++] = b[d++];);
- a.length = c - 1
- }
- }
- }
- v = b.support = {}, y = b.isXML = function(a) {
- var b = a && (a.ownerDocument || a).documentElement;
- return b ? "HTML" !== b.nodeName : !1
- }, F = b.setDocument = function(a) {
- var b, c, d = a ? a.ownerDocument || a : O;
- return d !== G && 9 === d.nodeType && d.documentElement ? (G = d, H = d.documentElement, c = d.defaultView, c && c !== c.top && (c.addEventListener ? c.addEventListener("unload", xa, !1) : c.attachEvent && c.attachEvent("onunload", xa)), I = !y(d), v.attributes = e(function(a) {
- return a.className = "i", !a.getAttribute("className")
- }), v.getElementsByTagName = e(function(a) {
- return a.appendChild(d.createComment("")), !a.getElementsByTagName("*").length
- }), v.getElementsByClassName = ra.test(d.getElementsByClassName), v.getById = e(function(a) {
- return H.appendChild(a).id = N, !d.getElementsByName || !d.getElementsByName(N).length
- }), v.getById ? (w.find.ID = function(a, b) {
- if ("undefined" != typeof b.getElementById && I) {
- var c = b.getElementById(a);
- return c && c.parentNode ? [c] : []
- }
- }, w.filter.ID = function(a) {
- var b = a.replace(va, wa);
- return function(a) {
- return a.getAttribute("id") === b
- }
- }) : (delete w.find.ID, w.filter.ID = function(a) {
- var b = a.replace(va, wa);
- return function(a) {
- var c = "undefined" != typeof a.getAttributeNode && a.getAttributeNode("id");
- return c && c.value === b
- }
- }), w.find.TAG = v.getElementsByTagName ? function(a, b) {
- return "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName(a) : v.qsa ? b.querySelectorAll(a) : void 0
- } : function(a, b) {
- var c, d = [],
- e = 0,
- f = b.getElementsByTagName(a);
- if ("*" === a) {
- for (; c = f[e++];) 1 === c.nodeType && d.push(c);
- return d
- }
- return f
- }, w.find.CLASS = v.getElementsByClassName && function(a, b) {
- return I ? b.getElementsByClassName(a) : void 0
- }, K = [], J = [], (v.qsa = ra.test(d.querySelectorAll)) && (e(function(a) {
- H.appendChild(a).innerHTML = "<a id='" + N + "'></a><select id='" + N + "-\f]' msallowcapture=''><option selected=''></option></select>", a.querySelectorAll("[msallowcapture^='']").length && J.push("[*^$]=" + ca + "*(?:''|\"\")"), a.querySelectorAll("[selected]").length || J.push("\\[" + ca + "*(?:value|" + ba + ")"), a.querySelectorAll("[id~=" + N + "-]").length || J.push("~="), a.querySelectorAll(":checked").length || J.push(":checked"), a.querySelectorAll("a#" + N + "+*").length || J.push(".#.+[+~]")
- }), e(function(a) {
- var b = d.createElement("input");
- b.setAttribute("type", "hidden"), a.appendChild(b).setAttribute("name", "D"), a.querySelectorAll("[name=d]").length && J.push("name" + ca + "*[*^$|!~]?="), a.querySelectorAll(":enabled").length || J.push(":enabled", ":disabled"), a.querySelectorAll("*,:x"), J.push(",.*:")
- })), (v.matchesSelector = ra.test(L = H.matches || H.webkitMatchesSelector || H.mozMatchesSelector || H.oMatchesSelector || H.msMatchesSelector)) && e(function(a) {
- v.disconnectedMatch = L.call(a, "div"), L.call(a, "[s!='']:x"), K.push("!=", ga)
- }), J = J.length && new RegExp(J.join("|")), K = K.length && new RegExp(K.join("|")), b = ra.test(H.compareDocumentPosition), M = b || ra.test(H.contains) ? function(a, b) {
- var c = 9 === a.nodeType ? a.documentElement : a,
- d = b && b.parentNode;
- return a === d || !(!d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d)))
- } : function(a, b) {
- if (b)
- for (; b = b.parentNode;)
- if (b === a) return !0;
- return !1
- }, U = b ? function(a, b) {
- if (a === b) return E = !0, 0;
- var c = !a.compareDocumentPosition - !b.compareDocumentPosition;
- return c ? c : (c = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1, 1 & c || !v.sortDetached && b.compareDocumentPosition(a) === c ? a === d || a.ownerDocument === O && M(O, a) ? -1 : b === d || b.ownerDocument === O && M(O, b) ? 1 : D ? aa(D, a) - aa(D, b) : 0 : 4 & c ? -1 : 1)
- } : function(a, b) {
- if (a === b) return E = !0, 0;
- var c, e = 0,
- f = a.parentNode,
- h = b.parentNode,
- i = [a],
- j = [b];
- if (!f || !h) return a === d ? -1 : b === d ? 1 : f ? -1 : h ? 1 : D ? aa(D, a) - aa(D, b) : 0;
- if (f === h) return g(a, b);
- for (c = a; c = c.parentNode;) i.unshift(c);
- for (c = b; c = c.parentNode;) j.unshift(c);
- for (; i[e] === j[e];) e++;
- return e ? g(i[e], j[e]) : i[e] === O ? -1 : j[e] === O ? 1 : 0
- }, d) : G
- }, b.matches = function(a, c) {
- return b(a, null, null, c)
- }, b.matchesSelector = function(a, c) {
- if ((a.ownerDocument || a) !== G && F(a), c = c.replace(la, "='$1']"), v.matchesSelector && I && (!K || !K.test(c)) && (!J || !J.test(c))) try {
- var d = L.call(a, c);
- if (d || v.disconnectedMatch || a.document && 11 !== a.document.nodeType) return d
- } catch (e) {}
- return b(c, G, null, [a]).length > 0
- }, b.contains = function(a, b) {
- return (a.ownerDocument || a) !== G && F(a), M(a, b)
- }, b.attr = function(a, b) {
- (a.ownerDocument || a) !== G && F(a);
- var c = w.attrHandle[b.toLowerCase()],
- d = c && W.call(w.attrHandle, b.toLowerCase()) ? c(a, b, !I) : void 0;
- return void 0 !== d ? d : v.attributes || !I ? a.getAttribute(b) : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
- }, b.error = function(a) {
- throw new Error("Syntax error, unrecognized expression: " + a)
- }, b.uniqueSort = function(a) {
- var b, c = [],
- d = 0,
- e = 0;
- if (E = !v.detectDuplicates, D = !v.sortStable && a.slice(0), a.sort(U), E) {
- for (; b = a[e++];) b === a[e] && (d = c.push(e));
- for (; d--;) a.splice(c[d], 1)
- }
- return D = null, a
- }, x = b.getText = function(a) {
- var b, c = "",
- d = 0,
- e = a.nodeType;
- if (e) {
- if (1 === e || 9 === e || 11 === e) {
- if ("string" == typeof a.textContent) return a.textContent;
- for (a = a.firstChild; a; a = a.nextSibling) c += x(a)
- } else if (3 === e || 4 === e) return a.nodeValue
- } else
- for (; b = a[d++];) c += x(b);
- return c
- }, w = b.selectors = {
- cacheLength: 50,
- createPseudo: d,
- match: oa,
- attrHandle: {},
- find: {},
- relative: {
- ">": {
- dir: "parentNode",
- first: !0
- },
- " ": {
- dir: "parentNode"
- },
- "+": {
- dir: "previousSibling",
- first: !0
- },
- "~": {
- dir: "previousSibling"
- }
- },
- preFilter: {
- ATTR: function(a) {
- return a[1] = a[1].replace(va, wa), a[3] = (a[3] || a[4] || a[5] || "").replace(va, wa), "~=" === a[2] && (a[3] = " " + a[3] + " "), a.slice(0, 4)
- },
- CHILD: function(a) {
- return a[1] = a[1].toLowerCase(), "nth" === a[1].slice(0, 3) ? (a[3] || b.error(a[0]), a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3])), a[5] = +(a[7] + a[8] || "odd" === a[3])) : a[3] && b.error(a[0]), a
- },
- PSEUDO: function(a) {
- var b, c = !a[6] && a[2];
- return oa.CHILD.test(a[0]) ? null : (a[3] ? a[2] = a[4] || a[5] || "" : c && ma.test(c) && (b = z(c, !0)) && (b = c.indexOf(")", c.length - b) - c.length) && (a[0] = a[0].slice(0, b), a[2] = c.slice(0, b)), a.slice(0, 3))
- }
- },
- filter: {
- TAG: function(a) {
- var b = a.replace(va, wa).toLowerCase();
- return "*" === a ? function() {
- return !0
- } : function(a) {
- return a.nodeName && a.nodeName.toLowerCase() === b
- }
- },
- CLASS: function(a) {
- var b = R[a + " "];
- return b || (b = new RegExp("(^|" + ca + ")" + a + "(" + ca + "|$)")) && R(a, function(a) {
- return b.test("string" == typeof a.className && a.className || "undefined" != typeof a.getAttribute && a.getAttribute("class") || "")
- })
- },
- ATTR: function(a, c, d) {
- return function(e) {
- var f = b.attr(e, a);
- return null == f ? "!=" === c : c ? (f += "", "=" === c ? f === d : "!=" === c ? f !== d : "^=" === c ? d && 0 === f.indexOf(d) : "*=" === c ? d && f.indexOf(d) > -1 : "$=" === c ? d && f.slice(-d.length) === d : "~=" === c ? (" " + f.replace(ha, " ") + " ").indexOf(d) > -1 : "|=" === c ? f === d || f.slice(0, d.length + 1) === d + "-" : !1) : !0
- }
- },
- CHILD: function(a, b, c, d, e) {
- var f = "nth" !== a.slice(0, 3),
- g = "last" !== a.slice(-4),
- h = "of-type" === b;
- return 1 === d && 0 === e ? function(a) {
- return !!a.parentNode
- } : function(b, c, i) {
- var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling",
- q = b.parentNode,
- r = h && b.nodeName.toLowerCase(),
- s = !i && !h;
- if (q) {
- if (f) {
- for (; p;) {
- for (l = b; l = l[p];)
- if (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) return !1;
- o = p = "only" === a && !o && "nextSibling"
- }
- return !0
- }
- if (o = [g ? q.firstChild : q.lastChild], g && s) {
- for (k = q[N] || (q[N] = {}), j = k[a] || [], n = j[0] === P && j[1], m = j[0] === P && j[2], l = n && q.childNodes[n]; l = ++n && l && l[p] || (m = n = 0) || o.pop();)
- if (1 === l.nodeType && ++m && l === b) {
- k[a] = [P, n, m];
- break
- }
- } else if (s && (j = (b[N] || (b[N] = {}))[a]) && j[0] === P) m = j[1];
- else
- for (;
- (l = ++n && l && l[p] || (m = n = 0) || o.pop()) && ((h ? l.nodeName.toLowerCase() !== r : 1 !== l.nodeType) || !++m || (s && ((l[N] || (l[N] = {}))[a] = [P, m]), l !== b)););
- return m -= e, m === d || m % d === 0 && m / d >= 0
- }
- }
- },
- PSEUDO: function(a, c) {
- var e, f = w.pseudos[a] || w.setFilters[a.toLowerCase()] || b.error("unsupported pseudo: " + a);
- return f[N] ? f(c) : f.length > 1 ? (e = [a, a, "", c], w.setFilters.hasOwnProperty(a.toLowerCase()) ? d(function(a, b) {
- for (var d, e = f(a, c), g = e.length; g--;) d = aa(a, e[g]), a[d] = !(b[d] = e[g])
- }) : function(a) {
- return f(a, 0, e)
- }) : f
- }
- },
- pseudos: {
- not: d(function(a) {
- var b = [],
- c = [],
- e = A(a.replace(ia, "$1"));
- return e[N] ? d(function(a, b, c, d) {
- for (var f, g = e(a, null, d, []), h = a.length; h--;)(f = g[h]) && (a[h] = !(b[h] = f))
- }) : function(a, d, f) {
- return b[0] = a, e(b, null, f, c), b[0] = null, !c.pop()
- }
- }),
- has: d(function(a) {
- return function(c) {
- return b(a, c).length > 0
- }
- }),
- contains: d(function(a) {
- return a = a.replace(va, wa),
- function(b) {
- return (b.textContent || b.innerText || x(b)).indexOf(a) > -1
- }
- }),
- lang: d(function(a) {
- return na.test(a || "") || b.error("unsupported lang: " + a), a = a.replace(va, wa).toLowerCase(),
- function(b) {
- var c;
- do
- if (c = I ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang")) return c = c.toLowerCase(), c === a || 0 === c.indexOf(a + "-");
- while ((b = b.parentNode) && 1 === b.nodeType);
- return !1
- }
- }),
- target: function(b) {
- var c = a.location && a.location.hash;
- return c && c.slice(1) === b.id
- },
- root: function(a) {
- return a === H
- },
- focus: function(a) {
- return a === G.activeElement && (!G.hasFocus || G.hasFocus()) && !!(a.type || a.href || ~a.tabIndex)
- },
- enabled: function(a) {
- return a.disabled === !1
- },
- disabled: function(a) {
- return a.disabled === !0
- },
- checked: function(a) {
- var b = a.nodeName.toLowerCase();
- return "input" === b && !!a.checked || "option" === b && !!a.selected
- },
- selected: function(a) {
- return a.parentNode && a.parentNode.selectedIndex, a.selected === !0
- },
- empty: function(a) {
- for (a = a.firstChild; a; a = a.nextSibling)
- if (a.nodeType < 6) return !1;
- return !0
- },
- parent: function(a) {
- return !w.pseudos.empty(a)
- },
- header: function(a) {
- return qa.test(a.nodeName)
- },
- input: function(a) {
- return pa.test(a.nodeName)
- },
- button: function(a) {
- var b = a.nodeName.toLowerCase();
- return "input" === b && "button" === a.type || "button" === b
- },
- text: function(a) {
- var b;
- return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase())
- },
- first: j(function() {
- return [0]
- }),
- last: j(function(a, b) {
- return [b - 1]
- }),
- eq: j(function(a, b, c) {
- return [0 > c ? c + b : c]
- }),
- even: j(function(a, b) {
- for (var c = 0; b > c; c += 2) a.push(c);
- return a
- }),
- odd: j(function(a, b) {
- for (var c = 1; b > c; c += 2) a.push(c);
- return a
- }),
- lt: j(function(a, b, c) {
- for (var d = 0 > c ? c + b : c; --d >= 0;) a.push(d);
- return a
- }),
- gt: j(function(a, b, c) {
- for (var d = 0 > c ? c + b : c; ++d < b;) a.push(d);
- return a
- })
- }
- }, w.pseudos.nth = w.pseudos.eq;
- for (u in {
- radio: !0,
- checkbox: !0,
- file: !0,
- password: !0,
- image: !0
- }) w.pseudos[u] = h(u);
- for (u in {
- submit: !0,
- reset: !0
- }) w.pseudos[u] = i(u);
- return l.prototype = w.filters = w.pseudos, w.setFilters = new l, z = b.tokenize = function(a, c) {
- var d, e, f, g, h, i, j, k = S[a + " "];
- if (k) return c ? 0 : k.slice(0);
- for (h = a, i = [], j = w.preFilter; h;) {
- (!d || (e = ja.exec(h))) && (e && (h = h.slice(e[0].length) || h), i.push(f = [])), d = !1, (e = ka.exec(h)) && (d = e.shift(), f.push({
- value: d,
- type: e[0].replace(ia, " ")
- }), h = h.slice(d.length));
- for (g in w.filter) !(e = oa[g].exec(h)) || j[g] && !(e = j[g](e)) || (d = e.shift(), f.push({
- value: d,
- type: g,
- matches: e
- }), h = h.slice(d.length));
- if (!d) break
- }
- return c ? h.length : h ? b.error(a) : S(a, i).slice(0)
- }, A = b.compile = function(a, b) {
- var c, d = [],
- e = [],
- f = T[a + " "];
- if (!f) {
- for (b || (b = z(a)), c = b.length; c--;) f = s(b[c]), f[N] ? d.push(f) : e.push(f);
- f = T(a, t(e, d)), f.selector = a
- }
- return f
- }, B = b.select = function(a, b, c, d) {
- var e, f, g, h, i, j = "function" == typeof a && a,
- l = !d && z(a = j.selector || a);
- if (c = c || [], 1 === l.length) {
- if (f = l[0] = l[0].slice(0), f.length > 2 && "ID" === (g = f[0]).type && v.getById && 9 === b.nodeType && I && w.relative[f[1].type]) {
- if (b = (w.find.ID(g.matches[0].replace(va, wa), b) || [])[0], !b) return c;
- j && (b = b.parentNode), a = a.slice(f.shift().value.length)
- }
- for (e = oa.needsContext.test(a) ? 0 : f.length; e-- && (g = f[e], !w.relative[h = g.type]);)
- if ((i = w.find[h]) && (d = i(g.matches[0].replace(va, wa), ta.test(f[0].type) && k(b.parentNode) || b))) {
- if (f.splice(e, 1), a = d.length && m(f), !a) return $.apply(c, d), c;
- break
- }
- }
- return (j || A(a, l))(d, b, !I, c, ta.test(a) && k(b.parentNode) || b), c
- }, v.sortStable = N.split("").sort(U).join("") === N, v.detectDuplicates = !!E, F(), v.sortDetached = e(function(a) {
- return 1 & a.compareDocumentPosition(G.createElement("div"))
- }), e(function(a) {
- return a.innerHTML = "<a href='#'></a>", "#" === a.firstChild.getAttribute("href")
- }) || f("type|href|height|width", function(a, b, c) {
- return c ? void 0 : a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2)
- }), v.attributes && e(function(a) {
- return a.innerHTML = "<input/>", a.firstChild.setAttribute("value", ""), "" === a.firstChild.getAttribute("value")
- }) || f("value", function(a, b, c) {
- return c || "input" !== a.nodeName.toLowerCase() ? void 0 : a.defaultValue
- }), e(function(a) {
- return null == a.getAttribute("disabled")
- }) || f(ba, function(a, b, c) {
- var d;
- return c ? void 0 : a[b] === !0 ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
- }), b
- }(a);
- ea.find = ja, ea.expr = ja.selectors, ea.expr[":"] = ea.expr.pseudos, ea.unique = ja.uniqueSort, ea.text = ja.getText, ea.isXMLDoc = ja.isXML, ea.contains = ja.contains;
- var ka = ea.expr.match.needsContext,
- la = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
- ma = /^.[^:#\[\.,]*$/;
- ea.filter = function(a, b, c) {
- var d = b[0];
- return c && (a = ":not(" + a + ")"), 1 === b.length && 1 === d.nodeType ? ea.find.matchesSelector(d, a) ? [d] : [] : ea.find.matches(a, ea.grep(b, function(a) {
- return 1 === a.nodeType
- }))
- }, ea.fn.extend({
- find: function(a) {
- var b, c = [],
- d = this,
- e = d.length;
- if ("string" != typeof a) return this.pushStack(ea(a).filter(function() {
- for (b = 0; e > b; b++)
- if (ea.contains(d[b], this)) return !0
- }));
- for (b = 0; e > b; b++) ea.find(a, d[b], c);
- return c = this.pushStack(e > 1 ? ea.unique(c) : c), c.selector = this.selector ? this.selector + " " + a : a, c
- },
- filter: function(a) {
- return this.pushStack(d(this, a || [], !1))
- },
- not: function(a) {
- return this.pushStack(d(this, a || [], !0))
- },
- is: function(a) {
- return !!d(this, "string" == typeof a && ka.test(a) ? ea(a) : a || [], !1).length
- }
- });
- var na, oa = a.document,
- pa = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
- qa = ea.fn.init = function(a, b) {
- var c, d;
- if (!a) return this;
- if ("string" == typeof a) {
- if (c = "<" === a.charAt(0) && ">" === a.charAt(a.length - 1) && a.length >= 3 ? [null, a, null] : pa.exec(a), !c || !c[1] && b) return !b || b.jquery ? (b || na).find(a) : this.constructor(b).find(a);
- if (c[1]) {
- if (b = b instanceof ea ? b[0] : b, ea.merge(this, ea.parseHTML(c[1], b && b.nodeType ? b.ownerDocument || b : oa, !0)), la.test(c[1]) && ea.isPlainObject(b))
- for (c in b) ea.isFunction(this[c]) ? this[c](b[c]) : this.attr(c, b[c]);
- return this
- }
- if (d = oa.getElementById(c[2]), d && d.parentNode) {
- if (d.id !== c[2]) return na.find(a);
- this.length = 1, this[0] = d
- }
- return this.context = oa, this.selector = a, this
- }
- return a.nodeType ? (this.context = this[0] = a, this.length = 1, this) : ea.isFunction(a) ? "undefined" != typeof na.ready ? na.ready(a) : a(ea) : (void 0 !== a.selector && (this.selector = a.selector, this.context = a.context), ea.makeArray(a, this))
- };
- qa.prototype = ea.fn, na = ea(oa);
- var ra = /^(?:parents|prev(?:Until|All))/,
- sa = {
- children: !0,
- contents: !0,
- next: !0,
- prev: !0
- };
- ea.extend({
- dir: function(a, b, c) {
- for (var d = [], e = a[b]; e && 9 !== e.nodeType && (void 0 === c || 1 !== e.nodeType || !ea(e).is(c));) 1 === e.nodeType && d.push(e), e = e[b];
- return d
- },
- sibling: function(a, b) {
- for (var c = []; a; a = a.nextSibling) 1 === a.nodeType && a !== b && c.push(a);
- return c
- }
- }), ea.fn.extend({
- has: function(a) {
- var b, c = ea(a, this),
- d = c.length;
- return this.filter(function() {
- for (b = 0; d > b; b++)
- if (ea.contains(this, c[b])) return !0
- })
- },
- closest: function(a, b) {
- for (var c, d = 0, e = this.length, f = [], g = ka.test(a) || "string" != typeof a ? ea(a, b || this.context) : 0; e > d; d++)
- for (c = this[d]; c && c !== b; c = c.parentNode)
- if (c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && ea.find.matchesSelector(c, a))) {
- f.push(c);
- break
- }
- return this.pushStack(f.length > 1 ? ea.unique(f) : f)
- },
- index: function(a) {
- return a ? "string" == typeof a ? ea.inArray(this[0], ea(a)) : ea.inArray(a.jquery ? a[0] : a, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
- },
- add: function(a, b) {
- return this.pushStack(ea.unique(ea.merge(this.get(), ea(a, b))))
- },
- addBack: function(a) {
- return this.add(null == a ? this.prevObject : this.prevObject.filter(a))
- }
- }), ea.each({
- parent: function(a) {
- var b = a.parentNode;
- return b && 11 !== b.nodeType ? b : null
- },
- parents: function(a) {
- return ea.dir(a, "parentNode")
- },
- parentsUntil: function(a, b, c) {
- return ea.dir(a, "parentNode", c)
- },
- next: function(a) {
- return e(a, "nextSibling")
- },
- prev: function(a) {
- return e(a, "previousSibling")
- },
- nextAll: function(a) {
- return ea.dir(a, "nextSibling")
- },
- prevAll: function(a) {
- return ea.dir(a, "previousSibling")
- },
- nextUntil: function(a, b, c) {
- return ea.dir(a, "nextSibling", c)
- },
- prevUntil: function(a, b, c) {
- return ea.dir(a, "previousSibling", c)
- },
- siblings: function(a) {
- return ea.sibling((a.parentNode || {}).firstChild, a)
- },
- children: function(a) {
- return ea.sibling(a.firstChild)
- },
- contents: function(a) {
- return ea.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : ea.merge([], a.childNodes)
- }
- }, function(a, b) {
- ea.fn[a] = function(c, d) {
- var e = ea.map(this, b, c);
- return "Until" !== a.slice(-5) && (d = c), d && "string" == typeof d && (e = ea.filter(d, e)), this.length > 1 && (sa[a] || (e = ea.unique(e)), ra.test(a) && (e = e.reverse())), this.pushStack(e)
- }
- });
- var ta = /\S+/g,
- ua = {};
- ea.Callbacks = function(a) {
- a = "string" == typeof a ? ua[a] || f(a) : ea.extend({}, a);
- var b, c, d, e, g, h, i = [],
- j = !a.once && [],
- k = function(f) {
- for (c = a.memory && f, d = !0, g = h || 0, h = 0, e = i.length, b = !0; i && e > g; g++)
- if (i[g].apply(f[0], f[1]) === !1 && a.stopOnFalse) {
- c = !1;
- break
- }
- b = !1, i && (j ? j.length && k(j.shift()) : c ? i = [] : l.disable())
- },
- l = {
- add: function() {
- if (i) {
- var d = i.length;
- ! function f(b) {
- ea.each(b, function(b, c) {
- var d = ea.type(c);
- "function" === d ? a.unique && l.has(c) || i.push(c) : c && c.length && "string" !== d && f(c)
- })
- }(arguments), b ? e = i.length : c && (h = d, k(c))
- }
- return this
- },
- remove: function() {
- return i && ea.each(arguments, function(a, c) {
- for (var d;
- (d = ea.inArray(c, i, d)) > -1;) i.splice(d, 1), b && (e >= d && e--, g >= d && g--)
- }), this
- },
- has: function(a) {
- return a ? ea.inArray(a, i) > -1 : !(!i || !i.length)
- },
- empty: function() {
- return i = [], e = 0, this
- },
- disable: function() {
- return i = j = c = void 0, this
- },
- disabled: function() {
- return !i
- },
- lock: function() {
- return j = void 0, c || l.disable(), this
- },
- locked: function() {
- return !j
- },
- fireWith: function(a, c) {
- return !i || d && !j || (c = c || [], c = [a, c.slice ? c.slice() : c], b ? j.push(c) : k(c)), this
- },
- fire: function() {
- return l.fireWith(this, arguments), this
- },
- fired: function() {
- return !!d
- }
- };
- return l
- }, ea.extend({
- Deferred: function(a) {
- var b = [
- ["resolve", "done", ea.Callbacks("once memory"), "resolved"],
- ["reject", "fail", ea.Callbacks("once memory"), "rejected"],
- ["notify", "progress", ea.Callbacks("memory")]
- ],
- c = "pending",
- d = {
- state: function() {
- return c
- },
- always: function() {
- return e.done(arguments).fail(arguments), this
- },
- then: function() {
- var a = arguments;
- return ea.Deferred(function(c) {
- ea.each(b, function(b, f) {
- var g = ea.isFunction(a[b]) && a[b];
- e[f[1]](function() {
- var a = g && g.apply(this, arguments);
- a && ea.isFunction(a.promise) ? a.promise().done(c.resolve).fail(c.reject).progress(c.notify) : c[f[0] + "With"](this === d ? c.promise() : this, g ? [a] : arguments)
- })
- }), a = null
- }).promise()
- },
- promise: function(a) {
- return null != a ? ea.extend(a, d) : d
- }
- },
- e = {};
- return d.pipe = d.then, ea.each(b, function(a, f) {
- var g = f[2],
- h = f[3];
- d[f[1]] = g.add, h && g.add(function() {
- c = h
- }, b[1 ^ a][2].disable, b[2][2].lock), e[f[0]] = function() {
- return e[f[0] + "With"](this === e ? d : this, arguments), this
- }, e[f[0] + "With"] = g.fireWith
- }), d.promise(e), a && a.call(e, e), e
- },
- when: function(a) {
- var b, c, d, e = 0,
- f = X.call(arguments),
- g = f.length,
- h = 1 !== g || a && ea.isFunction(a.promise) ? g : 0,
- i = 1 === h ? a : ea.Deferred(),
- j = function(a, c, d) {
- return function(e) {
- c[a] = this, d[a] = arguments.length > 1 ? X.call(arguments) : e, d === b ? i.notifyWith(c, d) : --h || i.resolveWith(c, d)
- }
- };
- if (g > 1)
- for (b = new Array(g), c = new Array(g), d = new Array(g); g > e; e++) f[e] && ea.isFunction(f[e].promise) ? f[e].promise().done(j(e, d, f)).fail(i.reject).progress(j(e, c, b)) : --h;
- return h || i.resolveWith(d, f), i.promise()
- }
- });
- var va;
- ea.fn.ready = function(a) {
- return ea.ready.promise().done(a), this
- }, ea.extend({
- isReady: !1,
- readyWait: 1,
- holdReady: function(a) {
- a ? ea.readyWait++ : ea.ready(!0)
- },
- ready: function(a) {
- if (a === !0 ? !--ea.readyWait : !ea.isReady) {
- if (!oa.body) return setTimeout(ea.ready);
- ea.isReady = !0, a !== !0 && --ea.readyWait > 0 || (va.resolveWith(oa, [ea]), ea.fn.triggerHandler && (ea(oa).triggerHandler("ready"), ea(oa).off("ready")))
- }
- }
- }), ea.ready.promise = function(b) {
- if (!va)
- if (va = ea.Deferred(), "complete" === oa.readyState) setTimeout(ea.ready);
- else if (oa.addEventListener) oa.addEventListener("DOMContentLoaded", h, !1), a.addEventListener("load", h, !1);
- else {
- oa.attachEvent("onreadystatechange", h), a.attachEvent("onload", h);
- var c = !1;
- try {
- c = null == a.frameElement && oa.documentElement
- } catch (d) {}
- c && c.doScroll && ! function e() {
- if (!ea.isReady) {
- try {
- c.doScroll("left")
- } catch (a) {
- return setTimeout(e, 50)
- }
- g(), ea.ready()
- }
- }()
- }
- return va.promise(b)
- };
- var wa, xa = "undefined";
- for (wa in ea(ca)) break;
- ca.ownLast = "0" !== wa, ca.inlineBlockNeedsLayout = !1, ea(function() {
- var a, b, c, d;
- c = oa.getElementsByTagName("body")[0], c && c.style && (b = oa.createElement("div"), d = oa.createElement("div"), d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", c.appendChild(d).appendChild(b), typeof b.style.zoom !== xa && (b.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1", ca.inlineBlockNeedsLayout = a = 3 === b.offsetWidth, a && (c.style.zoom = 1)), c.removeChild(d))
- }),
- function() {
- var a = oa.createElement("div");
- if (null == ca.deleteExpando) {
- ca.deleteExpando = !0;
- try {
- delete a.test
- } catch (b) {
- ca.deleteExpando = !1
- }
- }
- a = null
- }(), ea.acceptData = function(a) {
- var b = ea.noData[(a.nodeName + " ").toLowerCase()],
- c = +a.nodeType || 1;
- return 1 !== c && 9 !== c ? !1 : !b || b !== !0 && a.getAttribute("classid") === b
- };
- var ya = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- za = /([A-Z])/g;
- ea.extend({
- cache: {},
- noData: {
- "applet ": !0,
- "embed ": !0,
- "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
- },
- hasData: function(a) {
- return a = a.nodeType ? ea.cache[a[ea.expando]] : a[ea.expando], !!a && !j(a)
- },
- data: function(a, b, c) {
- return k(a, b, c)
- },
- removeData: function(a, b) {
- return l(a, b)
- },
- _data: function(a, b, c) {
- return k(a, b, c, !0)
- },
- _removeData: function(a, b) {
- return l(a, b, !0)
- }
- }), ea.fn.extend({
- data: function(a, b) {
- var c, d, e, f = this[0],
- g = f && f.attributes;
- if (void 0 === a) {
- if (this.length && (e = ea.data(f), 1 === f.nodeType && !ea._data(f, "parsedAttrs"))) {
- for (c = g.length; c--;) g[c] && (d = g[c].name, 0 === d.indexOf("data-") && (d = ea.camelCase(d.slice(5)), i(f, d, e[d])));
- ea._data(f, "parsedAttrs", !0)
- }
- return e
- }
- return "object" == typeof a ? this.each(function() {
- ea.data(this, a)
- }) : arguments.length > 1 ? this.each(function() {
- ea.data(this, a, b)
- }) : f ? i(f, a, ea.data(f, a)) : void 0
- },
- removeData: function(a) {
- return this.each(function() {
- ea.removeData(this, a)
- })
- }
- }), ea.extend({
- queue: function(a, b, c) {
- var d;
- return a ? (b = (b || "fx") + "queue", d = ea._data(a, b), c && (!d || ea.isArray(c) ? d = ea._data(a, b, ea.makeArray(c)) : d.push(c)), d || []) : void 0
- },
- dequeue: function(a, b) {
- b = b || "fx";
- var c = ea.queue(a, b),
- d = c.length,
- e = c.shift(),
- f = ea._queueHooks(a, b),
- g = function() {
- ea.dequeue(a, b)
- };
- "inprogress" === e && (e = c.shift(), d--), e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire()
- },
- _queueHooks: function(a, b) {
- var c = b + "queueHooks";
- return ea._data(a, c) || ea._data(a, c, {
- empty: ea.Callbacks("once memory").add(function() {
- ea._removeData(a, b + "queue"), ea._removeData(a, c)
- })
- })
- }
- }), ea.fn.extend({
- queue: function(a, b) {
- var c = 2;
- return "string" != typeof a && (b = a, a = "fx", c--), arguments.length < c ? ea.queue(this[0], a) : void 0 === b ? this : this.each(function() {
- var c = ea.queue(this, a, b);
- ea._queueHooks(this, a), "fx" === a && "inprogress" !== c[0] && ea.dequeue(this, a)
- })
- },
- dequeue: function(a) {
- return this.each(function() {
- ea.dequeue(this, a)
- })
- },
- clearQueue: function(a) {
- return this.queue(a || "fx", [])
- },
- promise: function(a, b) {
- var c, d = 1,
- e = ea.Deferred(),
- f = this,
- g = this.length,
- h = function() {
- --d || e.resolveWith(f, [f])
- };
- for ("string" != typeof a && (b = a, a = void 0), a = a || "fx"; g--;) c = ea._data(f[g], a + "queueHooks"), c && c.empty && (d++, c.empty.add(h));
- return h(), e.promise(b)
- }
- });
- var Aa = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
- Ba = ["Top", "Right", "Bottom", "Left"],
- Ca = function(a, b) {
- return a = b || a, "none" === ea.css(a, "display") || !ea.contains(a.ownerDocument, a)
- },
- Da = ea.access = function(a, b, c, d, e, f, g) {
- var h = 0,
- i = a.length,
- j = null == c;
- if ("object" === ea.type(c)) {
- e = !0;
- for (h in c) ea.access(a, b, h, c[h], !0, f, g)
- } else if (void 0 !== d && (e = !0, ea.isFunction(d) || (g = !0), j && (g ? (b.call(a, d), b = null) : (j = b, b = function(a, b, c) {
- return j.call(ea(a), c)
- })), b))
- for (; i > h; h++) b(a[h], c, g ? d : d.call(a[h], h, b(a[h], c)));
- return e ? a : j ? b.call(a) : i ? b(a[0], c) : f
- },
- Ea = /^(?:checkbox|radio)$/i;
- ! function() {
- var a = oa.createElement("input"),
- b = oa.createElement("div"),
- c = oa.createDocumentFragment();
- if (b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", ca.leadingWhitespace = 3 === b.firstChild.nodeType, ca.tbody = !b.getElementsByTagName("tbody").length, ca.htmlSerialize = !!b.getElementsByTagName("link").length, ca.html5Clone = "<:nav></:nav>" !== oa.createElement("nav").cloneNode(!0).outerHTML, a.type = "checkbox", a.checked = !0, c.appendChild(a), ca.appendChecked = a.checked, b.innerHTML = "<textarea>x</textarea>", ca.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue, c.appendChild(b), b.innerHTML = "<input type='radio' checked='checked' name='t'/>", ca.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked, ca.noCloneEvent = !0, b.attachEvent && (b.attachEvent("onclick", function() {
- ca.noCloneEvent = !1
- }), b.cloneNode(!0).click()), null == ca.deleteExpando) {
- ca.deleteExpando = !0;
- try {
- delete b.test
- } catch (d) {
- ca.deleteExpando = !1
- }
- }
- }(),
- function() {
- var b, c, d = oa.createElement("div");
- for (b in {
- submit: !0,
- change: !0,
- focusin: !0
- }) c = "on" + b, (ca[b + "Bubbles"] = c in a) || (d.setAttribute(c, "t"), ca[b + "Bubbles"] = d.attributes[c].expando === !1);
- d = null
- }();
- var Fa = /^(?:input|select|textarea)$/i,
- Ga = /^key/,
- Ha = /^(?:mouse|pointer|contextmenu)|click/,
- Ia = /^(?:focusinfocus|focusoutblur)$/,
- Ja = /^([^.]*)(?:\.(.+)|)$/;
- ea.event = {
- global: {},
- add: function(a, b, c, d, e) {
- var f, g, h, i, j, k, l, m, n, o, p, q = ea._data(a);
- if (q) {
- for (c.handler && (i = c, c = i.handler, e = i.selector), c.guid || (c.guid = ea.guid++), (g = q.events) || (g = q.events = {}), (k = q.handle) || (k = q.handle = function(a) {
- return typeof ea === xa || a && ea.event.triggered === a.type ? void 0 : ea.event.dispatch.apply(k.elem, arguments)
- }, k.elem = a), b = (b || "").match(ta) || [""], h = b.length; h--;) f = Ja.exec(b[h]) || [], n = p = f[1], o = (f[2] || "").split(".").sort(), n && (j = ea.event.special[n] || {}, n = (e ? j.delegateType : j.bindType) || n, j = ea.event.special[n] || {}, l = ea.extend({
- type: n,
- origType: p,
- data: d,
- handler: c,
- guid: c.guid,
- selector: e,
- needsContext: e && ea.expr.match.needsContext.test(e),
- namespace: o.join(".")
- }, i), (m = g[n]) || (m = g[n] = [], m.delegateCount = 0, j.setup && j.setup.call(a, d, o, k) !== !1 || (a.addEventListener ? a.addEventListener(n, k, !1) : a.attachEvent && a.attachEvent("on" + n, k))), j.add && (j.add.call(a, l), l.handler.guid || (l.handler.guid = c.guid)), e ? m.splice(m.delegateCount++, 0, l) : m.push(l), ea.event.global[n] = !0);
- a = null
- }
- },
- remove: function(a, b, c, d, e) {
- var f, g, h, i, j, k, l, m, n, o, p, q = ea.hasData(a) && ea._data(a);
- if (q && (k = q.events)) {
- for (b = (b || "").match(ta) || [""], j = b.length; j--;)
- if (h = Ja.exec(b[j]) || [], n = p = h[1], o = (h[2] || "").split(".").sort(), n) {
- for (l = ea.event.special[n] || {}, n = (d ? l.delegateType : l.bindType) || n, m = k[n] || [], h = h[2] && new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)"), i = f = m.length; f--;) g = m[f], !e && p !== g.origType || c && c.guid !== g.guid || h && !h.test(g.namespace) || d && d !== g.selector && ("**" !== d || !g.selector) || (m.splice(f, 1), g.selector && m.delegateCount--, l.remove && l.remove.call(a, g));
- i && !m.length && (l.teardown && l.teardown.call(a, o, q.handle) !== !1 || ea.removeEvent(a, n, q.handle), delete k[n])
- } else
- for (n in k) ea.event.remove(a, n + b[j], c, d, !0);
- ea.isEmptyObject(k) && (delete q.handle, ea._removeData(a, "events"))
- }
- },
- trigger: function(b, c, d, e) {
- var f, g, h, i, j, k, l, m = [d || oa],
- n = ba.call(b, "type") ? b.type : b,
- o = ba.call(b, "namespace") ? b.namespace.split(".") : [];
- if (h = k = d = d || oa, 3 !== d.nodeType && 8 !== d.nodeType && !Ia.test(n + ea.event.triggered) && (n.indexOf(".") >= 0 && (o = n.split("."), n = o.shift(), o.sort()), g = n.indexOf(":") < 0 && "on" + n, b = b[ea.expando] ? b : new ea.Event(n, "object" == typeof b && b), b.isTrigger = e ? 2 : 3, b.namespace = o.join("."), b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, b.result = void 0, b.target || (b.target = d), c = null == c ? [b] : ea.makeArray(c, [b]), j = ea.event.special[n] || {}, e || !j.trigger || j.trigger.apply(d, c) !== !1)) {
- if (!e && !j.noBubble && !ea.isWindow(d)) {
- for (i = j.delegateType || n, Ia.test(i + n) || (h = h.parentNode); h; h = h.parentNode) m.push(h), k = h;
- k === (d.ownerDocument || oa) && m.push(k.defaultView || k.parentWindow || a)
- }
- for (l = 0;
- (h = m[l++]) && !b.isPropagationStopped();) b.type = l > 1 ? i : j.bindType || n, f = (ea._data(h, "events") || {})[b.type] && ea._data(h, "handle"), f && f.apply(h, c), f = g && h[g], f && f.apply && ea.acceptData(h) && (b.result = f.apply(h, c), b.result === !1 && b.preventDefault());
- if (b.type = n, !e && !b.isDefaultPrevented() && (!j._default || j._default.apply(m.pop(), c) === !1) && ea.acceptData(d) && g && d[n] && !ea.isWindow(d)) {
- k = d[g], k && (d[g] = null), ea.event.triggered = n;
- try {
- d[n]()
- } catch (p) {}
- ea.event.triggered = void 0, k && (d[g] = k)
- }
- return b.result
- }
- },
- dispatch: function(a) {
- a = ea.event.fix(a);
- var b, c, d, e, f, g = [],
- h = X.call(arguments),
- i = (ea._data(this, "events") || {})[a.type] || [],
- j = ea.event.special[a.type] || {};
- if (h[0] = a, a.delegateTarget = this, !j.preDispatch || j.preDispatch.call(this, a) !== !1) {
- for (g = ea.event.handlers.call(this, a, i), b = 0;
- (e = g[b++]) && !a.isPropagationStopped();)
- for (a.currentTarget = e.elem, f = 0;
- (d = e.handlers[f++]) && !a.isImmediatePropagationStopped();)(!a.namespace_re || a.namespace_re.test(d.namespace)) && (a.handleObj = d, a.data = d.data, c = ((ea.event.special[d.origType] || {}).handle || d.handler).apply(e.elem, h), void 0 !== c && (a.result = c) === !1 && (a.preventDefault(), a.stopPropagation()));
- return j.postDispatch && j.postDispatch.call(this, a), a.result
- }
- },
- handlers: function(a, b) {
- var c, d, e, f, g = [],
- h = b.delegateCount,
- i = a.target;
- if (h && i.nodeType && (!a.button || "click" !== a.type))
- for (; i != this; i = i.parentNode || this)
- if (1 === i.nodeType && (i.disabled !== !0 || "click" !== a.type)) {
- for (e = [], f = 0; h > f; f++) d = b[f], c = d.selector + " ", void 0 === e[c] && (e[c] = d.needsContext ? ea(c, this).index(i) >= 0 : ea.find(c, this, null, [i]).length), e[c] && e.push(d);
- e.length && g.push({
- elem: i,
- handlers: e
- })
- }
- return h < b.length && g.push({
- elem: this,
- handlers: b.slice(h)
- }), g
- },
- fix: function(a) {
- if (a[ea.expando]) return a;
- var b, c, d, e = a.type,
- f = a,
- g = this.fixHooks[e];
- for (g || (this.fixHooks[e] = g = Ha.test(e) ? this.mouseHooks : Ga.test(e) ? this.keyHooks : {}), d = g.props ? this.props.concat(g.props) : this.props, a = new ea.Event(f), b = d.length; b--;) c = d[b], a[c] = f[c];
- return a.target || (a.target = f.srcElement || oa), 3 === a.target.nodeType && (a.target = a.target.parentNode), a.metaKey = !!a.metaKey, g.filter ? g.filter(a, f) : a
- },
- 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(a, b) {
- return null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode), a
- }
- },
- mouseHooks: {
- props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
- filter: function(a, b) {
- var c, d, e, f = b.button,
- g = b.fromElement;
- return null == a.pageX && null != b.clientX && (d = a.target.ownerDocument || oa, e = d.documentElement, c = d.body, a.pageX = b.clientX + (e && e.scrollLeft || c && c.scrollLeft || 0) - (e && e.clientLeft || c && c.clientLeft || 0), a.pageY = b.clientY + (e && e.scrollTop || c && c.scrollTop || 0) - (e && e.clientTop || c && c.clientTop || 0)), !a.relatedTarget && g && (a.relatedTarget = g === a.target ? b.toElement : g), a.which || void 0 === f || (a.which = 1 & f ? 1 : 2 & f ? 3 : 4 & f ? 2 : 0), a
- }
- },
- special: {
- load: {
- noBubble: !0
- },
- focus: {
- trigger: function() {
- if (this !== o() && this.focus) try {
- return this.focus(), !1
- } catch (a) {}
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- return this === o() && this.blur ? (this.blur(), !1) : void 0
- },
- delegateType: "focusout"
- },
- click: {
- trigger: function() {
- return ea.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : void 0
- },
- _default: function(a) {
- return ea.nodeName(a.target, "a")
- }
- },
- beforeunload: {
- postDispatch: function(a) {
- void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result)
- }
- }
- },
- simulate: function(a, b, c, d) {
- var e = ea.extend(new ea.Event, c, {
- type: a,
- isSimulated: !0,
- originalEvent: {}
- });
- d ? ea.event.trigger(e, null, b) : ea.event.dispatch.call(b, e), e.isDefaultPrevented() && c.preventDefault()
- }
- }, ea.removeEvent = oa.removeEventListener ? function(a, b, c) {
- a.removeEventListener && a.removeEventListener(b, c, !1)
- } : function(a, b, c) {
- var d = "on" + b;
- a.detachEvent && (typeof a[d] === xa && (a[d] = null), a.detachEvent(d, c))
- }, ea.Event = function(a, b) {
- return this instanceof ea.Event ? (a && a.type ? (this.originalEvent = a, this.type = a.type, this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && a.returnValue === !1 ? m : n) : this.type = a, b && ea.extend(this, b), this.timeStamp = a && a.timeStamp || ea.now(), void(this[ea.expando] = !0)) : new ea.Event(a, b)
- }, ea.Event.prototype = {
- isDefaultPrevented: n,
- isPropagationStopped: n,
- isImmediatePropagationStopped: n,
- preventDefault: function() {
- var a = this.originalEvent;
- this.isDefaultPrevented = m, a && (a.preventDefault ? a.preventDefault() : a.returnValue = !1)
- },
- stopPropagation: function() {
- var a = this.originalEvent;
- this.isPropagationStopped = m, a && (a.stopPropagation && a.stopPropagation(), a.cancelBubble = !0)
- },
- stopImmediatePropagation: function() {
- var a = this.originalEvent;
- this.isImmediatePropagationStopped = m, a && a.stopImmediatePropagation && a.stopImmediatePropagation(), this.stopPropagation()
- }
- }, ea.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
- }, function(a, b) {
- ea.event.special[a] = {
- delegateType: b,
- bindType: b,
- handle: function(a) {
- var c, d = this,
- e = a.relatedTarget,
- f = a.handleObj;
- return (!e || e !== d && !ea.contains(d, e)) && (a.type = f.origType, c = f.handler.apply(this, arguments), a.type = b), c
- }
- }
- }), ca.submitBubbles || (ea.event.special.submit = {
- setup: function() {
- return ea.nodeName(this, "form") ? !1 : void ea.event.add(this, "click._submit keypress._submit", function(a) {
- var b = a.target,
- c = ea.nodeName(b, "input") || ea.nodeName(b, "button") ? b.form : void 0;
- c && !ea._data(c, "submitBubbles") && (ea.event.add(c, "submit._submit", function(a) {
- a._submit_bubble = !0
- }), ea._data(c, "submitBubbles", !0))
- })
- },
- postDispatch: function(a) {
- a._submit_bubble && (delete a._submit_bubble, this.parentNode && !a.isTrigger && ea.event.simulate("submit", this.parentNode, a, !0))
- },
- teardown: function() {
- return ea.nodeName(this, "form") ? !1 : void ea.event.remove(this, "._submit")
- }
- }), ca.changeBubbles || (ea.event.special.change = {
- setup: function() {
- return Fa.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (ea.event.add(this, "propertychange._change", function(a) {
- "checked" === a.originalEvent.propertyName && (this._just_changed = !0)
- }), ea.event.add(this, "click._change", function(a) {
- this._just_changed && !a.isTrigger && (this._just_changed = !1), ea.event.simulate("change", this, a, !0)
- })), !1) : void ea.event.add(this, "beforeactivate._change", function(a) {
- var b = a.target;
- Fa.test(b.nodeName) && !ea._data(b, "changeBubbles") && (ea.event.add(b, "change._change", function(a) {
- !this.parentNode || a.isSimulated || a.isTrigger || ea.event.simulate("change", this.parentNode, a, !0)
- }), ea._data(b, "changeBubbles", !0))
- })
- },
- handle: function(a) {
- var b = a.target;
- return this !== b || a.isSimulated || a.isTrigger || "radio" !== b.type && "checkbox" !== b.type ? a.handleObj.handler.apply(this, arguments) : void 0
- },
- teardown: function() {
- return ea.event.remove(this, "._change"), !Fa.test(this.nodeName)
- }
- }), ca.focusinBubbles || ea.each({
- focus: "focusin",
- blur: "focusout"
- }, function(a, b) {
- var c = function(a) {
- ea.event.simulate(b, a.target, ea.event.fix(a), !0)
- };
- ea.event.special[b] = {
- setup: function() {
- var d = this.ownerDocument || this,
- e = ea._data(d, b);
- e || d.addEventListener(a, c, !0), ea._data(d, b, (e || 0) + 1)
- },
- teardown: function() {
- var d = this.ownerDocument || this,
- e = ea._data(d, b) - 1;
- e ? ea._data(d, b, e) : (d.removeEventListener(a, c, !0), ea._removeData(d, b))
- }
- }
- }), ea.fn.extend({
- on: function(a, b, c, d, e) {
- var f, g;
- if ("object" == typeof a) {
- "string" != typeof b && (c = c || b, b = void 0);
- for (f in a) this.on(f, b, c, a[f], e);
- return this
- }
- if (null == c && null == d ? (d = b, c = b = void 0) : null == d && ("string" == typeof b ? (d = c, c = void 0) : (d = c, c = b, b = void 0)), d === !1) d = n;
- else if (!d) return this;
- return 1 === e && (g = d, d = function(a) {
- return ea().off(a), g.apply(this, arguments)
- }, d.guid = g.guid || (g.guid = ea.guid++)), this.each(function() {
- ea.event.add(this, a, d, c, b)
- })
- },
- one: function(a, b, c, d) {
- return this.on(a, b, c, d, 1)
- },
- off: function(a, b, c) {
- var d, e;
- if (a && a.preventDefault && a.handleObj) return d = a.handleObj, ea(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler), this;
- if ("object" == typeof a) {
- for (e in a) this.off(e, b, a[e]);
- return this
- }
- return (b === !1 || "function" == typeof b) && (c = b, b = void 0), c === !1 && (c = n), this.each(function() {
- ea.event.remove(this, a, c, b)
- })
- },
- trigger: function(a, b) {
- return this.each(function() {
- ea.event.trigger(a, b, this)
- })
- },
- triggerHandler: function(a, b) {
- var c = this[0];
- return c ? ea.event.trigger(a, b, c, !0) : void 0
- }
- });
- var Ka = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
- La = / jQuery\d+="(?:null|\d+)"/g,
- Ma = new RegExp("<(?:" + Ka + ")[\\s/>]", "i"),
- Na = /^\s+/,
- Oa = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
- Pa = /<([\w:]+)/,
- Qa = /<tbody/i,
- Ra = /<|&#?\w+;/,
- Sa = /<(?:script|style|link)/i,
- Ta = /checked\s*(?:[^=]|=\s*.checked.)/i,
- Ua = /^$|\/(?:java|ecma)script/i,
- Va = /^true\/(.*)/,
- Wa = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
- Xa = {
- 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: ca.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
- },
- Ya = p(oa),
- Za = Ya.appendChild(oa.createElement("div"));
- Xa.optgroup = Xa.option, Xa.tbody = Xa.tfoot = Xa.colgroup = Xa.caption = Xa.thead, Xa.th = Xa.td, ea.extend({
- clone: function(a, b, c) {
- var d, e, f, g, h, i = ea.contains(a.ownerDocument, a);
- if (ca.html5Clone || ea.isXMLDoc(a) || !Ma.test("<" + a.nodeName + ">") ? f = a.cloneNode(!0) : (Za.innerHTML = a.outerHTML, Za.removeChild(f = Za.firstChild)), !(ca.noCloneEvent && ca.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || ea.isXMLDoc(a)))
- for (d = q(f), h = q(a), g = 0; null != (e = h[g]); ++g) d[g] && x(e, d[g]);
- if (b)
- if (c)
- for (h = h || q(a), d = d || q(f), g = 0; null != (e = h[g]); g++) w(e, d[g]);
- else w(a, f);
- return d = q(f, "script"), d.length > 0 && v(d, !i && q(a, "script")), d = h = e = null, f
- },
- buildFragment: function(a, b, c, d) {
- for (var e, f, g, h, i, j, k, l = a.length, m = p(b), n = [], o = 0; l > o; o++)
- if (f = a[o], f || 0 === f)
- if ("object" === ea.type(f)) ea.merge(n, f.nodeType ? [f] : f);
- else if (Ra.test(f)) {
- for (h = h || m.appendChild(b.createElement("div")), i = (Pa.exec(f) || ["", ""])[1].toLowerCase(), k = Xa[i] || Xa._default, h.innerHTML = k[1] + f.replace(Oa, "<$1></$2>") + k[2], e = k[0]; e--;) h = h.lastChild;
- if (!ca.leadingWhitespace && Na.test(f) && n.push(b.createTextNode(Na.exec(f)[0])), !ca.tbody)
- for (f = "table" !== i || Qa.test(f) ? "<table>" !== k[1] || Qa.test(f) ? 0 : h : h.firstChild, e = f && f.childNodes.length; e--;) ea.nodeName(j = f.childNodes[e], "tbody") && !j.childNodes.length && f.removeChild(j);
- for (ea.merge(n, h.childNodes), h.textContent = ""; h.firstChild;) h.removeChild(h.firstChild);
- h = m.lastChild
- } else n.push(b.createTextNode(f));
- for (h && m.removeChild(h), ca.appendChecked || ea.grep(q(n, "input"), r), o = 0; f = n[o++];)
- if ((!d || -1 === ea.inArray(f, d)) && (g = ea.contains(f.ownerDocument, f), h = q(m.appendChild(f), "script"), g && v(h), c))
- for (e = 0; f = h[e++];) Ua.test(f.type || "") && c.push(f);
- return h = null, m
- },
- cleanData: function(a, b) {
- for (var c, d, e, f, g = 0, h = ea.expando, i = ea.cache, j = ca.deleteExpando, k = ea.event.special; null != (c = a[g]); g++)
- if ((b || ea.acceptData(c)) && (e = c[h], f = e && i[e])) {
- if (f.events)
- for (d in f.events) k[d] ? ea.event.remove(c, d) : ea.removeEvent(c, d, f.handle);
- i[e] && (delete i[e], j ? delete c[h] : typeof c.removeAttribute !== xa ? c.removeAttribute(h) : c[h] = null, W.push(e))
- }
- }
- }), ea.fn.extend({
- text: function(a) {
- return Da(this, function(a) {
- return void 0 === a ? ea.text(this) : this.empty().append((this[0] && this[0].ownerDocument || oa).createTextNode(a))
- }, null, a, arguments.length)
- },
- append: function() {
- return this.domManip(arguments, function(a) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var b = s(this, a);
- b.appendChild(a)
- }
- })
- },
- prepend: function() {
- return this.domManip(arguments, function(a) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var b = s(this, a);
- b.insertBefore(a, b.firstChild)
- }
- })
- },
- before: function() {
- return this.domManip(arguments, function(a) {
- this.parentNode && this.parentNode.insertBefore(a, this)
- })
- },
- after: function() {
- return this.domManip(arguments, function(a) {
- this.parentNode && this.parentNode.insertBefore(a, this.nextSibling)
- })
- },
- remove: function(a, b) {
- for (var c, d = a ? ea.filter(a, this) : this, e = 0; null != (c = d[e]); e++) b || 1 !== c.nodeType || ea.cleanData(q(c)), c.parentNode && (b && ea.contains(c.ownerDocument, c) && v(q(c, "script")), c.parentNode.removeChild(c));
- return this
- },
- empty: function() {
- for (var a, b = 0; null != (a = this[b]); b++) {
- for (1 === a.nodeType && ea.cleanData(q(a, !1)); a.firstChild;) a.removeChild(a.firstChild);
- a.options && ea.nodeName(a, "select") && (a.options.length = 0)
- }
- return this
- },
- clone: function(a, b) {
- return a = null == a ? !1 : a, b = null == b ? a : b, this.map(function() {
- return ea.clone(this, a, b)
- })
- },
- html: function(a) {
- return Da(this, function(a) {
- var b = this[0] || {},
- c = 0,
- d = this.length;
- if (void 0 === a) return 1 === b.nodeType ? b.innerHTML.replace(La, "") : void 0;
- if ("string" == typeof a && !Sa.test(a) && (ca.htmlSerialize || !Ma.test(a)) && (ca.leadingWhitespace || !Na.test(a)) && !Xa[(Pa.exec(a) || ["", ""])[1].toLowerCase()]) {
- a = a.replace(Oa, "<$1></$2>");
- try {
- for (; d > c; c++) b = this[c] || {}, 1 === b.nodeType && (ea.cleanData(q(b, !1)), b.innerHTML = a);
- b = 0
- } catch (e) {}
- }
- b && this.empty().append(a)
- }, null, a, arguments.length)
- },
- replaceWith: function() {
- var a = arguments[0];
- return this.domManip(arguments, function(b) {
- a = this.parentNode, ea.cleanData(q(this)), a && a.replaceChild(b, this)
- }), a && (a.length || a.nodeType) ? this : this.remove()
- },
- detach: function(a) {
- return this.remove(a, !0)
- },
- domManip: function(a, b) {
- a = Y.apply([], a);
- var c, d, e, f, g, h, i = 0,
- j = this.length,
- k = this,
- l = j - 1,
- m = a[0],
- n = ea.isFunction(m);
- if (n || j > 1 && "string" == typeof m && !ca.checkClone && Ta.test(m)) return this.each(function(c) {
- var d = k.eq(c);
- n && (a[0] = m.call(this, c, d.html())), d.domManip(a, b)
- });
- if (j && (h = ea.buildFragment(a, this[0].ownerDocument, !1, this), c = h.firstChild, 1 === h.childNodes.length && (h = c), c)) {
- for (f = ea.map(q(h, "script"), t), e = f.length; j > i; i++) d = h, i !== l && (d = ea.clone(d, !0, !0), e && ea.merge(f, q(d, "script"))), b.call(this[i], d, i);
- if (e)
- for (g = f[f.length - 1].ownerDocument, ea.map(f, u), i = 0; e > i; i++) d = f[i], Ua.test(d.type || "") && !ea._data(d, "globalEval") && ea.contains(g, d) && (d.src ? ea._evalUrl && ea._evalUrl(d.src) : ea.globalEval((d.text || d.textContent || d.innerHTML || "").replace(Wa, "")));
- h = c = null
- }
- return this
- }
- }), ea.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
- }, function(a, b) {
- ea.fn[a] = function(a) {
- for (var c, d = 0, e = [], f = ea(a), g = f.length - 1; g >= d; d++) c = d === g ? this : this.clone(!0), ea(f[d])[b](c), Z.apply(e, c.get());
- return this.pushStack(e)
- }
- });
- var $a, _a = {};
- ! function() {
- var a;
- ca.shrinkWrapBlocks = function() {
- if (null != a) return a;
- a = !1;
- var b, c, d;
- return c = oa.getElementsByTagName("body")[0], c && c.style ? (b = oa.createElement("div"), d = oa.createElement("div"), d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", c.appendChild(d).appendChild(b), typeof b.style.zoom !== xa && (b.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1", b.appendChild(oa.createElement("div")).style.width = "5px", a = 3 !== b.offsetWidth), c.removeChild(d), a) : void 0
- }
- }();
- var ab, bb, cb = /^margin/,
- db = new RegExp("^(" + Aa + ")(?!px)[a-z%]+$", "i"),
- eb = /^(top|right|bottom|left)$/;
- a.getComputedStyle ? (ab = function(b) {
- return b.ownerDocument.defaultView.opener ? b.ownerDocument.defaultView.getComputedStyle(b, null) : a.getComputedStyle(b, null)
- }, bb = function(a, b, c) {
- var d, e, f, g, h = a.style;
- return c = c || ab(a), g = c ? c.getPropertyValue(b) || c[b] : void 0, c && ("" !== g || ea.contains(a.ownerDocument, a) || (g = ea.style(a, b)), db.test(g) && cb.test(b) && (d = h.width, e = h.minWidth, f = h.maxWidth, h.minWidth = h.maxWidth = h.width = g, g = c.width, h.width = d, h.minWidth = e, h.maxWidth = f)), void 0 === g ? g : g + ""
- }) : oa.documentElement.currentStyle && (ab = function(a) {
- return a.currentStyle
- }, bb = function(a, b, c) {
- var d, e, f, g, h = a.style;
- return c = c || ab(a), g = c ? c[b] : void 0, null == g && h && h[b] && (g = h[b]), db.test(g) && !eb.test(b) && (d = h.left, e = a.runtimeStyle, f = e && e.left, f && (e.left = a.currentStyle.left), h.left = "fontSize" === b ? "1em" : g, g = h.pixelLeft + "px", h.left = d, f && (e.left = f)), void 0 === g ? g : g + "" || "auto"
- }),
- function() {
- function b() {
- var b, c, d, e;
- c = oa.getElementsByTagName("body")[0], c && c.style && (b = oa.createElement("div"), d = oa.createElement("div"), d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", c.appendChild(d).appendChild(b), b.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute", f = g = !1, i = !0, a.getComputedStyle && (f = "1%" !== (a.getComputedStyle(b, null) || {}).top, g = "4px" === (a.getComputedStyle(b, null) || {
- width: "4px"
- }).width, e = b.appendChild(oa.createElement("div")), e.style.cssText = b.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", e.style.marginRight = e.style.width = "0", b.style.width = "1px", i = !parseFloat((a.getComputedStyle(e, null) || {}).marginRight), b.removeChild(e)), b.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", e = b.getElementsByTagName("td"), e[0].style.cssText = "margin:0;border:0;padding:0;display:none", h = 0 === e[0].offsetHeight, h && (e[0].style.display = "", e[1].style.display = "none", h = 0 === e[0].offsetHeight), c.removeChild(d))
- }
- var c, d, e, f, g, h, i;
- c = oa.createElement("div"), c.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", e = c.getElementsByTagName("a")[0], d = e && e.style, d && (d.cssText = "float:left;opacity:.5", ca.opacity = "0.5" === d.opacity, ca.cssFloat = !!d.cssFloat, c.style.backgroundClip = "content-box", c.cloneNode(!0).style.backgroundClip = "", ca.clearCloneStyle = "content-box" === c.style.backgroundClip, ca.boxSizing = "" === d.boxSizing || "" === d.MozBoxSizing || "" === d.WebkitBoxSizing, ea.extend(ca, {
- reliableHiddenOffsets: function() {
- return null == h && b(), h
- },
- boxSizingReliable: function() {
- return null == g && b(), g
- },
- pixelPosition: function() {
- return null == f && b(), f
- },
- reliableMarginRight: function() {
- return null == i && b(), i
- }
- }))
- }(), ea.swap = function(a, b, c, d) {
- var e, f, g = {};
- for (f in b) g[f] = a.style[f], a.style[f] = b[f];
- e = c.apply(a, d || []);
- for (f in b) a.style[f] = g[f];
- return e
- };
- var fb = /alpha\([^)]*\)/i,
- gb = /opacity\s*=\s*([^)]*)/,
- hb = /^(none|table(?!-c[ea]).+)/,
- ib = new RegExp("^(" + Aa + ")(.*)$", "i"),
- jb = new RegExp("^([+-])=(" + Aa + ")", "i"),
- kb = {
- position: "absolute",
- visibility: "hidden",
- display: "block"
- },
- lb = {
- letterSpacing: "0",
- fontWeight: "400"
- },
- mb = ["Webkit", "O", "Moz", "ms"];
- ea.extend({
- cssHooks: {
- opacity: {
- get: function(a, b) {
- if (b) {
- var c = bb(a, "opacity");
- return "" === c ? "1" : c
- }
- }
- }
- },
- cssNumber: {
- columnCount: !0,
- fillOpacity: !0,
- flexGrow: !0,
- flexShrink: !0,
- fontWeight: !0,
- lineHeight: !0,
- opacity: !0,
- order: !0,
- orphans: !0,
- widows: !0,
- zIndex: !0,
- zoom: !0
- },
- cssProps: {
- "float": ca.cssFloat ? "cssFloat" : "styleFloat"
- },
- style: function(a, b, c, d) {
- if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) {
- var e, f, g, h = ea.camelCase(b),
- i = a.style;
- if (b = ea.cssProps[h] || (ea.cssProps[h] = B(i, h)), g = ea.cssHooks[b] || ea.cssHooks[h], void 0 === c) return g && "get" in g && void 0 !== (e = g.get(a, !1, d)) ? e : i[b];
- if (f = typeof c, "string" === f && (e = jb.exec(c)) && (c = (e[1] + 1) * e[2] + parseFloat(ea.css(a, b)), f = "number"), null != c && c === c && ("number" !== f || ea.cssNumber[h] || (c += "px"), ca.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (i[b] = "inherit"), !(g && "set" in g && void 0 === (c = g.set(a, c, d))))) try {
- i[b] = c
- } catch (j) {}
- }
- },
- css: function(a, b, c, d) {
- var e, f, g, h = ea.camelCase(b);
- return b = ea.cssProps[h] || (ea.cssProps[h] = B(a.style, h)), g = ea.cssHooks[b] || ea.cssHooks[h], g && "get" in g && (f = g.get(a, !0, c)), void 0 === f && (f = bb(a, b, d)), "normal" === f && b in lb && (f = lb[b]), "" === c || c ? (e = parseFloat(f), c === !0 || ea.isNumeric(e) ? e || 0 : f) : f
- }
- }), ea.each(["height", "width"], function(a, b) {
- ea.cssHooks[b] = {
- get: function(a, c, d) {
- return c ? hb.test(ea.css(a, "display")) && 0 === a.offsetWidth ? ea.swap(a, kb, function() {
- return F(a, b, d)
- }) : F(a, b, d) : void 0
- },
- set: function(a, c, d) {
- var e = d && ab(a);
- return D(a, c, d ? E(a, b, d, ca.boxSizing && "border-box" === ea.css(a, "boxSizing", !1, e), e) : 0)
- }
- }
- }), ca.opacity || (ea.cssHooks.opacity = {
- get: function(a, b) {
- return gb.test((b && a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : b ? "1" : ""
- },
- set: function(a, b) {
- var c = a.style,
- d = a.currentStyle,
- e = ea.isNumeric(b) ? "alpha(opacity=" + 100 * b + ")" : "",
- f = d && d.filter || c.filter || "";
- c.zoom = 1, (b >= 1 || "" === b) && "" === ea.trim(f.replace(fb, "")) && c.removeAttribute && (c.removeAttribute("filter"), "" === b || d && !d.filter) || (c.filter = fb.test(f) ? f.replace(fb, e) : f + " " + e)
- }
- }), ea.cssHooks.marginRight = A(ca.reliableMarginRight, function(a, b) {
- return b ? ea.swap(a, {
- display: "inline-block"
- }, bb, [a, "marginRight"]) : void 0
- }), ea.each({
- margin: "",
- padding: "",
- border: "Width"
- }, function(a, b) {
- ea.cssHooks[a + b] = {
- expand: function(c) {
- for (var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; 4 > d; d++) e[a + Ba[d] + b] = f[d] || f[d - 2] || f[0];
- return e
- }
- }, cb.test(a) || (ea.cssHooks[a + b].set = D)
- }), ea.fn.extend({
- css: function(a, b) {
- return Da(this, function(a, b, c) {
- var d, e, f = {},
- g = 0;
- if (ea.isArray(b)) {
- for (d = ab(a), e = b.length; e > g; g++) f[b[g]] = ea.css(a, b[g], !1, d);
- return f
- }
- return void 0 !== c ? ea.style(a, b, c) : ea.css(a, b)
- }, a, b, arguments.length > 1)
- },
- show: function() {
- return C(this, !0)
- },
- hide: function() {
- return C(this)
- },
- toggle: function(a) {
- return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function() {
- Ca(this) ? ea(this).show() : ea(this).hide()
- })
- }
- }), ea.Tween = G, G.prototype = {
- constructor: G,
- init: function(a, b, c, d, e, f) {
- this.elem = a, this.prop = c, this.easing = e || "swing", this.options = b, this.start = this.now = this.cur(), this.end = d, this.unit = f || (ea.cssNumber[c] ? "" : "px")
- },
- cur: function() {
- var a = G.propHooks[this.prop];
- return a && a.get ? a.get(this) : G.propHooks._default.get(this)
- },
- run: function(a) {
- var b, c = G.propHooks[this.prop];
- return this.options.duration ? this.pos = b = ea.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration) : this.pos = b = a, this.now = (this.end - this.start) * b + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), c && c.set ? c.set(this) : G.propHooks._default.set(this), this
- }
- }, G.prototype.init.prototype = G.prototype, G.propHooks = {
- _default: {
- get: function(a) {
- var b;
- return null == a.elem[a.prop] || a.elem.style && null != a.elem.style[a.prop] ? (b = ea.css(a.elem, a.prop, ""), b && "auto" !== b ? b : 0) : a.elem[a.prop]
- },
- set: function(a) {
- ea.fx.step[a.prop] ? ea.fx.step[a.prop](a) : a.elem.style && (null != a.elem.style[ea.cssProps[a.prop]] || ea.cssHooks[a.prop]) ? ea.style(a.elem, a.prop, a.now + a.unit) : a.elem[a.prop] = a.now
- }
- }
- }, G.propHooks.scrollTop = G.propHooks.scrollLeft = {
- set: function(a) {
- a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now)
- }
- }, ea.easing = {
- linear: function(a) {
- return a
- },
- swing: function(a) {
- return .5 - Math.cos(a * Math.PI) / 2
- }
- }, ea.fx = G.prototype.init, ea.fx.step = {};
- var nb, ob, pb = /^(?:toggle|show|hide)$/,
- qb = new RegExp("^(?:([+-])=|)(" + Aa + ")([a-z%]*)$", "i"),
- rb = /queueHooks$/,
- sb = [K],
- tb = {
- "*": [function(a, b) {
- var c = this.createTween(a, b),
- d = c.cur(),
- e = qb.exec(b),
- f = e && e[3] || (ea.cssNumber[a] ? "" : "px"),
- g = (ea.cssNumber[a] || "px" !== f && +d) && qb.exec(ea.css(c.elem, a)),
- h = 1,
- i = 20;
- if (g && g[3] !== f) {
- f = f || g[3], e = e || [], g = +d || 1;
- do h = h || ".5", g /= h, ea.style(c.elem, a, g + f); while (h !== (h = c.cur() / d) && 1 !== h && --i)
- }
- return e && (g = c.start = +g || +d || 0, c.unit = f, c.end = e[1] ? g + (e[1] + 1) * e[2] : +e[2]), c
- }]
- };
- ea.Animation = ea.extend(M, {
- tweener: function(a, b) {
- ea.isFunction(a) ? (b = a, a = ["*"]) : a = a.split(" ");
- for (var c, d = 0, e = a.length; e > d; d++) c = a[d], tb[c] = tb[c] || [], tb[c].unshift(b)
- },
- prefilter: function(a, b) {
- b ? sb.unshift(a) : sb.push(a)
- }
- }), ea.speed = function(a, b, c) {
- var d = a && "object" == typeof a ? ea.extend({}, a) : {
- complete: c || !c && b || ea.isFunction(a) && a,
- duration: a,
- easing: c && b || b && !ea.isFunction(b) && b
- };
- return d.duration = ea.fx.off ? 0 : "number" == typeof d.duration ? d.duration : d.duration in ea.fx.speeds ? ea.fx.speeds[d.duration] : ea.fx.speeds._default, (null == d.queue || d.queue === !0) && (d.queue = "fx"), d.old = d.complete, d.complete = function() {
- ea.isFunction(d.old) && d.old.call(this), d.queue && ea.dequeue(this, d.queue)
- }, d
- }, ea.fn.extend({
- fadeTo: function(a, b, c, d) {
- return this.filter(Ca).css("opacity", 0).show().end().animate({
- opacity: b
- }, a, c, d)
- },
- animate: function(a, b, c, d) {
- var e = ea.isEmptyObject(a),
- f = ea.speed(b, c, d),
- g = function() {
- var b = M(this, ea.extend({}, a), f);
- (e || ea._data(this, "finish")) && b.stop(!0)
- };
- return g.finish = g, e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g)
- },
- stop: function(a, b, c) {
- var d = function(a) {
- var b = a.stop;
- delete a.stop, b(c)
- };
- return "string" != typeof a && (c = b, b = a, a = void 0), b && a !== !1 && this.queue(a || "fx", []), this.each(function() {
- var b = !0,
- e = null != a && a + "queueHooks",
- f = ea.timers,
- g = ea._data(this);
- if (e) g[e] && g[e].stop && d(g[e]);
- else
- for (e in g) g[e] && g[e].stop && rb.test(e) && d(g[e]);
- for (e = f.length; e--;) f[e].elem !== this || null != a && f[e].queue !== a || (f[e].anim.stop(c), b = !1, f.splice(e, 1));
- (b || !c) && ea.dequeue(this, a)
- })
- },
- finish: function(a) {
- return a !== !1 && (a = a || "fx"), this.each(function() {
- var b, c = ea._data(this),
- d = c[a + "queue"],
- e = c[a + "queueHooks"],
- f = ea.timers,
- g = d ? d.length : 0;
- for (c.finish = !0, ea.queue(this, a, []), e && e.stop && e.stop.call(this, !0), b = f.length; b--;) f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0), f.splice(b, 1));
- for (b = 0; g > b; b++) d[b] && d[b].finish && d[b].finish.call(this);
- delete c.finish
- })
- }
- }), ea.each(["toggle", "show", "hide"], function(a, b) {
- var c = ea.fn[b];
- ea.fn[b] = function(a, d, e) {
- return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(I(b, !0), a, d, e)
- }
- }), ea.each({
- slideDown: I("show"),
- slideUp: I("hide"),
- slideToggle: I("toggle"),
- fadeIn: {
- opacity: "show"
- },
- fadeOut: {
- opacity: "hide"
- },
- fadeToggle: {
- opacity: "toggle"
- }
- }, function(a, b) {
- ea.fn[a] = function(a, c, d) {
- return this.animate(b, a, c, d)
- }
- }), ea.timers = [], ea.fx.tick = function() {
- var a, b = ea.timers,
- c = 0;
- for (nb = ea.now(); c < b.length; c++) a = b[c], a() || b[c] !== a || b.splice(c--, 1);
- b.length || ea.fx.stop(), nb = void 0
- }, ea.fx.timer = function(a) {
- ea.timers.push(a), a() ? ea.fx.start() : ea.timers.pop()
- }, ea.fx.interval = 13, ea.fx.start = function() {
- ob || (ob = setInterval(ea.fx.tick, ea.fx.interval))
- }, ea.fx.stop = function() {
- clearInterval(ob), ob = null
- }, ea.fx.speeds = {
- slow: 600,
- fast: 200,
- _default: 400
- }, ea.fn.delay = function(a, b) {
- return a = ea.fx ? ea.fx.speeds[a] || a : a, b = b || "fx", this.queue(b, function(b, c) {
- var d = setTimeout(b, a);
- c.stop = function() {
- clearTimeout(d)
- }
- })
- },
- function() {
- var a, b, c, d, e;
- b = oa.createElement("div"), b.setAttribute("className", "t"), b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", d = b.getElementsByTagName("a")[0], c = oa.createElement("select"), e = c.appendChild(oa.createElement("option")), a = b.getElementsByTagName("input")[0], d.style.cssText = "top:1px", ca.getSetAttribute = "t" !== b.className, ca.style = /top/.test(d.getAttribute("style")), ca.hrefNormalized = "/a" === d.getAttribute("href"), ca.checkOn = !!a.value, ca.optSelected = e.selected, ca.enctype = !!oa.createElement("form").enctype, c.disabled = !0, ca.optDisabled = !e.disabled, a = oa.createElement("input"), a.setAttribute("value", ""), ca.input = "" === a.getAttribute("value"), a.value = "t", a.setAttribute("type", "radio"), ca.radioValue = "t" === a.value
- }();
- var ub = /\r/g;
- ea.fn.extend({
- val: function(a) {
- var b, c, d, e = this[0]; {
- if (arguments.length) return d = ea.isFunction(a), this.each(function(c) {
- var e;
- 1 === this.nodeType && (e = d ? a.call(this, c, ea(this).val()) : a, null == e ? e = "" : "number" == typeof e ? e += "" : ea.isArray(e) && (e = ea.map(e, function(a) {
- return null == a ? "" : a + ""
- })), b = ea.valHooks[this.type] || ea.valHooks[this.nodeName.toLowerCase()], b && "set" in b && void 0 !== b.set(this, e, "value") || (this.value = e))
- });
- if (e) return b = ea.valHooks[e.type] || ea.valHooks[e.nodeName.toLowerCase()], b && "get" in b && void 0 !== (c = b.get(e, "value")) ? c : (c = e.value, "string" == typeof c ? c.replace(ub, "") : null == c ? "" : c)
- }
- }
- }), ea.extend({
- valHooks: {
- option: {
- get: function(a) {
- var b = ea.find.attr(a, "value");
- return null != b ? b : ea.trim(ea.text(a))
- }
- },
- select: {
- get: function(a) {
- for (var b, c, d = a.options, e = a.selectedIndex, f = "select-one" === a.type || 0 > e, g = f ? null : [], h = f ? e + 1 : d.length, i = 0 > e ? h : f ? e : 0; h > i; i++)
- if (c = d[i], (c.selected || i === e) && (ca.optDisabled ? !c.disabled : null === c.getAttribute("disabled")) && (!c.parentNode.disabled || !ea.nodeName(c.parentNode, "optgroup"))) {
- if (b = ea(c).val(), f) return b;
- g.push(b)
- }
- return g
- },
- set: function(a, b) {
- for (var c, d, e = a.options, f = ea.makeArray(b), g = e.length; g--;)
- if (d = e[g], ea.inArray(ea.valHooks.option.get(d), f) >= 0) try {
- d.selected = c = !0
- } catch (h) {
- d.scrollHeight
- } else d.selected = !1;
- return c || (a.selectedIndex = -1), e
- }
- }
- }
- }), ea.each(["radio", "checkbox"], function() {
- ea.valHooks[this] = {
- set: function(a, b) {
- return ea.isArray(b) ? a.checked = ea.inArray(ea(a).val(), b) >= 0 : void 0
- }
- }, ca.checkOn || (ea.valHooks[this].get = function(a) {
- return null === a.getAttribute("value") ? "on" : a.value
- })
- });
- var vb, wb, xb = ea.expr.attrHandle,
- yb = /^(?:checked|selected)$/i,
- zb = ca.getSetAttribute,
- Ab = ca.input;
- ea.fn.extend({
- attr: function(a, b) {
- return Da(this, ea.attr, a, b, arguments.length > 1)
- },
- removeAttr: function(a) {
- return this.each(function() {
- ea.removeAttr(this, a)
- })
- }
- }), ea.extend({
- attr: function(a, b, c) {
- var d, e, f = a.nodeType;
- if (a && 3 !== f && 8 !== f && 2 !== f) return typeof a.getAttribute === xa ? ea.prop(a, b, c) : (1 === f && ea.isXMLDoc(a) || (b = b.toLowerCase(), d = ea.attrHooks[b] || (ea.expr.match.bool.test(b) ? wb : vb)), void 0 === c ? d && "get" in d && null !== (e = d.get(a, b)) ? e : (e = ea.find.attr(a, b), null == e ? void 0 : e) : null !== c ? d && "set" in d && void 0 !== (e = d.set(a, c, b)) ? e : (a.setAttribute(b, c + ""), c) : void ea.removeAttr(a, b))
- },
- removeAttr: function(a, b) {
- var c, d, e = 0,
- f = b && b.match(ta);
- if (f && 1 === a.nodeType)
- for (; c = f[e++];) d = ea.propFix[c] || c, ea.expr.match.bool.test(c) ? Ab && zb || !yb.test(c) ? a[d] = !1 : a[ea.camelCase("default-" + c)] = a[d] = !1 : ea.attr(a, c, ""), a.removeAttribute(zb ? c : d)
- },
- attrHooks: {
- type: {
- set: function(a, b) {
- if (!ca.radioValue && "radio" === b && ea.nodeName(a, "input")) {
- var c = a.value;
- return a.setAttribute("type", b), c && (a.value = c), b
- }
- }
- }
- }
- }), wb = {
- set: function(a, b, c) {
- return b === !1 ? ea.removeAttr(a, c) : Ab && zb || !yb.test(c) ? a.setAttribute(!zb && ea.propFix[c] || c, c) : a[ea.camelCase("default-" + c)] = a[c] = !0, c
- }
- }, ea.each(ea.expr.match.bool.source.match(/\w+/g), function(a, b) {
- var c = xb[b] || ea.find.attr;
- xb[b] = Ab && zb || !yb.test(b) ? function(a, b, d) {
- var e, f;
- return d || (f = xb[b], xb[b] = e, e = null != c(a, b, d) ? b.toLowerCase() : null, xb[b] = f), e
- } : function(a, b, c) {
- return c ? void 0 : a[ea.camelCase("default-" + b)] ? b.toLowerCase() : null
- }
- }), Ab && zb || (ea.attrHooks.value = {
- set: function(a, b, c) {
- return ea.nodeName(a, "input") ? void(a.defaultValue = b) : vb && vb.set(a, b, c)
- }
- }), zb || (vb = {
- set: function(a, b, c) {
- var d = a.getAttributeNode(c);
- return d || a.setAttributeNode(d = a.ownerDocument.createAttribute(c)), d.value = b += "", "value" === c || b === a.getAttribute(c) ? b : void 0
- }
- }, xb.id = xb.name = xb.coords = function(a, b, c) {
- var d;
- return c ? void 0 : (d = a.getAttributeNode(b)) && "" !== d.value ? d.value : null
- }, ea.valHooks.button = {
- get: function(a, b) {
- var c = a.getAttributeNode(b);
- return c && c.specified ? c.value : void 0
- },
- set: vb.set
- }, ea.attrHooks.contenteditable = {
- set: function(a, b, c) {
- vb.set(a, "" === b ? !1 : b, c)
- }
- }, ea.each(["width", "height"], function(a, b) {
- ea.attrHooks[b] = {
- set: function(a, c) {
- return "" === c ? (a.setAttribute(b, "auto"), c) : void 0
- }
- }
- })), ca.style || (ea.attrHooks.style = {
- get: function(a) {
- return a.style.cssText || void 0
- },
- set: function(a, b) {
- return a.style.cssText = b + ""
- }
- });
- var Bb = /^(?:input|select|textarea|button|object)$/i,
- Cb = /^(?:a|area)$/i;
- ea.fn.extend({
- prop: function(a, b) {
- return Da(this, ea.prop, a, b, arguments.length > 1)
- },
- removeProp: function(a) {
- return a = ea.propFix[a] || a, this.each(function() {
- try {
- this[a] = void 0, delete this[a]
- } catch (b) {}
- })
- }
- }), ea.extend({
- propFix: {
- "for": "htmlFor",
- "class": "className"
- },
- prop: function(a, b, c) {
- var d, e, f, g = a.nodeType;
- if (a && 3 !== g && 8 !== g && 2 !== g) return f = 1 !== g || !ea.isXMLDoc(a), f && (b = ea.propFix[b] || b, e = ea.propHooks[b]), void 0 !== c ? e && "set" in e && void 0 !== (d = e.set(a, c, b)) ? d : a[b] = c : e && "get" in e && null !== (d = e.get(a, b)) ? d : a[b]
- },
- propHooks: {
- tabIndex: {
- get: function(a) {
- var b = ea.find.attr(a, "tabindex");
- return b ? parseInt(b, 10) : Bb.test(a.nodeName) || Cb.test(a.nodeName) && a.href ? 0 : -1
- }
- }
- }
- }), ca.hrefNormalized || ea.each(["href", "src"], function(a, b) {
- ea.propHooks[b] = {
- get: function(a) {
- return a.getAttribute(b, 4)
- }
- }
- }), ca.optSelected || (ea.propHooks.selected = {
- get: function(a) {
- var b = a.parentNode;
- return b && (b.selectedIndex, b.parentNode && b.parentNode.selectedIndex), null
- }
- }), ea.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
- ea.propFix[this.toLowerCase()] = this
- }), ca.enctype || (ea.propFix.enctype = "encoding");
- var Db = /[\t\r\n\f]/g;
- ea.fn.extend({
- addClass: function(a) {
- var b, c, d, e, f, g, h = 0,
- i = this.length,
- j = "string" == typeof a && a;
- if (ea.isFunction(a)) return this.each(function(b) {
- ea(this).addClass(a.call(this, b, this.className))
- });
- if (j)
- for (b = (a || "").match(ta) || []; i > h; h++)
- if (c = this[h], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(Db, " ") : " ")) {
- for (f = 0; e = b[f++];) d.indexOf(" " + e + " ") < 0 && (d += e + " ");
- g = ea.trim(d), c.className !== g && (c.className = g)
- }
- return this
- },
- removeClass: function(a) {
- var b, c, d, e, f, g, h = 0,
- i = this.length,
- j = 0 === arguments.length || "string" == typeof a && a;
- if (ea.isFunction(a)) return this.each(function(b) {
- ea(this).removeClass(a.call(this, b, this.className))
- });
- if (j)
- for (b = (a || "").match(ta) || []; i > h; h++)
- if (c = this[h], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(Db, " ") : "")) {
- for (f = 0; e = b[f++];)
- for (; d.indexOf(" " + e + " ") >= 0;) d = d.replace(" " + e + " ", " ");
- g = a ? ea.trim(d) : "", c.className !== g && (c.className = g)
- }
- return this
- },
- toggleClass: function(a, b) {
- var c = typeof a;
- return "boolean" == typeof b && "string" === c ? b ? this.addClass(a) : this.removeClass(a) : ea.isFunction(a) ? this.each(function(c) {
- ea(this).toggleClass(a.call(this, c, this.className, b), b)
- }) : this.each(function() {
- if ("string" === c)
- for (var b, d = 0, e = ea(this), f = a.match(ta) || []; b = f[d++];) e.hasClass(b) ? e.removeClass(b) : e.addClass(b);
- else(c === xa || "boolean" === c) && (this.className && ea._data(this, "__className__", this.className), this.className = this.className || a === !1 ? "" : ea._data(this, "__className__") || "")
- })
- },
- hasClass: function(a) {
- for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++)
- if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(Db, " ").indexOf(b) >= 0) return !0;
- return !1
- }
- }), ea.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(a, b) {
- ea.fn[b] = function(a, c) {
- return arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b)
- }
- }), ea.fn.extend({
- hover: function(a, b) {
- return this.mouseenter(a).mouseleave(b || a)
- },
- bind: function(a, b, c) {
- return this.on(a, null, b, c)
- },
- unbind: function(a, b) {
- return this.off(a, null, b)
- },
- delegate: function(a, b, c, d) {
- return this.on(b, a, c, d)
- },
- undelegate: function(a, b, c) {
- return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c)
- }
- });
- var Eb = ea.now(),
- Fb = /\?/,
- Gb = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
- ea.parseJSON = function(b) {
- if (a.JSON && a.JSON.parse) return a.JSON.parse(b + "");
- var c, d = null,
- e = ea.trim(b + "");
- return e && !ea.trim(e.replace(Gb, function(a, b, e, f) {
- return c && b && (d = 0), 0 === d ? a : (c = e || b, d += !f - !e, "")
- })) ? Function("return " + e)() : ea.error("Invalid JSON: " + b)
- }, ea.parseXML = function(b) {
- var c, d;
- if (!b || "string" != typeof b) return null;
- try {
- a.DOMParser ? (d = new DOMParser, c = d.parseFromString(b, "text/xml")) : (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(b))
- } catch (e) {
- c = void 0
- }
- return c && c.documentElement && !c.getElementsByTagName("parsererror").length || ea.error("Invalid XML: " + b), c
- };
- var Hb, Ib, Jb = /#.*$/,
- Kb = /([?&])_=[^&]*/,
- Lb = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,
- Mb = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- Nb = /^(?:GET|HEAD)$/,
- Ob = /^\/\//,
- Pb = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
- Qb = {},
- Rb = {},
- Sb = "*/".concat("*");
- try {
- Ib = location.href
- } catch (Tb) {
- Ib = oa.createElement("a"), Ib.href = "", Ib = Ib.href
- }
- Hb = Pb.exec(Ib.toLowerCase()) || [], ea.extend({
- active: 0,
- lastModified: {},
- etag: {},
- ajaxSettings: {
- url: Ib,
- type: "GET",
- isLocal: Mb.test(Hb[1]),
- global: !0,
- processData: !0,
- async: !0,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- accepts: {
- "*": Sb,
- 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": ea.parseJSON,
- "text xml": ea.parseXML
- },
- flatOptions: {
- url: !0,
- context: !0
- }
- },
- ajaxSetup: function(a, b) {
- return b ? P(P(a, ea.ajaxSettings), b) : P(ea.ajaxSettings, a)
- },
- ajaxPrefilter: N(Qb),
- ajaxTransport: N(Rb),
- ajax: function(a, b) {
- function c(a, b, c, d) {
- var e, k, r, s, u, w = b;
- 2 !== t && (t = 2, h && clearTimeout(h), j = void 0, g = d || "", v.readyState = a > 0 ? 4 : 0, e = a >= 200 && 300 > a || 304 === a, c && (s = Q(l, v, c)), s = R(l, s, v, e), e ? (l.ifModified && (u = v.getResponseHeader("Last-Modified"), u && (ea.lastModified[f] = u), u = v.getResponseHeader("etag"), u && (ea.etag[f] = u)), 204 === a || "HEAD" === l.type ? w = "nocontent" : 304 === a ? w = "notmodified" : (w = s.state, k = s.data, r = s.error, e = !r)) : (r = w, (a || !w) && (w = "error", 0 > a && (a = 0))), v.status = a, v.statusText = (b || w) + "", e ? o.resolveWith(m, [k, w, v]) : o.rejectWith(m, [v, w, r]), v.statusCode(q), q = void 0, i && n.trigger(e ? "ajaxSuccess" : "ajaxError", [v, l, e ? k : r]), p.fireWith(m, [v, w]), i && (n.trigger("ajaxComplete", [v, l]), --ea.active || ea.event.trigger("ajaxStop")))
- }
- "object" == typeof a && (b = a, a = void 0), b = b || {};
- var d, e, f, g, h, i, j, k, l = ea.ajaxSetup({}, b),
- m = l.context || l,
- n = l.context && (m.nodeType || m.jquery) ? ea(m) : ea.event,
- o = ea.Deferred(),
- p = ea.Callbacks("once memory"),
- q = l.statusCode || {},
- r = {},
- s = {},
- t = 0,
- u = "canceled",
- v = {
- readyState: 0,
- getResponseHeader: function(a) {
- var b;
- if (2 === t) {
- if (!k)
- for (k = {}; b = Lb.exec(g);) k[b[1].toLowerCase()] = b[2];
- b = k[a.toLowerCase()]
- }
- return null == b ? null : b
- },
- getAllResponseHeaders: function() {
- return 2 === t ? g : null
- },
- setRequestHeader: function(a, b) {
- var c = a.toLowerCase();
- return t || (a = s[c] = s[c] || a, r[a] = b), this
- },
- overrideMimeType: function(a) {
- return t || (l.mimeType = a), this
- },
- statusCode: function(a) {
- var b;
- if (a)
- if (2 > t)
- for (b in a) q[b] = [q[b], a[b]];
- else v.always(a[v.status]);
- return this
- },
- abort: function(a) {
- var b = a || u;
- return j && j.abort(b), c(0, b), this
- }
- };
- if (o.promise(v).complete = p.add, v.success = v.done, v.error = v.fail, l.url = ((a || l.url || Ib) + "").replace(Jb, "").replace(Ob, Hb[1] + "//"), l.type = b.method || b.type || l.method || l.type, l.dataTypes = ea.trim(l.dataType || "*").toLowerCase().match(ta) || [""], null == l.crossDomain && (d = Pb.exec(l.url.toLowerCase()), l.crossDomain = !(!d || d[1] === Hb[1] && d[2] === Hb[2] && (d[3] || ("http:" === d[1] ? "80" : "443")) === (Hb[3] || ("http:" === Hb[1] ? "80" : "443")))), l.data && l.processData && "string" != typeof l.data && (l.data = ea.param(l.data, l.traditional)), O(Qb, l, b, v), 2 === t) return v;
- i = ea.event && l.global, i && 0 === ea.active++ && ea.event.trigger("ajaxStart"), l.type = l.type.toUpperCase(), l.hasContent = !Nb.test(l.type), f = l.url, l.hasContent || (l.data && (f = l.url += (Fb.test(f) ? "&" : "?") + l.data, delete l.data), l.cache === !1 && (l.url = Kb.test(f) ? f.replace(Kb, "$1_=" + Eb++) : f + (Fb.test(f) ? "&" : "?") + "_=" + Eb++)), l.ifModified && (ea.lastModified[f] && v.setRequestHeader("If-Modified-Since", ea.lastModified[f]), ea.etag[f] && v.setRequestHeader("If-None-Match", ea.etag[f])), (l.data && l.hasContent && l.contentType !== !1 || b.contentType) && v.setRequestHeader("Content-Type", l.contentType), v.setRequestHeader("Accept", l.dataTypes[0] && l.accepts[l.dataTypes[0]] ? l.accepts[l.dataTypes[0]] + ("*" !== l.dataTypes[0] ? ", " + Sb + "; q=0.01" : "") : l.accepts["*"]);
- for (e in l.headers) v.setRequestHeader(e, l.headers[e]);
- if (l.beforeSend && (l.beforeSend.call(m, v, l) === !1 || 2 === t)) return v.abort();
- u = "abort";
- for (e in {
- success: 1,
- error: 1,
- complete: 1
- }) v[e](l[e]);
- if (j = O(Rb, l, b, v)) {
- v.readyState = 1, i && n.trigger("ajaxSend", [v, l]), l.async && l.timeout > 0 && (h = setTimeout(function() {
- v.abort("timeout")
- }, l.timeout));
- try {
- t = 1, j.send(r, c)
- } catch (w) {
- if (!(2 > t)) throw w;
- c(-1, w)
- }
- } else c(-1, "No Transport");
- return v
- },
- getJSON: function(a, b, c) {
- return ea.get(a, b, c, "json")
- },
- getScript: function(a, b) {
- return ea.get(a, void 0, b, "script")
- }
- }), ea.each(["get", "post"], function(a, b) {
- ea[b] = function(a, c, d, e) {
- return ea.isFunction(c) && (e = e || d, d = c, c = void 0), ea.ajax({
- url: a,
- type: b,
- dataType: e,
- data: c,
- success: d
- })
- }
- }), ea._evalUrl = function(a) {
- return ea.ajax({
- url: a,
- type: "GET",
- dataType: "script",
- async: !1,
- global: !1,
- "throws": !0
- })
- }, ea.fn.extend({
- wrapAll: function(a) {
- if (ea.isFunction(a)) return this.each(function(b) {
- ea(this).wrapAll(a.call(this, b))
- });
- if (this[0]) {
- var b = ea(a, this[0].ownerDocument).eq(0).clone(!0);
- this[0].parentNode && b.insertBefore(this[0]), b.map(function() {
- for (var a = this; a.firstChild && 1 === a.firstChild.nodeType;) a = a.firstChild;
- return a
- }).append(this)
- }
- return this
- },
- wrapInner: function(a) {
- return ea.isFunction(a) ? this.each(function(b) {
- ea(this).wrapInner(a.call(this, b))
- }) : this.each(function() {
- var b = ea(this),
- c = b.contents();
- c.length ? c.wrapAll(a) : b.append(a)
- })
- },
- wrap: function(a) {
- var b = ea.isFunction(a);
- return this.each(function(c) {
- ea(this).wrapAll(b ? a.call(this, c) : a)
- })
- },
- unwrap: function() {
- return this.parent().each(function() {
- ea.nodeName(this, "body") || ea(this).replaceWith(this.childNodes)
- }).end()
- }
- }), ea.expr.filters.hidden = function(a) {
- return a.offsetWidth <= 0 && a.offsetHeight <= 0 || !ca.reliableHiddenOffsets() && "none" === (a.style && a.style.display || ea.css(a, "display"))
- }, ea.expr.filters.visible = function(a) {
- return !ea.expr.filters.hidden(a)
- };
- var Ub = /%20/g,
- Vb = /\[\]$/,
- Wb = /\r?\n/g,
- Xb = /^(?:submit|button|image|reset|file)$/i,
- Yb = /^(?:input|select|textarea|keygen)/i;
- ea.param = function(a, b) {
- var c, d = [],
- e = function(a, b) {
- b = ea.isFunction(b) ? b() : null == b ? "" : b, d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b)
- };
- if (void 0 === b && (b = ea.ajaxSettings && ea.ajaxSettings.traditional), ea.isArray(a) || a.jquery && !ea.isPlainObject(a)) ea.each(a, function() {
- e(this.name, this.value)
- });
- else
- for (c in a) S(c, a[c], b, e);
- return d.join("&").replace(Ub, "+")
- }, ea.fn.extend({
- serialize: function() {
- return ea.param(this.serializeArray())
- },
- serializeArray: function() {
- return this.map(function() {
- var a = ea.prop(this, "elements");
- return a ? ea.makeArray(a) : this
- }).filter(function() {
- var a = this.type;
- return this.name && !ea(this).is(":disabled") && Yb.test(this.nodeName) && !Xb.test(a) && (this.checked || !Ea.test(a))
- }).map(function(a, b) {
- var c = ea(this).val();
- return null == c ? null : ea.isArray(c) ? ea.map(c, function(a) {
- return {
- name: b.name,
- value: a.replace(Wb, "\r\n")
- }
- }) : {
- name: b.name,
- value: c.replace(Wb, "\r\n")
- }
- }).get()
- }
- }), ea.ajaxSettings.xhr = void 0 !== a.ActiveXObject ? function() {
- return !this.isLocal && /^(get|post|head|put|delete|options)$/i.test(this.type) && T() || U()
- } : T;
- var Zb = 0,
- $b = {},
- _b = ea.ajaxSettings.xhr();
- a.attachEvent && a.attachEvent("onunload", function() {
- for (var a in $b) $b[a](void 0, !0)
- }), ca.cors = !!_b && "withCredentials" in _b, _b = ca.ajax = !!_b, _b && ea.ajaxTransport(function(a) {
- if (!a.crossDomain || ca.cors) {
- var b;
- return {
- send: function(c, d) {
- var e, f = a.xhr(),
- g = ++Zb;
- if (f.open(a.type, a.url, a.async, a.username, a.password), a.xhrFields)
- for (e in a.xhrFields) f[e] = a.xhrFields[e];
- a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType), a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest");
- for (e in c) void 0 !== c[e] && f.setRequestHeader(e, c[e] + "");
- f.send(a.hasContent && a.data || null), b = function(c, e) {
- var h, i, j;
- if (b && (e || 4 === f.readyState))
- if (delete $b[g], b = void 0, f.onreadystatechange = ea.noop, e) 4 !== f.readyState && f.abort();
- else {
- j = {}, h = f.status, "string" == typeof f.responseText && (j.text = f.responseText);
- try {
- i = f.statusText
- } catch (k) {
- i = ""
- }
- h || !a.isLocal || a.crossDomain ? 1223 === h && (h = 204) : h = j.text ? 200 : 404
- }
- j && d(h, i, j, f.getAllResponseHeaders())
- }, a.async ? 4 === f.readyState ? setTimeout(b) : f.onreadystatechange = $b[g] = b : b()
- },
- abort: function() {
- b && b(void 0, !0)
- }
- }
- }
- }), ea.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /(?:java|ecma)script/
- },
- converters: {
- "text script": function(a) {
- return ea.globalEval(a), a
- }
- }
- }), ea.ajaxPrefilter("script", function(a) {
- void 0 === a.cache && (a.cache = !1), a.crossDomain && (a.type = "GET", a.global = !1)
- }), ea.ajaxTransport("script", function(a) {
- if (a.crossDomain) {
- var b, c = oa.head || ea("head")[0] || oa.documentElement;
- return {
- send: function(d, e) {
- b = oa.createElement("script"), b.async = !0, a.scriptCharset && (b.charset = a.scriptCharset), b.src = a.url, b.onload = b.onreadystatechange = function(a, c) {
- (c || !b.readyState || /loaded|complete/.test(b.readyState)) && (b.onload = b.onreadystatechange = null, b.parentNode && b.parentNode.removeChild(b), b = null, c || e(200, "success"))
- }, c.insertBefore(b, c.firstChild)
- },
- abort: function() {
- b && b.onload(void 0, !0)
- }
- }
- }
- });
- var ac = [],
- bc = /(=)\?(?=&|$)|\?\?/;
- ea.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- var a = ac.pop() || ea.expando + "_" + Eb++;
- return this[a] = !0, a
- }
- }), ea.ajaxPrefilter("json jsonp", function(b, c, d) {
- var e, f, g, h = b.jsonp !== !1 && (bc.test(b.url) ? "url" : "string" == typeof b.data && !(b.contentType || "").indexOf("application/x-www-form-urlencoded") && bc.test(b.data) && "data");
- return h || "jsonp" === b.dataTypes[0] ? (e = b.jsonpCallback = ea.isFunction(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback, h ? b[h] = b[h].replace(bc, "$1" + e) : b.jsonp !== !1 && (b.url += (Fb.test(b.url) ? "&" : "?") + b.jsonp + "=" + e), b.converters["script json"] = function() {
- return g || ea.error(e + " was not called"), g[0]
- }, b.dataTypes[0] = "json", f = a[e], a[e] = function() {
- g = arguments
- }, d.always(function() {
- a[e] = f, b[e] && (b.jsonpCallback = c.jsonpCallback, ac.push(e)), g && ea.isFunction(f) && f(g[0]), g = f = void 0
- }), "script") : void 0
- }), ea.parseHTML = function(a, b, c) {
- if (!a || "string" != typeof a) return null;
- "boolean" == typeof b && (c = b, b = !1), b = b || oa;
- var d = la.exec(a),
- e = !c && [];
- return d ? [b.createElement(d[1])] : (d = ea.buildFragment([a], b, e), e && e.length && ea(e).remove(), ea.merge([], d.childNodes))
- };
- var cc = ea.fn.load;
- ea.fn.load = function(a, b, c) {
- if ("string" != typeof a && cc) return cc.apply(this, arguments);
- var d, e, f, g = this,
- h = a.indexOf(" ");
- return h >= 0 && (d = ea.trim(a.slice(h, a.length)), a = a.slice(0, h)), ea.isFunction(b) ? (c = b, b = void 0) : b && "object" == typeof b && (f = "POST"), g.length > 0 && ea.ajax({
- url: a,
- type: f,
- dataType: "html",
- data: b
- }).done(function(a) {
- e = arguments, g.html(d ? ea("<div>").append(ea.parseHTML(a)).find(d) : a)
- }).complete(c && function(a, b) {
- g.each(c, e || [a.responseText, b, a])
- }), this
- }, ea.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(a, b) {
- ea.fn[b] = function(a) {
- return this.on(b, a)
- }
- }), ea.expr.filters.animated = function(a) {
- return ea.grep(ea.timers, function(b) {
- return a === b.elem
- }).length
- };
- var dc = a.document.documentElement;
- ea.offset = {
- setOffset: function(a, b, c) {
- var d, e, f, g, h, i, j, k = ea.css(a, "position"),
- l = ea(a),
- m = {};
- "static" === k && (a.style.position = "relative"), h = l.offset(), f = ea.css(a, "top"), i = ea.css(a, "left"), j = ("absolute" === k || "fixed" === k) && ea.inArray("auto", [f, i]) > -1, j ? (d = l.position(), g = d.top, e = d.left) : (g = parseFloat(f) || 0, e = parseFloat(i) || 0), ea.isFunction(b) && (b = b.call(a, c, h)), null != b.top && (m.top = b.top - h.top + g), null != b.left && (m.left = b.left - h.left + e), "using" in b ? b.using.call(a, m) : l.css(m)
- }
- }, ea.fn.extend({
- offset: function(a) {
- if (arguments.length) return void 0 === a ? this : this.each(function(b) {
- ea.offset.setOffset(this, a, b)
- });
- var b, c, d = {
- top: 0,
- left: 0
- },
- e = this[0],
- f = e && e.ownerDocument;
- if (f) return b = f.documentElement, ea.contains(b, e) ? (typeof e.getBoundingClientRect !== xa && (d = e.getBoundingClientRect()), c = V(f), {
- top: d.top + (c.pageYOffset || b.scrollTop) - (b.clientTop || 0),
- left: d.left + (c.pageXOffset || b.scrollLeft) - (b.clientLeft || 0)
- }) : d
- },
- position: function() {
- if (this[0]) {
- var a, b, c = {
- top: 0,
- left: 0
- },
- d = this[0];
- return "fixed" === ea.css(d, "position") ? b = d.getBoundingClientRect() : (a = this.offsetParent(), b = this.offset(), ea.nodeName(a[0], "html") || (c = a.offset()), c.top += ea.css(a[0], "borderTopWidth", !0), c.left += ea.css(a[0], "borderLeftWidth", !0)), {
- top: b.top - c.top - ea.css(d, "marginTop", !0),
- left: b.left - c.left - ea.css(d, "marginLeft", !0)
- }
- }
- },
- offsetParent: function() {
- return this.map(function() {
- for (var a = this.offsetParent || dc; a && !ea.nodeName(a, "html") && "static" === ea.css(a, "position");) a = a.offsetParent;
- return a || dc
- })
- }
- }), ea.each({
- scrollLeft: "pageXOffset",
- scrollTop: "pageYOffset"
- }, function(a, b) {
- var c = /Y/.test(b);
- ea.fn[a] = function(d) {
- return Da(this, function(a, d, e) {
- var f = V(a);
- return void 0 === e ? f ? b in f ? f[b] : f.document.documentElement[d] : a[d] : void(f ? f.scrollTo(c ? ea(f).scrollLeft() : e, c ? e : ea(f).scrollTop()) : a[d] = e)
- }, a, d, arguments.length, null)
- }
- }), ea.each(["top", "left"], function(a, b) {
- ea.cssHooks[b] = A(ca.pixelPosition, function(a, c) {
- return c ? (c = bb(a, b), db.test(c) ? ea(a).position()[b] + "px" : c) : void 0
- })
- }), ea.each({
- Height: "height",
- Width: "width"
- }, function(a, b) {
- ea.each({
- padding: "inner" + a,
- content: b,
- "": "outer" + a
- }, function(c, d) {
- ea.fn[d] = function(d, e) {
- var f = arguments.length && (c || "boolean" != typeof d),
- g = c || (d === !0 || e === !0 ? "margin" : "border");
- return Da(this, function(b, c, d) {
- var e;
- return ea.isWindow(b) ? b.document.documentElement["client" + a] : 9 === b.nodeType ? (e = b.documentElement, Math.max(b.body["scroll" + a], e["scroll" + a], b.body["offset" + a], e["offset" + a], e["client" + a])) : void 0 === d ? ea.css(b, c, g) : ea.style(b, c, d, g)
- }, b, f ? d : void 0, f, null)
- }
- })
- }), ea.fn.size = function() {
- return this.length
- }, ea.fn.andSelf = ea.fn.addBack;
- var ec = a.jQuery,
- fc = a.$;
- return ea.noConflict = function(b) {
- return a.$ === ea && (a.$ = fc), b && a.jQuery === ea && (a.jQuery = ec), ea
- }, typeof b === xa && (a.jQuery = a.$ = ea), ea
- }),
- function(a) {
- var b = "/",
- c = "postal",
- d = function() {
- var b;
- return function(c) {
- var d = !1;
- return "string" == typeof c ? (d = c === b, b = c) : (d = c.equals(b), b = a.clone(c, !0)), !d
- }
- },
- e = function() {
- var a = [];
- return function(b) {
- var c = !j(a, function(a) {
- return "object" == typeof b || b instanceof Array ? b.equals(a) : b === a
- });
- return c && a.push(b), c
- }
- },
- f = function(a) {
- this.channel = a || b
- },
- g = function(a, b, c) {
- var d, e;
- if (null != a)
- if (Array.prototype.forEach && a.forEach === Array.prototype.forEach) a.forEach(b, c);
- else if (a.length === +a.length) {
- for (d = 0, e = a.length; e > d; d++)
- if (b.call(c, a[d], d, a) === {}) return
- } else
- for (var f in a)
- if (a.hasOwnProperty(f) && b.call(c, a[f], f, a) === {}) return
- },
- h = function(a, b, c) {
- var d = !0;
- return null == a ? d : Array.prototype.every && a.every === Array.prototype.every ? a.every(b, c) : (g(a, function(a, e, f) {
- return (d = d && b.call(c, a, e, f)) ? void 0 : {}
- }), !!d)
- },
- i = function(a, b) {
- return 0 >= a ? b() : function() {
- return --a < 1 ? b.apply(this, arguments) : void 0
- }
- },
- j = function(a, b, c) {
- var d = !1;
- return null == a ? d : Array.prototype.some && a.some === Array.prototype.some ? a.some(b, c) : (g(a, function(a, e, f) {
- return d || (d = b.call(c, a, e, f)) ? breaker : void 0
- }), !!d)
- },
- k = function(a, b) {
- var c, d;
- if (a.bind === Function.prototype.bind && Function.prototype.bind) return nativeBind.apply(a, slice.call(arguments, 1));
- if ("function" != typeof a) throw new TypeError;
- return c = slice.call(arguments, 2), d = function() {
- var e, f;
- return this instanceof d ? (ctor.prototype = a.prototype, e = new ctor, ctor.prototype = null, f = a.apply(e, c.concat(slice.call(arguments))), Object(f) === f ? f : e) : a.apply(b, c.concat(slice.call(arguments)))
- }
- },
- l = function(a, b, c) {
- var d, e;
- return function() {
- var f = this,
- g = arguments,
- h = function() {
- d = null, c || (e = a.apply(f, g))
- },
- i = c && !d;
- return clearTimeout(d), d = setTimeout(h, b), i && (e = a.apply(f, g)), e
- }
- },
- m = function(a, b) {
- var c, d, e, f, g = 0,
- h = function() {
- g = new Date, e = null, f = a.apply(c, d)
- };
- return function() {
- var c = new Date,
- d = b - (c - g),
- i = this,
- j = arguments;
- return 0 >= d ? (clearTimeout(e), e = null, g = c, f = a.apply(i, j)) : e || (e = setTimeout(h, d)), f
- }
- };
- f.prototype.subscribe = function() {
- return 1 === arguments.length ? new n(this.channel, arguments[0].topic, arguments[0].callback) : new n(this.channel, arguments[0], arguments[1])
- }, f.prototype.publish = function() {
- var a = 1 === arguments.length ? "[object String]" === Object.prototype.toString.call(arguments[0]) ? {
- topic: arguments[0]
- } : arguments[0] : {
- topic: arguments[0],
- data: arguments[1]
- };
- return a.channel = this.channel, r.configuration.bus.publish(a)
- };
- var n = function(a, b, d) {
- this.channel = a, this.topic = b, this.callback = d, this.constraints = [], this.context = null, r.configuration.bus.publish({
- channel: c,
- topic: "subscription.created",
- data: {
- event: "subscription.created",
- channel: a,
- topic: b
- }
- }), r.configuration.bus.subscribe(this)
- };
- n.prototype = {
- unsubscribe: function() {
- r.configuration.bus.unsubscribe(this), r.configuration.bus.publish({
- channel: c,
- topic: "subscription.removed",
- data: {
- event: "subscription.removed",
- channel: this.channel,
- topic: this.topic
- }
- })
- },
- defer: function() {
- var a = this.callback;
- return this.callback = function(b) {
- setTimeout(a, 0, b)
- }, this
- },
- disposeAfter: function(a) {
- if (isNaN(a) || 0 >= a) throw "The value provided to disposeAfter (maxCalls) must be a number greater than zero.";
- var b = this.callback,
- c = i(a, k(function() {
- this.unsubscribe()
- }, this));
- return this.callback = function() {
- b.apply(this.context, arguments), c()
- }, this
- },
- distinctUntilChanged: function() {
- return this.withConstraint(new d), this
- },
- distinct: function() {
- return this.withConstraint(new e), this
- },
- once: function() {
- this.disposeAfter(1)
- },
- withConstraint: function(a) {
- if ("function" != typeof a) throw "Predicate constraint must be a function";
- return this.constraints.push(a), this
- },
- withConstraints: function(a) {
- var b = this;
- return a instanceof Array && g(a, function(a) {
- b.withConstraint(a)
- }), b
- },
- withContext: function(a) {
- return this.context = a, this
- },
- withDebounce: function(a) {
- var b = this.callback;
- if (isNaN(a)) throw "Milliseconds must be a number";
- return this.callback = l(b, a), this
- },
- withDelay: function(a) {
- var b = this.callback;
- if (isNaN(a)) throw "Milliseconds must be a number";
- return this.callback = function(c) {
- setTimeout(function() {
- b(c)
- }, a)
- }, this
- },
- withThrottle: function(a) {
- var b = this.callback;
- if (isNaN(a)) throw "Milliseconds must be a number";
- return this.callback = m(b, a), this
- },
- subscribe: function(a) {
- return this.callback = a, this
- }
- };
- var o = {
- cache: {},
- compare: function(a, b) {
- if (this.cache[b] && this.cache[b][a]) return !0;
- var c = ("^" + a.replace(/\./g, "\\.").replace(/\*/g, "[A-Z,a-z,0-9]*").replace(/#/g, ".*") + "$").replace("\\..*$", "(\\..*)*$").replace("^.*\\.", "^(.*\\.)*"),
- d = new RegExp(c),
- e = d.test(b);
- return e && (this.cache[b] || (this.cache[b] = {}), this.cache[b][a] = !0), e
- },
- reset: function() {
- this.cache = {}
- }
- },
- p = function(a, b) {
- r.configuration.resolver.compare(a.topic, b.topic) && h(a.constraints, function(c) {
- return c.call(a.context, b.data, b)
- }) && "function" == typeof a.callback && a.callback.call(a.context, b.data, b)
- },
- q = {
- addWireTap: function(a) {
- var b = this;
- return b.wireTaps.push(a),
- function() {
- var c = b.wireTaps.indexOf(a); - 1 !== c && b.wireTaps.splice(c, 1)
- }
- },
- publish: function(a) {
- return a.timeStamp = new Date, g(this.wireTaps, function(b) {
- b(a.data, a)
- }), this.subscriptions[a.channel] && g(this.subscriptions[a.channel], function(b) {
- for (var c, d = 0, e = b.length; e > d;)(c = b[d++]) && p(c, a)
- }), a
- },
- reset: function() {
- this.subscriptions && (g(this.subscriptions, function(a) {
- g(a, function(a) {
- for (; a.length;) a.pop().unsubscribe()
- })
- }), this.subscriptions = {})
- },
- subscribe: function(a) {
- var b, c = this.subscriptions[a.channel];
- return c || (c = this.subscriptions[a.channel] = {}), b = this.subscriptions[a.channel][a.topic], b || (b = this.subscriptions[a.channel][a.topic] = []), b.push(a), a
- },
- subscriptions: {},
- wireTaps: [],
- unsubscribe: function(a) {
- if (this.subscriptions[a.channel][a.topic]) {
- var b, c = this.subscriptions[a.channel][a.topic].length;
- for (b = 0; c > b; b++)
- if (this.subscriptions[a.channel][a.topic][b] === a) {
- this.subscriptions[a.channel][a.topic].splice(b, 1);
- break
- }
- }
- }
- };
- q.subscriptions[c] = {};
- var r = {
- configuration: {
- bus: q,
- resolver: o,
- DEFAULT_CHANNEL: b,
- SYSTEM_CHANNEL: c
- },
- ChannelDefinition: f,
- SubscriptionDefinition: n,
- channel: function(a) {
- return new f(a)
- },
- subscribe: function(a) {
- return new n(a.channel || b, a.topic, a.callback)
- },
- publish: function(a) {
- return a.channel = a.channel || b, r.configuration.bus.publish(a)
- },
- addWireTap: function(a) {
- return this.configuration.bus.addWireTap(a)
- },
- linkChannels: function(c, d) {
- var e = [];
- return c = c instanceof Array ? c : [c], d = d instanceof Array ? d : [d], g(c, function(c) {
- c.topic || "#";
- g(d, function(d) {
- var f = d.channel || b;
- e.push(r.subscribe({
- channel: c.channel || b,
- topic: c.topic || "#",
- callback: function(b, c) {
- var e = a.clone(c, !0);
- e.topic = "function" == typeof d.topic ? d.topic(c.topic) : d.topic || c.topic, e.channel = f, e.data = b, r.publish(e)
- }
- }))
- })
- }), e
- },
- utils: {
- getSubscribersFor: function() {
- var a = arguments[0],
- b = arguments[1];
- return 1 === arguments.length && (a = arguments[0].channel || r.configuration.DEFAULT_CHANNEL, b = arguments[0].topic), r.configuration.bus.subscriptions[a] && r.configuration.bus.subscriptions[a].hasOwnProperty(b) ? r.configuration.bus.subscriptions[a][b] : []
- },
- reset: function() {
- r.configuration.bus.reset(), r.configuration.resolver.reset()
- }
- }
- };
- a.postal = r
- }(jQuery),
- function(a) {
- function b() {}
- function c(a) {
- g = [a]
- }
- function d(a, b, c) {
- return a && a.apply && a.apply(b.context || b, c)
- }
- function e(a) {
- return /\?/.test(a) ? "&" : "?"
- }
- function f(f) {
- function n(a) {
- X++ || (Y(), S && (A[U] = {
- s: [a]
- }), O && (a = O.apply(f, [a])), d(L, f, [a, v, f]), d(N, f, [f, v]))
- }
- function F(a) {
- X++ || (Y(), S && a != w && (A[U] = a), d(M, f, [f, a]), d(N, f, [f, a]))
- }
- f = a.extend({}, C, f);
- var G, H, I, J, K, L = f.success,
- M = f.error,
- N = f.complete,
- O = f.dataFilter,
- P = f.callbackParameter,
- Q = f.callback,
- R = f.cache,
- S = f.pageCache,
- T = f.charset,
- U = f.url,
- V = f.data,
- W = f.timeout,
- X = 0,
- Y = b;
- return y && y(function(a) {
- a.done(L).fail(M), L = a.resolve, M = a.reject
- }).promise(f), f.abort = function() {
- !X++ && Y()
- }, d(f.beforeSend, f, [f]) === !1 || X ? f : (U = U || j, V = V ? "string" == typeof V ? V : a.param(V, f.traditional) : j, U += V ? e(U) + V : j, P && (U += e(U) + encodeURIComponent(P) + "=?"), !R && !S && (U += e(U) + "_" + (new Date).getTime() + "="), U = U.replace(/=\?(&|$)/, "=" + Q + "$1"), S && (G = A[U]) ? G.s ? n(G.s[0]) : F(G) : (x[Q] = c, I = a(u)[0], I.id = m + B++, T && (I[i] = T), D && D.version() < 11.6 ? (J = a(u)[0]).text = "document.getElementById('" + I.id + "')." + p + "()" : I[h] = h, E && (I.htmlFor = I.id, I.event = o), I[q] = I[p] = I[r] = function(a) {
- if (!I[s] || !/i/.test(I[s])) {
- try {
- I[o] && I[o]()
- } catch (b) {}
- a = g, g = 0, a ? n(a[0]) : F(k)
- }
- }, I.src = U, Y = function(a) {
- K && clearTimeout(K), I[r] = I[q] = I[p] = null, z[t](I), J && z[t](J)
- }, z[l](I, H = z.firstChild), J && z[l](J, H), K = W > 0 && setTimeout(function() {
- F(w)
- }, W)), f)
- }
- var g, h = "async",
- i = "charset",
- j = "",
- k = "error",
- l = "insertBefore",
- m = "_jqjsp",
- n = "on",
- o = n + "click",
- p = n + k,
- q = n + "load",
- r = n + "readystatechange",
- s = "readyState",
- t = "removeChild",
- u = "<script>",
- v = "success",
- w = "timeout",
- x = window,
- y = a.Deferred,
- z = a("head")[0] || document.documentElement,
- A = {},
- B = 0,
- C = {
- callback: m,
- url: location.href
- },
- D = x.opera,
- E = !!a("<div>").html("<!--[if IE]><i><![endif]-->").find("i").length;
- f.setup = function(b) {
- a.extend(C, b)
- }, a.jsonp = f
- }(jQuery),
- function(a) {
- "$:nomunge";
- function b(b) {
- function d() {
- b ? g.removeData(b) : m && delete c[m]
- }
- function f() {
- i.id = setTimeout(function() {
- i.fn()
- }, n)
- }
- var g, h = this,
- i = {},
- j = b ? a.fn : a,
- k = arguments,
- l = 4,
- m = k[1],
- n = k[2],
- o = k[3];
- if ("string" != typeof m && (l--, m = b = 0, n = k[1], o = k[2]), b ? (g = h.eq(0), g.data(b, i = g.data(b) || {})) : m && (i = c[m] || (c[m] = {})), i.id && clearTimeout(i.id), delete i.id, o) i.fn = function(a) {
- "string" == typeof o && (o = j[o]), o.apply(h, e.call(k, l)) !== !0 || a ? d() : f()
- }, f();
- else {
- if (i.fn) return void 0 === n ? d() : i.fn(n === !1), !0;
- d()
- }
- }
- var c = {},
- d = "doTimeout",
- e = Array.prototype.slice;
- a[d] = function() {
- return b.apply(window, [0].concat(e.call(arguments)))
- }, a.fn[d] = function() {
- var a = e.call(arguments),
- c = b.apply(this, [d + a[0]].concat(a));
- return "number" == typeof a[0] || "number" == typeof a[1] ? this : c
- }
- }(jQuery),
- function(a) {
- "use strict";
- a.extend({
- tablesorter: new function() {
- function b(a) {
- "undefined" != typeof console && "undefined" != typeof console.log ? console.log(a) : alert(a)
- }
- function c(a, c) {
- b(a + " (" + ((new Date).getTime() - c.getTime()) + "ms)")
- }
- function d(b, c, d) {
- if (!c) return "";
- var e = b.config,
- f = e.textExtraction,
- g = "";
- return g = "simple" === f ? e.supportsTextContent ? c.textContent : a(c).text() : "function" == typeof f ? f(c, b, d) : "object" == typeof f && f.hasOwnProperty(d) ? f[d](c, b, d) : e.supportsTextContent ? c.textContent : a(c).text(), a.trim(g)
- }
- function e(a, c, e, f) {
- for (var g, h = w.parsers.length, i = !1, j = "", k = !0;
- "" === j && k;) e++, c[e] ? (i = c[e].cells[f], j = d(a, i, f), a.config.debug && b("Checking if value was empty on row " + e + ", column: " + f + ': "' + j + '"')) : k = !1;
- for (; --h >= 0;)
- if (g = w.parsers[h], g && "text" !== g.id && g.is && g.is(j, a, i)) return g;
- return w.getParserById("text")
- }
- function f(a) {
- var c, d, f, g, h, i, j, k = a.config,
- l = k.$tbodies = k.$table.children("tbody:not(." + k.cssInfoBlock + ")"),
- m = "";
- if (0 === l.length) return k.debug ? b("*Empty table!* Not building a parser cache") : "";
- if (c = l[0].rows, c[0])
- for (d = [], f = c[0].cells.length, g = 0; f > g; g++) h = k.$headers.filter(":not([colspan])"), h = h.add(k.$headers.filter('[colspan="1"]')).filter('[data-column="' + g + '"]:last'), i = k.headers[g], j = w.getParserById(w.getData(h, i, "sorter")), k.empties[g] = w.getData(h, i, "empty") || k.emptyTo || (k.emptyToBottom ? "bottom" : "top"), k.strings[g] = w.getData(h, i, "string") || k.stringTo || "max", j || (j = e(a, c, -1, g)), k.debug && (m += "column:" + g + "; parser:" + j.id + "; string:" + k.strings[g] + "; empty: " + k.empties[g] + "\n"), d.push(j);
- k.debug && b(m), k.parsers = d
- }
- function g(e) {
- var f, g, h, i, j, k, l, m, n, o, p = e.tBodies,
- q = e.config,
- r = q.parsers,
- s = [];
- if (q.cache = {}, !r) return q.debug ? b("*Empty table!* Not building a cache") : "";
- for (q.debug && (o = new Date), q.showProcessing && w.isProcessing(e, !0), l = 0; l < p.length; l++)
- if (q.cache[l] = {
- row: [],
- normalized: []
- }, !a(p[l]).hasClass(q.cssInfoBlock)) {
- for (f = p[l] && p[l].rows.length || 0, g = p[l].rows[0] && p[l].rows[0].cells.length || 0, j = 0; f > j; ++j)
- if (m = a(p[l].rows[j]), n = [], m.hasClass(q.cssChildRow)) q.cache[l].row[q.cache[l].row.length - 1] = q.cache[l].row[q.cache[l].row.length - 1].add(m);
- else {
- for (q.cache[l].row.push(m), k = 0; g > k; ++k) h = d(e, m[0].cells[k], k), i = r[k].format(h, e, m[0].cells[k], k), n.push(i), "numeric" === (r[k].type || "").toLowerCase() && (s[k] = Math.max(Math.abs(i) || 0, s[k] || 0));
- n.push(q.cache[l].normalized.length), q.cache[l].normalized.push(n)
- }
- q.cache[l].colMax = s
- }
- q.showProcessing && w.isProcessing(e), q.debug && c("Building cache for " + f + " rows", o)
- }
- function h(b, d) {
- var e, f, g, h, i, j, k, l, m, n, o, p, q = b.config,
- r = b.tBodies,
- s = [],
- t = q.cache;
- if (t[0]) {
- for (q.debug && (p = new Date), m = 0; m < r.length; m++)
- if (i = a(r[m]), i.length && !i.hasClass(q.cssInfoBlock)) {
- for (j = w.processTbody(b, i, !0), e = t[m].row, f = t[m].normalized, g = f.length, h = g ? f[0].length - 1 : 0, k = 0; g > k; k++)
- if (o = f[k][h], s.push(e[o]), !q.appender || !q.removeRows)
- for (n = e[o].length, l = 0; n > l; l++) j.append(e[o][l]);
- w.processTbody(b, j, !1)
- }
- q.appender && q.appender(b, s), q.debug && c("Rebuilt table", p), d || w.applyWidget(b), a(b).trigger("sortEnd", b)
- }
- }
- function i(b) {
- var c, d, e, f, g, h, i, j, k, l, m, n, o = [],
- p = {},
- q = 0,
- r = a(b).find("thead:eq(0), tfoot").children("tr");
- for (c = 0; c < r.length; c++)
- for (h = r[c].cells, d = 0; d < h.length; d++) {
- for (g = h[d], i = g.parentNode.rowIndex, j = i + "-" + g.cellIndex, k = g.rowSpan || 1, l = g.colSpan || 1, "undefined" == typeof o[i] && (o[i] = []), e = 0; e < o[i].length + 1; e++)
- if ("undefined" == typeof o[i][e]) {
- m = e;
- break
- }
- for (p[j] = m, q = Math.max(m, q), a(g).attr({
- "data-column": m
- }), e = i; i + k > e; e++)
- for ("undefined" == typeof o[e] && (o[e] = []), n = o[e], f = m; m + l > f; f++) n[f] = "x"
- }
- return b.config.columns = q, p
- }
- function j(a) {
- return /^d/i.test(a) || 1 === a
- }
- function k(d) {
- var e, f, g, h, k, l, n, o = i(d),
- p = d.config;
- p.headerList = [], p.headerContent = [], p.debug && (n = new Date), h = p.cssIcon ? '<i class="' + p.cssIcon + '"></i>' : "", p.$headers = a(d).find(p.selectorHeaders).each(function(b) {
- f = a(this), e = p.headers[b], p.headerContent[b] = this.innerHTML, k = p.headerTemplate.replace(/\{content\}/g, this.innerHTML).replace(/\{icon\}/g, h), p.onRenderTemplate && (g = p.onRenderTemplate.apply(f, [b, k]), g && "string" == typeof g && (k = g)), this.innerHTML = k, p.onRenderHeader && p.onRenderHeader.apply(f, [b]), this.column = o[this.parentNode.rowIndex + "-" + this.cellIndex], this.order = j(w.getData(f, e, "sortInitialOrder") || p.sortInitialOrder) ? [1, 0, 2] : [0, 1, 2], this.count = -1, this.lockedOrder = !1, l = w.getData(f, e, "lockedOrder") || !1, "undefined" != typeof l && l !== !1 && (this.order = this.lockedOrder = j(l) ? [1, 1, 1] : [0, 0, 0]), f.addClass(p.cssHeader), p.headerList[b] = this, f.parent().addClass(p.cssHeaderRow), f.attr("tabindex", 0)
- }), m(d), p.debug && (c("Built headers:", n), b(p.$headers))
- }
- function l(b, c, d) {
- var e = a(b),
- h = b.config;
- e.find(h.selectorRemove).remove(), f(b), g(b), u(e, c, d)
- }
- function m(b) {
- var c, d = b.config;
- d.$headers.each(function(b, e) {
- c = "false" === w.getData(e, d.headers[b], "sorter"), e.sortDisabled = c, a(e)[c ? "addClass" : "removeClass"]("sorter-false")
- })
- }
- function n(b) {
- var c, d, e, f, g = b.config,
- h = g.sortList,
- i = [g.cssAsc, g.cssDesc],
- j = a(b).find("tfoot tr").children().removeClass(i.join(" "));
- for (g.$headers.removeClass(i.join(" ")), f = h.length, d = 0; f > d; d++)
- if (2 !== h[d][1] && (c = g.$headers.not(".sorter-false").filter('[data-column="' + h[d][0] + '"]' + (1 === f ? ":last" : "")), c.length))
- for (e = 0; e < c.length; e++) c[e].sortDisabled || (c.eq(e).addClass(i[h[d][1]]), j.length && j.filter('[data-column="' + h[d][0] + '"]').eq(e).addClass(i[h[d][1]]))
- }
- function o(b) {
- if (b.config.widthFixed && 0 === a(b).find("colgroup").length) {
- var c = a("<colgroup>"),
- d = a(b).width();
- a(b.tBodies[0]).find("tr:first").children("td").each(function() {
- c.append(a("<col>").css("width", parseInt(a(this).width() / d * 1e3, 10) / 10 + "%"))
- }), a(b).prepend(c)
- }
- }
- function p(b, c) {
- var d, e, f, g = b.config,
- h = c || g.sortList;
- g.sortList = [], a.each(h, function(b, c) {
- d = [parseInt(c[0], 10), parseInt(c[1], 10)], f = g.headerList[d[0]], f && (g.sortList.push(d), e = a.inArray(d[1], f.order), f.count = e >= 0 ? e : d[1] % (g.sortReset ? 3 : 2))
- })
- }
- function q(a, b) {
- return a && a[b] ? a[b].type || "" : ""
- }
- function r(b, c, d) {
- var e, f, g, i, j, k = b.config,
- l = !d[k.sortMultiSortKey],
- m = a(b);
- if (m.trigger("sortStart", b), c.count = d[k.sortResetKey] ? 2 : (c.count + 1) % (k.sortReset ? 3 : 2), k.sortRestart && (f = c, k.$headers.each(function() {
- this === f || !l && a(this).is("." + k.cssDesc + ",." + k.cssAsc) || (this.count = -1)
- })), f = c.column, l) {
- if (k.sortList = [], null !== k.sortForce)
- for (e = k.sortForce, g = 0; g < e.length; g++) e[g][0] !== f && k.sortList.push(e[g]);
- if (i = c.order[c.count], 2 > i && (k.sortList.push([f, i]), c.colSpan > 1))
- for (g = 1; g < c.colSpan; g++) k.sortList.push([f + g, i])
- } else if (k.sortAppend && k.sortList.length > 1 && w.isValueInArray(k.sortAppend[0][0], k.sortList) && k.sortList.pop(), w.isValueInArray(f, k.sortList))
- for (g = 0; g < k.sortList.length; g++) j = k.sortList[g], i = k.headerList[j[0]], j[0] === f && (j[1] = i.order[i.count], 2 === j[1] && (k.sortList.splice(g, 1), i.count = -1));
- else if (i = c.order[c.count], 2 > i && (k.sortList.push([f, i]), c.colSpan > 1))
- for (g = 1; g < c.colSpan; g++) k.sortList.push([f + g, i]);
- if (null !== k.sortAppend)
- for (e = k.sortAppend, g = 0; g < e.length; g++) e[g][0] !== f && k.sortList.push(e[g]);
- m.trigger("sortBegin", b), setTimeout(function() {
- n(b), s(b), h(b)
- }, 1)
- }
- function s(b) {
- var d, e, f, g, h, i, j, k, l, m, n = 0,
- o = b.config,
- p = o.sortList,
- r = p.length,
- s = b.tBodies.length;
- if (!o.serverSideSorting && o.cache[0]) {
- for (o.debug && (d = new Date), f = 0; s > f; f++) h = o.cache[f].colMax, i = o.cache[f].normalized, j = i.length, m = i && i[0] ? i[0].length - 1 : 0, i.sort(function(c, d) {
- for (e = 0; r > e; e++) {
- g = p[e][0], l = p[e][1], k = /n/i.test(q(o.parsers, g)) ? "Numeric" : "Text", k += 0 === l ? "" : "Desc", /Numeric/.test(k) && o.strings[g] && (n = "boolean" == typeof o.string[o.strings[g]] ? (0 === l ? 1 : -1) * (o.string[o.strings[g]] ? -1 : 1) : o.strings[g] ? o.string[o.strings[g]] || 0 : 0);
- var f = a.tablesorter["sort" + k](b, c[g], d[g], g, h[g], n);
- if (f) return f
- }
- return c[m] - d[m]
- });
- o.debug && c("Sorting on " + p.toString() + " and dir " + l + " time", d)
- }
- }
- function t(a, b) {
- a.trigger("updateComplete"), "function" == typeof b && b(a[0])
- }
- function u(a, b, c) {
- b === !1 || a[0].isProcessing ? t(a, c) : a.trigger("sorton", [a[0].config.sortList, function() {
- t(a, c)
- }])
- }
- function v(b) {
- var c, e, i = b.config,
- j = i.$table;
- i.$headers.find(i.selectorSort).add(i.$headers.filter(i.selectorSort)).unbind("mousedown.tablesorter mouseup.tablesorter sort.tablesorter keypress.tablesorter").bind("mousedown.tablesorter mouseup.tablesorter sort.tablesorter keypress.tablesorter", function(c, d) {
- if (!c.keyCode || 13 === c.keyCode) {
- var f = /TH|TD/.test(this.tagName) ? a(this) : a(this).parents("th, td").filter(":last"),
- h = f[0];
- if (c.keyCode) {
- if (13 !== c.keyCode) return !1
- } else if (1 !== (c.which || c.button) && "sort" !== c.type) return !1;
- if ("mousedown" === c.type) return e = (new Date).getTime(), "INPUT" === c.target.tagName ? "" : !i.cancelSelection;
- if ("mouseup" === c.type && d !== !0 && (new Date).getTime() - e > 250) return !1;
- i.delayInit && !i.cache && g(b), h.sortDisabled || r(b, h, c)
- }
- }), i.cancelSelection && i.$headers.attr("unselectable", "on").bind("selectstart", !1).css({
- "user-select": "none",
- MozUserSelect: "none"
- }), j.unbind("sortReset update updateRows updateCell updateAll addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(".tablesorter ")).bind("sortReset.tablesorter", function(a) {
- a.stopPropagation(), i.sortList = [], n(b), s(b), h(b)
- }).bind("updateAll.tablesorter", function(a, c, d) {
- a.stopPropagation(), w.restoreHeaders(b), k(b), v(b), l(b, c, d)
- }).bind("update.tablesorter updateRows.tablesorter", function(a, c, d) {
- a.stopPropagation(), m(b), l(b, c, d)
- }).bind("updateCell.tablesorter", function(c, e, f, g) {
- c.stopPropagation(), j.find(i.selectorRemove).remove();
- var h, k, l, m = j.find("tbody"),
- n = m.index(a(e).parents("tbody").filter(":last")),
- o = a(e).parents("tr").filter(":last");
- e = a(e)[0], m.length && n >= 0 && (k = m.eq(n).find("tr").index(o), l = e.cellIndex, h = i.cache[n].normalized[k].length - 1, i.cache[n].row[b.config.cache[n].normalized[k][h]] = o, i.cache[n].normalized[k][l] = i.parsers[l].format(d(b, e, l), b, e, l), u(j, f, g))
- }).bind("addRows.tablesorter", function(a, e, g, h) {
- a.stopPropagation();
- var k, l = e.filter("tr").length,
- m = [],
- n = e[0].cells.length,
- o = j.find("tbody").index(e.closest("tbody"));
- for (i.parsers || f(b), k = 0; l > k; k++) {
- for (c = 0; n > c; c++) m[c] = i.parsers[c].format(d(b, e[k].cells[c], c), b, e[k].cells[c], c);
- m.push(i.cache[o].row.length), i.cache[o].row.push([e[k]]), i.cache[o].normalized.push(m), m = []
- }
- u(j, g, h)
- }).bind("sorton.tablesorter", function(a, c, d, e) {
- a.stopPropagation(), j.trigger("sortStart", this), p(b, c), n(b), j.trigger("sortBegin", this), s(b), h(b, e), "function" == typeof d && d(b)
- }).bind("appendCache.tablesorter", function(a, c, d) {
- a.stopPropagation(), h(b, d), "function" == typeof c && c(b)
- }).bind("applyWidgetId.tablesorter", function(a, c) {
- a.stopPropagation(), w.getWidgetById(c).format(b, i, i.widgetOptions)
- }).bind("applyWidgets.tablesorter", function(a, c) {
- a.stopPropagation(), w.applyWidget(b, c)
- }).bind("refreshWidgets.tablesorter", function(a, c, d) {
- a.stopPropagation(), w.refreshWidgets(b, c, d)
- }).bind("destroy.tablesorter", function(a, c, d) {
- a.stopPropagation(), w.destroy(b, c, d)
- })
- }
- var w = this;
- w.version = "2.10.0", w.parsers = [], w.widgets = [], w.defaults = {
- theme: "default",
- widthFixed: !1,
- showProcessing: !1,
- headerTemplate: "{content}",
- onRenderTemplate: null,
- onRenderHeader: null,
- cancelSelection: !0,
- dateFormat: "mmddyyyy",
- sortMultiSortKey: "shiftKey",
- sortResetKey: "ctrlKey",
- usNumberFormat: !0,
- delayInit: !1,
- serverSideSorting: !1,
- headers: {},
- ignoreCase: !0,
- sortForce: null,
- sortList: [],
- sortAppend: null,
- sortInitialOrder: "asc",
- sortLocaleCompare: !1,
- sortReset: !1,
- sortRestart: !1,
- emptyTo: "bottom",
- stringTo: "max",
- textExtraction: "simple",
- textSorter: null,
- widgets: [],
- widgetOptions: {
- zebra: ["even", "odd"]
- },
- initWidgets: !0,
- initialized: null,
- tableClass: "tablesorter",
- cssAsc: "sort-ascending",
- cssChildRow: "tablesorter-childRow",
- cssDesc: "sort-descending",
- cssHeader: "header",
- cssHeaderRow: "tablesorter-headerRow",
- cssIcon: "tablesorter-icon",
- cssInfoBlock: "tablesorter-infoOnly",
- cssProcessing: "tablesorter-processing",
- selectorHeaders: "> thead th, > thead td",
- selectorSort: "th, td",
- selectorRemove: ".remove-me",
- debug: !1,
- headerList: [],
- empties: {},
- strings: {},
- parsers: []
- }, w.benchmark = c, w.construct = function(c) {
- return this.each(function() {
- if (!this.tHead || 0 === this.tBodies.length || this.hasInitialized === !0) return this.config && this.config.debug ? b("stopping initialization! No thead, tbody or tablesorter has already been initialized") : "";
- var d, e = a(this),
- h = this,
- i = "",
- j = a.metadata;
- h.hasInitialized = !1, h.isProcessing = !0, h.config = {}, d = a.extend(!0, h.config, w.defaults, c), a.data(h, "tablesorter", d), d.debug && a.data(h, "startoveralltimer", new Date), d.supportsTextContent = "x" === a("<span>x</span>")[0].textContent, d.supportsDataObject = parseFloat(a.fn.jquery) >= 1.4, d.string = {
- max: 1,
- min: -1,
- "max+": 1,
- "max-": -1,
- zero: 0,
- none: 0,
- "null": 0,
- top: !0,
- bottom: !1
- }, /tablesorter\-/.test(e.attr("class")) || (i = "" !== d.theme ? " tablesorter-" + d.theme : ""), d.$table = e.addClass(d.tableClass + i), d.$tbodies = e.children("tbody:not(." + d.cssInfoBlock + ")"), k(h), o(h), f(h), d.delayInit || g(h), v(h), d.supportsDataObject && "undefined" != typeof e.data().sortlist ? d.sortList = e.data().sortlist : j && e.metadata() && e.metadata().sortlist && (d.sortList = e.metadata().sortlist), w.applyWidget(h, !0), d.sortList.length > 0 ? e.trigger("sorton", [d.sortList, {}, !d.initWidgets]) : d.initWidgets && w.applyWidget(h), d.showProcessing && e.unbind("sortBegin.tablesorter sortEnd.tablesorter").bind("sortBegin.tablesorter sortEnd.tablesorter", function(a) {
- w.isProcessing(h, "sortBegin" === a.type)
- }), h.hasInitialized = !0, h.isProcessing = !1, d.debug && w.benchmark("Overall initialization time", a.data(h, "startoveralltimer")), e.trigger("tablesorter-initialized", h), "function" == typeof d.initialized && d.initialized(h)
- })
- }, w.isProcessing = function(b, c, d) {
- b = a(b);
- var e = b[0].config,
- f = d || b.find("." + e.cssHeader);
- c ? (e.sortList.length > 0 && (f = f.filter(function() {
- return this.sortDisabled ? !1 : w.isValueInArray(parseFloat(a(this).attr("data-column")), e.sortList)
- })), f.addClass(e.cssProcessing)) : f.removeClass(e.cssProcessing)
- }, w.processTbody = function(b, c, d) {
- var e;
- return d ? (b.isProcessing = !0, c.before('<span class="tablesorter-savemyplace"/>'), e = a.fn.detach ? c.detach() : c.remove()) : (e = a(b).find("span.tablesorter-savemyplace"), c.insertAfter(e), e.remove(), void(b.isProcessing = !1))
- }, w.clearTableBody = function(b) {
- a(b)[0].config.$tbodies.empty()
- }, w.restoreHeaders = function(b) {
- var c = b.config;
- c.$headers.each(function(b) {
- a(this).find(".tablesorter-header-inner").length && a(this).html(c.headerContent[b])
- })
- }, w.destroy = function(b, c, d) {
- if (b = a(b)[0], b.hasInitialized) {
- w.refreshWidgets(b, !0, !0);
- var e = a(b),
- f = b.config,
- g = e.find("thead:first"),
- h = g.find("tr." + f.cssHeaderRow).removeClass(f.cssHeaderRow),
- i = e.find("tfoot:first > tr").children("th, td");
- g.find("tr").not(h).remove(), e.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd ".split(" ").join(".tablesorter ")), f.$headers.add(i).removeClass(f.cssHeader + " " + f.cssAsc + " " + f.cssDesc).removeAttr("data-column"), h.find(f.selectorSort).unbind("mousedown.tablesorter mouseup.tablesorter keypress.tablesorter"), w.restoreHeaders(b), c !== !1 && e.removeClass(f.tableClass + " tablesorter-" + f.theme), b.hasInitialized = !1, "function" == typeof d && d(b)
- }
- }, w.regex = [/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi, /(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/, /^0x[0-9a-f]+$/i], w.sortText = function(a, b, c, d) {
- if (b === c) return 0;
- var e, f, g, h, i, j, k, l, m = a.config,
- n = m.string[m.empties[d] || m.emptyTo],
- o = w.regex;
- if ("" === b && 0 !== n) return "boolean" == typeof n ? n ? -1 : 1 : -n || -1;
- if ("" === c && 0 !== n) return "boolean" == typeof n ? n ? 1 : -1 : n || 1;
- if ("function" == typeof m.textSorter) return m.textSorter(b, c, a, d);
- if (e = b.replace(o[0], "\\0$1\\0").replace(/\\0$/, "").replace(/^\\0/, "").split("\\0"), g = c.replace(o[0], "\\0$1\\0").replace(/\\0$/, "").replace(/^\\0/, "").split("\\0"), f = parseInt(b.match(o[2]), 16) || 1 !== e.length && b.match(o[1]) && Date.parse(b), h = parseInt(c.match(o[2]), 16) || f && c.match(o[1]) && Date.parse(c) || null) {
- if (h > f) return -1;
- if (f > h) return 1
- }
- for (l = Math.max(e.length, g.length), k = 0; l > k; k++) {
- if (i = isNaN(e[k]) ? e[k] || 0 : parseFloat(e[k]) || 0, j = isNaN(g[k]) ? g[k] || 0 : parseFloat(g[k]) || 0, isNaN(i) !== isNaN(j)) return isNaN(i) ? 1 : -1;
- if (typeof i != typeof j && (i += "", j += ""), j > i) return -1;
- if (i > j) return 1
- }
- return 0
- }, w.sortTextDesc = function(a, b, c, d) {
- if (b === c) return 0;
- var e = a.config,
- f = e.string[e.empties[d] || e.emptyTo];
- return "" === b && 0 !== f ? "boolean" == typeof f ? f ? -1 : 1 : f || 1 : "" === c && 0 !== f ? "boolean" == typeof f ? f ? 1 : -1 : -f || -1 : "function" == typeof e.textSorter ? e.textSorter(c, b, a, d) : w.sortText(a, c, b)
- }, w.getTextValue = function(a, b, c) {
- if (b) {
- var d, e = a ? a.length : 0,
- f = b + c;
- for (d = 0; e > d; d++) f += a.charCodeAt(d);
- return c * f
- }
- return 0
- }, w.sortNumeric = function(a, b, c, d, e, f) {
- if (b === c) return 0;
- var g = a.config,
- h = g.string[g.empties[d] || g.emptyTo];
- return "" === b && 0 !== h ? "boolean" == typeof h ? h ? -1 : 1 : -h || -1 : "" === c && 0 !== h ? "boolean" == typeof h ? h ? 1 : -1 : h || 1 : (isNaN(b) && (b = w.getTextValue(b, e, f)), isNaN(c) && (c = w.getTextValue(c, e, f)), b - c)
- }, w.sortNumericDesc = function(a, b, c, d, e, f) {
- if (b === c) return 0;
- var g = a.config,
- h = g.string[g.empties[d] || g.emptyTo];
- return "" === b && 0 !== h ? "boolean" == typeof h ? h ? -1 : 1 : h || 1 : "" === c && 0 !== h ? "boolean" == typeof h ? h ? 1 : -1 : -h || -1 : (isNaN(b) && (b = w.getTextValue(b, e, f)), isNaN(c) && (c = w.getTextValue(c, e, f)), c - b)
- }, w.characterEquivalents = {
- a: "áàâãäąå",
- A: "ÁÀÂÃÄĄÅ",
- c: "çćč",
- C: "ÇĆČ",
- e: "éèêëěę",
- E: "ÉÈÊËĚĘ",
- i: "íìİîïı",
- I: "ÍÌİÎÏ",
- o: "óòôõö",
- O: "ÓÒÔÕÖ",
- ss: "ß",
- SS: "ẞ",
- u: "úùûüů",
- U: "ÚÙÛÜŮ"
- }, w.replaceAccents = function(a) {
- var b, c = "[",
- d = w.characterEquivalents;
- if (!w.characterRegex) {
- w.characterRegexArray = {};
- for (b in d) "string" == typeof b && (c += d[b], w.characterRegexArray[b] = new RegExp("[" + d[b] + "]", "g"));
- w.characterRegex = new RegExp(c + "]")
- }
- if (w.characterRegex.test(a))
- for (b in d) "string" == typeof b && (a = a.replace(w.characterRegexArray[b], b));
- return a
- }, w.isValueInArray = function(a, b) {
- var c, d = b.length;
- for (c = 0; d > c; c++)
- if (b[c][0] === a) return !0;
- return !1
- }, w.addParser = function(a) {
- var b, c = w.parsers.length,
- d = !0;
- for (b = 0; c > b; b++) w.parsers[b].id.toLowerCase() === a.id.toLowerCase() && (d = !1);
- d && w.parsers.push(a)
- }, w.getParserById = function(a) {
- var b, c = w.parsers.length;
- for (b = 0; c > b; b++)
- if (w.parsers[b].id.toLowerCase() === a.toString().toLowerCase()) return w.parsers[b];
- return !1
- }, w.addWidget = function(a) {
- w.widgets.push(a)
- }, w.getWidgetById = function(a) {
- var b, c, d = w.widgets.length;
- for (b = 0; d > b; b++)
- if (c = w.widgets[b], c && c.hasOwnProperty("id") && c.id.toLowerCase() === a.toLowerCase()) return c
- }, w.applyWidget = function(b, d) {
- b = a(b)[0];
- var e, f, g, h = b.config,
- i = h.widgetOptions,
- j = [];
- h.debug && (e = new Date), h.widgets.length && (h.widgets = a.grep(h.widgets, function(b, c) {
- return a.inArray(b, h.widgets) === c
- }), a.each(h.widgets || [], function(a, b) {
- g = w.getWidgetById(b), g && g.id && (g.priority || (g.priority = 10), j[a] = g)
- }), j.sort(function(a, b) {
- return a.priority < b.priority ? -1 : a.priority === b.priority ? 0 : 1
- }), a.each(j, function(c, e) {
- e && (d ? (e.hasOwnProperty("options") && (i = b.config.widgetOptions = a.extend(!0, {}, e.options, i)), e.hasOwnProperty("init") && e.init(b, e, h, i)) : !d && e.hasOwnProperty("format") && e.format(b, h, i, !1))
- })), h.debug && (f = h.widgets.length, c("Completed " + (d === !0 ? "initializing " : "applying ") + f + " widget" + (1 !== f ? "s" : ""), e))
- }, w.refreshWidgets = function(c, d, e) {
- c = a(c)[0];
- var f, g = c.config,
- h = g.widgets,
- i = w.widgets,
- j = i.length;
- for (f = 0; j > f; f++) i[f] && i[f].id && (d || a.inArray(i[f].id, h) < 0) && (g.debug && b("Refeshing widgets: Removing " + i[f].id), i[f].hasOwnProperty("remove") && i[f].remove(c, g, g.widgetOptions));
- e !== !0 && w.applyWidget(c, d)
- }, w.getData = function(b, c, d) {
- var e, f, g = "",
- h = a(b);
- return h.length ? (e = a.metadata ? h.metadata() : !1, f = " " + (h.attr("class") || ""), "undefined" != typeof h.data(d) || "undefined" != typeof h.data(d.toLowerCase()) ? g += h.data(d) || h.data(d.toLowerCase()) : e && "undefined" != typeof e[d] ? g += e[d] : c && "undefined" != typeof c[d] ? g += c[d] : " " !== f && f.match(" " + d + "-") && (g = f.match(new RegExp("\\s" + d + "-([\\w-]+)"))[1] || ""), a.trim(g)) : ""
- }, w.formatFloat = function(b, c) {
- if ("string" != typeof b || "" === b) return b;
- var d, e = c && c.config ? c.config.usNumberFormat !== !1 : "undefined" != typeof c ? c : !0;
- return b = e ? b.replace(/,/g, "") : b.replace(/[\s|\.]/g, "").replace(/,/g, "."), /^\s*\([.\d]+\)/.test(b) && (b = b.replace(/^\s*\(/, "-").replace(/\)/, "")), d = parseFloat(b), isNaN(d) ? a.trim(b) : d
- }, w.isDigit = function(a) {
- return isNaN(a) ? /^[\-+(]?\d+[)]?$/.test(a.toString().replace(/[,.'"\s]/g, "")) : !0
- }
- }
- });
- var b = a.tablesorter;
- a.fn.extend({
- tablesorter: b.construct
- }), b.addParser({
- id: "text",
- is: function() {
- return !0
- },
- format: function(c, d) {
- var e = d.config;
- return c && (c = a.trim(e.ignoreCase ? c.toLocaleLowerCase() : c), c = e.sortLocaleCompare ? b.replaceAccents(c) : c), c
- },
- type: "text"
- }), b.addParser({
- id: "digit",
- is: function(a) {
- return b.isDigit(a)
- },
- format: function(c, d) {
- var e = b.formatFloat((c || "").replace(/[^\w,. \-()]/g, ""), d);
- return c && "number" == typeof e ? e : c ? a.trim(c && d.config.ignoreCase ? c.toLocaleLowerCase() : c) : c
- },
- type: "numeric"
- }), b.addParser({
- id: "currency",
- is: function(a) {
- return /^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((a || "").replace(/[,. ]/g, ""))
- },
- format: function(c, d) {
- var e = b.formatFloat((c || "").replace(/[^\w,. \-()]/g, ""), d);
- return c && "number" == typeof e ? e : c ? a.trim(c && d.config.ignoreCase ? c.toLocaleLowerCase() : c) : c
- },
- type: "numeric"
- }), b.addParser({
- id: "ipAddress",
- is: function(a) {
- return /^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(a)
- },
- format: function(a, c) {
- var d, e = a ? a.split(".") : "",
- f = "",
- g = e.length;
- for (d = 0; g > d; d++) f += ("00" + e[d]).slice(-3);
- return a ? b.formatFloat(f, c) : a
- },
- type: "numeric"
- }), b.addParser({
- id: "url",
- is: function(a) {
- return /^(https?|ftp|file):\/\//.test(a)
- },
- format: function(b) {
- return b ? a.trim(b.replace(/(https?|ftp|file):\/\//, "")) : b
- },
- type: "text"
- }), b.addParser({
- id: "isoDate",
- is: function(a) {
- return /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(a)
- },
- format: function(a, c) {
- return a ? b.formatFloat("" !== a ? new Date(a.replace(/-/g, "/")).getTime() || "" : "", c) : a
- },
- type: "numeric"
- }), b.addParser({
- id: "percent",
- is: function(a) {
- return /(\d\s?%|%\s?\d)/.test(a)
- },
- format: function(a, c) {
- return a = a.replace(",", "."), a ? b.formatFloat(a.replace(/%/g, ""), c) : a
- },
- type: "numeric"
- }), b.addParser({
- id: "usLongDate",
- is: function(a) {
- return /^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(a) || /^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(a)
- },
- format: function(a, c) {
- return a ? b.formatFloat(new Date(a.replace(/(\S)([AP]M)$/i, "$1 $2")).getTime() || "", c) : a
- },
- type: "numeric"
- }), b.addParser({
- id: "shortDate",
- is: function(a) {
- return /(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((a || "").replace(/\s+/g, " ").replace(/[\-.,]/g, "/"))
- },
- format: function(a, c, d, e) {
- if (a) {
- var f = c.config,
- g = f.headerList[e],
- h = g.shortDateFormat;
- "undefined" == typeof h && (h = g.shortDateFormat = b.getData(g, f.headers[e], "dateFormat") || f.dateFormat), a = a.replace(/\s+/g, " ").replace(/[\-.,]/g, "/"), "mmddyyyy" === h ? a = a.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/, "$3/$1/$2") : "ddmmyyyy" === h ? a = a.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/, "$3/$2/$1") : "yyyymmdd" === h && (a = a.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/, "$1/$2/$3"))
- }
- return a ? b.formatFloat(new Date(a).getTime() || "", c) : a
- },
- type: "numeric"
- }), b.addParser({
- id: "time",
- is: function(a) {
- return /^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(a)
- },
- format: function(a, c) {
- return a ? b.formatFloat(new Date("2000/01/01 " + a.replace(/(\S)([AP]M)$/i, "$1 $2")).getTime() || "", c) : a
- },
- type: "numeric"
- }), b.addParser({
- id: "metadata",
- is: function() {
- return !1
- },
- format: function(b, c, d) {
- var e = c.config,
- f = e.parserMetadataName ? e.parserMetadataName : "sortValue";
- return a(d).metadata()[f]
- },
- type: "numeric"
- }), b.addWidget({
- id: "zebra",
- priority: 90,
- format: function(c, d, e) {
- var f, g, h, i, j, k, l, m, n = new RegExp(d.cssChildRow, "i"),
- o = d.$tbodies;
- for (d.debug && (k = new Date), l = 0; l < o.length; l++) f = o.eq(l), m = f.children("tr").length, m > 1 && (i = 0, g = f.children("tr:visible"), g.each(function() {
- h = a(this), n.test(this.className) || i++, j = i % 2 === 0, h.removeClass(e.zebra[j ? 1 : 0]).addClass(e.zebra[j ? 0 : 1])
- }));
- d.debug && b.benchmark("Applying Zebra widget", k)
- },
- remove: function(b, c, d) {
- var e, f, g = c.$tbodies,
- h = (d.zebra || ["even", "odd"]).join(" ");
- for (e = 0; e < g.length; e++) f = a.tablesorter.processTbody(b, g.eq(e), !0), f.children().removeClass(h), a.tablesorter.processTbody(b, f, !1)
- }
- })
- }(jQuery),
- function(a) {
- "use strict";
- function b(a, b) {
- var c = g.indexOf(a.charAt(b));
- if (-1 === c) throw "Cannot decode base64";
- return c
- }
- function c(a) {
- var c, d, e = 0,
- g = a.length,
- h = [];
- if (a = String(a), 0 === g) return a;
- if (g % 4 !== 0) throw "Cannot decode base64";
- for (a.charAt(g - 1) === f && (e = 1, a.charAt(g - 2) === f && (e = 2), g -= 4), c = 0; g > c; c += 4) d = b(a, c) << 18 | b(a, c + 1) << 12 | b(a, c + 2) << 6 | b(a, c + 3), h.push(String.fromCharCode(d >> 16, d >> 8 & 255, 255 & d));
- switch (e) {
- case 1:
- d = b(a, c) << 18 | b(a, c + 1) << 12 | b(a, c + 2) << 6, h.push(String.fromCharCode(d >> 16, d >> 8 & 255));
- break;
- case 2:
- d = b(a, c) << 18 | b(a, c + 1) << 12, h.push(String.fromCharCode(d >> 16))
- }
- return h.join("")
- }
- function d(a, b) {
- var c = a.charCodeAt(b);
- if (c > 255) throw "INVALID_CHARACTER_ERR: DOM Exception 5";
- return c
- }
- function e(a) {
- if (1 !== arguments.length) throw "SyntaxError: exactly one argument required";
- a = String(a);
- var b, c, e = [],
- h = a.length - a.length % 3;
- if (0 === a.length) return a;
- for (b = 0; h > b; b += 3) c = d(a, b) << 16 | d(a, b + 1) << 8 | d(a, b + 2), e.push(g.charAt(c >> 18)), e.push(g.charAt(c >> 12 & 63)), e.push(g.charAt(c >> 6 & 63)), e.push(g.charAt(63 & c));
- switch (a.length - h) {
- case 1:
- c = d(a, b) << 16, e.push(g.charAt(c >> 18) + g.charAt(c >> 12 & 63) + f + f);
- break;
- case 2:
- c = d(a, b) << 16 | d(a, b + 1) << 8, e.push(g.charAt(c >> 18) + g.charAt(c >> 12 & 63) + g.charAt(c >> 6 & 63) + f)
- }
- return e.join("")
- }
- var f = "=",
- g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
- h = "1.0";
- a.base64 = {
- decode: c,
- encode: e,
- VERSION: h
- }
- }(jQuery),
- function(a) {
- "use strict";
- function b(a) {
- for (var b = 0, c = a.length, d = [];;) {
- if (b >= c) break;
- null === q[a.charAt(b)] ? d[b] = 247 : d[b] = q[a.charAt(b)], b += 1
- }
- return d
- }
- function c(a) {
- for (var b = 0, c = a.length, d = "";;) {
- if (b >= c) break;
- d += r[255 & a[b]], b += 1
- }
- return d
- }
- function d(a) {
- for (var b, c = -1, d = a.length, e = 0, f = [];;) {
- for (;;) {
- if (c += 1, c >= d) return f;
- if (null != p[a.charAt(c)]) break
- }
- for (f[e] = p[a.charAt(c)] << 2;;) {
- if (c += 1, c >= d) return f;
- if (null != p[a.charAt(c)]) break
- }
- if (b = p[a.charAt(c)], f[e] |= b >>> 4, e += 1, b = 15 & b, 0 === b && c === d - 1) return f;
- for (f[e] = b << 4;;) {
- if (c += 1, c >= d) return f;
- if (null != p[a.charAt(c)]) break
- }
- if (b = p[a.charAt(c)], f[e] |= b >>> 2, e += 1, b = 3 & b, 0 === b && c === d - 1) return f;
- for (f[e] = b << 6;;) {
- if (c += 1, c >= d) return f;
- if (null != p[a.charAt(c)]) break
- }
- f[e] |= p[a.charAt(c)], e += 1
- }
- }
- function e(a) {
- for (var b = [], c = 0, d = 0, e = a.length;;) {
- if (b[c] = (255 & a[d]) << 24, d += 1, d >= e) break;
- if (b[c] |= (255 & a[d]) << 16, d += 1, d >= e) break;
- if (b[c] |= (255 & a[d]) << 8, d += 1, d >= e) break;
- if (b[c] |= 255 & a[d], d += 1, d >= e) break;
- c += 1
- }
- return b
- }
- function f(a) {
- for (var b = [], c = 0, d = 0, e = a.length;;) {
- if (d >= e) break;
- b[c] = 255 & a[d] >>> 24, c += 1, b[c] = 255 & a[d] >>> 16, c += 1, b[c] = 255 & a[d] >>> 8, c += 1, b[c] = 255 & a[d], c += 1, d += 1
- }
- return b
- }
- function g(a) {
- var b, c = [],
- d = 0,
- e = 0,
- f = a.length,
- g = 15 - f % 16;
- for (c[d] = g, d += 1; f > e;) c[d] = a[e], d += 1, e += 1;
- for (b = g; b > 0;) c[d] = 0, d += 1, b -= 1;
- return c
- }
- function h(a) {
- var b, c = 0,
- d = [],
- e = 0,
- f = 7 & a[c];
- for (c += 1, b = a.length - f; b > c;) d[e] = a[c], e += 1, c += 1;
- return d
- }
- function i(a, c) {
- var d, f, h = [],
- i = [],
- j = [],
- m = [],
- n = [],
- o = [],
- p = 0,
- q = [];
- for (h[0] = 1633837924, h[1] = 1650680933, h[2] = 1667523942, h[3] = 1684366951, i[0] = 1633837924, i[1] = 1650680933, j = i, o = e(g(b(a))), f = o.length;;) {
- if (p >= f) break;
- m[0] = o[p], p += 1, m[1] = o[p], p += 1, n[0] = o[p], p += 1, n[1] = o[p], p += 1, i = l(k(m, i), h), j = l(k(n, j), h), d = i[0], i[0] = i[1], i[1] = j[0], j[0] = j[1], j[1] = d
- }
- return q[0] = i[0], q[1] = i[1], q[2] = j[0], q[3] = j[1], q
- }
- function j(a, b) {
- if (!b) return alert("decrypt: no key"), !1;
- var d = [];
- if (d = i(b), !a) return "";
- var e = [];
- e = n(a);
- var g = 0,
- j = e.length,
- l = [];
- l[0] = 1633837924, l[1] = 1650680933;
- for (var o = [], p = [], q = [], r = 0;;) {
- if (g >= j) break;
- p[0] = e[g], g += 1, p[1] = e[g], g += 1, o = k(l, m(p, d)), q[r] = o[0], r += 1, q[r] = o[1], r += 1, l[0] = p[0], l[1] = p[1]
- }
- return c(h(f(q)))
- }
- function k(a, b) {
- var c = [];
- return c[0] = a[0] ^ b[0], c[1] = a[1] ^ b[1], c
- }
- function l(a, b) {
- for (var c = a[0], d = a[1], e = 0, f = 32; f-- > 0;) c += (d << 4 ^ d >>> 5) + d ^ e + b[3 & e], c = 0 | c, e -= 1640531527, e = 0 | e, d += (c << 4 ^ c >>> 5) + c ^ e + b[e >>> 11 & 3], d = 0 | d;
- var g = [];
- return g[0] = c, g[1] = d, g
- }
- function m(a, b) {
- var c = a[0],
- d = a[1],
- e = 0,
- f = 32;
- for (e = -957401312; f-- > 0;) d -= (c << 4 ^ c >>> 5) + c ^ e + b[e >>> 11 & 3], d = 0 | d, e += 1640531527, e = 0 | e, c -= (d << 4 ^ d >>> 5) + d ^ e + b[3 & e], c = 0 | c;
- var g = [];
- return g[0] = c, g[1] = d, g
- }
- function n(a) {
- return e(d(a))
- }
- var o, p, q, r, s;
- q = {}, q["\x00"] = 0, q[""] = 1, q[""] = 2, q[""] = 3, q[""] = 4, q[""] = 5, q[""] = 6, q[""] = 7, q["\b"] = 8, q[" "] = 9, q["\n"] = 10, q[""] = 11, q["\f"] = 12, q["\r"] = 13, q[""] = 14, q[""] = 15, q[""] = 16, q[""] = 17, q[""] = 18, q[""] = 19, q[""] = 20, q[""] = 21, q[""] = 22, q[""] = 23, q[""] = 24, q[""] = 25, q[""] = 26, q[""] = 27, q[""] = 28, q[""] = 29, q[""] = 30, q[""] = 31, q[" "] = 32, q["!"] = 33, q['"'] = 34, q["#"] = 35, q.$ = 36, q["%"] = 37, q["&"] = 38, q["'"] = 39, q["("] = 40, q[")"] = 41, q["*"] = 42, q["+"] = 43, q[","] = 44, q["-"] = 45, q["."] = 46, q["/"] = 47, q[0] = 48, q[1] = 49, q[2] = 50, q[3] = 51, q[4] = 52, q[5] = 53, q[6] = 54, q[7] = 55, q[8] = 56, q[9] = 57, q[":"] = 58, q[";"] = 59, q["<"] = 60, q["="] = 61, q[">"] = 62, q["?"] = 63, q["@"] = 64, q.A = 65, q.B = 66, q.C = 67, q.D = 68, q.E = 69, q.F = 70, q.G = 71, q.H = 72, q.I = 73, q.J = 74, q.K = 75, q.L = 76, q.M = 77, q.N = 78, q.O = 79, q.P = 80, q.Q = 81, q.R = 82, q.S = 83, q.T = 84, q.U = 85, q.V = 86, q.W = 87, q.X = 88, q.Y = 89, q.Z = 90, q["["] = 91, q["\\"] = 92, q["]"] = 93, q["^"] = 94, q._ = 95, q["`"] = 96, q.a = 97, q.b = 98, q.c = 99, q.d = 100, q.e = 101, q.f = 102, q.g = 103, q.h = 104, q.i = 105, q.j = 106, q.k = 107, q.l = 108, q.m = 109, q.n = 110, q.o = 111, q.p = 112, q.q = 113, q.r = 114, q.s = 115, q.t = 116, q.u = 117, q.v = 118, q.w = 119, q.x = 120, q.y = 121, q.z = 122, q["{"] = 123, q["|"] = 124, q["}"] = 125, q["~"] = 126, q[""] = 127, q[""] = 128, q[""] = 129, q[""] = 130, q[""] = 131, q[""] = 132, q[" "] = 133, q[""] = 134, q[""] = 135, q[""] = 136, q[""] = 137, q[""] = 138, q[""] = 139, q[""] = 140, q[""] = 141, q[""] = 142, q[""] = 143, q[""] = 144, q[""] = 145, q[""] = 146, q[""] = 147, q[""] = 148, q[""] = 149, q[""] = 150, q[""] = 151, q[""] = 152, q[""] = 153, q[""] = 154, q[""] = 155, q[""] = 156, q[""] = 157, q[""] = 158, q[""] = 159, q[" "] = 160, q["¡"] = 161, q["¢"] = 162, q["£"] = 163, q["¤"] = 164, q["¥"] = 165, q["¦"] = 166, q["§"] = 167, q["¨"] = 168, q["©"] = 169, q["ª"] = 170, q["«"] = 171, q["¬"] = 172, q[""] = 173, q["®"] = 174, q["¯"] = 175, q["°"] = 176, q["±"] = 177, q["²"] = 178, q["³"] = 179, q["´"] = 180, q["µ"] = 181, q["¶"] = 182, q["·"] = 183, q["¸"] = 184, q["¹"] = 185, q["º"] = 186, q["»"] = 187, q["¼"] = 188, q["½"] = 189, q["¾"] = 190, q["¿"] = 191, q["À"] = 192, q["Á"] = 193, q["Â"] = 194, q["Ã"] = 195, q["Ä"] = 196, q["Å"] = 197, q["Æ"] = 198, q["Ç"] = 199, q["È"] = 200, q["É"] = 201, q["Ê"] = 202, q["Ë"] = 203, q["Ì"] = 204, q["Í"] = 205, q["Î"] = 206, q["Ï"] = 207, q["Ð"] = 208, q["Ñ"] = 209, q["Ò"] = 210, q["Ó"] = 211, q["Ô"] = 212, q["Õ"] = 213, q["Ö"] = 214, q["×"] = 215, q["Ø"] = 216, q["Ù"] = 217, q["Ú"] = 218, q["Û"] = 219, q["Ü"] = 220, q["Ý"] = 221, q["Þ"] = 222, q["ß"] = 223, q["à"] = 224, q["á"] = 225, q["â"] = 226, q["ã"] = 227, q["ä"] = 228, q["å"] = 229, q["æ"] = 230, q["ç"] = 231, q["è"] = 232, q["é"] = 233, q["ê"] = 234, q["ë"] = 235, q["ì"] = 236, q["í"] = 237, q["î"] = 238, q["ï"] = 239, q["ð"] = 240, q["ñ"] = 241, q["ò"] = 242, q["ó"] = 243, q["ô"] = 244, q["õ"] = 245, q["ö"] = 246, q["÷"] = 247, q["ø"] = 248, q["ù"] = 249, q["ú"] = 250, q["û"] = 251, q["ü"] = 252, q["ý"] = 253, q["þ"] = 254, q["ÿ"] = 255, r = {};
- for (o in q) q.hasOwnProperty(o) && (r[q[o]] = o);
- p = {}, p.A = 0, p.B = 1, p.C = 2, p.D = 3, p.E = 4, p.F = 5, p.G = 6, p.H = 7, p.I = 8, p.J = 9, p.K = 10, p.L = 11, p.M = 12, p.N = 13, p.O = 14, p.P = 15, p.Q = 16, p.R = 17, p.S = 18, p.T = 19, p.U = 20, p.V = 21, p.W = 22, p.X = 23, p.Y = 24, p.Z = 25, p.a = 26, p.b = 27, p.c = 28, p.d = 29, p.e = 30, p.f = 31, p.g = 32, p.h = 33, p.i = 34, p.j = 35, p.k = 36, p.l = 37, p.m = 38, p.n = 39, p.o = 40, p.p = 41, p.q = 42, p.r = 43, p.s = 44, p.t = 45, p.u = 46, p.v = 47, p.w = 48, p.x = 49, p.y = 50, p.z = 51, p[0] = 52, p[1] = 53, p[2] = 54, p[3] = 55, p[4] = 56, p[5] = 57, p[6] = 58, p[7] = 59, p[8] = 60, p[9] = 61, p["-"] = 62, p._ = 63, s = {};
- for (o in p) p.hasOwnProperty(o) && (s[p[o]] = o.toString());
- a.teajs = {
- decrypt: j
- }
- }(jQuery),
- function(a) {
- "use strict";
- a.fn.jcarousel = function(b) {
- var c, d, e, f, g, h, i, j, k, l, m, n = !0,
- o = {},
- p = function() {
- l && (clearTimeout(m), m = setTimeout(s.onAutoScroll, s.delay))
- },
- q = function() {
- s.show_pips === !0 && (i.removeClass("jcarousel-pip-selected"), a(i[k - 1]).addClass("jcarousel-pip-selected"))
- },
- r = {
- page_width: 400,
- delay: 5e3,
- show_pips: !0,
- multipage: !1,
- arrow_width: 40,
- onNext: function(a) {
- var b = function() {
- d.css({
- marginLeft: "+=" + s.page_width
- }), d.append(e[0]), n = !0
- };
- if (n) {
- if (d.is(":animated")) return !1;
- n = !1, e = c.find(".page"), d.animate({
- marginLeft: "-=" + s.page_width
- }, a === !0 ? 0 : 400, b), p(), k += 1, k > j && (k = 1), q()
- }
- },
- onPrevious: function(a) {
- var b = function() {
- d.css({
- marginLeft: "-=" + s.page_width
- }), d.prepend(e[e.length - 1]), n = !0
- };
- if (n) {
- if (d.is(":animated")) return !1;
- n = !1, e = c.find(".page"), b(), d.animate({
- marginLeft: "+=" + s.page_width
- }, a === !0 ? 0 : 400), p(), k -= 1, 0 >= k && (k = j), q()
- }
- },
- onAutoScroll: function() {
- l && (d.is(":hover") || f.is(":hover") || g.is(":hover")) ? p() : r.onNext()
- },
- scrollTo: function(a) {
- var b, c = k - (a + 1);
- if (0 > c)
- for (b = c; 0 > b; b += 1) s.onNext(!0);
- else if (c > 0)
- for (b = 0; c > b; b += 1) s.onPrevious(!0)
- },
- onPipClick: function() {
- var b = a(this);
- s.scrollTo(b.data("idx"))
- },
- updateOrientation: function(a) {
- var b = c.parent().width();
- s.page_width = b, c.width(b), d.width((s.page_width + s.arrow_width) * j), e.css("width", s.page_width), e.css("height", s.height * (s.page_width / s.original.w)), c.width() < 400 ? c.closest(".opta-widget-container").addClass("narrow") : c.closest(".opta-widget-container").removeClass("narrow")
- },
- onTouchStart: function(a) {
- var b = a.originalEvent.changedTouches[0];
- o.startX = b.pageX, o.startY = b.pageY, o.moved = !1, o.scrolling = !1
- },
- onTouchMove: function(a) {
- var b = a.originalEvent.changedTouches[0],
- c = Math.abs(b.pageX - o.startX),
- d = Math.abs(b.pageY - o.startY);
- c > 10 && !o.moved && !o.scrolling ? "A" !== a.target.tagName && (o.startX - b.pageX > 0 ? s.onNext() : s.onPrevious(), o.moved = !0, a.preventDefault()) : (d > 10 || o.scrolling) && (o.scrolling = !0)
- },
- onTouchEnd: function(a) {
- o.moved = !1, o.scrolling = !1
- }
- },
- s = a.extend({}, r, b);
- return this.each(function() {
- var b, m, o, q = function() {
- var a, b, c = "";
- for (c += '<div class="jcarousel-pips">', a = 0; a < e.length; a += 1) b = 0 === a ? " jcarousel-pip-selected" : "", c += '<span class="jcarousel-pip' + b + '" data-idx="' + a + '">●</span> ';
- return c += "</div>"
- },
- r = function() {
- n && s.updateOrientation(s)
- };
- if (c = a(this), d = c.find(".strip"), e = c.find(".page"), j = e.length, s.multipage) {
- for (c.addClass("multipage"), s.page_width -= s.arrow_width, b = s.per_page || Math.round(s.page_width / s.width), m = 0; j / b > m; m += 1) o = c.find(".page:nth-child(n+" + (m * b + 1) + "):nth-child(-n+" + (m + 1) * b + ")").addClass("pageset pageset-" + m).data("set", m).removeClass("page").width(s.page_width / b);
- for (m = 0; j / b > m; m += 1) c.find(".pageset-" + m).wrapInner('<div class="page-contents"></div>').wrapAll('<div class="page"></div>');
- d = c.find(".strip"), e = c.find(".page"), j = e.length, s.page_width += s.arrow_width
- }
- c.addClass("jcarousel"), d.width((s.page_width + s.arrow_width) * j), void 0 === navigator || "iPad" !== navigator.platform && "iPhone" !== navigator.platform || d.parent().width(s.page_width), e.css("width", s.page_width), e.css("height", s.height), void 0 !== navigator && "Win32" !== navigator.platform && -1 === navigator.userAgent.indexOf("MSIE 10.0") && e.find("img").attr("height", "").attr("width", ""), s.original = {
- w: s.page_width,
- h: s.height
- }, j > 1 && (f = a('<div class="jcarousel-sprite jcarousel-nav jcarousel-next"></div>'), g = a('<div class="jcarousel-sprite jcarousel-nav jcarousel-previous"></div>'), c.append(g), c.append(f)), k = 1, s.show_pips === !0 && (h = a(q()), c.parent().append(h), i = h.find(".jcarousel-pip"), i.on("click", s.onPipClick)), j > 1 && (f.on("click", s.onNext), g.on("click", s.onPrevious), c.on("touchstart", s.onTouchStart), c.on("touchmove", s.onTouchMove), c.on("touchend", s.onTouchEnd), $jqOpta.events.subscribe("widget.screensize.*", $jqOpta._.debounce(function() {
- r()
- }, 250))), l = Number(s.delay) > 0 && j > 1, j > 1 && p()
- })
- }
- }(jQuery);
- var $jqOpta = jQuery.noConflict(!0);
- if ("undefined" == typeof opta_widget_id) var opta_widget_id = -1;
- $jqOpta.bootstrapped = new $jqOpta.Deferred, $jqOpta.booting = !1, $jqOpta.booted = !1, $jqOpta.kickstart = !1, $jqOpta.expansions = {}, $jqOpta.events = $jqOpta.postal.channel("Events"), $jqOpta.widgets = {}, $jqOpta.m = {}, $jqOpta.components = {}, $jqOpta.pd = [], $jqOpta.hasLocalStorage = function() {
- "use strict";
- var a = "OptaV2";
- try {
- return localStorage.setItem(a, a), localStorage.removeItem(a), !0
- } catch (b) {
- return !1
- }
- }(), $jqOpta.Widget = function(a) {
- "use strict";
- a.load_width = $jqOpta("#opta-widget-id-" + a.id).width() || Number(a.data.width) || void 0, a.narrow = (a.data.load_width || 0) < (Number(a.data.narrow_limit) || 0), this.optaWidget = a, void 0 === $jqOpta[a.widget_name] && console && "function" == typeof console.error ? console.error(a.widget_name + " not found") : this.widget = new $jqOpta[a.widget_name](a)
- }, $jqOpta.Widget.prototype.destroy = function(a) {
- "use strict";
- "function" == typeof this.widget.destroy ? this.widget.destroy(a) : a && $jqOpta("#opta-widget-idx-" + this.optaWidget.id).remove(), delete $jqOpta.widgets[this.optaWidget.id], delete this.optaWidget, delete this.widget
- }, $jqOpta(function() {
- "use strict";
- void 0 !== _optaParams && (void 0 !== _optaParams.sync && "delay" === _optaParams.sync ? $jqOpta(window).load(function() {
- $jqOpta.widgetStart(_optaParams)
- }) : "wait" !== _optaParams.sync && $jqOpta.widgetStart(_optaParams)), $jqOpta.ajaxSetup({
- cache: !0
- })
- }),
- function() {
- "use strict";
- var a = (window._optaParams || {}, function() {
- var a = $jqOpta.trn("loading"),
- b = 0,
- c = function() {
- var a = 0;
- $jqOpta("div.opta-widget-container").size() > 0 && $jqOpta("div.opta-widget-container").each(function() {
- if (void 0 !== $jqOpta(this).attr("id")) {
- var b = Number($jqOpta(this).attr("id").substring(16));
- b >= a && (a = b + 1)
- }
- }), b = a
- };
- $jqOpta.gaTracking(), $jqOpta.analytics = new $jqOpta.Analytics, c(), $jqOpta.utils.isRetina(), $jqOpta.kickstart = !1, $jqOpta("opta:not(opta opta)").each(function(c) {
- var d, e, f, g, h, i, j = {},
- k = $jqOpta(this),
- l = k.find("opta"),
- m = "",
- n = k.attr("widget"),
- o = !1,
- p = [],
- q = [],
- r = !0;
- if (c += b, "incremental" === $jqOpta.settings.id_type && (opta_widget_id += 1, c = opta_widget_id), void 0 !== k.attr("id_suffix") && (c = k.attr("id_suffix")), g = {
- id: c,
- idx: "#opta-widget-idx-" + c,
- kids: l
- }, void 0 === k.attr("load") || "false" !== k.attr("load")) {
- if ($jqOpta.each(k.context.attributes, function(a, b) {
- j[b.name] = b.value
- }), h = $jqOpta.getSportId(j.actual_sport || j.sport || "football"), f = j.competition || j.competition_p1 || j.competition1 || j.competition_p2 || j.competition2, p = f.split(","), void 0 === j.tpl_src && 3 === h) {
- if (void 0 !== $jqOpta.permittedWidgets[n] && void 0 !== $jqOpta.permittedWidgets[n][h])
- for (i in p) p.hasOwnProperty(i) && q.push(p[i])
- } else if (/sd$/.test(j.actual_sport || j.sport)) o = !0;
- else
- for (i in p) p.hasOwnProperty(i) && ((97 === h || 98 === h || 99 === h) && (p[i] = Number(p[i].replace(/[^\d]/g, ""))), ($jqOpta.permittedWidget(n, h, p[i], k.attr("sub")) || "adwidget" === n) && q.push(p[i]));
- if ($jqOpta.optaTags.push({
- data: j,
- tag: k.context.outerHTML,
- permitted: q.length > 0
- }), o || q.length > 0 || $jqOpta(this).attr("tpl_src")) {
- if (("matchstats" === n || "matchstatsplus" === n || "teamstats" === n || "playercompare" === n || "teamstatsplus" === n || "pro_matchstats" === n || "seasonalteamstats" === n) && (m = void 0 === $jqOpta(this).attr("sub") ? "" : "_" + $jqOpta(this).attr("sub")), "ticker" === $jqOpta(j).attr("widget") && (j.live = "true"), d = $jqOpta('<div id="opta-widget-id-' + c + '" class="opta-loader"><p>' + a + "</p></div>"), g.data = j, k.replaceWith(d), g.dom = $jqOpta(g.idx), "formation" === n || "averageposition" === n || "chalkboard" === n || "passingcombination" === n || "wagonwheel" === n ? "undefined" == typeof HTMLCanvasElement && ($jqOpta.loadError(g, {
- title: $jqOpta.trn("This widget did not load"),
- message: $jqOpta.trn("No browser support")
- }), r = !1) : "heatmap" === n && "undefined" != typeof HTMLCanvasElement ? n = "heatmapcanvas" : "heatmapflash" === n && (n = "heatmap"), r) {
- switch (e = j.sport, j.sport) {
- case "icehockey":
- "livescore" === n && (e = "basketball");
- break;
- case "rugby":
- ("commentary" === n || "matchstats" === n && "_teamstats" === m || "matchstats" === n && "_lineup" === m || "standings" === n) && (e = "football");
- break;
- case "rugbyleague":
- ("refereedata" === n || "squadprofile" === n) && (e = "rugby")
- }
- g.data.opta_widget = void 0 === g.data.sub ? g.data.widget : g.data.widget + "_" + g.data.sub, $jqOpta.loadTemplate(e, n, m, g)
- }
- } else g.data = j, $jqOpta.events.trigger.permissionDenied(g)
- }
- }), $jqOpta.booted = !0, $jqOpta.booting = !1, $jqOpta.kickstart === !0 && $jqOpta.reload()
- });
- $jqOpta.optaTags = [], $jqOpta.gmtChangeover = {
- spring: 1459044e6,
- fall: 14777892e5
- }, $jqOpta.gmtOffset = (new Date).getTime() > $jqOpta.gmtChangeover.spring ? 1 : 0, $jqOpta.reload = function() {
- return $jqOpta.booted === !1 && $jqOpta.booting === !1 ? $jqOpta.widgetStart(_optaParams) : void($jqOpta.booting === !0 && $jqOpta.booted === !1 ? $jqOpta.kickstart = !0 : $jqOpta.booted === !0 && $jqOpta.booting === !1 && a())
- }, $jqOpta.widgetStart = function(b) {
- var c, d, e = {
- anim: "none",
- language: "en",
- timezone: 0,
- callbacks: []
- },
- f = $jqOpta.extend(e, b),
- g = function() {
- var b = $jqOpta.settings.widgetFeedBaseUrl + "../customer/c_" + f.custID + ".json",
- c = function(a) {
- var b, c, d, e, g, h, i, j, k = {};
- for ($jqOpta.settings.sdapi_outlet_auth_token = $jqOpta.settings.sdapi_outlet_auth_token || a["@attributes"].sdapi_key || "", f.customer_id = a["@attributes"].id, $jqOpta.settings.customer_id = f.customer_id, a.subscriptions.sport instanceof Array || (a.subscriptions.sport = [a.subscriptions.sport]), b = 0; b < a.subscriptions.sport.length; b += 1)
- for (c = a.subscriptions.sport[b], d = Number(c["@attributes"].id), c.comp instanceof Array || (c.comp = [c.comp]), e = 0; e < c.comp.length; e += 1)
- for (g = c.comp[e], h = Number(g["@attributes"].id), g.widget instanceof Array || (g.widget = [g.widget]), i = 0; i < g.widget.length; i += 1) j = g.widget[i]["@attributes"], k[j.name] = k[j.name] || {}, k[j.name][d] = k[j.name][d] || {}, k[j.name][d][h] = !0;
- return void 0 !== k.heatmap && (k.heatmapflash = $jqOpta.extend(k.heatmapflash, k.heatmap), k.heatmapcanvas = $jqOpta.extend(k.heatmapcanvas, k.heatmap)), $jqOpta.permittedWidgets = k, k
- },
- d = function(a) {
- var b, c, d, e, g, h, i, j, k, l, m;
- if (a.translations && a.translations.translation_set)
- for (a.translations.translation_set instanceof Array || (a.translations.translation_set = [a.translations.translation_set]), b = 0; b < a.translations.translation_set.length; b += 1)
- for (c = a.translations.translation_set[b], d = Number(c["@attributes"].trans_id), c.lang instanceof Array || (c.lang = [c.lang]), g = 0; g < c.lang.length; g += 1)
- for (h = c.lang[g], e = h["@attributes"].id, h.translation instanceof Array || (h.translation = [h.translation]), i = 0; i < h.translation.length; i += 1)
- for (j = h.translation[i], k = j["@attributes"].type, j.file instanceof Array || (j.file = [j.file]), l = 0; l < j.file.length; l += 1) switch (m = j.file[l] ? j.file[l]["@attributes"] : !1, k) {
- case "CP":
- $jqOpta.trans.files[k + "_" + f.customer_id + "_" + d + "_" + e.replace("-", "_") + "_" + m.sport + "_" + m.season] = !0;
- break;
- case "TN":
- $jqOpta.trans.files[k + "_" + f.customer_id + "_" + d + "_" + e.replace("-", "_") + "_" + m.sport + "_" + m.season + "_" + m.competition] = !0;
- break;
- case "PN":
- $jqOpta.trans.files[k + "_" + f.customer_id + "_" + d + "_" + e.replace("-", "_") + "_" + m.sport + "_" + m.season + "_" + m.competition + "_" + m.team] = !0;
- break;
- case "WT":
- $jqOpta.trans.files[k + "_" + f.customer_id + "_" + d + "_" + e.replace("-", "_")] = !0
- }
- },
- e = function(a) {
- $jqOpta.pd = $jqOpta.utils.fixSingle(a.domain)
- };
- $jqOpta.ajax({
- url: b,
- cache: !0,
- dataType: "jsonp",
- jsonp: !1,
- jsonpCallback: "c_" + f.custID,
- timeout: 1e4,
- success: function(b) {
- var f = function() {
- var a, b, c, d = $jqOpta.pd,
- e = d.length,
- f = ["hostname", "location"],
- g = document[f[1]][f[0]];
- if (d instanceof Array)
- for (a = 0; e > a; a += 1) {
- if (b = d[a], b === g) return !0;
- if (b = b.replace(/\*/g, "[^ ]*"), c = new RegExp("^" + b + "$"), g.match(c)) return !0
- }
- return !1
- };
- c(b), d(b), e(b), $jqOpta.dmok = f(), $jqOpta.trans.load.widget(function() {
- $jqOpta.events.publish("widget.application.init", $jqOpta.settings), $jqOpta.bootstrapped.resolve(), a()
- })
- },
- error: function(a, b, c) {
- console.log("Error", a, b, c)
- }
- })
- },
- h = function() {
- var a = window.addEventListener || window.attachEvent,
- b = window.addEventListener ? "" : window.attachEvent ? "on" : "",
- c = $jqOpta(window),
- d = {
- w: c.width(),
- h: c.height()
- },
- e = function() {
- var a = c.width(),
- b = c.height();
- return d.w !== a ? (d = {
- w: a,
- h: b
- }, !0) : !1
- };
- a(b + "orientationchange", $jqOpta._.throttle(function() {
- e() && $jqOpta.events.publish("widget.screensize.orientationchange", d)
- }, 250), !1), a(b + "resize", $jqOpta._.throttle(function() {
- e() && $jqOpta.events.publish("widget.screensize.resize", d)
- }, 250), !1)
- };
- if ($jqOpta.booting === !0 || $jqOpta.booted === !0) return $jqOpta.kickstart = !0, void $jqOpta.reload();
- switch ($jqOpta.booting = !0, $jqOpta.hasLocalStorage && $jqOpta.storage.clearStorage(), $jqOpta.extend($jqOpta.settings, f), $jqOpta.settings.timezone = Number($jqOpta.settings.timezone) || 0, c = $jqOpta.settings.language.split("_"), $jqOpta.settings.locale = {
- orig: $jqOpta.settings.language,
- lang: c[0] || "en",
- region: c[1],
- rtl: !1
- }, $jqOpta.settings.locale.lang = $jqOpta.settings.locale.lang.toLowerCase(), $jqOpta.settings.locale.region || ($jqOpta.settings.locale.region = $jqOpta.trans.setDefaultRegion($jqOpta.settings.locale.lang)), $jqOpta.settings.locale.region = $jqOpta.settings.locale.region.toUpperCase(), $jqOpta.settings.locale.full = $jqOpta.settings.locale.lang + "_" + $jqOpta.settings.locale.region, $jqOpta.settings.locale.lang) {
- case "ar":
- $jqOpta.settings.locale.rtl = !0
- }
- $jqOpta.settings.language = c[0], $jqOpta.settings.translation_id = $jqOpta.settings.translation_id || 1, $jqOpta.lang = {}, $jqOpta.settings.load_date_js !== !1 && (d = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/date/date-" + $jqOpta.settings.locale.full.replace("_", "-") + ".js",
- dataType: "script"
- })), h(), $jqOpta.when(d).then(function() {
- g()
- })
- }, $jqOpta.widget_promise = {}, $jqOpta.lib_promise = {}, $jqOpta.loadTemplate = function(a, b, c, d) {
- var e;
- void 0 === $jqOpta.widget_promise[d.data.tpl_src || a + "_" + b + "_" + c] && ($jqOpta.widget_promise[d.data.tpl_src || a + "_" + b + "_" + c] = $jqOpta.ajax({
- cache: !0,
- url: void 0 === d.data.tpl_src ? $jqOpta.settings.baseUrl + "js/tpl/" + a + "/" + b + c + ".js" : d.data.tpl_src,
- dataType: "script",
- success: function() {
- var e = c ? c + "/" : "";
- b + "/" + e + a + "/" + d.data.competition + "/" + d.data.season + "/"
- },
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " (" + $jqOpta.rtrn("^" + b + "$", "i") + "). " + $jqOpta.trn("Please try again later") + "."
- })
- }
- }), void 0 === $jqOpta.lib_promise.ppscript && void 0 !== d.data.player_popup && "true" === d.data.player_popup && void 0 === $jqOpta.football_playerprofile && ($jqOpta.lib_promise.ppscript = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/tpl/football/playerprofile.js",
- dataType: "script",
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " (" + $jqOpta.rtrn("^" + b + "$", "i") + "). " + $jqOpta.trn("Please try again later") + "."
- })
- }
- })), (void 0 === $jqOpta.lib_promise.kinetic && void 0 === $jqOpta.Kinetic && ("formation" === b || "averageposition" === b || "chalkboard" === b && "football" === a || "pro_chalkboard" === b && "football" === a || "passingcombination" === b || "heatmapcanvas" === b || "wagonwheel" === b) || "test" === b) && ($jqOpta.lib_promise.kinetic = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/lib/opta.kinetic.4.3.2.js",
- dataType: "script",
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + b + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- }
- })), void 0 === $jqOpta.lib_promise.raphael && void 0 === $jqOpta.Raphael && ("rugby" === a && "formation" === b || "scoringzones" === b || "sprintlocation" === b || "goalreplay" === b || "attackingthirds" === b || "shotchart" === b || "chalkboard" === b && ("rugby" === a || "rugbyleague" === a) || "trackingheatmap" === b || "actionareas" === b || "teamstatsplus" === b || "matchdaylive" === b || "matchstatsplus" === b && "_playerstats" === c || "drivechart" === b) && ($jqOpta.lib_promise.raphael = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/lib/raphael-2.1.2.js",
- dataType: "script",
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + b + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- }
- })), void 0 === $jqOpta.lib_promise.d3 && void 0 === $jqOpta.d3 && "bracket" === b && ($jqOpta.lib_promise.d3 = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/lib/opta.d3.js",
- dataType: "script",
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + b + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- }
- })), void 0 === $jqOpta.lib_promise.socketio && void 0 === $jqOpta.io && "livecommentary" === b && ($jqOpta.lib_promise.socketio = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/lib/socket.io.js",
- dataType: "script",
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + b + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- }
- })), void 0 !== $jqOpta.lib_promise.tennis || "tennis" !== a || "seasonschedule" !== b && "livescores" !== b || (e = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_TENNIS, {
- lang_id: $jqOpta.settings.locale.full
- }), $jqOpta.lib_promise.tennis = $jqOpta.jsonp({
- cache: !0,
- url: e.url,
- dataType: "jsonp",
- callback: e.getFeedCallback(),
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + a + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- },
- success: function(a) {
- var b, c;
- for (a = a.d.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), $jqOpta.trans.data.widget[c[0]] = c[1]
- }
- })), void 0 === $jqOpta.lib_promise.highcharts && void 0 === $jqOpta.Highcharts && ("cricket" === a && ("manhattanworm" === b || "probability" === b) || "football" === a && ("playertracking" === b || "seasonstandings" === b) || "basketballsd" === a && "matchprogression" === b) && ($jqOpta.lib_promise.highcharts = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/lib/opta.highcharts.3.0.2.js",
- dataType: "script",
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + b + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- }
- })), void 0 === $jqOpta.lib_promise.ppslider && void 0 === $jqOpta.PPSliderClass && "cricket" === a && "probability" === b && ($jqOpta.lib_promise.ppslider = $jqOpta.ajax({
- cache: !0,
- url: $jqOpta.settings.baseUrl + "js/lib/opta.ppslider.js",
- dataType: "script",
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + b + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- }
- })), void 0 === $jqOpta.lib_promise.historical_comp && "football" === a && "matchpreview" === b && (e = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_HISTORICAL_COMP, {
- lang_id: $jqOpta.settings.locale.full
- }), $jqOpta.lib_promise.historical_comp = $jqOpta.jsonp({
- cache: !0,
- url: e.url,
- dataType: "jsonp",
- callback: e.getFeedCallback(),
- error: function() {
- $jqOpta.loadError(d, {
- message: $jqOpta.trn("Error loading") + " " + $jqOpta.rtrn("^" + a + "$", "i") + ". " + $jqOpta.trn("Please try again later") + "."
- })
- },
- success: function(a) {
- var b, c;
- for (a = a.d.split("¦"), void 0 === $jqOpta.trans.data.historical_comps && ($jqOpta.trans.data.historical_comps = {}), b = 0; b < a.length; b += 1) c = a[b].split("|"), $jqOpta.trans.data.historical_comps[c[0]] = c[1]
- }
- }))), $jqOpta.when($jqOpta.widget_promise[d.data.tpl_src || a + "_" + b + "_" + c], $jqOpta.lib_promise.ppscript, $jqOpta.lib_promise.kinetic, $jqOpta.lib_promise.raphael, $jqOpta.lib_promise.d3, $jqOpta.lib_promise.tennis, $jqOpta.lib_promise.highcharts, $jqOpta.lib_promise.ppslider, $jqOpta.lib_promise.historical_comp, $jqOpta.lib_promise.socketio).then(function() {
- d.widget_name = a + "_" + b + c, $jqOpta.widgets[d.id] = new $jqOpta.Widget(d)
- })
- }, $jqOpta.displayWidget = function(a, b, c, d) {
- var e, f = void 0 !== d ? " " + d : "",
- g = void 0 === a.data.classes ? "" : " " + a.data.classes,
- h = '<div id="opta-widget-idx-' + a.id + '" class="opta-widget-container' + f + g + " opta-" + a.data.widget + '" data-widget-id="' + a.id + '"></div>',
- i = "#opta-widget-id-" + a.id,
- j = "#opta-widget-idx-" + a.id,
- k = '<div id="opta-widget-idxx-' + a.id + '" style="display:none;"></div>',
- l = !1;
- if (0 === $jqOpta(j).length && ($jqOpta(h).insertAfter($jqOpta(i)), a.dom = $jqOpta(a.idx)), c === !0) {
- switch ($jqOpta(j).html(b), "function" == typeof window.beforeShowWidget && beforeShowWidget(j), $jqOpta(j).hide(), $jqOpta.settings.anim) {
- case "none":
- $jqOpta(j).prev("div").hide().empty().remove(), $jqOpta(j).show();
- break;
- case "down":
- $jqOpta(j).prev("div").fadeOut(400, function() {
- $jqOpta(j).slideDown(800), $jqOpta(this).empty().remove()
- });
- break;
- case "opta":
- $jqOpta(j).prev("div").fadeOut(1e3, function() {
- $jqOpta(j).show(2e3), $jqOpta(this).empty().remove()
- })
- }
- "function" == typeof window.afterShowWidget && afterShowWidget(j)
- } else if ($jqOpta(j + " .expansion-holder").each(function() {
- var a, b = $jqOpta(this).html();
- l = !0, "" !== b && (a = $jqOpta(this).data().expansion, $jqOpta.expansions[a] = b)
- }), l) {
- $jqOpta(k).insertAfter($jqOpta(j)), $jqOpta("#opta-widget-idxx-" + a.id).html(b);
- for (e in $jqOpta.expansions) $jqOpta.expansions.hasOwnProperty(e) && $jqOpta("#opta-widget-idxx-" + a.id).find("." + e).html($jqOpta.expansions[e]);
- $jqOpta(j).html($jqOpta("#opta-widget-idxx-" + a.id).html()), $jqOpta("#opta-widget-idxx-" + a.id).empty().remove()
- } else $jqOpta(j).html(b)
- }, $jqOpta.feedData = [], $jqOpta.callbackCounts = [], $jqOpta.getFeeds = function(a, b) {
- var c, d = b.length,
- e = [],
- f = function(a, b, c, d) {
- var f, g = new $jqOpta.Deferred;
- "FEED_F24" === c.feedType && $jqOpta.utils.isFDCComp(Number(c.feedParams.competition)) && (c.feedType = "FEED_F24b"), f = new $jqOpta.FeedRequest($jqOpta.FeedRequest[c.feedType], c.feedParams, g, c.feedLife, c.trn, c), $jqOpta.FeedMonitor.requestFeed(f), g.done(function(a) {
- var b = $jqOpta.extend(!0, {}, a);
- b.feed_type = c.feedType.replace("FEED_", ""), b.request_params = f.params, e[d] = b
- }), g.fail(function() {
- e[d] = "failed"
- }), $jqOpta.when(g).always(function() {
- var c, d = !0;
- for (c = 0; b > c; c += 1) void 0 === e[c] && (d = !1);
- d && a(e)
- })
- };
- for (c = 0; d > c; c += 1) f(a, d, b[c], c)
- }, $jqOpta.getFeed = function(a) {
- var b = 1e3 * Math.floor(10 * Math.random());
- $jqOpta.doTimeout(b, function() {
- var b = Math.floor(2 * Math.random());
- 0 === b ? a.reject("reason for failure") : a.resolve("success")
- })
- }, $jqOpta.srtTab = function(a, b, c) {
- $jqOpta(a + " table").hasClass("tablesorter") && ($jqOpta(a + " table.tablesorter thead tr:first-child th:nth-child(2)").hasClass("fullcombined") ? $jqOpta(a + " table").tablesorter({
- headers: {
- 0: {
- sorter: !1
- },
- 1: {
- sorter: !1
- },
- 2: {
- sorter: !1
- }
- },
- sortInitialOrder: "desc",
- sortList: b ? [b] : void 0
- }) : void 0 !== c ? $jqOpta(a + " table").tablesorter({
- headers: c,
- sortInitialOrder: "desc",
- sortList: b ? [b] : void 0
- }) : $jqOpta(a + " table").tablesorter({
- headers: {
- 1: {
- sorter: !1
- }
- },
- sortInitialOrder: "desc",
- sortList: b ? [b] : void 0
- }), $jqOpta(a + " table.tablesorter thead th.header").children().each(function() {
- $jqOpta(this).wrap("<span>")
- }))
- }, $jqOpta.fn.srtTHL = function(a) {
- var b, c = 0,
- d = $jqOpta(this).html(),
- e = $jqOpta(this).attr("class");
- $jqOpta(this).closest("thead").find("th").each(function() {
- d === $jqOpta(this).html() && e === $jqOpta(this).attr("class") && (b = c), $jqOpta(this).hasClass("sort-ascending") && $jqOpta(this).removeClass("sort-ascending"), $jqOpta(this).hasClass("sort-descending") && $jqOpta(this).removeClass("sort-descending"), c += 1
- }), $jqOpta(".tablesorter thead th:nth-child(2)").hasClass("fullcombined") && (b -= 2), $jqOpta(this).closest("table").find("tbody td").each(function() {
- $jqOpta(this).hasClass("sorted-column") && $jqOpta(this).removeClass("sorted-column")
- }), "desc" === a ? $jqOpta(this).addClass("sort-descending") : $jqOpta(this).addClass("sort-ascending"), $jqOpta(this).closest("table").find("tbody tr").each(function() {
- $jqOpta(this).find("td").eq(b).addClass("sorted-column")
- })
- }, $jqOpta.ga = {}, $jqOpta.gaTracking = function() {
- var a, b, c;
- if (void 0 === window._gat) return !1;
- for (_optaParams.gaq = _optaParams.gaq || [], a = 0; a < _optaParams.gaq.length; a += 1) {
- b = _optaParams.gaq[a], b.tracker = _gat._createTracker(b._setAccount, "OptaWidgets");
- for (c in b) b.hasOwnProperty(c) && "tracker" !== c && "_setAccount" !== c && "_trackPageview" !== c && (b[c] instanceof Array ? b.tracker[c](b[c][0] || null, b[c][1] || null, b[c][2] || null, b[c][3] || null) : b.tracker[c](b[c]))
- }
- }, $jqOpta.trackGAEvent = function(a) {
- var b, c, d;
- if (void 0 === window._gat || _optaParams.suppressAnalytics === !0 || !_optaParams.gaq || !_optaParams.gaq.length) return "";
- if (!(a instanceof Object && a.widget && a.action && a.sport && a.season && a.comp)) throw "Invalid GA Event Tracking data";
- for (b = 0; b < _optaParams.gaq.length; b += 1) {
- if (d = _optaParams.gaq[b].tracker, d._setCustomVar(2, "competition", a.comp, 3), d._setCustomVar(3, "season", a.season, 3), a.extra && a.extra instanceof Array)
- for (c = 0; c < a.extra.length && !(c > 1); c += 1) d._setCustomVar(4 + c, a.extra[c].key, a.extra[c].value, 3);
- if (d._trackEvent(a.widget, a.action, a.sport, $jqOpta.intval(a.rndTime), !1), a.extra && a.extra instanceof Array)
- for (c = 0; c < a.extra.length && !(c > 1); c += 1) d._deleteCustomVar(4 + c)
- }
- }, $jqOpta.rndCG = function(a) {
- var b, c = a.length,
- d = "<colgroup>";
- for (b = 0; c > b; b += 1) d += '<col width="' + a[b], $jqOpta.isNum(a[b]) && (d += "%"), d += '">';
- return d += "</colgroup>"
- }, $jqOpta.renderError = function(a, b, c, d) {
- var e = "<h2><span>" + c + '</span></h2><div class="' + b + '"><p>' + d + "</p></div>";
- $jqOpta(a).html(e)
- }, $jqOpta.enablePlayerPopups = function(a) {
- var b, c = "#opta-widget-idx-" + a.id;
- a.data.player_popup && (b = $jqOpta("#opta-widget-popup"), 0 === b.length && (b = $jqOpta("<div/>", {
- id: "opta-widget-popup"
- }).appendTo($jqOpta("body")), b.append('<div class="opta-widget-container"><h2><span></span><span class="close"><a href="#">' + $jqOpta.trn("close") + '</a></span></h2><div class="profile-container"><div class="profile"></div></div></div>'), b.hide()), $jqOpta(c + " a.opta-popup").each(function() {
- var c = $jqOpta(this);
- c.click(function(c) {
- var d = $jqOpta(this).attr("href"),
- e = Math.max(c.pageX - 200, 0) + "px",
- f = c.pageY + 20 + "px",
- g = d.split("-"),
- h = $jqOpta("#opta-widget-popup div.profile");
- $jqOpta("#opta-widget-popup h2 span:first-child").html(""), h.addClass("opta-widget-popup-content"), h.html(""), b.css({
- left: e,
- top: f
- }), a.data.season = g[1], a.data.competition = g[2], a.data.team = g[3], a.data.player = g[4], c.preventDefault(), b.show(), $jqOpta.football_playerprofile(a, !0), $jqOpta.enablePopupCloseLink(), $jqOpta.trackGAEvent({
- sport: a.data.sport,
- widget: a.data.widget,
- action: "player_link_popup",
- comp: a.data.competition,
- season: a.data.season
- })
- })
- }))
- }, $jqOpta.enablePopupCloseLink = function() {
- $jqOpta("#opta-widget-popup span.close a").each(function() {
- $jqOpta(this).click(function(a) {
- a.preventDefault(), $jqOpta("#opta-widget-popup").hide()
- })
- })
- }, $jqOpta.sndUI = function(a, b, c) {
- var d, e;
- "true" === a && 0 === $jqOpta(b).find("span.opta-audio").length && (e = void 0 !== c && "true" === c ? "opta-logo " : "", d = $jqOpta.settings.soundEnabled ? '<span class="opta-audio ' + e + 'sound-enabled" title="' + $jqOpta.trn("soundDisable") + '">' + $jqOpta.trn("soundDisable") + "</span>" : '<span class="opta-audio ' + e + 'sound-disabled" title="' + $jqOpta.trn("soundEnable") + '">' + $jqOpta.trn("soundEnable") + "</span>", $jqOpta("div" + b + " > h2").after(d), d = $jqOpta(b + " .opta-audio"), d.on("click", function(a) {
- a.preventDefault(), d.hasClass("sound-disabled") ? (d.removeClass("sound-disabled"), d.addClass("sound-enabled"), d.text($jqOpta.trn("soundDisable")), d.attr("title", $jqOpta.trn("soundDisable")), $jqOpta.settings.soundEnabled = !0, $jqOpta.createCookie("opta_audio_" + b.substr(1), 1)) : (d.removeClass("sound-enabled"), d.addClass("sound-disabled"), d.text($jqOpta.trn("soundEnable")), d.attr("title", $jqOpta.trn("soundEnable")), $jqOpta.settings.soundEnabled = !1, $jqOpta.createCookie("opta_audio_" + b.substr(1), 0))
- }), (1 === $jqOpta.readCookie("opta_audio_" + b.substr(1)) && d.hasClass("sound-disabled") || 0 === $jqOpta.readCookie("opta_audio_" + b.substr(1)) && d.hasClass("sound-enabled")) && d.click())
- }, $jqOpta.goalAlerts = function(a, b, c) {
- var d = $jqOpta(b).find(c);
- d.length > 0 && ($jqOpta.settings.soundEnabled && $jqOpta.sndA(a), $jqOpta.doTimeout(5e3, function() {
- d.each(function() {
- $jqOpta(this).removeClass("goal-alert")
- })
- }))
- }, $jqOpta.sndA = function(a) {
- var b;
- b = '<div class="goal-sound">', b += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="1" height="1" id="goal-alert">', b += '<param name="src" value="' + $jqOpta.settings.baseUrl + 'assets/sounds/applause.wav" />', b += '<param name="autostart" value="true" />', b += "<!--[if !IE]>-->", b += '<object type="audio/x-wav" data="' + $jqOpta.settings.baseUrl + 'assets/sounds/applause.wav" width="1" height="1">', b += '<param name="autoplay" value="true" />', b += "</object>", b += "<!--<![endif]-->", b += "</object></div>", $jqOpta(a).append(b)
- }, $jqOpta.evnID = function(a) {
- switch (a) {
- case "f":
- return ["end-period", $jqOpta.trn("FT (fulltime)")];
- case "g":
- return ["goal", $jqOpta.trn("Goal")];
- case "h":
- return ["kickoff", $jqOpta.trn("HT (halftime)")];
- case "k":
- return ["kickoff", $jqOpta.trn("KO (kickoff)")];
- case "ks":
- return ["kickoff", $jqOpta.trn("SH (second half)")];
- case "o":
- return ["own-goal", $jqOpta.trn("Goal"), $jqOpta.trn("OG (own goal)")];
- case "p":
- return ["penalty-in-game-scored", $jqOpta.trn("Goal"), $jqOpta.trn("P (penalty)")];
- case "pm":
- return ["penalty-in-game-miss", $jqOpta.trn("Missed Penalty")];
- case "ps":
- return ["penalty-shootout-scored", $jqOpta.trn("Goal"), $jqOpta.trn("P (penalty)")];
- case "r":
- return ["red-card", $jqOpta.trn("Red Card")];
- case "s":
- return ["substitution", $jqOpta.trn("Substitution")];
- case "sb":
- return ["icon-substitution", $jqOpta.trn("Substitution")];
- case "y":
- return ["yellow-card", $jqOpta.trn("Yellow Card")];
- case "2":
- return ["double-yellow", $jqOpta.trn("Second Yellow Card")]
- }
- }, $jqOpta.rndMns = function(a, b) {
- var c, d = "";
- return "SO" === a ? d += "(" + $jqOpta.trn("SO (shootout)") + ")" : "" === a ? d += " " : (c = '<abbr title="' + $jqOpta.trn("minute") + '">' + $jqOpta.trn("min (minute symbol)") + "</abbr>", d += a + c, void 0 !== b && "" !== b && (d += "+" + b + c)), d
- }, $jqOpta.rndTabC = function(a, b) {
- var c = $jqOpta(b).find(".ranking-category option:eq(0)").attr("value");
- "all" === a.data.category && $jqOpta.rndTabD(b, c), $jqOpta(b).find(".ranking-category select").change(function() {
- $jqOpta.rndTabD(b, $jqOpta(b).find("option:selected").val())
- })
- }, $jqOpta.rndTabD = function(a, b) {
- $jqOpta(a).find(".ranking-container").children("div:not(." + b + ")").hide(), $jqOpta(a).find(".ranking-container").children("div." + b).show()
- }, $jqOpta.actTabs = function(a, b, c, d, e, f, g, h, i, j) {
- var k = !1;
- $jqOpta(b).each(function() {
- var a = $jqOpta(this),
- b = a.find(j || "ul.tabs-nav"),
- c = g || 0,
- e = b.width() - c,
- h = 0,
- i = a.find((j || "ul.tabs-nav") + " > li"),
- l = d ? a.find(d) : a.find("ul.tabs-content > li");
- i.length > 0 && i.length === l.length && f !== !0 && (i.each(function() {
- h += $jqOpta(this).width()
- }), h > e && (k = !0))
- }), $jqOpta(b).each(function() {
- var f, g = $jqOpta(this),
- l = g.find(j || "ul.tabs-nav"),
- m = g.find((j || "ul.tabs-nav") + " > li"),
- n = d ? g.find(d) : g.find("ul.tabs-content > li"),
- o = b.split(" "),
- p = h || a + "-" + o[0].substring(1),
- q = $jqOpta.readCookie(p),
- r = Number(e) - 1 || 0;
- (r >= m.length || 0 > r) && (r = 0), m.length > 0 && m.length === n.length && (m.removeClass("tabs-selected"), n.removeClass("tabs-selected"), $jqOpta.isNum(q) && m.length > q && (r = q), $jqOpta(m[r]).addClass("tabs-selected"), $jqOpta(n[r]).addClass("tabs-selected"), k && (l.parent().hasClass("opta-dropdown") || (l.wrap('<div class="opta-dropdown" />'), f = g.find("div.opta-dropdown"), f.prepend("<span>" + $jqOpta(m[r]).text() + "<span></span></span>"), f.click(function(a) {
- a.preventDefault(), f.hasClass("active") ? f.removeClass("active") : f.addClass("active")
- }))), m.each(function(a) {
- $jqOpta(this).click(function(b) {
- b.preventDefault(), m.removeClass("tabs-selected"), n.removeClass("tabs-selected"), $jqOpta(this).addClass("tabs-selected"), $jqOpta(n[a]).addClass("tabs-selected"), $jqOpta.createCookie(p, a), l.parent().hasClass("opta-dropdown") && l.parent().find("span").html($jqOpta(this).text() + "<span></span>"), void 0 !== c && $jqOpta.events.trigger.tab(this, c, a), "function" == typeof i && i.call(g, this, n[a])
- })
- }), "function" == typeof i && i.call(g, $jqOpta(this).find(".tabs-nav .tabs-selected")[0], n[r]))
- })
- }, $jqOpta.runCallbacks = function(a) {
- var b, c = $jqOpta("#opta-widget-idx-" + a.id),
- d = $jqOpta.settings.callbacks;
- if (d.length > 0)
- for (b = 0; b < d.length; b += 1) "" !== d[b] && "function" == typeof d[b] && d[b](c, a.data, a.id)
- }, $jqOpta.optaPlayerStatsDropdowns = function(a) {
- var b = "#opta-widget-idx-" + a.id,
- c = b + " .team-container";
- $jqOpta(c).each(function() {
- var b, d = c.split(" "),
- e = $jqOpta(this).find("form").attr("id") || "",
- f = "playerstats-" + d[0].substring(1) + "-" + d[1].substring(1) + "-" + e.slice(0, -1),
- g = $jqOpta.readCookie(f),
- h = [];
- for ($jqOpta(this).children("div").each(function() {
- h.push($jqOpta(this).attr("id"))
- }), b = 0; b < h.length; b += 1) 0 !== b && $jqOpta("#" + h[b]).hide();
- $jqOpta(this).find(".playerstats-filter-select").on("change", function() {
- var b = $jqOpta(this),
- c = b.find("option:selected"),
- d = c.val();
- $jqOpta.createCookie(f, d), b.closest(".team-container").children("div:not(#" + d + ")").hide(), b.closest(".team-container").children("div#" + d).show(), b.find("select").blur(), $jqOpta.events.trigger.dropdown(a, b.attr("id"), d, c.text())
- }), null !== g && $jqOpta(this).find("option[value=" + g + "]").each(function() {
- $jqOpta(this).attr("selected", "selected").change()
- })
- })
- }, $jqOpta.runExpansions = function(a, b) {
- var c = a.kids,
- d = a.data,
- e = a.id,
- f = $jqOpta._.object($jqOpta.readCookieArray(d.widget + "_" + e));
- c.length > 0 && $jqOpta("#opta-widget-idx-" + e + " " + b).each(function() {
- var b = $jqOpta(this),
- g = b.data().expansion,
- h = {},
- i = "",
- j = d.widget + "_" + e + "[";
- $jqOpta._.each(g.split("_"), function(a, b) {
- var c = a.split("-");
- h[c[0]] = c[1], i += b > 0 ? "-" + c[1] : c[1]
- }), j += i + "]", b.click(function(f) {
- var i, k, l, m, n, o = "",
- p = " .expansion",
- q = "",
- r = {},
- s = function(a, b) {
- return h[a] ? (r[a] || (r[a] = !0, p += "_" + a + "-" + h[a]), " " + b + a + '="' + h[a] + '"') : d[a] ? " " + b + a + '="' + d[a] + '"' : " " + l.name + '="' + l.value + '"'
- },
- t = function(a, b) {
- return a.name > b.name ? 1 : a.name < b.name ? -1 : 0
- },
- u = function(c) {
- b.data().expansion === c.id.toString().substring(0, b.data().expansion.length) && (k += 1, k === i && (m.slideDown(400, function() {
- var c = b.data().expansion.split("_");
- c = $jqOpta._.object($jqOpta._.map(c, function(a) {
- return a = a.split("-"), [a[0], Number(a[1]) || a[1]]
- })), $jqOpta.events.trigger.expansiondone("open", a, c, b.data().expansion)
- }), b.removeClass("details-loading").addClass("details-expanded")))
- };
- for (f.preventDefault(), i = 0; i < c.length; i += 1) {
- for (o += '<div class="opta-expansion">', q = "<opta", n = $jqOpta._.toArray(c[i].attributes), n.sort(t), k = 0; k < n.length; k += 1) switch (l = n[k], l.name) {
- case "live":
- case "season":
- case "match":
- case "competition":
- case "team":
- case "player":
- q += s(l.name, "");
- break;
- case "preselect_match":
- q += s("match", "preselect_");
- break;
- case "preselect_team":
- q += s("team", "preselect_");
- break;
- case "widget":
- o += '<div class="opta-' + l.value + '">';
- default:
- q += " " + l.name + '="' + l.value + '"'
- }
- m = $jqOpta("#opta-widget-idx-" + e + p).first(), q += ' parent_id="' + e + '" id_suffix="' + g + "_" + i + '" width="' + m.width() + '"></opta>', o += q + "</div></div>"
- }
- b.hasClass("details-collapsed") ? ("" === m.html() || void 0 === m.html() ? (b.removeClass("details-collapsed").addClass("details-loading"), m.html(o), m.hide(), k = 0, $jqOpta.events.subscribe("widget.#.load", u), $jqOpta.events.subscribe("widget.#.error", u), $jqOpta.widgetStart(_optaParams)) : (b.removeClass("details-collapsed").addClass("details-expanded"), m.slideDown(400, function() {
- var c = b.data().expansion.split("_");
- c = $jqOpta._.object($jqOpta._.map(c, function(a) {
- return a = a.split("-"), [a[0], Number(a[1]) || a[1]]
- })), $jqOpta.events.trigger.expansiondone("open", a, c, b.data().expansion)
- })), $jqOpta.createCookie(j, "o")) : (b.removeClass("details-expanded").addClass("details-collapsed"), m.slideUp(400, function() {
- var c = b.data().expansion.split("_");
- c = $jqOpta._.object($jqOpta._.map(c, function(a) {
- return a = a.split("-"), [a[0], Number(a[1]) || a[1]]
- })), $jqOpta.events.trigger.expansiondone("closed", a, c, b.data().expansion)
- }), $jqOpta.createCookie(j, "c"))
- }), "o" === f[i] && b.click()
- })
- }, $jqOpta.highlightLinks = function(a, b) {
- var c, d = b.length;
- $jqOpta(a).hover(function() {
- for (c = 0; d > c; c += 1) $jqOpta(this).find(b[c]).addClass("hover-effect");
- $jqOpta(this).find(".opta-event-link").addClass("hover-effect"), $jqOpta(this).find("button").addClass("hover-effect")
- }, function() {
- for (c = 0; d > c; c += 1) $jqOpta(this).find(b[c]).removeClass("hover-effect")
- })
- }
- }(),
- function(a) {
- "use strict";
- function b(a, b) {
- return !b && a instanceof Array ? a : Array.prototype.slice.call(a)
- }
- function c(a, b) {
- return void 0 !== a ? a : b
- }
- function d(a, b, e, f) {
- if (a instanceof d) {
- var g = a.slice(b, b + e);
- return g._littleEndian = c(f, g._littleEndian), g
- }
- if (!(this instanceof d)) return new d(a, b, e, f);
- if (this.buffer = a = d.wrapBuffer(a), this._isArrayBuffer = i.ArrayBuffer && a instanceof ArrayBuffer, this._isPixelData = i.PixelData && a instanceof CanvasPixelArray, this._isDataView = i.DataView && this._isArrayBuffer, this._isNodeBuffer = i.NodeBuffer && a instanceof Buffer, !(this._isNodeBuffer || this._isArrayBuffer || this._isPixelData || a instanceof Array)) throw new TypeError("jDataView buffer has an incompatible type");
- this._littleEndian = !!f;
- var h = "byteLength" in a ? a.byteLength : a.length;
- this.byteOffset = b = c(b, 0), this.byteLength = e = c(e, h - b), this._isDataView ? this._view = new DataView(a, b, e) : this._checkBounds(b, e, h), this._engineAction = this._isDataView ? this._dataViewAction : this._isNodeBuffer ? this._nodeBufferAction : this._isArrayBuffer ? this._arrayBufferAction : this._arrayAction
- }
- function e(a) {
- if (i.NodeBuffer) return new Buffer(a, "binary");
- for (var b = i.ArrayBuffer ? Uint8Array : Array, c = new b(a.length), d = 0, e = a.length; e > d; d++) c[d] = 255 & a.charCodeAt(d);
- return c
- }
- function f(a) {
- return a >= 0 && 31 > a ? 1 << a : f[a] || (f[a] = Math.pow(2, a))
- }
- function g(a, b) {
- this.lo = a, this.hi = b
- }
- function h(a, b) {
- g.apply(this, arguments)
- }
- var i = {
- NodeBuffer: "Buffer" in a && "readInt16LE" in Buffer.prototype,
- DataView: "DataView" in a && ("getFloat64" in DataView.prototype || "getFloat64" in new DataView(new ArrayBuffer(1))),
- ArrayBuffer: "ArrayBuffer" in a,
- PixelData: "CanvasPixelArray" in a && "ImageData" in a && "document" in a
- };
- if (i.NodeBuffer && ! function(a) {
- try {
- a.writeFloatLE(1 / 0, 0)
- } catch (b) {
- i.NodeBuffer = !1
- }
- }(new Buffer(4)), i.PixelData) {
- var j = function(a, b) {
- var c = j.context2d.createImageData((a + 3) / 4, 1).data;
- if (c.byteLength = a, void 0 !== b)
- for (var d = 0; a > d; d++) c[d] = b[d];
- return c
- };
- j.context2d = document.createElement("canvas").getContext("2d")
- }
- var k = {
- Int8: 1,
- Int16: 2,
- Int32: 4,
- Uint8: 1,
- Uint16: 2,
- Uint32: 4,
- Float32: 4,
- Float64: 8
- },
- l = {
- Int8: "Int8",
- Int16: "Int16",
- Int32: "Int32",
- Uint8: "UInt8",
- Uint16: "UInt16",
- Uint32: "UInt32",
- Float32: "Float",
- Float64: "Double"
- };
- d.wrapBuffer = function(a) {
- switch (typeof a) {
- case "number":
- if (i.NodeBuffer) a = new Buffer(a), a.fill(0);
- else if (i.ArrayBuffer) a = new Uint8Array(a).buffer;
- else if (i.PixelData) a = j(a);
- else {
- a = new Array(a);
- for (var c = 0; c < a.length; c++) a[c] = 0
- }
- return a;
- case "string":
- a = e(a);
- default:
- return "length" in a && !(i.NodeBuffer && a instanceof Buffer || i.ArrayBuffer && a instanceof ArrayBuffer || i.PixelData && a instanceof CanvasPixelArray) && (i.NodeBuffer ? a = new Buffer(a) : i.ArrayBuffer ? a instanceof ArrayBuffer || (a = new Uint8Array(a).buffer, a instanceof ArrayBuffer || (a = new Uint8Array(b(a, !0)).buffer)) : a = i.PixelData ? j(a.length, a) : b(a)), a
- }
- }, d.createBuffer = function() {
- return d.wrapBuffer(arguments)
- }, d.Uint64 = g, g.prototype = {
- valueOf: function() {
- return this.lo + f(32) * this.hi
- },
- toString: function() {
- return Number.prototype.toString.apply(this.valueOf(), arguments)
- }
- }, g.fromNumber = function(a) {
- var b = Math.floor(a / f(32)),
- c = a - b * f(32);
- return new g(c, b)
- }, d.Int64 = h, h.prototype = "create" in Object ? Object.create(g.prototype) : new g, h.prototype.valueOf = function() {
- return this.hi < f(31) ? g.prototype.valueOf.apply(this, arguments) : -(f(32) - this.lo + f(32) * (f(32) - 1 - this.hi))
- }, h.fromNumber = function(a) {
- var b, c;
- if (a >= 0) {
- var d = g.fromNumber(a);
- b = d.lo, c = d.hi
- } else c = Math.floor(a / f(32)), b = a - c * f(32), c += f(32);
- return new h(b, c)
- }, d.prototype = {
- _offset: 0,
- _bitOffset: 0,
- compatibility: i,
- _checkBounds: function(a, b, d) {
- if ("number" != typeof a) throw new TypeError("Offset is not a number.");
- if ("number" != typeof b) throw new TypeError("Size is not a number.");
- if (0 > b) throw new RangeError("Length is negative.");
- if (0 > a || a + b > c(d, this.byteLength)) throw new RangeError("Offsets are out of bounds.")
- },
- _action: function(a, b, d, e, f) {
- return this._engineAction(a, b, c(d, this._offset), c(e, this._littleEndian), f)
- },
- _dataViewAction: function(a, b, c, d, e) {
- return this._offset = c + k[a], b ? this._view["get" + a](c, d) : this._view["set" + a](c, e, d)
- },
- _nodeBufferAction: function(a, b, c, d, e) {
- this._offset = c + k[a];
- var f = l[a] + ("Int8" === a || "Uint8" === a ? "" : d ? "LE" : "BE");
- return c += this.byteOffset, b ? this.buffer["read" + f](c) : this.buffer["write" + f](e, c)
- },
- _arrayBufferAction: function(b, d, e, f, g) {
- var h, i = k[b],
- j = a[b + "Array"];
- if (f = c(f, this._littleEndian), 1 === i || (this.byteOffset + e) % i === 0 && f) return h = new j(this.buffer, this.byteOffset + e, 1), this._offset = e + i, d ? h[0] : h[0] = g;
- var l = new Uint8Array(d ? this.getBytes(i, e, f, !0) : i);
- return h = new j(l.buffer, 0, 1), d ? h[0] : (h[0] = g, void this._setBytes(e, l, f))
- },
- _arrayAction: function(a, b, c, d, e) {
- return b ? this["_get" + a](c, d) : this["_set" + a](c, e, d)
- },
- _getBytes: function(a, d, e) {
- e = c(e, this._littleEndian), d = c(d, this._offset), a = c(a, this.byteLength - d), this._checkBounds(d, a), d += this.byteOffset, this._offset = d - this.byteOffset + a;
- var f = this._isArrayBuffer ? new Uint8Array(this.buffer, d, a) : (this.buffer.slice || Array.prototype.slice).call(this.buffer, d, d + a);
- return e || 1 >= a ? f : b(f).reverse()
- },
- getBytes: function(a, d, e, f) {
- var g = this._getBytes(a, d, c(e, !0));
- return f ? b(g) : g
- },
- _setBytes: function(a, d, e) {
- var f = d.length;
- if (0 !== f) {
- if (e = c(e, this._littleEndian), a = c(a, this._offset), this._checkBounds(a, f), !e && f > 1 && (d = b(d, !0).reverse()), a += this.byteOffset, this._isArrayBuffer) new Uint8Array(this.buffer, a, f).set(d);
- else if (this._isNodeBuffer)(d instanceof Buffer ? d : new Buffer(d)).copy(this.buffer, a);
- else
- for (var g = 0; f > g; g++) this.buffer[a + g] = d[g];
- this._offset = a - this.byteOffset + f
- }
- },
- setBytes: function(a, b, d) {
- this._setBytes(a, b, c(d, !0))
- },
- getString: function(a, b, d) {
- if (this._isNodeBuffer) return b = c(b, this._offset), a = c(a, this.byteLength - b), this._checkBounds(b, a), this._offset = b + a, this.buffer.toString(d || "binary", this.byteOffset + b, this.byteOffset + this._offset);
- var e = this._getBytes(a, b, !0),
- f = "";
- a = e.length;
- for (var g = 0; a > g; g++) f += String.fromCharCode(e[g]);
- return "utf8" === d && (f = decodeURIComponent(escape(f))), f
- },
- setString: function(a, b, d) {
- return this._isNodeBuffer ? (a = c(a, this._offset), this._checkBounds(a, b.length), void(this._offset = a + this.buffer.write(b, this.byteOffset + a, d || "binary"))) : ("utf8" === d && (b = unescape(encodeURIComponent(b))), void this._setBytes(a, e(b), !0))
- },
- getChar: function(a) {
- return this.getString(1, a)
- },
- setChar: function(a, b) {
- this.setString(a, b)
- },
- tell: function() {
- return this._offset
- },
- seek: function(a) {
- return this._checkBounds(a, 0), this._offset = a
- },
- skip: function(a) {
- return this.seek(this._offset + a)
- },
- slice: function(a, b, e) {
- function f(a, b) {
- return 0 > a ? a + b : a
- }
- return a = f(a, this.byteLength), b = f(c(b, this.byteLength), this.byteLength), e ? new d(this.getBytes(b - a, a, !0, !0), void 0, void 0, this._littleEndian) : new d(this.buffer, this.byteOffset + a, b - a, this._littleEndian)
- },
- _getFloat64: function(a, b) {
- var c = this._getBytes(8, a, b),
- d = 1 - 2 * (c[7] >> 7),
- e = ((c[7] << 1 & 255) << 3 | c[6] >> 4) - 1023,
- g = (15 & c[6]) * f(48) + c[5] * f(40) + c[4] * f(32) + c[3] * f(24) + c[2] * f(16) + c[1] * f(8) + c[0];
- return 1024 === e ? 0 !== g ? NaN : d * (1 / 0) : -1023 === e ? d * g * f(-1074) : d * (1 + g * f(-52)) * f(e)
- },
- _getFloat32: function(a, b) {
- var c = this._getBytes(4, a, b),
- d = 1 - 2 * (c[3] >> 7),
- e = (c[3] << 1 & 255 | c[2] >> 7) - 127,
- g = (127 & c[2]) << 16 | c[1] << 8 | c[0];
- return 128 === e ? 0 !== g ? NaN : d * (1 / 0) : -127 === e ? d * g * f(-149) : d * (1 + g * f(-23)) * f(e)
- },
- _get64: function(a, b, d) {
- d = c(d, this._littleEndian), b = c(b, this._offset);
- for (var e = d ? [0, 4] : [4, 0], f = 0; 2 > f; f++) e[f] = this.getUint32(b + e[f], d);
- return this._offset = b + 8, new a(e[0], e[1])
- },
- getInt64: function(a, b) {
- return this._get64(h, a, b)
- },
- getUint64: function(a, b) {
- return this._get64(g, a, b)
- },
- _getInt32: function(a, b) {
- var c = this._getBytes(4, a, b);
- return c[3] << 24 | c[2] << 16 | c[1] << 8 | c[0]
- },
- _getUint32: function(a, b) {
- return this._getInt32(a, b) >>> 0
- },
- _getInt16: function(a, b) {
- return this._getUint16(a, b) << 16 >> 16
- },
- _getUint16: function(a, b) {
- var c = this._getBytes(2, a, b);
- return c[1] << 8 | c[0]
- },
- _getInt8: function(a) {
- return this._getUint8(a) << 24 >> 24
- },
- _getUint8: function(a) {
- return this._getBytes(1, a)[0]
- },
- _getBitRangeData: function(a, b) {
- var d = (c(b, this._offset) << 3) + this._bitOffset,
- e = d + a,
- f = d >>> 3,
- g = e + 7 >>> 3,
- h = this._getBytes(g - f, f, !0),
- i = 0;
- (this._bitOffset = 7 & e) && (this._bitOffset -= 8);
- for (var j = 0, k = h.length; k > j; j++) i = i << 8 | h[j];
- return {
- start: f,
- bytes: h,
- wideValue: i
- }
- },
- getSigned: function(a, b) {
- var c = 32 - a;
- return this.getUnsigned(a, b) << c >> c
- },
- getUnsigned: function(a, b) {
- var c = this._getBitRangeData(a, b).wideValue >>> -this._bitOffset;
- return 32 > a ? c & ~(-1 << a) : c
- },
- _setBinaryFloat: function(a, b, c, d, e) {
- var g, h, i = 0 > b ? 1 : 0,
- j = ~(-1 << d - 1),
- k = 1 - j;
- 0 > b && (b = -b), 0 === b ? (g = 0, h = 0) : isNaN(b) ? (g = 2 * j + 1, h = 1) : b === 1 / 0 ? (g = 2 * j + 1, h = 0) : (g = Math.floor(Math.log(b) / Math.LN2), g >= k && j >= g ? (h = Math.floor((b * f(-g) - 1) * f(c)), g += j) : (h = Math.floor(b / f(k - c)), g = 0));
- for (var l = []; c >= 8;) l.push(h % 256), h = Math.floor(h / 256), c -= 8;
- for (g = g << c | h, d += c; d >= 8;) l.push(255 & g), g >>>= 8, d -= 8;
- l.push(i << d | g), this._setBytes(a, l, e)
- },
- _setFloat32: function(a, b, c) {
- this._setBinaryFloat(a, b, 23, 8, c)
- },
- _setFloat64: function(a, b, c) {
- this._setBinaryFloat(a, b, 52, 11, c)
- },
- _set64: function(a, b, d, e) {
- d instanceof a || (d = a.fromNumber(d)), e = c(e, this._littleEndian), b = c(b, this._offset);
- var f = e ? {
- lo: 0,
- hi: 4
- } : {
- lo: 4,
- hi: 0
- };
- for (var g in f) this.setUint32(b + f[g], d[g], e);
- this._offset = b + 8
- },
- setInt64: function(a, b, c) {
- this._set64(h, a, b, c)
- },
- setUint64: function(a, b, c) {
- this._set64(g, a, b, c)
- },
- _setUint32: function(a, b, c) {
- this._setBytes(a, [255 & b, b >>> 8 & 255, b >>> 16 & 255, b >>> 24], c)
- },
- _setUint16: function(a, b, c) {
- this._setBytes(a, [255 & b, b >>> 8 & 255], c)
- },
- _setUint8: function(a, b) {
- this._setBytes(a, [255 & b])
- },
- setUnsigned: function(a, b, c) {
- var d = this._getBitRangeData(c, a),
- e = d.wideValue,
- f = d.bytes;
- e &= ~(~(-1 << c) << -this._bitOffset), e |= (32 > c ? b & ~(-1 << c) : b) << -this._bitOffset;
- for (var g = f.length - 1; g >= 0; g--) f[g] = 255 & e, e >>>= 8;
- this._setBytes(d.start, f, !0)
- }
- };
- var m = d.prototype;
- for (var n in k) ! function(a) {
- m["get" + a] = function(b, c) {
- return this._action(a, !0, b, c)
- }, m["set" + a] = function(b, c, d) {
- this._action(a, !1, b, d, c)
- }
- }(n);
- m._setInt32 = m._setUint32, m._setInt16 = m._setUint16, m._setInt8 = m._setUint8, m.setSigned = m.setUnsigned;
- for (var o in m) "set" === o.slice(0, 3) && ! function(a) {
- m["write" + a] = function() {
- Array.prototype.unshift.call(arguments, void 0), this["set" + a].apply(this, arguments)
- }
- }(o.slice(3));
- $jqOpta.jDataView = d
- }(function() {
- return this
- }()),
- function(a) {
- "use strict";
- var b = function(a) {
- function b(a, b) {
- return a[b + 3] << 24 | a[b + 2] << 16 | a[b + 1] << 8 | a[b]
- }
- function c(a) {
- var b, c, d, e = [];
- for (b = 0; b < a.length; b++)
- if (a.charCodeAt(b) <= 127) e.push(a.charCodeAt(b));
- else
- for (d = encodeURIComponent(a.charAt(b)).substr(1).split("%"), c = 0; c < d.length; c++) e.push(parseInt(d[c], 16));
- return e
- }
- function d(a) {
- var b = (a >>> 0).toString(16);
- return "00000000".substr(0, 8 - b.length) + b
- }
- function e() {
- var a, b, c, e;
- for (a = "", b = 0, c = 0, e = 3; e >= 0; e--) c = arguments[e], b = 255 & c, c >>>= 8, b <<= 8, b |= 255 & c, c >>>= 8, b <<= 8, b |= 255 & c, c >>>= 8, b <<= 8, b |= c, a += d(b);
- return a
- }
- function f(a) {
- var b, c = [];
- for (b = 0; b < a.length; b++) c[b] = a[b];
- return c
- }
- function g(a) {
- var b, d = [];
- for (b = 0; b < a.length; b++) d = d.concat(c(a[b]));
- return d
- }
- function h(a) {
- var b, c = [];
- for (b = 0; 8 > b; b++) c.push(255 & a), a >>>= 8;
- return c
- }
- function i(a, b) {
- return a << b & 4294967295 | a >>> 32 - b
- }
- function j(a, b, c) {
- return a & b | ~a & c
- }
- function k(a, b, c) {
- return c & a | ~c & b
- }
- function l(a, b, c) {
- return a ^ b ^ c
- }
- function m(a, b, c) {
- return b ^ (a | ~c)
- }
- function n(a, b) {
- return 4294967295 & a + b
- }
- function o() {
- function a(a, b, c, d) {
- var e = v;
- v = u, u = t, t = n(t, i(n(s, n(a, n(b, c))), d)), s = e
- }
- var c, d, f, g, o, q, r, s, t, u, v, w;
- if (c = p.length, p.push(128), d = p.length % 64, d > 56) {
- for (f = 0; 64 - d > f; f++) p.push(0);
- d = p.length % 64
- }
- for (f = 0; 56 - d > f; f++) p.push(0);
- for (p = p.concat(h(8 * c)), g = 1732584193, o = 4023233417, q = 2562383102, r = 271733878, s = 0, t = 0, u = 0, v = 0, f = 0; f < p.length / 64; f++) s = g, t = o, u = q, v = r, w = 64 * f, a(j(t, u, v), 3614090360, b(p, w), 7), a(j(t, u, v), 3905402710, b(p, w + 4), 12), a(j(t, u, v), 606105819, b(p, w + 8), 17), a(j(t, u, v), 3250441966, b(p, w + 12), 22), a(j(t, u, v), 4118548399, b(p, w + 16), 7), a(j(t, u, v), 1200080426, b(p, w + 20), 12), a(j(t, u, v), 2821735955, b(p, w + 24), 17), a(j(t, u, v), 4249261313, b(p, w + 28), 22), a(j(t, u, v), 1770035416, b(p, w + 32), 7), a(j(t, u, v), 2336552879, b(p, w + 36), 12), a(j(t, u, v), 4294925233, b(p, w + 40), 17), a(j(t, u, v), 2304563134, b(p, w + 44), 22), a(j(t, u, v), 1804603682, b(p, w + 48), 7), a(j(t, u, v), 4254626195, b(p, w + 52), 12), a(j(t, u, v), 2792965006, b(p, w + 56), 17), a(j(t, u, v), 1236535329, b(p, w + 60), 22), a(k(t, u, v), 4129170786, b(p, w + 4), 5), a(k(t, u, v), 3225465664, b(p, w + 24), 9), a(k(t, u, v), 643717713, b(p, w + 44), 14), a(k(t, u, v), 3921069994, b(p, w), 20), a(k(t, u, v), 3593408605, b(p, w + 20), 5), a(k(t, u, v), 38016083, b(p, w + 40), 9), a(k(t, u, v), 3634488961, b(p, w + 60), 14), a(k(t, u, v), 3889429448, b(p, w + 16), 20), a(k(t, u, v), 568446438, b(p, w + 36), 5), a(k(t, u, v), 3275163606, b(p, w + 56), 9), a(k(t, u, v), 4107603335, b(p, w + 12), 14), a(k(t, u, v), 1163531501, b(p, w + 32), 20), a(k(t, u, v), 2850285829, b(p, w + 52), 5), a(k(t, u, v), 4243563512, b(p, w + 8), 9), a(k(t, u, v), 1735328473, b(p, w + 28), 14), a(k(t, u, v), 2368359562, b(p, w + 48), 20), a(l(t, u, v), 4294588738, b(p, w + 20), 4), a(l(t, u, v), 2272392833, b(p, w + 32), 11), a(l(t, u, v), 1839030562, b(p, w + 44), 16), a(l(t, u, v), 4259657740, b(p, w + 56), 23), a(l(t, u, v), 2763975236, b(p, w + 4), 4), a(l(t, u, v), 1272893353, b(p, w + 16), 11), a(l(t, u, v), 4139469664, b(p, w + 28), 16), a(l(t, u, v), 3200236656, b(p, w + 40), 23), a(l(t, u, v), 681279174, b(p, w + 52), 4), a(l(t, u, v), 3936430074, b(p, w), 11), a(l(t, u, v), 3572445317, b(p, w + 12), 16), a(l(t, u, v), 76029189, b(p, w + 24), 23), a(l(t, u, v), 3654602809, b(p, w + 36), 4), a(l(t, u, v), 3873151461, b(p, w + 48), 11), a(l(t, u, v), 530742520, b(p, w + 60), 16), a(l(t, u, v), 3299628645, b(p, w + 8), 23), a(m(t, u, v), 4096336452, b(p, w), 6), a(m(t, u, v), 1126891415, b(p, w + 28), 10), a(m(t, u, v), 2878612391, b(p, w + 56), 15), a(m(t, u, v), 4237533241, b(p, w + 20), 21), a(m(t, u, v), 1700485571, b(p, w + 48), 6), a(m(t, u, v), 2399980690, b(p, w + 12), 10), a(m(t, u, v), 4293915773, b(p, w + 40), 15), a(m(t, u, v), 2240044497, b(p, w + 4), 21), a(m(t, u, v), 1873313359, b(p, w + 32), 6), a(m(t, u, v), 4264355552, b(p, w + 60), 10), a(m(t, u, v), 2734768916, b(p, w + 24), 15), a(m(t, u, v), 1309151649, b(p, w + 52), 21), a(m(t, u, v), 4149444226, b(p, w + 16), 6), a(m(t, u, v), 3174756917, b(p, w + 44), 10), a(m(t, u, v), 718787259, b(p, w + 8), 15), a(m(t, u, v), 3951481745, b(p, w + 36), 21), g = n(g, s), o = n(o, t), q = n(q, u), r = n(r, v);
- return e(r, q, o, g)
- }
- var p, q;
- return p = null, q = null, "string" == typeof a ? p = c(a) : a.constructor === Array ? 0 === a.length ? p = a : "string" == typeof a[0] ? p = g(a) : "number" == typeof a[0] ? p = a : q = typeof a[0] : void 0 !== ArrayBuffer ? a instanceof ArrayBuffer ? p = f(new Uint8Array(a)) : a instanceof Uint8Array || a instanceof Int8Array ? p = f(a) : a instanceof Uint32Array || a instanceof Int32Array || a instanceof Uint16Array || a instanceof Int16Array || a instanceof Float32Array || a instanceof Float64Array ? p = f(new Uint8Array(a.buffer)) : q = typeof a : q = typeof a, q ? !1 : o()
- },
- c = function(a) {
- switch (a) {
- case "americanfootballsd":
- return "footballdata";
- case "basketballsd":
- return "basketballdata";
- case "baseballsd":
- return "baseballdata"
- }
- },
- d = function(b) {
- this.domain = b.domain || a.settings.sdapi_domain || "api.performfeeds.com", this.sport = c(b.sport), this.feed_name = b.data_type, this.outlet_auth_token = b.outlet_auth_token || a.settings.sdapi_outlet_auth_token, this.resource_id = b.resource_id, this.query = b.query || {}, this.url = b.url || this.getURL(), this.all_pages = b.all_pages || !1
- };
- d.prototype.getURL = function() {
- var b = a._,
- c = "//",
- d = this.query,
- e = [];
- return c += this.domain + "/", this.sport && (c += this.sport + "/"), c += this.feed_name + "/", c += this.outlet_auth_token, this.resource_id && (c += "/" + this.resource_id), d._rt || d.no_rt || e.push("_rt=c"), d.no_rt && delete d.no_rt, d._fmt || e.push("_fmt=jsonp"), b.each(d, function(c, d) {
- c = a.utils.fixSingle(c), b.each(c, function(a) {
- a ? e.push(d + "=" + a) : e.push(d)
- })
- }), c += "?" + e.join("&")
- }, d.prototype.getCallback = function() {
- return "OW_" + b(this.url)
- }, a.SdapiRequest = d
- }($jqOpta), $jqOpta.FeedRequest = function(a, b, c, d, e, f) {
- var g;
- if (this.feed_type = a, void 0 !== f && "SDAPI" === f.feedType && (this.sdapi_request = new $jqOpta.SdapiRequest(f.apiParams, f.feedParams), this.feed_type = "SDAPI", b.callback_name = "_clbk"), this.params = $jqOpta.extend({}, b), "SDAPI" === this.feed_type ? (this.url = this.sdapi_request.url, this.max_age = Math.max(15, d)) : (this.url = this.getUrl(), this.max_age = Math.max(30, d)), this.promise = c, this.additional_feed_requests = [], this.trn = {}, this.trn.comps = void 0, this.trn.teams = void 0, this.trn.players = void 0, this.trn.managers = void 0, this.trn.officials = void 0, this.trn.venues = void 0, this.trn.countries = void 0, e && e.comps instanceof Array)
- for (this.trn.comps = {}, g = 0; g < e.comps.length; g += 1) this.trn.comps[e.comps[g]] = !0;
- if (e && e.teams instanceof Array)
- for (this.trn.teams = {}, g = 0; g < e.teams.length; g += 1) this.trn.teams[e.teams[g]] = !0;
- if (e && e.players instanceof Array)
- for (this.trn.players = {}, g = 0; g < e.players.length; g += 1) this.trn.players[e.players[g]] = !0;
- if (e && e.managers instanceof Array)
- for (this.trn.managers = {}, g = 0; g < e.managers.length; g += 1) this.trn.players[e.managers[g]] = !0;
- if (e && e.officials instanceof Array)
- for (this.trn.officials = {}, g = 0; g < e.officials.length; g += 1) this.trn.players[e.officials[g]] = !0;
- if (e && e.venues instanceof Array)
- for (this.trn.venues = {}, g = 0; g < e.venues.length; g += 1) this.trn.players[e.venues[g]] = !0;
- if (e && e.countries instanceof Array)
- for (this.trn.countries = {}, g = 0; g < e.countries.length; g += 1) this.trn.players[e.countries[g]] = !0
- }, $jqOpta.FeedRequest.prototype.getUrl = function() {
- var a = $jqOpta.FeedRequest["URL_" + this.feed_type],
- b = function(a) {
- return a = a || "", a.toString().replace(/[^0-9\,]+/g, "")
- };
- if (void 0 === a) throw "Bad feed type '" + this.feed_type + "' passed in feed request";
- return a = a.replace("[CO]", "basketballsd" !== this.params.sport ? b(this.params.competition) : this.params.competition), a = a.replace("[SE]", "basketballsd" !== this.params.sport ? b(this.params.season) : this.params.season), a = a.replace("[GA]", "basketballsd" !== this.params.sport ? b(this.params.match) : this.params.match), a = a.replace("[TE]", b(this.params.team)), a = a.replace("[RO]", b(this.params.round)), a = a.replace("[T1]", b(this.params.team1)), a = a.replace("[T2]", b(this.params.team2)), a = a.replace("[CH]", this.params.channel), a = a.replace("[DF]", this.params.date_from), a = a.replace("[DT]", this.params.date_to), a = a.replace("[ST]", this.params.stage), a = a.replace("[TM]", this.params.team), a = "pt" === $jqOpta.settings.language && "BR" === $jqOpta.settings.locale.region && this.feed_type === $jqOpta.FeedRequest.FEED_F13 ? a.replace("[LA]", "ptb") : a.replace("[LA]", $jqOpta.trim(this.params.language) || $jqOpta.trim($jqOpta.settings.language)), a = a.replace("[VE]", b(this.params.venue)), a = a.replace(/\[CU\]/g, $jqOpta.trim(this.params.cust_id)), a = a.replace("[LN]", $jqOpta.trim(this.params.lang_id)), a = a.replace("[TR]", b(this.params.trans_id)), a = a.replace("[SP]", b(this.params.sport_id)), a = a.replace("[LBU]", $jqOpta.settings.baseUrl), a = a.replace("[BU]", $jqOpta.settings.widgetFeedBaseUrl), ("F55" === this.feed_type || "F55a" === this.feed_type || "F55o" === this.feed_type) && (a = a.replace("[PH]", b(this.params.phase)), a = a.replace("[IN]", b(this.params.interval))), "OW1" === this.feed_type && (a = a.replace(/\[CHANNEL\]/g, this.params.channel)), /^(PRF\d+|MA\d+)/.test(this.feed_type) && (this.params.callback_name = "_clbk"), "PRF01" === this.feed_type ? (this.params.category_id && (a += "&ctgId=" + b(this.params.category_id)), this.params.category && (this.params.category instanceof Array || (this.params.category = [this.params.category]), $jqOpta._.each(this.params.category, function(b) {
- a += "&ctg=" + b
- })), this.params.keyword && (this.params.keyword instanceof Array || (this.params.keyword = [this.params.keyword]), $jqOpta._.each(this.params.keyword, function(b) {
- a += "&kwd=" + b
- })), this.params.search && (a += "&ft=" + this.params.search), this.params.fields && (a += "&_fld=" + this.params.fields), this.params.page && (a += "&_pgNm=" + this.params.page), this.params.count && (a += "&_pgSz=" + this.params.count), this.params.lnk && (a += "&lnk=" + this.params.lnk), this.params.team && (a += "&lnk=urn:perform:gsm:soccer:team:" + this.params.team), this.params.team_uuid && (a += "&lnk=urn:perform:mfl:contestant:" + this.params.team_uuid), a += "&_lcl=" + (this.params.language || $jqOpta.settings.locale.lang)) : "PRF02" === this.feed_type ? a = a.replace("[ARTICLE_UUID]", this.params.article) : "PRF03" === this.feed_type && (this.params.category && (this.params.category instanceof Array || (this.params.category = [this.params.category]), $jqOpta._.each(this.params.category, function(b) {
- a += "&ctgId=" + b
- })), this.params.channel && (a += "&chnlTl=" + this.params.channel), this.params.channel_id && (a += "&chnlId=" + this.params.channel_id), this.params.keyword && (this.params.keyword instanceof Array || (this.params.keyword = [this.params.keyword]), $jqOpta._.each(this.params.keyword, function(b) {
- a += "&kwd=" + b
- })), this.params.search && (a += "&ft=" + this.params.search), a += this.params.fields ? "&_fld=" + this.params.fields : "&_fld=tl,desc,pt,id,thmb,kwd,mGrp,ctgId", this.params.date_from && (a += "&_dlt=" + this.params.date_from), this.params.count && (a += "&_pgSz=" + Number(this.params.count)), this.params.page && (a += "&_pgNm=" + Number(this.params.page)), a += "&lng=" + (this.params.language || $jqOpta.settings.locale.lang), a += "&_ord=" + (this.params.ord || "pt"), a += "&_ordSrt=" + (this.params.ordSrt || "desc")), "http" !== a.substr(0, 4) && "//" !== a.substr(0, 2) && (a = void 0 !== $jqOpta.settings.feed_base_url ? $jqOpta.settings.feed_base_url + a : "https:" === window.location.protocol ? "https://secure.omo.akamai.opta.net/" + a : "http://omo.akamai.opta.net/" + a), a
- }, $jqOpta.FeedRequest.prototype.getFeedCallback = function() {
- var a;
- if (void 0 !== this.callback) return this.callback;
- switch (this.feed_type) {
- case $jqOpta.FeedRequest.FEED_TRANS_WIDGET:
- return "WT_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id;
- case $jqOpta.FeedRequest.FEED_TRANS_COMP:
- return "CP_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id + "_" + this.params.sport_id + "_" + this.params.season;
- case $jqOpta.FeedRequest.FEED_TRANS_TEAM:
- return "TN_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id + "_" + this.params.sport_id + "_" + this.params.season + "_" + this.params.competition;
- case $jqOpta.FeedRequest.FEED_TRANS_PLAYER:
- return "PN_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id + "_" + this.params.sport_id + "_" + this.params.season + "_" + this.params.competition + "_" + this.params.team;
- case $jqOpta.FeedRequest.FEED_TRANS_PLAYER_CHANGES:
- return "PC_" + this.params.sport_id + "_" + this.params.lang_id;
- case $jqOpta.FeedRequest.FEED_TRANS_VENUE:
- return "VE_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id + "_" + this.params.sport_id + "_" + this.params.season + "_" + this.params.competition;
- case $jqOpta.FeedRequest.FEED_TRANS_OFFICIAL:
- return "OF_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id + "_" + this.params.sport_id + "_" + this.params.season + "_" + this.params.competition;
- case $jqOpta.FeedRequest.FEED_TRANS_MANAGER:
- return "MA_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id + "_" + this.params.sport_id + "_" + this.params.season + "_" + this.params.competition;
- case $jqOpta.FeedRequest.FEED_TRANS_COUNTRY:
- return "CN_" + this.params.cust_id + "_" + this.params.trans_id + "_" + this.params.lang_id;
- case $jqOpta.FeedRequest.FEED_SHORT_COMP:
- return $jqOpta.FeedRequest.FEED_SHORT_COMP;
- case $jqOpta.FeedRequest.FEED_SHORT_TEAM:
- return $jqOpta.FeedRequest.FEED_SHORT_TEAM;
- case $jqOpta.FeedRequest.FEED_TRANS_TENNIS:
- return "TE_" + this.params.lang_id;
- case $jqOpta.FeedRequest.FEED_TRANS_HISTORICAL_COMP:
- return "HC_" + this.params.lang_id;
- case $jqOpta.FeedRequest.FEED_OW1:
- return "optahw_" + this.params.channel;
- case "SDAPI":
- return this.sdapi_request.getCallback();
- case "PRF01":
- return a = this.feed_type + "_" + this.params.competition + "_" + this.params.season, this.params.keyword && (a += "_k" + $jqOpta.sha1(this.params.keyword)), this.params.count && (a += "_p" + this.params.page), this.params.count && (a += "_c" + this.params.count), a;
- case $jqOpta.FeedRequest.FEED_TWITTER:
- return "twitter_" + this.params.channel;
- case $jqOpta.FeedRequest.FEED_VIDEOPLAYER:
- return "opta_videoplayer";
- default:
- return a = this.feed_type + "_" + this.params.competition + "_" + this.params.season, this.params.match && (a += "_m" + this.params.match), this.params.team && (a += "_t" + this.params.team), this.params.lang && (a += "_l" + this.params.lang_id), this.params.trans_id && (a += "_tr" + this.params.trans_id), this.params.sport_id && (a += "_sp" + this.params.sport_id), this.params.venue && (a += "_v" + this.params.venue), a = a.replace(/[\s]/g, ""), a = a.replace(/[\,\&\.-]/g, "_")
- }
- throw "BAD"
- }, $jqOpta.FeedRequest.prototype.triggerCallback = function(a) {
- this.callback(a)
- },
- function(a) {
- a.FEED_F1 = "F1", a.FEED_F1_JSON = "F1_JSON", a.FEED_F1A = "F1", a.FEED_F2 = "F2", a.FEED_F3 = "F3", a.FEED_F7 = "F9", a.FEED_F9 = "F9", a.FEED_F9_JSON = "F9_JSON", a.FEED_F13 = "F13", a.FEED_F13M = "F13M", a.FEED_F15 = "F15", a.FEED_F15_JSON = "F15_JSON", a.FEED_F23 = "F23", a.FEED_F24 = "F24", a.FEED_F24b = "F24b", a.FEED_F26 = "F26", a.FEED_F27 = "F27", a.FEED_F27a = "F27a", a.FEED_F28 = "F28", a.FEED_F30 = "F30", a.FEED_F30_JSON = "F30_JSON", a.FEED_F31 = "F31", a.FEED_F36 = "F36", a.FEED_F37 = "F37", a.FEED_F4 = "F4", a.FEED_F40 = "F40", a.FEED_F40_JSON = "F40_JSON", a.FEED_F45 = "F45", a.FEED_F53 = "F53", a.FEED_F53a = "F53a", a.FEED_F54 = "F54", a.FEED_F55 = "F55", a.FEED_F55a = "F55a", a.FEED_F55o = "F55o", a.FEED_F56 = "F56", a.FEED_F57 = "F57", a.FEED_F57a = "F57a", a.FEED_F57o = "F57o", a.FEED_F57ao = "F57ao", a.FEED_FBCAREER = "FBCAREER", a.FEED_RUF1 = "RUF1", a.FEED_RUF2 = "RUF2", a.FEED_RUF3 = "RUF3", a.FEED_RU3 = "RU3", a.FEED_RU4 = "RU4", a.FEED_RU5 = "RU5", a.FEED_RU51 = "RU51", a.FEED_RL51 = "RL51", a.FEED_RUF7 = "RUF7", a.FEED_RUF9 = "RUF9", a.FEED_RU10 = "RU10", a.FEED_RUF13 = "RUF13", a.FEED_RUF13M = "RUF13M", a.FEED_RU23 = "RU23", a.FEED_RU24 = "RU24", a.FEED_RLF1 = "RLF1", a.FEED_RL2 = "RL2", a.FEED_RL3 = "RL3", a.FEED_RL7 = "RL7", a.FEED_RLF9 = "RLF9", a.FEED_RL10 = "RL10", a.FEED_RLF13 = "RLF13", a.FEED_RLF13M = "RLF13M", a.FEED_RL23 = "RL23", a.FEED_RL24 = "RL24", a.FEED_RL29 = "RL29", a.FEED_AFL1 = "AFL1", a.FEED_AFL3 = "AFL3", a.FEED_AFL9 = "AFL9", a.FEED_NFL_STANDINGS = "NFL_STANDINGS", a.FEED_NET1 = "NET1", a.FEED_NET3 = "NET3", a.FEED_NET9 = "NET9", a.FEED_BSBTABLES = "BSBTABLES", a.FEED_BSBH2H = "BSBH2H", a.FEED_BSBMATCHES = "BSBMATCHES", a.FEED_BSBMATCHESLIVE = "BSBMATCHESLIVE", a.FEED_BSBMATCH = "BSBMATCH", a.FEED_BBTABLES = "BBTABLES", a.FEED_BBH2H = "BBH2H", a.FEED_BBMATCHES = "BBMATCHES", a.FEED_BBMATCHESLIVE = "BBMATCHESLIVE", a.FEED_BBMATCH = "BBMATCH", a.FEED_BBROSTER = "BBROSTER", a.FEED_HBTABLES = "HBTABLES", a.FEED_HBMATCHES = "HBMATCHES", a.FEED_HBMATCHESLIVE = "HBMATCHESLIVE", a.FEED_VBTABLES = "VBTABLES", a.FEED_VBMATCHES = "VBMATCHES", a.FEED_VBMATCHESLIVE = "VBMATCHESLIVE", a.FEED_C1 = "C1", a.FEED_C1m = "C1m", a.FEED_C1e = "C1e", a.FEED_C1a = "C1a", a.FEED_C1i = "C1i", a.FEED_C1o = "C1o", a.FEED_C1w = "C1w", a.FEED_C1c = "C1c", a.FEED_C1n = "C1n", a.FEED_C1s = "C1s", a.FEED_C2 = "C2", a.FEED_C3 = "C3", a.FEED_C5 = "C5", a.FEED_C6 = "C6", a.FEED_C7 = "C7", a.FEED_C9 = "C9", a.FEED_C10 = "C10", a.FEED_C11 = "C11", a.FEED_C12 = "C12", a.FEED_C30 = "C30", a.FEED_C50 = "C50", a.FEED_IH1 = "IH1", a.FEED_IH3 = "IH3", a.FEED_IH9 = "IH9", a.FEED_IHTABLES = "IHTABLES", a.FEED_IHH2H = "IHH2H", a.FEED_IHMATCHES = "IHMATCHES", a.FEED_IHMATCH = "IHMATCH", a.FEED_BB1 = "BB1", a.FEED_BB3 = "BB3", a.FEED_BB9 = "BB9", a.FEED_BB24 = "BB24", a.FEED_BBTABLES = "BBTABLES", a.FEED_BBH2H = "BBH2H", a.FEED_BBMATCHES = "BBMATCHES", a.FEED_BBMATCH = "BBMATCH", a.FEED_BBSTANDINGS = "BBSTANDINGS", a.FEED_NFLSTANDINGS = "NFLSTANDINGS", a.FEED_BSBTABLES = "BSBTABLES", a.FEED_BSBH2H = "BSBH2H", a.FEED_BSBMATCHES = "BSBMATCHES", a.FEED_BSBMATCH = "BSBMATCH", a.FEED_AFTABLES = "AFTABLES", a.FEED_AFH2H = "AFH2H", a.FEED_AFMATCHES = "AFMATCHES", a.FEED_AFMATCH = "AFMATCH", a.FEED_IHTABLES = "IHTABLES", a.FEED_IHH2H = "IHH2H", a.FEED_IHMATCHES = "IHMATCHES", a.FEED_IHMATCH = "IHMATCH", a.FEED_HBL1 = "HBL1", a.FEED_HBL3 = "HBL3", a.FEED_VBL1 = "VBL1", a.FEED_VBL3 = "VBL3", a.FEED_G1 = "G1", a.FEED_G2 = "G2", a.FEED_G2M = "G2M", a.FEED_G15 = "G15", a["FEED_MR1-L-NT"] = "MR1-L-NT", a["FEED_MR2-L-NT"] = "MR2-L-NT", a.FEED_MR4 = "MR4", a.FEED_MR5 = "MR5", a.FEED_MR6 = "MR6", a.FEED_MR8 = "MR8", a.FEED_MR9 = "MR9", a.FEED_MR10 = "MR10", a.FEED_MR12 = "MR12", a.FEED_TAB1 = "TAB1", a.FEED_TAB2 = "TAB2", a.FEED_TAB4 = "TAB4", a.FEED_TAB7 = "TAB7", a.FEED_TAB15 = "TAB15", a.FEED_OW1 = "OW1", a.FEED_PRF01 = "PRF01", a.FEED_PRF02 = "PRF02", a.FEED_PRF03 = "PRF03", a.FEED_SHORT_COMP = "SHORT_COMP", a.FEED_TRANS_WIDGET = "TRANS_WIDGET", a.FEED_TRANS_COMP = "TRANS_COMP", a.FEED_TRANS_TEAM = "TRANS_TEAM", a.FEED_TRANS_PLAYER = "TRANS_PLAYER", a.FEED_TRANS_PLAYER_CHANGES = "TRANS_PLAYER_CHANGES", a.FEED_TRANS_VENUE = "TRANS_VENUE", a.FEED_TRANS_OFFICIAL = "TRANS_OFFICIAL", a.FEED_TRANS_MANAGER = "TRANS_MANAGER", a.FEED_TRANS_COUNTRY = "TRANS_COUNTRY", a.FEED_TRANS_TENNIS = "TRANS_TENNIS", a.FEED_TRANS_HISTORICAL_COMP = "TRANS_HISTORICAL_COMP", a.FEED_TWITTER = "TWITTER", a.FEED_VIDEOPLAYER = "VIDEOPLAYER", a.URL_F1 = "competition.php?feed_type=f1_packed&competition=[CO]&season_id=[SE]", a.URL_F1_JSON = "competition.php?feed_type=f1&competition=[CO]&season_id=[SE]", a.URL_F2 = "?feed_type=F2&game_id=[GA]", a.URL_F3 = "competition.php?feed_type=f3_packed&competition=[CO]&season_id=[SE]", a.URL_F9 = "?feed_type=f9_packed&game_id=[GA]", a.URL_F9_JSON = "?feed_type=f9&game_id=[GA]", a.URL_F13 = "?feed_type=F13&game_id=[GA]&language=[LA]", a.URL_F13M = "?feed_type=F13m&game_id=[GA]&language=[LA]", a.URL_F15 = "competition.php?feed_type=f15_packed&competition=[CO]&season_id=[SE]", a.URL_F15_JSON = "competition.php?feed_type=f15&competition=[CO]&season_id=[SE]", a.URL_F23 = "competition.php?feed_type=F23&competition=[CO]&season_id=[SE]", a.URL_F24 = "?feed_type=f24_packed&game_id=[GA]", a.URL_F24b = "?feed_type=f24b_packed&game_id=[GA]", a.URL_F26 = "competition.php?feed_type=f26_packed&competition=[CO]&season_id=[SE]", a.URL_F27 = "index.php?feed_type=F27&game_id=[GA]", a.URL_F27a = "team_game.php?feed_type=F27&game_id=[GA]&team_id=[TE]", a.URL_F28 = "index.php?feed_type=f28&game_id=[GA]", a.URL_F30 = "team_competition.php?feed_type=f30_packed&competition=[CO]&season_id=[SE]&team_id=[TE]", a.URL_F30_JSON = "team_competition.php?feed_type=f30&competition=[CO]&season_id=[SE]&team_id=[TE]", a.URL_F31 = "?feed_type=F31&game_id=[GA]", a.URL_F36 = "competition.php?feed_type=f36_packed&competition=[CO]&season_id=[SE]", a.URL_F37 = "competition.php?feed_type=f37&competition=[CO]&season_id=[SE]", a.URL_F4 = "?feed_type=f4&game_id=[GA]&language=[LA]", a.URL_F40 = "competition.php?feed_type=f40_packed&competition=[CO]&season_id=[SE]", a.URL_F40_JSON = "competition.php?feed_type=f40&competition=[CO]&season_id=[SE]", a.URL_F45 = "competition.php?feed_type=F45&competition=[CO]&season_id=[SE]&venue_id=[VE]", a.URL_F53 = "?feed_type=F53&game_id=[GA]", a.URL_F53a = "?feed_type=F53a&game_id=[GA]", a.URL_F54 = "?feed_type=F54&game_id=[GA]", a.URL_F55 = "team_game.php?feed_type=F55&game_id=[GA]&team_id=[PH][IN]", a.URL_F55a = "team_game.php?feed_type=F55a&game_id=[GA]&team_id=[PH][IN]", a.URL_F55o = "team_game.php?feed_type=F55o&game_id=[GA]&team_id=[PH][IN]", a.URL_F56 = "team_competition.php?feed_type=f56&competition=[CO]&season_id=[SE]&team_id=[TE]", a.URL_F57 = "?feed_type=F57&game_id=[GA]", a.URL_F57a = "?feed_type=F57a&game_id=[GA]", a.URL_F57o = "?feed_type=F57o&game_id=[GA]", a.URL_F57ao = "?feed_type=F57ao&game_id=[GA]", a.URL_FBCAREER = "core.php?feed_type=opta_core&sport=soccer&method=career&id=[TE]&type=team", a.URL_RUF1 = "competition.php?feed_type=ruf1&competition=[CO]&season_id=[SE]", a.URL_RUF2 = "?feed_type=RUF2&game_id=[GA]", a.URL_RUF3 = "competition.php?feed_type=ruf3&competition=[CO]&season_id=[SE]", a.URL_RU3 = "competition.php?feed_type=ru3&competition=[CO]&season_id=[SE]", a.URL_RU4 = "competition.php?feed_type=ru4&competition=[CO]&season_id=[SE]", a.URL_RU5 = "competition.php?feed_type=ru5&competition=[CO]&season_id=[SE]", a.URL_RU51 = "?feed_type=ru51&game_id=[GA]", a.URL_RL51 = "?feed_type=rl51&game_id=[GA]", a.URL_RUF7 = "?feed_type=ru7&game_id=[GA]", a.URL_RUF9 = "?feed_type=ruf9&game_id=[GA]", a.URL_RU10 = "competition.php?feed_type=RU10&competition=[CO]&season_id=[SE]", a.URL_RUF13 = "?feed_type=RUF13&game_id=[GA]&language=[LA]", a.URL_RUF13M = "?feed_type=RUF13m&game_id=[GA]&language=[LA]", a.URL_RU23 = "competition.php?feed_type=RU23&competition=[CO]&season_id=[SE]", a.URL_RU24 = "competition.php?feed_type=RU24&competition=[CO]&season_id=[SE]", a.URL_RLF1 = "competition.php?feed_type=rlf1&competition=[CO]&season_id=[SE]", a.URL_RL2 = "competition.php?feed_type=rl2&competition=[CO]&season_id=[SE]", a.URL_RL3 = "competition.php?feed_type=rl3&competition=[CO]&season_id=[SE]", a.URL_RL7 = "?feed_type=rl7&game_id=[GA]", a.URL_RLF9 = "?feed_type=rlf9&game_id=[GA]", a.URL_RL10 = "competition.php?feed_type=RL10&competition=[CO]&season_id=[SE]", a.URL_RLF13 = "?feed_type=RLF13&game_id=[GA]", a.URL_RLF13M = "?feed_type=RLF13M&game_id=[GA]", a.URL_RL23 = "competition.php?feed_type=RL23&competition=[CO]&season_id=[SE]", a.URL_RL24 = "competition.php?feed_type=RL24&competition=[CO]&season_id=[SE]", a.URL_RL29 = "?feed_type=RL29&game_id=[GA]", a.URL_AFL1 = "competition.php?feed_type=afl1&competition=[CO]&season_id=[SE]", a.URL_AFL3 = "competition.php?feed_type=afl3&competition=[CO]&season_id=[SE]", a.URL_AFL9 = "?feed_type=afl9&game_id=[GA]", a.URL_NFL_STANDINGS = "//widgets.optadev.com/assets/json/nfl_standings.js", a.URL_BSBTABLES = "core.php?feed_type=opta_core&sport=baseball&method=tables&id=[CO]&type=season&tabletype=total", a.URL_BSBH2H = "core.php?feed_type=opta_core&sport=baseball&method=head2head&team_A_id=[T1]&team_B_id=[T2]", a.URL_BSBMATCHES = "core.php?feed_type=opta_core&sport=baseball&method=matches&id=[CO]&type=season", a.URL_BSBMATCHESLIVE = "core.php?feed_type=opta_core&sport=baseball&method=matches_live&id=[CO]&type=season", a.URL_BSBMATCH = "core.php?feed_type=opta_core&sport=baseball&method=matches&id=[GA]&type=match&detailed=yes&statistics=yes", a.URL_BBTABLES = "core.php?feed_type=opta_core&sport=basketball&method=tables&id=[CO]&type=season&tabletype=total", a.URL_BBH2H = "core.php?feed_type=opta_core&sport=basketball&method=head2head&team_A_id=[T1]&team_B_id=[T2]", a.URL_BBMATCHES = "core.php?feed_type=opta_core&sport=basketball&method=matches&id=[CO]&type=season", a.URL_BBMATCHESLIVE = "core.php?feed_type=opta_core&sport=basketball&method=matches_live&id=[CO]&type=season", a.URL_BBMATCH = "core.php?feed_type=opta_core&sport=basketball&method=matches&id=[GA]&type=match&detailed=yes&statistics=yes", a.URL_HBTABLES = "core.php?feed_type=opta_core&sport=handball&method=tables&id=[CO]&type=season&tabletype=total", a.URL_HBMATCHES = "core.php?feed_type=opta_core&sport=handball&method=matches&id=[CO]&type=season", a.URL_HBMATCHESLIVE = "core.php?feed_type=opta_core&sport=handball&method=matches_live&id=[CO]&type=season", a.URL_VBTABLES = "core.php?feed_type=opta_core&sport=volleyball&method=tables&id=[CO]&type=season&tabletype=total", a.URL_VBMATCHES = "core.php?feed_type=opta_core&sport=volleyball&method=matches&id=[CO]&type=season", a.URL_VBMATCHESLIVE = "core.php?feed_type=opta_core&sport=volleyball&method=matches_live&id=[CO]&type=season", a.URL_C1 = "competition.php?feed_type=C1&competition=0&season_id=0", a.URL_C1m = "competition.php?feed_type=C1m&competition=0&season_id=0", a.URL_C1e = "competition.php?feed_type=C1e&competition=0&season_id=0", a.URL_C1a = "competition.php?feed_type=C1a&competition=0&season_id=0", a.URL_C1i = "competition.php?feed_type=C1i&competition=0&season_id=0", a.URL_C1o = "competition.php?feed_type=C1o&competition=0&season_id=0", a.URL_C1w = "competition.php?feed_type=C1w&competition=0&season_id=0", a.URL_C1c = "competition.php?feed_type=C1c&competition=0&season_id=0", a.URL_C1n = "competition.php?feed_type=C1n&competition=0&season_id=0", a.URL_C1s = "competition.php?feed_type=C1s&competition=0&season_id=0", a.URL_C2 = "?feed_type=c2&game_id=[GA]", a.URL_C3 = "?feed_type=c3&game_id=[GA]", a.URL_C5 = "competition.php?feed_type=C5&competition=[CO]&season_id=0", a.URL_C6 = "team_game.php?feed_type=c6&game_id=[GA]&team_id=[TE]", a.URL_C7 = "team_game.php?feed_type=c7&game_id=[GA]&team_id=[TE]", a.URL_C9 = "competition.php?feed_type=C9&competition=0&season_id=0", a.URL_C10 = "competition.php?feed_type=C10&competition=[CO]&season_id=0", a.URL_C11 = "competition.php?feed_type=c11&competition=[CO]&season_id=0", a.URL_C12 = "?feed_type=C12&game_id=[GA]", a.URL_C30 = "competition.php?feed_type=C30&competition=[CO]&season_id=0", a.URL_C50 = "?feed_type=c50&game_id=[GA]", a.URL_IH1 = "competition.php?feed_type=IH1&competition=[CO]&season_id=[SE]", a.URL_IH3 = "competition.php?feed_type=IH3&competition=[CO]&season_id=[SE]", a.URL_IH9 = "?feed_type=IH9&game_id=[GA]", a.URL_IHTABLES = "core.php?feed_type=opta_core&sport=hockey&method=tables&id=[CO]&type=season&tabletype=total", a.URL_IHH2H = "core.php?feed_type=opta_core&sport=hockey&method=head2head&team_A_id=[T1]&team_B_id=[T2]", a.URL_IHMATCHES = "core.php?feed_type=opta_core&sport=hockey&method=matches&id=[CO]&type=season", a.URL_IHMATCH = "core.php?feed_type=opta_core&sport=hockey&method=matches&id=[GA]&type=match", a.URL_NET1 = "competition.php?feed_type=NET1&competition=[CO]&season_id=[SE]", a.URL_NET3 = "competition.php?feed_type=NET3&competition=[CO]&season_id=[SE]", a.URL_NET9 = "?feed_type=NET9&game_id=[GA]", a.URL_BB1 = "competition.php?feed_type=BB1&competition=[CO]&season_id=[SE]", a.URL_BB3 = "competition.php?feed_type=BB3&competition=[CO]&season_id=[SE]", a.URL_BB9 = "?feed_type=BB9&game_id=[GA]", a.URL_BB24 = "?feed_type=BB24&game_id=[GA]", a.URL_BBTABLES = "core.php?feed_type=opta_core&sport=basketball&method=tables&id=[CO]&type=season&tabletype=total", a.URL_BBH2H = "core.php?feed_type=opta_core&sport=basketball&method=head2head&team_A_id=[T1]&team_B_id=[T2]", a.URL_BBMATCHES = "core.php?feed_type=opta_core&sport=basketball&method=matches&id=[CO]&type=season", a.URL_BBMATCH = "core.php?feed_type=opta_core&sport=basketball&method=matches&id=[GA]&type=match", a.URL_BBROSTER = "//widgets.optadev.com/assets/json/TM3.js", a.URL_BBSTANDINGS = "[LBU]assets/json/TM2.js", a.URL_NFLSTANDINGS = "[LBU]assets/json/nfl_standings.js", a.URL_BSBTABLES = "core.php?feed_type=opta_core&sport=baseball&method=tables&id=[CO]&type=season&tabletype=total", a.URL_BSBH2H = "core.php?feed_type=opta_core&sport=baseball&method=head2head&team_A_id=[T1]&team_B_id=[T2]", a.URL_BSBMATCHES = "core.php?feed_type=opta_core&sport=baseball&method=matches&id=[CO]&type=season", a.URL_BSBMATCH = "core.php?feed_type=opta_core&sport=baseball&method=matches&id=[GA]&type=match", a.URL_AFTABLES = "core.php?feed_type=opta_core&sport=americanfootball&method=tables&id=[CO]&type=season&tabletype=total", a.URL_AFH2H = "core.php?feed_type=opta_core&sport=americanfootball&method=head2head&team_A_id=[T1]&team_B_id=[T2]", a.URL_AFMATCHES = "core.php?feed_type=opta_core&sport=americanfootball&method=matches&id=[CO]&type=season", a.URL_AFMATCH = "core.php?feed_type=opta_core&sport=americanfootball&method=matches&id=[GA]&type=match", a.URL_IHTABLES = "core.php?feed_type=opta_core&sport=hockey&method=tables&id=[CO]&type=season&tabletype=total", a.URL_IHH2H = "core.php?feed_type=opta_core&sport=hockey&method=head2head&team_A_id=[T1]&team_B_id=[T2]", a.URL_IHMATCHES = "core.php?feed_type=opta_core&sport=hockey&method=matches&id=[CO]&type=season", a.URL_IHMATCH = "core.php?feed_type=opta_core&sport=hockey&method=matches&id=[GA]&type=match", a.URL_HBL1 = "competition.php?feed_type=HBL1&competition=[CO]&season_id=[SE]", a.URL_HBL3 = "competition.php?feed_type=HBL3&competition=[CO]&season_id=[SE]", a.URL_VBL1 = "competition.php?feed_type=VBL1&competition=[CO]&season_id=[SE]", a.URL_VBL3 = "competition.php?feed_type=VBL3&competition=[CO]&season_id=[SE]", a.URL_G1 = "competition.php?feed_type=G1&competition=[CO]&season_id=[SE]", a.URL_G2 = "?feed_type=g2&game_id=[GA]", a.URL_G2M = "?feed_type=g2m&game_id=[GA]", a.URL_G15 = "competition.php?feed_type=G15&competition=[CO]&season_id=[SE]", $jqOpta.FeedRequest["URL_MR1-L-NT"] = "?feed_type=MR1-L-NT&game_id=[GA]", $jqOpta.FeedRequest["URL_MR2-L-NT"] = "?feed_type=MR2-L-NT&game_id=[GA]", a.URL_MR4 = "competition.php?feed_type=MR4&competition=[CO]&season_id=[SE]", a.URL_MR5 = "competition.php?feed_type=MR5&competition=[CO]&season_id=[SE]", a.URL_MR6 = "competition.php?feed_type=MR6&competition=[CO]&season_id=[SE]", a.URL_MR8 = "?feed_type=MR8&game_id=[GA]", a.URL_MR9 = "competition.php?feed_type=MR9&competition=[CO]&season_id=[SE]", a.URL_MR10 = "competition.php?feed_type=MR10&competition=[CO]&season_id=[SE]", a.URL_MR12 = "competition.php?feed_type=MR12&competition=[CO]&season_id=[SE]", a.URL_TAB1 = "competition.php?feed_type=TAB1&competition=0&season_id=[SE]", a.URL_TAB2 = "competition.php?feed_type=TAB2&competition=[CO]&season_id=[SE]", a.URL_TAB4 = "?feed_type=TAB4&game_id=[GA]", a.URL_TAB7 = "?feed_type=TAB7&game_id=[GA]", a.URL_TAB15 = "competition.php?feed_type=TAB15&competition=[CO]&season_id=[SE]", a.URL_OW1 = "//s3-eu-west-1.amazonaws.com/widget.cloud.opta.net/headlines/[CHANNEL]/[CHANNEL].json", a.URL_SHORT_COMP = "[BU]assets/json/compShortNames.js", a.URL_TRANS_WIDGET = "[BU]../translations_v2/[CU]/WT_[CU]_[TR]_[LN].json", a.URL_TRANS_COMP = "[BU]../translations_v2/[CU]/CP_[CU]_[TR]_[LN]_[SP]_[SE].json", a.URL_TRANS_TEAM = "[BU]../translations_v2/[CU]/TN_[CU]_[TR]_[LN]_[SP]_[SE]_[CO].json", a.URL_TRANS_PLAYER = "[BU]../translations_v2/[CU]/PN_[CU]_[TR]_[LN]_[SP]_[SE]_[CO]_[TE].json", a.URL_TRANS_PLAYER_CHANGES = "[BU]../translations_v2/[CU]/changes/player/PC_[SP]_[LN].json", a.URL_TRANS_COUNTRY = "[BU]../translations_v2/[CU]/CN_[CU]_[TR]_[LN].json", a.URL_TRANS_MANAGER = "[BU]../translations_v2/[CU]/MA_[CU]_[TR]_[LN]_[SP]_[SE]_[CO].json", a.URL_TRANS_OFFICIAL = "[BU]../translations_v2/[CU]/OF_[CU]_[TR]_[LN]_[SP]_[SE]_[CO].json", a.URL_TRANS_VENUE = "[BU]../translations_v2/[CU]/VE_[CU]_[TR]_[LN]_[SP]_[SE]_[CO].json", a.URL_TRANS_TENNIS = "[BU]../translations_v2/tennis/TE_[LN].json", a.URL_TRANS_HISTORICAL_COMP = "[BU]../translations_v2/historical_comp/HC_[LN].json", a.URL_TWITTER = "//widget.cloud.opta.net.s3.amazonaws.com/data/twitter/twitter_[CH].json", a.URL_VIDEOPLAYER = "[LBU]assets/json/opta_videoplayer.json", a.URL_TRN_SCRIPT = "", a.URL_PRF01 = "//opta-article.performfeeds.com/article/1t97ffnd5cp761lay7ucgk9qak?_fmt=jsonp&_rt=c", a.URL_PRF02 = "//opta-article.performfeeds.com/article/1t97ffnd5cp761lay7ucgk9qak/[ARTICLE_UUID]?_fmt=jsonp&_rt=c&_fld=tsr,bd,hl,pt,lut,vdo,img,ctg,kwd,pt", a.URL_PRF03 = "//opta-vod.performfeeds.com/vod/1t97ffnd5cp761lay7ucgk9qak/?_fmt=jsonp&_rt=c&vo=ep"
- }($jqOpta.FeedRequest), $jqOpta.FeedMonitor = {}, $jqOpta.FeedMonitor.pending_feed_requests = {}, $jqOpta.FeedMonitor.feeds = [], $jqOpta.FeedMonitor.requestFeed = function(a) {
- var b, c, d = !0,
- e = (new Date).getTime();
- if (!/^opta_draw/.test(a.callback) && a.max_age > 5 && (a.sdapi_request ? a.max_age = Math.max(15, a.max_age) : a.max_age = Math.max(30, a.max_age)), a = $jqOpta.extend(!0, {}, a), void 0 !== $jqOpta.FeedMonitor.pending_feed_requests[a.url] && (a.no_loopback = !0, $jqOpta.FeedMonitor.pending_feed_requests[a.url].additional_feed_requests.push(a), d = !1), $jqOpta.FeedMonitor.feeds.length)
- for (b = 0; b < $jqOpta.FeedMonitor.feeds.length; b += 1) c = $jqOpta.FeedMonitor.feeds[b], c.url === a.url && e < c.last_request + 1e3 * a.max_age && (c.data.error ? a.promise.reject(c.data) : (a.last_feed_request = c.last_request, $jqOpta.FeedMonitor.getTranslationScript(a, c.data)), d = !1);
- d && ($jqOpta.FeedMonitor.pending_feed_requests[a.url] = a, $jqOpta.FeedMonitor.getFeed(a))
- }, $jqOpta.FeedMonitor.getFeed = function(a) {
- var b, c = {
- url: a.url,
- dataType: a.response_type || "jsonp",
- cache: !0,
- timeout: 3e4,
- success: function(b, c, d) {
- "script" === a.response_type ? $jqOpta.FeedMonitor.storeFeed(a, b) : void 0 !== b.response && ("Error" === b.response.substr(0, 5) || "Sorry" === b.response.substr(0, 5)) || b.errorCode ? $jqOpta.FeedMonitor.failFeed(a, d, -2, b.response) : $jqOpta.FeedMonitor.decodeData(a, b)
- },
- error: function(b, c, d) {
- $jqOpta.FeedMonitor.failFeed(a, b, c, d)
- }
- }; - 1 !== a.url.indexOf("omo.akamai.") && -1 === a.url.indexOf("&psw=") && (c.data = {
- user: "OWV3",
- psw: "trDd59TW"
- }, "script" !== a.response_type && navigator.userAgent.match(/AppleWebKit/) && !navigator.userAgent.match(/Chrome/) && (b = new Date, c.data._ = b.getFullYear().toString() + b.getMonth().toString() + b.getDate().toString() + b.getHours().toString() + b.getMinutes().toString())), "jsonp" !== a.response_type && void 0 !== a.response_type ? (c.jsonp = void 0 !== a.params.callback_name ? a.params.callback_name : "jsoncallback", c.jsonpCallback = a.getFeedCallback(), $jqOpta.ajax(c)) : (c.callbackParameter = void 0 !== a.params.callback_name ? a.params.callback_name : "jsoncallback", c.callback = a.getFeedCallback(), $jqOpta.jsonp(c))
- }, $jqOpta.FeedMonitor.getTranslationScript = function(a, b) {
- var c = function() {
- var c, d = new $jqOpta.Deferred;
- if (d.done(function() {
- $jqOpta["trn_" + a.trans_script_type](b, a, function(b) {
- $jqOpta.FeedMonitor.storeFeed(a, b)
- })
- }), d.fail(function() {
- return $jqOpta.FeedMonitor.failFeed(a, null, "error", b.message)
- }), b instanceof Object && void 0 !== b.response) return d.reject();
- switch (a.feed_type) {
- case "BBMATCH":
- case "BBMATCHES":
- case "BBTABLES":
- case "BBH2H":
- case "FBCAREER":
- case "F15":
- case "F1":
- case "F1_JSON":
- case "F1A":
- case "F2":
- case "F24":
- case "F24b":
- case "F26":
- case "F26a":
- case "F27":
- case "F27a":
- case "F28":
- case "F3":
- case "F30":
- case "F31":
- case "F36":
- case "F40":
- case "F45":
- case "F7":
- case "F9":
- case "HBMATCHES":
- case "HBTABLES":
- case "RUF1":
- case "RUF3":
- case "RUF7":
- case "RUF9":
- case "RU23":
- case "VBL1":
- case "HBL1":
- case "F9_JSON":
- case "F30_JSON":
- case "F40_JSON":
- case "F53":
- case "F53a":
- case "F54":
- case "F55":
- case "F55o":
- case "F55a":
- case "F57":
- case "F57a":
- case "F57ao":
- case "F57o":
- case "BB1":
- case "BB3":
- switch (a.trans_script_type = a.feed_type, a.trans_script_type) {
- case "F1_JSON":
- a.trans_script_type = "F1A";
- break;
- case "F26a":
- a.trans_script_type = "F26";
- break;
- case "F27a":
- a.trans_script_type = "F27";
- break;
- case "F1":
- a.trans_script_type = "F1A";
- break;
- case "RUF1":
- a.trans_script_type = "F1A";
- break;
- case "RUF3":
- a.trans_script_type = "F3";
- break;
- case "RUF9":
- case "F9_JSON":
- a.trans_script_type = "F9";
- break;
- case "F30_JSON":
- a.trans_script_type = "F30";
- break;
- case "F40_JSON":
- a.trans_script_type = "F40";
- break;
- case "VBL1":
- a.trans_script_type = "HBL1";
- break;
- case "F55o":
- a.trans_script_type = "F55";
- break;
- case "F24b":
- a.trans_script_type = "F24"
- }
- if (void 0 !== $jqOpta["trn_" + a.trans_script_type]) return d.resolve();
- c = new $jqOpta.FeedRequest("TRN_SCRIPT", {}, d, 99999), c.response_type = "script", c.feed_type = "trn", c.url = $jqOpta.settings.baseUrl + "js/trn/" + a.trans_script_type + ".js", $jqOpta.FeedMonitor.requestFeed(c);
- break;
- case "SDAPI":
- if (-1 === ["article", "ltc", "blog", "vod", "mfl"].indexOf(a.sdapi_request.feed_name)) {
- if (a.trans_script_type = "sdapi_" + a.sdapi_request.sport + "_" + a.sdapi_request.feed_name, c = new $jqOpta.FeedRequest("TRN_SCRIPT", {}, d, 99999), c.response_type = "script", c.feed_type = "trn", c.url = $jqOpta.settings.baseUrl + "js/trn/" + a.trans_script_type + ".js", void 0 !== $jqOpta["trn_" + a.trans_script_type]) return d.resolve();
- $jqOpta.FeedMonitor.requestFeed(c)
- } else $jqOpta.FeedMonitor.storeFeed(a, b);
- break;
- default:
- $jqOpta.FeedMonitor.storeFeed(a, b)
- }
- };
- c()
- }, $jqOpta.FeedMonitor.decodeData = function(a, b) {
- var c, d, e, f = new $jqOpta.Deferred;
- return f.done(function() {
- $jqOpta["bin_" + a.feed_type + "_" + e](d, a, function(b) {
- $jqOpta.FeedMonitor.getTranslationScript(a, b)
- })
- }), f.fail(function() {
- return $jqOpta.FeedMonitor.failFeed(a, null, "error", b.message)
- }), void 0 !== b.response ? f.reject() : a.url.match(/([A-Za-z0-9\[\]]+)_packed|feedproxy/i) ? (b = $jqOpta.base64.decode(b.data), b = $jqOpta.teajs.decrypt(b, "P!Fgob$*LKDF D)(F IDD&P?/"), b = b.toString(), d = new $jqOpta.jDataView(b), d._littleEndian = !1, e = d.getInt8(), void 0 !== $jqOpta["bin_" + a.feed_type + "_" + e] ? f.resolve() : (c = new $jqOpta.FeedRequest("TRN_SCRIPT", {}, f, 99999), c.response_type = "script", c.feed_type = "bin", "F24b" === a.feed_type && $jqOpta.utils.isFDCComp(Number(a.params.competition)) && (a.feed_type = "F24"), c.url = $jqOpta.settings.baseUrl + "js/bin/" + a.feed_type + "_" + e + ".js", void $jqOpta.FeedMonitor.requestFeed(c))) : void $jqOpta.FeedMonitor.getTranslationScript(a, b)
- }, $jqOpta.FeedMonitor.storeFeed = function(a, b) {
- var c, d, e, f, g, h = new $jqOpta.Feed(a, b);
- if (h.url.match(/^http\:\/\/omoproxy\.leeds\.optadev\.com/) && (f = function(a) {
- var b, c, d = decodeURIComponent(a).split("&"),
- e = {};
- for (c = 0; c < d.length; c += 1) b = d[c].split("="), e[unescape(b[0])] = unescape(b[1]);
- return e
- }, g = f(h.url.split("?url=")[1]), h.url = g.url), "script" !== a.response_type) {
- if ($jqOpta.FeedMonitor.feeds.length)
- for (c = $jqOpta.FeedMonitor.feeds.length - 1; c >= 0; c -= 1) d = $jqOpta.FeedMonitor.feeds[c], d.url === h.url && $jqOpta.FeedMonitor.feeds.splice(c, 1);
- $jqOpta.FeedMonitor.feeds.push(h)
- }
- if (a.promise.resolve(b), $jqOpta.FeedMonitor.pending_feed_requests[a.url] && (e = $jqOpta.FeedMonitor.pending_feed_requests[a.url], $jqOpta.FeedMonitor.pending_feed_requests[a.url] = void 0, e.additional_feed_requests.length))
- for (c = 0; c < e.additional_feed_requests.length; c += 1) $jqOpta.FeedMonitor.getTranslationScript(e.additional_feed_requests[c], b)
- }, $jqOpta.FeedMonitor.failFeed = function(a, b, c, d) {
- var e, f, g, h = new $jqOpta.Feed(a, {
- error: c || -1,
- message: d || "Unknown"
- });
- if ("script" !== a.response_type) {
- if ($jqOpta.FeedMonitor.feeds.length)
- for (e = $jqOpta.FeedMonitor.feeds.length - 1; e >= 0; e -= 1) f = $jqOpta.FeedMonitor.feeds[e], f.url === h.url && $jqOpta.FeedMonitor.feeds.splice(e, 1);
- $jqOpta.FeedMonitor.feeds.push(h)
- }
- if (a.promise.reject({
- error: c,
- message: d
- }), $jqOpta.FeedMonitor.pending_feed_requests[a.url]) {
- if (g = $jqOpta.FeedMonitor.pending_feed_requests[a.url], g.additional_feed_requests.length)
- for (e = 0; e < g.additional_feed_requests.length; e += 1) g.additional_feed_requests[e].promise.reject({
- error: c,
- message: d
- });
- $jqOpta.FeedMonitor.pending_feed_requests[a.url] = void 0
- }
- }, $jqOpta.Feed = function(a, b) {
- this.url = a.url, this.data = b, this.last_updated = (new Date).getTime(), void 0 !== a.last_feed_request ? this.last_request = a.last_feed_request : this.last_request = (new Date).getTime()
- }, $jqOpta.trans = {}, $jqOpta.trans.files = {}, $jqOpta.trans.data = {
- widget: {},
- comps: {},
- teams: {},
- players: {},
- venues: {},
- officials: {},
- managers: {},
- countries: {},
- country_names: {}
- }, $jqOpta.trans.load = {}, $jqOpta.trans.loaded = {
- players: {},
- player_changes: {}
- }, $jqOpta.trans.setDefaultRegion = function(a) {
- var b;
- switch (a) {
- case "ar":
- b = "SA";
- break;
- case "ca":
- b = "ES";
- break;
- case "de":
- b = "DE";
- break;
- case "en":
- b = "GB";
- break;
- case "es":
- b = "ES";
- break;
- case "fa":
- b = "IR";
- break;
- case "fr":
- b = "FR";
- break;
- case "id":
- b = "ID";
- break;
- case "it":
- b = "IT";
- break;
- case "ja":
- b = "JP";
- break;
- case "ko":
- b = "KR";
- break;
- case "nl":
- b = "NL";
- break;
- case "pl":
- b = "PL";
- break;
- case "pt":
- b = "PT";
- break;
- case "ru":
- b = "RU";
- break;
- case "th":
- b = "TH";
- break;
- case "tr":
- b = "TR";
- break;
- case "vi":
- b = "VN";
- break;
- case "zh":
- b = "CN"
- }
- return b
- }, $jqOpta.trans.load.widget = function(a) {
- var b, c, d = new $jqOpta.Deferred,
- e = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = c[1];
- return d
- };
- return $jqOpta.isEmptyObject($jqOpta.trans.data.widget) ? (d.done(function(a) {
- $jqOpta.trans.data.widget = e(a.d)
- }), d.fail(function() {}), d.always(a), c = $jqOpta.trans.files["WT_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full] ? {
- cust_id: $jqOpta.settings.customer_id,
- trans_id: $jqOpta.settings.translation_id,
- lang_id: $jqOpta.settings.locale.full
- } : {
- cust_id: "default",
- trans_id: 1,
- lang_id: $jqOpta.settings.locale.full
- }, b = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_WIDGET, c, d, 99999), void $jqOpta.FeedMonitor.requestFeed(b)) : void a()
- }, $jqOpta.trans.widget = function(a) {
- return $jqOpta.trans.data.widget[a] || a
- }, $jqOpta.trans.load.comps = function(a, b, c, d) {
- var e, f = new $jqOpta.Deferred,
- g = "default",
- h = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = new $jqOpta.trans.nameObj("COMP", {
- full: c[1],
- "short": c[2],
- abbr: c[3]
- });
- return d
- };
- return $jqOpta.trans.files["CP_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full + "_" + a + "_" + b] || (g = "default"), void 0 !== $jqOpta.trans.data.comps[a] && void 0 !== $jqOpta.trans.data.comps[a][b] ? void c(d) : (f.done(function(c) {
- $jqOpta.trans.data.comps[a] = $jqOpta.trans.data.comps[a] || {}, $jqOpta.trans.data.comps[a][b] = h(c.d)
- }), f.fail(function() {}), f.always(function() {
- c(d)
- }), e = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_COMP, {
- cust_id: g,
- trans_id: $jqOpta.settings.translation_id || 1,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b
- }, f, 99999), $jqOpta.FeedMonitor.requestFeed(e), f)
- }, $jqOpta.trans.comp = function(a, b, c, d) {
- return $jqOpta.trans.data.comps[a] && $jqOpta.trans.data.comps[a][b] && $jqOpta.trans.data.comps[a][b][c] ? $jqOpta.trans.data.comps[a][b][c] : new $jqOpta.trans.nameObj("COMP", {
- full: $jqOpta.trans.widget(d)
- })
- }, $jqOpta.trans.load.teams = function(a, b, c, d, e) {
- var f, g = new $jqOpta.Deferred,
- h = "default",
- i = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = {
- name: c[1]
- }, c[2] && (d[c[0]]["short"] = c[2]), c[3] && (d[c[0]].abbr = c[3]);
- return d
- };
- return !$jqOpta.trans.files["TN_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full + "_" + a + "_" + b + "_" + c] && $jqOpta.settings.locale.full && (h = "default"), void 0 !== $jqOpta.trans.data.teams[a] && void 0 !== $jqOpta.trans.data.teams[a][b] && void 0 !== $jqOpta.trans.data.teams[a][b][c] ? void d(e) : (g.done(function(d) {
- $jqOpta.trans.data.teams[a] = $jqOpta.trans.data.teams[a] || {}, $jqOpta.trans.data.teams[a][b] = $jqOpta.trans.data.teams[a][b] || {}, $jqOpta.trans.data.teams[a][b][c] = i(d.d)
- }), g.fail(function() {}), g.always(function() {
- d(e)
- }), f = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_TEAM, {
- cust_id: h,
- trans_id: $jqOpta.settings.translation_id || 1,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c
- }, g, 99999), void $jqOpta.FeedMonitor.requestFeed(f));
- }, $jqOpta.trans.team = function(a, b, c, d, e) {
- return $jqOpta.trans.data.teams[a] && $jqOpta.trans.data.teams[a][b] && $jqOpta.trans.data.teams[a][b][c] && $jqOpta.trans.data.teams[a][b][c][d] ? $jqOpta.trans.data.teams[a][b][c][d] : {
- name: $jqOpta.trn(e)
- }
- }, $jqOpta.trans.load.players = function(a, b, c, d, e, f) {
- var g, h = new $jqOpta.Deferred,
- i = "default",
- j = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = {
- first: c[1] || "",
- last: c[2] || "",
- full: "",
- known: ""
- }, c[3] && (d[c[0]].known = c[3]), d[c[0]].first && d[c[0]].last ? d[c[0]].full = d[c[0]].first + " " + d[c[0]].last : d[c[0]].last ? d[c[0]].full = d[c[0]].last : d[c[0]].first && (d[c[0]].full = d[c[0]].first);
- return d
- };
- return $jqOpta.trans.files["PN_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full + "_" + a + "_" + b + "_" + c + "_" + d] || (i = "default"), void 0 !== $jqOpta.trans.loaded.players[a] && $jqOpta.trans.loaded.players[a][d] === !0 ? void e(d, f) : (h.done(function(b) {
- $jqOpta.trans.data.players[a] = $jqOpta.trans.data.players[a] || {}, $jqOpta.extend($jqOpta.trans.data.players[a], j(b.d))
- }), h.fail(function() {}), h.always(function() {
- $jqOpta.trans.loaded.players[a] = $jqOpta.trans.loaded.players[a] || {}, $jqOpta.trans.loaded.players[a][d] = !0, e(d, f)
- }), g = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_PLAYER, {
- cust_id: i,
- trans_id: $jqOpta.settings.translation_id || 1,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c,
- team: d
- }, h, 99999), void $jqOpta.FeedMonitor.requestFeed(g))
- }, $jqOpta.trans.load.player_changes = function(a, b, c) {
- var d, e = new $jqOpta.Deferred,
- f = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = {
- first: c[1] || "",
- last: c[2] || "",
- full: "",
- known: ""
- }, c[3] && (d[c[0]].known = c[3]), d[c[0]].first && d[c[0]].last ? d[c[0]].full = d[c[0]].first + " " + d[c[0]].last : d[c[0]].last ? d[c[0]].full = d[c[0]].last : d[c[0]].first && (d[c[0]].full = d[c[0]].first);
- return d
- };
- e.done(function(b) {
- var c = f(b.d);
- $jqOpta.trans.data.players[a] = $jqOpta.trans.data.players[a] || {}, $jqOpta.extend($jqOpta.trans.data.players[a], c)
- }), e.fail(function() {}), e.always(function() {
- b(c)
- }), d = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_PLAYER_CHANGES, {
- cust_id: "default",
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a
- }, e, 300), $jqOpta.FeedMonitor.requestFeed(d)
- }, $jqOpta.trans.player = function(a, b, c, d, e, f, g) {
- var h;
- return $jqOpta.trans.data.players[a] && $jqOpta.trans.data.players[a][d] ? $jqOpta.trans.data.players[a][d] : (e = e || "", f = f || "", h = {
- is_unknown: !0,
- first: e,
- last: f,
- full: e + " " + f
- }, g && (h.known = g), h)
- }, $jqOpta.trans.load.venues = function(a, b, c, d, e) {
- var f, g, h = new $jqOpta.Deferred,
- i = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = c[1];
- return d
- };
- return void 0 !== $jqOpta.trans.data.venues[a] && void 0 !== $jqOpta.trans.data.venues[a][b] && void 0 !== $jqOpta.trans.data.venues[a][b][c] ? void d(e) : (h.done(function(d) {
- $jqOpta.trans.data.venues[a] = $jqOpta.trans.data.venues[a] || {}, $jqOpta.trans.data.venues[a][b] = $jqOpta.trans.data.venues[a][b] || {}, $jqOpta.trans.data.venues[a][b][c] = i(d.d)
- }), h.fail(function() {}), h.always(function() {
- d(e)
- }), f = $jqOpta.trans.files["VE_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full] ? {
- cust_id: $jqOpta.settings.customer_id,
- trans_id: $jqOpta.settings.translation_id,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c
- } : {
- cust_id: "default",
- trans_id: 1,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c
- }, g = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_VENUE, f, h, 99999), void $jqOpta.FeedMonitor.requestFeed(g))
- }, $jqOpta.trans.venue = function(a, b, c, d, e) {
- return $jqOpta.trans.data.venues[a] && $jqOpta.trans.data.venues[a][b] && $jqOpta.trans.data.venues[a][b][c] && $jqOpta.trans.data.venues[a][b][c][d] ? $jqOpta.trans.data.venues[a][b][c][d] : $jqOpta.trn(e)
- }, $jqOpta.trans.load.officials = function(a, b, c, d, e) {
- var f, g, h = new $jqOpta.Deferred,
- i = function(a) {
- var b, c, d, e = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) d = a[b].split("|"), (null !== d[1] || void 0 !== d[1]) && (c = void 0 !== d[1] && d[1].match(/^(\S+)\s(.*)/) ? d[1].match(/^(\S+)\s(.*)/).slice(1) : [d[1], ""], e[d[0]] = {
- first: c[0],
- last: c[1],
- full: d[1]
- });
- return e
- };
- return void 0 !== $jqOpta.trans.data.officials[a] && void 0 !== $jqOpta.trans.data.officials[a][b] && void 0 !== $jqOpta.trans.data.officials[a][b][c] ? void d(e) : (h.done(function(d) {
- $jqOpta.trans.data.officials[a] = $jqOpta.trans.data.officials[a] || {}, $jqOpta.trans.data.officials[a][b] = $jqOpta.trans.data.officials[a][b] || {}, $jqOpta.trans.data.officials[a][b][c] = i(d.d)
- }), h.fail(function() {}), h.always(function() {
- d(e)
- }), f = $jqOpta.trans.files["OF_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full] ? {
- cust_id: $jqOpta.settings.customer_id,
- trans_id: $jqOpta.settings.translation_id,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c
- } : {
- cust_id: "default",
- trans_id: 1,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c
- }, g = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_OFFICIAL, f, h, 99999), void $jqOpta.FeedMonitor.requestFeed(g))
- }, $jqOpta.trans.official = function(a, b, c, d, e) {
- var f = (e || "").match(/^(\S+)\s(.*)/);
- return f = null !== f ? f.slice(1) : ["", e], $jqOpta.trans.data.officials[a] && $jqOpta.trans.data.officials[a][b] && $jqOpta.trans.data.officials[a][b][c] && $jqOpta.trans.data.officials[a][b][c][d] ? $jqOpta.trans.data.officials[a][b][c][d] : {
- first: f[0] || "",
- last: f[1] || "",
- full: e || ""
- }
- }, $jqOpta.trans.load.managers = function(a, b, c, d, e) {
- var f, g, h = new $jqOpta.Deferred,
- i = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = {
- first: c[1],
- last: c[2],
- full: c[1] + " " + c[2]
- };
- return d
- };
- return void 0 !== $jqOpta.trans.data.managers[a] && void 0 !== $jqOpta.trans.data.managers[a][b] && void 0 !== $jqOpta.trans.data.managers[a][b][c] ? void d(e) : (h.done(function(d) {
- $jqOpta.trans.data.managers[a] = $jqOpta.trans.data.managers[a] || {}, $jqOpta.trans.data.managers[a][b] = $jqOpta.trans.data.managers[a][b] || {}, $jqOpta.trans.data.managers[a][b][c] = i(d.d)
- }), h.fail(function() {}), h.always(function() {
- d(e)
- }), f = $jqOpta.trans.files["MA_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full] ? {
- cust_id: $jqOpta.settings.customer_id,
- trans_id: $jqOpta.settings.translation_id,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c
- } : {
- cust_id: "default",
- trans_id: 1,
- lang_id: $jqOpta.settings.locale.full,
- sport_id: a,
- season: b,
- competition: c
- }, g = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_MANAGER, f, h, 99999), void $jqOpta.FeedMonitor.requestFeed(g))
- }, $jqOpta.trans.manager = function(a, b, c, d, e) {
- return $jqOpta.trans.data.managers[a] && $jqOpta.trans.data.managers[a][b] && $jqOpta.trans.data.managers[a][b][c] && $jqOpta.trans.data.managers[a][b][c][d] ? $jqOpta.trans.data.managers[a][b][c][d] : {
- first: e.first || "",
- last: e.last || "",
- full: e.full || e.first + " " + e.last
- }
- }, $jqOpta.trans.load.countries = function(a, b) {
- var c, d, e = new $jqOpta.Deferred,
- f = function(a) {
- var b, c, d = {};
- for (a = a.split("¦"), b = 0; b < a.length; b += 1) c = a[b].split("|"), d[c[0]] = {
- enName: c[1],
- name: c[2] || c[1]
- }, $jqOpta.trans.data.country_names[c[1]] = c[2] || c[1];
- return d
- };
- return $jqOpta.isEmptyObject($jqOpta.trans.data.countries) ? (e.done(function(a) {
- $jqOpta.trans.data.countries = f(a.d)
- }), e.fail(function() {}), e.always(function() {
- a(b)
- }), c = $jqOpta.trans.files["CN_" + $jqOpta.settings.customer_id + "_" + $jqOpta.settings.translation_id + "_" + $jqOpta.settings.locale.full] ? {
- cust_id: $jqOpta.settings.customer_id,
- trans_id: $jqOpta.settings.translation_id,
- lang_id: $jqOpta.settings.locale.full
- } : {
- cust_id: "default",
- trans_id: 1,
- lang_id: $jqOpta.settings.locale.full
- }, d = new $jqOpta.FeedRequest($jqOpta.FeedRequest.FEED_TRANS_COUNTRY, c, e, 99999), void $jqOpta.FeedMonitor.requestFeed(d)) : void a(b)
- }, $jqOpta.trans.country = function(a, b) {
- return $jqOpta.trans.data.countries[a] || $jqOpta.trn(b)
- }, $jqOpta.trans.country_name = function(a) {
- return $jqOpta.trans.data.country_names[a] || $jqOpta.trn(a)
- }, $jqOpta.trans.nameObj = function(a, b) {
- this.type = a, this.full = b.full || b.name, this["short"] = b["short"], this.abbr = b.abbr
- }, $jqOpta.trans.nameObj.prototype.getName = function(a) {
- switch (this.type) {
- case "COMP":
- switch (a) {
- case "abbr":
- return this.abbr || this["short"] || this.full;
- case "short":
- return this["short"] || this.full;
- case "full":
- default:
- return this.full
- }
- }
- },
- function(a) {
- a.StorageItem = function(a) {
- "use strict";
- this.prefix = void 0 === a.prefix ? "OPTAV2" : a.prefix, this.key = a.key, this.data = a.data, this.expiry = a.expiry || (new Date).getTime()
- }, a.StorageItem.prototype.getKey = function() {
- "use strict";
- return this.prefix + ":" + this.key
- }, a.StorageItem.prototype.toString = function() {
- "use strict";
- return JSON.stringify({
- d: this.data,
- e: this.expiry
- })
- }, a.StorageItem.prototype.hasExpired = function() {
- "use strict";
- return (new Date).getTime() >= this.expiry
- }, a.StorageItem.prototype.save = function() {
- "use strict";
- this.key && (a.hasLocalStorage ? localStorage.setItem(this.getKey(), this) : this.createCookie())
- }, a.StorageItem.prototype.load = function(b) {
- "use strict";
- var c, d = this,
- e = function() {
- var e = a.parseJSON(c);
- return d.data = e.d, d.expiry = e.e, d.hasExpired() ? (b && d.remove(), null) : d.data
- };
- return c = a.hasLocalStorage ? localStorage.getItem(this.getKey()) : this.readCookie(), c ? e() : c
- }, a.StorageItem.prototype.remove = function() {
- "use strict";
- a.hasLocalStorage ? localStorage.removeItem(this.getKey()) : (this.data = null, this.expiry = (new Date).getTime() - 864e5, this.createCookie())
- }, a.StorageItem.prototype.createCookie = function() {
- "use strict";
- var a = null !== this.data ? encodeURIComponent(this) : "";
- document.cookie = this.getKey() + "=" + a + "; expires=" + new Date(this.expiry).toGMTString() + "; path=/"
- }, a.StorageItem.prototype.readCookie = function() {
- "use strict";
- var a, b, c = document.cookie.split("; "),
- d = c.length;
- for (b = 0; d > b; b += 1)
- if (a = c[b].split("="), a[0] === this.getKey()) return decodeURIComponent(a[1]);
- return null
- }, a.StorageItem.prototype.removeCookie = function() {
- "use strict";
- this.createCookie(this.getKey(), void 0, -86400)
- }, a.storage = {
- setItem: function(b, c, d, e) {
- "use strict";
- var f = d || 7200,
- g = new a.StorageItem({
- prefix: e,
- key: b,
- data: c,
- expiry: (new Date).getTime() + 1e3 * f
- });
- return g.save()
- },
- getItem: function(b, c, d) {
- "use strict";
- var e = new a.StorageItem({
- key: b,
- prefix: c
- });
- return void 0 === d && (d = !0), e.load(d)
- },
- removeItem: function(b, c) {
- "use strict";
- var d = new a.StorageItem({
- key: b,
- prefix: c
- });
- return d.remove()
- },
- clearStorage: function() {
- "use strict";
- var b, c, d;
- for (b in localStorage)
- if (b.match(/^OPTAV2:/) && localStorage.hasOwnProperty(b)) {
- c = b.split(":"), d = a.parseJSON(localStorage[b]);
- var e = new a.StorageItem({
- key: c[0],
- prefix: c[1],
- data: d.d,
- expiry: d.e
- });
- e.hasExpired() && localStorage.removeItem(b)
- }
- }
- }
- }($jqOpta), $jqOpta.utils = {
- loadModels: function(a) {
- "use strict";
- var b, c = $jqOpta.Deferred(),
- d = 0,
- e = function() {
- d += 1, d >= b && (c.resolve(), "function" == typeof a.success && a.success(d))
- },
- f = function(b, d, e) {
- c.reject(), "function" == typeof a.error && a.error(b, d, e)
- };
- return "string" == typeof a && (a = $jqOpta.utils.fixSingle(a)), a instanceof Array && (a = {
- models: a
- }), b = a.models.length, $jqOpta._.each(a.models, function(a) {
- $jqOpta.ajax({
- url: $jqOpta.settings.baseUrl + "js/model/" + a + ".model.js",
- dataType: "script",
- cache: !0
- }).done(e).fail(f)
- }), c
- },
- loadComponents: function(a) {
- "use strict";
- var b, c = $jqOpta,
- d = c.Deferred(),
- e = 0,
- f = function() {
- e += 1, e >= b && (d.resolve(), "function" == typeof a.success && a.success(e))
- },
- g = function(b, c, e) {
- d.reject(), "function" == typeof a.error && a.error(b, c, e)
- };
- return "string" == typeof a && (a = c.utils.fixSingle(a)), a instanceof Array && (a = {
- components: a
- }), b = a.components.length, c._.each(a.components, function(a) {
- c.ajax({
- url: c.settings.baseUrl + "js/components/" + a + ".js",
- dataType: "script",
- cache: !0
- }).done(f).fail(g)
- }), d
- },
- findMatch: function(a, b) {
- "use strict";
- var c, d, e;
- for (a = "g" + Number(a), b = $jqOpta.utils.fixSingle(b), c = b.length, d = 0; c > d; d += 1)
- if (e = b[d], e["@attributes"].uID === a) return e
- },
- tableSort: function(a, b) {
- "use strict";
- var c, d = [],
- e = {},
- f = $jqOpta(a + " table.tablesorter"),
- g = {},
- h = [],
- i = function(a, b) {
- var c = a.split(" ").pop(),
- d = b.split(" ").pop();
- return d > c ? -1 : c > d ? 1 : 0
- };
- 1 === f.length && (b = void 0 === b ? "desc" : b, c = "asc" === b ? 0 : 1, f.find("thead tr th").each(function(a, b) {
- if ($jqOpta(b).hasClass("opta-sortable")) {
- e['"' + a + '"'] = {
- sorter: !0
- };
- var f = $jqOpta(b).html();
- $jqOpta(b).html("<span>" + f + "</span>"), $jqOpta(b).hasClass("opta-sortable-last-name") && (g[a] = i)
- } else $jqOpta(b).addClass("sorter-false");
- $jqOpta(b).hasClass("opta-sortable-default") && 0 === d.length && (h = [], h.push(a), h.push(c), d.push(h))
- }), f.tablesorter({
- headers: e,
- sortInitialOrder: b,
- sortList: d.length > 0 ? d : void 0
- }))
- },
- playAccordion: function(a, b, c, d, e, f, g, h) {
- "use strict";
- var i = null !== $jqOpta.readCookie(a);
- $jqOpta(b).each(function() {
- var b = $jqOpta(this).find(c),
- j = $jqOpta(this).find(d),
- k = f || "slow",
- l = a + "-" + b.parent().index(),
- m = $jqOpta.readCookie(l),
- n = function() {
- var c = !1;
- $jqOpta.createCookie(a, 1), e && $jqOpta(j).find("opta").each(function() {
- var a = $jqOpta(this),
- d = a.attr("widget"),
- e = a.attr("sub") ? d + "_" + a.attr("sub") : d,
- f = function() {
- j.slideDown(k), b.removeClass("loading"), b.addClass("expanded")
- };
- c = !0, $jqOpta.events.subscribe("widget." + e + ".load", f), $jqOpta.events.subscribe("widget." + e + ".error", f), g && "" === a.attr("width") && a.attr("width", $jqOpta(g).width()), "false" === a.attr("load") && a.attr("load", "true")
- }), c ? (b.removeClass("collapsed"), b.addClass("loading"), $jqOpta.widgetStart(_optaParams)) : b.hasClass("expanded") ? (j.slideUp(k), b.removeClass("expanded"), b.addClass("collapsed"), $jqOpta.createCookie(l, "-")) : (j.slideDown(k), b.removeClass("collapsed"), b.addClass("expanded"), $jqOpta.createCookie(l, "+"))
- };
- b.click(function(a) {
- a.preventDefault(), n()
- }), h !== !0 && ("+" === m || i === !1 && b.hasClass("expanded") ? (k = 0, b.removeClass("expanded"), n(), k = f || "slow") : b.removeClass("expanded"))
- })
- },
- setAccordionCookies: function(a, b, c) {
- "use strict";
- var d = function(a) {
- "-" !== $jqOpta.readCookie(b + "-" + a) && $jqOpta.createCookie(b + "-" + a, "+")
- };
- void 0 !== a && "false" !== a && null === $jqOpta.readCookie(b) && ($jqOpta.createCookie(b, 1), "true" === a ? $jqOpta._.each($jqOpta._.range(c), d) : (a = Number(a) - 1, d(a)))
- },
- dates: function(a) {
- var b, c, d = a.date_obj || Date.parseExact(a.date_str, a.date_format);
- switch (a.utc_offset && d.add(a.utc_offset).hours(), a.tz) {
- case "BST":
- d = d.add(-1).hours()
- }
- return b = new Date(d.getTime() + -6e4 * d.getTimezoneOffset()), c = new Date(d).add(a.user_offset || 0).hours().add(a.timezone).hours(), {
- utc: d,
- locale: b,
- user: c
- }
- },
- castParams: function(a) {
- var b = {};
- return $jqOpta._.each(a, function(a, c) {
- "true" === a ? b[c] = !0 : "false" === a ? b[c] = !1 : "0" === a ? b[c] = 0 : "1" === a ? b[c] = 1 : b[c] = Number(a) || a
- }), b
- },
- castVal: function(a) {
- return "true" === a ? !0 : "false" === a ? !1 : "0" === a ? 0 : "1" === a ? 1 : Number(a) || a
- }
- }, $jqOpta.abbr = function(a, b, c) {
- return void 0 === c ? '<abbr title="' + $jqOpta.trn(a) + '">' + $jqOpta.trn(b) + "</abbr>" : '<abbr title="' + $jqOpta.trn(a) + '" class="' + c + '">' + $jqOpta.trn(b) + "</abbr>"
- }, $jqOpta.trn = $jqOpta.trans.widget, $jqOpta.pad2 = function(a, b) {
- return void 0 !== b && Number(a) < 100 && (a = "0" + a), Number(a) < 10 && (a = "0" + a), a
- }, $jqOpta.rtrn = function(a, b, c) {
- var d, e = c,
- f = new RegExp(a, b);
- for (d in $jqOpta.lang)
- if ($jqOpta.lang.hasOwnProperty(d) && d.match(f)) {
- e = $jqOpta.lang[d];
- break
- }
- return e
- }, $jqOpta.createCookie = function(a, b, c, d) {
- var e = $jqOpta,
- f = function() {
- var c = a.match(/^(.+)\[(.+)\]$/),
- f = e.readCookie(c[1]) || {};
- f[c[2]] = b, e.storage.setItem(c[1], f, d)
- };
- c !== !0 || d || (d = 7200), /^(.+)\[(.+)\]$/.test(a) ? f() : e.storage.setItem(a, b, d)
- }, $jqOpta.readCookie = function(a) {
- var b = $jqOpta,
- c = function() {
- var c = a.match(/^(.+)\[(.+)\]$/),
- d = b.storage.getItem(c[1]) || {};
- return d[c[2]] || null
- };
- return /^(.+)\[(.+)\]$/.test(a) ? c() : b.storage.getItem(a) || null
- }, $jqOpta.readCookieArray = function(a) {
- var b = $jqOpta.readCookie(a);
- return b = $jqOpta._.map(b, function(a, b) {
- return [b, a]
- })
- }, $jqOpta.readCookieArrayObj = $jqOpta.readCookie, $jqOpta.cookieIsSet = function(a, b) {
- return $jqOpta.readCookie(a) === b ? !0 : !1
- }, $jqOpta.getRandy = function(a) {
- return void 0 === a && (a = "10000000000"), Math.ceil(Math.random() * a)
- }, $jqOpta.rndNum = function(a) {
- var b, c, d = "",
- e = $jqOpta.settings.number_format || [],
- f = /(\d+)(\d{3})/;
- if (void 0 === a || !$jqOpta.isNum(Number(a))) return 0;
- for (b = String(a).split("."), c = b[0], b.length > 1 && (d = "en" === $jqOpta.settings.language ? e[1] || "." : e[1] || ",", d += b[1]); f.test(c);) c = "en" === $jqOpta.settings.language ? c.replace(f, "$1" + (e[0] || ",") + "$2") : c.replace(f, "$1" + (e[0] || ".") + "$2");
- return c + d
- }, $jqOpta.isNum = function(a) {
- return !isNaN(parseFloat(a)) && isFinite(a)
- }, $jqOpta.formatPercentage = function(a, b, c) {
- var d = "";
- return b = "undefined" != typeof b ? b : 3, d += a.toFixed(b), c || (d = d.replace(/^0/, "")), d
- }, $jqOpta.cmToFtIn = function(a) {
- var b = .032808399 * parseInt(a, 10),
- c = Math.floor(b % 1 * 12);
- return {
- ft: Math.floor(b),
- "in": c
- }
- }, $jqOpta.cmToM = function(a) {
- return Math.round(parseInt(a, 10) / 100 * 100) / 100
- }, $jqOpta.kgToLbs = function(a) {
- return Math.round(2.20462262 * parseInt(a, 10))
- }, $jqOpta.intval = function(a, b) {
- var c, d = typeof a;
- return "boolean" === d ? +a : "string" === d ? (c = parseInt(a, b || 10), isNaN(c) || !isFinite(c) ? 0 : c) : "number" === d && isFinite(a) ? a || 0 : 0
- }, $jqOpta.loadError = function(a, b) {
- var c = b || {},
- d = c.title || $jqOpta.trn("Data is not available yet!"),
- e = c.message || $jqOpta.trn("Data is not available yet!"),
- f = void 0 !== c.first_time ? c.first_time : !0,
- g = c.divClass || a.data.widget;
- $jqOpta.displayWidget(a, '<h2 class="opta-error"><span>' + d + '</span></h2><div class="opta-error ' + g + '"><p class="opta-widget-error">' + e + "</p></div>", f, "errorMsgDialog"), $jqOpta.events.trigger.error(a, "load_fail", "Widget failed to load")
- }, $jqOpta.cloneObj = function(a) {
- var b, c;
- if (null === a || "object" != typeof a) return a;
- b = a.constructor();
- for (c in a) a.hasOwnProperty(c) && (b[c] = a[c]);
- return b
- }, $jqOpta.imageDims = function(a, b) {
- return void 0 !== b && (/x/g.test(a) ? "small" === b ? a = "20x30" : "medium" === b ? a = "40x60" : "large" === b && (a = "103x155") : "small" === b ? a = "20" : "medium" === b ? a = "65" : "large" === b && (a = "150")), a
- }, $jqOpta.calcTime = function(a, b) {
- var c, d, e = Number(a);
- switch (b) {
- case "1":
- case "FirstHalf":
- e > 45 ? (d = e - 45, c = "45+" + d.toString()) : c = a;
- break;
- case "2":
- case "SecondHalf":
- e > 90 ? (d = e - 90, c = "90+" + d.toString()) : c = a;
- break;
- case "3":
- case "ExtraFirstHalf":
- e > 105 ? (d = e - 105, c = "105+" + d.toString()) : c = a;
- break;
- case "4":
- case "ExtraSecondHalf":
- e > 120 ? (d = e - 120, c = "120+" + d.toString()) : c = a;
- break;
- case "5":
- case "ShootOut":
- c = a
- }
- return c
- }, $jqOpta.img = function(a, b, c, d, e) {
- switch (b) {
- case "flags":
- return $jqOpta.settings.imageUrl + "&sport=football&entity=flags&description=countries&dimensions=" + d + "&id=" + e;
- case "icons":
- return $jqOpta.settings.imageUrl + "&sport=" + a + "&entity=icons&description=" + c + "&dimensions=" + d + "&id=" + e + "#id=" + e;
- default:
- return $jqOpta.settings.imageUrl + "&sport=" + a + "&entity=" + b + "&description=" + c + "&dimensions=" + d + "&id=" + e
- }
- }, $jqOpta.utils.isRetina = function() {
- var a;
- return void 0 === $jqOpta.is_retina && (a = "(-webkit-min-device-pixel-ratio: 1.5),(min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-resolution: 1.5dppx)", window.devicePixelRatio > 1 ? $jqOpta.is_retina = !0 : window.matchMedia && window.matchMedia(a).matches ? $jqOpta.is_retina = !0 : $jqOpta.is_retina = !1), $jqOpta.is_retina
- }, $jqOpta.image = function(a) {
- var b = function(b) {
- var c = (b || "").toString();
- switch (a.type) {
- case "team":
- switch (c) {
- case "20":
- return 65;
- case "65":
- return 150;
- case "150":
- if ($jqOpta._.contains([22, 87], Number(a.widget.data.competition))) return 300
- }
- break;
- case "player":
- switch (c) {
- case "20x30":
- return "40x60";
- case "40x60":
- return "103x155"
- }
- }
- return c
- },
- c = function() {
- switch (a.type) {
- case "flags":
- return $jqOpta.settings.imageUrl + "&sport=football&entity=flags&description=countries&dimensions=" + a.size + "&id=" + a.id;
- default:
- if (!a.description) switch (a.type) {
- case "team":
- a.description = "badges"
- }
- return $jqOpta.settings.imageUrl + "&sport=" + (a.sport || a.widget.data.sport) + "&entity=" + a.type + "&description=" + a.description + "&dimensions=" + a.size + "&id=" + a.id
- }
- },
- d = function() {
- return h = "", h = '<img src="' + a.src + '"', a.dom_id && (h += ' id="' + a.dom_id + '"'), a.alt && (h += ' alt="' + a.alt + '"'), a.title && (h += ' title="' + a.title + '"'), a.classes && "" !== a.classes && (h += ' class="' + a.classes + '"'), a.width && (h += ' width="' + a.width + '"'), a.height && (h += ' height="' + a.height + '"'), h += ">", h
- };
- return a.is_retina = $jqOpta.settings.use_retina === !0 && $jqOpta.utils.isRetina() && void 0 === a.widget.data.image_size, a.size = $jqOpta.imageDims(a.size, a.widget.data.image_size), a.classes = a.classes || "", a.is_retina && a.no_retina !== !0 && (a.original_size = a.size, a.size = b(a.original_size), a.classes += " image-" + a.type + "-" + a.original_size), a.src = c(), a.toString = d, a
- }, $jqOpta.imgError = function() {}, $jqOpta.enableLinkTracking = function(a) {
- var b = function(a) {
- var b, c, d = a.split("&"),
- e = {};
- for (c = 0; c < d.length; c += 1) b = d[c].split("="), e[decodeURI(b[0])] = decodeURI(b[1]);
- return e
- };
- $jqOpta("#opta-widget-idx-" + a.id + " a.opta-event-link").on("click", function() {
- var c = $jqOpta(this),
- d = c.attr("href").split("?"),
- e = b(d[1]);
- return $jqOpta.trackGAEvent({
- sport: a.data.sport,
- widget: a.data.widget,
- action: c.data("type") + "_link",
- comp: e.competition,
- season: e.season,
- extra: [{
- key: "match",
- value: e.match
- }]
- }), $jqOpta.doTimeout(300, function() {
- window.location = c.attr("href")
- }), !1
- })
- }, $jqOpta.dumpTags = function() {
- var a, b = "";
- for (a = 0; a < $jqOpta.optaTags.length; a += 1) b += $jqOpta.optaTags[a].tag + "\n\n";
- return b
- }, $jqOpta.getSportId = function(a) {
- switch (a) {
- case "football":
- return 1;
- case "knockout":
- return 1;
- case "rugby":
- return 2;
- case "cricket":
- return 3;
- case "golf":
- return 4;
- case "rugbyleague":
- return 5;
- case "motorsport":
- return 6;
- case "basketball":
- return 7;
- case "basketballsd":
- return 98;
- case "tennis":
- return 8;
- case "futsal":
- return 9;
- case "handball":
- return 11;
- case "icehockey":
- return 14;
- case "volleyball":
- return 17;
- case "cycling":
- return 18;
- case "mixed":
- return 19;
- case "afl":
- return 20;
- case "netball":
- return 21;
- case "americanfootballsd":
- return 97;
- case "americanfootball":
- return 51;
- case "baseball":
- return 52;
- case "baseballsd":
- return 99;
- case "olympics":
- return 13;
- default:
- return !1
- }
- }, $jqOpta.getPlayers = function(a, b, c, d, e) {
- var f, g, h = [],
- i = (new $jqOpta.Deferred, 99);
- for (d instanceof Array || (d = [d]), f = 0; f < d.length; f += 1) g = {
- sport: a,
- competition: b,
- season: c,
- team: d[f]
- }, h.push({
- feedType: "FEED_PLAYERS",
- feedData: "",
- feedParams: g,
- feedLife: 3600
- });
- $jqOpta.getFeeds(function() {
- var a, b, c = {};
- for (a = 0; a < $jqOpta.feedData[i].length; a += 1)
- for (b = 0; b < $jqOpta.feedData[i][a].teams.length; b += 1) c = $jqOpta.extend(c, $jqOpta.feedData[i][a].teams[b].players);
- e(c)
- }, h, i)
- }, $jqOpta.getTeams = function(a, b, c, d) {
- var e, f, g = [],
- h = (new $jqOpta.Deferred, 98);
- for (b instanceof Array || (b = [b]), e = 0; e < b.length; e += 1) f = {
- sport: a,
- competition: b[e],
- season: c
- }, g.push({
- feedType: "FEED_TEAM",
- feedData: "",
- feedParams: f,
- feedLife: 9999
- });
- $jqOpta.getFeeds(function() {
- var a, b, c, e, f = {};
- for (a = 0; a < $jqOpta.feedData[h].length; a += 1)
- for (c = $jqOpta.feedData[h][a].d, c = c.split("¦"), b = 0; b < c.length; b += 1) e = c[b].split("|"), f[e[0]] = {
- name: e[1]
- }, e[2] && (f[e[0]]["short"] = e[2]), e[3] && (f[e[0]].abbr = e[3]);
- d(f)
- }, g, h)
- }, $jqOpta.getPlayersNew = function(a, b, c, d, e) {
- var f = (new $jqOpta.Deferred, [{
- feedType: "FEED_PLAYER",
- feedData: "",
- feedParams: {
- sport: a,
- competition: b,
- season: c,
- team: d
- },
- feedLife: 9999
- }]),
- g = 97;
- $jqOpta.getFeeds(function() {
- var a, b, c, d, f = {};
- for (a = 0; a < $jqOpta.feedData[g].length; a += 1)
- for (c = $jqOpta.feedData[g][a].d, c = c.split("¦"), b = 0; b < c.length; b += 1) d = c[b].split("|"), f[d[0]] = {
- first: d[1],
- last: d[2]
- }, d[3] && (f[d[0]]["short"] = d[3]), d[4] && (f[d[0]].known = d[4]);
- e(f)
- }, f, g)
- }, $jqOpta.isRTL = function() {
- return $jqOpta.settings.locale.rtl
- }, $jqOpta.utils.binary = {}, $jqOpta.utils.binary.intToDate = function(a) {
- return new Date(Number(a + "000"))
- }, $jqOpta.utils.dateFromIso = function(a, b) {
- var c, d, e, f, g = new Date(a),
- h = /^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):(\d\d))?$/;
- if (void 0 !== b && (g.add(b + $jqOpta.gmtOffset).hours(), g.add(g.getTimezoneOffset()).minutes()), !isNaN(g)) return g;
- if (d = h.exec(a) || [], d[1]) {
- for (g = d[1].split(/\D/), e = 0, f = g.length; f > e; e += 1) g[e] = parseInt(g[e], 10) || 0;
- return g[1] -= 1, g = new Date(Date.UTC.apply(Date, g)), g.getDate() ? (d[5] && (c = 60 * parseInt(d[5], 10), d[6] && (c += parseInt(d[6], 10)), "+" === d[4] && (c *= -1), c && g.setUTCMinutes(g.getUTCMinutes() + c), void 0 !== b && (g.add(b + $jqOpta.gmtOffset).hours(), g.add(g.getTimezoneOffset()).minutes())), g) : new Date(NaN)
- }
- return new Date(NaN)
- }, $jqOpta.utils.nth = function(a, b) {
- var c, d, e = a.toString(),
- f = function(a) {
- return void 0 === b ? $jqOpta.trn("nth (" + a + ")") : "<" + b + ">" + $jqOpta.trn("nth (" + a + ")") + "</" + b + ">"
- };
- if ("en" === $jqOpta.settings.language) {
- if (e.length > 1) {
- switch (d = e.substr(-2)) {
- case "11":
- case "12":
- case "13":
- return e + f("th")
- }
- c = e.substr(-1)
- } else c = e;
- switch (c) {
- case "1":
- return e + f("st");
- case "2":
- return e + f("nd");
- case "3":
- return e + f("rd");
- default:
- return e + f("th")
- }
- }
- switch (e) {
- case "1":
- return e + f("st");
- case "2":
- return e + f("nd");
- case "3":
- return "3" + f("rd");
- default:
- return e + f("th")
- }
- }, $jqOpta.utils.pad = function(a, b) {
- var c, d;
- for (a += "", d = b - a.length, c = 0; d > c; c += 1) a = "0" + a;
- return a
- }, $jqOpta.utils.fixSingle = function(a) {
- return void 0 === a ? [] : (a instanceof Array || (a = [a]), a)
- }, $jqOpta.utils.translateText = function(a) {
- var b, c = {};
- for (b in a) a.hasOwnProperty(b) && (a[b] instanceof Array ? c[b] = $jqOpta.abbr(a[b][0], a[b][1], a[b][2]) : c[b] = $jqOpta.trn(a[b]));
- return c
- }, $jqOpta.externalLink = function(a, b, c, d, e, f, g, h, i, j, k) {
- var l, m = "",
- n = function(b, c) {
- "" !== c && void 0 !== c && (m += "" === m ? a.indexOf("?") > -1 ? "&" : "?" : "&", m += b + "=" + c)
- };
- return a ? (n("season", d), n("competition", e), n("match", f), n("team", g), n("player", h), "" !== b && (b += " "), i !== !1 && (b += "external-link"), l = '<a href="' + a + m + '"', "" !== b && (l += ' class="' + b + '"'), j && (l += ' title="' + j + '"'), l += ">" + c + "</a>", k ? a + m : l) : c
- }, $jqOpta.permittedWidget = function(a, b, c, d) {
- return void 0 !== $jqOpta.permittedWidgets[a] && void 0 !== $jqOpta.permittedWidgets[a][b] && ($jqOpta.permittedWidgets[a][b][c] === !0 || $jqOpta.permittedWidgets[a][b][c] instanceof Object && $jqOpta.permittedWidgets[a][b][c][d] === !0)
- }, $jqOpta.utils.tracabStatFix = function(a, b) {
- switch (b.charAt(0)) {
- case "i":
- case "f":
- "string" == typeof a && (a = Number(a.replace(",", ".")));
- break;
- case "b":
- "boolean" != typeof a && (a = "true" === a ? !0 : !1)
- }
- return a
- }, $jqOpta.tabby = function(a, b, c, d) {
- $jqOpta(a).each(function() {
- var a = $jqOpta(this).find(b),
- e = $jqOpta(this).find(c);
- a.length === e.length && a.each(function(b) {
- var c = $jqOpta(this);
- c.click(function(f) {
- $jqOpta.events.trigger.tabby(this, d), f.preventDefault(), a.removeClass("selected"), c.addClass("selected"), e.removeClass("selected"), $jqOpta(e[b]).addClass("selected"), e.hide(), $jqOpta(e[b]).show()
- }), 0 === b && c.click()
- })
- })
- }, $jqOpta.actRadio = function(a, b, c, d) {
- $jqOpta(b).each(function() {
- var e = $jqOpta(this).find('input[type="radio"]'),
- f = b.split(" "),
- g = a + "-" + c + "-" + f[0].substring(1),
- h = $jqOpta.readCookie(g),
- i = [];
- e.each(function() {
- var a = this.value;
- i.push(a), null === h && $jqOpta(this).attr("checked") && (h = a), $jqOpta(this).click(function() {
- $jqOpta.events.trigger.radioTab(this, d), $jqOpta._.each(i, function(a) {
- $jqOpta(b).find("." + a).hide()
- }), $jqOpta(b + " ." + a).show(), $jqOpta.createCookie(g, a)
- })
- }), e.each(function() {
- this.value === h && this.click()
- })
- })
- }, $jqOpta.utils.widthFromString = function(a) {
- return void 0 === a || void 0 === a.length || a.length < 2 ? 0 : Number(a.substr(0, a.length - 2))
- }, $jqOpta.utils.trimSplit = function(a, b) {
- var c = [];
- return void 0 !== a && $jqOpta._.each(a.split(b), function(a) {
- c.push($jqOpta.trim(a))
- }), c
- }, $jqOpta.utils.isPlaceholderTeam = function(a, b) {
- var c = [];
- switch (a = Number(a), b = b || 1) {
- case 1:
- c = [1908, 1909, 1910, 1911, 1912, 1913, 1914, 1915, 1932, 1933, 1934, 1935, 1936, 1937, 2517, 2519, 2518, 2520, 1938, 1939, 5550, 5551, 5552, 5553, 5554, 5555, 5556, 5557, 1916, 1917, 1918, 1919, 1920, 1921, 1922, 1923, 5370, 5371, 5372, 5373, 5374, 5375, 5376, 5377, 5378, 5379, 5380, 5381, 5382, 5383, 5384, 5385, 5386, 5387, 5388, 5389, 5390, 5391, 5392, 5393, 5394, 5395, 5996, 5397, 5398, 5399, 5400, 10852, 10851, 10853, 10855, 10856, 10857, 10854, 10858, 9156, 9155, 9153, 9154, 10773, 10774, 7977, 7978, 7979, 7980];
- break;
- case 2:
- c = [19599, 19600, 19601, 19602, 19603, 19604, 19605, 19605, 19606, 19607, 19608, 19609, 19610, 19611, 19612, 19613, 19614]
- }
- return -1 !== $jqOpta._.indexOf(c, a)
- }, $jqOpta.utils.isFDCComp = function(a) {
- return $jqOpta.inArray(Number(a), [11, 12, 14, 91, 92, 93]) > -1 ? !0 : !1
- }, $jqOpta.utils.getBaseballPosAbbr = function(a) {
- switch (a) {
- case "pitcher":
- return "P";
- case "starting pitcher":
- return "SP";
- case "relief pitcher":
- return "RP";
- case "pinch hitter":
- return "PH";
- case "pinch runner":
- return "PR";
- case "catcher":
- return "C";
- case "infielder":
- return "IF";
- case "shortstop":
- return "SS";
- case "outfielder":
- return "OF";
- case "second baseman":
- case "second base":
- return "2B";
- case "third baseman":
- case "third base":
- return "3B";
- case "center field":
- case "center fielder":
- return "CF";
- case "right field":
- case "right fielder":
- return "RF";
- case "first baseman":
- case "first base":
- return "1B";
- case "left fielder":
- case "left field":
- return "LF";
- case "designated hitter":
- case "designated":
- return "DH"
- }
- return "Unknown"
- },
- function(a) {
- var b = {};
- b.tsToDate = function(a) {
- var b = new Date(1e3 * a);
- return {
- locale: b,
- utc: new Date(b.getTime() + 6e4 * b.getTimezoneOffset())
- }
- }, b.readString = function(a) {
- for (var b, c = "";;) {
- if (b = a.getChar(), 0 === b.charCodeAt(0)) break;
- c += b
- }
- return decodeURIComponent(escape(c))
- }, b.getPlayerPosition = function(a, b) {
- switch (a) {
- case 1:
- return "Goalkeeper";
- case 2:
- return "Defender";
- case 3:
- return "Midfielder";
- case 4:
- return "F9" === b ? "Striker" : "Forward";
- case 5:
- return "Substitute";
- default:
- return a
- }
- }, b.getMatchStatus = function(a) {
- switch (a) {
- case 0:
- return "Abandoned";
- case 1:
- return "Postponed";
- case 2:
- return "PreMatch";
- case 3:
- return "Live";
- case 4:
- return "FullTime";
- default:
- return a
- }
- }, b.getGameState = function(a) {
- switch (a) {
- case 1:
- return "PreMatch";
- case 4:
- return "First Half";
- case 5:
- return "Half Time";
- case 6:
- return "Second Half";
- case 7:
- return "Extra Time";
- case 8:
- return "Extra First Half";
- case 9:
- return "Extra Half Time";
- case 10:
- return "Extra Second Half";
- case 11:
- return "Full Time";
- case 12:
- return "Penalty Shootout";
- case 13:
- return "PostMatch";
- case 14:
- return "Abandoned";
- default:
- return a
- }
- }, b.getEventPeriod = function(a) {
- switch (a) {
- case 15:
- return "PreMatch";
- case 1:
- return "FirstHalf";
- case 10:
- return "HalfTime";
- case 2:
- return "SecondHalf";
- case 11:
- return "SecondHalf";
- case 3:
- return "ExtraFirstHalf";
- case 12:
- return "ExtraHalfTime";
- case 4:
- return "ExtraSecondHalf";
- case 13:
- return "ExtraSecondHalf";
- case 5:
- return "ShootOut";
- case 14:
- return "FullTime";
- case 16:
- return "PreMatch";
- default:
- return a
- }
- }, b.getMatchPeriod = function(a) {
- switch (a) {
- case 1:
- return "FirstHalf";
- case 2:
- return "SecondHalf";
- case 3:
- return "ExtraFirstHalf";
- case 4:
- return "ExtraSecondHalf";
- case 5:
- return "ShootOut";
- default:
- return a
- }
- }, b.getQualifier = function(a) {
- switch (a) {
- case 10:
- return "Hand";
- case 11:
- return "6-seconds violation";
- case 12:
- return "Dangerous play";
- case 13:
- return "Foul";
- case 31:
- return "Yellow";
- case 32:
- return "SecondYellow";
- case 33:
- return "StraightRed";
- case 34:
- return "Referee abuse";
- case 35:
- return "Argument";
- case 36:
- return "Fight";
- case 37:
- return "Time wasting";
- case 39:
- return "Crowd interaction";
- case 40:
- return "Other";
- case 41:
- return "Injury";
- case 42:
- return "Tactical";
- case 91:
- return "Dive";
- case 93:
- return "Dive";
- case 132:
- return "Dive";
- case 142:
- return "Flag to Checker";
- case 158:
- return "Persistent Infringement";
- case 159:
- return "Foul and Abusive Language";
- case 161:
- return "Encroachment";
- case 162:
- return "Leaving field";
- case 163:
- return "Entering field";
- case 164:
- return "Spitting";
- case 165:
- return "Professional foul";
- case 166:
- return "Handling on the line";
- case 171:
- return "Rescinded Card";
- case 172:
- return "No impact on timing";
- case 184:
- return "Dissent";
- case 189:
- return "Not visible";
- case 191:
- return "Off the ball foul";
- case 243:
- return "Unsporting behaviour";
- case 244:
- return "Not Retreating";
- case 245:
- return "Serious Foul";
- case 283:
- return "Coach ID";
- case 289:
- return "Denied goal-scoring opportunity";
- default:
- return a
- }
- }, b.getGroup = function(a) {
- switch (a) {
- case 1:
- return "A";
- case 2:
- return "B";
- case 3:
- return "C";
- case 4:
- return "D";
- case 5:
- return "E";
- case 6:
- return "F";
- case 7:
- return "G";
- case 8:
- return "H";
- case 9:
- return "1";
- case 10:
- return "2";
- case 11:
- return "3";
- case 12:
- return "4";
- case 13:
- return "5";
- case 14:
- return "6";
- case 15:
- return "7";
- case 16:
- return "8";
- case 17:
- return "9";
- case 18:
- return "10";
- case 19:
- return "East";
- case 20:
- return "West";
- case 21:
- return "11";
- case 22:
- return "12";
- case 23:
- return "I";
- case 25:
- return "J";
- case 26:
- return "K";
- case 27:
- return "L";
- default:
- return a
- }
- }, b.getCoachType = function(a) {
- switch (a) {
- case 1:
- return "Manager";
- case 2:
- return "Assistant Manager";
- default:
- return a
- }
- }, a.binary = b
- }($jqOpta), $jqOpta.checkPermissions = function() {
- var a, b;
- for (console.info("Checking " + window.location.hostname), a = 0; a < $jqOpta.optaTags.length; a += 1) b = $jqOpta.optaTags[a].data.sport + " " + $jqOpta.optaTags[a].data.widget + "(C:" + $jqOpta.optaTags[a].data.competition + ")", $jqOpta.optaTags[a].permitted ? console.info("OK: " + b) : console.error("DENIED: " + b);
- return $jqOpta.dmok ? console.info("OK: Website permitted to use widgets.") : console.error("DENIED: Website not permitted to use widgets."), $jqOpta.settings.custID
- }, $jqOpta.callbacks = {}, $jqOpta.callbacks.tooltip = function(a, b, c) {
- var d, e = b.widget;
- void 0 !== b.sub && (e += "_" + b.sub), (void 0 === _optaParams.callbackSettings || void 0 === _optaParams.callbackSettings.tooltip || $jqOpta.inArray(e, _optaParams.callbackSettings.tooltip) > -1) && (0 === $jqOpta("#opta-widget-idx-" + c + " div.opta-tooltip").length ? (d = $jqOpta("<div></div>").addClass("opta-tooltip").addClass("opta-tooltip-" + e), $jqOpta("#opta-widget-idx-" + c).append(d)) : d = $jqOpta("#opta-widget-idx-" + c + " div.opta-tooltip").hide(), $jqOpta("#opta-widget-idx-" + c + " .jqtip").each(function() {
- var a, b = $jqOpta(this);
- void 0 === b.data("title") ? (a = b.attr("title"), b.attr("title", ""), b.data("title", a)) : a = b.data("title"), b.hover(function(c) {
- var f, g, h, i = a.split(": ");
- 2 === i.length ? h = "<span>" + i[0] + ":</span> " + i[1] : "teamranking" === e ? (h = "<span>" + i[0] + "</span>", i[1] && (h += i[1])) : "bettingteamstats" === e || "bettingheadtohead" === e ? (i = a.split(":"), h = 2 === i.length ? i[1].substring(3) + "</br />" + i[0] + ":" + i[1].substring(0, 2) : i[0]) : h = i[0], b.css({
- cursor: "pointer"
- }), d.html(h).show(), g = d.width(), f = Math.min(Math.max(10, c.clientX - g / 2), $jqOpta(window).width() - (g + 30)), d.css({
- top: c.clientY + 18,
- left: f
- })
- }, function() {
- d.hide()
- })
- }))
- }, $jqOpta.events.trigger = {
- load: function(a) {
- $jqOpta.events.publish("widget." + a.data.opta_widget + ".load", {
- id: a.id,
- data: a.data
- })
- },
- refresh: function(a) {
- $jqOpta.events.publish("widget." + a.data.opta_widget + ".refresh", {
- id: a.id,
- data: a.data
- })
- },
- expansion: function(a, b, c) {
- $jqOpta.events.publish("widget." + b.data.opta_widget + ".expansion", {
- id: b.id,
- data: $jqOpta.extend(b.data, c),
- expansion: {
- action: a,
- info: c
- }
- })
- },
- expansiondone: function(a, b, c, d) {
- $jqOpta.events.publish("widget." + b.data.opta_widget + ".expansiondone", {
- id: b.id,
- data: $jqOpta.extend(b.data, c),
- expansion: {
- action: a,
- info: c,
- tag: d
- }
- })
- },
- tab: function(a, b, c) {
- var d, e = b.data;
- a = $jqOpta(a).find("a"), d = {
- id: a.attr("href").substr(1),
- name: a.text(),
- idx: c
- }, $jqOpta.events.publish("widget." + b.data.opta_widget + ".tab", {
- id: b.id,
- data: e,
- tab: d
- })
- },
- dropdown: function(a, b, c, d, e) {
- var f = {
- id: a.id,
- data: a.data,
- select_id: b,
- option: {
- value: c,
- text: d
- }
- };
- e && (f.extra = e), $jqOpta.events.publish("widget." + a.data.opta_widget + ".dropdown", f)
- },
- click: function(a, b, c) {
- var d = {
- id: a.id,
- data: a.data,
- type: b
- };
- c && (d.extra = c), $jqOpta.events.publish("widget." + a.data.opta_widget + ".click", d)
- },
- error: function(a, b, c, d, e) {
- $jqOpta.events.publish("widget." + a.data.opta_widget + ".error", {
- id: a.id,
- type: b,
- message: c,
- data: $jqOpta.extend(a.data, d),
- extra: e || {}
- })
- },
- tabby: function(a, b) {
- var c, d = b.data;
- a = $jqOpta(a), c = {
- id: a.attr("href").substr(1),
- name: a.text()
- }, $jqOpta.events.publish("widget." + b.data.opta_widget + ".tab", {
- id: b.id,
- data: d,
- tab: c
- })
- },
- radioTab: function(a, b) {
- var c, d = b.data;
- a = $jqOpta(a), c = {
- id: a.val(),
- name: a.attr("name")
- }, $jqOpta.events.publish("widget." + b.data.opta_widget + ".tab", {
- id: b.id,
- data: d,
- tab: c
- })
- },
- redrawMe: function(a) {
- $jqOpta.events.publish("widget." + a + ".redrawme", {
- widget: a
- })
- },
- permissionDenied: function(a) {
- $jqOpta.events.publish("widget." + a.data.widget + ".permission_denied", {
- id: a.id,
- data: a.data
- })
- }
- }, $jqOpta.Analytics = function() {
- this.gaq = {}, this.init()
- }, $jqOpta.Analytics.prototype.init = function() {
- var a = this;
- $jqOpta.settings.suppressAnalytics !== !0 && void 0 === window._gat ? ($jqOpta.ajax({
- cache: !0,
- url: ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js",
- dataType: "script",
- success: function() {
- a.setupGaTracking()
- }
- }), this.initTrackers()) : $jqOpta.settings.suppressAnalytics !== !0 && (a.setupGaTracking(), this.initTrackers())
- }, $jqOpta.Analytics.prototype.setupGaTracking = function() {
- var a;
- void 0 !== window._gat && (a = window._gat._createTracker("UA-31431448-1", "OptaWidgets"), a && (a._setAllowLinker(!0), a._setCustomVar(1, "custID", $jqOpta.settings.custID, 1), a._setSampleRate(10)), this.gaq.tracker = a)
- }, $jqOpta.Analytics.prototype.trackGAPageView = function(a) {
- this.gaq.tracker && ("string" == typeof a && (a = {
- url: a
- }), this.gaq.tracker._trackPageview(a.url), a.start && this.gaq.tracker._trackTiming(a.url, a.category, a.type, (new Date).getTime() - a.start, $jqOpta.settings.custID, 5))
- }, $jqOpta.Analytics.prototype.trackGAEvent = function(a) {
- if (this.gaq.tracker) {
- if (!(a instanceof Object) | !a.category || !a.action) throw "Invalid GA Event Tracking data";
- this.gaq.tracker._trackEvent(a.category, a.action, a.label, a.value, a.noninteraction || !0)
- }
- }, $jqOpta.Analytics.prototype.initTrackers = function() {
- var a = function(a) {
- var b = a.competition || a.competition_p1 || a.competition1 || a.competition_p2 || a.competition2,
- c = a.season || a.season_p1 || a.season1 || a.season_p2 || a.season2,
- d = "true" === a.live ? "setlive" : "notsetlive";
- return "/" + a.sport + "/" + a.opta_widget + "/" + b + "/" + c + "/" + d + "/"
- },
- b = this;
- $jqOpta.events.subscribe("widget.*.load", function(c, d) {
- b.trackGAPageView(a(c.data))
- }), $jqOpta.events.subscribe("widget.*.expansion", function(a, c) {
- b.trackGAEvent({
- category: c.topic,
- action: a.expansion.action,
- label: a.data.sport
- })
- }), $jqOpta.events.subscribe("widget.*.tab", function(a, c) {
- b.trackGAEvent({
- category: c.topic,
- action: a.tab.id,
- label: a.data.sport
- })
- })
- },
- function() {
- var a = this,
- b = a._,
- c = {},
- d = Array.prototype,
- e = Object.prototype,
- f = Function.prototype,
- g = d.push,
- h = d.slice,
- i = d.concat,
- j = e.toString,
- k = e.hasOwnProperty,
- l = d.forEach,
- m = d.map,
- n = d.reduce,
- o = d.reduceRight,
- p = d.filter,
- q = d.every,
- r = d.some,
- s = d.indexOf,
- t = d.lastIndexOf,
- u = Array.isArray,
- v = Object.keys,
- w = f.bind,
- x = function(a) {
- return a instanceof x ? a : this instanceof x ? void(this._wrapped = a) : new x(a)
- };
- "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = x), exports._ = x) : a._ = x, x.VERSION = "1.4.4";
- var y = x.each = x.forEach = function(a, b, d) {
- if (null != a)
- if (l && a.forEach === l) a.forEach(b, d);
- else if (a.length === +a.length) {
- for (var e = 0, f = a.length; f > e; e++)
- if (b.call(d, a[e], e, a) === c) return
- } else
- for (var g in a)
- if (x.has(a, g) && b.call(d, a[g], g, a) === c) return
- };
- x.map = x.collect = function(a, b, c) {
- var d = [];
- return null == a ? d : m && a.map === m ? a.map(b, c) : (y(a, function(a, e, f) {
- d[d.length] = b.call(c, a, e, f)
- }), d)
- };
- var z = "Reduce of empty array with no initial value";
- x.reduce = x.foldl = x.inject = function(a, b, c, d) {
- var e = arguments.length > 2;
- if (null == a && (a = []), n && a.reduce === n) return d && (b = x.bind(b, d)), e ? a.reduce(b, c) : a.reduce(b);
- if (y(a, function(a, f, g) {
- e ? c = b.call(d, c, a, f, g) : (c = a, e = !0)
- }), !e) throw new TypeError(z);
- return c
- }, x.reduceRight = x.foldr = function(a, b, c, d) {
- var e = arguments.length > 2;
- if (null == a && (a = []), o && a.reduceRight === o) return d && (b = x.bind(b, d)), e ? a.reduceRight(b, c) : a.reduceRight(b);
- var f = a.length;
- if (f !== +f) {
- var g = x.keys(a);
- f = g.length
- }
- if (y(a, function(h, i, j) {
- i = g ? g[--f] : --f, e ? c = b.call(d, c, a[i], i, j) : (c = a[i], e = !0)
- }), !e) throw new TypeError(z);
- return c
- }, x.find = x.detect = function(a, b, c) {
- var d;
- return A(a, function(a, e, f) {
- return b.call(c, a, e, f) ? (d = a, !0) : void 0
- }), d
- }, x.filter = x.select = function(a, b, c) {
- var d = [];
- return null == a ? d : p && a.filter === p ? a.filter(b, c) : (y(a, function(a, e, f) {
- b.call(c, a, e, f) && (d[d.length] = a)
- }), d)
- }, x.reject = function(a, b, c) {
- return x.filter(a, function(a, d, e) {
- return !b.call(c, a, d, e)
- }, c)
- }, x.every = x.all = function(a, b, d) {
- b || (b = x.identity);
- var e = !0;
- return null == a ? e : q && a.every === q ? a.every(b, d) : (y(a, function(a, f, g) {
- return (e = e && b.call(d, a, f, g)) ? void 0 : c
- }), !!e)
- };
- var A = x.some = x.any = function(a, b, d) {
- b || (b = x.identity);
- var e = !1;
- return null == a ? e : r && a.some === r ? a.some(b, d) : (y(a, function(a, f, g) {
- return e || (e = b.call(d, a, f, g)) ? c : void 0
- }), !!e)
- };
- x.contains = x.include = function(a, b) {
- return null == a ? !1 : s && a.indexOf === s ? -1 != a.indexOf(b) : A(a, function(a) {
- return a === b
- })
- }, x.invoke = function(a, b) {
- var c = h.call(arguments, 2),
- d = x.isFunction(b);
- return x.map(a, function(a) {
- return (d ? b : a[b]).apply(a, c)
- })
- }, x.pluck = function(a, b) {
- return x.map(a, function(a) {
- return a[b]
- })
- }, x.where = function(a, b, c) {
- return x.isEmpty(b) ? c ? null : [] : x[c ? "find" : "filter"](a, function(a) {
- for (var c in b)
- if (b[c] !== a[c]) return !1;
- return !0
- })
- }, x.findWhere = function(a, b) {
- return x.where(a, b, !0)
- }, x.max = function(a, b, c) {
- if (!b && x.isArray(a) && a[0] === +a[0] && a.length < 65535) return Math.max.apply(Math, a);
- if (!b && x.isEmpty(a)) return -(1 / 0);
- var d = {
- computed: -(1 / 0),
- value: -(1 / 0)
- };
- return y(a, function(a, e, f) {
- var g = b ? b.call(c, a, e, f) : a;
- g >= d.computed && (d = {
- value: a,
- computed: g
- })
- }), d.value
- }, x.min = function(a, b, c) {
- if (!b && x.isArray(a) && a[0] === +a[0] && a.length < 65535) return Math.min.apply(Math, a);
- if (!b && x.isEmpty(a)) return 1 / 0;
- var d = {
- computed: 1 / 0,
- value: 1 / 0
- };
- return y(a, function(a, e, f) {
- var g = b ? b.call(c, a, e, f) : a;
- g < d.computed && (d = {
- value: a,
- computed: g
- })
- }), d.value
- }, x.shuffle = function(a) {
- var b, c = 0,
- d = [];
- return y(a, function(a) {
- b = x.random(c++), d[c - 1] = d[b], d[b] = a
- }), d
- };
- var B = function(a) {
- return x.isFunction(a) ? a : function(b) {
- return b[a]
- }
- };
- x.sortBy = function(a, b, c) {
- var d = B(b);
- return x.pluck(x.map(a, function(a, b, e) {
- return {
- value: a,
- index: b,
- criteria: d.call(c, a, b, e)
- }
- }).sort(function(a, b) {
- var c = a.criteria,
- d = b.criteria;
- if (c !== d) {
- if (c > d || void 0 === c) return 1;
- if (d > c || void 0 === d) return -1
- }
- return a.index < b.index ? -1 : 1
- }), "value")
- };
- var C = function(a, b, c, d) {
- var e = {},
- f = B(b || x.identity);
- return y(a, function(b, g) {
- var h = f.call(c, b, g, a);
- d(e, h, b)
- }), e
- };
- x.groupBy = function(a, b, c) {
- return C(a, b, c, function(a, b, c) {
- (x.has(a, b) ? a[b] : a[b] = []).push(c)
- })
- }, x.multiGroupBy = function(a, b, c) {
- var d, e, f;
- if (!b.length) return a;
- d = x.groupBy(a, b[0], c), e = b.slice(1);
- for (f in d) d.hasOwnProperty(f) && (d[f] = x.multiGroupBy(d[f], e, c));
- return d
- }, x.countBy = function(a, b, c) {
- return C(a, b, c, function(a, b) {
- x.has(a, b) || (a[b] = 0), a[b]++
- })
- }, x.sortedIndex = function(a, b, c, d) {
- c = null == c ? x.identity : B(c);
- for (var e = c.call(d, b), f = 0, g = a.length; g > f;) {
- var h = f + g >>> 1;
- c.call(d, a[h]) < e ? f = h + 1 : g = h
- }
- return f
- }, x.toArray = function(a) {
- return a ? x.isArray(a) ? h.call(a) : a.length === +a.length ? x.map(a, x.identity) : x.values(a) : []
- }, x.size = function(a) {
- return null == a ? 0 : a.length === +a.length ? a.length : x.keys(a).length
- }, x.first = x.head = x.take = function(a, b, c) {
- return null == a ? void 0 : null == b || c ? a[0] : h.call(a, 0, b)
- }, x.initial = function(a, b, c) {
- return h.call(a, 0, a.length - (null == b || c ? 1 : b))
- }, x.last = function(a, b, c) {
- return null == a ? void 0 : null == b || c ? a[a.length - 1] : h.call(a, Math.max(a.length - b, 0))
- }, x.rest = x.tail = x.drop = function(a, b, c) {
- return h.call(a, null == b || c ? 1 : b)
- }, x.compact = function(a) {
- return x.filter(a, x.identity)
- };
- var D = function(a, b, c) {
- return y(a, function(a) {
- x.isArray(a) ? b ? g.apply(c, a) : D(a, b, c) : c.push(a)
- }), c
- };
- x.flatten = function(a, b) {
- return D(a, b, [])
- }, x.without = function(a) {
- return x.difference(a, h.call(arguments, 1))
- }, x.uniq = x.unique = function(a, b, c, d) {
- x.isFunction(b) && (d = c, c = b, b = !1);
- var e = c ? x.map(a, c, d) : a,
- f = [],
- g = [];
- return y(e, function(c, d) {
- (b ? d && g[g.length - 1] === c : x.contains(g, c)) || (g.push(c), f.push(a[d]))
- }), f
- }, x.union = function() {
- return x.uniq(i.apply(d, arguments))
- }, x.intersection = function(a) {
- var b = h.call(arguments, 1);
- return x.filter(x.uniq(a), function(a) {
- return x.every(b, function(b) {
- return x.indexOf(b, a) >= 0
- })
- })
- }, x.difference = function(a) {
- var b = i.apply(d, h.call(arguments, 1));
- return x.filter(a, function(a) {
- return !x.contains(b, a)
- })
- }, x.zip = function() {
- for (var a = h.call(arguments), b = x.max(x.pluck(a, "length")), c = new Array(b), d = 0; b > d; d++) c[d] = x.pluck(a, "" + d);
- return c
- }, x.object = function(a, b) {
- if (null == a) return {};
- for (var c = {}, d = 0, e = a.length; e > d; d++) b ? c[a[d]] = b[d] : c[a[d][0]] = a[d][1];
- return c
- }, x.indexOf = function(a, b, c) {
- if (null == a) return -1;
- var d = 0,
- e = a.length;
- if (c) {
- if ("number" != typeof c) return d = x.sortedIndex(a, b), a[d] === b ? d : -1;
- d = 0 > c ? Math.max(0, e + c) : c
- }
- if (s && a.indexOf === s) return a.indexOf(b, c);
- for (; e > d; d++)
- if (a[d] === b) return d;
- return -1
- }, x.lastIndexOf = function(a, b, c) {
- if (null == a) return -1;
- var d = null != c;
- if (t && a.lastIndexOf === t) return d ? a.lastIndexOf(b, c) : a.lastIndexOf(b);
- for (var e = d ? c : a.length; e--;)
- if (a[e] === b) return e;
- return -1
- }, x.range = function(a, b, c) {
- arguments.length <= 1 && (b = a || 0, a = 0), c = arguments[2] || 1;
- for (var d = Math.max(Math.ceil((b - a) / c), 0), e = 0, f = new Array(d); d > e;) f[e++] = a, a += c;
- return f
- }, x.bind = function(a, b) {
- if (a.bind === w && w) return w.apply(a, h.call(arguments, 1));
- var c = h.call(arguments, 2);
- return function() {
- return a.apply(b, c.concat(h.call(arguments)))
- }
- }, x.partial = function(a) {
- var b = h.call(arguments, 1);
- return function() {
- return a.apply(this, b.concat(h.call(arguments)))
- }
- }, x.bindAll = function(a) {
- var b = h.call(arguments, 1);
- return 0 === b.length && (b = x.functions(a)), y(b, function(b) {
- a[b] = x.bind(a[b], a)
- }), a
- }, x.memoize = function(a, b) {
- var c = {};
- return b || (b = x.identity),
- function() {
- var d = b.apply(this, arguments);
- return x.has(c, d) ? c[d] : c[d] = a.apply(this, arguments)
- }
- }, x.delay = function(a, b) {
- var c = h.call(arguments, 2);
- return setTimeout(function() {
- return a.apply(null, c)
- }, b)
- }, x.defer = function(a) {
- return x.delay.apply(x, [a, 1].concat(h.call(arguments, 1)))
- }, x.throttle = function(a, b) {
- var c, d, e, f, g = 0,
- h = function() {
- g = new Date, e = null, f = a.apply(c, d)
- };
- return function() {
- var i = new Date,
- j = b - (i - g);
- return c = this, d = arguments, 0 >= j ? (clearTimeout(e), e = null, g = i, f = a.apply(c, d)) : e || (e = setTimeout(h, j)), f
- }
- }, x.debounce = function(a, b, c) {
- var d, e;
- return function() {
- var f = this,
- g = arguments,
- h = function() {
- d = null, c || (e = a.apply(f, g))
- },
- i = c && !d;
- return clearTimeout(d), d = setTimeout(h, b), i && (e = a.apply(f, g)), e
- }
- }, x.once = function(a) {
- var b, c = !1;
- return function() {
- return c ? b : (c = !0, b = a.apply(this, arguments), a = null, b)
- }
- }, x.wrap = function(a, b) {
- return function() {
- var c = [a];
- return g.apply(c, arguments), b.apply(this, c)
- }
- }, x.compose = function() {
- var a = arguments;
- return function() {
- for (var b = arguments, c = a.length - 1; c >= 0; c--) b = [a[c].apply(this, b)];
- return b[0]
- }
- }, x.after = function(a, b) {
- return 0 >= a ? b() : function() {
- return --a < 1 ? b.apply(this, arguments) : void 0
- }
- }, x.keys = v || function(a) {
- if (a !== Object(a)) throw new TypeError("Invalid object");
- var b = [];
- for (var c in a) x.has(a, c) && (b[b.length] = c);
- return b
- }, x.values = function(a) {
- var b = [];
- for (var c in a) x.has(a, c) && b.push(a[c]);
- return b
- }, x.pairs = function(a) {
- var b = [];
- for (var c in a) x.has(a, c) && b.push([c, a[c]]);
- return b
- }, x.invert = function(a) {
- var b = {};
- for (var c in a) x.has(a, c) && (b[a[c]] = c);
- return b
- }, x.functions = x.methods = function(a) {
- var b = [];
- for (var c in a) x.isFunction(a[c]) && b.push(c);
- return b.sort()
- }, x.extend = function(a) {
- return y(h.call(arguments, 1), function(b) {
- if (b)
- for (var c in b) a[c] = b[c]
- }), a
- }, x.pick = function(a) {
- var b = {},
- c = i.apply(d, h.call(arguments, 1));
- return y(c, function(c) {
- c in a && (b[c] = a[c])
- }), b
- }, x.omit = function(a) {
- var b = {},
- c = i.apply(d, h.call(arguments, 1));
- for (var e in a) x.contains(c, e) || (b[e] = a[e]);
- return b
- }, x.defaults = function(a) {
- return y(h.call(arguments, 1), function(b) {
- if (b)
- for (var c in b) null == a[c] && (a[c] = b[c])
- }), a
- }, x.clone = function(a) {
- return x.isObject(a) ? x.isArray(a) ? a.slice() : x.extend({}, a) : a
- }, x.tap = function(a, b) {
- return b(a), a
- };
- var E = function(a, b, c, d) {
- if (a === b) return 0 !== a || 1 / a == 1 / b;
- if (null == a || null == b) return a === b;
- a instanceof x && (a = a._wrapped), b instanceof x && (b = b._wrapped);
- var e = j.call(a);
- if (e != j.call(b)) return !1;
- switch (e) {
- case "[object String]":
- return a == String(b);
- case "[object Number]":
- return a != +a ? b != +b : 0 == a ? 1 / a == 1 / b : a == +b;
- case "[object Date]":
- case "[object Boolean]":
- return +a == +b;
- case "[object RegExp]":
- return a.source == b.source && a.global == b.global && a.multiline == b.multiline && a.ignoreCase == b.ignoreCase
- }
- if ("object" != typeof a || "object" != typeof b) return !1;
- for (var f = c.length; f--;)
- if (c[f] == a) return d[f] == b;
- c.push(a), d.push(b);
- var g = 0,
- h = !0;
- if ("[object Array]" == e) {
- if (g = a.length, h = g == b.length)
- for (; g-- && (h = E(a[g], b[g], c, d)););
- } else {
- var i = a.constructor,
- k = b.constructor;
- if (i !== k && !(x.isFunction(i) && i instanceof i && x.isFunction(k) && k instanceof k)) return !1;
- for (var l in a)
- if (x.has(a, l) && (g++, !(h = x.has(b, l) && E(a[l], b[l], c, d)))) break;
- if (h) {
- for (l in b)
- if (x.has(b, l) && !g--) break;
- h = !g
- }
- }
- return c.pop(), d.pop(), h
- };
- x.isEqual = function(a, b) {
- return E(a, b, [], [])
- }, x.isEmpty = function(a) {
- if (null == a) return !0;
- if (x.isArray(a) || x.isString(a)) return 0 === a.length;
- for (var b in a)
- if (x.has(a, b)) return !1;
- return !0
- }, x.isElement = function(a) {
- return !(!a || 1 !== a.nodeType)
- }, x.isArray = u || function(a) {
- return "[object Array]" == j.call(a)
- }, x.isObject = function(a) {
- return a === Object(a)
- }, y(["Arguments", "Function", "String", "Number", "Date", "RegExp"], function(a) {
- x["is" + a] = function(b) {
- return j.call(b) == "[object " + a + "]"
- }
- }), x.isArguments(arguments) || (x.isArguments = function(a) {
- return !(!a || !x.has(a, "callee"))
- }), "function" != typeof /./ && (x.isFunction = function(a) {
- return "function" == typeof a
- }), x.isFinite = function(a) {
- return isFinite(a) && !isNaN(parseFloat(a))
- }, x.isNaN = function(a) {
- return x.isNumber(a) && a != +a
- }, x.isBoolean = function(a) {
- return a === !0 || a === !1 || "[object Boolean]" == j.call(a)
- }, x.isNull = function(a) {
- return null === a
- }, x.isUndefined = function(a) {
- return void 0 === a
- }, x.has = function(a, b) {
- return k.call(a, b)
- }, x.noConflict = function() {
- return a._ = b, this
- }, x.identity = function(a) {
- return a
- }, x.times = function(a, b, c) {
- for (var d = Array(a), e = 0; a > e; e++) d[e] = b.call(c, e);
- return d
- }, x.random = function(a, b) {
- return null == b && (b = a, a = 0), a + Math.floor(Math.random() * (b - a + 1))
- };
- var F = {
- escape: {
- "&": "&",
- "<": "<",
- ">": ">",
- '"': """,
- "'": "'",
- "/": "/"
- }
- };
- F.unescape = x.invert(F.escape);
- var G = {
- escape: new RegExp("[" + x.keys(F.escape).join("") + "]", "g"),
- unescape: new RegExp("(" + x.keys(F.unescape).join("|") + ")", "g")
- };
- x.each(["escape", "unescape"], function(a) {
- x[a] = function(b) {
- return null == b ? "" : ("" + b).replace(G[a], function(b) {
- return F[a][b]
- })
- }
- }), x.result = function(a, b) {
- if (null == a) return null;
- var c = a[b];
- return x.isFunction(c) ? c.call(a) : c
- }, x.mixin = function(a) {
- y(x.functions(a), function(b) {
- var c = x[b] = a[b];
- x.prototype[b] = function() {
- var a = [this._wrapped];
- return g.apply(a, arguments), L.call(this, c.apply(x, a))
- }
- })
- };
- var H = 0;
- x.uniqueId = function(a) {
- var b = ++H + "";
- return a ? a + b : b
- }, x.templateSettings = {
- evaluate: /<%([\s\S]+?)%>/g,
- interpolate: /<%=([\s\S]+?)%>/g,
- escape: /<%-([\s\S]+?)%>/g
- };
- var I = /(.)^/,
- J = {
- "'": "'",
- "\\": "\\",
- "\r": "r",
- "\n": "n",
- " ": "t",
- "\u2028": "u2028",
- "\u2029": "u2029"
- },
- K = /\\|'|\r|\n|\t|\u2028|\u2029/g;
- x.template = function(a, b, c) {
- var d;
- c = x.defaults({}, c, x.templateSettings);
- var e = new RegExp([(c.escape || I).source, (c.interpolate || I).source, (c.evaluate || I).source].join("|") + "|$", "g"),
- f = 0,
- g = "__p+='";
- a.replace(e, function(b, c, d, e, h) {
- return g += a.slice(f, h).replace(K, function(a) {
- return "\\" + J[a]
- }), c && (g += "'+\n((__t=(" + c + "))==null?'':_.escape(__t))+\n'"), d && (g += "'+\n((__t=(" + d + "))==null?'':__t)+\n'"), e && (g += "';\n" + e + "\n__p+='"), f = h + b.length, b
- }), g += "';\n", c.variable || (g = "with(obj||{}){\n" + g + "}\n"), g = "var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n" + g + "return __p;\n";
- try {
- d = new Function(c.variable || "obj", "_", g)
- } catch (h) {
- throw h.source = g, h
- }
- if (b) return d(b, x);
- var i = function(a) {
- return d.call(this, a, x)
- };
- return i.source = "function(" + (c.variable || "obj") + "){\n" + g + "}", i
- }, x.chain = function(a) {
- return x(a).chain()
- };
- var L = function(a) {
- return this._chain ? x(a).chain() : a
- };
- x.mixin(x), y(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(a) {
- var b = d[a];
- x.prototype[a] = function() {
- var c = this._wrapped;
- return b.apply(c, arguments), "shift" != a && "splice" != a || 0 !== c.length || delete c[0], L.call(this, c)
- }
- }), y(["concat", "join", "slice"], function(a) {
- var b = d[a];
- x.prototype[a] = function() {
- return L.call(this, b.apply(this._wrapped, arguments))
- }
- }), x.extend(x.prototype, {
- chain: function() {
- return this._chain = !0, this
- },
- value: function() {
- return this._wrapped
- }
- })
- }.call($jqOpta), $jqOpta.settings = {
- imageUrl: "https:" === window.location.protocol ? "//secure.omo.akamai.opta.net/image.php?secure=true&h=secure.omo.akamai.opta.net" : "//omo.akamai.opta.net/image.php?h=omo.akamai.opta.net",
- baseUrl: "https:" === window.location.protocol ? "https://s3-eu-west-1.amazonaws.com/widget.cloud.opta.net/2.0/" : "http://widget.cloud.opta.net/2.0/",
- apiUrl: "//widget-api.nexus.opta.net",
- sdapi_bb: "//api.performfeeds.com/basketballdata/",
- soundEnabled: !1
- }, void 0 === $jqOpta.settings.widgetFeedBaseUrl && ($jqOpta.settings.widgetFeedBaseUrl = $jqOpta.settings.baseUrl), (-1 !== $jqOpta.settings.widgetFeedBaseUrl.indexOf("optadev") || -1 !== $jqOpta.settings.widgetFeedBaseUrl.indexOf("cloud.opta.net") && "https:" !== window.location.protocol) && ($jqOpta.settings.widgetFeedBaseUrl = "//widget.cloud.opta.net/2.0/");
Add Comment
Please, Sign In to add comment