Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Copyright 2014 Google */(function() {
- var h, aa = aa || {}, m = this, q = function(a) {
- return void 0 !== a
- }
- , r = function() {}
- , ba = function(a) {
- a.V = function() {
- return a.yb ? a.yb : a.yb = new a
- }
- }
- , ca = function(a) {
- var b = typeof a;
- if ("object" == b)
- if (a) {
- if (a instanceof Array)
- return "array";
- if (a instanceof Object)
- return b;
- var c = Object.prototype.toString.call(a);
- if ("[object Window]" == c)
- return "object";
- if ("[object Array]" == c || "number" == typeof a.length && "undefined" != typeof a.splice && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("splice"))
- return "array";
- if ("[object Function]" == c || "undefined" != typeof a.call && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("call"))
- return "function"
- } else
- return "null";
- else if ("function" == b && "undefined" == typeof a.call)
- return "object";
- return b
- }
- , u = function(a) {
- return "array" == ca(a)
- }
- , da = function(a) {
- var b = ca(a);
- return "array" == b || "object" == b && "number" == typeof a.length
- }
- , v = function(a) {
- return "string" == typeof a
- }
- , w = function(a) {
- return "number" == typeof a
- }
- , x = function(a) {
- return "function" == ca(a)
- }
- , ea = function(a) {
- var b =
- typeof a;
- return "object" == b && null != a || "function" == b
- }
- , fa = "closure_uid_" + (1E9 * Math.random() >>> 0), ga = 0, ha = function(a, b, c) {
- return a.call.apply(a.bind, arguments)
- }
- , ia = function(a, b, c) {
- if (!a)
- throw Error();
- if (2 < arguments.length) {
- var d = Array.prototype.slice.call(arguments, 2);
- return function() {
- var c = Array.prototype.slice.call(arguments);
- Array.prototype.unshift.apply(c, d);
- return a.apply(b, c)
- }
- }
- return function() {
- return a.apply(b, arguments)
- }
- }
- , y = function(a, b, c) {
- y = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ?
- ha : ia;
- return y.apply(null , arguments)
- }
- , z = function(a, b) {
- var c = Array.prototype.slice.call(arguments, 1);
- return function() {
- var b = c.slice();
- b.push.apply(b, arguments);
- return a.apply(this, b)
- }
- }
- , ja = Date.now || function() {
- return +new Date
- }
- , A = function(a, b) {
- function c() {}
- c.prototype = b.prototype;
- a.l = b.prototype;
- a.prototype = new c;
- a.prototype.constructor = a;
- a.Md = function(a, c, f) {
- for (var g = Array(arguments.length - 2), k = 2; k < arguments.length; k++)
- g[k - 2] = arguments[k];
- return b.prototype[c].apply(a, g)
- }
- }
- ;
- Function.prototype.bind = Function.prototype.bind || function(a, b) {
- if (1 < arguments.length) {
- var c = Array.prototype.slice.call(arguments, 1);
- c.unshift(this, a);
- return y.apply(null , c)
- }
- return y(this, a)
- }
- ;
- var B = function(a) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, B);
- else {
- var b = Error().stack;
- b && (this.stack = b)
- }
- a && (this.message = String(a))
- }
- ;
- A(B, Error);
- B.prototype.name = "CustomError";
- var ka;
- var ma = function(a, b) {
- for (var c = a.split("%s"), d = "", e = Array.prototype.slice.call(arguments, 1); e.length && 1 < c.length; )
- d += c.shift() + e.shift();
- return d + c.join("%s")
- }
- , na = String.prototype.trim ? function(a) {
- return a.trim()
- }
- : function(a) {
- return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g, "")
- }
- , va = function(a) {
- if (!oa.test(a))
- return a;
- -1 != a.indexOf("&") && (a = a.replace(pa, "&"));
- -1 != a.indexOf("<") && (a = a.replace(qa, "<"));
- -1 != a.indexOf(">") && (a = a.replace(ra, ">"));
- -1 != a.indexOf('"') && (a = a.replace(sa, """));
- -1 != a.indexOf("'") &&
- (a = a.replace(ta, "'"));
- -1 != a.indexOf("\x00") && (a = a.replace(ua, "�"));
- return a
- }
- , pa = /&/g
- , qa = /</g
- , ra = />/g
- , sa = /"/g
- , ta = /'/g
- , ua = /\x00/g
- , oa = /[\x00&<>"']/
- , wa = function(a, b) {
- return a < b ? -1 : a > b ? 1 : 0
- }
- , xa = function(a) {
- return String(a).replace(/\-([a-z])/g, function(a, c) {
- return c.toUpperCase()
- }
- )
- }
- , ya = function(a) {
- var b = v(void 0) ? "undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1").replace(/\x08/g, "\\x08") : "\\s";
- return a.replace(new RegExp("(^" + (b ? "|[" + b + "]+" : "") + ")([a-z])","g"), function(a, b, e) {
- return b + e.toUpperCase()
- }
- )
- }
- ;
- var za = function(a, b) {
- b.unshift(a);
- B.call(this, ma.apply(null , b));
- b.shift()
- }
- ;
- A(za, B);
- za.prototype.name = "AssertionError";
- var Aa = function(a, b, c, d) {
- var e = "Assertion failed";
- if (c)
- var e = e + (": " + c)
- , f = d;
- else
- a && (e += ": " + a,
- f = b);
- throw new za("" + e,f || []);
- }
- , D = function(a, b, c) {
- a || Aa("", null , b, Array.prototype.slice.call(arguments, 2));
- return a
- }
- , Ba = function(a, b) {
- throw new za("Failure" + (a ? ": " + a : ""),Array.prototype.slice.call(arguments, 1));
- }
- , Ca = function(a, b, c) {
- v(a) || Aa("Expected string but got %s: %s.", [ca(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a
- }
- , Da = function(a, b, c) {
- x(a) || Aa("Expected function but got %s: %s.", [ca(a),
- a], b, Array.prototype.slice.call(arguments, 2))
- }
- , Ea = function(a, b, c) {
- ea(a) || Aa("Expected object but got %s: %s.", [ca(a), a], b, Array.prototype.slice.call(arguments, 2))
- }
- , Fa = function(a, b, c) {
- ea(a) && 1 == a.nodeType || Aa("Expected Element but got %s: %s.", [ca(a), a], b, Array.prototype.slice.call(arguments, 2))
- }
- , Ha = function(a, b, c, d) {
- a instanceof b || Aa("Expected instanceof %s but got %s.", [Ga(b), Ga(a)], c, Array.prototype.slice.call(arguments, 3))
- }
- , Ga = function(a) {
- return a instanceof Function ? a.displayName || a.name || "unknown type name" :
- a instanceof Object ? a.constructor.displayName || a.constructor.name || Object.prototype.toString.call(a) : null === a ? "null" : typeof a
- }
- ;
- var E = Array.prototype
- , Ia = E.indexOf ? function(a, b, c) {
- D(null != a.length);
- return E.indexOf.call(a, b, c)
- }
- : function(a, b, c) {
- c = null == c ? 0 : 0 > c ? Math.max(0, a.length + c) : c;
- if (v(a))
- return v(b) && 1 == b.length ? a.indexOf(b, c) : -1;
- for (; c < a.length; c++)
- if (c in a && a[c] === b)
- return c;
- return -1
- }
- , F = E.forEach ? function(a, b, c) {
- D(null != a.length);
- E.forEach.call(a, b, c)
- }
- : function(a, b, c) {
- for (var d = a.length, e = v(a) ? a.split("") : a, f = 0; f < d; f++)
- f in e && b.call(c, e[f], f, a)
- }
- , Ja = E.filter ? function(a, b, c) {
- D(null != a.length);
- return E.filter.call(a, b,
- c)
- }
- : function(a, b, c) {
- for (var d = a.length, e = [], f = 0, g = v(a) ? a.split("") : a, k = 0; k < d; k++)
- if (k in g) {
- var l = g[k];
- b.call(c, l, k, a) && (e[f++] = l)
- }
- return e
- }
- , Ka = E.map ? function(a, b, c) {
- D(null != a.length);
- return E.map.call(a, b, c)
- }
- : function(a, b, c) {
- for (var d = a.length, e = Array(d), f = v(a) ? a.split("") : a, g = 0; g < d; g++)
- g in f && (e[g] = b.call(c, f[g], g, a));
- return e
- }
- , La = E.some ? function(a, b, c) {
- D(null != a.length);
- return E.some.call(a, b, c)
- }
- : function(a, b, c) {
- for (var d = a.length, e = v(a) ? a.split("") : a, f = 0; f < d; f++)
- if (f in e && b.call(c, e[f], f, a))
- return !0;
- return !1
- }
- , Ma = E.every ? function(a, b, c) {
- D(null != a.length);
- return E.every.call(a, b, c)
- }
- : function(a, b, c) {
- for (var d = a.length, e = v(a) ? a.split("") : a, f = 0; f < d; f++)
- if (f in e && !b.call(c, e[f], f, a))
- return !1;
- return !0
- }
- , Oa = function(a) {
- var b;
- a: {
- b = Na;
- for (var c = a.length, d = v(a) ? a.split("") : a, e = 0; e < c; e++)
- if (e in d && b.call(void 0, d[e], e, a)) {
- b = e;
- break a
- }
- b = -1
- }
- return 0 > b ? null : v(a) ? a.charAt(b) : a[b]
- }
- , Pa = function(a, b) {
- return 0 <= Ia(a, b)
- }
- , Qa = function(a, b) {
- var c = Ia(a, b), d;
- if (d = 0 <= c)
- D(null != a.length),
- E.splice.call(a, c, 1);
- return d
- }
- ,
- Ra = function(a) {
- return E.concat.apply(E, arguments)
- }
- , Sa = function(a) {
- var b = a.length;
- if (0 < b) {
- for (var c = Array(b), d = 0; d < b; d++)
- c[d] = a[d];
- return c
- }
- return []
- }
- ;
- var Ta = function(a, b, c) {
- for (var d in a)
- b.call(c, a[d], d, a)
- }
- , Ua = function(a) {
- var b = [], c = 0, d;
- for (d in a)
- b[c++] = a[d];
- return b
- }
- , Va = function(a) {
- var b = [], c = 0, d;
- for (d in a)
- b[c++] = d;
- return b
- }
- , Wa = function(a, b) {
- for (var c in a)
- if (a[c] == b)
- return !0;
- return !1
- }
- , Xa = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")
- , Ya = function(a, b) {
- for (var c, d, e = 1; e < arguments.length; e++) {
- d = arguments[e];
- for (c in d)
- a[c] = d[c];
- for (var f = 0; f < Xa.length; f++)
- c = Xa[f],
- Object.prototype.hasOwnProperty.call(d,
- c) && (a[c] = d[c])
- }
- }
- , Za = function(a) {
- var b = arguments.length;
- if (1 == b && u(arguments[0]))
- return Za.apply(null , arguments[0]);
- if (b % 2)
- throw Error("Uneven number of arguments");
- for (var c = {}, d = 0; d < b; d += 2)
- c[arguments[d]] = arguments[d + 1];
- return c
- }
- , $a = function(a) {
- var b = arguments.length;
- if (1 == b && u(arguments[0]))
- return $a.apply(null , arguments[0]);
- for (var c = {}, d = 0; d < b; d++)
- c[arguments[d]] = !0;
- return c
- }
- ;
- var ab = $a("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));
- var cb = function() {
- this.a = "";
- this.b = bb
- }
- ;
- cb.prototype.qa = !0;
- cb.prototype.oa = function() {
- return this.a
- }
- ;
- cb.prototype.toString = function() {
- return "Const{" + this.a + "}"
- }
- ;
- var db = function(a) {
- if (a instanceof cb && a.constructor === cb && a.b === bb)
- return a.a;
- Ba("expected object of type Const, got '" + a + "'");
- return "type_error:Const"
- }
- , bb = {};
- var fb = function() {
- this.a = "";
- this.b = eb
- }
- ;
- fb.prototype.qa = !0;
- var eb = {};
- fb.prototype.oa = function() {
- return this.a
- }
- ;
- fb.prototype.toString = function() {
- return "SafeStyle{" + this.a + "}"
- }
- ;
- var gb = function(a) {
- var b = new fb;
- b.a = a;
- return b
- }
- , hb = gb("")
- , ib = /^[-,."'%_!# a-zA-Z0-9]+$/;
- var kb = function() {
- this.a = jb
- }
- ;
- h = kb.prototype;
- h.qa = !0;
- h.oa = function() {
- return ""
- }
- ;
- h.Za = !0;
- h.na = function() {
- return 1
- }
- ;
- h.toString = function() {
- return "SafeUrl{}"
- }
- ;
- var jb = {};
- var mb = function() {
- this.a = lb
- }
- ;
- h = mb.prototype;
- h.qa = !0;
- h.oa = function() {
- return ""
- }
- ;
- h.Za = !0;
- h.na = function() {
- return 1
- }
- ;
- h.toString = function() {
- return "TrustedResourceUrl{}"
- }
- ;
- var lb = {};
- var ob = function() {
- this.a = "";
- this.c = nb;
- this.b = null
- }
- ;
- h = ob.prototype;
- h.Za = !0;
- h.na = function() {
- return this.b
- }
- ;
- h.qa = !0;
- h.oa = function() {
- return this.a
- }
- ;
- h.toString = function() {
- return "SafeHtml{" + this.a + "}"
- }
- ;
- var pb = function(a) {
- if (a instanceof ob && a.constructor === ob && a.c === nb)
- return a.a;
- Ba("expected object of type SafeHtml, got '" + a + "'");
- return "type_error:SafeHtml"
- }
- , rb = function(a) {
- if (a instanceof ob)
- return a;
- var b = null ;
- a.Za && (b = a.na());
- a = va(a.qa ? a.oa() : String(a));
- return qb(a, b)
- }
- , sb = /^[a-zA-Z0-9-]+$/
- , tb = {
- action: !0,
- cite: !0,
- data: !0,
- formaction: !0,
- href: !0,
- manifest: !0,
- poster: !0,
- src: !0
- }
- , ub = {
- EMBED: !0,
- IFRAME: !0,
- LINK: !0,
- OBJECT: !0,
- SCRIPT: !0,
- STYLE: !0,
- TEMPLATE: !0
- }
- , vb = function(a) {
- var b = 0
- , c = ""
- , d = function(a) {
- u(a) ? F(a,
- d) : (a = rb(a),
- c += pb(a),
- a = a.na(),
- 0 == b ? b = a : 0 != a && b != a && (b = null ))
- }
- ;
- F(arguments, d);
- return qb(c, b)
- }
- , nb = {}
- , qb = function(a, b) {
- var c = new ob;
- c.a = a;
- c.b = b;
- return c
- }
- ;
- qb("<!DOCTYPE html>", 0);
- var wb = qb("", 0);
- var G = function(a, b) {
- this.x = q(a) ? a : 0;
- this.y = q(b) ? b : 0
- }
- ;
- G.prototype.clone = function() {
- return new G(this.x,this.y)
- }
- ;
- G.prototype.toString = function() {
- return "(" + this.x + ", " + this.y + ")"
- }
- ;
- var xb = function(a, b) {
- return new G(a.x - b.x,a.y - b.y)
- }
- ;
- G.prototype.floor = function() {
- this.x = Math.floor(this.x);
- this.y = Math.floor(this.y);
- return this
- }
- ;
- G.prototype.round = function() {
- this.x = Math.round(this.x);
- this.y = Math.round(this.y);
- return this
- }
- ;
- var yb = function(a, b) {
- this.width = a;
- this.height = b
- }
- ;
- yb.prototype.clone = function() {
- return new yb(this.width,this.height)
- }
- ;
- yb.prototype.toString = function() {
- return "(" + this.width + " x " + this.height + ")"
- }
- ;
- yb.prototype.floor = function() {
- this.width = Math.floor(this.width);
- this.height = Math.floor(this.height);
- return this
- }
- ;
- yb.prototype.round = function() {
- this.width = Math.round(this.width);
- this.height = Math.round(this.height);
- return this
- }
- ;
- var zb;
- a: {
- var Ab = m.navigator;
- if (Ab) {
- var Bb = Ab.userAgent;
- if (Bb) {
- zb = Bb;
- break a
- }
- }
- zb = ""
- }
- var H = function(a) {
- return -1 != zb.indexOf(a)
- }
- ;
- var Cb = function() {
- return H("Edge") || H("Trident") || H("MSIE")
- }
- ;
- var Db = function() {
- return H("Edge")
- }
- ;
- var Eb = H("Opera") || H("OPR")
- , I = Cb()
- , J = H("Gecko") && !(-1 != zb.toLowerCase().indexOf("webkit") && !Db()) && !(H("Trident") || H("MSIE")) && !Db()
- , K = -1 != zb.toLowerCase().indexOf("webkit") && !Db()
- , Fb = K && H("Mobile")
- , Gb = H("Macintosh")
- , Hb = function() {
- var a = zb;
- if (J)
- return /rv\:([^\);]+)(\)|;)/.exec(a);
- if (I && Db())
- return /Edge\/([\d\.]+)/.exec(a);
- if (I)
- return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);
- if (K)
- return /WebKit\/(\S+)/.exec(a)
- }
- , Ib = function() {
- var a = m.document;
- return a ? a.documentMode : void 0
- }
- , Jb = function() {
- if (Eb && m.opera) {
- var a =
- m.opera.version;
- return x(a) ? a() : a
- }
- var a = ""
- , b = Hb();
- b && (a = b ? b[1] : "");
- return I && !Db() && (b = Ib(),
- b > parseFloat(a)) ? String(b) : a
- }
- ()
- , Kb = {}
- , M = function(a) {
- var b;
- if (!(b = Kb[a])) {
- b = 0;
- for (var c = na(String(Jb)).split("."), d = na(String(a)).split("."), e = Math.max(c.length, d.length), f = 0; 0 == b && f < e; f++) {
- var g = c[f] || ""
- , k = d[f] || ""
- , l = RegExp("(\\d*)(\\D*)", "g")
- , p = RegExp("(\\d*)(\\D*)", "g");
- do {
- var n = l.exec(g) || ["", "", ""]
- , t = p.exec(k) || ["", "", ""];
- if (0 == n[0].length && 0 == t[0].length)
- break;
- b = wa(0 == n[1].length ? 0 : parseInt(n[1], 10), 0 ==
- t[1].length ? 0 : parseInt(t[1], 10)) || wa(0 == n[2].length, 0 == t[2].length) || wa(n[2], t[2])
- } while (0 == b)
- }
- b = Kb[a] = 0 <= b
- }
- return b
- }
- , Mb = function(a) {
- return I && (Db() || Lb >= a)
- }
- , Nb = m.document
- , Ob = Ib()
- , Lb = !Nb || !I || !Ob && Db() ? void 0 : Ob || ("CSS1Compat" == Nb.compatMode ? parseInt(Jb, 10) : 5);
- var Pb = !I || Mb(9)
- , Qb = !J && !I || I && Mb(9) || J && M("1.9.1")
- , Rb = I && !M("9");
- var Tb = function(a) {
- return a ? new Sb(N(a)) : ka || (ka = new Sb)
- }
- , Ub = function(a, b) {
- return v(b) ? a.getElementById(b) : b
- }
- , Wb = function(a, b) {
- var c = b || document
- , d = null ;
- c.getElementsByClassName ? d = c.getElementsByClassName(a)[0] : c.querySelectorAll && c.querySelector ? d = c.querySelector("." + a) : d = Vb(a, b)[0];
- return d || null
- }
- , Vb = function(a, b) {
- var c, d, e, f;
- c = document;
- c = b || c;
- if (c.querySelectorAll && c.querySelector && a)
- return c.querySelectorAll("" + (a ? "." + a : ""));
- if (a && c.getElementsByClassName) {
- var g = c.getElementsByClassName(a);
- return g
- }
- g =
- c.getElementsByTagName("*");
- if (a) {
- f = {};
- for (d = e = 0; c = g[d]; d++) {
- var k = c.className;
- "function" == typeof k.split && Pa(k.split(/\s+/), a) && (f[e++] = c)
- }
- f.length = e;
- return f
- }
- return g
- }
- , Yb = function(a, b) {
- Ta(b, function(b, d) {
- "style" == d ? a.style.cssText = b : "class" == d ? a.className = b : "for" == d ? a.htmlFor = b : d in Xb ? a.setAttribute(Xb[d], b) : 0 == d.lastIndexOf("aria-", 0) || 0 == d.lastIndexOf("data-", 0) ? a.setAttribute(d, b) : a[d] = b
- }
- )
- }
- , Xb = {
- cellpadding: "cellPadding",
- cellspacing: "cellSpacing",
- colspan: "colSpan",
- frameborder: "frameBorder",
- height: "height",
- maxlength: "maxLength",
- role: "role",
- rowspan: "rowSpan",
- type: "type",
- usemap: "useMap",
- valign: "vAlign",
- width: "width"
- }
- , ac = function(a) {
- var b = Zb(a);
- a = $b(a);
- return I && M("10") && a.pageYOffset != b.scrollTop ? new G(b.scrollLeft,b.scrollTop) : new G(a.pageXOffset || b.scrollLeft,a.pageYOffset || b.scrollTop)
- }
- , Zb = function(a) {
- return K || "CSS1Compat" != a.compatMode ? a.body || a.documentElement : a.documentElement
- }
- , $b = function(a) {
- return a.parentWindow || a.defaultView
- }
- , cc = function(a, b, c, d) {
- function e(c) {
- c && b.appendChild(v(c) ? a.createTextNode(c) :
- c)
- }
- for (; d < c.length; d++) {
- var f = c[d];
- !da(f) || ea(f) && 0 < f.nodeType ? e(f) : F(bc(f) ? Sa(f) : f, e)
- }
- }
- , dc = function(a) {
- a && a.parentNode && a.parentNode.removeChild(a)
- }
- , ec = function(a, b) {
- if (a.contains && 1 == b.nodeType)
- return a == b || a.contains(b);
- if ("undefined" != typeof a.compareDocumentPosition)
- return a == b || Boolean(a.compareDocumentPosition(b) & 16);
- for (; b && a != b; )
- b = b.parentNode;
- return b == a
- }
- , N = function(a) {
- D(a, "Node cannot be null or undefined.");
- return 9 == a.nodeType ? a : a.ownerDocument || a.document
- }
- , fc = function(a, b) {
- D(null != a,
- "goog.dom.setTextContent expects a non-null value for node");
- if ("textContent" in a)
- a.textContent = b;
- else if (3 == a.nodeType)
- a.data = b;
- else if (a.firstChild && 3 == a.firstChild.nodeType) {
- for (; a.lastChild != a.firstChild; )
- a.removeChild(a.lastChild);
- a.firstChild.data = b
- } else {
- for (var c; c = a.firstChild; )
- a.removeChild(c);
- c = N(a);
- a.appendChild(c.createTextNode(String(b)))
- }
- }
- , gc = {
- SCRIPT: 1,
- STYLE: 1,
- HEAD: 1,
- IFRAME: 1,
- OBJECT: 1
- }
- , hc = {
- IMG: " ",
- BR: "\n"
- }
- , ic = function(a, b) {
- b ? a.tabIndex = 0 : (a.tabIndex = -1,
- a.removeAttribute("tabIndex"))
- }
- ,
- jc = function(a) {
- a = a.getAttributeNode("tabindex");
- return null != a && a.specified
- }
- , kc = function(a) {
- a = a.tabIndex;
- return w(a) && 0 <= a && 32768 > a
- }
- , mc = function(a) {
- var b = [];
- lc(a, b, !1);
- return b.join("")
- }
- , lc = function(a, b, c) {
- if (!(a.nodeName in gc))
- if (3 == a.nodeType)
- c ? b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : b.push(a.nodeValue);
- else if (a.nodeName in hc)
- b.push(hc[a.nodeName]);
- else
- for (a = a.firstChild; a; )
- lc(a, b, c),
- a = a.nextSibling
- }
- , bc = function(a) {
- if (a && "number" == typeof a.length) {
- if (ea(a))
- return "function" ==
- typeof a.item || "string" == typeof a.item;
- if (x(a))
- return "function" == typeof a.item
- }
- return !1
- }
- , Sb = function(a) {
- this.a = a || m.document || document
- }
- ;
- Sb.prototype.j = function(a) {
- return Ub(this.a, a)
- }
- ;
- Sb.prototype.b = function(a, b, c) {
- var d = this.a
- , e = arguments
- , f = e[0]
- , g = e[1];
- if (!Pb && g && (g.name || g.type)) {
- f = ["<", f];
- g.name && f.push(' name="', va(g.name), '"');
- if (g.type) {
- f.push(' type="', va(g.type), '"');
- var k = {};
- Ya(k, g);
- delete k.type;
- g = k
- }
- f.push(">");
- f = f.join("")
- }
- f = d.createElement(f);
- g && (v(g) ? f.className = g : u(g) ? f.className = g.join(" ") : Yb(f, g));
- 2 < e.length && cc(d, f, e, 2);
- return f
- }
- ;
- var nc = function(a) {
- return "CSS1Compat" == a.a.compatMode
- }
- ;
- Sb.prototype.c = function(a, b) {
- cc(N(a), a, arguments, 1)
- }
- ;
- Sb.prototype.getChildren = function(a) {
- return Qb && void 0 != a.children ? a.children : Ja(a.childNodes, function(a) {
- return 1 == a.nodeType
- }
- )
- }
- ;
- Sb.prototype.contains = ec;
- var oc = function(a) {
- oc[" "](a);
- return a
- }
- ;
- oc[" "] = r;
- var pc = !I || Mb(9)
- , qc = !I || Mb(9)
- , rc = I && !M("9");
- !K || M("528");
- J && M("1.9b") || I && M("8") || Eb && M("9.5") || K && M("528");
- J && !M("8") || I && M("9");
- var sc = function() {
- this.v = this.v;
- this.B = this.B
- }
- ;
- sc.prototype.v = !1;
- sc.prototype.O = function() {
- this.v || (this.v = !0,
- this.o())
- }
- ;
- var tc = function(a, b) {
- a.v ? b.call(void 0) : (a.B || (a.B = []),
- a.B.push(q(void 0) ? y(b, void 0) : b))
- }
- ;
- sc.prototype.o = function() {
- if (this.B)
- for (; this.B.length; )
- this.B.shift()()
- }
- ;
- var uc = function(a) {
- a && "function" == typeof a.O && a.O()
- }
- ;
- var vc = function(a, b) {
- this.type = a;
- this.currentTarget = this.target = b;
- this.defaultPrevented = this.ga = !1;
- this.Eb = !0
- }
- ;
- vc.prototype.stopPropagation = function() {
- this.ga = !0
- }
- ;
- vc.prototype.preventDefault = function() {
- this.defaultPrevented = !0;
- this.Eb = !1
- }
- ;
- var O = function(a, b) {
- vc.call(this, a ? a.type : "");
- this.relatedTarget = this.currentTarget = this.target = null ;
- this.charCode = this.keyCode = this.button = this.screenY = this.screenX = this.clientY = this.clientX = this.offsetY = this.offsetX = 0;
- this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1;
- this.state = null ;
- this.cb = !1;
- this.Y = null ;
- if (a) {
- var c = this.type = a.type;
- this.target = a.target || a.srcElement;
- this.currentTarget = b;
- var d = a.relatedTarget;
- if (d) {
- if (J) {
- var e;
- a: {
- try {
- oc(d.nodeName);
- e = !0;
- break a
- } catch (f) {}
- e = !1
- }
- e || (d = null )
- }
- } else
- "mouseover" ==
- c ? d = a.fromElement : "mouseout" == c && (d = a.toElement);
- this.relatedTarget = d;
- this.offsetX = K || void 0 !== a.offsetX ? a.offsetX : a.layerX;
- this.offsetY = K || void 0 !== a.offsetY ? a.offsetY : a.layerY;
- this.clientX = void 0 !== a.clientX ? a.clientX : a.pageX;
- this.clientY = void 0 !== a.clientY ? a.clientY : a.pageY;
- this.screenX = a.screenX || 0;
- this.screenY = a.screenY || 0;
- this.button = a.button;
- this.keyCode = a.keyCode || 0;
- this.charCode = a.charCode || ("keypress" == c ? a.keyCode : 0);
- this.ctrlKey = a.ctrlKey;
- this.altKey = a.altKey;
- this.shiftKey = a.shiftKey;
- this.metaKey =
- a.metaKey;
- this.cb = Gb ? a.metaKey : a.ctrlKey;
- this.state = a.state;
- this.Y = a;
- a.defaultPrevented && this.preventDefault()
- }
- }
- ;
- A(O, vc);
- var wc = [1, 4, 2]
- , xc = function(a) {
- return (pc ? 0 == a.Y.button : "click" == a.type ? !0 : !!(a.Y.button & wc[0])) && !(K && Gb && a.ctrlKey)
- }
- ;
- O.prototype.stopPropagation = function() {
- O.l.stopPropagation.call(this);
- this.Y.stopPropagation ? this.Y.stopPropagation() : this.Y.cancelBubble = !0
- }
- ;
- O.prototype.preventDefault = function() {
- O.l.preventDefault.call(this);
- var a = this.Y;
- if (a.preventDefault)
- a.preventDefault();
- else if (a.returnValue = !1,
- rc)
- try {
- if (a.ctrlKey || 112 <= a.keyCode && 123 >= a.keyCode)
- a.keyCode = -1
- } catch (b) {}
- }
- ;
- O.prototype.ma = function() {
- return this.Y
- }
- ;
- var yc = "closure_listenable_" + (1E6 * Math.random() | 0)
- , zc = function(a) {
- return !(!a || !a[yc])
- }
- , Ac = 0;
- var Bc = function(a, b, c, d, e) {
- this.listener = a;
- this.proxy = null ;
- this.src = b;
- this.type = c;
- this.Fa = !!d;
- this.Ha = e;
- this.mb = ++Ac;
- this.removed = this.Ea = !1
- }
- , Cc = function(a) {
- a.removed = !0;
- a.listener = null ;
- a.proxy = null ;
- a.src = null ;
- a.Ha = null
- }
- ;
- var Dc = function(a) {
- this.src = a;
- this.a = {};
- this.b = 0
- }
- ;
- Dc.prototype.add = function(a, b, c, d, e) {
- var f = a.toString();
- a = this.a[f];
- a || (a = this.a[f] = [],
- this.b++);
- var g = Ec(a, b, d, e);
- -1 < g ? (b = a[g],
- c || (b.Ea = !1)) : (b = new Bc(b,this.src,f,!!d,e),
- b.Ea = c,
- a.push(b));
- return b
- }
- ;
- Dc.prototype.remove = function(a, b, c, d) {
- a = a.toString();
- if (!(a in this.a))
- return !1;
- var e = this.a[a];
- b = Ec(e, b, c, d);
- return -1 < b ? (Cc(e[b]),
- D(null != e.length),
- E.splice.call(e, b, 1),
- 0 == e.length && (delete this.a[a],
- this.b--),
- !0) : !1
- }
- ;
- var Fc = function(a, b) {
- var c = b.type;
- if (!(c in a.a))
- return !1;
- var d = Qa(a.a[c], b);
- d && (Cc(b),
- 0 == a.a[c].length && (delete a.a[c],
- a.b--));
- return d
- }
- ;
- Dc.prototype.removeAll = function(a) {
- a = a && a.toString();
- var b = 0, c;
- for (c in this.a)
- if (!a || c == a) {
- for (var d = this.a[c], e = 0; e < d.length; e++)
- ++b,
- Cc(d[e]);
- delete this.a[c];
- this.b--
- }
- return b
- }
- ;
- var Gc = function(a, b, c, d, e) {
- a = a.a[b.toString()];
- b = -1;
- a && (b = Ec(a, c, d, e));
- return -1 < b ? a[b] : null
- }
- , Ec = function(a, b, c, d) {
- for (var e = 0; e < a.length; ++e) {
- var f = a[e];
- if (!f.removed && f.listener == b && f.Fa == !!c && f.Ha == d)
- return e
- }
- return -1
- }
- ;
- var Hc = "closure_lm_" + (1E6 * Math.random() | 0)
- , Ic = {}
- , Jc = 0
- , P = function(a, b, c, d, e) {
- if (u(b)) {
- for (var f = 0; f < b.length; f++)
- P(a, b[f], c, d, e);
- return null
- }
- c = Kc(c);
- return zc(a) ? a.listen(b, c, d, e) : Lc(a, b, c, !1, d, e)
- }
- , Lc = function(a, b, c, d, e, f) {
- if (!b)
- throw Error("Invalid event type");
- var g = !!e
- , k = Mc(a);
- k || (a[Hc] = k = new Dc(a));
- c = k.add(b, c, d, e, f);
- if (c.proxy)
- return c;
- d = Nc();
- c.proxy = d;
- d.src = a;
- d.listener = c;
- a.addEventListener ? a.addEventListener(b.toString(), d, g) : a.attachEvent(Oc(b.toString()), d);
- Jc++;
- return c
- }
- , Nc = function() {
- var a =
- Pc
- , b = qc ? function(c) {
- return a.call(b.src, b.listener, c)
- }
- : function(c) {
- c = a.call(b.src, b.listener, c);
- if (!c)
- return c
- }
- ;
- return b
- }
- , Qc = function(a, b, c, d, e) {
- if (u(b))
- for (var f = 0; f < b.length; f++)
- Qc(a, b[f], c, d, e);
- else
- c = Kc(c),
- zc(a) ? a.F.add(String(b), c, !0, d, e) : Lc(a, b, c, !0, d, e)
- }
- , Rc = function(a, b, c, d, e) {
- if (u(b))
- for (var f = 0; f < b.length; f++)
- Rc(a, b[f], c, d, e);
- else
- c = Kc(c),
- zc(a) ? a.F.remove(String(b), c, d, e) : a && (a = Mc(a)) && (b = Gc(a, b, c, !!d, e)) && Sc(b)
- }
- , Sc = function(a) {
- if (w(a) || !a || a.removed)
- return !1;
- var b = a.src;
- if (zc(b))
- return Fc(b.F,
- a);
- var c = a.type
- , d = a.proxy;
- b.removeEventListener ? b.removeEventListener(c, d, a.Fa) : b.detachEvent && b.detachEvent(Oc(c), d);
- Jc--;
- (c = Mc(b)) ? (Fc(c, a),
- 0 == c.b && (c.src = null ,
- b[Hc] = null )) : Cc(a);
- return !0
- }
- , Tc = function(a) {
- if (a)
- if (zc(a))
- a.F && a.F.removeAll(void 0);
- else if (a = Mc(a)) {
- var b = 0, c;
- for (c in a.a)
- for (var d = a.a[c].concat(), e = 0; e < d.length; ++e)
- Sc(d[e]) && ++b
- }
- }
- , Oc = function(a) {
- return a in Ic ? Ic[a] : Ic[a] = "on" + a
- }
- , Vc = function(a, b, c, d) {
- var e = !0;
- if (a = Mc(a))
- if (b = a.a[b.toString()])
- for (b = b.concat(),
- a = 0; a < b.length; a++) {
- var f =
- b[a];
- f && f.Fa == c && !f.removed && (f = Uc(f, d),
- e = e && !1 !== f)
- }
- return e
- }
- , Uc = function(a, b) {
- var c = a.listener
- , d = a.Ha || a.src;
- a.Ea && Sc(a);
- return c.call(d, b)
- }
- , Pc = function(a, b) {
- if (a.removed)
- return !0;
- if (!qc) {
- var c;
- if (!(c = b))
- a: {
- c = ["window", "event"];
- for (var d = m, e; e = c.shift(); )
- if (null != d[e])
- d = d[e];
- else {
- c = null ;
- break a
- }
- c = d
- }
- e = c;
- c = new O(e,this);
- d = !0;
- if (!(0 > e.keyCode || void 0 != e.returnValue)) {
- a: {
- var f = !1;
- if (0 == e.keyCode)
- try {
- e.keyCode = -1;
- break a
- } catch (g) {
- f = !0
- }
- if (f || void 0 == e.returnValue)
- e.returnValue = !0
- }
- e = [];
- for (f = c.currentTarget; f; f =
- f.parentNode)
- e.push(f);
- for (var f = a.type, k = e.length - 1; !c.ga && 0 <= k; k--) {
- c.currentTarget = e[k];
- var l = Vc(e[k], f, !0, c)
- , d = d && l
- }
- for (k = 0; !c.ga && k < e.length; k++)
- c.currentTarget = e[k],
- l = Vc(e[k], f, !1, c),
- d = d && l
- }
- return d
- }
- return Uc(a, new O(b,this))
- }
- , Mc = function(a) {
- a = a[Hc];
- return a instanceof Dc ? a : null
- }
- , Wc = "__closure_events_fn_" + (1E9 * Math.random() >>> 0)
- , Kc = function(a) {
- D(a, "Listener can not be null.");
- if (x(a))
- return a;
- D(a.handleEvent, "An object listener must have handleEvent method.");
- a[Wc] || (a[Wc] = function(b) {
- return a.handleEvent(b)
- }
- );
- return a[Wc]
- }
- ;
- var Xc = function(a) {
- if (a.classList)
- return a.classList;
- a = a.className;
- return v(a) && a.match(/\S+/g) || []
- }
- , Yc = function(a, b) {
- return a.classList ? a.classList.contains(b) : Pa(Xc(a), b)
- }
- , Zc = function(a, b) {
- a.classList ? a.classList.add(b) : Yc(a, b) || (a.className += 0 < a.className.length ? " " + b : b)
- }
- , $c = function(a, b) {
- if (a.classList)
- F(b, function(b) {
- Zc(a, b)
- }
- );
- else {
- var c = {};
- F(Xc(a), function(a) {
- c[a] = !0
- }
- );
- F(b, function(a) {
- c[a] = !0
- }
- );
- a.className = "";
- for (var d in c)
- a.className += 0 < a.className.length ? " " + d : d
- }
- }
- , ad = function(a, b) {
- a.classList ?
- a.classList.remove(b) : Yc(a, b) && (a.className = Ja(Xc(a), function(a) {
- return a != b
- }
- ).join(" "))
- }
- , bd = function(a, b) {
- a.classList ? F(b, function(b) {
- ad(a, b)
- }
- ) : a.className = Ja(Xc(a), function(a) {
- return !Pa(b, a)
- }
- ).join(" ")
- }
- ;
- var cd, dd = {
- Xb: "activedescendant",
- bc: "atomic",
- cc: "autocomplete",
- ec: "busy",
- hc: "checked",
- mc: "controls",
- oc: "describedby",
- rc: "disabled",
- tc: "dropeffect",
- uc: "expanded",
- vc: "flowto",
- wc: "grabbed",
- Ac: "haspopup",
- HIDDEN: "hidden",
- Dc: "invalid",
- Ec: "label",
- Fc: "labelledby",
- Gc: "level",
- Lc: "live",
- Vc: "multiline",
- Wc: "multiselectable",
- $c: "orientation",
- ad: "owns",
- bd: "posinset",
- dd: "pressed",
- hd: "readonly",
- kd: "relevant",
- ld: "required",
- rd: "selected",
- td: "setsize",
- vd: "sort",
- Id: "valuemax",
- Jd: "valuemin",
- Kd: "valuenow",
- Ld: "valuetext"
- };
- var ed = {
- Yb: "alert",
- Zb: "alertdialog",
- $b: "application",
- ac: "article",
- dc: "banner",
- fc: "button",
- gc: "checkbox",
- ic: "columnheader",
- jc: "combobox",
- kc: "complementary",
- lc: "contentinfo",
- nc: "definition",
- pc: "dialog",
- qc: "directory",
- sc: "document",
- FORM: "form",
- xc: "grid",
- yc: "gridcell",
- zc: "group",
- Bc: "heading",
- Cc: "img",
- Hc: "link",
- Ic: "list",
- Jc: "listbox",
- Kc: "listitem",
- Mc: "log",
- Nc: "main",
- Oc: "marquee",
- Pc: "math",
- Qc: "menu",
- Rc: "menubar",
- Sc: "menuitem",
- Tc: "menuitemcheckbox",
- Uc: "menuitemradio",
- Xc: "navigation",
- Yc: "note",
- Zc: "option",
- cd: "presentation",
- ed: "progressbar",
- fd: "radio",
- gd: "radiogroup",
- jd: "region",
- md: "row",
- nd: "rowgroup",
- od: "rowheader",
- pd: "scrollbar",
- qd: "search",
- sd: "separator",
- ud: "slider",
- wd: "spinbutton",
- xd: "status",
- yd: "tab",
- zd: "tablist",
- Ad: "tabpanel",
- Bd: "textbox",
- Cd: "timer",
- Dd: "toolbar",
- Ed: "tooltip",
- Fd: "tree",
- Gd: "treegrid",
- Hd: "treeitem"
- };
- var fd = function(a, b, c) {
- u(c) && (c = c.join(" "));
- var d;
- D(b, "ARIA attribute cannot be empty.");
- D(Wa(dd, b), "No such ARIA attribute " + b);
- d = "aria-" + b;
- "" === c || void 0 == c ? (cd || (cd = {
- atomic: !1,
- autocomplete: "none",
- dropeffect: "none",
- haspopup: !1,
- live: "off",
- multiline: !1,
- multiselectable: !1,
- orientation: "vertical",
- readonly: !1,
- relevant: "additions text",
- required: !1,
- sort: "none",
- busy: !1,
- disabled: !1,
- hidden: !1,
- invalid: "false"
- }),
- c = cd,
- b in c ? a.setAttribute(d, c[b]) : a.removeAttribute(d)) : a.setAttribute(d, c)
- }
- ;
- var gd = function(a) {
- sc.call(this);
- this.b = a;
- this.a = {}
- }
- ;
- A(gd, sc);
- var hd = [];
- gd.prototype.listen = function(a, b, c, d) {
- u(b) || (b && (hd[0] = b.toString()),
- b = hd);
- for (var e = 0; e < b.length; e++) {
- var f = P(a, b[e], c || this.handleEvent, d || !1, this.b || this);
- if (!f)
- break;
- this.a[f.mb] = f
- }
- return this
- }
- ;
- var id = function(a, b, c, d, e, f) {
- if (u(c))
- for (var g = 0; g < c.length; g++)
- id(a, b, c[g], d, e, f);
- else
- d = d || a.handleEvent,
- f = f || a.b || a,
- d = Kc(d),
- e = !!e,
- c = zc(b) ? Gc(b.F, String(c), d, e, f) : b ? (b = Mc(b)) ? Gc(b, c, d, e, f) : null : null ,
- c && (Sc(c),
- delete a.a[c.mb]);
- return a
- }
- ;
- gd.prototype.removeAll = function() {
- Ta(this.a, Sc);
- this.a = {}
- }
- ;
- gd.prototype.o = function() {
- gd.l.o.call(this);
- this.removeAll()
- }
- ;
- gd.prototype.handleEvent = function() {
- throw Error("EventHandler.handleEvent not implemented");
- }
- ;
- var md = function(a, b, c, d, e) {
- if (!(I || K && M("525")))
- return !0;
- if (Gb && e)
- return jd(a);
- if (e && !d)
- return !1;
- w(b) && (b = kd(b));
- if (!c && (17 == b || 18 == b || Gb && 91 == b))
- return !1;
- if (K && d && c)
- switch (a) {
- case 220:
- case 219:
- case 221:
- case 192:
- case 186:
- case 189:
- case 187:
- case 188:
- case 190:
- case 191:
- case 192:
- case 222:
- return !1
- }
- if (I && d && b == a)
- return !1;
- switch (a) {
- case 13:
- return !0;
- case 27:
- return !K
- }
- return jd(a)
- }
- , jd = function(a) {
- if (48 <= a && 57 >= a || 96 <= a && 106 >= a || 65 <= a && 90 >= a || K && 0 == a)
- return !0;
- switch (a) {
- case 32:
- case 63:
- case 107:
- case 109:
- case 110:
- case 111:
- case 186:
- case 59:
- case 189:
- case 187:
- case 61:
- case 188:
- case 190:
- case 191:
- case 192:
- case 222:
- case 219:
- case 220:
- case 221:
- return !0;
- default:
- return !1
- }
- }
- , kd = function(a) {
- if (J)
- a = nd(a);
- else if (Gb && K)
- a: switch (a) {
- case 93:
- a = 91;
- break a
- }
- return a
- }
- , nd = function(a) {
- switch (a) {
- case 61:
- return 187;
- case 59:
- return 186;
- case 173:
- return 189;
- case 224:
- return 91;
- case 0:
- return 224;
- default:
- return a
- }
- }
- ;
- var od = function() {}
- , pd = new od
- , qd = ["click", J ? "keypress" : "keydown", "keyup"];
- od.prototype.listen = function(a, b, c, d, e) {
- var f = function(a) {
- var c = Kc(b)
- , e = a.target
- , e = ea(e) && 1 == e.nodeType ? a.target.getAttribute("role") || null : null ;
- "click" == a.type && xc(a) ? c.call(d, a) : 13 != a.keyCode && 3 != a.keyCode || "keyup" == a.type ? 32 != a.keyCode || "keyup" != a.type || "button" != e && "tab" != e || (c.call(d, a),
- a.preventDefault()) : (a.type = "keypress",
- c.call(d, a))
- }
- ;
- f.a = b;
- f.b = d;
- e ? e.listen(a, qd, f, c) : P(a, qd, f, c)
- }
- ;
- var Q = function() {
- sc.call(this);
- this.F = new Dc(this);
- this.Hb = this;
- this.La = null
- }
- ;
- A(Q, sc);
- Q.prototype[yc] = !0;
- Q.prototype.Ma = function(a) {
- this.La = a
- }
- ;
- Q.prototype.addEventListener = function(a, b, c, d) {
- P(this, a, b, c, d)
- }
- ;
- Q.prototype.removeEventListener = function(a, b, c, d) {
- Rc(this, a, b, c, d)
- }
- ;
- var R = function(a, b) {
- rd(a);
- var c, d = a.La;
- if (d) {
- c = [];
- for (var e = 1; d; d = d.La)
- c.push(d),
- D(1E3 > ++e, "infinite loop")
- }
- var d = a.Hb
- , e = b
- , f = e.type || e;
- if (v(e))
- e = new vc(e,d);
- else if (e instanceof vc)
- e.target = e.target || d;
- else {
- var g = e
- , e = new vc(f,d);
- Ya(e, g)
- }
- var g = !0, k;
- if (c)
- for (var l = c.length - 1; !e.ga && 0 <= l; l--)
- k = e.currentTarget = c[l],
- g = sd(k, f, !0, e) && g;
- e.ga || (k = e.currentTarget = d,
- g = sd(k, f, !0, e) && g,
- e.ga || (g = sd(k, f, !1, e) && g));
- if (c)
- for (l = 0; !e.ga && l < c.length; l++)
- k = e.currentTarget = c[l],
- g = sd(k, f, !1, e) && g;
- return g
- }
- ;
- Q.prototype.o = function() {
- Q.l.o.call(this);
- this.F && this.F.removeAll(void 0);
- this.La = null
- }
- ;
- Q.prototype.listen = function(a, b, c, d) {
- rd(this);
- return this.F.add(String(a), b, !1, c, d)
- }
- ;
- var sd = function(a, b, c, d) {
- b = a.F.a[String(b)];
- if (!b)
- return !0;
- b = b.concat();
- for (var e = !0, f = 0; f < b.length; ++f) {
- var g = b[f];
- if (g && !g.removed && g.Fa == c) {
- var k = g.listener
- , l = g.Ha || g.src;
- g.Ea && Fc(a.F, g);
- e = !1 !== k.call(l, d) && e
- }
- }
- return e && 0 != d.Eb
- }
- , rd = function(a) {
- D(a.F, "Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")
- }
- ;
- var td = function() {
- Q.call(this);
- this.b = 0
- }
- ;
- A(td, Q);
- td.prototype.onStop = function() {
- R(this, "stop")
- }
- ;
- var ud = function(a, b, c, d) {
- this.top = a;
- this.right = b;
- this.bottom = c;
- this.left = d
- }
- ;
- h = ud.prototype;
- h.clone = function() {
- return new ud(this.top,this.right,this.bottom,this.left)
- }
- ;
- h.toString = function() {
- return "(" + this.top + "t, " + this.right + "r, " + this.bottom + "b, " + this.left + "l)"
- }
- ;
- h.contains = function(a) {
- return this && a ? a instanceof ud ? a.left >= this.left && a.right <= this.right && a.top >= this.top && a.bottom <= this.bottom : a.x >= this.left && a.x <= this.right && a.y >= this.top && a.y <= this.bottom : !1
- }
- ;
- h.floor = function() {
- this.top = Math.floor(this.top);
- this.right = Math.floor(this.right);
- this.bottom = Math.floor(this.bottom);
- this.left = Math.floor(this.left);
- return this
- }
- ;
- h.round = function() {
- this.top = Math.round(this.top);
- this.right = Math.round(this.right);
- this.bottom = Math.round(this.bottom);
- this.left = Math.round(this.left);
- return this
- }
- ;
- var vd = function(a, b, c, d) {
- this.left = a;
- this.top = b;
- this.width = c;
- this.height = d
- }
- ;
- h = vd.prototype;
- h.clone = function() {
- return new vd(this.left,this.top,this.width,this.height)
- }
- ;
- h.toString = function() {
- return "(" + this.left + ", " + this.top + " - " + this.width + "w x " + this.height + "h)"
- }
- ;
- h.contains = function(a) {
- return a instanceof vd ? this.left <= a.left && this.left + this.width >= a.left + a.width && this.top <= a.top && this.top + this.height >= a.top + a.height : a.x >= this.left && a.x <= this.left + this.width && a.y >= this.top && a.y <= this.top + this.height
- }
- ;
- h.floor = function() {
- this.left = Math.floor(this.left);
- this.top = Math.floor(this.top);
- this.width = Math.floor(this.width);
- this.height = Math.floor(this.height);
- return this
- }
- ;
- h.round = function() {
- this.left = Math.round(this.left);
- this.top = Math.round(this.top);
- this.width = Math.round(this.width);
- this.height = Math.round(this.height);
- return this
- }
- ;
- var xd = function(a, b, c) {
- if (v(b))
- (b = wd(a, b)) && (a.style[b] = c);
- else
- for (var d in b) {
- c = a;
- var e = b[d]
- , f = wd(c, d);
- f && (c.style[f] = e)
- }
- }
- , yd = {}
- , wd = function(a, b) {
- var c = yd[b];
- if (!c) {
- var d = xa(b)
- , c = d;
- void 0 === a.style[d] && (d = (K ? "Webkit" : J ? "Moz" : I ? "ms" : Eb ? "O" : null ) + ya(d),
- void 0 !== a.style[d] && (c = d));
- yd[b] = c
- }
- return c
- }
- , zd = function(a, b) {
- var c = N(a);
- return c.defaultView && c.defaultView.getComputedStyle && (c = c.defaultView.getComputedStyle(a, null )) ? c[b] || c.getPropertyValue(b) || "" : ""
- }
- , Ad = function(a, b) {
- return zd(a, b) || (a.currentStyle ?
- a.currentStyle[b] : null ) || a.style && a.style[b]
- }
- , Cd = function(a, b, c) {
- var d;
- b instanceof G ? (d = b.x,
- b = b.y) : (d = b,
- b = c);
- a.style.left = Bd(d);
- a.style.top = Bd(b)
- }
- , Dd = function(a) {
- var b;
- try {
- b = a.getBoundingClientRect()
- } catch (c) {
- return {
- left: 0,
- top: 0,
- right: 0,
- bottom: 0
- }
- }
- I && a.ownerDocument.body && (a = a.ownerDocument,
- b.left -= a.documentElement.clientLeft + a.body.clientLeft,
- b.top -= a.documentElement.clientTop + a.body.clientTop);
- return b
- }
- , Ed = function(a) {
- if (I && !Mb(8))
- return a.offsetParent;
- var b = N(a)
- , c = Ad(a, "position")
- , d = "fixed" ==
- c || "absolute" == c;
- for (a = a.parentNode; a && a != b; a = a.parentNode)
- if (11 == a.nodeType && a.host && (a = a.host),
- c = Ad(a, "position"),
- d = d && "static" == c && a != b.documentElement && a != b.body,
- !d && (a.scrollWidth > a.clientWidth || a.scrollHeight > a.clientHeight || "fixed" == c || "absolute" == c || "relative" == c))
- return a;
- return null
- }
- , Gd = function(a) {
- for (var b = new ud(0,Infinity,Infinity,0), c = Tb(a), d = c.a.body, e = c.a.documentElement, f = Zb(c.a); a = Ed(a); )
- if (!(I && 0 == a.clientWidth || K && 0 == a.clientHeight && a == d) && a != d && a != e && "visible" != Ad(a, "overflow")) {
- var g =
- Fd(a)
- , k = new G(a.clientLeft,a.clientTop);
- g.x += k.x;
- g.y += k.y;
- b.top = Math.max(b.top, g.y);
- b.right = Math.min(b.right, g.x + a.clientWidth);
- b.bottom = Math.min(b.bottom, g.y + a.clientHeight);
- b.left = Math.max(b.left, g.x)
- }
- d = f.scrollLeft;
- f = f.scrollTop;
- b.left = Math.max(b.left, d);
- b.top = Math.max(b.top, f);
- c = ($b(c.a) || window).document;
- c = "CSS1Compat" == c.compatMode ? c.documentElement : c.body;
- c = new yb(c.clientWidth,c.clientHeight);
- b.right = Math.min(b.right, d + c.width);
- b.bottom = Math.min(b.bottom, f + c.height);
- return 0 <= b.top && 0 <= b.left &&
- b.bottom > b.top && b.right > b.left ? b : null
- }
- , Fd = function(a) {
- var b = N(a);
- Ea(a, "Parameter is required");
- var c = new G(0,0), d;
- d = b ? N(b) : document;
- d = !I || Mb(9) || nc(Tb(d)) ? d.documentElement : d.body;
- if (a == d)
- return c;
- a = Dd(a);
- b = Tb(b);
- b = ac(b.a);
- c.x = a.left + b.x;
- c.y = a.top + b.y;
- return c
- }
- , Id = function(a, b) {
- var c = Hd(a)
- , d = Hd(b);
- return new G(c.x - d.x,c.y - d.y)
- }
- , Jd = function(a) {
- a = Dd(a);
- return new G(a.left,a.top)
- }
- , Hd = function(a) {
- D(a);
- if (1 == a.nodeType)
- return Jd(a);
- var b = x(a.ma)
- , c = a;
- a.targetTouches && a.targetTouches.length ? c = a.targetTouches[0] :
- b && a.ma().targetTouches && a.ma().targetTouches.length && (c = a.ma().targetTouches[0]);
- return new G(c.clientX,c.clientY)
- }
- , Bd = function(a) {
- "number" == typeof a && (a = a + "px");
- return a
- }
- , Ld = function(a) {
- var b = Kd;
- if ("none" != Ad(a, "display"))
- return b(a);
- var c = a.style
- , d = c.display
- , e = c.visibility
- , f = c.position;
- c.visibility = "hidden";
- c.position = "absolute";
- c.display = "inline";
- a = b(a);
- c.display = d;
- c.position = f;
- c.visibility = e;
- return a
- }
- , Kd = function(a) {
- var b = a.offsetWidth
- , c = a.offsetHeight
- , d = K && !b && !c;
- return q(b) && !d || !a.getBoundingClientRect ?
- new yb(b,c) : (a = Dd(a),
- new yb(a.right - a.left,a.bottom - a.top))
- }
- , Md = function(a) {
- var b = Fd(a);
- a = Ld(a);
- return new vd(b.x,b.y,a.width,a.height)
- }
- , Nd = function(a, b) {
- a.style.display = b ? "" : "none"
- }
- , Od = function(a) {
- return "rtl" == Ad(a, "direction")
- }
- , Pd = J ? "MozUserSelect" : K ? "WebkitUserSelect" : null
- , Qd = function(a, b) {
- if (/^\d+px?$/.test(b))
- return parseInt(b, 10);
- var c = a.style.left
- , d = a.runtimeStyle.left;
- a.runtimeStyle.left = a.currentStyle.left;
- a.style.left = b;
- var e = a.style.pixelLeft;
- a.style.left = c;
- a.runtimeStyle.left = d;
- return e
- }
- ,
- Rd = function(a, b) {
- var c = a.currentStyle ? a.currentStyle[b] : null ;
- return c ? Qd(a, c) : 0
- }
- , Sd = {
- thin: 2,
- medium: 4,
- thick: 6
- }
- , Td = function(a, b) {
- if ("none" == (a.currentStyle ? a.currentStyle[b + "Style"] : null ))
- return 0;
- var c = a.currentStyle ? a.currentStyle[b + "Width"] : null ;
- return c in Sd ? Sd[c] : Qd(a, c)
- }
- ;
- I && M(12);
- var Ud = function(a, b) {
- u(b) || (b = [b]);
- D(0 < b.length, "At least one Css3Property should be specified.");
- var c = Ka(b, function(a) {
- if (v(a))
- return a;
- Ea(a, "Expected css3 property to be an object.");
- var b = a.Db + " " + a.duration + "s " + a.timing + " " + a.kb + "s";
- D(a.Db && w(a.duration) && a.timing && w(a.kb), "Unexpected css3 property value: %s", b);
- return b
- }
- );
- xd(a, "transition", c.join(","))
- }
- , Vd = function(a) {
- var b = !1, c;
- return function() {
- b || (c = a(),
- b = !0);
- return c
- }
- }
- (function() {
- if (I)
- return M("10.0");
- var a = document.createElement("DIV")
- ,
- b = K ? "-webkit" : J ? "-moz" : I ? "-ms" : Eb ? "-o" : null
- , c = {
- transition: "opacity 1s linear"
- };
- b && (c[b + "-transition"] = "opacity 1s linear");
- b = {
- style: c
- };
- if (!sb.test("div"))
- throw Error("Invalid tag name <div>.");
- if ("DIV" in ub)
- throw Error("Tag name <div> is not allowed for SafeHtml.");
- var c = null
- , d = "<div";
- if (b)
- for (var e in b) {
- if (!sb.test(e))
- throw Error('Invalid attribute name "' + e + '".');
- var f = b[e];
- if (null != f) {
- var g;
- g = e;
- if (f instanceof cb)
- f = db(f);
- else if ("style" == g.toLowerCase()) {
- if (!ea(f))
- throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, ' +
- typeof f + " given: " + f);
- if (!(f instanceof fb)) {
- var k = ""
- , l = void 0;
- for (l in f) {
- if (!/^[-_a-zA-Z0-9]+$/.test(l))
- throw Error("Name allows only [-_a-zA-Z0-9], got: " + l);
- var p = f[l];
- if (null != p) {
- if (p instanceof cb)
- p = db(p),
- D(!/[{;}]/.test(p), "Value does not allow [{;}].");
- else if (ib.test(p)) {
- for (var n = !0, t = !0, C = 0; C < p.length; C++) {
- var L = p.charAt(C);
- "'" == L && t ? n = !n : '"' == L && n && (t = !t)
- }
- n && t || (Ba("String value requires balanced quotes, got: " + p),
- p = "zClosurez")
- } else
- Ba("String value allows only [-,.\"'%_!# a-zA-Z0-9], got: " +
- p),
- p = "zClosurez";
- k += l + ":" + p + ";"
- }
- }
- k ? (D(!/[<>]/.test(k), "Forbidden characters in style string: " + k),
- f = gb(k)) : f = hb
- }
- k = void 0;
- f instanceof fb && f.constructor === fb && f.b === eb ? k = f.a : (Ba("expected object of type SafeStyle, got '" + f + "'"),
- k = "type_error:SafeStyle");
- f = k
- } else {
- if (/^on/i.test(g))
- throw Error('Attribute "' + g + '" requires goog.string.Const value, "' + f + '" given.');
- if (g.toLowerCase() in tb)
- if (f instanceof mb)
- f instanceof mb && f.constructor === mb && f.a === lb ? f = "" : (Ba("expected object of type TrustedResourceUrl, got '" +
- f + "'"),
- f = "type_error:TrustedResourceUrl");
- else if (f instanceof kb)
- f instanceof kb && f.constructor === kb && f.a === jb ? f = "" : (Ba("expected object of type SafeUrl, got '" + f + "'"),
- f = "type_error:SafeUrl");
- else
- throw Error('Attribute "' + g + '" on tag "div" requires goog.html.SafeUrl or goog.string.Const value, "' + f + '" given.');
- }
- f.qa && (f = f.oa());
- D(v(f) || w(f), "String or number value expected, got " + typeof f + " with value: " + f);
- g = g + '="' + va(String(f)) + '"';
- d = d + (" " + g)
- }
- }
- e = void 0;
- null != e ? u(e) || (e = [e]) : e = [];
- !0 === ab.div ?
- (D(!e.length, "Void tag <div> does not allow content."),
- d += ">") : (c = vb(e),
- d += ">" + pb(c) + "</div>",
- c = c.na());
- (b = b && b.dir) && (/^(ltr|rtl|auto)$/i.test(b) ? c = 0 : c = null );
- b = qb(d, c);
- a.innerHTML = pb(b);
- a = a.firstChild;
- D(a.nodeType == Node.ELEMENT_NODE);
- b = a.style[xa("transition")];
- return "" != ("undefined" !== typeof b ? b : a.style[wd(a, "transition")] || "")
- }
- );
- var Wd = function(a, b, c) {
- this.f = c;
- this.c = a;
- this.g = b;
- this.b = 0;
- this.a = null
- }
- ;
- Wd.prototype.get = function() {
- var a;
- 0 < this.b ? (this.b--,
- a = this.a,
- this.a = a.next,
- a.next = null ) : a = this.c();
- return a
- }
- ;
- var Xd = function(a, b) {
- a.g(b);
- a.b < a.f && (a.b++,
- b.next = a.a,
- a.a = b)
- }
- ;
- var Yd = function(a) {
- m.setTimeout(function() {
- throw a;
- }
- , 0)
- }
- , Zd, $d = function() {
- var a = m.MessageChannel;
- "undefined" === typeof a && "undefined" !== typeof window && window.postMessage && window.addEventListener && !H("Presto") && (a = function() {
- var a = document.createElement("IFRAME");
- a.style.display = "none";
- a.src = "";
- document.documentElement.appendChild(a);
- var b = a.contentWindow
- , a = b.document;
- a.open();
- a.write("");
- a.close();
- var c = "callImmediate" + Math.random()
- , d = "file:" == b.location.protocol ? "*" : b.location.protocol + "//" + b.location.host
- ,
- a = y(function(a) {
- if (("*" == d || a.origin == d) && a.data == c)
- this.port1.onmessage()
- }
- , this);
- b.addEventListener("message", a, !1);
- this.port1 = {};
- this.port2 = {
- postMessage: function() {
- b.postMessage(c, d)
- }
- }
- }
- );
- if ("undefined" !== typeof a && !Cb()) {
- var b = new a
- , c = {}
- , d = c;
- b.port1.onmessage = function() {
- if (q(c.next)) {
- c = c.next;
- var a = c.gb;
- c.gb = null ;
- a()
- }
- }
- ;
- return function(a) {
- d.next = {
- gb: a
- };
- d = d.next;
- b.port2.postMessage(0)
- }
- }
- return "undefined" !== typeof document && "onreadystatechange" in document.createElement("SCRIPT") ? function(a) {
- var b = document.createElement("SCRIPT");
- b.onreadystatechange = function() {
- b.onreadystatechange = null ;
- b.parentNode.removeChild(b);
- b = null ;
- a();
- a = null
- }
- ;
- document.documentElement.appendChild(b)
- }
- : function(a) {
- m.setTimeout(a, 0)
- }
- }
- ;
- var ae = function() {
- this.b = this.a = null
- }
- , ce = new Wd(function() {
- return new be
- }
- ,function(a) {
- a.reset()
- }
- ,100);
- ae.prototype.add = function(a, b) {
- var c = ce.get();
- c.set(a, b);
- this.b ? this.b.next = c : (D(!this.a),
- this.a = c);
- this.b = c
- }
- ;
- ae.prototype.remove = function() {
- var a = null ;
- this.a && (a = this.a,
- this.a = this.a.next,
- this.a || (this.b = null ),
- a.next = null );
- return a
- }
- ;
- var be = function() {
- this.next = this.b = this.a = null
- }
- ;
- be.prototype.set = function(a, b) {
- this.a = a;
- this.b = b;
- this.next = null
- }
- ;
- be.prototype.reset = function() {
- this.next = this.b = this.a = null
- }
- ;
- var he = function(a, b) {
- de || ee();
- fe || (de(),
- fe = !0);
- ge.add(a, b)
- }
- , de, ee = function() {
- if (m.Promise && m.Promise.resolve) {
- var a = m.Promise.resolve();
- de = function() {
- a.then(ie)
- }
- } else
- de = function() {
- var a = ie;
- !x(m.setImmediate) || m.Window && m.Window.prototype && m.Window.prototype.setImmediate == m.setImmediate ? (Zd || (Zd = $d()),
- Zd(a)) : m.setImmediate(a)
- }
- }
- , fe = !1, ge = new ae, ie = function() {
- for (var a = null ; a = ge.remove(); ) {
- try {
- a.a.call(a.b)
- } catch (b) {
- Yd(b)
- }
- Xd(ce, a)
- }
- fe = !1
- }
- ;
- var je = function(a) {
- a.prototype.then = a.prototype.then;
- a.prototype.$goog_Thenable = !0
- }
- , ke = function(a) {
- if (!a)
- return !1;
- try {
- return !!a.$goog_Thenable
- } catch (b) {
- return !1
- }
- }
- ;
- var oe = function(a, b) {
- this.a = 0;
- this.i = void 0;
- this.f = this.b = this.c = null ;
- this.g = this.h = !1;
- if (a == le)
- me(this, 2, b);
- else
- try {
- var c = this;
- a.call(b, function(a) {
- me(c, 2, a)
- }
- , function(a) {
- if (!(a instanceof ne))
- try {
- if (a instanceof Error)
- throw a;
- throw Error("Promise rejected.");
- } catch (b) {}
- me(c, 3, a)
- }
- )
- } catch (d) {
- me(this, 3, d)
- }
- }
- , pe = function() {
- this.next = this.f = this.c = this.b = this.a = null ;
- this.g = !1
- }
- ;
- pe.prototype.reset = function() {
- this.f = this.c = this.b = this.a = null ;
- this.g = !1
- }
- ;
- var qe = new Wd(function() {
- return new pe
- }
- ,function(a) {
- a.reset()
- }
- ,100)
- , re = function(a, b, c) {
- var d = qe.get();
- d.b = a;
- d.c = b;
- d.f = c;
- return d
- }
- , le = function() {}
- ;
- oe.prototype.then = function(a, b, c) {
- null != a && Da(a, "opt_onFulfilled should be a function.");
- null != b && Da(b, "opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");
- return se(this, x(a) ? a : null , x(b) ? b : null , c)
- }
- ;
- je(oe);
- oe.prototype.cancel = function(a) {
- 0 == this.a && he(function() {
- var b = new ne(a);
- te(this, b)
- }
- , this)
- }
- ;
- var te = function(a, b) {
- if (0 == a.a)
- if (a.c) {
- var c = a.c;
- if (c.b) {
- for (var d = 0, e = null , f = null , g = c.b; g && (g.g || (d++,
- g.a == a && (e = g),
- !(e && 1 < d))); g = g.next)
- e || (f = g);
- e && (0 == c.a && 1 == d ? te(c, b) : (f ? (d = f,
- D(c.b),
- D(null != d),
- d.next == c.f && (c.f = d),
- d.next = d.next.next) : ue(c),
- ve(c, e, 3, b)))
- }
- a.c = null
- } else
- me(a, 3, b)
- }
- , xe = function(a, b) {
- a.b || 2 != a.a && 3 != a.a || we(a);
- D(null != b.b);
- a.f ? a.f.next = b : a.b = b;
- a.f = b
- }
- , se = function(a, b, c, d) {
- var e = re(null , null , null );
- e.a = new oe(function(a, g) {
- e.b = b ? function(c) {
- try {
- var e = b.call(d, c);
- a(e)
- } catch (p) {
- g(p)
- }
- }
- :
- a;
- e.c = c ? function(b) {
- try {
- var e = c.call(d, b);
- !q(e) && b instanceof ne ? g(b) : a(e)
- } catch (p) {
- g(p)
- }
- }
- : g
- }
- );
- e.a.c = a;
- xe(a, e);
- return e.a
- }
- ;
- oe.prototype.m = function(a) {
- D(1 == this.a);
- this.a = 0;
- me(this, 2, a)
- }
- ;
- oe.prototype.v = function(a) {
- D(1 == this.a);
- this.a = 0;
- me(this, 3, a)
- }
- ;
- var me = function(a, b, c) {
- if (0 == a.a) {
- if (a == c)
- b = 3,
- c = new TypeError("Promise cannot resolve to itself");
- else {
- if (ke(c)) {
- a.a = 1;
- b = c;
- c = a.m;
- var d = a.v;
- b instanceof oe ? (null != c && Da(c, "opt_onFulfilled should be a function."),
- null != d && Da(d, "opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?"),
- xe(b, re(c || r, d || null , a))) : b.then(c, d, a);
- return
- }
- if (ea(c))
- try {
- if (d = c.then,
- x(d)) {
- ye(a, c, d);
- return
- }
- } catch (e) {
- b = 3,
- c = e
- }
- }
- a.i = c;
- a.a = b;
- a.c = null ;
- we(a);
- 3 != b || c instanceof ne || ze(a,
- c)
- }
- }
- , ye = function(a, b, c) {
- a.a = 1;
- var d = !1
- , e = function(b) {
- d || (d = !0,
- a.m(b))
- }
- , f = function(b) {
- d || (d = !0,
- a.v(b))
- }
- ;
- try {
- c.call(b, e, f)
- } catch (g) {
- f(g)
- }
- }
- , we = function(a) {
- a.h || (a.h = !0,
- he(a.B, a))
- }
- , ue = function(a) {
- var b = null ;
- a.b && (b = a.b,
- a.b = b.next,
- b.next = null );
- a.b || (a.f = null );
- null != b && D(null != b.b);
- return b
- }
- ;
- oe.prototype.B = function() {
- for (var a = null ; a = ue(this); )
- ve(this, a, this.a, this.i);
- this.h = !1
- }
- ;
- var ve = function(a, b, c, d) {
- if (3 == c && b.c && !b.g)
- for (; a && a.g; a = a.c)
- a.g = !1;
- if (b.a)
- b.a.c = null ,
- Ae(b, c, d);
- else
- try {
- b.g ? b.b.call(b.f) : Ae(b, c, d)
- } catch (e) {
- Be.call(null , e)
- }
- Xd(qe, b)
- }
- , Ae = function(a, b, c) {
- 2 == b ? a.b.call(a.f, c) : a.c && a.c.call(a.f, c)
- }
- , ze = function(a, b) {
- a.g = !0;
- he(function() {
- a.g && Be.call(null , b)
- }
- )
- }
- , Be = Yd
- , ne = function(a) {
- B.call(this, a)
- }
- ;
- A(ne, B);
- ne.prototype.name = "cancel";
- var Ce = function(a, b, c) {
- if (x(a))
- c && (a = y(a, c));
- else if (a && "function" == typeof a.handleEvent)
- a = y(a.handleEvent, a);
- else
- throw Error("Invalid listener argument");
- return 2147483647 < b ? -1 : m.setTimeout(a, b || 0)
- }
- ;
- var De = function(a, b, c, d, e) {
- td.call(this);
- this.a = a;
- this.h = b;
- this.i = c;
- this.f = d;
- this.s = u(e) ? e : [e]
- }
- ;
- A(De, td);
- var Ee = function(a) {
- 1 != a.b && (R(a, "begin"),
- R(a, "play"),
- ja(),
- a.b = 1,
- Vd() ? (xd(a.a, a.i),
- a.g = Ce(a.m, void 0, a)) : a.c(!1))
- }
- ;
- De.prototype.m = function() {
- Ld(this.a);
- Ud(this.a, this.s);
- xd(this.a, this.f);
- this.g = Ce(y(this.c, this, !1), 1E3 * this.h)
- }
- ;
- De.prototype.stop = function() {
- 1 == this.b && this.c(!0)
- }
- ;
- De.prototype.c = function(a) {
- xd(this.a, "transition", "");
- m.clearTimeout(this.g);
- xd(this.a, this.f);
- ja();
- this.b = 0;
- if (a)
- this.onStop();
- else
- R(this, "finish");
- R(this, "end")
- }
- ;
- De.prototype.o = function() {
- this.stop();
- De.l.o.call(this)
- }
- ;
- var Fe = function(a, b, c, d) {
- return new De(a,.218,{
- opacity: c
- },{
- opacity: d
- },{
- Db: "opacity",
- duration: .218,
- timing: b,
- kb: 0
- })
- }
- ;
- var Ge = {
- Od: !0
- }
- , He = {
- Nd: !0
- }
- , Ie = {
- Pd: !0
- }
- , Je = function() {
- throw Error("Do not instantiate directly");
- }
- ;
- Je.prototype.ka = null ;
- Je.prototype.Z = function() {
- return this.content
- }
- ;
- Je.prototype.toString = function() {
- return this.content
- }
- ;
- var Ne = function(a, b, c) {
- D(a, "Soy template may not be null.");
- c = (c || Tb()).a.createElement("DIV");
- a = Ke(a(b || Le, void 0, void 0));
- b = a.match(Me);
- D(!b, "This template starts with a %s, which cannot be a child of a <div>, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s", b && b[0], a);
- c.innerHTML = a;
- return 1 == c.childNodes.length && (a = c.firstChild,
- 1 == a.nodeType) ? a : c
- }
- , Ke = function(a) {
- if (!ea(a))
- return String(a);
- if (a instanceof Je) {
- if (a.T === Ge)
- return Ca(a.Z());
- if (a.T ===
- Ie)
- return va(a.Z())
- }
- Ba("Soy template output is unsafe for use as HTML: " + a);
- return "zSoyz"
- }
- , Me = /^<(body|caption|col|colgroup|head|html|tr|td|tbody|thead|tfoot)>/i
- , Le = {};
- var Oe = function() {}
- ;
- ba(Oe);
- Oe.prototype.a = 0;
- var S = function(a) {
- Q.call(this);
- this.f = a || Tb();
- this.ia = Pe;
- this.G = null ;
- this.H = !1;
- this.a = null ;
- this.i = void 0;
- this.m = this.K = this.g = null ;
- this.Da = !1
- }
- ;
- A(S, Q);
- S.prototype.Jb = Oe.V();
- var Pe = null
- , Qe = function(a, b) {
- switch (a) {
- case 1:
- return b ? "disable" : "enable";
- case 2:
- return b ? "highlight" : "unhighlight";
- case 4:
- return b ? "activate" : "deactivate";
- case 8:
- return b ? "select" : "unselect";
- case 16:
- return b ? "check" : "uncheck";
- case 32:
- return b ? "focus" : "blur";
- case 64:
- return b ? "open" : "close"
- }
- throw Error("Invalid component state");
- }
- , Re = function(a, b) {
- if (a.g && a.g.m) {
- var c = a.g.m
- , d = a.G;
- d in c && delete c[d];
- c = a.g.m;
- if (b in c)
- throw Error('The object already contains the key "' + b + '"');
- c[b] = a
- }
- a.G = b
- }
- ;
- S.prototype.j = function() {
- return this.a
- }
- ;
- var Se = function(a) {
- a = a.a;
- D(a, "Can not call getElementStrict before rendering/decorating.");
- return a
- }
- , Te = function(a) {
- a.i || (a.i = new gd(a));
- return a.i
- }
- ;
- S.prototype.Ma = function(a) {
- if (this.g && this.g != a)
- throw Error("Method not supported");
- S.l.Ma.call(this, a)
- }
- ;
- S.prototype.Sa = function() {
- this.a = this.f.a.createElement("DIV")
- }
- ;
- var Ue = function(a, b) {
- if (a.H)
- throw Error("Component already rendered");
- a.a || a.Sa();
- b ? b.insertBefore(a.a, null ) : a.f.a.body.appendChild(a.a);
- a.g && !a.g.H || a.U()
- }
- , Ve = function(a, b) {
- if (a.H)
- throw Error("Component already rendered");
- if (b && a.ob(b)) {
- a.Da = !0;
- var c = N(b);
- a.f && a.f.a == c || (a.f = Tb(b));
- a.ib(b);
- a.U()
- } else
- throw Error("Invalid element to decorate");
- }
- ;
- h = S.prototype;
- h.ob = function() {
- return !0
- }
- ;
- h.ib = function(a) {
- this.a = a
- }
- ;
- h.U = function() {
- this.H = !0;
- We(this, function(a) {
- !a.H && a.j() && a.U()
- }
- )
- }
- ;
- h.ua = function() {
- We(this, function(a) {
- a.H && a.ua()
- }
- );
- this.i && this.i.removeAll();
- this.H = !1
- }
- ;
- h.o = function() {
- this.H && this.ua();
- this.i && (this.i.O(),
- delete this.i);
- We(this, function(a) {
- a.O()
- }
- );
- !this.Da && this.a && dc(this.a);
- this.g = this.a = this.m = this.K = null ;
- S.l.o.call(this)
- }
- ;
- h.Ta = function() {
- return this.a
- }
- ;
- var We = function(a, b) {
- a.K && F(a.K, b, void 0)
- }
- ;
- S.prototype.removeChild = function(a, b) {
- if (a) {
- var c = v(a) ? a : a.G || (a.G = ":" + (a.Jb.a++).toString(36)), d;
- this.m && c ? (d = this.m,
- d = (c in d ? d[c] : void 0) || null ) : d = null ;
- a = d;
- if (c && a) {
- d = this.m;
- c in d && delete d[c];
- Qa(this.K, a);
- b && (a.ua(),
- a.a && dc(a.a));
- c = a;
- if (null == c)
- throw Error("Unable to set parent component");
- c.g = null ;
- S.l.Ma.call(c, null )
- }
- }
- if (!a)
- throw Error("Child is not in parent component");
- return a
- }
- ;
- var Xe = function(a, b) {
- return (b & 4 && Od(a) ? b ^ 2 : b) & -5
- }
- ;
- var Ze = function(a, b) {
- Q.call(this);
- this.a = new gd(this);
- var c = a || null ;
- Ye(this);
- this.D = c;
- b && (this.ra = b)
- }
- ;
- A(Ze, Q);
- h = Ze.prototype;
- h.D = null ;
- h.fb = null ;
- h.X = !1;
- h.ab = -1;
- h.ra = "toggle_display";
- h.j = function() {
- return this.D
- }
- ;
- var Ye = function(a) {
- if (a.X)
- throw Error("Can not change this state of the popup while showing.");
- }
- ;
- Ze.prototype.b = r;
- var $e = function(a, b) {
- a.X && R(a, {
- type: "beforehide",
- target: b
- }) && (a.a && a.a.removeAll(),
- a.X = !1,
- ja(),
- a.c ? (Qc(a.c, "end", z(a.hb, b), !1, a),
- Ee(a.c)) : a.hb(b))
- }
- ;
- h = Ze.prototype;
- h.hb = function(a) {
- "toggle_display" == this.ra ? this.Qb() : "move_offscreen" == this.ra && (this.D.style.top = "-10000px");
- R(this, {
- type: "hide",
- target: a
- })
- }
- ;
- h.Qb = function() {
- this.D.style.visibility = "hidden";
- Nd(this.D, !1)
- }
- ;
- h.Cb = function() {
- R(this, "show")
- }
- ;
- h.Bb = function(a) {
- a = a.target;
- ec(this.D, a) || af(this, a) || 150 > ja() - this.ab || $e(this, a)
- }
- ;
- h.Ab = function(a) {
- var b = N(this.D);
- if ("undefined" != typeof document.activeElement) {
- if (a = b.activeElement,
- !a || ec(this.D, a) || "BODY" == a.tagName)
- return
- } else if (a.target != b)
- return;
- 150 > ja() - this.ab || $e(this)
- }
- ;
- var af = function(a, b) {
- return La(a.fb || [], function(a) {
- return b === a || ec(a, b)
- }
- )
- }
- ;
- Ze.prototype.o = function() {
- Ze.l.o.call(this);
- this.a.O();
- uc(this.f);
- uc(this.c);
- delete this.D;
- delete this.a;
- delete this.fb
- }
- ;
- var bf = function(a, b) {
- this.g = b || void 0;
- Ze.call(this, a)
- }
- ;
- A(bf, Ze);
- bf.prototype.b = function() {
- if (this.g) {
- var a = !this.X && "move_offscreen" != this.ra
- , b = this.j();
- a && (b.style.visibility = "hidden",
- Nd(b, !0));
- this.g.nb(b, 4, this.h);
- a && Nd(b, !1)
- }
- }
- ;
- var cf = function() {}
- ;
- cf.prototype.nb = function() {}
- ;
- var df = function(a, b) {
- this.c = a;
- this.h = !!b;
- this.f = {
- 0: this.c + "-arrowright",
- 1: this.c + "-arrowup",
- 2: this.c + "-arrowdown",
- 3: this.c + "-arrowleft"
- }
- }
- ;
- A(df, cf);
- h = df.prototype;
- h.Oa = 2;
- h.eb = 20;
- h.Pa = 3;
- h.bb = -5;
- h.nb = function(a, b, c) {
- D(this.g, "Must call setElements first.");
- b = this.Oa;
- 2 == b && (b = 0);
- a = this.Pa;
- var d = 2 == this.Oa ? ef(this.Pa) ? this.a.offsetHeight / 2 : this.a.offsetWidth / 2 : this.eb;
- if (this.b) {
- var e = ff(a, b), f, g = this.b;
- f = Ld(g);
- f = (ef(a) ? f.height / 2 : f.width / 2) - d;
- var k = Xe(g, e), l;
- if (l = Gd(g))
- g = Md(g),
- g = new ud(g.top,g.left + g.width,g.top + g.height,g.left),
- ef(a) ? g.top < l.top && !(k & 1) ? f -= l.top - g.top : g.bottom > l.bottom && k & 1 && (f -= g.bottom - l.bottom) : g.left < l.left && !(k & 2) ? f -= l.left - g.left : g.right > l.right && k & 2 && (f -= g.right - l.right);
- k = ef(a) ? new G(this.bb,f) : new G(f,this.bb);
- f = a ^ 3;
- ef(a) && "rtl" == this.b.dir && (f = a);
- l = this.b;
- g = ff(f, b);
- f = this.a;
- D(f);
- var p, n = f.offsetParent;
- if (n) {
- var t = "HTML" == n.tagName || "BODY" == n.tagName;
- t && "static" == Ad(n, "position") || (p = Fd(n),
- t || (t = (t = Od(n)) && J ? -n.scrollLeft : !t || I && M("8") || "visible" == Ad(n, "overflowX") ? n.scrollLeft : n.scrollWidth - n.clientWidth - n.scrollLeft,
- p = xb(p, new G(t,n.scrollTop))))
- }
- p = p || new G;
- n = Md(l);
- if (t = Gd(l)) {
- var C = new vd(t.left,t.top,t.right - t.left,t.bottom - t.top)
- , t = Math.max(n.left, C.left)
- ,
- L = Math.min(n.left + n.width, C.left + C.width);
- if (t <= L) {
- var la = Math.max(n.top, C.top)
- , C = Math.min(n.top + n.height, C.top + C.height);
- la <= C && (n.left = t,
- n.top = la,
- n.width = L - t,
- n.height = C - la)
- }
- }
- t = Tb(l);
- la = Tb(f);
- if (t.a != la.a) {
- var L = t.a.body, la = $b(la.a), C = new G(0,0), W;
- W = (W = N(L)) ? $b(W) : window;
- var ld = L;
- do {
- var xf = W == la ? Fd(ld) : Jd(D(ld));
- C.x += xf.x;
- C.y += xf.y
- } while (W && W != la && W != W.parent && (ld = W.frameElement) && (W = W.parent));L = xb(C, Fd(L));
- !I || Mb(9) || nc(t) || (L = xb(L, ac(t.a)));
- n.left += L.x;
- n.top += L.y
- }
- l = Xe(l, g);
- g = new G(l & 2 ? n.left +
- n.width : n.left,l & 1 ? n.top + n.height : n.top);
- g = xb(g, p);
- k && (g.x += (l & 2 ? -1 : 1) * k.x,
- g.y += (l & 1 ? -1 : 1) * k.y);
- l = g.clone();
- k = Xe(f, e);
- e = Ld(f);
- g = e.clone();
- l = l.clone();
- g = g.clone();
- if (c || 0 != k)
- k & 2 ? l.x -= g.width + (c ? c.right : 0) : c && (l.x += c.left),
- k & 1 ? l.y -= g.height + (c ? c.bottom : 0) : c && (l.y += c.top);
- c = new vd(0,0,0,0);
- c.left = l.x;
- c.top = l.y;
- c.width = g.width;
- c.height = g.height;
- Cd(f, new G(c.left,c.top));
- g = new yb(c.width,c.height);
- e == g || e && g && e.width == g.width && e.height == g.height || (c = g,
- e = N(f),
- k = nc(Tb(e)),
- !I || M("10") || k && M("8") ? (f = f.style,
- J ? f.MozBoxSizing = "border-box" : K ? f.WebkitBoxSizing = "border-box" : f.boxSizing = "border-box",
- f.width = Math.max(c.width, 0) + "px",
- f.height = Math.max(c.height, 0) + "px") : (e = f.style,
- k ? (I ? (k = Rd(f, "paddingLeft"),
- l = Rd(f, "paddingRight"),
- g = Rd(f, "paddingTop"),
- p = Rd(f, "paddingBottom"),
- k = new ud(g,l,p,k)) : (k = zd(f, "paddingLeft"),
- l = zd(f, "paddingRight"),
- g = zd(f, "paddingTop"),
- p = zd(f, "paddingBottom"),
- k = new ud(parseFloat(g),parseFloat(l),parseFloat(p),parseFloat(k))),
- I && !Mb(9) ? (l = Td(f, "borderLeft"),
- g = Td(f, "borderRight"),
- p = Td(f,
- "borderTop"),
- f = Td(f, "borderBottom"),
- f = new ud(p,g,f,l)) : (l = zd(f, "borderLeftWidth"),
- g = zd(f, "borderRightWidth"),
- p = zd(f, "borderTopWidth"),
- f = zd(f, "borderBottomWidth"),
- f = new ud(parseFloat(p),parseFloat(g),parseFloat(f),parseFloat(l))),
- e.pixelWidth = c.width - f.left - k.left - k.right - f.right,
- e.pixelHeight = c.height - f.top - k.top - k.bottom - f.bottom) : (e.pixelWidth = c.width,
- e.pixelHeight = c.height)));
- this.h && (f = parseFloat(this.a.style.left),
- c = parseFloat(this.a.style.top),
- D(!isNaN(f) && !isNaN(c), "Could not parse position."),
- isFinite(f) && 0 == f % 1 && isFinite(c) && 0 == c % 1 || Cd(this.a, Math.round(f), Math.round(c)))
- }
- gf(this, a, b, d)
- }
- ;
- var gf = function(a, b, c, d) {
- var e = a.g;
- Ta(a.f, function(a) {
- ad(e, a)
- }
- , a);
- Zc(e, a.f[b]);
- e.style.top = e.style.left = e.style.right = e.style.bottom = "";
- a.b ? (c = Id(a.b, a.a),
- d = hf(a.b, b),
- ef(b) ? (a = jf(c.y + d.y, a.a.offsetHeight - 15),
- e.style.top = a + "px") : (a = jf(c.x + d.x, a.a.offsetWidth - 15),
- e.style.left = a + "px")) : e.style[0 == c ? ef(b) ? "top" : "left" : ef(b) ? "bottom" : "right"] = d + "px"
- }
- , jf = function(a, b) {
- return 15 > b ? 15 : Math.min(Math.max(a, 15), b)
- }
- , ff = function(a, b) {
- switch (a) {
- case 2:
- return 0 == b ? 1 : 3;
- case 1:
- return 0 == b ? 0 : 2;
- case 0:
- return 0 == b ? 6 :
- 7;
- default:
- return 0 == b ? 4 : 5
- }
- }
- , hf = function(a, b) {
- var c = 0
- , d = 0
- , e = Ld(a);
- switch (b) {
- case 2:
- c = e.width / 2;
- break;
- case 1:
- c = e.width / 2;
- d = e.height;
- break;
- case 0:
- d = e.height / 2;
- break;
- case 3:
- c = e.width,
- d = e.height / 2
- }
- return new G(c,d)
- }
- , ef = function(a) {
- return 0 == a || 3 == a
- }
- ;
- I && M(8);
- var kf = function(a) {
- if (null != a)
- switch (a.ka) {
- case 1:
- return 1;
- case -1:
- return -1;
- case 0:
- return 0
- }
- return null
- }
- , lf = function() {
- Je.call(this)
- }
- ;
- A(lf, Je);
- lf.prototype.T = Ge;
- var nf = function(a) {
- return null != a && a.T === Ge ? (D(a.constructor === lf),
- a) : a instanceof ob ? mf(pb(a), a.na()) : mf(va(String(String(a))), kf(a))
- }
- , of = function() {
- Je.call(this)
- }
- ;
- A(of, Je);
- of.prototype.T = He;
- of.prototype.ka = 1;
- var pf = function(a, b) {
- this.content = String(a);
- this.ka = null != b ? b : null
- }
- ;
- A(pf, Je);
- pf.prototype.T = Ie;
- var mf = function(a) {
- function b(a) {
- this.content = a
- }
- b.prototype = a.prototype;
- return function(a, d) {
- var e = new b(String(a));
- void 0 !== d && (e.ka = d);
- return e
- }
- }
- (lf);
- (function(a) {
- function b(a) {
- this.content = a
- }
- b.prototype = a.prototype;
- return function(a, d) {
- var e = String(a);
- if (!e)
- return "";
- e = new b(e);
- void 0 !== d && (e.ka = d);
- return e
- }
- }
- )(lf);
- var uf = function(a) {
- return null != a && a.T === Ge ? (D(a.constructor === lf),
- a = String(a.Z()).replace(qf, "").replace(rf, "<"),
- String(a).replace(sf, tf)) : va(String(a))
- }
- , vf = {
- "\x00": "�",
- "\t": "	",
- "\n": " ",
- "\x0B": "",
- "\f": "",
- "\r": " ",
- " ": " ",
- '"': """,
- "&": "&",
- "'": "'",
- "-": "-",
- "/": "/",
- "<": "<",
- "=": "=",
- ">": ">",
- "`": "`",
- "\u0085": "…",
- "\u00a0": " ",
- "\u2028": "
",
- "\u2029": "
"
- }
- , tf = function(a) {
- return vf[a]
- }
- , sf = /[\x00\x22\x27\x3c\x3e]/g
- , wf = /^(?!style|on|action|archive|background|cite|classid|codebase|data|dsync|href|longdesc|src|usemap)(?:[a-z0-9_$:-]*)$/i
- ,
- qf = /<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g
- , rf = /</g;
- var yf = function(a) {
- var b = '<div class="jfk-bubble" role="alertdialog"' + (a.uid ? ' aria-describedby="' + uf(a.uid) + '"' : "") + '><div class="jfk-bubble-content-id"' + (a.uid ? ' id="' + uf(a.uid) + '"' : "") + "></div>";
- a.Rb && (a = b,
- b = "Close".replace(sf, tf),
- b = a + ('<div class="jfk-bubble-closebtn-id jfk-bubble-closebtn" aria-label="' + b + '" role="button" tabindex=0></div>'));
- return mf(b + '<div class="jfk-bubble-arrow-id jfk-bubble-arrow"><div class="jfk-bubble-arrowimplbefore"></div><div class="jfk-bubble-arrowimplafter"></div></div></div>')
- }
- ;
- yf.a = "jfk.templates.bubble.main";
- var zf = function(a) {
- S.call(this, a);
- this.s = new df("jfk-bubble",!0);
- this.c = new bf;
- this.L = []
- }
- ;
- A(zf, S);
- zf.prototype.N = !1;
- var Af = function(a, b) {
- var c = a.Ta();
- if (b && c)
- if (v(b)) {
- var d;
- d = qb(b, null );
- c.innerHTML = pb(d)
- } else if (b instanceof lf) {
- if (b.T === Ie)
- d = rb(b.toString());
- else {
- if (b.T !== Ge)
- throw Error("Sanitized content was not of kind TEXT or HTML.");
- var e = new cb;
- e.a = "Soy SanitizedContent of kind HTML produces SafeHtml-contract-compliant value.";
- d = b.toString();
- var f = b.ka;
- Ca(db(e), "must provide justification");
- e = db(e);
- D(!/^[\s\xa0]*$/.test(e), "must provide non-empty justification");
- d = qb(d, f || null )
- }
- c.innerHTML = pb(d)
- } else
- b instanceof
- ob ? c.innerHTML = pb(b) : (c.innerHTML = pb(wb),
- c.appendChild(b))
- }
- ;
- h = zf.prototype;
- h.Ta = function() {
- return this.a ? Wb("jfk-bubble-content-id", this.a || this.f.a) : null
- }
- ;
- h.Sa = function() {
- this.a = Ne(yf, {
- Rb: !0,
- uid: "bubble-" + (this[fa] || (this[fa] = ++ga))
- }, this.f);
- Af(this, this.S);
- Nd(this.j(), !1);
- var a = this.c
- , b = this.j();
- Ye(a);
- a.D = b;
- if (!Fb) {
- var a = this.c
- , b = Fe(this.j(), "ease-out", 0, 1)
- , c = Fe(this.j(), "ease-in", 1, 0);
- a.f = b;
- a.c = c
- }
- $c(this.j(), this.L)
- }
- ;
- h.U = function() {
- zf.l.U.call(this);
- Te(this).listen(this.c, ["beforeshow", "show", "beforehide", "hide"], this.Pb);
- var a = Te(this)
- , b = this.a ? Wb("jfk-bubble-closebtn-id", this.a || this.f.a) : null ;
- pd.listen(b, z(this.zb, !1), void 0, a.b || a, a);
- a = this.j();
- D(a, "getElement() returns null.");
- b = this.a ? Wb("jfk-bubble-arrow-id", this.a || this.f.a) : null ;
- D(b, "No arrow element is found!");
- var c = this.s;
- c.a = a;
- c.g = b;
- a = this.c;
- a.g = this.s || void 0;
- a.X && a.b()
- }
- ;
- h.zb = function(a) {
- var b = this.c;
- b.f && b.f.stop();
- b.c && b.c.stop();
- if (a) {
- if (!b.X && R(b, "beforeshow")) {
- if (!b.D)
- throw Error("Caller must call setElement before trying to show the popup");
- b.b();
- a = N(b.D);
- b.a.listen(a, "mousedown", b.Bb, !0);
- if (I) {
- var c;
- try {
- c = a.activeElement
- } catch (d) {}
- for (; c && "IFRAME" == c.nodeName; ) {
- try {
- var e = c.contentDocument || c.contentWindow.document
- } catch (f) {
- break
- }
- a = e;
- c = a.activeElement
- }
- b.a.listen(a, "mousedown", b.Bb, !0);
- b.a.listen(a, "deactivate", b.Ab)
- } else
- b.a.listen(a, "blur", b.Ab);
- "toggle_display" ==
- b.ra ? (b.D.style.visibility = "visible",
- Nd(b.D, !0)) : "move_offscreen" == b.ra && b.b();
- b.X = !0;
- b.ab = ja();
- b.f ? (Qc(b.f, "end", b.Cb, !1, b),
- Ee(b.f)) : b.Cb()
- }
- } else
- $e(b)
- }
- ;
- h.o = function() {
- this.c.O();
- delete this.c;
- zf.l.o.call(this)
- }
- ;
- h.wb = function() {
- Hd(this.j());
- return !1
- }
- ;
- h.Pb = function(a) {
- if ("show" == a.type || "hide" == a.type) {
- var b = Te(this)
- , c = this.f
- , c = I ? $b(c.a) : c.a;
- "show" == a.type ? b.listen(c, "scroll", this.wb) : id(b, c, "scroll", this.wb)
- }
- b = R(this, a.type);
- this.N && "hide" == a.type && this.O();
- return b
- }
- ;
- var Bf = "StopIteration" in m ? m.StopIteration : {
- message: "StopIteration",
- stack: ""
- }
- , Cf = function() {}
- ;
- Cf.prototype.next = function() {
- throw Bf;
- }
- ;
- Cf.prototype.Kb = function() {
- return this
- }
- ;
- var Df = function(a, b) {
- this.b = {};
- this.a = [];
- this.f = this.c = 0;
- var c = arguments.length;
- if (1 < c) {
- if (c % 2)
- throw Error("Uneven number of arguments");
- for (var d = 0; d < c; d += 2)
- this.set(arguments[d], arguments[d + 1])
- } else if (a) {
- a instanceof Df ? (c = a.$(),
- d = a.W()) : (c = Va(a),
- d = Ua(a));
- for (var e = 0; e < c.length; e++)
- this.set(c[e], d[e])
- }
- }
- ;
- Df.prototype.W = function() {
- Ef(this);
- for (var a = [], b = 0; b < this.a.length; b++)
- a.push(this.b[this.a[b]]);
- return a
- }
- ;
- Df.prototype.$ = function() {
- Ef(this);
- return this.a.concat()
- }
- ;
- Df.prototype.remove = function(a) {
- return Ff(this.b, a) ? (delete this.b[a],
- this.c--,
- this.f++,
- this.a.length > 2 * this.c && Ef(this),
- !0) : !1
- }
- ;
- var Ef = function(a) {
- if (a.c != a.a.length) {
- for (var b = 0, c = 0; b < a.a.length; ) {
- var d = a.a[b];
- Ff(a.b, d) && (a.a[c++] = d);
- b++
- }
- a.a.length = c
- }
- if (a.c != a.a.length) {
- for (var e = {}, c = b = 0; b < a.a.length; )
- d = a.a[b],
- Ff(e, d) || (a.a[c++] = d,
- e[d] = 1),
- b++;
- a.a.length = c
- }
- }
- ;
- h = Df.prototype;
- h.get = function(a, b) {
- return Ff(this.b, a) ? this.b[a] : b
- }
- ;
- h.set = function(a, b) {
- Ff(this.b, a) || (this.c++,
- this.a.push(a),
- this.f++);
- this.b[a] = b
- }
- ;
- h.forEach = function(a, b) {
- for (var c = this.$(), d = 0; d < c.length; d++) {
- var e = c[d]
- , f = this.get(e);
- a.call(b, f, e, this)
- }
- }
- ;
- h.clone = function() {
- return new Df(this)
- }
- ;
- h.Kb = function(a) {
- Ef(this);
- var b = 0
- , c = this.f
- , d = this
- , e = new Cf;
- e.next = function() {
- if (c != d.f)
- throw Error("The map has changed since the iterator was created");
- if (b >= d.a.length)
- throw Bf;
- var e = d.a[b++];
- return a ? e : d.b[e]
- }
- ;
- return e
- }
- ;
- var Ff = function(a, b) {
- return Object.prototype.hasOwnProperty.call(a, b)
- }
- ;
- var Gf = function(a) {
- if ("function" == typeof a.W)
- return a.W();
- if (v(a))
- return a.split("");
- if (da(a)) {
- for (var b = [], c = a.length, d = 0; d < c; d++)
- b.push(a[d]);
- return b
- }
- return Ua(a)
- }
- , Hf = function(a, b, c) {
- if ("function" == typeof a.forEach)
- a.forEach(b, c);
- else if (da(a) || v(a))
- F(a, b, c);
- else {
- var d;
- if ("function" == typeof a.$)
- d = a.$();
- else if ("function" != typeof a.W)
- if (da(a) || v(a)) {
- d = [];
- for (var e = a.length, f = 0; f < e; f++)
- d.push(f)
- } else
- d = Va(a);
- else
- d = void 0;
- for (var e = Gf(a), f = e.length, g = 0; g < f; g++)
- b.call(c, e[g], d && d[g], a)
- }
- }
- ;
- var If = /^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/
- , Kf = function(a) {
- if (Jf) {
- Jf = !1;
- var b = m.location;
- if (b) {
- var c = b.href;
- if (c && (c = (c = Kf(c)[3] || null ) ? decodeURI(c) : c) && c != b.hostname)
- throw Jf = !0,
- Error();
- }
- }
- return a.match(If)
- }
- , Jf = K
- , Lf = function(a, b) {
- for (var c = a.split("&"), d = 0; d < c.length; d++) {
- var e = c[d].indexOf("=")
- , f = null
- , g = null ;
- 0 <= e ? (f = c[d].substring(0, e),
- g = c[d].substring(e + 1)) : f = c[d];
- b(f, g ? decodeURIComponent(g.replace(/\+/g, " ")) : "")
- }
- }
- ;
- var Mf = function(a, b) {
- this.f = this.m = this.c = "";
- this.i = null ;
- this.g = this.h = "";
- this.a = !1;
- var c;
- a instanceof Mf ? (this.a = q(b) ? b : a.a,
- Nf(this, a.c),
- this.m = a.m,
- this.f = a.f,
- Of(this, a.i),
- this.h = a.h,
- Pf(this, a.b.clone()),
- this.g = a.g) : a && (c = Kf(String(a))) ? (this.a = !!b,
- Nf(this, c[1] || "", !0),
- this.m = Qf(c[2] || ""),
- this.f = Qf(c[3] || "", !0),
- Of(this, c[4]),
- this.h = Qf(c[5] || "", !0),
- Pf(this, c[6] || "", !0),
- this.g = Qf(c[7] || "")) : (this.a = !!b,
- this.b = new T(null ,0,this.a))
- }
- ;
- Mf.prototype.toString = function() {
- var a = []
- , b = this.c;
- b && a.push(Rf(b, Sf, !0), ":");
- if (b = this.f) {
- a.push("//");
- var c = this.m;
- c && a.push(Rf(c, Sf, !0), "@");
- a.push(encodeURIComponent(String(b)).replace(/%25([0-9a-fA-F]{2})/g, "%$1"));
- b = this.i;
- null != b && a.push(":", String(b))
- }
- if (b = this.h)
- this.f && "/" != b.charAt(0) && a.push("/"),
- a.push(Rf(b, "/" == b.charAt(0) ? Tf : Uf, !0));
- (b = this.b.toString()) && a.push("?", b);
- (b = this.g) && a.push("#", Rf(b, Vf));
- return a.join("")
- }
- ;
- Mf.prototype.clone = function() {
- return new Mf(this)
- }
- ;
- var Nf = function(a, b, c) {
- a.c = c ? Qf(b, !0) : b;
- a.c && (a.c = a.c.replace(/:$/, ""))
- }
- , Of = function(a, b) {
- if (b) {
- b = Number(b);
- if (isNaN(b) || 0 > b)
- throw Error("Bad port number " + b);
- a.i = b
- } else
- a.i = null
- }
- , Pf = function(a, b, c) {
- b instanceof T ? (a.b = b,
- Wf(a.b, a.a)) : (c || (b = Rf(b, Xf)),
- a.b = new T(b,0,a.a))
- }
- , Qf = function(a, b) {
- return a ? b ? decodeURI(a) : decodeURIComponent(a) : ""
- }
- , Rf = function(a, b, c) {
- return v(a) ? (a = encodeURI(a).replace(b, Yf),
- c && (a = a.replace(/%25([0-9a-fA-F]{2})/g, "%$1")),
- a) : null
- }
- , Yf = function(a) {
- a = a.charCodeAt(0);
- return "%" + (a >>
- 4 & 15).toString(16) + (a & 15).toString(16)
- }
- , Sf = /[#\/\?@]/g
- , Uf = /[\#\?:]/g
- , Tf = /[\#\?]/g
- , Xf = /[\#\?@]/g
- , Vf = /#/g
- , T = function(a, b, c) {
- this.c = this.a = null ;
- this.b = a || null ;
- this.f = !!c
- }
- , Zf = function(a) {
- a.a || (a.a = new Df,
- a.c = 0,
- a.b && Lf(a.b, function(b, c) {
- a.add(decodeURIComponent(b.replace(/\+/g, " ")), c)
- }
- ))
- }
- ;
- T.prototype.add = function(a, b) {
- Zf(this);
- this.b = null ;
- a = $f(this, a);
- var c = this.a.get(a);
- c || this.a.set(a, c = []);
- c.push(b);
- this.c++;
- return this
- }
- ;
- T.prototype.remove = function(a) {
- Zf(this);
- a = $f(this, a);
- return Ff(this.a.b, a) ? (this.b = null ,
- this.c -= this.a.get(a).length,
- this.a.remove(a)) : !1
- }
- ;
- var ag = function(a, b) {
- Zf(a);
- b = $f(a, b);
- return Ff(a.a.b, b)
- }
- ;
- T.prototype.$ = function() {
- Zf(this);
- for (var a = this.a.W(), b = this.a.$(), c = [], d = 0; d < b.length; d++)
- for (var e = a[d], f = 0; f < e.length; f++)
- c.push(b[d]);
- return c
- }
- ;
- T.prototype.W = function(a) {
- Zf(this);
- var b = [];
- if (v(a))
- ag(this, a) && (b = Ra(b, this.a.get($f(this, a))));
- else {
- a = this.a.W();
- for (var c = 0; c < a.length; c++)
- b = Ra(b, a[c])
- }
- return b
- }
- ;
- T.prototype.set = function(a, b) {
- Zf(this);
- this.b = null ;
- a = $f(this, a);
- ag(this, a) && (this.c -= this.a.get(a).length);
- this.a.set(a, [b]);
- this.c++;
- return this
- }
- ;
- T.prototype.get = function(a, b) {
- var c = a ? this.W(a) : [];
- return 0 < c.length ? String(c[0]) : b
- }
- ;
- var bg = function(a, b, c) {
- a.remove(b);
- 0 < c.length && (a.b = null ,
- a.a.set($f(a, b), Sa(c)),
- a.c += c.length)
- }
- ;
- T.prototype.toString = function() {
- if (this.b)
- return this.b;
- if (!this.a)
- return "";
- for (var a = [], b = this.a.$(), c = 0; c < b.length; c++)
- for (var d = b[c], e = encodeURIComponent(String(d)), d = this.W(d), f = 0; f < d.length; f++) {
- var g = e;
- "" !== d[f] && (g += "=" + encodeURIComponent(String(d[f])));
- a.push(g)
- }
- return this.b = a.join("&")
- }
- ;
- T.prototype.clone = function() {
- var a = new T;
- a.b = this.b;
- this.a && (a.a = this.a.clone(),
- a.c = this.c);
- return a
- }
- ;
- var $f = function(a, b) {
- var c = String(b);
- a.f && (c = c.toLowerCase());
- return c
- }
- , Wf = function(a, b) {
- b && !a.f && (Zf(a),
- a.b = null ,
- a.a.forEach(function(a, b) {
- var e = b.toLowerCase();
- b != e && (this.remove(b),
- bg(this, e, a))
- }
- , a));
- a.f = b
- }
- ;
- T.prototype.g = function(a) {
- for (var b = 0; b < arguments.length; b++)
- Hf(arguments[b], function(a, b) {
- this.add(b, a)
- }
- , this)
- }
- ;
- /*
- Portions of this code are from MochiKit, received by
- The Closure Authors under the MIT license. All other code is Copyright
- 2005-2009 The Closure Authors. All Rights Reserved.
- */
- var cg = function(a, b) {
- this.g = [];
- this.K = a;
- this.w = b || null ;
- this.f = this.a = !1;
- this.c = void 0;
- this.v = this.B = this.i = !1;
- this.h = 0;
- this.b = null ;
- this.m = 0
- }
- ;
- cg.prototype.cancel = function(a) {
- if (this.a)
- this.c instanceof cg && this.c.cancel();
- else {
- if (this.b) {
- var b = this.b;
- delete this.b;
- a ? b.cancel(a) : (b.m--,
- 0 >= b.m && b.cancel())
- }
- this.K ? this.K.call(this.w, this) : this.v = !0;
- this.a || dg(this, new eg)
- }
- }
- ;
- cg.prototype.s = function(a, b) {
- this.i = !1;
- fg(this, a, b)
- }
- ;
- var fg = function(a, b, c) {
- a.a = !0;
- a.c = c;
- a.f = !b;
- gg(a)
- }
- , ig = function(a) {
- if (a.a) {
- if (!a.v)
- throw new hg;
- a.v = !1
- }
- }
- , dg = function(a, b) {
- ig(a);
- jg(b);
- fg(a, !1, b)
- }
- , jg = function(a) {
- D(!(a instanceof cg), "An execution sequence may not be initiated with a blocking Deferred.")
- }
- , kg = function(a, b, c, d) {
- D(!a.B, "Blocking Deferreds can not be re-used");
- a.g.push([b, c, d]);
- a.a && gg(a)
- }
- ;
- cg.prototype.then = function(a, b, c) {
- var d, e, f = new oe(function(a, b) {
- d = a;
- e = b
- }
- );
- kg(this, d, function(a) {
- a instanceof eg ? f.cancel() : e(a)
- }
- );
- return f.then(a, b, c)
- }
- ;
- je(cg);
- var lg = function(a) {
- return La(a.g, function(a) {
- return x(a[1])
- }
- )
- }
- , gg = function(a) {
- if (a.h && a.a && lg(a)) {
- var b = a.h
- , c = mg[b];
- c && (m.clearTimeout(c.G),
- delete mg[b]);
- a.h = 0
- }
- a.b && (a.b.m--,
- delete a.b);
- for (var b = a.c, d = c = !1; a.g.length && !a.i; ) {
- var e = a.g.shift()
- , f = e[0]
- , g = e[1]
- , e = e[2];
- if (f = a.f ? g : f)
- try {
- var k = f.call(e || a.w, b);
- q(k) && (a.f = a.f && (k == b || k instanceof Error),
- a.c = b = k);
- if (ke(b) || "function" === typeof m.Promise && b instanceof m.Promise)
- d = !0,
- a.i = !0
- } catch (l) {
- b = l,
- a.f = !0,
- lg(a) || (c = !0)
- }
- }
- a.c = b;
- d && (k = y(a.s, a, !0),
- d = y(a.s, a,
- !1),
- b instanceof cg ? (kg(b, k, d),
- b.B = !0) : b.then(k, d));
- c && (b = new ng(b),
- mg[b.G] = b,
- a.h = b.G)
- }
- , hg = function() {
- B.call(this)
- }
- ;
- A(hg, B);
- hg.prototype.message = "Deferred has already fired";
- hg.prototype.name = "AlreadyCalledError";
- var eg = function() {
- B.call(this)
- }
- ;
- A(eg, B);
- eg.prototype.message = "Deferred was canceled";
- eg.prototype.name = "CanceledError";
- var ng = function(a) {
- this.G = m.setTimeout(y(this.b, this), 0);
- this.a = a
- }
- ;
- ng.prototype.b = function() {
- D(mg[this.G], "Cannot throw an error that is not scheduled.");
- delete mg[this.G];
- throw this.a;
- }
- ;
- var mg = {};
- var sg = function(a, b) {
- var c = b || {}
- , d = c.document || document
- , e = document.createElement("SCRIPT")
- , f = {
- Fb: e,
- ha: void 0
- }
- , g = new cg(og,f)
- , k = null
- , l = null != c.timeout ? c.timeout : 5E3;
- 0 < l && (k = window.setTimeout(function() {
- pg(e, !0);
- dg(g, new qg(1,"Timeout reached for loading script " + a))
- }
- , l),
- f.ha = k);
- e.onload = e.onreadystatechange = function() {
- e.readyState && "loaded" != e.readyState && "complete" != e.readyState || (pg(e, c.Mb || !1, k),
- ig(g),
- jg(null ),
- fg(g, !0, null ))
- }
- ;
- e.onerror = function() {
- pg(e, !0, k);
- dg(g, new qg(0,"Error while loading script " +
- a))
- }
- ;
- Yb(e, {
- type: "text/javascript",
- charset: "UTF-8",
- src: a
- });
- rg(d).appendChild(e);
- return g
- }
- , rg = function(a) {
- var b = a.getElementsByTagName("HEAD");
- return b && 0 != b.length ? b[0] : a.documentElement
- }
- , og = function() {
- if (this && this.Fb) {
- var a = this.Fb;
- a && "SCRIPT" == a.tagName && pg(a, !0, this.ha)
- }
- }
- , pg = function(a, b, c) {
- null != c && m.clearTimeout(c);
- a.onload = r;
- a.onerror = r;
- a.onreadystatechange = r;
- b && window.setTimeout(function() {
- dc(a)
- }
- , 0)
- }
- , qg = function(a, b) {
- var c = "Jsloader error (code #" + a + ")";
- b && (c += ": " + b);
- B.call(this, c);
- this.code =
- a
- }
- ;
- A(qg, B);
- var tg = function(a, b) {
- this.b = new Mf(a);
- this.a = b ? b : "callback";
- this.ha = 5E3
- }
- , ug = 0;
- tg.prototype.send = function(a, b, c, d) {
- a = a || null ;
- d = d || "_" + (ug++).toString(36) + ja().toString(36);
- m._callbacks_ || (m._callbacks_ = {});
- var e = this.b.clone();
- if (a)
- for (var f in a)
- if (!a.hasOwnProperty || a.hasOwnProperty(f)) {
- var g = e
- , k = f
- , l = a[f];
- u(l) || (l = [String(l)]);
- bg(g.b, k, l)
- }
- b && (m._callbacks_[d] = vg(d, b),
- b = this.a,
- f = "_callbacks_." + d,
- u(f) || (f = [String(f)]),
- bg(e.b, b, f));
- b = sg(e.toString(), {
- timeout: this.ha,
- Mb: !0
- });
- kg(b, null , wg(d, a, c), void 0);
- return {
- G: d,
- jb: b
- }
- }
- ;
- tg.prototype.cancel = function(a) {
- a && (a.jb && a.jb.cancel(),
- a.G && xg(a.G, !1))
- }
- ;
- var wg = function(a, b, c) {
- return function() {
- xg(a, !1);
- c && c(b)
- }
- }
- , vg = function(a, b) {
- return function(c) {
- xg(a, !0);
- b.apply(void 0, arguments)
- }
- }
- , xg = function(a, b) {
- m._callbacks_[a] && (b ? delete m._callbacks_[a] : m._callbacks_[a] = r)
- }
- ;
- var yg = function(a) {
- a = String(a).toLowerCase().replace("_", "-");
- if ("zh-cn" == a)
- return "zh-CN";
- if ("zh-tw" == a)
- return "zh-TW";
- var b = a.indexOf("-");
- a = 0 <= b ? a.substring(0, b) : a;
- return "zh" == a ? "zh-CN" : a
- }
- , zg = function(a) {
- a = chrome.i18n.getMessage(a);
- return chrome.i18n.getMessage(a)
- }
- ;
- var Bg = function(a) {
- this.f = [];
- chrome.i18n.getAcceptLanguages(y(this.v, this));
- this.c = "";
- this.a = "1";
- this.g = !0;
- this.b = [];
- this.h = [];
- this.m = !!a;
- chrome.storage.local.get(null , y(this.s, this));
- Ag(this)
- }
- , Cg = function(a) {
- if ("" != a.c)
- a = a.c;
- else
- a: {
- for (var b = 0; b < a.f.length; b++) {
- var c = yg(a.f[b]);
- if (a.b[c]) {
- a = c;
- break a
- }
- }
- a = "en"
- }
- return a
- }
- ;
- Bg.prototype.s = function(a) {
- "gtxTargetLang" in a && (this.c = a.gtxTargetLang);
- "gtxShowBubble" in a && (this.a = a.gtxShowBubble);
- "gtxDetectLanguage" in a && (this.g = a.gtxDetectLanguage);
- "gtxSourceLangList" in a && (this.h = Dg(this, a.gtxSourceLangList));
- "gtxTargetLangList" in a && (this.b = Dg(this, a.gtxTargetLangList));
- this.loaded = !0;
- if (this.m) {
- var b = (new Date).getTime()
- , c = "gtxTimeStamp" in a ? a.gtxTimeStamp : 0
- , d = chrome.i18n.getUILanguage ? chrome.i18n.getUILanguage() : "en";
- a = "gtxDisplayLanguage" in a ? a.gtxDisplayLanguage : "";
- (864E5 < Math.abs(b - c) || d != a) && (new tg("https://translate.googleapis.com/translate_a/l","cb")).send({
- client: "gtx",
- hl: d
- }, y(this.B, this, d))
- }
- }
- ;
- var Dg = function(a, b) {
- var c = [], d;
- for (d in b)
- c.push({
- code: d,
- name: b[d]
- });
- c.sort(a.i);
- d = {};
- for (var e = 0; e < c.length; e++)
- d[c[e].code] = c[e].name;
- return d
- }
- ;
- Bg.prototype.i = function(a, b) {
- return a.name.localeCompare(b.name)
- }
- ;
- var Ag = function(a) {
- chrome.storage.onChanged.addListener(function(b) {
- b.gtxTargetLang && (a.c = b.gtxTargetLang.newValue);
- b.gtxShowBubble && (a.a = b.gtxShowBubble.newValue)
- }
- )
- }
- ;
- Bg.prototype.v = function(a) {
- this.f = a
- }
- ;
- Bg.prototype.B = function(a, b) {
- var c = (new Date).getTime()
- , d = {};
- d.gtxSourceLangList = b.sl;
- d.gtxTargetLangList = b.tl;
- d.gtxDisplayLanguage = a;
- d.gtxTimeStamp = c;
- chrome.storage.local.set(d);
- this.h = b.sl;
- this.b = b.tl
- }
- ;
- var Fg = function(a) {
- var b = Eg;
- if ("sl" == a)
- return b.h;
- if ("tl" == a)
- return b.b;
- throw Error("Invalid input for getLangList()");
- }
- ;
- var Gg = [0, 100, 80, 50]
- , Hg = {
- ar: 2,
- zh: 3,
- "zh-cn": 3,
- "zh-tw": 3,
- en: 1,
- fr: 1,
- de: 1,
- it: 1,
- ja: 3,
- ko: 3,
- la: 1,
- pt: 1,
- es: 1,
- af: 1,
- sq: 1,
- hy: 1,
- bs: 1,
- ca: 1,
- hr: 1,
- cs: 1,
- da: 1,
- nl: 1,
- eo: 1,
- fi: 1,
- el: 2,
- ht: 1,
- hi: 2,
- hu: 1,
- is: 1,
- id: 1,
- ku: 1,
- lv: 1,
- mk: 2,
- no: 1,
- pl: 1,
- ro: 1,
- ru: 2,
- sr: 2,
- sk: 1,
- sw: 1,
- sv: 1,
- ta: 2,
- th: 1,
- tr: 1,
- vi: 1,
- cy: 1
- };
- var Ig = function() {
- this.b = [];
- this.a = {};
- this.c = !1;
- this.i = 1;
- this.f = {};
- P(window, "beforeunload", this.h, !1, this)
- }
- ;
- ba(Ig);
- var Jg = function(a, b, c) {
- if (null == b)
- return "1";
- switch (ca(b)) {
- case "string":
- return a = b,
- !(64 < a.length) || null != c && c || (a = a.substr(0, 64)),
- encodeURIComponent(String(a));
- case "number":
- return "" + b;
- case "boolean":
- return b ? "1" : "0";
- case "array":
- var d = [], e;
- for (e in b)
- d.push(Jg(a, b[e], c));
- return d.join(",");
- case "object":
- d = [];
- for (e in b)
- d.push([encodeURIComponent(String(e)), Jg(a, b[e], c || "smtalt" == e)].join("="));
- return d.join(",");
- default:
- return ""
- }
- }
- ;
- Ig.prototype.log = function(a, b, c) {
- this.b.push([a, b, c]);
- this.c || (this.c = !0,
- Ce(this.g, 0, this))
- }
- ;
- Ig.prototype.g = function() {
- for (var a = 0; a < this.b.length; a++) {
- var b = this.b[a];
- Kg(this, b[0], b[1], b[2])
- }
- this.b = [];
- this.c = !1
- }
- ;
- var Kg = function(a, b, c, d) {
- Lg(a, (d || "") + "/gen204?" + [encodeURIComponent(String(b)), Jg(a, c, "smtalt" == b)].join("="))
- }
- , Lg = function(a, b) {
- var c = new Image
- , d = a.i++;
- a.f[d] = c;
- c.onload = c.onerror = function() {
- delete Ig.V().f[d]
- }
- ;
- c.src = b;
- c = null
- }
- ;
- Ig.prototype.h = function() {
- this.g();
- for (var a in this.a)
- if (0 != this.a[a]) {
- var b = a;
- Kg(this, b, this.a[b][1], void 0);
- b in this.a && (m.clearTimeout(this.a[b][0]),
- delete this.a[b])
- }
- }
- ;
- var Mg = function(a) {
- return eval("(" + a + ")")
- }
- ;
- var Ng = function(a, b, c, d, e) {
- this.reset(a, b, c, d, e)
- }
- ;
- Ng.prototype.a = null ;
- var Og = 0;
- Ng.prototype.reset = function(a, b, c, d, e) {
- "number" == typeof e || Og++;
- d || ja();
- this.b = b;
- delete this.a
- }
- ;
- Ng.prototype.getMessage = function() {
- return this.b
- }
- ;
- var Pg = function(a) {
- this.f = a;
- this.b = this.c = this.a = null
- }
- , Qg = function(a, b) {
- this.name = a;
- this.value = b
- }
- ;
- Qg.prototype.toString = function() {
- return this.name
- }
- ;
- var Rg = new Qg("SEVERE",1E3)
- , Sg = new Qg("CONFIG",700)
- , Tg = new Qg("FINE",500);
- Pg.prototype.getChildren = function() {
- this.b || (this.b = {});
- return this.b
- }
- ;
- var Ug = function(a) {
- if (a.c)
- return a.c;
- if (a.a)
- return Ug(a.a);
- Ba("Root logger has no level set.");
- return null
- }
- ;
- Pg.prototype.log = function(a, b, c) {
- if (a.value >= Ug(this).value)
- for (x(b) && (b = b()),
- a = new Ng(a,String(b),this.f),
- c && (a.a = c),
- c = "log:" + a.getMessage(),
- m.console && (m.console.timeStamp ? m.console.timeStamp(c) : m.console.markTimeline && m.console.markTimeline(c)),
- m.msWriteProfilerMark && m.msWriteProfilerMark(c),
- c = this; c; )
- c = c.a
- }
- ;
- var Vg = {}
- , Wg = null
- , Xg = function(a) {
- Wg || (Wg = new Pg(""),
- Vg[""] = Wg,
- Wg.c = Sg);
- var b;
- if (!(b = Vg[a])) {
- b = new Pg(a);
- var c = a.lastIndexOf(".")
- , d = a.substr(c + 1)
- , c = Xg(a.substr(0, c));
- c.getChildren()[d] = b;
- b.a = c;
- Vg[a] = b
- }
- return b
- }
- ;
- var U = function(a, b) {
- a && a.log(Tg, b, void 0)
- }
- ;
- var Yg = function() {}
- ;
- Yg.prototype.a = null ;
- var $g = function(a) {
- var b;
- (b = a.a) || (b = {},
- Zg(a) && (b[0] = !0,
- b[1] = !0),
- b = a.a = b);
- return b
- }
- ;
- var ah, bh = function() {}
- ;
- A(bh, Yg);
- var ch = function(a) {
- return (a = Zg(a)) ? new ActiveXObject(a) : new XMLHttpRequest
- }
- , Zg = function(a) {
- if (!a.b && "undefined" == typeof XMLHttpRequest && "undefined" != typeof ActiveXObject) {
- for (var b = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], c = 0; c < b.length; c++) {
- var d = b[c];
- try {
- return new ActiveXObject(d),
- a.b = d
- } catch (e) {}
- }
- throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");
- }
- return a.b
- }
- ;
- ah = new bh;
- var dh = function(a) {
- Q.call(this);
- this.Ba = new Df;
- this.K = a || null ;
- this.b = !1;
- this.w = this.a = null ;
- this.h = this.R = this.f = "";
- this.c = this.L = this.m = this.N = !1;
- this.g = 0;
- this.i = null ;
- this.ia = "";
- this.s = this.Da = !1
- }
- ;
- A(dh, Q);
- var eh = dh.prototype
- , fh = Xg("goog.net.XhrIo");
- eh.J = fh;
- var gh = /^https?$/i
- , hh = ["POST", "PUT"]
- , ih = []
- , jh = function(a, b, c, d) {
- var e = new dh;
- ih.push(e);
- b && e.listen("complete", b);
- e.F.add("ready", e.Aa, !0, void 0, void 0);
- e.g = Math.max(0, 1E4);
- e.send(a, c, d, void 0)
- }
- ;
- dh.prototype.Aa = function() {
- this.O();
- Qa(ih, this)
- }
- ;
- dh.prototype.send = function(a, b, c, d) {
- if (this.a)
- throw Error("[goog.net.XhrIo] Object is active with another request=" + this.f + "; newUri=" + a);
- b = b ? b.toUpperCase() : "GET";
- this.f = a;
- this.h = "";
- this.R = b;
- this.N = !1;
- this.b = !0;
- this.a = this.K ? ch(this.K) : ch(ah);
- this.w = this.K ? $g(this.K) : $g(ah);
- this.a.onreadystatechange = y(this.S, this);
- try {
- U(this.J, kh(this, "Opening Xhr")),
- this.L = !0,
- this.a.open(b, String(a), !0),
- this.L = !1
- } catch (e) {
- U(this.J, kh(this, "Error opening Xhr: " + e.message));
- lh(this, e);
- return
- }
- a = c || "";
- var f = this.Ba.clone();
- d && Hf(d, function(a, b) {
- f.set(b, a)
- }
- );
- d = Oa(f.$());
- c = m.FormData && a instanceof m.FormData;
- !Pa(hh, b) || d || c || f.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
- f.forEach(function(a, b) {
- this.a.setRequestHeader(b, a)
- }
- , this);
- this.ia && (this.a.responseType = this.ia);
- "withCredentials" in this.a && (this.a.withCredentials = this.Da);
- try {
- mh(this),
- 0 < this.g && (this.s = nh(this.a),
- U(this.J, kh(this, "Will abort after " + this.g + "ms if incomplete, xhr2 " + this.s)),
- this.s ? (this.a.timeout = this.g,
- this.a.ontimeout =
- y(this.ha, this)) : this.i = Ce(this.ha, this.g, this)),
- U(this.J, kh(this, "Sending request")),
- this.m = !0,
- this.a.send(a),
- this.m = !1
- } catch (g) {
- U(this.J, kh(this, "Send error: " + g.message)),
- lh(this, g)
- }
- }
- ;
- var nh = function(a) {
- return I && M(9) && w(a.timeout) && q(a.ontimeout)
- }
- , Na = function(a) {
- return "content-type" == a.toLowerCase()
- }
- ;
- dh.prototype.ha = function() {
- "undefined" != typeof aa && this.a && (this.h = "Timed out after " + this.g + "ms, aborting",
- U(this.J, kh(this, this.h)),
- R(this, "timeout"),
- this.a && this.b && (U(this.J, kh(this, "Aborting")),
- this.b = !1,
- this.c = !0,
- this.a.abort(),
- this.c = !1,
- R(this, "complete"),
- R(this, "abort"),
- oh(this)))
- }
- ;
- var lh = function(a, b) {
- a.b = !1;
- a.a && (a.c = !0,
- a.a.abort(),
- a.c = !1);
- a.h = b;
- ph(a);
- oh(a)
- }
- , ph = function(a) {
- a.N || (a.N = !0,
- R(a, "complete"),
- R(a, "error"))
- }
- ;
- dh.prototype.o = function() {
- this.a && (this.b && (this.b = !1,
- this.c = !0,
- this.a.abort(),
- this.c = !1),
- oh(this, !0));
- dh.l.o.call(this)
- }
- ;
- dh.prototype.S = function() {
- this.v || (this.L || this.m || this.c ? qh(this) : this.Ca())
- }
- ;
- dh.prototype.Ca = function() {
- qh(this)
- }
- ;
- var qh = function(a) {
- if (a.b && "undefined" != typeof aa)
- if (a.w[1] && 4 == rh(a) && 2 == sh(a))
- U(a.J, kh(a, "Local request error detected and ignored"));
- else if (a.m && 4 == rh(a))
- Ce(a.S, 0, a);
- else if (R(a, "readystatechange"),
- 4 == rh(a)) {
- U(a.J, kh(a, "Request complete"));
- a.b = !1;
- try {
- if (th(a))
- R(a, "complete"),
- R(a, "success");
- else {
- var b;
- try {
- b = 2 < rh(a) ? a.a.statusText : ""
- } catch (c) {
- U(a.J, "Can not get status: " + c.message),
- b = ""
- }
- a.h = b + " [" + sh(a) + "]";
- ph(a)
- }
- } finally {
- oh(a)
- }
- }
- }
- , oh = function(a, b) {
- if (a.a) {
- mh(a);
- var c = a.a
- , d = a.w[0] ? r : null ;
- a.a = null ;
- a.w = null ;
- b || R(a, "ready");
- try {
- c.onreadystatechange = d
- } catch (e) {
- (c = a.J) && c.log(Rg, "Problem encountered resetting onreadystatechange: " + e.message, void 0)
- }
- }
- }
- , mh = function(a) {
- a.a && a.s && (a.a.ontimeout = null );
- w(a.i) && (m.clearTimeout(a.i),
- a.i = null )
- }
- , th = function(a) {
- var b = sh(a), c;
- a: switch (b) {
- case 200:
- case 201:
- case 202:
- case 204:
- case 206:
- case 304:
- case 1223:
- c = !0;
- break a;
- default:
- c = !1
- }
- if (!c) {
- if (b = 0 === b)
- a = Kf(String(a.f))[1] || null ,
- !a && self.location && (a = self.location.protocol,
- a = a.substr(0, a.length - 1)),
- b = !gh.test(a ? a.toLowerCase() :
- "");
- c = b
- }
- return c
- }
- , rh = function(a) {
- return a.a ? a.a.readyState : 0
- }
- , sh = function(a) {
- try {
- return 2 < rh(a) ? a.a.status : -1
- } catch (b) {
- return -1
- }
- }
- , uh = function(a) {
- try {
- return a.a ? a.a.responseText : ""
- } catch (b) {
- return U(a.J, "Can not get responseText: " + b.message),
- ""
- }
- }
- , kh = function(a, b) {
- return b + " [" + a.R + " " + a.f + " " + sh(a) + "]"
- }
- ;
- var vh = function() {}
- ;
- var wh = function(a, b) {
- this.c = a;
- this.a = "";
- b && (this.a = b);
- this.b = 0
- }
- , xh = function() {
- var a = Math.floor((new Date).getTime() / 36E5) ^ 123456;
- return a + "|" + Math.floor((Math.sqrt(5) - 1) / 2 * (a ^ 654321) % 1 * 1048576)
- }
- , yh = function(a, b, c, d, e) {
- c = c.toString();
- c += "&tk=" + xh();
- d = d.toString();
- var f = "POST";
- b += "?" + c;
- 2E3 > c.length + d.length && (f = "GET",
- b += "&" + d,
- d = "");
- ++a.b;
- jh(b, function(b) {
- --a.b;
- e(b)
- }
- , f, d)
- }
- ;
- wh.prototype.f = function(a, b) {
- var c = b.target;
- if (!th(c) || "[" != uh(c)[0] && "{" != uh(c)[0]) {
- var d = Ig.V()
- , e = String(c.f)
- , c = uh(c);
- d.log("invalidResponse", {
- q: e.substring(0, 500),
- ql: e.length,
- r: c.substring(0, 500),
- rl: c.length
- });
- a(null )
- } else {
- d = uh(c);
- c = {
- "class": "trans.common.TranslationAPI",
- func: "handleSingleResult_",
- url: String(c.f)
- };
- try {
- e = Mg(d)
- } catch (f) {
- throw e = Ig.V(),
- c.js = d,
- c.error = f.message,
- e.log("jsonParseErr", c),
- f;
- }
- u(e) && (e = new vh);
- a(e)
- }
- }
- ;
- var Ah = function(a, b) {
- Q.call(this);
- a && zh(this, a, b)
- }
- ;
- A(Ah, Q);
- h = Ah.prototype;
- h.pa = null ;
- h.Ia = null ;
- h.$a = null ;
- h.Ja = null ;
- h.I = -1;
- h.ba = -1;
- h.Na = !1;
- var Bh = {
- 3: 13,
- 12: 144,
- 63232: 38,
- 63233: 40,
- 63234: 37,
- 63235: 39,
- 63236: 112,
- 63237: 113,
- 63238: 114,
- 63239: 115,
- 63240: 116,
- 63241: 117,
- 63242: 118,
- 63243: 119,
- 63244: 120,
- 63245: 121,
- 63246: 122,
- 63247: 123,
- 63248: 44,
- 63272: 46,
- 63273: 36,
- 63275: 35,
- 63276: 33,
- 63277: 34,
- 63289: 144,
- 63302: 45
- }
- , Ch = {
- Up: 38,
- Down: 40,
- Left: 37,
- Right: 39,
- Enter: 13,
- F1: 112,
- F2: 113,
- F3: 114,
- F4: 115,
- F5: 116,
- F6: 117,
- F7: 118,
- F8: 119,
- F9: 120,
- F10: 121,
- F11: 122,
- F12: 123,
- "U+007F": 46,
- Home: 36,
- End: 35,
- PageUp: 33,
- PageDown: 34,
- Insert: 45
- }
- , Dh = I || K && M("525")
- , Eh = Gb && J;
- Ah.prototype.a = function(a) {
- K && (17 == this.I && !a.ctrlKey || 18 == this.I && !a.altKey || Gb && 91 == this.I && !a.metaKey) && (this.ba = this.I = -1);
- -1 == this.I && (a.ctrlKey && 17 != a.keyCode ? this.I = 17 : a.altKey && 18 != a.keyCode ? this.I = 18 : a.metaKey && 91 != a.keyCode && (this.I = 91));
- Dh && !md(a.keyCode, this.I, a.shiftKey, a.ctrlKey, a.altKey) ? this.handleEvent(a) : (this.ba = kd(a.keyCode),
- Eh && (this.Na = a.altKey))
- }
- ;
- Ah.prototype.b = function(a) {
- this.ba = this.I = -1;
- this.Na = a.altKey
- }
- ;
- Ah.prototype.handleEvent = function(a) {
- var b = a.ma(), c, d, e = b.altKey;
- I && "keypress" == a.type ? (c = this.ba,
- d = 13 != c && 27 != c ? b.keyCode : 0) : K && "keypress" == a.type ? (c = this.ba,
- d = 0 <= b.charCode && 63232 > b.charCode && jd(c) ? b.charCode : 0) : Eb ? (c = this.ba,
- d = jd(c) ? b.keyCode : 0) : (c = b.keyCode || this.ba,
- d = b.charCode || 0,
- Eh && (e = this.Na),
- Gb && 63 == d && 224 == c && (c = 191));
- var f = c = kd(c)
- , g = b.keyIdentifier;
- c ? 63232 <= c && c in Bh ? f = Bh[c] : 25 == c && a.shiftKey && (f = 9) : g && g in Ch && (f = Ch[g]);
- a = f == this.I;
- this.I = f;
- b = new Fh(f,d,a,b);
- b.altKey = e;
- R(this, b)
- }
- ;
- Ah.prototype.j = function() {
- return this.pa
- }
- ;
- var zh = function(a, b, c) {
- a.Ja && Gh(a);
- a.pa = b;
- a.Ia = P(a.pa, "keypress", a, c);
- a.$a = P(a.pa, "keydown", a.a, c, a);
- a.Ja = P(a.pa, "keyup", a.b, c, a)
- }
- , Gh = function(a) {
- a.Ia && (Sc(a.Ia),
- Sc(a.$a),
- Sc(a.Ja),
- a.Ia = null ,
- a.$a = null ,
- a.Ja = null );
- a.pa = null ;
- a.I = -1;
- a.ba = -1
- }
- ;
- Ah.prototype.o = function() {
- Ah.l.o.call(this);
- Gh(this)
- }
- ;
- var Fh = function(a, b, c, d) {
- O.call(this, d);
- this.type = "key";
- this.keyCode = a;
- this.charCode = b;
- this.repeat = c
- }
- ;
- A(Fh, O);
- var V = function() {}
- , Hh;
- ba(V);
- var Ih = {
- button: "pressed",
- checkbox: "checked",
- menuitem: "selected",
- menuitemcheckbox: "checked",
- menuitemradio: "checked",
- radio: "checked",
- tab: "selected",
- treeitem: "selected"
- };
- V.prototype.Ua = function() {}
- ;
- V.prototype.va = function(a) {
- return a.f.b("DIV", Jh(this, a).join(" "), a.Z())
- }
- ;
- var Lh = function(a, b, c) {
- if (a = a.j ? a.j() : a) {
- var d = [b];
- I && !M("7") && (d = Kh(Xc(a), b),
- d.push(b));
- (c ? $c : bd)(a, d)
- }
- }
- ;
- V.prototype.pb = function() {
- return !0
- }
- ;
- V.prototype.aa = function(a, b) {
- b.id && Re(a, b.id);
- b && b.firstChild ? Mh(a, b.firstChild.nextSibling ? Sa(b.childNodes) : b.firstChild) : a.wa = null ;
- var c = 0
- , d = this.A()
- , e = this.A()
- , f = !1
- , g = !1
- , k = !1
- , l = Sa(Xc(b));
- F(l, function(a) {
- f || a != d ? g || a != e ? c |= Nh(this, a) : g = !0 : (f = !0,
- e == d && (g = !0));
- 1 == Nh(this, a) && (Fa(b),
- jc(b) && kc(b) && ic(b, !1))
- }
- , this);
- a.u = c;
- f || (l.push(d),
- e == d && (g = !0));
- g || l.push(e);
- var p = a.M;
- p && l.push.apply(l, p);
- if (I && !M("7")) {
- var n = Kh(l);
- 0 < n.length && (l.push.apply(l, n),
- k = !0)
- }
- if (!f || !g || p || k)
- b.className = l.join(" ");
- return b
- }
- ;
- V.prototype.xb = function(a) {
- null == a.ia && (a.ia = Od(a.H ? a.a : a.f.a.body));
- a.ia && this.rb(a.j(), !0);
- a.b() && this.Ka(a, a.fa)
- }
- ;
- var Oh = function(a, b) {
- var c = a.Ua();
- if (c) {
- D(b, "The element passed as a first parameter cannot be null.");
- var d = b.getAttribute("role") || null ;
- c != d && (c ? (D(Wa(ed, c), "No such ARIA role " + c),
- b.setAttribute("role", c)) : b.removeAttribute("role"))
- }
- }
- ;
- h = V.prototype;
- h.Va = function(a, b) {
- var c = !b
- , d = I || Eb ? a.getElementsByTagName("*") : null ;
- if (Pd) {
- if (c = c ? "none" : "",
- a.style[Pd] = c,
- d)
- for (var e = 0, f; f = d[e]; e++)
- f.style[Pd] = c
- } else if (I || Eb)
- if (c = c ? "on" : "",
- a.setAttribute("unselectable", c),
- d)
- for (e = 0; f = d[e]; e++)
- f.setAttribute("unselectable", c)
- }
- ;
- h.rb = function(a, b) {
- Lh(a, this.A() + "-rtl", b)
- }
- ;
- h.qb = function(a) {
- var b;
- return a.C & 32 && (b = a.j()) ? jc(b) && kc(b) : !1
- }
- ;
- h.Ka = function(a, b) {
- var c;
- if (a.C & 32 && (c = a.j())) {
- if (!b && a.u & 32) {
- try {
- c.blur()
- } catch (d) {}
- a.u & 32 && a.sb()
- }
- (jc(c) && kc(c)) != b && ic(c, b)
- }
- }
- ;
- h.Wa = function(a, b, c) {
- var d = a.j();
- if (d) {
- var e = Ph(this, b);
- e && Lh(a, e, c);
- this.P(d, b, c)
- }
- }
- ;
- h.P = function(a, b, c) {
- Hh || (Hh = {
- 1: "disabled",
- 8: "selected",
- 16: "checked",
- 64: "expanded"
- });
- D(a, "The element passed as a first parameter cannot be null.");
- b = Hh[b];
- var d = a.getAttribute("role") || null ;
- d && (d = Ih[d] || b,
- b = "checked" == b || "selected" == b ? d : b);
- b && fd(a, b, c)
- }
- ;
- h.A = function() {
- return "goog-control"
- }
- ;
- var Jh = function(a, b) {
- var c = a.A()
- , d = [c]
- , e = a.A();
- e != c && d.push(e);
- c = b.getState();
- for (e = []; c; ) {
- var f = c & -c;
- e.push(Ph(a, f));
- c &= ~f
- }
- d.push.apply(d, e);
- (c = b.M) && d.push.apply(d, c);
- I && !M("7") && d.push.apply(d, Kh(d));
- return d
- }
- , Kh = function(a, b) {
- var c = [];
- b && (a = a.concat([b]));
- F([], function(d) {
- !Ma(d, z(Pa, a)) || b && !Pa(d, b) || c.push(d.join("_"))
- }
- );
- return c
- }
- , Ph = function(a, b) {
- a.a || Qh(a);
- return a.a[b]
- }
- , Nh = function(a, b) {
- if (!a.s) {
- a.a || Qh(a);
- var c = a.a, d = {}, e;
- for (e in c)
- d[c[e]] = e;
- a.s = d
- }
- c = parseInt(a.s[b], 10);
- return isNaN(c) ? 0 :
- c
- }
- , Qh = function(a) {
- var b = a.A()
- , c = b.replace(/\xa0|\s/g, " ");
- D(-1 == c.indexOf(" "), "ControlRenderer has an invalid css class: '" + b + "'");
- a.a = {
- 1: b + "-disabled",
- 2: b + "-hover",
- 4: b + "-active",
- 8: b + "-selected",
- 16: b + "-checked",
- 32: b + "-focused",
- 64: b + "-open"
- }
- }
- ;
- var Rh = function() {}
- ;
- A(Rh, V);
- ba(Rh);
- h = Rh.prototype;
- h.Ua = function() {
- return "button"
- }
- ;
- h.P = function(a, b, c) {
- switch (b) {
- case 8:
- case 16:
- D(a, "The button DOM element cannot be null.");
- fd(a, "pressed", c);
- break;
- default:
- case 64:
- case 1:
- Rh.l.P.call(this, a, b, c)
- }
- }
- ;
- h.va = function(a) {
- var b = Rh.l.va.call(this, a)
- , c = a.s;
- b && (c ? b.title = c : b.removeAttribute("title"));
- (c = a.R) && this.Ra(b, c);
- a.C & 16 && this.P(b, 16, !!(a.u & 16));
- return b
- }
- ;
- h.aa = function(a, b) {
- b = Rh.l.aa.call(this, a, b);
- var c = this.Qa(b);
- a.R = c;
- a.s = b.title;
- a.C & 16 && this.P(b, 16, !!(a.u & 16));
- return b
- }
- ;
- h.Qa = r;
- h.Ra = r;
- h.A = function() {
- return "goog-button"
- }
- ;
- var Sh = function(a, b) {
- if (!a)
- throw Error("Invalid class name " + a);
- if (!x(b))
- throw Error("Invalid decorator function " + b);
- }
- , Th = {};
- var X = function(a, b, c) {
- S.call(this, c);
- if (!b) {
- b = this.constructor;
- for (var d; b; ) {
- d = b[fa] || (b[fa] = ++ga);
- if (d = Th[d])
- break;
- b = b.l ? b.l.constructor : null
- }
- b = d ? x(d.V) ? d.V() : new d : null
- }
- this.c = b;
- this.wa = q(a) ? a : null
- }
- ;
- A(X, S);
- h = X.prototype;
- h.wa = null ;
- h.u = 0;
- h.C = 39;
- h.sa = 255;
- h.fa = !0;
- h.M = null ;
- h.Ya = !0;
- var Vh = function(a) {
- a.H && 0 != a.Ya && Uh(a, !1);
- a.Ya = !1
- }
- , Wh = function(a, b) {
- b && (a.M ? Pa(a.M, b) || a.M.push(b) : a.M = [b],
- Lh(a, b, !0))
- }
- ;
- h = X.prototype;
- h.Sa = function() {
- var a = this.c.va(this);
- this.a = a;
- Oh(this.c, a);
- this.c.Va(a, !1);
- this.fa || (Nd(a, !1),
- a && fd(a, "hidden", !0))
- }
- ;
- h.Ta = function() {
- return this.j()
- }
- ;
- h.ob = function(a) {
- return this.c.pb(a)
- }
- ;
- h.ib = function(a) {
- this.a = a = this.c.aa(this, a);
- Oh(this.c, a);
- this.c.Va(a, !1);
- this.fa = "none" != a.style.display
- }
- ;
- h.U = function() {
- X.l.U.call(this);
- var a = this.c
- , b = Se(this);
- D(this);
- D(b);
- this.fa || fd(b, "hidden", !this.fa);
- this.b() || a.P(b, 1, !this.b());
- this.C & 8 && a.P(b, 8, !!(this.u & 8));
- this.C & 16 && a.P(b, 16, !!(this.u & 16));
- this.C & 64 && a.P(b, 64, !!(this.u & 64));
- this.c.xb(this);
- this.C & -2 && (this.Ya && Uh(this, !0),
- this.C & 32 && (a = this.j())) && (b = this.h || (this.h = new Ah),
- zh(b, a),
- Te(this).listen(b, "key", this.Ob).listen(a, "focus", this.Nb).listen(a, "blur", this.sb))
- }
- ;
- var Uh = function(a, b) {
- var c = Te(a)
- , d = a.j();
- b ? (c.listen(d, "mouseover", a.vb).listen(d, "mousedown", a.xa).listen(d, "mouseup", a.ya).listen(d, "mouseout", a.ub),
- a.Ga != r && c.listen(d, "contextmenu", a.Ga),
- I && (c.listen(d, "dblclick", a.tb),
- a.w || (a.w = new Xh(a),
- tc(a, z(uc, a.w))))) : (id(id(id(id(c, d, "mouseover", a.vb), d, "mousedown", a.xa), d, "mouseup", a.ya), d, "mouseout", a.ub),
- a.Ga != r && id(c, d, "contextmenu", a.Ga),
- I && (id(c, d, "dblclick", a.tb),
- uc(a.w),
- a.w = null ))
- }
- ;
- X.prototype.ua = function() {
- X.l.ua.call(this);
- this.h && Gh(this.h);
- this.fa && this.b() && this.c.Ka(this, !1)
- }
- ;
- X.prototype.o = function() {
- X.l.o.call(this);
- this.h && (this.h.O(),
- delete this.h);
- delete this.c;
- this.w = this.M = this.wa = null
- }
- ;
- X.prototype.Z = function() {
- return this.wa
- }
- ;
- var Mh = function(a, b) {
- a.wa = b
- }
- , Yh = function(a) {
- a = a.Z();
- if (!a)
- return "";
- if (!v(a))
- if (u(a))
- a = Ka(a, mc).join("");
- else {
- if (Rb && "innerText" in a)
- a = a.innerText.replace(/(\r\n|\r|\n)/g, "\n");
- else {
- var b = [];
- lc(a, b, !0);
- a = b.join("")
- }
- a = a.replace(/ \xAD /g, " ").replace(/\xAD/g, "");
- a = a.replace(/\u200B/g, "");
- Rb || (a = a.replace(/ +/g, " "));
- " " != a && (a = a.replace(/^\s*/, ""))
- }
- return a.replace(/[\t\r\n ]+/g, " ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g, "")
- }
- ;
- X.prototype.b = function() {
- return !(this.u & 1)
- }
- ;
- X.prototype.setEnabled = function(a) {
- var b = this.g;
- b && "function" == typeof b.b && !b.b() || !Zh(this, 1, !a) || (a || ($h(this, !1),
- ai(this, !1)),
- this.fa && this.c.Ka(this, a),
- bi(this, 1, !a, !0))
- }
- ;
- var ai = function(a, b) {
- Zh(a, 2, b) && bi(a, 2, b)
- }
- , $h = function(a, b) {
- Zh(a, 4, b) && bi(a, 4, b)
- }
- ;
- X.prototype.N = function(a) {
- Zh(this, 32, a) && bi(this, 32, a)
- }
- ;
- X.prototype.getState = function() {
- return this.u
- }
- ;
- var bi = function(a, b, c, d) {
- d || 1 != b ? a.C & b && c != !!(a.u & b) && (a.c.Wa(a, b, c),
- a.u = c ? a.u | b : a.u & ~b) : a.setEnabled(!c)
- }
- , ci = function(a) {
- if (a.H && a.u & 32)
- throw Error("Component already rendered");
- a.u & 32 && bi(a, 32, !1);
- a.C &= -33
- }
- , Y = function(a, b) {
- return !!(a.sa & b) && !!(a.C & b)
- }
- , Zh = function(a, b, c) {
- return !!(a.C & b) && !!(a.u & b) != c && (!(0 & b) || R(a, Qe(b, c))) && !a.v
- }
- ;
- h = X.prototype;
- h.vb = function(a) {
- (!a.relatedTarget || !ec(this.j(), a.relatedTarget)) && R(this, "enter") && this.b() && Y(this, 2) && ai(this, !0)
- }
- ;
- h.ub = function(a) {
- a.relatedTarget && ec(this.j(), a.relatedTarget) || !R(this, "leave") || (Y(this, 4) && $h(this, !1),
- Y(this, 2) && ai(this, !1))
- }
- ;
- h.Ga = r;
- h.xa = function(a) {
- this.b() && (Y(this, 2) && ai(this, !0),
- xc(a) && (Y(this, 4) && $h(this, !0),
- this.c && this.c.qb(this) && this.j().focus()));
- xc(a) && a.preventDefault()
- }
- ;
- h.ya = function(a) {
- this.b() && (Y(this, 2) && ai(this, !0),
- this.u & 4 && this.za(a) && Y(this, 4) && $h(this, !1))
- }
- ;
- h.tb = function(a) {
- this.b() && this.za(a)
- }
- ;
- h.za = function(a) {
- if (Y(this, 16)) {
- var b = !(this.u & 16);
- Zh(this, 16, b) && bi(this, 16, b)
- }
- Y(this, 8) && Zh(this, 8, !0) && bi(this, 8, !0);
- Y(this, 64) && (b = !(this.u & 64),
- Zh(this, 64, b) && bi(this, 64, b));
- b = new vc("action",this);
- a && (b.altKey = a.altKey,
- b.ctrlKey = a.ctrlKey,
- b.metaKey = a.metaKey,
- b.shiftKey = a.shiftKey,
- b.cb = a.cb);
- return R(this, b)
- }
- ;
- h.Nb = function() {
- Y(this, 32) && this.N(!0)
- }
- ;
- h.sb = function() {
- Y(this, 4) && $h(this, !1);
- Y(this, 32) && this.N(!1)
- }
- ;
- h.Ob = function(a) {
- return this.fa && this.b() && this.Xa(a) ? (a.preventDefault(),
- a.stopPropagation(),
- !0) : !1
- }
- ;
- h.Xa = function(a) {
- return 13 == a.keyCode && this.za(a)
- }
- ;
- if (!x(X))
- throw Error("Invalid component class " + X);
- if (!x(V))
- throw Error("Invalid renderer class " + V);
- var di = X[fa] || (X[fa] = ++ga);
- Th[di] = V;
- Sh("goog-control", function() {
- return new X(null )
- }
- );
- var Xh = function(a) {
- this.b = a;
- this.a = !1;
- this.c = new gd(this);
- tc(this, z(uc, this.c));
- a = Se(this.b);
- this.c.listen(a, "mousedown", this.g).listen(a, "mouseup", this.h).listen(a, "click", this.f)
- }
- ;
- A(Xh, sc);
- Xh.prototype.g = function() {
- this.a = !1
- }
- ;
- Xh.prototype.h = function() {
- this.a = !0
- }
- ;
- Xh.prototype.f = function(a) {
- if (this.a)
- this.a = !1;
- else {
- var b = a.ma()
- , c = b.button
- , d = b.type;
- b.button = 0;
- b.type = "mousedown";
- this.b.xa(new O(b,a.currentTarget));
- b.type = "mouseup";
- this.b.ya(new O(b,a.currentTarget));
- b.button = c;
- b.type = d
- }
- }
- ;
- Xh.prototype.o = function() {
- this.b = null ;
- Xh.l.o.call(this)
- }
- ;
- var ei = function() {}
- ;
- A(ei, Rh);
- ba(ei);
- h = ei.prototype;
- h.Ua = function() {}
- ;
- h.va = function(a) {
- Vh(a);
- a.sa &= -256;
- ci(a);
- return a.f.b("BUTTON", {
- "class": Jh(this, a).join(" "),
- disabled: !a.b(),
- title: a.s || "",
- value: a.R || ""
- }, Yh(a) || "")
- }
- ;
- h.pb = function(a) {
- return "BUTTON" == a.tagName || "INPUT" == a.tagName && ("button" == a.type || "submit" == a.type || "reset" == a.type)
- }
- ;
- h.aa = function(a, b) {
- Vh(a);
- a.sa &= -256;
- ci(a);
- if (b.disabled) {
- var c = Ca(Ph(this, 1));
- Zc(b, c)
- }
- return ei.l.aa.call(this, a, b)
- }
- ;
- h.xb = function(a) {
- Te(a).listen(a.j(), "click", a.za)
- }
- ;
- h.Va = r;
- h.rb = r;
- h.qb = function(a) {
- return a.b()
- }
- ;
- h.Ka = r;
- h.Wa = function(a, b, c) {
- ei.l.Wa.call(this, a, b, c);
- (a = a.j()) && 1 == b && (a.disabled = c)
- }
- ;
- h.Qa = function(a) {
- return a.value
- }
- ;
- h.Ra = function(a, b) {
- a && (a.value = b)
- }
- ;
- h.P = r;
- var fi = function(a, b, c) {
- X.call(this, a, b || ei.V(), c)
- }
- ;
- A(fi, X);
- fi.prototype.o = function() {
- fi.l.o.call(this);
- delete this.R;
- delete this.s
- }
- ;
- fi.prototype.U = function() {
- fi.l.U.call(this);
- if (this.C & 32) {
- var a = this.j();
- a && Te(this).listen(a, "keyup", this.Xa)
- }
- }
- ;
- fi.prototype.Xa = function(a) {
- return 13 == a.keyCode && "key" == a.type || 32 == a.keyCode && "keyup" == a.type ? this.za(a) : 32 == a.keyCode
- }
- ;
- Sh("goog-button", function() {
- return new fi(null )
- }
- );
- var gi = function(a) {
- var b;
- a = a || {};
- var c = mf, d = '<div role="button"' + (a.id ? ' id="' + uf(a.id) + '"' : "") + ' class="', e;
- e = a || {};
- var f = "goog-inline-block jfk-button ";
- switch (e.style) {
- case 0:
- f += "jfk-button-standard";
- break;
- case 2:
- f += "jfk-button-action";
- break;
- case 3:
- f += "jfk-button-primary";
- break;
- case 1:
- f += "jfk-button-default";
- break;
- case 4:
- f += "jfk-button-flat";
- break;
- case 5:
- f += "jfk-button-mini";
- break;
- case 6:
- f += "jfk-button-contrast";
- break;
- default:
- f += "jfk-button-standard"
- }
- f += (1 == e.width ? " jfk-button-narrow" : "") + (e.checked ?
- " jfk-button-checked" : "") + (e.Lb ? " " + e.Lb : "") + (e.disabled ? " jfk-button-disabled" : "");
- d = d + uf(new pf(f,void 0)) + '"' + (a.disabled ? ' aria-disabled="true"' : ' tabindex="' + (a.Ub ? uf(a.Ub) : "0") + '"') + (a.title ? " " + (a.Wb ? "data-tooltip" : "title") + '="' + uf(a.title) + '"' : "") + (a.value ? ' value="' + uf(a.value) + '"' : "");
- a.attributes ? (e = a.attributes,
- null != e && e.T === He ? (D(e.constructor === of),
- e = e.Z().replace(/([^"'\s])$/, "$1 ")) : (e = String(e),
- wf.test(e) || (Ba("Bad value `%s` for |filterHtmlAttributes", [e]),
- e = "zSoyz")),
- e = " " + e) :
- e = "";
- d = d + e + ">";
- a = null == (b = a.content) ? "" : b;
- b = nf(a);
- return c(d + b + "</div>")
- }
- ;
- gi.a = "jfk.templates.button.strict";
- var Z = function(a, b, c, d) {
- fi.call(this, a, hi.V(), b);
- this.L = c || 0;
- this.S = d || 0;
- this.Ca = !1
- }
- ;
- A(Z, fi);
- Z.prototype.setEnabled = function(a) {
- this.b() != a && (Z.l.setEnabled.call(this, a),
- ii(this))
- }
- ;
- Z.prototype.N = function(a) {
- Z.l.N.call(this, a);
- ji(this, !1)
- }
- ;
- Z.prototype.xa = function(a) {
- Z.l.xa.call(this, a);
- this.b() && ji(this, !0)
- }
- ;
- Z.prototype.ya = function(a) {
- Z.l.ya.call(this, a);
- this.b() && ji(this, !0)
- }
- ;
- var ji = function(a, b) {
- if (a.j()) {
- var c = a.j();
- b ? Zc(c, "jfk-button-clear-outline") : ad(c, "jfk-button-clear-outline")
- }
- }
- , ii = function(a) {
- a.j() && ki(a.c, a)
- }
- , hi = function() {
- this.B = this.A() + "-standard";
- this.b = this.A() + "-action";
- this.v = this.A() + "-primary";
- this.g = this.A() + "-default";
- this.h = this.A() + "-flat";
- this.m = this.A() + "-narrow";
- this.i = this.A() + "-mini";
- this.f = this.A() + "-contrast"
- }
- ;
- A(hi, Rh);
- ba(hi);
- h = hi.prototype;
- h.ea = function(a, b, c) {
- a && c.L != a && (c.L = a,
- ii(c));
- b && c.S != b && (c.S = b,
- ii(c))
- }
- ;
- h.A = function() {
- return "jfk-button"
- }
- ;
- h.va = function(a) {
- Ha(a, Z, "Button is expected to be instance of jfk.Button");
- var b = a.f
- , c = Ne(gi, {
- disabled: !a.b(),
- checked: !!(a.u & 16),
- style: a.L,
- title: a.s,
- Wb: a.Ca,
- value: a.R,
- width: a.S
- }, b);
- b.c(c, a.Z());
- this.aa(a, c);
- return c
- }
- ;
- h.aa = function(a, b) {
- hi.l.aa.call(this, a, b);
- this.c || (this.c = Za(this.B, z(this.ea, 0, null ), this.b, z(this.ea, 2, null ), this.v, z(this.ea, 3, null ), this.g, z(this.ea, 1, null ), this.h, z(this.ea, 4, null ), this.i, z(this.ea, 5, null ), this.f, z(this.ea, 6, null ), this.m, z(this.ea, null , 1)));
- for (var c = Xc(b), d = 0; d < c.length; ++d) {
- var e = this.c[c[d]];
- e && e(a)
- }
- if (c = b.getAttribute("data-tooltip"))
- a.s = c,
- a.Ca = !0;
- return b
- }
- ;
- h.Qa = function(a) {
- return a.getAttribute("value") || ""
- }
- ;
- h.Ra = function(a, b) {
- a && a.setAttribute("value", b)
- }
- ;
- var ki = function(a, b) {
- function c(a, b) {
- (a ? d : e).push(b)
- }
- D(b.j(), "Button element must already exist when updating style.");
- var d = []
- , e = []
- , f = b.L;
- c(0 == f, a.B);
- c(2 == f, a.b);
- c(3 == f, a.v);
- c(4 == f, a.h);
- c(5 == f, a.i);
- c(1 == f, a.g);
- c(6 == f, a.f);
- c(1 == b.S, a.m);
- c(!b.b(), a.A() + "-disabled");
- bd(b.j(), e);
- $c(b.j(), d)
- }
- ;
- var li = function() {
- Z.call(this, "", void 0, 4);
- Wh(this, "jfk-button-flat");
- Wh(this, "gtx-audio-button");
- Wh(this, "no-audio");
- this.Aa = this.Ba = "";
- Te(this).listen(this, "action", this.Ib)
- }
- ;
- A(li, Z);
- li.prototype.Ib = function() {
- chrome.runtime.sendMessage({
- audioSrc: "https://translate.googleapis.com/translate_tts?ie=UTF-8&q=" + encodeURIComponent(String(this.Ba)) + "&tl=" + this.Aa + "&client=gtx"
- })
- }
- ;
- var mi = function(a, b, c) {
- var d = c.toLowerCase();
- d in Hg && Gg[Hg[d.toLowerCase()]] >= b.length ? (a.M && Qa(a.M, "no-audio") && (0 == a.M.length && (a.M = null ),
- Lh(a, "no-audio", !1)),
- a.Ba = b,
- a.Aa = c) : Wh(a, "no-audio")
- }
- ;
- var ni = function(a) {
- var b = "";
- if (a.query)
- if (a.Gb) {
- for (var b = b + '<div class="gtx-language"><select class="gtx-lang-selector">', c = a.Tb, d = c.length, e = 0; e < d; e++)
- var f = c[e]
- , b = b + ("auto" != f ? '<option value="' + nf(f[0]) + '" ' + (f[0] == a.Sb ? "selected" : "") + ">" + nf(f[1]) + "</option>" : "");
- b += '</select></div><div class="gtx-source-audio"><div class="jfk-button-img"></div></div><div class="gtx-body">' + nf(a.query) + '</div><br><div class="gtx-language">' + nf(a.Vb) + '</div><div class="gtx-target-audio"><div class="jfk-button-img"></div></div><div class="gtx-body">' +
- nf(a.Gb) + "</div>";
- if (a.lb) {
- b += '<table style="width: 95%">';
- c = a.lb;
- d = c.length;
- for (e = 0; e < d; e++) {
- f = c[e];
- b += '<tr><td class="gtx-td"><div class="gtx-pos">' + nf(f.pos) + '</div></td><td class="gtx-td">';
- if (a.popup)
- for (var f = f.terms, g = f.length, k = 0; k < g; k++)
- b += (0 != k ? ", " : "") + nf(f[k]);
- else
- for (f = f.terms,
- g = f.length,
- k = 0; k < g; k++)
- var l = f[k]
- , b = b + (3 > k ? (0 != k ? ", " : "") + nf(l) : "");
- b += "</td></tr>"
- }
- b += "</table>"
- }
- b += "<br>"
- } else
- b += "No translation results for <b>" + nf(a.query) + "</b>.";
- return b
- }
- ;
- ni.a = "extension.translation";
- var Eg = new Bg
- , oi = function() {}
- ;
- ba(oi);
- var pi = function(a, b, c, d) {
- if ("" != a) {
- window.selection = a;
- a = new wh("gtx","https://translate.googleapis.com");
- var e = chrome.i18n.getUILanguage ? chrome.i18n.getUILanguage() : "en";
- d = null != d ? d : "auto";
- var f = Cg(Eg);
- c = new T("source=" + c);
- var g = window.selection
- , k = a.a + "/translate_a/single"
- , l = new T
- , p = new T;
- l.set("client", a.c);
- l.set("sl", d);
- l.set("tl", f);
- l.set("hl", e);
- bg(l, "dt", ["t", "bd"]);
- l.set("dj", "1");
- c && l.g(c);
- p.set("q", g);
- yh(a, k, l, p, y(a.f, a, b))
- }
- }
- ;
- oi.prototype.a = function(a, b, c, d) {
- if (null != d) {
- for (var e = d.src, f = Cg(Eg), g = [], k = [], l = d.sentences, p = 0; p < l.length; p++)
- g.push(l[p].orig),
- k.push(l[p].trans);
- var g = g.join(""), k = k.join(""), l = Fg("tl")[f].toUpperCase(), p = Fg("sl"), n = [], t;
- for (t in p)
- n.push([t, p[t]]);
- d = {
- query: b,
- Gb: k,
- Vb: l,
- Sb: e,
- Tb: n,
- lb: d.dict,
- popup: a
- };
- D(ni, "Soy template may not be null.");
- c.innerHTML = Ke(ni(d || Le));
- d = Wb("gtx-lang-selector", c);
- P(d, "change", y(this.b, this, a, b, c), !1, this);
- b = new li;
- d = Wb("gtx-source-audio", c);
- Ve(b, d);
- mi(b, g, e);
- b = new li;
- g = Wb("gtx-target-audio", c);
- Ve(b, g);
- mi(b, k, f);
- e = "https://translate.google.com/?source=gtx_m#" + e + "/" + f + "/" + encodeURIComponent(window.selection);
- a ? (a = Ub(document, "more"),
- a.setAttribute("href", e),
- c = new Z("",void 0,4),
- Ue(c, Ub(document, "new-translation")),
- Nd(Ub(document, "new-translation"), !0),
- c = Ub(document, "translate-page"),
- fc(a, zg("MSG_OPEN_IN_TRANSLATE")),
- c.className = "gtx-a",
- c.setAttribute("style", "margin-left: 0px;"),
- Nd(a, !0)) : (a = document.createElement("a"),
- a.id = "off",
- a.className = "gtx-a",
- a.setAttribute("target",
- "_blank"),
- fc(a, zg("MSG_FOOTER_OPTIONS").toUpperCase()),
- a.setAttribute("href", chrome.runtime.getURL("options.html")),
- c.appendChild(a),
- a = document.createElement("a"),
- a.id = "more",
- a.setAttribute("class", "gtx-a"),
- a.setAttribute("target", "_blank"),
- fc(a, zg("MSG_MORE")),
- a.setAttribute("href", e),
- a.setAttribute("style", "color: #A2A2A2; float: right; padding-top: 16px;"),
- c.appendChild(a))
- } else
- fc(Ub(document, "translation"), zg("MSG_TRANSLATION_ERROR"))
- }
- ;
- oi.prototype.b = function(a, b, c, d) {
- pi(b, y(this.a, this, a, b, c), "ls", d.target.value)
- }
- ;
- var qi = function(a) {
- zf.call(this);
- this.N = !0;
- D(!this.H, "Must call addClassName() before rendering");
- this.L.push("gtx-bubble");
- this.s.b = a;
- this.c.X && this.c.b();
- var b = 2;
- parseInt(a.style.top, 10) - document.body.scrollTop + parseInt(a.style.height, 10) / 2 < window.innerHeight / 2 && (b = 1);
- var c = 2;
- a = parseInt(a.style.left, 10) + parseInt(a.style.width, 10) / 2;
- 217 >= a ? c = 0 : a >= window.innerWidth - 217 && (c = 1);
- D(!this.H, "Must call setPosition() before rendering");
- a = this.s;
- null != b && (a.Pa = b);
- null != c && (a.Oa = c);
- w(0) && (a.eb = Math.max(0,
- 15));
- w(-10) && (a.bb = -10)
- }
- , ri, si;
- A(qi, zf);
- qi.prototype.o = function() {
- qi.l.o.call(this);
- chrome.runtime.sendMessage({
- bubbleClosed: !0
- });
- dc(Ub(document, "gtx-anchor"))
- }
- ;
- qi.prototype.h = null ;
- qi.prototype.w = null ;
- qi.prototype.R = function(a, b) {
- var c = document.createElement("style");
- c.innerHTML = b;
- this.w.appendChild(c);
- c = this.h;
- D(v(c) || c.nodeType || c instanceof lf || c instanceof ob, "Content must be a string or HTML.");
- this.S = c;
- Af(this, c);
- var d = this.h.cloneNode(!1);
- d.id = "bubble-content";
- d.className = "gtx-content";
- this.w.appendChild(d);
- c = document.createElement("div");
- c.className = "content";
- c.setAttribute("style", "margin: 0");
- d.appendChild(c);
- d = this.h.cloneNode(!1);
- d.id = "translation";
- d.style.display = "inline";
- c.appendChild(d);
- ti.a(!1, window.selection, d, a);
- this.c.X && this.c.b()
- }
- ;
- var vi = function(a, b) {
- var c = Ub(document, "gtx-trans");
- Tc(c);
- dc(c);
- pi(b, z(ui, a), "icon")
- }
- , xi = function(a) {
- var b;
- if (!(b = !("1" == wi.a && wi.g))) {
- b = wi;
- var c = ri
- , c = yg(c);
- b = c != Cg(b)
- }
- if (b) {
- var d = wi.a;
- if ("0" != d && (c = window.getSelection(),
- b = c.toString().trim(),
- 0 < b.length && !Wb("gtx-bubble") && 250 > b.length && 400 < window.innerWidth && (c = c.getRangeAt(0).getBoundingClientRect(),
- 0 != c.top || 0 != c.left)))
- if ("1" == d) {
- var e = document.createElement("div");
- e.className = "gtx-trans-icon";
- d = document.createElement("div");
- d.appendChild(e);
- d.id = "gtx-trans";
- d.style.position = "absolute";
- d.style.left = a.clientX + document.body.scrollLeft - 13 + "px";
- a = a.clientY;
- a - c.top > c.height / 2 ? a = c.bottom + 1 : a = c.top - 1 - 27;
- d.style.top = a + document.body.scrollTop + "px";
- document.body.appendChild(d);
- P(d, "click", z(vi, c, b))
- } else
- pi(b, z(ui, c), "bubble")
- }
- }
- , ui = function(a, b) {
- if ("1" == wi.a || b.src != Cg(wi)) {
- var c = document.createElement("div");
- c.id = "gtx-anchor";
- c.style.position = "absolute";
- c.style.visibility = "hidden";
- c.style.left = String(a.left + document.body.scrollLeft + "px");
- c.style.top =
- String(a.top + document.body.scrollTop + "px");
- c.style.width = String(a.right - a.left + 1 + "px");
- c.style.height = String(a.height + "px");
- document.body.appendChild(c);
- window.a = new qi(c);
- Ue(window.a, document.body);
- c = window.a;
- c.h = document.createElement("div");
- c.h.id = "gtx-host";
- c.h.setAttribute("style", "min-width: 200px; max-width: 400px;");
- c.h.createShadowRoot ? c.w = c.h.createShadowRoot() : c.w = c.h.webkitCreateShadowRoot();
- yi(chrome.runtime.getURL("popup_css_compiled.css"), y(c.R, c, b));
- window.a.zb(!0)
- }
- }
- , yi = function(a,
- b) {
- var c = new XMLHttpRequest;
- c.open("GET", a, !0);
- c.onload = function() {
- var a = null ;
- 200 === c.status && (a = c.response);
- return b(a)
- }
- ;
- c.send()
- }
- ;
- chrome.runtime.onMessage.addListener(function(a) {
- a["gtx.detected"] && (ri = a["gtx.detected"],
- xi(si))
- }
- );
- var wi = new Bg
- , ti = oi.V();
- P(window, "mouseup", function(a) {
- if (0 == a.button && !Ub(document, "gtx-trans")) {
- try {
- chrome.runtime.sendMessage({
- test: 1
- })
- } catch (b) {
- return
- }
- "1" == wi.a && wi.g && !ri ? (si = a,
- chrome.runtime.sendMessage({
- detectLanguage: 1
- })) : window.setTimeout(z(xi, a), 0)
- }
- }
- );
- P(window, "mousedown", function(a) {
- var b = Ub(document, "gtx-trans");
- b && (ec(b, a.target) ? a.preventDefault() : (Tc(b),
- dc(b)));
- -1 != a.target.className.indexOf("jfk-bubble-closebtn") && a.preventDefault()
- }
- , !0);
- var zi = function() {
- window.a && window.a.O()
- }
- , Ai = ["disposeWindowBubble"]
- , Bi = m;
- Ai[0] in Bi || !Bi.execScript || Bi.execScript("var " + Ai[0]);
- for (var Ci; Ai.length && (Ci = Ai.shift()); )
- !Ai.length && q(zi) ? Bi[Ci] = zi : Bi[Ci] ? Bi = Bi[Ci] : Bi = Bi[Ci] = {};
- }
- )();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement